@sheetxl/studio-mui 0.7.14 → 0.7.15
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/{DqwSkMX3TSwbvSfO.cjs → BIVHB4D4Gd1WeeLi.cjs} +8 -8
- package/browser/cjs/{Ij3b1ONhNaWLtkRT.cjs → BaYmI4hURso6vppd.cjs} +2 -2
- package/browser/cjs/{CYMqmv5IamB1x14k.cjs → BbIg9meUh8UPbj5t.cjs} +3 -3
- package/browser/cjs/{CHc92OjHJrS2B3rB.cjs → BrHqwHQYxx_QoXOn.cjs} +2 -2
- package/browser/cjs/{CAxeR5WYtM_OKUqg.cjs → Caqz5dZzQdiFjnRX.cjs} +2 -2
- package/browser/cjs/{CC-q_GCvhI_uweI4.cjs → DGqqkGBv1nc0eMrE.cjs} +1 -1
- package/browser/cjs/{CwHuP4ot4XxM1FbL.cjs → DzrSXv2CLKkFc2iG.cjs} +2 -2
- package/browser/cjs/{CN5q08lr4Coj9gzy.cjs → NsGloilMLNL8CAF_.cjs} +1 -1
- package/browser/cjs/{-SJdVflEYXFC2raH.cjs → awYqXNcQZFnOqrrv.cjs} +1 -1
- package/browser/cjs/{NpKL7qsDwzMarfjO.cjs → byyZab6_Rq6ZwIYg.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{BE0n-qrL7I0lr2f8.cjs → ivFORJI1ljTPQpJ2.cjs} +1 -1
- package/browser/cjs/{DjU4LQ7p0jFx8PsW.cjs → tvv7jDqgAa8czbFA.cjs} +1 -1
- package/browser/esm/{BzkODf-EDNHsbeYC.mjs → 5qhzMLdi7OBuLx6W.mjs} +1 -1
- package/browser/esm/{D8YtOXZWnL-YI48g.mjs → B9PEZFokQCC6zWwX.mjs} +451 -451
- package/browser/esm/{Cd127EllJy0H1x8s.mjs → BPgEvjsqtBt1B2oO.mjs} +3 -3
- package/browser/esm/{BlDN4JPF9n_TeCyQ.mjs → BZduiiKwWAowYSJN.mjs} +2 -2
- package/browser/esm/{aWQ7-rGmyvVU_nRK.mjs → C5hFZQeTMy4agdCE.mjs} +2 -2
- package/browser/esm/{CfkKWfDbYhDDort6.mjs → CDCURsqip4PNsKB-.mjs} +2 -2
- package/browser/esm/{DezB6LbrlA_MqNpH.mjs → CM0ti_Ro-ofiPiXw.mjs} +1 -1
- package/browser/esm/{BzS-7g64cdTk8pFd.mjs → DA9w10YtGRm1py3s.mjs} +1 -1
- package/browser/esm/{XGwUZoREuZ029cPM.mjs → DC4JZaW8S6fOywMr.mjs} +1 -1
- package/browser/esm/{BLiSCviFgWhD9SmC.mjs → DDCEwJwqSNFJukUi.mjs} +1 -1
- package/browser/esm/{DlZXGLXt7KBqpCgX.mjs → DduI_lE9r-_xxx2i.mjs} +2 -2
- package/browser/esm/{BNF5wwVTFO0bKhDb.mjs → ZdlfLFFcDkayt99n.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{CM8Jkahi0myGVt_v.mjs → BXf4P001RgMA5mab.mjs} +1 -1
- package/node/esm/{B6-CF_32FCaDZJDm.mjs → BqynBoGwxZpdEh30.mjs} +1 -1
- package/node/esm/{C8TcDhw9hCrJxqfJ.mjs → ByMXScn3ChpsqcAb.mjs} +1 -1
- package/node/esm/{C62EF6LSsPD4LAL6.mjs → By_L4EWHTADEr1Le.mjs} +1 -1
- package/node/esm/{4D3fLVzYqPTas9nR.mjs → C0dHRankOSZU4PNG.mjs} +1 -1
- package/node/esm/{xCdMLxN5xcpczFUI.mjs → D9ZBRNgjCgvdTHiX.mjs} +1 -1
- package/node/esm/{D9PLpUGQqMmk1V9n.mjs → DCsofbikio_bDbqi.mjs} +1 -1
- package/node/esm/{CeJ5myvgfYOUSKGq.mjs → DL58IAMOmJKHu2ka.mjs} +1 -1
- package/node/esm/{C21w0yQGlygcFqHI.mjs → DhGAUFPxQRjIn4QH.mjs} +1 -1
- package/node/esm/{CREPL1yvIjmYpU-r.mjs → N3PqbkXORQ3Qfzls.mjs} +1 -1
- package/node/esm/index.mjs +132 -132
- package/package.json +8 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Color as
|
|
1
|
+
import { Color as bt, IColor as wr, ITheme as Pl, CommonUtils as ft, IBorder as we, FontUtils as Rl, IFont as Wt, NumberFormat as ht, IFontCollection as Ml, IStyle as ce, ITextFrame as Nl, Table as _n, IFill as yn, CoordUtils as Fl, ISheet as Bt, LicenseManager as Eo, Workbook as On, TypesUtils as Bl } from "@sheetxl/sdk";
|
|
2
2
|
import { StyledStrokePath as Ol, StaticBorderRenderer as Un, useModelListener as We, createCellEditStateFromCell as Al, SheetCellEditor as Il, ScriptEditor as Ll, DefaultTaskPaneRegistry as tn, useTaskPaneArea as Sa, useDocThemes as Gn, TabStrip as zl, SheetElement as Hl, SheetScrollbar as Sr, PictureEditor as Wl, ChartEditor as jl, EmptyFrame as $l, LogoNoPaddingIcon as Vl, TaskPaneArea as _l, TaskPaneProvider as Ul } from "@sheetxl/react";
|
|
3
3
|
import { jsxs as H, Fragment as se, jsx as o } from "react/jsx-runtime";
|
|
4
|
-
import re, { memo as q, forwardRef as X, useMemo as W, useCallback as
|
|
5
|
-
import { Box as F, Typography as Pe, IconButton as
|
|
6
|
-
import { CommandButton as O, ExhibitDivider as Q, defaultCreatePopupPanel as ye, CommandPopupButton as Te, InputCommandButton as is, SimpleTooltip as
|
|
7
|
-
import { useCommands as Ie, CommandButtonType as ie, useCallbackRef as Y, ReactUtils as ln, KeyCodes as me, DynamicIcon as be, useCommand as
|
|
4
|
+
import re, { memo as q, forwardRef as X, useMemo as W, useCallback as U, isValidElement as qn, useState as _, useEffect as de, Suspense as va, useRef as fe, createElement as ve, useReducer as on, version as Gl, useLayoutEffect as kt, useImperativeHandle as ql, useContext as Kl, cloneElement as Xl, Component as Yl } from "react";
|
|
5
|
+
import { Box as F, Typography as Pe, IconButton as ct, MenuItem as ka, Divider as mo, Button as Jo, SvgIcon as Ca, Input as Kn, FormControlLabel as Nt, Checkbox as Ft, FormControl as Xn, TextField as Ta, InputAdornment as Zl, Slider as Ql, Paper as ro, CircularProgress as Jl, Select as es, Tabs as Ea, Tab as Da, useMediaQuery as Pa, Card as ts, CardActions as os, Collapse as ns, DialogTitle as rs, CssBaseline as as } from "@mui/material";
|
|
6
|
+
import { CommandButton as O, ExhibitDivider as Q, defaultCreatePopupPanel as ye, CommandPopupButton as Te, InputCommandButton as is, SimpleTooltip as Ct, LoadingPanel as jt, PopupButtonType as nt, ExhibitPopupIconButton as Tt, ExhibitPopupMenuItem as Yn, ExhibitMenuItem as dt, createStrokeShadowFilter as vr, strokeShadowFilter as ls, ExhibitTooltip as rt, ExhibitIconButton as xt, CommandTooltip as Zn, SimpleCommandPopupButton as qe, SelectedIcon as nn, LabelIcon as rn, ExhibitMenuHeader as ao, ContextMenu as Ra, ExhibitOptionButton as ss, hexToRGB as kr, useFloatStack as io, elevateColor as it, CommandToolbar as an, createScrollEdgeButton as cs, createScrollEndButton as ds, createScrollStartButton as ps, scrollbarTheming as us, StackTrace as ms, useResolvedThemeMode as Ma, ThemeMode as An, useModal as hs, useLazyWindow as gs, useOptionsDialog as fs, useInputDialog as bs, AnimatedTraversingEllipsisIcon as xs, ErrorPanel as ys, createExhibitTheme as Cr, ModalProvider as ws } from "@sheetxl/utils-mui";
|
|
7
|
+
import { useCommands as Ie, CommandButtonType as ie, useCallbackRef as Y, ReactUtils as ln, KeyCodes as me, DynamicIcon as be, useCommand as $t, useMouseDownAndHoldListener as Tr, useEditMode as sn, useNotifier as cn, NotifierType as vt, useImperativeElement as Et, SplitPane as Qn, RoundedTab as Ss, DefaultDynamicIconService as Jn, SimpleCommand as He, Command as ge, KeyModifiers as he, CommandGroup as er, ToolTipPlacement as ho, ScrollPane as vs, useUndoManager as ks, DefaultReactNotifier as Cs, NotifierProvider as Ts, UncaughtErrorBoundary as Es, ReactErrorBoundary as Ds } from "@sheetxl/utils-react";
|
|
8
8
|
import { useTheme as Xe, alpha as xe, getOverlayAlpha as Be, ThemeProvider as Na } from "@mui/material/styles";
|
|
9
9
|
import { alpha as Je } from "@mui/system";
|
|
10
|
-
import
|
|
11
|
-
import { CommonUtils as
|
|
12
|
-
import { IOUtils as
|
|
10
|
+
import Jt, { createPortal as Ps } from "react-dom";
|
|
11
|
+
import { CommonUtils as oo, ChainedError as In, ErrorUtils as Rs, ExpectedError as Ms, PartialError as Ns, UndoManager as Fs } from "@sheetxl/utils";
|
|
12
|
+
import { IOUtils as eo } from "@sheetxl/io";
|
|
13
13
|
/**
|
|
14
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.
|
|
14
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.15
|
|
15
15
|
*
|
|
16
16
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
17
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -37,7 +37,7 @@ const Bs = q(X((n, a) => {
|
|
|
37
37
|
if (!e) return null;
|
|
38
38
|
const m = { ...e };
|
|
39
39
|
return delete m.beforeExecute, m;
|
|
40
|
-
}, [e]), x =
|
|
40
|
+
}, [e]), x = U((m, d) => {
|
|
41
41
|
const p = { variant: ie.Menuitem, commandHook: e, scope: r, disabled: l }, f = H(se, { children: [o(O, { ...p, command: d.getCommand("formatAlignLeftToggle") }), o(O, { ...p, command: d.getCommand("formatAlignCenterToggle") }), o(O, { ...p, command: d.getCommand("formatAlignRightToggle") }), o(O, { ...p, command: d.getCommand("formatAlignJustifyToggle") }), o(Q, { orientation: "horizontal" }), o(O, { ...p, command: d.getCommand("formatAlignCenterContinuousToggle") }), o(O, { ...p, command: d.getCommand("formatAlignFillToggle") }), o(O, { ...p, command: d.getCommand("formatAlignDistributedHorizontalToggle") })] }), y = H(F, { sx: { className: Ce("quick-buttons"), display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (h) => h.stopPropagation(), children: [o(O, { command: d.getCommand("formatIndentDecrease"), commandHook: g, scope: r, disabled: l }), o(O, { command: d.getCommand("formatIndentIncrease"), commandHook: g, scope: r, disabled: l })] }), b = H(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...u, children: [y, o(Q, { orientation: "horizontal" }), o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: f })] });
|
|
42
42
|
return ye({ ...m, children: b });
|
|
43
43
|
}, [l, e]);
|
|
@@ -51,7 +51,7 @@ const Bs = q(X((n, a) => {
|
|
|
51
51
|
f && !f.disabled() && (!m && f?.state() && (m = f), d++);
|
|
52
52
|
}
|
|
53
53
|
return m = m ?? u[0], { activeCommand: m, allDisabled: d === 0 };
|
|
54
|
-
}, [u]), g =
|
|
54
|
+
}, [u]), g = U((x, m) => {
|
|
55
55
|
const d = { variant: ie.Menuitem, commandHook: e, scope: r, disabled: l }, p = H(se, { children: [o(O, { ...d, command: m.getCommand("formatAlignTopToggle") }), o(O, { ...d, command: m.getCommand("formatAlignMiddleToggle") }), o(O, { ...d, command: m.getCommand("formatAlignBottomToggle") }), o(Q, { orientation: "horizontal" }), o(O, { ...d, command: m.getCommand("formatAlignJustifyVerticalToggle") }), o(O, { ...d, command: m.getCommand("formatAlignDistributedVerticalToggle") })] });
|
|
56
56
|
return ye({ ...x, children: p });
|
|
57
57
|
}, [l, e]);
|
|
@@ -78,7 +78,7 @@ const Bs = q(X((n, a) => {
|
|
|
78
78
|
if (d?.state()) return d;
|
|
79
79
|
}
|
|
80
80
|
return u[1];
|
|
81
|
-
}, [u]), s =
|
|
81
|
+
}, [u]), s = U((x, m) => {
|
|
82
82
|
const d = { variant: ie.Menuitem, commandHook: e, scope: r, disabled: l }, p = H(se, { children: [o(O, { ...d, command: m.getCommand("formatTextRotate0") }), o(Q, { orientation: "horizontal" }), o(O, { ...d, command: m.getCommand("formatTextRotate315") }), o(O, { ...d, command: m.getCommand("formatTextRotate45") }), o(O, { ...d, command: m.getCommand("formatTextRotate90") }), o(O, { ...d, command: m.getCommand("formatTextRotate270") }), o(Q, { orientation: "horizontal" }), o(is, { ...d, command: m.getCommand("formatTextRotateCustom"), label: "Custom" })] });
|
|
83
83
|
return ye({ ...x, children: p });
|
|
84
84
|
}, [l, e, r, t]), g = W(() => (t.getCommand("formatTextRotateCustom")?.state() ?? 0) !== 0, [u]);
|
|
@@ -100,27 +100,27 @@ const Bs = q(X((n, a) => {
|
|
|
100
100
|
}), js = q((n) => {
|
|
101
101
|
const { selectedColor: a, onSelectColor: t, onPreviewColor: e, onClick: r, onKeyDown: l, onMouseOver: c, onMouseLeave: u, onFocus: i, style: s = ln.EmptyCssProperties, children: g, alphaWhite: x, alphaGrey: m, darkMode: d, alphaCheckSize: p = 7, ...f } = n;
|
|
102
102
|
if (!a) throw new Error("a selectedColor is required");
|
|
103
|
-
const y =
|
|
103
|
+
const y = U((C) => {
|
|
104
104
|
r?.(C), C.isDefaultPrevented() || (C.ctrlKey ? e?.(a.toRGBA()) : t?.(a.toRGBA()));
|
|
105
|
-
}, [t, e, r, a]), b =
|
|
105
|
+
}, [t, e, r, a]), b = U((C) => {
|
|
106
106
|
c?.(C), C.isDefaultPrevented() || e?.(a.toRGBA());
|
|
107
|
-
}, [e, c, a]), h =
|
|
107
|
+
}, [e, c, a]), h = U((C) => {
|
|
108
108
|
u?.(C), C.isDefaultPrevented();
|
|
109
|
-
}, [e, u]), w =
|
|
109
|
+
}, [e, u]), w = U((C) => {
|
|
110
110
|
i?.(C), C.isDefaultPrevented() || e?.(a.toRGBA());
|
|
111
|
-
}, [e, i, a]), v =
|
|
111
|
+
}, [e, i, a]), v = U((C) => {
|
|
112
112
|
l?.(C), C.isDefaultPrevented() || C.keyCode === me.Enter && t?.(a.toRGBA());
|
|
113
113
|
}, [t, l, a]), S = W(() => a.toRGBA().alpha === 1 ? null : o(Ws, { size: p, white: x, grey: m, style: { position: "absolute", width: "calc(100% - 1.5px)", height: "calc(100% - 1.5px)", top: "0.75px", left: "0.75px" } }), [x, m, a]);
|
|
114
114
|
return H("div", { style: { position: "absolute", height: "100%", width: "100%", top: "0px", left: "0px", cursor: "pointer", outline: "none", ...s }, tabIndex: 0, ...f, onClick: y, onKeyDown: v, onMouseOver: b, onMouseLeave: h, onFocus: w, children: [S, o("div", { style: { position: "absolute", top: "0px", left: "0px", height: "100%", width: "100%", background: a.toCSS(d) }, children: g })] });
|
|
115
115
|
}), tr = q((n) => {
|
|
116
|
-
const { schemeColorLookup: a, selectedColor: t, previewColor: e, colorDef: r, onSelectColorDef: l, onPreviewColorDef: c, swatchProps: u, defaultButtonSize: i = 24, isLarge: s = !1, compareRGB: g = !1, darkMode: x = !1, ...m } = n, d = new
|
|
116
|
+
const { schemeColorLookup: a, selectedColor: t, previewColor: e, colorDef: r, onSelectColorDef: l, onPreviewColorDef: c, swatchProps: u, defaultButtonSize: i = 24, isLarge: s = !1, compareRGB: g = !1, darkMode: x = !1, ...m } = n, d = new bt({ val: r.definition.val, adjs: r.definition.adjs }, (S) => a(S)), p = g ? d.toRGBA().toString() : d.toString(), f = t && (g ? t.toRGBA().toString() : t.toString()) === p, y = e && (g ? e.toRGBA().toString() : e.toString()) === p, b = [];
|
|
117
117
|
b.push({ [wr.AdjustmentType.Inv]: !0 }), b.push({ [wr.AdjustmentType.Alpha]: 100 });
|
|
118
|
-
const h = d.adjust(b), w =
|
|
118
|
+
const h = d.adjust(b), w = U(() => {
|
|
119
119
|
l?.(r);
|
|
120
|
-
}, [l, r]), v =
|
|
120
|
+
}, [l, r]), v = U((S) => {
|
|
121
121
|
c?.(S ? r : null);
|
|
122
122
|
}, [c, r]);
|
|
123
|
-
return o(
|
|
123
|
+
return o(Ct, { disableInteractive: !0, PopperProps: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } }, title: r.description, placement: "bottom-start", children: o("div", { style: { width: i * (s ? 1.2 : 1) + "px", height: i * (s ? 1.2 : 1) + "px", position: "relative", boxSizing: "border-box", cursor: "pointer", outline: "none" }, ...m, children: H(js, { selectedColor: d, title: null, onSelectColor: w, onPreviewColor: v, alphaCheckSize: s ? 9 : void 0, darkMode: x, ...u, children: [o("div", { style: { position: "absolute", width: "100%", height: "100%", top: "0px", left: "0px", pointerEvents: "none", borderColor: h.toRGBA(x).toString(), borderWidth: "2px", borderStyle: "solid", boxSizing: "border-box", opacity: f ? "1" : "0" } }), o("div", { style: { position: "absolute", width: 0.33 * i * (s ? 1.2 : 1) + "px", height: 0.33 * i * (s ? 1.2 : 1) + "px", left: "calc(50% - 0.5px)", top: "calc(50% - 0.5px)", transform: "translate(-50%,-50%)", pointerEvents: "none", background: h.toRGBA(x).toString(), borderRadius: "50%", opacity: y ? "1" : "0" } })] }) }) });
|
|
124
124
|
}), Lo = q((n) => {
|
|
125
125
|
const { title: a, schemeColorLookup: t, colorDefs: e, selectedColor: r, previewColor: l, onSelectColorDef: c, onPreviewColorDef: u, style: i = ln.EmptyCssProperties, compareRGB: s = !1, darkMode: g, swatchProps: x, ...m } = n;
|
|
126
126
|
let d;
|
|
@@ -129,9 +129,9 @@ const Bs = q(X((n, a) => {
|
|
|
129
129
|
d = [];
|
|
130
130
|
for (let h = 0; h < e.length; h++) d.push([e[h]]);
|
|
131
131
|
}
|
|
132
|
-
const p =
|
|
132
|
+
const p = U((h) => {
|
|
133
133
|
c?.(h);
|
|
134
|
-
}, [c]), f =
|
|
134
|
+
}, [c]), f = U((h) => {
|
|
135
135
|
u?.(h);
|
|
136
136
|
}, [u]), y = W(() => {
|
|
137
137
|
let h = [];
|
|
@@ -147,98 +147,98 @@ const Bs = q(X((n, a) => {
|
|
|
147
147
|
return h;
|
|
148
148
|
}, [d, r, l, p, f]), b = W(() => a ? o(Pe, { noWrap: !0, component: "div", sx: { display: "flex", flexShrink: "0", paddingLeft: "6px", paddingBottom: "4px", paddingTop: "0px", userSelect: "none", color: (h) => h.palette.text.secondary }, children: a }) : null, [a]);
|
|
149
149
|
return H(F, { style: { ...i }, children: [b, o(F, { sx: { display: "flex", flexDirection: "row", gap: "6px", marginBottom: "14px", flexWrap: "wrap", justifyContent: "flex-start" }, ...m, children: y })] });
|
|
150
|
-
}),
|
|
151
|
-
const c =
|
|
150
|
+
}), ot = (n, a) => ({ description: n, definition: { val: a, adjs: [] } }), Le = (n, a, t, e, r, l) => {
|
|
151
|
+
const c = ot(n, a);
|
|
152
152
|
e?.push(c);
|
|
153
|
-
const u = new
|
|
153
|
+
const u = new bt({ val: c.definition.val, adjs: c.definition.adjs }, t), i = u.toString();
|
|
154
154
|
r?.set(i, u);
|
|
155
155
|
const s = u.toRGBA().toString();
|
|
156
156
|
l?.set(s, u);
|
|
157
|
-
}, $s = re.lazy(() => import("./
|
|
158
|
-
const { selectedColor: t = null, previewColor: e = n.selectedColor ?? null, recentColors: r, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: u = 100, initialPanelType: i, defaultButtonSize: s = 24, width: g, onElementLoad: x, onDone: m, onEyeDropStart: d, onEyeDropStop: p, onPreviewColor: f, onPreviewColorImmediate: y, onSelectColor: b, autoColor: h, autoColorLabel: w = "Automatic", autoColorPosition: v = Ro.Start, compareRGB: S = !1, darkMode: C = !1, ...D } = n, E = e || t, P = Y(f, [f]), R = Y(y, [y]), k = Y(b, [b]), T = Y(d, [d]), N = Y(p, [p]), [I, B] = _(!1), L = Xe(), M = W(() => l ||
|
|
159
|
-
const
|
|
160
|
-
Le("Primary Background", "bg1", M, Re,
|
|
161
|
-
const Ke = Pl.buildPalette(Re, M,
|
|
162
|
-
if (Le("Dark Red", "C00000", M, Ee,
|
|
157
|
+
}, $s = re.lazy(() => import("./DduI_lE9r-_xxx2i.mjs")), Vs = q(X((n, a) => {
|
|
158
|
+
const { selectedColor: t = null, previewColor: e = n.selectedColor ?? null, recentColors: r, schemeLookup: l, disableAlpha: c = !1, previewDebounceTime: u = 100, initialPanelType: i, defaultButtonSize: s = 24, width: g, onElementLoad: x, onDone: m, onEyeDropStart: d, onEyeDropStop: p, onPreviewColor: f, onPreviewColorImmediate: y, onSelectColor: b, autoColor: h, autoColorLabel: w = "Automatic", autoColorPosition: v = Ro.Start, compareRGB: S = !1, darkMode: C = !1, ...D } = n, E = e || t, P = Y(f, [f]), R = Y(y, [y]), k = Y(b, [b]), T = Y(d, [d]), N = Y(p, [p]), [I, B] = _(!1), L = Xe(), M = W(() => l || bt.getDefaultSchemeLookup(), [l]), z = W(() => {
|
|
159
|
+
const G = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Re = [];
|
|
160
|
+
Le("Primary Background", "bg1", M, Re, G, le), Le("Primary Text", "tx1", M, Re, G, le), Le("Secondary Background", "bg2", M, Re, G, le), Le("Secondary Text", "tx2", M, Re, G, le), Le("Accent 1", "accent1", M, Re, G, le), Le("Accent 2", "accent2", M, Re, G, le), Le("Accent 3", "accent3", M, Re, G, le), Le("Accent 4", "accent4", M, Re, G, le), Le("Accent 5", "accent5", M, Re, G, le), Le("Accent 6", "accent6", M, Re, G, le);
|
|
161
|
+
const Ke = Pl.buildPalette(Re, M, G, le), Ee = [];
|
|
162
|
+
if (Le("Dark Red", "C00000", M, Ee, G, le), Le("Red", "FF0000", M, Ee, G, le), Le("Orange", "FFC000", M, Ee, G, le), Le("Yellow", "FFFF00", M, Ee, G, le), Le("Light Green", "92D050", M, Ee, G, le), Le("Green", "00B050", M, Ee, G, le), Le("Light Blue", "00B0F0", M, Ee, G, le), Le("Blue", "0070C0", M, Ee, G, le), Le("Dark Blue", "002060", M, Ee, G, le), c ? Le("Purple Is A Fruit", "7030A0", M, Ee, G, le) : Le("Transparent", "00000000", M, Ee, G, le), h) {
|
|
163
163
|
const Me = h.toString();
|
|
164
|
-
|
|
164
|
+
G.set(Me, h);
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const at = /* @__PURE__ */ new Map(), Ye = typeof r == "function" ? r() : r, pt = [];
|
|
167
167
|
for (let Me = 0; Ye && Me < Ye.length; Me++) {
|
|
168
168
|
const te = Ye[Me].toString();
|
|
169
|
-
|
|
169
|
+
at.set(te, Ye[Me]), pt.push({ description: "Recent " + (Me + 1), definition: { val: Ye[Me].toString() } });
|
|
170
170
|
}
|
|
171
|
-
return { primaryColors: Re, modifiedPresets: Ke, standardColors: Ee, recentColorsLimited:
|
|
171
|
+
return { primaryColors: Re, modifiedPresets: Ke, standardColors: Ee, recentColorsLimited: pt, mapAllPresets: G, mapAllPresetsRGB: le, mapRecent: at };
|
|
172
172
|
}, [M, r, c, h]);
|
|
173
173
|
de(() => {
|
|
174
174
|
x?.();
|
|
175
175
|
}, []);
|
|
176
|
-
const [ae, J] = _(!1), pe =
|
|
177
|
-
J((
|
|
176
|
+
const [ae, J] = _(!1), pe = U(() => {
|
|
177
|
+
J((G) => !G);
|
|
178
178
|
}, []);
|
|
179
179
|
de(() => {
|
|
180
180
|
if (i) J(i === Ls.Custom);
|
|
181
181
|
else if (t) {
|
|
182
|
-
let
|
|
183
|
-
le || (
|
|
184
|
-
const Re = z.mapRecent.get(
|
|
182
|
+
let G = t.toString(), le = z.mapAllPresets.get(G);
|
|
183
|
+
le || (G = t.toRGBA().toString(), le = z.mapAllPresetsRGB.get(G));
|
|
184
|
+
const Re = z.mapRecent.get(G);
|
|
185
185
|
J(!le && !Re);
|
|
186
186
|
}
|
|
187
187
|
}, [t, i]);
|
|
188
|
-
const j =
|
|
189
|
-
P?.(
|
|
188
|
+
const j = U(ft.debounce((G) => {
|
|
189
|
+
P?.(G);
|
|
190
190
|
}, u), [P, u]), [K, ee] = _();
|
|
191
191
|
de(() => {
|
|
192
192
|
ee(e || t);
|
|
193
193
|
}, [e, t]);
|
|
194
|
-
const V = Y((
|
|
195
|
-
R && (R(
|
|
196
|
-
}, [R]), A = Y((
|
|
197
|
-
V(
|
|
198
|
-
}, [M]), Z =
|
|
199
|
-
|
|
200
|
-
}, []), oe = Y((
|
|
194
|
+
const V = Y((G) => {
|
|
195
|
+
R && (R(G), j(G));
|
|
196
|
+
}, [R]), A = Y((G) => {
|
|
197
|
+
V(G ? new bt({ val: G.definition.val, adjs: G.definition.adjs }, M) : null);
|
|
198
|
+
}, [M]), Z = U((G) => {
|
|
199
|
+
G.ctrlKey && J(!0);
|
|
200
|
+
}, []), oe = Y((G) => {
|
|
201
201
|
let le = !1;
|
|
202
|
-
if (
|
|
203
|
-
const Re =
|
|
202
|
+
if (G) {
|
|
203
|
+
const Re = G.toString();
|
|
204
204
|
le = !z.mapAllPresets.has(Re);
|
|
205
205
|
}
|
|
206
|
-
k?.(
|
|
207
|
-
}, [k, z]), Oe = Y((
|
|
208
|
-
const le =
|
|
206
|
+
k?.(G, le);
|
|
207
|
+
}, [k, z]), Oe = Y((G) => {
|
|
208
|
+
const le = G ? new bt({ val: G.definition.val, adjs: G.definition.adjs }, M) : null;
|
|
209
209
|
Promise.resolve(m?.()).then(() => {
|
|
210
210
|
oe(le);
|
|
211
211
|
});
|
|
212
|
-
}, [M, m]), Se = Y((
|
|
213
|
-
V(
|
|
214
|
-
}, [M]), Ne = W(() => window.EyeDropper === void 0 ? o(se, {}) : o(
|
|
215
|
-
B(!0), T?.(), await new EyeDropper().open().then((
|
|
212
|
+
}, [M, m]), Se = Y((G) => {
|
|
213
|
+
V(G ? new bt(G, M) : null);
|
|
214
|
+
}, [M]), Ne = W(() => window.EyeDropper === void 0 ? o(se, {}) : o(ct, { "aria-label": "eye dropper", size: "small", sx: { color: (G) => G.palette.text.icon ?? G.palette.action.active }, onClick: async () => {
|
|
215
|
+
B(!0), T?.(), await new EyeDropper().open().then((G) => {
|
|
216
216
|
B(!1), N?.();
|
|
217
|
-
let le = new
|
|
217
|
+
let le = new bt(G.sRGBHex), Re = le.toString(), Ke = z.mapAllPresets.get(Re);
|
|
218
218
|
if (Ke || (Re = le.toRGBA().toString(), Ke = z.mapAllPresetsRGB.get(Re)), !Ke) {
|
|
219
|
-
const Ee = le.toRGBA(),
|
|
219
|
+
const Ee = le.toRGBA(), at = 3;
|
|
220
220
|
let Ye = 255;
|
|
221
|
-
z.mapAllPresetsRGB.forEach((
|
|
222
|
-
const te =
|
|
223
|
-
ke <
|
|
221
|
+
z.mapAllPresetsRGB.forEach((pt, Me) => {
|
|
222
|
+
const te = pt.toRGBA(), ke = Math.abs(te.red - Ee.red) + Math.abs(te.blue - Ee.blue) + Math.abs(te.green - Ee.green);
|
|
223
|
+
ke < at && ke < Ye && (Ke = pt);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
J(!Ke), V(Ke || le);
|
|
227
|
-
}).catch((
|
|
228
|
-
B(!1),
|
|
227
|
+
}).catch((G) => {
|
|
228
|
+
B(!1), G?.name !== "AbortError" && console.error(G);
|
|
229
229
|
});
|
|
230
230
|
}, children: o(be, { iconKey: "Colorize" }) }), [z, C]), _e = W(() => {
|
|
231
231
|
if (!ae) return;
|
|
232
|
-
const
|
|
233
|
-
return o(va, { fallback: o("div", { style:
|
|
232
|
+
const G = { opacity: ae ? 1 : "0", position: "absolute", top: "0px", left: "0px", width: "100%", height: "100%", boxSizing: "border-box" };
|
|
233
|
+
return o(va, { fallback: o("div", { style: G, children: o(jt, {}) }), children: o($s, { style: G, selectedColor: E ? E.toRGBA().toString() : "transparent", onColorChange: Se, disableAlpha: c }) });
|
|
234
234
|
}, [ae, E]), Ve = W(() => ({ onClick: Z, alphaGrey: L.palette.text.icon ?? L.palette.action.active }), [Z, L]), ne = W(() => {
|
|
235
235
|
if (!h) return null;
|
|
236
|
-
const
|
|
236
|
+
const G = { description: w, definition: { val: h.getVal(), adjs: h.getAdjustments() } };
|
|
237
237
|
return o(se, { children: H(ka, { sx: { display: "flex", color: (le) => le.palette.text.secondary }, onMouseOver: () => {
|
|
238
238
|
A(null);
|
|
239
239
|
}, onClick: () => {
|
|
240
240
|
Oe(null);
|
|
241
|
-
}, children: [o(F, { sx: { flex: "none", boxShadow: (le) => le.shadows[2], borderRadius: (le) => le.spacing(0.5), overflow: "hidden" }, children: o(tr, { schemeColorLookup: M, colorDef:
|
|
241
|
+
}, children: [o(F, { sx: { flex: "none", boxShadow: (le) => le.shadows[2], borderRadius: (le) => le.spacing(0.5), overflow: "hidden" }, children: o(tr, { schemeColorLookup: M, colorDef: G, selectedColor: t === null ? h : t, previewColor: e === null ? h : e, defaultButtonSize: s, isLarge: !0, darkMode: C, compareRGB: S, swatchProps: Ve }) }), o(Pe, { noWrap: !0, component: "div", style: { display: "flex", flex: "1 1 100%", marginLeft: "8px", userSelect: "none" }, children: w })] }) });
|
|
242
242
|
}, [h, w, M, t, e]);
|
|
243
243
|
return H(F, { ref: a, sx: { width: g, outline: "none", padding: "10px 10px", overflow: "hidden", boxSizing: "content-box" }, ...D, children: [H("div", { style: { position: "relative", display: "flex" }, children: [H("div", { style: { opacity: ae ? "0" : 1 }, children: [ne && v === Ro.Start ? H(se, { children: [ne, o(mo, { light: !0, style: { marginTop: "2px", marginBottom: "10px" } })] }) : null, o(Lo, { title: "Theme Colors", schemeColorLookup: M, colorDefs: z.primaryColors, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Oe, compareRGB: S, darkMode: C }), o(Lo, { schemeColorLookup: M, colorDefs: z.modifiedPresets, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Oe, compareRGB: S, darkMode: C }), o(mo, { light: !0, style: { marginBottom: "10px" } }), o(Lo, { title: "Standard Colors", schemeColorLookup: M, colorDefs: z.standardColors, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Oe, compareRGB: S, darkMode: C }), H("div", { style: { opacity: z.recentColorsLimited.length === 0 ? "0" : void 0, display: z.recentColorsLimited.length === 0 ? "none" : void 0 }, children: [o(mo, { light: !0, style: { marginBottom: "10px" } }), o(Lo, { title: "Recent Colors", schemeColorLookup: M, colorDefs: z.recentColorsLimited, selectedColor: t, previewColor: e === void 0 ? t : e, swatchProps: Ve, onPreviewColorDef: A, onSelectColorDef: Oe, compareRGB: S, darkMode: C })] }), ne && v === Ro.End ? H(se, { children: [o(mo, { light: !0, sx: { marginTop: "2px", marginBottom: "2px" } }), ne, o("div", { style: { marginBottom: "2px" } })] }) : null] }), _e] }), o(mo, { light: !0, style: { marginBottom: "10px" } }), H("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-around", gap: "8px", paddingLeft: "2px", paddingRight: "2px" }, children: [Ne, o("div", { style: { flex: "1 1 100%", background: "pink" } }), o(Jo, { style: { minWidth: "75px", maxWidth: "75px" }, value: "check", variant: "outlined", size: "small", onClick: () => {
|
|
244
244
|
pe();
|
|
@@ -248,8 +248,8 @@ const Bs = q(X((n, a) => {
|
|
|
248
248
|
});
|
|
249
249
|
}, children: "Done" })] })] });
|
|
250
250
|
})), _s = o(be, { iconKey: "circle.colored" }), Ba = q(X((n, a) => {
|
|
251
|
-
const { selectedColor: t, quickColor: e, icon: r = _s, tooltip: l, label: c, onPreviewColor: u, onPreviewColorImmediate: i, onSelectColor: s, variant: g =
|
|
252
|
-
}), S = e || w || t || x?.autoColor, C = fe(!1), D =
|
|
251
|
+
const { selectedColor: t, quickColor: e, icon: r = _s, tooltip: l, label: c, onPreviewColor: u, onPreviewColorImmediate: i, onSelectColor: s, variant: g = nt.Toolbar, panelProps: x, shouldCloseFloatAll: m = !0, compareRGB: d = !1, darkMode: p = !1, ...f } = n, y = Y(u, [u]), b = Y(i, [i]), h = Y(s, [s]), [w, v] = _(() => {
|
|
252
|
+
}), S = e || w || t || x?.autoColor, C = fe(!1), D = U(() => {
|
|
253
253
|
}, []), E = Y(() => {
|
|
254
254
|
v(t);
|
|
255
255
|
}, [t]), P = Y((z) => {
|
|
@@ -260,25 +260,25 @@ const Bs = q(X((n, a) => {
|
|
|
260
260
|
C.current || (v(void 0), h?.(z, ae));
|
|
261
261
|
}, [h]), T = W(() => o(F, { className: "color-wrapper", sx: { lineHeight: "0", color: "inherit", "--sxl-color-active": `${S?.toCSS(p) ?? "transparent"}`, "& .activeColor": { fill: `${S?.toCSS(p) ?? "transparent"}` }, "& .style_grey": { fill: (z) => z.palette.text.icon ?? z.palette.action.active } }, children: typeof r == "function" ? r() : r }), [S, r, p]), N = Y((z) => {
|
|
262
262
|
h?.(e, !1);
|
|
263
|
-
}, [h, e]), [I, B] = _(!1), L =
|
|
263
|
+
}, [h, e]), [I, B] = _(!1), L = U((z) => {
|
|
264
264
|
const { closeFloat: ae, closeFloatAll: J } = z;
|
|
265
265
|
return o(Vs, { ...x, selectedColor: t, previewColor: w, onDone: m ? J : ae, onKeyDown: (pe) => {
|
|
266
266
|
pe.which === me.Enter && (m ? J() : ae());
|
|
267
267
|
}, onPreviewColorImmediate: R, onPreviewColor: P, onSelectColor: k, onEyeDropStart: () => B(!0), onEyeDropStop: () => B(!1), compareRGB: d, darkMode: p });
|
|
268
268
|
}, [t, w, m, S, x?.autoColor, p]), M = { onQuickClick: e ? N : void 0, createPopupPanel: L, popupProps: { popperProps: { resizeOnOverflow: !1 } }, onPopupOpen: E, onPopupClose: D, tooltip: l || c || "Color", label: c, icon: T, ...f };
|
|
269
|
-
return g ===
|
|
269
|
+
return g === nt.Toolbar ? o(Tt, { ref: a, ...M }) : o(Yn, { ref: a, ...M });
|
|
270
270
|
})), Zo = 82, Er = (n) => {
|
|
271
271
|
const { styleColor: a, length: t = Zo, width: e = 1, dashArray: r = null, sx: l, isDouble: c = !1, isAngled: u = !1, darkMode: i = !1, ...s } = n;
|
|
272
272
|
return o(Ca, { sx: { width: `${t}px`, height: `${e}px`, color: "inherit", overflow: "visible", "& .activeColor": { stroke: (g) => `${a ? a.toRGBA(i).toString() : g.palette.text.icon ?? g.palette.action.active}` }, "& .style_grey": { stroke: (g) => g.palette.text.icon ?? g.palette.action.active }, ...l }, height: e, width: t, viewBox: `0 0 ${t} ${e}`, ...s, children: o(Ol, { length: t, width: e, dashArray: r, isDouble: c, isAngled: u, className: "activeColor" }) });
|
|
273
273
|
}, Us = q(X((n, a) => {
|
|
274
|
-
const { variant: t, showLabels: e = !1, disabled: r = !1, createPopupPanel: l, styleColor: c, selectedStyle: u, onSelectStyle: i, showNone: s = !0, darkMode: g, sx: x, ...m } = n, d = Y(i, []), p =
|
|
274
|
+
const { variant: t, showLabels: e = !1, disabled: r = !1, createPopupPanel: l, styleColor: c, selectedStyle: u, onSelectStyle: i, showNone: s = !0, darkMode: g, sx: x, ...m } = n, d = Y(i, []), p = U((h) => {
|
|
275
275
|
const { popupContainer: w, floatReference: v, closeFloat: S, ...C } = h, D = [], E = we.BuiltInDefinitionsArray;
|
|
276
276
|
for (let P = 0; P < E.length; P++) {
|
|
277
277
|
const R = E[P];
|
|
278
278
|
if (R.description === "None" && !s) continue;
|
|
279
279
|
const k = o(Er, { styleColor: c, length: Zo, width: R.width, darkMode: g, dashArray: R.pattern, isDouble: R.description.toLowerCase().includes("double"), isAngled: R.description.toLowerCase().includes("slant") });
|
|
280
280
|
let T = null;
|
|
281
|
-
T = e ? H(se, { children: [o(F, { sx: { marginRight: "6px" }, children: R.description }), H(F, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [o("div", { style: { flex: "1 1 100%" } }), k] })] }) : R.description === "None" ? "None" : k, D.push(o(
|
|
281
|
+
T = e ? H(se, { children: [o(F, { sx: { marginRight: "6px" }, children: R.description }), H(F, { sx: { marginLeft: "6px", marginRight: "6px", display: "flex", alignItems: "center", flex: "1 1 100%" }, children: [o("div", { style: { flex: "1 1 100%" } }), k] })] }) : R.description === "None" ? "None" : k, D.push(o(dt, { className: "border-stroke", tabIndex: 0, sx: { height: "28px", "& svg path.activeColor": { filter: vr(4) }, paddingLeft: "16px", background: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})` }, tooltipProps: { description: e ? "" : R.description }, icon: null, disabled: r, onMouseDown: (N) => N.preventDefault(), onMouseUp: () => {
|
|
282
282
|
S(), d(R.style);
|
|
283
283
|
}, onKeyDown: (N) => {
|
|
284
284
|
N.which === me.Enter && S();
|
|
@@ -290,7 +290,7 @@ const Bs = q(X((n, a) => {
|
|
|
290
290
|
let w;
|
|
291
291
|
return w = h.description === "None" ? o(F, { sx: { minWidth: `${Zo}px` }, children: "None" }) : o(Er, { styleColor: c, length: Zo, width: h.width, dashArray: h.pattern, darkMode: g, isDouble: h.description.toLowerCase().includes("double"), isAngled: h.description.toLowerCase().includes("slant") }), o(F, { className: "border-stroke", sx: { paddingLeft: "12px", marginLeft: "4px", marginRight: "4px", height: "24px", display: "flex", alignItems: "center", "& svg path.activeColor": { filter: vr() } }, children: w });
|
|
292
292
|
}, [u, c]), y = W(() => we.BuiltInDefinitions.get(u), [u]), b = { disabled: r, icon: f, tooltip: "Border Style: " + y.description, sx: { background: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})`, ...x }, createPopupPanel: p, ...m };
|
|
293
|
-
return t ===
|
|
293
|
+
return t === nt.Toolbar ? o(Tt, { ...b }) : o(Yn, { ...b });
|
|
294
294
|
})), Gs = q(X((n, a) => {
|
|
295
295
|
const { autoColor: t = null, schemeLookup: e, autoStrokeStyle: r = we.StrokeStyle.Thin, disabled: l = !1, darkMode: c = !1, showStylingBefore: u = !0, onSelectBorder: i, onPreviewBorder: s, selectedBorder: g, createTemporaryBorder: x, ...m } = n, d = Y(i, [i]), p = Y(s, [s]), [f, y] = _(), [b, h] = _(), w = f ?? r, v = b ?? t, S = g || { bottom: { style: r, color: t?.toString() } }, C = Y((T) => {
|
|
296
296
|
const N = {}, I = T ? Object.keys(T) : [];
|
|
@@ -308,7 +308,7 @@ const Bs = q(X((n, a) => {
|
|
|
308
308
|
const A = ee.rowIndex, Z = ee.colIndex, oe = {};
|
|
309
309
|
return A === 0 ? (oe.top = N.top, oe.bottom = N.horizontal) : (oe.top = N.horizontal, oe.bottom = N.bottom), Z === 0 ? (oe.left = N.left, oe.right = N.vertical) : (oe.left = N.vertical, oe.right = N.right), x?.(oe);
|
|
310
310
|
}, darkMode: c, style: { top: "2px", left: "2px", width: "calc(100% - 5px)", height: "calc(100% - 5px)", position: "absolute" } }) })] })] });
|
|
311
|
-
}, [v, w, c]), D =
|
|
311
|
+
}, [v, w, c]), D = U((T, N, I) => {
|
|
312
312
|
let B = null;
|
|
313
313
|
if (T && T.length > 0) {
|
|
314
314
|
let L = null;
|
|
@@ -317,50 +317,50 @@ const Bs = q(X((n, a) => {
|
|
|
317
317
|
for (let z = 0; z < M; z++) B[T[z]] = L;
|
|
318
318
|
}
|
|
319
319
|
return B;
|
|
320
|
-
}, []), E =
|
|
320
|
+
}, []), E = U((T) => {
|
|
321
321
|
d?.(T);
|
|
322
|
-
}, []), P =
|
|
322
|
+
}, []), P = U((T) => {
|
|
323
323
|
p?.(T);
|
|
324
|
-
}, []), R =
|
|
324
|
+
}, []), R = U((T) => {
|
|
325
325
|
const { closeFloatAll: N, floatReference: I } = T, B = (z, ae, J = "bottom", pe = !1) => {
|
|
326
326
|
const j = D(z, v ?? null, pe ? we.StrokeStyle.None : w ?? null), K = pe ? D([], v ?? null, w ?? null) : j;
|
|
327
|
-
return o(
|
|
327
|
+
return o(xt, { icon: C(K), sx: { background: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})` }, tooltipProps: { label: ae, simple: !0, placement: J }, onClick: () => {
|
|
328
328
|
N(), P(j), E(j);
|
|
329
329
|
} });
|
|
330
|
-
}, L = H(se, { children: [H(F, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom, we.Edge.Horizontal, we.Edge.Vertical], "All Borders", "top"), B([we.Edge.Horizontal, we.Edge.Vertical], "Inner Borders", "top"), B([we.Edge.Horizontal], "Inside Horizontal Borders", "top"), B([we.Edge.Vertical], "Inside Vertical Borders", "top"), B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom], "Outside Borders", "top")] }), H(F, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [B([we.Edge.Left], "Left Borders"), B([we.Edge.Top], "Top Borders"), B([we.Edge.Right], "Right Borders"), B([we.Edge.Bottom], "Bottom Borders"), B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom, we.Edge.Horizontal, we.Edge.Vertical, we.Edge.DiagonalUp, we.Edge.DiagonalDown], "No Borders", "bottom", !0)] })] }), M = o(se, { children: H(F, { sx: { display: "flex", padding: "6px 16px", flexDirection: "row", gap: "6px" }, children: [o(Ba, { variant:
|
|
330
|
+
}, L = H(se, { children: [H(F, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom, we.Edge.Horizontal, we.Edge.Vertical], "All Borders", "top"), B([we.Edge.Horizontal, we.Edge.Vertical], "Inner Borders", "top"), B([we.Edge.Horizontal], "Inside Horizontal Borders", "top"), B([we.Edge.Vertical], "Inside Vertical Borders", "top"), B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom], "Outside Borders", "top")] }), H(F, { sx: { display: "flex", padding: "6px 16px", justifyContent: "center", rowGap: "2px", gap: "2px" }, children: [B([we.Edge.Left], "Left Borders"), B([we.Edge.Top], "Top Borders"), B([we.Edge.Right], "Right Borders"), B([we.Edge.Bottom], "Bottom Borders"), B([we.Edge.Left, we.Edge.Top, we.Edge.Right, we.Edge.Bottom, we.Edge.Horizontal, we.Edge.Vertical, we.Edge.DiagonalUp, we.Edge.DiagonalDown], "No Borders", "bottom", !0)] })] }), M = o(se, { children: H(F, { sx: { display: "flex", padding: "6px 16px", flexDirection: "row", gap: "6px" }, children: [o(Ba, { variant: nt.Toolbar, icon: o(be, { iconKey: "stroke.colored" }), selectedColor: w === we.StrokeStyle.None ? new bt("transparent") : v, onPreviewColor: (z) => {
|
|
331
331
|
h(z);
|
|
332
332
|
}, onSelectColor: (z, ae) => {
|
|
333
333
|
h(z);
|
|
334
|
-
}, darkMode: c, tooltip: "Border Color", panelProps: { disableAlpha: !0, autoColor: t, schemeLookup: e }, disabled: l || w === we.StrokeStyle.None, parentFloat: I, shouldCloseFloatAll: !1 }), o(Us, { selectedStyle: w, onSelectStyle: y, styleColor: v, darkMode: c, variant:
|
|
334
|
+
}, darkMode: c, tooltip: "Border Color", panelProps: { disableAlpha: !0, autoColor: t, schemeLookup: e }, disabled: l || w === we.StrokeStyle.None, parentFloat: I, shouldCloseFloatAll: !1 }), o(Us, { selectedStyle: w, onSelectStyle: y, styleColor: v, darkMode: c, variant: nt.Toolbar, parentFloat: I })] }) });
|
|
335
335
|
return H(F, { sx: { display: "flex", flexDirection: "column", paddingTop: "4px", paddingBottom: "4px" }, onClick: (z) => z.stopPropagation(), children: [u ? M : L, o(Q, { orientation: "horizontal" }), u ? L : M] });
|
|
336
336
|
}, [w, v, t, e, c]), k = W(() => C(S), [S, c]);
|
|
337
|
-
return o(
|
|
337
|
+
return o(Tt, { ref: a, createPopupPanel: R, popupProps: { popperProps: { resizeOnOverflow: !1 } }, createTooltip: ({ children: T }, N) => o(rt, { label: "Borders", description: "Set the borders.", disabled: N, children: T }), onQuickClick: () => {
|
|
338
338
|
d?.(S);
|
|
339
339
|
}, quickButtonProps: { sx: {} }, disabled: l, icon: k, ...m });
|
|
340
340
|
})), qs = q(X((n, a) => {
|
|
341
341
|
const { commands: t, command: e, commandHook: r, variant: l = ie.Toolbar, disabled: c = !1, autoColor: u, autoStrokeStyle: i, schemeLookup: s, createTemporaryBorder: g, selectedBorder: x, onSelectBorder: m, darkMode: d, icon: p, label: f, ...y } = n, b = Ie(t, ["formatBorder"]), h = e ?? b[0], w = h?.context() ?? null, v = w?.autoColor ?? u, S = w?.autoStyle ?? i, C = x ?? w?.quickBorder, D = d ?? w?.darkMode, E = g ?? w?.createTemporaryBorder, P = s ?? w?.schemeLookup, R = Y((T) => {
|
|
342
342
|
w?.onBorderSelect && w.onBorderSelect(T), m?.(T), h?.execute(T, r);
|
|
343
|
-
}, [h, m, r]), k =
|
|
343
|
+
}, [h, m, r]), k = U((T, N) => {
|
|
344
344
|
const { children: I, title: B, ...L } = T;
|
|
345
345
|
let M = T.children;
|
|
346
346
|
return (h?.disabled() || c) && (M = o("div", { children: M })), o(Zn, { command: h, placement: l === ie.Toolbar ? "bottom-start" : "right-start", disabled: N, ...L, children: M });
|
|
347
347
|
}, [h, c]);
|
|
348
348
|
return o(Gs, { ref: a, autoColor: v, darkMode: D, autoStrokeStyle: S, createTemporaryBorder: E, schemeLookup: P, selectedBorder: C, onSelectBorder: R, createTooltip: k, disabled: c || !h || h.disabled(), ...y });
|
|
349
349
|
})), Ks = q(X((n, a) => {
|
|
350
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u =
|
|
350
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = U((i, s) => {
|
|
351
351
|
const g = { variant: ie.Menuitem, commandHook: e, scope: r, disabled: l }, x = H(se, { children: [o(O, { ...g, command: s.getCommand("mergeToggle") }), o(O, { ...g, command: s.getCommand("mergeHorizontal") }), o(O, { ...g, command: s.getCommand("mergeVertical") }), o(Q, { orientation: "horizontal" }), o(O, { ...g, command: s.getCommand("unmerge") })] });
|
|
352
352
|
return ye({ ...i, children: x });
|
|
353
353
|
}, [l, e, r]);
|
|
354
354
|
return o(Te, { ref: a, commands: t, quickCommand: "mergeToggle", commandHook: e, scope: r, tooltip: "Combine or split cells.", createPopupPanel: u, icon: "MergeAll", ...c });
|
|
355
355
|
})), Xs = q(X((n, a) => {
|
|
356
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u =
|
|
356
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = U((i, s) => {
|
|
357
357
|
const g = { variant: ie.Menuitem, commandHook: e, scope: r, disabled: l }, x = H(se, { children: [o(O, { ...g, command: s.getCommand("freezeToggle") }), o(O, { ...g, command: s.getCommand("freezeToggleHorizontal") }), o(O, { ...g, command: s.getCommand("freezeToggleVertical") }), o(Q, { orientation: "horizontal" }), o(O, { ...g, command: s.getCommand("unfreeze") })] });
|
|
358
358
|
return ye({ ...i, children: x });
|
|
359
359
|
}, [l, e, r]);
|
|
360
360
|
return o(Te, { ref: a, commands: t, commandHook: e, createPopupPanel: u, quickCommand: "freezeToggle", label: "Freeze Panes", tooltip: "Freeze a portion of the sheet to keep it visible while you scroll through the rest of the sheet.\\n\\nUseful for viewing data in other parts of your worksheet without losing your headers or labels.", icon: "Freeze", ...c });
|
|
361
361
|
})), Ys = q(X((n, a) => o(qe, { ref: a, ...n, popupCommandKeys: ["find", "findReplace", "goto"], scope: "find", label: "Find & Select", tooltip: "Find and replace cells or go to a specific location.", quickCommand: "find", icon: "Find" }))), Zs = q(X((n, a) => {
|
|
362
362
|
const { command: t, commandHook: e, showQuickButtons: r = !!n.commands, commands: l, fontSizes: c = Rl.DefaultFontSizes, disabled: u = !1, parentFloat: i, icon: s, label: g, sx: x, ...m } = n;
|
|
363
|
-
|
|
363
|
+
$t(t);
|
|
364
364
|
const d = () => t?.state()?.toString() || "11", [p, f] = _(d), y = Y(() => {
|
|
365
365
|
const E = parseFloat(p);
|
|
366
366
|
isNaN(E) ? f(d()) : parseFloat(d()) !== E && t.execute(E, e);
|
|
@@ -372,9 +372,9 @@ const Bs = q(X((n, a) => {
|
|
|
372
372
|
if (!e) return null;
|
|
373
373
|
const E = { ...e };
|
|
374
374
|
return delete E.beforeExecute, E;
|
|
375
|
-
}, [e]), h = Ie(l, ["formatFontSizeIncrease", "formatFontSizeDecrease"]), w = W(() => h ? H(F, { className: Ce("quick-buttons", {}), sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (E) => E.stopPropagation(), children: [o(O, { command: h[0], commandHook: b }), o(O, { command: h[1], commandHook: b })] }) : null, [h]), v = Xe(), S = W(() => `${
|
|
375
|
+
}, [e]), h = Ie(l, ["formatFontSizeIncrease", "formatFontSizeDecrease"]), w = W(() => h ? H(F, { className: Ce("quick-buttons", {}), sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (E) => E.stopPropagation(), children: [o(O, { command: h[0], commandHook: b }), o(O, { command: h[1], commandHook: b })] }) : null, [h]), v = Xe(), S = W(() => `${Wt.getSharedMeasurer()("12.3", Math.round(v.typography.fontSize), v.typography.fontFamily).width}px`, [v]), C = U((E) => {
|
|
376
376
|
const { onMouseDown: P, onMouseUp: R, ...k } = E;
|
|
377
|
-
return o(
|
|
377
|
+
return o(ct, { component: "div", ...k, disableRipple: !0, children: o(Kn, { inputMode: "numeric", disabled: u || !t || t.disabled(), inputProps: { name: "font-input", autoComplete: "off", tabIndex: 0, type: "number", maxLength: 4, max: 409, min: 2 }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (T) => `1px solid ${T.palette.text.icon ?? T.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (T) => `1px solid ${T.palette.error.main}` }, "::after": { borderBottom: (T) => `1px solid ${T.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", paddingLeft: "0px", paddingRight: "0px", fontSize: (T) => `${Math.round(T.typography.fontSize)}px`, width: S, color: (T) => T.palette.text.secondary, input: { padding: "0 0", textAlign: "center", height: "1rem", MozAppearance: "textfield", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (T) => T.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (T) => T.palette.text.primary } }, "input::-webkit-inner-spin-button": { WebkitAppearance: "none", margin: "0" } }, value: p, onFocus: (T) => {
|
|
378
378
|
T.target?.select();
|
|
379
379
|
}, onKeyDown: (T) => {
|
|
380
380
|
if (T.which === me.Enter) d() !== p && (T.stopPropagation(), T.preventDefault(), y());
|
|
@@ -391,13 +391,13 @@ const Bs = q(X((n, a) => {
|
|
|
391
391
|
if (T.target.value.length > 4) return T.stopPropagation(), void T.preventDefault();
|
|
392
392
|
f(T.target.value);
|
|
393
393
|
} }) });
|
|
394
|
-
}, [p, u, t]), D =
|
|
394
|
+
}, [p, u, t]), D = U((E) => {
|
|
395
395
|
const P = (N) => {
|
|
396
396
|
t?.execute(N, e);
|
|
397
397
|
}, R = t?.state(), k = [];
|
|
398
398
|
for (let N = 0; N < c.length; N++) {
|
|
399
399
|
const I = c[N] === R;
|
|
400
|
-
k.push(o(
|
|
400
|
+
k.push(o(dt, { selected: I, icon: I ? o(nn, {}) : void 0, disabled: u || !t || t.disabled(), onMouseDown: (B) => {
|
|
401
401
|
B.button === 0 && B.preventDefault();
|
|
402
402
|
}, onMouseUp: (B) => {
|
|
403
403
|
B.button === 0 && P(c[N]);
|
|
@@ -408,25 +408,25 @@ const Bs = q(X((n, a) => {
|
|
|
408
408
|
const T = H(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...m, children: [w, o(Q, { orientation: "horizontal" }), o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: k })] });
|
|
409
409
|
return ye({ ...E, children: T });
|
|
410
410
|
}, [u, t?.state(), e]);
|
|
411
|
-
return o(
|
|
411
|
+
return o(Tt, { ref: a, sx: { ...x }, tabIndex: -1, outlined: !0, disabled: u, parentFloat: i, createPopupPanel: D, createTooltip: ({ children: E }, P) => o(rt, { label: t?.label(), description: t?.description(), disabled: P || t?.disabled(), children: E }), createQuickButton: C, ...m });
|
|
412
412
|
})), Dr = q((n) => {
|
|
413
413
|
const { selected: a, disabled: t, formattedValue: e, handleSetFormat: r, format: l, sx: c, ...u } = n;
|
|
414
|
-
return o(
|
|
414
|
+
return o(dt, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...c }, disabled: t, selected: a, icon: a ? o(nn, {}) : void 0, onMouseDown: (i) => {
|
|
415
415
|
i.button === 0 && i.preventDefault();
|
|
416
416
|
}, onMouseUp: (i) => {
|
|
417
417
|
i.button === 0 && r(l.numberFormat);
|
|
418
418
|
}, onKeyDown: (i) => {
|
|
419
419
|
i.keyCode !== me.Enter && i.keyCode !== me.Space || r(l.numberFormat);
|
|
420
|
-
}, ...u, children: H(F, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [H(Pe, { component: "div", children: [l.formatType, l.formatType ===
|
|
420
|
+
}, ...u, children: H(F, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: [H(Pe, { component: "div", children: [l.formatType, l.formatType === ht.Type.Custom ? "…" : ""] }), o(Pe, { variant: "caption", component: "div", sx: { color: (i) => Je(i.palette.text.primary, 0.6), paddingTop: e && e.length > 0 ? "1px" : void 0, overflow: "hidden", textOverflow: "ellipsis" }, children: e && e.length > 0 ? e : " " })] }) });
|
|
421
421
|
}), Qs = q(X((n, a) => {
|
|
422
|
-
const { commands: t, commandHook: e, scope: r, sx: l, disabled: c = !1, parentFloat: u, ...i } = n, s = Ie(t, ["formatNumberFormat"])[0], g = s?.state() ?
|
|
422
|
+
const { commands: t, commandHook: e, scope: r, sx: l, disabled: c = !1, parentFloat: u, ...i } = n, s = Ie(t, ["formatNumberFormat"])[0], g = s?.state() ? ht.Styles.lookupStyle(s?.state()).formatType : ht.Type.General, x = W(() => {
|
|
423
423
|
if (!e) return null;
|
|
424
424
|
const f = { ...e };
|
|
425
425
|
return delete f.beforeExecute, f;
|
|
426
|
-
}, [e]), m =
|
|
426
|
+
}, [e]), m = U((f, y) => {
|
|
427
427
|
const b = (R) => {
|
|
428
428
|
e?.beforeExecute?.(s, s?.state()), s.execute(R, e), e?.onExecute?.(s, s?.state());
|
|
429
|
-
}, h = s?.context()(), w =
|
|
429
|
+
}, h = s?.context()(), w = ht.Styles.lookupPrimary(), v = [];
|
|
430
430
|
for (let R = 0; R < w.length; R++) {
|
|
431
431
|
let k = "";
|
|
432
432
|
if (h && !h.isEmpty()) try {
|
|
@@ -434,19 +434,19 @@ const Bs = q(X((n, a) => {
|
|
|
434
434
|
} catch (N) {
|
|
435
435
|
console.warn(N);
|
|
436
436
|
}
|
|
437
|
-
k === "" && w[R].formatType ===
|
|
437
|
+
k === "" && w[R].formatType === ht.Type.General && (k = "No specific format");
|
|
438
438
|
const T = w[R].formatType === g;
|
|
439
439
|
v.push(o(Dr, { selected: T, disabled: c || !s || s.disabled(), formattedValue: k, handleSetFormat: b, format: w[R] }, w[R].formatType));
|
|
440
440
|
}
|
|
441
|
-
const S = { numberFormat: "", formatType:
|
|
441
|
+
const S = { numberFormat: "", formatType: ht.Type.Custom }, C = g === ht.Type.Custom, D = o(Dr, { selected: C, disabled: c || !s || s.disabled(), formattedValue: C ? h.getNumberFormat().displayText : "", handleSetFormat: () => {
|
|
442
442
|
e?.beforeExecute?.(s, s?.state()), y.getCommand("formatNumberDialog")?.execute(s?.state()), e?.onExecute?.(s, s?.state());
|
|
443
|
-
}, format: S, sx: { flex: "0", width: "100%" } },
|
|
443
|
+
}, format: S, sx: { flex: "0", width: "100%" } }, ht.Type.Custom), E = H(F, { className: "quick-buttons", sx: { display: "flex", alignItems: "center", justifyContent: "center" }, onClick: (R) => R.stopPropagation(), children: [o(O, { command: y.getCommand("formatNumberFormatAccountingStyle"), commandHook: x, scope: r }), o(O, { command: y.getCommand("formatNumberFormatPercentStyle"), commandHook: x, scope: r }), o(O, { command: y.getCommand("formatNumberFormatCommaStyle"), commandHook: x, scope: r }), o(O, { command: y.getCommand("formatNumberFormatIncreaseDecimal"), commandHook: x, scope: r }), o(O, { command: y.getCommand("formatNumberFormatDecreaseDecimal"), commandHook: x, scope: r })] }), P = H(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...i, children: [E, o(Q, { orientation: "horizontal" }), o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: v }), o(Q, { orientation: "horizontal" }), D] });
|
|
444
444
|
return ye({ ...f, children: P });
|
|
445
445
|
}, [s?.context(), s?.state(), e, r]), d = Xe(), p = W(() => {
|
|
446
|
-
const f =
|
|
447
|
-
return `${
|
|
446
|
+
const f = ht.Type.MediumTime;
|
|
447
|
+
return `${Wt.getSharedMeasurer()(f, Math.round(d.typography.fontSize), d.typography.fontFamily).width}px`;
|
|
448
448
|
}, [d]);
|
|
449
|
-
return o(Te, { ref: a, commands: t, sx: l, outlined: !0, disabled: c, parentFloat: u, createPopupPanel: m, createTooltip: ({ children: f }, y) => o(
|
|
449
|
+
return o(Te, { ref: a, commands: t, sx: l, outlined: !0, disabled: c, parentFloat: u, createPopupPanel: m, createTooltip: ({ children: f }, y) => o(rt, { label: s?.label(), description: s?.description(), disabled: y, children: f }), icon: o(F, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (f) => `${Math.round(f.typography.fontSize)}px`, color: (f) => f.palette.text.secondary, fontFamily: (f) => f.typography.fontFamily, width: p }, children: o(F, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: g }) }), ...i });
|
|
450
450
|
})), Oa = q(X((n, a) => o(qe, { ref: a, ...n, popupCommandKeys: ["clearAll", "clearFormats", "clearContents", "clearComments", "clearHyperlinks"], scope: "clear", label: "Clear", tooltip: "Clear everything in the cell, or remove just the formatting or contents.", icon: "ClearAll" }))), Js = q(X((n, a) => o(qe, { ref: a, ...n, popupCommandKeys: ["fillDown", "fillRight", "fillUp", "fillLeft"], scope: "fill", label: "Fill", tooltip: "Fill the selected cells with the value from one of the corners.", icon: "FillDown" }))), Aa = q(X((n, a) => {
|
|
451
451
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, disableSheet: c = !1, preferSingleMenu: u = !0, showQuickButton: i = !0, variant: s = ie.Toolbar, ...g } = n, x = ["insertCellsShiftDown", "insertCellsShiftRight", "insertRows", "insertColumns", "addSheet"];
|
|
452
452
|
c || x.push("addSheet");
|
|
@@ -458,7 +458,7 @@ const Bs = q(X((n, a) => {
|
|
|
458
458
|
v && !v.disabled() && (u && s === ie.Menuitem && (y = b === 0 ? v : null), b++);
|
|
459
459
|
}
|
|
460
460
|
return { singleCommand: y, allDisabled: b === 0 };
|
|
461
|
-
}, [m]), f =
|
|
461
|
+
}, [m]), f = U((y, b) => {
|
|
462
462
|
let h = null;
|
|
463
463
|
const w = { variant: ie.Menuitem, commandHook: e, scope: "insertCells", disabled: l };
|
|
464
464
|
c || (h = H(se, { children: [o(Q, { orientation: "horizontal" }), o(O, { ...w, command: b.getCommand("addSheet") })] }));
|
|
@@ -477,7 +477,7 @@ const Bs = q(X((n, a) => {
|
|
|
477
477
|
v && !v.disabled() && (u && s === ie.Menuitem && (y = b === 0 ? v : null), b++);
|
|
478
478
|
}
|
|
479
479
|
return { singleCommand: y, allDisabled: b === 0 };
|
|
480
|
-
}, [m]), f =
|
|
480
|
+
}, [m]), f = U((y, b) => {
|
|
481
481
|
const h = { variant: ie.Menuitem, commandHook: e, scope: "deleteCells", disabled: l };
|
|
482
482
|
let w = null;
|
|
483
483
|
c || (w = H(se, { children: [o(Q, { orientation: "horizontal" }), o(O, { ...h, command: b.getCommand("deleteSheet") })] }));
|
|
@@ -486,7 +486,7 @@ const Bs = q(X((n, a) => {
|
|
|
486
486
|
}, [l, e, r]);
|
|
487
487
|
return d ? o(O, { ref: a, variant: s, commandHook: e, disabled: l, command: d, ...g }) : o(Te, { ref: a, variant: s, quickCommand: "deleteCells", commands: t, commandHook: e, scope: r, disabled: l || p, tooltip: H(se, { children: [o("span", { children: "Delete cells, rows, columns or sheets from your workbook." }), o("br", {}), o("span", { children: "To delete multiple rows or columns at a time, select multiple rows or columns in the sheet and click Delete." })] }), createPopupPanel: f, ...g });
|
|
488
488
|
})), La = q(X((n, a) => {
|
|
489
|
-
const { commands: t, commandHook: e, scope: r, ...l } = n, c =
|
|
489
|
+
const { commands: t, commandHook: e, scope: r, ...l } = n, c = U((u, i) => {
|
|
490
490
|
const s = { variant: ie.Menuitem, commandHook: e, scope: "formatCells" }, g = { commands: i, parentFloat: u.floatReference, ...s }, x = H(se, { children: [o(O, { ...s, command: i.getCommand("resizeRows") }), o(O, { ...s, command: i.getCommand("autoFitRows") }), o(Q, { orientation: "horizontal" }), o(O, { ...s, command: i.getCommand("resizeColumns") }), o(O, { ...s, command: i.getCommand("autoFitColumns") }), o(Q, { orientation: "horizontal" }), o(qe, { ref: a, ...g, popupCommandKeys: ["hideColumns", "hideRows", null, "unhideColumns", "unhideRows"], popupScope: "hideUnhide", label: "Hide & Unhide" })] });
|
|
491
491
|
return ye({ ...u, children: x });
|
|
492
492
|
}, [e, r]);
|
|
@@ -496,34 +496,34 @@ La.displayName = "CellsFormatCommandButton";
|
|
|
496
496
|
const No = q(X((n, a) => {
|
|
497
497
|
const { command: t, commandHook: e, onSelectColor: r, disabled: l = !1, variant: c = ie.Toolbar, quickColor: u, panelProps: i, isSplit: s = !1, darkMode: g, icon: x, ...m } = n, { autoColor: d, schemeLookup: p, recentColors: f, ...y } = i;
|
|
498
498
|
if (m.selectedColor) throw new Error("Command selectedColor will be used. Do not try to provide one as a direct argument");
|
|
499
|
-
|
|
499
|
+
$t(t);
|
|
500
500
|
const b = t?.context();
|
|
501
501
|
let h = u ?? b?.quickColor;
|
|
502
|
-
s && !h && (h = new
|
|
502
|
+
s && !h && (h = new bt("transparent"));
|
|
503
503
|
const w = d ?? b?.autoColor, v = p ?? b?.schemeLookup, S = f ?? b?.recentColors, C = g ?? b?.darkMode, D = W(() => ({ autoColor: w, schemeLookup: v, recentColors: S, darkMode: C, ...y }), [w, v, S, C]), E = Y((R, k) => {
|
|
504
504
|
R && k && b?.addRecentColor && b.addRecentColor(R), b?.onColorSelect && b.onColorSelect(R), r?.(R, k), t?.execute(R, e);
|
|
505
|
-
}, [t, r, e, b]), P =
|
|
505
|
+
}, [t, r, e, b]), P = U((R, k) => {
|
|
506
506
|
const { children: T, title: N, ...I } = R;
|
|
507
507
|
let B = R.children;
|
|
508
508
|
return (t?.disabled() || l) && (B = o("div", { children: B })), o(Zn, { command: t, placement: c === ie.Toolbar ? "bottom-start" : "right-start", disabled: k, ...I, children: B });
|
|
509
509
|
}, [t, l]);
|
|
510
|
-
return o(Ba, { ref: a, panelProps: D, icon: x ?? t?.icon(b), quickColor: h, selectedColor: t?.state(), onSelectColor: E, variant: c === ie.Menuitem ?
|
|
510
|
+
return o(Ba, { ref: a, panelProps: D, icon: x ?? t?.icon(b), quickColor: h, selectedColor: t?.state(), onSelectColor: E, variant: c === ie.Menuitem ? nt.Menuitem : nt.Toolbar, createTooltip: P, label: t?.label(), disabled: l || !t || t.disabled(), compareRGB: !0, darkMode: C, ...m });
|
|
511
511
|
}));
|
|
512
512
|
No.displayName = "ColorCommandButton";
|
|
513
513
|
const ec = q(X((n, a) => {
|
|
514
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, parentFloat: c, ...u } = n, i = Ie(t, ["gridlinesToggle", "sheetViewToggleGridlinesColumns", "sheetViewToggleGridlinesRows"]), s =
|
|
514
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, parentFloat: c, ...u } = n, i = Ie(t, ["gridlinesToggle", "sheetViewToggleGridlinesColumns", "sheetViewToggleGridlinesRows"]), s = U((g, x) => {
|
|
515
515
|
const m = { variant: ie.Menuitem, parentFloat: g.floatReference, commandHook: e, scope: r, disabled: l }, d = H(se, { children: [o(O, { ...m, command: x.getCommand("gridlinesToggle") }), o(No, { ...m, command: x.getCommand("sheetViewFormatGridlinesColor"), icon: o(be, { iconKey: "stroke.colored" }), panelProps: { disableAlpha: !0 } }), o(Q, { orientation: "horizontal" }), o(O, { ...m, command: x.getCommand("sheetViewToggleGridlinesColumns") }), o(O, { ...m, command: x.getCommand("sheetViewToggleGridlinesRows") })] });
|
|
516
516
|
return ye({ ...g, children: d });
|
|
517
517
|
}, [l, e]);
|
|
518
518
|
return o(Te, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Gridlines", tooltip: "Configure how the lines between rows and columns in the sheet are displayed.", icon: o(rn, { command: i[0], scope: "view" }), ...u });
|
|
519
519
|
})), za = q(X((n, a) => {
|
|
520
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u =
|
|
520
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = U((i, s) => {
|
|
521
521
|
const g = { variant: ie.Menuitem, commandHook: e, scope: "sort", disabled: l }, x = s.getCommand("sortCustom"), m = H(se, { children: [o(O, { ...g, command: s.getCommand("sortAscending") }), o(O, { ...g, command: s.getCommand("sortDescending") }), x ? o(O, { ...g, command: x }) : null, o(Q, { orientation: "horizontal" }), o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterToggle") }), o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterClear") }), o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterReapply") })] });
|
|
522
522
|
return ye({ ...i, children: m });
|
|
523
523
|
}, [l, e, r]);
|
|
524
524
|
return o(Te, { ref: a, commands: t, commandHook: e, scope: r, disabled: l, label: "Sort", tooltip: H(se, { children: [o("span", { children: "Organize your data so it's easier to analyze." }), o("br", {}), o("span", { children: "You can sort the selected data from smallest to largest or largest to smallest." })] }), createPopupPanel: u, icon: "SortFilter", ...c });
|
|
525
525
|
})), ap = q(X((n, a) => {
|
|
526
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u =
|
|
526
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = U((i, s) => {
|
|
527
527
|
const g = { variant: ie.Menuitem, commandHook: e, scope: "sort", disabled: l }, x = H(se, { children: [o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterToggle") }), o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterClear") }), o(O, { ...g, scope: "filter", command: s.getCommand("autoFilterReapply") })] });
|
|
528
528
|
return ye({ ...i, children: x });
|
|
529
529
|
}, [l, e, r]);
|
|
@@ -534,12 +534,12 @@ const ec = q(X((n, a) => {
|
|
|
534
534
|
const d = Ie(g, m), p = d[0], f = d[1], y = c ?? p?.context?.()?.undoManager;
|
|
535
535
|
let b = s;
|
|
536
536
|
s || (b = !p || p.disabled(), f && !f.disabled() && (b = !1));
|
|
537
|
-
const [h, w] = _(0), v =
|
|
537
|
+
const [h, w] = _(0), v = U((S, C) => {
|
|
538
538
|
let D = h === 0 ? "Cancel" : `${p.label()} ${h} Action${h === 1 ? "" : "s"}`, E = !1;
|
|
539
539
|
y || (E = !0), E || (E = l ? !y.hasRedo() && !y.hasUndo() : !y.hasRedo());
|
|
540
540
|
const P = (B) => {
|
|
541
541
|
p.execute(B);
|
|
542
|
-
}, R = o(
|
|
542
|
+
}, R = o(dt, { sx: { display: "flex", flex: "none", alignItems: "center", justifyContent: "center", padding: E ? void 0 : "0 0", minWidth: "180px" }, icon: o(be, {}), onMouseEnter: () => {
|
|
543
543
|
w(0);
|
|
544
544
|
}, onMouseDown: (B) => {
|
|
545
545
|
B.button === 0 && B.preventDefault();
|
|
@@ -552,7 +552,7 @@ const ec = q(X((n, a) => {
|
|
|
552
552
|
const k = r ? y?.getRedoDescriptions() : y?.getUndoDescriptions(), T = [];
|
|
553
553
|
for (let B = 0; B < k.length; B++) {
|
|
554
554
|
const L = k[B];
|
|
555
|
-
T.push(o(
|
|
555
|
+
T.push(o(dt, { sx: { maxWidth: "360px", display: "flex" }, disabled: b, selected: B < h, icon: o(be, {}), onMouseEnter: () => {
|
|
556
556
|
w(B + 1);
|
|
557
557
|
}, onMouseDown: (M) => {
|
|
558
558
|
M.button === 0 && M.preventDefault();
|
|
@@ -575,21 +575,21 @@ const ec = q(X((n, a) => {
|
|
|
575
575
|
return ye({ ...S, children: I });
|
|
576
576
|
}, [p?.context(), p?.state(), u, y, h, b]);
|
|
577
577
|
return o(Te, { ref: a, commands: g, quickCommand: t, scope: u, disabled: b, label: p?.label() ?? (r ? "Redo" : "Undo"), tooltip: o(se, { children: o("span", { children: `${p?.label() ?? "No"} last actions.` }) }), createPopupPanel: v, icon: e ?? (r ? "Redo" : "Undo"), selected: !1, ...x });
|
|
578
|
-
})),
|
|
579
|
-
for (let n = 0; n <
|
|
578
|
+
})), no = Ml.getFontList(), Wa = /* @__PURE__ */ new Map();
|
|
579
|
+
for (let n = 0; n < no.length; n++) Wa.set(no[n].fontRef.getFamily(), no[n]);
|
|
580
580
|
const tc = q(X((n, a) => {
|
|
581
581
|
const { command: t, commandHook: e, sx: r, disabled: l = !1, parentFloat: c, icon: u, label: i, ...s } = n;
|
|
582
|
-
|
|
583
|
-
const g = t?.state(), x = Xe(), m = W(() => `${
|
|
582
|
+
$t(t);
|
|
583
|
+
const g = t?.state(), x = Xe(), m = W(() => `${Wt.getSharedMeasurer()("Times New Roman", Math.round(x.typography.fontSize), x.typography.fontFamily).width}px`, [x]), d = U((p) => {
|
|
584
584
|
const f = (w) => {
|
|
585
585
|
t?.execute(w, e);
|
|
586
586
|
}, y = [];
|
|
587
|
-
for (let w = 0; w <
|
|
587
|
+
for (let w = 0; w < no.length; w++) y.push({ key: no[w].fontRef.getFamily(), description: no[w].fontRef.getFamily() });
|
|
588
588
|
Wa.get(g) || y.unshift({ key: g, description: g });
|
|
589
589
|
const b = [];
|
|
590
590
|
for (let w = 0; w < y.length; w++) {
|
|
591
591
|
const v = y[w].key === g;
|
|
592
|
-
b.push(o(
|
|
592
|
+
b.push(o(dt, { sx: { display: "flex", paddingTop: "4px", paddingBottom: "4px" }, selected: v, disabled: l || !t || t.disabled(), icon: v ? o(nn, {}) : void 0, onMouseUp: (S) => {
|
|
593
593
|
S.button === 0 && f(y[w].key);
|
|
594
594
|
}, onMouseDown: (S) => {
|
|
595
595
|
S.button === 0 && S.preventDefault();
|
|
@@ -600,7 +600,7 @@ const tc = q(X((n, a) => {
|
|
|
600
600
|
const h = o(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ...s, children: o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: b }) });
|
|
601
601
|
return ye({ ...p, children: h });
|
|
602
602
|
}, [l, t?.state()]);
|
|
603
|
-
return o(
|
|
603
|
+
return o(Tt, { ref: a, sx: { ...r }, outlined: !0, disabled: l, parentFloat: c, createPopupPanel: d, createTooltip: ({ children: p }, f) => o(rt, { label: t?.label(), description: t?.description(), disabled: f, children: p }), icon: o(F, { sx: { display: "flex", paddingLeft: "4px", paddingRight: "4px", fontSize: (p) => `${Math.round(p.typography.fontSize)}px`, fontFamily: (p) => p.typography.fontFamily, color: (p) => p.palette.text.secondary, width: m }, children: o(F, { sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "pre" }, children: g }) }), ...s });
|
|
604
604
|
})), oc = q(X((n, a) => {
|
|
605
605
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = Ie(t, ["formatStrikeThroughToggle", "formatSuperscriptToggle", "formatSubscriptToggle"]), i = W(() => {
|
|
606
606
|
const g = u.length;
|
|
@@ -609,7 +609,7 @@ const tc = q(X((n, a) => {
|
|
|
609
609
|
if (m?.state()) return m;
|
|
610
610
|
}
|
|
611
611
|
return u[0];
|
|
612
|
-
}, [u]), s =
|
|
612
|
+
}, [u]), s = U((g, x) => {
|
|
613
613
|
const m = { variant: ie.Menuitem, commandHook: e, scope: "textEffects", disabled: l }, d = H(se, { children: [o(O, { ...m, command: x.getCommand("formatStrikeThroughToggle") }), o(O, { ...m, command: x.getCommand("formatSuperscriptToggle") }), o(O, { ...m, command: x.getCommand("formatSubscriptToggle") })] });
|
|
614
614
|
return ye({ ...g, children: d });
|
|
615
615
|
}, [l, e, r]);
|
|
@@ -619,7 +619,7 @@ const tc = q(X((n, a) => {
|
|
|
619
619
|
const g = u.length;
|
|
620
620
|
for (let x = 0; x < g; x++) if (u[x]?.state()) return u[x];
|
|
621
621
|
return u[0];
|
|
622
|
-
}, [u]), s =
|
|
622
|
+
}, [u]), s = U((g, x) => {
|
|
623
623
|
const m = { variant: ie.Menuitem, commandHook: e, scope: "underline", disabled: l }, d = H(se, { children: [o(O, { ...m, command: x.getCommand("formatUnderlinedToggle") }), o(O, { ...m, command: x.getCommand("formatUnderlinedDoubleToggle") }), o(O, { ...m, command: x.getCommand("formatUnderlinedAccountingToggle"), commandHook: e }), o(O, { ...m, command: x.getCommand("formatUnderlinedAccountingDoubleToggle") })] });
|
|
624
624
|
return ye({ ...g, children: d });
|
|
625
625
|
}, [l, e, r]);
|
|
@@ -631,35 +631,35 @@ const tc = q(X((n, a) => {
|
|
|
631
631
|
}, [u, r, l, c]);
|
|
632
632
|
return o(Te, { ref: a, commands: e, commandHook: r, scope: l, createPopupPanel: s, label: "Paste", tooltip: "Add content to the clipboard to your document.", quickCommand: "paste", ...i });
|
|
633
633
|
})), rc = q(X((n, a) => {
|
|
634
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, parentFloat: c, ...u } = n, i = Ie(t, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), s =
|
|
634
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, parentFloat: c, ...u } = n, i = Ie(t, ["sheetViewToggleShowHeadings", "sheetViewToggleShowHeadingColumns", "sheetViewToggleShowHeadingRows"]), s = U((g, x) => {
|
|
635
635
|
const m = { variant: ie.Menuitem, parentFloat: g.floatReference, commandHook: e, scope: r, disabled: l }, d = H(se, { children: [o(O, { ...m, command: x.getCommand("sheetViewToggleShowHeadings") }), o(O, { ...m, command: x.getCommand("sheetViewToggleShowHeadingsNumeric") }), o(Q, { orientation: "horizontal" }), o(O, { ...m, command: x.getCommand("sheetViewToggleShowHeadingColumns") }), o(O, { ...m, command: x.getCommand("sheetViewToggleShowHeadingRows") })] });
|
|
636
636
|
return ye({ ...g, children: d });
|
|
637
637
|
}, [l, e, r]);
|
|
638
638
|
return o(Te, { ref: a, parentFloat: c, quickCommand: i[0]?.key(), commands: t, commandHook: e, createPopupPanel: s, label: "Headings", tooltip: "Configure how the column and rows headings in the sheet are displayed.", icon: o(rn, { command: i[0], scope: "view" }), ...u });
|
|
639
639
|
})), ac = q(X((n, a) => {
|
|
640
|
-
const { commands: t, commandHook: e, scope: r = "view", disabled: l = !1, ...c } = n, u =
|
|
640
|
+
const { commands: t, commandHook: e, scope: r = "view", disabled: l = !1, ...c } = n, u = U((i) => {
|
|
641
641
|
const s = { variant: ie.Menuitem, parentFloat: i.floatReference, commandHook: e, scope: r, disabled: l }, g = H(se, { children: [o(O, { ...s, command: t.getCommand("workbookViewToggleShowFormulaBar") }), o(O, { ...s, command: t.getCommand("workbookViewToggleShowTabs") }), o(O, { ...s, command: t.getCommand("workbookViewToggleShowStatusBar") }), o(Q, { orientation: "horizontal" }), o(O, { ...s, command: t.getCommand("workbookViewToggleShowHorizontalScrollBar") }), o(O, { ...s, command: t.getCommand("workbookViewToggleShowVerticalScrollBar") })] });
|
|
642
642
|
return ye({ ...i, children: g });
|
|
643
643
|
}, [l, t, e, r]);
|
|
644
644
|
return o(Te, { ref: a, commands: t, disabled: l, commandHook: e, scope: r, label: "Workbook View", tooltip: "Options to configure how the workbook is displayed.", createPopupPanel: u, icon: o(rn, { icon: null, label: "Workbook View" }), ...c });
|
|
645
645
|
})), $a = q(X((n, a) => {
|
|
646
|
-
const { value: t, cellStyle: e, styles: r, createTemporaryCell: l, bodyStyle: c, sx: u, borderProps: i, disabled: s, ...g } = n, x = W(() => l({ value: t, style: e }), [t, e, l]), m = W(() => x.getStyle(), [x, c]), d = W(() => m.getFill().toCSS(c?.darkMode ?? !1), [m]), p = m.getInsets(), f = m.getFont(), y =
|
|
646
|
+
const { value: t, cellStyle: e, styles: r, createTemporaryCell: l, bodyStyle: c, sx: u, borderProps: i, disabled: s, ...g } = n, x = W(() => l({ value: t, style: e }), [t, e, l]), m = W(() => x.getStyle(), [x, c]), d = W(() => m.getFill().toCSS(c?.darkMode ?? !1), [m]), p = m.getInsets(), f = m.getFont(), y = U(() => m.getBorder(), [m]);
|
|
647
647
|
return o(F, { ref: a, sx: { width: "100px", height: "100%", textOverflow: "ellipsis", display: "flex", alignItems: "stretch", background: c?.fill, filter: s ? "grayscale(0.4) opacity(0.8);" : "none", "& .fill": { flex: "1 1 100%", overflow: "hidden", ...d }, "& .text": { flex: "1 1 100%", ...f.toCSS(c?.darkMode ?? !1, 1), boxSizing: "border-box", padding: `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`, margin: "0px", outline: "none", resize: "none", overflow: "hidden", textOverflow: "ellipsis", verticalAlign: "baseline", textDecoration: f.toCSS().textDecoration, textAlign: Nl.toCSSHorizontalTextAlign(x.getRenderHorizontalAlignment()), background: "transparent", maxHeight: "100%", whiteSpace: "pre", wordWrap: "break-word" }, ...u }, ...g, children: o(Un, { getBorderAt: y, darkMode: c?.darkMode ?? !1, rowCount: 1, columnCount: 1, style: { height: "100%", width: "100%", ...i?.style }, ...i, children: o(F, { className: "fill", sx: { paddingLeft: "4px", paddingRight: "4px", marginLeft: "-1px", marginTop: "-1px", marginRight: "-2px", marginBottom: "-2px", display: "flex", alignItems: "center" }, children: o(F, { className: "text", children: t }) }) }) });
|
|
648
648
|
})), ic = q((n) => {
|
|
649
|
-
const { styles: a, namedStyle: t, selectedNamed: e, hasContextMenu: r = !0, bodyStyle: l, onSelectNamed: c, createTemporaryCell: u, parentFloat: i, commands: s, disabled: g, commandHook: x, ...m } = n, d =
|
|
649
|
+
const { styles: a, namedStyle: t, selectedNamed: e, hasContextMenu: r = !0, bodyStyle: l, onSelectNamed: c, createTemporaryCell: u, parentFloat: i, commands: s, disabled: g, commandHook: x, ...m } = n, d = U((y) => {
|
|
650
650
|
const b = { variant: ie.Menuitem, commandHook: x, context: "cellStyle" }, h = H(se, { children: [o(O, { ...b, style: { fontWeight: 550 }, command: s.getCommand("formatCellStyle"), commandState: t, disabled: g }), o(Q, { orientation: "horizontal" }), o(O, { ...b, command: s.getCommand("modifyCellStyle"), commandState: { named: t } }), o(O, { ...b, command: s.getCommand("deleteCellStyle"), commandState: t, disabled: g || t?.getName() === ce.BuiltInName.Normal })] });
|
|
651
651
|
return ye({ ...y, children: o(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: h }) }) });
|
|
652
652
|
}, []), p = t?.getName() === e?.getName();
|
|
653
|
-
let f = o(
|
|
653
|
+
let f = o(xt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (y) => `solid ${p ? y.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: t.getName(), placement: "bottom-start" }, disabled: g, icon: null, onClick: () => {
|
|
654
654
|
c?.(t);
|
|
655
655
|
}, ...m, children: o($a, { value: t.getName(), cellStyle: { named: t.getName() }, styles: a, createTemporaryCell: u, bodyStyle: l }) }, t.getName());
|
|
656
656
|
return r && (f = o(Ra, { label: t.getName(), parentFloat: i, createPopupPanel: d, children: f })), f;
|
|
657
657
|
}), lc = q(X((n, a) => {
|
|
658
658
|
const { commands: t, command: e, commandHook: r, selectedNamed: l, onSelectNamed: c, disabled: u = !1, bodyStyle: i, usePreviewIcon: s = !0, ...g } = n;
|
|
659
|
-
|
|
659
|
+
$t(e);
|
|
660
660
|
const x = e?.context(), m = x?.styles, d = l ?? x?.named(), p = i ?? x?.bodyStyle(), f = Y((v) => {
|
|
661
661
|
c?.(v), e?.execute(v, r);
|
|
662
|
-
}, [e, c, r]), y =
|
|
662
|
+
}, [e, c, r]), y = U((v, S) => {
|
|
663
663
|
const C = { onSelectNamed: f, styles: m(), parentFloat: v.floatReference }, D = m().getCustomNamed(), E = /* @__PURE__ */ new Map(), P = [];
|
|
664
664
|
for (let M = 0; M < D.length; M++) E.set(D[M].getName(), D[M]), m().getNamed(D[M].getName()).getBuiltInID() === null && P.push(D[M].getName());
|
|
665
665
|
const R = (M) => {
|
|
@@ -671,7 +671,7 @@ const tc = q(X((n, a) => {
|
|
|
671
671
|
const j = R(z[pe]);
|
|
672
672
|
j && J.push(j);
|
|
673
673
|
}
|
|
674
|
-
return J.length === 0 ? null : H(F, { children: [ae ? o(Q, { orientation: "horizontal" }) : null, o(
|
|
674
|
+
return J.length === 0 ? null : H(F, { children: [ae ? o(Q, { orientation: "horizontal" }) : null, o(ao, { children: M }, M + "-header"), o(F, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "646px", maxWidth: "100%" }, children: J }, M + "-presets")] }, M);
|
|
675
675
|
}, T = (M, z) => {
|
|
676
676
|
const ae = [];
|
|
677
677
|
for (let J = 0; J < z.length; J++) {
|
|
@@ -683,13 +683,13 @@ const tc = q(X((n, a) => {
|
|
|
683
683
|
N.push(k("Custom", P, !1)), N.push(k("Good, Bad and Neutral", [ce.BuiltInName.Normal, ce.BuiltInName.Bad, ce.BuiltInName.Good, ce.BuiltInName.Neutral], P.length > 0)), N.push(k("Data and Model", [ce.BuiltInName.Calculation, ce.BuiltInName.CheckCell, ce.BuiltInName.ExplanatoryText, ce.BuiltInName.FollowedHyperlink, ce.BuiltInName.Hyperlink, ce.BuiltInName.Input, ce.BuiltInName.LinkedCell, ce.BuiltInName.Note, ce.BuiltInName.Output, ce.BuiltInName.WarningText])), N.push(k("Titles and Headings", [ce.BuiltInName.Heading1, ce.BuiltInName.Heading2, ce.BuiltInName.Heading3, ce.BuiltInName.Heading4, ce.BuiltInName.Title, ce.BuiltInName.Total]));
|
|
684
684
|
let I = [];
|
|
685
685
|
var B, L;
|
|
686
|
-
return I.push(T("Accent 1", [ce.BuiltInName.Accent1_20, ce.BuiltInName.Accent1_40, ce.BuiltInName.Accent1_60, ce.BuiltInName.Accent1])), I.push(T("Accent 2", [ce.BuiltInName.Accent2_20, ce.BuiltInName.Accent2_40, ce.BuiltInName.Accent2_60, ce.BuiltInName.Accent2])), I.push(T("Accent 3", [ce.BuiltInName.Accent3_20, ce.BuiltInName.Accent3_40, ce.BuiltInName.Accent3_60, ce.BuiltInName.Accent3])), I.push(T("Accent 4", [ce.BuiltInName.Accent4_20, ce.BuiltInName.Accent4_40, ce.BuiltInName.Accent4_60, ce.BuiltInName.Accent4])), I.push(T("Accent 5", [ce.BuiltInName.Accent5_20, ce.BuiltInName.Accent5_40, ce.BuiltInName.Accent5_60, ce.BuiltInName.Accent5])), I.push(T("Accent 6", [ce.BuiltInName.Accent6_20, ce.BuiltInName.Accent6_40, ce.BuiltInName.Accent6_60, ce.BuiltInName.Accent6])), N.push((B = "Themed Cell Styles", L = I, H(F, { children: [o(Q, { orientation: "horizontal" }), o(
|
|
686
|
+
return I.push(T("Accent 1", [ce.BuiltInName.Accent1_20, ce.BuiltInName.Accent1_40, ce.BuiltInName.Accent1_60, ce.BuiltInName.Accent1])), I.push(T("Accent 2", [ce.BuiltInName.Accent2_20, ce.BuiltInName.Accent2_40, ce.BuiltInName.Accent2_60, ce.BuiltInName.Accent2])), I.push(T("Accent 3", [ce.BuiltInName.Accent3_20, ce.BuiltInName.Accent3_40, ce.BuiltInName.Accent3_60, ce.BuiltInName.Accent3])), I.push(T("Accent 4", [ce.BuiltInName.Accent4_20, ce.BuiltInName.Accent4_40, ce.BuiltInName.Accent4_60, ce.BuiltInName.Accent4])), I.push(T("Accent 5", [ce.BuiltInName.Accent5_20, ce.BuiltInName.Accent5_40, ce.BuiltInName.Accent5_60, ce.BuiltInName.Accent5])), I.push(T("Accent 6", [ce.BuiltInName.Accent6_20, ce.BuiltInName.Accent6_40, ce.BuiltInName.Accent6_60, ce.BuiltInName.Accent6])), N.push((B = "Themed Cell Styles", L = I, H(F, { children: [o(Q, { orientation: "horizontal" }), o(ao, { children: B }, B + "-header"), o(F, { sx: { display: "flex", gap: "2px", flexWrap: "wrap", alignItems: "start", flexDirection: "row" }, children: L }, B + "-presets")] }, B))), N.push(k("Number Format", [ce.BuiltInName.Comma, ce.BuiltInName.Comma0, ce.BuiltInName.Currency, ce.BuiltInName.Currency0, ce.BuiltInName.Percent])), H(F, { sx: { display: "flex", flexDirection: "column", maxWidth: "100%", paddingTop: (M) => `${M.shape.borderRadius}px`, paddingBottom: (M) => `${M.shape.borderRadius}px` }, children: [o(F, { onContextMenu: () => {
|
|
687
687
|
}, sx: { display: "flex", flexDirection: "column", paddingTop: "6px", paddingBottom: "0px", paddingLeft: "16px", paddingRight: "16px" }, children: N }), o(Q, { orientation: "horizontal" }), o(O, { variant: ie.Menuitem, commandState: d, command: S.getCommand("newCellStyle"), context: "styles", commandHook: r, disabled: u })] });
|
|
688
688
|
}, [d, m?.().getTheme(), p]), b = Y((v) => {
|
|
689
|
-
const S = 18 /
|
|
689
|
+
const S = 18 / Wt.getDeviceScale(), C = x?.createTemporaryCell(v);
|
|
690
690
|
return C.getStyle().getFont().getSize() <= S ? C : C.createTemporaryCell({ style: { font: { size: S } } });
|
|
691
691
|
}, [x?.createTemporaryCell]), h = u || !e || e.disabled(), w = W(() => x && s ? o($a, { value: d?.getName() ?? "Custom", cellStyle: d ? { named: d.getName() } : void 0, styles: x.styles(), createTemporaryCell: b, bodyStyle: x.bodyStyle(), className: "outline-hover", disabled: h, sx: { marginRight: "4px", borderRadius: "2px", minHeight: "calc(100% - 2px)", overflow: "hidden", outline: (v) => `1px solid ${v.palette.action.hover}` }, borderProps: { style: { height: "calc(100% - 2px)", width: "calc(100% - 1px)" } } }) : e?.icon(), [d, p, h, e]);
|
|
692
|
-
return o(Te, { ref: a, createPopupPanel: y, outlined: s, commands: t, createTooltip: ({ children: v }, S) => o(
|
|
692
|
+
return o(Te, { ref: a, createPopupPanel: y, outlined: s, commands: t, createTooltip: ({ children: v }, S) => o(rt, { label: e?.label(), description: e?.description(), disabled: S, children: v }), selected: !1, disabled: h, label: e?.label(), icon: w, ...g });
|
|
693
693
|
})), Va = "_sheetxl-reset_11z3j_1", sc = 10, _a = q(X((n, a) => {
|
|
694
694
|
const { styles: t, table: e, tableStyle: r = e?.getStyle() ?? t.getDefaultTableStyle(), bodyStyle: l, sx: c, disabled: u, className: i, forceThinBorder: s, cellHeight: g = sc, isLive: x = !1, ...m } = n, d = Math.ceil(1.3 * g), [p, f] = on((v) => v + 1, 0);
|
|
695
695
|
de(() => {
|
|
@@ -723,7 +723,7 @@ const tc = q(X((n, a) => {
|
|
|
723
723
|
S.push(o("tr", { children: D }, C));
|
|
724
724
|
}
|
|
725
725
|
return S;
|
|
726
|
-
}, [y, r, l]), w =
|
|
726
|
+
}, [y, r, l]), w = U((v, S) => b[S].getBorder() ?? null, [b]);
|
|
727
727
|
return o(F, { ref: a, className: "table-format-preview", sx: { background: l?.fill, filter: u ? "grayscale(0.4) opacity(0.8);" : "none", "& .styled-element": { position: "absolute" }, ...c }, ...m, children: o(Un, { getBorderAt: w, rowCount: 5, columnCount: 5, forceThinBorder: s, width: 5 * (d - 1) + 1, height: 5 * (g - 1) + 1, darkMode: l?.darkMode ?? !1, style: { pointerEvents: "none" }, children: o("table", { className: Ce(i, "sheetxl-table-preview", Va), style: { borderCollapse: "collapse", width: 5 * (d - 1) + 1, height: 5 * (g - 1) + 1 }, children: o("tbody", { children: h }) }) }) });
|
|
728
728
|
})), go = (n, a, t, e, r) => {
|
|
729
729
|
n.beginPath(), n.moveTo(a + 0.5, t + 0.5), n.lineTo(e + 0.5, r + 0.5), n.stroke();
|
|
@@ -774,21 +774,21 @@ const tc = q(X((n, a) => {
|
|
|
774
774
|
return o("div", { ref: a, className: Ce("table-style-preview", i), style: { backgroundImage: d, width: 61, height: 46, ...u }, ...g });
|
|
775
775
|
})), dc = "_table-style-options-container_1kfn2_1", pc = "_table-style-options_1kfn2_1", uc = q(X((n, a) => {
|
|
776
776
|
const { styleOptions: t, onStyleOptionsChange: e, showHeaderRow: r, onShowHeaderRowChange: l, showTotalRow: c, onShowTotalRowChange: u, showFilterButton: i, onShowFilterButtonChange: s, sx: g, className: x, disabled: m, ...d } = n;
|
|
777
|
-
return o("div", { className: dc, children: H(F, { sx: { pt: 1, pb: 1, "& .MuiFormControlLabel-root": { marginLeft: (p) => `${p.spacing(2)}`, marginRight: (p) => `${p.spacing(2)}` }, "& .MuiCheckbox-root": { padding: (p) => `${p.spacing(0.5)}` }, ...g }, ...d, ref: a, className: Ce(x, pc), children: [l && o(
|
|
777
|
+
return o("div", { className: dc, children: H(F, { sx: { pt: 1, pb: 1, "& .MuiFormControlLabel-root": { marginLeft: (p) => `${p.spacing(2)}`, marginRight: (p) => `${p.spacing(2)}` }, "& .MuiCheckbox-root": { padding: (p) => `${p.spacing(0.5)}` }, ...g }, ...d, ref: a, className: Ce(x, pc), children: [l && o(Nt, { control: o(Ft, { checked: r ?? !1, indeterminate: r == null, onChange: () => l(!r), disabled: m || r == null }), label: "Header Row", labelPlacement: "end" }), u && o(Nt, { control: o(Ft, { checked: c ?? !1, indeterminate: c == null, onChange: () => u(!c), disabled: m || c == null }), label: "Total Row", labelPlacement: "end" }), o(Nt, { control: o(Ft, { checked: t?.showRowStripes ?? !1, indeterminate: !t, disabled: m || !t, onChange: () => {
|
|
778
778
|
e?.({ ...t, showRowStripes: !t?.showRowStripes });
|
|
779
|
-
} }), label: "Banded Rows", labelPlacement: "end" }), o(
|
|
779
|
+
} }), label: "Banded Rows", labelPlacement: "end" }), o(Nt, { control: o(Ft, { checked: t?.showFirstColumn ?? !1, indeterminate: !t, disabled: m || !t, onChange: () => {
|
|
780
780
|
e?.({ ...t, showFirstColumn: !t?.showFirstColumn });
|
|
781
|
-
} }), label: "First Column", labelPlacement: "end" }), o(
|
|
781
|
+
} }), label: "First Column", labelPlacement: "end" }), o(Nt, { control: o(Ft, { checked: t?.showLastColumn ?? !1, indeterminate: !t, disabled: m || !t, onChange: () => {
|
|
782
782
|
e?.({ ...t, showLastColumn: !t?.showLastColumn });
|
|
783
|
-
} }), label: "Last Column", labelPlacement: "end" }), o(
|
|
783
|
+
} }), label: "Last Column", labelPlacement: "end" }), o(Nt, { control: o(Ft, { checked: t?.showColumnStripes ?? !1, indeterminate: !t, disabled: m || !t, onChange: () => {
|
|
784
784
|
e?.({ ...t, showColumnStripes: !t?.showColumnStripes });
|
|
785
|
-
} }), label: "Banded Columns", labelPlacement: "end" }), s && o(
|
|
785
|
+
} }), label: "Banded Columns", labelPlacement: "end" }), s && o(Nt, { control: o(Ft, { checked: i ?? !1, indeterminate: i == null, disabled: m || !t || i == null, onChange: () => s(!i) }), label: "Filter Button", labelPlacement: "end" })] }) });
|
|
786
786
|
}));
|
|
787
787
|
function Sn(n, a) {
|
|
788
788
|
if (typeof n == "function") return n(a);
|
|
789
789
|
n && (n.current = a);
|
|
790
790
|
}
|
|
791
|
-
var
|
|
791
|
+
var Vt = parseInt(Gl.split(".")[0], 10) >= 19 ? function(n) {
|
|
792
792
|
return (a) => {
|
|
793
793
|
const t = [];
|
|
794
794
|
for (const e of n) {
|
|
@@ -808,8 +808,8 @@ var $t = parseInt(Gl.split(".")[0], 10) >= 19 ? function(n) {
|
|
|
808
808
|
function ip(n) {
|
|
809
809
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
810
810
|
}
|
|
811
|
-
var hc = Ua ?
|
|
812
|
-
const
|
|
811
|
+
var hc = Ua ? kt : de, Pr = { x: 0, y: 0, width: 0, height: 0, top: 0, left: 0, bottom: 0, right: 0 };
|
|
812
|
+
const Ht = Ua && window.ResizeObserver !== void 0 ? function() {
|
|
813
813
|
var n = _(null), a = n[0], t = n[1], e = _(Pr), r = e[0], l = e[1], c = W(function() {
|
|
814
814
|
return new window.ResizeObserver(function(u) {
|
|
815
815
|
if (u[0]) {
|
|
@@ -848,7 +848,7 @@ const Ka = q(X((n, a) => {
|
|
|
848
848
|
b(k.target.value ?? "");
|
|
849
849
|
}, []), P = Y((k) => {
|
|
850
850
|
b(""), f?.onBlur(k);
|
|
851
|
-
}, []), R =
|
|
851
|
+
}, []), R = U((k) => {
|
|
852
852
|
C(k.target.value), f?.onChange(k);
|
|
853
853
|
}, [f]);
|
|
854
854
|
return o(Xn, { sx: { paddingTop: (k) => k.spacing(1.5), minWidth: 135, width: "100%", ...l }, size: "small", ref: a, className: Ce("named-input", r), ...d, children: o(Ta, { label: "Name", placeholder: c, onFocus: E, onBlur: P, inputRef: f?.ref, disabled: t, error: !!h, helperText: h || " ", sx: { "& .MuiFormHelperText-root": { marginTop: (k) => k.spacing(0.5) } }, slotProps: { inputLabel: { shrink: !0 }, htmlInput: { className: "autoFocus", name: i, spellCheck: !1, autoComplete: "off", readOnly: t, sx: { paddingTop: (k) => k.spacing(1.25), paddingBottom: (k) => k.spacing(0.75), backgroundImage: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})` } } }, value: v ?? "", onChange: R, onKeyDownCapture: D, onContextMenu: (k) => {
|
|
@@ -879,7 +879,7 @@ const zo = (n) => n === null ? "" : n.toString(), Xa = q(X((n, a) => {
|
|
|
879
879
|
i?.(T);
|
|
880
880
|
}, [s, g, i, b]), D = Y((T) => {
|
|
881
881
|
p?.onBlur(T);
|
|
882
|
-
}, [p]), E =
|
|
882
|
+
}, [p]), E = U((T) => {
|
|
883
883
|
S(T.target.value), p?.onChange(T);
|
|
884
884
|
}, [p]), [P, R] = _(!1), k = W(() => o(Zl, { tabIndex: -1, sx: { display: "flex", position: "relative", flex: "0" }, position: "end", children: o(ss, { disabled: !0, selected: P, onSelectToggle: (T) => {
|
|
885
885
|
R(T);
|
|
@@ -890,7 +890,7 @@ const zo = (n) => n === null ? "" : n.toString(), Xa = q(X((n, a) => {
|
|
|
890
890
|
}));
|
|
891
891
|
Xa.displayName = "RangeInput";
|
|
892
892
|
const Qe = [];
|
|
893
|
-
Qe.push(
|
|
893
|
+
Qe.push(ot("Primary Background", "bg1")), Qe.push(ot("Primary Text", "tx1")), Qe.push(ot("Secondary Background", "bg2")), Qe.push(ot("Secondary Text", "tx2")), Qe.push(ot("Accent 1", "accent1")), Qe.push(ot("Accent 2", "accent2")), Qe.push(ot("Accent 3", "accent3")), Qe.push(ot("Accent 4", "accent4")), Qe.push(ot("Accent 5", "accent5")), Qe.push(ot("Accent 6", "accent6"));
|
|
894
894
|
const bc = (n) => {
|
|
895
895
|
const { docTheme: a, onSelectTheme: t, darkMode: e, isSelected: r, outlined: l, sx: c, ...u } = n, i = Xe(), s = W(() => {
|
|
896
896
|
let g = [];
|
|
@@ -900,12 +900,12 @@ const bc = (n) => {
|
|
|
900
900
|
}
|
|
901
901
|
return o(F, { sx: { display: "flex", flexDirection: "row", flex: "none" }, children: o(F, { sx: { display: "flex", boxShadow: (x) => x.shadows[2] }, children: g }) });
|
|
902
902
|
}, [a, i]);
|
|
903
|
-
return o(
|
|
903
|
+
return o(xt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (g) => `solid ${r ? g.palette.text.primary : "transparent"} 1px`, "&:hover:not([disabled])": { border: (g) => `solid ${g.palette.text.primary} 1px !important` } }, icon: null, ...u, children: H(F, { sx: { border: (g) => `solid ${g.palette.divider} 1px`, minWidth: "200px", borderRadius: "2px", padding: "4px 4px", textAlign: "left", display: "flex", gap: "4px", flexDirection: "column", alignItems: "stretch", color: (g) => r ? g.palette.text.primary : void 0, "&:hover:not([disabled])": { color: (g) => g.palette.text.primary } }, children: [o(F, { sx: {}, children: a.getName() }), H(F, { sx: { paddingTop: "6px", paddingLeft: "12px", paddingRight: "12px", display: "flex", flexDirection: "column", alignItems: "stretch" }, children: [s, o(F, { sx: { flex: "1 1 100%", textOverflow: "ellipsis", overflow: "hidden", marginTop: "2px", whiteSpace: "pre", fontFamily: () => a.getFontScheme().getMajorFont() }, children: o(Ct, { disableInteractive: !0, slotProps: { popper: { style: { pointerEvents: "none" }, disablePortal: !0, popperOptions: { strategy: "fixed", modifiers: [{ name: "preventOverflow", enabled: !0, options: { boundariesElement: "viewport" } }] } } }, title: o("div", { style: { textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "pre" }, children: `The font used for the body.
|
|
904
904
|
The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bottom-start", children: o("div", { children: a.getFontScheme().getMinorFont() }) }) })] })] }) });
|
|
905
905
|
}, xc = q(X((n, a) => {
|
|
906
906
|
const { themes: t, selectedTheme: e, onSelectTheme: r, sx: l, disabled: c = !1, darkMode: u, ...i } = n, s = W(() => {
|
|
907
907
|
const g = t?.getItems({ selected: e }) ?? [], x = [];
|
|
908
|
-
if (g.length === 0) return o(
|
|
908
|
+
if (g.length === 0) return o(ao, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "6px", paddingBottom: "6px" }, children: "No themes" });
|
|
909
909
|
const m = g.length;
|
|
910
910
|
for (let d = 0; d < m; d++) {
|
|
911
911
|
const p = g[d], f = e && p?.getName() === e.getName(), y = g[d + 1];
|
|
@@ -919,15 +919,15 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
919
919
|
}
|
|
920
920
|
return x;
|
|
921
921
|
}, [e, r, u]);
|
|
922
|
-
return o(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ref: a, ...i, children: H(F, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [o(
|
|
922
|
+
return o(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%" }, ref: a, ...i, children: H(F, { sx: { display: "flex", flexDirection: "column", overflow: "hidden" }, children: [o(ao, { sx: { paddingLeft: "16px", paddingRight: "16px", paddingTop: "4px", paddingBottom: "2px" }, children: "Themes" }), o(Q, {}), o(F, { sx: { flex: "1 1 100%", overflow: "auto", padding: "6px 16px" }, children: s })] }) });
|
|
923
923
|
})), yc = q(X((n, a) => {
|
|
924
|
-
const { themes: t, selectedTheme: e, onSelectTheme: r, icon: l, tooltip: c, label: u, variant: i =
|
|
924
|
+
const { themes: t, selectedTheme: e, onSelectTheme: r, icon: l, tooltip: c, label: u, variant: i = nt.Toolbar, darkMode: s, panelProps: g, ...x } = n, m = l || o(be, { iconKey: "Theme2" }), d = U((f) => {
|
|
925
925
|
const { closeFloatAll: y } = f;
|
|
926
926
|
return o(xc, { ...g, themes: t, selectedTheme: e, onSelectTheme: r, darkMode: s, onKeyDown: (b) => {
|
|
927
927
|
b.which === me.Enter && y();
|
|
928
928
|
} });
|
|
929
929
|
}, [t, e, r, g, s]), p = { createPopupPanel: d, tooltip: c || u || "Theme", label: u, icon: m, ...x };
|
|
930
|
-
return i ===
|
|
930
|
+
return i === nt.Toolbar ? o(Tt, { ref: a, ...p }) : o(Yn, { ref: a, ...p });
|
|
931
931
|
})), Ya = q(X((n, a) => {
|
|
932
932
|
const { sheet: t, className: e, debounceDelay: r = 220, sx: l, ...c } = n, [u, i] = _(() => t.getView().getZoomScale()), [s, g] = _(null), x = fe(0);
|
|
933
933
|
We(t, { onViewChange: () => {
|
|
@@ -935,7 +935,7 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
935
935
|
} }), de(() => {
|
|
936
936
|
x.current = 0, g(!1), i(t.getView().getZoomScale());
|
|
937
937
|
}, [t]), de(() => {
|
|
938
|
-
x.current !== 0 &&
|
|
938
|
+
x.current !== 0 && ft.debounce(() => {
|
|
939
939
|
u === x.current && (x.current = 0, t.getView().update({ zoomScale: u }));
|
|
940
940
|
}, r)();
|
|
941
941
|
}, [u, r]);
|
|
@@ -945,14 +945,14 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
945
945
|
}, [t]), d = (D) => {
|
|
946
946
|
let E = D;
|
|
947
947
|
return D < 100 ? E = 10 / 9 * (D - 10) : D > 100 && (E = (D + 200) / 3), E;
|
|
948
|
-
}, p = d(u), [f, y] = _(null), b = fe(null), h =
|
|
948
|
+
}, p = d(u), [f, y] = _(null), b = fe(null), h = U(() => {
|
|
949
949
|
const D = f;
|
|
950
950
|
D && requestAnimationFrame(() => {
|
|
951
951
|
b.current?.contains(document.activeElement) && D.focus();
|
|
952
952
|
});
|
|
953
953
|
}, []), w = Tr(() => {
|
|
954
|
-
m(d(
|
|
955
|
-
}), v = Tr(() => m(d(
|
|
954
|
+
m(d(ft.findNextStep(t.getView().getZoomScale(), !1, 10)));
|
|
955
|
+
}), v = Tr(() => m(d(ft.findNextStep(t.getView().getZoomScale(), !0, 10)))), S = Xe(), C = W(() => `${Wt.getSharedMeasurer()("100%", Math.round(S.typography.fontSize), S.typography.fontFamily).width}px`, [S]);
|
|
956
956
|
return H(F, { ref: a, className: Ce(e), sx: { padding: "0px 0px", display: "flex", alignItems: "center", color: (D) => D.palette.text.secondary, ...l }, onFocus: (D) => {
|
|
957
957
|
D.relatedTarget && !f && y(D.relatedTarget);
|
|
958
958
|
}, onBlur: (D) => {
|
|
@@ -961,15 +961,15 @@ The heading font is '${a.getFontScheme().getMajorFont()}'.` }), placement: "bott
|
|
|
961
961
|
D.button === 0 && D.preventDefault();
|
|
962
962
|
}, onMouseUp: (D) => {
|
|
963
963
|
D.button === 0 && h();
|
|
964
|
-
}, ...c, children: [o(
|
|
964
|
+
}, ...c, children: [o(Ct, { disableInteractive: !0, title: "Zoom Out", children: o(ct, { sx: { padding: "0", "&:hover:not([disabled])": { color: (D) => D.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (D) => {
|
|
965
965
|
D.button !== 0 ? D.preventDefault() : w(D);
|
|
966
966
|
}, children: o(be, { iconKey: "Remove" }) }) }), o(Ql, { ref: b, sx: { flex: "1 1 100%", padding: "6px 0px !important", marginRight: "2px", marginLeft: "2px", "& .MuiSlider-thumb": { height: 14, width: 6, borderRadius: 0.75, "&.Mui-focusVisible": { boxShadow: (D) => `0px 0px 0px 3px ${kr(D.palette.primary.main, 0.16)}` }, "&:focus, &:hover, &.Mui-active": { boxShadow: (D) => `0px 0px 0px 2px ${kr(D.palette.primary.main, 0.16)}` } }, "& .MuiSlider-mark": { width: "1px", height: "8px" }, "& .MuiSlider-markActive": { backgroundColor: "currentColor" }, "& .MuiSlider-thumb:not(.MuiSlider-active)": { transition: s ? "left 260ms ease-in" : "none" } }, valueLabelDisplay: "auto", size: "small", track: !1, min: 0, step: 1, value: p, max: 200, marks: [{ value: 100 }], onAnimationEnd: () => g(!1), onWheel: (D) => {
|
|
967
|
-
m(d(
|
|
967
|
+
m(d(ft.findNextStep(t.getView().getZoomScale(), D.deltaY < 0, 10)));
|
|
968
968
|
}, onKeyDown: (D) => {
|
|
969
|
-
D.which === me.Down || D.which === me.Right ? (m(d(
|
|
969
|
+
D.which === me.Down || D.which === me.Right ? (m(d(ft.findNextStep(t.getView().getZoomScale(), !0, 10))), D.preventDefault()) : D.which === me.Up || D.which === me.Left ? (m(d(ft.findNextStep(t.getView().getZoomScale(), !1, 10))), D.preventDefault()) : D.which !== me.Enter && D.which !== me.Escape || h();
|
|
970
970
|
}, onChange: (D, E) => {
|
|
971
971
|
Math.abs(E - 100) < 3 ? m(100) : m(E);
|
|
972
|
-
}, valueLabelFormat: (D, E) => `Zoom: ${Math.round(u)}%` }), o(
|
|
972
|
+
}, valueLabelFormat: (D, E) => `Zoom: ${Math.round(u)}%` }), o(Ct, { disableInteractive: !0, title: "Zoom In", children: o(ct, { sx: { padding: "0", "&:hover:not([disabled])": { color: (D) => D.palette.primary.main }, "& svg": { width: "12px", height: "12px" } }, size: "small", onPointerDown: (D) => {
|
|
973
973
|
D.button !== 0 ? D.preventDefault() : v(D);
|
|
974
974
|
}, children: o(be, { iconKey: "Add" }) }) }), H(F, { sx: { display: "flex", flexDirection: "row" }, children: [o(F, { sx: { minWidth: "8px" } }), o(Pe, { noWrap: !0, component: "div", onClick: () => {
|
|
975
975
|
m(100);
|
|
@@ -1023,21 +1023,21 @@ function Sc() {
|
|
|
1023
1023
|
function dn() {
|
|
1024
1024
|
return Fr || (Fr = 1, Or.exports = Sc()()), Or.exports;
|
|
1025
1025
|
}
|
|
1026
|
-
var Ar, Wo = { exports: {} }, Ir, ze = {},
|
|
1026
|
+
var Ar, Wo = { exports: {} }, Ir, ze = {}, yt = {};
|
|
1027
1027
|
function pn() {
|
|
1028
|
-
return Ir || (Ir = 1, Object.defineProperty(
|
|
1028
|
+
return Ir || (Ir = 1, Object.defineProperty(yt, "__esModule", { value: !0 }), yt.dontSetMe = function(n, a, t) {
|
|
1029
1029
|
if (n[a]) return new Error(`Invalid prop ${a} passed to ${t} - do not set this, set it on the child.`);
|
|
1030
|
-
},
|
|
1030
|
+
}, yt.findInArray = function(n, a) {
|
|
1031
1031
|
for (let t = 0, e = n.length; t < e; t++) if (a.apply(a, [n[t], t, n])) return n[t];
|
|
1032
|
-
},
|
|
1032
|
+
}, yt.int = function(n) {
|
|
1033
1033
|
return parseInt(n, 10);
|
|
1034
|
-
},
|
|
1034
|
+
}, yt.isFunction = function(n) {
|
|
1035
1035
|
return typeof n == "function" || Object.prototype.toString.call(n) === "[object Function]";
|
|
1036
|
-
},
|
|
1036
|
+
}, yt.isNum = function(n) {
|
|
1037
1037
|
return typeof n == "number" && !isNaN(n);
|
|
1038
|
-
}),
|
|
1038
|
+
}), yt;
|
|
1039
1039
|
}
|
|
1040
|
-
var Lr, zr,
|
|
1040
|
+
var Lr, zr, wt = {};
|
|
1041
1041
|
function or() {
|
|
1042
1042
|
if (zr) return ze;
|
|
1043
1043
|
zr = 1, Object.defineProperty(ze, "__esModule", { value: !0 }), ze.addClassName = c, ze.addEvent = function(i, s, g, x) {
|
|
@@ -1110,10 +1110,10 @@ function or() {
|
|
|
1110
1110
|
return y;
|
|
1111
1111
|
})(i, s);
|
|
1112
1112
|
})((function() {
|
|
1113
|
-
if (Lr) return
|
|
1114
|
-
Lr = 1, Object.defineProperty(
|
|
1113
|
+
if (Lr) return wt;
|
|
1114
|
+
Lr = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.browserPrefixToKey = g, wt.browserPrefixToStyle = function(x, m) {
|
|
1115
1115
|
return m ? `-${m.toLowerCase()}-${x}` : x;
|
|
1116
|
-
},
|
|
1116
|
+
}, wt.default = void 0, wt.getPrefix = s;
|
|
1117
1117
|
const i = ["Moz", "Webkit", "O", "ms"];
|
|
1118
1118
|
function s() {
|
|
1119
1119
|
let x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
@@ -1130,7 +1130,7 @@ function or() {
|
|
|
1130
1130
|
return p;
|
|
1131
1131
|
})(x)}` : x;
|
|
1132
1132
|
}
|
|
1133
|
-
return
|
|
1133
|
+
return wt.default = s(), wt;
|
|
1134
1134
|
})());
|
|
1135
1135
|
let t = "";
|
|
1136
1136
|
function e(i, s) {
|
|
@@ -1160,20 +1160,20 @@ function or() {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
return ze;
|
|
1162
1162
|
}
|
|
1163
|
-
var Hr,
|
|
1163
|
+
var Hr, lt = {};
|
|
1164
1164
|
function Qa() {
|
|
1165
|
-
if (Hr) return
|
|
1166
|
-
Hr = 1, Object.defineProperty(
|
|
1165
|
+
if (Hr) return lt;
|
|
1166
|
+
Hr = 1, Object.defineProperty(lt, "__esModule", { value: !0 }), lt.canDragX = function(e) {
|
|
1167
1167
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
1168
|
-
},
|
|
1168
|
+
}, lt.canDragY = function(e) {
|
|
1169
1169
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
1170
|
-
},
|
|
1170
|
+
}, lt.createCoreData = function(e, r, l) {
|
|
1171
1171
|
const c = !(0, n.isNum)(e.lastX), u = t(e);
|
|
1172
1172
|
return c ? { node: u, deltaX: 0, deltaY: 0, lastX: r, lastY: l, x: r, y: l } : { node: u, deltaX: r - e.lastX, deltaY: l - e.lastY, lastX: e.lastX, lastY: e.lastY, x: r, y: l };
|
|
1173
|
-
},
|
|
1173
|
+
}, lt.createDraggableData = function(e, r) {
|
|
1174
1174
|
const l = e.props.scale;
|
|
1175
1175
|
return { node: r.node, x: e.state.x + r.deltaX / l, y: e.state.y + r.deltaY / l, deltaX: r.deltaX / l, deltaY: r.deltaY / l, lastX: e.state.x, lastY: e.state.y };
|
|
1176
|
-
},
|
|
1176
|
+
}, lt.getBoundPosition = function(e, r, l) {
|
|
1177
1177
|
if (!e.props.bounds) return [r, l];
|
|
1178
1178
|
let { bounds: c } = e.props;
|
|
1179
1179
|
c = typeof c == "string" ? c : (function(i) {
|
|
@@ -1188,12 +1188,12 @@ function Qa() {
|
|
|
1188
1188
|
c = { left: -u.offsetLeft + (0, n.int)(d.paddingLeft) + (0, n.int)(m.marginLeft), top: -u.offsetTop + (0, n.int)(d.paddingTop) + (0, n.int)(m.marginTop), right: (0, a.innerWidth)(x) - (0, a.outerWidth)(u) - u.offsetLeft + (0, n.int)(d.paddingRight) - (0, n.int)(m.marginRight), bottom: (0, a.innerHeight)(x) - (0, a.outerHeight)(u) - u.offsetTop + (0, n.int)(d.paddingBottom) - (0, n.int)(m.marginBottom) };
|
|
1189
1189
|
}
|
|
1190
1190
|
return (0, n.isNum)(c.right) && (r = Math.min(r, c.right)), (0, n.isNum)(c.bottom) && (l = Math.min(l, c.bottom)), (0, n.isNum)(c.left) && (r = Math.max(r, c.left)), (0, n.isNum)(c.top) && (l = Math.max(l, c.top)), [r, l];
|
|
1191
|
-
},
|
|
1191
|
+
}, lt.getControlPosition = function(e, r, l) {
|
|
1192
1192
|
const c = typeof r == "number" ? (0, a.getTouch)(e, r) : null;
|
|
1193
1193
|
if (typeof r == "number" && !c) return null;
|
|
1194
1194
|
const u = t(l), i = l.props.offsetParent || u.offsetParent || u.ownerDocument.body;
|
|
1195
1195
|
return (0, a.offsetXYFromParent)(c || e, i, l.props.scale);
|
|
1196
|
-
},
|
|
1196
|
+
}, lt.snapToGrid = function(e, r, l) {
|
|
1197
1197
|
const c = Math.round(r / e[0]) * e[0], u = Math.round(l / e[1]) * e[1];
|
|
1198
1198
|
return [c, u];
|
|
1199
1199
|
};
|
|
@@ -1203,7 +1203,7 @@ function Qa() {
|
|
|
1203
1203
|
if (!r) throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1204
1204
|
return r;
|
|
1205
1205
|
}
|
|
1206
|
-
return
|
|
1206
|
+
return lt;
|
|
1207
1207
|
}
|
|
1208
1208
|
var Wr, jr, $r, Vr, xo = {}, jo = {};
|
|
1209
1209
|
function Ja() {
|
|
@@ -1226,7 +1226,7 @@ function vc() {
|
|
|
1226
1226
|
for (const C in b) C !== "default" && {}.hasOwnProperty.call(b, C) && ((v = (w = Object.defineProperty) && Object.getOwnPropertyDescriptor(b, C)) && (v.get || v.set) ? w(S, C, v) : S[C] = b[C]);
|
|
1227
1227
|
return S;
|
|
1228
1228
|
})(d, p);
|
|
1229
|
-
})(re), a = u(dn()), t = u(
|
|
1229
|
+
})(re), a = u(dn()), t = u(Jt), e = or(), r = Qa(), l = pn(), c = u(Ja());
|
|
1230
1230
|
function u(d) {
|
|
1231
1231
|
return d && d.__esModule ? d : { default: d };
|
|
1232
1232
|
}
|
|
@@ -1339,7 +1339,7 @@ function kc() {
|
|
|
1339
1339
|
for (const D in h) D !== "default" && {}.hasOwnProperty.call(h, D) && ((S = (v = Object.defineProperty) && Object.getOwnPropertyDescriptor(h, D)) && (S.get || S.set) ? v(C, D, S) : C[D] = h[D]);
|
|
1340
1340
|
return C;
|
|
1341
1341
|
})(p, f);
|
|
1342
|
-
})(re), t = g(dn()), e = g(
|
|
1342
|
+
})(re), t = g(dn()), e = g(Jt), r = (function() {
|
|
1343
1343
|
if (Ar) return Wo.exports;
|
|
1344
1344
|
function p(y) {
|
|
1345
1345
|
var b, h, w = "";
|
|
@@ -1746,7 +1746,7 @@ var Ec = (Kr || (Kr = 1, Ho.exports = function() {
|
|
|
1746
1746
|
throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
1747
1747
|
}, Ho.exports.Resizable = oi().default, Ho.exports.ResizableBox = Tc().default), Ho.exports);
|
|
1748
1748
|
const ni = q(X((n, a) => {
|
|
1749
|
-
const { disabled: t, names: e, workbook: r, restoreFocus: l, readonly: c = !1, disabled: u = !1, commandPopupButtonProps: i, sx: s, ...g } = n, x = cn(), [m, d] = _(null), [p, f] = _(() => r.getSelectedRanges().getCoords()), [y, b] = _(!1), { reference: h } =
|
|
1749
|
+
const { disabled: t, names: e, workbook: r, restoreFocus: l, readonly: c = !1, disabled: u = !1, commandPopupButtonProps: i, sx: s, ...g } = n, x = cn(), [m, d] = _(null), [p, f] = _(() => r.getSelectedRanges().getCoords()), [y, b] = _(!1), { reference: h } = io({ parentFloat: i?.parentFloat }), [w, v] = _(() => c || !r.getProtection().isStructureAllowed()), S = () => m?.text ?? "", [C, D] = _(S), E = Y(() => {
|
|
1750
1750
|
if (h?.closeAll(), !C) {
|
|
1751
1751
|
const V = S();
|
|
1752
1752
|
return D(S()), V;
|
|
@@ -1775,7 +1775,7 @@ const ni = q(X((n, a) => {
|
|
|
1775
1775
|
let V = e.getByName(C);
|
|
1776
1776
|
w || V || (V = e.addReference(C, ee)), V && d({ text: V.getName() });
|
|
1777
1777
|
} catch (V) {
|
|
1778
|
-
D(S()), x.showMessage?.(V.message, { type:
|
|
1778
|
+
D(S()), x.showMessage?.(V.message, { type: vt.Error });
|
|
1779
1779
|
}
|
|
1780
1780
|
return null;
|
|
1781
1781
|
}, [C, e, h, w, x]), P = Y(() => {
|
|
@@ -1808,7 +1808,7 @@ const ni = q(X((n, a) => {
|
|
|
1808
1808
|
}, onViewChange(j) {
|
|
1809
1809
|
N(j?.getSelectedSheet());
|
|
1810
1810
|
} });
|
|
1811
|
-
const [I, B] = _(null), L = Y(
|
|
1811
|
+
const [I, B] = _(null), L = Y(ft.debounce(P, I ? 320 : 0), []);
|
|
1812
1812
|
We(T.getSelection(), { onChange: () => {
|
|
1813
1813
|
f((j) => {
|
|
1814
1814
|
const K = r.getSelectedRanges().getCoords();
|
|
@@ -1824,9 +1824,9 @@ const ni = q(X((n, a) => {
|
|
|
1824
1824
|
}
|
|
1825
1825
|
d({ text: r.getSelectedSheet().getSelectedRange().toString() }), L();
|
|
1826
1826
|
}, [p, r, I]);
|
|
1827
|
-
const M = fe(null), z =
|
|
1827
|
+
const M = fe(null), z = U((j) => {
|
|
1828
1828
|
const { onMouseDown: K, onMouseUp: ee, ...V } = j;
|
|
1829
|
-
return o(
|
|
1829
|
+
return o(ct, { ...V, sx: { ...V?.sx, display: "flex", flex: "1 1 100%" }, disableRipple: !0, children: o(Kn, { inputMode: "text", inputProps: { tabIndex: 0, name: "input-named-range", maxLength: 255, className: "input", autoFocus: !1, spellCheck: !1, autoComplete: "off", ref: M }, sx: { "&::before": { borderBottom: "1px solid transparent" }, "&:hover:not(.Mui-disabled):not(.Mui-focused):not(.Mui-error):before": { borderBottom: (A) => `1px solid ${A.palette.text.icon ?? A.palette.action.active}` }, "&:hover:not(.Mui-disabled):not(.Mui-error):before": { borderBottom: (A) => `1px solid ${A.palette.primary.main}` }, "::after": { borderBottom: (A) => `1px solid ${A.palette.primary.main}` }, paddingTop: "0px", paddingBottom: "0px", height: "1rem", fontSize: 11 * Wt.getDeviceScale(), fontStyle: m?.fontStyle, paddingLeft: (A) => A.spacing(0.75), paddingRight: (A) => A.spacing(0.75), boxShadow: "none", flex: "1", color: (A) => A.palette.text.secondary, input: { padding: "0", height: "1rem", textAlign: "left", "&:hover:not(.Mui-disabled):not(.Mui-error)": { color: (A) => A.palette.text.primary }, "&:focus:not(.Mui-disabled):not(.Mui-error)": { color: (A) => A.palette.text.primary } } }, value: C, onFocus: (A) => {
|
|
1830
1830
|
A.target?.select();
|
|
1831
1831
|
}, onKeyDown: (A) => {
|
|
1832
1832
|
if (A.which === me.Enter || A.which === me.Tab) {
|
|
@@ -1847,9 +1847,9 @@ const ni = q(X((n, a) => {
|
|
|
1847
1847
|
const K = e.lookupByRanges(j)?.[0];
|
|
1848
1848
|
K && await K?.select(), await r.getRanges(j)?.select();
|
|
1849
1849
|
} catch (K) {
|
|
1850
|
-
x.showMessage?.(K.message, { type:
|
|
1850
|
+
x.showMessage?.(K.message, { type: vt.Error });
|
|
1851
1851
|
}
|
|
1852
|
-
}, [e, x, r]), J =
|
|
1852
|
+
}, [e, x, r]), J = U((j) => {
|
|
1853
1853
|
setTimeout(() => {
|
|
1854
1854
|
b(!0);
|
|
1855
1855
|
}, 0);
|
|
@@ -1861,14 +1861,14 @@ const ni = q(X((n, a) => {
|
|
|
1861
1861
|
const Ne = ee[Se], _e = Ne.getRanges();
|
|
1862
1862
|
if (!_e || Ne.isHidden()) continue;
|
|
1863
1863
|
const Ve = Ne.getType();
|
|
1864
|
-
Ve !== ee[Se - 1]?.getType() && (Se > 0 && Z.push(o(Q, { orientation: "horizontal" }, `type-divider-${Z.length}`)), Z.push(o(
|
|
1864
|
+
Ve !== ee[Se - 1]?.getType() && (Se > 0 && Z.push(o(Q, { orientation: "horizontal" }, `type-divider-${Z.length}`)), Z.push(o(ao, { variant: "subtitle2", sx: { paddingLeft: "16px" }, children: Ne.getType() === "reference" ? "Ranges" : "Tables" }, `type-header-${Z.length}`))), Ve === "reference" ? Z.push(ve(qe, { ...K, key: "named-" + Z.length, popupCommandKeys: V, popupScope: "namedItem", scope: "namedItem", commandState: Ne, commands: i?.commands, label: Ne.getName(), quickCommand: "selectNamed", disabled: !Ne.getRanges() || u, icon: "NamedRange" })) : Ve === "table" && Z.push(ve(qe, { ...K, key: "namedItem-" + Z.length, popupCommandKeys: A, popupScope: "namedItem", scope: "namedItem", commands: i?.commands, commandState: Ne, label: Ne.getName(), quickCommand: "selectNamed", disabled: !_e || u, icon: "InsertTable" }));
|
|
1865
1865
|
}
|
|
1866
1866
|
const Oe = H(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, ...g, children: [w ? null : o(O, { ...K, scope: "namedItem", command: i?.commands.getCommand("addNamedReference") }), Z && Z.length > 0 ? H(se, { children: [w ? null : o(Q, { orientation: "horizontal" }), o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: Z })] }) : null] });
|
|
1867
1867
|
return ye({ ...j, children: Oe });
|
|
1868
|
-
}, [r, R, e, m, w]), pe =
|
|
1868
|
+
}, [r, R, e, m, w]), pe = Et(a, () => ({ focus(j) {
|
|
1869
1869
|
M.current?.focus(j);
|
|
1870
1870
|
} }), []);
|
|
1871
|
-
return o(F, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...s }, ref:
|
|
1871
|
+
return o(F, { className: "outer", sx: { minWidth: 120, flex: "1 1 100%", display: "flex", alignItems: "center", justifyContent: "start", ...s }, ref: Vt([pe, a]), ...g, children: o(Tt, { className: "outer-button", sx: { display: "flex", flex: "1 1 100%", "& .tooltip-wrapper": { display: "flex", flex: "1 1 100%", width: "100%" }, ...s }, buttonProps: { sx: { backgroundColor: (j) => j.palette.background.paper, backgroundImage: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})` } }, tabIndex: -1, outlined: { color: (j) => t ? j.palette.action.disabled : xe(j.palette.divider, 0.2) }, parentFloat: h, createPopupPanel: J, onPopupOpen: () => b(!0), onPopupClose: () => b(!1), createTooltip: ({ children: j }, K) => o(rt, { title: K || y ? "" : "Name Box", disabled: K, leaveDelay: 0, sx: { opacity: K || y ? 0 : 1 }, children: j }), createQuickButton: z }) });
|
|
1872
1872
|
}));
|
|
1873
1873
|
ni.displayName = "NamedCollectionEditor";
|
|
1874
1874
|
const Dc = (n, a) => o(ni, { ref: a, ...n }), ri = q(X((n, a) => {
|
|
@@ -1908,24 +1908,24 @@ const Dc = (n, a) => o(ni, { ref: a, ...n }), ri = q(X((n, a) => {
|
|
|
1908
1908
|
}, onSubmitEdit: () => {
|
|
1909
1909
|
r?.submitEdit(), r?.focus();
|
|
1910
1910
|
}, linesVisible: P }) });
|
|
1911
|
-
}, [m, B, p, P, r]), M = fe(null), z = W(() => c ? i({ names: e.getNames(), workbook: e, ...u }, M) : null, [i, u, c, m, e, b]), ae = W(() => H(
|
|
1911
|
+
}, [m, B, p, P, r]), M = fe(null), z = W(() => c ? i({ names: e.getNames(), workbook: e, ...u }, M) : null, [i, u, c, m, e, b]), ae = W(() => H(ro, { elevation: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 0, backgroundImage: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})`, border: (A) => `solid ${b ? A.palette.action.disabled : xe(A.palette.divider, 0.2)} 1px` }, children: [o(xt, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "warning", "aria-label": "cancel-formula-edit", icon: o(be, { iconKey: "CloseError" }), tooltipProps: { label: "Cancel", simple: !0 }, disabled: b || B === null, onMouseDown: (A) => {
|
|
1912
1912
|
A.button === 0 && A.preventDefault();
|
|
1913
1913
|
}, onClick: () => {
|
|
1914
1914
|
r.cancelEdit();
|
|
1915
|
-
} }), o(
|
|
1915
|
+
} }), o(xt, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, color: "primary", "aria-label": "commit-formula-edit", icon: o(be, { iconKey: "CheckSuccess" }), tooltipProps: { label: "Enter", simple: !0 }, disabled: b || B === null, onMouseDown: (A) => {
|
|
1916
1916
|
A.button === 0 && A.preventDefault();
|
|
1917
1917
|
}, onClick: () => {
|
|
1918
1918
|
r.submitEdit();
|
|
1919
|
-
} }), o(
|
|
1919
|
+
} }), o(xt, { sx: { border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, disabled: !0, "aria-label": "commit-formula-function", icon: o(be, { iconKey: "Function", style: { transform: "scale(0.85)" } }), tooltipProps: { label: "Insert Function", simple: !0 }, onMouseDown: (A) => {
|
|
1920
1920
|
A.button === 0 && A.preventDefault();
|
|
1921
|
-
} })] }), [b, B]), J = Xe(), [pe, j] = _(!1), K = W(() => H(F, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (A) => A.spacing(0.5), alignItems: "start" }, children: [ae, H(
|
|
1921
|
+
} })] }), [b, B]), J = Xe(), [pe, j] = _(!1), K = W(() => H(F, { className: "formula-bar", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", gap: (A) => A.spacing(0.5), alignItems: "start" }, children: [ae, H(ro, { elevation: 0, sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", fontFamily: (A) => A.typography.fontFamily, fontSize: 11 * Wt.getDeviceScale(), alignItems: "stretch", paddingTop: "2px", paddingBottom: "2px", boxShadow: "none", borderRadius: (A) => `${A.shape.borderRadius}px`, backgroundImage: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})`, border: (A) => `solid ${b ? A.palette.action.disabled : xe(A.palette.divider, 0.2)} 1px`, "& textarea": { color: (A) => b ? `${A.palette.text.disabled} !important` : A.palette.text.primary }, "& .react-resizable-handle": { width: "100%", height: "8px", backgroundColor: "transparent", boxSizing: "content-box", zIndex: 1e3 }, "& .react-resizable-handle-s": { position: "absolute", bottom: "-10px", cursor: "s-resize" } }, onFocus: () => j(!0), onBlur: () => j(!1), onMouseDown: (A) => {
|
|
1922
1922
|
A.target?.classList.contains("react-resizable-handle") && A.preventDefault();
|
|
1923
|
-
}, children: [o(F, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "0px", paddingLeft: (A) => A.spacing(1), paddingRight: (A) => A.spacing(1) }, children: o(Ec.ResizableBox, { height: S, draggableOpts: { grid: [v, v] }, minConstraints: [v, v], maxConstraints: [15 * v, 15 * v], onResize: T, onResizeStop: k, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: L }) }), o(
|
|
1923
|
+
}, children: [o(F, { className: "formula-editor", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", alignItems: "center", marginTop: "0px", paddingLeft: (A) => A.spacing(1), paddingRight: (A) => A.spacing(1) }, children: o(Ec.ResizableBox, { height: S, draggableOpts: { grid: [v, v] }, minConstraints: [v, v], maxConstraints: [15 * v, 15 * v], onResize: T, onResizeStop: k, resizeHandles: ["s"], axis: "y", style: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: L }) }), o(xt, { sx: { padding: "0px", margin: "0px 0px", border: "none !important", "&.Mui-focusVisible": { border: "none" }, "&:hover:not([disabled])": { border: "none" } }, dense: !0, outlined: !1, "aria-label": "toggle-expand-formula-edit", icon: o(be, { iconKey: P > 1 ? "ExpandLess" : "ExpandMore" }), tooltipProps: { label: (P > 1 ? "Collapse" : "Expand") + " Formula Bar", simple: !0 }, onMouseDown: (A) => {
|
|
1924
1924
|
A.button === 0 && A.preventDefault();
|
|
1925
1925
|
}, onClick: () => {
|
|
1926
1926
|
const A = P > 1 ? 1 : D;
|
|
1927
1927
|
C(A * v + 1), R(A);
|
|
1928
|
-
} }), o(F, { sx: { position: "absolute", width: "100%", height: "2px", bottom: "0", willChange: "opacity", transition: "opacity 60ms ease-in", opacity: pe ? 1 : 0, borderBottomWidth: "2px", borderBottomStyle: "solid", borderBottomColor: (A) => A.palette.primary.main, borderRadius: (A) => `${A.shape.borderRadius}px` } })] })] }), [ae, L, pe, P, v]), ee = W(() => z || K ? !z && K ? K : z && !K ? z : o(se, { children: o(Qn, { fixedPane: "before", minBefore: "165px", minAfter: "200px", paneBeforeProps: { style: { alignItems: "flex-start" } }, paneAfterProps: { style: { overflow: "visible" } }, resizerProps: { style: { backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${J.palette.text.icon ?? J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center
|
|
1928
|
+
} }), o(F, { sx: { position: "absolute", width: "100%", height: "2px", bottom: "0", willChange: "opacity", transition: "opacity 60ms ease-in", opacity: pe ? 1 : 0, borderBottomWidth: "2px", borderBottomStyle: "solid", borderBottomColor: (A) => A.palette.primary.main, borderRadius: (A) => `${A.shape.borderRadius}px` } })] })] }), [ae, L, pe, P, v]), ee = W(() => z || K ? !z && K ? K : z && !K ? z : o(se, { children: o(Qn, { fixedPane: "before", minBefore: "165px", minAfter: "200px", paneBeforeProps: { style: { alignItems: "flex-start" } }, paneAfterProps: { style: { overflow: "visible" } }, resizerProps: { style: { backgroundImage: `url("data:image/svg+xml,%3Csvg width='6' height='13' viewBox='0 0 6 13' version='1.1' fill='${J.palette.text.icon ?? J.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='m 4.5961932,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.88365,0 -1.60005,-0.71626 -1.60005,-1.59991 0,-0.88365 0.7164,-1.6000508 1.60005,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60004 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 -0.88365,0 -1.60005,-0.7164 -1.60005,-1.60005 0,-0.88365 0.7164,-1.59991 1.60005,-1.59991 0.88364,0 1.59991,0.71626 1.59991,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center calc(((var(--icon-size, 24) - 13px + 5px) / 2))", minWidth: "18px", marginRight: "1px" } }, elementBefore: z, elementAfter: K }) }) : null, [z, K]), V = Et(a, () => ({ isFormulaBarElement: () => !0, getNamedCollectionEditorElement: () => M.current }), []);
|
|
1929
1929
|
return o(F, { sx: { display: "flex", flexDirection: "row", gap: (A) => A.spacing(0.5), ...t }, ref: V, ...x, children: ee });
|
|
1930
1930
|
}));
|
|
1931
1931
|
ri.displayName = "FormulaBar";
|
|
@@ -1938,7 +1938,7 @@ const ai = q(X((n, a) => {
|
|
|
1938
1938
|
}));
|
|
1939
1939
|
ai.displayName = "FilterColumnMenu";
|
|
1940
1940
|
const Pc = q(X((n, a) => {
|
|
1941
|
-
const { children: t, className: e, disabled: r, style: l, filter: c, ...u } = n, i =
|
|
1941
|
+
const { children: t, className: e, disabled: r, style: l, filter: c, ...u } = n, i = Et(a, () => ({ isFilters: () => !0 }), []);
|
|
1942
1942
|
return o("div", { ref: i, className: Ce("filters", e), style: { position: "relative", display: "flex", flexDirection: "column", alignItems: "center", gap: "8px", ...l }, ...u, children: H("div", { style: { flex: "1 1 100%", display: "flex", minHeight: "100px", minWidth: "220px", alignItems: "center", border: "grey solid 1px", padding: "4px 4px", overflow: "hidden", flexDirection: "column", justifyContent: "space-evenly", marginTop: "4px", marginBottom: "4px", marginLeft: "16px", marginRight: "16px" }, children: [o("div", { children: c.getName() }), o("div", { children: "Filter Widget" })] }) });
|
|
1943
1943
|
}));
|
|
1944
1944
|
Pc.displayName = "Filters";
|
|
@@ -1971,7 +1971,7 @@ const li = q(X((n, a) => {
|
|
|
1971
1971
|
const p = W(() => ({}), []), f = W(() => ({ commandHook: { beforeExecute: (h, w) => u.closeAll(), onExecute() {
|
|
1972
1972
|
}, onError() {
|
|
1973
1973
|
console.log("onError");
|
|
1974
|
-
} }, scope: l, commandState: e, disabled: c || e === void 0, parentFloat: u }), [c, u]), y = W(() => ({ ...p, ...f }), [p, f]), b = H(se, { children: [o(O, { command: r.getCommand("addSheet"), commandState: e, ...y, variant: ie.Menuitem }), o(O, { command: r.getCommand("deleteSheet"), ...y, variant: ie.Menuitem }), H(
|
|
1974
|
+
} }, scope: l, commandState: e, disabled: c || e === void 0, parentFloat: u }), [c, u]), y = W(() => ({ ...p, ...f }), [p, f]), b = H(se, { children: [o(O, { command: r.getCommand("addSheet"), commandState: e, ...y, variant: ie.Menuitem }), o(O, { command: r.getCommand("deleteSheet"), ...y, variant: ie.Menuitem }), H(dt, { onMouseDown: (h) => {
|
|
1975
1975
|
h.button === 0 && h.preventDefault();
|
|
1976
1976
|
}, onMouseUp: () => {
|
|
1977
1977
|
Promise.resolve(u.closeAll()).then(() => {
|
|
@@ -1989,17 +1989,17 @@ const si = q(X((n, a) => {
|
|
|
1989
1989
|
x(d?.getProtection());
|
|
1990
1990
|
} });
|
|
1991
1991
|
const m = W(() => {
|
|
1992
|
-
const d = [], p = t.getSheets().getItems({ visibility:
|
|
1992
|
+
const d = [], p = t.getSheets().getItems({ visibility: Bt.Visibility.Hidden }), f = t.getSelectedSheet();
|
|
1993
1993
|
for (let y = 0; y < p.length; y++) {
|
|
1994
1994
|
const b = p[y], h = b.getVisibility();
|
|
1995
|
-
if (h ===
|
|
1995
|
+
if (h === Bt.Visibility.VeryHidden) continue;
|
|
1996
1996
|
const w = f === b, v = b.getProtection().isLocked(), S = b.getTabColor(), C = e?.body.fill ?? "transparent";
|
|
1997
1997
|
let D = null, E = null, P = C;
|
|
1998
|
-
S && (P = S.toCSS(), w || (E = S.toBlackOrWhite().toCSS()), D = o(F, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: w ? P : "transparent", borderRadius: "4px", border: `solid 1px ${e.header.edgeStrokeFill}` }, children: o(F, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: w || h ===
|
|
1998
|
+
S && (P = S.toCSS(), w || (E = S.toBlackOrWhite().toCSS()), D = o(F, { sx: { position: "absolute", display: "flex", flexDirection: "column", top: "4px", left: "40px", right: "8px", bottom: "4px", background: w ? P : "transparent", borderRadius: "4px", border: `solid 1px ${e.header.edgeStrokeFill}` }, children: o(F, { sx: { flex: "1 1 100%", boxSizing: "content-box", opacity: w || h === Bt.Visibility.Hidden ? "50%" : "100%", border: (k) => w ? `${C} solid 1.5px` : `${k.palette.divider} solid 1px`, background: w && S ? `linear-gradient(0deg, ${P} 0%, ${C})` : P, borderRadius: "4px" } }) }));
|
|
1999
1999
|
let R = null;
|
|
2000
|
-
v && (R = o(be, { iconKey: "Lock" })), h !==
|
|
2000
|
+
v && (R = o(be, { iconKey: "Lock" })), h !== Bt.Visibility.Visible && (R = o(be, { iconKey: "VisibilityOff", style: { opacity: g.isStructureAllowed() ? 1 : 0.7 }, color: "secondary" })), R && (R = o(F, { sx: { display: "flex", flex: "1 1 100%", alignItems: "center", ml: "16px", "& *": { lineHeight: "1em", fontSize: "1.3em" } }, children: R })), d.push(o(dt, { disabled: !g.isStructureAllowed() && h === Bt.Visibility.Hidden, sx: { color: (k) => {
|
|
2001
2001
|
let T = w ? k.palette.primary.main : k.palette.text.secondary;
|
|
2002
|
-
return E && (T = E), h ===
|
|
2002
|
+
return E && (T = E), h === Bt.Visibility.Hidden && (T = Je(T, k.palette.action.disabledOpacity)), T;
|
|
2003
2003
|
}, borderLeft: (k) => `${w ? k.palette.primary.main : "transparent"} solid 2px`, paddingLeft: "4px", paddingTop: "4px", paddingBottom: "4px", fontWeight: w ? "700" : "400", "&:hover": { fontWeight: "700" } }, icon: w ? o(nn, {}) : void 0, onMouseDown: (k) => k.preventDefault(), onMouseUp: () => {
|
|
2004
2004
|
Promise.resolve(r.closeAll()).then(() => {
|
|
2005
2005
|
try {
|
|
@@ -2015,21 +2015,21 @@ const si = q(X((n, a) => {
|
|
|
2015
2015
|
return o(F, { ref: a, className: Ce("menu", c), ...u, children: m });
|
|
2016
2016
|
}));
|
|
2017
2017
|
si.displayName = "SheetsAllMenu";
|
|
2018
|
-
let Vo = !1, ci = !1,
|
|
2018
|
+
let Vo = !1, ci = !1, St = null;
|
|
2019
2019
|
const Xr = async (n) => {
|
|
2020
2020
|
const a = await Eo.getDetails();
|
|
2021
2021
|
if (ci || a.isEval()) {
|
|
2022
2022
|
try {
|
|
2023
2023
|
const t = top ?? window;
|
|
2024
|
-
t.SheetXL || (t.SheetXL = Object.freeze({ getSelectedWorkbook: () =>
|
|
2024
|
+
t.SheetXL || (t.SheetXL = Object.freeze({ getSelectedWorkbook: () => St?.getWorkbook(), getSelectedSheet: () => St?.getWorkbook().getSelectedSheet(), getSelectedRange: () => St?.getWorkbook().getSelectedRange(), getSelectedRanges: () => St?.getWorkbook().getSelectedRanges(), getRange: (e) => St?.getWorkbook().getRange(e), getSelectedWorkbookElement: () => St, getLicenseManager: () => Eo, moreExamples: () => {
|
|
2025
2025
|
console.table({ "SheetXL.getRange('Sheet1!e5:f6').setValues([[110, 220], [210, 220]])": { Summary: "Set an array of values." }, "SheetXL.getRange('a1:e5').setValue(100)": { Summary: "Set a single repeating value to a range." }, "SheetXL.getRange('Sheet1!e5:f6').getValues()": { Summary: "Get the values as a 2d array (see forEach)." }, "SheetXL.getSelectedRange().setValue(new Date())": { Summary: "Set current date/time using Javascript Date." }, "SheetXL.getSelectedRange().setValue('10/23/95')": { Summary: "Set current date/time using string." }, "SheetXL.getSelectedSheet().getUsedRange().getValues()": { Summary: "Get all of the values in a sheet." }, "SheetXL.getSelectedRange().getStyle().update({ fill: 'accent4' })": { Summary: "Set fill to theme color 4." }, "SheetXL.getRange('E:L').getStyle().update({ fill: 'accent1 lumMod 90 lumOff 40' })": { Summary: "Set some columns to a modified theme color." }, "SheetXL.getRange('e5:f10').getStyle().update({ style: { border: 'double blue' }})": { Summary: "Set border." }, "SheetXL.getCell().getStyle().fill.toCSS()": { Summary: "Get the fill style as css for the selected cell." }, "SheetXL.getRange('a1:a3').autoFill('a1:a7')": { Summary: "Autofill down." }, "SheetXL.getRange('e7:i9').merge({ orientation: 'rows' })": { Summary: "Merge cells horizontally." }, "SheetXL.getSelectedRange().sort({ ascending: false, hasHeader: false })": { Summary: "Sort selected cells ascending with a header." }, "SheetXL.getSelectedRange().clear('all')": { Summary: "Clear the current range a different way." }, "SheetXL.getSelectedSheet().getTables().add('b2:e9')": { Summary: "Create a 4x8 table at b2 for current sheet." }, "SheetXL.getRange('a1:c3').copyFrom('e1:g3')": { Summary: "Copy cells." }, "SheetXL.getRange('c:t').getColumnHeaders().setSize(30)": { Summary: "Set the size of columns to 30 pixels." }, "SheetXL.getRange('2:3').delete()": { Summary: "Remove rows 2 and 3 and shift up." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg')": { Summary: "Add an image." }, "SheetXL.getSelectedSheet().getMovables().addImage('https://www.sheetxl.com/logo-text.svg', { bounds: { height: 100 } })": { Summary: "Add an image of height 100." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue(1.50).getStyle().update({ numberFormat: '0%' }).autoFit(); }, 'Enter 150%')": { Summary: "Set value to 100 and numberformat to 0% as a single." }, "SheetXL.getSelectedRange().doBatch(() => { SheetXL.getSelectedRange().setValue('Remind Me Later').getStyle().update({ namedStyle: 'Note'}).autoFit(); }, 'Set Reminder')": { Summary: "Set a value and style to Note style and autofit text." }, "SheetXL.getSelectedWorkbook().getNames().addReference('Small_Range', 'A2:E5');": { Summary: "Add a named range." }, "SheetXL.getSelectedWorkbook().getRange('a1:e5').addListener((e) => { console.log('got an update for:', e.getSource().toString()) })": { Summary: "Listen for updates at a range." } });
|
|
2026
2026
|
} }));
|
|
2027
2027
|
} catch (t) {
|
|
2028
2028
|
t instanceof DOMException || console.error(t), Vo = !0;
|
|
2029
2029
|
}
|
|
2030
|
-
if (
|
|
2030
|
+
if (St !== n && (St = n, !Vo)) try {
|
|
2031
2031
|
Vo = !0, (top ?? window).SheetXL && (await Eo._validate(!0), Eo.wasPrinted() && (() => {
|
|
2032
|
-
|
|
2032
|
+
oo.consoleWithNoSource(`%cTip: You can access the API directly in the console.
|
|
2033
2033
|
Try
|
|
2034
2034
|
%c>%c SheetXL.getRange('b2:c3').setValues([[42, 'Hello Word'], [new Date(), true]]) %c
|
|
2035
2035
|
>%c SheetXL.moreExamples()`, "color:#ffa726;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;", "font-family:monospace;color:#1976d2;font-size:12px;", "font-family:monospace;"), Vo = !0;
|
|
@@ -2077,15 +2077,15 @@ function Yr(n, a) {
|
|
|
2077
2077
|
const Zr = !1, ui = re.createContext(null);
|
|
2078
2078
|
var mi = function(n) {
|
|
2079
2079
|
return n.scrollTop;
|
|
2080
|
-
}, Po = "unmounted",
|
|
2080
|
+
}, Po = "unmounted", Ot = "exited", At = "entering", Zt = "entered", Hn = "exiting", gt = (function(n) {
|
|
2081
2081
|
function a(e, r) {
|
|
2082
2082
|
var l;
|
|
2083
2083
|
l = n.call(this, e, r) || this;
|
|
2084
2084
|
var c, u = r && !r.isMounting ? e.enter : e.appear;
|
|
2085
|
-
return l.appearStatus = null, e.in ? u ? (c =
|
|
2085
|
+
return l.appearStatus = null, e.in ? u ? (c = Ot, l.appearStatus = At) : c = Zt : c = e.unmountOnExit || e.mountOnEnter ? Po : Ot, l.state = { status: c }, l.nextCallback = null, l;
|
|
2086
2086
|
}
|
|
2087
2087
|
pi(a, n), a.getDerivedStateFromProps = function(e, r) {
|
|
2088
|
-
return e.in && r.status === Po ? { status:
|
|
2088
|
+
return e.in && r.status === Po ? { status: Ot } : null;
|
|
2089
2089
|
};
|
|
2090
2090
|
var t = a.prototype;
|
|
2091
2091
|
return t.componentDidMount = function() {
|
|
@@ -2094,7 +2094,7 @@ var mi = function(n) {
|
|
|
2094
2094
|
var r = null;
|
|
2095
2095
|
if (e !== this.props) {
|
|
2096
2096
|
var l = this.state.status;
|
|
2097
|
-
this.props.in ? l !==
|
|
2097
|
+
this.props.in ? l !== At && l !== Zt && (r = At) : l !== At && l !== Zt || (r = Hn);
|
|
2098
2098
|
}
|
|
2099
2099
|
this.updateStatus(!1, r);
|
|
2100
2100
|
}, t.componentWillUnmount = function() {
|
|
@@ -2103,34 +2103,34 @@ var mi = function(n) {
|
|
|
2103
2103
|
var e, r, l, c = this.props.timeout;
|
|
2104
2104
|
return e = r = l = c, c != null && typeof c != "number" && (e = c.exit, r = c.enter, l = c.appear !== void 0 ? c.appear : r), { exit: e, enter: r, appear: l };
|
|
2105
2105
|
}, t.updateStatus = function(e, r) {
|
|
2106
|
-
if (e === void 0 && (e = !1), r !== null) if (this.cancelNextCallback(), r ===
|
|
2106
|
+
if (e === void 0 && (e = !1), r !== null) if (this.cancelNextCallback(), r === At) {
|
|
2107
2107
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
2108
|
-
var l = this.props.nodeRef ? this.props.nodeRef.current :
|
|
2108
|
+
var l = this.props.nodeRef ? this.props.nodeRef.current : Jt.findDOMNode(this);
|
|
2109
2109
|
l && mi(l);
|
|
2110
2110
|
}
|
|
2111
2111
|
this.performEnter(e);
|
|
2112
2112
|
} else this.performExit();
|
|
2113
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
2113
|
+
else this.props.unmountOnExit && this.state.status === Ot && this.setState({ status: Po });
|
|
2114
2114
|
}, t.performEnter = function(e) {
|
|
2115
|
-
var r = this, l = this.props.enter, c = this.context ? this.context.isMounting : e, u = this.props.nodeRef ? [c] : [
|
|
2116
|
-
!e && !l || Zr ? this.safeSetState({ status:
|
|
2115
|
+
var r = this, l = this.props.enter, c = this.context ? this.context.isMounting : e, u = this.props.nodeRef ? [c] : [Jt.findDOMNode(this), c], i = u[0], s = u[1], g = this.getTimeouts(), x = c ? g.appear : g.enter;
|
|
2116
|
+
!e && !l || Zr ? this.safeSetState({ status: Zt }, function() {
|
|
2117
2117
|
r.props.onEntered(i);
|
|
2118
|
-
}) : (this.props.onEnter(i, s), this.safeSetState({ status:
|
|
2118
|
+
}) : (this.props.onEnter(i, s), this.safeSetState({ status: At }, function() {
|
|
2119
2119
|
r.props.onEntering(i, s), r.onTransitionEnd(x, function() {
|
|
2120
|
-
r.safeSetState({ status:
|
|
2120
|
+
r.safeSetState({ status: Zt }, function() {
|
|
2121
2121
|
r.props.onEntered(i, s);
|
|
2122
2122
|
});
|
|
2123
2123
|
});
|
|
2124
2124
|
}));
|
|
2125
2125
|
}, t.performExit = function() {
|
|
2126
|
-
var e = this, r = this.props.exit, l = this.getTimeouts(), c = this.props.nodeRef ? void 0 :
|
|
2126
|
+
var e = this, r = this.props.exit, l = this.getTimeouts(), c = this.props.nodeRef ? void 0 : Jt.findDOMNode(this);
|
|
2127
2127
|
r && !Zr ? (this.props.onExit(c), this.safeSetState({ status: Hn }, function() {
|
|
2128
2128
|
e.props.onExiting(c), e.onTransitionEnd(l.exit, function() {
|
|
2129
|
-
e.safeSetState({ status:
|
|
2129
|
+
e.safeSetState({ status: Ot }, function() {
|
|
2130
2130
|
e.props.onExited(c);
|
|
2131
2131
|
});
|
|
2132
2132
|
});
|
|
2133
|
-
})) : this.safeSetState({ status:
|
|
2133
|
+
})) : this.safeSetState({ status: Ot }, function() {
|
|
2134
2134
|
e.props.onExited(c);
|
|
2135
2135
|
});
|
|
2136
2136
|
}, t.cancelNextCallback = function() {
|
|
@@ -2146,7 +2146,7 @@ var mi = function(n) {
|
|
|
2146
2146
|
}, this.nextCallback;
|
|
2147
2147
|
}, t.onTransitionEnd = function(e, r) {
|
|
2148
2148
|
this.setNextCallback(r);
|
|
2149
|
-
var l = this.props.nodeRef ? this.props.nodeRef.current :
|
|
2149
|
+
var l = this.props.nodeRef ? this.props.nodeRef.current : Jt.findDOMNode(this), c = e == null && !this.props.addEndListener;
|
|
2150
2150
|
if (l && !c) {
|
|
2151
2151
|
if (this.props.addEndListener) {
|
|
2152
2152
|
var u = this.props.nodeRef ? [this.nextCallback] : [l, this.nextCallback], i = u[0], s = u[1];
|
|
@@ -2163,9 +2163,9 @@ var mi = function(n) {
|
|
|
2163
2163
|
return re.createElement(ui.Provider, { value: null }, typeof l == "function" ? l(e, c) : re.cloneElement(re.Children.only(l), c));
|
|
2164
2164
|
}, a;
|
|
2165
2165
|
})(re.Component);
|
|
2166
|
-
function
|
|
2166
|
+
function qt() {
|
|
2167
2167
|
}
|
|
2168
|
-
|
|
2168
|
+
gt.contextType = ui, gt.propTypes = {}, gt.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: qt, onEntering: qt, onEntered: qt, onExit: qt, onExiting: qt, onExited: qt }, gt.UNMOUNTED = Po, gt.EXITED = Ot, gt.ENTERING = At, gt.ENTERED = Zt, gt.EXITING = Hn;
|
|
2169
2169
|
var kn = function(n, a) {
|
|
2170
2170
|
return n && a && a.split(" ").forEach(function(t) {
|
|
2171
2171
|
return r = t, void ((e = n).classList ? e.classList.remove(r) : typeof e.className == "string" ? e.className = Yr(e.className, r) : e.setAttribute("class", Yr(e.className && e.className.baseVal || "", r)));
|
|
@@ -2218,23 +2218,23 @@ var kn = function(n, a) {
|
|
|
2218
2218
|
var e = this.props;
|
|
2219
2219
|
e.classNames;
|
|
2220
2220
|
var r = di(e, ["classNames"]);
|
|
2221
|
-
return re.createElement(
|
|
2221
|
+
return re.createElement(gt, Ln({}, r, { onEnter: this.onEnter, onEntered: this.onEntered, onEntering: this.onEntering, onExit: this.onExit, onExiting: this.onExiting, onExited: this.onExited }));
|
|
2222
2222
|
}, a;
|
|
2223
2223
|
})(re.Component);
|
|
2224
2224
|
Wn.defaultProps = { classNames: "" }, Wn.propTypes = {};
|
|
2225
2225
|
const Cn = 0.12, Qr = (n, a) => {
|
|
2226
2226
|
const t = {}, e = (i) => {
|
|
2227
2227
|
const s = i.palette?.background.default ?? "rgba(255,255,255,1)";
|
|
2228
|
-
return { text: { fontFamily: i.typography?.fontFamily ?? "Calibri", fontSize: i.typography?.fontSize ?? 8.25, fontWeight: i.typography?.fontWeightRegular ?? "400", fill: i.palette.mode === "dark" ? i.palette?.text?.secondary : i.palette?.text?.primary }, fill: s, strokeFill:
|
|
2228
|
+
return { text: { fontFamily: i.typography?.fontFamily ?? "Calibri", fontSize: i.typography?.fontSize ?? 8.25, fontWeight: i.typography?.fontWeightRegular ?? "400", fill: i.palette.mode === "dark" ? i.palette?.text?.secondary : i.palette?.text?.primary }, fill: s, strokeFill: it(s, Cn, i.palette?.mode), darkMode: i.palette.mode === "dark" };
|
|
2229
2229
|
}, r = e(a);
|
|
2230
|
-
t.body = e(n), t.header = { ...t.body, strokeFill:
|
|
2231
|
-
const l =
|
|
2232
|
-
t.headerSelect = { ...t.header, strokeFill: n.palette.primary.main, fill: Je(l, 0.2), text: { ...t.header.text, fill: n.palette.primary.main }, dividerStrokeFill: Je(l, 0.7) }, t.headerSelectAll = { ...t.headerSelect, fill: Je(l, 0.9), text: { ...t.headerSelect.text, fill: n.palette.primary.contrastText }, edgeStrokeFill: t.headerSelect.strokeFill }, t.buttonSurface = { ...r, strokeFill:
|
|
2230
|
+
t.body = e(n), t.header = { ...t.body, strokeFill: it(t.body.fill, Cn, n.palette?.mode), fill: a && n.palette.mode === "dark" && a.palette.mode !== n.palette.mode ? t.body.fill : it(t.body.fill, 0.055, n.palette?.mode), edgeStrokeFill: n.palette.mode === "dark" ? t.body.strokeFill : it(t.body.fill, 0.328, n.palette?.mode) }, t.headerHover = (i) => ({ ...t.header, strokeFill: it(i?.fill ?? t.body.fill, 0.22, n.palette?.mode), fill: it(i?.fill ?? t.header.fill, 0.065, n.palette?.mode), text: { ...i?.text, fontWeight: n.typography?.fontWeightBold } });
|
|
2231
|
+
const l = it(n.palette.mode !== "dark" ? n.palette.primary.light : n.palette.primary.main, 0.055, n.palette?.mode);
|
|
2232
|
+
t.headerSelect = { ...t.header, strokeFill: n.palette.primary.main, fill: Je(l, 0.2), text: { ...t.header.text, fill: n.palette.primary.main }, dividerStrokeFill: Je(l, 0.7) }, t.headerSelectAll = { ...t.headerSelect, fill: Je(l, 0.9), text: { ...t.headerSelect.text, fill: n.palette.primary.contrastText }, edgeStrokeFill: t.headerSelect.strokeFill }, t.buttonSurface = { ...r, strokeFill: it(r.fill, Cn, a.palette?.mode), fill: a && a.palette.mode === "dark" && a.palette.mode !== n.palette.mode ? r.fill : it(r.fill, 0.055, a.palette?.mode), edgeStrokeFill: a.palette.mode === "dark" ? r.strokeFill : it(r.fill, 0.328, a.palette?.mode) }, t.headerSelection = { fill: n.palette?.primary?.main ? Je(n.palette?.primary?.main, 0.1) : void 0, strokeFill: n.palette?.primary?.main }, t.headerSelectionInactive = { ...t.headerSelection, fill: n.palette?.divider ? Je(n.palette?.divider, 0.05) : void 0, strokeFill: "transparent" };
|
|
2233
2233
|
const c = a ?? n, u = c.palette.mode === "dark";
|
|
2234
2234
|
return t.selection = { fill: c.palette?.primary?.main ? Je(c.palette?.primary?.main, 0.1) : void 0, strokeFill: c.palette?.primary?.main }, t.selectionInactive = { ...t.selection, fill: c.palette?.divider ? Je(c.palette?.divider, 0.05) : void 0, strokeFill: "transparent" }, t.selectionRemove = { ...t.selection, fill: Je(c.palette.warning.light, 0.05), strokeFill: c.palette.warning.dark }, a && (t.body = e(a)), t.colorShadow = Je(c.palette.action.active, 0.5), t.colorGrey = c.palette.action.active, t.filterDarkInvert = u ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", t;
|
|
2235
2235
|
}, Fo = q(X((n, a) => {
|
|
2236
|
-
const { children: t, sx: e, parentFloat: r, ...l } = n, c =
|
|
2237
|
-
|
|
2236
|
+
const { children: t, sx: e, parentFloat: r, ...l } = n, c = Et(a, () => ({}), []), [u, i] = Ht(), s = fe(null), g = fe(null), [x, m] = re.useReducer((S) => S + 1, 0), [d, p] = _(null), [f, y] = _(null), [b, h] = _(null), { reference: w } = io({ parentFloat: r, label: "overflow" });
|
|
2237
|
+
kt(() => {
|
|
2238
2238
|
g.current = { refs: [] };
|
|
2239
2239
|
const S = [], C = re.Children.toArray(t);
|
|
2240
2240
|
let D = 0;
|
|
@@ -2245,7 +2245,7 @@ const Cn = 0.12, Qr = (n, a) => {
|
|
|
2245
2245
|
k.current = R, g.current.refs[P] = k;
|
|
2246
2246
|
}, children: E }, P));
|
|
2247
2247
|
}), p(S);
|
|
2248
|
-
}, [t, i]),
|
|
2248
|
+
}, [t, i]), kt(() => {
|
|
2249
2249
|
if (!d) return;
|
|
2250
2250
|
const S = g.current.refs, C = S ? S.length : 0;
|
|
2251
2251
|
if (!c.current || C === 0) return y(null), void h(null);
|
|
@@ -2289,13 +2289,13 @@ const Cn = 0.12, Qr = (n, a) => {
|
|
|
2289
2289
|
const E = o(F, { className: "overflow-palette-popup-panel", sx: { display: "flex", flexDirection: "row", flexWrap: "wrap", rowGap: (P) => P.spacing(0.25), paddingTop: (P) => P.spacing(0.5), paddingBottom: (P) => P.spacing(0.5), paddingLeft: (P) => P.spacing(1), paddingRight: (P) => P.spacing(1), overflow: "hidden" }, children: C });
|
|
2290
2290
|
return ye({ ...S, children: E });
|
|
2291
2291
|
}, [b]);
|
|
2292
|
-
return H(F, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...e }, ref:
|
|
2292
|
+
return H(F, { className: "overflow-palette", sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", width: "100%", maxWidth: "100%", ...e }, ref: Vt([c, u, a]), ...l, children: [o(F, { sx: { flexDirection: "row", display: "flex", maxWidth: "100%", flex: "1 1 100%", alignItems: "center" }, children: f ?? d }), o(F, { className: "overflow-palette-popup-button", sx: { display: b !== null && b.length === 0 ? "none" : "flex", flex: "1 1 0" }, children: o(Tt, { createPopupPanel: v, ref: s, parentFloat: w, createTooltip: ({ children: S }, C) => o(rt, { label: "More", description: "More toolbar options…", disabled: C, children: S }), icon: o(be, { iconKey: "MoreHorizontal" }) }) })] });
|
|
2293
2293
|
})), hi = "https://unpkg.com/@sheetxl/scripting-templates/dist", Rc = (n) => {
|
|
2294
2294
|
if (n.metadata?.name) return n.metadata.name;
|
|
2295
2295
|
let a = (n.path.split("/").pop() || "").replace(/\.[^/.]+$/, "");
|
|
2296
2296
|
return n.metadata?.icon === "formula" ? a.toUpperCase() : (a = a.replace(/([a-z])([A-Z])/g, "$1 $2"), a.replace(/[-_]/g, " ").trim().split(/\s+/).map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" "));
|
|
2297
2297
|
}, gi = async (n) => {
|
|
2298
|
-
const a =
|
|
2298
|
+
const a = eo.relativePath(n, "./manifest.json"), t = await fetch(a);
|
|
2299
2299
|
if (!t.ok) throw new In(`Failed to retrieve directory at '${n}': ${t.statusText}`);
|
|
2300
2300
|
const e = await t.text();
|
|
2301
2301
|
if (e.trim().toLowerCase().startsWith("<!doctype html") || e.trim().toLowerCase().startsWith("<html")) throw new In(`Failed to retrieve directory at '${n}'`);
|
|
@@ -2307,7 +2307,7 @@ const Cn = 0.12, Qr = (n, a) => {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
const l = r.map(async (c) => {
|
|
2309
2309
|
try {
|
|
2310
|
-
const u =
|
|
2310
|
+
const u = eo.relativePath(n, c.path), i = await fetch(u);
|
|
2311
2311
|
if (!i.ok) throw new Error(`Failed to fetch file at '${c.path}': ${i.statusText}`);
|
|
2312
2312
|
const s = await i.text();
|
|
2313
2313
|
let g = c.metadata;
|
|
@@ -2322,7 +2322,7 @@ const Cn = 0.12, Qr = (n, a) => {
|
|
|
2322
2322
|
const { disabled: a, snippet: t, description: e, handleInsert: r, sx: l, ...c } = n;
|
|
2323
2323
|
let u;
|
|
2324
2324
|
const i = t.metadata?.icon;
|
|
2325
|
-
return u = o(be, i === "formula" ? { iconKey: "ScriptFormula", size: En, style: Tn } : i === "macro" ? { iconKey: "ScriptMacro", size: En, style: Tn } : { iconKey: "ScriptAutoStart", size: En, style: Tn }), o(
|
|
2325
|
+
return u = o(be, i === "formula" ? { iconKey: "ScriptFormula", size: En, style: Tn } : i === "macro" ? { iconKey: "ScriptMacro", size: En, style: Tn } : { iconKey: "ScriptAutoStart", size: En, style: Tn }), o(dt, { sx: { maxWidth: "460px", display: "flex", "*": { lineHeight: "1.2" }, ...l }, disabled: a, icon: u, onMouseDown: (s) => {
|
|
2326
2326
|
s.button === 0 && s.preventDefault();
|
|
2327
2327
|
}, onMouseUp: (s) => {
|
|
2328
2328
|
s.button === 0 && r(t);
|
|
@@ -2342,7 +2342,7 @@ const Cn = 0.12, Qr = (n, a) => {
|
|
|
2342
2342
|
}
|
|
2343
2343
|
})();
|
|
2344
2344
|
}, [c]);
|
|
2345
|
-
const p =
|
|
2345
|
+
const p = U((f, y) => {
|
|
2346
2346
|
if (g) return o("div", { children: "Loading..." });
|
|
2347
2347
|
const b = { variant: ie.Menuitem, commandHook: e, scope: "scripts", disabled: l }, h = (S) => {
|
|
2348
2348
|
d.getEditor()?.insertSnippet(S.content), f.closeFloat();
|
|
@@ -2404,7 +2404,7 @@ const xi = q(X((n, a) => {
|
|
|
2404
2404
|
L = !0;
|
|
2405
2405
|
};
|
|
2406
2406
|
}, [g]);
|
|
2407
|
-
const v =
|
|
2407
|
+
const v = U((L) => {
|
|
2408
2408
|
b((M) => ({ ...M, ...L }));
|
|
2409
2409
|
}, []), S = fe(null), [C, D] = _(null), E = fe(null), P = Y((L) => {
|
|
2410
2410
|
if (C) return C.focus(L), !0;
|
|
@@ -2413,14 +2413,14 @@ const xi = q(X((n, a) => {
|
|
|
2413
2413
|
if (M && M.length > 0) return M[0]?.focus?.(L), !0;
|
|
2414
2414
|
}
|
|
2415
2415
|
return S.current?.focus?.(L), !1;
|
|
2416
|
-
}, [C, i, s]), R = W(() => o(
|
|
2416
|
+
}, [C, i, s]), R = W(() => o(jt, { transitionDelay: "160ms", style: { position: "absolute", width: "100%", height: "100%" }, transparentBackground: !1 }), []), k = W(() => o(ro, { elevation: 1, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, marginLeft: (L) => L.spacing(0.5), marginRight: (L) => L.spacing(0.5), marginTop: (L) => L.spacing(1), marginBottom: (L) => L.spacing(1) }, children: o(fi, { commands: l }) }), [m, l]), T = W(() => o(F, { className: Ce("script-status-panel", "status-panel"), sx: { display: "flex", alignItems: "stretch", flexDirection: "row", flex: "0", paddingLeft: "12px", paddingRight: "12px", gap: "8px", paddingTop: "1px", minHeight: "calc(1em + 8px)", margin: 0, borderTop: `solid 1px ${m.palette.divider}` }, children: H("div", { style: { flex: "1 1 100%", display: "flex", alignItems: "center", flexDirection: "row", justifyContent: "center" }, children: [o(Pe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "1 1 100%", color: (L) => L.palette.text.secondary }, variant: "caption", children: y.message }), o(Pe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", color: (L) => L.palette.text.secondary }, variant: "caption", children: y.dirty ? "Unsaved" : "" }), o(Pe, { component: "div", sx: { userSelect: "none", whiteSpace: "pre", overflow: "hidden", textOverflow: "ellipsis", flex: "none", marginLeft: "8px", minWidth: "90px", display: "flex", justifyContent: "end", color: (L) => L.palette.text.secondary }, variant: "caption", children: y.cursor })] }) }), [y]), N = W(() => H(F, { className: Ce("script-editor-content"), sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "column", boxSizing: "border-box" }, children: [k, o(F, { sx: { display: "flex", flex: "1 1 100%", width: "100%", flexDirection: "row", position: "relative", boxSizing: "border-box" }, children: o(Ll, { ref: S, loadingPanel: R, readOnly: c, frame: u, autoFocus: s, commands: l, onStatusChange: v, darkMode: m.palette.mode === "dark", ...r }) }), T] }), [m, l, k, T, d, R, c, r, s, i, u, v]), I = W(() => {
|
|
2417
2417
|
let L;
|
|
2418
2418
|
return h === null ? null : (h.source === null && (L = o(bi, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden", position: "absolute", boxSizing: "border-box", width: "100%", height: "100%" }, onScriptSelect: (M) => {
|
|
2419
2419
|
S.current?.getEditor()?.insertSnippet(M.content), w({ source: M.content ?? "" });
|
|
2420
2420
|
} })), o(F, { tabIndex: 0, className: Ce("script-workspace", t), sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden", alignItems: "stretch", userSelect: "none", flexGrow: 0, outline: "none" }, onPointerDown: (M) => {
|
|
2421
2421
|
M.isDefaultPrevented() || S.current?.focus();
|
|
2422
2422
|
}, children: H(F, { sx: { flex: "1 1 100%", position: "relative", display: "flex" }, children: [N, L] }) }));
|
|
2423
|
-
}, [k, N, t, h]), B =
|
|
2423
|
+
}, [k, N, t, h]), B = Et(a, () => ({ isScriptWorkspaceElement: () => !0, focus: (L) => {
|
|
2424
2424
|
P(L);
|
|
2425
2425
|
} }), []);
|
|
2426
2426
|
return o(F, { sx: { display: "flex", flexDirection: "row", flex: "1 1 100%", position: "relative", ...e }, ref: B, ...x, onFocus: (L) => {
|
|
@@ -2453,7 +2453,7 @@ const Fc = (n, a) => {
|
|
|
2453
2453
|
}));
|
|
2454
2454
|
yi.displayName = "RunScriptPopupPanel";
|
|
2455
2455
|
const wi = q(X((n, a) => {
|
|
2456
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = "showScriptEditor", i = Ie(t, ["executeScript", "showScriptEditor"])[0].context(), s =
|
|
2456
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = "showScriptEditor", i = Ie(t, ["executeScript", "showScriptEditor"])[0].context(), s = U((g, x) => {
|
|
2457
2457
|
const m = o(yi, { ...g, commands: x });
|
|
2458
2458
|
return ye({ ...g, children: m });
|
|
2459
2459
|
}, [l, i, e, r]);
|
|
@@ -2482,7 +2482,7 @@ const wi = q(X((n, a) => {
|
|
|
2482
2482
|
y(), f();
|
|
2483
2483
|
};
|
|
2484
2484
|
}, [s]);
|
|
2485
|
-
const g = Sa(), x =
|
|
2485
|
+
const g = Sa(), x = U((m) => {
|
|
2486
2486
|
const { commandButtonProps: d, commandPopupProps: p } = m, f = tn.findContributions("ribbon/home");
|
|
2487
2487
|
let y;
|
|
2488
2488
|
const b = f.length;
|
|
@@ -2533,7 +2533,7 @@ const Ci = (n) => o(Ti, { ...n }), Oc = q((n) => {
|
|
|
2533
2533
|
e?.(i);
|
|
2534
2534
|
}, variant: "scrollable", scrollButtons: !1, sx: { paddingLeft: (u) => u.spacing(1.5), paddingRight: (u) => u.spacing(1.5), paddingTop: (u) => u.spacing(0), paddingBottom: (u) => u.spacing(0), minHeight: "26px", alignItems: "center", "& .MuiTabs-indicator": { display: "flex", justifyContent: "center", backgroundColor: "transparent" }, "& .MuiTabs-indicatorSpan": { width: "90%", borderRadius: "4px", minWidth: "4px", backgroundColor: (u) => u.palette.primary.main }, "& .MuiTab-root": { marginRight: "0px" }, ...r }, slotProps: { indicator: { children: o("span", { className: "MuiTabs-indicatorSpan" }) } }, ...l, children: c });
|
|
2535
2535
|
}), Ic = q((n) => {
|
|
2536
|
-
const { toolbars: a, value: t, onToolbarChange: e, selectProps: r, ...l } = n, c =
|
|
2536
|
+
const { toolbars: a, value: t, onToolbarChange: e, selectProps: r, ...l } = n, c = U((i) => {
|
|
2537
2537
|
e?.(i.target.value);
|
|
2538
2538
|
}, [e]), u = W(() => {
|
|
2539
2539
|
const i = [];
|
|
@@ -2560,7 +2560,7 @@ const Ci = (n) => o(Ti, { ...n }), Oc = q((n) => {
|
|
|
2560
2560
|
return S;
|
|
2561
2561
|
}, [m]), [p, f] = _(0), y = (S) => {
|
|
2562
2562
|
f(S);
|
|
2563
|
-
}, b = W(() => o(l ? Ic : Ac, { toolbars: m, value: p, onToolbarChange: y, sx: r }), [m, p, r, l]), { sx: h, ...w } = i, v = o(
|
|
2563
|
+
}, b = W(() => o(l ? Ic : Ac, { toolbars: m, value: p, onToolbarChange: y, sx: r }), [m, p, r, l]), { sx: h, ...w } = i, v = o(ro, { elevation: 2, tabIndex: 0, sx: { display: "flex", alignItems: "center", userSelect: "none", flexGrow: 1, borderRadius: "8px", backgroundImage: `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})`, marginLeft: (S) => S.spacing(1), marginRight: (S) => S.spacing(1), marginTop: (S) => S.spacing(0.5), marginBottom: (S) => S.spacing(0.5), ...h }, ...w, children: d[p] });
|
|
2564
2564
|
return H(F, { ref: a, className: "toolbarWrappers", sx: { display: "flex", flexDirection: "column", paddingTop: (S) => S.spacing(0.5), "*": { userSelect: "none" }, ...g }, ...x, children: [e ? e(b) : b, c ? c(v) : v] });
|
|
2565
2565
|
}));
|
|
2566
2566
|
var Jr, ea;
|
|
@@ -2660,25 +2660,25 @@ oa || (oa = 1, na.exports = (function() {
|
|
|
2660
2660
|
};
|
|
2661
2661
|
return Dn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : u, Dn;
|
|
2662
2662
|
})()), na.exports;
|
|
2663
|
-
var ra, aa, So = { exports: {} },
|
|
2663
|
+
var ra, aa, So = { exports: {} }, Qt = { exports: {} }, Lc = Qt.exports;
|
|
2664
2664
|
(function() {
|
|
2665
2665
|
if (aa) return So.exports;
|
|
2666
2666
|
aa = 1;
|
|
2667
2667
|
for (var n = (ra || (ra = 1, function() {
|
|
2668
2668
|
var x, m, d, p, f, y;
|
|
2669
|
-
typeof performance < "u" && performance !== null && performance.now ?
|
|
2669
|
+
typeof performance < "u" && performance !== null && performance.now ? Qt.exports = function() {
|
|
2670
2670
|
return performance.now();
|
|
2671
|
-
} : typeof process < "u" && process !== null && process.hrtime ? (
|
|
2671
|
+
} : typeof process < "u" && process !== null && process.hrtime ? (Qt.exports = function() {
|
|
2672
2672
|
return (x() - f) / 1e6;
|
|
2673
2673
|
}, m = process.hrtime, p = (x = function() {
|
|
2674
2674
|
var b;
|
|
2675
2675
|
return 1e9 * (b = m())[0] + b[1];
|
|
2676
|
-
})(), y = 1e9 * process.uptime(), f = p - y) : Date.now ? (
|
|
2676
|
+
})(), y = 1e9 * process.uptime(), f = p - y) : Date.now ? (Qt.exports = function() {
|
|
2677
2677
|
return Date.now() - d;
|
|
2678
|
-
}, d = Date.now()) : (
|
|
2678
|
+
}, d = Date.now()) : (Qt.exports = function() {
|
|
2679
2679
|
return (/* @__PURE__ */ new Date()).getTime() - d;
|
|
2680
2680
|
}, d = (/* @__PURE__ */ new Date()).getTime());
|
|
2681
|
-
}.call(Lc)),
|
|
2681
|
+
}.call(Lc)), Qt.exports), a = typeof window > "u" ? Do : window, t = ["moz", "webkit"], e = "AnimationFrame", r = a["request" + e], l = a["cancel" + e] || a["cancelRequest" + e], c = 0; !r && c < t.length; c++) r = a[t[c] + "Request" + e], l = a[t[c] + "Cancel" + e] || a[t[c] + "CancelRequest" + e];
|
|
2682
2682
|
if (!r || !l) {
|
|
2683
2683
|
var u = 0, i = 0, s = [], g = 1e3 / 60;
|
|
2684
2684
|
r = function(x) {
|
|
@@ -2709,7 +2709,7 @@ var ra, aa, So = { exports: {} }, Zt = { exports: {} }, Lc = Zt.exports;
|
|
|
2709
2709
|
x || (x = a), x.requestAnimationFrame = r, x.cancelAnimationFrame = l;
|
|
2710
2710
|
}, So.exports;
|
|
2711
2711
|
})();
|
|
2712
|
-
var
|
|
2712
|
+
var st = { DOM_UNAVAILABLE_ERROR: "DOM is unavailable server-side. Please use this method client-side only.", FULLSCREEN_UNSUPPORTED_ERROR: "Your browser does not support Fullscreen API.", getEventsNames() {
|
|
2713
2713
|
if (typeof document > "u") return null;
|
|
2714
2714
|
const n = document;
|
|
2715
2715
|
return "exitFullscreen" in n ? ["fullscreenchange", "fullscreenerror"] : "webkitExitFullscreen" in n || "webkitCancelFullScreen" in n ? ["webkitfullscreenchange", "webkitfullscreenerror"] : "mozCancelFullScreen" in n ? ["mozfullscreenchange", "mozfullscreenerror"] : "msExitFullscreen" in n ? ["MSFullscreenChange", "MSFullscreenError"] : null;
|
|
@@ -2803,17 +2803,17 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
2803
2803
|
h();
|
|
2804
2804
|
} });
|
|
2805
2805
|
const { isFullscreenAvailable: v, isFullscreenEnabled: S, toggleFullscreen: C } = (function(k = {}) {
|
|
2806
|
-
const { target: T, onChange: N, onError: I, requestFullScreenOptions: B } = k, [L, M] = _(!1), [z, ae] = _(null), [J, pe] = _(!1), j =
|
|
2807
|
-
const oe =
|
|
2806
|
+
const { target: T, onChange: N, onError: I, requestFullScreenOptions: B } = k, [L, M] = _(!1), [z, ae] = _(null), [J, pe] = _(!1), j = U(() => st.requestFullscreen(T?.current || null, B), [T, B]), K = U(() => st.exitFullscreen(), []), ee = U(() => st.fullscreenElement ? K() : j(), [j, K]), V = U((Z) => {
|
|
2807
|
+
const oe = st.fullscreenElement;
|
|
2808
2808
|
ae(oe), pe(!!oe), N?.(Z);
|
|
2809
|
-
}, [N]), A =
|
|
2810
|
-
const oe =
|
|
2809
|
+
}, [N]), A = U((Z) => {
|
|
2810
|
+
const oe = st.fullscreenElement;
|
|
2811
2811
|
ae(oe), pe(!!oe), I?.(Z);
|
|
2812
2812
|
}, [I]);
|
|
2813
2813
|
return de(() => {
|
|
2814
|
-
M(
|
|
2815
|
-
}, []), de(() => (
|
|
2816
|
-
|
|
2814
|
+
M(st.fullscreenEnabled);
|
|
2815
|
+
}, []), de(() => (st.on("change", V), st.on("error", A), () => {
|
|
2816
|
+
st.off("change", V), st.off("error", A);
|
|
2817
2817
|
}), [V, A]), { isFullscreenAvailable: L, fullscreenElement: z, isFullscreenEnabled: J, enableFullscreen: j, disableFullscreen: K, toggleFullscreen: ee };
|
|
2818
2818
|
})({ target: { current: t ?? document.body } }), D = Gn();
|
|
2819
2819
|
de(() => {
|
|
@@ -2865,7 +2865,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
2865
2865
|
const T = a.getSelectedSheet().getSelectedRange();
|
|
2866
2866
|
a.getStyles().setNamed({ name: k.getName(), style: T.getCell().getStyle() });
|
|
2867
2867
|
}), f.getCommand("hideSheet").updateCallback((k) => {
|
|
2868
|
-
a.getSheetAt(k).setVisibility(
|
|
2868
|
+
a.getSheetAt(k).setVisibility(Bt.Visibility.Hidden);
|
|
2869
2869
|
}), f.getCommand("deleteSheet").updateCallback(async (k) => {
|
|
2870
2870
|
a.getSheetAt(k ?? a.getSelectedSheetIndex())?.delete();
|
|
2871
2871
|
}), f.getCommand("addSheet").updateCallback((k) => {
|
|
@@ -2922,7 +2922,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
2922
2922
|
try {
|
|
2923
2923
|
await I.select();
|
|
2924
2924
|
} catch (B) {
|
|
2925
|
-
u.showMessage(B.message, { type:
|
|
2925
|
+
u.showMessage(B.message, { type: vt.Error });
|
|
2926
2926
|
}
|
|
2927
2927
|
} };
|
|
2928
2928
|
return u.showWindow("namedDetails", N);
|
|
@@ -2952,7 +2952,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
2952
2952
|
try {
|
|
2953
2953
|
await a.getRanges(N).select();
|
|
2954
2954
|
} catch (I) {
|
|
2955
|
-
u.showMessage(I.message, { type:
|
|
2955
|
+
u.showMessage(I.message, { type: vt.Error });
|
|
2956
2956
|
}
|
|
2957
2957
|
}, title: f.getCommand("goto")?.label(), inputLabel: "Location", options: ["Go To"] };
|
|
2958
2958
|
u.showInput(T);
|
|
@@ -2992,7 +2992,7 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
2992
2992
|
f.getCommand("hideSheet").update({ disabled: g.length <= 1 || !k }), f.getCommand("deleteSheet").update({ disabled: g.length <= 1 || !k });
|
|
2993
2993
|
}, [g, i]), f;
|
|
2994
2994
|
}, Hc = () => {
|
|
2995
|
-
window.open(window.origin.toString(), "sheetxl-" +
|
|
2995
|
+
window.open(window.origin.toString(), "sheetxl-" + ft.uuidV4(), "popup=true");
|
|
2996
2996
|
}, Wc = "_sheetxl-theme_4opcr_2", jc = "_sheetxl-workbook_g5t6x_5", $c = (n) => o(li, { ...n }), Vc = (n) => o(si, { ...n }), _c = (n) => o(ii, { ...n }), Ei = q(X((n, a) => {
|
|
2997
2997
|
const { workbook: t, commands: e, onBeforeUserChange: r, onUserChange: l, disabled: c = !1, readOnly: u = !1, contextMenuProps: i, renderContextMenu: s = $c, sheetsAllProps: g, renderSheetsAll: x = Vc, sheetTabProps: m, renderSheetTab: d, background: p = "transparent", className: f, sx: y, borderWidth: b, borderColor: h, gridTheme: w, gridStyle: v, ...S } = n, [C, D] = _(t?.getSelectedSheetIndex()), [E, P] = _(t?.getSheets().getItems()), [R, k] = _(t?.getProtection());
|
|
2998
2998
|
We(t, { onViewChange(ne) {
|
|
@@ -3004,50 +3004,50 @@ Names can be used as a substitute for cell references.`, shortcut: { key: "F3",
|
|
|
3004
3004
|
} });
|
|
3005
3005
|
const T = u || !R.isStructureAllowed(), N = W(() => {
|
|
3006
3006
|
const ne = [];
|
|
3007
|
-
for (let
|
|
3007
|
+
for (let G = 0; G < E.length; G++) ne.push(E[G].getName());
|
|
3008
3008
|
return ne;
|
|
3009
|
-
}, [E]), I =
|
|
3009
|
+
}, [E]), I = U((ne) => {
|
|
3010
3010
|
r?.(ne) !== !1 && (t.getSheetAt(ne).select(), l?.(ne));
|
|
3011
|
-
}, [t, r, l]), B =
|
|
3012
|
-
t.getSheetAt(ne).setName(
|
|
3013
|
-
}, [t, l]), L =
|
|
3014
|
-
t.getSheetAt(ne).setPosition(
|
|
3011
|
+
}, [t, r, l]), B = U((ne, G) => {
|
|
3012
|
+
t.getSheetAt(ne).setName(G), l?.(ne);
|
|
3013
|
+
}, [t, l]), L = U((ne, G) => {
|
|
3014
|
+
t.getSheetAt(ne).setPosition(G), l?.(G);
|
|
3015
3015
|
}, [t, l]), M = Y(() => {
|
|
3016
3016
|
if (r?.(C) === !1) return;
|
|
3017
3017
|
const ne = C + 1;
|
|
3018
3018
|
t.getSheets().add({ name: void 0, autoSelect: !0 }), l?.(ne);
|
|
3019
|
-
}, [t, r, l, C]), z = W(() => ({ placement: "top-start" }), []), ae = fe(null), [J, pe] = _(!1), j =
|
|
3020
|
-
const { closeFloatAll:
|
|
3021
|
-
return x({ workbook: t, gridStyle: v, floatReference: le, closeFloatAll:
|
|
3022
|
-
}, [x, g, c, t, v]), { reference: K, component: ee } =
|
|
3023
|
-
const { floatReference:
|
|
3024
|
-
return s?.({ workbook: t, index: A?.index, tabStripRef: V.current, commands: e, disabled: c, floatReference:
|
|
3025
|
-
}, [s, i, c, t, e, A]), { reference: Oe, component: Se } =
|
|
3019
|
+
}, [t, r, l, C]), z = W(() => ({ placement: "top-start" }), []), ae = fe(null), [J, pe] = _(!1), j = U((ne) => {
|
|
3020
|
+
const { closeFloatAll: G, floatReference: le } = ne;
|
|
3021
|
+
return x({ workbook: t, gridStyle: v, floatReference: le, closeFloatAll: G, ...g });
|
|
3022
|
+
}, [x, g, c, t, v]), { reference: K, component: ee } = io({ label: "allSheet", popperProps: z, anchor: ae.current, onOpen: () => pe(!0), onClose: () => pe(!1), createPopupPanel: j }), V = fe(null), [A, Z] = _(null), oe = U((ne) => {
|
|
3023
|
+
const { floatReference: G } = ne;
|
|
3024
|
+
return s?.({ workbook: t, index: A?.index, tabStripRef: V.current, commands: e, disabled: c, floatReference: G, ...i });
|
|
3025
|
+
}, [s, i, c, t, e, A]), { reference: Oe, component: Se } = io({ label: "sheetTab", popperProps: z, anchor: { getBoundingClientRect: () => new DOMRect(A?.left || 0, A?.top || 0, 0, 0) }, onClose: () => Z(null), createPopupPanel: oe });
|
|
3026
3026
|
de(() => {
|
|
3027
3027
|
A ? Oe.open(0) : Oe.close(0);
|
|
3028
3028
|
}, [A]);
|
|
3029
|
-
const Ne =
|
|
3030
|
-
ne.preventDefault(), Z({ left: ne.clientX - 2, top: ne.clientY - 4, index:
|
|
3029
|
+
const Ne = U((ne, G) => {
|
|
3030
|
+
ne.preventDefault(), Z({ left: ne.clientX - 2, top: ne.clientY - 4, index: G });
|
|
3031
3031
|
}, []), _e = Y((ne) => {
|
|
3032
|
-
let
|
|
3032
|
+
let G;
|
|
3033
3033
|
try {
|
|
3034
|
-
|
|
3034
|
+
G = t?.getSheetAt(ne.index);
|
|
3035
3035
|
} catch {
|
|
3036
3036
|
}
|
|
3037
|
-
return
|
|
3037
|
+
return G ? (d ?? _c)({ sheet: G, gridTheme: w, onContextMenu: (le) => {
|
|
3038
3038
|
I(ne.index), Ne(le, ne.index);
|
|
3039
3039
|
}, ...ne, ...m }) : null;
|
|
3040
|
-
}, [d, m, t, w]), Ve = W(() => T ? null : o(
|
|
3040
|
+
}, [d, m, t, w]), Ve = W(() => T ? null : o(Ct, { disableInteractive: !0, title: "New sheet", children: o(ct, { disabled: c, component: "div", sx: { padding: "0", "&:hover:not([disabled])": { color: (ne) => ne.palette.primary.main }, color: (ne) => ne.palette.text.icon ?? ne.palette.action.active, "& svg": { width: "18px", height: "18px" } }, "aria-label": "addTab", size: "small", onMouseDown: (ne) => {
|
|
3041
3041
|
ne.button === 0 && ne.preventDefault();
|
|
3042
3042
|
}, onClick: () => M(), children: o(be, { iconKey: "AddCircle" }) }) }), [c, T, M]);
|
|
3043
3043
|
return H(F, { ref: a, className: Ce(f), sx: { position: "relative", display: "flex", alignItems: "stretch", flex: "1 1 100%", maxWidth: "100%", ...y }, ...S, children: [o(zl, { ref: V, selectedTabIndex: C, tabNames: N, onSelectedTabIndexChange: I, onTabNameChange: B, onTabMove: L, background: p, borderColor: h, borderWidth: b, activeColor: null, disabled: c, disableDrag: T, createScrollStartButton: ps, createScrollEndButton: ds, createScrollEdgeButton: cs, createTabButton: _e, createTabDivider: (ne) => {
|
|
3044
|
-
const { key:
|
|
3045
|
-
return o(Q, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (Re) => xe(Re.palette.divider, 0.25) }, ...le },
|
|
3044
|
+
const { key: G, ...le } = ne;
|
|
3045
|
+
return o(Q, { sx: { marginLeft: "-1px", marginRight: "0px", marginTop: "6px", marginBottom: "6px", background: (Re) => xe(Re.palette.divider, 0.25) }, ...le }, G);
|
|
3046
3046
|
}, editLabelProps: { readOnly: T, maxLength: 31, styleHover: { fontWeight: "700" }, onKeyPress: (ne) => {
|
|
3047
3047
|
t.isValidSheetNameCharacter(ne.key) || ne.preventDefault();
|
|
3048
3048
|
}, onCancel: () => {
|
|
3049
3049
|
l?.(C);
|
|
3050
|
-
} }, children: o(
|
|
3050
|
+
} }, children: o(Ct, { disableInteractive: !0, title: J ? "" : "List all sheets", children: o(xt, { sx: { padding: "0px", ml: 0.5, mr: 0, mt: 0, mb: 0, "& svg": { transform: "scale(0.8, 1)" }, color: (ne) => ne.palette.text.icon ?? ne.palette.action.active }, ref: ae, dense: !0, outlined: !1, selected: J, color: "primary", "aria-label": "menu", onMouseDown: (ne) => {
|
|
3051
3051
|
ne.button === 0 && ne.preventDefault();
|
|
3052
3052
|
}, onClick: () => {
|
|
3053
3053
|
J ? K.close(0) : K.open(0);
|
|
@@ -3070,7 +3070,7 @@ const Di = q(X((n, a) => {
|
|
|
3070
3070
|
let C = d.isEntireRows(), D = d.isEntireColumns();
|
|
3071
3071
|
d && (C && (S.push(o(Q, { orientation: "horizontal" }, "context:" + S.length)), S.push(ve(O, { command: e.getCommand("hideColumns"), ...w, key: "context:" + S.length })), S.push(ve(O, { command: e.getCommand("unhideColumns"), ...w, key: "context:" + S.length }))), D && (S.push(o(Q, { orientation: "horizontal" }, "context:" + S.length)), S.push(ve(O, { command: e.getCommand("hideRows"), ...w, key: "context:" + S.length })), S.push(ve(O, { command: e.getCommand("unhideRows"), ...w, key: "context:" + S.length }))), (C || D) && S.push(o(Q, { orientation: "horizontal" }, "context:" + S.length)), C && (S.push(ve(O, { command: e.getCommand("autoFitColumns"), ...w, key: "context:" + S.length })), S.push(ve(O, { ...w, command: e.getCommand("resizeColumns"), key: "context:" + S.length }))), D && (S.push(ve(O, { command: e.getCommand("autoFitRows"), ...w, key: "context:" + S.length })), S.push(ve(O, { ...w, command: e.getCommand("resizeRows"), key: "context:" + S.length }))));
|
|
3072
3072
|
const E = [], P = e.getCommand("formatTableStyle"), R = P?.context()?.table();
|
|
3073
|
-
if (
|
|
3073
|
+
if ($t(P), !C && !D) {
|
|
3074
3074
|
if (E.push(o(Q, { orientation: "horizontal" }, "contextBefore:" + E.length)), f?.getHyperlink()) E.push(ve(qe, { ...v, popupCommandKeys: ["updateHyperlink", "deleteHyperlink"], popupScope: "hyperlink", key: "contextBefore:action" + E.length, quickCommand: "openHyperlink" }));
|
|
3075
3075
|
else {
|
|
3076
3076
|
const T = e.getCommand("updateHyperlink");
|
|
@@ -3104,77 +3104,77 @@ const nr = q(X((n, a) => {
|
|
|
3104
3104
|
return o(F, { ref: a, sx: { paddingTop: "4px", paddingBottom: "4px", ...l }, ...u, children: m });
|
|
3105
3105
|
}));
|
|
3106
3106
|
Pi.displayName = "MovableContextMenu";
|
|
3107
|
-
const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai, { ...n }), Kc = (n, a) => o(ri, { ref: a, ...n }), Xc = (n) => o(
|
|
3107
|
+
const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai, { ...n }), Kc = (n, a) => o(ri, { ref: a, ...n }), Xc = (n) => o(jt, { ...n }), Yc = (n, a) => o(Hl, { ref: a, ...n }), Zc = (n) => o(Za, { ...n }), Qc = (n) => o(Ei, { ...n }), Jc = { fireOnModelChange: !1 }, ia = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, Ri = q(X((n, a) => {
|
|
3108
3108
|
const { workbook: t, createWorkbookOptions: e, onNewWorkbook: r, onElementLoad: l, autoFocus: c = !1, sx: u, style: i, className: s, onFocus: g, onBlur: x, onKeyDown: m, onRepeatCommandChange: d, commands: p, showFormulaBar: f, formulaBarProps: y, renderFormulaBar: b = Kc, showTabs: h, tabsProps: w, renderTabs: v = Qc, showStatusBar: S, statusBarProps: C, renderStatusBar: D = Zc, toolbarProps: E, renderToolbar: P = Ci, contextMenuSx: R, renderContextMenu: k = Gc, renderFilterMenu: T = qc, renderMovableMenu: N = Uc, renderLoadingPanel: I = Xc, loadingPanelProps: B, sheetProps: L, renderSheet: M = Yc, mainWrapper: z, showHorizontalScrollbar: ae, showVerticalScrollbar: J, gridTheme: pe, headersTheme: j, enableDarkImages: K, ...ee } = n, V = Xe(), A = Gn(), Z = W(() => {
|
|
3109
3109
|
const $ = { theme: A.getDefaultTheme(), ...e };
|
|
3110
3110
|
return t ?? new On($);
|
|
3111
|
-
}, [t]), oe = fe(null), [Oe, Se] = _(!1), Ne = fe(null), _e = W(() => o(F, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: Ne }), []), [Ve, ne] = _(!1), [
|
|
3111
|
+
}, [t]), oe = fe(null), [Oe, Se] = _(!1), Ne = fe(null), _e = W(() => o(F, { className: "sheetxl-viewport", sx: { width: "100%", height: "100%", boxSizing: "border-box", position: "absolute", pointerEvents: "none !important", "& > :first-of-type": { position: "relative" } }, ref: Ne }), []), [Ve, ne] = _(!1), [G, le] = _(!1), Re = U(() => {
|
|
3112
3112
|
ne(!0);
|
|
3113
|
-
}, []), Ke = fe(null), Ee =
|
|
3113
|
+
}, []), Ke = fe(null), Ee = Et(a, () => ({ isWorkbookElement: () => !0, getWorkbook: () => Z, getSheetElement: () => oe.current, getViewportElement: () => Ne.current, getFormulaBarElement: () => Ke.current, focus() {
|
|
3114
3114
|
oe && oe.current && oe.current.focus();
|
|
3115
|
-
} }), [Z]),
|
|
3116
|
-
|
|
3117
|
-
!Ve || !Ee.current || (async () => (
|
|
3115
|
+
} }), [Z]), at = fe(null);
|
|
3116
|
+
kt(() => {
|
|
3117
|
+
!Ve || !Ee.current || (async () => (at.current !== l && (await l?.({ source: Ee.current }), at.current = l), le(!0)))();
|
|
3118
3118
|
}, [Ve, Ee.current]), Xr(Ee.current);
|
|
3119
|
-
const Ye =
|
|
3119
|
+
const Ye = U(($) => (oe.current?.submitEdit(), !0), []), pt = U(() => {
|
|
3120
3120
|
requestAnimationFrame(() => {
|
|
3121
3121
|
oe?.current?.focus();
|
|
3122
3122
|
});
|
|
3123
|
-
}, []), [Me, te] = _(Z?.getSelectedSheet()), [ke,
|
|
3123
|
+
}, []), [Me, te] = _(Z?.getSelectedSheet()), [ke, Dt] = _(Z?.getProtection());
|
|
3124
3124
|
We(Z, { onSheetsChange: ($) => {
|
|
3125
3125
|
te($?.getSelectedSheet());
|
|
3126
3126
|
}, onViewChange($) {
|
|
3127
3127
|
te($?.getSelectedSheet());
|
|
3128
3128
|
}, onProtectionChange: ($) => {
|
|
3129
|
-
|
|
3129
|
+
Dt($?.getProtection());
|
|
3130
3130
|
} }), We(Z, { onRequestSelect: async ($, ue) => new Promise((Ae) => {
|
|
3131
3131
|
oe.current.getSheet() !== ue ? oe.current.getGridElement()?.onViewChangeOnce(() => {
|
|
3132
3132
|
oe.current.getSheet() !== ue && Ae(!1), Ae(!0);
|
|
3133
3133
|
}) : Ae(!0);
|
|
3134
3134
|
}) }, Jc);
|
|
3135
|
-
const [Ji,
|
|
3136
|
-
We(
|
|
3137
|
-
|
|
3135
|
+
const [Ji, lo] = on(($) => $ + 1, 0), Ut = Z?.getView();
|
|
3136
|
+
We(Ut, { onViewChange: ($) => {
|
|
3137
|
+
lo();
|
|
3138
3138
|
} });
|
|
3139
|
-
const
|
|
3140
|
-
|
|
3139
|
+
const et = pe ?? V, Ue = W(() => Qr(V, et), [V, et]), lr = j ?? V, el = W(() => Qr(V, lr), [V, lr]), [sr, tl] = _(null);
|
|
3140
|
+
U(() => {
|
|
3141
3141
|
oe.current.focus();
|
|
3142
3142
|
}, []);
|
|
3143
|
-
const Fe = zc({ workbook: Z, workbookElement: Ee.current, target: () => oe.current, commands: p, darkMode: Ue.body.darkMode, onNewWorkbook: r }), so = fe(null), [mn, cr] = _(!1), [dr, pr] = _(null), [ur, ol] = _(ho.Top), [co, nl] = _(Bl.EmptyBounds), hn =
|
|
3143
|
+
const Fe = zc({ workbook: Z, workbookElement: Ee.current, target: () => oe.current, commands: p, darkMode: Ue.body.darkMode, onNewWorkbook: r }), so = fe(null), [mn, cr] = _(!1), [dr, pr] = _(null), [ur, ol] = _(ho.Top), [co, nl] = _(Bl.EmptyBounds), hn = U(() => {
|
|
3144
3144
|
cr(!1), pr(null);
|
|
3145
|
-
}, []), po =
|
|
3145
|
+
}, []), po = U(($, ue, Ae = ho.Top) => {
|
|
3146
3146
|
nl($), ol(Ae), pr(ue), so.current !== null && setTimeout(() => {
|
|
3147
3147
|
so.current !== null && so.current.update();
|
|
3148
3148
|
}, 160), cr(!0);
|
|
3149
|
-
}, []), [Gd, mr] = _("sheet"),
|
|
3150
|
-
if (!
|
|
3151
|
-
let $ = v({ background: Ue.body.fill, borderWidth: 1, borderColor:
|
|
3152
|
-
return
|
|
3153
|
-
}, [v, w, V, Z,
|
|
3149
|
+
}, []), [Gd, mr] = _("sheet"), Pt = h ?? Ut?.isShowTabs(), Rt = ae ?? Ut?.isShowHorizontalScrollbar(), rl = f ?? Ut?.isShowFormulaBar(), Ao = S ?? Ut?.isShowStatusBar(), hr = J ?? Ut?.isShowVerticalScrollbar(), Gt = Ue?.header?.edgeStrokeFill || "rgb(171,171,171)", al = W(() => Ao ? D({ sheet: Me, gridStyle: Ue, ...C }) : null, [D, C, Ao, Ue, Me]), il = W(() => P({ commands: Fe, workbook: Ee.current, ...E }), [Fe, P, E, V]), [ll, { width: gn }] = Ht(), Mt = gn === 0 || gn > 560, fn = W(() => {
|
|
3150
|
+
if (!Pt) return null;
|
|
3151
|
+
let $ = v({ background: Ue.body.fill, borderWidth: 1, borderColor: Gt, gridTheme: et, gridStyle: Ue, onBeforeUserChange: Ye, onUserChange: pt, workbook: Z, commands: Fe, sheetTabProps: {}, ...w });
|
|
3152
|
+
return Mt || ($ = o("div", { style: { flex: "none", display: "flex" }, children: $ })), $;
|
|
3153
|
+
}, [v, w, V, Z, et, Mt, Fe, Pt]), gr = U(($) => {
|
|
3154
3154
|
const { style: ue, ...Ae } = $;
|
|
3155
3155
|
let je = null, Ze = null, $e = null;
|
|
3156
|
-
if (
|
|
3156
|
+
if (Rt && (Ze = o("div", { style: { display: "flex", flex: "1 1 100%", borderTop: `solid ${Gt} 1px`, flexDirection: "column", justifyContent: "center" }, children: o(Sr, { ...Ae, style: { paddingLeft: "4px", paddingRight: "4px", ...ue }, touchThumbProps: { backgroundColor: et.palette.background.paper, borderColor: et.palette.primary.main, fillColor: "grey" }, endGap: 700, sheet: Me, onShowTooltip: (Ge) => {
|
|
3157
3157
|
po({ x: Ge.anchor.x, y: Ge.anchor.y, width: 0, height: 0 }, Ge.display, Ge.placement);
|
|
3158
|
-
}, onCloseTooltip: () => hn() }) })),
|
|
3158
|
+
}, onCloseTooltip: () => hn() }) })), Pt && Mt && ($e = fn), Pt && Mt && !Rt && ($e = H(F, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: [$e, o(F, { sx: { borderTop: `solid ${Gt} 1px`, flex: "1" } })] })), $e && Rt) je = o(Qn, { position: Z.getView().getTabRatio() / 10 + "%", onPositionChange: ({ percent: Ge }) => {
|
|
3159
3159
|
Z.getView().setTabRatio(Math.round(10 * Ge));
|
|
3160
|
-
}, minBefore: "200px", minAfter: "180px", resizerProps: { style: { minWidth: "11px", backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${V.palette.text.icon ?? V.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center", borderTop: `solid ${
|
|
3161
|
-
else if (
|
|
3160
|
+
}, minBefore: "200px", minAfter: "180px", resizerProps: { style: { minWidth: "11px", backgroundImage: `url("data:image/svg+xml,%3Csvg width='6.4' height='12' viewBox='0 0 9.6 16' version='1.1' fill='${V.palette.text.icon ?? V.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='M 9.60008,14.40009 C 9.60008,15.28374 8.88368,16 8.00003,16 7.11639,16 6.40012,15.28374 6.40012,14.40009 c 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40012 c 0,0.88364 -0.7164,1.60004 -1.60005,1.60004 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60004 0,-0.88365 0.71627,-1.60005 1.59991,-1.60005 0.88365,0 1.60005,0.7164 1.60005,1.60005 m 0,-6.40006 c 0,0.88365 -0.7164,1.60005 -1.60005,1.60005 -0.88364,0 -1.59991,-0.7164 -1.59991,-1.60005 C 6.40012,0.71626 7.11639,0 8.00003,0 8.88368,0 9.60008,0.71626 9.60008,1.59991 M 3.19996,14.40009 C 3.19996,15.28374 2.48369,16 1.60005,16 0.7164,16 0,15.28374 0,14.40009 c 0,-0.88365 0.7164,-1.60005 1.60005,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40012 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 C 0.7164,9.60001 0,8.88361 0,7.99997 0,7.11632 0.7164,6.39992 1.60005,6.39992 c 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-6.40006 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 0.7164,3.19996 0,2.48356 0,1.59991 0,0.71626 0.7164,0 1.60005,0 2.48369,0 3.19996,0.71626 3.19996,1.59991' /%3E%3C/svg%3E%0A")`, backgroundRepeat: "no-repeat", backgroundPosition: "center", borderTop: `solid ${Gt} 1px`, borderBottom: "solid 3px transparent" } }, elementBefore: $e, elementAfter: Ze });
|
|
3161
|
+
else if (Rt) je = Ze;
|
|
3162
3162
|
else {
|
|
3163
|
-
if (!$e) return o(F, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Ao ? null : `solid ${
|
|
3163
|
+
if (!$e) return o(F, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center", height: "1px", borderTop: Ao ? null : `solid ${Gt} 1px` } });
|
|
3164
3164
|
je = $e;
|
|
3165
3165
|
}
|
|
3166
3166
|
return o(F, { sx: { display: "flex", flex: "1", position: "relative", alignContent: "center" }, children: je });
|
|
3167
|
-
}, [Me, Ye, Z, Ue,
|
|
3167
|
+
}, [Me, Ye, Z, Ue, et, Fe, Pt, Rt, Ao, Mt]), [tt, uo] = re.useState(null), sl = W(() => ({ placement: "right-start", ...tt?.popperProps }), [tt?.popperProps]), { reference: fr, component: cl } = io({ label: "contextMenu", popperProps: sl, anchor: tt?.anchor ?? { getBoundingClientRect: () => new DOMRect(tt?.clientX || 0, tt?.clientY || 0) }, onClose: () => uo(null), createPopupPanel: tt?.createPopupPanel });
|
|
3168
3168
|
de(() => {
|
|
3169
|
-
|
|
3170
|
-
}, [
|
|
3169
|
+
tt ? fr.open(0) : fr.close(0);
|
|
3170
|
+
}, [tt]);
|
|
3171
3171
|
const dl = Y(($, ue) => {
|
|
3172
3172
|
if ($?.isDefaultPrevented()) return !0;
|
|
3173
|
-
$.preventDefault(),
|
|
3173
|
+
$.preventDefault(), tt && tt.anchor === $.currentTarget ? uo(null) : uo({ anchor: $.currentTarget, popperProps: { offsets: [-4, 2] }, createPopupPanel: (Ae) => {
|
|
3174
3174
|
const { floatReference: je } = Ae;
|
|
3175
3175
|
return T({ filter: ue, commands: Fe, floatReference: je, sx: { ...R } });
|
|
3176
3176
|
} });
|
|
3177
|
-
}, [T, R, Fe, Z,
|
|
3177
|
+
}, [T, R, Fe, Z, tt]), br = Y(($) => {
|
|
3178
3178
|
if ($.originalEvent?.isDefaultPrevented()) return !0;
|
|
3179
3179
|
$.originalEvent?.preventDefault(), uo({ clientX: $.clientX, clientY: $.clientY, createPopupPanel: (ue) => {
|
|
3180
3180
|
const { floatReference: Ae } = ue;
|
|
@@ -3205,20 +3205,20 @@ const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai
|
|
|
3205
3205
|
Fe?.dispatchToFocusedCommand($);
|
|
3206
3206
|
}, [Fe]), ml = Y(() => {
|
|
3207
3207
|
Xr(Ee.current);
|
|
3208
|
-
}, [Z, Ee.current]), hl =
|
|
3208
|
+
}, [Z, Ee.current]), hl = U(() => {
|
|
3209
3209
|
mr("sheet");
|
|
3210
|
-
}, []), gl =
|
|
3210
|
+
}, []), gl = U(() => {
|
|
3211
3211
|
mr("formulaBar");
|
|
3212
|
-
}, []), fl =
|
|
3212
|
+
}, []), fl = U(($) => {
|
|
3213
3213
|
const { style: ue, ...Ae } = $;
|
|
3214
|
-
return o(Sr, { style: { ...ue, paddingTop: "4px", paddingBottom: "4px" },
|
|
3214
|
+
return o(Sr, { ...Ae, style: { ...ue, paddingTop: "4px", paddingBottom: "4px" }, touchThumbProps: { backgroundColor: et.palette.background.paper, borderColor: et.palette.primary.main, fillColor: "grey" }, sheet: Me, endGap: 700, onShowTooltip: (je) => {
|
|
3215
3215
|
po(je.anchor, je.display, ho.Left);
|
|
3216
3216
|
}, onCloseTooltip: () => hn() });
|
|
3217
|
-
}, [Me]);
|
|
3217
|
+
}, [Me, et]);
|
|
3218
3218
|
de(() => {
|
|
3219
3219
|
c && oe && oe.current && oe.current.focus();
|
|
3220
3220
|
}, []);
|
|
3221
|
-
const [Io, bn] = re.useState(null), xn =
|
|
3221
|
+
const [Io, bn] = re.useState(null), xn = U(($) => {
|
|
3222
3222
|
Fe?.getCommand("openWorkbook") && ($.type === "dragenter" || $.type === "dragover" ? $.dataTransfer?.types.includes("Files") ? $.dataTransfer.files[0]?.type?.startsWith("image/") || $.dataTransfer.items[0]?.type?.startsWith("image/") || $.dataTransfer.types.length === 1 && bn("Drop to open") : ($.dataTransfer?.types.includes("text/html") || $.dataTransfer?.types.includes("text/plain"), $.dataTransfer.effectAllowed = "none", $.dataTransfer.dropEffect = "none") : $.type === "dragleave" && bn(null), $.preventDefault());
|
|
3223
3223
|
}, [Fe]), bl = Y(($) => {
|
|
3224
3224
|
if (Fe?.getCommand("openWorkbook") && ($.preventDefault(), $.stopPropagation(), bn(null), $.dataTransfer.files && $.dataTransfer.files.length > 0)) {
|
|
@@ -3232,12 +3232,12 @@ const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai
|
|
|
3232
3232
|
Fe?.getCommand("insertImageFromFile")?.execute({ file: ue, options: { bounds: { x: Ze.x, y: Ze.y } }, goto: { range: { ...$e } } });
|
|
3233
3233
|
} else Fe?.getCommand("openWorkbook")?.execute(ue);
|
|
3234
3234
|
}
|
|
3235
|
-
}, [Fe, Io]), xl = W(() => Io ? o(F, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: ($) => $.palette.divider, color: ($) => $.palette.primary.dark }, children: o(Pe, { variant: "h4", children: Io }) }) : null, [Io]), xr = fe(null), yl = W(() => o(Wn, { in: !
|
|
3235
|
+
}, [Fe, Io]), xl = W(() => Io ? o(F, { sx: { position: "absolute", width: "100%", height: "100%", boxSizing: "border-box", pointerEvents: "none", display: "flex", justifyContent: "center", alignItems: "center", background: ($) => $.palette.divider, color: ($) => $.palette.primary.dark }, children: o(Pe, { variant: "h4", children: Io }) }) : null, [Io]), xr = fe(null), yl = W(() => o(Wn, { in: !G, nodeRef: xr, timeout: 500, classNames: "animating", unmountOnExit: !0, children: o(F, { style: { display: "flex", alignItems: "center", justifyContent: "center", left: "0px", top: "0px", width: "100%", height: "100%", pointerEvents: G ? "none" : u?.pointerEvents, position: "absolute", boxSizing: "border-box" }, children: I({ ref: xr, transitionDelay: "0", transparentBackground: !1, sx: { opacity: G ? 0 : u?.opacity, pointerEvents: G ? "none" : u?.pointerEvents, position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%", ...B } }) }) }), [G, I, B]), wl = W(() => b({ sx: { marginTop: ($) => $.spacing(0.25), marginLeft: ($) => $.spacing(1), marginRight: ($) => $.spacing(1) }, workbook: Z, sheetElement: oe.current, gridStyle: Ue, onFocus: gl, ...y, NamedCollectionEditorProps: { restoreFocus: ($) => oe.current.focus($), ...y?.NamedCollectionEditorProps, commandPopupButtonProps: { commands: Fe, ...y?.NamedCollectionEditorProps?.commandPopupButtonProps } } }, Ke), [b, y, Z, Ue, Fe, G]), Sl = U(($) => {
|
|
3236
3236
|
const { movable: ue, ...Ae } = $, je = { movable: ue, onContextMenuCapture: (Ge) => {
|
|
3237
3237
|
pl(Ge, ue);
|
|
3238
3238
|
}, ...Ae }, Ze = ue.getContent().getType();
|
|
3239
3239
|
let $e = null;
|
|
3240
|
-
if (Ze === "picture") return o(Wl, { loadingPanel: o(
|
|
3240
|
+
if (Ze === "picture") return o(Wl, { loadingPanel: o(jt, { transitionDelay: "100", style: { position: "absolute" }, sx: { border: (Ge) => `solid 1px ${Ge.palette.action.active}` } }), picture: ue.getContent(), description: ue.getDescription() ?? ue?.getName(), ...je });
|
|
3241
3241
|
if (Ze === "chart") {
|
|
3242
3242
|
const Ge = { ...je, chart: ue.getContent() };
|
|
3243
3243
|
return o(jl, { ...Ge });
|
|
@@ -3260,10 +3260,10 @@ const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai
|
|
|
3260
3260
|
}, ...L?.cellRenderProps } }, oe), [Fe, L, Me, Ue, d]), vl = W(() => {
|
|
3261
3261
|
let $ = o(vs, { ref: ll, style: ia, viewport: sr, touchElement: oe.current?.getGridElement()?.stage, onScrollViewport: (ue) => {
|
|
3262
3262
|
oe.current?.getGridElement()?.scrollTo(ue);
|
|
3263
|
-
}, showHorizontalScrollbar:
|
|
3264
|
-
return
|
|
3265
|
-
}, [
|
|
3266
|
-
return H(
|
|
3263
|
+
}, showHorizontalScrollbar: Rt || Pt, showVerticalScrollbar: hr, createHorizontalScrollbar: gr, createVerticalScrollbar: fl, children: yr });
|
|
3264
|
+
return Mt || gn === 0 || ($ = H(se, { children: [$, fn] })), z ? z($) : $;
|
|
3265
|
+
}, [Rt, Pt, gr, hr, sr, Mt, yr, fn, V, z, et]), kl = W(() => o(Ct, { arrow: !0, disableInteractive: !0, open: mn, title: o(Pe, { variant: "subtitle2", component: "div", children: dr }), placement: ur, slotProps: { transition: { timeout: { exit: 0 } }, popper: { popperRef: so, sx: { "& .MuiTooltip-tooltip": { padding: "2px 6px", "& .MuiTooltip-arrow": { display: mn ? "visible" : "none" } } }, anchorEl: { getBoundingClientRect: () => new DOMRect(co.x, co.y, co.width, co.height) }, modifiers: [{ name: "offset", options: { offset: [0, 0] } }] } }, children: o(F, {}) }), [mn, dr, ur, co, so]), Cl = W(() => ({ boxSizing: "border-box", background: ($) => $.palette.mode !== "dark" ? Ue.header.fill : $.palette.background.paper, "& *": { ...us(V), fontWeight: 400 }, "&.Mui-focusVisible": {}, "& .viewport-overlay": { borderRight: `solid ${Gt} 1px` }, ...u }), [u, Ue]), Tl = W(() => o(F, { sx: { marginBottom: ($) => $.spacing(0.75) } }), []), El = W(() => ({ flex: "1 1 100%", width: "100%", display: "flex", flexDirection: "column", opacity: G ? void 0 : 0, "--sxl-app-color-high-contrast": V.palette.primary.main, "--sxl-app-color-primary": V.palette.primary.main, "--sxl-app-color-primary-dark": V.palette.primary.dark, "--sxl-app-color-primary-light": V.palette.primary.light, "--sxl-app-color-info": V.palette.info.main, "--sxl-app-color-info-dark": V.palette.info.dark, "--sxl-app-color-info-light": V.palette.info.light, "--sxl-app-color-secondary": V.palette.secondary.main, "--sxl-app-color-secondary-dark": V.palette.secondary.dark, "--sxl-app-color-secondary-light": V.palette.secondary.light, "--sxl-app-color-success": V.palette.success.main, "--sxl-app-color-success-dark": V.palette.success.dark, "--sxl-app-color-success-light": V.palette.success.light, "--sxl-app-color-warning": V.palette.warning.main, "--sxl-app-color-warning-dark": V.palette.warning.dark, "--sxl-app-color-warning-light": V.palette.warning.light, "--sxl-app-color-error": V.palette.error.main, "--sxl-app-color-error-dark": V.palette.error.dark, "--sxl-app-color-error-light": V.palette.error.light, "--sxl-app-color-text": V.palette.text.primary, "--sxl-app-color-text-secondary": V.palette.text.secondary, "--sxl-app-color-text-disabled": V.palette.text.disabled, "--sxl-app-color-background": V.palette.background.paper, "--sxl-app-color-button-surface": V.palette.grey[600], "--sxl-app-color-shadow": V.palette.action.focus, "--sxl-app-color-grey": V.palette.grey[500], "--sxl-app-filter-dark-invert": Ue.body.darkMode && K ? "hue-rotate(180deg) invert(1) brightness(95%)" : "none", "--sxl-app-image-background": Ue.body.darkMode ? `linear-gradient(${xe("#fff", Be(5))}, ${xe("#fff", Be(5))})` : void 0 }), [Ue, V, G]), Dl = W(() => Ce(Va), []);
|
|
3266
|
+
return H(ro, { className: Ce("sheetxl-workbook", jc, { "Mui-focusVisible": Oe }, Wc, s), sx: Cl, style: i, square: !1, ...ee, ref: Ee, onFocus: ($) => {
|
|
3267
3267
|
Se(!0), ml(), g?.($);
|
|
3268
3268
|
}, onBlur: ($) => {
|
|
3269
3269
|
Se(!1), x?.($);
|
|
@@ -3278,35 +3278,35 @@ const Uc = (n) => o(Pi, { ...n }), Gc = (n) => o(Di, { ...n }), qc = (n) => o(ai
|
|
|
3278
3278
|
}));
|
|
3279
3279
|
Ri.displayName = "WorkbookElement";
|
|
3280
3280
|
const ed = (n = !1, a = !1) => a ? null : { "& input:not(:focus):not(:hover)": { color: (t) => t.palette.text.secondary }, backgroundColor: (t) => xe(t.palette.background.paper, 0.6), borderRadius: (t) => `${t.shape.borderRadius}px`, border: (t) => `solid ${n ? t.palette.divider : "transparent"} 1px`, "&.Mui-disabled": { border: (t) => `solid ${n ? t.palette.divider : "transparent"} 1px` }, "&:focus-within:not([disabled])": { backgroundColor: (t) => t.palette.background.paper }, "&:hover:not([disabled])": { border: (t) => `solid ${n ? t.palette.text?.primary : t.palette.divider} 1px`, backgroundColor: null }, "&.Mui-focusVisible": { outline: (t) => `solid ${t.palette.primary.main} 1px !important`, border: (t) => `1px solid ${t.palette?.primary?.main} !important` } }, Mi = q(X((n, a) => {
|
|
3281
|
-
const { sx: t, workbook: e, title: r = "", placeHolder: l = "Untitled", onTitleChange: c, readOnly: u = !1, hidden: i, ...s } = n, [g, x] = _(!1), [m, d] = _(!1), [p, f] = _(r ?? ""), [y, b] = _(""), [h, { width: w }] =
|
|
3281
|
+
const { sx: t, workbook: e, title: r = "", placeHolder: l = "Untitled", onTitleChange: c, readOnly: u = !1, hidden: i, ...s } = n, [g, x] = _(!1), [m, d] = _(!1), [p, f] = _(r ?? ""), [y, b] = _(""), [h, { width: w }] = Ht(), [v, { width: S }] = Ht(), [C, D] = _(!1), E = fe(null), P = fe(null), R = Et(a, () => ({ requestWorkbookTitle: (k = null, T) => {
|
|
3282
3282
|
P.current = { onAccept: k, requestReason: T?.requestReason }, T?.selectAll && E.current?.select(), E.current?.focus(T);
|
|
3283
3283
|
}, focus: (k) => {
|
|
3284
3284
|
E.current?.focus(k);
|
|
3285
3285
|
} }), []);
|
|
3286
|
-
return
|
|
3286
|
+
return kt(() => {
|
|
3287
3287
|
D(r !== p), b(r), f(r);
|
|
3288
3288
|
}, [r]), de(() => {
|
|
3289
|
-
C && w !== 0 &&
|
|
3289
|
+
C && w !== 0 && oo.debounce(() => {
|
|
3290
3290
|
D(!1);
|
|
3291
3291
|
}, 300)();
|
|
3292
3292
|
}, [C, w]), de(() => {
|
|
3293
|
-
d(p && !
|
|
3294
|
-
}, [p]), i ? null : o(F, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: C ? "0" : "1", transition: C ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref:
|
|
3293
|
+
d(p && !eo.isValidWindowsFilename(p));
|
|
3294
|
+
}, [p]), i ? null : o(F, { sx: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", opacity: C ? "0" : "1", transition: C ? void 0 : "opacity .25s ease-in", "& .tooltip-wrapper": { maxWidth: "100%" } }, ref: Vt([R, v, a]), ...s, children: o(rt, { label: P.current?.requestReason ?? "Workbook Name", children: H(F, { className: Ce({ "Mui-focusVisible": g }), sx: { visibility: w === 0 ? "hidden" : "visible", display: "block", maxWidth: "100%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", paddingLeft: "12px", paddingRight: "12px", marginLeft: "2px", marginRight: "2px", paddingTop: "2px", paddingBottom: "1px", ...ed(!0, u), ...t }, children: [u ? o(Pe, { variant: "subtitle1", component: "div", sx: { whiteSpace: "nowrap", fontStyle: p !== y ? "italic" : void 0, userSelect: "none", textOverflow: "ellipsis", lineHeight: "1.4375em", border: "transparent 1px solid", color: (k) => m ? k.palette.error.dark : void 0 }, children: r ?? l }) : o(Kn, { sx: { width: `${Math.min(w + 3, Math.max(S, R.current?.getBoundingClientRect()?.width))}px`, overflow: "hidden", whiteSpace: "nowrap", fontWeight: "600", maxWidth: "100%", border: "none", padding: "0px", margin: "0px", color: (k) => m ? k.palette.error.dark : void 0, fontStyle: p !== y ? "italic" : void 0, "& input": { paddingTop: "0px", paddingBottom: "0px", textOverflow: "ellipsis" } }, disableUnderline: !0, fullWidth: !1, multiline: !1, readOnly: u, spellCheck: !1, placeholder: l, onFocus: (k) => {
|
|
3295
3295
|
x(!0), k.target?.select();
|
|
3296
3296
|
}, inputProps: { name: "input-workbook-title", autoComplete: "off", ref: E }, onBlur: () => {
|
|
3297
3297
|
x(!1), m ? f(y) : (p !== y && (c?.(p), p && P.current?.onAccept?.(p, "blur")), P.current = null);
|
|
3298
3298
|
}, onChange: (k) => {
|
|
3299
|
-
if (k.target.value.length >
|
|
3299
|
+
if (k.target.value.length > eo.MAX_WORKBOOK_NAME_SIZE) return k.stopPropagation(), void k.preventDefault();
|
|
3300
3300
|
f(k.target.value);
|
|
3301
3301
|
}, onKeyDown: (k) => {
|
|
3302
|
-
(
|
|
3302
|
+
(eo.WINDOW_FILENAME_CHAR_RESERVED_REGEX.test(k.key) || k.target?.value.length > eo.MAX_WORKBOOK_NAME_SIZE) && k.preventDefault(), k.which === me.Enter || k.which === me.Tab ? (m ? f(y) : (c?.(p), p && (P.current?.onAccept?.(p, "keydown"), P.current = null)), k.stopPropagation(), k.preventDefault(), e?.focus()) : k.which === me.Escape && (p === y ? e?.focus() : (f(y), setTimeout(() => {
|
|
3303
3303
|
k.target?.select();
|
|
3304
3304
|
}, 0)), P.current = null, k.stopPropagation(), k.preventDefault());
|
|
3305
3305
|
}, value: p }), o(F, { ref: h, sx: { position: "absolute", visibility: "hidden", top: "-9999px", fontWeight: "600 !important", whiteSpace: "pre", fontStyle: p !== y ? "italic" : void 0, fontFamily: (k) => k.typography.fontFamily, letterSpacing: "0.00938em" }, children: p || l })] }) }) });
|
|
3306
3306
|
}));
|
|
3307
3307
|
Mi.displayName = "WorkbookTitle";
|
|
3308
3308
|
const td = q(X((n, a) => {
|
|
3309
|
-
const { title: t, commands: e, className: r, ...l } = n, c = cn(), [u, i] = _(!1), [s, g] = _(!1), x = fe(null), [m, d] = on((E) => E + 1, 0), [p, { width: f }] =
|
|
3309
|
+
const { title: t, commands: e, className: r, ...l } = n, c = cn(), [u, i] = _(!1), [s, g] = _(!1), x = fe(null), [m, d] = on((E) => E + 1, 0), [p, { width: f }] = Ht(), y = Ie(e, ["editTable"])[0].context(), b = y.table(), [h, w] = _(() => b ? y.getNames().getRanges(b.getRange()) : null), v = W(() => b?.getName() ?? "", [b]);
|
|
3310
3310
|
We(y.table(), { onAnchorCoordsChange(E) {
|
|
3311
3311
|
w(y.getNames().getRanges(E.getRange()));
|
|
3312
3312
|
}, onProtectedChange(E) {
|
|
@@ -3318,9 +3318,9 @@ const td = q(X((n, a) => {
|
|
|
3318
3318
|
y?.table().resize(E.at(0));
|
|
3319
3319
|
}, [y]);
|
|
3320
3320
|
let D = null;
|
|
3321
|
-
return y.table() || (D = o(Pe, { component: "div", style: { top: "0", left: "0", width: "100%", height: "100%", display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center" }, children: "No table selected" })), o(
|
|
3321
|
+
return y.table() || (D = o(Pe, { component: "div", style: { top: "0", left: "0", width: "100%", height: "100%", display: "flex", alignItems: "center", justifyItems: "center", justifyContent: "center" }, children: "No table selected" })), o(ro, { square: !0, onFocus: () => i(!0), onBlur: (E) => {
|
|
3322
3322
|
x?.current?.contains(E.relatedTarget) || i(!1);
|
|
3323
|
-
}, ref:
|
|
3323
|
+
}, ref: Vt([x, p, a]), sx: { display: "flex", flexDirection: "column", flex: "1 1 auto", width: "100%", height: "100%", overflow: "auto", paddingLeft: (E) => E.spacing(1.5), paddingRight: (E) => E.spacing(1.5), paddingTop: (E) => E.spacing(1.5), paddingBottom: (E) => E.spacing(1.5), boxSizing: "border-box" }, className: Ce("sxl-table-details-panel", r, { "sxl-has-focus": u }), ...l, children: D || H(F, { sx: { display: "flex", flex: "1 1 auto", flexDirection: "column", transition: "opacity 60ms", opacity: y.table() ? 1 : 0 }, children: [o(F, { sx: { containerType: "inline-size", display: "flex", flexDirection: "column", maxWidth: "100%", boxSizing: "border-box", paddingTop: (E) => E.spacing(2), paddingLeft: (E) => E.spacing(2), paddingRight: (E) => E.spacing(2) }, children: H(F, { className: gc, children: [o(Ka, { formName: "name", defaultInput: v, value: b?.getName() ?? "No table", onChangeInput: S, onValidate: (E) => {
|
|
3324
3324
|
b && b.getName().toLowerCase() === E.toLowerCase() || y?.getNames().validateName(E);
|
|
3325
3325
|
}, disabled: b?.isProtected() ?? !0, onFocus: (E) => {
|
|
3326
3326
|
s || E.target?.select(), g(!0);
|
|
@@ -3353,20 +3353,20 @@ const td = q(X((n, a) => {
|
|
|
3353
3353
|
}, nd = () => {
|
|
3354
3354
|
Jn.register("plugin-table", { icons: {} }), tn.registerTaskPane({ key: "tableDetails", getTitle: () => "Table Details", getIcon: () => "Table", renderTaskPane: od }, !0);
|
|
3355
3355
|
}, rd = q((n) => {
|
|
3356
|
-
const { table: a, tableStyle: t, selectedTableStyleName: e, onSelectTableStyleName: r, styles: l, hasContextMenu: c = !0, bodyStyle: u, parentFloat: i, commands: s, disabled: g, commandHook: x, useCanvasPreview: m = !0, canvas: d, ...p } = n, f =
|
|
3356
|
+
const { table: a, tableStyle: t, selectedTableStyleName: e, onSelectTableStyleName: r, styles: l, hasContextMenu: c = !0, bodyStyle: u, parentFloat: i, commands: s, disabled: g, commandHook: x, useCanvasPreview: m = !0, canvas: d, ...p } = n, f = U((w) => {
|
|
3357
3357
|
const v = { variant: ie.Menuitem, commandHook: x, context: "table" }, S = H(se, { children: [o(O, { ...v, command: s.getCommand("formatTableStyleClearCellStyles"), commandState: t, disabled: g }), o(O, { ...v, style: { fontWeight: 550 }, command: s.getCommand("formatTableStyle"), commandState: { name: t.getName() }, disabled: g }), o(Q, { orientation: "horizontal" }), o(O, { ...v, command: s.getCommand("setDefaultTableStyle"), commandState: t.getName(), disabled: g }), o(Q, { orientation: "horizontal" }), o(O, { ...v, command: s.getCommand("deleteTableStyle"), commandState: t?.getName(), disabled: g || !t || t.isBuiltIn() })] });
|
|
3358
3358
|
return ye({ ...w, children: o(F, { sx: { display: "flex", flexDirection: "column", flex: "1 1 100%", overflow: "hidden" }, children: o(F, { sx: { overflow: "auto", flex: "1 1 100%" }, children: S }) }) });
|
|
3359
3359
|
}, [s]), y = t?.getName() === e, b = W(() => {
|
|
3360
3360
|
const w = { table: a, tableStyle: t, styles: l, bodyStyle: u };
|
|
3361
3361
|
return m ? o(cc, { canvas: d, ...w }) : o(_a, { ...w });
|
|
3362
3362
|
}, [a, t, l, u]);
|
|
3363
|
-
let h = o(
|
|
3363
|
+
let h = o(xt, { sx: { borderRadius: "2px", padding: "2px", margin: "0px 0px", display: "flex", border: (w) => `solid ${y ? w.palette.primary.dark : "transparent"} 1px` }, tooltipProps: { label: t.getName() ?? "None", placement: "bottom-start" }, disabled: g, icon: null, onClick: () => {
|
|
3364
3364
|
r?.(t?.getName());
|
|
3365
3365
|
}, ...p, children: b }, t.getName());
|
|
3366
3366
|
return c && (h = o(Ra, { label: a.getStyleOptions().name, parentFloat: i, createPopupPanel: f, children: h })), h;
|
|
3367
3367
|
}), Ni = q(X((n, a) => {
|
|
3368
3368
|
const { commands: t, command: e, commandHook: r, selectedTable: l, onSelectTableStyleName: c, disabled: u = !1, bodyStyle: i, disabledQuickKey: s = !1, usePreviewIcon: g = !1, ...x } = n;
|
|
3369
|
-
|
|
3369
|
+
$t(e);
|
|
3370
3370
|
const m = e?.context(), d = m?.styles, p = l ?? m?.table?.();
|
|
3371
3371
|
let f = "insertTable";
|
|
3372
3372
|
p && (f = "editTable");
|
|
@@ -3379,7 +3379,7 @@ const td = q(X((n, a) => {
|
|
|
3379
3379
|
}, [b]);
|
|
3380
3380
|
const v = i ?? m?.bodyStyle(), S = Y((R) => {
|
|
3381
3381
|
c?.(R), e?.execute({ name: R }, r);
|
|
3382
|
-
}, [e, c, r]), C = fe(null), D =
|
|
3382
|
+
}, [e, c, r]), C = fe(null), D = U((R, k) => {
|
|
3383
3383
|
const T = { onSelectTableStyleName: S, styles: d(), parentFloat: R.floatReference };
|
|
3384
3384
|
C.current || (C.current = document.createElement("canvas"));
|
|
3385
3385
|
const N = (j) => {
|
|
@@ -3391,7 +3391,7 @@ const td = q(X((n, a) => {
|
|
|
3391
3391
|
const Z = N(K[A]);
|
|
3392
3392
|
Z && V.push(Z);
|
|
3393
3393
|
}
|
|
3394
|
-
return V.length === 0 ? null : H(F, { children: [ee ? o(Q, { orientation: "horizontal" }) : null, o(
|
|
3394
|
+
return V.length === 0 ? null : H(F, { children: [ee ? o(Q, { orientation: "horizontal" }) : null, o(ao, { children: j }, j + "-header"), o(F, { sx: { display: "flex", gap: "2px", marginBottom: "6px", flexWrap: "wrap", width: "481px", maxWidth: "100%" }, children: V }, j + "-presets")] }, j);
|
|
3395
3395
|
}, B = [], L = d().getCustomTableStyles(), M = [];
|
|
3396
3396
|
if (L.length > 0) {
|
|
3397
3397
|
for (let j = 0; j < L.length; j++) L[j].isShownInTableStyles() && M.push(L[j].getName());
|
|
@@ -3413,18 +3413,18 @@ const td = q(X((n, a) => {
|
|
|
3413
3413
|
}, [d, d?.().getTheme(), v, h]), E = u || !e || e.disabled(), P = W(() => {
|
|
3414
3414
|
if (!m || !g) return e?.icon();
|
|
3415
3415
|
}, [h, v, E, e]);
|
|
3416
|
-
return o(Te, { ref: a, quickCommand: s ? void 0 : f, createPopupPanel: D, commands: t, label: e?.label(), commandState: p, commandHook: r, selected: p !== null, createTooltip: ({ children: R }, k) => o(
|
|
3416
|
+
return o(Te, { ref: a, quickCommand: s ? void 0 : f, createPopupPanel: D, commands: t, label: e?.label(), commandState: p, commandHook: r, selected: p !== null, createTooltip: ({ children: R }, k) => o(rt, { label: e?.label(), description: e?.description(), disabled: k, children: R }), disabled: E, icon: P, ...x });
|
|
3417
3417
|
})), ad = q(X((n, a) => {
|
|
3418
3418
|
const { command: t, commandHook: e, selectedTheme: r, onSelectTheme: l, disabled: c = !1, darkMode: u, label: i, icon: s, variant: g, ...x } = n;
|
|
3419
|
-
|
|
3419
|
+
$t(t);
|
|
3420
3420
|
const m = t?.context()?.themes, d = r || t?.context()?.theme, p = u ?? t?.context()?.darkMode, f = c || t?.disabled(), y = Y((h) => {
|
|
3421
3421
|
l?.(h), t?.execute(h, e);
|
|
3422
|
-
}, [l, e]), b =
|
|
3422
|
+
}, [l, e]), b = U((h, w) => {
|
|
3423
3423
|
const { children: v, title: S, ...C } = h;
|
|
3424
3424
|
let D = h.children;
|
|
3425
3425
|
return (f || w) && (D = o("div", { children: D })), o(Zn, { command: t, placement: g === ie.Toolbar ? "bottom-start" : "right-start", disabled: f || w, ...C, children: D });
|
|
3426
3426
|
}, [t, f]);
|
|
3427
|
-
return o(yc, { ref: a, themes: m, selectedTheme: d, onSelectTheme: y, variant: g === ie.Menuitem ?
|
|
3427
|
+
return o(yc, { ref: a, themes: m, selectedTheme: d, onSelectTheme: y, variant: g === ie.Menuitem ? nt.Menuitem : nt.Toolbar, createTooltip: b, disabled: f, darkMode: p, ...x });
|
|
3428
3428
|
})), id = q(X((n, a) => {
|
|
3429
3429
|
const { commands: t, commandHook: e, scope: r, disabled: l = !1, ...c } = n, u = Ie(t, ["themeMode"])[0], i = Y((d, p) => {
|
|
3430
3430
|
const f = { variant: ie.Menuitem, commandHook: e, scope: "appearance", disabled: l }, y = H(se, { children: [o(O, { ...f, command: u }), o(O, { ...f, command: p.getCommand("defaultThemeMode") }), o(Q, { orientation: "horizontal" }), o(O, { ...f, command: p.getCommand("enableDarkGrid") }), o(O, { ...f, command: p.getCommand("enableDarkImages") })] });
|
|
@@ -3434,7 +3434,7 @@ const td = q(X((n, a) => {
|
|
|
3434
3434
|
u?.execute(x ? "light" : "dark", e);
|
|
3435
3435
|
}, selected: m, ...c });
|
|
3436
3436
|
})), ld = q(X((n, a) => {
|
|
3437
|
-
const { commands: t, commandHook: e, scope: r, disabled: l = !1, sx: c, ...u } = n, i =
|
|
3437
|
+
const { commands: t, commandHook: e, scope: r, disabled: l = !1, sx: c, ...u } = n, i = U((s, g) => {
|
|
3438
3438
|
const x = { variant: ie.Menuitem, scope: "help", commandHook: { ...e, beforeExecute: (d, p) => e?.beforeExecute?.(d, p) !== !1 && s.floatReference.closeAll() }, disabled: l }, m = H(se, { children: [o(O, { ...x, command: g.getCommand("showKeyboardShortcuts") }), o(Q, { orientation: "horizontal" }), o(O, { ...x, command: g.getCommand("gotoUrlGithub") }), o(O, { ...x, command: g.getCommand("gotoUrlDiscord") }), o(O, { ...x, command: g.getCommand("gotoUrlDocumentation") }), o(O, { ...x, command: g.getCommand("gotoUrlIssue") })] });
|
|
3439
3439
|
return ye({ ...s, children: m });
|
|
3440
3440
|
}, [l, e]);
|
|
@@ -3444,7 +3444,7 @@ const td = q(X((n, a) => {
|
|
|
3444
3444
|
let p = null, f = 0;
|
|
3445
3445
|
for (let y = 0; y < g.length; y++) g[y] && !g[y]?.disabled() && (c && i === ie.Menuitem && (p = f === 0 ? g[y] : null), f++);
|
|
3446
3446
|
return { singleMenuCommand: p, allDisabled: f === 0 };
|
|
3447
|
-
}, [g]), d =
|
|
3447
|
+
}, [g]), d = U((p, f) => {
|
|
3448
3448
|
const y = { variant: ie.Menuitem, commandHook: e, scope: "insertImage", disabled: l }, b = H(se, { children: [o(O, { ...y, command: f.getCommand("insertImageFromFile") }), o(O, { ...y, command: f.getCommand("insertImageFromURL") })] });
|
|
3449
3449
|
return ye({ ...p, children: b });
|
|
3450
3450
|
}, [l, e, r]);
|
|
@@ -3460,7 +3460,7 @@ const Pn = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinanc
|
|
|
3460
3460
|
m(d.getSummary());
|
|
3461
3461
|
});
|
|
3462
3462
|
});
|
|
3463
|
-
return o(
|
|
3463
|
+
return o(dt, { sx: { maxWidth: "360px", display: "flex", "*": { lineHeight: "1.2" }, ...s }, disabled: r, tooltipProps: { label: x, maxWidth: 1e3 }, onMouseDown: (m) => {
|
|
3464
3464
|
m.button === 0 && m.preventDefault();
|
|
3465
3465
|
}, onMouseUp: (m) => {
|
|
3466
3466
|
m.button === 0 && c(t);
|
|
@@ -3468,7 +3468,7 @@ const Pn = new Map([{ key: "financial", label: "Financial", icon: "FormulaFinanc
|
|
|
3468
3468
|
m.keyCode === me.Enter || (m.keyCode, me.Space);
|
|
3469
3469
|
}, ...g, children: o(F, { sx: { display: "flex", flex: "1 1 100%", flexDirection: "column", overflow: "hidden" }, children: o(Pe, { component: "div", children: t.getName() }) }) });
|
|
3470
3470
|
}), cd = q(X((n, a) => {
|
|
3471
|
-
const { category: t, commands: e, commandHook: r, scope: l, sx: c, disabled: u = !1, parentFloat: i, ...s } = n, g = Ie(e, ["insertFunction"])[0], x =
|
|
3471
|
+
const { category: t, commands: e, commandHook: r, scope: l, sx: c, disabled: u = !1, parentFloat: i, ...s } = n, g = Ie(e, ["insertFunction"])[0], x = U((d, p) => {
|
|
3472
3472
|
const f = Pn.get(t);
|
|
3473
3473
|
if (!f) return console.warn("invalidate category", t), null;
|
|
3474
3474
|
const y = { commandHook: r, ...d }, b = o(dd, { category: f.label, ...y, commands: p });
|
|
@@ -3499,7 +3499,7 @@ const dd = q(X((n, a) => {
|
|
|
3499
3499
|
l && Eo.setLicenseKey(l);
|
|
3500
3500
|
const i = W(() => {
|
|
3501
3501
|
const g = { transitionDelay: "160ms", transparentBackground: !0 };
|
|
3502
|
-
return o(F, { sx: t, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...e }, children: c?.(g) ?? o(
|
|
3502
|
+
return o(F, { sx: t, style: { width: "100%", height: "100%", position: "absolute", display: "flex", alignItems: "center", justifyContent: "center", ...e }, children: c?.(g) ?? o(jt, { ...g }) });
|
|
3503
3503
|
}, [t, e, c]), s = W(() => re.lazy(async () => await Promise.resolve().then(() => Ud)), []);
|
|
3504
3504
|
return o(se, { children: o(va, { fallback: i, children: o(s, { ...u, className: r, renderLoadingPanel: c, sx: t, style: e, ref: a }) }) });
|
|
3505
3505
|
}));
|
|
@@ -3510,7 +3510,7 @@ function Oi(n) {
|
|
|
3510
3510
|
else for (a in n) n[a] && (e && (e += " "), e += a);
|
|
3511
3511
|
return e;
|
|
3512
3512
|
}
|
|
3513
|
-
function
|
|
3513
|
+
function _t() {
|
|
3514
3514
|
for (var n, a, t = 0, e = ""; t < arguments.length; ) (n = arguments[t++]) && (a = Oi(n)) && (e && (e += " "), e += a);
|
|
3515
3515
|
return e;
|
|
3516
3516
|
}
|
|
@@ -3521,14 +3521,14 @@ let ud = { data: "" }, md = (n) => {
|
|
|
3521
3521
|
return a.nonce = window.__nonce__, a.parentNode || (n || document.head).appendChild(a), a.firstChild;
|
|
3522
3522
|
}
|
|
3523
3523
|
return n || ud;
|
|
3524
|
-
}, hd = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, gd = /\/\*[^]*?\*\/| +/g, la = /\n+/g,
|
|
3524
|
+
}, hd = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, gd = /\/\*[^]*?\*\/| +/g, la = /\n+/g, Lt = (n, a) => {
|
|
3525
3525
|
let t = "", e = "", r = "";
|
|
3526
3526
|
for (let l in n) {
|
|
3527
3527
|
let c = n[l];
|
|
3528
|
-
l[0] == "@" ? l[1] == "i" ? t = l + " " + c + ";" : e += l[1] == "f" ?
|
|
3528
|
+
l[0] == "@" ? l[1] == "i" ? t = l + " " + c + ";" : e += l[1] == "f" ? Lt(c, l) : l + "{" + Lt(c, l[1] == "k" ? "" : a) + "}" : typeof c == "object" ? e += Lt(c, a ? a.replace(/([^,])+/g, (u) => l.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (i) => /&/.test(i) ? i.replace(/&/g, u) : u ? u + " " + i : i)) : l) : c != null && (l = /^--/.test(l) ? l : l.replace(/[A-Z]/g, "-$&").toLowerCase(), r += Lt.p ? Lt.p(l, c) : l + ":" + c + ";");
|
|
3529
3529
|
}
|
|
3530
3530
|
return t + (a && r ? a + "{" + r + "}" : r) + e;
|
|
3531
|
-
},
|
|
3531
|
+
}, ut = {}, Ai = (n) => {
|
|
3532
3532
|
if (typeof n == "object") {
|
|
3533
3533
|
let a = "";
|
|
3534
3534
|
for (let t in n) a += t + Ai(n[t]);
|
|
@@ -3536,23 +3536,23 @@ let ud = { data: "" }, md = (n) => {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
return n;
|
|
3538
3538
|
}, fd = (n, a, t, e, r) => {
|
|
3539
|
-
let l = Ai(n), c =
|
|
3539
|
+
let l = Ai(n), c = ut[l] || (ut[l] = ((i) => {
|
|
3540
3540
|
let s = 0, g = 11;
|
|
3541
3541
|
for (; s < i.length; ) g = 101 * g + i.charCodeAt(s++) >>> 0;
|
|
3542
3542
|
return "go" + g;
|
|
3543
3543
|
})(l));
|
|
3544
|
-
if (!
|
|
3544
|
+
if (!ut[c]) {
|
|
3545
3545
|
let i = l !== n ? n : ((s) => {
|
|
3546
3546
|
let g, x, m = [{}];
|
|
3547
3547
|
for (; g = hd.exec(s.replace(gd, "")); ) g[4] ? m.shift() : g[3] ? (x = g[3].replace(la, " ").trim(), m.unshift(m[0][x] = m[0][x] || {})) : m[0][g[1]] = g[2].replace(la, " ").trim();
|
|
3548
3548
|
return m[0];
|
|
3549
3549
|
})(n);
|
|
3550
|
-
|
|
3550
|
+
ut[c] = Lt(r ? { ["@keyframes " + c]: i } : i, t ? "" : "." + c);
|
|
3551
3551
|
}
|
|
3552
|
-
let u = t &&
|
|
3553
|
-
return t && (
|
|
3552
|
+
let u = t && ut.g ? ut.g : null;
|
|
3553
|
+
return t && (ut.g = ut[c]), ((i, s, g, x) => {
|
|
3554
3554
|
x ? s.data = s.data.replace(x, i) : s.data.indexOf(i) === -1 && (s.data = g ? i + s.data : s.data + i);
|
|
3555
|
-
})(
|
|
3555
|
+
})(ut[c], a, e, u), c;
|
|
3556
3556
|
};
|
|
3557
3557
|
function jn(n) {
|
|
3558
3558
|
let a = this || {}, t = n.call ? n(a.p) : n;
|
|
@@ -3560,7 +3560,7 @@ function jn(n) {
|
|
|
3560
3560
|
let s = r[i];
|
|
3561
3561
|
if (s && s.call) {
|
|
3562
3562
|
let g = s(l), x = g && g.props && g.props.className || /^go/.test(g) && g;
|
|
3563
|
-
s = x ? "." + x : g && typeof g == "object" ? g.props ? "" :
|
|
3563
|
+
s = x ? "." + x : g && typeof g == "object" ? g.props ? "" : Lt(g, "") : g === !1 ? "" : g;
|
|
3564
3564
|
}
|
|
3565
3565
|
return c + u + (s ?? "");
|
|
3566
3566
|
}, ""))(t, [].slice.call(arguments, 1), a.p) : t.reduce((e, r) => Object.assign(e, r && r.call ? r(a.p) : r), {}) : t, md(a.target), a.g, a.o, a.k);
|
|
@@ -3604,15 +3604,15 @@ var ca = function() {
|
|
|
3604
3604
|
return "" + da(n.vertical) + da(n.horizontal);
|
|
3605
3605
|
}, _o = function(n) {
|
|
3606
3606
|
return !!n || n === 0;
|
|
3607
|
-
}, Uo = "unmounted",
|
|
3607
|
+
}, Uo = "unmounted", Kt = "exited", Xt = "entering", vo = "entered", pa = "exiting", ar = (function(n) {
|
|
3608
3608
|
function a(e) {
|
|
3609
3609
|
var r;
|
|
3610
3610
|
r = n.call(this, e) || this;
|
|
3611
3611
|
var l, c = e.appear;
|
|
3612
|
-
return r.appearStatus = null, e.in ? c ? (l =
|
|
3612
|
+
return r.appearStatus = null, e.in ? c ? (l = Kt, r.appearStatus = Xt) : l = vo : l = e.unmountOnExit || e.mountOnEnter ? Uo : Kt, r.state = { status: l }, r.nextCallback = null, r;
|
|
3613
3613
|
}
|
|
3614
3614
|
Li(a, n), a.getDerivedStateFromProps = function(e, r) {
|
|
3615
|
-
return e.in && r.status === Uo ? { status:
|
|
3615
|
+
return e.in && r.status === Uo ? { status: Kt } : null;
|
|
3616
3616
|
};
|
|
3617
3617
|
var t = a.prototype;
|
|
3618
3618
|
return t.componentDidMount = function() {
|
|
@@ -3621,7 +3621,7 @@ var ca = function() {
|
|
|
3621
3621
|
var r = null;
|
|
3622
3622
|
if (e !== this.props) {
|
|
3623
3623
|
var l = this.state.status;
|
|
3624
|
-
this.props.in ? l !==
|
|
3624
|
+
this.props.in ? l !== Xt && l !== vo && (r = Xt) : l !== Xt && l !== vo || (r = pa);
|
|
3625
3625
|
}
|
|
3626
3626
|
this.updateStatus(!1, r);
|
|
3627
3627
|
}, t.componentWillUnmount = function() {
|
|
@@ -3630,10 +3630,10 @@ var ca = function() {
|
|
|
3630
3630
|
var e = this.props.timeout, r = e, l = e;
|
|
3631
3631
|
return e != null && typeof e != "number" && typeof e != "string" && (l = e.exit, r = e.enter), { exit: l, enter: r };
|
|
3632
3632
|
}, t.updateStatus = function(e, r) {
|
|
3633
|
-
e === void 0 && (e = !1), r !== null ? (this.cancelNextCallback(), r ===
|
|
3633
|
+
e === void 0 && (e = !1), r !== null ? (this.cancelNextCallback(), r === Xt ? this.performEnter(e) : this.performExit()) : this.props.unmountOnExit && this.state.status === Kt && this.setState({ status: Uo });
|
|
3634
3634
|
}, t.performEnter = function(e) {
|
|
3635
3635
|
var r = this, l = this.props.enter, c = e, u = this.getTimeouts();
|
|
3636
|
-
e || l ? (this.props.onEnter && this.props.onEnter(this.node, c), this.safeSetState({ status:
|
|
3636
|
+
e || l ? (this.props.onEnter && this.props.onEnter(this.node, c), this.safeSetState({ status: Xt }, function() {
|
|
3637
3637
|
r.props.onEntering && r.props.onEntering(r.node, c), r.onTransitionEnd(u.enter, function() {
|
|
3638
3638
|
r.safeSetState({ status: vo }, function() {
|
|
3639
3639
|
r.props.onEntered && r.props.onEntered(r.node, c);
|
|
@@ -3646,11 +3646,11 @@ var ca = function() {
|
|
|
3646
3646
|
var e = this, r = this.props.exit, l = this.getTimeouts();
|
|
3647
3647
|
r ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: pa }, function() {
|
|
3648
3648
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(l.exit, function() {
|
|
3649
|
-
e.safeSetState({ status:
|
|
3649
|
+
e.safeSetState({ status: Kt }, function() {
|
|
3650
3650
|
e.props.onExited && e.props.onExited(e.node);
|
|
3651
3651
|
});
|
|
3652
3652
|
});
|
|
3653
|
-
})) : this.safeSetState({ status:
|
|
3653
|
+
})) : this.safeSetState({ status: Kt }, function() {
|
|
3654
3654
|
e.props.onExited && e.props.onExited(e.node);
|
|
3655
3655
|
});
|
|
3656
3656
|
}, t.cancelNextCallback = function() {
|
|
@@ -3679,7 +3679,7 @@ var ca = function() {
|
|
|
3679
3679
|
return r;
|
|
3680
3680
|
} }]), a;
|
|
3681
3681
|
})(re.Component);
|
|
3682
|
-
function
|
|
3682
|
+
function Yt() {
|
|
3683
3683
|
}
|
|
3684
3684
|
function ua(n, a) {
|
|
3685
3685
|
typeof n == "function" ? n(a) : n && (n.current = a);
|
|
@@ -3695,13 +3695,13 @@ function en(n) {
|
|
|
3695
3695
|
var a = n.timeout, t = n.style, e = t === void 0 ? {} : t, r = n.mode;
|
|
3696
3696
|
return { duration: typeof a == "object" ? a[r] || 0 : a, easing: e.transitionTimingFunction, delay: e.transitionDelay };
|
|
3697
3697
|
}
|
|
3698
|
-
ar.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter:
|
|
3698
|
+
ar.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, appear: !1, enter: !0, exit: !0, onEnter: Yt, onEntering: Yt, onEntered: Yt, onExit: Yt, onExiting: Yt, onExited: Yt };
|
|
3699
3699
|
var bd = "cubic-bezier(0.4, 0, 0.2, 1)", xd = "cubic-bezier(0.0, 0, 0.2, 1)", yd = "cubic-bezier(0.4, 0, 0.6, 1)", Hi = function(n) {
|
|
3700
3700
|
n.scrollTop = n.scrollTop;
|
|
3701
3701
|
}, ma = function(n) {
|
|
3702
3702
|
return Math.round(n) + "ms";
|
|
3703
3703
|
};
|
|
3704
|
-
function
|
|
3704
|
+
function to(n, a) {
|
|
3705
3705
|
n === void 0 && (n = ["all"]);
|
|
3706
3706
|
var t = a || {}, e = t.duration, r = e === void 0 ? 300 : e, l = t.easing, c = l === void 0 ? bd : l, u = t.delay, i = u === void 0 ? 0 : u;
|
|
3707
3707
|
return (Array.isArray(n) ? n : [n]).map(function(s) {
|
|
@@ -3744,7 +3744,7 @@ function Go(n, a) {
|
|
|
3744
3744
|
}
|
|
3745
3745
|
}
|
|
3746
3746
|
var ji = X(function(n, a) {
|
|
3747
|
-
var t = n.children, e = n.direction, r = e === void 0 ? "down" : e, l = n.in, c = n.style, u = n.timeout, i = u === void 0 ? 0 : u, s = n.onEnter, g = n.onEntered, x = n.onExit, m = n.onExited, d = Bo(n, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), p = fe(null), f = $n(t.ref, p), y = $n(f, a), b =
|
|
3747
|
+
var t = n.children, e = n.direction, r = e === void 0 ? "down" : e, l = n.in, c = n.style, u = n.timeout, i = u === void 0 ? 0 : u, s = n.onEnter, g = n.onEntered, x = n.onExit, m = n.onExited, d = Bo(n, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), p = fe(null), f = $n(t.ref, p), y = $n(f, a), b = U(function() {
|
|
3748
3748
|
p.current && Go(r, p.current);
|
|
3749
3749
|
}, [r]);
|
|
3750
3750
|
return de(function() {
|
|
@@ -3773,10 +3773,10 @@ var ji = X(function(n, a) {
|
|
|
3773
3773
|
Go(r, h), Hi(h), s && s(h, w);
|
|
3774
3774
|
}, onEntered: g, onEntering: function(h) {
|
|
3775
3775
|
var w = c?.transitionTimingFunction || xd, v = en({ timeout: i, mode: "enter", style: De({}, c, { transitionTimingFunction: w }) });
|
|
3776
|
-
h.style.webkitTransition =
|
|
3776
|
+
h.style.webkitTransition = to("-webkit-transform", v), h.style.transition = to("transform", v), h.style.webkitTransform = "none", h.style.transform = "none";
|
|
3777
3777
|
}, onExit: function(h) {
|
|
3778
3778
|
var w = c?.transitionTimingFunction || yd, v = en({ timeout: i, mode: "exit", style: De({}, c, { transitionTimingFunction: w }) });
|
|
3779
|
-
h.style.webkitTransition =
|
|
3779
|
+
h.style.webkitTransition = to("-webkit-transform", v), h.style.transition = to("transform", v), Go(r, h), x && x(h);
|
|
3780
3780
|
}, onExited: function(h) {
|
|
3781
3781
|
h.style.webkitTransition = "", h.style.transition = "", m && m(h);
|
|
3782
3782
|
}, in: l, timeout: i }, d), function(h, w) {
|
|
@@ -3798,18 +3798,18 @@ var un = function(n) {
|
|
|
3798
3798
|
}, kd = function() {
|
|
3799
3799
|
return re.createElement(un, null, re.createElement("path", { d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
3800
3800
|
0 22,12A10,10 0 0,0 12,2Z` }));
|
|
3801
|
-
},
|
|
3801
|
+
}, It = { maxSnack: 3, persist: !1, hideIconVariant: !1, disableWindowBlurListener: !1, variant: "default", autoHideDuration: 5e3, iconVariant: { default: void 0, success: re.createElement(wd, null), warning: re.createElement(Sd, null), error: re.createElement(vd, null), info: re.createElement(kd, null) }, anchorOrigin: { vertical: "bottom", horizontal: "left" }, TransitionComponent: ji, transitionDuration: { enter: 225, exit: 195 } }, Cd = function(n, a) {
|
|
3802
3802
|
return function(t, e) {
|
|
3803
|
-
return e === void 0 && (e = !1), e ? De({},
|
|
3803
|
+
return e === void 0 && (e = !1), e ? De({}, It[t], {}, a[t], {}, n[t]) : t === "autoHideDuration" ? (r = n.autoHideDuration, l = a.autoHideDuration, (c = function(u) {
|
|
3804
3804
|
return typeof u == "number" || u === null;
|
|
3805
|
-
})(r) ? r : c(l) ? l :
|
|
3805
|
+
})(r) ? r : c(l) ? l : It.autoHideDuration) : t === "transitionDuration" ? (function(u, i) {
|
|
3806
3806
|
var s = function(g, x) {
|
|
3807
3807
|
return x.some(function(m) {
|
|
3808
3808
|
return typeof g === m;
|
|
3809
3809
|
});
|
|
3810
3810
|
};
|
|
3811
|
-
return s(u, ["string", "number"]) ? u : s(u, ["object"]) ? De({},
|
|
3812
|
-
})(n.transitionDuration, a.transitionDuration) : n[t] || a[t] ||
|
|
3811
|
+
return s(u, ["string", "number"]) ? u : s(u, ["object"]) ? De({}, It.transitionDuration, {}, s(i, ["object"]) && i, {}, u) : s(i, ["string", "number"]) ? i : s(i, ["object"]) ? De({}, It.transitionDuration, {}, i) : It.transitionDuration;
|
|
3812
|
+
})(n.transitionDuration, a.transitionDuration) : n[t] || a[t] || It[t];
|
|
3813
3813
|
var r, l, c;
|
|
3814
3814
|
};
|
|
3815
3815
|
};
|
|
@@ -3839,7 +3839,7 @@ var Td = "notistack-SnackbarContainer", Ed = "notistack-Snackbar", $i = "notista
|
|
|
3839
3839
|
var g = en({ timeout: 175, mode: "exit" }), x = g.duration, m = g.easing;
|
|
3840
3840
|
s.style.transitionDuration = typeof x == "string" ? x : x + "ms", s.style.height = Mn, s.style.transitionTimingFunction = m || "";
|
|
3841
3841
|
}, nodeRef: c, timeout: 175 }, function(s, g) {
|
|
3842
|
-
return ve("div", Object.assign({ ref: u, className:
|
|
3842
|
+
return ve("div", Object.assign({ ref: u, className: _t(ha.root, s === "entered" && ha.entered), style: De({ pointerEvents: "all", overflow: "hidden", minHeight: Mn, transition: to("height") }, s === "entered" && { overflow: "visible" }, {}, s === "exited" && !e && { visibility: "hidden" }) }, g), ve("div", { ref: l, className: $i, style: { display: "flex", width: "100%" } }, t));
|
|
3843
3843
|
});
|
|
3844
3844
|
});
|
|
3845
3845
|
Vi.displayName = "Collapse";
|
|
@@ -3856,12 +3856,12 @@ function Mo(n, a) {
|
|
|
3856
3856
|
};
|
|
3857
3857
|
}, Md);
|
|
3858
3858
|
}
|
|
3859
|
-
var Nd = typeof window < "u" ?
|
|
3859
|
+
var Nd = typeof window < "u" ? kt : de;
|
|
3860
3860
|
function fa(n) {
|
|
3861
3861
|
var a = fe(n);
|
|
3862
3862
|
return Nd(function() {
|
|
3863
3863
|
a.current = n;
|
|
3864
|
-
}),
|
|
3864
|
+
}), U(function() {
|
|
3865
3865
|
return a.current.apply(void 0, arguments);
|
|
3866
3866
|
}, []);
|
|
3867
3867
|
}
|
|
@@ -3880,14 +3880,14 @@ var Nn, _i = X(function(n, a) {
|
|
|
3880
3880
|
}, [s, r, p]);
|
|
3881
3881
|
var f = function() {
|
|
3882
3882
|
m.current && clearTimeout(m.current);
|
|
3883
|
-
}, y =
|
|
3883
|
+
}, y = U(function() {
|
|
3884
3884
|
r != null && p(0.5 * r);
|
|
3885
3885
|
}, [r, p]);
|
|
3886
3886
|
return de(function() {
|
|
3887
3887
|
if (!c && s) return window.addEventListener("focus", y), window.addEventListener("blur", f), function() {
|
|
3888
3888
|
window.removeEventListener("focus", y), window.removeEventListener("blur", f);
|
|
3889
3889
|
};
|
|
3890
|
-
}, [c, y, s]), ve("div", Object.assign({ ref: a }, x, { className:
|
|
3890
|
+
}, [c, y, s]), ve("div", Object.assign({ ref: a }, x, { className: _t(Ed, e), onMouseEnter: function(b) {
|
|
3891
3891
|
x.onMouseEnter && x.onMouseEnter(b), f();
|
|
3892
3892
|
}, onMouseLeave: function(b) {
|
|
3893
3893
|
x.onMouseLeave && x.onMouseLeave(b), y();
|
|
@@ -3896,16 +3896,16 @@ var Nn, _i = X(function(n, a) {
|
|
|
3896
3896
|
_i.displayName = "Snackbar";
|
|
3897
3897
|
var Fd = Oo({ root: (Nn = { display: "flex", flexWrap: "wrap", flexGrow: 1 }, Nn[Qo] = { flexGrow: "initial", minWidth: "288px" }, Nn) }), ir = X(function(n, a) {
|
|
3898
3898
|
var t = n.className, e = Bo(n, ["className"]);
|
|
3899
|
-
return re.createElement("div", Object.assign({ ref: a, className:
|
|
3899
|
+
return re.createElement("div", Object.assign({ ref: a, className: _t(Fd.root, t) }, e));
|
|
3900
3900
|
});
|
|
3901
3901
|
ir.displayName = "SnackbarContent";
|
|
3902
3902
|
var ko = Oo({ root: { backgroundColor: "#313131", fontSize: "0.875rem", lineHeight: 1.43, letterSpacing: "0.01071em", color: "#fff", alignItems: "center", padding: "6px 16px", borderRadius: "4px", boxShadow: "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)" }, lessPadding: { paddingLeft: "20px" }, default: { backgroundColor: "#313131" }, success: { backgroundColor: "#43a047" }, error: { backgroundColor: "#d32f2f" }, warning: { backgroundColor: "#ff9800" }, info: { backgroundColor: "#2196f3" }, message: { display: "flex", alignItems: "center", padding: "8px 0" }, action: { display: "flex", alignItems: "center", marginLeft: "auto", paddingLeft: "16px", marginRight: "-8px" } }), ba = "notistack-snackbar", Ui = X(function(n, a) {
|
|
3903
3903
|
var t = n.id, e = n.message, r = n.action, l = n.iconVariant, c = n.variant, u = n.hideIconVariant, i = n.style, s = n.className, g = l[c], x = r;
|
|
3904
|
-
return typeof x == "function" && (x = x(t)), re.createElement(ir, { ref: a, role: "alert", "aria-describedby": ba, style: i, className:
|
|
3904
|
+
return typeof x == "function" && (x = x(t)), re.createElement(ir, { ref: a, role: "alert", "aria-describedby": ba, style: i, className: _t(Dd, Pd(c), ko.root, ko[c], s, !u && g && ko.lessPadding) }, re.createElement("div", { id: ba, className: ko.message }, u ? null : g, e), x && re.createElement("div", { className: ko.action }, x));
|
|
3905
3905
|
});
|
|
3906
3906
|
Ui.displayName = "MaterialDesignContent";
|
|
3907
3907
|
var Co, Fn, qo, Ko, Bn, Bd = q(Ui), Od = Oo({ wrappedRoot: { width: "100%", position: "relative", transform: "translateX(0)", top: 0, right: 0, bottom: 0, left: 0, minWidth: "288px" } }), Ad = function(n) {
|
|
3908
|
-
var a = fe(), t = _(!0), e = t[0], r = t[1], l = Mo([n.snack.onClose, n.onClose]), c =
|
|
3908
|
+
var a = fe(), t = _(!0), e = t[0], r = t[1], l = Mo([n.snack.onClose, n.onClose]), c = U(function() {
|
|
3909
3909
|
a.current = setTimeout(function() {
|
|
3910
3910
|
r(function(E) {
|
|
3911
3911
|
return !E;
|
|
@@ -3934,11 +3934,11 @@ var Co, Fn, qo, Ko, Bn, Bd = q(Ui), Od = Oo({ wrappedRoot: { width: "100%", posi
|
|
|
3934
3934
|
var R;
|
|
3935
3935
|
return De({}, E, ((R = {})[P] = Mo([n.snack[P], n[P]], v.id), R));
|
|
3936
3936
|
}, {});
|
|
3937
|
-
return re.createElement(Vi, { in: e, onExited: D.onExited }, re.createElement(_i, { open: d, id: v.id, disableWindowBlurListener: h, autoHideDuration: v.autoHideDuration, className:
|
|
3937
|
+
return re.createElement(Vi, { in: e, onExited: D.onExited }, re.createElement(_i, { open: d, id: v.id, disableWindowBlurListener: h, autoHideDuration: v.autoHideDuration, className: _t(Od.wrappedRoot, m.root, m[Rd(v.anchorOrigin)]), SnackbarProps: p, onClose: l }, re.createElement(f, Object.assign({}, S, { appear: !0, in: d, onExit: D.onExit, onExited: c, onEnter: D.onEnter, onEntered: Mo([D.onEntered, function() {
|
|
3938
3938
|
n.snack.requestClose && l(null, "instructed", n.snack.id);
|
|
3939
3939
|
}], v.id) }), C || re.createElement(x, Object.assign({}, v)))));
|
|
3940
|
-
}, To = { default: 20 }, Xo = { default: 6, dense: 2 }, xa = "." + $i, Yo = Oo({ root: (Co = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition:
|
|
3941
|
-
var a = n.classes, t = a === void 0 ? {} : a, e = n.anchorOrigin, r = n.dense, l = n.children, c =
|
|
3940
|
+
}, To = { default: 20 }, Xo = { default: 6, dense: 2 }, xa = "." + $i, Yo = Oo({ root: (Co = { boxSizing: "border-box", display: "flex", maxHeight: "100%", position: "fixed", zIndex: 1400, height: "auto", width: "auto", transition: to(["top", "right", "bottom", "left", "max-width"], { duration: 300, easing: "ease" }), pointerEvents: "none" }, Co[xa] = { padding: Xo.default + "px 0px", transition: "padding 300ms ease 0ms" }, Co.maxWidth = "calc(100% - " + 2 * To.default + "px)", Co[Rn] = { width: "100%", maxWidth: "calc(100% - 32px)" }, Co), rootDense: (Fn = {}, Fn[xa] = { padding: Xo.dense + "px 0px" }, Fn), top: { top: To.default - Xo.default + "px", flexDirection: "column" }, bottom: { bottom: To.default - Xo.default + "px", flexDirection: "column-reverse" }, left: (qo = { left: To.default + "px" }, qo[Qo] = { alignItems: "flex-start" }, qo[Rn] = { left: "16px" }, qo), right: (Ko = { right: To.default + "px" }, Ko[Qo] = { alignItems: "flex-end" }, Ko[Rn] = { right: "16px" }, Ko), center: (Bn = { left: "50%", transform: "translateX(-50%)" }, Bn[Qo] = { alignItems: "center" }, Bn) }), Id = q(function(n) {
|
|
3941
|
+
var a = n.classes, t = a === void 0 ? {} : a, e = n.anchorOrigin, r = n.dense, l = n.children, c = _t(Td, Yo[e.vertical], Yo[e.horizontal], Yo.root, t.containerRoot, t["containerAnchorOrigin" + rr(e)], r && Yo.rootDense);
|
|
3942
3942
|
return re.createElement("div", { className: c }, l);
|
|
3943
3943
|
}), ya = function(n) {
|
|
3944
3944
|
return !(typeof n == "string" || qn(n));
|
|
@@ -3947,7 +3947,7 @@ var Co, Fn, qo, Ko, Bn, Bd = q(Ui), Od = Oo({ wrappedRoot: { width: "100%", posi
|
|
|
3947
3947
|
var e;
|
|
3948
3948
|
return (e = n.call(this, t) || this).enqueueSnackbar = function(r, l) {
|
|
3949
3949
|
if (l === void 0 && (l = {}), r == null) throw new Error("enqueueSnackbar called with invalid argument");
|
|
3950
|
-
var c = ya(r) ? r : l, u = ya(r) ? r.message : r, i = c.key, s = c.preventDuplicate, g = Bo(c, ["key", "preventDuplicate"]), x = _o(i), m = x ? i : (/* @__PURE__ */ new Date()).getTime() + Math.random(), d = Cd(g, e.props), p = De({ id: m }, g, { message: u, open: !0, entered: !1, requestClose: !1, persist: d("persist"), action: d("action"), content: d("content"), variant: d("variant"), anchorOrigin: d("anchorOrigin"), disableWindowBlurListener: d("disableWindowBlurListener"), autoHideDuration: d("autoHideDuration"), hideIconVariant: d("hideIconVariant"), TransitionComponent: d("TransitionComponent"), transitionDuration: d("transitionDuration"), TransitionProps: d("TransitionProps", !0), iconVariant: d("iconVariant", !0), style: d("style", !0), SnackbarProps: d("SnackbarProps", !0), className:
|
|
3950
|
+
var c = ya(r) ? r : l, u = ya(r) ? r.message : r, i = c.key, s = c.preventDuplicate, g = Bo(c, ["key", "preventDuplicate"]), x = _o(i), m = x ? i : (/* @__PURE__ */ new Date()).getTime() + Math.random(), d = Cd(g, e.props), p = De({ id: m }, g, { message: u, open: !0, entered: !1, requestClose: !1, persist: d("persist"), action: d("action"), content: d("content"), variant: d("variant"), anchorOrigin: d("anchorOrigin"), disableWindowBlurListener: d("disableWindowBlurListener"), autoHideDuration: d("autoHideDuration"), hideIconVariant: d("hideIconVariant"), TransitionComponent: d("TransitionComponent"), transitionDuration: d("transitionDuration"), TransitionProps: d("TransitionProps", !0), iconVariant: d("iconVariant", !0), style: d("style", !0), SnackbarProps: d("SnackbarProps", !0), className: _t(e.props.className, g.className) });
|
|
3951
3951
|
return p.persist && (p.autoHideDuration = void 0), e.setState(function(f) {
|
|
3952
3952
|
if (s === void 0 && e.props.preventDuplicate || s) {
|
|
3953
3953
|
var y = function(w) {
|
|
@@ -4019,7 +4019,7 @@ var Co, Fn, qo, Ko, Bn, Bd = q(Ui), Od = Oo({ wrappedRoot: { width: "100%", posi
|
|
|
4019
4019
|
});
|
|
4020
4020
|
return re.createElement(zi.Provider, { value: e }, c, l ? Ps(d, l) : d);
|
|
4021
4021
|
}, Ii(a, [{ key: "maxSnack", get: function() {
|
|
4022
|
-
return this.props.maxSnack ||
|
|
4022
|
+
return this.props.maxSnack || It.maxSnack;
|
|
4023
4023
|
} }]), a;
|
|
4024
4024
|
})(Yl), Gi = function() {
|
|
4025
4025
|
return Kl(zi);
|
|
@@ -4067,21 +4067,21 @@ class Wd {
|
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
4069
|
}
|
|
4070
|
-
const
|
|
4071
|
-
const { id: t, message: e, iconVariant: r, error: l, hideIconVariant: c, ...u } = n, { closeSnackbar: i } = Gi(), s = Xe(), [g, x] = _(!1), m = Rs.collectErrorChain(l, !0)?.[0]?.error, d = m && !(m instanceof Ms), p =
|
|
4070
|
+
const zt = new Wd(), mt = { card: "_card_1a398_7", actionRoot: "_actionRoot_1a398_11", icons: "_icons_1a398_16", expand: "_expand_1a398_22", expandOpen: "_expandOpen_1a398_29", stackTraceContainer: "_stackTraceContainer_1a398_33" }, qi = q(X((n, a) => {
|
|
4071
|
+
const { id: t, message: e, iconVariant: r, error: l, hideIconVariant: c, ...u } = n, { closeSnackbar: i } = Gi(), s = Xe(), [g, x] = _(!1), m = Rs.collectErrorChain(l, !0)?.[0]?.error, d = m && !(m instanceof Ms), p = U(() => {
|
|
4072
4072
|
x((b) => !b);
|
|
4073
|
-
}, []), f =
|
|
4073
|
+
}, []), f = U(() => {
|
|
4074
4074
|
i(t);
|
|
4075
4075
|
}, [t, i]);
|
|
4076
4076
|
let y = m?.message;
|
|
4077
|
-
return !y && qn(e) && (y = e), y || typeof e != "string" || (y = e), y || (y = `Unknown Error: ${e}`), o(ir, { ref: a, className: Ce(
|
|
4077
|
+
return !y && qn(e) && (y = e), y || typeof e != "string" || (y = e), y || (y = `Unknown Error: ${e}`), o(ir, { ref: a, className: Ce(mt.root, "error-snackbar"), children: H(ts, { className: mt.card, style: { backgroundColor: s.palette.error.dark, border: `1px solid ${s.palette.error.dark}` }, children: [H(os, { className: mt.actionRoot, children: [c ? null : r?.error, o(Pe, { variant: "body2", component: "div", className: mt.typography, children: y }), o("div", { style: { flex: "1 1 auto" } }), H("div", { className: mt.icons, children: [d ? o(ct, { "aria-label": "Show more", size: "small", className: Ce(mt.expand, { [mt.expandOpen]: g }), onClick: p, children: o(be, { iconKey: "ExpandMore" }) }) : null, o(ct, { size: "small", className: mt.expand, onClick: f, children: o(be, { iconKey: "Close", style: { transform: "scale(0.8)" } }) })] })] }), d ? o(ns, { in: g, timeout: "auto", children: o("div", { className: mt.stackTraceContainer, style: { backgroundColor: s.palette.error.light, borderTop: `1px solid ${s.palette.error.main}` }, children: o(ms, { error: l, hideLineNumbers: !0 }) }) }) : null] }) });
|
|
4078
4078
|
}));
|
|
4079
4079
|
qi.displayName = "ToastError";
|
|
4080
4080
|
const Ki = q(X((n, a) => {
|
|
4081
4081
|
const { commands: t, commandHook: e, scope: r = "workbook", disabled: l = !1, ...c } = n, u = Y((s) => {
|
|
4082
4082
|
const g = { variant: ie.Menuitem, parentFloat: s.floatReference, commandHook: e, scope: r, disabled: l }, x = H(se, { children: [o(O, { ...g, command: t.getCommand("newWorkbook") }), o(Q, { orientation: "horizontal" }), o(O, { ...g, command: t.getCommand("openWorkbook") }), o(Te, { ...g, commands: t, quickCommand: "saveWorkbook", createPopupPanel: (m) => {
|
|
4083
4083
|
const d = { ...g, parentFloat: m.floatReference, scope: "saveWorkbook" }, p = [];
|
|
4084
|
-
return
|
|
4084
|
+
return zt.getWriteFormats().forEach((f) => {
|
|
4085
4085
|
if (f.isDefault) return;
|
|
4086
4086
|
const y = f.key, b = t.getCommand(`saveWorkbookAs${y}`);
|
|
4087
4087
|
b ? p.push(ve(O, { ...d, key: y, command: b })) : console.warn(`Unable to resolve command: 'saveWorkbookAs${y}'`);
|
|
@@ -4096,17 +4096,17 @@ const Ki = q(X((n, a) => {
|
|
|
4096
4096
|
return o(Te, { commands: t, disabled: l, commandHook: e, scope: r, label: i, tooltip: "Options for saving and loading the workbook.", sx: { paddingBottom: "0px", "& button": { paddingTop: "0px", paddingBottom: "0px", height: (s) => `calc(1.25rem + ${s.spacing(2)}px)` } }, ...c, createPopupPanel: u, icon: o(rn, { className: "label", icon: null, label: i }) });
|
|
4097
4097
|
}));
|
|
4098
4098
|
Ki.displayName = "StandaloneFileCommandButton";
|
|
4099
|
-
const jd = o(
|
|
4099
|
+
const jd = o(rt, { label: "SheetXL", description: "Visit me at sheetxl.com.", children: o(F, { sx: { width: "24px", height: "24px", marginBottom: "4px", marginLeft: "6px" }, children: o(Vl, { onClick: () => {
|
|
4100
4100
|
window?.open("https://www.sheetxl.com", "_blank");
|
|
4101
4101
|
}, style: { width: "24px", height: "24px", cursor: "pointer" } }) }) }), Xi = q(X((n, a) => {
|
|
4102
|
-
const { commands: t, workbook: e, logo: r = jd, mainElement: l, showFileMenu: c = !0, showAppearanceMenu: u = !0, ...i } = n, { reference: s } =
|
|
4102
|
+
const { commands: t, workbook: e, logo: r = jd, mainElement: l, showFileMenu: c = !0, showAppearanceMenu: u = !0, ...i } = n, { reference: s } = io(), [g, { width: x }] = Ht(), m = x < 530, d = c ? o(Ki, { commands: t, commandHook: { beforeExecute() {
|
|
4103
4103
|
s?.closeAll();
|
|
4104
4104
|
}, onError(b, h, w) {
|
|
4105
4105
|
} } }) : null, p = u ? o(id, { commands: t, commandHook: { beforeExecute() {
|
|
4106
4106
|
s?.closeAll();
|
|
4107
4107
|
}, onError(b, h, w) {
|
|
4108
4108
|
} } }) : null, f = W(() => ({ paddingLeft: (b) => b.spacing(1), paddingRight: (b) => b.spacing(1) }), []), y = fe(null);
|
|
4109
|
-
return o(F, { ref:
|
|
4109
|
+
return o(F, { ref: Vt([y, g, a]), ...i, children: Ci({ commands: t, renderCompact: m, workbook: e, selectWrapper: (b) => H(F, { sx: { display: "flex", flex: "1", flexDirection: "row", alignItems: "stretch", gap: (h) => h.spacing(1), paddingLeft: (h) => h.spacing(1), paddingRight: (h) => h.spacing(1) }, children: [H(F, { sx: { display: "flex", flexDirection: "row", alignItems: "center", flex: "1 1 100%", gap: (h) => h.spacing(0.5) }, children: [r, H(F, { sx: { display: "flex", flexDirection: "row", alignItems: "center", gap: (h) => h.spacing(0.25) }, children: [d, b] })] }), o(F, { sx: { display: "flex", flexDirection: "row", flex: "1 1 300%", overflow: "hidden", alignItems: "center", justifyContent: "center" }, children: l }), o(F, { sx: { display: "flex", alignItems: "center", justifyContent: "end", flex: m && !p ? "0 0 auto" : "1 1 100%" }, children: p })] }), selectProps: f, toolbarsProps: { Home: { sx: {} } } }) });
|
|
4110
4110
|
}));
|
|
4111
4111
|
Xi.displayName = "StudioToolbar";
|
|
4112
4112
|
const Yi = q((n) => {
|
|
@@ -4114,23 +4114,23 @@ const Yi = q((n) => {
|
|
|
4114
4114
|
const { workbook: y, setWorkbook: b, importExportDisabled: h, workbookTitle: w = "export", setWorkbookTitle: v, requestWorkbookTitle: S, themeOptions: C, undoManager: D, commands: E, onExecute: P } = f, R = cn(), k = Y(C?.onModeChange, [C?.onModeChange]), T = Y(C?.onEnabledDarkGridChange, [C?.onEnabledDarkGridChange]), N = Y(C?.onEnabledDarkImagesChange, [C?.onEnabledDarkImagesChange]), I = Y(async (j = null, K = null) => {
|
|
4115
4115
|
const ee = [];
|
|
4116
4116
|
let V, A = null, Z = null;
|
|
4117
|
-
if (typeof j == "string" ? Z = j : A = j, V = A ? j : await
|
|
4117
|
+
if (typeof j == "string" ? Z = j : A = j, V = A ? j : await oo.openFileDialog(Z ?? zt.getAllReadFormatTypeAsString().join(",")), !V) return null;
|
|
4118
4118
|
const oe = { source: V, createWorkbookOptions: K, onWarning: (Se) => {
|
|
4119
4119
|
ee.push(Se);
|
|
4120
|
-
} }, Oe = await
|
|
4120
|
+
} }, Oe = await zt.read(oe, R);
|
|
4121
4121
|
return ee.length > 0 && (R.showMessage("Some elements were not able to be imported. See console for details."), console.warn(`Import warnings:
|
|
4122
4122
|
` + ee.join(`
|
|
4123
4123
|
`))), Oe;
|
|
4124
4124
|
}, [P, R, y]), B = Y(async (j, K, ee) => {
|
|
4125
4125
|
if (!K && S) {
|
|
4126
4126
|
const V = await S("Enter Workbook name to " + (ee.isDefault ? "Save." : `Export as ${ee.description}.`));
|
|
4127
|
-
return V !== null &&
|
|
4127
|
+
return V !== null && zt.writeFile(V, j, { formatType: ee.key });
|
|
4128
4128
|
}
|
|
4129
|
-
return
|
|
4130
|
-
}, [R, y, S]), L =
|
|
4129
|
+
return zt.writeFile(K, j, { formatType: ee.key });
|
|
4130
|
+
}, [R, y, S]), L = U(() => ({ contains: (j) => !0, focus() {
|
|
4131
4131
|
} }), []), M = W(() => {
|
|
4132
4132
|
const j = [];
|
|
4133
|
-
h || (
|
|
4133
|
+
h || (zt.getWriteFormats().forEach((ee) => {
|
|
4134
4134
|
const V = ee.isDefault, A = { label: V ? "Save Workbook" : `Save Workbook as ${ee.description}`, scopedLabels: { workbook: "Save", saveWorkbook: `as ${ee.description}` }, tags: ee.tags, description: `Save the workbook to the desktop${V ? "" : ` as ${ee.description}`}.`, icon: "FileDownloadAsSheet" };
|
|
4135
4135
|
V && (A.shortcut = { key: "S", modifiers: [he.Ctrl] }, j.push(new ge("saveWorkbookAs", L, { label: "Save Workbook As…", scopedLabels: { workbook: "Save as…", saveWorkbook: "as…" }, shortcut: [{ key: "S", modifiers: [he.Shift, he.Ctrl] }, { key: "F12" }], description: "Save the workbook to the desktop with the provided name." }, () => {
|
|
4136
4136
|
B(y, null, ee).catch((Oe) => {
|
|
@@ -4203,7 +4203,7 @@ const Yi = q((n) => {
|
|
|
4203
4203
|
const { showModal: pe } = hs();
|
|
4204
4204
|
return de(() => {
|
|
4205
4205
|
const j = () => new Promise((K, ee) => {
|
|
4206
|
-
const V = re.lazy(() => import("./
|
|
4206
|
+
const V = re.lazy(() => import("./BPgEvjsqtBt1B2oO.mjs")), A = pe(V, { title: "Shortcut Keys Reference", commands: z, onDone: () => {
|
|
4207
4207
|
A.hide();
|
|
4208
4208
|
}, slotProps: { transition: { onExited: () => {
|
|
4209
4209
|
K(!0);
|
|
@@ -4215,7 +4215,7 @@ const Yi = q((n) => {
|
|
|
4215
4215
|
e.current ? e.current.requestWorkbookTitle((b, h) => {
|
|
4216
4216
|
y(b);
|
|
4217
4217
|
}, { selectAll: !0, requestReason: f }) : y(c);
|
|
4218
|
-
}), themeOptions: x, undoManager: i, onExecute:
|
|
4218
|
+
}), themeOptions: x, undoManager: i, onExecute: U(() => {
|
|
4219
4219
|
}, []) }), d = W(() => o(ld, { commands: m, disableHover: !0, sx: { padding: "0" }, buttonProps: { sx: { maxHeight: "22px" } } }), [m]), p = { commands: m };
|
|
4220
4220
|
return a && (p.statusBarProps = { childrenEnd: d }), u ? re.cloneElement(u, p) : null;
|
|
4221
4221
|
});
|
|
@@ -4223,9 +4223,9 @@ Yi.displayName = "CommandsWrapper";
|
|
|
4223
4223
|
const Zi = q((n) => {
|
|
4224
4224
|
const { children: a } = n, t = Gi(), e = t ? t.enqueueSnackbar : () => {
|
|
4225
4225
|
}, r = t ? t.closeSnackbar : () => {
|
|
4226
|
-
}, [l, c] = _({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), u =
|
|
4226
|
+
}, [l, c] = _({ isMounted: !1, label: null, starting: /* @__PURE__ */ new Map(), running: /* @__PURE__ */ new Map() }), u = U(() => {
|
|
4227
4227
|
c((b) => ({ ...b, isMounted: !0 }));
|
|
4228
|
-
}, []), i =
|
|
4228
|
+
}, []), i = U(() => {
|
|
4229
4229
|
c((b) => ({ ...b, isMounted: !1 }));
|
|
4230
4230
|
}, []), s = {}, g = gs(s), x = fs(s), m = bs(s), d = fe(/* @__PURE__ */ new Set()), p = W(() => {
|
|
4231
4231
|
const b = (v, S) => {
|
|
@@ -4234,7 +4234,7 @@ const Zi = q((n) => {
|
|
|
4234
4234
|
const D = new Set(d.current);
|
|
4235
4235
|
D.add(S.onceKey), d.current = D;
|
|
4236
4236
|
}
|
|
4237
|
-
const C = { variant: S?.type ??
|
|
4237
|
+
const C = { variant: S?.type ?? vt.Info, anchorOrigin: { vertical: "top", horizontal: "center" }, preventDuplicate: S?.preventDuplicate, persist: S?.persist ?? S?.type === vt.Error, action: (D) => o(ct, { onClick: () => r(D), children: o(be, { iconKey: "Cancel" }) }) };
|
|
4238
4238
|
S?.enqueueProps && Object.assign(C, S.enqueueProps), v || console.log("message is 'null'", S), e(v ?? "Alert", C);
|
|
4239
4239
|
}, h = { showMessage: b, showBusy: (v, S) => {
|
|
4240
4240
|
let C = null;
|
|
@@ -4249,10 +4249,10 @@ const Zi = q((n) => {
|
|
|
4249
4249
|
const C = S;
|
|
4250
4250
|
return S = { ...S, onKeyDown: (D) => {
|
|
4251
4251
|
D.isDefaultPrevented() || D.isPropagationStopped() || C?.onKeyDown?.(D);
|
|
4252
|
-
} }, g(v, { sort: () => import("./
|
|
4252
|
+
} }, g(v, { sort: () => import("./5qhzMLdi7OBuLx6W.mjs"), numberFormat: () => import("./DC4JZaW8S6fOywMr.mjs"), hyperlink: () => import("./ZdlfLFFcDkayt99n.mjs"), comments: () => import("./DDCEwJwqSNFJukUi.mjs"), find: () => import("./BZduiiKwWAowYSJN.mjs"), tableNew: () => import("./C5hFZQeTMy4agdCE.mjs"), namedDetails: () => import("./CDCURsqip4PNsKB-.mjs"), resizeHeader: () => import("./CM0ti_Ro-ofiPiXw.mjs") }[v], S);
|
|
4253
4253
|
}, showOptions: x, showInput: m, showError: (v) => {
|
|
4254
|
-
let S, C =
|
|
4255
|
-
typeof v == "string" ? D = v : v instanceof Error && (S = v, v.message && (D = v.message)), v instanceof Ns && (C =
|
|
4254
|
+
let S, C = vt.Error, D = "Unknown Error";
|
|
4255
|
+
typeof v == "string" ? D = v : v instanceof Error && (S = v, v.message && (D = v.message)), v instanceof Ns && (C = vt.Info), b(D, { type: C, enqueueProps: { error: S } });
|
|
4256
4256
|
} }, w = new Cs();
|
|
4257
4257
|
return w.setOverrides(h), w;
|
|
4258
4258
|
}, []);
|
|
@@ -4272,7 +4272,7 @@ const Zi = q((n) => {
|
|
|
4272
4272
|
}, [l]);
|
|
4273
4273
|
const [f, y] = _(null);
|
|
4274
4274
|
return de(() => {
|
|
4275
|
-
l.starting.size !== 0 || l.running.size !== 0 ? y(o(
|
|
4275
|
+
l.starting.size !== 0 || l.running.size !== 0 ? y(o(jt, { icon: o(xs, { sx: { transform: "scale(0.7)", marginLeft: "-6px" } }), panel: !0, label: l.label, onMount: u, onUnmount: i, sx: { position: "absolute", left: "0", top: "0", width: "100%", height: "100%", zIndex: "9999" } })) : y(null);
|
|
4276
4276
|
}, [l.starting, l.running]), H(Ts, { notifier: p, children: [f, a] });
|
|
4277
4277
|
});
|
|
4278
4278
|
Zi.displayName = "SnackbarWrapper";
|
|
@@ -4283,8 +4283,8 @@ const $d = q(X((n, a) => {
|
|
|
4283
4283
|
let b = y.getIcon?.();
|
|
4284
4284
|
b && (typeof b == "string" && (b = o(be, { iconKey: b })), b = o("span", { style: { display: "inline-block", transform: "rotate(90deg)", transformOrigin: "center" }, children: b }));
|
|
4285
4285
|
const h = f === c;
|
|
4286
|
-
return o(Da, { value: f, label: o(
|
|
4287
|
-
}), [r, c, l, u]), d =
|
|
4286
|
+
return o(Da, { value: f, label: o(Ct, { disableInteractive: !0, title: y.getTitle() ?? "", placement: "left-start", children: H(F, { sx: { padding: "0px 0px", writingMode: "vertical-rl", textOrientation: "mixed", display: "flex", alignItems: "center", justifyContent: "space-between", minWidth: "0px", color: (w) => w.palette.text.secondary }, children: [b && o(F, { sx: { display: "inline-block", transformOrigin: "center", color: (w) => w.palette.text.secondary }, children: b }), s && b ? null : o(Pe, { component: "div", textTransform: "none", sx: { padding: "4px 0px", color: (w) => h ? w.palette.primary.main : w.palette.text.secondary }, children: y.getTitle() })] }) }), sx: { padding: "4px 4px", minWidth: "0px", minHeight: "0px", borderRadius: "4px" }, className: Ce("taskpane-strip-item", { "Mui-selected": h }), onClick: () => n.onSelect(f) }, f);
|
|
4287
|
+
}), [r, c, l, u]), d = Et(a, () => ({ isTaskPaneStrip: () => !0 }), []), p = W(() => Ce("taskpane-strip", g), [g]);
|
|
4288
4288
|
return o(F, { ref: d, className: p, sx: { paddingLeft: "2px", paddingTop: "4px", ...i }, ...x, children: o(Ea, { orientation: "vertical", variant: "scrollable", value: c, onChange: (f, y) => {
|
|
4289
4289
|
l(y);
|
|
4290
4290
|
}, slotProps: { list: { sx: { gap: "2px" } }, indicator: { sx: { left: "0px", right: "unset" } } }, children: m }) });
|
|
@@ -4292,7 +4292,7 @@ const $d = q(X((n, a) => {
|
|
|
4292
4292
|
const { commands: t, model: e, ...r } = n, l = Xe(), c = `solid ${xe(l.palette.divider, 0.2)} 1px`, u = `${l.shape.borderRadius ?? 4}px`, i = `${l.spacing?.(0.5) ?? 4}px`, s = fe(null);
|
|
4293
4293
|
return o(_l, { model: e, ref: a, frameProps: { style: { border: c, borderRadius: u, marginBottom: i } }, alwaysShowStrip: !0, renderTaskPanelTitle: (g, x) => {
|
|
4294
4294
|
const { title: m, icon: d, onClose: p, readOnly: f, focused: y, ...b } = g;
|
|
4295
|
-
return o(rs, { className: Ce({ "Mui-selected": y }), sx: { display: "flex", flex: "1 1 %0", color: (h) => h.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (h) => `${h.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (h) => h.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (h) => xe(h.palette.action.hover, 0.03), borderBottom: (h) => `solid ${xe(h.palette.divider, 0.2)} 1px` }, ...b, children: H(F, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (h) => h.spacing(0.25), marginBottom: (h) => h.spacing(0.25), marginLeft: (h) => h.spacing(1), marginRight: (h) => h.spacing(1) }, children: [o(F, { sx: { flex: "1 1 100%", paddingLeft: (h) => h.spacing(1) }, children: m }), o(
|
|
4295
|
+
return o(rs, { className: Ce({ "Mui-selected": y }), sx: { display: "flex", flex: "1 1 %0", color: (h) => h.palette.text.secondary, boxSizing: "border-box", padding: "0 0", transitionProperty: "opacity", transitionDuration: (h) => `${h.transitions.duration.shortest}ms`, opacity: 0.7, "&.Mui-selected": { opacity: 1, transitionDuration: (h) => h.transitions.duration.shortest / 2 + "ms" }, backgroundColor: (h) => xe(h.palette.action.hover, 0.03), borderBottom: (h) => `solid ${xe(h.palette.divider, 0.2)} 1px` }, ...b, children: H(F, { sx: { display: "flex", flex: "1 1 10%", flexDirection: "row", alignItems: "center", marginTop: (h) => h.spacing(0.25), marginBottom: (h) => h.spacing(0.25), marginLeft: (h) => h.spacing(1), marginRight: (h) => h.spacing(1) }, children: [o(F, { sx: { flex: "1 1 100%", paddingLeft: (h) => h.spacing(1) }, children: m }), o(rt, { label: "Close", children: o(ct, { "aria-label": "close", sx: { color: (h) => h.palette.text.icon ?? h.palette.action.active }, touchRippleRef: s, onPointerDown: (h) => {
|
|
4296
4296
|
s.current?.start(h, { center: !1 }), h.stopPropagation(), h.preventDefault();
|
|
4297
4297
|
}, onPointerUp: () => {
|
|
4298
4298
|
p();
|
|
@@ -4303,29 +4303,29 @@ const $d = q(X((n, a) => {
|
|
|
4303
4303
|
n?.onClose?.();
|
|
4304
4304
|
}, commands: t, ...r });
|
|
4305
4305
|
}), wa = { flex: "1 1 100%", display: "flex", boxSizing: "border-box" }, Qi = q(X((n, a) => {
|
|
4306
|
-
const { mainElement: t, sidebarElement: e, className: r, style: l, ...c } = n, u = Xe(), [i, { width: s }] =
|
|
4306
|
+
const { mainElement: t, sidebarElement: e, className: r, style: l, ...c } = n, u = Xe(), [i, { width: s }] = Ht(), g = s > 530 || s === 0, x = fe(null);
|
|
4307
4307
|
let m = null, d = 4, p = 13;
|
|
4308
|
-
return g ? m = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (m = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", d = 13, p = 4), o(Qn, { ref:
|
|
4308
|
+
return g ? m = "m 3.6261898,11.36243 c 0,0.88365 -0.71627,1.59991 -1.59991,1.59991 -0.8836498,0 -1.60004965,-0.71626 -1.60004965,-1.59991 0,-0.88365 0.71639985,-1.6000508 1.60004965,-1.6000508 0.88364,0 1.59991,0.7164008 1.59991,1.6000508 m 0,-4.881294 c 0,0.88364 -0.71627,1.60004 -1.59991,1.60004 -0.8836498,0 -1.60004965,-0.7164 -1.60004965,-1.60004 0,-0.88365 0.71639985,-1.60005 1.60004965,-1.60005 0.88364,0 1.59991,0.7164 1.59991,1.60005 m 0,-4.881226 c 0,0.88365 -0.71627,1.60005 -1.59991,1.60005 C 1.14263,3.19996 0.42623015,2.48356 0.42623015,1.59991 0.42623015,0.71626 1.14263,0 2.0262798,0 c 0.88364,0 1.59991,0.71626 1.59991,1.59991" : (m = "M 1.59991,3.62619 C 0.71626,3.62619 0,2.90992 0,2.02628 0,1.1426301 0.71626,0.42623015 1.59991,0.42623015 c 0.88365,0 1.6000508,0.71639995 1.6000508,1.60004985 0,0.88364 -0.7164008,1.59991 -1.6000508,1.59991 m 4.881294,0 c -0.88364,0 -1.60004,-0.71627 -1.60004,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60004,-1.60004985 0.88365,0 1.60005,0.71639995 1.60005,1.60004985 0,0.88364 -0.7164,1.59991 -1.60005,1.59991 m 4.881226,0 c -0.88365,0 -1.60005,-0.71627 -1.60005,-1.59991 0,-0.8836499 0.7164,-1.60004985 1.60005,-1.60004985 0.88365,0 1.59991,0.71639995 1.59991,1.60004985 0,0.88364 -0.71626,1.59991 -1.59991,1.59991", d = 13, p = 4), o(Qn, { ref: Vt([x, i, a]), className: r, style: l ? { ...wa, ...l } : wa, ...c, fixedPane: "after", position: "40%", minAfter: g ? "280px" : "120px", splitDirection: g ? "row" : "column", resizerProps: { className: "styled-resizer", style: { minWidth: g ? "6px" : void 0, minHeight: g ? void 0 : "6px", maskImage: `url("data:image/svg+xml,%3Csvg width='${d}' height='${p}' viewBox='0 0 ${d} ${p}' version='1.1' fill='${u.palette.text.icon ?? u.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${m}' /%3E%3C/svg%3E%0A")`, maskRepeat: "no-repeat", maskPosition: g ? "left center" : "top center" } }, elementBefore: t, paneBeforeProps: { style: { flexDirection: "column", marginRight: e ? void 0 : "6px" } }, elementAfter: e, paneAfterProps: { style: { marginLeft: g ? "0px" : "4px", marginRight: g ? "8px" : "4px" } } });
|
|
4309
4309
|
}));
|
|
4310
4310
|
Qi.displayName = "StudioSplitPane", nd(), Jn.register("plugin-scripts", { icons: {} }), tn.registerTaskPane({ key: "scriptEditor", getTitle: () => "Script (Typescript)", getIcon: () => "ScriptRun", renderTaskPane: Fc }, !0);
|
|
4311
4311
|
const Vn = q(X((n, a) => {
|
|
4312
|
-
const { className: t, sx: e, style: r, onElementLoad: l, onError: c, undoManager: u, errorPanel: i = ys, onKeyDown: s, workbook: g, createWorkbookOptions: x, onWorkbookChange: m, logo: d, importExportDisabled: p = !1, themeOptions: f, autoFocus: y = !1, commands: b, title: h, onTitleChange: w, titleProps: v, renderLoadingPanel: S, ...C } = n, D = fe(null), E = Y(m, [m]), P = Y(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), R = v?.placeHolder ?? "Untitled", k = f?.mode, { themeMode: T, source: N } = Ma({ mode: k }), I = W(() => ({ ...f, light: Cr(!1,
|
|
4312
|
+
const { className: t, sx: e, style: r, onElementLoad: l, onError: c, undoManager: u, errorPanel: i = ys, onKeyDown: s, workbook: g, createWorkbookOptions: x, onWorkbookChange: m, logo: d, importExportDisabled: p = !1, themeOptions: f, autoFocus: y = !1, commands: b, title: h, onTitleChange: w, titleProps: v, renderLoadingPanel: S, ...C } = n, D = fe(null), E = Y(m, [m]), P = Y(w ?? v?.onTitleChange, [w ?? v?.onTitleChange]), R = v?.placeHolder ?? "Untitled", k = f?.mode, { themeMode: T, source: N } = Ma({ mode: k }), I = W(() => ({ ...f, light: Cr(!1, oo.deepMerge(f?.theme ?? {}, f?.light ?? {})), dark: Cr(!0, oo.deepMerge(f?.theme ?? {}, f?.dark ?? {})) }), [f]), B = T === An.Dark, [L, M] = _(null);
|
|
4313
4313
|
de(() => {
|
|
4314
4314
|
M(u ?? new Fs());
|
|
4315
4315
|
}, [u]);
|
|
4316
4316
|
const [z, ae] = _(null), [J, pe] = _(null), j = Gn();
|
|
4317
|
-
|
|
4318
|
-
if (!g || Object.keys(g).length === 0 && !
|
|
4317
|
+
kt(() => {
|
|
4318
|
+
if (!g || Object.keys(g).length === 0 && !oo.isPromiseLike(g)) {
|
|
4319
4319
|
const te = { theme: j.getDefaultTheme(), ...x };
|
|
4320
4320
|
pe(new On(te));
|
|
4321
4321
|
} else pe(g);
|
|
4322
|
-
}, [g]),
|
|
4322
|
+
}, [g]), kt(() => {
|
|
4323
4323
|
if (J) {
|
|
4324
4324
|
if (J instanceof On) return ae({ workbook: J }), void (g !== J && E?.(J));
|
|
4325
4325
|
(async () => {
|
|
4326
4326
|
try {
|
|
4327
4327
|
let te, ke = await Promise.resolve(J);
|
|
4328
|
-
ke && ke.source && (ke = await
|
|
4328
|
+
ke && ke.source && (ke = await zt.read(ke)), ke.workbook ? (Z(ke.title), te = ke.workbook) : te = ke, E?.(te), ae({ workbook: te });
|
|
4329
4329
|
} catch (te) {
|
|
4330
4330
|
E?.(null), ae({ error: te });
|
|
4331
4331
|
}
|
|
@@ -4362,10 +4362,10 @@ const Vn = q(X((n, a) => {
|
|
|
4362
4362
|
de(() => {
|
|
4363
4363
|
K && y && K.source?.focus(typeof y == "object" ? y : void 0);
|
|
4364
4364
|
}, [K]);
|
|
4365
|
-
const _e = fe(null), Ve =
|
|
4365
|
+
const _e = fe(null), Ve = U((te) => {
|
|
4366
4366
|
let ke = null;
|
|
4367
|
-
return v?.hidden || (ke = o(Mi, { ...v, style: { maxWidth: "100%", ...v?.style }, workbook: D.current, ref: _e, title: A, placeHolder: R, onTitleChange: (
|
|
4368
|
-
Z(
|
|
4367
|
+
return v?.hidden || (ke = o(Mi, { ...v, style: { maxWidth: "100%", ...v?.style }, workbook: D.current, ref: _e, title: A, placeHolder: R, onTitleChange: (Dt) => {
|
|
4368
|
+
Z(Dt);
|
|
4369
4369
|
} })), o(Xi, { ...te, logo: d, mainElement: ke, showFileMenu: !p, showAppearanceMenu: !!(I?.onEnabledDarkGridChange || I?.onEnabledDarkImagesChange || I?.onModeChange) });
|
|
4370
4370
|
}, [d, A, v, I, p, Se]);
|
|
4371
4371
|
de(() => {
|
|
@@ -4376,20 +4376,20 @@ const Vn = q(X((n, a) => {
|
|
|
4376
4376
|
}, []);
|
|
4377
4377
|
const ne = W(() => {
|
|
4378
4378
|
const te = { transparentBackground: !0 };
|
|
4379
|
-
return o(F, { sx: e, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...r }, children: S?.(te) ?? o(
|
|
4380
|
-
}, [e, r, S]),
|
|
4379
|
+
return o(F, { sx: e, style: { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, display: "flex", alignItems: "center", justifyContent: "center", ...r }, children: S?.(te) ?? o(jt, { ...te }) });
|
|
4380
|
+
}, [e, r, S]), G = U(({ error: te }) => (c?.(te), o(i, { sx: e, style: r, error: te ?? "Unable to display empty workbook." })), [e, r, c]), le = W(() => ({ ...e, "& .SnackbarContainer-root": { position: "absolute !important" }, "& .notistack-SnackbarContainer > div": { maxWidth: "100%" }, "& .notistack-Snackbar": { minWidth: "unset" }, "& .notistack-Snackbar > .error-snackbar .MuiTypography-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiCardActions-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-Snackbar > .error-snackbar .MuiButtonBase-root": { color: (te) => te.palette.getContrastText(te.palette.error.main) }, "& .notistack-MuiContent *": { fontFamily: (te) => te.typography.fontFamily }, "& #notistack-snackbar": { maxWidth: "560px", whiteSpace: "pre-wrap" }, "*": { userSelect: "none" } }), [e]), [Re, Ke] = _(null), Ee = U((te, ke) => o(_d, { ref: ke, model: J, commands: Se, ...te }), [Se, J]), at = U((te) => o(Qi, { mainElement: te, sidebarElement: Re }), [Re]), Ye = Vt([D, a]), pt = W(() => {
|
|
4381
4381
|
if (!z) return ne;
|
|
4382
|
-
if (z.error || !z.workbook) return
|
|
4383
|
-
let te = null, ke = null,
|
|
4384
|
-
return I && (te = B ? I.dark : I.light, ke = B && I.enableDarkGrid ? I.dark : I.light,
|
|
4385
|
-
s?.(
|
|
4386
|
-
}, renderLoadingPanel: S, gridTheme: ke, headersTheme: te, enableDarkImages:
|
|
4387
|
-
}, [z, A, L, ne, S, I, C, Ve, le,
|
|
4388
|
-
let Me = o(Ld, { maxSnack: 3, domRoot: oe, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (te, ke,
|
|
4382
|
+
if (z.error || !z.workbook) return G({ error: z.error });
|
|
4383
|
+
let te = null, ke = null, Dt = !1;
|
|
4384
|
+
return I && (te = B ? I.dark : I.light, ke = B && I.enableDarkGrid ? I.dark : I.light, Dt = I.enableDarkImages), o(Ri, { sx: le, style: r, tabIndex: 0, autoFocus: !0, workbook: z.workbook, ref: Ye, renderToolbar: Ve, onElementLoad: Ne, onRepeatCommandChange: V, onKeyDown: (lo) => {
|
|
4385
|
+
s?.(lo);
|
|
4386
|
+
}, renderLoadingPanel: S, gridTheme: ke, headersTheme: te, enableDarkImages: Dt, mainWrapper: at, className: Ce(t), onContextMenu: (lo) => lo.preventDefault(), ...C }, "WorkbookElement");
|
|
4387
|
+
}, [z, A, L, ne, S, I, C, Ve, le, at]);
|
|
4388
|
+
let Me = o(Ld, { maxSnack: 3, domRoot: oe, anchorOrigin: { vertical: "bottom", horizontal: "right" }, autoHideDuration: 3500, onClose: (te, ke, Dt) => {
|
|
4389
4389
|
D.current?.focus();
|
|
4390
4390
|
}, Components: { error: qi }, iconVariant: { success: o(Ca, { style: { marginRight: "8px" }, children: o("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: o(be, { iconKey: "ErrorAlert", style: { marginRight: "8px" } }) }, children: o(Ul, { createArea: Ee, onUpdateArea: (te) => {
|
|
4391
4391
|
Ke(te);
|
|
4392
|
-
}, children: o(ws, { children: o(Zi, { children: o(Es, { children: o(Ds, { children: o(Yi, { workbook: z?.workbook, setWorkbook: pe, importExportDisabled: p, titlePlaceHolder: R, titleWorkbook: A, setWorkbookTitle: Z, refWorkbookTitle: _e, commands: Se, undoManager: L, themeOptions: I, children:
|
|
4392
|
+
}, children: o(ws, { children: o(Zi, { children: o(Es, { children: o(Ds, { children: o(Yi, { workbook: z?.workbook, setWorkbook: pe, importExportDisabled: p, titlePlaceHolder: R, titleWorkbook: A, setWorkbookTitle: Z, refWorkbookTitle: _e, commands: Se, undoManager: L, themeOptions: I, children: pt }) }) }) }) }) }) });
|
|
4393
4393
|
return I && (Me = H(Na, { theme: B ? I.dark : I.light, children: [I.cssBaseline ? o(as, {}) : null, Me] })), Me;
|
|
4394
4394
|
}));
|
|
4395
4395
|
Vn.displayName = "EagerStudio";
|
|
@@ -4423,7 +4423,7 @@ export {
|
|
|
4423
4423
|
Ls as Y,
|
|
4424
4424
|
Ro as Z,
|
|
4425
4425
|
zn as _,
|
|
4426
|
-
|
|
4426
|
+
_t as a,
|
|
4427
4427
|
tr as a0,
|
|
4428
4428
|
Lo as a1,
|
|
4429
4429
|
Ba as a2,
|
|
@@ -4455,7 +4455,7 @@ export {
|
|
|
4455
4455
|
Qr as as,
|
|
4456
4456
|
Vn as at,
|
|
4457
4457
|
Wd as au,
|
|
4458
|
-
|
|
4458
|
+
zt as av,
|
|
4459
4459
|
Ln as b,
|
|
4460
4460
|
Do as c,
|
|
4461
4461
|
di as d,
|
|
@@ -4475,7 +4475,7 @@ export {
|
|
|
4475
4475
|
dn as r,
|
|
4476
4476
|
ap as s,
|
|
4477
4477
|
No as t,
|
|
4478
|
-
|
|
4478
|
+
Ht as u,
|
|
4479
4479
|
tc as v,
|
|
4480
4480
|
oc as w,
|
|
4481
4481
|
nc as x,
|