@sheetxl/studio-mui 0.4.6 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/browser/cjs/{CdQdB8GGgwp5bzHl.cjs → B9VxvukbesYhdTdA.cjs} +2 -2
  2. package/browser/cjs/{QA_huZIonWzLs-uu.cjs → BA7HloSCkIjbJehh.cjs} +2 -2
  3. package/browser/cjs/BJN1sH87EvdxRpOd.cjs +12 -0
  4. package/browser/cjs/{Bcv0k3jvRwqN2MIv.cjs → BXt_O5ZSE2LpILmE.cjs} +4 -4
  5. package/browser/cjs/{BqTAMhy1JhZE_3nU.cjs → BZUPFYECmoclErqJ.cjs} +2 -2
  6. package/browser/cjs/{DtMN1mvFQK7hQ1j9.cjs → Ba7K1ZdzfgXpvg7P.cjs} +1 -1
  7. package/browser/cjs/C1NVH5bp1otDYHTC.cjs +12 -0
  8. package/browser/cjs/{Bwb_ZIYk7AHA0u3k.cjs → C1wsDeHNaWiFlCZh.cjs} +6 -6
  9. package/browser/cjs/{LWykIZ3qaETKREvJ.cjs → C7YVj8dlBBL_wOM9.cjs} +1 -1
  10. package/browser/cjs/{DPm_1cgH3Q1g4XzF.cjs → CPtvdlvWWilf8Vep.cjs} +2 -2
  11. package/browser/cjs/{DjEDCBlxBYuN3Enq.cjs → CTokFqp-O-Uhl0LW.cjs} +1 -1
  12. package/browser/cjs/{SSESHQPsy1dN102X.cjs → CeRQ0zAM1Xczv7Gm.cjs} +2 -2
  13. package/browser/cjs/{B1mBnghJtPodtylh.cjs → CiJS-8DphNBc_B9t.cjs} +2 -2
  14. package/browser/cjs/{E2cXotXW7NLh-ylB.cjs → Cuyl2HX5ovut6vef.cjs} +2 -2
  15. package/browser/cjs/Czcg6yLU8uVHew0l.cjs +6 -0
  16. package/browser/cjs/D7ntR8K8guZD6yMH.cjs +6 -0
  17. package/browser/cjs/{BIjFjK_aRCl0ckiG.cjs → DIKyZ-hkjeexXMzY.cjs} +1 -1
  18. package/browser/cjs/{DVh3lOOMM_xi0ETW.cjs → DNjiEJT8EtVysR2q.cjs} +1 -1
  19. package/browser/cjs/DTaaqEmMOO2QrfZF.cjs +87 -0
  20. package/browser/cjs/{DaK6Oc8sNlioHzKi.cjs → DkfygXp4ZgvLr3Yw.cjs} +2 -2
  21. package/browser/cjs/{D9DjLppWLp-iQcfI.cjs → NRKyHbS2cOhmoSox.cjs} +2 -2
  22. package/browser/cjs/{DKVuDNZsxiRUUBVt.cjs → dYzaARxDkWvC98N4.cjs} +1 -1
  23. package/browser/cjs/index.cjs +2 -2
  24. package/browser/cjs/{B1qn41wLyGnMiQPU.cjs → k4ZW48PahXgf2WQD.cjs} +1 -1
  25. package/browser/cjs/z_x7DWNrjsFa45Nh.cjs +6 -0
  26. package/browser/cjs/{Cwa_0l8qR0zbOqE0.cjs → znXBy3z9cM6mLfO7.cjs} +1 -1
  27. package/browser/esm/ABtrpK9yMoHh6oPr.mjs +864 -0
  28. package/browser/esm/{oV4EdTmLvRNexoGq.mjs → BG3qcQNY_GZt3VHB.mjs} +2 -2
  29. package/browser/esm/{9sVNDRh1Ww2_ABjB.mjs → BG8pohDV-03DRiXx.mjs} +13 -13
  30. package/browser/esm/{B8uQ6WrEnZeQliy7.mjs → BYftsJS-zhpjBq1k.mjs} +2 -2
  31. package/browser/esm/Bd0yhfN0EoE3uahv.mjs +84 -0
  32. package/browser/esm/{C4PpKzB897oeobRz.mjs → CAvo3HCB981DM5OF.mjs} +2 -2
  33. package/browser/esm/{CD2_V-nutPVuAS-C.mjs → CHNZIKe6NNdfdZOr.mjs} +1 -1
  34. package/browser/esm/{DBqHis2InMtzN9m3.mjs → CJxkcbtPJNL_Gloc.mjs} +16 -16
  35. package/browser/esm/{DowxifIAh5V6Hww_.mjs → COU2bYtN0WpsI4PY.mjs} +1 -1
  36. package/browser/esm/{Lm7tjCM70hRDdKQn.mjs → CWtcMBj9hNKDPN_v.mjs} +2 -2
  37. package/browser/esm/{D_eMbbDkTCIyPBkR.mjs → CzXTFr7g6RYXxPM1.mjs} +6 -6
  38. package/browser/esm/{VnAOTl45ngDazT7k.mjs → DIxDU9Lfq3hPWFPl.mjs} +2 -2
  39. package/browser/esm/{D2KNRJIkSezOwiMf.mjs → DJBG1-2QdNbZKe_4.mjs} +7971 -7961
  40. package/browser/esm/{DVKSMAIBqNe72BA_.mjs → DL8nFbYrab-MKQmF.mjs} +12 -12
  41. package/browser/esm/{DBxxz4VWtQhF8HiE.mjs → DWOLWdzUONLf1nae.mjs} +1 -1
  42. package/browser/esm/{BGDv4j9k0fKGH40f.mjs → DatUamvfhoqxlf8D.mjs} +2 -2
  43. package/browser/esm/{Y56oxIoigldEyDtK.mjs → DdVyaTOGGjRcamT8.mjs} +1 -1
  44. package/browser/esm/{DL7U0rX3cr1nkmnW.mjs → DdzcCdPQ_zZbqH2p.mjs} +2 -2
  45. package/browser/esm/{D75FG-POhKcbVybN.mjs → DoDQcFwr66QfXlYi.mjs} +1 -1
  46. package/browser/esm/{C4JsAY2gYqZ7Sd56.mjs → DwLP5jvXe3rwi5r2.mjs} +3 -3
  47. package/browser/esm/{D49GU0rifaflLO3n.mjs → Dz_iWDlTCAECBFSF.mjs} +7 -7
  48. package/browser/esm/{HBIcmxUA2eXJVoAq.mjs → GYPCajr96WY2V_je.mjs} +1 -1
  49. package/browser/esm/{DBsl0-1buVSmLIT3.mjs → eq540RbNc68EuIvk.mjs} +1 -1
  50. package/browser/esm/index.mjs +26 -25
  51. package/browser/esm/{DLq_1QLsg30gdYKE.mjs → lk_a0cAuz5HJsQKm.mjs} +1 -1
  52. package/browser/esm/{CvdO7McIlOCtqS-y.mjs → zMjWIB_wUonhfIad.mjs} +2 -2
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{DhSN7TkeDTP5WvZm.mjs → 0CnPehqlnzEMqDVS.mjs} +30 -30
  55. package/node/esm/{Dg4Q-SaoO3kvkvYo.mjs → BFxNXzqwDw9mTzzX.mjs} +1 -1
  56. package/node/esm/{DSGdRHGkJfdn-vZg.mjs → BKkexYXFkC5jI1D4.mjs} +1 -1
  57. package/node/esm/BXF0I0KwKWFhkYfM.mjs +78 -0
  58. package/node/esm/{C79MhCjBRvMtRYQ8.mjs → BpwzpczDCk32RxzY.mjs} +1 -1
  59. package/node/esm/{wJsllV16IW6_aUTq.mjs → C74xiDKgQep36e0D.mjs} +5 -5
  60. package/node/esm/{DHWs5mErxhiV_ABm.mjs → CE2Wff_Jx8m74lIm.mjs} +1 -1
  61. package/node/esm/{BykEuFt9dp-EWJZO.mjs → CVy5rNrHziJk0Xxc.mjs} +1 -1
  62. package/node/esm/{B45Lgj6XrYICeuDV.mjs → ChbG8iQjvpz3jA7T.mjs} +1 -1
  63. package/node/esm/{DKlEncWUM6PlIVXw.mjs → Cjw96KqgMSYqwdC4.mjs} +1 -1
  64. package/node/esm/{DV9nbqcBflTCKGov.mjs → ClUQ790AiAE9XIkY.mjs} +1 -1
  65. package/node/esm/{ClNrSC5ChRfmj691.mjs → D-Wu9vRF_DAsmME4.mjs} +14 -14
  66. package/node/esm/{CNtUiJCciezra7NX.mjs → D0ePiwz-m6oHmiUC.mjs} +1 -1
  67. package/node/esm/{CYcPamATHHzrhe3e.mjs → D4GNfE_QjFh3c9sT.mjs} +1 -1
  68. package/node/esm/DBDh50h4q3jgV4kn.mjs +312 -0
  69. package/node/esm/{dgGvhB4_s7wWzRKZ.mjs → DCLyoPsjP2qTWbca.mjs} +1 -1
  70. package/node/esm/{CjV-qMk3flrBJ5Tx.mjs → DTp1I9pWjg3-VyHr.mjs} +2 -2
  71. package/node/esm/{09msifGrQdtU9V1P.mjs → DkTySui4bQaZlvaP.mjs} +1 -1
  72. package/node/esm/{BhaLY_aBt2JyosQ9.mjs → Dm3qRN9_dIcmeeTB.mjs} +19 -19
  73. package/node/esm/{BrMPoQxRSTKdwAVr.mjs → cZHe3atogTKTMgvX.mjs} +1 -1
  74. package/node/esm/index.mjs +231 -221
  75. package/node/esm/{CsgrU16opQLee5fg.mjs → q2jb3DavC5pzi-mZ.mjs} +1 -1
  76. package/node/esm/{BMezAVogP2CPQGXx.mjs → wxIEXtYch2hJq7Rz.mjs} +1 -1
  77. package/node/esm/{CSffUZePWbg2mmfY.mjs → zfM7ir63qYOCXQWg.mjs} +20 -20
  78. package/package.json +8 -8
  79. package/types/index.d.ts +118 -81
  80. package/browser/cjs/BR4pH9NA2LHogxsj.cjs +0 -6
  81. package/browser/cjs/BwBrLQaEYCz6GTg4.cjs +0 -87
  82. package/browser/cjs/C_aC2PbKe_AGZzJf.cjs +0 -12
  83. package/browser/cjs/Cc9abhZ8Cm2eNY_H.cjs +0 -12
  84. package/browser/cjs/Dc5FruZcYE4XCAxW.cjs +0 -6
  85. package/browser/cjs/WY-zkNIfIEVEQq-C.cjs +0 -6
  86. package/browser/esm/BXKEJUmDPV4aXepN.mjs +0 -860
  87. package/browser/esm/F9D7x6t41LChFxhi.mjs +0 -84
  88. package/node/esm/CSubjpwyZVLohant.mjs +0 -78
  89. package/node/esm/yDYdEwZNn_fHB_XK.mjs +0 -308
