@sheetxl/studio-mui 0.4.6 → 0.4.8

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 (89) hide show
  1. package/browser/cjs/{CdQdB8GGgwp5bzHl.cjs → B9VxvukbesYhdTdA.cjs} +2 -2
  2. package/browser/cjs/{QA_huZIonWzLs-uu.cjs → BA7HloSCkIjbJehh.cjs} +2 -2
  3. package/browser/cjs/BJN1sH87EvdxRpOd.cjs +12 -0
  4. package/browser/cjs/{Bcv0k3jvRwqN2MIv.cjs → BXt_O5ZSE2LpILmE.cjs} +4 -4
  5. package/browser/cjs/{BqTAMhy1JhZE_3nU.cjs → BZUPFYECmoclErqJ.cjs} +2 -2
  6. package/browser/cjs/{DtMN1mvFQK7hQ1j9.cjs → Ba7K1ZdzfgXpvg7P.cjs} +1 -1
  7. package/browser/cjs/C1NVH5bp1otDYHTC.cjs +12 -0
  8. package/browser/cjs/{Bwb_ZIYk7AHA0u3k.cjs → C1wsDeHNaWiFlCZh.cjs} +6 -6
  9. package/browser/cjs/{LWykIZ3qaETKREvJ.cjs → C7YVj8dlBBL_wOM9.cjs} +1 -1
  10. package/browser/cjs/{DPm_1cgH3Q1g4XzF.cjs → CPtvdlvWWilf8Vep.cjs} +2 -2
  11. package/browser/cjs/{DjEDCBlxBYuN3Enq.cjs → CTokFqp-O-Uhl0LW.cjs} +1 -1
  12. package/browser/cjs/{SSESHQPsy1dN102X.cjs → CeRQ0zAM1Xczv7Gm.cjs} +2 -2
  13. package/browser/cjs/{B1mBnghJtPodtylh.cjs → CiJS-8DphNBc_B9t.cjs} +2 -2
  14. package/browser/cjs/{E2cXotXW7NLh-ylB.cjs → Cuyl2HX5ovut6vef.cjs} +2 -2
  15. package/browser/cjs/Czcg6yLU8uVHew0l.cjs +6 -0
  16. package/browser/cjs/D7ntR8K8guZD6yMH.cjs +6 -0
  17. package/browser/cjs/{BIjFjK_aRCl0ckiG.cjs → DIKyZ-hkjeexXMzY.cjs} +1 -1
  18. package/browser/cjs/{DVh3lOOMM_xi0ETW.cjs → DNjiEJT8EtVysR2q.cjs} +1 -1
  19. package/browser/cjs/DTaaqEmMOO2QrfZF.cjs +87 -0
  20. package/browser/cjs/{DaK6Oc8sNlioHzKi.cjs → DkfygXp4ZgvLr3Yw.cjs} +2 -2
  21. package/browser/cjs/{D9DjLppWLp-iQcfI.cjs → NRKyHbS2cOhmoSox.cjs} +2 -2
  22. package/browser/cjs/{DKVuDNZsxiRUUBVt.cjs → dYzaARxDkWvC98N4.cjs} +1 -1
  23. package/browser/cjs/index.cjs +2 -2
  24. package/browser/cjs/{B1qn41wLyGnMiQPU.cjs → k4ZW48PahXgf2WQD.cjs} +1 -1
  25. package/browser/cjs/z_x7DWNrjsFa45Nh.cjs +6 -0
  26. package/browser/cjs/{Cwa_0l8qR0zbOqE0.cjs → znXBy3z9cM6mLfO7.cjs} +1 -1
  27. package/browser/esm/ABtrpK9yMoHh6oPr.mjs +864 -0
  28. package/browser/esm/{oV4EdTmLvRNexoGq.mjs → BG3qcQNY_GZt3VHB.mjs} +2 -2
  29. package/browser/esm/{9sVNDRh1Ww2_ABjB.mjs → BG8pohDV-03DRiXx.mjs} +13 -13
  30. package/browser/esm/{B8uQ6WrEnZeQliy7.mjs → BYftsJS-zhpjBq1k.mjs} +2 -2
  31. package/browser/esm/Bd0yhfN0EoE3uahv.mjs +84 -0
  32. package/browser/esm/{C4PpKzB897oeobRz.mjs → CAvo3HCB981DM5OF.mjs} +2 -2
  33. package/browser/esm/{CD2_V-nutPVuAS-C.mjs → CHNZIKe6NNdfdZOr.mjs} +1 -1
  34. package/browser/esm/{DBqHis2InMtzN9m3.mjs → CJxkcbtPJNL_Gloc.mjs} +16 -16
  35. package/browser/esm/{DowxifIAh5V6Hww_.mjs → COU2bYtN0WpsI4PY.mjs} +1 -1
  36. package/browser/esm/{Lm7tjCM70hRDdKQn.mjs → CWtcMBj9hNKDPN_v.mjs} +2 -2
  37. package/browser/esm/{D_eMbbDkTCIyPBkR.mjs → CzXTFr7g6RYXxPM1.mjs} +6 -6
  38. package/browser/esm/{VnAOTl45ngDazT7k.mjs → DIxDU9Lfq3hPWFPl.mjs} +2 -2
  39. package/browser/esm/{D2KNRJIkSezOwiMf.mjs → DJBG1-2QdNbZKe_4.mjs} +7971 -7961
  40. package/browser/esm/{DVKSMAIBqNe72BA_.mjs → DL8nFbYrab-MKQmF.mjs} +12 -12
  41. package/browser/esm/{DBxxz4VWtQhF8HiE.mjs → DWOLWdzUONLf1nae.mjs} +1 -1
  42. package/browser/esm/{BGDv4j9k0fKGH40f.mjs → DatUamvfhoqxlf8D.mjs} +2 -2
  43. package/browser/esm/{Y56oxIoigldEyDtK.mjs → DdVyaTOGGjRcamT8.mjs} +1 -1
  44. package/browser/esm/{DL7U0rX3cr1nkmnW.mjs → DdzcCdPQ_zZbqH2p.mjs} +2 -2
  45. package/browser/esm/{D75FG-POhKcbVybN.mjs → DoDQcFwr66QfXlYi.mjs} +1 -1
  46. package/browser/esm/{C4JsAY2gYqZ7Sd56.mjs → DwLP5jvXe3rwi5r2.mjs} +3 -3
  47. package/browser/esm/{D49GU0rifaflLO3n.mjs → Dz_iWDlTCAECBFSF.mjs} +7 -7
  48. package/browser/esm/{HBIcmxUA2eXJVoAq.mjs → GYPCajr96WY2V_je.mjs} +1 -1
  49. package/browser/esm/{DBsl0-1buVSmLIT3.mjs → eq540RbNc68EuIvk.mjs} +1 -1
  50. package/browser/esm/index.mjs +26 -25
  51. package/browser/esm/{DLq_1QLsg30gdYKE.mjs → lk_a0cAuz5HJsQKm.mjs} +1 -1
  52. package/browser/esm/{CvdO7McIlOCtqS-y.mjs → zMjWIB_wUonhfIad.mjs} +2 -2
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{DhSN7TkeDTP5WvZm.mjs → 0CnPehqlnzEMqDVS.mjs} +30 -30
  55. package/node/esm/{Dg4Q-SaoO3kvkvYo.mjs → BFxNXzqwDw9mTzzX.mjs} +1 -1
  56. package/node/esm/{DSGdRHGkJfdn-vZg.mjs → BKkexYXFkC5jI1D4.mjs} +1 -1
  57. package/node/esm/BXF0I0KwKWFhkYfM.mjs +78 -0
  58. package/node/esm/{C79MhCjBRvMtRYQ8.mjs → BpwzpczDCk32RxzY.mjs} +1 -1
  59. package/node/esm/{wJsllV16IW6_aUTq.mjs → C74xiDKgQep36e0D.mjs} +5 -5
  60. package/node/esm/{DHWs5mErxhiV_ABm.mjs → CE2Wff_Jx8m74lIm.mjs} +1 -1
  61. package/node/esm/{BykEuFt9dp-EWJZO.mjs → CVy5rNrHziJk0Xxc.mjs} +1 -1
  62. package/node/esm/{B45Lgj6XrYICeuDV.mjs → ChbG8iQjvpz3jA7T.mjs} +1 -1
  63. package/node/esm/{DKlEncWUM6PlIVXw.mjs → Cjw96KqgMSYqwdC4.mjs} +1 -1
  64. package/node/esm/{DV9nbqcBflTCKGov.mjs → ClUQ790AiAE9XIkY.mjs} +1 -1
  65. package/node/esm/{ClNrSC5ChRfmj691.mjs → D-Wu9vRF_DAsmME4.mjs} +14 -14
  66. package/node/esm/{CNtUiJCciezra7NX.mjs → D0ePiwz-m6oHmiUC.mjs} +1 -1
  67. package/node/esm/{CYcPamATHHzrhe3e.mjs → D4GNfE_QjFh3c9sT.mjs} +1 -1
  68. package/node/esm/DBDh50h4q3jgV4kn.mjs +312 -0
  69. package/node/esm/{dgGvhB4_s7wWzRKZ.mjs → DCLyoPsjP2qTWbca.mjs} +1 -1
  70. package/node/esm/{CjV-qMk3flrBJ5Tx.mjs → DTp1I9pWjg3-VyHr.mjs} +2 -2
  71. package/node/esm/{09msifGrQdtU9V1P.mjs → DkTySui4bQaZlvaP.mjs} +1 -1
  72. package/node/esm/{BhaLY_aBt2JyosQ9.mjs → Dm3qRN9_dIcmeeTB.mjs} +19 -19
  73. package/node/esm/{BrMPoQxRSTKdwAVr.mjs → cZHe3atogTKTMgvX.mjs} +1 -1
  74. package/node/esm/index.mjs +231 -221
  75. package/node/esm/{CsgrU16opQLee5fg.mjs → q2jb3DavC5pzi-mZ.mjs} +1 -1
  76. package/node/esm/{BMezAVogP2CPQGXx.mjs → wxIEXtYch2hJq7Rz.mjs} +1 -1
  77. package/node/esm/{CSffUZePWbg2mmfY.mjs → zfM7ir63qYOCXQWg.mjs} +20 -20
  78. package/package.json +8 -8
  79. package/types/index.d.ts +118 -81
  80. package/browser/cjs/BR4pH9NA2LHogxsj.cjs +0 -6
  81. package/browser/cjs/BwBrLQaEYCz6GTg4.cjs +0 -87
  82. package/browser/cjs/C_aC2PbKe_AGZzJf.cjs +0 -12
  83. package/browser/cjs/Cc9abhZ8Cm2eNY_H.cjs +0 -12
  84. package/browser/cjs/Dc5FruZcYE4XCAxW.cjs +0 -6
  85. package/browser/cjs/WY-zkNIfIEVEQq-C.cjs +0 -6
  86. package/browser/esm/BXKEJUmDPV4aXepN.mjs +0 -860
  87. package/browser/esm/F9D7x6t41LChFxhi.mjs +0 -84
  88. package/node/esm/CSubjpwyZVLohant.mjs +0 -78
  89. package/node/esm/yDYdEwZNn_fHB_XK.mjs +0 -308
