Dolan Miu
bf80311ef7
Add new section method
2019-07-07 20:23:42 +01:00
Dolan
58346a8937
Section WIP
2019-07-07 03:54:29 +01:00
Dolan
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
Dolan
9e8d67c4a9
Version bump
5.0.0-rc4
2019-06-28 01:59:18 +01:00
Dolan
cbbc4a80e7
FIx up API for column count
2019-06-28 01:57:43 +01:00
Dolan
1f51fd7a31
Remove usage of Utility
2019-06-27 01:35:58 +01:00
Dolan
120d97bc64
Remove Utility
2019-06-27 01:10:39 +01:00
Dolan
a531713214
Remove usage of Utility class
2019-06-26 22:12:18 +01:00
Dolan
564a055316
Remove jsonify method
2019-06-26 02:11:43 +01:00
Dolan
6c29c4fb1f
Merge pull request #343 from markcharyk/no-pretty-xml
...
Make prettified XML a Packer-wide configurable option
2019-06-26 00:44:33 +01:00
Dolan
edbb4ce9f2
Merge branch 'master' into feat/declaritive
2019-06-26 00:38:21 +01:00
Dolan
e2574ec23b
Turn methods into "add()"
2019-06-25 23:17:56 +01:00
Dolan
3ef8f5311d
Make fixed layout declaritive
2019-06-25 20:57:46 +01:00
Dolan
552580bc47
Merge pull request #340 from filippomuscolino/feat/row-height
...
Add table row height
2019-06-25 20:18:17 +01:00
Dolan
0998d43b8f
Merge pull request #341 from filippomuscolino/fix/missing-exports
...
Fix: add missing exports
2019-06-25 15:38:13 +01:00
fmuscolino
b08354494c
Improve tests
2019-06-25 14:48:45 +02:00
fmuscolino
f54b9a197d
Fix: add missing exports
2019-06-25 14:35:35 +02:00
fmuscolino
2d4412ce51
Add table row height
2019-06-25 12:02:53 +02:00
Dolan
b566b0f765
Simplify multiple addXXX methods into a single add method for Footer
2019-06-25 01:58:09 +01:00
Dolan
384d144a85
Simplify multiple addXXX methods into a single add method
2019-06-25 01:52:02 +01:00
Dolan
c97d15cb9f
Remove create table helper function
2019-06-25 01:21:28 +01:00
Dolan
dfe986331d
Make media return a picture run instead
2019-06-23 22:36:01 +01:00
Mark Charyk
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
Dolan
0c79c0ac83
Merge pull request #337 from zahrafali/multiple-columns
...
Multiple columns in a section
2019-06-21 15:36:33 +01:00
Zahra
1dfc27ba08
Multiple columns in a section
2019-06-21 01:22:27 +05:30
Dolan
427dc86915
Fix demos
2019-06-17 01:54:48 +01:00
Dolan
7bc00926eb
Merge branch 'master' of github.com:dolanmiu/docx into feat/declaritive
2019-06-17 01:52:46 +01:00
Dolan
fb65bb4207
Turn Run into a declaritive API
2019-06-17 01:51:57 +01:00
Dolan
a1cd5e9573
Use new Paragraph API
2019-06-13 22:36:42 +01:00
Dolan
5497dabaf9
Deprecate createParagraph in all demos
2019-06-13 01:07:00 +01:00
Dolan
58dc6fe389
Format demo
2019-06-12 01:12:32 +01:00
Dolan
34c3285426
Version bump
5.0.0-rc3
2019-06-12 01:07:53 +01:00
Dolan
cb42c74a8d
Make Paragraph declaritive
2019-06-12 01:03:36 +01:00
Dolan
a5afce458d
Merge pull request #262 from aravindballa/master
...
Feature: add line numbers to section
2019-06-05 17:38:49 +01:00
Aravind Balla
2f687125d1
fix lint issue in section-properties.ts
2019-06-05 13:01:24 +05:30
Dolan
5c1a731314
Version bump
5.0.0-rc2
2019-05-16 22:15:50 +01:00
Dolan
622331ad24
Merge pull request #324 from Scarface2013/master
...
Fix merging of 3+ cells vertically
2019-05-16 21:06:20 +01:00
Travis Fletcher
3a593a53d3
Fix tests
2019-05-16 11:15:20 -04:00
Travis Fletcher
31a9111667
Fix merging of 3+ cells vertically
2019-05-15 18:14:39 -04:00
Dolan
373c890354
Add docsify serve
2019-04-30 00:30:18 +01:00
Dolan
723d76d06f
Merge pull request #314 from efx/fix-doc-links
...
fix broken documentation links
2019-04-29 12:08:27 +01:00
Eli Flanagan
a24d745d75
fix broken documentation links
2019-04-25 09:49:44 -04:00
Dolan
90891cfafd
Merge pull request #310 from nickgeorgiou/feat/margin-spelling-fix
...
Fix spelling of "margin"
2019-04-18 17:10:00 +01:00
Nick Georgiou
29f890918c
Fix spelling of "margin"
2019-04-18 13:55:18 +10:00
Dolan
b0f8f8ddbd
Merge pull request #308 from filippomuscolino/master
...
Update documentation
2019-04-12 14:43:32 +01:00
fmuscolino
9c89c1ab59
Update docs
2019-04-12 13:46:05 +02:00
Dolan
7a9cb92955
Merge pull request #307 from brucehappy/features/xml_optimization
...
Optimize XML output
2019-04-11 22:50:10 +01:00
Bruce Duncan
77edf8862b
Added constant EMPTY_OBJECT (an empty sealed object) that is used to indicate to the xml
library that an empty XML element should be generated, and use it in the JSON hardcoded into the tests.
2019-04-10 13:47:38 -04:00
Bruce Duncan
bb1604cd8f
Turn back on no-null-keyword. Use empty object instead of null
to signal to the xml
library that an empty element should be produced. Update the related tests.
...
Related to #306
2019-04-10 01:28:37 -04:00
Bruce Duncan
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