@sheetxl/io-xlsx 0.8.0-beta.6 → 0.8.0-beta.9
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/browser/cjs/B0Ugu_crqQYpdfQz.cjs +1 -0
- package/browser/cjs/{qb-YQ8mGwpogSP08.cjs → BHM3_D9PsNURVAVy.cjs} +1 -1
- package/browser/cjs/BHWdwAQ322YA8JAZ.cjs +6 -0
- package/browser/cjs/CeuX8p1aBuKTuagi.cjs +2 -0
- package/browser/cjs/DSM4q1dhVVXvsgby.cjs +30 -0
- package/browser/cjs/DiAHwNv2I8RHE9GY.cjs +1 -0
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/wrpXlaSBGEicQf6_.cjs +6 -0
- package/browser/esm/{B3cYXnqV2Zjaw6Jp.mjs → Bu64BYvRAlVftMr1.mjs} +4 -4
- package/browser/esm/{B0E-_6m23g4BDnX6.mjs → C-2KaUyV4gs-sDTZ.mjs} +2 -2
- package/browser/esm/{CGgjL7wM5WHZA6Dt.mjs → CRrTMRdN_IcSA_pm.mjs} +2 -2
- package/browser/esm/{BYENv_UE3Hv5ghGD.mjs → CWt4fDYEbj2hvsl_.mjs} +820 -800
- package/browser/esm/{BLEHoDT0SLbo8OO2.mjs → Ccnxz-y2WBEgfvvh.mjs} +2606 -1408
- package/browser/esm/{k-aEFzUZ8aU9FPf4.mjs → CxtFawTfwRTCC4Xr.mjs} +1 -1
- package/browser/esm/{DdTgGiFy8nAZTQ0d.mjs → D-epcZSoKLbsAIaC.mjs} +2 -2
- package/browser/esm/DsSIg46AR7IFBN5N.mjs +2298 -0
- package/browser/esm/{D01fs7vrCLlmdHoW.mjs → Dx64JMAGwNNDBkC1.mjs} +1555 -1159
- package/browser/esm/Sv4twwEJDb9dZ91h.mjs +149 -0
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{am47EU_k1uSVm7yW.mjs → BCr4lCI6qQXXN0K1.mjs} +2 -2
- package/node/esm/BPn5XBizKkwaUqXB.mjs +4285 -0
- package/node/esm/{D-l0hqYTXUIEFoTg.mjs → BVV11IlqF6Lmlv8D.mjs} +53 -69
- package/node/esm/{Co5_sjvEk9d-x9gx.mjs → BiJEEgltJzx94zIR.mjs} +930 -909
- package/node/esm/{DWF_5NYPdrlTVvHi.mjs → BsTMtvwpQoPNv95M.mjs} +1 -1
- package/node/esm/{ZWSOYqmTKEmEOz2u.mjs → CBtj0-a4l2qux2hA.mjs} +2 -2
- package/node/esm/CkmZuMvRTpva7eQu.mjs +5074 -0
- package/node/esm/index.mjs +4 -4
- package/node/esm/j0RE2usgdljRw_gr.mjs +2345 -0
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +83 -10
- package/types/src/OOXMLExtensions.d.ts +6 -0
- package/types/src/reader/dom/CustGeomUtils.d.ts +7 -0
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +13 -0
- package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +7 -1
- package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +1 -0
- package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +23 -1
- package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +9 -0
- package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +20 -1
- package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +20 -1
- package/types/src/reader/domVisitors/DrawingVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/FormControlPrVisitor.d.ts +9 -0
- package/types/src/reader/domVisitors/ShapeTextVisitor.d.ts +44 -0
- package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +13 -1
- package/types/src/reader/domVisitors/index.d.ts +4 -2
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +1 -1
- package/types/src/utils/DrawingMLText.d.ts +39 -0
- package/types/src/utils/FormControls.d.ts +97 -0
- package/types/src/writer/builder/Emitter.d.ts +5 -0
- package/types/src/writer/builder/PackageBuilder.d.ts +2 -0
- package/types/src/writer/builder/Types.d.ts +10 -0
- package/types/src/writer/utils/CustGeomUtils.d.ts +5 -0
- package/types/src/writer/utils/DrawMLUtils.d.ts +39 -2
- package/types/src/writer/utils/PrstGeomUtils.d.ts +6 -0
- package/types/src/writer/utils/TextUtils.d.ts +21 -2
- package/browser/cjs/17tMBnuyu4YIxixh.cjs +0 -1
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +0 -1
- package/browser/cjs/BxU-OlZIQViQl7gX.cjs +0 -1
- package/browser/cjs/CIpMN7SDVREKQUQE.cjs +0 -6
- package/browser/cjs/DHKWtqZ0vQfXrbq1.cjs +0 -2
- package/browser/cjs/DpZr07y7ifaZGvJ9.cjs +0 -5
- package/browser/cjs/MqKQ_B5qRARrRbO4.cjs +0 -24
- package/browser/esm/96C1ntelYWh7kQtW.mjs +0 -24
- package/browser/esm/FwrsLfi1iEAQGIjj.mjs +0 -2402
- package/browser/esm/gicSNvWtBLkvLsIw.mjs +0 -159
- package/node/esm/B-g20MoPHbZFapp8.mjs +0 -4642
- package/node/esm/Bu9QkKpBW4G2ULAg.mjs +0 -2450
- package/node/esm/CHl-WFsto0oTmBtB.mjs +0 -3051
- package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +0 -6
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.9
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./Ccnxz-y2WBEgfvvh.mjs";
|
|
8
|
+
import { CommonUtils as t } from "@sheetxl/utils";
|
|
9
|
+
import { AddressUtils as n, IColor as r, IStyle as i } from "@sheetxl/sdk";
|
|
10
|
+
var a = (e, t, n) => {
|
|
11
|
+
let r = `Unable to read '${e}': ${t?.message ?? t}`;
|
|
12
|
+
n?.onWarning ? n.onWarning(r, e) : console.warn(r);
|
|
13
|
+
}, o = (e, t, n, r = null) => {
|
|
14
|
+
if (!e) return null;
|
|
15
|
+
let i = e;
|
|
16
|
+
i.startsWith("/") && (i = i.substring(1));
|
|
17
|
+
let o = r?.parsedRefs?.get(e);
|
|
18
|
+
if (o !== void 0) return o;
|
|
19
|
+
let s = t(i);
|
|
20
|
+
if (!s) return null;
|
|
21
|
+
let c = s.content;
|
|
22
|
+
try {
|
|
23
|
+
n && (c = n(c, e));
|
|
24
|
+
} catch (t) {
|
|
25
|
+
a(e, t, r);
|
|
26
|
+
}
|
|
27
|
+
return r?.parsedRefs?.set(e, c), c;
|
|
28
|
+
}, s = (e, n, r, i, o = null) => {
|
|
29
|
+
if (!e) return null;
|
|
30
|
+
let s = e;
|
|
31
|
+
s.startsWith("/") && (s = s.substring(1));
|
|
32
|
+
let c = o?.parsedRefs?.get(e);
|
|
33
|
+
if (c !== void 0) return c;
|
|
34
|
+
let l = n(s);
|
|
35
|
+
if (!l) return null;
|
|
36
|
+
let u = l.content;
|
|
37
|
+
try {
|
|
38
|
+
let n = new TextDecoder().decode(u), a = r.parseFromString(n, "text/xml"), s = i.transform(a, e, o ?? t.EmptyObject);
|
|
39
|
+
return o?.parsedRefs?.set(e, s), s;
|
|
40
|
+
} catch (t) {
|
|
41
|
+
a(e, t, o);
|
|
42
|
+
}
|
|
43
|
+
return null;
|
|
44
|
+
}, c = (e, t, n, r, i = null) => {
|
|
45
|
+
if (!e) return null;
|
|
46
|
+
let a = s(e, t, n, r, i);
|
|
47
|
+
if (!a) return null;
|
|
48
|
+
let o = /* @__PURE__ */ new Map(), c = Object.keys(a), l = c.length;
|
|
49
|
+
for (let e = 0; e < l; e++) {
|
|
50
|
+
let t = c[e], n = a[t];
|
|
51
|
+
o.set(t, n);
|
|
52
|
+
}
|
|
53
|
+
return o;
|
|
54
|
+
}, l = (e, t, n, r, i, a = null) => {
|
|
55
|
+
let o = /* @__PURE__ */ new Map(), c = t[e], l = c ? c.length : 0;
|
|
56
|
+
for (let e = 0; e < l; e++) {
|
|
57
|
+
let t = c[e];
|
|
58
|
+
if (!t) continue;
|
|
59
|
+
let l = t;
|
|
60
|
+
l.startsWith("/") && (l = l.substring(1));
|
|
61
|
+
let u = s(l, n, r, i, a);
|
|
62
|
+
o.set(l, u);
|
|
63
|
+
}
|
|
64
|
+
return o;
|
|
65
|
+
}, u = (e) => {
|
|
66
|
+
let t = e.split(/\/+/);
|
|
67
|
+
return t.reduce((e, t, n) => (t === "." ? e.splice(n, 1) : t === ".." && e.splice(n - 1, 2), e), t).join("/");
|
|
68
|
+
}, d = Object.freeze([
|
|
69
|
+
"lt1",
|
|
70
|
+
"dk1",
|
|
71
|
+
"lt2",
|
|
72
|
+
"dk2",
|
|
73
|
+
"accent1",
|
|
74
|
+
"accent2",
|
|
75
|
+
"accent3",
|
|
76
|
+
"accent4",
|
|
77
|
+
"accent5",
|
|
78
|
+
"accent6",
|
|
79
|
+
"hlink",
|
|
80
|
+
"folHlink"
|
|
81
|
+
]), f = (e, t = "auto") => {
|
|
82
|
+
let n, i = e("auto");
|
|
83
|
+
i === void 0 || i !== "1" && i !== "true" || (n = t);
|
|
84
|
+
let a = e("indexed");
|
|
85
|
+
a && (n = a === "64" ? "auto" : `index${a}`);
|
|
86
|
+
let o = e("rgb");
|
|
87
|
+
o && (n = o.toLowerCase(), o.length !== 8 || o.startsWith("FF") || (n = "FF" + o.substring(2, o.length)));
|
|
88
|
+
let s = e("theme");
|
|
89
|
+
s && (n = d[Number(s)]);
|
|
90
|
+
let c = e("tint");
|
|
91
|
+
if (c && (n += ` ${r.AdjustmentType.ETint} ${parseFloat(c)}`), n) return n;
|
|
92
|
+
}, p = (e) => e && e.replace(/^\{([\s\S]+)\}$/, "$1"), m = "hiddenXfs", h = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, g = (t) => {
|
|
93
|
+
if (!t || t.length === 0) return !1;
|
|
94
|
+
let r = n.refsToRuns(t, !0), i = 0;
|
|
95
|
+
for (let e of r) {
|
|
96
|
+
if (e.min > i || e.value?.s === void 0) return !1;
|
|
97
|
+
i = Math.max(i, e.max + 1);
|
|
98
|
+
}
|
|
99
|
+
return i > e;
|
|
100
|
+
}, _ = (e, t) => {
|
|
101
|
+
e.protection = {
|
|
102
|
+
...e.protection,
|
|
103
|
+
showFormulas: t
|
|
104
|
+
};
|
|
105
|
+
}, v = (e, t) => {
|
|
106
|
+
if (!t || t.size === 0) return;
|
|
107
|
+
let n = e.styles;
|
|
108
|
+
if (!n) return;
|
|
109
|
+
let r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
110
|
+
for (let n of e.sheets ?? []) {
|
|
111
|
+
let e = n?.sheet;
|
|
112
|
+
if (!e) continue;
|
|
113
|
+
let i = /* @__PURE__ */ new Set();
|
|
114
|
+
g(e.cols) || i.add(0);
|
|
115
|
+
for (let t of e.directStyles ?? []) i.add(Array.isArray(t) ? t[1] : t.v);
|
|
116
|
+
for (let t of e.rows ?? []) {
|
|
117
|
+
let e = h(t);
|
|
118
|
+
e !== void 0 && i.add(e);
|
|
119
|
+
}
|
|
120
|
+
for (let t of e.cols ?? []) {
|
|
121
|
+
let e = h(t);
|
|
122
|
+
e !== void 0 && i.add(e);
|
|
123
|
+
}
|
|
124
|
+
let o = !1;
|
|
125
|
+
for (let e of i) if (t.has(e)) {
|
|
126
|
+
o = !0;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
if (o) {
|
|
130
|
+
e.protection = {
|
|
131
|
+
...e.protection ?? { sheet: !0 },
|
|
132
|
+
showFormulas: !1
|
|
133
|
+
};
|
|
134
|
+
for (let e of i) (t.has(e) ? a : r).add(e);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (r.size === 0) return;
|
|
138
|
+
let o = n.direct ??= [];
|
|
139
|
+
for (let e of r) e !== 0 && _(o[e] ?? (o[e] = {}), !0);
|
|
140
|
+
for (let e of a) e !== 0 && _(o[e] ?? (o[e] = {}), !1);
|
|
141
|
+
if (r.has(0)) {
|
|
142
|
+
let e = n.named ??= [], t = i.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
|
|
143
|
+
r || (r = {
|
|
144
|
+
name: i.BuiltInName.Normal,
|
|
145
|
+
style: {}
|
|
146
|
+
}, e.push(r)), _(r.style, !0);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
export { s as a, p as c, o as i, u as l, v as n, l as o, c as r, f as s, m as t };
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { n as e, r as t, t as n } from "./
|
|
7
|
+
import { n as e, r as t, t as n } from "./Bu64BYvRAlVftMr1.mjs";
|
|
8
8
|
export { n as IOPlugin, e as XLSM_FORMAT_KEY, t as XLSX_FORMAT_KEY };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.9
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BsTMtvwpQoPNv95M.mjs";
|
|
8
8
|
import { InvalidPasswordError as t } from "@sheetxl/utils";
|
|
9
9
|
var r, n, a = class e {
|
|
10
10
|
static {
|