@@ -1,10 +1,10 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { memo as z, forwardRef as E, useState as p } from "react";
3
- import { _ as t, a0 as K, a1 as R, a2 as W, a3 as O } from "./D2KNRJIkSezOwiMf.mjs";
3
+ import { _ as t, a0 as K, a1 as R, a2 as W, a3 as O } from "./DJBG1-2QdNbZKe_4.mjs";
4
4
  import { Box as _, FormControl as q, TextField as A } from "@mui/material";
5
5
  import { alpha as y } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -3,10 +3,10 @@ import { memo as ie, useRef as C, useState as b, useEffect as D, useLayoutEffect
3
3
  import { DialogContent as de, Box as O, TextField as Y, InputAdornment as ue, Collapse as _, MenuItem as fe, FormControl as ge, InputLabel as me, Select as xe } from "@mui/material";
4
4
  import { ArrowBack as he, ArrowUpward as Oe, ArrowForward as Ce, ArrowDownward as ye } from "@mui/icons-material";
5
5
  import { ICell as c, IRange as R } from "@sheetxl/sdk";
6
- import { T as W, a4 as be, j as Te, a6 as ve, a7 as m, x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, P as De } from "./D2KNRJIkSezOwiMf.mjs";
6
+ import { T as j, a4 as be, j as Te, a6 as ve, a7 as m, w as x, a8 as Re, Z as y, a9 as ke, aa as we, ab as Ie, ac as Se, a5 as k, ad as Ee, ae as Fe, P as De } from "./DJBG1-2QdNbZKe_4.mjs";
7
7
  import { alpha as w } from "@mui/system";
8
8
  /**
9
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
9
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
10
10
  *
11
11
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
12
12
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -16,7 +16,7 @@ const $ = ie((I) => {
16
16
  D(() => {
17
17
  v(ne(r, s));
18
18
  }, [r, s]);
19
- const K = W((u) => {
19
+ const K = j((u) => {
20
20
  v(u.target.value), d?.(s[u.target.value]);
21
21
  }, [d, s]), l = pe(() => Object.keys(s).map((u) => i(fe, { value: u, children: u }, u)), [s]);
22
22
  return p(ge, { sx: { minWidth: 135 }, size: "small", children: [i(me, { children: h }), i(xe, { inputProps: { tabIndex: T }, value: A, label: h, onChange: K, sx: { backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, ...P, children: l })] });
@@ -28,10 +28,10 @@ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
28
28
  const d = r[s];
29
29
  if (h[d] === I) return d;
30
30
  }
31
- }, je = ie((I) => {
32
- const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: P, onHide: A, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), j = C(null), V = C(null), N = C(null), H = C(null), z = (e, t) => {
31
+ }, Ve = ie((I) => {
32
+ const { replace: h = !1, findText: r, replaceText: s, findOptions: d, replaceOptions: T, title: P, onHide: A, onFindOrReplace: v, ...K } = I, l = C(null), u = C(null), V = C(null), W = C(null), N = C(null), H = C(null), z = (e, t) => {
33
33
  t && (t.start(e, { center: !1 }), setTimeout(() => t.stop(e), 180));
34
- }, [U, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), S = W(async (e, t, n, E) => {
34
+ }, [U, F] = b(!1), [M, le] = b(!1), [f, B] = b(h), [X, L] = b(!1), [G, Z] = b(!1), [o, a] = b({ findText: null, replaceText: null, replace: h, replaceOptions: {}, findOptions: { matchCase: !1, matchEntireCell: !1, useRegex: !1, orientation: R.Orientation.Row, fields: [c.Content.Formulas] }, scope: ee.Sheet }), S = j(async (e, t, n, E) => {
35
35
  if (!v) return;
36
36
  const g = { ...o };
37
37
  g.replaceOptions = { ...g.replaceOptions }, g.findOptions = { ...g.findOptions }, g.replaceOptions.maxCount = n ? void 0 : 1, g.replace = t, t && o.findOptions.fields?.[0] === c.Content.Values && (g.findOptions.fields = [c.Content.Formulas]), g.findOptions.reverse = !e;
@@ -41,11 +41,11 @@ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
41
41
  D(() => {
42
42
  L(!1);
43
43
  }, [o, M, f]);
44
- const q = W((e, t) => {
44
+ const q = j((e, t) => {
45
45
  if (e.keyCode === be.Enter) {
46
46
  if (!o.findText) return;
47
47
  let n = !0, E = !1;
48
- e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (E = !0), z(e, E ? H.current : N.current)) : z(e, n ? V.current : j.current), S(n, t, E, !1);
48
+ e.shiftKey && (n = !1), t ? (e.ctrlKey && e.altKey && (E = !0), z(e, E ? H.current : N.current)) : z(e, n ? W.current : V.current), S(n, t, E, !1);
49
49
  }
50
50
  }, [o]), J = C(null);
51
51
  ce(() => {
@@ -63,7 +63,7 @@ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
63
63
  }, { once: !0 });
64
64
  }, [U, o]);
65
65
  const [ae, { width: Q }] = Te();
66
- return i(ve, { title: P ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", refWindow: J, onHide: A, onFocus: () => Z(!0), onBlur: () => {
66
+ return i(ve, { ref: J, title: P ?? (f ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: A, onFocus: () => Z(!0), onBlur: () => {
67
67
  Z(!1), L(!1);
68
68
  }, PaperProps: { elevation: G ? 3 : 1 }, ...K, children: p(de, { dividers: !0, ref: ae, sx: { display: "flex", flexDirection: "column", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, onKeyDown: (e) => {
69
69
  if (e.key === "h" && e.ctrlKey) B(!0), l.current?.contains(document.activeElement) && u.current?.focus();
@@ -112,9 +112,9 @@ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
112
112
  e.stopPropagation();
113
113
  } }), i(m, { selected: o.findOptions.reverse, onSelectToggle: (e) => {
114
114
  S(!1, !1);
115
- }, touchRippleRef: j, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
115
+ }, touchRippleRef: V, label: "", shortcut: { key: "Enter", modifiers: [y.Shift] }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(he, {}) : i(Oe, {})), disabled: !o.findText }), i(m, { selected: !o.findOptions.reverse, onSelectToggle: (e) => {
116
116
  S(!0, !1);
117
- }, touchRippleRef: V, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
117
+ }, touchRippleRef: W, label: "Next Match", shortcut: { key: "Enter" }, icon: x(o.findOptions.orientation !== R.Orientation.Column ? i(Ce, {}) : i(ye, {})), disabled: !o.findText })] }), i(_, { in: f, timeout: te, onExit: () => {
118
118
  l.current?.focus();
119
119
  }, children: p(O, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e) => e.spacing(2) }, children: [i(Y, { label: "Replace", InputLabelProps: { shrink: !0 }, InputProps: { sx: { paddingRight: (e) => e.spacing(1), backgroundImage: `linear-gradient(${w("#fff", k(5))}, ${w("#fff", k(5))})` }, inputProps: { ref: u, className: "input", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (e) => e.spacing(1.25), paddingBottom: (e) => e.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e) => e.spacing(1) }, value: o.replaceText ?? "", onChange: (e) => {
120
120
  a((t) => {
@@ -147,7 +147,7 @@ const Pe = { "By Rows": !0, "By Columns": !1 }, ne = (I, h) => {
147
147
  } })] })] }) })] }) });
148
148
  });
149
149
  export {
150
- je as FindReplaceWindow,
150
+ Ve as FindReplaceWindow,
151
151
  ee as ScopeOptions,
152
- je as default
152
+ Ve as default
153
153
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as d, jsxs as k } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as V, useState as p, useCallback as h } from "react";
3
3
  import { Box as L } from "@mui/material";
4
- import { T as u, a1 as S, ai as A, aj as G } from "./D2KNRJIkSezOwiMf.mjs";
4
+ import { T as u, a1 as S, ai as A, aj as G } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,84 @@
1
+ import { Workbook as J } from "@sheetxl/sdk";
2
+ /**
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
4
+ *
5
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
+ * License: The license can be found at https://www.sheetxl.com/license.
7
+ */
8
+ const k = async (w, l) => {
9
+ const u = await w.toJSON(), b = l?.whiteSpace ?? 0;
10
+ let g;
11
+ l?.beforeWrite?.(w, u), g = b === 0 ? JSON.stringify(u) : function(f, r = 2) {
12
+ const n = [];
13
+ function i(o) {
14
+ const e = r * o;
15
+ return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
16
+ }
17
+ return function o(e, a, s, m) {
18
+ if (e == null || typeof e != "object") return JSON.stringify(e);
19
+ const d = i(a), O = i(a + 1);
20
+ if (Array.isArray(e)) {
21
+ const c = e.length;
22
+ if (c === 0) return "[]";
23
+ if (s !== 0) return JSON.stringify(e);
24
+ let y = `[
25
+ `;
26
+ for (let h = 0; h < c; h++) y += O + o(e[h], a + 1, s + 1, !0), h < c - 1 && (y += `,
27
+ `);
28
+ return y += `
29
+ ` + d + "]", y;
30
+ }
31
+ const B = Object.keys(e), A = B.length;
32
+ if (A === 0) return "{}";
33
+ if (!(s < 2)) return JSON.stringify(e);
34
+ let S = `{
35
+ `;
36
+ m || (s = 0);
37
+ for (let c = 0; c < A; c++) {
38
+ const y = B[c];
39
+ S += O + JSON.stringify(y) + ": " + o(e[y], a + 1, s, !1), c < A - 1 && (S += `,
40
+ `);
41
+ }
42
+ return S += `
43
+ ` + d + "}", S;
44
+ }(f, 0, 0, !1);
45
+ }(u, b);
46
+ let p = new TextEncoder().encode(g).buffer;
47
+ const t = l?.compress ?? !0;
48
+ return t && (p = await async function(f, r = "gzip") {
49
+ let n;
50
+ typeof SharedArrayBuffer < "u" && f instanceof SharedArrayBuffer ? (n = new ArrayBuffer(f.byteLength), new Uint8Array(n).set(new Uint8Array(f))) : n = f;
51
+ const i = new ReadableStream({ start(a) {
52
+ a.enqueue(n), a.close();
53
+ } }), o = new CompressionStream(r), e = i.pipeThrough(o);
54
+ return (await new Response(e).blob()).arrayBuffer();
55
+ }(p, typeof t == "string" ? t : void 0)), p;
56
+ }, z = async (w, l) => {
57
+ let u = w;
58
+ (function(t) {
59
+ if (t.byteLength < 4) return !1;
60
+ const f = new Uint8Array(t), r = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n = Object.keys(r);
61
+ for (let i = 0; i < n.length; i++) {
62
+ const o = n[i], e = r[o];
63
+ let a = !0;
64
+ for (let s = 0; s < e.length; s++) if (f[s] !== e[s]) {
65
+ a = !1;
66
+ break;
67
+ }
68
+ if (a) return o;
69
+ }
70
+ return !1;
71
+ })(u) && (u = await async function(t, f = "gzip") {
72
+ let r;
73
+ typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
74
+ const n = new Blob([r]).stream(), i = new DecompressionStream(f), o = n.pipeThrough(i);
75
+ return (await new Response(o).blob()).arrayBuffer();
76
+ }(u));
77
+ let b = new TextDecoder().decode(u);
78
+ const g = JSON.parse(b), p = { ...l?.createWorkbookOptions ?? {}, json: g };
79
+ return new J(p);
80
+ };
81
+ export {
82
+ z as fromBufferJSON,
83
+ k as toBufferJSON
84
+ };
@@ -1,10 +1,10 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as M, useState as h, useCallback as j } from "react";
3
3
  import { Box as S, FormControl as V, TextField as $ } from "@mui/material";
