Commit Graph

38 Commits

Author SHA1 Message Date
c68dc8c52a Make hyperlinks declarative 2019-12-18 21:11:15 +00:00
2b0953bb19 Add right indent 2019-12-02 23:13:26 +00:00
6db37eb4fb Overlap tables 2019-11-24 03:22:50 +00:00
643e3c2f84 Finish making numbering declarative 2019-11-08 03:11:19 +00:00
9b40b5e55e Add work for custom level id 2019-11-06 20:54:39 +00:00
40d1a3a7c2 Multiple tab stops 2019-10-09 20:56:31 +01:00
04b6d8e54a Declarative hyperlinks, bookmarks, tab stops and page breaks 2019-09-30 22:56:21 +01:00
172c333357 Add tests and clean up code 2019-09-29 04:17:21 +01:00
f33d6da65a Merge branch 'master' into feat/declaritive
# Conflicts:
#	src/file/paragraph/formatting/border.spec.ts
#	src/file/paragraph/links/outline-level.spec.ts
#	src/file/paragraph/run/run.spec.ts
2019-07-02 01:33:41 +01:00
1f51fd7a31 Remove usage of Utility 2019-06-27 01:35:58 +01:00
a531713214 Remove usage of Utility class 2019-06-26 22:12:18 +01:00
3ef8f5311d Make fixed layout declaritive 2019-06-25 20:57:46 +01:00
fb65bb4207 Turn Run into a declaritive API 2019-06-17 01:51:57 +01:00
cb42c74a8d Make Paragraph declaritive 2019-06-12 01:03:36 +01:00
816cb54b14 Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children.  Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).

Fixes #306
2019-04-09 05:27:18 -04:00
db7f27a88c Add more tests to paragraph 2019-01-11 00:16:25 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
61411fd0f3 Add tests 2018-11-01 02:22:32 +00:00
cc6e35165a Add codecov and add more tests to travis 2018-10-26 02:00:45 +01:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
2fb5845501 contextual spacing 2018-09-26 17:47:17 +03:00
8b463b3bb6 updated clone deep dependency and make fields dirty to be updated when word is opened 2018-09-21 10:26:28 -03:00
4805efad2e organized imports 2018-09-20 10:31:49 -03:00
12e2ae9e91 making leader a option field and test improvments 2018-09-20 10:30:16 -03:00
8e911698a5 generating the content for a table of contents 2018-09-18 05:24:19 -03:00
33f87523e0 Merge from master 2018-08-21 23:50:58 +01:00
a7f6224fb2 Made demo files into typescript files 2018-08-21 02:46:21 +01:00
e97c432a64 added border specs, createBorder method, and color attribute to setProperties 2018-08-19 19:37:36 -04:00
0411153832 Added in the ability to create borders for paragraphs 2018-08-19 11:59:38 -04:00
92da93a160 Rename to more readable names 2018-08-07 02:47:24 +01:00
696b5daf5c rtl 2018-07-25 15:02:58 +03:00
4dfce582c8 bidi support 2018-07-22 17:03:45 +03:00
8cb8d3514a Add footnotes class 2018-06-11 00:45:21 +01:00
cbe9c3ac50 paragraph: add support for page break before format property 2018-05-10 19:43:58 +02:00
2f0ad3eeb2 Add and fix tests 2018-01-31 23:24:55 +00:00
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00