@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.
Files changed (44) hide show
  1. package/dist/json/api.json +25 -1
  2. package/dist/ui.css +20 -11
  3. package/dist/ui.esm.js +6788 -6641
  4. package/dist/ui.js +27 -27
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +169 -154
  7. package/dist/ui.scss +54 -37
  8. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
  9. package/esm/components/QList/QList.d.ts.map +1 -1
  10. package/esm/components/QList/QList.vue.js +75 -73
  11. package/esm/components/QSelect/QSelect.d.ts +160 -13
  12. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  13. package/esm/components/QSelect/QSelect.vue.js +326 -138
  14. package/esm/components/QSelect/index.d.ts +82 -3
  15. package/esm/components/QSelect/index.d.ts.map +1 -1
  16. package/esm/components/QSelect/types.d.ts +12 -0
  17. package/esm/components/QSelect/types.d.ts.map +1 -1
  18. package/esm/components/QToast/QToast.vue.js +44 -42
  19. package/esm/composables/useColor/index.js +23 -20
  20. package/esm/templates/theme.d.ts.map +1 -1
  21. package/esm/templates/theme.js +44 -10
  22. package/esm/utils/color/contrast.d.ts +18 -0
  23. package/esm/utils/color/contrast.d.ts.map +1 -0
  24. package/esm/utils/color/contrast.js +6 -0
  25. package/esm/utils/color/conversion.d.ts +41 -0
  26. package/esm/utils/color/conversion.d.ts.map +1 -0
  27. package/esm/utils/color/conversion.js +59 -0
  28. package/esm/utils/color/index.d.ts +7 -0
  29. package/esm/utils/color/index.d.ts.map +1 -0
  30. package/esm/utils/color/manipulate.d.ts +18 -0
  31. package/esm/utils/color/manipulate.d.ts.map +1 -0
  32. package/esm/utils/color/manipulate.js +13 -0
  33. package/esm/utils/color/merge.d.ts +19 -0
  34. package/esm/utils/color/merge.d.ts.map +1 -0
  35. package/esm/utils/color/parse.d.ts +24 -0
  36. package/esm/utils/color/parse.d.ts.map +1 -0
  37. package/esm/utils/color/parse.js +26 -0
  38. package/esm/utils/color/types.d.ts +51 -0
  39. package/esm/utils/color/types.d.ts.map +1 -0
  40. package/esm/utils/theme.js +1 -1
  41. package/package.json +3 -1
  42. package/esm/utils/color.d.ts +0 -123
  43. package/esm/utils/color.d.ts.map +0 -1
  44. package/esm/utils/color.js +0 -97
