@shbernal/ts-xlsx 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -10
- package/dist/bytes.d.ts +24 -0
- package/dist/bytes.js +34 -0
- package/dist/core/address.d.ts +26 -4
- package/dist/core/address.js +21 -9
- package/dist/core/autofilter.d.ts +11 -0
- package/dist/core/autofilter.js +35 -10
- package/dist/core/color-resolution.d.ts +1 -1
- package/dist/core/color-resolution.js +7 -8
- package/dist/core/conditional-formatting-overlay.d.ts +5 -0
- package/dist/core/conditional-formatting-overlay.js +11 -0
- package/dist/core/conditional-formatting.d.ts +45 -5
- package/dist/core/conditional-formatting.js +88 -0
- package/dist/core/data-validation-overlay.d.ts +11 -0
- package/dist/core/data-validation-overlay.js +21 -2
- package/dist/core/data-validation.d.ts +9 -2
- package/dist/core/data-validation.js +34 -0
- package/dist/core/grid-edits.d.ts +16 -0
- package/dist/core/grid-edits.js +26 -8
- package/dist/core/grid-shift.d.ts +19 -0
- package/dist/core/grid-shift.js +8 -0
- package/dist/core/image.d.ts +2 -0
- package/dist/core/image.js +4 -0
- package/dist/core/merge.d.ts +12 -1
- package/dist/core/merge.js +36 -2
- package/dist/core/page-setup.d.ts +16 -2
- package/dist/core/page-setup.js +8 -1
- package/dist/core/pivot-table.d.ts +2 -0
- package/dist/core/pivot-table.js +25 -16
- package/dist/core/protection.d.ts +3 -0
- package/dist/core/protection.js +20 -14
- package/dist/core/row-input.d.ts +7 -0
- package/dist/core/row-input.js +10 -8
- package/dist/core/style.d.ts +27 -0
- package/dist/core/style.js +82 -67
- package/dist/core/table.d.ts +25 -11
- package/dist/core/table.js +67 -31
- package/dist/core/theme.d.ts +3 -1
- package/dist/core/theme.js +4 -0
- package/dist/core/workbook.d.ts +2 -2
- package/dist/core/worksheet-comments.d.ts +8 -0
- package/dist/core/worksheet-comments.js +18 -0
- package/dist/core/worksheet.d.ts +15 -2
- package/dist/core/worksheet.js +28 -48
- package/dist/customui/ribbon.js +24 -23
- package/dist/entries/core.d.ts +3 -3
- package/dist/entries/csv.d.ts +1 -1
- package/dist/entries/node-unavailable.d.ts +15 -0
- package/dist/entries/node-unavailable.js +20 -0
- package/dist/entries/node.d.ts +1 -0
- package/dist/entries/node.js +1 -0
- package/dist/entries/xlsx.d.ts +0 -1
- package/dist/entries/xlsx.js +0 -1
- package/dist/io/csv/read.js +1 -1
- package/dist/io/csv/write.d.ts +12 -2
- package/dist/io/csv/write.js +17 -2
- package/dist/io/opc/inflate.js +2 -12
- package/dist/io/opc/rels.d.ts +11 -0
- package/dist/io/opc/rels.js +3 -2
- package/dist/io/style/xf-style.d.ts +7 -2
- package/dist/io/style/xf-style.js +6 -1
- package/dist/io/xlsx/cell-accumulator.d.ts +1 -3
- package/dist/io/xlsx/cell-accumulator.js +20 -58
- package/dist/io/xlsx/cell-value.d.ts +1 -1
- package/dist/io/xlsx/cell-value.js +7 -4
- package/dist/io/xlsx/color-xml.d.ts +1 -1
- package/dist/io/xlsx/color-xml.js +7 -6
- package/dist/io/xlsx/comments.js +4 -2
- package/dist/io/xlsx/conditional-formatting.d.ts +1 -1
- package/dist/io/xlsx/conditional-formatting.js +60 -45
- package/dist/io/xlsx/data-validation.d.ts +1 -1
- package/dist/io/xlsx/data-validation.js +35 -33
- package/dist/io/xlsx/hyperlinks.js +6 -14
- package/dist/io/xlsx/images.js +19 -22
- package/dist/io/xlsx/read-pivot.js +2 -8
- package/dist/io/xlsx/read-shared-strings.js +8 -47
- package/dist/io/xlsx/read-styles.js +2 -1
- package/dist/io/xlsx/read-worksheet.js +14 -16
- package/dist/io/xlsx/read.d.ts +1 -1
- package/dist/io/xlsx/read.js +44 -74
- package/dist/io/xlsx/rich-runs.d.ts +41 -7
- package/dist/io/xlsx/rich-runs.js +94 -30
- package/dist/io/xlsx/sheet-properties.d.ts +1 -1
- package/dist/io/xlsx/sheet-properties.js +13 -9
- package/dist/io/xlsx/styles.d.ts +3 -15
- package/dist/io/xlsx/styles.js +63 -88
- package/dist/io/xlsx/tables.js +13 -13
- package/dist/io/xlsx/theme-xml.js +7 -4
- package/dist/io/xlsx/threaded-comments.js +19 -19
- package/dist/io/xlsx/workbook-xml.js +14 -8
- package/dist/io/xlsx/worksheet-xml.js +34 -37
- package/dist/io/xlsx/write-stream.d.ts +8 -1
- package/dist/io/xlsx/write-stream.js +10 -11
- package/dist/sha512.d.ts +2 -0
- package/dist/sha512.js +146 -0
- package/dist/vba/bytes.d.ts +1 -2
- package/dist/vba/bytes.js +1 -12
- package/dist/vba/dir-records.d.ts +53 -0
- package/dist/vba/dir-records.js +28 -0
- package/dist/vba/project-editor.js +5 -34
- package/dist/vba/project.js +2 -18
- package/dist/xml/xml-read.d.ts +60 -0
- package/dist/xml/xml-read.js +47 -0
- package/dist/xml/xml.d.ts +43 -1
- package/dist/xml/xml.js +17 -5
- package/package.json +21 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shbernal/ts-xlsx",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A TypeScript-first library for reading and writing xlsx (OOXML) spreadsheets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"csv",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"workbook",
|
|
13
13
|
"xlsx"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.
|
|
15
|
+
"homepage": "https://shbernal.github.io/ts-xlsx/",
|
|
16
16
|
"bugs": {
|
|
17
17
|
"url": "https://github.com/shbernal/ts-xlsx/issues"
|
|
18
18
|
},
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"types": "./dist/entries/customui.d.ts",
|
|
62
62
|
"default": "./dist/entries/customui.js"
|
|
63
63
|
},
|
|
64
|
+
"./node": {
|
|
65
|
+
"types": "./dist/entries/node.d.ts",
|
|
66
|
+
"browser": "./dist/entries/node-unavailable.js",
|
|
67
|
+
"default": "./dist/entries/node.js"
|
|
68
|
+
},
|
|
64
69
|
"./errors": {
|
|
65
70
|
"types": "./dist/entries/errors.d.ts",
|
|
66
71
|
"default": "./dist/entries/errors.js"
|
|
@@ -76,14 +81,21 @@
|
|
|
76
81
|
"build": "pnpm run clean && tsc -p tsconfig.build.json && tsc -p tsconfig.build.dts.json",
|
|
77
82
|
"size": "node scripts/size-budget.ts",
|
|
78
83
|
"smoke:dist": "node scripts/smoke-dist.ts",
|
|
84
|
+
"site:prepare": "node www/scripts/sync-docs.ts",
|
|
85
|
+
"site:check": "node www/scripts/check.ts",
|
|
86
|
+
"samples:check": "node www/scripts/check-samples.ts",
|
|
87
|
+
"site:dev": "pnpm run site:prepare && vitepress dev www",
|
|
88
|
+
"site:build": "pnpm run site:prepare && vitepress build www && node www/scripts/check-built-links.ts",
|
|
89
|
+
"site:preview": "vitepress preview www",
|
|
79
90
|
"docs": "node scripts/gen-docs.ts",
|
|
80
91
|
"docs:check": "node scripts/gen-docs.ts && git add --intent-to-add -- docs/api && git diff --exit-code -- docs/api",
|
|
81
92
|
"constitution:check": "node scripts/check-constitution.ts",
|
|
82
93
|
"layering:check": "node scripts/check-layering.ts",
|
|
83
94
|
"entries:check": "node scripts/check-entries.ts",
|
|
95
|
+
"browser:check": "node scripts/check-browser-safe.ts",
|
|
84
96
|
"source-text:check": "node scripts/check-source-text.ts",
|
|
85
97
|
"chars:check": "charcheck",
|
|
86
|
-
"lint": "node node_modules/oxlint/bin/oxlint src scripts test tools charcheck.config.ts --type-aware --deny-warnings --report-unused-disable-directives",
|
|
98
|
+
"lint": "node node_modules/oxlint/bin/oxlint src scripts test tools www charcheck.config.ts --type-aware --deny-warnings --report-unused-disable-directives",
|
|
87
99
|
"lint:fix": "pnpm run lint --fix",
|
|
88
100
|
"format": "node scripts/format.ts --write",
|
|
89
101
|
"format:check": "node scripts/format.ts --check",
|
|
@@ -91,7 +103,9 @@
|
|
|
91
103
|
"typecheck:src": "tsc --noEmit -p tsconfig.json",
|
|
92
104
|
"typecheck:test": "tsc --noEmit -p tsconfig.test.json",
|
|
93
105
|
"typecheck:dist": "tsc --noEmit -p tsconfig.dist.json",
|
|
106
|
+
"typecheck:site": "tsc --noEmit -p www/tsconfig.json",
|
|
94
107
|
"test:src": "node --test \"src/**/*.test.ts\"",
|
|
108
|
+
"test:site": "node --test \"www/**/*.test.ts\"",
|
|
95
109
|
"coverage": "node scripts/coverage.ts",
|
|
96
110
|
"corpus": "node test/corpus/run.ts",
|
|
97
111
|
"corpus:dist": "node test/corpus/run.ts --target dist",
|
|
@@ -114,7 +128,10 @@
|
|
|
114
128
|
"oxfmt": "^0.64.0",
|
|
115
129
|
"oxlint": "^1.80.0",
|
|
116
130
|
"oxlint-tsgolint": "7.0.2001",
|
|
117
|
-
"
|
|
131
|
+
"shiki": "^4.4.3",
|
|
132
|
+
"typescript": "^7.0.2",
|
|
133
|
+
"vitepress": "^1.6.4",
|
|
134
|
+
"vue": "^3.5.41"
|
|
118
135
|
},
|
|
119
136
|
"engines": {
|
|
120
137
|
"node": ">=24"
|