@sheetxl/studio-mui 0.3.18 → 0.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{CYlWk3JZne2DVAvj.cjs → -Z_xfLHIzayq6e-C.cjs} +2 -2
- package/browser/cjs/{CMQnksVdFNTGCcuL.cjs → 5EMNCalBy5T7Qv40.cjs} +1 -1
- package/browser/cjs/{CTVwwijxWyTj1-To.cjs → B-i9az2r-j4BoodW.cjs} +1 -1
- package/browser/cjs/{Dt-_lF8cbqIQeFDT.cjs → B98cTi8NhLFwk-0Q.cjs} +2 -2
- package/browser/cjs/{tzUSfMyL4rscAPOw.cjs → BFe0zJbC0Wy4fqLf.cjs} +1 -1
- package/browser/cjs/{DtfIBBSWwGnFn5da.cjs → Bg1sVEitsy9Ktlo9.cjs} +1 -1
- package/browser/cjs/{BWJGFEIQCBdTEl6B.cjs → BsJ8nFqSJFJDsuan.cjs} +2 -2
- package/browser/cjs/{BkCmVm6sA_avib9h.cjs → BvCYlgtHsPgA_aNK.cjs} +2 -2
- package/browser/cjs/{CKF-dWfZku6ebHzj.cjs → ByHotNG2i_czKEr8.cjs} +2 -2
- package/browser/cjs/{AQdyOmNsNjlI3zZX.cjs → C-ElWpjJiAYCYYvU.cjs} +2 -2
- package/browser/cjs/{CJQdEaRRBvm3gCqh.cjs → C-oc8im_PZRCQOvZ.cjs} +1 -1
- package/browser/cjs/{Clxk_WuA_PRn6KW9.cjs → C645WCVpMGicXgBM.cjs} +1 -1
- package/browser/cjs/{ckZ4F6Ezl3aCnh5Z.cjs → CF_a0DpvEBsJCpgQ.cjs} +3 -3
- package/browser/cjs/CLJkEcejZPl006p2.cjs +87 -0
- package/browser/cjs/{2OSBl2r7IttrCdtA.cjs → COX8k8pyTOk8BoD-.cjs} +1 -1
- package/browser/cjs/{BNyVm7np2bfgLvot.cjs → CRV08682FzN5ew39.cjs} +3 -3
- package/browser/cjs/{B5eQzk5WyXy8IAA8.cjs → CTlLfk6a9CkzbQNt.cjs} +4 -4
- package/browser/cjs/{Dsf7iNkpZ-XRvkri.cjs → CUn6t8lfcG9cPH1h.cjs} +2 -2
- package/browser/cjs/{B1SUaFgnsimk42bG.cjs → D6E9xEe6tjbfqtEm.cjs} +2 -2
- package/browser/cjs/{BpriOx_ASGcmQgAv.cjs → D92iJHsZJX_wZ52_.cjs} +2 -2
- package/browser/cjs/{D6MmQYTV_-2r6TNA.cjs → DW0q0AyrJofzss0y.cjs} +4 -4
- package/browser/cjs/{BBB1d8xHkY7ltQWw.cjs → DggumD9iQqyO3FFa.cjs} +2 -2
- package/browser/cjs/{CvVjY72BJUTQvkkP.cjs → DkMBDN---q9jUa8V.cjs} +2 -2
- package/browser/cjs/{BLcValtf97N7iwR5.cjs → _dSiOxKU18SdUtnS.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{C6UymVKpB0f_aOz4.cjs → oyaxmxAEZ4VTVk_8.cjs} +1 -1
- package/browser/esm/{B9JJu0VnIIYWT5lt.mjs → 8JD53VBt79P-aa-S.mjs} +3 -3
- package/browser/esm/{dyvLjt-D32wPaGoj.mjs → B97bNoiD5vSlwEfq.mjs} +2 -2
- package/browser/esm/{wk6kyK0HvQWZcF9v.mjs → BB_9iof-6U8Cb15P.mjs} +6 -6
- package/browser/esm/{B-rFSfciMrAt40UW.mjs → BHegaWai1nWBR-L9.mjs} +1 -1
- package/browser/esm/{kag30q_f2OyzNEpu.mjs → BKhb4mVxGfN4CIjS.mjs} +1 -1
- package/browser/esm/{CHo7Pe-qLRr6D7Zb.mjs → BVzvMC6p5FNP8qK9.mjs} +12 -12
- package/browser/esm/{IW0FN0JJihUjmUhl.mjs → BbMrsjIGEkoLGak0.mjs} +2 -2
- package/browser/esm/{COZ6r5iZ8TyK00AP.mjs → Bi-5-fOHXnnsSVMH.mjs} +1 -1
- package/browser/esm/{DAABl4IjtZoiB_ZM.mjs → C4vC41vzQpD-qyMn.mjs} +2 -2
- package/browser/esm/{DWhxo1LUgYMKPIl6.mjs → C7UEqLxvuNIEbzcl.mjs} +8 -8
- package/browser/esm/{B_GtXHanCbWYSw3u.mjs → CJPeBWCN11PDgfKC.mjs} +1 -1
- package/browser/esm/{Bm90soyGjT9Iu1LC.mjs → CLRvr3EDwZwQGFld.mjs} +2 -2
- package/browser/esm/{DRnTwfoTxrtXBFC7.mjs → CTgZnJeqPNm0IneY.mjs} +1 -1
- package/browser/esm/{D85IfpCrfIBFDqe8.mjs → CUrgSndSnDCQKu6U.mjs} +2 -2
- package/browser/esm/{CvsYx4oxcqsUUtrr.mjs → CocO3lRUMqgv4AFJ.mjs} +1 -1
- package/browser/esm/{DivcgoJCzXwVgCcg.mjs → DLTm93l6QUeTWBtR.mjs} +12 -12
- package/browser/esm/{DOtIN-2juYEPtB8A.mjs → DNMEKvZSHupr35RK.mjs} +4 -4
- package/browser/esm/{D5U2mNtg-sHAxwUo.mjs → Dkm4CH9HTgLMuj1z.mjs} +1 -1
- package/browser/esm/{BQQcYbNIADI7dSX4.mjs → Dkqkg5OonmopX_av.mjs} +2 -2
- package/browser/esm/{DrGVTfUVlughL_d0.mjs → DsLBuFS0K1zRuAH4.mjs} +1 -1
- package/browser/esm/{Cbz-BdHkkb_IX1IO.mjs → Dsvtw0sJ8FRtGm5n.mjs} +3 -3
- package/browser/esm/{qnS7YH5ry4bwFwmH.mjs → WKwjqHXBabDyAtuT.mjs} +1 -1
- package/browser/esm/{BJiFVIVZgstircY0.mjs → g4yV8ILPtVwy8tG5.mjs} +9064 -8978
- package/browser/esm/index.mjs +16 -16
- package/browser/esm/{D7VfJjp49e_MDYZN.mjs → w-PhBfcFM6AZzwmU.mjs} +2 -2
- package/browser/esm/{CvzuJmImMn0DC78K.mjs → zHTatrVtfVuPg1ii.mjs} +40 -40
- package/licenses/dependencies.txt +6 -6
- package/node/esm/{DNg39nLT0gHqmPlz.mjs → BB6SV3cXsfTqodbb.mjs} +1 -1
- package/node/esm/{DwU05hEZ7gmV6D81.mjs → Bp-CJA_tLpQ7pT29.mjs} +2 -2
- package/node/esm/{D37x0J7Pp7Ovk7U6.mjs → C06YIVEYQuR5Vaft.mjs} +1 -1
- package/node/esm/{Bjq64rdekFLv2Pk6.mjs → CCl1udn2B2Ht6C3g.mjs} +10 -10
- package/node/esm/{DCqwwPMoosi5CmNI.mjs → Ck6HJccOiajom0p5.mjs} +27 -27
- package/node/esm/{Bt5SOQDsxPC-egr0.mjs → Cnz7_lvzqMqQs08b.mjs} +5 -5
- package/node/esm/{2eYi7rphLL5H13FB.mjs → CvIwaInnb5xT75rt.mjs} +1 -1
- package/node/esm/{qTHmpgXiWFDs-DpN.mjs → D1cFV6R_lGB3yi1w.mjs} +1 -1
- package/node/esm/{BKWvOu_IeRMuC8Xk.mjs → D2h4VPChcK5U-a0T.mjs} +2 -2
- package/node/esm/{BMwY3wpsb5LC-oha.mjs → D7jQWNfNldioygd-.mjs} +1 -1
- package/node/esm/{DET5hZx0KEr6Xvkf.mjs → DHqKiBp0YDn-rVWv.mjs} +2 -2
- package/node/esm/{SDYCTfAbHCT1NUVT.mjs → DTiWaGbGjtZCRAj0.mjs} +7 -7
- package/node/esm/{DZTAP_s1UBqFpZWn.mjs → DX4vRmhbc53oBNeg.mjs} +1 -1
- package/node/esm/{CfC4Y9itv3zxli6a.mjs → DbrD7HDgNfqUmzdP.mjs} +1 -1
- package/node/esm/{CkG4RfZYIEpgMYHF.mjs → DoRbSUaOrfZffDc4.mjs} +84 -84
- package/node/esm/{BTyx75rKO81NBrpD.mjs → RfwcTEhVvbPAxFAu.mjs} +2 -2
- package/node/esm/{CVcSQEeEQOVzGI-N.mjs → Xa5E_4nSt8LVXkNA.mjs} +1 -1
- package/node/esm/{C-K5UNI5JYn9db2u.mjs → Ya3wztkbwM47CwJy.mjs} +5 -5
- package/node/esm/{hYDFyrnl76Q8TbVg.mjs → acSFCnnB-d3FV6qe.mjs} +3 -3
- package/node/esm/{DyLBbEMRFc3oCumP.mjs → bozut2iu1gZ26NCH.mjs} +2 -2
- package/node/esm/index.mjs +3986 -3887
- package/node/esm/{CN_9EpYFfSahI0tk.mjs → lx40ksuj0iGDMKDe.mjs} +27 -27
- package/node/esm/{BwhDUQgAy49WUvzS.mjs → tcog-VptibIIj9kW.mjs} +4 -4
- package/node/esm/{DOyVcSa6UGUQpjJ8.mjs → uHvMtxBHa3ohbrOl.mjs} +12 -12
- package/package.json +8 -8
- package/browser/cjs/B50pi_DZlxL44FZa.cjs +0 -87
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.
|
|
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
|
|
14
|
-
import { Card as
|
|
15
|
-
import { PartialError as D, CommonUtils as
|
|
16
|
-
import { _ as I, P,
|
|
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
|
|
19
|
-
const
|
|
20
|
-
const { id: n2, message: i2, iconVariant: l2, error: c2, hideIconVariant: d2, ...p2 } = t2, { closeSnackbar: m2 } = g(), u2 = w(), [k2, f2] = a(false),
|
|
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
|
-
}, []),
|
|
22
|
+
}, []), v2 = s(() => {
|
|
23
23
|
m2(n2);
|
|
24
24
|
}, [n2, m2]), S2 = c2?.message || String(i2);
|
|
25
|
-
return e(b, { ref: r2, className: h(
|
|
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
|
|
32
|
+
return K.getWriteFormats().forEach((o3) => {
|
|
33
33
|
if (o3.isDefault) return;
|
|
34
34
|
let n4 = null;
|
|
35
|
-
"CSV" === o3.key ? n4 = N(e(
|
|
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
|
-
}),
|
|
38
|
+
}), z({ ...o2, children: r4, onClick: () => {
|
|
39
39
|
o2.closeFloatAll();
|
|
40
40
|
} });
|
|
41
41
|
} })] });
|
|
42
|
-
return
|
|
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(
|
|
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(
|
|
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" } }) }) }),
|
|
52
|
-
const { commands: n2, workbook: a2, logo: s2 = De, mainElement: i2, showFileMenu: l2 = true, showAppearanceMenu: p2 = true, ...m2 } = t2, { reference: h2 } =
|
|
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(
|
|
55
|
+
} } }) : null, w2 = p2 ? e(Z, { commands: n2, commandHook: { beforeExecute() {
|
|
56
56
|
h2?.closeAll();
|
|
57
57
|
}, onError(e2, o2, t3) {
|
|
58
|
-
} } }) : null,
|
|
59
|
-
return e(
|
|
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
|
-
|
|
62
|
-
const
|
|
63
|
-
const { workbook: l2, setWorkbook: m2, refWorkbookTitle: h2, titleWorkbook: u2, setWorkbookTitle: k2, titlePlaceHolder: b2, children: f2, undoManager: w2, commands:
|
|
64
|
-
},
|
|
65
|
-
}, [S2, E2] = a({ isMounted: false, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }),
|
|
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
|
-
}, []),
|
|
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: () =>
|
|
77
|
-
t2?.enqueueProps && Object.assign(r2, t2.enqueueProps), o3 || console.log("message is 'null'", t2),
|
|
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
|
-
|
|
91
|
+
y2?.dispatchToFocusedCommand(e3), e3.isDefaultPrevented() || e3.isPropagationStopped() || o3?.onKeyDown?.(e3);
|
|
92
92
|
} };
|
|
93
|
-
return O2(e2, { sort: () => import("./
|
|
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
|
|
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
|
|
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]),
|
|
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 &&
|
|
111
|
+
return null !== o4 && K.writeFile(o4, e3, { formatType: t3.key });
|
|
112
112
|
}
|
|
113
|
-
return
|
|
114
|
-
}, [l3, o2, d2]),
|
|
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 || (
|
|
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",
|
|
120
|
-
|
|
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,
|
|
126
|
-
|
|
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",
|
|
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",
|
|
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",
|
|
158
|
-
}), new te("showKeyboardShortcuts",
|
|
159
|
-
}), new ee("gotoUrlGithub",
|
|
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",
|
|
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",
|
|
163
|
+
}), new ee("gotoUrlDocumentation", x3, { label: "Documentation", description: "Read the documentation." }, () => {
|
|
164
164
|
window?.open("https://www.sheetxl.com/docs");
|
|
165
|
-
}), new ee("gotoUrlIssue",
|
|
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(
|
|
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:
|
|
187
|
+
const { showModal: L3 } = ie();
|
|
188
188
|
return p(() => {
|
|
189
189
|
const e3 = () => new Promise((e4, o3) => {
|
|
190
|
-
const t3 = r.lazy(() => import("./
|
|
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:
|
|
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:
|
|
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
|
|
224
|
-
return l2 && (
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
230
|
+
Z2(w2 ?? new F());
|
|
231
231
|
}, [w2]);
|
|
232
|
-
const [
|
|
232
|
+
const [Q2, ee2] = a(null), [oe2, te2] = a(null), ne2 = be();
|
|
233
233
|
m(() => {
|
|
234
|
-
if (!M2 || 0 === Object.keys(M2).length && !
|
|
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 &&
|
|
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
|
|
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
|
-
|
|
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 (!
|
|
253
|
-
|
|
254
|
-
const e2 =
|
|
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() ?
|
|
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
|
-
}, [
|
|
261
|
+
}, [Y2, Q2, ie2]);
|
|
262
262
|
const ce2 = P((e2) => {
|
|
263
|
-
e2 ?
|
|
264
|
-
}, [
|
|
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
|
-
|
|
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),
|
|
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:
|
|
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(
|
|
285
|
-
}, [
|
|
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
|
|
293
|
-
if (!
|
|
294
|
-
if (
|
|
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 =
|
|
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
|
-
}, [
|
|
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(
|
|
303
|
-
return X2 && (Pe = o(
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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.
|
|
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("./
|
|
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("./
|
|
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.
|
|
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,
|
|
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;
|