@sheetxl/utils-mui 0.4.19 → 0.4.21
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/CKC4Qh1P-NG0Hn4t.cjs +16 -0
- package/browser/cjs/DIaGfSZB7Q3UKRJQ.cjs +6 -0
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/Cbz5rNP3r2J3v75e.mjs +3024 -0
- package/browser/esm/egN9-O3SmHwAnQgR.mjs +44 -0
- package/browser/esm/index.mjs +22 -22
- package/licenses/dependencies.txt +34 -217
- package/node/esm/{-jwec4yth0un_uW2.mjs → CcxyxOzfJeLxqGl5.mjs} +16 -15
- package/node/esm/index.mjs +1009 -2415
- package/package.json +7 -4
- package/browser/cjs/BJyhbIGtWzVKdnra.cjs +0 -6
- package/browser/cjs/C6EnmSKSrSjtbfg-.cjs +0 -30
- package/browser/esm/Co1P4BYP16zdI2bd.mjs +0 -5392
- package/browser/esm/SCyzPH8c3EYOoxzZ.mjs +0 -43
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as j, forwardRef as z, useState as p } from "react";
|
|
3
|
+
import { O as E, c as R } from "./Cbz5rNP3r2J3v75e.mjs";
|
|
4
|
+
import { alpha as x, getOverlayAlpha as y } from "@mui/material/styles";
|
|
5
|
+
import { Box as A, FormControl as W, TextField as q } from "@mui/material";
|
|
6
|
+
import { useCallbackRef as n, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.21
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
const J = ["Input"], oo = j(z((w, C) => {
|
|
14
|
+
const { initialValue: F = "", onOption: T, onValidateOption: l, onInputOption: c, onValidateInputOption: s, onDone: u, inputProps: d, inputLabel: v, inputType: I, inputPlaceHolder: P, options: m = J, autoFocusSel: b = ".autoFocus", cancelOption: g, defaultOption: f = m?.[0], ...k } = w, [V, B] = p(!1), [a, D] = p(F), [S, H] = p(""), [K, L] = p(!0), e = n(async (o, t) => {
|
|
15
|
+
if (!s) return !0;
|
|
16
|
+
const r = await s?.(o, t);
|
|
17
|
+
H(r?.message ?? "");
|
|
18
|
+
const O = r?.valid ?? !0;
|
|
19
|
+
return L(O), O;
|
|
20
|
+
}, [s]), h = n(async (o) => {
|
|
21
|
+
c?.(a, o);
|
|
22
|
+
}, [a, c, u, T, g, f]), M = n(async (o) => {
|
|
23
|
+
o.keyCode === G.Enter && await e?.(a, null);
|
|
24
|
+
}, [a, h]), N = n((o) => {
|
|
25
|
+
D(o.target.value), e?.(o.target.value, null);
|
|
26
|
+
}, [l]), $ = n(async (o) => {
|
|
27
|
+
let t = await e(a, o);
|
|
28
|
+
try {
|
|
29
|
+
t !== !1 && (t = await e(a, o));
|
|
30
|
+
} catch {
|
|
31
|
+
}
|
|
32
|
+
return t ?? !0;
|
|
33
|
+
}, [a, l]);
|
|
34
|
+
return i(E, { options: m, onDone: u, onOption: (o, t) => {
|
|
35
|
+
t || h(o);
|
|
36
|
+
}, onValidateOption: $, cancelOption: g, defaultOption: f, autoFocusSel: b, ref: C, ...k, children: i(A, { sx: { paddingTop: (o) => o.spacing(1), paddingBottom: (o) => o.spacing(0) }, children: i(W, { sx: { paddingTop: (o) => o.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(q, { onFocus: (o) => {
|
|
37
|
+
V || o.target?.select(), B(!0);
|
|
38
|
+
}, type: I, label: v, helperText: S || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (o) => o.spacing(0.5), color: K ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: P, spellCheck: !1, autoComplete: "off", ...d, className: R("autoFocus", d?.className), sx: { paddingTop: (o) => o.spacing(1.25), paddingBottom: (o) => o.spacing(0.75), backgroundImage: `linear-gradient(${x("#fff", y(5))}, ${x("#fff", y(5))})` } } }, value: a, onChange: N, onKeyDown: M, onContextMenu: (o) => {
|
|
39
|
+
o.stopPropagation();
|
|
40
|
+
} }) }) }) });
|
|
41
|
+
}));
|
|
42
|
+
export {
|
|
43
|
+
oo as default
|
|
44
|
+
};
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import {
|
|
2
|
+
import { x as e, v as n, A as s, w as c, y as t, z as r, B as I, J as l, bb as i, bj as b, bd as u, bc as d, bg as m, bk as p, bf as C, bi as S, bh as T, be as D, cx as w, bR as F, bP as x, bQ as g, bS as h, K as R, bO as A, G as B, X as z, W as E, Y as P, bN as M, cJ as k, cj as v, a0 as H, Z as f, _ as y, $ as V, bU as O, bT as L, ad as N, cP as U, cR as G, cU as W, cS as K, H as j, al as q, aj as J, ak as Q, ah as _, ai as X, bC as Y, bB as Z, ca as $, c6 as aa, cb as oa, cc as ea, c5 as na, c9 as sa, c7 as ca, c8 as ta, c3 as ra, cd as Ia, ce as la, ch as ia, c2 as ba, c1 as ua, c4 as da, cf as ma, cg as pa, b$ as Ca, c0 as Sa, ci as Ta, b_ as Da, D as wa, u as Fa, cO as xa, E as ga, b as ha, a as Ra, f as Aa, cH as Ba, d as za, e as Ea, g as Pa, bv as Ma, bu as ka, bt as va, br as Ha, bs as fa, ax as ya, ab as Va, ac as Oa, aa as La, bH as Na, bE as Ua, bG as Ga, bL as Wa, bK as Ka, bJ as ja, bF as qa, bI as Ja, aL as Qa, aK as _a, aM as Xa, cy as Ya, a9 as Za, a8 as $a, a6 as ao, a7 as oo, bn as eo, bo as no, cp as so, cr as co, cq as to, bD as ro, bM as Io, bz as lo, au as io, aw as bo, af as uo, ag as mo, cQ as po, ay as Co, aA as So, az as To, aD as Do, aC as wo, aE as Fo, aB as xo, aF as go, cB as ho, cT as Ro, L as Ao, a2 as Bo, a1 as zo, a3 as Eo, a5 as Po, a4 as Mo, cz as ko, N as vo, bm as Ho, O as fo, ap as yo, aq as Vo, an as Oo, as as Lo, ar as No, ao as Uo, ae as Go, cI as Wo, cK as Ko, bl as jo, co as qo, aG as Jo, aI as Qo, aH as _o, aJ as Xo, bV as Yo, bW as Zo, cw as $o, cv as ae, ct as oe, cs as ee, cu as ne, cl as se, cm as ce, S as te, at as re, av as Ie, cV as le, I as ie, aP as be, aO as ue, aN as de, aS as me, aQ as pe, aR as Ce, F as Se, bw as Te, bx as De, bX as we, bY as Fe, bZ as xe, ck as ge, V as he, Q as Re, M as Ae, R as Be, P as ze, U as Ee, b0 as Pe, b4 as Me, b3 as ke, b5 as ve, b1 as He, b2 as fe, b7 as ye, b6 as Ve, aU as Oe, aT as Le, aV as Ne, aX as Ue, aW as Ge, a$ as We, a_ as Ke, aZ as je, aY as qe, ba as Je, b9 as Qe, b8 as _e, bp as Xe, bq as Ye, T as Ze, bA as $e, cn as an, by as on, am as en, cM as nn, j as sn, p as cn, n as tn, r as rn, q as In, l as ln, cL as bn, i as un, cE as dn, h as mn, o as pn, s as Cn, cF as Sn, k as Tn, m as Dn, t as wn, cN as Fn, cD as xn, cA as gn, cG as hn, cC as Rn, C as An } from "./Cbz5rNP3r2J3v75e.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.
|
|
4
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.21
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -47,16 +47,16 @@ export {
|
|
|
47
47
|
L as ColumnsResizeIcon,
|
|
48
48
|
N as CommaIcon,
|
|
49
49
|
U as CommandButton,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
G as CommandPopupButton,
|
|
51
|
+
W as CommandToolbar,
|
|
52
52
|
K as CommandTooltip,
|
|
53
53
|
j as ContextMenu,
|
|
54
54
|
q as CopyIcon,
|
|
55
55
|
J as CurrencyDollarIcon,
|
|
56
56
|
Q as CutIcon,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
_ as DecreaseDecimalIcon,
|
|
58
|
+
X as DecreaseDecimalIcon2,
|
|
59
|
+
Y as DiscordIcon,
|
|
60
60
|
Z as DocumentationIcon,
|
|
61
61
|
$ as DrawAlignBottomIcon,
|
|
62
62
|
aa as DrawAlignCenterIcon,
|
|
@@ -101,16 +101,16 @@ export {
|
|
|
101
101
|
La as FilterToggleIcon,
|
|
102
102
|
Na as FindCaseSensitiveIcon,
|
|
103
103
|
Ua as FindIcon,
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
Ga as FindOptionsIcon,
|
|
105
|
+
Wa as FindRegExIcon,
|
|
106
106
|
Ka as FindReplaceAllIcon,
|
|
107
107
|
ja as FindReplaceIcon,
|
|
108
108
|
qa as FindReplaceToggleIcon,
|
|
109
109
|
Ja as FindWholeWordIcon,
|
|
110
110
|
Qa as FormatIndentDecreaseIcon,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
_a as FormatIndentIncreaseIcon,
|
|
112
|
+
Xa as FormatPaintIcon,
|
|
113
|
+
Ya as FormulaGroupIcon,
|
|
114
114
|
Za as FreezeBothIcon,
|
|
115
115
|
$a as FreezeColumnsIcon,
|
|
116
116
|
ao as FreezeIcon,
|
|
@@ -154,16 +154,16 @@ export {
|
|
|
154
154
|
Lo as PasteLinksIcon,
|
|
155
155
|
No as PasteTransposeIcon,
|
|
156
156
|
Uo as PasteValuesIcon,
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
Go as PercentIcon,
|
|
158
|
+
Wo as PopupAutoFocus,
|
|
159
159
|
Ko as PopupButtonType,
|
|
160
160
|
jo as PresetStylesIcon,
|
|
161
161
|
qo as RedoIcon,
|
|
162
162
|
Jo as RemoveCellsIcon,
|
|
163
163
|
Qo as RemoveColumn2Icon,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
164
|
+
_o as RemoveColumnIcon,
|
|
165
|
+
Xo as RemoveRowIcon,
|
|
166
|
+
Yo as RowResizeIcon,
|
|
167
167
|
Zo as RowsResizeAutoIcon,
|
|
168
168
|
$o as ScriptFormulaIcon,
|
|
169
169
|
ae as ScriptMacroIcon,
|
|
@@ -208,16 +208,16 @@ export {
|
|
|
208
208
|
Le as TextSizeIncreaseIcon,
|
|
209
209
|
Ne as TextStrikeIcon,
|
|
210
210
|
Ue as TextSubscriptIcon,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
Ge as TextSuperscriptIcon,
|
|
212
|
+
We as TextUnderlineAccountingDoubleIcon,
|
|
213
213
|
Ke as TextUnderlineAccountingIcon,
|
|
214
214
|
je as TextUnderlineDoubleIcon,
|
|
215
215
|
qe as TextUnderlineIcon,
|
|
216
216
|
Je as TextVerticalBottomIcon,
|
|
217
217
|
Qe as TextVerticalCenterIcon,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
_e as TextVerticalTopIcon,
|
|
219
|
+
Xe as Theme1Icon,
|
|
220
|
+
Ye as Theme2Icon,
|
|
221
221
|
Ze as ThemedIcon,
|
|
222
222
|
$e as TicketIcon,
|
|
223
223
|
an as UndoIcon,
|
|
@@ -20,223 +20,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
-
Name: @sheetxl/utils
|
|
24
|
-
Version: 0.4.19
|
|
25
|
-
License: SEE LICENSE IN <LICENSE>
|
|
26
|
-
Private: false
|
|
27
|
-
Description: Utils - Utilities used by most SheetXL components.
|
|
28
|
-
License Copyright:
|
|
29
|
-
===
|
|
30
|
-
|
|
31
|
-
# Repository Licensing
|
|
32
|
-
|
|
33
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
34
|
-
|
|
35
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
36
|
-
|
|
37
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
38
|
-
|
|
39
|
-
For more details on commercial licensing, please visit our website:
|
|
40
|
-
|
|
41
|
-
https://www.sheetxl.com/licensing-pricing
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
Name: @mui/utils
|
|
46
|
-
Version: 6.4.9
|
|
47
|
-
License: MIT
|
|
48
|
-
Private: false
|
|
49
|
-
Description: Utility functions for React components.
|
|
50
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
51
|
-
Homepage: https://github.com/mui/material-ui/tree/master/packages/mui-utils
|
|
52
|
-
Author: MUI Team
|
|
53
|
-
License Copyright:
|
|
54
|
-
===
|
|
55
|
-
|
|
56
|
-
The MIT License (MIT)
|
|
57
|
-
|
|
58
|
-
Copyright (c) 2014 Call-Em-All
|
|
59
|
-
|
|
60
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
61
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
62
|
-
in the Software without restriction, including without limitation the rights
|
|
63
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
64
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
65
|
-
furnished to do so, subject to the following conditions:
|
|
66
|
-
|
|
67
|
-
The above copyright notice and this permission notice shall be included in all
|
|
68
|
-
copies or substantial portions of the Software.
|
|
69
|
-
|
|
70
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
71
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
72
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
73
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
74
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
75
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
76
|
-
SOFTWARE.
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
Name: @mui/material
|
|
81
|
-
Version: 6.5.0
|
|
82
|
-
License: MIT
|
|
83
|
-
Private: false
|
|
84
|
-
Description: Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
|
|
85
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
86
|
-
Homepage: https://mui.com/material-ui/
|
|
87
|
-
Author: MUI Team
|
|
88
|
-
License Copyright:
|
|
89
|
-
===
|
|
90
|
-
|
|
91
|
-
The MIT License (MIT)
|
|
92
|
-
|
|
93
|
-
Copyright (c) 2014 Call-Em-All
|
|
94
|
-
|
|
95
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
96
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
97
|
-
in the Software without restriction, including without limitation the rights
|
|
98
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
99
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
100
|
-
furnished to do so, subject to the following conditions:
|
|
101
|
-
|
|
102
|
-
The above copyright notice and this permission notice shall be included in all
|
|
103
|
-
copies or substantial portions of the Software.
|
|
104
|
-
|
|
105
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
107
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
108
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
109
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
110
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
111
|
-
SOFTWARE.
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
Name: @mui/system
|
|
116
|
-
Version: 6.5.0
|
|
117
|
-
License: MIT
|
|
118
|
-
Private: false
|
|
119
|
-
Description: MUI System is a set of CSS utilities to help you build custom designs more efficiently. It makes it possible to rapidly lay out custom designs.
|
|
120
|
-
Repository: git+https://github.com/mui/material-ui.git
|
|
121
|
-
Homepage: https://mui.com/system/getting-started/
|
|
122
|
-
Author: MUI Team
|
|
123
|
-
License Copyright:
|
|
124
|
-
===
|
|
125
|
-
|
|
126
|
-
The MIT License (MIT)
|
|
127
|
-
|
|
128
|
-
Copyright (c) 2014 Call-Em-All
|
|
129
|
-
|
|
130
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
131
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
132
|
-
in the Software without restriction, including without limitation the rights
|
|
133
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
134
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
135
|
-
furnished to do so, subject to the following conditions:
|
|
136
|
-
|
|
137
|
-
The above copyright notice and this permission notice shall be included in all
|
|
138
|
-
copies or substantial portions of the Software.
|
|
139
|
-
|
|
140
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
141
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
142
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
143
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
144
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
145
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
146
|
-
SOFTWARE.
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
Name: react-is
|
|
151
|
-
Version: 19.1.0
|
|
152
|
-
License: MIT
|
|
153
|
-
Private: false
|
|
154
|
-
Description: Brand checking of React Elements.
|
|
155
|
-
Repository: https://github.com/facebook/react.git
|
|
156
|
-
Homepage: https://react.dev/
|
|
157
|
-
License Copyright:
|
|
158
|
-
===
|
|
159
|
-
|
|
160
|
-
MIT License
|
|
161
|
-
|
|
162
|
-
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
163
|
-
|
|
164
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
165
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
166
|
-
in the Software without restriction, including without limitation the rights
|
|
167
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
168
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
169
|
-
furnished to do so, subject to the following conditions:
|
|
170
|
-
|
|
171
|
-
The above copyright notice and this permission notice shall be included in all
|
|
172
|
-
copies or substantial portions of the Software.
|
|
173
|
-
|
|
174
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
175
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
176
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
177
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
178
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
179
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
180
|
-
SOFTWARE.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
Name: prop-types
|
|
185
|
-
Version: 15.8.1
|
|
186
|
-
License: MIT
|
|
187
|
-
Private: false
|
|
188
|
-
Description: Runtime type checking for React props and similar objects.
|
|
189
|
-
Repository: undefined
|
|
190
|
-
Homepage: https://facebook.github.io/react/
|
|
191
|
-
License Copyright:
|
|
192
|
-
===
|
|
193
|
-
|
|
194
|
-
MIT License
|
|
195
|
-
|
|
196
|
-
Copyright (c) 2013-present, Facebook, Inc.
|
|
197
|
-
|
|
198
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
199
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
200
|
-
in the Software without restriction, including without limitation the rights
|
|
201
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
202
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
203
|
-
furnished to do so, subject to the following conditions:
|
|
204
|
-
|
|
205
|
-
The above copyright notice and this permission notice shall be included in all
|
|
206
|
-
copies or substantial portions of the Software.
|
|
207
|
-
|
|
208
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
209
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
210
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
211
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
212
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
213
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
214
|
-
SOFTWARE.
|
|
215
|
-
|
|
216
|
-
---
|
|
217
|
-
|
|
218
|
-
Name: @sheetxl/utils-react
|
|
219
|
-
Version: 0.4.19
|
|
220
|
-
License: SEE LICENSE IN <LICENSE>
|
|
221
|
-
Private: false
|
|
222
|
-
Description: Utils React - Utilities for React capabilities needed for all SheetXL components.
|
|
223
|
-
License Copyright:
|
|
224
|
-
===
|
|
225
|
-
|
|
226
|
-
# Repository Licensing
|
|
227
|
-
|
|
228
|
-
SheetXL contains a mix of open-source and commercially licensed packages. Each package is individually licensed and contains its own license file.
|
|
229
|
-
|
|
230
|
-
For the specific terms and conditions applicable to a package, please see the `LICENSE.md` file located in that package's root directory.
|
|
231
|
-
|
|
232
|
-
Generally, packages intended for public distribution (such as CLIs, adapters, and vanilla wrappers) are licensed under the MIT license. All other core packages are proprietary and require a commercial license for use.
|
|
233
|
-
|
|
234
|
-
For more details on commercial licensing, please visit our website:
|
|
235
|
-
|
|
236
|
-
https://www.sheetxl.com/licensing-pricing
|
|
237
|
-
|
|
238
|
-
---
|
|
239
|
-
|
|
240
23
|
Name: react-merge-refs
|
|
241
24
|
Version: 3.0.2
|
|
242
25
|
License: MIT
|
|
@@ -409,6 +192,40 @@ SOFTWARE.
|
|
|
409
192
|
|
|
410
193
|
---
|
|
411
194
|
|
|
195
|
+
Name: prop-types
|
|
196
|
+
Version: 15.8.1
|
|
197
|
+
License: MIT
|
|
198
|
+
Private: false
|
|
199
|
+
Description: Runtime type checking for React props and similar objects.
|
|
200
|
+
Repository: undefined
|
|
201
|
+
Homepage: https://facebook.github.io/react/
|
|
202
|
+
License Copyright:
|
|
203
|
+
===
|
|
204
|
+
|
|
205
|
+
MIT License
|
|
206
|
+
|
|
207
|
+
Copyright (c) 2013-present, Facebook, Inc.
|
|
208
|
+
|
|
209
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
210
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
211
|
+
in the Software without restriction, including without limitation the rights
|
|
212
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
213
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
214
|
+
furnished to do so, subject to the following conditions:
|
|
215
|
+
|
|
216
|
+
The above copyright notice and this permission notice shall be included in all
|
|
217
|
+
copies or substantial portions of the Software.
|
|
218
|
+
|
|
219
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
220
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
221
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
222
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
223
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
224
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
225
|
+
SOFTWARE.
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
412
229
|
Name: tabbable
|
|
413
230
|
Version: 6.2.0
|
|
414
231
|
License: MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.4.21
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -7,35 +7,36 @@
|
|
|
7
7
|
import { jsx as t } from "react/jsx-runtime";
|
|
8
8
|
import { memo as o, forwardRef as n, useState as a } from "react";
|
|
9
9
|
import e from "clsx";
|
|
10
|
-
import { alpha as i, getOverlayAlpha as p } from "@mui/material/styles
|
|
10
|
+
import { alpha as i, getOverlayAlpha as p } from "@mui/material/styles";
|
|
11
11
|
import { Box as r, FormControl as l, TextField as s } from "@mui/material";
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
import { useCallbackRef as c, KeyCodes as u } from "@sheetxl/utils-react";
|
|
13
|
+
import { OptionsDialog as m } from "./index.mjs";
|
|
14
|
+
const d = ["Input"], g = o(n((o2, n2) => {
|
|
15
|
+
const { initialValue: g2 = "", onOption: f, onValidateOption: h, onInputOption: x, onValidateInputOption: y, onDone: O, inputProps: w, inputLabel: T, inputType: F, inputPlaceHolder: I, options: P = d, autoFocusSel: v = ".autoFocus", cancelOption: C, defaultOption: b = P?.[0], ...k } = o2, [V, D] = a(false), [j, B] = a(g2), [H, L] = a(""), [M, N] = a(true), S = c(async (t2, o3) => {
|
|
15
16
|
if (!y) return true;
|
|
16
17
|
const n3 = await y?.(t2, o3);
|
|
17
18
|
L(n3?.message ?? "");
|
|
18
19
|
const a2 = n3?.valid ?? true;
|
|
19
20
|
return N(a2), a2;
|
|
20
21
|
}, [y]), $ = c(async (t2) => {
|
|
21
|
-
x?.(
|
|
22
|
-
}, [
|
|
23
|
-
t2.keyCode === u.Enter && await S?.(
|
|
24
|
-
}, [
|
|
22
|
+
x?.(j, t2);
|
|
23
|
+
}, [j, x, O, f, C, b]), z = c(async (t2) => {
|
|
24
|
+
t2.keyCode === u.Enter && await S?.(j, null);
|
|
25
|
+
}, [j, $]), E = c((t2) => {
|
|
25
26
|
B(t2.target.value), S?.(t2.target.value, null);
|
|
26
27
|
}, [h]), K = c(async (t2) => {
|
|
27
|
-
let o3 = await S(
|
|
28
|
+
let o3 = await S(j, t2);
|
|
28
29
|
try {
|
|
29
|
-
false !== o3 && (o3 = await S(
|
|
30
|
+
false !== o3 && (o3 = await S(j, t2));
|
|
30
31
|
} catch (t3) {
|
|
31
32
|
}
|
|
32
33
|
return o3 ?? true;
|
|
33
|
-
}, [
|
|
34
|
-
return t(
|
|
34
|
+
}, [j, h]);
|
|
35
|
+
return t(m, { options: P, onDone: O, onOption: (t2, o3) => {
|
|
35
36
|
o3 || $(t2);
|
|
36
37
|
}, onValidateOption: K, cancelOption: C, defaultOption: b, autoFocusSel: v, ref: n2, ...k, children: t(r, { sx: { paddingTop: (t2) => t2.spacing(1), paddingBottom: (t2) => t2.spacing(0) }, children: t(l, { sx: { paddingTop: (t2) => t2.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: t(s, { onFocus: (t2) => {
|
|
37
|
-
V || t2.target?.select(),
|
|
38
|
-
}, type: F, label: T, helperText: H || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5), color: M ? void 0 : "error.main" } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { placeholder: I, spellCheck: false, autoComplete: "off", ...w, className: e("autoFocus", w?.className), sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` } } }, value:
|
|
38
|
+
V || t2.target?.select(), D(true);
|
|
39
|
+
}, type: F, label: T, helperText: H || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (t2) => t2.spacing(0.5), color: M ? void 0 : "error.main" } }, InputLabelProps: { shrink: true }, InputProps: { inputProps: { placeholder: I, spellCheck: false, autoComplete: "off", ...w, className: e("autoFocus", w?.className), sx: { paddingTop: (t2) => t2.spacing(1.25), paddingBottom: (t2) => t2.spacing(0.75), backgroundImage: `linear-gradient(${i("#fff", p(5))}, ${i("#fff", p(5))})` } } }, value: j, onChange: E, onKeyDown: z, onContextMenu: (t2) => {
|
|
39
40
|
t2.stopPropagation();
|
|
40
41
|
} }) }) }) });
|
|
41
42
|
}));
|