@sheetxl/studio-mui 0.8.0-beta.4 → 0.8.0-beta.6
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/{BGvoJjUs21bbuE1i.cjs → 3RXtLkq7wTAV6y_e.cjs} +1 -1
- package/browser/cjs/{BXkdjAb4jpTr412c.cjs → BD50lsTki7wvzb5g.cjs} +1 -1
- package/browser/cjs/BlNKpwiG-Q7eIi5t.cjs +8 -0
- package/browser/cjs/ByIUHPOa02D7XbdC.cjs +1 -0
- package/browser/cjs/{eCw4rAEIYE3BftpG.cjs → CkroJ2FmfFvk6Eyv.cjs} +1 -1
- package/browser/cjs/{B9GcCj7sj8XdjPZF.cjs → CzJvR12QCQb-0Rtn.cjs} +1 -1
- package/browser/cjs/{3uprnzi2l0iT17Dg.cjs → D-Yo5aV9STT5KH4G.cjs} +1 -1
- package/browser/cjs/{BHb7TnK1NmimV4OX.cjs → DwkiLFWUtLC8ZcIQ.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/xCAd86Y_REa3Xs1o.cjs +13 -0
- package/browser/esm/{wqS-qBYe9-awT5Rr.mjs → 27jPjqdDLWn5qbQ8.mjs} +3 -3
- package/browser/esm/{o8pQBbpRc03xny0J.mjs → 2_WF-hy6x4dXfEzW.mjs} +1 -1
- package/browser/esm/{Dj2-pD6jM9SjbPfX.mjs → 61ip_C1X9ls4svw6.mjs} +1 -1
- package/browser/esm/{BH7X6WilO_oB3j3h.mjs → 6EK3JgWrKYfqzAfV.mjs} +1 -1
- package/browser/esm/{CrTz-SMNtZoj2Z48.mjs → BFxtcKJBbfjtMft-.mjs} +2 -2
- package/browser/esm/{DRQzyIQfZQuviFBK.mjs → BGdZT1Ka4ohDCZpW.mjs} +3 -3
- package/browser/esm/{CimAg7LJqIb3ULYp.mjs → BPzT8gL3SgD0CG7V.mjs} +1131 -1091
- package/browser/esm/{CHqIzUemj2wQqlNO.mjs → BlWsO6M15Ii13NrV.mjs} +2 -2
- package/browser/esm/{DoU18LVtqUiePYs1.mjs → BofZe0q9bsHQr0Xd.mjs} +1 -1
- package/browser/esm/{DFbbRoJIDXqoF7nu.mjs → BybBaLxSKyGAsxqO.mjs} +3 -3
- package/browser/esm/{BJCaJYz86lNGZGh1.mjs → C5swGBbBLdDzg_bm.mjs} +2 -2
- package/browser/esm/{BVs5I1lTSja2b0B9.mjs → CKemMJZNIPnJ0dUE.mjs} +2 -2
- package/browser/esm/{ec1sT17zcL-gOSRO.mjs → CsNOEAKuHLfckItX.mjs} +1 -1
- package/browser/esm/CyQk62MFBCep2ZZs.mjs +223 -0
- package/browser/esm/{4zCEiqAUYE1FtC_Y.mjs → D-JQOjmAh6Gk6wVM.mjs} +2 -2
- package/browser/esm/{OwfpYCy5lgrQ-16J.mjs → D3b3dWTjvFd1Kj5g.mjs} +1 -1
- package/browser/esm/{Bv0eMxh_ZN44Ikgp.mjs → D8FEKUKVxH32duMx.mjs} +3 -3
- package/browser/esm/{nZ7NKFIakvUB_oNM.mjs → DRUKu2I27bidfyvH.mjs} +1 -1
- package/browser/esm/{CtOFBKJZWEJY5GOf.mjs → DTLKzrZGPkkNlncN.mjs} +2 -2
- package/browser/esm/{BWNmYjzGDBhZYgIO.mjs → Dzym1WSjYb_mnVkJ.mjs} +2 -2
- package/browser/esm/{CPDwT78ZJV0KhVfv.mjs → FK7vqizwRujDsqL2.mjs} +1825 -1743
- package/browser/esm/{DHYkgVTs7_z8sPt8.mjs → JYRkZ4iKzbWnNhEs.mjs} +2 -2
- package/browser/esm/{S7-XfIxL3I5D5tDS.mjs → aGoWX29-zbUaPh2U.mjs} +2 -2
- package/browser/esm/index.mjs +94 -94
- package/browser/esm/{BmVeug3PPG-mEUBe.mjs → p62JxLmjmWD2MQq1.mjs} +2 -2
- package/licenses/dependencies.txt +134 -134
- package/node/esm/{BVmpGvXDUqEmggq3.mjs → 3J2-TRYWEsvnTDnO.mjs} +1 -1
- package/node/esm/{BtruJA9z21K9pnuA.mjs → B2QOYsl1YmcwknsP.mjs} +9 -9
- package/node/esm/{DKzeeAeOVF2r68yb.mjs → CE6ZU2MVb3_-FzIk.mjs} +1 -1
- package/node/esm/{CUsUUWPxbO1IW9PY.mjs → CKOhL08sVy1N_Uza.mjs} +1 -1
- package/node/esm/{FxGz3tv6y2gcffmK.mjs → CksPMsHwUSCpFnpS.mjs} +1205 -1164
- package/node/esm/{B9iw8mqg0MDNDp5_.mjs → CtoRlEz1GwA88zTu.mjs} +1 -1
- package/node/esm/{BNROwD9ZMLgwtXL_.mjs → CzERDnu2VbNTjJgI.mjs} +8 -8
- package/node/esm/{2wtbIYdeGDT6UzN4.mjs → D3xcuMwJvLJhlPNV.mjs} +1 -1
- package/node/esm/{CGhj-BDkyrejG1Jj.mjs → DDVJs9oOFXR3RfSi.mjs} +1 -1
- package/node/esm/{DMbGl7mOdelCN7-u.mjs → Dc4t_AYLdTAnPOIT.mjs} +1 -1
- package/node/esm/{T3WcGiReCHGeKPOy.mjs → JUUre9pYia7feetw.mjs} +1 -1
- package/node/esm/{R1_Dii8zCHEAZKvZ.mjs → K6LEXUZkuqoEn5yJ.mjs} +1 -1
- package/node/esm/{B1z-keCkm0LI9ezw.mjs → ObY_iULY2ezBYD3q.mjs} +1 -1
- package/node/esm/index.mjs +2901 -2820
- package/node/esm/{DhZG-hcTUn-vLoZy.mjs → qu70N1tsIwi7LmT6.mjs} +1 -1
- package/node/esm/{7ZI8MoM6mY-P4VfQ.mjs → uIRinWE0OCKJvsGN.mjs} +2 -2
- package/package.json +9 -9
- package/resources/locales/de/ui.msg.json +3 -4
- package/resources/locales/en/ui.msg.json +3 -4
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +6 -0
- package/types/src/conditions/BetweenOption.d.ts +5 -0
- package/types/src/conditions/ScalarOption.d.ts +18 -0
- package/types/src/dialog/index.d.ts +0 -1
- package/types/src/filter/FilterList.d.ts +3 -3
- package/types/src/form/FormulaField.d.ts +6 -0
- package/types/src/format/AlignmentPanel.d.ts +1 -2
- package/types/src/format/BorderPreview.d.ts +23 -13
- package/types/src/format/useFormatSelection.d.ts +3 -2
- package/types/src/itemsPanel/EditorCommit.d.ts +32 -0
- package/types/src/itemsPanel/EditorPanel.d.ts +1 -2
- package/types/src/itemsPanel/ItemsDescriptor.d.ts +13 -0
- package/types/src/itemsPanel/index.d.ts +1 -0
- package/types/src/studio/CommandsWrapper.d.ts +2 -0
- package/types/src/studio/StudioCommandProvider.d.ts +7 -0
- package/types/src/studio/StudioCommands.d.ts +2 -2
- package/types/src/studio/StudioProps.d.ts +1 -1
- package/types/src/studio/StudioSplitPane.d.ts +1 -1
- package/browser/cjs/CucKgy044KxMHXrx.cjs +0 -13
- package/browser/cjs/Cy_XmYq6BsWmCXkk.cjs +0 -3
- package/browser/cjs/Dq9lIOzvxW3EKYkD.cjs +0 -8
- package/browser/cjs/QI6GKw7uo1f8gY8C.cjs +0 -1
- package/browser/esm/BiZHUr1gWhtKdzrE.mjs +0 -222
- package/browser/esm/Dg5qnLoncOqT-F5i.mjs +0 -97
- package/node/esm/XpqeM7yyMghtMgLc.mjs +0 -98
- package/types/src/dialog/CommentsDialog.d.ts +0 -11
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { Color as
|
|
12
|
-
import { COLOR_SCALE_PRESETS as
|
|
13
|
-
import { Command as
|
|
14
|
-
import I, { Component as
|
|
15
|
-
import { AnimatedLoadingPanel as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Accordion as
|
|
18
|
-
import { CommonUtils as
|
|
19
|
-
import { createPortal as
|
|
20
|
-
var
|
|
7
|
+
import { $t as e, Bt as t, Cn as n, Dn as r, Dt as i, Et as a, Fn as o, Ft as s, Gt as c, Ht as l, It as u, Kt as d, Lt as f, Mt as p, Nt as m, Pt as h, Rt as g, Ut as _, Vt as v, Wt as y, Zt as b, a as x, h as S, i as C, in as w, jn as ee, jt as te, l as ne, lt as re, o as ie, qt as ae, r as oe, s as se, sn as ce, t as le, tt as ue, w as de, zt as fe } from "./FK7vqizwRujDsqL2.mjs";
|
|
8
|
+
import { t as T } from "./CsNOEAKuHLfckItX.mjs";
|
|
9
|
+
import { t as pe } from "./DRUKu2I27bidfyvH.mjs";
|
|
10
|
+
import { n as me } from "./CyQk62MFBCep2ZZs.mjs";
|
|
11
|
+
import { Color as he, CommonUtils as ge, Condition as _e, FormulaError as ve, FormulaText as ye, ICondition as E, IConditionalFormat as D, IDataValidation as O, IFill as be, IFont as xe, IStyle as Se, ScalarType as Ce, getLocaleProfile as we } from "@sheetxl/sdk";
|
|
12
|
+
import { COLOR_SCALE_PRESETS as Te, CommandRootProvider as Ee, DATA_BAR_PRESETS as De, DefaultTaskPaneRegistry as Oe, ICON_CATALOG as ke, IconSetGlyphs as Ae, LogoNoPaddingIcon as je, NO_CELL_ICON as Me, PickerPanel as Ne, STYLE_PRESETS as Pe, TaskPaneArea as Fe, TaskPaneProvider as Ie, ThemeStateDefaults as Le, ThemeStateKey as Re, WorkbookIO as k, WorkbookProvider as ze, buildOOXMLThemeCSS as Be, createEditable as Ve, createSystemColorVars as He, defaultColorScale as Ue, defaultDataBar as We, defaultIconSet as Ge, defaultIconStops as Ke, getConditionalIconSet as qe, iconSetSize as Je, resolveIconSetIcons as A, useDocThemes as Ye, useModelSync as Xe, useReferenceModeStore as Ze, useResolvedWorkbook as Qe, useSheet as j, useTaskPaneArea as M, useWorkbookEncrypted as $e, useWorkbookName as et, useWorkbookSaveState as tt, withIconOverride as nt } from "@sheetxl/react";
|
|
13
|
+
import { Command as rt, DefaultIconService as it, DefaultReactNotifier as at, DynamicIcon as N, KeyCodes as ot, LanguageStateKey as st, NotifierType as ct, ReactErrorBoundary as lt, ReactNotifierProvider as ut, SplitPane as dt, UncaughtErrorBoundary as ft, createBusyHandle as pt, floatThemeScopeProps as mt, useCallbackRef as ht, useFloatSurface as gt, useFullscreen as P, useImperativeElement as _t, useLanguage as vt, useNotifier as yt, usePersistentState as bt, useResolvedThemeMode as xt, useTokenThemeContext as St, useTranslator as F } from "@sheetxl/utils-react";
|
|
14
|
+
import I, { Component as Ct, cloneElement as wt, createContext as Tt, createElement as Et, forwardRef as L, isValidElement as Dt, memo as R, useCallback as z, useContext as Ot, useEffect as B, useLayoutEffect as kt, useMemo as V, useRef as H, useState as U } from "react";
|
|
15
|
+
import { AnimatedLoadingPanel as At, AnimatedTraversingEllipsisIcon as jt, CommandGroup as Mt, ExhibitFloatProvider as Nt, ExhibitIconButton as Pt, ExhibitPopupIconButton as Ft, ExhibitTooltip as It, ModalProvider as Lt, SimpleTooltip as Rt, StackTrace as zt, createExhibitTheme as Bt, defaultCreatePopupPanel as Vt, hideLoadingPanel as Ht, lazyModal as Ut, showLoadingPanel as Wt, useInputDialog as Gt, useLazyWindow as Kt, useModal as qt, useOptionsDialog as Jt } from "@sheetxl/utils-mui";
|
|
16
|
+
import { Fragment as Yt, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
17
|
+
import { Accordion as Xt, AccordionDetails as Zt, AccordionSummary as Qt, Box as K, Button as $t, Card as en, CardActions as tn, Checkbox as nn, Collapse as rn, CssBaseline as an, DialogTitle as on, Divider as sn, FormControl as cn, FormControlLabel as ln, FormHelperText as un, IconButton as dn, InputLabel as fn, ListSubheader as pn, MenuItem as q, MenuList as mn, Paper as hn, Popover as gn, Select as J, SvgIcon as _n, Tab as vn, Tabs as yn, TextField as bn, ThemeProvider as xn, ToggleButton as Sn, ToggleButtonGroup as Cn, Typography as Y, alpha as wn, useMediaQuery as Tn, useTheme as En } from "@mui/material";
|
|
18
|
+
import { CommonUtils as Dn, DOMUtils as On, DefaultLanguagePackService as kn, ErrorUtils as An, ExpectedError as jn, PartialError as Mn, defineLazyModule as X, formatMessage as Nn, messageKey as Z, t as Q } from "@sheetxl/utils";
|
|
19
|
+
import { createPortal as Pn } from "react-dom";
|
|
20
|
+
var Fn = R((e) => {
|
|
21
21
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
22
|
-
return W(
|
|
22
|
+
return W(bn, {
|
|
23
23
|
size: "small",
|
|
24
24
|
type: "text",
|
|
25
25
|
placeholder: F()("condition.enterText"),
|
|
@@ -30,10 +30,10 @@ var Nn = R((e) => {
|
|
|
30
30
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
var
|
|
33
|
+
Fn.displayName = "StringOption";
|
|
34
|
+
var In = R((e) => {
|
|
35
35
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e;
|
|
36
|
-
return W(
|
|
36
|
+
return W(bn, {
|
|
37
37
|
size: "small",
|
|
38
38
|
type: "number",
|
|
39
39
|
placeholder: F()("condition.enterNumber"),
|
|
@@ -44,14 +44,14 @@ var Pn = R((e) => {
|
|
|
44
44
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } }
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
var
|
|
47
|
+
In.displayName = "NumberOption";
|
|
48
|
+
var Ln = Tt(null), Rn = (e) => {
|
|
49
49
|
let { rowIndex: t, colIndex: n } = e.getSelectedCell().getCoords();
|
|
50
50
|
return {
|
|
51
51
|
rowIndex: t,
|
|
52
52
|
colIndex: n
|
|
53
53
|
};
|
|
54
|
-
},
|
|
54
|
+
}, zn = (e, t) => {
|
|
55
55
|
let n = ((e) => {
|
|
56
56
|
let t = e?.getCoords();
|
|
57
57
|
if (!t || t.length === 0) return null;
|
|
@@ -63,7 +63,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
63
63
|
};
|
|
64
64
|
})(t?.getRanges() ?? null);
|
|
65
65
|
if (!e || !n) return null;
|
|
66
|
-
let { rowIndex: r, colIndex: i } =
|
|
66
|
+
let { rowIndex: r, colIndex: i } = Rn(e);
|
|
67
67
|
return r === n.rowIndex && i === n.colIndex ? null : {
|
|
68
68
|
active: {
|
|
69
69
|
rowIndex: r,
|
|
@@ -71,8 +71,8 @@ var Fn = Ct(null), In = (e) => {
|
|
|
71
71
|
},
|
|
72
72
|
anchor: n
|
|
73
73
|
};
|
|
74
|
-
},
|
|
75
|
-
let e =
|
|
74
|
+
}, Bn = () => {
|
|
75
|
+
let e = j(), t = Ot(Ln), n = H(null), r = e ? Rn(e) : null, i = e?.getName() ?? null, a = V(() => r && i ? {
|
|
76
76
|
...r,
|
|
77
77
|
scope: i
|
|
78
78
|
} : void 0, [
|
|
@@ -85,7 +85,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
85
85
|
display: (r) => {
|
|
86
86
|
let i = n.current;
|
|
87
87
|
if (i && i.stored === r.getExpression()) return i.text;
|
|
88
|
-
let a =
|
|
88
|
+
let a = zn(e, t);
|
|
89
89
|
if (a) try {
|
|
90
90
|
let t = e.createFormula(r.getExpression(), a.anchor).shift(a.active);
|
|
91
91
|
if (t) return t.getExpression({ target: "display" });
|
|
@@ -93,7 +93,7 @@ var Fn = Ct(null), In = (e) => {
|
|
|
93
93
|
return r.getExpression({ target: "display" });
|
|
94
94
|
},
|
|
95
95
|
compile: (r) => {
|
|
96
|
-
let i =
|
|
96
|
+
let i = zn(e, t), a = null;
|
|
97
97
|
try {
|
|
98
98
|
a = e?.createFormula(r, i?.active, { target: "display" }) ?? null, a && i && (a = a.shift(i.anchor));
|
|
99
99
|
} catch {
|
|
@@ -109,48 +109,72 @@ var Fn = Ct(null), In = (e) => {
|
|
|
109
109
|
t,
|
|
110
110
|
a
|
|
111
111
|
]);
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
}, Vn = (e, t) => !!t && typeof e == "string" && !e.startsWith("="), Hn = (e, t, n, r) => e == null ? "" : e.isIFormula ? "=" + t.display(e) : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : ve.isError(e) ? e.getLabel() : r && typeof e == "number" ? ((e, t, n) => {
|
|
113
|
+
if (!e || t < 0) return String(t);
|
|
114
|
+
let r = t >= 1, i = !Number.isInteger(t), a;
|
|
115
|
+
return a = n !== "time" || r ? i ? r ? "Short DateTime" : "Long Time" : "Short Date" : "Long Time", e.createCell({
|
|
116
|
+
value: t,
|
|
117
|
+
style: { numberFormat: a }
|
|
118
|
+
}).getText();
|
|
119
|
+
})(n, e, r) : String(e), Un = (e, t, n, r) => {
|
|
120
|
+
if (e.length === 0) return null;
|
|
121
|
+
if (e.startsWith("=")) {
|
|
122
|
+
let n = t.compile(e.substring(1));
|
|
123
|
+
return typeof n == "string" ? e : n;
|
|
124
|
+
}
|
|
125
|
+
let i = e.trim();
|
|
126
|
+
if (i.length === 0) return e;
|
|
127
|
+
if (r) return ((e, t) => {
|
|
128
|
+
if (!e) return null;
|
|
129
|
+
let n = e.createCell({ value: t }, void 0, { textParser: !0 });
|
|
130
|
+
return n.getType() === Ce.Number ? n.getValue() : null;
|
|
131
|
+
})(n, i) ?? e;
|
|
132
|
+
let a = Number(i);
|
|
133
|
+
return Number.isFinite(a) ? a : e;
|
|
134
|
+
}, Wn = R((e) => {
|
|
135
|
+
let { option: t, onOptionChange: n, literal: r, readOnly: i, ...a } = e, o = F(), s = j(), c = Bn(), l = H(""), u = H(null);
|
|
136
|
+
return d(() => {
|
|
137
|
+
let e = u.current;
|
|
138
|
+
return !e || !e.error && (e.dirty ? (e.commit(), !Vn(Un(l.current, c, s, r), r)) : !Vn(t, r));
|
|
139
|
+
}), W(me, {
|
|
115
140
|
size: "small",
|
|
116
|
-
home:
|
|
117
|
-
value:
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
disabled: r,
|
|
141
|
+
home: c.home,
|
|
142
|
+
value: Hn(t, c, s, r),
|
|
143
|
+
changeOn: "done",
|
|
144
|
+
apiRef: u,
|
|
145
|
+
onChangeText: (e) => {
|
|
146
|
+
l.current = e;
|
|
147
|
+
},
|
|
148
|
+
onDone: (e, t) => {
|
|
149
|
+
t.reason === "accept" && (() => {
|
|
150
|
+
let e = Un(l.current, c, s, r);
|
|
151
|
+
n(e);
|
|
152
|
+
})();
|
|
153
|
+
},
|
|
154
|
+
validationError: Vn(t, r) ? Z("condition.invalidDateTime") : null,
|
|
155
|
+
placeholder: o("condition.enterValueOrFormula"),
|
|
156
|
+
disabled: i,
|
|
133
157
|
fullWidth: !0,
|
|
134
158
|
equals: "literal",
|
|
135
159
|
pickAs: "absolute",
|
|
136
160
|
label: null,
|
|
137
161
|
showError: !1,
|
|
138
162
|
helperText: null,
|
|
139
|
-
...
|
|
163
|
+
...a
|
|
140
164
|
});
|
|
141
165
|
});
|
|
142
|
-
|
|
143
|
-
var
|
|
166
|
+
Wn.displayName = "ScalarOption";
|
|
167
|
+
var Gn = (e, t, n) => {
|
|
144
168
|
if (e == null) return "";
|
|
145
169
|
if (e.isIFormula) return "=" + n.display(e);
|
|
146
170
|
if (Array.isArray(e)) return e.map((e) => String(e ?? "")).join(t);
|
|
147
|
-
let r =
|
|
171
|
+
let r = _e.parseListLiteral(e);
|
|
148
172
|
return r ? r.join(t) : e.length > 0 ? "=" + e : "";
|
|
149
|
-
},
|
|
150
|
-
let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s =
|
|
173
|
+
}, Kn = R((e) => {
|
|
174
|
+
let { option: t, onOptionChange: n, readOnly: r, sx: i, ...a } = e, o = F(), s = j(), c = Ot(Ln), l = Bn(), u = we(s?.getWorkbook()?.getLocale() ?? "en").listSeparator, [d, f] = U(null), p = t?.items, [m, h] = U(null), g = H(0);
|
|
151
175
|
B(() => {
|
|
152
176
|
if (!c?.getListItemsAt || !s) return void h(null);
|
|
153
|
-
let e = ++g.current, { rowIndex: t, colIndex: n } =
|
|
177
|
+
let e = ++g.current, { rowIndex: t, colIndex: n } = Rn(s);
|
|
154
178
|
c.getListItemsAt(t, n).then((t) => {
|
|
155
179
|
e === g.current && h(t);
|
|
156
180
|
}, () => {
|
|
@@ -161,7 +185,7 @@ var Vn = (e, t, n) => {
|
|
|
161
185
|
s,
|
|
162
186
|
p
|
|
163
187
|
]);
|
|
164
|
-
let [_, v] = U(null), { className: y } =
|
|
188
|
+
let [_, v] = U(null), { className: y } = mt(gt()?.themeScope), b = V(() => s?.getStyles().getNormal().getFont().toCSS("adaptive"), [s]), [x, S] = U(null), C = x ?? d;
|
|
165
189
|
return G(K, {
|
|
166
190
|
sx: {
|
|
167
191
|
display: "flex",
|
|
@@ -175,10 +199,10 @@ var Vn = (e, t, n) => {
|
|
|
175
199
|
alignItems: "stretch",
|
|
176
200
|
gap: 1
|
|
177
201
|
},
|
|
178
|
-
children: [W(
|
|
202
|
+
children: [W(me, {
|
|
179
203
|
size: "small",
|
|
180
204
|
home: l.home,
|
|
181
|
-
value:
|
|
205
|
+
value: Gn(p, u, l),
|
|
182
206
|
onChangeText: (e) => {
|
|
183
207
|
let r = ((e, t, n) => {
|
|
184
208
|
if (e.length === 0) return { items: "" };
|
|
@@ -189,9 +213,9 @@ var Vn = (e, t, n) => {
|
|
|
189
213
|
let t = e;
|
|
190
214
|
for (; t?.type === "paren" && t.inputs?.length === 1;) t = t.inputs[0];
|
|
191
215
|
return t?.type === "list" || t?.type === "paren" && (t.inputs?.length ?? 0) > 1;
|
|
192
|
-
})(
|
|
216
|
+
})(ye.parse(t.getExpression())) ? { error: Z("condition.listSourceOneRange") } : { items: t.getExpression() };
|
|
193
217
|
}
|
|
194
|
-
let r =
|
|
218
|
+
let r = _e.formatListLiteral(e.split(t));
|
|
195
219
|
return r === null ? { error: Z("condition.listItemHasComma") } : { items: r };
|
|
196
220
|
})(e, u, l);
|
|
197
221
|
f(r.error ?? null), r.items !== void 0 && n({
|
|
@@ -211,7 +235,7 @@ var Vn = (e, t, n) => {
|
|
|
211
235
|
showError: !1,
|
|
212
236
|
helperText: null,
|
|
213
237
|
...a
|
|
214
|
-
}), m !== null && G(
|
|
238
|
+
}), m !== null && G(Yt, { children: [W($t, {
|
|
215
239
|
size: "small",
|
|
216
240
|
variant: "outlined",
|
|
217
241
|
color: "inherit",
|
|
@@ -232,7 +256,7 @@ var Vn = (e, t, n) => {
|
|
|
232
256
|
},
|
|
233
257
|
children: o("condition.listPreview", { count: m.length })
|
|
234
258
|
})
|
|
235
|
-
}), W(
|
|
259
|
+
}), W(gn, {
|
|
236
260
|
open: !!_,
|
|
237
261
|
anchorEl: _,
|
|
238
262
|
onClose: () => v(null),
|
|
@@ -245,28 +269,28 @@ var Vn = (e, t, n) => {
|
|
|
245
269
|
vertical: "top",
|
|
246
270
|
horizontal: "right"
|
|
247
271
|
},
|
|
248
|
-
children: W(
|
|
272
|
+
children: W(Ne, {
|
|
249
273
|
items: m,
|
|
250
274
|
minWidth: _?.getBoundingClientRect().width,
|
|
251
275
|
style: b,
|
|
252
276
|
onChoose: () => v(null)
|
|
253
277
|
})
|
|
254
278
|
})] })]
|
|
255
|
-
}), C && W(
|
|
279
|
+
}), C && W(un, {
|
|
256
280
|
error: !0,
|
|
257
281
|
children: o(C)
|
|
258
282
|
})]
|
|
259
283
|
});
|
|
260
284
|
});
|
|
261
|
-
|
|
262
|
-
var
|
|
285
|
+
Kn.displayName = "ListSourceOption";
|
|
286
|
+
var qn = {}, Jn = R((e) => {
|
|
263
287
|
let { option: t, onOptionChange: n, className: r, readOnly: i, ...a } = e, o = F(), s = t?.type ?? E.AverageType.Above, c = t?.stdDevs ?? "", l = { backgroundColor: "background.paper" };
|
|
264
288
|
return i && (l = {
|
|
265
289
|
...l,
|
|
266
290
|
"& .MuiSelect-icon": { display: "none" },
|
|
267
291
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
268
292
|
}), G(K, {
|
|
269
|
-
className:
|
|
293
|
+
className: T(r, qn.option),
|
|
270
294
|
...a,
|
|
271
295
|
sx: {
|
|
272
296
|
display: "flex",
|
|
@@ -274,10 +298,10 @@ var Un = {}, Wn = R((e) => {
|
|
|
274
298
|
gap: .25,
|
|
275
299
|
...a?.sx
|
|
276
300
|
},
|
|
277
|
-
children: [W(
|
|
301
|
+
children: [W(cn, {
|
|
278
302
|
sx: { flex: .5 },
|
|
279
303
|
size: "small",
|
|
280
|
-
children: G(
|
|
304
|
+
children: G(J, {
|
|
281
305
|
value: s,
|
|
282
306
|
sx: l,
|
|
283
307
|
IconComponent: (e) => W(N, {
|
|
@@ -289,15 +313,15 @@ var Un = {}, Wn = R((e) => {
|
|
|
289
313
|
...t,
|
|
290
314
|
type: e.target.value
|
|
291
315
|
}),
|
|
292
|
-
children: [W(
|
|
316
|
+
children: [W(q, {
|
|
293
317
|
value: E.AverageType.Above,
|
|
294
318
|
children: o("condition.above")
|
|
295
|
-
}), W(
|
|
319
|
+
}), W(q, {
|
|
296
320
|
value: E.AverageType.Below,
|
|
297
321
|
children: o("condition.below")
|
|
298
322
|
})]
|
|
299
323
|
})
|
|
300
|
-
}), W(
|
|
324
|
+
}), W(bn, {
|
|
301
325
|
size: "small",
|
|
302
326
|
placeholder: o("condition.stdDevs"),
|
|
303
327
|
value: c,
|
|
@@ -312,12 +336,12 @@ var Un = {}, Wn = R((e) => {
|
|
|
312
336
|
})]
|
|
313
337
|
});
|
|
314
338
|
});
|
|
315
|
-
|
|
316
|
-
var
|
|
317
|
-
let t =
|
|
318
|
-
return t || (t = "__ci_" + ++
|
|
319
|
-
},
|
|
320
|
-
let i = t ?? Object.values(
|
|
339
|
+
Jn.displayName = "AverageOption";
|
|
340
|
+
var Yn = 0, Xn = /* @__PURE__ */ new WeakMap(), Zn = (e) => {
|
|
341
|
+
let t = Xn.get(e);
|
|
342
|
+
return t || (t = "__ci_" + ++Yn, Xn.set(e, t)), t;
|
|
343
|
+
}, Qn = Object.freeze([E.BuiltInOperatorNames.Icon, E.BuiltInOperatorNames.Color]), $n = (e, t, n, r = Qn) => {
|
|
344
|
+
let i = t ?? Object.values(_e.BuiltInOperators), a = e?.getSelectType() ?? null, o = e?.isList;
|
|
321
345
|
return i.filter((t) => {
|
|
322
346
|
if (r.includes(t.getName())) return !1;
|
|
323
347
|
let n = t.acceptsList?.();
|
|
@@ -326,25 +350,25 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
326
350
|
let i = t.getAcceptsTypes?.();
|
|
327
351
|
return !i || i.includes(a);
|
|
328
352
|
}).sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", n));
|
|
329
|
-
},
|
|
353
|
+
}, er = (e, t, n, r) => {
|
|
330
354
|
let i = (e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", r), a = e.filter((e) => !e.isCombinator?.()).sort(i), o = e.filter((e) => e.isCombinator?.()).sort(i), s = [];
|
|
331
|
-
return a.length > 0 && (s.push(W(
|
|
355
|
+
return a.length > 0 && (s.push(W(pn, {
|
|
332
356
|
disableSticky: !0,
|
|
333
|
-
sx:
|
|
357
|
+
sx: nr,
|
|
334
358
|
children: n("condition.groupBasic")
|
|
335
|
-
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(
|
|
359
|
+
}, "__header:leaf")), a.forEach((e) => s.push(t(e)))), a.length > 0 && o.length > 0 && s.push(W(sn, {}, "__divider")), o.length > 0 && (s.push(W(pn, {
|
|
336
360
|
disableSticky: !0,
|
|
337
|
-
sx:
|
|
361
|
+
sx: nr,
|
|
338
362
|
children: n("condition.groupCombine")
|
|
339
363
|
}, "__header:combinator")), o.forEach((e) => s.push(t(e)))), s;
|
|
340
|
-
},
|
|
364
|
+
}, tr = (e, t, n = null) => {
|
|
341
365
|
if (!e.isCombinator?.()) return e.createDefaultParam?.(n ?? void 0) ?? null;
|
|
342
366
|
let r = t.find((e) => !e.isCombinator?.()) ?? null, i = r ? {
|
|
343
367
|
operator: r.getName(),
|
|
344
368
|
param: r.createDefaultParam?.(n ?? void 0) ?? null
|
|
345
369
|
} : null;
|
|
346
370
|
return e.getName() === "not" ? i : i ? [i] : [];
|
|
347
|
-
},
|
|
371
|
+
}, nr = {
|
|
348
372
|
userSelect: "none",
|
|
349
373
|
lineHeight: "2",
|
|
350
374
|
fontSize: "0.75rem",
|
|
@@ -352,7 +376,7 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
352
376
|
color: "text.secondary",
|
|
353
377
|
paddingLeft: 1,
|
|
354
378
|
paddingRight: 1
|
|
355
|
-
},
|
|
379
|
+
}, rr = { pl: 2 }, ir = R((e) => {
|
|
356
380
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = function(e, t) {
|
|
357
381
|
let n = (e) => new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(2e3, e, 1));
|
|
358
382
|
return [
|
|
@@ -504,7 +528,7 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
504
528
|
]
|
|
505
529
|
}
|
|
506
530
|
];
|
|
507
|
-
}(F(),
|
|
531
|
+
}(F(), vt()), o = t?.type ?? E.TimePeriodType.Today;
|
|
508
532
|
return W(K, {
|
|
509
533
|
...i,
|
|
510
534
|
sx: {
|
|
@@ -513,9 +537,9 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
513
537
|
gap: 2,
|
|
514
538
|
...i?.sx
|
|
515
539
|
},
|
|
516
|
-
children: W(
|
|
540
|
+
children: W(cn, {
|
|
517
541
|
size: "small",
|
|
518
|
-
children: W(
|
|
542
|
+
children: W(J, {
|
|
519
543
|
value: o,
|
|
520
544
|
sx: { backgroundColor: "background.paper" },
|
|
521
545
|
IconComponent: (e) => W(N, {
|
|
@@ -529,11 +553,11 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
529
553
|
disabled: r,
|
|
530
554
|
children: a.map((e, t) => {
|
|
531
555
|
let n = [];
|
|
532
|
-
return t > 0 && n.push(W(
|
|
533
|
-
sx:
|
|
556
|
+
return t > 0 && n.push(W(sn, {}, `divider-${t}`)), n.push(W(pn, {
|
|
557
|
+
sx: nr,
|
|
534
558
|
children: e.header
|
|
535
|
-
}, `header-${t}`)), e.options.map((e) => n.push(W(
|
|
536
|
-
sx:
|
|
559
|
+
}, `header-${t}`)), e.options.map((e) => n.push(W(q, {
|
|
560
|
+
sx: rr,
|
|
537
561
|
value: e.value,
|
|
538
562
|
children: e.label
|
|
539
563
|
}, e.value))), n;
|
|
@@ -542,8 +566,8 @@ var Gn = 0, Kn = /* @__PURE__ */ new WeakMap(), qn = (e) => {
|
|
|
542
566
|
})
|
|
543
567
|
});
|
|
544
568
|
});
|
|
545
|
-
|
|
546
|
-
var
|
|
569
|
+
ir.displayName = "TimePeriodOption";
|
|
570
|
+
var ar = R((e) => {
|
|
547
571
|
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = t?.top ?? !0, s = t?.limit ?? 10, c = t?.percent ?? !1;
|
|
548
572
|
return G(K, {
|
|
549
573
|
...i,
|
|
@@ -554,10 +578,10 @@ var tr = R((e) => {
|
|
|
554
578
|
...i?.sx
|
|
555
579
|
},
|
|
556
580
|
children: [
|
|
557
|
-
W(
|
|
581
|
+
W(cn, {
|
|
558
582
|
size: "small",
|
|
559
583
|
sx: { flex: 1 },
|
|
560
|
-
children: G(
|
|
584
|
+
children: G(J, {
|
|
561
585
|
value: o ? "top" : "bottom",
|
|
562
586
|
sx: { backgroundColor: "background.paper" },
|
|
563
587
|
IconComponent: (e) => W(N, {
|
|
@@ -569,16 +593,16 @@ var tr = R((e) => {
|
|
|
569
593
|
top: e.target.value === "top"
|
|
570
594
|
}),
|
|
571
595
|
disabled: r,
|
|
572
|
-
children: [W(
|
|
596
|
+
children: [W(q, {
|
|
573
597
|
value: "top",
|
|
574
598
|
children: a("condition.top")
|
|
575
|
-
}), W(
|
|
599
|
+
}), W(q, {
|
|
576
600
|
value: "bottom",
|
|
577
601
|
children: a("condition.bottom")
|
|
578
602
|
})]
|
|
579
603
|
})
|
|
580
604
|
}),
|
|
581
|
-
W(
|
|
605
|
+
W(bn, {
|
|
582
606
|
size: "small",
|
|
583
607
|
placeholder: "10",
|
|
584
608
|
value: s,
|
|
@@ -594,10 +618,10 @@ var tr = R((e) => {
|
|
|
594
618
|
slotProps: { input: { sx: { backgroundColor: "background.paper" } } },
|
|
595
619
|
sx: { flex: .6 }
|
|
596
620
|
}),
|
|
597
|
-
W(
|
|
621
|
+
W(cn, {
|
|
598
622
|
size: "small",
|
|
599
623
|
sx: { flex: 1 },
|
|
600
|
-
children: G(
|
|
624
|
+
children: G(J, {
|
|
601
625
|
value: c ? "percent" : "items",
|
|
602
626
|
sx: { backgroundColor: "background.paper" },
|
|
603
627
|
IconComponent: (e) => W(N, {
|
|
@@ -609,10 +633,10 @@ var tr = R((e) => {
|
|
|
609
633
|
percent: e.target.value === "percent"
|
|
610
634
|
}),
|
|
611
635
|
disabled: r,
|
|
612
|
-
children: [W(
|
|
636
|
+
children: [W(q, {
|
|
613
637
|
value: "items",
|
|
614
638
|
children: a("condition.items")
|
|
615
|
-
}), W(
|
|
639
|
+
}), W(q, {
|
|
616
640
|
value: "percent",
|
|
617
641
|
children: a("condition.percent")
|
|
618
642
|
})]
|
|
@@ -621,41 +645,50 @@ var tr = R((e) => {
|
|
|
621
645
|
]
|
|
622
646
|
});
|
|
623
647
|
});
|
|
624
|
-
|
|
625
|
-
var
|
|
626
|
-
let { option: t, onOptionChange: n,
|
|
648
|
+
ar.displayName = "TopNOption";
|
|
649
|
+
var or = R((e) => {
|
|
650
|
+
let { option: t, onOptionChange: n, selector: r, readOnly: i, ...a } = e, o = F(), s = ((e) => {
|
|
651
|
+
switch (e?.getName()) {
|
|
652
|
+
case E.BuiltInSelectorNames.Date: return "date";
|
|
653
|
+
case E.BuiltInSelectorNames.Time: return "time";
|
|
654
|
+
case E.BuiltInSelectorNames.DateTime: return "dateTime";
|
|
655
|
+
default: return;
|
|
656
|
+
}
|
|
657
|
+
})(r);
|
|
627
658
|
return G(K, {
|
|
628
|
-
...
|
|
659
|
+
...a,
|
|
629
660
|
sx: {
|
|
630
661
|
display: "flex",
|
|
631
662
|
flexDirection: "row",
|
|
632
663
|
gap: .25,
|
|
633
|
-
...
|
|
664
|
+
...a?.sx
|
|
634
665
|
},
|
|
635
|
-
children: [W(
|
|
666
|
+
children: [W(Wn, {
|
|
636
667
|
option: t?.from ?? null,
|
|
637
|
-
|
|
668
|
+
literal: s,
|
|
669
|
+
placeholder: o("condition.from"),
|
|
638
670
|
onOptionChange: (e) => {
|
|
639
671
|
n({
|
|
640
672
|
...t,
|
|
641
673
|
from: e
|
|
642
674
|
});
|
|
643
675
|
},
|
|
644
|
-
readOnly:
|
|
676
|
+
readOnly: i,
|
|
645
677
|
sx: {
|
|
646
678
|
flex: .6,
|
|
647
679
|
minWidth: 0
|
|
648
680
|
}
|
|
649
|
-
}), W(
|
|
681
|
+
}), W(Wn, {
|
|
650
682
|
option: t?.to ?? null,
|
|
651
|
-
|
|
683
|
+
literal: s,
|
|
684
|
+
placeholder: o("condition.to"),
|
|
652
685
|
onOptionChange: (e) => {
|
|
653
686
|
n({
|
|
654
687
|
...t,
|
|
655
688
|
to: e
|
|
656
689
|
});
|
|
657
690
|
},
|
|
658
|
-
readOnly:
|
|
691
|
+
readOnly: i,
|
|
659
692
|
sx: {
|
|
660
693
|
flex: .6,
|
|
661
694
|
minWidth: 0
|
|
@@ -663,10 +696,10 @@ var nr = R((e) => {
|
|
|
663
696
|
})]
|
|
664
697
|
});
|
|
665
698
|
});
|
|
666
|
-
|
|
667
|
-
var
|
|
668
|
-
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o =
|
|
669
|
-
return W(
|
|
699
|
+
or.displayName = "BetweenOption";
|
|
700
|
+
var sr = R((e) => {
|
|
701
|
+
let { option: t, onOptionChange: n, readOnly: r, ...i } = e, a = F(), o = Bn(), s = t?.isIFormula ? o.display(t) : t ?? "";
|
|
702
|
+
return W(me, {
|
|
670
703
|
size: "small",
|
|
671
704
|
home: o.home,
|
|
672
705
|
value: s,
|
|
@@ -681,11 +714,11 @@ var rr = R((e) => {
|
|
|
681
714
|
...i
|
|
682
715
|
});
|
|
683
716
|
});
|
|
684
|
-
|
|
685
|
-
var
|
|
717
|
+
sr.displayName = "ExpressionOption";
|
|
718
|
+
var cr = R((e) => {
|
|
686
719
|
let { value: t = null, selectors: n, onChange: r, title: i, allowNull: a = !1, readOnly: o = !1, ...s } = e, c = F(), l = i ?? c("condition.selectorTitle"), u = n.map((e) => {
|
|
687
720
|
let t = e.getName();
|
|
688
|
-
return W(
|
|
721
|
+
return W(q, {
|
|
689
722
|
value: t,
|
|
690
723
|
children: e.getTitle?.() ?? e.getName()
|
|
691
724
|
}, t);
|
|
@@ -694,10 +727,10 @@ var ir = R((e) => {
|
|
|
694
727
|
...d,
|
|
695
728
|
"& .MuiSelect-icon": { display: "none" },
|
|
696
729
|
"& .MuiOutlinedInput-notchedOutline": { borderColor: "action.disabled" }
|
|
697
|
-
}), G(
|
|
730
|
+
}), G(cn, {
|
|
698
731
|
size: "small",
|
|
699
732
|
...s,
|
|
700
|
-
children: [W(
|
|
733
|
+
children: [W(fn, { children: l }), G(J, {
|
|
701
734
|
value: t?.getName() ?? "null",
|
|
702
735
|
label: l,
|
|
703
736
|
readOnly: o,
|
|
@@ -710,28 +743,28 @@ var ir = R((e) => {
|
|
|
710
743
|
r(i);
|
|
711
744
|
},
|
|
712
745
|
sx: d,
|
|
713
|
-
children: [a && W(
|
|
746
|
+
children: [a && W(q, {
|
|
714
747
|
value: "null",
|
|
715
748
|
children: c("condition.anySelector")
|
|
716
749
|
}), u]
|
|
717
750
|
})]
|
|
718
751
|
});
|
|
719
752
|
});
|
|
720
|
-
|
|
721
|
-
var
|
|
722
|
-
let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = F(), c =
|
|
753
|
+
cr.displayName = "SelectorSelect";
|
|
754
|
+
var lr = R((e) => {
|
|
755
|
+
let { value: t, operators: n, onChange: r, title: i, readOnly: a = !1, ...o } = e, s = F(), c = vt(), l = i ?? s("condition.operatorTitle"), u = /* @__PURE__ */ new Map();
|
|
723
756
|
n.forEach((e) => {
|
|
724
757
|
u.set(e.getName(), e);
|
|
725
758
|
});
|
|
726
|
-
let d =
|
|
759
|
+
let d = er(n, (e) => W(q, {
|
|
727
760
|
value: e.getName(),
|
|
728
|
-
sx:
|
|
761
|
+
sx: rr,
|
|
729
762
|
children: e.getTitle?.()
|
|
730
763
|
}, e.getName()), s, c);
|
|
731
|
-
return G(
|
|
764
|
+
return G(cn, {
|
|
732
765
|
size: "small",
|
|
733
766
|
...o,
|
|
734
|
-
children: [W(
|
|
767
|
+
children: [W(fn, { children: l }), W(J, {
|
|
735
768
|
value: t?.getName() ?? "null",
|
|
736
769
|
label: l,
|
|
737
770
|
readOnly: a,
|
|
@@ -751,16 +784,16 @@ var ar = R((e) => {
|
|
|
751
784
|
})]
|
|
752
785
|
});
|
|
753
786
|
});
|
|
754
|
-
|
|
755
|
-
var
|
|
756
|
-
let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = F(), m =
|
|
787
|
+
lr.displayName = "OperatorSelect";
|
|
788
|
+
var ur = R(L((e, t) => {
|
|
789
|
+
let { icon: n, tooltip: r, label: i, darkMode: a, propsPanel: o, value: s, operators: c, onChange: l, title: u, readOnly: d = !1, ...f } = e, p = F(), m = vt();
|
|
757
790
|
u ?? p("condition.operatorTitle");
|
|
758
791
|
let h = n || W(N, { iconKey: "Add" }), g = H(l);
|
|
759
|
-
return g.current = l, W(
|
|
792
|
+
return g.current = l, W(Ft, {
|
|
760
793
|
ref: t,
|
|
761
794
|
createPopupPanel: z((e) => {
|
|
762
|
-
let { closeFloatAll: t } = e, n =
|
|
763
|
-
sx:
|
|
795
|
+
let { closeFloatAll: t } = e, n = er(c, (e) => W(q, {
|
|
796
|
+
sx: rr,
|
|
764
797
|
value: e.getName(),
|
|
765
798
|
onClick: () => {
|
|
766
799
|
t?.(), g.current(e);
|
|
@@ -776,9 +809,9 @@ var or = R(L((e, t) => {
|
|
|
776
809
|
},
|
|
777
810
|
...o,
|
|
778
811
|
onKeyDown: (e) => {
|
|
779
|
-
e.which ===
|
|
812
|
+
e.which === ot.Enter && t?.();
|
|
780
813
|
},
|
|
781
|
-
children: W(
|
|
814
|
+
children: W(mn, {
|
|
782
815
|
disablePadding: !0,
|
|
783
816
|
children: n
|
|
784
817
|
})
|
|
@@ -794,15 +827,15 @@ var or = R(L((e, t) => {
|
|
|
794
827
|
icon: h,
|
|
795
828
|
...f
|
|
796
829
|
});
|
|
797
|
-
})),
|
|
830
|
+
})), dr = R((e) => {
|
|
798
831
|
let { operator: t, inputs: n, onOptionChange: r, operators: i, selector: a, readOnly: o, ...s } = e, c = F(), l = t.getName() === "not", u = l ? null : t.getName() === "and" ? c("condition.and") : c("condition.or"), d = (e, t) => {
|
|
799
832
|
let i = n.slice(), a = {
|
|
800
833
|
operator: t.operator,
|
|
801
834
|
param: t.param
|
|
802
835
|
};
|
|
803
836
|
((e, t) => {
|
|
804
|
-
let n =
|
|
805
|
-
n &&
|
|
837
|
+
let n = Xn.get(e);
|
|
838
|
+
n && Xn.set(t, n);
|
|
806
839
|
})(n[e], a), i[e] = a, r(i);
|
|
807
840
|
}, f = l ? c("condition.not") : u;
|
|
808
841
|
return W(K, {
|
|
@@ -815,7 +848,7 @@ var or = R(L((e, t) => {
|
|
|
815
848
|
borderColor: "divider"
|
|
816
849
|
},
|
|
817
850
|
...s,
|
|
818
|
-
children: n.map((e, t) => W(I.Fragment, { children: W(
|
|
851
|
+
children: n.map((e, t) => W(I.Fragment, { children: W(vr, {
|
|
819
852
|
operatorTitle: t > 0 ? f ?? "" : "",
|
|
820
853
|
operatorParam: e,
|
|
821
854
|
onOperatorParamChange: (e) => d(t, e),
|
|
@@ -827,13 +860,13 @@ var or = R(L((e, t) => {
|
|
|
827
860
|
selector: a,
|
|
828
861
|
readOnly: o,
|
|
829
862
|
required: l
|
|
830
|
-
}) },
|
|
863
|
+
}) }, Zn(e)))
|
|
831
864
|
});
|
|
832
865
|
});
|
|
833
|
-
|
|
834
|
-
var
|
|
866
|
+
dr.displayName = "CombinatorOption";
|
|
867
|
+
var fr = R((e) => {
|
|
835
868
|
let { option: t, onOptionChange: n, readOnly: r } = e, i = F();
|
|
836
|
-
return G(
|
|
869
|
+
return G(Cn, {
|
|
837
870
|
exclusive: !0,
|
|
838
871
|
size: "small",
|
|
839
872
|
value: t ?? !0,
|
|
@@ -846,34 +879,34 @@ var cr = R((e) => {
|
|
|
846
879
|
backgroundColor: "background.paper"
|
|
847
880
|
},
|
|
848
881
|
disabled: r,
|
|
849
|
-
children: [W(
|
|
882
|
+
children: [W(Sn, {
|
|
850
883
|
value: !0,
|
|
851
884
|
children: i("condition.true")
|
|
852
|
-
}), W(
|
|
885
|
+
}), W(Sn, {
|
|
853
886
|
value: !1,
|
|
854
887
|
children: i("condition.false")
|
|
855
888
|
})]
|
|
856
889
|
});
|
|
857
890
|
});
|
|
858
|
-
function
|
|
859
|
-
if (!e) return
|
|
891
|
+
function pr(e, t) {
|
|
892
|
+
if (!e) return mr(t);
|
|
860
893
|
let n = /* @__PURE__ */ new Date(`${e}T${t || "00:00"}`);
|
|
861
894
|
return isNaN(n.getTime()) ? null : n;
|
|
862
895
|
}
|
|
863
|
-
function
|
|
864
|
-
return e ?
|
|
896
|
+
function mr(e) {
|
|
897
|
+
return e ? pr("1970-01-01", e) : null;
|
|
865
898
|
}
|
|
866
|
-
|
|
867
|
-
var
|
|
868
|
-
let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = F(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u =
|
|
899
|
+
fr.displayName = "BooleanOption";
|
|
900
|
+
var hr = R((e) => {
|
|
901
|
+
let { option: t, onOptionChange: n, allowFormula: r, readOnly: i, type: a = "dateTime", ...o } = e, s = F(), c = a === "date" || a === "dateTime", l = a === "time" || a === "dateTime", u = j(), d = z((e) => {
|
|
869
902
|
if (!u || e === null) return null;
|
|
870
903
|
let t = u.createCell({ value: e }), n = t.getValue();
|
|
871
|
-
return t.getType() ===
|
|
904
|
+
return t.getType() === Ce.Number ? n : null;
|
|
872
905
|
}, [u]), f = z((e) => u ? u.createCell({
|
|
873
906
|
value: e,
|
|
874
907
|
style: { numberFormat: "Short DateTime" }
|
|
875
908
|
}).getDate() : null, [u]);
|
|
876
|
-
if (r && (typeof t == "string" || t?.isIFormula)) return W(
|
|
909
|
+
if (r && (typeof t == "string" || t?.isIFormula)) return W(Wn, {
|
|
877
910
|
option: t,
|
|
878
911
|
onOptionChange: (e) => n(e),
|
|
879
912
|
readOnly: i,
|
|
@@ -892,22 +925,22 @@ var dr = R((e) => {
|
|
|
892
925
|
gap: .5,
|
|
893
926
|
...o?.sx
|
|
894
927
|
},
|
|
895
|
-
children: [c && W(
|
|
928
|
+
children: [c && W(Fn, {
|
|
896
929
|
option: m,
|
|
897
930
|
type: "date",
|
|
898
931
|
placeholder: s("condition.enterDate"),
|
|
899
932
|
onOptionChange: (e) => {
|
|
900
|
-
let t = d(
|
|
933
|
+
let t = d(pr(e, g));
|
|
901
934
|
n(t);
|
|
902
935
|
},
|
|
903
936
|
sx: { flex: 1.5 },
|
|
904
937
|
readOnly: i
|
|
905
|
-
}), l && W(
|
|
938
|
+
}), l && W(Fn, {
|
|
906
939
|
option: g,
|
|
907
940
|
type: "time",
|
|
908
941
|
placeholder: s("condition.enterTime"),
|
|
909
942
|
onOptionChange: (e) => {
|
|
910
|
-
let t = d(a === "time" ?
|
|
943
|
+
let t = d(a === "time" ? mr(e) : pr(m, e));
|
|
911
944
|
n(t);
|
|
912
945
|
},
|
|
913
946
|
sx: { flex: 1 },
|
|
@@ -915,23 +948,23 @@ var dr = R((e) => {
|
|
|
915
948
|
})]
|
|
916
949
|
});
|
|
917
950
|
});
|
|
918
|
-
|
|
919
|
-
var
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
]),
|
|
930
|
-
let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = F(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] =
|
|
951
|
+
hr.displayName = "DateTimeOption";
|
|
952
|
+
var gr = E.BuiltInOperatorNames, _r = /* @__PURE__ */ new Set([
|
|
953
|
+
gr.EqualTo,
|
|
954
|
+
gr.GreaterThan,
|
|
955
|
+
gr.GreaterThanEqualTo,
|
|
956
|
+
gr.LessThan,
|
|
957
|
+
gr.LessThanEqualTo,
|
|
958
|
+
gr.After,
|
|
959
|
+
gr.AfterEqualTo,
|
|
960
|
+
gr.Before,
|
|
961
|
+
gr.BeforeEqualTo
|
|
962
|
+
]), vr = R((e) => {
|
|
963
|
+
let { operatorParam: t, onOperatorParamChange: n, onRemove: r, operators: i, selector: a, operatorTitle: o, readOnly: s, required: c, ...l } = e, u = F(), d = o ?? u("condition.when"), f = t?.operator ?? null, p = i.find((e) => e.getName() === f) ?? null, m = t?.param ?? null, h = !!p?.isCombinator?.(), [g, { width: _ }] = pe(), v = V(() => !p || h ? null : p.getParamType?.(a ?? void 0) ?? null, [
|
|
931
964
|
p,
|
|
932
965
|
h,
|
|
933
966
|
a
|
|
934
|
-
]), y = !h && v !== "list" && _ > 360, b =
|
|
967
|
+
]), y = !h && v !== "list" && _ > 360, b = ht((e) => {
|
|
935
968
|
n({
|
|
936
969
|
operator: f,
|
|
937
970
|
param: e
|
|
@@ -945,8 +978,8 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
945
978
|
},
|
|
946
979
|
option: m,
|
|
947
980
|
onOptionChange: b
|
|
948
|
-
}, t = !!f &&
|
|
949
|
-
return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ?
|
|
981
|
+
}, t = !!f && _r.has(f);
|
|
982
|
+
return v === E.BuiltInSelectorNames.Number || v === E.BuiltInSelectorNames.TextLength ? W(t ? Wn : In, { ...e }) : v === E.BuiltInSelectorNames.Whole ? t ? W(Wn, { ...e }) : W(In, {
|
|
950
983
|
...e,
|
|
951
984
|
placeholder: u("condition.enterWholeNumber"),
|
|
952
985
|
slotProps: { htmlInput: {
|
|
@@ -963,31 +996,35 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
963
996
|
/^-?\d+$/.test(e.clipboardData.getData("text")) || e.preventDefault();
|
|
964
997
|
}
|
|
965
998
|
} }
|
|
966
|
-
}) : v === E.BuiltInSelectorNames.Text ? W(t ?
|
|
999
|
+
}) : v === E.BuiltInSelectorNames.Text ? W(t ? Wn : Fn, { ...e }) : v === E.BuiltInSelectorNames.DateTime ? W(hr, {
|
|
967
1000
|
...e,
|
|
968
1001
|
allowFormula: t
|
|
969
|
-
}) : v === E.BuiltInSelectorNames.Date ? W(
|
|
1002
|
+
}) : v === E.BuiltInSelectorNames.Date ? W(hr, {
|
|
970
1003
|
...e,
|
|
971
1004
|
type: "date",
|
|
972
1005
|
allowFormula: t
|
|
973
|
-
}) : v === E.BuiltInSelectorNames.Time ? W(
|
|
1006
|
+
}) : v === E.BuiltInSelectorNames.Time ? W(hr, {
|
|
974
1007
|
...e,
|
|
975
1008
|
type: "time",
|
|
976
1009
|
allowFormula: t
|
|
977
|
-
}) : v === E.BuiltInSelectorNames.List ? W(
|
|
1010
|
+
}) : v === E.BuiltInSelectorNames.List ? W(Kn, { ...e }) : v === E.BuiltInSelectorNames.Logical ? W(fr, { ...e }) : v === E.BuiltInOperatorNames.Average ? W(Jn, { ...e }) : v === E.BuiltInOperatorNames.TimePeriod ? W(ir, { ...e }) : v === E.BuiltInOperatorNames.TopN ? W(ar, { ...e }) : v === E.BuiltInOperatorNames.Between ? W(or, {
|
|
1011
|
+
...e,
|
|
1012
|
+
selector: a
|
|
1013
|
+
}) : v === E.BuiltInOperatorNames.Expression ? W(sr, { ...e }) : null;
|
|
978
1014
|
}, [
|
|
979
1015
|
p,
|
|
980
1016
|
h,
|
|
981
1017
|
v,
|
|
982
1018
|
m,
|
|
1019
|
+
a,
|
|
983
1020
|
u
|
|
984
1021
|
]), S = V(() => h && m ? Array.isArray(m) ? m : [m] : [], [h, m]), C = h && p?.getName() === "not", w = (e) => {
|
|
985
1022
|
if (!e || e === p) return;
|
|
986
1023
|
let t = !!e.isCombinator?.(), r;
|
|
987
|
-
if (t && h) r = e.getName() === "not" ? S[0] ??
|
|
1024
|
+
if (t && h) r = e.getName() === "not" ? S[0] ?? tr(e, i, a) : S.length > 0 ? S : tr(e, i, a);
|
|
988
1025
|
else {
|
|
989
1026
|
let n = p?.getParamType?.(a ?? void 0) ?? null, o = e.getParamType?.(a ?? void 0) ?? null;
|
|
990
|
-
r = !t && o && o === n ? m :
|
|
1027
|
+
r = !t && o && o === n ? m : tr(e, i, a);
|
|
991
1028
|
}
|
|
992
1029
|
n({
|
|
993
1030
|
operator: e?.getName() ?? null,
|
|
@@ -1015,7 +1052,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1015
1052
|
gap: .5
|
|
1016
1053
|
},
|
|
1017
1054
|
children: [
|
|
1018
|
-
W(
|
|
1055
|
+
W(lr, {
|
|
1019
1056
|
title: d,
|
|
1020
1057
|
sx: { flex: .4 },
|
|
1021
1058
|
value: p,
|
|
@@ -1024,12 +1061,12 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1024
1061
|
readOnly: s
|
|
1025
1062
|
}),
|
|
1026
1063
|
x,
|
|
1027
|
-
!s && !c && W(
|
|
1064
|
+
!s && !c && W(Pt, {
|
|
1028
1065
|
icon: W(N, { iconKey: "Close" }),
|
|
1029
1066
|
onClick: r
|
|
1030
1067
|
})
|
|
1031
1068
|
]
|
|
1032
|
-
}) : G(
|
|
1069
|
+
}) : G(Yt, { children: [G(K, {
|
|
1033
1070
|
sx: {
|
|
1034
1071
|
display: "flex",
|
|
1035
1072
|
flexDirection: "row",
|
|
@@ -1037,7 +1074,7 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1037
1074
|
gap: .5
|
|
1038
1075
|
},
|
|
1039
1076
|
children: [
|
|
1040
|
-
W(
|
|
1077
|
+
W(lr, {
|
|
1041
1078
|
title: d,
|
|
1042
1079
|
sx: { flex: 1 },
|
|
1043
1080
|
value: p,
|
|
@@ -1045,14 +1082,14 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1045
1082
|
onChange: w,
|
|
1046
1083
|
readOnly: s
|
|
1047
1084
|
}),
|
|
1048
|
-
h && !C && !s && W(
|
|
1085
|
+
h && !C && !s && W(ur, {
|
|
1049
1086
|
label: p?.getTitle?.(),
|
|
1050
1087
|
icon: W(N, { iconKey: "Add" }),
|
|
1051
1088
|
operators: i,
|
|
1052
1089
|
value: null,
|
|
1053
1090
|
onChange: (e) => {
|
|
1054
1091
|
if (!e) return;
|
|
1055
|
-
let t =
|
|
1092
|
+
let t = tr(e, i, a), r = [...S, {
|
|
1056
1093
|
operator: e?.getName() ?? null,
|
|
1057
1094
|
param: t
|
|
1058
1095
|
}];
|
|
@@ -1062,13 +1099,13 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1062
1099
|
});
|
|
1063
1100
|
}
|
|
1064
1101
|
}),
|
|
1065
|
-
!s && !c && W(
|
|
1102
|
+
!s && !c && W(Pt, {
|
|
1066
1103
|
icon: W(N, { iconKey: "Close" }),
|
|
1067
1104
|
disabled: s,
|
|
1068
1105
|
onClick: r
|
|
1069
1106
|
})
|
|
1070
1107
|
]
|
|
1071
|
-
}), h ? W(
|
|
1108
|
+
}), h ? W(dr, {
|
|
1072
1109
|
operator: p,
|
|
1073
1110
|
inputs: S,
|
|
1074
1111
|
onOptionChange: (e) => {
|
|
@@ -1083,9 +1120,9 @@ var fr = E.BuiltInOperatorNames, pr = /* @__PURE__ */ new Set([
|
|
|
1083
1120
|
}) : x] })
|
|
1084
1121
|
});
|
|
1085
1122
|
});
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1088
|
-
let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = F(), d =
|
|
1123
|
+
vr.displayName = "OperatorAndParamEditor";
|
|
1124
|
+
var yr = R((e) => {
|
|
1125
|
+
let { condition: t, onConditionChange: n, showIncludeBlanks: r = !1, selectorTitle: i, readOnly: a, operators: o, selectors: s, ranges: c, ...l } = e, u = F(), d = vt(), [f, p] = U(() => t?.getSelector() ?? null), [m, h] = U(() => t?.getOperator() ? {
|
|
1089
1126
|
operator: t.getOperator().getName(),
|
|
1090
1127
|
param: t.getParam()
|
|
1091
1128
|
} : null), [g, _] = U(() => t?.isIncludeBlanks() ?? !1);
|
|
@@ -1097,7 +1134,7 @@ var hr = R((e) => {
|
|
|
1097
1134
|
param: t.getParam()
|
|
1098
1135
|
} : null), _(t.isIncludeBlanks());
|
|
1099
1136
|
}, [t]);
|
|
1100
|
-
let v = V(() => (s ?? Object.values(
|
|
1137
|
+
let v = V(() => (s ?? Object.values(_e.BuiltInSelectors)).slice().sort((e, t) => (e.getTitle?.() ?? "").localeCompare(t.getTitle?.() ?? "", d)), [s, d]), y = V(() => o ?? Object.values(_e.BuiltInOperators), [o]), b = V(() => $n(f, y, d), [
|
|
1101
1138
|
f,
|
|
1102
1139
|
y,
|
|
1103
1140
|
d
|
|
@@ -1108,19 +1145,19 @@ var hr = R((e) => {
|
|
|
1108
1145
|
let e = Array.from(C.current?.querySelectorAll("input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"hidden\"]):not([tabindex=\"-1\"]), textarea") ?? []).find((e) => !e.disabled && !e.readOnly && e.getAttribute("aria-hidden") !== "true");
|
|
1109
1146
|
e && (e.focus(), e.select());
|
|
1110
1147
|
}, [f, m]);
|
|
1111
|
-
let
|
|
1148
|
+
let ee = (e) => {
|
|
1112
1149
|
h(e), n?.({
|
|
1113
1150
|
selector: f,
|
|
1114
1151
|
...e,
|
|
1115
1152
|
includeBlanks: g
|
|
1116
1153
|
});
|
|
1117
|
-
},
|
|
1154
|
+
}, te = r;
|
|
1118
1155
|
return G(K, {
|
|
1119
1156
|
sx: {
|
|
1120
1157
|
display: "flex",
|
|
1121
1158
|
flexDirection: "column",
|
|
1122
1159
|
p: 2,
|
|
1123
|
-
pb: +!
|
|
1160
|
+
pb: +!te,
|
|
1124
1161
|
gap: 1,
|
|
1125
1162
|
backgroundColor: "action.hover",
|
|
1126
1163
|
border: 1,
|
|
@@ -1129,27 +1166,27 @@ var hr = R((e) => {
|
|
|
1129
1166
|
},
|
|
1130
1167
|
...l,
|
|
1131
1168
|
children: [
|
|
1132
|
-
W(
|
|
1169
|
+
W(cr, {
|
|
1133
1170
|
title: i,
|
|
1134
1171
|
selectors: v,
|
|
1135
1172
|
value: f,
|
|
1136
1173
|
onChange: (e) => {
|
|
1137
1174
|
m && x.current.set(S(f), m);
|
|
1138
1175
|
let t = ((e) => {
|
|
1139
|
-
let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s =
|
|
1176
|
+
let { from: t, to: n, current: r, remembered: i, operators: a, context: o } = e, s = $n(n, a), c = (e) => e && s.find((t) => t.getName() === e) || null;
|
|
1140
1177
|
if (i && c(i.operator)) return i;
|
|
1141
1178
|
let l = c(r?.operator);
|
|
1142
1179
|
if (r && l) {
|
|
1143
1180
|
let e = (l.getParamType?.(t ?? void 0) ?? null) !== (l.getParamType?.(n ?? void 0) ?? null);
|
|
1144
1181
|
return l.isCombinator?.() || e ? {
|
|
1145
1182
|
operator: r.operator,
|
|
1146
|
-
param:
|
|
1183
|
+
param: tr(l, s, n)
|
|
1147
1184
|
} : r;
|
|
1148
1185
|
}
|
|
1149
1186
|
let u = n?.getDefaultCondition?.(o) ?? null, d = c(u?.operator);
|
|
1150
1187
|
return u && d ? {
|
|
1151
1188
|
operator: u.operator,
|
|
1152
|
-
param: u.param === void 0 ?
|
|
1189
|
+
param: u.param === void 0 ? tr(d, s, n) : u.param
|
|
1153
1190
|
} : null;
|
|
1154
1191
|
})({
|
|
1155
1192
|
from: f,
|
|
@@ -1174,9 +1211,9 @@ var hr = R((e) => {
|
|
|
1174
1211
|
m ? W(K, {
|
|
1175
1212
|
ref: C,
|
|
1176
1213
|
sx: { display: "contents" },
|
|
1177
|
-
children: W(
|
|
1214
|
+
children: W(vr, {
|
|
1178
1215
|
operatorParam: m,
|
|
1179
|
-
onOperatorParamChange:
|
|
1216
|
+
onOperatorParamChange: ee,
|
|
1180
1217
|
onRemove: () => {
|
|
1181
1218
|
h(null), n?.({
|
|
1182
1219
|
selector: f,
|
|
@@ -1191,21 +1228,21 @@ var hr = R((e) => {
|
|
|
1191
1228
|
})
|
|
1192
1229
|
}) : !a && W(K, {
|
|
1193
1230
|
sx: { display: "flex" },
|
|
1194
|
-
children: W(
|
|
1231
|
+
children: W(ur, {
|
|
1195
1232
|
label: u("condition.when"),
|
|
1196
1233
|
operators: b,
|
|
1197
1234
|
value: null,
|
|
1198
1235
|
onChange: (e) => {
|
|
1199
|
-
e && (w.current = !0,
|
|
1236
|
+
e && (w.current = !0, ee({
|
|
1200
1237
|
operator: e?.getName() ?? null,
|
|
1201
|
-
param:
|
|
1238
|
+
param: tr(e, b, f)
|
|
1202
1239
|
}));
|
|
1203
1240
|
},
|
|
1204
1241
|
readOnly: a
|
|
1205
1242
|
})
|
|
1206
1243
|
}),
|
|
1207
|
-
|
|
1208
|
-
control: W(
|
|
1244
|
+
te && W(ln, {
|
|
1245
|
+
control: W(nn, {
|
|
1209
1246
|
checked: g,
|
|
1210
1247
|
onChange: (e) => {
|
|
1211
1248
|
t = e.target.checked, _(t), n?.({
|
|
@@ -1223,8 +1260,8 @@ var hr = R((e) => {
|
|
|
1223
1260
|
]
|
|
1224
1261
|
});
|
|
1225
1262
|
});
|
|
1226
|
-
|
|
1227
|
-
var
|
|
1263
|
+
yr.displayName = "ConditionEditor";
|
|
1264
|
+
var br = R((e) => {
|
|
1228
1265
|
let { variant: t = "format", children: n, sx: r, ...i } = e;
|
|
1229
1266
|
return W(K, {
|
|
1230
1267
|
className: `sxl-cf-rule-section sxl-cf-rule-section-${t}`,
|
|
@@ -1243,34 +1280,34 @@ var gr = R((e) => {
|
|
|
1243
1280
|
children: n
|
|
1244
1281
|
});
|
|
1245
1282
|
});
|
|
1246
|
-
|
|
1247
|
-
var
|
|
1283
|
+
br.displayName = "RuleSection";
|
|
1284
|
+
var xr = new he("transparent"), Sr = {
|
|
1248
1285
|
lightRedFillDarkRedText: Z("conditionalFormat.preset.lightRedFillDarkRedText"),
|
|
1249
1286
|
yellowFillDarkYellowText: Z("conditionalFormat.preset.yellowFillDarkYellowText"),
|
|
1250
1287
|
greenFillDarkGreenText: Z("conditionalFormat.preset.greenFillDarkGreenText"),
|
|
1251
1288
|
lightRedFill: Z("conditionalFormat.preset.lightRedFill"),
|
|
1252
1289
|
redText: Z("conditionalFormat.preset.redText"),
|
|
1253
1290
|
redBorder: Z("conditionalFormat.preset.redBorder")
|
|
1254
|
-
},
|
|
1255
|
-
let { format:
|
|
1256
|
-
let
|
|
1257
|
-
for (let [
|
|
1258
|
-
let r = { ...
|
|
1259
|
-
Object.keys(
|
|
1260
|
-
},
|
|
1291
|
+
}, Cr = (e) => e ? typeof e == "string" ? e : e.type === be.Type.None ? null : e.color ?? e.foreground ?? null : null, wr = (e, t) => e === "auto" ? null : l(e, t), Tr = R((e) => {
|
|
1292
|
+
let { format: t, onFormatChange: i, readOnly: a, ...o } = e, s = F(), { workbook: c, schemeLookup: l, themeKey: u, darkMode: d, propsColorPanel: f } = _(), p = t?.font ?? null, m = (p?.weight ?? 400) >= 600, g = p?.style === xe.Style.Italic, v = !!p?.underline && p.underline !== xe.UnderlineStyle.None, y = !!p?.strike, b = (e) => {
|
|
1293
|
+
let n = { ...p };
|
|
1294
|
+
for (let [t, r] of Object.entries(e)) r === void 0 ? delete n[t] : n[t] = r;
|
|
1295
|
+
let r = { ...t };
|
|
1296
|
+
Object.keys(n).length === 0 ? delete r.font : r.font = n, i(Object.keys(r).length === 0 ? null : r);
|
|
1297
|
+
}, x = V(() => c?.getStyles().getNormal().getFont().getColor(), [c, u]), S = V(() => wr(p?.color, c), [
|
|
1261
1298
|
p?.color,
|
|
1262
1299
|
c,
|
|
1263
1300
|
u
|
|
1264
|
-
]),
|
|
1265
|
-
|
|
1301
|
+
]), C = V(() => wr(Cr(t?.fill), c), [
|
|
1302
|
+
t?.fill,
|
|
1266
1303
|
c,
|
|
1267
1304
|
u
|
|
1268
|
-
]),
|
|
1305
|
+
]), w = {
|
|
1269
1306
|
padding: "4px",
|
|
1270
1307
|
border: "none",
|
|
1271
1308
|
borderRadius: 1
|
|
1272
1309
|
};
|
|
1273
|
-
return G(
|
|
1310
|
+
return G(br, {
|
|
1274
1311
|
...o,
|
|
1275
1312
|
children: [G(K, {
|
|
1276
1313
|
sx: {
|
|
@@ -1286,11 +1323,11 @@ var _r = new me("transparent"), vr = {
|
|
|
1286
1323
|
gap: .5,
|
|
1287
1324
|
flexWrap: "wrap"
|
|
1288
1325
|
},
|
|
1289
|
-
children:
|
|
1290
|
-
let n =
|
|
1291
|
-
return W(
|
|
1326
|
+
children: Pe.map((e, t) => {
|
|
1327
|
+
let n = wr(Cr(e.style.fill), c), r = wr(e.style.font?.color, c), o = e.style.borders ? wr(Object.values(e.style.borders)[0]?.color, c) : null;
|
|
1328
|
+
return W(h, {
|
|
1292
1329
|
sheet: !0,
|
|
1293
|
-
title: s(
|
|
1330
|
+
title: s(Sr[e.key] ?? e.key),
|
|
1294
1331
|
disabled: a,
|
|
1295
1332
|
onClick: () => i(structuredClone(e.style)),
|
|
1296
1333
|
sx: {
|
|
@@ -1302,9 +1339,9 @@ var _r = new me("transparent"), vr = {
|
|
|
1302
1339
|
children: "Aa"
|
|
1303
1340
|
}, t);
|
|
1304
1341
|
})
|
|
1305
|
-
}), W(
|
|
1342
|
+
}), W(h, {
|
|
1306
1343
|
title: s("conditionalFormat.clearStyle"),
|
|
1307
|
-
disabled: a || !
|
|
1344
|
+
disabled: a || !t,
|
|
1308
1345
|
onClick: () => i(null),
|
|
1309
1346
|
sx: {
|
|
1310
1347
|
color: "text.secondary",
|
|
@@ -1322,86 +1359,86 @@ var _r = new me("transparent"), vr = {
|
|
|
1322
1359
|
gap: .25
|
|
1323
1360
|
},
|
|
1324
1361
|
children: [
|
|
1325
|
-
W(
|
|
1362
|
+
W(Sn, {
|
|
1326
1363
|
value: "bold",
|
|
1327
1364
|
size: "small",
|
|
1328
|
-
sx:
|
|
1329
|
-
selected:
|
|
1365
|
+
sx: w,
|
|
1366
|
+
selected: m,
|
|
1330
1367
|
disabled: a,
|
|
1331
|
-
onChange: () =>
|
|
1368
|
+
onChange: () => b({ weight: m ? void 0 : 700 }),
|
|
1332
1369
|
children: W(N, { iconKey: "TextBold" })
|
|
1333
1370
|
}),
|
|
1334
|
-
W(
|
|
1371
|
+
W(Sn, {
|
|
1335
1372
|
value: "italic",
|
|
1336
1373
|
size: "small",
|
|
1337
|
-
sx:
|
|
1374
|
+
sx: w,
|
|
1338
1375
|
selected: g,
|
|
1339
1376
|
disabled: a,
|
|
1340
|
-
onChange: () =>
|
|
1377
|
+
onChange: () => b({ style: g ? void 0 : xe.Style.Italic }),
|
|
1341
1378
|
children: W(N, { iconKey: "TextItalic" })
|
|
1342
1379
|
}),
|
|
1343
|
-
W(
|
|
1380
|
+
W(Sn, {
|
|
1344
1381
|
value: "underline",
|
|
1345
1382
|
size: "small",
|
|
1346
|
-
sx:
|
|
1347
|
-
selected:
|
|
1383
|
+
sx: w,
|
|
1384
|
+
selected: v,
|
|
1348
1385
|
disabled: a,
|
|
1349
|
-
onChange: () =>
|
|
1386
|
+
onChange: () => b({ underline: v ? void 0 : xe.UnderlineStyle.Single }),
|
|
1350
1387
|
children: W(N, { iconKey: "TextUnderline" })
|
|
1351
1388
|
}),
|
|
1352
|
-
W(
|
|
1389
|
+
W(Sn, {
|
|
1353
1390
|
value: "strike",
|
|
1354
1391
|
size: "small",
|
|
1355
|
-
sx:
|
|
1356
|
-
selected:
|
|
1392
|
+
sx: w,
|
|
1393
|
+
selected: y,
|
|
1357
1394
|
disabled: a,
|
|
1358
|
-
onChange: () =>
|
|
1395
|
+
onChange: () => b({ strike: !y || void 0 }),
|
|
1359
1396
|
children: W(N, { iconKey: "TextStrike" })
|
|
1360
1397
|
}),
|
|
1361
|
-
c && W(
|
|
1398
|
+
c && W(n, {
|
|
1362
1399
|
tooltip: s("conditionalFormat.border"),
|
|
1363
|
-
selectedBorder:
|
|
1400
|
+
selectedBorder: t?.borders,
|
|
1364
1401
|
createBorder: (e) => c.getStyles().getNormal().createStyle({ borders: e }).getBorders(),
|
|
1365
1402
|
schemeLookup: l,
|
|
1366
|
-
autoColor:
|
|
1403
|
+
autoColor: x,
|
|
1367
1404
|
darkMode: d,
|
|
1368
1405
|
disabled: a,
|
|
1369
1406
|
onSelectBorder: (e) => ((e) => {
|
|
1370
|
-
let
|
|
1371
|
-
e && Object.keys(e).length !== 0 ?
|
|
1407
|
+
let n = { ...t };
|
|
1408
|
+
e && Object.keys(e).length !== 0 ? n.borders = e : delete n.borders, i(Object.keys(n).length === 0 ? null : n);
|
|
1372
1409
|
})(e)
|
|
1373
1410
|
}),
|
|
1374
1411
|
W(r, {
|
|
1375
1412
|
icon: "fill.colored",
|
|
1376
1413
|
tooltip: s("conditionalFormat.fillColor"),
|
|
1377
|
-
selectedColor:
|
|
1414
|
+
selectedColor: C,
|
|
1378
1415
|
disabled: a,
|
|
1379
1416
|
onSelectColor: (e) => ((e) => {
|
|
1380
|
-
let
|
|
1381
|
-
e ?
|
|
1382
|
-
type:
|
|
1417
|
+
let n = { ...t };
|
|
1418
|
+
e ? n.fill = {
|
|
1419
|
+
type: be.Type.Solid,
|
|
1383
1420
|
color: e.toString()
|
|
1384
|
-
} : delete
|
|
1421
|
+
} : delete n.fill, i(Object.keys(n).length === 0 ? null : n);
|
|
1385
1422
|
})(e),
|
|
1386
1423
|
darkMode: d,
|
|
1387
1424
|
propsPanel: {
|
|
1388
1425
|
disableAlpha: !0,
|
|
1389
|
-
autoColor:
|
|
1426
|
+
autoColor: xr,
|
|
1390
1427
|
autoColorLabelKey: Z("color.noFill"),
|
|
1391
|
-
autoColorPosition:
|
|
1428
|
+
autoColorPosition: ee.End,
|
|
1392
1429
|
...f
|
|
1393
1430
|
}
|
|
1394
1431
|
}),
|
|
1395
1432
|
W(r, {
|
|
1396
1433
|
icon: "text.colored",
|
|
1397
1434
|
tooltip: s("conditionalFormat.fontColor"),
|
|
1398
|
-
selectedColor:
|
|
1435
|
+
selectedColor: S,
|
|
1399
1436
|
disabled: a,
|
|
1400
|
-
onSelectColor: (e) =>
|
|
1437
|
+
onSelectColor: (e) => b({ color: e ? e.toString() : void 0 }),
|
|
1401
1438
|
darkMode: d,
|
|
1402
1439
|
propsPanel: {
|
|
1403
1440
|
disableAlpha: !0,
|
|
1404
|
-
autoColor:
|
|
1441
|
+
autoColor: x,
|
|
1405
1442
|
...f
|
|
1406
1443
|
}
|
|
1407
1444
|
})
|
|
@@ -1409,8 +1446,8 @@ var _r = new me("transparent"), vr = {
|
|
|
1409
1446
|
})]
|
|
1410
1447
|
});
|
|
1411
1448
|
});
|
|
1412
|
-
|
|
1413
|
-
var
|
|
1449
|
+
Tr.displayName = "ConditionalFormatStylePicker";
|
|
1450
|
+
var Er = {
|
|
1414
1451
|
[D.ColorStopType.AutoMin]: Z("conditionalFormat.stopType.autoMin"),
|
|
1415
1452
|
[D.ColorStopType.AutoMax]: Z("conditionalFormat.stopType.autoMax"),
|
|
1416
1453
|
[D.ColorStopType.Min]: Z("conditionalFormat.stopType.min"),
|
|
@@ -1419,13 +1456,13 @@ var Sr = {
|
|
|
1419
1456
|
[D.ColorStopType.Percent]: Z("conditionalFormat.stopType.percent"),
|
|
1420
1457
|
[D.ColorStopType.Percentile]: Z("conditionalFormat.stopType.percentile"),
|
|
1421
1458
|
[D.ColorStopType.Formula]: Z("conditionalFormat.stopType.formula")
|
|
1422
|
-
},
|
|
1459
|
+
}, Dr = /* @__PURE__ */ new Set([
|
|
1423
1460
|
D.ColorStopType.AutoMin,
|
|
1424
1461
|
D.ColorStopType.AutoMax,
|
|
1425
1462
|
D.ColorStopType.Min,
|
|
1426
1463
|
D.ColorStopType.Max
|
|
1427
|
-
]),
|
|
1428
|
-
let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } =
|
|
1464
|
+
]), Or = R((e) => {
|
|
1465
|
+
let { label: t, stop: n, onStopChange: i, allowedTypes: a, showColor: o = !1, leading: s, showExclusive: c = !1, readOnly: l, ...u } = e, d = F(), { darkMode: f, toColor: p, propsColorPanel: m } = _(), h = Bn(), g = n.type ?? D.ColorStopType.Num, v = !Dr.has(g), y = l || !v, b = g === D.ColorStopType.Formula, x = n.value?.isIFormula ? n.value : null, S = n.color, C = o ? p(S) : null;
|
|
1429
1466
|
return G(K, {
|
|
1430
1467
|
sx: {
|
|
1431
1468
|
display: "flex",
|
|
@@ -1462,7 +1499,7 @@ var Sr = {
|
|
|
1462
1499
|
...m
|
|
1463
1500
|
}
|
|
1464
1501
|
}),
|
|
1465
|
-
c && G(
|
|
1502
|
+
c && G(J, {
|
|
1466
1503
|
size: "small",
|
|
1467
1504
|
value: n.exclusive ? "gt" : "gte",
|
|
1468
1505
|
disabled: l,
|
|
@@ -1474,15 +1511,15 @@ var Sr = {
|
|
|
1474
1511
|
flex: "0 0 auto",
|
|
1475
1512
|
backgroundColor: "background.paper"
|
|
1476
1513
|
},
|
|
1477
|
-
children: [W(
|
|
1514
|
+
children: [W(q, {
|
|
1478
1515
|
value: "gte",
|
|
1479
1516
|
children: ">="
|
|
1480
|
-
}), W(
|
|
1517
|
+
}), W(q, {
|
|
1481
1518
|
value: "gt",
|
|
1482
1519
|
children: ">"
|
|
1483
1520
|
})]
|
|
1484
1521
|
}),
|
|
1485
|
-
W(
|
|
1522
|
+
W(J, {
|
|
1486
1523
|
size: "small",
|
|
1487
1524
|
value: g,
|
|
1488
1525
|
disabled: l,
|
|
@@ -1491,7 +1528,7 @@ var Sr = {
|
|
|
1491
1528
|
...n,
|
|
1492
1529
|
type: e
|
|
1493
1530
|
};
|
|
1494
|
-
if (
|
|
1531
|
+
if (Dr.has(e)) delete t.value;
|
|
1495
1532
|
else if (t.value === void 0) t.value = e === D.ColorStopType.Formula ? "" : 0;
|
|
1496
1533
|
else if (e !== D.ColorStopType.Formula && typeof t.value != "number") {
|
|
1497
1534
|
let e = typeof t.value == "string" ? Number(t.value) : NaN;
|
|
@@ -1504,12 +1541,12 @@ var Sr = {
|
|
|
1504
1541
|
minWidth: 0,
|
|
1505
1542
|
backgroundColor: "background.paper"
|
|
1506
1543
|
},
|
|
1507
|
-
children: a.map((e) => W(
|
|
1544
|
+
children: a.map((e) => W(q, {
|
|
1508
1545
|
value: e,
|
|
1509
|
-
children: d(
|
|
1546
|
+
children: d(Er[e])
|
|
1510
1547
|
}, e))
|
|
1511
1548
|
}),
|
|
1512
|
-
b ? W(
|
|
1549
|
+
b ? W(me, {
|
|
1513
1550
|
size: "small",
|
|
1514
1551
|
home: h.home,
|
|
1515
1552
|
value: x ? h.display(x) : `${n.value ?? ""}`,
|
|
@@ -1531,11 +1568,11 @@ var Sr = {
|
|
|
1531
1568
|
minWidth: 0,
|
|
1532
1569
|
"& .MuiInputBase-root": { backgroundColor: y ? "action.disabledBackground" : "background.paper" }
|
|
1533
1570
|
}
|
|
1534
|
-
}) : W(
|
|
1571
|
+
}) : W(bn, {
|
|
1535
1572
|
size: "small",
|
|
1536
1573
|
type: "number",
|
|
1537
|
-
placeholder:
|
|
1538
|
-
value:
|
|
1574
|
+
placeholder: v ? void 0 : d("conditionalFormat.stopFromData"),
|
|
1575
|
+
value: v ? `${n.value ?? ""}` : "",
|
|
1539
1576
|
disabled: y,
|
|
1540
1577
|
onChange: (e) => {
|
|
1541
1578
|
let t = e.target.value;
|
|
@@ -1557,16 +1594,16 @@ var Sr = {
|
|
|
1557
1594
|
]
|
|
1558
1595
|
});
|
|
1559
1596
|
});
|
|
1560
|
-
|
|
1561
|
-
var
|
|
1597
|
+
Or.displayName = "ScaleStopRow";
|
|
1598
|
+
var kr = [
|
|
1562
1599
|
D.ColorStopType.Min,
|
|
1563
1600
|
D.ColorStopType.Max,
|
|
1564
1601
|
D.ColorStopType.Num,
|
|
1565
1602
|
D.ColorStopType.Percent,
|
|
1566
1603
|
D.ColorStopType.Percentile,
|
|
1567
1604
|
D.ColorStopType.Formula
|
|
1568
|
-
],
|
|
1569
|
-
let { scale: n, onScaleChange: r, readOnly: i, ...a } = e, o = F(), { workbook: s, toColor:
|
|
1605
|
+
], Ar = R((e) => {
|
|
1606
|
+
let { scale: n, onScaleChange: r, readOnly: i, ...a } = e, o = F(), { workbook: s, toColor: c } = _(), l = n.stops ?? [], d = l.length === 2 ? [Z("conditionalFormat.stop.minimum"), Z("conditionalFormat.stop.maximum")] : [
|
|
1570
1607
|
Z("conditionalFormat.stop.minimum"),
|
|
1571
1608
|
Z("conditionalFormat.stop.midpoint"),
|
|
1572
1609
|
Z("conditionalFormat.stop.maximum")
|
|
@@ -1578,7 +1615,7 @@ var Tr = [
|
|
|
1578
1615
|
gap: 1
|
|
1579
1616
|
},
|
|
1580
1617
|
...a,
|
|
1581
|
-
children: [W(
|
|
1618
|
+
children: [W(br, { children: G(K, {
|
|
1582
1619
|
sx: {
|
|
1583
1620
|
display: "flex",
|
|
1584
1621
|
alignItems: "flex-start",
|
|
@@ -1592,23 +1629,23 @@ var Tr = [
|
|
|
1592
1629
|
gap: .5,
|
|
1593
1630
|
flexWrap: "wrap"
|
|
1594
1631
|
},
|
|
1595
|
-
children:
|
|
1632
|
+
children: Te.filter((e) => e.stops.length === (l.length === 2 ? 2 : 3)).map((e, n) => W(h, {
|
|
1596
1633
|
sheet: !0,
|
|
1597
1634
|
disabled: i,
|
|
1598
1635
|
onClick: () => r(structuredClone(e)),
|
|
1599
|
-
children: W(
|
|
1636
|
+
children: W(fe, { rows: t(e.stops ?? [], u, s) })
|
|
1600
1637
|
}, n))
|
|
1601
|
-
}), G(
|
|
1638
|
+
}), G(Cn, {
|
|
1602
1639
|
exclusive: !0,
|
|
1603
1640
|
size: "small",
|
|
1604
|
-
value:
|
|
1641
|
+
value: l.length === 2 ? 2 : 3,
|
|
1605
1642
|
disabled: i,
|
|
1606
1643
|
onChange: (e, t) => {
|
|
1607
1644
|
t && ((e) => {
|
|
1608
|
-
if (e ===
|
|
1609
|
-
let t =
|
|
1645
|
+
if (e === l.length || e !== 2 && e !== 3) return;
|
|
1646
|
+
let t = l.slice();
|
|
1610
1647
|
if (e === 3) {
|
|
1611
|
-
let e = "#FFEB84", n = l
|
|
1648
|
+
let e = "#FFEB84", n = c(l[0]?.color ?? e)?.toRGBA(), r = c(l[l.length - 1]?.color ?? e)?.toRGBA();
|
|
1612
1649
|
if (n && r) {
|
|
1613
1650
|
let t = (e) => Math.round(e).toString(16).padStart(2, "0").toUpperCase();
|
|
1614
1651
|
e = `#${t((n.red + r.red) / 2)}${t((n.green + r.green) / 2)}${t((n.blue + r.blue) / 2)}`;
|
|
@@ -1626,7 +1663,7 @@ var Tr = [
|
|
|
1626
1663
|
})(t);
|
|
1627
1664
|
},
|
|
1628
1665
|
sx: { flex: "0 0 auto" },
|
|
1629
|
-
children: [W(
|
|
1666
|
+
children: [W(Sn, {
|
|
1630
1667
|
value: 2,
|
|
1631
1668
|
sx: {
|
|
1632
1669
|
textTransform: "none",
|
|
@@ -1634,7 +1671,7 @@ var Tr = [
|
|
|
1634
1671
|
pb: .25
|
|
1635
1672
|
},
|
|
1636
1673
|
children: o("conditionalFormat.twoColor")
|
|
1637
|
-
}), W(
|
|
1674
|
+
}), W(Sn, {
|
|
1638
1675
|
value: 3,
|
|
1639
1676
|
sx: {
|
|
1640
1677
|
textTransform: "none",
|
|
@@ -1644,16 +1681,16 @@ var Tr = [
|
|
|
1644
1681
|
children: o("conditionalFormat.threeColor")
|
|
1645
1682
|
})]
|
|
1646
1683
|
})]
|
|
1647
|
-
}) }), W(
|
|
1684
|
+
}) }), W(br, {
|
|
1648
1685
|
variant: "config",
|
|
1649
|
-
children:
|
|
1686
|
+
children: l.map((e, t) => W(Or, {
|
|
1650
1687
|
label: o(d[Math.min(t, d.length - 1)]),
|
|
1651
1688
|
stop: e,
|
|
1652
|
-
allowedTypes:
|
|
1689
|
+
allowedTypes: kr,
|
|
1653
1690
|
showColor: !0,
|
|
1654
1691
|
readOnly: i,
|
|
1655
1692
|
onStopChange: (e) => {
|
|
1656
|
-
let i =
|
|
1693
|
+
let i = l.slice();
|
|
1657
1694
|
i[t] = e, r({
|
|
1658
1695
|
...n,
|
|
1659
1696
|
stops: i
|
|
@@ -1663,23 +1700,23 @@ var Tr = [
|
|
|
1663
1700
|
})]
|
|
1664
1701
|
});
|
|
1665
1702
|
});
|
|
1666
|
-
|
|
1667
|
-
var
|
|
1703
|
+
Ar.displayName = "ColorScaleRulePanel";
|
|
1704
|
+
var jr = [
|
|
1668
1705
|
D.ColorStopType.AutoMin,
|
|
1669
1706
|
D.ColorStopType.Min,
|
|
1670
1707
|
D.ColorStopType.Num,
|
|
1671
1708
|
D.ColorStopType.Percent,
|
|
1672
1709
|
D.ColorStopType.Percentile,
|
|
1673
1710
|
D.ColorStopType.Formula
|
|
1674
|
-
],
|
|
1711
|
+
], Mr = [
|
|
1675
1712
|
D.ColorStopType.AutoMax,
|
|
1676
1713
|
D.ColorStopType.Max,
|
|
1677
1714
|
D.ColorStopType.Num,
|
|
1678
1715
|
D.ColorStopType.Percent,
|
|
1679
1716
|
D.ColorStopType.Percentile,
|
|
1680
1717
|
D.ColorStopType.Formula
|
|
1681
|
-
],
|
|
1682
|
-
let { scale: t, onScaleChange: n, readOnly: i, ...a } = e, o = F(), { darkMode: s, toColor: c, propsColorPanel: l } =
|
|
1718
|
+
], Nr = "__auto__", Pr = R((e) => {
|
|
1719
|
+
let { scale: t, onScaleChange: n, readOnly: i, ...a } = e, o = F(), { darkMode: s, toColor: c, propsColorPanel: l } = _(), u = t.stops ?? [], d = c(t.color), f = c(t.negativeFillColor), p = c(t.borderColor), m = c(t.negativeBorderColor), g = t.gradient ?? !1, y = (e) => {
|
|
1683
1720
|
let r = { ...t };
|
|
1684
1721
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
1685
1722
|
n(r);
|
|
@@ -1691,7 +1728,7 @@ var Dr = [
|
|
|
1691
1728
|
gap: 1
|
|
1692
1729
|
},
|
|
1693
1730
|
...a,
|
|
1694
|
-
children: [G(
|
|
1731
|
+
children: [G(br, { children: [
|
|
1695
1732
|
G(K, {
|
|
1696
1733
|
sx: {
|
|
1697
1734
|
display: "flex",
|
|
@@ -1706,26 +1743,26 @@ var Dr = [
|
|
|
1706
1743
|
gap: .5,
|
|
1707
1744
|
flexWrap: "wrap"
|
|
1708
1745
|
},
|
|
1709
|
-
children:
|
|
1746
|
+
children: De.filter((e) => (e.gradient ?? !1) === g).map((e, t) => W(h, {
|
|
1710
1747
|
sheet: !0,
|
|
1711
1748
|
disabled: i,
|
|
1712
|
-
onClick: () =>
|
|
1749
|
+
onClick: () => y({
|
|
1713
1750
|
color: e.color,
|
|
1714
1751
|
gradient: e.gradient,
|
|
1715
1752
|
borderColor: e.borderColor
|
|
1716
1753
|
}),
|
|
1717
|
-
children: W(
|
|
1754
|
+
children: W(fe, { rows: v(e, c(e.color)?.toCSS("adaptive") ?? "var(--sxl-color-primary, rgb(33, 115, 70))") })
|
|
1718
1755
|
}, t))
|
|
1719
|
-
}), G(
|
|
1756
|
+
}), G(Cn, {
|
|
1720
1757
|
exclusive: !0,
|
|
1721
1758
|
size: "small",
|
|
1722
1759
|
value: g,
|
|
1723
1760
|
disabled: i,
|
|
1724
1761
|
onChange: (e, t) => {
|
|
1725
|
-
t !== null &&
|
|
1762
|
+
t !== null && y({ gradient: !!t || void 0 });
|
|
1726
1763
|
},
|
|
1727
1764
|
sx: { flex: "0 0 auto" },
|
|
1728
|
-
children: [W(
|
|
1765
|
+
children: [W(Sn, {
|
|
1729
1766
|
value: !1,
|
|
1730
1767
|
sx: {
|
|
1731
1768
|
textTransform: "none",
|
|
@@ -1733,7 +1770,7 @@ var Dr = [
|
|
|
1733
1770
|
pb: .25
|
|
1734
1771
|
},
|
|
1735
1772
|
children: o("conditionalFormat.solidFill")
|
|
1736
|
-
}), W(
|
|
1773
|
+
}), W(Sn, {
|
|
1737
1774
|
value: !0,
|
|
1738
1775
|
sx: {
|
|
1739
1776
|
textTransform: "none",
|
|
@@ -1744,12 +1781,12 @@ var Dr = [
|
|
|
1744
1781
|
})]
|
|
1745
1782
|
})]
|
|
1746
1783
|
}),
|
|
1747
|
-
W(
|
|
1748
|
-
control: W(
|
|
1784
|
+
W(ln, {
|
|
1785
|
+
control: W(nn, {
|
|
1749
1786
|
size: "small",
|
|
1750
1787
|
checked: !1 === t.showValue,
|
|
1751
1788
|
disabled: i,
|
|
1752
|
-
onChange: (e) =>
|
|
1789
|
+
onChange: (e) => y({ showValue: !e.target.checked && void 0 })
|
|
1753
1790
|
}),
|
|
1754
1791
|
label: W(Y, {
|
|
1755
1792
|
variant: "body2",
|
|
@@ -1776,7 +1813,7 @@ var Dr = [
|
|
|
1776
1813
|
tooltip: o("conditionalFormat.barColor"),
|
|
1777
1814
|
selectedColor: d,
|
|
1778
1815
|
disabled: i,
|
|
1779
|
-
onSelectColor: (e) =>
|
|
1816
|
+
onSelectColor: (e) => y({ color: e ? e.toString() : void 0 }),
|
|
1780
1817
|
darkMode: s,
|
|
1781
1818
|
propsPanel: {
|
|
1782
1819
|
disableAlpha: !0,
|
|
@@ -1788,7 +1825,7 @@ var Dr = [
|
|
|
1788
1825
|
tooltip: o("conditionalFormat.barBorderColor"),
|
|
1789
1826
|
selectedColor: p,
|
|
1790
1827
|
disabled: i,
|
|
1791
|
-
onSelectColor: (e) =>
|
|
1828
|
+
onSelectColor: (e) => y({ borderColor: e ? e.toString() : void 0 }),
|
|
1792
1829
|
darkMode: s,
|
|
1793
1830
|
propsPanel: {
|
|
1794
1831
|
disableAlpha: !0,
|
|
@@ -1817,7 +1854,7 @@ var Dr = [
|
|
|
1817
1854
|
tooltip: o("conditionalFormat.negativeColor"),
|
|
1818
1855
|
selectedColor: f ?? d,
|
|
1819
1856
|
disabled: i,
|
|
1820
|
-
onSelectColor: (e) =>
|
|
1857
|
+
onSelectColor: (e) => y({ negativeFillColor: e ? e.toString() : void 0 }),
|
|
1821
1858
|
darkMode: s,
|
|
1822
1859
|
propsPanel: {
|
|
1823
1860
|
disableAlpha: !0,
|
|
@@ -1827,19 +1864,19 @@ var Dr = [
|
|
|
1827
1864
|
W(r, {
|
|
1828
1865
|
icon: "stroke.colored",
|
|
1829
1866
|
tooltip: o("conditionalFormat.negativeBorderColor"),
|
|
1830
|
-
selectedColor:
|
|
1867
|
+
selectedColor: m ?? p,
|
|
1831
1868
|
disabled: i,
|
|
1832
|
-
onSelectColor: (e) =>
|
|
1869
|
+
onSelectColor: (e) => y({ negativeBorderColor: e ? e.toString() : void 0 }),
|
|
1833
1870
|
darkMode: s,
|
|
1834
1871
|
propsPanel: {
|
|
1835
1872
|
disableAlpha: !0,
|
|
1836
1873
|
...l
|
|
1837
1874
|
}
|
|
1838
1875
|
}),
|
|
1839
|
-
W(
|
|
1876
|
+
W(h, {
|
|
1840
1877
|
title: o("conditionalFormat.sameAsPositive"),
|
|
1841
1878
|
disabled: i || !t.negativeFillColor && !t.negativeBorderColor,
|
|
1842
|
-
onClick: () =>
|
|
1879
|
+
onClick: () => y({
|
|
1843
1880
|
negativeFillColor: void 0,
|
|
1844
1881
|
negativeBorderColor: void 0
|
|
1845
1882
|
}),
|
|
@@ -1860,61 +1897,61 @@ var Dr = [
|
|
|
1860
1897
|
gap: 1,
|
|
1861
1898
|
mt: .5
|
|
1862
1899
|
},
|
|
1863
|
-
children: [G(
|
|
1900
|
+
children: [G(cn, {
|
|
1864
1901
|
size: "small",
|
|
1865
1902
|
sx: {
|
|
1866
1903
|
flex: 1,
|
|
1867
1904
|
minWidth: 0
|
|
1868
1905
|
},
|
|
1869
|
-
children: [W(
|
|
1906
|
+
children: [W(fn, { children: o("conditionalFormat.axis") }), G(J, {
|
|
1870
1907
|
label: o("conditionalFormat.axis"),
|
|
1871
|
-
value: t.axisPosition ??
|
|
1908
|
+
value: t.axisPosition ?? Nr,
|
|
1872
1909
|
disabled: i,
|
|
1873
1910
|
sx: b,
|
|
1874
1911
|
onChange: (e) => {
|
|
1875
1912
|
let t = e.target.value;
|
|
1876
|
-
|
|
1913
|
+
y({ axisPosition: t === Nr ? void 0 : t });
|
|
1877
1914
|
},
|
|
1878
1915
|
children: [
|
|
1879
|
-
W(
|
|
1880
|
-
value:
|
|
1916
|
+
W(q, {
|
|
1917
|
+
value: Nr,
|
|
1881
1918
|
children: o("conditionalFormat.automatic")
|
|
1882
1919
|
}),
|
|
1883
|
-
W(
|
|
1920
|
+
W(q, {
|
|
1884
1921
|
value: "middle",
|
|
1885
1922
|
children: o("conditionalFormat.axisMiddle")
|
|
1886
1923
|
}),
|
|
1887
|
-
W(
|
|
1924
|
+
W(q, {
|
|
1888
1925
|
value: "none",
|
|
1889
1926
|
children: o("conditionalFormat.axisNone")
|
|
1890
1927
|
})
|
|
1891
1928
|
]
|
|
1892
1929
|
})]
|
|
1893
|
-
}), G(
|
|
1930
|
+
}), G(cn, {
|
|
1894
1931
|
size: "small",
|
|
1895
1932
|
sx: {
|
|
1896
1933
|
flex: 1,
|
|
1897
1934
|
minWidth: 0
|
|
1898
1935
|
},
|
|
1899
|
-
children: [W(
|
|
1936
|
+
children: [W(fn, { children: o("conditionalFormat.direction") }), G(J, {
|
|
1900
1937
|
label: o("conditionalFormat.direction"),
|
|
1901
|
-
value: t.direction ??
|
|
1938
|
+
value: t.direction ?? Nr,
|
|
1902
1939
|
disabled: i,
|
|
1903
1940
|
sx: b,
|
|
1904
1941
|
onChange: (e) => {
|
|
1905
1942
|
let t = e.target.value;
|
|
1906
|
-
|
|
1943
|
+
y({ direction: t === Nr ? void 0 : t });
|
|
1907
1944
|
},
|
|
1908
1945
|
children: [
|
|
1909
|
-
W(
|
|
1910
|
-
value:
|
|
1946
|
+
W(q, {
|
|
1947
|
+
value: Nr,
|
|
1911
1948
|
children: o("conditionalFormat.automatic")
|
|
1912
1949
|
}),
|
|
1913
|
-
W(
|
|
1950
|
+
W(q, {
|
|
1914
1951
|
value: "leftToRight",
|
|
1915
1952
|
children: o("conditionalFormat.leftToRight")
|
|
1916
1953
|
}),
|
|
1917
|
-
W(
|
|
1954
|
+
W(q, {
|
|
1918
1955
|
value: "rightToLeft",
|
|
1919
1956
|
children: o("conditionalFormat.rightToLeft")
|
|
1920
1957
|
})
|
|
@@ -1922,39 +1959,39 @@ var Dr = [
|
|
|
1922
1959
|
})]
|
|
1923
1960
|
})]
|
|
1924
1961
|
})
|
|
1925
|
-
] }), G(
|
|
1962
|
+
] }), G(br, {
|
|
1926
1963
|
variant: "config",
|
|
1927
|
-
children: [W(
|
|
1964
|
+
children: [W(Or, {
|
|
1928
1965
|
label: o("conditionalFormat.stop.minimum"),
|
|
1929
1966
|
stop: u[0] ?? { type: D.ColorStopType.AutoMin },
|
|
1930
|
-
allowedTypes:
|
|
1967
|
+
allowedTypes: jr,
|
|
1931
1968
|
readOnly: i,
|
|
1932
1969
|
onStopChange: (e) => {
|
|
1933
1970
|
let t = u.slice();
|
|
1934
|
-
t[0] = e,
|
|
1971
|
+
t[0] = e, y({ stops: t });
|
|
1935
1972
|
}
|
|
1936
|
-
}), W(
|
|
1973
|
+
}), W(Or, {
|
|
1937
1974
|
label: o("conditionalFormat.stop.maximum"),
|
|
1938
1975
|
stop: u[1] ?? { type: D.ColorStopType.AutoMax },
|
|
1939
|
-
allowedTypes:
|
|
1976
|
+
allowedTypes: Mr,
|
|
1940
1977
|
readOnly: i,
|
|
1941
1978
|
onStopChange: (e) => {
|
|
1942
1979
|
let t = u.slice();
|
|
1943
1980
|
for (; t.length < 2;) t.push({ type: D.ColorStopType.AutoMax });
|
|
1944
|
-
t[1] = e,
|
|
1981
|
+
t[1] = e, y({ stops: t });
|
|
1945
1982
|
}
|
|
1946
1983
|
})]
|
|
1947
1984
|
})]
|
|
1948
1985
|
});
|
|
1949
1986
|
});
|
|
1950
|
-
|
|
1951
|
-
var
|
|
1987
|
+
Pr.displayName = "DataBarRulePanel";
|
|
1988
|
+
var Fr = Z("conditionalFormat.noCellIcon"), Ir = Z("conditionalFormat.cellIcon"), Lr = {
|
|
1952
1989
|
borderColor: "primary.main",
|
|
1953
1990
|
boxShadow: (e) => `inset 0 0 0 1px ${e.palette.primary.main}`
|
|
1954
|
-
},
|
|
1991
|
+
}, Rr = {
|
|
1955
1992
|
width: "28px",
|
|
1956
1993
|
height: "26px"
|
|
1957
|
-
},
|
|
1994
|
+
}, zr = R((e) => {
|
|
1958
1995
|
let { icon: t, onPick: n } = e, r = F();
|
|
1959
1996
|
return G(K, {
|
|
1960
1997
|
sx: {
|
|
@@ -1963,18 +2000,18 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
1963
2000
|
gap: "4px",
|
|
1964
2001
|
padding: "6px 8px"
|
|
1965
2002
|
},
|
|
1966
|
-
children: [W(
|
|
2003
|
+
children: [W(h, {
|
|
1967
2004
|
sheet: !0,
|
|
1968
|
-
title: r(
|
|
2005
|
+
title: r(Fr),
|
|
1969
2006
|
"aria-pressed": t === null,
|
|
1970
2007
|
sx: {
|
|
1971
|
-
...
|
|
1972
|
-
...t === null ?
|
|
2008
|
+
...Rr,
|
|
2009
|
+
...t === null ? Lr : null
|
|
1973
2010
|
},
|
|
1974
2011
|
onClick: () => {
|
|
1975
|
-
n({ ...
|
|
2012
|
+
n({ ...Me });
|
|
1976
2013
|
},
|
|
1977
|
-
children: W(
|
|
2014
|
+
children: W(Ae, {
|
|
1978
2015
|
icons: [null],
|
|
1979
2016
|
size: 16
|
|
1980
2017
|
})
|
|
@@ -1985,15 +2022,15 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
1985
2022
|
justifyContent: "start",
|
|
1986
2023
|
gap: "3px"
|
|
1987
2024
|
},
|
|
1988
|
-
children:
|
|
2025
|
+
children: ke.map((e) => {
|
|
1989
2026
|
let i = ((e, t) => !!e && e.iconKey === t.iconKey && e.color === t.color)(t, e.spec);
|
|
1990
|
-
return W(
|
|
2027
|
+
return W(h, {
|
|
1991
2028
|
sheet: !0,
|
|
1992
|
-
title:
|
|
2029
|
+
title: m(r, e.spec),
|
|
1993
2030
|
"aria-pressed": i,
|
|
1994
2031
|
sx: {
|
|
1995
|
-
...
|
|
1996
|
-
...i ?
|
|
2032
|
+
...Rr,
|
|
2033
|
+
...i ? Lr : null
|
|
1997
2034
|
},
|
|
1998
2035
|
onClick: () => {
|
|
1999
2036
|
n({
|
|
@@ -2001,7 +2038,7 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
2001
2038
|
id: e.id
|
|
2002
2039
|
});
|
|
2003
2040
|
},
|
|
2004
|
-
children: W(
|
|
2041
|
+
children: W(Ae, {
|
|
2005
2042
|
icons: [e.spec],
|
|
2006
2043
|
size: 16
|
|
2007
2044
|
})
|
|
@@ -2010,25 +2047,25 @@ var jr = Z("conditionalFormat.noCellIcon"), Mr = Z("conditionalFormat.cellIcon")
|
|
|
2010
2047
|
})]
|
|
2011
2048
|
});
|
|
2012
2049
|
});
|
|
2013
|
-
|
|
2014
|
-
var
|
|
2050
|
+
zr.displayName = "IconCatalogPanel";
|
|
2051
|
+
var Br = R(L((e, t) => {
|
|
2015
2052
|
let { icon: n, onPick: r, tooltip: i, ...a } = e, o = F();
|
|
2016
|
-
return W(
|
|
2053
|
+
return W(Ft, {
|
|
2017
2054
|
ref: t,
|
|
2018
2055
|
createPopupPanel: z((e) => {
|
|
2019
|
-
let { closeFloat: t } = e, i = W(
|
|
2056
|
+
let { closeFloat: t } = e, i = W(zr, {
|
|
2020
2057
|
icon: n,
|
|
2021
2058
|
onPick: (e) => {
|
|
2022
2059
|
t?.(), r(e);
|
|
2023
2060
|
}
|
|
2024
2061
|
});
|
|
2025
|
-
return
|
|
2062
|
+
return Vt({
|
|
2026
2063
|
...e,
|
|
2027
2064
|
children: i
|
|
2028
2065
|
});
|
|
2029
2066
|
}, [n, r]),
|
|
2030
|
-
tooltip: i ?? o(
|
|
2031
|
-
icon: W(
|
|
2067
|
+
tooltip: i ?? o(Ir),
|
|
2068
|
+
icon: W(Ae, {
|
|
2032
2069
|
icons: [n],
|
|
2033
2070
|
size: 16
|
|
2034
2071
|
}),
|
|
@@ -2036,26 +2073,26 @@ var Ir = R(L((e, t) => {
|
|
|
2036
2073
|
...a
|
|
2037
2074
|
});
|
|
2038
2075
|
}));
|
|
2039
|
-
|
|
2040
|
-
var
|
|
2076
|
+
Br.displayName = "IconPickerPopupButton";
|
|
2077
|
+
var Vr = [
|
|
2041
2078
|
D.ColorStopType.Percent,
|
|
2042
2079
|
D.ColorStopType.Num,
|
|
2043
2080
|
D.ColorStopType.Percentile,
|
|
2044
2081
|
D.ColorStopType.Formula
|
|
2045
|
-
],
|
|
2046
|
-
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ??
|
|
2082
|
+
], Hr = R((e) => {
|
|
2083
|
+
let { scale: t, onScaleChange: n, readOnly: r, ...i } = e, a = F(), o = t.iconSet ?? Se.IconSet.TrafficLights3, s = qe(o).length === 0, c = t.stops ?? [], l = c.length, u = A(t), d = (e) => {
|
|
2047
2084
|
let r = { ...t };
|
|
2048
2085
|
for (let [t, n] of Object.entries(e)) n === void 0 ? delete r[t] : r[t] = n;
|
|
2049
2086
|
n(r);
|
|
2050
|
-
},
|
|
2051
|
-
let { closeFloat: t } = e, n = W(
|
|
2052
|
-
groups:
|
|
2087
|
+
}, f = z((e) => {
|
|
2088
|
+
let { closeFloat: t } = e, n = W(p, {
|
|
2089
|
+
groups: te,
|
|
2053
2090
|
disabled: r,
|
|
2054
2091
|
onPick: (e) => {
|
|
2055
2092
|
t?.(), e.type === D.ScaleType.IconSet && e.iconSet && ((e) => {
|
|
2056
2093
|
if (e === o) return;
|
|
2057
|
-
let t =
|
|
2058
|
-
t !== c.length && (n =
|
|
2094
|
+
let t = Je(e), n = c;
|
|
2095
|
+
t !== c.length && (n = Ke(t)), d({
|
|
2059
2096
|
iconSet: e,
|
|
2060
2097
|
stops: n,
|
|
2061
2098
|
icon: void 0
|
|
@@ -2063,11 +2100,11 @@ var Lr = [
|
|
|
2063
2100
|
})(e.iconSet);
|
|
2064
2101
|
}
|
|
2065
2102
|
});
|
|
2066
|
-
return
|
|
2103
|
+
return Vt({
|
|
2067
2104
|
...e,
|
|
2068
2105
|
children: n
|
|
2069
2106
|
});
|
|
2070
|
-
}, [r, t]), m =
|
|
2107
|
+
}, [r, t]), m = ge.camelToPrettyCase(o);
|
|
2071
2108
|
return G(K, {
|
|
2072
2109
|
sx: {
|
|
2073
2110
|
display: "flex",
|
|
@@ -2075,14 +2112,14 @@ var Lr = [
|
|
|
2075
2112
|
gap: 1
|
|
2076
2113
|
},
|
|
2077
2114
|
...i,
|
|
2078
|
-
children: [G(
|
|
2115
|
+
children: [G(br, { children: [
|
|
2079
2116
|
W(K, {
|
|
2080
2117
|
sx: {
|
|
2081
2118
|
display: "flex",
|
|
2082
2119
|
alignItems: "center",
|
|
2083
2120
|
gap: 1
|
|
2084
2121
|
},
|
|
2085
|
-
children: W(
|
|
2122
|
+
children: W(Ft, {
|
|
2086
2123
|
outlined: !0,
|
|
2087
2124
|
disabled: r,
|
|
2088
2125
|
label: m,
|
|
@@ -2097,14 +2134,14 @@ var Lr = [
|
|
|
2097
2134
|
variant: "caption",
|
|
2098
2135
|
noWrap: !0,
|
|
2099
2136
|
children: m
|
|
2100
|
-
}) : W(
|
|
2101
|
-
icons:
|
|
2137
|
+
}) : W(Ae, {
|
|
2138
|
+
icons: qe(o),
|
|
2102
2139
|
order: "descending",
|
|
2103
2140
|
size: 14,
|
|
2104
2141
|
gap: 3
|
|
2105
2142
|
})
|
|
2106
2143
|
}),
|
|
2107
|
-
createPopupPanel:
|
|
2144
|
+
createPopupPanel: f
|
|
2108
2145
|
})
|
|
2109
2146
|
}),
|
|
2110
2147
|
s && W(Y, {
|
|
@@ -2117,23 +2154,23 @@ var Lr = [
|
|
|
2117
2154
|
display: "flex",
|
|
2118
2155
|
gap: 1
|
|
2119
2156
|
},
|
|
2120
|
-
children: [W(
|
|
2121
|
-
control: W(
|
|
2157
|
+
children: [W(ln, {
|
|
2158
|
+
control: W(nn, {
|
|
2122
2159
|
size: "small",
|
|
2123
2160
|
checked: !1 === t.showValue,
|
|
2124
2161
|
disabled: r,
|
|
2125
|
-
onChange: (e) =>
|
|
2162
|
+
onChange: (e) => d({ showValue: !e.target.checked && void 0 })
|
|
2126
2163
|
}),
|
|
2127
2164
|
label: W(Y, {
|
|
2128
2165
|
variant: "body2",
|
|
2129
2166
|
children: a("conditionalFormat.showIconsOnly")
|
|
2130
2167
|
})
|
|
2131
|
-
}), W(
|
|
2132
|
-
control: W(
|
|
2168
|
+
}), W(ln, {
|
|
2169
|
+
control: W(nn, {
|
|
2133
2170
|
size: "small",
|
|
2134
2171
|
checked: t.reverse ?? !1,
|
|
2135
2172
|
disabled: r,
|
|
2136
|
-
onChange: (e) =>
|
|
2173
|
+
onChange: (e) => d({ reverse: !!e.target.checked || void 0 })
|
|
2137
2174
|
}),
|
|
2138
2175
|
label: W(Y, {
|
|
2139
2176
|
variant: "body2",
|
|
@@ -2141,49 +2178,49 @@ var Lr = [
|
|
|
2141
2178
|
})
|
|
2142
2179
|
})]
|
|
2143
2180
|
})
|
|
2144
|
-
] }), W(
|
|
2181
|
+
] }), W(br, {
|
|
2145
2182
|
variant: "config",
|
|
2146
2183
|
children: c.map((e, i) => {
|
|
2147
2184
|
let a = t.reverse ? l - 1 - i : i;
|
|
2148
|
-
return W(
|
|
2185
|
+
return W(Or, {
|
|
2149
2186
|
stop: e,
|
|
2150
|
-
allowedTypes:
|
|
2187
|
+
allowedTypes: Vr,
|
|
2151
2188
|
showExclusive: !0,
|
|
2152
2189
|
readOnly: r || i === 0,
|
|
2153
|
-
leading: W(
|
|
2190
|
+
leading: W(Br, {
|
|
2154
2191
|
icon: u[i] ?? null,
|
|
2155
2192
|
disabled: r || s,
|
|
2156
|
-
onPick: (e) => n(
|
|
2193
|
+
onPick: (e) => n(nt(t, a, e))
|
|
2157
2194
|
}),
|
|
2158
2195
|
onStopChange: (e) => {
|
|
2159
2196
|
let t = c.slice();
|
|
2160
|
-
t[i] = e,
|
|
2197
|
+
t[i] = e, d({ stops: t });
|
|
2161
2198
|
}
|
|
2162
2199
|
}, i);
|
|
2163
2200
|
})
|
|
2164
2201
|
})]
|
|
2165
2202
|
});
|
|
2166
2203
|
});
|
|
2167
|
-
|
|
2168
|
-
var
|
|
2204
|
+
Hr.displayName = "IconSetRulePanel";
|
|
2205
|
+
var Ur = (e, t, n) => l(e, t)?.toCSS("adaptive") ?? n, Wr = (e, t, n) => {
|
|
2169
2206
|
if (!e) return n;
|
|
2170
|
-
if (typeof e == "string") return
|
|
2171
|
-
if (e.type ===
|
|
2207
|
+
if (typeof e == "string") return Ur(e, t, n);
|
|
2208
|
+
if (e.type === be.Type.None) return n;
|
|
2172
2209
|
let r = e, i = e;
|
|
2173
|
-
return
|
|
2174
|
-
},
|
|
2175
|
-
let { conditionalFormat: n, size: r = 28, ...i } = e, { workbook:
|
|
2176
|
-
|
|
2177
|
-
let
|
|
2210
|
+
return Ur(i.foreground ?? r.color ?? i.background, t, n);
|
|
2211
|
+
}, Gr = R((e) => {
|
|
2212
|
+
let { conditionalFormat: n, size: r = 28, ...i } = e, { workbook: a, themeKey: o } = _();
|
|
2213
|
+
Xe(n, "onAnyChange");
|
|
2214
|
+
let c = n.getScale(), l = n.getStyle(), d = V(() => {
|
|
2178
2215
|
try {
|
|
2179
|
-
return
|
|
2216
|
+
return a?.getStyles().getNormal().getFont().toCSS("adaptive") ?? {};
|
|
2180
2217
|
} catch {
|
|
2181
2218
|
return {};
|
|
2182
2219
|
}
|
|
2183
|
-
}, [
|
|
2184
|
-
if (
|
|
2185
|
-
if (
|
|
2186
|
-
if (
|
|
2220
|
+
}, [a, o]), p = V(() => {
|
|
2221
|
+
if (c?.type === D.ScaleType.ColorScale) return W(fe, { rows: t(c.stops ?? [], u, a) });
|
|
2222
|
+
if (c?.type === D.ScaleType.DataBar) return W(fe, { rows: v(c, Ur(c.color, a, s), c.borderColor ? Ur(c.borderColor, a, s) : void 0) });
|
|
2223
|
+
if (c?.type === D.ScaleType.IconSet) return W(K, {
|
|
2187
2224
|
sx: {
|
|
2188
2225
|
display: "flex",
|
|
2189
2226
|
alignItems: "center",
|
|
@@ -2192,14 +2229,14 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2192
2229
|
height: "100%",
|
|
2193
2230
|
px: .5
|
|
2194
2231
|
},
|
|
2195
|
-
children: W(
|
|
2196
|
-
icons:
|
|
2232
|
+
children: W(Ae, {
|
|
2233
|
+
icons: A(c),
|
|
2197
2234
|
order: "descending",
|
|
2198
2235
|
size: 14,
|
|
2199
2236
|
gap: 3
|
|
2200
2237
|
})
|
|
2201
2238
|
});
|
|
2202
|
-
let e =
|
|
2239
|
+
let e = l?.font, n = e?.underline && e.underline !== xe.UnderlineStyle.None;
|
|
2203
2240
|
return W(K, {
|
|
2204
2241
|
sx: {
|
|
2205
2242
|
width: "100%",
|
|
@@ -2207,28 +2244,28 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2207
2244
|
display: "flex",
|
|
2208
2245
|
alignItems: "center",
|
|
2209
2246
|
justifyContent: "center",
|
|
2210
|
-
...
|
|
2211
|
-
backgroundColor:
|
|
2212
|
-
...e?.color && e.color !== "auto" ? { color:
|
|
2247
|
+
...d,
|
|
2248
|
+
backgroundColor: Wr(l?.fill, a, "transparent"),
|
|
2249
|
+
...e?.color && e.color !== "auto" ? { color: Ur(e.color, a, g) } : null,
|
|
2213
2250
|
...e?.weight ? { fontWeight: e.weight } : null,
|
|
2214
2251
|
...e?.style ? { fontStyle: e.style } : null,
|
|
2215
2252
|
textDecoration: [n ? "underline" : "", e?.strike ? "line-through" : ""].join(" ").trim() || "none",
|
|
2216
2253
|
fontSize: `${Math.round(.5 * r)}px`,
|
|
2217
2254
|
lineHeight: 1,
|
|
2218
|
-
outline:
|
|
2255
|
+
outline: l?.borders ? `1px solid ${Ur(Object.values(l.borders)[0]?.color, a, f)}` : void 0,
|
|
2219
2256
|
outlineOffset: "-3px"
|
|
2220
2257
|
},
|
|
2221
2258
|
children: "Aa"
|
|
2222
2259
|
});
|
|
2223
2260
|
}, [
|
|
2261
|
+
c,
|
|
2224
2262
|
l,
|
|
2225
|
-
d,
|
|
2226
2263
|
r,
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2264
|
+
d,
|
|
2265
|
+
a,
|
|
2266
|
+
o
|
|
2230
2267
|
]);
|
|
2231
|
-
return W(
|
|
2268
|
+
return W(h, {
|
|
2232
2269
|
sheet: !0,
|
|
2233
2270
|
className: "sxl-cf-rule-preview",
|
|
2234
2271
|
sx: {
|
|
@@ -2240,25 +2277,25 @@ var zr = (e, t, n) => s(e, t)?.toCSS("adaptive") ?? n, Br = (e, t, n) => {
|
|
|
2240
2277
|
children: p
|
|
2241
2278
|
});
|
|
2242
2279
|
});
|
|
2243
|
-
|
|
2244
|
-
var
|
|
2280
|
+
Gr.displayName = "RulePreview";
|
|
2281
|
+
var Kr = (e, t) => {
|
|
2245
2282
|
let n = e.getCondition()?.toString();
|
|
2246
2283
|
if (n) return n;
|
|
2247
2284
|
let r = e.getScale();
|
|
2248
|
-
return r ?
|
|
2249
|
-
},
|
|
2285
|
+
return r ? ge.camelToPrettyCase(r.type) : t("conditionalFormat.noCondition");
|
|
2286
|
+
}, qr = {
|
|
2250
2287
|
classic: Z("conditionalFormat.tab.classic"),
|
|
2251
2288
|
[D.ScaleType.ColorScale]: Z("conditionalFormat.tab.colorScale"),
|
|
2252
2289
|
[D.ScaleType.DataBar]: Z("conditionalFormat.tab.dataBars"),
|
|
2253
2290
|
[D.ScaleType.IconSet]: Z("conditionalFormat.tab.iconSets")
|
|
2254
|
-
},
|
|
2291
|
+
}, Jr = R((e) => {
|
|
2255
2292
|
let { conditionalFormat: t } = e, n = F();
|
|
2256
|
-
|
|
2257
|
-
let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = H({ scales: {} }),
|
|
2293
|
+
Xe(t, "onAnyChange");
|
|
2294
|
+
let r = t.getScale(), i = t.getCondition(), a = t.getStyle(), o = t.isProtected(), s = r?.type ?? "classic", c = H({ scales: {} }), l = (e) => {
|
|
2258
2295
|
t.update({ scale: e });
|
|
2259
|
-
},
|
|
2296
|
+
}, u = G(hn, {
|
|
2260
2297
|
tabIndex: 0,
|
|
2261
|
-
className:
|
|
2298
|
+
className: ae["editor-panel"],
|
|
2262
2299
|
sx: {
|
|
2263
2300
|
gap: (e) => e.spacing(1),
|
|
2264
2301
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -2284,7 +2321,7 @@ var Hr = (e, t) => {
|
|
|
2284
2321
|
alignItems: "center",
|
|
2285
2322
|
gap: (e) => e.spacing(1.5)
|
|
2286
2323
|
},
|
|
2287
|
-
children: [W(
|
|
2324
|
+
children: [W(Gr, {
|
|
2288
2325
|
conditionalFormat: t,
|
|
2289
2326
|
size: 48
|
|
2290
2327
|
}), W(Y, {
|
|
@@ -2293,14 +2330,14 @@ var Hr = (e, t) => {
|
|
|
2293
2330
|
minWidth: 0,
|
|
2294
2331
|
wordBreak: "break-word"
|
|
2295
2332
|
},
|
|
2296
|
-
children:
|
|
2333
|
+
children: Kr(t, n)
|
|
2297
2334
|
})]
|
|
2298
|
-
}), W(
|
|
2335
|
+
}), W(y, {
|
|
2299
2336
|
item: t,
|
|
2300
2337
|
label: n("conditionalFormat.applyTo")
|
|
2301
2338
|
})]
|
|
2302
2339
|
}),
|
|
2303
|
-
W(
|
|
2340
|
+
W(yn, {
|
|
2304
2341
|
value: s,
|
|
2305
2342
|
onChange: (e, n) => {
|
|
2306
2343
|
o || ((e) => {
|
|
@@ -2313,7 +2350,7 @@ var Hr = (e, t) => {
|
|
|
2313
2350
|
scale: null
|
|
2314
2351
|
});
|
|
2315
2352
|
else {
|
|
2316
|
-
let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ?
|
|
2353
|
+
let n = c.current.scales[e] ?? (e === D.ScaleType.ColorScale ? Ue() : e === D.ScaleType.DataBar ? We() : Ge());
|
|
2317
2354
|
t.update({
|
|
2318
2355
|
scale: n,
|
|
2319
2356
|
condition: null,
|
|
@@ -2336,35 +2373,35 @@ var Hr = (e, t) => {
|
|
|
2336
2373
|
minWidth: 0
|
|
2337
2374
|
}
|
|
2338
2375
|
},
|
|
2339
|
-
children: Object.keys(
|
|
2376
|
+
children: Object.keys(qr).map((e) => W(vn, {
|
|
2340
2377
|
value: e,
|
|
2341
|
-
label: n(
|
|
2378
|
+
label: n(qr[e])
|
|
2342
2379
|
}, e))
|
|
2343
2380
|
}),
|
|
2344
|
-
s === "classic" && G(
|
|
2381
|
+
s === "classic" && G(Yt, { children: [W(Tr, {
|
|
2345
2382
|
format: a,
|
|
2346
2383
|
readOnly: o,
|
|
2347
2384
|
onFormatChange: (e) => t.update({ style: e })
|
|
2348
|
-
}), W(
|
|
2385
|
+
}), W(yr, {
|
|
2349
2386
|
selectorTitle: n("conditionalFormat.highlight"),
|
|
2350
2387
|
condition: i,
|
|
2351
2388
|
ranges: t.getRanges(),
|
|
2352
2389
|
readOnly: o,
|
|
2353
2390
|
onConditionChange: (e) => t.setCondition(e)
|
|
2354
2391
|
})] }),
|
|
2355
|
-
r?.type === D.ScaleType.ColorScale && W(
|
|
2392
|
+
r?.type === D.ScaleType.ColorScale && W(Ar, {
|
|
2356
2393
|
scale: r,
|
|
2357
|
-
onScaleChange:
|
|
2394
|
+
onScaleChange: l,
|
|
2358
2395
|
readOnly: o
|
|
2359
2396
|
}),
|
|
2360
|
-
r?.type === D.ScaleType.DataBar && W(
|
|
2397
|
+
r?.type === D.ScaleType.DataBar && W(Pr, {
|
|
2361
2398
|
scale: r,
|
|
2362
|
-
onScaleChange:
|
|
2399
|
+
onScaleChange: l,
|
|
2363
2400
|
readOnly: o
|
|
2364
2401
|
}),
|
|
2365
|
-
r?.type === D.ScaleType.IconSet && W(
|
|
2402
|
+
r?.type === D.ScaleType.IconSet && W(Hr, {
|
|
2366
2403
|
scale: r,
|
|
2367
|
-
onScaleChange:
|
|
2404
|
+
onScaleChange: l,
|
|
2368
2405
|
readOnly: o
|
|
2369
2406
|
}),
|
|
2370
2407
|
s === "classic" && W(K, {
|
|
@@ -2375,8 +2412,8 @@ var Hr = (e, t) => {
|
|
|
2375
2412
|
borderColor: "divider",
|
|
2376
2413
|
borderRadius: 1
|
|
2377
2414
|
},
|
|
2378
|
-
children: W(
|
|
2379
|
-
control: W(
|
|
2415
|
+
children: W(ln, {
|
|
2416
|
+
control: W(nn, {
|
|
2380
2417
|
checked: t.isStopIfTrue(),
|
|
2381
2418
|
disabled: o,
|
|
2382
2419
|
onChange: (e) => t.setStopIfTrue(e.target.checked)
|
|
@@ -2386,15 +2423,15 @@ var Hr = (e, t) => {
|
|
|
2386
2423
|
})
|
|
2387
2424
|
]
|
|
2388
2425
|
});
|
|
2389
|
-
return W(
|
|
2426
|
+
return W(Ln.Provider, {
|
|
2390
2427
|
value: t,
|
|
2391
|
-
children:
|
|
2428
|
+
children: u
|
|
2392
2429
|
});
|
|
2393
2430
|
});
|
|
2394
|
-
|
|
2395
|
-
var
|
|
2431
|
+
Jr.displayName = "ConditionalFormatEditorPanel";
|
|
2432
|
+
var Yr = R(({ item: e }) => {
|
|
2396
2433
|
let t = F();
|
|
2397
|
-
return
|
|
2434
|
+
return Xe(e, "onAnyChange"), !e.isStopIfTrue() || e.getScale() ? null : W(K, {
|
|
2398
2435
|
sx: {
|
|
2399
2436
|
display: "inline-flex",
|
|
2400
2437
|
alignItems: "center",
|
|
@@ -2412,14 +2449,14 @@ var Gr = R(({ item: e }) => {
|
|
|
2412
2449
|
})
|
|
2413
2450
|
});
|
|
2414
2451
|
});
|
|
2415
|
-
|
|
2416
|
-
var
|
|
2452
|
+
Yr.displayName = "StopIfTrueBadge";
|
|
2453
|
+
var Xr = R(({ item: e }) => W(y, {
|
|
2417
2454
|
item: e,
|
|
2418
2455
|
label: F()("conditionalFormat.applyTo"),
|
|
2419
2456
|
helperText: null
|
|
2420
2457
|
}));
|
|
2421
|
-
|
|
2422
|
-
var
|
|
2458
|
+
Xr.displayName = "ConditionalFormatCardRanges";
|
|
2459
|
+
var Zr = {
|
|
2423
2460
|
key: "conditional-format",
|
|
2424
2461
|
messageKeys: {
|
|
2425
2462
|
none: Z("conditionalFormat.none"),
|
|
@@ -2441,6 +2478,7 @@ var qr = {
|
|
|
2441
2478
|
applyUpdate: (e, t) => {
|
|
2442
2479
|
e.update(t);
|
|
2443
2480
|
},
|
|
2481
|
+
validate: (e) => e.getCondition()?.validate() ?? null,
|
|
2444
2482
|
applySeed: (e, t) => {
|
|
2445
2483
|
e.update({
|
|
2446
2484
|
condition: t.condition ?? null,
|
|
@@ -2449,47 +2487,47 @@ var qr = {
|
|
|
2449
2487
|
stopIfTrue: t.stopIfTrue ?? !1
|
|
2450
2488
|
});
|
|
2451
2489
|
},
|
|
2452
|
-
getCardTitle:
|
|
2453
|
-
CardMedia: ({ item: e }) => W(
|
|
2490
|
+
getCardTitle: Kr,
|
|
2491
|
+
CardMedia: ({ item: e }) => W(Gr, {
|
|
2454
2492
|
conditionalFormat: e,
|
|
2455
2493
|
size: 32
|
|
2456
2494
|
}),
|
|
2457
|
-
CardSubtitle:
|
|
2458
|
-
CardBody:
|
|
2459
|
-
EditorBody: ({ item: e }) => W(
|
|
2460
|
-
},
|
|
2495
|
+
CardSubtitle: Xr,
|
|
2496
|
+
CardBody: Yr,
|
|
2497
|
+
EditorBody: ({ item: e }) => W(Jr, { conditionalFormat: e })
|
|
2498
|
+
}, Qr = R(L((e, t) => {
|
|
2461
2499
|
let { workbook: n, args: r, ...i } = e;
|
|
2462
|
-
return W(
|
|
2500
|
+
return W(c, {
|
|
2463
2501
|
ref: t,
|
|
2464
2502
|
workbook: n,
|
|
2465
|
-
descriptor:
|
|
2503
|
+
descriptor: Zr,
|
|
2466
2504
|
args: r,
|
|
2467
2505
|
dragReorder: !0,
|
|
2468
2506
|
...i
|
|
2469
2507
|
});
|
|
2470
2508
|
}));
|
|
2471
|
-
|
|
2472
|
-
var
|
|
2509
|
+
Qr.displayName = "ConditionalFormatDetailsPanel";
|
|
2510
|
+
var $r = (e) => {
|
|
2473
2511
|
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
2474
|
-
return W(
|
|
2512
|
+
return W(Qr, {
|
|
2475
2513
|
ref: a,
|
|
2476
2514
|
workbook: t,
|
|
2477
2515
|
args: i,
|
|
2478
2516
|
...o
|
|
2479
2517
|
});
|
|
2480
2518
|
};
|
|
2481
|
-
function
|
|
2519
|
+
function ei(e) {
|
|
2482
2520
|
var t, n, r = "";
|
|
2483
2521
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2484
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n =
|
|
2522
|
+
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = ei(e[t])) && (r && (r += " "), r += n);
|
|
2485
2523
|
else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
2486
2524
|
return r;
|
|
2487
2525
|
}
|
|
2488
|
-
function
|
|
2489
|
-
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t =
|
|
2526
|
+
function ti() {
|
|
2527
|
+
for (var e, t, n = 0, r = ""; n < arguments.length;) (e = arguments[n++]) && (t = ei(e)) && (r && (r += " "), r += t);
|
|
2490
2528
|
return r;
|
|
2491
2529
|
}
|
|
2492
|
-
var
|
|
2530
|
+
var ni = { data: "" }, ri = (e) => {
|
|
2493
2531
|
if (typeof window == "object") {
|
|
2494
2532
|
let t = (e ? e.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), {
|
|
2495
2533
|
innerHTML: " ",
|
|
@@ -2497,60 +2535,60 @@ var Qr = { data: "" }, $r = (e) => {
|
|
|
2497
2535
|
});
|
|
2498
2536
|
return t.nonce = window.__nonce__, t.parentNode || (e || document.head).appendChild(t), t.firstChild;
|
|
2499
2537
|
}
|
|
2500
|
-
return e ||
|
|
2501
|
-
},
|
|
2538
|
+
return e || ni;
|
|
2539
|
+
}, ii = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g, ai = /\/\*[^]*?\*\/| +/g, oi = /\n+/g, si = (e, t) => {
|
|
2502
2540
|
let n = "", r = "", i = "";
|
|
2503
2541
|
for (let a in e) {
|
|
2504
2542
|
let o = e[a];
|
|
2505
|
-
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ?
|
|
2543
|
+
a[0] == "@" ? a[1] == "i" ? n = a + " " + o + ";" : r += a[1] == "f" ? si(o, a) : a + "{" + si(o, a[1] == "k" ? "" : t) + "}" : typeof o == "object" ? r += si(o, t ? t.replace(/([^,])+/g, (e) => a.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (t) => /&/.test(t) ? t.replace(/&/g, e) : e ? e + " " + t : t)) : a) : o != null && (a = a[1] == "-" ? a : a.replace(/[A-Z]/g, "-$&").toLowerCase(), i += si.p ? si.p(a, o) : a + ":" + o + ";");
|
|
2506
2544
|
}
|
|
2507
2545
|
return n + (t && i ? t + "{" + i + "}" : i) + r;
|
|
2508
|
-
},
|
|
2546
|
+
}, ci = {}, li = (e) => {
|
|
2509
2547
|
if (typeof e == "object") {
|
|
2510
2548
|
let t = "";
|
|
2511
|
-
for (let n in e) t += n +
|
|
2549
|
+
for (let n in e) t += n + li(e[n]);
|
|
2512
2550
|
return t;
|
|
2513
2551
|
}
|
|
2514
2552
|
return e;
|
|
2515
|
-
},
|
|
2516
|
-
let a =
|
|
2553
|
+
}, ui = (e, t, n, r, i) => {
|
|
2554
|
+
let a = li(e), o = ci[a] || (ci[a] = ((e) => {
|
|
2517
2555
|
let t = 0, n = 11;
|
|
2518
2556
|
for (; t < e.length;) n = 101 * n + e.charCodeAt(t++) >>> 0;
|
|
2519
2557
|
return "go" + n;
|
|
2520
2558
|
})(a));
|
|
2521
|
-
if (!
|
|
2559
|
+
if (!ci[o]) {
|
|
2522
2560
|
let t = a === e ? ((e) => {
|
|
2523
2561
|
let t, n, r = [{}];
|
|
2524
|
-
for (; t =
|
|
2562
|
+
for (; t = ii.exec(e.replace(ai, ""));) t[4] ? r.shift() : t[3] ? (n = t[3].replace(oi, " ").trim(), r.unshift(r[0][n] = r[0][n] || {})) : r[0][t[1]] = t[2].replace(oi, " ").trim();
|
|
2525
2563
|
return r[0];
|
|
2526
2564
|
})(e) : e;
|
|
2527
|
-
|
|
2565
|
+
ci[o] = si(i ? { ["@keyframes " + o]: t } : t, n ? "" : "." + o);
|
|
2528
2566
|
}
|
|
2529
|
-
let s = n &&
|
|
2530
|
-
return n && (
|
|
2567
|
+
let s = n && ci.g;
|
|
2568
|
+
return n && (ci.g = ci[o]), ((e, t, n, r) => {
|
|
2531
2569
|
r ? t.data = t.data.replace(r, e) : t.data.indexOf(e) === -1 && (t.data = n ? e + t.data : t.data + e);
|
|
2532
|
-
})(
|
|
2570
|
+
})(ci[o], t, r, s), o;
|
|
2533
2571
|
};
|
|
2534
|
-
function
|
|
2572
|
+
function di(e) {
|
|
2535
2573
|
let t = this || {}, n = e.call ? e(t.p) : e;
|
|
2536
|
-
return
|
|
2574
|
+
return ui(n.unshift ? n.raw ? ((e, t, n) => e.reduce((e, r, i) => {
|
|
2537
2575
|
let a = t[i];
|
|
2538
2576
|
if (a && a.call) {
|
|
2539
2577
|
let e = a(n), t = e && e.props && e.props.className || /^go/.test(e) && e;
|
|
2540
|
-
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" :
|
|
2578
|
+
a = t ? "." + t : e && typeof e == "object" ? e.props ? "" : si(e, "") : !1 === e ? "" : e;
|
|
2541
2579
|
}
|
|
2542
2580
|
return e + r + (a ?? "");
|
|
2543
|
-
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n,
|
|
2581
|
+
}, ""))(n, [].slice.call(arguments, 1), t.p) : n.reduce((e, n) => Object.assign(e, n && n.call ? n(t.p) : n), {}) : n, ri(t.target), t.g, t.o, t.k);
|
|
2544
2582
|
}
|
|
2545
|
-
|
|
2546
|
-
function
|
|
2583
|
+
di.bind({ g: 1 }), di.bind({ k: 1 });
|
|
2584
|
+
function fi(e, t) {
|
|
2547
2585
|
for (var n = 0; n < t.length; n++) {
|
|
2548
2586
|
var r = t[n];
|
|
2549
2587
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
2550
2588
|
}
|
|
2551
2589
|
}
|
|
2552
|
-
function
|
|
2553
|
-
return t &&
|
|
2590
|
+
function pi(e, t, n) {
|
|
2591
|
+
return t && fi(e.prototype, t), n && fi(e, n), e;
|
|
2554
2592
|
}
|
|
2555
2593
|
function $() {
|
|
2556
2594
|
return $ = Object.assign || function(e) {
|
|
@@ -2561,37 +2599,37 @@ function $() {
|
|
|
2561
2599
|
return e;
|
|
2562
2600
|
}, $.apply(this, arguments);
|
|
2563
2601
|
}
|
|
2564
|
-
function
|
|
2602
|
+
function mi(e, t) {
|
|
2565
2603
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
2566
2604
|
}
|
|
2567
|
-
function
|
|
2605
|
+
function hi(e, t) {
|
|
2568
2606
|
if (e == null) return {};
|
|
2569
2607
|
var n, r, i = {}, a = Object.keys(e);
|
|
2570
2608
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) >= 0 || (i[n] = e[n]);
|
|
2571
2609
|
return i;
|
|
2572
2610
|
}
|
|
2573
|
-
function
|
|
2611
|
+
function gi(e) {
|
|
2574
2612
|
if (e === void 0) throw ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2575
2613
|
return e;
|
|
2576
2614
|
}
|
|
2577
|
-
var
|
|
2615
|
+
var _i = function() {
|
|
2578
2616
|
return "";
|
|
2579
|
-
},
|
|
2580
|
-
enqueueSnackbar:
|
|
2581
|
-
closeSnackbar:
|
|
2582
|
-
}),
|
|
2617
|
+
}, vi = I.createContext({
|
|
2618
|
+
enqueueSnackbar: _i,
|
|
2619
|
+
closeSnackbar: _i
|
|
2620
|
+
}), yi = "@media (max-width:599.95px)", bi = "@media (min-width:600px)", xi = function(e) {
|
|
2583
2621
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2584
|
-
},
|
|
2585
|
-
return "" +
|
|
2586
|
-
},
|
|
2622
|
+
}, Si = function(e) {
|
|
2623
|
+
return "" + xi(e.vertical) + xi(e.horizontal);
|
|
2624
|
+
}, Ci = function(e) {
|
|
2587
2625
|
return !!e || e === 0;
|
|
2588
|
-
},
|
|
2626
|
+
}, wi = "unmounted", Ti = "exited", Ei = "entering", Di = "entered", Oi = "exiting", ki = function(e) {
|
|
2589
2627
|
function t(t) {
|
|
2590
2628
|
var n, r = e.call(this, t) || this, i = t.appear;
|
|
2591
|
-
return r.appearStatus = null, t.in ? i ? (n =
|
|
2629
|
+
return r.appearStatus = null, t.in ? i ? (n = Ti, r.appearStatus = Ei) : n = Di : n = t.unmountOnExit || t.mountOnEnter ? wi : Ti, r.state = { status: n }, r.nextCallback = null, r;
|
|
2592
2630
|
}
|
|
2593
|
-
|
|
2594
|
-
return e.in && t.status ===
|
|
2631
|
+
mi(t, e), t.getDerivedStateFromProps = function(e, t) {
|
|
2632
|
+
return e.in && t.status === wi ? { status: Ti } : null;
|
|
2595
2633
|
};
|
|
2596
2634
|
var n = t.prototype;
|
|
2597
2635
|
return n.componentDidMount = function() {
|
|
@@ -2600,7 +2638,7 @@ var pi = function() {
|
|
|
2600
2638
|
var t = null;
|
|
2601
2639
|
if (e !== this.props) {
|
|
2602
2640
|
var n = this.state.status;
|
|
2603
|
-
this.props.in ? n !==
|
|
2641
|
+
this.props.in ? n !== Ei && n !== Di && (t = Ei) : n !== Ei && n !== Di || (t = Oi);
|
|
2604
2642
|
}
|
|
2605
2643
|
this.updateStatus(!1, t);
|
|
2606
2644
|
}, n.componentWillUnmount = function() {
|
|
@@ -2612,27 +2650,27 @@ var pi = function() {
|
|
|
2612
2650
|
enter: t
|
|
2613
2651
|
};
|
|
2614
2652
|
}, n.updateStatus = function(e, t) {
|
|
2615
|
-
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status ===
|
|
2653
|
+
e === void 0 && (e = !1), t === null ? this.props.unmountOnExit && this.state.status === Ti && this.setState({ status: wi }) : (this.cancelNextCallback(), t === Ei ? this.performEnter(e) : this.performExit());
|
|
2616
2654
|
}, n.performEnter = function(e) {
|
|
2617
2655
|
var t = this, n = this.props.enter, r = e, i = this.getTimeouts();
|
|
2618
|
-
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status:
|
|
2656
|
+
e || n ? (this.props.onEnter && this.props.onEnter(this.node, r), this.safeSetState({ status: Ei }, function() {
|
|
2619
2657
|
t.props.onEntering && t.props.onEntering(t.node, r), t.onTransitionEnd(i.enter, function() {
|
|
2620
|
-
t.safeSetState({ status:
|
|
2658
|
+
t.safeSetState({ status: Di }, function() {
|
|
2621
2659
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
2622
2660
|
});
|
|
2623
2661
|
});
|
|
2624
|
-
})) : this.safeSetState({ status:
|
|
2662
|
+
})) : this.safeSetState({ status: Di }, function() {
|
|
2625
2663
|
t.props.onEntered && t.props.onEntered(t.node, r);
|
|
2626
2664
|
});
|
|
2627
2665
|
}, n.performExit = function() {
|
|
2628
2666
|
var e = this, t = this.props.exit, n = this.getTimeouts();
|
|
2629
|
-
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status:
|
|
2667
|
+
t ? (this.props.onExit && this.props.onExit(this.node), this.safeSetState({ status: Oi }, function() {
|
|
2630
2668
|
e.props.onExiting && e.props.onExiting(e.node), e.onTransitionEnd(n.exit, function() {
|
|
2631
|
-
e.safeSetState({ status:
|
|
2669
|
+
e.safeSetState({ status: Ti }, function() {
|
|
2632
2670
|
e.props.onExited && e.props.onExited(e.node);
|
|
2633
2671
|
});
|
|
2634
2672
|
});
|
|
2635
|
-
})) : this.safeSetState({ status:
|
|
2673
|
+
})) : this.safeSetState({ status: Ti }, function() {
|
|
2636
2674
|
e.props.onExited && e.props.onExited(e.node);
|
|
2637
2675
|
});
|
|
2638
2676
|
}, n.cancelNextCallback = function() {
|
|
@@ -2652,9 +2690,9 @@ var pi = function() {
|
|
|
2652
2690
|
this.node && !n ? (this.props.addEndListener && this.props.addEndListener(this.node, this.nextCallback), e != null && setTimeout(this.nextCallback, e)) : setTimeout(this.nextCallback, 0);
|
|
2653
2691
|
}, n.render = function() {
|
|
2654
2692
|
var e = this.state.status;
|
|
2655
|
-
if (e ===
|
|
2693
|
+
if (e === wi) return null;
|
|
2656
2694
|
var t = this.props;
|
|
2657
|
-
return (0, t.children)(e,
|
|
2695
|
+
return (0, t.children)(e, hi(t, [
|
|
2658
2696
|
"children",
|
|
2659
2697
|
"in",
|
|
2660
2698
|
"mountOnEnter",
|
|
@@ -2672,7 +2710,7 @@ var pi = function() {
|
|
|
2672
2710
|
"onExited",
|
|
2673
2711
|
"nodeRef"
|
|
2674
2712
|
]));
|
|
2675
|
-
},
|
|
2713
|
+
}, pi(t, [{
|
|
2676
2714
|
key: "node",
|
|
2677
2715
|
get: function() {
|
|
2678
2716
|
var e = this.props.nodeRef?.current;
|
|
@@ -2681,18 +2719,18 @@ var pi = function() {
|
|
|
2681
2719
|
}
|
|
2682
2720
|
}]), t;
|
|
2683
2721
|
}(I.Component);
|
|
2684
|
-
function
|
|
2685
|
-
function
|
|
2722
|
+
function Ai() {}
|
|
2723
|
+
function ji(e, t) {
|
|
2686
2724
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
2687
2725
|
}
|
|
2688
|
-
function
|
|
2726
|
+
function Mi(e, t) {
|
|
2689
2727
|
return V(function() {
|
|
2690
2728
|
return e == null && t == null ? null : function(n) {
|
|
2691
|
-
|
|
2729
|
+
ji(e, n), ji(t, n);
|
|
2692
2730
|
};
|
|
2693
2731
|
}, [e, t]);
|
|
2694
2732
|
}
|
|
2695
|
-
function
|
|
2733
|
+
function Ni(e) {
|
|
2696
2734
|
var t = e.timeout, n = e.style, r = n === void 0 ? {} : n, i = e.mode;
|
|
2697
2735
|
return {
|
|
2698
2736
|
duration: typeof t == "object" ? t[i] || 0 : t,
|
|
@@ -2700,42 +2738,42 @@ function ki(e) {
|
|
|
2700
2738
|
delay: r.transitionDelay
|
|
2701
2739
|
};
|
|
2702
2740
|
}
|
|
2703
|
-
|
|
2741
|
+
ki.defaultProps = {
|
|
2704
2742
|
in: !1,
|
|
2705
2743
|
mountOnEnter: !1,
|
|
2706
2744
|
unmountOnExit: !1,
|
|
2707
2745
|
appear: !1,
|
|
2708
2746
|
enter: !0,
|
|
2709
2747
|
exit: !0,
|
|
2710
|
-
onEnter:
|
|
2711
|
-
onEntering:
|
|
2712
|
-
onEntered:
|
|
2713
|
-
onExit:
|
|
2714
|
-
onExiting:
|
|
2715
|
-
onExited:
|
|
2748
|
+
onEnter: Ai,
|
|
2749
|
+
onEntering: Ai,
|
|
2750
|
+
onEntered: Ai,
|
|
2751
|
+
onExit: Ai,
|
|
2752
|
+
onExiting: Ai,
|
|
2753
|
+
onExited: Ai
|
|
2716
2754
|
};
|
|
2717
|
-
var
|
|
2755
|
+
var Pi = "cubic-bezier(0.4, 0, 0.2, 1)", Fi = "cubic-bezier(0.0, 0, 0.2, 1)", Ii = "cubic-bezier(0.4, 0, 0.6, 1)", Li = function(e) {
|
|
2718
2756
|
e.scrollTop = e.scrollTop;
|
|
2719
|
-
},
|
|
2757
|
+
}, Ri = function(e) {
|
|
2720
2758
|
return Math.round(e) + "ms";
|
|
2721
2759
|
};
|
|
2722
|
-
function
|
|
2760
|
+
function zi(e, t) {
|
|
2723
2761
|
e === void 0 && (e = ["all"]);
|
|
2724
|
-
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ?
|
|
2762
|
+
var n = t || {}, r = n.duration, i = r === void 0 ? 300 : r, a = n.easing, o = a === void 0 ? Pi : a, s = n.delay, c = s === void 0 ? 0 : s;
|
|
2725
2763
|
return (Array.isArray(e) ? e : [e]).map(function(e) {
|
|
2726
|
-
var t = typeof i == "string" ? i :
|
|
2764
|
+
var t = typeof i == "string" ? i : Ri(i), n = typeof c == "string" ? c : Ri(c);
|
|
2727
2765
|
return e + " " + t + " " + o + " " + n;
|
|
2728
2766
|
}).join(",");
|
|
2729
2767
|
}
|
|
2730
|
-
function
|
|
2768
|
+
function Bi(e) {
|
|
2731
2769
|
return function(e) {
|
|
2732
2770
|
return e && e.ownerDocument || document;
|
|
2733
2771
|
}(e).defaultView || window;
|
|
2734
2772
|
}
|
|
2735
|
-
function
|
|
2773
|
+
function Vi(e, t) {
|
|
2736
2774
|
if (t) {
|
|
2737
2775
|
var n = function(e, t) {
|
|
2738
|
-
var n, r = t.getBoundingClientRect(), i =
|
|
2776
|
+
var n, r = t.getBoundingClientRect(), i = Bi(t);
|
|
2739
2777
|
if (t.fakeTransform) n = t.fakeTransform;
|
|
2740
2778
|
else {
|
|
2741
2779
|
var a = i.getComputedStyle(t);
|
|
@@ -2756,8 +2794,8 @@ function Li(e, t) {
|
|
|
2756
2794
|
n && (t.style.webkitTransform = n, t.style.transform = n);
|
|
2757
2795
|
}
|
|
2758
2796
|
}
|
|
2759
|
-
var
|
|
2760
|
-
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p =
|
|
2797
|
+
var Hi = L(function(e, t) {
|
|
2798
|
+
var n = e.children, r = e.direction, i = r === void 0 ? "down" : r, a = e.in, o = e.style, s = e.timeout, c = s === void 0 ? 0 : s, l = e.onEnter, u = e.onEntered, d = e.onExit, f = e.onExited, p = hi(e, [
|
|
2761
2799
|
"children",
|
|
2762
2800
|
"direction",
|
|
2763
2801
|
"in",
|
|
@@ -2767,8 +2805,8 @@ var Ri = L(function(e, t) {
|
|
|
2767
2805
|
"onEntered",
|
|
2768
2806
|
"onExit",
|
|
2769
2807
|
"onExited"
|
|
2770
|
-
]), m = H(null), h =
|
|
2771
|
-
m.current &&
|
|
2808
|
+
]), m = H(null), h = Mi(Mi(n.ref, m), t), g = z(function() {
|
|
2809
|
+
m.current && Vi(i, m.current);
|
|
2772
2810
|
}, [i]);
|
|
2773
2811
|
return B(function() {
|
|
2774
2812
|
if (!a && i !== "down" && i !== "right") {
|
|
@@ -2784,36 +2822,36 @@ var Ri = L(function(e, t) {
|
|
|
2784
2822
|
clearTimeout(n);
|
|
2785
2823
|
}, r;
|
|
2786
2824
|
}(function() {
|
|
2787
|
-
m.current &&
|
|
2788
|
-
}), t =
|
|
2825
|
+
m.current && Vi(i, m.current);
|
|
2826
|
+
}), t = Bi(m.current);
|
|
2789
2827
|
return t.addEventListener("resize", e), function() {
|
|
2790
2828
|
e.clear(), t.removeEventListener("resize", e);
|
|
2791
2829
|
};
|
|
2792
2830
|
}
|
|
2793
2831
|
}, [i, a]), B(function() {
|
|
2794
2832
|
a || g();
|
|
2795
|
-
}, [a, g]),
|
|
2833
|
+
}, [a, g]), Et(ki, Object.assign({
|
|
2796
2834
|
appear: !0,
|
|
2797
2835
|
nodeRef: m,
|
|
2798
2836
|
onEnter: function(e, t) {
|
|
2799
|
-
|
|
2837
|
+
Vi(i, e), Li(e), l && l(e, t);
|
|
2800
2838
|
},
|
|
2801
2839
|
onEntered: u,
|
|
2802
2840
|
onEntering: function(e) {
|
|
2803
|
-
var t = o?.transitionTimingFunction ||
|
|
2841
|
+
var t = o?.transitionTimingFunction || Fi, n = Ni({
|
|
2804
2842
|
timeout: c,
|
|
2805
2843
|
mode: "enter",
|
|
2806
2844
|
style: $({}, o, { transitionTimingFunction: t })
|
|
2807
2845
|
});
|
|
2808
|
-
e.style.webkitTransition =
|
|
2846
|
+
e.style.webkitTransition = zi("-webkit-transform", n), e.style.transition = zi("transform", n), e.style.webkitTransform = "none", e.style.transform = "none";
|
|
2809
2847
|
},
|
|
2810
2848
|
onExit: function(e) {
|
|
2811
|
-
var t = o?.transitionTimingFunction ||
|
|
2849
|
+
var t = o?.transitionTimingFunction || Ii, n = Ni({
|
|
2812
2850
|
timeout: c,
|
|
2813
2851
|
mode: "exit",
|
|
2814
2852
|
style: $({}, o, { transitionTimingFunction: t })
|
|
2815
2853
|
});
|
|
2816
|
-
e.style.webkitTransition =
|
|
2854
|
+
e.style.webkitTransition = zi("-webkit-transform", n), e.style.transition = zi("transform", n), Vi(i, e), d && d(e);
|
|
2817
2855
|
},
|
|
2818
2856
|
onExited: function(e) {
|
|
2819
2857
|
e.style.webkitTransition = "", e.style.transition = "", f && f(e);
|
|
@@ -2821,14 +2859,14 @@ var Ri = L(function(e, t) {
|
|
|
2821
2859
|
in: a,
|
|
2822
2860
|
timeout: c
|
|
2823
2861
|
}, p), function(e, t) {
|
|
2824
|
-
return
|
|
2862
|
+
return wt(n, $({
|
|
2825
2863
|
ref: h,
|
|
2826
2864
|
style: $({ visibility: e !== "exited" || a ? void 0 : "hidden" }, o, {}, n.props.style)
|
|
2827
2865
|
}, t));
|
|
2828
2866
|
});
|
|
2829
2867
|
});
|
|
2830
|
-
|
|
2831
|
-
var
|
|
2868
|
+
Hi.displayName = "Slide";
|
|
2869
|
+
var Ui = function(e) {
|
|
2832
2870
|
return I.createElement("svg", Object.assign({
|
|
2833
2871
|
viewBox: "0 0 24 24",
|
|
2834
2872
|
focusable: "false",
|
|
@@ -2843,7 +2881,7 @@ var zi = function(e) {
|
|
|
2843
2881
|
flexShrink: 0
|
|
2844
2882
|
}
|
|
2845
2883
|
}, e));
|
|
2846
|
-
},
|
|
2884
|
+
}, Wi = {
|
|
2847
2885
|
maxSnack: 3,
|
|
2848
2886
|
persist: !1,
|
|
2849
2887
|
hideIconVariant: !1,
|
|
@@ -2853,68 +2891,68 @@ var zi = function(e) {
|
|
|
2853
2891
|
iconVariant: {
|
|
2854
2892
|
default: void 0,
|
|
2855
2893
|
success: I.createElement(function() {
|
|
2856
|
-
return I.createElement(
|
|
2894
|
+
return I.createElement(Ui, null, I.createElement("path", { d: "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z" }));
|
|
2857
2895
|
}, null),
|
|
2858
2896
|
warning: I.createElement(function() {
|
|
2859
|
-
return I.createElement(
|
|
2897
|
+
return I.createElement(Ui, null, I.createElement("path", { d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z" }));
|
|
2860
2898
|
}, null),
|
|
2861
2899
|
error: I.createElement(function() {
|
|
2862
|
-
return I.createElement(
|
|
2900
|
+
return I.createElement(Ui, null, I.createElement("path", { d: "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z" }));
|
|
2863
2901
|
}, null),
|
|
2864
2902
|
info: I.createElement(function() {
|
|
2865
|
-
return I.createElement(
|
|
2903
|
+
return I.createElement(Ui, null, I.createElement("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z" }));
|
|
2866
2904
|
}, null)
|
|
2867
2905
|
},
|
|
2868
2906
|
anchorOrigin: {
|
|
2869
2907
|
vertical: "bottom",
|
|
2870
2908
|
horizontal: "left"
|
|
2871
2909
|
},
|
|
2872
|
-
TransitionComponent:
|
|
2910
|
+
TransitionComponent: Hi,
|
|
2873
2911
|
transitionDuration: {
|
|
2874
2912
|
enter: 225,
|
|
2875
2913
|
exit: 195
|
|
2876
2914
|
}
|
|
2877
|
-
},
|
|
2915
|
+
}, Gi = function(e, t) {
|
|
2878
2916
|
return function(n, r) {
|
|
2879
|
-
return r === void 0 && (r = !1), r ? $({},
|
|
2917
|
+
return r === void 0 && (r = !1), r ? $({}, Wi[n], {}, t[n], {}, e[n]) : n === "autoHideDuration" ? (i = e.autoHideDuration, a = t.autoHideDuration, (o = function(e) {
|
|
2880
2918
|
return typeof e == "number" || e === null;
|
|
2881
|
-
})(i) ? i : o(a) ? a :
|
|
2919
|
+
})(i) ? i : o(a) ? a : Wi.autoHideDuration) : n === "transitionDuration" ? function(e, t) {
|
|
2882
2920
|
var n = function(e, t) {
|
|
2883
2921
|
return t.some(function(t) {
|
|
2884
2922
|
return typeof e === t;
|
|
2885
2923
|
});
|
|
2886
2924
|
};
|
|
2887
|
-
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({},
|
|
2888
|
-
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] ||
|
|
2925
|
+
return n(e, ["string", "number"]) ? e : n(e, ["object"]) ? $({}, Wi.transitionDuration, {}, n(t, ["object"]) && t, {}, e) : n(t, ["string", "number"]) ? t : n(t, ["object"]) ? $({}, Wi.transitionDuration, {}, t) : Wi.transitionDuration;
|
|
2926
|
+
}(e.transitionDuration, t.transitionDuration) : e[n] || t[n] || Wi[n];
|
|
2889
2927
|
var i, a, o;
|
|
2890
2928
|
};
|
|
2891
2929
|
};
|
|
2892
|
-
function
|
|
2930
|
+
function Ki(e) {
|
|
2893
2931
|
return Object.entries(e).reduce(function(e, t) {
|
|
2894
2932
|
var n, r = t[0], i = t[1];
|
|
2895
|
-
return $({}, e, ((n = {})[r] =
|
|
2933
|
+
return $({}, e, ((n = {})[r] = di(i), n));
|
|
2896
2934
|
}, {});
|
|
2897
2935
|
}
|
|
2898
|
-
var
|
|
2936
|
+
var qi = "notistack-SnackbarContainer", Ji = "notistack-Snackbar", Yi = "notistack-CollapseWrapper", Xi = "notistack-MuiContent", Zi = function(e) {
|
|
2899
2937
|
return "notistack-MuiContent-" + e;
|
|
2900
|
-
},
|
|
2938
|
+
}, Qi = Ki({
|
|
2901
2939
|
root: { height: 0 },
|
|
2902
2940
|
entered: { height: "auto" }
|
|
2903
|
-
}),
|
|
2904
|
-
var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s =
|
|
2941
|
+
}), $i = "0px", ea = L(function(e, t) {
|
|
2942
|
+
var n = e.children, r = e.in, i = e.onExited, a = H(null), o = H(null), s = Mi(t, o), c = function() {
|
|
2905
2943
|
return a.current ? a.current.clientHeight : 0;
|
|
2906
2944
|
};
|
|
2907
|
-
return
|
|
2945
|
+
return Et(ki, {
|
|
2908
2946
|
in: r,
|
|
2909
2947
|
unmountOnExit: !0,
|
|
2910
2948
|
onEnter: function(e) {
|
|
2911
|
-
e.style.height =
|
|
2949
|
+
e.style.height = $i;
|
|
2912
2950
|
},
|
|
2913
2951
|
onEntered: function(e) {
|
|
2914
2952
|
e.style.height = "auto";
|
|
2915
2953
|
},
|
|
2916
2954
|
onEntering: function(e) {
|
|
2917
|
-
var t = c(), n =
|
|
2955
|
+
var t = c(), n = Ni({
|
|
2918
2956
|
timeout: 175,
|
|
2919
2957
|
mode: "enter"
|
|
2920
2958
|
}), r = n.duration, i = n.easing;
|
|
@@ -2925,28 +2963,28 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
|
|
|
2925
2963
|
},
|
|
2926
2964
|
onExited: i,
|
|
2927
2965
|
onExiting: function(e) {
|
|
2928
|
-
|
|
2929
|
-
var t =
|
|
2966
|
+
Li(e);
|
|
2967
|
+
var t = Ni({
|
|
2930
2968
|
timeout: 175,
|
|
2931
2969
|
mode: "exit"
|
|
2932
2970
|
}), n = t.duration, r = t.easing;
|
|
2933
|
-
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height =
|
|
2971
|
+
e.style.transitionDuration = typeof n == "string" ? n : n + "ms", e.style.height = $i, e.style.transitionTimingFunction = r || "";
|
|
2934
2972
|
},
|
|
2935
2973
|
nodeRef: o,
|
|
2936
2974
|
timeout: 175
|
|
2937
2975
|
}, function(e, t) {
|
|
2938
|
-
return
|
|
2976
|
+
return Et("div", Object.assign({
|
|
2939
2977
|
ref: s,
|
|
2940
|
-
className:
|
|
2978
|
+
className: ti(Qi.root, e === "entered" && Qi.entered),
|
|
2941
2979
|
style: $({
|
|
2942
2980
|
pointerEvents: "all",
|
|
2943
2981
|
overflow: "hidden",
|
|
2944
|
-
minHeight:
|
|
2945
|
-
transition:
|
|
2982
|
+
minHeight: $i,
|
|
2983
|
+
transition: zi("height")
|
|
2946
2984
|
}, e === "entered" && { overflow: "visible" }, {}, e === "exited" && !r && { visibility: "hidden" })
|
|
2947
|
-
}, t),
|
|
2985
|
+
}, t), Et("div", {
|
|
2948
2986
|
ref: a,
|
|
2949
|
-
className:
|
|
2987
|
+
className: Yi,
|
|
2950
2988
|
style: {
|
|
2951
2989
|
display: "flex",
|
|
2952
2990
|
width: "100%"
|
|
@@ -2954,36 +2992,36 @@ var Ui = "notistack-SnackbarContainer", Wi = "notistack-Snackbar", Gi = "notista
|
|
|
2954
2992
|
}, n));
|
|
2955
2993
|
});
|
|
2956
2994
|
});
|
|
2957
|
-
|
|
2958
|
-
var
|
|
2995
|
+
ea.displayName = "Collapse";
|
|
2996
|
+
var ta = {
|
|
2959
2997
|
right: "left",
|
|
2960
2998
|
left: "right",
|
|
2961
2999
|
bottom: "up",
|
|
2962
3000
|
top: "down"
|
|
2963
|
-
},
|
|
2964
|
-
return "anchorOrigin" +
|
|
2965
|
-
},
|
|
2966
|
-
function
|
|
3001
|
+
}, na = function(e) {
|
|
3002
|
+
return "anchorOrigin" + Si(e);
|
|
3003
|
+
}, ra = function() {};
|
|
3004
|
+
function ia(e, t) {
|
|
2967
3005
|
return e.reduce(function(e, n) {
|
|
2968
3006
|
return n == null ? e : function() {
|
|
2969
3007
|
var r = [...arguments], i = [].concat(r);
|
|
2970
3008
|
t && i.indexOf(t) === -1 && i.push(t), e.apply(this, i), n.apply(this, i);
|
|
2971
3009
|
};
|
|
2972
|
-
},
|
|
3010
|
+
}, ra);
|
|
2973
3011
|
}
|
|
2974
|
-
var
|
|
2975
|
-
function
|
|
3012
|
+
var aa = typeof window < "u" ? kt : B;
|
|
3013
|
+
function oa(e) {
|
|
2976
3014
|
var t = H(e);
|
|
2977
|
-
return
|
|
3015
|
+
return aa(function() {
|
|
2978
3016
|
t.current = e;
|
|
2979
3017
|
}), z(function() {
|
|
2980
3018
|
return t.current.apply(void 0, arguments);
|
|
2981
3019
|
}, []);
|
|
2982
3020
|
}
|
|
2983
|
-
var
|
|
2984
|
-
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p =
|
|
3021
|
+
var sa, ca = L(function(e, t) {
|
|
3022
|
+
var n = e.children, r = e.className, i = e.autoHideDuration, a = e.disableWindowBlurListener, o = a !== void 0 && a, s = e.onClose, c = e.id, l = e.open, u = e.SnackbarProps, d = u === void 0 ? {} : u, f = H(), p = oa(function() {
|
|
2985
3023
|
s && s.apply(void 0, arguments);
|
|
2986
|
-
}), m =
|
|
3024
|
+
}), m = oa(function(e) {
|
|
2987
3025
|
s && e != null && (f.current && clearTimeout(f.current), f.current = setTimeout(function() {
|
|
2988
3026
|
p(null, "timeout", c);
|
|
2989
3027
|
}, e));
|
|
@@ -3010,8 +3048,8 @@ var ra, ia = L(function(e, t) {
|
|
|
3010
3048
|
o,
|
|
3011
3049
|
g,
|
|
3012
3050
|
l
|
|
3013
|
-
]),
|
|
3014
|
-
className:
|
|
3051
|
+
]), Et("div", Object.assign({ ref: t }, d, {
|
|
3052
|
+
className: ti(Ji, r),
|
|
3015
3053
|
onMouseEnter: function(e) {
|
|
3016
3054
|
d.onMouseEnter && d.onMouseEnter(e), h();
|
|
3017
3055
|
},
|
|
@@ -3020,23 +3058,23 @@ var ra, ia = L(function(e, t) {
|
|
|
3020
3058
|
}
|
|
3021
3059
|
}), n);
|
|
3022
3060
|
});
|
|
3023
|
-
|
|
3024
|
-
var
|
|
3061
|
+
ca.displayName = "Snackbar";
|
|
3062
|
+
var la = Ki({ root: (sa = {
|
|
3025
3063
|
display: "flex",
|
|
3026
3064
|
flexWrap: "wrap",
|
|
3027
3065
|
flexGrow: 1
|
|
3028
|
-
},
|
|
3066
|
+
}, sa[bi] = {
|
|
3029
3067
|
flexGrow: "initial",
|
|
3030
3068
|
minWidth: "288px"
|
|
3031
|
-
},
|
|
3032
|
-
var n = e.className, r =
|
|
3069
|
+
}, sa) }), ua = L(function(e, t) {
|
|
3070
|
+
var n = e.className, r = hi(e, ["className"]);
|
|
3033
3071
|
return I.createElement("div", Object.assign({
|
|
3034
3072
|
ref: t,
|
|
3035
|
-
className:
|
|
3073
|
+
className: ti(la.root, n)
|
|
3036
3074
|
}, r));
|
|
3037
3075
|
});
|
|
3038
|
-
|
|
3039
|
-
var
|
|
3076
|
+
ua.displayName = "SnackbarContent";
|
|
3077
|
+
var da = Ki({
|
|
3040
3078
|
root: {
|
|
3041
3079
|
backgroundColor: "#313131",
|
|
3042
3080
|
fontSize: "0.875rem",
|
|
@@ -3066,21 +3104,21 @@ var sa = Hi({
|
|
|
3066
3104
|
paddingLeft: "16px",
|
|
3067
3105
|
marginRight: "-8px"
|
|
3068
3106
|
}
|
|
3069
|
-
}),
|
|
3107
|
+
}), fa = "notistack-snackbar", pa = L(function(e, t) {
|
|
3070
3108
|
var n = e.id, r = e.message, i = e.action, a = e.iconVariant, o = e.variant, s = e.hideIconVariant, c = e.style, l = e.className, u = a[o], d = i;
|
|
3071
|
-
return typeof d == "function" && (d = d(n)), I.createElement(
|
|
3109
|
+
return typeof d == "function" && (d = d(n)), I.createElement(ua, {
|
|
3072
3110
|
ref: t,
|
|
3073
3111
|
role: "alert",
|
|
3074
|
-
"aria-describedby":
|
|
3112
|
+
"aria-describedby": fa,
|
|
3075
3113
|
style: c,
|
|
3076
|
-
className:
|
|
3114
|
+
className: ti(Xi, Zi(o), da.root, da[o], l, !s && u && da.lessPadding)
|
|
3077
3115
|
}, I.createElement("div", {
|
|
3078
|
-
id:
|
|
3079
|
-
className:
|
|
3080
|
-
}, s ? null : u, r), d && I.createElement("div", { className:
|
|
3116
|
+
id: fa,
|
|
3117
|
+
className: da.message
|
|
3118
|
+
}, s ? null : u, r), d && I.createElement("div", { className: da.action }, d));
|
|
3081
3119
|
});
|
|
3082
|
-
|
|
3083
|
-
var
|
|
3120
|
+
pa.displayName = "MaterialDesignContent";
|
|
3121
|
+
var ma, ha, ga, _a, va, ya = R(pa), ba = Ki({ wrappedRoot: {
|
|
3084
3122
|
width: "100%",
|
|
3085
3123
|
position: "relative",
|
|
3086
3124
|
transform: "translateX(0)",
|
|
@@ -3089,8 +3127,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3089
3127
|
bottom: 0,
|
|
3090
3128
|
left: 0,
|
|
3091
3129
|
minWidth: "288px"
|
|
3092
|
-
} }),
|
|
3093
|
-
var t = H(), n = U(!0), r = n[0], i = n[1], a =
|
|
3130
|
+
} }), xa = function(e) {
|
|
3131
|
+
var t = H(), n = U(!0), r = n[0], i = n[1], a = ia([e.snack.onClose, e.onClose]), o = z(function() {
|
|
3094
3132
|
t.current = setTimeout(function() {
|
|
3095
3133
|
i(function(e) {
|
|
3096
3134
|
return !e;
|
|
@@ -3102,7 +3140,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3102
3140
|
t.current && clearTimeout(t.current);
|
|
3103
3141
|
};
|
|
3104
3142
|
}, []);
|
|
3105
|
-
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ?
|
|
3143
|
+
var s, c = e.snack, l = e.classes, u = e.Component, d = u === void 0 ? ya : u, f = V(function() {
|
|
3106
3144
|
return function(e) {
|
|
3107
3145
|
e === void 0 && (e = {});
|
|
3108
3146
|
var t = {
|
|
@@ -3121,7 +3159,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3121
3159
|
return $({}, t, ((r = {})[n] = e[n], r));
|
|
3122
3160
|
}, {});
|
|
3123
3161
|
}(l);
|
|
3124
|
-
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b =
|
|
3162
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = hi(c, [
|
|
3125
3163
|
"open",
|
|
3126
3164
|
"SnackbarProps",
|
|
3127
3165
|
"TransitionComponent",
|
|
@@ -3136,7 +3174,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3136
3174
|
"onExit",
|
|
3137
3175
|
"onExited"
|
|
3138
3176
|
]), x = $({
|
|
3139
|
-
direction: (s = b.anchorOrigin, s.horizontal === "center" ?
|
|
3177
|
+
direction: (s = b.anchorOrigin, s.horizontal === "center" ? ta[s.vertical] : ta[s.horizontal]),
|
|
3140
3178
|
timeout: _
|
|
3141
3179
|
}, g), S = y;
|
|
3142
3180
|
typeof S == "function" && (S = S(b.id, b.message));
|
|
@@ -3147,17 +3185,17 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3147
3185
|
"onExited"
|
|
3148
3186
|
].reduce(function(t, n) {
|
|
3149
3187
|
var r;
|
|
3150
|
-
return $({}, t, ((r = {})[n] =
|
|
3188
|
+
return $({}, t, ((r = {})[n] = ia([e.snack[n], e[n]], b.id), r));
|
|
3151
3189
|
}, {});
|
|
3152
|
-
return I.createElement(
|
|
3190
|
+
return I.createElement(ea, {
|
|
3153
3191
|
in: r,
|
|
3154
3192
|
onExited: C.onExited
|
|
3155
|
-
}, I.createElement(
|
|
3193
|
+
}, I.createElement(ca, {
|
|
3156
3194
|
open: p,
|
|
3157
3195
|
id: b.id,
|
|
3158
3196
|
disableWindowBlurListener: v,
|
|
3159
3197
|
autoHideDuration: b.autoHideDuration,
|
|
3160
|
-
className:
|
|
3198
|
+
className: ti(ba.wrappedRoot, f.root, f[na(b.anchorOrigin)]),
|
|
3161
3199
|
SnackbarProps: m,
|
|
3162
3200
|
onClose: a
|
|
3163
3201
|
}, I.createElement(h, Object.assign({}, x, {
|
|
@@ -3166,18 +3204,18 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3166
3204
|
onExit: C.onExit,
|
|
3167
3205
|
onExited: o,
|
|
3168
3206
|
onEnter: C.onEnter,
|
|
3169
|
-
onEntered:
|
|
3207
|
+
onEntered: ia([C.onEntered, function() {
|
|
3170
3208
|
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
3171
3209
|
}], b.id)
|
|
3172
3210
|
}), S || I.createElement(d, Object.assign({}, b)))));
|
|
3173
|
-
},
|
|
3211
|
+
}, Sa = {
|
|
3174
3212
|
default: 20,
|
|
3175
3213
|
dense: 4
|
|
3176
|
-
},
|
|
3214
|
+
}, Ca = {
|
|
3177
3215
|
default: 6,
|
|
3178
3216
|
dense: 2
|
|
3179
|
-
},
|
|
3180
|
-
root: (
|
|
3217
|
+
}, wa = "." + Yi, Ta = Ki({
|
|
3218
|
+
root: (ma = {
|
|
3181
3219
|
boxSizing: "border-box",
|
|
3182
3220
|
display: "flex",
|
|
3183
3221
|
maxHeight: "100%",
|
|
@@ -3185,7 +3223,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3185
3223
|
zIndex: 1400,
|
|
3186
3224
|
height: "auto",
|
|
3187
3225
|
width: "auto",
|
|
3188
|
-
transition:
|
|
3226
|
+
transition: zi([
|
|
3189
3227
|
"top",
|
|
3190
3228
|
"right",
|
|
3191
3229
|
"bottom",
|
|
@@ -3196,39 +3234,39 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3196
3234
|
easing: "ease"
|
|
3197
3235
|
}),
|
|
3198
3236
|
pointerEvents: "none"
|
|
3199
|
-
},
|
|
3200
|
-
padding:
|
|
3237
|
+
}, ma[wa] = {
|
|
3238
|
+
padding: Ca.default + "px 0px",
|
|
3201
3239
|
transition: "padding 300ms ease 0ms"
|
|
3202
|
-
},
|
|
3240
|
+
}, ma.maxWidth = "calc(100% - " + 2 * Sa.default + "px)", ma[yi] = {
|
|
3203
3241
|
width: "100%",
|
|
3204
3242
|
maxWidth: "calc(100% - 32px)"
|
|
3205
|
-
},
|
|
3206
|
-
rootDense: (
|
|
3243
|
+
}, ma),
|
|
3244
|
+
rootDense: (ha = {}, ha[wa] = { padding: Ca.dense + "px 0px" }, ha),
|
|
3207
3245
|
top: {
|
|
3208
|
-
top:
|
|
3246
|
+
top: Sa.default - Ca.default + "px",
|
|
3209
3247
|
flexDirection: "column"
|
|
3210
3248
|
},
|
|
3211
3249
|
bottom: {
|
|
3212
|
-
bottom:
|
|
3250
|
+
bottom: Sa.default - Ca.default + "px",
|
|
3213
3251
|
flexDirection: "column-reverse"
|
|
3214
3252
|
},
|
|
3215
|
-
left: (
|
|
3216
|
-
right: (
|
|
3217
|
-
center: (
|
|
3253
|
+
left: (ga = { left: Sa.default + "px" }, ga[bi] = { alignItems: "flex-start" }, ga[yi] = { left: "16px" }, ga),
|
|
3254
|
+
right: (_a = { right: Sa.default + "px" }, _a[bi] = { alignItems: "flex-end" }, _a[yi] = { right: "16px" }, _a),
|
|
3255
|
+
center: (va = {
|
|
3218
3256
|
left: "50%",
|
|
3219
3257
|
transform: "translateX(-50%)"
|
|
3220
|
-
},
|
|
3221
|
-
}),
|
|
3222
|
-
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o =
|
|
3258
|
+
}, va[bi] = { alignItems: "center" }, va)
|
|
3259
|
+
}), Ea = R(function(e) {
|
|
3260
|
+
var t = e.classes, n = t === void 0 ? {} : t, r = e.anchorOrigin, i = e.dense, a = e.children, o = ti(qi, Ta[r.vertical], Ta[r.horizontal], Ta.root, n.containerRoot, n["containerAnchorOrigin" + Si(r)], i && Ta.rootDense);
|
|
3223
3261
|
return I.createElement("div", { className: o }, a);
|
|
3224
|
-
}),
|
|
3225
|
-
return !(typeof e == "string" ||
|
|
3226
|
-
},
|
|
3262
|
+
}), Da = function(e) {
|
|
3263
|
+
return !(typeof e == "string" || Dt(e));
|
|
3264
|
+
}, Oa = function(e) {
|
|
3227
3265
|
function t(t) {
|
|
3228
3266
|
var n = e.call(this, t) || this;
|
|
3229
3267
|
return n.enqueueSnackbar = function(e, t) {
|
|
3230
3268
|
if (t === void 0 && (t = {}), e == null) throw Error("enqueueSnackbar called with invalid argument");
|
|
3231
|
-
var r =
|
|
3269
|
+
var r = Da(e) ? e : t, i = Da(e) ? e.message : e, a = r.key, o = r.preventDuplicate, s = hi(r, ["key", "preventDuplicate"]), c = Ci(a), l = c ? a : (/* @__PURE__ */ new Date()).getTime() + Math.random(), u = Gi(s, n.props), d = $({ id: l }, s, {
|
|
3232
3270
|
message: i,
|
|
3233
3271
|
open: !0,
|
|
3234
3272
|
entered: !1,
|
|
@@ -3247,7 +3285,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3247
3285
|
iconVariant: u("iconVariant", !0),
|
|
3248
3286
|
style: u("style", !0),
|
|
3249
3287
|
SnackbarProps: u("SnackbarProps", !0),
|
|
3250
|
-
className:
|
|
3288
|
+
className: ti(n.props.className, s.className)
|
|
3251
3289
|
});
|
|
3252
3290
|
return d.persist && (d.autoHideDuration = void 0), n.setState(function(e) {
|
|
3253
3291
|
if (o === void 0 && n.props.preventDuplicate || o) {
|
|
@@ -3279,7 +3317,7 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3279
3317
|
});
|
|
3280
3318
|
return $({}, e, { snacks: i });
|
|
3281
3319
|
}, n.handleEnteredSnack = function(e, t, r) {
|
|
3282
|
-
if (!
|
|
3320
|
+
if (!Ci(r)) throw Error("handleEnteredSnack Cannot be called with undefined key");
|
|
3283
3321
|
n.setState(function(e) {
|
|
3284
3322
|
return { snacks: e.snacks.map(function(e) {
|
|
3285
3323
|
return e.id === r ? $({}, e, { entered: !0 }) : $({}, e);
|
|
@@ -3303,9 +3341,9 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3303
3341
|
var t = n.state.snacks.find(function(t) {
|
|
3304
3342
|
return t.id === e;
|
|
3305
3343
|
});
|
|
3306
|
-
|
|
3344
|
+
Ci(e) && t && t.onClose && t.onClose(null, "instructed", e), n.handleCloseSnack(null, "instructed", e);
|
|
3307
3345
|
}, n.handleExitedSnack = function(e, t) {
|
|
3308
|
-
if (!
|
|
3346
|
+
if (!Ci(t)) throw Error("handleExitedSnack Cannot be called with undefined key");
|
|
3309
3347
|
n.setState(function(e) {
|
|
3310
3348
|
var r = n.processQueue($({}, e, { snacks: e.snacks.filter(function(e) {
|
|
3311
3349
|
return e.id !== t;
|
|
@@ -3316,24 +3354,24 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3316
3354
|
snacks: [],
|
|
3317
3355
|
queue: [],
|
|
3318
3356
|
contextValue: {
|
|
3319
|
-
enqueueSnackbar: n.enqueueSnackbar.bind(
|
|
3320
|
-
closeSnackbar: n.closeSnackbar.bind(
|
|
3357
|
+
enqueueSnackbar: n.enqueueSnackbar.bind(gi(n)),
|
|
3358
|
+
closeSnackbar: n.closeSnackbar.bind(gi(n))
|
|
3321
3359
|
}
|
|
3322
3360
|
}, n;
|
|
3323
3361
|
}
|
|
3324
|
-
return
|
|
3362
|
+
return mi(t, e), t.prototype.render = function() {
|
|
3325
3363
|
var e = this, t = this.state.contextValue, n = this.props, r = n.domRoot, i = n.children, a = n.dense, o = a !== void 0 && a, s = n.Components, c = s === void 0 ? {} : s, l = n.classes, u = this.state.snacks.reduce(function(e, t) {
|
|
3326
|
-
var n, r =
|
|
3364
|
+
var n, r = Si(t.anchorOrigin), i = e[r] || [];
|
|
3327
3365
|
return $({}, e, ((n = {})[r] = [].concat(i, [t]), n));
|
|
3328
3366
|
}, {}), d = Object.keys(u).map(function(t) {
|
|
3329
3367
|
var n = u[t], r = n[0];
|
|
3330
|
-
return I.createElement(
|
|
3368
|
+
return I.createElement(Ea, {
|
|
3331
3369
|
key: t,
|
|
3332
3370
|
dense: o,
|
|
3333
3371
|
anchorOrigin: r.anchorOrigin,
|
|
3334
3372
|
classes: l
|
|
3335
3373
|
}, n.map(function(t) {
|
|
3336
|
-
return I.createElement(
|
|
3374
|
+
return I.createElement(xa, {
|
|
3337
3375
|
key: t.id,
|
|
3338
3376
|
snack: t,
|
|
3339
3377
|
classes: l,
|
|
@@ -3341,21 +3379,21 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3341
3379
|
onClose: e.handleCloseSnack,
|
|
3342
3380
|
onEnter: e.props.onEnter,
|
|
3343
3381
|
onExit: e.props.onExit,
|
|
3344
|
-
onExited:
|
|
3345
|
-
onEntered:
|
|
3382
|
+
onExited: ia([e.handleExitedSnack, e.props.onExited], t.id),
|
|
3383
|
+
onEntered: ia([e.handleEnteredSnack, e.props.onEntered], t.id)
|
|
3346
3384
|
});
|
|
3347
3385
|
}));
|
|
3348
3386
|
});
|
|
3349
|
-
return I.createElement(
|
|
3350
|
-
},
|
|
3387
|
+
return I.createElement(vi.Provider, { value: t }, i, r ? Pn(d, r) : d);
|
|
3388
|
+
}, pi(t, [{
|
|
3351
3389
|
key: "maxSnack",
|
|
3352
3390
|
get: function() {
|
|
3353
|
-
return this.props.maxSnack ||
|
|
3391
|
+
return this.props.maxSnack || Wi.maxSnack;
|
|
3354
3392
|
}
|
|
3355
3393
|
}]), t;
|
|
3356
|
-
}(
|
|
3357
|
-
return
|
|
3358
|
-
},
|
|
3394
|
+
}(Ct), ka = function() {
|
|
3395
|
+
return Ot(vi);
|
|
3396
|
+
}, Aa = {
|
|
3359
3397
|
card: "_card_h0jnt_7",
|
|
3360
3398
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
3361
3399
|
icons: "_icons_h0jnt_16",
|
|
@@ -3365,44 +3403,44 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3365
3403
|
paper: "_paper_h0jnt_37",
|
|
3366
3404
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
3367
3405
|
button: "_button_h0jnt_47"
|
|
3368
|
-
},
|
|
3369
|
-
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } =
|
|
3406
|
+
}, ja = R(L((e, t) => {
|
|
3407
|
+
let { id: n, message: r, iconVariant: i, error: a, hideIconVariant: o, ...s } = e, c = F(), { closeSnackbar: l } = ka(), [u, d] = U(!1), f = a ? An.collectErrorChain(a, !0)?.[0]?.error : void 0, p = f && !(f instanceof jn), m = z(() => {
|
|
3370
3408
|
d((e) => !e);
|
|
3371
3409
|
}, []), h = z(() => {
|
|
3372
3410
|
l(n);
|
|
3373
3411
|
}, [n, l]), g = f?.message;
|
|
3374
|
-
return !g &&
|
|
3412
|
+
return !g && Dt(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, W(ua, {
|
|
3375
3413
|
ref: t,
|
|
3376
|
-
className:
|
|
3377
|
-
children: G(
|
|
3378
|
-
className:
|
|
3414
|
+
className: T(Aa.root, "error-snackbar"),
|
|
3415
|
+
children: G(en, {
|
|
3416
|
+
className: Aa.card,
|
|
3379
3417
|
style: {
|
|
3380
3418
|
backgroundColor: "var(--sxl-color-error)",
|
|
3381
3419
|
color: "var(--sxl-color-error-content)",
|
|
3382
3420
|
border: "1px solid var(--sxl-color-error)"
|
|
3383
3421
|
},
|
|
3384
|
-
children: [G(
|
|
3385
|
-
className:
|
|
3422
|
+
children: [G(tn, {
|
|
3423
|
+
className: Aa.actionRoot,
|
|
3386
3424
|
children: [
|
|
3387
3425
|
o ? null : i?.error,
|
|
3388
3426
|
W(Y, {
|
|
3389
3427
|
variant: "body2",
|
|
3390
3428
|
component: "div",
|
|
3391
|
-
className:
|
|
3429
|
+
className: Aa.typography,
|
|
3392
3430
|
children: g
|
|
3393
3431
|
}),
|
|
3394
3432
|
W("div", { style: { flex: "1 1 auto" } }),
|
|
3395
3433
|
G("div", {
|
|
3396
|
-
className:
|
|
3397
|
-
children: [p ? W(
|
|
3434
|
+
className: Aa.icons,
|
|
3435
|
+
children: [p ? W(dn, {
|
|
3398
3436
|
"aria-label": c("toast.showMore"),
|
|
3399
3437
|
size: "small",
|
|
3400
|
-
className:
|
|
3438
|
+
className: T(Aa.expand, { [Aa.expandOpen]: u }),
|
|
3401
3439
|
onClick: m,
|
|
3402
3440
|
children: W(N, { iconKey: "ExpandMore" })
|
|
3403
|
-
}) : null, W(
|
|
3441
|
+
}) : null, W(dn, {
|
|
3404
3442
|
size: "small",
|
|
3405
|
-
className:
|
|
3443
|
+
className: Aa.expand,
|
|
3406
3444
|
onClick: h,
|
|
3407
3445
|
children: W(N, {
|
|
3408
3446
|
iconKey: "Close",
|
|
@@ -3411,16 +3449,16 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3411
3449
|
})]
|
|
3412
3450
|
})
|
|
3413
3451
|
]
|
|
3414
|
-
}), p ? W(
|
|
3452
|
+
}), p ? W(rn, {
|
|
3415
3453
|
in: u,
|
|
3416
3454
|
timeout: "auto",
|
|
3417
3455
|
children: W("div", {
|
|
3418
|
-
className:
|
|
3456
|
+
className: Aa.stackTraceContainer,
|
|
3419
3457
|
style: {
|
|
3420
3458
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
3421
3459
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
3422
3460
|
},
|
|
3423
|
-
children: W(
|
|
3461
|
+
children: W(zt, {
|
|
3424
3462
|
error: a,
|
|
3425
3463
|
hideLineNumbers: !0
|
|
3426
3464
|
})
|
|
@@ -3429,8 +3467,8 @@ var ua, da, fa, pa, ma, ha = R(la), ga = Hi({ wrappedRoot: {
|
|
|
3429
3467
|
})
|
|
3430
3468
|
});
|
|
3431
3469
|
}));
|
|
3432
|
-
|
|
3433
|
-
var
|
|
3470
|
+
ja.displayName = "ToastError";
|
|
3471
|
+
var Ma = W(() => W(It, {
|
|
3434
3472
|
label: "SheetXL",
|
|
3435
3473
|
description: F()("logo.description"),
|
|
3436
3474
|
children: W(K, {
|
|
@@ -3446,22 +3484,22 @@ var Oa = W(() => W(Pt, {
|
|
|
3446
3484
|
marginLeft: "6px",
|
|
3447
3485
|
cursor: "pointer"
|
|
3448
3486
|
},
|
|
3449
|
-
children: W(
|
|
3487
|
+
children: W(je, { style: {
|
|
3450
3488
|
width: "24px",
|
|
3451
3489
|
height: "24px"
|
|
3452
3490
|
} })
|
|
3453
3491
|
})
|
|
3454
|
-
}), {}),
|
|
3455
|
-
let { workbook: n, className: r, logo:
|
|
3492
|
+
}), {}), Na = R(L((e, t) => {
|
|
3493
|
+
let { workbook: n, className: r, logo: i = Ma, mainElement: o, startElement: s, endElement: c, ...l } = e, [u, { width: d }] = pe(), f = d < 530, p = H(null);
|
|
3456
3494
|
return W(K, {
|
|
3457
3495
|
...l,
|
|
3458
|
-
ref:
|
|
3496
|
+
ref: ce([
|
|
3459
3497
|
p,
|
|
3460
3498
|
u,
|
|
3461
3499
|
t
|
|
3462
3500
|
]),
|
|
3463
3501
|
className: r,
|
|
3464
|
-
children:
|
|
3502
|
+
children: a({
|
|
3465
3503
|
isCompact: f,
|
|
3466
3504
|
wrapperSelect: (e) => G(K, {
|
|
3467
3505
|
sx: {
|
|
@@ -3482,7 +3520,7 @@ var Oa = W(() => W(Pt, {
|
|
|
3482
3520
|
justifyContent: "start",
|
|
3483
3521
|
gap: (e) => e.spacing(.5)
|
|
3484
3522
|
},
|
|
3485
|
-
children: [
|
|
3523
|
+
children: [i, G(K, {
|
|
3486
3524
|
sx: {
|
|
3487
3525
|
display: "flex",
|
|
3488
3526
|
flexDirection: "row",
|
|
@@ -3516,12 +3554,12 @@ var Oa = W(() => W(Pt, {
|
|
|
3516
3554
|
})
|
|
3517
3555
|
});
|
|
3518
3556
|
}));
|
|
3519
|
-
|
|
3520
|
-
var
|
|
3557
|
+
Na.displayName = "StudioToolbar";
|
|
3558
|
+
var Pa = (e, t) => {
|
|
3521
3559
|
let n = new URL(window.location.pathname, window.location.origin);
|
|
3522
|
-
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" +
|
|
3560
|
+
e && n.searchParams.set("source", e), e && t && n.searchParams.set("title", t), window.open(n.toString(), "sheetxl-" + Dn.uuidV4(), "popup=true");
|
|
3523
3561
|
};
|
|
3524
|
-
function
|
|
3562
|
+
function Fa(e, t) {
|
|
3525
3563
|
let { workbook: n, setWorkbook: r, workbookTitle: i = "export", isDirty: a, notifier: o, refSave: s } = t, c = !1, l = async (e = null, t = null, n = null) => {
|
|
3526
3564
|
let r = [], i = {
|
|
3527
3565
|
source: e && typeof e != "string" ? e : null,
|
|
@@ -3592,7 +3630,7 @@ function ja(e, t) {
|
|
|
3592
3630
|
let r = Q("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await k.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = Q("dialog.writeWarnings.keep");
|
|
3593
3631
|
return n ? await o.showOptions({
|
|
3594
3632
|
title: r,
|
|
3595
|
-
type:
|
|
3633
|
+
type: ct.Warning,
|
|
3596
3634
|
description: `${Q("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
3597
3635
|
options: [{
|
|
3598
3636
|
id: "Save",
|
|
@@ -3601,7 +3639,7 @@ function ja(e, t) {
|
|
|
3601
3639
|
defaultOption: "Cancel"
|
|
3602
3640
|
}) === "Save" && (a = await o?.showBusy?.(Q("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
3603
3641
|
title: r,
|
|
3604
|
-
type:
|
|
3642
|
+
type: ct.Warning,
|
|
3605
3643
|
description: `${Q("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
3606
3644
|
options: ["Ok"]
|
|
3607
3645
|
}), !0);
|
|
@@ -3621,7 +3659,7 @@ function ja(e, t) {
|
|
|
3621
3659
|
e?.source ? t && d ? await d({
|
|
3622
3660
|
url: e.source,
|
|
3623
3661
|
title: e.title
|
|
3624
|
-
}) :
|
|
3662
|
+
}) : Pa(e.source, e.title) : t ? r({}) : Pa();
|
|
3625
3663
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
3626
3664
|
a() && await o.showOptions({
|
|
3627
3665
|
title: Q("dialog.confirm.title"),
|
|
@@ -3693,7 +3731,7 @@ function ja(e, t) {
|
|
|
3693
3731
|
let t = e;
|
|
3694
3732
|
if (t || k.canRead() || (t = await (async () => {
|
|
3695
3733
|
let e = await k.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
3696
|
-
return
|
|
3734
|
+
return On.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
3697
3735
|
})(), t)) return p(t);
|
|
3698
3736
|
}
|
|
3699
3737
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -3778,9 +3816,9 @@ function ja(e, t) {
|
|
|
3778
3816
|
c = !0, s && (s.current = null);
|
|
3779
3817
|
};
|
|
3780
3818
|
}
|
|
3781
|
-
var
|
|
3782
|
-
|
|
3783
|
-
var
|
|
3819
|
+
var Ia = Ut(X("studio:shortcutKeysDialog", () => import("./Dzym1WSjYb_mnVkJ.mjs")).load);
|
|
3820
|
+
o(), le();
|
|
3821
|
+
var La = /* @__PURE__ */ new Set(["ui"]), Ra = (e) => {
|
|
3784
3822
|
let t = (e) => {
|
|
3785
3823
|
if (typeof e != "function") return e;
|
|
3786
3824
|
try {
|
|
@@ -3790,9 +3828,9 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3790
3828
|
}
|
|
3791
3829
|
}, n = (e, n) => {
|
|
3792
3830
|
let r = t(e);
|
|
3793
|
-
return typeof r == "string" ?
|
|
3831
|
+
return typeof r == "string" ? Nn(r, n, kn.getActive()) : void 0;
|
|
3794
3832
|
}, r = [];
|
|
3795
|
-
for (let i of e.names()) if (!
|
|
3833
|
+
for (let i of e.names()) if (!La.has(i)) for (let a of e.keys(i)) {
|
|
3796
3834
|
let o = e.resolveDefinition(i, a);
|
|
3797
3835
|
r.push({
|
|
3798
3836
|
groupKey: i,
|
|
@@ -3802,29 +3840,29 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3802
3840
|
getDescription: () => n(o?.description, o?.params) ?? "",
|
|
3803
3841
|
getShortcut: () => t(o?.shortcut) ?? null,
|
|
3804
3842
|
getScope: () => i,
|
|
3805
|
-
getScopeLabel: () =>
|
|
3843
|
+
getScopeLabel: () => rt.DefaultCommandCatalogService.getScopeLabel(i)
|
|
3806
3844
|
}
|
|
3807
3845
|
});
|
|
3808
3846
|
}
|
|
3809
3847
|
return { getAllCommands: () => r };
|
|
3810
|
-
},
|
|
3811
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o } = e,
|
|
3812
|
-
|
|
3813
|
-
let
|
|
3814
|
-
let e =
|
|
3848
|
+
}, za = (e) => {
|
|
3849
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = rt.useCommandScope(), l = yt(), { showModal: u } = qt(), d = F(), f = H(a);
|
|
3850
|
+
f.current = a;
|
|
3851
|
+
let p = ht(() => {
|
|
3852
|
+
let e = c?.getRoot().getRegistry();
|
|
3815
3853
|
if (!e) return;
|
|
3816
|
-
let t =
|
|
3817
|
-
title:
|
|
3818
|
-
commands:
|
|
3854
|
+
let t = u(Ia, {
|
|
3855
|
+
title: d("dialog.shortcutKeys.title"),
|
|
3856
|
+
commands: Ra(e),
|
|
3819
3857
|
onDone: () => t.hide(),
|
|
3820
3858
|
onLoadError: (e) => {
|
|
3821
|
-
t.destroy(),
|
|
3859
|
+
t.destroy(), l.showError(e);
|
|
3822
3860
|
}
|
|
3823
3861
|
});
|
|
3824
|
-
}, [
|
|
3862
|
+
}, [c, u]);
|
|
3825
3863
|
B(() => {
|
|
3826
|
-
if (!
|
|
3827
|
-
let e =
|
|
3864
|
+
if (!c) return;
|
|
3865
|
+
let e = c.getRoot().contribution();
|
|
3828
3866
|
return function(e, t) {
|
|
3829
3867
|
let n = () => t.showShortcuts();
|
|
3830
3868
|
e.updateCommand("showKeyboardShortcuts", { callback: n }), e.updateCommand("help", { callback: n });
|
|
@@ -3836,12 +3874,12 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3836
3874
|
})) e.updateCommand(t, { callback: () => {
|
|
3837
3875
|
window?.open(n);
|
|
3838
3876
|
} });
|
|
3839
|
-
}(e, { showShortcuts:
|
|
3840
|
-
}, [
|
|
3841
|
-
let
|
|
3877
|
+
}(e, { showShortcuts: p }), () => e.remove();
|
|
3878
|
+
}, [c, p]);
|
|
3879
|
+
let m = Tn("(prefers-color-scheme: dark)"), { themeMode: h } = xt(), [g, _] = bt(Re.Mode, Le[Re.Mode]), [v, y] = bt(Re.DarkGrid, Le[Re.DarkGrid]), [b, x] = bt(Re.DarkImages, Le[Re.DarkImages]);
|
|
3842
3880
|
B(() => {
|
|
3843
|
-
if (!
|
|
3844
|
-
let e =
|
|
3881
|
+
if (!c) return;
|
|
3882
|
+
let e = c.getRoot().contribution();
|
|
3845
3883
|
return function(e, t) {
|
|
3846
3884
|
e.updateCommand("themeMode", {
|
|
3847
3885
|
state: t.mode ?? null,
|
|
@@ -3860,32 +3898,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3860
3898
|
callback: () => t.setEnableDarkImages((e) => !e)
|
|
3861
3899
|
});
|
|
3862
3900
|
}(e, {
|
|
3863
|
-
mode:
|
|
3864
|
-
setMode:
|
|
3865
|
-
isDark:
|
|
3866
|
-
systemDefaultDark:
|
|
3867
|
-
enableDarkGrid:
|
|
3868
|
-
setEnableDarkGrid:
|
|
3869
|
-
enableDarkImages:
|
|
3870
|
-
setEnableDarkImages:
|
|
3901
|
+
mode: g,
|
|
3902
|
+
setMode: _,
|
|
3903
|
+
isDark: g === "dark" || !g && h === "dark",
|
|
3904
|
+
systemDefaultDark: m,
|
|
3905
|
+
enableDarkGrid: v,
|
|
3906
|
+
setEnableDarkGrid: y,
|
|
3907
|
+
enableDarkImages: b,
|
|
3908
|
+
setEnableDarkImages: x
|
|
3871
3909
|
}), () => e.remove();
|
|
3872
3910
|
}, [
|
|
3873
|
-
|
|
3911
|
+
c,
|
|
3912
|
+
g,
|
|
3874
3913
|
h,
|
|
3875
3914
|
m,
|
|
3876
|
-
|
|
3915
|
+
v,
|
|
3916
|
+
b,
|
|
3877
3917
|
_,
|
|
3878
3918
|
y,
|
|
3879
|
-
|
|
3880
|
-
v,
|
|
3881
|
-
b
|
|
3919
|
+
x
|
|
3882
3920
|
]);
|
|
3883
|
-
let [
|
|
3884
|
-
B(() =>
|
|
3885
|
-
|
|
3886
|
-
}, [
|
|
3887
|
-
if (!
|
|
3888
|
-
let e =
|
|
3921
|
+
let [S, C] = bt(st.Active, null), [w, ee] = U(() => kn.getActive());
|
|
3922
|
+
B(() => kn.addChangeListener(ee), []), B(() => {
|
|
3923
|
+
S && S !== kn.getActive() && kn.setActive(S);
|
|
3924
|
+
}, [S]), B(() => {
|
|
3925
|
+
if (!c) return;
|
|
3926
|
+
let e = c.getRoot().contribution();
|
|
3889
3927
|
return function(e, t) {
|
|
3890
3928
|
e.updateCommand("language", {
|
|
3891
3929
|
state: t.active,
|
|
@@ -3894,20 +3932,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3894
3932
|
}
|
|
3895
3933
|
});
|
|
3896
3934
|
}(e, {
|
|
3897
|
-
active:
|
|
3935
|
+
active: w,
|
|
3898
3936
|
setActive: (e) => {
|
|
3899
|
-
|
|
3937
|
+
C(e);
|
|
3900
3938
|
}
|
|
3901
3939
|
}), () => e.remove();
|
|
3902
3940
|
}, [
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3941
|
+
c,
|
|
3942
|
+
w,
|
|
3943
|
+
C
|
|
3906
3944
|
]);
|
|
3907
|
-
let { isFullscreenAvailable:
|
|
3945
|
+
let { isFullscreenAvailable: te, isFullscreenEnabled: ne, toggleFullscreen: re } = P({ target: V(() => ({ current: s ?? null }), [s]) });
|
|
3908
3946
|
B(() => {
|
|
3909
|
-
if (!
|
|
3910
|
-
let e =
|
|
3947
|
+
if (!c) return;
|
|
3948
|
+
let e = c.getRoot().contribution();
|
|
3911
3949
|
return function(e, t) {
|
|
3912
3950
|
e.updateCommand("fullScreenToggle", {
|
|
3913
3951
|
state: t.isFullscreenEnabled,
|
|
@@ -3918,20 +3956,20 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3918
3956
|
}
|
|
3919
3957
|
});
|
|
3920
3958
|
}(e, {
|
|
3921
|
-
isFullscreenAvailable:
|
|
3922
|
-
isFullscreenEnabled:
|
|
3923
|
-
toggleFullscreen:
|
|
3959
|
+
isFullscreenAvailable: te,
|
|
3960
|
+
isFullscreenEnabled: ne,
|
|
3961
|
+
toggleFullscreen: re
|
|
3924
3962
|
}), () => e.remove();
|
|
3925
3963
|
}, [
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3964
|
+
c,
|
|
3965
|
+
te,
|
|
3966
|
+
ne,
|
|
3967
|
+
re
|
|
3930
3968
|
]);
|
|
3931
|
-
let
|
|
3969
|
+
let ie = M(!0);
|
|
3932
3970
|
return B(() => {
|
|
3933
|
-
if (!
|
|
3934
|
-
let e =
|
|
3971
|
+
if (!c) return;
|
|
3972
|
+
let e = c.getRoot().contribution();
|
|
3935
3973
|
return function(e, t) {
|
|
3936
3974
|
e.updateCommand("protectWorkbook", {
|
|
3937
3975
|
tags: ["noTransaction", "noRepeat"],
|
|
@@ -3939,32 +3977,32 @@ var Na = /* @__PURE__ */ new Set(["ui"]), Pa = (e) => {
|
|
|
3939
3977
|
t("manageProtection", { args: { tab: "workbook" } });
|
|
3940
3978
|
}
|
|
3941
3979
|
});
|
|
3942
|
-
}(e, (e, t) =>
|
|
3943
|
-
}, [
|
|
3944
|
-
if (!
|
|
3945
|
-
let e =
|
|
3980
|
+
}(e, (e, t) => ie.activate(e, t)), () => e.remove();
|
|
3981
|
+
}, [c, ie]), B(() => {
|
|
3982
|
+
if (!c || !n) return;
|
|
3983
|
+
let e = c.getRoot().contribution(), t = Fa(e, {
|
|
3946
3984
|
workbook: n,
|
|
3947
3985
|
setWorkbook: r,
|
|
3948
3986
|
workbookTitle: i ?? void 0,
|
|
3949
|
-
isDirty: () =>
|
|
3950
|
-
notifier:
|
|
3987
|
+
isDirty: () => f.current?.() ?? !1,
|
|
3988
|
+
notifier: l,
|
|
3951
3989
|
refSave: o
|
|
3952
3990
|
});
|
|
3953
3991
|
return () => {
|
|
3954
3992
|
t(), e.remove();
|
|
3955
3993
|
};
|
|
3956
3994
|
}, [
|
|
3957
|
-
|
|
3995
|
+
c,
|
|
3958
3996
|
n,
|
|
3959
3997
|
r,
|
|
3960
3998
|
i,
|
|
3961
|
-
|
|
3999
|
+
l,
|
|
3962
4000
|
o
|
|
3963
4001
|
]), t;
|
|
3964
4002
|
};
|
|
3965
|
-
|
|
3966
|
-
var
|
|
3967
|
-
let t =
|
|
4003
|
+
za.displayName = "StudioCommandProvider";
|
|
4004
|
+
var Ba = ({ renderWorkbook: e }) => {
|
|
4005
|
+
let t = rt.useCommandResolver(), n = H(null), r = F(), [i, a] = U(null), o = z((e) => {
|
|
3968
4006
|
let n = e.dataTransfer;
|
|
3969
4007
|
if (t && n) {
|
|
3970
4008
|
if (e.type === "dragenter" || e.type === "dragover") {
|
|
@@ -3980,7 +4018,7 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
3980
4018
|
}
|
|
3981
4019
|
e.preventDefault();
|
|
3982
4020
|
}
|
|
3983
|
-
}, [t]), s =
|
|
4021
|
+
}, [t]), s = ht((e) => {
|
|
3984
4022
|
e.preventDefault();
|
|
3985
4023
|
let r = i;
|
|
3986
4024
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -4024,12 +4062,12 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4024
4062
|
display: "flex",
|
|
4025
4063
|
justifyContent: "center",
|
|
4026
4064
|
alignItems: "center",
|
|
4027
|
-
backgroundColor: (e) =>
|
|
4065
|
+
backgroundColor: (e) => wn(e.palette.primary.main, .46),
|
|
4028
4066
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
4029
4067
|
outlineOffset: "-6px",
|
|
4030
4068
|
borderRadius: 2
|
|
4031
4069
|
},
|
|
4032
|
-
children: G(
|
|
4070
|
+
children: G(hn, {
|
|
4033
4071
|
elevation: 6,
|
|
4034
4072
|
sx: {
|
|
4035
4073
|
display: "flex",
|
|
@@ -4053,7 +4091,7 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4053
4091
|
})
|
|
4054
4092
|
});
|
|
4055
4093
|
}, [i, r]);
|
|
4056
|
-
return G(
|
|
4094
|
+
return G(Yt, { children: [e({
|
|
4057
4095
|
ref: n,
|
|
4058
4096
|
onDragStart: (e) => {
|
|
4059
4097
|
if (e.target.src) {
|
|
@@ -4066,48 +4104,48 @@ var Ia = ({ renderWorkbook: e }) => {
|
|
|
4066
4104
|
onDragOver: o,
|
|
4067
4105
|
onDrop: s
|
|
4068
4106
|
}), c] });
|
|
4069
|
-
},
|
|
4070
|
-
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l } = e;
|
|
4071
|
-
return W(
|
|
4107
|
+
}, Va = R((e) => {
|
|
4108
|
+
let { workbook: t, setWorkbook: n, refDocumentTitle: r, titleWorkbook: i, setWorkbookTitle: a, isDirty: o, initialCommandAnchor: s, renderWorkbook: c, refSave: l, host: u } = e;
|
|
4109
|
+
return W(Ee, {
|
|
4072
4110
|
initialAnchor: s,
|
|
4073
|
-
children: W(
|
|
4111
|
+
children: W(za, {
|
|
4074
4112
|
workbook: t,
|
|
4075
4113
|
setWorkbook: n,
|
|
4076
4114
|
workbookTitle: i,
|
|
4077
4115
|
isDirty: o,
|
|
4078
4116
|
refSave: l,
|
|
4079
|
-
|
|
4117
|
+
fullscreenTarget: u,
|
|
4118
|
+
children: W(Ba, { renderWorkbook: c })
|
|
4080
4119
|
})
|
|
4081
4120
|
});
|
|
4082
4121
|
});
|
|
4083
|
-
|
|
4084
|
-
var
|
|
4085
|
-
sort: X("studio:sortDialog", () => import("./
|
|
4086
|
-
hyperlink: X("studio:hyperlinkDialog", () => import("./
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./o8pQBbpRc03xny0J.mjs")).load,
|
|
4122
|
+
Va.displayName = "CommandsWrapper";
|
|
4123
|
+
var Ha = {
|
|
4124
|
+
sort: X("studio:sortDialog", () => import("./BlWsO6M15Ii13NrV.mjs"), { tier: "common" }).load,
|
|
4125
|
+
hyperlink: X("studio:hyperlinkDialog", () => import("./BGdZT1Ka4ohDCZpW.mjs"), { tier: "common" }).load,
|
|
4126
|
+
find: X("studio:findReplaceWindow", () => import("./D-JQOjmAh6Gk6wVM.mjs"), { tier: "common" }).load,
|
|
4127
|
+
tableNew: X("studio:tableNewDialog", () => import("./D8FEKUKVxH32duMx.mjs"), { tier: "common" }).load,
|
|
4128
|
+
namedDetails: X("studio:namedReferenceDialog", () => import("./27jPjqdDLWn5qbQ8.mjs")).load,
|
|
4129
|
+
insertFunction: X("studio:insertFunctionDialog", () => import("./aGoWX29-zbUaPh2U.mjs"), { tier: "common" }).load,
|
|
4130
|
+
resizeHeader: X("studio:resizeHeaderDialog", () => import("./D3b3dWTjvFd1Kj5g.mjs")).load,
|
|
4131
|
+
fillSeries: X("studio:fillSeriesDialog", () => import("./61ip_C1X9ls4svw6.mjs")).load,
|
|
4132
|
+
workbookStatistics: X("studio:workbookStatisticsDialog", () => import("./2_WF-hy6x4dXfEzW.mjs")).load,
|
|
4095
4133
|
password: X("studio:passwordDialog", () => import("./index.mjs").then((e) => e.t)).load
|
|
4096
|
-
},
|
|
4097
|
-
let { children: t } = e, n =
|
|
4134
|
+
}, Ua = ["find"], Wa = R((e) => {
|
|
4135
|
+
let { children: t } = e, n = ka(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = H(/* @__PURE__ */ new Set()), o = H(null), s = H(null), [c, l] = U({
|
|
4098
4136
|
label: null,
|
|
4099
4137
|
progress: null
|
|
4100
|
-
}), u = F(), d =
|
|
4138
|
+
}), u = F(), d = Dn.EmptyObject, f = Kt(d), p = Jt(d), m = Gt(d), h = H(!1);
|
|
4101
4139
|
B(() => {
|
|
4102
4140
|
if (h.current) return;
|
|
4103
4141
|
h.current = !0;
|
|
4104
4142
|
let e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), n = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
4105
|
-
for (let e of
|
|
4143
|
+
for (let e of Ua) f(e, Ha[e], { prewarm: !0 }).catch(() => {});
|
|
4106
4144
|
});
|
|
4107
4145
|
return () => n(r);
|
|
4108
4146
|
}, []);
|
|
4109
4147
|
let g = H(/* @__PURE__ */ new Set());
|
|
4110
|
-
return G(
|
|
4148
|
+
return G(ut, {
|
|
4111
4149
|
notifier: V(() => {
|
|
4112
4150
|
let e = (e, t) => {
|
|
4113
4151
|
if (t?.onceKey) {
|
|
@@ -4116,14 +4154,14 @@ var Ra = {
|
|
|
4116
4154
|
e.add(t.onceKey), g.current = e;
|
|
4117
4155
|
}
|
|
4118
4156
|
let n = {
|
|
4119
|
-
variant: t?.type ??
|
|
4157
|
+
variant: t?.type ?? ct.Info,
|
|
4120
4158
|
anchorOrigin: {
|
|
4121
4159
|
vertical: "top",
|
|
4122
4160
|
horizontal: "center"
|
|
4123
4161
|
},
|
|
4124
4162
|
preventDuplicate: t?.preventDuplicate,
|
|
4125
|
-
persist: t?.persist ?? t?.type ===
|
|
4126
|
-
action: (e) => W(
|
|
4163
|
+
persist: t?.persist ?? t?.type === ct.Error,
|
|
4164
|
+
action: (e) => W(dn, {
|
|
4127
4165
|
onClick: () => i(e),
|
|
4128
4166
|
children: W(N, { iconKey: "Cancel" })
|
|
4129
4167
|
})
|
|
@@ -4137,8 +4175,8 @@ var Ra = {
|
|
|
4137
4175
|
...t,
|
|
4138
4176
|
label: e
|
|
4139
4177
|
});
|
|
4140
|
-
let r =
|
|
4141
|
-
a.current.delete(n) && (a.current.size > 0 || (
|
|
4178
|
+
let r = pt(() => {
|
|
4179
|
+
a.current.delete(n) && (a.current.size > 0 || (Ht(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
4142
4180
|
label: null,
|
|
4143
4181
|
progress: null
|
|
4144
4182
|
})));
|
|
@@ -4149,11 +4187,11 @@ var Ra = {
|
|
|
4149
4187
|
progress: n
|
|
4150
4188
|
});
|
|
4151
4189
|
}, (e) => {
|
|
4152
|
-
s.current = e, typeof e == "string" ?
|
|
4190
|
+
s.current = e, typeof e == "string" ? Wt(o.current, e) : l((t) => ({
|
|
4153
4191
|
...t,
|
|
4154
4192
|
label: e
|
|
4155
4193
|
}));
|
|
4156
|
-
}), i =
|
|
4194
|
+
}), i = Wt(o.current, typeof e == "string" ? e : void 0);
|
|
4157
4195
|
return i ? i.then(() => r) : r;
|
|
4158
4196
|
},
|
|
4159
4197
|
showWindow: (e, t) => {
|
|
@@ -4163,24 +4201,24 @@ var Ra = {
|
|
|
4163
4201
|
onKeyDown: (e) => {
|
|
4164
4202
|
e.isDefaultPrevented() || e.isPropagationStopped() || n?.onKeyDown?.(e);
|
|
4165
4203
|
}
|
|
4166
|
-
}, f(e,
|
|
4204
|
+
}, f(e, Ha[e], t);
|
|
4167
4205
|
},
|
|
4168
4206
|
showOptions: p,
|
|
4169
4207
|
showInput: m,
|
|
4170
4208
|
showError: (t) => {
|
|
4171
|
-
let n, r =
|
|
4172
|
-
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof
|
|
4209
|
+
let n, r = ct.Error, i = u("error.unknown");
|
|
4210
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Mn && (r = ct.Info), e(i, {
|
|
4173
4211
|
type: r,
|
|
4174
4212
|
enqueueProps: { error: n }
|
|
4175
4213
|
});
|
|
4176
4214
|
}
|
|
4177
|
-
}, n = new
|
|
4215
|
+
}, n = new at();
|
|
4178
4216
|
return n.setOverrides(t), n;
|
|
4179
4217
|
}, [u]),
|
|
4180
|
-
children: [V(() => W(
|
|
4218
|
+
children: [V(() => W(At, {
|
|
4181
4219
|
ref: o,
|
|
4182
4220
|
autoStart: !1,
|
|
4183
|
-
icon: W(
|
|
4221
|
+
icon: W(jt, { sx: {
|
|
4184
4222
|
transform: "scale(0.7)",
|
|
4185
4223
|
marginLeft: "-6px"
|
|
4186
4224
|
} }),
|
|
@@ -4199,9 +4237,9 @@ var Ra = {
|
|
|
4199
4237
|
}), [c.label, c.progress]), t]
|
|
4200
4238
|
});
|
|
4201
4239
|
});
|
|
4202
|
-
|
|
4203
|
-
var
|
|
4204
|
-
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s =
|
|
4240
|
+
Wa.displayName = "StudioNotifierProvider";
|
|
4241
|
+
var Ga = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Ka = R(L((e, t) => {
|
|
4242
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = Oe, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = V(() => i.map((t) => {
|
|
4205
4243
|
let n = s.getRegisteredTaskPane(t);
|
|
4206
4244
|
if (!n) return null;
|
|
4207
4245
|
let r = n.getIcon?.();
|
|
@@ -4240,9 +4278,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4240
4278
|
})
|
|
4241
4279
|
})
|
|
4242
4280
|
});
|
|
4243
|
-
return W(
|
|
4281
|
+
return W(vn, {
|
|
4244
4282
|
value: t,
|
|
4245
|
-
label: W(
|
|
4283
|
+
label: W(Rt, {
|
|
4246
4284
|
disableInteractive: !0,
|
|
4247
4285
|
title: n.getTitle() ?? "",
|
|
4248
4286
|
placement: "left-start",
|
|
@@ -4266,7 +4304,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4266
4304
|
minHeight: "0px",
|
|
4267
4305
|
borderRadius: "4px"
|
|
4268
4306
|
},
|
|
4269
|
-
className:
|
|
4307
|
+
className: T("taskpane-strip-item", { "Mui-selected": i }),
|
|
4270
4308
|
onClick: () => e.onSelect(t)
|
|
4271
4309
|
}, t);
|
|
4272
4310
|
}), [
|
|
@@ -4276,11 +4314,11 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4276
4314
|
s,
|
|
4277
4315
|
p,
|
|
4278
4316
|
l,
|
|
4279
|
-
|
|
4317
|
+
vt()
|
|
4280
4318
|
]);
|
|
4281
4319
|
return W(K, {
|
|
4282
|
-
ref:
|
|
4283
|
-
className: V(() =>
|
|
4320
|
+
ref: _t(t, () => ({ isTaskPaneStrip: () => !0 }), []),
|
|
4321
|
+
className: V(() => T("taskpane-strip", d), [d]),
|
|
4284
4322
|
sx: {
|
|
4285
4323
|
paddingLeft: p ? void 0 : "2px",
|
|
4286
4324
|
paddingRight: p ? "2px" : void 0,
|
|
@@ -4288,7 +4326,7 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4288
4326
|
...c
|
|
4289
4327
|
},
|
|
4290
4328
|
...f,
|
|
4291
|
-
children: W(
|
|
4329
|
+
children: W(yn, {
|
|
4292
4330
|
orientation: "vertical",
|
|
4293
4331
|
variant: "scrollable",
|
|
4294
4332
|
value: o,
|
|
@@ -4306,10 +4344,10 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4306
4344
|
children: m
|
|
4307
4345
|
})
|
|
4308
4346
|
});
|
|
4309
|
-
})),
|
|
4347
|
+
})), qa = (e) => {
|
|
4310
4348
|
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = H(null), c = F();
|
|
4311
|
-
return W(
|
|
4312
|
-
className:
|
|
4349
|
+
return W(on, {
|
|
4350
|
+
className: T({ "Mui-selected": a }),
|
|
4313
4351
|
sx: {
|
|
4314
4352
|
display: "flex",
|
|
4315
4353
|
flex: "1 1 %0",
|
|
@@ -4323,8 +4361,8 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4323
4361
|
opacity: 1,
|
|
4324
4362
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
4325
4363
|
},
|
|
4326
|
-
backgroundColor: (e) =>
|
|
4327
|
-
borderBottom: `solid ${
|
|
4364
|
+
backgroundColor: (e) => wn(e.palette.action.hover, .03),
|
|
4365
|
+
borderBottom: `solid ${Ga} 1px`
|
|
4328
4366
|
},
|
|
4329
4367
|
...o,
|
|
4330
4368
|
children: G(K, {
|
|
@@ -4344,9 +4382,9 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4344
4382
|
paddingLeft: (e) => e.spacing(1)
|
|
4345
4383
|
},
|
|
4346
4384
|
children: t
|
|
4347
|
-
}), W(
|
|
4385
|
+
}), W(It, {
|
|
4348
4386
|
label: c("taskPane.close"),
|
|
4349
|
-
children: W(
|
|
4387
|
+
children: W(dn, {
|
|
4350
4388
|
"aria-label": "close",
|
|
4351
4389
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
4352
4390
|
touchRippleRef: s,
|
|
@@ -4361,19 +4399,19 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4361
4399
|
})]
|
|
4362
4400
|
})
|
|
4363
4401
|
});
|
|
4364
|
-
},
|
|
4365
|
-
let { model: n, side: r, ...i } = e, a =
|
|
4366
|
-
return W(
|
|
4402
|
+
}, Ja = L((e, t) => {
|
|
4403
|
+
let { model: n, side: r, ...i } = e, a = En();
|
|
4404
|
+
return W(Fe, {
|
|
4367
4405
|
model: n,
|
|
4368
4406
|
ref: t,
|
|
4369
4407
|
propsFrame: { style: {
|
|
4370
|
-
border: `solid ${
|
|
4408
|
+
border: `solid ${Ga} 1px`,
|
|
4371
4409
|
borderRadius: `${a.shape.borderRadius ?? 4}px`,
|
|
4372
4410
|
marginBottom: `${a.spacing?.(.5) ?? 4}px`
|
|
4373
4411
|
} },
|
|
4374
4412
|
alwaysShowStrip: !0,
|
|
4375
|
-
componentTitle:
|
|
4376
|
-
componentStrip:
|
|
4413
|
+
componentTitle: qa,
|
|
4414
|
+
componentStrip: Ka,
|
|
4377
4415
|
side: r,
|
|
4378
4416
|
...e,
|
|
4379
4417
|
onOpen: () => {
|
|
@@ -4384,14 +4422,14 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4384
4422
|
},
|
|
4385
4423
|
...i
|
|
4386
4424
|
});
|
|
4387
|
-
}),
|
|
4425
|
+
}), Ya = "_styled-resizer_fdl5y_3", Xa = {}, Za = {
|
|
4388
4426
|
flex: "1 1 100%",
|
|
4389
4427
|
display: "flex",
|
|
4390
4428
|
boxSizing: "border-box"
|
|
4391
|
-
},
|
|
4392
|
-
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] =
|
|
4429
|
+
}, Qa = R(L((e, t) => {
|
|
4430
|
+
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = bt(a ?? null, Xa), p = En(), [m, { width: h }] = pe(), g = h > 530 || h === 0, _ = H(null), v, y, b = null, x = 4, S = 13;
|
|
4393
4431
|
g ? b = "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" : (b = "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", x = 13, S = 4);
|
|
4394
|
-
let C, w = n,
|
|
4432
|
+
let C, w = n, ee = r, te = l !== "right", ne = g ? "row" : "column", re = te && ee ? "before" : "after", ie = `${ne}:${re}`, ae = a ? d[ie] : void 0, oe = ae == null ? ((e, t) => {
|
|
4395
4433
|
if (e == null) return "40%";
|
|
4396
4434
|
if (typeof e == "number" || typeof e == "string") return e;
|
|
4397
4435
|
let n = e[t];
|
|
@@ -4401,12 +4439,12 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4401
4439
|
...t,
|
|
4402
4440
|
[ie]: e.percent
|
|
4403
4441
|
})), o?.(e, {
|
|
4404
|
-
orientation:
|
|
4405
|
-
side:
|
|
4442
|
+
orientation: ne,
|
|
4443
|
+
side: re,
|
|
4406
4444
|
key: ie
|
|
4407
4445
|
});
|
|
4408
4446
|
} : void 0;
|
|
4409
|
-
return
|
|
4447
|
+
return te && ee ? (w = r, ee = n, y = { style: {
|
|
4410
4448
|
flexDirection: "column",
|
|
4411
4449
|
boxSizing: "border-box",
|
|
4412
4450
|
paddingRight: "2px"
|
|
@@ -4426,51 +4464,51 @@ var Va = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
4426
4464
|
position: oe,
|
|
4427
4465
|
minAfter: g ? "280px" : "120px",
|
|
4428
4466
|
splitDirection: g ? "row" : "column"
|
|
4429
|
-
}), W(
|
|
4430
|
-
ref:
|
|
4467
|
+
}), W(dt, {
|
|
4468
|
+
ref: ce([
|
|
4431
4469
|
_,
|
|
4432
4470
|
m,
|
|
4433
4471
|
t
|
|
4434
4472
|
]),
|
|
4435
4473
|
className: s,
|
|
4436
4474
|
style: c ? {
|
|
4437
|
-
...
|
|
4475
|
+
...Za,
|
|
4438
4476
|
...c
|
|
4439
|
-
} :
|
|
4477
|
+
} : Za,
|
|
4440
4478
|
...u,
|
|
4441
4479
|
...C,
|
|
4442
4480
|
onPositionChange: se,
|
|
4443
4481
|
propsResizer: {
|
|
4444
|
-
className:
|
|
4482
|
+
className: T("styled-resizer", Ya),
|
|
4445
4483
|
style: {
|
|
4446
4484
|
minWidth: g ? "7px" : void 0,
|
|
4447
4485
|
minHeight: g ? void 0 : "6px",
|
|
4448
4486
|
maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${S}' viewBox='0 0 ${x} ${S}' version='1.1' fill='${p.palette.text.icon ?? p.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${b}' /%3E%3C/svg%3E%0A")`,
|
|
4449
4487
|
maskRepeat: "no-repeat",
|
|
4450
|
-
maskPosition:
|
|
4488
|
+
maskPosition: te ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
|
|
4451
4489
|
}
|
|
4452
4490
|
},
|
|
4453
4491
|
elementBefore: w,
|
|
4454
4492
|
propsPaneBefore: v,
|
|
4455
|
-
elementAfter:
|
|
4493
|
+
elementAfter: ee,
|
|
4456
4494
|
propsPaneAfter: y
|
|
4457
4495
|
});
|
|
4458
4496
|
}));
|
|
4459
|
-
|
|
4460
|
-
var
|
|
4461
|
-
[
|
|
4462
|
-
[
|
|
4463
|
-
[
|
|
4464
|
-
[
|
|
4465
|
-
[
|
|
4466
|
-
[
|
|
4467
|
-
[
|
|
4468
|
-
},
|
|
4497
|
+
Qa.displayName = "StudioSplitPane";
|
|
4498
|
+
var $a = E.BuiltInSelectorNames, eo = {
|
|
4499
|
+
[$a.Whole]: "FormulaMathTrig",
|
|
4500
|
+
[$a.Number]: "IncreaseDecimal",
|
|
4501
|
+
[$a.List]: "Menu",
|
|
4502
|
+
[$a.Date]: "FormulaDateTime",
|
|
4503
|
+
[$a.DateTime]: "FormulaDateTime",
|
|
4504
|
+
[$a.Time]: "FormulaDateTime",
|
|
4505
|
+
[$a.TextLength]: "FormulaText"
|
|
4506
|
+
}, to = (e) => {
|
|
4469
4507
|
let t = e.getCondition();
|
|
4470
4508
|
if (!t) return "DataValidation";
|
|
4471
4509
|
let n = t.toJSON();
|
|
4472
|
-
return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" &&
|
|
4473
|
-
},
|
|
4510
|
+
return n.operator === E.BuiltInOperatorNames.Expression ? "FormulaCustom" : typeof n.selector == "string" && eo[n.selector] || "DataValidation";
|
|
4511
|
+
}, no = R(({ dataValidation: e, size: t = 28 }) => (Xe(e, "onAnyChange"), W(h, {
|
|
4474
4512
|
className: "sxl-dv-icon",
|
|
4475
4513
|
sx: {
|
|
4476
4514
|
width: "auto",
|
|
@@ -4478,13 +4516,13 @@ var Ya = E.BuiltInSelectorNames, Xa = {
|
|
|
4478
4516
|
height: `${t}px`
|
|
4479
4517
|
},
|
|
4480
4518
|
children: W(N, {
|
|
4481
|
-
iconKey:
|
|
4519
|
+
iconKey: to(e),
|
|
4482
4520
|
size: Math.round(.6 * t),
|
|
4483
4521
|
ariaHidden: !0
|
|
4484
4522
|
})
|
|
4485
4523
|
})));
|
|
4486
|
-
|
|
4487
|
-
var
|
|
4524
|
+
no.displayName = "DataValidationIcon";
|
|
4525
|
+
var ro = (e, t) => {
|
|
4488
4526
|
let n = e.getCondition();
|
|
4489
4527
|
if (!n) return t("dataValidation.anyValue");
|
|
4490
4528
|
let r = n.toJSON();
|
|
@@ -4498,15 +4536,15 @@ var $a = (e, t) => {
|
|
|
4498
4536
|
if (typeof e == "string") return t("dataValidation.titleListFrom", { source: e });
|
|
4499
4537
|
}
|
|
4500
4538
|
return n.toString();
|
|
4501
|
-
},
|
|
4502
|
-
[
|
|
4503
|
-
[
|
|
4504
|
-
[
|
|
4505
|
-
},
|
|
4506
|
-
[
|
|
4507
|
-
[
|
|
4508
|
-
[
|
|
4509
|
-
},
|
|
4539
|
+
}, io = {
|
|
4540
|
+
[O.AlertStyle.Stop]: "ValidationStop",
|
|
4541
|
+
[O.AlertStyle.Warning]: "ValidationWarning",
|
|
4542
|
+
[O.AlertStyle.Information]: "ValidationInformation"
|
|
4543
|
+
}, ao = {
|
|
4544
|
+
[O.AlertStyle.Stop]: Z("dataValidation.alertStop"),
|
|
4545
|
+
[O.AlertStyle.Warning]: Z("dataValidation.alertWarning"),
|
|
4546
|
+
[O.AlertStyle.Information]: Z("dataValidation.alertInformation")
|
|
4547
|
+
}, oo = ({ checked: e, onCheckedChange: t, label: n, readOnly: r, children: i }) => G(Xt, {
|
|
4510
4548
|
expanded: e,
|
|
4511
4549
|
onChange: (e, n) => {
|
|
4512
4550
|
r || t(n);
|
|
@@ -4525,15 +4563,15 @@ var $a = (e, t) => {
|
|
|
4525
4563
|
mb: 1
|
|
4526
4564
|
}
|
|
4527
4565
|
},
|
|
4528
|
-
children: [W(
|
|
4566
|
+
children: [W(Qt, {
|
|
4529
4567
|
expandIcon: W(N, { iconKey: "ExpandMore" }),
|
|
4530
4568
|
sx: {
|
|
4531
4569
|
px: 2,
|
|
4532
4570
|
"& .MuiAccordionSummary-content": { my: 0 },
|
|
4533
4571
|
"&.Mui-expanded .MuiAccordionSummary-content": { my: 0 }
|
|
4534
4572
|
},
|
|
4535
|
-
children: W(
|
|
4536
|
-
control: W(
|
|
4573
|
+
children: W(ln, {
|
|
4574
|
+
control: W(nn, {
|
|
4537
4575
|
checked: e,
|
|
4538
4576
|
disabled: r,
|
|
4539
4577
|
onChange: (e) => {
|
|
@@ -4544,7 +4582,7 @@ var $a = (e, t) => {
|
|
|
4544
4582
|
label: n,
|
|
4545
4583
|
onClick: (e) => e.stopPropagation()
|
|
4546
4584
|
})
|
|
4547
|
-
}), W(
|
|
4585
|
+
}), W(Zt, {
|
|
4548
4586
|
sx: {
|
|
4549
4587
|
pl: 2,
|
|
4550
4588
|
pr: 2,
|
|
@@ -4556,12 +4594,12 @@ var $a = (e, t) => {
|
|
|
4556
4594
|
},
|
|
4557
4595
|
children: i
|
|
4558
4596
|
})]
|
|
4559
|
-
}),
|
|
4597
|
+
}), so = R((e) => {
|
|
4560
4598
|
let { dataValidation: t } = e, n = F();
|
|
4561
|
-
|
|
4562
|
-
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(
|
|
4599
|
+
Xe(t, "onAnyChange");
|
|
4600
|
+
let r = t.isProtected(), i = t.getRenderHints().includes("list"), a = G(hn, {
|
|
4563
4601
|
tabIndex: 0,
|
|
4564
|
-
className:
|
|
4602
|
+
className: ae["editor-panel"],
|
|
4565
4603
|
sx: {
|
|
4566
4604
|
gap: (e) => e.spacing(1),
|
|
4567
4605
|
paddingTop: (e) => e.spacing(1.25),
|
|
@@ -4587,7 +4625,7 @@ var $a = (e, t) => {
|
|
|
4587
4625
|
alignItems: "center",
|
|
4588
4626
|
gap: (e) => e.spacing(1.5)
|
|
4589
4627
|
},
|
|
4590
|
-
children: [W(
|
|
4628
|
+
children: [W(no, {
|
|
4591
4629
|
dataValidation: t,
|
|
4592
4630
|
size: 48
|
|
4593
4631
|
}), W(Y, {
|
|
@@ -4596,14 +4634,14 @@ var $a = (e, t) => {
|
|
|
4596
4634
|
minWidth: 0,
|
|
4597
4635
|
wordBreak: "break-word"
|
|
4598
4636
|
},
|
|
4599
|
-
children:
|
|
4637
|
+
children: ro(t, n)
|
|
4600
4638
|
})]
|
|
4601
|
-
}), W(
|
|
4639
|
+
}), W(y, {
|
|
4602
4640
|
item: t,
|
|
4603
4641
|
label: n("dataValidation.applyTo")
|
|
4604
4642
|
})]
|
|
4605
4643
|
}),
|
|
4606
|
-
W(
|
|
4644
|
+
W(yr, {
|
|
4607
4645
|
selectorTitle: n("dataValidation.allow"),
|
|
4608
4646
|
showIncludeBlanks: !0,
|
|
4609
4647
|
condition: t.getCondition(),
|
|
@@ -4625,8 +4663,8 @@ var $a = (e, t) => {
|
|
|
4625
4663
|
borderColor: "divider",
|
|
4626
4664
|
borderRadius: 1
|
|
4627
4665
|
},
|
|
4628
|
-
children: W(
|
|
4629
|
-
control: W(
|
|
4666
|
+
children: W(ln, {
|
|
4667
|
+
control: W(nn, {
|
|
4630
4668
|
checked: !t.isHideDropdown(),
|
|
4631
4669
|
disabled: r,
|
|
4632
4670
|
onChange: (e) => t.setHideDropdown(!e.target.checked)
|
|
@@ -4634,12 +4672,12 @@ var $a = (e, t) => {
|
|
|
4634
4672
|
label: n("dataValidation.inCellDropdown")
|
|
4635
4673
|
})
|
|
4636
4674
|
}),
|
|
4637
|
-
G(
|
|
4675
|
+
G(oo, {
|
|
4638
4676
|
checked: t.isShowPromptMessage(),
|
|
4639
4677
|
onCheckedChange: (e) => t.setShowPromptMessage(e),
|
|
4640
4678
|
label: n("dataValidation.prompt"),
|
|
4641
4679
|
readOnly: r,
|
|
4642
|
-
children: [W(
|
|
4680
|
+
children: [W(bn, {
|
|
4643
4681
|
size: "small",
|
|
4644
4682
|
label: n("dataValidation.title"),
|
|
4645
4683
|
value: t.getPromptTitle(),
|
|
@@ -4648,7 +4686,7 @@ var $a = (e, t) => {
|
|
|
4648
4686
|
fullWidth: !0,
|
|
4649
4687
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
4650
4688
|
sx: { backgroundColor: "background.paper" }
|
|
4651
|
-
}), W(
|
|
4689
|
+
}), W(bn, {
|
|
4652
4690
|
size: "small",
|
|
4653
4691
|
label: n("dataValidation.message"),
|
|
4654
4692
|
value: t.getPromptMessage(),
|
|
@@ -4661,18 +4699,18 @@ var $a = (e, t) => {
|
|
|
4661
4699
|
sx: { backgroundColor: "background.paper" }
|
|
4662
4700
|
})]
|
|
4663
4701
|
}),
|
|
4664
|
-
G(
|
|
4702
|
+
G(oo, {
|
|
4665
4703
|
checked: t.isShowAlertMessage(),
|
|
4666
4704
|
onCheckedChange: (e) => t.setShowAlertMessage(e),
|
|
4667
4705
|
label: n("dataValidation.alert"),
|
|
4668
4706
|
readOnly: r,
|
|
4669
4707
|
children: [
|
|
4670
|
-
G(
|
|
4708
|
+
G(cn, {
|
|
4671
4709
|
fullWidth: !0,
|
|
4672
4710
|
size: "small",
|
|
4673
4711
|
disabled: r,
|
|
4674
4712
|
sx: { backgroundColor: "background.paper" },
|
|
4675
|
-
children: [W(
|
|
4713
|
+
children: [W(fn, { children: n("dataValidation.alertStyle") }), W(J, {
|
|
4676
4714
|
value: t.getAlertStyle(),
|
|
4677
4715
|
label: n("dataValidation.alertStyle"),
|
|
4678
4716
|
onChange: (e) => t.setAlertStyle(e.target.value),
|
|
@@ -4683,23 +4721,23 @@ var $a = (e, t) => {
|
|
|
4683
4721
|
gap: 1
|
|
4684
4722
|
},
|
|
4685
4723
|
children: [W(N, {
|
|
4686
|
-
iconKey:
|
|
4724
|
+
iconKey: io[e],
|
|
4687
4725
|
size: 18,
|
|
4688
4726
|
ariaHidden: !0
|
|
4689
|
-
}), n(
|
|
4727
|
+
}), n(ao[e])]
|
|
4690
4728
|
}),
|
|
4691
|
-
children: Object.keys(
|
|
4729
|
+
children: Object.keys(io).map((e) => G(q, {
|
|
4692
4730
|
value: e,
|
|
4693
4731
|
sx: { gap: 1 },
|
|
4694
4732
|
children: [W(N, {
|
|
4695
|
-
iconKey:
|
|
4733
|
+
iconKey: io[e],
|
|
4696
4734
|
size: 18,
|
|
4697
4735
|
ariaHidden: !0
|
|
4698
|
-
}), n(
|
|
4736
|
+
}), n(ao[e])]
|
|
4699
4737
|
}, e))
|
|
4700
4738
|
})]
|
|
4701
4739
|
}),
|
|
4702
|
-
W(
|
|
4740
|
+
W(bn, {
|
|
4703
4741
|
size: "small",
|
|
4704
4742
|
label: n("dataValidation.title"),
|
|
4705
4743
|
value: t.getAlertTitle(),
|
|
@@ -4709,7 +4747,7 @@ var $a = (e, t) => {
|
|
|
4709
4747
|
slotProps: { htmlInput: { maxLength: 32 } },
|
|
4710
4748
|
sx: { backgroundColor: "background.paper" }
|
|
4711
4749
|
}),
|
|
4712
|
-
W(
|
|
4750
|
+
W(bn, {
|
|
4713
4751
|
size: "small",
|
|
4714
4752
|
label: n("dataValidation.message"),
|
|
4715
4753
|
value: t.getAlertMessage(),
|
|
@@ -4725,13 +4763,13 @@ var $a = (e, t) => {
|
|
|
4725
4763
|
})
|
|
4726
4764
|
]
|
|
4727
4765
|
});
|
|
4728
|
-
return W(
|
|
4766
|
+
return W(Ln.Provider, {
|
|
4729
4767
|
value: t,
|
|
4730
4768
|
children: a
|
|
4731
4769
|
});
|
|
4732
4770
|
});
|
|
4733
|
-
|
|
4734
|
-
var
|
|
4771
|
+
so.displayName = "DataValidationEditorPanel";
|
|
4772
|
+
var co = ({ children: e }) => W(K, {
|
|
4735
4773
|
sx: {
|
|
4736
4774
|
display: "inline-flex",
|
|
4737
4775
|
alignItems: "center",
|
|
@@ -4746,27 +4784,27 @@ var io = ({ children: e }) => W(K, {
|
|
|
4746
4784
|
variant: "caption",
|
|
4747
4785
|
children: e
|
|
4748
4786
|
})
|
|
4749
|
-
}),
|
|
4787
|
+
}), lo = R(({ item: e }) => {
|
|
4750
4788
|
let t = F();
|
|
4751
|
-
|
|
4789
|
+
Xe(e, "onAnyChange");
|
|
4752
4790
|
let n = [];
|
|
4753
|
-
return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() ===
|
|
4791
|
+
return e.isShowPromptMessage() && e.getPromptTitle() && n.push(t("dataValidation.promptPrefix", { title: e.getPromptTitle() })), e.getCondition() && (e.isShowAlertMessage() ? e.getAlertStyle() === O.AlertStyle.Warning ? n.push(t("dataValidation.alertWarning")) : e.getAlertStyle() === O.AlertStyle.Information && n.push(t("dataValidation.alertInformation")) : n.push(t("dataValidation.badgeNoAlert"))), e.isHideDropdown() && e.getRenderHints().includes("list") && n.push(t("dataValidation.badgeDropdownHidden")), n.length === 0 ? null : W(K, {
|
|
4754
4792
|
sx: {
|
|
4755
4793
|
display: "flex",
|
|
4756
4794
|
flexWrap: "wrap",
|
|
4757
4795
|
gap: .5
|
|
4758
4796
|
},
|
|
4759
|
-
children: n.map((e, t) => W(
|
|
4797
|
+
children: n.map((e, t) => W(co, { children: e }, t))
|
|
4760
4798
|
});
|
|
4761
4799
|
});
|
|
4762
|
-
|
|
4763
|
-
var
|
|
4800
|
+
lo.displayName = "DataValidationCardBody";
|
|
4801
|
+
var uo = R(({ item: e }) => W(y, {
|
|
4764
4802
|
item: e,
|
|
4765
4803
|
label: F()("dataValidation.applyTo"),
|
|
4766
4804
|
helperText: null
|
|
4767
4805
|
}));
|
|
4768
|
-
|
|
4769
|
-
var
|
|
4806
|
+
uo.displayName = "DataValidationCardRanges";
|
|
4807
|
+
var fo = {
|
|
4770
4808
|
key: "data-validation",
|
|
4771
4809
|
messageKeys: {
|
|
4772
4810
|
none: Z("dataValidation.none"),
|
|
@@ -4788,54 +4826,55 @@ var so = {
|
|
|
4788
4826
|
applyUpdate: (e, t) => {
|
|
4789
4827
|
e.update(t);
|
|
4790
4828
|
},
|
|
4829
|
+
validate: (e) => e.getCondition()?.validate() ?? null,
|
|
4791
4830
|
applyNewDefaults: (e) => {
|
|
4792
4831
|
e.update({
|
|
4793
|
-
alertStyle:
|
|
4832
|
+
alertStyle: O.AlertStyle.Stop,
|
|
4794
4833
|
showAlertMessage: !0
|
|
4795
4834
|
});
|
|
4796
4835
|
},
|
|
4797
4836
|
applySeed: (e, t) => {
|
|
4798
4837
|
e.update(t);
|
|
4799
4838
|
},
|
|
4800
|
-
getCardTitle:
|
|
4801
|
-
CardMedia: ({ item: e }) => W(
|
|
4839
|
+
getCardTitle: ro,
|
|
4840
|
+
CardMedia: ({ item: e }) => W(no, {
|
|
4802
4841
|
dataValidation: e,
|
|
4803
4842
|
size: 32
|
|
4804
4843
|
}),
|
|
4805
|
-
CardSubtitle:
|
|
4806
|
-
CardBody:
|
|
4807
|
-
EditorBody: ({ item: e }) => W(
|
|
4808
|
-
},
|
|
4844
|
+
CardSubtitle: uo,
|
|
4845
|
+
CardBody: lo,
|
|
4846
|
+
EditorBody: ({ item: e }) => W(so, { dataValidation: e })
|
|
4847
|
+
}, po = R(L((e, t) => {
|
|
4809
4848
|
let { workbook: n, args: r, ...i } = e;
|
|
4810
|
-
return W(
|
|
4849
|
+
return W(c, {
|
|
4811
4850
|
ref: t,
|
|
4812
4851
|
workbook: n,
|
|
4813
|
-
descriptor:
|
|
4852
|
+
descriptor: fo,
|
|
4814
4853
|
args: r,
|
|
4815
4854
|
dragReorder: !0,
|
|
4816
4855
|
...i
|
|
4817
4856
|
});
|
|
4818
4857
|
}));
|
|
4819
|
-
|
|
4858
|
+
po.displayName = "DataValidationDetailsPanel", w(), it.register("plugin-table", { icons: {} }), Oe.registerTaskPane({
|
|
4820
4859
|
key: "dataValidationDetails",
|
|
4821
4860
|
getTitle: () => "Data Validation",
|
|
4822
4861
|
getIcon: () => "DataValidation",
|
|
4823
4862
|
component: (e) => {
|
|
4824
4863
|
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
4825
|
-
return W(
|
|
4864
|
+
return W(po, {
|
|
4826
4865
|
ref: a,
|
|
4827
4866
|
workbook: t,
|
|
4828
4867
|
args: i,
|
|
4829
4868
|
...o
|
|
4830
4869
|
});
|
|
4831
4870
|
}
|
|
4832
|
-
}, !0),
|
|
4871
|
+
}, !0), Oe.registerTaskPane({
|
|
4833
4872
|
key: "conditionalFormatDetails",
|
|
4834
4873
|
getTitle: () => "Conditional Formatting",
|
|
4835
4874
|
getIcon: () => "FormatPaint",
|
|
4836
|
-
component:
|
|
4837
|
-
}, !0),
|
|
4838
|
-
var
|
|
4875
|
+
component: $r
|
|
4876
|
+
}, !0), S(), re(), ue(), de(), i();
|
|
4877
|
+
var mo = () => {
|
|
4839
4878
|
let e, t, n = new Promise((n, r) => {
|
|
4840
4879
|
e = n, t = r;
|
|
4841
4880
|
}), r = {
|
|
@@ -4849,62 +4888,62 @@ var lo = () => {
|
|
|
4849
4888
|
}
|
|
4850
4889
|
};
|
|
4851
4890
|
return n.catch(() => {}), r;
|
|
4852
|
-
},
|
|
4891
|
+
}, ho = (e, t) => {
|
|
4853
4892
|
if (!e) return {};
|
|
4854
4893
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
4855
|
-
return i && typeof i == "object" ?
|
|
4856
|
-
},
|
|
4857
|
-
let { host:
|
|
4894
|
+
return i && typeof i == "object" ? Dn.deepMerge(r, i) : r;
|
|
4895
|
+
}, go = "taskPanePosition", _o = R(L((t, n) => {
|
|
4896
|
+
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: c, onDocumentError: l, renderDocumentError: u = x, propsDocumentError: d, propsTaskPaneArea: f, renderTaskPaneArea: p = vo, taskPaneSide: m = "right", onKeyDown: h, workbook: g, onWorkbookChange: _, logo: v, topLeft: y, topRight: S, muiTheme: w, tokens: ee, cssBaseline: te, autoFocus: re = !1, title: ae, onDirtyChange: le, propsDocumentTitle: ue, renderDocumentLoading: de = se, propsDocumentLoading: fe, propsWorkbook: T, showFormulaBar: pe, propsFormulaBar: me, renderFormulaBar: he, editable: ge, showStatusBar: _e, propsStatusBar: ve, renderStatusBar: ye, propsToolbar: E, renderToolbar: D } = t, O = H(null), be = H(null), xe = H(null), Se = ht(() => {
|
|
4858
4897
|
xe.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
4859
|
-
}, []), Ce =
|
|
4898
|
+
}, []), Ce = ht(l ?? (() => {}), [l]), we = ht(le ?? (() => {}), [le]), Te = ue?.placeHolder, [Ee] = bt(Re.Mode, Le[Re.Mode]), { themeMode: De } = xt({ mode: Ee ?? void 0 }), [Oe] = bt(st.Active, null), ke = H(Oe);
|
|
4860
4899
|
ke.current = Oe;
|
|
4861
|
-
let Ae =
|
|
4862
|
-
light:
|
|
4863
|
-
dark:
|
|
4900
|
+
let Ae = St(), je = V(() => ({
|
|
4901
|
+
light: Bt(!1, Dn.deepMerge(ho(w, !1), e(Ae?.light))),
|
|
4902
|
+
dark: Bt(!0, Dn.deepMerge(ho(w, !0), e(Ae?.dark)))
|
|
4864
4903
|
}), [
|
|
4865
|
-
|
|
4904
|
+
w,
|
|
4866
4905
|
Ae?.light,
|
|
4867
4906
|
Ae?.dark
|
|
4868
|
-
]), Me = De === "dark", Ne = V(() =>
|
|
4907
|
+
]), Me = De === "dark", Ne = V(() => b(je.light, je.dark, `.${i}`, ee), [
|
|
4869
4908
|
je,
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
]), Pe = V(() =>
|
|
4909
|
+
i,
|
|
4910
|
+
ee
|
|
4911
|
+
]), Pe = V(() => Be("sxl-defaults", `.${i}`), [i]), Fe = Ye(), [Ue, We] = U(() => g ?? null);
|
|
4873
4912
|
B(() => {
|
|
4874
|
-
|
|
4913
|
+
We(g ?? null);
|
|
4875
4914
|
}, [g]);
|
|
4876
|
-
let [
|
|
4877
|
-
|
|
4878
|
-
let
|
|
4915
|
+
let [Ge, Ke] = U(0), qe = H(null);
|
|
4916
|
+
qe.current ||= mo();
|
|
4917
|
+
let Je = Qe(Ue, {
|
|
4879
4918
|
io: k,
|
|
4880
|
-
defaultTheme:
|
|
4881
|
-
reloadKey:
|
|
4882
|
-
}), A =
|
|
4919
|
+
defaultTheme: Fe.getDefaultTheme(),
|
|
4920
|
+
reloadKey: Ge
|
|
4921
|
+
}), A = Je.status === "loaded" ? Je.workbook : null, j = V(() => Je.status === "error" ? {
|
|
4883
4922
|
status: "error",
|
|
4884
|
-
error:
|
|
4885
|
-
} :
|
|
4923
|
+
error: Je.error
|
|
4924
|
+
} : Je.status === "loaded" ? {
|
|
4886
4925
|
status: "loaded",
|
|
4887
|
-
workbook:
|
|
4888
|
-
} : { status: "loading" }, [
|
|
4926
|
+
workbook: Je.workbook
|
|
4927
|
+
} : { status: "loading" }, [Je]);
|
|
4889
4928
|
B(() => {
|
|
4890
|
-
|
|
4891
|
-
}, [
|
|
4892
|
-
j.status === "loaded" ?
|
|
4929
|
+
qe.current.settled && (qe.current = mo());
|
|
4930
|
+
}, [Ue, Ge]), B(() => {
|
|
4931
|
+
j.status === "loaded" ? qe.current.resolve(j.workbook) : j.status === "error" && (Ce?.(j.error), qe.current.reject(j.error));
|
|
4893
4932
|
}, [j]);
|
|
4894
|
-
let [M,
|
|
4895
|
-
A && !M &&
|
|
4896
|
-
let
|
|
4897
|
-
ot.current =
|
|
4933
|
+
let [M, nt] = U(null);
|
|
4934
|
+
A && !M && nt(A);
|
|
4935
|
+
let at = A && M && A !== M ? A : null, ot = H(at);
|
|
4936
|
+
ot.current = at;
|
|
4898
4937
|
let ct = H(M);
|
|
4899
4938
|
ct.current = M;
|
|
4900
|
-
let
|
|
4939
|
+
let ut = H([]), dt = z((e) => {
|
|
4901
4940
|
let t = ct.current;
|
|
4902
|
-
t &&
|
|
4941
|
+
t && ut.current.push(t), We(e);
|
|
4903
4942
|
}, []);
|
|
4904
4943
|
B(() => {
|
|
4905
|
-
let e =
|
|
4944
|
+
let e = ut.current;
|
|
4906
4945
|
if (e.length !== 0) {
|
|
4907
|
-
|
|
4946
|
+
ut.current = e.filter((e) => e === M);
|
|
4908
4947
|
for (let t = 0; t < e.length; t++) {
|
|
4909
4948
|
let n = e[t];
|
|
4910
4949
|
if (n !== M) try {
|
|
@@ -4915,8 +4954,8 @@ var lo = () => {
|
|
|
4915
4954
|
}
|
|
4916
4955
|
}
|
|
4917
4956
|
}, [M]);
|
|
4918
|
-
let
|
|
4919
|
-
|
|
4957
|
+
let pt = ge ? null : M, mt = Ze(), gt = V(() => pt ? Ve(pt.getSelectedSheet(), { referenceMode: mt }) : null, [pt, mt]), P = ge ?? gt, vt = H(P);
|
|
4958
|
+
vt.current = P, B(() => {
|
|
4920
4959
|
if (!P) return;
|
|
4921
4960
|
let e = P.getSession();
|
|
4922
4961
|
return P.subscribe(() => {
|
|
@@ -4924,77 +4963,77 @@ var lo = () => {
|
|
|
4924
4963
|
e = P.getSession(), t && !e && t.getActiveEditorId() === "formula-bar" && xe.current?.contains?.(document.activeElement) && O.current?.focus();
|
|
4925
4964
|
});
|
|
4926
4965
|
}, [P]);
|
|
4927
|
-
let
|
|
4928
|
-
|
|
4929
|
-
let
|
|
4930
|
-
|
|
4931
|
-
let [
|
|
4966
|
+
let yt = et(M), { isDirty: F, saveState: I } = tt(M, k), Ct = $e(M), wt = H(I), Tt = H(null);
|
|
4967
|
+
wt.current = I;
|
|
4968
|
+
let Et = z(() => wt.current?.isDirty() ?? !1, []), L = H(j);
|
|
4969
|
+
L.current = j;
|
|
4970
|
+
let [Dt, R] = U(null), Ot = ae ?? ue?.title, [kt, At] = U(null);
|
|
4932
4971
|
B(() => {
|
|
4933
|
-
|
|
4972
|
+
At(null);
|
|
4934
4973
|
}, [M]);
|
|
4935
|
-
let
|
|
4974
|
+
let jt = Ot ?? kt ?? yt ?? "";
|
|
4936
4975
|
B(() => {
|
|
4937
|
-
we?.(
|
|
4938
|
-
}, [
|
|
4939
|
-
let
|
|
4976
|
+
we?.(F);
|
|
4977
|
+
}, [F]);
|
|
4978
|
+
let Pt = ht(_ ?? (() => {}), [_]);
|
|
4940
4979
|
B(() => {
|
|
4941
|
-
|
|
4980
|
+
Pt?.(A);
|
|
4942
4981
|
}, [A]);
|
|
4943
|
-
let
|
|
4944
|
-
|
|
4945
|
-
let It = V(() => W(
|
|
4982
|
+
let Ft = H(A);
|
|
4983
|
+
Ft.current = A, Xe(M, "onViewChange");
|
|
4984
|
+
let It = V(() => W(Mt, {
|
|
4946
4985
|
groupKey: "helpOptions",
|
|
4947
4986
|
disableHover: !0,
|
|
4948
4987
|
sx: { padding: "0" },
|
|
4949
4988
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
4950
|
-
}), []), [
|
|
4989
|
+
}), []), [Rt, zt] = U(null), Vt = z((e) => {
|
|
4951
4990
|
zt(e);
|
|
4952
4991
|
}, []);
|
|
4953
4992
|
B(() => {
|
|
4954
|
-
|
|
4993
|
+
it.prefetch().catch((e) => {
|
|
4955
4994
|
console.warn("Icons could not be loaded:", e);
|
|
4956
4995
|
});
|
|
4957
4996
|
}, []);
|
|
4958
|
-
let
|
|
4959
|
-
|
|
4960
|
-
let
|
|
4997
|
+
let Ht = H(null);
|
|
4998
|
+
Ht.current ||= mo();
|
|
4999
|
+
let Ut = H(null), Wt = z(() => Ut.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? Ht.current.promise, []), Gt = ht(async (e) => {
|
|
4961
5000
|
let t = ke.current;
|
|
4962
|
-
t && t !==
|
|
4963
|
-
}, []),
|
|
5001
|
+
t && t !== kn.getActive() && await kn.setActive(t), await rt.DefaultCommandCatalogService.prefetch(t ?? void 0), R(e), Ut.current = e.source, Ht.current.settled || Ht.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), c?.(e);
|
|
5002
|
+
}, []), Kt = H(null), qt = z((e) => {
|
|
4964
5003
|
let t = null, n = {
|
|
4965
5004
|
readOnly: !0,
|
|
4966
|
-
...
|
|
5005
|
+
...ue
|
|
4967
5006
|
};
|
|
4968
|
-
return
|
|
5007
|
+
return ue?.hidden || (t = W(oe, {
|
|
4969
5008
|
...n,
|
|
4970
5009
|
style: {
|
|
4971
5010
|
maxWidth: "100%",
|
|
4972
|
-
...
|
|
5011
|
+
...ue?.style
|
|
4973
5012
|
},
|
|
4974
5013
|
workbook: e.workbook ?? O.current,
|
|
4975
|
-
ref:
|
|
4976
|
-
title:
|
|
4977
|
-
modified:
|
|
4978
|
-
encrypted:
|
|
5014
|
+
ref: Kt,
|
|
5015
|
+
title: jt,
|
|
5016
|
+
modified: F,
|
|
5017
|
+
encrypted: Ct,
|
|
4979
5018
|
placeHolder: Te,
|
|
4980
5019
|
onTitleChange: (e) => {
|
|
4981
|
-
|
|
5020
|
+
At(e), ue?.onTitleChange?.(e);
|
|
4982
5021
|
}
|
|
4983
|
-
})), W(
|
|
5022
|
+
})), W(Na, {
|
|
4984
5023
|
...e,
|
|
4985
5024
|
logo: v,
|
|
4986
5025
|
mainElement: t,
|
|
4987
5026
|
startElement: y,
|
|
4988
|
-
endElement:
|
|
5027
|
+
endElement: S
|
|
4989
5028
|
});
|
|
4990
5029
|
}, [
|
|
4991
5030
|
v,
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
5031
|
+
jt,
|
|
5032
|
+
F,
|
|
5033
|
+
Ct,
|
|
5034
|
+
ue,
|
|
4996
5035
|
y,
|
|
4997
|
-
|
|
5036
|
+
S
|
|
4998
5037
|
]);
|
|
4999
5038
|
B(() => {
|
|
5000
5039
|
let e = O.current;
|
|
@@ -5003,12 +5042,12 @@ var lo = () => {
|
|
|
5003
5042
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
5004
5043
|
e.removeEventListener("wheel", t);
|
|
5005
5044
|
};
|
|
5006
|
-
}, [
|
|
5007
|
-
let [Jt,
|
|
5045
|
+
}, [Dt]);
|
|
5046
|
+
let [Jt, Xt] = U(null);
|
|
5008
5047
|
B(() => {
|
|
5009
|
-
|
|
5010
|
-
}, [
|
|
5011
|
-
let
|
|
5048
|
+
Xt(Dt?.source?.getCommandScope?.() ?? null);
|
|
5049
|
+
}, [Dt]);
|
|
5050
|
+
let Zt = V(() => ({
|
|
5012
5051
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
5013
5052
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
5014
5053
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -5021,55 +5060,55 @@ var lo = () => {
|
|
|
5021
5060
|
whiteSpace: "pre-wrap"
|
|
5022
5061
|
},
|
|
5023
5062
|
"*": { userSelect: "none" }
|
|
5024
|
-
}), []), [
|
|
5063
|
+
}), []), [Qt, $t] = U(null), [, en] = bt(null, !1);
|
|
5025
5064
|
B(() => {
|
|
5026
|
-
|
|
5027
|
-
}, [
|
|
5028
|
-
let
|
|
5065
|
+
en(Qt != null);
|
|
5066
|
+
}, [Qt, en]);
|
|
5067
|
+
let tn = z((e) => p({
|
|
5029
5068
|
model: M,
|
|
5030
|
-
side:
|
|
5069
|
+
side: m,
|
|
5031
5070
|
...e,
|
|
5032
|
-
...
|
|
5071
|
+
...f
|
|
5033
5072
|
}), [
|
|
5034
5073
|
M,
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
]),
|
|
5038
|
-
|
|
5074
|
+
m,
|
|
5075
|
+
f
|
|
5076
|
+
]), nn = H(r);
|
|
5077
|
+
nn.current = r, _t(n, () => ({
|
|
5039
5078
|
isStudioElement: () => !0,
|
|
5040
5079
|
save: (e) => {
|
|
5041
|
-
let t =
|
|
5080
|
+
let t = Tt.current;
|
|
5042
5081
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
5043
5082
|
},
|
|
5044
5083
|
getWorkbookElement: () => O.current,
|
|
5045
|
-
getWorkbook: () =>
|
|
5046
|
-
isDirty: () =>
|
|
5047
|
-
getEditable: () =>
|
|
5084
|
+
getWorkbook: () => Ft.current ?? null,
|
|
5085
|
+
isDirty: () => wt.current?.isDirty() ?? !1,
|
|
5086
|
+
getEditable: () => vt.current,
|
|
5048
5087
|
getFormulaBarElement: () => xe.current ?? null,
|
|
5049
5088
|
focus: () => O.current?.focus(),
|
|
5050
|
-
whenReady: () => (
|
|
5051
|
-
getWorkbookState: () =>
|
|
5052
|
-
retry: () =>
|
|
5053
|
-
}), [],
|
|
5054
|
-
let rn = H(!1),
|
|
5089
|
+
whenReady: () => (qe.current ||= mo(), qe.current.promise),
|
|
5090
|
+
getWorkbookState: () => L.current,
|
|
5091
|
+
retry: () => Ke((e) => e + 1)
|
|
5092
|
+
}), [], r);
|
|
5093
|
+
let rn = H(!1), on = ht((e, t) => {
|
|
5055
5094
|
t === ot.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
5056
|
-
t === ot.current && (rn.current =
|
|
5095
|
+
t === ot.current && (rn.current = nn.current?.contains(document.activeElement) ?? !0, nt(t), Gt(e));
|
|
5057
5096
|
}));
|
|
5058
5097
|
}, []);
|
|
5059
5098
|
B(() => {
|
|
5060
5099
|
rn.current && (rn.current = !1, O.current?.focus());
|
|
5061
5100
|
}, [M]);
|
|
5062
|
-
let
|
|
5063
|
-
let { ref: t, ...n } = e, r = Me ? je.dark : je.light,
|
|
5064
|
-
...
|
|
5101
|
+
let sn = z(() => W(Yt, {}), []), cn = z((e) => {
|
|
5102
|
+
let { ref: t, ...n } = e, r = Me ? je.dark : je.light, i = j.status === "error" ? u({
|
|
5103
|
+
...d,
|
|
5065
5104
|
style: {
|
|
5066
5105
|
width: "100%",
|
|
5067
5106
|
height: "100%",
|
|
5068
|
-
...
|
|
5107
|
+
...d?.style
|
|
5069
5108
|
},
|
|
5070
5109
|
error: j.error
|
|
5071
5110
|
}) : null;
|
|
5072
|
-
if (
|
|
5111
|
+
if (i && !M) return W(hn, {
|
|
5073
5112
|
style: {
|
|
5074
5113
|
width: "100%",
|
|
5075
5114
|
height: "100%",
|
|
@@ -5078,14 +5117,14 @@ var lo = () => {
|
|
|
5078
5117
|
alignItems: "stretch",
|
|
5079
5118
|
justifyContent: "stretch"
|
|
5080
5119
|
},
|
|
5081
|
-
children:
|
|
5120
|
+
children: i
|
|
5082
5121
|
});
|
|
5083
5122
|
let c = null;
|
|
5084
5123
|
if (M) {
|
|
5085
|
-
let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s =
|
|
5124
|
+
let e = M, i = e.getView(), a = pe ?? i?.isShowFormulaBar(), o = _e ?? i?.isShowStatusBar(), s = Dt?.source ?? O.current, l = (D ?? qt)({
|
|
5086
5125
|
workbook: s,
|
|
5087
|
-
...
|
|
5088
|
-
}), u = a ? (he ??
|
|
5126
|
+
...E
|
|
5127
|
+
}), u = a ? (he ?? ie)({
|
|
5089
5128
|
ref: xe,
|
|
5090
5129
|
style: {
|
|
5091
5130
|
marginTop: r.spacing(.25),
|
|
@@ -5100,32 +5139,32 @@ var lo = () => {
|
|
|
5100
5139
|
restoreFocus: (e) => s?.focus(e),
|
|
5101
5140
|
...me?.propsNamedCollectionEditor
|
|
5102
5141
|
}
|
|
5103
|
-
}) : null, d = o ? (
|
|
5142
|
+
}) : null, d = o ? (ye ?? ne)({
|
|
5104
5143
|
childrenEnd: It,
|
|
5105
5144
|
...ve
|
|
5106
|
-
}) : null, f = (e, r) => W(
|
|
5107
|
-
...
|
|
5145
|
+
}) : null, f = (e, r) => W(C, {
|
|
5146
|
+
...T,
|
|
5108
5147
|
tabIndex: 0,
|
|
5109
|
-
autoFocus: !r &&
|
|
5148
|
+
autoFocus: !r && re,
|
|
5110
5149
|
workbook: e,
|
|
5111
5150
|
editable: r ? void 0 : P ?? void 0,
|
|
5112
5151
|
focusNameBox: r ? void 0 : Se,
|
|
5113
|
-
ref: r ? be :
|
|
5114
|
-
onWorkbookLoad: r ? (t) =>
|
|
5152
|
+
ref: r ? be : ce([t, O]),
|
|
5153
|
+
onWorkbookLoad: r ? (t) => on(t, e) : Gt,
|
|
5115
5154
|
onKeyDown: (e) => {
|
|
5116
|
-
|
|
5155
|
+
h?.(e);
|
|
5117
5156
|
},
|
|
5118
|
-
propsWorkbookLoading:
|
|
5119
|
-
renderWorkbookLoading:
|
|
5157
|
+
propsWorkbookLoading: fe,
|
|
5158
|
+
renderWorkbookLoading: sn,
|
|
5120
5159
|
style: r ? {
|
|
5121
|
-
...
|
|
5160
|
+
...T?.style,
|
|
5122
5161
|
position: "absolute",
|
|
5123
5162
|
inset: 0,
|
|
5124
5163
|
visibility: "hidden"
|
|
5125
5164
|
} : {
|
|
5126
5165
|
flex: "1 1 100%",
|
|
5127
5166
|
minHeight: 0,
|
|
5128
|
-
...
|
|
5167
|
+
...T?.style
|
|
5129
5168
|
},
|
|
5130
5169
|
onContextMenu: (e) => e.preventDefault(),
|
|
5131
5170
|
...r ? null : n
|
|
@@ -5137,7 +5176,7 @@ var lo = () => {
|
|
|
5137
5176
|
flex: "1 1 100%",
|
|
5138
5177
|
minWidth: 0,
|
|
5139
5178
|
minHeight: 0,
|
|
5140
|
-
...
|
|
5179
|
+
...He({
|
|
5141
5180
|
window: r.palette.background.default,
|
|
5142
5181
|
windowText: r.palette.text.primary
|
|
5143
5182
|
})
|
|
@@ -5145,12 +5184,12 @@ var lo = () => {
|
|
|
5145
5184
|
children: [
|
|
5146
5185
|
l,
|
|
5147
5186
|
u,
|
|
5148
|
-
W(
|
|
5149
|
-
taskSide:
|
|
5150
|
-
persistKey:
|
|
5151
|
-
sidebarElement:
|
|
5187
|
+
W(Qa, {
|
|
5188
|
+
taskSide: m,
|
|
5189
|
+
persistKey: go,
|
|
5190
|
+
sidebarElement: Qt ? W(rt.CommandScopeProvider, {
|
|
5152
5191
|
scope: Jt,
|
|
5153
|
-
children:
|
|
5192
|
+
children: Qt
|
|
5154
5193
|
}) : void 0,
|
|
5155
5194
|
mainElement: G("div", {
|
|
5156
5195
|
style: {
|
|
@@ -5161,8 +5200,8 @@ var lo = () => {
|
|
|
5161
5200
|
minWidth: 0,
|
|
5162
5201
|
minHeight: 0
|
|
5163
5202
|
},
|
|
5164
|
-
children: [[f(M, !1),
|
|
5165
|
-
ref:
|
|
5203
|
+
children: [[f(M, !1), at ? f(at, !0) : null], W(K, {
|
|
5204
|
+
ref: Vt,
|
|
5166
5205
|
sx: {
|
|
5167
5206
|
position: "absolute",
|
|
5168
5207
|
top: "10%",
|
|
@@ -5179,9 +5218,9 @@ var lo = () => {
|
|
|
5179
5218
|
]
|
|
5180
5219
|
});
|
|
5181
5220
|
}
|
|
5182
|
-
let
|
|
5183
|
-
return G(
|
|
5184
|
-
sx:
|
|
5221
|
+
let l = Dt ? null : de({ ...fe });
|
|
5222
|
+
return G(hn, {
|
|
5223
|
+
sx: Zt,
|
|
5185
5224
|
style: {
|
|
5186
5225
|
width: "100%",
|
|
5187
5226
|
height: "100%",
|
|
@@ -5192,12 +5231,12 @@ var lo = () => {
|
|
|
5192
5231
|
backgroundColor: "var(--sxl-color-base-200)"
|
|
5193
5232
|
},
|
|
5194
5233
|
className: "eager-studio",
|
|
5195
|
-
square:
|
|
5196
|
-
elevation:
|
|
5197
|
-
variant:
|
|
5234
|
+
square: a,
|
|
5235
|
+
elevation: o,
|
|
5236
|
+
variant: s,
|
|
5198
5237
|
children: [
|
|
5199
5238
|
c,
|
|
5200
|
-
|
|
5239
|
+
i ? W(hn, {
|
|
5201
5240
|
style: {
|
|
5202
5241
|
position: "absolute",
|
|
5203
5242
|
inset: 0,
|
|
@@ -5205,9 +5244,9 @@ var lo = () => {
|
|
|
5205
5244
|
alignItems: "stretch",
|
|
5206
5245
|
justifyContent: "stretch"
|
|
5207
5246
|
},
|
|
5208
|
-
children:
|
|
5247
|
+
children: i
|
|
5209
5248
|
}) : null,
|
|
5210
|
-
|
|
5249
|
+
l ? W("div", {
|
|
5211
5250
|
style: {
|
|
5212
5251
|
position: "absolute",
|
|
5213
5252
|
inset: 0,
|
|
@@ -5216,30 +5255,30 @@ var lo = () => {
|
|
|
5216
5255
|
justifyContent: "center",
|
|
5217
5256
|
background: `var(--sxl-color-base-100, ${Me ? "#121212" : "#fff"})`
|
|
5218
5257
|
},
|
|
5219
|
-
children:
|
|
5258
|
+
children: l
|
|
5220
5259
|
}) : null
|
|
5221
5260
|
]
|
|
5222
5261
|
});
|
|
5223
5262
|
}, [
|
|
5224
5263
|
j,
|
|
5225
5264
|
M,
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
ue,
|
|
5265
|
+
at,
|
|
5266
|
+
Dt,
|
|
5267
|
+
jt,
|
|
5230
5268
|
de,
|
|
5231
|
-
q,
|
|
5232
5269
|
fe,
|
|
5233
|
-
|
|
5270
|
+
sn,
|
|
5271
|
+
T,
|
|
5234
5272
|
a,
|
|
5235
5273
|
o,
|
|
5274
|
+
s,
|
|
5236
5275
|
It,
|
|
5237
|
-
l,
|
|
5238
5276
|
u,
|
|
5239
|
-
|
|
5240
|
-
|
|
5277
|
+
d,
|
|
5278
|
+
qt,
|
|
5241
5279
|
Zt,
|
|
5242
|
-
|
|
5280
|
+
Qt,
|
|
5281
|
+
m,
|
|
5243
5282
|
Jt,
|
|
5244
5283
|
pe,
|
|
5245
5284
|
me,
|
|
@@ -5247,14 +5286,14 @@ var lo = () => {
|
|
|
5247
5286
|
P,
|
|
5248
5287
|
_e,
|
|
5249
5288
|
ve,
|
|
5289
|
+
ye,
|
|
5250
5290
|
E,
|
|
5251
5291
|
D,
|
|
5252
|
-
ye,
|
|
5253
5292
|
je,
|
|
5254
5293
|
Me
|
|
5255
|
-
]),
|
|
5294
|
+
]), ln = W(Oa, {
|
|
5256
5295
|
maxSnack: 3,
|
|
5257
|
-
domRoot:
|
|
5296
|
+
domRoot: Rt ?? void 0,
|
|
5258
5297
|
anchorOrigin: {
|
|
5259
5298
|
vertical: "bottom",
|
|
5260
5299
|
horizontal: "right"
|
|
@@ -5263,9 +5302,9 @@ var lo = () => {
|
|
|
5263
5302
|
onClose: (e, t, n) => {
|
|
5264
5303
|
O.current?.focus();
|
|
5265
5304
|
},
|
|
5266
|
-
Components: { error:
|
|
5305
|
+
Components: { error: ja },
|
|
5267
5306
|
iconVariant: {
|
|
5268
|
-
success: W(
|
|
5307
|
+
success: W(_n, {
|
|
5269
5308
|
style: { marginRight: "8px" },
|
|
5270
5309
|
children: W("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" })
|
|
5271
5310
|
}),
|
|
@@ -5274,42 +5313,43 @@ var lo = () => {
|
|
|
5274
5313
|
style: { marginRight: "8px" }
|
|
5275
5314
|
})
|
|
5276
5315
|
},
|
|
5277
|
-
children: W(
|
|
5316
|
+
children: W(ze, {
|
|
5278
5317
|
workbook: M,
|
|
5279
|
-
children: W(
|
|
5280
|
-
renderArea:
|
|
5318
|
+
children: W(Ie, {
|
|
5319
|
+
renderArea: tn,
|
|
5281
5320
|
onUpdateArea: (e) => {
|
|
5282
|
-
|
|
5321
|
+
$t(e);
|
|
5283
5322
|
},
|
|
5284
|
-
children: W(
|
|
5323
|
+
children: W(Lt, { children: W(Wa, { children: W(ft, { children: W(lt, { children: W(Va, {
|
|
5285
5324
|
workbook: M,
|
|
5286
|
-
initialCommandAnchor:
|
|
5287
|
-
renderWorkbook:
|
|
5325
|
+
initialCommandAnchor: Wt,
|
|
5326
|
+
renderWorkbook: cn,
|
|
5288
5327
|
setWorkbook: dt,
|
|
5289
|
-
titleWorkbook:
|
|
5290
|
-
setWorkbookTitle:
|
|
5291
|
-
refDocumentTitle:
|
|
5292
|
-
isDirty:
|
|
5293
|
-
refSave:
|
|
5328
|
+
titleWorkbook: jt,
|
|
5329
|
+
setWorkbookTitle: At,
|
|
5330
|
+
refDocumentTitle: Kt,
|
|
5331
|
+
isDirty: Et,
|
|
5332
|
+
refSave: Tt,
|
|
5333
|
+
host: r
|
|
5294
5334
|
}) }) }) }) })
|
|
5295
5335
|
})
|
|
5296
5336
|
})
|
|
5297
5337
|
});
|
|
5298
|
-
return
|
|
5338
|
+
return ln = G(xn, {
|
|
5299
5339
|
theme: Me ? je.dark : je.light,
|
|
5300
5340
|
children: [
|
|
5301
|
-
te ? W(
|
|
5341
|
+
te ? W(an, {}) : null,
|
|
5302
5342
|
W("style", { children: Ne }),
|
|
5303
5343
|
W("style", { children: Pe }),
|
|
5304
|
-
W(
|
|
5305
|
-
themeScopeClass:
|
|
5344
|
+
W(Nt, {
|
|
5345
|
+
themeScopeClass: i,
|
|
5306
5346
|
themeSurface: "app",
|
|
5307
5347
|
themeMode: De,
|
|
5308
|
-
children:
|
|
5348
|
+
children: ln
|
|
5309
5349
|
})
|
|
5310
5350
|
]
|
|
5311
|
-
}),
|
|
5351
|
+
}), ln;
|
|
5312
5352
|
}));
|
|
5313
|
-
|
|
5314
|
-
var
|
|
5315
|
-
export {
|
|
5353
|
+
_o.displayName = "EagerStudio";
|
|
5354
|
+
var vo = (e) => W(Ja, { ...e });
|
|
5355
|
+
export { _o as EagerStudio, _o as default };
|