Commit Graph

737 Commits (63178e9f4aa2baff16d6d34f908ae75fb1d92bd5)

Author SHA1 Message Date
bokuweb 63178e9f4a
Update ci.yml 2025-01-22 19:56:20 +09:00
morugetsm 5095e3d6d7
update table_cell_width, table_indent (#796) 2025-01-17 22:57:54 +09:00
bokuweb 1e6227e4f7
feat: Support tc (#793)
* feat: Support tc

* fix: f option

* rc29

* rc30
2025-01-17 19:21:40 +09:00
bokuweb 1fd0b8f7f3
Merge pull request #790 from bokuweb/fix-level-char-spacing
Fix level char spacing
2024-12-29 23:39:15 +00:00
bokuweb 05df4e38ea fix: rc27 2024-12-23 19:40:54 +09:00
bokuweb 3ededdd2ac fix: charSpacing in level 2024-12-23 19:38:07 +09:00
bokuweb 11e09de5cd
Add toc ppr (#785)
* feat: add ppr in toc

* feat: add frame property

* fix: add rpr

* fix: add toc paragraphProperty

* support toc paragraph property

* fix: some properties

* 0.4.18-rc20

* fix: toc style

* chore: rc21

* fix

* fix: toc structure

* fix: toc styles
2024-11-22 10:58:49 +09:00
bokuweb 7400979c39
chore: rc19 (#783) 2024-11-06 17:07:01 +09:00
Igor Strebz 238d2bc3fe
Implement streaming writers (#765)
* Make XMLBuilder generic

* Reduce allocations at XmlData display impl

* Implement streaming writers

- Extend BuildXML trait, add the streaming method
- Remove impls for Box<Ty>, as they can be implemented on the trait level
- Rewrite build() methods in chaining style, backed by apply_* helpers
- Remove quite a few allocations, though numbers still produce them
- Add spaces between children nodes, fix tests

* Add rustfmt.toml and format code

* Fix clippy warnings

* Expose the BuildXML trait without displaying its methods in hints
2024-11-05 11:22:32 +09:00
bokuweb 72637a4dc0
Update ci.yml 2024-11-05 11:21:20 +09:00
bokuweb 89b08e235a
fix: test (#782) 2024-11-01 14:02:41 +09:00
bokuweb cd23178073
spec: add reg (#774)
* spec: add reg

* fix

* fix

* fix
2024-11-01 13:37:39 +09:00
bokuweb 74a30b4c2a
fix: escape some feild (#778)
* fix: escape some feild

* rc18
2024-11-01 13:14:58 +09:00
bokuweb 55961d6f9f
Escape style name (#779)
* fix: escape some feild

* rc18
2024-11-01 13:08:31 +09:00
bokuweb 4c7bd61ce9
fix: rc16 (#777) 2024-10-31 22:28:07 +09:00
bokuweb 0e4f6cd60a
chore: published (#775) 2024-10-31 18:39:40 +09:00
bokuweb 1f9046d2ee
feat: add comments_json (#773) 2024-10-31 18:13:59 +09:00
unvalley 69b4c1a4a3
build: use rust 1.82 and fix clipyy errors (#768)
* build: use rust 1.82 and fix clipyy errors

* refactor: fix clippy errors
2024-10-30 14:53:26 +09:00
unvalley de071a60dd
build: yarn to pnpm (#771)
* build: yarn to pnpm

* ci: pnpm i --forzen-lockfile

* docs: pnpm version on README

* ci: install pnpm

* ci: install pnpm
2024-10-29 19:12:43 +09:00
unvalley f835106dc2
ci: use moonrepo/setup-rust (#770)
* ci: use moonrepo/setup-rust

* ci: fix typo

* chore: don't clippy for now
2024-10-29 19:12:02 +09:00
unvalley 6023afbd4f
ci: upgrade actions checkout and cache to v4 (#766)
Co-authored-by: bokuweb <bokuweb12@gmail.com>
2024-10-29 17:31:54 +09:00
unvalley b1ca81c13d
ci: upgrade setup-node to v4 and node-version to v20 (#767) 2024-10-29 17:31:09 +09:00
dependabot[bot] b79776f940
build(deps): bump express from 4.19.2 to 4.21.0 in /docx-wasm (#758)
Bumps [express](https://github.com/expressjs/express) from 4.19.2 to 4.21.0.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 10:29:20 +09:00
dependabot[bot] 4e264b9d3f
build(deps): bump elliptic from 6.5.5 to 6.5.7 in /docx-wasm (#760)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.5 to 6.5.7.
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.5...v6.5.7)

---
updated-dependencies:
- dependency-name: elliptic
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-22 10:29:11 +09:00
Igor Strebz bf5ccac4b1
Make 'image' crate optional (#764)
Discussion at #763.
2024-10-22 10:28:58 +09:00
bokuweb 6fdf81d1ba
feat: Support paragraph color (#761) 2024-10-15 18:51:20 +09:00
bokuweb 60d94921b0
Support ptab in r (#756)
* feat: add ptab

* feat: wasm object

* fix: suppoert ptab

* spec: add read test for ptab

* rc10

* rc11

* rc12
2024-10-15 18:30:05 +09:00
Y N 19b174da7c
fix to read comment inside Delete in Insert (#755) 2024-09-06 14:44:31 +09:00
bokuweb 93eb2e1bc1
0.4.8-rc9 (#746) 2024-07-30 11:43:55 +09:00
bokuweb f6bcebc186
fix: escape font (#745) 2024-07-18 19:11:21 +09:00
bokuweb 6b38d4fbbc
Add snap to grid (#744)
* fix: snapToGrid

* fix:

* fix

* fix

* fix
2024-07-18 19:11:11 +09:00
bokuweb 8d1a018380
0.4.18-rc4 (#743) 2024-07-17 16:35:47 +09:00
bokuweb bf385f752d
faet: Support snap to grid (#742) 2024-07-17 16:28:29 +09:00
renovate[bot] d448559c9e
chore(deps): update dependency npm-run-all2 to v5.0.2 (#726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-15 08:18:28 +09:00
hackers267 79147fcce8
Update table_width.rs (#722)
* Update table_width.rs

fix the error when build the xml, the width_type is fixed, not pick from the TableWith

* test:  修改关于width_type的测试用例

* test:  修改关于width_type的测试用例
2024-07-15 08:17:38 +09:00
bokuweb 86f010b0c1
chore: 0.4.18-rc3 (#740) 2024-07-12 12:21:21 +09:00
bokuweb 3a41aedda9
fix: use btree set (#739) 2024-07-12 12:10:42 +09:00
git-noise 77b9ca3fca
Fix pstyle serialization (#738) 2024-07-12 11:40:42 +09:00
Truong Hoang Dung f5d1fa5740
Update README.md: Fix NodeJS example (#736) 2024-07-07 22:10:36 +09:00
git-noise 2005b0a382
PositionalTab initial support (#733)
* Initial positional tab support: add PositionalTab types related module

* Initial positional tab support: add PositionalTabAlignmentType

* Initial positional tab support: add PositionalTabRelativeTo

* Initial positional tab support: add PositionalTab related module

* Initial positional tab support: add PositionalTab

* Initial positional tab support: add ptab() for XMLBuilder

* Initial positional tab support: remove optional

* Initial positional tab support: remove optional

* Initial positional tab support: derive Partial Eq, Eq

* Initial positional tab support: add ptab()
2024-06-30 20:13:29 +09:00
git-noise 0284e7aa4c
Support strike at Run level: add strike() to Run (#732) 2024-06-29 19:24:01 +09:00
renovate[bot] 87de45e198
chore(deps): update dependency adm-zip to v0.5.14 (#725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-29 19:23:31 +09:00
git-noise e04dc4a757
Run level shading (#727)
* Initial Run-level Shading support: add Shading to RunChild

* Initial Run-level Shading support: add Shading to RunProperty
2024-06-29 19:23:20 +09:00
git-noise 2c8638dcb0
Support cantSplit for table row (#730)
* Initial cantSplit support: add CantSplit element

* Initial cantSplit support: add cant_split() to XMLBuilder

* Initial cantSplit support: add cant_split() to TableRow element

* Initial cantSplit support: add cant_split() to TableRowProperty element

* Initial cantSplit support: add cant_split module
2024-06-26 00:43:53 +09:00
renovate[bot] 74464c82d6
chore(deps): update dependency serialize-javascript to v6.0.2 (#707)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 20:39:12 +09:00
renovate[bot] 996abfd981
chore(deps): replace dependency npm-run-all with npm-run-all2 5.0.0 (#712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 20:39:03 +09:00
renovate[bot] c320a7f2a5
chore(deps): update dependency @types/file-saver to v2.0.7 (#713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 20:38:53 +09:00
git-noise 0ef897ed85
Footnotes initial support (#718)
* Initial footnotes support: add content-types dependency

* Initial footnotes support: add relationship

* Initial footnotes support: add footnotes.xml

* Initial footnotes support: add footnote_reference() for XMLBuilder

* Initial footnotes support: add FootnoteReference to RunChild

* Initial footnotes support: add footnotes to XMLDocx

* Initial footnotes support: add footnotes module

* Initial footnotes support: add footnote and footnote_reference modules

* Initial footnotes support: add footnotes handling logic

* Initial footnotes support: add footnotes example

* Initial footnotes support: add footnote element

* Initial footnotes support: add footnote_reference element

* Initial footnotes support: add footnotes document

* Initial footnotes support: add open_footnotes for XMLBuilder

* Initial footnotes support: add test for footnotes reading

* Initial footnotes support: update snapshots for footnotes

* Initial footnotes support: add test docx for footnotes reading

* Initial footnotes support: update features list

* Initial footnotes support: update snapshots for footnotes

* Initial footnotes support: fix clippy lint - redundant-clone

* Initial footnotes support: add automatic footnote ID generation

* Initial footnotes support: add footnote_id module

* Initial footnotes support: switch to automatically generated IDs

* Initial footnotes support: switch to automatically generated IDs
2024-06-24 20:37:27 +09:00
dependabot[bot] f8c84a2e5e
build(deps): bump ws from 6.2.2 to 6.2.3 in /docx-wasm (#723)
Bumps [ws](https://github.com/websockets/ws) from 6.2.2 to 6.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/6.2.2...6.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-22 09:11:20 +09:00
bokuweb 2626b89b83
Support page numbers (#714)
* feat: add num pages

* fix: num pages

* rc1

* fix

* fix

* fix
2024-06-09 09:01:52 +09:00