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
bf18154fcf
Fix style
2018-12-07 15:34:27 +00:00
7639b60b15
Refactor to separate classes in their specific files an tests improuvements for styles
2018-11-13 11:04:03 -02:00
7b47dadede
Fix Prettier styling
2018-11-11 22:54:35 +00:00
d13795696d
Update index.ts
2018-11-09 12:26:23 +05:30
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
4742cf0f3f
Clean imports
2018-10-26 01:04:07 +01:00
f2b50478bf
Fix tests and use proper types for disregarding XMLComponent
2018-09-20 00:41:57 +01:00
89df3c48e0
Fix linting errors
2018-08-09 23:22:03 +01:00
3436a1584c
Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
...
# Conflicts:
# package.json
# src/file/document/body/body.ts
# src/file/document/body/section-properties/section-properties.ts
# src/file/file.ts
# src/file/media/media.ts
# src/file/styles/external-styles-factory.ts
# src/file/table/table-cell.ts
2018-08-09 23:21:24 +01:00
e9aecfac1c
Updated lint rules
2018-08-07 01:38:15 +01:00
12c8cb93f6
Clean up API
2018-08-07 01:25:28 +01:00
efe7d594b0
Add accessor to getter and setters
2018-08-03 02:29:58 +01:00
974eb510ef
Fix style
2018-07-24 12:37:15 +08:00
1fad9a666e
Let fonts suit for more characters
2018-07-24 12:24:26 +08:00