@sheetxl/studio-mui 0.3.18 → 0.3.19

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 (79) hide show
  1. package/browser/cjs/{CYlWk3JZne2DVAvj.cjs → -Z_xfLHIzayq6e-C.cjs} +2 -2
  2. package/browser/cjs/{CMQnksVdFNTGCcuL.cjs → 5EMNCalBy5T7Qv40.cjs} +1 -1
  3. package/browser/cjs/{CTVwwijxWyTj1-To.cjs → B-i9az2r-j4BoodW.cjs} +1 -1
  4. package/browser/cjs/{Dt-_lF8cbqIQeFDT.cjs → B98cTi8NhLFwk-0Q.cjs} +2 -2
  5. package/browser/cjs/{tzUSfMyL4rscAPOw.cjs → BFe0zJbC0Wy4fqLf.cjs} +1 -1
  6. package/browser/cjs/{DtfIBBSWwGnFn5da.cjs → Bg1sVEitsy9Ktlo9.cjs} +1 -1
  7. package/browser/cjs/{BWJGFEIQCBdTEl6B.cjs → BsJ8nFqSJFJDsuan.cjs} +2 -2
  8. package/browser/cjs/{BkCmVm6sA_avib9h.cjs → BvCYlgtHsPgA_aNK.cjs} +2 -2
  9. package/browser/cjs/{CKF-dWfZku6ebHzj.cjs → ByHotNG2i_czKEr8.cjs} +2 -2
  10. package/browser/cjs/{AQdyOmNsNjlI3zZX.cjs → C-ElWpjJiAYCYYvU.cjs} +2 -2
  11. package/browser/cjs/{CJQdEaRRBvm3gCqh.cjs → C-oc8im_PZRCQOvZ.cjs} +1 -1
  12. package/browser/cjs/{Clxk_WuA_PRn6KW9.cjs → C645WCVpMGicXgBM.cjs} +1 -1
  13. package/browser/cjs/{ckZ4F6Ezl3aCnh5Z.cjs → CF_a0DpvEBsJCpgQ.cjs} +3 -3
  14. package/browser/cjs/CLJkEcejZPl006p2.cjs +87 -0
  15. package/browser/cjs/{2OSBl2r7IttrCdtA.cjs → COX8k8pyTOk8BoD-.cjs} +1 -1
  16. package/browser/cjs/{BNyVm7np2bfgLvot.cjs → CRV08682FzN5ew39.cjs} +3 -3
  17. package/browser/cjs/{B5eQzk5WyXy8IAA8.cjs → CTlLfk6a9CkzbQNt.cjs} +4 -4
  18. package/browser/cjs/{Dsf7iNkpZ-XRvkri.cjs → CUn6t8lfcG9cPH1h.cjs} +2 -2
  19. package/browser/cjs/{B1SUaFgnsimk42bG.cjs → D6E9xEe6tjbfqtEm.cjs} +2 -2
  20. package/browser/cjs/{BpriOx_ASGcmQgAv.cjs → D92iJHsZJX_wZ52_.cjs} +2 -2
  21. package/browser/cjs/{D6MmQYTV_-2r6TNA.cjs → DW0q0AyrJofzss0y.cjs} +4 -4
  22. package/browser/cjs/{BBB1d8xHkY7ltQWw.cjs → DggumD9iQqyO3FFa.cjs} +2 -2
  23. package/browser/cjs/{CvVjY72BJUTQvkkP.cjs → DkMBDN---q9jUa8V.cjs} +2 -2
  24. package/browser/cjs/{BLcValtf97N7iwR5.cjs → _dSiOxKU18SdUtnS.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{C6UymVKpB0f_aOz4.cjs → oyaxmxAEZ4VTVk_8.cjs} +1 -1
  27. package/browser/esm/{B9JJu0VnIIYWT5lt.mjs → 8JD53VBt79P-aa-S.mjs} +3 -3
  28. package/browser/esm/{dyvLjt-D32wPaGoj.mjs → B97bNoiD5vSlwEfq.mjs} +2 -2
  29. package/browser/esm/{wk6kyK0HvQWZcF9v.mjs → BB_9iof-6U8Cb15P.mjs} +6 -6
  30. package/browser/esm/{B-rFSfciMrAt40UW.mjs → BHegaWai1nWBR-L9.mjs} +1 -1
  31. package/browser/esm/{kag30q_f2OyzNEpu.mjs → BKhb4mVxGfN4CIjS.mjs} +1 -1
  32. package/browser/esm/{CHo7Pe-qLRr6D7Zb.mjs → BVzvMC6p5FNP8qK9.mjs} +12 -12
  33. package/browser/esm/{IW0FN0JJihUjmUhl.mjs → BbMrsjIGEkoLGak0.mjs} +2 -2
  34. package/browser/esm/{COZ6r5iZ8TyK00AP.mjs → Bi-5-fOHXnnsSVMH.mjs} +1 -1
  35. package/browser/esm/{DAABl4IjtZoiB_ZM.mjs → C4vC41vzQpD-qyMn.mjs} +2 -2
  36. package/browser/esm/{DWhxo1LUgYMKPIl6.mjs → C7UEqLxvuNIEbzcl.mjs} +8 -8
  37. package/browser/esm/{B_GtXHanCbWYSw3u.mjs → CJPeBWCN11PDgfKC.mjs} +1 -1
  38. package/browser/esm/{Bm90soyGjT9Iu1LC.mjs → CLRvr3EDwZwQGFld.mjs} +2 -2
  39. package/browser/esm/{DRnTwfoTxrtXBFC7.mjs → CTgZnJeqPNm0IneY.mjs} +1 -1
  40. package/browser/esm/{D85IfpCrfIBFDqe8.mjs → CUrgSndSnDCQKu6U.mjs} +2 -2
  41. package/browser/esm/{CvsYx4oxcqsUUtrr.mjs → CocO3lRUMqgv4AFJ.mjs} +1 -1
  42. package/browser/esm/{DivcgoJCzXwVgCcg.mjs → DLTm93l6QUeTWBtR.mjs} +12 -12
  43. package/browser/esm/{DOtIN-2juYEPtB8A.mjs → DNMEKvZSHupr35RK.mjs} +4 -4
  44. package/browser/esm/{D5U2mNtg-sHAxwUo.mjs → Dkm4CH9HTgLMuj1z.mjs} +1 -1
  45. package/browser/esm/{BQQcYbNIADI7dSX4.mjs → Dkqkg5OonmopX_av.mjs} +2 -2
  46. package/browser/esm/{DrGVTfUVlughL_d0.mjs → DsLBuFS0K1zRuAH4.mjs} +1 -1
  47. package/browser/esm/{Cbz-BdHkkb_IX1IO.mjs → Dsvtw0sJ8FRtGm5n.mjs} +3 -3
  48. package/browser/esm/{qnS7YH5ry4bwFwmH.mjs → WKwjqHXBabDyAtuT.mjs} +1 -1
  49. package/browser/esm/{BJiFVIVZgstircY0.mjs → g4yV8ILPtVwy8tG5.mjs} +9064 -8978
  50. package/browser/esm/index.mjs +16 -16
  51. package/browser/esm/{D7VfJjp49e_MDYZN.mjs → w-PhBfcFM6AZzwmU.mjs} +2 -2
  52. package/browser/esm/{CvzuJmImMn0DC78K.mjs → zHTatrVtfVuPg1ii.mjs} +40 -40
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{DNg39nLT0gHqmPlz.mjs → BB6SV3cXsfTqodbb.mjs} +1 -1
  55. package/node/esm/{DwU05hEZ7gmV6D81.mjs → Bp-CJA_tLpQ7pT29.mjs} +2 -2
  56. package/node/esm/{D37x0J7Pp7Ovk7U6.mjs → C06YIVEYQuR5Vaft.mjs} +1 -1
  57. package/node/esm/{Bjq64rdekFLv2Pk6.mjs → CCl1udn2B2Ht6C3g.mjs} +10 -10
  58. package/node/esm/{DCqwwPMoosi5CmNI.mjs → Ck6HJccOiajom0p5.mjs} +27 -27
  59. package/node/esm/{Bt5SOQDsxPC-egr0.mjs → Cnz7_lvzqMqQs08b.mjs} +5 -5
  60. package/node/esm/{2eYi7rphLL5H13FB.mjs → CvIwaInnb5xT75rt.mjs} +1 -1
  61. package/node/esm/{qTHmpgXiWFDs-DpN.mjs → D1cFV6R_lGB3yi1w.mjs} +1 -1
  62. package/node/esm/{BKWvOu_IeRMuC8Xk.mjs → D2h4VPChcK5U-a0T.mjs} +2 -2
  63. package/node/esm/{BMwY3wpsb5LC-oha.mjs → D7jQWNfNldioygd-.mjs} +1 -1
  64. package/node/esm/{DET5hZx0KEr6Xvkf.mjs → DHqKiBp0YDn-rVWv.mjs} +2 -2
  65. package/node/esm/{SDYCTfAbHCT1NUVT.mjs → DTiWaGbGjtZCRAj0.mjs} +7 -7
  66. package/node/esm/{DZTAP_s1UBqFpZWn.mjs → DX4vRmhbc53oBNeg.mjs} +1 -1
  67. package/node/esm/{CfC4Y9itv3zxli6a.mjs → DbrD7HDgNfqUmzdP.mjs} +1 -1
  68. package/node/esm/{CkG4RfZYIEpgMYHF.mjs → DoRbSUaOrfZffDc4.mjs} +84 -84
  69. package/node/esm/{BTyx75rKO81NBrpD.mjs → RfwcTEhVvbPAxFAu.mjs} +2 -2
  70. package/node/esm/{CVcSQEeEQOVzGI-N.mjs → Xa5E_4nSt8LVXkNA.mjs} +1 -1
  71. package/node/esm/{C-K5UNI5JYn9db2u.mjs → Ya3wztkbwM47CwJy.mjs} +5 -5
  72. package/node/esm/{hYDFyrnl76Q8TbVg.mjs → acSFCnnB-d3FV6qe.mjs} +3 -3
  73. package/node/esm/{DyLBbEMRFc3oCumP.mjs → bozut2iu1gZ26NCH.mjs} +2 -2
  74. package/node/esm/index.mjs +3986 -3887
  75. package/node/esm/{CN_9EpYFfSahI0tk.mjs → lx40ksuj0iGDMKDe.mjs} +27 -27
  76. package/node/esm/{BwhDUQgAy49WUvzS.mjs → tcog-VptibIIj9kW.mjs} +4 -4
  77. package/node/esm/{DOyVcSa6UGUQpjJ8.mjs → uHvMtxBHa3ohbrOl.mjs} +12 -12
  78. package/package.json +8 -8
  79. package/browser/cjs/B50pi_DZlxL44FZa.cjs +0 -87
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.18
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
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, Y as g, $ as m, P as p, H as h, NamedInput as u, RangeInput as x, p as f, TableStyleOptionsPanel as y, TableStylePreview as b, Z as w, q as S, t as C, a0 as N } from "./index.mjs";
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";
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), O = a(null), [E, A] = i((e2) => e2 + 1, 0), [M, { width: W }] = s();
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: W }] = s();
14
14
  g(H);
