6d447033c9
Fix more spelling rules
2022-07-05 05:06:32 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
c38e70e25d
Update tests
2022-06-25 13:08:20 +01:00
233a29bfef
Fix tests and linting
2022-06-19 00:31:36 +01:00
d6ec275778
Merge remote-tracking branch 'github.com/master'
2022-06-17 17:53:13 +08:00
f1ab24c439
#1528 Adding numbering replacer on header and footer
2022-06-16 16:31:34 +01:00
c7b68a40e4
Add tests for get media data
2022-06-15 01:44:57 +01:00
b81086ab7a
feat: transfer comments property to File CoreProperties like numbering.
2022-03-07 20:02:14 +08:00
b2a09b512f
implement sample version of Comment feature.
2022-03-03 09:59:09 +08:00
d808b287a7
Simplify code
2021-12-02 17:37:27 +00:00
47099d0468
Change type of revision to a number
2021-10-08 15:55:58 -06:00
75290aeaf5
Adding numberingReplacer for styles.xml at next-compiler.ts
2021-09-16 13:03:34 +03:00
2b9c15a638
Upgrade prettier
2021-06-15 00:25:44 +01:00
60b7ce4785
clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting
2021-05-26 08:36:05 +03:00
3299c557a0
Make .addSection fully declarative
2021-03-19 20:53:56 +00:00
bd40b11ce4
#815 Rotation and flipping images
2021-03-15 02:41:37 +00:00
2fa8df7cf4
Add more tests
2021-03-14 00:44:12 +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
9327f2bfa1
Fix compiler tests
2021-03-04 01:30:42 +00:00
603dd36458
Merge pull request #789 from dolanmiu/feat/compat-mode
...
#627 Add footnotes relationships
2021-03-02 00:43:00 +00:00
3e58910bfc
Use document wrapper component
2021-03-02 00:06:11 +00:00
736ca6a46d
Merge branch 'master' into custom-properties
2021-03-02 00:01:03 +00:00
f90e84a88d
#627 Add footnotes relationships
2021-03-01 23:35:52 +00:00
c6e9696be0
#532 Make hyperlinks work on the Header and Footer
2021-03-01 03:28:35 +00:00
655b40d418
Work on moving Document into its own wrapper
2021-02-28 16:04:21 +00:00
870c222dd5
Allow custom text properties to be included
2020-08-03 17:08:04 +12:00
4f6a9f734c
Update prettier
2020-08-01 17:40:57 +01:00
c68dc8c52a
Make hyperlinks declarative
2019-12-18 21:11:15 +00:00
643e3c2f84
Finish making numbering declarative
2019-11-08 03:11:19 +00:00
a622c210ef
Progress on declaritive numbering
2019-11-04 20:19:09 +00:00
c93b74661b
Fix linting error
2019-10-30 08:59:29 -05:00
08ff092638
Allow image reuse
2019-10-29 21:44:04 -05:00
cc36ea7542
Optimise formatting to not over-format the same files
2019-09-22 20:45:24 +01:00
5ecdb48d43
Stop unnecessary casting
2019-08-15 00:48:36 +01:00
b609a17362
Update packer.ts
2019-08-09 09:41:58 +02:00
4b49fdbf8e
Update packer.ts
2019-08-09 00:19:44 +01:00
fd52c8cf47
Enable zip compression
2019-08-08 16:40:16 +02:00
9fdd07e7fe
Fix tests
2019-08-07 22:27:44 +01:00
d8b60d82f3
Turn Packer static
2019-08-07 22:12:14 +01:00
9938a8bcc0
Fix linting
2019-07-31 08:48:25 +01:00
ac5b15d0e3
Mandatory Sections
2019-07-31 08:48:02 +01:00
f33d6da65a
Merge branch 'master' into feat/declaritive
...
# Conflicts:
# src/file/paragraph/formatting/border.spec.ts
# src/file/paragraph/links/outline-level.spec.ts
# src/file/paragraph/run/run.spec.ts
2019-07-02 01:33:41 +01:00
384d144a85
Simplify multiple addXXX methods into a single add method
2019-06-25 01:52:02 +01:00
72c32378c5
Make prettified XML a Packer-wide configurable option
...
The xml() function was being passed a flag for pretty printing the XML in word/document.xml. This was causing some parsers (not Word itself) to break when they didn't expect whitepsace. It was also causing some files to be prettified and others to be ugly. This ensures consistent prettification.
2019-06-21 13:53:01 -07: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
52b78a583e
Merge pull request #202 from dolanmiu/feat/correct-mine-type
...
Remove async await for Compiler.compile
2019-01-03 10:45:56 +00:00
8db52212ab
Remove id from media
2018-12-24 16:50:53 +00:00
39066fb5f2
Add lifecycles to add image
2018-12-05 00:05:11 +00:00