jcicl 0.0.253 → 0.0.257
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/DefaultTemplate/DefaultTemplate.js +1 -0
- package/FormComponents/FormComponents.d.ts +6 -0
- package/FormComponents/FormComponents.js +27 -14
- package/FormComponents/index.d.ts +1 -1
- package/FormComponents/index.js +3 -2
- package/LabeledDropdown/LabeledDropdown.js +370 -355
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
1
|
+
import { jsx as w, jsxs as De } from "react/jsx-runtime";
|
|
2
|
+
import { n as Jo } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as No } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
|
+
import Ho from "../theme.js";
|
|
5
5
|
import * as m from "react";
|
|
6
|
-
import { g as po, a as co, s as F, c as
|
|
7
|
-
import { i as Io, a as be, b as
|
|
8
|
-
import { c as
|
|
6
|
+
import { g as po, a as co, s as F, c as f, u as uo, b as J, P as o, d as fo, e as V } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import { i as Io, a as be, b as Eo, f as Ae, A as Xo, T as zo } from "../.chunks/TextField.js";
|
|
8
|
+
import { c as Wo } from "../.chunks/createSvgIcon.js";
|
|
9
9
|
import { m as ee } from "../.chunks/memoTheme.js";
|
|
10
10
|
import { u as Oo } from "../.chunks/useSlot.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as Me } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
12
12
|
import { B as So } from "../.chunks/ButtonBase.js";
|
|
13
13
|
import { c as wo } from "../.chunks/chainPropTypes.js";
|
|
14
|
-
import { P as
|
|
15
|
-
import { P as
|
|
14
|
+
import { P as Ko } from "../.chunks/Popper.js";
|
|
15
|
+
import { P as Go } from "../.chunks/Paper.js";
|
|
16
16
|
import { u as Qo } from "../.chunks/Portal.js";
|
|
17
17
|
import { u as Po } from "../.chunks/useControlled.js";
|
|
18
18
|
import { b as io, s as Zo, u as et } from "../.chunks/TransitionGroupContext.js";
|
|
19
19
|
import { i as ot } from "../.chunks/integerPropType.js";
|
|
20
|
-
function tt(e, n, a, i,
|
|
20
|
+
function tt(e, n, a, i, b) {
|
|
21
21
|
if (process.env.NODE_ENV === "production")
|
|
22
22
|
return null;
|
|
23
|
-
const
|
|
24
|
-
return typeof e[n] < "u" ? new Error(`The prop \`${
|
|
23
|
+
const h = b || n;
|
|
24
|
+
return typeof e[n] < "u" ? new Error(`The prop \`${h}\` is not supported. Please remove it.`) : null;
|
|
25
25
|
}
|
|
26
26
|
const nt = (e) => {
|
|
27
27
|
const n = m.useRef({});
|
|
@@ -29,7 +29,7 @@ const nt = (e) => {
|
|
|
29
29
|
n.current = e;
|
|
30
30
|
}), n.current;
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function Vo(e) {
|
|
33
33
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
34
34
|
}
|
|
35
35
|
function rt(e = {}) {
|
|
@@ -37,24 +37,24 @@ function rt(e = {}) {
|
|
|
37
37
|
ignoreAccents: n = !0,
|
|
38
38
|
ignoreCase: a = !0,
|
|
39
39
|
limit: i,
|
|
40
|
-
matchFrom:
|
|
41
|
-
stringify:
|
|
42
|
-
trim:
|
|
40
|
+
matchFrom: b = "any",
|
|
41
|
+
stringify: h,
|
|
42
|
+
trim: x = !1
|
|
43
43
|
} = e;
|
|
44
|
-
return (
|
|
45
|
-
inputValue:
|
|
46
|
-
getOptionLabel:
|
|
44
|
+
return (y, {
|
|
45
|
+
inputValue: O,
|
|
46
|
+
getOptionLabel: d
|
|
47
47
|
}) => {
|
|
48
|
-
let S =
|
|
49
|
-
a && (S = S.toLowerCase()), n && (S =
|
|
50
|
-
const L = S ?
|
|
51
|
-
let A = (
|
|
52
|
-
return a && (A = A.toLowerCase()), n && (A =
|
|
53
|
-
}) :
|
|
48
|
+
let S = x ? O.trim() : O;
|
|
49
|
+
a && (S = S.toLowerCase()), n && (S = Vo(S));
|
|
50
|
+
const L = S ? y.filter((X) => {
|
|
51
|
+
let A = (h || d)(X);
|
|
52
|
+
return a && (A = A.toLowerCase()), n && (A = Vo(A)), b === "start" ? A.startsWith(S) : A.includes(S);
|
|
53
|
+
}) : y;
|
|
54
54
|
return typeof i == "number" ? L.slice(0, i) : L;
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
const at = rt(),
|
|
57
|
+
const at = rt(), Fo = 5, lt = (e) => {
|
|
58
58
|
var n;
|
|
59
59
|
return e.current !== null && ((n = e.current.parentElement) == null ? void 0 : n.contains(document.activeElement));
|
|
60
60
|
}, it = [];
|
|
@@ -65,12 +65,12 @@ function st(e) {
|
|
|
65
65
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
66
66
|
unstable_classNamePrefix: a = "Mui",
|
|
67
67
|
autoComplete: i = !1,
|
|
68
|
-
autoHighlight:
|
|
69
|
-
autoSelect:
|
|
70
|
-
blurOnSelect:
|
|
71
|
-
clearOnBlur:
|
|
72
|
-
clearOnEscape:
|
|
73
|
-
componentName:
|
|
68
|
+
autoHighlight: b = !1,
|
|
69
|
+
autoSelect: h = !1,
|
|
70
|
+
blurOnSelect: x = !1,
|
|
71
|
+
clearOnBlur: y = !e.freeSolo,
|
|
72
|
+
clearOnEscape: O = !1,
|
|
73
|
+
componentName: d = "useAutocomplete",
|
|
74
74
|
defaultValue: S = e.multiple ? it : null,
|
|
75
75
|
disableClearable: L = !1,
|
|
76
76
|
disableCloseOnSelect: X = !1,
|
|
@@ -96,35 +96,35 @@ function st(e) {
|
|
|
96
96
|
onInputChange: q,
|
|
97
97
|
onOpen: ie,
|
|
98
98
|
open: xe,
|
|
99
|
-
openOnFocus:
|
|
100
|
-
options:
|
|
99
|
+
openOnFocus: M = !1,
|
|
100
|
+
options: Ro,
|
|
101
101
|
readOnly: $e = !1,
|
|
102
102
|
selectOnFocus: Fe = !e.freeSolo,
|
|
103
103
|
value: go
|
|
104
104
|
} = e, U = Qo(Ve);
|
|
105
|
-
let
|
|
106
|
-
|
|
105
|
+
let D = Ee;
|
|
106
|
+
D = (r) => {
|
|
107
107
|
const t = Ee(r);
|
|
108
108
|
if (typeof t != "string") {
|
|
109
109
|
if (process.env.NODE_ENV !== "production") {
|
|
110
110
|
const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
|
|
111
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
111
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${d} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
|
|
112
112
|
}
|
|
113
113
|
return String(t);
|
|
114
114
|
}
|
|
115
115
|
return t;
|
|
116
116
|
};
|
|
117
|
-
const je = m.useRef(!1), Be = m.useRef(!0),
|
|
117
|
+
const je = m.useRef(!1), Be = m.useRef(!0), k = m.useRef(null), K = m.useRef(null), [Ue, Lo] = m.useState(null), [G, Xe] = m.useState(-1), bo = b ? 0 : -1, z = m.useRef(bo), [s, Ao] = Po({
|
|
118
118
|
controlled: go,
|
|
119
119
|
default: S,
|
|
120
|
-
name:
|
|
121
|
-
}), [
|
|
120
|
+
name: d
|
|
121
|
+
}), [P, Ce] = Po({
|
|
122
122
|
controlled: ye,
|
|
123
123
|
default: "",
|
|
124
|
-
name:
|
|
124
|
+
name: d,
|
|
125
125
|
state: "inputValue"
|
|
126
126
|
}), [Ie, He] = m.useState(!1), Oe = m.useCallback((r, t, l) => {
|
|
127
|
-
if (!($ ? s.length < t.length : t !== null) && !
|
|
127
|
+
if (!($ ? s.length < t.length : t !== null) && !y)
|
|
128
128
|
return;
|
|
129
129
|
let c;
|
|
130
130
|
if ($)
|
|
@@ -132,47 +132,47 @@ function st(e) {
|
|
|
132
132
|
else if (t == null)
|
|
133
133
|
c = "";
|
|
134
134
|
else {
|
|
135
|
-
const I =
|
|
135
|
+
const I = D(t);
|
|
136
136
|
c = typeof I == "string" ? I : "";
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
}, [
|
|
138
|
+
P !== c && (Ce(c), q && q(r, c, l));
|
|
139
|
+
}, [D, P, $, q, Ce, y, s]), [se, Qe] = Po({
|
|
140
140
|
controlled: xe,
|
|
141
141
|
default: !1,
|
|
142
|
-
name:
|
|
142
|
+
name: d,
|
|
143
143
|
state: "open"
|
|
144
|
-
}), [Ze, mo] = m.useState(!0), Pe = !$ && s != null &&
|
|
145
|
-
|
|
144
|
+
}), [Ze, mo] = m.useState(!0), Pe = !$ && s != null && P === D(s), j = se && !$e, T = j ? Ne(
|
|
145
|
+
Ro.filter((r) => !(me && ($ ? s : [s]).some((t) => t !== null && W(r, t)))),
|
|
146
146
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
147
147
|
// i.e. the filter predicate always returns true
|
|
148
148
|
{
|
|
149
|
-
inputValue: Pe && Ze ? "" :
|
|
150
|
-
getOptionLabel:
|
|
149
|
+
inputValue: Pe && Ze ? "" : P,
|
|
150
|
+
getOptionLabel: D
|
|
151
151
|
}
|
|
152
152
|
) : [], Q = nt({
|
|
153
|
-
filteredOptions:
|
|
153
|
+
filteredOptions: T,
|
|
154
154
|
value: s,
|
|
155
|
-
inputValue:
|
|
155
|
+
inputValue: P
|
|
156
156
|
});
|
|
157
157
|
m.useEffect(() => {
|
|
158
158
|
const r = s !== Q.value;
|
|
159
159
|
Ie && !r || le && !r || Oe(null, s, "reset");
|
|
160
160
|
}, [s, Oe, Ie, Q.value, le]);
|
|
161
|
-
const We = se &&
|
|
162
|
-
r === -1 ?
|
|
161
|
+
const We = se && T.length > 0 && !$e, Se = io((r) => {
|
|
162
|
+
r === -1 ? k.current.focus() : Ue.querySelector(`[data-tag-index="${r}"]`).focus();
|
|
163
163
|
});
|
|
164
164
|
m.useEffect(() => {
|
|
165
165
|
$ && G > s.length - 1 && (Xe(-1), Se(-1));
|
|
166
166
|
}, [s, $, G, Se]);
|
|
167
167
|
function eo(r, t) {
|
|
168
|
-
if (!K.current || r < 0 || r >=
|
|
168
|
+
if (!K.current || r < 0 || r >= T.length)
|
|
169
169
|
return -1;
|
|
170
170
|
let l = r;
|
|
171
171
|
for (; ; ) {
|
|
172
172
|
const p = K.current.querySelector(`[data-option-index="${l}"]`), c = E ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
173
173
|
if (p && p.hasAttribute("tabindex") && !c)
|
|
174
174
|
return l;
|
|
175
|
-
if (t === "next" ? l = (l + 1) %
|
|
175
|
+
if (t === "next" ? l = (l + 1) % T.length : l = (l - 1 + T.length) % T.length, l === r)
|
|
176
176
|
return -1;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -181,7 +181,7 @@ function st(e) {
|
|
|
181
181
|
index: t,
|
|
182
182
|
reason: l = "auto"
|
|
183
183
|
}) => {
|
|
184
|
-
if (z.current = t, t === -1 ?
|
|
184
|
+
if (z.current = t, t === -1 ? k.current.removeAttribute("aria-activedescendant") : k.current.setAttribute("aria-activedescendant", `${U}-option-${t}`), ve && ve(r, t === -1 ? null : T[t], l), !K.current)
|
|
185
185
|
return;
|
|
186
186
|
const p = K.current.querySelector(`[role="option"].${a}-focused`);
|
|
187
187
|
p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
|
|
@@ -206,7 +206,7 @@ function st(e) {
|
|
|
206
206
|
if (!j)
|
|
207
207
|
return;
|
|
208
208
|
const I = eo((() => {
|
|
209
|
-
const C =
|
|
209
|
+
const C = T.length - 1;
|
|
210
210
|
if (t === "reset")
|
|
211
211
|
return bo;
|
|
212
212
|
if (t === "start")
|
|
@@ -222,20 +222,20 @@ function st(e) {
|
|
|
222
222
|
event: r
|
|
223
223
|
}), i && t !== "reset")
|
|
224
224
|
if (I === -1)
|
|
225
|
-
|
|
225
|
+
k.current.value = P;
|
|
226
226
|
else {
|
|
227
|
-
const C =
|
|
228
|
-
|
|
227
|
+
const C = D(T[I]);
|
|
228
|
+
k.current.value = C, C.toLowerCase().indexOf(P.toLowerCase()) === 0 && P.length > 0 && k.current.setSelectionRange(P.length, C.length);
|
|
229
229
|
}
|
|
230
230
|
}), ho = () => {
|
|
231
231
|
const r = (t, l) => {
|
|
232
|
-
const p = t ?
|
|
232
|
+
const p = t ? D(t) : "", c = l ? D(l) : "";
|
|
233
233
|
return p === c;
|
|
234
234
|
};
|
|
235
|
-
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !==
|
|
235
|
+
if (z.current !== -1 && Q.filteredOptions && Q.filteredOptions.length !== T.length && Q.inputValue === P && ($ ? s.length === Q.value.length && Q.value.every((t, l) => D(s[l]) === D(t)) : r(Q.value, s))) {
|
|
236
236
|
const t = Q.filteredOptions[z.current];
|
|
237
237
|
if (t)
|
|
238
|
-
return
|
|
238
|
+
return T.findIndex((l) => D(l) === D(t));
|
|
239
239
|
}
|
|
240
240
|
return -1;
|
|
241
241
|
}, Ke = m.useCallback(() => {
|
|
@@ -247,7 +247,7 @@ function st(e) {
|
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
const t = $ ? s[0] : s;
|
|
250
|
-
if (
|
|
250
|
+
if (T.length === 0 || t == null) {
|
|
251
251
|
Y({
|
|
252
252
|
diff: "reset"
|
|
253
253
|
});
|
|
@@ -255,10 +255,10 @@ function st(e) {
|
|
|
255
255
|
}
|
|
256
256
|
if (K.current) {
|
|
257
257
|
if (t != null) {
|
|
258
|
-
const l =
|
|
258
|
+
const l = T[z.current];
|
|
259
259
|
if ($ && l && s.findIndex((c) => W(l, c)) !== -1)
|
|
260
260
|
return;
|
|
261
|
-
const p =
|
|
261
|
+
const p = T.findIndex((c) => W(c, t));
|
|
262
262
|
p === -1 ? Y({
|
|
263
263
|
diff: "reset"
|
|
264
264
|
}) : te({
|
|
@@ -266,9 +266,9 @@ function st(e) {
|
|
|
266
266
|
});
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
if (z.current >=
|
|
269
|
+
if (z.current >= T.length - 1) {
|
|
270
270
|
te({
|
|
271
|
-
index:
|
|
271
|
+
index: T.length - 1
|
|
272
272
|
});
|
|
273
273
|
return;
|
|
274
274
|
}
|
|
@@ -278,7 +278,7 @@ function st(e) {
|
|
|
278
278
|
}
|
|
279
279
|
}, [
|
|
280
280
|
// Only sync the highlighted index when the option switch between empty and not
|
|
281
|
-
|
|
281
|
+
T.length,
|
|
282
282
|
// Don't sync the highlighted index with the value when multiple
|
|
283
283
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
284
284
|
$ ? !1 : s,
|
|
@@ -286,16 +286,16 @@ function st(e) {
|
|
|
286
286
|
Y,
|
|
287
287
|
te,
|
|
288
288
|
j,
|
|
289
|
-
|
|
289
|
+
P,
|
|
290
290
|
$
|
|
291
291
|
]), yo = io((r) => {
|
|
292
292
|
Zo(K, r), r && Ke();
|
|
293
293
|
});
|
|
294
294
|
process.env.NODE_ENV !== "production" && m.useEffect(() => {
|
|
295
|
-
(!
|
|
296
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
295
|
+
(!k.current || k.current.nodeName !== "INPUT") && (k.current && k.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${d} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
296
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${k.current} while an HTMLInputElement was expected.`, `Instead, ${d} expects an input element.`, "", d === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
297
297
|
`)));
|
|
298
|
-
}, [
|
|
298
|
+
}, [d]), m.useEffect(() => {
|
|
299
299
|
Ke();
|
|
300
300
|
}, [Ke]);
|
|
301
301
|
const ne = (r) => {
|
|
@@ -308,13 +308,13 @@ function st(e) {
|
|
|
308
308
|
return;
|
|
309
309
|
} else if (s === t)
|
|
310
310
|
return;
|
|
311
|
-
fe && fe(r, t, l, p),
|
|
311
|
+
fe && fe(r, t, l, p), Ao(t);
|
|
312
312
|
}, we = m.useRef(!1), ge = (r, t, l = "selectOption", p = "options") => {
|
|
313
313
|
let c = l, I = t;
|
|
314
314
|
if ($) {
|
|
315
315
|
if (I = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
316
316
|
const B = I.filter((Le) => W(t, Le));
|
|
317
|
-
B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${
|
|
317
|
+
B.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${d} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${B.length} matches.`].join(`
|
|
318
318
|
`));
|
|
319
319
|
}
|
|
320
320
|
const C = I.findIndex((B) => W(t, B));
|
|
@@ -322,7 +322,7 @@ function st(e) {
|
|
|
322
322
|
}
|
|
323
323
|
Oe(r, I, c), pe(r, I, c, {
|
|
324
324
|
option: t
|
|
325
|
-
}), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (
|
|
325
|
+
}), !X && (!r || !r.ctrlKey && !r.metaKey) && re(r, c), (x === !0 || x === "touch" && we.current || x === "mouse" && !we.current) && k.current.blur();
|
|
326
326
|
};
|
|
327
327
|
function Te(r, t) {
|
|
328
328
|
if (r === -1)
|
|
@@ -341,9 +341,9 @@ function st(e) {
|
|
|
341
341
|
const Ge = (r, t) => {
|
|
342
342
|
if (!$)
|
|
343
343
|
return;
|
|
344
|
-
|
|
344
|
+
P === "" && re(r, "toggleInput");
|
|
345
345
|
let l = G;
|
|
346
|
-
G === -1 ?
|
|
346
|
+
G === -1 ? P === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = Te(l, t), Xe(l), Se(l);
|
|
347
347
|
}, oo = (r) => {
|
|
348
348
|
je.current = !0, Ce(""), q && q(r, "", "clear"), pe(r, $ ? [] : null, "clear");
|
|
349
349
|
}, ke = (r) => (t) => {
|
|
@@ -367,7 +367,7 @@ function st(e) {
|
|
|
367
367
|
break;
|
|
368
368
|
case "PageUp":
|
|
369
369
|
t.preventDefault(), Y({
|
|
370
|
-
diff: -
|
|
370
|
+
diff: -Fo,
|
|
371
371
|
direction: "previous",
|
|
372
372
|
reason: "keyboard",
|
|
373
373
|
event: t
|
|
@@ -375,7 +375,7 @@ function st(e) {
|
|
|
375
375
|
break;
|
|
376
376
|
case "PageDown":
|
|
377
377
|
t.preventDefault(), Y({
|
|
378
|
-
diff:
|
|
378
|
+
diff: Fo,
|
|
379
379
|
direction: "next",
|
|
380
380
|
reason: "keyboard",
|
|
381
381
|
event: t
|
|
@@ -405,17 +405,17 @@ function st(e) {
|
|
|
405
405
|
break;
|
|
406
406
|
case "Enter":
|
|
407
407
|
if (z.current !== -1 && j) {
|
|
408
|
-
const l =
|
|
408
|
+
const l = T[z.current], p = H ? H(l) : !1;
|
|
409
409
|
if (t.preventDefault(), p)
|
|
410
410
|
return;
|
|
411
|
-
ge(t, l, "selectOption"), i &&
|
|
412
|
-
} else le &&
|
|
411
|
+
ge(t, l, "selectOption"), i && k.current.setSelectionRange(k.current.value.length, k.current.value.length);
|
|
412
|
+
} else le && P !== "" && Pe === !1 && ($ && t.preventDefault(), ge(t, P, "createOption", "freeSolo"));
|
|
413
413
|
break;
|
|
414
414
|
case "Escape":
|
|
415
|
-
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) :
|
|
415
|
+
j ? (t.preventDefault(), t.stopPropagation(), re(t, "escape")) : O && (P !== "" || $ && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
|
|
416
416
|
break;
|
|
417
417
|
case "Backspace":
|
|
418
|
-
if ($ && !$e &&
|
|
418
|
+
if ($ && !$e && P === "" && s.length > 0) {
|
|
419
419
|
const l = G === -1 ? s.length - 1 : G, p = s.slice();
|
|
420
420
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
421
421
|
option: s[l]
|
|
@@ -423,7 +423,7 @@ function st(e) {
|
|
|
423
423
|
}
|
|
424
424
|
break;
|
|
425
425
|
case "Delete":
|
|
426
|
-
if ($ && !$e &&
|
|
426
|
+
if ($ && !$e && P === "" && s.length > 0 && G !== -1) {
|
|
427
427
|
const l = G, p = s.slice();
|
|
428
428
|
p.splice(l, 1), pe(t, p, "removeOption", {
|
|
429
429
|
option: s[l]
|
|
@@ -432,16 +432,16 @@ function st(e) {
|
|
|
432
432
|
break;
|
|
433
433
|
}
|
|
434
434
|
}, vo = (r) => {
|
|
435
|
-
He(!0),
|
|
435
|
+
He(!0), M && !je.current && ne(r);
|
|
436
436
|
}, to = (r) => {
|
|
437
437
|
if (n(K)) {
|
|
438
|
-
|
|
438
|
+
k.current.focus();
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
|
-
He(!1), Be.current = !0, je.current = !1,
|
|
441
|
+
He(!1), Be.current = !0, je.current = !1, h && z.current !== -1 && j ? ge(r, T[z.current], "blur") : h && le && P !== "" ? ge(r, P, "blur", "freeSolo") : y && Oe(r, s, "blur"), re(r, "blur");
|
|
442
442
|
}, Re = (r) => {
|
|
443
443
|
const t = r.target.value;
|
|
444
|
-
|
|
444
|
+
P !== t && (Ce(t), mo(!1), q && q(r, t, "input")), t === "" ? !L && !$ && pe(r, null, "clear") : ne(r);
|
|
445
445
|
}, _e = (r) => {
|
|
446
446
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
447
447
|
z.current !== t && te({
|
|
@@ -457,7 +457,7 @@ function st(e) {
|
|
|
457
457
|
}), we.current = !0;
|
|
458
458
|
}, xo = (r) => {
|
|
459
459
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
460
|
-
ge(r,
|
|
460
|
+
ge(r, T[t], "selectOption"), we.current = !1;
|
|
461
461
|
}, $o = (r) => (t) => {
|
|
462
462
|
const l = s.slice();
|
|
463
463
|
l.splice(r, 1), pe(t, l, "removeOption", {
|
|
@@ -465,22 +465,22 @@ function st(e) {
|
|
|
465
465
|
});
|
|
466
466
|
}, no = (r) => {
|
|
467
467
|
se ? re(r, "toggleInput") : ne(r);
|
|
468
|
-
},
|
|
468
|
+
}, Mo = (r) => {
|
|
469
469
|
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== U && r.preventDefault();
|
|
470
470
|
}, Ye = (r) => {
|
|
471
|
-
r.currentTarget.contains(r.target) && (
|
|
471
|
+
r.currentTarget.contains(r.target) && (k.current.focus(), Fe && Be.current && k.current.selectionEnd - k.current.selectionStart === 0 && k.current.select(), Be.current = !1);
|
|
472
472
|
}, N = (r) => {
|
|
473
|
-
!A && (
|
|
473
|
+
!A && (P === "" || !se) && (no(r), r.stopPropagation());
|
|
474
474
|
};
|
|
475
|
-
let R = le &&
|
|
475
|
+
let R = le && P.length > 0;
|
|
476
476
|
R = R || ($ ? s.length > 0 : s !== null);
|
|
477
|
-
let ae =
|
|
477
|
+
let ae = T;
|
|
478
478
|
if (oe) {
|
|
479
479
|
const r = /* @__PURE__ */ new Map();
|
|
480
480
|
let t = !1;
|
|
481
|
-
ae =
|
|
481
|
+
ae = T.reduce((l, p, c) => {
|
|
482
482
|
const I = oe(p);
|
|
483
|
-
return l.length > 0 && l[l.length - 1].group === I ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(I) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${
|
|
483
|
+
return l.length > 0 && l[l.length - 1].group === I ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get(I) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${d} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set(I, !0)), l.push({
|
|
484
484
|
key: c,
|
|
485
485
|
index: c,
|
|
486
486
|
group: I,
|
|
@@ -493,7 +493,7 @@ function st(e) {
|
|
|
493
493
|
"aria-owns": We ? `${U}-listbox` : null,
|
|
494
494
|
...r,
|
|
495
495
|
onKeyDown: ke(r),
|
|
496
|
-
onMouseDown:
|
|
496
|
+
onMouseDown: Mo,
|
|
497
497
|
onClick: Ye
|
|
498
498
|
}),
|
|
499
499
|
getInputLabelProps: () => ({
|
|
@@ -502,7 +502,7 @@ function st(e) {
|
|
|
502
502
|
}),
|
|
503
503
|
getInputProps: () => ({
|
|
504
504
|
id: U,
|
|
505
|
-
value:
|
|
505
|
+
value: P,
|
|
506
506
|
onBlur: to,
|
|
507
507
|
onFocus: vo,
|
|
508
508
|
onChange: Re,
|
|
@@ -516,7 +516,7 @@ function st(e) {
|
|
|
516
516
|
// Disable browser's suggestion that might overlap with the popup.
|
|
517
517
|
// Handle autocomplete but not autofill.
|
|
518
518
|
autoComplete: "off",
|
|
519
|
-
ref:
|
|
519
|
+
ref: k,
|
|
520
520
|
autoCapitalize: "none",
|
|
521
521
|
spellCheck: "false",
|
|
522
522
|
role: "combobox",
|
|
@@ -558,7 +558,7 @@ function st(e) {
|
|
|
558
558
|
}) => {
|
|
559
559
|
const l = ($ ? s : [s]).some((c) => c != null && W(t, c)), p = H ? H(t) : !1;
|
|
560
560
|
return {
|
|
561
|
-
key: (he == null ? void 0 : he(t)) ??
|
|
561
|
+
key: (he == null ? void 0 : he(t)) ?? D(t),
|
|
562
562
|
tabIndex: -1,
|
|
563
563
|
role: "option",
|
|
564
564
|
id: `${U}-option-${r}`,
|
|
@@ -571,14 +571,14 @@ function st(e) {
|
|
|
571
571
|
};
|
|
572
572
|
},
|
|
573
573
|
id: U,
|
|
574
|
-
inputValue:
|
|
574
|
+
inputValue: P,
|
|
575
575
|
value: s,
|
|
576
576
|
dirty: R,
|
|
577
577
|
expanded: j && Ue,
|
|
578
578
|
popupOpen: j,
|
|
579
579
|
focused: Ie || G !== -1,
|
|
580
580
|
anchorEl: Ue,
|
|
581
|
-
setAnchorEl:
|
|
581
|
+
setAnchorEl: Lo,
|
|
582
582
|
focusedTag: G,
|
|
583
583
|
groupedOptions: ae
|
|
584
584
|
};
|
|
@@ -592,12 +592,12 @@ const ct = (e) => {
|
|
|
592
592
|
classes: n,
|
|
593
593
|
color: a,
|
|
594
594
|
disableGutters: i,
|
|
595
|
-
inset:
|
|
596
|
-
disableSticky:
|
|
597
|
-
} = e,
|
|
598
|
-
root: ["root", a !== "default" && `color${
|
|
595
|
+
inset: b,
|
|
596
|
+
disableSticky: h
|
|
597
|
+
} = e, x = {
|
|
598
|
+
root: ["root", a !== "default" && `color${f(a)}`, !i && "gutters", b && "inset", !h && "sticky"]
|
|
599
599
|
};
|
|
600
|
-
return fo(
|
|
600
|
+
return fo(x, pt, n);
|
|
601
601
|
}, ut = F("li", {
|
|
602
602
|
name: "MuiListSubheader",
|
|
603
603
|
slot: "Root",
|
|
@@ -605,7 +605,7 @@ const ct = (e) => {
|
|
|
605
605
|
const {
|
|
606
606
|
ownerState: a
|
|
607
607
|
} = e;
|
|
608
|
-
return [n.root, a.color !== "default" && n[`color${
|
|
608
|
+
return [n.root, a.color !== "default" && n[`color${f(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
|
|
609
609
|
}
|
|
610
610
|
})(ee(({
|
|
611
611
|
theme: e
|
|
@@ -662,24 +662,24 @@ const ct = (e) => {
|
|
|
662
662
|
props: n,
|
|
663
663
|
name: "MuiListSubheader"
|
|
664
664
|
}), {
|
|
665
|
-
className:
|
|
666
|
-
color:
|
|
667
|
-
component:
|
|
668
|
-
disableGutters:
|
|
669
|
-
disableSticky:
|
|
670
|
-
inset:
|
|
665
|
+
className: b,
|
|
666
|
+
color: h = "default",
|
|
667
|
+
component: x = "li",
|
|
668
|
+
disableGutters: y = !1,
|
|
669
|
+
disableSticky: O = !1,
|
|
670
|
+
inset: d = !1,
|
|
671
671
|
...S
|
|
672
672
|
} = i, L = {
|
|
673
673
|
...i,
|
|
674
|
-
color:
|
|
675
|
-
component:
|
|
676
|
-
disableGutters:
|
|
677
|
-
disableSticky:
|
|
678
|
-
inset:
|
|
674
|
+
color: h,
|
|
675
|
+
component: x,
|
|
676
|
+
disableGutters: y,
|
|
677
|
+
disableSticky: O,
|
|
678
|
+
inset: d
|
|
679
679
|
}, X = ct(L);
|
|
680
|
-
return /* @__PURE__ */
|
|
681
|
-
as:
|
|
682
|
-
className: J(X.root,
|
|
680
|
+
return /* @__PURE__ */ w(ut, {
|
|
681
|
+
as: x,
|
|
682
|
+
className: J(X.root, b),
|
|
683
683
|
ref: a,
|
|
684
684
|
ownerState: L,
|
|
685
685
|
...S
|
|
@@ -741,12 +741,12 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
741
741
|
classes: n,
|
|
742
742
|
disabled: a,
|
|
743
743
|
color: i,
|
|
744
|
-
edge:
|
|
745
|
-
size:
|
|
746
|
-
} = e,
|
|
747
|
-
root: ["root", a && "disabled", i !== "default" && `color${
|
|
744
|
+
edge: b,
|
|
745
|
+
size: h
|
|
746
|
+
} = e, x = {
|
|
747
|
+
root: ["root", a && "disabled", i !== "default" && `color${f(i)}`, b && `edge${f(b)}`, `size${f(h)}`]
|
|
748
748
|
};
|
|
749
|
-
return fo(
|
|
749
|
+
return fo(x, dt, n);
|
|
750
750
|
}, bt = F(So, {
|
|
751
751
|
name: "MuiIconButton",
|
|
752
752
|
slot: "Root",
|
|
@@ -754,7 +754,7 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
754
754
|
const {
|
|
755
755
|
ownerState: a
|
|
756
756
|
} = e;
|
|
757
|
-
return [n.root, a.color !== "default" && n[`color${
|
|
757
|
+
return [n.root, a.color !== "default" && n[`color${f(a.color)}`], a.edge && n[`edge${f(a.edge)}`], n[`size${f(a.size)}`]];
|
|
758
758
|
}
|
|
759
759
|
})(ee(({
|
|
760
760
|
theme: e
|
|
@@ -822,14 +822,14 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
822
822
|
style: {
|
|
823
823
|
color: "inherit"
|
|
824
824
|
}
|
|
825
|
-
}, ...Object.entries(e.palette).filter(
|
|
825
|
+
}, ...Object.entries(e.palette).filter(Me()).map(([n]) => ({
|
|
826
826
|
props: {
|
|
827
827
|
color: n
|
|
828
828
|
},
|
|
829
829
|
style: {
|
|
830
830
|
color: (e.vars || e).palette[n].main
|
|
831
831
|
}
|
|
832
|
-
})), ...Object.entries(e.palette).filter(
|
|
832
|
+
})), ...Object.entries(e.palette).filter(Me()).map(([n]) => ({
|
|
833
833
|
props: {
|
|
834
834
|
color: n,
|
|
835
835
|
disableRipple: !1
|
|
@@ -864,42 +864,42 @@ const ft = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
864
864
|
backgroundColor: "transparent",
|
|
865
865
|
color: (e.vars || e).palette.action.disabled
|
|
866
866
|
}
|
|
867
|
-
}))),
|
|
867
|
+
}))), ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
868
868
|
const i = uo({
|
|
869
869
|
props: n,
|
|
870
870
|
name: "MuiIconButton"
|
|
871
871
|
}), {
|
|
872
|
-
edge:
|
|
873
|
-
children:
|
|
874
|
-
className:
|
|
875
|
-
color:
|
|
876
|
-
disabled:
|
|
877
|
-
disableFocusRipple:
|
|
872
|
+
edge: b = !1,
|
|
873
|
+
children: h,
|
|
874
|
+
className: x,
|
|
875
|
+
color: y = "default",
|
|
876
|
+
disabled: O = !1,
|
|
877
|
+
disableFocusRipple: d = !1,
|
|
878
878
|
disableRipple: S = !1,
|
|
879
879
|
size: L = "medium",
|
|
880
880
|
...X
|
|
881
881
|
} = i, A = {
|
|
882
882
|
...i,
|
|
883
|
-
edge:
|
|
884
|
-
color:
|
|
885
|
-
disabled:
|
|
886
|
-
disableFocusRipple:
|
|
883
|
+
edge: b,
|
|
884
|
+
color: y,
|
|
885
|
+
disabled: O,
|
|
886
|
+
disableFocusRipple: d,
|
|
887
887
|
disableRipple: S,
|
|
888
888
|
size: L
|
|
889
889
|
}, E = gt(A);
|
|
890
|
-
return /* @__PURE__ */
|
|
891
|
-
className: J(E.root,
|
|
890
|
+
return /* @__PURE__ */ w(bt, {
|
|
891
|
+
className: J(E.root, x),
|
|
892
892
|
centerRipple: !0,
|
|
893
|
-
focusRipple: !
|
|
894
|
-
disabled:
|
|
893
|
+
focusRipple: !d,
|
|
894
|
+
disabled: O,
|
|
895
895
|
disableRipple: S,
|
|
896
896
|
ref: a,
|
|
897
897
|
...X,
|
|
898
898
|
ownerState: A,
|
|
899
|
-
children:
|
|
899
|
+
children: h
|
|
900
900
|
});
|
|
901
901
|
});
|
|
902
|
-
process.env.NODE_ENV !== "production" && (
|
|
902
|
+
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
903
903
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
904
904
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
905
905
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -961,30 +961,30 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
961
961
|
*/
|
|
962
962
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
963
963
|
});
|
|
964
|
-
const mt =
|
|
964
|
+
const mt = Wo(/* @__PURE__ */ w("path", {
|
|
965
965
|
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
966
966
|
}), "Cancel");
|
|
967
967
|
function ht(e) {
|
|
968
968
|
return po("MuiChip", e);
|
|
969
969
|
}
|
|
970
|
-
const
|
|
970
|
+
const g = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "colorError", "colorInfo", "colorPrimary", "colorSecondary", "colorSuccess", "colorWarning", "disabled", "clickable", "clickableColorPrimary", "clickableColorSecondary", "deletable", "deletableColorPrimary", "deletableColorSecondary", "outlined", "filled", "outlinedPrimary", "outlinedSecondary", "filledPrimary", "filledSecondary", "avatar", "avatarSmall", "avatarMedium", "avatarColorPrimary", "avatarColorSecondary", "icon", "iconSmall", "iconMedium", "iconColorPrimary", "iconColorSecondary", "label", "labelSmall", "labelMedium", "deleteIcon", "deleteIconSmall", "deleteIconMedium", "deleteIconColorPrimary", "deleteIconColorSecondary", "deleteIconOutlinedColorPrimary", "deleteIconOutlinedColorSecondary", "deleteIconFilledColorPrimary", "deleteIconFilledColorSecondary", "focusVisible"]), yt = (e) => {
|
|
971
971
|
const {
|
|
972
972
|
classes: n,
|
|
973
973
|
disabled: a,
|
|
974
974
|
size: i,
|
|
975
|
-
color:
|
|
976
|
-
iconColor:
|
|
977
|
-
onDelete:
|
|
978
|
-
clickable:
|
|
979
|
-
variant:
|
|
980
|
-
} = e,
|
|
981
|
-
root: ["root",
|
|
982
|
-
label: ["label", `label${
|
|
983
|
-
avatar: ["avatar", `avatar${
|
|
984
|
-
icon: ["icon", `icon${
|
|
985
|
-
deleteIcon: ["deleteIcon", `deleteIcon${
|
|
975
|
+
color: b,
|
|
976
|
+
iconColor: h,
|
|
977
|
+
onDelete: x,
|
|
978
|
+
clickable: y,
|
|
979
|
+
variant: O
|
|
980
|
+
} = e, d = {
|
|
981
|
+
root: ["root", O, a && "disabled", `size${f(i)}`, `color${f(b)}`, y && "clickable", y && `clickableColor${f(b)}`, x && "deletable", x && `deletableColor${f(b)}`, `${O}${f(b)}`],
|
|
982
|
+
label: ["label", `label${f(i)}`],
|
|
983
|
+
avatar: ["avatar", `avatar${f(i)}`, `avatarColor${f(b)}`],
|
|
984
|
+
icon: ["icon", `icon${f(i)}`, `iconColor${f(h)}`],
|
|
985
|
+
deleteIcon: ["deleteIcon", `deleteIcon${f(i)}`, `deleteIconColor${f(b)}`, `deleteIcon${f(O)}Color${f(b)}`]
|
|
986
986
|
};
|
|
987
|
-
return fo(
|
|
987
|
+
return fo(d, ht, n);
|
|
988
988
|
}, vt = F("div", {
|
|
989
989
|
name: "MuiChip",
|
|
990
990
|
slot: "Root",
|
|
@@ -993,33 +993,33 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
993
993
|
ownerState: a
|
|
994
994
|
} = e, {
|
|
995
995
|
color: i,
|
|
996
|
-
iconColor:
|
|
997
|
-
clickable:
|
|
998
|
-
onDelete:
|
|
999
|
-
size:
|
|
1000
|
-
variant:
|
|
996
|
+
iconColor: b,
|
|
997
|
+
clickable: h,
|
|
998
|
+
onDelete: x,
|
|
999
|
+
size: y,
|
|
1000
|
+
variant: O
|
|
1001
1001
|
} = a;
|
|
1002
1002
|
return [{
|
|
1003
|
-
[`& .${
|
|
1003
|
+
[`& .${g.avatar}`]: n.avatar
|
|
1004
1004
|
}, {
|
|
1005
|
-
[`& .${
|
|
1005
|
+
[`& .${g.avatar}`]: n[`avatar${f(y)}`]
|
|
1006
1006
|
}, {
|
|
1007
|
-
[`& .${
|
|
1007
|
+
[`& .${g.avatar}`]: n[`avatarColor${f(i)}`]
|
|
1008
1008
|
}, {
|
|
1009
|
-
[`& .${
|
|
1009
|
+
[`& .${g.icon}`]: n.icon
|
|
1010
1010
|
}, {
|
|
1011
|
-
[`& .${
|
|
1011
|
+
[`& .${g.icon}`]: n[`icon${f(y)}`]
|
|
1012
1012
|
}, {
|
|
1013
|
-
[`& .${
|
|
1013
|
+
[`& .${g.icon}`]: n[`iconColor${f(b)}`]
|
|
1014
1014
|
}, {
|
|
1015
|
-
[`& .${
|
|
1015
|
+
[`& .${g.deleteIcon}`]: n.deleteIcon
|
|
1016
1016
|
}, {
|
|
1017
|
-
[`& .${
|
|
1017
|
+
[`& .${g.deleteIcon}`]: n[`deleteIcon${f(y)}`]
|
|
1018
1018
|
}, {
|
|
1019
|
-
[`& .${
|
|
1019
|
+
[`& .${g.deleteIcon}`]: n[`deleteIconColor${f(i)}`]
|
|
1020
1020
|
}, {
|
|
1021
|
-
[`& .${
|
|
1022
|
-
}, n.root, n[`size${
|
|
1021
|
+
[`& .${g.deleteIcon}`]: n[`deleteIcon${f(O)}Color${f(i)}`]
|
|
1022
|
+
}, n.root, n[`size${f(y)}`], n[`color${f(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${f(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${f(i)}`], n[O], n[`${O}${f(i)}`]];
|
|
1023
1023
|
}
|
|
1024
1024
|
})(ee(({
|
|
1025
1025
|
theme: e
|
|
@@ -1049,11 +1049,11 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1049
1049
|
// Remove `button` padding
|
|
1050
1050
|
verticalAlign: "middle",
|
|
1051
1051
|
boxSizing: "border-box",
|
|
1052
|
-
[`&.${
|
|
1052
|
+
[`&.${g.disabled}`]: {
|
|
1053
1053
|
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
1054
1054
|
pointerEvents: "none"
|
|
1055
1055
|
},
|
|
1056
|
-
[`& .${
|
|
1056
|
+
[`& .${g.avatar}`]: {
|
|
1057
1057
|
marginLeft: 5,
|
|
1058
1058
|
marginRight: -6,
|
|
1059
1059
|
width: 24,
|
|
@@ -1061,26 +1061,26 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1061
1061
|
color: e.vars ? e.vars.palette.Chip.defaultAvatarColor : n,
|
|
1062
1062
|
fontSize: e.typography.pxToRem(12)
|
|
1063
1063
|
},
|
|
1064
|
-
[`& .${
|
|
1064
|
+
[`& .${g.avatarColorPrimary}`]: {
|
|
1065
1065
|
color: (e.vars || e).palette.primary.contrastText,
|
|
1066
1066
|
backgroundColor: (e.vars || e).palette.primary.dark
|
|
1067
1067
|
},
|
|
1068
|
-
[`& .${
|
|
1068
|
+
[`& .${g.avatarColorSecondary}`]: {
|
|
1069
1069
|
color: (e.vars || e).palette.secondary.contrastText,
|
|
1070
1070
|
backgroundColor: (e.vars || e).palette.secondary.dark
|
|
1071
1071
|
},
|
|
1072
|
-
[`& .${
|
|
1072
|
+
[`& .${g.avatarSmall}`]: {
|
|
1073
1073
|
marginLeft: 4,
|
|
1074
1074
|
marginRight: -4,
|
|
1075
1075
|
width: 18,
|
|
1076
1076
|
height: 18,
|
|
1077
1077
|
fontSize: e.typography.pxToRem(10)
|
|
1078
1078
|
},
|
|
1079
|
-
[`& .${
|
|
1079
|
+
[`& .${g.icon}`]: {
|
|
1080
1080
|
marginLeft: 5,
|
|
1081
1081
|
marginRight: -6
|
|
1082
1082
|
},
|
|
1083
|
-
[`& .${
|
|
1083
|
+
[`& .${g.deleteIcon}`]: {
|
|
1084
1084
|
WebkitTapHighlightColor: "transparent",
|
|
1085
1085
|
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : V(e.palette.text.primary, 0.26),
|
|
1086
1086
|
fontSize: 22,
|
|
@@ -1096,25 +1096,25 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1096
1096
|
},
|
|
1097
1097
|
style: {
|
|
1098
1098
|
height: 24,
|
|
1099
|
-
[`& .${
|
|
1099
|
+
[`& .${g.icon}`]: {
|
|
1100
1100
|
fontSize: 18,
|
|
1101
1101
|
marginLeft: 4,
|
|
1102
1102
|
marginRight: -4
|
|
1103
1103
|
},
|
|
1104
|
-
[`& .${
|
|
1104
|
+
[`& .${g.deleteIcon}`]: {
|
|
1105
1105
|
fontSize: 16,
|
|
1106
1106
|
marginRight: 4,
|
|
1107
1107
|
marginLeft: -4
|
|
1108
1108
|
}
|
|
1109
1109
|
}
|
|
1110
|
-
}, ...Object.entries(e.palette).filter(
|
|
1110
|
+
}, ...Object.entries(e.palette).filter(Me(["contrastText"])).map(([a]) => ({
|
|
1111
1111
|
props: {
|
|
1112
1112
|
color: a
|
|
1113
1113
|
},
|
|
1114
1114
|
style: {
|
|
1115
1115
|
backgroundColor: (e.vars || e).palette[a].main,
|
|
1116
1116
|
color: (e.vars || e).palette[a].contrastText,
|
|
1117
|
-
[`& .${
|
|
1117
|
+
[`& .${g.deleteIcon}`]: {
|
|
1118
1118
|
color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : V(e.palette[a].contrastText, 0.7),
|
|
1119
1119
|
"&:hover, &:active": {
|
|
1120
1120
|
color: (e.vars || e).palette[a].contrastText
|
|
@@ -1124,14 +1124,14 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1124
1124
|
})), {
|
|
1125
1125
|
props: (a) => a.iconColor === a.color,
|
|
1126
1126
|
style: {
|
|
1127
|
-
[`& .${
|
|
1127
|
+
[`& .${g.icon}`]: {
|
|
1128
1128
|
color: e.vars ? e.vars.palette.Chip.defaultIconColor : n
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
}, {
|
|
1132
1132
|
props: (a) => a.iconColor === a.color && a.color !== "default",
|
|
1133
1133
|
style: {
|
|
1134
|
-
[`& .${
|
|
1134
|
+
[`& .${g.icon}`]: {
|
|
1135
1135
|
color: "inherit"
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
@@ -1140,17 +1140,17 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1140
1140
|
onDelete: !0
|
|
1141
1141
|
},
|
|
1142
1142
|
style: {
|
|
1143
|
-
[`&.${
|
|
1143
|
+
[`&.${g.focusVisible}`]: {
|
|
1144
1144
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
}, ...Object.entries(e.palette).filter(
|
|
1147
|
+
}, ...Object.entries(e.palette).filter(Me(["dark"])).map(([a]) => ({
|
|
1148
1148
|
props: {
|
|
1149
1149
|
color: a,
|
|
1150
1150
|
onDelete: !0
|
|
1151
1151
|
},
|
|
1152
1152
|
style: {
|
|
1153
|
-
[`&.${
|
|
1153
|
+
[`&.${g.focusVisible}`]: {
|
|
1154
1154
|
background: (e.vars || e).palette[a].dark
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
@@ -1165,20 +1165,20 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1165
1165
|
"&:hover": {
|
|
1166
1166
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
1167
1167
|
},
|
|
1168
|
-
[`&.${
|
|
1168
|
+
[`&.${g.focusVisible}`]: {
|
|
1169
1169
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : V(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1170
1170
|
},
|
|
1171
1171
|
"&:active": {
|
|
1172
1172
|
boxShadow: (e.vars || e).shadows[1]
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
}, ...Object.entries(e.palette).filter(
|
|
1175
|
+
}, ...Object.entries(e.palette).filter(Me(["dark"])).map(([a]) => ({
|
|
1176
1176
|
props: {
|
|
1177
1177
|
color: a,
|
|
1178
1178
|
clickable: !0
|
|
1179
1179
|
},
|
|
1180
1180
|
style: {
|
|
1181
|
-
[`&:hover, &.${
|
|
1181
|
+
[`&:hover, &.${g.focusVisible}`]: {
|
|
1182
1182
|
backgroundColor: (e.vars || e).palette[a].dark
|
|
1183
1183
|
}
|
|
1184
1184
|
}
|
|
@@ -1189,32 +1189,32 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1189
1189
|
style: {
|
|
1190
1190
|
backgroundColor: "transparent",
|
|
1191
1191
|
border: e.vars ? `1px solid ${e.vars.palette.Chip.defaultBorder}` : `1px solid ${e.palette.mode === "light" ? e.palette.grey[400] : e.palette.grey[700]}`,
|
|
1192
|
-
[`&.${
|
|
1192
|
+
[`&.${g.clickable}:hover`]: {
|
|
1193
1193
|
backgroundColor: (e.vars || e).palette.action.hover
|
|
1194
1194
|
},
|
|
1195
|
-
[`&.${
|
|
1195
|
+
[`&.${g.focusVisible}`]: {
|
|
1196
1196
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1197
1197
|
},
|
|
1198
|
-
[`& .${
|
|
1198
|
+
[`& .${g.avatar}`]: {
|
|
1199
1199
|
marginLeft: 4
|
|
1200
1200
|
},
|
|
1201
|
-
[`& .${
|
|
1201
|
+
[`& .${g.avatarSmall}`]: {
|
|
1202
1202
|
marginLeft: 2
|
|
1203
1203
|
},
|
|
1204
|
-
[`& .${
|
|
1204
|
+
[`& .${g.icon}`]: {
|
|
1205
1205
|
marginLeft: 4
|
|
1206
1206
|
},
|
|
1207
|
-
[`& .${
|
|
1207
|
+
[`& .${g.iconSmall}`]: {
|
|
1208
1208
|
marginLeft: 2
|
|
1209
1209
|
},
|
|
1210
|
-
[`& .${
|
|
1210
|
+
[`& .${g.deleteIcon}`]: {
|
|
1211
1211
|
marginRight: 5
|
|
1212
1212
|
},
|
|
1213
|
-
[`& .${
|
|
1213
|
+
[`& .${g.deleteIconSmall}`]: {
|
|
1214
1214
|
marginRight: 3
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
}, ...Object.entries(e.palette).filter(
|
|
1217
|
+
}, ...Object.entries(e.palette).filter(Me()).map(([a]) => ({
|
|
1218
1218
|
props: {
|
|
1219
1219
|
variant: "outlined",
|
|
1220
1220
|
color: a
|
|
@@ -1222,13 +1222,13 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1222
1222
|
style: {
|
|
1223
1223
|
color: (e.vars || e).palette[a].main,
|
|
1224
1224
|
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7)}`,
|
|
1225
|
-
[`&.${
|
|
1225
|
+
[`&.${g.clickable}:hover`]: {
|
|
1226
1226
|
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : V(e.palette[a].main, e.palette.action.hoverOpacity)
|
|
1227
1227
|
},
|
|
1228
|
-
[`&.${
|
|
1228
|
+
[`&.${g.focusVisible}`]: {
|
|
1229
1229
|
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : V(e.palette[a].main, e.palette.action.focusOpacity)
|
|
1230
1230
|
},
|
|
1231
|
-
[`& .${
|
|
1231
|
+
[`& .${g.deleteIcon}`]: {
|
|
1232
1232
|
color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : V(e.palette[a].main, 0.7),
|
|
1233
1233
|
"&:hover, &:active": {
|
|
1234
1234
|
color: (e.vars || e).palette[a].main
|
|
@@ -1246,7 +1246,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1246
1246
|
} = e, {
|
|
1247
1247
|
size: i
|
|
1248
1248
|
} = a;
|
|
1249
|
-
return [n.label, n[`label${
|
|
1249
|
+
return [n.label, n[`label${f(i)}`]];
|
|
1250
1250
|
}
|
|
1251
1251
|
})({
|
|
1252
1252
|
overflow: "hidden",
|
|
@@ -1281,20 +1281,20 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1281
1281
|
}
|
|
1282
1282
|
}]
|
|
1283
1283
|
});
|
|
1284
|
-
function
|
|
1284
|
+
function jo(e) {
|
|
1285
1285
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1286
1286
|
}
|
|
1287
|
-
const
|
|
1287
|
+
const _o = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1288
1288
|
const i = uo({
|
|
1289
1289
|
props: n,
|
|
1290
1290
|
name: "MuiChip"
|
|
1291
1291
|
}), {
|
|
1292
|
-
avatar:
|
|
1293
|
-
className:
|
|
1294
|
-
clickable:
|
|
1295
|
-
color:
|
|
1296
|
-
component:
|
|
1297
|
-
deleteIcon:
|
|
1292
|
+
avatar: b,
|
|
1293
|
+
className: h,
|
|
1294
|
+
clickable: x,
|
|
1295
|
+
color: y = "default",
|
|
1296
|
+
component: O,
|
|
1297
|
+
deleteIcon: d,
|
|
1298
1298
|
disabled: S = !1,
|
|
1299
1299
|
icon: L,
|
|
1300
1300
|
label: X,
|
|
@@ -1308,47 +1308,47 @@ const Ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1308
1308
|
skipFocusWhenDisabled: he = !1,
|
|
1309
1309
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1310
1310
|
...Ee
|
|
1311
|
-
} = i, oe = m.useRef(null), ze = et(oe, a), Ve = (
|
|
1312
|
-
|
|
1313
|
-
}, de = (
|
|
1314
|
-
|
|
1315
|
-
}, ye = (
|
|
1316
|
-
|
|
1317
|
-
}, W =
|
|
1311
|
+
} = i, oe = m.useRef(null), ze = et(oe, a), Ve = (M) => {
|
|
1312
|
+
M.stopPropagation(), E && E(M);
|
|
1313
|
+
}, de = (M) => {
|
|
1314
|
+
M.currentTarget === M.target && jo(M) && M.preventDefault(), ue && ue(M);
|
|
1315
|
+
}, ye = (M) => {
|
|
1316
|
+
M.currentTarget === M.target && E && jo(M) && E(M), Ne && Ne(M);
|
|
1317
|
+
}, W = x !== !1 && A ? !0 : x, $ = W || E ? So : O || "div", fe = {
|
|
1318
1318
|
...i,
|
|
1319
1319
|
component: $,
|
|
1320
1320
|
disabled: S,
|
|
1321
1321
|
size: me,
|
|
1322
|
-
color:
|
|
1323
|
-
iconColor: /* @__PURE__ */ m.isValidElement(L) && L.props.color ||
|
|
1322
|
+
color: y,
|
|
1323
|
+
iconColor: /* @__PURE__ */ m.isValidElement(L) && L.props.color || y,
|
|
1324
1324
|
onDelete: !!E,
|
|
1325
1325
|
clickable: W,
|
|
1326
1326
|
variant: le
|
|
1327
1327
|
}, _ = yt(fe), ve = $ === So ? {
|
|
1328
|
-
component:
|
|
1328
|
+
component: O || "div",
|
|
1329
1329
|
focusVisibleClassName: _.focusVisible,
|
|
1330
1330
|
...E && {
|
|
1331
1331
|
disableRipple: !0
|
|
1332
1332
|
}
|
|
1333
1333
|
} : {};
|
|
1334
1334
|
let q = null;
|
|
1335
|
-
E && (q =
|
|
1336
|
-
className: J(
|
|
1335
|
+
E && (q = d && /* @__PURE__ */ m.isValidElement(d) ? /* @__PURE__ */ m.cloneElement(d, {
|
|
1336
|
+
className: J(d.props.className, _.deleteIcon),
|
|
1337
1337
|
onClick: Ve
|
|
1338
|
-
}) : /* @__PURE__ */
|
|
1338
|
+
}) : /* @__PURE__ */ w(mt, {
|
|
1339
1339
|
className: J(_.deleteIcon),
|
|
1340
1340
|
onClick: Ve
|
|
1341
1341
|
}));
|
|
1342
1342
|
let ie = null;
|
|
1343
|
-
|
|
1344
|
-
className: J(_.avatar,
|
|
1343
|
+
b && /* @__PURE__ */ m.isValidElement(b) && (ie = /* @__PURE__ */ m.cloneElement(b, {
|
|
1344
|
+
className: J(_.avatar, b.props.className)
|
|
1345
1345
|
}));
|
|
1346
1346
|
let xe = null;
|
|
1347
1347
|
return L && /* @__PURE__ */ m.isValidElement(L) && (xe = /* @__PURE__ */ m.cloneElement(L, {
|
|
1348
1348
|
className: J(_.icon, L.props.className)
|
|
1349
|
-
})), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */
|
|
1349
|
+
})), process.env.NODE_ENV !== "production" && ie && xe && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ De(vt, {
|
|
1350
1350
|
as: $,
|
|
1351
|
-
className: J(_.root,
|
|
1351
|
+
className: J(_.root, h),
|
|
1352
1352
|
disabled: W && S ? !0 : void 0,
|
|
1353
1353
|
onClick: A,
|
|
1354
1354
|
onKeyDown: de,
|
|
@@ -1358,14 +1358,14 @@ const Ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
|
1358
1358
|
ownerState: fe,
|
|
1359
1359
|
...ve,
|
|
1360
1360
|
...Ee,
|
|
1361
|
-
children: [ie || xe, /* @__PURE__ */
|
|
1361
|
+
children: [ie || xe, /* @__PURE__ */ w(xt, {
|
|
1362
1362
|
className: J(_.label),
|
|
1363
1363
|
ownerState: fe,
|
|
1364
1364
|
children: X
|
|
1365
1365
|
}), q]
|
|
1366
1366
|
});
|
|
1367
1367
|
});
|
|
1368
|
-
process.env.NODE_ENV !== "production" && (
|
|
1368
|
+
process.env.NODE_ENV !== "production" && (_o.propTypes = {
|
|
1369
1369
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1370
1370
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1371
1371
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1467,34 +1467,34 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = {
|
|
|
1467
1467
|
*/
|
|
1468
1468
|
variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
|
|
1469
1469
|
});
|
|
1470
|
-
const $t =
|
|
1470
|
+
const $t = Wo(/* @__PURE__ */ w("path", {
|
|
1471
1471
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
1472
1472
|
}), "Close");
|
|
1473
1473
|
function Ct(e) {
|
|
1474
1474
|
return po("MuiAutocomplete", e);
|
|
1475
1475
|
}
|
|
1476
1476
|
const u = co("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
1477
|
-
var
|
|
1477
|
+
var Bo, Uo;
|
|
1478
1478
|
const It = (e) => {
|
|
1479
1479
|
const {
|
|
1480
1480
|
classes: n,
|
|
1481
1481
|
disablePortal: a,
|
|
1482
1482
|
expanded: i,
|
|
1483
|
-
focused:
|
|
1484
|
-
fullWidth:
|
|
1485
|
-
hasClearIcon:
|
|
1486
|
-
hasPopupIcon:
|
|
1487
|
-
inputFocused:
|
|
1488
|
-
popupOpen:
|
|
1483
|
+
focused: b,
|
|
1484
|
+
fullWidth: h,
|
|
1485
|
+
hasClearIcon: x,
|
|
1486
|
+
hasPopupIcon: y,
|
|
1487
|
+
inputFocused: O,
|
|
1488
|
+
popupOpen: d,
|
|
1489
1489
|
size: S
|
|
1490
1490
|
} = e, L = {
|
|
1491
|
-
root: ["root", i && "expanded",
|
|
1491
|
+
root: ["root", i && "expanded", b && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
|
|
1492
1492
|
inputRoot: ["inputRoot"],
|
|
1493
|
-
input: ["input",
|
|
1494
|
-
tag: ["tag", `tagSize${
|
|
1493
|
+
input: ["input", O && "inputFocused"],
|
|
1494
|
+
tag: ["tag", `tagSize${f(S)}`],
|
|
1495
1495
|
endAdornment: ["endAdornment"],
|
|
1496
1496
|
clearIndicator: ["clearIndicator"],
|
|
1497
|
-
popupIndicator: ["popupIndicator",
|
|
1497
|
+
popupIndicator: ["popupIndicator", d && "popupIndicatorOpen"],
|
|
1498
1498
|
popper: ["popper", a && "popperDisablePortal"],
|
|
1499
1499
|
paper: ["paper"],
|
|
1500
1500
|
listbox: ["listbox"],
|
|
@@ -1513,22 +1513,22 @@ const It = (e) => {
|
|
|
1513
1513
|
ownerState: a
|
|
1514
1514
|
} = e, {
|
|
1515
1515
|
fullWidth: i,
|
|
1516
|
-
hasClearIcon:
|
|
1517
|
-
hasPopupIcon:
|
|
1518
|
-
inputFocused:
|
|
1519
|
-
size:
|
|
1516
|
+
hasClearIcon: b,
|
|
1517
|
+
hasPopupIcon: h,
|
|
1518
|
+
inputFocused: x,
|
|
1519
|
+
size: y
|
|
1520
1520
|
} = a;
|
|
1521
1521
|
return [{
|
|
1522
1522
|
[`& .${u.tag}`]: n.tag
|
|
1523
1523
|
}, {
|
|
1524
|
-
[`& .${u.tag}`]: n[`tagSize${
|
|
1524
|
+
[`& .${u.tag}`]: n[`tagSize${f(y)}`]
|
|
1525
1525
|
}, {
|
|
1526
1526
|
[`& .${u.inputRoot}`]: n.inputRoot
|
|
1527
1527
|
}, {
|
|
1528
1528
|
[`& .${u.input}`]: n.input
|
|
1529
1529
|
}, {
|
|
1530
|
-
[`& .${u.input}`]:
|
|
1531
|
-
}, n.root, i && n.fullWidth,
|
|
1530
|
+
[`& .${u.input}`]: x && n.inputFocused
|
|
1531
|
+
}, n.root, i && n.fullWidth, h && n.hasPopupIcon, b && n.hasClearIcon];
|
|
1532
1532
|
}
|
|
1533
1533
|
})({
|
|
1534
1534
|
[`&.${u.focused} .${u.clearIndicator}`]: {
|
|
@@ -1567,7 +1567,7 @@ const It = (e) => {
|
|
|
1567
1567
|
padding: "2px 4px 3px 0"
|
|
1568
1568
|
}
|
|
1569
1569
|
},
|
|
1570
|
-
[`& .${
|
|
1570
|
+
[`& .${Eo.root}`]: {
|
|
1571
1571
|
padding: 9,
|
|
1572
1572
|
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1573
1573
|
paddingRight: 39
|
|
@@ -1582,7 +1582,7 @@ const It = (e) => {
|
|
|
1582
1582
|
right: 9
|
|
1583
1583
|
}
|
|
1584
1584
|
},
|
|
1585
|
-
[`& .${
|
|
1585
|
+
[`& .${Eo.root}.${be.sizeSmall}`]: {
|
|
1586
1586
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
1587
1587
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
1588
1588
|
paddingTop: 6,
|
|
@@ -1682,7 +1682,7 @@ const It = (e) => {
|
|
|
1682
1682
|
right: 0,
|
|
1683
1683
|
top: "50%",
|
|
1684
1684
|
transform: "translate(0, -50%)"
|
|
1685
|
-
}), St = F(
|
|
1685
|
+
}), St = F(ko, {
|
|
1686
1686
|
name: "MuiAutocomplete",
|
|
1687
1687
|
slot: "ClearIndicator",
|
|
1688
1688
|
overridesResolver: (e, n) => n.clearIndicator
|
|
@@ -1690,7 +1690,7 @@ const It = (e) => {
|
|
|
1690
1690
|
marginRight: -2,
|
|
1691
1691
|
padding: 4,
|
|
1692
1692
|
visibility: "hidden"
|
|
1693
|
-
}), wt = F(
|
|
1693
|
+
}), wt = F(ko, {
|
|
1694
1694
|
name: "MuiAutocomplete",
|
|
1695
1695
|
slot: "PopupIndicator",
|
|
1696
1696
|
overridesResolver: ({
|
|
@@ -1710,7 +1710,7 @@ const It = (e) => {
|
|
|
1710
1710
|
transform: "rotate(180deg)"
|
|
1711
1711
|
}
|
|
1712
1712
|
}]
|
|
1713
|
-
}), Tt = F(
|
|
1713
|
+
}), Tt = F(Ko, {
|
|
1714
1714
|
name: "MuiAutocomplete",
|
|
1715
1715
|
slot: "Popper",
|
|
1716
1716
|
overridesResolver: (e, n) => {
|
|
@@ -1733,7 +1733,7 @@ const It = (e) => {
|
|
|
1733
1733
|
position: "absolute"
|
|
1734
1734
|
}
|
|
1735
1735
|
}]
|
|
1736
|
-
}))), kt = F(
|
|
1736
|
+
}))), kt = F(Go, {
|
|
1737
1737
|
name: "MuiAutocomplete",
|
|
1738
1738
|
slot: "Paper",
|
|
1739
1739
|
overridesResolver: (e, n) => n.paper
|
|
@@ -1818,7 +1818,7 @@ const It = (e) => {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
|
-
}))),
|
|
1821
|
+
}))), Mt = F(so, {
|
|
1822
1822
|
name: "MuiAutocomplete",
|
|
1823
1823
|
slot: "GroupLabel",
|
|
1824
1824
|
overridesResolver: (e, n) => n.groupLabel
|
|
@@ -1827,7 +1827,7 @@ const It = (e) => {
|
|
|
1827
1827
|
}) => ({
|
|
1828
1828
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1829
1829
|
top: -8
|
|
1830
|
-
}))),
|
|
1830
|
+
}))), Dt = F("ul", {
|
|
1831
1831
|
name: "MuiAutocomplete",
|
|
1832
1832
|
slot: "GroupUl",
|
|
1833
1833
|
overridesResolver: (e, n) => n.groupUl
|
|
@@ -1836,18 +1836,18 @@ const It = (e) => {
|
|
|
1836
1836
|
[`& .${u.option}`]: {
|
|
1837
1837
|
paddingLeft: 24
|
|
1838
1838
|
}
|
|
1839
|
-
}),
|
|
1839
|
+
}), To = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1840
1840
|
const i = uo({
|
|
1841
1841
|
props: n,
|
|
1842
1842
|
name: "MuiAutocomplete"
|
|
1843
1843
|
}), {
|
|
1844
|
-
autoComplete:
|
|
1845
|
-
autoHighlight:
|
|
1846
|
-
autoSelect:
|
|
1847
|
-
blurOnSelect:
|
|
1848
|
-
ChipProps:
|
|
1849
|
-
className:
|
|
1850
|
-
clearIcon: S =
|
|
1844
|
+
autoComplete: b = !1,
|
|
1845
|
+
autoHighlight: h = !1,
|
|
1846
|
+
autoSelect: x = !1,
|
|
1847
|
+
blurOnSelect: y = !1,
|
|
1848
|
+
ChipProps: O,
|
|
1849
|
+
className: d,
|
|
1850
|
+
clearIcon: S = Bo || (Bo = /* @__PURE__ */ w($t, {
|
|
1851
1851
|
fontSize: "small"
|
|
1852
1852
|
})),
|
|
1853
1853
|
clearOnBlur: L = !i.freeSolo,
|
|
@@ -1867,35 +1867,35 @@ const It = (e) => {
|
|
|
1867
1867
|
forcePopupIcon: de = "auto",
|
|
1868
1868
|
freeSolo: ye = !1,
|
|
1869
1869
|
fullWidth: W = !1,
|
|
1870
|
-
getLimitTagsText: $ = (
|
|
1870
|
+
getLimitTagsText: $ = (v) => `+${v}`,
|
|
1871
1871
|
getOptionDisabled: fe,
|
|
1872
1872
|
getOptionKey: _,
|
|
1873
1873
|
getOptionLabel: ve,
|
|
1874
1874
|
isOptionEqualToValue: q,
|
|
1875
1875
|
groupBy: ie,
|
|
1876
1876
|
handleHomeEndKeys: xe = !i.freeSolo,
|
|
1877
|
-
id:
|
|
1878
|
-
includeInputInList:
|
|
1877
|
+
id: M,
|
|
1878
|
+
includeInputInList: Ro = !1,
|
|
1879
1879
|
inputValue: $e,
|
|
1880
1880
|
limitTags: Fe = -1,
|
|
1881
1881
|
ListboxComponent: go,
|
|
1882
1882
|
ListboxProps: U,
|
|
1883
|
-
loading:
|
|
1883
|
+
loading: D = !1,
|
|
1884
1884
|
loadingText: je = "Loading…",
|
|
1885
1885
|
multiple: Be = !1,
|
|
1886
|
-
noOptionsText:
|
|
1886
|
+
noOptionsText: k = "No options",
|
|
1887
1887
|
onChange: K,
|
|
1888
1888
|
onClose: Ue,
|
|
1889
|
-
onHighlightChange:
|
|
1889
|
+
onHighlightChange: Lo,
|
|
1890
1890
|
onInputChange: G,
|
|
1891
1891
|
onOpen: Xe,
|
|
1892
1892
|
open: bo,
|
|
1893
1893
|
openOnFocus: z = !1,
|
|
1894
1894
|
openText: s = "Open",
|
|
1895
|
-
options:
|
|
1896
|
-
PaperComponent:
|
|
1895
|
+
options: Ao,
|
|
1896
|
+
PaperComponent: P,
|
|
1897
1897
|
PopperComponent: Ce,
|
|
1898
|
-
popupIcon: Ie =
|
|
1898
|
+
popupIcon: Ie = Uo || (Uo = /* @__PURE__ */ w(Xo, {})),
|
|
1899
1899
|
readOnly: He = !1,
|
|
1900
1900
|
renderGroup: Oe,
|
|
1901
1901
|
renderInput: se,
|
|
@@ -1904,7 +1904,7 @@ const It = (e) => {
|
|
|
1904
1904
|
selectOnFocus: mo = !i.freeSolo,
|
|
1905
1905
|
size: Pe = "medium",
|
|
1906
1906
|
slots: j = {},
|
|
1907
|
-
slotProps:
|
|
1907
|
+
slotProps: T = {},
|
|
1908
1908
|
value: Q,
|
|
1909
1909
|
...We
|
|
1910
1910
|
} = i, {
|
|
@@ -1935,7 +1935,7 @@ const It = (e) => {
|
|
|
1935
1935
|
} = eo(), {
|
|
1936
1936
|
ref: $o,
|
|
1937
1937
|
...no
|
|
1938
|
-
} = yo(), Ye = ve || ((
|
|
1938
|
+
} = yo(), Ye = ve || ((v) => v.label ?? v), N = {
|
|
1939
1939
|
...i,
|
|
1940
1940
|
disablePortal: oe,
|
|
1941
1941
|
expanded: we,
|
|
@@ -1950,15 +1950,15 @@ const It = (e) => {
|
|
|
1950
1950
|
}, R = It(N), ae = {
|
|
1951
1951
|
slots: {
|
|
1952
1952
|
listbox: go,
|
|
1953
|
-
paper:
|
|
1953
|
+
paper: P,
|
|
1954
1954
|
popper: Ce,
|
|
1955
1955
|
...j
|
|
1956
1956
|
},
|
|
1957
1957
|
slotProps: {
|
|
1958
|
-
chip:
|
|
1958
|
+
chip: O,
|
|
1959
1959
|
listbox: U,
|
|
1960
1960
|
...ue,
|
|
1961
|
-
...
|
|
1961
|
+
...T
|
|
1962
1962
|
}
|
|
1963
1963
|
}, [r, t] = Oo("listbox", {
|
|
1964
1964
|
elementType: "ul",
|
|
@@ -1968,12 +1968,12 @@ const It = (e) => {
|
|
|
1968
1968
|
additionalProps: no,
|
|
1969
1969
|
ref: $o
|
|
1970
1970
|
}), [l, p] = Oo("paper", {
|
|
1971
|
-
elementType:
|
|
1971
|
+
elementType: Go,
|
|
1972
1972
|
externalForwardedProps: ae,
|
|
1973
1973
|
ownerState: N,
|
|
1974
1974
|
className: R.paper
|
|
1975
1975
|
}), [c, I] = Oo("popper", {
|
|
1976
|
-
elementType:
|
|
1976
|
+
elementType: Ko,
|
|
1977
1977
|
externalForwardedProps: ae,
|
|
1978
1978
|
ownerState: N,
|
|
1979
1979
|
className: R.popper,
|
|
@@ -1989,100 +1989,100 @@ const It = (e) => {
|
|
|
1989
1989
|
});
|
|
1990
1990
|
let C;
|
|
1991
1991
|
if (Be && re.length > 0) {
|
|
1992
|
-
const
|
|
1992
|
+
const v = (Z) => ({
|
|
1993
1993
|
className: R.tag,
|
|
1994
1994
|
disabled: H,
|
|
1995
1995
|
...Ke(Z)
|
|
1996
1996
|
});
|
|
1997
|
-
Ze ? C = Ze(re,
|
|
1997
|
+
Ze ? C = Ze(re, v, N) : C = re.map((Z, ce) => {
|
|
1998
1998
|
const {
|
|
1999
1999
|
key: Je,
|
|
2000
|
-
...
|
|
2001
|
-
} =
|
|
2000
|
+
...Yo
|
|
2001
|
+
} = v({
|
|
2002
2002
|
index: ce
|
|
2003
2003
|
});
|
|
2004
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ w(_o, {
|
|
2005
2005
|
label: Ye(Z),
|
|
2006
2006
|
size: Pe,
|
|
2007
|
-
...
|
|
2007
|
+
...Yo,
|
|
2008
2008
|
...ae.slotProps.chip
|
|
2009
2009
|
}, Je);
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
2012
|
if (Fe > -1 && Array.isArray(C)) {
|
|
2013
|
-
const
|
|
2014
|
-
!Ge &&
|
|
2013
|
+
const v = C.length - Fe;
|
|
2014
|
+
!Ge && v > 0 && (C = C.splice(0, Fe), C.push(/* @__PURE__ */ w("span", {
|
|
2015
2015
|
className: R.tag,
|
|
2016
|
-
children: $(
|
|
2016
|
+
children: $(v)
|
|
2017
2017
|
}, C.length)));
|
|
2018
2018
|
}
|
|
2019
|
-
const Le = Oe || ((
|
|
2020
|
-
children: [/* @__PURE__ */
|
|
2019
|
+
const Le = Oe || ((v) => /* @__PURE__ */ De("li", {
|
|
2020
|
+
children: [/* @__PURE__ */ w(Mt, {
|
|
2021
2021
|
className: R.groupLabel,
|
|
2022
2022
|
ownerState: N,
|
|
2023
2023
|
component: "div",
|
|
2024
|
-
children:
|
|
2025
|
-
}), /* @__PURE__ */
|
|
2024
|
+
children: v.group
|
|
2025
|
+
}), /* @__PURE__ */ w(Dt, {
|
|
2026
2026
|
className: R.groupUl,
|
|
2027
2027
|
ownerState: N,
|
|
2028
|
-
children:
|
|
2028
|
+
children: v.children
|
|
2029
2029
|
})]
|
|
2030
|
-
},
|
|
2030
|
+
}, v.key)), qo = Qe || ((v, Z) => {
|
|
2031
2031
|
const {
|
|
2032
2032
|
key: ce,
|
|
2033
2033
|
...Je
|
|
2034
|
-
} =
|
|
2035
|
-
return /* @__PURE__ */
|
|
2034
|
+
} = v;
|
|
2035
|
+
return /* @__PURE__ */ w("li", {
|
|
2036
2036
|
...Je,
|
|
2037
2037
|
children: Ye(Z)
|
|
2038
2038
|
}, ce);
|
|
2039
|
-
}), Do = (
|
|
2039
|
+
}), Do = (v, Z) => {
|
|
2040
2040
|
const ce = ne({
|
|
2041
|
-
option:
|
|
2041
|
+
option: v,
|
|
2042
2042
|
index: Z
|
|
2043
2043
|
});
|
|
2044
|
-
return
|
|
2044
|
+
return qo({
|
|
2045
2045
|
...ce,
|
|
2046
2046
|
className: R.option
|
|
2047
|
-
},
|
|
2047
|
+
}, v, {
|
|
2048
2048
|
selected: ce["aria-selected"],
|
|
2049
2049
|
index: Z,
|
|
2050
2050
|
inputValue: to
|
|
2051
2051
|
}, N);
|
|
2052
|
-
}, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (
|
|
2052
|
+
}, ro = ae.slotProps.clearIndicator, ao = ae.slotProps.popupIndicator, Co = (v) => /* @__PURE__ */ w(Tt, {
|
|
2053
2053
|
as: c,
|
|
2054
2054
|
...I,
|
|
2055
|
-
children: /* @__PURE__ */
|
|
2055
|
+
children: /* @__PURE__ */ w(kt, {
|
|
2056
2056
|
as: l,
|
|
2057
2057
|
...p,
|
|
2058
|
-
children:
|
|
2058
|
+
children: v
|
|
2059
2059
|
})
|
|
2060
2060
|
});
|
|
2061
2061
|
let lo = null;
|
|
2062
|
-
return Re.length > 0 ? lo = Co(/* @__PURE__ */
|
|
2062
|
+
return Re.length > 0 ? lo = Co(/* @__PURE__ */ w(At, {
|
|
2063
2063
|
as: r,
|
|
2064
2064
|
...t,
|
|
2065
|
-
children: Re.map((
|
|
2066
|
-
key:
|
|
2067
|
-
group:
|
|
2068
|
-
children:
|
|
2069
|
-
}) : Do(
|
|
2070
|
-
})) :
|
|
2065
|
+
children: Re.map((v, Z) => ie ? Le({
|
|
2066
|
+
key: v.key,
|
|
2067
|
+
group: v.group,
|
|
2068
|
+
children: v.options.map((ce, Je) => Do(ce, v.index + Je))
|
|
2069
|
+
}) : Do(v, Z))
|
|
2070
|
+
})) : D && Re.length === 0 ? lo = Co(/* @__PURE__ */ w(Rt, {
|
|
2071
2071
|
className: R.loading,
|
|
2072
2072
|
ownerState: N,
|
|
2073
2073
|
children: je
|
|
2074
|
-
})) : Re.length === 0 && !ye && !
|
|
2074
|
+
})) : Re.length === 0 && !ye && !D && (lo = Co(/* @__PURE__ */ w(Lt, {
|
|
2075
2075
|
className: R.noOptions,
|
|
2076
2076
|
ownerState: N,
|
|
2077
2077
|
role: "presentation",
|
|
2078
|
-
onMouseDown: (
|
|
2079
|
-
|
|
2078
|
+
onMouseDown: (v) => {
|
|
2079
|
+
v.preventDefault();
|
|
2080
2080
|
},
|
|
2081
|
-
children:
|
|
2082
|
-
}))), /* @__PURE__ */
|
|
2083
|
-
children: [/* @__PURE__ */
|
|
2081
|
+
children: k
|
|
2082
|
+
}))), /* @__PURE__ */ De(m.Fragment, {
|
|
2083
|
+
children: [/* @__PURE__ */ w(Ot, {
|
|
2084
2084
|
ref: a,
|
|
2085
|
-
className: J(R.root,
|
|
2085
|
+
className: J(R.root, d),
|
|
2086
2086
|
ownerState: N,
|
|
2087
2087
|
...Se(We),
|
|
2088
2088
|
children: se({
|
|
@@ -2095,12 +2095,12 @@ const It = (e) => {
|
|
|
2095
2095
|
ref: vo,
|
|
2096
2096
|
className: R.inputRoot,
|
|
2097
2097
|
startAdornment: C,
|
|
2098
|
-
onMouseDown: (
|
|
2098
|
+
onMouseDown: (v) => xo(v),
|
|
2099
2099
|
...(_e || qe) && {
|
|
2100
|
-
endAdornment: /* @__PURE__ */
|
|
2100
|
+
endAdornment: /* @__PURE__ */ De(Pt, {
|
|
2101
2101
|
className: R.endAdornment,
|
|
2102
2102
|
ownerState: N,
|
|
2103
|
-
children: [_e ? /* @__PURE__ */
|
|
2103
|
+
children: [_e ? /* @__PURE__ */ w(St, {
|
|
2104
2104
|
...ho(),
|
|
2105
2105
|
"aria-label": A,
|
|
2106
2106
|
title: A,
|
|
@@ -2108,7 +2108,7 @@ const It = (e) => {
|
|
|
2108
2108
|
...ro,
|
|
2109
2109
|
className: J(R.clearIndicator, ro == null ? void 0 : ro.className),
|
|
2110
2110
|
children: S
|
|
2111
|
-
}) : null, qe ? /* @__PURE__ */
|
|
2111
|
+
}) : null, qe ? /* @__PURE__ */ w(wt, {
|
|
2112
2112
|
...Y(),
|
|
2113
2113
|
disabled: H,
|
|
2114
2114
|
"aria-label": Te ? E : s,
|
|
@@ -2131,7 +2131,7 @@ const It = (e) => {
|
|
|
2131
2131
|
}), ke ? lo : null]
|
|
2132
2132
|
});
|
|
2133
2133
|
});
|
|
2134
|
-
process.env.NODE_ENV !== "production" && (
|
|
2134
|
+
process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
2135
2135
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2136
2136
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2137
2137
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2561,8 +2561,8 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
|
|
|
2561
2561
|
value: wo(o.any, (e) => e.multiple && e.value !== void 0 && !Array.isArray(e.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${e.value} was provided.`].join(`
|
|
2562
2562
|
`)) : null)
|
|
2563
2563
|
});
|
|
2564
|
-
const Nt = ["colon"], Et =
|
|
2565
|
-
...
|
|
2564
|
+
const Nt = ["colon"], Et = Jo("div", { shouldForwardProp: (e) => !Nt.includes(e) })(({ borderFocusColor: e, minWidth: n = "180px", multiple: a }) => ({
|
|
2565
|
+
...No`
|
|
2566
2566
|
display: flex;
|
|
2567
2567
|
flex-wrap: nowrap;
|
|
2568
2568
|
align-items: center;
|
|
@@ -2594,7 +2594,7 @@ const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2594
2594
|
height: 18px;
|
|
2595
2595
|
padding: 0 !important;
|
|
2596
2596
|
|
|
2597
|
-
${a &&
|
|
2597
|
+
${a && No`
|
|
2598
2598
|
display: flex;
|
|
2599
2599
|
align-items: start;
|
|
2600
2600
|
`};
|
|
@@ -2606,7 +2606,7 @@ const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2606
2606
|
|
|
2607
2607
|
transition: 313ms all ease-out;
|
|
2608
2608
|
border-radius: 0;
|
|
2609
|
-
border-bottom: 1px solid ${
|
|
2609
|
+
border-bottom: 1px solid ${Ho.colors.gray};
|
|
2610
2610
|
width: 100%;
|
|
2611
2611
|
|
|
2612
2612
|
.Mui-select {
|
|
@@ -2667,35 +2667,50 @@ const Nt = ["colon"], Et = Yo("div", { shouldForwardProp: (e) => !Nt.includes(e)
|
|
|
2667
2667
|
colon: n = !0,
|
|
2668
2668
|
options: a = [],
|
|
2669
2669
|
noLabel: i = !1,
|
|
2670
|
-
borderFocusColor:
|
|
2670
|
+
borderFocusColor: b = Ho.colors.green,
|
|
2671
2671
|
// border primary
|
|
2672
|
-
onChange:
|
|
2673
|
-
minWidth:
|
|
2674
|
-
multiple:
|
|
2675
|
-
...
|
|
2676
|
-
}) => /* @__PURE__ */
|
|
2672
|
+
onChange: h,
|
|
2673
|
+
minWidth: x,
|
|
2674
|
+
multiple: y,
|
|
2675
|
+
...O
|
|
2676
|
+
}) => /* @__PURE__ */ De(
|
|
2677
2677
|
Et,
|
|
2678
2678
|
{
|
|
2679
2679
|
className: "jcLabeledDropdown",
|
|
2680
|
-
borderFocusColor:
|
|
2681
|
-
minWidth:
|
|
2682
|
-
multiple:
|
|
2680
|
+
borderFocusColor: b,
|
|
2681
|
+
minWidth: x,
|
|
2682
|
+
multiple: y,
|
|
2683
2683
|
children: [
|
|
2684
|
-
!i && /* @__PURE__ */
|
|
2684
|
+
!i && /* @__PURE__ */ De("span", { className: "jcDropdownLabel", children: [
|
|
2685
2685
|
e,
|
|
2686
2686
|
n && ":"
|
|
2687
2687
|
] }),
|
|
2688
|
-
|
|
2689
|
-
|
|
2688
|
+
!y && // @ts-ignore
|
|
2689
|
+
/* @__PURE__ */ w(
|
|
2690
|
+
To,
|
|
2691
|
+
{
|
|
2692
|
+
options: a,
|
|
2693
|
+
onChange: (d, S) => (
|
|
2694
|
+
// @ts-ignore
|
|
2695
|
+
h && h({ ...d, target: { ...d.target, value: `${S == null ? void 0 : S.value}` || "" } })
|
|
2696
|
+
),
|
|
2697
|
+
...O,
|
|
2698
|
+
renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
|
|
2699
|
+
}
|
|
2700
|
+
),
|
|
2701
|
+
y && // @ts-ignore
|
|
2702
|
+
/* @__PURE__ */ w(
|
|
2703
|
+
To,
|
|
2690
2704
|
{
|
|
2691
|
-
multiple:
|
|
2705
|
+
multiple: !0,
|
|
2706
|
+
disableCloseOnSelect: !0,
|
|
2692
2707
|
options: a,
|
|
2693
|
-
onChange: (
|
|
2708
|
+
onChange: (d) => (
|
|
2694
2709
|
// @ts-ignore
|
|
2695
|
-
|
|
2710
|
+
h && h({ ...d, target: { ...d.target, value: d.target.innerText || "" } })
|
|
2696
2711
|
),
|
|
2697
|
-
...
|
|
2698
|
-
renderInput: (
|
|
2712
|
+
...O,
|
|
2713
|
+
renderInput: (d) => /* @__PURE__ */ w(zo, { ...d })
|
|
2699
2714
|
}
|
|
2700
2715
|
)
|
|
2701
2716
|
]
|