@sheetxl/studio-mui 0.8.0-beta.21 → 0.8.0-beta.22
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/esm/{DypNzviXLejO7EFy.mjs → 4fBGyv6A2TxumCq-.mjs} +1 -1
- package/browser/esm/{MvwrF55lxVF8jCRR.mjs → 94tsNi06fbT_N5QP.mjs} +1 -1
- package/browser/esm/{D6K4M0lTty-YfNwL.mjs → B73fvq9CvO4zWnAU.mjs} +3 -3
- package/browser/esm/{BTmU9XLPvYrHSqNS.mjs → BChPnCMzvz7cXxgX.mjs} +2 -2
- package/browser/esm/{Cn9HHObOgyeO5n59.mjs → BKwBJsEKNY-Zg8CB.mjs} +2 -2
- package/browser/esm/{CSc97nFWptJgbzHm.mjs → BOlLywIc0l3AgTeQ.mjs} +3 -3
- package/browser/esm/{3FkSn_nCNgxZsgIL.mjs → BYtWtukbMjjvrpmO.mjs} +6 -6
- package/browser/esm/{DqZOeLxpTB81KRea.mjs → B_N6a3iKw4osibIz.mjs} +1 -1
- package/browser/esm/{19wMLMJtWK0oeEVt.mjs → BfiIvcOXqUoxIFoz.mjs} +2 -2
- package/browser/esm/{BloQOjPg78u-EF02.mjs → BhT_uJEPxlXpMzZA.mjs} +35 -42
- package/browser/esm/{ATq4TDNCeji9EzyV.mjs → BuAIHmOwBspXtuLo.mjs} +4 -4
- package/browser/esm/{0NmmzX7YcGCZAfjR.mjs → C-LSHx-5EgUmc44h.mjs} +6 -6
- package/browser/esm/{DBiaGhkvzLnkUxgI.mjs → C-rODYmI2nVNJxkV.mjs} +2 -2
- package/browser/esm/{BCBAzHaXN9AV8sab.mjs → C1F9o-e9q6m9MuOd.mjs} +651 -651
- package/browser/esm/{-z5Wfuc02L-6kq1M.mjs → C1tObUn9YlTLNn25.mjs} +2 -2
- package/browser/esm/{BB_QvUAlMtL59z9o.mjs → C3lvgNO_MVml-Awy.mjs} +2 -2
- package/browser/esm/{DDraGX98UQjilEmH.mjs → CJlwai18BnsJScjr.mjs} +2 -2
- package/browser/esm/{DR9p8nTF7Ac49NOk.mjs → CMPdCzAvGvFQ_NOu.mjs} +2 -2
- package/browser/esm/{C_Gs7_-MyIUFd3GO.mjs → COFmQH3tB3uvu0v4.mjs} +1 -1
- package/browser/esm/{CTBTpY09hkS1rzas.mjs → CSgrMpZ0rZKxXZyj.mjs} +4 -4
- package/browser/esm/{BseH-4GXYtDqvoqT.mjs → CStCc2wP7hmm92t1.mjs} +2 -2
- package/browser/esm/{R475WpaxeXiWizBi.mjs → CXvLc2JRNpJ9CiWw.mjs} +3 -3
- package/browser/esm/{C2RXFrmqZeD3QqPh.mjs → CgtckX24zzJUIsPm.mjs} +4 -4
- package/browser/esm/{oFMJAOPBUVDkFSdk.mjs → CoVFWmiy6hWV8rPy.mjs} +4 -4
- package/browser/esm/{DI2OTnABUBEmEaqR.mjs → CqmCCdvSBl4ksHpK.mjs} +4 -4
- package/browser/esm/{C1XWND0Zi7LMcsm_.mjs → CtNLEdf5v8pGcG3C.mjs} +2 -2
- package/browser/esm/{iXPWuBCZoCbVaYmX.mjs → CuL7ggWqWMgPSTYd.mjs} +1 -1
- package/browser/esm/{COetbYqMtkntH82m.mjs → CwBN8jwNndijQgmx.mjs} +1 -1
- package/browser/esm/{4V2MEotoMq61137z.mjs → CzhTxHyYCZp4qxKC.mjs} +2 -2
- package/browser/esm/{CNcmM3o7opgAuBgV.mjs → D26ZjloyA6kyqhCO.mjs} +2 -2
- package/browser/esm/{CmFDMGxQc2IWNQrh.mjs → D3H9iUvXD2rOEXUz.mjs} +3 -3
- package/browser/esm/{Dhw4RvCFZ7-lER3m.mjs → DB44ddihGazQSGaZ.mjs} +1 -1
- package/browser/esm/{Bv82Dlpi9aSgFTW7.mjs → DCjDYZjRl7IH3hl7.mjs} +1 -1
- package/browser/esm/{XpFIJoW5f7WrDl7A.mjs → DEMQ4FkP_kNZF_wE.mjs} +1 -1
- package/browser/esm/{Dtnkv-g21i8s_DmS.mjs → DNdSq8U8iqBPrwOo.mjs} +1 -1
- package/browser/esm/{CS3J1M5x0VrJ3ndM.mjs → DQbt4DNrmq-Uhlgk.mjs} +8 -8
- package/browser/esm/{DsJPi1PsaB1T96tB.mjs → DXRtL-ZwbSMLfMWu.mjs} +1 -1
- package/browser/esm/{_ufgBrmZqc27mJTC.mjs → DaCPqL3R4JLbgfKh.mjs} +2 -2
- package/browser/esm/{Bi0lTIkuP-DeqJcH.mjs → DdyE9R4gSZNhRZb0.mjs} +5 -5
- package/browser/esm/{DP7rdmsD5vllWV3a.mjs → De5GPX3SbEvetD0y.mjs} +1 -1
- package/browser/esm/{CgaSjzrOnWuwOhIc.mjs → Df0ygc7YMQG-3ATr.mjs} +1 -1
- package/browser/esm/{BbJU08YmJt-_qBF6.mjs → Df13XIFEDDEusmq6.mjs} +2 -2
- package/browser/esm/{BzqmYkLttNHqg63Q.mjs → DkWzWQNmOvX1iJXV.mjs} +2 -2
- package/browser/esm/{n8uT2YLiULcikick.mjs → Dq5jd89jluXcrOEE.mjs} +5 -5
- package/browser/esm/{BEf9LRQrSZ8r-xAT.mjs → DqFTGLVzd9DQ8EhO.mjs} +20 -20
- package/browser/esm/{prIPxnV06vnSprPI.mjs → Dqa4YY-GeaELqOWP.mjs} +2 -2
- package/browser/esm/{JbP9J8Lps9opfBEE.mjs → DrMsUvIwtq9dARmW.mjs} +4 -4
- package/browser/esm/{Drf5SnYtXPKJrneG.mjs → Dt3cLYWyjIUhoGv5.mjs} +2 -2
- package/browser/esm/{XHu8ZHNIkE6wwhdW.mjs → IrJcYpXt_8rkAXkj.mjs} +3 -3
- package/browser/esm/{D56YnBeIxJlew7m_.mjs → PujeLGgr7jXdyoVl.mjs} +1 -1
- package/browser/esm/{CL-QL6Z7zajam81k.mjs → UkGnqCkXqASlUdkb.mjs} +4 -4
- package/browser/esm/{CQUfTuoSCwqQ0IMS.mjs → dAjSLtkpLCkJDkhU.mjs} +1 -1
- package/browser/esm/{iOjNj5iTG7nRxxjs.mjs → eA3xhEFzK_Y-f3m3.mjs} +5 -5
- package/browser/esm/{DlXxfHGCzQyswKls.mjs → es5d1Dk1vs-XYLkm.mjs} +2 -2
- package/browser/esm/{pCVoTlBjzq5Y0YwO.mjs → h0wby0g03NYV4-XW.mjs} +5 -5
- package/browser/esm/index.mjs +17 -17
- package/browser/esm/{B5WTcQ5DGtwQ0jkI.mjs → ov0v-5BfNGRojfXZ.mjs} +2 -2
- package/browser/esm/{BRnkoDWmbvG8C1_N.mjs → t7Y081CM2JBXwlh-.mjs} +1 -1
- package/browser/esm/{BqbKAlU_mHU6NhT9.mjs → veW5ER4LND6O438J.mjs} +1 -1
- package/browser/esm/{CFBHs4m2-BlqZkEr.mjs → vsSZOEJBDfjVM46M.mjs} +2 -2
- package/node/esm/{B_07uId4kB51FCtK.mjs → B5dbA7OTeRHtdFKK.mjs} +4 -4
- package/node/esm/{D_3Mcts9e87EORIi.mjs → BI4aQ23a2wqqskmY.mjs} +475 -475
- package/node/esm/{DpHH7fvV8jCBbKt5.mjs → BML2jZO-vGc6RS51.mjs} +2 -2
- package/node/esm/{Bv3K0CqiXzYTm7CK.mjs → BNJBkYIYk2zyHoU3.mjs} +1 -1
- package/node/esm/{DJi__4aWX4wwGjnt.mjs → BPGz9KUMwgtyF6LG.mjs} +1 -1
- package/node/esm/{BYf9hvHJuKJNqqZO.mjs → BjpAc-kSpia0lwjr.mjs} +1 -1
- package/node/esm/{BORgnY9dptVfd8wC.mjs → Bn2kMFZYznOun538.mjs} +1 -1
- package/node/esm/{CEQmZUAgMA3rIxe_.mjs → Bppef7aHA2mOZ_sn.mjs} +1 -1
- package/node/esm/{C75b6boqKp33EdpB.mjs → Bu647iy66qiv3-qM.mjs} +2 -2
- package/node/esm/{CaMuiNImC2zQQykf.mjs → BuDVpL6sgPNGIN7T.mjs} +1 -1
- package/node/esm/{CRkzp1_dyeM1KUud.mjs → Bzi3tHPQ3b7BGbwU.mjs} +1 -1
- package/node/esm/{BUqtenzZROfaeBgh.mjs → C4qWN7D3UW8jLaZK.mjs} +4 -4
- package/node/esm/{SNaalbjzQGIMnqPC.mjs → C9dfS-Tk6WGogUSV.mjs} +2 -2
- package/node/esm/{Bsug_5tyxbKlPnjZ.mjs → CF8UfOyBsfrrOyAH.mjs} +2 -2
- package/node/esm/{DMqVb7WqCzqQX3wx.mjs → CM2JoqeXwIblrqJM.mjs} +2 -2
- package/node/esm/{B5izshUZ2MRDNb5s.mjs → CTsTUI34q8TBkdX5.mjs} +1 -1
- package/node/esm/{cQkfTTXKtrzzwTj_.mjs → Caf_ZRpLHj97cmhq.mjs} +1 -1
- package/node/esm/{CnPQj9mRZUhQycvE.mjs → CawfjLMD5X08VllQ.mjs} +2 -2
- package/node/esm/{Bb5tJ1TuwZePhOI_.mjs → CbE22c6PmT_9BusX.mjs} +1 -1
- package/node/esm/{RqUCi1IOUIuPSFCu.mjs → CcLCu4TIukHypMCt.mjs} +2 -2
- package/node/esm/{Iji4gCNbD66TvfOS.mjs → D1QZYBh1NZInkWaZ.mjs} +2 -2
- package/node/esm/{CAr94CzmtttReoYz.mjs → DBB9QhddMWoyCmju.mjs} +2 -2
- package/node/esm/{66U7xo0GBu80pE9I.mjs → DLQ1x8uASVrHgCX2.mjs} +1 -1
- package/node/esm/{Cv-r7t8eamR5ZFiz.mjs → DLt7HmhROlJ1V8bV.mjs} +1 -1
- package/node/esm/{DB0nWZ9I881Gdoeo.mjs → DRigWgmIaYtEv5Lk.mjs} +1 -1
- package/node/esm/{BePpjuTMltMTtgmp.mjs → DY96atQfGYmZ90TD.mjs} +4 -4
- package/node/esm/{b32Mry1LI41o7I1O.mjs → Dg5D5zMNzygUWk51.mjs} +2 -2
- package/node/esm/{DxoOobdO06D16DYc.mjs → Dj16Fzha7o7DGv6z.mjs} +2 -2
- package/node/esm/{sKtXhZg7VoFWiL32.mjs → DomLgHu8aLIg6y2l.mjs} +1 -1
- package/node/esm/{4dZy4IT0suoxZvbK.mjs → DrBGMrwOCXerStOS.mjs} +2 -2
- package/node/esm/{b_lG4702kLpmFvGb.mjs → Dv8pWn_FIH1LYneP.mjs} +2 -2
- package/node/esm/{D4ZsBsKhm6gdi5wO.mjs → DxRENk3CWrgvcnJj.mjs} +2 -2
- package/node/esm/{DoRaGvL9s79NZAYU.mjs → G7AEbATGEFC09W8Z.mjs} +1 -1
- package/node/esm/{CiIW_yB_qnJV5RUA.mjs → GeB-AGYaOLPf4xIa.mjs} +127 -134
- package/node/esm/{9Kq__XyQDKWxOU37.mjs → JieSP-_GeRIfiW8Z.mjs} +2 -2
- package/node/esm/{CyOrPZTUqjp45ABy.mjs → bXPPrX3OxYcCm85J.mjs} +1 -1
- package/node/esm/{Dz9GxMRQzPtOpqNo.mjs → eCWrCiaQxjPKI08p.mjs} +1 -1
- package/node/esm/index.mjs +14 -14
- package/node/esm/{S1sK514tY4D0vLiA.mjs → tt1hY7OYeKg-gSFj.mjs} +1 -1
- package/node/esm/{BCUH7DA5M8FLcqxw.mjs → wC3tHWypFfvBG8Fu.mjs} +1 -1
- package/package.json +9 -9
|
@@ -1,33 +1,33 @@
|
|
|
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.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, FormulaField as a, InputField as i, NamedPlugin as s, ProtectionPlugin as l, SlicerPlugin as c, TablePlugin as d, WorkbookElement as p, createStudioThemeCSS as u, defaultRenderFormulaBar as m, defaultRenderPivotMenu as g, defaultRenderStatusBar as h, defaultRenderToolbar as f, defaultRenderWorkbookError as k, defaultRenderWorkbookLoading as b, registerStudioCommandCatalogs as y, registerStudioCommandGroups as w, t as x, tokensToMuiOptions as v, u as C } from "./index.mjs";
|
|
8
8
|
import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PivotTablePane as E, SHAPE_ICON_PACK as W, TaskPaneArea as F, TaskPaneKey as A, TaskPaneProvider as P, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as $, createSystemColorVars as M, registerMovablePane as L, useDocThemes as B, useModelSync as K, useReferenceModeStore as _, useResolvedWorkbook as z, useTaskPaneArea as H, useWorkbookEncrypted as V, useWorkbookName as U, useWorkbookSaveState as G } from "@sheetxl/react";
|
|
9
|
-
import { Command as q, DefaultCommandButtonRegistry as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae,
|
|
10
|
-
import
|
|
11
|
-
import { AnimatedLoadingPanel as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
import { Box as
|
|
14
|
-
import { CommonUtils as
|
|
15
|
-
import
|
|
16
|
-
import { mergeRefs as
|
|
17
|
-
import { SnackbarContent as
|
|
18
|
-
var
|
|
9
|
+
import { Command as q, DefaultCommandButtonRegistry as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae, ThemeStyle as ie, UncaughtErrorBoundary as se, createBusyHandle as le, useCallbackRef as ce, useFullscreen as de, useImperativeElement as pe, useKeyboardResize as ue, useLanguage as me, useMeasure as ge, useNotifier as he, usePersistentState as fe, useResolvedThemeMode as ke, useTokenThemeContext as be, useTranslator as ye } from "@sheetxl/utils-react";
|
|
10
|
+
import we, { Fragment as xe, forwardRef as ve, isValidElement as Ce, memo as De, useCallback as Se, useEffect as Te, useMemo as Ee, useRef as We, useState as Fe } from "react";
|
|
11
|
+
import { AnimatedLoadingPanel as Ae, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ie, ExhibitDivider as Ne, ExhibitFloatProvider as Re, ExhibitMenuItem as je, ExhibitTooltip as Oe, ModalProvider as $e, SelectedIcon as Me, SimpleTooltip as Le, StackTrace as Be, createExhibitTheme as Ke, hideLoadingPanel as _e, lazyModal as ze, lazyPanel as He, showLoadingPanel as Ve, useInputDialog as Ue, useLazyWindow as Ge, useModal as qe, useOptionsDialog as Xe } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as Ye, jsx as Ze, jsxs as Je } from "react/jsx-runtime";
|
|
13
|
+
import { Box as Qe, Card as et, CardActions as tt, Collapse as ot, CssBaseline as rt, DialogTitle as nt, IconButton as at, Paper as it, SvgIcon as st, Tab as lt, Tabs as ct, ThemeProvider as dt, Typography as pt, alpha as ut, useMediaQuery as mt, useTheme as gt } from "@mui/material";
|
|
14
|
+
import { CommonUtils as ht, DOMUtils as ft, DefaultLanguagePackService as kt, ErrorUtils as bt, ExpectedError as yt, PartialError as wt, defineLazyModule as xt, formatMessage as vt, messageKey as Ct, t as Dt } from "@sheetxl/utils";
|
|
15
|
+
import St from "clsx";
|
|
16
|
+
import { mergeRefs as Tt, useMergeRefs as Et } from "react-merge-refs";
|
|
17
|
+
import { SnackbarContent as Wt, SnackbarProvider as Ft, useSnackbar as At } from "notistack";
|
|
18
|
+
var Pt = Object.defineProperty, It = (e, t) => {
|
|
19
19
|
let o = {};
|
|
20
|
-
for (var r in e)
|
|
20
|
+
for (var r in e) Pt(o, r, {
|
|
21
21
|
get: e[r],
|
|
22
22
|
enumerable: !0
|
|
23
23
|
});
|
|
24
|
-
return t ||
|
|
25
|
-
},
|
|
24
|
+
return t || Pt(o, Symbol.toStringTag, { value: "Module" }), o;
|
|
25
|
+
}, Nt = He(xt("studio:conditionalFormatDetailsTaskPane", () => import("./GeB-AGYaOLPf4xIa.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Rt = ["lines"], jt = /^[A-Za-z_\\][\w.\\]*$/, Ot = /^\$?[A-Za-z]{1,3}\$?\d+$/, $t = (e) => {
|
|
26
26
|
const t = e?.getReferences() ?? null;
|
|
27
27
|
if (!e || !t || 1 !== t.getCount()) return null;
|
|
28
28
|
const o = e.getExpression().trim();
|
|
29
|
-
return
|
|
30
|
-
},
|
|
29
|
+
return jt.test(o) && !Ot.test(o) ? o : t;
|
|
30
|
+
}, Mt = {
|
|
31
31
|
card: "_card_h0jnt_7",
|
|
32
32
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
33
33
|
icons: "_icons_h0jnt_16",
|
|
@@ -37,63 +37,63 @@ var At = Object.defineProperty, Pt = (e, t) => {
|
|
|
37
37
|
paper: "_paper_h0jnt_37",
|
|
38
38
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
39
39
|
button: "_button_h0jnt_47"
|
|
40
|
-
},
|
|
41
|
-
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l =
|
|
40
|
+
}, Lt = De(ve((e, t) => {
|
|
41
|
+
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ye(), { closeSnackbar: c } = At(), [d, p] = Fe(!1), u = a ? bt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof yt), g = Se(() => {
|
|
42
42
|
p((e) => !e);
|
|
43
|
-
}, []), h =
|
|
43
|
+
}, []), h = Se(() => {
|
|
44
44
|
c(o);
|
|
45
45
|
}, [o, c]);
|
|
46
46
|
let f = u?.message;
|
|
47
|
-
return !f &&
|
|
47
|
+
return !f && Ce(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ze(Wt, {
|
|
48
48
|
ref: t,
|
|
49
|
-
className:
|
|
50
|
-
children:
|
|
51
|
-
className:
|
|
49
|
+
className: St(Mt.root, "error-snackbar"),
|
|
50
|
+
children: Je(et, {
|
|
51
|
+
className: Mt.card,
|
|
52
52
|
style: {
|
|
53
53
|
backgroundColor: "var(--sxl-color-error)",
|
|
54
54
|
color: "var(--sxl-color-error-content)",
|
|
55
55
|
border: "1px solid var(--sxl-color-error)"
|
|
56
56
|
},
|
|
57
|
-
children: [
|
|
58
|
-
className:
|
|
57
|
+
children: [Je(tt, {
|
|
58
|
+
className: Mt.actionRoot,
|
|
59
59
|
children: [
|
|
60
60
|
i ? null : n?.error,
|
|
61
|
-
|
|
61
|
+
Ze(pt, {
|
|
62
62
|
variant: "body2",
|
|
63
63
|
component: "div",
|
|
64
|
-
className:
|
|
64
|
+
className: Mt.typography,
|
|
65
65
|
children: f
|
|
66
66
|
}),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className:
|
|
70
|
-
children: [m ?
|
|
67
|
+
Ze("div", { style: { flex: "1 1 auto" } }),
|
|
68
|
+
Je("div", {
|
|
69
|
+
className: Mt.icons,
|
|
70
|
+
children: [m ? Ze(at, {
|
|
71
71
|
"aria-label": l("toast.showMore"),
|
|
72
72
|
size: "small",
|
|
73
|
-
className:
|
|
73
|
+
className: St(Mt.expand, { [Mt.expandOpen]: d }),
|
|
74
74
|
onClick: g,
|
|
75
|
-
children:
|
|
76
|
-
}) : null,
|
|
75
|
+
children: Ze(Z, { iconKey: "ExpandMore" })
|
|
76
|
+
}) : null, Ze(at, {
|
|
77
77
|
size: "small",
|
|
78
|
-
className:
|
|
78
|
+
className: Mt.expand,
|
|
79
79
|
onClick: h,
|
|
80
|
-
children:
|
|
80
|
+
children: Ze(Z, {
|
|
81
81
|
iconKey: "Close",
|
|
82
82
|
style: { transform: "scale(0.8)" }
|
|
83
83
|
})
|
|
84
84
|
})]
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
|
-
}), m ?
|
|
87
|
+
}), m ? Ze(ot, {
|
|
88
88
|
in: d,
|
|
89
89
|
timeout: "auto",
|
|
90
|
-
children:
|
|
91
|
-
className:
|
|
90
|
+
children: Ze("div", {
|
|
91
|
+
className: Mt.stackTraceContainer,
|
|
92
92
|
style: {
|
|
93
93
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
94
94
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
95
95
|
},
|
|
96
|
-
children:
|
|
96
|
+
children: Ze(Be, {
|
|
97
97
|
error: a,
|
|
98
98
|
hideLineNumbers: !0
|
|
99
99
|
})
|
|
@@ -102,13 +102,13 @@ var At = Object.defineProperty, Pt = (e, t) => {
|
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
}));
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
const e =
|
|
108
|
-
return
|
|
105
|
+
Lt.displayName = "ToastError";
|
|
106
|
+
var Bt = () => {
|
|
107
|
+
const e = ye();
|
|
108
|
+
return Ze(Oe, {
|
|
109
109
|
label: "SheetXL",
|
|
110
110
|
description: e("logo.description"),
|
|
111
|
-
children:
|
|
111
|
+
children: Ze(Qe, {
|
|
112
112
|
component: "a",
|
|
113
113
|
href: "https://www.sheetxl.com",
|
|
114
114
|
target: "_blank",
|
|
@@ -121,25 +121,25 @@ var Lt = () => {
|
|
|
121
121
|
marginLeft: "6px",
|
|
122
122
|
cursor: "pointer"
|
|
123
123
|
},
|
|
124
|
-
children:
|
|
124
|
+
children: Ze(T, { style: {
|
|
125
125
|
width: "24px",
|
|
126
126
|
height: "24px"
|
|
127
127
|
} })
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
|
-
},
|
|
131
|
-
const { workbook: o, className: r, logo: n =
|
|
130
|
+
}, Kt = Ze(Bt, {}), _t = De(ve((e, t) => {
|
|
131
|
+
const { workbook: o, className: r, logo: n = Kt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ge(), p = d < 530, u = We(null), m = Et([
|
|
132
132
|
u,
|
|
133
133
|
c,
|
|
134
134
|
t
|
|
135
135
|
]);
|
|
136
|
-
return
|
|
136
|
+
return Ze(Qe, {
|
|
137
137
|
...l,
|
|
138
138
|
ref: m,
|
|
139
139
|
className: r,
|
|
140
140
|
children: f({
|
|
141
141
|
isCompact: p,
|
|
142
|
-
wrapperSelect: (e) =>
|
|
142
|
+
wrapperSelect: (e) => Je(Qe, {
|
|
143
143
|
sx: {
|
|
144
144
|
display: "grid",
|
|
145
145
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -150,7 +150,7 @@ var Lt = () => {
|
|
|
150
150
|
paddingRight: (e) => e.spacing(1)
|
|
151
151
|
},
|
|
152
152
|
children: [
|
|
153
|
-
|
|
153
|
+
Je(Qe, {
|
|
154
154
|
sx: {
|
|
155
155
|
display: "flex",
|
|
156
156
|
flexDirection: "row",
|
|
@@ -158,7 +158,7 @@ var Lt = () => {
|
|
|
158
158
|
justifyContent: "start",
|
|
159
159
|
gap: (e) => e.spacing(.5)
|
|
160
160
|
},
|
|
161
|
-
children: [n,
|
|
161
|
+
children: [n, Je(Qe, {
|
|
162
162
|
sx: {
|
|
163
163
|
display: "flex",
|
|
164
164
|
flexDirection: "row",
|
|
@@ -168,7 +168,7 @@ var Lt = () => {
|
|
|
168
168
|
children: [i, e]
|
|
169
169
|
})]
|
|
170
170
|
}),
|
|
171
|
-
|
|
171
|
+
Ze(Qe, {
|
|
172
172
|
sx: {
|
|
173
173
|
display: "flex",
|
|
174
174
|
flexDirection: "row",
|
|
@@ -179,7 +179,7 @@ var Lt = () => {
|
|
|
179
179
|
},
|
|
180
180
|
children: a
|
|
181
181
|
}),
|
|
182
|
-
|
|
182
|
+
Ze(Qe, {
|
|
183
183
|
sx: {
|
|
184
184
|
display: "flex",
|
|
185
185
|
alignItems: "center",
|
|
@@ -192,12 +192,12 @@ var Lt = () => {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}));
|
|
195
|
-
|
|
196
|
-
var
|
|
195
|
+
_t.displayName = "StudioToolbar";
|
|
196
|
+
var zt = (e, t) => {
|
|
197
197
|
const o = new URL(window.location.pathname, window.location.origin);
|
|
198
|
-
e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" +
|
|
198
|
+
e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + ht.uuidV4(), "popup=true");
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function Ht(e, t) {
|
|
201
201
|
const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
|
|
202
202
|
let l = !1;
|
|
203
203
|
const c = async (e = null, t = null, o = null) => {
|
|
@@ -206,20 +206,20 @@ function zt(e, t) {
|
|
|
206
206
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
207
207
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
208
208
|
const o = await i.showInput({
|
|
209
|
-
title:
|
|
210
|
-
description:
|
|
209
|
+
title: Dt("dialog.password.title"),
|
|
210
|
+
description: Dt("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
211
211
|
inputType: "password",
|
|
212
212
|
options: [{
|
|
213
213
|
id: "Open",
|
|
214
|
-
label: () =>
|
|
214
|
+
label: () => Dt("dialog.open")
|
|
215
215
|
}, "Cancel"],
|
|
216
216
|
defaultOption: "Open",
|
|
217
217
|
onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
218
218
|
valid: !1,
|
|
219
|
-
message:
|
|
219
|
+
message: Dt("dialog.password.open.retry")
|
|
220
220
|
} : {
|
|
221
221
|
valid: !1,
|
|
222
|
-
message:
|
|
222
|
+
message: Dt("dialog.password.open.required")
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
return "Open" === o?.option ? o.input ?? null : null;
|
|
@@ -235,7 +235,7 @@ function zt(e, t) {
|
|
|
235
235
|
...n,
|
|
236
236
|
progress: {
|
|
237
237
|
async onStart(e, t) {
|
|
238
|
-
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(
|
|
238
|
+
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Dt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
239
239
|
},
|
|
240
240
|
onProgress(e, t) {
|
|
241
241
|
if (!t) return;
|
|
@@ -248,7 +248,7 @@ function zt(e, t) {
|
|
|
248
248
|
o - s < 5 || (s = o, a?.setProgress?.(e, t));
|
|
249
249
|
},
|
|
250
250
|
onComplete() {
|
|
251
|
-
a?.(), r.length > 0 && (i.showMessage(
|
|
251
|
+
a?.(), r.length > 0 && (i.showMessage(Dt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
252
252
|
},
|
|
253
253
|
onWarning(e, t) {
|
|
254
254
|
n?.progress?.onWarning?.(e, t);
|
|
@@ -261,7 +261,7 @@ function zt(e, t) {
|
|
|
261
261
|
format: t?.key,
|
|
262
262
|
progress: {
|
|
263
263
|
async onStart(e) {
|
|
264
|
-
a = await i?.showBusy?.(
|
|
264
|
+
a = await i?.showBusy?.(Dt("workbook.saving", { name: e?.getName() ?? "" }));
|
|
265
265
|
},
|
|
266
266
|
onComplete() {
|
|
267
267
|
a?.();
|
|
@@ -269,27 +269,27 @@ function zt(e, t) {
|
|
|
269
269
|
},
|
|
270
270
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
|
|
271
271
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
272
|
-
const r =
|
|
272
|
+
const r = Dt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Dt("dialog.writeWarnings.keep");
|
|
273
273
|
return o ? "Save" === await i.showOptions({
|
|
274
274
|
title: r,
|
|
275
275
|
type: Q.Warning,
|
|
276
|
-
description: `${
|
|
276
|
+
description: `${Dt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
|
|
277
277
|
options: [{
|
|
278
278
|
id: "Save",
|
|
279
|
-
label: () =>
|
|
279
|
+
label: () => Dt("dialog.save")
|
|
280
280
|
}, "Cancel"],
|
|
281
281
|
defaultOption: "Cancel"
|
|
282
|
-
}) && (a = await i?.showBusy?.(
|
|
282
|
+
}) && (a = await i?.showBusy?.(Dt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
|
|
283
283
|
title: r,
|
|
284
284
|
type: Q.Warning,
|
|
285
|
-
description: `${
|
|
285
|
+
description: `${Dt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
|
|
286
286
|
options: ["Ok"]
|
|
287
287
|
}), !0);
|
|
288
288
|
})
|
|
289
289
|
};
|
|
290
290
|
let l;
|
|
291
291
|
if (o) {
|
|
292
|
-
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() ||
|
|
292
|
+
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || Dt("workbook.defaultName")}.${r}`;
|
|
293
293
|
l = await R.writeAs(e, a, {
|
|
294
294
|
...s,
|
|
295
295
|
prompt: !0
|
|
@@ -303,14 +303,14 @@ function zt(e, t) {
|
|
|
303
303
|
e?.source ? t && p ? await p({
|
|
304
304
|
url: e.source,
|
|
305
305
|
title: e.title
|
|
306
|
-
}) :
|
|
306
|
+
}) : zt(e.source, e.title) : t ? r({}) : zt();
|
|
307
307
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
308
308
|
a() && "Close" !== await i.showOptions({
|
|
309
|
-
title:
|
|
310
|
-
description:
|
|
309
|
+
title: Dt("dialog.confirm.title"),
|
|
310
|
+
description: Dt("dialog.unsavedChanges"),
|
|
311
311
|
options: [{
|
|
312
312
|
id: "Close",
|
|
313
|
-
label: () =>
|
|
313
|
+
label: () => Dt("dialog.close")
|
|
314
314
|
}, "Cancel"],
|
|
315
315
|
defaultOption: "Cancel"
|
|
316
316
|
}) || window.close();
|
|
@@ -331,13 +331,13 @@ function zt(e, t) {
|
|
|
331
331
|
for (const o of t) {
|
|
332
332
|
const t = o.key;
|
|
333
333
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
334
|
-
label: () =>
|
|
334
|
+
label: () => Dt("command.saveAsFormat.label", { format: o.description }),
|
|
335
335
|
groupLabels: {
|
|
336
|
-
workbook: () =>
|
|
337
|
-
saveWorkbookOptions: () =>
|
|
336
|
+
workbook: () => Dt("command.saveAsFormat.workbook", { format: o.description }),
|
|
337
|
+
saveWorkbookOptions: () => Dt("command.saveAsFormat.compact", { format: o.description })
|
|
338
338
|
},
|
|
339
339
|
tags: o.tags,
|
|
340
|
-
description: () =>
|
|
340
|
+
description: () => Dt("command.saveAsFormat", { format: o.description }),
|
|
341
341
|
icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
342
342
|
callback: () => {
|
|
343
343
|
r(t);
|
|
@@ -365,7 +365,7 @@ function zt(e, t) {
|
|
|
365
365
|
autoSelect: e === i.length - 1
|
|
366
366
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
367
367
|
}
|
|
368
|
-
},
|
|
368
|
+
}, Ct("op.importData")), a.close();
|
|
369
369
|
} catch (e) {
|
|
370
370
|
i.showError(e);
|
|
371
371
|
}
|
|
@@ -376,7 +376,7 @@ function zt(e, t) {
|
|
|
376
376
|
let t = e;
|
|
377
377
|
if (t || R.canRead() || (t = await (async () => {
|
|
378
378
|
const e = await R.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
379
|
-
return
|
|
379
|
+
return ft.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
380
380
|
})(), t)) return m(t);
|
|
381
381
|
}
|
|
382
382
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -384,14 +384,14 @@ function zt(e, t) {
|
|
|
384
384
|
callback: async (e) => {
|
|
385
385
|
if (!e) {
|
|
386
386
|
const t = await i.showInput({
|
|
387
|
-
title:
|
|
388
|
-
description:
|
|
389
|
-
inputLabel:
|
|
387
|
+
title: Dt("dialog.importFromWeb.title"),
|
|
388
|
+
description: Dt("dialog.importFromWeb.description"),
|
|
389
|
+
inputLabel: Dt("dialog.webAddress.inputLabel"),
|
|
390
390
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
391
391
|
propsInput: { style: { minWidth: "440px" } },
|
|
392
392
|
options: [{
|
|
393
393
|
id: "Import",
|
|
394
|
-
label: () =>
|
|
394
|
+
label: () => Dt("dialog.import")
|
|
395
395
|
}]
|
|
396
396
|
});
|
|
397
397
|
if ("Import" !== t.option) return;
|
|
@@ -408,11 +408,11 @@ function zt(e, t) {
|
|
|
408
408
|
}
|
|
409
409
|
}), u) {
|
|
410
410
|
const t = async () => !a() || "Open" === await i.showOptions({
|
|
411
|
-
title:
|
|
412
|
-
description:
|
|
411
|
+
title: Dt("dialog.confirm.title"),
|
|
412
|
+
description: Dt("dialog.unsavedChanges"),
|
|
413
413
|
options: [{
|
|
414
414
|
id: "Open",
|
|
415
|
-
label: () =>
|
|
415
|
+
label: () => Dt("dialog.open")
|
|
416
416
|
}, "Cancel"],
|
|
417
417
|
defaultOption: "Cancel"
|
|
418
418
|
}), n = async (e = null) => {
|
|
@@ -435,14 +435,14 @@ function zt(e, t) {
|
|
|
435
435
|
const r = "string" == typeof e ? void 0 : e?.title;
|
|
436
436
|
if (!o) {
|
|
437
437
|
const e = await i.showInput({
|
|
438
|
-
title:
|
|
439
|
-
description:
|
|
440
|
-
inputLabel:
|
|
438
|
+
title: Dt("dialog.openFromWeb.title"),
|
|
439
|
+
description: Dt("dialog.openFromWeb.description"),
|
|
440
|
+
inputLabel: Dt("dialog.webAddress.inputLabel"),
|
|
441
441
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
442
442
|
propsInput: { style: { minWidth: "440px" } },
|
|
443
443
|
options: [{
|
|
444
444
|
id: "Open",
|
|
445
|
-
label: () =>
|
|
445
|
+
label: () => Dt("dialog.open")
|
|
446
446
|
}]
|
|
447
447
|
});
|
|
448
448
|
if ("Open" !== e.option) return;
|
|
@@ -462,9 +462,9 @@ function zt(e, t) {
|
|
|
462
462
|
l = !0, s && (s.current = null);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
var
|
|
465
|
+
var Vt = ze(xt("studio:shortcutKeysDialog", () => import("./BjpAc-kSpia0lwjr.mjs")).load);
|
|
466
466
|
y(), x();
|
|
467
|
-
var
|
|
467
|
+
var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
468
468
|
const t = (e) => {
|
|
469
469
|
if ("function" != typeof e) return e;
|
|
470
470
|
try {
|
|
@@ -474,9 +474,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
474
474
|
}
|
|
475
475
|
}, o = (e, o) => {
|
|
476
476
|
const r = t(e);
|
|
477
|
-
return "string" == typeof r ?
|
|
477
|
+
return "string" == typeof r ? vt(r, o, kt.getActive()) : void 0;
|
|
478
478
|
}, r = [];
|
|
479
|
-
for (const n of e.names()) if (!
|
|
479
|
+
for (const n of e.names()) if (!Ut.has(n)) for (const a of e.keys(n)) {
|
|
480
480
|
const i = e.resolveDefinition(n, a);
|
|
481
481
|
r.push({
|
|
482
482
|
groupKey: n,
|
|
@@ -491,22 +491,22 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
return { getAllCommands: () => r };
|
|
494
|
-
},
|
|
495
|
-
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = q.useCommandScope(), c =
|
|
494
|
+
}, qt = (e) => {
|
|
495
|
+
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = q.useCommandScope(), c = he(), { showModal: d } = qe(), p = ye(), u = We(a);
|
|
496
496
|
u.current = a;
|
|
497
|
-
const m =
|
|
497
|
+
const m = ce(() => {
|
|
498
498
|
const e = l?.getRoot().getRegistry();
|
|
499
499
|
if (!e) return;
|
|
500
|
-
const t = d(
|
|
500
|
+
const t = d(Vt, {
|
|
501
501
|
title: p("dialog.shortcutKeys.title"),
|
|
502
|
-
commands:
|
|
502
|
+
commands: Gt(e),
|
|
503
503
|
onDone: () => t.hide(),
|
|
504
504
|
onLoadError: (e) => {
|
|
505
505
|
t.destroy(), c.showError(e);
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
}, [l, d]);
|
|
509
|
-
|
|
509
|
+
Te(() => {
|
|
510
510
|
if (!l) return;
|
|
511
511
|
const e = l.getRoot().contribution();
|
|
512
512
|
return function(e, t) {
|
|
@@ -522,8 +522,8 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
522
522
|
} });
|
|
523
523
|
}(e, { showShortcuts: m }), () => e.remove();
|
|
524
524
|
}, [l, m]);
|
|
525
|
-
const g =
|
|
526
|
-
|
|
525
|
+
const g = mt("(prefers-color-scheme: dark)"), { themeMode: h } = ke(), [f, k] = fe(N.Mode, I[N.Mode]), [b, y] = fe(N.DarkGrid, I[N.DarkGrid]), [w, x] = fe(N.DarkImages, I[N.DarkImages]);
|
|
526
|
+
Te(() => {
|
|
527
527
|
if (!l) return;
|
|
528
528
|
const e = l.getRoot().contribution();
|
|
529
529
|
return function(e, t) {
|
|
@@ -564,10 +564,10 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
564
564
|
y,
|
|
565
565
|
x
|
|
566
566
|
]);
|
|
567
|
-
const [v, C] =
|
|
568
|
-
|
|
569
|
-
v && v !==
|
|
570
|
-
}, [v]),
|
|
567
|
+
const [v, C] = fe(J.Active, null), [D, S] = Fe(() => kt.getActive());
|
|
568
|
+
Te(() => kt.addChangeListener(S), []), Te(() => {
|
|
569
|
+
v && v !== kt.getActive() && kt.setActive(v);
|
|
570
|
+
}, [v]), Te(() => {
|
|
571
571
|
if (!l) return;
|
|
572
572
|
const e = l.getRoot().contribution();
|
|
573
573
|
return function(e, t) {
|
|
@@ -588,14 +588,14 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
588
588
|
D,
|
|
589
589
|
C
|
|
590
590
|
]);
|
|
591
|
-
const T =
|
|
592
|
-
|
|
591
|
+
const T = Ee(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = de({ target: T });
|
|
592
|
+
Te(() => {
|
|
593
593
|
if (!l) return;
|
|
594
594
|
const e = l.getRoot().contribution();
|
|
595
595
|
return function(e, t) {
|
|
596
596
|
e.updateCommand("fullScreenToggle", {
|
|
597
597
|
state: t.isFullscreenEnabled,
|
|
598
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
598
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [Ct("reason.fullscreenUnavailable")],
|
|
599
599
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
600
600
|
callback: () => {
|
|
601
601
|
t.toggleFullscreen();
|
|
@@ -613,7 +613,7 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
613
613
|
F
|
|
614
614
|
]);
|
|
615
615
|
const P = H(!0);
|
|
616
|
-
return
|
|
616
|
+
return Te(() => {
|
|
617
617
|
if (!l) return;
|
|
618
618
|
const e = l.getRoot().contribution();
|
|
619
619
|
return function(e, t) {
|
|
@@ -624,9 +624,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
}(e, (e, t) => P.activate(e, t)), () => e.remove();
|
|
627
|
-
}, [l, P]),
|
|
627
|
+
}, [l, P]), Te(() => {
|
|
628
628
|
if (!l || !o) return;
|
|
629
|
-
const e = l.getRoot().contribution(), t =
|
|
629
|
+
const e = l.getRoot().contribution(), t = Ht(e, {
|
|
630
630
|
workbook: o,
|
|
631
631
|
setWorkbook: r,
|
|
632
632
|
workbookTitle: n ?? void 0,
|
|
@@ -646,9 +646,9 @@ var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
646
646
|
i
|
|
647
647
|
]), t;
|
|
648
648
|
};
|
|
649
|
-
|
|
650
|
-
var
|
|
651
|
-
const t = q.useCommandResolver(), o =
|
|
649
|
+
qt.displayName = "StudioCommandProvider";
|
|
650
|
+
var Xt = ({ renderWorkbook: e }) => {
|
|
651
|
+
const t = q.useCommandResolver(), o = We(null), r = ye(), [n, a] = Fe(null), i = Se((e) => {
|
|
652
652
|
const o = e.dataTransfer;
|
|
653
653
|
if (t && o) {
|
|
654
654
|
if ("dragenter" === e.type || "dragover" === e.type) {
|
|
@@ -665,7 +665,7 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
665
665
|
}
|
|
666
666
|
e.preventDefault();
|
|
667
667
|
}
|
|
668
|
-
}, [t]), s =
|
|
668
|
+
}, [t]), s = ce((e) => {
|
|
669
669
|
e.preventDefault();
|
|
670
670
|
const r = n;
|
|
671
671
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -695,10 +695,10 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
695
695
|
n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
}, [t, n]), l =
|
|
698
|
+
}, [t, n]), l = Ee(() => {
|
|
699
699
|
if (!n) return null;
|
|
700
700
|
const e = "insertImage" === n;
|
|
701
|
-
return
|
|
701
|
+
return Ze(Qe, {
|
|
702
702
|
className: "drop-overlay",
|
|
703
703
|
sx: {
|
|
704
704
|
position: "absolute",
|
|
@@ -709,12 +709,12 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
709
709
|
display: "flex",
|
|
710
710
|
justifyContent: "center",
|
|
711
711
|
alignItems: "center",
|
|
712
|
-
backgroundColor: (e) =>
|
|
712
|
+
backgroundColor: (e) => ut(e.palette.primary.main, .46),
|
|
713
713
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
714
714
|
outlineOffset: "-6px",
|
|
715
715
|
borderRadius: 2
|
|
716
716
|
},
|
|
717
|
-
children:
|
|
717
|
+
children: Je(it, {
|
|
718
718
|
elevation: 6,
|
|
719
719
|
sx: {
|
|
720
720
|
display: "flex",
|
|
@@ -726,11 +726,11 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
726
726
|
color: "text.primary",
|
|
727
727
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
728
728
|
},
|
|
729
|
-
children: [
|
|
729
|
+
children: [Ze(Z, {
|
|
730
730
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
731
731
|
className: "drop-overlay-icon",
|
|
732
732
|
size: 32
|
|
733
|
-
}),
|
|
733
|
+
}), Ze(pt, {
|
|
734
734
|
variant: "h6",
|
|
735
735
|
component: "span",
|
|
736
736
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -738,7 +738,7 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
738
738
|
})
|
|
739
739
|
});
|
|
740
740
|
}, [n, r]);
|
|
741
|
-
return
|
|
741
|
+
return Je(Ye, { children: [e({
|
|
742
742
|
ref: o,
|
|
743
743
|
onDragStart: (e) => {
|
|
744
744
|
if (e.target.src) {
|
|
@@ -751,52 +751,52 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
751
751
|
onDragOver: i,
|
|
752
752
|
onDrop: s
|
|
753
753
|
}), l] });
|
|
754
|
-
},
|
|
754
|
+
}, Yt = De((e) => {
|
|
755
755
|
const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
|
|
756
|
-
return
|
|
756
|
+
return Ze(D, {
|
|
757
757
|
initialAnchor: s,
|
|
758
|
-
children:
|
|
758
|
+
children: Ze(qt, {
|
|
759
759
|
workbook: t,
|
|
760
760
|
setWorkbook: o,
|
|
761
761
|
workbookTitle: n,
|
|
762
762
|
isDirty: i,
|
|
763
763
|
refSave: c,
|
|
764
764
|
fullscreenTarget: d,
|
|
765
|
-
children:
|
|
765
|
+
children: Ze(Xt, { renderWorkbook: l })
|
|
766
766
|
})
|
|
767
767
|
});
|
|
768
768
|
});
|
|
769
|
-
|
|
770
|
-
var
|
|
771
|
-
sort:
|
|
772
|
-
hyperlink:
|
|
773
|
-
find:
|
|
774
|
-
tableNew:
|
|
775
|
-
pivotTableNew:
|
|
776
|
-
sparklineNew:
|
|
777
|
-
sparklineEdit:
|
|
778
|
-
namedDetails:
|
|
779
|
-
insertFunction:
|
|
780
|
-
resizeHeader:
|
|
781
|
-
outlineSettings:
|
|
782
|
-
fillSeries:
|
|
783
|
-
workbookStatistics:
|
|
784
|
-
password:
|
|
785
|
-
pivotValueSettings:
|
|
786
|
-
},
|
|
787
|
-
const { children: t } = e, o =
|
|
769
|
+
Yt.displayName = "CommandsWrapper";
|
|
770
|
+
var Zt = {
|
|
771
|
+
sort: xt("studio:sortDialog", () => import("./Dg5D5zMNzygUWk51.mjs")).load,
|
|
772
|
+
hyperlink: xt("studio:hyperlinkDialog", () => import("./Caf_ZRpLHj97cmhq.mjs")).load,
|
|
773
|
+
find: xt("studio:findReplaceWindow", () => import("./DLQ1x8uASVrHgCX2.mjs")).load,
|
|
774
|
+
tableNew: xt("studio:tableNewDialog", () => import("./wC3tHWypFfvBG8Fu.mjs")).load,
|
|
775
|
+
pivotTableNew: xt("studio:pivotTableNewDialog", () => import("./Dj16Fzha7o7DGv6z.mjs")).load,
|
|
776
|
+
sparklineNew: xt("studio:sparklineNewDialog", () => import("./Bzi3tHPQ3b7BGbwU.mjs")).load,
|
|
777
|
+
sparklineEdit: xt("studio:sparklineEditDialog", () => import("./CcLCu4TIukHypMCt.mjs")).load,
|
|
778
|
+
namedDetails: xt("studio:namedReferenceDialog", () => import("./eCWrCiaQxjPKI08p.mjs")).load,
|
|
779
|
+
insertFunction: xt("studio:insertFunctionDialog", () => import("./G7AEbATGEFC09W8Z.mjs")).load,
|
|
780
|
+
resizeHeader: xt("studio:resizeHeaderDialog", () => import("./CTsTUI34q8TBkdX5.mjs")).load,
|
|
781
|
+
outlineSettings: xt("studio:outlineSettingsDialog", () => import("./DomLgHu8aLIg6y2l.mjs")).load,
|
|
782
|
+
fillSeries: xt("studio:fillSeriesDialog", () => import("./BuDVpL6sgPNGIN7T.mjs")).load,
|
|
783
|
+
workbookStatistics: xt("studio:workbookStatisticsDialog", () => import("./BNJBkYIYk2zyHoU3.mjs")).load,
|
|
784
|
+
password: xt("studio:passwordDialog", () => import("./CbE22c6PmT_9BusX.mjs")).load,
|
|
785
|
+
pivotValueSettings: xt("studio:pivotValueSettingsDialog", () => import("./DrBGMrwOCXerStOS.mjs")).load
|
|
786
|
+
}, Jt = ["find"], Qt = De((e) => {
|
|
787
|
+
const { children: t } = e, o = At(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = We(/* @__PURE__ */ new Set()), i = We(null), s = We(null), [l, c] = Fe({
|
|
788
788
|
label: null,
|
|
789
789
|
progress: null
|
|
790
|
-
}), d =
|
|
791
|
-
|
|
790
|
+
}), d = ye(), p = ht.EmptyObject, u = Ge(p), m = Xe(p), g = Ue(p), h = We(!1);
|
|
791
|
+
Te(() => {
|
|
792
792
|
if (h.current) return;
|
|
793
793
|
h.current = !0;
|
|
794
794
|
const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
795
|
-
for (const e of
|
|
795
|
+
for (const e of Jt) u(e, Zt[e], { prewarm: !0 }).catch(() => {});
|
|
796
796
|
});
|
|
797
797
|
return () => o(r);
|
|
798
798
|
}, []);
|
|
799
|
-
const f =
|
|
799
|
+
const f = We(/* @__PURE__ */ new Set()), k = Ee(() => {
|
|
800
800
|
const e = (e, t) => {
|
|
801
801
|
if (t?.onceKey) {
|
|
802
802
|
if (f.current.has(t.onceKey)) return;
|
|
@@ -811,9 +811,9 @@ var Yt = {
|
|
|
811
811
|
},
|
|
812
812
|
preventDuplicate: t?.preventDuplicate,
|
|
813
813
|
persist: t?.persist ?? t?.type === Q.Error,
|
|
814
|
-
action: (e) =>
|
|
814
|
+
action: (e) => Ze(at, {
|
|
815
815
|
onClick: () => n(e),
|
|
816
|
-
children:
|
|
816
|
+
children: Ze(Z, { iconKey: "Cancel" })
|
|
817
817
|
})
|
|
818
818
|
};
|
|
819
819
|
t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
|
|
@@ -826,8 +826,8 @@ var Yt = {
|
|
|
826
826
|
...t,
|
|
827
827
|
label: e
|
|
828
828
|
});
|
|
829
|
-
const r =
|
|
830
|
-
a.current.delete(o) && (a.current.size > 0 || (
|
|
829
|
+
const r = le(() => {
|
|
830
|
+
a.current.delete(o) && (a.current.size > 0 || (_e(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
|
|
831
831
|
label: null,
|
|
832
832
|
progress: null
|
|
833
833
|
})));
|
|
@@ -838,11 +838,11 @@ var Yt = {
|
|
|
838
838
|
progress: o
|
|
839
839
|
});
|
|
840
840
|
}, (e) => {
|
|
841
|
-
s.current = e, "string" == typeof e ?
|
|
841
|
+
s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
|
|
842
842
|
...t,
|
|
843
843
|
label: e
|
|
844
844
|
}));
|
|
845
|
-
}), n =
|
|
845
|
+
}), n = Ve(i.current, "string" == typeof e ? e : void 0);
|
|
846
846
|
return n ? n.then(() => r) : r;
|
|
847
847
|
},
|
|
848
848
|
showWindow: (e, t) => {
|
|
@@ -852,22 +852,22 @@ var Yt = {
|
|
|
852
852
|
onKeyDown: (e) => {
|
|
853
853
|
e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
|
|
854
854
|
}
|
|
855
|
-
}, u(e,
|
|
855
|
+
}, u(e, Zt[e], t);
|
|
856
856
|
},
|
|
857
857
|
showOptions: m,
|
|
858
858
|
showInput: g,
|
|
859
859
|
showError: (t) => {
|
|
860
860
|
let o, r = Q.Error, n = d("error.unknown");
|
|
861
|
-
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof
|
|
861
|
+
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof wt && (r = Q.Info), e(n, {
|
|
862
862
|
type: r,
|
|
863
863
|
enqueueProps: { error: o }
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
|
-
}, [d]), b =
|
|
867
|
+
}, [d]), b = Ee(() => Ze(Ae, {
|
|
868
868
|
ref: i,
|
|
869
869
|
autoStart: !1,
|
|
870
|
-
icon:
|
|
870
|
+
icon: Ze(Pe, { sx: {
|
|
871
871
|
transform: "scale(0.7)",
|
|
872
872
|
marginLeft: "-6px"
|
|
873
873
|
} }),
|
|
@@ -884,19 +884,19 @@ var Yt = {
|
|
|
884
884
|
pointerEvents: "none"
|
|
885
885
|
}
|
|
886
886
|
}), [l.label, l.progress]);
|
|
887
|
-
return
|
|
887
|
+
return Je(te, {
|
|
888
888
|
notifier: k,
|
|
889
889
|
children: [b, t]
|
|
890
890
|
});
|
|
891
891
|
});
|
|
892
|
-
|
|
893
|
-
var
|
|
894
|
-
const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = S, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g =
|
|
892
|
+
Qt.displayName = "StudioNotifierProvider";
|
|
893
|
+
var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", to = De(ve((e, t) => {
|
|
894
|
+
const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = S, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = me(), h = Ee(() => n.map((t) => {
|
|
895
895
|
const o = s.getRegisteredTaskPane(t);
|
|
896
896
|
if (!o) return null;
|
|
897
897
|
let r = o.getIcon?.();
|
|
898
|
-
"string" == typeof r && (r =
|
|
899
|
-
const n = t === i, a = r ?
|
|
898
|
+
"string" == typeof r && (r = Ze(Z, { iconKey: r }));
|
|
899
|
+
const n = t === i, a = r ? Ze(Qe, {
|
|
900
900
|
sx: {
|
|
901
901
|
display: "inline-block",
|
|
902
902
|
transform: m ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -904,20 +904,20 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
904
904
|
color: (e) => e.palette.text.secondary
|
|
905
905
|
},
|
|
906
906
|
children: r
|
|
907
|
-
}) : null, l = !r || !c && n, d =
|
|
907
|
+
}) : null, l = !r || !c && n, d = Ze(Qe, {
|
|
908
908
|
sx: {
|
|
909
909
|
display: "grid",
|
|
910
910
|
gridTemplateColumns: l ? "1fr" : "0fr",
|
|
911
911
|
opacity: l ? 1 : 0,
|
|
912
912
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
913
913
|
},
|
|
914
|
-
children:
|
|
914
|
+
children: Ze(Qe, {
|
|
915
915
|
sx: {
|
|
916
916
|
overflow: "hidden",
|
|
917
917
|
minWidth: 0,
|
|
918
918
|
minHeight: 0
|
|
919
919
|
},
|
|
920
|
-
children:
|
|
920
|
+
children: Ze(pt, {
|
|
921
921
|
component: "div",
|
|
922
922
|
sx: {
|
|
923
923
|
textTransform: "none",
|
|
@@ -930,13 +930,13 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
930
930
|
})
|
|
931
931
|
})
|
|
932
932
|
});
|
|
933
|
-
return
|
|
933
|
+
return Ze(lt, {
|
|
934
934
|
value: t,
|
|
935
|
-
label:
|
|
935
|
+
label: Ze(Le, {
|
|
936
936
|
disableInteractive: !0,
|
|
937
937
|
title: o.getTitle() ?? "",
|
|
938
938
|
placement: "left-start",
|
|
939
|
-
children:
|
|
939
|
+
children: Je(Qe, {
|
|
940
940
|
sx: {
|
|
941
941
|
padding: "0px 0px",
|
|
942
942
|
writingMode: m ? "vertical-lr" : "vertical-rl",
|
|
@@ -956,7 +956,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
956
956
|
minHeight: "0px",
|
|
957
957
|
borderRadius: "4px"
|
|
958
958
|
},
|
|
959
|
-
className:
|
|
959
|
+
className: St("taskpane-strip-item", { "Mui-selected": n }),
|
|
960
960
|
onClick: () => e.onSelect(t)
|
|
961
961
|
}, t);
|
|
962
962
|
}), [
|
|
@@ -967,8 +967,8 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
967
967
|
m,
|
|
968
968
|
c,
|
|
969
969
|
g
|
|
970
|
-
]), f =
|
|
971
|
-
return
|
|
970
|
+
]), f = pe(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Ee(() => St("taskpane-strip", p), [p]);
|
|
971
|
+
return Ze(Qe, {
|
|
972
972
|
ref: f,
|
|
973
973
|
className: k,
|
|
974
974
|
sx: {
|
|
@@ -978,7 +978,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
978
978
|
...l
|
|
979
979
|
},
|
|
980
980
|
...u,
|
|
981
|
-
children:
|
|
981
|
+
children: Ze(ct, {
|
|
982
982
|
orientation: "vertical",
|
|
983
983
|
variant: "scrollable",
|
|
984
984
|
value: i,
|
|
@@ -996,10 +996,10 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
996
996
|
children: h
|
|
997
997
|
})
|
|
998
998
|
});
|
|
999
|
-
})),
|
|
1000
|
-
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s =
|
|
1001
|
-
return
|
|
1002
|
-
className:
|
|
999
|
+
})), oo = (e) => {
|
|
1000
|
+
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = We(null), l = ye();
|
|
1001
|
+
return Ze(nt, {
|
|
1002
|
+
className: St({ "Mui-selected": a }),
|
|
1003
1003
|
sx: {
|
|
1004
1004
|
display: "flex",
|
|
1005
1005
|
flex: "1 1 %0",
|
|
@@ -1013,11 +1013,11 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1013
1013
|
opacity: 1,
|
|
1014
1014
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
1015
1015
|
},
|
|
1016
|
-
backgroundColor: (e) =>
|
|
1017
|
-
borderBottom: `solid ${
|
|
1016
|
+
backgroundColor: (e) => ut(e.palette.action.hover, .03),
|
|
1017
|
+
borderBottom: `solid ${eo} 1px`
|
|
1018
1018
|
},
|
|
1019
1019
|
...i,
|
|
1020
|
-
children:
|
|
1020
|
+
children: Je(Qe, {
|
|
1021
1021
|
sx: {
|
|
1022
1022
|
display: "flex",
|
|
1023
1023
|
flex: "1 1 10%",
|
|
@@ -1028,15 +1028,15 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1028
1028
|
marginLeft: (e) => e.spacing(1),
|
|
1029
1029
|
marginRight: (e) => e.spacing(1)
|
|
1030
1030
|
},
|
|
1031
|
-
children: [
|
|
1031
|
+
children: [Ze(Qe, {
|
|
1032
1032
|
sx: {
|
|
1033
1033
|
flex: "1 1 100%",
|
|
1034
1034
|
paddingLeft: (e) => e.spacing(1)
|
|
1035
1035
|
},
|
|
1036
1036
|
children: t
|
|
1037
|
-
}),
|
|
1037
|
+
}), Ze(Oe, {
|
|
1038
1038
|
label: l("taskPane.close"),
|
|
1039
|
-
children:
|
|
1039
|
+
children: Ze(at, {
|
|
1040
1040
|
"aria-label": "close",
|
|
1041
1041
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1042
1042
|
touchRippleRef: s,
|
|
@@ -1046,14 +1046,14 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1046
1046
|
onPointerUp: () => {
|
|
1047
1047
|
r();
|
|
1048
1048
|
},
|
|
1049
|
-
children:
|
|
1049
|
+
children: Ze(Z, { iconKey: "Close" })
|
|
1050
1050
|
})
|
|
1051
1051
|
})]
|
|
1052
1052
|
})
|
|
1053
1053
|
});
|
|
1054
|
-
},
|
|
1055
|
-
const { model: o, side: r, ...n } = e, a =
|
|
1056
|
-
return
|
|
1054
|
+
}, ro = ve((e, t) => {
|
|
1055
|
+
const { model: o, side: r, ...n } = e, a = gt(), i = `solid ${eo} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
|
|
1056
|
+
return Ze(F, {
|
|
1057
1057
|
model: o,
|
|
1058
1058
|
ref: t,
|
|
1059
1059
|
propsFrame: { style: {
|
|
@@ -1062,8 +1062,8 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1062
1062
|
marginBottom: l
|
|
1063
1063
|
} },
|
|
1064
1064
|
alwaysShowStrip: !0,
|
|
1065
|
-
componentTitle:
|
|
1066
|
-
componentStrip:
|
|
1065
|
+
componentTitle: oo,
|
|
1066
|
+
componentStrip: to,
|
|
1067
1067
|
side: r,
|
|
1068
1068
|
...e,
|
|
1069
1069
|
onOpen: () => {
|
|
@@ -1074,12 +1074,12 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1074
1074
|
},
|
|
1075
1075
|
...n
|
|
1076
1076
|
});
|
|
1077
|
-
}),
|
|
1077
|
+
}), no = "_styled-resizer_li52w_3", ao = {}, io = {
|
|
1078
1078
|
flex: "1 1 100%",
|
|
1079
1079
|
display: "flex",
|
|
1080
1080
|
boxSizing: "border-box"
|
|
1081
|
-
},
|
|
1082
|
-
const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] =
|
|
1081
|
+
}, so = De(ve((e, t) => {
|
|
1082
|
+
const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = fe(a ?? null, ao), m = gt(), [g, { width: h }] = ge(), f = h > 530 || 0 === h, k = We(null);
|
|
1083
1083
|
let b, y, w = null, x = 4, v = 13;
|
|
1084
1084
|
f ? w = "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" : (w = "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, v = 4);
|
|
1085
1085
|
let C, D = o, S = r;
|
|
@@ -1119,23 +1119,23 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1119
1119
|
minAfter: f ? "280px" : "120px",
|
|
1120
1120
|
splitDirection: f ? "row" : "column"
|
|
1121
1121
|
});
|
|
1122
|
-
const N =
|
|
1122
|
+
const N = Et([
|
|
1123
1123
|
k,
|
|
1124
1124
|
g,
|
|
1125
1125
|
t
|
|
1126
1126
|
]);
|
|
1127
|
-
return
|
|
1127
|
+
return Ze(ae, {
|
|
1128
1128
|
ref: N,
|
|
1129
1129
|
className: s,
|
|
1130
1130
|
style: l ? {
|
|
1131
|
-
...
|
|
1131
|
+
...io,
|
|
1132
1132
|
...l
|
|
1133
|
-
} :
|
|
1133
|
+
} : io,
|
|
1134
1134
|
...d,
|
|
1135
1135
|
...C,
|
|
1136
1136
|
onPositionChange: I,
|
|
1137
1137
|
propsResizer: {
|
|
1138
|
-
className:
|
|
1138
|
+
className: St("styled-resizer", no),
|
|
1139
1139
|
style: {
|
|
1140
1140
|
minWidth: f ? "7px" : void 0,
|
|
1141
1141
|
minHeight: f ? void 0 : "6px",
|
|
@@ -1150,15 +1150,15 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1150
1150
|
propsPaneAfter: y
|
|
1151
1151
|
});
|
|
1152
1152
|
}));
|
|
1153
|
-
|
|
1154
|
-
var
|
|
1153
|
+
so.displayName = "StudioSplitPane";
|
|
1154
|
+
var lo = () => Ze("div", { style: {
|
|
1155
1155
|
flex: "none",
|
|
1156
1156
|
height: 0,
|
|
1157
1157
|
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
1158
|
-
} }),
|
|
1159
|
-
const o = (e) =>
|
|
1158
|
+
} }), co = (e, t) => {
|
|
1159
|
+
const o = (e) => Ze(we.Fragment, { children: t[e] }, e);
|
|
1160
1160
|
if ("bottom" === e) {
|
|
1161
|
-
const e = t.statusBar && t.formulaBar ?
|
|
1161
|
+
const e = t.statusBar && t.formulaBar ? Ze(lo, {}, "divider") : null;
|
|
1162
1162
|
return [
|
|
1163
1163
|
o("toolbar"),
|
|
1164
1164
|
o("main"),
|
|
@@ -1173,41 +1173,41 @@ var so = () => Ye("div", { style: {
|
|
|
1173
1173
|
o("main"),
|
|
1174
1174
|
o("statusBar")
|
|
1175
1175
|
];
|
|
1176
|
-
},
|
|
1176
|
+
}, po = (e) => {
|
|
1177
1177
|
const { groups: t } = e;
|
|
1178
|
-
return
|
|
1178
|
+
return Ze(Qe, {
|
|
1179
1179
|
role: "menu",
|
|
1180
1180
|
sx: {
|
|
1181
1181
|
paddingTop: "4px",
|
|
1182
1182
|
paddingBottom: "4px"
|
|
1183
1183
|
},
|
|
1184
|
-
children: t.map((e, t) =>
|
|
1184
|
+
children: t.map((e, t) => Je(xe, { children: [t > 0 ? Ze(Ne, { orientation: "horizontal" }) : null, e.map((e) => Ze(je, {
|
|
1185
1185
|
role: void 0 === e.checked ? "menuitem" : "menuitemradio",
|
|
1186
1186
|
"aria-checked": e.checked,
|
|
1187
1187
|
disabled: e.disabled,
|
|
1188
1188
|
selected: e.checked,
|
|
1189
|
-
icon: e.checked ?
|
|
1189
|
+
icon: e.checked ? Ze(Me, {}) : void 0,
|
|
1190
1190
|
onClick: e.run,
|
|
1191
1191
|
children: e.label
|
|
1192
1192
|
}, e.key))] }, t))
|
|
1193
1193
|
});
|
|
1194
|
-
},
|
|
1195
|
-
const { pivot: t, name: o, source: r, onError: n } = e, s =
|
|
1194
|
+
}, uo = (e) => Ze(po, { ...e }), mo = (e) => {
|
|
1195
|
+
const { pivot: t, name: o, source: r, onError: n } = e, s = ye(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Ee(() => ({ scope: l.getName() }), [l]), p = ce((e, o) => {
|
|
1196
1196
|
"accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
|
|
1197
|
-
}, [t, n]), u =
|
|
1198
|
-
if (0 === e.length || e.length > 255) throw new
|
|
1197
|
+
}, [t, n]), u = ce((e) => {
|
|
1198
|
+
if (0 === e.length || e.length > 255) throw new yt(s("error.pivotTable.nameInvalid"));
|
|
1199
1199
|
const o = l.getPivotTables().getByName(e);
|
|
1200
|
-
if (o && o.getName() !== t.getName()) throw new
|
|
1200
|
+
if (o && o.getName() !== t.getName()) throw new yt(s("error.pivotTable.nameExists"));
|
|
1201
1201
|
}, [
|
|
1202
1202
|
l,
|
|
1203
1203
|
t,
|
|
1204
1204
|
s
|
|
1205
|
-
]), m =
|
|
1205
|
+
]), m = ce((e, o) => {
|
|
1206
1206
|
if ("accept" !== o.reason) return;
|
|
1207
|
-
const r =
|
|
1207
|
+
const r = $t(e);
|
|
1208
1208
|
r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
|
|
1209
1209
|
}, [t, n]);
|
|
1210
|
-
return
|
|
1210
|
+
return Je(Qe, {
|
|
1211
1211
|
className: "sxl-pivot-table-header",
|
|
1212
1212
|
sx: {
|
|
1213
1213
|
display: "flex",
|
|
@@ -1215,14 +1215,14 @@ var so = () => Ye("div", { style: {
|
|
|
1215
1215
|
rowGap: (e) => e.spacing(1),
|
|
1216
1216
|
paddingTop: (e) => e.spacing(1)
|
|
1217
1217
|
},
|
|
1218
|
-
children: [
|
|
1218
|
+
children: [Ze(i, {
|
|
1219
1219
|
formName: "name",
|
|
1220
1220
|
value: o,
|
|
1221
1221
|
changeOn: "done",
|
|
1222
1222
|
onDone: p,
|
|
1223
1223
|
onValidate: u,
|
|
1224
1224
|
disabled: c
|
|
1225
|
-
}),
|
|
1225
|
+
}), Ze(a, {
|
|
1226
1226
|
grammar: "reference",
|
|
1227
1227
|
formName: "source",
|
|
1228
1228
|
label: s("pivotTableNew.source"),
|
|
@@ -1235,18 +1235,18 @@ var so = () => Ye("div", { style: {
|
|
|
1235
1235
|
disabled: c || null === r
|
|
1236
1236
|
})]
|
|
1237
1237
|
});
|
|
1238
|
-
},
|
|
1239
|
-
renderMenu:
|
|
1238
|
+
}, go = (e) => Ze(mo, { ...e }), ho = (e) => Ze(E, {
|
|
1239
|
+
renderMenu: uo,
|
|
1240
1240
|
renderFilter: g,
|
|
1241
|
-
renderHeader:
|
|
1241
|
+
renderHeader: go,
|
|
1242
1242
|
...e
|
|
1243
|
-
}),
|
|
1244
|
-
EagerStudio: () =>
|
|
1245
|
-
default: () =>
|
|
1243
|
+
}), fo = He(xt("studio:dataValidationDetailsTaskPane", () => import("./BML2jZO-vGc6RS51.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ko = It({
|
|
1244
|
+
EagerStudio: () => xo,
|
|
1245
|
+
default: () => xo
|
|
1246
1246
|
});
|
|
1247
1247
|
d(), S.registerTaskPane({
|
|
1248
1248
|
key: A.PivotTable,
|
|
1249
|
-
component:
|
|
1249
|
+
component: ho
|
|
1250
1250
|
}, !0), (() => {
|
|
1251
1251
|
X.register({
|
|
1252
1252
|
key: "changeShapeGallery",
|
|
@@ -1254,14 +1254,14 @@ d(), S.registerTaskPane({
|
|
|
1254
1254
|
order: -1,
|
|
1255
1255
|
divider: "after"
|
|
1256
1256
|
} },
|
|
1257
|
-
render: (e) =>
|
|
1257
|
+
render: (e) => Ze(C, {
|
|
1258
1258
|
...e,
|
|
1259
1259
|
commandKey: "changeShape",
|
|
1260
|
-
excludeCategories:
|
|
1260
|
+
excludeCategories: Rt
|
|
1261
1261
|
})
|
|
1262
1262
|
}, !0);
|
|
1263
|
-
L("shape", () => import("./
|
|
1264
|
-
})(), L("chart", () => import("./
|
|
1263
|
+
L("shape", () => import("./DY96atQfGYmZ90TD.mjs").then((e) => e.ShapeFormatPanel));
|
|
1264
|
+
})(), L("chart", () => import("./C4qWN7D3UW8jLaZK.mjs").then((e) => e.ChartFormatPanel)), (() => {
|
|
1265
1265
|
const e = q.DefaultCommandButtonRegistry, t = [];
|
|
1266
1266
|
t.push(e.register({
|
|
1267
1267
|
key: "changePictureOptions",
|
|
@@ -1299,10 +1299,10 @@ d(), S.registerTaskPane({
|
|
|
1299
1299
|
members: [
|
|
1300
1300
|
{
|
|
1301
1301
|
key: "cropToShapeGallery",
|
|
1302
|
-
render: (e) =>
|
|
1302
|
+
render: (e) => Ze(C, {
|
|
1303
1303
|
...e,
|
|
1304
1304
|
commandKey: "cropToShape",
|
|
1305
|
-
excludeCategories:
|
|
1305
|
+
excludeCategories: Rt
|
|
1306
1306
|
})
|
|
1307
1307
|
},
|
|
1308
1308
|
"cropAspectOptions",
|
|
@@ -1317,12 +1317,12 @@ d(), S.registerTaskPane({
|
|
|
1317
1317
|
}, !0));
|
|
1318
1318
|
})(), c(), S.registerTaskPane({
|
|
1319
1319
|
key: A.DataValidation,
|
|
1320
|
-
component:
|
|
1320
|
+
component: fo
|
|
1321
1321
|
}, !0), S.registerTaskPane({
|
|
1322
1322
|
key: A.ConditionalFormat,
|
|
1323
|
-
component:
|
|
1323
|
+
component: Nt
|
|
1324
1324
|
}, !0), l(), s(), r(), t(), e(), n(), w();
|
|
1325
|
-
var
|
|
1325
|
+
var bo = () => {
|
|
1326
1326
|
let e, t;
|
|
1327
1327
|
const o = new Promise((o, r) => {
|
|
1328
1328
|
e = o, t = r;
|
|
@@ -1337,147 +1337,147 @@ var ko = () => {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
1339
|
return o.catch(() => {}), r;
|
|
1340
|
-
},
|
|
1340
|
+
}, yo = (e, t) => {
|
|
1341
1341
|
if (!e) return {};
|
|
1342
1342
|
const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
|
|
1343
|
-
return n && "object" == typeof n ?
|
|
1344
|
-
},
|
|
1345
|
-
const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: c, onDocumentError: d, renderDocumentError: g = k, propsDocumentError: f, propsTaskPaneArea: y, renderTaskPaneArea: w =
|
|
1346
|
-
|
|
1347
|
-
}, []),
|
|
1348
|
-
|
|
1349
|
-
const
|
|
1350
|
-
light:
|
|
1351
|
-
dark:
|
|
1343
|
+
return n && "object" == typeof n ? ht.deepMerge(r, n) : r;
|
|
1344
|
+
}, wo = "taskPanePosition", xo = De(ve((e, t) => {
|
|
1345
|
+
const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: c, onDocumentError: d, renderDocumentError: g = k, propsDocumentError: f, propsTaskPaneArea: y, renderTaskPaneArea: w = vo, taskPaneSide: x = "right", onKeyDown: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: L, cssBaseline: H, autoFocus: X = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: le = b, propsDocumentLoading: de, propsWorkbook: me, showFormulaBar: ge, propsFormulaBar: he, renderFormulaBar: ye, formulaBarPlacement: we, virtualKeyboard: xe = "float", editable: ve, showStatusBar: Ce, propsStatusBar: De, renderStatusBar: Ae, propsToolbar: Pe, renderToolbar: Ne } = e, je = We(null), Oe = We(null), Me = We(null), Le = ce(() => {
|
|
1346
|
+
Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
1347
|
+
}, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(we), _e = "bottom" === Be ? xe : "none", { inset: ze, offsetTop: He } = ue("resize" === _e), Ve = ce(d ?? (() => {}), [d]), Ue = ce(te ?? (() => {}), [te]), Ge = ae?.placeHolder, [qe] = fe(N.Mode, I[N.Mode]), { themeMode: Xe } = ke({ mode: qe ?? void 0 }), [Ye] = fe(J.Active, null), et = We(Ye);
|
|
1348
|
+
et.current = Ye;
|
|
1349
|
+
const tt = be(), ot = Ee(() => ({
|
|
1350
|
+
light: Ke(!1, ht.deepMerge(yo(A, !1), v(tt?.light))),
|
|
1351
|
+
dark: Ke(!0, ht.deepMerge(yo(A, !0), v(tt?.dark)))
|
|
1352
1352
|
}), [
|
|
1353
1353
|
A,
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
]),
|
|
1357
|
-
|
|
1354
|
+
tt?.light,
|
|
1355
|
+
tt?.dark
|
|
1356
|
+
]), nt = "dark" === Xe, at = Ee(() => u(ot.light, ot.dark, `.${n}`, L), [
|
|
1357
|
+
ot,
|
|
1358
1358
|
n,
|
|
1359
1359
|
L
|
|
1360
|
-
]),
|
|
1361
|
-
|
|
1362
|
-
|
|
1360
|
+
]), lt = Ee(() => O("sxl-defaults", `.${n}`), [n]), ct = B(), [pt, ut] = Fe(() => D ?? null);
|
|
1361
|
+
Te(() => {
|
|
1362
|
+
ut(D ?? null);
|
|
1363
1363
|
}, [D]);
|
|
1364
|
-
const [
|
|
1365
|
-
|
|
1366
|
-
const
|
|
1364
|
+
const [mt, gt] = Fe(0), ft = We(null);
|
|
1365
|
+
ft.current || (ft.current = bo());
|
|
1366
|
+
const bt = z(pt, {
|
|
1367
1367
|
io: R,
|
|
1368
|
-
defaultTheme:
|
|
1369
|
-
reloadKey:
|
|
1370
|
-
}),
|
|
1368
|
+
defaultTheme: ct.getDefaultTheme(),
|
|
1369
|
+
reloadKey: mt
|
|
1370
|
+
}), yt = "loaded" === bt.status ? bt.workbook : null, wt = Ee(() => "error" === bt.status ? {
|
|
1371
1371
|
status: "error",
|
|
1372
|
-
error:
|
|
1373
|
-
} : "loaded" ===
|
|
1372
|
+
error: bt.error
|
|
1373
|
+
} : "loaded" === bt.status ? {
|
|
1374
1374
|
status: "loaded",
|
|
1375
|
-
workbook:
|
|
1376
|
-
} : { status: "loading" }, [
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
}, [
|
|
1380
|
-
if ("loaded" ===
|
|
1381
|
-
const e =
|
|
1375
|
+
workbook: bt.workbook
|
|
1376
|
+
} : { status: "loading" }, [bt]);
|
|
1377
|
+
Te(() => {
|
|
1378
|
+
ft.current.settled && (ft.current = bo());
|
|
1379
|
+
}, [pt, mt]), Te(() => {
|
|
1380
|
+
if ("loaded" === wt.status) {
|
|
1381
|
+
const e = ft.current, t = wt.workbook;
|
|
1382
1382
|
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
1383
|
-
} else "error" ===
|
|
1384
|
-
}, [
|
|
1385
|
-
const [
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1392
|
-
const t =
|
|
1393
|
-
t &&
|
|
1383
|
+
} else "error" === wt.status && (Ve?.(wt.error), ft.current.reject(wt.error));
|
|
1384
|
+
}, [wt]);
|
|
1385
|
+
const [xt, vt] = Fe(null);
|
|
1386
|
+
yt && !xt && vt(yt);
|
|
1387
|
+
const Ct = yt && xt && yt !== xt ? yt : null, Dt = We(Ct);
|
|
1388
|
+
Dt.current = Ct;
|
|
1389
|
+
const St = We(xt);
|
|
1390
|
+
St.current = xt;
|
|
1391
|
+
const Et = We([]), Wt = Se((e) => {
|
|
1392
|
+
const t = St.current;
|
|
1393
|
+
t && Et.current.push(t), ut(e);
|
|
1394
1394
|
}, []);
|
|
1395
|
-
|
|
1396
|
-
const e =
|
|
1395
|
+
Te(() => {
|
|
1396
|
+
const e = Et.current;
|
|
1397
1397
|
if (0 !== e.length) {
|
|
1398
|
-
|
|
1398
|
+
Et.current = e.filter((e) => e === xt);
|
|
1399
1399
|
for (let t = 0; t < e.length; t++) {
|
|
1400
1400
|
const o = e[t];
|
|
1401
|
-
if (o !==
|
|
1401
|
+
if (o !== xt) try {
|
|
1402
1402
|
o.close();
|
|
1403
1403
|
} catch (e) {
|
|
1404
1404
|
console.warn("Unable to close the replaced workbook", e);
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
}, [
|
|
1409
|
-
const
|
|
1410
|
-
const e =
|
|
1411
|
-
return e ? $(e, { referenceMode:
|
|
1412
|
-
}, [
|
|
1413
|
-
|
|
1414
|
-
if (!
|
|
1415
|
-
let e =
|
|
1416
|
-
return
|
|
1408
|
+
}, [xt]);
|
|
1409
|
+
const At = ve ? null : xt, Pt = _(), It = Ee(() => {
|
|
1410
|
+
const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
1411
|
+
return e ? $(e, { referenceMode: Pt }) : null;
|
|
1412
|
+
}, [At, Pt]), Nt = ve ?? It, Rt = We(Nt);
|
|
1413
|
+
Rt.current = Nt, Te(() => {
|
|
1414
|
+
if (!Nt) return;
|
|
1415
|
+
let e = Nt.getSession();
|
|
1416
|
+
return Nt.subscribe(() => {
|
|
1417
1417
|
const t = e;
|
|
1418
|
-
if (e =
|
|
1418
|
+
if (e = Nt.getSession(), !t || e) return;
|
|
1419
1419
|
if ("formula-bar" !== t.getActiveEditorId()) return;
|
|
1420
|
-
const o =
|
|
1421
|
-
(o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) &&
|
|
1420
|
+
const o = Me.current;
|
|
1421
|
+
(o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && je.current?.focus();
|
|
1422
1422
|
});
|
|
1423
|
-
}, [
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
const
|
|
1427
|
-
|
|
1428
|
-
const [
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
}, [
|
|
1432
|
-
const
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
}, [
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
}, [
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
const
|
|
1423
|
+
}, [Nt]);
|
|
1424
|
+
const jt = U(xt), { isDirty: Ot, saveState: $t } = G(xt, R), Mt = V(xt), Bt = We($t), Kt = We(null);
|
|
1425
|
+
Bt.current = $t;
|
|
1426
|
+
const zt = Se(() => Bt.current?.isDirty() ?? !1, []), Ht = We(wt);
|
|
1427
|
+
Ht.current = wt;
|
|
1428
|
+
const [Vt, Ut] = Fe(null), Gt = Q ?? ae?.title, [qt, Xt] = Fe(null);
|
|
1429
|
+
Te(() => {
|
|
1430
|
+
Xt(null);
|
|
1431
|
+
}, [xt]);
|
|
1432
|
+
const Zt = Gt ?? qt ?? jt ?? "";
|
|
1433
|
+
Te(() => {
|
|
1434
|
+
Ue?.(Ot);
|
|
1435
|
+
}, [Ot]);
|
|
1436
|
+
const Jt = ce(S ?? (() => {}), [S]);
|
|
1437
|
+
Te(() => {
|
|
1438
|
+
Jt?.(yt);
|
|
1439
|
+
}, [yt]);
|
|
1440
|
+
const eo = We(yt);
|
|
1441
|
+
eo.current = yt, K(xt, "onViewChange");
|
|
1442
|
+
const to = Ee(() => Ze(Ie, {
|
|
1443
1443
|
groupKey: "helpOptions",
|
|
1444
1444
|
disableHover: !0,
|
|
1445
1445
|
sx: { padding: "0" },
|
|
1446
1446
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
1447
|
-
}), []), [
|
|
1448
|
-
|
|
1447
|
+
}), []), [oo, ro] = Fe(null), no = Se((e) => {
|
|
1448
|
+
ro(e);
|
|
1449
1449
|
}, []);
|
|
1450
|
-
|
|
1450
|
+
Te(() => {
|
|
1451
1451
|
Y.prefetch([Y.getActive(), W]).catch((e) => {
|
|
1452
1452
|
console.warn("Icons could not be loaded:", e);
|
|
1453
1453
|
});
|
|
1454
1454
|
}, []);
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
const
|
|
1458
|
-
const t =
|
|
1459
|
-
t && t !==
|
|
1460
|
-
}, []),
|
|
1455
|
+
const ao = We(null);
|
|
1456
|
+
ao.current || (ao.current = bo());
|
|
1457
|
+
const io = We(null), lo = Se(() => io.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? ao.current.promise, []), po = ce(async (e) => {
|
|
1458
|
+
const t = et.current;
|
|
1459
|
+
t && t !== kt.getActive() && await kt.setActive(t), await q.DefaultCommandCatalogService.prefetch(t ?? void 0), Ut(e), io.current = e.source, ao.current.settled || ao.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
1460
|
+
}, []), uo = We(null), mo = Se((e) => {
|
|
1461
1461
|
let t = null, r = {
|
|
1462
1462
|
readOnly: !0,
|
|
1463
1463
|
...ae
|
|
1464
1464
|
};
|
|
1465
|
-
return ae?.hidden || (t =
|
|
1465
|
+
return ae?.hidden || (t = Ze(o, {
|
|
1466
1466
|
...r,
|
|
1467
1467
|
style: {
|
|
1468
1468
|
maxWidth: "100%",
|
|
1469
1469
|
...ae?.style
|
|
1470
1470
|
},
|
|
1471
|
-
workbook: e.workbook ??
|
|
1472
|
-
ref:
|
|
1473
|
-
title:
|
|
1474
|
-
modified:
|
|
1475
|
-
encrypted:
|
|
1476
|
-
placeHolder:
|
|
1471
|
+
workbook: e.workbook ?? je.current,
|
|
1472
|
+
ref: uo,
|
|
1473
|
+
title: Zt,
|
|
1474
|
+
modified: Ot,
|
|
1475
|
+
encrypted: Mt,
|
|
1476
|
+
placeHolder: Ge,
|
|
1477
1477
|
onTitleChange: (e) => {
|
|
1478
|
-
|
|
1478
|
+
Xt(e), ae?.onTitleChange?.(e);
|
|
1479
1479
|
}
|
|
1480
|
-
})),
|
|
1480
|
+
})), Ze(_t, {
|
|
1481
1481
|
...e,
|
|
1482
1482
|
logo: T,
|
|
1483
1483
|
mainElement: t,
|
|
@@ -1486,15 +1486,15 @@ var ko = () => {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
}, [
|
|
1488
1488
|
T,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1489
|
+
Zt,
|
|
1490
|
+
Ot,
|
|
1491
|
+
Mt,
|
|
1492
1492
|
ae,
|
|
1493
1493
|
E,
|
|
1494
1494
|
F
|
|
1495
1495
|
]);
|
|
1496
|
-
|
|
1497
|
-
const e =
|
|
1496
|
+
Te(() => {
|
|
1497
|
+
const e = je.current;
|
|
1498
1498
|
if (!e) return;
|
|
1499
1499
|
const t = (t) => {
|
|
1500
1500
|
(t.ctrlKey || t.metaKey || "native" !== ne.getWheelOwner(t, e)) && t.preventDefault();
|
|
@@ -1502,12 +1502,12 @@ var ko = () => {
|
|
|
1502
1502
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
1503
1503
|
e.removeEventListener("wheel", t);
|
|
1504
1504
|
};
|
|
1505
|
-
}, [
|
|
1506
|
-
const [
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}, [
|
|
1510
|
-
const
|
|
1505
|
+
}, [Vt]);
|
|
1506
|
+
const [go, ho] = Fe(null);
|
|
1507
|
+
Te(() => {
|
|
1508
|
+
ho(Vt?.source?.getCommandScope?.() ?? null);
|
|
1509
|
+
}, [Vt]);
|
|
1510
|
+
const fo = Ee(() => ({
|
|
1511
1511
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
1512
1512
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
1513
1513
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -1520,46 +1520,46 @@ var ko = () => {
|
|
|
1520
1520
|
whiteSpace: "pre-wrap"
|
|
1521
1521
|
},
|
|
1522
1522
|
"*": { userSelect: "none" }
|
|
1523
|
-
}), []), [
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}, [
|
|
1527
|
-
const
|
|
1528
|
-
model:
|
|
1523
|
+
}), []), [ko, xo] = Fe(null), [, Co] = fe(null, !1);
|
|
1524
|
+
Te(() => {
|
|
1525
|
+
Co(null != ko);
|
|
1526
|
+
}, [ko, Co]);
|
|
1527
|
+
const Do = Se((e) => w({
|
|
1528
|
+
model: xt,
|
|
1529
1529
|
side: x,
|
|
1530
1530
|
...e,
|
|
1531
1531
|
...y
|
|
1532
1532
|
}), [
|
|
1533
|
-
|
|
1533
|
+
xt,
|
|
1534
1534
|
x,
|
|
1535
1535
|
y
|
|
1536
|
-
]),
|
|
1537
|
-
|
|
1536
|
+
]), So = We(r);
|
|
1537
|
+
So.current = r, pe(t, () => ({
|
|
1538
1538
|
isStudioElement: () => !0,
|
|
1539
1539
|
save: (e) => {
|
|
1540
|
-
const t =
|
|
1540
|
+
const t = Kt.current;
|
|
1541
1541
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
1542
1542
|
},
|
|
1543
|
-
getWorkbookElement: () =>
|
|
1544
|
-
getWorkbook: () =>
|
|
1545
|
-
isDirty: () =>
|
|
1546
|
-
getEditable: () =>
|
|
1547
|
-
getFormulaBarElement: () =>
|
|
1548
|
-
focus: () =>
|
|
1549
|
-
whenReady: () => (
|
|
1550
|
-
getWorkbookState: () =>
|
|
1551
|
-
retry: () =>
|
|
1543
|
+
getWorkbookElement: () => je.current,
|
|
1544
|
+
getWorkbook: () => eo.current ?? null,
|
|
1545
|
+
isDirty: () => Bt.current?.isDirty() ?? !1,
|
|
1546
|
+
getEditable: () => Rt.current,
|
|
1547
|
+
getFormulaBarElement: () => Me.current ?? null,
|
|
1548
|
+
focus: () => je.current?.focus(),
|
|
1549
|
+
whenReady: () => (ft.current || (ft.current = bo()), ft.current.promise),
|
|
1550
|
+
getWorkbookState: () => Ht.current,
|
|
1551
|
+
retry: () => gt((e) => e + 1)
|
|
1552
1552
|
}), [], r);
|
|
1553
|
-
const
|
|
1554
|
-
t ===
|
|
1555
|
-
t ===
|
|
1553
|
+
const To = We(!1), Eo = ce((e, t) => {
|
|
1554
|
+
t === Dt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1555
|
+
t === Dt.current && (To.current = So.current?.contains(document.activeElement) ?? !0, vt(t), po(e));
|
|
1556
1556
|
}));
|
|
1557
1557
|
}, []);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
}, [
|
|
1561
|
-
const
|
|
1562
|
-
const { ref: t, ...o } = e, r =
|
|
1558
|
+
Te(() => {
|
|
1559
|
+
To.current && (To.current = !1, je.current?.focus());
|
|
1560
|
+
}, [xt]);
|
|
1561
|
+
const Wo = Se((e) => {
|
|
1562
|
+
const { ref: t, ...o } = e, r = nt ? ot.dark : ot.light, n = "error" === wt.status && g ? Ze(re, {
|
|
1563
1563
|
render: g,
|
|
1564
1564
|
props: {
|
|
1565
1565
|
...f,
|
|
@@ -1568,10 +1568,10 @@ var ko = () => {
|
|
|
1568
1568
|
height: "100%",
|
|
1569
1569
|
...f?.style
|
|
1570
1570
|
},
|
|
1571
|
-
error:
|
|
1571
|
+
error: wt.error
|
|
1572
1572
|
}
|
|
1573
1573
|
}) : null;
|
|
1574
|
-
if (n && !
|
|
1574
|
+
if (n && !xt) return Ze(it, {
|
|
1575
1575
|
style: {
|
|
1576
1576
|
width: "100%",
|
|
1577
1577
|
height: "100%",
|
|
@@ -1583,17 +1583,17 @@ var ko = () => {
|
|
|
1583
1583
|
children: n
|
|
1584
1584
|
});
|
|
1585
1585
|
let l = null;
|
|
1586
|
-
if (
|
|
1587
|
-
const e =
|
|
1588
|
-
render: void 0 ===
|
|
1586
|
+
if (xt) {
|
|
1587
|
+
const e = xt, n = e.getView(), a = ge ?? n?.isShowFormulaBar(), i = Ce ?? n?.isShowStatusBar(), s = Vt?.source ?? je.current, d = Ze(re, {
|
|
1588
|
+
render: void 0 === Ne ? mo : Ne,
|
|
1589
1589
|
props: {
|
|
1590
1590
|
workbook: s,
|
|
1591
|
-
...
|
|
1591
|
+
...Pe
|
|
1592
1592
|
}
|
|
1593
|
-
}), u = "bottom" ===
|
|
1594
|
-
render: void 0 ===
|
|
1593
|
+
}), u = "bottom" === Be, g = a ? Ze(re, {
|
|
1594
|
+
render: void 0 === ye ? m : ye,
|
|
1595
1595
|
props: {
|
|
1596
|
-
ref:
|
|
1596
|
+
ref: Me,
|
|
1597
1597
|
style: {
|
|
1598
1598
|
marginTop: r.spacing(u ? .5 : .25),
|
|
1599
1599
|
marginLeft: r.spacing(1),
|
|
@@ -1601,50 +1601,50 @@ var ko = () => {
|
|
|
1601
1601
|
marginBottom: r.spacing(u ? .5 : .75)
|
|
1602
1602
|
},
|
|
1603
1603
|
workbook: e,
|
|
1604
|
-
editable:
|
|
1605
|
-
placement:
|
|
1606
|
-
floatOnKeyboard: "float" ===
|
|
1607
|
-
...
|
|
1604
|
+
editable: Nt ?? void 0,
|
|
1605
|
+
placement: Be,
|
|
1606
|
+
floatOnKeyboard: "float" === _e,
|
|
1607
|
+
...he,
|
|
1608
1608
|
propsNamedCollectionEditor: {
|
|
1609
1609
|
restoreFocus: (e) => s?.focus(e),
|
|
1610
|
-
...
|
|
1610
|
+
...he?.propsNamedCollectionEditor
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
}) : null, f = i ?
|
|
1614
|
-
render: void 0 ===
|
|
1613
|
+
}) : null, f = i ? Ze(re, {
|
|
1614
|
+
render: void 0 === Ae ? h : Ae,
|
|
1615
1615
|
props: {
|
|
1616
|
-
childrenEnd:
|
|
1617
|
-
...
|
|
1616
|
+
childrenEnd: to,
|
|
1617
|
+
...De
|
|
1618
1618
|
}
|
|
1619
|
-
}) : null, k = (e, r) =>
|
|
1620
|
-
...
|
|
1619
|
+
}) : null, k = (e, r) => Ze(p, {
|
|
1620
|
+
...me,
|
|
1621
1621
|
tabIndex: 0,
|
|
1622
1622
|
autoFocus: !r && X,
|
|
1623
1623
|
workbook: e,
|
|
1624
|
-
editable: r ? void 0 :
|
|
1625
|
-
focusNameBox: r ? void 0 :
|
|
1624
|
+
editable: r ? void 0 : Nt ?? void 0,
|
|
1625
|
+
focusNameBox: r ? void 0 : Le,
|
|
1626
1626
|
prefetch: !r && c,
|
|
1627
|
-
ref: r ?
|
|
1628
|
-
onWorkbookLoad: r ? (t) =>
|
|
1627
|
+
ref: r ? Oe : Tt([t, je]),
|
|
1628
|
+
onWorkbookLoad: r ? (t) => Eo(t, e) : po,
|
|
1629
1629
|
onKeyDown: (e) => {
|
|
1630
1630
|
C?.(e);
|
|
1631
1631
|
},
|
|
1632
|
-
propsWorkbookLoading:
|
|
1632
|
+
propsWorkbookLoading: de,
|
|
1633
1633
|
renderWorkbookLoading: null,
|
|
1634
1634
|
style: r ? {
|
|
1635
|
-
...
|
|
1635
|
+
...me?.style,
|
|
1636
1636
|
position: "absolute",
|
|
1637
1637
|
inset: 0,
|
|
1638
1638
|
visibility: "hidden"
|
|
1639
1639
|
} : {
|
|
1640
1640
|
flex: "1 1 100%",
|
|
1641
1641
|
minHeight: 0,
|
|
1642
|
-
...
|
|
1642
|
+
...me?.style
|
|
1643
1643
|
},
|
|
1644
1644
|
onContextMenu: (e) => e.preventDefault(),
|
|
1645
1645
|
...r ? null : o
|
|
1646
1646
|
}, e.getId());
|
|
1647
|
-
l =
|
|
1647
|
+
l = Ze("div", {
|
|
1648
1648
|
style: {
|
|
1649
1649
|
display: "flex",
|
|
1650
1650
|
flexDirection: "column",
|
|
@@ -1656,18 +1656,18 @@ var ko = () => {
|
|
|
1656
1656
|
windowText: r.palette.text.primary
|
|
1657
1657
|
})
|
|
1658
1658
|
},
|
|
1659
|
-
children:
|
|
1659
|
+
children: co(Be, {
|
|
1660
1660
|
toolbar: d,
|
|
1661
1661
|
formulaBar: g,
|
|
1662
1662
|
statusBar: f,
|
|
1663
|
-
main:
|
|
1663
|
+
main: Ze(so, {
|
|
1664
1664
|
taskSide: x,
|
|
1665
|
-
persistKey:
|
|
1666
|
-
sidebarElement:
|
|
1667
|
-
scope:
|
|
1668
|
-
children:
|
|
1665
|
+
persistKey: wo,
|
|
1666
|
+
sidebarElement: ko ? Ze(q.CommandScopeProvider, {
|
|
1667
|
+
scope: go,
|
|
1668
|
+
children: ko
|
|
1669
1669
|
}) : void 0,
|
|
1670
|
-
mainElement:
|
|
1670
|
+
mainElement: Je("div", {
|
|
1671
1671
|
style: {
|
|
1672
1672
|
position: "relative",
|
|
1673
1673
|
display: "flex",
|
|
@@ -1676,8 +1676,8 @@ var ko = () => {
|
|
|
1676
1676
|
minWidth: 0,
|
|
1677
1677
|
minHeight: 0
|
|
1678
1678
|
},
|
|
1679
|
-
children: [[k(
|
|
1680
|
-
ref:
|
|
1679
|
+
children: [[k(xt, !1), Ct ? k(Ct, !0) : null], Ze(Qe, {
|
|
1680
|
+
ref: no,
|
|
1681
1681
|
sx: {
|
|
1682
1682
|
position: "absolute",
|
|
1683
1683
|
top: "10%",
|
|
@@ -1693,16 +1693,16 @@ var ko = () => {
|
|
|
1693
1693
|
})
|
|
1694
1694
|
});
|
|
1695
1695
|
}
|
|
1696
|
-
const d = !
|
|
1697
|
-
render:
|
|
1698
|
-
props: { ...
|
|
1696
|
+
const d = !Vt && le ? Ze(re, {
|
|
1697
|
+
render: le,
|
|
1698
|
+
props: { ...de }
|
|
1699
1699
|
}) : null;
|
|
1700
|
-
return
|
|
1701
|
-
sx:
|
|
1700
|
+
return Je(it, {
|
|
1701
|
+
sx: fo,
|
|
1702
1702
|
style: {
|
|
1703
1703
|
width: "100%",
|
|
1704
|
-
height:
|
|
1705
|
-
transform:
|
|
1704
|
+
height: ze ? `calc(100% - ${ze}px)` : "100%",
|
|
1705
|
+
transform: He ? `translateY(${He}px)` : void 0,
|
|
1706
1706
|
position: "absolute",
|
|
1707
1707
|
display: "flex",
|
|
1708
1708
|
alignItems: "stretch",
|
|
@@ -1715,7 +1715,7 @@ var ko = () => {
|
|
|
1715
1715
|
variant: s,
|
|
1716
1716
|
children: [
|
|
1717
1717
|
l,
|
|
1718
|
-
n ?
|
|
1718
|
+
n ? Ze(it, {
|
|
1719
1719
|
style: {
|
|
1720
1720
|
position: "absolute",
|
|
1721
1721
|
inset: 0,
|
|
@@ -1725,114 +1725,114 @@ var ko = () => {
|
|
|
1725
1725
|
},
|
|
1726
1726
|
children: n
|
|
1727
1727
|
}) : null,
|
|
1728
|
-
d ?
|
|
1728
|
+
d ? Ze("div", {
|
|
1729
1729
|
style: {
|
|
1730
1730
|
position: "absolute",
|
|
1731
1731
|
inset: 0,
|
|
1732
1732
|
display: "flex",
|
|
1733
1733
|
alignItems: "center",
|
|
1734
1734
|
justifyContent: "center",
|
|
1735
|
-
background: `var(--sxl-color-base-100, ${
|
|
1735
|
+
background: `var(--sxl-color-base-100, ${nt ? "#121212" : "#fff"})`
|
|
1736
1736
|
},
|
|
1737
1737
|
children: d
|
|
1738
1738
|
}) : null
|
|
1739
1739
|
]
|
|
1740
1740
|
});
|
|
1741
1741
|
}, [
|
|
1742
|
-
yt,
|
|
1743
1742
|
wt,
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1743
|
+
xt,
|
|
1744
|
+
Ct,
|
|
1745
|
+
Vt,
|
|
1746
|
+
Zt,
|
|
1747
|
+
le,
|
|
1748
|
+
de,
|
|
1749
|
+
me,
|
|
1750
1750
|
a,
|
|
1751
1751
|
i,
|
|
1752
1752
|
s,
|
|
1753
|
-
|
|
1753
|
+
to,
|
|
1754
1754
|
g,
|
|
1755
1755
|
f,
|
|
1756
|
-
|
|
1757
|
-
ho,
|
|
1756
|
+
mo,
|
|
1758
1757
|
fo,
|
|
1758
|
+
ko,
|
|
1759
1759
|
x,
|
|
1760
|
-
|
|
1761
|
-
me,
|
|
1760
|
+
go,
|
|
1762
1761
|
ge,
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1762
|
+
he,
|
|
1763
|
+
ye,
|
|
1764
|
+
Be,
|
|
1765
|
+
Nt,
|
|
1767
1766
|
Ce,
|
|
1768
|
-
|
|
1767
|
+
De,
|
|
1769
1768
|
Ae,
|
|
1770
|
-
|
|
1771
|
-
|
|
1769
|
+
Pe,
|
|
1770
|
+
Ne,
|
|
1772
1771
|
_e,
|
|
1773
1772
|
ze,
|
|
1774
|
-
|
|
1775
|
-
|
|
1773
|
+
He,
|
|
1774
|
+
ot,
|
|
1775
|
+
nt
|
|
1776
1776
|
]);
|
|
1777
|
-
let
|
|
1777
|
+
let Fo = Ze(Ft, {
|
|
1778
1778
|
maxSnack: 3,
|
|
1779
|
-
domRoot:
|
|
1779
|
+
domRoot: oo ?? void 0,
|
|
1780
1780
|
anchorOrigin: {
|
|
1781
1781
|
vertical: "bottom",
|
|
1782
1782
|
horizontal: "right"
|
|
1783
1783
|
},
|
|
1784
1784
|
autoHideDuration: 3500,
|
|
1785
1785
|
onClose: (e, t, o) => {
|
|
1786
|
-
|
|
1786
|
+
je.current?.focus();
|
|
1787
1787
|
},
|
|
1788
|
-
Components: { error:
|
|
1788
|
+
Components: { error: Lt },
|
|
1789
1789
|
iconVariant: {
|
|
1790
|
-
success:
|
|
1790
|
+
success: Ze(st, {
|
|
1791
1791
|
style: { marginRight: "8px" },
|
|
1792
|
-
children:
|
|
1792
|
+
children: Ze("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" })
|
|
1793
1793
|
}),
|
|
1794
|
-
error:
|
|
1794
|
+
error: Ze(Z, {
|
|
1795
1795
|
iconKey: "ErrorAlert",
|
|
1796
1796
|
style: { marginRight: "8px" }
|
|
1797
1797
|
})
|
|
1798
1798
|
},
|
|
1799
|
-
children:
|
|
1800
|
-
workbook:
|
|
1801
|
-
children:
|
|
1802
|
-
renderArea:
|
|
1799
|
+
children: Ze(j, {
|
|
1800
|
+
workbook: xt,
|
|
1801
|
+
children: Ze(P, {
|
|
1802
|
+
renderArea: Do,
|
|
1803
1803
|
onUpdateArea: (e) => {
|
|
1804
|
-
|
|
1804
|
+
xo(e);
|
|
1805
1805
|
},
|
|
1806
|
-
children:
|
|
1807
|
-
workbook:
|
|
1808
|
-
initialCommandAnchor:
|
|
1809
|
-
renderWorkbook:
|
|
1810
|
-
setWorkbook:
|
|
1811
|
-
titleWorkbook:
|
|
1812
|
-
setWorkbookTitle:
|
|
1813
|
-
refDocumentTitle:
|
|
1814
|
-
isDirty:
|
|
1815
|
-
refSave:
|
|
1806
|
+
children: Ze($e, { children: Ze(Qt, { children: Ze(se, { children: Ze(ee, { children: Ze(Yt, {
|
|
1807
|
+
workbook: xt,
|
|
1808
|
+
initialCommandAnchor: lo,
|
|
1809
|
+
renderWorkbook: Wo,
|
|
1810
|
+
setWorkbook: Wt,
|
|
1811
|
+
titleWorkbook: Zt,
|
|
1812
|
+
setWorkbookTitle: Xt,
|
|
1813
|
+
refDocumentTitle: uo,
|
|
1814
|
+
isDirty: zt,
|
|
1815
|
+
refSave: Kt,
|
|
1816
1816
|
host: r
|
|
1817
1817
|
}) }) }) }) })
|
|
1818
1818
|
})
|
|
1819
1819
|
})
|
|
1820
1820
|
});
|
|
1821
|
-
return
|
|
1822
|
-
theme:
|
|
1821
|
+
return Fo = Je(dt, {
|
|
1822
|
+
theme: nt ? ot.dark : ot.light,
|
|
1823
1823
|
children: [
|
|
1824
|
-
H ?
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1824
|
+
H ? Ze(rt, {}) : null,
|
|
1825
|
+
Ze(ie, { css: at }),
|
|
1826
|
+
Ze(ie, { css: lt }),
|
|
1827
|
+
Ze(Re, {
|
|
1828
1828
|
themeScopeClass: n,
|
|
1829
1829
|
themeSurface: "app",
|
|
1830
|
-
themeMode:
|
|
1831
|
-
children:
|
|
1830
|
+
themeMode: Xe,
|
|
1831
|
+
children: Fo
|
|
1832
1832
|
})
|
|
1833
1833
|
]
|
|
1834
|
-
}),
|
|
1834
|
+
}), Fo;
|
|
1835
1835
|
}));
|
|
1836
|
-
|
|
1837
|
-
var
|
|
1838
|
-
export {
|
|
1836
|
+
xo.displayName = "EagerStudio";
|
|
1837
|
+
var vo = (e) => Ze(ro, { ...e });
|
|
1838
|
+
export { xo as EagerStudio, xo as default, $t as n, ko as t };
|