@sheetxl/studio-mui 0.4.14 → 0.4.16

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 (83) hide show
  1. package/browser/cjs/{XGmQ2kUHM2qQkG1r.cjs → 3eFeaOE8BdZL1wxv.cjs} +1 -1
  2. package/browser/cjs/{DD8-ZSDUkRqk7l6y.cjs → B7jcDdJUMAjZpGWo.cjs} +1 -1
  3. package/browser/cjs/{BkVtS9FZxWYNmrbU.cjs → BNGY-twelLFkYYI6.cjs} +1 -1
  4. package/browser/cjs/{CRvxop0QcZL23Akb.cjs → BsjtiKh23e6v8G0f.cjs} +2 -2
  5. package/browser/cjs/{D2gy3JDrJyGAMqsl.cjs → BzMxZOWpUV_RYST5.cjs} +2 -2
  6. package/browser/cjs/{B1Eaz6PFZAmrWiyY.cjs → C5nAx9uKHMANWBcf.cjs} +2 -2
  7. package/browser/cjs/{B8ZfZXhvW4sSKKZs.cjs → CQN6CMOb4-vmBky4.cjs} +2 -2
  8. package/browser/cjs/CVQnn-QAlTwmCcqi.cjs +96 -0
  9. package/browser/cjs/{BqOg0z4HGrbNaL1k.cjs → CXs0QRWS8JCF5XHE.cjs} +2 -2
  10. package/browser/cjs/{Bmifo5y7ZMJolUTY.cjs → CXwNI8k-NCP-Xytq.cjs} +1 -1
  11. package/browser/cjs/{W7LR70ajtjR9Lmvl.cjs → CgzOmQLgtPYoapZz.cjs} +2 -2
  12. package/browser/cjs/{DNL88d5PGwk92LeD.cjs → Crjro8zyw3_OPSdv.cjs} +2 -2
  13. package/browser/cjs/{BpLu9-spCLcAFdwd.cjs → Ctj6jurjmyOjmyC_.cjs} +2 -2
  14. package/browser/cjs/{-zKDSjn55SCvCwk8.cjs → D3DP2KHrlCUvr5GM.cjs} +1 -1
  15. package/browser/cjs/{DZ8WTAzF6V2Tw1tW.cjs → D6vlAfPBLlktoBgq.cjs} +2 -2
  16. package/browser/cjs/DFqjzGGReUL-7MoI.cjs +18 -0
  17. package/browser/cjs/{BUwmvmcdC0xBQ97L.cjs → DKYqcrXsQ_6SuhnP.cjs} +1 -1
  18. package/browser/cjs/{BAfNSJo7fktzFVJd.cjs → DRXfWFboy9pbnpXC.cjs} +3 -3
  19. package/browser/cjs/{AoLA7tfyPshG_mKt.cjs → Die-N4kV2bzafWfb.cjs} +2 -2
  20. package/browser/cjs/{C6Fk0jGWAOED60yf.cjs → DoxscTb4o7M2CzO-.cjs} +1 -1
  21. package/browser/cjs/{d2jsgbPdf35xArnn.cjs → htqwuaRLOx8unJxi.cjs} +2 -2
  22. package/browser/cjs/index.cjs +2 -2
  23. package/browser/cjs/{BH0v7IIykugrFxaT.cjs → nyCcUTXcNQz4oeHS.cjs} +2 -2
  24. package/browser/cjs/{CS5USjyVh8DwPSri.cjs → omjToo5UJ4DJDaQ_.cjs} +1 -1
  25. package/browser/cjs/{BiBEmbWoJHdOB1li.cjs → ovadKV9YIel9XeoD.cjs} +1 -1
  26. package/browser/esm/{C4ORm_Up6Zxt92F_.mjs → B6X8Qvia5W098Liv.mjs} +1 -1
  27. package/browser/esm/{4fzdzYhVH9eIXv-E.mjs → BHgGHdonH-Pv6AWm.mjs} +2 -2
  28. package/browser/esm/{CS6uJp7phBvUmos6.mjs → BKiH_cfuFpIWR0Kh.mjs} +6 -6
  29. package/browser/esm/{CCwOCTrf9Bira1-Y.mjs → BPW1-Hf2PHIk0e2L.mjs} +1 -1
  30. package/browser/esm/{CBQZHZlKIiEz186r.mjs → BSJUiUM1YTsyAkO6.mjs} +89 -90
  31. package/browser/esm/{ClmlhDf-0RC5GFV3.mjs → BWsWm5Ktnddf-7sU.mjs} +6 -6
  32. package/browser/esm/{CHovQU_R4AuKULmT.mjs → Be60UaEY4-jBg5EP.mjs} +1 -1
  33. package/browser/esm/BfgjY48NUV6xeZZz.mjs +43 -0
  34. package/browser/esm/{DWy4L2usallW0WdU.mjs → Bm9oowz3XGKUJAwu.mjs} +69 -69
  35. package/browser/esm/{CmAnpd_SOxQuTQRL.mjs → C1PvMvQkRbbPczX9.mjs} +3 -3
  36. package/browser/esm/{Dc1PmtvbeqsIQHq6.mjs → CSJOA0MduTRibCPc.mjs} +20 -20
  37. package/browser/esm/{vgS9ixFRuZrPx6vq.mjs → CVxFHP2hSU8M4x8L.mjs} +1 -1
  38. package/browser/esm/{C8po4rRYJ8127Rgb.mjs → CYkAU_Fwrj5HpveQ.mjs} +10 -10
  39. package/browser/esm/CnpSLh6bctHwICAg.mjs +23 -0
  40. package/browser/esm/{CYG1vk4AMMwqsul7.mjs → DlVsPuV-HRiRBisB.mjs} +1 -1
  41. package/browser/esm/{C5OCdRxcYIZViFzN.mjs → DnqJg0A5zWCsTH6-.mjs} +1 -1
  42. package/browser/esm/{CSKgHJSTMvOEe2RH.mjs → DqaP59JHe_yjCNLN.mjs} +11804 -10969
  43. package/browser/esm/{CB7vnn7AtsGma4R6.mjs → DsE9LT7djZNC_bpr.mjs} +1 -1
  44. package/browser/esm/{Ks946bL2vmd4m743.mjs → DtYTMRjYASQHh47Z.mjs} +6 -6
  45. package/browser/esm/{_FvE2-K7MOW_qWVS.mjs → DusKklXwfexZKIz3.mjs} +1 -1
  46. package/browser/esm/{CQiALmsycGGLFj1o.mjs → RjtykFbCcbv4qS7T.mjs} +5 -5
  47. package/browser/esm/{DgKsUQMTThBdEQds.mjs → bgdZRJ8Fv13W0mzX.mjs} +12 -12
  48. package/browser/esm/{B-rZWEIXFvB2W_mP.mjs → i2tBquKvd69Lntmu.mjs} +1 -1
  49. package/browser/esm/{TlZOl3Gt-d0Nc2a8.mjs → iUN2PzjdPItUTr7H.mjs} +3 -3
  50. package/browser/esm/index.mjs +66 -64
  51. package/licenses/dependencies.txt +134 -134
  52. package/node/esm/{DWCxF-chq5dVi363.mjs → -nq4m1_-YnMSpDz2.mjs} +38 -38
  53. package/node/esm/{CZoMFCKJudiTl_Tf.mjs → -wKDYIC7nV2UawT2.mjs} +2 -2
  54. package/node/esm/{Bi5br6yrYZqhLEiY.mjs → 6L31NM1-LL-KdFrd.mjs} +4 -4
  55. package/node/esm/{BTNBRzW8ZZbJY4GL.mjs → BKhroikdnIEO-cch.mjs} +1 -1
  56. package/node/esm/{DghPySv_2Ts78czJ.mjs → BVDB8yUgU4Pe3e3J.mjs} +1 -1
  57. package/node/esm/{762kbapO408ejsVC.mjs → BmnB45A5Kcks8H37.mjs} +2 -2
  58. package/node/esm/{BR9YJuwMP9nTMBE-.mjs → C-K2oA0Q20MmV5RC.mjs} +1 -1
  59. package/node/esm/{yP0whgIwVZApluLw.mjs → CC2vphWASQ4iYaeu.mjs} +2 -2
  60. package/node/esm/{DrujinnhlNDCosqb.mjs → CKJI-uruL_zkUxDv.mjs} +1 -1
  61. package/node/esm/{VHY56h6xqQcPba6u.mjs → Cr0a6BIKIyYJjP1S.mjs} +1 -1
  62. package/node/esm/{B0gJGF9-J3L5yBEW.mjs → CtQxIh_WsWd2Iqtp.mjs} +5 -5
  63. package/node/esm/{DUqIYzvmrCd67Dpx.mjs → DLPeWl4zrLTgco5e.mjs} +2 -2
  64. package/node/esm/{CY1qC_sXGD6av4yO.mjs → DavolEdR41s-e_Fj.mjs} +2 -2
  65. package/node/esm/{DC2dPUCWVgxEKzaS.mjs → DfkGEyNA6RPSKyEP.mjs} +13 -13
  66. package/node/esm/{CCygt4zw40-jO57G.mjs → Dn5QZmzECuToX8GV.mjs} +2 -2
  67. package/node/esm/{D1GfRQ1jyFg-wmLD.mjs → DqZDYIleTnvpbErd.mjs} +1 -1
  68. package/node/esm/{yB8OTWhDomxUy_SX.mjs → KPnfLrtriahFI_c0.mjs} +2 -2
  69. package/node/esm/{DOUP6ynjlQE-UEJs.mjs → OpLz9iqEueYpbPNa.mjs} +6 -6
  70. package/node/esm/{dlEq3vDkIERtTn7Y.mjs → RM7navTE1C8IL9a9.mjs} +25 -25
  71. package/node/esm/{Bgtg4I8EL4M776SY.mjs → fYYkAOtCehA-pVps.mjs} +8 -8
  72. package/node/esm/{CzWLA_IQgFbENkMq.mjs → iZ76esdFvFKIFxbE.mjs} +1 -1
  73. package/node/esm/index.mjs +5402 -5136
  74. package/node/esm/{CTpkd2r1aBS5d0yl.mjs → xiFL_cTYqzecUPE9.mjs} +1 -1
  75. package/package.json +8 -8
  76. package/types/index.d.ts +14 -1
  77. package/browser/cjs/As7uhSEgY8VJ3I6f.cjs +0 -90
  78. package/browser/cjs/Chz3K3Qt8M2FNJwI.cjs +0 -12
  79. package/browser/cjs/DTHMIHonHaHeJ0o1.cjs +0 -18
  80. package/browser/esm/CIH3ADFJJmUiyA8p.mjs +0 -864
  81. package/browser/esm/Dk00kGaRJxiitO5-.mjs +0 -23
  82. package/browser/esm/FdSIHwC_mNRZpcgJ.mjs +0 -43
  83. package/node/esm/DsD7O5j2cXyaECkB.mjs +0 -313
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -11,35 +11,35 @@ import { alpha as c, getOverlayAlpha as p } from "@mui/material/styles/index.js"
11
11
  import { DialogContent as d, Box as u, TextField as f, InputAdornment as m, Collapse as g, MenuItem as x, FormControl as h, InputLabel as O, Select as C } from "@mui/material";
