Commit Graph

40 Commits

Author SHA1 Message Date
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
a531713214 Remove usage of Utility class 2019-06-26 22:12:18 +01:00
564a055316 Remove jsonify method 2019-06-26 02:11:43 +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
8f6984580a Add Number of pages element 2019-01-15 02:09:38 +00:00
4e671eb512 Breaking change. Make all italic to italics. 2018-11-18 15:22:23 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
23dee01f06 Created classes and methods needed to create Sequential Identifiers 2018-10-19 16:50:51 -03:00
8b463b3bb6 updated clone deep dependency and make fields dirty to be updated when word is opened 2018-09-21 10:26:28 -03:00
17d696e33a merge with master, demo27 became demo28 2018-09-21 07:40:58 -03:00
6da3efdacc Added character spacing attribute 2018-09-19 18:41:55 -03:00
a367951d07 moved Begin, Separate and End from page-number.ts to field.ts 2018-09-03 10:54:53 -03: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
9a1313fe89 Merge pull request #114 from amitm02/complex-font-bold
add bold and italic formatting support for complex font (e.g Hebrew)
2018-08-07 14:30:52 +01:00
92da93a160 Rename to more readable names 2018-08-07 02:47:24 +01:00
e9aecfac1c Updated lint rules 2018-08-07 01:38:15 +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
b9e702086a Merge branch 'master' into feat/footnotes
# Conflicts:
#	demo/demo16.js
#	src/file/file.ts
2018-06-27 23:34:23 +01:00
99290d646e Add footnote support to API 2018-06-25 19:49:46 +01:00
55005b57c6 Fix linting and style errors 2018-06-09 23:49:01 +01:00
deccfd7cc9 Add back scale functionality 2018-06-09 23:33:52 +01:00
0f4c2e64f4 Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
# Conflicts:
#	package.json
#	src/file/drawing/drawing.ts
#	src/file/media/media.ts
#	src/file/paragraph/run/picture-run.ts
#	src/file/styles/external-styles-factory.ts
#	src/file/xml-components/imported-xml-component.ts
2018-06-09 23:29:59 +01:00
97b254ee7b add support for floating drawings
- added need elements and test for them
2018-06-08 16:03:04 +02:00
7584671312 Fixed TSLint Errors 2018-05-18 09:21:27 -06:00
8d35dc1bb0 Added tests, renamed pagenumber to page-number 2018-05-17 13:32:33 -06:00
87648a742c Initial Commit 2018-05-12 20:04:54 -04:00
05816abc12 Add scalable image feature 2018-03-24 19:06:10 +00:00
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
0355afe11c Rename IData to something more reasonable 2017-12-30 21:18:55 +00:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00