a5afce458d
Merge pull request #262 from aravindballa/master
...
Feature: add line numbers to section
2019-06-05 17:38:49 +01:00
2f687125d1
fix lint issue in section-properties.ts
2019-06-05 13:01:24 +05:30
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
193d0c4239
Merge pull request #299 from filippomuscolino/fix-duplicated-section
...
Fix: duplicated generation of last section properties
2019-04-05 01:07:10 +01:00
272e2496f4
Fix duplicated generation of last section properties
2019-04-04 17:43:54 +02: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
d9ad69b7cd
Merge pull request #278 from filippomuscolino/feat/style-improvements
...
Add bold and italics to character style + customize hyperlink
2019-03-05 20:59:21 +00:00
e23d230acb
Merge pull request #280 from filippomuscolino/feat/justify-line-break
...
Add setting for not justify lines ending in soft line break
2019-03-05 20:55:21 +00:00
b179facca2
Add setting for not justify lines ending in soft line break
2019-03-05 17:17:06 +01:00
db60270e1f
fix: relationship and content type for settings
2019-03-05 15:40:00 +01:00
3e2130bc80
Customize text run of an hyperlink
2019-03-05 15:15:58 +01:00
1b336785b4
Add bold and italics to character style
2019-03-05 15:15:45 +01:00
4580a65a84
Merge pull request #277 from filippomuscolino/feat/style-outline
...
Select styles that will go into TOC
2019-03-05 13:22:22 +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
32646f8806
Add outline level to paragraph style
2019-03-05 12:19:36 +01:00
46ddf77342
Get cell properties
2019-03-05 11:38:21 +01:00
441afe8c97
Add tests
2019-03-05 11:34:43 +01:00
ca9ce01f56
Customize left and right cell borders (for Google Docs)
2019-03-05 11:09:47 +01:00
2b9ce0febd
Add tests
2019-03-05 11:04:54 +01:00
18760387db
Table pagination: add cantSplit and tblHeader row properties
2019-03-05 10:13:53 +01:00
28dabb06cb
Write getColumn test
2019-03-05 01:58:56 +00:00
50fc9b6274
Test index out of bounds
2019-03-05 01:45:04 +00:00
367518d504
Add tests for table column
2019-03-05 01:39:51 +00:00
efd89f24e6
Add table column and vertical merging
2019-03-04 22:50:04 +00:00
918faf59c3
Merge pull request #273 from dolanmiu/feat/table-merge-fix
...
Add higher width for GridCol to fix merging cells
2019-02-26 21:53:14 +00:00
3a9fa49fbb
Fix test
2019-02-26 21:46:19 +00:00
218a08d793
Fix tests
2019-02-26 21:45:55 +00:00
416a239708
Add higher width for grid col to fix merging
2019-02-26 21:38:54 +00:00
8f133ff93a
add example for line numbers
2019-02-06 13:26:18 +05:30
1f12e159ef
add line numbers to section
2019-02-04 18:49:12 +05:30
4b6d3c3e3c
Write tests
2019-01-16 12:05:21 +01:00
14a1d62148
Add Number of pages element
2019-01-16 12:05:21 +01:00
ca5f6a56a5
Write tests
2019-01-15 21:40:19 +00:00
bf8dfe6604
Fix for prettier
2019-01-15 16:13:20 +01:00
b0ee0305fb
Add OutlineLevel Paragraph property
2019-01-15 15:39:48 +01:00
8f6984580a
Add Number of pages element
2019-01-15 02:09:38 +00:00
d19cdcae0c
Rename methods
2019-01-11 01:45:57 +00:00