Commit Graph

43 Commits

Author SHA1 Message Date
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
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
fa401297da Re-name variables (#2486) 2023-12-29 23:52:43 +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
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
11bebd42ac #940 - Add positional tab feature
Also add extra run elements as per spec
2022-12-24 19:32:44 +00:00
75e064dd1d #1281 - Tab feature 2022-10-27 00:17:02 +01:00
9bed303d34 #1529 - Word wrap feature 2022-10-25 18:53:00 +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
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
f414b4ee9a #1529 Add word break feature 2022-06-15 00:07:12 +01:00
fcc393aca2 move break up higher in order, to use the simpler push instead of splice 2021-05-24 05:39:26 +03:00
6100ff4c4e Add declarative break() 2020-12-23 23:31:28 +00:00
d18cfbc26f Update tslint to v6 2020-08-01 17:58:16 +01:00
437e83ab78 :feat: refine paragraph/run properties options 2020-07-14 15:42:45 +08:00
fdfce79e87 :feat: Font for eastAsia 2020-06-07 12:38:03 +08:00
120c3a7bbe :feat: support emphasis mark 2020-05-22 12:22:45 +08:00
7dfb016faa Make tab and page numbers declarative 2019-11-21 01:02:46 +00:00
04b6d8e54a Declarative hyperlinks, bookmarks, tab stops and page breaks 2019-09-30 22:56:21 +01:00
96efdf8b1a Merge branch 'master' of github.com:dolanmiu/docx into Numbering
# Conflicts:
#	src/file/paragraph/run/run.ts
2019-08-13 10:40:49 +03:00
a9fc40dad4 Add total number of pages in a section 2019-08-09 11:56:22 +03:00
b741db3050 Using a better demo naming system 2019-08-06 23:08:21 +01:00
e45e7ffe06 Consolidate highlight and shadow API 2019-08-06 21:37:33 +01:00
099eb1d202 Merge branch 'master' of github.com:dolanmiu/docx into feat/declaritive
# Conflicts:
#	src/file/paragraph/run/run.ts
2019-08-06 21:06:06 +01:00
fa710d1ba6 Highlighting 2019-08-06 11:13:43 +03:00
fb65bb4207 Turn Run into a declaritive API 2019-06-17 01:51:57 +01:00
788205b14d Merge pull request #247 from dolanmiu/feat/number-of-pages
Add Total Number of pages element
2019-01-15 22:47:51 +01:00
8f6984580a Add Number of pages element 2019-01-15 02:09:38 +00:00
4e671eb512 Breaking change. Make all italic to italics. 2018-11-18 15:22:23 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
a367951d07 moved Begin, Separate and End from page-number.ts to field.ts 2018-09-03 10:54:53 -03:00
42f723813a Merge branch 'master' into feat/refactor-bidi
# Conflicts:
#	demo/demo22.js
#	src/file/paragraph/run/run.ts
2018-08-08 20:20:22 +01:00
92da93a160 Rename to more readable names 2018-08-07 02:47:24 +01:00
f9c97a673e add complex font support to bold and italic 2018-08-06 12:14:51 +03:00
696b5daf5c rtl 2018-07-25 15:02:58 +03:00
3015b05c77 add rtl mode 2018-07-24 18:52:45 +03:00
99290d646e Add footnote support to API 2018-06-25 19:49:46 +01:00
7584671312 Fixed TSLint Errors 2018-05-18 09:21:27 -06:00
8d35dc1bb0 Added tests, renamed pagenumber to page-number 2018-05-17 13:32:33 -06:00
87648a742c Initial Commit 2018-05-12 20:04:54 -04:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00