@sheetxl/studio-mui 0.8.0-beta.17 → 0.8.0-beta.19
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/{CaI0Mfu6ECDIzCpr.mjs → 3pGM81cqNJ8DDWp_.mjs} +2 -2
- package/browser/esm/{DwiKIdqmaBk2pTBp.mjs → 8nIjNjh3EYKTlgnw.mjs} +8 -8
- package/browser/esm/B0NC2aGu9jgdelTz.mjs +14 -0
- package/browser/esm/{fSCwNKAcSc0mr2Ec.mjs → B2nWe09MDoBLwo_k.mjs} +1 -1
- package/browser/esm/{sjJ2Yb_cf_KL--Cl.mjs → B45dW1aZ8s9mufl_.mjs} +2 -2
- package/browser/esm/{BTb_Djaoxz3G27t-.mjs → B83kgckQsC0aY0NE.mjs} +5 -5
- package/browser/esm/{D9ija-5d57x-qUQv.mjs → B95vnhVq0KnbcA_Y.mjs} +1 -1
- package/browser/esm/{ChORBNItvZW0e8Nb.mjs → BBbQjMATTPG16Lr9.mjs} +1 -1
- package/browser/esm/{mP32LfcEodsaGDPi.mjs → BC0b8N0c-Yenu46_.mjs} +5 -5
- package/browser/esm/{BkABsPS9qbyYS2i7.mjs → BCJ3o3M62lsBKbae.mjs} +1 -1
- package/browser/esm/{Cb3HSSD7snyRPNh8.mjs → BJY1GNwcHIjXI6Dy.mjs} +1 -1
- package/browser/esm/{BnLdmQ91UIGs0zyR.mjs → BLZvY9XJL32hg1F-.mjs} +1 -1
- package/browser/esm/{Dx0ymWD1uI_Q63eZ.mjs → BMfZqSxbgNWsKjqY.mjs} +2 -2
- package/browser/esm/{C8kveDS4xm6D2Aaq.mjs → BQjxD6zW8juryZHL.mjs} +2 -2
- package/browser/esm/{BFN88LECqMerqLYN.mjs → BRfhOI9RpekZBcrO.mjs} +6 -6
- package/browser/esm/{g_bvg4HpyaF6f_JY.mjs → BSmY1OUM8_F-moJ0.mjs} +4 -4
- package/browser/esm/{BGNhe08mdWf8dIuk.mjs → BUr5VGHQCYpQeran.mjs} +5 -5
- package/browser/esm/{CvzzESAZRMWQ4cGq.mjs → B_Vk87a5g9DxCz2O.mjs} +5 -5
- package/browser/esm/{CMIM0wPs_KvfwLEl.mjs → Bece9zSczcJRj6iF.mjs} +2 -2
- package/browser/esm/{JqMZ95e5lhq09vm6.mjs → BgxFFejwP2YXqYGy.mjs} +2 -2
- package/browser/esm/{B2LvYLt27hzoarA9.mjs → BhHlzIhnBJqfHSKP.mjs} +2361 -2110
- package/browser/esm/{CmMD76_yBG4xmsEr.mjs → Bik5wGC75z2BvotX.mjs} +3 -3
- package/browser/esm/{DK39s_Fn9M22RfJm.mjs → BjdZOM-UvDoJaYFo.mjs} +2 -2
- package/browser/esm/{DmBu6kgMNT26tmsZ.mjs → Bkw1PteOYKjHz41s.mjs} +3 -3
- package/browser/esm/{DxFw-07oIjr7GRb3.mjs → BlE9-hSf71ZoAM0M.mjs} +1 -1
- package/browser/esm/{DGkQsCJP29nZteu8.mjs → BsBeOKW7EhSZ9E5v.mjs} +4 -4
- package/browser/esm/{DrtEkQTJM7oPvC9v.mjs → Bscb3ZfordY8Cyzo.mjs} +2 -2
- package/browser/esm/{_PlChb18jQMPAKJX.mjs → C8FnFcYHBHv7mRsK.mjs} +36 -36
- package/browser/esm/{GqSAEzE_2tOJlvNG.mjs → C8sDMsI-mfPVArSI.mjs} +2 -2
- package/browser/esm/{Bh1YkrKuSZs-xdlw.mjs → CDuVmLEi65HzZ-mo.mjs} +2 -2
- package/browser/esm/{BXhWCOPioL48V_9k.mjs → CEjud4n-8EggO2Im.mjs} +1 -1
- package/browser/esm/{LaC0D0C9yJ8y_l6X.mjs → CLVbEJee8eD3qMJR.mjs} +8 -8
- package/browser/esm/{BBGsto_-YGhTouc9.mjs → CMEIC_DYikQRzC9L.mjs} +602 -601
- package/browser/esm/{BNfIFd07bhGqs-U9.mjs → CUi2AR-pqVbpTLq4.mjs} +1 -1
- package/browser/esm/{BxHaU8-LCw4IHrDn.mjs → CdFz-uXCDYgv_iOM.mjs} +1 -1
- package/browser/esm/{C2ZbV5cXpGPYeqM1.mjs → Cmm97cKH5IugcalW.mjs} +1 -1
- package/browser/esm/{BoXCzcrUFER3B585.mjs → Cp6H28QXgHRfTJ_n.mjs} +4 -4
- package/browser/esm/{DL0r5MrPx8CkL_r_.mjs → CtJpnIXloxW2qFGC.mjs} +4 -4
- package/browser/esm/{D1_8p15KJ7DSZEis.mjs → CzGACZ7X-3Z7pXxH.mjs} +2 -2
- package/browser/esm/D1EKHirhjR-MmeXo.mjs +8 -0
- package/browser/esm/{Cvbms6f8QMP1ubyI.mjs → D3mfQHjRbA8iPLtv.mjs} +2 -2
- package/browser/esm/{D2Kz08pq5zPz2n3y.mjs → D4LGe9Sxrf-egOPN.mjs} +1 -1
- package/browser/esm/{DQjJFUPHg_aU2BDi.mjs → D5fCoDA2NoOFViRy.mjs} +4 -4
- package/browser/esm/{CP-c6sUINCv0Nf4P.mjs → D9ObD_aKgMWUPN0P.mjs} +4 -4
- package/browser/esm/{D078ssKRI39FdHNq.mjs → DApXGOAXNdSZdYbT.mjs} +2 -2
- package/browser/esm/{0FLmtunmoRFjO-dk.mjs → DIC6M937GziE0_9l.mjs} +2 -2
- package/browser/esm/{cNsbq0TIia7SdBHP.mjs → DJTesgYNvoQv2Obl.mjs} +4 -4
- package/browser/esm/{W5Rvml-3G4XekwoR.mjs → DM9uGmTSDdyoRyRM.mjs} +3 -3
- package/browser/esm/{BnMZSJdWZzdK-AXs.mjs → DMWgj1E1kYrTdAnf.mjs} +3 -3
- package/browser/esm/{BEIcp6BzAg3H6JBB.mjs → DeJenn9MUICppyMl.mjs} +2 -2
- package/browser/esm/{NQzIcNkm0QxNuzx9.mjs → DhXTTl8_kMjearig.mjs} +1 -1
- package/browser/esm/Dp2cNfLOjOTs8V8x.mjs +267 -0
- package/browser/esm/{D4FRExfK7RsdS08S.mjs → Dvjjsols1lZ1qITL.mjs} +1 -1
- package/browser/esm/{CHm8-sLarqD1--If.mjs → M-Rp0gM6kZb12Kim.mjs} +1 -1
- package/browser/esm/index.mjs +1075 -299
- package/browser/esm/{DcUtMgA17fh_UJlQ.mjs → mBFrzCJis1-EVKL7.mjs} +1 -1
- package/browser/esm/{CuysyoZ-rmDHwaJJ.mjs → p4Q_TpZ_s60_L7Ux.mjs} +1 -1
- package/browser/esm/{Cf855AHLcB7WuFr3.mjs → s1DZ7iQHOb3R9G7m.mjs} +2 -2
- package/browser/esm/v2EnJ1fOZEXqAVlO.mjs +94 -0
- package/browser/esm/{Dd6iR6EeV81idc-J.mjs → z7Sn4ncaTwiv23Fv.mjs} +4 -4
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{sHdUrEwlYxyLkkL6.mjs → 9pdLzab-4aEax8pG.mjs} +3 -3
- package/node/esm/{Bp6WSG8tmXefxSlk.mjs → B16pFUEecGy6x7Sf.mjs} +2 -2
- package/node/esm/{CCy_wcDWd9xbQnyM.mjs → B47JoJYzEtS6ivoC.mjs} +1 -1
- package/node/esm/{Jp--thwzf0FSnHTH.mjs → B90Z94PB2O0Upt5h.mjs} +1 -1
- package/node/esm/{CD-S0_rfDY5u82_A.mjs → BB5L5Y9qCXXDTqg-.mjs} +1 -1
- package/node/esm/{D1XvISMVj1HimOTS.mjs → BUzCcr3jpBtj-9vH.mjs} +13 -13
- package/node/esm/{BzLnWJ1JhLnookTH.mjs → BdiSsEIgA0Pvd6bN.mjs} +1 -1
- package/node/esm/{lhMHEjzlz63h_qU0.mjs → BjEZxA3zF89uf47R.mjs} +188 -188
- package/node/esm/{DMfK0wa8UHeJyxii.mjs → BjwbCQEJ3tllXtIc.mjs} +340 -335
- package/node/esm/{CA2iwgwOkAwRJU9j.mjs → Bkeg-KR5CHgIgCHZ.mjs} +1 -1
- package/node/esm/{DJuEU0TbZXyTnThP.mjs → BpJ0H2dpKtg21Mtw.mjs} +3 -3
- package/node/esm/{r8bpi-MSpulvmozZ.mjs → BulNRuKygH0oLixF.mjs} +1 -1
- package/node/esm/{CQd5k9d0BWpU8yCQ.mjs → CASMs7A6E_qrcIMk.mjs} +1 -1
- package/node/esm/{D2ZUCui3Xosjj66H.mjs → CDbGB8TtNQhkBXqI.mjs} +1 -1
- package/node/esm/{Cb0TicO5Utg9e5Qy.mjs → CF7peiUJfmOOPRFn.mjs} +1 -1
- package/node/esm/{BINV_bzMi8YLqzor.mjs → CGZ_p4-_DZzlvhMG.mjs} +2 -2
- package/node/esm/{BWl0RjNZfoJvRX_2.mjs → CHaPiJTvsCR2Z3sC.mjs} +4 -4
- package/node/esm/{D71TbUFABfTixyiQ.mjs → CIAX0QoWY_xslYfv.mjs} +9 -9
- package/node/esm/{BrHbeFtSmaPq19cu.mjs → CPHJFMyFxjErRLvR.mjs} +2 -2
- package/node/esm/{akKdwInE4KLNjHQu.mjs → CY-1AXXWawiEXRDw.mjs} +3 -3
- package/node/esm/{DYRV7b1ZSbxrjcuA.mjs → CYP_F_suVtfwdtBl.mjs} +2 -2
- package/node/esm/{D9jTg0iWTubkisDB.mjs → ClDMRc2s0BBAKhHL.mjs} +5 -5
- package/node/esm/{Dm-skjfQUaumyQPp.mjs → D7-QWEykZGrgV_xs.mjs} +18 -18
- package/node/esm/{BySbwlaepgugcINA.mjs → D9Wle8u7Cs7tigPT.mjs} +4 -4
- package/node/esm/{DHiJ5D_q7YVsClMf.mjs → DCDqfmTkvT0D2Z5h.mjs} +2 -2
- package/node/esm/DGzJYFzo02DBhqYC.mjs +14 -0
- package/node/esm/DN7uFaCytRrXMJpu.mjs +267 -0
- package/node/esm/{D7__y1LhVOR38yxz.mjs → DSAtnDj1sXUS0LYj.mjs} +1 -1
- package/node/esm/{5Kkr-d9gc7GsfmI5.mjs → DV5zGC0IZiv_lqwa.mjs} +1 -1
- package/node/esm/{BiVdQ27eA1Rs9liu.mjs → DhKvwk063hs0qEKD.mjs} +1 -1
- package/node/esm/{ClwmPxZc7Uh4nRcr.mjs → DiCErpAUUdV9xdwZ.mjs} +1 -1
- package/node/esm/{DvN4Z2Hx4Es0sdaK.mjs → Dp-aLdsFlu4Aw1Li.mjs} +4 -4
- package/node/esm/{B6YmbuWU-fHrjOnB.mjs → DqZ4g3pHAK7bKVvG.mjs} +1 -1
- package/node/esm/DssxcB0PnN-PgzzK.mjs +94 -0
- package/node/esm/{axzlGUKK8euccdja.mjs → DzwUDrXp4uuQ6bv0.mjs} +2 -2
- package/node/esm/{C-Y0ELSBNT5h6V0l.mjs → _gNQ05R589In7vSm.mjs} +3 -3
- package/node/esm/{BGWb71anMM4S4UTg.mjs → e_kM3nD2aaiphEoS.mjs} +22 -22
- package/node/esm/{a69xG_vSg2OC9_22.mjs → i0R7voLYNUjkbop2.mjs} +1 -1
- package/node/esm/index.mjs +4827 -3799
- package/node/esm/{DN2KKVrC1ye0mldi.mjs → viu5OtK-dXOIQdlG.mjs} +1 -1
- package/package.json +9 -9
- package/resources/contents.json +6 -0
- package/resources/locales/contents.json +14 -0
- package/resources/locales/de/groups.cmd.json +29 -0
- package/resources/locales/de/ui.msg.json +48 -0
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +29 -0
- package/resources/locales/en/ui.msg.json +48 -0
- package/resources/locales/en/workbookAnomalies.cmd.json +14 -0
- package/types/src/anomalies/AnomaliesCommands.d.ts +8 -0
- package/types/src/anomalies/AnomaliesMessages.d.ts +30 -0
- package/types/src/anomalies/AnomaliesPlugin.d.ts +9 -2
- package/types/src/anomalies/_source.d.ts +7 -0
- package/types/src/chart/ChartPlugin.d.ts +1 -1
- package/types/src/command/ColorCommandButton.d.ts +5 -0
- package/types/src/comments/CommentsPlugin.d.ts +1 -1
- package/types/src/conditionalFormat/ConditionalFormatPlugin.d.ts +1 -1
- package/types/src/dataValidation/DataValidationPlugin.d.ts +1 -1
- package/types/src/dialog/SparklineEditDialog.d.ts +10 -0
- package/types/src/dialog/SparklineNewDialog.d.ts +23 -0
- package/types/src/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- package/types/src/formulaBar/IFormulaBar.d.ts +17 -1
- package/types/src/formulaBar/MobileFormulaBar.d.ts +11 -2
- package/types/src/index.d.ts +1 -0
- package/types/src/named/NamedPlugin.d.ts +1 -1
- package/types/src/picture/PicturePlugin.d.ts +1 -1
- package/types/src/pivot/PivotPlugin.d.ts +1 -1
- package/types/src/presence/PresenceOverlay.d.ts +14 -0
- package/types/src/presence/PresencePlugin.d.ts +31 -0
- package/types/src/presence/PresenceStrip.d.ts +22 -0
- package/types/src/presence/PresenceTaskPane.d.ts +13 -0
- package/types/src/presence/Timeline.d.ts +29 -0
- package/types/src/presence/index.d.ts +5 -0
- package/types/src/protection/ProtectionPlugin.d.ts +1 -1
- package/types/src/shape/ShapePlugin.d.ts +1 -1
- package/types/src/slicer/SlicerPlugin.d.ts +1 -1
- package/types/src/studio/StudioProps.d.ts +16 -9
- package/types/src/studio/useStudioApp.d.ts +6 -0
- package/types/src/table/TablePlugin.d.ts +1 -1
- package/browser/esm/Dd8j9U2Vlvrue2LA.mjs +0 -212
- package/node/esm/CyxhIZwqwx_Kt70P.mjs +0 -212
|
@@ -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.19
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
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,
|
|
8
|
-
import { CommandRootProvider as D, DefaultTaskPaneRegistry as S, LogoNoPaddingIcon as T,
|
|
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,
|
|
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, ThemeStateDefaults as I, ThemeStateKey as N, WorkbookIO as R, WorkbookProvider as j, buildOOXMLThemeCSS as O, createEditable as $, createSystemColorVars as M, registerMovablePane as L, useDocThemes as B, useModelSync as K, useReferenceModeStore as _, useResolvedWorkbook as z, useTaskPaneArea as H, useWorkbookEncrypted as V, useWorkbookName as U, useWorkbookSaveState as G } from "@sheetxl/react";
|
|
9
|
+
import { Command as q, DefaultCommandButtonRegistry as X, DefaultIconService as Y, DynamicIcon as Z, LanguageStateKey as J, NotifierType as Q, ReactErrorBoundary as ee, ReactNotifierProvider as te, ReactUtils as oe, RenderSlot as re, ScrollUtils as ne, SplitPane as ae, 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, useTokenThemeContext as ke, useTranslator as be } from "@sheetxl/utils-react";
|
|
10
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
|
|
11
|
+
import { AnimatedLoadingPanel as Fe, AnimatedTraversingEllipsisIcon as Ae, CommandGroup as Pe, ExhibitDivider as Ie, ExhibitFloatProvider as Ne, ExhibitMenuItem as Re, ExhibitTooltip as je, ModalProvider as Oe, SelectedIcon as $e, SimpleTooltip as Me, StackTrace as Le, createExhibitTheme as Be, hideLoadingPanel as Ke, lazyModal as _e, lazyPanel as ze, showLoadingPanel as He, useInputDialog as Ve, useLazyWindow as Ue, useModal as Ge, useOptionsDialog as qe } from "@sheetxl/utils-mui";
|
|
12
12
|
import { Fragment as Xe, jsx as Ye, jsxs as Ze } from "react/jsx-runtime";
|
|
13
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
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
15
|
import Dt from "clsx";
|
|
16
16
|
import { mergeRefs as St, useMergeRefs as Tt } from "react-merge-refs";
|
|
17
17
|
import { SnackbarContent as Et, SnackbarProvider as Wt, useSnackbar as Ft } from "notistack";
|
|
18
|
-
var
|
|
18
|
+
var At = Object.defineProperty, Pt = (e, t) => {
|
|
19
19
|
let o = {};
|
|
20
|
-
for (var r in e)
|
|
20
|
+
for (var r in e) At(o, r, {
|
|
21
21
|
get: e[r],
|
|
22
22
|
enumerable: !0
|
|
23
23
|
});
|
|
24
|
-
return t ||
|
|
25
|
-
}, It =
|
|
24
|
+
return t || At(o, Symbol.toStringTag, { value: "Module" }), o;
|
|
25
|
+
}, It = ze(wt("studio:conditionalFormatDetailsTaskPane", () => import("./BjEZxA3zF89uf47R.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Nt = ["lines"], Rt = /^[A-Za-z_\\][\w.\\]*$/, jt = /^\$?[A-Za-z]{1,3}\$?\d+$/, Ot = (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
29
|
return Rt.test(o) && !jt.test(o) ? o : t;
|
|
30
|
-
},
|
|
30
|
+
}, $t = {
|
|
31
31
|
card: "_card_h0jnt_7",
|
|
32
32
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
33
33
|
icons: "_icons_h0jnt_16",
|
|
@@ -37,8 +37,8 @@ var Pt = Object.defineProperty, At = (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 = Ce(xe((e, t) => {
|
|
41
|
+
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = be(), { closeSnackbar: c } = Ft(), [d, p] = We(!1), u = a ? kt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof bt), g = De(() => {
|
|
42
42
|
p((e) => !e);
|
|
43
43
|
}, []), h = De(() => {
|
|
44
44
|
c(o);
|
|
@@ -46,36 +46,36 @@ var Pt = Object.defineProperty, At = (e, t) => {
|
|
|
46
46
|
let f = u?.message;
|
|
47
47
|
return !f && ve(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), Ye(Et, {
|
|
48
48
|
ref: t,
|
|
49
|
-
className: Dt(
|
|
49
|
+
className: Dt($t.root, "error-snackbar"),
|
|
50
50
|
children: Ze(Qe, {
|
|
51
|
-
className:
|
|
51
|
+
className: $t.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
57
|
children: [Ze(et, {
|
|
58
|
-
className:
|
|
58
|
+
className: $t.actionRoot,
|
|
59
59
|
children: [
|
|
60
60
|
i ? null : n?.error,
|
|
61
61
|
Ye(dt, {
|
|
62
62
|
variant: "body2",
|
|
63
63
|
component: "div",
|
|
64
|
-
className:
|
|
64
|
+
className: $t.typography,
|
|
65
65
|
children: f
|
|
66
66
|
}),
|
|
67
67
|
Ye("div", { style: { flex: "1 1 auto" } }),
|
|
68
68
|
Ze("div", {
|
|
69
|
-
className:
|
|
69
|
+
className: $t.icons,
|
|
70
70
|
children: [m ? Ye(nt, {
|
|
71
71
|
"aria-label": l("toast.showMore"),
|
|
72
72
|
size: "small",
|
|
73
|
-
className: Dt(
|
|
73
|
+
className: Dt($t.expand, { [$t.expandOpen]: d }),
|
|
74
74
|
onClick: g,
|
|
75
75
|
children: Ye(Z, { iconKey: "ExpandMore" })
|
|
76
76
|
}) : null, Ye(nt, {
|
|
77
77
|
size: "small",
|
|
78
|
-
className:
|
|
78
|
+
className: $t.expand,
|
|
79
79
|
onClick: h,
|
|
80
80
|
children: Ye(Z, {
|
|
81
81
|
iconKey: "Close",
|
|
@@ -88,7 +88,7 @@ var Pt = Object.defineProperty, At = (e, t) => {
|
|
|
88
88
|
in: d,
|
|
89
89
|
timeout: "auto",
|
|
90
90
|
children: Ye("div", {
|
|
91
|
-
className:
|
|
91
|
+
className: $t.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)"
|
|
@@ -102,9 +102,9 @@ var Pt = Object.defineProperty, At = (e, t) => {
|
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
}));
|
|
105
|
-
|
|
105
|
+
Mt.displayName = "ToastError";
|
|
106
106
|
var Lt = () => {
|
|
107
|
-
const e =
|
|
107
|
+
const e = be();
|
|
108
108
|
return Ye(je, {
|
|
109
109
|
label: "SheetXL",
|
|
110
110
|
description: e("logo.description"),
|
|
@@ -127,8 +127,8 @@ var Lt = () => {
|
|
|
127
127
|
} })
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
|
-
}, Bt = Ye(Lt, {}),
|
|
131
|
-
const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] =
|
|
130
|
+
}, Bt = Ye(Lt, {}), Kt = Ce(xe((e, t) => {
|
|
131
|
+
const { workbook: o, className: r, logo: n = Bt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = me(), p = d < 530, u = Ee(null), m = Tt([
|
|
132
132
|
u,
|
|
133
133
|
c,
|
|
134
134
|
t
|
|
@@ -192,12 +192,12 @@ var Lt = () => {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}));
|
|
195
|
-
|
|
196
|
-
var
|
|
195
|
+
Kt.displayName = "StudioToolbar";
|
|
196
|
+
var _t = (e, t) => {
|
|
197
197
|
const o = new URL(window.location.pathname, window.location.origin);
|
|
198
198
|
e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + gt.uuidV4(), "popup=true");
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function zt(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) => {
|
|
@@ -303,7 +303,7 @@ function Ht(e, t) {
|
|
|
303
303
|
e?.source ? t && p ? await p({
|
|
304
304
|
url: e.source,
|
|
305
305
|
title: e.title
|
|
306
|
-
}) :
|
|
306
|
+
}) : _t(e.source, e.title) : t ? r({}) : _t();
|
|
307
307
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
308
308
|
a() && "Close" !== await i.showOptions({
|
|
309
309
|
title: Ct("dialog.confirm.title"),
|
|
@@ -462,9 +462,9 @@ function Ht(e, t) {
|
|
|
462
462
|
l = !0, s && (s.current = null);
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
|
|
467
|
-
var
|
|
465
|
+
var Ht = _e(wt("studio:shortcutKeysDialog", () => import("./BulNRuKygH0oLixF.mjs")).load);
|
|
466
|
+
y(), x();
|
|
467
|
+
var Vt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
468
468
|
const t = (e) => {
|
|
469
469
|
if ("function" != typeof e) return e;
|
|
470
470
|
try {
|
|
@@ -476,7 +476,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
476
476
|
const r = t(e);
|
|
477
477
|
return "string" == typeof r ? xt(r, o, ft.getActive()) : void 0;
|
|
478
478
|
}, r = [];
|
|
479
|
-
for (const n of e.names()) if (!
|
|
479
|
+
for (const n of e.names()) if (!Vt.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,18 +486,18 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
486
486
|
getDescription: () => o(i?.description, i?.params) ?? "",
|
|
487
487
|
getShortcut: () => t(i?.shortcut) ?? null,
|
|
488
488
|
getScope: () => n,
|
|
489
|
-
getScopeLabel: () =>
|
|
489
|
+
getScopeLabel: () => q.DefaultCommandCatalogService.getScopeLabel(n)
|
|
490
490
|
}
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
493
|
return { getAllCommands: () => r };
|
|
494
494
|
}, Gt = (e) => {
|
|
495
|
-
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l =
|
|
495
|
+
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = q.useCommandScope(), c = ge(), { showModal: d } = Ge(), p = be(), u = Ee(a);
|
|
496
496
|
u.current = a;
|
|
497
497
|
const m = le(() => {
|
|
498
498
|
const e = l?.getRoot().getRegistry();
|
|
499
499
|
if (!e) return;
|
|
500
|
-
const t = d(
|
|
500
|
+
const t = d(Ht, {
|
|
501
501
|
title: p("dialog.shortcutKeys.title"),
|
|
502
502
|
commands: Ut(e),
|
|
503
503
|
onDone: () => t.hide(),
|
|
@@ -522,7 +522,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
522
522
|
} });
|
|
523
523
|
}(e, { showShortcuts: m }), () => e.remove();
|
|
524
524
|
}, [l, m]);
|
|
525
|
-
const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } =
|
|
525
|
+
const g = ut("(prefers-color-scheme: dark)"), { themeMode: h } = fe(), [f, k] = he(N.Mode, I[N.Mode]), [b, y] = he(N.DarkGrid, I[N.DarkGrid]), [w, x] = he(N.DarkImages, I[N.DarkImages]);
|
|
526
526
|
Se(() => {
|
|
527
527
|
if (!l) return;
|
|
528
528
|
const e = l.getRoot().contribution();
|
|
@@ -564,7 +564,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
564
564
|
y,
|
|
565
565
|
x
|
|
566
566
|
]);
|
|
567
|
-
const [v, C] =
|
|
567
|
+
const [v, C] = he(J.Active, null), [D, S] = We(() => ft.getActive());
|
|
568
568
|
Se(() => ft.addChangeListener(S), []), Se(() => {
|
|
569
569
|
v && v !== ft.getActive() && ft.setActive(v);
|
|
570
570
|
}, [v]), Se(() => {
|
|
@@ -612,7 +612,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
612
612
|
W,
|
|
613
613
|
F
|
|
614
614
|
]);
|
|
615
|
-
const P =
|
|
615
|
+
const P = H(!0);
|
|
616
616
|
return Se(() => {
|
|
617
617
|
if (!l) return;
|
|
618
618
|
const e = l.getRoot().contribution();
|
|
@@ -620,13 +620,13 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
620
620
|
e.updateCommand("protectWorkbook", {
|
|
621
621
|
tags: ["noTransaction", "noRepeat"],
|
|
622
622
|
callback: () => {
|
|
623
|
-
t(
|
|
623
|
+
t(A.Protection, { args: { tab: "workbook" } });
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
}(e, (e, t) => P.activate(e, t)), () => e.remove();
|
|
627
627
|
}, [l, P]), Se(() => {
|
|
628
628
|
if (!l || !o) return;
|
|
629
|
-
const e = l.getRoot().contribution(), t =
|
|
629
|
+
const e = l.getRoot().contribution(), t = zt(e, {
|
|
630
630
|
workbook: o,
|
|
631
631
|
setWorkbook: r,
|
|
632
632
|
workbookTitle: n ?? void 0,
|
|
@@ -648,7 +648,7 @@ var zt = /* @__PURE__ */ new Set(["ui"]), Ut = (e) => {
|
|
|
648
648
|
};
|
|
649
649
|
Gt.displayName = "StudioCommandProvider";
|
|
650
650
|
var qt = ({ renderWorkbook: e }) => {
|
|
651
|
-
const t =
|
|
651
|
+
const t = q.useCommandResolver(), o = Ee(null), r = be(), [n, a] = We(null), i = De((e) => {
|
|
652
652
|
const o = e.dataTransfer;
|
|
653
653
|
if (t && o) {
|
|
654
654
|
if ("dragenter" === e.type || "dragover" === e.type) {
|
|
@@ -768,24 +768,26 @@ var qt = ({ renderWorkbook: e }) => {
|
|
|
768
768
|
});
|
|
769
769
|
Xt.displayName = "CommandsWrapper";
|
|
770
770
|
var Yt = {
|
|
771
|
-
sort: wt("studio:sortDialog", () => import("./
|
|
772
|
-
hyperlink: wt("studio:hyperlinkDialog", () => import("./
|
|
773
|
-
find: wt("studio:findReplaceWindow", () => import("./
|
|
774
|
-
tableNew: wt("studio:tableNewDialog", () => import("./
|
|
775
|
-
pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
771
|
+
sort: wt("studio:sortDialog", () => import("./B16pFUEecGy6x7Sf.mjs")).load,
|
|
772
|
+
hyperlink: wt("studio:hyperlinkDialog", () => import("./CDbGB8TtNQhkBXqI.mjs")).load,
|
|
773
|
+
find: wt("studio:findReplaceWindow", () => import("./CASMs7A6E_qrcIMk.mjs")).load,
|
|
774
|
+
tableNew: wt("studio:tableNewDialog", () => import("./viu5OtK-dXOIQdlG.mjs")).load,
|
|
775
|
+
pivotTableNew: wt("studio:pivotTableNewDialog", () => import("./D7-QWEykZGrgV_xs.mjs")).load,
|
|
776
|
+
sparklineNew: wt("studio:sparklineNewDialog", () => import("./DssxcB0PnN-PgzzK.mjs")).load,
|
|
777
|
+
sparklineEdit: wt("studio:sparklineEditDialog", () => import("./DGzJYFzo02DBhqYC.mjs")).load,
|
|
778
|
+
namedDetails: wt("studio:namedReferenceDialog", () => import("./Bkeg-KR5CHgIgCHZ.mjs")).load,
|
|
779
|
+
insertFunction: wt("studio:insertFunctionDialog", () => import("./DhKvwk063hs0qEKD.mjs")).load,
|
|
780
|
+
resizeHeader: wt("studio:resizeHeaderDialog", () => import("./DSAtnDj1sXUS0LYj.mjs")).load,
|
|
781
|
+
outlineSettings: wt("studio:outlineSettingsDialog", () => import("./B90Z94PB2O0Upt5h.mjs")).load,
|
|
782
|
+
fillSeries: wt("studio:fillSeriesDialog", () => import("./B47JoJYzEtS6ivoC.mjs")).load,
|
|
783
|
+
workbookStatistics: wt("studio:workbookStatisticsDialog", () => import("./DiCErpAUUdV9xdwZ.mjs")).load,
|
|
784
|
+
password: wt("studio:passwordDialog", () => import("./BdiSsEIgA0Pvd6bN.mjs")).load,
|
|
785
|
+
pivotValueSettings: wt("studio:pivotValueSettingsDialog", () => import("./DzwUDrXp4uuQ6bv0.mjs")).load
|
|
784
786
|
}, Zt = ["find"], Jt = Ce((e) => {
|
|
785
787
|
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({
|
|
786
788
|
label: null,
|
|
787
789
|
progress: null
|
|
788
|
-
}), d =
|
|
790
|
+
}), d = be(), p = gt.EmptyObject, u = Ue(p), m = qe(p), g = Ve(p), h = Ee(!1);
|
|
789
791
|
Se(() => {
|
|
790
792
|
if (h.current) return;
|
|
791
793
|
h.current = !0;
|
|
@@ -825,7 +827,7 @@ var Yt = {
|
|
|
825
827
|
label: e
|
|
826
828
|
});
|
|
827
829
|
const r = se(() => {
|
|
828
|
-
a.current.delete(o) && (a.current.size > 0 || (
|
|
830
|
+
a.current.delete(o) && (a.current.size > 0 || (Ke(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
|
|
829
831
|
label: null,
|
|
830
832
|
progress: null
|
|
831
833
|
})));
|
|
@@ -836,11 +838,11 @@ var Yt = {
|
|
|
836
838
|
progress: o
|
|
837
839
|
});
|
|
838
840
|
}, (e) => {
|
|
839
|
-
s.current = e, "string" == typeof e ?
|
|
841
|
+
s.current = e, "string" == typeof e ? He(i.current, e) : c((t) => ({
|
|
840
842
|
...t,
|
|
841
843
|
label: e
|
|
842
844
|
}));
|
|
843
|
-
}), n =
|
|
845
|
+
}), n = He(i.current, "string" == typeof e ? e : void 0);
|
|
844
846
|
return n ? n.then(() => r) : r;
|
|
845
847
|
},
|
|
846
848
|
showWindow: (e, t) => {
|
|
@@ -865,7 +867,7 @@ var Yt = {
|
|
|
865
867
|
}, [d]), b = Te(() => Ye(Fe, {
|
|
866
868
|
ref: i,
|
|
867
869
|
autoStart: !1,
|
|
868
|
-
icon: Ye(
|
|
870
|
+
icon: Ye(Ae, { sx: {
|
|
869
871
|
transform: "scale(0.7)",
|
|
870
872
|
marginLeft: "-6px"
|
|
871
873
|
} }),
|
|
@@ -889,7 +891,7 @@ var Yt = {
|
|
|
889
891
|
});
|
|
890
892
|
Jt.displayName = "StudioNotifierProvider";
|
|
891
893
|
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 =
|
|
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 = Te(() => n.map((t) => {
|
|
893
895
|
const o = s.getRegisteredTaskPane(t);
|
|
894
896
|
if (!o) return null;
|
|
895
897
|
let r = o.getIcon?.();
|
|
@@ -930,7 +932,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
930
932
|
});
|
|
931
933
|
return Ye(st, {
|
|
932
934
|
value: t,
|
|
933
|
-
label: Ye(
|
|
935
|
+
label: Ye(Me, {
|
|
934
936
|
disableInteractive: !0,
|
|
935
937
|
title: o.getTitle() ?? "",
|
|
936
938
|
placement: "left-start",
|
|
@@ -995,7 +997,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
995
997
|
})
|
|
996
998
|
});
|
|
997
999
|
})), to = (e) => {
|
|
998
|
-
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l =
|
|
1000
|
+
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = Ee(null), l = be();
|
|
999
1001
|
return Ye(rt, {
|
|
1000
1002
|
className: Dt({ "Mui-selected": a }),
|
|
1001
1003
|
sx: {
|
|
@@ -1051,7 +1053,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1051
1053
|
});
|
|
1052
1054
|
}, oo = xe((e, t) => {
|
|
1053
1055
|
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(
|
|
1056
|
+
return Ye(F, {
|
|
1055
1057
|
model: o,
|
|
1056
1058
|
ref: t,
|
|
1057
1059
|
propsFrame: { style: {
|
|
@@ -1077,11 +1079,11 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1077
1079
|
display: "flex",
|
|
1078
1080
|
boxSizing: "border-box"
|
|
1079
1081
|
}, 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] =
|
|
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, no), m = mt(), [g, { width: h }] = me(), f = h > 530 || 0 === h, k = Ee(null);
|
|
1081
1083
|
let b, y, w = null, x = 4, v = 13;
|
|
1082
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);
|
|
1083
1085
|
let C, D = o, S = r;
|
|
1084
|
-
const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`,
|
|
1086
|
+
const T = "right" !== c, E = f ? "row" : "column", W = T && S ? "before" : "after", F = `${E}:${W}`, A = a ? p[F] : void 0, P = null != A ? `${A}%` : ((e, t) => {
|
|
1085
1087
|
if (null == e) return "40%";
|
|
1086
1088
|
if ("number" == typeof e || "string" == typeof e) return e;
|
|
1087
1089
|
const o = e[t];
|
|
@@ -1102,7 +1104,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1102
1104
|
paddingRight: "2px"
|
|
1103
1105
|
} }, b = {}, C = {
|
|
1104
1106
|
fixedPane: "before",
|
|
1105
|
-
position:
|
|
1107
|
+
position: P,
|
|
1106
1108
|
minBefore: f ? "280px" : "120px",
|
|
1107
1109
|
splitDirection: f ? "row" : "column"
|
|
1108
1110
|
}) : (b = { style: {
|
|
@@ -1113,7 +1115,7 @@ var Qt = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1113
1115
|
marginRight: f ? "8px" : "4px"
|
|
1114
1116
|
} }, C = {
|
|
1115
1117
|
fixedPane: "after",
|
|
1116
|
-
position:
|
|
1118
|
+
position: P,
|
|
1117
1119
|
minAfter: f ? "280px" : "120px",
|
|
1118
1120
|
splitDirection: f ? "row" : "column"
|
|
1119
1121
|
});
|
|
@@ -1184,13 +1186,13 @@ var so = () => Ye("div", { style: {
|
|
|
1184
1186
|
"aria-checked": e.checked,
|
|
1185
1187
|
disabled: e.disabled,
|
|
1186
1188
|
selected: e.checked,
|
|
1187
|
-
icon: e.checked ? Ye(
|
|
1189
|
+
icon: e.checked ? Ye($e, {}) : void 0,
|
|
1188
1190
|
onClick: e.run,
|
|
1189
1191
|
children: e.label
|
|
1190
1192
|
}, e.key))] }, t))
|
|
1191
1193
|
});
|
|
1192
1194
|
}, po = (e) => Ye(co, { ...e }), uo = (e) => {
|
|
1193
|
-
const { pivot: t, name: o, source: r, onError: n } = e, s =
|
|
1195
|
+
const { pivot: t, name: o, source: r, onError: n } = e, s = be(), l = t.getWorksheet(), c = l.getProtection().isLocked(), d = Te(() => ({ scope: l.getName() }), [l]), p = le((e, o) => {
|
|
1194
1196
|
"accept" === o.reason && e !== t.getName() && t.setName(e).catch(n);
|
|
1195
1197
|
}, [t, n]), u = le((e) => {
|
|
1196
1198
|
if (0 === e.length || e.length > 255) throw new bt(s("error.pivotTable.nameInvalid"));
|
|
@@ -1233,89 +1235,93 @@ var so = () => Ye("div", { style: {
|
|
|
1233
1235
|
disabled: c || null === r
|
|
1234
1236
|
})]
|
|
1235
1237
|
});
|
|
1236
|
-
}, mo = (e) => Ye(uo, { ...e }), go = (e) => Ye(
|
|
1238
|
+
}, mo = (e) => Ye(uo, { ...e }), go = (e) => Ye(E, {
|
|
1237
1239
|
renderMenu: po,
|
|
1238
1240
|
renderFilter: g,
|
|
1239
1241
|
renderHeader: mo,
|
|
1240
1242
|
...e
|
|
1241
|
-
}), ho =
|
|
1243
|
+
}), ho = ze(wt("studio:dataValidationDetailsTaskPane", () => import("./ClDMRc2s0BBAKhHL.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), fo = Pt({
|
|
1242
1244
|
EagerStudio: () => wo,
|
|
1243
1245
|
default: () => wo
|
|
1244
1246
|
});
|
|
1245
1247
|
d(), S.registerTaskPane({
|
|
1246
|
-
key:
|
|
1247
|
-
getTitle: () => "PivotTable Fields",
|
|
1248
|
-
getIcon: () => "Table",
|
|
1248
|
+
key: A.PivotTable,
|
|
1249
1249
|
component: go
|
|
1250
|
-
}, !0),
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
},
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
"
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1250
|
+
}, !0), (() => {
|
|
1251
|
+
X.register({
|
|
1252
|
+
key: "changeShapeGallery",
|
|
1253
|
+
contributions: { shapeToolbar: {
|
|
1254
|
+
order: -1,
|
|
1255
|
+
divider: "after"
|
|
1256
|
+
} },
|
|
1257
|
+
render: (e) => Ye(C, {
|
|
1258
|
+
...e,
|
|
1259
|
+
commandKey: "changeShape",
|
|
1260
|
+
excludeCategories: Nt
|
|
1261
|
+
})
|
|
1262
|
+
}, !0);
|
|
1263
|
+
L("shape", () => import("./Dp-aLdsFlu4Aw1Li.mjs").then((e) => e.ShapeFormatPanel));
|
|
1264
|
+
})(), L("chart", () => import("./CHaPiJTvsCR2Z3sC.mjs").then((e) => e.ChartFormatPanel)), (() => {
|
|
1265
|
+
const e = q.DefaultCommandButtonRegistry, t = [];
|
|
1266
|
+
t.push(e.register({
|
|
1267
|
+
key: "changePictureOptions",
|
|
1268
|
+
defaultKey: "changePictureFromFile",
|
|
1269
|
+
members: ["changePictureFromFile", "changePictureFromURL"],
|
|
1270
|
+
contributions: { pictureToolbar: { order: -3 } }
|
|
1271
|
+
}, !0)), t.push(e.register({
|
|
1272
|
+
key: "pictureHyperlinkOptions",
|
|
1273
|
+
defaultKey: "updatePictureHyperlink",
|
|
1274
|
+
members: [
|
|
1275
|
+
"updatePictureHyperlink",
|
|
1276
|
+
"openPictureHyperlink",
|
|
1277
|
+
"deletePictureHyperlink"
|
|
1278
|
+
],
|
|
1279
|
+
contributions: { pictureToolbar: { order: -2 } }
|
|
1280
|
+
}, !0)), t.push(e.register({
|
|
1281
|
+
key: "cropAspectOptions",
|
|
1282
|
+
members: [
|
|
1283
|
+
"cropAspect1x1",
|
|
1284
|
+
"-",
|
|
1285
|
+
"cropAspect2x3",
|
|
1286
|
+
"cropAspect3x4",
|
|
1287
|
+
"cropAspect3x5",
|
|
1288
|
+
"cropAspect4x5",
|
|
1289
|
+
"-",
|
|
1290
|
+
"cropAspect3x2",
|
|
1291
|
+
"cropAspect4x3",
|
|
1292
|
+
"cropAspect5x3",
|
|
1293
|
+
"cropAspect5x4",
|
|
1294
|
+
"cropAspect16x9",
|
|
1295
|
+
"cropAspect16x10"
|
|
1296
|
+
]
|
|
1297
|
+
}, !0)), t.push(e.register({
|
|
1298
|
+
key: "cropOptions",
|
|
1299
|
+
members: [
|
|
1300
|
+
{
|
|
1301
|
+
key: "cropToShapeGallery",
|
|
1302
|
+
render: (e) => Ye(C, {
|
|
1303
|
+
...e,
|
|
1304
|
+
commandKey: "cropToShape",
|
|
1305
|
+
excludeCategories: Nt
|
|
1306
|
+
})
|
|
1307
|
+
},
|
|
1308
|
+
"cropAspectOptions",
|
|
1309
|
+
"-",
|
|
1310
|
+
"cropFill",
|
|
1311
|
+
"cropFit"
|
|
1312
|
+
],
|
|
1313
|
+
contributions: { pictureToolbar: {
|
|
1314
|
+
order: -1,
|
|
1315
|
+
divider: "after"
|
|
1316
|
+
} }
|
|
1317
|
+
}, !0));
|
|
1318
|
+
})(), c(), S.registerTaskPane({
|
|
1319
|
+
key: A.DataValidation,
|
|
1312
1320
|
component: ho
|
|
1313
1321
|
}, !0), S.registerTaskPane({
|
|
1314
|
-
key:
|
|
1315
|
-
getTitle: () => "Conditional Formatting",
|
|
1316
|
-
getIcon: () => "FormatPaint",
|
|
1322
|
+
key: A.ConditionalFormat,
|
|
1317
1323
|
component: It
|
|
1318
|
-
}, !0), l(), s(), r(), t(), e(), n(),
|
|
1324
|
+
}, !0), l(), s(), r(), t(), e(), n(), w();
|
|
1319
1325
|
var ko = () => {
|
|
1320
1326
|
let e, t;
|
|
1321
1327
|
const o = new Promise((o, r) => {
|
|
@@ -1336,123 +1342,122 @@ var ko = () => {
|
|
|
1336
1342
|
const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
|
|
1337
1343
|
return n && "object" == typeof n ? gt.deepMerge(r, n) : r;
|
|
1338
1344
|
}, 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:
|
|
1340
|
-
|
|
1341
|
-
}, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye),
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
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)))
|
|
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 = xo, taskPaneSide: x = "right", onKeyDown: C, workbook: D, onWorkbookChange: S, logo: T, topLeft: E, topRight: F, muiTheme: A, tokens: L, cssBaseline: H, autoFocus: X = !1, title: Q, onDirtyChange: te, propsDocumentTitle: ae, renderDocumentLoading: se = b, propsDocumentLoading: ce, propsWorkbook: ue, showFormulaBar: me, propsFormulaBar: ge, renderFormulaBar: be, formulaBarPlacement: ye, virtualKeyboard: we = "float", editable: xe, showStatusBar: ve, propsStatusBar: Ce, renderStatusBar: Fe, propsToolbar: Ae, renderToolbar: Ie } = e, Re = Ee(null), je = Ee(null), $e = Ee(null), Me = le(() => {
|
|
1346
|
+
$e.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
1347
|
+
}, []), Le = ((e, t = "undefined" == typeof window ? "mouse" : oe.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(ye), Ke = "bottom" === Le ? we : "none", { inset: _e, offsetTop: ze } = pe("resize" === Ke), He = le(d ?? (() => {}), [d]), Ve = le(te ?? (() => {}), [te]), Ue = ae?.placeHolder, [Ge] = he(N.Mode, I[N.Mode]), { themeMode: qe } = fe({ mode: Ge ?? void 0 }), [Xe] = he(J.Active, null), Qe = Ee(Xe);
|
|
1348
|
+
Qe.current = Xe;
|
|
1349
|
+
const et = ke(), tt = Te(() => ({
|
|
1350
|
+
light: Be(!1, gt.deepMerge(bo(A, !1), v(et?.light))),
|
|
1351
|
+
dark: Be(!0, gt.deepMerge(bo(A, !0), v(et?.dark)))
|
|
1350
1352
|
}), [
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
]),
|
|
1355
|
-
|
|
1353
|
+
A,
|
|
1354
|
+
et?.light,
|
|
1355
|
+
et?.dark
|
|
1356
|
+
]), rt = "dark" === qe, nt = Te(() => u(tt.light, tt.dark, `.${n}`, L), [
|
|
1357
|
+
tt,
|
|
1356
1358
|
n,
|
|
1357
1359
|
L
|
|
1358
|
-
]),
|
|
1360
|
+
]), st = Te(() => O("sxl-defaults", `.${n}`), [n]), lt = B(), [dt, pt] = We(() => D ?? null);
|
|
1359
1361
|
Se(() => {
|
|
1360
|
-
|
|
1362
|
+
pt(D ?? null);
|
|
1361
1363
|
}, [D]);
|
|
1362
|
-
const [
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1364
|
+
const [ut, mt] = We(0), ht = Ee(null);
|
|
1365
|
+
ht.current || (ht.current = ko());
|
|
1366
|
+
const kt = z(dt, {
|
|
1365
1367
|
io: R,
|
|
1366
|
-
defaultTheme:
|
|
1367
|
-
reloadKey:
|
|
1368
|
-
}),
|
|
1368
|
+
defaultTheme: lt.getDefaultTheme(),
|
|
1369
|
+
reloadKey: ut
|
|
1370
|
+
}), bt = "loaded" === kt.status ? kt.workbook : null, yt = Te(() => "error" === kt.status ? {
|
|
1369
1371
|
status: "error",
|
|
1370
|
-
error:
|
|
1371
|
-
} : "loaded" ===
|
|
1372
|
+
error: kt.error
|
|
1373
|
+
} : "loaded" === kt.status ? {
|
|
1372
1374
|
status: "loaded",
|
|
1373
|
-
workbook:
|
|
1374
|
-
} : { status: "loading" }, [
|
|
1375
|
+
workbook: kt.workbook
|
|
1376
|
+
} : { status: "loading" }, [kt]);
|
|
1375
1377
|
Se(() => {
|
|
1376
|
-
|
|
1377
|
-
}, [
|
|
1378
|
-
if ("loaded" ===
|
|
1379
|
-
const e =
|
|
1378
|
+
ht.current.settled && (ht.current = ko());
|
|
1379
|
+
}, [dt, ut]), Se(() => {
|
|
1380
|
+
if ("loaded" === yt.status) {
|
|
1381
|
+
const e = ht.current, t = yt.workbook;
|
|
1380
1382
|
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
1381
|
-
} else "error" ===
|
|
1382
|
-
}, [
|
|
1383
|
-
const [
|
|
1384
|
-
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1387
|
-
const
|
|
1388
|
-
|
|
1389
|
-
const
|
|
1390
|
-
const t =
|
|
1391
|
-
t &&
|
|
1383
|
+
} else "error" === yt.status && (He?.(yt.error), ht.current.reject(yt.error));
|
|
1384
|
+
}, [yt]);
|
|
1385
|
+
const [wt, xt] = We(null);
|
|
1386
|
+
bt && !wt && xt(bt);
|
|
1387
|
+
const vt = bt && wt && bt !== wt ? bt : null, Ct = Ee(vt);
|
|
1388
|
+
Ct.current = vt;
|
|
1389
|
+
const Dt = Ee(wt);
|
|
1390
|
+
Dt.current = wt;
|
|
1391
|
+
const Tt = Ee([]), Et = De((e) => {
|
|
1392
|
+
const t = Dt.current;
|
|
1393
|
+
t && Tt.current.push(t), pt(e);
|
|
1392
1394
|
}, []);
|
|
1393
1395
|
Se(() => {
|
|
1394
|
-
const e =
|
|
1396
|
+
const e = Tt.current;
|
|
1395
1397
|
if (0 !== e.length) {
|
|
1396
|
-
|
|
1398
|
+
Tt.current = e.filter((e) => e === wt);
|
|
1397
1399
|
for (let t = 0; t < e.length; t++) {
|
|
1398
1400
|
const o = e[t];
|
|
1399
|
-
if (o !==
|
|
1401
|
+
if (o !== wt) try {
|
|
1400
1402
|
o.close();
|
|
1401
1403
|
} catch (e) {
|
|
1402
1404
|
console.warn("Unable to close the replaced workbook", e);
|
|
1403
1405
|
}
|
|
1404
1406
|
}
|
|
1405
1407
|
}
|
|
1406
|
-
}, [
|
|
1407
|
-
const
|
|
1408
|
-
const e =
|
|
1409
|
-
return e ?
|
|
1410
|
-
}, [
|
|
1411
|
-
|
|
1412
|
-
if (!
|
|
1413
|
-
let e =
|
|
1414
|
-
return
|
|
1408
|
+
}, [wt]);
|
|
1409
|
+
const Ft = xe ? null : wt, At = _(), Pt = Te(() => {
|
|
1410
|
+
const e = Ft?.getSelectedWorksheet() ?? Ft?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
1411
|
+
return e ? $(e, { referenceMode: At }) : null;
|
|
1412
|
+
}, [Ft, At]), It = xe ?? Pt, Nt = Ee(It);
|
|
1413
|
+
Nt.current = It, Se(() => {
|
|
1414
|
+
if (!It) return;
|
|
1415
|
+
let e = It.getSession();
|
|
1416
|
+
return It.subscribe(() => {
|
|
1415
1417
|
const t = e;
|
|
1416
|
-
e =
|
|
1418
|
+
if (e = It.getSession(), !t || e) return;
|
|
1419
|
+
if ("formula-bar" !== t.getActiveEditorId()) return;
|
|
1420
|
+
const o = $e.current;
|
|
1421
|
+
(o?.isFocusWithin?.() ?? o?.contains?.(document.activeElement)) && Re.current?.focus();
|
|
1417
1422
|
});
|
|
1418
|
-
}, [
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1421
|
-
const
|
|
1422
|
-
zt.current =
|
|
1423
|
-
const [
|
|
1423
|
+
}, [It]);
|
|
1424
|
+
const Rt = U(wt), { isDirty: jt, saveState: Ot } = G(wt, R), $t = V(wt), Lt = Ee(Ot), Bt = Ee(null);
|
|
1425
|
+
Lt.current = Ot;
|
|
1426
|
+
const _t = De(() => Lt.current?.isDirty() ?? !1, []), zt = Ee(yt);
|
|
1427
|
+
zt.current = yt;
|
|
1428
|
+
const [Ht, Vt] = We(null), Ut = Q ?? ae?.title, [Gt, qt] = We(null);
|
|
1424
1429
|
Se(() => {
|
|
1425
|
-
|
|
1426
|
-
}, [
|
|
1427
|
-
const
|
|
1430
|
+
qt(null);
|
|
1431
|
+
}, [wt]);
|
|
1432
|
+
const Yt = Ut ?? Gt ?? Rt ?? "";
|
|
1428
1433
|
Se(() => {
|
|
1429
|
-
|
|
1430
|
-
}, [
|
|
1431
|
-
const
|
|
1434
|
+
Ve?.(jt);
|
|
1435
|
+
}, [jt]);
|
|
1436
|
+
const Zt = le(S ?? (() => {}), [S]);
|
|
1432
1437
|
Se(() => {
|
|
1433
|
-
|
|
1434
|
-
}, [
|
|
1435
|
-
const
|
|
1436
|
-
|
|
1437
|
-
const
|
|
1438
|
+
Zt?.(bt);
|
|
1439
|
+
}, [bt]);
|
|
1440
|
+
const Qt = Ee(bt);
|
|
1441
|
+
Qt.current = bt, K(wt, "onViewChange");
|
|
1442
|
+
const eo = Te(() => Ye(Pe, {
|
|
1438
1443
|
groupKey: "helpOptions",
|
|
1439
1444
|
disableHover: !0,
|
|
1440
1445
|
sx: { padding: "0" },
|
|
1441
1446
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
1442
|
-
}), []), [
|
|
1443
|
-
|
|
1447
|
+
}), []), [to, oo] = We(null), ro = De((e) => {
|
|
1448
|
+
oo(e);
|
|
1444
1449
|
}, []);
|
|
1445
1450
|
Se(() => {
|
|
1446
|
-
Y.prefetch([Y.getActive(),
|
|
1451
|
+
Y.prefetch([Y.getActive(), W]).catch((e) => {
|
|
1447
1452
|
console.warn("Icons could not be loaded:", e);
|
|
1448
1453
|
});
|
|
1449
1454
|
}, []);
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
const
|
|
1453
|
-
const t =
|
|
1454
|
-
t && t !== ft.getActive() && await ft.setActive(t), await
|
|
1455
|
-
}, []),
|
|
1455
|
+
const no = Ee(null);
|
|
1456
|
+
no.current || (no.current = ko());
|
|
1457
|
+
const ao = Ee(null), so = De(() => ao.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? no.current.promise, []), co = le(async (e) => {
|
|
1458
|
+
const t = Qe.current;
|
|
1459
|
+
t && t !== ft.getActive() && await ft.setActive(t), await q.DefaultCommandCatalogService.prefetch(t ?? void 0), Vt(e), ao.current = e.source, no.current.settled || no.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
1460
|
+
}, []), po = Ee(null), uo = De((e) => {
|
|
1456
1461
|
let t = null, r = {
|
|
1457
1462
|
readOnly: !0,
|
|
1458
1463
|
...ae
|
|
@@ -1464,29 +1469,29 @@ var ko = () => {
|
|
|
1464
1469
|
...ae?.style
|
|
1465
1470
|
},
|
|
1466
1471
|
workbook: e.workbook ?? Re.current,
|
|
1467
|
-
ref:
|
|
1468
|
-
title:
|
|
1469
|
-
modified:
|
|
1470
|
-
encrypted:
|
|
1471
|
-
placeHolder:
|
|
1472
|
+
ref: po,
|
|
1473
|
+
title: Yt,
|
|
1474
|
+
modified: jt,
|
|
1475
|
+
encrypted: $t,
|
|
1476
|
+
placeHolder: Ue,
|
|
1472
1477
|
onTitleChange: (e) => {
|
|
1473
|
-
|
|
1478
|
+
qt(e), ae?.onTitleChange?.(e);
|
|
1474
1479
|
}
|
|
1475
|
-
})), Ye(
|
|
1480
|
+
})), Ye(Kt, {
|
|
1476
1481
|
...e,
|
|
1477
1482
|
logo: T,
|
|
1478
1483
|
mainElement: t,
|
|
1479
1484
|
startElement: E,
|
|
1480
|
-
endElement:
|
|
1485
|
+
endElement: F
|
|
1481
1486
|
});
|
|
1482
1487
|
}, [
|
|
1483
1488
|
T,
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1489
|
+
Yt,
|
|
1490
|
+
jt,
|
|
1491
|
+
$t,
|
|
1487
1492
|
ae,
|
|
1488
1493
|
E,
|
|
1489
|
-
|
|
1494
|
+
F
|
|
1490
1495
|
]);
|
|
1491
1496
|
Se(() => {
|
|
1492
1497
|
const e = Re.current;
|
|
@@ -1497,12 +1502,12 @@ var ko = () => {
|
|
|
1497
1502
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
1498
1503
|
e.removeEventListener("wheel", t);
|
|
1499
1504
|
};
|
|
1500
|
-
}, [
|
|
1501
|
-
const [
|
|
1505
|
+
}, [Ht]);
|
|
1506
|
+
const [mo, go] = We(null);
|
|
1502
1507
|
Se(() => {
|
|
1503
|
-
|
|
1504
|
-
}, [
|
|
1505
|
-
const
|
|
1508
|
+
go(Ht?.source?.getCommandScope?.() ?? null);
|
|
1509
|
+
}, [Ht]);
|
|
1510
|
+
const ho = Te(() => ({
|
|
1506
1511
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
1507
1512
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
1508
1513
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -1515,46 +1520,46 @@ var ko = () => {
|
|
|
1515
1520
|
whiteSpace: "pre-wrap"
|
|
1516
1521
|
},
|
|
1517
1522
|
"*": { userSelect: "none" }
|
|
1518
|
-
}), []), [
|
|
1523
|
+
}), []), [fo, wo] = We(null), [, vo] = he(null, !1);
|
|
1519
1524
|
Se(() => {
|
|
1520
|
-
|
|
1521
|
-
}, [
|
|
1522
|
-
const
|
|
1523
|
-
model:
|
|
1525
|
+
vo(null != fo);
|
|
1526
|
+
}, [fo, vo]);
|
|
1527
|
+
const Co = De((e) => w({
|
|
1528
|
+
model: wt,
|
|
1524
1529
|
side: x,
|
|
1525
1530
|
...e,
|
|
1526
1531
|
...y
|
|
1527
1532
|
}), [
|
|
1528
|
-
|
|
1533
|
+
wt,
|
|
1529
1534
|
x,
|
|
1530
1535
|
y
|
|
1531
|
-
]),
|
|
1532
|
-
|
|
1536
|
+
]), Do = Ee(r);
|
|
1537
|
+
Do.current = r, de(t, () => ({
|
|
1533
1538
|
isStudioElement: () => !0,
|
|
1534
1539
|
save: (e) => {
|
|
1535
|
-
const t =
|
|
1540
|
+
const t = Bt.current;
|
|
1536
1541
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
1537
1542
|
},
|
|
1538
1543
|
getWorkbookElement: () => Re.current,
|
|
1539
|
-
getWorkbook: () =>
|
|
1540
|
-
isDirty: () =>
|
|
1541
|
-
getEditable: () =>
|
|
1542
|
-
getFormulaBarElement: () =>
|
|
1544
|
+
getWorkbook: () => Qt.current ?? null,
|
|
1545
|
+
isDirty: () => Lt.current?.isDirty() ?? !1,
|
|
1546
|
+
getEditable: () => Nt.current,
|
|
1547
|
+
getFormulaBarElement: () => $e.current ?? null,
|
|
1543
1548
|
focus: () => Re.current?.focus(),
|
|
1544
|
-
whenReady: () => (
|
|
1549
|
+
whenReady: () => (ht.current || (ht.current = ko()), ht.current.promise),
|
|
1545
1550
|
getWorkbookState: () => zt.current,
|
|
1546
|
-
retry: () =>
|
|
1551
|
+
retry: () => mt((e) => e + 1)
|
|
1547
1552
|
}), [], r);
|
|
1548
|
-
const
|
|
1549
|
-
t ===
|
|
1550
|
-
t ===
|
|
1553
|
+
const So = Ee(!1), To = le((e, t) => {
|
|
1554
|
+
t === Ct.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1555
|
+
t === Ct.current && (So.current = Do.current?.contains(document.activeElement) ?? !0, xt(t), co(e));
|
|
1551
1556
|
}));
|
|
1552
1557
|
}, []);
|
|
1553
1558
|
Se(() => {
|
|
1554
|
-
|
|
1555
|
-
}, [
|
|
1556
|
-
const
|
|
1557
|
-
const { ref: t, ...o } = e, r =
|
|
1559
|
+
So.current && (So.current = !1, Re.current?.focus());
|
|
1560
|
+
}, [wt]);
|
|
1561
|
+
const Eo = De((e) => {
|
|
1562
|
+
const { ref: t, ...o } = e, r = rt ? tt.dark : tt.light, n = "error" === yt.status && g ? Ye(re, {
|
|
1558
1563
|
render: g,
|
|
1559
1564
|
props: {
|
|
1560
1565
|
...f,
|
|
@@ -1563,10 +1568,10 @@ var ko = () => {
|
|
|
1563
1568
|
height: "100%",
|
|
1564
1569
|
...f?.style
|
|
1565
1570
|
},
|
|
1566
|
-
error:
|
|
1571
|
+
error: yt.error
|
|
1567
1572
|
}
|
|
1568
1573
|
}) : null;
|
|
1569
|
-
if (n && !
|
|
1574
|
+
if (n && !wt) return Ye(at, {
|
|
1570
1575
|
style: {
|
|
1571
1576
|
width: "100%",
|
|
1572
1577
|
height: "100%",
|
|
@@ -1578,17 +1583,17 @@ var ko = () => {
|
|
|
1578
1583
|
children: n
|
|
1579
1584
|
});
|
|
1580
1585
|
let l = null;
|
|
1581
|
-
if (
|
|
1582
|
-
const e =
|
|
1583
|
-
render: void 0 === Ie ?
|
|
1586
|
+
if (wt) {
|
|
1587
|
+
const e = wt, n = e.getView(), a = me ?? n?.isShowFormulaBar(), i = ve ?? n?.isShowStatusBar(), s = Ht?.source ?? Re.current, d = Ye(re, {
|
|
1588
|
+
render: void 0 === Ie ? uo : Ie,
|
|
1584
1589
|
props: {
|
|
1585
1590
|
workbook: s,
|
|
1586
|
-
...
|
|
1591
|
+
...Ae
|
|
1587
1592
|
}
|
|
1588
1593
|
}), u = "bottom" === Le, g = a ? Ye(re, {
|
|
1589
|
-
render: void 0 ===
|
|
1594
|
+
render: void 0 === be ? m : be,
|
|
1590
1595
|
props: {
|
|
1591
|
-
ref:
|
|
1596
|
+
ref: $e,
|
|
1592
1597
|
style: {
|
|
1593
1598
|
marginTop: r.spacing(u ? .5 : .25),
|
|
1594
1599
|
marginLeft: r.spacing(1),
|
|
@@ -1596,44 +1601,45 @@ var ko = () => {
|
|
|
1596
1601
|
marginBottom: r.spacing(u ? .5 : .75)
|
|
1597
1602
|
},
|
|
1598
1603
|
workbook: e,
|
|
1599
|
-
editable:
|
|
1604
|
+
editable: It ?? void 0,
|
|
1600
1605
|
placement: Le,
|
|
1601
|
-
|
|
1606
|
+
floatOnKeyboard: "float" === Ke,
|
|
1607
|
+
...ge,
|
|
1602
1608
|
propsNamedCollectionEditor: {
|
|
1603
1609
|
restoreFocus: (e) => s?.focus(e),
|
|
1604
|
-
...
|
|
1610
|
+
...ge?.propsNamedCollectionEditor
|
|
1605
1611
|
}
|
|
1606
1612
|
}
|
|
1607
1613
|
}) : null, f = i ? Ye(re, {
|
|
1608
1614
|
render: void 0 === Fe ? h : Fe,
|
|
1609
1615
|
props: {
|
|
1610
|
-
childrenEnd:
|
|
1616
|
+
childrenEnd: eo,
|
|
1611
1617
|
...Ce
|
|
1612
1618
|
}
|
|
1613
1619
|
}) : null, k = (e, r) => Ye(p, {
|
|
1614
|
-
...
|
|
1620
|
+
...ue,
|
|
1615
1621
|
tabIndex: 0,
|
|
1616
|
-
autoFocus: !r &&
|
|
1622
|
+
autoFocus: !r && X,
|
|
1617
1623
|
workbook: e,
|
|
1618
|
-
editable: r ? void 0 :
|
|
1619
|
-
focusNameBox: r ? void 0 :
|
|
1624
|
+
editable: r ? void 0 : It ?? void 0,
|
|
1625
|
+
focusNameBox: r ? void 0 : Me,
|
|
1620
1626
|
prefetch: !r && c,
|
|
1621
1627
|
ref: r ? je : St([t, Re]),
|
|
1622
|
-
onWorkbookLoad: r ? (t) =>
|
|
1628
|
+
onWorkbookLoad: r ? (t) => To(t, e) : co,
|
|
1623
1629
|
onKeyDown: (e) => {
|
|
1624
|
-
|
|
1630
|
+
C?.(e);
|
|
1625
1631
|
},
|
|
1626
1632
|
propsWorkbookLoading: ce,
|
|
1627
1633
|
renderWorkbookLoading: null,
|
|
1628
1634
|
style: r ? {
|
|
1629
|
-
...
|
|
1635
|
+
...ue?.style,
|
|
1630
1636
|
position: "absolute",
|
|
1631
1637
|
inset: 0,
|
|
1632
1638
|
visibility: "hidden"
|
|
1633
1639
|
} : {
|
|
1634
1640
|
flex: "1 1 100%",
|
|
1635
1641
|
minHeight: 0,
|
|
1636
|
-
...
|
|
1642
|
+
...ue?.style
|
|
1637
1643
|
},
|
|
1638
1644
|
onContextMenu: (e) => e.preventDefault(),
|
|
1639
1645
|
...r ? null : o
|
|
@@ -1645,7 +1651,7 @@ var ko = () => {
|
|
|
1645
1651
|
flex: "1 1 100%",
|
|
1646
1652
|
minWidth: 0,
|
|
1647
1653
|
minHeight: 0,
|
|
1648
|
-
|
|
1654
|
+
...M({
|
|
1649
1655
|
window: r.palette.background.default,
|
|
1650
1656
|
windowText: r.palette.text.primary
|
|
1651
1657
|
})
|
|
@@ -1657,9 +1663,9 @@ var ko = () => {
|
|
|
1657
1663
|
main: Ye(io, {
|
|
1658
1664
|
taskSide: x,
|
|
1659
1665
|
persistKey: yo,
|
|
1660
|
-
sidebarElement:
|
|
1661
|
-
scope:
|
|
1662
|
-
children:
|
|
1666
|
+
sidebarElement: fo ? Ye(q.CommandScopeProvider, {
|
|
1667
|
+
scope: mo,
|
|
1668
|
+
children: fo
|
|
1663
1669
|
}) : void 0,
|
|
1664
1670
|
mainElement: Ze("div", {
|
|
1665
1671
|
style: {
|
|
@@ -1670,8 +1676,8 @@ var ko = () => {
|
|
|
1670
1676
|
minWidth: 0,
|
|
1671
1677
|
minHeight: 0
|
|
1672
1678
|
},
|
|
1673
|
-
children: [[k(
|
|
1674
|
-
ref:
|
|
1679
|
+
children: [[k(wt, !1), vt ? k(vt, !0) : null], Ye(Je, {
|
|
1680
|
+
ref: ro,
|
|
1675
1681
|
sx: {
|
|
1676
1682
|
position: "absolute",
|
|
1677
1683
|
top: "10%",
|
|
@@ -1687,17 +1693,16 @@ var ko = () => {
|
|
|
1687
1693
|
})
|
|
1688
1694
|
});
|
|
1689
1695
|
}
|
|
1690
|
-
const d = !
|
|
1696
|
+
const d = !Ht && se ? Ye(re, {
|
|
1691
1697
|
render: se,
|
|
1692
1698
|
props: { ...ce }
|
|
1693
1699
|
}) : null;
|
|
1694
1700
|
return Ze(at, {
|
|
1695
|
-
sx:
|
|
1701
|
+
sx: ho,
|
|
1696
1702
|
style: {
|
|
1697
1703
|
width: "100%",
|
|
1698
|
-
height:
|
|
1699
|
-
transform:
|
|
1700
|
-
overscrollBehavior: _e ? "none" : void 0,
|
|
1704
|
+
height: _e ? `calc(100% - ${_e}px)` : "100%",
|
|
1705
|
+
transform: ze ? `translateY(${ze}px)` : void 0,
|
|
1701
1706
|
position: "absolute",
|
|
1702
1707
|
display: "flex",
|
|
1703
1708
|
alignItems: "stretch",
|
|
@@ -1727,51 +1732,51 @@ var ko = () => {
|
|
|
1727
1732
|
display: "flex",
|
|
1728
1733
|
alignItems: "center",
|
|
1729
1734
|
justifyContent: "center",
|
|
1730
|
-
background: `var(--sxl-color-base-100, ${
|
|
1735
|
+
background: `var(--sxl-color-base-100, ${rt ? "#121212" : "#fff"})`
|
|
1731
1736
|
},
|
|
1732
1737
|
children: d
|
|
1733
1738
|
}) : null
|
|
1734
1739
|
]
|
|
1735
1740
|
});
|
|
1736
1741
|
}, [
|
|
1737
|
-
|
|
1742
|
+
yt,
|
|
1743
|
+
wt,
|
|
1738
1744
|
vt,
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
Qt,
|
|
1745
|
+
Ht,
|
|
1746
|
+
Yt,
|
|
1742
1747
|
se,
|
|
1743
1748
|
ce,
|
|
1744
|
-
|
|
1749
|
+
ue,
|
|
1745
1750
|
a,
|
|
1746
1751
|
i,
|
|
1747
1752
|
s,
|
|
1748
|
-
|
|
1753
|
+
eo,
|
|
1749
1754
|
g,
|
|
1750
1755
|
f,
|
|
1751
|
-
|
|
1752
|
-
wo,
|
|
1753
|
-
vo,
|
|
1754
|
-
x,
|
|
1756
|
+
uo,
|
|
1755
1757
|
ho,
|
|
1756
|
-
|
|
1758
|
+
fo,
|
|
1759
|
+
x,
|
|
1760
|
+
mo,
|
|
1757
1761
|
me,
|
|
1758
|
-
|
|
1762
|
+
ge,
|
|
1763
|
+
be,
|
|
1759
1764
|
Le,
|
|
1760
|
-
|
|
1765
|
+
It,
|
|
1761
1766
|
ve,
|
|
1762
1767
|
Ce,
|
|
1763
1768
|
Fe,
|
|
1764
|
-
|
|
1769
|
+
Ae,
|
|
1765
1770
|
Ie,
|
|
1771
|
+
Ke,
|
|
1766
1772
|
_e,
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
st
|
|
1773
|
+
ze,
|
|
1774
|
+
tt,
|
|
1775
|
+
rt
|
|
1771
1776
|
]);
|
|
1772
|
-
let
|
|
1777
|
+
let Wo = Ye(Wt, {
|
|
1773
1778
|
maxSnack: 3,
|
|
1774
|
-
domRoot:
|
|
1779
|
+
domRoot: to ?? void 0,
|
|
1775
1780
|
anchorOrigin: {
|
|
1776
1781
|
vertical: "bottom",
|
|
1777
1782
|
horizontal: "right"
|
|
@@ -1780,7 +1785,7 @@ var ko = () => {
|
|
|
1780
1785
|
onClose: (e, t, o) => {
|
|
1781
1786
|
Re.current?.focus();
|
|
1782
1787
|
},
|
|
1783
|
-
Components: { error:
|
|
1788
|
+
Components: { error: Mt },
|
|
1784
1789
|
iconVariant: {
|
|
1785
1790
|
success: Ye(it, {
|
|
1786
1791
|
style: { marginRight: "8px" },
|
|
@@ -1792,41 +1797,41 @@ var ko = () => {
|
|
|
1792
1797
|
})
|
|
1793
1798
|
},
|
|
1794
1799
|
children: Ye(j, {
|
|
1795
|
-
workbook:
|
|
1796
|
-
children: Ye(
|
|
1797
|
-
renderArea:
|
|
1800
|
+
workbook: wt,
|
|
1801
|
+
children: Ye(P, {
|
|
1802
|
+
renderArea: Co,
|
|
1798
1803
|
onUpdateArea: (e) => {
|
|
1799
|
-
|
|
1804
|
+
wo(e);
|
|
1800
1805
|
},
|
|
1801
1806
|
children: Ye(Oe, { children: Ye(Jt, { children: Ye(ie, { children: Ye(ee, { children: Ye(Xt, {
|
|
1802
|
-
workbook:
|
|
1803
|
-
initialCommandAnchor:
|
|
1804
|
-
renderWorkbook:
|
|
1805
|
-
setWorkbook:
|
|
1806
|
-
titleWorkbook:
|
|
1807
|
-
setWorkbookTitle:
|
|
1808
|
-
refDocumentTitle:
|
|
1809
|
-
isDirty:
|
|
1810
|
-
refSave:
|
|
1807
|
+
workbook: wt,
|
|
1808
|
+
initialCommandAnchor: so,
|
|
1809
|
+
renderWorkbook: Eo,
|
|
1810
|
+
setWorkbook: Et,
|
|
1811
|
+
titleWorkbook: Yt,
|
|
1812
|
+
setWorkbookTitle: qt,
|
|
1813
|
+
refDocumentTitle: po,
|
|
1814
|
+
isDirty: _t,
|
|
1815
|
+
refSave: Bt,
|
|
1811
1816
|
host: r
|
|
1812
1817
|
}) }) }) }) })
|
|
1813
1818
|
})
|
|
1814
1819
|
})
|
|
1815
1820
|
});
|
|
1816
|
-
return
|
|
1817
|
-
theme:
|
|
1821
|
+
return Wo = Ze(ct, {
|
|
1822
|
+
theme: rt ? tt.dark : tt.light,
|
|
1818
1823
|
children: [
|
|
1819
|
-
|
|
1820
|
-
Ye("style", { children:
|
|
1821
|
-
Ye("style", { children:
|
|
1824
|
+
H ? Ye(ot, {}) : null,
|
|
1825
|
+
Ye("style", { children: nt }),
|
|
1826
|
+
Ye("style", { children: st }),
|
|
1822
1827
|
Ye(Ne, {
|
|
1823
1828
|
themeScopeClass: n,
|
|
1824
1829
|
themeSurface: "app",
|
|
1825
|
-
themeMode:
|
|
1826
|
-
children:
|
|
1830
|
+
themeMode: qe,
|
|
1831
|
+
children: Wo
|
|
1827
1832
|
})
|
|
1828
1833
|
]
|
|
1829
|
-
}),
|
|
1834
|
+
}), Wo;
|
|
1830
1835
|
}));
|
|
1831
1836
|
wo.displayName = "EagerStudio";
|
|
1832
1837
|
var xo = (e) => Ye(oo, { ...e });
|