Commit Graph

151 Commits

Author SHA1 Message Date
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
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
4e2befb7ef Update docs for new Packer methods (#2961)
To cover #2920
2025-02-17 21:22:07 +00:00
05fcf6edd4 Feat: subfile overrides (#2941)
* Adds overrides parameter to Packer methods and compiler

* Adds tests for overrides parameter

* Update Packer usage examples
2025-01-27 10:39:23 +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
021f1b0c4d Update bullet-points.md (#2684)
Excluding ; from example

Co-authored-by: Dolan <dolan_miu@hotmail.com>
2024-10-11 01:13:26 +01:00
f212cf0251 Update styling-with-js.md (#2734)
Co-authored-by: Dolan <dolan_miu@hotmail.com>
2024-10-11 00:57:11 +01:00
28029f4c1c chore[tables.md]: replace semicolon to commas (#2708) 2024-10-10 00:14:09 +01:00
f98f852a55 Allow disabling numbering inherited from a paragraph style (#2531) 2024-05-20 03:15:11 +01:00
e379a7fe04 Document the 'keepOriginalStyles' options (#2549)
Co-authored-by: Dolan <dolan_miu@hotmail.com>
2024-05-20 03:13:05 +01: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
968c3aed0f Update styling-with-xml doc 2023-09-10 15:57:48 +02:00
5f26ca1c94 Update numbering docs 2023-08-06 20:10:03 +01:00
ec379f2e4d Update documentation 2023-03-26 04:05:41 +01:00
8343edcdf1 Update documentation 2023-03-19 03:26:02 +00:00
773900b620 Merge branch 'master' of github.com:dolanmiu/docx 2023-02-22 20:17:58 +00:00
ece440340f Add footnotes documentation 2023-02-22 20:16:23 +00:00
11bebd42ac #940 - Add positional tab feature
Also add extra run elements as per spec
2022-12-24 19:32:44 +00:00
9b874b0061 #1784 Add more alignment options according to spec 2022-11-19 20:14:15 +00:00
251eafe103 #1773 Add exact for spacing 2022-11-19 15:51:41 +00:00
988987ddbe #1126 - Add all comptability options 2022-10-29 15:10:02 +01:00
4cfb0ade88 #1744 - Add vanish and specVanish 2022-10-28 22:20:16 +01:00
522b21862b #756 Adding alt text feature 2022-10-26 23:09:36 +01:00
5b582d45ba Update numbering.md
Long time to find a way to unident ,See the document can't resolve my problem,Source code analysis found that does not belong to the indent.
2022-10-19 17:35:46 +08:00
8b165e93e1 Specify which borders could look like a <hr/> 2022-09-28 09:19:18 -06:00
321969eb85 Added the name horizontal line or horizontal rules
There was some confusion in https://github.com/dolanmiu/docx/issues/437 because the docs don't mention anything called horizontal lines or horizontal rules. Microsoft calls them by that name here https://support.microsoft.com/en-us/office/insert-a-line-9bf172f6-5908-4791-9bb9-2c952197b1a9
This will make it easier for people to find this in the docs.
2022-09-26 10:22:32 -06:00
a2017fc353 Merge pull request #1574 from wvbe/master
docs: Fix property name accuracy in describing paragraph borders
2022-07-06 16:34:30 +01:00
64addc85ee Fix all spelling across the project 2022-07-06 14:05:37 +01:00
aa02261248 docs: Fix property name accuracy in describing paragraph borders 2022-07-06 11:51:10 +02:00
9827ed30bb Write tests, improve API, create documentation 2022-06-22 23:35:46 +01:00
4f846f2a4a Improve documentation
Add clarity to specifying Different First page
2022-05-19 16:25:11 -04:00
111c80d049 docs: fix height.value not height.height 2022-01-24 10:28:57 -06:00
6d3ebf90c1 #2733 Add error if level exceeds 9 2021-12-18 15:42:35 +00:00
02222c8681 change back docs to use settings as option directly 2021-11-26 19:33:40 +01:00
e598faad28 support style changes in revisions 2021-11-26 12:29:11 +01:00
ead04d0764 comments fix
Fixed a comments about the behavior default, first, even Header and Footer when activating options:
Different Odd & Even Pages
Different First Page
2021-10-09 19:52:46 +03:00
636d114d44 Merge branch 'master' of https://github.com/grahampcharles/docx 2021-09-22 16:55:12 -07:00
2140ed63cd added possible values for LineRuleType 2021-09-22 16:54:40 -07:00
ce2a949176 Re-name PageRef to PageReference 2021-09-08 00:41:40 +01:00
727e741b08 Hyperlink documentation 2021-08-31 19:54:57 -06:00
9efee181ba Update tables.md 2021-08-27 10:12:08 +01: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
2ccf27162e updated tab stops docs 2021-07-27 22:16:21 -07:00
e1c777738b Update tab-stops.md
corrected docs to reflect declarative style for tab stops; removed tab() and bold()
2021-07-27 22:11:46 -07:00
6c94a1382c docs:fix typo change fro0oum to from 2021-07-09 15:28:22 +08:00
034cd187ab change shading val -> type 2021-05-29 05:51:06 +03:00
60b7ce4785 clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting 2021-05-26 08:36:05 +03:00
097c6a5962 use hexColorValue in borders and underlines 2021-05-24 08:42:34 +03:00