@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
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
|
|
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 { FormulaField as e, InputField as t } from "./index.mjs";
|
|
8
|
-
import { useReferenceMode as n } from "@sheetxl/react";
|
|
9
|
-
import { useCallbackRef as l, useTranslator as r } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as s, useEffect as o, useId as a, useMemo as i, useRef as u, useState as d } from "react";
|
|
11
|
-
import { OptionsDialog as p } from "@sheetxl/utils-mui";
|
|
12
|
-
import { Fragment as c, jsx as m, jsxs as g } from "react/jsx-runtime";
|
|
13
|
-
import { Box as h, FormControl as f, InputLabel as y, MenuItem as x, Select as b, TextField as k } from "@mui/material";
|
|
14
|
-
var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, v = "mailto:", I = (e) => e.length >= 7 && e.substring(0, 7).toLowerCase() === v, F = (e) => {
|
|
15
|
-
if (!I(e)) return null;
|
|
16
|
-
const t = e.substring(7), n = t.indexOf("?");
|
|
17
|
-
if (-1 === n) return {
|
|
18
|
-
address: t,
|
|
19
|
-
subject: ""
|
|
20
|
-
};
|
|
21
|
-
let l = "";
|
|
22
|
-
try {
|
|
23
|
-
l = new URLSearchParams(t.substring(n + 1)).get("subject") ?? "";
|
|
24
|
-
} catch {}
|
|
25
|
-
return {
|
|
26
|
-
address: t.substring(0, n),
|
|
27
|
-
subject: l
|
|
28
|
-
};
|
|
29
|
-
}, O = s((s) => {
|
|
30
|
-
const { initialValue: O = null, context: D, onInput: P, onOption: j, onValidateOption: w, onDone: M, options: $ = T, defaultOption: E = $?.[0], cancelOption: R = "Cancel", sx: W, ...S } = s, A = r(), H = i(() => null !== (O ?? D?.()?.getHyperlink()), []), L = i(() => {
|
|
31
|
-
let e = null, t = null;
|
|
32
|
-
O && ("string" == typeof O ? t = O : e = O);
|
|
33
|
-
const n = e ? null : D?.()?.getHyperlink();
|
|
34
|
-
return {
|
|
35
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
36
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
37
|
-
};
|
|
38
|
-
}, [O, D]), V = L.address.startsWith("#"), z = i(() => F(L.address), [L.address]), [B, N] = d(V ? "document" : z ? "email" : "url"), [U, q] = d(V || z ? "" : L.address), [G, J] = d(z?.address ?? ""), [K, Q] = d(z?.subject ?? ""), [X, Y] = d(() => V && L.address.substring(1) || null), [Z, _] = d(V ? L.address.substring(1) : ""), [ee, te] = d(null), [ne, le] = d(() => {
|
|
39
|
-
const e = D?.().getText({ useFormattingCategory: !0 }) ?? L.textToDisplay;
|
|
40
|
-
return e === L.address || z && e === z.address ? "" : e;
|
|
41
|
-
}), [re, se] = d(!1), oe = a(), ae = u(null), ie = u(null), ue = l(() => {
|
|
42
|
-
ae.current?.querySelector("input.autoFocus")?.focus(), ie.current?.engage();
|
|
43
|
-
}, []), de = u(B);
|
|
44
|
-
o(() => {
|
|
45
|
-
de.current !== B && (de.current = B, ue());
|
|
46
|
-
}, [B]);
|
|
47
|
-
const pe = i(() => {
|
|
48
|
-
const e = D?.()?.getSheet()?.getName();
|
|
49
|
-
return e ? { scope: e } : void 0;
|
|
50
|
-
}, [D]), ce = "point" === n().getMode()?.mode, me = l((e) => {
|
|
51
|
-
le(e.target.value);
|
|
52
|
-
}, []), ge = l(() => {
|
|
53
|
-
if ("document" === B) {
|
|
54
|
-
if ("string" == typeof X) {
|
|
55
|
-
const e = X.trim();
|
|
56
|
-
return e ? `#${e}` : null;
|
|
57
|
-
}
|
|
58
|
-
const e = X?.getReferences()?.getAddress();
|
|
59
|
-
return e ? `#${e}` : null;
|
|
60
|
-
}
|
|
61
|
-
return "email" === B ? ((e, t) => {
|
|
62
|
-
let n = e.trim();
|
|
63
|
-
if (I(n) && (n = n.substring(7)), !n) return null;
|
|
64
|
-
const l = t.trim();
|
|
65
|
-
return `${v}${n}${l ? `?subject=${encodeURIComponent(l)}` : ""}`;
|
|
66
|
-
})(G, K) : "" === U ? null : U;
|
|
67
|
-
}, [
|
|
68
|
-
B,
|
|
69
|
-
X,
|
|
70
|
-
U,
|
|
71
|
-
G,
|
|
72
|
-
K
|
|
73
|
-
]), he = l(async (e) => {
|
|
74
|
-
const t = e === R;
|
|
75
|
-
if (!t) {
|
|
76
|
-
const e = ge();
|
|
77
|
-
let t = e;
|
|
78
|
-
e?.startsWith("#") ? t = e.substring(1) : "email" === B && e && (t = F(e)?.address ?? e), P?.({
|
|
79
|
-
address: e,
|
|
80
|
-
textToDisplay: ("" === ne ? t : ne) ?? null
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
j?.(e, t, e === E), M?.();
|
|
84
|
-
}, [
|
|
85
|
-
ge,
|
|
86
|
-
B,
|
|
87
|
-
ne,
|
|
88
|
-
P,
|
|
89
|
-
M,
|
|
90
|
-
j,
|
|
91
|
-
E,
|
|
92
|
-
R
|
|
93
|
-
]), fe = l(async (e) => !1 !== await Promise.resolve(w?.(e)) && ("document" !== B || !ee), [
|
|
94
|
-
w,
|
|
95
|
-
B,
|
|
96
|
-
ee
|
|
97
|
-
]), ye = "document" === B ? Z : "email" === B ? G : U;
|
|
98
|
-
return m(p, {
|
|
99
|
-
title: A(H ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
100
|
-
options: $,
|
|
101
|
-
onDone: M,
|
|
102
|
-
onOption: (e) => he(e),
|
|
103
|
-
onValidateOption: fe,
|
|
104
|
-
defaultOption: E,
|
|
105
|
-
cancelOption: R,
|
|
106
|
-
autoFocusSel: ".autoFocus",
|
|
107
|
-
suspendModal: ce,
|
|
108
|
-
sx: {
|
|
109
|
-
width: "480px",
|
|
110
|
-
...W
|
|
111
|
-
},
|
|
112
|
-
...S,
|
|
113
|
-
children: g(h, {
|
|
114
|
-
ref: ae,
|
|
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
|
-
g(f, {
|
|
124
|
-
sx: {
|
|
125
|
-
minWidth: 135,
|
|
126
|
-
width: "100%"
|
|
127
|
-
},
|
|
128
|
-
size: "small",
|
|
129
|
-
children: [m(y, {
|
|
130
|
-
id: oe,
|
|
131
|
-
children: A("hyperlink.linkTo")
|
|
132
|
-
}), g(b, {
|
|
133
|
-
labelId: oe,
|
|
134
|
-
value: B,
|
|
135
|
-
label: A("hyperlink.linkTo"),
|
|
136
|
-
MenuProps: {
|
|
137
|
-
disableRestoreFocus: !0,
|
|
138
|
-
slotProps: { transition: { onExited: ue } },
|
|
139
|
-
container: () => document.fullscreenElement
|
|
140
|
-
},
|
|
141
|
-
onChange: (e) => {
|
|
142
|
-
N(e.target.value);
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
m(x, {
|
|
146
|
-
value: "url",
|
|
147
|
-
children: A("hyperlink.typeWebPage")
|
|
148
|
-
}),
|
|
149
|
-
m(x, {
|
|
150
|
-
value: "document",
|
|
151
|
-
children: A("hyperlink.typeInDocument")
|
|
152
|
-
}),
|
|
153
|
-
m(x, {
|
|
154
|
-
value: "email",
|
|
155
|
-
children: A("hyperlink.typeEmail")
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
})]
|
|
159
|
-
}),
|
|
160
|
-
"email" === B ? g(c, { children: [m(t, {
|
|
161
|
-
sx: C,
|
|
162
|
-
label: A("hyperlink.emailAddress"),
|
|
163
|
-
defaultInput: A("hyperlink.emailPlaceholder"),
|
|
164
|
-
value: G,
|
|
165
|
-
onChangeInput: (e) => J(e),
|
|
166
|
-
onFocus: (e) => {
|
|
167
|
-
re || e.target?.select?.(), se(!0);
|
|
168
|
-
}
|
|
169
|
-
}), m(t, {
|
|
170
|
-
label: A("hyperlink.subject"),
|
|
171
|
-
defaultInput: "",
|
|
172
|
-
value: K,
|
|
173
|
-
onChangeInput: (e) => Q(e),
|
|
174
|
-
onFocus: () => se(!0)
|
|
175
|
-
})] }) : "document" === B ? m(e, {
|
|
176
|
-
sx: C,
|
|
177
|
-
grammar: "reference",
|
|
178
|
-
apiRef: ie,
|
|
179
|
-
classNameInput: "autoFocus",
|
|
180
|
-
label: A("hyperlink.reference"),
|
|
181
|
-
value: X,
|
|
182
|
-
allowMulti: !1,
|
|
183
|
-
home: pe,
|
|
184
|
-
onChangeInput: (e) => Y(e),
|
|
185
|
-
onChangeText: (e) => _(e),
|
|
186
|
-
onChangeError: (e) => te(e),
|
|
187
|
-
onFocus: (e) => {
|
|
188
|
-
re || e.target?.select?.(), se(!0);
|
|
189
|
-
}
|
|
190
|
-
}) : m(t, {
|
|
191
|
-
sx: C,
|
|
192
|
-
label: A("hyperlink.address"),
|
|
193
|
-
defaultInput: A("hyperlink.addressPlaceholder"),
|
|
194
|
-
value: U,
|
|
195
|
-
onChangeInput: (e) => q(e),
|
|
196
|
-
onFocus: (e) => {
|
|
197
|
-
re || e.target?.select?.(), se(!0);
|
|
198
|
-
}
|
|
199
|
-
}),
|
|
200
|
-
m(f, {
|
|
201
|
-
sx: {
|
|
202
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
203
|
-
minWidth: 135,
|
|
204
|
-
width: "100%"
|
|
205
|
-
},
|
|
206
|
-
size: "small",
|
|
207
|
-
children: m(k, {
|
|
208
|
-
label: A("hyperlink.displayText"),
|
|
209
|
-
placeholder: ye,
|
|
210
|
-
onFocus: () => {
|
|
211
|
-
se(!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: ne,
|
|
226
|
-
onChange: me,
|
|
227
|
-
onContextMenu: (e) => {
|
|
228
|
-
e.stopPropagation();
|
|
229
|
-
}
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
]
|
|
233
|
-
})
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
export { O as HyperlinkDialog, O as default };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.10
|
|
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 { FillPanel as e, LinePanel as t, panelSx as o } from "./index.mjs";
|
|
8
|
-
import { IFill as l, ShapeStyleUtils as r } from "@sheetxl/sdk";
|
|
9
|
-
import { useGridColorScheme as i } from "@sheetxl/react";
|
|
10
|
-
import { useTranslator as s } from "@sheetxl/utils-react";
|
|
11
|
-
import { memo as n, useEffect as a, useReducer as p } from "react";
|
|
12
|
-
import { jsx as d, jsxs as c } from "react/jsx-runtime";
|
|
13
|
-
import { Box as m, Typography as h } from "@mui/material";
|
|
14
|
-
var u = (e, t, o) => {
|
|
15
|
-
const i = e.toJSON();
|
|
16
|
-
let s = null;
|
|
17
|
-
try {
|
|
18
|
-
s = o.getTheme()?.toJSON() ?? null;
|
|
19
|
-
} catch {
|
|
20
|
-
s = null;
|
|
21
|
-
}
|
|
22
|
-
const n = r.resolve(i ? {
|
|
23
|
-
...i,
|
|
24
|
-
stroke: void 0
|
|
25
|
-
} : null, s, r.inheritedGroupFill(t)).stroke?.fill, a = n?.type === l.Type.Solid ? n.color : void 0;
|
|
26
|
-
return a ? o.parseColor(a) : o.getNormal().getFont().getColor();
|
|
27
|
-
}, k = (e) => d(h, {
|
|
28
|
-
variant: "subtitle2",
|
|
29
|
-
component: "div",
|
|
30
|
-
children: e.children
|
|
31
|
-
}), g = n((l) => {
|
|
32
|
-
const { movable: r, sheet: n } = l, h = s(), g = r.getContent(), [, y] = p((e) => e + 1, 0);
|
|
33
|
-
a(() => g.addListeners({ onAnyChange: y }), [g]);
|
|
34
|
-
const f = n.getStyles(), S = "dark" === i(), v = g.isReadOnly(), x = g.getStyle(), C = {
|
|
35
|
-
fill: x.getFill(),
|
|
36
|
-
styles: f,
|
|
37
|
-
schemeLookup: f.schemeLookup(),
|
|
38
|
-
darkMode: S,
|
|
39
|
-
disabled: v,
|
|
40
|
-
createCell: (e) => n.createCell(e),
|
|
41
|
-
applyFill: (e, t) => {
|
|
42
|
-
x.setFill(e, { description: t });
|
|
43
|
-
}
|
|
44
|
-
}, F = {
|
|
45
|
-
stroke: x.getStroke(),
|
|
46
|
-
stated: x.toJSON()?.stroke ?? null,
|
|
47
|
-
autoColor: u(g, r, f),
|
|
48
|
-
styles: f,
|
|
49
|
-
schemeLookup: f.schemeLookup(),
|
|
50
|
-
darkMode: S,
|
|
51
|
-
disabled: v,
|
|
52
|
-
applyStroke: (e, t) => {
|
|
53
|
-
x.setStroke(e, { description: t });
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return c(m, {
|
|
57
|
-
sx: {
|
|
58
|
-
...o,
|
|
59
|
-
gap: 2,
|
|
60
|
-
paddingTop: (e) => e.spacing(1)
|
|
61
|
-
},
|
|
62
|
-
children: [
|
|
63
|
-
d(k, { children: h("shape.pane.fill") }),
|
|
64
|
-
d(e, { selection: C }),
|
|
65
|
-
d(k, { children: h("shape.pane.line") }),
|
|
66
|
-
d(t, { selection: F })
|
|
67
|
-
]
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
g.displayName = "ShapeFormatPanel";
|
|
71
|
-
export { g as ShapeFormatPanel };
|