@sheetxl/studio-mui 0.3.17 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/browser/cjs/{DwDxn-CNljZzVT1A.cjs → -Z_xfLHIzayq6e-C.cjs} +2 -2
  2. package/browser/cjs/{LuveH2FlUiHGFdEo.cjs → 5EMNCalBy5T7Qv40.cjs} +1 -1
  3. package/browser/cjs/{tRDmcs5sNqgwsPcc.cjs → B-i9az2r-j4BoodW.cjs} +1 -1
  4. package/browser/cjs/{CpjgyIT06xS_g-RI.cjs → B98cTi8NhLFwk-0Q.cjs} +2 -2
  5. package/browser/cjs/{Dy6OQFVhwFO_v_rL.cjs → BFe0zJbC0Wy4fqLf.cjs} +1 -1
  6. package/browser/cjs/{vgm3myHD1SVA4Oal.cjs → Bg1sVEitsy9Ktlo9.cjs} +1 -1
  7. package/browser/cjs/{D-0gYov1wyCtp4ZX.cjs → BsJ8nFqSJFJDsuan.cjs} +2 -2
  8. package/browser/cjs/{Dk3opGiX0kIIcJN4.cjs → BvCYlgtHsPgA_aNK.cjs} +2 -2
  9. package/browser/cjs/{CIHCV7NTmzi3k8gl.cjs → ByHotNG2i_czKEr8.cjs} +2 -2
  10. package/browser/cjs/{D9zHP8uxvUVS8Gid.cjs → C-ElWpjJiAYCYYvU.cjs} +2 -2
  11. package/browser/cjs/{DXSp4lOLFHBJmXwL.cjs → C-oc8im_PZRCQOvZ.cjs} +1 -1
  12. package/browser/cjs/{_mKLoeTMKAtAbWoZ.cjs → C645WCVpMGicXgBM.cjs} +1 -1
  13. package/browser/cjs/{CKUzVyrC7_Eq3M5O.cjs → CF_a0DpvEBsJCpgQ.cjs} +3 -3
  14. package/browser/cjs/CLJkEcejZPl006p2.cjs +87 -0
  15. package/browser/cjs/{XyTji7yypa56X6GA.cjs → COX8k8pyTOk8BoD-.cjs} +1 -1
  16. package/browser/cjs/{BgSiicbcautP-dJN.cjs → CRV08682FzN5ew39.cjs} +3 -3
  17. package/browser/cjs/{C08ng5ahasoyzwZg.cjs → CTlLfk6a9CkzbQNt.cjs} +4 -4
  18. package/browser/cjs/{DdBweIBk4jEt5Tue.cjs → CUn6t8lfcG9cPH1h.cjs} +2 -2
  19. package/browser/cjs/{DLxWeoRObtw9vhq0.cjs → D6E9xEe6tjbfqtEm.cjs} +2 -2
  20. package/browser/cjs/{DFFgZqn8T517K-D8.cjs → D92iJHsZJX_wZ52_.cjs} +2 -2
  21. package/browser/cjs/{Tfh1HV0EKshDqS7E.cjs → DW0q0AyrJofzss0y.cjs} +4 -4
  22. package/browser/cjs/{DIxETliPSfTmAXr4.cjs → DggumD9iQqyO3FFa.cjs} +2 -2
  23. package/browser/cjs/{D1evviVgpMSnh_ps.cjs → DkMBDN---q9jUa8V.cjs} +2 -2
  24. package/browser/cjs/{DFngnyWyXGuxhIPZ.cjs → _dSiOxKU18SdUtnS.cjs} +1 -1
  25. package/browser/cjs/index.cjs +2 -2
  26. package/browser/cjs/{Nw__gRJX4sl4Tt7R.cjs → oyaxmxAEZ4VTVk_8.cjs} +1 -1
  27. package/browser/esm/{C3hl8685OyiU8zAf.mjs → 8JD53VBt79P-aa-S.mjs} +3 -3
  28. package/browser/esm/{C8fEUlANNzawC6Xc.mjs → B97bNoiD5vSlwEfq.mjs} +2 -2
  29. package/browser/esm/{n1kGJdvXBEjFxVrb.mjs → BB_9iof-6U8Cb15P.mjs} +6 -6
  30. package/browser/esm/{BLZ3EOMzZsWJC5S0.mjs → BHegaWai1nWBR-L9.mjs} +1 -1
  31. package/browser/esm/{n4POnl7MgS65q2ii.mjs → BKhb4mVxGfN4CIjS.mjs} +1 -1
  32. package/browser/esm/{Bmj8uXB3KL06M3vv.mjs → BVzvMC6p5FNP8qK9.mjs} +12 -12
  33. package/browser/esm/{Bb3_PsjetSKWrSf4.mjs → BbMrsjIGEkoLGak0.mjs} +2 -2
  34. package/browser/esm/{DS3c6eeicscsjbs7.mjs → Bi-5-fOHXnnsSVMH.mjs} +1 -1
  35. package/browser/esm/{B1xyEbeBWMDrAkzW.mjs → C4vC41vzQpD-qyMn.mjs} +2 -2
  36. package/browser/esm/{DG3efN-bUDufTTcd.mjs → C7UEqLxvuNIEbzcl.mjs} +8 -8
  37. package/browser/esm/{DNvhZrp6zzno9ElX.mjs → CJPeBWCN11PDgfKC.mjs} +1 -1
  38. package/browser/esm/{3Eldf7LDx05FkHEG.mjs → CLRvr3EDwZwQGFld.mjs} +2 -2
  39. package/browser/esm/{DzdpqKiOgiu_ZQX-.mjs → CTgZnJeqPNm0IneY.mjs} +1 -1
  40. package/browser/esm/{CZo42wxuAl9vQtuk.mjs → CUrgSndSnDCQKu6U.mjs} +2 -2
  41. package/browser/esm/{Bpmx44QjgJMzXvvV.mjs → CocO3lRUMqgv4AFJ.mjs} +1 -1
  42. package/browser/esm/{Cgjq8GJx8h_-7jJX.mjs → DLTm93l6QUeTWBtR.mjs} +12 -12
  43. package/browser/esm/{CPqpIblMYT0gACih.mjs → DNMEKvZSHupr35RK.mjs} +4 -4
  44. package/browser/esm/{baV4rsxFxEXHit-d.mjs → Dkm4CH9HTgLMuj1z.mjs} +1 -1
  45. package/browser/esm/{Drqavr0l8Ps0YhDs.mjs → Dkqkg5OonmopX_av.mjs} +2 -2
  46. package/browser/esm/{koW9BUpZv7gyrarA.mjs → DsLBuFS0K1zRuAH4.mjs} +1 -1
  47. package/browser/esm/{rFrvxYxzRtQImlgP.mjs → Dsvtw0sJ8FRtGm5n.mjs} +3 -3
  48. package/browser/esm/{D6hA19knB0fJKwzy.mjs → WKwjqHXBabDyAtuT.mjs} +1 -1
  49. package/browser/esm/{RN7ZcTUj1a9bkcAY.mjs → g4yV8ILPtVwy8tG5.mjs} +9064 -8978
  50. package/browser/esm/index.mjs +16 -16
  51. package/browser/esm/{DqZe7V3DGrIfMtGS.mjs → w-PhBfcFM6AZzwmU.mjs} +2 -2
  52. package/browser/esm/{C1NK6PMgHA6_q4G9.mjs → zHTatrVtfVuPg1ii.mjs} +40 -40
  53. package/licenses/dependencies.txt +27 -27
  54. package/node/esm/{DGQmWSiV5JY6DjZG.mjs → BB6SV3cXsfTqodbb.mjs} +1 -1
  55. package/node/esm/{DqsU4yd41ufRAcJO.mjs → Bp-CJA_tLpQ7pT29.mjs} +2 -2
  56. package/node/esm/{ClfVBIMfZxlVszUo.mjs → C06YIVEYQuR5Vaft.mjs} +1 -1
  57. package/node/esm/{Htj3MI9usVmunAcf.mjs → CCl1udn2B2Ht6C3g.mjs} +10 -10
  58. package/node/esm/{BsQ-Ov8Ivo8TI4I4.mjs → Ck6HJccOiajom0p5.mjs} +27 -27
  59. package/node/esm/{CsEHLeb8-XFUlGfX.mjs → Cnz7_lvzqMqQs08b.mjs} +5 -5
  60. package/node/esm/{DJQrHkF9BqUru6t4.mjs → CvIwaInnb5xT75rt.mjs} +1 -1
  61. package/node/esm/{ChMgfohJzzPyjfAB.mjs → D1cFV6R_lGB3yi1w.mjs} +1 -1
  62. package/node/esm/{Cg3P7DuUpeT1RkRa.mjs → D2h4VPChcK5U-a0T.mjs} +2 -2
  63. package/node/esm/{D9md0q9Q4quDfKMk.mjs → D7jQWNfNldioygd-.mjs} +1 -1
  64. package/node/esm/{F32Ja_r-VN01X2Xk.mjs → DHqKiBp0YDn-rVWv.mjs} +2 -2
  65. package/node/esm/{CDh2VQNMmOnfKFuW.mjs → DTiWaGbGjtZCRAj0.mjs} +7 -7
  66. package/node/esm/{UiulRLshJYUYX09M.mjs → DX4vRmhbc53oBNeg.mjs} +1 -1
  67. package/node/esm/{CddguVWsXQg-DXNA.mjs → DbrD7HDgNfqUmzdP.mjs} +1 -1
  68. package/node/esm/{D1iWuymmaACMQ4pm.mjs → DoRbSUaOrfZffDc4.mjs} +84 -84
  69. package/node/esm/{BmOWZuGmSqavyXpQ.mjs → RfwcTEhVvbPAxFAu.mjs} +2 -2
  70. package/node/esm/{CwwTvoSxzfri2KMt.mjs → Xa5E_4nSt8LVXkNA.mjs} +1 -1
  71. package/node/esm/{DPiWF4TL-A-tKNQt.mjs → Ya3wztkbwM47CwJy.mjs} +5 -5
  72. package/node/esm/{C8DPV_nnEWIiAiCB.mjs → acSFCnnB-d3FV6qe.mjs} +3 -3
  73. package/node/esm/{CHMPEyY4aAIYityN.mjs → bozut2iu1gZ26NCH.mjs} +2 -2
  74. package/node/esm/index.mjs +3986 -3887
  75. package/node/esm/{CN7f5Js_bPmrOhWa.mjs → lx40ksuj0iGDMKDe.mjs} +27 -27
  76. package/node/esm/{Dz0BG4WLmpimwD6q.mjs → tcog-VptibIIj9kW.mjs} +4 -4
  77. package/node/esm/{9g3lp6kZgtdHUkZX.mjs → uHvMtxBHa3ohbrOl.mjs} +12 -12
  78. package/package.json +8 -8
  79. package/browser/cjs/Cg143L74lLTSVqNN.cjs +0 -87
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -10,61 +10,61 @@ import h from "clsx";
10
10
  import { mergeRefs as u } from "react-merge-refs";
