@quidgest/ui 0.16.32 → 0.16.34
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/json/api.json +25 -1
- package/dist/ui.css +20 -11
- package/dist/ui.esm.js +6788 -6641
- package/dist/ui.js +27 -27
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +169 -154
- package/dist/ui.scss +54 -37
- package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +75 -73
- package/esm/components/QSelect/QSelect.d.ts +160 -13
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +326 -138
- package/esm/components/QSelect/index.d.ts +82 -3
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/types.d.ts +12 -0
- package/esm/components/QSelect/types.d.ts.map +1 -1
- package/esm/components/QToast/QToast.vue.js +44 -42
- package/esm/composables/useColor/index.js +23 -20
- package/esm/templates/theme.d.ts.map +1 -1
- package/esm/templates/theme.js +44 -10
- package/esm/utils/color/contrast.d.ts +18 -0
- package/esm/utils/color/contrast.d.ts.map +1 -0
- package/esm/utils/color/contrast.js +6 -0
- package/esm/utils/color/conversion.d.ts +41 -0
- package/esm/utils/color/conversion.d.ts.map +1 -0
- package/esm/utils/color/conversion.js +59 -0
- package/esm/utils/color/index.d.ts +7 -0
- package/esm/utils/color/index.d.ts.map +1 -0
- package/esm/utils/color/manipulate.d.ts +18 -0
- package/esm/utils/color/manipulate.d.ts.map +1 -0
- package/esm/utils/color/manipulate.js +13 -0
- package/esm/utils/color/merge.d.ts +19 -0
- package/esm/utils/color/merge.d.ts.map +1 -0
- package/esm/utils/color/parse.d.ts +24 -0
- package/esm/utils/color/parse.d.ts.map +1 -0
- package/esm/utils/color/parse.js +26 -0
- package/esm/utils/color/types.d.ts +51 -0
- package/esm/utils/color/types.d.ts.map +1 -0
- package/esm/utils/theme.js +1 -1
- package/package.json +3 -1
- package/esm/utils/color.d.ts +0 -123
- package/esm/utils/color.d.ts.map +0 -1
- package/esm/utils/color.js +0 -97
|
@@ -1,26 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
import { defineComponent as de, mergeModels as J, useModel as ce, toRef as S, ref as Y, useTemplateRef as _, computed as L, watch as E, nextTick as z, unref as i, createElementBlock as c, openBlock as t, Fragment as b, createVNode as $, normalizeClass as fe, createSlots as me, withCtx as f, withDirectives as pe, createBlock as m, createCommentVNode as p, renderList as Z, createTextVNode as w, mergeProps as q, toDisplayString as g, normalizeProps as ee, createElementVNode as le, vModelText as ve, renderSlot as h, withModifiers as ye } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as be, DEFAULT_ICONS as ge } from "./types.js";
|
|
3
|
+
import { QBadge as D } from "../QBadge/index.js";
|
|
4
|
+
import { QButton as he } from "../QButton/index.js";
|
|
5
|
+
import { QField as ke } from "../QField/index.js";
|
|
6
|
+
import { QIcon as T } from "../QIcon/index.js";
|
|
7
|
+
import { QList as _e } from "../QList/index.js";
|
|
8
|
+
import { QOverlay as we } from "../QOverlay/index.js";
|
|
9
|
+
import { QSpinnerLoader as qe } from "../QSpinnerLoader/index.js";
|
|
10
|
+
import { QChevron as Be } from "../__internal__/QChevron/index.js";
|
|
11
|
+
import { QClearButton as Ce } from "../__internal__/QClearButton/index.js";
|
|
12
|
+
import { useId as Ve } from "../../composables/uid.js";
|
|
13
|
+
import { useGroup as Le } from "../../composables/useGroup/index.js";
|
|
14
|
+
const Ee = {
|
|
12
15
|
key: 0,
|
|
16
|
+
ref: "badgesContainer",
|
|
17
|
+
class: "q-select__badge-container"
|
|
18
|
+
}, $e = {
|
|
19
|
+
key: 1,
|
|
13
20
|
class: "q-select__value"
|
|
14
|
-
},
|
|
21
|
+
}, De = {
|
|
15
22
|
key: 1,
|
|
16
23
|
class: "q-select__placeholder"
|
|
17
|
-
},
|
|
24
|
+
}, Te = ["id", "tabindex", "aria-keyshortcuts"], Qe = ["data-key"], Re = {
|
|
18
25
|
key: 0,
|
|
19
26
|
class: "q-select__loader"
|
|
20
|
-
},
|
|
27
|
+
}, He = /* @__PURE__ */ de({
|
|
21
28
|
inheritAttrs: !1,
|
|
22
29
|
__name: "QSelect",
|
|
23
|
-
props: /* @__PURE__ */
|
|
30
|
+
props: /* @__PURE__ */ J({
|
|
24
31
|
id: {},
|
|
25
32
|
class: {},
|
|
26
33
|
label: {},
|
|
@@ -34,87 +41,131 @@ const pe = {
|
|
|
34
41
|
groups: { default: () => [] },
|
|
35
42
|
clearable: { type: Boolean },
|
|
36
43
|
inline: { type: Boolean },
|
|
44
|
+
multiple: { type: Boolean },
|
|
45
|
+
badges: { type: Boolean },
|
|
37
46
|
loading: { type: Boolean },
|
|
38
47
|
emptyValue: {},
|
|
39
48
|
itemValue: { default: "key" },
|
|
40
49
|
itemLabel: { default: "label" },
|
|
41
|
-
icons: { default: () =>
|
|
42
|
-
texts: { default: () =>
|
|
50
|
+
icons: { default: () => ge },
|
|
51
|
+
texts: { default: () => be }
|
|
43
52
|
}, {
|
|
44
53
|
modelValue: {},
|
|
45
54
|
modelModifiers: {}
|
|
46
55
|
}),
|
|
47
|
-
emits: /* @__PURE__ */
|
|
48
|
-
setup(
|
|
49
|
-
const e =
|
|
56
|
+
emits: /* @__PURE__ */ J(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
57
|
+
setup(O, { emit: ae }) {
|
|
58
|
+
const e = O, B = ae, r = ce(O, "modelValue"), Q = Ve(S(e, "id")), { active: te } = Le({
|
|
59
|
+
active: r,
|
|
60
|
+
required: S(e, "required"),
|
|
61
|
+
multiple: S(e, "multiple")
|
|
62
|
+
}), d = Y(!1), C = Y(0), R = _("trigger"), oe = _("list"), F = _("content"), K = _("badgesContainer"), U = _("allBadges"), N = L(() => s.value.length === 0), s = L(() => {
|
|
63
|
+
var a;
|
|
64
|
+
if (e.multiple)
|
|
65
|
+
return ((a = r.value) == null ? void 0 : a.map((u) => W(u))) ?? [];
|
|
66
|
+
const l = typeof r.value < "u" ? W(r.value) : void 0;
|
|
67
|
+
return l ? [l] : [];
|
|
68
|
+
}), x = L(
|
|
50
69
|
() => {
|
|
51
70
|
var l;
|
|
52
|
-
return (l =
|
|
71
|
+
return (l = s.value) == null ? void 0 : l.map((a) => a[e.itemLabel]).join(", ");
|
|
53
72
|
}
|
|
54
|
-
),
|
|
55
|
-
() =>
|
|
56
|
-
), u = k(
|
|
57
|
-
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
73
|
+
), k = L(
|
|
74
|
+
() => e.clearable && !e.readonly && !e.disabled && !e.loading && !N.value
|
|
58
75
|
);
|
|
59
|
-
function
|
|
60
|
-
|
|
76
|
+
function W(l) {
|
|
77
|
+
var a;
|
|
78
|
+
return (a = e.items) == null ? void 0 : a.find((u) => u[e.itemValue] === l);
|
|
79
|
+
}
|
|
80
|
+
function ne(l) {
|
|
81
|
+
e.multiple && r.value.splice(l, 1);
|
|
61
82
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
83
|
+
function P(l) {
|
|
84
|
+
r.value = l, e.multiple || V();
|
|
64
85
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
!((o = V.value) != null && o.contains(l.relatedTarget)) && !((f = (c = y.value) == null ? void 0 : c.fieldRef) != null && f.contains(l.relatedTarget)) && b();
|
|
86
|
+
function A() {
|
|
87
|
+
k.value && (P(e.emptyValue), G());
|
|
68
88
|
}
|
|
69
|
-
function
|
|
70
|
-
a
|
|
89
|
+
function ie(l) {
|
|
90
|
+
var a, u, n;
|
|
91
|
+
!((a = F.value) != null && a.contains(l.relatedTarget)) && !((n = (u = R.value) == null ? void 0 : u.fieldRef) != null && n.contains(l.relatedTarget)) && V();
|
|
71
92
|
}
|
|
72
|
-
function
|
|
73
|
-
|
|
93
|
+
function H() {
|
|
94
|
+
d.value || (B("before-show"), d.value = !0);
|
|
74
95
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
96
|
+
function V() {
|
|
97
|
+
d.value && (B("before-hide"), d.value = !1);
|
|
77
98
|
}
|
|
78
|
-
function
|
|
79
|
-
|
|
99
|
+
function j() {
|
|
100
|
+
e.readonly || e.disabled || (d.value ? V() : H());
|
|
80
101
|
}
|
|
81
102
|
function I(l) {
|
|
82
|
-
l.key.
|
|
103
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && H(), ["Escape", "Tab"].includes(l.key) && (d.value ? V() : k.value && l.key === "Escape" && A()), k.value && l.key === "Delete" && A());
|
|
83
104
|
}
|
|
84
|
-
function
|
|
105
|
+
function re(l) {
|
|
106
|
+
l.key.length === 1 && l.preventDefault(), I(l);
|
|
107
|
+
}
|
|
108
|
+
function se() {
|
|
85
109
|
var l;
|
|
86
|
-
e.loading ? (l =
|
|
110
|
+
e.loading ? (l = F.value) == null || l.focus() : X(), B("show");
|
|
87
111
|
}
|
|
88
|
-
function
|
|
89
|
-
|
|
112
|
+
function ue() {
|
|
113
|
+
G(), B("hide");
|
|
90
114
|
}
|
|
91
|
-
function
|
|
92
|
-
var l,
|
|
93
|
-
(
|
|
115
|
+
function G() {
|
|
116
|
+
var l, a;
|
|
117
|
+
(a = (l = R.value) == null ? void 0 : l.fieldRef) == null || a.focus();
|
|
94
118
|
}
|
|
95
|
-
function
|
|
119
|
+
function X() {
|
|
96
120
|
var l;
|
|
97
|
-
(l =
|
|
121
|
+
(l = oe.value) == null || l.$el.focus();
|
|
98
122
|
}
|
|
99
|
-
|
|
123
|
+
async function M() {
|
|
124
|
+
var o;
|
|
125
|
+
if (await z(), !e.multiple || !e.badges || !K.value) return;
|
|
126
|
+
const l = K.value.offsetWidth, a = 4;
|
|
127
|
+
let u = 0, n = 0;
|
|
128
|
+
await z();
|
|
129
|
+
for (const y of U.value ?? []) {
|
|
130
|
+
const v = y.$el.scrollWidth + a;
|
|
131
|
+
if (u + v <= l)
|
|
132
|
+
u += v, n++;
|
|
133
|
+
else break;
|
|
134
|
+
}
|
|
135
|
+
C.value = (((o = U.value) == null ? void 0 : o.length) ?? 0) - n;
|
|
136
|
+
}
|
|
137
|
+
return E(
|
|
100
138
|
() => e.loading,
|
|
101
139
|
(l) => {
|
|
102
|
-
!l &&
|
|
140
|
+
!l && d.value && z(X);
|
|
103
141
|
}
|
|
104
|
-
), (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
142
|
+
), E(() => e.badges, M), E(() => e.clearable, M), E(
|
|
143
|
+
te,
|
|
144
|
+
(l) => {
|
|
145
|
+
var a;
|
|
146
|
+
if (r.value = l, Array.isArray(r.value)) {
|
|
147
|
+
const u = /* @__PURE__ */ new Map();
|
|
148
|
+
(a = e.items) == null || a.forEach((n, o) => {
|
|
149
|
+
u.set(n.key, o);
|
|
150
|
+
}), r.value = i(
|
|
151
|
+
r.value.sort((n, o) => u.get(n) - u.get(o))
|
|
152
|
+
), M();
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{ deep: !0 }
|
|
156
|
+
), (l, a) => {
|
|
157
|
+
var u;
|
|
158
|
+
return t(), c(
|
|
159
|
+
b,
|
|
108
160
|
null,
|
|
109
161
|
[
|
|
110
|
-
|
|
111
|
-
id:
|
|
112
|
-
|
|
113
|
-
ref: y,
|
|
162
|
+
$(i(ke), {
|
|
163
|
+
id: i(Q),
|
|
164
|
+
ref: "trigger",
|
|
114
165
|
label: e.label,
|
|
115
166
|
required: e.required,
|
|
116
167
|
role: "combobox",
|
|
117
|
-
class:
|
|
168
|
+
class: fe([
|
|
118
169
|
"q-select",
|
|
119
170
|
{
|
|
120
171
|
"q-select--readonly": e.readonly,
|
|
@@ -125,22 +176,22 @@ const pe = {
|
|
|
125
176
|
readonly: e.readonly,
|
|
126
177
|
disabled: e.disabled,
|
|
127
178
|
"data-loading": e.loading,
|
|
128
|
-
"aria-expanded":
|
|
179
|
+
"aria-expanded": d.value,
|
|
129
180
|
"aria-haspopup": "listbox",
|
|
130
181
|
size: e.size,
|
|
131
182
|
invalid: e.invalid,
|
|
132
|
-
onClick:
|
|
133
|
-
onKeydown:
|
|
134
|
-
},
|
|
135
|
-
append:
|
|
136
|
-
|
|
137
|
-
|
|
183
|
+
onClick: j,
|
|
184
|
+
onKeydown: I
|
|
185
|
+
}, me({
|
|
186
|
+
append: f(() => [
|
|
187
|
+
h(l.$slots, "append"),
|
|
188
|
+
k.value ? (t(), m(i(Ce), {
|
|
138
189
|
key: 0,
|
|
139
190
|
icons: e.icons,
|
|
140
191
|
texts: e.texts,
|
|
141
|
-
onClick:
|
|
142
|
-
}, null, 8, ["icons", "texts"])) :
|
|
143
|
-
e.readonly ?
|
|
192
|
+
onClick: A
|
|
193
|
+
}, null, 8, ["icons", "texts"])) : p("v-if", !0),
|
|
194
|
+
e.readonly ? p("v-if", !0) : (t(), m(i(he), {
|
|
144
195
|
key: 1,
|
|
145
196
|
class: "q-select__chevron",
|
|
146
197
|
"aria-label": e.texts.showOptions,
|
|
@@ -149,11 +200,11 @@ const pe = {
|
|
|
149
200
|
borderless: "",
|
|
150
201
|
tabindex: "-1",
|
|
151
202
|
disabled: e.disabled,
|
|
152
|
-
onClick:
|
|
203
|
+
onClick: j
|
|
153
204
|
}, {
|
|
154
|
-
default:
|
|
155
|
-
|
|
156
|
-
"model-value":
|
|
205
|
+
default: f(() => [
|
|
206
|
+
$(i(Be), {
|
|
207
|
+
"model-value": d.value,
|
|
157
208
|
icons: e.icons
|
|
158
209
|
}, null, 8, ["model-value", "icons"])
|
|
159
210
|
]),
|
|
@@ -161,121 +212,258 @@ const pe = {
|
|
|
161
212
|
/* STABLE */
|
|
162
213
|
}, 8, ["aria-label", "disabled"]))
|
|
163
214
|
]),
|
|
164
|
-
default:
|
|
165
|
-
|
|
166
|
-
!e.readonly && !e.disabled ? (t(),
|
|
167
|
-
|
|
215
|
+
default: f(() => [
|
|
216
|
+
N.value ? (t(), c("span", De, [
|
|
217
|
+
!e.readonly && !e.disabled ? (t(), c(
|
|
218
|
+
b,
|
|
168
219
|
{ key: 0 },
|
|
169
220
|
[
|
|
170
|
-
|
|
171
|
-
|
|
221
|
+
w(
|
|
222
|
+
g(e.texts.placeholder),
|
|
172
223
|
1
|
|
173
224
|
/* TEXT */
|
|
174
225
|
)
|
|
175
226
|
],
|
|
176
227
|
64
|
|
177
228
|
/* STABLE_FRAGMENT */
|
|
178
|
-
)) :
|
|
179
|
-
])) : (t(),
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
229
|
+
)) : p("v-if", !0)
|
|
230
|
+
])) : (t(), c(
|
|
231
|
+
b,
|
|
232
|
+
{ key: 0 },
|
|
233
|
+
[
|
|
234
|
+
e.badges ? (t(), c(
|
|
235
|
+
"span",
|
|
236
|
+
Ee,
|
|
237
|
+
[
|
|
238
|
+
e.multiple ? (t(), c(
|
|
239
|
+
b,
|
|
240
|
+
{ key: 0 },
|
|
241
|
+
[
|
|
242
|
+
(t(!0), c(
|
|
243
|
+
b,
|
|
244
|
+
null,
|
|
245
|
+
Z(r.value, (n, o) => (t(), c(
|
|
246
|
+
b,
|
|
247
|
+
{ key: o },
|
|
248
|
+
[
|
|
249
|
+
o < r.value.length - C.value ? (t(), m(i(D), {
|
|
250
|
+
key: 0,
|
|
251
|
+
pill: "",
|
|
252
|
+
removable: !e.readonly && !e.disabled && (e.clearable || r.value.length > 1),
|
|
253
|
+
"onClick:remove": () => ne(o)
|
|
254
|
+
}, {
|
|
255
|
+
default: f(() => {
|
|
256
|
+
var y, v;
|
|
257
|
+
return [
|
|
258
|
+
(y = s.value[o]) != null && y.icon ? (t(), m(
|
|
259
|
+
i(T),
|
|
260
|
+
q({
|
|
261
|
+
key: 0,
|
|
262
|
+
ref_for: !0
|
|
263
|
+
}, s.value[o].icon),
|
|
264
|
+
null,
|
|
265
|
+
16
|
|
266
|
+
/* FULL_PROPS */
|
|
267
|
+
)) : p("v-if", !0),
|
|
268
|
+
w(
|
|
269
|
+
" " + g((v = s.value[o]) == null ? void 0 : v[e.itemLabel]),
|
|
270
|
+
1
|
|
271
|
+
/* TEXT */
|
|
272
|
+
)
|
|
273
|
+
];
|
|
274
|
+
}),
|
|
275
|
+
_: 2
|
|
276
|
+
/* DYNAMIC */
|
|
277
|
+
}, 1032, ["removable", "onClick:remove"])) : p("v-if", !0)
|
|
278
|
+
],
|
|
279
|
+
64
|
|
280
|
+
/* STABLE_FRAGMENT */
|
|
281
|
+
))),
|
|
282
|
+
128
|
|
283
|
+
/* KEYED_FRAGMENT */
|
|
284
|
+
)),
|
|
285
|
+
C.value > 0 ? (t(), m(i(D), {
|
|
286
|
+
key: 0,
|
|
287
|
+
pill: "",
|
|
288
|
+
class: "q-select__badge-count"
|
|
289
|
+
}, {
|
|
290
|
+
default: f(() => [
|
|
291
|
+
w(
|
|
292
|
+
" +" + g(C.value),
|
|
293
|
+
1
|
|
294
|
+
/* TEXT */
|
|
295
|
+
)
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
/* STABLE */
|
|
299
|
+
})) : p("v-if", !0),
|
|
300
|
+
(t(!0), c(
|
|
301
|
+
b,
|
|
302
|
+
null,
|
|
303
|
+
Z(r.value, (n, o) => (t(), m(i(D), {
|
|
304
|
+
key: o,
|
|
305
|
+
ref_for: !0,
|
|
306
|
+
ref: "allBadges",
|
|
307
|
+
pill: "",
|
|
308
|
+
class: "q-select__badge-hidden",
|
|
309
|
+
removable: !e.readonly && !e.disabled && (e.clearable || r.value.length > 1)
|
|
310
|
+
}, {
|
|
311
|
+
default: f(() => {
|
|
312
|
+
var y, v;
|
|
313
|
+
return [
|
|
314
|
+
(y = s.value[o]) != null && y.icon ? (t(), m(
|
|
315
|
+
i(T),
|
|
316
|
+
q({
|
|
317
|
+
key: 0,
|
|
318
|
+
ref_for: !0
|
|
319
|
+
}, s.value[o].icon),
|
|
320
|
+
null,
|
|
321
|
+
16
|
|
322
|
+
/* FULL_PROPS */
|
|
323
|
+
)) : p("v-if", !0),
|
|
324
|
+
w(
|
|
325
|
+
" " + g((v = s.value[o]) == null ? void 0 : v[e.itemLabel]),
|
|
326
|
+
1
|
|
327
|
+
/* TEXT */
|
|
328
|
+
)
|
|
329
|
+
];
|
|
330
|
+
}),
|
|
331
|
+
_: 2
|
|
332
|
+
/* DYNAMIC */
|
|
333
|
+
}, 1032, ["removable"]))),
|
|
334
|
+
128
|
|
335
|
+
/* KEYED_FRAGMENT */
|
|
336
|
+
))
|
|
337
|
+
],
|
|
338
|
+
64
|
|
339
|
+
/* STABLE_FRAGMENT */
|
|
340
|
+
)) : (t(), m(i(D), {
|
|
341
|
+
key: 1,
|
|
342
|
+
pill: ""
|
|
343
|
+
}, {
|
|
344
|
+
default: f(() => {
|
|
345
|
+
var n, o;
|
|
346
|
+
return [
|
|
347
|
+
(n = s.value[0]) != null && n.icon ? (t(), m(
|
|
348
|
+
i(T),
|
|
349
|
+
ee(q({ key: 0 }, s.value[0].icon)),
|
|
350
|
+
null,
|
|
351
|
+
16
|
|
352
|
+
/* FULL_PROPS */
|
|
353
|
+
)) : p("v-if", !0),
|
|
354
|
+
w(
|
|
355
|
+
" " + g((o = s.value[0]) == null ? void 0 : o[e.itemLabel]),
|
|
356
|
+
1
|
|
357
|
+
/* TEXT */
|
|
358
|
+
)
|
|
359
|
+
];
|
|
360
|
+
}),
|
|
361
|
+
_: 1
|
|
362
|
+
/* STABLE */
|
|
363
|
+
}))
|
|
364
|
+
],
|
|
365
|
+
512
|
|
366
|
+
/* NEED_PATCH */
|
|
367
|
+
)) : (t(), c(
|
|
368
|
+
"span",
|
|
369
|
+
$e,
|
|
370
|
+
g(x.value),
|
|
371
|
+
1
|
|
372
|
+
/* TEXT */
|
|
373
|
+
))
|
|
374
|
+
],
|
|
375
|
+
64
|
|
376
|
+
/* STABLE_FRAGMENT */
|
|
185
377
|
)),
|
|
186
|
-
|
|
187
|
-
id: `${
|
|
378
|
+
pe(le("input", q({
|
|
379
|
+
id: `${i(Q)}_input`
|
|
188
380
|
}, l.$attrs, {
|
|
189
|
-
"onUpdate:modelValue":
|
|
381
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => x.value = n),
|
|
190
382
|
class: "q-select__input",
|
|
191
383
|
inputmode: "none",
|
|
192
384
|
type: "text",
|
|
193
385
|
autocomplete: "off",
|
|
194
386
|
tabindex: e.disabled ? -1 : 0,
|
|
195
|
-
"aria-keyshortcuts":
|
|
196
|
-
onKeydown:
|
|
197
|
-
}), null, 16,
|
|
198
|
-
[
|
|
387
|
+
"aria-keyshortcuts": k.value ? "Delete" : void 0,
|
|
388
|
+
onKeydown: re
|
|
389
|
+
}), null, 16, Te), [
|
|
390
|
+
[ve, x.value]
|
|
199
391
|
])
|
|
200
392
|
]),
|
|
201
393
|
_: 2
|
|
202
394
|
/* DYNAMIC */
|
|
203
395
|
}, [
|
|
204
|
-
|
|
396
|
+
s.value.length === 1 && s.value[0].icon && !e.badges || l.$slots.prepend ? {
|
|
205
397
|
name: "prepend",
|
|
206
|
-
fn:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
(
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
)) : _("v-if", !0)
|
|
217
|
-
];
|
|
218
|
-
}),
|
|
398
|
+
fn: f(() => [
|
|
399
|
+
h(l.$slots, "prepend"),
|
|
400
|
+
s.value.length === 1 && s.value[0].icon && !e.badges ? (t(), m(
|
|
401
|
+
i(T),
|
|
402
|
+
ee(q({ key: 0 }, s.value[0].icon)),
|
|
403
|
+
null,
|
|
404
|
+
16
|
|
405
|
+
/* FULL_PROPS */
|
|
406
|
+
)) : p("v-if", !0)
|
|
407
|
+
]),
|
|
219
408
|
key: "0"
|
|
220
409
|
} : void 0,
|
|
221
410
|
l.$slots.extras ? {
|
|
222
411
|
name: "extras",
|
|
223
|
-
fn:
|
|
224
|
-
|
|
412
|
+
fn: f(() => [
|
|
413
|
+
h(l.$slots, "extras")
|
|
225
414
|
]),
|
|
226
415
|
key: "1"
|
|
227
416
|
} : void 0
|
|
228
417
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
229
|
-
|
|
230
|
-
modelValue:
|
|
231
|
-
"onUpdate:modelValue":
|
|
418
|
+
$(i(we), {
|
|
419
|
+
modelValue: d.value,
|
|
420
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => d.value = n),
|
|
232
421
|
spy: "",
|
|
233
422
|
trigger: "manual",
|
|
234
423
|
placement: "bottom-start",
|
|
235
424
|
width: "anchor",
|
|
236
425
|
"scroll-lock": "",
|
|
237
426
|
inline: e.inline,
|
|
238
|
-
anchor: (
|
|
427
|
+
anchor: (u = i(R)) == null ? void 0 : u.fieldRef,
|
|
239
428
|
offset: 2,
|
|
240
|
-
onEnter:
|
|
241
|
-
onLeave:
|
|
429
|
+
onEnter: se,
|
|
430
|
+
onLeave: ue
|
|
242
431
|
}, {
|
|
243
|
-
default:
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
ref: V,
|
|
432
|
+
default: f(() => [
|
|
433
|
+
le("div", {
|
|
434
|
+
ref: "content",
|
|
247
435
|
"data-testid": "combobox-dropdown",
|
|
248
|
-
"data-key":
|
|
436
|
+
"data-key": i(Q),
|
|
249
437
|
class: "q-select__body",
|
|
250
438
|
tabindex: "-1",
|
|
251
|
-
onFocusout:
|
|
252
|
-
onKeydown:
|
|
439
|
+
onFocusout: ie,
|
|
440
|
+
onKeydown: ye(I, ["stop"])
|
|
253
441
|
}, [
|
|
254
|
-
|
|
255
|
-
e.loading ? (t(),
|
|
256
|
-
|
|
257
|
-
])) : (t(),
|
|
442
|
+
h(l.$slots, "body.prepend"),
|
|
443
|
+
e.loading ? (t(), c("div", Re, [
|
|
444
|
+
$(i(qe), { size: 24 })
|
|
445
|
+
])) : (t(), m(i(_e), {
|
|
258
446
|
key: 1,
|
|
259
|
-
|
|
260
|
-
ref: B,
|
|
447
|
+
ref: "list",
|
|
261
448
|
class: "q-select__items",
|
|
262
449
|
selectable: "",
|
|
263
450
|
required: e.required,
|
|
264
|
-
|
|
451
|
+
multiple: e.multiple,
|
|
452
|
+
"model-value": r.value,
|
|
265
453
|
items: e.items,
|
|
266
454
|
groups: l.groups,
|
|
267
455
|
"item-label": e.itemLabel,
|
|
268
456
|
"item-value": e.itemValue,
|
|
269
|
-
"onUpdate:modelValue":
|
|
457
|
+
"onUpdate:modelValue": P
|
|
270
458
|
}, {
|
|
271
|
-
item:
|
|
272
|
-
|
|
459
|
+
item: f(({ item: n }) => [
|
|
460
|
+
h(l.$slots, "item", { item: n })
|
|
273
461
|
]),
|
|
274
462
|
_: 3
|
|
275
463
|
/* FORWARDED */
|
|
276
|
-
}, 8, ["required", "model-value", "items", "groups", "item-label", "item-value"])),
|
|
277
|
-
|
|
278
|
-
], 40,
|
|
464
|
+
}, 8, ["required", "multiple", "model-value", "items", "groups", "item-label", "item-value"])),
|
|
465
|
+
h(l.$slots, "body.append")
|
|
466
|
+
], 40, Qe)
|
|
279
467
|
]),
|
|
280
468
|
_: 3
|
|
281
469
|
/* FORWARDED */
|
|
@@ -288,5 +476,5 @@ const pe = {
|
|
|
288
476
|
}
|
|
289
477
|
});
|
|
290
478
|
export {
|
|
291
|
-
|
|
479
|
+
He as default
|
|
292
480
|
};
|