@sheetxl/io-xlsx 0.7.28-beta.4 → 0.8.0-beta.1

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 (30) hide show
  1. package/browser/cjs/{DK9GutW2zPbyNlfU.cjs → BAtEL-5TLyoaPFDP.cjs} +1 -1
  2. package/browser/cjs/{BmG0GOcbuYvt3-R2.cjs → Bg0e53JZa8vhmm5a.cjs} +1 -1
  3. package/browser/cjs/CK5FFUvet6FnIYO_.cjs +5 -0
  4. package/browser/cjs/{D3YH3tTndeltJsh5.cjs → DV6LeTEiiFUrZoxj.cjs} +1 -1
  5. package/browser/cjs/{Bhq8KfEhCnRykWeS.cjs → Db8YjGM6TG34c8aT.cjs} +1 -1
  6. package/browser/cjs/index.cjs +1 -1
  7. package/browser/esm/{DlBlJGlFQJrKovwJ.mjs → 4BWLu134ABlCQEtM.mjs} +8 -4
  8. package/browser/esm/{BknJ4AeVeFJploh9.mjs → BkNXyG6NC-w5Xo92.mjs} +2 -2
  9. package/browser/esm/{C7R1lFA0iv-1bZ9i.mjs → BzQ_lPzc8C4OTIGZ.mjs} +2 -2
  10. package/browser/esm/{BcnofzmeeuCVzr_M.mjs → CJknI8BYGSZr-4zS.mjs} +5 -5
  11. package/browser/esm/{BhohPLTubb_9rfrh.mjs → CLWzJJyoSrykkVLX.mjs} +2 -2
  12. package/browser/esm/{CV_L3E5OoPstI9lx.mjs → Cok_fBIUCHDSrKw0.mjs} +4 -4
  13. package/browser/esm/{BXCOn1XvLvYSfpzi.mjs → Ctqql4O-3xj2K8vv.mjs} +2 -2
  14. package/browser/esm/{DLEtaZiz_1cZH0dA.mjs → D-m_kQLaewdwuXaF.mjs} +7 -7
  15. package/browser/esm/{D8qZcXzj_fdusd0Y.mjs → Dj7D2nVdAZ3TiUks.mjs} +2 -7
  16. package/browser/esm/{C3sYFBc7Tym8l12A.mjs → Dz1Dp8DDJvhd09RR.mjs} +1 -1
  17. package/browser/esm/{saBnxecsRUpY6fGv.mjs → ijQzHH-bvDfUHIi1.mjs} +1 -1
  18. package/browser/esm/index.mjs +2 -2
  19. package/node/esm/{CfIzBnObj09fDuUX.mjs → CEAmv36xpTNgFwl_.mjs} +2 -2
  20. package/node/esm/{B9CUp-rqol5K1r1c.mjs → CEV7nKotMpeRRnQC.mjs} +1 -1
  21. package/node/esm/{DsZ19z4oXoL-d0Lk.mjs → CF1R5ovFsRNu--Rw.mjs} +7 -3
  22. package/node/esm/{BYCpXFieBgL_cwTO.mjs → Ctcl4jN52INWpKWC.mjs} +3 -3
  23. package/node/esm/{D0frS50CfyeuXcuz.mjs → CvnRSooxEQdlJgMn.mjs} +5 -5
  24. package/node/esm/{Bqi4c7-14v0oNgFN.mjs → DQd0vxzTaPt2qSL-.mjs} +1 -1
  25. package/node/esm/{B6lQXVQjFT_OE3IA.mjs → fOnuUjpPCAzmuIXN.mjs} +2 -2
  26. package/node/esm/index.mjs +5 -5
  27. package/node/esm/{BSrW-J3BEH4Tza_S.mjs → ssSlRCbCqxvZ9IX8.mjs} +80 -85
  28. package/package.json +3 -3
  29. package/types/src/writer/builder/EmitterRegistry.d.ts +7 -0
  30. package/browser/cjs/Dmi-Tsz618B6vKpZ.cjs +0 -5
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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.
@@ -1,8 +1,8 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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, t } from "./BcnofzmeeuCVzr_M.mjs";
7
+ import { n as e, t } from "./CJknI8BYGSZr-4zS.mjs";
8
8
  export { t as IOPlugin, e as XLSX_FORMAT_KEY };
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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 } from "./B9CUp-rqol5K1r1c.mjs";
7
+ import { t } from "./CEV7nKotMpeRRnQC.mjs";
8
8
  var e, r;