15
- const q = F ?? H.context(), V = q.table(), [Y, Z] = n(() => V ? q.getNames().getRanges(V.getRange()) : null), $ = l(() => V?.getName() ?? "", [V]);
16
- m(q.table(), { onAnchorCoordsChange(e2) {
17
- Z(q.getNames().getRanges(e2.getRange()));
15
+ const V = F ?? H.context(), Z = V.table(), [k, q] = n(() => Z ? V.getNames().getRanges(Z.getRange()) : null), G = l(() => Z?.getName() ?? "", [Z]);
16
+ m(V.table(), { onAnchorCoordsChange(e2) {
17
+ q(V.getNames().getRanges(e2.getRange()));
18
18
  }, onProtectedChange(e2) {
19
19
  A();
20
20
  } });
21
- const k = p((e2) => {
22
- q?.table().setName(e2);
23
- }, [q]), G = p((e2) => {
24
- q?.table().resize(e2.at(0));
25
- }, [q]);
26
- let J = null;
27
- return q.table() || (J = 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, { title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, refWindow: O, onHide: R, onFocus: () => j(true), onBlur: (e2) => {
28
- O?.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: q.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: $, value: V?.getName() ?? "No table", onChangeInput: k, onValidate: (e2) => {
30
- V && V.getName().toLowerCase() === e2.toLowerCase() || q?.getNames().validateName(e2);
31
- }, disabled: V?.isProtected() ?? true, onFocus: (e2) => {
21
+ const J = p((e2) => {
22
+ V?.table().setName(e2);
23
+ }, [V]), K = p((e2) => {
24
+ V?.table().resize(e2.at(0));
25
+ }, [V]);
26
+ let Q = null;
27
+ return V.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, { title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, refWindow: E, 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: V.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() || V?.getNames().validateName(e2);
31
+ }, disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
32
32
  z || e2.target?.select(), L(true);
33
- } }), e(x, { formName: "range", value: Y, onChangeInput: G, resolvedAddress: q.getNames().getRanges.bind(q.getNames()), disabled: V?.isProtected() ?? true, onFocus: (e2) => {
33
+ } }), e(x, { formName: "range", value: k, onChangeInput: K, resolvedAddress: V.getNames().getRanges.bind(V.getNames()), disabled: Z?.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: V?.isProtected(), styleOptions: V?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
36
- V.updateStyleOptions(e2);
37
- }, showHeaderRow: V?.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: Z?.isProtected(), styleOptions: Z?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
36
+ Z.updateStyleOptions(e2);
37
+ }, showHeaderRow: Z?.getShowHeaders(), onShowHeaderRowChange: (e2) => {
38
38
  try {
39
- V.setShowHeaders(e2);
39
+ Z.setShowHeaders(e2);
40
40
  } catch (e3) {
41
41
  D.showError(e3);
42
42
  }
43
- }, showTotalRow: V?.getShowTotals(), onShowTotalRowChange: (e2) => {
43
+ }, showTotalRow: Z?.getShowTotals(), onShowTotalRowChange: (e2) => {
44
44
  try {
45
- V.setShowTotals(e2);
45
+ Z.setShowTotals(e2);
46
46
  } catch (e3) {
47
47
  D.showError(e3);
48
48
  }
49
- }, showFilterButton: V?.getFilter() ? V.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
49
+ }, showFilterButton: Z?.getFilter() ? Z.getShowFilterButton() : null, onShowFilterButtonChange: (e2) => {
50
50
  try {
51
- V.setShowFilterButton(e2);
51
+ Z.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: V, styles: q.styles(), bodyStyle: q.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: V, icon: S(e(N, {})) }), e(w, { variant: C.Menuitem, commandState: V, command: B.getCommand("deleteTable"), icon: S(e(N, {})) })] })] })] }), J] }) });
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: V.styles(), bodyStyle: V.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] }) });
56
56
  });
