@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 { a as t, i as e, n as a, r as i } from "./
|
|
7
|
+
import { a as t, i as e, n as a, r as i } from "./DJFkALt4XrwkMbnU.mjs";
|
|
8
8
|
import { useTranslator as o } from "@sheetxl/utils-react";
|
|
9
9
|
import { useCallback as r, useState as s } from "react";
|
|
10
10
|
import { InternalWindow as n } from "@sheetxl/utils-mui";
|
|
@@ -1,12 +1,12 @@
|
|
|
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, r as t, t as
|
|
8
|
-
import { ItemCard as
|
|
9
|
-
import { DynamicIcon as
|
|
7
|
+
import { n as e, r as t, t as r } from "./M7YxvRPGCuxuk9aK.mjs";
|
|
8
|
+
import { ItemCard as a, ItemsSearchField as n, c as s, o as i } from "./index.mjs";
|
|
9
|
+
import { DynamicIcon as o, NotifierType as l, useNotifier as c, useTranslator as d } from "@sheetxl/utils-react";
|
|
10
10
|
import { forwardRef as p, memo as g, useCallback as u, useEffect as m, useMemo as f, useReducer as h, useRef as x, useState as y } from "react";
|
|
11
11
|
import { SimpleTooltip as v } from "@sheetxl/utils-mui";
|
|
12
12
|
import { jsx as b, jsxs as w } from "react/jsx-runtime";
|
|
@@ -14,13 +14,13 @@ import { Box as C, Button as M, IconButton as S, Typography as B } from "@mui/ma
|
|
|
14
14
|
import D from "clsx";
|
|
15
15
|
import { useMergeRefs as I } from "react-merge-refs";
|
|
16
16
|
var k = g((e) => {
|
|
17
|
-
const { children: t, messageKeys:
|
|
17
|
+
const { children: t, messageKeys: r, onSave: a, onCancel: n, className: o, ...l } = e, c = d(), p = x(/* @__PURE__ */ new Set()), g = f(() => ({ register: (e) => (p.current.add(e), () => {
|
|
18
18
|
p.current.delete(e);
|
|
19
19
|
}) }), []), m = u(() => {
|
|
20
20
|
let e = !0;
|
|
21
21
|
for (const t of Array.from(p.current)) t() || (e = !1);
|
|
22
|
-
e &&
|
|
23
|
-
}, [
|
|
22
|
+
e && a();
|
|
23
|
+
}, [a]), h = f(() => D("sxl-items-editor", "sxl-anchor-items-editor", o, {}, s.editor), [o]);
|
|
24
24
|
return w(C, {
|
|
25
25
|
sx: {
|
|
26
26
|
display: "flex",
|
|
@@ -29,7 +29,7 @@ var k = g((e) => {
|
|
|
29
29
|
height: "100%",
|
|
30
30
|
gap: (e) => e.spacing(2)
|
|
31
31
|
},
|
|
32
|
-
...
|
|
32
|
+
...l,
|
|
33
33
|
className: h,
|
|
34
34
|
children: [b(i.Provider, {
|
|
35
35
|
value: g,
|
|
@@ -51,11 +51,11 @@ var k = g((e) => {
|
|
|
51
51
|
children: [b(M, {
|
|
52
52
|
variant: "outlined",
|
|
53
53
|
onClick: n,
|
|
54
|
-
children: c(
|
|
54
|
+
children: c(r.cancel)
|
|
55
55
|
}), b(M, {
|
|
56
56
|
variant: "contained",
|
|
57
57
|
onClick: m,
|
|
58
|
-
children: c(
|
|
58
|
+
children: c(r.save)
|
|
59
59
|
})]
|
|
60
60
|
})
|
|
61
61
|
})]
|
|
@@ -63,85 +63,85 @@ var k = g((e) => {
|
|
|
63
63
|
});
|
|
64
64
|
k.displayName = "EditorPanel";
|
|
65
65
|
var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
66
|
-
const { title: g, workbook: N, descriptor: j, args: O, headerActions: K, listActions: L,
|
|
67
|
-
const { createDraft: e, save: t, EditorBody:
|
|
68
|
-
return e && t &&
|
|
66
|
+
const { title: g, workbook: N, descriptor: j, args: O, headerActions: K, listActions: L, footer: P, dragReorder: A = !1, className: F, ...W } = i, $ = d(), U = c(), X = j.messageKeys, Y = f(() => {
|
|
67
|
+
const { createDraft: e, save: t, EditorBody: r } = j;
|
|
68
|
+
return e && t && r && X.cancel && X.save ? {
|
|
69
69
|
createDraft: e,
|
|
70
70
|
commit: t,
|
|
71
|
-
EditorBody:
|
|
71
|
+
EditorBody: r,
|
|
72
72
|
keys: {
|
|
73
|
-
cancel:
|
|
74
|
-
save:
|
|
73
|
+
cancel: X.cancel,
|
|
74
|
+
save: X.save
|
|
75
75
|
}
|
|
76
76
|
} : null;
|
|
77
|
-
}, [j,
|
|
77
|
+
}, [j, X]), [q, z] = y(!1), [G, H] = y(null), [J, Q] = y(""), V = x(null), Z = x(null), [_, ee] = h((e) => e + 1, 0);
|
|
78
78
|
m(() => j.subscribe(N, {
|
|
79
|
-
onChange: () =>
|
|
79
|
+
onChange: () => ee(),
|
|
80
80
|
onInvalidated: () => {
|
|
81
|
-
|
|
81
|
+
H(null), ee();
|
|
82
82
|
}
|
|
83
83
|
}), [N, j]);
|
|
84
|
-
const
|
|
84
|
+
const te = x(void 0);
|
|
85
85
|
m(() => {
|
|
86
|
-
if (
|
|
87
|
-
|
|
86
|
+
if (te.current === O) return;
|
|
87
|
+
te.current = O;
|
|
88
88
|
const e = O?.draft;
|
|
89
89
|
try {
|
|
90
|
-
let t = null,
|
|
91
|
-
void 0 !== e ? j.isReadOnly(N) || (t = j.createSeededDraft?.(N, e) ?? null) : O?.insert &&
|
|
90
|
+
let t = null, r = null;
|
|
91
|
+
void 0 !== e ? j.isReadOnly(N) || (t = j.createSeededDraft?.(N, e) ?? null) : O?.insert && Y && !j.isReadOnly(N) ? t = Y.createDraft(N) : void 0 !== O?.edit && Y && !j.isReadOnly(N) && (r = O.edit, t = Y.createDraft(N, r)), t && H({
|
|
92
92
|
draft: t,
|
|
93
|
-
target:
|
|
93
|
+
target: r
|
|
94
94
|
});
|
|
95
95
|
} catch (e) {
|
|
96
|
-
|
|
96
|
+
U.showMessage?.(e.message, { type: l.Error });
|
|
97
97
|
}
|
|
98
98
|
}, [
|
|
99
99
|
O,
|
|
100
100
|
N,
|
|
101
101
|
j,
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Y,
|
|
103
|
+
U
|
|
104
104
|
]);
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const ae = j.isReadOnly(N),
|
|
108
|
-
t(
|
|
109
|
-
const
|
|
110
|
-
const
|
|
111
|
-
if (void 0 !==
|
|
112
|
-
|
|
105
|
+
const re = x(N);
|
|
106
|
+
re.current !== N && (re.current = N, null !== G && H(null));
|
|
107
|
+
const ae = j.isReadOnly(N), ne = !ae && null !== Y, se = A && !ae && !!j.moveBy, ie = x(!1);
|
|
108
|
+
t(Z, se, ie);
|
|
109
|
+
const oe = u((e, t) => {
|
|
110
|
+
const r = j.getItems(N)[e];
|
|
111
|
+
if (void 0 !== r) {
|
|
112
|
+
ie.current = !0;
|
|
113
113
|
try {
|
|
114
|
-
j.moveBy(
|
|
114
|
+
j.moveBy(r, t - e, N);
|
|
115
115
|
} catch (e) {
|
|
116
|
-
|
|
116
|
+
ie.current = !1, U.showMessage?.(e.message, { type: l.Error });
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}, [
|
|
120
120
|
j,
|
|
121
121
|
N,
|
|
122
|
-
|
|
122
|
+
U
|
|
123
123
|
]), le = u(async () => {
|
|
124
|
-
if (
|
|
124
|
+
if (G && Y) {
|
|
125
125
|
try {
|
|
126
|
-
await j.beforeSave?.(
|
|
127
|
-
const e = j.validate?.(
|
|
128
|
-
if (e) return void
|
|
129
|
-
await
|
|
126
|
+
await j.beforeSave?.(G.draft);
|
|
127
|
+
const e = j.validate?.(G.draft) ?? null;
|
|
128
|
+
if (e) return void U.showMessage?.($(e), { type: l.Error });
|
|
129
|
+
await Y.commit(N, G.draft, G.target);
|
|
130
130
|
} catch (e) {
|
|
131
|
-
|
|
131
|
+
U.showMessage?.(e.message, { type: l.Error });
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
H(null);
|
|
135
135
|
}
|
|
136
136
|
}, [
|
|
137
|
-
|
|
137
|
+
G,
|
|
138
138
|
j,
|
|
139
|
-
|
|
139
|
+
Y,
|
|
140
140
|
N,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
]),
|
|
144
|
-
const t = j.getItems(N), s = !!j.getSearchText, i = s ?
|
|
141
|
+
U,
|
|
142
|
+
$
|
|
143
|
+
]), ce = f(() => {
|
|
144
|
+
const t = j.getItems(N), s = !!j.getSearchText, i = s ? J.trim().toLowerCase() : "", c = i ? t.filter((e) => j.getSearchText(e, $).toLowerCase().includes(i)) : t, d = se && !i, p = [];
|
|
145
145
|
if (0 === t.length) return p.push(b(C, { sx: { flex: "1 1 0" } }, "spacer-top")), p.push(w(C, {
|
|
146
146
|
sx: {
|
|
147
147
|
display: "flex",
|
|
@@ -155,17 +155,17 @@ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
|
155
155
|
children: [b(B, {
|
|
156
156
|
variant: "body2",
|
|
157
157
|
align: "center",
|
|
158
|
-
children:
|
|
159
|
-
}),
|
|
158
|
+
children: ne && X.addPrompt ? $(X.addPrompt) : $(X.none)
|
|
159
|
+
}), ne && X.new && b(M, {
|
|
160
160
|
variant: "contained",
|
|
161
161
|
sx: { textTransform: "none" },
|
|
162
162
|
onClick: () => {
|
|
163
|
-
|
|
164
|
-
draft:
|
|
163
|
+
H({
|
|
164
|
+
draft: Y.createDraft(N),
|
|
165
165
|
target: null
|
|
166
166
|
});
|
|
167
167
|
},
|
|
168
|
-
children:
|
|
168
|
+
children: $(X.new)
|
|
169
169
|
})]
|
|
170
170
|
}, "no-items")), p.push(b(C, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), (K || L) && p.unshift(w(C, {
|
|
171
171
|
sx: {
|
|
@@ -185,31 +185,31 @@ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
|
185
185
|
children: [
|
|
186
186
|
b(C, {
|
|
187
187
|
sx: { flex: "1 1 100%" },
|
|
188
|
-
children:
|
|
188
|
+
children: X.heading ? b(B, {
|
|
189
189
|
variant: "body2",
|
|
190
|
-
children:
|
|
190
|
+
children: $(X.heading)
|
|
191
191
|
}) : null
|
|
192
192
|
}),
|
|
193
193
|
K,
|
|
194
|
-
|
|
194
|
+
ne && X.insert && b(v, {
|
|
195
195
|
disableInteractive: !0,
|
|
196
|
-
title:
|
|
196
|
+
title: $(X.insert),
|
|
197
197
|
children: b(S, {
|
|
198
198
|
onClick: (e) => {
|
|
199
|
-
e.stopPropagation(),
|
|
200
|
-
draft:
|
|
199
|
+
e.stopPropagation(), H({
|
|
200
|
+
draft: Y.createDraft(N),
|
|
201
201
|
target: null
|
|
202
202
|
});
|
|
203
203
|
},
|
|
204
|
-
children: b(
|
|
204
|
+
children: b(o, { iconKey: "Insert" })
|
|
205
205
|
})
|
|
206
206
|
}, "add-new")
|
|
207
207
|
]
|
|
208
208
|
}, "add-new")), s && p.push(b(n, {
|
|
209
|
-
value:
|
|
210
|
-
onChange:
|
|
211
|
-
placeholder:
|
|
212
|
-
clearLabel:
|
|
209
|
+
value: J,
|
|
210
|
+
onChange: Q,
|
|
211
|
+
placeholder: X.search ? $(X.search) : void 0,
|
|
212
|
+
clearLabel: X.clearSearch ? $(X.clearSearch) : void 0,
|
|
213
213
|
sx: {
|
|
214
214
|
flexShrink: 0,
|
|
215
215
|
mx: E
|
|
@@ -232,60 +232,60 @@ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
|
232
232
|
alignSelf: "center",
|
|
233
233
|
maxWidth: "min(360px, 90%)"
|
|
234
234
|
},
|
|
235
|
-
children:
|
|
235
|
+
children: X.noMatches ? $(X.noMatches) : null
|
|
236
236
|
}, "no-matches")), p.push(b(C, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), p;
|
|
237
237
|
const g = c.map((e) => j.getItemKey?.(e) ?? ((e) => {
|
|
238
238
|
let t = R.get(e);
|
|
239
239
|
return void 0 === t && (t = "item-" + T++, R.set(e, t)), t;
|
|
240
240
|
})(e)), u = [];
|
|
241
241
|
c.forEach((e, n) => {
|
|
242
|
-
const s = j.isItemReadOnly?.(e, N) ?? ae,
|
|
242
|
+
const s = j.isItemReadOnly?.(e, N) ?? ae, o = i ? t.indexOf(e) : n, c = b(a, {
|
|
243
243
|
item: e,
|
|
244
|
-
messageKeys:
|
|
245
|
-
title: j.getCardTitle(e,
|
|
246
|
-
subtitle: j.getCardSubtitle?.(e,
|
|
244
|
+
messageKeys: X,
|
|
245
|
+
title: j.getCardTitle(e, $),
|
|
246
|
+
subtitle: j.getCardSubtitle?.(e, $),
|
|
247
247
|
Subtitle: j.CardSubtitle,
|
|
248
248
|
readOnly: s,
|
|
249
|
-
canMoveUp:
|
|
250
|
-
canMoveDown:
|
|
249
|
+
canMoveUp: o > 0,
|
|
250
|
+
canMoveDown: o < t.length - 1,
|
|
251
251
|
onMoveBy: j.moveBy ? (t) => j.moveBy(e, t, N) : void 0,
|
|
252
252
|
onDuplicate: j.duplicate ? () => {
|
|
253
253
|
try {
|
|
254
254
|
j.duplicate(e, N);
|
|
255
255
|
} catch (e) {
|
|
256
|
-
|
|
256
|
+
U.showMessage?.(e.message, { type: l.Error });
|
|
257
257
|
}
|
|
258
258
|
} : void 0,
|
|
259
259
|
onDelete: () => {
|
|
260
260
|
try {
|
|
261
261
|
j.delete(e, N);
|
|
262
262
|
} catch (e) {
|
|
263
|
-
|
|
263
|
+
U.showMessage?.(e.message, { type: l.Error });
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
|
-
onEdit:
|
|
267
|
-
draft:
|
|
266
|
+
onEdit: Y ? () => H({
|
|
267
|
+
draft: Y.createDraft(N, e),
|
|
268
268
|
target: e
|
|
269
269
|
}) : void 0,
|
|
270
270
|
onSelect: j.select ? () => {
|
|
271
271
|
try {
|
|
272
272
|
j.select(e, N);
|
|
273
273
|
} catch (e) {
|
|
274
|
-
|
|
274
|
+
U.showMessage?.(e.message, { type: l.Error });
|
|
275
275
|
}
|
|
276
276
|
} : void 0,
|
|
277
277
|
subscribeItem: j.subscribeItem,
|
|
278
278
|
Media: j.CardMedia,
|
|
279
279
|
Body: j.CardBody
|
|
280
280
|
}, g[n]);
|
|
281
|
-
u.push(d ? b(
|
|
281
|
+
u.push(d ? b(r, {
|
|
282
282
|
id: g[n],
|
|
283
283
|
disabled: s,
|
|
284
284
|
children: c
|
|
285
285
|
}, g[n]) : c);
|
|
286
286
|
});
|
|
287
287
|
const m = b(C, {
|
|
288
|
-
ref:
|
|
288
|
+
ref: Z,
|
|
289
289
|
sx: {
|
|
290
290
|
display: "flex",
|
|
291
291
|
flex: "1 1 auto",
|
|
@@ -302,68 +302,68 @@ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
|
302
302
|
}, "list-container");
|
|
303
303
|
return p.push(d ? b(e, {
|
|
304
304
|
ids: g,
|
|
305
|
-
onMove:
|
|
306
|
-
scrollRef:
|
|
305
|
+
onMove: oe,
|
|
306
|
+
scrollRef: Z,
|
|
307
307
|
children: m
|
|
308
308
|
}, "list-container") : m), p;
|
|
309
309
|
}, [
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
_,
|
|
311
|
+
$,
|
|
312
312
|
ae,
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
ne,
|
|
314
|
+
Y,
|
|
315
315
|
N,
|
|
316
316
|
j,
|
|
317
317
|
K,
|
|
318
318
|
L,
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
]),
|
|
324
|
-
editing: null !==
|
|
325
|
-
"sxl-has-focus":
|
|
319
|
+
U,
|
|
320
|
+
se,
|
|
321
|
+
oe,
|
|
322
|
+
J
|
|
323
|
+
]), de = f(() => D("sxl-items-details", "sxl-anchor-items-details", `sxl-${j.key}-details`, F, {
|
|
324
|
+
editing: null !== G,
|
|
325
|
+
"sxl-has-focus": q,
|
|
326
326
|
"sxl-read-only": ae
|
|
327
327
|
}, s["details-panel"]), [
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
F,
|
|
329
|
+
q,
|
|
330
330
|
ae,
|
|
331
|
-
|
|
331
|
+
G,
|
|
332
332
|
j
|
|
333
|
-
]),
|
|
334
|
-
if (null !==
|
|
335
|
-
const e =
|
|
333
|
+
]), pe = I([V, p]);
|
|
334
|
+
if (null !== G && Y) {
|
|
335
|
+
const e = Y.EditorBody;
|
|
336
336
|
return b(C, {
|
|
337
|
-
onFocus: () =>
|
|
337
|
+
onFocus: () => z(!0),
|
|
338
338
|
onBlur: (e) => {
|
|
339
|
-
|
|
339
|
+
V?.current?.contains(e.relatedTarget) || z(!1);
|
|
340
340
|
},
|
|
341
|
-
ref:
|
|
341
|
+
ref: pe,
|
|
342
342
|
sx: {
|
|
343
343
|
paddingLeft: (e) => e.spacing(1.5),
|
|
344
344
|
paddingRight: (e) => e.spacing(1.5),
|
|
345
345
|
paddingTop: (e) => e.spacing(1.5),
|
|
346
346
|
paddingBottom: (e) => e.spacing(1.5)
|
|
347
347
|
},
|
|
348
|
-
className:
|
|
349
|
-
...
|
|
348
|
+
className: de,
|
|
349
|
+
...W,
|
|
350
350
|
children: b(k, {
|
|
351
|
-
messageKeys:
|
|
351
|
+
messageKeys: Y.keys,
|
|
352
352
|
onSave: le,
|
|
353
|
-
onCancel: () =>
|
|
353
|
+
onCancel: () => H(null),
|
|
354
354
|
children: b(e, {
|
|
355
|
-
draft:
|
|
355
|
+
draft: G.draft,
|
|
356
356
|
workbook: N
|
|
357
357
|
})
|
|
358
358
|
})
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
return
|
|
362
|
-
onFocus: () =>
|
|
361
|
+
return w(C, {
|
|
362
|
+
onFocus: () => z(!0),
|
|
363
363
|
onBlur: (e) => {
|
|
364
|
-
|
|
364
|
+
V?.current?.contains(e.relatedTarget) || z(!1);
|
|
365
365
|
},
|
|
366
|
-
ref:
|
|
366
|
+
ref: pe,
|
|
367
367
|
sx: {
|
|
368
368
|
gap: (e) => e.spacing(1),
|
|
369
369
|
paddingLeft: (e) => e.spacing(1.5),
|
|
@@ -371,9 +371,20 @@ var E = .5, T = 0, R = /* @__PURE__ */ new WeakMap(), N = g(p((i, p) => {
|
|
|
371
371
|
paddingTop: (e) => e.spacing(1.5),
|
|
372
372
|
paddingBottom: (e) => e.spacing(1.5)
|
|
373
373
|
},
|
|
374
|
-
className:
|
|
375
|
-
...
|
|
376
|
-
children:
|
|
374
|
+
className: de,
|
|
375
|
+
...W,
|
|
376
|
+
children: [ce, P ? b(C, {
|
|
377
|
+
sx: {
|
|
378
|
+
flex: "0 0 auto",
|
|
379
|
+
mx: -1.5,
|
|
380
|
+
mb: -1.5,
|
|
381
|
+
px: 1.5,
|
|
382
|
+
py: .5,
|
|
383
|
+
borderTop: 1,
|
|
384
|
+
borderColor: "divider"
|
|
385
|
+
},
|
|
386
|
+
children: P
|
|
387
|
+
}) : null]
|
|
377
388
|
});
|
|
378
389
|
}));
|
|
379
390
|
N.displayName = "ItemsPanel";
|
|
@@ -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,11 +1,11 @@
|
|
|
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 { c as e, t } from "./
|
|
8
|
-
import { t as o } from "./
|
|
7
|
+
import { c as e, t } from "./gPYAb_A0T5ZwcQ1E.mjs";
|
|
8
|
+
import { t as o } from "./BUGU_5lUtnCRlp3n.mjs";
|
|
9
9
|
import { IFill as l, ShapeStyleUtils as r } from "@sheetxl/sdk";
|
|
10
10
|
import { useGridColorScheme as s } from "@sheetxl/react";
|
|
11
11
|
import { useTranslator as i } from "@sheetxl/utils-react";
|