11
11
  import { ErrorBoundary as k } from "react-error-boundary";
12
12
  import { useSnackbar as g, SnackbarContent as b, SnackbarProvider as f } from "notistack";
13
- import { useTheme as w, ThemeProvider as x } from "@mui/material/styles/index.js";
14
- import { Card as y, CardActions as C, Typography as M, IconButton as W, Collapse as v, Box as L, SvgIcon as S, CssBaseline as E } from "@mui/material";
15
- import { PartialError as D, CommonUtils as F, UndoManager as T, Workbook as O } from "@sheetxl/sdk";
16
- import { _ as I, P, Z as A, q as N, t as j, F as R, p as _, W as U, k as H, WorkbookIO as G, X as K, U as z, O as $, a as q, N as B, Q as V, r as X, i as Z, V as J, AppearanceCommandButton as Q, e as Y, b as ee, E as oe, j as te, c as re, d as ne, useResolvedThemeMode as ae, ThemeMode as se, u as ie, y as le, w as ce, S as de, z as pe, x as me, HelpCommandButton as he, f as ue, g as ke, B as ge, h as be, WorkbookTitle as fe, WorkbookElement as we, M as xe, l as ye } from "./index.mjs";
13
+ import { useTheme as w, ThemeProvider as y } from "@mui/material/styles/index.js";
14
+ import { Card as x, CardActions as C, Typography as M, IconButton as W, Collapse as L, Box as v, SvgIcon as S, CssBaseline as E } from "@mui/material";
15
+ import { PartialError as D, CommonUtils as T, UndoManager as F, Workbook as O } from "@sheetxl/sdk";
16
+ import { _ as I, P, E as A, a as N, t as j, j as R, d as _, F as U, T as H, WorkbookIO as K, U as G, b as $, N as z, W as q, k as V, K as B, r as X, l as J, V as Y, AppearanceCommandButton as Z, e as Q, Y as ee, c as oe, X as te, f as re, g as ne, useResolvedThemeMode as ae, ThemeMode as se, u as ie, h as le, i as ce, L as de, m as pe, y as me, HelpCommandButton as he, o as ue, n as ke, $ as ge, p as be, WorkbookTitle as fe, WorkbookElement as we, M as ye, s as xe } from "./index.mjs";
17
17
  import { useMeasure as Ce } from "react-use";