4
- import { T as m, a1 as z, a5 as C } from "./D2KNRJIkSezOwiMf.mjs";
4
+ import { T as m, a1 as z, a5 as C } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  import { alpha as O } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  import * as Oe from "react";
2
2
  import { createElement as Er, forwardRef as la, useRef as fa, useImperativeHandle as pa, useEffect as da } from "react";
3
3
  /**
4
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
4
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
5
5
  *
6
6
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
7
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,12 +1,12 @@
1
- import { Workbook as y, IRange as C } from "@sheetxl/sdk";
1
+ import { Workbook as y, IRange as k } from "@sheetxl/sdk";
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
7
7
  */
8
- const k = async (a, p) => {
9
- const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: u = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, f = await import("./Y56oxIoigldEyDtK.mjs").then((s) => s.p);
8
+ const E = async (a, p) => {
9
+ const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: f = !0, excludeHidden: h = !1, sheetKey: r = null, papaParseConfig: m = {} } = p || {}, u = await import("./DdVyaTOGGjRcamT8.mjs").then((s) => s.p);
10
10
  if (!a) throw new Error("workbook must be specified");
11
11
  let t = null;
12
12
  if (r === null ? t = a.getSelectedSheet() : typeof r == "number" ? t = a.getSheets().search()[r] : typeof r == "string" && (t = a.getSheets().getByName(r)), !t) throw new Error("invalid sheetKey specified");
@@ -14,8 +14,8 @@ const k = async (a, p) => {
14
14
  const d = [];
15
15
  let e = null, n = t.getUsedRange({ excludeHidden: h });
16
16
  if (!n) throw new Error("Nothing to export");
17
- if (!i || !u) {
18
- const s = i ? n.getRowStart() : 0, l = u ? n.getColumnStart() : 0;
17
+ if (!i || !f) {
18
+ const s = i ? n.getRowStart() : 0, l = f ? n.getColumnStart() : 0;
19
19
  n = n.getOffsetTo(s, l);
20
20
  }
21
21
  n.forEach((s, l) => {
@@ -24,23 +24,23 @@ const k = async (a, p) => {
24
24
  const S = x.toTextUnformatted() ?? "";
25
25
  e.push(S);
26
26
  }, { includeEmpty: !0, address: null }), e && d.push(e);
27
- const o = { ...m }, g = f.unparse(d, o);
27
+ const o = { ...m }, g = u.unparse(d, o);
28
28
  return new TextEncoder().encode(g).buffer;
29
- }, R = async (a, p) => {
30
- const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, r = await import("./Y56oxIoigldEyDtK.mjs").then((o) => o.p), m = new TextDecoder().decode(a);
31
- let f = -1;
32
- const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: C.Orientation.Row }), d = p?.onProgress;
29
+ }, b = async (a, p) => {
30
+ const { papaParseConfig: i, setValuesOptions: f, createWorkbookOptions: h } = p ?? {}, r = await import("./DdVyaTOGGjRcamT8.mjs").then((o) => o.p), m = new TextDecoder().decode(a);
31
+ let u = -1;
32
+ const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: k.Orientation.Row }), d = p?.onProgress;
33
33
  let e = 0;
