@sheetxl/io-xlsx 0.8.0-beta.12 → 0.8.0-beta.14
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/esm/{9dwUocbOsJuAcmKn.mjs → BjkdoGjLpkKUlK5q.mjs} +2234 -2250
- package/browser/esm/{DeMZN_qj__PKo4Wh.mjs → Bomb4K5f16UyiyED.mjs} +1 -1
- package/browser/esm/{D8k22TSWPd_RHEpj.mjs → Bs0IJqyry5ZycCBU.mjs} +988 -1008
- package/browser/esm/CIRY1QIACITHu_lA.mjs +24 -0
- package/browser/esm/{DVLJTjJCGqrJUa8c.mjs → Cs4lg7bxClbTkldF.mjs} +61 -61
- package/browser/esm/{aUBXbTh2r0u3x4Xo.mjs → DAYdoS9sLmYf8kzD.mjs} +2 -2
- package/browser/esm/{BIvDjK4Zl8bWRgl8.mjs → DKWU_JYjVmtOzTGr.mjs} +2 -2
- package/browser/esm/{DsppUz-14Z7ti9i3.mjs → DN7ig6HovGU5gMbr.mjs} +1 -1
- package/browser/esm/{CcH5ITJFTMVWUJO9.mjs → DbygDdjktfjoU4DI.mjs} +1041 -1041
- package/browser/esm/{DO75RoAQTgMuVzXv.mjs → DiNNY0EgHikWbrDz.mjs} +2 -2
- package/browser/esm/{DKnOwucZq4z9_-r-.mjs → QuYxg3ec6kN-djPF.mjs} +4 -4
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{C78E45n6j2E8rruH.mjs → BCSJ_kqVLXkZlYh3.mjs} +818 -819
- package/node/esm/{DXusvwW73FUDSyvD.mjs → BCXSNXHvNQ9JQMLE.mjs} +1129 -1129
- package/node/esm/{DsyuWxk3bdGhJUQN.mjs → BycDf9HTtfpzL-zt.mjs} +1 -1
- package/node/esm/{BmIIQODk4dBVIXA4.mjs → CTdvEKRTM-W1L1KU.mjs} +976 -994
- package/node/esm/{DCaAOfuW-w_dx_qd.mjs → CkenuXqno-ffP331.mjs} +2 -2
- package/node/esm/{CDKm5s3JE_d99TJw.mjs → CvcAx132Yp5uUDUB.mjs} +81 -81
- package/node/esm/{C-e5AO_4TnGywT-m.mjs → H9egT6kWCw8RAf76.mjs} +1 -1
- package/node/esm/{DSgxL0sBZtWMydVl.mjs → TPq4Re0SQgONsX_u.mjs} +2 -2
- package/node/esm/index.mjs +4 -4
- package/package.json +3 -3
- package/types/src/AutoFilterRules.d.ts +0 -42
- package/types/src/DataTableFormula.d.ts +0 -10
- package/types/src/DataValidationRules.d.ts +0 -5
- package/types/src/ExcelCalcStamp.d.ts +0 -36
- package/types/src/ExcelCompat.d.ts +0 -140
- package/types/src/ExcelFunctionFacts.d.ts +0 -272
- package/types/src/ExcelReservedNames.d.ts +0 -64
- package/types/src/KnownFonts.d.ts +0 -13
- package/types/src/LegacyFormula.d.ts +0 -58
- package/types/src/Plugin.d.ts +3 -3
- package/types/src/SheetKinds.d.ts +0 -15
- package/types/src/SourcePackage.d.ts +0 -44
- package/types/src/Types.d.ts +2 -3
- package/types/src/chart/_chartExStyle.d.ts +0 -9
- package/types/src/reader/DummyFunctionUnwrap.d.ts +43 -23
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +0 -8
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +0 -10
- package/types/src/reader/domVisitors/FeaturePropertyBagVisitor.d.ts +0 -9
- package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +0 -11
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +0 -9
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +0 -15
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +3 -1
- package/types/src/richValue/WebImageRichValueHandler.d.ts +0 -5
- package/types/src/utils/VmlNoteStyle.d.ts +0 -19
- package/types/src/vba/VBAProject.d.ts +0 -19
- package/types/src/writer/builder/OpcXmlUtils.d.ts +0 -8
- package/types/src/writer/builder/PackageBuilder.d.ts +0 -41
- package/types/src/writer/builder/Types.d.ts +0 -30
- package/types/src/writer/emitters/ExternalLinkEmitter.d.ts +0 -11
- package/types/src/writer/emitters/FeaturePropertyBagEmitter.d.ts +0 -10
- package/types/src/writer/utils/DefaultRows.d.ts +0 -16
- package/types/src/writer/utils/DummyFunction.d.ts +0 -23
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.14
|
|
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
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
8
|
+
let r = {};
|
|
9
|
+
for (var i in e) t(r, i, {
|
|
10
|
+
get: e[i],
|
|
11
|
+
enumerable: !0
|
|
12
|
+
});
|
|
13
|
+
return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
14
|
+
}, c = (o, s, c) => (c = o == null ? {} : e(i(o)), ((e, i, o, s) => {
|
|
15
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c, l = r(i), u = 0, d = l.length; u < d; u++) c = l[u], a.call(e, c) || c === o || t(e, c, {
|
|
16
|
+
get: ((e) => i[e]).bind(null, c),
|
|
17
|
+
enumerable: !(s = n(i, c)) || s.enumerable
|
|
18
|
+
});
|
|
19
|
+
return e;
|
|
20
|
+
})(!s && o && o.__esModule && a.call(o, "default") ? c : t(c, "default", {
|
|
21
|
+
value: o,
|
|
22
|
+
enumerable: !0
|
|
23
|
+
}), o));
|
|
24
|
+
export { s as n, c as r, o as t };
|
|
@@ -1,14 +1,14 @@
|
|
|
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.14
|
|
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 { A as e, At as t, Ct as n, D as r, Dt as i, Et as a, F as o,
|
|
8
|
-
import { i as fe, n as pe, r as me } from "./
|
|
9
|
-
import { a as he, o as ge, r as _e } from "./
|
|
7
|
+
import { A as e, At as t, Ct as n, D as r, Dt as i, Et as a, F as o, Gt as s, I as c, It as l, Kn as u, Kt as d, L as f, M as p, N as m, O as h, Ot as g, P as _, Pt as ee, R as v, Rn as y, Tt as b, bn as x, et as te, g as ne, j as S, k as re, qn as C, qt as w, r as ie, rt as ae, st as oe, t as se, tt as ce, wt as T, xn as E, xt as le, yt as ue, z as de } from "./BjkdoGjLpkKUlK5q.mjs";
|
|
8
|
+
import { i as fe, n as pe, r as me } from "./Bs0IJqyry5ZycCBU.mjs";
|
|
9
|
+
import { a as he, o as ge, r as _e } from "./Bomb4K5f16UyiyED.mjs";
|
|
10
10
|
import { CommonUtils as D } from "@sheetxl/utils";
|
|
11
|
-
import { AddressUtils as O, FormulaError as ve, IBorders as k, ICellStyle as A, ICondition as j, IFill as M, IFont as N, IRange as ye, IShape as P, ISlicerStyle as F, ITextFrame as I, ShapeStyleUtils as
|
|
11
|
+
import { AddressUtils as O, FormulaError as ve, IBorders as k, ICellStyle as A, ICondition as j, IFill as M, IFont as N, IRange as ye, IShape as P, ISlicerStyle as F, ITextFrame as I, ShapeStyleUtils as be, Sort as L, Tuple as R } from "@sheetxl/sdk";
|
|
12
12
|
var xe = class {
|
|
13
13
|
constructor(e) {
|
|
14
14
|
this.list = e;
|
|
@@ -185,7 +185,7 @@ var xe = class {
|
|
|
185
185
|
["lnRef", "stroke"],
|
|
186
186
|
["effectRef", "effect"]
|
|
187
187
|
], V = (e, t) => {
|
|
188
|
-
let n = new
|
|
188
|
+
let n = new p(), r = {};
|
|
189
189
|
for (let [i, a] of Ee) {
|
|
190
190
|
let o = e.evaluate(i, t);
|
|
191
191
|
if (!o) continue;
|
|
@@ -254,7 +254,7 @@ var xe = class {
|
|
|
254
254
|
readStyleRefs(e, t, n) {
|
|
255
255
|
let r = e.evaluate("style", t);
|
|
256
256
|
if (!r) return void (n.style = null);
|
|
257
|
-
let i = V(e, r), a =
|
|
257
|
+
let i = V(e, r), a = be.withoutDefaultStyleRefs({
|
|
258
258
|
...n,
|
|
259
259
|
style: i
|
|
260
260
|
});
|
|
@@ -266,7 +266,7 @@ var xe = class {
|
|
|
266
266
|
let n = {};
|
|
267
267
|
for (let e = 0; e < t.length; e++) {
|
|
268
268
|
let r = t.item(e);
|
|
269
|
-
r.name.startsWith("xmlns") || (n[r.localName ?? r.name] =
|
|
269
|
+
r.name.startsWith("xmlns") || (n[r.localName ?? r.name] = d(r.value));
|
|
270
270
|
}
|
|
271
271
|
return Object.keys(n).length > 0 ? n : void 0;
|
|
272
272
|
}
|
|
@@ -289,7 +289,7 @@ var xe = class {
|
|
|
289
289
|
visit(e, t, n) {}
|
|
290
290
|
processDataBarColor(e, t, n, r, i = "auto") {
|
|
291
291
|
if (!t) return;
|
|
292
|
-
let a =
|
|
292
|
+
let a = x((e) => t.getAttribute(e), i);
|
|
293
293
|
return a && (n[r] = a), n;
|
|
294
294
|
}
|
|
295
295
|
processFonts(e, t, n) {
|
|
@@ -309,12 +309,12 @@ var xe = class {
|
|
|
309
309
|
let r = e.evaluate("u", t);
|
|
310
310
|
if (r) {
|
|
311
311
|
let e = r.getAttribute("val");
|
|
312
|
-
n.underline =
|
|
312
|
+
n.underline = g(e);
|
|
313
313
|
}
|
|
314
314
|
let s = T(e.evaluate("vertAlign", t)?.getAttribute("val"));
|
|
315
|
-
s !== void 0 && (n.baseline = s),
|
|
316
|
-
let
|
|
317
|
-
this.processDataBarColor(e,
|
|
315
|
+
s !== void 0 && (n.baseline = s), c(e, t, n, "sz", "size");
|
|
316
|
+
let l = e.evaluate("color", t);
|
|
317
|
+
this.processDataBarColor(e, l, n, "color"), n.color ||= "auto", v(e, t, n, "name", "family"), v(e, t, n, "rFont", "family");
|
|
318
318
|
let u = e.evaluate("family", t);
|
|
319
319
|
if (u) {
|
|
320
320
|
let e = u.getAttribute("val");
|
|
@@ -339,7 +339,7 @@ var xe = class {
|
|
|
339
339
|
let i = a(r, !!e.getValAttrAsBoolean(r, t, !0));
|
|
340
340
|
i !== void 0 && (n.letterSpacing = i);
|
|
341
341
|
}
|
|
342
|
-
return
|
|
342
|
+
return f(e, t, n, "charset", "charset"), n;
|
|
343
343
|
}
|
|
344
344
|
processFills(e, t, n) {
|
|
345
345
|
if (!t) return;
|
|
@@ -486,7 +486,7 @@ var xe = class {
|
|
|
486
486
|
let i = n.content.json;
|
|
487
487
|
if (n.content.type === "shape" && i && (i.type ?? P.Type.Shape) === o) {
|
|
488
488
|
let n = e.evaluate("txBody", t), a = n ? new r().readTextBody(e, n) : null;
|
|
489
|
-
a &&
|
|
489
|
+
a && h(a) !== "" && (i.text = a);
|
|
490
490
|
}
|
|
491
491
|
return {};
|
|
492
492
|
}
|
|
@@ -511,7 +511,7 @@ var xe = class {
|
|
|
511
511
|
let a = t.getAttribute("macro");
|
|
512
512
|
a && (i.macro = a);
|
|
513
513
|
let o = t.getAttribute("textlink");
|
|
514
|
-
o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText =
|
|
514
|
+
o && (i.textLink = o), t.hasAttribute("fLocksText") && (i.locksText = d(t.getAttribute("fLocksText"))), t.hasAttribute("fPublished") && (i.published = d(t.getAttribute("fPublished")));
|
|
515
515
|
let s = r.slice(0, r.lastIndexOf("/")), c = e.evaluate(s, t);
|
|
516
516
|
c?.getAttribute?.("txBox") === "1" && (i.textBox = !0);
|
|
517
517
|
let l = this.readLocks(e.evaluate(r, t));
|
|
@@ -571,7 +571,7 @@ function Ne(e) {
|
|
|
571
571
|
break;
|
|
572
572
|
}
|
|
573
573
|
case "u":
|
|
574
|
-
t.underline =
|
|
574
|
+
t.underline = g(r.getAttribute("val"));
|
|
575
575
|
break;
|
|
576
576
|
case "vertAlign": {
|
|
577
577
|
let e = T(r.getAttribute("val"));
|
|
@@ -607,7 +607,7 @@ function Ne(e) {
|
|
|
607
607
|
t.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
|
|
608
608
|
break;
|
|
609
609
|
}
|
|
610
|
-
let n =
|
|
610
|
+
let n = x((e) => r.getAttribute(e));
|
|
611
611
|
n && (t.color = n);
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
@@ -690,7 +690,7 @@ var $ = {
|
|
|
690
690
|
};
|
|
691
691
|
}
|
|
692
692
|
},
|
|
693
|
-
ShapePropertiesVisitor:
|
|
693
|
+
ShapePropertiesVisitor: S,
|
|
694
694
|
TextPropertiesVisitor: re,
|
|
695
695
|
ShapeTextVisitor: r,
|
|
696
696
|
ThemeVisitor: class {
|
|
@@ -698,7 +698,7 @@ var $ = {
|
|
|
698
698
|
n.name = t.getAttribute("name"), n.objectDefaults = {};
|
|
699
699
|
let r = B(t, "custClrLst")[0];
|
|
700
700
|
if (r) {
|
|
701
|
-
let t = new
|
|
701
|
+
let t = new p(), i = [];
|
|
702
702
|
for (let n of B(r, "custClr")) {
|
|
703
703
|
let r = t.processAdjColor(e, n);
|
|
704
704
|
if (!r) continue;
|
|
@@ -720,7 +720,7 @@ var $ = {
|
|
|
720
720
|
return n;
|
|
721
721
|
}
|
|
722
722
|
},
|
|
723
|
-
ClrSchemeVisitor: class extends
|
|
723
|
+
ClrSchemeVisitor: class extends p {
|
|
724
724
|
visit(e, t, n) {
|
|
725
725
|
let r = {};
|
|
726
726
|
r.name = t.getAttribute("name");
|
|
@@ -775,14 +775,14 @@ var $ = {
|
|
|
775
775
|
}
|
|
776
776
|
processDefault(e, t) {
|
|
777
777
|
let n = {}, i = e.evaluate("spPr", t);
|
|
778
|
-
i && new
|
|
778
|
+
i && new S().visit(e, i, n);
|
|
779
779
|
let a = new r().readTextBody(e, t);
|
|
780
780
|
(a.body || a.listStyle) && (n.text = a);
|
|
781
781
|
let o = e.evaluate("style", t);
|
|
782
782
|
return o && (n.style = V(e, o)), n;
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
|
-
FmtSchemeVisitor: class extends
|
|
785
|
+
FmtSchemeVisitor: class extends p {
|
|
786
786
|
visit(e, t, n) {
|
|
787
787
|
let r = this.parseFillList(e, t, "fillStyleLst"), i = this.parseLnList(e, t, "lnStyleLst"), a = this.parseEffectStyleList(e, t, "effectStyleLst"), o = this.parseFillList(e, t, "bgFillStyleLst");
|
|
788
788
|
if (r && (n.fillStyleLst = r), i && (n.lnStyleLst = i), a && (n.effectStyleLst = a), o && (n.bgFillStyleLst = o), r && i && a && o) return;
|
|
@@ -879,7 +879,7 @@ var $ = {
|
|
|
879
879
|
return i.length === 1 ? i[0] : ce(a);
|
|
880
880
|
}
|
|
881
881
|
processDynamicFilter(e, t) {
|
|
882
|
-
return
|
|
882
|
+
return te(t.getAttribute("type"));
|
|
883
883
|
}
|
|
884
884
|
processDateGroupItem(e, t) {
|
|
885
885
|
let n = {};
|
|
@@ -927,7 +927,7 @@ var $ = {
|
|
|
927
927
|
let n = t.childNodes;
|
|
928
928
|
for (let t = 0; t < n.length; t++) {
|
|
929
929
|
let r = n.item(t);
|
|
930
|
-
if (r.nodeType !== 1 || r.localName !== "ext" ||
|
|
930
|
+
if (r.nodeType !== 1 || r.localName !== "ext" || y(r.getAttribute("uri")) !== y("{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}")) continue;
|
|
931
931
|
let i = r.childNodes;
|
|
932
932
|
for (let t = 0; t < i.length; t++) {
|
|
933
933
|
let n = i.item(t);
|
|
@@ -953,12 +953,12 @@ var $ = {
|
|
|
953
953
|
if (!t) return null;
|
|
954
954
|
if (!t.hasAttribute("colId")) return;
|
|
955
955
|
let r = parseInt(t.getAttribute("colId")), i = !1;
|
|
956
|
-
if (t.hasAttribute("hiddenButton") && (i =
|
|
956
|
+
if (t.hasAttribute("hiddenButton") && (i = d(t.getAttribute("hiddenButton"))), i && n) {
|
|
957
957
|
let e = n.hiddenButtons;
|
|
958
958
|
e || (e = [], n.hiddenButtons = e), e.push(r);
|
|
959
959
|
}
|
|
960
960
|
let a = !1;
|
|
961
|
-
if (t.hasAttribute("showButton") && (a =
|
|
961
|
+
if (t.hasAttribute("showButton") && (a = d(t.getAttribute("showButton"))), a && n) {
|
|
962
962
|
let e = n.showButtons;
|
|
963
963
|
!0 !== e && (e || (e = [], n.showButtons = e), e[r] = !0);
|
|
964
964
|
}
|
|
@@ -982,7 +982,7 @@ var $ = {
|
|
|
982
982
|
visit(e, t, n) {
|
|
983
983
|
if (!t) return;
|
|
984
984
|
let r = t.getAttribute("ref"), i = {};
|
|
985
|
-
t.hasAttribute("caseSensitive") && (i.collatorOptions =
|
|
985
|
+
t.hasAttribute("caseSensitive") && (i.collatorOptions = d(t.getAttribute("caseSensitive")) ? L.CaseSensitiveOptions : L.CaseInsensitiveOptions);
|
|
986
986
|
let a = t.getAttribute("sortMethod");
|
|
987
987
|
a != null && a !== "none" && (a === "stroke" ? i.collatorOptions = {
|
|
988
988
|
...i.collatorOptions,
|
|
@@ -992,15 +992,15 @@ var $ = {
|
|
|
992
992
|
collation: "pinyin"
|
|
993
993
|
}));
|
|
994
994
|
let o = {};
|
|
995
|
-
t.hasAttribute("columnSort") &&
|
|
996
|
-
let s = O.fastStringToRange(r), c = [],
|
|
997
|
-
this.processSortConditions(e, t, c, s, i,
|
|
998
|
-
let
|
|
999
|
-
if (
|
|
1000
|
-
let e = O.fastStringToRange(
|
|
995
|
+
t.hasAttribute("columnSort") && d(t.getAttribute("columnSort")) && (o.axis = ye.Axis.Column);
|
|
996
|
+
let s = O.fastStringToRange(r), c = [], u = [];
|
|
997
|
+
this.processSortConditions(e, t, c, s, i, u), c.length > 0 && (o.sorts = c);
|
|
998
|
+
let f = e.getVisitorParamsState().get("ref");
|
|
999
|
+
if (f && r) {
|
|
1000
|
+
let e = O.fastStringToRange(f);
|
|
1001
1001
|
o.extent = {
|
|
1002
|
-
range:
|
|
1003
|
-
sorts:
|
|
1002
|
+
range: l(e, s),
|
|
1003
|
+
sorts: u.map((t) => ee(e, s, t))
|
|
1004
1004
|
};
|
|
1005
1005
|
}
|
|
1006
1006
|
return Object.keys(c).length > 0 && (n.sort = o), o;
|
|
@@ -1014,7 +1014,7 @@ var $ = {
|
|
|
1014
1014
|
a.index = n ? r.colStart - n.colStart : r.colStart, i?.push(r);
|
|
1015
1015
|
}
|
|
1016
1016
|
let o = { ...r };
|
|
1017
|
-
a.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse =
|
|
1017
|
+
a.criteria = o, o.reverse = !1, t.hasAttribute("descending") && (o.reverse = d(t.getAttribute("descending")));
|
|
1018
1018
|
let s = ae(t.getAttribute("sortBy"));
|
|
1019
1019
|
s && (o.sortOn = s);
|
|
1020
1020
|
let c = U(e, t);
|
|
@@ -1148,7 +1148,7 @@ var $ = {
|
|
|
1148
1148
|
let e = i.get(parseInt(o));
|
|
1149
1149
|
e && e !== A.BuiltInName.Normal && (n.named = e);
|
|
1150
1150
|
}
|
|
1151
|
-
let s = (e) => !(!a && t.hasAttribute(e)) ||
|
|
1151
|
+
let s = (e) => !(!a && t.hasAttribute(e)) || d(t.getAttribute(e)), c = (e) => !a || t.hasAttribute(e) && d(t.getAttribute(e)), l = a ? "0" : void 0;
|
|
1152
1152
|
if (s("applyFont")) {
|
|
1153
1153
|
let e = t.getAttribute("fontId") ?? l;
|
|
1154
1154
|
if (e !== void 0 && (e !== "0" || c("applyFont"))) {
|
|
@@ -1188,16 +1188,16 @@ var $ = {
|
|
|
1188
1188
|
let r = e.evaluate("protection", t);
|
|
1189
1189
|
(r || c("applyProtection")) && this.processProtection(e, r, n);
|
|
1190
1190
|
}
|
|
1191
|
-
let u =
|
|
1191
|
+
let u = d(t.getAttribute("quotePrefix") ?? "");
|
|
1192
1192
|
u && (n.quotePrefix = u);
|
|
1193
1193
|
}
|
|
1194
1194
|
processAlignment(e, t, n) {
|
|
1195
1195
|
let r = {};
|
|
1196
|
-
if (r.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : I.HorizontalAlignment.General, r.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : I.VerticalAlignment.Bottom, r.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, r.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, r.overflow =
|
|
1196
|
+
if (r.horizontal = t?.hasAttribute("horizontal") ? t.getAttribute("horizontal") : I.HorizontalAlignment.General, r.vertical = t?.hasAttribute("vertical") ? t.getAttribute("vertical") : I.VerticalAlignment.Bottom, r.indent = t?.hasAttribute("indent") ? parseInt(t.getAttribute("indent")) : 0, r.relativeIndent = t?.hasAttribute("relativeIndent") ? parseInt(t.getAttribute("relativeIndent")) : 0, r.overflow = d(t?.getAttribute("wrapText") ?? "") ? I.Overflow.Wrap : I.Overflow.Visible, d(t?.getAttribute("shrinkToFit") ?? "") && (r.overflow = I.Overflow.Shrink), t?.hasAttribute("textRotation")) {
|
|
1197
1197
|
let e = parseFloat(t.getAttribute("textRotation"));
|
|
1198
1198
|
e > 0 && e <= 90 ? e = 360 - e : e > 90 && e <= 180 ? e -= 90 : e === 255 && (e = 0, r.stacked = !0), r.rotation = e;
|
|
1199
1199
|
} else r.rotation = 0;
|
|
1200
|
-
t?.hasAttribute("justifyLastLine") && (r.justifyLastLine =
|
|
1200
|
+
t?.hasAttribute("justifyLastLine") && (r.justifyLastLine = d(t.getAttribute("justifyLastLine")));
|
|
1201
1201
|
let i = t?.getAttribute("readingOrder");
|
|
1202
1202
|
return i && (i === "0" ? r.readingDirection = I.ReadingDirection.Auto : i === "1" ? r.readingDirection = I.ReadingDirection.LeftToRight : i === "2" ? r.readingDirection = I.ReadingDirection.RightToLeft : e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`, { onceKey: "xlsx.style.readingOrder" })), Object.keys(r).length > 0 && (n.alignment = r), n;
|
|
1203
1203
|
}
|
|
@@ -1211,7 +1211,7 @@ var $ = {
|
|
|
1211
1211
|
let a = i.childNodes;
|
|
1212
1212
|
for (let e = 0; e < a.length; e++) {
|
|
1213
1213
|
let n = a.item(e);
|
|
1214
|
-
n.nodeType === 1 && n.localName === "protection" &&
|
|
1214
|
+
n.nodeType === 1 && n.localName === "protection" && d(n.getAttribute("hidden") ?? "") && t.add(r);
|
|
1215
1215
|
}
|
|
1216
1216
|
r++;
|
|
1217
1217
|
}
|
|
@@ -1239,7 +1239,7 @@ var $ = {
|
|
|
1239
1239
|
processProtection(e, t, n) {
|
|
1240
1240
|
if (!t) return;
|
|
1241
1241
|
let r = t.getAttribute("locked");
|
|
1242
|
-
return n.protection = { alwaysUnlocked: !!r && !
|
|
1242
|
+
return n.protection = { alwaysUnlocked: !!r && !d(r) }, n;
|
|
1243
1243
|
}
|
|
1244
1244
|
processDXF(e, t, n) {
|
|
1245
1245
|
if (!t) return;
|
|
@@ -1332,7 +1332,7 @@ var $ = {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
processTableStyle(e, t, n, r, i = !1) {
|
|
1334
1334
|
let a = t.getAttribute("name"), o = { name: a };
|
|
1335
|
-
t.hasAttribute("table") && (o.table =
|
|
1335
|
+
t.hasAttribute("table") && (o.table = d(t.getAttribute("table"))), t.hasAttribute("pivot") && (o.pivot = d(t.getAttribute("pivot"))), i && !o.pivot && r.unshift(null);
|
|
1336
1336
|
let s = t.childNodes, c = s.length;
|
|
1337
1337
|
for (let t = 0; t < c; t++) {
|
|
1338
1338
|
let n = s.item(t);
|
|
@@ -1374,7 +1374,7 @@ var $ = {
|
|
|
1374
1374
|
name: s,
|
|
1375
1375
|
style: r[e]
|
|
1376
1376
|
};
|
|
1377
|
-
t.getAttribute("hidden") && (c.hidden =
|
|
1377
|
+
t.getAttribute("hidden") && (c.hidden = d(t.getAttribute("hidden"))), t.getAttribute("iLevel") && (c.iLevel = parseInt(t.getAttribute("iLevel"))), o !== null && d(t.getAttribute("customBuiltin") ?? "0") && (c.customized = !0), n.push(c);
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
}
|
|
@@ -1415,11 +1415,11 @@ var $ = {
|
|
|
1415
1415
|
processSheetRef(e, t, n) {
|
|
1416
1416
|
let r = {};
|
|
1417
1417
|
e.copyFromAttribute(t, "name", r, "name"), e.copyFromAttribute(t, "state", r, "visibility"), e.copyFromAttribute(t, "sheetId", r, "sheetId", e.INT_COPY);
|
|
1418
|
-
let i = t.getAttribute("r:id"), a = i ?
|
|
1418
|
+
let i = t.getAttribute("r:id"), a = i ? C(e.getRelationships().get(i)?.type) : null;
|
|
1419
1419
|
if (a) {
|
|
1420
1420
|
let t = e.readEmbeddedPart(i);
|
|
1421
1421
|
if (t?.xml) {
|
|
1422
|
-
let e = { part: t }, i =
|
|
1422
|
+
let e = { part: t }, i = u(t.xml), o = i ? x((e) => i.get(e)) : void 0;
|
|
1423
1423
|
o && (e.tabColor = o), r.kind = a, r.sheet = e, n.push(r);
|
|
1424
1424
|
return;
|
|
1425
1425
|
}
|
|
@@ -1639,7 +1639,7 @@ var $ = {
|
|
|
1639
1639
|
i.length > 0 && (n.sheetDataSet = i);
|
|
1640
1640
|
}
|
|
1641
1641
|
processSheetData(e, t) {
|
|
1642
|
-
let n = new
|
|
1642
|
+
let n = new R.Builder(), r = t.childNodes, i = r.length;
|
|
1643
1643
|
for (let e = 0; e < i; e++) {
|
|
1644
1644
|
let t = r.item(e);
|
|
1645
1645
|
if (t.nodeType !== 1 || t.localName !== "row") continue;
|
|
@@ -1740,7 +1740,7 @@ var $ = {
|
|
|
1740
1740
|
} else n.localName === "extLst" && (o = e.serializeElement(n) ?? void 0);
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
let c =
|
|
1743
|
+
let c = ne(r, a, o);
|
|
1744
1744
|
return n.formControl = c, c;
|
|
1745
1745
|
}
|
|
1746
1746
|
},
|
|
@@ -1789,7 +1789,7 @@ var $ = {
|
|
|
1789
1789
|
if (e.getPath().includes("Fallback")) return {};
|
|
1790
1790
|
let { movable: r } = this.readMemberHeader(e, t, "graphicFrame"), i = e.evaluate("xfrm", t);
|
|
1791
1791
|
if (i) {
|
|
1792
|
-
|
|
1792
|
+
_(i, r);
|
|
1793
1793
|
let t = e.evaluate("off", i), n = e.evaluate("ext", i);
|
|
1794
1794
|
r.anchor = {
|
|
1795
1795
|
tl: {
|
|
@@ -1878,7 +1878,7 @@ var $ = {
|
|
|
1878
1878
|
readPictureDetails(e, t, n, r, i) {
|
|
1879
1879
|
n?.resId !== void 0 && (i.resId = n.resId), n?.image && (i.image = n.image);
|
|
1880
1880
|
let a = t.getAttribute("macro");
|
|
1881
|
-
a && (i.macro = a), t.hasAttribute("fPublished") && (i.published =
|
|
1881
|
+
a && (i.macro = a), t.hasAttribute("fPublished") && (i.published = d(t.getAttribute("fPublished")));
|
|
1882
1882
|
let o = e.evaluate("nvPicPr/cNvPicPr", t);
|
|
1883
1883
|
if (o?.getAttribute) {
|
|
1884
1884
|
o.getAttribute("preferRelativeResize") === "0" && (i.noRelativeResize = !0);
|
|
@@ -1890,7 +1890,7 @@ var $ = {
|
|
|
1890
1890
|
let n = e.evaluate("blipFill", t), r = n ? e.evaluate("blip", n) : null;
|
|
1891
1891
|
if (!r) return;
|
|
1892
1892
|
if (!(r.getAttribute("r:embed") ?? r.getAttribute("embed") ?? r.getAttribute("r:link") ?? r.getAttribute("link"))) return e.warn("A picture names no image; it was not imported.", { onceKey: "xlsx.drawing.picture.noRel" }), null;
|
|
1893
|
-
let { type: i, resId: a, ...o } = new
|
|
1893
|
+
let { type: i, resId: a, ...o } = new p().processImageFill(e, n);
|
|
1894
1894
|
return !o.tile && o.stretch && Object.keys(o.stretch).length === 0 && delete o.stretch, o.extLst && Ae.test(o.extLst) && delete o.extLst, {
|
|
1895
1895
|
resId: a,
|
|
1896
1896
|
image: Object.keys(o).length > 0 ? o : void 0
|
|
@@ -1899,7 +1899,7 @@ var $ = {
|
|
|
1899
1899
|
},
|
|
1900
1900
|
DrawingGrpSpVisitor: class extends H {
|
|
1901
1901
|
constructor(...e) {
|
|
1902
|
-
super(...e), this._fills = new
|
|
1902
|
+
super(...e), this._fills = new p();
|
|
1903
1903
|
}
|
|
1904
1904
|
visit(e, t, n) {
|
|
1905
1905
|
if (!t) return;
|
|
@@ -1926,7 +1926,7 @@ var $ = {
|
|
|
1926
1926
|
if (c) {
|
|
1927
1927
|
let t = e.evaluate("xfrm", c);
|
|
1928
1928
|
if (t) {
|
|
1929
|
-
|
|
1929
|
+
_(t, i), t.getAttribute("flipH") === "1" && (i.flipH = !0), t.getAttribute("flipV") === "1" && (i.flipV = !0);
|
|
1930
1930
|
let n = Z(e, t, "off", "ext"), o = Z(e, t, "chOff", "chExt") ?? n;
|
|
1931
1931
|
o && (a.childBounds = o), r && n && (i.anchor = {
|
|
1932
1932
|
tl: {
|
|
@@ -2180,16 +2180,16 @@ var $ = {
|
|
|
2180
2180
|
visit(e, t, n) {
|
|
2181
2181
|
if (!t) return;
|
|
2182
2182
|
let r = {};
|
|
2183
|
-
e.copyFromAttribute(t, "id", r, "id",
|
|
2183
|
+
e.copyFromAttribute(t, "id", r, "id", E);
|
|
2184
2184
|
let i = t.getAttribute("ref");
|
|
2185
|
-
e.copyFromAttribute(t, "personId", r, "personId",
|
|
2185
|
+
e.copyFromAttribute(t, "personId", r, "personId", E), e.copyFromAttribute(t, "parentId", r, "parentId", E);
|
|
2186
2186
|
let a = t.getAttribute("dT");
|
|
2187
2187
|
a && (r.dt = function(e) {
|
|
2188
2188
|
let t = /^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());
|
|
2189
2189
|
if (!t) return e;
|
|
2190
2190
|
let [, n, r, i] = t;
|
|
2191
2191
|
return `${n}${r ? `.${(r + "00").substring(0, 3)}` : ""}${i ?? "Z"}`;
|
|
2192
|
-
}(a)), t.hasAttribute("done") && (r.done =
|
|
2192
|
+
}(a)), t.hasAttribute("done") && (r.done = d(t.getAttribute("done")));
|
|
2193
2193
|
let o = function(e) {
|
|
2194
2194
|
let t, n = e.childNodes;
|
|
2195
2195
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -2202,8 +2202,8 @@ var $ = {
|
|
|
2202
2202
|
let r = n.getAttribute("mentionId"), a = n.getAttribute("mentionpersonId");
|
|
2203
2203
|
if (!r || !a) continue;
|
|
2204
2204
|
let o = {
|
|
2205
|
-
id:
|
|
2206
|
-
personId:
|
|
2205
|
+
id: E(r),
|
|
2206
|
+
personId: E(a)
|
|
2207
2207
|
}, s = parseInt(n.getAttribute("startIndex") ?? "", 10);
|
|
2208
2208
|
isNaN(s) || (o.startIndex = s);
|
|
2209
2209
|
let c = parseInt(n.getAttribute("length") ?? "", 10);
|
|
@@ -2225,7 +2225,7 @@ var $ = {
|
|
|
2225
2225
|
let n = i.item(t);
|
|
2226
2226
|
if (n.nodeType === 1 && n.localName === "person") {
|
|
2227
2227
|
let t = {};
|
|
2228
|
-
e.copyFromAttribute(n, "id", t, "id",
|
|
2228
|
+
e.copyFromAttribute(n, "id", t, "id", E), e.copyFromAttribute(n, "displayName", t), e.copyFromAttribute(n, "userId", t, "userId", E), e.copyFromAttribute(n, "providerId", t), r.push(t);
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
return r.length > 0 && (n.persons = r), r;
|
|
@@ -2325,4 +2325,4 @@ var $ = {
|
|
|
2325
2325
|
return s;
|
|
2326
2326
|
}
|
|
2327
2327
|
};
|
|
2328
|
-
export { Fe as DOMTransformer, z as ExecutionContext,
|
|
2328
|
+
export { Fe as DOMTransformer, z as ExecutionContext, s as NumberUtils, m as VisitorUtils };
|
|
@@ -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.14
|
|
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 "./DN7ig6HovGU5gMbr.mjs";
|
|
8
8
|
var t, n;
|
|
9
9
|
function r(e, t) {
|
|
10
10
|
if (t < 0 || t + 1 >= e.length) throw RangeError(`toUInt16LE: Offset ${t} is out of bounds for buffer length ${e.length}. Needed 2 bytes.`);
|
|
@@ -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.14
|
|
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 "./DN7ig6HovGU5gMbr.mjs";
|
|
8
8
|
import { InvalidPasswordError as t } from "@sheetxl/utils";
|
|
9
9
|
var n, r, i = class e {
|
|
10
10
|
static {
|
|
@@ -1,5 +1,5 @@
|
|
|
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.14
|
|
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.
|