40dc90e585
:fix: insert the continue cell properly
2020-07-08 12:32:01 +08:00
0de302d192
:typo: update comments
2020-07-08 11:26:24 +08:00
80bab95f6c
:fix: rowSpan
can't work when column index out of range
2020-07-08 10:55:15 +08:00
057f41e355
:test: more test cases
2020-06-22 12:34:08 +08:00
8c9b61b37a
:fix: handle rowSpan
by convert between the virtual column index and the root index
2020-06-22 12:25:51 +08:00
11e54b3e2c
:fix: handle cell that has both columnSpan
and rowSpan
2020-06-20 21:36:35 +08:00
fa7cb0bef1
:test: add test case for columnSpan
and rowSpan
2020-06-20 21:01:23 +08:00
3977c8ab3b
:fix: rowSpan
continue cell should has the same border to the first row cell
2020-06-20 20:20:22 +08:00
994df8531b
:fix: rowSpan
does not work correctly
2020-06-20 19:47:46 +08: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
c68dc8c52a
Make hyperlinks declarative
2019-12-18 21:11:15 +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
bfbe59cb84
table cell width test
2019-10-12 03:14:25 +03:00
06abde2425
fix set table cell width
2019-10-12 02:52:30 +03:00
172c333357
Add tests and clean up code
2019-09-29 04:17:21 +01:00
c5eb3d5670
Add addMargin test
2019-09-26 02:24:43 +01:00
44b95f2f15
Add shading test
2019-09-26 02:14:52 +01:00
bd888219fc
Amend table documentation
2019-09-26 02:03:17 +01:00
b2de74a0e6
Fix tests
2019-09-25 01:09:53 +01:00
7aa4134e2b
Refactor row merging to table level
2019-09-25 00:57:24 +01:00
a9d4ebc898
Add declarative column merge
2019-09-22 02:39:38 +01:00
418adca9f3
Declarative tables
2019-09-13 00:51:20 +01:00
edbb4ce9f2
Merge branch 'master' into feat/declaritive
2019-06-26 00:38:21 +01:00
e2574ec23b
Turn methods into "add()"
2019-06-25 23:17:56 +01:00
3ef8f5311d
Make fixed layout declaritive
2019-06-25 20:57:46 +01:00
b08354494c
Improve tests
2019-06-25 14:48:45 +02:00
2d4412ce51
Add table row height
2019-06-25 12:02:53 +02:00
c97d15cb9f
Remove create table helper function
2019-06-25 01:21:28 +01:00
cb42c74a8d
Make Paragraph declaritive
2019-06-12 01:03:36 +01:00
3a593a53d3
Fix tests
2019-05-16 11:15:20 -04:00
31a9111667
Fix merging of 3+ cells vertically
2019-05-15 18:14:39 -04:00
29f890918c
Fix spelling of "margin"
2019-04-18 13:55:18 +10:00
77edf8862b
Added constant EMPTY_OBJECT (an empty sealed object) that is used to indicate to the xml
library that an empty XML element should be generated, and use it in the JSON hardcoded into the tests.
2019-04-10 13:47:38 -04:00
bb1604cd8f
Turn back on no-null-keyword. Use empty object instead of null
to signal to the xml
library that an empty element should be produced. Update the related tests.
...
Related to #306
2019-04-10 01:28:37 -04: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
e67fd9cb2b
Add tests and margain
2019-03-18 23:50:21 +00:00
2cb7d44a77
Work on new table API
2019-03-13 02:29:11 +00:00
f3ba11b21c
Improving table api
2019-03-08 01:09:21 +00:00
1486d3de56
Improve documentation
2019-03-07 01:01:01 +00:00
f76471f553
Fix test
2019-03-06 13:33:50 +01:00
973177676e
fix: table width in percentage should include '%'
2019-03-06 12:21:15 +01:00
1590f9ac70
Merge pull request #274 from dolanmiu/feat/vertical-table-merge
...
Add table column and vertical merging
2019-03-05 23:53:12 +00:00
661c3e21e4
Merge pull request #275 from filippomuscolino/feat/table-pagination
...
Table pagination: add cantSplit and tblHeader row properties
2019-03-05 11:24:08 +00:00
46ddf77342
Get cell properties
2019-03-05 11:38:21 +01:00