@sheetxl/studio-mui 0.8.0-beta.15 → 0.8.0-beta.17
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/LICENSE.md +17 -7
- package/browser/esm/{DJVpra0HoPH-4P7P.mjs → 0FLmtunmoRFjO-dk.mjs} +3 -3
- package/browser/esm/{6SL2j-85OXrKJNZ5.mjs → B2LvYLt27hzoarA9.mjs} +1807 -1200
- package/browser/esm/{D90Bb0GPEwqYkf6R.mjs → BBGsto_-YGhTouc9.mjs} +804 -713
- package/browser/esm/{BR51amBhaaHPBhpd.mjs → BEIcp6BzAg3H6JBB.mjs} +3 -3
- package/browser/esm/{EFtp_C3sBnP3Nrns.mjs → BFN88LECqMerqLYN.mjs} +7 -7
- package/browser/esm/{ghfcAaGu2CuZGdhi.mjs → BGNhe08mdWf8dIuk.mjs} +34 -33
- package/browser/esm/BNfIFd07bhGqs-U9.mjs +235 -0
- package/browser/esm/{CcJHwg-rLMcCymSD.mjs → BTb_Djaoxz3G27t-.mjs} +6 -6
- package/browser/esm/{Cl_OUigCV04_zrRy.mjs → BXhWCOPioL48V_9k.mjs} +2 -2
- package/browser/esm/{DsM-NpB32hloRRR8.mjs → Bh1YkrKuSZs-xdlw.mjs} +3 -3
- package/browser/esm/{CV-q-xCHVuNFhqEF.mjs → BkABsPS9qbyYS2i7.mjs} +2 -2
- package/browser/esm/{Buzx8_zQYPX4DR7v.mjs → BnLdmQ91UIGs0zyR.mjs} +2 -2
- package/browser/esm/BnMZSJdWZzdK-AXs.mjs +119 -0
- package/browser/esm/BoXCzcrUFER3B585.mjs +225 -0
- package/browser/esm/{BNas8wZuvrN45dRi.mjs → BxHaU8-LCw4IHrDn.mjs} +2 -2
- package/browser/esm/C2ZbV5cXpGPYeqM1.mjs +106 -0
- package/browser/esm/C8kveDS4xm6D2Aaq.mjs +294 -0
- package/browser/esm/{OHvsc940xI-m_8cc.mjs → CHm8-sLarqD1--If.mjs} +2 -2
- package/browser/esm/{DOWfcHx0MO0J50de.mjs → CMIM0wPs_KvfwLEl.mjs} +92 -87
- package/browser/esm/{DY_EGsyx-zNiJS_0.mjs → CP-c6sUINCv0Nf4P.mjs} +5 -5
- package/browser/esm/{BCDAnHFMvOd9XS8K.mjs → CaI0Mfu6ECDIzCpr.mjs} +3 -3
- package/browser/esm/{Bvq5aZyp5E79JB-s.mjs → Cb3HSSD7snyRPNh8.mjs} +2 -2
- package/browser/esm/{BsAoK_t2sn8IHtAO.mjs → Cf855AHLcB7WuFr3.mjs} +3 -3
- package/browser/esm/{Bqba-3J9i8HsmusR.mjs → ChORBNItvZW0e8Nb.mjs} +2 -2
- package/browser/esm/{DfI4-5XM6AbILSti.mjs → CmMD76_yBG4xmsEr.mjs} +4 -4
- package/browser/esm/{idh3Y0jksygPSI3A.mjs → CuysyoZ-rmDHwaJJ.mjs} +2 -2
- package/browser/esm/{DMDi2lOps0veJKsM.mjs → Cvbms6f8QMP1ubyI.mjs} +3 -3
- package/browser/esm/{DKkKac2vbeui2lDy.mjs → CvzzESAZRMWQ4cGq.mjs} +6 -6
- package/browser/esm/{DFAphWcDUw-gVtAl.mjs → D078ssKRI39FdHNq.mjs} +3 -3
- package/browser/esm/{BvpzsprI7cmVLuQn.mjs → D1_8p15KJ7DSZEis.mjs} +3 -3
- package/browser/esm/{Dz20q7S5vmDWlO0p.mjs → D2Kz08pq5zPz2n3y.mjs} +2 -2
- package/browser/esm/{BojGnpAWoIm5yCd8.mjs → D4FRExfK7RsdS08S.mjs} +2 -2
- package/browser/esm/{CJWnWqGPw17cp9P3.mjs → D9ija-5d57x-qUQv.mjs} +2 -2
- package/browser/esm/{DAYPqhHN3aQ2StjU.mjs → DGkQsCJP29nZteu8.mjs} +14 -14
- package/browser/esm/{DR9y7k4jB7stGPaZ.mjs → DK39s_Fn9M22RfJm.mjs} +3 -3
- package/browser/esm/{CutWdrVA-c3x8IkL.mjs → DL0r5MrPx8CkL_r_.mjs} +5 -4
- package/browser/esm/{IlX2PgLxvyTQu4Fh.mjs → DQjJFUPHg_aU2BDi.mjs} +5 -5
- package/browser/esm/{OmA1ClZ36ZMFrZe7.mjs → DcUtMgA17fh_UJlQ.mjs} +2 -2
- package/browser/esm/{BfPTOOKhwUojRTef.mjs → Dd6iR6EeV81idc-J.mjs} +13 -9
- package/browser/esm/{DLe9DT0DSurLSgiQ.mjs → Dd8j9U2Vlvrue2LA.mjs} +2 -2
- package/browser/esm/{BkxJY_YjMAEvhmuy.mjs → DmBu6kgMNT26tmsZ.mjs} +4 -4
- package/browser/esm/{DpAlQza0e5h3GGHC.mjs → DrtEkQTJM7oPvC9v.mjs} +3 -3
- package/browser/esm/DwiKIdqmaBk2pTBp.mjs +973 -0
- package/browser/esm/{C67SLDHwhVlVIMo0.mjs → Dx0ymWD1uI_Q63eZ.mjs} +3 -3
- package/browser/esm/{Ci74yk0whfoAP1TL.mjs → DxFw-07oIjr7GRb3.mjs} +2 -2
- package/browser/esm/{BH4eDAxZdwheO7d_.mjs → GqSAEzE_2tOJlvNG.mjs} +3 -3
- package/browser/esm/{By1IJOkvZJSlXs5f.mjs → JqMZ95e5lhq09vm6.mjs} +3 -3
- package/browser/esm/{DzATG8XMcG6mmYbx.mjs → LaC0D0C9yJ8y_l6X.mjs} +9 -9
- package/browser/esm/{BYnzaHXySiV-sc6w.mjs → NQzIcNkm0QxNuzx9.mjs} +2 -2
- package/browser/esm/{DYDnkmllpYTwfWir.mjs → W5Rvml-3G4XekwoR.mjs} +4 -4
- package/browser/esm/_PlChb18jQMPAKJX.mjs +360 -0
- package/browser/esm/{BWdpv2xf6GCyd4Te.mjs → cNsbq0TIia7SdBHP.mjs} +5 -5
- package/browser/esm/{Cbkg5y4fYjLylYHF.mjs → fSCwNKAcSc0mr2Ec.mjs} +2 -2
- package/browser/esm/g_bvg4HpyaF6f_JY.mjs +424 -0
- package/browser/esm/index.mjs +278 -277
- package/browser/esm/{C8tci3dfo5lzeoK-.mjs → mP32LfcEodsaGDPi.mjs} +6 -6
- package/browser/esm/{BvbN9V67wFhTfq1-.mjs → sjJ2Yb_cf_KL--Cl.mjs} +3 -3
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{DybPyX8U-EqXKarV.mjs → 5Kkr-d9gc7GsfmI5.mjs} +2 -2
- package/node/esm/B6YmbuWU-fHrjOnB.mjs +106 -0
- package/node/esm/{DwA7rfXJgzoNvjax.mjs → BGWb71anMM4S4UTg.mjs} +8 -8
- package/node/esm/{C4eVfVm_Omyt6NbE.mjs → BINV_bzMi8YLqzor.mjs} +12 -12
- package/node/esm/{DGtbmp72kfRXLtDu.mjs → BWl0RjNZfoJvRX_2.mjs} +81 -80
- package/node/esm/{-Adgw5-ltK-rfp33.mjs → BiVdQ27eA1Rs9liu.mjs} +2 -2
- package/node/esm/{CkW8xNdW45Xg7jy7.mjs → Bp6WSG8tmXefxSlk.mjs} +3 -3
- package/node/esm/BrHbeFtSmaPq19cu.mjs +224 -0
- package/node/esm/BySbwlaepgugcINA.mjs +972 -0
- package/node/esm/{q2Byx8RdDnHk8YyG.mjs → BzLnWJ1JhLnookTH.mjs} +2 -2
- package/node/esm/{Bg3Yu66oJr6mNvAR.mjs → C-Y0ELSBNT5h6V0l.mjs} +3 -3
- package/node/esm/{TgwnKYh-WPxEgmyr.mjs → CA2iwgwOkAwRJU9j.mjs} +2 -2
- package/node/esm/{CzKFdVrPSDYOUdWI.mjs → CCy_wcDWd9xbQnyM.mjs} +2 -2
- package/node/esm/{D9Ga7FFJDOO3Dpfu.mjs → CD-S0_rfDY5u82_A.mjs} +2 -2
- package/node/esm/{Cx4tBEsm3SjAafcw.mjs → CQd5k9d0BWpU8yCQ.mjs} +2 -2
- package/node/esm/{BZK6UksX7r-GgRms.mjs → Cb0TicO5Utg9e5Qy.mjs} +2 -2
- package/node/esm/{DOuASwH2Lf83hMLe.mjs → ClwmPxZc7Uh4nRcr.mjs} +2 -2
- package/node/esm/{dUUbrmGMCILl8EOr.mjs → CyxhIZwqwx_Kt70P.mjs} +2 -2
- package/node/esm/D1XvISMVj1HimOTS.mjs +425 -0
- package/node/esm/{B26ot2vO6Hd47uH0.mjs → D2ZUCui3Xosjj66H.mjs} +2 -2
- package/node/esm/{BaFRVcYZjcLoMQtk.mjs → D71TbUFABfTixyiQ.mjs} +7 -7
- package/node/esm/{ISBEql8s7AnELTpd.mjs → D7__y1LhVOR38yxz.mjs} +2 -2
- package/node/esm/{Ca31PUiJBGowHeob.mjs → D9jTg0iWTubkisDB.mjs} +3 -3
- package/node/esm/{5etzEfk-28CCELyT.mjs → DHiJ5D_q7YVsClMf.mjs} +3 -3
- package/node/esm/{BxIyViNSP0STSrfA.mjs → DJuEU0TbZXyTnThP.mjs} +3 -3
- package/node/esm/{D_JpopAVQopM26cb.mjs → DMfK0wa8UHeJyxii.mjs} +603 -514
- package/node/esm/{CFi_Yls-gurU_CX3.mjs → DN2KKVrC1ye0mldi.mjs} +2 -2
- package/node/esm/{HlNuwtpYoOARa894.mjs → DYRV7b1ZSbxrjcuA.mjs} +2 -2
- package/node/esm/Dm-skjfQUaumyQPp.mjs +118 -0
- package/node/esm/{jGsHbOHP90nnx_hJ.mjs → DvN4Z2Hx4Es0sdaK.mjs} +16 -15
- package/node/esm/{CORxK68HpwPUYA6O.mjs → Jp--thwzf0FSnHTH.mjs} +2 -2
- package/node/esm/{BKCNFVrdc_gTnOoS.mjs → a69xG_vSg2OC9_22.mjs} +2 -2
- package/node/esm/{CX13ASkhdJ0ZSAY4.mjs → akKdwInE4KLNjHQu.mjs} +3 -3
- package/node/esm/axzlGUKK8euccdja.mjs +294 -0
- package/node/esm/index.mjs +3391 -2778
- package/node/esm/{B7vbn_dO_cZnGyGM.mjs → lhMHEjzlz63h_qU0.mjs} +3 -3
- package/node/esm/{CexPhV2NPh5ZGHus.mjs → r8bpi-MSpulvmozZ.mjs} +2 -2
- package/node/esm/{BFv2GzY6NjmJggAg.mjs → sHdUrEwlYxyLkkL6.mjs} +3 -3
- package/package.json +10 -10
- package/resources/locales/de/groups.cmd.json +3 -0
- package/resources/locales/de/ui.msg.json +41 -0
- package/resources/locales/en/groups.cmd.json +3 -0
- package/resources/locales/en/ui.msg.json +41 -0
- package/types/src/command/PresetPivotStylesCommandButton.d.ts +17 -0
- package/types/src/command/index.d.ts +1 -0
- package/types/src/dialog/PivotTableNewDialog.d.ts +11 -0
- package/types/src/filter/PivotMenu.d.ts +31 -0
- package/types/src/filter/index.d.ts +1 -0
- package/types/src/pivot/PivotChipMenu.d.ts +10 -0
- package/types/src/pivot/PivotPlugin.d.ts +3 -0
- package/types/src/pivot/PivotStyleCanvasPreview.d.ts +23 -0
- package/types/src/pivot/PivotTableHeader.d.ts +12 -0
- package/types/src/pivot/PivotValueSettingsDialog.d.ts +15 -0
- package/types/src/pivot/_pivotSource.d.ts +7 -0
- package/types/src/table/_drawStyleSwatch.d.ts +25 -0
- package/types/src/workbook/DefaultRenderers.d.ts +10 -4
- package/browser/esm/C4ir9dn7q0RUoOm_.mjs +0 -319
- package/browser/esm/DEUzUShfyJLvgd6_.mjs +0 -1379
- package/browser/esm/xe1B8ohea8qfZlFg.mjs +0 -582
- package/node/esm/CKtnUYKjsTf7dYKS.mjs +0 -318
- package/node/esm/vf5X26EJO7Q1b8Ln.mjs +0 -1379
|
@@ -1,21 +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.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License:
|
|
5
|
+
* License: MIT
|
|
6
6
|
*/
|
|
7
|
-
import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n,
|
|
8
|
-
import { CommandRootProvider as
|
|
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
|
|
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, l as y, registerStudioCommandCatalogs as w, registerStudioCommandGroups as x, t as v, tokensToMuiOptions as C } from "./index.mjs";
|
|
8
|
+
import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T, PIVOT_TABLE_PANE_KEY as E, PivotTablePane as W, SHAPE_ICON_PACK as F, TaskPaneArea as P, TaskPaneProvider as A, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as M, createSystemColorVars as $, registerMovablePane as L, registerMovableToolbarEntry as B, useDocThemes as _, useModelSync as K, useReferenceModeStore as H, useResolvedWorkbook as V, useTaskPaneArea as z, useWorkbookEncrypted as U, useWorkbookName as G, useWorkbookSaveState as q } from "@sheetxl/react";
|
|
9
|
+
import { Command 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, UncaughtErrorBoundary as ie, createBusyHandle as se, useCallbackRef as le, useFullscreen as ce, useImperativeElement as de, useLanguage as pe, useMeasure as ue, useNotifier as me, usePersistentState as ge, useResolvedThemeMode as he, useTokenThemeContext as fe, useTranslator as ke, useVisualViewportRect as be } from "@sheetxl/utils-react";
|
|
10
|
+
import ye, { Fragment as we, forwardRef as xe, isValidElement as ve, memo as Ce, useCallback as De, useEffect as Se, useMemo as Te, useRef as Ee, useState as We } from "react";
|
|
11
|
+
import { AnimatedLoadingPanel as Fe, AnimatedTraversingEllipsisIcon as Pe, CommandGroup as Ae, ExhibitDivider as Ie, ExhibitFloatProvider as Ne, ExhibitMenuItem as Re, ExhibitTooltip as je, ModalProvider as Oe, SelectedIcon as Me, SimpleTooltip as $e, StackTrace as Le, createExhibitTheme as Be, hideLoadingPanel as _e, lazyModal as Ke, lazyPanel as He, showLoadingPanel as Ve, useInputDialog as ze, useLazyWindow as Ue, useModal as Ge, useOptionsDialog as qe } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as Xe, jsx as Ye, jsxs as Ze } from "react/jsx-runtime";
|
|
13
|
+
import { Box as Je, Card as Qe, CardActions as et, Collapse as tt, CssBaseline as ot, DialogTitle as rt, IconButton as nt, Paper as at, SvgIcon as it, Tab as st, Tabs as lt, ThemeProvider as ct, Typography as dt, alpha as pt, useMediaQuery as ut, useTheme as mt } from "@mui/material";
|
|
14
|
+
import { CommonUtils as gt, DOMUtils as ht, DefaultLanguagePackService as ft, ErrorUtils as kt, ExpectedError as bt, PartialError as yt, defineLazyModule as wt, formatMessage as xt, messageKey as vt, t as Ct } from "@sheetxl/utils";
|
|
15
|
+
import Dt from "clsx";
|
|
16
|
+
import { mergeRefs as St, useMergeRefs as Tt } from "react-merge-refs";
|
|
17
|
+
import { SnackbarContent as Et, SnackbarProvider as Wt, useSnackbar as Ft } from "notistack";
|
|
18
|
+
var Pt = Object.defineProperty, At = (e, t) => {
|
|
19
|
+
let o = {};
|
|
20
|
+
for (var r in e) Pt(o, r, {
|
|
21
|
+
get: e[r],
|
|
22
|
+
enumerable: !0
|
|
23
|
+
});
|
|
24
|
+
return t || Pt(o, Symbol.toStringTag, { value: "Module" }), o;
|
|
25
|
+
}, It = He(wt("studio:conditionalFormatDetailsTaskPane", () => import("./lhMHEjzlz63h_qU0.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (e) => {
|
|
26
|
+
const t = e?.getReferences() ?? null;
|
|
27
|
+
if (!e || !t || 1 !== t.getCount()) return null;
|
|
28
|
+
const o = e.getExpression().trim();
|
|
29
|
+
return Rt.test(o) && !jt.test(o) ? o : t;
|
|
30
|
+
}, Mt = {
|
|
19
31
|
card: "_card_h0jnt_7",
|
|
20
32
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
21
33
|
icons: "_icons_h0jnt_16",
|
|
@@ -25,63 +37,63 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./B7vbn_
|
|
|
25
37
|
paper: "_paper_h0jnt_37",
|
|
26
38
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
27
39
|
button: "_button_h0jnt_47"
|
|
28
|
-
},
|
|
29
|
-
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l =
|
|
40
|
+
}, $t = Ce(xe((e, t) => {
|
|
41
|
+
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ke(), { closeSnackbar: c } = Ft(), [d, p] = We(!1), u = a ? kt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bt), g = De(() => {
|
|
30
42
|
p((e) => !e);
|
|
31
|
-
}, []), h =
|
|
43
|
+
}, []), h = De(() => {
|
|
32
44
|
c(o);
|
|
33
45
|
}, [o, c]);
|
|
34
46
|
let f = u?.message;
|
|
35
|
-
return !f &&
|
|
47
|
+
return !f && ve(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ye(Et, {
|
|
36
48
|
ref: t,
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
39
|
-
className:
|
|
49
|
+
className: Dt(Mt.root, "error-snackbar"),
|
|
50
|
+
children: Ze(Qe, {
|
|
51
|
+
className: Mt.card,
|
|
40
52
|
style: {
|
|
41
53
|
backgroundColor: "var(--sxl-color-error)",
|
|
42
54
|
color: "var(--sxl-color-error-content)",
|
|
43
55
|
border: "1px solid var(--sxl-color-error)"
|
|
44
56
|
},
|
|
45
|
-
children: [
|
|
46
|
-
className:
|
|
57
|
+
children: [Ze(et, {
|
|
58
|
+
className: Mt.actionRoot,
|
|
47
59
|
children: [
|
|
48
60
|
i ? null : n?.error,
|
|
49
|
-
|
|
61
|
+
Ye(dt, {
|
|
50
62
|
variant: "body2",
|
|
51
63
|
component: "div",
|
|
52
|
-
className:
|
|
64
|
+
className: Mt.typography,
|
|
53
65
|
children: f
|
|
54
66
|
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
className:
|
|
58
|
-
children: [m ?
|
|
67
|
+
Ye("div", { style: { flex: "1 1 auto" } }),
|
|
68
|
+
Ze("div", {
|
|
69
|
+
className: Mt.icons,
|
|
70
|
+
children: [m ? Ye(nt, {
|
|
59
71
|
"aria-label": l("toast.showMore"),
|
|
60
72
|
size: "small",
|
|
61
|
-
className:
|
|
73
|
+
className: Dt(Mt.expand, { [Mt.expandOpen]: d }),
|
|
62
74
|
onClick: g,
|
|
63
|
-
children:
|
|
64
|
-
}) : null,
|
|
75
|
+
children: Ye(Z, { iconKey: "ExpandMore" })
|
|
76
|
+
}) : null, Ye(nt, {
|
|
65
77
|
size: "small",
|
|
66
|
-
className:
|
|
78
|
+
className: Mt.expand,
|
|
67
79
|
onClick: h,
|
|
68
|
-
children:
|
|
80
|
+
children: Ye(Z, {
|
|
69
81
|
iconKey: "Close",
|
|
70
82
|
style: { transform: "scale(0.8)" }
|
|
71
83
|
})
|
|
72
84
|
})]
|
|
73
85
|
})
|
|
74
86
|
]
|
|
75
|
-
}), m ?
|
|
87
|
+
}), m ? Ye(tt, {
|
|
76
88
|
in: d,
|
|
77
89
|
timeout: "auto",
|
|
78
|
-
children:
|
|
79
|
-
className:
|
|
90
|
+
children: Ye("div", {
|
|
91
|
+
className: Mt.stackTraceContainer,
|
|
80
92
|
style: {
|
|
81
93
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
82
94
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
83
95
|
},
|
|
84
|
-
children:
|
|
96
|
+
children: Ye(Le, {
|
|
85
97
|
error: a,
|
|
86
98
|
hideLineNumbers: !0
|
|
87
99
|
})
|
|
@@ -90,13 +102,13 @@ var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./B7vbn_
|
|
|
90
102
|
})
|
|
91
103
|
});
|
|
92
104
|
}));
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
const e =
|
|
96
|
-
return
|
|
105
|
+
$t.displayName = "ToastError";
|
|
106
|
+
var Lt = () => {
|
|
107
|
+
const e = ke();
|
|
108
|
+
return Ye(je, {
|
|
97
109
|
label: "SheetXL",
|
|
98
110
|
description: e("logo.description"),
|
|
99
|
-
children:
|
|
111
|
+
children: Ye(Je, {
|
|
100
112
|
component: "a",
|
|
101
113
|
href: "https://www.sheetxl.com",
|
|
102
114
|
target: "_blank",
|
|
@@ -109,25 +121,25 @@ var St = () => {
|
|
|
109
121
|
marginLeft: "6px",
|
|
110
122
|
cursor: "pointer"
|
|
111
123
|
},
|
|
112
|
-
children:
|
|
124
|
+
children: Ye(T, { style: {
|
|
113
125
|
width: "24px",
|
|
114
126
|
height: "24px"
|
|
115
127
|
} })
|
|
116
128
|
})
|
|
117
129
|
});
|
|
118
|
-
},
|
|
119
|
-
const { workbook: o, className: r, logo: n =
|
|
130
|
+
}, Bt = Ye(Lt, {}), _t = Ce(xe((e, t) => {
|
|
131
|
+
const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = ue(), p = d < 530, u = Ee(null), m = Tt([
|
|
120
132
|
u,
|
|
121
133
|
c,
|
|
122
134
|
t
|
|
123
135
|
]);
|
|
124
|
-
return
|
|
136
|
+
return Ye(Je, {
|
|
125
137
|
...l,
|
|
126
|
-
ref:
|
|
138
|
+
ref: m,
|
|
127
139
|
className: r,
|
|
128
|
-
children:
|
|
140
|
+
children: f({
|
|
129
141
|
isCompact: p,
|
|
130
|
-
wrapperSelect: (e) =>
|
|
142
|
+
wrapperSelect: (e) => Ze(Je, {
|
|
131
143
|
sx: {
|
|
132
144
|
display: "grid",
|
|
133
145
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -138,7 +150,7 @@ var St = () => {
|
|
|
138
150
|
paddingRight: (e) => e.spacing(1)
|
|
139
151
|
},
|
|
140
152
|
children: [
|
|
141
|
-
|
|
153
|
+
Ze(Je, {
|
|
142
154
|
sx: {
|
|
143
155
|
display: "flex",
|
|
144
156
|
flexDirection: "row",
|
|
@@ -146,7 +158,7 @@ var St = () => {
|
|
|
146
158
|
justifyContent: "start",
|
|
147
159
|
gap: (e) => e.spacing(.5)
|
|
148
160
|
},
|
|
149
|
-
children: [n,
|
|
161
|
+
children: [n, Ze(Je, {
|
|
150
162
|
sx: {
|
|
151
163
|
display: "flex",
|
|
152
164
|
flexDirection: "row",
|
|
@@ -156,7 +168,7 @@ var St = () => {
|
|
|
156
168
|
children: [i, e]
|
|
157
169
|
})]
|
|
158
170
|
}),
|
|
159
|
-
|
|
171
|
+
Ye(Je, {
|
|
160
172
|
sx: {
|
|
161
173
|
display: "flex",
|
|
162
174
|
flexDirection: "row",
|
|
@@ -167,7 +179,7 @@ var St = () => {
|
|
|
167
179
|
},
|
|
168
180
|
children: a
|
|
169
181
|
}),
|
|
170
|
-
|
|
182
|
+
Ye(Je, {
|
|
171
183
|
sx: {
|
|
172
184
|
display: "flex",
|
|
173
185
|
alignItems: "center",
|
|
@@ -180,12 +192,12 @@ var St = () => {
|
|
|
180
192
|
})
|
|
181
193
|
});
|
|
182
194
|
}));
|
|
183
|
-
|
|
184
|
-
var
|
|
195
|
+
_t.displayName = "StudioToolbar";
|
|
196
|
+
var Kt = (e, t) => {
|
|
185
197
|
const o = new URL(window.location.pathname, window.location.origin);
|
|
186
|
-
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-" + gt.uuidV4(), "popup=true");
|
|
187
199
|
};
|
|
188
|
-
function
|
|
200
|
+
function Ht(e, t) {
|
|
189
201
|
const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
|
|
190
202
|
let l = !1;
|
|
191
203
|
const c = async (e = null, t = null, o = null) => {
|
|
@@ -194,20 +206,20 @@ function Ft(e, t) {
|
|
|
194
206
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
195
207
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
196
208
|
const o = await i.showInput({
|
|
197
|
-
title:
|
|
198
|
-
description:
|
|
209
|
+
title: Ct("dialog.password.title"),
|
|
210
|
+
description: Ct("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
199
211
|
inputType: "password",
|
|
200
212
|
options: [{
|
|
201
213
|
id: "Open",
|
|
202
|
-
label: () =>
|
|
214
|
+
label: () => Ct("dialog.open")
|
|
203
215
|
}, "Cancel"],
|
|
204
216
|
defaultOption: "Open",
|
|
205
217
|
onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
206
218
|
valid: !1,
|
|
207
|
-
message:
|
|
219
|
+
message: Ct("dialog.password.open.retry")
|
|
208
220
|
} : {
|
|
209
221
|
valid: !1,
|
|
210
|
-
message:
|
|
222
|
+
message: Ct("dialog.password.open.required")
|
|
211
223
|
}
|
|
212
224
|
});
|
|
213
225
|
return "Open" === o?.option ? o.input ?? null : null;
|
|
@@ -219,11 +231,11 @@ function Ft(e, t) {
|
|
|
219
231
|
let a;
|
|
220
232
|
o && (n.progress.onStart = o);
|
|
221
233
|
let s = -5;
|
|
222
|
-
return
|
|
234
|
+
return R.read({
|
|
223
235
|
...n,
|
|
224
236
|
progress: {
|
|
225
237
|
async onStart(e, t) {
|
|
226
|
-
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(
|
|
238
|
+
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(Ct("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
227
239
|
},
|
|
228
240
|
onProgress(e, t) {
|
|
229
241
|
if (!t) return;
|
|
@@ -236,7 +248,7 @@ function Ft(e, t) {
|
|
|
236
248
|
o - s < 5 || (s = o, a?.setProgress?.(e, t));
|
|
237
249
|
},
|
|
238
250
|
onComplete() {
|
|
239
|
-
a?.(), r.length > 0 && (i.showMessage(
|
|
251
|
+
a?.(), r.length > 0 && (i.showMessage(Ct("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
240
252
|
},
|
|
241
253
|
onWarning(e, t) {
|
|
242
254
|
n?.progress?.onWarning?.(e, t);
|
|
@@ -249,7 +261,7 @@ function Ft(e, t) {
|
|
|
249
261
|
format: t?.key,
|
|
250
262
|
progress: {
|
|
251
263
|
async onStart(e) {
|
|
252
|
-
a = await i?.showBusy?.(
|
|
264
|
+
a = await i?.showBusy?.(Ct("workbook.saving", { name: e?.getName() ?? "" }));
|
|
253
265
|
},
|
|
254
266
|
onComplete() {
|
|
255
267
|
a?.();
|
|
@@ -257,55 +269,55 @@ function Ft(e, t) {
|
|
|
257
269
|
},
|
|
258
270
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
|
|
259
271
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
260
|
-
const r =
|
|
272
|
+
const r = Ct("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await R.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = Ct("dialog.writeWarnings.keep");
|
|
261
273
|
return o ? "Save" === await i.showOptions({
|
|
262
274
|
title: r,
|
|
263
|
-
type:
|
|
264
|
-
description: `${
|
|
275
|
+
type: Q.Warning,
|
|
276
|
+
description: `${Ct("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
|
|
265
277
|
options: [{
|
|
266
278
|
id: "Save",
|
|
267
|
-
label: () =>
|
|
279
|
+
label: () => Ct("dialog.save")
|
|
268
280
|
}, "Cancel"],
|
|
269
281
|
defaultOption: "Cancel"
|
|
270
|
-
}) && (a = await i?.showBusy?.(
|
|
282
|
+
}) && (a = await i?.showBusy?.(Ct("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
|
|
271
283
|
title: r,
|
|
272
|
-
type:
|
|
273
|
-
description: `${
|
|
284
|
+
type: Q.Warning,
|
|
285
|
+
description: `${Ct("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
|
|
274
286
|
options: ["Ok"]
|
|
275
287
|
}), !0);
|
|
276
288
|
})
|
|
277
289
|
};
|
|
278
290
|
let l;
|
|
279
291
|
if (o) {
|
|
280
|
-
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() ||
|
|
281
|
-
l = await
|
|
292
|
+
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || Ct("workbook.defaultName")}.${r}`;
|
|
293
|
+
l = await R.writeAs(e, a, {
|
|
282
294
|
...s,
|
|
283
295
|
prompt: !0
|
|
284
296
|
});
|
|
285
|
-
} else l = await
|
|
297
|
+
} else l = await R.write(e, void 0, s);
|
|
286
298
|
return l;
|
|
287
299
|
};
|
|
288
300
|
let p = null;
|
|
289
301
|
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
290
|
-
const t =
|
|
302
|
+
const t = R.canRead() && !a();
|
|
291
303
|
e?.source ? t && p ? await p({
|
|
292
304
|
url: e.source,
|
|
293
305
|
title: e.title
|
|
294
|
-
}) :
|
|
306
|
+
}) : Kt(e.source, e.title) : t ? r({}) : Kt();
|
|
295
307
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
296
308
|
a() && "Close" !== await i.showOptions({
|
|
297
|
-
title:
|
|
298
|
-
description:
|
|
309
|
+
title: Ct("dialog.confirm.title"),
|
|
310
|
+
description: Ct("dialog.unsavedChanges"),
|
|
299
311
|
options: [{
|
|
300
312
|
id: "Close",
|
|
301
|
-
label: () =>
|
|
313
|
+
label: () => Ct("dialog.close")
|
|
302
314
|
}, "Cancel"],
|
|
303
315
|
defaultOption: "Cancel"
|
|
304
316
|
}) || window.close();
|
|
305
317
|
} }), (async () => {
|
|
306
|
-
const t = await
|
|
318
|
+
const t = await R.getWriteFormats();
|
|
307
319
|
if (l) return;
|
|
308
|
-
const n =
|
|
320
|
+
const n = R.canWrite(), u = R.canRead();
|
|
309
321
|
if (n) {
|
|
310
322
|
const r = (e) => {
|
|
311
323
|
const r = e ? t.find((t) => t.key === e) : void 0;
|
|
@@ -319,13 +331,13 @@ function Ft(e, t) {
|
|
|
319
331
|
for (const o of t) {
|
|
320
332
|
const t = o.key;
|
|
321
333
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
322
|
-
label: () =>
|
|
334
|
+
label: () => Ct("command.saveAsFormat.label", { format: o.description }),
|
|
323
335
|
groupLabels: {
|
|
324
|
-
workbook: () =>
|
|
325
|
-
saveWorkbookOptions: () =>
|
|
336
|
+
workbook: () => Ct("command.saveAsFormat.workbook", { format: o.description }),
|
|
337
|
+
saveWorkbookOptions: () => Ct("command.saveAsFormat.compact", { format: o.description })
|
|
326
338
|
},
|
|
327
339
|
tags: o.tags,
|
|
328
|
-
description: () =>
|
|
340
|
+
description: () => Ct("command.saveAsFormat", { format: o.description }),
|
|
329
341
|
icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
330
342
|
callback: () => {
|
|
331
343
|
r(t);
|
|
@@ -353,7 +365,7 @@ function Ft(e, t) {
|
|
|
353
365
|
autoSelect: e === i.length - 1
|
|
354
366
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
355
367
|
}
|
|
356
|
-
},
|
|
368
|
+
}, vt("op.importData")), a.close();
|
|
357
369
|
} catch (e) {
|
|
358
370
|
i.showError(e);
|
|
359
371
|
}
|
|
@@ -362,9 +374,9 @@ function Ft(e, t) {
|
|
|
362
374
|
tags: ["noTransaction", "noRepeat"],
|
|
363
375
|
callback: async (e = null) => {
|
|
364
376
|
let t = e;
|
|
365
|
-
if (t ||
|
|
366
|
-
const e = await
|
|
367
|
-
return
|
|
377
|
+
if (t || R.canRead() || (t = await (async () => {
|
|
378
|
+
const e = await R.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
379
|
+
return ht.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
368
380
|
})(), t)) return m(t);
|
|
369
381
|
}
|
|
370
382
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -372,14 +384,14 @@ function Ft(e, t) {
|
|
|
372
384
|
callback: async (e) => {
|
|
373
385
|
if (!e) {
|
|
374
386
|
const t = await i.showInput({
|
|
375
|
-
title:
|
|
376
|
-
description:
|
|
377
|
-
inputLabel:
|
|
387
|
+
title: Ct("dialog.importFromWeb.title"),
|
|
388
|
+
description: Ct("dialog.importFromWeb.description"),
|
|
389
|
+
inputLabel: Ct("dialog.webAddress.inputLabel"),
|
|
378
390
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
379
391
|
propsInput: { style: { minWidth: "440px" } },
|
|
380
392
|
options: [{
|
|
381
393
|
id: "Import",
|
|
382
|
-
label: () =>
|
|
394
|
+
label: () => Ct("dialog.import")
|
|
383
395
|
}]
|
|
384
396
|
});
|
|
385
397
|
if ("Import" !== t.option) return;
|
|
@@ -396,11 +408,11 @@ function Ft(e, t) {
|
|
|
396
408
|
}
|
|
397
409
|
}), u) {
|
|
398
410
|
const t = async () => !a() || "Open" === await i.showOptions({
|
|
399
|
-
title:
|
|
400
|
-
description:
|
|
411
|
+
title: Ct("dialog.confirm.title"),
|
|
412
|
+
description: Ct("dialog.unsavedChanges"),
|
|
401
413
|
options: [{
|
|
402
414
|
id: "Open",
|
|
403
|
-
label: () =>
|
|
415
|
+
label: () => Ct("dialog.open")
|
|
404
416
|
}, "Cancel"],
|
|
405
417
|
defaultOption: "Cancel"
|
|
406
418
|
}), n = async (e = null) => {
|
|
@@ -423,14 +435,14 @@ function Ft(e, t) {
|
|
|
423
435
|
const r = "string" == typeof e ? void 0 : e?.title;
|
|
424
436
|
if (!o) {
|
|
425
437
|
const e = await i.showInput({
|
|
426
|
-
title:
|
|
427
|
-
description:
|
|
428
|
-
inputLabel:
|
|
438
|
+
title: Ct("dialog.openFromWeb.title"),
|
|
439
|
+
description: Ct("dialog.openFromWeb.description"),
|
|
440
|
+
inputLabel: Ct("dialog.webAddress.inputLabel"),
|
|
429
441
|
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
430
442
|
propsInput: { style: { minWidth: "440px" } },
|
|
431
443
|
options: [{
|
|
432
444
|
id: "Open",
|
|
433
|
-
label: () =>
|
|
445
|
+
label: () => Ct("dialog.open")
|
|
434
446
|
}]
|
|
435
447
|
});
|
|
436
448
|
if ("Open" !== e.option) return;
|
|
@@ -450,9 +462,9 @@ function Ft(e, t) {
|
|
|
450
462
|
l = !0, s && (s.current = null);
|
|
451
463
|
};
|
|
452
464
|
}
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
var
|
|
465
|
+
var Vt = Ke(wt("studio:shortcutKeysDialog", () => import("./r8bpi-MSpulvmozZ.mjs")).load);
|
|
466
|
+
w(), v();
|
|
467
|
+
var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
456
468
|
const t = (e) => {
|
|
457
469
|
if ("function" != typeof e) return e;
|
|
458
470
|
try {
|
|
@@ -462,9 +474,9 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
462
474
|
}
|
|
463
475
|
}, o = (e, o) => {
|
|
464
476
|
const r = t(e);
|
|
465
|
-
return "string" == typeof r ?
|
|
477
|
+
return "string" == typeof r ? xt(r, o, ft.getActive()) : void 0;
|
|
466
478
|
}, r = [];
|
|
467
|
-
for (const n of e.names()) if (!
|
|
479
|
+
for (const n of e.names()) if (!zt.has(n)) for (const a of e.keys(n)) {
|
|
468
480
|
const i = e.resolveDefinition(n, a);
|
|
469
481
|
r.push({
|
|
470
482
|
groupKey: n,
|
|
@@ -474,27 +486,27 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
474
486
|
getDescription: () => o(i?.description, i?.params) ?? "",
|
|
475
487
|
getShortcut: () => t(i?.shortcut) ?? null,
|
|
476
488
|
getScope: () => n,
|
|
477
|
-
getScopeLabel: () =>
|
|
489
|
+
getScopeLabel: () => X.DefaultCommandCatalogService.getScopeLabel(n)
|
|
478
490
|
}
|
|
479
491
|
});
|
|
480
492
|
}
|
|
481
493
|
return { getAllCommands: () => r };
|
|
482
|
-
},
|
|
483
|
-
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l =
|
|
494
|
+
}, Gt = (e) => {
|
|
495
|
+
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = X.useCommandScope(), c = me(), { showModal: d } = Ge(), p = ke(), u = Ee(a);
|
|
484
496
|
u.current = a;
|
|
485
|
-
const m =
|
|
497
|
+
const m = le(() => {
|
|
486
498
|
const e = l?.getRoot().getRegistry();
|
|
487
499
|
if (!e) return;
|
|
488
|
-
const t = d(
|
|
500
|
+
const t = d(Vt, {
|
|
489
501
|
title: p("dialog.shortcutKeys.title"),
|
|
490
|
-
commands:
|
|
502
|
+
commands: Ut(e),
|
|
491
503
|
onDone: () => t.hide(),
|
|
492
504
|
onLoadError: (e) => {
|
|
493
505
|
t.destroy(), c.showError(e);
|
|
494
506
|
}
|
|
495
507
|
});
|
|
496
508
|
}, [l, d]);
|
|
497
|
-
|
|
509
|
+
Se(() => {
|
|
498
510
|
if (!l) return;
|
|
499
511
|
const e = l.getRoot().contribution();
|
|
500
512
|
return function(e, t) {
|
|
@@ -510,8 +522,8 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
510
522
|
} });
|
|
511
523
|
}(e, { showShortcuts: m }), () => e.remove();
|
|
512
524
|
}, [l, m]);
|
|
513
|
-
const g =
|
|
514
|
-
|
|
525
|
+
const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } = he(), [f, k] = ge(N.Mode, I[N.Mode]), [b, y] = ge(N.DarkGrid, I[N.DarkGrid]), [w, x] = ge(N.DarkImages, I[N.DarkImages]);
|
|
526
|
+
Se(() => {
|
|
515
527
|
if (!l) return;
|
|
516
528
|
const e = l.getRoot().contribution();
|
|
517
529
|
return function(e, t) {
|
|
@@ -552,10 +564,10 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
552
564
|
y,
|
|
553
565
|
x
|
|
554
566
|
]);
|
|
555
|
-
const [v, C] =
|
|
556
|
-
|
|
557
|
-
v && v !==
|
|
558
|
-
}, [v]),
|
|
567
|
+
const [v, C] = ge(J.Active, null), [D, S] = We(() => ft.getActive());
|
|
568
|
+
Se(() => ft.addChangeListener(S), []), Se(() => {
|
|
569
|
+
v && v !== ft.getActive() && ft.setActive(v);
|
|
570
|
+
}, [v]), Se(() => {
|
|
559
571
|
if (!l) return;
|
|
560
572
|
const e = l.getRoot().contribution();
|
|
561
573
|
return function(e, t) {
|
|
@@ -576,32 +588,32 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
576
588
|
D,
|
|
577
589
|
C
|
|
578
590
|
]);
|
|
579
|
-
const
|
|
580
|
-
|
|
591
|
+
const T = Te(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: E, isFullscreenEnabled: W, toggleFullscreen: F } = ce({ target: T });
|
|
592
|
+
Se(() => {
|
|
581
593
|
if (!l) return;
|
|
582
594
|
const e = l.getRoot().contribution();
|
|
583
595
|
return function(e, t) {
|
|
584
596
|
e.updateCommand("fullScreenToggle", {
|
|
585
597
|
state: t.isFullscreenEnabled,
|
|
586
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
598
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [vt("reason.fullscreenUnavailable")],
|
|
587
599
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
588
600
|
callback: () => {
|
|
589
601
|
t.toggleFullscreen();
|
|
590
602
|
}
|
|
591
603
|
});
|
|
592
604
|
}(e, {
|
|
593
|
-
isFullscreenAvailable:
|
|
594
|
-
isFullscreenEnabled:
|
|
595
|
-
toggleFullscreen:
|
|
605
|
+
isFullscreenAvailable: E,
|
|
606
|
+
isFullscreenEnabled: W,
|
|
607
|
+
toggleFullscreen: F
|
|
596
608
|
}), () => e.remove();
|
|
597
609
|
}, [
|
|
598
610
|
l,
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
611
|
+
E,
|
|
612
|
+
W,
|
|
613
|
+
F
|
|
602
614
|
]);
|
|
603
|
-
const
|
|
604
|
-
return
|
|
615
|
+
const P = z(!0);
|
|
616
|
+
return Se(() => {
|
|
605
617
|
if (!l) return;
|
|
606
618
|
const e = l.getRoot().contribution();
|
|
607
619
|
return function(e, t) {
|
|
@@ -611,10 +623,10 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
611
623
|
t("manageProtection", { args: { tab: "workbook" } });
|
|
612
624
|
}
|
|
613
625
|
});
|
|
614
|
-
}(e, (e, t) =>
|
|
615
|
-
}, [l,
|
|
626
|
+
}(e, (e, t) => P.activate(e, t)), () => e.remove();
|
|
627
|
+
}, [l, P]), Se(() => {
|
|
616
628
|
if (!l || !o) return;
|
|
617
|
-
const e = l.getRoot().contribution(), t =
|
|
629
|
+
const e = l.getRoot().contribution(), t = Ht(e, {
|
|
618
630
|
workbook: o,
|
|
619
631
|
setWorkbook: r,
|
|
620
632
|
workbookTitle: n ?? void 0,
|
|
@@ -634,9 +646,9 @@ var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
|
634
646
|
i
|
|
635
647
|
]), t;
|
|
636
648
|
};
|
|
637
|
-
|
|
638
|
-
var
|
|
639
|
-
const t =
|
|
649
|
+
Gt.displayName = "StudioCommandProvider";
|
|
650
|
+
var qt = ({ renderWorkbook: e }) => {
|
|
651
|
+
const t = X.useCommandResolver(), o = Ee(null), r = ke(), [n, a] = We(null), i = De((e) => {
|
|
640
652
|
const o = e.dataTransfer;
|
|
641
653
|
if (t && o) {
|
|
642
654
|
if ("dragenter" === e.type || "dragover" === e.type) {
|
|
@@ -653,7 +665,7 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
653
665
|
}
|
|
654
666
|
e.preventDefault();
|
|
655
667
|
}
|
|
656
|
-
}, [t]), s =
|
|
668
|
+
}, [t]), s = le((e) => {
|
|
657
669
|
e.preventDefault();
|
|
658
670
|
const r = n;
|
|
659
671
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -678,15 +690,15 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
678
690
|
} }
|
|
679
691
|
});
|
|
680
692
|
} else {
|
|
681
|
-
if (!
|
|
693
|
+
if (!R.canRead()) return;
|
|
682
694
|
const o = e.dataTransfer.items?.[0], n = "undefined" != typeof window && window.isSecureContext ? o?.getAsFileSystemHandle?.() : void 0;
|
|
683
695
|
n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
684
696
|
}
|
|
685
697
|
}
|
|
686
|
-
}, [t, n]), l =
|
|
698
|
+
}, [t, n]), l = Te(() => {
|
|
687
699
|
if (!n) return null;
|
|
688
700
|
const e = "insertImage" === n;
|
|
689
|
-
return
|
|
701
|
+
return Ye(Je, {
|
|
690
702
|
className: "drop-overlay",
|
|
691
703
|
sx: {
|
|
692
704
|
position: "absolute",
|
|
@@ -697,12 +709,12 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
697
709
|
display: "flex",
|
|
698
710
|
justifyContent: "center",
|
|
699
711
|
alignItems: "center",
|
|
700
|
-
backgroundColor: (e) =>
|
|
712
|
+
backgroundColor: (e) => pt(e.palette.primary.main, .46),
|
|
701
713
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
702
714
|
outlineOffset: "-6px",
|
|
703
715
|
borderRadius: 2
|
|
704
716
|
},
|
|
705
|
-
children:
|
|
717
|
+
children: Ze(at, {
|
|
706
718
|
elevation: 6,
|
|
707
719
|
sx: {
|
|
708
720
|
display: "flex",
|
|
@@ -714,11 +726,11 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
714
726
|
color: "text.primary",
|
|
715
727
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
716
728
|
},
|
|
717
|
-
children: [
|
|
729
|
+
children: [Ye(Z, {
|
|
718
730
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
719
731
|
className: "drop-overlay-icon",
|
|
720
732
|
size: 32
|
|
721
|
-
}),
|
|
733
|
+
}), Ye(dt, {
|
|
722
734
|
variant: "h6",
|
|
723
735
|
component: "span",
|
|
724
736
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -726,7 +738,7 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
726
738
|
})
|
|
727
739
|
});
|
|
728
740
|
}, [n, r]);
|
|
729
|
-
return
|
|
741
|
+
return Ze(Xe, { children: [e({
|
|
730
742
|
ref: o,
|
|
731
743
|
onDragStart: (e) => {
|
|
732
744
|
if (e.target.src) {
|
|
@@ -739,48 +751,50 @@ var jt = ({ renderWorkbook: e }) => {
|
|
|
739
751
|
onDragOver: i,
|
|
740
752
|
onDrop: s
|
|
741
753
|
}), l] });
|
|
742
|
-
},
|
|
754
|
+
}, Xt = Ce((e) => {
|
|
743
755
|
const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
|
|
744
|
-
return
|
|
756
|
+
return Ye(D, {
|
|
745
757
|
initialAnchor: s,
|
|
746
|
-
children:
|
|
758
|
+
children: Ye(Gt, {
|
|
747
759
|
workbook: t,
|
|
748
760
|
setWorkbook: o,
|
|
749
761
|
workbookTitle: n,
|
|
750
762
|
isDirty: i,
|
|
751
763
|
refSave: c,
|
|
752
764
|
fullscreenTarget: d,
|
|
753
|
-
children:
|
|
765
|
+
children: Ye(qt, { renderWorkbook: l })
|
|
754
766
|
})
|
|
755
767
|
});
|
|
756
768
|
});
|
|
757
|
-
|
|
758
|
-
var
|
|
759
|
-
sort:
|
|
760
|
-
hyperlink:
|
|
761
|
-
find:
|
|
762
|
-
tableNew:
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
769
|
+
Xt.displayName = "CommandsWrapper";
|
|
770
|
+
var Yt = {
|
|
771
|
+
sort: wt("studio:sortDialog", () => import("./Bp6WSG8tmXefxSlk.mjs")).load,
|
|
772
|
+
hyperlink: wt("studio:hyperlinkDialog", () => import("./D2ZUCui3Xosjj66H.mjs")).load,
|
|
773
|
+
find: wt("studio:findReplaceWindow", () => import("./CQd5k9d0BWpU8yCQ.mjs")).load,
|
|
774
|
+
tableNew: wt("studio:tableNewDialog", () => import("./DN2KKVrC1ye0mldi.mjs")).load,
|
|
775
|
+
pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./Dm-skjfQUaumyQPp.mjs")).load,
|
|
776
|
+
namedDetails: wt("studio:namedReferenceDialog", () => import("./CA2iwgwOkAwRJU9j.mjs")).load,
|
|
777
|
+
insertFunction: wt("studio:insertFunctionDialog", () => import("./BiVdQ27eA1Rs9liu.mjs")).load,
|
|
778
|
+
resizeHeader: wt("studio:resizeHeaderDialog", () => import("./D7__y1LhVOR38yxz.mjs")).load,
|
|
779
|
+
outlineSettings: wt("studio:outlineSettingsDialog", () => import("./Jp--thwzf0FSnHTH.mjs")).load,
|
|
780
|
+
fillSeries: wt("studio:fillSeriesDialog", () => import("./CCy_wcDWd9xbQnyM.mjs")).load,
|
|
781
|
+
workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./ClwmPxZc7Uh4nRcr.mjs")).load,
|
|
782
|
+
password: wt("studio:passwordDialog", () => import("./BzLnWJ1JhLnookTH.mjs")).load,
|
|
783
|
+
pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./axzlGUKK8euccdja.mjs")).load
|
|
784
|
+
}, Zt = ["find"], Jt = Ce((e) => {
|
|
785
|
+
const { children: t } = e, o = Ft(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = Ee(/* @__PURE__ */ new Set()), i = Ee(null), s = Ee(null), [l, c] = We({
|
|
772
786
|
label: null,
|
|
773
787
|
progress: null
|
|
774
|
-
}), d =
|
|
775
|
-
|
|
788
|
+
}), d = ke(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = ze(p), h = Ee(!1);
|
|
789
|
+
Se(() => {
|
|
776
790
|
if (h.current) return;
|
|
777
791
|
h.current = !0;
|
|
778
792
|
const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
779
|
-
for (const e of
|
|
793
|
+
for (const e of Zt) u(e, Yt[e], { prewarm: !0 }).catch(() => {});
|
|
780
794
|
});
|
|
781
795
|
return () => o(r);
|
|
782
796
|
}, []);
|
|
783
|
-
const f =
|
|
797
|
+
const f = Ee(/* @__PURE__ */ new Set()), k = Te(() => {
|
|
784
798
|
const e = (e, t) => {
|
|
785
799
|
if (t?.onceKey) {
|
|
786
800
|
if (f.current.has(t.onceKey)) return;
|
|
@@ -788,16 +802,16 @@ var Ot = {
|
|
|
788
802
|
e.add(t.onceKey), f.current = e;
|
|
789
803
|
}
|
|
790
804
|
const o = {
|
|
791
|
-
variant: t?.type ??
|
|
805
|
+
variant: t?.type ?? Q.Info,
|
|
792
806
|
anchorOrigin: {
|
|
793
807
|
vertical: "top",
|
|
794
808
|
horizontal: "center"
|
|
795
809
|
},
|
|
796
810
|
preventDuplicate: t?.preventDuplicate,
|
|
797
|
-
persist: t?.persist ?? t?.type ===
|
|
798
|
-
action: (e) =>
|
|
811
|
+
persist: t?.persist ?? t?.type === Q.Error,
|
|
812
|
+
action: (e) => Ye(nt, {
|
|
799
813
|
onClick: () => n(e),
|
|
800
|
-
children:
|
|
814
|
+
children: Ye(Z, { iconKey: "Cancel" })
|
|
801
815
|
})
|
|
802
816
|
};
|
|
803
817
|
t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
|
|
@@ -810,8 +824,8 @@ var Ot = {
|
|
|
810
824
|
...t,
|
|
811
825
|
label: e
|
|
812
826
|
});
|
|
813
|
-
const r =
|
|
814
|
-
a.current.delete(o) && (a.current.size > 0 || (
|
|
827
|
+
const r = se(() => {
|
|
828
|
+
a.current.delete(o) && (a.current.size > 0 || (_e(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
|
|
815
829
|
label: null,
|
|
816
830
|
progress: null
|
|
817
831
|
})));
|
|
@@ -822,11 +836,11 @@ var Ot = {
|
|
|
822
836
|
progress: o
|
|
823
837
|
});
|
|
824
838
|
}, (e) => {
|
|
825
|
-
s.current = e, "string" == typeof e ?
|
|
839
|
+
s.current = e, "string" == typeof e ? Ve(i.current, e) : c((t) => ({
|
|
826
840
|
...t,
|
|
827
841
|
label: e
|
|
828
842
|
}));
|
|
829
|
-
}), n =
|
|
843
|
+
}), n = Ve(i.current, "string" == typeof e ? e : void 0);
|
|
830
844
|
return n ? n.then(() => r) : r;
|
|
831
845
|
},
|
|
832
846
|
showWindow: (e, t) => {
|
|
@@ -836,22 +850,22 @@ var Ot = {
|
|
|
836
850
|
onKeyDown: (e) => {
|
|
837
851
|
e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
|
|
838
852
|
}
|
|
839
|
-
}, u(e,
|
|
853
|
+
}, u(e, Yt[e], t);
|
|
840
854
|
},
|
|
841
855
|
showOptions: m,
|
|
842
856
|
showInput: g,
|
|
843
857
|
showError: (t) => {
|
|
844
|
-
let o, r =
|
|
845
|
-
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof
|
|
858
|
+
let o, r = Q.Error, n = d("error.unknown");
|
|
859
|
+
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof yt && (r = Q.Info), e(n, {
|
|
846
860
|
type: r,
|
|
847
861
|
enqueueProps: { error: o }
|
|
848
862
|
});
|
|
849
863
|
}
|
|
850
864
|
};
|
|
851
|
-
}, [d]), b =
|
|
865
|
+
}, [d]), b = Te(() => Ye(Fe, {
|
|
852
866
|
ref: i,
|
|
853
867
|
autoStart: !1,
|
|
854
|
-
icon:
|
|
868
|
+
icon: Ye(Pe, { sx: {
|
|
855
869
|
transform: "scale(0.7)",
|
|
856
870
|
marginLeft: "-6px"
|
|
857
871
|
} }),
|
|
@@ -868,19 +882,19 @@ var Ot = {
|
|
|
868
882
|
pointerEvents: "none"
|
|
869
883
|
}
|
|
870
884
|
}), [l.label, l.progress]);
|
|
871
|
-
return
|
|
885
|
+
return Ze(te, {
|
|
872
886
|
notifier: k,
|
|
873
887
|
children: [b, t]
|
|
874
888
|
});
|
|
875
889
|
});
|
|
876
|
-
|
|
877
|
-
var
|
|
878
|
-
const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s =
|
|
890
|
+
Jt.displayName = "StudioNotifierProvider";
|
|
891
|
+
var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", eo = Ce(xe((e, t) => {
|
|
892
|
+
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 = pe(), h = Te(() => n.map((t) => {
|
|
879
893
|
const o = s.getRegisteredTaskPane(t);
|
|
880
894
|
if (!o) return null;
|
|
881
895
|
let r = o.getIcon?.();
|
|
882
|
-
"string" == typeof r && (r =
|
|
883
|
-
const n = t === i, a = r ?
|
|
896
|
+
"string" == typeof r && (r = Ye(Z, { iconKey: r }));
|
|
897
|
+
const n = t === i, a = r ? Ye(Je, {
|
|
884
898
|
sx: {
|
|
885
899
|
display: "inline-block",
|
|
886
900
|
transform: m ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -888,20 +902,20 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
888
902
|
color: (e) => e.palette.text.secondary
|
|
889
903
|
},
|
|
890
904
|
children: r
|
|
891
|
-
}) : null, l = !r || !c && n, d =
|
|
905
|
+
}) : null, l = !r || !c && n, d = Ye(Je, {
|
|
892
906
|
sx: {
|
|
893
907
|
display: "grid",
|
|
894
908
|
gridTemplateColumns: l ? "1fr" : "0fr",
|
|
895
909
|
opacity: l ? 1 : 0,
|
|
896
910
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
897
911
|
},
|
|
898
|
-
children:
|
|
912
|
+
children: Ye(Je, {
|
|
899
913
|
sx: {
|
|
900
914
|
overflow: "hidden",
|
|
901
915
|
minWidth: 0,
|
|
902
916
|
minHeight: 0
|
|
903
917
|
},
|
|
904
|
-
children:
|
|
918
|
+
children: Ye(dt, {
|
|
905
919
|
component: "div",
|
|
906
920
|
sx: {
|
|
907
921
|
textTransform: "none",
|
|
@@ -914,13 +928,13 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
914
928
|
})
|
|
915
929
|
})
|
|
916
930
|
});
|
|
917
|
-
return
|
|
931
|
+
return Ye(st, {
|
|
918
932
|
value: t,
|
|
919
|
-
label:
|
|
933
|
+
label: Ye($e, {
|
|
920
934
|
disableInteractive: !0,
|
|
921
935
|
title: o.getTitle() ?? "",
|
|
922
936
|
placement: "left-start",
|
|
923
|
-
children:
|
|
937
|
+
children: Ze(Je, {
|
|
924
938
|
sx: {
|
|
925
939
|
padding: "0px 0px",
|
|
926
940
|
writingMode: m ? "vertical-lr" : "vertical-rl",
|
|
@@ -940,7 +954,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
940
954
|
minHeight: "0px",
|
|
941
955
|
borderRadius: "4px"
|
|
942
956
|
},
|
|
943
|
-
className:
|
|
957
|
+
className: Dt("taskpane-strip-item", { "Mui-selected": n }),
|
|
944
958
|
onClick: () => e.onSelect(t)
|
|
945
959
|
}, t);
|
|
946
960
|
}), [
|
|
@@ -951,8 +965,8 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
951
965
|
m,
|
|
952
966
|
c,
|
|
953
967
|
g
|
|
954
|
-
]), f =
|
|
955
|
-
return
|
|
968
|
+
]), f = de(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = Te(() => Dt("taskpane-strip", p), [p]);
|
|
969
|
+
return Ye(Je, {
|
|
956
970
|
ref: f,
|
|
957
971
|
className: k,
|
|
958
972
|
sx: {
|
|
@@ -962,7 +976,7 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
962
976
|
...l
|
|
963
977
|
},
|
|
964
978
|
...u,
|
|
965
|
-
children:
|
|
979
|
+
children: Ye(lt, {
|
|
966
980
|
orientation: "vertical",
|
|
967
981
|
variant: "scrollable",
|
|
968
982
|
value: i,
|
|
@@ -980,10 +994,10 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
980
994
|
children: h
|
|
981
995
|
})
|
|
982
996
|
});
|
|
983
|
-
})),
|
|
984
|
-
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s =
|
|
985
|
-
return
|
|
986
|
-
className:
|
|
997
|
+
})), to = (e) => {
|
|
998
|
+
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = ke();
|
|
999
|
+
return Ye(rt, {
|
|
1000
|
+
className: Dt({ "Mui-selected": a }),
|
|
987
1001
|
sx: {
|
|
988
1002
|
display: "flex",
|
|
989
1003
|
flex: "1 1 %0",
|
|
@@ -997,11 +1011,11 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
997
1011
|
opacity: 1,
|
|
998
1012
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
999
1013
|
},
|
|
1000
|
-
backgroundColor: (e) =>
|
|
1001
|
-
borderBottom: `solid ${
|
|
1014
|
+
backgroundColor: (e) => pt(e.palette.action.hover, .03),
|
|
1015
|
+
borderBottom: `solid ${Qt} 1px`
|
|
1002
1016
|
},
|
|
1003
1017
|
...i,
|
|
1004
|
-
children:
|
|
1018
|
+
children: Ze(Je, {
|
|
1005
1019
|
sx: {
|
|
1006
1020
|
display: "flex",
|
|
1007
1021
|
flex: "1 1 10%",
|
|
@@ -1012,15 +1026,15 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1012
1026
|
marginLeft: (e) => e.spacing(1),
|
|
1013
1027
|
marginRight: (e) => e.spacing(1)
|
|
1014
1028
|
},
|
|
1015
|
-
children: [
|
|
1029
|
+
children: [Ye(Je, {
|
|
1016
1030
|
sx: {
|
|
1017
1031
|
flex: "1 1 100%",
|
|
1018
1032
|
paddingLeft: (e) => e.spacing(1)
|
|
1019
1033
|
},
|
|
1020
1034
|
children: t
|
|
1021
|
-
}),
|
|
1035
|
+
}), Ye(je, {
|
|
1022
1036
|
label: l("taskPane.close"),
|
|
1023
|
-
children:
|
|
1037
|
+
children: Ye(nt, {
|
|
1024
1038
|
"aria-label": "close",
|
|
1025
1039
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1026
1040
|
touchRippleRef: s,
|
|
@@ -1030,14 +1044,14 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1030
1044
|
onPointerUp: () => {
|
|
1031
1045
|
r();
|
|
1032
1046
|
},
|
|
1033
|
-
children:
|
|
1047
|
+
children: Ye(Z, { iconKey: "Close" })
|
|
1034
1048
|
})
|
|
1035
1049
|
})]
|
|
1036
1050
|
})
|
|
1037
1051
|
});
|
|
1038
|
-
},
|
|
1039
|
-
const { model: o, side: r, ...n } = e, a =
|
|
1040
|
-
return
|
|
1052
|
+
}, oo = xe((e, t) => {
|
|
1053
|
+
const { model: o, side: r, ...n } = e, a = mt(), i = `solid ${Qt} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
|
|
1054
|
+
return Ye(P, {
|
|
1041
1055
|
model: o,
|
|
1042
1056
|
ref: t,
|
|
1043
1057
|
propsFrame: { style: {
|
|
@@ -1046,8 +1060,8 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1046
1060
|
marginBottom: l
|
|
1047
1061
|
} },
|
|
1048
1062
|
alwaysShowStrip: !0,
|
|
1049
|
-
componentTitle:
|
|
1050
|
-
componentStrip:
|
|
1063
|
+
componentTitle: to,
|
|
1064
|
+
componentStrip: eo,
|
|
1051
1065
|
side: r,
|
|
1052
1066
|
...e,
|
|
1053
1067
|
onOpen: () => {
|
|
@@ -1058,16 +1072,16 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1058
1072
|
},
|
|
1059
1073
|
...n
|
|
1060
1074
|
});
|
|
1061
|
-
}),
|
|
1075
|
+
}), ro = "_styled-resizer_fdl5y_3", no = {}, ao = {
|
|
1062
1076
|
flex: "1 1 100%",
|
|
1063
1077
|
display: "flex",
|
|
1064
1078
|
boxSizing: "border-box"
|
|
1065
|
-
},
|
|
1066
|
-
const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] =
|
|
1079
|
+
}, io = Ce(xe((e, t) => {
|
|
1080
|
+
const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ge(a ?? null, no), m = mt(), [g, { width: h }] = ue(), f = h > 530 || 0 === h, k = Ee(null);
|
|
1067
1081
|
let b, y, w = null, x = 4, v = 13;
|
|
1068
1082
|
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);
|
|
1069
1083
|
let C, D = o, S = r;
|
|
1070
|
-
const
|
|
1084
|
+
const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`, P = a ? p[F] : void 0, A = null != P ? `${P}%` : ((e, t) => {
|
|
1071
1085
|
if (null == e) return "40%";
|
|
1072
1086
|
if ("number" == typeof e || "string" == typeof e) return e;
|
|
1073
1087
|
const o = e[t];
|
|
@@ -1078,17 +1092,17 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1078
1092
|
[F]: e.percent
|
|
1079
1093
|
})), i?.(e, {
|
|
1080
1094
|
orientation: E,
|
|
1081
|
-
side:
|
|
1095
|
+
side: W,
|
|
1082
1096
|
key: F
|
|
1083
1097
|
});
|
|
1084
1098
|
} : void 0;
|
|
1085
|
-
|
|
1099
|
+
T && S ? (D = r, S = o, y = { style: {
|
|
1086
1100
|
flexDirection: "column",
|
|
1087
1101
|
boxSizing: "border-box",
|
|
1088
1102
|
paddingRight: "2px"
|
|
1089
1103
|
} }, b = {}, C = {
|
|
1090
1104
|
fixedPane: "before",
|
|
1091
|
-
position:
|
|
1105
|
+
position: A,
|
|
1092
1106
|
minBefore: f ? "280px" : "120px",
|
|
1093
1107
|
splitDirection: f ? "row" : "column"
|
|
1094
1108
|
}) : (b = { style: {
|
|
@@ -1099,33 +1113,33 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1099
1113
|
marginRight: f ? "8px" : "4px"
|
|
1100
1114
|
} }, C = {
|
|
1101
1115
|
fixedPane: "after",
|
|
1102
|
-
position:
|
|
1116
|
+
position: A,
|
|
1103
1117
|
minAfter: f ? "280px" : "120px",
|
|
1104
1118
|
splitDirection: f ? "row" : "column"
|
|
1105
1119
|
});
|
|
1106
|
-
const
|
|
1120
|
+
const N = Tt([
|
|
1107
1121
|
k,
|
|
1108
1122
|
g,
|
|
1109
1123
|
t
|
|
1110
1124
|
]);
|
|
1111
|
-
return
|
|
1112
|
-
ref:
|
|
1125
|
+
return Ye(ae, {
|
|
1126
|
+
ref: N,
|
|
1113
1127
|
className: s,
|
|
1114
1128
|
style: l ? {
|
|
1115
|
-
...
|
|
1129
|
+
...ao,
|
|
1116
1130
|
...l
|
|
1117
|
-
} :
|
|
1131
|
+
} : ao,
|
|
1118
1132
|
...d,
|
|
1119
1133
|
...C,
|
|
1120
1134
|
onPositionChange: I,
|
|
1121
1135
|
propsResizer: {
|
|
1122
|
-
className:
|
|
1136
|
+
className: Dt("styled-resizer", ro),
|
|
1123
1137
|
style: {
|
|
1124
1138
|
minWidth: f ? "7px" : void 0,
|
|
1125
1139
|
minHeight: f ? void 0 : "6px",
|
|
1126
1140
|
maskImage: `url("data:image/svg+xml,%3Csvg width='${x}' height='${v}' viewBox='0 0 ${x} ${v}' version='1.1' fill='${m.palette.text.icon ?? m.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${w}' /%3E%3C/svg%3E%0A")`,
|
|
1127
1141
|
maskRepeat: "no-repeat",
|
|
1128
|
-
maskPosition:
|
|
1142
|
+
maskPosition: T ? f ? "center center" : "bottom center" : f ? "left center" : "top center"
|
|
1129
1143
|
}
|
|
1130
1144
|
},
|
|
1131
1145
|
elementBefore: D,
|
|
@@ -1134,15 +1148,15 @@ var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1134
1148
|
propsPaneAfter: y
|
|
1135
1149
|
});
|
|
1136
1150
|
}));
|
|
1137
|
-
|
|
1138
|
-
var
|
|
1151
|
+
io.displayName = "StudioSplitPane";
|
|
1152
|
+
var so = () => Ye("div", { style: {
|
|
1139
1153
|
flex: "none",
|
|
1140
1154
|
height: 0,
|
|
1141
1155
|
borderTop: "solid var(--sxl-color-base-border, light-dark(rgba(0, 0, 0, 0.26), rgba(255, 255, 255, 0.3))) 1px"
|
|
1142
|
-
} }),
|
|
1143
|
-
const o = (e) =>
|
|
1156
|
+
} }), lo = (e, t) => {
|
|
1157
|
+
const o = (e) => Ye(ye.Fragment, { children: t[e] }, e);
|
|
1144
1158
|
if ("bottom" === e) {
|
|
1145
|
-
const e = t.statusBar && t.formulaBar ?
|
|
1159
|
+
const e = t.statusBar && t.formulaBar ? Ye(so, {}, "divider") : null;
|
|
1146
1160
|
return [
|
|
1147
1161
|
o("toolbar"),
|
|
1148
1162
|
o("main"),
|
|
@@ -1157,22 +1171,97 @@ var Gt = () => _e("div", { style: {
|
|
|
1157
1171
|
o("main"),
|
|
1158
1172
|
o("statusBar")
|
|
1159
1173
|
];
|
|
1160
|
-
},
|
|
1161
|
-
|
|
1174
|
+
}, co = (e) => {
|
|
1175
|
+
const { groups: t } = e;
|
|
1176
|
+
return Ye(Je, {
|
|
1177
|
+
role: "menu",
|
|
1178
|
+
sx: {
|
|
1179
|
+
paddingTop: "4px",
|
|
1180
|
+
paddingBottom: "4px"
|
|
1181
|
+
},
|
|
1182
|
+
children: t.map((e, t) => Ze(we, { children: [t > 0 ? Ye(Ie, { orientation: "horizontal" }) : null, e.map((e) => Ye(Re, {
|
|
1183
|
+
role: void 0 === e.checked ? "menuitem" : "menuitemradio",
|
|
1184
|
+
"aria-checked": e.checked,
|
|
1185
|
+
disabled: e.disabled,
|
|
1186
|
+
selected: e.checked,
|
|
1187
|
+
icon: e.checked ? Ye(Me, {}) : void 0,
|
|
1188
|
+
onClick: e.run,
|
|
1189
|
+
children: e.label
|
|
1190
|
+
}, e.key))] }, t))
|
|
1191
|
+
});
|
|
1192
|
+
}, po = (e) => Ye(co, { ...e }), uo = (e) => {
|
|
1193
|
+
const { pivot: t, name: o, source: r, onError: n } = e, s = ke(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Te(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
|
|
1194
|
+
"accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
|
|
1195
|
+
}, [t, n]), u = le((e) => {
|
|
1196
|
+
if (0 === e.length || e.length > 255) throw new bt(s("error.pivotTable.nameInvalid"));
|
|
1197
|
+
const o = l.getPivotTables().getByName(e);
|
|
1198
|
+
if (o && o.getName() !== t.getName()) throw new bt(s("error.pivotTable.nameExists"));
|
|
1199
|
+
}, [
|
|
1200
|
+
l,
|
|
1201
|
+
t,
|
|
1202
|
+
s
|
|
1203
|
+
]), m = le((e, o) => {
|
|
1204
|
+
if ("accept" !== o.reason) return;
|
|
1205
|
+
const r = Ot(e);
|
|
1206
|
+
r && t.setSource("string" == typeof r ? r : r.at(0)).catch(n);
|
|
1207
|
+
}, [t, n]);
|
|
1208
|
+
return Ze(Je, {
|
|
1209
|
+
className: "sxl-pivot-table-header",
|
|
1210
|
+
sx: {
|
|
1211
|
+
display: "flex",
|
|
1212
|
+
flexDirection: "column",
|
|
1213
|
+
rowGap: (e) => e.spacing(1),
|
|
1214
|
+
paddingTop: (e) => e.spacing(1)
|
|
1215
|
+
},
|
|
1216
|
+
children: [Ye(i, {
|
|
1217
|
+
formName: "name",
|
|
1218
|
+
value: o,
|
|
1219
|
+
changeOn: "done",
|
|
1220
|
+
onDone: p,
|
|
1221
|
+
onValidate: u,
|
|
1222
|
+
disabled: c
|
|
1223
|
+
}), Ye(a, {
|
|
1224
|
+
grammar: "reference",
|
|
1225
|
+
formName: "source",
|
|
1226
|
+
label: s("pivotTableNew.source"),
|
|
1227
|
+
value: r,
|
|
1228
|
+
allowMulti: !1,
|
|
1229
|
+
home: d,
|
|
1230
|
+
pickAs: "absolute",
|
|
1231
|
+
changeOn: "done",
|
|
1232
|
+
onDone: m,
|
|
1233
|
+
disabled: c || null === r
|
|
1234
|
+
})]
|
|
1235
|
+
});
|
|
1236
|
+
}, mo = (e) => Ye(uo, { ...e }), go = (e) => Ye(W, {
|
|
1237
|
+
renderMenu: po,
|
|
1238
|
+
renderFilter: g,
|
|
1239
|
+
renderHeader: mo,
|
|
1240
|
+
...e
|
|
1241
|
+
}), ho = He(wt("studio:dataValidationDetailsTaskPane", () => import("./D9jTg0iWTubkisDB.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = At({
|
|
1242
|
+
EagerStudio: () => wo,
|
|
1243
|
+
default: () => wo
|
|
1244
|
+
});
|
|
1245
|
+
d(), S.registerTaskPane({
|
|
1246
|
+
key: E,
|
|
1247
|
+
getTitle: () => "PivotTable Fields",
|
|
1248
|
+
getIcon: () => "Table",
|
|
1249
|
+
component: go
|
|
1250
|
+
}, !0), B("shape", {
|
|
1162
1251
|
key: "changeShapeGallery",
|
|
1163
|
-
render: (e) =>
|
|
1252
|
+
render: (e) => Ye(y, {
|
|
1164
1253
|
...e,
|
|
1165
1254
|
commandKey: "changeShape",
|
|
1166
|
-
excludeCategories:
|
|
1255
|
+
excludeCategories: Nt
|
|
1167
1256
|
})
|
|
1168
1257
|
}, {
|
|
1169
1258
|
order: -1,
|
|
1170
1259
|
divider: "after"
|
|
1171
|
-
}),
|
|
1260
|
+
}), L("shape", () => import("./DvN4Z2Hx4Es0sdaK.mjs").then((e) => e.ShapeFormatPanel)), L("chart", () => import("./BWl0RjNZfoJvRX_2.mjs").then((e) => e.ChartFormatPanel)), B("picture", {
|
|
1172
1261
|
key: "changePictureOptions",
|
|
1173
1262
|
defaultKey: "changePictureFromFile",
|
|
1174
1263
|
members: ["changePictureFromFile", "changePictureFromURL"]
|
|
1175
|
-
}, { order: -3 }),
|
|
1264
|
+
}, { order: -3 }), B("picture", {
|
|
1176
1265
|
key: "pictureHyperlinkOptions",
|
|
1177
1266
|
defaultKey: "updatePictureHyperlink",
|
|
1178
1267
|
members: [
|
|
@@ -1180,7 +1269,7 @@ l(), N("shape", {
|
|
|
1180
1269
|
"openPictureHyperlink",
|
|
1181
1270
|
"deletePictureHyperlink"
|
|
1182
1271
|
]
|
|
1183
|
-
}, { order: -2 }),
|
|
1272
|
+
}, { order: -2 }), X.DefaultCommandButtonRegistry.register({
|
|
1184
1273
|
key: "cropAspectOptions",
|
|
1185
1274
|
members: [
|
|
1186
1275
|
"cropAspect1x1",
|
|
@@ -1197,15 +1286,15 @@ l(), N("shape", {
|
|
|
1197
1286
|
"cropAspect16x9",
|
|
1198
1287
|
"cropAspect16x10"
|
|
1199
1288
|
]
|
|
1200
|
-
}, !0),
|
|
1289
|
+
}, !0), B("picture", {
|
|
1201
1290
|
key: "cropOptions",
|
|
1202
1291
|
members: [
|
|
1203
1292
|
{
|
|
1204
1293
|
key: "cropToShapeGallery",
|
|
1205
|
-
render: (e) =>
|
|
1294
|
+
render: (e) => Ye(y, {
|
|
1206
1295
|
...e,
|
|
1207
1296
|
commandKey: "cropToShape",
|
|
1208
|
-
excludeCategories:
|
|
1297
|
+
excludeCategories: Nt
|
|
1209
1298
|
})
|
|
1210
1299
|
},
|
|
1211
1300
|
"cropAspectOptions",
|
|
@@ -1216,18 +1305,18 @@ l(), N("shape", {
|
|
|
1216
1305
|
}, {
|
|
1217
1306
|
order: -1,
|
|
1218
1307
|
divider: "after"
|
|
1219
|
-
}),
|
|
1308
|
+
}), c(), Y.register("plugin-table", { icons: {} }), S.registerTaskPane({
|
|
1220
1309
|
key: "dataValidationDetails",
|
|
1221
1310
|
getTitle: () => "Data Validation",
|
|
1222
1311
|
getIcon: () => "DataValidation",
|
|
1223
|
-
component:
|
|
1224
|
-
}, !0),
|
|
1312
|
+
component: ho
|
|
1313
|
+
}, !0), S.registerTaskPane({
|
|
1225
1314
|
key: "conditionalFormatDetails",
|
|
1226
1315
|
getTitle: () => "Conditional Formatting",
|
|
1227
1316
|
getIcon: () => "FormatPaint",
|
|
1228
|
-
component:
|
|
1229
|
-
}, !0),
|
|
1230
|
-
var
|
|
1317
|
+
component: It
|
|
1318
|
+
}, !0), l(), s(), r(), t(), e(), n(), x();
|
|
1319
|
+
var ko = () => {
|
|
1231
1320
|
let e, t;
|
|
1232
1321
|
const o = new Promise((o, r) => {
|
|
1233
1322
|
e = o, t = r;
|
|
@@ -1242,178 +1331,178 @@ var Yt = () => {
|
|
|
1242
1331
|
}
|
|
1243
1332
|
};
|
|
1244
1333
|
return o.catch(() => {}), r;
|
|
1245
|
-
},
|
|
1334
|
+
}, bo = (e, t) => {
|
|
1246
1335
|
if (!e) return {};
|
|
1247
1336
|
const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
|
|
1248
|
-
return n && "object" == typeof n ?
|
|
1249
|
-
},
|
|
1250
|
-
const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch:
|
|
1251
|
-
|
|
1252
|
-
}, []),
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
}, [
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
light:
|
|
1260
|
-
dark:
|
|
1337
|
+
return n && "object" == typeof n ? gt.deepMerge(r, n) : r;
|
|
1338
|
+
}, yo = "taskPanePosition", wo = Ce(xe((e, t) => {
|
|
1339
|
+
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 = xo, taskPaneSide: x = "right", onKeyDown: v, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: W, muiTheme: P, tokens: L, cssBaseline: B, autoFocus: z = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: pe, showFormulaBar: ue, propsFormulaBar: me, renderFormulaBar: ke, formulaBarPlacement: ye, manageVisualViewport: we = !0, editable: xe, showStatusBar: ve, propsStatusBar: Ce, renderStatusBar: Fe, propsToolbar: Pe, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), Me = Ee(null), $e = le(() => {
|
|
1340
|
+
Me.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
1341
|
+
}, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), _e = "bottom" === Le && we, Ke = be(_e), He = Ke ? Math.max(0, Math.round(window.innerHeight - Ke.height)) : 0, Ve = Ke ? Math.round(Ke.offsetTop) : 0, ze = Ke?.height;
|
|
1342
|
+
Se(() => {
|
|
1343
|
+
_e && void 0 !== ze && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
|
|
1344
|
+
}, [_e, ze]);
|
|
1345
|
+
const Ue = le(d ?? (() => {}), [d]), Ge = le(te ?? (() => {}), [te]), qe = ae?.placeHolder, [Xe] = ge(N.Mode, I[N.Mode]), { themeMode: Qe } = he({ mode: Xe ?? void 0 }), [et] = ge(J.Active, null), tt = Ee(et);
|
|
1346
|
+
tt.current = et;
|
|
1347
|
+
const rt = fe(), nt = Te(() => ({
|
|
1348
|
+
light: Be(!1, gt.deepMerge(bo(P, !1), C(rt?.light))),
|
|
1349
|
+
dark: Be(!0, gt.deepMerge(bo(P, !0), C(rt?.dark)))
|
|
1261
1350
|
}), [
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
]),
|
|
1266
|
-
|
|
1351
|
+
P,
|
|
1352
|
+
rt?.light,
|
|
1353
|
+
rt?.dark
|
|
1354
|
+
]), st = "dark" === Qe, lt = Te(() => u(nt.light, nt.dark, `.${n}`, L), [
|
|
1355
|
+
nt,
|
|
1267
1356
|
n,
|
|
1268
|
-
|
|
1269
|
-
]),
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}, [
|
|
1273
|
-
const [
|
|
1274
|
-
|
|
1275
|
-
const
|
|
1276
|
-
io:
|
|
1277
|
-
defaultTheme:
|
|
1278
|
-
reloadKey:
|
|
1279
|
-
}),
|
|
1357
|
+
L
|
|
1358
|
+
]), dt = Te(() => O("sxl-defaults", `.${n}`), [n]), pt = _(), [ut, mt] = We(() => D ?? null);
|
|
1359
|
+
Se(() => {
|
|
1360
|
+
mt(D ?? null);
|
|
1361
|
+
}, [D]);
|
|
1362
|
+
const [ht, kt] = We(0), bt = Ee(null);
|
|
1363
|
+
bt.current || (bt.current = ko());
|
|
1364
|
+
const yt = V(ut, {
|
|
1365
|
+
io: R,
|
|
1366
|
+
defaultTheme: pt.getDefaultTheme(),
|
|
1367
|
+
reloadKey: ht
|
|
1368
|
+
}), wt = "loaded" === yt.status ? yt.workbook : null, xt = Te(() => "error" === yt.status ? {
|
|
1280
1369
|
status: "error",
|
|
1281
|
-
error:
|
|
1282
|
-
} : "loaded" ===
|
|
1370
|
+
error: yt.error
|
|
1371
|
+
} : "loaded" === yt.status ? {
|
|
1283
1372
|
status: "loaded",
|
|
1284
|
-
workbook:
|
|
1285
|
-
} : { status: "loading" }, [
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
}, [
|
|
1289
|
-
if ("loaded" ===
|
|
1290
|
-
const e =
|
|
1373
|
+
workbook: yt.workbook
|
|
1374
|
+
} : { status: "loading" }, [yt]);
|
|
1375
|
+
Se(() => {
|
|
1376
|
+
bt.current.settled && (bt.current = ko());
|
|
1377
|
+
}, [ut, ht]), Se(() => {
|
|
1378
|
+
if ("loaded" === xt.status) {
|
|
1379
|
+
const e = bt.current, t = xt.workbook;
|
|
1291
1380
|
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
1292
|
-
} else "error" ===
|
|
1293
|
-
}, [
|
|
1294
|
-
const [
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
const
|
|
1301
|
-
const t =
|
|
1302
|
-
t &&
|
|
1381
|
+
} else "error" === xt.status && (Ue?.(xt.error), bt.current.reject(xt.error));
|
|
1382
|
+
}, [xt]);
|
|
1383
|
+
const [vt, Ct] = We(null);
|
|
1384
|
+
wt && !vt && Ct(wt);
|
|
1385
|
+
const Dt = wt && vt && wt !== vt ? wt : null, Tt = Ee(Dt);
|
|
1386
|
+
Tt.current = Dt;
|
|
1387
|
+
const Et = Ee(vt);
|
|
1388
|
+
Et.current = vt;
|
|
1389
|
+
const Ft = Ee([]), Pt = De((e) => {
|
|
1390
|
+
const t = Et.current;
|
|
1391
|
+
t && Ft.current.push(t), mt(e);
|
|
1303
1392
|
}, []);
|
|
1304
|
-
|
|
1305
|
-
const e =
|
|
1393
|
+
Se(() => {
|
|
1394
|
+
const e = Ft.current;
|
|
1306
1395
|
if (0 !== e.length) {
|
|
1307
|
-
|
|
1396
|
+
Ft.current = e.filter((e) => e === vt);
|
|
1308
1397
|
for (let t = 0; t < e.length; t++) {
|
|
1309
1398
|
const o = e[t];
|
|
1310
|
-
if (o !==
|
|
1399
|
+
if (o !== vt) try {
|
|
1311
1400
|
o.close();
|
|
1312
1401
|
} catch (e) {
|
|
1313
1402
|
console.warn("Unable to close the replaced workbook", e);
|
|
1314
1403
|
}
|
|
1315
1404
|
}
|
|
1316
1405
|
}
|
|
1317
|
-
}, [
|
|
1318
|
-
const
|
|
1319
|
-
const e =
|
|
1320
|
-
return e ?
|
|
1321
|
-
}, [
|
|
1322
|
-
|
|
1323
|
-
if (!
|
|
1324
|
-
let e =
|
|
1325
|
-
return
|
|
1406
|
+
}, [vt]);
|
|
1407
|
+
const At = xe ? null : vt, It = H(), Nt = Te(() => {
|
|
1408
|
+
const e = At?.getSelectedWorksheet() ?? At?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
1409
|
+
return e ? M(e, { referenceMode: It }) : null;
|
|
1410
|
+
}, [At, It]), Rt = xe ?? Nt, jt = Ee(Rt);
|
|
1411
|
+
jt.current = Rt, Se(() => {
|
|
1412
|
+
if (!Rt) return;
|
|
1413
|
+
let e = Rt.getSession();
|
|
1414
|
+
return Rt.subscribe(() => {
|
|
1326
1415
|
const t = e;
|
|
1327
|
-
e =
|
|
1416
|
+
e = Rt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Me.current?.contains?.(document.activeElement) && Re.current?.focus();
|
|
1328
1417
|
});
|
|
1329
|
-
}, [
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
const [
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
}, [St]);
|
|
1338
|
-
const ao = oo ?? ro ?? Bt ?? "";
|
|
1339
|
-
ye(() => {
|
|
1340
|
-
Qe?.(_t);
|
|
1341
|
-
}, [_t]);
|
|
1342
|
-
const io = re(j ?? (() => {}), [j]);
|
|
1343
|
-
ye(() => {
|
|
1344
|
-
io?.(vt);
|
|
1418
|
+
}, [Rt]);
|
|
1419
|
+
const Ot = G(vt), { isDirty: Mt, saveState: Lt } = q(vt, R), Bt = U(vt), Kt = Ee(Lt), Ht = Ee(null);
|
|
1420
|
+
Kt.current = Lt;
|
|
1421
|
+
const Vt = De(() => Kt.current?.isDirty() ?? !1, []), zt = Ee(xt);
|
|
1422
|
+
zt.current = xt;
|
|
1423
|
+
const [Ut, Gt] = We(null), qt = Q ?? ae?.title, [Yt, Zt] = We(null);
|
|
1424
|
+
Se(() => {
|
|
1425
|
+
Zt(null);
|
|
1345
1426
|
}, [vt]);
|
|
1346
|
-
const
|
|
1347
|
-
|
|
1348
|
-
|
|
1427
|
+
const Qt = qt ?? Yt ?? Ot ?? "";
|
|
1428
|
+
Se(() => {
|
|
1429
|
+
Ge?.(Mt);
|
|
1430
|
+
}, [Mt]);
|
|
1431
|
+
const eo = le(S ?? (() => {}), [S]);
|
|
1432
|
+
Se(() => {
|
|
1433
|
+
eo?.(wt);
|
|
1434
|
+
}, [wt]);
|
|
1435
|
+
const to = Ee(wt);
|
|
1436
|
+
to.current = wt, K(vt, "onViewChange");
|
|
1437
|
+
const oo = Te(() => Ye(Ae, {
|
|
1349
1438
|
groupKey: "helpOptions",
|
|
1350
1439
|
disableHover: !0,
|
|
1351
1440
|
sx: { padding: "0" },
|
|
1352
1441
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
1353
|
-
}), []), [
|
|
1354
|
-
|
|
1442
|
+
}), []), [ro, no] = We(null), ao = De((e) => {
|
|
1443
|
+
no(e);
|
|
1355
1444
|
}, []);
|
|
1356
|
-
|
|
1357
|
-
|
|
1445
|
+
Se(() => {
|
|
1446
|
+
Y.prefetch([Y.getActive(), F]).catch((e) => {
|
|
1358
1447
|
console.warn("Icons could not be loaded:", e);
|
|
1359
1448
|
});
|
|
1360
1449
|
}, []);
|
|
1361
|
-
const
|
|
1362
|
-
|
|
1363
|
-
const
|
|
1364
|
-
const t =
|
|
1365
|
-
t && t !==
|
|
1366
|
-
}, []),
|
|
1450
|
+
const so = Ee(null);
|
|
1451
|
+
so.current || (so.current = ko());
|
|
1452
|
+
const co = Ee(null), po = De(() => co.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? so.current.promise, []), uo = le(async (e) => {
|
|
1453
|
+
const t = tt.current;
|
|
1454
|
+
t && t !== ft.getActive() && await ft.setActive(t), await X.DefaultCommandCatalogService.prefetch(t ?? void 0), Gt(e), co.current = e.source, so.current.settled || so.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
1455
|
+
}, []), mo = Ee(null), go = De((e) => {
|
|
1367
1456
|
let t = null, r = {
|
|
1368
1457
|
readOnly: !0,
|
|
1369
|
-
...
|
|
1458
|
+
...ae
|
|
1370
1459
|
};
|
|
1371
|
-
return
|
|
1460
|
+
return ae?.hidden || (t = Ye(o, {
|
|
1372
1461
|
...r,
|
|
1373
1462
|
style: {
|
|
1374
1463
|
maxWidth: "100%",
|
|
1375
|
-
...
|
|
1464
|
+
...ae?.style
|
|
1376
1465
|
},
|
|
1377
|
-
workbook: e.workbook ??
|
|
1378
|
-
ref:
|
|
1379
|
-
title:
|
|
1380
|
-
modified:
|
|
1381
|
-
encrypted:
|
|
1382
|
-
placeHolder:
|
|
1466
|
+
workbook: e.workbook ?? Re.current,
|
|
1467
|
+
ref: mo,
|
|
1468
|
+
title: Qt,
|
|
1469
|
+
modified: Mt,
|
|
1470
|
+
encrypted: Bt,
|
|
1471
|
+
placeHolder: qe,
|
|
1383
1472
|
onTitleChange: (e) => {
|
|
1384
|
-
|
|
1473
|
+
Zt(e), ae?.onTitleChange?.(e);
|
|
1385
1474
|
}
|
|
1386
|
-
})),
|
|
1475
|
+
})), Ye(_t, {
|
|
1387
1476
|
...e,
|
|
1388
|
-
logo:
|
|
1477
|
+
logo: T,
|
|
1389
1478
|
mainElement: t,
|
|
1390
|
-
startElement:
|
|
1391
|
-
endElement:
|
|
1479
|
+
startElement: E,
|
|
1480
|
+
endElement: W
|
|
1392
1481
|
});
|
|
1393
1482
|
}, [
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1483
|
+
T,
|
|
1484
|
+
Qt,
|
|
1485
|
+
Mt,
|
|
1486
|
+
Bt,
|
|
1487
|
+
ae,
|
|
1488
|
+
E,
|
|
1489
|
+
W
|
|
1401
1490
|
]);
|
|
1402
|
-
|
|
1403
|
-
const e =
|
|
1491
|
+
Se(() => {
|
|
1492
|
+
const e = Re.current;
|
|
1404
1493
|
if (!e) return;
|
|
1405
1494
|
const t = (t) => {
|
|
1406
|
-
(t.ctrlKey || t.metaKey || "native" !==
|
|
1495
|
+
(t.ctrlKey || t.metaKey || "native" !== ne.getWheelOwner(t, e)) && t.preventDefault();
|
|
1407
1496
|
};
|
|
1408
1497
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
1409
1498
|
e.removeEventListener("wheel", t);
|
|
1410
1499
|
};
|
|
1411
|
-
}, [
|
|
1412
|
-
const [
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
}, [
|
|
1416
|
-
const
|
|
1500
|
+
}, [Ut]);
|
|
1501
|
+
const [ho, fo] = We(null);
|
|
1502
|
+
Se(() => {
|
|
1503
|
+
fo(Ut?.source?.getCommandScope?.() ?? null);
|
|
1504
|
+
}, [Ut]);
|
|
1505
|
+
const wo = Te(() => ({
|
|
1417
1506
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
1418
1507
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
1419
1508
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -1426,58 +1515,58 @@ var Yt = () => {
|
|
|
1426
1515
|
whiteSpace: "pre-wrap"
|
|
1427
1516
|
},
|
|
1428
1517
|
"*": { userSelect: "none" }
|
|
1429
|
-
}), []), [vo, Co] =
|
|
1430
|
-
|
|
1518
|
+
}), []), [vo, Co] = We(null), [, Do] = ge(null, !1);
|
|
1519
|
+
Se(() => {
|
|
1431
1520
|
Do(null != vo);
|
|
1432
1521
|
}, [vo, Do]);
|
|
1433
|
-
const So =
|
|
1434
|
-
model:
|
|
1435
|
-
side:
|
|
1522
|
+
const So = De((e) => w({
|
|
1523
|
+
model: vt,
|
|
1524
|
+
side: x,
|
|
1436
1525
|
...e,
|
|
1437
1526
|
...y
|
|
1438
1527
|
}), [
|
|
1439
|
-
|
|
1440
|
-
|
|
1528
|
+
vt,
|
|
1529
|
+
x,
|
|
1441
1530
|
y
|
|
1442
|
-
]),
|
|
1443
|
-
|
|
1531
|
+
]), To = Ee(r);
|
|
1532
|
+
To.current = r, de(t, () => ({
|
|
1444
1533
|
isStudioElement: () => !0,
|
|
1445
1534
|
save: (e) => {
|
|
1446
|
-
const t =
|
|
1535
|
+
const t = Ht.current;
|
|
1447
1536
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
1448
1537
|
},
|
|
1449
|
-
getWorkbookElement: () =>
|
|
1450
|
-
getWorkbook: () =>
|
|
1451
|
-
isDirty: () =>
|
|
1452
|
-
getEditable: () =>
|
|
1453
|
-
getFormulaBarElement: () =>
|
|
1454
|
-
focus: () =>
|
|
1455
|
-
whenReady: () => (
|
|
1456
|
-
getWorkbookState: () =>
|
|
1457
|
-
retry: () =>
|
|
1538
|
+
getWorkbookElement: () => Re.current,
|
|
1539
|
+
getWorkbook: () => to.current ?? null,
|
|
1540
|
+
isDirty: () => Kt.current?.isDirty() ?? !1,
|
|
1541
|
+
getEditable: () => jt.current,
|
|
1542
|
+
getFormulaBarElement: () => Me.current ?? null,
|
|
1543
|
+
focus: () => Re.current?.focus(),
|
|
1544
|
+
whenReady: () => (bt.current || (bt.current = ko()), bt.current.promise),
|
|
1545
|
+
getWorkbookState: () => zt.current,
|
|
1546
|
+
retry: () => kt((e) => e + 1)
|
|
1458
1547
|
}), [], r);
|
|
1459
|
-
const Eo =
|
|
1460
|
-
t ===
|
|
1461
|
-
t ===
|
|
1548
|
+
const Eo = Ee(!1), Wo = le((e, t) => {
|
|
1549
|
+
t === Tt.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1550
|
+
t === Tt.current && (Eo.current = To.current?.contains(document.activeElement) ?? !0, Ct(t), uo(e));
|
|
1462
1551
|
}));
|
|
1463
1552
|
}, []);
|
|
1464
|
-
|
|
1465
|
-
Eo.current && (Eo.current = !1,
|
|
1466
|
-
}, [
|
|
1467
|
-
const Fo =
|
|
1468
|
-
const { ref: t, ...o } = e, r =
|
|
1469
|
-
render:
|
|
1553
|
+
Se(() => {
|
|
1554
|
+
Eo.current && (Eo.current = !1, Re.current?.focus());
|
|
1555
|
+
}, [vt]);
|
|
1556
|
+
const Fo = De((e) => {
|
|
1557
|
+
const { ref: t, ...o } = e, r = st ? nt.dark : nt.light, n = "error" === xt.status && g ? Ye(re, {
|
|
1558
|
+
render: g,
|
|
1470
1559
|
props: {
|
|
1471
|
-
...
|
|
1560
|
+
...f,
|
|
1472
1561
|
style: {
|
|
1473
1562
|
width: "100%",
|
|
1474
1563
|
height: "100%",
|
|
1475
|
-
...
|
|
1564
|
+
...f?.style
|
|
1476
1565
|
},
|
|
1477
|
-
error:
|
|
1566
|
+
error: xt.error
|
|
1478
1567
|
}
|
|
1479
1568
|
}) : null;
|
|
1480
|
-
if (n && !
|
|
1569
|
+
if (n && !vt) return Ye(at, {
|
|
1481
1570
|
style: {
|
|
1482
1571
|
width: "100%",
|
|
1483
1572
|
height: "100%",
|
|
@@ -1489,90 +1578,90 @@ var Yt = () => {
|
|
|
1489
1578
|
children: n
|
|
1490
1579
|
});
|
|
1491
1580
|
let l = null;
|
|
1492
|
-
if (
|
|
1493
|
-
const e =
|
|
1494
|
-
render: void 0 ===
|
|
1581
|
+
if (vt) {
|
|
1582
|
+
const e = vt, n = e.getView(), a = ue ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ut?.source ?? Re.current, d = Ye(re, {
|
|
1583
|
+
render: void 0 === Ie ? go : Ie,
|
|
1495
1584
|
props: {
|
|
1496
1585
|
workbook: s,
|
|
1497
|
-
...
|
|
1586
|
+
...Pe
|
|
1498
1587
|
}
|
|
1499
|
-
}),
|
|
1500
|
-
render: void 0 ===
|
|
1588
|
+
}), u = "bottom" === Le, g = a ? Ye(re, {
|
|
1589
|
+
render: void 0 === ke ? m : ke,
|
|
1501
1590
|
props: {
|
|
1502
|
-
ref:
|
|
1591
|
+
ref: Me,
|
|
1503
1592
|
style: {
|
|
1504
|
-
marginTop: r.spacing(
|
|
1593
|
+
marginTop: r.spacing(u ? .5 : .25),
|
|
1505
1594
|
marginLeft: r.spacing(1),
|
|
1506
1595
|
marginRight: r.spacing(1),
|
|
1507
|
-
marginBottom: r.spacing(
|
|
1596
|
+
marginBottom: r.spacing(u ? .5 : .75)
|
|
1508
1597
|
},
|
|
1509
1598
|
workbook: e,
|
|
1510
|
-
editable:
|
|
1511
|
-
placement:
|
|
1512
|
-
...
|
|
1599
|
+
editable: Rt ?? void 0,
|
|
1600
|
+
placement: Le,
|
|
1601
|
+
...me,
|
|
1513
1602
|
propsNamedCollectionEditor: {
|
|
1514
1603
|
restoreFocus: (e) => s?.focus(e),
|
|
1515
|
-
...
|
|
1604
|
+
...me?.propsNamedCollectionEditor
|
|
1516
1605
|
}
|
|
1517
1606
|
}
|
|
1518
|
-
}) : null, f = i ?
|
|
1519
|
-
render: void 0 ===
|
|
1607
|
+
}) : null, f = i ? Ye(re, {
|
|
1608
|
+
render: void 0 === Fe ? h : Fe,
|
|
1520
1609
|
props: {
|
|
1521
|
-
childrenEnd:
|
|
1522
|
-
...
|
|
1610
|
+
childrenEnd: oo,
|
|
1611
|
+
...Ce
|
|
1523
1612
|
}
|
|
1524
|
-
}) : null, k = (e, r) =>
|
|
1525
|
-
...
|
|
1613
|
+
}) : null, k = (e, r) => Ye(p, {
|
|
1614
|
+
...pe,
|
|
1526
1615
|
tabIndex: 0,
|
|
1527
|
-
autoFocus: !r &&
|
|
1616
|
+
autoFocus: !r && z,
|
|
1528
1617
|
workbook: e,
|
|
1529
|
-
editable: r ? void 0 :
|
|
1618
|
+
editable: r ? void 0 : Rt ?? void 0,
|
|
1530
1619
|
focusNameBox: r ? void 0 : $e,
|
|
1531
|
-
prefetch: !r &&
|
|
1532
|
-
ref: r ?
|
|
1533
|
-
onWorkbookLoad: r ? (t) =>
|
|
1620
|
+
prefetch: !r && c,
|
|
1621
|
+
ref: r ? je : St([t, Re]),
|
|
1622
|
+
onWorkbookLoad: r ? (t) => Wo(t, e) : uo,
|
|
1534
1623
|
onKeyDown: (e) => {
|
|
1535
|
-
|
|
1624
|
+
v?.(e);
|
|
1536
1625
|
},
|
|
1537
|
-
propsWorkbookLoading:
|
|
1626
|
+
propsWorkbookLoading: ce,
|
|
1538
1627
|
renderWorkbookLoading: null,
|
|
1539
1628
|
style: r ? {
|
|
1540
|
-
...
|
|
1629
|
+
...pe?.style,
|
|
1541
1630
|
position: "absolute",
|
|
1542
1631
|
inset: 0,
|
|
1543
1632
|
visibility: "hidden"
|
|
1544
1633
|
} : {
|
|
1545
1634
|
flex: "1 1 100%",
|
|
1546
1635
|
minHeight: 0,
|
|
1547
|
-
...
|
|
1636
|
+
...pe?.style
|
|
1548
1637
|
},
|
|
1549
1638
|
onContextMenu: (e) => e.preventDefault(),
|
|
1550
1639
|
...r ? null : o
|
|
1551
1640
|
}, e.getId());
|
|
1552
|
-
l =
|
|
1641
|
+
l = Ye("div", {
|
|
1553
1642
|
style: {
|
|
1554
1643
|
display: "flex",
|
|
1555
1644
|
flexDirection: "column",
|
|
1556
1645
|
flex: "1 1 100%",
|
|
1557
1646
|
minWidth: 0,
|
|
1558
1647
|
minHeight: 0,
|
|
1559
|
-
|
|
1648
|
+
...$({
|
|
1560
1649
|
window: r.palette.background.default,
|
|
1561
1650
|
windowText: r.palette.text.primary
|
|
1562
1651
|
})
|
|
1563
1652
|
},
|
|
1564
|
-
children:
|
|
1653
|
+
children: lo(Le, {
|
|
1565
1654
|
toolbar: d,
|
|
1566
|
-
formulaBar:
|
|
1655
|
+
formulaBar: g,
|
|
1567
1656
|
statusBar: f,
|
|
1568
|
-
main:
|
|
1569
|
-
taskSide:
|
|
1570
|
-
persistKey:
|
|
1571
|
-
sidebarElement: vo ?
|
|
1572
|
-
scope:
|
|
1657
|
+
main: Ye(io, {
|
|
1658
|
+
taskSide: x,
|
|
1659
|
+
persistKey: yo,
|
|
1660
|
+
sidebarElement: vo ? Ye(X.CommandScopeProvider, {
|
|
1661
|
+
scope: ho,
|
|
1573
1662
|
children: vo
|
|
1574
1663
|
}) : void 0,
|
|
1575
|
-
mainElement:
|
|
1664
|
+
mainElement: Ze("div", {
|
|
1576
1665
|
style: {
|
|
1577
1666
|
position: "relative",
|
|
1578
1667
|
display: "flex",
|
|
@@ -1581,8 +1670,8 @@ var Yt = () => {
|
|
|
1581
1670
|
minWidth: 0,
|
|
1582
1671
|
minHeight: 0
|
|
1583
1672
|
},
|
|
1584
|
-
children: [[k(
|
|
1585
|
-
ref:
|
|
1673
|
+
children: [[k(vt, !1), Dt ? k(Dt, !0) : null], Ye(Je, {
|
|
1674
|
+
ref: ao,
|
|
1586
1675
|
sx: {
|
|
1587
1676
|
position: "absolute",
|
|
1588
1677
|
top: "10%",
|
|
@@ -1598,17 +1687,17 @@ var Yt = () => {
|
|
|
1598
1687
|
})
|
|
1599
1688
|
});
|
|
1600
1689
|
}
|
|
1601
|
-
const d = !
|
|
1602
|
-
render:
|
|
1603
|
-
props: { ...
|
|
1690
|
+
const d = !Ut && se ? Ye(re, {
|
|
1691
|
+
render: se,
|
|
1692
|
+
props: { ...ce }
|
|
1604
1693
|
}) : null;
|
|
1605
|
-
return
|
|
1606
|
-
sx:
|
|
1694
|
+
return Ze(at, {
|
|
1695
|
+
sx: wo,
|
|
1607
1696
|
style: {
|
|
1608
1697
|
width: "100%",
|
|
1609
|
-
height:
|
|
1610
|
-
transform:
|
|
1611
|
-
overscrollBehavior:
|
|
1698
|
+
height: He ? `calc(100% - ${He}px)` : "100%",
|
|
1699
|
+
transform: Ve ? `translateY(${Ve}px)` : void 0,
|
|
1700
|
+
overscrollBehavior: _e ? "none" : void 0,
|
|
1612
1701
|
position: "absolute",
|
|
1613
1702
|
display: "flex",
|
|
1614
1703
|
alignItems: "stretch",
|
|
@@ -1621,7 +1710,7 @@ var Yt = () => {
|
|
|
1621
1710
|
variant: s,
|
|
1622
1711
|
children: [
|
|
1623
1712
|
l,
|
|
1624
|
-
n ?
|
|
1713
|
+
n ? Ye(at, {
|
|
1625
1714
|
style: {
|
|
1626
1715
|
position: "absolute",
|
|
1627
1716
|
inset: 0,
|
|
@@ -1631,114 +1720,114 @@ var Yt = () => {
|
|
|
1631
1720
|
},
|
|
1632
1721
|
children: n
|
|
1633
1722
|
}) : null,
|
|
1634
|
-
d ?
|
|
1723
|
+
d ? Ye("div", {
|
|
1635
1724
|
style: {
|
|
1636
1725
|
position: "absolute",
|
|
1637
1726
|
inset: 0,
|
|
1638
1727
|
display: "flex",
|
|
1639
1728
|
alignItems: "center",
|
|
1640
1729
|
justifyContent: "center",
|
|
1641
|
-
background: `var(--sxl-color-base-100, ${
|
|
1730
|
+
background: `var(--sxl-color-base-100, ${st ? "#121212" : "#fff"})`
|
|
1642
1731
|
},
|
|
1643
1732
|
children: d
|
|
1644
1733
|
}) : null
|
|
1645
1734
|
]
|
|
1646
1735
|
});
|
|
1647
1736
|
}, [
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1737
|
+
xt,
|
|
1738
|
+
vt,
|
|
1739
|
+
Dt,
|
|
1740
|
+
Ut,
|
|
1651
1741
|
Qt,
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
he,
|
|
1742
|
+
se,
|
|
1743
|
+
ce,
|
|
1744
|
+
pe,
|
|
1656
1745
|
a,
|
|
1657
1746
|
i,
|
|
1658
1747
|
s,
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1748
|
+
oo,
|
|
1749
|
+
g,
|
|
1750
|
+
f,
|
|
1751
|
+
go,
|
|
1752
|
+
wo,
|
|
1664
1753
|
vo,
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1754
|
+
x,
|
|
1755
|
+
ho,
|
|
1756
|
+
ue,
|
|
1757
|
+
me,
|
|
1668
1758
|
ke,
|
|
1759
|
+
Le,
|
|
1760
|
+
Rt,
|
|
1761
|
+
ve,
|
|
1669
1762
|
Ce,
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
Ae,
|
|
1763
|
+
Fe,
|
|
1764
|
+
Pe,
|
|
1673
1765
|
Ie,
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
Ne,
|
|
1766
|
+
_e,
|
|
1767
|
+
He,
|
|
1677
1768
|
Ve,
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
ct,
|
|
1681
|
-
dt
|
|
1769
|
+
nt,
|
|
1770
|
+
st
|
|
1682
1771
|
]);
|
|
1683
|
-
let
|
|
1772
|
+
let Po = Ye(Wt, {
|
|
1684
1773
|
maxSnack: 3,
|
|
1685
|
-
domRoot:
|
|
1774
|
+
domRoot: ro ?? void 0,
|
|
1686
1775
|
anchorOrigin: {
|
|
1687
1776
|
vertical: "bottom",
|
|
1688
1777
|
horizontal: "right"
|
|
1689
1778
|
},
|
|
1690
1779
|
autoHideDuration: 3500,
|
|
1691
1780
|
onClose: (e, t, o) => {
|
|
1692
|
-
|
|
1781
|
+
Re.current?.focus();
|
|
1693
1782
|
},
|
|
1694
|
-
Components: { error:
|
|
1783
|
+
Components: { error: $t },
|
|
1695
1784
|
iconVariant: {
|
|
1696
|
-
success:
|
|
1785
|
+
success: Ye(it, {
|
|
1697
1786
|
style: { marginRight: "8px" },
|
|
1698
|
-
children:
|
|
1787
|
+
children: Ye("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" })
|
|
1699
1788
|
}),
|
|
1700
|
-
error:
|
|
1789
|
+
error: Ye(Z, {
|
|
1701
1790
|
iconKey: "ErrorAlert",
|
|
1702
1791
|
style: { marginRight: "8px" }
|
|
1703
1792
|
})
|
|
1704
1793
|
},
|
|
1705
|
-
children:
|
|
1706
|
-
workbook:
|
|
1707
|
-
children:
|
|
1794
|
+
children: Ye(j, {
|
|
1795
|
+
workbook: vt,
|
|
1796
|
+
children: Ye(A, {
|
|
1708
1797
|
renderArea: So,
|
|
1709
1798
|
onUpdateArea: (e) => {
|
|
1710
1799
|
Co(e);
|
|
1711
1800
|
},
|
|
1712
|
-
children:
|
|
1713
|
-
workbook:
|
|
1714
|
-
initialCommandAnchor:
|
|
1801
|
+
children: Ye(Oe, { children: Ye(Jt, { children: Ye(ie, { children: Ye(ee, { children: Ye(Xt, {
|
|
1802
|
+
workbook: vt,
|
|
1803
|
+
initialCommandAnchor: po,
|
|
1715
1804
|
renderWorkbook: Fo,
|
|
1716
|
-
setWorkbook:
|
|
1717
|
-
titleWorkbook:
|
|
1718
|
-
setWorkbookTitle:
|
|
1719
|
-
refDocumentTitle:
|
|
1720
|
-
isDirty:
|
|
1721
|
-
refSave:
|
|
1805
|
+
setWorkbook: Pt,
|
|
1806
|
+
titleWorkbook: Qt,
|
|
1807
|
+
setWorkbookTitle: Zt,
|
|
1808
|
+
refDocumentTitle: mo,
|
|
1809
|
+
isDirty: Vt,
|
|
1810
|
+
refSave: Ht,
|
|
1722
1811
|
host: r
|
|
1723
1812
|
}) }) }) }) })
|
|
1724
1813
|
})
|
|
1725
1814
|
})
|
|
1726
1815
|
});
|
|
1727
|
-
return
|
|
1728
|
-
theme:
|
|
1816
|
+
return Po = Ze(ct, {
|
|
1817
|
+
theme: st ? nt.dark : nt.light,
|
|
1729
1818
|
children: [
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1819
|
+
B ? Ye(ot, {}) : null,
|
|
1820
|
+
Ye("style", { children: lt }),
|
|
1821
|
+
Ye("style", { children: dt }),
|
|
1822
|
+
Ye(Ne, {
|
|
1734
1823
|
themeScopeClass: n,
|
|
1735
1824
|
themeSurface: "app",
|
|
1736
|
-
themeMode:
|
|
1737
|
-
children:
|
|
1825
|
+
themeMode: Qe,
|
|
1826
|
+
children: Po
|
|
1738
1827
|
})
|
|
1739
1828
|
]
|
|
1740
|
-
}),
|
|
1829
|
+
}), Po;
|
|
1741
1830
|
}));
|
|
1742
|
-
|
|
1743
|
-
var
|
|
1744
|
-
export {
|
|
1831
|
+
wo.displayName = "EagerStudio";
|
|
1832
|
+
var xo = (e) => Ye(oo, { ...e });
|
|
1833
|
+
export { wo as EagerStudio, wo as default, Ot as n, fo as t };
|