@sheetxl/studio-mui 0.4.7 → 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 (86) hide show
  1. package/browser/cjs/{D2F5d-KqoX6K87V-.cjs → B9VxvukbesYhdTdA.cjs} +2 -2
  2. package/browser/cjs/{6ahm9L_JadTVTVKM.cjs → BA7HloSCkIjbJehh.cjs} +2 -2
  3. package/browser/cjs/BJN1sH87EvdxRpOd.cjs +12 -0
  4. package/browser/cjs/{ZmZmJzyx8f56di-3.cjs → BXt_O5ZSE2LpILmE.cjs} +3 -3
  5. package/browser/cjs/{C0rgKqf5wJGFF0Pn.cjs → BZUPFYECmoclErqJ.cjs} +2 -2
  6. package/browser/cjs/{DK6e7OLzcRQFuNAR.cjs → Ba7K1ZdzfgXpvg7P.cjs} +1 -1
  7. package/browser/cjs/{D0g5Yi1sFZedrm8U.cjs → C1NVH5bp1otDYHTC.cjs} +2 -2
  8. package/browser/cjs/{BbvqKmxn6Rum-bk6.cjs → C1wsDeHNaWiFlCZh.cjs} +6 -6
  9. package/browser/cjs/{sia-JpDs1OJx3UqA.cjs → C7YVj8dlBBL_wOM9.cjs} +1 -1
  10. package/browser/cjs/{DQRGxRYSOKOEByUm.cjs → CPtvdlvWWilf8Vep.cjs} +2 -2
  11. package/browser/cjs/{CnIoJa4rGjDIRDt_.cjs → CTokFqp-O-Uhl0LW.cjs} +1 -1
  12. package/browser/cjs/{x0gHCGm4Ua404wtj.cjs → CeRQ0zAM1Xczv7Gm.cjs} +2 -2
  13. package/browser/cjs/{CzHIyuIwxVQd9I_P.cjs → CiJS-8DphNBc_B9t.cjs} +2 -2
  14. package/browser/cjs/{x5DxzBmBRyolQW8p.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/{BULArqiBp4j5hxyx.cjs → DIKyZ-hkjeexXMzY.cjs} +1 -1
  18. package/browser/cjs/{ojTdNwa8dIIVVsYa.cjs → DNjiEJT8EtVysR2q.cjs} +1 -1
  19. package/browser/cjs/DTaaqEmMOO2QrfZF.cjs +87 -0
  20. package/browser/cjs/{CmX_3VyTiwTzdJhI.cjs → DkfygXp4ZgvLr3Yw.cjs} +2 -2
  21. package/browser/cjs/{BnHBKznz1O8QEPEE.cjs → NRKyHbS2cOhmoSox.cjs} +2 -2
  22. package/browser/cjs/{B5H9gNIHdOkSXNhX.cjs → dYzaARxDkWvC98N4.cjs} +1 -1
  23. package/browser/cjs/index.cjs +2 -2
  24. package/browser/cjs/{CArewr_CDpxiRR66.cjs → k4ZW48PahXgf2WQD.cjs} +1 -1
  25. package/browser/cjs/z_x7DWNrjsFa45Nh.cjs +6 -0
  26. package/browser/cjs/{D5hBXjLlXQHJlC_R.cjs → znXBy3z9cM6mLfO7.cjs} +1 -1
  27. package/browser/esm/ABtrpK9yMoHh6oPr.mjs +864 -0
  28. package/browser/esm/{CAgqX2BO2DbnSbS0.mjs → BG3qcQNY_GZt3VHB.mjs} +2 -2
  29. package/browser/esm/{C2ogJhUgj6tBd2Ze.mjs → BG8pohDV-03DRiXx.mjs} +13 -13
  30. package/browser/esm/{DBhNx8LLdmzo5Avs.mjs → BYftsJS-zhpjBq1k.mjs} +2 -2
  31. package/browser/esm/{CJ46XJddcTe9sn3Q.mjs → Bd0yhfN0EoE3uahv.mjs} +2 -2
  32. package/browser/esm/{ww-U-PglTS7Dtu3g.mjs → CAvo3HCB981DM5OF.mjs} +2 -2
  33. package/browser/esm/{CIEN20sJj9GKW3yE.mjs → CHNZIKe6NNdfdZOr.mjs} +1 -1
  34. package/browser/esm/{D0TAETGiUzsAjxPY.mjs → CJxkcbtPJNL_Gloc.mjs} +16 -16
  35. package/browser/esm/{PjZRDfcmhPXxjS2K.mjs → COU2bYtN0WpsI4PY.mjs} +1 -1
  36. package/browser/esm/{CevfhoT-xtAPuMWS.mjs → CWtcMBj9hNKDPN_v.mjs} +2 -2
  37. package/browser/esm/{CMiuTssM0lBVhuJS.mjs → CzXTFr7g6RYXxPM1.mjs} +6 -6
  38. package/browser/esm/{DJJZ-Mz0hVMWcKq8.mjs → DIxDU9Lfq3hPWFPl.mjs} +2 -2
  39. package/browser/esm/{BSQXNtEzcvD1nZ07.mjs → DJBG1-2QdNbZKe_4.mjs} +7971 -7961
  40. package/browser/esm/{vs0v9un-v2S9Jnlo.mjs → DL8nFbYrab-MKQmF.mjs} +4 -4
  41. package/browser/esm/{DXbciCQNKY4_r5Et.mjs → DWOLWdzUONLf1nae.mjs} +1 -1
  42. package/browser/esm/{CRCvnu8AKE7fJq05.mjs → DatUamvfhoqxlf8D.mjs} +2 -2
  43. package/browser/esm/{BRio-IBtU98oZf5v.mjs → DdVyaTOGGjRcamT8.mjs} +1 -1
  44. package/browser/esm/{BgQK3a-xYWlmvNDD.mjs → DdzcCdPQ_zZbqH2p.mjs} +2 -2
  45. package/browser/esm/{DHsxjQ98xXj3tRTJ.mjs → DoDQcFwr66QfXlYi.mjs} +1 -1
  46. package/browser/esm/{54Y6CqDofk0Ryz8B.mjs → DwLP5jvXe3rwi5r2.mjs} +3 -3
  47. package/browser/esm/{D3DJPz0louDEmOOg.mjs → Dz_iWDlTCAECBFSF.mjs} +7 -7
  48. package/browser/esm/{BUxotxJXTYkCxXGj.mjs → GYPCajr96WY2V_je.mjs} +1 -1
  49. package/browser/esm/{BadcJIpfDDb6Oula.mjs → eq540RbNc68EuIvk.mjs} +1 -1
  50. package/browser/esm/index.mjs +26 -25
  51. package/browser/esm/{Ip_kfHi5bomcrUk6.mjs → lk_a0cAuz5HJsQKm.mjs} +1 -1
  52. package/browser/esm/{B5ZVjFCvGZMlskn5.mjs → zMjWIB_wUonhfIad.mjs} +2 -2
  53. package/licenses/dependencies.txt +6 -6
  54. package/node/esm/{D9INCGl89jNGldla.mjs → 0CnPehqlnzEMqDVS.mjs} +1 -1
  55. package/node/esm/{BeiZhSUAA8NyCua8.mjs → BFxNXzqwDw9mTzzX.mjs} +1 -1
  56. package/node/esm/{CTgcSkLGEwSlcrWM.mjs → BKkexYXFkC5jI1D4.mjs} +1 -1
  57. package/node/esm/{RPVynz_rpfz9lkAQ.mjs → BXF0I0KwKWFhkYfM.mjs} +7 -7
  58. package/node/esm/{CiFa6r-hL-KsSx0I.mjs → BpwzpczDCk32RxzY.mjs} +1 -1
  59. package/node/esm/{C2SG9zLSqOGo3vCR.mjs → C74xiDKgQep36e0D.mjs} +5 -5
  60. package/node/esm/{DQfxpSzOhUDp1tes.mjs → CE2Wff_Jx8m74lIm.mjs} +1 -1
  61. package/node/esm/{BK_IZrqK3_Xz2rfA.mjs → CVy5rNrHziJk0Xxc.mjs} +1 -1
  62. package/node/esm/{B_-60k30GZTVFJCG.mjs → ChbG8iQjvpz3jA7T.mjs} +1 -1
  63. package/node/esm/{xQKjfFNNUiXBnIeG.mjs → Cjw96KqgMSYqwdC4.mjs} +1 -1
  64. package/node/esm/{1YvclnJ1eNd7ibD-.mjs → ClUQ790AiAE9XIkY.mjs} +1 -1
  65. package/node/esm/{ClSJpKVPQuTKvJtg.mjs → D-Wu9vRF_DAsmME4.mjs} +14 -14
  66. package/node/esm/{DEtck55hesGlXNoj.mjs → D0ePiwz-m6oHmiUC.mjs} +1 -1
  67. package/node/esm/{BdwO--U2p6MiyekK.mjs → D4GNfE_QjFh3c9sT.mjs} +1 -1
  68. package/node/esm/DBDh50h4q3jgV4kn.mjs +312 -0
  69. package/node/esm/{BcfUxPgXAV1if9NT.mjs → DCLyoPsjP2qTWbca.mjs} +1 -1
  70. package/node/esm/{HAKu1GEoK2wZht5-.mjs → DTp1I9pWjg3-VyHr.mjs} +2 -2
  71. package/node/esm/{CJhxYk5D_7vcD7QG.mjs → DkTySui4bQaZlvaP.mjs} +1 -1
  72. package/node/esm/{BkzwNHPzd0DSf0FL.mjs → Dm3qRN9_dIcmeeTB.mjs} +19 -19
  73. package/node/esm/{DW9fZUq5TEVyK05B.mjs → cZHe3atogTKTMgvX.mjs} +1 -1
  74. package/node/esm/index.mjs +231 -221
  75. package/node/esm/{CVheJHEYC7Bxc-m9.mjs → q2jb3DavC5pzi-mZ.mjs} +1 -1
  76. package/node/esm/{DKqYePntZxW3fh6x.mjs → wxIEXtYch2hJq7Rz.mjs} +1 -1
  77. package/node/esm/{C-WOcvkTBKxqQfEZ.mjs → zfM7ir63qYOCXQWg.mjs} +20 -20
  78. package/package.json +8 -8
  79. package/types/index.d.ts +118 -81
  80. package/browser/cjs/Bi9ti1geH1gSoYX2.cjs +0 -6
  81. package/browser/cjs/Bt1aI3vb7h-PM53z.cjs +0 -6
  82. package/browser/cjs/CxMQIx_-k_XCclct.cjs +0 -87
  83. package/browser/cjs/DFkeNYQoyIagEEQ9.cjs +0 -6
  84. package/browser/cjs/iEu_JcRmrN7o_Gnt.cjs +0 -12
  85. package/browser/esm/BQoEwYUY9khnxsGk.mjs +0 -860
  86. package/node/esm/BlIGyiGNQyArtF2L.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 "./BSQXNtEzcvD1nZ07.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 "./BQoEwYUY9khnxsGk.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.7
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.
@@ -2220,7 +2220,7 @@ function Yo(o) {
2220
2220
  return g;
2221
2221
  }, [n, e]), [s, c] = he(null);
