@sheetxl/studio-mui 0.7.28-beta.3 → 0.8.0-beta.1

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.
Files changed (69) hide show
  1. package/browser/cjs/Bte6P3MhSjajJmmY.cjs +7 -0
  2. package/browser/cjs/CYxc8vnRi8dNpDPk.cjs +1 -0
  3. package/browser/cjs/{DBJLJGiCGXesx5n6.cjs → Cm1APq2MraYNNhyI.cjs} +1 -1
  4. package/browser/cjs/{ByIEqNsvj52sihT9.cjs → DO8V31Z1ewgMA1di.cjs} +1 -1
  5. package/browser/cjs/index.cjs +1 -1
  6. package/browser/cjs/z0rB4fK6X1M6PpVD.cjs +11 -0
  7. package/browser/esm/{BkyDtDdvSl_AV9Gt.mjs → 3ydDykDMtDYbfVVn.mjs} +2 -2
  8. package/browser/esm/{CmORsa6FH_sUlG09.mjs → BUGepznywvV0tUjW.mjs} +2 -2
  9. package/browser/esm/{kwpr8OkbF3lZEN1T.mjs → BZBJG2tDdD3-VujP.mjs} +2 -2
  10. package/browser/esm/{_1Rr-Es6ahuX7Qhz.mjs → BoLxSRdEWt-Yg2RI.mjs} +2 -2
  11. package/browser/esm/{CA-Mxp0a5qYu-eQC.mjs → BuY3uV47Bwbqpasq.mjs} +1 -1
  12. package/browser/esm/{BwGPqPTphFbyCgv1.mjs → Bz5LiUe3SZ8g42Ia.mjs} +1 -1
  13. package/browser/esm/{DqyGltio8npJVndh.mjs → CAs1MWvJTcRfJy26.mjs} +2 -2
  14. package/browser/esm/{FInOepzy3-iT5cjT.mjs → CBU3LgLYmqtQjJbu.mjs} +1 -1
  15. package/browser/esm/{D_YPZjHwcGU0e_CU.mjs → CDU0rqpLNVtMLI-f.mjs} +1 -1
  16. package/browser/esm/{CEQHdobx2heqC_xT.mjs → CVBub6pgTsJzCc5m.mjs} +1458 -1420
  17. package/browser/esm/{DgBl7UkteQ4zL4kL.mjs → CVfuCNRpODUw04IH.mjs} +1 -1
  18. package/browser/esm/{B5C5eyh4pBM5mSve.mjs → C_XvSsQ9BVdHffCO.mjs} +2 -2
  19. package/browser/esm/{DEEXBFwk1sZkiUlr.mjs → Cd6n1XUgF0VItpkH.mjs} +1 -1
  20. package/browser/esm/{CTXaV5uwcruyrMp0.mjs → ChwS_ougBsogOEsP.mjs} +2 -2
  21. package/browser/esm/{JyGi5nNsg4qKS5j4.mjs → Cj2pgCNqBCGl4rTX.mjs} +9 -5
  22. package/browser/esm/{CTaMCLRdYJ1uFxE2.mjs → DMLXV4EKl1NCp_jk.mjs} +2 -2
  23. package/browser/esm/{DnXdm8bvu4pg43G2.mjs → DNDrQKMTzKzNMjl-.mjs} +1 -1
  24. package/browser/esm/{B7brtmmNB6T3RNY2.mjs → FT29q8yNwsEpVZjt.mjs} +2057 -1677
  25. package/browser/esm/{C6TVYNeH2nr88ReK.mjs → Hb1rlHT4tE5hLcjM.mjs} +2 -2
  26. package/browser/esm/{gpMEXsQ5UNiXgQmz.mjs → UJOXCQv6KrG1gY3l.mjs} +1 -1
  27. package/browser/esm/index.mjs +22 -22
  28. package/browser/esm/rU8xNPVQtDSnujM-.mjs +236 -0
  29. package/browser/esm/{CKuKgvw5RwhXSGSf.mjs → s46El7mT6oKLSnYB.mjs} +2 -2
  30. package/browser/esm/{DuidI13hr0XjasSY.mjs → zWTZ8BvT4hjgC2ua.mjs} +2 -2
  31. package/licenses/dependencies.txt +34 -34
  32. package/node/esm/{0cz-6oYBrKiMBZM1.mjs → 9FY82fj1R1c-AczW.mjs} +1 -1
  33. package/node/esm/{CljT532ykR37FgiC.mjs → BA7VzUQ2sKRLTZ5c.mjs} +1 -1
  34. package/node/esm/{DvpO4eBfsgfawgqe.mjs → BhqI3pQFkV8K_612.mjs} +1 -1
  35. package/node/esm/{BKcg--YNK_xm5fas.mjs → BwZcoHDBmLPIVOT5.mjs} +1 -1
  36. package/node/esm/{OXH7uXxF8tahBwbJ.mjs → C-boHCnJditFzng3.mjs} +1 -1
  37. package/node/esm/{un1nvQ0PuZGhfCXp.mjs → CHi3AuWEwEPOg9IZ.mjs} +1 -1
  38. package/node/esm/{Dod4GwzFr8dcXjc0.mjs → CUMKTjYv6VTkcWYi.mjs} +1 -1
  39. package/node/esm/DM7K7-284z-PczVz.mjs +236 -0
  40. package/node/esm/{CA8JibkMn3a6soxi.mjs → DXZrzWee8K5FPOW1.mjs} +2 -2
  41. package/node/esm/DxXM8qHi0Oz4Zovl.mjs +4575 -0
  42. package/node/esm/{dLsmdAQ-_LdY1aTA.mjs → Qpuqm6xBr_da38Ht.mjs} +45 -45
  43. package/node/esm/index.mjs +2645 -2261
  44. package/node/esm/{TQrOnEDWuUSuD-8n.mjs → sQt2wWGTRLzqeJdG.mjs} +1 -1
  45. package/node/esm/{AndURfUyGlsYwOhZ.mjs → yCHAZKxJR7qY_ySy.mjs} +1 -1
  46. package/package.json +9 -9
  47. package/resources/locales/de/groups.cmd.json +5 -0
  48. package/resources/locales/de/ui.msg.json +8 -2
  49. package/resources/locales/en/groups.cmd.json +5 -0
  50. package/resources/locales/en/ui.msg.json +56 -2
  51. package/types/src/anchorItems/AnchorItemsDescriptor.d.ts +1 -1
  52. package/types/src/command/CalculationOptionsCommandButton.d.ts +22 -0
  53. package/types/src/command/index.d.ts +1 -0
  54. package/types/src/conditionalFormat/IconPickerPopupButton.d.ts +27 -0
  55. package/types/src/conditionalFormat/IconSetRulePanel.d.ts +10 -8
  56. package/types/src/conditionalFormat/PresetScalesCommandButton.d.ts +30 -2
  57. package/types/src/conditionalFormat/RulePreview.d.ts +1 -1
  58. package/types/src/conditionalFormat/ScaleStopRow.d.ts +8 -2
  59. package/types/src/conditionalFormat/iconSetMessages.d.ts +9 -0
  60. package/types/src/formulaBar/IFormulaBar.d.ts +7 -0
  61. package/types/src/statusBar/CalculationRequiredStatus.d.ts +21 -0
  62. package/types/src/statusBar/CircularReferenceStatus.d.ts +23 -0
  63. package/types/src/statusBar/index.d.ts +2 -0
  64. package/browser/cjs/B1OGLm0sOXRWoOqW.cjs +0 -7
  65. package/browser/cjs/C3moehR3VOd0LnmM.cjs +0 -1
  66. package/browser/cjs/fNAtMntE00ehero6.cjs +0 -11
  67. package/browser/esm/CX2cBzzCg_tfihaC.mjs +0 -191
  68. package/node/esm/54CtbSkcZ9yo4h42.mjs +0 -190
  69. 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 };