0ac23d0646
Add tests and bump coverage
2022-09-22 07:19:14 +01:00
ebcb37cbed
Fix ESLinting errors and remove TSLint
2022-08-31 08:59:27 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
9827ed30bb
Write tests, improve API, create documentation
2022-06-22 23:35:46 +01:00
60b7ce4785
clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting
2021-05-26 08:36:05 +03:00
63cea76eac
update file/document and section-properties
2021-05-25 03:43:16 +03:00
f5e35603ef
remove invalid w:mirrorMargins attribute from w:pgMar
2021-05-20 03:42:10 +03:00
30912e7aaf
Fix ordering of elements in table-cell-borders and section-properties
2021-05-20 02:18:17 +03:00
3299c557a0
Make .addSection fully declarative
2021-03-19 20:53:56 +00:00
6746f81da5
Fix tests
2021-03-16 02:26:05 +00:00
131183ae19
#613 #439 Even and odd headers
2021-03-16 00:57:27 +00:00
89c2e14979
Merge branch 'master' of github.com:dolanmiu/docx into feature/separator
...
# Conflicts:
# src/file/document/body/section-properties/section-properties.ts
2021-03-09 22:37:37 +00:00
e98fe5921c
#713 Update chinese demo and refactor
2021-03-09 01:37:22 +00:00
2d4a452d2e
Merge branch 'master' into feat/right-indent
...
# Conflicts:
# demo/21-bookmarks.ts
# package-lock.json
# src/file/core-properties/properties.ts
# src/file/file.spec.ts
# src/file/file.ts
# src/file/footnotes/footnote/footnote.spec.ts
# src/file/footnotes/footnote/footnote.ts
# src/file/footnotes/footnotes.ts
2021-03-08 03:40:11 +00:00
f3f65da207
#732 Add line between columns (separate)
2021-03-04 03:02:07 +00:00
f90e84a88d
#627 Add footnotes relationships
2021-03-01 23:35:52 +00:00
655b40d418
Work on moving Document into its own wrapper
2021-02-28 16:04:21 +00:00
0de7116b78
#773 Better hyperlink and bookmark syntax
...
Allow for images to be hyperlinked as well
2021-02-27 19:23:29 +00:00
c7ea26e422
Add tests
2020-11-04 01:28:46 +00:00
db7c4da609
Add ability to add multiple text runs to a bookmark
2020-01-01 22:54:42 +00:00
9c11653313
Multiple paragraphs in footnotes
2020-01-01 20:22:42 +00:00
f8da2c311b
Merge branch 'master' of github.com:dolanmiu/docx into feat/right-indent
2019-12-27 01:37:37 +00:00
f6bcaef5b5
Fix test
2019-12-27 01:29:15 +00:00
1a9e71bfa1
Add children and section tests for File
2019-12-27 01:21:19 +00:00
3591e11637
Add hyperlink cache test
2019-12-24 16:31:35 +00:00
96471ecb45
Fix for empty first paragraph
...
If there is only one section, remove the extraneous empty paragraph during XML creation.
2019-12-15 22:56:24 +02:00
2bece0bb61
Make create footnote declarative
2019-12-03 23:04:48 +00:00
a37c9d8f2f
Revert "fix: try to remove unnecessary paragraph", which caused #418
...
This reverts commit cb74868247
.
2019-10-03 22:12:23 -05:00
418adca9f3
Declarative tables
2019-09-13 00:51:20 +01:00
cb74868247
fix: try to remove unnecessary paragraph
2019-08-29 20:52:05 +09:00
9938a8bcc0
Fix linting
2019-07-31 08:48:25 +01:00
ac5b15d0e3
Mandatory Sections
2019-07-31 08:48:02 +01:00
58346a8937
Section WIP
2019-07-07 03:54:29 +01:00
e2574ec23b
Turn methods into "add()"
2019-06-25 23:17:56 +01:00
384d144a85
Simplify multiple addXXX methods into a single add method
2019-06-25 01:52:02 +01:00
c97d15cb9f
Remove create table helper function
2019-06-25 01:21:28 +01: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
2cb7d44a77
Work on new table API
2019-03-13 02:29:11 +00:00
dbfb80e660
Add more tests
2019-01-03 02:36:56 +00:00
0725e54271
Add tests
2018-12-16 01:56:42 +00:00
9cfd835171
More tests
2018-11-02 00:42:49 +00:00