@@ -1,14 +1,14 @@
1
1
  import { jsxs as Ee, jsx as W } from "react/jsx-runtime";
2
2
  import { Box as ue, TextField as Qt, InputAdornment as eo, IconButton as to, FormControlLabel as oo, Checkbox as no, Typography as ro, TableCell as We, DialogContent as io } from "@mui/material";
3
- import { an as lo, ao as He, ap as so, aq as ao, ar as co, as as uo, at as U, au as ho, Y as fo, a4 as St, a5 as de, a as Se, av as po, a6 as mo } from "./D2KNRJIkSezOwiMf.mjs";
3
+ import { an as lo, ao as He, ap as so, aq as ao, ar as co, as as uo, at as U, au as ho, Y as fo, a4 as St, a5 as de, a as Se, av as po, a6 as mo } from "./DJBG1-2QdNbZKe_4.mjs";
4
4
  import * as x from "react";
5
5
  import yt, { cloneElement as go, useState as he, useMemo as vo, useEffect as De } from "react";
6
6
  import { Close as _o } from "@mui/icons-material";
7
- import { c as N } from "./BXKEJUmDPV4aXepN.mjs";
7
+ import { c as N } from "./ABtrpK9yMoHh6oPr.mjs";
8
8
  import So, { internal_serializeStyles as K, internal_mutateStyles as yo } from "@mui/styled-engine";