18
- import { ExpandMore as Me, Close as We, CancelOutlined as ve } from "@mui/icons-material";
19
- const Le = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Se = n((t2, r2) => {
20
- const { id: n2, message: i2, iconVariant: l2, error: c2, hideIconVariant: d2, ...p2 } = t2, { closeSnackbar: m2 } = g(), u2 = w(), [k2, f2] = a(false), x2 = s(() => {
18
+ import { ExpandMore as Me, Close as We, CancelOutlined as Le } from "@mui/icons-material";
19
+ const ve = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, Se = n((t2, r2) => {
20
+ const { id: n2, message: i2, iconVariant: l2, error: c2, hideIconVariant: d2, ...p2 } = t2, { closeSnackbar: m2 } = g(), u2 = w(), [k2, f2] = a(false), y2 = s(() => {
21
21
  f2((e2) => !e2);
22
- }, []), L2 = s(() => {
22
+ }, []), v2 = s(() => {
23
23
  m2(n2);
24
24
  }, [n2, m2]), S2 = c2?.message || String(i2);
25
- return e(b, { ref: r2, className: h(Le.root, "error-snackbar"), children: o(y, { className: Le.card, style: { backgroundColor: u2.palette.error.dark, border: `1px solid ${u2.palette.error.dark}` }, children: [o(C, { className: Le.actionRoot, children: [d2 ? null : l2?.error, e(M, { variant: "body2", component: "div", className: Le.typography, style: { color: u2.palette.text.primary }, children: S2 }), e("div", { style: { flex: "1 1 auto" } }), o("div", { className: Le.icons, children: [c2 ? e(W, { "aria-label": "Show more", size: "small", className: h(Le.expand, { [Le.expandOpen]: k2 }), style: { color: u2.palette.action.active }, onClick: x2, children: e(Me, {}) }) : null, e(W, { size: "small", className: Le.expand, style: { color: u2.palette.action.active }, onClick: L2, children: e(We, { fontSize: "small" }) })] })] }), c2 ? e(v, { in: k2, timeout: "auto", unmountOnExit: true, children: e("div", { className: Le.stackTraceContainer, style: { backgroundColor: u2.palette.error.light, borderTop: `1px solid ${u2.palette.error.main}` }, children: e(I, { error: c2, hideLineNumbers: true }) }) }) : null] }) });
25
+ return e(b, { ref: r2, className: h(ve.root, "error-snackbar"), children: o(x, { className: ve.card, style: { backgroundColor: u2.palette.error.dark, border: `1px solid ${u2.palette.error.dark}` }, children: [o(C, { className: ve.actionRoot, children: [d2 ? null : l2?.error, e(M, { variant: "body2", component: "div", className: ve.typography, style: { color: u2.palette.text.primary }, children: S2 }), e("div", { style: { flex: "1 1 auto" } }), o("div", { className: ve.icons, children: [c2 ? e(W, { "aria-label": "Show more", size: "small", className: h(ve.expand, { [ve.expandOpen]: k2 }), style: { color: u2.palette.action.active }, onClick: y2, children: e(Me, {}) }) : null, e(W, { size: "small", className: ve.expand, style: { color: u2.palette.action.active }, onClick: v2, children: e(We, { fontSize: "small" }) })] })] }), c2 ? e(L, { in: k2, timeout: "auto", unmountOnExit: true, children: e("div", { className: ve.stackTraceContainer, style: { backgroundColor: u2.palette.error.light, borderTop: `1px solid ${u2.palette.error.main}` }, children: e(I, { error: c2, hideLineNumbers: true }) }) }) : null] }) });
26
26
  });
27
27
  Se.displayName = "ToastError";
28
28
  const Ee = i(n((r2, n2) => {
29
29
  const { commands: a2, commandHook: s2, scope: i2 = "workbook", disabled: c2 = false, ...d2 } = r2, p2 = P((r3) => {
30
30
  const n3 = { variant: j.Menuitem, parentFloat: r3.floatReference, commandHook: s2, scope: i2, disabled: c2 }, d3 = o(t, { children: [e(A, { ...n3, command: a2.getCommand("newWorkbook"), icon: N(e(R, {})) }), e(_, { orientation: "horizontal" }), e(A, { ...n3, command: a2.getCommand("openWorkbook"), icon: N(e(U, {})) }), e(H, { ...n3, commands: a2, quickCommand: "saveWorkbook", icon: N(e(q, {})), createPopupPanel: (o2) => {
31
31
  const t2 = { ...n3, parentFloat: o2.floatReference, scope: "saveWorkbook" }, r4 = [];
32
- return G.getWriteFormats().forEach((o3) => {
32
+ return K.getWriteFormats().forEach((o3) => {
33
33
  if (o3.isDefault) return;
34
34
  let n4 = null;
35
- "CSV" === o3.key ? n4 = N(e(K, {})) : "Excel" === o3.key && (n4 = N(e(z, {})));
35
+ "CSV" === o3.key ? n4 = N(e(G, {})) : "Excel" === o3.key && (n4 = N(e($, {})));
36
36
  const s3 = a2.getCommand(`saveWorkbookAs${o3.key}`);
37
37
  s3 ? r4.push(l(A, { ...t2, key: o3.key, command: s3, icon: n4 })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${o3.key}'`);
38
- }), $({ ...o2, children: r4, onClick: () => {
38
+ }), z({ ...o2, children: r4, onClick: () => {
39
39
  o2.closeFloatAll();
40
40
  } });
41
41
  } })] });
42
- return $({ ...r3, children: d3, onClick: (e2) => {
42
+ return z({ ...r3, children: d3, onClick: (e2) => {
43
43
  e2.isDefaultPrevented || r3.closeFloatAll();
44
44
  } });
45
45
  }, [c2, a2, s2, i2]), m2 = "File";
46
- return e(H, { commands: a2, disabled: c2, commandHook: s2, scope: i2, label: m2, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (e2) => `calc(1.25rem + ${e2.spacing(2)}px)` } }, ...d2, createPopupPanel: p2, icon: e(B, { className: "label", icon: null, label: m2 }) });
46
+ return e(H, { commands: a2, disabled: c2, commandHook: s2, scope: i2, label: m2, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (e2) => `calc(1.25rem + ${e2.spacing(2)}px)` } }, ...d2, createPopupPanel: p2, icon: e(V, { className: "label", icon: null, label: m2 }) });
47
47
  }));
48
48
  Ee.displayName = "StandaloneFileCommandButton";
49
- const De = e(Z, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: e(L, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: e(J, { onClick: () => {
49
+ const De = e(J, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: e(v, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: e(Y, { onClick: () => {
50
50
  window?.open("https://www.sheetxl.com", "_blank");
51
- }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Fe = i(n((t2, r2) => {
52
- const { commands: n2, workbook: a2, logo: s2 = De, mainElement: i2, showFileMenu: l2 = true, showAppearanceMenu: p2 = true, ...m2 } = t2, { reference: h2 } = V(), [k2, { width: g2 }] = Ce(), b2 = g2 < 530, f2 = l2 ? e(Ee, { commands: n2, commandHook: { beforeExecute() {
51
+ }, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Te = i(n((t2, r2) => {
52
+ const { commands: n2, workbook: a2, logo: s2 = De, mainElement: i2, showFileMenu: l2 = true, showAppearanceMenu: p2 = true, ...m2 } = t2, { reference: h2 } = B(), [k2, { width: g2 }] = Ce(), b2 = g2 < 530, f2 = l2 ? e(Ee, { commands: n2, commandHook: { beforeExecute() {
53
53
  h2?.closeAll();
54
54
  }, onError(e2, o2, t3) {
55
- } } }) : null, w2 = p2 ? e(Q, { commands: n2, commandHook: { beforeExecute() {
55
+ } } }) : null, w2 = p2 ? e(Z, { commands: n2, commandHook: { beforeExecute() {
56
56
  h2?.closeAll();
57
57
  }, onError(e2, o2, t3) {
58
- } } }) : null, x2 = c(() => ({ paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1) }), []), y2 = d(null);
59
- return e(L, { ref: u([y2, k2, r2]), ...m2, children: X({ commands: n2, renderCompact: b2, workbook: a2, selectWrapper: (t3) => o(L, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (e2) => e2.spacing(1), paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1) }, children: [o(L, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (e2) => e2.spacing(0.5) }, children: [s2, o(L, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (e2) => e2.spacing(0.25) }, children: [f2, t3] })] }), e(L, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: i2 }), e(L, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: b2 && !w2 ? "0 0 auto" : "1 1 100%" }, children: w2 })] }), selectProps: x2, toolbarsProps: { Home: { sx: {} } } }) });
58
+ } } }) : null, y2 = c(() => ({ paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1) }), []), x2 = d(null);
59
+ return e(v, { ref: u([x2, k2, r2]), ...m2, children: X({ commands: n2, renderCompact: b2, workbook: a2, selectWrapper: (t3) => o(v, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (e2) => e2.spacing(1), paddingLeft: (e2) => e2.spacing(1), paddingRight: (e2) => e2.spacing(1) }, children: [o(v, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (e2) => e2.spacing(0.5) }, children: [s2, o(v, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (e2) => e2.spacing(0.25) }, children: [f2, t3] })] }), e(v, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: i2 }), e(v, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: b2 && !w2 ? "0 0 auto" : "1 1 100%" }, children: w2 })] }), selectProps: y2, toolbarsProps: { Home: { sx: {} } } }) });
60
60
  }));