12
12
  import { ArrowBack as y, ArrowUpward as b, ArrowForward as T, ArrowDownward as v } from "@mui/icons-material";
13
13
  import { ICell as k, IRange as R } from "@sheetxl/sdk";
14
- import { P as E, z as S, A as I, B as F, a as w, D, c as P, G as K, H as A, I as $, J as B, O as M, Q as j, d as L } from "./index.mjs";
14
+ import { P as E, T as S, z as F, f as I, b as w, r as D, E as P, o as K, l as $, i as A, s as M, c as j, d as B, g as L } from "./index.mjs";
15
15
  const V = t((t2) => {
16
- const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() => J(r2, a2));
16
+ const { label: i2, value: r2, options: a2, onSelect: d2, tabIndex: u2 = 0, ...f2 } = t2, [m2, g2] = o(() => U(r2, a2));
17
17
  l(() => {
18
- g2(J(r2, a2));
18
+ g2(U(r2, a2));
19
19
  }, [r2, a2]);
20
20
  const y2 = E((e2) => {
21
21
  g2(e2.target.value), d2?.(a2[e2.target.value]);
22
22
  }, [d2, a2]), b2 = s(() => Object.keys(a2).map((n2) => e(x, { value: n2, children: n2 }, n2)), [a2]);
23
23
  return n(h, { sx: { minWidth: 135 }, size: "small", children: [e(O, { children: i2 }), e(C, { inputProps: { tabIndex: u2 }, value: m2, label: i2, onChange: y2, sx: { backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, ...f2, children: b2 })] });
24
- }), H = { Workbook: "workbook", Sheet: "sheet" }, N = { enter: 140, exit: 140 }, W = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, z = { ...W };
25
- delete z.Values;
26
- const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
24
+ }), N = { Workbook: "workbook", Sheet: "sheet" }, W = { enter: 140, exit: 140 }, z = { Formulas: k.Content.Formulas, Values: k.Content.Values, Notes: k.Content.Notes, Comments: k.Content.Comments }, H = { ...z };
25
+ delete H.Values;
26
+ const G = { "By Rows": true, "By Columns": false }, U = (e2, n2) => {
27
27
  const t2 = Object.keys(n2);
28
28
  for (let i2 = 0; i2 < t2.length; i2++) {
29
29
  const o2 = t2[i2];
30
30
  if (n2[o2] === e2) return o2;
31
31
  }
32
- }, Q = t((t2) => {
33
- const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: J2, onHide: Q2, onFindOrReplace: U, ...X } = t2, q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), ne = i(null), te = (e2, n2) => {
32
+ }, X = t((t2) => {
33
+ const { replace: s2 = false, findText: x2, replaceText: h2, findOptions: O2, replaceOptions: C2, title: U2, onHide: X2, onFindOrReplace: q, ...J } = t2, Q = i(null), Y = i(null), Z = i(null), _ = i(null), ee = i(null), ne = i(null), te = (e2, n2) => {
34
34
  if (!n2) return;
35
35
  n2.start(e2, { center: false }), setTimeout(() => n2.stop(e2), 180);
36
- }, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: H.Sheet }), ge = E(async (e2, n2, t3, i2) => {
37
- if (!U) return;
36
+ }, [ie, oe] = o(false), [le, re] = o(false), [se, ae] = o(s2), [ce, pe] = o(false), [de, ue] = o(false), [fe, me] = o({ findText: null, replaceText: null, replace: s2, replaceOptions: {}, findOptions: { matchCase: false, matchEntireCell: false, useRegex: false, orientation: R.Orientation.Row, fields: [k.Content.Formulas] }, scope: N.Sheet }), ge = E(async (e2, n2, t3, i2) => {
37
+ if (!q) return;
38
38
  const o2 = { ...fe };
39
39
  o2.replaceOptions = { ...o2.replaceOptions }, o2.findOptions = { ...o2.findOptions }, o2.replaceOptions.maxCount = t3 ? void 0 : 1, o2.replace = n2, n2 && fe.findOptions.fields?.[0] === k.Content.Values && (o2.findOptions.fields = [k.Content.Formulas]), o2.findOptions.reverse = !e2;
40
- const l2 = await U({ autoFocus: i2, ...o2 });
40
+ const l2 = await q({ autoFocus: i2, ...o2 });
41
41
  pe(0 === l2);
42
- }, [fe, U]);
42
+ }, [fe, q]);
43
43
  l(() => {
44
44
  pe(false);
45
45
  }, [fe, le, se]);