34
34
  const n = { ...i, transform: (o, g) => {
35
35
  i?.transform && (o = i.transform(o, g));
36
36
  const s = g;
37
- s === 0 && f++;
37
+ s === 0 && u++;
38
38
  let l = o ?? "";
39
- return c.pushAt(f, s, l), e++, e % 1e5 == 0 && d?.(e), o;
39
+ return c.pushAt(u, s, l), e++, e % 1e5 == 0 && d?.(e), o;
40
40
  } };
41
- return r.parse(m, n).data, c.apply({ textParser: !0, ...u }), t;
41
+ return r.parse(m, n).data, c.apply({ textParser: !0, ...f }), t;
42
42
  };
43
43
  export {
44
- R as fromBufferCSV,
45
- k as toBufferCSV
44
+ b as fromBufferCSV,
45
+ E as toBufferCSV
46
46
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-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
  import { jsx as o, jsxs as A } from "react/jsx-runtime";
2
2
  import { memo as E, useMemo as F, useState as m, useCallback as O } from "react";
3
3
  import { Box as S, FormControl as P, TextField as b } from "@mui/material";
4
- import { T as f, a1 as U, a5 as l } from "./D2KNRJIkSezOwiMf.mjs";
4
+ import { T as f, a1 as U, a5 as l } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  import { alpha as p } from "@mui/system";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  import { NumberFormat as Ht, ScalarType as Ft, ResourceCollection as vs, Tuple as Ss, IAutoFilter as Zt, AddressUtils as at, CommonUtils as es, Theme as Cs, JSONStableStringify as ks, Workbook as As, IColor as Es, CoordUtils as De, IRange as Ds, OutOfBoundsError as Ps, FormulaError as Os } from "@sheetxl/sdk";
2
- import { Y as cs } from "./D2KNRJIkSezOwiMf.mjs";
2
+ import { Y as cs } from "./DJBG1-2QdNbZKe_4.mjs";
3
3
  /**
4
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
4
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
5
5
  *
6
6
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
7
7
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -897,14 +897,14 @@ class Bt {
897
897
  const Ks = (i, t, s) => {
898
898
  if (i[0].value[0] === i[1].value[0]) return t;
899
899
  }, ls = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, ri = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (i, t) => {
900
- const { password: s, onWarning: o, constructorOptions: n = {}, ...a } = t ?? {}, c = import("./DLq_1QLsg30gdYKE.mjs"), m = import("./C4JsAY2gYqZ7Sd56.mjs");
900
+ const { password: s, onWarning: o, createWorkbookOptions: n = {}, ...a } = t ?? {}, c = import("./lk_a0cAuz5HJsQKm.mjs"), m = import("./DwLP5jvXe3rwi5r2.mjs");
901
901
  let v = null;
902
902
  try {
903
903
  v = new DOMParser();
904
904
  } catch {
905
905
  }
906
906
  let b = null;
907
- v || (b = import("./DBxxz4VWtQhF8HiE.mjs").then((u) => u.i));
907
+ v || (b = import("./DWOLWdzUONLf1nae.mjs").then((u) => u.i));
908
908
  let x = null, E = null, y = null;
909
909
  try {
910
910
  const u = await Promise.all([c, m, b]);
@@ -1311,7 +1311,7 @@ const Ks = (i, t, s) => {
1311
1311
  }, W), _t = ns(R, ce), xt = await (async (V, U = 8388608) => {
1312
1312
  await (async () => {
1313
1313
  if (typeof ReadableStream > "u") if (typeof window > "u") {
1314
- const { ReadableStream: Z } = await import("./HBIcmxUA2eXJVoAq.mjs");
1314
+ const { ReadableStream: Z } = await import("./GYPCajr96WY2V_je.mjs");
1315
1315
  globalThis.ReadableStream = Z;
1316
1316
  } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1317
1317
  })();
@@ -1409,7 +1409,7 @@ const Ks = (i, t, s) => {
1409
1409
  throw u instanceof Ps && (D = "Unable to open XLSX. There are too many rows or columns."), new Error(D, { cause: u });
1410
1410
  }
1411
1411
  }, toBufferXLSX: async (i, t) => {
1412
- const s = await import("./DLq_1QLsg30gdYKE.mjs"), o = await i.toJSON(!0), n = s.utils.book_new();
1412
+ const s = await import("./lk_a0cAuz5HJsQKm.mjs"), o = await i.toJSON(!0), n = s.utils.book_new();
1413
1413
  for (let a = 0; a < o.sheets.length; a++) {
1414
1414
  const c = o.sheets[a], m = s.utils.json_to_sheet([{}]);
1415
1415
  s.utils.book_append_sheet(n, m, c.name);
@@ -2,10 +2,10 @@ import { jsx as t, jsxs as y } from "react/jsx-runtime";
2
2
  import { memo as G, useState as x, useCallback as O, useEffect as H, useMemo as S } from "react";
3
3
  import { Box as w, FormControl as P, InputLabel as K, Select as q, TextField as A, Typography as I, MenuItem as J } from "@mui/material";
4
4
  import { NumberFormat as n } from "@sheetxl/sdk";
5
- import { T as l, a4 as Q, a1 as U, a5 as p } from "./D2KNRJIkSezOwiMf.mjs";
5
+ import { T as l, a4 as Q, a1 as U, a5 as p } from "./DJBG1-2QdNbZKe_4.mjs";
6
6
  import { alpha as c } from "@mui/system";
7
7
  /**
8
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
8
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
9
9
  *
10
10
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
11
11
  * License: The license can be found at https://www.sheetxl.com/license.