@sheetxl/studio-mui 0.7.28-beta.3 → 0.7.28-beta.4
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/cjs/Bte6P3MhSjajJmmY.cjs +7 -0
- package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +1 -0
- package/browser/cjs/{DBJLJGiCGXesx5n6.cjs → Cm1APq2MraYNNhyI.cjs} +1 -1
- package/browser/cjs/{ByIEqNsvj52sihT9.cjs → DO8V31Z1ewgMA1di.cjs} +1 -1
- package/browser/cjs/index.cjs +1 -1
- package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +11 -0
- package/browser/esm/6GrWBX-cyxTRJerw.mjs +236 -0
- package/browser/esm/{DqyGltio8npJVndh.mjs → 6seXVm4fUaBp34tP.mjs} +2 -2
- package/browser/esm/{CmORsa6FH_sUlG09.mjs → BLjxQ1NUjmULb00s.mjs} +2 -2
- package/browser/esm/{DnXdm8bvu4pg43G2.mjs → BVC0iuc28yuEcyua.mjs} +1 -1
- package/browser/esm/{CKuKgvw5RwhXSGSf.mjs → C1PiodbCgkhztxU5.mjs} +2 -2
- package/browser/esm/{D_YPZjHwcGU0e_CU.mjs → C5XQW-A03GP8EZ3s.mjs} +1 -1
- package/browser/esm/{CTaMCLRdYJ1uFxE2.mjs → C7WFuxTBA8MWoOQj.mjs} +2 -2
- package/browser/esm/{_1Rr-Es6ahuX7Qhz.mjs → CDyYtk9WscSzj5I5.mjs} +2 -2
- package/browser/esm/{CTXaV5uwcruyrMp0.mjs → CVxEcB8lAnOQ-oPh.mjs} +2 -2
- package/browser/esm/{gpMEXsQ5UNiXgQmz.mjs → CZGRaL9mjYTo8fAd.mjs} +1 -1
- package/browser/esm/{DgBl7UkteQ4zL4kL.mjs → CccE_2DTbTMNIfQM.mjs} +1 -1
- package/browser/esm/{CA-Mxp0a5qYu-eQC.mjs → DTWkitCkayiinpgU.mjs} +1 -1
- package/browser/esm/{CEQHdobx2heqC_xT.mjs → DbHn3Fq4gYggsoXV.mjs} +1458 -1420
- package/browser/esm/{DuidI13hr0XjasSY.mjs → DdbgnOWM0tle1jeT.mjs} +2 -2
- package/browser/esm/{BkyDtDdvSl_AV9Gt.mjs → DhMl3LbgjdX8Nz7b.mjs} +2 -2
- package/browser/esm/{JyGi5nNsg4qKS5j4.mjs → DoOWIBDSfgrvMmNO.mjs} +9 -5
- package/browser/esm/{DEEXBFwk1sZkiUlr.mjs → Drbpg4A9TaJUZd5A.mjs} +1 -1
- package/browser/esm/{B5C5eyh4pBM5mSve.mjs → DxBsD4nDbg_OWhYG.mjs} +2 -2
- package/browser/esm/{BwGPqPTphFbyCgv1.mjs → GCJRjX28QYfxi-Lg.mjs} +1 -1
- package/browser/esm/{C6TVYNeH2nr88ReK.mjs → HZXAXZqrC43FBvGk.mjs} +2 -2
- package/browser/esm/{kwpr8OkbF3lZEN1T.mjs → RbGJTMzxMTlkFlTq.mjs} +2 -2
- package/browser/esm/{B7brtmmNB6T3RNY2.mjs → dgkVCh7lmm1Twqmo.mjs} +2057 -1677
- package/browser/esm/index.mjs +22 -22
- package/browser/esm/{FInOepzy3-iT5cjT.mjs → l5BsxVQszkPy_n34.mjs} +1 -1
- package/licenses/dependencies.txt +34 -34
- package/node/esm/{AndURfUyGlsYwOhZ.mjs → -9Hcp_VKJtR9fWlC.mjs} +1 -1
- package/node/esm/{CA8JibkMn3a6soxi.mjs → 6PuhMTJrzLciGI0Z.mjs} +2 -2
- package/node/esm/{TQrOnEDWuUSuD-8n.mjs → B-3Ypi8akR-GxIpw.mjs} +1 -1
- package/node/esm/{CljT532ykR37FgiC.mjs → BxTFDoMd-nowfxfb.mjs} +1 -1
- package/node/esm/{Dod4GwzFr8dcXjc0.mjs → C2HawKeialuFRR9r.mjs} +1 -1
- package/node/esm/{OXH7uXxF8tahBwbJ.mjs → CbhFnQCOA5TjhFB1.mjs} +1 -1
- package/node/esm/CgA8rdWVZEpIUpsM.mjs +236 -0
- package/node/esm/{0cz-6oYBrKiMBZM1.mjs → CxqL51jVpIL4ncWW.mjs} +1 -1
- package/node/esm/D-x3LVzppkKf5be_.mjs +4575 -0
- package/node/esm/{un1nvQ0PuZGhfCXp.mjs → DPhvWXmDun8bC0_v.mjs} +1 -1
- package/node/esm/{DvpO4eBfsgfawgqe.mjs → DYlYrd0A73WoQQgM.mjs} +1 -1
- package/node/esm/{BKcg--YNK_xm5fas.mjs → ELTc6e1FF88hBAev.mjs} +1 -1
- package/node/esm/index.mjs +2645 -2261
- package/node/esm/{dLsmdAQ-_LdY1aTA.mjs → uJOy7zjNtP0IqGoa.mjs} +45 -45
- package/package.json +9 -9
- package/resources/locales/de/groups.cmd.json +5 -0
- package/resources/locales/de/ui.msg.json +8 -2
- package/resources/locales/en/groups.cmd.json +5 -0
- package/resources/locales/en/ui.msg.json +56 -2
- package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +1 -1
- package/types/src/command/CalculationOptionsCommandButton.d.ts +22 -0
- package/types/src/command/index.d.ts +1 -0
- package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +27 -0
- package/types/src/conditionalFormat/IconSetRulePanel.d.ts +10 -8
- package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +30 -2
- package/types/src/conditionalFormat/RulePreview.d.ts +1 -1
- package/types/src/conditionalFormat/ScaleStopRow.d.ts +8 -2
- package/types/src/conditionalFormat/iconSetMessages.d.ts +9 -0
- package/types/src/formulaBar/IFormulaBar.d.ts +7 -0
- package/types/src/statusBar/CalculationRequiredStatus.d.ts +21 -0
- package/types/src/statusBar/CircularReferenceStatus.d.ts +23 -0
- package/types/src/statusBar/index.d.ts +2 -0
- package/browser/cjs/B1OGLm0sOXRWoOqW.cjs +0 -7
- package/browser/cjs/C3moehR3VOd0LnmM.cjs +0 -1
- package/browser/cjs/fNAtMntE00ehero6.cjs +0 -11
- package/browser/esm/CX2cBzzCg_tfihaC.mjs +0 -191
- package/node/esm/54CtbSkcZ9yo4h42.mjs +0 -190
- package/node/esm/DFkg2JcjAxeK_RNA.mjs +0 -4536
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.3
|
|
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 "./DqyGltio8npJVndh.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 u } from "@sheetxl/utils-mui";
|
|
13
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
-
import { Box as p, FormControl as m, InputLabel as te, MenuItem as h, Select as g, TextField as _ } from "@mui/material";
|
|
15
|
-
var v = ["Ok", "Cancel"], y = { paddingTop: (e) => e.spacing(1.5) }, b = a((a) => {
|
|
16
|
-
let { initialValue: b = null, context: x, onInput: S, onOption: C, onValidateOption: w, onDone: T, options: E = v, defaultOption: D = E?.[0], cancelOption: O = "Cancel", sx: k, ...A } = a, j = i(), M = s(() => (b ?? x?.()?.getHyperlink()) !== null, []), N = s(() => {
|
|
17
|
-
let e = null, t = null;
|
|
18
|
-
b && (typeof b == "string" ? t = b : e = b);
|
|
19
|
-
let n = e ? null : x?.()?.getHyperlink();
|
|
20
|
-
return {
|
|
21
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
22
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
23
|
-
};
|
|
24
|
-
}, [b, x]), P = N.address.startsWith("#"), [F, ne] = l(P ? "document" : "url"), [I, L] = l(P ? "" : N.address), [R, z] = l(() => P && N.address.substring(1) || null), [B, V] = l(P ? N.address.substring(1) : ""), [H, U] = l(null), [W, G] = l(() => {
|
|
25
|
-
let e = x?.().getText({ useFormattingCategory: !0 }) ?? N.textToDisplay;
|
|
26
|
-
return e === N.address ? "" : e;
|
|
27
|
-
}), [K, q] = l(!1), J = ee(), Y = c(null), X = c(null), Z = r(() => {
|
|
28
|
-
Y.current?.querySelector("input.autoFocus")?.focus(), X.current?.engage();
|
|
29
|
-
}, []), Q = c(F);
|
|
30
|
-
o(() => {
|
|
31
|
-
Q.current !== F && (Q.current = F, Z());
|
|
32
|
-
}, [F]);
|
|
33
|
-
let re = s(() => {
|
|
34
|
-
let e = x?.()?.getSheet()?.getName();
|
|
35
|
-
return e ? { scope: e } : void 0;
|
|
36
|
-
}, [x]), ie = n().getMode()?.mode === "point", ae = r((e) => {
|
|
37
|
-
G(e.target.value);
|
|
38
|
-
}, []), $ = r(() => {
|
|
39
|
-
if (F === "document") {
|
|
40
|
-
if (typeof R == "string") {
|
|
41
|
-
let e = R.trim();
|
|
42
|
-
return e ? `#${e}` : null;
|
|
43
|
-
}
|
|
44
|
-
let e = R?.getReferences()?.getAddress();
|
|
45
|
-
return e ? `#${e}` : null;
|
|
46
|
-
}
|
|
47
|
-
return I === "" ? null : I;
|
|
48
|
-
}, [
|
|
49
|
-
F,
|
|
50
|
-
R,
|
|
51
|
-
I
|
|
52
|
-
]), oe = r(async (e) => {
|
|
53
|
-
let t = e === O;
|
|
54
|
-
if (!t) {
|
|
55
|
-
let e = $(), t = e?.startsWith("#") ? e.substring(1) : e;
|
|
56
|
-
S?.({
|
|
57
|
-
address: e,
|
|
58
|
-
textToDisplay: (W === "" ? t : W) ?? null
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
C?.(e, t, e === D), T?.();
|
|
62
|
-
}, [
|
|
63
|
-
$,
|
|
64
|
-
W,
|
|
65
|
-
S,
|
|
66
|
-
T,
|
|
67
|
-
C,
|
|
68
|
-
D,
|
|
69
|
-
O
|
|
70
|
-
]), se = r(async (e) => !1 !== await Promise.resolve(w?.(e)) && (F !== "document" || !H), [
|
|
71
|
-
w,
|
|
72
|
-
F,
|
|
73
|
-
H
|
|
74
|
-
]), ce = F === "document" ? B : I;
|
|
75
|
-
return d(u, {
|
|
76
|
-
title: j(M ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
77
|
-
options: E,
|
|
78
|
-
onDone: T,
|
|
79
|
-
onOption: (e) => oe(e),
|
|
80
|
-
onValidateOption: se,
|
|
81
|
-
defaultOption: D,
|
|
82
|
-
cancelOption: O,
|
|
83
|
-
autoFocusSel: ".autoFocus",
|
|
84
|
-
suspendModal: ie,
|
|
85
|
-
sx: {
|
|
86
|
-
width: "480px",
|
|
87
|
-
...k
|
|
88
|
-
},
|
|
89
|
-
...A,
|
|
90
|
-
children: f(p, {
|
|
91
|
-
ref: Y,
|
|
92
|
-
sx: {
|
|
93
|
-
paddingTop: (e) => e.spacing(1),
|
|
94
|
-
paddingBottom: (e) => e.spacing(0),
|
|
95
|
-
rowGap: (e) => e.spacing(1),
|
|
96
|
-
display: "flex",
|
|
97
|
-
flexDirection: "column"
|
|
98
|
-
},
|
|
99
|
-
children: [
|
|
100
|
-
f(m, {
|
|
101
|
-
sx: {
|
|
102
|
-
minWidth: 135,
|
|
103
|
-
width: "100%"
|
|
104
|
-
},
|
|
105
|
-
size: "small",
|
|
106
|
-
children: [d(te, {
|
|
107
|
-
id: J,
|
|
108
|
-
children: j("hyperlink.linkTo")
|
|
109
|
-
}), f(g, {
|
|
110
|
-
labelId: J,
|
|
111
|
-
value: F,
|
|
112
|
-
label: j("hyperlink.linkTo"),
|
|
113
|
-
MenuProps: {
|
|
114
|
-
disableRestoreFocus: !0,
|
|
115
|
-
slotProps: { transition: { onExited: Z } },
|
|
116
|
-
container: () => document.fullscreenElement
|
|
117
|
-
},
|
|
118
|
-
onChange: (e) => {
|
|
119
|
-
ne(e.target.value);
|
|
120
|
-
},
|
|
121
|
-
children: [d(h, {
|
|
122
|
-
value: "url",
|
|
123
|
-
children: j("hyperlink.typeWebPage")
|
|
124
|
-
}), d(h, {
|
|
125
|
-
value: "document",
|
|
126
|
-
children: j("hyperlink.typeInDocument")
|
|
127
|
-
})]
|
|
128
|
-
})]
|
|
129
|
-
}),
|
|
130
|
-
F === "document" ? d(e, {
|
|
131
|
-
sx: y,
|
|
132
|
-
grammar: "reference",
|
|
133
|
-
apiRef: X,
|
|
134
|
-
classNameInput: "autoFocus",
|
|
135
|
-
label: j("hyperlink.reference"),
|
|
136
|
-
value: R,
|
|
137
|
-
allowMulti: !1,
|
|
138
|
-
home: re,
|
|
139
|
-
onChangeInput: (e) => z(e),
|
|
140
|
-
onChangeText: (e) => V(e),
|
|
141
|
-
onChangeError: (e) => U(e),
|
|
142
|
-
onFocus: (e) => {
|
|
143
|
-
K || e.target?.select?.(), q(!0);
|
|
144
|
-
}
|
|
145
|
-
}) : d(t, {
|
|
146
|
-
sx: y,
|
|
147
|
-
label: j("hyperlink.address"),
|
|
148
|
-
defaultInput: j("hyperlink.addressPlaceholder"),
|
|
149
|
-
value: I,
|
|
150
|
-
onChangeInput: (e) => L(e),
|
|
151
|
-
onFocus: (e) => {
|
|
152
|
-
K || e.target?.select?.(), q(!0);
|
|
153
|
-
}
|
|
154
|
-
}),
|
|
155
|
-
d(m, {
|
|
156
|
-
sx: {
|
|
157
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
158
|
-
minWidth: 135,
|
|
159
|
-
width: "100%"
|
|
160
|
-
},
|
|
161
|
-
size: "small",
|
|
162
|
-
children: d(_, {
|
|
163
|
-
label: j("hyperlink.displayText"),
|
|
164
|
-
placeholder: ce,
|
|
165
|
-
onFocus: () => {
|
|
166
|
-
q(!0);
|
|
167
|
-
},
|
|
168
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
169
|
-
slotProps: {
|
|
170
|
-
inputLabel: { shrink: !0 },
|
|
171
|
-
htmlInput: {
|
|
172
|
-
spellCheck: !1,
|
|
173
|
-
autoComplete: "off",
|
|
174
|
-
sx: {
|
|
175
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
176
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
value: W,
|
|
181
|
-
onChange: ae,
|
|
182
|
-
onContextMenu: (e) => {
|
|
183
|
-
e.stopPropagation();
|
|
184
|
-
}
|
|
185
|
-
})
|
|
186
|
-
})
|
|
187
|
-
]
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
export { b as HyperlinkDialog, b as default };
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.3
|
|
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 o, useTranslator as l } from "@sheetxl/utils-react";
|
|
10
|
-
import { memo as r, useEffect as s, useId as i, useMemo as a, useRef as u, useState as p } from "react";
|
|
11
|
-
import { OptionsDialog as d } from "@sheetxl/utils-mui";
|
|
12
|
-
import { jsx as c, jsxs as m } from "react/jsx-runtime";
|
|
13
|
-
import { Box as g, FormControl as h, InputLabel as x, MenuItem as f, Select as y, TextField as k } from "@mui/material";
|
|
14
|
-
var T = ["Ok", "Cancel"], C = { paddingTop: (e) => e.spacing(1.5) }, b = r((r) => {
|
|
15
|
-
const { initialValue: b = null, context: v, onInput: F, onOption: D, onValidateOption: I, onDone: O, options: P = T, defaultOption: w = P?.[0], cancelOption: M = "Cancel", sx: W, ...E } = r, H = l(), R = a(() => null !== (b ?? v?.()?.getHyperlink()), []), S = a(() => {
|
|
16
|
-
let e = null, t = null;
|
|
17
|
-
b && ("string" == typeof b ? t = b : e = b);
|
|
18
|
-
const n = e ? null : v?.()?.getHyperlink();
|
|
19
|
-
return {
|
|
20
|
-
address: t ?? e?.address ?? n?.getAddress() ?? "",
|
|
21
|
-
textToDisplay: e?.textToDisplay ?? n?.getTextToDisplay() ?? ""
|
|
22
|
-
};
|
|
23
|
-
}, [b, v]), V = S.address.startsWith("#"), [j, z] = p(V ? "document" : "url"), [A, B] = p(V ? "" : S.address), [N, $] = p(() => V && S.address.substring(1) || null), [q, G] = p(V ? S.address.substring(1) : ""), [L, J] = p(null), [K, Q] = p(() => {
|
|
24
|
-
const e = v?.().getText({ useFormattingCategory: !0 }) ?? S.textToDisplay;
|
|
25
|
-
return e === S.address ? "" : e;
|
|
26
|
-
}), [U, X] = p(!1), Y = i(), Z = u(null), _ = u(null), ee = o(() => {
|
|
27
|
-
Z.current?.querySelector("input.autoFocus")?.focus(), _.current?.engage();
|
|
28
|
-
}, []), te = u(j);
|
|
29
|
-
s(() => {
|
|
30
|
-
te.current !== j && (te.current = j, ee());
|
|
31
|
-
}, [j]);
|
|
32
|
-
const ne = a(() => {
|
|
33
|
-
const e = v?.()?.getSheet()?.getName();
|
|
34
|
-
return e ? { scope: e } : void 0;
|
|
35
|
-
}, [v]), oe = "point" === n().getMode()?.mode, le = o((e) => {
|
|
36
|
-
Q(e.target.value);
|
|
37
|
-
}, []), re = o(() => {
|
|
38
|
-
if ("document" === j) {
|
|
39
|
-
if ("string" == typeof N) {
|
|
40
|
-
const e = N.trim();
|
|
41
|
-
return e ? `#${e}` : null;
|
|
42
|
-
}
|
|
43
|
-
const e = N?.getReferences()?.getAddress();
|
|
44
|
-
return e ? `#${e}` : null;
|
|
45
|
-
}
|
|
46
|
-
return "" === A ? null : A;
|
|
47
|
-
}, [
|
|
48
|
-
j,
|
|
49
|
-
N,
|
|
50
|
-
A
|
|
51
|
-
]), se = o(async (e) => {
|
|
52
|
-
const t = e === M;
|
|
53
|
-
if (!t) {
|
|
54
|
-
const e = re(), t = e?.startsWith("#") ? e.substring(1) : e;
|
|
55
|
-
F?.({
|
|
56
|
-
address: e,
|
|
57
|
-
textToDisplay: ("" === K ? t : K) ?? null
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
D?.(e, t, e === w), O?.();
|
|
61
|
-
}, [
|
|
62
|
-
re,
|
|
63
|
-
K,
|
|
64
|
-
F,
|
|
65
|
-
O,
|
|
66
|
-
D,
|
|
67
|
-
w,
|
|
68
|
-
M
|
|
69
|
-
]), ie = o(async (e) => !1 !== await Promise.resolve(I?.(e)) && ("document" !== j || !L), [
|
|
70
|
-
I,
|
|
71
|
-
j,
|
|
72
|
-
L
|
|
73
|
-
]), ae = "document" === j ? q : A;
|
|
74
|
-
return c(d, {
|
|
75
|
-
title: H(R ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
|
|
76
|
-
options: P,
|
|
77
|
-
onDone: O,
|
|
78
|
-
onOption: (e) => se(e),
|
|
79
|
-
onValidateOption: ie,
|
|
80
|
-
defaultOption: w,
|
|
81
|
-
cancelOption: M,
|
|
82
|
-
autoFocusSel: ".autoFocus",
|
|
83
|
-
suspendModal: oe,
|
|
84
|
-
sx: {
|
|
85
|
-
width: "480px",
|
|
86
|
-
...W
|
|
87
|
-
},
|
|
88
|
-
...E,
|
|
89
|
-
children: m(g, {
|
|
90
|
-
ref: Z,
|
|
91
|
-
sx: {
|
|
92
|
-
paddingTop: (e) => e.spacing(1),
|
|
93
|
-
paddingBottom: (e) => e.spacing(0),
|
|
94
|
-
rowGap: (e) => e.spacing(1),
|
|
95
|
-
display: "flex",
|
|
96
|
-
flexDirection: "column"
|
|
97
|
-
},
|
|
98
|
-
children: [
|
|
99
|
-
m(h, {
|
|
100
|
-
sx: {
|
|
101
|
-
minWidth: 135,
|
|
102
|
-
width: "100%"
|
|
103
|
-
},
|
|
104
|
-
size: "small",
|
|
105
|
-
children: [c(x, {
|
|
106
|
-
id: Y,
|
|
107
|
-
children: H("hyperlink.linkTo")
|
|
108
|
-
}), m(y, {
|
|
109
|
-
labelId: Y,
|
|
110
|
-
value: j,
|
|
111
|
-
label: H("hyperlink.linkTo"),
|
|
112
|
-
MenuProps: {
|
|
113
|
-
disableRestoreFocus: !0,
|
|
114
|
-
slotProps: { transition: { onExited: ee } },
|
|
115
|
-
container: () => document.fullscreenElement
|
|
116
|
-
},
|
|
117
|
-
onChange: (e) => {
|
|
118
|
-
z(e.target.value);
|
|
119
|
-
},
|
|
120
|
-
children: [c(f, {
|
|
121
|
-
value: "url",
|
|
122
|
-
children: H("hyperlink.typeWebPage")
|
|
123
|
-
}), c(f, {
|
|
124
|
-
value: "document",
|
|
125
|
-
children: H("hyperlink.typeInDocument")
|
|
126
|
-
})]
|
|
127
|
-
})]
|
|
128
|
-
}),
|
|
129
|
-
"document" === j ? c(e, {
|
|
130
|
-
sx: C,
|
|
131
|
-
grammar: "reference",
|
|
132
|
-
apiRef: _,
|
|
133
|
-
classNameInput: "autoFocus",
|
|
134
|
-
label: H("hyperlink.reference"),
|
|
135
|
-
value: N,
|
|
136
|
-
allowMulti: !1,
|
|
137
|
-
home: ne,
|
|
138
|
-
onChangeInput: (e) => $(e),
|
|
139
|
-
onChangeText: (e) => G(e),
|
|
140
|
-
onChangeError: (e) => J(e),
|
|
141
|
-
onFocus: (e) => {
|
|
142
|
-
U || e.target?.select?.(), X(!0);
|
|
143
|
-
}
|
|
144
|
-
}) : c(t, {
|
|
145
|
-
sx: C,
|
|
146
|
-
label: H("hyperlink.address"),
|
|
147
|
-
defaultInput: H("hyperlink.addressPlaceholder"),
|
|
148
|
-
value: A,
|
|
149
|
-
onChangeInput: (e) => B(e),
|
|
150
|
-
onFocus: (e) => {
|
|
151
|
-
U || e.target?.select?.(), X(!0);
|
|
152
|
-
}
|
|
153
|
-
}),
|
|
154
|
-
c(h, {
|
|
155
|
-
sx: {
|
|
156
|
-
paddingTop: (e) => e.spacing(1.5),
|
|
157
|
-
minWidth: 135,
|
|
158
|
-
width: "100%"
|
|
159
|
-
},
|
|
160
|
-
size: "small",
|
|
161
|
-
children: c(k, {
|
|
162
|
-
label: H("hyperlink.displayText"),
|
|
163
|
-
placeholder: ae,
|
|
164
|
-
onFocus: () => {
|
|
165
|
-
X(!0);
|
|
166
|
-
},
|
|
167
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
168
|
-
slotProps: {
|
|
169
|
-
inputLabel: { shrink: !0 },
|
|
170
|
-
htmlInput: {
|
|
171
|
-
spellCheck: !1,
|
|
172
|
-
autoComplete: "off",
|
|
173
|
-
sx: {
|
|
174
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
175
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
value: K,
|
|
180
|
-
onChange: le,
|
|
181
|
-
onContextMenu: (e) => {
|
|
182
|
-
e.stopPropagation();
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
})
|
|
188
|
-
});
|
|
189
|
-
});
|
|
190
|
-
export { b as HyperlinkDialog, b as default };
|