@sheetxl/studio-mui 0.8.0-beta.10 → 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/{ByeL_BZuJ2kl8gtf.mjs → 0IBZhOJaVmzJxuTv.mjs} +1 -1
- package/browser/esm/2nRxqrNYbmEn8fS8.mjs +386 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → 7fVZXXuonYb6Z7FU.mjs} +3 -3
- package/browser/esm/BAzhmMX4Fk_qnUTp.mjs +414 -0
- package/browser/esm/BGL3x0W74D7qZXlf.mjs +318 -0
- package/browser/esm/BHGr2gsFofTdAFxq.mjs +515 -0
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BKhcJI-G15D3kGap.mjs} +4 -4
- package/browser/esm/BNbub9weuqm3mcoF.mjs +335 -0
- package/browser/esm/BSv9MVJaz1DVEffm.mjs +975 -0
- package/browser/esm/BWfLpYmd3cSgJ0C6.mjs +141 -0
- package/browser/esm/BZqwbIE8qzjSOYcJ.mjs +582 -0
- package/browser/esm/BZy9xUrYpAtnKeji.mjs +1288 -0
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → BnkwC5rsg9LZyhoP.mjs} +3 -3
- package/browser/esm/BpJsBv413cNQpyg0.mjs +319 -0
- package/browser/esm/BpVrgbVISiTDyFR3.mjs +197 -0
- package/browser/esm/BsngRDhvVYGVBJeK.mjs +1546 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → C29TKq47CbXs652l.mjs} +2 -2
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → C8p2iMad_NNCwGI_.mjs} +5 -5
- package/browser/esm/CBzXksWnb-1gGEWZ.mjs +212 -0
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → CFIAWgpU3UyepLBn.mjs} +25 -24
- package/browser/esm/CJD4jF4m9cBGHzr_.mjs +31 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → CMc7G7cevxzPGxr9.mjs} +2 -2
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → CYtULLhY9M2m3DeH.mjs} +1 -1
- package/browser/esm/CeF35ZeFP28Do5Zx.mjs +1379 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → CjYKDxU4EP2Kf_vo.mjs} +2 -2
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → Cq82lvdjyBvlJ8xJ.mjs} +19 -17
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → CuRxFAO42JkQvMEx.mjs} +1 -1
- package/browser/esm/Cvk2yY90hpgXWMAt.mjs +103 -0
- package/browser/esm/D0slJycx3nq53qmf.mjs +14 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → D2jzliMwAo2ENpfi.mjs} +1 -1
- package/browser/esm/D5Fn0Hqllwv5HY6i.mjs +7581 -0
- package/browser/esm/D5N4nGaZsXtrHAOh.mjs +831 -0
- package/browser/esm/D7AqPfyhMiuda5l5.mjs +412 -0
- package/browser/esm/DHZA48ZMCETvHmeP.mjs +161 -0
- package/browser/esm/DX2_vf7WX6uRLaOZ.mjs +94 -0
- package/browser/esm/DaxpbAF1ShkT7hNU.mjs +490 -0
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → Db3oHfXiRtcH015t.mjs} +162 -156
- package/browser/esm/Dt47Huh1l3C4_5_w.mjs +87 -0
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → DtPt0phL7m56YfHZ.mjs} +1 -1
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → DtTDaXmnWUoG4VBO.mjs} +2 -2
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → DuuyN4-7K6_io2Py.mjs} +3 -3
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → NeGeLF3gbGMZyV6E.mjs} +1 -1
- package/browser/esm/PY3Br5Bo_TxcCnCU.mjs +252 -0
- package/browser/esm/WIhvQtBkGiw-oFUs.mjs +2566 -0
- package/browser/esm/WgIvwAENeO8LANax.mjs +437 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → Yjq3p_7eVGFw2Jod.mjs} +3 -3
- package/browser/esm/index.mjs +1053 -192
- package/browser/esm/jFRFCWlkD7Dsrhkh.mjs +236 -0
- package/browser/esm/lKXEDVt2ow1NlWJj.mjs +392 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → oC0OwOddhOD0OoCJ.mjs} +6 -6
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → tIKqpsA0vNXH9EgU.mjs} +1 -1
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → u84rSnESjxqB6gay.mjs} +1 -1
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → B8Ls4Eh1k8-Yiry_.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → B9X3n8MglL4OitAV.mjs} +1 -1
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → BBGoyqs2L_ccSH1e.mjs} +40 -40
- package/node/esm/BLv99aovW4R3C5PE.mjs +515 -0
- package/node/esm/BUGU_5lUtnCRlp3n.mjs +519 -0
- package/node/esm/BalROFG_oa9PFs9Q.mjs +141 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → BqVxnA1mo52ubjdf.mjs} +2 -2
- package/node/esm/C3FCh9xju2SccUIE.mjs +1283 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → C4F6WY8M4nkLyxdb.mjs} +2 -2
- package/node/esm/CKWeipCqqpLnLE5e.mjs +391 -0
- package/node/esm/CTnVNfz4eqFnM92M.mjs +212 -0
- package/node/esm/Cfi_ly8fBDZZdiZT.mjs +72 -0
- package/node/esm/CgKa6JuyJ1tTodev.mjs +1703 -0
- package/node/esm/{cqzp431iNSLWictb.mjs → Cq53M7bAUSXMNq1f.mjs} +22 -22
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → Cr8AYWUoU-XVt0hu.mjs} +1 -1
- package/node/esm/CyuOE595I2e-U4cG.mjs +236 -0
- package/node/esm/D72CupF9mfy2D1Xa.mjs +94 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → DGDHFK8okuVbRCe5.mjs} +1 -1
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DJFkALt4XrwkMbnU.mjs} +163 -157
- package/node/esm/DJpwI8PlKBI2rk0r.mjs +319 -0
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DQaGPUYbgL4Y5YZW.mjs} +32 -30
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → DsNYnq4NtYBxPmeA.mjs} +20 -20
- package/node/esm/DygDgOpa9sJ6YFVS.mjs +385 -0
- package/node/esm/Dz0Hg87UcJ-awwiI.mjs +489 -0
- package/node/esm/M7YxvRPGCuxuk9aK.mjs +142 -0
- package/node/esm/QNjtpX8rIpqGGLEJ.mjs +1379 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → ZzvsynJTCSuChYS-.mjs} +1 -1
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → di_8-pXh90j4BO4j.mjs} +1 -1
- package/node/esm/dm8dmEaTIqfmgyeL.mjs +412 -0
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → fmya3XQnTGyQisvT.mjs} +2 -2
- package/node/esm/gPYAb_A0T5ZwcQ1E.mjs +318 -0
- package/node/esm/index.mjs +8915 -13417
- package/node/esm/wB8xMpyJ_NvE16yG.mjs +975 -0
- package/node/esm/zGAcd4Jr7wkvXDBS.mjs +197 -0
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +4 -0
- package/resources/locales/de/ui.msg.json +100 -1
- package/resources/locales/en/groups.cmd.json +4 -0
- package/resources/locales/en/ui.msg.json +100 -1
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +4 -4
- package/types/src/anomalies/AnomaliesPlugin.d.ts +5 -0
- package/types/src/anomalies/AnomaliesTaskPane.d.ts +17 -0
- package/types/src/anomalies/index.d.ts +3 -0
- package/types/src/border/BorderPopupButton.d.ts +1 -1
- package/types/src/border/BorderTemplateIcon.d.ts +6 -1
- package/types/src/chart/ChartFormatPanel.d.ts +20 -0
- package/types/src/chart/ChartPlugin.d.ts +6 -0
- package/types/src/chart/index.d.ts +3 -0
- 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/comments/CommentCard.d.ts +2 -2
- 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/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.d.ts +1 -1
- package/types/src/fill/PatternPopupButton.d.ts +1 -1
- package/types/src/format/BorderPreview.d.ts +11 -4
- package/types/src/format/useFormatSelection.d.ts +4 -4
- package/types/src/formulaBar/IFormulaBar.d.ts +4 -2
- package/types/src/formulaBar/MobileFormulaBar.d.ts +18 -6
- package/types/src/formulaBar/MobileInputToolbar.d.ts +9 -3
- package/types/src/formulaBar/useFormulaBarSession.d.ts +6 -3
- package/types/src/index.d.ts +15 -6
- package/types/src/itemsPanel/ItemsPanel.d.ts +5 -0
- package/types/src/named/NamedDetailsPanel.d.ts +2 -2
- package/types/src/protection/ProtectedCellsPanel.d.ts +2 -2
- package/types/src/protection/{SheetProtectionPanel.d.ts → WorksheetProtectionPanel.d.ts} +6 -6
- package/types/src/protection/index.d.ts +1 -1
- package/types/src/slicer/PresetSlicerStylesCommandButton.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 +31 -19
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/types/src/workbook/WorkbookElement.d.ts +5 -4
- package/types/src/workbook/WorkbookStrip.d.ts +8 -7
- package/types/src/workbook/index.d.ts +1 -1
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/CtEFHbzYNvYjDYvi.mjs +0 -236
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYVLi0md4AYuDsB_.mjs +0 -236
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { n as e } from "./7fVZXXuonYb6Z7FU.mjs";
|
|
8
|
+
import { InputField as t } from "./index.mjs";
|
|
9
|
+
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
|
+
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
|
+
import { memo as a, useEffect as o, useId as ee, useMemo as s, useRef as c, useState as l } from "react";
|
|
12
|
+
import { OptionsDialog as te } from "@sheetxl/utils-mui";
|
|
13
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
+
import { Box as ne, FormControl as p, InputLabel as re, MenuItem as m, Select as ie, TextField as ae } from "@mui/material";
|
|
15
|
+
var oe = ["Ok", "Cancel"], h = { paddingTop: (e) => e.spacing(1.5) }, g = (e) => e?.isReadOnly() ? null : e, _ = "mailto:", v = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === _, y = (e) => {
|
|
16
|
+
if (!v(e)) return null;
|
|
17
|
+
let t = e.substring(7), n = t.indexOf("?");
|
|
18
|
+
if (n === -1) return {
|
|
19
|
+
address: t,
|
|
20
|
+
subject: ""
|
|
21
|
+
};
|
|
22
|
+
let r = "";
|
|
23
|
+
try {
|
|
24
|
+
r = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
25
|
+
} catch {}
|
|
26
|
+
return {
|
|
27
|
+
address: t.substring(0, n),
|
|
28
|
+
subject: r
|
|
29
|
+
};
|
|
30
|
+
}, b = a((a) => {
|
|
31
|
+
let { initialValue: b = null, context: x, onInput: S, onOption: C, onValidateOption: w, onDone: T, options: E = oe, defaultOption: D = E?.[0], cancelOption: O = "Cancel", sx: se, ...ce } = a, k = i(), le = s(() => (b ?? g(x?.()?.getHyperlink())) !== null, []), A = s(() => {
|
|
32
|
+
let e = null, t = null;
|
|
33
|
+
b && (typeof b == "string" ? t = b : e = b);
|
|
34
|
+
let n = e ? null : g(x?.()?.getHyperlink());
|
|
35
|
+
return {
|
|
36
|
+
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
37
|
+
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
38
|
+
};
|
|
39
|
+
}, [b, x]), j = A.address.startsWith("#"), M = s(() => y(A.address), [A.address]), [N, ue] = l(j ? "document" : M ? "email" : "url"), [P, F] = l(j || M ? "" : A.address), [I, L] = l(M?.address ?? ""), [R, z] = l(M?.subject ?? ""), [B, V] = l(() => j && A.address.substring(1) || null), [H, de] = l(j ? A.address.substring(1) : ""), [U, fe] = l(null), [W, pe] = l(() => {
|
|
40
|
+
let e = x?.().getText({ useFormattingCategory: !0 }) ?? A.textToDisplay;
|
|
41
|
+
return e === A.address || M && e === M.address ? "" : e;
|
|
42
|
+
}), [G, K] = l(!1), q = ee(), J = c(null), Y = c(null), X = r(() => {
|
|
43
|
+
J.current?.querySelector("input.autoFocus")?.focus(), Y.current?.engage();
|
|
44
|
+
}, []), Z = c(N);
|
|
45
|
+
o(() => {
|
|
46
|
+
Z.current !== N && (Z.current = N, X());
|
|
47
|
+
}, [N]);
|
|
48
|
+
let me = s(() => {
|
|
49
|
+
let e = x?.()?.getWorksheet()?.getName();
|
|
50
|
+
return e ? { scope: e } : void 0;
|
|
51
|
+
}, [x]), he = n().getMode()?.mode === "point", ge = r((e) => {
|
|
52
|
+
pe(e.target.value);
|
|
53
|
+
}, []), Q = r(() => {
|
|
54
|
+
if (N === "document") {
|
|
55
|
+
if (typeof B == "string") {
|
|
56
|
+
let e = B.trim();
|
|
57
|
+
return e ? `#${e}` : null;
|
|
58
|
+
}
|
|
59
|
+
let e = B?.getReferences()?.getAddress();
|
|
60
|
+
return e ? `#${e}` : null;
|
|
61
|
+
}
|
|
62
|
+
return N === "email" ? ((e, t) => {
|
|
63
|
+
let n = e.trim();
|
|
64
|
+
if (v(n) && (n = n.substring(7)), !n) return null;
|
|
65
|
+
let r = t.trim();
|
|
66
|
+
return `${_}${n}${r ? `?subject=${encodeURIComponent(r)}` : ""}`;
|
|
67
|
+
})(I, R) : P === "" ? null : P;
|
|
68
|
+
}, [
|
|
69
|
+
N,
|
|
70
|
+
B,
|
|
71
|
+
P,
|
|
72
|
+
I,
|
|
73
|
+
R
|
|
74
|
+
]), $ = r(async (e) => {
|
|
75
|
+
let t = e === O;
|
|
76
|
+
if (!t) {
|
|
77
|
+
let e = Q(), t = e;
|
|
78
|
+
e?.startsWith("#") ? t = e.substring(1) : N === "email" && e && (t = y(e)?.address ?? e), S?.({
|
|
79
|
+
address: e,
|
|
80
|
+
textToDisplay: (W === "" ? t : W) ?? null
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
C?.(e, t, e === D), T?.();
|
|
84
|
+
}, [
|
|
85
|
+
Q,
|
|
86
|
+
N,
|
|
87
|
+
W,
|
|
88
|
+
S,
|
|
89
|
+
T,
|
|
90
|
+
C,
|
|
91
|
+
D,
|
|
92
|
+
O
|
|
93
|
+
]), _e = r(async (e) => !1 !== await Promise.resolve(w?.(e)) && (N !== "document" || !U), [
|
|
94
|
+
w,
|
|
95
|
+
N,
|
|
96
|
+
U
|
|
97
|
+
]), ve = N === "document" ? H : N === "email" ? I : P;
|
|
98
|
+
return d(te, {
|
|
99
|
+
title: k(le ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
+
options: E,
|
|
101
|
+
onDone: T,
|
|
102
|
+
onOption: (e) => $(e),
|
|
103
|
+
onValidateOption: _e,
|
|
104
|
+
defaultOption: D,
|
|
105
|
+
cancelOption: O,
|
|
106
|
+
autoFocusSel: ".autoFocus",
|
|
107
|
+
suspendModal: he,
|
|
108
|
+
sx: {
|
|
109
|
+
width: "480px",
|
|
110
|
+
...se
|
|
111
|
+
},
|
|
112
|
+
...ce,
|
|
113
|
+
children: f(ne, {
|
|
114
|
+
ref: J,
|
|
115
|
+
sx: {
|
|
116
|
+
paddingTop: (e) => e.spacing(1),
|
|
117
|
+
paddingBottom: (e) => e.spacing(0),
|
|
118
|
+
rowGap: (e) => e.spacing(1),
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexDirection: "column"
|
|
121
|
+
},
|
|
122
|
+
children: [
|
|
123
|
+
f(p, {
|
|
124
|
+
sx: {
|
|
125
|
+
minWidth: 135,
|
|
126
|
+
width: "100%"
|
|
127
|
+
},
|
|
128
|
+
size: "small",
|
|
129
|
+
children: [d(re, {
|
|
130
|
+
id: q,
|
|
131
|
+
children: k("hyperlink.linkTo")
|
|
132
|
+
}), f(ie, {
|
|
133
|
+
labelId: q,
|
|
134
|
+
value: N,
|
|
135
|
+
label: k("hyperlink.linkTo"),
|
|
136
|
+
MenuProps: {
|
|
137
|
+
disableRestoreFocus: !0,
|
|
138
|
+
slotProps: { transition: { onExited: X } },
|
|
139
|
+
container: () => document.fullscreenElement
|
|
140
|
+
},
|
|
141
|
+
onChange: (e) => {
|
|
142
|
+
ue(e.target.value);
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
d(m, {
|
|
146
|
+
value: "url",
|
|
147
|
+
children: k("hyperlink.typeWebPage")
|
|
148
|
+
}),
|
|
149
|
+
d(m, {
|
|
150
|
+
value: "document",
|
|
151
|
+
children: k("hyperlink.typeInDocument")
|
|
152
|
+
}),
|
|
153
|
+
d(m, {
|
|
154
|
+
value: "email",
|
|
155
|
+
children: k("hyperlink.typeEmail")
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
})]
|
|
159
|
+
}),
|
|
160
|
+
N === "email" ? f(u, { children: [d(t, {
|
|
161
|
+
sx: h,
|
|
162
|
+
label: k("hyperlink.emailAddress"),
|
|
163
|
+
defaultInput: k("hyperlink.emailPlaceholder"),
|
|
164
|
+
value: I,
|
|
165
|
+
onChangeInput: (e) => L(e),
|
|
166
|
+
onFocus: (e) => {
|
|
167
|
+
G || e.target?.select?.(), K(!0);
|
|
168
|
+
}
|
|
169
|
+
}), d(t, {
|
|
170
|
+
label: k("hyperlink.subject"),
|
|
171
|
+
defaultInput: "",
|
|
172
|
+
value: R,
|
|
173
|
+
onChangeInput: (e) => z(e),
|
|
174
|
+
onFocus: () => K(!0)
|
|
175
|
+
})] }) : N === "document" ? d(e, {
|
|
176
|
+
sx: h,
|
|
177
|
+
grammar: "reference",
|
|
178
|
+
apiRef: Y,
|
|
179
|
+
classNameInput: "autoFocus",
|
|
180
|
+
label: k("hyperlink.reference"),
|
|
181
|
+
value: B,
|
|
182
|
+
allowMulti: !1,
|
|
183
|
+
home: me,
|
|
184
|
+
onChangeInput: (e) => V(e),
|
|
185
|
+
onChangeText: (e) => de(e),
|
|
186
|
+
onChangeError: (e) => fe(e),
|
|
187
|
+
onFocus: (e) => {
|
|
188
|
+
G || e.target?.select?.(), K(!0);
|
|
189
|
+
}
|
|
190
|
+
}) : d(t, {
|
|
191
|
+
sx: h,
|
|
192
|
+
label: k("hyperlink.address"),
|
|
193
|
+
defaultInput: k("hyperlink.addressPlaceholder"),
|
|
194
|
+
value: P,
|
|
195
|
+
onChangeInput: (e) => F(e),
|
|
196
|
+
onFocus: (e) => {
|
|
197
|
+
G || e.target?.select?.(), K(!0);
|
|
198
|
+
}
|
|
199
|
+
}),
|
|
200
|
+
d(p, {
|
|
201
|
+
sx: {
|
|
202
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
+
minWidth: 135,
|
|
204
|
+
width: "100%"
|
|
205
|
+
},
|
|
206
|
+
size: "small",
|
|
207
|
+
children: d(ae, {
|
|
208
|
+
label: k("hyperlink.displayText"),
|
|
209
|
+
placeholder: ve,
|
|
210
|
+
onFocus: () => {
|
|
211
|
+
K(!0);
|
|
212
|
+
},
|
|
213
|
+
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
214
|
+
slotProps: {
|
|
215
|
+
inputLabel: { shrink: !0 },
|
|
216
|
+
htmlInput: {
|
|
217
|
+
spellCheck: !1,
|
|
218
|
+
autoComplete: "off",
|
|
219
|
+
sx: {
|
|
220
|
+
paddingTop: (e) => e.spacing(1.25),
|
|
221
|
+
paddingBottom: (e) => e.spacing(.75)
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
value: W,
|
|
226
|
+
onChange: ge,
|
|
227
|
+
onContextMenu: (e) => {
|
|
228
|
+
e.stopPropagation();
|
|
229
|
+
}
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
]
|
|
233
|
+
})
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
export { b as HyperlinkDialog, b as default };
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { t as e } from "./u84rSnESjxqB6gay.mjs";
|
|
8
|
+
import { n as t } from "./CJD4jF4m9cBGHzr_.mjs";
|
|
9
|
+
import { i as n, n as r, t as i } from "./PY3Br5Bo_TxcCnCU.mjs";
|
|
10
|
+
import { t as a } from "./D0slJycx3nq53qmf.mjs";
|
|
11
|
+
import { n as o, r as s, t as c } from "./DtTDaXmnWUoG4VBO.mjs";
|
|
12
|
+
import { DynamicIcon as l, NotifierType as u, useNotifier as d, useTranslator as f } from "@sheetxl/utils-react";
|
|
13
|
+
import { forwardRef as p, memo as m, useCallback as h, useEffect as g, useMemo as _, useReducer as ee, useRef as v, useState as y } from "react";
|
|
14
|
+
import { SimpleTooltip as te } from "@sheetxl/utils-mui";
|
|
15
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
16
|
+
import { Box as S, Button as C, IconButton as ne, Typography as w } from "@mui/material";
|
|
17
|
+
var T = m((t) => {
|
|
18
|
+
let { children: r, messageKeys: i, onSave: o, onCancel: s, className: c, ...l } = t, u = f(), d = v(/* @__PURE__ */ new Set()), p = _(() => ({ register: (e) => (d.current.add(e), () => {
|
|
19
|
+
d.current.delete(e);
|
|
20
|
+
}) }), []), m = h(() => {
|
|
21
|
+
let e = !0;
|
|
22
|
+
for (let t of Array.from(d.current)) t() || (e = !1);
|
|
23
|
+
e && o();
|
|
24
|
+
}, [o]), g = _(() => e("sxl-items-editor", "sxl-anchor-items-editor", c, {}, n.editor), [c]);
|
|
25
|
+
return x(S, {
|
|
26
|
+
sx: {
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
justifyContent: "space-between",
|
|
30
|
+
height: "100%",
|
|
31
|
+
gap: (e) => e.spacing(2)
|
|
32
|
+
},
|
|
33
|
+
...l,
|
|
34
|
+
className: g,
|
|
35
|
+
children: [b(a.Provider, {
|
|
36
|
+
value: p,
|
|
37
|
+
children: r
|
|
38
|
+
}), b(S, {
|
|
39
|
+
className: n["editor-buttons"],
|
|
40
|
+
sx: {
|
|
41
|
+
gap: (e) => e.spacing(1),
|
|
42
|
+
paddingTop: (e) => e.spacing(2),
|
|
43
|
+
borderTop: (e) => `1px solid ${e.palette.divider}`
|
|
44
|
+
},
|
|
45
|
+
children: x(S, {
|
|
46
|
+
sx: {
|
|
47
|
+
display: "grid",
|
|
48
|
+
gridAutoFlow: "column",
|
|
49
|
+
gridAutoColumns: "1fr",
|
|
50
|
+
gap: (e) => e.spacing(1)
|
|
51
|
+
},
|
|
52
|
+
children: [b(C, {
|
|
53
|
+
variant: "outlined",
|
|
54
|
+
onClick: s,
|
|
55
|
+
children: u(i.cancel)
|
|
56
|
+
}), b(C, {
|
|
57
|
+
variant: "contained",
|
|
58
|
+
onClick: m,
|
|
59
|
+
children: u(i.save)
|
|
60
|
+
})]
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
T.displayName = "EditorPanel";
|
|
66
|
+
var E = .5, re = 0, D = /* @__PURE__ */ new WeakMap(), O = m(p((a, p) => {
|
|
67
|
+
let { title: m, workbook: O, descriptor: k, args: A, headerActions: j, listActions: M, footer: N, dragReorder: ie = !1, className: P, ...F } = a, I = f(), L = d(), R = k.messageKeys, z = _(() => {
|
|
68
|
+
let { createDraft: e, save: t, EditorBody: n } = k;
|
|
69
|
+
return e && t && n && R.cancel && R.save ? {
|
|
70
|
+
createDraft: e,
|
|
71
|
+
commit: t,
|
|
72
|
+
EditorBody: n,
|
|
73
|
+
keys: {
|
|
74
|
+
cancel: R.cancel,
|
|
75
|
+
save: R.save
|
|
76
|
+
}
|
|
77
|
+
} : null;
|
|
78
|
+
}, [k, R]), [B, V] = y(!1), [H, U] = y(null), [W, ae] = y(""), G = v(null), K = v(null), [oe, q] = ee((e) => e + 1, 0);
|
|
79
|
+
g(() => k.subscribe(O, {
|
|
80
|
+
onChange: () => q(),
|
|
81
|
+
onInvalidated: () => {
|
|
82
|
+
U(null), q();
|
|
83
|
+
}
|
|
84
|
+
}), [O, k]);
|
|
85
|
+
let J = v(void 0);
|
|
86
|
+
g(() => {
|
|
87
|
+
if (J.current === A) return;
|
|
88
|
+
J.current = A;
|
|
89
|
+
let e = A?.draft;
|
|
90
|
+
try {
|
|
91
|
+
let t = null, n = null;
|
|
92
|
+
e === void 0 ? A?.insert && z && !k.isReadOnly(O) ? t = z.createDraft(O) : A?.edit !== void 0 && z && !k.isReadOnly(O) && (n = A.edit, t = z.createDraft(O, n)) : k.isReadOnly(O) || (t = k.createSeededDraft?.(O, e) ?? null), t && U({
|
|
93
|
+
draft: t,
|
|
94
|
+
target: n
|
|
95
|
+
});
|
|
96
|
+
} catch (e) {
|
|
97
|
+
L.showMessage?.(e.message, { type: u.Error });
|
|
98
|
+
}
|
|
99
|
+
}, [
|
|
100
|
+
A,
|
|
101
|
+
O,
|
|
102
|
+
k,
|
|
103
|
+
z,
|
|
104
|
+
L
|
|
105
|
+
]);
|
|
106
|
+
let Y = v(O);
|
|
107
|
+
Y.current !== O && (Y.current = O, H !== null && U(null));
|
|
108
|
+
let X = k.isReadOnly(O), Z = !X && z !== null, Q = ie && !X && !!k.moveBy, $ = v(!1);
|
|
109
|
+
s(K, Q, $);
|
|
110
|
+
let se = h((e, t) => {
|
|
111
|
+
let n = k.getItems(O)[e];
|
|
112
|
+
if (n !== void 0) {
|
|
113
|
+
$.current = !0;
|
|
114
|
+
try {
|
|
115
|
+
k.moveBy(n, t - e, O);
|
|
116
|
+
} catch (e) {
|
|
117
|
+
$.current = !1, L.showMessage?.(e.message, { type: u.Error });
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}, [
|
|
121
|
+
k,
|
|
122
|
+
O,
|
|
123
|
+
L
|
|
124
|
+
]), ce = h(async () => {
|
|
125
|
+
if (H && z) {
|
|
126
|
+
try {
|
|
127
|
+
await k.beforeSave?.(H.draft);
|
|
128
|
+
let e = k.validate?.(H.draft) ?? null;
|
|
129
|
+
if (e) return void L.showMessage?.(I(e), { type: u.Error });
|
|
130
|
+
await z.commit(O, H.draft, H.target);
|
|
131
|
+
} catch (e) {
|
|
132
|
+
L.showMessage?.(e.message, { type: u.Error });
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
U(null);
|
|
136
|
+
}
|
|
137
|
+
}, [
|
|
138
|
+
H,
|
|
139
|
+
k,
|
|
140
|
+
z,
|
|
141
|
+
O,
|
|
142
|
+
L,
|
|
143
|
+
I
|
|
144
|
+
]), le = _(() => {
|
|
145
|
+
let e = k.getItems(O), t = !!k.getSearchText, n = t ? W.trim().toLowerCase() : "", a = n ? e.filter((e) => k.getSearchText(e, I).toLowerCase().includes(n)) : e, s = Q && !n, d = [];
|
|
146
|
+
if (e.length === 0) return d.push(b(S, { sx: { flex: "1 1 0" } }, "spacer-top")), d.push(x(S, {
|
|
147
|
+
sx: {
|
|
148
|
+
display: "flex",
|
|
149
|
+
flex: "0 0 auto",
|
|
150
|
+
flexDirection: "column",
|
|
151
|
+
alignItems: "center",
|
|
152
|
+
alignSelf: "center",
|
|
153
|
+
gap: (e) => e.spacing(2.5),
|
|
154
|
+
maxWidth: "min(360px, 90%)"
|
|
155
|
+
},
|
|
156
|
+
children: [b(w, {
|
|
157
|
+
variant: "body2",
|
|
158
|
+
align: "center",
|
|
159
|
+
children: Z && R.addPrompt ? I(R.addPrompt) : I(R.none)
|
|
160
|
+
}), Z && R.new && b(C, {
|
|
161
|
+
variant: "contained",
|
|
162
|
+
sx: { textTransform: "none" },
|
|
163
|
+
onClick: () => {
|
|
164
|
+
U({
|
|
165
|
+
draft: z.createDraft(O),
|
|
166
|
+
target: null
|
|
167
|
+
});
|
|
168
|
+
},
|
|
169
|
+
children: I(R.new)
|
|
170
|
+
})]
|
|
171
|
+
}, "no-items")), d.push(b(S, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), (j || M) && d.unshift(x(S, {
|
|
172
|
+
sx: {
|
|
173
|
+
display: "flex",
|
|
174
|
+
alignItems: "center",
|
|
175
|
+
justifyContent: "flex-end",
|
|
176
|
+
flex: "0 0 auto"
|
|
177
|
+
},
|
|
178
|
+
children: [j, M]
|
|
179
|
+
}, "header-actions")), d;
|
|
180
|
+
if (d.push(x(S, {
|
|
181
|
+
sx: {
|
|
182
|
+
display: "flex",
|
|
183
|
+
alignItems: "center",
|
|
184
|
+
justifyContent: "center"
|
|
185
|
+
},
|
|
186
|
+
children: [
|
|
187
|
+
b(S, {
|
|
188
|
+
sx: { flex: "1 1 100%" },
|
|
189
|
+
children: R.heading ? b(w, {
|
|
190
|
+
variant: "body2",
|
|
191
|
+
children: I(R.heading)
|
|
192
|
+
}) : null
|
|
193
|
+
}),
|
|
194
|
+
j,
|
|
195
|
+
Z && R.insert && b(te, {
|
|
196
|
+
disableInteractive: !0,
|
|
197
|
+
title: I(R.insert),
|
|
198
|
+
children: b(ne, {
|
|
199
|
+
onClick: (e) => {
|
|
200
|
+
e.stopPropagation(), U({
|
|
201
|
+
draft: z.createDraft(O),
|
|
202
|
+
target: null
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
children: b(l, { iconKey: "Insert" })
|
|
206
|
+
})
|
|
207
|
+
}, "add-new")
|
|
208
|
+
]
|
|
209
|
+
}, "add-new")), t && d.push(b(i, {
|
|
210
|
+
value: W,
|
|
211
|
+
onChange: ae,
|
|
212
|
+
placeholder: R.search ? I(R.search) : void 0,
|
|
213
|
+
clearLabel: R.clearSearch ? I(R.clearSearch) : void 0,
|
|
214
|
+
sx: {
|
|
215
|
+
flexShrink: 0,
|
|
216
|
+
mx: E
|
|
217
|
+
}
|
|
218
|
+
}, "search")), M && d.push(b(S, {
|
|
219
|
+
sx: {
|
|
220
|
+
display: "flex",
|
|
221
|
+
alignItems: "center",
|
|
222
|
+
justifyContent: "flex-end",
|
|
223
|
+
flex: "0 0 auto",
|
|
224
|
+
mx: E,
|
|
225
|
+
mt: -.5
|
|
226
|
+
},
|
|
227
|
+
children: M
|
|
228
|
+
}, "list-actions")), a.length === 0) return d.push(b(S, { sx: { flex: "1 1 0" } }, "spacer-top")), d.push(b(w, {
|
|
229
|
+
variant: "body2",
|
|
230
|
+
align: "center",
|
|
231
|
+
sx: {
|
|
232
|
+
color: "text.secondary",
|
|
233
|
+
alignSelf: "center",
|
|
234
|
+
maxWidth: "min(360px, 90%)"
|
|
235
|
+
},
|
|
236
|
+
children: R.noMatches ? I(R.noMatches) : null
|
|
237
|
+
}, "no-matches")), d.push(b(S, { sx: { flex: "1.5 1 0" } }, "spacer-bottom")), d;
|
|
238
|
+
let f = a.map((e) => k.getItemKey?.(e) ?? ((e) => {
|
|
239
|
+
let t = D.get(e);
|
|
240
|
+
return t === void 0 && (t = "item-" + re++, D.set(e, t)), t;
|
|
241
|
+
})(e)), p = [];
|
|
242
|
+
a.forEach((t, i) => {
|
|
243
|
+
let a = k.isItemReadOnly?.(t, O) ?? X, o = n ? e.indexOf(t) : i, l = b(r, {
|
|
244
|
+
item: t,
|
|
245
|
+
messageKeys: R,
|
|
246
|
+
title: k.getCardTitle(t, I),
|
|
247
|
+
subtitle: k.getCardSubtitle?.(t, I),
|
|
248
|
+
Subtitle: k.CardSubtitle,
|
|
249
|
+
readOnly: a,
|
|
250
|
+
canMoveUp: o > 0,
|
|
251
|
+
canMoveDown: o < e.length - 1,
|
|
252
|
+
onMoveBy: k.moveBy ? (e) => k.moveBy(t, e, O) : void 0,
|
|
253
|
+
onDuplicate: k.duplicate ? () => {
|
|
254
|
+
try {
|
|
255
|
+
k.duplicate(t, O);
|
|
256
|
+
} catch (e) {
|
|
257
|
+
L.showMessage?.(e.message, { type: u.Error });
|
|
258
|
+
}
|
|
259
|
+
} : void 0,
|
|
260
|
+
onDelete: () => {
|
|
261
|
+
try {
|
|
262
|
+
k.delete(t, O);
|
|
263
|
+
} catch (e) {
|
|
264
|
+
L.showMessage?.(e.message, { type: u.Error });
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
onEdit: z ? () => U({
|
|
268
|
+
draft: z.createDraft(O, t),
|
|
269
|
+
target: t
|
|
270
|
+
}) : void 0,
|
|
271
|
+
onSelect: k.select ? () => {
|
|
272
|
+
try {
|
|
273
|
+
k.select(t, O);
|
|
274
|
+
} catch (e) {
|
|
275
|
+
L.showMessage?.(e.message, { type: u.Error });
|
|
276
|
+
}
|
|
277
|
+
} : void 0,
|
|
278
|
+
subscribeItem: k.subscribeItem,
|
|
279
|
+
Media: k.CardMedia,
|
|
280
|
+
Body: k.CardBody
|
|
281
|
+
}, f[i]);
|
|
282
|
+
p.push(s ? b(c, {
|
|
283
|
+
id: f[i],
|
|
284
|
+
disabled: a,
|
|
285
|
+
children: l
|
|
286
|
+
}, f[i]) : l);
|
|
287
|
+
});
|
|
288
|
+
let m = b(S, {
|
|
289
|
+
ref: K,
|
|
290
|
+
sx: {
|
|
291
|
+
display: "flex",
|
|
292
|
+
flex: "1 1 auto",
|
|
293
|
+
flexDirection: "column",
|
|
294
|
+
overflowY: "auto",
|
|
295
|
+
overflowX: "visible",
|
|
296
|
+
paddingLeft: (e) => e.spacing(E),
|
|
297
|
+
paddingRight: (e) => e.spacing(E),
|
|
298
|
+
paddingTop: (e) => e.spacing(E),
|
|
299
|
+
paddingBottom: (e) => e.spacing(E),
|
|
300
|
+
gap: (e) => e.spacing(1.5)
|
|
301
|
+
},
|
|
302
|
+
children: p
|
|
303
|
+
}, "list-container");
|
|
304
|
+
return d.push(s ? b(o, {
|
|
305
|
+
ids: f,
|
|
306
|
+
onMove: se,
|
|
307
|
+
scrollRef: K,
|
|
308
|
+
children: m
|
|
309
|
+
}, "list-container") : m), d;
|
|
310
|
+
}, [
|
|
311
|
+
oe,
|
|
312
|
+
I,
|
|
313
|
+
X,
|
|
314
|
+
Z,
|
|
315
|
+
z,
|
|
316
|
+
O,
|
|
317
|
+
k,
|
|
318
|
+
j,
|
|
319
|
+
M,
|
|
320
|
+
L,
|
|
321
|
+
Q,
|
|
322
|
+
se,
|
|
323
|
+
W
|
|
324
|
+
]), ue = _(() => e("sxl-items-details", "sxl-anchor-items-details", `sxl-${k.key}-details`, P, {
|
|
325
|
+
editing: H !== null,
|
|
326
|
+
"sxl-has-focus": B,
|
|
327
|
+
"sxl-read-only": X
|
|
328
|
+
}, n["details-panel"]), [
|
|
329
|
+
P,
|
|
330
|
+
B,
|
|
331
|
+
X,
|
|
332
|
+
H,
|
|
333
|
+
k
|
|
334
|
+
]), de = t([G, p]);
|
|
335
|
+
if (H !== null && z) {
|
|
336
|
+
let e = z.EditorBody;
|
|
337
|
+
return b(S, {
|
|
338
|
+
onFocus: () => V(!0),
|
|
339
|
+
onBlur: (e) => {
|
|
340
|
+
G?.current?.contains(e.relatedTarget) || V(!1);
|
|
341
|
+
},
|
|
342
|
+
ref: de,
|
|
343
|
+
sx: {
|
|
344
|
+
paddingLeft: (e) => e.spacing(1.5),
|
|
345
|
+
paddingRight: (e) => e.spacing(1.5),
|
|
346
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
347
|
+
paddingBottom: (e) => e.spacing(1.5)
|
|
348
|
+
},
|
|
349
|
+
className: ue,
|
|
350
|
+
...F,
|
|
351
|
+
children: b(T, {
|
|
352
|
+
messageKeys: z.keys,
|
|
353
|
+
onSave: ce,
|
|
354
|
+
onCancel: () => U(null),
|
|
355
|
+
children: b(e, {
|
|
356
|
+
draft: H.draft,
|
|
357
|
+
workbook: O
|
|
358
|
+
})
|
|
359
|
+
})
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
return x(S, {
|
|
363
|
+
onFocus: () => V(!0),
|
|
364
|
+
onBlur: (e) => {
|
|
365
|
+
G?.current?.contains(e.relatedTarget) || V(!1);
|
|
366
|
+
},
|
|
367
|
+
ref: de,
|
|
368
|
+
sx: {
|
|
369
|
+
gap: (e) => e.spacing(1),
|
|
370
|
+
paddingLeft: (e) => e.spacing(1.5),
|
|
371
|
+
paddingRight: (e) => e.spacing(1.5),
|
|
372
|
+
paddingTop: (e) => e.spacing(1.5),
|
|
373
|
+
paddingBottom: (e) => e.spacing(1.5)
|
|
374
|
+
},
|
|
375
|
+
className: ue,
|
|
376
|
+
...F,
|
|
377
|
+
children: [le, N ? b(S, {
|
|
378
|
+
sx: {
|
|
379
|
+
flex: "0 0 auto",
|
|
380
|
+
mx: -1.5,
|
|
381
|
+
mb: -1.5,
|
|
382
|
+
px: 1.5,
|
|
383
|
+
py: .5,
|
|
384
|
+
borderTop: 1,
|
|
385
|
+
borderColor: "divider"
|
|
386
|
+
},
|
|
387
|
+
children: N
|
|
388
|
+
}) : null]
|
|
389
|
+
});
|
|
390
|
+
}));
|
|
391
|
+
O.displayName = "ItemsPanel";
|
|
392
|
+
export { O as t };
|
|
@@ -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 {
|
|
8
|
-
import {
|
|
7
|
+
import { n as e } from "./7fVZXXuonYb6Z7FU.mjs";
|
|
8
|
+
import { InputField as t } from "./index.mjs";
|
|
9
9
|
import { useReferenceMode as n } from "@sheetxl/react";
|
|
10
10
|
import { useCallbackRef as r, useTranslator as i } from "@sheetxl/utils-react";
|
|
11
11
|
import { memo as a, useCallback as o, useMemo as s, useState as c } from "react";
|
|
@@ -22,7 +22,7 @@ var h = ["Ok", "Cancel"], g = "table.defaultName", _ = a((a) => {
|
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
}), R = s(() => {
|
|
25
|
-
let e = T?.ranges?.
|
|
25
|
+
let e = T?.ranges?.getWorksheet?.()?.getName();
|
|
26
26
|
return e ? { scope: e } : void 0;
|
|
27
27
|
}, [T]), z = n().getMode()?.mode === "point", B = r((e) => {
|
|
28
28
|
let t = N ? {
|
|
@@ -79,14 +79,14 @@ var h = ["Ok", "Cancel"], g = "table.defaultName", _ = a((a) => {
|
|
|
79
79
|
flexDirection: "column"
|
|
80
80
|
},
|
|
81
81
|
children: [
|
|
82
|
-
u(
|
|
82
|
+
u(t, {
|
|
83
83
|
formName: "name",
|
|
84
84
|
value: I,
|
|
85
85
|
onChangeInput: L,
|
|
86
86
|
onValidate: V,
|
|
87
87
|
onFocus: U
|
|
88
88
|
}),
|
|
89
|
-
u(
|
|
89
|
+
u(e, {
|
|
90
90
|
grammar: "reference",
|
|
91
91
|
classNameInput: "autoFocus",
|
|
92
92
|
formName: "range",
|
|
@@ -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.
|