57
57
  export {
58
58
  v as TableDetailsWindow,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.18
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
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, T as h, o as C } from "./index.mjs";
12
+ import { P as x, z as h, x 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), [N, z] = 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), [z, N] = 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
- N || e2.target?.select(), z(true);
46
+ z || e2.target?.select(), N(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,30 +1,30 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.18
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
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 r, IconButton as o, FormControlLabel as a, Checkbox as l, Typography as d, TableCell as s, DialogContent as c } from "@mui/material";
9
- import { e as h, T as p, a1 as m, H as u } from "./index.mjs";
9
+ import { e as h, z as p, a1 as m, A as u } from "./index.mjs";
10
10
  import g, { useState as f, useMemo as x, useEffect as b } from "react";
11
11
  import y from "clsx";
12
12
  import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
13
13
  import { Close as k } from "@mui/icons-material";
14
14
  import { AutoSizer as v, Table as $, Column as D } from "react-virtualized";
15
- const z = "ReactVirtualizedDemo-flexContainer", H = "ReactVirtualizedDemo-tableRow", I = "ReactVirtualizedDemo-tableRowHover", K = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
15
+ const z = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", K = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
16
16
  class N extends g.PureComponent {
17
17
  constructor() {
18
18
  super(...arguments), this.getRowClassName = ({ index: e2 }) => {
19
19
  const { onRowClick: t2 } = this.props;
20
- return y(H, z, { [I]: -1 !== e2 && null != t2 });
20
+ return y(I, z, { [K]: -1 !== e2 && null != t2 });
21
21
  }, this.cellRenderer = ({ cellData: e2, columnIndex: n2, dataKey: i2 }) => {
22
22
  const { columns: r2, rowHeight: o2, onRowClick: a2 } = this.props;
23
23
  let l2 = e2, d2 = { height: o2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
24
- return "shortcut" === i2 ? l2 = m(e2) : "description" === i2 && (d2 = { ...d2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: y(K, z, { [S]: null == a2 }), variant: "body", style: d2, align: null != n2 && r2[n2].numeric ? "right" : "left", children: l2 });
24
+ return "shortcut" === i2 ? l2 = m(e2) : "description" === i2 && (d2 = { ...d2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: y(H, z, { [S]: null == a2 }), variant: "body", style: d2, align: null != n2 && r2[n2].numeric ? "right" : "left", children: l2 });
25
25
  }, this.headerRenderer = ({ label: e2, columnIndex: n2 }) => {
26
26
  const { headerHeight: i2, columns: r2 } = this.props;
27
- return t(s, { component: "div", className: y(K, z, S), variant: "head", sx: { height: i2, backgroundColor: (e3) => e3.palette.grey[300] }, align: r2[n2].numeric ? "right" : "left", children: t("span", { children: e2 }) });
27
+ return t(s, { component: "div", className: y(H, z, S), variant: "head", sx: { height: i2, backgroundColor: (e3) => e3.palette.grey[300] }, align: r2[n2].numeric ? "right" : "left", children: t("span", { children: e2 }) });
28
28
  };
29
29
  }
30
30
  static {
@@ -38,7 +38,7 @@ class N extends g.PureComponent {
38
38
  }) }) });
