Commit Graph

36 Commits

Author SHA1 Message Date
097c6a5962 use hexColorValue in borders and underlines 2021-05-24 08:42:34 +03:00
449e1ed963 add test for table indent property 2021-05-24 05:39:26 +03:00
dd6d1bc039 Consolidate TableWidth and TableCellMargins types; add Table indent (#954) 2021-05-24 05:39:26 +03:00
08bd2744b6 further clean up border code; update paragraph borders to use shared type; BREAKING: paragraph border value attr renamed to style, to match other usages of borders 2021-05-24 05:39:26 +03:00
5155cdaf45 unify Border type 2021-05-24 05:39:26 +03:00
496fcb55fa unify Shading; breaking change: Paragraph/Run shading option key type changed to val, and shadow alias removed 2021-05-24 05:39:26 +03:00
d0a675fde6 Fix ordering of elements in table, table-cell, table-properties, table-cell-properties, table-cell-margin 2021-05-20 01:03:09 +03:00
bc6644be0b #842 Move table styles to the top 2021-03-22 05:54:48 +00:00
a3febae8a3 Inline single use interfaces 2021-03-15 00:11:39 +00:00
283c42cb55 Remove unused method 2021-03-07 21:53:16 +00:00
0ec3b64ad7 Add tests 2021-03-07 21:45:59 +00:00
b972f1789e Fix tests 2021-03-07 21:43:30 +00:00
90495d08a6 Merge branch 'master' into add-table-option-styleId
# Conflicts:
#	src/file/table/table.ts
2021-03-07 21:40:42 +00:00
2aa93e6105 #751 Add bidi visual - Visual Right to Left 2021-03-04 02:02:28 +00:00
a026e5bd1f Make table internals declarative 2021-03-04 01:42:58 +00:00
d6cce4ae15 Adding TableBorders.NONE convenience object 2020-12-22 23:42:02 +00:00
6db37eb4fb Overlap tables 2019-11-24 03:22:50 +00:00
8bdbd1de39 Alignment of tables 2019-11-24 01:22:17 +00:00
bd1f5898a8 Add tests 2019-11-19 22:06:10 +00:00
da9e6d6664 Add table borders 2019-11-18 01:04:31 +00:00
4ca44d335d Adds setStyle to spec 2019-10-21 13:09:44 -05:00
c61d24d8d4 Allows user to specify style id for Tables
Allows user to specify the style Id which will be added in the form of:
<w:tblStyle w:val="TableGrid"/>

As specified in table Structure in http://officeopenxml.com/WPtable.php
2019-10-21 11:40:05 -05:00
172c333357 Add tests and clean up code 2019-09-29 04:17:21 +01:00
44b95f2f15 Add shading test 2019-09-26 02:14:52 +01:00
3ef8f5311d Make fixed layout declaritive 2019-06-25 20:57:46 +01:00
29f890918c Fix spelling of "margin" 2019-04-18 13:55:18 +10: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
a2a01edc24 Change table cell margin type attribute form w:sz to w:type as per http://officeopenxml.com/WPtableCellMargins.php
Fixes #303
2019-04-08 13:50:40 -04:00
c6ab47e838 Add shading 2019-03-21 01:06:07 +00:00
973177676e fix: table width in percentage should include '%' 2019-03-06 12:21:15 +01:00
efd89f24e6 Add table column and vertical merging 2019-03-04 22:50:04 +00:00
e19890e27a Breaking Change. Swap arguments around and make default WidthType 2018-11-15 03:00:26 +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
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
f7d18bfead Tidied up table components 2018-10-23 23:44:50 +01:00