Commit Graph

62 Commits

Author SHA1 Message Date
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
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
3a36d912fe changed default section margin from inch to Twip 2023-10-12 12:14:13 +09: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
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01: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
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
54ab55b92c simplify section-properties 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
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
655b40d418 Work on moving Document into its own wrapper 2021-02-28 16:04:21 +00:00
bfd0f0c7bb Fix linting 2021-02-22 21:12:38 +00:00
858a994d13 #339 Add Section Type 2021-02-22 21:04:02 +00:00
502db14bba Add Convenience functions 2020-12-24 03:37:43 +00:00
5bca7d155f Restart page numbering
Add separator option
2020-02-28 18:44:41 +00:00
afd468277e refactor code 2019-10-31 13:54:53 +02:00
2276572902 add ability to vertically align content of section 2019-10-29 12:55:15 +02:00
cbbc4a80e7 FIx up API for column count 2019-06-28 01:57:43 +01:00
1dfc27ba08 Multiple columns in a section 2019-06-21 01:22:27 +05:30
2f687125d1 fix lint issue in section-properties.ts 2019-06-05 13:01:24 +05:30
1f12e159ef add line numbers to section 2019-02-04 18:49:12 +05:30
5552f9d834 The page number type attribute of the sections was always been created, leading Word to always reset page numbers to zero in new sections.
The page number type DECIMAL is already the default in Word, there is no need to force this to be the default option in the default section, like it was.
2018-11-09 09:13:27 -02: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
97f76fb62c Change to new header API 2018-10-05 01:33:17 +01:00
466e880bfc Merge from master 2018-09-25 23:46:55 +01:00
fcb542471b Added mirror margins options 2018-09-18 21:03:20 -03:00
1c376abeb6 Fix demo 8 2018-09-17 21:15:24 +01:00
385ad92331 Fix linting errors 2018-09-07 21:48:59 +01:00
03c4190c2c works! 2018-09-04 17:16:31 +03:00
89df3c48e0 Fix linting errors 2018-08-09 23:22:03 +01:00
3436a1584c Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
# Conflicts:
#	package.json
#	src/file/document/body/body.ts
#	src/file/document/body/section-properties/section-properties.ts
#	src/file/file.ts
#	src/file/media/media.ts
#	src/file/styles/external-styles-factory.ts
#	src/file/table/table-cell.ts
2018-08-09 23:21:24 +01:00
e9aecfac1c Updated lint rules 2018-08-07 01:38:15 +01:00
efe7d594b0 Add accessor to getter and setters 2018-08-03 02:29:58 +01:00
796e000826 feature: add support for section page borders 2018-07-03 13:48:31 +02:00
cee091fa58 Use method approach to different first page header 2018-06-26 00:03:28 +01:00
84ebf8e6c3 Remove old implementation of first page header 2018-06-25 22:13:12 +01:00
d63adc7a6b Fix linting 2018-06-22 23:04:03 +01:00
f1ac646518 Merge branch 'feature/multiple-sections' of https://github.com/h4buli/docx into feat/multiple-headers
# Conflicts:
#	src/export/packer/compiler.ts
#	src/file/content-types/content-types.ts
#	src/file/document/body/section-properties/header-reference/header-reference.ts
#	src/file/document/body/section-properties/section-properties.ts
#	src/file/file.ts
#	src/file/media/media.ts
2018-06-22 22:59:38 +01:00