Commit Graph

13 Commits

Author SHA1 Message Date
a26292a0fd Trying to upgrade docx to use Vite 2023-05-01 20:37:39 +01:00
e90d97b813 Use new eslint-plugin-functional instead of tslint-immutable 2022-09-15 20:00:50 +01:00
ff14fcae3a remove from API delete()/IsDeleted(), and deleted check from prepForXml; not useful in declarative style API 2021-05-24 05:39:26 +03:00
780682a8f7 add test for ExternalStylesFactory when styles element is missing, to bump coverage 2021-05-20 05:03:12 +03: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
d19cdcae0c Rename methods 2019-01-11 01:45:57 +00:00
2e00634bc4 Fix tests but break demo 27 2018-09-17 22:06:38 +01:00
980bc597e2 test fixes 2018-09-17 11:24:56 +03:00
5f594a822f Fix and enable linting on tests 2018-08-09 23:29:40 +01:00
ed72d60951 external-styles: create correct XmlComponents from imported style 2018-06-27 21:55:15 +02:00
dadd8c122f fixed formatting styles 2018-05-17 15:32:15 +02:00
dc136daeab tables: add option to pass column size when creating a table
- add optionto the XmlComponent to `delete`/skip elements when exporting to xml
2018-04-26 14:16:02 +02:00
5242f7d55c styles: support for external styles. parsing external styles. 2018-03-28 14:54:07 +02:00