61
- Fe.displayName = "StandaloneWorkbookToolbar";
62
- const Te = i(n((n2, i2) => {
63
- const { workbook: l2, setWorkbook: m2, refWorkbookTitle: h2, titleWorkbook: u2, setWorkbookTitle: k2, titlePlaceHolder: b2, children: f2, undoManager: w2, commands: x2, importExportDisabled: y2, themeModeOptions: C2 } = n2, M2 = g(), v2 = M2 ? M2.enqueueSnackbar : () => {
64
- }, L2 = M2 ? M2.closeSnackbar : () => {
65
- }, [S2, E2] = a({ isMounted: false, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), F2 = s(() => {
61
+ Te.displayName = "StandaloneWorkbookToolbar";
62
+ const Fe = i(n((n2, i2) => {
63
+ const { workbook: l2, setWorkbook: m2, refWorkbookTitle: h2, titleWorkbook: u2, setWorkbookTitle: k2, titlePlaceHolder: b2, children: f2, undoManager: w2, commands: y2, importExportDisabled: x2, themeModeOptions: C2 } = n2, M2 = g(), L2 = M2 ? M2.enqueueSnackbar : () => {
64
+ }, v2 = M2 ? M2.closeSnackbar : () => {
65
+ }, [S2, E2] = a({ isMounted: false, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), T2 = s(() => {
66
66
  E2((e2) => ({ ...e2, isMounted: true }));
67
- }, []), T2 = s(() => {
67
+ }, []), F2 = s(() => {
68
68
  E2((e2) => ({ ...e2, isMounted: false }));
69
69
  }, []), O2 = le(), I2 = ce(), A2 = de(), N2 = d(/* @__PURE__ */ new Set()), j2 = c(() => {
70
70
  const o2 = (o3, t2) => {
@@ -73,8 +73,8 @@ const Te = i(n((n2, i2) => {
73
73
  const e2 = new Set(N2.current);
74
74
  e2.add(t2.onceKey), N2.current = e2;
75
75
  }
76
- const r2 = { variant: t2?.type ?? ue.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: t2?.preventDuplicate, persist: t2?.persist ?? t2?.type === ue.Error, action: (o4) => e(W, { onClick: () => L2(o4), children: e(ve, {}) }) };
77
- t2?.enqueueProps && Object.assign(r2, t2.enqueueProps), o3 || console.log("message is 'null'", t2), v2(o3 ?? "Alert", r2);
76
+ const r2 = { variant: t2?.type ?? ue.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: t2?.preventDuplicate, persist: t2?.persist ?? t2?.type === ue.Error, action: (o4) => e(W, { onClick: () => v2(o4), children: e(Le, {}) }) };
77
+ t2?.enqueueProps && Object.assign(r2, t2.enqueueProps), o3 || console.log("message is 'null'", t2), L2(o3 ?? "Alert", r2);
78
78
  };
79
79
  return { showMessage: o2, showBusy: (e2, o3) => {
80
80
  let t2 = null;
@@ -88,9 +88,9 @@ const Te = i(n((n2, i2) => {
88
88
  }), r2;
89
89
  }, showWindow: (e2, o3, t2) => {
90
90
  const r2 = { ...o3, onKeyDown: (e3) => {
91
- x2?.dispatchToFocusedCommand(e3), e3.isDefaultPrevented() || e3.isPropagationStopped() || o3?.onKeyDown?.(e3);
91
+ y2?.dispatchToFocusedCommand(e3), e3.isDefaultPrevented() || e3.isPropagationStopped() || o3?.onKeyDown?.(e3);
92
92
  } };
93
- return O2(e2, { sort: () => import("./CsEHLeb8-XFUlGfX.mjs"), numberFormat: () => import("./Dz0BG4WLmpimwD6q.mjs"), hyperlink: () => import("./CHMPEyY4aAIYityN.mjs"), comments: () => import("./BmOWZuGmSqavyXpQ.mjs"), find: () => import("./BsQ-Ov8Ivo8TI4I4.mjs"), tableDetails: () => import("./CN7f5Js_bPmrOhWa.mjs"), tableNew: () => import("./CDh2VQNMmOnfKFuW.mjs"), namedDetails: () => import("./DqsU4yd41ufRAcJO.mjs") }[e2], r2, t2);
93
+ return O2(e2, { sort: () => import("./Cnz7_lvzqMqQs08b.mjs"), numberFormat: () => import("./tcog-VptibIIj9kW.mjs"), hyperlink: () => import("./bozut2iu1gZ26NCH.mjs"), comments: () => import("./RfwcTEhVvbPAxFAu.mjs"), find: () => import("./Ck6HJccOiajom0p5.mjs"), tableDetails: () => import("./lx40ksuj0iGDMKDe.mjs"), tableNew: () => import("./DTiWaGbGjtZCRAj0.mjs"), namedDetails: () => import("./Bp-CJA_tLpQ7pT29.mjs") }[e2], r2, t2);
94
94
  }, showOptions: I2, showInputOptions: A2, showError: (e2) => {
95
95
  let t2, r2 = ue.Error, n3 = "Unknown Error";
96
96
  "string" == typeof e2 ? n3 = e2 : e2 instanceof Error && (t2 = e2, e2.message && (n3 = e2.message)), e2 instanceof D && (r2 = ue.Info), o2(n3, { type: r2, enqueueProps: { error: t2 } });
@@ -100,34 +100,34 @@ const Te = i(n((n2, i2) => {
100
100
  const { workbook: o2, setWorkbook: t2, importExportDisabled: n3, workbookTitle: a2 = "export", setWorkbookTitle: i3, notifier: l3, requestWorkbookTitle: d2, themeModeOptions: m3, undoManager: h3, commands: u3, onExecute: k3 } = e2, g2 = P(m3?.onForceModeChange, [m3?.onForceModeChange]), b3 = P(m3?.onForceLightGridChange, [m3?.onForceLightGridChange]), f3 = P(m3?.onForceLightImagesChange, [m3?.onForceLightImagesChange]), w3 = P(async (e3 = null, o3 = null) => {
101
101
  const t3 = [];
102
102
  let r2, n4 = null, a3 = null;
103
- if ("string" == typeof e3 ? a3 = e3 : n4 = e3, r2 = n4 ? e3 : await Y.openFileDialog(a3 ?? G.getAllReadFormatTypeAsString().join(",")), !r2) return null;
103
+ if ("string" == typeof e3 ? a3 = e3 : n4 = e3, r2 = n4 ? e3 : await Q.openFileDialog(a3 ?? K.getAllReadFormatTypeAsString().join(",")), !r2) return null;
104
104
  const s2 = { source: r2, constructorOptions: o3, onWarning: (e4) => {
105
105
  t3.push(e4);
106
- } }, i4 = await G.read(s2, l3);
106
+ } }, i4 = await K.read(s2, l3);
107
107
  return t3.length > 0 && (l3?.showMessage?.("Some elements were not able to be imported. See console for details."), console.warn("Import warnings:\n" + t3.join("\n"))), i4;
108
- }, [k3, l3, o2]), x3 = P(async (e3, o3, t3) => {
108
+ }, [k3, l3, o2]), y3 = P(async (e3, o3, t3) => {
109
109
  if (!o3 && d2) {
110
110
  const o4 = await d2("Enter Workbook name to " + (t3.isDefault ? "Save." : `Export as ${t3.description}.`));
111
- return null !== o4 && G.writeFile(o4, e3, { formatType: t3.key });
111
+ return null !== o4 && K.writeFile(o4, e3, { formatType: t3.key });
112
112
  }
113
- return G.writeFile(o3, e3, { formatType: t3.key });
114
- }, [l3, o2, d2]), y3 = s(() => ({ contains: (e3) => true, focus() {
113
+ return K.writeFile(o3, e3, { formatType: t3.key });
114
+ }, [l3, o2, d2]), x3 = s(() => ({ contains: (e3) => true, focus() {
115
115
  } }), []), C3 = c(() => {
116
116
  const e3 = [];
117
- n3 || (G.getWriteFormats().forEach((t3) => {
117
+ n3 || (K.getWriteFormats().forEach((t3) => {
118
118
  const r3 = t3.isDefault, n4 = { label: r3 ? "Save Workbook" : `Save Workbook as ${t3.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${t3.description}` }, tags: t3.tags, description: `Save the workbook to the desktop${r3 ? "" : ` as ${t3.description}`}.` };
119
- r3 && (n4.shortcut = { key: "S", modifiers: [oe.Ctrl] }, e3.push(new ee("saveWorkbookAs", y3, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [oe.Shift, oe.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
120
- x3(o2, null, t3).catch((e4) => {
119
+ r3 && (n4.shortcut = { key: "S", modifiers: [oe.Ctrl] }, e3.push(new ee("saveWorkbookAs", x3, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [oe.Shift, oe.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
120
+ y3(o2, null, t3).catch((e4) => {
121
121
  l3?.showError?.(e4);
122
122
  });
123
123
  })));
124
124
  const s2 = r3 ? "saveWorkbook" : `saveWorkbookAs${t3.key}`;
125
- e3.push(new ee(s2, y3, n4, (e4) => {
126
- x3(o2, e4 ?? a2, t3).catch((e5) => {
125
+ e3.push(new ee(s2, x3, n4, (e4) => {
126
+ y3(o2, e4 ?? a2, t3).catch((e5) => {
127
127
  l3?.showError?.(e5);
128
128
  });
129
129
  }));
130
- }), e3.push(new ee("openWorkbook", y3, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [oe.Ctrl] } }, async (e4 = null) => {
130
+ }), e3.push(new ee("openWorkbook", x3, { label: "Open Workbook…", scopedLabels: { workbook: "Open…" }, description: "Open a workbook from the desktop.", shortcut: { key: "O", modifiers: [oe.Ctrl] } }, async (e4 = null) => {
131
131
  const r3 = { date1904: o2.isDate1904(), ...o2.options };
132
132
  try {
133
133
  const n4 = await w3(e4, r3);
@@ -145,7 +145,7 @@ const Te = i(n((n2, i2) => {
145
145
  } catch (e5) {
146
146
  l3?.showError?.(e5);
147
147
  }
148
- })), e3.push(new ee("openWorkbookFromUrl", y3, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(e4) {
148
+ })), e3.push(new ee("openWorkbookFromUrl", x3, { label: "Open Workbook From Web", scopedLabels: { insert: "From Web", workbook: "From Web…" }, description: "Open a workbook from the web." }, async function(e4) {
149
149
  if (!e4) {
150
150
  const o3 = await l3?.showInputOptions?.({ title: "Open Workbook from the Web", description: "Enter the web address for the workbook to open.", inputLabel: "Address", initialValue: "https://www.sheetxl.com/examples/features-checklist.xlsx", inputProps: { style: { minWidth: "440px" } }, options: ["Open"] });
151
151
  if ("Open" !== o3.option) return;
@@ -154,20 +154,20 @@ const Te = i(n((n2, i2) => {
154
154
  e4 && console.log("openWorkbookFromUrl", e4);
155
155
  })));
156
156
  let r2 = [];
157
- return m3 && (r2 = [new ee("themeMode", y3, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", y3, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", y3, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", y3, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...e3, ...r2, new te("help", y3, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
158
- }), new te("showKeyboardShortcuts", y3, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [oe.Ctrl] } }, () => {
159
- }), new ee("gotoUrlGithub", y3, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
157
+ return m3 && (r2 = [new ee("themeMode", x3, { label: "Light/Dark Mode", scopedLabels: { appearance: "Light/Dark Mode" }, description: "Toggle the application styling between light and dark mode." }), new ee("defaultThemeMode", x3, { label: "Use System Light/Dark Mode", scopedLabels: { appearance: "Use System Default" }, description: "Use the system settings to determine styling for light and dark mode." }), new ee("forceLightGrid", x3, { label: "Force Light Grid", description: "Force the grid to always render in light mode if dark mode is being used. This is ensures that the grid will render the colors as specified in another tools (for example Excel)." }), new ee("forceLightImages", x3, { label: "Force Light Images", description: "Force the images to always render in light mode if dark mode is being used. This is ensures that the images will render the colors as specified in another tools (for example Excel). This only has any effect if the grid is in dark mode." })]), [...e3, ...r2, new te("help", x3, { label: "Show Help", description: "Provide Help.", shortcut: { key: "F1" } }, () => {
158
+ }), new te("showKeyboardShortcuts", x3, { label: "Keyboard Shortcuts", description: "Show keyboard shortcuts.", shortcut: { key: "/", modifiers: [oe.Ctrl] } }, () => {
159
+ }), new ee("gotoUrlGithub", x3, { label: "Github", description: "Download examples, explore source code, and leave a star." }, () => {
160
160
  window?.open("https://github.com/sheetxl/sheetxl");
161
- }), new ee("gotoUrlDiscord", y3, { label: "Discord", description: "Join our community on discord." }, () => {
161
+ }), new ee("gotoUrlDiscord", x3, { label: "Discord", description: "Join our community on discord." }, () => {
162
162
  window?.open("https://discord.gg/NTKdwUgK9p");
163
- }), new ee("gotoUrlDocumentation", y3, { label: "Documentation", description: "Read the documentation." }, () => {
163
+ }), new ee("gotoUrlDocumentation", x3, { label: "Documentation", description: "Read the documentation." }, () => {
164
164
  window?.open("https://www.sheetxl.com/docs");
165
- }), new ee("gotoUrlIssue", y3, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
165
+ }), new ee("gotoUrlIssue", x3, { label: "Create Issue", description: "Create an issue to identify a bug or a feature request." }, () => {
166
166
  window?.open("https://github.com/sheetxl/sheetxl/issues");
167
167
  })];
168
168
  }, [o2, a2, l3, n3, m3, u3, h3]), M3 = c(() => {
169
169
  let e3 = null;
170
- return e3 = u3 ? u3.createChildGroup(y3, "standaloneWorkbook", false) : new re(y3, "standaloneWorkbook"), e3.addCommands(C3, true), e3;
170
+ return e3 = u3 ? u3.createChildGroup(x3, "standaloneWorkbook", false) : new re(x3, "standaloneWorkbook"), e3.addCommands(C3, true), e3;
171
171
  }, [u3, C3]);
172
172
  ne({ manager: h3, commands: M3, notifier: l3 });
173
173
  const { themeMode: W2 } = ae();
@@ -184,10 +184,10 @@ const Te = i(n((n2, i2) => {
184
184
  f3(!m3.forceLightImages);
185
185
  });
186
186
  }, [W2, m3, C3]);
187
- const { showModal: v3 } = ie();
187
+ const { showModal: L3 } = ie();
188
188
  return p(() => {
189
189
  const e3 = () => new Promise((e4, o3) => {
190
- const t3 = r.lazy(() => import("./9g3lp6kZgtdHUkZX.mjs")), n4 = v3(t3, { title: "Shortcut Keys Reference", commands: M3, onDone: () => {
190
+ const t3 = r.lazy(() => import("./uHvMtxBHa3ohbrOl.mjs")), n4 = L3(t3, { title: "Shortcut Keys Reference", commands: M3, onDone: () => {
191
191
  n4.hide();
192
192
  }, TransitionProps: { onExited: () => {
193
193
  e4(true);
@@ -195,7 +195,7 @@ const Te = i(n((n2, i2) => {
195
195
  });
196
196
  M3.getCommand("showKeyboardShortcuts").updateCallback(() => e3()), M3.getCommand("help").updateCallback(() => e3());
197
197
  }, [C3, M3]), M3;
198
- })({ workbook: l2, setWorkbook: m2, importExportDisabled: y2, workbookTitle: u2, setWorkbookTitle: k2, commands: x2, requestWorkbookTitle: (e2) => new Promise((o2) => {
198
+ })({ workbook: l2, setWorkbook: m2, importExportDisabled: x2, workbookTitle: u2, setWorkbookTitle: k2, commands: y2, requestWorkbookTitle: (e2) => new Promise((o2) => {
199
199
  h2.current ? h2.current.requestWorkbookTitle((e3, t2) => {
200
200
  o2(e3);
201
201
  }, { selectAll: true, requestReason: e2 }) : o2(b2);
@@ -218,54 +218,54 @@ const Te = i(n((n2, i2) => {
218
218
  }, [S2]);
219
219
  const [U2, H2] = a(null);
220
220
  p(() => {
221
- 0 !== S2.starting.size || 0 !== S2.running.size ? H2(e(pe, { icon: e(me, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: true, label: S2.label, onMount: F2, onUnmount: T2, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : H2(null);
221
+ 0 !== S2.starting.size || 0 !== S2.running.size ? H2(e(pe, { icon: e(me, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: true, label: S2.label, onMount: T2, onUnmount: F2, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : H2(null);
222
222
  }, [S2.starting, S2.running]);
223
- const K2 = c(() => e(he, { commands: _2, disableHover: true, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [_2]), z2 = { notifier: j2, commands: _2 };
224
- return l2 && (z2.statusBarProps = { childrenEnd: K2 }), o(t, { children: [U2, f2 ? r.cloneElement(f2, z2) : null] });
223
+ const G2 = c(() => e(he, { commands: _2, disableHover: true, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [_2]), $2 = { notifier: j2, commands: _2 };
224
+ return l2 && ($2.statusBarProps = { childrenEnd: G2 }), o(t, { children: [U2, f2 ? r.cloneElement(f2, $2) : null] });
225
225
  }));
226
- Te.displayName = "SnackbarAndCommandsWrapper";
226
+ Fe.displayName = "SnackbarAndCommandsWrapper";
227
227
  const Oe = i(n((t2, r2) => {
228
- const { className: n2, sx: i2, style: l2, onElementLoad: g2, onError: b2, undoManager: w2, errorPanel: y2 = ke, onKeyDown: C2, workbook: M2, createWorkbookOptions: W2, onWorkbookChange: v2, logo: L2, importExportDisabled: D2 = false, themeModeOptions: I2, autoFocus: A2 = false, commands: N2, title: j2, onTitleChange: R2, titleProps: _2, ...U2 } = t2, H2 = d(null), K2 = P(v2, [v2]), z2 = P(R2 ?? _2?.onTitleChange, [R2 ?? _2?.onTitleChange]), $2 = _2?.placeHolder ?? "Untitled", q2 = I2?.forceMode, { themeMode: B2, source: V2 } = ae({ mode: q2 }), X2 = c(() => ({ ...I2, light: ge(false, F.deepMerge(I2?.theme ?? {}, I2?.light ?? {})), dark: ge(true, F.deepMerge(I2?.theme ?? {}, I2?.dark ?? {})) }), [I2]), Z2 = B2 === se.Dark, [J2, Q2] = a(null);
228
+ const { className: n2, sx: i2, style: l2, onElementLoad: g2, onError: b2, undoManager: w2, errorPanel: x2 = ke, onKeyDown: C2, workbook: M2, createWorkbookOptions: W2, onWorkbookChange: L2, logo: v2, importExportDisabled: D2 = false, themeModeOptions: I2, autoFocus: A2 = false, commands: N2, title: j2, onTitleChange: R2, titleProps: _2, ...U2 } = t2, H2 = d(null), G2 = P(L2, [L2]), $2 = P(R2 ?? _2?.onTitleChange, [R2 ?? _2?.onTitleChange]), z2 = _2?.placeHolder ?? "Untitled", q2 = I2?.forceMode, { themeMode: V2, source: B2 } = ae({ mode: q2 }), X2 = c(() => ({ ...I2, light: ge(false, T.deepMerge(I2?.theme ?? {}, I2?.light ?? {})), dark: ge(true, T.deepMerge(I2?.theme ?? {}, I2?.dark ?? {})) }), [I2]), J2 = V2 === se.Dark, [Y2, Z2] = a(null);
229
229
  p(() => {
230
- Q2(w2 ?? new T());
230
+ Z2(w2 ?? new F());
231
231
  }, [w2]);
232
- const [Y2, ee2] = a(null), [oe2, te2] = a(null), ne2 = be();
232
+ const [Q2, ee2] = a(null), [oe2, te2] = a(null), ne2 = be();
233
233
  m(() => {
234
- if (!M2 || 0 === Object.keys(M2).length && !F.isPromiseLike(M2)) {
234
+ if (!M2 || 0 === Object.keys(M2).length && !T.isPromiseLike(M2)) {
235
235
  const e2 = { theme: ne2.getDefaultTheme(), ...W2 };
236
236
  te2(new O(e2));
237
237
  } else te2(M2);
238
238
  }, [M2]), m(() => {
239
239
  if (!oe2) return;
240
- if (oe2 instanceof O) return ee2({ workbook: oe2 }), void (M2 !== oe2 && K2?.(oe2));
240
+ if (oe2 instanceof O) return ee2({ workbook: oe2 }), void (M2 !== oe2 && G2?.(oe2));
241
241
  (async () => {
242
242
  try {
243
243
  let e2, o2 = await Promise.resolve(oe2);
244
- o2 && o2.source && (o2 = await G.read(o2)), o2.workbook ? (me2(o2.title), e2 = o2.workbook) : e2 = o2, K2?.(e2), ee2({ workbook: e2 });
244
+ o2 && o2.source && (o2 = await K.read(o2)), o2.workbook ? (me2(o2.title), e2 = o2.workbook) : e2 = o2, G2?.(e2), ee2({ workbook: e2 });
245
245
  } catch (e2) {
246
- K2?.(null), ee2({ error: e2 });
246
+ G2?.(null), ee2({ error: e2 });
247
247
  }
248
248
  })();
249
249
  }, [oe2]);
250
250
  const [ie2, le2] = a(null);
251
251
  p(() => {
252
- if (!J2 || !Y2) return;
253
- J2.clear();
254
- const e2 = Y2?.workbook?.getTransactions();
252
+ if (!Y2 || !Q2) return;
253
+ Y2.clear();
254
+ const e2 = Q2?.workbook?.getTransactions();
255
255
  if (!e2) return;
256
256
  return e2.addListener({ onCommitEnd: (o2) => {
257
- o2.getDescription() ? J2.addUndoOperation({ description: o2.getDescription(), undo: () => (e2.revert(o2.getId()), ie2.source?.focus(), () => {
257
+ o2.getDescription() ? Y2.addUndoOperation({ description: o2.getDescription(), undo: () => (e2.revert(o2.getId()), ie2.source?.focus(), () => {
258
258
  e2.restore(o2.getId()), ie2.source?.focus();
259
259
  }) }) : console.warn("commit has no description", o2);
260
260
  } });
261
- }, [J2, Y2, ie2]);
261
+ }, [Y2, Q2, ie2]);
262
262
  const ce2 = P((e2) => {
263
- e2 ? J2.setRepeatableOperation({ description: e2.label(), repeat: async () => e2.execute() }) : J2.setRepeatableOperation(null);
264
- }, [J2]), [de2, me2] = a(j2 ?? _2?.title ?? "");
263
+ e2 ? Y2.setRepeatableOperation({ description: e2.label(), repeat: async () => e2.execute() }) : Y2.setRepeatableOperation(null);
264
+ }, [Y2]), [de2, me2] = a(j2 ?? _2?.title ?? "");
265
265
  p(() => {
266
266
  me2(j2 ?? _2?.title ?? "");
267
267
  }, [j2 ?? _2?.title]), p(() => {
268
- z2?.(de2);
268
+ $2?.(de2);
269
269
  }, [de2]);
270
270
  const [he2, ue2] = a(null), Ce2 = c(() => {
271
271
  const e2 = () => ({ contains: (e3) => true, focus() {
@@ -277,30 +277,30 @@ const Oe = i(n((t2, r2) => {
277
277
  p(() => {
278
278
  ie2 && A2 && ie2.source?.focus("object" == typeof A2 ? A2 : void 0);
279
279
  }, [ie2]);
280
- const We2 = d(null), ve2 = s((o2) => {
280
+ const We2 = d(null), Le2 = s((o2) => {
281
281
  let t3 = null;
282
- return _2?.hidden || (t3 = e(fe, { ..._2, style: { maxWidth: "100%", ..._2?.style }, workbook: H2.current, ref: We2, title: de2, placeHolder: $2, onTitleChange: (e2) => {
282
+ return _2?.hidden || (t3 = e(fe, { ..._2, style: { maxWidth: "100%", ..._2?.style }, workbook: H2.current, ref: We2, title: de2, placeHolder: z2, onTitleChange: (e2) => {
283
283
  me2(e2);
284
- } })), e(Fe, { ...o2, logo: L2, mainElement: t3, showFileMenu: !D2, showAppearanceMenu: !!(X2?.onForceLightGridChange || X2?.onForceLightImagesChange || X2?.onForceModeChange) });
285
- }, [L2, de2, _2, X2, D2, Ce2]);
284
+ } })), e(Te, { ...o2, logo: v2, mainElement: t3, showFileMenu: !D2, showAppearanceMenu: !!(X2?.onForceLightGridChange || X2?.onForceLightImagesChange || X2?.onForceModeChange) });
285
+ }, [v2, de2, _2, X2, D2, Ce2]);
286
286
  p(() => {
287
287
  const e2 = (e3) => e3.preventDefault();
288
288
  return H2.current?.addEventListener("wheel", e2, { passive: false }), () => {
289
289
  H2.current?.removeEventListener("wheel", e2);
290
290
  };
291
291
  }, []);
292
- const Le2 = c(() => e(pe, { transparentBackground: true, sx: i2, style: l2 }), [i2, l2]), Ee2 = s(({ error: o2 }) => (b2?.(o2), e(y2, { sx: i2, style: l2, error: o2 ?? "Unable to display empty workbook." })), [i2, l2, b2]), De2 = c(() => ({ ...i2, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (e2) => e2.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [i2]), Oe2 = u([H2, r2]), Ie = c(() => {
293
- if (!Y2) return Le2;
294
- if (Y2.error || !Y2.workbook) return Ee2({ error: Y2.error });
292
+ const ve2 = c(() => e(pe, { transparentBackground: true, sx: i2, style: l2 }), [i2, l2]), Ee2 = s(({ error: o2 }) => (b2?.(o2), e(x2, { sx: i2, style: l2, error: o2 ?? "Unable to display empty workbook." })), [i2, l2, b2]), De2 = c(() => ({ ...i2, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-MuiContent *": { fontFamily: (e2) => e2.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [i2]), Oe2 = u([H2, r2]), Ie = c(() => {
293
+ if (!Q2) return ve2;
294
+ if (Q2.error || !Q2.workbook) return Ee2({ error: Q2.error });
295
295
  let o2 = null, t3 = null, r3 = false;
296
- return X2 && (o2 = Z2 ? X2.dark : X2.light, t3 = Z2 && !X2.forceLightGrid ? X2.dark : X2.light, r3 = X2.forceLightImages), e(we, { sx: De2, style: l2, tabIndex: 0, autoFocus: true, workbook: Y2.workbook, ref: Oe2, renderToolbar: ve2, onElementLoad: Me2, onRepeatCommandChange: ce2, onKeyDown: (e2) => {
296
+ return X2 && (o2 = J2 ? X2.dark : X2.light, t3 = J2 && !X2.forceLightGrid ? X2.dark : X2.light, r3 = X2.forceLightImages), e(we, { sx: De2, style: l2, tabIndex: 0, autoFocus: true, workbook: Q2.workbook, ref: Oe2, renderToolbar: Le2, onElementLoad: Me2, onRepeatCommandChange: ce2, onKeyDown: (e2) => {
297
297
  C2?.(e2);
298
298
  }, gridTheme: t3, headersTheme: o2, forceLightImages: r3, className: h(n2, "sheetxl-workbook"), onContextMenu: (e2) => e2.preventDefault(), ...U2 }, "WorkbookElement");
299
- }, [Y2, de2, J2, Le2, X2, U2, ve2, De2]);
299
+ }, [Q2, de2, Y2, ve2, X2, U2, Le2, De2]);
300
300
  let Pe = e(k, { fallbackRender: Ee2, children: e(f, { maxSnack: 3, domRoot: he2, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (e2, o2, t3) => {
301
301
  H2.current?.focus();
302
- }, Components: { error: Se }, iconVariant: { success: e(S, { style: { marginRight: "8px" }, children: e("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: e(ye, { style: { marginRight: "8px" } }) }, children: e(xe, { children: e(Te, { workbook: Y2?.workbook, setWorkbook: te2, importExportDisabled: D2, titlePlaceHolder: $2, titleWorkbook: de2, setWorkbookTitle: me2, refWorkbookTitle: We2, commands: Ce2, undoManager: J2, themeModeOptions: X2, children: Ie }) }) }) });
303
- return X2 && (Pe = o(x, { theme: Z2 ? X2.dark : X2.light, children: [X2.cssBaseline ? e(E, {}) : null, Pe] })), Pe;
302
+ }, Components: { error: Se }, iconVariant: { success: e(S, { style: { marginRight: "8px" }, children: e("path", { d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" }) }), error: e(xe, { style: { marginRight: "8px" } }) }, children: e(ye, { children: e(Fe, { workbook: Q2?.workbook, setWorkbook: te2, importExportDisabled: D2, titlePlaceHolder: z2, titleWorkbook: de2, setWorkbookTitle: me2, refWorkbookTitle: We2, commands: Ce2, undoManager: Y2, themeModeOptions: X2, children: Ie }) }) }) });
303
+ return X2 && (Pe = o(y, { theme: J2 ? X2.dark : X2.light, children: [X2.cssBaseline ? e(E, {}) : null, Pe] })), Pe;
304
304
  }));
305
305
  Oe.displayName = "EagerStandaloneWorkbook";
306
306
  export {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -8,7 +8,7 @@ import { jsx as t } from "react/jsx-runtime";
8
8
  import { memo as n, useMemo as o, useState as e, useCallback as a } from "react";
9
9
  import { alpha as i, getOverlayAlpha as s } from "@mui/material/styles/index.js";
10
10
  import { Box as l, FormControl as r, TextField as p } from "@mui/material";
11
- import { P as c, o as m } from "./index.mjs";
11
+ import { P as c, x as m } from "./index.mjs";
12
12
  const u = ["Ok", "Cancel"], d = n((n2) => {
13
13
  const { initialComments: d2 = null, onUpdateComments: g, context: f, onOption: x, onValidateOption: h, onDone: C, options: O = u, defaultOption: y = O?.[0], cancelOption: w = "Cancel", sx: F, ...P } = n2, T = o(() => {
14
14
  const t2 = d2 ?? f?.()?.getComments();
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -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("./D9md0q9Q4quDfKMk.mjs"), x2 = import("./Cg3P7DuUpeT1RkRa.mjs");
903
+ const { password: f2, onWarning: m2, constructorOptions: T2 = {}, ...y2 } = h2 ?? {}, b2 = import("./D7jQWNfNldioygd-.mjs"), x2 = import("./D2h4VPChcK5U-a0T.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("./ChMgfohJzzPyjfAB.mjs").then((t3) => t3.i));
910
+ w2 || (v2 = import("./D1cFV6R_lGB3yi1w.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("./ClfVBIMfZxlVszUo.mjs");
1319
+ const { ReadableStream: t7 } = await import("./C06YIVEYQuR5Vaft.mjs");
1320
1320
  global.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("./D9md0q9Q4quDfKMk.mjs"), r2 = await s2.toJSON(true), n2 = o2.utils.book_new();
1424
+ const o2 = await import("./D7jQWNfNldioygd-.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,12 +1,12 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
7
  import { Workbook as e, IRange as t } from "@sheetxl/sdk";
8
8
  const n = async (e2, t2) => {
9
- const { trimLeadingBlankRow: n2 = true, trimLeadingBlankColumn: r2 = true, excludeHidden: o = false, sheetKey: s = null, papaParseConfig: a = {} } = t2 || {}, l = await import("./UiulRLshJYUYX09M.mjs").then((e3) => e3.p);
9
+ const { trimLeadingBlankRow: n2 = true, trimLeadingBlankColumn: r2 = true, excludeHidden: o = false, sheetKey: s = null, papaParseConfig: a = {} } = t2 || {}, l = await import("./DX4vRmhbc53oBNeg.mjs").then((e3) => e3.p);
10
10
  if (!e2) throw new Error("workbook must be specified");
11
11
  let i = null;
12
12
  if (null === s ? i = e2.getSelectedSheet() : "number" == typeof s ? i = e2.getSheets().search()[s] : "string" == typeof s && (i = e2.getSheets().getByName(s)), !i) throw new Error("invalid sheetKey specified");
@@ -27,7 +27,7 @@ const n = async (e2, t2) => {
27
27
  const f = { ...a }, g = l.unparse(d, f);
28
28
  return new TextEncoder().encode(g);
29
29
  }, r = async (n2, r2) => {
30
- const { papaParseConfig: o, setValuesOptions: s, constructorOptions: a } = r2 ?? {}, l = await import("./UiulRLshJYUYX09M.mjs").then((e2) => e2.p), i = new TextDecoder().decode(n2);
30
+ const { papaParseConfig: o, setValuesOptions: s, constructorOptions: a } = r2 ?? {}, l = await import("./DX4vRmhbc53oBNeg.mjs").then((e2) => e2.p), i = new TextDecoder().decode(n2);
31
31
  let c = -1;
32
32
  const d = new e(a), p = d.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: t.Orientation.Row }), u = r2?.onProgress;
33
33
  let f = 0;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.17
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.19
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -8,7 +8,7 @@ import { jsx as t, jsxs as n } from "react/jsx-runtime";
8
8
  import { memo as e, useMemo as o, useState as a, useCallback as i } from "react";
9
9
  import { alpha as s, getOverlayAlpha as l } from "@mui/material/styles/index.js";
10
10
  import { Box as r, FormControl as p, TextField as d } from "@mui/material";
11
- import { P as c, o as u } from "./index.mjs";
11
+ import { P as c, x as u } from "./index.mjs";
12
12
  const g = ["Ok", "Cancel"], m = e((e2) => {
13
13
  const { initialHyperlink: m2 = null, initialDisplay: f = null, onUpdateHyperlink: x, context: h, onOption: y, onValidateOption: T, onDone: k, options: C = g, defaultOption: O = C?.[0], cancelOption: P = "Cancel", sx: b, ...D } = e2, F = o(() => null !== (m2 ?? h?.()?.getHyperlink()), []), I = o(() => {
14
14
  let t2 = null, n2 = null;