9
9
  function n(t, e) {
10
10
  if (e < 0 || e + 1 >= t.length) throw new RangeError(`toUInt16LE: Offset ${e} is out of bounds for buffer length ${t.length}. Needed 2 bytes.`);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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
7
  import "./index.mjs";
8
- import { A as e, D as r, E as o, F as n, I as s, M as a, O as l, _ as i, a as c, b as d, f as p, g as m, h as f, i as u, k as h, l as g, n as y, s as x, u as v, w as S, z as w } from "./BSrW-J3BEH4Tza_S.mjs";
8
+ import { A as e, D as r, E as o, F as n, I as s, M as a, O as l, _ as i, a as c, b as d, f as p, g as m, h as f, i as u, k as h, l as g, n as y, s as x, u as v, w as S, z as w } from "./ssSlRCbCqxvZ9IX8.mjs";
9
9
  import { AddressUtils as b, BufferUtils as C, Color as T, CommonUtils as k, CoordUtils as M, FormulaError as R, IColor as I, ICondition as F, IConditionalFormat as A, IEffect as P, IFill as L, ISheet as _, IStroke as D, IStyle as E, ITextFrame as N, LicenseManager as O, NumberFormat as B, ScalarType as V } from "@sheetxl/sdk";
10
10
  import { BlobWriter as $, TextReader as W, Uint8ArrayReader as z, Uint8ArrayWriter as j, ZipWriter as X } from "@zip.js/zip.js";
11
11
  var U = class {
@@ -476,7 +476,7 @@ var wt = class {
476
476
  continue;
477
477
  }
478
478
  const e = tt((s ? s + "/" : "") + a.target);
479
- r.has(e) || this._explicitRelTargets.has(`${t}::${e}`) || (o.has(e) ? n.add(a.type, a.target) : console.warn(`Dropping preserved relationship to missing part '${e}'`, t || "(root)"));
479
+ r.has(e) || this._explicitRelTargets.has(`${t}::${e}`) || (o.has(e) ? n.add(a.type, a.target) : this._registry.ownsRelType(a.type) || console.warn(`Dropping preserved relationship to missing part '${e}'`, t || "(root)"));
480
480
  }
481
481
  }
482
482
  addPart(t, e, r) {
@@ -638,6 +638,10 @@ var wt = class {
638
638
  has(t) {
639
639
  return this.map.has(t);
640
640
  }
641
+ ownsRelType(t) {
642
+ for (const e of this.map.values()) if (e.relTypeUri === t) return !0;
643
+ return !1;
644
+ }
641
645
  };
642
646
  function Tt(t, e, r) {
643
647
  t && (t.algorithm && (e[r ? `${r}AlgorithmName` : "algorithmName"] = t.algorithm), t.hash && (e[r ? `${r}HashValue` : "hashValue"] = t.hash), t.salt && (e[r ? `${r}SaltValue` : "saltValue"] = t.salt), void 0 !== t.spinCount && (e[r ? `${r}SpinCount` : "spinCount"] = t.spinCount));
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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 t, d as e, f as s, i as r, m as o, n as i, o as n, p as l, r as a, t as c } from "./Bqi4c7-14v0oNgFN.mjs";
8
- import { o as u } from "./BSrW-J3BEH4Tza_S.mjs";
7
+ import { a as t, d as e, f as s, i as r, m as o, n as i, o as n, p as l, r as a, t as c } from "./DQd0vxzTaPt2qSL-.mjs";
8
+ import { o as u } from "./ssSlRCbCqxvZ9IX8.mjs";
9
9
  import { CommonUtils as h } from "@sheetxl/utils";
10
10
  import { AddressUtils as p, FormulaError as d, IBorder as g, ICondition as m, IEffect as b, IFill as A, IFont as f, IRange as y, IStyle as v, ITextFrame as N, Sort as F, Tuple as C } from "@sheetxl/sdk";
11
11
  var w = class {
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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 { c as t, d as e, f as s, l as o, p as i, r, s as n, u as a } from "./Bqi4c7-14v0oNgFN.mjs";
8
- import { A as c, B as l, C as h, F as p, I as u, L as d, M as g, N as m, P as f, R as T, S as y, T as x, c as b, d as v, j as w, k as S, m as C, o as k, p as P, r as A, t as E, v as I, x as O, y as D } from "./BSrW-J3BEH4Tza_S.mjs";
7
+ import { c as t, d as e, f as s, l as o, p as i, r, s as n, u as a } from "./DQd0vxzTaPt2qSL-.mjs";
8
+ import { A as c, B as l, C as h, F as p, I as u, L as d, M as g, N as m, P as f, R as T, S as y, T as x, c as b, d as v, j as w, k as S, m as C, o as k, p as P, r as A, t as E, v as I, x as O, y as D } from "./ssSlRCbCqxvZ9IX8.mjs";
9
9
  import { BufferUtils as V, CommonUtils as L, ExpectedError as $ } from "@sheetxl/utils";
10
10
  import { AddressUtils as j, CommonUtils as N, CoordUtils as R, FormulaError as B, ICondition as M, IConditionalFormat as H, IRange as _, OutOfBoundsError as z, ResourceCollection as X, Theme as F, Tuple as q, Workbook as W } from "@sheetxl/sdk";
11
11
  import { BlobReader as U, Uint8ArrayReader as G, Uint8ArrayWriter as Z, ZipReader as J } from "@zip.js/zip.js";
@@ -1486,7 +1486,7 @@ var Kt = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
1486
1486
  st += t;
1487
1487
  const e = Math.min(tt, Math.round(st / et * tt));
1488
1488
  Q(e, tt);
1489
- } : void 0, it = import("./BYCpXFieBgL_cwTO.mjs");
1489
+ } : void 0, it = import("./Ctcl4jN52INWpKWC.mjs");
1490
1490
  let rt = null;
