c3080ff9d9
Update vitest ( #2475 )
...
* Update vitest
* Update vite test config
* Fix coverage metrics and bump coverage
2023-12-25 02:47:43 +00:00
a756a7697c
Change all project enums to objects with as const ( #2445 )
...
* feat: change all enums to as const objects
* Add word to dictionary
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2023-12-22 01:25:00 +00:00
e69b063687
Porting tests over to vitest
2023-06-05 00:33:43 +01:00
a0437381e7
fix: do not use static numeric counters
2023-04-28 13:17:02 +03:00
704c678333
fix: unit tests fix
2023-04-19 16:51:03 +03:00
c59c5350fd
fix: added unique numeric id creator to avoid numbering render errors
2023-04-18 15:15:38 +03:00
7d8cfc0382
Move SpaceType to shared
2022-10-29 03:10:29 +01:00
e90d97b813
Use new eslint-plugin-functional instead of tslint-immutable
2022-09-15 20:00:50 +01:00
1bdf9a4987
Initial ESlint conversion
2022-08-31 07:52:27 +01:00
ba4dc2ed54
Fix formatting
2022-08-25 01:40:14 +01:00
85bafb3eef
Update hyperlink.ts
...
ExternalHyperlink extends XmlComponent
2022-07-23 15:03:04 +08:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
f414b4ee9a
#1529 Add word break feature
2022-06-15 00:07:12 +01:00
54565e2228
fix #1261 use numeric ids with bookmarkStart and bookmarkEnd to conform to schema
2021-10-26 20:10:10 -05:00
ce2a949176
Re-name PageRef to PageReference
2021-09-08 00:41:40 +01:00
dc2f9c3bdc
Allow other types in bookmarks
2021-09-01 12:20:54 -06:00
41f516d64b
Make the internal hyperlink consistent
2021-08-31 19:54:33 -06:00
c1cc211c7f
Add children to hyperlink
2021-08-27 16:53:11 -06:00
3f257bf5a4
Add the pageref element
...
This instruction is useful if you want to get the number of the page
containing a specific bookmark.
2021-08-03 21:17:32 +02:00
a3febae8a3
Inline single use interfaces
2021-03-15 00:11:39 +00:00
0b88cb0ca5
#548 #508 Restart numbered lists
2021-03-12 03:58:05 +00:00
2d4a452d2e
Merge branch 'master' into feat/right-indent
...
# Conflicts:
# demo/21-bookmarks.ts
# package-lock.json
# src/file/core-properties/properties.ts
# src/file/file.spec.ts
# src/file/file.ts
# src/file/footnotes/footnote/footnote.spec.ts
# src/file/footnotes/footnote/footnote.ts
# src/file/footnotes/footnotes.ts
2021-03-08 03:40:11 +00:00
0de7116b78
#773 Better hyperlink and bookmark syntax
...
Allow for images to be hyperlinked as well
2021-02-27 19:23:29 +00:00
db7c4da609
Add ability to add multiple text runs to a bookmark
2020-01-01 22:54:42 +00:00
de03f19b46
Remove unused code and improve coverage
2019-12-24 00:44:15 +00:00
b83d2c388f
Make Bookmark declarative
2019-12-21 03:59:40 +00:00
3fdbca939e
Make internal hyperlink declarative
2019-12-21 03:31:09 +00:00
c68dc8c52a
Make hyperlinks declarative
2019-12-18 21:11:15 +00:00
e8410ff692
fix lint
2019-11-08 11:22:27 +01:00
3427d220c7
fix hyperlink id
2019-11-08 11:01:26 +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
1f51fd7a31
Remove usage of Utility
2019-06-27 01:35:58 +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
cb42c74a8d
Make Paragraph declaritive
2019-06-12 01:03:36 +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
3e2130bc80
Customize text run of an hyperlink
2019-03-05 15:15:58 +01:00
bf8dfe6604
Fix for prettier
2019-01-15 16:13:20 +01:00
b0ee0305fb
Add OutlineLevel Paragraph property
2019-01-15 15:39:48 +01: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
985ea30d36
tests
2018-07-24 16:56:27 -04:00
cc904ee211
style fix
2018-07-24 16:00:55 -04:00
8ceb38963e
initial functionality
2018-07-24 15:56:13 -04:00
68cb57aea6
fix style issues
2018-05-06 23:18:00 -05:00
ac40e13e33
added support for hyperlinks
2018-05-06 22:20:56 -05:00