@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.13
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/{DDc6rDuU9JAo1DH_.mjs → 6QDKC3DXaJjdTQvn.mjs} +3 -3
- package/browser/esm/{LZoYSQAYV2wksnDv.mjs → B8-aNCyDzXh-3BnN.mjs} +5 -5
- package/browser/esm/{Bujtz_Guj88d03vI.mjs → BEjT3zSht5iH93uB.mjs} +6 -6
- package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → BKB6y-l1USxdLM8V.mjs} +2 -2
- package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → BKE2ez65WLb02bOy.mjs} +1 -1
- package/browser/esm/{C9pIZVACtl9unFOp.mjs → BOKRcLS0QikMyoWf.mjs} +2 -2
- package/browser/esm/{DdcZrjMLWVukWcU5.mjs → BTH-nzAPniB6G4TG.mjs} +814 -685
- package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → Bbvx7IiwR5jW-Hwu.mjs} +114 -103
- package/browser/esm/{zqilJefihVd7At2T.mjs → BgYy8t04q74BFK5_.mjs} +7 -7
- package/browser/esm/{CynTY0oNtyJnoaBq.mjs → BniGX5aeZXM9zMWH.mjs} +1 -1
- package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BsxCXTfNJhFrldW9.mjs} +4 -4
- package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → BwbheU7gonBpE9Bs.mjs} +2 -2
- package/browser/esm/{DDczwkXhz_MHub4z.mjs → BzLjlI67XDv3JcvA.mjs} +2 -2
- package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → C3KoAU2WKPxC5-u7.mjs} +1 -1
- package/browser/esm/{DTpRkgsTm_zYnWfW.mjs → C9HzAN75sBq35kZg.mjs} +1 -1
- package/browser/esm/{BknfGJouygmnpFIU.mjs → CMbJhvtUGfi-wQ3o.mjs} +2 -2
- package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → CQd6qQ6b5R96lYkQ.mjs} +206 -124
- package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → CYDqU_DnwM2dkv3O.mjs} +678 -623
- package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → CYNVxcg3QJ1RHCwS.mjs} +2 -2
- package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → CcyyIgMejaWOK8qw.mjs} +3 -3
- package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → CkmieJ2_aHVESg8Q.mjs} +1 -1
- package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → CtVEsNpA7LivARDl.mjs} +1 -1
- package/browser/esm/{w_JrR69vEpvoyeMy.mjs → CyRZCFT_uVfmLkoB.mjs} +1 -1
- package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → D2KYXweAKTJVnLbt.mjs} +5 -5
- package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → D9KI3TDs1Ed_en8o.mjs} +1 -1
- package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → DAX7uqV05BahXHL1.mjs} +2 -2
- package/browser/esm/{COlZu93LRwuBvjE-.mjs → DFEz0RMRQrGo3tWC.mjs} +2 -2
- package/browser/esm/{DG21x7RKDpge6zAE.mjs → DLP2vkb2VDlGGA1A.mjs} +1 -1
- package/browser/esm/{BXhNFzyEGokTF-BL.mjs → DSIQFoVhlKSPzucu.mjs} +2 -2
- package/browser/esm/{Buqcl7J75MJrhpVE.mjs → DWUrXikL8TyDNRrI.mjs} +8 -8
- package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → DYypTSo0adN5dUTS.mjs} +13 -13
- package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → D_x6k92V4etahUtS.mjs} +2 -2
- package/browser/esm/{YThnrg3PadGs7B4j.mjs → DeSHnKGHmL3Lwl6t.mjs} +143 -137
- package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → DkRUwiADZvoEL2xg.mjs} +1 -1
- package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → DlGOcFqQzrYB9wiZ.mjs} +4 -4
- package/browser/esm/{C0wlMAIn9iREPK6w.mjs → DvDPtmuD-1bVFXhc.mjs} +1 -1
- package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → DyKgCJS1jQMxcPFF.mjs} +1 -1
- package/browser/esm/{CWkOgdL7mOKiTR62.mjs → ERVyjcGWX4mUl1p_.mjs} +4 -4
- package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → H8Dxocn689KdLYhD.mjs} +1 -1
- package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → LF4eGB9EZ_W6kUXC.mjs} +2 -2
- package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PSYAcayGMjkZauMz.mjs} +2 -2
- package/browser/esm/{DJOOed_OtB-XT7f3.mjs → TT3Q8r0Jww_zZmNv.mjs} +6 -6
- package/browser/esm/{C8JU4KsMasmLvojI.mjs → UMji8dlv0GKyfjRw.mjs} +1 -1
- package/browser/esm/UWvqHAyCVY3D-8Pk.mjs +242 -0
- package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → aNYq27kJA5RA4L_0.mjs} +365 -362
- package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → dn1AnYOyR4bZamV4.mjs} +3 -3
- package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → eKakg1lFqn9dZkOO.mjs} +11 -11
- package/browser/esm/index.mjs +290 -287
- package/browser/esm/{CyLn6zOOp_biA3xU.mjs → jbPNLnRSS8Xt5_Zd.mjs} +8 -8
- package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → oj398-Nn8Gb8Cmu7.mjs} +3 -3
- package/browser/esm/{DEv4pIEgYr5C7etm.mjs → qyIg2o8AfCcwCuVZ.mjs} +1 -1
- package/browser/esm/{xFqkfN8QMCxvsetB.mjs → w9rl3kS5ehDc2U18.mjs} +1 -1
- package/node/esm/{Do-zCKziWhoG5eAv.mjs → A-6VdAxUYuVCsS80.mjs} +2 -2
- package/node/esm/{Db3dbaYLKUO66T9s.mjs → BN5K-JWYdHJtnF5G.mjs} +473 -418
- package/node/esm/{CSAnTp5rwId0DUb8.mjs → BRSLQ_UNOJKAWRUq.mjs} +127 -116
- package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BVCjSh6m3Z_Cd6DD.mjs} +2 -2
- package/node/esm/{4HmLH0bPVJCZLgik.mjs → BVyN4cLnT2ii1GMj.mjs} +1 -1
- package/node/esm/{zITjZ7R4raDqhP-n.mjs → BWG2FA3rbsOsBHQM.mjs} +3 -3
- package/node/esm/{DMXLxp3T0E0SRTQc.mjs → BZVe_afv1tfvExD6.mjs} +1 -1
- package/node/esm/{CYIoK22I6Yvv12_x.mjs → BiBMdXkWOUHZpWcb.mjs} +1 -1
- package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Bj-UqmrrHdVSX4vS.mjs} +1 -1
- package/node/esm/{CuMePia6i_8yfJ6S.mjs → Blxb1C2eUbWoXcsl.mjs} +9 -9
- package/node/esm/{CZyA9uD4SkTvqp_G.mjs → BmySpSgR3H6eUK0L.mjs} +253 -253
- package/node/esm/{CPq-MIdEnc-53JpF.mjs → C86bIpa86VUEVY3_.mjs} +2 -2
- package/node/esm/CVeYUjvKIc1XuPC1.mjs +242 -0
- package/node/esm/{XEDcegsv5AGKBfu2.mjs → Cg1eqOYlWMCprF6j.mjs} +2 -2
- package/node/esm/{BlN7G0DVC24zauig.mjs → CksDVaPvtllTUe7F.mjs} +1 -1
- package/node/esm/{BPzcW4BejRqso338.mjs → D0HpdVWcePBpfQHX.mjs} +3 -3
- package/node/esm/{DfCuL8AUxMFoEG2s.mjs → DEK0D7wAs-O0YMBq.mjs} +36 -36
- package/node/esm/{DLqBHdFp6wvm6EGs.mjs → DFZctv5meqoQLuQF.mjs} +1 -1
- package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → DQ9BkHy3YgoLqyAw.mjs} +1 -1
- package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → DTtGcAuClHgv-5s6.mjs} +1 -1
- package/node/esm/{CvRbu8JPxFarsSR-.mjs → DcUXYRkJLeQFybOy.mjs} +5 -5
- package/node/esm/{CjC6s3RUJQNCF7mP.mjs → DjB5CHk5N8mYRiAW.mjs} +1 -1
- package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → DopRYDglwpRFuZ9y.mjs} +3 -3
- package/node/esm/E3iNwBp5FzwRWhBH.mjs +489 -0
- package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → Mm5HFZHyaIJ5EfYO.mjs} +1 -1
- package/node/esm/{CWcv7UVXF8IUB0PC.mjs → VLp3LfRG5Njlf4Mp.mjs} +15 -15
- package/node/esm/{CyafafEgfmjLqE5O.mjs → YTiLYQEQ-ST2j-Yd.mjs} +1 -1
- package/node/esm/{DdEzhVqYTrGODXrz.mjs → h5Tt_pl2Dpa9vaR-.mjs} +1 -1
- package/node/esm/index.mjs +2936 -2800
- package/node/esm/{BR45ogAR-hY2bE60.mjs → nVZW0-P7DISm9GFM.mjs} +1 -1
- package/node/esm/{yCUxQuqVuC4DHKPx.mjs → sKA_898BrWm-kfiS.mjs} +1 -1
- package/node/esm/{3WghtBXAvCDwcVrq.mjs → uySjOpgLC6iCqgC-.mjs} +1 -1
- package/node/esm/{BNg4QQY0WAPLE0q7.mjs → xw7vek0VNw7ofbq1.mjs} +3 -3
- package/node/esm/{DpJ2gmZJioCyq8La.mjs → zZTOpRFxWBgeZTpk.mjs} +166 -160
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +16 -1
- package/resources/locales/de/ui.msg.json +3 -1
- package/resources/locales/en/groups.cmd.json +16 -1
- package/resources/locales/en/ui.msg.json +3 -1
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/color/ColorPopupButton.d.ts +1 -1
- package/types/src/command/AccountingStyleCommandButton.d.ts +1 -1
- package/types/src/command/DocThemeCommandButton.d.ts +1 -1
- package/types/src/command/FontFamilyCommandButton.d.ts +1 -1
- package/types/src/command/FontSizeCommandButton.d.ts +1 -1
- package/types/src/command/InsertCellControlCommandButton.d.ts +17 -0
- package/types/src/command/LanguageCommandButton.d.ts +1 -1
- package/types/src/command/LocaleCommandButton.d.ts +1 -1
- package/types/src/command/index.d.ts +1 -0
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +1 -1
- package/types/src/conditions/ConditionEditor.d.ts +1 -1
- package/types/src/conditions/MembershipOption.d.ts +1 -1
- package/types/src/conditions/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/conditions/SelectorSelect.d.ts +1 -1
- package/types/src/dataValidation/DataValidationEditorPanel.d.ts +1 -1
- package/types/src/dialog/HyperlinkDialog.d.ts +15 -0
- package/types/src/externalLink/ExternalLinkSettingsTab.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/filter/ColumnMenu.d.ts +1 -1
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/shape/ShapeGalleryCommandButton.d.ts +18 -0
- package/types/src/shape/ShapePlugin.d.ts +2 -0
- package/types/src/shape/index.d.ts +1 -1
- package/types/src/statusBar/PendingStatus.d.ts +19 -0
- package/types/src/statusBar/index.d.ts +1 -0
- package/types/src/studio/StudioProps.d.ts +10 -10
- package/types/src/template/TemplatePanel.d.ts +5 -1
- package/types/src/theme/ThemeSelectPopupButton.d.ts +1 -1
- package/types/src/toolbar/WorkbookToolbars.d.ts +1 -1
- package/types/src/workbook/DefaultRenderers.d.ts +30 -18
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/esm/QgaAIDUMmBQBsXP9.mjs +0 -236
- package/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
- package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
- package/types/src/shape/InsertShapeCommandButton.d.ts +0 -20
|
@@ -1,21 +1,21 @@
|
|
|
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.13
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { AnomaliesPlugin as e, CommentsPlugin as t, DocumentTitle as o, ExternalLinksPlugin as r, FormatPlugin as n, NamedPlugin as a, ProtectionPlugin as i, SlicerPlugin as s, TablePlugin as l, WorkbookElement as c,
|
|
8
|
-
import { CommandRootProvider as x, DefaultTaskPaneRegistry as v, LogoNoPaddingIcon as C, SHAPE_ICON_PACK as D, TaskPaneArea as S, TaskPaneProvider as W, ThemeStateDefaults as E, ThemeStateKey as T, WorkbookIO as F, WorkbookProvider 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, NamedPlugin as a, ProtectionPlugin as i, SlicerPlugin as s, TablePlugin as l, WorkbookElement as c, createStudioThemeCSS as d, defaultRenderFormulaBar as p, defaultRenderStatusBar as u, defaultRenderToolbar as m, defaultRenderWorkbookError as g, defaultRenderWorkbookLoading as h, l as f, registerStudioCommandCatalogs as k, registerStudioCommandGroups as b, t as y, tokensToMuiOptions as w } from "./index.mjs";
|
|
8
|
+
import { CommandRootProvider as x, DefaultTaskPaneRegistry as v, LogoNoPaddingIcon as C, SHAPE_ICON_PACK as D, TaskPaneArea as S, TaskPaneProvider as W, ThemeStateDefaults as E, ThemeStateKey as T, WorkbookIO as F, WorkbookProvider as A, buildOOXMLThemeCSS as P, createEditable as I, createSystemColorVars as R, registerMovablePane as j, registerMovableToolbarEntry as N, useDocThemes as O, useModelSync as M, useReferenceModeStore as L, useResolvedWorkbook as $, useTaskPaneArea as B, useWorkbookEncrypted as _, useWorkbookName as K, useWorkbookSaveState as H } from "@sheetxl/react";
|
|
9
|
+
import { Command as V, DefaultIconService as z, DynamicIcon as U, LanguageStateKey as G, NotifierType as q, ReactErrorBoundary as X, ReactNotifierProvider as Y, ReactUtils as Z, RenderSlot as J, ScrollUtils as Q, SplitPane as ee, UncaughtErrorBoundary as te, createBusyHandle as oe, useCallbackRef as re, useFullscreen as ne, useImperativeElement as ae, useLanguage as ie, useMeasure as se, useNotifier as le, usePersistentState as ce, useResolvedThemeMode as de, useTokenThemeContext as pe, useTranslator as ue, useVisualViewportRect as me } from "@sheetxl/utils-react";
|
|
10
|
+
import ge, { forwardRef as he, isValidElement as fe, memo as ke, useCallback as be, useEffect as ye, useMemo as we, useRef as xe, useState as ve } from "react";
|
|
11
|
+
import { AnimatedLoadingPanel as Ce, AnimatedTraversingEllipsisIcon as De, CommandGroup as Se, ExhibitFloatProvider as We, ExhibitTooltip as Ee, ModalProvider as Te, SimpleTooltip as Fe, StackTrace as Ae, createExhibitTheme as Pe, hideLoadingPanel as Ie, lazyModal as Re, lazyPanel as je, showLoadingPanel as Ne, useInputDialog as Oe, useLazyWindow as Me, useModal as Le, useOptionsDialog as $e } from "@sheetxl/utils-mui";
|
|
12
|
+
import { Fragment as Be, jsx as _e, jsxs as Ke } from "react/jsx-runtime";
|
|
13
|
+
import { Box as He, Card as Ve, CardActions as ze, Collapse as Ue, CssBaseline as Ge, DialogTitle as qe, IconButton as Xe, Paper as Ye, SvgIcon as Ze, Tab as Je, Tabs as Qe, ThemeProvider as et, Typography as tt, alpha as ot, useMediaQuery as rt, useTheme as nt } from "@mui/material";
|
|
14
|
+
import { CommonUtils as at, DOMUtils as it, DefaultLanguagePackService as st, ErrorUtils as lt, ExpectedError as ct, PartialError as dt, defineLazyModule as pt, formatMessage as ut, messageKey as mt, t as gt } from "@sheetxl/utils";
|
|
15
|
+
import ht from "clsx";
|
|
16
|
+
import { mergeRefs as ft, useMergeRefs as kt } from "react-merge-refs";
|
|
17
|
+
import { SnackbarContent as bt, SnackbarProvider as yt, useSnackbar as wt } from "notistack";
|
|
18
|
+
var xt = je(pt("studio:conditionalFormatDetailsTaskPane", () => import("./BmySpSgR3H6eUK0L.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), vt = ["lines"], Ct = {
|
|
19
19
|
card: "_card_h0jnt_7",
|
|
20
20
|
actionRoot: "_actionRoot_h0jnt_11",
|
|
21
21
|
icons: "_icons_h0jnt_16",
|
|
@@ -25,63 +25,63 @@ var wt = Ae(dt("studio:conditionalFormatDetailsTaskPane", () => import("./CZyA9u
|
|
|
25
25
|
paper: "_paper_h0jnt_37",
|
|
26
26
|
checkIcon: "_checkIcon_h0jnt_42",
|
|
27
27
|
button: "_button_h0jnt_47"
|
|
28
|
-
},
|
|
29
|
-
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l =
|
|
28
|
+
}, Dt = ke(he((e, t) => {
|
|
29
|
+
const { id: o, message: r, iconVariant: n, error: a, hideIconVariant: i, ...s } = e, l = ue(), { closeSnackbar: c } = wt(), [d, p] = ve(!1), u = a ? lt.collectErrorChain(a, !0)?.[0]?.error : void 0, m = u && !(u instanceof ct), g = be(() => {
|
|
30
30
|
p((e) => !e);
|
|
31
|
-
}, []), h =
|
|
31
|
+
}, []), h = be(() => {
|
|
32
32
|
c(o);
|
|
33
33
|
}, [o, c]);
|
|
34
34
|
let f = u?.message;
|
|
35
|
-
return !f &&
|
|
35
|
+
return !f && fe(r) && (f = r), f || "string" != typeof r || (f = r), f || (f = `Unknown Error: ${r}`), _e(bt, {
|
|
36
36
|
ref: t,
|
|
37
|
-
className:
|
|
38
|
-
children:
|
|
39
|
-
className:
|
|
37
|
+
className: ht(Ct.root, "error-snackbar"),
|
|
38
|
+
children: Ke(Ve, {
|
|
39
|
+
className: Ct.card,
|
|
40
40
|
style: {
|
|
41
41
|
backgroundColor: "var(--sxl-color-error)",
|
|
42
42
|
color: "var(--sxl-color-error-content)",
|
|
43
43
|
border: "1px solid var(--sxl-color-error)"
|
|
44
44
|
},
|
|
45
|
-
children: [
|
|
46
|
-
className:
|
|
45
|
+
children: [Ke(ze, {
|
|
46
|
+
className: Ct.actionRoot,
|
|
47
47
|
children: [
|
|
48
48
|
i ? null : n?.error,
|
|
49
|
-
|
|
49
|
+
_e(tt, {
|
|
50
50
|
variant: "body2",
|
|
51
51
|
component: "div",
|
|
52
|
-
className:
|
|
52
|
+
className: Ct.typography,
|
|
53
53
|
children: f
|
|
54
54
|
}),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
className:
|
|
58
|
-
children: [m ?
|
|
55
|
+
_e("div", { style: { flex: "1 1 auto" } }),
|
|
56
|
+
Ke("div", {
|
|
57
|
+
className: Ct.icons,
|
|
58
|
+
children: [m ? _e(Xe, {
|
|
59
59
|
"aria-label": l("toast.showMore"),
|
|
60
60
|
size: "small",
|
|
61
|
-
className:
|
|
61
|
+
className: ht(Ct.expand, { [Ct.expandOpen]: d }),
|
|
62
62
|
onClick: g,
|
|
63
|
-
children:
|
|
64
|
-
}) : null,
|
|
63
|
+
children: _e(U, { iconKey: "ExpandMore" })
|
|
64
|
+
}) : null, _e(Xe, {
|
|
65
65
|
size: "small",
|
|
66
|
-
className:
|
|
66
|
+
className: Ct.expand,
|
|
67
67
|
onClick: h,
|
|
68
|
-
children:
|
|
68
|
+
children: _e(U, {
|
|
69
69
|
iconKey: "Close",
|
|
70
70
|
style: { transform: "scale(0.8)" }
|
|
71
71
|
})
|
|
72
72
|
})]
|
|
73
73
|
})
|
|
74
74
|
]
|
|
75
|
-
}), m ?
|
|
75
|
+
}), m ? _e(Ue, {
|
|
76
76
|
in: d,
|
|
77
77
|
timeout: "auto",
|
|
78
|
-
children:
|
|
79
|
-
className:
|
|
78
|
+
children: _e("div", {
|
|
79
|
+
className: Ct.stackTraceContainer,
|
|
80
80
|
style: {
|
|
81
81
|
backgroundColor: "color-mix(in srgb, var(--sxl-color-error) 90%, var(--sxl-color-base-100))",
|
|
82
82
|
borderTop: "1px solid var(--sxl-color-error)"
|
|
83
83
|
},
|
|
84
|
-
children:
|
|
84
|
+
children: _e(Ae, {
|
|
85
85
|
error: a,
|
|
86
86
|
hideLineNumbers: !0
|
|
87
87
|
})
|
|
@@ -90,13 +90,13 @@ var wt = Ae(dt("studio:conditionalFormatDetailsTaskPane", () => import("./CZyA9u
|
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
92
|
}));
|
|
93
|
-
|
|
94
|
-
var
|
|
95
|
-
const e =
|
|
96
|
-
return
|
|
93
|
+
Dt.displayName = "ToastError";
|
|
94
|
+
var St = () => {
|
|
95
|
+
const e = ue();
|
|
96
|
+
return _e(Ee, {
|
|
97
97
|
label: "SheetXL",
|
|
98
98
|
description: e("logo.description"),
|
|
99
|
-
children:
|
|
99
|
+
children: _e(He, {
|
|
100
100
|
component: "a",
|
|
101
101
|
href: "https://www.sheetxl.com",
|
|
102
102
|
target: "_blank",
|
|
@@ -109,25 +109,25 @@ var Dt = () => {
|
|
|
109
109
|
marginLeft: "6px",
|
|
110
110
|
cursor: "pointer"
|
|
111
111
|
},
|
|
112
|
-
children:
|
|
112
|
+
children: _e(C, { style: {
|
|
113
113
|
width: "24px",
|
|
114
114
|
height: "24px"
|
|
115
115
|
} })
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
|
-
},
|
|
119
|
-
const { workbook: o, className: r, logo: n =
|
|
118
|
+
}, Wt = _e(St, {}), Et = ke(he((e, t) => {
|
|
119
|
+
const { workbook: o, className: r, logo: n = Wt, mainElement: a, startElement: i, endElement: s, ...l } = e, [c, { width: d }] = se(), p = d < 530, u = xe(null), g = kt([
|
|
120
120
|
u,
|
|
121
121
|
c,
|
|
122
122
|
t
|
|
123
123
|
]);
|
|
124
|
-
return
|
|
124
|
+
return _e(He, {
|
|
125
125
|
...l,
|
|
126
|
-
ref:
|
|
126
|
+
ref: g,
|
|
127
127
|
className: r,
|
|
128
|
-
children:
|
|
128
|
+
children: m({
|
|
129
129
|
isCompact: p,
|
|
130
|
-
wrapperSelect: (e) =>
|
|
130
|
+
wrapperSelect: (e) => Ke(He, {
|
|
131
131
|
sx: {
|
|
132
132
|
display: "grid",
|
|
133
133
|
gridTemplateColumns: "1fr auto 1fr",
|
|
@@ -138,7 +138,7 @@ var Dt = () => {
|
|
|
138
138
|
paddingRight: (e) => e.spacing(1)
|
|
139
139
|
},
|
|
140
140
|
children: [
|
|
141
|
-
|
|
141
|
+
Ke(He, {
|
|
142
142
|
sx: {
|
|
143
143
|
display: "flex",
|
|
144
144
|
flexDirection: "row",
|
|
@@ -146,7 +146,7 @@ var Dt = () => {
|
|
|
146
146
|
justifyContent: "start",
|
|
147
147
|
gap: (e) => e.spacing(.5)
|
|
148
148
|
},
|
|
149
|
-
children: [n,
|
|
149
|
+
children: [n, Ke(He, {
|
|
150
150
|
sx: {
|
|
151
151
|
display: "flex",
|
|
152
152
|
flexDirection: "row",
|
|
@@ -156,7 +156,7 @@ var Dt = () => {
|
|
|
156
156
|
children: [i, e]
|
|
157
157
|
})]
|
|
158
158
|
}),
|
|
159
|
-
|
|
159
|
+
_e(He, {
|
|
160
160
|
sx: {
|
|
161
161
|
display: "flex",
|
|
162
162
|
flexDirection: "row",
|
|
@@ -167,7 +167,7 @@ var Dt = () => {
|
|
|
167
167
|
},
|
|
168
168
|
children: a
|
|
169
169
|
}),
|
|
170
|
-
|
|
170
|
+
_e(He, {
|
|
171
171
|
sx: {
|
|
172
172
|
display: "flex",
|
|
173
173
|
alignItems: "center",
|
|
@@ -180,12 +180,12 @@ var Dt = () => {
|
|
|
180
180
|
})
|
|
181
181
|
});
|
|
182
182
|
}));
|
|
183
|
-
|
|
184
|
-
var
|
|
183
|
+
Et.displayName = "StudioToolbar";
|
|
184
|
+
var Tt = (e, t) => {
|
|
185
185
|
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-" +
|
|
186
|
+
e && o.searchParams.set("source", e), e && t && o.searchParams.set("title", t), window.open(o.toString(), "sheetxl-" + at.uuidV4(), "popup=true");
|
|
187
187
|
};
|
|
188
|
-
function
|
|
188
|
+
function Ft(e, t) {
|
|
189
189
|
const { workbook: o, setWorkbook: r, workbookTitle: n = "export", isDirty: a, notifier: i, refSave: s } = t;
|
|
190
190
|
let l = !1;
|
|
191
191
|
const c = async (e = null, t = null, o = null) => {
|
|
@@ -194,20 +194,20 @@ function Tt(e, t) {
|
|
|
194
194
|
typedCreateWorkbookOptions: t ?? void 0,
|
|
195
195
|
onPassword: async ({ origin: e, validate: t }) => {
|
|
196
196
|
const o = await i.showInput({
|
|
197
|
-
title:
|
|
198
|
-
description:
|
|
197
|
+
title: gt("dialog.password.title"),
|
|
198
|
+
description: gt("dialog.password.open.description", { name: e.getName() ?? "" }),
|
|
199
199
|
inputType: "password",
|
|
200
200
|
options: [{
|
|
201
201
|
id: "Open",
|
|
202
|
-
label: () =>
|
|
202
|
+
label: () => gt("dialog.open")
|
|
203
203
|
}, "Cancel"],
|
|
204
204
|
defaultOption: "Open",
|
|
205
205
|
onValidateInput: async (e, o) => void 0 === o ? { valid: !0 } : e ? await t(e) ? { valid: !0 } : {
|
|
206
206
|
valid: !1,
|
|
207
|
-
message:
|
|
207
|
+
message: gt("dialog.password.open.retry")
|
|
208
208
|
} : {
|
|
209
209
|
valid: !1,
|
|
210
|
-
message:
|
|
210
|
+
message: gt("dialog.password.open.required")
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
return "Open" === o?.option ? o.input ?? null : null;
|
|
@@ -223,7 +223,7 @@ function Tt(e, t) {
|
|
|
223
223
|
...n,
|
|
224
224
|
progress: {
|
|
225
225
|
async onStart(e, t) {
|
|
226
|
-
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(
|
|
226
|
+
await n?.progress?.onStart?.(e, t), a = await i?.showBusy?.(gt("workbook.opening", { name: e?.getName() ?? "" })), t && a?.setProgress?.(0, t);
|
|
227
227
|
},
|
|
228
228
|
onProgress(e, t) {
|
|
229
229
|
if (!t) return;
|
|
@@ -236,7 +236,7 @@ function Tt(e, t) {
|
|
|
236
236
|
o - s < 5 || (s = o, a?.setProgress?.(e, t));
|
|
237
237
|
},
|
|
238
238
|
onComplete() {
|
|
239
|
-
a?.(), r.length > 0 && (i.showMessage(
|
|
239
|
+
a?.(), r.length > 0 && (i.showMessage(gt("workbook.importWarnings")), console.warn("Import warnings:\n" + r.join("\n")));
|
|
240
240
|
},
|
|
241
241
|
onWarning(e, t) {
|
|
242
242
|
n?.progress?.onWarning?.(e, t);
|
|
@@ -249,7 +249,7 @@ function Tt(e, t) {
|
|
|
249
249
|
format: t?.key,
|
|
250
250
|
progress: {
|
|
251
251
|
async onStart(e) {
|
|
252
|
-
a = await i?.showBusy?.(
|
|
252
|
+
a = await i?.showBusy?.(gt("workbook.saving", { name: e?.getName() ?? "" }));
|
|
253
253
|
},
|
|
254
254
|
onComplete() {
|
|
255
255
|
a?.();
|
|
@@ -257,27 +257,27 @@ function Tt(e, t) {
|
|
|
257
257
|
},
|
|
258
258
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: o }) => {
|
|
259
259
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
260
|
-
const r =
|
|
260
|
+
const r = gt("dialog.writeWarnings.title"), n = t.getFormat(), s = (n ? (await F.getWriteFormats({ search: n }))[0] : void 0)?.description ?? n ?? "", l = gt("dialog.writeWarnings.keep");
|
|
261
261
|
return o ? "Save" === await i.showOptions({
|
|
262
262
|
title: r,
|
|
263
263
|
type: q.Warning,
|
|
264
|
-
description: `${
|
|
264
|
+
description: `${gt("dialog.writeWarnings.confirm", { format: s })}\n\n${l}`,
|
|
265
265
|
options: [{
|
|
266
266
|
id: "Save",
|
|
267
|
-
label: () =>
|
|
267
|
+
label: () => gt("dialog.save")
|
|
268
268
|
}, "Cancel"],
|
|
269
269
|
defaultOption: "Cancel"
|
|
270
|
-
}) && (a = await i?.showBusy?.(
|
|
270
|
+
}) && (a = await i?.showBusy?.(gt("workbook.saving", { name: t?.getName() ?? "" })), !0) : (i.showOptions({
|
|
271
271
|
title: r,
|
|
272
272
|
type: q.Warning,
|
|
273
|
-
description: `${
|
|
273
|
+
description: `${gt("dialog.writeWarnings.saved", { format: s })}\n\n${l}`,
|
|
274
274
|
options: ["Ok"]
|
|
275
275
|
}), !0);
|
|
276
276
|
})
|
|
277
277
|
};
|
|
278
278
|
let l;
|
|
279
279
|
if (o) {
|
|
280
|
-
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() ||
|
|
280
|
+
const o = e.getOrigin(), r = t?.exts?.[0] ?? (o.getExtension() || "sxl"), a = `${n || o.getName() || gt("workbook.defaultName")}.${r}`;
|
|
281
281
|
l = await F.writeAs(e, a, {
|
|
282
282
|
...s,
|
|
283
283
|
prompt: !0
|
|
@@ -291,14 +291,14 @@ function Tt(e, t) {
|
|
|
291
291
|
e?.source ? t && p ? await p({
|
|
292
292
|
url: e.source,
|
|
293
293
|
title: e.title
|
|
294
|
-
}) :
|
|
294
|
+
}) : Tt(e.source, e.title) : t ? r({}) : Tt();
|
|
295
295
|
} }), e.updateCommand("closeWorkbook", { callback: async () => {
|
|
296
296
|
a() && "Close" !== await i.showOptions({
|
|
297
|
-
title:
|
|
298
|
-
description:
|
|
297
|
+
title: gt("dialog.confirm.title"),
|
|
298
|
+
description: gt("dialog.unsavedChanges"),
|
|
299
299
|
options: [{
|
|
300
300
|
id: "Close",
|
|
301
|
-
label: () =>
|
|
301
|
+
label: () => gt("dialog.close")
|
|
302
302
|
}, "Cancel"],
|
|
303
303
|
defaultOption: "Cancel"
|
|
304
304
|
}) || window.close();
|
|
@@ -319,13 +319,13 @@ function Tt(e, t) {
|
|
|
319
319
|
for (const o of t) {
|
|
320
320
|
const t = o.key;
|
|
321
321
|
e.updateCommand(`saveWorkbookAs${t}`, {
|
|
322
|
-
label: () =>
|
|
322
|
+
label: () => gt("command.saveAsFormat.label", { format: o.description }),
|
|
323
323
|
groupLabels: {
|
|
324
|
-
workbook: () =>
|
|
325
|
-
saveWorkbookOptions: () =>
|
|
324
|
+
workbook: () => gt("command.saveAsFormat.workbook", { format: o.description }),
|
|
325
|
+
saveWorkbookOptions: () => gt("command.saveAsFormat.compact", { format: o.description })
|
|
326
326
|
},
|
|
327
327
|
tags: o.tags,
|
|
328
|
-
description: () =>
|
|
328
|
+
description: () => gt("command.saveAsFormat", { format: o.description }),
|
|
329
329
|
icon: "CSV" === t ? "FileDownloadAsCSV" : "Excel" === t ? "FileDownloadAsExcel" : "FileDownloadAsSheet",
|
|
330
330
|
callback: () => {
|
|
331
331
|
r(t);
|
|
@@ -353,7 +353,7 @@ function Tt(e, t) {
|
|
|
353
353
|
autoSelect: e === i.length - 1
|
|
354
354
|
}).getEntireRange().copyFrom(t.getEntireRange());
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, mt("op.importData")), a.close();
|
|
357
357
|
} catch (e) {
|
|
358
358
|
i.showError(e);
|
|
359
359
|
}
|
|
@@ -364,7 +364,7 @@ function Tt(e, t) {
|
|
|
364
364
|
let t = e;
|
|
365
365
|
if (t || F.canRead() || (t = await (async () => {
|
|
366
366
|
const e = await F.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
367
|
-
return
|
|
367
|
+
return it.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
368
368
|
})(), t)) return m(t);
|
|
369
369
|
}
|
|
370
370
|
}), e.updateCommand("insertDataFromURL", {
|
|
@@ -372,14 +372,14 @@ function Tt(e, t) {
|
|
|
372
372
|
callback: async (e) => {
|
|
373
373
|
if (!e) {
|
|
374
374
|
const t = await i.showInput({
|
|
375
|
-
title:
|
|
376
|
-
description:
|
|
377
|
-
inputLabel:
|
|
378
|
-
initialValue: "https://www.sheetxl.com/docs/examples/
|
|
375
|
+
title: gt("dialog.importFromWeb.title"),
|
|
376
|
+
description: gt("dialog.importFromWeb.description"),
|
|
377
|
+
inputLabel: gt("dialog.webAddress.inputLabel"),
|
|
378
|
+
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
379
379
|
propsInput: { style: { minWidth: "440px" } },
|
|
380
380
|
options: [{
|
|
381
381
|
id: "Import",
|
|
382
|
-
label: () =>
|
|
382
|
+
label: () => gt("dialog.import")
|
|
383
383
|
}]
|
|
384
384
|
});
|
|
385
385
|
if ("Import" !== t.option) return;
|
|
@@ -396,11 +396,11 @@ function Tt(e, t) {
|
|
|
396
396
|
}
|
|
397
397
|
}), u) {
|
|
398
398
|
const t = async () => !a() || "Open" === await i.showOptions({
|
|
399
|
-
title:
|
|
400
|
-
description:
|
|
399
|
+
title: gt("dialog.confirm.title"),
|
|
400
|
+
description: gt("dialog.unsavedChanges"),
|
|
401
401
|
options: [{
|
|
402
402
|
id: "Open",
|
|
403
|
-
label: () =>
|
|
403
|
+
label: () => gt("dialog.open")
|
|
404
404
|
}, "Cancel"],
|
|
405
405
|
defaultOption: "Cancel"
|
|
406
406
|
}), n = async (e = null) => {
|
|
@@ -423,14 +423,14 @@ function Tt(e, t) {
|
|
|
423
423
|
const r = "string" == typeof e ? void 0 : e?.title;
|
|
424
424
|
if (!o) {
|
|
425
425
|
const e = await i.showInput({
|
|
426
|
-
title:
|
|
427
|
-
description:
|
|
428
|
-
inputLabel:
|
|
429
|
-
initialValue: "https://www.sheetxl.com/docs/examples/
|
|
426
|
+
title: gt("dialog.openFromWeb.title"),
|
|
427
|
+
description: gt("dialog.openFromWeb.description"),
|
|
428
|
+
inputLabel: gt("dialog.webAddress.inputLabel"),
|
|
429
|
+
initialValue: "https://www.sheetxl.com/docs/examples/loan-calculator.xlsx",
|
|
430
430
|
propsInput: { style: { minWidth: "440px" } },
|
|
431
431
|
options: [{
|
|
432
432
|
id: "Open",
|
|
433
|
-
label: () =>
|
|
433
|
+
label: () => gt("dialog.open")
|
|
434
434
|
}]
|
|
435
435
|
});
|
|
436
436
|
if ("Open" !== e.option) return;
|
|
@@ -450,9 +450,9 @@ function Tt(e, t) {
|
|
|
450
450
|
l = !0, s && (s.current = null);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
var
|
|
453
|
+
var At = Re(pt("studio:shortcutKeysDialog", () => import("./YTiLYQEQ-ST2j-Yd.mjs")).load);
|
|
454
|
+
k(), y();
|
|
455
|
+
var Pt = /* @__PURE__ */ new Set(["ui"]), It = (e) => {
|
|
456
456
|
const t = (e) => {
|
|
457
457
|
if ("function" != typeof e) return e;
|
|
458
458
|
try {
|
|
@@ -462,9 +462,9 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
462
462
|
}
|
|
463
463
|
}, o = (e, o) => {
|
|
464
464
|
const r = t(e);
|
|
465
|
-
return "string" == typeof r ?
|
|
465
|
+
return "string" == typeof r ? ut(r, o, st.getActive()) : void 0;
|
|
466
466
|
}, r = [];
|
|
467
|
-
for (const n of e.names()) if (!
|
|
467
|
+
for (const n of e.names()) if (!Pt.has(n)) for (const a of e.keys(n)) {
|
|
468
468
|
const i = e.resolveDefinition(n, a);
|
|
469
469
|
r.push({
|
|
470
470
|
groupKey: n,
|
|
@@ -474,27 +474,27 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
474
474
|
getDescription: () => o(i?.description, i?.params) ?? "",
|
|
475
475
|
getShortcut: () => t(i?.shortcut) ?? null,
|
|
476
476
|
getScope: () => n,
|
|
477
|
-
getScopeLabel: () =>
|
|
477
|
+
getScopeLabel: () => V.DefaultCommandCatalogService.getScopeLabel(n)
|
|
478
478
|
}
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
return { getAllCommands: () => r };
|
|
482
482
|
}, Rt = (e) => {
|
|
483
|
-
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l =
|
|
483
|
+
const { children: t, workbook: o, setWorkbook: r, workbookTitle: n, isDirty: a, refSave: i, fullscreenTarget: s } = e, l = V.useCommandScope(), c = le(), { showModal: d } = Le(), p = ue(), u = xe(a);
|
|
484
484
|
u.current = a;
|
|
485
|
-
const m =
|
|
485
|
+
const m = re(() => {
|
|
486
486
|
const e = l?.getRoot().getRegistry();
|
|
487
487
|
if (!e) return;
|
|
488
|
-
const t = d(
|
|
488
|
+
const t = d(At, {
|
|
489
489
|
title: p("dialog.shortcutKeys.title"),
|
|
490
|
-
commands:
|
|
490
|
+
commands: It(e),
|
|
491
491
|
onDone: () => t.hide(),
|
|
492
492
|
onLoadError: (e) => {
|
|
493
493
|
t.destroy(), c.showError(e);
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}, [l, d]);
|
|
497
|
-
|
|
497
|
+
ye(() => {
|
|
498
498
|
if (!l) return;
|
|
499
499
|
const e = l.getRoot().contribution();
|
|
500
500
|
return function(e, t) {
|
|
@@ -510,8 +510,8 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
510
510
|
} });
|
|
511
511
|
}(e, { showShortcuts: m }), () => e.remove();
|
|
512
512
|
}, [l, m]);
|
|
513
|
-
const g =
|
|
514
|
-
|
|
513
|
+
const g = rt("(prefers-color-scheme: dark)"), { themeMode: h } = de(), [f, k] = ce(T.Mode, E[T.Mode]), [b, y] = ce(T.DarkGrid, E[T.DarkGrid]), [w, x] = ce(T.DarkImages, E[T.DarkImages]);
|
|
514
|
+
ye(() => {
|
|
515
515
|
if (!l) return;
|
|
516
516
|
const e = l.getRoot().contribution();
|
|
517
517
|
return function(e, t) {
|
|
@@ -552,10 +552,10 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
552
552
|
y,
|
|
553
553
|
x
|
|
554
554
|
]);
|
|
555
|
-
const [v, C] =
|
|
556
|
-
|
|
557
|
-
v && v !==
|
|
558
|
-
}, [v]),
|
|
555
|
+
const [v, C] = ce(G.Active, null), [D, S] = ve(() => st.getActive());
|
|
556
|
+
ye(() => st.addChangeListener(S), []), ye(() => {
|
|
557
|
+
v && v !== st.getActive() && st.setActive(v);
|
|
558
|
+
}, [v]), ye(() => {
|
|
559
559
|
if (!l) return;
|
|
560
560
|
const e = l.getRoot().contribution();
|
|
561
561
|
return function(e, t) {
|
|
@@ -576,14 +576,14 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
576
576
|
D,
|
|
577
577
|
C
|
|
578
578
|
]);
|
|
579
|
-
const W =
|
|
580
|
-
|
|
579
|
+
const W = we(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: F, isFullscreenEnabled: A, toggleFullscreen: P } = ne({ target: W });
|
|
580
|
+
ye(() => {
|
|
581
581
|
if (!l) return;
|
|
582
582
|
const e = l.getRoot().contribution();
|
|
583
583
|
return function(e, t) {
|
|
584
584
|
e.updateCommand("fullScreenToggle", {
|
|
585
585
|
state: t.isFullscreenEnabled,
|
|
586
|
-
disabledReasons: t.isFullscreenAvailable ? [] : [
|
|
586
|
+
disabledReasons: t.isFullscreenAvailable ? [] : [mt("reason.fullscreenUnavailable")],
|
|
587
587
|
icon: t.isFullscreenEnabled ? "FullScreenOff" : "FullScreen",
|
|
588
588
|
callback: () => {
|
|
589
589
|
t.toggleFullscreen();
|
|
@@ -591,17 +591,17 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
591
591
|
});
|
|
592
592
|
}(e, {
|
|
593
593
|
isFullscreenAvailable: F,
|
|
594
|
-
isFullscreenEnabled:
|
|
594
|
+
isFullscreenEnabled: A,
|
|
595
595
|
toggleFullscreen: P
|
|
596
596
|
}), () => e.remove();
|
|
597
597
|
}, [
|
|
598
598
|
l,
|
|
599
599
|
F,
|
|
600
|
-
|
|
600
|
+
A,
|
|
601
601
|
P
|
|
602
602
|
]);
|
|
603
|
-
const
|
|
604
|
-
return
|
|
603
|
+
const I = B(!0);
|
|
604
|
+
return ye(() => {
|
|
605
605
|
if (!l) return;
|
|
606
606
|
const e = l.getRoot().contribution();
|
|
607
607
|
return function(e, t) {
|
|
@@ -611,10 +611,10 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
611
611
|
t("manageProtection", { args: { tab: "workbook" } });
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
|
-
}(e, (e, t) =>
|
|
615
|
-
}, [l,
|
|
614
|
+
}(e, (e, t) => I.activate(e, t)), () => e.remove();
|
|
615
|
+
}, [l, I]), ye(() => {
|
|
616
616
|
if (!l || !o) return;
|
|
617
|
-
const e = l.getRoot().contribution(), t =
|
|
617
|
+
const e = l.getRoot().contribution(), t = Ft(e, {
|
|
618
618
|
workbook: o,
|
|
619
619
|
setWorkbook: r,
|
|
620
620
|
workbookTitle: n ?? void 0,
|
|
@@ -635,8 +635,8 @@ var It = /* @__PURE__ */ new Set(["ui"]), Pt = (e) => {
|
|
|
635
635
|
]), t;
|
|
636
636
|
};
|
|
637
637
|
Rt.displayName = "StudioCommandProvider";
|
|
638
|
-
var
|
|
639
|
-
const t =
|
|
638
|
+
var jt = ({ renderWorkbook: e }) => {
|
|
639
|
+
const t = V.useCommandResolver(), o = xe(null), r = ue(), [n, a] = ve(null), i = be((e) => {
|
|
640
640
|
const o = e.dataTransfer;
|
|
641
641
|
if (t && o) {
|
|
642
642
|
if ("dragenter" === e.type || "dragover" === e.type) {
|
|
@@ -653,7 +653,7 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
653
653
|
}
|
|
654
654
|
e.preventDefault();
|
|
655
655
|
}
|
|
656
|
-
}, [t]), s =
|
|
656
|
+
}, [t]), s = re((e) => {
|
|
657
657
|
e.preventDefault();
|
|
658
658
|
const r = n;
|
|
659
659
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -683,10 +683,10 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
683
683
|
n ? n.then((e) => t.execute("openWorkbook", "file" === e?.kind ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
}, [t, n]), l =
|
|
686
|
+
}, [t, n]), l = we(() => {
|
|
687
687
|
if (!n) return null;
|
|
688
688
|
const e = "insertImage" === n;
|
|
689
|
-
return
|
|
689
|
+
return _e(He, {
|
|
690
690
|
className: "drop-overlay",
|
|
691
691
|
sx: {
|
|
692
692
|
position: "absolute",
|
|
@@ -697,12 +697,12 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
697
697
|
display: "flex",
|
|
698
698
|
justifyContent: "center",
|
|
699
699
|
alignItems: "center",
|
|
700
|
-
backgroundColor: (e) =>
|
|
700
|
+
backgroundColor: (e) => ot(e.palette.primary.main, .46),
|
|
701
701
|
outline: (e) => `2px dashed ${e.palette.primary.main}`,
|
|
702
702
|
outlineOffset: "-6px",
|
|
703
703
|
borderRadius: 2
|
|
704
704
|
},
|
|
705
|
-
children:
|
|
705
|
+
children: Ke(Ye, {
|
|
706
706
|
elevation: 6,
|
|
707
707
|
sx: {
|
|
708
708
|
display: "flex",
|
|
@@ -714,11 +714,11 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
714
714
|
color: "text.primary",
|
|
715
715
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
716
716
|
},
|
|
717
|
-
children: [
|
|
717
|
+
children: [_e(U, {
|
|
718
718
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
719
719
|
className: "drop-overlay-icon",
|
|
720
720
|
size: 32
|
|
721
|
-
}),
|
|
721
|
+
}), _e(tt, {
|
|
722
722
|
variant: "h6",
|
|
723
723
|
component: "span",
|
|
724
724
|
children: r(e ? "drop.insertImage" : "drop.open")
|
|
@@ -726,7 +726,7 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
726
726
|
})
|
|
727
727
|
});
|
|
728
728
|
}, [n, r]);
|
|
729
|
-
return
|
|
729
|
+
return Ke(Be, { children: [e({
|
|
730
730
|
ref: o,
|
|
731
731
|
onDragStart: (e) => {
|
|
732
732
|
if (e.target.src) {
|
|
@@ -739,48 +739,48 @@ var At = ({ renderWorkbook: e }) => {
|
|
|
739
739
|
onDragOver: i,
|
|
740
740
|
onDrop: s
|
|
741
741
|
}), l] });
|
|
742
|
-
},
|
|
742
|
+
}, Nt = ke((e) => {
|
|
743
743
|
const { workbook: t, setWorkbook: o, refDocumentTitle: r, titleWorkbook: n, setWorkbookTitle: a, isDirty: i, initialCommandAnchor: s, renderWorkbook: l, refSave: c, host: d } = e;
|
|
744
|
-
return
|
|
744
|
+
return _e(x, {
|
|
745
745
|
initialAnchor: s,
|
|
746
|
-
children:
|
|
746
|
+
children: _e(Rt, {
|
|
747
747
|
workbook: t,
|
|
748
748
|
setWorkbook: o,
|
|
749
749
|
workbookTitle: n,
|
|
750
750
|
isDirty: i,
|
|
751
751
|
refSave: c,
|
|
752
752
|
fullscreenTarget: d,
|
|
753
|
-
children:
|
|
753
|
+
children: _e(jt, { renderWorkbook: l })
|
|
754
754
|
})
|
|
755
755
|
});
|
|
756
756
|
});
|
|
757
|
-
|
|
758
|
-
var
|
|
759
|
-
sort:
|
|
760
|
-
hyperlink:
|
|
761
|
-
find:
|
|
762
|
-
tableNew:
|
|
763
|
-
namedDetails:
|
|
764
|
-
insertFunction:
|
|
765
|
-
resizeHeader:
|
|
766
|
-
outlineSettings:
|
|
767
|
-
fillSeries:
|
|
768
|
-
workbookStatistics:
|
|
769
|
-
password:
|
|
770
|
-
}, Mt = ["find"], Lt =
|
|
771
|
-
const { children: t } = e, o =
|
|
757
|
+
Nt.displayName = "CommandsWrapper";
|
|
758
|
+
var Ot = {
|
|
759
|
+
sort: pt("studio:sortDialog", () => import("./Cg1eqOYlWMCprF6j.mjs")).load,
|
|
760
|
+
hyperlink: pt("studio:hyperlinkDialog", () => import("./CVeYUjvKIc1XuPC1.mjs")).load,
|
|
761
|
+
find: pt("studio:findReplaceWindow", () => import("./BZVe_afv1tfvExD6.mjs")).load,
|
|
762
|
+
tableNew: pt("studio:tableNewDialog", () => import("./BVyN4cLnT2ii1GMj.mjs")).load,
|
|
763
|
+
namedDetails: pt("studio:namedReferenceDialog", () => import("./uySjOpgLC6iCqgC-.mjs")).load,
|
|
764
|
+
insertFunction: pt("studio:insertFunctionDialog", () => import("./BiBMdXkWOUHZpWcb.mjs")).load,
|
|
765
|
+
resizeHeader: pt("studio:resizeHeaderDialog", () => import("./DjB5CHk5N8mYRiAW.mjs")).load,
|
|
766
|
+
outlineSettings: pt("studio:outlineSettingsDialog", () => import("./h5Tt_pl2Dpa9vaR-.mjs")).load,
|
|
767
|
+
fillSeries: pt("studio:fillSeriesDialog", () => import("./Bj-UqmrrHdVSX4vS.mjs")).load,
|
|
768
|
+
workbookStatistics: pt("studio:workbookStatisticsDialog", () => import("./Mm5HFZHyaIJ5EfYO.mjs")).load,
|
|
769
|
+
password: pt("studio:passwordDialog", () => import("./DTtGcAuClHgv-5s6.mjs")).load
|
|
770
|
+
}, Mt = ["find"], Lt = ke((e) => {
|
|
771
|
+
const { children: t } = e, o = wt(), r = o ? o.enqueueSnackbar : () => {}, n = o ? o.closeSnackbar : () => {}, a = xe(/* @__PURE__ */ new Set()), i = xe(null), s = xe(null), [l, c] = ve({
|
|
772
772
|
label: null,
|
|
773
773
|
progress: null
|
|
774
|
-
}), d =
|
|
775
|
-
|
|
774
|
+
}), d = ue(), p = at.EmptyObject, u = Me(p), m = $e(p), g = Oe(p), h = xe(!1);
|
|
775
|
+
ye(() => {
|
|
776
776
|
if (h.current) return;
|
|
777
777
|
h.current = !0;
|
|
778
778
|
const e = window, t = e.requestIdleCallback ?? ((e) => setTimeout(e, 500)), o = e.cancelIdleCallback ?? clearTimeout, r = t(() => {
|
|
779
|
-
for (const e of Mt) u(e,
|
|
779
|
+
for (const e of Mt) u(e, Ot[e], { prewarm: !0 }).catch(() => {});
|
|
780
780
|
});
|
|
781
781
|
return () => o(r);
|
|
782
782
|
}, []);
|
|
783
|
-
const f =
|
|
783
|
+
const f = xe(/* @__PURE__ */ new Set()), k = we(() => {
|
|
784
784
|
const e = (e, t) => {
|
|
785
785
|
if (t?.onceKey) {
|
|
786
786
|
if (f.current.has(t.onceKey)) return;
|
|
@@ -795,9 +795,9 @@ var Nt = {
|
|
|
795
795
|
},
|
|
796
796
|
preventDuplicate: t?.preventDuplicate,
|
|
797
797
|
persist: t?.persist ?? t?.type === q.Error,
|
|
798
|
-
action: (e) =>
|
|
798
|
+
action: (e) => _e(Xe, {
|
|
799
799
|
onClick: () => n(e),
|
|
800
|
-
children:
|
|
800
|
+
children: _e(U, { iconKey: "Cancel" })
|
|
801
801
|
})
|
|
802
802
|
};
|
|
803
803
|
t?.enqueueProps && Object.assign(o, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", o);
|
|
@@ -810,8 +810,8 @@ var Nt = {
|
|
|
810
810
|
...t,
|
|
811
811
|
label: e
|
|
812
812
|
});
|
|
813
|
-
const r =
|
|
814
|
-
a.current.delete(o) && (a.current.size > 0 || (
|
|
813
|
+
const r = oe(() => {
|
|
814
|
+
a.current.delete(o) && (a.current.size > 0 || (Ie(i.current), s.current = null, c((e) => null === e.label && null === e.progress ? e : {
|
|
815
815
|
label: null,
|
|
816
816
|
progress: null
|
|
817
817
|
})));
|
|
@@ -822,11 +822,11 @@ var Nt = {
|
|
|
822
822
|
progress: o
|
|
823
823
|
});
|
|
824
824
|
}, (e) => {
|
|
825
|
-
s.current = e, "string" == typeof e ?
|
|
825
|
+
s.current = e, "string" == typeof e ? Ne(i.current, e) : c((t) => ({
|
|
826
826
|
...t,
|
|
827
827
|
label: e
|
|
828
828
|
}));
|
|
829
|
-
}), n =
|
|
829
|
+
}), n = Ne(i.current, "string" == typeof e ? e : void 0);
|
|
830
830
|
return n ? n.then(() => r) : r;
|
|
831
831
|
},
|
|
832
832
|
showWindow: (e, t) => {
|
|
@@ -836,22 +836,22 @@ var Nt = {
|
|
|
836
836
|
onKeyDown: (e) => {
|
|
837
837
|
e.isDefaultPrevented() || e.isPropagationStopped() || o?.onKeyDown?.(e);
|
|
838
838
|
}
|
|
839
|
-
}, u(e,
|
|
839
|
+
}, u(e, Ot[e], t);
|
|
840
840
|
},
|
|
841
841
|
showOptions: m,
|
|
842
842
|
showInput: g,
|
|
843
843
|
showError: (t) => {
|
|
844
844
|
let o, r = q.Error, n = d("error.unknown");
|
|
845
|
-
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof
|
|
845
|
+
"string" == typeof t ? n = t : t instanceof Error && (o = t, t.message && (n = d(t.message))), t instanceof dt && (r = q.Info), e(n, {
|
|
846
846
|
type: r,
|
|
847
847
|
enqueueProps: { error: o }
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
|
-
}, [d]), b =
|
|
851
|
+
}, [d]), b = we(() => _e(Ce, {
|
|
852
852
|
ref: i,
|
|
853
853
|
autoStart: !1,
|
|
854
|
-
icon:
|
|
854
|
+
icon: _e(De, { sx: {
|
|
855
855
|
transform: "scale(0.7)",
|
|
856
856
|
marginLeft: "-6px"
|
|
857
857
|
} }),
|
|
@@ -868,19 +868,19 @@ var Nt = {
|
|
|
868
868
|
pointerEvents: "none"
|
|
869
869
|
}
|
|
870
870
|
}), [l.label, l.progress]);
|
|
871
|
-
return
|
|
871
|
+
return Ke(Y, {
|
|
872
872
|
notifier: k,
|
|
873
873
|
children: [b, t]
|
|
874
874
|
});
|
|
875
875
|
});
|
|
876
876
|
Lt.displayName = "StudioNotifierProvider";
|
|
877
|
-
var
|
|
878
|
-
const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = v, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g =
|
|
877
|
+
var $t = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Bt = ke(he((e, t) => {
|
|
878
|
+
const { children: o, title: r, taskPanes: n, onSelect: a, selected: i, registry: s = v, style: l, iconsOnly: c, side: d = "right", className: p, ...u } = e, m = "right" !== d, g = ie(), h = we(() => n.map((t) => {
|
|
879
879
|
const o = s.getRegisteredTaskPane(t);
|
|
880
880
|
if (!o) return null;
|
|
881
881
|
let r = o.getIcon?.();
|
|
882
|
-
"string" == typeof r && (r =
|
|
883
|
-
const n = t === i, a = r ?
|
|
882
|
+
"string" == typeof r && (r = _e(U, { iconKey: r }));
|
|
883
|
+
const n = t === i, a = r ? _e(He, {
|
|
884
884
|
sx: {
|
|
885
885
|
display: "inline-block",
|
|
886
886
|
transform: m ? "rotate(-90deg)" : "rotate(90deg)",
|
|
@@ -888,20 +888,20 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
888
888
|
color: (e) => e.palette.text.secondary
|
|
889
889
|
},
|
|
890
890
|
children: r
|
|
891
|
-
}) : null, l = !r || !c && n, d =
|
|
891
|
+
}) : null, l = !r || !c && n, d = _e(He, {
|
|
892
892
|
sx: {
|
|
893
893
|
display: "grid",
|
|
894
894
|
gridTemplateColumns: l ? "1fr" : "0fr",
|
|
895
895
|
opacity: l ? 1 : 0,
|
|
896
896
|
transition: (e) => e.transitions.create(["grid-template-columns", "opacity"], { duration: e.transitions.duration.short })
|
|
897
897
|
},
|
|
898
|
-
children:
|
|
898
|
+
children: _e(He, {
|
|
899
899
|
sx: {
|
|
900
900
|
overflow: "hidden",
|
|
901
901
|
minWidth: 0,
|
|
902
902
|
minHeight: 0
|
|
903
903
|
},
|
|
904
|
-
children:
|
|
904
|
+
children: _e(tt, {
|
|
905
905
|
component: "div",
|
|
906
906
|
sx: {
|
|
907
907
|
textTransform: "none",
|
|
@@ -914,13 +914,13 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
914
914
|
})
|
|
915
915
|
})
|
|
916
916
|
});
|
|
917
|
-
return
|
|
917
|
+
return _e(Je, {
|
|
918
918
|
value: t,
|
|
919
|
-
label:
|
|
919
|
+
label: _e(Fe, {
|
|
920
920
|
disableInteractive: !0,
|
|
921
921
|
title: o.getTitle() ?? "",
|
|
922
922
|
placement: "left-start",
|
|
923
|
-
children:
|
|
923
|
+
children: Ke(He, {
|
|
924
924
|
sx: {
|
|
925
925
|
padding: "0px 0px",
|
|
926
926
|
writingMode: m ? "vertical-lr" : "vertical-rl",
|
|
@@ -940,7 +940,7 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
940
940
|
minHeight: "0px",
|
|
941
941
|
borderRadius: "4px"
|
|
942
942
|
},
|
|
943
|
-
className:
|
|
943
|
+
className: ht("taskpane-strip-item", { "Mui-selected": n }),
|
|
944
944
|
onClick: () => e.onSelect(t)
|
|
945
945
|
}, t);
|
|
946
946
|
}), [
|
|
@@ -951,8 +951,8 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
951
951
|
m,
|
|
952
952
|
c,
|
|
953
953
|
g
|
|
954
|
-
]), f =
|
|
955
|
-
return
|
|
954
|
+
]), f = ae(t, () => ({ isTaskPaneStrip: () => !0 }), []), k = we(() => ht("taskpane-strip", p), [p]);
|
|
955
|
+
return _e(He, {
|
|
956
956
|
ref: f,
|
|
957
957
|
className: k,
|
|
958
958
|
sx: {
|
|
@@ -962,7 +962,7 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
962
962
|
...l
|
|
963
963
|
},
|
|
964
964
|
...u,
|
|
965
|
-
children:
|
|
965
|
+
children: _e(Qe, {
|
|
966
966
|
orientation: "vertical",
|
|
967
967
|
variant: "scrollable",
|
|
968
968
|
value: i,
|
|
@@ -980,10 +980,10 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
980
980
|
children: h
|
|
981
981
|
})
|
|
982
982
|
});
|
|
983
|
-
})),
|
|
984
|
-
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s =
|
|
985
|
-
return
|
|
986
|
-
className:
|
|
983
|
+
})), _t = (e) => {
|
|
984
|
+
const { title: t, icon: o, onClose: r, readOnly: n, focused: a, ...i } = e, s = xe(null), l = ue();
|
|
985
|
+
return _e(qe, {
|
|
986
|
+
className: ht({ "Mui-selected": a }),
|
|
987
987
|
sx: {
|
|
988
988
|
display: "flex",
|
|
989
989
|
flex: "1 1 %0",
|
|
@@ -997,11 +997,11 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
997
997
|
opacity: 1,
|
|
998
998
|
transitionDuration: (e) => e.transitions.duration.shortest / 2 + "ms"
|
|
999
999
|
},
|
|
1000
|
-
backgroundColor: (e) =>
|
|
1001
|
-
borderBottom: `solid ${
|
|
1000
|
+
backgroundColor: (e) => ot(e.palette.action.hover, .03),
|
|
1001
|
+
borderBottom: `solid ${$t} 1px`
|
|
1002
1002
|
},
|
|
1003
1003
|
...i,
|
|
1004
|
-
children:
|
|
1004
|
+
children: Ke(He, {
|
|
1005
1005
|
sx: {
|
|
1006
1006
|
display: "flex",
|
|
1007
1007
|
flex: "1 1 10%",
|
|
@@ -1012,15 +1012,15 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1012
1012
|
marginLeft: (e) => e.spacing(1),
|
|
1013
1013
|
marginRight: (e) => e.spacing(1)
|
|
1014
1014
|
},
|
|
1015
|
-
children: [
|
|
1015
|
+
children: [_e(He, {
|
|
1016
1016
|
sx: {
|
|
1017
1017
|
flex: "1 1 100%",
|
|
1018
1018
|
paddingLeft: (e) => e.spacing(1)
|
|
1019
1019
|
},
|
|
1020
1020
|
children: t
|
|
1021
|
-
}),
|
|
1021
|
+
}), _e(Ee, {
|
|
1022
1022
|
label: l("taskPane.close"),
|
|
1023
|
-
children:
|
|
1023
|
+
children: _e(Xe, {
|
|
1024
1024
|
"aria-label": "close",
|
|
1025
1025
|
sx: { color: (e) => e.palette.text.icon ?? e.palette.action.active },
|
|
1026
1026
|
touchRippleRef: s,
|
|
@@ -1030,14 +1030,14 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1030
1030
|
onPointerUp: () => {
|
|
1031
1031
|
r();
|
|
1032
1032
|
},
|
|
1033
|
-
children:
|
|
1033
|
+
children: _e(U, { iconKey: "Close" })
|
|
1034
1034
|
})
|
|
1035
1035
|
})]
|
|
1036
1036
|
})
|
|
1037
1037
|
});
|
|
1038
|
-
},
|
|
1039
|
-
const { model: o, side: r, ...n } = e, a =
|
|
1040
|
-
return
|
|
1038
|
+
}, Kt = he((e, t) => {
|
|
1039
|
+
const { model: o, side: r, ...n } = e, a = nt(), i = `solid ${$t} 1px`, s = `${a.shape.borderRadius ?? 4}px`, l = `${a.spacing?.(.5) ?? 4}px`;
|
|
1040
|
+
return _e(S, {
|
|
1041
1041
|
model: o,
|
|
1042
1042
|
ref: t,
|
|
1043
1043
|
propsFrame: { style: {
|
|
@@ -1046,8 +1046,8 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1046
1046
|
marginBottom: l
|
|
1047
1047
|
} },
|
|
1048
1048
|
alwaysShowStrip: !0,
|
|
1049
|
-
componentTitle:
|
|
1050
|
-
componentStrip:
|
|
1049
|
+
componentTitle: _t,
|
|
1050
|
+
componentStrip: Bt,
|
|
1051
1051
|
side: r,
|
|
1052
1052
|
...e,
|
|
1053
1053
|
onOpen: () => {
|
|
@@ -1058,21 +1058,21 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1058
1058
|
},
|
|
1059
1059
|
...n
|
|
1060
1060
|
});
|
|
1061
|
-
}),
|
|
1061
|
+
}), Ht = "_styled-resizer_fdl5y_3", Vt = {}, zt = {
|
|
1062
1062
|
flex: "1 1 100%",
|
|
1063
1063
|
display: "flex",
|
|
1064
1064
|
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] =
|
|
1065
|
+
}, Ut = ke(he((e, t) => {
|
|
1066
|
+
const { mainElement: o, sidebarElement: r, position: n, persistKey: a, onPositionChange: i, className: s, style: l, taskSide: c = "right", ...d } = e, [p, u] = ce(a ?? null, Vt), m = nt(), [g, { width: h }] = se(), f = h > 530 || 0 === h, k = xe(null);
|
|
1067
1067
|
let b, y, w = null, x = 4, v = 13;
|
|
1068
1068
|
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
1069
|
let C, D = o, S = r;
|
|
1070
|
-
const W = "right" !== c, E = f ? "row" : "column", T = W && S ? "before" : "after", F = `${E}:${T}`,
|
|
1070
|
+
const W = "right" !== c, E = f ? "row" : "column", T = W && S ? "before" : "after", F = `${E}:${T}`, A = a ? p[F] : void 0, P = null != A ? `${A}%` : ((e, t) => {
|
|
1071
1071
|
if (null == e) return "40%";
|
|
1072
1072
|
if ("number" == typeof e || "string" == typeof e) return e;
|
|
1073
1073
|
const o = e[t];
|
|
1074
1074
|
return null != o ? `${o}%` : "40%";
|
|
1075
|
-
})(n, F),
|
|
1075
|
+
})(n, F), I = a || i ? (e) => {
|
|
1076
1076
|
a && u((t) => ({
|
|
1077
1077
|
...t,
|
|
1078
1078
|
[F]: e.percent
|
|
@@ -1103,13 +1103,13 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1103
1103
|
minAfter: f ? "280px" : "120px",
|
|
1104
1104
|
splitDirection: f ? "row" : "column"
|
|
1105
1105
|
});
|
|
1106
|
-
const
|
|
1106
|
+
const R = kt([
|
|
1107
1107
|
k,
|
|
1108
1108
|
g,
|
|
1109
1109
|
t
|
|
1110
1110
|
]);
|
|
1111
|
-
return
|
|
1112
|
-
ref:
|
|
1111
|
+
return _e(ee, {
|
|
1112
|
+
ref: R,
|
|
1113
1113
|
className: s,
|
|
1114
1114
|
style: l ? {
|
|
1115
1115
|
...zt,
|
|
@@ -1117,9 +1117,9 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1117
1117
|
} : zt,
|
|
1118
1118
|
...d,
|
|
1119
1119
|
...C,
|
|
1120
|
-
onPositionChange:
|
|
1120
|
+
onPositionChange: I,
|
|
1121
1121
|
propsResizer: {
|
|
1122
|
-
className:
|
|
1122
|
+
className: ht("styled-resizer", Ht),
|
|
1123
1123
|
style: {
|
|
1124
1124
|
minWidth: f ? "7px" : void 0,
|
|
1125
1125
|
minHeight: f ? void 0 : "6px",
|
|
@@ -1134,15 +1134,15 @@ var Ot = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1134
1134
|
propsPaneAfter: y
|
|
1135
1135
|
});
|
|
1136
1136
|
}));
|
|
1137
|
-
|
|
1138
|
-
var
|
|
1137
|
+
Ut.displayName = "StudioSplitPane";
|
|
1138
|
+
var Gt = () => _e("div", { style: {
|
|
1139
1139
|
flex: "none",
|
|
1140
1140
|
height: 0,
|
|
1141
1141
|
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) =>
|
|
1142
|
+
} }), qt = (e, t) => {
|
|
1143
|
+
const o = (e) => _e(ge.Fragment, { children: t[e] }, e);
|
|
1144
1144
|
if ("bottom" === e) {
|
|
1145
|
-
const e = t.statusBar && t.formulaBar ?
|
|
1145
|
+
const e = t.statusBar && t.formulaBar ? _e(Gt, {}, "divider") : null;
|
|
1146
1146
|
return [
|
|
1147
1147
|
o("toolbar"),
|
|
1148
1148
|
o("main"),
|
|
@@ -1157,36 +1157,77 @@ var Ut = () => Be("div", { style: {
|
|
|
1157
1157
|
o("main"),
|
|
1158
1158
|
o("statusBar")
|
|
1159
1159
|
];
|
|
1160
|
-
},
|
|
1160
|
+
}, Xt = je(pt("studio:dataValidationDetailsTaskPane", () => import("./DcUXYRkJLeQFybOy.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load);
|
|
1161
1161
|
l(), N("shape", {
|
|
1162
1162
|
key: "changeShapeGallery",
|
|
1163
|
-
render: (e) =>
|
|
1163
|
+
render: (e) => _e(f, {
|
|
1164
1164
|
...e,
|
|
1165
1165
|
commandKey: "changeShape",
|
|
1166
|
-
excludeCategories:
|
|
1166
|
+
excludeCategories: vt
|
|
1167
1167
|
})
|
|
1168
1168
|
}, {
|
|
1169
1169
|
order: -1,
|
|
1170
1170
|
divider: "after"
|
|
1171
|
-
}), j("shape", () => import("./
|
|
1171
|
+
}), j("shape", () => import("./D0HpdVWcePBpfQHX.mjs").then((e) => e.ShapeFormatPanel)), j("chart", () => import("./BWG2FA3rbsOsBHQM.mjs").then((e) => e.ChartFormatPanel)), N("picture", {
|
|
1172
1172
|
key: "changePictureOptions",
|
|
1173
1173
|
defaultKey: "changePictureFromFile",
|
|
1174
1174
|
members: ["changePictureFromFile", "changePictureFromURL"]
|
|
1175
|
+
}, { order: -3 }), N("picture", {
|
|
1176
|
+
key: "pictureHyperlinkOptions",
|
|
1177
|
+
defaultKey: "updatePictureHyperlink",
|
|
1178
|
+
members: [
|
|
1179
|
+
"updatePictureHyperlink",
|
|
1180
|
+
"openPictureHyperlink",
|
|
1181
|
+
"deletePictureHyperlink"
|
|
1182
|
+
]
|
|
1183
|
+
}, { order: -2 }), V.DefaultCommandButtonRegistry.register({
|
|
1184
|
+
key: "cropAspectOptions",
|
|
1185
|
+
members: [
|
|
1186
|
+
"cropAspect1x1",
|
|
1187
|
+
"-",
|
|
1188
|
+
"cropAspect2x3",
|
|
1189
|
+
"cropAspect3x4",
|
|
1190
|
+
"cropAspect3x5",
|
|
1191
|
+
"cropAspect4x5",
|
|
1192
|
+
"-",
|
|
1193
|
+
"cropAspect3x2",
|
|
1194
|
+
"cropAspect4x3",
|
|
1195
|
+
"cropAspect5x3",
|
|
1196
|
+
"cropAspect5x4",
|
|
1197
|
+
"cropAspect16x9",
|
|
1198
|
+
"cropAspect16x10"
|
|
1199
|
+
]
|
|
1200
|
+
}, !0), N("picture", {
|
|
1201
|
+
key: "cropOptions",
|
|
1202
|
+
members: [
|
|
1203
|
+
{
|
|
1204
|
+
key: "cropToShapeGallery",
|
|
1205
|
+
render: (e) => _e(f, {
|
|
1206
|
+
...e,
|
|
1207
|
+
commandKey: "cropToShape",
|
|
1208
|
+
excludeCategories: vt
|
|
1209
|
+
})
|
|
1210
|
+
},
|
|
1211
|
+
"cropAspectOptions",
|
|
1212
|
+
"-",
|
|
1213
|
+
"cropFill",
|
|
1214
|
+
"cropFit"
|
|
1215
|
+
]
|
|
1175
1216
|
}, {
|
|
1176
1217
|
order: -1,
|
|
1177
1218
|
divider: "after"
|
|
1178
|
-
}), s(),
|
|
1219
|
+
}), s(), z.register("plugin-table", { icons: {} }), v.registerTaskPane({
|
|
1179
1220
|
key: "dataValidationDetails",
|
|
1180
1221
|
getTitle: () => "Data Validation",
|
|
1181
1222
|
getIcon: () => "DataValidation",
|
|
1182
|
-
component:
|
|
1223
|
+
component: Xt
|
|
1183
1224
|
}, !0), v.registerTaskPane({
|
|
1184
1225
|
key: "conditionalFormatDetails",
|
|
1185
1226
|
getTitle: () => "Conditional Formatting",
|
|
1186
1227
|
getIcon: () => "FormatPaint",
|
|
1187
|
-
component:
|
|
1188
|
-
}, !0), i(), a(), r(), t(), e(), n(),
|
|
1189
|
-
var
|
|
1228
|
+
component: xt
|
|
1229
|
+
}, !0), i(), a(), r(), t(), e(), n(), b();
|
|
1230
|
+
var Yt = () => {
|
|
1190
1231
|
let e, t;
|
|
1191
1232
|
const o = new Promise((o, r) => {
|
|
1192
1233
|
e = o, t = r;
|
|
@@ -1201,66 +1242,66 @@ var Xt = () => {
|
|
|
1201
1242
|
}
|
|
1202
1243
|
};
|
|
1203
1244
|
return o.catch(() => {}), r;
|
|
1204
|
-
},
|
|
1245
|
+
}, Zt = (e, t) => {
|
|
1205
1246
|
if (!e) return {};
|
|
1206
1247
|
const { colorSchemes: o, ...r } = e, n = o?.[t ? "dark" : "light"];
|
|
1207
|
-
return n && "object" == typeof n ?
|
|
1208
|
-
},
|
|
1209
|
-
const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch:
|
|
1248
|
+
return n && "object" == typeof n ? at.deepMerge(r, n) : r;
|
|
1249
|
+
}, Jt = "taskPanePosition", Qt = ke(he((e, t) => {
|
|
1250
|
+
const { host: r, scopeClass: n, square: a, elevation: i, variant: s, onWorkbookLoad: l, prefetch: m, onDocumentError: f, renderDocumentError: k = g, propsDocumentError: b, propsTaskPaneArea: y, renderTaskPaneArea: x = eo, taskPaneSide: v = "right", onKeyDown: C, workbook: S, onWorkbookChange: j, logo: N, topLeft: B, topRight: q, muiTheme: Y, tokens: ee, cssBaseline: oe, autoFocus: ne = !1, title: ie, onDirtyChange: se, propsDocumentTitle: le, renderDocumentLoading: ue = h, propsDocumentLoading: ge, propsWorkbook: he, showFormulaBar: fe, propsFormulaBar: ke, renderFormulaBar: Ce, formulaBarPlacement: De, manageVisualViewport: Ee = !0, editable: Fe, showStatusBar: Ae, propsStatusBar: Ie, renderStatusBar: Re, propsToolbar: je, renderToolbar: Ne } = e, Oe = xe(null), Me = xe(null), Le = xe(null), $e = re(() => {
|
|
1210
1251
|
Le.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
1211
|
-
}, []),
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
}, [
|
|
1215
|
-
const Je =
|
|
1216
|
-
|
|
1217
|
-
const lt =
|
|
1218
|
-
light:
|
|
1219
|
-
dark:
|
|
1252
|
+
}, []), Be = ((e, t = "undefined" == typeof window ? "mouse" : Z.detectIt().primaryInput) => "top" === e || "bottom" === e ? e : "touch" === t ? "bottom" : "top")(De), Ve = "bottom" === Be && Ee, ze = me(Ve), Ue = ze ? Math.max(0, Math.round(window.innerHeight - ze.height)) : 0, qe = ze ? Math.round(ze.offsetTop) : 0, Xe = ze?.height;
|
|
1253
|
+
ye(() => {
|
|
1254
|
+
Ve && void 0 !== Xe && (0 === window.scrollX && 0 === window.scrollY || window.scrollTo(0, 0));
|
|
1255
|
+
}, [Ve, Xe]);
|
|
1256
|
+
const Je = re(f ?? (() => {}), [f]), Qe = re(se ?? (() => {}), [se]), tt = le?.placeHolder, [ot] = ce(T.Mode, E[T.Mode]), { themeMode: rt } = de({ mode: ot ?? void 0 }), [nt] = ce(G.Active, null), it = xe(nt);
|
|
1257
|
+
it.current = nt;
|
|
1258
|
+
const lt = pe(), ct = we(() => ({
|
|
1259
|
+
light: Pe(!1, at.deepMerge(Zt(Y, !1), w(lt?.light))),
|
|
1260
|
+
dark: Pe(!0, at.deepMerge(Zt(Y, !0), w(lt?.dark)))
|
|
1220
1261
|
}), [
|
|
1221
1262
|
Y,
|
|
1222
1263
|
lt?.light,
|
|
1223
1264
|
lt?.dark
|
|
1224
|
-
]), dt = "dark" === rt, pt =
|
|
1265
|
+
]), dt = "dark" === rt, pt = we(() => d(ct.light, ct.dark, `.${n}`, ee), [
|
|
1225
1266
|
ct,
|
|
1226
1267
|
n,
|
|
1227
|
-
|
|
1228
|
-
]), ut =
|
|
1229
|
-
|
|
1230
|
-
|
|
1268
|
+
ee
|
|
1269
|
+
]), ut = we(() => P("sxl-defaults", `.${n}`), [n]), mt = O(), [gt, ht] = ve(() => S ?? null);
|
|
1270
|
+
ye(() => {
|
|
1271
|
+
ht(S ?? null);
|
|
1231
1272
|
}, [S]);
|
|
1232
|
-
const [kt,
|
|
1233
|
-
wt.current || (wt.current =
|
|
1273
|
+
const [kt, bt] = ve(0), wt = xe(null);
|
|
1274
|
+
wt.current || (wt.current = Yt());
|
|
1234
1275
|
const xt = $(gt, {
|
|
1235
1276
|
io: F,
|
|
1236
1277
|
defaultTheme: mt.getDefaultTheme(),
|
|
1237
1278
|
reloadKey: kt
|
|
1238
|
-
}), vt = "loaded" === xt.status ? xt.workbook : null,
|
|
1279
|
+
}), vt = "loaded" === xt.status ? xt.workbook : null, Ct = we(() => "error" === xt.status ? {
|
|
1239
1280
|
status: "error",
|
|
1240
1281
|
error: xt.error
|
|
1241
1282
|
} : "loaded" === xt.status ? {
|
|
1242
1283
|
status: "loaded",
|
|
1243
1284
|
workbook: xt.workbook
|
|
1244
1285
|
} : { status: "loading" }, [xt]);
|
|
1245
|
-
|
|
1246
|
-
wt.current.settled && (wt.current =
|
|
1247
|
-
}, [gt, kt]),
|
|
1248
|
-
if ("loaded" ===
|
|
1249
|
-
const e = wt.current, t =
|
|
1286
|
+
ye(() => {
|
|
1287
|
+
wt.current.settled && (wt.current = Yt());
|
|
1288
|
+
}, [gt, kt]), ye(() => {
|
|
1289
|
+
if ("loaded" === Ct.status) {
|
|
1290
|
+
const e = wt.current, t = Ct.workbook;
|
|
1250
1291
|
t.whenFontsReady().then(() => e.resolve(t), () => e.resolve(t));
|
|
1251
|
-
} else "error" ===
|
|
1252
|
-
}, [
|
|
1253
|
-
const [St,
|
|
1254
|
-
vt && !St &&
|
|
1255
|
-
const Tt = vt && St && vt !== St ? vt : null, Ft =
|
|
1292
|
+
} else "error" === Ct.status && (Je?.(Ct.error), wt.current.reject(Ct.error));
|
|
1293
|
+
}, [Ct]);
|
|
1294
|
+
const [St, Wt] = ve(null);
|
|
1295
|
+
vt && !St && Wt(vt);
|
|
1296
|
+
const Tt = vt && St && vt !== St ? vt : null, Ft = xe(Tt);
|
|
1256
1297
|
Ft.current = Tt;
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
const Pt =
|
|
1260
|
-
const t =
|
|
1261
|
-
t && Pt.current.push(t),
|
|
1298
|
+
const At = xe(St);
|
|
1299
|
+
At.current = St;
|
|
1300
|
+
const Pt = xe([]), It = be((e) => {
|
|
1301
|
+
const t = At.current;
|
|
1302
|
+
t && Pt.current.push(t), ht(e);
|
|
1262
1303
|
}, []);
|
|
1263
|
-
|
|
1304
|
+
ye(() => {
|
|
1264
1305
|
const e = Pt.current;
|
|
1265
1306
|
if (0 !== e.length) {
|
|
1266
1307
|
Pt.current = e.filter((e) => e === St);
|
|
@@ -1274,75 +1315,75 @@ var Xt = () => {
|
|
|
1274
1315
|
}
|
|
1275
1316
|
}
|
|
1276
1317
|
}, [St]);
|
|
1277
|
-
const
|
|
1278
|
-
const e =
|
|
1279
|
-
return e ?
|
|
1280
|
-
}, [
|
|
1281
|
-
$t.current =
|
|
1282
|
-
if (!
|
|
1283
|
-
let e =
|
|
1284
|
-
return
|
|
1318
|
+
const Rt = Fe ? null : St, jt = L(), Ot = we(() => {
|
|
1319
|
+
const e = Rt?.getSelectedWorksheet() ?? Rt?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
1320
|
+
return e ? I(e, { referenceMode: jt }) : null;
|
|
1321
|
+
}, [Rt, jt]), Mt = Fe ?? Ot, $t = xe(Mt);
|
|
1322
|
+
$t.current = Mt, ye(() => {
|
|
1323
|
+
if (!Mt) return;
|
|
1324
|
+
let e = Mt.getSession();
|
|
1325
|
+
return Mt.subscribe(() => {
|
|
1285
1326
|
const t = e;
|
|
1286
|
-
e =
|
|
1327
|
+
e = Mt.getSession(), t && !e && "formula-bar" === t.getActiveEditorId() && Le.current?.contains?.(document.activeElement) && Oe.current?.focus();
|
|
1287
1328
|
});
|
|
1288
|
-
}, [
|
|
1289
|
-
const Bt = K(St), { isDirty: _t, saveState: Kt } =
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
|
|
1293
|
-
const [
|
|
1294
|
-
|
|
1329
|
+
}, [Mt]);
|
|
1330
|
+
const Bt = K(St), { isDirty: _t, saveState: Kt } = H(St, F), Ht = _(St), Vt = xe(Kt), zt = xe(null);
|
|
1331
|
+
Vt.current = Kt;
|
|
1332
|
+
const Gt = be(() => Vt.current?.isDirty() ?? !1, []), Xt = xe(Ct);
|
|
1333
|
+
Xt.current = Ct;
|
|
1334
|
+
const [Qt, to] = ve(null), oo = ie ?? le?.title, [ro, no] = ve(null);
|
|
1335
|
+
ye(() => {
|
|
1295
1336
|
no(null);
|
|
1296
1337
|
}, [St]);
|
|
1297
1338
|
const ao = oo ?? ro ?? Bt ?? "";
|
|
1298
|
-
|
|
1299
|
-
|
|
1339
|
+
ye(() => {
|
|
1340
|
+
Qe?.(_t);
|
|
1300
1341
|
}, [_t]);
|
|
1301
|
-
const io =
|
|
1302
|
-
|
|
1342
|
+
const io = re(j ?? (() => {}), [j]);
|
|
1343
|
+
ye(() => {
|
|
1303
1344
|
io?.(vt);
|
|
1304
1345
|
}, [vt]);
|
|
1305
|
-
const so =
|
|
1306
|
-
so.current = vt,
|
|
1307
|
-
const lo =
|
|
1346
|
+
const so = xe(vt);
|
|
1347
|
+
so.current = vt, M(St, "onViewChange");
|
|
1348
|
+
const lo = we(() => _e(Se, {
|
|
1308
1349
|
groupKey: "helpOptions",
|
|
1309
1350
|
disableHover: !0,
|
|
1310
1351
|
sx: { padding: "0" },
|
|
1311
1352
|
propsButton: { sx: { maxHeight: "22px" } }
|
|
1312
|
-
}), []), [co, po] =
|
|
1353
|
+
}), []), [co, po] = ve(null), uo = be((e) => {
|
|
1313
1354
|
po(e);
|
|
1314
1355
|
}, []);
|
|
1315
|
-
|
|
1316
|
-
|
|
1356
|
+
ye(() => {
|
|
1357
|
+
z.prefetch([z.getActive(), D]).catch((e) => {
|
|
1317
1358
|
console.warn("Icons could not be loaded:", e);
|
|
1318
1359
|
});
|
|
1319
1360
|
}, []);
|
|
1320
|
-
const mo =
|
|
1321
|
-
mo.current || (mo.current =
|
|
1322
|
-
const go =
|
|
1323
|
-
const t =
|
|
1324
|
-
t && t !==
|
|
1325
|
-
}, []), ko =
|
|
1361
|
+
const mo = xe(null);
|
|
1362
|
+
mo.current || (mo.current = Yt());
|
|
1363
|
+
const go = xe(null), ho = be(() => go.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? mo.current.promise, []), fo = re(async (e) => {
|
|
1364
|
+
const t = it.current;
|
|
1365
|
+
t && t !== st.getActive() && await st.setActive(t), await V.DefaultCommandCatalogService.prefetch(t ?? void 0), to(e), go.current = e.source, mo.current.settled || mo.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
1366
|
+
}, []), ko = xe(null), bo = be((e) => {
|
|
1326
1367
|
let t = null, r = {
|
|
1327
1368
|
readOnly: !0,
|
|
1328
|
-
...
|
|
1369
|
+
...le
|
|
1329
1370
|
};
|
|
1330
|
-
return
|
|
1371
|
+
return le?.hidden || (t = _e(o, {
|
|
1331
1372
|
...r,
|
|
1332
1373
|
style: {
|
|
1333
1374
|
maxWidth: "100%",
|
|
1334
|
-
...
|
|
1375
|
+
...le?.style
|
|
1335
1376
|
},
|
|
1336
|
-
workbook: e.workbook ??
|
|
1377
|
+
workbook: e.workbook ?? Oe.current,
|
|
1337
1378
|
ref: ko,
|
|
1338
1379
|
title: ao,
|
|
1339
1380
|
modified: _t,
|
|
1340
|
-
encrypted:
|
|
1381
|
+
encrypted: Ht,
|
|
1341
1382
|
placeHolder: tt,
|
|
1342
1383
|
onTitleChange: (e) => {
|
|
1343
|
-
no(e),
|
|
1384
|
+
no(e), le?.onTitleChange?.(e);
|
|
1344
1385
|
}
|
|
1345
|
-
})),
|
|
1386
|
+
})), _e(Et, {
|
|
1346
1387
|
...e,
|
|
1347
1388
|
logo: N,
|
|
1348
1389
|
mainElement: t,
|
|
@@ -1353,26 +1394,26 @@ var Xt = () => {
|
|
|
1353
1394
|
N,
|
|
1354
1395
|
ao,
|
|
1355
1396
|
_t,
|
|
1356
|
-
|
|
1357
|
-
|
|
1397
|
+
Ht,
|
|
1398
|
+
le,
|
|
1358
1399
|
B,
|
|
1359
1400
|
q
|
|
1360
1401
|
]);
|
|
1361
|
-
|
|
1362
|
-
const e =
|
|
1402
|
+
ye(() => {
|
|
1403
|
+
const e = Oe.current;
|
|
1363
1404
|
if (!e) return;
|
|
1364
1405
|
const t = (t) => {
|
|
1365
|
-
(t.ctrlKey || t.metaKey || "native" !==
|
|
1406
|
+
(t.ctrlKey || t.metaKey || "native" !== Q.getWheelOwner(t, e)) && t.preventDefault();
|
|
1366
1407
|
};
|
|
1367
1408
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
1368
1409
|
e.removeEventListener("wheel", t);
|
|
1369
1410
|
};
|
|
1370
|
-
}, [
|
|
1371
|
-
const [yo, wo] =
|
|
1372
|
-
|
|
1373
|
-
wo(
|
|
1374
|
-
}, [
|
|
1375
|
-
const xo =
|
|
1411
|
+
}, [Qt]);
|
|
1412
|
+
const [yo, wo] = ve(null);
|
|
1413
|
+
ye(() => {
|
|
1414
|
+
wo(Qt?.source?.getCommandScope?.() ?? null);
|
|
1415
|
+
}, [Qt]);
|
|
1416
|
+
const xo = we(() => ({
|
|
1376
1417
|
"& .SnackbarContainer-root": { position: "absolute !important" },
|
|
1377
1418
|
"& .notistack-SnackbarContainer > div": { maxWidth: "min(100%, 720px)" },
|
|
1378
1419
|
"& .notistack-Snackbar": { minWidth: "unset" },
|
|
@@ -1385,11 +1426,11 @@ var Xt = () => {
|
|
|
1385
1426
|
whiteSpace: "pre-wrap"
|
|
1386
1427
|
},
|
|
1387
1428
|
"*": { userSelect: "none" }
|
|
1388
|
-
}), []), [vo, Co] =
|
|
1389
|
-
|
|
1429
|
+
}), []), [vo, Co] = ve(null), [, Do] = ce(null, !1);
|
|
1430
|
+
ye(() => {
|
|
1390
1431
|
Do(null != vo);
|
|
1391
1432
|
}, [vo, Do]);
|
|
1392
|
-
const So =
|
|
1433
|
+
const So = be((e) => x({
|
|
1393
1434
|
model: St,
|
|
1394
1435
|
side: v,
|
|
1395
1436
|
...e,
|
|
@@ -1398,42 +1439,45 @@ var Xt = () => {
|
|
|
1398
1439
|
St,
|
|
1399
1440
|
v,
|
|
1400
1441
|
y
|
|
1401
|
-
]), Wo =
|
|
1402
|
-
Wo.current = r,
|
|
1442
|
+
]), Wo = xe(r);
|
|
1443
|
+
Wo.current = r, ae(t, () => ({
|
|
1403
1444
|
isStudioElement: () => !0,
|
|
1404
1445
|
save: (e) => {
|
|
1405
|
-
const t =
|
|
1446
|
+
const t = zt.current;
|
|
1406
1447
|
return t ? t(e) : Promise.reject(/* @__PURE__ */ new Error("The studio cannot save: no workbook, or the backing store cannot write."));
|
|
1407
1448
|
},
|
|
1408
|
-
getWorkbookElement: () =>
|
|
1449
|
+
getWorkbookElement: () => Oe.current,
|
|
1409
1450
|
getWorkbook: () => so.current ?? null,
|
|
1410
|
-
isDirty: () =>
|
|
1451
|
+
isDirty: () => Vt.current?.isDirty() ?? !1,
|
|
1411
1452
|
getEditable: () => $t.current,
|
|
1412
1453
|
getFormulaBarElement: () => Le.current ?? null,
|
|
1413
|
-
focus: () =>
|
|
1414
|
-
whenReady: () => (wt.current || (wt.current =
|
|
1415
|
-
getWorkbookState: () =>
|
|
1416
|
-
retry: () =>
|
|
1454
|
+
focus: () => Oe.current?.focus(),
|
|
1455
|
+
whenReady: () => (wt.current || (wt.current = Yt()), wt.current.promise),
|
|
1456
|
+
getWorkbookState: () => Xt.current,
|
|
1457
|
+
retry: () => bt((e) => e + 1)
|
|
1417
1458
|
}), [], r);
|
|
1418
|
-
const Eo =
|
|
1459
|
+
const Eo = xe(!1), To = re((e, t) => {
|
|
1419
1460
|
t === Ft.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
1420
|
-
t === Ft.current && (Eo.current = Wo.current?.contains(document.activeElement) ?? !0,
|
|
1461
|
+
t === Ft.current && (Eo.current = Wo.current?.contains(document.activeElement) ?? !0, Wt(t), fo(e));
|
|
1421
1462
|
}));
|
|
1422
1463
|
}, []);
|
|
1423
|
-
|
|
1424
|
-
Eo.current && (Eo.current = !1,
|
|
1464
|
+
ye(() => {
|
|
1465
|
+
Eo.current && (Eo.current = !1, Oe.current?.focus());
|
|
1425
1466
|
}, [St]);
|
|
1426
|
-
const Fo =
|
|
1427
|
-
const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" ===
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1467
|
+
const Fo = be((e) => {
|
|
1468
|
+
const { ref: t, ...o } = e, r = dt ? ct.dark : ct.light, n = "error" === Ct.status && k ? _e(J, {
|
|
1469
|
+
render: k,
|
|
1470
|
+
props: {
|
|
1471
|
+
...b,
|
|
1472
|
+
style: {
|
|
1473
|
+
width: "100%",
|
|
1474
|
+
height: "100%",
|
|
1475
|
+
...b?.style
|
|
1476
|
+
},
|
|
1477
|
+
error: Ct.error
|
|
1478
|
+
}
|
|
1435
1479
|
}) : null;
|
|
1436
|
-
if (n && !St) return
|
|
1480
|
+
if (n && !St) return _e(Ye, {
|
|
1437
1481
|
style: {
|
|
1438
1482
|
width: "100%",
|
|
1439
1483
|
height: "100%",
|
|
@@ -1446,80 +1490,89 @@ var Xt = () => {
|
|
|
1446
1490
|
});
|
|
1447
1491
|
let l = null;
|
|
1448
1492
|
if (St) {
|
|
1449
|
-
const e = St, n = e.getView(), a =
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
style: {
|
|
1455
|
-
marginTop: r.spacing(u ? .5 : .25),
|
|
1456
|
-
marginLeft: r.spacing(1),
|
|
1457
|
-
marginRight: r.spacing(1),
|
|
1458
|
-
marginBottom: r.spacing(u ? .5 : .75)
|
|
1459
|
-
},
|
|
1460
|
-
workbook: e,
|
|
1461
|
-
editable: Ot ?? void 0,
|
|
1462
|
-
placement: Ve,
|
|
1463
|
-
...fe,
|
|
1464
|
-
propsNamedCollectionEditor: {
|
|
1465
|
-
restoreFocus: (e) => s?.focus(e),
|
|
1466
|
-
...fe?.propsNamedCollectionEditor
|
|
1493
|
+
const e = St, n = e.getView(), a = fe ?? n?.isShowFormulaBar(), i = Ae ?? n?.isShowStatusBar(), s = Qt?.source ?? Oe.current, d = _e(J, {
|
|
1494
|
+
render: void 0 === Ne ? bo : Ne,
|
|
1495
|
+
props: {
|
|
1496
|
+
workbook: s,
|
|
1497
|
+
...je
|
|
1467
1498
|
}
|
|
1468
|
-
})
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1499
|
+
}), g = "bottom" === Be, h = a ? _e(J, {
|
|
1500
|
+
render: void 0 === Ce ? p : Ce,
|
|
1501
|
+
props: {
|
|
1502
|
+
ref: Le,
|
|
1503
|
+
style: {
|
|
1504
|
+
marginTop: r.spacing(g ? .5 : .25),
|
|
1505
|
+
marginLeft: r.spacing(1),
|
|
1506
|
+
marginRight: r.spacing(1),
|
|
1507
|
+
marginBottom: r.spacing(g ? .5 : .75)
|
|
1508
|
+
},
|
|
1509
|
+
workbook: e,
|
|
1510
|
+
editable: Mt ?? void 0,
|
|
1511
|
+
placement: Be,
|
|
1512
|
+
...ke,
|
|
1513
|
+
propsNamedCollectionEditor: {
|
|
1514
|
+
restoreFocus: (e) => s?.focus(e),
|
|
1515
|
+
...ke?.propsNamedCollectionEditor
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}) : null, f = i ? _e(J, {
|
|
1519
|
+
render: void 0 === Re ? u : Re,
|
|
1520
|
+
props: {
|
|
1521
|
+
childrenEnd: lo,
|
|
1522
|
+
...Ie
|
|
1523
|
+
}
|
|
1524
|
+
}) : null, k = (e, r) => _e(c, {
|
|
1525
|
+
...he,
|
|
1473
1526
|
tabIndex: 0,
|
|
1474
|
-
autoFocus: !r &&
|
|
1527
|
+
autoFocus: !r && ne,
|
|
1475
1528
|
workbook: e,
|
|
1476
|
-
editable: r ? void 0 :
|
|
1477
|
-
focusNameBox: r ? void 0 :
|
|
1478
|
-
prefetch: !r &&
|
|
1479
|
-
ref: r ? Me :
|
|
1529
|
+
editable: r ? void 0 : Mt ?? void 0,
|
|
1530
|
+
focusNameBox: r ? void 0 : $e,
|
|
1531
|
+
prefetch: !r && m,
|
|
1532
|
+
ref: r ? Me : ft([t, Oe]),
|
|
1480
1533
|
onWorkbookLoad: r ? (t) => To(t, e) : fo,
|
|
1481
1534
|
onKeyDown: (e) => {
|
|
1482
1535
|
C?.(e);
|
|
1483
1536
|
},
|
|
1484
|
-
propsWorkbookLoading:
|
|
1485
|
-
renderWorkbookLoading:
|
|
1537
|
+
propsWorkbookLoading: ge,
|
|
1538
|
+
renderWorkbookLoading: null,
|
|
1486
1539
|
style: r ? {
|
|
1487
|
-
...
|
|
1540
|
+
...he?.style,
|
|
1488
1541
|
position: "absolute",
|
|
1489
1542
|
inset: 0,
|
|
1490
1543
|
visibility: "hidden"
|
|
1491
1544
|
} : {
|
|
1492
1545
|
flex: "1 1 100%",
|
|
1493
1546
|
minHeight: 0,
|
|
1494
|
-
...
|
|
1547
|
+
...he?.style
|
|
1495
1548
|
},
|
|
1496
1549
|
onContextMenu: (e) => e.preventDefault(),
|
|
1497
1550
|
...r ? null : o
|
|
1498
1551
|
}, e.getId());
|
|
1499
|
-
l =
|
|
1552
|
+
l = _e("div", {
|
|
1500
1553
|
style: {
|
|
1501
1554
|
display: "flex",
|
|
1502
1555
|
flexDirection: "column",
|
|
1503
1556
|
flex: "1 1 100%",
|
|
1504
1557
|
minWidth: 0,
|
|
1505
1558
|
minHeight: 0,
|
|
1506
|
-
...
|
|
1559
|
+
...R({
|
|
1507
1560
|
window: r.palette.background.default,
|
|
1508
1561
|
windowText: r.palette.text.primary
|
|
1509
1562
|
})
|
|
1510
1563
|
},
|
|
1511
|
-
children:
|
|
1512
|
-
toolbar:
|
|
1513
|
-
formulaBar:
|
|
1564
|
+
children: qt(Be, {
|
|
1565
|
+
toolbar: d,
|
|
1566
|
+
formulaBar: h,
|
|
1514
1567
|
statusBar: f,
|
|
1515
|
-
main:
|
|
1568
|
+
main: _e(Ut, {
|
|
1516
1569
|
taskSide: v,
|
|
1517
|
-
persistKey:
|
|
1518
|
-
sidebarElement: vo ?
|
|
1570
|
+
persistKey: Jt,
|
|
1571
|
+
sidebarElement: vo ? _e(V.CommandScopeProvider, {
|
|
1519
1572
|
scope: yo,
|
|
1520
1573
|
children: vo
|
|
1521
1574
|
}) : void 0,
|
|
1522
|
-
mainElement:
|
|
1575
|
+
mainElement: Ke("div", {
|
|
1523
1576
|
style: {
|
|
1524
1577
|
position: "relative",
|
|
1525
1578
|
display: "flex",
|
|
@@ -1528,7 +1581,7 @@ var Xt = () => {
|
|
|
1528
1581
|
minWidth: 0,
|
|
1529
1582
|
minHeight: 0
|
|
1530
1583
|
},
|
|
1531
|
-
children: [[k(St, !1), Tt ? k(Tt, !0) : null],
|
|
1584
|
+
children: [[k(St, !1), Tt ? k(Tt, !0) : null], _e(He, {
|
|
1532
1585
|
ref: uo,
|
|
1533
1586
|
sx: {
|
|
1534
1587
|
position: "absolute",
|
|
@@ -1545,14 +1598,17 @@ var Xt = () => {
|
|
|
1545
1598
|
})
|
|
1546
1599
|
});
|
|
1547
1600
|
}
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1601
|
+
const d = !Qt && ue ? _e(J, {
|
|
1602
|
+
render: ue,
|
|
1603
|
+
props: { ...ge }
|
|
1604
|
+
}) : null;
|
|
1605
|
+
return Ke(Ye, {
|
|
1550
1606
|
sx: xo,
|
|
1551
1607
|
style: {
|
|
1552
1608
|
width: "100%",
|
|
1553
|
-
height:
|
|
1609
|
+
height: Ue ? `calc(100% - ${Ue}px)` : "100%",
|
|
1554
1610
|
transform: qe ? `translateY(${qe}px)` : void 0,
|
|
1555
|
-
overscrollBehavior:
|
|
1611
|
+
overscrollBehavior: Ve ? "none" : void 0,
|
|
1556
1612
|
position: "absolute",
|
|
1557
1613
|
display: "flex",
|
|
1558
1614
|
alignItems: "stretch",
|
|
@@ -1565,7 +1621,7 @@ var Xt = () => {
|
|
|
1565
1621
|
variant: s,
|
|
1566
1622
|
children: [
|
|
1567
1623
|
l,
|
|
1568
|
-
n ?
|
|
1624
|
+
n ? _e(Ye, {
|
|
1569
1625
|
style: {
|
|
1570
1626
|
position: "absolute",
|
|
1571
1627
|
inset: 0,
|
|
@@ -1575,7 +1631,7 @@ var Xt = () => {
|
|
|
1575
1631
|
},
|
|
1576
1632
|
children: n
|
|
1577
1633
|
}) : null,
|
|
1578
|
-
|
|
1634
|
+
d ? _e("div", {
|
|
1579
1635
|
style: {
|
|
1580
1636
|
position: "absolute",
|
|
1581
1637
|
inset: 0,
|
|
@@ -1584,20 +1640,19 @@ var Xt = () => {
|
|
|
1584
1640
|
justifyContent: "center",
|
|
1585
1641
|
background: `var(--sxl-color-base-100, ${dt ? "#121212" : "#fff"})`
|
|
1586
1642
|
},
|
|
1587
|
-
children:
|
|
1643
|
+
children: d
|
|
1588
1644
|
}) : null
|
|
1589
1645
|
]
|
|
1590
1646
|
});
|
|
1591
1647
|
}, [
|
|
1592
|
-
|
|
1648
|
+
Ct,
|
|
1593
1649
|
St,
|
|
1594
1650
|
Tt,
|
|
1595
|
-
|
|
1651
|
+
Qt,
|
|
1596
1652
|
ao,
|
|
1597
|
-
|
|
1598
|
-
me,
|
|
1599
|
-
Fo,
|
|
1653
|
+
ue,
|
|
1600
1654
|
ge,
|
|
1655
|
+
he,
|
|
1601
1656
|
a,
|
|
1602
1657
|
i,
|
|
1603
1658
|
s,
|
|
@@ -1609,23 +1664,23 @@ var Xt = () => {
|
|
|
1609
1664
|
vo,
|
|
1610
1665
|
v,
|
|
1611
1666
|
yo,
|
|
1612
|
-
he,
|
|
1613
1667
|
fe,
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
Pe,
|
|
1619
|
-
Re,
|
|
1668
|
+
ke,
|
|
1669
|
+
Ce,
|
|
1670
|
+
Be,
|
|
1671
|
+
Mt,
|
|
1620
1672
|
Ae,
|
|
1673
|
+
Ie,
|
|
1674
|
+
Re,
|
|
1621
1675
|
je,
|
|
1622
|
-
|
|
1623
|
-
|
|
1676
|
+
Ne,
|
|
1677
|
+
Ve,
|
|
1678
|
+
Ue,
|
|
1624
1679
|
qe,
|
|
1625
1680
|
ct,
|
|
1626
1681
|
dt
|
|
1627
1682
|
]);
|
|
1628
|
-
let
|
|
1683
|
+
let Ao = _e(yt, {
|
|
1629
1684
|
maxSnack: 3,
|
|
1630
1685
|
domRoot: co ?? void 0,
|
|
1631
1686
|
anchorOrigin: {
|
|
@@ -1634,56 +1689,56 @@ var Xt = () => {
|
|
|
1634
1689
|
},
|
|
1635
1690
|
autoHideDuration: 3500,
|
|
1636
1691
|
onClose: (e, t, o) => {
|
|
1637
|
-
|
|
1692
|
+
Oe.current?.focus();
|
|
1638
1693
|
},
|
|
1639
|
-
Components: { error:
|
|
1694
|
+
Components: { error: Dt },
|
|
1640
1695
|
iconVariant: {
|
|
1641
|
-
success:
|
|
1696
|
+
success: _e(Ze, {
|
|
1642
1697
|
style: { marginRight: "8px" },
|
|
1643
|
-
children:
|
|
1698
|
+
children: _e("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" })
|
|
1644
1699
|
}),
|
|
1645
|
-
error:
|
|
1700
|
+
error: _e(U, {
|
|
1646
1701
|
iconKey: "ErrorAlert",
|
|
1647
1702
|
style: { marginRight: "8px" }
|
|
1648
1703
|
})
|
|
1649
1704
|
},
|
|
1650
|
-
children:
|
|
1705
|
+
children: _e(A, {
|
|
1651
1706
|
workbook: St,
|
|
1652
|
-
children:
|
|
1707
|
+
children: _e(W, {
|
|
1653
1708
|
renderArea: So,
|
|
1654
1709
|
onUpdateArea: (e) => {
|
|
1655
1710
|
Co(e);
|
|
1656
1711
|
},
|
|
1657
|
-
children:
|
|
1712
|
+
children: _e(Te, { children: _e(Lt, { children: _e(te, { children: _e(X, { children: _e(Nt, {
|
|
1658
1713
|
workbook: St,
|
|
1659
1714
|
initialCommandAnchor: ho,
|
|
1660
|
-
renderWorkbook:
|
|
1661
|
-
setWorkbook:
|
|
1715
|
+
renderWorkbook: Fo,
|
|
1716
|
+
setWorkbook: It,
|
|
1662
1717
|
titleWorkbook: ao,
|
|
1663
1718
|
setWorkbookTitle: no,
|
|
1664
1719
|
refDocumentTitle: ko,
|
|
1665
|
-
isDirty:
|
|
1666
|
-
refSave:
|
|
1720
|
+
isDirty: Gt,
|
|
1721
|
+
refSave: zt,
|
|
1667
1722
|
host: r
|
|
1668
1723
|
}) }) }) }) })
|
|
1669
1724
|
})
|
|
1670
1725
|
})
|
|
1671
1726
|
});
|
|
1672
|
-
return
|
|
1727
|
+
return Ao = Ke(et, {
|
|
1673
1728
|
theme: dt ? ct.dark : ct.light,
|
|
1674
1729
|
children: [
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1730
|
+
oe ? _e(Ge, {}) : null,
|
|
1731
|
+
_e("style", { children: pt }),
|
|
1732
|
+
_e("style", { children: ut }),
|
|
1733
|
+
_e(We, {
|
|
1679
1734
|
themeScopeClass: n,
|
|
1680
1735
|
themeSurface: "app",
|
|
1681
1736
|
themeMode: rt,
|
|
1682
|
-
children:
|
|
1737
|
+
children: Ao
|
|
1683
1738
|
})
|
|
1684
1739
|
]
|
|
1685
|
-
}),
|
|
1740
|
+
}), Ao;
|
|
1686
1741
|
}));
|
|
1687
|
-
|
|
1688
|
-
var
|
|
1689
|
-
export {
|
|
1742
|
+
Qt.displayName = "EagerStudio";
|
|
1743
|
+
var eo = (e) => _e(Kt, { ...e });
|
|
1744
|
+
export { Qt as EagerStudio, Qt as default };
|