7d1129900f
Fix: separate vertical alignment enums for ITableCellOptions and ISectionPropertiesOptions ( #3079 )
...
* fix: separate vertical alignment enums for table and section properties
- Introduced `VerticalAlignTable` for table-cell vertical alignment with valid values: `top`, `center`, and `bottom`.
- Added `VerticalAlignSection` for section properties, extending `VerticalAlignTable` with an additional value `both`.
- Marked the original `VerticalAlign` as deprecated for backward compatibility, directing users to the new enums.
- Updated type definitions for better clarity on valid vertical alignments.
* refactor: update vertical alignment imports and types for section and table properties
- Renamed `VerticalAlign` to `VerticalAlignSection` in section properties and `VerticalAlignTable` in table-cell properties for clarity.
- Updated type definitions to reflect the new enum names, ensuring better organization and understanding of vertical alignment options.
- Adjusted related test cases to utilize the new imports and types.
* refactor: update demos to use new enums for table and section properties for vertical alignment
2025-05-02 19:58:10 +01:00
1e6c9e1772
fix: omit empty descr/title in <wp:docPr> for Word 2007 compatibility ( #3073 )
2025-05-02 19:55:22 +01:00
44d4b93d06
feat: Added TableCellSpacing ( #3052 )
...
* feat: Added TableCellSpacingElement
* feat: Added cellSpacing (Table-constructor, TableProperties-constructor and ITableOptions)
* feat: Added cellSpacing (ITablePropertiesOptions and constructor implementation)
* feat: Added cellSpacing (ITableRowPropertiesOptions and constructor implementation)
* feat: Added cellSpacing (Implementation Test)
---------
Co-authored-by: Philip <1760073-philip.asx@users.noreply.gitlab.com >
2025-04-16 22:38:28 +01:00
7f26badbc9
feat: Added NumberedItemReference ( #3042 )
...
* feat: Added NumberedItemReference
* Fix linting
* ts-ignore until TypeScript upgrade
---------
Co-authored-by: Alexander Nortung <alexander.nortung@oakdigital.dk >
2025-04-16 08:54:50 +01:00
b19025881b
feat(comments): Support comment pictures ( #3032 )
...
* feat(comments): Support comment pictures
* fix(demo): Fix the image path to load the image correctly
* fix(test): Update the number of files asserted in the compiler test case
* feat(comments): Support comment pictures
* fix(demo): Fix the image path to load the image correctly
* fix(test): Update the number of files asserted in the compiler test case
* style(src): Format the code and remove extra blank lines
---------
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2025-04-16 08:45:36 +01:00
4d1a351649
Documentation and Refactoring ( #3028 )
...
* Documentation and Refactoring
* Documentation and Refactoring
* Fix lint issues
* Convert components to Builder style
---------
Co-authored-by: Dolan Miu <dmiu@bloomberg.net >
2025-04-14 16:43:15 +05:30
a708475539
export IPropertiesOptions for use by other libraries or code using docx library ( #2979 )
...
* export IPropertiesOptions for use by other libraries or code using docx library
* fixes #2978 : export OutputTypes
* Export file in main index file
* Move type export to inside
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2025-03-15 03:18:43 +00:00
a5454edc61
Feature/math improve ( #2976 )
...
* add new feature
* add test file
* update test file
* update test file
* Fix linting
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2025-03-15 03:04:01 +00:00
ebae72004c
Fix support for after auto-spacing. ( #2975 )
2025-03-14 23:44:09 +00:00
ee6db1429a
Add shading and border settings to paragraph style options. ( #2955 )
...
* Add shading and border settings to paragraph style options.
* Fix prettier
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2025-02-16 18:33:21 +00:00
ff37f3b460
fix: Ensure necessary namespaces are in patched doc ( #2698 )
...
* refactor: Extract timestamp properties
In preparation for reworking DocumentAttributes.
* refactor: Consolidate namespaces
* fix: Ensure necessary namespaces are in patched doc
Fixes #2697
* Fix tsc and ESLint errors
* Fix CSpell
* Add a test to fix code coverage failure
2025-01-06 22:19:00 +00:00
7b9b474484
Fix: custom fonts support on the Browser ( #2898 )
2024-12-19 02:08:52 +00:00
b89b571c4e
Fix replacer error on patches with empty Runs ( #2875 )
...
* Add test to demonstrate empty strings not creating runs
* Fix Run not creating Text child for empty strings
* Simplify TextRun constructor
Since `Run` already has a option for instantiating a `Text` element, we don't need to push children here.
* Add replacer test for empty runs
* Add replacer test for empty runs
* replacer: handle patches with empty runs
* Fix incorrect test name
2024-12-03 11:25:22 +00:00
3654eb0800
New Textbox Component ( #2718 )
...
* Adding textbox with no props
* Fixing namings and adding shape style
* simplify usage
* Fix linting issues
* Re-name demo
* Use new shape authoring style
* Add tests
Simplify API
* Add better types for styles
* Add more options to TextBox and add documentation
---------
Co-authored-by: zohar11 <zohar@sumit-ai.com >
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2024-11-28 10:33:19 +00:00
c6bb255641
Add hyphenation support ( #2678 )
...
* Add hyphenation support
* Remove unneeded linebreaks
* Add documentation and fix eslint
* Add tests
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-11-21 10:41:31 +00:00
2381ba8a05
build(deps-dev): bump eslint from 8.57.1 to 9.13.0 ( #2792 )
...
* build(deps-dev): bump eslint from 8.57.1 to 9.13.0
Bumps [eslint](https://github.com/eslint/eslint ) from 8.57.1 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Upgrade EsLint
* Fix all new lint errors
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-10-21 03:57:15 +01:00
0cadec7f58
build(deps-dev): bump @typescript-eslint/parser from 6.17.0 to 8.8.1 ( #2742 )
...
* build(deps-dev): bump @typescript-eslint/parser from 6.17.0 to 8.8.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 6.17.0 to 8.8.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.8.1/packages/parser )
---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix type definitions
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-10-11 04:47:51 +01:00
e86dbd3398
Change ImageRun keys to be based on image data content ( #2681 )
...
Co-authored-by: Dolan <dolan_miu@hotmail.com >
2024-10-11 01:13:51 +01:00
8308b6413e
Add documentation
2024-10-10 00:38:25 +01:00
f98f852a55
Allow disabling numbering inherited from a paragraph style ( #2531 )
2024-05-20 03:15:11 +01:00
022b25cfcd
Export FileChild class ( #2523 )
2024-01-25 01:53:26 +00:00
e20bd66663
Limit the list of supported highlight colors ( #2522 )
...
* Limit the list of supported highlight colors
* Fix tests: use fixed highlight color values
---------
Co-authored-by: ilyasogonov <sogonov.ilya@customscard.ru >
2024-01-12 00:16:15 +00:00
75715fde37
Fix the incorrect limit location value of MathIntergral #2512 ( #2513 )
2024-01-04 02:42:05 +00:00
c4ed19e589
Add math limit component ( #2510 )
2024-01-03 00:13:13 +00:00
24c159de37
Add SVG image suport ( #2487 )
...
* Add SVG blip extentions
* SVG Image feature now works
* Add and simplify tests
* Fix falsey issue with file
Write tests
100% Coverage
2023-12-31 18:54:35 +00:00
010ef05ce3
Feat/embedded fonts ( #2174 )
...
* #239 Embedded fonts
* Add boilerplate for font table
* Fix linting
* Fix linting
* Fix odttf naming
* Correct writing of fonts to relationships and font table
new uuid function
* Add font to run
* Add demo
Fix tests
* Add character set support
* Add tests
* Write tests
2023-12-30 02:23:54 +00:00
fa401297da
Re-name variables ( #2486 )
2023-12-29 23:52:43 +00:00
b8f97553b3
#933 Discriminated union for frame alignment ( #2477 )
2023-12-29 15:07:42 +00:00
d23f453d28
Add image borders ( #2472 )
...
* Add image borders
* Fix prettier
* Fix spelling
* Fix spelling
* Finish feature
* Update demo
* Try and fix demo 14
2023-12-27 20:20:45 +00:00
6c28f8bab0
Page number in section ( #2485 )
...
* Page number in section
* Inline Lorem Ipsum
* Re-name current page in section to current section
2023-12-25 22:29:32 +00:00
1bf36009e8
#916 Add overflow punctuation ( #2478 )
...
* #916 Add overflow punctuation
* Fix tests
2023-12-25 04:09:54 +00:00
a3c796aae3
Add deprecation warning to addChildElement ( #2476 )
2023-12-25 02:54:46 +00:00
c3080ff9d9
Update vitest ( #2475 )
...
* Update vitest
* Update vite test config
* Fix coverage metrics and bump coverage
2023-12-25 02:47:43 +00:00
2bd4aacdd5
#2388 - Add default tab stop ( #2470 )
...
* #2388 - Check for undefined rather than falsey
* Add default tab stop
* Add back tab stop positions
* Add test for default tab stop
2023-12-24 03:37:36 +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
d83e089cd3
add run options to ParagraphPropertiesOptions ( #2457 )
2023-12-22 01:21:12 +00:00
579593a467
Run prop snapToGrid should be false
2023-12-06 10:15:46 +08:00
35702c3f77
Upgrade @typescript-eslint/parser
2023-11-01 22:52:41 +00:00
d4f160732a
Use Record instead of Object
2023-11-01 20:56:02 +00:00
379050dccd
Merge pull request #1 from dolanmiu/master
2023-10-27 03:31:07 +08:00
3a36d912fe
changed default section margin from inch to Twip
2023-10-12 12:14:13 +09:00
3997b7a5d6
fix : #2082 Numbering instance restart number not work since v8.0.0 and work well in v7.8.2
2023-09-13 17:08:59 +08:00
8da57bec51
Bump prettier
...
Fix new prettier issues
2023-07-21 20:11:52 +01:00
dfffb066f3
Fix override order in default styles
2023-06-28 21:40:20 +01:00
210d9c58f2
Improve API for check boxes
2023-06-25 03:09:29 +01:00
414d0248f5
Update Checkbox test description
2023-06-23 15:36:08 -04:00
fa400bcf39
update CheckBox and tests to handle optional alias field
2023-06-23 13:06:18 -04:00
9e9ca526fe
Prettier syntax update of sdt-properties
2023-06-23 13:05:21 -04:00
41c0fb5fc0
Update sdt-properties to make alias optional
2023-06-23 13:04:28 -04:00
58e7dbf445
Revert "Modify sdt-properties to accommodate for children elements"
...
This reverts commit f706d8e62d
.
2023-06-22 15:39:39 -04:00