Commit Graph

47 Commits

Author SHA1 Message Date
66a1992da0 Add ImageRun feature 2023-03-03 23:47:50 +00:00
fe8b0a6b2b #1699 Allow images to work with Hyperlink
Add stack to IContext for prepForXml
2022-12-26 15:12:44 +00:00
e90d97b813 Use new eslint-plugin-functional instead of tslint-immutable 2022-09-15 20:00:50 +01:00
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
a7d55a52f3 #1583 Comments to always write default data 2022-07-12 16:57:25 +01:00
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
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
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
75290aeaf5 Adding numberingReplacer for styles.xml at next-compiler.ts 2021-09-16 13:03:34 +03:00
60b7ce4785 clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting 2021-05-26 08:36:05 +03:00
566ac03f9a Use context in prep xml 2021-03-11 01:06:55 +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
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
cc36ea7542 Optimise formatting to not over-format the same files 2019-09-22 20:45:24 +01:00
d8b60d82f3 Turn Packer static 2019-08-07 22:12:14 +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
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
765a9686d8 Remove async await for Compiler.compile 2018-11-12 13:17:53 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
466e880bfc Merge from master 2018-09-25 23:46:55 +01:00
4ca81df401 TOC content generation aborted 2018-09-21 11:16:14 -03:00
c07b5cf709 added settings.xml back 2018-09-20 10:11:59 -03:00
8e911698a5 generating the content for a table of contents 2018-09-18 05:24:19 -03:00
0eb36be053 there is no need for the settings.xml file anymore 2018-09-17 22:09:05 -03:00
146d0ad9e5 Moved addTableOfContents to File and creating a settings.xml and applying updateFields=true when there is a table of contents 2018-09-10 10:01:26 -03:00
385ad92331 Fix linting errors 2018-09-07 21:48:59 +01:00
4994bca34c Fix some linting errors 2018-09-06 08:30:23 +01:00
03c4190c2c works! 2018-09-04 17:16:31 +03:00
a38abeb4c2 Huge refactoring to use new compiler and deprecate all other Packers
Add new PdfPacker
2018-08-14 01:46:48 +01:00
f15fdb921e Merge branch 'master' into feat/browser-packer
# Conflicts:
#	demo/demo13.js
#	package.json
#	src/export/packer/compiler.ts
#	src/file/media/data.ts
#	src/file/media/media.ts
2018-08-10 01:40:29 +01:00
06418655c0 Add image support to new packer 2018-04-24 22:35:31 +01:00
c99b2940c6 Add next gen compiler using JSZip 2018-04-24 21:12:09 +01:00