9
9
  import { alpha as fe } from "@mui/system";
10
10
  /**
11
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
11
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
12
12
  *
13
13
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
14
14
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -2183,13 +2183,13 @@ class $o extends yt.PureComponent {
2183
2183
  super(...arguments), this.getRowClassName = ({ index: e }) => {
2184
2184
  const { onRowClick: t } = this.props;
2185
2185
  return Se(Jt, ie, { [Zt]: e !== -1 && t != null });
2186
- }, this.cellRenderer = ({ cellData: e, columnIndex: t, dataKey: n }) => {
2187
- const { columns: r, rowHeight: l, onRowClick: i } = this.props;
2188
- let a = e, s = { height: l, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px" };
2189
- return n === "shortcut" ? a = po(e) : n === "description" && (s = { ...s, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), W(We, { component: "div", className: Se(ke, ie, { [Me]: i == null }), variant: "body", style: s, align: t != null && r[t].numeric ? "right" : "left", children: a });
2190
- }, this.headerRenderer = ({ label: e, columnIndex: t }) => {
2191
- const { headerHeight: n, columns: r } = this.props;
2192
- return W(We, { component: "div", className: Se(ke, ie, Me), variant: "head", sx: { height: n, backgroundColor: (l) => l.palette.grey[300] }, align: r[t].numeric ? "right" : "left", children: W("span", { children: e }) });
2186
+ }, this.cellRenderer = ({ cellData: e, dataKey: t, columnIndex: n, width: r }) => {
2187
+ const { columns: l, rowHeight: i, onRowClick: a } = this.props;
2188
+ let s = e, c = { height: i, paddingRight: "2px", paddingTop: "0px", paddingBottom: "0px", minWidth: `${r}px`, maxWidth: `${r}px` };
2189
+ return t === "shortcut" ? s = po(e) : t === "description" && (c = { ...c, fontSize: ".75rem", display: "block", paddingTop: "4px", whiteSpace: "pre-line" }), W(We, { component: "div", className: Se(ke, ie, { [Me]: a == null }), variant: "body", style: c, align: n != null && l[n].numeric ? "right" : "left", children: s });
2190
+ }, this.headerRenderer = ({ label: e, columnIndex: t, width: n }) => {
2191
+ const { headerHeight: r, columns: l } = this.props, i = l[t];
2192
+ return W(We, { component: "div", className: Se(ke, ie, Me), variant: "head", sx: { width: n, height: r, backgroundColor: (a) => a.palette.grey[300] }, align: i.numeric ? "right" : "left", children: W("span", { children: i.label }) });
2193
2193
  };
2194
2194
  }
2195
2195
  static {
@@ -2199,7 +2199,7 @@ class $o extends yt.PureComponent {
2199
2199
  const { columns: e, rowHeight: t, headerHeight: n, ...r } = this.props;
2200
2200
  return W(Pt, { children: ({ height: l, width: i }) => W(Oe, { height: l, width: i, rowHeight: t, gridStyle: { direction: "inherit" }, headerHeight: n, ...r, rowClassName: this.getRowClassName, children: e.map(({ dataKey: a, width: s, widthLess: c, ...u }, d) => {
2201
2201
  const f = c ? i - c : s;
2202
- return W(_e, { headerRenderer: (h) => this.headerRenderer({ ...h, columnIndex: d }), className: ie, cellRenderer: this.cellRenderer, dataKey: a, width: f, ...u }, a);
2202
+ return W(_e, { style: { flex: `1 1 ${f}px` }, headerRenderer: (h) => this.headerRenderer({ ...h, width: f, columnIndex: d }), className: ie, cellDataGetter: ({ rowData: h, columnData: g, dataKey: v }) => h[v], cellRenderer: (h) => this.cellRenderer({ ...h, width: f, columnIndex: d }), dataKey: a, width: f, ...u }, a);
2203
2203
  }) }) });
2204
2204
  }
2205
2205
  }
@@ -2220,7 +2220,7 @@ function Yo(o) {
2220
2220
  return g;
2221
2221
  }, [n, e]), [s, c] = he(null);
2222
2222
  De(() => {
2223
- import("./D75FG-POhKcbVybN.mjs").then((h) => {
2223
+ import("./DoDQcFwr66QfXlYi.mjs").then((h) => {
2224
2224
  c(new h.default(a, { threshold: 0, ignoreLocation: !0, keys: ["label", "description"] }));
2225
2225
  });
2226
2226
  }, [a]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  import { jsxs as ie, jsx as U } from "react/jsx-runtime";
2
2
  import O, { isValidElement as qu, PureComponent as pe, Component as de, memo as Ku, useState as ft, useCallback as ct, useLayoutEffect as Gu } from "react";
3
3
  import { Box as Ju } from "@mui/material";
4
- import { g as mu, r as Qu, c as ve, i as Zu, u as es, C as ts } from "./D2KNRJIkSezOwiMf.mjs";
4
+ import { g as mu, r as Qu, c as ve, i as Zu, u as es, C as ts } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -2,9 +2,9 @@ import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
2
  import { useState as v } from "react";
3
3
  import { Box as O, FormControlLabel as a, Checkbox as s } from "@mui/material";
4
4
  import { Sort as l, IRange as r } from "@sheetxl/sdk";
5
- import { T as b, a1 as S } from "./D2KNRJIkSezOwiMf.mjs";
5
+ import { T as b, a1 as S } from "./DJBG1-2QdNbZKe_4.mjs";
6
6
  /**
7
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
7
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,8 +1,8 @@
1
- import { Y } from "./D2KNRJIkSezOwiMf.mjs";
2
- import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./D_eMbbDkTCIyPBkR.mjs";
1
+ import { Y } from "./DJBG1-2QdNbZKe_4.mjs";
2
+ import { c as x, b as f, r as I, t as Z, a as A, p as D, d as tt } from "./CzXTFr7g6RYXxPM1.mjs";
3
3
  import { IFont as k, IAutoFilter as T, Sort as G, IRange as et, AddressUtils as W, IFill as C, IStyle as rt, ITextFrame as P, FormulaError as st, IBorder as V } from "@sheetxl/sdk";
4
4
  /**
5
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
5
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
6
6
  *
7
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
8
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
- import { memo as O, useState as r, useRef as E, useReducer as M, useMemo as W } from "react";
3
- import { DialogContent as A, Box as n } from "@mui/material";
4
- import { af as k, j as V, ag as q, ah as G, T as x, a6 as J, ai as K, aj as Q, P as f, ak as U, al as X, v as y, x as b, y as w, am as S } from "./D2KNRJIkSezOwiMf.mjs";
2
+ import { memo as O, useState as r, useRef as E, useReducer as M, useMemo as A } from "react";
3
+ import { DialogContent as W, Box as n } from "@mui/material";
4
+ import { af as k, j as V, ag as q, ah as G, T as x, a6 as J, ai as K, aj as Q, P as f, ak as U, al as X, v as y, w as b, y as w, am as S } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -11,7 +11,7 @@ import { af as k, j as V, ag as q, ah as G, T as x, a6 as J, ai as K, aj as Q, P
11
11
  const ae = O((C) => {
12
12
  const { title: N, onHide: v, autoFocusSel: R = ".range-input input", context: T, notifier: l = k, command: c, commands: d, ...D } = C, [F, g] = r(!1), [m, p] = r(!1), h = E(null), [Y, j] = M((e) => e + 1, 0), [B, { width: Z }] = V();
13
13
  q(c);
14
- const o = T ?? c.context(), t = o.table(), [H, P] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), I = W(() => t?.getName() ?? "", [t]);
14
+ const o = T ?? c.context(), t = o.table(), [H, P] = r(() => t ? o.getNames().getRanges(t.getRange()) : null), I = A(() => t?.getName() ?? "", [t]);
15
15
  G(o.table(), { onAnchorCoordsChange(e) {
16
16
  P(o.getNames().getRanges(e.getRange()));
17
17
  }, onProtectedChange(e) {
@@ -23,9 +23,9 @@ const ae = O((C) => {
23
23
  o?.table().resize(e.at(0));
24
24
  }, [o]);
25
25
  let u = null;
26
- return o.table() || (u = a("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: a("div", { children: "No table selected" }) })), a(J, { title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, refWindow: h, onHide: v, onFocus: () => g(!0), onBlur: (e) => {
26
+ return o.table() || (u = a("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: a("div", { children: "No table selected" }) })), a(J, { ref: h, title: N ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: R, onHide: v, onFocus: () => g(!0), onBlur: (e) => {
27
27
  h?.current?.contains(e.relatedTarget) || g(!1);
28
- }, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(A, { dividers: !0, ref: B, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(K, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: z, onValidate: (e) => {
28
+ }, PaperProps: { elevation: F ? 3 : 1 }, ...D, children: s(W, { dividers: !0, ref: B, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e) => e.spacing(1.5), paddingRight: (e) => e.spacing(1.5) }, children: [s(n, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: o.table() ? 1 : 0 }, children: [a(n, { sx: { display: "flex", flexDirection: "row", gap: (e) => e.spacing(1) }, children: a(n, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e) => e.spacing(2), paddingRight: (e) => e.spacing(2) }, children: s(n, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [a(K, { formName: "name", defaultInput: I, value: t?.getName() ?? "No table", onChangeInput: z, onValidate: (e) => {
29
29
  t && t.getName().toLowerCase() === e.toLowerCase() || o?.getNames().validateName(e);
30
30
  }, disabled: t?.isProtected() ?? !0, onFocus: (e) => {
31
31
  m || e.target?.select(), p(!0);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,6 +1,6 @@
1
1
  import C, { memo as ne, useState as z, useRef as m, useCallback as re, useEffect as S } from "react";
2
2
  /**
3
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
3
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
4
4
  *
5
5
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
6
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._sheetxl-reset_ods65_1{display:block;margin:0;padding:0;line-height:normal}._sheetxl-reset_ods65_1 table,._sheetxl-reset_ods65_1 thead,._sheetxl-reset_ods65_1 tbody,._sheetxl-reset_ods65_1 tfoot,._sheetxl-reset_ods65_1 tr,._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:block;width:auto;height:auto;margin:0;padding:0;border:none;border-collapse:inherit;border-spacing:0;border-color:inherit;vertical-align:inherit;text-align:left;font-weight:inherit;-webkit-border-horizontal-spacing:0;-webkit-border-vertical-spacing:0}._sheetxl-reset_ods65_1 th,._sheetxl-reset_ods65_1 td{display:inline}html{color:initial}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4{fill:currentColor}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .activeColor{fill:var(--sxl-color-active)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .background{fill:var(--sxl-app-color-background)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .grey{fill:var(--sxl-app-color-grey)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .highContrast{fill:var(--sxl-app-color-high)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info{fill:var(--sxl-app-color-info)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.light{fill:var(--sxl-app-color-info-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .info.dark{fill:var(--sxl-app-color-info-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary{fill:var(--sxl-app-color-secondary)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.light{fill:var(--sxl-app-color-secondary-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .secondary.dark{fill:var(--sxl-app-color-secondary-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success{fill:var(--sxl-app-color-success)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.light{fill:var(--sxl-app-color-success-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .success.dark{fill:var(--sxl-app-color-success-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning{fill:var(--sxl-app-color-warning)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .light{fill:var(--sxl-app-color-warning-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .warning .dark{fill:var(--sxl-app-color-warning-dark)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error{fill:var(--sxl-app-color-error)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .light{fill:var(--sxl-app-color-error-light)}._sheetxl-theme_4opcr_2 svg._themed_4opcr_4 .error .dark{fill:var(--sxl-app-color-error-dark)}._sheetxl-workbook_1j3lu_5{display:flex;position:relative;overflow:hidden;flex-direction:column;width:100%;height:100%;outline:none}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer{background-color:var(--sxl-app-color-grey, grey)}._sheetxl-workbook_1j3lu_5 .splitPane .styled-resizer:hover,._sheetxl-workbook_1j3lu_5 .splitPane.dragging .styled-resizer{background-color:var(--sxl-app-color-primary, blue)}._card_1a398_7{width:100%}._actionRoot_1a398_11{padding:8px 8px 8px 16px;justify-content:space-between}._icons_1a398_16{margin-left:auto;display:flex;align-items:center}._expand_1a398_22{padding:8px;transform:rotate(0);color:#d32f2f;transition:all .2s ease-in-out}._expandOpen_1a398_29{transform:rotate(180deg)}._stackTraceContainer_1a398_33{padding:16px}._paper_1a398_37{background-color:#fff;padding:16px}._checkIcon_1a398_42{font-size:20px;padding-right:4px}._button_1a398_47{padding:0;text-transform:none}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
2
  import { LicenseManager as t } from "@sheetxl/sdk";
3
- import { A as n, b3 as s, aA as m, a$ as r, b1 as l, aG as u, b5 as d, aO as C, b4 as b, b2 as B, b6 as i, aJ as S, aX as k, aH as p, be as T, aM as c, bf as F, aD as P, aP as W, aE as h, bc as y, aC as I, B as M, aw as g, aI as w, aY as f, bt as x, aB as A, bd as R, ai as v, aF as E, aS as N, aV as O, aW as V, a_ as z, aj as H, bs as U, bu as D, br as G, bh as L, bi as j, bb as J, bj as Q, aL as Z, bp as _, ba as q, b0 as K, bg as X, ak as Y, al as $, aQ as aa, ay as oa, az as ta, p as ea, b7 as na, b8 as sa, b9 as ma, aR as ra, aN as la, ax as ua, aK as da, aT as Ca, aZ as ba, bk as Ba, J as ia, W as Sa, bl as ka, I as pa, aU as Ta, bq as ca, bo as Fa, bn as Pa, o as Wa, bm as ha } from "./D2KNRJIkSezOwiMf.mjs";
3
+ import { A as n, b3 as s, aA as m, a$ as r, b1 as u, aG as l, b5 as d, aO as C, b4 as b, b2 as B, b6 as i, aJ as S, aX as k, aH as p, be as T, aM as c, bf as P, aD as F, aP as W, aE as h, bc as y, aC as I, B as g, aw as M, aI as w, aY as f, bu as x, aB as A, bd as v, ai as R, aF as E, aS as N, aV as O, aW as V, a_ as z, aj as H, bt as L, bv as U, bs as D, bh as G, bi as j, bb as q, bj as J, aL as Q, ba as Z, bq as _, b0 as K, bg as X, ak as Y, al as $, aQ as aa, ay as oa, az as ta, q as ea, b7 as na, b8 as sa, b9 as ma, aR as ra, aN as ua, ax as la, aK as da, aT as Ca, aZ as ba, bl as Ba, J as ia, W as Sa, bm as ka, I as pa, aU as Ta, br as ca, bp as Pa, bo as Fa, bk as Wa, p as ha, bn as ya } from "./DJBG1-2QdNbZKe_4.mjs";
4
4
  /**
5
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
5
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
6
6
  *
7
7
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
8
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -12,8 +12,8 @@ export {
12
12
  s as AutoColorPosition,
13
13
  m as BorderCommandButton,
14
14
  r as BorderPopupButton,
15
- l as BorderStyleButton,
16
- u as ClearCommandButton,
15
+ u as BorderStyleButton,
16
+ l as ClearCommandButton,
17
17
  d as ColorButton,
18
18
  C as ColorCommandButton,
19
19
  b as ColorPanel,
@@ -24,37 +24,37 @@ export {
24
24
  p as FillCommandButton,
25
25
  T as FilterColumnMenu,
26
26
  c as FilterCommandButton,
27
- F as Filters,
28
- P as FindCommandButton,
27
+ P as Filters,
28
+ F as FindCommandButton,
29
29
  W as FontFamilyCommandButton,
30
30
  h as FontSizeCommandButton,
31
31
  y as FormulaBar,
32
32
  I as FreezeCommandButton,
33
- M as HelpCommandButton,
34
- g as HorizontalAlignCommandButton,
33
+ g as HelpCommandButton,
34
+ M as HorizontalAlignCommandButton,
35
35
  w as InsertCellsCommandButton,
36
36
  f as InsertImageCommandButton,
37
37
  x as InsertScriptCommandButton,
38
38
  t as LicenseManager,
39
39
  A as MergeCommandButton,
40
- R as NamedCollectionEditor,
41
- v as NamedInput,
40
+ v as NamedCollectionEditor,
41
+ R as NamedInput,
42
42
  E as NumberFormatCommandButton,
43
43
  N as PasteCommandButton,
44
44
  O as PresetCellStylesCommandButton,
45
45
  V as PresetTableStylesCommandButton,
46
46
  z as QuickFormulaSumCommandPopupButton,
47
47
  H as RangeInput,
48
- U as RunScriptCommandButton,
49
- D as ScriptEditorToolbar,
50
- G as ScriptWorkspace,
51
- L as SheetTab,
48
+ L as RunScriptCommandButton,
49
+ U as ScriptEditorToolbar,
50
+ D as ScriptWorkspace,
51
+ G as SheetTab,
52
52
  j as SheetTabMenu,
53
- J as SheetZoomScale,
54
- Q as SheetsAllMenu,
55
- Z as SortFilterCommandButton,
56
- _ as StandaloneWorkbook,
57
- q as StatusBar,
53
+ q as SheetZoomScale,
54
+ J as SheetsAllMenu,
55
+ Q as SortFilterCommandButton,
56
+ Z as StatusBar,
57
+ _ as Studio,
58
58
  K as StyledStrokeIcon,
59
59
  X as TableStyleCanvasPreview,
60
60
  Y as TableStyleOptionsPanel,
@@ -67,8 +67,8 @@ export {
67
67
  sa as ThemeSelectPanel,
68
68
  ma as ThemeSelectPopupButton,
69
69
  ra as UnderlineCommandButton,
70
- la as UndoRedoCommandButton,
71
- ua as VerticalAlignCommandButton,
70
+ ua as UndoRedoCommandButton,
71
+ la as VerticalAlignCommandButton,
72
72
  da as ViewGridLinesCommandButton,
73
73
  Ca as ViewHeadingsCommandButton,
74
74
  ba as WalkingCopyCommandButton,
@@ -79,8 +79,9 @@ export {
79
79
  pa as WorkbookTitle,
80
80
  Ta as WorkbookViewCommandButton,
81
81
  ca as _WorkbookIO,
82
- Fa as createGridStyleFromMUITheme,
83
- Pa as defaultNewWorkbook,
84
- Wa as useResolvedThemeMode,
85
- ha as useWorkbookCommands
82
+ Pa as createGridStyleFromMUITheme,
83
+ Fa as defaultNewWorkbook,
84
+ Wa as renderWorkbookLoadingPanel,
85
+ ha as useResolvedThemeMode,
86
+ ya as useWorkbookCommands
86
87
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,9 +1,9 @@
1
1
  import { jsx as o, jsxs as k } from "react/jsx-runtime";
2
2
  import { memo as D, useState as i, useCallback as N } from "react";
3
3
  import { Box as j, FormControlLabel as w, Checkbox as F } from "@mui/material";
4
- import { T as v, a1 as y, aj as B } from "./D2KNRJIkSezOwiMf.mjs";
4
+ import { T as v, a1 as y, aj as B } from "./DJBG1-2QdNbZKe_4.mjs";
5
5
  /**
6
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
6
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
7
7
  *
8
8
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
9
9
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  Name: @sheetxl/utils-mui
2
- Version: 0.4.6
2
+ Version: 0.4.8
3
3
  License: SEE LICENSE IN <LICENSE>
4
4
  Private: false
5
5
  Description: Utilities MUI - Utilities for MUI Components needed for all SheetXL components.
@@ -148,7 +148,7 @@ Licensed under the **MIT** license
148
148
  ---
149
149
 
150
150
  Name: @sheetxl/react
151
- Version: 0.4.6
151
+ Version: 0.4.8
152
152
  License: SEE LICENSE IN <LICENSE>
153
153
  Private: false
154
154
  Description: React - React components needed to build advanced grid and spreadsheet UIs.
@@ -434,7 +434,7 @@ terms above.
434
434
  ---
435
435
 
436
436
  Name: @sheetxl/io
437
- Version: 0.4.6
437
+ Version: 0.4.8
438
438
  License: SEE LICENSE IN <LICENSE>
439
439
  Private: false
440
440
  Description: IO - Import/Export Libraries for SheetXL.
@@ -880,7 +880,7 @@ License Copyright:
880
880
  ---
881
881
 
882
882
  Name: @sheetxl/utils
883
- Version: 0.4.6
883
+ Version: 0.4.8
884
884
  License: SEE LICENSE IN <LICENSE>
885
885
  Private: false
886
886
  Description: Utils - Utilities used by most SheetXL components.
@@ -902,7 +902,7 @@ https://www.sheetxl.com/licensing-pricing
902
902
  ---
903
903
 
904
904
  Name: @sheetxl/utils-react
905
- Version: 0.4.6
905
+ Version: 0.4.8
906
906
  License: SEE LICENSE IN <LICENSE>
907
907
  Private: false
908
908
  Description: Utils React - Utilities for React capabilities needed for all SheetXL components.
@@ -993,7 +993,7 @@ SOFTWARE.
993
993
  ---
994
994
 
995
995
  Name: @sheetxl/grid-react
996
- Version: 0.4.6
996
+ Version: 0.4.8
997
997
  License: SEE LICENSE IN <LICENSE>
998
998
  Private: false
999
999
  Description: Grid React - Advanced grid component for React
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
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.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
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), a = 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 += a + e4(r4[i3], n4 + 1, o2 + 1, true), i3 < t3 - 1 && (f3 += ",\n");
26
+ return f3 += "\n" + i2 + "]", f3;
27
+ }
28
+ const s = Object.keys(r4), u = s.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 = s[t3];
35
+ c += a + 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?.createWorkbookOptions ?? {}, 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.6
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.8
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.