@@ -60,16 +60,16 @@ const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
60
60
  }, [x2, h2, O2, C2]), l(() => {
61
61
  se ? (fe.findOptions.fields[0], k.Content.Values) : oe(true);
62
62
  }, [se]), l(() => {
63
- if (ie && q.current && fe.findText === q.current.value) return q.current === document.activeElement || q.current.contains(document.activeElement) ? (q.current?.select(), void oe(false)) : void q.current.addEventListener("focus", () => {
64
- q.current?.select(), oe(false);
63
+ if (ie && Q.current && fe.findText === Q.current.value) return Q.current === document.activeElement || Q.current.contains(document.activeElement) ? (Q.current?.select(), void oe(false)) : void Q.current.addEventListener("focus", () => {
64
+ Q.current?.select(), oe(false);
65
65
  }, { once: true });
66
66
  }, [ie, fe]);
67
67
  const [Oe, { width: Ce }] = a();
68
- return e(I, { ref: he, title: J2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: Q2, onFocus: () => ue(true), onBlur: () => {
68
+ return e(F, { ref: he, title: U2 ?? (se ? "Find & Replace" : "Find"), initialPosition: { y: "35" }, autoFocusSel: ".input", onHide: X2, onFocus: () => ue(true), onBlur: () => {
69
69
  ue(false), pe(false);
70
- }, PaperProps: { elevation: de ? 3 : 1 }, ...X, children: n(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
71
- if ("h" === e2.key && e2.ctrlKey) ae(true), q.current?.contains(document.activeElement) && Y.current?.focus();
72
- else if ("f" === e2.key && e2.ctrlKey) q.current?.focus();
70
+ }, PaperProps: { elevation: de ? 3 : 1 }, ...J, children: n(d, { dividers: true, ref: Oe, sx: { display: "flex", flexDirection: "column", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, onKeyDown: (e2) => {
71
+ if ("h" === e2.key && e2.ctrlKey) ae(true), Q.current?.contains(document.activeElement) && Y.current?.focus();
72
+ else if ("f" === e2.key && e2.ctrlKey) Q.current?.focus();
73
73
  else if ("c" === e2.key && e2.altKey) me((e3) => {
74
74
  const n2 = { ...e3 };
75
75
  return n2.findOptions.matchCase = !e3.findOptions.matchCase, n2;
@@ -86,38 +86,38 @@ const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
86
86
  });
87
87
  }
88
88
  e2.preventDefault();
89
- }, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(F, { selected: le, onSelectToggle: (e2) => {
89
+ }, children: [n(u, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "start", gap: (e2) => e2.spacing(0.25), paddingTop: "3px" }, children: [e(I, { selected: le, onSelectToggle: (e2) => {
90
90
  re(e2);
91
- }, preventFocus: true, label: "Toggle Additional Options", icon: w(e(D, {})) }), e(F, { selected: se, onSelectToggle: (e2) => {
91
+ }, preventFocus: true, label: "Toggle Additional Options", icon: w(e(D, {})) }), e(I, { selected: se, onSelectToggle: (e2) => {
92
92
  ae(e2);
93
- }, preventFocus: true, label: "Toggle Replace", icon: w(e(K, {})), shortcut: { key: se ? "F" : "H", modifiers: [P.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(F, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
93
+ }, preventFocus: true, label: "Toggle Replace", icon: w(e(K, {})), shortcut: { key: se ? "F" : "H", modifiers: [P.Ctrl] } })] }), n(u, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box" }, children: [n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [e(f, { label: "Find", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), minWidth: Ce > 460 ? "20em" : void 0, backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { draggable: false, ref: Q, className: "input", autoFocus: true, spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } }, endAdornment: e(m, { sx: { transform: "scale(0.75) translateX(16px)" }, position: "end", children: n(u, { sx: { display: "flex", alignItems: "center", flexDirection: "row", gap: "1px" }, children: [e(I, { selected: fe.findOptions.matchCase, onSelectToggle: (e2) => {
94
94
  me((n2) => {
95
95
  const t3 = { ...n2 };
96
96
  return t3.findOptions.matchCase = e2, t3;
97
97
  });
98
- }, label: "Match Case", shortcut: { key: "C", modifiers: [P.Alt] }, icon: w(e(A, {})) }), e(F, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
98
+ }, label: "Match Case", shortcut: { key: "C", modifiers: [P.Alt] }, icon: w(e($, {})) }), e(I, { selected: fe.findOptions.matchEntireCell, onSelectToggle: (e2) => {
99
99
  me((n2) => {
100
100
  const t3 = { ...n2 };
101
101
  return t3.findOptions.matchEntireCell = e2, t3;
102
102
  });
103
- }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [P.Alt] }, icon: w(e($, {})) }), e(F, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
103
+ }, label: "Match Entire Cell", shortcut: { key: "E", modifiers: [P.Alt] }, icon: w(e(A, {})) }), e(I, { selected: fe.findOptions.useRegex, onSelectToggle: (e2) => {
104
104
  me((n2) => {
105
105
  const t3 = { ...n2 };
106
106
  return t3.findOptions.useRegex = e2, t3;
107
107
  });
108
- }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [P.Alt] }, icon: w(e(B, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
108
+ }, label: "Use Regular Expression", shortcut: { key: "R", modifiers: [P.Alt] }, icon: w(e(M, {})) })] }) }) }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => ce ? `${e2.palette.error.main} !important` : void 0 } }, value: fe.findText ?? "", onChange: (e2) => {
109
109
  me((n2) => {
110
110
  const t3 = { ...n2 };
111
111
  return t3.findText = e2.target.value, t3;
112
112
  });
113
113
  }, onKeyDown: (e2) => xe(e2, false), onContextMenu: (e2) => {
114
114
  e2.stopPropagation();
115
- } }), e(F, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
115
+ } }), e(I, { selected: fe.findOptions.reverse, onSelectToggle: (e2) => {
116
116
  ge(false, false);
117
- }, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [P.Shift] }, icon: w(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(F, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
117
+ }, touchRippleRef: Z, label: "", shortcut: { key: "Enter", modifiers: [P.Shift] }, icon: w(fe.findOptions.orientation !== R.Orientation.Column ? e(y, {}) : e(b, {})), disabled: !fe.findText }), e(I, { selected: !fe.findOptions.reverse, onSelectToggle: (e2) => {
118
118
  ge(true, false);
119
- }, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: w(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: N, onExit: () => {
120
- q.current?.focus();
119
+ }, touchRippleRef: _, label: "Next Match", shortcut: { key: "Enter" }, icon: w(fe.findOptions.orientation !== R.Orientation.Column ? e(T, {}) : e(v, {})), disabled: !fe.findText })] }), e(g, { in: se, timeout: W, onExit: () => {
120
+ Q.current?.focus();
121
121
  }, children: n(u, { sx: { display: "flex", flexDirection: "row", alignItems: "center", marginTop: (e2) => e2.spacing(2) }, children: [e(f, { label: "Replace", InputLabelProps: { shrink: true }, InputProps: { sx: { paddingRight: (e2) => e2.spacing(1), backgroundImage: `linear-gradient(${c("#fff", p(5))}, ${c("#fff", p(5))})` }, inputProps: { ref: Y, className: "input", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75) } } }, sx: { flex: "1 1 100%", marginRight: (e2) => e2.spacing(1) }, value: fe.replaceText ?? "", onChange: (e2) => {
122
122
  me((n2) => {
123
123
  const t3 = { ...n2 };
@@ -125,13 +125,13 @@ const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
125
125
  });
126
126
  }, onKeyDown: (e2) => xe(e2, true), onContextMenu: (e2) => {
127
127
  e2.stopPropagation();
128
- } }), e(F, { onSelectToggle: (e2) => {
128
+ } }), e(I, { onSelectToggle: (e2) => {
129
129
  ge(true, true);
130
- }, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: w(e(M, {})), disabled: !fe.findText }), e(F, { onSelectToggle: (e2) => {
130
+ }, touchRippleRef: ee, label: "Replace", shortcut: { key: "Enter" }, icon: w(e(j, {})), disabled: !fe.findText }), e(I, { onSelectToggle: (e2) => {
131
131
  ge(true, true, true);
132
- }, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [P.Ctrl, P.Alt] }, icon: w(e(j, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: N, onExit: () => {
133
- q.current?.focus();
134
- }, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(L, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(V, { label: "Within", value: fe.scope, options: H, onSelect: (e2) => {
132
+ }, touchRippleRef: ne, label: "Replace All", shortcut: { key: "Enter", modifiers: [P.Ctrl, P.Alt] }, icon: w(e(B, {})), disabled: !fe.findText })] }) })] })] }), e(g, { in: le, timeout: W, onExit: () => {
133
+ Q.current?.focus();
134
+ }, children: n(u, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(L, { orientation: "horizontal", sx: { marginBottom: (e2) => e2.spacing(1.5) } }), n(u, { sx: { display: "flex", flexDirection: Ce >= 413 ? "row" : "column", justifyContent: "space-evenly", alignItems: "center", rowGap: (e2) => e2.spacing(2) }, tabIndex: -1, children: [e(V, { label: "Within", value: fe.scope, options: N, onSelect: (e2) => {
135
135
  me((n2) => {
136
136
  const t3 = { ...n2 };
137
137
  return t3.scope = e2, t3;
@@ -141,7 +141,7 @@ const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
141
141
  const t3 = { ...n2 };
142
142
  return t3.findOptions.orientation = e2 ? R.Orientation.Row : R.Orientation.Column, t3;
143
143
  });
144
- } }), e(V, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? z : W, onSelect: (e2) => {
144
+ } }), e(V, { label: "Look in", value: se && fe.findOptions.fields?.[0] === k.Content.Values ? k.Content.Formulas : fe.findOptions.fields?.[0], options: se ? H : z, onSelect: (e2) => {
145
145
  me((n2) => {
146
146
  const t3 = { ...n2 };
147
147
  return t3.findOptions.fields = [e2], t3;
@@ -149,7 +149,7 @@ const G = { "By Rows": true, "By Columns": false }, J = (e2, n2) => {
149
149
  } })] })] }) })] }) });