2222
2222
  De(() => {
2223
- import("./DHsxjQ98xXj3tRTJ.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.7
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 "./BSQXNtEzcvD1nZ07.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.7
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.7
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 "./BSQXNtEzcvD1nZ07.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.7
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.7
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 "./BSQXNtEzcvD1nZ07.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 "./CMiuTssM0lBVhuJS.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.7
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 "./BSQXNtEzcvD1nZ07.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.7
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.7
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.7
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 "./BSQXNtEzcvD1nZ07.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.7
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.7
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 "./BSQXNtEzcvD1nZ07.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.7
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.7
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.7
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.7
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.7
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.7
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.7
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,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.7
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.7
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.7
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.
@@ -16,23 +16,23 @@ const r = async (e2, r2) => {
16
16
  }
17
17
  return function e4(r4, n4, o2, f2) {
18
18
  if (null == r4 || "object" != typeof r4) return JSON.stringify(r4);
19
- const i2 = t2(n4), s = t2(n4 + 1);
19
+ const i2 = t2(n4), a = t2(n4 + 1);
20
20
  if (Array.isArray(r4)) {
21
21
  const t3 = r4.length;
22
22
  if (0 === t3) return "[]";
23
23
  if (0 !== o2) return JSON.stringify(r4);
24
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");
25
+ for (let i3 = 0; i3 < t3; i3++) f3 += a + e4(r4[i3], n4 + 1, o2 + 1, true), i3 < t3 - 1 && (f3 += ",\n");
26
26
  return f3 += "\n" + i2 + "]", f3;
27
27
  }
28
- const a = Object.keys(r4), u = a.length;
28
+ const s = Object.keys(r4), u = s.length;
29
29
  if (0 === u) return "{}";
30
30
  if (!(o2 < 2)) return JSON.stringify(r4);
31
31
  let c = "{\n";
32
32
  f2 || (o2 = 0);
33
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");
34
+ const f3 = s[t3];
35
+ c += a + JSON.stringify(f3) + ": " + e4(r4[f3], n4 + 1, o2, false), t3 < u - 1 && (c += ",\n");
36
36
  }
37
37
  return c += "\n" + i2 + "}", c;
38
38
  }(e3, 0, 0, false);
@@ -69,7 +69,7 @@ const r = async (e2, r2) => {
69
69
  return (await new Response(f2).blob()).arrayBuffer();
70
70
  }(t));
71
71
  let o = new TextDecoder().decode(t);
72
- const f = JSON.parse(o), i = { ...n2?.constructorOptions ?? {}, json: f };
72
+ const f = JSON.parse(o), i = { ...n2?.createWorkbookOptions ?? {}, json: f };
73
73
  return new e(i);
74
74
  };
