@sheetxl/studio-mui 0.8.0-beta.10 → 0.8.0-beta.11
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/0BWO0bLZ8Vm_dKd2.mjs +582 -0
- package/browser/esm/BAbq4-I5f5oUiNaF.mjs +141 -0
- package/browser/esm/BED6h6YAwCf1HEQJ.mjs +161 -0
- package/browser/esm/{CEvZe2cZK-voZTif.mjs → BXhNFzyEGokTF-BL.mjs} +5 -5
- package/browser/esm/BYE9gCDWKyx6mnVs.mjs +381 -0
- package/browser/esm/{DBtc4lku0uHVcqWn.mjs → BjvD_4t2KGsZP5V8.mjs} +3 -3
- package/browser/esm/{DU3J8Gcf-WpBxNYg.mjs → BknfGJouygmnpFIU.mjs} +4 -4
- package/browser/esm/{D8al_cJ4U-NgzwoK.mjs → BlE_8o8tO2AgAlaj.mjs} +19 -17
- package/browser/esm/BokqKEpU6TFgfRs6.mjs +252 -0
- package/browser/esm/{DHY19rkSiiRZxShC.mjs → Brsh5yscJ_4uKFXp.mjs} +3 -3
- package/browser/esm/Bujtz_Guj88d03vI.mjs +831 -0
- package/browser/esm/Buqcl7J75MJrhpVE.mjs +1379 -0
- package/browser/esm/BvhYPwX3GrRaO9CM.mjs +319 -0
- package/browser/esm/C0wlMAIn9iREPK6w.mjs +87 -0
- package/browser/esm/C8JU4KsMasmLvojI.mjs +103 -0
- package/browser/esm/{CjznclrKqJRi7u9O.mjs → C9pIZVACtl9unFOp.mjs} +2 -2
- package/browser/esm/CBD4RiRKbbZtSXV-.mjs +318 -0
- package/browser/esm/{Blaj2R5hYxtLAW__.mjs → CEtXsBzEjEKk9GOj.mjs} +6 -6
- package/browser/esm/{CIu1bjPJe_x31Oww.mjs → COlZu93LRwuBvjE-.mjs} +3 -3
- package/browser/esm/{CoSiOS-og0zFw4Ws.mjs → CTjqDD-swFMZzI-Y.mjs} +2 -2
- package/browser/esm/CWkOgdL7mOKiTR62.mjs +975 -0
- package/browser/esm/ChSVxkPTIjgcC8PL.mjs +412 -0
- package/browser/esm/{5cbK03T_Oh3tNdR7.mjs → ClBvNPeNCAhuVWrG.mjs} +1 -1
- package/browser/esm/CyLn6zOOp_biA3xU.mjs +335 -0
- package/browser/esm/CynTY0oNtyJnoaBq.mjs +14 -0
- package/browser/esm/{xKiLJKiLxto8SayF.mjs → D3rRUK4dIM5gUSmj.mjs} +2 -2
- package/browser/esm/D9ISy7VkaRRFJl46.mjs +515 -0
- package/browser/esm/{fb126BNj3F8URR19.mjs → DDc6rDuU9JAo1DH_.mjs} +3 -3
- package/browser/esm/DDczwkXhz_MHub4z.mjs +197 -0
- package/browser/esm/{X1Db3b_7b_7OuCk6.mjs → DEv4pIEgYr5C7etm.mjs} +1 -1
- package/browser/esm/DG21x7RKDpge6zAE.mjs +31 -0
- package/browser/esm/DJOOed_OtB-XT7f3.mjs +437 -0
- package/browser/esm/{9eKCkvqpMQwqcXiw.mjs → DKtJxrpN0axtuQ0l.mjs} +1 -1
- package/browser/esm/DRSCS6aLiYmPjUz1.mjs +1543 -0
- package/browser/esm/{ByeL_BZuJ2kl8gtf.mjs → DTpRkgsTm_zYnWfW.mjs} +1 -1
- package/browser/esm/DV6i9RQZfJiKtEaJ.mjs +2552 -0
- package/browser/esm/DdcZrjMLWVukWcU5.mjs +7473 -0
- package/browser/esm/Di3BUxA0SqFWWgeg.mjs +94 -0
- package/browser/esm/DnGaP5F7mLwCGUYG.mjs +408 -0
- package/browser/esm/DpD4fg2WcyiKX_2K.mjs +414 -0
- package/browser/esm/{C1Rp2hZrApo5MUc8.mjs → Ds3XRkne7HxcXD8J.mjs} +2 -2
- package/browser/esm/{sFOAxZpxXo-qvDSp.mjs → DsoNMWDwHZP8UXQd.mjs} +1 -1
- package/browser/esm/G0Inqm6Eqw47dMpa.mjs +212 -0
- package/browser/esm/{B1Yp_uy1vFHcJB3U.mjs → HViD4Wfoi0mmqk9w.mjs} +1 -1
- package/browser/esm/LZoYSQAYV2wksnDv.mjs +386 -0
- package/browser/esm/{CtEFHbzYNvYjDYvi.mjs → QgaAIDUMmBQBsXP9.mjs} +8 -8
- package/browser/esm/{D6S8kVTzOjCn0-SK.mjs → YThnrg3PadGs7B4j.mjs} +51 -51
- package/browser/esm/index.mjs +1028 -170
- package/browser/esm/ttjcNHcFn8O6hfnd.mjs +1288 -0
- package/browser/esm/{yZxC4qUENOlMhVUH.mjs → w_JrR69vEpvoyeMy.mjs} +1 -1
- package/browser/esm/{DmCQbW4zwkT_Rq88.mjs → xFqkfN8QMCxvsetB.mjs} +1 -1
- package/browser/esm/{IQLeaAbtGTipUsOD.mjs → zqilJefihVd7At2T.mjs} +22 -21
- package/licenses/dependencies.txt +94 -94
- package/node/esm/{BYsG3KYVmxSe_CIQ.mjs → 1bf4gn-2vld4BZ9u.mjs} +1 -1
- package/node/esm/{CKu1AtRgyltyEdEN.mjs → 3WghtBXAvCDwcVrq.mjs} +1 -1
- package/node/esm/{cqzp431iNSLWictb.mjs → 4HmLH0bPVJCZLgik.mjs} +22 -22
- package/node/esm/{BYVLi0md4AYuDsB_.mjs → B0bdb_6p7fQI_ivo.mjs} +28 -28
- package/node/esm/BIMkjQUwG4Ih-6Sh.mjs +142 -0
- package/node/esm/BNg4QQY0WAPLE0q7.mjs +141 -0
- package/node/esm/BPzcW4BejRqso338.mjs +72 -0
- package/node/esm/BR45ogAR-hY2bE60.mjs +318 -0
- package/node/esm/BlN7G0DVC24zauig.mjs +197 -0
- package/node/esm/{ah3CUg4-VmNstGk_.mjs → Bph-sR3l6AYWeuxK.mjs} +2 -2
- package/node/esm/CPq-MIdEnc-53JpF.mjs +319 -0
- package/node/esm/CSAnTp5rwId0DUb8.mjs +380 -0
- package/node/esm/CWcv7UVXF8IUB0PC.mjs +1379 -0
- package/node/esm/{D9rzScOA9pEYFrtz.mjs → CYIoK22I6Yvv12_x.mjs} +20 -20
- package/node/esm/CZyA9uD4SkTvqp_G.mjs +1283 -0
- package/node/esm/{ci8d-mF1H9wnYzix.mjs → CjC6s3RUJQNCF7mP.mjs} +1 -1
- package/node/esm/{D6oQL8knsPpgdXuk.mjs → CuMePia6i_8yfJ6S.mjs} +9 -9
- package/node/esm/CvRbu8JPxFarsSR-.mjs +412 -0
- package/node/esm/{DNSjK5DAH3M14Qbc.mjs → CyafafEgfmjLqE5O.mjs} +1 -1
- package/node/esm/D-xqQ5qOSd6WrzwJ.mjs +94 -0
- package/node/esm/DLqBHdFp6wvm6EGs.mjs +212 -0
- package/node/esm/{BcwMb6CyVfvEwbHn.mjs → DMXLxp3T0E0SRTQc.mjs} +1 -1
- package/node/esm/{DZzvTQxIKr9LbEsA.mjs → DWqvf4H5F2wMnZ0L.mjs} +32 -30
- package/node/esm/DatM6eEYPpAtIMy-.mjs +405 -0
- package/node/esm/Db3dbaYLKUO66T9s.mjs +1689 -0
- package/node/esm/{B_jRGdwGFkudwmL-.mjs → DdEzhVqYTrGODXrz.mjs} +1 -1
- package/node/esm/DeZJlLk8WJ3BLtLs.mjs +975 -0
- package/node/esm/DfCuL8AUxMFoEG2s.mjs +519 -0
- package/node/esm/{Bb1sLMqXWKjdve23.mjs → Do-zCKziWhoG5eAv.mjs} +2 -2
- package/node/esm/{B8SQfjKjzYHLxzZR.mjs → DpJ2gmZJioCyq8La.mjs} +67 -67
- package/node/esm/{ETK6T6G0SIcFXDe5.mjs → XEDcegsv5AGKBfu2.mjs} +40 -40
- package/node/esm/index.mjs +8941 -13558
- package/node/esm/yCUxQuqVuC4DHKPx.mjs +385 -0
- package/node/esm/zITjZ7R4raDqhP-n.mjs +515 -0
- package/package.json +9 -9
- package/resources/locales/de/ui.msg.json +97 -0
- package/resources/locales/en/ui.msg.json +97 -0
- 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/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/comments/CommentCard.d.ts +2 -2
- package/types/src/conditions/useFormulaOption.d.ts +2 -2
- package/types/src/dialog/WorkbookStatisticsDialog.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/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/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/workbook/DefaultRenderers.d.ts +2 -2
- package/types/src/workbook/WorkbookContextMenu.d.ts +4 -0
- package/browser/esm/Biy7bhzzzPb5sfRN.mjs +0 -152
- package/browser/esm/COv-m-c2byCgvU3M.mjs +0 -14861
- package/browser/esm/Die9NXVFveHvcCT-.mjs +0 -4205
- package/browser/esm/sam1KGQZ59B_fADz.mjs +0 -1941
- package/node/esm/BYwXhrEwkRAt9nJS.mjs +0 -71
- package/node/esm/Cmt8Wv806N7NmE4Y.mjs +0 -3344
|
@@ -1,152 +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 { t as e } from "./5cbK03T_Oh3tNdR7.mjs";
|
|
8
|
-
import { t } from "./B1Yp_uy1vFHcJB3U.mjs";
|
|
9
|
-
import { useInputField as n } from "@sheetxl/react";
|
|
10
|
-
import { DynamicIcon as r, useTextSelectionDrag as i, useTranslator as a } from "@sheetxl/utils-react";
|
|
11
|
-
import { forwardRef as o, memo as s, useEffect as c, useImperativeHandle as l, useMemo as u, useRef as d } from "react";
|
|
12
|
-
import { ExhibitIconButton as f } from "@sheetxl/utils-mui";
|
|
13
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
14
|
-
import { FormControl as h, InputAdornment as g, TextField as _ } from "@mui/material";
|
|
15
|
-
var v = (e) => {
|
|
16
|
-
e.button === 0 && e.preventDefault();
|
|
17
|
-
}, y = s(o((o, s) => {
|
|
18
|
-
let { disabled: y, className: b, sx: x, defaultInput: S, value: C, formName: w, formOptions: T, onChangeInput: E, onChangeText: D, onDone: O, changeOn: k, onValidate: A, apiRef: j, label: M, helperText: N, showError: P = !0, onChangeError: F, hideAdornment: I, propsInput: L, onKeyDown: R, onFocus: z, ...B } = o, V = a(), H = i(), U = M ?? V("namedInput.label"), W = t(), G = w && W ? W.register(w, T) : null, K = n({
|
|
19
|
-
value: C ?? "",
|
|
20
|
-
onChange: E,
|
|
21
|
-
onChangeText: D,
|
|
22
|
-
onDone: O,
|
|
23
|
-
changeOn: k,
|
|
24
|
-
onValidate: A,
|
|
25
|
-
disabled: y
|
|
26
|
-
});
|
|
27
|
-
l(j, () => K, [K]);
|
|
28
|
-
let q = d(W);
|
|
29
|
-
q.current = W;
|
|
30
|
-
let J = d(F);
|
|
31
|
-
J.current = F;
|
|
32
|
-
let Y = d(null);
|
|
33
|
-
c(() => {
|
|
34
|
-
if (K.error === Y.current || (Y.current = K.error, J.current?.(K.error), !w)) return;
|
|
35
|
-
let e = q.current;
|
|
36
|
-
e && (K.error ? e.setError(w, { message: V(K.error) }) : e.clearErrors(w));
|
|
37
|
-
}, [K.error, w]);
|
|
38
|
-
let X = k === "done", Z = K.engaged && K.dirty, Q = u(() => {
|
|
39
|
-
if (!I && X) return m(g, {
|
|
40
|
-
tabIndex: -1,
|
|
41
|
-
onMouseDown: v,
|
|
42
|
-
"aria-hidden": !Z,
|
|
43
|
-
sx: {
|
|
44
|
-
display: "flex",
|
|
45
|
-
position: "relative",
|
|
46
|
-
flex: "0",
|
|
47
|
-
...Z ? null : {
|
|
48
|
-
visibility: "hidden",
|
|
49
|
-
pointerEvents: "none"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
position: "end",
|
|
53
|
-
children: [p(f, {
|
|
54
|
-
dense: !0,
|
|
55
|
-
outlined: !1,
|
|
56
|
-
color: "primary",
|
|
57
|
-
"aria-label": "commit-input",
|
|
58
|
-
icon: p(r, { iconKey: "CheckSuccess" }),
|
|
59
|
-
propsTooltip: {
|
|
60
|
-
label: V("referenceInput.commit"),
|
|
61
|
-
simple: !0
|
|
62
|
-
},
|
|
63
|
-
disabled: !!K.error,
|
|
64
|
-
tabIndex: -1,
|
|
65
|
-
onMouseDown: v,
|
|
66
|
-
onClick: () => {
|
|
67
|
-
K.commit();
|
|
68
|
-
}
|
|
69
|
-
}), p(f, {
|
|
70
|
-
dense: !0,
|
|
71
|
-
outlined: !1,
|
|
72
|
-
color: "warning",
|
|
73
|
-
"aria-label": "cancel-input",
|
|
74
|
-
icon: p(r, { iconKey: "CloseError" }),
|
|
75
|
-
propsTooltip: {
|
|
76
|
-
label: V("referenceInput.cancel"),
|
|
77
|
-
simple: !0
|
|
78
|
-
},
|
|
79
|
-
tabIndex: -1,
|
|
80
|
-
onMouseDown: v,
|
|
81
|
-
onClick: () => {
|
|
82
|
-
K.cancel();
|
|
83
|
-
}
|
|
84
|
-
})]
|
|
85
|
-
});
|
|
86
|
-
}, [
|
|
87
|
-
I,
|
|
88
|
-
X,
|
|
89
|
-
Z,
|
|
90
|
-
K.commit,
|
|
91
|
-
K.cancel,
|
|
92
|
-
!!K.error
|
|
93
|
-
]);
|
|
94
|
-
return p(h, {
|
|
95
|
-
sx: {
|
|
96
|
-
minWidth: 135,
|
|
97
|
-
width: "100%",
|
|
98
|
-
...x
|
|
99
|
-
},
|
|
100
|
-
size: "small",
|
|
101
|
-
ref: s,
|
|
102
|
-
className: e("sxl-input-field", b),
|
|
103
|
-
...B,
|
|
104
|
-
children: p(_, {
|
|
105
|
-
label: U,
|
|
106
|
-
placeholder: S,
|
|
107
|
-
disabled: y,
|
|
108
|
-
error: !!K.error,
|
|
109
|
-
helperText: K.error && P ? V(K.error) : N === void 0 ? " " : N,
|
|
110
|
-
sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
|
|
111
|
-
slotProps: {
|
|
112
|
-
input: { endAdornment: Q },
|
|
113
|
-
inputLabel: { shrink: !0 },
|
|
114
|
-
htmlInput: {
|
|
115
|
-
spellCheck: !1,
|
|
116
|
-
autoComplete: "off",
|
|
117
|
-
onPointerDown: H.onPointerDown,
|
|
118
|
-
onDragStart: H.onDragStart,
|
|
119
|
-
...L,
|
|
120
|
-
className: e("autoFocus", L?.className),
|
|
121
|
-
name: w,
|
|
122
|
-
readOnly: y,
|
|
123
|
-
sx: {
|
|
124
|
-
paddingTop: (e) => e.spacing(1.25),
|
|
125
|
-
paddingBottom: (e) => e.spacing(.75)
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
value: K.inputProps.value,
|
|
130
|
-
inputRef: (e) => {
|
|
131
|
-
K.inputProps.ref(e), G?.ref && G.ref(e);
|
|
132
|
-
},
|
|
133
|
-
onChange: (e) => {
|
|
134
|
-
K.inputProps.onChange(e), G?.onChange(e);
|
|
135
|
-
},
|
|
136
|
-
onKeyDown: (e) => {
|
|
137
|
-
K.inputProps.onKeyDown(e), e.defaultPrevented || R?.(e);
|
|
138
|
-
},
|
|
139
|
-
onFocus: (e) => {
|
|
140
|
-
K.inputProps.onFocus(e), z?.(e);
|
|
141
|
-
},
|
|
142
|
-
onBlur: (e) => {
|
|
143
|
-
K.inputProps.onBlur(e), G?.onBlur(e);
|
|
144
|
-
},
|
|
145
|
-
onContextMenu: (e) => {
|
|
146
|
-
e.stopPropagation();
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
}));
|
|
151
|
-
y.displayName = "InputField";
|
|
152
|
-
export { y as t };
|