Commit Graph

19 Commits

Author SHA1 Message Date
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
ce2a0fb864 remove more duplicate classes; add additional values functions; clean up tests 2021-05-24 11:28:10 +03:00
dd6d1bc039 Consolidate TableWidth and TableCellMargins types; add Table indent (#954) 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
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
6db37eb4fb Overlap tables 2019-11-24 03:22:50 +00:00
8bdbd1de39 Alignment of tables 2019-11-24 01:22:17 +00:00
da9e6d6664 Add table borders 2019-11-18 01:04:31 +00: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
3ef8f5311d Make fixed layout declaritive 2019-06-25 20:57:46 +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
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
f7d18bfead Tidied up table components 2018-10-23 23:44:50 +01:00