@sheetxl/io-xlsx 0.8.0-beta.17 → 0.8.0-beta.18

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.
Files changed (24) hide show
  1. package/browser/esm/{DkPeYeIMvBK8Eah9.mjs → -KRyXGu8vSU2_aoz.mjs} +2 -2
  2. package/browser/esm/{v62NoYBoJsLBOx4t.mjs → B0g67yOavGy-64ig.mjs} +1 -1
  3. package/browser/esm/{BLH_fdMkhqCfGkFY.mjs → BCmU_QetijOQ0GTw.mjs} +2555 -2450
  4. package/browser/esm/{AWuwwrCTwDE4BQGH.mjs → BF6BvY9DV4Gp_iED.mjs} +1098 -1033
  5. package/browser/esm/{clykE4nUirU2W3vs.mjs → Bk5DhODM_XDsReG1.mjs} +1 -1
  6. package/browser/esm/{D-Am_xNiOPyhux5g.mjs → BrWB8i4kGcwNkWCK.mjs} +2 -2
  7. package/browser/esm/{DzhKyRH8kCAq3RME.mjs → CQs7RGq9xYVoB9_4.mjs} +2 -2
  8. package/browser/esm/{Claqh8OFs-oOlRgt.mjs → CSv6N7-RtyTNgPVq.mjs} +35 -35
  9. package/browser/esm/{DcMn-jMfEKpjhLbo.mjs → Cmr4puXLAogv9phO.mjs} +219 -219
  10. package/browser/esm/{BNcdhezQHA9IHqw0.mjs → Cn6q2FZw2FEYwqrH.mjs} +4 -4
  11. package/browser/esm/{DMSfJNobVqxFPB5z.mjs → CqLXe-Cjgzr2aoJ7.mjs} +1667 -1640
  12. package/browser/esm/index.mjs +2 -2
  13. package/node/esm/{DzJgqbx-KLtMlyhJ.mjs → Bu10Ku8ACBt_nxP2.mjs} +1336 -1271
  14. package/node/esm/{BhL3ux1VNOQEm_LA.mjs → CJA6KJifaKAJXi5u.mjs} +1 -1
  15. package/node/esm/{-uXTHNC2553Wwb9i.mjs → CWQ7fMNzv5ym3iEI.mjs} +2 -2
  16. package/node/esm/{DzvOmNedQaxRP8vP.mjs → Cy2QJykt36bM_j5g.mjs} +1693 -1587
  17. package/node/esm/{CYECv2Dos3ESL0dz.mjs → Di0fvijqbWOLO8HH.mjs} +1818 -1791
  18. package/node/esm/{YeqmZZ0sTX1KjGuk.mjs → IYVwQ-ZlP9w1nH_d.mjs} +2 -2
  19. package/node/esm/{C6lGe8n0PfRCbm1A.mjs → TpB2s0nbyTi5BRNy.mjs} +35 -35
  20. package/node/esm/index.mjs +4 -4
  21. package/node/esm/{CxWtlje55fg8xrWp.mjs → noNQRkOcEm26Rn-6.mjs} +199 -199
  22. package/package.json +3 -3
  23. package/types/src/OOXMLExtensions.d.ts +5 -0
  24. package/types/src/SparklineGroups.d.ts +52 -0
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.17
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.17
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./clykE4nUirU2W3vs.mjs";
7
+ import { t as e } from "./Bk5DhODM_XDsReG1.mjs";
8
8
  var t = e((e) => {
9
9
  function t(e, t) {
10
10
  return t === void 0 && (t = Object), t && typeof t.getOwnPropertyDescriptors == "function" && (e = t.create(null, t.getOwnPropertyDescriptors(e))), t && typeof t.freeze == "function" ? t.freeze(e) : e;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.17
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./v62NoYBoJsLBOx4t.mjs";
7
+ import { t as e } from "./B0g67yOavGy-64ig.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.17
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.18
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { bn as e, gn as t, vn as n, yn as r } from "./BLH_fdMkhqCfGkFY.mjs";
7
+ import { En as e, Sn as t, Tn as n, wn as r } from "./BCmU_QetijOQ0GTw.mjs";
8
8
  import { Color as i, FormulaError as a, IFill as o, IFontStyle as s } from "@sheetxl/sdk";
9
9
  var c = [
10
10
  "customMenu",
@@ -31,11 +31,11 @@ var c = [
31
31
  throw e;
32
32
  }
33
33
  }, g = (e) => {
34
- let t = n(e, "cacheSource");
35
- if (!t || r(t.attributes).get("type") !== "worksheet") return;
36
- let i = n(e, "worksheetSource", t.contentStart, t.end);
34
+ let t = r(e, "cacheSource");
35
+ if (!t || n(t.attributes).get("type") !== "worksheet") return;
36
+ let i = r(e, "worksheetSource", t.contentStart, t.end);
37
37
  if (!i) return;
38
- let a = r(i.attributes);
38
+ let a = n(i.attributes);
39
39
  if (a.has("r:id")) return;
40
40
  let o = {};
41
41
  for (let e of [
@@ -48,22 +48,22 @@ var c = [
48
48
  }
49
49
  return o;
50
50
  }, _ = (t, i, a) => {
51
- let o = t.xml ?? f(), s = ee(o, "pivotCacheDefinition") ?? f(), c = r(s.attributes), l = c.get("r:id"), u = t.parts?.find((e) => e.id === l && e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords")?.xml ?? null;
51
+ let o = t.xml ?? f(), s = ee(o, "pivotCacheDefinition") ?? f(), c = n(s.attributes), l = c.get("r:id"), u = t.parts?.find((e) => e.id === l && e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords")?.xml ?? null;
52
52
  l !== void 0 && u === null && f();
53
- let d = g(o) ?? f(), p = n(o, "cacheSource") ?? f(), m = n(o, "worksheetSource", p.contentStart, p.end) ?? f(), h = n(o, "cacheFields") ?? f(), _ = [], re = h.contentStart;
53
+ let d = g(o) ?? f(), p = r(o, "cacheSource") ?? f(), m = r(o, "worksheetSource", p.contentStart, p.end) ?? f(), h = r(o, "cacheFields") ?? f(), _ = [], re = h.contentStart;
54
54
  for (;;) {
55
- let e = n(o, "cacheField", re, h.contentEnd);
55
+ let e = r(o, "cacheField", re, h.contentEnd);
56
56
  if (!e) break;
57
57
  _.push(ne(o, e, _.length, i, a)), re = e.end;
58
58
  }
59
- let v = n(o, "calculatedItems");
59
+ let v = r(o, "calculatedItems");
60
60
  v && te(o, v, _);
61
61
  let ie = u === null ? parseInt(c.get("recordCount") ?? "0", 10) : y(u, _.filter((e) => e.records !== null), i), b = [], ae = [];
62
62
  for (let e = 0; e < _.length; e++) {
63
63
  let t = _[e];
64
64
  t.hasDate && t.hasNumber ? t.json.dateItems = t.dateItems : t.hasDate && (t.json.dates = !0), t.items.length > 0 && b.push([e, [[0, t.items]]]), t.records && t.records.length > 0 && ae.push([e, [[0, t.records]]]);
65
65
  }
66
- let oe = v ? o.substring(0, v.start) + o.substring(v.end) : o, se = n(oe, "cacheFields") ?? f(), x = oe.substring(0, se.start) + oe.substring(se.end), S = o.substring(m.start, m.start + m.attributes.length + 16);
66
+ let oe = v ? o.substring(0, v.start) + o.substring(v.end) : o, se = r(oe, "cacheFields") ?? f(), x = oe.substring(0, se.start) + oe.substring(se.end), S = o.substring(m.start, m.start + m.attributes.length + 16);
67
67
  x = x.replace(S, () => "<worksheetSource" + e(m.attributes, [
68
68
  "ref",
69
69
  "sheet",
@@ -92,10 +92,10 @@ var c = [
92
92
  }, te = (e, t, i) => {
93
93
  let a = t.contentStart;
94
94
  for (;;) {
95
- let o = n(e, "calculatedItem", a, t.contentEnd);
95
+ let o = r(e, "calculatedItem", a, t.contentEnd);
96
96
  if (!o) break;
97
97
  a = o.end;
98
- let s = r(o.attributes).get("formula") ?? f(), c = [...e.substring(o.contentStart, o.contentEnd).matchAll(/<reference\s[^>]*?field="(\d+)"[^>]*>\s*<x(?:\s+v="(\d+)")?\s*\/>\s*<\/reference>/g)];
98
+ let s = n(o.attributes).get("formula") ?? f(), c = [...e.substring(o.contentStart, o.contentEnd).matchAll(/<reference\s[^>]*?field="(\d+)"[^>]*>\s*<x(?:\s+v="(\d+)")?\s*\/>\s*<\/reference>/g)];
99
99
  c.length !== 1 && f();
100
100
  let l = i[parseInt(c[0][1], 10)] ?? f();
101
101
  (l.json.calculatedItems ??= []).push({
@@ -104,52 +104,52 @@ var c = [
104
104
  });
105
105
  }
106
106
  }, ne = (i, a, o, s, c) => {
107
- let l = r(a.attributes), u = { name: l.get("name") ?? f() }, d = l.get("numFmtId"), p = d === void 0 ? void 0 : c(parseInt(d, 10));
107
+ let l = n(a.attributes), u = { name: l.get("name") ?? f() }, d = l.get("numFmtId"), p = d === void 0 ? void 0 : c(parseInt(d, 10));
108
108
  p !== void 0 && (u.numberFormat = p);
109
109
  let h = l.get("databaseField") === "0";
110
110
  h && (u.noRecords = !0);
111
111
  let g = l.get("formula");
112
112
  g !== void 0 && (u.formula = g);
113
- let _ = n(i, "fieldGroup", a.contentStart, a.contentEnd);
113
+ let _ = r(i, "fieldGroup", a.contentStart, a.contentEnd);
114
114
  _ && (u.group = ((e, i, a, o) => {
115
- let s = r(i.attributes), c = (e) => e === void 0 ? void 0 : parseInt(e, 10), l = {
115
+ let s = n(i.attributes), c = (e) => e === void 0 ? void 0 : parseInt(e, 10), l = {
116
116
  base: c(s.get("base")) ?? a,
117
117
  items: []
118
118
  }, u = c(s.get("par"));
119
119
  u !== void 0 && (l.parent = u);
120
- let d = n(e, "groupItems", i.contentStart, i.contentEnd);
120
+ let d = r(e, "groupItems", i.contentStart, i.contentEnd);
121
121
  if (d) {
122
122
  let t = e.substring(d.contentStart, d.contentEnd);
123
123
  m.lastIndex = 0;
124
- let n, i = 0, a = {
124
+ let r, i = 0, a = {
125
125
  items: l.items,
126
126
  hasDate: !1,
127
127
  hasNumber: !1,
128
128
  dateItems: []
129
129
  };
130
- for (; n = m.exec(t);) (n[3] !== "/" || t.substring(i, n.index).trim()) && f(), l.items.push(v(n[1], r(n[2]).get("v"), a, o)), i = m.lastIndex;
130
+ for (; r = m.exec(t);) (r[3] !== "/" || t.substring(i, r.index).trim()) && f(), l.items.push(v(r[1], n(r[2]).get("v"), a, o)), i = m.lastIndex;
131
131
  t.substring(i).trim() && f(), a.hasDate && (l.dateItems = a.dateItems);
132
132
  }
133
- let p = n(e, "rangePr", i.contentStart, i.contentEnd);
133
+ let p = r(e, "rangePr", i.contentStart, i.contentEnd);
134
134
  if (p) {
135
- let e = r(p.attributes), n = e.get("groupBy") ?? "range", i = n !== "range", a = (n) => {
135
+ let e = n(p.attributes), r = e.get("groupBy") ?? "range", i = r !== "range", a = (n) => {
136
136
  let r = e.get(`${n}${i ? "Date" : "Num"}`) ?? f(), a = i ? t(r, o) : Number(r);
137
137
  return a !== null && Number.isFinite(a) ? a : f();
138
138
  }, s = {
139
- by: i ? n : "numbers",
139
+ by: i ? r : "numbers",
140
140
  start: a("start"),
141
141
  end: a("end")
142
142
  }, c = e.get("groupInterval");
143
143
  c !== void 0 && (s.interval = Number(c)), e.get("autoStart") === "0" && (s.fixedStart = !0), e.get("autoEnd") === "0" && (s.fixedEnd = !0), l.range = s;
144
144
  }
145
- let h = n(e, "discretePr", i.contentStart, i.contentEnd);
145
+ let h = r(e, "discretePr", i.contentStart, i.contentEnd);
146
146
  if (h) {
147
147
  let t = e.substring(h.contentStart, h.contentEnd);
148
- l.discrete = Array.from(t.matchAll(/<x((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*\/>/g), (e) => c(r(e[1]).get("v")) ?? 0);
148
+ l.discrete = Array.from(t.matchAll(/<x((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*\/>/g), (e) => c(n(e[1]).get("v")) ?? 0);
149
149
  }
150
150
  return l;
151
151
  })(i, _, o, s));
152
- let ee = h ? null : n(i, "sharedItems", a.contentStart, a.contentEnd), te = {
152
+ let ee = h ? null : r(i, "sharedItems", a.contentStart, a.contentEnd), te = {
153
153
  json: u,
154
154
  items: [],
155
155
  byValue: null,
@@ -167,17 +167,17 @@ var c = [
167
167
  "formula"
168
168
  ]);
169
169
  return (b.trim() || y.trim()) && (u.rest = y.trim() ? `<cacheField${b}>${y}</cacheField>` : `<cacheField${b}/>`), te;
170
- }, re = (e, t, n) => {
170
+ }, re = (e, t, r) => {
171
171
  m.lastIndex = 0;
172
172
  let i, a = 0;
173
173
  for (; i = m.exec(e);) {
174
174
  e.substring(a, i.index).trim() && f();
175
175
  let [, o, s, c] = i;
176
176
  c === "/" && o !== "x" || f();
177
- let l = r(s);
177
+ let l = n(s);
178
178
  for (let e of l.keys()) e !== "v" && e !== "u" && e !== "f" && f();
179
179
  let u = l.get("u");
180
- u !== "1" && u !== "true" || (t.json.unused ??= []).push(t.items.length), t.items.push(v(o, l.get("v"), t, n)), a = m.lastIndex;
180
+ u !== "1" && u !== "true" || (t.json.unused ??= []).push(t.items.length), t.items.push(v(o, l.get("v"), t, r)), a = m.lastIndex;
181
181
  }
182
182
  e.substring(a).trim() && f();
183
183
  }, v = (e, n, r, i) => {
@@ -202,26 +202,26 @@ var c = [
202
202
  }
203
203
  default: return f();
204
204
  }
205
- }, y = (e, t, r) => {
206
- let i = n(e, "pivotCacheRecords") ?? f(), a = e.substring(i.contentStart, i.contentEnd), o = /<r>([\s\S]*?)<\/r>|<r\/>/g, s, c = 0, l = 0;
207
- for (; s = o.exec(a);) a.substring(l, s.index).trim() && f(), ie(s[1] ?? "", t, r), c++, l = o.lastIndex;
205
+ }, y = (e, t, n) => {
206
+ let i = r(e, "pivotCacheRecords") ?? f(), a = e.substring(i.contentStart, i.contentEnd), o = /<r>([\s\S]*?)<\/r>|<r\/>/g, s, c = 0, l = 0;
207
+ for (; s = o.exec(a);) a.substring(l, s.index).trim() && f(), ie(s[1] ?? "", t, n), c++, l = o.lastIndex;
208
208
  return a.substring(l).trim() && f(), c;
209
- }, ie = (e, t, n) => {
209
+ }, ie = (e, t, r) => {
210
210
  m.lastIndex = 0;
211
211
  let i, a = 0, o = 0;
212
212
  for (; i = m.exec(e);) {
213
213
  e.substring(o, i.index).trim() && f();
214
214
  let [, s, c, l] = i;
215
215
  l !== "/" && f();
216
- let u = t[a++] ?? f(), d = r(c);
216
+ let u = t[a++] ?? f(), d = n(c);
217
217
  for (let e of d.keys()) e !== "v" && f();
218
218
  let p = d.get("v");
219
219
  if (s === "x") {
220
220
  let e = p === void 0 ? NaN : Number(p);
221
221
  (u.byValue || !Number.isInteger(e) || e < 0 || e >= u.items.length) && f(), u.records.push(e);
222
222
  } else {
223
- let e = u.byValue ?? f(), t = s + (p ?? ""), r = e.get(t);
224
- r === void 0 && (r = u.items.length, u.items.push(v(s, p, u, n)), e.set(t, r)), u.records.push(r);
223
+ let e = u.byValue ?? f(), t = s + (p ?? ""), n = e.get(t);
224
+ n === void 0 && (n = u.items.length, u.items.push(v(s, p, u, r)), e.set(t, n)), u.records.push(n);
225
225
  }
226
226
  o = m.lastIndex;
227
227
  }