Commit Graph

38 Commits

Author SHA1 Message Date
034cd187ab change shading val -> type 2021-05-29 05:51:06 +03:00
ce2a0fb864 remove more duplicate classes; add additional values functions; clean up tests 2021-05-24 11:28:10 +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
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
4bc0421055 Add tests 2021-03-13 20:23:15 +00:00
6100ff4c4e Add declarative break() 2020-12-23 23:31:28 +00: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
120c3a7bbe :feat: support emphasis mark 2020-05-22 12:22:45 +08:00
de03f19b46 Remove unused code and improve coverage 2019-12-24 00:44:15 +00:00
7dfb016faa Make tab and page numbers declarative 2019-11-21 01:02:46 +00:00
49e85275c3 Fix tests 2019-08-13 10:53:29 +03:00
96efdf8b1a Merge branch 'master' of github.com:dolanmiu/docx into Numbering
# Conflicts:
#	src/file/paragraph/run/run.ts
2019-08-13 10:40:49 +03:00
a9fc40dad4 Add total number of pages in a section 2019-08-09 11:56:22 +03:00
b741db3050 Using a better demo naming system 2019-08-06 23:08:21 +01:00
82fef4c2b1 Fix tests 2019-08-06 22:27:16 +01:00
e45e7ffe06 Consolidate highlight and shadow API 2019-08-06 21:37:33 +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
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
a531713214 Remove usage of Utility class 2019-06-26 22:12:18 +01:00
fb65bb4207 Turn Run into a declaritive API 2019-06-17 01:51:57 +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
788205b14d Merge pull request #247 from dolanmiu/feat/number-of-pages
Add Total Number of pages element
2019-01-15 22:47:51 +01:00
ca5f6a56a5 Write tests 2019-01-15 21:40:19 +00:00
4e671eb512 Breaking change. Make all italic to italics. 2018-11-18 15:22:23 +00:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
42f723813a Merge branch 'master' into feat/refactor-bidi
# Conflicts:
#	demo/demo22.js
#	src/file/paragraph/run/run.ts
2018-08-08 20:20:22 +01:00
92da93a160 Rename to more readable names 2018-08-07 02:47:24 +01:00
f9c97a673e add complex font support to bold and italic 2018-08-06 12:14:51 +03:00
696b5daf5c rtl 2018-07-25 15:02:58 +03:00
3015b05c77 add rtl mode 2018-07-24 18:52:45 +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
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00