@@ -1,26 +1,33 @@
1
- import { defineComponent as H, mergeModels as R, useModel as X, ref as h, computed as k, watch as j, nextTick as G, createElementBlock as p, openBlock as t, Fragment as A, createVNode as g, unref as i, normalizeClass as J, createSlots as W, withCtx as s, withDirectives as Y, toDisplayString as F, createCommentVNode as _, createTextVNode as Z, createElementVNode as K, mergeProps as M, vModelText as ee, renderSlot as d, createBlock as w, normalizeProps as le, withModifiers as oe } from "vue";
2
- import { DEFAULT_TEXTS as ae, DEFAULT_ICONS as te } from "./types.js";
3
- import { QButton as ne } from "../QButton/index.js";
4
- import { QField as ie } from "../QField/index.js";
5
- import { QIcon as se } from "../QIcon/index.js";
6
- import { QList as re } from "../QList/index.js";
7
- import { QOverlay as de } from "../QOverlay/index.js";
8
- import { QSpinnerLoader as ue } from "../QSpinnerLoader/index.js";
9
- import { QChevron as ce } from "../__internal__/QChevron/index.js";
10
- import { QClearButton as fe } from "../__internal__/QClearButton/index.js";
11
- const pe = {
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
- }, me = {
21
+ }, De = {
15
22
  key: 1,
16
23
  class: "q-select__placeholder"
17
- }, ve = ["id", "tabindex", "aria-keyshortcuts"], ye = ["data-key"], be = {
24
+ }, Te = ["id", "tabindex", "aria-keyshortcuts"], Qe = ["data-key"], Re = {
18
25
  key: 0,
19
26
  class: "q-select__loader"
20
- }, Be = /* @__PURE__ */ H({
27
+ }, He = /* @__PURE__ */ de({
21
28
  inheritAttrs: !1,
22
29
  __name: "QSelect",
23
- props: /* @__PURE__ */ R({
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: () => te },
42
- texts: { default: () => ae }
50
+ icons: { default: () => ge },
51
+ texts: { default: () => be }
43
52
  }, {
44
53
  modelValue: {},
45
54
  modelModifiers: {}
46
55
  }),
47
- emits: /* @__PURE__ */ R(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
48
- setup(C, { emit: O }) {
49
- const e = C, m = O, v = X(C, "modelValue"), a = h(!1), y = h(null), B = h(null), V = h(null), D = k(() => r.value === void 0), r = k(
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 = e.items) == null ? void 0 : l.find((o) => o[e.itemValue] === v.value);
71
+ return (l = s.value) == null ? void 0 : l.map((a) => a[e.itemLabel]).join(", ");
53
72
  }
54
- ), q = k(
55
- () => r.value ? r.value[e.itemLabel] : ""
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 L(l) {
60
- v.value = l, b();
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 x() {
63
- u.value && (L(e.emptyValue), Q());
83
+ function P(l) {
84
+ r.value = l, e.multiple || V();
64
85
  }
65
- function U(l) {
66
- var o, c, f;
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.value || (m("before-show"), a.value = !0);
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 b() {
73
- a.value && (m("before-hide"), a.value = !1);
93
+ function H() {
94
+ d.value || (B("before-show"), d.value = !0);
74
95
  }
75
- function T() {
76
- e.readonly || e.disabled || (a.value ? b() : $());
96
+ function V() {
97
+ d.value && (B("before-hide"), d.value = !1);
77
98
  }
78
- function E(l) {
79
- !l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && $(), ["Escape", "Tab"].includes(l.key) && (a.value ? b() : u.value && l.key === "Escape" && x()), u.value && l.key === "Delete" && x());
99
+ function j() {
100
+ e.readonly || e.disabled || (d.value ? V() : H());
80
101
  }
81
102
  function I(l) {
82
- l.key.length === 1 && l.preventDefault(), E(l);
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 N() {
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 = V.value) == null || l.focus() : S(), m("show");
110
+ e.loading ? (l = F.value) == null || l.focus() : X(), B("show");
87
111
  }
88
- function P() {
89
- Q(), m("hide");
112
+ function ue() {
113
+ G(), B("hide");
90
114
  }
91
- function Q() {
92
- var l, o;
93
- (o = (l = y.value) == null ? void 0 : l.fieldRef) == null || o.focus();
115
+ function G() {
116
+ var l, a;
117
+ (a = (l = R.value) == null ? void 0 : l.fieldRef) == null || a.focus();
94
118
  }
95
- function S() {
119
+ function X() {
96
120
  var l;
97
- (l = B.value) == null || l.$el.focus();
121
+ (l = oe.value) == null || l.$el.focus();
98
122
  }
99
- return j(
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 && a.value && G(S);
140
+ !l && d.value && z(X);
103
141
  }
104
- ), (l, o) => {
105
- var c, f;
106
- return t(), p(
107
- A,
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
- g(i(ie), {
111
- id: e.id,
112
- ref_key: "triggerEl",
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: J([
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": a.value,
179
+ "aria-expanded": d.value,
129
180
  "aria-haspopup": "listbox",
130
181
  size: e.size,
131
182
  invalid: e.invalid,
132
- onClick: T,
133
- onKeydown: E
134
- }, W({
135
- append: s(() => [
136
- d(l.$slots, "append"),
137
- u.value && v.value ? (t(), w(i(fe), {
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: x
142
- }, null, 8, ["icons", "texts"])) : _("v-if", !0),
143
- e.readonly ? _("v-if", !0) : (t(), w(i(ne), {
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: T
203
+ onClick: j
153
204
  }, {
154
- default: s(() => [
155
- g(i(ce), {
156
- "model-value": a.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: s(() => [
165
- D.value ? (t(), p("span", me, [
166
- !e.readonly && !e.disabled ? (t(), p(
167
- A,
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
- Z(
171
- F(e.texts.placeholder),
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
- )) : _("v-if", !0)
179
- ])) : (t(), p(
180
- "span",
181
- pe,
182
- F(q.value),
183
- 1
184
- /* TEXT */
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
- Y(K("input", M({
187
- id: `${e.id}_input`
378
+ pe(le("input", q({
379
+ id: `${i(Q)}_input`
188
380
  }, l.$attrs, {
189
- "onUpdate:modelValue": o[0] || (o[0] = (n) => q.value = n),
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": u.value && !D.value ? "Delete" : void 0,
196
- onKeydown: I
197
- }), null, 16, ve), [
198
- [ee, q.value]
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
- (c = r.value) != null && c.icon || l.$slots.prepend ? {
396
+ s.value.length === 1 && s.value[0].icon && !e.badges || l.$slots.prepend ? {
205
397
  name: "prepend",
206
- fn: s(() => {
207
- var n, z;
208
- return [
209
- d(l.$slots, "prepend"),
210
- (n = r.value) != null && n.icon ? (t(), w(
211
- i(se),
212
- le(M({ key: 0 }, (z = r.value) == null ? void 0 : z.icon)),
213
- null,
214
- 16
215
- /* FULL_PROPS */
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: s(() => [
224
- d(l.$slots, "extras")
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
- g(i(de), {
230
- modelValue: a.value,
231
- "onUpdate:modelValue": o[1] || (o[1] = (n) => a.value = n),
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: (f = y.value) == null ? void 0 : f.fieldRef,
427
+ anchor: (u = i(R)) == null ? void 0 : u.fieldRef,
239
428
  offset: 2,
240
- onEnter: N,
241
- onLeave: P
429
+ onEnter: se,
430
+ onLeave: ue
242
431
  }, {
243
- default: s(() => [
244
- K("div", {
245
- ref_key: "contentRef",
246
- ref: V,
432
+ default: f(() => [
433
+ le("div", {
434
+ ref: "content",
247
435
  "data-testid": "combobox-dropdown",
248
- "data-key": e.id,
436
+ "data-key": i(Q),
249
437
  class: "q-select__body",
250
438
  tabindex: "-1",
251
- onFocusout: U,
252
- onKeydown: oe(E, ["stop"])
439
+ onFocusout: ie,
440
+ onKeydown: ye(I, ["stop"])
253
441
  }, [
254
- d(l.$slots, "body.prepend"),
255
- e.loading ? (t(), p("div", be, [
256
- g(i(ue), { size: 24 })
257
- ])) : (t(), w(i(re), {
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
- ref_key: "listRef",
260
- ref: B,
447
+ ref: "list",
261
448
  class: "q-select__items",
262
449
  selectable: "",
263
450
  required: e.required,
264
- "model-value": v.value,
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": L
457
+ "onUpdate:modelValue": P
270
458
  }, {
271
- item: s(({ item: n }) => [
272
- d(l.$slots, "item", { item: n })
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
- d(l.$slots, "body.append")
278
- ], 40, ye)
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
- Be as default
479
+ He as default
292
480
  };