1491
1491
  try {
1492
1492
  rt = new DOMParser();
@@ -2636,7 +2636,7 @@ var Kt = (t) => !0 === t || "1" === t || "on" === t || "true" === t || !1 !== t
2636
2636
  if (vt.length > 0 && (Nt.strings = vt), yt && yt.length > 0 && (Nt.people = yt), N) {
2637
2637
  const t = ut.getEntry("xl/vbaProject.bin");
2638
2638
  if (t) try {
2639
- const { VBAProject: e } = await import("./CfIzBnObj09fDuUX.mjs"), s = e.extract(t);
2639
+ const { VBAProject: e } = await import("./CEAmv36xpTNgFwl_.mjs"), s = e.extract(t);
2640
2640
  s ? (N?.(s), Nt.vba = s) : Z.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
2641
2641
  } catch (t) {
2642
2642
  Z.push([`Error extracting VBA: ${t?.message ?? t}`, "xl/vbaProject.bin"]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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 "./B9CUp-rqol5K1r1c.mjs";
7
+ import { t as e } from "./CEV7nKotMpeRRnQC.mjs";
8
8
  import { InvalidPasswordError as t } from "@sheetxl/utils";
9
9
  var r, n, a = class e {
10
10
  static {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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.
@@ -13,7 +13,7 @@ var e = [
13
13
  177,
14
14
  26,
15
15
  225
16
- ], t = async () => (await import("./B6lQXVQjFT_OE3IA.mjs")).OffCryptoEncryption, r = {
16
+ ], t = async () => (await import("./fOnuUjpPCAzmuIXN.mjs")).OffCryptoEncryption, r = {
17
17
  key: "offcrypto",
18
18
  description: "Office Document Encryption",
19
19
  detect: async (r) => !!((t) => {
@@ -33,16 +33,16 @@ var e = [
33
33
  "xls",
34
34
  "xlsm"
35
35
  ],
36
- handler: async (e, t) => (await import("./D0frS50CfyeuXcuz.mjs")).readXLSX(e, t)
36
+ handler: async (e, t) => (await import("./CvnRSooxEQdlJgMn.mjs")).readXLSX(e, t)
37
37
  }, i = {
38
38
  key: a,
39
39
  mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
40
40
  description: "Excel Workbook",
41
41
  exts: ["xlsx"],
42
- handler: async (e, t) => (await import("./DsZ19z4oXoL-d0Lk.mjs")).writeXLSX(e, t)
42
+ handler: async (e, t) => (await import("./CF1R5ovFsRNu--Rw.mjs")).writeXLSX(e, t)
43
43
  }, n = {
44
44
  name: "@sheetxl/io-xlsx",
45
- version: "0.7.28-beta.4",
45
+ version: "0.8.0-beta.1",
46
46
  description: "XLSX I/O formats for SheetXL",
47
47
  author: "SheetXL",
48
48
  async register(e) {
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.7.28-beta.4
2
+ * @license @sheetxl/io-xlsx - SheetXL - Import/Export from/to Excel - v0.8.0-beta.1
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
7
  import { FormulaError as e, ICondition as r, parseFormulaLiteral as t } from "@sheetxl/sdk";
8
- var n = "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main", E = "http://schemas.microsoft.com/office/excel/2006/main", a = "{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}", o = "{78C0D931-6437-407d-A8EE-F0AAD7539E65}", s = "{78C0D931-6839-4c89-B8D6-976A2CC4E5B4}", T = "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}", i = "{A8765BA9-456A-4dab-B4F3-ACF838C121DE}", p = "{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}", A = {
8
+ var n = "http://schemas.microsoft.com/office/spreadsheetml/2009/9/main", E = "http://schemas.microsoft.com/office/excel/2006/main", a = "{CCE6A557-97BC-4b89-ADB6-D9C93CAAB3DF}", o = "{78C0D931-6437-407d-A8EE-F0AAD7539E65}", T = "{78C0D931-6839-4c89-B8D6-976A2CC4E5B4}", s = "{B025F937-C7B1-47D3-B67F-A62EFF666E3E}", i = "{A8765BA9-456A-4dab-B4F3-ACF838C121DE}", p = "{3A4CF648-6AED-40f4-86FF-DC5316D8AED3}", A = {
9
9
  "{05C60535-1F16-4FD2-B633-F4F36F0B64E0}": "sparklines",
10
10
  "{7E03D99C-DC04-49D9-9315-930204A7B6E9}": "timelines",
11
11
  "{01252117-D84E-4E92-8308-4BE1C098FCBB}": "ignoredErrors",
@@ -264,7 +264,6 @@ var R = "_xlfn.", u = "_xlfn._xlws.", I = /* @__PURE__ */ new Map([
264
264
  }],
265
265
  ["MATCH", {
266
266
  slotNever: [2],
267
- slotAlways: [0],
268
267
  scopeClears: [1]
269
268
  }],
270
269
  ["NETWORKDAYS.INTL", {
@@ -299,10 +298,7 @@ var R = "_xlfn.", u = "_xlfn._xlws.", I = /* @__PURE__ */ new Map([
299
298
  slotNever: [0, 1],
300
299
  arrayScope: "consumer"
301
300
  }],
302
- ["XMATCH", {
303
- prefix: R,
304
- slotAlways: [0]
305
- }],
301
+ ["XMATCH", { prefix: R }],
306
302
  ["CELL", {
307
303
  arrayReturn: !0,
308
304
  arrayScope: "consumer",
@@ -344,7 +340,6 @@ var R = "_xlfn.", u = "_xlfn._xlws.", I = /* @__PURE__ */ new Map([
344
340
  ["XLOOKUP", {
345
341
  prefix: R,
346
342
  slotNever: [3],
347
- slotAlways: [0],
348
343
  arrayScope: "opens",
349
344
  scopeClears: [0]
350
345
  }],
@@ -1013,10 +1008,10 @@ var y = (e, r) => e.length > r.length && e.substring(0, r.length).toLowerCase()
1013
1008
  let E;
1014
1009
  const a = (e) => (E ?? t)[e], o = (e, r) => {
1015
1010
  r !== a(e) && (E || (E = [...t]), E[e] = r);
1016
- }, s = [];
1017
- if ("LAMBDA" === r) for (let e = 0; e < n - 1; e++) s.push([e, n - 1]);
1018
- else for (let e = 0; e + 1 < n; e += 2) s.push([e, e + 2]);
1019
- for (const [e, r] of s) {
1011
+ }, T = [];
1012
+ if ("LAMBDA" === r) for (let e = 0; e < n - 1; e++) T.push([e, n - 1]);
1013
+ else for (let e = 0; e + 1 < n; e += 2) T.push([e, e + 2]);
1014
+ for (const [e, r] of T) {
1020
1015
  const t = a(e), E = m(t);
1021
1016
  if (void 0 === E) continue;
1022
1017
  o(e, !0 === t.value?.optional ? {
@@ -1026,10 +1021,10 @@ var y = (e, r) => e.length > r.length && e.substring(0, r.length).toLowerCase()
1026
1021
  scope: null
1027
1022
  }
1028
1023
  } : v(t, E));
1029
- const s = E.toUpperCase();
1024
+ const T = E.toUpperCase();
1030
1025
  for (let e = r; e < n; e++) {
1031
1026
  const r = a(e);
1032
- r && o(e, x(r, s));
1027
+ r && o(e, x(r, T));
1033
1028
  }
1034
1029
  }
1035
1030
  return E;
@@ -1096,9 +1091,9 @@ function h(e) {
1096
1091
  const E = `${n ?? ""}!${t.toUpperCase()}`, a = r.get(E);
1097
1092
  if (void 0 !== a) return a;
1098
1093
  let o = null;
1099
- const s = e()?.getNamedFormulas();
1100
- if (s) {
1101
- const e = s.getItems(n ? {
1094
+ const T = e()?.getNamedFormulas();
1095
+ if (T) {
1096
+ const e = T.getItems(n ? {
1102
1097
  name: t,
1103
1098
  scope: n
1104
1099
  } : { name: t }), r = n ? e[0] : e.find((e) => !e.getScope()) ?? e[0];
@@ -1152,8 +1147,8 @@ var H = /* @__PURE__ */ new Set([
1152
1147
  if (!e || "number" !== e.type) return null;
1153
1148
  const r = "number" == typeof e.value ? e.value : Number(e.value);
1154
1149
  return Number.isFinite(r) ? r : null;
1155
- }, _ = (e) => String(e.value ?? "").toUpperCase(), w = /* @__PURE__ */ new WeakMap(), b = (e) => {
1156
- let r = w.get(e);
1150
+ }, _ = (e) => String(e.value ?? "").toUpperCase(), b = /* @__PURE__ */ new WeakMap(), w = (e) => {
1151
+ let r = b.get(e);
1157
1152
  return r || (r = ((e) => {
1158
1153
  const r = [], t = [], n = (e) => {
1159
1154
  r.push(null !== e.getRangeType() || e.getArrayDepth() > 0), t.push(null !== e.getScalarType());
@@ -1177,7 +1172,7 @@ var H = /* @__PURE__ */ new Set([
1177
1172
  valueTyped: t,
1178
1173
  period: E
1179
1174
  };
1180
- })(e), w.set(e, r)), r;
1175
+ })(e), b.set(e, r)), r;
1181
1176
  }, q = (e, r) => {
1182
1177
  const t = e.accepts.length;
1183
1178
  if (r < t) return r;
@@ -1187,7 +1182,7 @@ var H = /* @__PURE__ */ new Set([
1187
1182
  }
1188
1183
  return -1;
1189
1184
  }, $ = (e, r, t) => {
1190
- const n = b(r), E = q(n, t);
1185
+ const n = w(r), E = q(n, t);
1191
1186
  return E < 0 ? null : !!L(e, E) || !l(e) && !N(e, E) && !n.accepts[E];
1192
1187
  }, k = (e, r) => r && "function" === e.type ? !((e) => {
1193
1188
  const r = I.get(e)?.arrayScope;
@@ -1197,16 +1192,16 @@ var H = /* @__PURE__ */ new Set([
1197
1192
  if ("function" !== e.type) return () => n;
1198
1193
  const E = _(e), a = D(E), o = n && void 0 !== ((e) => I.get(e))(E)?.scopeClears;
1199
1194
  if (!a && !o) return () => n;
1200
- const s = r.getFunction(E);
1201
- if (!s) return () => n;
1202
- const T = b(s);
1195
+ const T = r.getFunction(E);
1196
+ if (!T) return () => n;
1197
+ const s = w(T);
1203
1198
  return (e) => {
1204
- const r = q(T, e);
1199
+ const r = q(s, e);
1205
1200
  return !(r >= 0 && ((e, r) => !0 === I.get(e)?.scopeClears?.includes(r))(E, r)) && (n || ((e, r, t) => {
1206
1201
  if (!D(e) || !r.isBuiltIn()) return !1;
1207
- const n = b(r), E = q(n, t);
1202
+ const n = w(r), E = q(n, t);
1208
1203
  return !(E < 0) && !L(e, E) && n.accepts[E];
1209
- })(E, s, e));
1204
+ })(E, T, e));
1210
1205
  };
1211
1206
  }, Z = (e, r, t) => {
1212
1207
  if (!t) return () => !1;
@@ -1217,7 +1212,7 @@ var H = /* @__PURE__ */ new Set([
1217
1212
  if ("function" !== n) return () => !1;
1218
1213
  const E = r.getFunction(_(e));
1219
1214
  if (!E) return () => !1;
1220
- const a = b(E);
1215
+ const a = w(E);
1221
1216
  return (e) => {
1222
1217
  const r = q(a, e);
1223
1218
  return r >= 0 && !a.accepts[r];
@@ -1264,8 +1259,8 @@ var H = /* @__PURE__ */ new Set([
1264
1259
  case "OFFSET": {
1265
1260
  const e = a[3], r = a[4];
1266
1261
  if (void 0 === e && void 0 === r) return J(o, n, E, !0);
1267
- const t = o ? K(o) : null, s = void 0 === e ? 1 === t?.rows : 1 === X(e), T = void 0 === r ? 1 === t?.cols : 1 === X(r);
1268
- return !(s && T);
1262
+ const t = o ? K(o) : null, T = void 0 === e ? 1 === t?.rows : 1 === X(e), s = void 0 === r ? 1 === t?.cols : 1 === X(r);
1263
+ return !(T && s);
1269
1264
  }
1270
1265
  case "INDEX": {
1271
1266
  const e = a[1], r = a[2], t = o ? K(o) : null;
@@ -1286,13 +1281,13 @@ var H = /* @__PURE__ */ new Set([
1286
1281
  }
1287
1282
  })(e, E, a, r, t);
1288
1283
  if (null !== o) return o;
1289
- const s = C(E);
1290
- if (void 0 !== s && a.isBuiltIn()) return J(e.inputs?.[s], r, t, !0);
1284
+ const T = C(E);
1285
+ if (void 0 !== T && a.isBuiltIn()) return J(e.inputs?.[T], r, t, !0);
1291
1286
  if (a.isBuiltIn() && ((e) => !0 === I.get(e)?.arrayReturn)(E)) return !0;
1292
- const T = a.getDeclaration().getReturnType();
1293
- if (null !== T.getRangeType()) return !0;
1287
+ const s = a.getDeclaration().getReturnType();
1288
+ if (null !== s.getRangeType()) return !0;
1294
1289
  const i = a.isBuiltIn() && f(E);
1295
- if (null !== T.getScalarType() && !i) return !1;
1290
+ if (null !== s.getScalarType() && !i) return !1;
1296
1291
  const p = e.inputs;
1297
1292
  if (!p) return !1;
1298
1293
  const A = i || n;
@@ -1308,29 +1303,29 @@ var H = /* @__PURE__ */ new Set([
1308
1303
  const a = e.inputs;
1309
1304
  if (!a) return null;
1310
1305
  if (k(e, n)) return null;
1311
- const o = e.type, s = Z(e, r, E);
1312
- let T = null;
1306
+ const o = e.type, T = Z(e, r, E);
1307
+ let s = null;
1313
1308
  if ("infix" === o && H.has(e.value)) {
1314
- for (let e = 0; e < 2; e++) J(a[e], r, t, s(e)) && (T ??= []).push(e);
1315
- return T;
1309
+ for (let e = 0; e < 2; e++) J(a[e], r, t, T(e)) && (s ??= []).push(e);
1310
+ return s;
1316
1311
  }
1317
- if ("prefix" === o && W.has(e.value)) return J(a[0], r, t, s(0)) && (T = [0]), T;
1312
+ if ("prefix" === o && W.has(e.value)) return J(a[0], r, t, T(0)) && (s = [0]), s;
1318
1313
  if ("function" !== o) return null;
1319
1314
  const i = _(e), p = r.getFunction(i);
1320
1315
  if (!p) return null;
1321
- const A = b(p);
1316
+ const A = w(p);
1322
1317
  for (let e = 0; e < a.length; e++) {
1323
1318
  const n = $(i, p, e);
1324
1319
  if (null === n) break;
1325
1320
  if (n) {
1326
- J(a[e], r, t, s(e)) && (T ??= []).push(e);
1321
+ J(a[e], r, t, T(e)) && (s ??= []).push(e);
1327
1322
  continue;
1328
1323
  }
1329
1324
  if (l(i)) continue;
1330
1325
  const E = q(A, e);
1331
- E < 0 || !A.valueTyped[E] || N(i, E) || z(a[e], r, t) && (T ??= []).push(e);
1326
+ E < 0 || !A.valueTyped[E] || N(i, E) || z(a[e], r, t) && (s ??= []).push(e);
1332
1327
  }
1333
- return T;
1328
+ return s;
1334
1329
  }, ee = (e) => ({
1335
1330
  type: "prefix",
1336
1331
  value: "@",
@@ -1348,10 +1343,10 @@ var H = /* @__PURE__ */ new Set([
1348
1343
  if (!E?.name || null !== r.getNamedRoot(E.name, E.scope)) return void (n = !0);
1349
1344
  }
1350
1345
  if (j(e, r, t, a, o)) return void (n = !0);
1351
- const s = e.inputs;
1352
- if (!s) return;
1353
- const T = Q(e, r, a), i = Z(e, r, o);
1354
- for (let e = 0; e < s.length && !n; e++) s[e] && E(s[e], T(e), i(e));
1346
+ const T = e.inputs;
1347
+ if (!T) return;
1348
+ const s = Q(e, r, a), i = Z(e, r, o);
1349
+ for (let e = 0; e < T.length && !n; e++) T[e] && E(T[e], s(e), i(e));
1355
1350
  };
1356
1351
  return E(e, !1, !0), n;
1357
1352
  };
@@ -1415,27 +1410,27 @@ function te(e) {
1415
1410
  if (!e) return e;
1416
1411
  const t = /* @__PURE__ */ new Set(), n = (e, E, a) => {
1417
1412
  const o = e.inputs;
1418
- let s = e;
1413
+ let T = e;
1419
1414
  if (o) {
1420
- const t = Q(e, r, E), T = Z(e, r, a);
1415
+ const t = Q(e, r, E), s = Z(e, r, a);
1421
1416
  let i;
1422
1417
  for (let e = 0; e < o.length; e++) {
1423
1418
  const r = o[e];
1424
1419
  if (!r) continue;
1425
- const E = n(r, t(e), T(e));
1420
+ const E = n(r, t(e), s(e));
1426
1421
  E !== r && (i || (i = [...o]), i[e] = E);
1427
1422
  }
1428
- i && (s = {
1423
+ i && (T = {
1429
1424
  ...e,
1430
1425
  inputs: i
1431
1426
  });
1432
1427
  }
1433
- const T = j(s, r, t, E, a);
1434
- if (!T) return s;
1435
- const i = [...s.inputs];
1436
- for (const e of T) i[e] = ee(i[e]);
1428
+ const s = j(T, r, t, E, a);
1429
+ if (!s) return T;
1430
+ const i = [...T.inputs];
1431
+ for (const e of s) i[e] = ee(i[e]);
1437
1432
  return {
1438
- ...s,
1433
+ ...T,
1439
1434
  inputs: i
1440
1435
  };
1441
1436
  }, E = n(e, !1, !0);
@@ -1472,10 +1467,10 @@ var ne = 67108864, Ee = class {
1472
1467
  function oe(e) {
1473
1468
  return e ? ae.get(e) ?? null : null;
1474
1469
  }
1475
- function se(e, r) {
1470
+ function Te(e, r) {
1476
1471
  ae.set(e, r);
1477
1472
  }
1478
- function Te(e) {
1473
+ function se(e) {
1479
1474
  e && ae.delete(e);
1480
1475
  }
1481
1476
  var ie = /* @__PURE__ */ new Set([
@@ -2051,7 +2046,7 @@ function De(r) {
2051
2046
  function Me(e) {
2052
2047
  return `"${e.split("\"").join("\"\"")}"`;
2053
2048
  }
2054
- var Pe = "aboveAverage", ye = "beginsWith", me = "cellIs", ve = "colorScale", xe = "containsBlanks", Ue = "containsErrors", Be = "containsText", Fe = "dataBar", Ge = "duplicateValues", ge = "endsWith", de = "expression", Ve = "iconSet", he = "notContainsBlanks", He = "notContainsErrors", We = "notContainsText", Ye = "timePeriod", Ke = "top10", Xe = "uniqueValues", _e = r.BuiltInOperatorNames, we = {
2049
+ var Pe = "aboveAverage", ye = "beginsWith", me = "cellIs", ve = "colorScale", xe = "containsBlanks", Ue = "containsErrors", Be = "containsText", Fe = "dataBar", Ge = "duplicateValues", ge = "endsWith", de = "expression", Ve = "iconSet", he = "notContainsBlanks", He = "notContainsErrors", We = "notContainsText", Ye = "timePeriod", Ke = "top10", Xe = "uniqueValues", _e = r.BuiltInOperatorNames, be = {
2055
2050
  equal: { operator: _e.EqualTo },
2056
2051
  notEqual: {
2057
2052
  operator: _e.EqualTo,
@@ -2066,7 +2061,7 @@ var Pe = "aboveAverage", ye = "beginsWith", me = "cellIs", ve = "colorScale", xe
2066
2061
  operator: _e.Between,
2067
2062
  negate: !0
2068
2063
  }
2069
- }, be = {
2064
+ }, we = {
2070
2065
  [_e.EqualTo]: {
2071
2066
  plain: "equal",
2072
2067
  negated: "notEqual"
@@ -2124,7 +2119,7 @@ function Ze(e, t) {
2124
2119
  case Fe:
2125
2120
  case Ve: return null;
2126
2121
  case me: {
2127
- const r = e.operator ? we[e.operator] : void 0;
2122
+ const r = e.operator ? be[e.operator] : void 0;
2128
2123
  if (!r) return t?.(`Conditional format operator '${e.operator}' is not a known cellIs operator.`), null;
2129
2124
  const n = r.operator === _e.Between ? {
2130
2125
  from: $e(E[0]),
@@ -2190,16 +2185,16 @@ function Ze(e, t) {
2190
2185
  }
2191
2186
  function Je(e, t, n) {
2192
2187
  if (!e) return null;
2193
- const E = e.operator === _e.Not, a = (E ? e.param : e) ?? {}, o = a.operator, s = a.param;
2188
+ const E = e.operator === _e.Not, a = (E ? e.param : e) ?? {}, o = a.operator, T = a.param;
2194
2189
  if (!o) return null;
2195
- const T = be[o];
2196
- if (T) {
2197
- const e = E ? T.negated : T.plain;
2190
+ const s = we[o];
2191
+ if (s) {
2192
+ const e = E ? s.negated : s.plain;
2198
2193
  if (!e) return n?.(`Conditional format operator 'not(${o})' has no OOXML form.`), null;
2199
2194
  return {
2200
2195
  type: me,
2201
2196
  operator: e,
2202
- formulas: o === _e.Between ? [ke(s?.from), ke(s?.to)] : [ke(s)]
2197
+ formulas: o === _e.Between ? [ke(T?.from), ke(T?.to)] : [ke(T)]
2203
2198
  };
2204
2199
  }
2205
2200
  switch (o) {
@@ -2207,10 +2202,10 @@ function Je(e, t, n) {
2207
2202
  if (E) break;
2208
2203
  return {
2209
2204
  type: de,
2210
- formulas: [null == s ? "" : String(s)]
2205
+ formulas: [null == T ? "" : String(T)]
2211
2206
  };
2212
2207
  case _e.TextContains: {
2213
- const e = String(s ?? "");
2208
+ const e = String(T ?? "");
2214
2209
  return E ? {
2215
2210
  type: We,
2216
2211
  text: e,
@@ -2223,7 +2218,7 @@ function Je(e, t, n) {
2223
2218
  }
2224
2219
  case _e.TextStartsWith: {
2225
2220
  if (E) break;
2226
- const e = String(s ?? "");
2221
+ const e = String(T ?? "");
2227
2222
  return {
2228
2223
  type: ye,
2229
2224
  text: e,
@@ -2232,7 +2227,7 @@ function Je(e, t, n) {
2232
2227
  }
2233
2228
  case _e.TextEndsWith: {
2234
2229
  if (E) break;
2235
- const e = String(s ?? "");
2230
+ const e = String(T ?? "");
2236
2231
  return {
2237
2232
  type: ge,
2238
2233
  text: e,
@@ -2256,7 +2251,7 @@ function Je(e, t, n) {
2256
2251
  case _e.Unique: return { type: E ? Ge : Xe };
2257
2252
  case _e.TimePeriod: {
2258
2253
  if (E) break;
2259
- const e = s?.type;
2254
+ const e = T?.type;
2260
2255
  return e && !qe.has(e) ? (n?.(`Conditional format time period '${e}' has no OOXML form; rule skipped.`), null) : {
2261
2256
  type: Ye,
2262
2257
  timePeriod: e
@@ -2264,7 +2259,7 @@ function Je(e, t, n) {
2264
2259
  }
2265
2260
  case _e.TopN: {
2266
2261
  if (E) break;
2267
- const e = s ?? {};
2262
+ const e = T ?? {};
2268
2263
  return {
2269
2264
  type: Ke,
2270
2265
  bottom: !(e.top ?? 1),
@@ -2274,7 +2269,7 @@ function Je(e, t, n) {
2274
2269
  }
2275
2270
  case _e.Average: {
2276
2271
  if (E) break;
2277
- const e = s ?? {}, t = e.type ?? r.AverageType.Above;
2272
+ const e = T ?? {}, t = e.type ?? r.AverageType.Above;
2278
2273
  return {
2279
2274
  type: Pe,
2280
2275
  aboveAverage: t === r.AverageType.Above || t === r.AverageType.AboveOrEqual,
@@ -2317,10 +2312,10 @@ var ze = "equal", je = "notEqual", er = "greaterThan", rr = "greaterThanOrEqual"
2317
2312
  negated: er
2318
2313
  }
2319
2314
  };
2320
- function sr(e) {
2315
+ function Tr(e) {
2321
2316
  return "string" == typeof e && void 0 !== or[e];
2322
2317
  }
2323
- function Tr(e) {
2318
+ function sr(e) {
2324
2319
  if (null != e) return "" + e;
2325
2320
  }
2326
2321
  function ir(e, r) {
@@ -2351,10 +2346,10 @@ function pr(e, r) {
2351
2346
  const a = or[E];
2352
2347
  return a ? {
2353
2348
  operator: t ? a.negated : a.plain,
2354
- val: Tr(n.param)
2349
+ val: sr(n.param)
2355
2350
  } : !t && ar[E] ? {
2356
2351
  operator: E,
2357
- val: Tr(n.param)
2352
+ val: sr(n.param)
2358
2353
  } : (r?.(`AutoFilter operator '${t ? `not(${E})` : E}' has no OOXML form.`), null);
2359
2354
  }
2360
2355
  var Ar = "custom", cr = "date", Sr = "decimal", Or = "list", Rr = "none", ur = "textLength", Ir = "time", lr = "whole", Nr = r.BuiltInOperatorNames, Lr = r.BuiltInSelectorNames, fr = {
@@ -2440,17 +2435,17 @@ function mr(e, r) {
2440
2435
  const o = a.operator === Nr.Between ? {
2441
2436
  from: e.formula1,
2442
2437
  to: e.formula2
2443
- } : e.formula1, s = {
2438
+ } : e.formula1, T = {
2444
2439
  operator: a.operator,
2445
2440
  param: o
2446
2441
  };
2447
2442
  return a.negate ? {
2448
2443
  selector: n,
2449
2444
  operator: Nr.Not,
2450
- param: s
2445
+ param: T
2451
2446
  } : {
2452
2447
  selector: n,
2453
- ...s
2448
+ ...T
2454
2449
  };
2455
2450
  }
2456
2451
  function vr(e, r) {
@@ -2472,10 +2467,10 @@ function vr(e, r) {
2472
2467
  formula1: yr(a?.from ?? a),
2473
2468
  formula2: yr(a?.to)
2474
2469
  } : (r?.(`DataValidation operator '${t ? `not(${E})` : E}' has no OOXML form.`), null);
2475
- const s = t ? o.negated : o.plain;
2476
- return s ? {
2470
+ const T = t ? o.negated : o.plain;
2471
+ return T ? {
2477
2472
  type: xr(e.selector),
2478
- operator: s,
2473
+ operator: T,
2479
2474
  formula1: yr(E === Nr.Between ? a?.from : a),
2480
2475
  formula2: E === Nr.Between ? yr(a?.to) : void 0
2481
2476
  } : (r?.(`DataValidation operator 'not(${E})' has no OOXML form.`), null);
@@ -2483,4 +2478,4 @@ function vr(e, r) {
2483
2478
  function xr(e) {
2484
2479
  return (e ? Cr[e] : void 0) ?? Sr;
2485
2480
  }
2486
- export { o as A, S as B, d as C, V as D, re as E, n as F, E as I, c as L, a as M, i as N, P as O, p as P, A as R, se as S, te as T, Re as _, sr as a, oe as b, Ze as c, Ie as d, le as f, Oe as g, ue as h, pr as i, s as j, T as k, fe as l, pe as m, vr as n, ir as o, Ae as p, mr as r, Je as s, Pr as t, Le as u, ne as v, h as w, Te as x, Ee as y, O as z };
2481
+ export { o as A, S as B, d as C, V as D, re as E, n as F, E as I, c as L, a as M, i as N, P as O, p as P, A as R, Te as S, te as T, Re as _, Tr as a, oe as b, Ze as c, Ie as d, le as f, Oe as g, ue as h, pr as i, T as j, s as k, fe as l, pe as m, vr as n, ir as o, Ae as p, mr as r, Je as s, Pr as t, Le as u, ne as v, h as w, se as x, Ee as y, O as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/io-xlsx",
3
3
  "description": "SheetXL - Import/Export from/to Excel",
4
- "version": "0.7.28-beta.4",
4
+ "version": "0.8.0-beta.1",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -45,8 +45,8 @@
45
45
  "utilities"
46
46
  ],
47
47
  "dependencies": {
48
- "@sheetxl/sdk": "^0.7.28-beta.4",
49
- "@sheetxl/utils": "^0.7.28-beta.4",
48
+ "@sheetxl/sdk": "^0.8.0-beta.1",
49
+ "@sheetxl/utils": "^0.8.0-beta.1",
50
50
  "@xmldom/xmldom": "^0.9.10",
51
51
  "@zip.js/zip.js": "^2.8.34",
52
52
  "web-streams-polyfill": "^4.3.0",