75
75
  export {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.7
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.
@@ -900,14 +900,14 @@ class wt {
900
900
  const vt = (t2, e2, s2) => {
901
901
  if (t2[0].value[0] === t2[1].value[0]) return e2;
902
902
  }, St = { colStart: 0, colEnd: 0, rowStart: 0, rowEnd: 0 }, Ct = Object.freeze(Object.defineProperty({ __proto__: null, fromBufferXLSX: async (t2, h2) => {
903
- const { password: f2, onWarning: m2, constructorOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./DKqYePntZxW3fh6x.mjs"), x2 = import("./HAKu1GEoK2wZht5-.mjs");
903
+ const { password: f2, onWarning: m2, createWorkbookOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./wxIEXtYch2hJq7Rz.mjs"), x2 = import("./DTp1I9pWjg3-VyHr.mjs");
904
904
  let w2 = null;
905
905
  try {
906
906
  w2 = new DOMParser();
907
907
  } catch (t3) {
908
908
  }
909
909
  let v2 = null;
910
- w2 || (v2 = import("./DQfxpSzOhUDp1tes.mjs").then((t3) => t3.i));
910
+ w2 || (v2 = import("./CE2Wff_Jx8m74lIm.mjs").then((t3) => t3.i));
911
911
  let S2 = null, C2 = null, k2 = null;
912
912
  try {
913
913
  const t3 = await Promise.all([b2, x2, v2]);
@@ -1316,7 +1316,7 @@ const vt = (t2, e2, s2) => {
1316
1316
  }, A2), a3 = ht(h4, P2), c3 = await (async (t6, e2 = 8388608) => {
1317
1317
  await (async () => {
1318
1318
  if ("undefined" == typeof ReadableStream) if ("undefined" == typeof window) {
1319
- const { ReadableStream: t7 } = await import("./CJhxYk5D_7vcD7QG.mjs");
1319
+ const { ReadableStream: t7 } = await import("./DkTySui4bQaZlvaP.mjs");
1320
1320
  globalThis.ReadableStream = t7;
1321
1321
  } else console.warn("Browser does not support ReadableStream; consider loading a polyfill.");
1322
1322
  })();
@@ -1421,7 +1421,7 @@ const vt = (t2, e2, s2) => {
1421
1421
  throw t3 instanceof p && (e2 = "Unable to open XLSX. There are too many rows or columns."), new Error(e2, { cause: t3 });
1422
1422
  }
1423
1423
  }, toBufferXLSX: async (s2, i2) => {
1424
- const o2 = await import("./DKqYePntZxW3fh6x.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
1424
+ const o2 = await import("./wxIEXtYch2hJq7Rz.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
1425
1425
  for (let i3 = 0; i3 < r2.sheets.length; i3++) {
1426
1426
  const a2 = r2.sheets[i3], l2 = o2.utils.json_to_sheet([{}]);
1427
1427
  o2.utils.book_append_sheet(n2, l2, a2.name);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.7
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.7
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.7
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.7
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.7
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.
@@ -10,27 +10,27 @@ import { useMeasure as s } from "react-use";
10
10
  import { DialogContent as r, Box as c } from "@mui/material";
11
11
  import { R as d, S as g, Z as m, P as p, A as h, NamedInput as u, RangeInput as x, d as f, TableStyleOptionsPanel as y, TableStylePreview as b, E as w, a as S, t as C, a0 as N } from "./index.mjs";
12
12
  const v = o((o2) => {
13
- const { title: v2, onHide: R, autoFocusSel: T = ".range-input input", context: F, notifier: D = d, command: H, commands: B, ...I } = o2, [P, j] = n(false), [z, L] = n(false), E = a(null), [O, A] = i((e2) => e2 + 1, 0), [M, { width: W }] = s();
13
+ const { title: v2, onHide: R, autoFocusSel: T = ".range-input input", context: F, notifier: D = d, command: H, commands: B, ...I } = o2, [P, j] = n(false), [z, L] = n(false), E = a(null), [O, A] = i((e2) => e2 + 1, 0), [M, { width: V }] = s();
14
14
  g(H);
15
- const V = F ?? H.context(), Z = V.table(), [k, q] = n(() => Z ? V.getNames().getRanges(Z.getRange()) : null), G = l(() => Z?.getName() ?? "", [Z]);
16
- m(V.table(), { onAnchorCoordsChange(e2) {
17
- q(V.getNames().getRanges(e2.getRange()));
15
+ const W = F ?? H.context(), Z = W.table(), [k, q] = n(() => Z ? W.getNames().getRanges(Z.getRange()) : null), G = l(() => Z?.getName() ?? "", [Z]);
16
+ m(W.table(), { onAnchorCoordsChange(e2) {
17
+ q(W.getNames().getRanges(e2.getRange()));
18
18
  }, onProtectedChange(e2) {
19
19
  A();
20
20
  } });
21
21
  const J = p((e2) => {
22
- V?.table().setName(e2);
23
- }, [V]), K = p((e2) => {
24
- V?.table().resize(e2.at(0));
25
- }, [V]);
22
+ W?.table().setName(e2);
23
+ }, [W]), K = p((e2) => {
24
+ W?.table().resize(e2.at(0));
25
+ }, [W]);
26
26
  let Q = null;
27
- return V.table() || (Q = e("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: e("div", { children: "No table selected" }) })), e(h, { title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, refWindow: E, onHide: R, onFocus: () => j(true), onBlur: (e2) => {
27
+ return W.table() || (Q = e("div", { style: { position: "absolute", top: "0", left: "0", width: "100%", height: "100%", opacity: 1, display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center", boxSizing: "border-box" }, children: e("div", { children: "No table selected" }) })), e(h, { ref: E, title: v2 ?? "Table Details", initialPosition: { y: "35" }, autoFocusSel: T, onHide: R, onFocus: () => j(true), onBlur: (e2) => {
28
28
  E?.current?.contains(e2.relatedTarget) || j(false);
29
- }, PaperProps: { elevation: P ? 3 : 1 }, ...I, children: t(r, { dividers: true, ref: M, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: V.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(u, { formName: "name", defaultInput: G, value: Z?.getName() ?? "No table", onChangeInput: J, onValidate: (e2) => {
30
- Z && Z.getName().toLowerCase() === e2.toLowerCase() || V?.getNames().validateName(e2);
29
+ }, PaperProps: { elevation: P ? 3 : 1 }, ...I, children: t(r, { dividers: true, ref: M, sx: { display: "flex", flexDirection: "column", position: "relative", paddingLeft: (e2) => e2.spacing(1.5), paddingRight: (e2) => e2.spacing(1.5) }, children: [t(c, { sx: { display: "flex", flexDirection: "column", transition: "opacity 60ms", opacity: W.table() ? 1 : 0 }, children: [e(c, { sx: { display: "flex", flexDirection: "row", gap: (e2) => e2.spacing(1) }, children: e(c, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingLeft: (e2) => e2.spacing(2), paddingRight: (e2) => e2.spacing(2) }, children: t(c, { sx: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [e(u, { formName: "name", defaultInput: G, value: Z?.getName() ?? "No table", onChangeInput: J, onValidate: (e2) => {
30
+ Z && Z.getName().toLowerCase() === e2.toLowerCase() || W?.getNames().validateName(e2);
31
31
  }, disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
32
32
  z || e2.target?.select(), L(true);
33
- } }), e(x, { formName: "range", value: k, onChangeInput: K, resolvedAddress: V.getNames().getRanges.bind(V.getNames()), disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
33
+ } }), e(x, { formName: "range", value: k, onChangeInput: K, resolvedAddress: W.getNames().getRanges.bind(W.getNames()), disabled: Z?.isProtected() ?? true, onFocus: (e2) => {
34
34
  z || e2.target?.select(), L(true);
35
35
  } })] }) }) }), t(c, { sx: { minHeight: "10px", flex: "1 1 100%", display: "flex", flexDirection: "column", gap: (e2) => e2.spacing(0.5), marginTop: (e2) => e2.spacing(1) }, children: [e(f, { orientation: "horizontal", sx: { marginTop: (e2) => e2.spacing(1.5), marginBottom: (e2) => e2.spacing(0.75) } }), e(y, { disabled: Z?.isProtected(), styleOptions: Z?.getStyleOptions() ?? null, onStyleOptionsChange: (e2) => {
36
36
  Z.updateStyleOptions(e2);
@@ -52,7 +52,7 @@ const v = o((o2) => {
52
52
  } catch (e3) {
53
53
  D.showError(e3);
54
54
  }
55
- } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(b, { table: Z, styles: V.styles(), bodyStyle: V.bodyStyle(), cellHeight: 30, isLive: true }) }), e(f, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(w, { variant: C.Menuitem, command: B.getCommand("convertTableToRange"), commandState: Z, icon: S(e(N, {})) }), e(w, { variant: C.Menuitem, commandState: Z, command: B.getCommand("deleteTable"), icon: S(e(N, {})) })] })] })] }), Q] }) });
55
+ } }), e(c, { sx: { display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", marginTop: (e2) => e2.spacing(2), marginBottom: (e2) => e2.spacing(1) }, children: e(b, { table: Z, styles: W.styles(), bodyStyle: W.bodyStyle(), cellHeight: 30, isLive: true }) }), e(f, { orientation: "horizontal" }), t(c, { sx: { display: "flex", flexDirection: "column", justifyContent: "center" }, children: [e(w, { variant: C.Menuitem, command: B.getCommand("convertTableToRange"), commandState: Z, icon: S(e(N, {})) }), e(w, { variant: C.Menuitem, commandState: Z, command: B.getCommand("deleteTable"), icon: S(e(N, {})) })] })] })] }), Q] }) });
56
56
  });
57
57
  export {
58
58
  v as TableDetailsWindow,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.4.7
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.7
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.