kdpa-components 1.0.0 → 1.2.0
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/CHANGELOG.md +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import { P as n } from "./
|
|
5
|
-
import { g as
|
|
6
|
-
import { i as
|
|
7
|
-
import { C as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { M as
|
|
11
|
-
import {
|
|
12
|
-
import { u as kt } from "./useId-a21bd5c3.js";
|
|
1
|
+
import { j as At } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { a as d, _ as Ot } from "./extends-135d7828.js";
|
|
3
|
+
import * as C from "react";
|
|
4
|
+
import { g as It, c as He, j as v, P as n, a as nt } from "./identifier-2647f844.js";
|
|
5
|
+
import { g as yt, s as B, u as vt, c as he, a as Ct } from "./useThemeProps-ea792506.js";
|
|
6
|
+
import { i as rt, a as pe, o as ft, f as be, A as wt } from "./ArrowDropDown-07b9ccae.js";
|
|
7
|
+
import { C as Lt } from "./Close-db7afda5.js";
|
|
8
|
+
import { I as $t } from "./IconButton-48d87778.js";
|
|
9
|
+
import { M as Pt } from "./Popper-7adcd815.js";
|
|
10
|
+
import { M as St, i as kt } from "./Paper-00aea968.js";
|
|
11
|
+
import { u as Nt } from "./useId-a21bd5c3.js";
|
|
13
12
|
import { u as at } from "./useControlled-cc2d41cb.js";
|
|
14
13
|
import { u as Rt } from "./usePreviousProps-c1ae4548.js";
|
|
15
14
|
import { a as Fe } from "./useEventCallback-83a2883c.js";
|
|
16
|
-
import { s as
|
|
17
|
-
import { C as
|
|
15
|
+
import { s as Et } from "./useForkRef-0781dda0.js";
|
|
16
|
+
import { C as Dt } from "./Chip-e5751770.js";
|
|
18
17
|
import { c as gt } from "./chainPropTypes-004bf492.js";
|
|
19
|
-
function
|
|
18
|
+
function mt(t) {
|
|
20
19
|
return typeof t.normalize < "u" ? t.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : t;
|
|
21
20
|
}
|
|
22
21
|
function Mt(t = {}) {
|
|
23
22
|
const {
|
|
24
23
|
ignoreAccents: a = !0,
|
|
25
24
|
ignoreCase: u = !0,
|
|
26
|
-
limit:
|
|
25
|
+
limit: O,
|
|
27
26
|
matchFrom: k = "any",
|
|
28
27
|
stringify: S,
|
|
29
28
|
trim: P = !1
|
|
30
29
|
} = t;
|
|
31
30
|
return (h, {
|
|
32
31
|
inputValue: K,
|
|
33
|
-
getOptionLabel:
|
|
32
|
+
getOptionLabel: $
|
|
34
33
|
}) => {
|
|
35
|
-
let
|
|
36
|
-
u && (
|
|
37
|
-
const W =
|
|
38
|
-
let U = (S ||
|
|
39
|
-
return u && (U = U.toLowerCase()), a && (U =
|
|
34
|
+
let N = P ? K.trim() : K;
|
|
35
|
+
u && (N = N.toLowerCase()), a && (N = mt(N));
|
|
36
|
+
const W = N ? h.filter((le) => {
|
|
37
|
+
let U = (S || $)(le);
|
|
38
|
+
return u && (U = U.toLowerCase()), a && (U = mt(U)), k === "start" ? U.indexOf(N) === 0 : U.indexOf(N) > -1;
|
|
40
39
|
}) : h;
|
|
41
|
-
return typeof
|
|
40
|
+
return typeof O == "number" ? W.slice(0, O) : W;
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function lt(t, a) {
|
|
@@ -47,30 +46,30 @@ function lt(t, a) {
|
|
|
47
46
|
return u;
|
|
48
47
|
return -1;
|
|
49
48
|
}
|
|
50
|
-
const
|
|
49
|
+
const jt = Mt(), bt = 5, Vt = (t) => {
|
|
51
50
|
var a;
|
|
52
51
|
return t.current !== null && ((a = t.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
|
|
53
52
|
};
|
|
54
|
-
function
|
|
53
|
+
function Ft(t) {
|
|
55
54
|
const {
|
|
56
55
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
57
|
-
unstable_isActiveElementInListbox: a =
|
|
56
|
+
unstable_isActiveElementInListbox: a = Vt,
|
|
58
57
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
59
58
|
unstable_classNamePrefix: u = "Mui",
|
|
60
|
-
autoComplete:
|
|
59
|
+
autoComplete: O = !1,
|
|
61
60
|
autoHighlight: k = !1,
|
|
62
61
|
autoSelect: S = !1,
|
|
63
62
|
blurOnSelect: P = !1,
|
|
64
63
|
clearOnBlur: h = !t.freeSolo,
|
|
65
64
|
clearOnEscape: K = !1,
|
|
66
|
-
componentName:
|
|
67
|
-
defaultValue:
|
|
65
|
+
componentName: $ = "useAutocomplete",
|
|
66
|
+
defaultValue: N = t.multiple ? [] : null,
|
|
68
67
|
disableClearable: W = !1,
|
|
69
68
|
disableCloseOnSelect: le = !1,
|
|
70
69
|
disabled: U,
|
|
71
70
|
disabledItemsFocusable: ze = !1,
|
|
72
71
|
disableListWrap: Be = !1,
|
|
73
|
-
filterOptions: it =
|
|
72
|
+
filterOptions: it = jt,
|
|
74
73
|
filterSelectedOptions: xe = !1,
|
|
75
74
|
freeSolo: J = !1,
|
|
76
75
|
getOptionDisabled: Y,
|
|
@@ -96,29 +95,29 @@ function Vt(t) {
|
|
|
96
95
|
readOnly: Q = !1,
|
|
97
96
|
selectOnFocus: qe = !t.freeSolo,
|
|
98
97
|
value: Ke
|
|
99
|
-
} = t,
|
|
98
|
+
} = t, R = Nt(se);
|
|
100
99
|
let T = Ue;
|
|
101
100
|
T = (o) => {
|
|
102
101
|
const e = Ue(o);
|
|
103
102
|
if (typeof e != "string") {
|
|
104
103
|
if (process.env.NODE_ENV !== "production") {
|
|
105
104
|
const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
|
|
106
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
105
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${$} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
|
|
107
106
|
}
|
|
108
107
|
return String(e);
|
|
109
108
|
}
|
|
110
109
|
return e;
|
|
111
110
|
};
|
|
112
|
-
const ve =
|
|
111
|
+
const ve = C.useRef(!1), Ce = C.useRef(!0), b = C.useRef(null), j = C.useRef(null), [ce, Je] = C.useState(null), [D, de] = C.useState(-1), ke = k ? 0 : -1, A = C.useRef(ke), [s, Ne] = at({
|
|
113
112
|
controlled: Ke,
|
|
114
|
-
default:
|
|
115
|
-
name:
|
|
113
|
+
default: N,
|
|
114
|
+
name: $
|
|
116
115
|
}), [g, oe] = at({
|
|
117
116
|
controlled: pt,
|
|
118
117
|
default: "",
|
|
119
|
-
name:
|
|
118
|
+
name: $,
|
|
120
119
|
state: "inputValue"
|
|
121
|
-
}), [Z,
|
|
120
|
+
}), [Z, Re] = C.useState(!1), fe = C.useCallback((o, e) => {
|
|
122
121
|
if (!(f ? s.length < e.length : e !== null) && !h)
|
|
123
122
|
return;
|
|
124
123
|
let l;
|
|
@@ -134,36 +133,36 @@ function Vt(t) {
|
|
|
134
133
|
}, [T, g, f, X, oe, h, s]), [ee, Ee] = at({
|
|
135
134
|
controlled: Ge,
|
|
136
135
|
default: !1,
|
|
137
|
-
name:
|
|
136
|
+
name: $,
|
|
138
137
|
state: "open"
|
|
139
|
-
}), [Ye,
|
|
138
|
+
}), [Ye, De] = C.useState(!0), Me = !f && s != null && g === T(s), E = ee && !Q, x = E ? it(
|
|
140
139
|
Le.filter((o) => !(xe && (f ? s : [s]).some((e) => e !== null && _(o, e)))),
|
|
141
140
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
142
141
|
// i.e. the filter predicate always returns true
|
|
143
142
|
{
|
|
144
|
-
inputValue:
|
|
143
|
+
inputValue: Me && Ye ? "" : g,
|
|
145
144
|
getOptionLabel: T
|
|
146
145
|
}
|
|
147
146
|
) : [], V = Rt({
|
|
148
147
|
filteredOptions: x,
|
|
149
148
|
value: s
|
|
150
149
|
});
|
|
151
|
-
|
|
150
|
+
C.useEffect(() => {
|
|
152
151
|
const o = s !== V.value;
|
|
153
152
|
Z && !o || J && !o || fe(null, s);
|
|
154
153
|
}, [s, fe, Z, V.value, J]);
|
|
155
|
-
const
|
|
154
|
+
const $e = ee && x.length > 0 && !Q;
|
|
156
155
|
if (process.env.NODE_ENV !== "production" && s !== null && !J && Le.length > 0) {
|
|
157
156
|
const o = (f ? s : [s]).filter((e) => !Le.some((r) => _(r, e)));
|
|
158
|
-
o.length > 0 && console.warn([`MUI: The value provided to ${
|
|
157
|
+
o.length > 0 && console.warn([`MUI: The value provided to ${$} is invalid.`, `None of the options match with \`${o.length > 1 ? JSON.stringify(o) : JSON.stringify(o[0])}\`.`, "You can use the `isOptionEqualToValue` prop to customize the equality test."].join(`
|
|
159
158
|
`));
|
|
160
159
|
}
|
|
161
160
|
const ge = Fe((o) => {
|
|
162
|
-
o === -1 ?
|
|
161
|
+
o === -1 ? b.current.focus() : ce.querySelector(`[data-tag-index="${o}"]`).focus();
|
|
163
162
|
});
|
|
164
|
-
|
|
165
|
-
f &&
|
|
166
|
-
}, [s, f,
|
|
163
|
+
C.useEffect(() => {
|
|
164
|
+
f && D > s.length - 1 && (de(-1), ge(-1));
|
|
165
|
+
}, [s, f, D, ge]);
|
|
167
166
|
function Xe(o, e) {
|
|
168
167
|
if (!j.current || o === -1)
|
|
169
168
|
return -1;
|
|
@@ -183,7 +182,7 @@ function Vt(t) {
|
|
|
183
182
|
index: e,
|
|
184
183
|
reason: r = "auto"
|
|
185
184
|
}) => {
|
|
186
|
-
if (A.current = e, e === -1 ?
|
|
185
|
+
if (A.current = e, e === -1 ? b.current.removeAttribute("aria-activedescendant") : b.current.setAttribute("aria-activedescendant", `${R}-option-${e}`), we && we(o, e === -1 ? null : x[e], r), !j.current)
|
|
187
186
|
return;
|
|
188
187
|
const l = j.current.querySelector(`[role="option"].${u}-focused`);
|
|
189
188
|
l && (l.classList.remove(`${u}-focused`), l.classList.remove(`${u}-focusVisible`));
|
|
@@ -194,10 +193,10 @@ function Vt(t) {
|
|
|
194
193
|
c.scrollTop = 0;
|
|
195
194
|
return;
|
|
196
195
|
}
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
const
|
|
200
|
-
Ve >
|
|
196
|
+
const m = j.current.querySelector(`[data-option-index="${e}"]`);
|
|
197
|
+
if (m && (m.classList.add(`${u}-focused`), r === "keyboard" && m.classList.add(`${u}-focusVisible`), c.scrollHeight > c.clientHeight && r !== "mouse")) {
|
|
198
|
+
const y = m, M = c.clientHeight + c.scrollTop, Ve = y.offsetTop + y.offsetHeight;
|
|
199
|
+
Ve > M ? c.scrollTop = Ve - c.clientHeight : y.offsetTop - y.offsetHeight * (ue ? 1.3 : 0) < c.scrollTop && (c.scrollTop = y.offsetTop - y.offsetHeight * (ue ? 1.3 : 0));
|
|
201
200
|
}
|
|
202
201
|
}), H = Fe(({
|
|
203
202
|
event: o,
|
|
@@ -207,27 +206,27 @@ function Vt(t) {
|
|
|
207
206
|
}) => {
|
|
208
207
|
if (!E)
|
|
209
208
|
return;
|
|
210
|
-
const
|
|
211
|
-
const
|
|
209
|
+
const m = Xe((() => {
|
|
210
|
+
const y = x.length - 1;
|
|
212
211
|
if (e === "reset")
|
|
213
212
|
return ke;
|
|
214
213
|
if (e === "start")
|
|
215
214
|
return 0;
|
|
216
215
|
if (e === "end")
|
|
217
|
-
return
|
|
218
|
-
const
|
|
219
|
-
return
|
|
216
|
+
return y;
|
|
217
|
+
const M = A.current + e;
|
|
218
|
+
return M < 0 ? M === -1 && _e ? -1 : Be && A.current !== -1 || Math.abs(e) > 1 ? 0 : y : M > y ? M === y + 1 && _e ? -1 : Be || Math.abs(e) > 1 ? y : 0 : M;
|
|
220
219
|
})(), r);
|
|
221
220
|
if (F({
|
|
222
|
-
index:
|
|
221
|
+
index: m,
|
|
223
222
|
reason: l,
|
|
224
223
|
event: o
|
|
225
|
-
}),
|
|
226
|
-
if (
|
|
227
|
-
|
|
224
|
+
}), O && e !== "reset")
|
|
225
|
+
if (m === -1)
|
|
226
|
+
b.current.value = g;
|
|
228
227
|
else {
|
|
229
|
-
const
|
|
230
|
-
|
|
228
|
+
const y = T(x[m]);
|
|
229
|
+
b.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && b.current.setSelectionRange(g.length, y.length);
|
|
231
230
|
}
|
|
232
231
|
}), Qe = () => {
|
|
233
232
|
const o = (e, r) => {
|
|
@@ -240,7 +239,7 @@ function Vt(t) {
|
|
|
240
239
|
return !0;
|
|
241
240
|
}
|
|
242
241
|
return !1;
|
|
243
|
-
}, ne =
|
|
242
|
+
}, ne = C.useCallback(() => {
|
|
244
243
|
if (!E || Qe())
|
|
245
244
|
return;
|
|
246
245
|
const o = f ? s[0] : s;
|
|
@@ -286,40 +285,40 @@ function Vt(t) {
|
|
|
286
285
|
g,
|
|
287
286
|
f
|
|
288
287
|
]), Ze = Fe((o) => {
|
|
289
|
-
|
|
288
|
+
Et(j, o), o && ne();
|
|
290
289
|
});
|
|
291
|
-
process.env.NODE_ENV !== "production" &&
|
|
292
|
-
(!
|
|
293
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${
|
|
290
|
+
process.env.NODE_ENV !== "production" && C.useEffect(() => {
|
|
291
|
+
(!b.current || b.current.nodeName !== "INPUT") && (b.current && b.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${$} 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 (e.g. enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
292
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${b.current} while an HTMLInputElement was expected.`, `Instead, ${$} expects an input element.`, "", $ === "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(`
|
|
294
293
|
`)));
|
|
295
|
-
}, [
|
|
294
|
+
}, [$]), C.useEffect(() => {
|
|
296
295
|
ne();
|
|
297
296
|
}, [ne]);
|
|
298
297
|
const te = (o) => {
|
|
299
|
-
ee || (Ee(!0),
|
|
298
|
+
ee || (Ee(!0), De(!0), ye && ye(o));
|
|
300
299
|
}, G = (o, e) => {
|
|
301
300
|
ee && (Ee(!1), Ie && Ie(o, e));
|
|
302
301
|
}, q = (o, e, r, l) => {
|
|
303
302
|
if (f) {
|
|
304
|
-
if (s.length === e.length && s.every((c,
|
|
303
|
+
if (s.length === e.length && s.every((c, m) => c === e[m]))
|
|
305
304
|
return;
|
|
306
305
|
} else if (s === e)
|
|
307
306
|
return;
|
|
308
|
-
Oe && Oe(o, e, r, l),
|
|
309
|
-
}, re =
|
|
310
|
-
let c = r,
|
|
307
|
+
Oe && Oe(o, e, r, l), Ne(e);
|
|
308
|
+
}, re = C.useRef(!1), ie = (o, e, r = "selectOption", l = "options") => {
|
|
309
|
+
let c = r, m = e;
|
|
311
310
|
if (f) {
|
|
312
|
-
if (
|
|
313
|
-
const
|
|
314
|
-
|
|
311
|
+
if (m = Array.isArray(s) ? s.slice() : [], process.env.NODE_ENV !== "production") {
|
|
312
|
+
const M = m.filter((Ve) => _(e, Ve));
|
|
313
|
+
M.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${$} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${M.length} matches.`].join(`
|
|
315
314
|
`));
|
|
316
315
|
}
|
|
317
|
-
const
|
|
318
|
-
|
|
316
|
+
const y = lt(m, (M) => _(e, M));
|
|
317
|
+
y === -1 ? m.push(e) : l !== "freeSolo" && (m.splice(y, 1), c = "removeOption");
|
|
319
318
|
}
|
|
320
|
-
fe(o,
|
|
319
|
+
fe(o, m), q(o, m, c, {
|
|
321
320
|
option: e
|
|
322
|
-
}), !le && (!o || !o.ctrlKey && !o.metaKey) && G(o, c), (P === !0 || P === "touch" && re.current || P === "mouse" && !re.current) &&
|
|
321
|
+
}), !le && (!o || !o.ctrlKey && !o.metaKey) && G(o, c), (P === !0 || P === "touch" && re.current || P === "mouse" && !re.current) && b.current.blur();
|
|
323
322
|
};
|
|
324
323
|
function w(o, e) {
|
|
325
324
|
if (o === -1)
|
|
@@ -335,16 +334,16 @@ function Vt(t) {
|
|
|
335
334
|
return r;
|
|
336
335
|
}
|
|
337
336
|
}
|
|
338
|
-
const
|
|
337
|
+
const I = (o, e) => {
|
|
339
338
|
if (!f)
|
|
340
339
|
return;
|
|
341
340
|
g === "" && G(o, "toggleInput");
|
|
342
|
-
let r =
|
|
343
|
-
|
|
341
|
+
let r = D;
|
|
342
|
+
D === -1 ? g === "" && e === "previous" && (r = s.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === s.length && (r = -1)), r = w(r, e), de(r), ge(r);
|
|
344
343
|
}, z = (o) => {
|
|
345
344
|
ve.current = !0, oe(""), X && X(o, "", "clear"), q(o, f ? [] : null, "clear");
|
|
346
345
|
}, ct = (o) => (e) => {
|
|
347
|
-
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (
|
|
346
|
+
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (D !== -1 && ["ArrowLeft", "ArrowRight"].indexOf(e.key) === -1 && (de(-1), ge(-1)), e.which !== 229))
|
|
348
347
|
switch (e.key) {
|
|
349
348
|
case "Home":
|
|
350
349
|
E && We && (e.preventDefault(), H({
|
|
@@ -364,7 +363,7 @@ function Vt(t) {
|
|
|
364
363
|
break;
|
|
365
364
|
case "PageUp":
|
|
366
365
|
e.preventDefault(), H({
|
|
367
|
-
diff: -
|
|
366
|
+
diff: -bt,
|
|
368
367
|
direction: "previous",
|
|
369
368
|
reason: "keyboard",
|
|
370
369
|
event: e
|
|
@@ -372,7 +371,7 @@ function Vt(t) {
|
|
|
372
371
|
break;
|
|
373
372
|
case "PageDown":
|
|
374
373
|
e.preventDefault(), H({
|
|
375
|
-
diff:
|
|
374
|
+
diff: bt,
|
|
376
375
|
direction: "next",
|
|
377
376
|
reason: "keyboard",
|
|
378
377
|
event: e
|
|
@@ -395,34 +394,34 @@ function Vt(t) {
|
|
|
395
394
|
}), te(e);
|
|
396
395
|
break;
|
|
397
396
|
case "ArrowLeft":
|
|
398
|
-
|
|
397
|
+
I(e, "previous");
|
|
399
398
|
break;
|
|
400
399
|
case "ArrowRight":
|
|
401
|
-
|
|
400
|
+
I(e, "next");
|
|
402
401
|
break;
|
|
403
402
|
case "Enter":
|
|
404
403
|
if (A.current !== -1 && E) {
|
|
405
404
|
const r = x[A.current], l = Y ? Y(r) : !1;
|
|
406
405
|
if (e.preventDefault(), l)
|
|
407
406
|
return;
|
|
408
|
-
ie(e, r, "selectOption"),
|
|
407
|
+
ie(e, r, "selectOption"), O && b.current.setSelectionRange(b.current.value.length, b.current.value.length);
|
|
409
408
|
} else
|
|
410
|
-
J && g !== "" &&
|
|
409
|
+
J && g !== "" && Me === !1 && (f && e.preventDefault(), ie(e, g, "createOption", "freeSolo"));
|
|
411
410
|
break;
|
|
412
411
|
case "Escape":
|
|
413
412
|
E ? (e.preventDefault(), e.stopPropagation(), G(e, "escape")) : K && (g !== "" || f && s.length > 0) && (e.preventDefault(), e.stopPropagation(), z(e));
|
|
414
413
|
break;
|
|
415
414
|
case "Backspace":
|
|
416
415
|
if (f && !Q && g === "" && s.length > 0) {
|
|
417
|
-
const r =
|
|
416
|
+
const r = D === -1 ? s.length - 1 : D, l = s.slice();
|
|
418
417
|
l.splice(r, 1), q(e, l, "removeOption", {
|
|
419
418
|
option: s[r]
|
|
420
419
|
});
|
|
421
420
|
}
|
|
422
421
|
break;
|
|
423
422
|
case "Delete":
|
|
424
|
-
if (f && !Q && g === "" && s.length > 0 &&
|
|
425
|
-
const r =
|
|
423
|
+
if (f && !Q && g === "" && s.length > 0 && D !== -1) {
|
|
424
|
+
const r = D, l = s.slice();
|
|
426
425
|
l.splice(r, 1), q(e, l, "removeOption", {
|
|
427
426
|
option: s[r]
|
|
428
427
|
});
|
|
@@ -430,16 +429,16 @@ function Vt(t) {
|
|
|
430
429
|
break;
|
|
431
430
|
}
|
|
432
431
|
}, et = (o) => {
|
|
433
|
-
|
|
432
|
+
Re(!0), ut && !ve.current && te(o);
|
|
434
433
|
}, tt = (o) => {
|
|
435
434
|
if (a(j)) {
|
|
436
|
-
|
|
435
|
+
b.current.focus();
|
|
437
436
|
return;
|
|
438
437
|
}
|
|
439
|
-
|
|
438
|
+
Re(!1), Ce.current = !0, ve.current = !1, S && A.current !== -1 && E ? ie(o, x[A.current], "blur") : S && J && g !== "" ? ie(o, g, "blur", "freeSolo") : h && fe(o, s), G(o, "blur");
|
|
440
439
|
}, ot = (o) => {
|
|
441
440
|
const e = o.target.value;
|
|
442
|
-
g !== e && (oe(e),
|
|
441
|
+
g !== e && (oe(e), De(!1), X && X(o, e, "input")), e === "" ? !W && !f && q(o, null, "clear") : te(o);
|
|
443
442
|
}, je = (o) => {
|
|
444
443
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
445
444
|
A.current !== e && F({
|
|
@@ -461,14 +460,14 @@ function Vt(t) {
|
|
|
461
460
|
r.splice(o, 1), q(e, r, "removeOption", {
|
|
462
461
|
option: s[o]
|
|
463
462
|
});
|
|
464
|
-
},
|
|
463
|
+
}, me = (o) => {
|
|
465
464
|
ee ? G(o, "toggleInput") : te(o);
|
|
466
465
|
}, p = (o) => {
|
|
467
|
-
o.target.getAttribute("id") !==
|
|
466
|
+
o.target.getAttribute("id") !== R && o.preventDefault();
|
|
468
467
|
}, L = () => {
|
|
469
|
-
|
|
468
|
+
b.current.focus(), qe && Ce.current && b.current.selectionEnd - b.current.selectionStart === 0 && b.current.select(), Ce.current = !1;
|
|
470
469
|
}, ae = (o) => {
|
|
471
|
-
(g === "" || !ee) &&
|
|
470
|
+
(g === "" || !ee) && me(o);
|
|
472
471
|
};
|
|
473
472
|
let Ae = J && g.length > 0;
|
|
474
473
|
Ae = Ae || (f ? s.length > 0 : s !== null);
|
|
@@ -477,29 +476,29 @@ function Vt(t) {
|
|
|
477
476
|
const o = /* @__PURE__ */ new Map();
|
|
478
477
|
let e = !1;
|
|
479
478
|
dt = x.reduce((r, l, c) => {
|
|
480
|
-
const
|
|
481
|
-
return r.length > 0 && r[r.length - 1].group ===
|
|
479
|
+
const m = ue(l);
|
|
480
|
+
return r.length > 0 && r[r.length - 1].group === m ? r[r.length - 1].options.push(l) : (process.env.NODE_ENV !== "production" && (o.get(m) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${$} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(m, !0)), r.push({
|
|
482
481
|
key: c,
|
|
483
482
|
index: c,
|
|
484
|
-
group:
|
|
483
|
+
group: m,
|
|
485
484
|
options: [l]
|
|
486
485
|
})), r;
|
|
487
486
|
}, []);
|
|
488
487
|
}
|
|
489
488
|
return U && Z && tt(), {
|
|
490
489
|
getRootProps: (o = {}) => d({
|
|
491
|
-
"aria-owns":
|
|
490
|
+
"aria-owns": $e ? `${R}-listbox` : null
|
|
492
491
|
}, o, {
|
|
493
492
|
onKeyDown: ct(o),
|
|
494
493
|
onMouseDown: p,
|
|
495
494
|
onClick: L
|
|
496
495
|
}),
|
|
497
496
|
getInputLabelProps: () => ({
|
|
498
|
-
id: `${
|
|
499
|
-
htmlFor:
|
|
497
|
+
id: `${R}-label`,
|
|
498
|
+
htmlFor: R
|
|
500
499
|
}),
|
|
501
500
|
getInputProps: () => ({
|
|
502
|
-
id:
|
|
501
|
+
id: R,
|
|
503
502
|
value: g,
|
|
504
503
|
onBlur: tt,
|
|
505
504
|
onFocus: et,
|
|
@@ -508,13 +507,13 @@ function Vt(t) {
|
|
|
508
507
|
// if open then this is handled imperatively so don't let react override
|
|
509
508
|
// only have an opinion about this when closed
|
|
510
509
|
"aria-activedescendant": E ? "" : null,
|
|
511
|
-
"aria-autocomplete":
|
|
512
|
-
"aria-controls":
|
|
513
|
-
"aria-expanded":
|
|
510
|
+
"aria-autocomplete": O ? "both" : "list",
|
|
511
|
+
"aria-controls": $e ? `${R}-listbox` : void 0,
|
|
512
|
+
"aria-expanded": $e,
|
|
514
513
|
// Disable browser's suggestion that might overlap with the popup.
|
|
515
514
|
// Handle autocomplete but not autofill.
|
|
516
515
|
autoComplete: "off",
|
|
517
|
-
ref:
|
|
516
|
+
ref: b,
|
|
518
517
|
autoCapitalize: "none",
|
|
519
518
|
spellCheck: "false",
|
|
520
519
|
role: "combobox",
|
|
@@ -526,7 +525,7 @@ function Vt(t) {
|
|
|
526
525
|
}),
|
|
527
526
|
getPopupIndicatorProps: () => ({
|
|
528
527
|
tabIndex: -1,
|
|
529
|
-
onClick:
|
|
528
|
+
onClick: me
|
|
530
529
|
}),
|
|
531
530
|
getTagProps: ({
|
|
532
531
|
index: o
|
|
@@ -539,8 +538,8 @@ function Vt(t) {
|
|
|
539
538
|
}),
|
|
540
539
|
getListboxProps: () => ({
|
|
541
540
|
role: "listbox",
|
|
542
|
-
id: `${
|
|
543
|
-
"aria-labelledby": `${
|
|
541
|
+
id: `${R}-listbox`,
|
|
542
|
+
"aria-labelledby": `${R}-label`,
|
|
544
543
|
ref: Ze,
|
|
545
544
|
onMouseDown: (o) => {
|
|
546
545
|
o.preventDefault();
|
|
@@ -555,7 +554,7 @@ function Vt(t) {
|
|
|
555
554
|
key: T(e),
|
|
556
555
|
tabIndex: -1,
|
|
557
556
|
role: "option",
|
|
558
|
-
id: `${
|
|
557
|
+
id: `${R}-option-${o}`,
|
|
559
558
|
onMouseMove: je,
|
|
560
559
|
onClick: Se,
|
|
561
560
|
onTouchStart: Pe,
|
|
@@ -564,35 +563,35 @@ function Vt(t) {
|
|
|
564
563
|
"aria-selected": r
|
|
565
564
|
};
|
|
566
565
|
},
|
|
567
|
-
id:
|
|
566
|
+
id: R,
|
|
568
567
|
inputValue: g,
|
|
569
568
|
value: s,
|
|
570
569
|
dirty: Ae,
|
|
571
570
|
expanded: E && ce,
|
|
572
571
|
popupOpen: E,
|
|
573
|
-
focused: Z ||
|
|
572
|
+
focused: Z || D !== -1,
|
|
574
573
|
anchorEl: ce,
|
|
575
574
|
setAnchorEl: Je,
|
|
576
|
-
focusedTag:
|
|
575
|
+
focusedTag: D,
|
|
577
576
|
groupedOptions: dt
|
|
578
577
|
};
|
|
579
578
|
}
|
|
580
|
-
function
|
|
581
|
-
return
|
|
579
|
+
function Ht(t) {
|
|
580
|
+
return It("MuiListSubheader", t);
|
|
582
581
|
}
|
|
583
|
-
|
|
584
|
-
const
|
|
582
|
+
yt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]);
|
|
583
|
+
const zt = ["className", "color", "component", "disableGutters", "disableSticky", "inset"], Bt = (t) => {
|
|
585
584
|
const {
|
|
586
585
|
classes: a,
|
|
587
586
|
color: u,
|
|
588
|
-
disableGutters:
|
|
587
|
+
disableGutters: O,
|
|
589
588
|
inset: k,
|
|
590
589
|
disableSticky: S
|
|
591
590
|
} = t, P = {
|
|
592
|
-
root: ["root", u !== "default" && `color${He(u)}`, !
|
|
591
|
+
root: ["root", u !== "default" && `color${He(u)}`, !O && "gutters", k && "inset", !S && "sticky"]
|
|
593
592
|
};
|
|
594
|
-
return
|
|
595
|
-
},
|
|
593
|
+
return Ct(P, Ht, a);
|
|
594
|
+
}, Ut = B("li", {
|
|
596
595
|
name: "MuiListSubheader",
|
|
597
596
|
slot: "Root",
|
|
598
597
|
overridesResolver: (t, a) => {
|
|
@@ -626,8 +625,8 @@ const Ht = ["className", "color", "component", "disableGutters", "disableSticky"
|
|
|
626
625
|
top: 0,
|
|
627
626
|
zIndex: 1,
|
|
628
627
|
backgroundColor: (t.vars || t).palette.background.paper
|
|
629
|
-
})), st = /* @__PURE__ */
|
|
630
|
-
const
|
|
628
|
+
})), st = /* @__PURE__ */ C.forwardRef(function(a, u) {
|
|
629
|
+
const O = vt({
|
|
631
630
|
props: a,
|
|
632
631
|
name: "MuiListSubheader"
|
|
633
632
|
}), {
|
|
@@ -636,20 +635,20 @@ const Ht = ["className", "color", "component", "disableGutters", "disableSticky"
|
|
|
636
635
|
component: P = "li",
|
|
637
636
|
disableGutters: h = !1,
|
|
638
637
|
disableSticky: K = !1,
|
|
639
|
-
inset:
|
|
640
|
-
} =
|
|
638
|
+
inset: $ = !1
|
|
639
|
+
} = O, N = Ot(O, zt), W = d({}, O, {
|
|
641
640
|
color: S,
|
|
642
641
|
component: P,
|
|
643
642
|
disableGutters: h,
|
|
644
643
|
disableSticky: K,
|
|
645
|
-
inset:
|
|
646
|
-
}), le =
|
|
647
|
-
return /* @__PURE__ */
|
|
644
|
+
inset: $
|
|
645
|
+
}), le = Bt(W);
|
|
646
|
+
return /* @__PURE__ */ v.jsx(Ut, d({
|
|
648
647
|
as: P,
|
|
649
648
|
className: he(le.root, k),
|
|
650
649
|
ref: u,
|
|
651
650
|
ownerState: W
|
|
652
|
-
},
|
|
651
|
+
}, N));
|
|
653
652
|
});
|
|
654
653
|
st.muiSkipListHighlight = !0;
|
|
655
654
|
process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
@@ -699,32 +698,32 @@ process.env.NODE_ENV !== "production" && (st.propTypes = {
|
|
|
699
698
|
*/
|
|
700
699
|
sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
|
|
701
700
|
});
|
|
702
|
-
const
|
|
703
|
-
function
|
|
704
|
-
return
|
|
701
|
+
const Wt = st;
|
|
702
|
+
function _t(t) {
|
|
703
|
+
return It("MuiAutocomplete", t);
|
|
705
704
|
}
|
|
706
|
-
const
|
|
705
|
+
const Gt = yt("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"]), i = Gt;
|
|
707
706
|
var ht, xt;
|
|
708
|
-
const
|
|
707
|
+
const qt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "ChipProps", "className", "clearIcon", "clearOnBlur", "clearOnEscape", "clearText", "closeText", "componentsProps", "defaultValue", "disableClearable", "disableCloseOnSelect", "disabled", "disabledItemsFocusable", "disableListWrap", "disablePortal", "filterOptions", "filterSelectedOptions", "forcePopupIcon", "freeSolo", "fullWidth", "getLimitTagsText", "getOptionDisabled", "getOptionLabel", "isOptionEqualToValue", "groupBy", "handleHomeEndKeys", "id", "includeInputInList", "inputValue", "limitTags", "ListboxComponent", "ListboxProps", "loading", "loadingText", "multiple", "noOptionsText", "onChange", "onClose", "onHighlightChange", "onInputChange", "onOpen", "open", "openOnFocus", "openText", "options", "PaperComponent", "PopperComponent", "popupIcon", "readOnly", "renderGroup", "renderInput", "renderOption", "renderTags", "selectOnFocus", "size", "slotProps", "value"], Kt = (t) => {
|
|
709
708
|
const {
|
|
710
709
|
classes: a,
|
|
711
710
|
disablePortal: u,
|
|
712
|
-
expanded:
|
|
711
|
+
expanded: O,
|
|
713
712
|
focused: k,
|
|
714
713
|
fullWidth: S,
|
|
715
714
|
hasClearIcon: P,
|
|
716
715
|
hasPopupIcon: h,
|
|
717
716
|
inputFocused: K,
|
|
718
|
-
popupOpen:
|
|
719
|
-
size:
|
|
717
|
+
popupOpen: $,
|
|
718
|
+
size: N
|
|
720
719
|
} = t, W = {
|
|
721
|
-
root: ["root",
|
|
720
|
+
root: ["root", O && "expanded", k && "focused", S && "fullWidth", P && "hasClearIcon", h && "hasPopupIcon"],
|
|
722
721
|
inputRoot: ["inputRoot"],
|
|
723
722
|
input: ["input", K && "inputFocused"],
|
|
724
|
-
tag: ["tag", `tagSize${He(
|
|
723
|
+
tag: ["tag", `tagSize${He(N)}`],
|
|
725
724
|
endAdornment: ["endAdornment"],
|
|
726
725
|
clearIndicator: ["clearIndicator"],
|
|
727
|
-
popupIndicator: ["popupIndicator",
|
|
726
|
+
popupIndicator: ["popupIndicator", $ && "popupIndicatorOpen"],
|
|
728
727
|
popper: ["popper", u && "popperDisablePortal"],
|
|
729
728
|
paper: ["paper"],
|
|
730
729
|
listbox: ["listbox"],
|
|
@@ -734,15 +733,15 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
734
733
|
groupLabel: ["groupLabel"],
|
|
735
734
|
groupUl: ["groupUl"]
|
|
736
735
|
};
|
|
737
|
-
return
|
|
738
|
-
},
|
|
736
|
+
return Ct(W, _t, a);
|
|
737
|
+
}, Jt = B("div", {
|
|
739
738
|
name: "MuiAutocomplete",
|
|
740
739
|
slot: "Root",
|
|
741
740
|
overridesResolver: (t, a) => {
|
|
742
741
|
const {
|
|
743
742
|
ownerState: u
|
|
744
743
|
} = t, {
|
|
745
|
-
fullWidth:
|
|
744
|
+
fullWidth: O,
|
|
746
745
|
hasClearIcon: k,
|
|
747
746
|
hasPopupIcon: S,
|
|
748
747
|
inputFocused: P,
|
|
@@ -758,7 +757,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
758
757
|
[`& .${i.input}`]: a.input
|
|
759
758
|
}, {
|
|
760
759
|
[`& .${i.input}`]: P && a.inputFocused
|
|
761
|
-
}, a.root,
|
|
760
|
+
}, a.root, O && a.fullWidth, S && a.hasPopupIcon, k && a.hasClearIcon];
|
|
762
761
|
}
|
|
763
762
|
})(({
|
|
764
763
|
ownerState: t
|
|
@@ -795,14 +794,14 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
795
794
|
minWidth: 30
|
|
796
795
|
}
|
|
797
796
|
},
|
|
798
|
-
[`& .${
|
|
797
|
+
[`& .${rt.root}`]: {
|
|
799
798
|
paddingBottom: 1,
|
|
800
799
|
"& .MuiInput-input": {
|
|
801
800
|
padding: "4px 4px 4px 0px"
|
|
802
801
|
}
|
|
803
802
|
},
|
|
804
|
-
[`& .${
|
|
805
|
-
[`& .${
|
|
803
|
+
[`& .${rt.root}.${pe.sizeSmall}`]: {
|
|
804
|
+
[`& .${rt.input}`]: {
|
|
806
805
|
padding: "2px 4px 3px 0"
|
|
807
806
|
}
|
|
808
807
|
},
|
|
@@ -831,7 +830,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
831
830
|
padding: "2.5px 4px 2.5px 8px"
|
|
832
831
|
}
|
|
833
832
|
},
|
|
834
|
-
[`& .${
|
|
833
|
+
[`& .${be.root}`]: {
|
|
835
834
|
paddingTop: 19,
|
|
836
835
|
paddingLeft: 8,
|
|
837
836
|
[`.${i.hasPopupIcon}&, .${i.hasClearIcon}&`]: {
|
|
@@ -840,23 +839,23 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
840
839
|
[`.${i.hasPopupIcon}.${i.hasClearIcon}&`]: {
|
|
841
840
|
paddingRight: 52 + 4 + 9
|
|
842
841
|
},
|
|
843
|
-
[`& .${
|
|
842
|
+
[`& .${be.input}`]: {
|
|
844
843
|
padding: "7px 4px"
|
|
845
844
|
},
|
|
846
845
|
[`& .${i.endAdornment}`]: {
|
|
847
846
|
right: 9
|
|
848
847
|
}
|
|
849
848
|
},
|
|
850
|
-
[`& .${
|
|
849
|
+
[`& .${be.root}.${pe.sizeSmall}`]: {
|
|
851
850
|
paddingBottom: 1,
|
|
852
|
-
[`& .${
|
|
851
|
+
[`& .${be.input}`]: {
|
|
853
852
|
padding: "2.5px 4px"
|
|
854
853
|
}
|
|
855
854
|
},
|
|
856
855
|
[`& .${pe.hiddenLabel}`]: {
|
|
857
856
|
paddingTop: 8
|
|
858
857
|
},
|
|
859
|
-
[`& .${
|
|
858
|
+
[`& .${be.root}.${pe.hiddenLabel}`]: {
|
|
860
859
|
paddingTop: 0,
|
|
861
860
|
paddingBottom: 0,
|
|
862
861
|
[`& .${i.input}`]: {
|
|
@@ -864,7 +863,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
864
863
|
paddingBottom: 17
|
|
865
864
|
}
|
|
866
865
|
},
|
|
867
|
-
[`& .${
|
|
866
|
+
[`& .${be.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
|
|
868
867
|
[`& .${i.input}`]: {
|
|
869
868
|
paddingTop: 8,
|
|
870
869
|
paddingBottom: 9
|
|
@@ -877,7 +876,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
877
876
|
}, t.inputFocused && {
|
|
878
877
|
opacity: 1
|
|
879
878
|
})
|
|
880
|
-
})),
|
|
879
|
+
})), Yt = B("div", {
|
|
881
880
|
name: "MuiAutocomplete",
|
|
882
881
|
slot: "EndAdornment",
|
|
883
882
|
overridesResolver: (t, a) => a.endAdornment
|
|
@@ -887,7 +886,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
887
886
|
right: 0,
|
|
888
887
|
top: "calc(50% - 14px)"
|
|
889
888
|
// Center vertically
|
|
890
|
-
}),
|
|
889
|
+
}), Xt = B($t, {
|
|
891
890
|
name: "MuiAutocomplete",
|
|
892
891
|
slot: "ClearIndicator",
|
|
893
892
|
overridesResolver: (t, a) => a.clearIndicator
|
|
@@ -895,7 +894,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
895
894
|
marginRight: -2,
|
|
896
895
|
padding: 4,
|
|
897
896
|
visibility: "hidden"
|
|
898
|
-
}),
|
|
897
|
+
}), Qt = B($t, {
|
|
899
898
|
name: "MuiAutocomplete",
|
|
900
899
|
slot: "PopupIndicator",
|
|
901
900
|
overridesResolver: ({
|
|
@@ -908,7 +907,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
908
907
|
marginRight: -2
|
|
909
908
|
}, t.popupOpen && {
|
|
910
909
|
transform: "rotate(180deg)"
|
|
911
|
-
})),
|
|
910
|
+
})), Zt = B(Pt, {
|
|
912
911
|
name: "MuiAutocomplete",
|
|
913
912
|
slot: "Popper",
|
|
914
913
|
overridesResolver: (t, a) => {
|
|
@@ -926,7 +925,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
926
925
|
zIndex: (t.vars || t).zIndex.modal
|
|
927
926
|
}, a.disablePortal && {
|
|
928
927
|
position: "absolute"
|
|
929
|
-
})),
|
|
928
|
+
})), eo = B(St, {
|
|
930
929
|
name: "MuiAutocomplete",
|
|
931
930
|
slot: "Paper",
|
|
932
931
|
overridesResolver: (t, a) => a.paper
|
|
@@ -934,7 +933,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
934
933
|
theme: t
|
|
935
934
|
}) => d({}, t.typography.body1, {
|
|
936
935
|
overflow: "auto"
|
|
937
|
-
})),
|
|
936
|
+
})), to = B("div", {
|
|
938
937
|
name: "MuiAutocomplete",
|
|
939
938
|
slot: "Loading",
|
|
940
939
|
overridesResolver: (t, a) => a.loading
|
|
@@ -943,7 +942,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
943
942
|
}) => ({
|
|
944
943
|
color: (t.vars || t).palette.text.secondary,
|
|
945
944
|
padding: "14px 16px"
|
|
946
|
-
})),
|
|
945
|
+
})), oo = B("div", {
|
|
947
946
|
name: "MuiAutocomplete",
|
|
948
947
|
slot: "NoOptions",
|
|
949
948
|
overridesResolver: (t, a) => a.noOptions
|
|
@@ -952,7 +951,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
952
951
|
}) => ({
|
|
953
952
|
color: (t.vars || t).palette.text.secondary,
|
|
954
953
|
padding: "14px 16px"
|
|
955
|
-
})),
|
|
954
|
+
})), no = B("div", {
|
|
956
955
|
name: "MuiAutocomplete",
|
|
957
956
|
slot: "Listbox",
|
|
958
957
|
overridesResolver: (t, a) => a.listbox
|
|
@@ -997,20 +996,20 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
997
996
|
backgroundColor: (t.vars || t).palette.action.focus
|
|
998
997
|
},
|
|
999
998
|
'&[aria-selected="true"]': {
|
|
1000
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` :
|
|
999
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : nt(t.palette.primary.main, t.palette.action.selectedOpacity),
|
|
1001
1000
|
[`&.${i.focused}`]: {
|
|
1002
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` :
|
|
1001
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : nt(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
1003
1002
|
// Reset on touch devices, it doesn't add specificity
|
|
1004
1003
|
"@media (hover: none)": {
|
|
1005
1004
|
backgroundColor: (t.vars || t).palette.action.selected
|
|
1006
1005
|
}
|
|
1007
1006
|
},
|
|
1008
1007
|
[`&.${i.focusVisible}`]: {
|
|
1009
|
-
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` :
|
|
1008
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : nt(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
1010
1009
|
}
|
|
1011
1010
|
}
|
|
1012
1011
|
}
|
|
1013
|
-
})),
|
|
1012
|
+
})), ro = B(Wt, {
|
|
1014
1013
|
name: "MuiAutocomplete",
|
|
1015
1014
|
slot: "GroupLabel",
|
|
1016
1015
|
overridesResolver: (t, a) => a.groupLabel
|
|
@@ -1019,7 +1018,7 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1019
1018
|
}) => ({
|
|
1020
1019
|
backgroundColor: (t.vars || t).palette.background.paper,
|
|
1021
1020
|
top: -8
|
|
1022
|
-
})),
|
|
1021
|
+
})), ao = B("ul", {
|
|
1023
1022
|
name: "MuiAutocomplete",
|
|
1024
1023
|
slot: "GroupUl",
|
|
1025
1024
|
overridesResolver: (t, a) => a.groupUl
|
|
@@ -1028,19 +1027,19 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1028
1027
|
[`& .${i.option}`]: {
|
|
1029
1028
|
paddingLeft: 24
|
|
1030
1029
|
}
|
|
1031
|
-
}), Tt = /* @__PURE__ */
|
|
1032
|
-
var
|
|
1033
|
-
const h =
|
|
1030
|
+
}), Tt = /* @__PURE__ */ C.forwardRef(function(a, u) {
|
|
1031
|
+
var O, k, S, P;
|
|
1032
|
+
const h = vt({
|
|
1034
1033
|
props: a,
|
|
1035
1034
|
name: "MuiAutocomplete"
|
|
1036
1035
|
}), {
|
|
1037
1036
|
autoComplete: K = !1,
|
|
1038
|
-
autoHighlight:
|
|
1039
|
-
autoSelect:
|
|
1037
|
+
autoHighlight: $ = !1,
|
|
1038
|
+
autoSelect: N = !1,
|
|
1040
1039
|
blurOnSelect: W = !1,
|
|
1041
1040
|
ChipProps: le,
|
|
1042
1041
|
className: U,
|
|
1043
|
-
clearIcon: ze = ht || (ht = /* @__PURE__ */
|
|
1042
|
+
clearIcon: ze = ht || (ht = /* @__PURE__ */ v.jsx(Lt, {
|
|
1044
1043
|
fontSize: "small"
|
|
1045
1044
|
})),
|
|
1046
1045
|
clearOnBlur: Be = !h.freeSolo,
|
|
@@ -1070,34 +1069,34 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1070
1069
|
limitTags: Q = -1,
|
|
1071
1070
|
ListboxComponent: qe = "ul",
|
|
1072
1071
|
ListboxProps: Ke,
|
|
1073
|
-
loading:
|
|
1072
|
+
loading: R = !1,
|
|
1074
1073
|
loadingText: T = "Loading…",
|
|
1075
1074
|
multiple: ve = !1,
|
|
1076
|
-
noOptionsText:
|
|
1077
|
-
openOnFocus:
|
|
1075
|
+
noOptionsText: Ce = "No options",
|
|
1076
|
+
openOnFocus: b = !1,
|
|
1078
1077
|
openText: j = "Open",
|
|
1079
1078
|
PaperComponent: ce = St,
|
|
1080
1079
|
PopperComponent: Je = Pt,
|
|
1081
|
-
popupIcon:
|
|
1080
|
+
popupIcon: D = xt || (xt = /* @__PURE__ */ v.jsx(wt, {})),
|
|
1082
1081
|
readOnly: de = !1,
|
|
1083
1082
|
renderGroup: ke,
|
|
1084
1083
|
renderInput: A,
|
|
1085
1084
|
renderOption: s,
|
|
1086
|
-
renderTags:
|
|
1085
|
+
renderTags: Ne,
|
|
1087
1086
|
selectOnFocus: g = !h.freeSolo,
|
|
1088
1087
|
size: oe = "medium",
|
|
1089
1088
|
slotProps: Z = {}
|
|
1090
|
-
} = h,
|
|
1089
|
+
} = h, Re = Ot(h, qt), {
|
|
1091
1090
|
getRootProps: fe,
|
|
1092
1091
|
getInputProps: ee,
|
|
1093
1092
|
getInputLabelProps: Ee,
|
|
1094
1093
|
getPopupIndicatorProps: Ye,
|
|
1095
|
-
getClearProps:
|
|
1096
|
-
getTagProps:
|
|
1094
|
+
getClearProps: De,
|
|
1095
|
+
getTagProps: Me,
|
|
1097
1096
|
getListboxProps: E,
|
|
1098
1097
|
getOptionProps: x,
|
|
1099
1098
|
value: V,
|
|
1100
|
-
dirty:
|
|
1099
|
+
dirty: $e,
|
|
1101
1100
|
expanded: ge,
|
|
1102
1101
|
id: Xe,
|
|
1103
1102
|
popupOpen: F,
|
|
@@ -1107,9 +1106,9 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1107
1106
|
setAnchorEl: Ze,
|
|
1108
1107
|
inputValue: te,
|
|
1109
1108
|
groupedOptions: G
|
|
1110
|
-
} =
|
|
1109
|
+
} = Ft(d({}, h, {
|
|
1111
1110
|
componentName: "Autocomplete"
|
|
1112
|
-
})), q = !ue && !se &&
|
|
1111
|
+
})), q = !ue && !se && $e && !de, re = (!Ie || Oe === !0) && Oe !== !1, {
|
|
1113
1112
|
onMouseDown: ie
|
|
1114
1113
|
} = ee(), w = d({}, h, {
|
|
1115
1114
|
disablePortal: _,
|
|
@@ -1121,14 +1120,14 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1121
1120
|
inputFocused: Qe === -1,
|
|
1122
1121
|
popupOpen: F,
|
|
1123
1122
|
size: oe
|
|
1124
|
-
}),
|
|
1123
|
+
}), I = Kt(w);
|
|
1125
1124
|
let z;
|
|
1126
1125
|
if (ve && V.length > 0) {
|
|
1127
1126
|
const p = (L) => d({
|
|
1128
|
-
className:
|
|
1127
|
+
className: I.tag,
|
|
1129
1128
|
disabled: se
|
|
1130
|
-
},
|
|
1131
|
-
|
|
1129
|
+
}, Me(L));
|
|
1130
|
+
Ne ? z = Ne(V, p, w) : z = V.map((L, ae) => /* @__PURE__ */ v.jsx(Dt, d({
|
|
1132
1131
|
label: ye(L),
|
|
1133
1132
|
size: oe
|
|
1134
1133
|
}, p({
|
|
@@ -1137,23 +1136,23 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1137
1136
|
}
|
|
1138
1137
|
if (Q > -1 && Array.isArray(z)) {
|
|
1139
1138
|
const p = z.length - Q;
|
|
1140
|
-
!H && p > 0 && (z = z.splice(0, Q), z.push(/* @__PURE__ */
|
|
1141
|
-
className:
|
|
1139
|
+
!H && p > 0 && (z = z.splice(0, Q), z.push(/* @__PURE__ */ v.jsx("span", {
|
|
1140
|
+
className: I.tag,
|
|
1142
1141
|
children: X(p)
|
|
1143
1142
|
}, z.length)));
|
|
1144
1143
|
}
|
|
1145
|
-
const et = ke || ((p) => /* @__PURE__ */
|
|
1146
|
-
children: [/* @__PURE__ */
|
|
1147
|
-
className:
|
|
1144
|
+
const et = ke || ((p) => /* @__PURE__ */ v.jsxs("li", {
|
|
1145
|
+
children: [/* @__PURE__ */ v.jsx(ro, {
|
|
1146
|
+
className: I.groupLabel,
|
|
1148
1147
|
ownerState: w,
|
|
1149
1148
|
component: "div",
|
|
1150
1149
|
children: p.group
|
|
1151
|
-
}), /* @__PURE__ */
|
|
1152
|
-
className:
|
|
1150
|
+
}), /* @__PURE__ */ v.jsx(ao, {
|
|
1151
|
+
className: I.groupUl,
|
|
1153
1152
|
ownerState: w,
|
|
1154
1153
|
children: p.children
|
|
1155
1154
|
})]
|
|
1156
|
-
}, p.key)), ot = s || ((p, L) => /* @__PURE__ */
|
|
1155
|
+
}, p.key)), ot = s || ((p, L) => /* @__PURE__ */ v.jsx("li", d({}, p, {
|
|
1157
1156
|
children: ye(L)
|
|
1158
1157
|
}))), je = (p, L) => {
|
|
1159
1158
|
const ae = x({
|
|
@@ -1161,19 +1160,19 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1161
1160
|
index: L
|
|
1162
1161
|
});
|
|
1163
1162
|
return ot(d({}, ae, {
|
|
1164
|
-
className:
|
|
1163
|
+
className: I.option
|
|
1165
1164
|
}), p, {
|
|
1166
1165
|
selected: ae["aria-selected"],
|
|
1167
1166
|
index: L,
|
|
1168
1167
|
inputValue: te
|
|
1169
1168
|
});
|
|
1170
|
-
}, Pe = (
|
|
1171
|
-
return /* @__PURE__ */
|
|
1172
|
-
children: [/* @__PURE__ */
|
|
1169
|
+
}, Pe = (O = Z.clearIndicator) != null ? O : Y.clearIndicator, Se = (k = Z.paper) != null ? k : Y.paper, Te = (S = Z.popper) != null ? S : Y.popper, me = (P = Z.popupIndicator) != null ? P : Y.popupIndicator;
|
|
1170
|
+
return /* @__PURE__ */ v.jsxs(C.Fragment, {
|
|
1171
|
+
children: [/* @__PURE__ */ v.jsx(Jt, d({
|
|
1173
1172
|
ref: u,
|
|
1174
|
-
className: he(
|
|
1173
|
+
className: he(I.root, U),
|
|
1175
1174
|
ownerState: w
|
|
1176
|
-
}, fe(
|
|
1175
|
+
}, fe(Re), {
|
|
1177
1176
|
children: A({
|
|
1178
1177
|
id: Xe,
|
|
1179
1178
|
disabled: se,
|
|
@@ -1182,40 +1181,40 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1182
1181
|
InputLabelProps: Ee(),
|
|
1183
1182
|
InputProps: d({
|
|
1184
1183
|
ref: Ze,
|
|
1185
|
-
className:
|
|
1184
|
+
className: I.inputRoot,
|
|
1186
1185
|
startAdornment: z,
|
|
1187
1186
|
onClick: (p) => {
|
|
1188
1187
|
p.target === p.currentTarget && ie(p);
|
|
1189
1188
|
}
|
|
1190
1189
|
}, (q || re) && {
|
|
1191
|
-
endAdornment: /* @__PURE__ */
|
|
1192
|
-
className:
|
|
1190
|
+
endAdornment: /* @__PURE__ */ v.jsxs(Yt, {
|
|
1191
|
+
className: I.endAdornment,
|
|
1193
1192
|
ownerState: w,
|
|
1194
|
-
children: [q ? /* @__PURE__ */
|
|
1193
|
+
children: [q ? /* @__PURE__ */ v.jsx(Xt, d({}, De(), {
|
|
1195
1194
|
"aria-label": xe,
|
|
1196
1195
|
title: xe,
|
|
1197
1196
|
ownerState: w
|
|
1198
1197
|
}, Pe, {
|
|
1199
|
-
className: he(
|
|
1198
|
+
className: he(I.clearIndicator, Pe == null ? void 0 : Pe.className),
|
|
1200
1199
|
children: ze
|
|
1201
|
-
})) : null, re ? /* @__PURE__ */
|
|
1200
|
+
})) : null, re ? /* @__PURE__ */ v.jsx(Qt, d({}, Ye(), {
|
|
1202
1201
|
disabled: se,
|
|
1203
1202
|
"aria-label": F ? J : j,
|
|
1204
1203
|
title: F ? J : j,
|
|
1205
1204
|
ownerState: w
|
|
1206
|
-
},
|
|
1207
|
-
className: he(
|
|
1208
|
-
children:
|
|
1205
|
+
}, me, {
|
|
1206
|
+
className: he(I.popupIndicator, me == null ? void 0 : me.className),
|
|
1207
|
+
children: D
|
|
1209
1208
|
})) : null]
|
|
1210
1209
|
})
|
|
1211
1210
|
}),
|
|
1212
1211
|
inputProps: d({
|
|
1213
|
-
className:
|
|
1212
|
+
className: I.input,
|
|
1214
1213
|
disabled: se,
|
|
1215
1214
|
readOnly: de
|
|
1216
1215
|
}, ee())
|
|
1217
1216
|
})
|
|
1218
|
-
})), ne ? /* @__PURE__ */
|
|
1217
|
+
})), ne ? /* @__PURE__ */ v.jsx(Zt, d({
|
|
1219
1218
|
as: Je,
|
|
1220
1219
|
disablePortal: _,
|
|
1221
1220
|
style: {
|
|
@@ -1226,27 +1225,27 @@ const Gt = ["autoComplete", "autoHighlight", "autoSelect", "blurOnSelect", "Chip
|
|
|
1226
1225
|
anchorEl: ne,
|
|
1227
1226
|
open: F
|
|
1228
1227
|
}, Te, {
|
|
1229
|
-
className: he(
|
|
1230
|
-
children: /* @__PURE__ */
|
|
1228
|
+
className: he(I.popper, Te == null ? void 0 : Te.className),
|
|
1229
|
+
children: /* @__PURE__ */ v.jsxs(eo, d({
|
|
1231
1230
|
ownerState: w,
|
|
1232
1231
|
as: ce
|
|
1233
1232
|
}, Se, {
|
|
1234
|
-
className: he(
|
|
1235
|
-
children: [
|
|
1236
|
-
className:
|
|
1233
|
+
className: he(I.paper, Se == null ? void 0 : Se.className),
|
|
1234
|
+
children: [R && G.length === 0 ? /* @__PURE__ */ v.jsx(to, {
|
|
1235
|
+
className: I.loading,
|
|
1237
1236
|
ownerState: w,
|
|
1238
1237
|
children: T
|
|
1239
|
-
}) : null, G.length === 0 && !Ie && !
|
|
1240
|
-
className:
|
|
1238
|
+
}) : null, G.length === 0 && !Ie && !R ? /* @__PURE__ */ v.jsx(oo, {
|
|
1239
|
+
className: I.noOptions,
|
|
1241
1240
|
ownerState: w,
|
|
1242
1241
|
role: "presentation",
|
|
1243
1242
|
onMouseDown: (p) => {
|
|
1244
1243
|
p.preventDefault();
|
|
1245
1244
|
},
|
|
1246
|
-
children:
|
|
1247
|
-
}) : null, G.length > 0 ? /* @__PURE__ */
|
|
1245
|
+
children: Ce
|
|
1246
|
+
}) : null, G.length > 0 ? /* @__PURE__ */ v.jsx(no, d({
|
|
1248
1247
|
as: qe,
|
|
1249
|
-
className:
|
|
1248
|
+
className: I.listbox,
|
|
1250
1249
|
ownerState: w
|
|
1251
1250
|
}, E(), Ke, {
|
|
1252
1251
|
children: G.map((p, L) => Ge ? et({
|
|
@@ -1483,7 +1482,7 @@ process.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
|
1483
1482
|
* Set `-1` to disable the limit.
|
|
1484
1483
|
* @default -1
|
|
1485
1484
|
*/
|
|
1486
|
-
limitTags:
|
|
1485
|
+
limitTags: kt,
|
|
1487
1486
|
/**
|
|
1488
1487
|
* The component used to render the listbox.
|
|
1489
1488
|
* @default 'ul'
|
|
@@ -1664,10 +1663,14 @@ process.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
|
1664
1663
|
value: gt(n.any, (t) => t.multiple && t.value !== void 0 && !Array.isArray(t.value) ? new Error(["MUI: The Autocomplete expects the `value` prop to be an array when `multiple={true}` or undefined.", `However, ${t.value} was provided.`].join(`
|
|
1665
1664
|
`)) : null)
|
|
1666
1665
|
});
|
|
1667
|
-
const
|
|
1668
|
-
function
|
|
1669
|
-
return /* @__PURE__ */
|
|
1666
|
+
const lo = Tt;
|
|
1667
|
+
function $o(t) {
|
|
1668
|
+
return /* @__PURE__ */ At.jsxDEV(lo, { ...t }, void 0, !1, {
|
|
1669
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/Selects/KdpaAutoComplete/KdpaAutoComplete.tsx",
|
|
1670
|
+
lineNumber: 7,
|
|
1671
|
+
columnNumber: 10
|
|
1672
|
+
}, this);
|
|
1670
1673
|
}
|
|
1671
1674
|
export {
|
|
1672
|
-
|
|
1675
|
+
$o as K
|
|
1673
1676
|
};
|