Commit Graph

23 Commits

Author SHA1 Message Date
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
b2a09b512f implement sample version of Comment feature. 2022-03-03 09:59:09 +08:00
a3febae8a3 Inline single use interfaces 2021-03-15 00:11:39 +00:00
870c222dd5 Allow custom text properties to be included 2020-08-03 17:08:04 +12:00
3427d220c7 fix hyperlink id 2019-11-08 11:01:26 +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
39066fb5f2 Add lifecycles to add image 2018-12-05 00:05:11 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
c19a2e71b5 Add footnotes as part of export 2018-06-11 00:48:50 +01:00
195c62f80b modify relationships to support external links 2018-05-06 22:23:35 -05:00
fd93c0776a Fix tests 2018-02-04 01:43:10 +00:00
23c5aef276 Add file relationships 2018-02-04 00:58:34 +00:00
2f0ad3eeb2 Add and fix tests 2018-01-31 23:24:55 +00:00
5e921f1dfc Add footer 2018-01-29 21:53:22 +00:00
079334f71b Make fields readonly 2018-01-29 01:55:25 +00:00
3fe0c76d54 Add header to type 2018-01-29 01:54:50 +00:00
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
592fb5ca9f Add dynamic relationships 2018-01-10 00:29:17 +00:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
c469fb24db Fix imports 2017-12-20 01:41:53 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00