Commit Graph

35 Commits

Author SHA1 Message Date
70a3b25d54 Fix Prettier errors 2022-10-16 00:20:16 +01:00
629c586014 FIX: multiple tabStop support for LibreWriter 2022-10-14 16:38:02 +05:45
e90d97b813 Use new eslint-plugin-functional instead of tslint-immutable 2022-09-15 20:00:50 +01:00
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
74fbc715e9 #1324 Fixes Bi-directional re-factor issue 2021-12-02 17:24:19 +00:00
ea01ddb337 Update Paragraph/properties.ts with supressLineNumber docs 2021-09-27 19:18:58 -07:00
34036bca8f Add suppressLineNumber option to Paragraph 2021-09-27 19:11:09 -07:00
01bc6093dd Separate paragraph style options interface for level 2021-09-20 21:58:07 +03:00
996594da9b Moving numbering from IParagraphPropertiesOptions to IParagraphStylePropertiesOptions 2021-09-16 13:01:47 +03:00
da744cbdec Fix lint errors 2021-07-08 17:46:13 +10:00
439ab8441e Export new ColumnBreak class via more generic Break class 2021-07-08 17:39:21 +10:00
ce2a0fb864 remove more duplicate classes; add additional values functions; clean up tests 2021-05-24 11:28:10 +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
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
15f79abf5e fix lint issues 2021-05-20 04:02:14 +03:00
56b18d3793 Fix ordering of elements in paragraph-properties 2021-05-20 01:06:07 +03:00
7f86385b09 #269 Text Frame (Text Box) 2021-03-14 17:00:42 +00:00
8724fbe7a7 #750 Add widow control 2021-03-13 04:07:44 +00:00
58f7e5a9a3 Merge pull request #816 from dolanmiu/feat/restart-numbered-lists
#548 #508 Restart numbered lists
2021-03-12 04:04:59 +00:00
0b88cb0ca5 #548 #508 Restart numbered lists 2021-03-12 03:58:05 +00:00
49314ea9d0 fix prettier whitespace 2021-02-04 14:48:57 -06:00
acaaf98e20 Fix spacing 2021-02-03 15:21:15 -06:00
0e2bfe9e3f Allow styles and headings with numbering 2021-02-03 14:53:29 -06:00
60eb686d05 Add shading to paragraph 2020-10-28 01:05:31 +00:00
d18cfbc26f Update tslint to v6 2020-08-01 17:58:16 +01:00
437e83ab78 :feat: refine paragraph/run properties options 2020-07-14 15:42:45 +08:00
cb42c74a8d Make Paragraph declaritive 2019-06-12 01:03:36 +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
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
e97c432a64 added border specs, createBorder method, and color attribute to setProperties 2018-08-19 19:37:36 -04:00
0411153832 Added in the ability to create borders for paragraphs 2018-08-19 11:59:38 -04:00
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00