e4709a7f8d
simplify core-properties; add xsd comment
2021-05-26 09:27:05 +03:00
22e62ed950
add NumberValueElement, representing a simple element with a single number value <foo w:val="1234"/>
2021-05-24 21:05:29 +03:00
ce2a0fb864
remove more duplicate classes; add additional values functions; clean up tests
2021-05-24 11:28:10 +03:00
ee105cdb83
Simplify run format properties, removing duplicate classes. Add values functions, which check and clean up values for specific defined types from the schema
2021-05-24 08:20:08 +03:00
acc23be297
remove unnecessary function expression in prepForXml
2021-05-24 05:39:26 +03:00
ff14fcae3a
remove from API delete()/IsDeleted(), and deleted check from prepForXml; not useful in declarative style API
2021-05-24 05:39:26 +03:00
a3febae8a3
Inline single use interfaces
2021-03-15 00:11:39 +00:00
566ac03f9a
Use context in prep xml
2021-03-11 01:06:55 +00:00
c6e9696be0
#532 Make hyperlinks work on the Header and Footer
2021-03-01 03:28:35 +00:00
d18cfbc26f
Update tslint to v6
2020-08-01 17:58:16 +01:00
c68dc8c52a
Make hyperlinks declarative
2019-12-18 21:11:15 +00:00
fa710d1ba6
Highlighting
2019-08-06 11:13:43 +03:00
564a055316
Remove jsonify method
2019-06-26 02:11:43 +01:00
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
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
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
d19cdcae0c
Rename methods
2019-01-11 01:45:57 +00:00
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
a84eb16392
Merge branch 'master' into importDotx
...
# Conflicts:
# src/import-dotx/import-dotx.ts
2018-10-31 22:09:36 +00:00
3355a6f472
Added back tests and method
2018-10-31 21:57:10 +00:00
4742cf0f3f
Clean imports
2018-10-26 01:04:07 +01:00
3f3fd05cb1
works
2018-10-17 09:15:32 +03:00
9d9dd62f00
c
2018-10-16 11:28:25 +03:00
f2b50478bf
Fix tests and use proper types for disregarding XMLComponent
2018-09-20 00:41:57 +01:00
2e00634bc4
Fix tests but break demo 27
2018-09-17 22:06:38 +01:00
b6bd532295
Use dedicated XmlComponent rather than polute pure one
2018-09-17 20:22:11 +01:00
c5b004166d
Add back comp null check
2018-09-17 20:18:31 +01:00
fcbfed9068
Revert code
2018-09-14 02:33:36 +01: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
010fde6258
commit
2018-08-29 18:36:48 +03:00
7b43551148
Merge pull request #123 from dolanmiu/feat/h4-update
...
Feat/h4 update
2018-08-10 00:30:53 +01:00
ad356d2759
Add ignores so it doesnt get generated in documentation
2018-08-09 23:40:11 +01:00
5f594a822f
Fix and enable linting on tests
2018-08-09 23:29:40 +01:00
12c8cb93f6
Clean up API
2018-08-07 01:25:28 +01:00
55005b57c6
Fix linting and style errors
2018-06-09 23:49:01 +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
ac40a40ec0
refactor: move components from /drawing/inline to /drawing
...
- they will be used for other positioning element (floating)
2018-06-08 07:50:23 +02:00
97e976a184
import: add support to import any xml tab element to XmlComponent ( #8 )
...
- make method to import/convert to XmlComponent
- expose method to add childElement to Header/Footer
- add tests
2018-05-28 09:15:44 +02:00
dadd8c122f
fixed formatting styles
2018-05-17 15:32:15 +02:00
0c9c292291
Fix tests. _attr is needed
2018-05-06 03:27:58 +01:00
573dd753a7
Fix styling and linting
2018-05-06 03:19:36 +01:00
af485c678d
Merge branch 'master' of https://github.com/h4buli/docx into feat/h4buli-update
...
# Conflicts:
# package.json
# src/file/numbering/numbering.ts
2018-05-06 02:57:15 +01:00
dc136daeab
tables: add option to pass column size when creating a table
...
- add optionto the XmlComponent to `delete`/skip elements when exporting to xml
2018-04-26 14:16:02 +02:00
3691d79a4a
add method to add child to an element
2018-04-23 11:49:57 +02:00
5242f7d55c
styles: support for external styles. parsing external styles.
2018-03-28 14:54:07 +02:00
05816abc12
Add scalable image feature
2018-03-24 19:06:10 +00:00
ee958dc351
Fix exported type definitions
2018-02-02 01:56:08 +00:00
e93d6799fd
Made project Prettier compliant
2018-01-23 01:33:12 +00:00