Commit Graph

13 Commits

Author SHA1 Message Date
dd6d1bc039 Consolidate TableWidth and TableCellMargins types; add Table indent (#954) 2021-05-24 05:39:26 +03:00
5155cdaf45 unify Border type 2021-05-24 05:39:26 +03:00
2611e0c74f update table-row-properties, table-cell-properties, table-cell-borders to declarative style 2021-05-24 05:39:26 +03:00
a3febae8a3 Inline single use interfaces 2021-03-15 00:11:39 +00:00
b4f1c4dd6a Increase readability for enums 2020-05-13 02:51:47 +01:00
25a7ce3742 adds textDirection to table cells 2020-05-10 10:36:25 -07:00
bd888219fc Amend table documentation 2019-09-26 02:03:17 +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
c6ab47e838 Add shading 2019-03-21 01:06:07 +00:00
ca9ce01f56 Customize left and right cell borders (for Google Docs) 2019-03-05 11:09:47 +01: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
f7d18bfead Tidied up table components 2018-10-23 23:44:50 +01:00