@sheetxl/studio-mui 0.8.0-beta.22 → 0.8.0-beta.23
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/{94tsNi06fbT_N5QP.mjs → 3vdsx6Z062TFVqqm.mjs} +1 -1
- package/browser/esm/{D26ZjloyA6kyqhCO.mjs → 61qlLY6EQNjbQMDi.mjs} +2 -2
- package/browser/esm/{B_N6a3iKw4osibIz.mjs → 9W8UMvVpOm879O9Q.mjs} +1 -1
- package/browser/esm/{BKwBJsEKNY-Zg8CB.mjs → B0GhKutuGufS8cTX.mjs} +2 -2
- package/browser/esm/{CMPdCzAvGvFQ_NOu.mjs → B19n0bcO5bMPruGk.mjs} +1 -1
- package/browser/esm/{IrJcYpXt_8rkAXkj.mjs → B1WCXTGT4QyfuXEG.mjs} +3 -3
- package/browser/esm/{veW5ER4LND6O438J.mjs → B1cZfl1su2i_IUuO.mjs} +1 -1
- package/browser/esm/{Dt3cLYWyjIUhoGv5.mjs → B5ykigtm3LE3-S9e.mjs} +2 -2
- package/browser/esm/{CqmCCdvSBl4ksHpK.mjs → B8DK-EICUzzkKHOT.mjs} +4 -4
- package/browser/esm/{C-rODYmI2nVNJxkV.mjs → BTw0PMEQ23eq2l3z.mjs} +2 -2
- package/browser/esm/{BOlLywIc0l3AgTeQ.mjs → BZl2Zo1B5LmU6ND7.mjs} +3 -3
- package/browser/esm/{DCjDYZjRl7IH3hl7.mjs → BbABKdPYxk4IMSLc.mjs} +1 -1
- package/browser/esm/{es5d1Dk1vs-XYLkm.mjs → Bcwt4-GEbF3sfJ8P.mjs} +2 -2
- package/browser/esm/{COFmQH3tB3uvu0v4.mjs → BhkaQtl8eWTBqQSV.mjs} +1 -1
- package/browser/esm/{Df0ygc7YMQG-3ATr.mjs → Bi91aW5tILFwRzDH.mjs} +1 -1
- package/browser/esm/{CSgrMpZ0rZKxXZyj.mjs → BkGHlu2z__idmVOV.mjs} +4 -4
- package/browser/esm/{h0wby0g03NYV4-XW.mjs → BpYJD74w23YliQn6.mjs} +5 -5
- package/browser/esm/{CwBN8jwNndijQgmx.mjs → BtR1nedinfNR24qm.mjs} +1 -1
- package/browser/esm/{DNdSq8U8iqBPrwOo.mjs → Bw6mxAfCx4FULeUB.mjs} +1 -1
- package/browser/esm/{DqFTGLVzd9DQ8EhO.mjs → Bwc48kjFvd98HI3-.mjs} +21 -21
- package/browser/esm/{ov0v-5BfNGRojfXZ.mjs → C5q3B-KjPRLy3Ihp.mjs} +2 -2
- package/browser/esm/{DB44ddihGazQSGaZ.mjs → C66BP2x5G9VxianJ.mjs} +1 -1
- package/browser/esm/{C1F9o-e9q6m9MuOd.mjs → C7cXbOyJfTmYUd18.mjs} +784 -792
- package/browser/esm/{DkWzWQNmOvX1iJXV.mjs → CI8k7kDBS1QVZn5S.mjs} +2 -2
- package/browser/esm/{C1tObUn9YlTLNn25.mjs → CPGiQiXu-u6r11fr.mjs} +2 -2
- package/browser/esm/{BChPnCMzvz7cXxgX.mjs → CT8RqHXjAPVLs2bn.mjs} +2 -2
- package/browser/esm/{Dq5jd89jluXcrOEE.mjs → CUY_oauSAZX4Z-d-.mjs} +5 -5
- package/browser/esm/{BfiIvcOXqUoxIFoz.mjs → CWZoE2dDxX-8yQql.mjs} +2 -2
- package/browser/esm/{CtNLEdf5v8pGcG3C.mjs → CaHNU1h47mUesQQN.mjs} +2 -2
- package/browser/esm/{DrMsUvIwtq9dARmW.mjs → Ce5ZiG5RMMewOh20.mjs} +4 -4
- package/browser/esm/{Df13XIFEDDEusmq6.mjs → ClXxtB98U76iDrtj.mjs} +2 -2
- package/browser/esm/{B73fvq9CvO4zWnAU.mjs → CmYZ6sd6YCXvcNFo.mjs} +3 -3
- package/browser/esm/{4fBGyv6A2TxumCq-.mjs → CrKqA0lliI3x_pFG.mjs} +1 -1
- package/browser/esm/{C-LSHx-5EgUmc44h.mjs → CuCtXVvc9N3sUzWz.mjs} +6 -6
- package/browser/esm/{CXvLc2JRNpJ9CiWw.mjs → CwKA4g_ulbxqKWN6.mjs} +3 -3
- package/browser/esm/{DaCPqL3R4JLbgfKh.mjs → D2S83AjNN8JCl2EL.mjs} +2 -2
- package/browser/esm/{DXRtL-ZwbSMLfMWu.mjs → D7ogY8ykfJGZ35jY.mjs} +1 -1
- package/browser/esm/{C3lvgNO_MVml-Awy.mjs → DEILBkTYM5GuSYLP.mjs} +2 -2
- package/browser/esm/{CgtckX24zzJUIsPm.mjs → DEsDS0RX4DnyT_jk.mjs} +4 -4
- package/browser/esm/{t7Y081CM2JBXwlh-.mjs → DFdgG6xUa0_mmiSp.mjs} +1 -1
- package/browser/esm/{Dqa4YY-GeaELqOWP.mjs → DGaYmKVqluJZ8ZD8.mjs} +2 -2
- package/browser/esm/{BuAIHmOwBspXtuLo.mjs → DLuMMUERB4N5Zf-n.mjs} +4 -4
- package/browser/esm/{CJlwai18BnsJScjr.mjs → DNVpxaUopxkKOZaG.mjs} +2 -2
- package/browser/esm/{dAjSLtkpLCkJDkhU.mjs → DSuMuoNFUjJsd15-.mjs} +1 -1
- package/browser/esm/{vsSZOEJBDfjVM46M.mjs → DZ72x5v3_f0dhXS5.mjs} +2 -2
- package/browser/esm/{De5GPX3SbEvetD0y.mjs → Db-NbGskcpMZZHKM.mjs} +1 -1
- package/browser/esm/{D3H9iUvXD2rOEXUz.mjs → DmfuCdn6QW__7sVr.mjs} +3 -3
- package/browser/esm/{eA3xhEFzK_Y-f3m3.mjs → DnSTmOtiviJE47Im.mjs} +5 -5
- package/browser/esm/{DdyE9R4gSZNhRZb0.mjs → DuzrJpmUyTTXroFX.mjs} +5 -5
- package/browser/esm/{DQbt4DNrmq-Uhlgk.mjs → Dv4ndHScQEENL6DA.mjs} +8 -8
- package/browser/esm/{DEMQ4FkP_kNZF_wE.mjs → JjoDQ7kBaTdBLqA4.mjs} +1 -1
- package/browser/esm/{PujeLGgr7jXdyoVl.mjs → NTmBvTnoLPfgA2Cj.mjs} +1 -1
- package/browser/esm/{CuL7ggWqWMgPSTYd.mjs → OAvkBxphUfqrOn_K.mjs} +1 -1
- package/browser/esm/{CzhTxHyYCZp4qxKC.mjs → S3LY_kWRu6v1Ft40.mjs} +119 -116
- package/browser/esm/{UkGnqCkXqASlUdkb.mjs → TFJUQcKsawCh4esx.mjs} +4 -4
- package/browser/esm/{BhT_uJEPxlXpMzZA.mjs → ea57m6-nIYUKFyzf.mjs} +8 -8
- package/browser/esm/index.mjs +17 -17
- package/browser/esm/{CStCc2wP7hmm92t1.mjs → pfN8xe0LCSTqzF_2.mjs} +2 -2
- package/browser/esm/{CoVFWmiy6hWV8rPy.mjs → vcqr-88ypSy0Jx2Q.mjs} +4 -4
- package/browser/esm/{BYtWtukbMjjvrpmO.mjs → xdqV7p4ssraS4FHb.mjs} +4 -4
- package/licenses/dependencies.txt +1 -1
- package/node/esm/{DBB9QhddMWoyCmju.mjs → 5Sg-hTry8N_ADjwz.mjs} +2 -2
- package/node/esm/{Bppef7aHA2mOZ_sn.mjs → BBcWEgWdtRmfiFgw.mjs} +1 -1
- package/node/esm/{C9dfS-Tk6WGogUSV.mjs → BJYaCliDBm8LmZWp.mjs} +2 -2
- package/node/esm/{CM2JoqeXwIblrqJM.mjs → BQvZ_uVsIOZSfXFf.mjs} +2 -2
- package/node/esm/{Dj16Fzha7o7DGv6z.mjs → BS33GA7F0bkFfwXo.mjs} +2 -2
- package/node/esm/{BNJBkYIYk2zyHoU3.mjs → BT0yXqLFKoPiS71A.mjs} +1 -1
- package/node/esm/{D1QZYBh1NZInkWaZ.mjs → BZjXyuhD5XzRKyKi.mjs} +2 -2
- package/node/esm/{DomLgHu8aLIg6y2l.mjs → BcWKuDVZKC_PVYtg.mjs} +1 -1
- package/node/esm/{wC3tHWypFfvBG8Fu.mjs → BcZDO-Mj9HsII_hy.mjs} +1 -1
- package/node/esm/{tt1hY7OYeKg-gSFj.mjs → BjRqhIL_i20fCqwt.mjs} +1 -1
- package/node/esm/{DxRENk3CWrgvcnJj.mjs → Bq7H9YN6TQEPFxf9.mjs} +2 -2
- package/node/esm/{DY96atQfGYmZ90TD.mjs → BtYfA9MPu_ajX7Y9.mjs} +4 -4
- package/node/esm/{B5dbA7OTeRHtdFKK.mjs → BvdZuwQByiJVQOvh.mjs} +4 -4
- package/node/esm/{BPGz9KUMwgtyF6LG.mjs → Bz_1k_dxr4BRsQv3.mjs} +1 -1
- package/node/esm/{DRigWgmIaYtEv5Lk.mjs → C2-KRircvBQzs5Ba.mjs} +1 -1
- package/node/esm/{CF8UfOyBsfrrOyAH.mjs → C5G29l25qVLu5OZj.mjs} +2 -2
- package/node/esm/{CTsTUI34q8TBkdX5.mjs → C5XI_nNcwDiNGqNp.mjs} +1 -1
- package/node/esm/{DrBGMrwOCXerStOS.mjs → COXiXFKdsF49hE5l.mjs} +2 -2
- package/node/esm/{bXPPrX3OxYcCm85J.mjs → COrRcQDAFnkRj95H.mjs} +1 -1
- package/node/esm/{BML2jZO-vGc6RS51.mjs → CRJi4wTYJJJq2kEV.mjs} +2 -2
- package/node/esm/{DLQ1x8uASVrHgCX2.mjs → CfvgBqV3sMafVSQM.mjs} +1 -1
- package/node/esm/{C4qWN7D3UW8jLaZK.mjs → CspVpQ8x2lBzmEJr.mjs} +4 -4
- package/node/esm/{Bzi3tHPQ3b7BGbwU.mjs → D0f2t3XyaDfFTC08.mjs} +1 -1
- package/node/esm/{eCWrCiaQxjPKI08p.mjs → DG5EIoSdFG3FutGu.mjs} +1 -1
- package/node/esm/{GeB-AGYaOLPf4xIa.mjs → DScYIiZenzzEpqNX.mjs} +2 -2
- package/node/esm/{CawfjLMD5X08VllQ.mjs → DT6duO2Kls0dywMs.mjs} +2 -2
- package/node/esm/{Caf_ZRpLHj97cmhq.mjs → DXGG2ZQw5gsEiizJ.mjs} +1 -1
- package/node/esm/{CbE22c6PmT_9BusX.mjs → Db70KVKsFGdRlKEx.mjs} +1 -1
- package/node/esm/{Bn2kMFZYznOun538.mjs → DdX-VVGAfrU2a52x.mjs} +1 -1
- package/node/esm/{Bu647iy66qiv3-qM.mjs → DgHlwwldxPMVUdYv.mjs} +2 -2
- package/node/esm/{DLt7HmhROlJ1V8bV.mjs → HTk99NQ6xaWtPNfO.mjs} +1 -1
- package/node/esm/{BuDVpL6sgPNGIN7T.mjs → cFgQxgzJMvn3jgnS.mjs} +1 -1
- package/node/esm/{JieSP-_GeRIfiW8Z.mjs → d7nC9HA-O7Jg57HD.mjs} +2 -2
- package/node/esm/{Dg5D5zMNzygUWk51.mjs → eOKsk3UBMDeeE2K8.mjs} +2 -2
- package/node/esm/index.mjs +2140 -2137
- package/node/esm/{BjpAc-kSpia0lwjr.mjs → j5sUOLJOXDDfgzyV.mjs} +1 -1
- package/node/esm/{Dv8pWn_FIH1LYneP.mjs → lHvI11zfRX3BV9uN.mjs} +2 -2
- package/node/esm/{BI4aQ23a2wqqskmY.mjs → orrZaoah66_1GRIf.mjs} +504 -512
- package/node/esm/{G7AEbATGEFC09W8Z.mjs → tUUYzU1yWSNE4COh.mjs} +1 -1
- package/node/esm/{CcLCu4TIukHypMCt.mjs → wy1h9E1aAC6zMYna.mjs} +2 -2
- package/package.json +10 -10
- package/types/src/studio/StudioProps.d.ts +5 -6
- package/types/src/theme/ThemeUtils.d.ts +8 -27
|
@@ -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.23
|
|
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
|
-
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,
|
|
9
|
-
import { Command as
|
|
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
|
|
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, ThemeRootStyles as I, ThemeStateDefaults as N, ThemeStateKey as R, WorkbookIO as j, WorkbookProvider as O, createEditable as M, registerMovablePane as $, useDocThemes as L, useModelSync as B, useReferenceModeStore as K, useResolvedWorkbook as _, useTaskPaneArea as z, useWorkbookEncrypted as H, useWorkbookName as V, useWorkbookSaveState as U } from "@sheetxl/react";
|
|
9
|
+
import { Command as G, DefaultCommandButtonRegistry as q, DefaultIconService as X, DynamicIcon as Y, LanguageStateKey as Z, NotifierType as J, ReactErrorBoundary as Q, ReactNotifierProvider as ee, ReactUtils as te, RenderSlot as oe, ScrollUtils as re, SplitPane as ne, ThemeStyle as ae, UncaughtErrorBoundary as ie, createBusyHandle as se, useCallbackRef as le, useFullscreen as ce, useImperativeElement as de, useKeyboardResize as pe, useLanguage as ue, useMeasure as me, useNotifier as ge, usePersistentState as he, useResolvedThemeMode as fe, useTranslator as ke } from "@sheetxl/utils-react";
|
|
10
|
+
import be, { Fragment as ye, forwardRef as we, isValidElement as xe, memo as ve, useCallback as Ce, useEffect as De, useMemo as Se, useRef as Te, useState as Ee } from "react";
|
|
11
|
+
import { AnimatedLoadingPanel as We, AnimatedTraversingEllipsisIcon as Fe, CommandGroup as Ae, ExhibitDivider as Pe, ExhibitFloatProvider as Ie, ExhibitMenuItem as Ne, ExhibitTooltip as Re, ModalProvider as je, SelectedIcon as Oe, SimpleTooltip as Me, StackTrace as $e, createExhibitTheme as Le, hideLoadingPanel as Be, lazyModal as Ke, lazyPanel as _e, showLoadingPanel as ze, useInputDialog as He, useLazyWindow as Ve, useModal as Ue, useOptionsDialog as Ge } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as qe, jsx as Xe, jsxs as Ye } from "react/jsx-runtime";
|
|
13
|
+
import { Box as Ze, Card as Je, CardActions as Qe, Collapse as et, CssBaseline as tt, DialogTitle as ot, IconButton as rt, Paper as nt, SvgIcon as at, Tab as it, Tabs as st, ThemeProvider as lt, Typography as ct, alpha as dt, useMediaQuery as pt, useTheme as ut } from "@mui/material";
|
|
14
|
+
import { CommonUtils as mt, DOMUtils as gt, DefaultLanguagePackService as ht, ErrorUtils as ft, ExpectedError as kt, PartialError as bt, defineLazyModule as yt, formatMessage as wt, messageKey as xt, t as vt } from "@sheetxl/utils";
|
|
15
|
+
import Ct from "clsx";
|
|
16
|
+
import { mergeRefs as Dt, useMergeRefs as St } from "react-merge-refs";
|
|
17
|
+
import { SnackbarContent as Tt, SnackbarProvider as Et, useSnackbar as Wt } from "notistack";
|
|
18
|
+
var Ft = Object.defineProperty, At = (e, t) => {
|
|
19
19
|
let o = {};
|
|
20
|
-
for (var r in e)
|
|
20
|
+
for (var r in e) Ft(o, r, {
|
|
21
21
|
get: e[r],
|
|
22
22
|
enumerable: !0
|
|
23
23
|
});
|
|
24
|
-
return t ||
|
|
25
|
-
},
|
|
24
|
+
return t || Ft(o, Symbol.toStringTag, { value: "Module" }), o;
|
|
25
|
+
}, Pt = _e(yt("studio:conditionalFormatDetailsTaskPane", () => import("./DScYIiZenzzEpqNX.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), It = ["lines"], Nt = /^[A-Za-z_\\][\w.\\]*$/, Rt = /^\$?[A-Za-z]{1,3}\$?\d+$/, jt = (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 Nt.test(o) && !Rt.test(o) ? o : t;
|
|
30
|
+
}, Ot = {
|
|
31
31
|
card: "_card_h0jnt_7",
|
|
32
32
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
33
33
|
icons: "_icons_h0jnt_16",
|
|
@@ -37,63 +37,63 @@ var Pt = Object.defineProperty, It = (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
|
+
}, Mt = ve(we((e, t) => {
|
|
41
|
+
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ke(), { closeSnackbar: c } = Wt(), [d, p] = Ee(!1), u = a ? ft.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof kt), g = Ce(() => {
|
|
42
42
|
p((e) => !e);
|
|
43
|
-
}, []), h =
|
|
43
|
+
}, []), h = Ce(() => {
|
|
44
44
|
c(o);
|
|
45
45
|
}, [o, c]);
|
|
46
46
|
let f = u?.message;
|
|
47
|
-
return !f &&
|
|
47
|
+
return !f && xe(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Xe(Tt, {
|
|
48
48
|
ref: t,
|
|
49
|
-
className:
|
|
50
|
-
children: Je
|
|
51
|
-
className:
|
|
49
|
+
className: Ct(Ot.root, "error-snackbar"),
|
|
50
|
+
children: Ye(Je, {
|
|
51
|
+
className: Ot.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: [Ye(Qe, {
|
|
58
|
+
className: Ot.actionRoot,
|
|
59
59
|
children: [
|
|
60
60
|
i ? null : n?.error,
|
|
61
|
-
|
|
61
|
+
Xe(ct, {
|
|
62
62
|
variant: "body2",
|
|
63
63
|
component: "div",
|
|
64
|
-
className:
|
|
64
|
+
className: Ot.typography,
|
|
65
65
|
children: f
|
|
66
66
|
}),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
className:
|
|
70
|
-
children: [m ?
|
|
67
|
+
Xe("div", { style: { flex: "1 1 auto" } }),
|
|
68
|
+
Ye("div", {
|
|
69
|
+
className: Ot.icons,
|
|
70
|
+
children: [m ? Xe(rt, {
|
|
71
71
|
"aria-label": l("toast.showMore"),
|
|
72
72
|
size: "small",
|
|
73
|
-
className:
|
|
73
|
+
className: Ct(Ot.expand, { [Ot.expandOpen]: d }),
|
|
74
74
|
onClick: g,
|
|
75
|
-
children:
|
|
76
|
-
}) : null,
|
|
75
|
+
children: Xe(Y, { iconKey: "ExpandMore" })
|
|
76
|
+
}) : null, Xe(rt, {
|
|
77
77
|
size: "small",
|
|
78
|
-
className:
|
|
78
|
+
className: Ot.expand,
|
|
79
79
|
onClick: h,
|
|
80
|
-
children:
|
|
80
|
+
children: Xe(Y, {
|
|
81
81
|
iconKey: "Close",
|
|
82
82
|
style: { transform: "scale(0.8)" }
|
|
83
83
|
})
|
|
84
84
|
})]
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
|
-
}), m ?
|
|
87
|
+
}), m ? Xe(et, {
|
|
88
88
|
in: d,
|
|
89
89
|
timeout: "auto",
|
|
90
|
-
children:
|
|
91
|
-
className:
|
|
90
|
+
children: Xe("div", {
|
|
91
|
+
className: Ot.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: Xe($e, {
|
|
97
97
|
error: a,
|
|
98
98
|
hideLineNumbers: !0
|
|
99
99
|
})
|
|
@@ -102,13 +102,13 @@ var Pt = Object.defineProperty, It = (e, t) => {
|
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
}));
|
|
105
|
-
|
|
106
|
-
var
|
|
107
|
-
const e =
|
|
108
|
-
return
|
|
105
|
+
Mt.displayName = "ToastError";
|
|
106
|
+
var $t = () => {
|
|
107
|
+
const e = ke();
|
|
108
|
+
return Xe(Re, {
|
|
109
109
|
label: "SheetXL",
|
|
110
110
|
description: e("logo.description"),
|
|
111
|
-
children: Ze
|
|
111
|
+
children: Xe(Ze, {
|
|
112
112
|
component: "a",
|
|
113
113
|
href: "https://www.sheetxl.com",
|
|
114
114
|
target: "_blank",
|
|
@@ -121,25 +121,25 @@ var Bt = () => {
|
|
|
121
121
|
marginLeft: "6px",
|
|
122
122
|
cursor: "pointer"
|
|
123
123
|
},
|
|
124
|
-
children:
|
|
124
|
+
children: Xe(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
|
+
}, Lt = Xe($t, {}), Bt = ve(we((e, t) => {
|
|
131
|
+
const { workbook: o, className: r, logo: n = Lt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = me(), p = d < 530, u = Te(null), m = St([
|
|
132
132
|
u,
|
|
133
133
|
c,
|
|
134
134
|
t
|
|
135
135
|
]);
|
|
136
|
-
return Ze
|
|
136
|
+
return Xe(Ze, {
|
|
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) => Ye(Ze, {
|
|
143
143
|
sx: {
|
|
144
144
|
display: "grid",
|
|
145
145
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -150,7 +150,7 @@ var Bt = () => {
|
|
|
150
150
|
paddingRight: (e) => e.spacing(1)
|
|
151
151
|
},
|
|
152
152
|
children: [
|
|
153
|
-
|
|
153
|
+
Ye(Ze, {
|
|
154
154
|
sx: {
|
|
155
155
|
display: "flex",
|
|
156
156
|
flexDirection: "row",
|
|
@@ -158,7 +158,7 @@ var Bt = () => {
|
|
|
158
158
|
justifyContent: "start",
|
|
159
159
|
gap: (e) => e.spacing(.5)
|
|
160
160
|
},
|
|
161
|
-
children: [n,
|
|
161
|
+
children: [n, Ye(Ze, {
|
|
162
162
|
sx: {
|
|
163
163
|
display: "flex",
|
|
164
164
|
flexDirection: "row",
|
|
@@ -168,7 +168,7 @@ var Bt = () => {
|
|
|
168
168
|
children: [i, e]
|
|
169
169
|
})]
|
|
170
170
|
}),
|
|
171
|
-
Ze
|
|
171
|
+
Xe(Ze, {
|
|
172
172
|
sx: {
|
|
173
173
|
display: "flex",
|
|
174
174
|
flexDirection: "row",
|
|
@@ -179,7 +179,7 @@ var Bt = () => {
|
|
|
179
179
|
},
|
|
180
180
|
children: a
|
|
181
181
|
}),
|
|
182
|
-
Ze
|
|
182
|
+
Xe(Ze, {
|
|
183
183
|
sx: {
|
|
184
184
|
display: "flex",
|
|
185
185
|
alignItems: "center",
|
|
@@ -192,12 +192,12 @@ var Bt = () => {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}));
|
|
195
|
-
|
|
196
|
-
var
|
|
195
|
+
Bt.displayName = "StudioToolbar";
|
|
196
|
+
var Kt = (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-" + mt.uuidV4(), "popup=true");
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function _t(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 Ht(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: vt("dialog.password.title"),
|
|
210
|
+
description: vt("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
211
211
|
inputType: "password",
|
|
212
212
|
options: [{
|
|
213
213
|
id: "Open",
|
|
214
|
-
label: () =>
|
|
214
|
+
label: () => vt("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: vt("dialog.password.open.retry")
|
|
220
220
|
} : {
|
|
221
221
|
valid: !1,
|
|
222
|
-
message:
|
|
222
|
+
message: vt("dialog.password.open.required")
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
return "Open" === o?.option ? o.input ?? null : null;
|
|
@@ -231,11 +231,11 @@ function Ht(e, t) {
|
|
|
231
231
|
let a;
|
|
232
232
|
o && (n.progress.onStart = o);
|
|
233
233
|
let s = -5;
|
|
234
|
-
return
|
|
234
|
+
return j.read({
|
|
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?.(vt("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 Ht(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(vt("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 Ht(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?.(vt("workbook.saving", { name: e?.getName() ?? "" }));
|
|
265
265
|
},
|
|
266
266
|
onComplete() {
|
|
267
267
|
a?.();
|
|
@@ -269,55 +269,55 @@ function Ht(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 = vt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await j.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = vt("dialog.writeWarnings.keep");
|
|
273
273
|
return o ? "Save" === await i.showOptions({
|
|
274
274
|
title: r,
|
|
275
|
-
type:
|
|
276
|
-
description: `${
|
|
275
|
+
type: J.Warning,
|
|
276
|
+
description: `${vt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
|
|
277
277
|
options: [{
|
|
278
278
|
id: "Save",
|
|
279
|
-
label: () =>
|
|
279
|
+
label: () => vt("dialog.save")
|
|
280
280
|
}, "Cancel"],
|
|
281
281
|
defaultOption: "Cancel"
|
|
282
|
-
}) && (a = await i?.showBusy?.(
|
|
282
|
+
}) && (a = await i?.showBusy?.(vt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
|
|
283
283
|
title: r,
|
|
284
|
-
type:
|
|
285
|
-
description: `${
|
|
284
|
+
type: J.Warning,
|
|
285
|
+
description: `${vt("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() ||
|
|
293
|
-
l = await
|
|
292
|
+
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || vt("workbook.defaultName")}.${r}`;
|
|
293
|
+
l = await j.writeAs(e, a, {
|
|
294
294
|
...s,
|
|
295
295
|
prompt: !0
|
|
296
296
|
});
|
|
297
|
-
} else l = await
|
|
297
|
+
} else l = await j.write(e, void 0, s);
|
|
298
298
|
return l;
|
|
299
299
|
};
|
|
300
300
|
let p = null;
|
|
301
301
|
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
302
|
-
const t =
|
|
302
|
+
const t = j.canRead() && !a();
|
|
303
303
|
e?.source ? t && p ? await p({
|
|
304
304
|
url: e.source,
|
|
305
305
|
title: e.title
|
|
306
|
-
}) :
|
|
306
|
+
}) : Kt(e.source, e.title) : t ? r({}) : Kt();
|
|
307
307
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
308
308
|
a() && "Close" !== await i.showOptions({
|
|
309
|
-
title:
|
|
310
|
-
description:
|
|
309
|
+
title: vt("dialog.confirm.title"),
|
|
310
|
+
description: vt("dialog.unsavedChanges"),
|
|
311
311
|
options: [{
|
|
312
312
|
id: "Close",
|
|
313
|
-
label: () =>
|
|
313
|
+
label: () => vt("dialog.close")
|
|
314
314
|
}, "Cancel"],
|
|
315
315
|
defaultOption: "Cancel"
|
|
316
316
|
}) || window.close();
|
|
317
317
|
} }), (async () => {
|
|
318
|
-
const t = await
|
|
318
|
+
const t = await j.getWriteFormats();
|
|
319
319
|
if (l) return;
|
|
320
|
-
const n =
|
|
320
|
+
const n = j.canWrite(), u = j.canRead();
|
|
321
321
|
if (n) {
|
|
322
322
|
const r = (e) => {
|
|
323
323
|
const r = e ? t.find((t) => t.key === e) : void 0;
|
|
@@ -331,13 +331,13 @@ function Ht(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: () => vt("command.saveAsFormat.label", { format: o.description }),
|
|
335
335
|
groupLabels: {
|
|
336
|
-
workbook: () =>
|
|
337
|
-
saveWorkbookOptions: () =>
|
|
336
|
+
workbook: () => vt("command.saveAsFormat.workbook", { format: o.description }),
|
|
337
|
+
saveWorkbookOptions: () => vt("command.saveAsFormat.compact", { format: o.description })
|
|
338
338
|
},
|
|
339
339
|
tags: o.tags,
|
|
340
|
-
description: () =>
|
|
340
|
+
description: () => vt("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 Ht(e, t) {
|
|
|
365
365
|
autoSelect: e === i.length - 1
|
|
366
366
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
367
367
|
}
|
|
368
|
-
},
|
|
368
|
+
}, xt("op.importData")), a.close();
|
|
369
369
|
} catch (e) {
|
|
370
370
|
i.showError(e);
|
|
371
371
|
}
|
|
@@ -374,9 +374,9 @@ function Ht(e, t) {
|
|
|
374
374
|
tags: ["noTransaction", "noRepeat"],
|
|
375
375
|
callback: async (e = null) => {
|
|
376
376
|
let t = e;
|
|
377
|
-
if (t ||
|
|
378
|
-
const e = await
|
|
379
|
-
return
|
|
377
|
+
if (t || j.canRead() || (t = await (async () => {
|
|
378
|
+
const e = await j.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
379
|
+
return gt.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
380
380
|
})(), t)) return m(t);
|
|
381
381
|
}
|
|
382
382
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -384,14 +384,14 @@ function Ht(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: vt("dialog.importFromWeb.title"),
|
|
388
|
+
description: vt("dialog.importFromWeb.description"),
|
|
389
|
+
inputLabel: vt("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: () => vt("dialog.import")
|
|
395
395
|
}]
|
|
396
396
|
});
|
|
397
397
|
if ("Import" !== t.option) return;
|
|
@@ -408,11 +408,11 @@ function Ht(e, t) {
|
|
|
408
408
|
}
|
|
409
409
|
}), u) {
|
|
410
410
|
const t = async () => !a() || "Open" === await i.showOptions({
|
|
411
|
-
title:
|
|
412
|
-
description:
|
|
411
|
+
title: vt("dialog.confirm.title"),
|
|
412
|
+
description: vt("dialog.unsavedChanges"),
|
|
413
413
|
options: [{
|
|
414
414
|
id: "Open",
|
|
415
|
-
label: () =>
|
|
415
|
+
label: () => vt("dialog.open")
|
|
416
416
|
}, "Cancel"],
|
|
417
417
|
defaultOption: "Cancel"
|
|
418
418
|
}), n = async (e = null) => {
|
|
@@ -435,14 +435,14 @@ function Ht(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: vt("dialog.openFromWeb.title"),
|
|
439
|
+
description: vt("dialog.openFromWeb.description"),
|
|
440
|
+
inputLabel: vt("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: () => vt("dialog.open")
|
|
446
446
|
}]
|
|
447
447
|
});
|
|
448
448
|
if ("Open" !== e.option) return;
|
|
@@ -462,9 +462,9 @@ function Ht(e, t) {
|
|
|
462
462
|
l = !0, s && (s.current = null);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
var
|
|
465
|
+
var zt = Ke(yt("studio:shortcutKeysDialog", () => import("./j5sUOLJOXDDfgzyV.mjs")).load);
|
|
466
466
|
y(), x();
|
|
467
|
-
var
|
|
467
|
+
var Ht = /* @__PURE__ */ new Set(["ui"]), Vt = (e) => {
|
|
468
468
|
const t = (e) => {
|
|
469
469
|
if ("function" != typeof e) return e;
|
|
470
470
|
try {
|
|
@@ -474,9 +474,9 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
474
474
|
}
|
|
475
475
|
}, o = (e, o) => {
|
|
476
476
|
const r = t(e);
|
|
477
|
-
return "string" == typeof r ?
|
|
477
|
+
return "string" == typeof r ? wt(r, o, ht.getActive()) : void 0;
|
|
478
478
|
}, r = [];
|
|
479
|
-
for (const n of e.names()) if (!
|
|
479
|
+
for (const n of e.names()) if (!Ht.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,
|
|
@@ -486,27 +486,27 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
486
486
|
getDescription: () => o(i?.description, i?.params) ?? "",
|
|
487
487
|
getShortcut: () => t(i?.shortcut) ?? null,
|
|
488
488
|
getScope: () => n,
|
|
489
|
-
getScopeLabel: () =>
|
|
489
|
+
getScopeLabel: () => G.DefaultCommandCatalogService.getScopeLabel(n)
|
|
490
490
|
}
|
|
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 =
|
|
494
|
+
}, Ut = (e) => {
|
|
495
|
+
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = G.useCommandScope(), c = ge(), { showModal: d } = Ue(), p = ke(), u = Te(a);
|
|
496
496
|
u.current = a;
|
|
497
|
-
const m =
|
|
497
|
+
const m = le(() => {
|
|
498
498
|
const e = l?.getRoot().getRegistry();
|
|
499
499
|
if (!e) return;
|
|
500
|
-
const t = d(
|
|
500
|
+
const t = d(zt, {
|
|
501
501
|
title: p("dialog.shortcutKeys.title"),
|
|
502
|
-
commands:
|
|
502
|
+
commands: Vt(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
|
+
De(() => {
|
|
510
510
|
if (!l) return;
|
|
511
511
|
const e = l.getRoot().contribution();
|
|
512
512
|
return function(e, t) {
|
|
@@ -522,8 +522,8 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
522
522
|
} });
|
|
523
523
|
}(e, { showShortcuts: m }), () => e.remove();
|
|
524
524
|
}, [l, m]);
|
|
525
|
-
const g =
|
|
526
|
-
|
|
525
|
+
const g = pt("(prefers-color-scheme: dark)"), { themeMode: h } = fe(), [f, k] = he(R.Mode, N[R.Mode]), [b, y] = he(R.DarkGrid, N[R.DarkGrid]), [w, x] = he(R.DarkImages, N[R.DarkImages]);
|
|
526
|
+
De(() => {
|
|
527
527
|
if (!l) return;
|
|
528
528
|
const e = l.getRoot().contribution();
|
|
529
529
|
return function(e, t) {
|
|
@@ -564,10 +564,10 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
564
564
|
y,
|
|
565
565
|
x
|
|
566
566
|
]);
|
|
567
|
-
const [v, C] =
|
|
568
|
-
|
|
569
|
-
v && v !==
|
|
570
|
-
}, [v]),
|
|
567
|
+
const [v, C] = he(Z.Active, null), [D, S] = Ee(() => ht.getActive());
|
|
568
|
+
De(() => ht.addChangeListener(S), []), De(() => {
|
|
569
|
+
v && v !== ht.getActive() && ht.setActive(v);
|
|
570
|
+
}, [v]), De(() => {
|
|
571
571
|
if (!l) return;
|
|
572
572
|
const e = l.getRoot().contribution();
|
|
573
573
|
return function(e, t) {
|
|
@@ -588,14 +588,14 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
588
588
|
D,
|
|
589
589
|
C
|
|
590
590
|
]);
|
|
591
|
-
const T =
|
|
592
|
-
|
|
591
|
+
const T = Se(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = ce({ target: T });
|
|
592
|
+
De(() => {
|
|
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 ? [] : [xt("reason.fullscreenUnavailable")],
|
|
599
599
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
600
600
|
callback: () => {
|
|
601
601
|
t.toggleFullscreen();
|
|
@@ -612,8 +612,8 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
612
612
|
W,
|
|
613
613
|
F
|
|
614
614
|
]);
|
|
615
|
-
const P =
|
|
616
|
-
return
|
|
615
|
+
const P = z(!0);
|
|
616
|
+
return De(() => {
|
|
617
617
|
if (!l) return;
|
|
618
618
|
const e = l.getRoot().contribution();
|
|
619
619
|
return function(e, t) {
|
|
@@ -624,9 +624,9 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
}(e, (e, t) => P.activate(e, t)), () => e.remove();
|
|
627
|
-
}, [l, P]),
|
|
627
|
+
}, [l, P]), De(() => {
|
|
628
628
|
if (!l || !o) return;
|
|
629
|
-
const e = l.getRoot().contribution(), t =
|
|
629
|
+
const e = l.getRoot().contribution(), t = _t(e, {
|
|
630
630
|
workbook: o,
|
|
631
631
|
setWorkbook: r,
|
|
632
632
|
workbookTitle: n ?? void 0,
|
|
@@ -646,9 +646,9 @@ var Ut = /* @__PURE__ */ new Set(["ui"]), Gt = (e) => {
|
|
|
646
646
|
i
|
|
647
647
|
]), t;
|
|
648
648
|
};
|
|
649
|
-
|
|
650
|
-
var
|
|
651
|
-
const t =
|
|
649
|
+
Ut.displayName = "StudioCommandProvider";
|
|
650
|
+
var Gt = ({ renderWorkbook: e }) => {
|
|
651
|
+
const t = G.useCommandResolver(), o = Te(null), r = ke(), [n, a] = Ee(null), i = Ce((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 Xt = ({ renderWorkbook: e }) => {
|
|
|
665
665
|
}
|
|
666
666
|
e.preventDefault();
|
|
667
667
|
}
|
|
668
|
-
}, [t]), s =
|
|
668
|
+
}, [t]), s = le((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)) {
|
|
@@ -690,15 +690,15 @@ var Xt = ({ renderWorkbook: e }) => {
|
|
|
690
690
|
} }
|
|
691
691
|
});
|
|
692
692
|
} else {
|
|
693
|
-
if (!
|
|
693
|
+
if (!j.canRead()) return;
|
|
694
694
|
const o = e.dataTransfer.items?.[0], n = "undefined" != typeof window && window.isSecureContext ? o?.getAsFileSystemHandle?.() : void 0;
|
|
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 = Se(() => {
|
|
699
699
|
if (!n) return null;
|
|
700
700
|
const e = "insertImage" === n;
|
|
701
|
-
return Ze
|
|
701
|
+
return Xe(Ze, {
|
|
702
702
|
className: "drop-overlay",
|
|
703
703
|
sx: {
|
|
704
704
|
position: "absolute",
|
|
@@ -709,12 +709,12 @@ var Xt = ({ renderWorkbook: e }) => {
|
|
|
709
709
|
display: "flex",
|
|
710
710
|
justifyContent: "center",
|
|
711
711
|
alignItems: "center",
|
|
712
|
-
backgroundColor: (e) =>
|
|
712
|
+
backgroundColor: (e) => dt(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: Ye(nt, {
|
|
718
718
|
elevation: 6,
|
|
719
719
|
sx: {
|
|
720
720
|
display: "flex",
|
|
@@ -726,11 +726,11 @@ var Xt = ({ renderWorkbook: e }) => {
|
|
|
726
726
|
color: "text.primary",
|
|
727
727
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
728
728
|
},
|
|
729
|
-
children: [
|
|
729
|
+
children: [Xe(Y, {
|
|
730
730
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
731
731
|
className: "drop-overlay-icon",
|
|
732
732
|
size: 32
|
|
733
|
-
}),
|
|
733
|
+
}), Xe(ct, {
|
|
734
734
|
variant: "h6",
|
|
735
735
|
component: "span",
|
|
736
736
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -738,7 +738,7 @@ var Xt = ({ renderWorkbook: e }) => {
|
|
|
738
738
|
})
|
|
739
739
|
});
|
|
740
740
|
}, [n, r]);
|
|
741
|
-
return
|
|
741
|
+
return Ye(qe, { children: [e({
|
|
742
742
|
ref: o,
|
|
743
743
|
onDragStart: (e) => {
|
|
744
744
|
if (e.target.src) {
|
|
@@ -751,52 +751,52 @@ var Xt = ({ renderWorkbook: e }) => {
|
|
|
751
751
|
onDragOver: i,
|
|
752
752
|
onDrop: s
|
|
753
753
|
}), l] });
|
|
754
|
-
},
|
|
754
|
+
}, qt = ve((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 Xe(D, {
|
|
757
757
|
initialAnchor: s,
|
|
758
|
-
children:
|
|
758
|
+
children: Xe(Ut, {
|
|
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: Xe(Gt, { 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
|
+
qt.displayName = "CommandsWrapper";
|
|
770
|
+
var Xt = {
|
|
771
|
+
sort: yt("studio:sortDialog", () => import("./eOKsk3UBMDeeE2K8.mjs")).load,
|
|
772
|
+
hyperlink: yt("studio:hyperlinkDialog", () => import("./DXGG2ZQw5gsEiizJ.mjs")).load,
|
|
773
|
+
find: yt("studio:findReplaceWindow", () => import("./CfvgBqV3sMafVSQM.mjs")).load,
|
|
774
|
+
tableNew: yt("studio:tableNewDialog", () => import("./BcZDO-Mj9HsII_hy.mjs")).load,
|
|
775
|
+
pivotTableNew: yt("studio:pivotTableNewDialog", () => import("./BS33GA7F0bkFfwXo.mjs")).load,
|
|
776
|
+
sparklineNew: yt("studio:sparklineNewDialog", () => import("./D0f2t3XyaDfFTC08.mjs")).load,
|
|
777
|
+
sparklineEdit: yt("studio:sparklineEditDialog", () => import("./wy1h9E1aAC6zMYna.mjs")).load,
|
|
778
|
+
namedDetails: yt("studio:namedReferenceDialog", () => import("./DG5EIoSdFG3FutGu.mjs")).load,
|
|
779
|
+
insertFunction: yt("studio:insertFunctionDialog", () => import("./tUUYzU1yWSNE4COh.mjs")).load,
|
|
780
|
+
resizeHeader: yt("studio:resizeHeaderDialog", () => import("./C5XI_nNcwDiNGqNp.mjs")).load,
|
|
781
|
+
outlineSettings: yt("studio:outlineSettingsDialog", () => import("./BcWKuDVZKC_PVYtg.mjs")).load,
|
|
782
|
+
fillSeries: yt("studio:fillSeriesDialog", () => import("./cFgQxgzJMvn3jgnS.mjs")).load,
|
|
783
|
+
workbookStatistics: yt("studio:workbookStatisticsDialog", () => import("./BT0yXqLFKoPiS71A.mjs")).load,
|
|
784
|
+
password: yt("studio:passwordDialog", () => import("./Db70KVKsFGdRlKEx.mjs")).load,
|
|
785
|
+
pivotValueSettings: yt("studio:pivotValueSettingsDialog", () => import("./COXiXFKdsF49hE5l.mjs")).load
|
|
786
|
+
}, Yt = ["find"], Zt = ve((e) => {
|
|
787
|
+
const { children: t } = e, o = Wt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = Te(/* @__PURE__ */ new Set()), i = Te(null), s = Te(null), [l, c] = Ee({
|
|
788
788
|
label: null,
|
|
789
789
|
progress: null
|
|
790
|
-
}), d =
|
|
791
|
-
|
|
790
|
+
}), d = ke(), p = mt.EmptyObject, u = Ve(p), m = Ge(p), g = He(p), h = Te(!1);
|
|
791
|
+
De(() => {
|
|
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 Yt) u(e, Xt[e], { prewarm: !0 }).catch(() => {});
|
|
796
796
|
});
|
|
797
797
|
return () => o(r);
|
|
798
798
|
}, []);
|
|
799
|
-
const f =
|
|
799
|
+
const f = Te(/* @__PURE__ */ new Set()), k = Se(() => {
|
|
800
800
|
const e = (e, t) => {
|
|
801
801
|
if (t?.onceKey) {
|
|
802
802
|
if (f.current.has(t.onceKey)) return;
|
|
@@ -804,16 +804,16 @@ var Zt = {
|
|
|
804
804
|
e.add(t.onceKey), f.current = e;
|
|
805
805
|
}
|
|
806
806
|
const o = {
|
|
807
|
-
variant: t?.type ??
|
|
807
|
+
variant: t?.type ?? J.Info,
|
|
808
808
|
anchorOrigin: {
|
|
809
809
|
vertical: "top",
|
|
810
810
|
horizontal: "center"
|
|
811
811
|
},
|
|
812
812
|
preventDuplicate: t?.preventDuplicate,
|
|
813
|
-
persist: t?.persist ?? t?.type ===
|
|
814
|
-
action: (e) =>
|
|
813
|
+
persist: t?.persist ?? t?.type === J.Error,
|
|
814
|
+
action: (e) => Xe(rt, {
|
|
815
815
|
onClick: () => n(e),
|
|
816
|
-
children:
|
|
816
|
+
children: Xe(Y, { 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 Zt = {
|
|
|
826
826
|
...t,
|
|
827
827
|
label: e
|
|
828
828
|
});
|
|
829
|
-
const r =
|
|
830
|
-
a.current.delete(o) && (a.current.size > 0 || (
|
|
829
|
+
const r = se(() => {
|
|
830
|
+
a.current.delete(o) && (a.current.size > 0 || (Be(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 Zt = {
|
|
|
838
838
|
progress: o
|
|
839
839
|
});
|
|
840
840
|
}, (e) => {
|
|
841
|
-
s.current = e, "string" == typeof e ?
|
|
841
|
+
s.current = e, "string" == typeof e ? ze(i.current, e) : c((t) => ({
|
|
842
842
|
...t,
|
|
843
843
|
label: e
|
|
844
844
|
}));
|
|
845
|
-
}), n =
|
|
845
|
+
}), n = ze(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 Zt = {
|
|
|
852
852
|
onKeyDown: (e) => {
|
|
853
853
|
e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
|
|
854
854
|
}
|
|
855
|
-
}, u(e,
|
|
855
|
+
}, u(e, Xt[e], t);
|
|
856
856
|
},
|
|
857
857
|
showOptions: m,
|
|
858
858
|
showInput: g,
|
|
859
859
|
showError: (t) => {
|
|
860
|
-
let o, r =
|
|
861
|
-
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof
|
|
860
|
+
let o, r = J.Error, n = d("error.unknown");
|
|
861
|
+
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof bt && (r = J.Info), e(n, {
|
|
862
862
|
type: r,
|
|
863
863
|
enqueueProps: { error: o }
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
};
|
|
867
|
-
}, [d]), b =
|
|
867
|
+
}, [d]), b = Se(() => Xe(We, {
|
|
868
868
|
ref: i,
|
|
869
869
|
autoStart: !1,
|
|
870
|
-
icon:
|
|
870
|
+
icon: Xe(Fe, { sx: {
|
|
871
871
|
transform: "scale(0.7)",
|
|
872
872
|
marginLeft: "-6px"
|
|
873
873
|
} }),
|
|
@@ -884,19 +884,19 @@ var Zt = {
|
|
|
884
884
|
pointerEvents: "none"
|
|
885
885
|
}
|
|
886
886
|
}), [l.label, l.progress]);
|
|
887
|
-
return
|
|
887
|
+
return Ye(ee, {
|
|
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
|
+
Zt.displayName = "StudioNotifierProvider";
|
|
893
|
+
var Jt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Qt = ve(we((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 = ue(), h = Se(() => 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 ? Ze
|
|
898
|
+
"string" == typeof r && (r = Xe(Y, { iconKey: r }));
|
|
899
|
+
const n = t === i, a = r ? Xe(Ze, {
|
|
900
900
|
sx: {
|
|
901
901
|
display: "inline-block",
|
|
902
902
|
transform: m ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -904,20 +904,20 @@ var eo = "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 = Ze
|
|
907
|
+
}) : null, l = !r || !c && n, d = Xe(Ze, {
|
|
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: Ze
|
|
914
|
+
children: Xe(Ze, {
|
|
915
915
|
sx: {
|
|
916
916
|
overflow: "hidden",
|
|
917
917
|
minWidth: 0,
|
|
918
918
|
minHeight: 0
|
|
919
919
|
},
|
|
920
|
-
children:
|
|
920
|
+
children: Xe(ct, {
|
|
921
921
|
component: "div",
|
|
922
922
|
sx: {
|
|
923
923
|
textTransform: "none",
|
|
@@ -930,13 +930,13 @@ var eo = "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 Xe(it, {
|
|
934
934
|
value: t,
|
|
935
|
-
label:
|
|
935
|
+
label: Xe(Me, {
|
|
936
936
|
disableInteractive: !0,
|
|
937
937
|
title: o.getTitle() ?? "",
|
|
938
938
|
placement: "left-start",
|
|
939
|
-
children:
|
|
939
|
+
children: Ye(Ze, {
|
|
940
940
|
sx: {
|
|
941
941
|
padding: "0px 0px",
|
|
942
942
|
writingMode: m ? "vertical-lr" : "vertical-rl",
|
|
@@ -956,7 +956,7 @@ var eo = "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: Ct("taskpane-strip-item", { "Mui-selected": n }),
|
|
960
960
|
onClick: () => e.onSelect(t)
|
|
961
961
|
}, t);
|
|
962
962
|
}), [
|
|
@@ -967,8 +967,8 @@ var eo = "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 Ze
|
|
970
|
+
]), f = de(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Se(() => Ct("taskpane-strip", p), [p]);
|
|
971
|
+
return Xe(Ze, {
|
|
972
972
|
ref: f,
|
|
973
973
|
className: k,
|
|
974
974
|
sx: {
|
|
@@ -978,7 +978,7 @@ var eo = "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: Xe(st, {
|
|
982
982
|
orientation: "vertical",
|
|
983
983
|
variant: "scrollable",
|
|
984
984
|
value: i,
|
|
@@ -996,10 +996,10 @@ var eo = "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
|
+
})), eo = (e) => {
|
|
1000
|
+
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Te(null), l = ke();
|
|
1001
|
+
return Xe(ot, {
|
|
1002
|
+
className: Ct({ "Mui-selected": a }),
|
|
1003
1003
|
sx: {
|
|
1004
1004
|
display: "flex",
|
|
1005
1005
|
flex: "1 1 %0",
|
|
@@ -1013,11 +1013,11 @@ var eo = "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) => dt(e.palette.action.hover, .03),
|
|
1017
|
+
borderBottom: `solid ${Jt} 1px`
|
|
1018
1018
|
},
|
|
1019
1019
|
...i,
|
|
1020
|
-
children:
|
|
1020
|
+
children: Ye(Ze, {
|
|
1021
1021
|
sx: {
|
|
1022
1022
|
display: "flex",
|
|
1023
1023
|
flex: "1 1 10%",
|
|
@@ -1028,15 +1028,15 @@ var eo = "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: [Ze
|
|
1031
|
+
children: [Xe(Ze, {
|
|
1032
1032
|
sx: {
|
|
1033
1033
|
flex: "1 1 100%",
|
|
1034
1034
|
paddingLeft: (e) => e.spacing(1)
|
|
1035
1035
|
},
|
|
1036
1036
|
children: t
|
|
1037
|
-
}),
|
|
1037
|
+
}), Xe(Re, {
|
|
1038
1038
|
label: l("taskPane.close"),
|
|
1039
|
-
children:
|
|
1039
|
+
children: Xe(rt, {
|
|
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 eo = "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: Xe(Y, { iconKey: "Close" })
|
|
1050
1050
|
})
|
|
1051
1051
|
})]
|
|
1052
1052
|
})
|
|
1053
1053
|
});
|
|
1054
|
-
},
|
|
1055
|
-
const { model: o, side: r, ...n } = e, a =
|
|
1056
|
-
return
|
|
1054
|
+
}, to = we((e, t) => {
|
|
1055
|
+
const { model: o, side: r, ...n } = e, a = ut(), i = `solid ${Jt} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
|
|
1056
|
+
return Xe(F, {
|
|
1057
1057
|
model: o,
|
|
1058
1058
|
ref: t,
|
|
1059
1059
|
propsFrame: { style: {
|
|
@@ -1062,8 +1062,8 @@ var eo = "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: eo,
|
|
1066
|
+
componentStrip: Qt,
|
|
1067
1067
|
side: r,
|
|
1068
1068
|
...e,
|
|
1069
1069
|
onOpen: () => {
|
|
@@ -1074,12 +1074,12 @@ var eo = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1074
1074
|
},
|
|
1075
1075
|
...n
|
|
1076
1076
|
});
|
|
1077
|
-
}),
|
|
1077
|
+
}), oo = "_styled-resizer_li52w_3", ro = {}, no = {
|
|
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
|
+
}, ao = ve(we((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] = he(a ?? null, ro), m = ut(), [g, { width: h }] = me(), f = h > 530 || 0 === h, k = Te(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 eo = "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 = St([
|
|
1123
1123
|
k,
|
|
1124
1124
|
g,
|
|
1125
1125
|
t
|
|
1126
1126
|
]);
|
|
1127
|
-
return
|
|
1127
|
+
return Xe(ne, {
|
|
1128
1128
|
ref: N,
|
|
1129
1129
|
className: s,
|
|
1130
1130
|
style: l ? {
|
|
1131
|
-
...
|
|
1131
|
+
...no,
|
|
1132
1132
|
...l
|
|
1133
|
-
} :
|
|
1133
|
+
} : no,
|
|
1134
1134
|
...d,
|
|
1135
1135
|
...C,
|
|
1136
1136
|
onPositionChange: I,
|
|
1137
1137
|
propsResizer: {
|
|
1138
|
-
className:
|
|
1138
|
+
className: Ct("styled-resizer", oo),
|
|
1139
1139
|
style: {
|
|
1140
1140
|
minWidth: f ? "7px" : void 0,
|
|
1141
1141
|
minHeight: f ? void 0 : "6px",
|
|
@@ -1150,15 +1150,15 @@ var eo = "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
|
+
ao.displayName = "StudioSplitPane";
|
|
1154
|
+
var io = () => Xe("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
|
+
} }), so = (e, t) => {
|
|
1159
|
+
const o = (e) => Xe(be.Fragment, { children: t[e] }, e);
|
|
1160
1160
|
if ("bottom" === e) {
|
|
1161
|
-
const e = t.statusBar && t.formulaBar ?
|
|
1161
|
+
const e = t.statusBar && t.formulaBar ? Xe(io, {}, "divider") : null;
|
|
1162
1162
|
return [
|
|
1163
1163
|
o("toolbar"),
|
|
1164
1164
|
o("main"),
|
|
@@ -1173,41 +1173,41 @@ var lo = () => Ze("div", { style: {
|
|
|
1173
1173
|
o("main"),
|
|
1174
1174
|
o("statusBar")
|
|
1175
1175
|
];
|
|
1176
|
-
},
|
|
1176
|
+
}, lo = (e) => {
|
|
1177
1177
|
const { groups: t } = e;
|
|
1178
|
-
return Ze
|
|
1178
|
+
return Xe(Ze, {
|
|
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) => Ye(ye, { children: [t > 0 ? Xe(Pe, { orientation: "horizontal" }) : null, e.map((e) => Xe(Ne, {
|
|
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 ? Xe(Oe, {}) : 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
|
+
}, co = (e) => Xe(lo, { ...e }), po = (e) => {
|
|
1195
|
+
const { pivot: t, name: o, source: r, onError: n } = e, s = ke(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Se(() => ({ scope: l.getName() }), [l]), p = le((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 = le((e) => {
|
|
1198
|
+
if (0 === e.length || e.length > 255) throw new kt(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 kt(s("error.pivotTable.nameExists"));
|
|
1201
1201
|
}, [
|
|
1202
1202
|
l,
|
|
1203
1203
|
t,
|
|
1204
1204
|
s
|
|
1205
|
-
]), m =
|
|
1205
|
+
]), m = le((e, o) => {
|
|
1206
1206
|
if ("accept" !== o.reason) return;
|
|
1207
|
-
const r =
|
|
1207
|
+
const r = jt(e);
|
|
1208
1208
|
r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
|
|
1209
1209
|
}, [t, n]);
|
|
1210
|
-
return
|
|
1210
|
+
return Ye(Ze, {
|
|
1211
1211
|
className: "sxl-pivot-table-header",
|
|
1212
1212
|
sx: {
|
|
1213
1213
|
display: "flex",
|
|
@@ -1215,14 +1215,14 @@ var lo = () => Ze("div", { style: {
|
|
|
1215
1215
|
rowGap: (e) => e.spacing(1),
|
|
1216
1216
|
paddingTop: (e) => e.spacing(1)
|
|
1217
1217
|
},
|
|
1218
|
-
children: [
|
|
1218
|
+
children: [Xe(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
|
+
}), Xe(a, {
|
|
1226
1226
|
grammar: "reference",
|
|
1227
1227
|
formName: "source",
|
|
1228
1228
|
label: s("pivotTableNew.source"),
|
|
@@ -1235,34 +1235,34 @@ var lo = () => Ze("div", { style: {
|
|
|
1235
1235
|
disabled: c || null === r
|
|
1236
1236
|
})]
|
|
1237
1237
|
});
|
|
1238
|
-
},
|
|
1239
|
-
renderMenu:
|
|
1238
|
+
}, uo = (e) => Xe(po, { ...e }), mo = (e) => Xe(E, {
|
|
1239
|
+
renderMenu: co,
|
|
1240
1240
|
renderFilter: g,
|
|
1241
|
-
renderHeader:
|
|
1241
|
+
renderHeader: uo,
|
|
1242
1242
|
...e
|
|
1243
|
-
}),
|
|
1244
|
-
EagerStudio: () =>
|
|
1245
|
-
default: () =>
|
|
1243
|
+
}), go = _e(yt("studio:dataValidationDetailsTaskPane", () => import("./CRJi4wTYJJJq2kEV.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), ho = At({
|
|
1244
|
+
EagerStudio: () => yo,
|
|
1245
|
+
default: () => yo
|
|
1246
1246
|
});
|
|
1247
1247
|
d(), S.registerTaskPane({
|
|
1248
1248
|
key: A.PivotTable,
|
|
1249
|
-
component:
|
|
1249
|
+
component: mo
|
|
1250
1250
|
}, !0), (() => {
|
|
1251
|
-
|
|
1251
|
+
q.register({
|
|
1252
1252
|
key: "changeShapeGallery",
|
|
1253
1253
|
contributions: { shapeToolbar: {
|
|
1254
1254
|
order: -1,
|
|
1255
1255
|
divider: "after"
|
|
1256
1256
|
} },
|
|
1257
|
-
render: (e) =>
|
|
1257
|
+
render: (e) => Xe(C, {
|
|
1258
1258
|
...e,
|
|
1259
1259
|
commandKey: "changeShape",
|
|
1260
|
-
excludeCategories:
|
|
1260
|
+
excludeCategories: It
|
|
1261
1261
|
})
|
|
1262
1262
|
}, !0);
|
|
1263
|
-
|
|
1264
|
-
})(),
|
|
1265
|
-
const e =
|
|
1263
|
+
$("shape", () => import("./BtYfA9MPu_ajX7Y9.mjs").then((e) => e.ShapeFormatPanel));
|
|
1264
|
+
})(), $("chart", () => import("./CspVpQ8x2lBzmEJr.mjs").then((e) => e.ChartFormatPanel)), (() => {
|
|
1265
|
+
const e = G.DefaultCommandButtonRegistry, t = [];
|
|
1266
1266
|
t.push(e.register({
|
|
1267
1267
|
key: "changePictureOptions",
|
|
1268
1268
|
defaultKey: "changePictureFromFile",
|
|
@@ -1299,10 +1299,10 @@ d(), S.registerTaskPane({
|
|
|
1299
1299
|
members: [
|
|
1300
1300
|
{
|
|
1301
1301
|
key: "cropToShapeGallery",
|
|
1302
|
-
render: (e) =>
|
|
1302
|
+
render: (e) => Xe(C, {
|
|
1303
1303
|
...e,
|
|
1304
1304
|
commandKey: "cropToShape",
|
|
1305
|
-
excludeCategories:
|
|
1305
|
+
excludeCategories: It
|
|
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: go
|
|
1321
1321
|
}, !0), S.registerTaskPane({
|
|
1322
1322
|
key: A.ConditionalFormat,
|
|
1323
|
-
component:
|
|
1323
|
+
component: Pt
|
|
1324
1324
|
}, !0), l(), s(), r(), t(), e(), n(), w();
|
|
1325
|
-
var
|
|
1325
|
+
var fo = () => {
|
|
1326
1326
|
let e, t;
|
|
1327
1327
|
const o = new Promise((o, r) => {
|
|
1328
1328
|
e = o, t = r;
|
|
@@ -1337,147 +1337,143 @@ var bo = () => {
|
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
1339
|
return o.catch(() => {}), r;
|
|
1340
|
-
},
|
|
1340
|
+
}, ko = (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:
|
|
1352
|
-
}), [
|
|
1353
|
-
|
|
1354
|
-
tt?.light,
|
|
1355
|
-
tt?.dark
|
|
1356
|
-
]), nt = "dark" === Xe, at = Ee(() => u(ot.light, ot.dark, `.${n}`, L), [
|
|
1357
|
-
ot,
|
|
1343
|
+
return n && "object" == typeof n ? mt.deepMerge(r, n) : r;
|
|
1344
|
+
}, bo = "taskPanePosition", yo = ve(we((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 = wo, taskPaneSide: x = "right", onKeyDown: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: $, cssBaseline: z, autoFocus: q = !1, title: J, onDirtyChange: ee, propsDocumentTitle: ne, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: ue, showFormulaBar: me, propsFormulaBar: ge, renderFormulaBar: ke, formulaBarPlacement: be, virtualKeyboard: ye = "float", editable: we, showStatusBar: xe, propsStatusBar: ve, renderStatusBar: We, propsToolbar: Fe, renderToolbar: Pe } = e, Ne = Te(null), Re = Te(null), Oe = Te(null), Me = le(() => {
|
|
1346
|
+
Oe.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
1347
|
+
}, []), $e = ((e, t = "undefined" == typeof window ? "mouse" : te.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(be), Be = "bottom" === $e ? ye : "none", { inset: Ke, offsetTop: _e } = pe("resize" === Be), ze = le(d ?? (() => {}), [d]), He = le(ee ?? (() => {}), [ee]), Ve = ne?.placeHolder, [Ue] = he(R.Mode, N[R.Mode]), { themeMode: Ge } = fe({ mode: Ue ?? void 0 }), [qe] = he(Z.Active, null), Je = Te(qe);
|
|
1348
|
+
Je.current = qe;
|
|
1349
|
+
const Qe = Se(() => ({
|
|
1350
|
+
light: Le(!1, mt.deepMerge(ko(A, !1), v($?.light?.app))),
|
|
1351
|
+
dark: Le(!0, mt.deepMerge(ko(A, !0), v($?.dark?.app)))
|
|
1352
|
+
}), [A, $]), et = "dark" === Ge, ot = Se(() => u(Qe.light, Qe.dark, `.${n}`, $), [
|
|
1353
|
+
Qe,
|
|
1358
1354
|
n,
|
|
1359
|
-
|
|
1360
|
-
]),
|
|
1361
|
-
|
|
1362
|
-
|
|
1355
|
+
$
|
|
1356
|
+
]), rt = L(), [it, st] = Ee(() => D ?? null);
|
|
1357
|
+
De(() => {
|
|
1358
|
+
st(D ?? null);
|
|
1363
1359
|
}, [D]);
|
|
1364
|
-
const [
|
|
1365
|
-
|
|
1366
|
-
const
|
|
1367
|
-
io:
|
|
1368
|
-
defaultTheme:
|
|
1369
|
-
reloadKey:
|
|
1370
|
-
}),
|
|
1360
|
+
const [ct, dt] = Ee(0), pt = Te(null);
|
|
1361
|
+
pt.current || (pt.current = fo());
|
|
1362
|
+
const ut = _(it, {
|
|
1363
|
+
io: j,
|
|
1364
|
+
defaultTheme: rt.getDefaultTheme(),
|
|
1365
|
+
reloadKey: ct
|
|
1366
|
+
}), gt = "loaded" === ut.status ? ut.workbook : null, ft = Se(() => "error" === ut.status ? {
|
|
1371
1367
|
status: "error",
|
|
1372
|
-
error:
|
|
1373
|
-
} : "loaded" ===
|
|
1368
|
+
error: ut.error
|
|
1369
|
+
} : "loaded" === ut.status ? {
|
|
1374
1370
|
status: "loaded",
|
|
1375
|
-
workbook:
|
|
1376
|
-
} : { status: "loading" }, [
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
}, [
|
|
1380
|
-
if ("loaded" ===
|
|
1381
|
-
const e =
|
|
1371
|
+
workbook: ut.workbook
|
|
1372
|
+
} : { status: "loading" }, [ut]);
|
|
1373
|
+
De(() => {
|
|
1374
|
+
pt.current.settled && (pt.current = fo());
|
|
1375
|
+
}, [it, ct]), De(() => {
|
|
1376
|
+
if ("loaded" === ft.status) {
|
|
1377
|
+
const e = pt.current, t = ft.workbook;
|
|
1382
1378
|
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 &&
|
|
1379
|
+
} else "error" === ft.status && (ze?.(ft.error), pt.current.reject(ft.error));
|
|
1380
|
+
}, [ft]);
|
|
1381
|
+
const [kt, bt] = Ee(null);
|
|
1382
|
+
gt && !kt && bt(gt);
|
|
1383
|
+
const yt = gt && kt && gt !== kt ? gt : null, wt = Te(yt);
|
|
1384
|
+
wt.current = yt;
|
|
1385
|
+
const xt = Te(kt);
|
|
1386
|
+
xt.current = kt;
|
|
1387
|
+
const vt = Te([]), Ct = Ce((e) => {
|
|
1388
|
+
const t = xt.current;
|
|
1389
|
+
t && vt.current.push(t), st(e);
|
|
1394
1390
|
}, []);
|
|
1395
|
-
|
|
1396
|
-
const e =
|
|
1391
|
+
De(() => {
|
|
1392
|
+
const e = vt.current;
|
|
1397
1393
|
if (0 !== e.length) {
|
|
1398
|
-
|
|
1394
|
+
vt.current = e.filter((e) => e === kt);
|
|
1399
1395
|
for (let t = 0; t < e.length; t++) {
|
|
1400
1396
|
const o = e[t];
|
|
1401
|
-
if (o !==
|
|
1397
|
+
if (o !== kt) try {
|
|
1402
1398
|
o.close();
|
|
1403
1399
|
} catch (e) {
|
|
1404
1400
|
console.warn("Unable to close the replaced workbook", e);
|
|
1405
1401
|
}
|
|
1406
1402
|
}
|
|
1407
1403
|
}
|
|
1408
|
-
}, [
|
|
1409
|
-
const
|
|
1410
|
-
const e =
|
|
1411
|
-
return e ?
|
|
1412
|
-
}, [
|
|
1413
|
-
|
|
1414
|
-
if (!
|
|
1415
|
-
let e =
|
|
1416
|
-
return
|
|
1404
|
+
}, [kt]);
|
|
1405
|
+
const St = we ? null : kt, Tt = K(), Wt = Se(() => {
|
|
1406
|
+
const e = St?.getSelectedWorksheet() ?? St?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
1407
|
+
return e ? M(e, { referenceMode: Tt }) : null;
|
|
1408
|
+
}, [St, Tt]), Ft = we ?? Wt, At = Te(Ft);
|
|
1409
|
+
At.current = Ft, De(() => {
|
|
1410
|
+
if (!Ft) return;
|
|
1411
|
+
let e = Ft.getSession();
|
|
1412
|
+
return Ft.subscribe(() => {
|
|
1417
1413
|
const t = e;
|
|
1418
|
-
if (e =
|
|
1414
|
+
if (e = Ft.getSession(), !t || e) return;
|
|
1419
1415
|
if ("formula-bar" !== t.getActiveEditorId()) return;
|
|
1420
|
-
const o =
|
|
1421
|
-
(o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) &&
|
|
1416
|
+
const o = Oe.current;
|
|
1417
|
+
(o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Ne.current?.focus();
|
|
1422
1418
|
});
|
|
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
|
|
1419
|
+
}, [Ft]);
|
|
1420
|
+
const Pt = V(kt), { isDirty: It, saveState: Nt } = U(kt, j), Rt = H(kt), jt = Te(Nt), Ot = Te(null);
|
|
1421
|
+
jt.current = Nt;
|
|
1422
|
+
const $t = Ce(() => jt.current?.isDirty() ?? !1, []), Lt = Te(ft);
|
|
1423
|
+
Lt.current = ft;
|
|
1424
|
+
const [Kt, _t] = Ee(null), zt = J ?? ne?.title, [Ht, Vt] = Ee(null);
|
|
1425
|
+
De(() => {
|
|
1426
|
+
Vt(null);
|
|
1427
|
+
}, [kt]);
|
|
1428
|
+
const Ut = zt ?? Ht ?? Pt ?? "";
|
|
1429
|
+
De(() => {
|
|
1430
|
+
He?.(It);
|
|
1431
|
+
}, [It]);
|
|
1432
|
+
const Gt = le(S ?? (() => {}), [S]);
|
|
1433
|
+
De(() => {
|
|
1434
|
+
Gt?.(gt);
|
|
1435
|
+
}, [gt]);
|
|
1436
|
+
const Xt = Te(gt);
|
|
1437
|
+
Xt.current = gt, B(kt, "onViewChange");
|
|
1438
|
+
const Yt = Se(() => Xe(Ae, {
|
|
1443
1439
|
groupKey: "helpOptions",
|
|
1444
1440
|
disableHover: !0,
|
|
1445
1441
|
sx: { padding: "0" },
|
|
1446
1442
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
1447
|
-
}), []), [
|
|
1448
|
-
|
|
1443
|
+
}), []), [Jt, Qt] = Ee(null), eo = Ce((e) => {
|
|
1444
|
+
Qt(e);
|
|
1449
1445
|
}, []);
|
|
1450
|
-
|
|
1451
|
-
|
|
1446
|
+
De(() => {
|
|
1447
|
+
X.prefetch([X.getActive(), W]).catch((e) => {
|
|
1452
1448
|
console.warn("Icons could not be loaded:", e);
|
|
1453
1449
|
});
|
|
1454
1450
|
}, []);
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
const
|
|
1458
|
-
const t =
|
|
1459
|
-
t && t !==
|
|
1460
|
-
}, []),
|
|
1451
|
+
const to = Te(null);
|
|
1452
|
+
to.current || (to.current = fo());
|
|
1453
|
+
const oo = Te(null), ro = Ce(() => oo.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? to.current.promise, []), no = le(async (e) => {
|
|
1454
|
+
const t = Je.current;
|
|
1455
|
+
t && t !== ht.getActive() && await ht.setActive(t), await G.DefaultCommandCatalogService.prefetch(t ?? void 0), _t(e), oo.current = e.source, to.current.settled || to.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
1456
|
+
}, []), io = Te(null), lo = Ce((e) => {
|
|
1461
1457
|
let t = null, r = {
|
|
1462
1458
|
readOnly: !0,
|
|
1463
|
-
...
|
|
1459
|
+
...ne
|
|
1464
1460
|
};
|
|
1465
|
-
return
|
|
1461
|
+
return ne?.hidden || (t = Xe(o, {
|
|
1466
1462
|
...r,
|
|
1467
1463
|
style: {
|
|
1468
1464
|
maxWidth: "100%",
|
|
1469
|
-
...
|
|
1465
|
+
...ne?.style
|
|
1470
1466
|
},
|
|
1471
|
-
workbook: e.workbook ??
|
|
1472
|
-
ref:
|
|
1473
|
-
title:
|
|
1474
|
-
modified:
|
|
1475
|
-
encrypted:
|
|
1476
|
-
placeHolder:
|
|
1467
|
+
workbook: e.workbook ?? Ne.current,
|
|
1468
|
+
ref: io,
|
|
1469
|
+
title: Ut,
|
|
1470
|
+
modified: It,
|
|
1471
|
+
encrypted: Rt,
|
|
1472
|
+
placeHolder: Ve,
|
|
1477
1473
|
onTitleChange: (e) => {
|
|
1478
|
-
|
|
1474
|
+
Vt(e), ne?.onTitleChange?.(e);
|
|
1479
1475
|
}
|
|
1480
|
-
})),
|
|
1476
|
+
})), Xe(Bt, {
|
|
1481
1477
|
...e,
|
|
1482
1478
|
logo: T,
|
|
1483
1479
|
mainElement: t,
|
|
@@ -1486,28 +1482,28 @@ var bo = () => {
|
|
|
1486
1482
|
});
|
|
1487
1483
|
}, [
|
|
1488
1484
|
T,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1485
|
+
Ut,
|
|
1486
|
+
It,
|
|
1487
|
+
Rt,
|
|
1488
|
+
ne,
|
|
1493
1489
|
E,
|
|
1494
1490
|
F
|
|
1495
1491
|
]);
|
|
1496
|
-
|
|
1497
|
-
const e =
|
|
1492
|
+
De(() => {
|
|
1493
|
+
const e = Ne.current;
|
|
1498
1494
|
if (!e) return;
|
|
1499
1495
|
const t = (t) => {
|
|
1500
|
-
(t.ctrlKey || t.metaKey || "native" !==
|
|
1496
|
+
(t.ctrlKey || t.metaKey || "native" !== re.getWheelOwner(t, e)) && t.preventDefault();
|
|
1501
1497
|
};
|
|
1502
1498
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
1503
1499
|
e.removeEventListener("wheel", t);
|
|
1504
1500
|
};
|
|
1505
|
-
}, [
|
|
1506
|
-
const [
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}, [
|
|
1510
|
-
const
|
|
1501
|
+
}, [Kt]);
|
|
1502
|
+
const [co, po] = Ee(null);
|
|
1503
|
+
De(() => {
|
|
1504
|
+
po(Kt?.source?.getCommandScope?.() ?? null);
|
|
1505
|
+
}, [Kt]);
|
|
1506
|
+
const uo = Se(() => ({
|
|
1511
1507
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
1512
1508
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
1513
1509
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -1520,46 +1516,46 @@ var bo = () => {
|
|
|
1520
1516
|
whiteSpace: "pre-wrap"
|
|
1521
1517
|
},
|
|
1522
1518
|
"*": { userSelect: "none" }
|
|
1523
|
-
}), []), [
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
}, [
|
|
1527
|
-
const
|
|
1528
|
-
model:
|
|
1519
|
+
}), []), [mo, go] = Ee(null), [, ho] = he(null, !1);
|
|
1520
|
+
De(() => {
|
|
1521
|
+
ho(null != mo);
|
|
1522
|
+
}, [mo, ho]);
|
|
1523
|
+
const yo = Ce((e) => w({
|
|
1524
|
+
model: kt,
|
|
1529
1525
|
side: x,
|
|
1530
1526
|
...e,
|
|
1531
1527
|
...y
|
|
1532
1528
|
}), [
|
|
1533
|
-
|
|
1529
|
+
kt,
|
|
1534
1530
|
x,
|
|
1535
1531
|
y
|
|
1536
|
-
]),
|
|
1537
|
-
|
|
1532
|
+
]), xo = Te(r);
|
|
1533
|
+
xo.current = r, de(t, () => ({
|
|
1538
1534
|
isStudioElement: () => !0,
|
|
1539
1535
|
save: (e) => {
|
|
1540
|
-
const t =
|
|
1536
|
+
const t = Ot.current;
|
|
1541
1537
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
1542
1538
|
},
|
|
1543
|
-
getWorkbookElement: () =>
|
|
1544
|
-
getWorkbook: () =>
|
|
1545
|
-
isDirty: () =>
|
|
1546
|
-
getEditable: () =>
|
|
1547
|
-
getFormulaBarElement: () =>
|
|
1548
|
-
focus: () =>
|
|
1549
|
-
whenReady: () => (
|
|
1550
|
-
getWorkbookState: () =>
|
|
1551
|
-
retry: () =>
|
|
1539
|
+
getWorkbookElement: () => Ne.current,
|
|
1540
|
+
getWorkbook: () => Xt.current ?? null,
|
|
1541
|
+
isDirty: () => jt.current?.isDirty() ?? !1,
|
|
1542
|
+
getEditable: () => At.current,
|
|
1543
|
+
getFormulaBarElement: () => Oe.current ?? null,
|
|
1544
|
+
focus: () => Ne.current?.focus(),
|
|
1545
|
+
whenReady: () => (pt.current || (pt.current = fo()), pt.current.promise),
|
|
1546
|
+
getWorkbookState: () => Lt.current,
|
|
1547
|
+
retry: () => dt((e) => e + 1)
|
|
1552
1548
|
}), [], r);
|
|
1553
|
-
const
|
|
1554
|
-
t ===
|
|
1555
|
-
t ===
|
|
1549
|
+
const vo = Te(!1), Co = le((e, t) => {
|
|
1550
|
+
t === wt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1551
|
+
t === wt.current && (vo.current = xo.current?.contains(document.activeElement) ?? !0, bt(t), no(e));
|
|
1556
1552
|
}));
|
|
1557
1553
|
}, []);
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
}, [
|
|
1561
|
-
const
|
|
1562
|
-
const { ref: t, ...o } = e, r =
|
|
1554
|
+
De(() => {
|
|
1555
|
+
vo.current && (vo.current = !1, Ne.current?.focus());
|
|
1556
|
+
}, [kt]);
|
|
1557
|
+
const Do = Ce((e) => {
|
|
1558
|
+
const { ref: t, ...o } = e, r = et ? Qe.dark : Qe.light, n = "error" === ft.status && g ? Xe(oe, {
|
|
1563
1559
|
render: g,
|
|
1564
1560
|
props: {
|
|
1565
1561
|
...f,
|
|
@@ -1568,10 +1564,10 @@ var bo = () => {
|
|
|
1568
1564
|
height: "100%",
|
|
1569
1565
|
...f?.style
|
|
1570
1566
|
},
|
|
1571
|
-
error:
|
|
1567
|
+
error: ft.error
|
|
1572
1568
|
}
|
|
1573
1569
|
}) : null;
|
|
1574
|
-
if (n && !
|
|
1570
|
+
if (n && !kt) return Xe(nt, {
|
|
1575
1571
|
style: {
|
|
1576
1572
|
width: "100%",
|
|
1577
1573
|
height: "100%",
|
|
@@ -1583,17 +1579,17 @@ var bo = () => {
|
|
|
1583
1579
|
children: n
|
|
1584
1580
|
});
|
|
1585
1581
|
let l = null;
|
|
1586
|
-
if (
|
|
1587
|
-
const e =
|
|
1588
|
-
render: void 0 ===
|
|
1582
|
+
if (kt) {
|
|
1583
|
+
const e = kt, n = e.getView(), a = me ?? n?.isShowFormulaBar(), i = xe ?? n?.isShowStatusBar(), s = Kt?.source ?? Ne.current, d = Xe(oe, {
|
|
1584
|
+
render: void 0 === Pe ? lo : Pe,
|
|
1589
1585
|
props: {
|
|
1590
1586
|
workbook: s,
|
|
1591
|
-
...
|
|
1587
|
+
...Fe
|
|
1592
1588
|
}
|
|
1593
|
-
}), u = "bottom" ===
|
|
1594
|
-
render: void 0 ===
|
|
1589
|
+
}), u = "bottom" === $e, g = a ? Xe(oe, {
|
|
1590
|
+
render: void 0 === ke ? m : ke,
|
|
1595
1591
|
props: {
|
|
1596
|
-
ref:
|
|
1592
|
+
ref: Oe,
|
|
1597
1593
|
style: {
|
|
1598
1594
|
marginTop: r.spacing(u ? .5 : .25),
|
|
1599
1595
|
marginLeft: r.spacing(1),
|
|
@@ -1601,73 +1597,69 @@ var bo = () => {
|
|
|
1601
1597
|
marginBottom: r.spacing(u ? .5 : .75)
|
|
1602
1598
|
},
|
|
1603
1599
|
workbook: e,
|
|
1604
|
-
editable:
|
|
1605
|
-
placement:
|
|
1606
|
-
floatOnKeyboard: "float" ===
|
|
1607
|
-
...
|
|
1600
|
+
editable: Ft ?? void 0,
|
|
1601
|
+
placement: $e,
|
|
1602
|
+
floatOnKeyboard: "float" === Be,
|
|
1603
|
+
...ge,
|
|
1608
1604
|
propsNamedCollectionEditor: {
|
|
1609
1605
|
restoreFocus: (e) => s?.focus(e),
|
|
1610
|
-
...
|
|
1606
|
+
...ge?.propsNamedCollectionEditor
|
|
1611
1607
|
}
|
|
1612
1608
|
}
|
|
1613
|
-
}) : null, f = i ?
|
|
1614
|
-
render: void 0 ===
|
|
1609
|
+
}) : null, f = i ? Xe(oe, {
|
|
1610
|
+
render: void 0 === We ? h : We,
|
|
1615
1611
|
props: {
|
|
1616
|
-
childrenEnd:
|
|
1617
|
-
...
|
|
1612
|
+
childrenEnd: Yt,
|
|
1613
|
+
...ve
|
|
1618
1614
|
}
|
|
1619
|
-
}) : null, k = (e, r) =>
|
|
1620
|
-
...
|
|
1615
|
+
}) : null, k = (e, r) => Xe(p, {
|
|
1616
|
+
...ue,
|
|
1621
1617
|
tabIndex: 0,
|
|
1622
|
-
autoFocus: !r &&
|
|
1618
|
+
autoFocus: !r && q,
|
|
1623
1619
|
workbook: e,
|
|
1624
|
-
editable: r ? void 0 :
|
|
1625
|
-
focusNameBox: r ? void 0 :
|
|
1620
|
+
editable: r ? void 0 : Ft ?? void 0,
|
|
1621
|
+
focusNameBox: r ? void 0 : Me,
|
|
1626
1622
|
prefetch: !r && c,
|
|
1627
|
-
ref: r ?
|
|
1628
|
-
onWorkbookLoad: r ? (t) =>
|
|
1623
|
+
ref: r ? Re : Dt([t, Ne]),
|
|
1624
|
+
onWorkbookLoad: r ? (t) => Co(t, e) : no,
|
|
1629
1625
|
onKeyDown: (e) => {
|
|
1630
1626
|
C?.(e);
|
|
1631
1627
|
},
|
|
1632
|
-
propsWorkbookLoading:
|
|
1628
|
+
propsWorkbookLoading: ce,
|
|
1633
1629
|
renderWorkbookLoading: null,
|
|
1634
1630
|
style: r ? {
|
|
1635
|
-
...
|
|
1631
|
+
...ue?.style,
|
|
1636
1632
|
position: "absolute",
|
|
1637
1633
|
inset: 0,
|
|
1638
1634
|
visibility: "hidden"
|
|
1639
1635
|
} : {
|
|
1640
1636
|
flex: "1 1 100%",
|
|
1641
1637
|
minHeight: 0,
|
|
1642
|
-
...
|
|
1638
|
+
...ue?.style
|
|
1643
1639
|
},
|
|
1644
1640
|
onContextMenu: (e) => e.preventDefault(),
|
|
1645
1641
|
...r ? null : o
|
|
1646
1642
|
}, e.getId());
|
|
1647
|
-
l =
|
|
1643
|
+
l = Xe("div", {
|
|
1648
1644
|
style: {
|
|
1649
1645
|
display: "flex",
|
|
1650
1646
|
flexDirection: "column",
|
|
1651
1647
|
flex: "1 1 100%",
|
|
1652
1648
|
minWidth: 0,
|
|
1653
|
-
minHeight: 0
|
|
1654
|
-
...M({
|
|
1655
|
-
window: r.palette.background.default,
|
|
1656
|
-
windowText: r.palette.text.primary
|
|
1657
|
-
})
|
|
1649
|
+
minHeight: 0
|
|
1658
1650
|
},
|
|
1659
|
-
children:
|
|
1651
|
+
children: so($e, {
|
|
1660
1652
|
toolbar: d,
|
|
1661
1653
|
formulaBar: g,
|
|
1662
1654
|
statusBar: f,
|
|
1663
|
-
main:
|
|
1655
|
+
main: Xe(ao, {
|
|
1664
1656
|
taskSide: x,
|
|
1665
|
-
persistKey:
|
|
1666
|
-
sidebarElement:
|
|
1667
|
-
scope:
|
|
1668
|
-
children:
|
|
1657
|
+
persistKey: bo,
|
|
1658
|
+
sidebarElement: mo ? Xe(G.CommandScopeProvider, {
|
|
1659
|
+
scope: co,
|
|
1660
|
+
children: mo
|
|
1669
1661
|
}) : void 0,
|
|
1670
|
-
mainElement:
|
|
1662
|
+
mainElement: Ye("div", {
|
|
1671
1663
|
style: {
|
|
1672
1664
|
position: "relative",
|
|
1673
1665
|
display: "flex",
|
|
@@ -1676,8 +1668,8 @@ var bo = () => {
|
|
|
1676
1668
|
minWidth: 0,
|
|
1677
1669
|
minHeight: 0
|
|
1678
1670
|
},
|
|
1679
|
-
children: [[k(
|
|
1680
|
-
ref:
|
|
1671
|
+
children: [[k(kt, !1), yt ? k(yt, !0) : null], Xe(Ze, {
|
|
1672
|
+
ref: eo,
|
|
1681
1673
|
sx: {
|
|
1682
1674
|
position: "absolute",
|
|
1683
1675
|
top: "10%",
|
|
@@ -1693,16 +1685,16 @@ var bo = () => {
|
|
|
1693
1685
|
})
|
|
1694
1686
|
});
|
|
1695
1687
|
}
|
|
1696
|
-
const d = !
|
|
1697
|
-
render:
|
|
1698
|
-
props: { ...
|
|
1688
|
+
const d = !Kt && se ? Xe(oe, {
|
|
1689
|
+
render: se,
|
|
1690
|
+
props: { ...ce }
|
|
1699
1691
|
}) : null;
|
|
1700
|
-
return
|
|
1701
|
-
sx:
|
|
1692
|
+
return Ye(nt, {
|
|
1693
|
+
sx: uo,
|
|
1702
1694
|
style: {
|
|
1703
1695
|
width: "100%",
|
|
1704
|
-
height:
|
|
1705
|
-
transform:
|
|
1696
|
+
height: Ke ? `calc(100% - ${Ke}px)` : "100%",
|
|
1697
|
+
transform: _e ? `translateY(${_e}px)` : void 0,
|
|
1706
1698
|
position: "absolute",
|
|
1707
1699
|
display: "flex",
|
|
1708
1700
|
alignItems: "stretch",
|
|
@@ -1715,7 +1707,7 @@ var bo = () => {
|
|
|
1715
1707
|
variant: s,
|
|
1716
1708
|
children: [
|
|
1717
1709
|
l,
|
|
1718
|
-
n ?
|
|
1710
|
+
n ? Xe(nt, {
|
|
1719
1711
|
style: {
|
|
1720
1712
|
position: "absolute",
|
|
1721
1713
|
inset: 0,
|
|
@@ -1725,114 +1717,114 @@ var bo = () => {
|
|
|
1725
1717
|
},
|
|
1726
1718
|
children: n
|
|
1727
1719
|
}) : null,
|
|
1728
|
-
d ?
|
|
1720
|
+
d ? Xe("div", {
|
|
1729
1721
|
style: {
|
|
1730
1722
|
position: "absolute",
|
|
1731
1723
|
inset: 0,
|
|
1732
1724
|
display: "flex",
|
|
1733
1725
|
alignItems: "center",
|
|
1734
1726
|
justifyContent: "center",
|
|
1735
|
-
background: `var(--sxl-color-base-100, ${
|
|
1727
|
+
background: `var(--sxl-color-base-100, ${et ? "#121212" : "#fff"})`
|
|
1736
1728
|
},
|
|
1737
1729
|
children: d
|
|
1738
1730
|
}) : null
|
|
1739
1731
|
]
|
|
1740
1732
|
});
|
|
1741
1733
|
}, [
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1734
|
+
ft,
|
|
1735
|
+
kt,
|
|
1736
|
+
yt,
|
|
1737
|
+
Kt,
|
|
1738
|
+
Ut,
|
|
1739
|
+
se,
|
|
1740
|
+
ce,
|
|
1741
|
+
ue,
|
|
1750
1742
|
a,
|
|
1751
1743
|
i,
|
|
1752
1744
|
s,
|
|
1753
|
-
|
|
1745
|
+
Yt,
|
|
1754
1746
|
g,
|
|
1755
1747
|
f,
|
|
1748
|
+
lo,
|
|
1749
|
+
uo,
|
|
1756
1750
|
mo,
|
|
1757
|
-
fo,
|
|
1758
|
-
ko,
|
|
1759
1751
|
x,
|
|
1760
|
-
|
|
1752
|
+
co,
|
|
1753
|
+
me,
|
|
1761
1754
|
ge,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1755
|
+
ke,
|
|
1756
|
+
$e,
|
|
1757
|
+
Ft,
|
|
1758
|
+
xe,
|
|
1759
|
+
ve,
|
|
1760
|
+
We,
|
|
1761
|
+
Fe,
|
|
1769
1762
|
Pe,
|
|
1770
|
-
|
|
1763
|
+
Be,
|
|
1764
|
+
Ke,
|
|
1771
1765
|
_e,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
ot,
|
|
1775
|
-
nt
|
|
1766
|
+
Qe,
|
|
1767
|
+
et
|
|
1776
1768
|
]);
|
|
1777
|
-
let
|
|
1769
|
+
let So = Xe(Et, {
|
|
1778
1770
|
maxSnack: 3,
|
|
1779
|
-
domRoot:
|
|
1771
|
+
domRoot: Jt ?? void 0,
|
|
1780
1772
|
anchorOrigin: {
|
|
1781
1773
|
vertical: "bottom",
|
|
1782
1774
|
horizontal: "right"
|
|
1783
1775
|
},
|
|
1784
1776
|
autoHideDuration: 3500,
|
|
1785
1777
|
onClose: (e, t, o) => {
|
|
1786
|
-
|
|
1778
|
+
Ne.current?.focus();
|
|
1787
1779
|
},
|
|
1788
|
-
Components: { error:
|
|
1780
|
+
Components: { error: Mt },
|
|
1789
1781
|
iconVariant: {
|
|
1790
|
-
success:
|
|
1782
|
+
success: Xe(at, {
|
|
1791
1783
|
style: { marginRight: "8px" },
|
|
1792
|
-
children:
|
|
1784
|
+
children: Xe("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
1785
|
}),
|
|
1794
|
-
error:
|
|
1786
|
+
error: Xe(Y, {
|
|
1795
1787
|
iconKey: "ErrorAlert",
|
|
1796
1788
|
style: { marginRight: "8px" }
|
|
1797
1789
|
})
|
|
1798
1790
|
},
|
|
1799
|
-
children:
|
|
1800
|
-
workbook:
|
|
1801
|
-
children:
|
|
1802
|
-
renderArea:
|
|
1791
|
+
children: Xe(O, {
|
|
1792
|
+
workbook: kt,
|
|
1793
|
+
children: Xe(P, {
|
|
1794
|
+
renderArea: yo,
|
|
1803
1795
|
onUpdateArea: (e) => {
|
|
1804
|
-
|
|
1796
|
+
go(e);
|
|
1805
1797
|
},
|
|
1806
|
-
children:
|
|
1807
|
-
workbook:
|
|
1808
|
-
initialCommandAnchor:
|
|
1809
|
-
renderWorkbook:
|
|
1810
|
-
setWorkbook:
|
|
1811
|
-
titleWorkbook:
|
|
1812
|
-
setWorkbookTitle:
|
|
1813
|
-
refDocumentTitle:
|
|
1814
|
-
isDirty:
|
|
1815
|
-
refSave:
|
|
1798
|
+
children: Xe(je, { children: Xe(Zt, { children: Xe(ie, { children: Xe(Q, { children: Xe(qt, {
|
|
1799
|
+
workbook: kt,
|
|
1800
|
+
initialCommandAnchor: ro,
|
|
1801
|
+
renderWorkbook: Do,
|
|
1802
|
+
setWorkbook: Ct,
|
|
1803
|
+
titleWorkbook: Ut,
|
|
1804
|
+
setWorkbookTitle: Vt,
|
|
1805
|
+
refDocumentTitle: io,
|
|
1806
|
+
isDirty: $t,
|
|
1807
|
+
refSave: Ot,
|
|
1816
1808
|
host: r
|
|
1817
1809
|
}) }) }) }) })
|
|
1818
1810
|
})
|
|
1819
1811
|
})
|
|
1820
1812
|
});
|
|
1821
|
-
return
|
|
1822
|
-
theme:
|
|
1813
|
+
return So = Ye(lt, {
|
|
1814
|
+
theme: et ? Qe.dark : Qe.light,
|
|
1823
1815
|
children: [
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1816
|
+
z ? Xe(tt, {}) : null,
|
|
1817
|
+
Xe(ae, { css: ot }),
|
|
1818
|
+
Xe(I, { scopeClass: n }),
|
|
1819
|
+
Xe(Ie, {
|
|
1828
1820
|
themeScopeClass: n,
|
|
1829
1821
|
themeSurface: "app",
|
|
1830
|
-
themeMode:
|
|
1831
|
-
children:
|
|
1822
|
+
themeMode: Ge,
|
|
1823
|
+
children: So
|
|
1832
1824
|
})
|
|
1833
1825
|
]
|
|
1834
|
-
}),
|
|
1826
|
+
}), So;
|
|
1835
1827
|
}));
|
|
1836
|
-
|
|
1837
|
-
var
|
|
1838
|
-
export {
|
|
1828
|
+
yo.displayName = "EagerStudio";
|
|
1829
|
+
var wo = (e) => Xe(to, { ...e });
|
|
1830
|
+
export { yo as EagerStudio, yo as default, jt as n, ho as t };
|