39
39
  }
40
40
  }
41
- const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${H}`]: { cursor: "pointer" }, [`& .${I}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${K}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
41
+ const T = C(N)(({ theme: e2 }) => ({ "& .ReactVirtualized__Table__headerRow": { ..."rtl" === e2.direction && { paddingLeft: "0 !important" }, ..."rtl" !== e2.direction && { paddingRight: void 0 } }, "& .ReactVirtualized__Table__Grid": { outline: "none" }, [`& .${z}`]: { display: "flex", alignItems: "center", boxSizing: "border-box" }, [`& .${I}`]: { cursor: "pointer" }, [`& .${K}`]: { "&:hover:not([disabled])": { backgroundColor: e2.palette.grey[200] } }, [`& .${H}`]: { flex: 1 }, [`& .${S}`]: { cursor: "initial" } }));
42
42
  function _(s2) {
43
43
  const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [y2, C2] = f(""), v2 = x(() => {
44
44
  let e2 = c2.getAllCommands();
@@ -58,22 +58,22 @@ function _(s2) {
58
58
  D2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
59
59
  });
60
60
  }, [v2]);
61
- const [z2, H2] = f(v2), I2 = y2.length > 0 && 0 === z2.length;
61
+ const [z2, I2] = f(v2), K2 = y2.length > 0 && 0 === z2.length;
62
62
  b(() => {
63
63
  $2 && h.debounce(() => {
64
- if (0 === y2.trim().length) return void H2(v2);
64
+ if (0 === y2.trim().length) return void I2(v2);
65
65
  const e2 = $2.search(y2.trim()), t2 = new Array(e2.length);
66
66
  for (let n2 = 0; n2 < e2.length; n2++) t2[n2] = e2[n2].item;
67
- H2(t2);
67
+ I2(t2);
68
68
  }, 90)();
69
69
  }, [$2, y2]);
