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
32646f8806
Add outline level to paragraph style
2019-03-05 12:19:36 +01:00
d19cdcae0c
Rename methods
2019-01-11 01:45:57 +00:00
50e08f198c
Linter ajusts
2018-11-13 11:04:29 -02:00
7639b60b15
Refactor to separate classes in their specific files an tests improuvements for styles
2018-11-13 11:04:03 -02:00
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
61411fd0f3
Add tests
2018-11-01 02:22:32 +00:00
a84eb16392
Merge branch 'master' into importDotx
...
# Conflicts:
# src/import-dotx/import-dotx.ts
2018-10-31 22:09:36 +00:00
4742cf0f3f
Clean imports
2018-10-26 01:04:07 +01:00
3f3fd05cb1
works
2018-10-17 09:15:32 +03:00
466e880bfc
Merge from master
2018-09-25 23:46:55 +01:00
5d1740a2ef
Style fixes
2018-09-20 16:54:58 -03:00
7aa44568d8
Improve fluency (dsl like)
...
addRunProperty / addParagraphProperty should also return this
2018-09-20 15:51:57 -03:00
6da3efdacc
Added character spacing attribute
2018-09-19 18:41:55 -03:00
2e00634bc4
Fix tests but break demo 27
2018-09-17 22:06:38 +01:00
980bc597e2
test fixes
2018-09-17 11:24:56 +03:00
5f594a822f
Fix and enable linting on tests
2018-08-09 23:29:40 +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
92da93a160
Rename to more readable names
2018-08-07 02:47:24 +01:00
696b5daf5c
rtl
2018-07-25 15:02:58 +03: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
796e000826
feature: add support for section page borders
2018-07-03 13:48:31 +02:00
5dc82d8176
Add styles to footnote
2018-06-28 03:01:25 +01:00
ed72d60951
external-styles: create correct XmlComponents from imported style
2018-06-27 21:55:15 +02:00