jcicl 1.0.76 → 1.0.78
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/.chunks/Button.js +7 -6
- package/.chunks/ButtonBase.js +2 -1
- package/.chunks/CircularProgress.js +9 -8
- package/.chunks/DefaultPropsProvider.js +322 -336
- package/.chunks/Paper.js +6 -5
- package/.chunks/Popper.js +1 -1
- package/.chunks/Portal.js +13 -13
- package/.chunks/SwitchBase.js +14 -13
- package/.chunks/TextField.js +2 -1
- package/.chunks/clsx.js +16 -0
- package/.chunks/createSvgIcon.js +14 -13
- package/.chunks/eye.js +45 -0
- package/.chunks/index.js +19 -18
- package/AppContainer/AppContainer.js +323 -319
- package/Button/Button.js +80 -82
- package/Divider/Divider.js +13 -12
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.d.ts +3 -2
- package/EditableDetailItemWithIcon/EditableDetailItemWithIcon.js +39 -39
- package/EditableInfoCard/EditableInfoCard.d.ts +1 -1
- package/EditableInfoCard/EditableInfoCard.js +25 -25
- package/ErrorBoundary/ErrorBoundary.d.ts +5 -5
- package/ErrorBoundary/ErrorBoundary.js +21 -19
- package/FormComponents/FormComponents.d.ts +1 -2
- package/FormContext/createFormContext.js +70 -62
- package/FormFields/FormFields.d.ts +1 -1
- package/FormFields/FormFields.js +31 -31
- package/FormInput/FormInput.d.ts +5 -3
- package/FormInput/FormInput.js +10 -8
- package/Input/Input.d.ts +6 -1
- package/Input/Input.js +35 -100
- package/LabeledCheckbox/LabeledCheckbox.js +7 -6
- package/LabeledDropdown/LabeledDropdown.d.ts +3 -0
- package/LabeledDropdown/LabeledDropdown.js +720 -795
- package/LabeledFormattedInput/LabeledFormattedInput.d.ts +23 -0
- package/LabeledFormattedInput/LabeledFormattedInput.js +95 -0
- package/LabeledFormattedInput/index.d.ts +1 -0
- package/LabeledFormattedInput/index.js +4 -0
- package/LabeledInput/LabeledInput.js +39 -51
- package/LabeledRadio/LabeledRadio.js +7 -6
- package/Memo/Memo.js +6 -5
- package/Nav/Nav.d.ts +1 -1
- package/Pagination/Pagination.d.ts +1 -2
- package/Pagination/Pagination.js +25 -24
- package/README.md +11 -6
- package/Stepper/Stepper.js +4 -3
- package/Table/Table.d.ts +7 -5
- package/Table/Table.js +5575 -5633
- package/Timer/Timer.js +26 -26
- package/Toast/Toaster.js +9 -9
- package/Tooltip/Tooltip.js +5 -4
- package/WelcomeCard/WelcomeCard.d.ts +1 -5
- package/WelcomeCard/WelcomeCard.js +45 -101
- package/assets/style.css +1 -1
- package/assets/tailwind.css +2 -2
- package/cn.d.ts +2 -0
- package/cn.js +2990 -0
- package/constants.d.ts +6 -0
- package/constants.js +55 -0
- package/cursorPositioning.d.ts +7 -0
- package/cursorPositioning.js +13 -0
- package/formatters.d.ts +17 -0
- package/formatters.js +83 -0
- package/inputTypes.d.ts +1 -0
- package/inputTypes.js +1 -0
- package/logger.d.ts +13 -0
- package/logger.js +9 -0
- package/maskers.d.ts +6 -0
- package/maskers.js +15 -0
- package/package.json +2 -1
- package/theme.d.ts +1 -0
- package/theme.js +9 -8
- package/themeUtils.js +58 -79
- package/utils.d.ts +8 -18
- package/utils.js +39 -89
- package/validators.d.ts +5 -0
- package/validators.js +12 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import Jo from "../
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { i as
|
|
9
|
-
import { c as
|
|
10
|
-
import { m as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as
|
|
13
|
-
import { B as
|
|
14
|
-
import { c as
|
|
1
|
+
import { jsx as S, jsxs as Be } from "react/jsx-runtime";
|
|
2
|
+
import { cn as Ho } from "../cn.js";
|
|
3
|
+
import io from "../theme.js";
|
|
4
|
+
import { useThemeColors as Jo } from "../ThemeContext.js";
|
|
5
|
+
import * as m from "react";
|
|
6
|
+
import { g as co, a as uo, s as V, c as d, u as fo, P as o, b as go, d as z } from "../.chunks/DefaultPropsProvider.js";
|
|
7
|
+
import { c as Q } from "../.chunks/clsx.js";
|
|
8
|
+
import { i as Oo, a as me, b as Do, f as Ae, A as Xo, T as No } from "../.chunks/TextField.js";
|
|
9
|
+
import { c as Uo } from "../.chunks/createSvgIcon.js";
|
|
10
|
+
import { m as oe } from "../.chunks/memoTheme.js";
|
|
11
|
+
import { u as wo } from "../.chunks/useSlot.js";
|
|
12
|
+
import { c as _e } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
13
|
+
import { B as Po } from "../.chunks/ButtonBase.js";
|
|
14
|
+
import { c as To } from "../.chunks/chainPropTypes.js";
|
|
15
15
|
import { P as Wo } from "../.chunks/Popper.js";
|
|
16
16
|
import { P as Ko } from "../.chunks/Paper.js";
|
|
17
|
-
import { a as
|
|
18
|
-
import { u as
|
|
19
|
-
import { b as
|
|
20
|
-
import { i as
|
|
21
|
-
function
|
|
17
|
+
import { a as Qo } from "../.chunks/Portal.js";
|
|
18
|
+
import { u as So } from "../.chunks/useControlled.js";
|
|
19
|
+
import { b as so, s as Zo, u as et } from "../.chunks/TransitionGroupContext.js";
|
|
20
|
+
import { i as ot } from "../.chunks/integerPropType.js";
|
|
21
|
+
function tt(e, n, a, i, g) {
|
|
22
22
|
if (process.env.NODE_ENV === "production")
|
|
23
23
|
return null;
|
|
24
24
|
const h = g || n;
|
|
25
25
|
return typeof e[n] < "u" ? new Error(`The prop \`${h}\` is not supported. Please remove it.`) : null;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
const n =
|
|
29
|
-
return
|
|
27
|
+
const nt = (e) => {
|
|
28
|
+
const n = m.useRef({});
|
|
29
|
+
return m.useEffect(() => {
|
|
30
30
|
n.current = e;
|
|
31
31
|
}), n.current;
|
|
32
32
|
};
|
|
33
|
-
function
|
|
33
|
+
function Eo(e) {
|
|
34
34
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function rt(e = {}) {
|
|
37
37
|
const {
|
|
38
38
|
ignoreAccents: n = !0,
|
|
39
39
|
ignoreCase: a = !0,
|
|
@@ -43,26 +43,26 @@ function at(e = {}) {
|
|
|
43
43
|
trim: x = !1
|
|
44
44
|
} = e;
|
|
45
45
|
return (y, {
|
|
46
|
-
inputValue:
|
|
47
|
-
getOptionLabel:
|
|
46
|
+
inputValue: w,
|
|
47
|
+
getOptionLabel: b
|
|
48
48
|
}) => {
|
|
49
|
-
let
|
|
50
|
-
a && (
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
return a && (
|
|
49
|
+
let P = x ? w.trim() : w;
|
|
50
|
+
a && (P = P.toLowerCase()), n && (P = Eo(P));
|
|
51
|
+
const R = P ? y.filter((U) => {
|
|
52
|
+
let L = (h || b)(U);
|
|
53
|
+
return a && (L = L.toLowerCase()), n && (L = Eo(L)), g === "start" ? L.startsWith(P) : L.includes(P);
|
|
54
54
|
}) : y;
|
|
55
|
-
return typeof i == "number" ?
|
|
55
|
+
return typeof i == "number" ? R.slice(0, i) : R;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const at = rt(), zo = 5, lt = (e) => {
|
|
59
59
|
var n;
|
|
60
60
|
return e.current !== null && ((n = e.current.parentElement) == null ? void 0 : n.contains(document.activeElement));
|
|
61
|
-
},
|
|
62
|
-
function
|
|
61
|
+
}, it = [];
|
|
62
|
+
function st(e) {
|
|
63
63
|
const {
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
65
|
-
unstable_isActiveElementInListbox: n =
|
|
65
|
+
unstable_isActiveElementInListbox: n = lt,
|
|
66
66
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
67
67
|
unstable_classNamePrefix: a = "Mui",
|
|
68
68
|
autoComplete: i = !1,
|
|
@@ -70,211 +70,211 @@ function pt(e) {
|
|
|
70
70
|
autoSelect: h = !1,
|
|
71
71
|
blurOnSelect: x = !1,
|
|
72
72
|
clearOnBlur: y = !e.freeSolo,
|
|
73
|
-
clearOnEscape:
|
|
74
|
-
componentName:
|
|
75
|
-
defaultValue:
|
|
76
|
-
disableClearable:
|
|
77
|
-
disableCloseOnSelect:
|
|
78
|
-
disabled:
|
|
79
|
-
disabledItemsFocusable:
|
|
80
|
-
disableListWrap:
|
|
81
|
-
filterOptions:
|
|
82
|
-
filterSelectedOptions:
|
|
83
|
-
freeSolo:
|
|
84
|
-
getOptionDisabled:
|
|
85
|
-
getOptionKey:
|
|
86
|
-
getOptionLabel:
|
|
87
|
-
groupBy:
|
|
88
|
-
handleHomeEndKeys:
|
|
89
|
-
id:
|
|
90
|
-
includeInputInList:
|
|
91
|
-
inputValue:
|
|
92
|
-
isOptionEqualToValue:
|
|
93
|
-
multiple:
|
|
94
|
-
onChange:
|
|
95
|
-
onClose:
|
|
96
|
-
onHighlightChange:
|
|
97
|
-
onInputChange:
|
|
98
|
-
onOpen:
|
|
99
|
-
open:
|
|
100
|
-
openOnFocus:
|
|
73
|
+
clearOnEscape: w = !1,
|
|
74
|
+
componentName: b = "useAutocomplete",
|
|
75
|
+
defaultValue: P = e.multiple ? it : null,
|
|
76
|
+
disableClearable: R = !1,
|
|
77
|
+
disableCloseOnSelect: U = !1,
|
|
78
|
+
disabled: L,
|
|
79
|
+
disabledItemsFocusable: T = !1,
|
|
80
|
+
disableListWrap: N = !1,
|
|
81
|
+
filterOptions: te = at,
|
|
82
|
+
filterSelectedOptions: he = !1,
|
|
83
|
+
freeSolo: se = !1,
|
|
84
|
+
getOptionDisabled: W,
|
|
85
|
+
getOptionKey: ye,
|
|
86
|
+
getOptionLabel: De = (r) => r.label ?? r,
|
|
87
|
+
groupBy: ne,
|
|
88
|
+
handleHomeEndKeys: Ne = !e.freeSolo,
|
|
89
|
+
id: Ee,
|
|
90
|
+
includeInputInList: fe = !1,
|
|
91
|
+
inputValue: ve,
|
|
92
|
+
isOptionEqualToValue: K = (r, t) => r === t,
|
|
93
|
+
multiple: I = !1,
|
|
94
|
+
onChange: ge,
|
|
95
|
+
onClose: Y,
|
|
96
|
+
onHighlightChange: xe,
|
|
97
|
+
onInputChange: J,
|
|
98
|
+
onOpen: pe,
|
|
99
|
+
open: Ie,
|
|
100
|
+
openOnFocus: _ = !1,
|
|
101
101
|
options: Ro,
|
|
102
102
|
readOnly: Ce = !1,
|
|
103
|
-
selectOnFocus:
|
|
104
|
-
value:
|
|
105
|
-
} = e,
|
|
106
|
-
let
|
|
107
|
-
|
|
108
|
-
const t =
|
|
103
|
+
selectOnFocus: ze = !e.freeSolo,
|
|
104
|
+
value: bo
|
|
105
|
+
} = e, H = Qo(Ee);
|
|
106
|
+
let B = De;
|
|
107
|
+
B = (r) => {
|
|
108
|
+
const t = De(r);
|
|
109
109
|
if (typeof t != "string") {
|
|
110
110
|
if (process.env.NODE_ENV !== "production") {
|
|
111
111
|
const l = t === void 0 ? "undefined" : `${typeof t} (${t})`;
|
|
112
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
112
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${b} returned ${l} instead of a string for ${JSON.stringify(r)}.`);
|
|
113
113
|
}
|
|
114
114
|
return String(t);
|
|
115
115
|
}
|
|
116
116
|
return t;
|
|
117
117
|
};
|
|
118
|
-
const
|
|
119
|
-
controlled:
|
|
120
|
-
default:
|
|
121
|
-
name:
|
|
122
|
-
}), [
|
|
123
|
-
controlled:
|
|
118
|
+
const Ve = m.useRef(!1), Fe = m.useRef(!0), M = m.useRef(null), q = m.useRef(null), [je, Lo] = m.useState(null), [G, Xe] = m.useState(-1), mo = g ? 0 : -1, E = m.useRef(mo), [s, Ao] = So({
|
|
119
|
+
controlled: bo,
|
|
120
|
+
default: P,
|
|
121
|
+
name: b
|
|
122
|
+
}), [O, $e] = So({
|
|
123
|
+
controlled: ve,
|
|
124
124
|
default: "",
|
|
125
|
-
name:
|
|
125
|
+
name: b,
|
|
126
126
|
state: "inputValue"
|
|
127
|
-
}), [
|
|
128
|
-
if (!(
|
|
127
|
+
}), [Oe, He] = m.useState(!1), we = m.useCallback((r, t, l) => {
|
|
128
|
+
if (!(I ? s.length < t.length : t !== null) && !y)
|
|
129
129
|
return;
|
|
130
130
|
let c;
|
|
131
|
-
if (
|
|
131
|
+
if (I)
|
|
132
132
|
c = "";
|
|
133
133
|
else if (t == null)
|
|
134
134
|
c = "";
|
|
135
135
|
else {
|
|
136
|
-
const
|
|
137
|
-
c = typeof
|
|
136
|
+
const $ = B(t);
|
|
137
|
+
c = typeof $ == "string" ? $ : "";
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
}, [
|
|
141
|
-
controlled:
|
|
139
|
+
O !== c && ($e(c), J && J(r, c, l));
|
|
140
|
+
}, [B, O, I, J, $e, y, s]), [ce, Qe] = So({
|
|
141
|
+
controlled: Ie,
|
|
142
142
|
default: !1,
|
|
143
|
-
name:
|
|
143
|
+
name: b,
|
|
144
144
|
state: "open"
|
|
145
|
-
}), [Ze,
|
|
146
|
-
Ro.filter((r) => !(
|
|
145
|
+
}), [Ze, ho] = m.useState(!0), Se = !I && s != null && O === B(s), F = ce && !Ce, k = F ? te(
|
|
146
|
+
Ro.filter((r) => !(he && (I ? s : [s]).some((t) => t !== null && K(r, t)))),
|
|
147
147
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
148
148
|
// i.e. the filter predicate always returns true
|
|
149
149
|
{
|
|
150
|
-
inputValue:
|
|
151
|
-
getOptionLabel:
|
|
150
|
+
inputValue: Se && Ze ? "" : O,
|
|
151
|
+
getOptionLabel: B
|
|
152
152
|
}
|
|
153
|
-
) : [],
|
|
153
|
+
) : [], Z = nt({
|
|
154
154
|
filteredOptions: k,
|
|
155
155
|
value: s,
|
|
156
|
-
inputValue:
|
|
156
|
+
inputValue: O
|
|
157
157
|
});
|
|
158
|
-
|
|
159
|
-
const r = s !==
|
|
160
|
-
|
|
161
|
-
}, [s,
|
|
162
|
-
const
|
|
163
|
-
r === -1 ?
|
|
158
|
+
m.useEffect(() => {
|
|
159
|
+
const r = s !== Z.value;
|
|
160
|
+
Oe && !r || se && !r || we(null, s, "reset");
|
|
161
|
+
}, [s, we, Oe, Z.value, se]);
|
|
162
|
+
const Ue = ce && k.length > 0 && !Ce, Pe = so((r) => {
|
|
163
|
+
r === -1 ? M.current.focus() : je.querySelector(`[data-tag-index="${r}"]`).focus();
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}, [s,
|
|
165
|
+
m.useEffect(() => {
|
|
166
|
+
I && G > s.length - 1 && (Xe(-1), Pe(-1));
|
|
167
|
+
}, [s, I, G, Pe]);
|
|
168
168
|
function eo(r, t) {
|
|
169
|
-
if (!
|
|
169
|
+
if (!q.current || r < 0 || r >= k.length)
|
|
170
170
|
return -1;
|
|
171
171
|
let l = r;
|
|
172
172
|
for (; ; ) {
|
|
173
|
-
const p =
|
|
173
|
+
const p = q.current.querySelector(`[data-option-index="${l}"]`), c = T ? !1 : !p || p.disabled || p.getAttribute("aria-disabled") === "true";
|
|
174
174
|
if (p && p.hasAttribute("tabindex") && !c)
|
|
175
175
|
return l;
|
|
176
176
|
if (t === "next" ? l = (l + 1) % k.length : l = (l - 1 + k.length) % k.length, l === r)
|
|
177
177
|
return -1;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const re = so(({
|
|
181
181
|
event: r,
|
|
182
182
|
index: t,
|
|
183
183
|
reason: l = "auto"
|
|
184
184
|
}) => {
|
|
185
|
-
if (
|
|
185
|
+
if (E.current = t, t === -1 ? M.current.removeAttribute("aria-activedescendant") : M.current.setAttribute("aria-activedescendant", `${H}-option-${t}`), xe && xe(r, t === -1 ? null : k[t], l), !q.current)
|
|
186
186
|
return;
|
|
187
|
-
const p =
|
|
187
|
+
const p = q.current.querySelector(`[role="option"].${a}-focused`);
|
|
188
188
|
p && (p.classList.remove(`${a}-focused`), p.classList.remove(`${a}-focusVisible`));
|
|
189
|
-
let c =
|
|
190
|
-
if (
|
|
189
|
+
let c = q.current;
|
|
190
|
+
if (q.current.getAttribute("role") !== "listbox" && (c = q.current.parentElement.querySelector('[role="listbox"]')), !c)
|
|
191
191
|
return;
|
|
192
192
|
if (t === -1) {
|
|
193
193
|
c.scrollTop = 0;
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
Le >
|
|
196
|
+
const $ = q.current.querySelector(`[data-option-index="${t}"]`);
|
|
197
|
+
if ($ && ($.classList.add(`${a}-focused`), l === "keyboard" && $.classList.add(`${a}-focusVisible`), c.scrollHeight > c.clientHeight && l !== "mouse" && l !== "touch")) {
|
|
198
|
+
const C = $, j = c.clientHeight + c.scrollTop, Le = C.offsetTop + C.offsetHeight;
|
|
199
|
+
Le > j ? c.scrollTop = Le - c.clientHeight : C.offsetTop - C.offsetHeight * (ne ? 1.3 : 0) < c.scrollTop && (c.scrollTop = C.offsetTop - C.offsetHeight * (ne ? 1.3 : 0));
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), X = so(({
|
|
202
202
|
event: r,
|
|
203
203
|
diff: t,
|
|
204
204
|
direction: l = "next",
|
|
205
205
|
reason: p = "auto"
|
|
206
206
|
}) => {
|
|
207
|
-
if (!
|
|
207
|
+
if (!F)
|
|
208
208
|
return;
|
|
209
|
-
const
|
|
210
|
-
const
|
|
209
|
+
const $ = eo((() => {
|
|
210
|
+
const C = k.length - 1;
|
|
211
211
|
if (t === "reset")
|
|
212
|
-
return
|
|
212
|
+
return mo;
|
|
213
213
|
if (t === "start")
|
|
214
214
|
return 0;
|
|
215
215
|
if (t === "end")
|
|
216
|
-
return
|
|
217
|
-
const
|
|
218
|
-
return
|
|
216
|
+
return C;
|
|
217
|
+
const j = E.current + t;
|
|
218
|
+
return j < 0 ? j === -1 && fe ? -1 : N && E.current !== -1 || Math.abs(t) > 1 ? 0 : C : j > C ? j === C + 1 && fe ? -1 : N || Math.abs(t) > 1 ? C : 0 : j;
|
|
219
219
|
})(), l);
|
|
220
|
-
if (
|
|
221
|
-
index:
|
|
220
|
+
if (re({
|
|
221
|
+
index: $,
|
|
222
222
|
reason: p,
|
|
223
223
|
event: r
|
|
224
224
|
}), i && t !== "reset")
|
|
225
|
-
if (
|
|
226
|
-
|
|
225
|
+
if ($ === -1)
|
|
226
|
+
M.current.value = O;
|
|
227
227
|
else {
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
const C = B(k[$]);
|
|
229
|
+
M.current.value = C, C.toLowerCase().indexOf(O.toLowerCase()) === 0 && O.length > 0 && M.current.setSelectionRange(O.length, C.length);
|
|
230
230
|
}
|
|
231
|
-
}),
|
|
231
|
+
}), yo = () => {
|
|
232
232
|
const r = (t, l) => {
|
|
233
|
-
const p = t ?
|
|
233
|
+
const p = t ? B(t) : "", c = l ? B(l) : "";
|
|
234
234
|
return p === c;
|
|
235
235
|
};
|
|
236
|
-
if (
|
|
237
|
-
const t =
|
|
236
|
+
if (E.current !== -1 && Z.filteredOptions && Z.filteredOptions.length !== k.length && Z.inputValue === O && (I ? s.length === Z.value.length && Z.value.every((t, l) => B(s[l]) === B(t)) : r(Z.value, s))) {
|
|
237
|
+
const t = Z.filteredOptions[E.current];
|
|
238
238
|
if (t)
|
|
239
|
-
return k.findIndex((l) =>
|
|
239
|
+
return k.findIndex((l) => B(l) === B(t));
|
|
240
240
|
}
|
|
241
241
|
return -1;
|
|
242
|
-
},
|
|
243
|
-
if (!
|
|
242
|
+
}, We = m.useCallback(() => {
|
|
243
|
+
if (!F)
|
|
244
244
|
return;
|
|
245
|
-
const r =
|
|
245
|
+
const r = yo();
|
|
246
246
|
if (r !== -1) {
|
|
247
|
-
|
|
247
|
+
E.current = r;
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
const t =
|
|
250
|
+
const t = I ? s[0] : s;
|
|
251
251
|
if (k.length === 0 || t == null) {
|
|
252
|
-
|
|
252
|
+
X({
|
|
253
253
|
diff: "reset"
|
|
254
254
|
});
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
257
|
+
if (q.current) {
|
|
258
258
|
if (t != null) {
|
|
259
|
-
const l = k[
|
|
260
|
-
if (
|
|
259
|
+
const l = k[E.current];
|
|
260
|
+
if (I && l && s.findIndex((c) => K(l, c)) !== -1)
|
|
261
261
|
return;
|
|
262
|
-
const p = k.findIndex((c) =>
|
|
263
|
-
p === -1 ?
|
|
262
|
+
const p = k.findIndex((c) => K(c, t));
|
|
263
|
+
p === -1 ? X({
|
|
264
264
|
diff: "reset"
|
|
265
|
-
}) :
|
|
265
|
+
}) : re({
|
|
266
266
|
index: p
|
|
267
267
|
});
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
if (
|
|
271
|
-
|
|
270
|
+
if (E.current >= k.length - 1) {
|
|
271
|
+
re({
|
|
272
272
|
index: k.length - 1
|
|
273
273
|
});
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
|
-
|
|
277
|
-
index:
|
|
276
|
+
re({
|
|
277
|
+
index: E.current
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
}, [
|
|
@@ -282,76 +282,76 @@ function pt(e) {
|
|
|
282
282
|
k.length,
|
|
283
283
|
// Don't sync the highlighted index with the value when multiple
|
|
284
284
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
]),
|
|
293
|
-
|
|
285
|
+
I ? !1 : s,
|
|
286
|
+
he,
|
|
287
|
+
X,
|
|
288
|
+
re,
|
|
289
|
+
F,
|
|
290
|
+
O,
|
|
291
|
+
I
|
|
292
|
+
]), vo = so((r) => {
|
|
293
|
+
Zo(q, r), r && We();
|
|
294
294
|
});
|
|
295
|
-
process.env.NODE_ENV !== "production" &&
|
|
296
|
-
(!
|
|
297
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
295
|
+
process.env.NODE_ENV !== "production" && m.useEffect(() => {
|
|
296
|
+
(!M.current || M.current.nodeName !== "INPUT") && (M.current && M.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${b} 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(`
|
|
297
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${M.current} while an HTMLInputElement was expected.`, `Instead, ${b} expects an input element.`, "", b === "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(`
|
|
298
298
|
`)));
|
|
299
|
-
}, [
|
|
300
|
-
|
|
301
|
-
}, [
|
|
302
|
-
const
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
if (
|
|
308
|
-
if (s.length === t.length && s.every((c,
|
|
299
|
+
}, [b]), m.useEffect(() => {
|
|
300
|
+
We();
|
|
301
|
+
}, [We]);
|
|
302
|
+
const ae = (r) => {
|
|
303
|
+
ce || (Qe(!0), ho(!0), pe && pe(r));
|
|
304
|
+
}, le = (r, t) => {
|
|
305
|
+
ce && (Qe(!1), Y && Y(r, t));
|
|
306
|
+
}, ue = (r, t, l, p) => {
|
|
307
|
+
if (I) {
|
|
308
|
+
if (s.length === t.length && s.every((c, $) => c === t[$]))
|
|
309
309
|
return;
|
|
310
310
|
} else if (s === t)
|
|
311
311
|
return;
|
|
312
|
-
|
|
313
|
-
},
|
|
314
|
-
let c = l,
|
|
315
|
-
if (
|
|
316
|
-
if (
|
|
317
|
-
const
|
|
318
|
-
|
|
312
|
+
ge && ge(r, t, l, p), Ao(t);
|
|
313
|
+
}, Te = m.useRef(!1), be = (r, t, l = "selectOption", p = "options") => {
|
|
314
|
+
let c = l, $ = t;
|
|
315
|
+
if (I) {
|
|
316
|
+
if ($ = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
317
|
+
const j = $.filter((Le) => K(t, Le));
|
|
318
|
+
j.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${b} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${j.length} matches.`].join(`
|
|
319
319
|
`));
|
|
320
320
|
}
|
|
321
|
-
const
|
|
322
|
-
|
|
321
|
+
const C = $.findIndex((j) => K(t, j));
|
|
322
|
+
C === -1 ? $.push(t) : p !== "freeSolo" && ($.splice(C, 1), c = "removeOption");
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
we(r, $, c), ue(r, $, c, {
|
|
325
325
|
option: t
|
|
326
|
-
}), !
|
|
326
|
+
}), !U && (!r || !r.ctrlKey && !r.metaKey) && le(r, c), (x === !0 || x === "touch" && Te.current || x === "mouse" && !Te.current) && M.current.blur();
|
|
327
327
|
};
|
|
328
|
-
function
|
|
328
|
+
function ke(r, t) {
|
|
329
329
|
if (r === -1)
|
|
330
330
|
return -1;
|
|
331
331
|
let l = r;
|
|
332
332
|
for (; ; ) {
|
|
333
333
|
if (t === "next" && l === s.length || t === "previous" && l === -1)
|
|
334
334
|
return -1;
|
|
335
|
-
const p =
|
|
335
|
+
const p = je.querySelector(`[data-tag-index="${l}"]`);
|
|
336
336
|
if (!p || !p.hasAttribute("tabindex") || p.disabled || p.getAttribute("aria-disabled") === "true")
|
|
337
337
|
l += t === "next" ? 1 : -1;
|
|
338
338
|
else
|
|
339
339
|
return l;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
const
|
|
343
|
-
if (
|
|
342
|
+
const Ke = (r, t) => {
|
|
343
|
+
if (!I)
|
|
344
344
|
return;
|
|
345
|
-
|
|
345
|
+
O === "" && le(r, "toggleInput");
|
|
346
346
|
let l = G;
|
|
347
|
-
G === -1 ?
|
|
347
|
+
G === -1 ? O === "" && t === "previous" && (l = s.length - 1) : (l += t === "next" ? 1 : -1, l < 0 && (l = 0), l === s.length && (l = -1)), l = ke(l, t), Xe(l), Pe(l);
|
|
348
348
|
}, oo = (r) => {
|
|
349
|
-
|
|
350
|
-
},
|
|
351
|
-
if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1),
|
|
349
|
+
Ve.current = !0, $e(""), J && J(r, "", "clear"), ue(r, I ? [] : null, "clear");
|
|
350
|
+
}, Me = (r) => (t) => {
|
|
351
|
+
if (r.onKeyDown && r.onKeyDown(t), !t.defaultMuiPrevented && (G !== -1 && !["ArrowLeft", "ArrowRight"].includes(t.key) && (Xe(-1), Pe(-1)), t.which !== 229))
|
|
352
352
|
switch (t.key) {
|
|
353
353
|
case "Home":
|
|
354
|
-
|
|
354
|
+
F && Ne && (t.preventDefault(), X({
|
|
355
355
|
diff: "start",
|
|
356
356
|
direction: "next",
|
|
357
357
|
reason: "keyboard",
|
|
@@ -359,7 +359,7 @@ function pt(e) {
|
|
|
359
359
|
}));
|
|
360
360
|
break;
|
|
361
361
|
case "End":
|
|
362
|
-
|
|
362
|
+
F && Ne && (t.preventDefault(), X({
|
|
363
363
|
diff: "end",
|
|
364
364
|
direction: "previous",
|
|
365
365
|
reason: "keyboard",
|
|
@@ -367,161 +367,161 @@ function pt(e) {
|
|
|
367
367
|
}));
|
|
368
368
|
break;
|
|
369
369
|
case "PageUp":
|
|
370
|
-
t.preventDefault(),
|
|
371
|
-
diff: -
|
|
370
|
+
t.preventDefault(), X({
|
|
371
|
+
diff: -zo,
|
|
372
372
|
direction: "previous",
|
|
373
373
|
reason: "keyboard",
|
|
374
374
|
event: t
|
|
375
|
-
}),
|
|
375
|
+
}), ae(t);
|
|
376
376
|
break;
|
|
377
377
|
case "PageDown":
|
|
378
|
-
t.preventDefault(),
|
|
379
|
-
diff:
|
|
378
|
+
t.preventDefault(), X({
|
|
379
|
+
diff: zo,
|
|
380
380
|
direction: "next",
|
|
381
381
|
reason: "keyboard",
|
|
382
382
|
event: t
|
|
383
|
-
}),
|
|
383
|
+
}), ae(t);
|
|
384
384
|
break;
|
|
385
385
|
case "ArrowDown":
|
|
386
|
-
t.preventDefault(),
|
|
386
|
+
t.preventDefault(), X({
|
|
387
387
|
diff: 1,
|
|
388
388
|
direction: "next",
|
|
389
389
|
reason: "keyboard",
|
|
390
390
|
event: t
|
|
391
|
-
}),
|
|
391
|
+
}), ae(t);
|
|
392
392
|
break;
|
|
393
393
|
case "ArrowUp":
|
|
394
|
-
t.preventDefault(),
|
|
394
|
+
t.preventDefault(), X({
|
|
395
395
|
diff: -1,
|
|
396
396
|
direction: "previous",
|
|
397
397
|
reason: "keyboard",
|
|
398
398
|
event: t
|
|
399
|
-
}),
|
|
399
|
+
}), ae(t);
|
|
400
400
|
break;
|
|
401
401
|
case "ArrowLeft":
|
|
402
|
-
|
|
402
|
+
Ke(t, "previous");
|
|
403
403
|
break;
|
|
404
404
|
case "ArrowRight":
|
|
405
|
-
|
|
405
|
+
Ke(t, "next");
|
|
406
406
|
break;
|
|
407
407
|
case "Enter":
|
|
408
|
-
if (
|
|
409
|
-
const l = k[
|
|
408
|
+
if (E.current !== -1 && F) {
|
|
409
|
+
const l = k[E.current], p = W ? W(l) : !1;
|
|
410
410
|
if (t.preventDefault(), p)
|
|
411
411
|
return;
|
|
412
|
-
|
|
413
|
-
} else
|
|
412
|
+
be(t, l, "selectOption"), i && M.current.setSelectionRange(M.current.value.length, M.current.value.length);
|
|
413
|
+
} else se && O !== "" && Se === !1 && (I && t.preventDefault(), be(t, O, "createOption", "freeSolo"));
|
|
414
414
|
break;
|
|
415
415
|
case "Escape":
|
|
416
|
-
|
|
416
|
+
F ? (t.preventDefault(), t.stopPropagation(), le(t, "escape")) : w && (O !== "" || I && s.length > 0) && (t.preventDefault(), t.stopPropagation(), oo(t));
|
|
417
417
|
break;
|
|
418
418
|
case "Backspace":
|
|
419
|
-
if (
|
|
419
|
+
if (I && !Ce && O === "" && s.length > 0) {
|
|
420
420
|
const l = G === -1 ? s.length - 1 : G, p = s.slice();
|
|
421
|
-
p.splice(l, 1),
|
|
421
|
+
p.splice(l, 1), ue(t, p, "removeOption", {
|
|
422
422
|
option: s[l]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
425
|
break;
|
|
426
426
|
case "Delete":
|
|
427
|
-
if (
|
|
427
|
+
if (I && !Ce && O === "" && s.length > 0 && G !== -1) {
|
|
428
428
|
const l = G, p = s.slice();
|
|
429
|
-
p.splice(l, 1),
|
|
429
|
+
p.splice(l, 1), ue(t, p, "removeOption", {
|
|
430
430
|
option: s[l]
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
|
-
},
|
|
436
|
-
He(!0),
|
|
435
|
+
}, xo = (r) => {
|
|
436
|
+
He(!0), _ && !Ve.current && ae(r);
|
|
437
437
|
}, to = (r) => {
|
|
438
|
-
if (n(
|
|
439
|
-
|
|
438
|
+
if (n(q)) {
|
|
439
|
+
M.current.focus();
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
|
-
He(!1),
|
|
442
|
+
He(!1), Fe.current = !0, Ve.current = !1, h && E.current !== -1 && F ? be(r, k[E.current], "blur") : h && se && O !== "" ? be(r, O, "blur", "freeSolo") : y && we(r, s, "blur"), le(r, "blur");
|
|
443
443
|
}, Re = (r) => {
|
|
444
444
|
const t = r.target.value;
|
|
445
|
-
|
|
446
|
-
},
|
|
445
|
+
O !== t && ($e(t), ho(!1), J && J(r, t, "input")), t === "" ? !R && !I && ue(r, null, "clear") : ae(r);
|
|
446
|
+
}, qe = (r) => {
|
|
447
447
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
448
|
-
|
|
448
|
+
E.current !== t && re({
|
|
449
449
|
event: r,
|
|
450
450
|
index: t,
|
|
451
451
|
reason: "mouse"
|
|
452
452
|
});
|
|
453
|
-
},
|
|
454
|
-
|
|
453
|
+
}, Ge = (r) => {
|
|
454
|
+
re({
|
|
455
455
|
event: r,
|
|
456
456
|
index: Number(r.currentTarget.getAttribute("data-option-index")),
|
|
457
457
|
reason: "touch"
|
|
458
|
-
}),
|
|
459
|
-
},
|
|
458
|
+
}), Te.current = !0;
|
|
459
|
+
}, Io = (r) => {
|
|
460
460
|
const t = Number(r.currentTarget.getAttribute("data-option-index"));
|
|
461
|
-
|
|
461
|
+
be(r, k[t], "selectOption"), Te.current = !1;
|
|
462
462
|
}, Co = (r) => (t) => {
|
|
463
463
|
const l = s.slice();
|
|
464
|
-
l.splice(r, 1),
|
|
464
|
+
l.splice(r, 1), ue(t, l, "removeOption", {
|
|
465
465
|
option: s[r]
|
|
466
466
|
});
|
|
467
467
|
}, no = (r) => {
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !==
|
|
468
|
+
ce ? le(r, "toggleInput") : ae(r);
|
|
469
|
+
}, _o = (r) => {
|
|
470
|
+
r.currentTarget.contains(r.target) && r.target.getAttribute("id") !== H && r.preventDefault();
|
|
471
471
|
}, Ye = (r) => {
|
|
472
|
-
r.currentTarget.contains(r.target) && (
|
|
473
|
-
},
|
|
474
|
-
!
|
|
472
|
+
r.currentTarget.contains(r.target) && (M.current.focus(), ze && Fe.current && M.current.selectionEnd - M.current.selectionStart === 0 && M.current.select(), Fe.current = !1);
|
|
473
|
+
}, D = (r) => {
|
|
474
|
+
!L && (O === "" || !ce) && (no(r), r.stopPropagation());
|
|
475
475
|
};
|
|
476
|
-
let
|
|
477
|
-
|
|
478
|
-
let
|
|
479
|
-
if (
|
|
476
|
+
let A = se && O.length > 0;
|
|
477
|
+
A = A || (I ? s.length > 0 : s !== null);
|
|
478
|
+
let ie = k;
|
|
479
|
+
if (ne) {
|
|
480
480
|
const r = /* @__PURE__ */ new Map();
|
|
481
481
|
let t = !1;
|
|
482
|
-
|
|
483
|
-
const
|
|
484
|
-
return l.length > 0 && l[l.length - 1].group ===
|
|
482
|
+
ie = k.reduce((l, p, c) => {
|
|
483
|
+
const $ = ne(p);
|
|
484
|
+
return l.length > 0 && l[l.length - 1].group === $ ? l[l.length - 1].options.push(p) : (process.env.NODE_ENV !== "production" && (r.get($) && !t && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${b} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), t = !0), r.set($, !0)), l.push({
|
|
485
485
|
key: c,
|
|
486
486
|
index: c,
|
|
487
|
-
group:
|
|
487
|
+
group: $,
|
|
488
488
|
options: [p]
|
|
489
489
|
})), l;
|
|
490
490
|
}, []);
|
|
491
491
|
}
|
|
492
|
-
return
|
|
492
|
+
return L && Oe && to(), {
|
|
493
493
|
getRootProps: (r = {}) => ({
|
|
494
|
-
"aria-owns":
|
|
494
|
+
"aria-owns": Ue ? `${H}-listbox` : null,
|
|
495
495
|
...r,
|
|
496
|
-
onKeyDown:
|
|
497
|
-
onMouseDown:
|
|
496
|
+
onKeyDown: Me(r),
|
|
497
|
+
onMouseDown: _o,
|
|
498
498
|
onClick: Ye
|
|
499
499
|
}),
|
|
500
500
|
getInputLabelProps: () => ({
|
|
501
|
-
id: `${
|
|
502
|
-
htmlFor:
|
|
501
|
+
id: `${H}-label`,
|
|
502
|
+
htmlFor: H
|
|
503
503
|
}),
|
|
504
504
|
getInputProps: () => ({
|
|
505
|
-
id:
|
|
506
|
-
value:
|
|
505
|
+
id: H,
|
|
506
|
+
value: O,
|
|
507
507
|
onBlur: to,
|
|
508
|
-
onFocus:
|
|
508
|
+
onFocus: xo,
|
|
509
509
|
onChange: Re,
|
|
510
|
-
onMouseDown:
|
|
510
|
+
onMouseDown: D,
|
|
511
511
|
// if open then this is handled imperatively so don't let react override
|
|
512
512
|
// only have an opinion about this when closed
|
|
513
|
-
"aria-activedescendant":
|
|
513
|
+
"aria-activedescendant": F ? "" : null,
|
|
514
514
|
"aria-autocomplete": i ? "both" : "list",
|
|
515
|
-
"aria-controls":
|
|
516
|
-
"aria-expanded":
|
|
515
|
+
"aria-controls": Ue ? `${H}-listbox` : void 0,
|
|
516
|
+
"aria-expanded": Ue,
|
|
517
517
|
// Disable browser's suggestion that might overlap with the popup.
|
|
518
518
|
// Handle autocomplete but not autofill.
|
|
519
519
|
autoComplete: "off",
|
|
520
|
-
ref:
|
|
520
|
+
ref: M,
|
|
521
521
|
autoCapitalize: "none",
|
|
522
522
|
spellCheck: "false",
|
|
523
523
|
role: "combobox",
|
|
524
|
-
disabled:
|
|
524
|
+
disabled: L
|
|
525
525
|
}),
|
|
526
526
|
getClearProps: () => ({
|
|
527
527
|
tabIndex: -1,
|
|
@@ -546,9 +546,9 @@ function pt(e) {
|
|
|
546
546
|
}),
|
|
547
547
|
getListboxProps: () => ({
|
|
548
548
|
role: "listbox",
|
|
549
|
-
id: `${
|
|
550
|
-
"aria-labelledby": `${
|
|
551
|
-
ref:
|
|
549
|
+
id: `${H}-listbox`,
|
|
550
|
+
"aria-labelledby": `${H}-label`,
|
|
551
|
+
ref: vo,
|
|
552
552
|
onMouseDown: (r) => {
|
|
553
553
|
r.preventDefault();
|
|
554
554
|
}
|
|
@@ -557,38 +557,38 @@ function pt(e) {
|
|
|
557
557
|
index: r,
|
|
558
558
|
option: t
|
|
559
559
|
}) => {
|
|
560
|
-
const l = (
|
|
560
|
+
const l = (I ? s : [s]).some((c) => c != null && K(t, c)), p = W ? W(t) : !1;
|
|
561
561
|
return {
|
|
562
|
-
key: (
|
|
562
|
+
key: (ye == null ? void 0 : ye(t)) ?? B(t),
|
|
563
563
|
tabIndex: -1,
|
|
564
564
|
role: "option",
|
|
565
|
-
id: `${
|
|
566
|
-
onMouseMove:
|
|
567
|
-
onClick:
|
|
568
|
-
onTouchStart:
|
|
565
|
+
id: `${H}-option-${r}`,
|
|
566
|
+
onMouseMove: qe,
|
|
567
|
+
onClick: Io,
|
|
568
|
+
onTouchStart: Ge,
|
|
569
569
|
"data-option-index": r,
|
|
570
570
|
"aria-disabled": p,
|
|
571
571
|
"aria-selected": l
|
|
572
572
|
};
|
|
573
573
|
},
|
|
574
|
-
id:
|
|
575
|
-
inputValue:
|
|
574
|
+
id: H,
|
|
575
|
+
inputValue: O,
|
|
576
576
|
value: s,
|
|
577
|
-
dirty:
|
|
578
|
-
expanded:
|
|
579
|
-
popupOpen:
|
|
580
|
-
focused:
|
|
581
|
-
anchorEl:
|
|
577
|
+
dirty: A,
|
|
578
|
+
expanded: F && je,
|
|
579
|
+
popupOpen: F,
|
|
580
|
+
focused: Oe || G !== -1,
|
|
581
|
+
anchorEl: je,
|
|
582
582
|
setAnchorEl: Lo,
|
|
583
583
|
focusedTag: G,
|
|
584
|
-
groupedOptions:
|
|
584
|
+
groupedOptions: ie
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
return
|
|
587
|
+
function pt(e) {
|
|
588
|
+
return co("MuiListSubheader", e);
|
|
589
589
|
}
|
|
590
|
-
|
|
591
|
-
const
|
|
590
|
+
uo("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
591
|
+
const ct = (e) => {
|
|
592
592
|
const {
|
|
593
593
|
classes: n,
|
|
594
594
|
color: a,
|
|
@@ -598,8 +598,8 @@ const ut = (e) => {
|
|
|
598
598
|
} = e, x = {
|
|
599
599
|
root: ["root", a !== "default" && `color${d(a)}`, !i && "gutters", g && "inset", !h && "sticky"]
|
|
600
600
|
};
|
|
601
|
-
return
|
|
602
|
-
},
|
|
601
|
+
return go(x, pt, n);
|
|
602
|
+
}, ut = V("li", {
|
|
603
603
|
name: "MuiListSubheader",
|
|
604
604
|
slot: "Root",
|
|
605
605
|
overridesResolver: (e, n) => {
|
|
@@ -608,7 +608,7 @@ const ut = (e) => {
|
|
|
608
608
|
} = e;
|
|
609
609
|
return [n.root, a.color !== "default" && n[`color${d(a.color)}`], !a.disableGutters && n.gutters, a.inset && n.inset, !a.disableSticky && n.sticky];
|
|
610
610
|
}
|
|
611
|
-
})(
|
|
611
|
+
})(oe(({
|
|
612
612
|
theme: e
|
|
613
613
|
}) => ({
|
|
614
614
|
boxSizing: "border-box",
|
|
@@ -658,8 +658,8 @@ const ut = (e) => {
|
|
|
658
658
|
backgroundColor: (e.vars || e).palette.background.paper
|
|
659
659
|
}
|
|
660
660
|
}]
|
|
661
|
-
}))),
|
|
662
|
-
const i =
|
|
661
|
+
}))), po = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
662
|
+
const i = fo({
|
|
663
663
|
props: n,
|
|
664
664
|
name: "MuiListSubheader"
|
|
665
665
|
}), {
|
|
@@ -667,27 +667,27 @@ const ut = (e) => {
|
|
|
667
667
|
color: h = "default",
|
|
668
668
|
component: x = "li",
|
|
669
669
|
disableGutters: y = !1,
|
|
670
|
-
disableSticky:
|
|
671
|
-
inset:
|
|
672
|
-
...
|
|
673
|
-
} = i,
|
|
670
|
+
disableSticky: w = !1,
|
|
671
|
+
inset: b = !1,
|
|
672
|
+
...P
|
|
673
|
+
} = i, R = {
|
|
674
674
|
...i,
|
|
675
675
|
color: h,
|
|
676
676
|
component: x,
|
|
677
677
|
disableGutters: y,
|
|
678
|
-
disableSticky:
|
|
679
|
-
inset:
|
|
680
|
-
},
|
|
681
|
-
return /* @__PURE__ */
|
|
678
|
+
disableSticky: w,
|
|
679
|
+
inset: b
|
|
680
|
+
}, U = ct(R);
|
|
681
|
+
return /* @__PURE__ */ S(ut, {
|
|
682
682
|
as: x,
|
|
683
|
-
className:
|
|
683
|
+
className: Q(U.root, g),
|
|
684
684
|
ref: a,
|
|
685
|
-
ownerState:
|
|
686
|
-
...
|
|
685
|
+
ownerState: R,
|
|
686
|
+
...P
|
|
687
687
|
});
|
|
688
688
|
});
|
|
689
|
-
|
|
690
|
-
process.env.NODE_ENV !== "production" && (
|
|
689
|
+
po && (po.muiSkipListHighlight = !0);
|
|
690
|
+
process.env.NODE_ENV !== "production" && (po.propTypes = {
|
|
691
691
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
692
692
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
693
693
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -734,10 +734,10 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
|
|
|
734
734
|
*/
|
|
735
735
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
736
736
|
});
|
|
737
|
-
function
|
|
738
|
-
return
|
|
737
|
+
function dt(e) {
|
|
738
|
+
return co("MuiIconButton", e);
|
|
739
739
|
}
|
|
740
|
-
const
|
|
740
|
+
const ft = uo("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), gt = (e) => {
|
|
741
741
|
const {
|
|
742
742
|
classes: n,
|
|
743
743
|
disabled: a,
|
|
@@ -747,8 +747,8 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
747
747
|
} = e, x = {
|
|
748
748
|
root: ["root", a && "disabled", i !== "default" && `color${d(i)}`, g && `edge${d(g)}`, `size${d(h)}`]
|
|
749
749
|
};
|
|
750
|
-
return
|
|
751
|
-
},
|
|
750
|
+
return go(x, dt, n);
|
|
751
|
+
}, bt = V(Po, {
|
|
752
752
|
name: "MuiIconButton",
|
|
753
753
|
slot: "Root",
|
|
754
754
|
overridesResolver: (e, n) => {
|
|
@@ -757,7 +757,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
757
757
|
} = e;
|
|
758
758
|
return [n.root, a.color !== "default" && n[`color${d(a.color)}`], a.edge && n[`edge${d(a.edge)}`], n[`size${d(a.size)}`]];
|
|
759
759
|
}
|
|
760
|
-
})(
|
|
760
|
+
})(oe(({
|
|
761
761
|
theme: e
|
|
762
762
|
}) => ({
|
|
763
763
|
textAlign: "center",
|
|
@@ -775,7 +775,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
775
775
|
},
|
|
776
776
|
style: {
|
|
777
777
|
"&:hover": {
|
|
778
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
778
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : z(e.palette.action.active, e.palette.action.hoverOpacity),
|
|
779
779
|
// Reset on touch devices, it doesn't add specificity
|
|
780
780
|
"@media (hover: none)": {
|
|
781
781
|
backgroundColor: "transparent"
|
|
@@ -813,7 +813,7 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
813
813
|
marginRight: -3
|
|
814
814
|
}
|
|
815
815
|
}]
|
|
816
|
-
})),
|
|
816
|
+
})), oe(({
|
|
817
817
|
theme: e
|
|
818
818
|
}) => ({
|
|
819
819
|
variants: [{
|
|
@@ -823,21 +823,21 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
823
823
|
style: {
|
|
824
824
|
color: "inherit"
|
|
825
825
|
}
|
|
826
|
-
}, ...Object.entries(e.palette).filter(
|
|
826
|
+
}, ...Object.entries(e.palette).filter(_e()).map(([n]) => ({
|
|
827
827
|
props: {
|
|
828
828
|
color: n
|
|
829
829
|
},
|
|
830
830
|
style: {
|
|
831
831
|
color: (e.vars || e).palette[n].main
|
|
832
832
|
}
|
|
833
|
-
})), ...Object.entries(e.palette).filter(
|
|
833
|
+
})), ...Object.entries(e.palette).filter(_e()).map(([n]) => ({
|
|
834
834
|
props: {
|
|
835
835
|
color: n,
|
|
836
836
|
disableRipple: !1
|
|
837
837
|
},
|
|
838
838
|
style: {
|
|
839
839
|
"&:hover": {
|
|
840
|
-
backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
840
|
+
backgroundColor: e.vars ? `rgba(${(e.vars || e).palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : z((e.vars || e).palette[n].main, e.palette.action.hoverOpacity),
|
|
841
841
|
// Reset on touch devices, it doesn't add specificity
|
|
842
842
|
"@media (hover: none)": {
|
|
843
843
|
backgroundColor: "transparent"
|
|
@@ -861,12 +861,12 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
861
861
|
fontSize: e.typography.pxToRem(28)
|
|
862
862
|
}
|
|
863
863
|
}],
|
|
864
|
-
[`&.${
|
|
864
|
+
[`&.${ft.disabled}`]: {
|
|
865
865
|
backgroundColor: "transparent",
|
|
866
866
|
color: (e.vars || e).palette.action.disabled
|
|
867
867
|
}
|
|
868
|
-
}))),
|
|
869
|
-
const i =
|
|
868
|
+
}))), Mo = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
869
|
+
const i = fo({
|
|
870
870
|
props: n,
|
|
871
871
|
name: "MuiIconButton"
|
|
872
872
|
}), {
|
|
@@ -874,33 +874,33 @@ const gt = co("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimar
|
|
|
874
874
|
children: h,
|
|
875
875
|
className: x,
|
|
876
876
|
color: y = "default",
|
|
877
|
-
disabled:
|
|
878
|
-
disableFocusRipple:
|
|
879
|
-
disableRipple:
|
|
880
|
-
size:
|
|
881
|
-
...
|
|
882
|
-
} = i,
|
|
877
|
+
disabled: w = !1,
|
|
878
|
+
disableFocusRipple: b = !1,
|
|
879
|
+
disableRipple: P = !1,
|
|
880
|
+
size: R = "medium",
|
|
881
|
+
...U
|
|
882
|
+
} = i, L = {
|
|
883
883
|
...i,
|
|
884
884
|
edge: g,
|
|
885
885
|
color: y,
|
|
886
|
-
disabled:
|
|
887
|
-
disableFocusRipple:
|
|
888
|
-
disableRipple:
|
|
889
|
-
size:
|
|
890
|
-
},
|
|
891
|
-
return /* @__PURE__ */
|
|
892
|
-
className:
|
|
886
|
+
disabled: w,
|
|
887
|
+
disableFocusRipple: b,
|
|
888
|
+
disableRipple: P,
|
|
889
|
+
size: R
|
|
890
|
+
}, T = gt(L);
|
|
891
|
+
return /* @__PURE__ */ S(bt, {
|
|
892
|
+
className: Q(T.root, x),
|
|
893
893
|
centerRipple: !0,
|
|
894
|
-
focusRipple: !
|
|
895
|
-
disabled:
|
|
896
|
-
disableRipple:
|
|
894
|
+
focusRipple: !b,
|
|
895
|
+
disabled: w,
|
|
896
|
+
disableRipple: P,
|
|
897
897
|
ref: a,
|
|
898
|
-
...
|
|
899
|
-
ownerState:
|
|
898
|
+
...U,
|
|
899
|
+
ownerState: L,
|
|
900
900
|
children: h
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
|
-
process.env.NODE_ENV !== "production" && (
|
|
903
|
+
process.env.NODE_ENV !== "production" && (Mo.propTypes = {
|
|
904
904
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
905
905
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
906
906
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -908,7 +908,7 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
|
908
908
|
/**
|
|
909
909
|
* The icon to display.
|
|
910
910
|
*/
|
|
911
|
-
children:
|
|
911
|
+
children: To(o.node, (e) => m.Children.toArray(e.children).some((a) => /* @__PURE__ */ m.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
912
912
|
`)) : null),
|
|
913
913
|
/**
|
|
914
914
|
* Override or extend the styles applied to the component.
|
|
@@ -962,13 +962,13 @@ process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
|
962
962
|
*/
|
|
963
963
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
964
964
|
});
|
|
965
|
-
const
|
|
965
|
+
const mt = Uo(/* @__PURE__ */ S("path", {
|
|
966
966
|
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"
|
|
967
967
|
}), "Cancel");
|
|
968
|
-
function
|
|
969
|
-
return
|
|
968
|
+
function ht(e) {
|
|
969
|
+
return co("MuiChip", e);
|
|
970
970
|
}
|
|
971
|
-
const f =
|
|
971
|
+
const f = uo("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) => {
|
|
972
972
|
const {
|
|
973
973
|
classes: n,
|
|
974
974
|
disabled: a,
|
|
@@ -977,16 +977,16 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
977
977
|
iconColor: h,
|
|
978
978
|
onDelete: x,
|
|
979
979
|
clickable: y,
|
|
980
|
-
variant:
|
|
981
|
-
} = e,
|
|
982
|
-
root: ["root",
|
|
980
|
+
variant: w
|
|
981
|
+
} = e, b = {
|
|
982
|
+
root: ["root", w, a && "disabled", `size${d(i)}`, `color${d(g)}`, y && "clickable", y && `clickableColor${d(g)}`, x && "deletable", x && `deletableColor${d(g)}`, `${w}${d(g)}`],
|
|
983
983
|
label: ["label", `label${d(i)}`],
|
|
984
984
|
avatar: ["avatar", `avatar${d(i)}`, `avatarColor${d(g)}`],
|
|
985
985
|
icon: ["icon", `icon${d(i)}`, `iconColor${d(h)}`],
|
|
986
|
-
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(
|
|
986
|
+
deleteIcon: ["deleteIcon", `deleteIcon${d(i)}`, `deleteIconColor${d(g)}`, `deleteIcon${d(w)}Color${d(g)}`]
|
|
987
987
|
};
|
|
988
|
-
return
|
|
989
|
-
},
|
|
988
|
+
return go(b, ht, n);
|
|
989
|
+
}, vt = V("div", {
|
|
990
990
|
name: "MuiChip",
|
|
991
991
|
slot: "Root",
|
|
992
992
|
overridesResolver: (e, n) => {
|
|
@@ -998,7 +998,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
998
998
|
clickable: h,
|
|
999
999
|
onDelete: x,
|
|
1000
1000
|
size: y,
|
|
1001
|
-
variant:
|
|
1001
|
+
variant: w
|
|
1002
1002
|
} = a;
|
|
1003
1003
|
return [{
|
|
1004
1004
|
[`& .${f.avatar}`]: n.avatar
|
|
@@ -1019,10 +1019,10 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1019
1019
|
}, {
|
|
1020
1020
|
[`& .${f.deleteIcon}`]: n[`deleteIconColor${d(i)}`]
|
|
1021
1021
|
}, {
|
|
1022
|
-
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(
|
|
1023
|
-
}, n.root, n[`size${d(y)}`], n[`color${d(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${d(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${d(i)}`], n[
|
|
1022
|
+
[`& .${f.deleteIcon}`]: n[`deleteIcon${d(w)}Color${d(i)}`]
|
|
1023
|
+
}, n.root, n[`size${d(y)}`], n[`color${d(i)}`], h && n.clickable, h && i !== "default" && n[`clickableColor${d(i)})`], x && n.deletable, x && i !== "default" && n[`deletableColor${d(i)}`], n[w], n[`${w}${d(i)}`]];
|
|
1024
1024
|
}
|
|
1025
|
-
})(
|
|
1025
|
+
})(oe(({
|
|
1026
1026
|
theme: e
|
|
1027
1027
|
}) => {
|
|
1028
1028
|
const n = e.palette.mode === "light" ? e.palette.grey[700] : e.palette.grey[300];
|
|
@@ -1083,12 +1083,12 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1083
1083
|
},
|
|
1084
1084
|
[`& .${f.deleteIcon}`]: {
|
|
1085
1085
|
WebkitTapHighlightColor: "transparent",
|
|
1086
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` :
|
|
1086
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.26)` : z(e.palette.text.primary, 0.26),
|
|
1087
1087
|
fontSize: 22,
|
|
1088
1088
|
cursor: "pointer",
|
|
1089
1089
|
margin: "0 5px 0 -6px",
|
|
1090
1090
|
"&:hover": {
|
|
1091
|
-
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` :
|
|
1091
|
+
color: e.vars ? `rgba(${e.vars.palette.text.primaryChannel} / 0.4)` : z(e.palette.text.primary, 0.4)
|
|
1092
1092
|
}
|
|
1093
1093
|
},
|
|
1094
1094
|
variants: [{
|
|
@@ -1108,7 +1108,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1108
1108
|
marginLeft: -4
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
}, ...Object.entries(e.palette).filter(
|
|
1111
|
+
}, ...Object.entries(e.palette).filter(_e(["contrastText"])).map(([a]) => ({
|
|
1112
1112
|
props: {
|
|
1113
1113
|
color: a
|
|
1114
1114
|
},
|
|
@@ -1116,7 +1116,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1116
1116
|
backgroundColor: (e.vars || e).palette[a].main,
|
|
1117
1117
|
color: (e.vars || e).palette[a].contrastText,
|
|
1118
1118
|
[`& .${f.deleteIcon}`]: {
|
|
1119
|
-
color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` :
|
|
1119
|
+
color: e.vars ? `rgba(${e.vars.palette[a].contrastTextChannel} / 0.7)` : z(e.palette[a].contrastText, 0.7),
|
|
1120
1120
|
"&:hover, &:active": {
|
|
1121
1121
|
color: (e.vars || e).palette[a].contrastText
|
|
1122
1122
|
}
|
|
@@ -1142,10 +1142,10 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1142
1142
|
},
|
|
1143
1143
|
style: {
|
|
1144
1144
|
[`&.${f.focusVisible}`]: {
|
|
1145
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1145
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
}, ...Object.entries(e.palette).filter(
|
|
1148
|
+
}, ...Object.entries(e.palette).filter(_e(["dark"])).map(([a]) => ({
|
|
1149
1149
|
props: {
|
|
1150
1150
|
color: a,
|
|
1151
1151
|
onDelete: !0
|
|
@@ -1164,16 +1164,16 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1164
1164
|
WebkitTapHighlightColor: "transparent",
|
|
1165
1165
|
cursor: "pointer",
|
|
1166
1166
|
"&:hover": {
|
|
1167
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1167
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity)
|
|
1168
1168
|
},
|
|
1169
1169
|
[`&.${f.focusVisible}`]: {
|
|
1170
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1170
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.action.selected, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1171
1171
|
},
|
|
1172
1172
|
"&:active": {
|
|
1173
1173
|
boxShadow: (e.vars || e).shadows[1]
|
|
1174
1174
|
}
|
|
1175
1175
|
}
|
|
1176
|
-
}, ...Object.entries(e.palette).filter(
|
|
1176
|
+
}, ...Object.entries(e.palette).filter(_e(["dark"])).map(([a]) => ({
|
|
1177
1177
|
props: {
|
|
1178
1178
|
color: a,
|
|
1179
1179
|
clickable: !0
|
|
@@ -1215,22 +1215,22 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1215
1215
|
marginRight: 3
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
}, ...Object.entries(e.palette).filter(
|
|
1218
|
+
}, ...Object.entries(e.palette).filter(_e()).map(([a]) => ({
|
|
1219
1219
|
props: {
|
|
1220
1220
|
variant: "outlined",
|
|
1221
1221
|
color: a
|
|
1222
1222
|
},
|
|
1223
1223
|
style: {
|
|
1224
1224
|
color: (e.vars || e).palette[a].main,
|
|
1225
|
-
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` :
|
|
1225
|
+
border: `1px solid ${e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : z(e.palette[a].main, 0.7)}`,
|
|
1226
1226
|
[`&.${f.clickable}:hover`]: {
|
|
1227
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` :
|
|
1227
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : z(e.palette[a].main, e.palette.action.hoverOpacity)
|
|
1228
1228
|
},
|
|
1229
1229
|
[`&.${f.focusVisible}`]: {
|
|
1230
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` :
|
|
1230
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.focusOpacity})` : z(e.palette[a].main, e.palette.action.focusOpacity)
|
|
1231
1231
|
},
|
|
1232
1232
|
[`& .${f.deleteIcon}`]: {
|
|
1233
|
-
color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` :
|
|
1233
|
+
color: e.vars ? `rgba(${e.vars.palette[a].mainChannel} / 0.7)` : z(e.palette[a].main, 0.7),
|
|
1234
1234
|
"&:hover, &:active": {
|
|
1235
1235
|
color: (e.vars || e).palette[a].main
|
|
1236
1236
|
}
|
|
@@ -1238,7 +1238,7 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}))]
|
|
1240
1240
|
};
|
|
1241
|
-
})),
|
|
1241
|
+
})), xt = V("span", {
|
|
1242
1242
|
name: "MuiChip",
|
|
1243
1243
|
slot: "Label",
|
|
1244
1244
|
overridesResolver: (e, n) => {
|
|
@@ -1282,11 +1282,11 @@ const f = co("MuiChip", ["root", "sizeSmall", "sizeMedium", "colorDefault", "col
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}]
|
|
1284
1284
|
});
|
|
1285
|
-
function
|
|
1285
|
+
function Vo(e) {
|
|
1286
1286
|
return e.key === "Backspace" || e.key === "Delete";
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1289
|
-
const i =
|
|
1288
|
+
const qo = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1289
|
+
const i = fo({
|
|
1290
1290
|
props: n,
|
|
1291
1291
|
name: "MuiChip"
|
|
1292
1292
|
}), {
|
|
@@ -1294,79 +1294,79 @@ const Go = /* @__PURE__ */ b.forwardRef(function(n, a) {
|
|
|
1294
1294
|
className: h,
|
|
1295
1295
|
clickable: x,
|
|
1296
1296
|
color: y = "default",
|
|
1297
|
-
component:
|
|
1298
|
-
deleteIcon:
|
|
1299
|
-
disabled:
|
|
1300
|
-
icon:
|
|
1301
|
-
label:
|
|
1302
|
-
onClick:
|
|
1303
|
-
onDelete:
|
|
1304
|
-
onKeyDown:
|
|
1305
|
-
onKeyUp:
|
|
1306
|
-
size:
|
|
1307
|
-
variant:
|
|
1308
|
-
tabIndex:
|
|
1309
|
-
skipFocusWhenDisabled:
|
|
1297
|
+
component: w,
|
|
1298
|
+
deleteIcon: b,
|
|
1299
|
+
disabled: P = !1,
|
|
1300
|
+
icon: R,
|
|
1301
|
+
label: U,
|
|
1302
|
+
onClick: L,
|
|
1303
|
+
onDelete: T,
|
|
1304
|
+
onKeyDown: N,
|
|
1305
|
+
onKeyUp: te,
|
|
1306
|
+
size: he = "medium",
|
|
1307
|
+
variant: se = "filled",
|
|
1308
|
+
tabIndex: W,
|
|
1309
|
+
skipFocusWhenDisabled: ye = !1,
|
|
1310
1310
|
// TODO v6: Rename to `focusableWhenDisabled`.
|
|
1311
|
-
...
|
|
1312
|
-
} = i,
|
|
1313
|
-
|
|
1314
|
-
},
|
|
1315
|
-
|
|
1316
|
-
},
|
|
1317
|
-
|
|
1318
|
-
},
|
|
1311
|
+
...De
|
|
1312
|
+
} = i, ne = m.useRef(null), Ne = et(ne, a), Ee = (_) => {
|
|
1313
|
+
_.stopPropagation(), T && T(_);
|
|
1314
|
+
}, fe = (_) => {
|
|
1315
|
+
_.currentTarget === _.target && Vo(_) && _.preventDefault(), N && N(_);
|
|
1316
|
+
}, ve = (_) => {
|
|
1317
|
+
_.currentTarget === _.target && T && Vo(_) && T(_), te && te(_);
|
|
1318
|
+
}, K = x !== !1 && L ? !0 : x, I = K || T ? Po : w || "div", ge = {
|
|
1319
1319
|
...i,
|
|
1320
|
-
component:
|
|
1321
|
-
disabled:
|
|
1322
|
-
size:
|
|
1320
|
+
component: I,
|
|
1321
|
+
disabled: P,
|
|
1322
|
+
size: he,
|
|
1323
1323
|
color: y,
|
|
1324
|
-
iconColor: /* @__PURE__ */
|
|
1325
|
-
onDelete: !!
|
|
1326
|
-
clickable:
|
|
1327
|
-
variant:
|
|
1328
|
-
},
|
|
1329
|
-
component:
|
|
1330
|
-
focusVisibleClassName:
|
|
1331
|
-
...
|
|
1324
|
+
iconColor: /* @__PURE__ */ m.isValidElement(R) && R.props.color || y,
|
|
1325
|
+
onDelete: !!T,
|
|
1326
|
+
clickable: K,
|
|
1327
|
+
variant: se
|
|
1328
|
+
}, Y = yt(ge), xe = I === Po ? {
|
|
1329
|
+
component: w || "div",
|
|
1330
|
+
focusVisibleClassName: Y.focusVisible,
|
|
1331
|
+
...T && {
|
|
1332
1332
|
disableRipple: !0
|
|
1333
1333
|
}
|
|
1334
1334
|
} : {};
|
|
1335
|
-
let
|
|
1336
|
-
|
|
1337
|
-
className:
|
|
1338
|
-
onClick:
|
|
1339
|
-
}) : /* @__PURE__ */
|
|
1340
|
-
className:
|
|
1341
|
-
onClick:
|
|
1335
|
+
let J = null;
|
|
1336
|
+
T && (J = b && /* @__PURE__ */ m.isValidElement(b) ? /* @__PURE__ */ m.cloneElement(b, {
|
|
1337
|
+
className: Q(b.props.className, Y.deleteIcon),
|
|
1338
|
+
onClick: Ee
|
|
1339
|
+
}) : /* @__PURE__ */ S(mt, {
|
|
1340
|
+
className: Q(Y.deleteIcon),
|
|
1341
|
+
onClick: Ee
|
|
1342
1342
|
}));
|
|
1343
|
-
let
|
|
1344
|
-
g && /* @__PURE__ */
|
|
1345
|
-
className:
|
|
1343
|
+
let pe = null;
|
|
1344
|
+
g && /* @__PURE__ */ m.isValidElement(g) && (pe = /* @__PURE__ */ m.cloneElement(g, {
|
|
1345
|
+
className: Q(Y.avatar, g.props.className)
|
|
1346
1346
|
}));
|
|
1347
|
-
let
|
|
1348
|
-
return
|
|
1349
|
-
className:
|
|
1350
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
1351
|
-
as:
|
|
1352
|
-
className:
|
|
1353
|
-
disabled:
|
|
1354
|
-
onClick:
|
|
1355
|
-
onKeyDown:
|
|
1356
|
-
onKeyUp:
|
|
1357
|
-
ref:
|
|
1358
|
-
tabIndex:
|
|
1359
|
-
ownerState:
|
|
1360
|
-
...
|
|
1361
|
-
...
|
|
1362
|
-
children: [
|
|
1363
|
-
className:
|
|
1364
|
-
ownerState:
|
|
1365
|
-
children:
|
|
1366
|
-
}),
|
|
1347
|
+
let Ie = null;
|
|
1348
|
+
return R && /* @__PURE__ */ m.isValidElement(R) && (Ie = /* @__PURE__ */ m.cloneElement(R, {
|
|
1349
|
+
className: Q(Y.icon, R.props.className)
|
|
1350
|
+
})), process.env.NODE_ENV !== "production" && pe && Ie && console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."), /* @__PURE__ */ Be(vt, {
|
|
1351
|
+
as: I,
|
|
1352
|
+
className: Q(Y.root, h),
|
|
1353
|
+
disabled: K && P ? !0 : void 0,
|
|
1354
|
+
onClick: L,
|
|
1355
|
+
onKeyDown: fe,
|
|
1356
|
+
onKeyUp: ve,
|
|
1357
|
+
ref: Ne,
|
|
1358
|
+
tabIndex: ye && P ? -1 : W,
|
|
1359
|
+
ownerState: ge,
|
|
1360
|
+
...xe,
|
|
1361
|
+
...De,
|
|
1362
|
+
children: [pe || Ie, /* @__PURE__ */ S(xt, {
|
|
1363
|
+
className: Q(Y.label),
|
|
1364
|
+
ownerState: ge,
|
|
1365
|
+
children: U
|
|
1366
|
+
}), J]
|
|
1367
1367
|
});
|
|
1368
1368
|
});
|
|
1369
|
-
process.env.NODE_ENV !== "production" && (
|
|
1369
|
+
process.env.NODE_ENV !== "production" && (qo.propTypes = {
|
|
1370
1370
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1371
1371
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1372
1372
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1379,7 +1379,7 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
|
|
|
1379
1379
|
* This prop isn't supported.
|
|
1380
1380
|
* Use the `component` prop if you need to change the children structure.
|
|
1381
1381
|
*/
|
|
1382
|
-
children:
|
|
1382
|
+
children: tt,
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Override or extend the styles applied to the component.
|
|
1385
1385
|
*/
|
|
@@ -1468,15 +1468,15 @@ process.env.NODE_ENV !== "production" && (Go.propTypes = {
|
|
|
1468
1468
|
*/
|
|
1469
1469
|
variant: o.oneOfType([o.oneOf(["filled", "outlined"]), o.string])
|
|
1470
1470
|
});
|
|
1471
|
-
const
|
|
1471
|
+
const It = Uo(/* @__PURE__ */ S("path", {
|
|
1472
1472
|
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"
|
|
1473
1473
|
}), "Close");
|
|
1474
|
-
function
|
|
1475
|
-
return
|
|
1474
|
+
function Ct(e) {
|
|
1475
|
+
return co("MuiAutocomplete", e);
|
|
1476
1476
|
}
|
|
1477
|
-
const u =
|
|
1478
|
-
var
|
|
1479
|
-
const
|
|
1477
|
+
const u = uo("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"]);
|
|
1478
|
+
var Fo, jo;
|
|
1479
|
+
const $t = (e) => {
|
|
1480
1480
|
const {
|
|
1481
1481
|
classes: n,
|
|
1482
1482
|
disablePortal: a,
|
|
@@ -1485,17 +1485,17 @@ const Ot = (e) => {
|
|
|
1485
1485
|
fullWidth: h,
|
|
1486
1486
|
hasClearIcon: x,
|
|
1487
1487
|
hasPopupIcon: y,
|
|
1488
|
-
inputFocused:
|
|
1489
|
-
popupOpen:
|
|
1490
|
-
size:
|
|
1491
|
-
} = e,
|
|
1488
|
+
inputFocused: w,
|
|
1489
|
+
popupOpen: b,
|
|
1490
|
+
size: P
|
|
1491
|
+
} = e, R = {
|
|
1492
1492
|
root: ["root", i && "expanded", g && "focused", h && "fullWidth", x && "hasClearIcon", y && "hasPopupIcon"],
|
|
1493
1493
|
inputRoot: ["inputRoot"],
|
|
1494
|
-
input: ["input",
|
|
1495
|
-
tag: ["tag", `tagSize${d(
|
|
1494
|
+
input: ["input", w && "inputFocused"],
|
|
1495
|
+
tag: ["tag", `tagSize${d(P)}`],
|
|
1496
1496
|
endAdornment: ["endAdornment"],
|
|
1497
1497
|
clearIndicator: ["clearIndicator"],
|
|
1498
|
-
popupIndicator: ["popupIndicator",
|
|
1498
|
+
popupIndicator: ["popupIndicator", b && "popupIndicatorOpen"],
|
|
1499
1499
|
popper: ["popper", a && "popperDisablePortal"],
|
|
1500
1500
|
paper: ["paper"],
|
|
1501
1501
|
listbox: ["listbox"],
|
|
@@ -1505,8 +1505,8 @@ const Ot = (e) => {
|
|
|
1505
1505
|
groupLabel: ["groupLabel"],
|
|
1506
1506
|
groupUl: ["groupUl"]
|
|
1507
1507
|
};
|
|
1508
|
-
return
|
|
1509
|
-
},
|
|
1508
|
+
return go(R, Ct, n);
|
|
1509
|
+
}, Ot = V("div", {
|
|
1510
1510
|
name: "MuiAutocomplete",
|
|
1511
1511
|
slot: "Root",
|
|
1512
1512
|
overridesResolver: (e, n) => {
|
|
@@ -1557,18 +1557,18 @@ const Ot = (e) => {
|
|
|
1557
1557
|
minWidth: 30
|
|
1558
1558
|
}
|
|
1559
1559
|
},
|
|
1560
|
-
[`& .${
|
|
1560
|
+
[`& .${Oo.root}`]: {
|
|
1561
1561
|
paddingBottom: 1,
|
|
1562
1562
|
"& .MuiInput-input": {
|
|
1563
1563
|
padding: "4px 4px 4px 0px"
|
|
1564
1564
|
}
|
|
1565
1565
|
},
|
|
1566
|
-
[`& .${
|
|
1567
|
-
[`& .${
|
|
1566
|
+
[`& .${Oo.root}.${me.sizeSmall}`]: {
|
|
1567
|
+
[`& .${Oo.input}`]: {
|
|
1568
1568
|
padding: "2px 4px 3px 0"
|
|
1569
1569
|
}
|
|
1570
1570
|
},
|
|
1571
|
-
[`& .${
|
|
1571
|
+
[`& .${Do.root}`]: {
|
|
1572
1572
|
padding: 9,
|
|
1573
1573
|
[`.${u.hasPopupIcon}&, .${u.hasClearIcon}&`]: {
|
|
1574
1574
|
paddingRight: 39
|
|
@@ -1583,7 +1583,7 @@ const Ot = (e) => {
|
|
|
1583
1583
|
right: 9
|
|
1584
1584
|
}
|
|
1585
1585
|
},
|
|
1586
|
-
[`& .${
|
|
1586
|
+
[`& .${Do.root}.${me.sizeSmall}`]: {
|
|
1587
1587
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
1588
1588
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
1589
1589
|
paddingTop: 6,
|
|
@@ -1609,16 +1609,16 @@ const Ot = (e) => {
|
|
|
1609
1609
|
right: 9
|
|
1610
1610
|
}
|
|
1611
1611
|
},
|
|
1612
|
-
[`& .${Ae.root}.${
|
|
1612
|
+
[`& .${Ae.root}.${me.sizeSmall}`]: {
|
|
1613
1613
|
paddingBottom: 1,
|
|
1614
1614
|
[`& .${Ae.input}`]: {
|
|
1615
1615
|
padding: "2.5px 4px"
|
|
1616
1616
|
}
|
|
1617
1617
|
},
|
|
1618
|
-
[`& .${
|
|
1618
|
+
[`& .${me.hiddenLabel}`]: {
|
|
1619
1619
|
paddingTop: 8
|
|
1620
1620
|
},
|
|
1621
|
-
[`& .${Ae.root}.${
|
|
1621
|
+
[`& .${Ae.root}.${me.hiddenLabel}`]: {
|
|
1622
1622
|
paddingTop: 0,
|
|
1623
1623
|
paddingBottom: 0,
|
|
1624
1624
|
[`& .${u.input}`]: {
|
|
@@ -1626,7 +1626,7 @@ const Ot = (e) => {
|
|
|
1626
1626
|
paddingBottom: 17
|
|
1627
1627
|
}
|
|
1628
1628
|
},
|
|
1629
|
-
[`& .${Ae.root}.${
|
|
1629
|
+
[`& .${Ae.root}.${me.hiddenLabel}.${me.sizeSmall}`]: {
|
|
1630
1630
|
[`& .${u.input}`]: {
|
|
1631
1631
|
paddingTop: 8,
|
|
1632
1632
|
paddingBottom: 9
|
|
@@ -1673,7 +1673,7 @@ const Ot = (e) => {
|
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
1675
|
}]
|
|
1676
|
-
}),
|
|
1676
|
+
}), wt = V("div", {
|
|
1677
1677
|
name: "MuiAutocomplete",
|
|
1678
1678
|
slot: "EndAdornment",
|
|
1679
1679
|
overridesResolver: (e, n) => n.endAdornment
|
|
@@ -1683,7 +1683,7 @@ const Ot = (e) => {
|
|
|
1683
1683
|
right: 0,
|
|
1684
1684
|
top: "50%",
|
|
1685
1685
|
transform: "translate(0, -50%)"
|
|
1686
|
-
}),
|
|
1686
|
+
}), St = V(Mo, {
|
|
1687
1687
|
name: "MuiAutocomplete",
|
|
1688
1688
|
slot: "ClearIndicator",
|
|
1689
1689
|
overridesResolver: (e, n) => n.clearIndicator
|
|
@@ -1691,7 +1691,7 @@ const Ot = (e) => {
|
|
|
1691
1691
|
marginRight: -2,
|
|
1692
1692
|
padding: 4,
|
|
1693
1693
|
visibility: "hidden"
|
|
1694
|
-
}),
|
|
1694
|
+
}), Pt = V(Mo, {
|
|
1695
1695
|
name: "MuiAutocomplete",
|
|
1696
1696
|
slot: "PopupIndicator",
|
|
1697
1697
|
overridesResolver: ({
|
|
@@ -1711,7 +1711,7 @@ const Ot = (e) => {
|
|
|
1711
1711
|
transform: "rotate(180deg)"
|
|
1712
1712
|
}
|
|
1713
1713
|
}]
|
|
1714
|
-
}),
|
|
1714
|
+
}), Tt = V(Wo, {
|
|
1715
1715
|
name: "MuiAutocomplete",
|
|
1716
1716
|
slot: "Popper",
|
|
1717
1717
|
overridesResolver: (e, n) => {
|
|
@@ -1722,7 +1722,7 @@ const Ot = (e) => {
|
|
|
1722
1722
|
[`& .${u.option}`]: n.option
|
|
1723
1723
|
}, n.popper, a.disablePortal && n.popperDisablePortal];
|
|
1724
1724
|
}
|
|
1725
|
-
})(
|
|
1725
|
+
})(oe(({
|
|
1726
1726
|
theme: e
|
|
1727
1727
|
}) => ({
|
|
1728
1728
|
zIndex: (e.vars || e).zIndex.modal,
|
|
@@ -1734,38 +1734,38 @@ const Ot = (e) => {
|
|
|
1734
1734
|
position: "absolute"
|
|
1735
1735
|
}
|
|
1736
1736
|
}]
|
|
1737
|
-
}))),
|
|
1737
|
+
}))), kt = V(Ko, {
|
|
1738
1738
|
name: "MuiAutocomplete",
|
|
1739
1739
|
slot: "Paper",
|
|
1740
1740
|
overridesResolver: (e, n) => n.paper
|
|
1741
|
-
})(
|
|
1741
|
+
})(oe(({
|
|
1742
1742
|
theme: e
|
|
1743
1743
|
}) => ({
|
|
1744
1744
|
...e.typography.body1,
|
|
1745
1745
|
overflow: "auto"
|
|
1746
|
-
}))),
|
|
1746
|
+
}))), Mt = V("div", {
|
|
1747
1747
|
name: "MuiAutocomplete",
|
|
1748
1748
|
slot: "Loading",
|
|
1749
1749
|
overridesResolver: (e, n) => n.loading
|
|
1750
|
-
})(
|
|
1750
|
+
})(oe(({
|
|
1751
1751
|
theme: e
|
|
1752
1752
|
}) => ({
|
|
1753
1753
|
color: (e.vars || e).palette.text.secondary,
|
|
1754
1754
|
padding: "14px 16px"
|
|
1755
|
-
}))),
|
|
1755
|
+
}))), Rt = V("div", {
|
|
1756
1756
|
name: "MuiAutocomplete",
|
|
1757
1757
|
slot: "NoOptions",
|
|
1758
1758
|
overridesResolver: (e, n) => n.noOptions
|
|
1759
|
-
})(
|
|
1759
|
+
})(oe(({
|
|
1760
1760
|
theme: e
|
|
1761
1761
|
}) => ({
|
|
1762
1762
|
color: (e.vars || e).palette.text.secondary,
|
|
1763
1763
|
padding: "14px 16px"
|
|
1764
|
-
}))),
|
|
1764
|
+
}))), Lt = V("div", {
|
|
1765
1765
|
name: "MuiAutocomplete",
|
|
1766
1766
|
slot: "Listbox",
|
|
1767
1767
|
overridesResolver: (e, n) => n.listbox
|
|
1768
|
-
})(
|
|
1768
|
+
})(oe(({
|
|
1769
1769
|
theme: e
|
|
1770
1770
|
}) => ({
|
|
1771
1771
|
listStyle: "none",
|
|
@@ -1806,29 +1806,29 @@ const Ot = (e) => {
|
|
|
1806
1806
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
1807
1807
|
},
|
|
1808
1808
|
'&[aria-selected="true"]': {
|
|
1809
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` :
|
|
1809
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : z(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1810
1810
|
[`&.${u.focused}`]: {
|
|
1811
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` :
|
|
1811
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : z(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1812
1812
|
// Reset on touch devices, it doesn't add specificity
|
|
1813
1813
|
"@media (hover: none)": {
|
|
1814
1814
|
backgroundColor: (e.vars || e).palette.action.selected
|
|
1815
1815
|
}
|
|
1816
1816
|
},
|
|
1817
1817
|
[`&.${u.focusVisible}`]: {
|
|
1818
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` :
|
|
1818
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : z(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
|
-
}))),
|
|
1822
|
+
}))), At = V(po, {
|
|
1823
1823
|
name: "MuiAutocomplete",
|
|
1824
1824
|
slot: "GroupLabel",
|
|
1825
1825
|
overridesResolver: (e, n) => n.groupLabel
|
|
1826
|
-
})(
|
|
1826
|
+
})(oe(({
|
|
1827
1827
|
theme: e
|
|
1828
1828
|
}) => ({
|
|
1829
1829
|
backgroundColor: (e.vars || e).palette.background.paper,
|
|
1830
1830
|
top: -8
|
|
1831
|
-
}))),
|
|
1831
|
+
}))), _t = V("ul", {
|
|
1832
1832
|
name: "MuiAutocomplete",
|
|
1833
1833
|
slot: "GroupUl",
|
|
1834
1834
|
overridesResolver: (e, n) => n.groupUl
|
|
@@ -1837,8 +1837,8 @@ const Ot = (e) => {
|
|
|
1837
1837
|
[`& .${u.option}`]: {
|
|
1838
1838
|
paddingLeft: 24
|
|
1839
1839
|
}
|
|
1840
|
-
}),
|
|
1841
|
-
const i =
|
|
1840
|
+
}), ko = /* @__PURE__ */ m.forwardRef(function(n, a) {
|
|
1841
|
+
const i = fo({
|
|
1842
1842
|
props: n,
|
|
1843
1843
|
name: "MuiAutocomplete"
|
|
1844
1844
|
}), {
|
|
@@ -1846,293 +1846,293 @@ const Ot = (e) => {
|
|
|
1846
1846
|
autoHighlight: h = !1,
|
|
1847
1847
|
autoSelect: x = !1,
|
|
1848
1848
|
blurOnSelect: y = !1,
|
|
1849
|
-
ChipProps:
|
|
1850
|
-
className:
|
|
1851
|
-
clearIcon:
|
|
1849
|
+
ChipProps: w,
|
|
1850
|
+
className: b,
|
|
1851
|
+
clearIcon: P = Fo || (Fo = /* @__PURE__ */ S(It, {
|
|
1852
1852
|
fontSize: "small"
|
|
1853
1853
|
})),
|
|
1854
|
-
clearOnBlur:
|
|
1855
|
-
clearOnEscape:
|
|
1856
|
-
clearText:
|
|
1857
|
-
closeText:
|
|
1858
|
-
componentsProps:
|
|
1859
|
-
defaultValue:
|
|
1860
|
-
disableClearable:
|
|
1861
|
-
disableCloseOnSelect:
|
|
1862
|
-
disabled:
|
|
1863
|
-
disabledItemsFocusable:
|
|
1864
|
-
disableListWrap:
|
|
1865
|
-
disablePortal:
|
|
1866
|
-
filterOptions:
|
|
1867
|
-
filterSelectedOptions:
|
|
1868
|
-
forcePopupIcon:
|
|
1869
|
-
freeSolo:
|
|
1870
|
-
fullWidth:
|
|
1871
|
-
getLimitTagsText:
|
|
1872
|
-
getOptionDisabled:
|
|
1873
|
-
getOptionKey:
|
|
1874
|
-
getOptionLabel:
|
|
1875
|
-
isOptionEqualToValue:
|
|
1876
|
-
groupBy:
|
|
1877
|
-
handleHomeEndKeys:
|
|
1878
|
-
id:
|
|
1854
|
+
clearOnBlur: R = !i.freeSolo,
|
|
1855
|
+
clearOnEscape: U = !1,
|
|
1856
|
+
clearText: L = "Clear",
|
|
1857
|
+
closeText: T = "Close",
|
|
1858
|
+
componentsProps: N,
|
|
1859
|
+
defaultValue: te = i.multiple ? [] : null,
|
|
1860
|
+
disableClearable: he = !1,
|
|
1861
|
+
disableCloseOnSelect: se = !1,
|
|
1862
|
+
disabled: W = !1,
|
|
1863
|
+
disabledItemsFocusable: ye = !1,
|
|
1864
|
+
disableListWrap: De = !1,
|
|
1865
|
+
disablePortal: ne = !1,
|
|
1866
|
+
filterOptions: Ne,
|
|
1867
|
+
filterSelectedOptions: Ee = !1,
|
|
1868
|
+
forcePopupIcon: fe = "auto",
|
|
1869
|
+
freeSolo: ve = !1,
|
|
1870
|
+
fullWidth: K = !1,
|
|
1871
|
+
getLimitTagsText: I = (v) => `+${v}`,
|
|
1872
|
+
getOptionDisabled: ge,
|
|
1873
|
+
getOptionKey: Y,
|
|
1874
|
+
getOptionLabel: xe,
|
|
1875
|
+
isOptionEqualToValue: J,
|
|
1876
|
+
groupBy: pe,
|
|
1877
|
+
handleHomeEndKeys: Ie = !i.freeSolo,
|
|
1878
|
+
id: _,
|
|
1879
1879
|
includeInputInList: Ro = !1,
|
|
1880
1880
|
inputValue: Ce,
|
|
1881
|
-
limitTags:
|
|
1882
|
-
ListboxComponent:
|
|
1883
|
-
ListboxProps:
|
|
1884
|
-
loading:
|
|
1885
|
-
loadingText:
|
|
1886
|
-
multiple:
|
|
1887
|
-
noOptionsText:
|
|
1888
|
-
onChange:
|
|
1889
|
-
onClose:
|
|
1881
|
+
limitTags: ze = -1,
|
|
1882
|
+
ListboxComponent: bo,
|
|
1883
|
+
ListboxProps: H,
|
|
1884
|
+
loading: B = !1,
|
|
1885
|
+
loadingText: Ve = "Loading…",
|
|
1886
|
+
multiple: Fe = !1,
|
|
1887
|
+
noOptionsText: M = "No options",
|
|
1888
|
+
onChange: q,
|
|
1889
|
+
onClose: je,
|
|
1890
1890
|
onHighlightChange: Lo,
|
|
1891
1891
|
onInputChange: G,
|
|
1892
1892
|
onOpen: Xe,
|
|
1893
|
-
open:
|
|
1894
|
-
openOnFocus:
|
|
1893
|
+
open: mo,
|
|
1894
|
+
openOnFocus: E = !1,
|
|
1895
1895
|
openText: s = "Open",
|
|
1896
1896
|
options: Ao,
|
|
1897
|
-
PaperComponent:
|
|
1897
|
+
PaperComponent: O,
|
|
1898
1898
|
PopperComponent: $e,
|
|
1899
|
-
popupIcon:
|
|
1899
|
+
popupIcon: Oe = jo || (jo = /* @__PURE__ */ S(Xo, {})),
|
|
1900
1900
|
readOnly: He = !1,
|
|
1901
|
-
renderGroup:
|
|
1902
|
-
renderInput:
|
|
1901
|
+
renderGroup: we,
|
|
1902
|
+
renderInput: ce,
|
|
1903
1903
|
renderOption: Qe,
|
|
1904
1904
|
renderTags: Ze,
|
|
1905
|
-
selectOnFocus:
|
|
1906
|
-
size:
|
|
1907
|
-
slots:
|
|
1905
|
+
selectOnFocus: ho = !i.freeSolo,
|
|
1906
|
+
size: Se = "medium",
|
|
1907
|
+
slots: F = {},
|
|
1908
1908
|
slotProps: k = {},
|
|
1909
|
-
value:
|
|
1910
|
-
...
|
|
1909
|
+
value: Z,
|
|
1910
|
+
...Ue
|
|
1911
1911
|
} = i, {
|
|
1912
|
-
getRootProps:
|
|
1912
|
+
getRootProps: Pe,
|
|
1913
1913
|
getInputProps: eo,
|
|
1914
|
-
getInputLabelProps:
|
|
1915
|
-
getPopupIndicatorProps:
|
|
1916
|
-
getClearProps:
|
|
1917
|
-
getTagProps:
|
|
1918
|
-
getListboxProps:
|
|
1919
|
-
getOptionProps:
|
|
1920
|
-
value:
|
|
1921
|
-
dirty:
|
|
1922
|
-
expanded:
|
|
1923
|
-
id:
|
|
1924
|
-
popupOpen:
|
|
1925
|
-
focused:
|
|
1914
|
+
getInputLabelProps: re,
|
|
1915
|
+
getPopupIndicatorProps: X,
|
|
1916
|
+
getClearProps: yo,
|
|
1917
|
+
getTagProps: We,
|
|
1918
|
+
getListboxProps: vo,
|
|
1919
|
+
getOptionProps: ae,
|
|
1920
|
+
value: le,
|
|
1921
|
+
dirty: ue,
|
|
1922
|
+
expanded: Te,
|
|
1923
|
+
id: be,
|
|
1924
|
+
popupOpen: ke,
|
|
1925
|
+
focused: Ke,
|
|
1926
1926
|
focusedTag: oo,
|
|
1927
|
-
anchorEl:
|
|
1928
|
-
setAnchorEl:
|
|
1927
|
+
anchorEl: Me,
|
|
1928
|
+
setAnchorEl: xo,
|
|
1929
1929
|
inputValue: to,
|
|
1930
1930
|
groupedOptions: Re
|
|
1931
|
-
} =
|
|
1931
|
+
} = st({
|
|
1932
1932
|
...i,
|
|
1933
1933
|
componentName: "Autocomplete"
|
|
1934
|
-
}),
|
|
1935
|
-
onMouseDown:
|
|
1934
|
+
}), qe = !he && !W && ue && !He, Ge = (!ve || fe === !0) && fe !== !1, {
|
|
1935
|
+
onMouseDown: Io
|
|
1936
1936
|
} = eo(), {
|
|
1937
1937
|
ref: Co,
|
|
1938
1938
|
...no
|
|
1939
|
-
} =
|
|
1939
|
+
} = vo(), Ye = xe || ((v) => v.label ?? v), D = {
|
|
1940
1940
|
...i,
|
|
1941
|
-
disablePortal:
|
|
1942
|
-
expanded:
|
|
1943
|
-
focused:
|
|
1944
|
-
fullWidth:
|
|
1941
|
+
disablePortal: ne,
|
|
1942
|
+
expanded: Te,
|
|
1943
|
+
focused: Ke,
|
|
1944
|
+
fullWidth: K,
|
|
1945
1945
|
getOptionLabel: Ye,
|
|
1946
|
-
hasClearIcon:
|
|
1947
|
-
hasPopupIcon:
|
|
1946
|
+
hasClearIcon: qe,
|
|
1947
|
+
hasPopupIcon: Ge,
|
|
1948
1948
|
inputFocused: oo === -1,
|
|
1949
|
-
popupOpen:
|
|
1950
|
-
size:
|
|
1951
|
-
},
|
|
1949
|
+
popupOpen: ke,
|
|
1950
|
+
size: Se
|
|
1951
|
+
}, A = $t(D), ie = {
|
|
1952
1952
|
slots: {
|
|
1953
|
-
listbox:
|
|
1954
|
-
paper:
|
|
1953
|
+
listbox: bo,
|
|
1954
|
+
paper: O,
|
|
1955
1955
|
popper: $e,
|
|
1956
|
-
...
|
|
1956
|
+
...F
|
|
1957
1957
|
},
|
|
1958
1958
|
slotProps: {
|
|
1959
|
-
chip:
|
|
1960
|
-
listbox:
|
|
1961
|
-
...
|
|
1959
|
+
chip: w,
|
|
1960
|
+
listbox: H,
|
|
1961
|
+
...N,
|
|
1962
1962
|
...k
|
|
1963
1963
|
}
|
|
1964
|
-
}, [r, t] =
|
|
1964
|
+
}, [r, t] = wo("listbox", {
|
|
1965
1965
|
elementType: "ul",
|
|
1966
|
-
externalForwardedProps:
|
|
1967
|
-
ownerState:
|
|
1968
|
-
className:
|
|
1966
|
+
externalForwardedProps: ie,
|
|
1967
|
+
ownerState: D,
|
|
1968
|
+
className: A.listbox,
|
|
1969
1969
|
additionalProps: no,
|
|
1970
1970
|
ref: Co
|
|
1971
|
-
}), [l, p] =
|
|
1971
|
+
}), [l, p] = wo("paper", {
|
|
1972
1972
|
elementType: Ko,
|
|
1973
|
-
externalForwardedProps:
|
|
1974
|
-
ownerState:
|
|
1975
|
-
className:
|
|
1976
|
-
}), [c,
|
|
1973
|
+
externalForwardedProps: ie,
|
|
1974
|
+
ownerState: D,
|
|
1975
|
+
className: A.paper
|
|
1976
|
+
}), [c, $] = wo("popper", {
|
|
1977
1977
|
elementType: Wo,
|
|
1978
|
-
externalForwardedProps:
|
|
1979
|
-
ownerState:
|
|
1980
|
-
className:
|
|
1978
|
+
externalForwardedProps: ie,
|
|
1979
|
+
ownerState: D,
|
|
1980
|
+
className: A.popper,
|
|
1981
1981
|
additionalProps: {
|
|
1982
|
-
disablePortal:
|
|
1982
|
+
disablePortal: ne,
|
|
1983
1983
|
style: {
|
|
1984
|
-
width:
|
|
1984
|
+
width: Me ? Me.clientWidth : null
|
|
1985
1985
|
},
|
|
1986
1986
|
role: "presentation",
|
|
1987
|
-
anchorEl:
|
|
1988
|
-
open:
|
|
1987
|
+
anchorEl: Me,
|
|
1988
|
+
open: ke
|
|
1989
1989
|
}
|
|
1990
1990
|
});
|
|
1991
|
-
let
|
|
1992
|
-
if (
|
|
1993
|
-
const v = (
|
|
1994
|
-
className:
|
|
1995
|
-
disabled:
|
|
1996
|
-
...
|
|
1991
|
+
let C;
|
|
1992
|
+
if (Fe && le.length > 0) {
|
|
1993
|
+
const v = (ee) => ({
|
|
1994
|
+
className: A.tag,
|
|
1995
|
+
disabled: W,
|
|
1996
|
+
...We(ee)
|
|
1997
1997
|
});
|
|
1998
|
-
Ze ?
|
|
1998
|
+
Ze ? C = Ze(le, v, D) : C = le.map((ee, de) => {
|
|
1999
1999
|
const {
|
|
2000
2000
|
key: Je,
|
|
2001
|
-
...
|
|
2001
|
+
...Yo
|
|
2002
2002
|
} = v({
|
|
2003
|
-
index:
|
|
2003
|
+
index: de
|
|
2004
2004
|
});
|
|
2005
|
-
return /* @__PURE__ */
|
|
2006
|
-
label: Ye(
|
|
2007
|
-
size:
|
|
2008
|
-
...
|
|
2009
|
-
...
|
|
2005
|
+
return /* @__PURE__ */ S(qo, {
|
|
2006
|
+
label: Ye(ee),
|
|
2007
|
+
size: Se,
|
|
2008
|
+
...Yo,
|
|
2009
|
+
...ie.slotProps.chip
|
|
2010
2010
|
}, Je);
|
|
2011
2011
|
});
|
|
2012
2012
|
}
|
|
2013
|
-
if (
|
|
2014
|
-
const v =
|
|
2015
|
-
!
|
|
2016
|
-
className:
|
|
2017
|
-
children:
|
|
2018
|
-
},
|
|
2013
|
+
if (ze > -1 && Array.isArray(C)) {
|
|
2014
|
+
const v = C.length - ze;
|
|
2015
|
+
!Ke && v > 0 && (C = C.splice(0, ze), C.push(/* @__PURE__ */ S("span", {
|
|
2016
|
+
className: A.tag,
|
|
2017
|
+
children: I(v)
|
|
2018
|
+
}, C.length)));
|
|
2019
2019
|
}
|
|
2020
|
-
const Le =
|
|
2021
|
-
children: [/* @__PURE__ */
|
|
2022
|
-
className:
|
|
2023
|
-
ownerState:
|
|
2020
|
+
const Le = we || ((v) => /* @__PURE__ */ Be("li", {
|
|
2021
|
+
children: [/* @__PURE__ */ S(At, {
|
|
2022
|
+
className: A.groupLabel,
|
|
2023
|
+
ownerState: D,
|
|
2024
2024
|
component: "div",
|
|
2025
2025
|
children: v.group
|
|
2026
|
-
}), /* @__PURE__ */
|
|
2027
|
-
className:
|
|
2028
|
-
ownerState:
|
|
2026
|
+
}), /* @__PURE__ */ S(_t, {
|
|
2027
|
+
className: A.groupUl,
|
|
2028
|
+
ownerState: D,
|
|
2029
2029
|
children: v.children
|
|
2030
2030
|
})]
|
|
2031
|
-
}, v.key)),
|
|
2031
|
+
}, v.key)), Go = Qe || ((v, ee) => {
|
|
2032
2032
|
const {
|
|
2033
|
-
key:
|
|
2033
|
+
key: de,
|
|
2034
2034
|
...Je
|
|
2035
2035
|
} = v;
|
|
2036
|
-
return /* @__PURE__ */
|
|
2036
|
+
return /* @__PURE__ */ S("li", {
|
|
2037
2037
|
...Je,
|
|
2038
|
-
children: Ye(
|
|
2039
|
-
},
|
|
2040
|
-
}),
|
|
2041
|
-
const
|
|
2038
|
+
children: Ye(ee)
|
|
2039
|
+
}, de);
|
|
2040
|
+
}), Bo = (v, ee) => {
|
|
2041
|
+
const de = ae({
|
|
2042
2042
|
option: v,
|
|
2043
|
-
index:
|
|
2043
|
+
index: ee
|
|
2044
2044
|
});
|
|
2045
|
-
return
|
|
2046
|
-
...
|
|
2047
|
-
className:
|
|
2045
|
+
return Go({
|
|
2046
|
+
...de,
|
|
2047
|
+
className: A.option
|
|
2048
2048
|
}, v, {
|
|
2049
|
-
selected:
|
|
2050
|
-
index:
|
|
2049
|
+
selected: de["aria-selected"],
|
|
2050
|
+
index: ee,
|
|
2051
2051
|
inputValue: to
|
|
2052
|
-
},
|
|
2053
|
-
}, ro =
|
|
2052
|
+
}, D);
|
|
2053
|
+
}, ro = ie.slotProps.clearIndicator, ao = ie.slotProps.popupIndicator, $o = (v) => /* @__PURE__ */ S(Tt, {
|
|
2054
2054
|
as: c,
|
|
2055
|
-
|
|
2056
|
-
children: /* @__PURE__ */
|
|
2055
|
+
...$,
|
|
2056
|
+
children: /* @__PURE__ */ S(kt, {
|
|
2057
2057
|
as: l,
|
|
2058
2058
|
...p,
|
|
2059
2059
|
children: v
|
|
2060
2060
|
})
|
|
2061
2061
|
});
|
|
2062
2062
|
let lo = null;
|
|
2063
|
-
return Re.length > 0 ? lo = $o(/* @__PURE__ */
|
|
2063
|
+
return Re.length > 0 ? lo = $o(/* @__PURE__ */ S(Lt, {
|
|
2064
2064
|
as: r,
|
|
2065
2065
|
...t,
|
|
2066
|
-
children: Re.map((v,
|
|
2066
|
+
children: Re.map((v, ee) => pe ? Le({
|
|
2067
2067
|
key: v.key,
|
|
2068
2068
|
group: v.group,
|
|
2069
|
-
children: v.options.map((
|
|
2070
|
-
}) :
|
|
2071
|
-
})) :
|
|
2072
|
-
className:
|
|
2073
|
-
ownerState:
|
|
2074
|
-
children:
|
|
2075
|
-
})) : Re.length === 0 && !
|
|
2076
|
-
className:
|
|
2077
|
-
ownerState:
|
|
2069
|
+
children: v.options.map((de, Je) => Bo(de, v.index + Je))
|
|
2070
|
+
}) : Bo(v, ee))
|
|
2071
|
+
})) : B && Re.length === 0 ? lo = $o(/* @__PURE__ */ S(Mt, {
|
|
2072
|
+
className: A.loading,
|
|
2073
|
+
ownerState: D,
|
|
2074
|
+
children: Ve
|
|
2075
|
+
})) : Re.length === 0 && !ve && !B && (lo = $o(/* @__PURE__ */ S(Rt, {
|
|
2076
|
+
className: A.noOptions,
|
|
2077
|
+
ownerState: D,
|
|
2078
2078
|
role: "presentation",
|
|
2079
2079
|
onMouseDown: (v) => {
|
|
2080
2080
|
v.preventDefault();
|
|
2081
2081
|
},
|
|
2082
|
-
children:
|
|
2083
|
-
}))), /* @__PURE__ */
|
|
2084
|
-
children: [/* @__PURE__ */
|
|
2082
|
+
children: M
|
|
2083
|
+
}))), /* @__PURE__ */ Be(m.Fragment, {
|
|
2084
|
+
children: [/* @__PURE__ */ S(Ot, {
|
|
2085
2085
|
ref: a,
|
|
2086
|
-
className:
|
|
2087
|
-
ownerState:
|
|
2088
|
-
...
|
|
2089
|
-
children:
|
|
2090
|
-
id:
|
|
2091
|
-
disabled:
|
|
2086
|
+
className: Q(A.root, b),
|
|
2087
|
+
ownerState: D,
|
|
2088
|
+
...Pe(Ue),
|
|
2089
|
+
children: ce({
|
|
2090
|
+
id: be,
|
|
2091
|
+
disabled: W,
|
|
2092
2092
|
fullWidth: !0,
|
|
2093
|
-
size:
|
|
2094
|
-
InputLabelProps:
|
|
2093
|
+
size: Se === "small" ? "small" : void 0,
|
|
2094
|
+
InputLabelProps: re(),
|
|
2095
2095
|
InputProps: {
|
|
2096
|
-
ref:
|
|
2097
|
-
className:
|
|
2098
|
-
startAdornment:
|
|
2099
|
-
onMouseDown: (v) =>
|
|
2100
|
-
...(
|
|
2101
|
-
endAdornment: /* @__PURE__ */
|
|
2102
|
-
className:
|
|
2103
|
-
ownerState:
|
|
2104
|
-
children: [
|
|
2105
|
-
...
|
|
2106
|
-
"aria-label":
|
|
2107
|
-
title:
|
|
2108
|
-
ownerState:
|
|
2096
|
+
ref: xo,
|
|
2097
|
+
className: A.inputRoot,
|
|
2098
|
+
startAdornment: C,
|
|
2099
|
+
onMouseDown: (v) => Io(v),
|
|
2100
|
+
...(qe || Ge) && {
|
|
2101
|
+
endAdornment: /* @__PURE__ */ Be(wt, {
|
|
2102
|
+
className: A.endAdornment,
|
|
2103
|
+
ownerState: D,
|
|
2104
|
+
children: [qe ? /* @__PURE__ */ S(St, {
|
|
2105
|
+
...yo(),
|
|
2106
|
+
"aria-label": L,
|
|
2107
|
+
title: L,
|
|
2108
|
+
ownerState: D,
|
|
2109
2109
|
...ro,
|
|
2110
|
-
className:
|
|
2111
|
-
children:
|
|
2112
|
-
}) : null,
|
|
2113
|
-
...
|
|
2114
|
-
disabled:
|
|
2115
|
-
"aria-label":
|
|
2116
|
-
title:
|
|
2117
|
-
ownerState:
|
|
2110
|
+
className: Q(A.clearIndicator, ro == null ? void 0 : ro.className),
|
|
2111
|
+
children: P
|
|
2112
|
+
}) : null, Ge ? /* @__PURE__ */ S(Pt, {
|
|
2113
|
+
...X(),
|
|
2114
|
+
disabled: W,
|
|
2115
|
+
"aria-label": ke ? T : s,
|
|
2116
|
+
title: ke ? T : s,
|
|
2117
|
+
ownerState: D,
|
|
2118
2118
|
...ao,
|
|
2119
|
-
className:
|
|
2120
|
-
children:
|
|
2119
|
+
className: Q(A.popupIndicator, ao == null ? void 0 : ao.className),
|
|
2120
|
+
children: Oe
|
|
2121
2121
|
}) : null]
|
|
2122
2122
|
})
|
|
2123
2123
|
}
|
|
2124
2124
|
},
|
|
2125
2125
|
inputProps: {
|
|
2126
|
-
className:
|
|
2127
|
-
disabled:
|
|
2126
|
+
className: A.input,
|
|
2127
|
+
disabled: W,
|
|
2128
2128
|
readOnly: He,
|
|
2129
2129
|
...eo()
|
|
2130
2130
|
}
|
|
2131
2131
|
})
|
|
2132
|
-
}),
|
|
2132
|
+
}), Me ? lo : null]
|
|
2133
2133
|
});
|
|
2134
2134
|
});
|
|
2135
|
-
process.env.NODE_ENV !== "production" && (
|
|
2135
|
+
process.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
2136
2136
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
2137
2137
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
2138
2138
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -2227,7 +2227,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
2227
2227
|
* The default value. Use when the component is not controlled.
|
|
2228
2228
|
* @default props.multiple ? [] : null
|
|
2229
2229
|
*/
|
|
2230
|
-
defaultValue:
|
|
2230
|
+
defaultValue: To(o.any, (e) => e.multiple && e.defaultValue !== void 0 && !Array.isArray(e.defaultValue) ? new Error(["MUI: The Autocomplete expects the `defaultValue` prop to be an array when `multiple={true}` or undefined.", `However, ${e.defaultValue} was provided.`].join(`
|
|
2231
2231
|
`)) : null),
|
|
2232
2232
|
/**
|
|
2233
2233
|
* If `true`, the input can't be cleared.
|
|
@@ -2365,7 +2365,7 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
2365
2365
|
* Set `-1` to disable the limit.
|
|
2366
2366
|
* @default -1
|
|
2367
2367
|
*/
|
|
2368
|
-
limitTags:
|
|
2368
|
+
limitTags: ot,
|
|
2369
2369
|
/**
|
|
2370
2370
|
* The component used to render the listbox.
|
|
2371
2371
|
* @default 'ul'
|
|
@@ -2559,111 +2559,22 @@ process.env.NODE_ENV !== "production" && (To.propTypes = {
|
|
|
2559
2559
|
* The value must have reference equality with the option in order to be selected.
|
|
2560
2560
|
* You can customize the equality behavior with the `isOptionEqualToValue` prop.
|
|
2561
2561
|
*/
|
|
2562
|
-
value:
|
|
2562
|
+
value: To(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(`
|
|
2563
2563
|
`)) : null)
|
|
2564
2564
|
});
|
|
2565
|
-
const
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
.jcDropdownLabel {
|
|
2579
|
-
white-space: nowrap;
|
|
2580
|
-
font-weight: bold;
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
.MuiAutocomplete-root {
|
|
2584
|
-
width: 100%;
|
|
2585
|
-
flex-grow: 1;
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
.MuiInputBase-input {
|
|
2589
|
-
padding: 0;
|
|
2590
|
-
padding-right: 0px !important;
|
|
2591
|
-
min-height: 0;
|
|
2592
|
-
}
|
|
2593
|
-
|
|
2594
|
-
.MuiInputBase-root {
|
|
2595
|
-
padding: 0 !important;
|
|
2596
|
-
|
|
2597
|
-
${a && No`
|
|
2598
|
-
display: flex;
|
|
2599
|
-
align-items: start;
|
|
2600
|
-
`};
|
|
2601
|
-
|
|
2602
|
-
input {
|
|
2603
|
-
height: 15px;
|
|
2604
|
-
padding: 2px 0px 2px 0px !important;
|
|
2605
|
-
width: 100%;
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
transition: 313ms all ease-out;
|
|
2609
|
-
border-radius: 0;
|
|
2610
|
-
border-bottom: 1px solid ${Jo.colors.gray};
|
|
2611
|
-
width: 100%;
|
|
2612
|
-
|
|
2613
|
-
.Mui-select {
|
|
2614
|
-
border: none !important;
|
|
2615
|
-
}
|
|
2616
|
-
|
|
2617
|
-
:hover,
|
|
2618
|
-
:focus-visible,
|
|
2619
|
-
&.Mui-focused {
|
|
2620
|
-
box-shadow: 0 -5px 4px -4px ${e} inset;
|
|
2621
|
-
}
|
|
2622
|
-
|
|
2623
|
-
.MuiButtonBase-root {
|
|
2624
|
-
max-height: 20px;
|
|
2625
|
-
padding: 1px 2px;
|
|
2626
|
-
margin: 1px 2px 2px 2px;
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
.MuiChip-label {
|
|
2630
|
-
font-size: 13px;
|
|
2631
|
-
padding: 0 6px;
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
.MuiSvgIcon-root {
|
|
2635
|
-
margin: 0;
|
|
2636
|
-
font-size: 13px;
|
|
2637
|
-
height: 13px;
|
|
2638
|
-
width: 13px;
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
.MuiAutocomplete-endAdornment {
|
|
2643
|
-
right: -7px !important;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
.MuiAutocomplete-clearIndicator {
|
|
2647
|
-
font-size: 13px;
|
|
2648
|
-
height: 19px;
|
|
2649
|
-
width: 19px;
|
|
2650
|
-
|
|
2651
|
-
svg {
|
|
2652
|
-
height: 15px;
|
|
2653
|
-
width: 15px;
|
|
2654
|
-
}
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
.MuiButtonBase-root {
|
|
2658
|
-
padding: 2px;
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
svg {
|
|
2662
|
-
height: 19px;
|
|
2663
|
-
width: 19px;
|
|
2664
|
-
}
|
|
2665
|
-
`
|
|
2666
|
-
})), rn = ({
|
|
2565
|
+
const Bt = "flex flex-nowrap items-center gap-[9px] font-['Roboto',sans-serif] min-w-[var(--dropdown-min-width)] [&_fieldset]:!border-none [&_.Mui-select]:!border-none [&_svg]:h-[19px] [&_svg]:w-[19px]", Dt = "[&_.jcDropdownLabel]:whitespace-nowrap [&_.jcDropdownLabel]:font-bold [&_.jcDropdownLabel]:self-start", Nt = "[&_.required]:mx-[2px] [&_.required]:text-[var(--dropdown-required-color)]", Et = "[&_.MuiAutocomplete-root]:w-full [&_.MuiAutocomplete-root]:grow [&_.MuiAutocomplete-root]:self-start [&_.MuiAutocomplete-endAdornment]:!-right-[7px] [&_.MuiAutocomplete-clearIndicator]:text-[13px] [&_.MuiAutocomplete-clearIndicator]:h-[19px] [&_.MuiAutocomplete-clearIndicator]:w-[19px] [&_.MuiAutocomplete-clearIndicator_svg]:h-[15px] [&_.MuiAutocomplete-clearIndicator_svg]:w-[15px]", zt = "[&_.MuiInputBase-input]:!p-0 [&_.MuiInputBase-input]:!pr-0 [&_.MuiInputBase-input]:min-h-0", Vt = "[&_.MuiInputBase-root]:!p-0 [&_.MuiInputBase-root]:transition-all [&_.MuiInputBase-root]:duration-[313ms] [&_.MuiInputBase-root]:ease-out [&_.MuiInputBase-root]:!rounded-none [&_.MuiInputBase-root]:border-b [&_.MuiInputBase-root]:border-b-[var(--dropdown-border-color)] [&_.MuiInputBase-root]:w-full [&_.MuiInputBase-root]:!shadow-[var(--dropdown-default-shadow)] [&_.MuiInputBase-root:hover]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root:focus-visible]:!shadow-[var(--dropdown-active-shadow)] [&_.MuiInputBase-root.Mui-focused]:!shadow-[var(--dropdown-active-shadow)]", Ft = "[&_.MuiInputBase-root_input]:h-[15px] [&_.MuiInputBase-root_input]:w-full [&_.MuiInputBase-root_input]:!py-[2px] [&_.MuiInputBase-root_input]:!px-0", jt = "[&_.MuiInputBase-root_.MuiChip-label]:text-[13px] [&_.MuiInputBase-root_.MuiChip-label]:px-[6px]", Ht = "[&_.MuiInputBase-root_.MuiSvgIcon-root]:m-0 [&_.MuiInputBase-root_.MuiSvgIcon-root]:text-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:h-[13px] [&_.MuiInputBase-root_.MuiSvgIcon-root]:w-[13px]", Ut = "[&_.MuiButtonBase-root]:p-[2px] [&_.MuiButtonBase-root]:max-h-5 [&_.MuiButtonBase-root]:px-[2px] [&_.MuiButtonBase-root]:py-px [&_.MuiButtonBase-root]:mx-[2px] [&_.MuiButtonBase-root]:mt-px [&_.MuiButtonBase-root]:mb-[2px]", Wt = "[&_.MuiFormHelperText-root]:!mt-px [&_.MuiFormHelperText-root]:!mr-0 [&_.MuiFormHelperText-root]:text-right", Kt = Ho(
|
|
2566
|
+
Bt,
|
|
2567
|
+
Dt,
|
|
2568
|
+
Nt,
|
|
2569
|
+
Et,
|
|
2570
|
+
zt,
|
|
2571
|
+
Vt,
|
|
2572
|
+
Ft,
|
|
2573
|
+
jt,
|
|
2574
|
+
Ht,
|
|
2575
|
+
Ut,
|
|
2576
|
+
Wt
|
|
2577
|
+
), qt = "[&_.MuiInputBase-root]:!flex [&_.MuiInputBase-root]:!items-start", bn = ({
|
|
2667
2578
|
label: e,
|
|
2668
2579
|
colon: n = !0,
|
|
2669
2580
|
options: a = [],
|
|
@@ -2673,47 +2584,61 @@ const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div",
|
|
|
2673
2584
|
onChange: h,
|
|
2674
2585
|
minWidth: x,
|
|
2675
2586
|
multiple: y,
|
|
2676
|
-
|
|
2587
|
+
required: w,
|
|
2588
|
+
error: b,
|
|
2589
|
+
helperText: P,
|
|
2590
|
+
...R
|
|
2677
2591
|
}) => {
|
|
2678
|
-
const
|
|
2679
|
-
|
|
2680
|
-
|
|
2592
|
+
const U = Jo(), L = {
|
|
2593
|
+
"--dropdown-min-width": x ?? "180px",
|
|
2594
|
+
"--dropdown-required-color": io.colors.gray,
|
|
2595
|
+
"--dropdown-border-color": io.colors.gray,
|
|
2596
|
+
"--dropdown-default-shadow": b ? `inset 0 -5px 4px -4px ${io.colors.error}` : "none",
|
|
2597
|
+
"--dropdown-active-shadow": `inset 0 -5px 4px -4px ${b ? io.colors.error : g || U.themeColor}`
|
|
2598
|
+
};
|
|
2599
|
+
return /* @__PURE__ */ Be(
|
|
2600
|
+
"div",
|
|
2681
2601
|
{
|
|
2682
|
-
className: "jcLabeledDropdown",
|
|
2683
|
-
|
|
2684
|
-
minWidth: x,
|
|
2685
|
-
multiple: y,
|
|
2602
|
+
className: Ho("jcLabeledDropdown", Kt, y && qt),
|
|
2603
|
+
style: L,
|
|
2686
2604
|
children: [
|
|
2687
|
-
!i && /* @__PURE__ */
|
|
2605
|
+
!i && /* @__PURE__ */ Be("span", { className: "jcDropdownLabel", children: [
|
|
2688
2606
|
e,
|
|
2607
|
+
w && /* @__PURE__ */ S("span", { className: "required", children: "*" }),
|
|
2689
2608
|
n && ":"
|
|
2690
2609
|
] }),
|
|
2691
|
-
!y &&
|
|
2692
|
-
|
|
2693
|
-
To,
|
|
2610
|
+
!y && /* @__PURE__ */ S(
|
|
2611
|
+
ko,
|
|
2694
2612
|
{
|
|
2613
|
+
...R,
|
|
2695
2614
|
options: a,
|
|
2696
|
-
onChange: (
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2615
|
+
onChange: (T, N) => {
|
|
2616
|
+
if (!h || Array.isArray(N)) return;
|
|
2617
|
+
const te = {
|
|
2618
|
+
...T,
|
|
2619
|
+
target: { ...T.target, value: (N == null ? void 0 : N.value) ?? "" }
|
|
2620
|
+
};
|
|
2621
|
+
h(te);
|
|
2622
|
+
},
|
|
2623
|
+
renderInput: (T) => /* @__PURE__ */ S(No, { ...T, error: b, helperText: P })
|
|
2702
2624
|
}
|
|
2703
2625
|
),
|
|
2704
|
-
y &&
|
|
2705
|
-
|
|
2706
|
-
To,
|
|
2626
|
+
y && /* @__PURE__ */ S(
|
|
2627
|
+
ko,
|
|
2707
2628
|
{
|
|
2629
|
+
...R,
|
|
2708
2630
|
multiple: !0,
|
|
2709
2631
|
disableCloseOnSelect: !0,
|
|
2710
2632
|
options: a,
|
|
2711
|
-
onChange: (
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2633
|
+
onChange: (T, N) => {
|
|
2634
|
+
if (!h || !Array.isArray(N)) return;
|
|
2635
|
+
const te = {
|
|
2636
|
+
...T,
|
|
2637
|
+
target: { ...T.target, value: N }
|
|
2638
|
+
};
|
|
2639
|
+
h(te);
|
|
2640
|
+
},
|
|
2641
|
+
renderInput: (T) => /* @__PURE__ */ S(No, { ...T, error: b, helperText: P })
|
|
2717
2642
|
}
|
|
2718
2643
|
)
|
|
2719
2644
|
]
|
|
@@ -2721,6 +2646,6 @@ const Et = ["colon", "borderFocusColor", "minWidth", "noLabel"], zt = Yo("div",
|
|
|
2721
2646
|
);
|
|
2722
2647
|
};
|
|
2723
2648
|
export {
|
|
2724
|
-
|
|
2725
|
-
|
|
2649
|
+
bn as LabeledDropdown,
|
|
2650
|
+
bn as default
|
|
2726
2651
|
};
|