70
- return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(r, { sx: { opacity: y2.length > 0 ? 1 : 0, display: y2.length > 0 ? "flex" : "none" }, position: "end", children: t(o, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => I2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => I2 ? `${e2.palette.error.main} !important` : void 0 } }, value: y2, onChange: (e2) => {
70
+ return e(n, { style: { height: 440, width: "100%", display: "flex", flexDirection: "column" }, ...m2, children: [e(n, { sx: { display: "flex", alignItems: "center", justifyContent: "end", marginBottom: (e2) => e2.spacing(2), color: (e2) => e2.palette.text.secondary }, children: [t(i, { InputProps: { sx: { backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` }, inputProps: { className: "input", autoFocus: true, spellCheck: false, placeholder: "Type to search key bindings", autoComplete: "off", sx: { paddingTop: (e2) => e2.spacing(1), paddingBottom: (e2) => e2.spacing(1) } }, endAdornment: t(r, { sx: { opacity: y2.length > 0 ? 1 : 0, display: y2.length > 0 ? "flex" : "none" }, position: "end", children: t(o, { "aria-label": "clear search", onClick: () => C2(""), edge: "end", children: t(k, {}) }) }) }, sx: { flex: "1 1 40%", marginRight: (e2) => e2.spacing(1), "& .MuiOutlinedInput-notchedOutline": { borderColor: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 } }, value: y2, onChange: (e2) => {
71
71
  C2(e2.target.value);
72
72
  }, onKeyDown: (e2) => {
73
73
  e2.which === p.Escape && y2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
74
74
  }, onContextMenu: (e2) => {
75
75
  e2.stopPropagation();
76
- } }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(n, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => I2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === z2.length ? "No" : z2.length} shortcut key${1 === z2.length ? "" : "s"}${y2.length > 0 ? " found" : ""}` }) })] });
76
+ } }), t(a, { sx: { flex: "1 1 60%" }, control: t(l, { checked: u2, onChange: () => g2(!u2) }), label: "Show commands without key bindings", labelPlacement: "start" })] }), t(n, { sx: { flex: "1 1 100%", borderRadius: (e2) => `${e2.shape.borderRadius}px`, border: (e2) => `solid ${e2.palette.divider} 1px`, paddingRight: "1px", overflow: "hidden", "* .MuiTableCell-head": { background: (e2) => e2.palette.background.paper, backgroundImage: `linear-gradient(${w("#fff", R(5))}, ${w("#fff", R(5))})` } }, children: t(T, { rowCount: z2.length, rowGetter: (e2) => z2[e2.index], columns: [{ width: 180, label: "Command", dataKey: "label" }, { width: 260, label: "Key Binding", dataKey: "shortcut" }, { width: 240, label: "Description", dataKey: "description", widthLess: 440 }] }) }), t(n, { sx: { display: "flex", flexShrink: "0", paddingLeft: (e2) => e2.spacing(1), paddingTop: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1), userSelect: "none", justifyContent: "flex-end" }, children: t(d, { noWrap: true, component: "div", sx: { color: (e2) => K2 ? e2.palette.error.main : e2.palette.text.secondary }, children: `${0 === z2.length ? "No" : z2.length} shortcut key${1 === z2.length ? "" : "s"}${y2.length > 0 ? " found" : ""}` }) })] });
77
77
  }
