@sheetxl/studio-mui 0.7.28-beta.2 → 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.
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/6GrWBX-cyxTRJerw.mjs +236 -0
  8. package/browser/esm/{Bt_J_RX2M5EfualB.mjs → 6seXVm4fUaBp34tP.mjs} +2 -2
  9. package/browser/esm/{BlykPulAqes3JMee.mjs → BLjxQ1NUjmULb00s.mjs} +2 -2
  10. package/browser/esm/{Cwku0NEsbyq9Q_RE.mjs → BVC0iuc28yuEcyua.mjs} +1 -1
  11. package/browser/esm/{DN5ACcUVdZeTSdLP.mjs → C1PiodbCgkhztxU5.mjs} +2 -2
  12. package/browser/esm/{CIvpm_sHFmNjZQ7A.mjs → C5XQW-A03GP8EZ3s.mjs} +1 -1
  13. package/browser/esm/{Lds8JbV0rmFse8IO.mjs → C7WFuxTBA8MWoOQj.mjs} +2 -2
  14. package/browser/esm/{DP50mI7SOk1spPHv.mjs → CDyYtk9WscSzj5I5.mjs} +2 -2
  15. package/browser/esm/{DfZkO9tkYUlBUgXw.mjs → CVxEcB8lAnOQ-oPh.mjs} +2 -2
  16. package/browser/esm/{BGngIqHYTFzsezh-.mjs → CZGRaL9mjYTo8fAd.mjs} +1 -1
  17. package/browser/esm/{BNhUUeacBwGsPLBQ.mjs → CccE_2DTbTMNIfQM.mjs} +1 -1
  18. package/browser/esm/{gr4KpbaVpVfm8KOB.mjs → DTWkitCkayiinpgU.mjs} +1 -1
  19. package/browser/esm/{D4-E6nt8hrlNPIFy.mjs → DbHn3Fq4gYggsoXV.mjs} +1458 -1420
  20. package/browser/esm/{DxurARMNTQF7_rno.mjs → DdbgnOWM0tle1jeT.mjs} +2 -2
  21. package/browser/esm/{DLG0lDeb0t2L5dW4.mjs → DhMl3LbgjdX8Nz7b.mjs} +2 -2
  22. package/browser/esm/{EK3JudzGAPbSIzUc.mjs → DoOWIBDSfgrvMmNO.mjs} +9 -5
  23. package/browser/esm/{gdfNDmwpOOPidxVx.mjs → Drbpg4A9TaJUZd5A.mjs} +1 -1
  24. package/browser/esm/{D5kzg7IfEtrExqiB.mjs → DxBsD4nDbg_OWhYG.mjs} +2 -2
  25. package/browser/esm/{BH0fLaa4Vfda2U-T.mjs → GCJRjX28QYfxi-Lg.mjs} +1 -1
  26. package/browser/esm/{BkP8c-zrLAqdNL5E.mjs → HZXAXZqrC43FBvGk.mjs} +2 -2
  27. package/browser/esm/{DhSHhyt16cHMvS_1.mjs → RbGJTMzxMTlkFlTq.mjs} +2 -2
  28. package/browser/esm/{BKadOi_4tf3UqilJ.mjs → dgkVCh7lmm1Twqmo.mjs} +2057 -1678
  29. package/browser/esm/index.mjs +22 -22
  30. package/browser/esm/{BFnJuOSao7TjbB-2.mjs → l5BsxVQszkPy_n34.mjs} +1 -1
  31. package/licenses/dependencies.txt +34 -34
  32. package/node/esm/{Ck1Im-zWbwJqZNU1.mjs → -9Hcp_VKJtR9fWlC.mjs} +1 -1
  33. package/node/esm/{Ctakr7TocM8RykpC.mjs → 6PuhMTJrzLciGI0Z.mjs} +2 -2
  34. package/node/esm/{CWDr4rcpYux8bSQk.mjs → B-3Ypi8akR-GxIpw.mjs} +1 -1
  35. package/node/esm/{Dh2MI-_NSwxjrRP8.mjs → BxTFDoMd-nowfxfb.mjs} +1 -1
  36. package/node/esm/{CTVMIjaQZQtJ05F8.mjs → C2HawKeialuFRR9r.mjs} +1 -1
  37. package/node/esm/{DMhU1sS3kX-Im83k.mjs → CbhFnQCOA5TjhFB1.mjs} +1 -1
  38. package/node/esm/CgA8rdWVZEpIUpsM.mjs +236 -0
  39. package/node/esm/{CLqRv2FWsGMrPoB0.mjs → CxqL51jVpIL4ncWW.mjs} +1 -1
  40. package/node/esm/D-x3LVzppkKf5be_.mjs +4575 -0
  41. package/node/esm/{ED4g6Bsz9syAhAW3.mjs → DPhvWXmDun8bC0_v.mjs} +1 -1
  42. package/node/esm/{CSaiKMpmmQJY2xtl.mjs → DYlYrd0A73WoQQgM.mjs} +1 -1
  43. package/node/esm/{-xXP4QK8hYGcJeug.mjs → ELTc6e1FF88hBAev.mjs} +1 -1
  44. package/node/esm/index.mjs +2645 -2262
  45. package/node/esm/{BVNe-px0vKah_sh2.mjs → uJOy7zjNtP0IqGoa.mjs} +45 -45
  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 -3
  49. package/resources/locales/en/groups.cmd.json +5 -0
  50. package/resources/locales/en/ui.msg.json +56 -3
  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/B_WyRpeiesnEiNP4.cjs +0 -11
  65. package/browser/cjs/C3moehR3VOd0LnmM.cjs +0 -1
  66. package/browser/cjs/DLScL5AOXhHu9O9H.cjs +0 -7
  67. package/browser/esm/DxEzstNhMkJ0uzic.mjs +0 -191
  68. package/node/esm/CgDlduchq8t6DdhF.mjs +0 -190
  69. package/node/esm/VuLRDpv46Yib6fpp.mjs +0 -4536
@@ -1,190 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.7.28-beta.2
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 };