150
150
  });
151
151
  export {
152
- Q as FindReplaceWindow,
153
- H as ScopeOptions,
154
- Q as default
152
+ X as FindReplaceWindow,
153
+ N as ScopeOptions,
154
+ X as default
155
155
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -7,7 +7,7 @@
7
7
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
8
8
  import { memo as a, useMemo as n, useState as l, useCallback as o } from "react";
9
9
  import { Box as i } from "@mui/material";
10
- import { P as r, x as s, NamedInput as d, RangeInput as p } from "./index.mjs";
10
+ import { P as r, a as s, NamedInput as d, RangeInput as p } from "./index.mjs";
11
11
  const u = ["Ok", "Cancel"], c = a((a2) => {
12
12
  const { value: c2 = null, context: m, onOption: g, onValidateOption: x, onDone: f, onUpdate: N, options: y = u, defaultOption: T = y?.[0], cancelOption: O = "Cancel", sx: V, ...h } = a2, v = n(() => m?.getNames().findValidName("Range1"), []), C = n(() => {
13
13
  if (!c2) return true;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -9,9 +9,9 @@ import { memo as o, useState as a, useCallback as n, useEffect as i, useMemo as
9
9
  import { alpha as l, getOverlayAlpha as s } from "@mui/material/styles/index.js";
10
10
  import { Box as p, FormControl as c, InputLabel as d, Select as u, TextField as m, Typography as g, MenuItem as f } from "@mui/material";
11
11
  import { NumberFormat as y } from "@sheetxl/sdk";
12
- import { P as x, z as h, x as C } from "./index.mjs";
12
+ import { P as x, T as h, a as C } from "./index.mjs";
13
13
  const v = ["Ok", "Cancel"], b = o((o2) => {
14
- const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options: P = v, defaultOption: S = P?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [j, V] = a(b2), [z, N] = a(false), B = n(async (e2, t2) => true, []), L = x(async (e2) => {
14
+ const { initialValue: b2, context: T, onOption: k, onValidateOption: O, onInputOption: w, onDone: F, options: P = v, defaultOption: S = P?.[0], cancelOption: $ = "Cancel", sx: D, ...I } = o2, [j, V] = a(b2), [N, z] = a(false), B = n(async (e2, t2) => true, []), L = x(async (e2) => {
15
15
  w?.(j, e2), k?.(e2, e2 === $, e2 === S), F?.();
16
16
  }, [j, w, F, k, $, S]), M = x(async (e2) => {
17
17
  if (e2.keyCode === h.Enter) {
@@ -43,7 +43,7 @@ const v = ["Ok", "Cancel"], b = o((o2) => {
43
43
  return e2.createTemporaryCell({ value: e2.getValue() ?? 12345, style: { numberFormat: j } });
44
44
  }, [E, j, T]);
45
45
  return e(C, { title: "Number Format", options: P, onDone: F, onOption: (e2) => L(e2), onValidateOption: W, defaultOption: S, cancelOption: $, autoFocusSel: ".autoFocus", sx: { width: "580px", ...D }, ...I, children: t(p, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [t(c, { sx: { minWidth: 135 }, size: "small", children: [e(d, { children: "Category" }), e(u, { value: E, label: "Category", onChange: K, sx: { backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` }, children: H })] }), e(c, { sx: { paddingTop: (e2) => e2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: e(m, { label: "Code", onFocus: (e2) => {
46
- z || e2.target?.select(), N(true);
46
+ N || e2.target?.select(), z(true);
47
47
  }, sx: { "& .MuiFormHelperText-root": { marginTop: (e2) => e2.spacing(0.5) } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { className: "autoFocus", spellCheck: false, autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1.25), paddingBottom: (e2) => e2.spacing(0.75), backgroundImage: `linear-gradient(${l("#fff", s(5))}, ${l("#fff", s(5))})` } } }, value: j, onChange: R, onKeyDown: M, onContextMenu: (e2) => {
48
48
  e2.stopPropagation();
49
49
  } }) }), t(p, { children: [e(g, { variant: "caption", component: "div", sx: { paddingLeft: (e2) => e2.spacing(2) }, children: "Preview" }), e(g, { variant: "body2", component: "div", sx: { borderRadius: (e2) => `${e2.shape.borderRadius}px`, padding: (e2) => e2.spacing(1), border: (e2) => `1px solid ${e2.palette.grey[400]}` }, children: q.getNumberFormat().displayText || "(empty)" })] })] }) });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
6
6
  */
7
- import { a2 as e } from "./index.mjs";
7
+ import { p as e } from "./index.mjs";
8
8
  function r(e2, r2) {
9
9
  for (var t2 = 0; t2 < r2.length; t2++) {
10
10
  const n2 = r2[t2];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -8,7 +8,7 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
8
8
  import { memo as e, useMemo as o, useState as a, useCallback as i } from "react";
9
9
  import { alpha as s, getOverlayAlpha as l } from "@mui/material/styles/index.js";
10
10
  import { Box as r, FormControl as p, TextField as d } from "@mui/material";
11
- import { P as c, x as u } from "./index.mjs";
11
+ import { P as c, a as u } from "./index.mjs";
12
12
  const g = ["Ok", "Cancel"], m = e((e2) => {
13
13
  const { initialHyperlink: m2 = null, initialDisplay: f = null, onUpdateHyperlink: x, context: h, onOption: y, onValidateOption: T, onDone: k, options: C = g, defaultOption: O = C?.[0], cancelOption: P = "Cancel", sx: b, ...D } = e2, F = o(() => null !== (m2 ?? h?.()?.getHyperlink()), []), I = o(() => {
14
14
  let t2 = null, n2 = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -900,14 +900,14 @@ class wt {
900
900
  const vt = (t2, e2, s2) => {
901
901
  if (t2[0].value[0] === t2[1].value[0]) return e2;
902
902
  }, St = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, Ct = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (t2, h2) => {
903
- const { password: f2, onWarning: m2, createWorkbookOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./BR9YJuwMP9nTMBE-.mjs"), x2 = import("./CY1qC_sXGD6av4yO.mjs");
903
+ const { password: f2, onWarning: m2, createWorkbookOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./C-K2oA0Q20MmV5RC.mjs"), x2 = import("./DavolEdR41s-e_Fj.mjs");
904
904
  let w2 = null;
905
905
  try {
906
906
  w2 = new DOMParser();
907
907
  } catch (t3) {
908
908
  }
909
909
  let v2 = null;
910
- w2 || (v2 = import("./762kbapO408ejsVC.mjs").then((t3) => t3.i));
910
+ w2 || (v2 = import("./BmnB45A5Kcks8H37.mjs").then((t3) => t3.i));
911
911
  let S2 = null, C2 = null, k2 = null;
912
912
  try {
913
913
  const t3 = await Promise.all([b2, x2, v2]);
@@ -1316,7 +1316,7 @@ const vt = (t2, e2, s2) => {
1316
1316
  }, A2), a3 = ht(h4, P2), c3 = await (async (t6, e2 = 8388608) => {
1317
1317
  await (async () => {
1318
1318
  if ("undefined" == typeof ReadableStream) if ("undefined" == typeof window) {
1319
- const { ReadableStream: t7 } = await import("./CzWLA_IQgFbENkMq.mjs");
1319
+ const { ReadableStream: t7 } = await import("./iZ76esdFvFKIFxbE.mjs");
1320
1320
  globalThis.ReadableStream = t7;
1321
1321
  } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1322
1322
  })();
@@ -1421,7 +1421,7 @@ const vt = (t2, e2, s2) => {
1421
1421
  throw t3 instanceof p && (e2 = "Unable to open XLSX. There are too many rows or columns."), new Error(e2, { cause: t3 });
1422
1422
  }
1423
1423
  }, toBufferXLSX: async (s2, i2) => {
1424
- const o2 = await import("./BR9YJuwMP9nTMBE-.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
1424
+ const o2 = await import("./C-K2oA0Q20MmV5RC.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
1425
1425
  for (let i3 = 0; i3 < r2.sheets.length; i3++) {
1426
1426
  const a2 = r2.sheets[i3], l2 = o2.utils.json_to_sheet([{}]);
1427
1427
  o2.utils.book_append_sheet(n2, l2, a2.name);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -8,7 +8,7 @@ import { jsx as t } from "react/jsx-runtime";
8
8
  import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
9
9
  import { alpha as i, getOverlayAlpha as s } from "@mui/material/styles/index.js";
10
10
  import { Box as l, FormControl as r, TextField as p } from "@mui/material";
11
- import { P as c, x as m } from "./index.mjs";
11
+ import { P as c, a as m } from "./index.mjs";
12
12
  const u = ["Ok", "Cancel"], d = n((n2) => {
13
13
  const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...P } = n2, T = o(() => {
14
14
  const t2 = d2 ?? f?.()?.getComments();
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
6
6
  */
7
7
  import { e as t } from "./index.mjs";
8
- import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./B0gJGF9-J3L5yBEW.mjs";
8
+ import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./CtQxIh_WsWd2Iqtp.mjs";
9
9
  import { IFont as a, IAutoFilter as c, Sort as u, IRange as h, AddressUtils as p, IFill as g, IStyle as d, ITextFrame as m, FormulaError as b, IBorder as f } from "@sheetxl/sdk";
10
10
  class A {
11
11
  constructor(t2) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -9,33 +9,33 @@ import { memo as o, forwardRef as n, useState as a } from "react";
9
9
  import e from "clsx";
10
10
  import { alpha as i, getOverlayAlpha as p } from "@mui/material/styles/index.js";
11
11
  import { Box as r, FormControl as s, TextField as l } from "@mui/material";
12
- import { v as c, w as u, x as d } from "./index.mjs";
12
+ import { V as c, M as u, a as d } from "./index.mjs";
13
13
  const m = ["Input"], g = o(n((o2, n2) => {
14
- const { initialValue: g2 = "", onOption: f, onValidateOption: x, onInputOption: h, onValidateInputOption: y, onDone: O, inputProps: w, inputLabel: T, inputType: v, inputPlaceHolder: F, options: I = m, autoFocusSel: P = ".autoFocus", cancelOption: C, defaultOption: b = I?.[0], ...k } = o2, [V, j] = a(false), [D, B] = a(g2), [H, L] = a(""), [M, N] = a(true), S = c(async (t2, o3) => {
14
+ const { initialValue: g2 = "", onOption: f, onValidateOption: h, onInputOption: x, onValidateInputOption: y, onDone: O, inputProps: w, inputLabel: T, inputType: F, inputPlaceHolder: I, options: P = m, autoFocusSel: v = ".autoFocus", cancelOption: C, defaultOption: V = P?.[0], ...b } = o2, [k, j] = a(false), [D, M] = a(g2), [B, H] = a(""), [L, N] = a(true), S = c(async (t2, o3) => {
15
15
  if (!y) return true;
16
16
  const n3 = await y?.(t2, o3);
17
- L(n3?.message ?? "");
17
+ H(n3?.message ?? "");
18
18
  const a2 = n3?.valid ?? true;
19
19
  return N(a2), a2;
20
20
  }, [y]), $ = c(async (t2) => {
21
- h?.(D, t2);
22
- }, [D, h, O, f, C, b]), z = c(async (t2) => {
21
+ x?.(D, t2);
22
+ }, [D, x, O, f, C, V]), z = c(async (t2) => {
23
23
  t2.keyCode === u.Enter && await S?.(D, null);
24
24
  }, [D, $]), E = c((t2) => {
25
- B(t2.target.value), S?.(t2.target.value, null);
26
- }, [x]), K = c(async (t2) => {
25
+ M(t2.target.value), S?.(t2.target.value, null);
26
+ }, [h]), K = c(async (t2) => {
27
27
  let o3 = await S(D, t2);
28
28
  try {
29
29
  false !== o3 && (o3 = await S(D, t2));
30
30
  } catch (t3) {
31
31
  }
32
32
  return o3 ?? true;
33
- }, [D, x]);
34
- return t(d, { options: I, onDone: O, onOption: (t2, o3) => {
33
+ }, [D, h]);
34
+ return t(d, { options: P, onDone: O, onOption: (t2, o3) => {
35
35
  o3 || $(t2);
36
- }, onValidateOption: K, cancelOption: C, defaultOption: b, autoFocusSel: P, ref: n2, ...k, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0) }, children: t(s, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(l, { onFocus: (t2) => {
37
- V || t2.target?.select(), j(true);
38
- }, type: v, label: T, helperText: H || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5), color: M ? void 0 : "error.main" } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { placeholder: F, spellCheck: false, autoComplete: "off", ...w, className: e("autoFocus", w?.className), sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` } } }, value: D, onChange: E, onKeyDown: z, onContextMenu: (t2) => {
36
+ }, onValidateOption: K, cancelOption: C, defaultOption: V, autoFocusSel: v, ref: n2, ...b, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0) }, children: t(s, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(l, { onFocus: (t2) => {
37
+ k || t2.target?.select(), j(true);
38
+ }, type: F, label: T, helperText: B || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5), color: L ? void 0 : "error.main" } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { placeholder: I, spellCheck: false, autoComplete: "off", ...w, className: e("autoFocus", w?.className), sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` } } }, value: D, onChange: E, onKeyDown: z, onContextMenu: (t2) => {
39
39
  t2.stopPropagation();
40
40
  } }) }) }) });
41
41
  }));
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -8,7 +8,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
8
8
  import { useState as t } from "react";
9
9
  import { Box as i, FormControlLabel as o, Checkbox as l } from "@mui/material";
10
10
  import { Sort as r, IRange as a } from "@sheetxl/sdk";
11
- import { P as s, x as c } from "./index.mjs";
11
+ import { P as s, a as c } from "./index.mjs";
12
12
  const d = ({ range: d2, options: m, cell: p, onDone: h, ...u }) => {
13
13
  const [v, C] = t(m ?? r.DefaultRangeOptions), O = s((e2) => {
14
14
  let n2 = null;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
6
6
  */
7
7
  import { jsxs as e, jsx as t } from "react/jsx-runtime";
8
8
  import { Box as n, TextField as i, InputAdornment as o, IconButton as r, FormControlLabel as a, Checkbox as l, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
9
- import { e as h, z as p, a1 as m, A as u } from "./index.mjs";
9
+ import { e as h, T as p, n as m, z as u } from "./index.mjs";
10
10
  import g, { useState as f, useMemo as x, useEffect as b } from "react";
11
11
  import w from "clsx";
12
12
  import { alpha as y, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -7,13 +7,13 @@
7
7
  import { jsx as e, jsxs as n } from "react/jsx-runtime";
8
8
  import { memo as t, useState as a, useCallback as o } from "react";
9
9
  import { Box as i, FormControlLabel as l, Checkbox as s } from "@mui/material";
10
- import { P as r, x as p, RangeInput as c } from "./index.mjs";
10
+ import { P as r, a as p, RangeInput as c } from "./index.mjs";
11
11
  const d = ["Ok", "Cancel"], m = t((t2) => {
12
- const { tableOptions: m2, context: g, onOption: u, onValidateOption: x, onDone: f, options: h = d, defaultOption: O = h?.[0], cancelOption: b = "Cancel", sx: C, ...D } = t2, [N, T] = a(false), [j, k] = a(() => m2?.hasHeader ?? false), [v, w] = a(() => m2?.ranges ?? null), y = r((e2) => {
12
+ const { tableOptions: m2, context: g, onOption: u, onValidateOption: f, onDone: h, options: x = d, defaultOption: O = x?.[0], cancelOption: b = "Cancel", sx: C, ...D } = t2, [N, T] = a(false), [j, k] = a(() => m2?.hasHeader ?? false), [v, w] = a(() => m2?.ranges ?? null), y = r((e2) => {
13
13
  const n2 = { ...m2, hasHeader: j, ranges: v };
14
- u?.(e2, e2 === b, e2 === O), f?.({ option: e2, tableOptions: n2 });
15
- }, [f, u, O, b, j, v, m2]), F = o(async (e2, n2) => null, []);
16
- return e(p, { title: "Insert Table", options: h, onDone: y, onValidateOption: F, defaultOption: O, cancelOption: b, autoFocusSel: ".range-input input", sx: { width: "360px", ...C }, ...D, children: n(i, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [e(c, { formName: "range", value: v, onChangeInput: (e2) => w(e2), resolvedAddress: g.getNames().getRanges.bind(g.getNames()), onFocus: (e2) => {
14
+ u?.(e2, e2 === b, e2 === O), h?.({ option: e2, tableOptions: n2 });
15
+ }, [h, u, O, b, j, v, m2]), F = o(async (e2, n2) => null, []);
16
+ return e(p, { title: "Insert Table", options: x, onDone: y, onValidateOption: F, defaultOption: O, cancelOption: b, autoFocusSel: ".range-input input", sx: { width: "360px", ...C }, ...D, children: n(i, { sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(0), rowGap: (e2) => e2.spacing(1), display: "flex", flexDirection: "column" }, children: [e(c, { formName: "range", value: v, onChangeInput: (e2) => w(e2), resolvedAddress: g.getNames().getRanges.bind(g.getNames()), onFocus: (e2) => {
17
17
  N || e2.target?.select(), T(true);
18
18
  } }), e(l, { control: e(s, { checked: j, onChange: () => k(!j) }), label: "Table has headers", labelPlacement: "end" })] }) });
19
19
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.14
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.16
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.
@@ -8,51 +8,51 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
8
8
  import { memo as o, useState as n, useRef as a, useReducer as i, useMemo as l } from "react";
9
9
  import { useMeasure as s } from "react-use";
10
10
  import { DialogContent as r, Box as c } from "@mui/material";
11
- import { R as d, S as g, Z as m, P as p, A as h, NamedInput as u, RangeInput as x, d as f, TableStyleOptionsPanel as y, TableStylePreview as b, E as w, a as S, t as C, a0 as N } from "./index.mjs";
11
+ import { h as d, j as g, k as m, P as p, z as h, NamedInput as u, RangeInput as x, g as f, TableStyleOptionsPanel as y, TableStylePreview as b, m as w, b as S, t as C, U as N } from "./index.mjs";
12
12
  const v = o((o2) => {
13
- const { title: v2, onHide: R, autoFocusSel: T = ".range-input input", context: F, notifier: D = d, command: H, commands: B, ...I } = o2, [P, j] = n(false), [z, L] = n(false), E = a(null), [O, A] = i((e2) => e2 + 1, 0), [M, { width: V }] = s();
13
+ const { title: v2, onHide: R, autoFocusSel: T = ".range-input input", context: F, notifier: D = d, command: H, commands: j, ...B } = o2, [I, P] = n(false), [z, L] = n(false), O = a(null), [E, A] = i((e2) => e2 + 1, 0), [M, { width: k }] = s();
14
14
  g(H);
15
- const W = F ?? H.context(), Z = W.table(), [k, q] = n(() => Z ? W.getNames().getRanges(Z.getRange()) : null), G = l(() => Z?.getName() ?? "", [Z]);
16
- m(W.table(), { onAnchorCoordsChange(e2) {
17
- q(W.getNames().getRanges(e2.getRange()));
15
+ const U = F ?? H.context(), V = U.table(), [W, q] = n(() => V ? U.getNames().getRanges(V.getRange()) : null), G = l(() => V?.getName() ?? "", [V]);
16
+ m(U.table(), { onAnchorCoordsChange(e2) {
17
+ q(U.getNames().getRanges(e2.getRange()));
18
18
  }, onProtectedChange(e2) {
19
19
  A();
20
20
  } });
21
21
  const J = p((e2) => {
22
- W?.table().setName(e2);
23
- }, [W]), K = p((e2) => {
24
- W?.table().resize(e2.at(0));
25
- }, [W]);
22
+ U?.table().setName(e2);
23
+ }, [U]), K = p((e2) => {
24
+ U?.table().resize(e2.at(0));
25
+ }, [U]);
26
26
  let Q = null;
27
- return W.table() || (Q = e("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: e("div", { children: "No table selected" }) })), e(h, { ref: E, title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, onHide: R, onFocus: () => j(true), onBlur: (e2) => {
28
- E?.current?.contains(e2.relatedTarget) || j(false);
29
- }, PaperProps: { elevation: P ? 3 : 1 }, ...I, children: t(r, { dividers: true, ref: M, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: W.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(u, { formName: "name", defaultInput: G, value: Z?.getName() ?? "No table", onChangeInput: J, onValidate: (e2) => {
30
- Z && Z.getName().toLowerCase() === e2.toLowerCase() || W?.getNames().validateName(e2);
31
- }, disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
27
+ return U.table() || (Q = e("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: e("div", { children: "No table selected" }) })), e(h, { ref: O, title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, onHide: R, onFocus: () => P(true), onBlur: (e2) => {
28
+ O?.current?.contains(e2.relatedTarget) || P(false);
29
+ }, PaperProps: { elevation: I ? 3 : 1 }, ...B, children: t(r, { dividers: true, ref: M, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: U.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(u, { formName: "name", defaultInput: G, value: V?.getName() ?? "No table", onChangeInput: J, onValidate: (e2) => {
30
+ V && V.getName().toLowerCase() === e2.toLowerCase() || U?.getNames().validateName(e2);
31
+ }, disabled: V?.isProtected() ?? true, onFocus: (e2) => {
32
32
  z || e2.target?.select(), L(true);
33
- } }), e(x, { formName: "range", value: k, onChangeInput: K, resolvedAddress: W.getNames().getRanges.bind(W.getNames()), disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
33
+ } }), e(x, { formName: "range", value: W, onChangeInput: K, resolvedAddress: U.getNames().getRanges.bind(U.getNames()), disabled: V?.isProtected() ?? true, onFocus: (e2) => {
34
34
  z || e2.target?.select(), L(true);
35
- } })] }) }) }), t(c, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(f, { orientation: "horizontal", sx: { marginTop: (e2) => e2.spacing(1.5), marginBottom: (e2) => e2.spacing(0.75) } }), e(y, { disabled: Z?.isProtected(), styleOptions: Z?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
36
- Z.updateStyleOptions(e2);
37
- }, showHeaderRow: Z?.getShowHeaders(), onShowHeaderRowChange: (e2) => {
35
+ } })] }) }) }), t(c, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(f, { orientation: "horizontal", sx: { marginTop: (e2) => e2.spacing(1.5), marginBottom: (e2) => e2.spacing(0.75) } }), e(y, { disabled: V?.isProtected(), styleOptions: V?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
36
+ V.updateStyleOptions(e2);
37
+ }, showHeaderRow: V?.getShowHeaders(), onShowHeaderRowChange: (e2) => {
38
38
  try {
39
- Z.setShowHeaders(e2);
39
+ V.setShowHeaders(e2);
40
40
  } catch (e3) {
41
41
  D.showError(e3);
42
42
  }
43
- }, showTotalRow: Z?.getShowTotals(), onShowTotalRowChange: (e2) => {
43
+ }, showTotalRow: V?.getShowTotals(), onShowTotalRowChange: (e2) => {
44
44
  try {
45
- Z.setShowTotals(e2);
45
+ V.setShowTotals(e2);
46
46
  } catch (e3) {
47
47
  D.showError(e3);
48
48
  }
49
- }, showFilterButton: Z?.getFilter() ? Z.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
49
+ }, showFilterButton: V?.getFilter() ? V.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
50
50
  try {
51
- Z.setShowFilterButton(e2);
51
+ V.setShowFilterButton(e2);
52
52
  } catch (e3) {
53
53
  D.showError(e3);
54
54
  }
55
- } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(b, { table: Z, styles: W.styles(), bodyStyle: W.bodyStyle(), cellHeight: 30, isLive: true }) }), e(f, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(w, { variant: C.Menuitem, command: B.getCommand("convertTableToRange"), commandState: Z, icon: S(e(N, {})) }), e(w, { variant: C.Menuitem, commandState: Z, command: B.getCommand("deleteTable"), icon: S(e(N, {})) })] })] })] }), Q] }) });
55
+ } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(b, { table: V, styles: U.styles(), bodyStyle: U.bodyStyle(), cellHeight: 30, isLive: true }) }), e(f, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(w, { variant: C.Menuitem, command: j.getCommand("convertTableToRange"), commandState: V, icon: S(e(N, {})) }), e(w, { variant: C.Menuitem, commandState: V, command: j.getCommand("deleteTable"), icon: S(e(N, {})) })] })] })] }), Q] }) });
56
56
  });
57
57
  export {
58
58
  v as TableDetailsWindow,