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