@reapit/elements 5.0.0-beta.63 → 5.0.0-beta.64
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/dist/js/{app-switcher-BZ8aTzRd.cjs → app-switcher-Bx4ETRrk.cjs} +1 -1
- package/dist/js/{app-switcher-BdPf6bH2.js → app-switcher-DtVdB7JO.js} +1 -1
- package/dist/js/{autocomplete-La_vezgN.cjs → autocomplete-CYxComaA.cjs} +1 -1
- package/dist/js/{autocomplete-DvWmVjF3.js → autocomplete-D3dPhE8Z.js} +1 -1
- package/dist/js/autocomplete-control-CjSBJS9l.cjs +1 -0
- package/dist/js/{autocomplete-control-z_FFlogU.js → autocomplete-control-ciJlNJl0.js} +18 -17
- package/dist/js/{badge-CwBwwP4y.js → badge-B4weQtHe.js} +2 -2
- package/dist/js/{badge-mMmZbI52.cjs → badge-Bms7oWTK.cjs} +1 -1
- package/dist/js/{combobox-BIr0IlJH.js → combobox-CZZ5mxom.js} +352 -346
- package/dist/js/combobox-DtvFjGJH.cjs +1 -0
- package/dist/js/core/app-switcher.cjs +1 -1
- package/dist/js/core/app-switcher.js +1 -1
- package/dist/js/core/autocomplete-control.cjs +1 -1
- package/dist/js/core/autocomplete-control.js +1 -1
- package/dist/js/core/autocomplete.cjs +1 -1
- package/dist/js/core/autocomplete.js +1 -1
- package/dist/js/core/badge.cjs +1 -1
- package/dist/js/core/badge.js +1 -1
- package/dist/js/core/combobox.cjs +1 -1
- package/dist/js/core/combobox.js +1 -1
- package/dist/js/core/compact-select.cjs +1 -1
- package/dist/js/core/compact-select.js +13 -14
- package/dist/js/core/dialog.cjs +1 -1
- package/dist/js/core/dialog.js +1 -1
- package/dist/js/core/drawer.cjs +1 -1
- package/dist/js/core/drawer.js +1 -1
- package/dist/js/core/select-control.cjs +1 -1
- package/dist/js/core/select-control.js +1 -1
- package/dist/js/core/select.cjs +1 -1
- package/dist/js/core/select.js +1 -1
- package/dist/js/core/top-bar.cjs +1 -1
- package/dist/js/core/top-bar.js +1 -1
- package/dist/js/{dialog-CIcqgltv.cjs → dialog-C370PWIM.cjs} +1 -1
- package/dist/js/{dialog-GJqo4qVv.js → dialog-CiDAA5dI.js} +1 -1
- package/dist/js/{drawer-zFOSlbq5.js → drawer-CN1TJt10.js} +40 -40
- package/dist/js/drawer-D5SIlpKa.cjs +1 -0
- package/dist/js/index.cjs +1 -1
- package/dist/js/index.js +10 -10
- package/dist/js/lab/select-custom.cjs +1 -1
- package/dist/js/lab/select-custom.js +1 -1
- package/dist/js/{select-4533UXdq.cjs → select-D8uav0QV.cjs} +1 -1
- package/dist/js/{select-DQDeg7fv.js → select-_dfxrGPp.js} +1 -1
- package/dist/js/select-control-DmXnYhjM.js +61 -0
- package/dist/js/select-control-Dmqk_gJz.cjs +1 -0
- package/dist/js/style.css +1 -1
- package/dist/js/{top-bar-Cqg-4b4q.js → top-bar-Bx1mIKx-.js} +2 -2
- package/dist/js/{top-bar-n9uphHG2.cjs → top-bar-D_PdGmRH.cjs} +1 -1
- package/dist/types/core/autocomplete-control/autocomplete-control.d.ts.map +1 -1
- package/dist/types/core/avatar/avatar.stories.d.ts +1 -1
- package/dist/types/core/avatar/avatar.stories.d.ts.map +1 -1
- package/dist/types/core/combobox/button/button.d.ts.map +1 -1
- package/dist/types/core/combobox/button/styles.d.ts.map +1 -1
- package/dist/types/core/combobox/combobox.d.ts +1 -1
- package/dist/types/core/combobox/combobox.d.ts.map +1 -1
- package/dist/types/core/combobox/combobox.stories.d.ts.map +1 -1
- package/dist/types/core/combobox/context.d.ts +2 -0
- package/dist/types/core/combobox/context.d.ts.map +1 -1
- package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts +1 -1
- package/dist/types/core/combobox/popup-dialog/popup-dialog.d.ts.map +1 -1
- package/dist/types/core/combobox/use-button.d.ts +2 -0
- package/dist/types/core/combobox/use-button.d.ts.map +1 -1
- package/dist/types/core/compact-select/compact-select-button.d.ts.map +1 -1
- package/dist/types/core/compact-select/styles.d.ts.map +1 -1
- package/dist/types/core/drawer/use-cancel-close-requests.d.ts +1 -1
- package/dist/types/core/drawer/use-cancel-close-requests.d.ts.map +1 -1
- package/dist/types/core/form-control/label/label.d.ts +2 -2
- package/dist/types/core/form-control/label/label.d.ts.map +1 -1
- package/dist/types/core/select-control/select-control.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/js/autocomplete-control-k6KIqBZv.cjs +0 -1
- package/dist/js/combobox-BT2RnqxH.cjs +0 -1
- package/dist/js/drawer-ClnTbHbU.cjs +0 -1
- package/dist/js/select-control-DQzPYv20.cjs +0 -1
- package/dist/js/select-control-DWObhHin.js +0 -60
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import "./button-base-BcnVjgNa.js";
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { B as
|
|
5
|
-
import { c as
|
|
6
|
-
import { CloseIcon as
|
|
7
|
-
import { ChevronDownIcon as
|
|
8
|
-
import { c as
|
|
9
|
-
import { A as
|
|
10
|
-
import { c as
|
|
11
|
-
import { s as
|
|
12
|
-
import { isWidthAtOrAbove as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
3
|
+
import { createContext as v, useContext as w, useRef as xo, useEffect as j, useState as H, useId as S } from "react";
|
|
4
|
+
import { B as $ } from "./button-DB4XETG9.js";
|
|
5
|
+
import { c as fo, i as ho, d as f, k as Y, s as go } from "./listbox-BBRIGXRu.js";
|
|
6
|
+
import { CloseIcon as G } from "./icons/close.js";
|
|
7
|
+
import { ChevronDownIcon as Eo } from "./icons/chevron-down.js";
|
|
8
|
+
import { c as Io, S as Oo } from "./search-input-BIATSynI.js";
|
|
9
|
+
import { A as Ao } from "./anchor-positioning-CVXI9jJO.js";
|
|
10
|
+
import { c as X } from "./index-BsMVp4qF.js";
|
|
11
|
+
import { s as l } from "./index-YtxCR-9e.js";
|
|
12
|
+
import { isWidthAtOrAbove as So, isWidthBelow as yo } from "./utils/breakpoints.js";
|
|
13
|
+
import { r as Lo, v as Po } from "./drawer-CN1TJt10.js";
|
|
14
|
+
import { u as J } from "./use-match-media-3UiitAUD.js";
|
|
15
|
+
import { CheckIcon as Bo } from "./icons/check.js";
|
|
16
|
+
import { C as K } from "./chip-group-Bbc7ODc9.js";
|
|
17
|
+
function Do({
|
|
17
18
|
"aria-label": o = "Clear selection",
|
|
18
19
|
"aria-controls": e,
|
|
19
20
|
onClick: t,
|
|
20
21
|
...n
|
|
21
22
|
}) {
|
|
22
23
|
return /* @__PURE__ */ a(
|
|
23
|
-
|
|
24
|
+
$,
|
|
24
25
|
{
|
|
25
26
|
...n,
|
|
26
27
|
"aria-controls": e,
|
|
27
28
|
"aria-label": o,
|
|
28
29
|
hasNoPadding: !0,
|
|
29
|
-
iconLeft: /* @__PURE__ */ a(
|
|
30
|
-
onClick: (
|
|
31
|
-
t?.(
|
|
30
|
+
iconLeft: /* @__PURE__ */ a(G, {}),
|
|
31
|
+
onClick: (r) => {
|
|
32
|
+
t?.(r), fo(e);
|
|
32
33
|
},
|
|
33
34
|
size: "small",
|
|
34
35
|
variant: "tertiary"
|
|
35
36
|
}
|
|
36
37
|
);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
+
function V(o) {
|
|
39
40
|
const e = typeof o == "string" ? document.getElementById(o) : o;
|
|
40
41
|
if (!e) {
|
|
41
42
|
const t = typeof o == "string" ? `with ID "${o}"` : "(passed by reference)";
|
|
@@ -47,53 +48,53 @@ function N(o) {
|
|
|
47
48
|
}
|
|
48
49
|
e.close();
|
|
49
50
|
}
|
|
50
|
-
const
|
|
51
|
+
const N = {
|
|
51
52
|
AUTO: "auto",
|
|
52
53
|
ALWAYS: "always",
|
|
53
54
|
NEVER: "never"
|
|
54
55
|
};
|
|
55
|
-
function
|
|
56
|
+
function vo(o) {
|
|
56
57
|
if (o.defaultPrevented || !o.isTrusted)
|
|
57
58
|
return;
|
|
58
|
-
const e =
|
|
59
|
+
const e = ko(o.target);
|
|
59
60
|
if (!e)
|
|
60
61
|
return;
|
|
61
62
|
const { closeOnSelection: t } = o.currentTarget.dataset;
|
|
62
|
-
if (t !==
|
|
63
|
-
if (t ===
|
|
64
|
-
|
|
63
|
+
if (t !== N.NEVER) {
|
|
64
|
+
if (t === N.ALWAYS) {
|
|
65
|
+
V(o.currentTarget);
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
if (t ===
|
|
68
|
+
if (t === N.AUTO) {
|
|
68
69
|
const { listboxId: n } = e.dataset, s = n ? document.getElementById(n) : null;
|
|
69
|
-
|
|
70
|
+
To(s) && V(o.currentTarget);
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function wo(o) {
|
|
74
75
|
!("closedBy" in HTMLDialogElement.prototype) && o.target === o.currentTarget && o.currentTarget.close();
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function ko(o) {
|
|
77
78
|
return o instanceof HTMLElement ? o.closest('[role="option"]') : null;
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function To(o) {
|
|
80
81
|
return "ariaMultiSelectable" in Element.prototype ? o?.ariaMultiSelectable === "false" : o?.getAttribute("aria-multiselectable") === "false";
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function Mo(o) {
|
|
83
84
|
const { preserveSearchOnClose: e } = o.currentTarget.dataset;
|
|
84
85
|
if (e === "true")
|
|
85
86
|
return;
|
|
86
87
|
const t = o.currentTarget.querySelector("input");
|
|
87
|
-
t instanceof HTMLInputElement &&
|
|
88
|
+
t instanceof HTMLInputElement && Io(t);
|
|
88
89
|
}
|
|
89
|
-
const
|
|
90
|
-
function
|
|
91
|
-
const o =
|
|
90
|
+
const z = v(null);
|
|
91
|
+
function Q() {
|
|
92
|
+
const o = w(z);
|
|
92
93
|
if (!o)
|
|
93
94
|
throw new Error("useComboboxPopupDialogContext requires a ComboboxPopupDialog ancestor");
|
|
94
95
|
return o;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function q(o) {
|
|
97
98
|
const e = typeof o == "string" ? document.getElementById(o) : o;
|
|
98
99
|
if (!e) {
|
|
99
100
|
const t = typeof o == "string" ? `with ID "${o}"` : "(passed by reference)";
|
|
@@ -105,132 +106,134 @@ function z(o) {
|
|
|
105
106
|
}
|
|
106
107
|
e.showModal();
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function No() {
|
|
109
110
|
return /* @__PURE__ */ a("form", { role: "none", children: /* @__PURE__ */ a(
|
|
110
|
-
|
|
111
|
+
$,
|
|
111
112
|
{
|
|
112
113
|
"aria-label": "Close",
|
|
113
114
|
formMethod: "dialog",
|
|
114
|
-
iconLeft: /* @__PURE__ */ a(
|
|
115
|
+
iconLeft: /* @__PURE__ */ a(G, { "aria-hidden": !0 }),
|
|
115
116
|
size: "large",
|
|
116
117
|
type: "submit",
|
|
117
118
|
variant: "tertiary"
|
|
118
119
|
}
|
|
119
120
|
) });
|
|
120
121
|
}
|
|
121
|
-
const
|
|
122
|
+
const Vo = "el-combobox-popup-dialog", Ho = /* @__PURE__ */ l("div")({
|
|
122
123
|
name: "ElComboboxPopupDialogHeader",
|
|
123
124
|
class: "el-combobox-popup-dialog-header",
|
|
124
125
|
propsAsIs: !1
|
|
125
|
-
}),
|
|
126
|
+
}), $o = /* @__PURE__ */ l("div")({
|
|
126
127
|
name: "ElComboboxPopupDialogListboxContainer",
|
|
127
128
|
class: "el-combobox-popup-dialog-listbox-container",
|
|
128
129
|
propsAsIs: !1
|
|
129
|
-
}),
|
|
130
|
-
function
|
|
130
|
+
}), U = "calc(anchor-size(width) + 2 * var(--combobox-popup-padding))", zo = "calc(anchor(left) - var(--combobox-popup-padding))", qo = "calc(anchor(top) - var(--combobox-popup-padding))";
|
|
131
|
+
function E({
|
|
131
132
|
"aria-labelledby": o,
|
|
132
133
|
children: e,
|
|
133
134
|
className: t,
|
|
134
135
|
closeOnSelection: n = "auto",
|
|
135
136
|
id: s,
|
|
136
|
-
maxHeight:
|
|
137
|
-
maxWidth:
|
|
138
|
-
minWidth:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
137
|
+
maxHeight: r,
|
|
138
|
+
maxWidth: c = U,
|
|
139
|
+
minWidth: b = U,
|
|
140
|
+
onCancel: u,
|
|
141
|
+
onClose: d,
|
|
142
|
+
onClick: m,
|
|
143
|
+
preserveSearchOnClose: h = !1,
|
|
144
|
+
search: C,
|
|
145
|
+
style: B,
|
|
146
|
+
variant: g = "auto",
|
|
145
147
|
...A
|
|
146
148
|
}) {
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
},
|
|
150
|
-
|
|
149
|
+
const D = J(So("SM")), M = g === "popover" || g === "auto" && D, F = g === "drawer" || g === "auto" && !D, uo = Lo("any", u), mo = Po((I) => {
|
|
150
|
+
d?.(I), C && Mo(I);
|
|
151
|
+
}), Co = (I) => {
|
|
152
|
+
m?.(I), vo(I), wo(I);
|
|
151
153
|
};
|
|
152
154
|
return /* @__PURE__ */ a(
|
|
153
155
|
"dialog",
|
|
154
156
|
{
|
|
155
157
|
...A,
|
|
156
158
|
"aria-labelledby": o,
|
|
157
|
-
className:
|
|
159
|
+
className: X(Vo, t),
|
|
158
160
|
closedby: "any",
|
|
159
161
|
"data-close-on-selection": n,
|
|
160
|
-
"data-preserve-search-on-close":
|
|
161
|
-
"data-variant":
|
|
162
|
+
"data-preserve-search-on-close": h,
|
|
163
|
+
"data-variant": g,
|
|
162
164
|
id: s,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
onCancel: uo,
|
|
166
|
+
onClose: mo,
|
|
167
|
+
onClick: Co,
|
|
168
|
+
style: { ...B, maxHeight: r },
|
|
169
|
+
children: /* @__PURE__ */ x(z.Provider, { value: { variant: g }, children: [
|
|
170
|
+
M && /* @__PURE__ */ a(
|
|
171
|
+
Ao,
|
|
169
172
|
{
|
|
170
173
|
anchorElementId: o,
|
|
171
|
-
left:
|
|
172
|
-
maxWidth:
|
|
173
|
-
minWidth:
|
|
174
|
+
left: zo,
|
|
175
|
+
maxWidth: c,
|
|
176
|
+
minWidth: b,
|
|
174
177
|
positionedElementId: s,
|
|
175
178
|
positionTryFallbacks: "flip-block, flip-inline",
|
|
176
|
-
top:
|
|
179
|
+
top: qo
|
|
177
180
|
}
|
|
178
181
|
),
|
|
179
|
-
(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
+
(C || F) && /* @__PURE__ */ x(Ho, { children: [
|
|
183
|
+
C,
|
|
184
|
+
F && /* @__PURE__ */ a(No, {})
|
|
182
185
|
] }),
|
|
183
|
-
/* @__PURE__ */ a(
|
|
186
|
+
/* @__PURE__ */ a($o, { children: e })
|
|
184
187
|
] })
|
|
185
188
|
}
|
|
186
189
|
);
|
|
187
190
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
function
|
|
193
|
-
const t =
|
|
194
|
-
|
|
191
|
+
E.Context = z;
|
|
192
|
+
E.useContext = Q;
|
|
193
|
+
E.open = q;
|
|
194
|
+
E.close = V;
|
|
195
|
+
function Ro(o, e) {
|
|
196
|
+
const t = xo(e);
|
|
197
|
+
j(
|
|
195
198
|
function() {
|
|
196
199
|
t.current = e;
|
|
197
200
|
},
|
|
198
201
|
[e]
|
|
199
|
-
),
|
|
202
|
+
), j(
|
|
200
203
|
function() {
|
|
201
204
|
const s = document.getElementById(o);
|
|
202
205
|
if (s instanceof HTMLElement) {
|
|
203
|
-
const
|
|
204
|
-
return s.addEventListener("toggle", (
|
|
205
|
-
signal:
|
|
206
|
-
}), () =>
|
|
206
|
+
const r = new AbortController();
|
|
207
|
+
return s.addEventListener("toggle", (c) => t.current(c), {
|
|
208
|
+
signal: r.signal
|
|
209
|
+
}), () => r.abort();
|
|
207
210
|
}
|
|
208
211
|
},
|
|
209
212
|
[o]
|
|
210
213
|
);
|
|
211
214
|
}
|
|
212
|
-
function
|
|
213
|
-
const [e, t] =
|
|
214
|
-
return
|
|
215
|
+
function Wo(o) {
|
|
216
|
+
const [e, t] = H(!1);
|
|
217
|
+
return Ro(o, (n) => {
|
|
215
218
|
t(n.newState === "open");
|
|
216
219
|
}), e;
|
|
217
220
|
}
|
|
218
|
-
function
|
|
221
|
+
function _o({
|
|
219
222
|
"aria-label": o = "Open popup",
|
|
220
223
|
"aria-controls": e,
|
|
221
224
|
onClick: t,
|
|
222
225
|
...n
|
|
223
226
|
}) {
|
|
224
227
|
return /* @__PURE__ */ a(
|
|
225
|
-
|
|
228
|
+
$,
|
|
226
229
|
{
|
|
227
230
|
...n,
|
|
228
231
|
"aria-controls": e,
|
|
229
232
|
"aria-label": o,
|
|
230
233
|
hasNoPadding: !0,
|
|
231
|
-
iconLeft: /* @__PURE__ */ a(
|
|
232
|
-
onClick: (
|
|
233
|
-
t?.(
|
|
234
|
+
iconLeft: /* @__PURE__ */ a(Eo, {}),
|
|
235
|
+
onClick: (r) => {
|
|
236
|
+
t?.(r), q(e);
|
|
234
237
|
},
|
|
235
238
|
size: "small",
|
|
236
239
|
tabIndex: -1,
|
|
@@ -238,23 +241,23 @@ function zo({
|
|
|
238
241
|
}
|
|
239
242
|
);
|
|
240
243
|
}
|
|
241
|
-
const
|
|
244
|
+
const Fo = /* @__PURE__ */ l("div")({
|
|
242
245
|
name: "ElComboboxButtonContainer",
|
|
243
246
|
class: "el-combobox-button-container",
|
|
244
247
|
propsAsIs: !1
|
|
245
|
-
}),
|
|
248
|
+
}), jo = /* @__PURE__ */ l("button")({
|
|
246
249
|
name: "ElComboboxButton",
|
|
247
250
|
class: "el-combobox-button",
|
|
248
251
|
propsAsIs: !1
|
|
249
|
-
}),
|
|
252
|
+
}), Uo = /* @__PURE__ */ l("span")({
|
|
250
253
|
name: "ElComboboxButtonIconContainer",
|
|
251
254
|
class: "el-combobox-button-icon-container",
|
|
252
255
|
propsAsIs: !1
|
|
253
|
-
}),
|
|
256
|
+
}), Yo = /* @__PURE__ */ l("span")({
|
|
254
257
|
name: "ElComboboxButtonLabelContainer",
|
|
255
258
|
class: "el-combobox-button-label-container",
|
|
256
259
|
propsAsIs: !1
|
|
257
|
-
}),
|
|
260
|
+
}), Go = /* @__PURE__ */ l("span")({
|
|
258
261
|
name: "ElComboboxButtonActionContainer",
|
|
259
262
|
class: "el-combobox-button-action-container",
|
|
260
263
|
propsAsIs: !1
|
|
@@ -265,63 +268,63 @@ function y({
|
|
|
265
268
|
"aria-expanded": t,
|
|
266
269
|
children: n,
|
|
267
270
|
className: s,
|
|
268
|
-
id:
|
|
269
|
-
leadingIcon:
|
|
270
|
-
placeholder:
|
|
271
|
+
id: r,
|
|
272
|
+
leadingIcon: c,
|
|
273
|
+
placeholder: b = "Select an option",
|
|
271
274
|
size: u = "medium",
|
|
272
275
|
style: d,
|
|
273
276
|
...m
|
|
274
277
|
}) {
|
|
278
|
+
const h = !!n;
|
|
275
279
|
return (
|
|
276
280
|
// Applies consumer class names and inline styles to the container, not the button.
|
|
277
281
|
// Minimizes easy override of button styles critical to component function.
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
|
|
282
|
+
/* @__PURE__ */ x(Fo, { className: s, "data-size": u, style: d, children: [
|
|
283
|
+
/* @__PURE__ */ x(
|
|
284
|
+
jo,
|
|
281
285
|
{
|
|
282
286
|
...m,
|
|
283
287
|
"aria-autocomplete": "list",
|
|
284
288
|
"aria-controls": e,
|
|
285
289
|
"aria-expanded": t,
|
|
286
290
|
"aria-haspopup": "dialog",
|
|
287
|
-
|
|
288
|
-
id: c,
|
|
291
|
+
id: r,
|
|
289
292
|
role: "combobox",
|
|
290
293
|
type: "button",
|
|
291
294
|
children: [
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ a(
|
|
295
|
+
c && /* @__PURE__ */ a(Uo, { children: c }),
|
|
296
|
+
/* @__PURE__ */ a(Yo, { "data-has-selection": h, "data-placeholder": b, children: h ? n : b })
|
|
294
297
|
]
|
|
295
298
|
}
|
|
296
299
|
),
|
|
297
|
-
o && /* @__PURE__ */ a(
|
|
300
|
+
o && /* @__PURE__ */ a(Go, { children: o })
|
|
298
301
|
] })
|
|
299
302
|
);
|
|
300
303
|
}
|
|
301
|
-
y.ClearButton =
|
|
302
|
-
y.OpenPopupButton =
|
|
303
|
-
const
|
|
304
|
+
y.ClearButton = Do;
|
|
305
|
+
y.OpenPopupButton = _o;
|
|
306
|
+
const Xo = /* @__PURE__ */ l("div")({
|
|
304
307
|
name: "ElComboboxCard",
|
|
305
308
|
class: "el-combobox-card",
|
|
306
309
|
propsAsIs: !1
|
|
307
|
-
}),
|
|
310
|
+
}), Jo = /* @__PURE__ */ l("button")({
|
|
308
311
|
name: "ElComboboxCardButton",
|
|
309
312
|
class: "el-combobox-card-button",
|
|
310
313
|
propsAsIs: !1
|
|
311
|
-
}),
|
|
314
|
+
}), Ko = /* @__PURE__ */ l("span")({
|
|
312
315
|
name: "ElComboboxCardActionContainer",
|
|
313
316
|
class: "el-combobox-card-action-container",
|
|
314
317
|
propsAsIs: !1
|
|
315
318
|
});
|
|
316
|
-
function
|
|
319
|
+
function Qo({
|
|
317
320
|
action: o,
|
|
318
321
|
"aria-controls": e,
|
|
319
322
|
"aria-disabled": t = !0,
|
|
320
323
|
"aria-expanded": n,
|
|
321
324
|
children: s,
|
|
322
|
-
className:
|
|
323
|
-
id:
|
|
324
|
-
onClick:
|
|
325
|
+
className: r,
|
|
326
|
+
id: c,
|
|
327
|
+
onClick: b,
|
|
325
328
|
size: u = "medium",
|
|
326
329
|
style: d,
|
|
327
330
|
...m
|
|
@@ -329,9 +332,9 @@ function Go({
|
|
|
329
332
|
return (
|
|
330
333
|
// Applies consumer class names and inline styles to the container, not the button.
|
|
331
334
|
// Minimizes easy override of button styles critical to component function.
|
|
332
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ x(Xo, { className: r, "data-size": u, style: d, children: [
|
|
333
336
|
/* @__PURE__ */ a(
|
|
334
|
-
|
|
337
|
+
Jo,
|
|
335
338
|
{
|
|
336
339
|
...m,
|
|
337
340
|
"aria-autocomplete": "list",
|
|
@@ -339,203 +342,203 @@ function Go({
|
|
|
339
342
|
"aria-disabled": t,
|
|
340
343
|
"aria-expanded": n,
|
|
341
344
|
"aria-haspopup": "dialog",
|
|
342
|
-
id:
|
|
343
|
-
onClick: (
|
|
344
|
-
if (
|
|
345
|
-
|
|
345
|
+
id: c,
|
|
346
|
+
onClick: (C) => {
|
|
347
|
+
if (C.currentTarget.getAttribute("aria-disabled") === "true") {
|
|
348
|
+
C.stopPropagation(), C.preventDefault();
|
|
346
349
|
return;
|
|
347
350
|
}
|
|
348
|
-
|
|
351
|
+
b?.(C);
|
|
349
352
|
},
|
|
350
353
|
role: "combobox",
|
|
351
354
|
type: "button",
|
|
352
355
|
children: s
|
|
353
356
|
}
|
|
354
357
|
),
|
|
355
|
-
o && /* @__PURE__ */ a(
|
|
358
|
+
o && /* @__PURE__ */ a(Ko, { children: o })
|
|
356
359
|
] })
|
|
357
360
|
);
|
|
358
361
|
}
|
|
359
|
-
const
|
|
362
|
+
const Zo = /* @__PURE__ */ l("span")({
|
|
360
363
|
name: "ElComboboxCardDefaultContent",
|
|
361
364
|
class: "el-combobox-card-default-content",
|
|
362
365
|
propsAsIs: !1
|
|
363
|
-
}),
|
|
366
|
+
}), oe = /* @__PURE__ */ l("span")({
|
|
364
367
|
name: "ElComboboxCardDefaultContentLabel",
|
|
365
368
|
class: "el-combobox-card-default-content-label",
|
|
366
369
|
propsAsIs: !1
|
|
367
|
-
}),
|
|
370
|
+
}), ee = /* @__PURE__ */ l("span")({
|
|
368
371
|
name: "ElComboboxCardDefaultContentAdditionalInfo",
|
|
369
372
|
class: "el-combobox-card-default-content-additional-info",
|
|
370
373
|
propsAsIs: !1
|
|
371
374
|
});
|
|
372
|
-
function
|
|
373
|
-
return /* @__PURE__ */
|
|
374
|
-
/* @__PURE__ */ a(
|
|
375
|
-
/* @__PURE__ */ a(
|
|
375
|
+
function Z({ additionalInfo: o, children: e, ...t }) {
|
|
376
|
+
return /* @__PURE__ */ x(Zo, { ...t, children: [
|
|
377
|
+
/* @__PURE__ */ a(oe, { children: e }),
|
|
378
|
+
/* @__PURE__ */ a(ee, { children: o })
|
|
376
379
|
] });
|
|
377
380
|
}
|
|
378
|
-
|
|
379
|
-
const
|
|
381
|
+
Z.displayName = "Combobox.CardDefaultContent";
|
|
382
|
+
const R = v(null);
|
|
380
383
|
function L() {
|
|
381
|
-
const o =
|
|
384
|
+
const o = w(R);
|
|
382
385
|
if (!o)
|
|
383
386
|
throw new Error("useComboboxContext requires a Combobox ancestor");
|
|
384
387
|
return o;
|
|
385
388
|
}
|
|
386
|
-
const
|
|
387
|
-
function
|
|
388
|
-
return
|
|
389
|
+
const oo = v([]);
|
|
390
|
+
function k() {
|
|
391
|
+
return w(oo);
|
|
389
392
|
}
|
|
390
|
-
const
|
|
393
|
+
const te = /* @__PURE__ */ l("div")({
|
|
391
394
|
name: "ElComboboxListbox",
|
|
392
395
|
class: "el-combobox-listbox",
|
|
393
396
|
propsAsIs: !1
|
|
394
|
-
}),
|
|
397
|
+
}), ne = /* @__PURE__ */ l("div")({
|
|
395
398
|
name: "ElComboboxListboxPlaceholder",
|
|
396
399
|
class: "el-combobox-listbox-placeholder",
|
|
397
400
|
propsAsIs: !1
|
|
398
401
|
});
|
|
399
|
-
function
|
|
400
|
-
return
|
|
402
|
+
function eo({ children: o, size: e = "medium", ...t }) {
|
|
403
|
+
return ho() === "native" ? null : /* @__PURE__ */ a(ne, { ...t, "aria-live": "polite", "data-size": e, role: "status", children: o });
|
|
401
404
|
}
|
|
402
|
-
|
|
403
|
-
const
|
|
405
|
+
eo.displayName = "Combobox.ListboxPlaceholder";
|
|
406
|
+
const ae = /* @__PURE__ */ l("div")({
|
|
404
407
|
name: "ElComboboxOptgroup",
|
|
405
408
|
class: "el-combobox-optgroup",
|
|
406
409
|
propsAsIs: !1
|
|
407
|
-
}),
|
|
410
|
+
}), se = /* @__PURE__ */ l("div")({
|
|
408
411
|
name: "ElComboboxOptgroupLabelContainer",
|
|
409
412
|
class: "el-combobox-optgroup-label-container",
|
|
410
413
|
propsAsIs: !1
|
|
411
414
|
});
|
|
412
|
-
function
|
|
415
|
+
function ie({ "aria-label": o, children: e, label: t, ...n }) {
|
|
413
416
|
const s = S();
|
|
414
417
|
return (
|
|
415
418
|
// NOTE: Omit aria-labelledby when aria-label is provided. The aria-labelledby attribute takes
|
|
416
419
|
// precedence over aria-label. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label#:~:text=aria%2Dlabelledby%20will%20take%20precedence%20over%20aria%2Dlabel%20if%20both%20are%20applied
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
t && /* @__PURE__ */ a(
|
|
420
|
+
/* @__PURE__ */ x(ae, { ...n, "aria-label": o, "aria-labelledby": o ? void 0 : s, role: "group", children: [
|
|
421
|
+
t && /* @__PURE__ */ a(se, { id: s, children: t }),
|
|
419
422
|
e
|
|
420
423
|
] })
|
|
421
424
|
);
|
|
422
425
|
}
|
|
423
|
-
function eo(o) {
|
|
424
|
-
return /* @__PURE__ */ a(x.Optgroup, { as: te, ...o });
|
|
425
|
-
}
|
|
426
|
-
eo.displayName = "Combobox.Optgroup";
|
|
427
426
|
function to(o) {
|
|
427
|
+
return /* @__PURE__ */ a(f.Optgroup, { as: ie, ...o });
|
|
428
|
+
}
|
|
429
|
+
to.displayName = "Combobox.Optgroup";
|
|
430
|
+
function no(o) {
|
|
428
431
|
return "ariaLabelledByElements" in Element.prototype ? o.ariaLabelledByElements?.at(0)?.textContent ?? o.textContent : document.getElementById(o.getAttribute("aria-labelledby"))?.textContent ?? o.textContent;
|
|
429
432
|
}
|
|
430
|
-
const
|
|
433
|
+
const le = /* @__PURE__ */ l("button")({
|
|
431
434
|
name: "ElComboboxOption",
|
|
432
435
|
class: "el-combobox-option",
|
|
433
436
|
propsAsIs: !1
|
|
434
|
-
}),
|
|
437
|
+
}), re = /* @__PURE__ */ l("span")({
|
|
435
438
|
name: "ElComboboxOptionCheckIconContainer",
|
|
436
439
|
class: "el-combobox-option-check-icon-container",
|
|
437
440
|
propsAsIs: !1
|
|
438
|
-
}),
|
|
441
|
+
}), ce = /* @__PURE__ */ l("span")({
|
|
439
442
|
name: "ElComboboxOptionLabel",
|
|
440
443
|
class: "el-combobox-option-label",
|
|
441
444
|
propsAsIs: !1
|
|
442
|
-
}),
|
|
445
|
+
}), ao = /* @__PURE__ */ l("span")({
|
|
443
446
|
name: "ElComboboxOptionTextContainer",
|
|
444
447
|
class: "el-combobox-option-text-container",
|
|
445
448
|
propsAsIs: !1
|
|
446
|
-
}),
|
|
449
|
+
}), so = /* @__PURE__ */ l("span")({
|
|
447
450
|
name: "ElComboboxOptionBadgeContainer",
|
|
448
451
|
class: "el-combobox-option-badge-container",
|
|
449
452
|
propsAsIs: !1
|
|
450
|
-
}),
|
|
453
|
+
}), be = /* @__PURE__ */ l("span")({
|
|
451
454
|
name: "ElComboboxOptionAdditionalInfoContainer",
|
|
452
455
|
class: "el-combobox-option-additional-info-container",
|
|
453
456
|
propsAsIs: !1
|
|
454
|
-
}),
|
|
457
|
+
}), pe = /* @__PURE__ */ l("span")({
|
|
455
458
|
name: "ElComboboxOptionAdditionalInfo",
|
|
456
459
|
class: "el-combobox-option-additional-info",
|
|
457
460
|
propsAsIs: !1
|
|
458
|
-
}),
|
|
461
|
+
}), ue = /* @__PURE__ */ l("span")({
|
|
459
462
|
name: "ElComboboxOptionAdditionalInfoIconContainer",
|
|
460
463
|
class: "el-combobox-option-additional-info-icon-container",
|
|
461
464
|
propsAsIs: !1
|
|
462
465
|
});
|
|
463
|
-
function
|
|
464
|
-
return /* @__PURE__ */
|
|
465
|
-
t && /* @__PURE__ */ a(
|
|
466
|
-
/* @__PURE__ */ a(
|
|
467
|
-
o && /* @__PURE__ */ a(
|
|
466
|
+
function io({ badge: o, children: e, icon: t, ...n }) {
|
|
467
|
+
return /* @__PURE__ */ x(pe, { ...n, children: [
|
|
468
|
+
t && /* @__PURE__ */ a(ue, { children: t }),
|
|
469
|
+
/* @__PURE__ */ a(ao, { children: e }),
|
|
470
|
+
o && /* @__PURE__ */ a(so, { children: o })
|
|
468
471
|
] });
|
|
469
472
|
}
|
|
470
|
-
|
|
473
|
+
io.displayName = "Combobox.OptionAdditionalInfo";
|
|
471
474
|
function P({ badge: o, children: e, additionalInfo: t, size: n = "medium", ...s }) {
|
|
472
|
-
const
|
|
473
|
-
return /* @__PURE__ */
|
|
474
|
-
|
|
475
|
+
const r = S(), c = S(), b = S(), u = [o && r, t && b].filter((d) => !!d).join(" ") || void 0;
|
|
476
|
+
return /* @__PURE__ */ x(
|
|
477
|
+
le,
|
|
475
478
|
{
|
|
476
479
|
...s,
|
|
477
|
-
"aria-labelledby":
|
|
480
|
+
"aria-labelledby": c,
|
|
478
481
|
"aria-details": u,
|
|
479
482
|
"data-size": n,
|
|
480
483
|
role: "option",
|
|
481
484
|
type: "button",
|
|
482
485
|
children: [
|
|
483
|
-
/* @__PURE__ */ a(
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
/* @__PURE__ */ a(
|
|
486
|
-
o && /* @__PURE__ */ a(
|
|
486
|
+
/* @__PURE__ */ a(re, { "aria-hidden": !0, children: /* @__PURE__ */ a(Bo, {}) }),
|
|
487
|
+
/* @__PURE__ */ x(ce, { children: [
|
|
488
|
+
/* @__PURE__ */ a(ao, { id: c, children: e }),
|
|
489
|
+
o && /* @__PURE__ */ a(so, { id: r, children: o })
|
|
487
490
|
] }),
|
|
488
|
-
t && /* @__PURE__ */ a(
|
|
491
|
+
t && /* @__PURE__ */ a(be, { id: b, children: t })
|
|
489
492
|
]
|
|
490
493
|
}
|
|
491
494
|
);
|
|
492
495
|
}
|
|
493
|
-
P.getOptionLabel =
|
|
494
|
-
P.AdditionalInfo =
|
|
496
|
+
P.getOptionLabel = no;
|
|
497
|
+
P.AdditionalInfo = io;
|
|
495
498
|
function O(o) {
|
|
496
499
|
const { size: e } = L();
|
|
497
|
-
return /* @__PURE__ */ a(
|
|
500
|
+
return /* @__PURE__ */ a(f.Option, { as: P, ...o, size: e === "small" ? "medium" : e });
|
|
498
501
|
}
|
|
499
502
|
O.displayName = "Combobox.Option";
|
|
500
503
|
O.getLabel = P.getOptionLabel;
|
|
501
504
|
O.AdditionalInfo = P.AdditionalInfo;
|
|
502
|
-
function
|
|
503
|
-
const n =
|
|
505
|
+
function p({ defaultValue: o, ...e }) {
|
|
506
|
+
const n = k().map((u) => u.value), { disabled: s, listboxId: r, multiple: c, required: b } = L();
|
|
504
507
|
return /* @__PURE__ */ a(
|
|
505
|
-
|
|
508
|
+
f,
|
|
506
509
|
{
|
|
507
510
|
...e,
|
|
508
|
-
as:
|
|
511
|
+
as: te,
|
|
509
512
|
"aria-disabled": s,
|
|
510
|
-
"aria-multiselectable":
|
|
513
|
+
"aria-multiselectable": c,
|
|
511
514
|
"aria-orientation": "vertical",
|
|
512
|
-
"aria-required":
|
|
515
|
+
"aria-required": b,
|
|
513
516
|
defaultValue: o ?? n,
|
|
514
|
-
id:
|
|
517
|
+
id: r,
|
|
515
518
|
selectionFollowsFocus: !1
|
|
516
519
|
}
|
|
517
520
|
);
|
|
518
521
|
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
function
|
|
522
|
+
p.displayName = "Combobox.Listbox";
|
|
523
|
+
p.Divider = f.Divider;
|
|
524
|
+
p.Optgroup = to;
|
|
525
|
+
p.Option = O;
|
|
526
|
+
p.OptionAdditionalInfo = O.AdditionalInfo;
|
|
527
|
+
p.Placeholder = eo;
|
|
528
|
+
p.clearValue = f.clearValue;
|
|
529
|
+
p.getOptionLabel = O.getLabel;
|
|
530
|
+
p.getSelectedOptions = f.getSelectedOptions;
|
|
531
|
+
p.getValue = f.getValue;
|
|
532
|
+
p.setOptionSelectedState = f.setOptionSelectedState;
|
|
533
|
+
p.useState = f.useState;
|
|
534
|
+
function T(o) {
|
|
532
535
|
const { comboboxId: e, popupId: t } = L();
|
|
533
|
-
return /* @__PURE__ */ a(
|
|
536
|
+
return /* @__PURE__ */ a(E, { ...o, "aria-labelledby": e, id: t, children: o.children });
|
|
534
537
|
}
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
function
|
|
538
|
+
T.displayName = "Combobox.Popup";
|
|
539
|
+
T.show = E.open;
|
|
540
|
+
T.hide = E.close;
|
|
541
|
+
function de({
|
|
539
542
|
isXSBreakpoint: o,
|
|
540
543
|
popupVariant: e
|
|
541
544
|
}) {
|
|
@@ -548,97 +551,98 @@ function ce({
|
|
|
548
551
|
return o ? "borderless" : "default";
|
|
549
552
|
}
|
|
550
553
|
}
|
|
551
|
-
function
|
|
552
|
-
const { variant: e } =
|
|
553
|
-
return /* @__PURE__ */ a(
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
function
|
|
557
|
-
const [t, n] =
|
|
558
|
-
return
|
|
559
|
-
n((
|
|
560
|
-
const
|
|
561
|
-
label:
|
|
554
|
+
function lo(o) {
|
|
555
|
+
const { variant: e } = Q(), t = J(yo("SM")), n = de({ isXSBreakpoint: t, popupVariant: e });
|
|
556
|
+
return /* @__PURE__ */ a(Oo, { ...o, type: "text", variant: n });
|
|
557
|
+
}
|
|
558
|
+
lo.displayName = "Combobox.SearchInput";
|
|
559
|
+
function W(o, e = []) {
|
|
560
|
+
const [t, n] = H(() => e);
|
|
561
|
+
return Y(o, (s, r) => {
|
|
562
|
+
n((c) => {
|
|
563
|
+
const b = c.filter((d) => r.includes(d.value)), u = s.filter((d) => !c.some((m) => m.value === d.value)).map((d) => ({
|
|
564
|
+
label: no(d),
|
|
562
565
|
value: d.value
|
|
563
566
|
}));
|
|
564
|
-
return [...
|
|
567
|
+
return [...b, ...u];
|
|
565
568
|
});
|
|
566
569
|
}), t;
|
|
567
570
|
}
|
|
568
|
-
function
|
|
571
|
+
function me({
|
|
569
572
|
children: o,
|
|
570
573
|
defaultOptions: e,
|
|
571
574
|
listboxId: t
|
|
572
575
|
}) {
|
|
573
|
-
const n =
|
|
576
|
+
const n = k(), s = W(t, e ?? n);
|
|
574
577
|
return o?.(s) ?? s.at(0)?.label;
|
|
575
578
|
}
|
|
576
|
-
const
|
|
577
|
-
function
|
|
578
|
-
const o =
|
|
579
|
+
const ro = v(null);
|
|
580
|
+
function Ce() {
|
|
581
|
+
const o = w(ro);
|
|
579
582
|
if (!o)
|
|
580
583
|
throw new Error("useComboboxSelectionChipsContext requires a ComboboxSelectionChips ancestor");
|
|
581
584
|
return o;
|
|
582
585
|
}
|
|
583
|
-
function
|
|
584
|
-
const n =
|
|
586
|
+
function co({ children: o, value: e, ...t }) {
|
|
587
|
+
const n = Ce();
|
|
585
588
|
return /* @__PURE__ */ a(
|
|
586
|
-
|
|
589
|
+
K.Item,
|
|
587
590
|
{
|
|
588
591
|
...t,
|
|
589
592
|
"aria-controls": n.listboxId,
|
|
590
593
|
"aria-label": `Remove ${o}`,
|
|
591
|
-
onClick: () =>
|
|
594
|
+
onClick: () => go(n.listboxId, e, () => !1),
|
|
592
595
|
value: e,
|
|
593
596
|
children: o
|
|
594
597
|
}
|
|
595
598
|
);
|
|
596
599
|
}
|
|
597
|
-
const
|
|
598
|
-
function
|
|
600
|
+
const xe = "el-combobox-selection-chips";
|
|
601
|
+
function _({
|
|
599
602
|
children: o,
|
|
600
603
|
className: e,
|
|
601
604
|
defaultOptions: t,
|
|
602
605
|
listboxId: n,
|
|
603
606
|
...s
|
|
604
607
|
}) {
|
|
605
|
-
const
|
|
606
|
-
return
|
|
608
|
+
const r = k(), c = W(n, t ?? r), b = o?.(c) ?? c.map((u) => /* @__PURE__ */ a(co, { value: u.value, children: u.label }, u.value));
|
|
609
|
+
return c.length > 0 && /* @__PURE__ */ a(K, { ...s, className: X(xe, e), variant: "selection", children: /* @__PURE__ */ a(ro.Provider, { value: { listboxId: n }, children: b }) });
|
|
607
610
|
}
|
|
608
|
-
|
|
609
|
-
const
|
|
611
|
+
_.Item = co;
|
|
612
|
+
const fe = /* @__PURE__ */ l("div")({
|
|
610
613
|
name: "ElCombobox",
|
|
611
614
|
class: "el-combobox",
|
|
612
615
|
propsAsIs: !1
|
|
613
616
|
});
|
|
614
|
-
function
|
|
617
|
+
function bo(o) {
|
|
615
618
|
return `${o}-listbox`;
|
|
616
619
|
}
|
|
617
|
-
function
|
|
620
|
+
function po(o) {
|
|
618
621
|
return `${o}-popup`;
|
|
619
622
|
}
|
|
620
|
-
function
|
|
621
|
-
const { ariaDescribedBy: e, ariaErrorMessage: t, ariaInvalid: n,
|
|
623
|
+
function he({ onClick: o } = {}) {
|
|
624
|
+
const { ariaDescribedBy: e, ariaErrorMessage: t, ariaInvalid: n, ariaLabelledBy: s, comboboxId: r, disabled: c, popupId: b, required: u } = L(), d = Wo(b);
|
|
622
625
|
return {
|
|
623
|
-
"aria-controls":
|
|
626
|
+
"aria-controls": b,
|
|
624
627
|
"aria-describedby": e,
|
|
625
628
|
"aria-errormessage": t,
|
|
626
|
-
"aria-expanded":
|
|
629
|
+
"aria-expanded": d,
|
|
627
630
|
"aria-invalid": n,
|
|
631
|
+
"aria-labelledby": s,
|
|
628
632
|
// We use aria-required to indicate a value for the _combobox_ is required.
|
|
629
633
|
// See https://www.w3.org/WAI/ARIA/apg/patterns/combobox/
|
|
630
|
-
"aria-required":
|
|
634
|
+
"aria-required": u,
|
|
631
635
|
disabled: c,
|
|
632
|
-
id:
|
|
633
|
-
onClick: (
|
|
634
|
-
o?.(
|
|
636
|
+
id: r,
|
|
637
|
+
onClick: (h) => {
|
|
638
|
+
o?.(h), q(b);
|
|
635
639
|
},
|
|
636
640
|
role: "combobox"
|
|
637
641
|
};
|
|
638
642
|
}
|
|
639
|
-
function
|
|
640
|
-
const [e, t] =
|
|
641
|
-
return
|
|
643
|
+
function ge(o) {
|
|
644
|
+
const [e, t] = H(!1);
|
|
645
|
+
return Y(o, (n, s) => {
|
|
642
646
|
t(s.length > 0);
|
|
643
647
|
}), e;
|
|
644
648
|
}
|
|
@@ -646,128 +650,130 @@ function i({
|
|
|
646
650
|
"aria-describedby": o,
|
|
647
651
|
"aria-errormessage": e,
|
|
648
652
|
"aria-invalid": t,
|
|
649
|
-
|
|
650
|
-
|
|
653
|
+
"aria-labelledby": n,
|
|
654
|
+
children: s,
|
|
655
|
+
disabled: r = !1,
|
|
651
656
|
id: c,
|
|
652
|
-
maxWidth:
|
|
653
|
-
multiple:
|
|
654
|
-
required:
|
|
655
|
-
showValidity:
|
|
656
|
-
size:
|
|
657
|
-
style:
|
|
658
|
-
...
|
|
657
|
+
maxWidth: b,
|
|
658
|
+
multiple: u = !1,
|
|
659
|
+
required: d = !1,
|
|
660
|
+
showValidity: m = !1,
|
|
661
|
+
size: h = "medium",
|
|
662
|
+
style: C,
|
|
663
|
+
...B
|
|
659
664
|
}) {
|
|
660
|
-
const
|
|
665
|
+
const g = S(), A = c ?? g, D = bo(A), M = po(A);
|
|
661
666
|
return /* @__PURE__ */ a(
|
|
662
|
-
|
|
667
|
+
R.Provider,
|
|
663
668
|
{
|
|
664
669
|
value: {
|
|
665
670
|
ariaDescribedBy: o,
|
|
666
671
|
ariaErrorMessage: e,
|
|
667
672
|
ariaInvalid: t,
|
|
673
|
+
ariaLabelledBy: n,
|
|
668
674
|
comboboxId: A,
|
|
669
|
-
disabled:
|
|
670
|
-
listboxId:
|
|
671
|
-
multiple:
|
|
672
|
-
popupId:
|
|
673
|
-
required:
|
|
674
|
-
size:
|
|
675
|
+
disabled: r,
|
|
676
|
+
listboxId: D,
|
|
677
|
+
multiple: u,
|
|
678
|
+
popupId: M,
|
|
679
|
+
required: d,
|
|
680
|
+
size: h
|
|
675
681
|
},
|
|
676
|
-
children: /* @__PURE__ */ a(
|
|
682
|
+
children: /* @__PURE__ */ a(fe, { ...B, "data-show-validity": m, style: { "--combobox-max-width": b, ...C }, children: s })
|
|
677
683
|
}
|
|
678
684
|
);
|
|
679
685
|
}
|
|
680
|
-
i.getOptionLabel =
|
|
681
|
-
i.getListboxValue =
|
|
682
|
-
i.getListboxId =
|
|
683
|
-
i.getPopupId =
|
|
686
|
+
i.getOptionLabel = p.getOptionLabel;
|
|
687
|
+
i.getListboxValue = f.getValue;
|
|
688
|
+
i.getListboxId = bo;
|
|
689
|
+
i.getPopupId = po;
|
|
684
690
|
i.Button = y;
|
|
685
|
-
i.Card =
|
|
686
|
-
i.CardDefaultContent =
|
|
691
|
+
i.Card = Qo;
|
|
692
|
+
i.CardDefaultContent = Z;
|
|
687
693
|
i.ClearButton = y.ClearButton;
|
|
688
|
-
i.Divider =
|
|
689
|
-
i.Listbox =
|
|
690
|
-
i.ListboxPlaceholder =
|
|
694
|
+
i.Divider = p.Divider;
|
|
695
|
+
i.Listbox = p;
|
|
696
|
+
i.ListboxPlaceholder = p.Placeholder;
|
|
691
697
|
i.OpenPopupButton = y.OpenPopupButton;
|
|
692
|
-
i.Optgroup =
|
|
693
|
-
i.Option =
|
|
694
|
-
i.OptionAdditionalInfo =
|
|
695
|
-
i.Popup =
|
|
696
|
-
i.SearchInput =
|
|
697
|
-
i.SelectedContent =
|
|
698
|
-
i.SelectionChips =
|
|
699
|
-
i.SelectionChipsItem =
|
|
700
|
-
i.Context =
|
|
701
|
-
i.DefaultOptionsContext =
|
|
702
|
-
i.useButton =
|
|
698
|
+
i.Optgroup = p.Optgroup;
|
|
699
|
+
i.Option = p.Option;
|
|
700
|
+
i.OptionAdditionalInfo = p.OptionAdditionalInfo;
|
|
701
|
+
i.Popup = T;
|
|
702
|
+
i.SearchInput = lo;
|
|
703
|
+
i.SelectedContent = me;
|
|
704
|
+
i.SelectionChips = _;
|
|
705
|
+
i.SelectionChipsItem = _.Item;
|
|
706
|
+
i.Context = R;
|
|
707
|
+
i.DefaultOptionsContext = oo;
|
|
708
|
+
i.useButton = he;
|
|
703
709
|
i.useContext = L;
|
|
704
|
-
i.useDefaultOptionsContext =
|
|
705
|
-
i.useHasSelection =
|
|
706
|
-
i.useSelectedOptions =
|
|
707
|
-
i.useState =
|
|
710
|
+
i.useDefaultOptionsContext = k;
|
|
711
|
+
i.useHasSelection = ge;
|
|
712
|
+
i.useSelectedOptions = W;
|
|
713
|
+
i.useState = p.useState;
|
|
708
714
|
export {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
715
|
+
qo as $,
|
|
716
|
+
ie as A,
|
|
717
|
+
ae as B,
|
|
712
718
|
y as C,
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
719
|
+
se as D,
|
|
720
|
+
Fo as E,
|
|
721
|
+
no as F,
|
|
716
722
|
P as G,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
723
|
+
io as H,
|
|
724
|
+
le as I,
|
|
725
|
+
re as J,
|
|
726
|
+
ce as K,
|
|
727
|
+
ao as L,
|
|
728
|
+
so as M,
|
|
729
|
+
be as N,
|
|
730
|
+
pe as O,
|
|
731
|
+
ue as P,
|
|
732
|
+
N as Q,
|
|
733
|
+
vo as R,
|
|
734
|
+
wo as S,
|
|
735
|
+
ko as T,
|
|
736
|
+
Mo as U,
|
|
737
|
+
V,
|
|
738
|
+
z as W,
|
|
739
|
+
Q as X,
|
|
740
|
+
q as Y,
|
|
741
|
+
U as Z,
|
|
742
|
+
zo as _,
|
|
743
|
+
Do as a,
|
|
744
|
+
E as a0,
|
|
745
|
+
Vo as a1,
|
|
746
|
+
Ho as a2,
|
|
747
|
+
$o as a3,
|
|
748
|
+
Ro as a4,
|
|
749
|
+
Wo as a5,
|
|
750
|
+
fe as a6,
|
|
751
|
+
he as a7,
|
|
752
|
+
ge as a8,
|
|
753
|
+
W as a9,
|
|
754
|
+
_o as b,
|
|
755
|
+
jo as c,
|
|
756
|
+
Uo as d,
|
|
757
|
+
Yo as e,
|
|
758
|
+
Go as f,
|
|
759
|
+
Qo as g,
|
|
760
|
+
Xo as h,
|
|
761
|
+
Jo as i,
|
|
762
|
+
Ko as j,
|
|
763
|
+
Z as k,
|
|
764
|
+
Zo as l,
|
|
765
|
+
oe as m,
|
|
766
|
+
ee as n,
|
|
761
767
|
i as o,
|
|
762
|
-
|
|
763
|
-
q,
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
768
|
+
T as p,
|
|
769
|
+
R as q,
|
|
770
|
+
bo as r,
|
|
771
|
+
po as s,
|
|
772
|
+
p as t,
|
|
767
773
|
L as u,
|
|
768
|
-
|
|
769
|
-
|
|
774
|
+
eo as v,
|
|
775
|
+
to as w,
|
|
770
776
|
O as x,
|
|
771
|
-
|
|
772
|
-
|
|
777
|
+
te as y,
|
|
778
|
+
ne as z
|
|
773
779
|
};
|