@sheetxl/studio-mui 0.8.0-beta.11 → 0.8.0-beta.12
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/{DTpRkgsTm_zYnWfW.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/{LZoYSQAYV2wksnDv.mjs → 2nRxqrNYbmEn8fS8.mjs} +5 -5
- package/browser/esm/{DDc6rDuU9JAo1DH_.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/{DpD4fg2WcyiKX_2K.mjs → BAzhmMX4Fk_qnUTp.mjs} +5 -5
- package/browser/esm/{CBD4RiRKbbZtSXV-.mjs → BGL3x0W74D7qZXlf.mjs} +3 -3
- package/browser/esm/{D9ISy7VkaRRFJl46.mjs → BHGr2gsFofTdAFxq.mjs} +4 -4
- package/browser/esm/{BknfGJouygmnpFIU.mjs → BKhcJI-G15D3kGap.mjs} +2 -2
- package/browser/esm/{CyLn6zOOp_biA3xU.mjs → BNbub9weuqm3mcoF.mjs} +8 -8
- package/browser/esm/{CWkOgdL7mOKiTR62.mjs → BSv9MVJaz1DVEffm.mjs} +4 -4
- package/browser/esm/{BAbq4-I5f5oUiNaF.mjs → BWfLpYmd3cSgJ0C6.mjs} +4 -4
- package/browser/esm/{0BWO0bLZ8Vm_dKd2.mjs → BZqwbIE8qzjSOYcJ.mjs} +13 -13
- package/browser/esm/{ttjcNHcFn8O6hfnd.mjs → BZy9xUrYpAtnKeji.mjs} +11 -11
- package/browser/esm/{COlZu93LRwuBvjE-.mjs → BnkwC5rsg9LZyhoP.mjs} +2 -2
- package/browser/esm/{BvhYPwX3GrRaO9CM.mjs → BpJsBv413cNQpyg0.mjs} +3 -3
- package/browser/esm/{DDczwkXhz_MHub4z.mjs → BpVrgbVISiTDyFR3.mjs} +2 -2
- package/browser/esm/{DRSCS6aLiYmPjUz1.mjs → BsngRDhvVYGVBJeK.mjs} +365 -362
- package/browser/esm/{Ds3XRkne7HxcXD8J.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{BXhNFzyEGokTF-BL.mjs → C8p2iMad_NNCwGI_.mjs} +2 -2
- package/browser/esm/{G0Inqm6Eqw47dMpa.mjs → CBzXksWnb-1gGEWZ.mjs} +1 -1
- package/browser/esm/{zqilJefihVd7At2T.mjs → CFIAWgpU3UyepLBn.mjs} +7 -7
- package/browser/esm/{DG21x7RKDpge6zAE.mjs → CJD4jF4m9cBGHzr_.mjs} +1 -1
- package/browser/esm/{C9pIZVACtl9unFOp.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{HViD4Wfoi0mmqk9w.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/{Buqcl7J75MJrhpVE.mjs → CeF35ZeFP28Do5Zx.mjs} +8 -8
- package/browser/esm/{D3rRUK4dIM5gUSmj.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{BlE_8o8tO2AgAlaj.mjs → Cq82lvdjyBvlJ8xJ.mjs} +1 -1
- package/browser/esm/{DEv4pIEgYr5C7etm.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/{C8JU4KsMasmLvojI.mjs → Cvk2yY90hpgXWMAt.mjs} +1 -1
- package/browser/esm/{CynTY0oNtyJnoaBq.mjs → D0slJycx3nq53qmf.mjs} +1 -1
- package/browser/esm/{DKtJxrpN0axtuQ0l.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/{DdcZrjMLWVukWcU5.mjs → D5Fn0Hqllwv5HY6i.mjs} +768 -660
- package/browser/esm/{Bujtz_Guj88d03vI.mjs → D5N4nGaZsXtrHAOh.mjs} +6 -6
- package/browser/esm/{ChSVxkPTIjgcC8PL.mjs → D7AqPfyhMiuda5l5.mjs} +2 -2
- package/browser/esm/{BED6h6YAwCf1HEQJ.mjs → DHZA48ZMCETvHmeP.mjs} +1 -1
- package/browser/esm/{Di3BUxA0SqFWWgeg.mjs → DX2_vf7WX6uRLaOZ.mjs} +1 -1
- package/browser/esm/{DnGaP5F7mLwCGUYG.mjs → DaxpbAF1ShkT7hNU.mjs} +206 -124
- package/browser/esm/{YThnrg3PadGs7B4j.mjs → Db3oHfXiRtcH015t.mjs} +143 -137
- package/browser/esm/{C0wlMAIn9iREPK6w.mjs → Dt47Huh1l3C4_5_w.mjs} +1 -1
- package/browser/esm/{xFqkfN8QMCxvsetB.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CTjqDD-swFMZzI-Y.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{Brsh5yscJ_4uKFXp.mjs → DuuyN4-7K6_io2Py.mjs} +2 -2
- package/browser/esm/{w_JrR69vEpvoyeMy.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/{BokqKEpU6TFgfRs6.mjs → PY3Br5Bo_TxcCnCU.mjs} +2 -2
- package/browser/esm/{DV6i9RQZfJiKtEaJ.mjs → WIhvQtBkGiw-oFUs.mjs} +636 -622
- package/browser/esm/{DJOOed_OtB-XT7f3.mjs → WgIvwAENeO8LANax.mjs} +6 -6
- package/browser/esm/{BjvD_4t2KGsZP5V8.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +290 -287
- package/browser/esm/{QgaAIDUMmBQBsXP9.mjs → jFRFCWlkD7Dsrhkh.mjs} +84 -84
- package/browser/esm/{BYE9gCDWKyx6mnVs.mjs → lKXEDVt2ow1NlWJj.mjs} +114 -103
- package/browser/esm/{CEtXsBzEjEKk9GOj.mjs → oC0OwOddhOD0OoCJ.mjs} +2 -2
- package/browser/esm/{DsoNMWDwHZP8UXQd.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{ClBvNPeNCAhuVWrG.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/node/esm/{DMXLxp3T0E0SRTQc.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{3WghtBXAvCDwcVrq.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{XEDcegsv5AGKBfu2.mjs → BBGoyqs2L_ccSH1e.mjs} +2 -2
- package/node/esm/{zITjZ7R4raDqhP-n.mjs → BLv99aovW4R3C5PE.mjs} +3 -3
- package/node/esm/{DfCuL8AUxMFoEG2s.mjs → BUGU_5lUtnCRlp3n.mjs} +36 -36
- package/node/esm/{BNg4QQY0WAPLE0q7.mjs → BalROFG_oa9PFs9Q.mjs} +3 -3
- package/node/esm/{Bph-sR3l6AYWeuxK.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/{CZyA9uD4SkTvqp_G.mjs → C3FCh9xju2SccUIE.mjs} +253 -253
- package/node/esm/{Do-zCKziWhoG5eAv.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/{CSAnTp5rwId0DUb8.mjs → CKWeipCqqpLnLE5e.mjs} +127 -116
- package/node/esm/{DLqBHdFp6wvm6EGs.mjs → CTnVNfz4eqFnM92M.mjs} +1 -1
- package/node/esm/{BPzcW4BejRqso338.mjs → Cfi_ly8fBDZZdiZT.mjs} +3 -3
- package/node/esm/{Db3dbaYLKUO66T9s.mjs → CgKa6JuyJ1tTodev.mjs} +414 -400
- package/node/esm/{4HmLH0bPVJCZLgik.mjs → Cq53M7bAUSXMNq1f.mjs} +1 -1
- package/node/esm/{1bf4gn-2vld4BZ9u.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/{D-xqQ5qOSd6WrzwJ.mjs → D72CupF9mfy2D1Xa.mjs} +1 -1
- package/node/esm/{CyafafEgfmjLqE5O.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{DpJ2gmZJioCyq8La.mjs → DJFkALt4XrwkMbnU.mjs} +166 -160
- package/node/esm/{CPq-MIdEnc-53JpF.mjs → DJpwI8PlKBI2rk0r.mjs} +2 -2
- package/node/esm/{DWqvf4H5F2wMnZ0L.mjs → DQaGPUYbgL4Y5YZW.mjs} +1 -1
- package/node/esm/{CYIoK22I6Yvv12_x.mjs → DsNYnq4NtYBxPmeA.mjs} +1 -1
- package/node/esm/{yCUxQuqVuC4DHKPx.mjs → DygDgOpa9sJ6YFVS.mjs} +1 -1
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/{BIMkjQUwG4Ih-6Sh.mjs → M7YxvRPGCuxuk9aK.mjs} +1 -1
- package/node/esm/{CWcv7UVXF8IUB0PC.mjs → QNjtpX8rIpqGGLEJ.mjs} +15 -15
- package/node/esm/{DdEzhVqYTrGODXrz.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{CjC6s3RUJQNCF7mP.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/{CvRbu8JPxFarsSR-.mjs → dm8dmEaTIqfmgyeL.mjs} +5 -5
- package/node/esm/{CuMePia6i_8yfJ6S.mjs → fmya3XQnTGyQisvT.mjs} +9 -9
- package/node/esm/{BR45ogAR-hY2bE60.mjs → gPYAb_A0T5ZwcQ1E.mjs} +1 -1
- package/node/esm/index.mjs +2817 -2702
- package/node/esm/{DeZJlLk8WJ3BLtLs.mjs → wB8xMpyJ_NvE16yG.mjs} +3 -3
- package/node/esm/{BlN7G0DVC24zauig.mjs → zGAcd4Jr7wkvXDBS.mjs} +1 -1
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +3 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- 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/OperatorAndParamEditor.d.ts +1 -1
- package/types/src/conditions/OperatorSelectPopupButton.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.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/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/node/esm/B0bdb_6p7fQI_ivo.mjs +0 -236
- package/node/esm/DatM6eEYPpAtIMy-.mjs +0 -405
|
@@ -1,10 +1,10 @@
|
|
|
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.12
|
|
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 { t as e } from "./
|
|
7
|
+
import { t as e } from "./DtPt0phL7m56YfHZ.mjs";
|
|
8
8
|
import { Color as t, IBorders as n, IColor as r, ITheme as i } from "@sheetxl/sdk";
|
|
9
9
|
import { StyledStrokePath as a } from "@sheetxl/react";
|
|
10
10
|
import { DynamicIcon as o, KeyCodes as s, ReactUtils as c, lazyComponent as l, useCallbackRef as u, useTranslator as d } from "@sheetxl/utils-react";
|
|
@@ -262,7 +262,7 @@ var oe = {
|
|
|
262
262
|
a?.set(l, c);
|
|
263
263
|
let u = c.toRGBA().toString();
|
|
264
264
|
o?.set(u, c);
|
|
265
|
-
}, ce = l(F("studio:customColorPanel", () => import("./
|
|
265
|
+
}, ce = l(F("studio:customColorPanel", () => import("./C29TKq47CbXs652l.mjs")).load, { renderError: ({ error: e }) => k(w, { error: e }) }), V = m(p((e, n) => {
|
|
266
266
|
let { selectedColor: r = null, previewColor: a = e.selectedColor ?? null, recentColors: s, schemeLookup: c, disableAlpha: l = !1, previewDebounceTime: p = 100, initialPanelType: m, defaultButtonSize: v = 24, width: x, onElementLoad: S, onDone: C, onEyeDropStart: w, onEyeDropStop: T, onPreviewColor: E, onPreviewColorImmediate: D, onSelectColor: P, autoColor: F, autoColorLabel: se, autoColorLabelKey: z, autoColorPosition: V = I.Start, compareRGB: H = !1, darkMode: U = !1, style: W, ...G } = e, K = d(), le = se ?? K(z ?? ae("color.automatic")), ue = a || r, de = u(E ?? ((e) => {}), [E]), fe = u(D ?? ((e) => {}), [D]), pe = u(P ?? ((e, t) => {}), [P]), me = u(w ?? (() => {}), [w]), he = u(T ?? (() => {}), [T]), [ge, _e] = y(!1), ve = re(), q = _(() => c || t.getDefaultSchemeLookup(), [c]), J = _(() => {
|
|
267
267
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), n = [];
|
|
268
268
|
B(K("color.scheme.bg1"), "bg1", q, n, e, t), B(K("color.scheme.tx1"), "tx1", q, n, e, t), B(K("color.scheme.bg2"), "bg2", q, n, e, t), B(K("color.scheme.tx2"), "tx2", q, n, e, t), B(K("color.scheme.accent", { n: 1 }), "accent1", q, n, e, t), B(K("color.scheme.accent", { n: 2 }), "accent2", q, n, e, t), B(K("color.scheme.accent", { n: 3 }), "accent3", q, n, e, t), B(K("color.scheme.accent", { n: 4 }), "accent4", q, n, e, t), B(K("color.scheme.accent", { n: 5 }), "accent5", q, n, e, t), B(K("color.scheme.accent", { n: 6 }), "accent6", q, n, e, t);
|
|
@@ -659,7 +659,7 @@ var oe = {
|
|
|
659
659
|
x
|
|
660
660
|
]), z = {
|
|
661
661
|
onQuickClick: r ? I : void 0,
|
|
662
|
-
|
|
662
|
+
renderPopupPanel: R,
|
|
663
663
|
propsPopup: { propsPopper: { resizeOnOverflow: !1 } },
|
|
664
664
|
onPopupOpen: re,
|
|
665
665
|
onPopupClose: ne,
|
|
@@ -722,7 +722,7 @@ var K = (e) => {
|
|
|
722
722
|
})
|
|
723
723
|
});
|
|
724
724
|
}, le = m(p((e, t) => {
|
|
725
|
-
let { variant: r, showLabels: i = !1, disabled: a,
|
|
725
|
+
let { variant: r, showLabels: i = !1, disabled: a, renderPopupPanel: o, styleColor: c, selectedStyle: l, onSelectStyle: f, showNone: p = !0, darkMode: m, sx: g, ...v } = e, y = u(f ?? ((e) => {}), []), b = d(), w = h((e) => {
|
|
726
726
|
let { popupContainer: t, closeFloat: r, ...o } = e, u = [], d = n.BuiltInDefinitionsArray;
|
|
727
727
|
for (let e = 0; e < d.length; e++) {
|
|
728
728
|
let t = d[e];
|
|
@@ -823,7 +823,7 @@ var K = (e) => {
|
|
|
823
823
|
]),
|
|
824
824
|
tooltip: b("border.styleTooltip", { style: G(b, _(() => n.BuiltInDefinitions.get(l), [l])) }),
|
|
825
825
|
sx: g,
|
|
826
|
-
|
|
826
|
+
renderPopupPanel: w,
|
|
827
827
|
...v
|
|
828
828
|
};
|
|
829
829
|
return r === T.Toolbar ? k(S, { ...E }) : k(C, { ...E });
|
|
@@ -1,10 +1,10 @@
|
|
|
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.12
|
|
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 { t as e } from "./
|
|
7
|
+
import { t as e } from "./u84rSnESjxqB6gay.mjs";
|
|
8
8
|
import { formatCommentTime as t, getPersonInitials as n, useCommentThread as r } from "@sheetxl/react";
|
|
9
9
|
import { DynamicIcon as i, floatThemeScopeProps as a, useFloatSurface as o, useLanguage as s, useNotifier as c, useTranslator as l } from "@sheetxl/utils-react";
|
|
10
10
|
import { memo as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
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.12
|
|
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.
|
|
@@ -1,5 +1,5 @@
|
|
|
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.12
|
|
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.
|
|
@@ -1,54 +1,55 @@
|
|
|
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.12
|
|
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 { n as e } from "./
|
|
8
|
-
import { t } from "./
|
|
9
|
-
import { i as n } from "./
|
|
10
|
-
import { t as r } from "./
|
|
7
|
+
import { n as e } from "./7fVZXXuonYb6Z7FU.mjs";
|
|
8
|
+
import { t } from "./DHZA48ZMCETvHmeP.mjs";
|
|
9
|
+
import { i as n } from "./PY3Br5Bo_TxcCnCU.mjs";
|
|
10
|
+
import { t as r } from "./lKXEDVt2ow1NlWJj.mjs";
|
|
11
11
|
import { InputField as i } from "./index.mjs";
|
|
12
12
|
import { useModelSync as a, useWorkbook as o } from "@sheetxl/react";
|
|
13
13
|
import { DynamicIcon as s, NotifierType as c, useCallbackRef as l, useNotifier as u, useTranslator as d } from "@sheetxl/utils-react";
|
|
14
|
-
import { forwardRef as f, memo as p, useCallback as m,
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
14
|
+
import { forwardRef as f, memo as p, useCallback as m, useEffect as h, useMemo as g, useState as _ } from "react";
|
|
15
|
+
import { SimpleTooltip as v } from "@sheetxl/utils-mui";
|
|
16
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
17
|
+
import { Box as S, Button as C, Checkbox as w, Chip as T, FormControlLabel as E, FormHelperText as D, MenuItem as O, Paper as k, TextField as A, Typography as j } from "@mui/material";
|
|
18
|
+
import { messageKey as M, t as N } from "@sheetxl/utils";
|
|
19
|
+
var P = (e) => e.getType() === "formula", F = (e) => {
|
|
19
20
|
try {
|
|
20
|
-
return
|
|
21
|
+
return P(e) ? String(e.getValue() ?? "") : e.getRanges?.()?.toString() ?? "";
|
|
21
22
|
} catch {
|
|
22
23
|
return "";
|
|
23
24
|
}
|
|
24
|
-
},
|
|
25
|
+
}, I = (e) => {
|
|
25
26
|
try {
|
|
26
27
|
return e.getRanges(e.getWorksheet().getSelectedRange()).getFixed(!0).toString();
|
|
27
28
|
} catch {
|
|
28
29
|
return "";
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
+
}, L = (e, t) => t ? {
|
|
31
32
|
name: t.getName(),
|
|
32
|
-
expression:
|
|
33
|
+
expression: F(t),
|
|
33
34
|
scope: t.getScope(),
|
|
34
35
|
comment: t.getComment() ?? "",
|
|
35
36
|
hidden: t.isHidden(),
|
|
36
|
-
editable:
|
|
37
|
+
editable: P(t)
|
|
37
38
|
} : {
|
|
38
39
|
name: e.getNames().findValidName("Name"),
|
|
39
|
-
expression:
|
|
40
|
+
expression: I(e),
|
|
40
41
|
scope: null,
|
|
41
42
|
comment: "",
|
|
42
43
|
hidden: !1,
|
|
43
44
|
editable: !0
|
|
44
|
-
},
|
|
45
|
+
}, R = (e, t, n) => {
|
|
45
46
|
let r = t.name.trim(), i = t.expression.trim().replace(/^=\s*/, "").trim(), a = t.comment.trim(), o = t.scope || null;
|
|
46
|
-
if (!r) throw Error(
|
|
47
|
-
if (!i) throw Error(
|
|
47
|
+
if (!r) throw Error(N("error.named.nameEmpty"));
|
|
48
|
+
if (!i) throw Error(N("named.expressionRequired"));
|
|
48
49
|
if (n !== null) {
|
|
49
50
|
if (r.toLowerCase() !== n.getName().toLowerCase() && e.getNames().validateName(r, o ?? void 0), (n.getScope() ?? null) !== o) {
|
|
50
|
-
if (!t.editable || !n.delete) throw Error(
|
|
51
|
-
let s = e.getTransactions().beginCommit({ description:
|
|
51
|
+
if (!t.editable || !n.delete) throw Error(N("error.named.nameReadonly"));
|
|
52
|
+
let s = e.getTransactions().beginCommit({ description: N("op.updateNamed", { name: r }) });
|
|
52
53
|
try {
|
|
53
54
|
n.delete(), e.getCalculation().getNamedFormulas().add({
|
|
54
55
|
name: r,
|
|
@@ -63,8 +64,8 @@ var A = (e) => e.getType() === "formula", j = (e) => {
|
|
|
63
64
|
return;
|
|
64
65
|
}
|
|
65
66
|
n.doBatch(() => {
|
|
66
|
-
r !== n.getName() && n.setName(r), t.editable && i !==
|
|
67
|
-
}, { description:
|
|
67
|
+
r !== n.getName() && n.setName(r), t.editable && i !== F(n) && n.setExpression(i), (n.getComment() ?? "") !== a && n.setComment(a || null), n.isHidden() !== t.hidden && n.setHidden?.(t.hidden);
|
|
68
|
+
}, { description: N("op.updateNamed", { name: r }) });
|
|
68
69
|
} else e.getCalculation().getNamedFormulas().add({
|
|
69
70
|
name: r,
|
|
70
71
|
expression: i,
|
|
@@ -72,26 +73,26 @@ var A = (e) => e.getType() === "formula", j = (e) => {
|
|
|
72
73
|
comment: a || void 0,
|
|
73
74
|
hidden: t.hidden || void 0
|
|
74
75
|
});
|
|
75
|
-
},
|
|
76
|
+
}, z = {
|
|
76
77
|
table: "Table",
|
|
77
78
|
range: "NamedRange",
|
|
78
79
|
formula: "Function"
|
|
79
|
-
},
|
|
80
|
-
table:
|
|
81
|
-
range:
|
|
82
|
-
formula:
|
|
83
|
-
},
|
|
84
|
-
if (!
|
|
80
|
+
}, B = {
|
|
81
|
+
table: M("named.kindTable"),
|
|
82
|
+
range: M("named.kindRange"),
|
|
83
|
+
formula: M("named.kindFormula")
|
|
84
|
+
}, V = (e) => {
|
|
85
|
+
if (!P(e)) return "table";
|
|
85
86
|
try {
|
|
86
87
|
return e.getRanges?.() ? "range" : "formula";
|
|
87
88
|
} catch {
|
|
88
89
|
return "formula";
|
|
89
90
|
}
|
|
90
|
-
},
|
|
91
|
+
}, H = p((e) => {
|
|
91
92
|
let { kind: n, size: r = 28, ...i } = e, a = d();
|
|
92
|
-
return
|
|
93
|
+
return b(t, {
|
|
93
94
|
className: "sxl-named-kind-chip",
|
|
94
|
-
title: a(
|
|
95
|
+
title: a(B[n]),
|
|
95
96
|
sx: {
|
|
96
97
|
width: "auto",
|
|
97
98
|
minWidth: 1.7 * r + "px",
|
|
@@ -99,15 +100,15 @@ var A = (e) => e.getType() === "formula", j = (e) => {
|
|
|
99
100
|
color: n === "table" ? "primary.main" : "text.secondary"
|
|
100
101
|
},
|
|
101
102
|
...i,
|
|
102
|
-
children:
|
|
103
|
-
iconKey:
|
|
103
|
+
children: b(s, {
|
|
104
|
+
iconKey: z[n],
|
|
104
105
|
size: Math.round(.7 * r)
|
|
105
106
|
})
|
|
106
107
|
});
|
|
107
108
|
});
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
let { draft: r, workbook: a } = t, o = d(), [s] =
|
|
109
|
+
H.displayName = "NamedKindChip";
|
|
110
|
+
var U = "workbook", W = p((t) => {
|
|
111
|
+
let { draft: r, workbook: a } = t, o = d(), [s] = _(() => r.name), [c] = _(() => r.expression), [u, f] = _(null), [p, m] = _(() => r.scope), [h, v] = _(() => r.comment), [y, C] = _(() => r.hidden), [T, M] = _(() => r.editable ? ((e, t) => {
|
|
111
112
|
let n = t.trim().replace(/^=\s*/, "");
|
|
112
113
|
if (!n) return "formula";
|
|
113
114
|
try {
|
|
@@ -121,14 +122,14 @@ var z = "workbook", B = p((t) => {
|
|
|
121
122
|
a,
|
|
122
123
|
s,
|
|
123
124
|
p
|
|
124
|
-
]), F =
|
|
125
|
+
]), F = g(() => {
|
|
125
126
|
try {
|
|
126
127
|
return a.getWorksheets().getItems().map((e) => e.getName());
|
|
127
128
|
} catch {
|
|
128
129
|
return [];
|
|
129
130
|
}
|
|
130
131
|
}, [a]);
|
|
131
|
-
return
|
|
132
|
+
return b(k, {
|
|
132
133
|
tabIndex: 0,
|
|
133
134
|
className: n["editor-panel"],
|
|
134
135
|
sx: {
|
|
@@ -141,7 +142,7 @@ var z = "workbook", B = p((t) => {
|
|
|
141
142
|
borderRadius: (e) => e.spacing(1.25),
|
|
142
143
|
overflow: "auto"
|
|
143
144
|
},
|
|
144
|
-
children:
|
|
145
|
+
children: x(S, {
|
|
145
146
|
sx: {
|
|
146
147
|
display: "flex",
|
|
147
148
|
flexDirection: "column",
|
|
@@ -149,16 +150,16 @@ var z = "workbook", B = p((t) => {
|
|
|
149
150
|
margin: (e) => e.spacing(1.25)
|
|
150
151
|
},
|
|
151
152
|
children: [
|
|
152
|
-
|
|
153
|
+
x(S, { children: [x(S, {
|
|
153
154
|
sx: {
|
|
154
155
|
display: "flex",
|
|
155
156
|
alignItems: "flex-end",
|
|
156
157
|
gap: (e) => e.spacing(1.5)
|
|
157
158
|
},
|
|
158
|
-
children: [
|
|
159
|
-
kind:
|
|
159
|
+
children: [b(H, {
|
|
160
|
+
kind: T,
|
|
160
161
|
size: 48
|
|
161
|
-
}),
|
|
162
|
+
}), b(i, {
|
|
162
163
|
label: o("named.name"),
|
|
163
164
|
sx: {
|
|
164
165
|
flex: "1 1 auto",
|
|
@@ -174,7 +175,7 @@ var z = "workbook", B = p((t) => {
|
|
|
174
175
|
r.name = e;
|
|
175
176
|
}
|
|
176
177
|
})]
|
|
177
|
-
}),
|
|
178
|
+
}), b(D, {
|
|
178
179
|
error: !!u,
|
|
179
180
|
sx: {
|
|
180
181
|
marginTop: (e) => e.spacing(.5),
|
|
@@ -182,7 +183,7 @@ var z = "workbook", B = p((t) => {
|
|
|
182
183
|
},
|
|
183
184
|
children: u ? o(u) : " "
|
|
184
185
|
})] }),
|
|
185
|
-
|
|
186
|
+
b(e, {
|
|
186
187
|
label: o("named.refersTo"),
|
|
187
188
|
value: c,
|
|
188
189
|
workbook: a,
|
|
@@ -197,27 +198,27 @@ var z = "workbook", B = p((t) => {
|
|
|
197
198
|
e && M(e.isReferenceOnly() ? "range" : "formula");
|
|
198
199
|
}
|
|
199
200
|
}),
|
|
200
|
-
|
|
201
|
+
x(A, {
|
|
201
202
|
label: o("named.scope"),
|
|
202
203
|
size: "small",
|
|
203
204
|
fullWidth: !0,
|
|
204
205
|
select: !0,
|
|
205
206
|
disabled: N,
|
|
206
|
-
value: p ??
|
|
207
|
+
value: p ?? U,
|
|
207
208
|
helperText: o("named.scopeHelp"),
|
|
208
209
|
onChange: (e) => {
|
|
209
|
-
let t = e.target.value ===
|
|
210
|
+
let t = e.target.value === U ? null : e.target.value;
|
|
210
211
|
m(t), r.scope = t;
|
|
211
212
|
},
|
|
212
|
-
children: [
|
|
213
|
-
value:
|
|
213
|
+
children: [b(O, {
|
|
214
|
+
value: U,
|
|
214
215
|
children: o("named.scopeWorkbook")
|
|
215
|
-
}), F.map((e) =>
|
|
216
|
+
}), F.map((e) => b(O, {
|
|
216
217
|
value: e,
|
|
217
218
|
children: e
|
|
218
219
|
}, e))]
|
|
219
220
|
}),
|
|
220
|
-
|
|
221
|
+
b(A, {
|
|
221
222
|
label: o("named.comment"),
|
|
222
223
|
size: "small",
|
|
223
224
|
fullWidth: !0,
|
|
@@ -225,26 +226,26 @@ var z = "workbook", B = p((t) => {
|
|
|
225
226
|
minRows: 2,
|
|
226
227
|
maxRows: 4,
|
|
227
228
|
disabled: N,
|
|
228
|
-
value:
|
|
229
|
+
value: h,
|
|
229
230
|
onChange: (e) => {
|
|
230
|
-
|
|
231
|
+
v(e.target.value), r.comment = e.target.value;
|
|
231
232
|
}
|
|
232
233
|
}),
|
|
233
|
-
|
|
234
|
-
control:
|
|
234
|
+
b(E, {
|
|
235
|
+
control: b(w, {
|
|
235
236
|
size: "small",
|
|
236
237
|
disabled: N,
|
|
237
|
-
checked:
|
|
238
|
+
checked: y,
|
|
238
239
|
onChange: (e) => {
|
|
239
|
-
|
|
240
|
+
C(e.target.checked), r.hidden = e.target.checked;
|
|
240
241
|
}
|
|
241
242
|
}),
|
|
242
|
-
label:
|
|
243
|
+
label: b(j, {
|
|
243
244
|
variant: "body2",
|
|
244
245
|
children: o("named.hidden")
|
|
245
246
|
})
|
|
246
247
|
}),
|
|
247
|
-
|
|
248
|
+
b(j, {
|
|
248
249
|
variant: "caption",
|
|
249
250
|
sx: {
|
|
250
251
|
color: "text.secondary",
|
|
@@ -252,7 +253,7 @@ var z = "workbook", B = p((t) => {
|
|
|
252
253
|
},
|
|
253
254
|
children: o("named.hiddenHelp")
|
|
254
255
|
}),
|
|
255
|
-
N ?
|
|
256
|
+
N ? b(j, {
|
|
256
257
|
variant: "caption",
|
|
257
258
|
sx: {
|
|
258
259
|
color: "text.secondary",
|
|
@@ -264,21 +265,21 @@ var z = "workbook", B = p((t) => {
|
|
|
264
265
|
})
|
|
265
266
|
});
|
|
266
267
|
});
|
|
267
|
-
|
|
268
|
-
var
|
|
268
|
+
W.displayName = "NamedEditorPanel";
|
|
269
|
+
var G = p((t) => {
|
|
269
270
|
let { named: n, label: r, helperText: i } = t, s = d(), l = u(), f = o();
|
|
270
271
|
a(n, ["onAnyChange", "onRangesChange"]);
|
|
271
|
-
let p =
|
|
272
|
+
let p = P(n) && !n.isReadOnly() && (f?.getProtection().isStructureAllowed() ?? !0), h = m((e, t) => {
|
|
272
273
|
if (t.reason !== "accept") return;
|
|
273
274
|
let r = e?.getExpression()?.trim();
|
|
274
|
-
if (r && r !==
|
|
275
|
+
if (r && r !== F(n)) try {
|
|
275
276
|
n.setExpression(r);
|
|
276
277
|
} catch (e) {
|
|
277
278
|
l.showMessage?.(e.message, { type: c.Error });
|
|
278
279
|
}
|
|
279
280
|
}, [n, l]);
|
|
280
|
-
return
|
|
281
|
-
value:
|
|
281
|
+
return b(e, {
|
|
282
|
+
value: F(n),
|
|
282
283
|
equals: "required",
|
|
283
284
|
pickAs: "absolute",
|
|
284
285
|
changeOn: "done",
|
|
@@ -288,39 +289,117 @@ var V = p((t) => {
|
|
|
288
289
|
disabled: !p
|
|
289
290
|
});
|
|
290
291
|
});
|
|
291
|
-
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
292
|
+
G.displayName = "NamedExpressionField";
|
|
293
|
+
var K = /^_xlnm\./i, q = (e) => {
|
|
294
|
+
if (!e) return 0;
|
|
295
|
+
let t = e.getCoords(), n = 0;
|
|
296
|
+
for (let r = 0; r < e.getCount(); r++) {
|
|
297
|
+
if (e.at(r).isINamedRange) {
|
|
298
|
+
n++;
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
let i = t[r];
|
|
302
|
+
n += (i.rowEnd - i.rowStart + 1) * (i.colEnd - i.colStart + 1);
|
|
303
|
+
}
|
|
304
|
+
return n;
|
|
305
|
+
}, J = ({ item: e, workbook: t }) => {
|
|
306
|
+
let n = d(), r = ((e, t) => {
|
|
307
|
+
let [n, r] = _(null);
|
|
308
|
+
return h(() => {
|
|
309
|
+
let n = e;
|
|
310
|
+
if (typeof n.getDirectDependents != "function") return;
|
|
311
|
+
let i = !0, a = () => {
|
|
312
|
+
n.getDirectDependents().then((e) => {
|
|
313
|
+
i && r(q(e));
|
|
314
|
+
}).catch(() => {});
|
|
315
|
+
};
|
|
316
|
+
a();
|
|
317
|
+
let o = t.getCalculation().addListeners({ onComplete: a }, { transactional: !1 });
|
|
318
|
+
return () => {
|
|
319
|
+
i = !1, o?.();
|
|
320
|
+
};
|
|
321
|
+
}, [e, t]), n;
|
|
322
|
+
})(e, t), i = e.getScope(), a = e.getComment(), o = r !== null && !K.test(e.getName()), s = [i ? n("named.scopedTo", { scope: i }) : n("named.scopeWorkbook")];
|
|
323
|
+
return e.isHidden() && s.push(n("named.hidden")), x(y, { children: [x(S, {
|
|
324
|
+
sx: {
|
|
325
|
+
display: "flex",
|
|
326
|
+
alignItems: "center",
|
|
327
|
+
gap: 1
|
|
328
|
+
},
|
|
329
|
+
children: [b(j, {
|
|
330
|
+
variant: "caption",
|
|
331
|
+
sx: {
|
|
332
|
+
flex: "1 1 auto",
|
|
333
|
+
color: (e) => e.palette.text.secondary
|
|
334
|
+
},
|
|
335
|
+
children: s.join(" · ")
|
|
336
|
+
}), o ? b(v, {
|
|
337
|
+
disableInteractive: !0,
|
|
338
|
+
title: n("named.references", { count: r }),
|
|
339
|
+
children: b(T, {
|
|
340
|
+
size: "small",
|
|
341
|
+
variant: "outlined",
|
|
342
|
+
label: r.toLocaleString(),
|
|
343
|
+
"aria-label": n("named.references", { count: r }),
|
|
344
|
+
sx: {
|
|
345
|
+
height: 20,
|
|
346
|
+
color: r === 0 ? "text.disabled" : void 0
|
|
347
|
+
}
|
|
348
|
+
})
|
|
349
|
+
}) : null]
|
|
350
|
+
}), a ? b(j, {
|
|
299
351
|
variant: "caption",
|
|
300
352
|
sx: {
|
|
301
353
|
color: (e) => e.palette.text.secondary,
|
|
302
354
|
fontStyle: "italic"
|
|
303
355
|
},
|
|
304
|
-
children:
|
|
356
|
+
children: a
|
|
305
357
|
}) : null] });
|
|
306
|
-
},
|
|
307
|
-
let { workbook: n, args: i, ...a } = e, o = d(),
|
|
358
|
+
}, Y = p(f((e, t) => {
|
|
359
|
+
let { workbook: n, args: i, ...a } = e, o = d(), s = u(), l = ((e) => {
|
|
360
|
+
let [t, n] = _(0), [r, i] = _(0);
|
|
361
|
+
return h(() => {
|
|
362
|
+
let t = () => i((e) => e + 1), n = e.getNames().addListeners({
|
|
363
|
+
onCollectionChange: t,
|
|
364
|
+
onInvalidated: t
|
|
365
|
+
}, { transactional: !1 }), r = e.getCalculation().addListeners({ onComplete: t }, { transactional: !1 });
|
|
366
|
+
return () => {
|
|
367
|
+
n?.(), r?.();
|
|
368
|
+
};
|
|
369
|
+
}, [e]), h(() => {
|
|
370
|
+
if (!e.getProtection().isStructureAllowed()) return void n(0);
|
|
371
|
+
let t = !0;
|
|
372
|
+
return e.getNames().removeUnused({
|
|
373
|
+
hiddenOnly: !0,
|
|
374
|
+
dryRun: !0
|
|
375
|
+
}).then((e) => {
|
|
376
|
+
t && n(e);
|
|
377
|
+
}).catch(() => {}), () => {
|
|
378
|
+
t = !1;
|
|
379
|
+
};
|
|
380
|
+
}, [e, r]), {
|
|
381
|
+
count: t,
|
|
382
|
+
remove: m(async () => {
|
|
383
|
+
await e.getNames().removeUnused({ hiddenOnly: !0 });
|
|
384
|
+
}, [e])
|
|
385
|
+
};
|
|
386
|
+
})(n), f = g(() => ((e) => ({
|
|
308
387
|
key: "named",
|
|
309
388
|
messageKeys: {
|
|
310
|
-
none:
|
|
311
|
-
addPrompt:
|
|
312
|
-
heading:
|
|
313
|
-
insert:
|
|
314
|
-
new:
|
|
315
|
-
edit:
|
|
316
|
-
delete:
|
|
317
|
-
cancel:
|
|
318
|
-
save:
|
|
319
|
-
search:
|
|
320
|
-
clearSearch:
|
|
321
|
-
noMatches:
|
|
389
|
+
none: M("named.none"),
|
|
390
|
+
addPrompt: M("named.addPrompt"),
|
|
391
|
+
heading: M("named.heading"),
|
|
392
|
+
insert: M("named.insert"),
|
|
393
|
+
new: M("named.new"),
|
|
394
|
+
edit: M("named.edit"),
|
|
395
|
+
delete: M("named.delete"),
|
|
396
|
+
cancel: M("named.cancel"),
|
|
397
|
+
save: M("named.save"),
|
|
398
|
+
search: M("named.search"),
|
|
399
|
+
clearSearch: M("named.clearSearch"),
|
|
400
|
+
noMatches: M("named.noMatches")
|
|
322
401
|
},
|
|
323
|
-
getItems: (
|
|
402
|
+
getItems: (e) => e.getNames().getItems(),
|
|
324
403
|
subscribe: (e, t) => {
|
|
325
404
|
let n = e.getNames().addListeners({
|
|
326
405
|
onCollectionChange: () => t.onChange(),
|
|
@@ -334,14 +413,14 @@ var H = ({ item: e }) => {
|
|
|
334
413
|
};
|
|
335
414
|
},
|
|
336
415
|
isReadOnly: (e) => !e.getProtection().isStructureAllowed(),
|
|
337
|
-
isItemReadOnly: (e, t) => !t.getProtection().isStructureAllowed() ||
|
|
416
|
+
isItemReadOnly: (e, t) => !t.getProtection().isStructureAllowed() || V(e) === "table" || e.isReadOnly(),
|
|
338
417
|
getItemKey: (e) => e.getId(),
|
|
339
418
|
subscribeItem: (e, t) => e.addListeners({
|
|
340
419
|
onAnyChange: () => t(),
|
|
341
420
|
onInvalidated: () => t()
|
|
342
421
|
}, { transactional: !1 }),
|
|
343
|
-
createDraft:
|
|
344
|
-
save:
|
|
422
|
+
createDraft: L,
|
|
423
|
+
save: R,
|
|
345
424
|
delete: (e) => {
|
|
346
425
|
e.delete?.();
|
|
347
426
|
},
|
|
@@ -350,59 +429,62 @@ var H = ({ item: e }) => {
|
|
|
350
429
|
},
|
|
351
430
|
getSearchText: (e, t) => [
|
|
352
431
|
e.getName(),
|
|
353
|
-
|
|
432
|
+
F(e),
|
|
354
433
|
e.getScope() ?? t("named.scopeWorkbook"),
|
|
355
434
|
e.getComment() ?? ""
|
|
356
435
|
].join("\n"),
|
|
357
436
|
getCardTitle: (e) => e.getName(),
|
|
358
|
-
CardMedia: ({ item: e }) =>
|
|
359
|
-
kind:
|
|
437
|
+
CardMedia: ({ item: e }) => b(H, {
|
|
438
|
+
kind: V(e),
|
|
360
439
|
size: 32
|
|
361
440
|
}),
|
|
362
|
-
CardSubtitle: ({ item: e }) =>
|
|
441
|
+
CardSubtitle: ({ item: e }) => b(G, {
|
|
363
442
|
named: e,
|
|
364
443
|
label: null,
|
|
365
444
|
helperText: null
|
|
366
445
|
}),
|
|
367
|
-
CardBody:
|
|
368
|
-
|
|
446
|
+
CardBody: (t) => b(J, {
|
|
447
|
+
...t,
|
|
448
|
+
workbook: e
|
|
449
|
+
}),
|
|
450
|
+
EditorBody: ({ draft: e, workbook: t }) => b(W, {
|
|
369
451
|
draft: e,
|
|
370
452
|
workbook: t
|
|
371
453
|
})
|
|
372
|
-
}))(
|
|
454
|
+
}))(n), [n]), p = g(() => l.count === 0 ? null : b(C, {
|
|
455
|
+
size: "small",
|
|
373
456
|
sx: {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
marginRight: 0,
|
|
377
|
-
whiteSpace: "nowrap"
|
|
457
|
+
textTransform: "none",
|
|
458
|
+
width: "100%"
|
|
378
459
|
},
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
460
|
+
onClick: () => {
|
|
461
|
+
l.remove().catch((e) => {
|
|
462
|
+
s.showMessage?.(e.message, { type: c.Error });
|
|
463
|
+
});
|
|
464
|
+
},
|
|
465
|
+
children: o("named.removeUnusedHidden", { count: l.count })
|
|
466
|
+
}), [
|
|
467
|
+
l,
|
|
468
|
+
s,
|
|
469
|
+
o
|
|
470
|
+
]);
|
|
471
|
+
return b(r, {
|
|
390
472
|
ref: t,
|
|
391
473
|
workbook: n,
|
|
392
|
-
descriptor:
|
|
474
|
+
descriptor: f,
|
|
393
475
|
args: i,
|
|
394
|
-
|
|
476
|
+
footer: p,
|
|
395
477
|
...a
|
|
396
478
|
});
|
|
397
479
|
}));
|
|
398
|
-
|
|
399
|
-
var
|
|
480
|
+
Y.displayName = "NamedDetailsPanel";
|
|
481
|
+
var X = (e) => {
|
|
400
482
|
let { model: t, entryKey: n, frame: r, args: i, ref: a, ...o } = e;
|
|
401
|
-
return
|
|
483
|
+
return b(Y, {
|
|
402
484
|
ref: a,
|
|
403
485
|
workbook: t,
|
|
404
486
|
args: i,
|
|
405
487
|
...o
|
|
406
488
|
});
|
|
407
489
|
};
|
|
408
|
-
export {
|
|
490
|
+
export { X as NamedDetailsTaskPane };
|