@sheetxl/studio-mui 0.8.0-beta.18 → 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/{D2ujgcJO_g-Wz6tL.mjs → 3pGM81cqNJ8DDWp_.mjs} +2 -2
- package/browser/esm/{C7BnTVpLGgX_kcmJ.mjs → 8nIjNjh3EYKTlgnw.mjs} +8 -8
- package/browser/esm/{BJcmwuzslRchDgSF.mjs → B0NC2aGu9jgdelTz.mjs} +2 -2
- package/browser/esm/{C7X9krI43CU4eg6-.mjs → B2nWe09MDoBLwo_k.mjs} +1 -1
- package/browser/esm/{DDv_r6PgL9U5-R5y.mjs → B45dW1aZ8s9mufl_.mjs} +2 -2
- package/browser/esm/{1i2GOCzP_uwuwLU5.mjs → B83kgckQsC0aY0NE.mjs} +5 -5
- package/browser/esm/{oBc8AkyrAEssabOC.mjs → B95vnhVq0KnbcA_Y.mjs} +1 -1
- package/browser/esm/{8bZUXEWSZi9k_S1E.mjs → BBbQjMATTPG16Lr9.mjs} +1 -1
- package/browser/esm/{fC6MZtheeHoJmQaQ.mjs → BC0b8N0c-Yenu46_.mjs} +5 -5
- package/browser/esm/{B2a4wwMYmYAKCzxQ.mjs → BCJ3o3M62lsBKbae.mjs} +1 -1
- package/browser/esm/{D5UYA-ocaqXccOz9.mjs → BJY1GNwcHIjXI6Dy.mjs} +1 -1
- package/browser/esm/{D_pfOujnkunwUDXo.mjs → BLZvY9XJL32hg1F-.mjs} +1 -1
- package/browser/esm/{CihxkgnUf8nPi34_.mjs → BMfZqSxbgNWsKjqY.mjs} +2 -2
- package/browser/esm/{DbOR86fbiNhrRKf7.mjs → BQjxD6zW8juryZHL.mjs} +2 -2
- package/browser/esm/{BZR-NXwIGzPYWmXd.mjs → BRfhOI9RpekZBcrO.mjs} +6 -6
- package/browser/esm/{yH10EsR9eo9Zthsc.mjs → BSmY1OUM8_F-moJ0.mjs} +4 -4
- package/browser/esm/{iQrP_vhW_sp4s71r.mjs → BUr5VGHQCYpQeran.mjs} +5 -5
- package/browser/esm/{BBxxJZF2EJ8Ir8C8.mjs → B_Vk87a5g9DxCz2O.mjs} +5 -5
- package/browser/esm/{BoH6LxJaD65sFjEK.mjs → Bece9zSczcJRj6iF.mjs} +2 -2
- package/browser/esm/{B3Nt_WBc1l3GCBgv.mjs → BgxFFejwP2YXqYGy.mjs} +2 -2
- package/browser/esm/{B6vJepS5vmDS-6yI.mjs → BhHlzIhnBJqfHSKP.mjs} +1649 -1554
- package/browser/esm/{C6uAkVUP0yIq5row.mjs → Bik5wGC75z2BvotX.mjs} +3 -3
- package/browser/esm/{Bzmdnbpbcxg0R51k.mjs → BjdZOM-UvDoJaYFo.mjs} +2 -2
- package/browser/esm/{BSCHqmWtrxi7hodH.mjs → Bkw1PteOYKjHz41s.mjs} +3 -3
- package/browser/esm/{BDrrR6bEk1vxHbzj.mjs → BlE9-hSf71ZoAM0M.mjs} +1 -1
- package/browser/esm/{YJgzYYp1xMzxkAHE.mjs → BsBeOKW7EhSZ9E5v.mjs} +4 -4
- package/browser/esm/{DhlfJNOvN7zFLViZ.mjs → Bscb3ZfordY8Cyzo.mjs} +2 -2
- package/browser/esm/{DLal4rukkujtOXW1.mjs → C8FnFcYHBHv7mRsK.mjs} +3 -3
- package/browser/esm/{Djn6orQ4oXLrHTGI.mjs → C8sDMsI-mfPVArSI.mjs} +2 -2
- package/browser/esm/{C7TqRPMpJZbA_OOn.mjs → CDuVmLEi65HzZ-mo.mjs} +2 -2
- package/browser/esm/{CH8ePenim5VvX--K.mjs → CEjud4n-8EggO2Im.mjs} +1 -1
- package/browser/esm/{CB5nX8EbOct6degp.mjs → CLVbEJee8eD3qMJR.mjs} +8 -8
- package/browser/esm/{D9f2rU9s6eWjt1U6.mjs → CMEIC_DYikQRzC9L.mjs} +256 -255
- package/browser/esm/{DqzQr8LRt193aj1o.mjs → CUi2AR-pqVbpTLq4.mjs} +1 -1
- package/browser/esm/{C8nsVSKrp_GHhYr3.mjs → CdFz-uXCDYgv_iOM.mjs} +1 -1
- package/browser/esm/{CDQnDyN5NoiSHowu.mjs → Cmm97cKH5IugcalW.mjs} +1 -1
- package/browser/esm/{BFlxgpwpozp1m6o7.mjs → Cp6H28QXgHRfTJ_n.mjs} +4 -4
- package/browser/esm/{D6S-Dg65OHGNEHcb.mjs → CtJpnIXloxW2qFGC.mjs} +4 -4
- package/browser/esm/{CQMlZxOt24bgmvvv.mjs → CzGACZ7X-3Z7pXxH.mjs} +2 -2
- package/browser/esm/D1EKHirhjR-MmeXo.mjs +8 -0
- package/browser/esm/{CuDRQ-pNBc-ktVy_.mjs → D3mfQHjRbA8iPLtv.mjs} +2 -2
- package/browser/esm/{BPzHePn2CiBErUXC.mjs → D4LGe9Sxrf-egOPN.mjs} +1 -1
- package/browser/esm/{CTvpV8rf9fcWohYU.mjs → D5fCoDA2NoOFViRy.mjs} +4 -4
- package/browser/esm/{C3HntWkKAjnyC3CV.mjs → D9ObD_aKgMWUPN0P.mjs} +4 -4
- package/browser/esm/{Cjy-cHM-DR-Gqk-n.mjs → DApXGOAXNdSZdYbT.mjs} +2 -2
- package/browser/esm/{DG_arYvuGh2bHE-N.mjs → DIC6M937GziE0_9l.mjs} +2 -2
- package/browser/esm/{BHlHoZ7Bg-knm5oa.mjs → DJTesgYNvoQv2Obl.mjs} +4 -4
- package/browser/esm/{lip_SyDs4iBRTs_8.mjs → DM9uGmTSDdyoRyRM.mjs} +3 -3
- package/browser/esm/{ZHTi6N8OUU6QO1QU.mjs → DMWgj1E1kYrTdAnf.mjs} +3 -3
- package/browser/esm/{By3lLqidoNB3DjVD.mjs → DeJenn9MUICppyMl.mjs} +2 -2
- package/browser/esm/{BmLvGcUzmP-znGgq.mjs → DhXTTl8_kMjearig.mjs} +1 -1
- package/browser/esm/Dp2cNfLOjOTs8V8x.mjs +267 -0
- package/browser/esm/{06WRKaJNHc_txDxr.mjs → Dvjjsols1lZ1qITL.mjs} +1 -1
- package/browser/esm/{fYmulvJHp8Wp0wmY.mjs → M-Rp0gM6kZb12Kim.mjs} +1 -1
- package/browser/esm/index.mjs +1074 -299
- package/browser/esm/{DYji4vVp9fnHsk9m.mjs → mBFrzCJis1-EVKL7.mjs} +1 -1
- package/browser/esm/{DXlf0PkvZgV_b6uG.mjs → p4Q_TpZ_s60_L7Ux.mjs} +1 -1
- package/browser/esm/{Cz5qKECCbacDmibP.mjs → s1DZ7iQHOb3R9G7m.mjs} +2 -2
- package/browser/esm/{CM6VmN79n4MRjipP.mjs → v2EnJ1fOZEXqAVlO.mjs} +2 -2
- package/browser/esm/{C2NKwzWjiJFJGukV.mjs → z7Sn4ncaTwiv23Fv.mjs} +4 -4
- package/node/esm/{DSmg7M3yRDDZkUBB.mjs → 9pdLzab-4aEax8pG.mjs} +3 -3
- package/node/esm/{DGv981h_d8G1Z3Zs.mjs → B16pFUEecGy6x7Sf.mjs} +2 -2
- package/node/esm/{DyRNwCwOwz60vRGA.mjs → B47JoJYzEtS6ivoC.mjs} +1 -1
- package/node/esm/{By_evGE-PBrgdKI6.mjs → B90Z94PB2O0Upt5h.mjs} +1 -1
- package/node/esm/{fX-2Y2Fd273TLPO2.mjs → BB5L5Y9qCXXDTqg-.mjs} +1 -1
- package/node/esm/{CpQlurB0oZqjuhgj.mjs → BUzCcr3jpBtj-9vH.mjs} +13 -13
- package/node/esm/{reyCfp4xOOgMNc9U.mjs → BdiSsEIgA0Pvd6bN.mjs} +1 -1
- package/node/esm/{Da-N8ynNfqk6THYD.mjs → BjEZxA3zF89uf47R.mjs} +188 -188
- package/node/esm/{Cs1GzAp4rTyQafpi.mjs → BjwbCQEJ3tllXtIc.mjs} +134 -130
- package/node/esm/{CLEK4zGd0mIKhiKV.mjs → Bkeg-KR5CHgIgCHZ.mjs} +1 -1
- package/node/esm/{oE4HsQTQ_4VVSUwb.mjs → BpJ0H2dpKtg21Mtw.mjs} +3 -3
- package/node/esm/{C7fI-BqM4p4WJS0l.mjs → BulNRuKygH0oLixF.mjs} +1 -1
- package/node/esm/{CFjes3wFNTOeB90c.mjs → CASMs7A6E_qrcIMk.mjs} +1 -1
- package/node/esm/{CBQ1hoazyQvlpJyI.mjs → CDbGB8TtNQhkBXqI.mjs} +1 -1
- package/node/esm/{DVc_bJM9diK0winM.mjs → CF7peiUJfmOOPRFn.mjs} +1 -1
- package/node/esm/{B9duSJ-i0VqTO5_t.mjs → CGZ_p4-_DZzlvhMG.mjs} +2 -2
- package/node/esm/{t1e3-saAZc_bj152.mjs → CHaPiJTvsCR2Z3sC.mjs} +4 -4
- package/node/esm/{DVgkD5LxGRgOyKQ6.mjs → CIAX0QoWY_xslYfv.mjs} +2 -2
- package/node/esm/{JOrOb7X9oZ8Xv7Gx.mjs → CPHJFMyFxjErRLvR.mjs} +2 -2
- package/node/esm/{Bi6LOMeX3-44pU1z.mjs → CY-1AXXWawiEXRDw.mjs} +3 -3
- package/node/esm/{FutOJu4AGdDHpujk.mjs → CYP_F_suVtfwdtBl.mjs} +2 -2
- package/node/esm/{2J7fdwNic7JOS8e6.mjs → ClDMRc2s0BBAKhHL.mjs} +5 -5
- package/node/esm/{DZYhnjts845P5iUY.mjs → D7-QWEykZGrgV_xs.mjs} +2 -2
- package/node/esm/{Djcn2kxMw3dUSbB7.mjs → D9Wle8u7Cs7tigPT.mjs} +4 -4
- package/node/esm/{D4g9aG5XNbSgg-3C.mjs → DCDqfmTkvT0D2Z5h.mjs} +2 -2
- package/node/esm/{CUtSgTUW09Qh72ST.mjs → DGzJYFzo02DBhqYC.mjs} +2 -2
- package/node/esm/DN7uFaCytRrXMJpu.mjs +267 -0
- package/node/esm/{DefzzmrMXN21wmmy.mjs → DSAtnDj1sXUS0LYj.mjs} +1 -1
- package/node/esm/{CIjBJgRnP7WbRBnA.mjs → DV5zGC0IZiv_lqwa.mjs} +1 -1
- package/node/esm/{CqYMLDeBPC2rGTWV.mjs → DhKvwk063hs0qEKD.mjs} +1 -1
- package/node/esm/{DiAOxoMTibKoi4gs.mjs → DiCErpAUUdV9xdwZ.mjs} +1 -1
- package/node/esm/{rLsP_BPGB2QEWTs8.mjs → Dp-aLdsFlu4Aw1Li.mjs} +4 -4
- package/node/esm/{5ifD6QRZEd3huWYb.mjs → DqZ4g3pHAK7bKVvG.mjs} +1 -1
- package/node/esm/{B4sLVPEb397EGucl.mjs → DssxcB0PnN-PgzzK.mjs} +1 -1
- package/node/esm/{CNZKUMbD_hGSw6do.mjs → DzwUDrXp4uuQ6bv0.mjs} +2 -2
- package/node/esm/{CUPV64pU0m9AaOfx.mjs → _gNQ05R589In7vSm.mjs} +3 -3
- package/node/esm/{NoB9LePsgjsq24TO.mjs → e_kM3nD2aaiphEoS.mjs} +2 -2
- package/node/esm/{DIqIt8CBVGmlUOmQ.mjs → i0R7voLYNUjkbop2.mjs} +1 -1
- package/node/esm/index.mjs +4586 -3716
- package/node/esm/{HLmlUPOPJh0q9Uym.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 +12 -0
- package/resources/locales/de/ui.msg.json +44 -0
- package/resources/locales/de/workbookAnomalies.cmd.json +14 -0
- package/resources/locales/en/groups.cmd.json +12 -0
- package/resources/locales/en/ui.msg.json +44 -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/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/externalLink/ExternalLinksPlugin.d.ts +1 -1
- package/types/src/format/FormatPlugin.d.ts +1 -6
- 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/table/TablePlugin.d.ts +1 -1
- package/browser/esm/UZFY5qdFE4QR1Agm.mjs +0 -212
- package/node/esm/DmjwVOK5INfbJZkW.mjs +0 -212
|
@@ -1,16 +1,16 @@
|
|
|
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 { B as e, E as t, F as n, H as r,
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
7
|
+
import { B as e, E as t, F as n, H as r, J as i, N as a, P as o, St as s, T as c, V as l, _t as u, at as d, d as f, g as p, ht as m, i as h, it as g, jt as _, r as v, st as y, t as b, x as ee } from "./BhHlzIhnBJqfHSKP.mjs";
|
|
8
|
+
import { t as x } from "./CdFz-uXCDYgv_iOM.mjs";
|
|
9
|
+
import { n as S, t as te } from "./mBFrzCJis1-EVKL7.mjs";
|
|
10
|
+
import { n as ne } from "./DM9uGmTSDdyoRyRM.mjs";
|
|
11
11
|
import { InputField as re } from "./index.mjs";
|
|
12
|
-
import { CommandRootProvider as C, DefaultTaskPaneRegistry as w, LogoNoPaddingIcon as ie,
|
|
13
|
-
import { Command as Te,
|
|
12
|
+
import { CommandRootProvider as C, DefaultTaskPaneRegistry as w, LogoNoPaddingIcon as ie, PivotTablePane as ae, SHAPE_ICON_PACK as oe, TaskPaneArea as se, TaskPaneKey as ce, TaskPaneProvider as le, ThemeStateDefaults as ue, ThemeStateKey as de, WorkbookIO as T, WorkbookProvider as fe, buildOOXMLThemeCSS as pe, createEditable as me, createSystemColorVars as he, registerMovablePane as ge, useDocThemes as _e, useModelSync as ve, useReferenceModeStore as ye, useResolvedWorkbook as be, useTaskPaneArea as xe, useWorkbookEncrypted as Se, useWorkbookName as Ce, useWorkbookSaveState as we } from "@sheetxl/react";
|
|
13
|
+
import { Command as Te, DefaultCommandButtonRegistry as Ee, DefaultIconService as De, DynamicIcon as Oe, LanguageStateKey as ke, NotifierType as E, ReactErrorBoundary as Ae, ReactNotifierProvider as je, ReactUtils as Me, RenderSlot as Ne, ScrollUtils as Pe, SplitPane as Fe, UncaughtErrorBoundary as Ie, createBusyHandle as Le, useCallbackRef as D, useFullscreen as Re, useImperativeElement as ze, useKeyboardResize as Be, useLanguage as Ve, useMeasure as He, useNotifier as Ue, usePersistentState as O, useResolvedThemeMode as We, useTokenThemeContext as Ge, useTranslator as k } from "@sheetxl/utils-react";
|
|
14
14
|
import A, { Component as Ke, Fragment as qe, cloneElement as Je, createElement as Ye, forwardRef as j, isValidElement as M, memo as N, useCallback as P, useContext as Xe, useEffect as F, useLayoutEffect as Ze, useMemo as I, useRef as L, useState as R } from "react";
|
|
15
15
|
import { AnimatedLoadingPanel as Qe, AnimatedTraversingEllipsisIcon as $e, CommandGroup as et, ExhibitDivider as tt, ExhibitFloatProvider as nt, ExhibitMenuItem as rt, ExhibitTooltip as it, ModalProvider as at, SelectedIcon as ot, SimpleTooltip as st, StackTrace as ct, createExhibitTheme as lt, hideLoadingPanel as ut, lazyModal as dt, lazyPanel as ft, showLoadingPanel as pt, useInputDialog as z, useLazyWindow as mt, useModal as ht, useOptionsDialog as gt } from "@sheetxl/utils-mui";
|
|
16
16
|
import { Fragment as _t, jsx as B, jsxs as V } from "react/jsx-runtime";
|
|
@@ -24,7 +24,7 @@ var Rt = Object.defineProperty, zt = (e, t) => {
|
|
|
24
24
|
enumerable: !0
|
|
25
25
|
});
|
|
26
26
|
return t || Rt(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
27
|
-
}, Bt = ft(q("studio:conditionalFormatDetailsTaskPane", () => import("./
|
|
27
|
+
}, Bt = ft(q("studio:conditionalFormatDetailsTaskPane", () => import("./CLVbEJee8eD3qMJR.mjs"), { select: (e) => ({ default: e.ConditionalFormatDetailsTaskPane }) }).load), Vt = ["lines"], Ht = /^[A-Za-z_\\][\w.\\]*$/, Ut = /^\$?[A-Za-z]{1,3}\$?\d+$/, Wt = (e) => {
|
|
28
28
|
let t = e?.getReferences() ?? null;
|
|
29
29
|
if (!e || !t || t.getCount() !== 1) return null;
|
|
30
30
|
let n = e.getExpression().trim();
|
|
@@ -674,7 +674,7 @@ var rr, ir, ar, or, sr, cr = N(nr), lr = Fn({ wrappedRoot: {
|
|
|
674
674
|
return Z({}, t, ((r = {})[n] = e[n], r));
|
|
675
675
|
}, {});
|
|
676
676
|
}(l);
|
|
677
|
-
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration,
|
|
677
|
+
}, [l]), p = c.open, m = c.SnackbarProps, h = c.TransitionComponent, g = c.TransitionProps, _ = c.transitionDuration, v = c.disableWindowBlurListener, y = c.content, b = an(c, [
|
|
678
678
|
"open",
|
|
679
679
|
"SnackbarProps",
|
|
680
680
|
"TransitionComponent",
|
|
@@ -688,41 +688,41 @@ var rr, ir, ar, or, sr, cr = N(nr), lr = Fn({ wrappedRoot: {
|
|
|
688
688
|
"onEntered",
|
|
689
689
|
"onExit",
|
|
690
690
|
"onExited"
|
|
691
|
-
]),
|
|
692
|
-
direction: (s =
|
|
691
|
+
]), ee = Z({
|
|
692
|
+
direction: (s = b.anchorOrigin, s.horizontal === "center" ? Wn[s.vertical] : Wn[s.horizontal]),
|
|
693
693
|
timeout: _
|
|
694
|
-
}, g),
|
|
695
|
-
typeof
|
|
696
|
-
var
|
|
694
|
+
}, g), x = y;
|
|
695
|
+
typeof x == "function" && (x = x(b.id, b.message));
|
|
696
|
+
var S = [
|
|
697
697
|
"onEnter",
|
|
698
698
|
"onEntered",
|
|
699
699
|
"onExit",
|
|
700
700
|
"onExited"
|
|
701
701
|
].reduce(function(t, n) {
|
|
702
702
|
var r;
|
|
703
|
-
return Z({}, t, ((r = {})[n] = qn([e.snack[n], e[n]],
|
|
703
|
+
return Z({}, t, ((r = {})[n] = qn([e.snack[n], e[n]], b.id), r));
|
|
704
704
|
}, {});
|
|
705
705
|
return A.createElement(Un, {
|
|
706
706
|
in: r,
|
|
707
|
-
onExited:
|
|
707
|
+
onExited: S.onExited
|
|
708
708
|
}, A.createElement(Zn, {
|
|
709
709
|
open: p,
|
|
710
|
-
id:
|
|
711
|
-
disableWindowBlurListener:
|
|
712
|
-
autoHideDuration:
|
|
713
|
-
className: Y(lr.wrappedRoot, f.root, f[Gn(
|
|
710
|
+
id: b.id,
|
|
711
|
+
disableWindowBlurListener: v,
|
|
712
|
+
autoHideDuration: b.autoHideDuration,
|
|
713
|
+
className: Y(lr.wrappedRoot, f.root, f[Gn(b.anchorOrigin)]),
|
|
714
714
|
SnackbarProps: m,
|
|
715
715
|
onClose: a
|
|
716
|
-
}, A.createElement(h, Object.assign({},
|
|
716
|
+
}, A.createElement(h, Object.assign({}, ee, {
|
|
717
717
|
appear: !0,
|
|
718
718
|
in: p,
|
|
719
|
-
onExit:
|
|
719
|
+
onExit: S.onExit,
|
|
720
720
|
onExited: o,
|
|
721
|
-
onEnter:
|
|
722
|
-
onEntered: qn([
|
|
721
|
+
onEnter: S.onEnter,
|
|
722
|
+
onEntered: qn([S.onEntered, function() {
|
|
723
723
|
e.snack.requestClose && a(null, "instructed", e.snack.id);
|
|
724
|
-
}],
|
|
725
|
-
}),
|
|
724
|
+
}], b.id)
|
|
725
|
+
}), x || A.createElement(d, Object.assign({}, b)))));
|
|
726
726
|
}, dr = {
|
|
727
727
|
default: 20,
|
|
728
728
|
dense: 4
|
|
@@ -926,7 +926,7 @@ var rr, ir, ar, or, sr, cr = N(nr), lr = Fn({ wrappedRoot: {
|
|
|
926
926
|
}, [n, l]), g = f?.message;
|
|
927
927
|
return !g && M(r) && (g = r), g || typeof r != "string" || (g = r), g ||= `Unknown Error: ${r}`, B($n, {
|
|
928
928
|
ref: t,
|
|
929
|
-
className:
|
|
929
|
+
className: x($.root, "error-snackbar"),
|
|
930
930
|
children: V(vt, {
|
|
931
931
|
className: $.card,
|
|
932
932
|
style: {
|
|
@@ -950,14 +950,14 @@ var rr, ir, ar, or, sr, cr = N(nr), lr = Fn({ wrappedRoot: {
|
|
|
950
950
|
children: [p ? B(U, {
|
|
951
951
|
"aria-label": c("toast.showMore"),
|
|
952
952
|
size: "small",
|
|
953
|
-
className:
|
|
953
|
+
className: x($.expand, { [$.expandOpen]: u }),
|
|
954
954
|
onClick: m,
|
|
955
|
-
children: B(
|
|
955
|
+
children: B(Oe, { iconKey: "ExpandMore" })
|
|
956
956
|
}) : null, B(U, {
|
|
957
957
|
size: "small",
|
|
958
958
|
className: $.expand,
|
|
959
959
|
onClick: h,
|
|
960
|
-
children: B(
|
|
960
|
+
children: B(Oe, {
|
|
961
961
|
iconKey: "Close",
|
|
962
962
|
style: { transform: "scale(0.8)" }
|
|
963
963
|
})
|
|
@@ -1008,7 +1008,7 @@ var br = B(() => {
|
|
|
1008
1008
|
})
|
|
1009
1009
|
});
|
|
1010
1010
|
}, {}), xr = N(j((e, t) => {
|
|
1011
|
-
let { workbook: n, className: r, logo: i = br, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] =
|
|
1011
|
+
let { workbook: n, className: r, logo: i = br, mainElement: a, startElement: o, endElement: s, ...c } = e, [l, { width: u }] = He(), d = u < 530, f = L(null), p = S([
|
|
1012
1012
|
f,
|
|
1013
1013
|
l,
|
|
1014
1014
|
t
|
|
@@ -1108,7 +1108,7 @@ function Cr(e, t) {
|
|
|
1108
1108
|
}, a;
|
|
1109
1109
|
n && (i.progress.onStart = n);
|
|
1110
1110
|
let s = -5;
|
|
1111
|
-
return
|
|
1111
|
+
return T.read({
|
|
1112
1112
|
...i,
|
|
1113
1113
|
progress: {
|
|
1114
1114
|
async onStart(e, t) {
|
|
@@ -1143,10 +1143,10 @@ function Cr(e, t) {
|
|
|
1143
1143
|
},
|
|
1144
1144
|
onWarnings: r ?? (async ({ warnings: e, origin: t, canCancel: n }) => {
|
|
1145
1145
|
a?.(), console.warn(`Not written to '${t.getName()}':\n${e.map((e) => ` ${e.message}`).join("\n")}`);
|
|
1146
|
-
let r = J("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await
|
|
1146
|
+
let r = J("dialog.writeWarnings.title"), i = t.getFormat(), s = (i ? (await T.getWriteFormats({ search: i }))[0] : void 0)?.description ?? i ?? "", c = J("dialog.writeWarnings.keep");
|
|
1147
1147
|
return n ? await o.showOptions({
|
|
1148
1148
|
title: r,
|
|
1149
|
-
type:
|
|
1149
|
+
type: E.Warning,
|
|
1150
1150
|
description: `${J("dialog.writeWarnings.confirm", { format: s })}\n\n${c}`,
|
|
1151
1151
|
options: [{
|
|
1152
1152
|
id: "Save",
|
|
@@ -1155,7 +1155,7 @@ function Cr(e, t) {
|
|
|
1155
1155
|
defaultOption: "Cancel"
|
|
1156
1156
|
}) === "Save" && (a = await o?.showBusy?.(J("workbook.saving", { name: t?.getName() ?? "" })), !0) : (o.showOptions({
|
|
1157
1157
|
title: r,
|
|
1158
|
-
type:
|
|
1158
|
+
type: E.Warning,
|
|
1159
1159
|
description: `${J("dialog.writeWarnings.saved", { format: s })}\n\n${c}`,
|
|
1160
1160
|
options: ["Ok"]
|
|
1161
1161
|
}), !0);
|
|
@@ -1163,15 +1163,15 @@ function Cr(e, t) {
|
|
|
1163
1163
|
}, c;
|
|
1164
1164
|
if (n) {
|
|
1165
1165
|
let n = e.getOrigin(), r = t?.exts?.[0] ?? (n.getExtension() || "sxl"), a = `${i || n.getName() || J("workbook.defaultName")}.${r}`;
|
|
1166
|
-
c = await
|
|
1166
|
+
c = await T.writeAs(e, a, {
|
|
1167
1167
|
...s,
|
|
1168
1168
|
prompt: !0
|
|
1169
1169
|
});
|
|
1170
|
-
} else c = await
|
|
1170
|
+
} else c = await T.write(e, void 0, s);
|
|
1171
1171
|
return c;
|
|
1172
1172
|
}, d = null;
|
|
1173
1173
|
return e.updateCommand("newWorkbook", { callback: async (e) => {
|
|
1174
|
-
let t =
|
|
1174
|
+
let t = T.canRead() && !a();
|
|
1175
1175
|
e?.source ? t && d ? await d({
|
|
1176
1176
|
url: e.source,
|
|
1177
1177
|
title: e.title
|
|
@@ -1187,9 +1187,9 @@ function Cr(e, t) {
|
|
|
1187
1187
|
defaultOption: "Cancel"
|
|
1188
1188
|
}) !== "Close" || window.close();
|
|
1189
1189
|
} }), (async () => {
|
|
1190
|
-
let t = await
|
|
1190
|
+
let t = await T.getWriteFormats();
|
|
1191
1191
|
if (c) return;
|
|
1192
|
-
let i =
|
|
1192
|
+
let i = T.canWrite(), f = T.canRead();
|
|
1193
1193
|
if (i) {
|
|
1194
1194
|
let r = (e) => {
|
|
1195
1195
|
let r = e ? t.find((t) => t.key === e) : void 0;
|
|
@@ -1245,8 +1245,8 @@ function Cr(e, t) {
|
|
|
1245
1245
|
tags: ["noTransaction", "noRepeat"],
|
|
1246
1246
|
callback: async (e = null) => {
|
|
1247
1247
|
let t = e;
|
|
1248
|
-
if (t ||
|
|
1249
|
-
let e = await
|
|
1248
|
+
if (t || T.canRead() || (t = await (async () => {
|
|
1249
|
+
let e = await T.getReadFormats(), t = [...new Set(e.flatMap((e) => e.exts))].map((e) => `.${e}`);
|
|
1250
1250
|
return At.openFileDialog(t.length ? t.join(",") : "*.*");
|
|
1251
1251
|
})(), t)) return p(t);
|
|
1252
1252
|
}
|
|
@@ -1332,8 +1332,8 @@ function Cr(e, t) {
|
|
|
1332
1332
|
c = !0, s && (s.current = null);
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
1335
|
-
var wr = dt(q("studio:shortcutKeysDialog", () => import("./
|
|
1336
|
-
_(),
|
|
1335
|
+
var wr = dt(q("studio:shortcutKeysDialog", () => import("./CEjud4n-8EggO2Im.mjs")).load);
|
|
1336
|
+
_(), b();
|
|
1337
1337
|
var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
1338
1338
|
let t = (e) => {
|
|
1339
1339
|
if (typeof e != "function") return e;
|
|
@@ -1362,9 +1362,9 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
return { getAllCommands: () => r };
|
|
1364
1364
|
}, Dr = (e) => {
|
|
1365
|
-
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = Te.useCommandScope(), l =
|
|
1365
|
+
let { children: t, workbook: n, setWorkbook: r, workbookTitle: i, isDirty: a, refSave: o, fullscreenTarget: s } = e, c = Te.useCommandScope(), l = Ue(), { showModal: u } = ht(), d = k(), f = L(a);
|
|
1366
1366
|
f.current = a;
|
|
1367
|
-
let p =
|
|
1367
|
+
let p = D(() => {
|
|
1368
1368
|
let e = c?.getRoot().getRegistry();
|
|
1369
1369
|
if (!e) return;
|
|
1370
1370
|
let t = u(wr, {
|
|
@@ -1392,7 +1392,7 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1392
1392
|
} });
|
|
1393
1393
|
}(e, { showShortcuts: p }), () => e.remove();
|
|
1394
1394
|
}, [c, p]);
|
|
1395
|
-
let m = Dt("(prefers-color-scheme: dark)"), { themeMode: h } = We(), [g, _] =
|
|
1395
|
+
let m = Dt("(prefers-color-scheme: dark)"), { themeMode: h } = We(), [g, _] = O(de.Mode, ue[de.Mode]), [v, y] = O(de.DarkGrid, ue[de.DarkGrid]), [b, ee] = O(de.DarkImages, ue[de.DarkImages]);
|
|
1396
1396
|
F(() => {
|
|
1397
1397
|
if (!c) return;
|
|
1398
1398
|
let e = c.getRoot().contribution();
|
|
@@ -1418,26 +1418,26 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1418
1418
|
setMode: _,
|
|
1419
1419
|
isDark: g === "dark" || !g && h === "dark",
|
|
1420
1420
|
systemDefaultDark: m,
|
|
1421
|
-
enableDarkGrid:
|
|
1422
|
-
setEnableDarkGrid:
|
|
1423
|
-
enableDarkImages:
|
|
1424
|
-
setEnableDarkImages:
|
|
1421
|
+
enableDarkGrid: v,
|
|
1422
|
+
setEnableDarkGrid: y,
|
|
1423
|
+
enableDarkImages: b,
|
|
1424
|
+
setEnableDarkImages: ee
|
|
1425
1425
|
}), () => e.remove();
|
|
1426
1426
|
}, [
|
|
1427
1427
|
c,
|
|
1428
1428
|
g,
|
|
1429
1429
|
h,
|
|
1430
1430
|
m,
|
|
1431
|
-
ee,
|
|
1432
|
-
y,
|
|
1433
|
-
_,
|
|
1434
1431
|
v,
|
|
1435
|
-
|
|
1432
|
+
b,
|
|
1433
|
+
_,
|
|
1434
|
+
y,
|
|
1435
|
+
ee
|
|
1436
1436
|
]);
|
|
1437
|
-
let [
|
|
1438
|
-
F(() => jt.addChangeListener(
|
|
1439
|
-
|
|
1440
|
-
}, [
|
|
1437
|
+
let [x, S] = O(ke.Active, null), [te, ne] = R(() => jt.getActive());
|
|
1438
|
+
F(() => jt.addChangeListener(ne), []), F(() => {
|
|
1439
|
+
x && x !== jt.getActive() && jt.setActive(x);
|
|
1440
|
+
}, [x]), F(() => {
|
|
1441
1441
|
if (!c) return;
|
|
1442
1442
|
let e = c.getRoot().contribution();
|
|
1443
1443
|
return function(e, t) {
|
|
@@ -1448,17 +1448,17 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
});
|
|
1450
1450
|
}(e, {
|
|
1451
|
-
active:
|
|
1451
|
+
active: te,
|
|
1452
1452
|
setActive: (e) => {
|
|
1453
|
-
|
|
1453
|
+
S(e);
|
|
1454
1454
|
}
|
|
1455
1455
|
}), () => e.remove();
|
|
1456
1456
|
}, [
|
|
1457
1457
|
c,
|
|
1458
|
-
|
|
1459
|
-
|
|
1458
|
+
te,
|
|
1459
|
+
S
|
|
1460
1460
|
]);
|
|
1461
|
-
let re = I(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: C, isFullscreenEnabled: w, toggleFullscreen: ie } =
|
|
1461
|
+
let re = I(() => ({ current: s ?? null }), [s]), { isFullscreenAvailable: C, isFullscreenEnabled: w, toggleFullscreen: ie } = Re({ target: re });
|
|
1462
1462
|
F(() => {
|
|
1463
1463
|
if (!c) return;
|
|
1464
1464
|
let e = c.getRoot().contribution();
|
|
@@ -1482,7 +1482,7 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1482
1482
|
w,
|
|
1483
1483
|
ie
|
|
1484
1484
|
]);
|
|
1485
|
-
let
|
|
1485
|
+
let ae = xe(!0);
|
|
1486
1486
|
return F(() => {
|
|
1487
1487
|
if (!c) return;
|
|
1488
1488
|
let e = c.getRoot().contribution();
|
|
@@ -1490,11 +1490,11 @@ var Tr = /* @__PURE__ */ new Set(["ui"]), Er = (e) => {
|
|
|
1490
1490
|
e.updateCommand("protectWorkbook", {
|
|
1491
1491
|
tags: ["noTransaction", "noRepeat"],
|
|
1492
1492
|
callback: () => {
|
|
1493
|
-
t(
|
|
1493
|
+
t(ce.Protection, { args: { tab: "workbook" } });
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
|
-
}(e, (e, t) =>
|
|
1497
|
-
}, [c,
|
|
1496
|
+
}(e, (e, t) => ae.activate(e, t)), () => e.remove();
|
|
1497
|
+
}, [c, ae]), F(() => {
|
|
1498
1498
|
if (!c || !n) return;
|
|
1499
1499
|
let e = c.getRoot().contribution(), t = Cr(e, {
|
|
1500
1500
|
workbook: n,
|
|
@@ -1534,7 +1534,7 @@ var Or = ({ renderWorkbook: e }) => {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
e.preventDefault();
|
|
1536
1536
|
}
|
|
1537
|
-
}, [t]), s =
|
|
1537
|
+
}, [t]), s = D((e) => {
|
|
1538
1538
|
e.preventDefault();
|
|
1539
1539
|
let r = i;
|
|
1540
1540
|
if (a(null), r && t && (e.stopPropagation(), e.dataTransfer.files && e.dataTransfer.files.length > 0)) {
|
|
@@ -1559,7 +1559,7 @@ var Or = ({ renderWorkbook: e }) => {
|
|
|
1559
1559
|
} }
|
|
1560
1560
|
});
|
|
1561
1561
|
} else {
|
|
1562
|
-
if (!
|
|
1562
|
+
if (!T.canRead()) return;
|
|
1563
1563
|
let n = e.dataTransfer.items?.[0], i = typeof window < "u" && window.isSecureContext ? n?.getAsFileSystemHandle?.() : void 0;
|
|
1564
1564
|
i ? i.then((e) => t.execute("openWorkbook", e?.kind === "file" ? e : r)).catch(() => t.execute("openWorkbook", r)) : t.execute("openWorkbook", r);
|
|
1565
1565
|
}
|
|
@@ -1595,7 +1595,7 @@ var Or = ({ renderWorkbook: e }) => {
|
|
|
1595
1595
|
color: "text.primary",
|
|
1596
1596
|
"& .drop-overlay-icon": { color: "primary.main" }
|
|
1597
1597
|
},
|
|
1598
|
-
children: [B(
|
|
1598
|
+
children: [B(Oe, {
|
|
1599
1599
|
iconKey: e ? "InsertImage" : "FileOpen",
|
|
1600
1600
|
className: "drop-overlay-icon",
|
|
1601
1601
|
size: 32
|
|
@@ -1637,21 +1637,21 @@ var Or = ({ renderWorkbook: e }) => {
|
|
|
1637
1637
|
});
|
|
1638
1638
|
kr.displayName = "CommandsWrapper";
|
|
1639
1639
|
var Ar = {
|
|
1640
|
-
sort: q("studio:sortDialog", () => import("./
|
|
1641
|
-
hyperlink: q("studio:hyperlinkDialog", () => import("./
|
|
1642
|
-
find: q("studio:findReplaceWindow", () => import("./
|
|
1643
|
-
tableNew: q("studio:tableNewDialog", () => import("./
|
|
1644
|
-
pivotTableNew: q("studio:pivotTableNewDialog", () => import("./
|
|
1645
|
-
sparklineNew: q("studio:sparklineNewDialog", () => import("./
|
|
1646
|
-
sparklineEdit: q("studio:sparklineEditDialog", () => import("./
|
|
1647
|
-
namedDetails: q("studio:namedReferenceDialog", () => import("./
|
|
1648
|
-
insertFunction: q("studio:insertFunctionDialog", () => import("./
|
|
1649
|
-
resizeHeader: q("studio:resizeHeaderDialog", () => import("./
|
|
1650
|
-
outlineSettings: q("studio:outlineSettingsDialog", () => import("./
|
|
1651
|
-
fillSeries: q("studio:fillSeriesDialog", () => import("./
|
|
1652
|
-
workbookStatistics: q("studio:workbookStatisticsDialog", () => import("./
|
|
1653
|
-
password: q("studio:passwordDialog", () => import("./
|
|
1654
|
-
pivotValueSettings: q("studio:pivotValueSettingsDialog", () => import("./
|
|
1640
|
+
sort: q("studio:sortDialog", () => import("./DApXGOAXNdSZdYbT.mjs")).load,
|
|
1641
|
+
hyperlink: q("studio:hyperlinkDialog", () => import("./DeJenn9MUICppyMl.mjs")).load,
|
|
1642
|
+
find: q("studio:findReplaceWindow", () => import("./DhXTTl8_kMjearig.mjs")).load,
|
|
1643
|
+
tableNew: q("studio:tableNewDialog", () => import("./B45dW1aZ8s9mufl_.mjs")).load,
|
|
1644
|
+
pivotTableNew: q("studio:pivotTableNewDialog", () => import("./DMWgj1E1kYrTdAnf.mjs")).load,
|
|
1645
|
+
sparklineNew: q("studio:sparklineNewDialog", () => import("./v2EnJ1fOZEXqAVlO.mjs")).load,
|
|
1646
|
+
sparklineEdit: q("studio:sparklineEditDialog", () => import("./B0NC2aGu9jgdelTz.mjs")).load,
|
|
1647
|
+
namedDetails: q("studio:namedReferenceDialog", () => import("./Bscb3ZfordY8Cyzo.mjs")).load,
|
|
1648
|
+
insertFunction: q("studio:insertFunctionDialog", () => import("./C8sDMsI-mfPVArSI.mjs")).load,
|
|
1649
|
+
resizeHeader: q("studio:resizeHeaderDialog", () => import("./D4LGe9Sxrf-egOPN.mjs")).load,
|
|
1650
|
+
outlineSettings: q("studio:outlineSettingsDialog", () => import("./M-Rp0gM6kZb12Kim.mjs")).load,
|
|
1651
|
+
fillSeries: q("studio:fillSeriesDialog", () => import("./p4Q_TpZ_s60_L7Ux.mjs")).load,
|
|
1652
|
+
workbookStatistics: q("studio:workbookStatisticsDialog", () => import("./B95vnhVq0KnbcA_Y.mjs")).load,
|
|
1653
|
+
password: q("studio:passwordDialog", () => import("./B2nWe09MDoBLwo_k.mjs")).load,
|
|
1654
|
+
pivotValueSettings: q("studio:pivotValueSettingsDialog", () => import("./BQjxD6zW8juryZHL.mjs")).load
|
|
1655
1655
|
}, jr = ["find"], Mr = N((e) => {
|
|
1656
1656
|
let { children: t } = e, n = vr(), r = n ? n.enqueueSnackbar : () => {}, i = n ? n.closeSnackbar : () => {}, a = L(/* @__PURE__ */ new Set()), o = L(null), s = L(null), [c, l] = R({
|
|
1657
1657
|
label: null,
|
|
@@ -1673,16 +1673,16 @@ var Ar = {
|
|
|
1673
1673
|
e.add(t.onceKey), g.current = e;
|
|
1674
1674
|
}
|
|
1675
1675
|
let n = {
|
|
1676
|
-
variant: t?.type ??
|
|
1676
|
+
variant: t?.type ?? E.Info,
|
|
1677
1677
|
anchorOrigin: {
|
|
1678
1678
|
vertical: "top",
|
|
1679
1679
|
horizontal: "center"
|
|
1680
1680
|
},
|
|
1681
1681
|
preventDuplicate: t?.preventDuplicate,
|
|
1682
|
-
persist: t?.persist ?? t?.type ===
|
|
1682
|
+
persist: t?.persist ?? t?.type === E.Error,
|
|
1683
1683
|
action: (e) => B(U, {
|
|
1684
1684
|
onClick: () => i(e),
|
|
1685
|
-
children: B(
|
|
1685
|
+
children: B(Oe, { iconKey: "Cancel" })
|
|
1686
1686
|
})
|
|
1687
1687
|
};
|
|
1688
1688
|
t?.enqueueProps && Object.assign(n, t.enqueueProps), e || console.log("message is 'null'", t), r(e ?? "Alert", n);
|
|
@@ -1695,7 +1695,7 @@ var Ar = {
|
|
|
1695
1695
|
...t,
|
|
1696
1696
|
label: e
|
|
1697
1697
|
});
|
|
1698
|
-
let r =
|
|
1698
|
+
let r = Le(() => {
|
|
1699
1699
|
a.current.delete(n) && (a.current.size > 0 || (ut(o.current), s.current = null, l((e) => e.label === null && e.progress === null ? e : {
|
|
1700
1700
|
label: null,
|
|
1701
1701
|
progress: null
|
|
@@ -1726,14 +1726,14 @@ var Ar = {
|
|
|
1726
1726
|
showOptions: p,
|
|
1727
1727
|
showInput: m,
|
|
1728
1728
|
showError: (t) => {
|
|
1729
|
-
let n, r =
|
|
1730
|
-
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Pt && (r =
|
|
1729
|
+
let n, r = E.Error, i = u("error.unknown");
|
|
1730
|
+
typeof t == "string" ? i = t : t instanceof Error && (n = t, t.message && (i = u(t.message))), t instanceof Pt && (r = E.Info), e(i, {
|
|
1731
1731
|
type: r,
|
|
1732
1732
|
enqueueProps: { error: n }
|
|
1733
1733
|
});
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
|
-
}, [u]),
|
|
1736
|
+
}, [u]), v = I(() => B(Qe, {
|
|
1737
1737
|
ref: o,
|
|
1738
1738
|
autoStart: !1,
|
|
1739
1739
|
icon: B($e, { sx: {
|
|
@@ -1753,18 +1753,18 @@ var Ar = {
|
|
|
1753
1753
|
pointerEvents: "none"
|
|
1754
1754
|
}
|
|
1755
1755
|
}), [c.label, c.progress]);
|
|
1756
|
-
return V(
|
|
1756
|
+
return V(je, {
|
|
1757
1757
|
notifier: _,
|
|
1758
|
-
children: [
|
|
1758
|
+
children: [v, t]
|
|
1759
1759
|
});
|
|
1760
1760
|
});
|
|
1761
1761
|
Mr.displayName = "StudioNotifierProvider";
|
|
1762
1762
|
var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.2)))", Pr = N(j((e, t) => {
|
|
1763
|
-
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = w, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m =
|
|
1763
|
+
let { children: n, title: r, taskPanes: i, onSelect: a, selected: o, registry: s = w, style: c, iconsOnly: l, side: u = "right", className: d, ...f } = e, p = u !== "right", m = Ve(), h = I(() => i.map((t) => {
|
|
1764
1764
|
let n = s.getRegisteredTaskPane(t);
|
|
1765
1765
|
if (!n) return null;
|
|
1766
1766
|
let r = n.getIcon?.();
|
|
1767
|
-
typeof r == "string" && (r = B(
|
|
1767
|
+
typeof r == "string" && (r = B(Oe, { iconKey: r }));
|
|
1768
1768
|
let i = t === o, a = r ? B(H, {
|
|
1769
1769
|
sx: {
|
|
1770
1770
|
display: "inline-block",
|
|
@@ -1825,7 +1825,7 @@ var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1825
1825
|
minHeight: "0px",
|
|
1826
1826
|
borderRadius: "4px"
|
|
1827
1827
|
},
|
|
1828
|
-
className:
|
|
1828
|
+
className: x("taskpane-strip-item", { "Mui-selected": i }),
|
|
1829
1829
|
onClick: () => e.onSelect(t)
|
|
1830
1830
|
}, t);
|
|
1831
1831
|
}), [
|
|
@@ -1836,7 +1836,7 @@ var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1836
1836
|
p,
|
|
1837
1837
|
l,
|
|
1838
1838
|
m
|
|
1839
|
-
]), g =
|
|
1839
|
+
]), g = ze(t, () => ({ isTaskPaneStrip: () => !0 }), []), _ = I(() => x("taskpane-strip", d), [d]);
|
|
1840
1840
|
return B(H, {
|
|
1841
1841
|
ref: g,
|
|
1842
1842
|
className: _,
|
|
@@ -1868,7 +1868,7 @@ var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1868
1868
|
})), Fr = (e) => {
|
|
1869
1869
|
let { title: t, icon: n, onClose: r, readOnly: i, focused: a, ...o } = e, s = L(null), c = k();
|
|
1870
1870
|
return B(St, {
|
|
1871
|
-
className:
|
|
1871
|
+
className: x({ "Mui-selected": a }),
|
|
1872
1872
|
sx: {
|
|
1873
1873
|
display: "flex",
|
|
1874
1874
|
flex: "1 1 %0",
|
|
@@ -1915,7 +1915,7 @@ var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1915
1915
|
onPointerUp: () => {
|
|
1916
1916
|
r();
|
|
1917
1917
|
},
|
|
1918
|
-
children: B(
|
|
1918
|
+
children: B(Oe, { iconKey: "Close" })
|
|
1919
1919
|
})
|
|
1920
1920
|
})]
|
|
1921
1921
|
})
|
|
@@ -1948,73 +1948,73 @@ var Nr = "var(--sxl-color-input-border, light-dark(rgba(0, 0, 0, 0.2), rgba(255,
|
|
|
1948
1948
|
display: "flex",
|
|
1949
1949
|
boxSizing: "border-box"
|
|
1950
1950
|
}, Br = N(j((e, t) => {
|
|
1951
|
-
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] =
|
|
1952
|
-
g ?
|
|
1953
|
-
let
|
|
1951
|
+
let { mainElement: n, sidebarElement: r, position: i, persistKey: a, onPositionChange: o, className: s, style: c, taskSide: l = "right", ...u } = e, [d, f] = O(a ?? null, Rr), p = Ot(), [m, { width: h }] = He(), g = h > 530 || h === 0, _ = L(null), v, y, b = null, ee = 4, te = 13;
|
|
1952
|
+
g ? b = "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" : (b = "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", ee = 13, te = 4);
|
|
1953
|
+
let ne, re = n, C = r, w = l !== "right", ie = g ? "row" : "column", ae = w && C ? "before" : "after", oe = `${ie}:${ae}`, se = a ? d[oe] : void 0, ce = se == null ? ((e, t) => {
|
|
1954
1954
|
if (e == null) return "40%";
|
|
1955
1955
|
if (typeof e == "number" || typeof e == "string") return e;
|
|
1956
1956
|
let n = e[t];
|
|
1957
1957
|
return n == null ? "40%" : `${n}%`;
|
|
1958
|
-
})(i,
|
|
1958
|
+
})(i, oe) : `${se}%`, le = a || o ? (e) => {
|
|
1959
1959
|
a && f((t) => ({
|
|
1960
1960
|
...t,
|
|
1961
|
-
[
|
|
1961
|
+
[oe]: e.percent
|
|
1962
1962
|
})), o?.(e, {
|
|
1963
1963
|
orientation: ie,
|
|
1964
|
-
side:
|
|
1965
|
-
key:
|
|
1964
|
+
side: ae,
|
|
1965
|
+
key: oe
|
|
1966
1966
|
});
|
|
1967
1967
|
} : void 0;
|
|
1968
|
-
w && C ? (re = r, C = n,
|
|
1968
|
+
w && C ? (re = r, C = n, y = { style: {
|
|
1969
1969
|
flexDirection: "column",
|
|
1970
1970
|
boxSizing: "border-box",
|
|
1971
1971
|
paddingRight: "2px"
|
|
1972
|
-
} },
|
|
1972
|
+
} }, v = {}, ne = {
|
|
1973
1973
|
fixedPane: "before",
|
|
1974
|
-
position:
|
|
1974
|
+
position: ce,
|
|
1975
1975
|
minBefore: g ? "280px" : "120px",
|
|
1976
1976
|
splitDirection: g ? "row" : "column"
|
|
1977
|
-
}) : (
|
|
1977
|
+
}) : (v = { style: {
|
|
1978
1978
|
flexDirection: "column",
|
|
1979
1979
|
marginRight: r ? void 0 : "6px"
|
|
1980
|
-
} },
|
|
1980
|
+
} }, y = { style: {
|
|
1981
1981
|
marginLeft: g ? "0px" : "4px",
|
|
1982
1982
|
marginRight: g ? "8px" : "4px"
|
|
1983
|
-
} },
|
|
1983
|
+
} }, ne = {
|
|
1984
1984
|
fixedPane: "after",
|
|
1985
|
-
position:
|
|
1985
|
+
position: ce,
|
|
1986
1986
|
minAfter: g ? "280px" : "120px",
|
|
1987
1987
|
splitDirection: g ? "row" : "column"
|
|
1988
1988
|
});
|
|
1989
|
-
let
|
|
1989
|
+
let ue = S([
|
|
1990
1990
|
_,
|
|
1991
1991
|
m,
|
|
1992
1992
|
t
|
|
1993
1993
|
]);
|
|
1994
|
-
return B(
|
|
1995
|
-
ref:
|
|
1994
|
+
return B(Fe, {
|
|
1995
|
+
ref: ue,
|
|
1996
1996
|
className: s,
|
|
1997
1997
|
style: c ? {
|
|
1998
1998
|
...zr,
|
|
1999
1999
|
...c
|
|
2000
2000
|
} : zr,
|
|
2001
2001
|
...u,
|
|
2002
|
-
...
|
|
2003
|
-
onPositionChange:
|
|
2002
|
+
...ne,
|
|
2003
|
+
onPositionChange: le,
|
|
2004
2004
|
propsResizer: {
|
|
2005
|
-
className:
|
|
2005
|
+
className: x("styled-resizer", Lr),
|
|
2006
2006
|
style: {
|
|
2007
2007
|
minWidth: g ? "7px" : void 0,
|
|
2008
2008
|
minHeight: g ? void 0 : "6px",
|
|
2009
|
-
maskImage: `url("data:image/svg+xml,%3Csvg width='${
|
|
2009
|
+
maskImage: `url("data:image/svg+xml,%3Csvg width='${ee}' height='${te}' viewBox='0 0 ${ee} ${te}' version='1.1' fill='${p.palette.text.icon ?? p.palette.action.active}' xmlns='http://www.w3.org/2000/svg' xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cpath d='${b}' /%3E%3C/svg%3E%0A")`,
|
|
2010
2010
|
maskRepeat: "no-repeat",
|
|
2011
2011
|
maskPosition: w ? g ? "center center" : "bottom center" : g ? "left center" : "top center"
|
|
2012
2012
|
}
|
|
2013
2013
|
},
|
|
2014
2014
|
elementBefore: re,
|
|
2015
|
-
propsPaneBefore:
|
|
2015
|
+
propsPaneBefore: v,
|
|
2016
2016
|
elementAfter: C,
|
|
2017
|
-
propsPaneAfter:
|
|
2017
|
+
propsPaneAfter: y
|
|
2018
2018
|
});
|
|
2019
2019
|
}));
|
|
2020
2020
|
Br.displayName = "StudioSplitPane";
|
|
@@ -2059,9 +2059,9 @@ var Vr = () => B("div", { style: {
|
|
|
2059
2059
|
}, e.key))] }, t))
|
|
2060
2060
|
});
|
|
2061
2061
|
}, Wr = (e) => B(Ur, { ...e }), Gr = (e) => {
|
|
2062
|
-
let { pivot: t, name: n, source: r, onError: i } = e, a = k(), o = t.getWorksheet(), s = o.getProtection().isLocked(), c = I(() => ({ scope: o.getName() }), [o]), l =
|
|
2062
|
+
let { pivot: t, name: n, source: r, onError: i } = e, a = k(), o = t.getWorksheet(), s = o.getProtection().isLocked(), c = I(() => ({ scope: o.getName() }), [o]), l = D((e, n) => {
|
|
2063
2063
|
n.reason === "accept" && e !== t.getName() && t.setName(e).catch(i);
|
|
2064
|
-
}, [t, i]), u =
|
|
2064
|
+
}, [t, i]), u = D((e) => {
|
|
2065
2065
|
if (e.length === 0 || e.length > 255) throw new Nt(a("error.pivotTable.nameInvalid"));
|
|
2066
2066
|
let n = o.getPivotTables().getByName(e);
|
|
2067
2067
|
if (n && n.getName() !== t.getName()) throw new Nt(a("error.pivotTable.nameExists"));
|
|
@@ -2069,7 +2069,7 @@ var Vr = () => B("div", { style: {
|
|
|
2069
2069
|
o,
|
|
2070
2070
|
t,
|
|
2071
2071
|
a
|
|
2072
|
-
]), d =
|
|
2072
|
+
]), d = D((e, n) => {
|
|
2073
2073
|
if (n.reason !== "accept") return;
|
|
2074
2074
|
let r = Wt(e);
|
|
2075
2075
|
r && t.setSource(typeof r == "string" ? r : r.at(0)).catch(i);
|
|
@@ -2089,7 +2089,7 @@ var Vr = () => B("div", { style: {
|
|
|
2089
2089
|
onDone: l,
|
|
2090
2090
|
onValidate: u,
|
|
2091
2091
|
disabled: s
|
|
2092
|
-
}), B(
|
|
2092
|
+
}), B(ne, {
|
|
2093
2093
|
grammar: "reference",
|
|
2094
2094
|
formName: "source",
|
|
2095
2095
|
label: a("pivotTableNew.source"),
|
|
@@ -2107,84 +2107,85 @@ var Vr = () => B("div", { style: {
|
|
|
2107
2107
|
renderFilter: p,
|
|
2108
2108
|
renderHeader: Kr,
|
|
2109
2109
|
...e
|
|
2110
|
-
}), Jr = ft(q("studio:dataValidationDetailsTaskPane", () => import("./
|
|
2110
|
+
}), Jr = ft(q("studio:dataValidationDetailsTaskPane", () => import("./B83kgckQsC0aY0NE.mjs"), { select: (e) => ({ default: e.DataValidationDetailsTaskPane }) }).load), Yr = zt({
|
|
2111
2111
|
EagerStudio: () => $r,
|
|
2112
2112
|
default: () => $r
|
|
2113
2113
|
});
|
|
2114
2114
|
s(), w.registerTaskPane({
|
|
2115
|
-
key:
|
|
2116
|
-
getTitle: () => "PivotTable Fields",
|
|
2117
|
-
getIcon: () => "Table",
|
|
2115
|
+
key: ce.PivotTable,
|
|
2118
2116
|
component: qr
|
|
2119
|
-
}, !0),
|
|
2117
|
+
}, !0), Ee.register({
|
|
2120
2118
|
key: "changeShapeGallery",
|
|
2121
|
-
|
|
2119
|
+
contributions: { shapeToolbar: {
|
|
2120
|
+
order: -1,
|
|
2121
|
+
divider: "after"
|
|
2122
|
+
} },
|
|
2123
|
+
render: (e) => B(y, {
|
|
2122
2124
|
...e,
|
|
2123
2125
|
commandKey: "changeShape",
|
|
2124
2126
|
excludeCategories: Vt
|
|
2125
2127
|
})
|
|
2126
|
-
}, {
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
},
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2128
|
+
}, !0), ge("shape", () => import("./CtJpnIXloxW2qFGC.mjs").then((e) => e.ShapeFormatPanel)), ge("chart", () => import("./BUr5VGHQCYpQeran.mjs").then((e) => e.ChartFormatPanel)), (() => {
|
|
2129
|
+
let e = Te.DefaultCommandButtonRegistry, t = [];
|
|
2130
|
+
t.push(e.register({
|
|
2131
|
+
key: "changePictureOptions",
|
|
2132
|
+
defaultKey: "changePictureFromFile",
|
|
2133
|
+
members: ["changePictureFromFile", "changePictureFromURL"],
|
|
2134
|
+
contributions: { pictureToolbar: { order: -3 } }
|
|
2135
|
+
}, !0)), t.push(e.register({
|
|
2136
|
+
key: "pictureHyperlinkOptions",
|
|
2137
|
+
defaultKey: "updatePictureHyperlink",
|
|
2138
|
+
members: [
|
|
2139
|
+
"updatePictureHyperlink",
|
|
2140
|
+
"openPictureHyperlink",
|
|
2141
|
+
"deletePictureHyperlink"
|
|
2142
|
+
],
|
|
2143
|
+
contributions: { pictureToolbar: { order: -2 } }
|
|
2144
|
+
}, !0)), t.push(e.register({
|
|
2145
|
+
key: "cropAspectOptions",
|
|
2146
|
+
members: [
|
|
2147
|
+
"cropAspect1x1",
|
|
2148
|
+
"-",
|
|
2149
|
+
"cropAspect2x3",
|
|
2150
|
+
"cropAspect3x4",
|
|
2151
|
+
"cropAspect3x5",
|
|
2152
|
+
"cropAspect4x5",
|
|
2153
|
+
"-",
|
|
2154
|
+
"cropAspect3x2",
|
|
2155
|
+
"cropAspect4x3",
|
|
2156
|
+
"cropAspect5x3",
|
|
2157
|
+
"cropAspect5x4",
|
|
2158
|
+
"cropAspect16x9",
|
|
2159
|
+
"cropAspect16x10"
|
|
2160
|
+
]
|
|
2161
|
+
}, !0)), t.push(e.register({
|
|
2162
|
+
key: "cropOptions",
|
|
2163
|
+
members: [
|
|
2164
|
+
{
|
|
2165
|
+
key: "cropToShapeGallery",
|
|
2166
|
+
render: (e) => B(y, {
|
|
2167
|
+
...e,
|
|
2168
|
+
commandKey: "cropToShape",
|
|
2169
|
+
excludeCategories: Vt
|
|
2170
|
+
})
|
|
2171
|
+
},
|
|
2172
|
+
"cropAspectOptions",
|
|
2173
|
+
"-",
|
|
2174
|
+
"cropFill",
|
|
2175
|
+
"cropFit"
|
|
2176
|
+
],
|
|
2177
|
+
contributions: { pictureToolbar: {
|
|
2178
|
+
order: -1,
|
|
2179
|
+
divider: "after"
|
|
2180
|
+
} }
|
|
2181
|
+
}, !0));
|
|
2182
|
+
})(), n(), w.registerTaskPane({
|
|
2183
|
+
key: ce.DataValidation,
|
|
2181
2184
|
component: Jr
|
|
2182
2185
|
}, !0), w.registerTaskPane({
|
|
2183
|
-
key:
|
|
2184
|
-
getTitle: () => "Conditional Formatting",
|
|
2185
|
-
getIcon: () => "FormatPaint",
|
|
2186
|
+
key: ce.ConditionalFormat,
|
|
2186
2187
|
component: Bt
|
|
2187
|
-
}, !0),
|
|
2188
|
+
}, !0), a(), i(), r(), l(), e(), o(), d();
|
|
2188
2189
|
var Xr = () => {
|
|
2189
2190
|
let e, t, n = new Promise((n, r) => {
|
|
2190
2191
|
e = n, t = r;
|
|
@@ -2204,29 +2205,29 @@ var Xr = () => {
|
|
|
2204
2205
|
let { colorSchemes: n, ...r } = e, i = n?.[t ? "dark" : "light"];
|
|
2205
2206
|
return i && typeof i == "object" ? kt.deepMerge(r, i) : r;
|
|
2206
2207
|
}, Qr = "taskPanePosition", $r = N(j((e, n) => {
|
|
2207
|
-
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: l, prefetch: d, onDocumentError: p, renderDocumentError: g = c, propsDocumentError: _, propsTaskPaneArea:
|
|
2208
|
+
let { host: r, scopeClass: i, square: a, elevation: o, variant: s, onWorkbookLoad: l, prefetch: d, onDocumentError: p, renderDocumentError: g = c, propsDocumentError: _, propsTaskPaneArea: y, renderTaskPaneArea: b = ei, taskPaneSide: x = "right", onKeyDown: S, workbook: ne, onWorkbookChange: re, logo: C, topLeft: w, topRight: ie, muiTheme: ae, tokens: se, cssBaseline: ce, autoFocus: ge = !1, title: xe, onDirtyChange: Ee, propsDocumentTitle: E, renderDocumentLoading: je = t, propsDocumentLoading: Fe, propsWorkbook: Le, showFormulaBar: Re, propsFormulaBar: Ve, renderFormulaBar: He, formulaBarPlacement: Ue, virtualKeyboard: k = "float", editable: A, showStatusBar: Ke, propsStatusBar: qe, renderStatusBar: Je, propsToolbar: Ye, renderToolbar: j } = e, M = L(null), N = L(null), Xe = L(null), Ze = D(() => {
|
|
2208
2209
|
Xe.current?.getNamedCollectionEditorElement?.()?.focus?.();
|
|
2209
|
-
}, []), Qe = ((e, t = typeof window > "u" ? "mouse" :
|
|
2210
|
+
}, []), Qe = ((e, t = typeof window > "u" ? "mouse" : Me.detectIt().primaryInput) => e === "top" || e === "bottom" ? e : t === "touch" ? "bottom" : "top")(Ue), $e = Qe === "bottom" ? k : "none", { inset: tt, offsetTop: rt } = Be($e === "resize"), it = D(p ?? (() => {}), [p]), ot = D(Ee ?? (() => {}), [Ee]), st = E?.placeHolder, [ct] = O(de.Mode, ue[de.Mode]), { themeMode: ut } = We({ mode: ct ?? void 0 }), [dt] = O(ke.Active, null), ft = L(dt);
|
|
2210
2211
|
ft.current = dt;
|
|
2211
2212
|
let pt = Ge(), z = I(() => ({
|
|
2212
|
-
light: lt(!1, kt.deepMerge(Zr(
|
|
2213
|
-
dark: lt(!0, kt.deepMerge(Zr(
|
|
2213
|
+
light: lt(!1, kt.deepMerge(Zr(ae, !1), u(pt?.light))),
|
|
2214
|
+
dark: lt(!0, kt.deepMerge(Zr(ae, !0), u(pt?.dark)))
|
|
2214
2215
|
}), [
|
|
2215
|
-
|
|
2216
|
+
ae,
|
|
2216
2217
|
pt?.light,
|
|
2217
2218
|
pt?.dark
|
|
2218
|
-
]), mt = ut === "dark", ht = I(() => m(z.light, z.dark, `.${i}`,
|
|
2219
|
+
]), mt = ut === "dark", ht = I(() => m(z.light, z.dark, `.${i}`, se), [
|
|
2219
2220
|
z,
|
|
2220
2221
|
i,
|
|
2221
|
-
|
|
2222
|
-
]), gt = I(() =>
|
|
2222
|
+
se
|
|
2223
|
+
]), gt = I(() => pe("sxl-defaults", `.${i}`), [i]), _t = _e(), [vt, yt] = R(() => ne ?? null);
|
|
2223
2224
|
F(() => {
|
|
2224
|
-
yt(
|
|
2225
|
-
}, [
|
|
2225
|
+
yt(ne ?? null);
|
|
2226
|
+
}, [ne]);
|
|
2226
2227
|
let [bt, St] = R(0), U = L(null);
|
|
2227
2228
|
U.current ||= Xr();
|
|
2228
2229
|
let Tt = be(vt, {
|
|
2229
|
-
io:
|
|
2230
|
+
io: T,
|
|
2230
2231
|
defaultTheme: _t.getDefaultTheme(),
|
|
2231
2232
|
reloadKey: bt
|
|
2232
2233
|
}), W = Tt.status === "loaded" ? Tt.workbook : null, G = I(() => Tt.status === "error" ? {
|
|
@@ -2270,7 +2271,7 @@ var Xr = () => {
|
|
|
2270
2271
|
}, [K]);
|
|
2271
2272
|
let q = A ? null : K, Ft = ye(), It = I(() => {
|
|
2272
2273
|
let e = q?.getSelectedWorksheet() ?? q?.getWorksheets().getItems({ visibility: "veryHidden" })[0];
|
|
2273
|
-
return e ?
|
|
2274
|
+
return e ? me(e, { referenceMode: Ft }) : null;
|
|
2274
2275
|
}, [q, Ft]), J = A ?? It, Lt = L(J);
|
|
2275
2276
|
Lt.current = J, F(() => {
|
|
2276
2277
|
if (!J) return;
|
|
@@ -2282,11 +2283,11 @@ var Xr = () => {
|
|
|
2282
2283
|
(n?.isFocusWithin?.() ?? n?.contains?.(document.activeElement)) && M.current?.focus();
|
|
2283
2284
|
});
|
|
2284
2285
|
}, [J]);
|
|
2285
|
-
let Rt = Ce(K), { isDirty: zt, saveState: Bt } = we(K,
|
|
2286
|
+
let Rt = Ce(K), { isDirty: zt, saveState: Bt } = we(K, T), Vt = Se(K), Ht = L(Bt), Ut = L(null);
|
|
2286
2287
|
Ht.current = Bt;
|
|
2287
2288
|
let Wt = P(() => Ht.current?.isDirty() ?? !1, []), Gt = L(G);
|
|
2288
2289
|
Gt.current = G;
|
|
2289
|
-
let [Y, Kt] = R(null), qt =
|
|
2290
|
+
let [Y, Kt] = R(null), qt = xe ?? E?.title, [Jt, Yt] = R(null);
|
|
2290
2291
|
F(() => {
|
|
2291
2292
|
Yt(null);
|
|
2292
2293
|
}, [K]);
|
|
@@ -2294,7 +2295,7 @@ var Xr = () => {
|
|
|
2294
2295
|
F(() => {
|
|
2295
2296
|
ot?.(zt);
|
|
2296
2297
|
}, [zt]);
|
|
2297
|
-
let Zt =
|
|
2298
|
+
let Zt = D(re ?? (() => {}), [re]);
|
|
2298
2299
|
F(() => {
|
|
2299
2300
|
Zt?.(W);
|
|
2300
2301
|
}, [W]);
|
|
@@ -2309,25 +2310,25 @@ var Xr = () => {
|
|
|
2309
2310
|
en(e);
|
|
2310
2311
|
}, []);
|
|
2311
2312
|
F(() => {
|
|
2312
|
-
|
|
2313
|
+
De.prefetch([De.getActive(), oe]).catch((e) => {
|
|
2313
2314
|
console.warn("Icons could not be loaded:", e);
|
|
2314
2315
|
});
|
|
2315
2316
|
}, []);
|
|
2316
2317
|
let nn = L(null);
|
|
2317
2318
|
nn.current ||= Xr();
|
|
2318
|
-
let Z = L(null), rn = P(() => Z.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? nn.current.promise, []), an =
|
|
2319
|
+
let Z = L(null), rn = P(() => Z.current?.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? nn.current.promise, []), an = D(async (e) => {
|
|
2319
2320
|
let t = ft.current;
|
|
2320
2321
|
t && t !== jt.getActive() && await jt.setActive(t), await Te.DefaultCommandCatalogService.prefetch(t ?? void 0), Kt(e), Z.current = e.source, nn.current.settled || nn.current.resolve(e.source.getSheetElement()?.getGridSurface()?.getPane()?.getElement() ?? null), l?.(e);
|
|
2321
2322
|
}, []), on = L(null), sn = P((e) => {
|
|
2322
2323
|
let t = null, n = {
|
|
2323
2324
|
readOnly: !0,
|
|
2324
|
-
...
|
|
2325
|
+
...E
|
|
2325
2326
|
};
|
|
2326
|
-
return
|
|
2327
|
+
return E?.hidden || (t = B(v, {
|
|
2327
2328
|
...n,
|
|
2328
2329
|
style: {
|
|
2329
2330
|
maxWidth: "100%",
|
|
2330
|
-
...
|
|
2331
|
+
...E?.style
|
|
2331
2332
|
},
|
|
2332
2333
|
workbook: e.workbook ?? M.current,
|
|
2333
2334
|
ref: on,
|
|
@@ -2336,7 +2337,7 @@ var Xr = () => {
|
|
|
2336
2337
|
encrypted: Vt,
|
|
2337
2338
|
placeHolder: st,
|
|
2338
2339
|
onTitleChange: (e) => {
|
|
2339
|
-
Yt(e),
|
|
2340
|
+
Yt(e), E?.onTitleChange?.(e);
|
|
2340
2341
|
}
|
|
2341
2342
|
})), B(xr, {
|
|
2342
2343
|
...e,
|
|
@@ -2350,7 +2351,7 @@ var Xr = () => {
|
|
|
2350
2351
|
Xt,
|
|
2351
2352
|
zt,
|
|
2352
2353
|
Vt,
|
|
2353
|
-
|
|
2354
|
+
E,
|
|
2354
2355
|
w,
|
|
2355
2356
|
ie
|
|
2356
2357
|
]);
|
|
@@ -2358,7 +2359,7 @@ var Xr = () => {
|
|
|
2358
2359
|
let e = M.current;
|
|
2359
2360
|
if (!e) return;
|
|
2360
2361
|
let t = (t) => {
|
|
2361
|
-
(t.ctrlKey || t.metaKey ||
|
|
2362
|
+
(t.ctrlKey || t.metaKey || Pe.getWheelOwner(t, e) !== "native") && t.preventDefault();
|
|
2362
2363
|
};
|
|
2363
2364
|
return e.addEventListener("wheel", t, { passive: !1 }), () => {
|
|
2364
2365
|
e.removeEventListener("wheel", t);
|
|
@@ -2381,21 +2382,21 @@ var Xr = () => {
|
|
|
2381
2382
|
whiteSpace: "pre-wrap"
|
|
2382
2383
|
},
|
|
2383
2384
|
"*": { userSelect: "none" }
|
|
2384
|
-
}), []), [dn, fn] = R(null), [, pn] =
|
|
2385
|
+
}), []), [dn, fn] = R(null), [, pn] = O(null, !1);
|
|
2385
2386
|
F(() => {
|
|
2386
2387
|
pn(dn != null);
|
|
2387
2388
|
}, [dn, pn]);
|
|
2388
|
-
let mn = P((e) =>
|
|
2389
|
+
let mn = P((e) => b({
|
|
2389
2390
|
model: K,
|
|
2390
|
-
side:
|
|
2391
|
+
side: x,
|
|
2391
2392
|
...e,
|
|
2392
|
-
...
|
|
2393
|
+
...y
|
|
2393
2394
|
}), [
|
|
2394
2395
|
K,
|
|
2395
|
-
|
|
2396
|
-
|
|
2396
|
+
x,
|
|
2397
|
+
y
|
|
2397
2398
|
]), hn = L(r);
|
|
2398
|
-
hn.current = r,
|
|
2399
|
+
hn.current = r, ze(n, () => ({
|
|
2399
2400
|
isStudioElement: () => !0,
|
|
2400
2401
|
save: (e) => {
|
|
2401
2402
|
let t = Ut.current;
|
|
@@ -2411,7 +2412,7 @@ var Xr = () => {
|
|
|
2411
2412
|
getWorkbookState: () => Gt.current,
|
|
2412
2413
|
retry: () => St((e) => e + 1)
|
|
2413
2414
|
}), [], r);
|
|
2414
|
-
let Q = L(!1), gn =
|
|
2415
|
+
let Q = L(!1), gn = D((e, t) => {
|
|
2415
2416
|
t === At.current && requestAnimationFrame(() => requestAnimationFrame(() => {
|
|
2416
2417
|
t === At.current && (Q.current = hn.current?.contains(document.activeElement) ?? !0, Dt(t), an(e));
|
|
2417
2418
|
}));
|
|
@@ -2420,7 +2421,7 @@ var Xr = () => {
|
|
|
2420
2421
|
Q.current && (Q.current = !1, M.current?.focus());
|
|
2421
2422
|
}, [K]);
|
|
2422
2423
|
let _n = P((e) => {
|
|
2423
|
-
let { ref: t, ...n } = e, r = mt ? z.dark : z.light, i = G.status === "error" && g ? B(
|
|
2424
|
+
let { ref: t, ...n } = e, r = mt ? z.dark : z.light, i = G.status === "error" && g ? B(Ne, {
|
|
2424
2425
|
render: g,
|
|
2425
2426
|
props: {
|
|
2426
2427
|
..._,
|
|
@@ -2445,14 +2446,14 @@ var Xr = () => {
|
|
|
2445
2446
|
});
|
|
2446
2447
|
let c = null;
|
|
2447
2448
|
if (K) {
|
|
2448
|
-
let e = K, i = e.getView(), a =
|
|
2449
|
+
let e = K, i = e.getView(), a = Re ?? i?.isShowFormulaBar(), o = Ke ?? i?.isShowStatusBar(), s = Y?.source ?? M.current, l = B(Ne, {
|
|
2449
2450
|
render: j === void 0 ? sn : j,
|
|
2450
2451
|
props: {
|
|
2451
2452
|
workbook: s,
|
|
2452
2453
|
...Ye
|
|
2453
2454
|
}
|
|
2454
|
-
}), u = Qe === "bottom", p = a ? B(
|
|
2455
|
-
render:
|
|
2455
|
+
}), u = Qe === "bottom", p = a ? B(Ne, {
|
|
2456
|
+
render: He === void 0 ? f : He,
|
|
2456
2457
|
props: {
|
|
2457
2458
|
ref: Xe,
|
|
2458
2459
|
style: {
|
|
@@ -2465,42 +2466,42 @@ var Xr = () => {
|
|
|
2465
2466
|
editable: J ?? void 0,
|
|
2466
2467
|
placement: Qe,
|
|
2467
2468
|
floatOnKeyboard: $e === "float",
|
|
2468
|
-
...
|
|
2469
|
+
...Ve,
|
|
2469
2470
|
propsNamedCollectionEditor: {
|
|
2470
2471
|
restoreFocus: (e) => s?.focus(e),
|
|
2471
|
-
...
|
|
2472
|
+
...Ve?.propsNamedCollectionEditor
|
|
2472
2473
|
}
|
|
2473
2474
|
}
|
|
2474
|
-
}) : null, m = o ? B(
|
|
2475
|
-
render: Je === void 0 ?
|
|
2475
|
+
}) : null, m = o ? B(Ne, {
|
|
2476
|
+
render: Je === void 0 ? ee : Je,
|
|
2476
2477
|
props: {
|
|
2477
2478
|
childrenEnd: Qt,
|
|
2478
2479
|
...qe
|
|
2479
2480
|
}
|
|
2480
2481
|
}) : null, g = (e, r) => B(h, {
|
|
2481
|
-
...
|
|
2482
|
+
...Le,
|
|
2482
2483
|
tabIndex: 0,
|
|
2483
|
-
autoFocus: !r &&
|
|
2484
|
+
autoFocus: !r && ge,
|
|
2484
2485
|
workbook: e,
|
|
2485
2486
|
editable: r ? void 0 : J ?? void 0,
|
|
2486
2487
|
focusNameBox: r ? void 0 : Ze,
|
|
2487
2488
|
prefetch: !r && d,
|
|
2488
|
-
ref: r ? N :
|
|
2489
|
+
ref: r ? N : te([t, M]),
|
|
2489
2490
|
onWorkbookLoad: r ? (t) => gn(t, e) : an,
|
|
2490
2491
|
onKeyDown: (e) => {
|
|
2491
|
-
|
|
2492
|
+
S?.(e);
|
|
2492
2493
|
},
|
|
2493
|
-
propsWorkbookLoading:
|
|
2494
|
+
propsWorkbookLoading: Fe,
|
|
2494
2495
|
renderWorkbookLoading: null,
|
|
2495
2496
|
style: r ? {
|
|
2496
|
-
...
|
|
2497
|
+
...Le?.style,
|
|
2497
2498
|
position: "absolute",
|
|
2498
2499
|
inset: 0,
|
|
2499
2500
|
visibility: "hidden"
|
|
2500
2501
|
} : {
|
|
2501
2502
|
flex: "1 1 100%",
|
|
2502
2503
|
minHeight: 0,
|
|
2503
|
-
...
|
|
2504
|
+
...Le?.style
|
|
2504
2505
|
},
|
|
2505
2506
|
onContextMenu: (e) => e.preventDefault(),
|
|
2506
2507
|
...r ? null : n
|
|
@@ -2512,7 +2513,7 @@ var Xr = () => {
|
|
|
2512
2513
|
flex: "1 1 100%",
|
|
2513
2514
|
minWidth: 0,
|
|
2514
2515
|
minHeight: 0,
|
|
2515
|
-
...
|
|
2516
|
+
...he({
|
|
2516
2517
|
window: r.palette.background.default,
|
|
2517
2518
|
windowText: r.palette.text.primary
|
|
2518
2519
|
})
|
|
@@ -2522,7 +2523,7 @@ var Xr = () => {
|
|
|
2522
2523
|
formulaBar: p,
|
|
2523
2524
|
statusBar: m,
|
|
2524
2525
|
main: B(Br, {
|
|
2525
|
-
taskSide:
|
|
2526
|
+
taskSide: x,
|
|
2526
2527
|
persistKey: Qr,
|
|
2527
2528
|
sidebarElement: dn ? B(Te.CommandScopeProvider, {
|
|
2528
2529
|
scope: cn,
|
|
@@ -2554,9 +2555,9 @@ var Xr = () => {
|
|
|
2554
2555
|
})
|
|
2555
2556
|
});
|
|
2556
2557
|
}
|
|
2557
|
-
let l = !Y &&
|
|
2558
|
-
render:
|
|
2559
|
-
props: { ...
|
|
2558
|
+
let l = !Y && je ? B(Ne, {
|
|
2559
|
+
render: je,
|
|
2560
|
+
props: { ...Fe }
|
|
2560
2561
|
}) : null;
|
|
2561
2562
|
return V(Ct, {
|
|
2562
2563
|
sx: un,
|
|
@@ -2605,9 +2606,9 @@ var Xr = () => {
|
|
|
2605
2606
|
Ot,
|
|
2606
2607
|
Y,
|
|
2607
2608
|
Xt,
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2609
|
+
je,
|
|
2610
|
+
Fe,
|
|
2611
|
+
Le,
|
|
2611
2612
|
a,
|
|
2612
2613
|
o,
|
|
2613
2614
|
s,
|
|
@@ -2617,11 +2618,11 @@ var Xr = () => {
|
|
|
2617
2618
|
sn,
|
|
2618
2619
|
un,
|
|
2619
2620
|
dn,
|
|
2620
|
-
|
|
2621
|
+
x,
|
|
2621
2622
|
cn,
|
|
2622
|
-
|
|
2623
|
-
Be,
|
|
2623
|
+
Re,
|
|
2624
2624
|
Ve,
|
|
2625
|
+
He,
|
|
2625
2626
|
Qe,
|
|
2626
2627
|
J,
|
|
2627
2628
|
Ke,
|
|
@@ -2651,19 +2652,19 @@ var Xr = () => {
|
|
|
2651
2652
|
style: { marginRight: "8px" },
|
|
2652
2653
|
children: B("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" })
|
|
2653
2654
|
}),
|
|
2654
|
-
error: B(
|
|
2655
|
+
error: B(Oe, {
|
|
2655
2656
|
iconKey: "ErrorAlert",
|
|
2656
2657
|
style: { marginRight: "8px" }
|
|
2657
2658
|
})
|
|
2658
2659
|
},
|
|
2659
|
-
children: B(
|
|
2660
|
+
children: B(fe, {
|
|
2660
2661
|
workbook: K,
|
|
2661
|
-
children: B(
|
|
2662
|
+
children: B(le, {
|
|
2662
2663
|
renderArea: mn,
|
|
2663
2664
|
onUpdateArea: (e) => {
|
|
2664
2665
|
fn(e);
|
|
2665
2666
|
},
|
|
2666
|
-
children: B(at, { children: B(Mr, { children: B(
|
|
2667
|
+
children: B(at, { children: B(Mr, { children: B(Ie, { children: B(Ae, { children: B(kr, {
|
|
2667
2668
|
workbook: K,
|
|
2668
2669
|
initialCommandAnchor: rn,
|
|
2669
2670
|
renderWorkbook: _n,
|
|
@@ -2681,7 +2682,7 @@ var Xr = () => {
|
|
|
2681
2682
|
return vn = V(Et, {
|
|
2682
2683
|
theme: mt ? z.dark : z.light,
|
|
2683
2684
|
children: [
|
|
2684
|
-
|
|
2685
|
+
ce ? B(xt, {}) : null,
|
|
2685
2686
|
B("style", { children: ht }),
|
|
2686
2687
|
B("style", { children: gt }),
|
|
2687
2688
|
B(nt, {
|