Commit Graph

133 Commits

Author SHA1 Message Date
cbbc4a80e7 FIx up API for column count 2019-06-28 01:57:43 +01:00
edbb4ce9f2 Merge branch 'master' into feat/declaritive 2019-06-26 00:38:21 +01:00
e2574ec23b Turn methods into "add()" 2019-06-25 23:17:56 +01:00
c97d15cb9f Remove create table helper function 2019-06-25 01:21:28 +01:00
1dfc27ba08 Multiple columns in a section 2019-06-21 01:22:27 +05:30
7bc00926eb Merge branch 'master' of github.com:dolanmiu/docx into feat/declaritive 2019-06-17 01:52:46 +01:00
cb42c74a8d Make Paragraph declaritive 2019-06-12 01:03:36 +01:00
a5afce458d Merge pull request #262 from aravindballa/master
Feature: add line numbers to section
2019-06-05 17:38:49 +01:00
2f687125d1 fix lint issue in section-properties.ts 2019-06-05 13:01:24 +05:30
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
193d0c4239 Merge pull request #299 from filippomuscolino/fix-duplicated-section
Fix: duplicated generation of last section properties
2019-04-05 01:07:10 +01:00
272e2496f4 Fix duplicated generation of last section properties 2019-04-04 17:43:54 +02:00
2cb7d44a77 Work on new table API 2019-03-13 02:29:11 +00:00
918faf59c3 Merge pull request #273 from dolanmiu/feat/table-merge-fix
Add higher width for GridCol to fix merging cells
2019-02-26 21:53:14 +00:00
218a08d793 Fix tests 2019-02-26 21:45:55 +00:00
8f133ff93a add example for line numbers 2019-02-06 13:26:18 +05:30
1f12e159ef add line numbers to section 2019-02-04 18:49:12 +05:30
e3bcad6d3c Fix missing media in Document Template 2019-01-04 00:11:50 +00:00
5552f9d834 The page number type attribute of the sections was always been created, leading Word to always reset page numbers to zero in new sections.
The page number type DECIMAL is already the default in Word, there is no need to force this to be the default option in the default section, like it was.
2018-11-09 09:13:27 -02:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
61411fd0f3 Add tests 2018-11-01 02:22:32 +00:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
9c66db97ff Use single media instead of multiple 2018-10-23 00:31:51 +01:00
97f76fb62c Change to new header API 2018-10-05 01:33:17 +01:00
466e880bfc Merge from master 2018-09-25 23:46:55 +01:00
17d696e33a merge with master, demo27 became demo28 2018-09-21 07:40:58 -03:00
f2b50478bf Fix tests and use proper types for disregarding XMLComponent 2018-09-20 00:41:57 +01:00
a9c69664c7 Merge pull request #156 from bre7/master
Added mirror margins option
2018-09-19 12:40:31 +01:00
50569224c3 Fixed tests (included mirrorMargins attr) 2018-09-18 23:50:10 -03:00
e6d4741955 Merge branch 'master' of https://github.com/dolanmiu/docx into importDotx
# Conflicts:
#	src/file/file.ts
2018-09-19 01:53:52 +01:00
fcb542471b Added mirror margins options 2018-09-18 21:03:20 -03:00
8e911698a5 generating the content for a table of contents 2018-09-18 05:24:19 -03:00
d63e6bf6b1 Revert back body test 2018-09-17 21:44:12 +01:00
1c376abeb6 Fix demo 8 2018-09-17 21:15:24 +01:00
edce1bef92 Allow creating Styles and assigning them to File.Styles
Closes #109
2018-09-17 12:48:21 -05:00
d1d1e01aff lint fix 2018-09-17 11:29:01 +03:00
980bc597e2 test fixes 2018-09-17 11:24:56 +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
e08be3d7a4 update template 2018-09-04 17:31:30 +03:00
03c4190c2c works! 2018-09-04 17:16:31 +03:00
5f594a822f Fix and enable linting on tests 2018-08-09 23:29:40 +01:00
89df3c48e0 Fix linting errors 2018-08-09 23:22:03 +01:00
3436a1584c Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
# Conflicts:
#	package.json
#	src/file/document/body/body.ts
#	src/file/document/body/section-properties/section-properties.ts
#	src/file/file.ts
#	src/file/media/media.ts
#	src/file/styles/external-styles-factory.ts
#	src/file/table/table-cell.ts
2018-08-09 23:21:24 +01:00
e9aecfac1c Updated lint rules 2018-08-07 01:38:15 +01:00
efe7d594b0 Add accessor to getter and setters 2018-08-03 02:29:58 +01:00
5f22950721 Change image API so that it now sends Images 2018-08-03 00:01:42 +01:00
31fdf08c27 Make function return Image rather than PictureRun 2018-08-02 21:14:53 +01:00
f7c02f4679 Revert returning Paragraph 2018-08-02 02:32:57 +01:00