Commit Graph

78 Commits

Author SHA1 Message Date
e90d97b813 Use new eslint-plugin-functional instead of tslint-immutable 2022-09-15 20:00:50 +01:00
d020d59b11 Merge branch 'master' into feat/tslint-to-eslint
# Conflicts:
#	src/file/numbering/level.spec.ts
#	src/file/numbering/level.ts
2022-09-15 18:04:48 +01:00
ebb3f8137e #1660 Add w:isLgl 2022-09-15 13:08:49 +01:00
ebcb37cbed Fix ESLinting errors and remove TSLint 2022-08-31 08:59:27 +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
6d3ebf90c1 #2733 Add error if level exceeds 9 2021-12-18 15:42:35 +00:00
01bc6093dd Separate paragraph style options interface for level 2021-09-20 21:58:07 +03:00
f378c37b62 Test at spec.ts for referenceConfigMap 2021-07-30 11:59:49 +03:00
d773972877 Test coverage issue fix 2021-07-30 11:58:55 +03:00
2fd4f064ae Simplify + TS related fix 2021-07-26 13:28:55 +03:00
36a18c5af3 Use level.start for overrideLevel.start if possible
Implemented via additional reference config map.
2021-07-26 09:55:33 +03:00
034cd187ab change shading val -> type 2021-05-29 05:51:06 +03:00
c3e92c0709 update file/numbering with schema comments and values functions 2021-05-24 21:04:38 +03:00
ce2a0fb864 remove more duplicate classes; add additional values functions; clean up tests 2021-05-24 11:28:10 +03:00
528be93191 fix #507 - docx file not opening in edit mode in word and word online 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
b627f0982a fix ordering of elements in w:lvl 2021-05-20 04:20:14 +03:00
798cbb8628 fix prettier issues 2021-05-20 04:08:00 +03:00
06da596ffb Remove invalid 'w:shdCs' element 2021-05-20 03:02:48 +03:00
a3febae8a3 Inline single use interfaces 2021-03-15 00:11:39 +00:00
0b88cb0ca5 #548 #508 Restart numbered lists 2021-03-12 03:58:05 +00:00
566ac03f9a Use context in prep xml 2021-03-11 01:06:55 +00:00
38c8220e9e Use LevelFormat string enum rather than strings 2020-12-24 04:26:45 +00:00
502db14bba Add Convenience functions 2020-12-24 03:37:43 +00:00
d18cfbc26f Update tslint to v6 2020-08-01 17:58:16 +01:00
3f7ca6bbff :test: document defaults & numbering suffix 2020-07-15 14:11:26 +08:00
75a03f1576 :test: update test for complex script 2020-07-15 12:46:46 +08:00
437e83ab78 :feat: refine paragraph/run properties options 2020-07-14 15:42:45 +08:00
8a3c8d4664 :test: Font for eastAsia 2020-06-07 12:38:31 +08:00
d0f53fdd4b Merge branch 'master' of github.com:dolanmiu/docx
# Conflicts:
#	package-lock.json
2020-05-28 18:40:44 +01:00
5ae824358c Revert "Update numbering.ts"
This reverts commit 0ebdcc30ed.
2020-05-26 21:06:43 +01:00
120c3a7bbe :feat: support emphasis mark 2020-05-22 12:22:45 +08:00
0ebdcc30ed Update numbering.ts 2020-05-07 11:49:42 +02:00
643e3c2f84 Finish making numbering declarative 2019-11-08 03:11:19 +00:00
9b40b5e55e Add work for custom level id 2019-11-06 20:54:39 +00:00
8eff6bd0cf Declarative numbering work 2019-11-01 01:57:01 +00:00
40d1a3a7c2 Multiple tab stops 2019-10-09 20:56:31 +01:00
591b2f4e04 Declarative styles 2019-10-04 01:20:41 +01:00
04b6d8e54a Declarative hyperlinks, bookmarks, tab stops and page breaks 2019-09-30 22:56:21 +01:00
b741db3050 Using a better demo naming system 2019-08-06 23:08:21 +01:00
099eb1d202 Merge branch 'master' of github.com:dolanmiu/docx into feat/declaritive
# Conflicts:
#	src/file/paragraph/run/run.ts
2019-08-06 21:06:06 +01:00
ebc7dca949 Fix tests 2019-08-06 13:39:05 +03:00
fa710d1ba6 Highlighting 2019-08-06 11:13:43 +03:00
ac5b15d0e3 Mandatory Sections 2019-07-31 08:48:02 +01:00
cb42c74a8d Make Paragraph declaritive 2019-06-12 01:03:36 +01: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
6d0f6a61d7 Merge pull request #231 from Vivekananda-Athukuri/master
Export Num class
2019-01-04 12:06:14 +00:00