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
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
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
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
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
35702c3f77
Upgrade @typescript-eslint/parser
2023-11-01 22:52:41 +00:00
3a36d912fe
changed default section margin from inch to Twip
2023-10-12 12:14:13 +09:00
e69b063687
Porting tests over to vitest
2023-06-05 00:33:43 +01:00
352cde743f
Fix TS issues
2023-05-31 22:56:58 +01:00
c21d45a79e
Merge pull request #1859 from dolanmiu/feat/more-run-props
...
Add more run properties and Universal measure
2023-01-05 22:28:18 +00:00
7f88a38219
Fix more empty return values
2023-01-04 22:45:27 +00:00
f255d4c141
Fix tests
2022-12-29 12:12:53 +00:00
4513bb529b
Add more run properties and Universal measure
2022-12-29 09:57:15 +00:00
f789f60e22
Optional background property
2022-12-09 21:07:08 +00:00
0ac23d0646
Add tests and bump coverage
2022-09-22 07:19:14 +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
6d447033c9
Fix more spelling rules
2022-07-05 05:06:32 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
233a29bfef
Fix tests and linting
2022-06-19 00:31:36 +01:00
b2a09b512f
implement sample version of Comment feature.
2022-03-03 09:59:09 +08:00
e08ad990a8
add an ability to specify charSpace and type for DocumentGrid
2021-11-30 21:42:48 +09:00
0be6f31611
#1303 Re-name methods to be full english words
2021-11-26 15:07:15 +00:00
9cddfb4ce7
ability to specify textDirection for section
2021-11-23 10:52:17 +09:00
ba963b0360
Dont set background color if none is provided in options
...
After comparing the output of this library and what is
produced by Microsoft Word, it seems that document
background color is not set by default by Word.
Removing the default #FFFFFF background color enables the
generated documents to be readable in dark mode.
This seems to fix dolanmiu/docx#1093
2021-11-12 10:21:01 +01:00
eec084767f
Fix lint and style errors
2021-09-18 23:14:13 +10:00
23fd3b483f
Add API for specifying columns with different widths
2021-09-18 22:58:19 +10:00
05a6ab77cc
improve test coverage
2021-05-26 10:14:19 +03:00
63cea76eac
update file/document and section-properties
2021-05-25 03:43:16 +03:00
e198f0752a
add schema comments and update file/document; unify VerticalAlign type
2021-05-24 21:06:34 +03:00
c3e92c0709
update file/numbering with schema comments and values functions
2021-05-24 21:04:38 +03:00
08bd2744b6
further clean up border code; update paragraph borders to use shared type; BREAKING: paragraph border value attr renamed to style, to match other usages of borders
2021-05-24 05:39:26 +03:00
54ab55b92c
simplify section-properties
2021-05-24 05:39:26 +03:00
5155cdaf45
unify Border type
2021-05-24 05:39:26 +03:00
f5e35603ef
remove invalid w:mirrorMargins attribute from w:pgMar
2021-05-20 03:42:10 +03:00
30912e7aaf
Fix ordering of elements in table-cell-borders and section-properties
2021-05-20 02:18:17 +03:00
3299c557a0
Make .addSection fully declarative
2021-03-19 20:53:56 +00:00
a3febae8a3
Inline single use interfaces
2021-03-15 00:11:39 +00:00
cc9a966f53
Improve tests
2021-03-13 19:53:36 +00:00
566ac03f9a
Use context in prep xml
2021-03-11 01:06:55 +00:00
cd501bba0a
Add tests
2021-03-09 22:59:50 +00:00
89c2e14979
Merge branch 'master' of github.com:dolanmiu/docx into feature/separator
...
# Conflicts:
# src/file/document/body/section-properties/section-properties.ts
2021-03-09 22:37:37 +00:00
e5da573041
Clean up table with improved demo
2021-03-05 03:03:02 +00:00
f3f65da207
#732 Add line between columns (separate)
2021-03-04 03:02:07 +00:00
c6e9696be0
#532 Make hyperlinks work on the Header and Footer
2021-03-01 03:28:35 +00:00
655b40d418
Work on moving Document into its own wrapper
2021-02-28 16:04:21 +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
bfd0f0c7bb
Fix linting
2021-02-22 21:12:38 +00:00