@sheetxl/studio-mui 0.4.5 → 0.4.7

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 (81) hide show
  1. package/browser/cjs/{DcOKxRUGPl1EKOky.cjs → 6ahm9L_JadTVTVKM.cjs} +2 -2
  2. package/browser/cjs/{BymAYOgxh7YfSOjZ.cjs → B5H9gNIHdOkSXNhX.cjs} +1 -1
  3. package/browser/cjs/{DVSidmYgUkxX2ueA.cjs → BULArqiBp4j5hxyx.cjs} +1 -1
  4. package/browser/cjs/{BJYhy7YWM6sTsqKZ.cjs → BbvqKmxn6Rum-bk6.cjs} +3 -3
  5. package/browser/cjs/{Cd8MKuu6ELZbvJbi.cjs → Bi9ti1geH1gSoYX2.cjs} +2 -2
  6. package/browser/cjs/{BaKZcH9wcbRhVw4o.cjs → BnHBKznz1O8QEPEE.cjs} +2 -2
  7. package/browser/cjs/{GGmaplPK7Zk9e3N3.cjs → Bt1aI3vb7h-PM53z.cjs} +2 -2
  8. package/browser/cjs/{Bh4tdRz0J7H_jYH4.cjs → C0rgKqf5wJGFF0Pn.cjs} +2 -2
  9. package/browser/cjs/{CiZu-6d3YvYggtxe.cjs → CArewr_CDpxiRR66.cjs} +1 -1
  10. package/browser/cjs/{Dl_ilZPkvYPPBl31.cjs → CmX_3VyTiwTzdJhI.cjs} +2 -2
  11. package/browser/cjs/{DGJWxp0HJgCNpYdq.cjs → CnIoJa4rGjDIRDt_.cjs} +1 -1
  12. package/browser/cjs/{CI4ZsWHCUPO-Yc8E.cjs → CxMQIx_-k_XCclct.cjs} +7 -7
  13. package/browser/cjs/{BgCUaJbkHxxGDurF.cjs → CzHIyuIwxVQd9I_P.cjs} +2 -2
  14. package/browser/cjs/D0g5Yi1sFZedrm8U.cjs +12 -0
  15. package/browser/cjs/{D_jzXwmcJUUYJ3AJ.cjs → D2F5d-KqoX6K87V-.cjs} +2 -2
  16. package/browser/cjs/{0k43wULenX9-4E3W.cjs → D5hBXjLlXQHJlC_R.cjs} +1 -1
  17. package/browser/cjs/{7K9DKOPmkc0ahe4L.cjs → DFkeNYQoyIagEEQ9.cjs} +2 -2
  18. package/browser/cjs/{Bekd9QK-wmQD1oSX.cjs → DK6e7OLzcRQFuNAR.cjs} +1 -1
  19. package/browser/cjs/{BJ4hk5u3jq_jvi6r.cjs → DQRGxRYSOKOEByUm.cjs} +2 -2
  20. package/browser/cjs/{7EOboR0_yZHfChip.cjs → ZmZmJzyx8f56di-3.cjs} +4 -4
  21. package/browser/cjs/{DET3k4IxX4djF12n.cjs → iEu_JcRmrN7o_Gnt.cjs} +4 -4
  22. package/browser/cjs/index.cjs +2 -2
  23. package/browser/cjs/{DWgSD-85yW36Trz_.cjs → ojTdNwa8dIIVVsYa.cjs} +1 -1
  24. package/browser/cjs/{DJZauuJWVh3O_p9W.cjs → sia-JpDs1OJx3UqA.cjs} +1 -1
  25. package/browser/cjs/{D3iVlqwelc9NxH76.cjs → x0gHCGm4Ua404wtj.cjs} +2 -2
  26. package/browser/cjs/{BCwowJk19DFY2D0C.cjs → x5DxzBmBRyolQW8p.cjs} +2 -2
  27. package/browser/esm/{BPRf0S5yFQwoXgX1.mjs → 54Y6CqDofk0Ryz8B.mjs} +3 -3
  28. package/browser/esm/{DZk6oVtO8i8y8yS5.mjs → B5ZVjFCvGZMlskn5.mjs} +2 -2
  29. package/browser/esm/{Bzkny3oLz10L72wv.mjs → BQoEwYUY9khnxsGk.mjs} +4 -4
  30. package/browser/esm/{gxrgNVsV9CWHHib4.mjs → BRio-IBtU98oZf5v.mjs} +1 -1
  31. package/browser/esm/{C2bRE8uxdUhbKsGW.mjs → BSQXNtEzcvD1nZ07.mjs} +9 -9
  32. package/browser/esm/{BXwdRAmotNPrKALN.mjs → BUxotxJXTYkCxXGj.mjs} +1 -1
  33. package/browser/esm/{Beus_iaRQ-eqIoDC.mjs → BadcJIpfDDb6Oula.mjs} +1 -1
  34. package/browser/esm/{C-hARo0PMBmVHd0d.mjs → BgQK3a-xYWlmvNDD.mjs} +2 -2
  35. package/browser/esm/{Isc6v1_2yQzeflLf.mjs → C2ogJhUgj6tBd2Ze.mjs} +2 -2
  36. package/browser/esm/{bobnzGH0nDG_21Tp.mjs → CAgqX2BO2DbnSbS0.mjs} +2 -2
  37. package/browser/esm/{D0Nt1satW6k7mP5-.mjs → CIEN20sJj9GKW3yE.mjs} +1 -1
  38. package/browser/esm/CJ46XJddcTe9sn3Q.mjs +84 -0
  39. package/browser/esm/{BWtI85xpHMZg9A__.mjs → CMiuTssM0lBVhuJS.mjs} +6 -6
  40. package/browser/esm/{jHzsIT9kGJfBtfCb.mjs → CRCvnu8AKE7fJq05.mjs} +2 -2
  41. package/browser/esm/{iOcrx9x6_2wDWz5P.mjs → CevfhoT-xtAPuMWS.mjs} +2 -2
  42. package/browser/esm/{izKn7IDT6RLNjtFM.mjs → D0TAETGiUzsAjxPY.mjs} +3 -3
  43. package/browser/esm/{8j8b-TiiLTYrzWj2.mjs → D3DJPz0louDEmOOg.mjs} +2 -2
  44. package/browser/esm/{B0TmFyi1wgdqnIKF.mjs → DBhNx8LLdmzo5Avs.mjs} +2 -2
  45. package/browser/esm/{20CJaHSrAyl3gWbs.mjs → DHsxjQ98xXj3tRTJ.mjs} +1 -1
  46. package/browser/esm/{DxBnnLQJa0rUpUyP.mjs → DJJZ-Mz0hVMWcKq8.mjs} +2 -2
  47. package/browser/esm/{C8Na4XeCIsn9uy2e.mjs → DXbciCQNKY4_r5Et.mjs} +1 -1
  48. package/browser/esm/{J1bQUDHoP-lK2WRT.mjs → Ip_kfHi5bomcrUk6.mjs} +1 -1
  49. package/browser/esm/{D8gmckkSFTjL3qb4.mjs → PjZRDfcmhPXxjS2K.mjs} +1 -1
  50. package/browser/esm/index.mjs +2 -2
  51. package/browser/esm/{DQtqZhtOmsX7dXTH.mjs → vs0v9un-v2S9Jnlo.mjs} +12 -12
  52. package/browser/esm/{CK4r4rnvVXTIg7UV.mjs → ww-U-PglTS7Dtu3g.mjs} +2 -2
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{DxSZq-S7zf2qDuSj.mjs → 1YvclnJ1eNd7ibD-.mjs} +1 -1
  55. package/node/esm/{D145CyqvrVApXU_9.mjs → BK_IZrqK3_Xz2rfA.mjs} +1 -1
  56. package/node/esm/{ljm-GD9VeBXw4U_k.mjs → B_-60k30GZTVFJCG.mjs} +1 -1
  57. package/node/esm/{BYc4stxaG1DuiCDz.mjs → BcfUxPgXAV1if9NT.mjs} +1 -1
  58. package/node/esm/{DiBsi8erKZjh_pGl.mjs → BdwO--U2p6MiyekK.mjs} +1 -1
  59. package/node/esm/{DmBia0KUla7kX1f6.mjs → BeiZhSUAA8NyCua8.mjs} +1 -1
  60. package/node/esm/{BfAeEhV_QOZsLFo_.mjs → BkzwNHPzd0DSf0FL.mjs} +3 -3
  61. package/node/esm/{CZZqwKrVWqnJBi2h.mjs → BlIGyiGNQyArtF2L.mjs} +3 -3
  62. package/node/esm/{CUIKc96CjKRfKUwf.mjs → C-WOcvkTBKxqQfEZ.mjs} +1 -1
  63. package/node/esm/{D5PqPsdhcweS6d-S.mjs → C2SG9zLSqOGo3vCR.mjs} +5 -5
  64. package/node/esm/{DltdYyle0dXOkq2e.mjs → CJhxYk5D_7vcD7QG.mjs} +1 -1
  65. package/node/esm/{DJ2xxD8ydjT7dgME.mjs → CTgcSkLGEwSlcrWM.mjs} +1 -1
  66. package/node/esm/{CVqPY-7x1_FM5ePT.mjs → CVheJHEYC7Bxc-m9.mjs} +1 -1
  67. package/node/esm/{BOPG_y2E_U7Zmz3C.mjs → CiFa6r-hL-KsSx0I.mjs} +1 -1
  68. package/node/esm/{PaKUKGplLQ9iDcXB.mjs → ClSJpKVPQuTKvJtg.mjs} +1 -1
  69. package/node/esm/{D-j6Cnul4WYLrBJp.mjs → D9INCGl89jNGldla.mjs} +30 -30
  70. package/node/esm/{BHtk9vh1IRhSI2nA.mjs → DEtck55hesGlXNoj.mjs} +1 -1
  71. package/node/esm/{X3CwnhgfYH3ahCww.mjs → DKqYePntZxW3fh6x.mjs} +1 -1
  72. package/node/esm/{BqMDdfZBIBo6NXQ0.mjs → DQfxpSzOhUDp1tes.mjs} +1 -1
  73. package/node/esm/{CKXJufnx1aYWTu4H.mjs → DW9fZUq5TEVyK05B.mjs} +1 -1
  74. package/node/esm/{BmeHSoA74gY5GrEY.mjs → HAKu1GEoK2wZht5-.mjs} +2 -2
  75. package/node/esm/RPVynz_rpfz9lkAQ.mjs +78 -0
  76. package/node/esm/index.mjs +8 -8
  77. package/node/esm/{tQdiaDYqRQRRAP8j.mjs → xQKjfFNNUiXBnIeG.mjs} +1 -1
  78. package/package.json +8 -8
  79. package/browser/cjs/DGrodABt0g3oxPhV.cjs +0 -12
  80. package/browser/esm/Iv4LuFD6ZWIXhI1s.mjs +0 -84
  81. package/node/esm/BPxKz-jkIzLKNmPv.mjs +0 -78
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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
- 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";
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
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
- import y from "clsx";
12
- import { alpha as w, getOverlayAlpha as R, styled as C } from "@mui/material/styles/index.js";
11
+ import w from "clsx";
12
+ import { alpha as y, 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
15
  const z = "ReactVirtualizedDemo-flexContainer", I = "ReactVirtualizedDemo-tableRow", K = "ReactVirtualizedDemo-tableRowHover", H = "ReactVirtualizedDemo-tableCell", S = "ReactVirtualizedDemo-noClick";
@@ -17,39 +17,39 @@ 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(I, z, { [K]: -1 !== e2 && null != t2 });
21
- }, this.cellRenderer = ({ cellData: e2, columnIndex: n2, dataKey: i2 }) => {
22
- const { columns: r2, rowHeight: o2, onRowClick: a2 } = this.props;
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(H, z, { [S]: null == a2 }), variant: "body", style: d2, align: null != n2 && r2[n2].numeric ? "right" : "left", children: l2 });
25
- }, this.headerRenderer = ({ label: e2, columnIndex: n2 }) => {
26
- const { headerHeight: i2, columns: r2 } = this.props;
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 }) });
20
+ return w(I, z, { [K]: -1 !== e2 && null != t2 });
21
+ }, this.cellRenderer = ({ cellData: e2, dataKey: n2, columnIndex: i2, width: o2 }) => {
22
+ const { columns: r2, rowHeight: a2, onRowClick: l2 } = this.props;
23
+ let d2 = e2, c2 = { height: a2, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${o2}px`, maxWidth: `${o2}px` };
24
+ return "shortcut" === n2 ? d2 = m(e2) : "description" === n2 && (c2 = { ...c2, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), t(s, { component: "div", className: w(H, z, { [S]: null == l2 }), variant: "body", style: c2, align: null != i2 && r2[i2].numeric ? "right" : "left", children: d2 });
25
+ }, this.headerRenderer = ({ label: e2, columnIndex: n2, width: i2 }) => {
26
+ const { headerHeight: o2, columns: r2 } = this.props, a2 = r2[n2];
27
+ return t(s, { component: "div", className: w(H, z, S), variant: "head", sx: { width: i2, height: o2, backgroundColor: (e3) => e3.palette.grey[300] }, align: a2.numeric ? "right" : "left", children: t("span", { children: a2.label }) });
28
28
  };
29
29
  }
30
30
  static {
31
31
  this.defaultProps = { headerHeight: 40, rowHeight: 48 };
32
32
  }
33
33
  render() {
34
- const { columns: e2, rowHeight: n2, headerHeight: i2, ...r2 } = this.props;
35
- return t(v, { children: ({ height: o2, width: a2 }) => t($, { height: o2, width: a2, rowHeight: n2, gridStyle: { direction: "inherit" }, headerHeight: i2, ...r2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: n3, widthLess: i3, ...r3 }, o3) => {
34
+ const { columns: e2, rowHeight: n2, headerHeight: i2, ...o2 } = this.props;
35
+ return t(v, { children: ({ height: r2, width: a2 }) => t($, { height: r2, width: a2, rowHeight: n2, gridStyle: { direction: "inherit" }, headerHeight: i2, ...o2, rowClassName: this.getRowClassName, children: e2.map(({ dataKey: e3, width: n3, widthLess: i3, ...o3 }, r3) => {
36
36
  const l2 = i3 ? a2 - i3 : n3;
37
- return t(D, { headerRenderer: (e4) => this.headerRenderer({ ...e4, columnIndex: o3 }), className: z, cellRenderer: this.cellRenderer, dataKey: e3, width: l2, ...r3 }, e3);
37
+ return t(D, { style: { flex: `1 1 ${l2}px` }, headerRenderer: (e4) => this.headerRenderer({ ...e4, width: l2, columnIndex: r3 }), className: z, cellDataGetter: ({ rowData: e4, columnData: t2, dataKey: n4 }) => e4[n4], cellRenderer: (e4) => this.cellRenderer({ ...e4, width: l2, columnIndex: r3 }), dataKey: e3, width: l2, ...o3 }, e3);
38
38
  }) }) });
39
39
  }
40
40
  }
41
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
- const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [y2, C2] = f(""), v2 = x(() => {
43
+ const { commands: c2, ...m2 } = s2, [u2, g2] = f(false), [w2, C2] = f(""), v2 = x(() => {
44
44
  let e2 = c2.getAllCommands();
45
45
  u2 || (e2 = e2.filter((e3) => e3.command.shortcut())), e2.sort((e3, t3) => e3.command.label().localeCompare(t3.command.label()));
46
46
  const t2 = [], n2 = (e3) => e3.replace(/\n\n/g, "\n");
47
47
  for (let i2 = 0; i2 < e2.length; i2++) {
48
- const r2 = e2[i2].command, o2 = r2.shortcut();
49
- if (Array.isArray(o2)) {
50
- const e3 = o2;
51
- for (let i3 = 0; i3 < e3.length; i3++) t2.push({ label: r2.label(), description: n2(r2.description()), shortcut: e3[i3] });
52
- } else t2.push({ label: r2.label(), description: n2(r2.description()), shortcut: r2.shortcut() });
48
+ const o2 = e2[i2].command, r2 = o2.shortcut();
49
+ if (Array.isArray(r2)) {
50
+ const e3 = r2;
51
+ for (let i3 = 0; i3 < e3.length; i3++) t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: e3[i3] });
52
+ } else t2.push({ label: o2.label(), description: n2(o2.description()), shortcut: o2.shortcut() });
53
53
  }
54
54
  return t2;
55
55
  }, [u2, c2]), [$2, D2] = f(null);
@@ -58,28 +58,28 @@ function _(s2) {
58
58
  D2(new e2.default(v2, { threshold: 0, ignoreLocation: true, keys: ["label", "description"] }));
59
59
  });
60
60
  }, [v2]);
61
- const [z2, I2] = f(v2), K2 = y2.length > 0 && 0 === z2.length;
61
+ const [z2, I2] = f(v2), K2 = w2.length > 0 && 0 === z2.length;
62
62
  b(() => {
63
63
  $2 && h.debounce(() => {
64
- if (0 === y2.trim().length) return void I2(v2);
65
- const e2 = $2.search(y2.trim()), t2 = new Array(e2.length);
64
+ if (0 === w2.trim().length) return void I2(v2);
65
+ const e2 = $2.search(w2.trim()), t2 = new Array(e2.length);
66
66
  for (let n2 = 0; n2 < e2.length; n2++) t2[n2] = e2[n2].item;
67
67
  I2(t2);
68
68
  }, 90)();
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) => K2 ? `${e2.palette.error.main} !important` : void 0 }, "& .MuiInputLabel-outlined": { color: (e2) => K2 ? `${e2.palette.error.main} !important` : void 0 } }, value: y2, onChange: (e2) => {
69
+ }, [$2, w2]);
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(${y("#fff", R(5))}, ${y("#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(o, { sx: { opacity: w2.length > 0 ? 1 : 0, display: w2.length > 0 ? "flex" : "none" }, position: "end", children: t(r, { "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: w2, onChange: (e2) => {
71
71
  C2(e2.target.value);
72
72
  }, onKeyDown: (e2) => {
73
- e2.which === p.Escape && y2.length > 0 && (C2(""), e2.stopPropagation(), e2.preventDefault());
73
+ e2.which === p.Escape && w2.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) => 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" : ""}` }) })] });
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(${y("#fff", R(5))}, ${y("#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"}${w2.length > 0 ? " found" : ""}` }) })] });
77
77
  }
78
78
  const P = (e2) => {
79
- const { title: n2 = "Shortcut Keys", commands: i2, sx: r2, ...o2 } = e2;
79
+ const { title: n2 = "Shortcut Keys", commands: i2, sx: o2, ...r2 } = e2;
80
80
  return t(u, { isModal: true, onKeyDown: (e3) => {
81
81
  e3.keyCode === p.F1 && e3.preventDefault();
82
- }, sx: { width: "780px", ...r2 }, title: n2, autoFocusSel: ".input", ...o2, children: t(c, { dividers: true, children: t(_, { commands: i2, sx: { marginBottom: "8px" } }) }) });
82
+ }, sx: { width: "780px", ...o2 }, title: n2, autoFocusSel: ".input", ...r2, children: t(c, { dividers: true, children: t(_, { commands: i2, sx: { marginBottom: "8px" } }) }) });
83
83
  };
84
84
  export {
85
85
  P as default
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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 "./D5PqPsdhcweS6d-S.mjs";
8
+ import { c as e, b as s, r, t as o, a as i, p as n, d as l } from "./C2SG9zLSqOGo3vCR.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) {
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ import { Workbook as e } from "@sheetxl/sdk";
8
+ const r = async (e2, r2) => {
9
+ const n2 = await e2.toJSON(), t = r2?.whiteSpace ?? 0;
10
+ let o;
11
+ r2?.beforeWrite?.(e2, n2), o = 0 === t ? JSON.stringify(n2) : function(e3, r3 = 2) {
12
+ const n3 = [];
13
+ function t2(e4) {
14
+ const t3 = r3 * e4;
15
+ return void 0 === n3[t3] && (n3[t3] = " ".repeat(t3)), n3[t3];
16
+ }
17
+ return function e4(r4, n4, o2, f2) {
18
+ if (null == r4 || "object" != typeof r4) return JSON.stringify(r4);
19
+ const i2 = t2(n4), s = t2(n4 + 1);
20
+ if (Array.isArray(r4)) {
21
+ const t3 = r4.length;
22
+ if (0 === t3) return "[]";
23
+ if (0 !== o2) return JSON.stringify(r4);
24
+ let f3 = "[\n";
25
+ for (let i3 = 0; i3 < t3; i3++) f3 += s + e4(r4[i3], n4 + 1, o2 + 1, true), i3 < t3 - 1 && (f3 += ",\n");
26
+ return f3 += "\n" + i2 + "]", f3;
27
+ }
28
+ const a = Object.keys(r4), u = a.length;
29
+ if (0 === u) return "{}";
30
+ if (!(o2 < 2)) return JSON.stringify(r4);
31
+ let c = "{\n";
32
+ f2 || (o2 = 0);
33
+ for (let t3 = 0; t3 < u; t3++) {
34
+ const f3 = a[t3];
35
+ c += s + JSON.stringify(f3) + ": " + e4(r4[f3], n4 + 1, o2, false), t3 < u - 1 && (c += ",\n");
36
+ }
37
+ return c += "\n" + i2 + "}", c;
38
+ }(e3, 0, 0, false);
39
+ }(n2, t);
40
+ let f = new TextEncoder().encode(o).buffer;
41
+ const i = r2?.compress ?? true;
42
+ return i && (f = await async function(e3, r3 = "gzip") {
43
+ let n3;
44
+ "undefined" != typeof SharedArrayBuffer && e3 instanceof SharedArrayBuffer ? (n3 = new ArrayBuffer(e3.byteLength), new Uint8Array(n3).set(new Uint8Array(e3))) : n3 = e3;
45
+ const t2 = new ReadableStream({ start(e4) {
46
+ e4.enqueue(n3), e4.close();
47
+ } }), o2 = new CompressionStream(r3), f2 = t2.pipeThrough(o2);
48
+ return (await new Response(f2).blob()).arrayBuffer();
49
+ }(f, "string" == typeof i ? i : void 0)), f;
50
+ }, n = async (r2, n2) => {
51
+ let t = r2;
52
+ (function(e2) {
53
+ if (e2.byteLength < 4) return false;
54
+ const r3 = new Uint8Array(e2), n3 = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, t2 = Object.keys(n3);
55
+ for (let e3 = 0; e3 < t2.length; e3++) {
56
+ const o2 = t2[e3], f2 = n3[o2];
57
+ let i2 = true;
58
+ for (let e4 = 0; e4 < f2.length; e4++) if (r3[e4] !== f2[e4]) {
59
+ i2 = false;
60
+ break;
61
+ }
62
+ if (i2) return o2;
63
+ }
64
+ return false;
65
+ })(t) && (t = await async function(e2, r3 = "gzip") {
66
+ let n3;
67
+ "undefined" != typeof SharedArrayBuffer && e2 instanceof SharedArrayBuffer ? (n3 = new ArrayBuffer(e2.byteLength), new Uint8Array(n3).set(new Uint8Array(e2))) : n3 = e2;
68
+ const t2 = new Blob([n3]).stream(), o2 = new DecompressionStream(r3), f2 = t2.pipeThrough(o2);
69
+ return (await new Response(f2).blob()).arrayBuffer();
70
+ }(t));
71
+ let o = new TextDecoder().decode(t);
72
+ const f = JSON.parse(o), i = { ...n2?.constructorOptions ?? {}, json: f };
73
+ return new e(i);
74
+ };
75
+ export {
76
+ n as fromBufferJSON,
77
+ r as toBufferJSON
78
+ };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.
@@ -5323,7 +5323,7 @@ const Ep = { x: 0, y: 0 }, _p = z(N((e15, t2) => {
5323
5323
  t2?.onDone?.(), o2.hide();
5324
5324
  } });
5325
5325
  });
5326
- }, zp = L.lazy(() => import("./ljm-GD9VeBXw4U_k.mjs")), Pp = () => {
5326
+ }, zp = L.lazy(() => import("./B_-60k30GZTVFJCG.mjs")), Pp = () => {
5327
5327
  const { showModal: e15 } = $i();
5328
5328
  return (t2) => {
5329
5329
  const { defaultOption: n2 = t2.options?.[0], cancelOption: o2 = "Cancel", ...r2 } = t2;
@@ -11195,7 +11195,7 @@ const bv = (e15, t2, n2 = null) => {
11195
11195
  ye2.current = true;
11196
11196
  const e16 = L.lazy(async () => {
11197
11197
  try {
11198
- const e17 = await import("./tQdiaDYqRQRRAP8j.mjs");
11198
+ const e17 = await import("./xQKjfFNNUiXBnIeG.mjs");
11199
11199
  return ye2.current = false, be2.current = true, C2([...S2]), e17;
11200
11200
  } catch (e17) {
11201
11201
  return console.warn(e17), ee2.current?.(false), null;
@@ -13165,7 +13165,7 @@ bS.displayName = "TabStrip";
13165
13165
  const wS = (e15) => D("svg", { ...e15, viewBox: "0 0 48 48", children: [R("path", { d: "M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z", fill: "#547DBE" }), R("path", { d: "m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z", fill: "#FFFFFF" }), R("path", { d: "m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z", fill: "#547DBE", fillOpacity: "0.4" }), R("path", { d: "m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z", strokeWidth: "2.5", stroke: "#EB594D", fill: "#f9CECB" })] }), xS = j(null), vS = () => {
13166
13166
  const e15 = q(xS), [t2] = O(() => new r());
13167
13167
  return V(() => e15 || t2, [e15]);
13168
- }, SS = L.lazy(() => import("./CVqPY-7x1_FM5ePT.mjs")), CS = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, ES = async (e15, t2, n2) => {
13168
+ }, SS = L.lazy(() => import("./CVheJHEYC7Bxc-m9.mjs")), CS = { lightbulb: { enabled: false }, tabSize: 2, acceptSuggestionOnCommitCharacter: true, acceptSuggestionOnEnter: "on", accessibilitySupport: "auto", automaticLayout: true, autoIndent: false, codeLens: true, colorDecorators: true, contextmenu: true, cursorBlinking: "blink", cursorSmoothCaretAnimation: false, cursorStyle: "line", disableLayerHinting: false, disableMonospaceOptimizations: false, dragAndDrop: true, glyphMargin: true, fixedOverflowWidgets: false, folding: true, foldingStrategy: "auto", fontLigatures: false, formatOnPaste: true, formatOnType: false, hideCursorInOverviewRuler: false, highlightActiveIndentGuide: true, links: true, lineDecorationsWidth: 8, lineNumbersMinChars: 3, mouseWheelZoom: false, multiCursorMergeOverlapping: true, multiCursorModifier: "alt", overviewRulerBorder: true, overviewRulerLanes: 2, quickSuggestions: true, quickSuggestionsDelay: 100, readOnly: false, renderControlCharacters: false, renderFinalNewline: true, renderIndentGuides: true, renderLineHighlight: "all", renderWhitespace: "none", revealHorizontalRightPadding: 30, roundedSelection: true, rulers: [], scrollBeyondLastColumn: 5, scrollBeyondLastLine: true, selectOnLineNumbers: true, selectionClipboard: true, selectionHighlight: true, showLightbulbIconMode: false, showFoldingControls: "mouseover", smoothScrolling: true, suggestOnTriggerCharacters: true, wordBasedSuggestions: true, wordSeparators: `~!@#$%^&*()-=+[{]}|;:'",.<>/?`, wordWrap: "off", wordWrapBreakAfterCharacters: " })]?|&,;", wordWrapBreakBeforeCharacters: "{([+", wordWrapBreakObtrusiveCharacters: ".", wordWrapColumn: 80, wordWrapMinified: true, wrappingIndent: "none" }, ES = async (e15, t2, n2) => {
13169
13169
  const o2 = e15.getModel();
13170
13170
  if (!o2) return;
13171
13171
  const r2 = await t2.languages.typescript.getTypeScriptWorker(), i2 = await r2(o2.uri), l2 = await i2.getNavigationTree(o2.uri.toString()), a2 = e15.getPosition();
@@ -13315,7 +13315,7 @@ const RS = z(N((e15, t2) => {
13315
13315
  }, []), I2 = P(null), L2 = Eo((e16, t3) => {
13316
13316
  h2.current = { monaco: t3, editor: e16 }, C2(true), T2("Loading Types");
13317
13317
  const n3 = w2.getScripts().getModules().search()[0]?.getSource() ?? "";
13318
- e16.setValue(n3), import("./DiBsi8erKZjh_pGl.mjs").then((e17) => e17.c).then((n4) => {
13318
+ e16.setValue(n3), import("./BdwO--U2p6MiyekK.mjs").then((e17) => e17.c).then((n4) => {
13319
13319
  T2(""), n4.AutoTypings.create(e16, { shareCache: true, monaco: t3, onError: (e17) => {
13320
13320
  "Not implemented yet" === e17 && (e17 = "Compile Errors"), console.warn("Error compiling types", e17);
13321
13321
  } }).then(async (n5) => {
@@ -13500,7 +13500,7 @@ const RS = z(N((e15, t2) => {
13500
13500
  r2?.set(c2, s2);
13501
13501
  const d2 = s2.toRGBA().toString();
13502
13502
  l2?.set(d2, s2);
13503
- }, BS = L.lazy(() => import("./CKXJufnx1aYWTu4H.mjs")), $S = z(N((e15, t2) => {
13503
+ }, BS = L.lazy(() => import("./DW9fZUq5TEVyK05B.mjs")), $S = z(N((e15, t2) => {
13504
13504
  const { selectedColor: n2 = null, previewColor: o2 = e15.selectedColor ?? null, recentColors: r2, schemeLookup: l2, disableAlpha: a2 = false, previewDebounceTime: s2 = 100, initialPanelType: c2, defaultButtonSize: d2 = 24, width: u2, onElementLoad: h2, onDone: p2, onEyeDropStart: m2, onEyeDropStop: g2, onPreviewColor: f2, onPreviewColorImmediate: y2, onSelectColor: b2, autoColor: w2, autoColorLabel: x2 = "Automatic", autoColorPosition: C2 = IS.Start, compareRGB: E2 = false, darkMode: _2 = false, ...k2 } = e15, T2 = o2 || n2, M2 = Eo(f2, [f2]), L2 = Eo(y2, [y2]), z2 = Eo(b2, [b2]), P2 = Eo(m2, [m2]), H2 = Eo(g2, [g2]), [N2, B2] = O(false), $2 = ct(), W2 = V(() => l2 || i.getDefaultSchemeLookup(), [l2]), j2 = V(() => {
13505
13505
  const e16 = /* @__PURE__ */ new Map(), t3 = /* @__PURE__ */ new Map(), n3 = [];
13506
13506
  NS("Primary Background", "bg1", W2, n3, e16, t3), NS("Primary Text", "tx1", W2, n3, e16, t3), NS("Secondary Background", "bg2", W2, n3, e16, t3), NS("Secondary Text", "tx2", W2, n3, e16, t3), NS("Accent 1", "accent1", W2, n3, e16, t3), NS("Accent 2", "accent2", W2, n3, e16, t3), NS("Accent 3", "accent3", W2, n3, e16, t3), NS("Accent 4", "accent4", W2, n3, e16, t3), NS("Accent 5", "accent5", W2, n3, e16, t3), NS("Accent 6", "accent6", W2, n3, e16, t3);
@@ -14798,7 +14798,7 @@ const iE = z(N((e15, t2) => {
14798
14798
  return Bh({ ...e16, children: n3 });
14799
14799
  }, [y2]);
14800
14800
  return D(J, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...o2 }, ref: et([l2, a2, t2]), ...i2, children: [R(J, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%" }, children: g2 ?? p2 }), R(J, { sx: { display: null !== y2 && 0 === y2.length ? "none" : "flex", flex: "1 1 0" }, children: R(bp, { createPopupPanel: x2, ref: c2, parentFloat: w2, createTooltip: ({ children: e16 }, t3) => R(up, { label: "More", description: "More toolbar options…", disabled: t3, children: e16 }), icon: R(Ks, { children: R(Ge, {}) }) }) })] });
14801
- })), lE = "https://unpkg.com/@sheetxl/scripting-templates/dist", aE = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: true, handler: async (e15, t2) => (await import("./BPxKz-jkIzLKNmPv.mjs")).fromBufferJSON(e15, t2) }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: async (e15, t2) => (await import("./BfAeEhV_QOZsLFo_.mjs")).fromBufferCSV(e15, t2) }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: async (e15, t2) => (await import("./D5PqPsdhcweS6d-S.mjs").then((e16) => e16.i)).fromBufferXLSX(e15, t2) }], sE = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", isDefault: true, handler: async (e15, t2) => (await import("./BPxKz-jkIzLKNmPv.mjs")).toBufferJSON(e15, t2) }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: async (e15, t2) => (await import("./BfAeEhV_QOZsLFo_.mjs")).toBufferCSV(e15, t2) }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: async (e15, t2) => (await import("./D5PqPsdhcweS6d-S.mjs").then((e16) => e16.i)).toBufferXLSX(e15, t2) }];
14801
+ })), lE = "https://unpkg.com/@sheetxl/scripting-templates/dist", aE = [{ key: "SheetXL", description: "SheetXL", mimeType: ".sxl", exts: ["sxl"], isDefault: true, handler: async (e15, t2) => (await import("./RPVynz_rpfz9lkAQ.mjs")).fromBufferJSON(e15, t2) }, { key: "CSV", description: "Comma Delimited", mimeType: "text/csv", exts: ["csv"], handler: async (e15, t2) => (await import("./BkzwNHPzd0DSf0FL.mjs")).fromBufferCSV(e15, t2) }, { key: "Excel", description: "Excel Workbook", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", exts: ["xlsx", "xls", "xlsm"], handler: async (e15, t2) => (await import("./C2SG9zLSqOGo3vCR.mjs").then((e16) => e16.i)).fromBufferXLSX(e15, t2) }], sE = [{ key: "SheetXL", mimeType: "application/vnd.sheetxl.sheet", description: "SheetXL", ext: "sxl", isDefault: true, handler: async (e15, t2) => (await import("./RPVynz_rpfz9lkAQ.mjs")).toBufferJSON(e15, t2) }, { key: "CSV", mimeType: "text/csv", description: "Comma Delimited", ext: "csv", handler: async (e15, t2) => (await import("./BkzwNHPzd0DSf0FL.mjs")).toBufferCSV(e15, t2) }, { key: "Excel", mimeType: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", description: "Excel Workbook", ext: "xlsx", tags: ["SheetJS Pro"], handler: async (e15, t2) => (await import("./C2SG9zLSqOGo3vCR.mjs").then((e16) => e16.i)).toBufferXLSX(e15, t2) }];
14802
14802
  class cE {
14803
14803
  constructor(e15 = aE, t2 = sE) {
14804
14804
  this._readFormatTypes = [], this._writeFormatType = [], this._readFormatTypes = Object.freeze([...e15]), this._writeFormatType = Object.freeze([...t2]);
@@ -15849,7 +15849,7 @@ const t_ = (e15 = false, t2 = false) => t2 ? null : { "& input:not(:focus):not(:
15849
15849
  }, value: m2 }), R(J, { ref: b2, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: m2 !== f2 ? "italic" : void 0, fontFamily: (e16) => e16.typography.fontFamily, letterSpacing: "0.00938em" }, children: m2 || i2 })] }) }) });
15850
15850
  }));
15851
15851
  n_.displayName = "WorkbookTitle";
15852
- const o_ = L.lazy(() => import("./CZZqwKrVWqnJBi2h.mjs")), r_ = z(N((e15, t2) => {
15852
+ const o_ = L.lazy(() => import("./BlIGyiGNQyArtF2L.mjs")), r_ = z(N((e15, t2) => {
15853
15853
  const { sx: n2, style: o2, className: r2, licenseKey: i2, ...l2 } = e15;
15854
15854
  return i2 && a.setLicenseKey(i2), R(I, { children: R(o_, { ...l2, className: r2, sx: n2, style: o2, ref: t2 }) });
15855
15855
  }));
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.
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.4.5",
4
+ "version": "0.4.7",
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.4.5",
40
- "@sheetxl/io": "^0.4.5",
41
- "@sheetxl/react": "^0.4.5",
42
- "@sheetxl/utils": "^0.4.5",
43
- "@sheetxl/utils-mui": "^0.4.5",
44
- "@sheetxl/utils-react": "^0.4.5",
39
+ "@sheetxl/grid-react": "^0.4.7",
40
+ "@sheetxl/io": "^0.4.7",
41
+ "@sheetxl/react": "^0.4.7",
42
+ "@sheetxl/utils": "^0.4.7",
43
+ "@sheetxl/utils-mui": "^0.4.7",
44
+ "@sheetxl/utils-react": "^0.4.7",
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.4.5",
62
+ "@sheetxl/sdk": "^0.4.7",
63
63
  "@emotion/cache": "^11.14.0",
64
64
  "@emotion/react": "^11.14.0",
65
65
  "@emotion/styled": "^11.14.0",
@@ -1,12 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("@sheetxl/sdk");exports.fromBufferJSON=async(b,l)=>{let c=b;(function(t){if(t.byteLength<4)return!1;const i=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);for(let s=0;s<n.length;s++){const o=n[s],e=r[o];let f=!0;for(let a=0;a<e.length;a++)if(i[a]!==e[a]){f=!1;break}if(f)return o}return!1})(c)&&(c=await async function(t,i="gzip"){let r;t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),s=new DecompressionStream(i),o=n.pipeThrough(s);return(await new Response(o).blob()).arrayBuffer()}(c));let g=new TextDecoder().decode(c);const p=JSON.parse(g),w={...l?.constructorOptions??{},json:p};return new J.Workbook(w)},exports.toBufferJSON=async(b,l)=>{const c=await b.toJSON(),g=l?.whiteSpace??0;let p;l?.beforeWrite?.(b,c),p=g===0?JSON.stringify(c):function(i,r=2){const n=[];function s(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return function o(e,f,a,B){if(e==null||typeof e!="object")return JSON.stringify(e);const d=s(f),A=s(f+1);if(Array.isArray(e)){const u=e.length;if(u===0)return"[]";if(a!==0)return JSON.stringify(e);let y=`[
7
- `;for(let h=0;h<u;h++)y+=A+o(e[h],f+1,a+1,!0),h<u-1&&(y+=`,
8
- `);return y+=`
9
- `+d+"]",y}const m=Object.keys(e),O=m.length;if(O===0)return"{}";if(!(a<2))return JSON.stringify(e);let S=`{
10
- `;B||(a=0);for(let u=0;u<O;u++){const y=m[u];S+=A+JSON.stringify(y)+": "+o(e[y],f+1,a,!1),u<O-1&&(S+=`,
11
- `)}return S+=`
12
- `+d+"}",S}(i,0,0,!1)}(c,g);let w=new TextEncoder().encode(p).buffer;const t=l?.compress??!0;return t&&(w=await async function(i,r="gzip"){let n;i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const s=new ReadableStream({start(f){f.enqueue(n),f.close()}}),o=new CompressionStream(r),e=s.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()}(w,typeof t=="string"?t:void 0)),w};
@@ -1,84 +0,0 @@
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.5
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 (p, l) => {
9
- const c = await p.toJSON(), b = l?.whiteSpace ?? 0;
10
- let g;
11
- l?.beforeWrite?.(p, c), g = b === 0 ? JSON.stringify(c) : function(i, r = 2) {
12
- const n = [];
13
- function s(o) {
14
- const e = r * o;
15
- return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
16
- }
17
- return function o(e, f, a, B) {
18
- if (e == null || typeof e != "object") return JSON.stringify(e);
19
- const A = s(f), d = s(f + 1);
20
- if (Array.isArray(e)) {
21
- const u = e.length;
22
- if (u === 0) return "[]";
23
- if (a !== 0) return JSON.stringify(e);
24
- let y = `[
25
- `;
26
- for (let h = 0; h < u; h++) y += d + o(e[h], f + 1, a + 1, !0), h < u - 1 && (y += `,
27
- `);
28
- return y += `
29
- ` + A + "]", y;
30
- }
31
- const m = Object.keys(e), O = m.length;
32
- if (O === 0) return "{}";
33
- if (!(a < 2)) return JSON.stringify(e);
34
- let S = `{
35
- `;
36
- B || (a = 0);
37
- for (let u = 0; u < O; u++) {
38
- const y = m[u];
39
- S += d + JSON.stringify(y) + ": " + o(e[y], f + 1, a, !1), u < O - 1 && (S += `,
40
- `);
41
- }
42
- return S += `
43
- ` + A + "}", S;
44
- }(i, 0, 0, !1);
45
- }(c, b);
46
- let w = new TextEncoder().encode(g).buffer;
47
- const t = l?.compress ?? !0;
48
- return t && (w = await async function(i, r = "gzip") {
49
- let n;
50
- i instanceof SharedArrayBuffer ? (n = new ArrayBuffer(i.byteLength), new Uint8Array(n).set(new Uint8Array(i))) : n = i;
51
- const s = new ReadableStream({ start(f) {
52
- f.enqueue(n), f.close();
53
- } }), o = new CompressionStream(r), e = s.pipeThrough(o);
54
- return (await new Response(e).blob()).arrayBuffer();
55
- }(w, typeof t == "string" ? t : void 0)), w;
56
- }, z = async (p, l) => {
57
- let c = p;
58
- (function(t) {
59
- if (t.byteLength < 4) return !1;
60
- const i = 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 s = 0; s < n.length; s++) {
62
- const o = n[s], e = r[o];
63
- let f = !0;
64
- for (let a = 0; a < e.length; a++) if (i[a] !== e[a]) {
65
- f = !1;
66
- break;
67
- }
68
- if (f) return o;
69
- }
70
- return !1;
71
- })(c) && (c = await async function(t, i = "gzip") {
72
- let r;
73
- t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
74
- const n = new Blob([r]).stream(), s = new DecompressionStream(i), o = n.pipeThrough(s);
75
- return (await new Response(o).blob()).arrayBuffer();
76
- }(c));
77
- let b = new TextDecoder().decode(c);
78
- const g = JSON.parse(b), w = { ...l?.constructorOptions ?? {}, json: g };
79
- return new J(w);
80
- };
81
- export {
82
- z as fromBufferJSON,
83
- k as toBufferJSON
84
- };
@@ -1,78 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.5
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { Workbook as e } from "@sheetxl/sdk";
8
- const r = async (e2, r2) => {
9
- const t2 = await e2.toJSON(), n = r2?.whiteSpace ?? 0;
10
- let o;
11
- r2?.beforeWrite?.(e2, t2), o = 0 === n ? JSON.stringify(t2) : function(e3, r3 = 2) {
12
- const t3 = [];
13
- function n2(e4) {
14
- const n3 = r3 * e4;
15
- return void 0 === t3[n3] && (t3[n3] = " ".repeat(n3)), t3[n3];
16
- }
17
- return function e4(r4, t4, o2, i2) {
18
- if (null == r4 || "object" != typeof r4) return JSON.stringify(r4);
19
- const s2 = n2(t4), f = n2(t4 + 1);
20
- if (Array.isArray(r4)) {
21
- const n3 = r4.length;
22
- if (0 === n3) return "[]";
23
- if (0 !== o2) return JSON.stringify(r4);
24
- let i3 = "[\n";
25
- for (let s3 = 0; s3 < n3; s3++) i3 += f + e4(r4[s3], t4 + 1, o2 + 1, true), s3 < n3 - 1 && (i3 += ",\n");
26
- return i3 += "\n" + s2 + "]", i3;
27
- }
28
- const a = Object.keys(r4), c = a.length;
29
- if (0 === c) return "{}";
30
- if (!(o2 < 2)) return JSON.stringify(r4);
31
- let u = "{\n";
32
- i2 || (o2 = 0);
33
- for (let n3 = 0; n3 < c; n3++) {
34
- const i3 = a[n3];
35
- u += f + JSON.stringify(i3) + ": " + e4(r4[i3], t4 + 1, o2, false), n3 < c - 1 && (u += ",\n");
36
- }
37
- return u += "\n" + s2 + "}", u;
38
- }(e3, 0, 0, false);
39
- }(t2, n);
40
- let i = new TextEncoder().encode(o).buffer;
41
- const s = r2?.compress ?? true;
42
- return s && (i = await async function(e3, r3 = "gzip") {
43
- let t3;
44
- e3 instanceof SharedArrayBuffer ? (t3 = new ArrayBuffer(e3.byteLength), new Uint8Array(t3).set(new Uint8Array(e3))) : t3 = e3;
45
- const n2 = new ReadableStream({ start(e4) {
46
- e4.enqueue(t3), e4.close();
47
- } }), o2 = new CompressionStream(r3), i2 = n2.pipeThrough(o2);
48
- return (await new Response(i2).blob()).arrayBuffer();
49
- }(i, "string" == typeof s ? s : void 0)), i;
50
- }, t = async (r2, t2) => {
51
- let n = r2;
52
- (function(e2) {
53
- if (e2.byteLength < 4) return false;
54
- const r3 = new Uint8Array(e2), t3 = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n2 = Object.keys(t3);
55
- for (let e3 = 0; e3 < n2.length; e3++) {
56
- const o2 = n2[e3], i2 = t3[o2];
57
- let s2 = true;
58
- for (let e4 = 0; e4 < i2.length; e4++) if (r3[e4] !== i2[e4]) {
59
- s2 = false;
60
- break;
61
- }
62
- if (s2) return o2;
63
- }
64
- return false;
65
- })(n) && (n = await async function(e2, r3 = "gzip") {
66
- let t3;
67
- e2 instanceof SharedArrayBuffer ? (t3 = new ArrayBuffer(e2.byteLength), new Uint8Array(t3).set(new Uint8Array(e2))) : t3 = e2;
68
- const n2 = new Blob([t3]).stream(), o2 = new DecompressionStream(r3), i2 = n2.pipeThrough(o2);
69
- return (await new Response(i2).blob()).arrayBuffer();
70
- }(n));
71
- let o = new TextDecoder().decode(n);
72
- const i = JSON.parse(o), s = { ...t2?.constructorOptions ?? {}, json: i };
73
- return new e(s);
74
- };
75
- export {
76
- t as fromBufferJSON,
77
- r as toBufferJSON
78
- };