78
78
  const P = (e2) => {
79
79
  const { title: n2 = "Shortcut Keys", commands: i2, sx: r2, ...o2 } = e2;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-mui",
3
3
  "description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
4
- "version": "0.3.18",
4
+ "version": "0.3.19",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,12 +36,12 @@
36
36
  "charting"
37
37
  ],
38
38
  "dependencies": {
39
- "@sheetxl/grid-react": "^0.3.18",
40
- "@sheetxl/io": "^0.3.18",
41
- "@sheetxl/react": "^0.3.18",
42
- "@sheetxl/utils": "^0.3.18",
43
- "@sheetxl/utils-mui": "^0.3.18",
44
- "@sheetxl/utils-react": "^0.3.18",
39
+ "@sheetxl/grid-react": "^0.3.19",
40
+ "@sheetxl/io": "^0.3.19",
41
+ "@sheetxl/react": "^0.3.19",
42
+ "@sheetxl/utils": "^0.3.19",
43
+ "@sheetxl/utils-mui": "^0.3.19",
44
+ "@sheetxl/utils-react": "^0.3.19",
45
45
  "clsx": "^2.1.1",
46
46
  "csstype": "^3.1.3",
47
47
  "file-saver": "^2.0.5",
@@ -59,7 +59,7 @@
59
59
  "tinycolor2": "^1.6.0"
60
60
  },
61
61
  "peerDependencies": {
62
- "@sheetxl/sdk": "^0.3.18",
62
+ "@sheetxl/sdk": "^0.3.19",
63
63
  "@emotion/cache": "^11.14.0",
64
64
  "@emotion/react": "^11.14.0",
65
65
  "@emotion/styled": "^11.14.0",