034cd187ab
change shading val -> type
2021-05-29 05:51:06 +03:00
05a6ab77cc
improve test coverage
2021-05-26 10:14:19 +03:00
b05748da25
update file/styles
2021-05-25 04:27:10 +03: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
ff14fcae3a
remove from API delete()/IsDeleted(), and deleted check from prepForXml; not useful in declarative style API
2021-05-24 05:39:26 +03:00
780682a8f7
add test for ExternalStylesFactory when styles element is missing, to bump coverage
2021-05-20 05:03:12 +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
4fe2973473
Add enum to lineRule and create demo
2021-03-15 19:23:40 +00:00
a3febae8a3
Inline single use interfaces
2021-03-15 00:11:39 +00:00
0bc36d924f
Write tests
2021-03-13 22:10:00 +00:00
e98fe5921c
#713 Update chinese demo and refactor
2021-03-09 01:37:22 +00:00
0afe0929a3
Add strong default style
2020-12-22 21:08:10 +00:00
30ab92652c
move file options.defaultStyles to options.styles.default
2020-11-30 10:25:58 -06:00
8d4a07302b
Add defaultStyles option to overwrite the core default styles (Heading 1-6, document, hyperlinks, etc)
2020-11-24 13:30:26 -06:00
74db67689f
Re-name paragraph styles
2020-11-06 00:27:57 +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
36e1c5fe6a
:feat: refined defaults
2020-07-15 14:10:37 +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
fdfce79e87
:feat: Font for eastAsia
2020-06-07 12:38:03 +08:00
120c3a7bbe
:feat: support emphasis mark
2020-05-22 12:22:45 +08:00
212adbbffb
Add workaround for loading
2020-01-16 02:23:17 +00:00
2ee918b845
Add type and node type definition exports
2020-01-11 19:16:36 +00:00
b4cce534a5
Test contextual spacing
2019-12-12 11:44:00 +13:00
e0698554ad
Fix style linting error
2019-12-11 15:21:50 +13:00
1649d2a0fa
Allow contextual spacing to be specified as an argument to paragraph style
2019-12-11 15:10:46 +13:00
8eff6bd0cf
Declarative numbering work
2019-11-01 01:57:01 +00:00
db59474f1e
Remove unused method
2019-10-10 21:10:03 +01:00
1d5e806ff4
Add character style tests
2019-10-10 21:03:38 +01:00
40d1a3a7c2
Multiple tab stops
2019-10-09 20:56:31 +01:00
0d4c7a5fc0
Update documentation
2019-10-09 02:03:39 +01:00
10ab3c70bf
Add back default styles
2019-10-04 02:37:22 +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
edbb4ce9f2
Merge branch 'master' into feat/declaritive
2019-06-26 00:38:21 +01:00
f54b9a197d
Fix: add missing exports
2019-06-25 14:35:35 +02: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
1b336785b4
Add bold and italics to character style
2019-03-05 15:15:45 +01:00