@quidgest/ui 0.8.3 → 0.8.4

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/ui.esm.js CHANGED
@@ -1,29 +1,29 @@
1
- import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as x, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as M, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as N, renderSlot as b, toRef as ge, createBlock as E, withCtx as $, renderList as ce, resolveDynamicComponent as Ve, h as _e, normalizeProps as re, mergeProps as Z, reactive as Fe, onBeforeUnmount as Re, onMounted as Ee, nextTick as j, Teleport as Oe, Transition as Ue, withKeys as Me, createSlots as pe, withDirectives as Ne, vModelDynamic as He, guardReactiveProps as ke } from "vue";
2
- function fe(t) {
1
+ import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as Ve, watch as R, defineComponent as L, openBlock as u, createElementBlock as m, normalizeClass as S, normalizeStyle as ue, createElementVNode as j, withModifiers as se, createVNode as z, unref as b, createCommentVNode as I, Fragment as Y, createTextVNode as ie, toDisplayString as H, renderSlot as h, toRef as ke, createBlock as B, withCtx as _, renderList as pe, resolveDynamicComponent as Ee, h as we, normalizeProps as ee, mergeProps as le, reactive as Ue, onBeforeUnmount as Me, onMounted as De, nextTick as W, Teleport as Ne, Transition as He, withKeys as Ke, createSlots as ve, withDirectives as Ge, vModelDynamic as We, guardReactiveProps as oe } from "vue";
2
+ function me(t) {
3
3
  return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
4
4
  }
5
- function we(t) {
5
+ function $e(t) {
6
6
  return t !== null && typeof t == "object" && !Array.isArray(t);
7
7
  }
8
- function me(t = {}, n = {}) {
9
- const o = {};
8
+ function he(t = {}, n = {}) {
9
+ const a = {};
10
10
  for (const e in t)
11
- o[e] = t[e];
11
+ a[e] = t[e];
12
12
  for (const e in n) {
13
13
  const l = t[e], r = n[e];
14
- if (we(l) && we(r)) {
15
- o[e] = me(
14
+ if ($e(l) && $e(r)) {
15
+ a[e] = he(
16
16
  l,
17
17
  r
18
18
  );
19
19
  continue;
20
20
  }
21
- o[e] = r;
21
+ a[e] = r;
22
22
  }
23
- return o;
23
+ return a;
24
24
  }
25
- const ve = "q-defaults";
26
- function Ke() {
25
+ const be = "q-defaults";
26
+ function je() {
27
27
  var r, s;
28
28
  const t = Be();
29
29
  if (!t)
@@ -31,36 +31,36 @@ function Ke() {
31
31
  const n = t.type.name ?? t.type.__name;
32
32
  if (!n)
33
33
  throw new Error("[Quidgest UI] Could not determine component name");
34
- const o = Te(), e = (r = o.value) == null ? void 0 : r.Global, l = (s = o.value) == null ? void 0 : s[n];
35
- return k(() => me(e, l));
34
+ const a = Ce(), e = (r = a.value) == null ? void 0 : r.Global, l = (s = a.value) == null ? void 0 : s[n];
35
+ return k(() => he(e, l));
36
36
  }
37
- function De(t) {
38
- if (fe(t))
37
+ function Te(t) {
38
+ if (me(t))
39
39
  return;
40
- const n = Te(), o = q(t), e = k(() => fe(o.value) ? n.value : me(n.value, o.value));
41
- Se(ve, e);
40
+ const n = Ce(), a = q(t), e = k(() => me(a.value) ? n.value : he(n.value, a.value));
41
+ Se(be, e);
42
42
  }
43
- function Te() {
44
- const t = xe(ve, void 0);
43
+ function Ce() {
44
+ const t = Ve(be, void 0);
45
45
  if (!t)
46
46
  throw new Error("[Quidgest UI] Could not find defaults instance");
47
47
  return t;
48
48
  }
49
- const ae = "q-theme";
50
- function Ge() {
51
- const t = xe(ae);
49
+ const re = "q-theme";
50
+ function Pe() {
51
+ const t = Ve(re);
52
52
  if (!t)
53
53
  throw new Error("[Quidgest UI] Could not find theme instance");
54
54
  return t;
55
55
  }
56
- function $n(t) {
57
- const n = Ge(), o = {
56
+ function In(t) {
57
+ const n = Pe(), a = {
58
58
  activeTheme: q(t),
59
59
  themes: n.themes
60
60
  };
61
- return Se(ae, o), o;
61
+ return Se(re, a), a;
62
62
  }
63
- const $e = {
63
+ const qe = {
64
64
  primary: "#007dbe",
65
65
  primaryLight: "#cde5ff",
66
66
  primaryDark: "#006398",
@@ -91,7 +91,7 @@ const $e = {
91
91
  onWarning: "#fff",
92
92
  onDanger: "#fff",
93
93
  onInfo: "#fff"
94
- }, We = {
94
+ }, Xe = {
95
95
  primary: "#018BD2",
96
96
  primaryLight: "#cce7f6",
97
97
  primaryDark: "#006fac",
@@ -123,26 +123,26 @@ const $e = {
123
123
  onDanger: "#fff",
124
124
  onInfo: "#fff"
125
125
  };
126
- function je(t) {
126
+ function Ye(t) {
127
127
  return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
128
128
  }
129
- function Pe(t) {
130
- if (!je(t))
129
+ function Ze(t) {
130
+ if (!Ye(t))
131
131
  throw new Error("Invalid color format");
132
132
  t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
133
- const n = parseInt(t.slice(1, 3), 16), o = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
134
- return { r: n, g: o, b: e };
133
+ const n = parseInt(t.slice(1, 3), 16), a = parseInt(t.slice(3, 5), 16), e = parseInt(t.slice(5, 7), 16);
134
+ return { r: n, g: a, b: e };
135
135
  }
136
136
  function ze(t) {
137
137
  return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
138
138
  }
139
- function Xe() {
139
+ function Je() {
140
140
  let t = document.getElementById(
141
- ae
141
+ re
142
142
  );
143
- return t || (t = document.createElement("style"), t.id = ae, document.head.appendChild(t)), t;
143
+ return t || (t = document.createElement("style"), t.id = re, document.head.appendChild(t)), t;
144
144
  }
145
- function Ye(t) {
145
+ function et(t) {
146
146
  let n = "";
147
147
  for (const e of t) {
148
148
  n += `.q-theme--${e.name} {
@@ -152,44 +152,44 @@ function Ye(t) {
152
152
  for (r in l) {
153
153
  const s = l[r];
154
154
  if (s) {
155
- n += ` ${qe(r)}: ${s};
155
+ n += ` ${Ie(r)}: ${s};
156
156
  `;
157
- const d = Pe(s);
158
- n += ` ${qe(r)}-rgb: ${d.r} ${d.g} ${d.b};
157
+ const d = Ze(s);
158
+ n += ` ${Ie(r)}-rgb: ${d.r} ${d.g} ${d.b};
159
159
  `;
160
160
  }
161
161
  }
162
162
  n += `}
163
163
  `;
164
164
  }
165
- const o = Xe();
166
- o.textContent = n;
165
+ const a = Je();
166
+ a.textContent = n;
167
167
  }
168
- function qe(t) {
168
+ function Ie(t) {
169
169
  return t ? `--q-theme-${ze(t)}` : "";
170
170
  }
171
- function qn(t = {}) {
172
- return { install: (o) => {
171
+ function Ln(t = {}) {
172
+ return { install: (a) => {
173
173
  const e = t.components || {};
174
174
  for (const r in e)
175
- o.component(r, e[r]);
175
+ a.component(r, e[r]);
176
176
  const l = t.defaults || {};
177
- o.provide(ve, q(l)), Ze(o, t.themes);
177
+ a.provide(be, q(l)), tt(a, t.themes);
178
178
  } };
179
179
  }
180
- function Ze(t, n) {
181
- const o = [];
180
+ function tt(t, n) {
181
+ const a = [];
182
182
  let e;
183
183
  if (!n)
184
- e = "default", o.push({
184
+ e = "default", a.push({
185
185
  name: e,
186
186
  mode: "light",
187
- scheme: $e
187
+ scheme: qe
188
188
  });
189
189
  else
190
190
  for (const l of n.themes) {
191
- const s = { ...l.mode === "light" ? $e : We, ...l.colors };
192
- o.push({
191
+ const s = { ...l.mode === "light" ? qe : Xe, ...l.colors };
192
+ a.push({
193
193
  name: l.name,
194
194
  mode: l.mode,
195
195
  scheme: s
@@ -198,17 +198,17 @@ function Ze(t, n) {
198
198
  if (e) {
199
199
  const l = {
200
200
  activeTheme: q(e),
201
- themes: o
201
+ themes: a
202
202
  };
203
- Ye(o), F(l.activeTheme, Je, { immediate: !0 }), t.provide(ae, l);
203
+ et(a), R(l.activeTheme, nt, { immediate: !0 }), t.provide(re, l);
204
204
  }
205
205
  }
206
- function Je(t) {
206
+ function nt(t) {
207
207
  const n = document.documentElement, e = Array.from(n.classList).filter((l) => !l.startsWith("q-theme"));
208
208
  n.className = e.join(" "), n.classList.add(`q-theme--${t}`);
209
209
  }
210
- const et = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
211
- /* @__PURE__ */ P("circle", {
210
+ const lt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
211
+ /* @__PURE__ */ j("circle", {
212
212
  class: "path",
213
213
  cx: "50",
214
214
  cy: "50",
@@ -218,52 +218,52 @@ const et = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
218
218
  "stroke-width": "5",
219
219
  "stroke-miterlimit": "10"
220
220
  })
221
- ], -1), tt = [
222
- et
223
- ], nt = /* @__PURE__ */ B({
221
+ ], -1), ot = [
222
+ lt
223
+ ], at = /* @__PURE__ */ L({
224
224
  __name: "QSpinnerLoader",
225
225
  props: {
226
226
  size: { default: 48 },
227
227
  class: { default: void 0 }
228
228
  },
229
229
  setup(t) {
230
- const n = t, o = k(() => ({
230
+ const n = t, a = k(() => ({
231
231
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
232
232
  }));
233
- return (e, l) => (u(), v("div", {
234
- class: x(["q-spinner-loader", n.class]),
235
- style: se(o.value)
236
- }, tt, 6));
233
+ return (e, l) => (u(), m("div", {
234
+ class: S(["q-spinner-loader", n.class]),
235
+ style: ue(a.value)
236
+ }, ot, 6));
237
237
  }
238
238
  });
239
- function lt(t, n) {
239
+ function st(t, n) {
240
240
  var e;
241
- const o = ze(n);
242
- return o ? typeof ((e = t.props) == null ? void 0 : e[o]) < "u" : !1;
241
+ const a = ze(n);
242
+ return a ? typeof ((e = t.props) == null ? void 0 : e[a]) < "u" : !1;
243
243
  }
244
- function S(t) {
244
+ function x(t) {
245
245
  const n = t.setup;
246
- return n && (t.setup = (o, e) => {
247
- const l = Ke();
248
- if (fe(l.value))
249
- return n(o, e);
246
+ return n && (t.setup = (a, e) => {
247
+ const l = je();
248
+ if (me(l.value))
249
+ return n(a, e);
250
250
  const r = Be();
251
251
  if (r === null)
252
- return n(o, e);
253
- const s = new Proxy(o, {
254
- get(d, m) {
255
- var p;
256
- const h = Reflect.get(d, m), _ = (p = l.value) == null ? void 0 : p[m];
257
- return typeof m == "string" && !lt(r.vnode, m) ? _ ?? h : h;
252
+ return n(a, e);
253
+ const s = new Proxy(a, {
254
+ get(d, p) {
255
+ var f;
256
+ const v = Reflect.get(d, p), y = (f = l.value) == null ? void 0 : f[p];
257
+ return typeof p == "string" && !st(r.vnode, p) ? y ?? v : v;
258
258
  }
259
259
  });
260
260
  return n(s, e);
261
261
  }), t;
262
262
  }
263
- const he = S(nt), ot = ["disabled"], at = {
263
+ const ye = x(at), it = ["disabled"], rt = {
264
264
  key: 0,
265
265
  class: "q-btn__spinner"
266
- }, st = { class: "q-btn__content" }, it = /* @__PURE__ */ B({
266
+ }, dt = { class: "q-btn__content" }, ut = /* @__PURE__ */ L({
267
267
  __name: "QButton",
268
268
  props: {
269
269
  active: { type: Boolean },
@@ -280,9 +280,9 @@ const he = S(nt), ot = ["disabled"], at = {
280
280
  },
281
281
  emits: ["click"],
282
282
  setup(t, { emit: n }) {
283
- const o = n, e = t, l = k(() => e.disabled || e.loading);
283
+ const a = n, e = t, l = k(() => e.disabled || e.loading);
284
284
  function r(d) {
285
- l.value || o("click", d);
285
+ l.value || a("click", d);
286
286
  }
287
287
  const s = k(() => {
288
288
  const d = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
@@ -300,27 +300,27 @@ const he = S(nt), ot = ["disabled"], at = {
300
300
  e.class
301
301
  ];
302
302
  });
303
- return (d, m) => (u(), v("button", {
303
+ return (d, p) => (u(), m("button", {
304
304
  type: "button",
305
- class: x(s.value),
305
+ class: S(s.value),
306
306
  disabled: l.value,
307
- onClick: te(r, ["stop", "prevent"])
307
+ onClick: se(r, ["stop", "prevent"])
308
308
  }, [
309
- d.loading ? (u(), v("div", at, [
310
- M(y(he), { size: 20 })
311
- ])) : L("", !0),
312
- P("span", st, [
313
- d.iconOnRight ? (u(), v(J, { key: 0 }, [
314
- oe(N(e.label), 1)
315
- ], 64)) : L("", !0),
316
- b(d.$slots, "default"),
317
- d.iconOnRight ? L("", !0) : (u(), v(J, { key: 1 }, [
318
- oe(N(e.label), 1)
309
+ d.loading ? (u(), m("div", rt, [
310
+ z(b(ye), { size: 20 })
311
+ ])) : I("", !0),
312
+ j("span", dt, [
313
+ d.iconOnRight ? (u(), m(Y, { key: 0 }, [
314
+ ie(H(e.label), 1)
315
+ ], 64)) : I("", !0),
316
+ h(d.$slots, "default"),
317
+ d.iconOnRight ? I("", !0) : (u(), m(Y, { key: 1 }, [
318
+ ie(H(e.label), 1)
319
319
  ], 64))
320
320
  ])
321
- ], 10, ot));
321
+ ], 10, it));
322
322
  }
323
- }), rt = S(it), dt = /* @__PURE__ */ B({
323
+ }), de = x(ut), ct = /* @__PURE__ */ L({
324
324
  __name: "QButtonGroup",
325
325
  props: {
326
326
  disabled: { type: Boolean },
@@ -330,15 +330,15 @@ const he = S(nt), ot = ["disabled"], at = {
330
330
  },
331
331
  setup(t) {
332
332
  const n = t;
333
- return De({
333
+ return Te({
334
334
  QButton: {
335
335
  bStyle: "secondary",
336
- disabled: ge(n, "disabled"),
337
- borderless: ge(n, "borderless"),
336
+ disabled: ke(n, "disabled"),
337
+ borderless: ke(n, "borderless"),
338
338
  elevated: !1
339
339
  }
340
- }), (o, e) => (u(), v("div", {
341
- class: x([
340
+ }), (a, e) => (u(), m("div", {
341
+ class: S([
342
342
  "q-btn-group",
343
343
  {
344
344
  "q-btn-group--elevated": n.elevated
@@ -346,10 +346,10 @@ const he = S(nt), ot = ["disabled"], at = {
346
346
  n.class
347
347
  ])
348
348
  }, [
349
- b(o.$slots, "default")
349
+ h(a.$slots, "default")
350
350
  ], 2));
351
351
  }
352
- }), ut = S(dt), ct = /* @__PURE__ */ B({
352
+ }), ft = x(ct), pt = /* @__PURE__ */ L({
353
353
  __name: "QButtonToggle",
354
354
  props: {
355
355
  modelValue: {},
@@ -362,8 +362,8 @@ const he = S(nt), ot = ["disabled"], at = {
362
362
  },
363
363
  emits: ["update:modelValue"],
364
364
  setup(t, { emit: n }) {
365
- const o = n, e = t, l = q(e.modelValue);
366
- F(
365
+ const a = n, e = t, l = q(e.modelValue);
366
+ R(
367
367
  () => e.modelValue,
368
368
  (d) => l.value = d
369
369
  );
@@ -372,29 +372,29 @@ const he = S(nt), ot = ["disabled"], at = {
372
372
  return l.value;
373
373
  },
374
374
  set(d) {
375
- l.value = d, o("update:modelValue", d);
375
+ l.value = d, a("update:modelValue", d);
376
376
  }
377
377
  });
378
378
  function s(d) {
379
379
  r.value === d.key && !e.required ? r.value = void 0 : r.value = d.key;
380
380
  }
381
- return (d, m) => (u(), E(y(ut), {
381
+ return (d, p) => (u(), B(b(ft), {
382
382
  "b-style": "secondary",
383
- class: x(e.class),
383
+ class: S(e.class),
384
384
  disabled: e.disabled,
385
385
  borderless: e.borderless,
386
386
  elevated: e.elevated
387
387
  }, {
388
- default: $(() => [
389
- (u(!0), v(J, null, ce(e.options, (h) => (u(), E(y(rt), {
390
- key: h.key,
391
- title: h.title,
392
- label: h.label,
393
- active: r.value === h.key,
394
- onClick: () => s(h)
388
+ default: _(() => [
389
+ (u(!0), m(Y, null, pe(e.options, (v) => (u(), B(b(de), {
390
+ key: v.key,
391
+ title: v.title,
392
+ label: v.label,
393
+ active: r.value === v.key,
394
+ onClick: () => s(v)
395
395
  }, {
396
- default: $(() => [
397
- b(d.$slots, h.key)
396
+ default: _(() => [
397
+ h(d.$slots, v.key)
398
398
  ]),
399
399
  _: 2
400
400
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -402,7 +402,7 @@ const he = S(nt), ot = ["disabled"], at = {
402
402
  _: 3
403
403
  }, 8, ["class", "disabled", "borderless", "elevated"]));
404
404
  }
405
- }), In = S(ct), ft = /* @__PURE__ */ B({
405
+ }), xn = x(pt), mt = /* @__PURE__ */ L({
406
406
  __name: "QIcon",
407
407
  props: {
408
408
  icon: {},
@@ -411,25 +411,25 @@ const he = S(nt), ot = ["disabled"], at = {
411
411
  class: { default: void 0 }
412
412
  },
413
413
  setup(t) {
414
- const n = t, o = k(() => {
414
+ const n = t, a = k(() => {
415
415
  switch (n.type) {
416
416
  case "svg":
417
- return wt;
417
+ return qt;
418
418
  case "font":
419
- return _t;
419
+ return wt;
420
420
  case "img":
421
- return kt;
421
+ return $t;
422
422
  default:
423
423
  return;
424
424
  }
425
425
  });
426
- return (e, l) => (u(), E(Ve(o.value), {
427
- class: x(n.class),
426
+ return (e, l) => (u(), B(Ee(a.value), {
427
+ class: S(n.class),
428
428
  icon: n.icon,
429
429
  size: n.size
430
430
  }, null, 8, ["class", "icon", "size"]));
431
431
  }
432
- }), pt = /* @__PURE__ */ B({
432
+ }), vt = /* @__PURE__ */ L({
433
433
  __name: "QIconFont",
434
434
  props: {
435
435
  icon: {},
@@ -439,15 +439,15 @@ const he = S(nt), ot = ["disabled"], at = {
439
439
  class: { default: void 0 }
440
440
  },
441
441
  setup(t) {
442
- const n = t, o = k(() => n.variant ? `${n.library}-${n.variant}` : n.library), e = k(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), l = k(() => ({
442
+ const n = t, a = k(() => n.variant ? `${n.library}-${n.variant}` : n.library), e = k(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), l = k(() => ({
443
443
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
444
444
  }));
445
- return (r, s) => (u(), v("i", {
446
- class: x(["q-icon", "q-icon__font", o.value, e.value, n.class]),
447
- style: se(l.value)
445
+ return (r, s) => (u(), m("i", {
446
+ class: S(["q-icon", "q-icon__font", a.value, e.value, n.class]),
447
+ style: ue(l.value)
448
448
  }, null, 6));
449
449
  }
450
- }), mt = ["src"], vt = /* @__PURE__ */ B({
450
+ }), ht = ["src"], bt = /* @__PURE__ */ L({
451
451
  __name: "QIconImg",
452
452
  props: {
453
453
  icon: {},
@@ -455,16 +455,16 @@ const he = S(nt), ot = ["disabled"], at = {
455
455
  class: {}
456
456
  },
457
457
  setup(t) {
458
- const n = t, o = k(() => ({
458
+ const n = t, a = k(() => ({
459
459
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
460
460
  }));
461
- return (e, l) => (u(), v("img", {
461
+ return (e, l) => (u(), m("img", {
462
462
  src: n.icon,
463
- class: x(["q-icon", "q-icon__img", n.class]),
464
- style: se(o.value)
465
- }, null, 14, mt));
463
+ class: S(["q-icon", "q-icon__img", n.class]),
464
+ style: ue(a.value)
465
+ }, null, 14, ht));
466
466
  }
467
- }), le = {}, ht = B({
467
+ }), ae = {}, yt = L({
468
468
  name: "InlineSvg",
469
469
  emits: ["loaded", "unloaded", "error"],
470
470
  inheritAttrs: !1,
@@ -473,9 +473,9 @@ const he = S(nt), ot = ["disabled"], at = {
473
473
  return null;
474
474
  const t = this.getSvgContent(this.svgElSource);
475
475
  if (!t)
476
- return _e("div", this.$attrs);
476
+ return we("div", this.$attrs);
477
477
  const n = {};
478
- return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, _e("svg", n);
478
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, we("svg", n);
479
479
  },
480
480
  props: {
481
481
  src: {
@@ -510,17 +510,17 @@ const he = S(nt), ot = ["disabled"], at = {
510
510
  },
511
511
  methods: {
512
512
  copySvgAttrs(t, n) {
513
- const o = n.attributes;
514
- if (o)
515
- for (const e of o)
513
+ const a = n.attributes;
514
+ if (a)
515
+ for (const e of a)
516
516
  t[e.name] = e.value;
517
517
  },
518
518
  copyComponentAttrs(t, n) {
519
- for (const [o, e] of Object.entries(n))
520
- e !== !1 && e !== null && e !== void 0 && (t[o] = e);
519
+ for (const [a, e] of Object.entries(n))
520
+ e !== !1 && e !== null && e !== void 0 && (t[a] = e);
521
521
  },
522
522
  getSvgContent(t) {
523
- return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), bt(t, this.title)), t);
523
+ return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), gt(t, this.title)), t);
524
524
  },
525
525
  /**
526
526
  * Get svgElSource
@@ -528,11 +528,11 @@ const he = S(nt), ot = ["disabled"], at = {
528
528
  */
529
529
  async getSource(t) {
530
530
  try {
531
- le[t] || (le[t] = yt(this.download(t))), this.svgElSource && le[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
532
- const n = await le[t];
531
+ ae[t] || (ae[t] = _t(this.download(t))), this.svgElSource && ae[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
532
+ const n = await ae[t];
533
533
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
534
534
  } catch (n) {
535
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete le[t], this.$emit("error", n);
535
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ae[t], this.$emit("error", n);
536
536
  }
537
537
  },
538
538
  /**
@@ -544,7 +544,7 @@ const he = S(nt), ot = ["disabled"], at = {
544
544
  const n = await fetch(t);
545
545
  if (!n.ok)
546
546
  throw new Error("Error loading SVG");
547
- const o = await n.text(), r = new DOMParser().parseFromString(o, "text/xml").getElementsByTagName("svg")[0];
547
+ const a = await n.text(), r = new DOMParser().parseFromString(a, "text/xml").getElementsByTagName("svg")[0];
548
548
  if (!r)
549
549
  throw new Error("Loaded file is not a valid SVG");
550
550
  return r;
@@ -556,28 +556,28 @@ const he = S(nt), ot = ["disabled"], at = {
556
556
  }
557
557
  }
558
558
  });
559
- function bt(t, n) {
560
- const o = t.getElementsByTagName("title");
561
- if (o.length)
562
- o[0].textContent = n;
559
+ function gt(t, n) {
560
+ const a = t.getElementsByTagName("title");
561
+ if (a.length)
562
+ a[0].textContent = n;
563
563
  else {
564
564
  const e = document.createElementNS("http://www.w3.org/2000/svg", "title");
565
565
  e.textContent = n, t.insertBefore(e, t.firstChild);
566
566
  }
567
567
  }
568
- function yt(t) {
568
+ function _t(t) {
569
569
  if (t.getIsPending)
570
570
  return t;
571
571
  let n = !0;
572
- const o = t.then(
572
+ const a = t.then(
573
573
  (e) => (n = !1, e),
574
574
  (e) => {
575
575
  throw n = !1, e;
576
576
  }
577
577
  );
578
- return o.getIsPending = () => n, o;
578
+ return a.getIsPending = () => n, a;
579
579
  }
580
- const gt = /* @__PURE__ */ B({
580
+ const kt = /* @__PURE__ */ L({
581
581
  __name: "QIconSvg",
582
582
  props: {
583
583
  icon: {},
@@ -587,25 +587,25 @@ const gt = /* @__PURE__ */ B({
587
587
  },
588
588
  emits: ["loaded", "unloaded"],
589
589
  setup(t, { emit: n }) {
590
- const o = n, e = t, l = k(() => ({
590
+ const a = n, e = t, l = k(() => ({
591
591
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
592
592
  }));
593
593
  function r(d) {
594
- o("loaded", d);
594
+ a("loaded", d);
595
595
  }
596
596
  function s() {
597
- o("unloaded");
597
+ a("unloaded");
598
598
  }
599
- return (d, m) => (u(), E(y(ht), {
600
- class: x(["q-icon", "q-icon__svg", e.class]),
599
+ return (d, p) => (u(), B(b(yt), {
600
+ class: S(["q-icon", "q-icon__svg", e.class]),
601
601
  src: e.bundle,
602
602
  symbol: e.icon,
603
- style: se(l.value),
603
+ style: ue(l.value),
604
604
  onLoaded: r,
605
605
  onUnloaded: s
606
606
  }, null, 8, ["class", "src", "symbol", "style"]));
607
607
  }
608
- }), ee = S(ft), _t = S(pt), kt = S(vt), wt = S(gt), $t = /* @__PURE__ */ B({
608
+ }), X = x(mt), wt = x(vt), $t = x(bt), qt = x(kt), It = /* @__PURE__ */ L({
609
609
  __name: "QList",
610
610
  props: {
611
611
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -618,28 +618,28 @@ const gt = /* @__PURE__ */ B({
618
618
  class: { default: void 0 }
619
619
  },
620
620
  emits: ["update:modelValue"],
621
- setup(t, { expose: n, emit: o }) {
622
- const e = o, l = t, r = q(l.modelValue), s = q(!1), d = k(() => m.value.length > 1 ? "div" : "ul"), m = k(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), h = q(null);
623
- function _(a) {
624
- r.value = a, e("update:modelValue", a);
621
+ setup(t, { expose: n, emit: a }) {
622
+ const e = a, l = t, r = q(l.modelValue), s = q(!1), d = k(() => p.value.length > 1 ? "div" : "ul"), p = k(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), v = q(null);
623
+ function y(o) {
624
+ r.value = o, e("update:modelValue", o);
625
625
  }
626
- function p() {
626
+ function f() {
627
627
  s.value = !0;
628
628
  }
629
- function z() {
629
+ function D() {
630
630
  s.value = !1;
631
631
  }
632
- function T(a) {
633
- var I;
634
- if ((I = h.value) != null && I.contains(a.relatedTarget))
632
+ function T(o) {
633
+ var g;
634
+ if ((g = v.value) != null && g.contains(o.relatedTarget))
635
635
  return;
636
- let f;
637
- r.value ? f = l.items.findIndex((ue) => ue[l.itemValue] === r.value) : f = A();
638
- const g = s.value;
639
- O(f, g);
636
+ let c;
637
+ r.value ? c = l.items.findIndex((te) => te[l.itemValue] === r.value) : c = F();
638
+ const w = s.value;
639
+ U(c, w);
640
640
  }
641
- function D(a) {
642
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && a.preventDefault(), a.key) {
641
+ function E(o) {
642
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key) && o.preventDefault(), o.key) {
643
643
  case "ArrowDown":
644
644
  Q("next");
645
645
  break;
@@ -654,109 +654,109 @@ const gt = /* @__PURE__ */ B({
654
654
  break;
655
655
  }
656
656
  }
657
- function Q(a) {
658
- switch (a) {
657
+ function Q(o) {
658
+ switch (o) {
659
659
  case "next":
660
660
  case "prev":
661
- O(U(a));
661
+ U(P(o));
662
662
  break;
663
663
  case "first":
664
- O(A());
664
+ U(F());
665
665
  break;
666
666
  case "last":
667
- O(H());
667
+ U(O());
668
668
  break;
669
669
  }
670
670
  }
671
- function O(a, f = !1) {
672
- var I;
673
- (I = R()[a]) == null || I.focus({ preventScroll: f });
671
+ function U(o, c = !1) {
672
+ var g;
673
+ (g = A()[o]) == null || g.focus({ preventScroll: c });
674
+ }
675
+ function A() {
676
+ var c;
677
+ const o = (c = v.value) == null ? void 0 : c.querySelectorAll("li");
678
+ return o ? Array.from(o) : [];
674
679
  }
675
- function R() {
676
- var f;
677
- const a = (f = h.value) == null ? void 0 : f.querySelectorAll("li");
678
- return a ? Array.from(a) : [];
680
+ function C(o) {
681
+ return A()[o];
679
682
  }
680
- function C(a) {
681
- return R()[a];
683
+ function Z() {
684
+ return A().indexOf(document.activeElement);
682
685
  }
683
- function X() {
684
- return R().indexOf(document.activeElement);
686
+ function F() {
687
+ const o = A(), c = o.find((w) => K(w));
688
+ return c ? o.indexOf(c) : -1;
685
689
  }
686
- function A() {
687
- const a = R(), f = a.find((g) => Y(g));
688
- return f ? a.indexOf(f) : -1;
689
- }
690
- function H() {
691
- const a = R(), f = [...a].reverse().find((g) => Y(g));
692
- return f ? a.indexOf(f) : -1;
693
- }
694
- function K(a, f, g) {
695
- return f === "prev" && a === 0 || f === "next" && a === g.length - 1;
696
- }
697
- function U(a) {
698
- const f = X();
699
- return G(f, a);
700
- }
701
- function G(a, f) {
702
- const g = R();
703
- if (K(a, f, g))
704
- return a;
705
- let I = a + (f === "next" ? 1 : -1);
706
- for (; !Y(g[I]); ) {
707
- if (K(I, f, g))
708
- return a;
709
- I += f === "next" ? 1 : -1;
690
+ function O() {
691
+ const o = A(), c = [...o].reverse().find((w) => K(w));
692
+ return c ? o.indexOf(c) : -1;
693
+ }
694
+ function M(o, c, w) {
695
+ return c === "prev" && o === 0 || c === "next" && o === w.length - 1;
696
+ }
697
+ function P(o) {
698
+ const c = Z();
699
+ return N(c, o);
700
+ }
701
+ function N(o, c) {
702
+ const w = A();
703
+ if (M(o, c, w))
704
+ return o;
705
+ let g = o + (c === "next" ? 1 : -1);
706
+ for (; !K(w[g]); ) {
707
+ if (M(g, c, w))
708
+ return o;
709
+ g += c === "next" ? 1 : -1;
710
710
  }
711
- return I;
711
+ return g;
712
712
  }
713
- function Y(a) {
714
- return a.tabIndex === -2;
713
+ function K(o) {
714
+ return o.tabIndex === -2;
715
715
  }
716
- function c(a) {
717
- return a ? l.items.filter((f) => f.group === a) : l.items;
716
+ function J(o) {
717
+ return o ? l.items.filter((c) => c.group === o) : l.items;
718
718
  }
719
- return F(
719
+ return R(
720
720
  () => l.modelValue,
721
- (a) => {
722
- r.value = a;
721
+ (o) => {
722
+ r.value = o;
723
723
  }
724
724
  ), n({
725
- focusItem: O,
725
+ focusItem: U,
726
726
  getItem: C,
727
- getAdjacentItemIndex: G,
728
- getFirstFocusableItemIndex: A,
729
- getLastFocusableItemIndex: H
730
- }), (a, f) => (u(), E(Ve(d.value), {
727
+ getAdjacentItemIndex: N,
728
+ getFirstFocusableItemIndex: F,
729
+ getLastFocusableItemIndex: O
730
+ }), (o, c) => (u(), B(Ee(d.value), {
731
731
  ref_key: "listRef",
732
- ref: h,
733
- class: x(["q-list", { "q-list--disabled": l.disabled }, l.class]),
732
+ ref: v,
733
+ class: S(["q-list", { "q-list--disabled": l.disabled }, l.class]),
734
734
  role: "listbox",
735
735
  tabindex: l.disabled ? -1 : 0,
736
736
  onFocus: T,
737
- onMousedown: p,
738
- onMouseup: z,
739
- onKeydown: D
737
+ onMousedown: f,
738
+ onMouseup: D,
739
+ onKeydown: E
740
740
  }, {
741
- default: $(() => [
742
- (u(!0), v(J, null, ce(m.value, (g) => (u(), E(y(Tt), {
743
- key: g.id,
744
- title: m.value.length === 1 ? void 0 : g.title,
745
- disabled: g.disabled
741
+ default: _(() => [
742
+ (u(!0), m(Y, null, pe(p.value, (w) => (u(), B(b(zt), {
743
+ key: w.id,
744
+ title: p.value.length === 1 ? void 0 : w.title,
745
+ disabled: w.disabled
746
746
  }, {
747
- default: $(() => [
748
- (u(!0), v(J, null, ce(c(g.id), (I) => (u(), E(y(Dt), {
749
- key: I[l.itemValue],
750
- value: I[l.itemValue],
751
- label: I[l.itemLabel],
752
- icon: I.icon,
753
- disabled: l.disabled || I.disabled,
754
- highlighted: l.highlighted === I[l.itemValue],
755
- selected: r.value === I[l.itemValue],
756
- onSelect: _
747
+ default: _(() => [
748
+ (u(!0), m(Y, null, pe(J(w.id), (g) => (u(), B(b(Ct), {
749
+ key: g[l.itemValue],
750
+ value: g[l.itemValue],
751
+ label: g[l.itemLabel],
752
+ icon: g.icon,
753
+ disabled: l.disabled || g.disabled,
754
+ highlighted: l.highlighted === g[l.itemValue],
755
+ selected: r.value === g[l.itemValue],
756
+ onSelect: y
757
757
  }, {
758
- default: $(() => [
759
- b(a.$slots, "item", { item: I })
758
+ default: _(() => [
759
+ h(o.$slots, "item", { item: g })
760
760
  ]),
761
761
  _: 2
762
762
  }, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -768,15 +768,15 @@ const gt = /* @__PURE__ */ B({
768
768
  }, 40, ["class", "tabindex"]));
769
769
  }
770
770
  });
771
- let qt = 0;
772
- function ie(t) {
773
- return t || `uid-${++qt}`;
771
+ let Lt = 0;
772
+ function ce(t) {
773
+ return t || `uid-${++Lt}`;
774
774
  }
775
- const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-list-item__check-container" }, Bt = {
775
+ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-list-item__check-container" }, St = {
776
776
  check: {
777
777
  icon: "check"
778
778
  }
779
- }, St = /* @__PURE__ */ B({
779
+ }, Vt = /* @__PURE__ */ L({
780
780
  __name: "QListItem",
781
781
  props: {
782
782
  value: { type: [String, Number, Boolean, Symbol] },
@@ -784,23 +784,23 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
784
784
  icon: { default: void 0 },
785
785
  selected: { type: Boolean },
786
786
  highlighted: { type: Boolean },
787
- icons: { default: () => Bt },
787
+ icons: { default: () => St },
788
788
  disabled: { type: Boolean }
789
789
  },
790
790
  emits: ["select"],
791
791
  setup(t, { emit: n }) {
792
- const o = n, e = t, l = ie();
792
+ const a = n, e = t, l = ce();
793
793
  function r() {
794
- e.disabled || o("select", e.value);
794
+ e.disabled || a("select", e.value);
795
795
  }
796
796
  function s(d) {
797
797
  d.key === "Tab" && r(), (d.key === "Enter" || d.key === " ") && (d.preventDefault(), d.stopPropagation(), r());
798
798
  }
799
- return (d, m) => (u(), v("li", {
800
- id: y(l),
799
+ return (d, p) => (u(), m("li", {
800
+ id: b(l),
801
801
  role: "option",
802
802
  tabindex: e.disabled ? void 0 : -2,
803
- class: x([
803
+ class: S([
804
804
  "q-list-item",
805
805
  {
806
806
  "q-list-item--disabled": e.disabled,
@@ -811,105 +811,105 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
811
811
  "aria-label": e.label,
812
812
  "aria-selected": e.disabled ? void 0 : e.selected,
813
813
  onKeydown: s,
814
- onClick: te(r, ["stop", "prevent"])
814
+ onClick: se(r, ["stop", "prevent"])
815
815
  }, [
816
- b(d.$slots, "default", {}, () => [
817
- e.icon ? (u(), E(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
818
- oe(" " + N(e.label), 1)
816
+ h(d.$slots, "default", {}, () => [
817
+ e.icon ? (u(), B(b(X), ee(le({ key: 0 }, e.icon)), null, 16)) : I("", !0),
818
+ ie(" " + H(e.label), 1)
819
819
  ]),
820
- P("div", Lt, [
821
- e.selected ? (u(), E(y(ee), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
820
+ j("div", Bt, [
821
+ e.selected ? (u(), B(b(X), le({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
822
822
  ])
823
- ], 42, It));
823
+ ], 42, xt));
824
824
  }
825
- }), xt = ["aria-labelledby"], Vt = ["id"], Et = /* @__PURE__ */ B({
825
+ }), Et = ["aria-labelledby"], Dt = ["id"], Tt = /* @__PURE__ */ L({
826
826
  __name: "QListItemGroup",
827
827
  props: {
828
828
  title: { default: "" },
829
829
  disabled: { type: Boolean }
830
830
  },
831
831
  setup(t) {
832
- const n = t, o = ie();
833
- return (e, l) => (u(), v("ul", {
832
+ const n = t, a = ce();
833
+ return (e, l) => (u(), m("ul", {
834
834
  class: "q-list-item-group",
835
835
  role: "group",
836
- "aria-labelledby": n.title ? y(o) : void 0
836
+ "aria-labelledby": n.title ? b(a) : void 0
837
837
  }, [
838
- n.title ? (u(), v("li", {
838
+ n.title ? (u(), m("li", {
839
839
  key: 0,
840
- id: y(o),
840
+ id: b(a),
841
841
  class: "q-list-item-group__title",
842
842
  role: "presentation"
843
- }, N(n.title), 9, Vt)) : L("", !0),
844
- b(e.$slots, "default")
845
- ], 8, xt));
843
+ }, H(n.title), 9, Dt)) : I("", !0),
844
+ h(e.$slots, "default")
845
+ ], 8, Et));
846
846
  }
847
- }), Ce = S($t), Dt = S(St), Tt = S(Et);
848
- function zt(t, n, o = "right", e) {
849
- const l = t.getBoundingClientRect(), r = l.x + window.scrollX, s = l.y + window.scrollY, d = n == null ? void 0 : n.getBoundingClientRect(), m = (d == null ? void 0 : d.width) ?? 0, h = (d == null ? void 0 : d.height) ?? 0;
850
- let _ = o;
851
- d && !Qe(l, d, _) && (_ = Ct(l, d, _));
852
- const p = { x: 0, y: 0, placement: _ };
853
- switch (_) {
847
+ }), Qe = x(It), Ct = x(Vt), zt = x(Tt);
848
+ function Qt(t, n, a = "right", e) {
849
+ const l = t.getBoundingClientRect(), r = l.x + window.scrollX, s = l.y + window.scrollY, d = n == null ? void 0 : n.getBoundingClientRect(), p = (d == null ? void 0 : d.width) ?? 0, v = (d == null ? void 0 : d.height) ?? 0;
850
+ let y = a;
851
+ d && !Ae(l, d, y) && (y = At(l, d, y));
852
+ const f = { x: 0, y: 0, placement: y };
853
+ switch (y) {
854
854
  case "top":
855
- e === "anchor" ? p.x = r : p.x = r + (l.width - m) / 2, p.y = s - h;
855
+ e === "anchor" ? f.x = r : f.x = r + (l.width - p) / 2, f.y = s - v;
856
856
  break;
857
857
  case "bottom":
858
- e === "anchor" ? p.x = r : p.x = r + (l.width - m) / 2, p.y = s + l.height;
858
+ e === "anchor" ? f.x = r : f.x = r + (l.width - p) / 2, f.y = s + l.height;
859
859
  break;
860
860
  case "left":
861
- p.x = r - m, p.y = s + l.height / 2 - h / 2;
861
+ f.x = r - p, f.y = s + l.height / 2 - v / 2;
862
862
  break;
863
863
  case "right":
864
- p.x = r + l.width, p.y = s + l.height / 2 - h / 2;
864
+ f.x = r + l.width, f.y = s + l.height / 2 - v / 2;
865
865
  break;
866
866
  }
867
- return e === "anchor" && l.width >= m && (p.width = l.width), p;
867
+ return e === "anchor" && l.width >= p && (f.width = l.width), f;
868
868
  }
869
- function Qe(t, n, o) {
869
+ function Ae(t, n, a) {
870
870
  let e = !1, l = !1;
871
- switch (o) {
871
+ switch (a) {
872
872
  case "top":
873
- e = Le(t, n), l = t.top > n.height;
873
+ e = xe(t, n), l = t.top > n.height;
874
874
  break;
875
875
  case "bottom":
876
- e = Le(t, n), l = window.innerHeight - t.top - t.height > n.height;
876
+ e = xe(t, n), l = window.innerHeight - t.top - t.height > n.height;
877
877
  break;
878
878
  case "left":
879
- e = t.left > n.width, l = Ie(t, n);
879
+ e = t.left > n.width, l = Le(t, n);
880
880
  break;
881
881
  case "right":
882
- e = window.innerWidth - t.left - t.width > n.width, l = Ie(t, n);
882
+ e = window.innerWidth - t.left - t.width > n.width, l = Le(t, n);
883
883
  break;
884
884
  }
885
885
  return e && l;
886
886
  }
887
- function Ie(t, n) {
887
+ function Le(t, n) {
888
888
  return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
889
889
  }
890
- function Le(t, n) {
890
+ function xe(t, n) {
891
891
  return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
892
892
  }
893
- function Ct(t, n, o) {
893
+ function At(t, n, a) {
894
894
  const e = {
895
895
  top: ["bottom", "left", "right"],
896
896
  bottom: ["top", "left", "right"],
897
897
  left: ["right", "top", "bottom"],
898
898
  right: ["left", "top", "bottom"]
899
899
  };
900
- for (const l of e[o])
901
- if (Qe(t, n, l))
900
+ for (const l of e[a])
901
+ if (Ae(t, n, l))
902
902
  return l;
903
- return o;
903
+ return a;
904
904
  }
905
905
  function ne(t) {
906
906
  return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
907
907
  }
908
- const Qt = ["role"], At = {
908
+ const Ft = ["role"], Rt = {
909
909
  key: 0,
910
910
  role: "presentation",
911
911
  class: "q-overlay__arrow"
912
- }, Ft = /* @__PURE__ */ B({
912
+ }, Ot = /* @__PURE__ */ L({
913
913
  inheritAttrs: !1,
914
914
  __name: "QOverlay",
915
915
  props: {
@@ -930,14 +930,14 @@ const Qt = ["role"], At = {
930
930
  },
931
931
  emits: ["enter", "leave"],
932
932
  setup(t, { emit: n }) {
933
- const o = n, e = t, l = k(() => [
933
+ const a = n, e = t, l = k(() => [
934
934
  "q-overlay",
935
935
  `q-overlay--${s.placement}`,
936
936
  { "q-overlay--inverted": e.appearance === "inverted" },
937
937
  e.class
938
938
  ]), r = k(
939
939
  () => (s.visible || s.animating) && e.trigger === "click"
940
- ), s = Fe({
940
+ ), s = Ue({
941
941
  visible: e.modelValue,
942
942
  animating: !1,
943
943
  top: 0,
@@ -945,206 +945,206 @@ const Qt = ["role"], At = {
945
945
  width: 0,
946
946
  placement: e.placement
947
947
  });
948
- F(
948
+ R(
949
949
  () => e.modelValue,
950
950
  () => s.visible = e.modelValue
951
- ), F(
951
+ ), R(
952
952
  () => s.visible,
953
953
  () => s.animating = !0
954
954
  );
955
955
  const d = k(() => {
956
- let a = 0, f = 0;
956
+ let o = 0, c = 0;
957
957
  switch (s.placement) {
958
958
  case "top":
959
- f = -(e.offset || 0);
959
+ c = -(e.offset || 0);
960
960
  break;
961
961
  case "bottom":
962
- f = e.offset || 0;
962
+ c = e.offset || 0;
963
963
  break;
964
964
  case "left":
965
- a = -(e.offset || 0);
965
+ o = -(e.offset || 0);
966
966
  break;
967
967
  case "right":
968
- a = e.offset || 0;
968
+ o = e.offset || 0;
969
969
  break;
970
970
  }
971
- const g = {
972
- top: `${s.top + f}px`,
973
- left: `${s.left + a}px`
971
+ const w = {
972
+ top: `${s.top + c}px`,
973
+ left: `${s.left + o}px`
974
974
  };
975
- return s.width !== void 0 && ["top", "bottom"].includes(s.placement) && (g.width = `${s.width}px`), g;
976
- }), m = q(null);
977
- function h() {
975
+ return s.width !== void 0 && ["top", "bottom"].includes(s.placement) && (w.width = `${s.width}px`), w;
976
+ }), p = q(null);
977
+ function v() {
978
978
  if (e.anchor) {
979
- const a = ne(e.anchor);
980
- if (a) {
981
- const f = zt(
982
- a,
983
- m.value,
979
+ const o = ne(e.anchor);
980
+ if (o) {
981
+ const c = Qt(
982
+ o,
983
+ p.value,
984
984
  e.placement,
985
985
  e.width
986
986
  );
987
- s.left = f.x, s.top = f.y, s.width = f.width, s.placement = f.placement;
987
+ s.left = c.x, s.top = c.y, s.width = c.width, s.placement = c.placement;
988
988
  }
989
989
  }
990
990
  }
991
- F([() => s.visible, () => e.placement], h);
992
- let _;
993
- function p() {
991
+ R([() => s.visible, () => e.placement], v);
992
+ let y;
993
+ function f() {
994
994
  T(0);
995
995
  }
996
- function z() {
996
+ function D() {
997
997
  T(e.delay);
998
998
  }
999
- function T(a) {
1000
- _ || (_ = window.setTimeout(() => {
1001
- s.visible = !0, j(() => {
1002
- var f;
1003
- e.trigger === "click" && ((f = m.value) == null || f.focus());
999
+ function T(o) {
1000
+ y || (y = window.setTimeout(() => {
1001
+ s.visible = !0, W(() => {
1002
+ var c;
1003
+ e.trigger === "click" && ((c = p.value) == null || c.focus());
1004
1004
  });
1005
- }, a));
1005
+ }, o));
1006
1006
  }
1007
- function D() {
1008
- clearTimeout(_), _ = void 0, s.visible = !1, j(() => {
1007
+ function E() {
1008
+ clearTimeout(y), y = void 0, s.visible = !1, W(() => {
1009
1009
  if (e.anchor && e.trigger === "click") {
1010
- const a = ne(e.anchor);
1011
- a == null || a.focus();
1010
+ const o = ne(e.anchor);
1011
+ o == null || o.focus();
1012
1012
  }
1013
1013
  });
1014
1014
  }
1015
1015
  let Q;
1016
- function O() {
1017
- o("enter");
1016
+ function U() {
1017
+ a("enter");
1018
1018
  }
1019
- function R() {
1020
- window.clearTimeout(Q), Q = window.setTimeout(() => s.animating = !1, 200), o("leave");
1019
+ function A() {
1020
+ window.clearTimeout(Q), Q = window.setTimeout(() => s.animating = !1, 200), a("leave");
1021
1021
  }
1022
1022
  let C;
1023
- function X() {
1024
- j(() => {
1023
+ function Z() {
1024
+ W(() => {
1025
1025
  if (!e.anchor)
1026
1026
  return;
1027
- const a = ne(e.anchor);
1028
- if (a)
1027
+ const o = ne(e.anchor);
1028
+ if (o)
1029
1029
  switch (e.trigger) {
1030
1030
  case "click":
1031
- a.addEventListener("click", p);
1031
+ o.addEventListener("click", f);
1032
1032
  break;
1033
1033
  case "hover":
1034
- a.addEventListener("mouseenter", z), a.addEventListener("mouseleave", D), a.addEventListener("focusin", p), a.addEventListener("focusout", D);
1034
+ o.addEventListener("mouseenter", D), o.addEventListener("mouseleave", E), o.addEventListener("focusin", f), o.addEventListener("focusout", E);
1035
1035
  break;
1036
1036
  }
1037
1037
  });
1038
1038
  }
1039
- function A() {
1040
- j(() => {
1039
+ function F() {
1040
+ W(() => {
1041
1041
  if (!e.anchor)
1042
1042
  return;
1043
- const a = ne(e.anchor);
1044
- a && (window.addEventListener("scroll", h), window.addEventListener("resize", h), C = new MutationObserver(h), C.observe(a, {
1043
+ const o = ne(e.anchor);
1044
+ o && (window.addEventListener("scroll", v), window.addEventListener("resize", v), C = new MutationObserver(v), C.observe(o, {
1045
1045
  attributes: !1,
1046
1046
  childList: !0,
1047
1047
  characterData: !0,
1048
1048
  subtree: !0
1049
- }), h());
1049
+ }), v());
1050
1050
  });
1051
1051
  }
1052
- function H() {
1052
+ function O() {
1053
1053
  if (!e.anchor)
1054
1054
  return;
1055
- const a = ne(e.anchor);
1056
- if (a)
1055
+ const o = ne(e.anchor);
1056
+ if (o)
1057
1057
  switch (e.trigger) {
1058
1058
  case "click":
1059
- a.removeEventListener("click", p);
1059
+ o.removeEventListener("click", f);
1060
1060
  break;
1061
1061
  case "hover":
1062
- a.removeEventListener("mouseenter", z), a.removeEventListener("mouseleave", D), a.removeEventListener("focusin", p), a.removeEventListener("focusout", D);
1062
+ o.removeEventListener("mouseenter", D), o.removeEventListener("mouseleave", E), o.removeEventListener("focusin", f), o.removeEventListener("focusout", E);
1063
1063
  break;
1064
1064
  }
1065
1065
  }
1066
- function K() {
1067
- window.removeEventListener("scroll", h), window.removeEventListener("resize", h), C == null || C.disconnect();
1066
+ function M() {
1067
+ window.removeEventListener("scroll", v), window.removeEventListener("resize", v), C == null || C.disconnect();
1068
1068
  }
1069
- let U;
1070
- function G() {
1069
+ let P;
1070
+ function N() {
1071
1071
  if (!e.anchor)
1072
1072
  return;
1073
- ne(e.anchor) ? (h(), U = window.setTimeout(G, 100)) : D();
1073
+ ne(e.anchor) ? (v(), P = window.setTimeout(N, 100)) : E();
1074
1074
  }
1075
- function Y() {
1076
- A(), e.spy && G();
1075
+ function K() {
1076
+ F(), e.spy && N();
1077
1077
  }
1078
- function c() {
1079
- K(), e.spy && (clearTimeout(U), U = void 0);
1078
+ function J() {
1079
+ M(), e.spy && (clearTimeout(P), P = void 0);
1080
1080
  }
1081
- return Re(() => {
1082
- H(), c();
1083
- }), Ee(() => {
1084
- j(() => {
1085
- X(), h();
1081
+ return Me(() => {
1082
+ O(), J();
1083
+ }), De(() => {
1084
+ W(() => {
1085
+ Z(), v();
1086
1086
  });
1087
- }), F(
1087
+ }), R(
1088
1088
  () => s.visible,
1089
- (a) => {
1090
- a ? Y() : c();
1089
+ (o) => {
1090
+ o ? K() : J();
1091
1091
  },
1092
1092
  { immediate: !0 }
1093
- ), (a, f) => (u(), E(Oe, {
1093
+ ), (o, c) => (u(), B(Ne, {
1094
1094
  disabled: !s.visible && !s.animating || !e.attach,
1095
1095
  to: e.attach
1096
1096
  }, [
1097
- r.value ? (u(), v("div", {
1097
+ r.value ? (u(), m("div", {
1098
1098
  key: 0,
1099
- class: x([
1099
+ class: S([
1100
1100
  "q-overlay__underlay",
1101
1101
  { "q-overlay__underlay--blur": e.backdropBlur }
1102
1102
  ])
1103
- }, null, 2)) : L("", !0),
1104
- M(Ue, {
1103
+ }, null, 2)) : I("", !0),
1104
+ z(He, {
1105
1105
  name: e.transition,
1106
1106
  appear: "",
1107
- onEnter: O,
1108
- onLeave: R
1107
+ onEnter: U,
1108
+ onLeave: A
1109
1109
  }, {
1110
- default: $(() => [
1111
- s.visible ? (u(), v("div", {
1110
+ default: _(() => [
1111
+ s.visible ? (u(), m("div", {
1112
1112
  key: 0,
1113
- class: x(l.value),
1114
- style: se(d.value)
1113
+ class: S(l.value),
1114
+ style: ue(d.value)
1115
1115
  }, [
1116
- P("div", Z({
1116
+ j("div", le({
1117
1117
  class: "q-overlay__content",
1118
1118
  ref_key: "overlayRef",
1119
- ref: m,
1119
+ ref: p,
1120
1120
  tabindex: "-1",
1121
1121
  role: r.value ? "dialog" : void 0
1122
- }, a.$attrs, {
1123
- onKeydown: Me(D, ["escape"]),
1124
- onBlur: D
1122
+ }, o.$attrs, {
1123
+ onKeydown: Ke(E, ["escape"]),
1124
+ onBlur: E
1125
1125
  }), [
1126
- e.arrow ? (u(), v("div", At)) : L("", !0),
1127
- b(a.$slots, "default")
1128
- ], 16, Qt)
1129
- ], 6)) : L("", !0)
1126
+ e.arrow ? (u(), m("div", Rt)) : I("", !0),
1127
+ h(o.$slots, "default")
1128
+ ], 16, Ft)
1129
+ ], 6)) : I("", !0)
1130
1130
  ]),
1131
1131
  _: 3
1132
1132
  }, 8, ["name"])
1133
1133
  ], 8, ["disabled", "to"]));
1134
1134
  }
1135
- }), de = S(Ft), Rt = ["id"], Ot = {
1135
+ }), fe = x(Ot), Ut = ["id"], Mt = {
1136
1136
  key: 0,
1137
1137
  class: "q-field__label"
1138
- }, Ut = ["for"], Mt = {
1138
+ }, Nt = ["for"], Ht = {
1139
1139
  key: 0,
1140
1140
  class: "q-field__prepend"
1141
- }, Nt = {
1141
+ }, Kt = {
1142
1142
  key: 1,
1143
1143
  class: "q-field__append"
1144
- }, Ht = {
1144
+ }, Gt = {
1145
1145
  key: 1,
1146
1146
  class: "q-field__extras"
1147
- }, Kt = /* @__PURE__ */ B({
1147
+ }, Wt = /* @__PURE__ */ L({
1148
1148
  inheritAttrs: !1,
1149
1149
  __name: "QField",
1150
1150
  props: {
@@ -1158,50 +1158,50 @@ const Qt = ["role"], At = {
1158
1158
  class: { default: void 0 }
1159
1159
  },
1160
1160
  setup(t, { expose: n }) {
1161
- const o = t, e = ie(o.id), l = q(null), r = k(() => o.required && !o.readonly && !o.disabled);
1161
+ const a = t, e = ce(a.id), l = q(null), r = k(() => a.required && !a.readonly && !a.disabled);
1162
1162
  return n({
1163
1163
  fieldRef: l
1164
- }), (s, d) => (u(), v("div", {
1165
- id: y(e),
1166
- class: x([
1164
+ }), (s, d) => (u(), m("div", {
1165
+ id: b(e),
1166
+ class: S([
1167
1167
  "q-field",
1168
- `q-field--${o.size}`,
1168
+ `q-field--${a.size}`,
1169
1169
  {
1170
- "q-field--readonly": o.readonly,
1171
- "q-field--disabled": o.disabled,
1170
+ "q-field--readonly": a.readonly,
1171
+ "q-field--disabled": a.disabled,
1172
1172
  "q-field--required": r.value
1173
1173
  },
1174
- o.class
1174
+ a.class
1175
1175
  ])
1176
1176
  }, [
1177
- o.label ? (u(), v("div", Ot, [
1178
- b(s.$slots, "label.prepend"),
1179
- P("label", {
1180
- for: o.for
1181
- }, N(o.label), 9, Ut),
1182
- b(s.$slots, "label.append")
1183
- ])) : L("", !0),
1184
- b(s.$slots, "control", {}, () => [
1185
- P("div", Z({
1177
+ a.label ? (u(), m("div", Mt, [
1178
+ h(s.$slots, "label.prepend"),
1179
+ j("label", {
1180
+ for: a.for
1181
+ }, H(a.label), 9, Nt),
1182
+ h(s.$slots, "label.append")
1183
+ ])) : I("", !0),
1184
+ h(s.$slots, "control", {}, () => [
1185
+ j("div", le({
1186
1186
  class: "q-field__control",
1187
1187
  ref_key: "fieldRef",
1188
1188
  ref: l
1189
1189
  }, s.$attrs), [
1190
- s.$slots.prepend ? (u(), v("div", Mt, [
1191
- b(s.$slots, "prepend")
1192
- ])) : L("", !0),
1193
- b(s.$slots, "default"),
1194
- s.$slots.append ? (u(), v("div", Nt, [
1195
- b(s.$slots, "append")
1196
- ])) : L("", !0)
1190
+ s.$slots.prepend ? (u(), m("div", Ht, [
1191
+ h(s.$slots, "prepend")
1192
+ ])) : I("", !0),
1193
+ h(s.$slots, "default"),
1194
+ s.$slots.append ? (u(), m("div", Kt, [
1195
+ h(s.$slots, "append")
1196
+ ])) : I("", !0)
1197
1197
  ], 16)
1198
1198
  ]),
1199
- s.$slots.extras ? (u(), v("div", Ht, [
1200
- b(s.$slots, "extras")
1201
- ])) : L("", !0)
1202
- ], 10, Rt));
1199
+ s.$slots.extras ? (u(), m("div", Gt, [
1200
+ h(s.$slots, "extras")
1201
+ ])) : I("", !0)
1202
+ ], 10, Ut));
1203
1203
  }
1204
- }), be = S(Kt), Gt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Wt = /* @__PURE__ */ B({
1204
+ }), ge = x(Wt), jt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Pt = /* @__PURE__ */ L({
1205
1205
  inheritAttrs: !1,
1206
1206
  __name: "QTextField",
1207
1207
  props: {
@@ -1219,99 +1219,102 @@ const Qt = ["role"], At = {
1219
1219
  class: { default: void 0 }
1220
1220
  },
1221
1221
  emits: ["update:modelValue"],
1222
- setup(t, { expose: n, emit: o }) {
1223
- const e = o, l = t, r = ie(l.id), s = q(l.modelValue), d = q(null), m = q(null), h = k({
1222
+ setup(t, { expose: n, emit: a }) {
1223
+ const e = a, l = t, r = ce(l.id), s = q(l.modelValue), d = q(null), p = q(null), v = k({
1224
1224
  get() {
1225
1225
  return s.value;
1226
1226
  },
1227
- set(p) {
1228
- s.value = p, e("update:modelValue", p);
1227
+ set(f) {
1228
+ s.value = f, e("update:modelValue", f);
1229
1229
  }
1230
- }), _ = k(
1230
+ }), y = k(
1231
1231
  () => l.readonly || l.disabled ? "" : l.placeholder
1232
1232
  );
1233
- return F(
1233
+ return R(
1234
1234
  () => l.modelValue,
1235
- (p) => s.value = p
1235
+ (f) => s.value = f
1236
1236
  ), n({
1237
1237
  fieldRef: k(() => {
1238
- var p;
1239
- return (p = d.value) == null ? void 0 : p.fieldRef;
1238
+ var f;
1239
+ return (f = d.value) == null ? void 0 : f.fieldRef;
1240
1240
  }),
1241
- inputRef: m
1242
- }), (p, z) => (u(), E(y(be), {
1241
+ inputRef: p
1242
+ }), (f, D) => (u(), B(b(ge), {
1243
1243
  ref_key: "fieldRef",
1244
1244
  ref: d,
1245
- class: x(["q-text-field", l.class]),
1246
- for: y(r),
1245
+ class: S(["q-text-field", l.class]),
1246
+ for: b(r),
1247
1247
  label: l.label,
1248
1248
  size: l.size,
1249
1249
  readonly: l.readonly,
1250
1250
  disabled: l.disabled,
1251
1251
  required: l.required
1252
- }, pe({
1253
- "label.prepend": $(() => [
1254
- b(p.$slots, "label.prepend")
1252
+ }, ve({
1253
+ "label.prepend": _(() => [
1254
+ h(f.$slots, "label.prepend")
1255
1255
  ]),
1256
- "label.append": $(() => [
1257
- b(p.$slots, "label.append")
1256
+ "label.append": _(() => [
1257
+ h(f.$slots, "label.append")
1258
1258
  ]),
1259
- default: $(() => [
1260
- Ne(P("input", Z({
1261
- "onUpdate:modelValue": z[0] || (z[0] = (T) => h.value = T),
1259
+ default: _(() => [
1260
+ Ge(j("input", le({
1261
+ "onUpdate:modelValue": D[0] || (D[0] = (T) => v.value = T),
1262
1262
  ref_key: "inputRef",
1263
- ref: m,
1264
- id: y(r),
1263
+ ref: p,
1264
+ id: b(r),
1265
1265
  class: "q-text-field__input",
1266
1266
  type: l.type,
1267
1267
  role: l.role,
1268
1268
  required: l.required,
1269
- placeholder: _.value,
1269
+ placeholder: y.value,
1270
1270
  readonly: l.readonly,
1271
1271
  disabled: l.disabled,
1272
1272
  maxlength: l.maxLength
1273
- }, p.$attrs), null, 16, Gt), [
1274
- [He, h.value]
1273
+ }, f.$attrs), null, 16, jt), [
1274
+ [We, v.value]
1275
1275
  ])
1276
1276
  ]),
1277
1277
  _: 2
1278
1278
  }, [
1279
- p.$slots.prepend ? {
1279
+ f.$slots.prepend ? {
1280
1280
  name: "prepend",
1281
- fn: $(() => [
1282
- b(p.$slots, "prepend")
1281
+ fn: _(() => [
1282
+ h(f.$slots, "prepend")
1283
1283
  ]),
1284
1284
  key: "0"
1285
1285
  } : void 0,
1286
- p.$slots.append ? {
1286
+ f.$slots.append ? {
1287
1287
  name: "append",
1288
- fn: $(() => [
1289
- b(p.$slots, "append")
1288
+ fn: _(() => [
1289
+ h(f.$slots, "append")
1290
1290
  ]),
1291
1291
  key: "1"
1292
1292
  } : void 0,
1293
- p.$slots.extras ? {
1293
+ f.$slots.extras ? {
1294
1294
  name: "extras",
1295
- fn: $(() => [
1296
- b(p.$slots, "extras")
1295
+ fn: _(() => [
1296
+ h(f.$slots, "extras")
1297
1297
  ]),
1298
1298
  key: "2"
1299
1299
  } : void 0
1300
1300
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1301
1301
  }
1302
- }), jt = S(Wt), Pt = {
1302
+ }), Xt = x(Pt), Yt = {
1303
1303
  key: 0,
1304
1304
  class: "q-select__loader"
1305
- }, Xt = {
1305
+ }, Zt = {
1306
1306
  key: 2,
1307
1307
  class: "q-select__loader"
1308
- }, Yt = {
1308
+ }, Jt = {
1309
1309
  noData: "No data available"
1310
- }, Zt = {
1310
+ }, en = {
1311
+ chevron: {
1312
+ icon: "chevron-down"
1313
+ },
1311
1314
  clear: {
1312
1315
  icon: "close"
1313
1316
  }
1314
- }, Jt = /* @__PURE__ */ B({
1317
+ }, tn = /* @__PURE__ */ L({
1315
1318
  __name: "QCombobox",
1316
1319
  props: {
1317
1320
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1330,238 +1333,270 @@ const Qt = ["role"], At = {
1330
1333
  itemValue: { default: "key" },
1331
1334
  itemLabel: { default: "label" },
1332
1335
  size: { default: void 0 },
1333
- texts: { default: () => Yt },
1334
- icons: { default: () => Zt },
1336
+ texts: { default: () => Jt },
1337
+ icons: { default: () => en },
1335
1338
  class: { default: void 0 }
1336
1339
  },
1337
1340
  emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
1338
- setup(t, { expose: n, emit: o }) {
1339
- const e = o, l = t, r = q(l.modelValue), s = q(!1), d = q(""), m = q(void 0), h = q(null), _ = q(null), p = q(null);
1340
- Ee(A);
1341
- const z = k(
1341
+ setup(t, { expose: n, emit: a }) {
1342
+ const e = a, l = t, r = q(l.modelValue), s = q(!1), d = q(""), p = q(void 0), v = q(null), y = q(null), f = q(null);
1343
+ De(F);
1344
+ const D = k(
1342
1345
  () => l.clearable && !l.readonly && !l.disabled && !l.loading
1343
1346
  ), T = k(() => {
1344
1347
  var i;
1345
- return l.filterMode === "manual" || !R.value ? l.items : (i = l.items) == null ? void 0 : i.filter(
1346
- (w) => w[l.itemLabel].toLowerCase().startsWith(d.value.toLowerCase())
1348
+ return l.filterMode === "manual" || !A.value ? l.items : (i = l.items) == null ? void 0 : i.filter(
1349
+ ($) => $[l.itemLabel].toLowerCase().startsWith(d.value.toLowerCase())
1347
1350
  );
1348
- }), D = k(() => {
1351
+ }), E = k(() => {
1349
1352
  var i;
1350
- return (i = l.items) == null ? void 0 : i.find((w) => w[l.itemValue] === r.value);
1353
+ return (i = l.items) == null ? void 0 : i.find(($) => $[l.itemValue] === r.value);
1351
1354
  }), Q = k(() => {
1352
- const i = m.value;
1355
+ const i = p.value;
1353
1356
  if (i !== void 0 && T.value[i])
1354
1357
  return T.value[i];
1355
- }), O = k(() => {
1356
- var w;
1357
- if (m.value === void 0)
1358
+ }), U = k(() => {
1359
+ var $;
1360
+ if (p.value === void 0)
1358
1361
  return;
1359
- const i = (w = _.value) == null ? void 0 : w.getItem(m.value);
1362
+ const i = ($ = y.value) == null ? void 0 : $.getItem(p.value);
1360
1363
  return i == null ? void 0 : i.id;
1361
- }), R = k(() => {
1364
+ }), A = k(() => {
1362
1365
  var i;
1363
- return d.value.length > 0 && d.value !== ((i = D.value) == null ? void 0 : i[l.itemLabel]);
1366
+ return d.value.length > 0 && d.value !== ((i = E.value) == null ? void 0 : i[l.itemLabel]);
1364
1367
  });
1365
1368
  function C(i) {
1366
- r.value = i, A(), e("update:modelValue", i);
1369
+ r.value = i, F(), e("update:modelValue", i);
1367
1370
  }
1368
- function X(i) {
1369
- C(i), K();
1371
+ function Z(i) {
1372
+ C(i), M();
1370
1373
  }
1371
- function A() {
1374
+ function F() {
1372
1375
  var i;
1373
- d.value = ((i = D.value) == null ? void 0 : i[l.itemLabel]) || "";
1376
+ d.value = ((i = E.value) == null ? void 0 : i[l.itemLabel]) || "";
1374
1377
  }
1375
- function H() {
1376
- s.value || l.readonly || l.disabled || (e("before-show"), s.value = !0);
1378
+ function O() {
1379
+ s.value || l.readonly || l.disabled || (e("before-show"), s.value = !0, te());
1377
1380
  }
1378
- function K() {
1379
- s.value && (e("before-hide"), s.value = !1, m.value = void 0);
1381
+ function M() {
1382
+ s.value && (e("before-hide"), s.value = !1, p.value = void 0);
1380
1383
  }
1381
- function U() {
1382
- C(void 0), m.value = void 0;
1384
+ function P() {
1385
+ s.value ? M() : O();
1386
+ }
1387
+ function N() {
1388
+ D.value && (C(void 0), p.value = void 0);
1383
1389
  }
1384
- function G() {
1385
- if (H(), D.value !== void 0) {
1386
- const i = T.value.indexOf(D.value);
1387
- i !== -1 && j(() => ye(i));
1390
+ function K() {
1391
+ if (O(), E.value !== void 0) {
1392
+ const i = T.value.indexOf(E.value);
1393
+ i !== -1 && W(() => _e(i));
1388
1394
  }
1389
1395
  }
1390
- function Y(i) {
1391
- var w, V;
1396
+ function J(i) {
1397
+ var $, V;
1392
1398
  if (!(!i.key || l.readonly || l.disabled))
1393
1399
  if (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && (i.preventDefault(), i.stopPropagation()), i.key === "Escape")
1394
- s.value ? K() : U();
1400
+ s.value ? M() : D.value && N();
1395
1401
  else if (["ArrowDown", "ArrowUp"].includes(i.key))
1396
- s.value ? j(() => {
1397
- if (m.value === void 0)
1398
- c();
1402
+ s.value ? W(() => {
1403
+ if (p.value === void 0)
1404
+ o();
1399
1405
  else {
1400
- const W = i.key === "ArrowDown" ? "next" : "prev";
1401
- f(m.value, W);
1406
+ const G = i.key === "ArrowDown" ? "next" : "prev";
1407
+ w(p.value, G);
1402
1408
  }
1403
- }) : (H(), j(() => {
1404
- i.key === "ArrowDown" ? c() : a();
1409
+ }) : (O(), W(() => {
1410
+ i.key === "ArrowDown" ? o() : c();
1405
1411
  }));
1406
1412
  else if (i.key === "Enter") {
1407
1413
  if (Q.value === void 0)
1408
1414
  return;
1409
- X(Q.value[l.itemValue]);
1415
+ Z(Q.value[l.itemValue]);
1410
1416
  } else
1411
- i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (V = _.value) == null ? void 0 : V.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && H();
1417
+ i.key === "Home" ? p.value = ($ = y.value) == null ? void 0 : $.getFirstFocusableItemIndex() : i.key === "End" ? p.value = (V = y.value) == null ? void 0 : V.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && O();
1412
1418
  }
1413
- function c() {
1414
- var i, w;
1419
+ function o() {
1420
+ var i, $;
1415
1421
  if (r.value !== void 0) {
1416
1422
  const V = T.value.findIndex(
1417
- (W) => W[l.itemValue] === r.value
1423
+ (G) => G[l.itemValue] === r.value
1418
1424
  );
1419
- V === -1 ? m.value = (i = _.value) == null ? void 0 : i.getFirstFocusableItemIndex() : m.value = V;
1425
+ V === -1 ? p.value = (i = y.value) == null ? void 0 : i.getFirstFocusableItemIndex() : p.value = V;
1420
1426
  } else
1421
- m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1427
+ p.value = ($ = y.value) == null ? void 0 : $.getFirstFocusableItemIndex();
1422
1428
  }
1423
- function a() {
1429
+ function c() {
1424
1430
  var i;
1425
- m.value = (i = _.value) == null ? void 0 : i.getLastFocusableItemIndex();
1431
+ p.value = (i = y.value) == null ? void 0 : i.getLastFocusableItemIndex();
1426
1432
  }
1427
- function f(i, w) {
1433
+ function w(i, $) {
1428
1434
  var V;
1429
- m.value = (V = _.value) == null ? void 0 : V.getAdjacentItemIndex(i, w);
1435
+ p.value = (V = y.value) == null ? void 0 : V.getAdjacentItemIndex(i, $);
1430
1436
  }
1431
1437
  function g(i) {
1432
- var w, V, W;
1433
- !((w = p.value) != null && w.contains(i.relatedTarget)) && !((W = (V = h.value) == null ? void 0 : V.fieldRef) != null && W.contains(i.relatedTarget)) ? (K(), A()) : (i.preventDefault(), i.stopPropagation());
1438
+ var $, V, G;
1439
+ !(($ = f.value) != null && $.contains(i.relatedTarget)) && !((G = (V = v.value) == null ? void 0 : V.fieldRef) != null && G.contains(i.relatedTarget)) ? (M(), F()) : (i.preventDefault(), i.stopPropagation());
1434
1440
  }
1435
- function I() {
1436
- var i, w;
1437
- (w = (i = h.value) == null ? void 0 : i.inputRef) == null || w.focus();
1441
+ function te() {
1442
+ var i, $;
1443
+ ($ = (i = v.value) == null ? void 0 : i.inputRef) == null || $.focus();
1438
1444
  }
1439
- function ue() {
1445
+ function Fe() {
1446
+ te();
1447
+ }
1448
+ function Re() {
1440
1449
  e("show");
1441
1450
  }
1442
- function Ae() {
1451
+ function Oe() {
1443
1452
  e("hide");
1444
1453
  }
1445
- function ye(i) {
1454
+ function _e(i) {
1446
1455
  var V;
1447
- const w = (V = _.value) == null ? void 0 : V.getItem(i);
1448
- w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
1456
+ const $ = (V = y.value) == null ? void 0 : V.getItem(i);
1457
+ $ == null || $.scrollIntoView({ block: "nearest", inline: "start" });
1449
1458
  }
1450
- return F(
1459
+ return R(
1451
1460
  () => l.modelValue,
1452
1461
  (i) => {
1453
- r.value = i, A();
1462
+ r.value = i, F();
1454
1463
  }
1455
- ), F(m, (i) => {
1456
- i !== void 0 && ye(i);
1457
- }), F(d, (i) => {
1458
- !i && z.value ? U() : s.value && l.selectionMode === "automatic" && j(c), e("update:inputValue", i);
1464
+ ), R(p, (i) => {
1465
+ i !== void 0 && _e(i);
1466
+ }), R(d, (i) => {
1467
+ !i && D.value ? N() : s.value && l.selectionMode === "automatic" && W(o), e("update:inputValue", i);
1459
1468
  }), n({
1460
- triggerEl: h
1461
- }), (i, w) => (u(), v(J, null, [
1462
- M(y(jt), {
1469
+ triggerEl: v
1470
+ }), (i, $) => (u(), m(Y, null, [
1471
+ z(b(Xt), {
1463
1472
  modelValue: d.value,
1464
- "onUpdate:modelValue": w[0] || (w[0] = (V) => d.value = V),
1473
+ "onUpdate:modelValue": $[0] || ($[0] = (V) => d.value = V),
1465
1474
  id: l.id,
1466
1475
  label: l.label,
1467
1476
  required: l.required,
1468
1477
  ref_key: "triggerEl",
1469
- ref: h,
1478
+ ref: v,
1470
1479
  role: "combobox",
1471
1480
  placeholder: l.placeholder,
1472
- class: x(["q-combobox", l.class]),
1481
+ class: S([
1482
+ "q-combobox",
1483
+ {
1484
+ "q-combobox--readonly": l.readonly,
1485
+ "q-combobox--disabled": l.disabled,
1486
+ "q-combobox--expanded": s.value
1487
+ },
1488
+ l.class
1489
+ ]),
1473
1490
  readonly: l.readonly,
1474
1491
  disabled: l.disabled,
1475
1492
  autocomplete: "off",
1476
1493
  "aria-expanded": s.value,
1477
1494
  "aria-haspopup": "listbox",
1478
1495
  "aria-autocomplete": "list",
1479
- "aria-activedescendant": O.value,
1496
+ "aria-activedescendant": U.value,
1480
1497
  size: l.size,
1481
- onClick: G,
1498
+ onClick: K,
1482
1499
  onFocusout: g,
1483
- onKeydown: te(Y, ["stop"])
1484
- }, pe({
1485
- "label.prepend": $(() => [
1486
- b(i.$slots, "label.prepend")
1500
+ onKeydown: se(J, ["stop"])
1501
+ }, ve({
1502
+ "label.prepend": _(() => [
1503
+ h(i.$slots, "label.prepend")
1487
1504
  ]),
1488
- "label.append": $(() => [
1489
- b(i.$slots, "label.append")
1505
+ "label.append": _(() => [
1506
+ h(i.$slots, "label.append")
1507
+ ]),
1508
+ append: _(() => [
1509
+ h(i.$slots, "append"),
1510
+ D.value && d.value ? (u(), B(b(de), {
1511
+ key: 0,
1512
+ class: "q-combobox__clear",
1513
+ "b-style": "plain",
1514
+ borderless: "",
1515
+ tabindex: "-1",
1516
+ onClick: N
1517
+ }, {
1518
+ default: _(() => [
1519
+ z(b(X), ee(oe(l.icons.clear)), null, 16)
1520
+ ]),
1521
+ _: 1
1522
+ })) : l.readonly ? I("", !0) : (u(), B(b(de), {
1523
+ key: 1,
1524
+ class: "q-combobox__chevron",
1525
+ "b-style": "plain",
1526
+ borderless: "",
1527
+ tabindex: "-1",
1528
+ disabled: l.disabled,
1529
+ onClick: P
1530
+ }, {
1531
+ default: _(() => [
1532
+ z(b(X), ee(oe(l.icons.chevron)), null, 16)
1533
+ ]),
1534
+ _: 1
1535
+ }, 8, ["disabled"]))
1490
1536
  ]),
1491
1537
  _: 2
1492
1538
  }, [
1493
1539
  i.$slots.prepend ? {
1494
1540
  name: "prepend",
1495
- fn: $(() => [
1496
- b(i.$slots, "prepend")
1541
+ fn: _(() => [
1542
+ h(i.$slots, "prepend")
1497
1543
  ]),
1498
1544
  key: "0"
1499
1545
  } : void 0,
1500
- z.value && d.value || i.$slots.append ? {
1501
- name: "append",
1502
- fn: $(() => [
1503
- z.value && d.value ? (u(), E(y(ee), Z({ key: 0 }, l.icons.clear, {
1504
- class: "q-combobox__clear",
1505
- onClick: te(U, ["stop", "prevent"])
1506
- }), null, 16)) : L("", !0),
1507
- b(i.$slots, "append")
1508
- ]),
1509
- key: "1"
1510
- } : void 0,
1511
1546
  i.$slots.extras ? {
1512
1547
  name: "extras",
1513
- fn: $(() => [
1514
- b(i.$slots, "extras")
1548
+ fn: _(() => [
1549
+ h(i.$slots, "extras")
1515
1550
  ]),
1516
- key: "2"
1551
+ key: "1"
1517
1552
  } : void 0
1518
1553
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
1519
- M(y(de), {
1554
+ z(b(fe), {
1520
1555
  "model-value": s.value,
1521
1556
  spy: "",
1522
1557
  trigger: "manual",
1523
1558
  placement: "bottom",
1524
1559
  width: "anchor",
1525
1560
  offset: 4,
1526
- anchor: h.value,
1527
- onEnter: ue,
1528
- onLeave: Ae
1561
+ anchor: v.value,
1562
+ onEnter: Re,
1563
+ onLeave: Oe
1529
1564
  }, {
1530
- default: $(() => {
1565
+ default: _(() => {
1531
1566
  var V;
1532
1567
  return [
1533
- P("div", {
1568
+ j("div", {
1534
1569
  ref_key: "contentRef",
1535
- ref: p,
1570
+ ref: f,
1536
1571
  class: "q-select__body",
1537
1572
  onFocusout: g
1538
1573
  }, [
1539
- b(i.$slots, "body.prepend"),
1540
- l.loading ? (u(), v("div", Pt, [
1541
- M(y(he), { size: 24 })
1542
- ])) : T.value.length ? (u(), E(y(Ce), {
1574
+ h(i.$slots, "body.prepend"),
1575
+ l.loading ? (u(), m("div", Yt, [
1576
+ z(b(ye), { size: 24 })
1577
+ ])) : T.value.length ? (u(), B(b(Qe), {
1543
1578
  key: 1,
1544
1579
  ref_key: "listRef",
1545
- ref: _,
1580
+ ref: y,
1546
1581
  class: "q-select__items",
1547
1582
  modelValue: r.value,
1548
1583
  "onUpdate:modelValue": [
1549
- w[1] || (w[1] = (W) => r.value = W),
1550
- X
1584
+ $[1] || ($[1] = (G) => r.value = G),
1585
+ Z
1551
1586
  ],
1552
1587
  highlighted: (V = Q.value) == null ? void 0 : V[l.itemValue],
1553
1588
  items: T.value,
1554
1589
  groups: i.groups,
1555
1590
  "item-label": l.itemLabel,
1556
1591
  "item-value": l.itemValue,
1557
- onMouseup: I
1592
+ onMouseup: Fe
1558
1593
  }, {
1559
- item: $(({ item: W }) => [
1560
- b(i.$slots, "item", { item: W })
1594
+ item: _(({ item: G }) => [
1595
+ h(i.$slots, "item", { item: G })
1561
1596
  ]),
1562
1597
  _: 3
1563
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Xt, N(i.texts.noData), 1)),
1564
- b(i.$slots, "body.append")
1598
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", Zt, H(i.texts.noData), 1)),
1599
+ h(i.$slots, "body.append")
1565
1600
  ], 544)
1566
1601
  ];
1567
1602
  }),
@@ -1569,13 +1604,13 @@ const Qt = ["role"], At = {
1569
1604
  }, 8, ["model-value", "anchor"])
1570
1605
  ], 64));
1571
1606
  }
1572
- }), Ln = S(Jt), en = {
1607
+ }), Bn = x(tn), nn = {
1573
1608
  key: 0,
1574
1609
  class: "q-input-group__prepend"
1575
- }, tn = { key: 0 }, nn = {
1610
+ }, ln = { key: 0 }, on = {
1576
1611
  key: 1,
1577
1612
  class: "q-input-group__append"
1578
- }, ln = { key: 0 }, on = /* @__PURE__ */ B({
1613
+ }, an = { key: 0 }, sn = /* @__PURE__ */ L({
1579
1614
  __name: "QInputGroup",
1580
1615
  props: {
1581
1616
  id: { default: void 0 },
@@ -1588,53 +1623,53 @@ const Qt = ["role"], At = {
1588
1623
  },
1589
1624
  setup(t) {
1590
1625
  const n = t;
1591
- return De({
1626
+ return Te({
1592
1627
  QField: {
1593
1628
  size: "block"
1594
1629
  }
1595
- }), (o, e) => (u(), E(y(be), {
1630
+ }), (a, e) => (u(), B(b(ge), {
1596
1631
  id: n.id,
1597
- class: x(["q-input-group", n.class]),
1632
+ class: S(["q-input-group", n.class]),
1598
1633
  label: n.label,
1599
1634
  required: n.required,
1600
1635
  size: n.size
1601
1636
  }, {
1602
- default: $(() => [
1603
- o.$slots.prepend || n.prependIcon ? (u(), v("div", en, [
1604
- n.prependIcon ? (u(), v("span", tn, [
1605
- M(y(ee), re(ke(n.prependIcon)), null, 16)
1606
- ])) : L("", !0),
1607
- b(o.$slots, "prepend")
1608
- ])) : L("", !0),
1609
- b(o.$slots, "default"),
1610
- o.$slots.append || n.appendIcon ? (u(), v("div", nn, [
1611
- n.appendIcon ? (u(), v("span", ln, [
1612
- M(y(ee), re(ke(n.appendIcon)), null, 16)
1613
- ])) : L("", !0),
1614
- b(o.$slots, "append")
1615
- ])) : L("", !0)
1637
+ default: _(() => [
1638
+ a.$slots.prepend || n.prependIcon ? (u(), m("div", nn, [
1639
+ n.prependIcon ? (u(), m("span", ln, [
1640
+ z(b(X), ee(oe(n.prependIcon)), null, 16)
1641
+ ])) : I("", !0),
1642
+ h(a.$slots, "prepend")
1643
+ ])) : I("", !0),
1644
+ h(a.$slots, "default"),
1645
+ a.$slots.append || n.appendIcon ? (u(), m("div", on, [
1646
+ n.appendIcon ? (u(), m("span", an, [
1647
+ z(b(X), ee(oe(n.appendIcon)), null, 16)
1648
+ ])) : I("", !0),
1649
+ h(a.$slots, "append")
1650
+ ])) : I("", !0)
1616
1651
  ]),
1617
1652
  _: 3
1618
1653
  }, 8, ["id", "class", "label", "required", "size"]));
1619
1654
  }
1620
- }), Bn = S(on), an = /* @__PURE__ */ B({
1655
+ }), Sn = x(sn), rn = /* @__PURE__ */ L({
1621
1656
  __name: "QLineLoader",
1622
1657
  props: {
1623
1658
  class: { default: void 0 }
1624
1659
  },
1625
1660
  setup(t) {
1626
1661
  const n = t;
1627
- return (o, e) => (u(), v("div", {
1628
- class: x(["q-line-loader", n.class])
1662
+ return (a, e) => (u(), m("div", {
1663
+ class: S(["q-line-loader", n.class])
1629
1664
  }, null, 2));
1630
1665
  }
1631
- }), Sn = S(an), sn = {
1666
+ }), Vn = x(rn), dn = {
1632
1667
  key: 0,
1633
1668
  class: "q-popover__header"
1634
- }, rn = {
1669
+ }, un = {
1635
1670
  key: 1,
1636
1671
  class: "q-popover__body"
1637
- }, dn = ["innerHTML"], un = { key: 1 }, cn = /* @__PURE__ */ B({
1672
+ }, cn = ["innerHTML"], fn = { key: 1 }, pn = /* @__PURE__ */ L({
1638
1673
  inheritAttrs: !1,
1639
1674
  __name: "QPopover",
1640
1675
  props: {
@@ -1650,7 +1685,7 @@ const Qt = ["role"], At = {
1650
1685
  },
1651
1686
  setup(t) {
1652
1687
  const n = t;
1653
- return (o, e) => (u(), E(y(de), {
1688
+ return (a, e) => (u(), B(b(fe), {
1654
1689
  "model-value": n.modelValue,
1655
1690
  class: "q-popover",
1656
1691
  trigger: "click",
@@ -1660,41 +1695,41 @@ const Qt = ["role"], At = {
1660
1695
  disabled: n.disabled,
1661
1696
  placement: n.placement
1662
1697
  }, {
1663
- default: $(() => [
1664
- n.title || o.$slots.header ? (u(), v("h3", sn, [
1665
- oe(N(n.title) + " ", 1),
1666
- b(o.$slots, "header")
1667
- ])) : L("", !0),
1668
- n.text || o.$slots.body ? (u(), v("div", rn, [
1669
- n.html ? (u(), v("span", {
1698
+ default: _(() => [
1699
+ n.title || a.$slots.header ? (u(), m("h3", dn, [
1700
+ ie(H(n.title) + " ", 1),
1701
+ h(a.$slots, "header")
1702
+ ])) : I("", !0),
1703
+ n.text || a.$slots.body ? (u(), m("div", un, [
1704
+ n.html ? (u(), m("span", {
1670
1705
  key: 0,
1671
1706
  innerHTML: n.text
1672
- }, null, 8, dn)) : (u(), v("span", un, N(n.text), 1)),
1673
- b(o.$slots, "body")
1674
- ])) : L("", !0)
1707
+ }, null, 8, cn)) : (u(), m("span", fn, H(n.text), 1)),
1708
+ h(a.$slots, "body")
1709
+ ])) : I("", !0)
1675
1710
  ]),
1676
1711
  _: 3
1677
1712
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
1678
1713
  }
1679
- }), xn = S(cn), fn = {
1714
+ }), En = x(pn), mn = {
1680
1715
  key: 0,
1681
1716
  class: "q-select__value"
1682
- }, pn = {
1717
+ }, vn = {
1683
1718
  key: 1,
1684
1719
  class: "q-select__placeholder"
1685
- }, mn = {
1720
+ }, hn = {
1686
1721
  key: 0,
1687
1722
  class: "q-select__loader"
1688
- }, vn = {
1723
+ }, bn = {
1689
1724
  placeholder: "Choose..."
1690
- }, hn = {
1725
+ }, yn = {
1691
1726
  chevron: {
1692
1727
  icon: "chevron-down"
1693
1728
  },
1694
1729
  clear: {
1695
1730
  icon: "close"
1696
1731
  }
1697
- }, bn = /* @__PURE__ */ B({
1732
+ }, gn = /* @__PURE__ */ L({
1698
1733
  __name: "QSelect",
1699
1734
  props: {
1700
1735
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -1705,95 +1740,98 @@ const Qt = ["role"], At = {
1705
1740
  disabled: { type: Boolean },
1706
1741
  required: { type: Boolean },
1707
1742
  loading: { type: Boolean },
1708
- icons: { default: () => hn },
1743
+ icons: { default: () => yn },
1709
1744
  items: {},
1710
1745
  groups: { default: () => [] },
1711
1746
  itemValue: { default: "key" },
1712
1747
  itemLabel: { default: "label" },
1713
1748
  size: { default: void 0 },
1714
- texts: { default: () => vn },
1749
+ texts: { default: () => bn },
1715
1750
  class: { default: "" }
1716
1751
  },
1717
1752
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1718
1753
  setup(t, { emit: n }) {
1719
- const o = n, e = t, l = q(e.modelValue), r = q(!1), s = q(""), d = q(null), m = q(null), h = q(null), _ = k(
1754
+ const a = n, e = t, l = q(e.modelValue), r = q(!1), s = q(""), d = q(null), p = q(null), v = q(null), y = k(
1720
1755
  () => {
1721
- var c;
1722
- return (c = e.items) == null ? void 0 : c.find((a) => a[e.itemValue] === l.value);
1756
+ var o;
1757
+ return (o = e.items) == null ? void 0 : o.find((c) => c[e.itemValue] === l.value);
1723
1758
  }
1724
- ), p = k(
1725
- () => _.value ? _.value[e.itemLabel] : ""
1726
- ), z = k(
1759
+ ), f = k(
1760
+ () => y.value ? y.value[e.itemLabel] : ""
1761
+ ), D = k(
1727
1762
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1728
1763
  );
1729
- function T(c) {
1730
- l.value = c, o("update:modelValue", c), C();
1764
+ function T(o) {
1765
+ l.value = o, a("update:modelValue", o), C();
1731
1766
  }
1732
- function D() {
1733
- z.value && T(void 0);
1767
+ function E() {
1768
+ D.value && T(void 0);
1734
1769
  }
1735
1770
  function Q() {
1736
- e.readonly || e.disabled || (r.value ? C() : R());
1771
+ e.readonly || e.disabled || (r.value ? C() : A());
1737
1772
  }
1738
- function O(c) {
1739
- var a, f, g;
1740
- !((a = h.value) != null && a.contains(c.relatedTarget)) && !((g = (f = d.value) == null ? void 0 : f.fieldRef) != null && g.contains(c.relatedTarget)) && C();
1773
+ function U(o) {
1774
+ var c, w, g;
1775
+ !((c = v.value) != null && c.contains(o.relatedTarget)) && !((g = (w = d.value) == null ? void 0 : w.fieldRef) != null && g.contains(o.relatedTarget)) && C();
1741
1776
  }
1742
- function R() {
1743
- r.value || (o("before-show"), r.value = !0);
1777
+ function A() {
1778
+ r.value || (a("before-show"), r.value = !0);
1744
1779
  }
1745
1780
  function C() {
1746
- r.value && (o("before-hide"), r.value = !1);
1747
- }
1748
- let X;
1749
- function A(c) {
1750
- if (!(!c.key || e.readonly || e.disabled)) {
1751
- if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (r.value = !0), ["Escape", "Tab"].includes(c.key) && (r.value ? r.value = !1 : e.clearable && c.key === "Escape" && D()), c.key === "Delete" && e.clearable && D(), /^[a-z]$/i.test(c.key)) {
1752
- s.value += c.key.toLowerCase();
1753
- for (let a = 0; a < e.items.length; a++)
1754
- if (e.items[a][e.itemLabel].toLowerCase().startsWith(s.value)) {
1755
- Y(a);
1781
+ r.value && (a("before-hide"), r.value = !1);
1782
+ }
1783
+ function Z() {
1784
+ r.value ? C() : A();
1785
+ }
1786
+ let F;
1787
+ function O(o) {
1788
+ if (!(!o.key || e.readonly || e.disabled)) {
1789
+ if (window.clearTimeout(F), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(o.key) && (o.preventDefault(), o.stopPropagation()), ["Enter", " "].includes(o.key) && (r.value = !0), ["Escape", "Tab"].includes(o.key) && (r.value ? r.value = !1 : D.value && o.key === "Escape" && E()), o.key === "Delete" && e.clearable && E(), /^[a-z]$/i.test(o.key)) {
1790
+ s.value += o.key.toLowerCase();
1791
+ for (let c = 0; c < e.items.length; c++)
1792
+ if (e.items[c][e.itemLabel].toLowerCase().startsWith(s.value)) {
1793
+ J(c);
1756
1794
  break;
1757
1795
  }
1758
1796
  }
1759
- X = window.setTimeout(function() {
1797
+ F = window.setTimeout(function() {
1760
1798
  s.value = "";
1761
1799
  }, 500);
1762
1800
  }
1763
1801
  }
1764
- function H() {
1765
- var c;
1766
- e.loading ? (c = h.value) == null || c.focus() : G(), o("show");
1802
+ function M() {
1803
+ var o;
1804
+ e.loading ? (o = v.value) == null || o.focus() : K(), a("show");
1767
1805
  }
1768
- function K() {
1769
- U(), o("hide");
1806
+ function P() {
1807
+ N(), a("hide");
1770
1808
  }
1771
- function U() {
1772
- var c, a;
1773
- (a = (c = d.value) == null ? void 0 : c.fieldRef) == null || a.focus();
1809
+ function N() {
1810
+ var o, c;
1811
+ (c = (o = d.value) == null ? void 0 : o.fieldRef) == null || c.focus();
1774
1812
  }
1775
- function G() {
1776
- var c;
1777
- (c = m.value) == null || c.$el.focus();
1813
+ function K() {
1814
+ var o;
1815
+ (o = p.value) == null || o.$el.focus();
1778
1816
  }
1779
- function Y(c) {
1780
- var a;
1781
- (a = m.value) == null || a.focusItem(c);
1817
+ function J(o) {
1818
+ var c;
1819
+ (c = p.value) == null || c.focusItem(o);
1782
1820
  }
1783
- return F(
1821
+ return R(
1784
1822
  () => e.modelValue,
1785
- (c) => {
1786
- l.value = c;
1823
+ (o) => {
1824
+ l.value = o;
1787
1825
  }
1788
- ), F(
1826
+ ), R(
1789
1827
  () => e.loading,
1790
- (c) => {
1791
- !c && r.value && j(G);
1828
+ (o) => {
1829
+ !o && r.value && W(K);
1792
1830
  }
1793
- ), (c, a) => {
1794
- var f;
1795
- return u(), v(J, null, [
1796
- M(y(be), {
1831
+ ), (o, c) => {
1832
+ var w;
1833
+ return u(), m(Y, null, [
1834
+ z(b(ge), {
1797
1835
  id: e.id,
1798
1836
  label: e.label,
1799
1837
  required: e.required,
@@ -1801,7 +1839,7 @@ const Qt = ["role"], At = {
1801
1839
  ref: d,
1802
1840
  role: "combobox",
1803
1841
  tabindex: e.disabled ? -1 : 0,
1804
- class: x([
1842
+ class: S([
1805
1843
  "q-select",
1806
1844
  {
1807
1845
  "q-select--readonly": e.readonly,
@@ -1816,45 +1854,66 @@ const Qt = ["role"], At = {
1816
1854
  "aria-haspopup": "listbox",
1817
1855
  size: e.size,
1818
1856
  onClick: Q,
1819
- onKeydown: te(A, ["stop"])
1820
- }, pe({
1821
- append: $(() => [
1822
- b(c.$slots, "append"),
1823
- z.value && l.value ? (u(), E(y(ee), Z({ key: 0 }, e.icons.clear, {
1857
+ onKeydown: se(O, ["stop"])
1858
+ }, ve({
1859
+ append: _(() => [
1860
+ h(o.$slots, "append"),
1861
+ D.value && l.value ? (u(), B(b(de), {
1862
+ key: 0,
1824
1863
  class: "q-select__clear",
1825
- onClick: te(D, ["stop", "prevent"])
1826
- }), null, 16)) : L("", !0),
1827
- e.readonly ? L("", !0) : (u(), E(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
1864
+ "b-style": "plain",
1865
+ borderless: "",
1866
+ tabindex: "-1",
1867
+ onClick: E
1868
+ }, {
1869
+ default: _(() => [
1870
+ z(b(X), ee(oe(e.icons.clear)), null, 16)
1871
+ ]),
1872
+ _: 1
1873
+ })) : e.readonly ? I("", !0) : (u(), B(b(de), {
1874
+ key: 1,
1875
+ class: "q-select__chevron",
1876
+ "b-style": "plain",
1877
+ borderless: "",
1878
+ tabindex: "-1",
1879
+ disabled: e.disabled,
1880
+ onClick: Z
1881
+ }, {
1882
+ default: _(() => [
1883
+ z(b(X), ee(oe(e.icons.chevron)), null, 16)
1884
+ ]),
1885
+ _: 1
1886
+ }, 8, ["disabled"]))
1828
1887
  ]),
1829
- default: $(() => [
1830
- l.value !== void 0 ? (u(), v("span", fn, N(p.value), 1)) : (u(), v("span", pn, [
1831
- !e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
1832
- oe(N(c.texts.placeholder), 1)
1833
- ], 64)) : L("", !0)
1888
+ default: _(() => [
1889
+ l.value !== void 0 ? (u(), m("span", mn, H(f.value), 1)) : (u(), m("span", vn, [
1890
+ !e.readonly && !e.disabled ? (u(), m(Y, { key: 0 }, [
1891
+ ie(H(o.texts.placeholder), 1)
1892
+ ], 64)) : I("", !0)
1834
1893
  ]))
1835
1894
  ]),
1836
1895
  _: 2
1837
1896
  }, [
1838
- (f = _.value) != null && f.icon || c.$slots.prepend ? {
1897
+ (w = y.value) != null && w.icon || o.$slots.prepend ? {
1839
1898
  name: "prepend",
1840
- fn: $(() => {
1841
- var g, I;
1899
+ fn: _(() => {
1900
+ var g, te;
1842
1901
  return [
1843
- b(c.$slots, "prepend"),
1844
- (g = _.value) != null && g.icon ? (u(), E(y(ee), re(Z({ key: 0 }, (I = _.value) == null ? void 0 : I.icon)), null, 16)) : L("", !0)
1902
+ h(o.$slots, "prepend"),
1903
+ (g = y.value) != null && g.icon ? (u(), B(b(X), ee(le({ key: 0 }, (te = y.value) == null ? void 0 : te.icon)), null, 16)) : I("", !0)
1845
1904
  ];
1846
1905
  }),
1847
1906
  key: "0"
1848
1907
  } : void 0,
1849
- c.$slots.extras ? {
1908
+ o.$slots.extras ? {
1850
1909
  name: "extras",
1851
- fn: $(() => [
1852
- b(c.$slots, "extras")
1910
+ fn: _(() => [
1911
+ h(o.$slots, "extras")
1853
1912
  ]),
1854
1913
  key: "1"
1855
1914
  } : void 0
1856
1915
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
1857
- M(y(de), {
1916
+ z(b(fe), {
1858
1917
  "model-value": r.value,
1859
1918
  spy: "",
1860
1919
  trigger: "manual",
@@ -1862,42 +1921,42 @@ const Qt = ["role"], At = {
1862
1921
  width: "anchor",
1863
1922
  anchor: d.value,
1864
1923
  offset: 2,
1865
- onEnter: H,
1866
- onLeave: K
1924
+ onEnter: M,
1925
+ onLeave: P
1867
1926
  }, {
1868
- default: $(() => [
1869
- P("div", {
1927
+ default: _(() => [
1928
+ j("div", {
1870
1929
  ref_key: "contentRef",
1871
- ref: h,
1930
+ ref: v,
1872
1931
  class: "q-select__body",
1873
1932
  tabindex: "-1",
1874
- onFocusout: O,
1875
- onKeydown: te(A, ["stop"])
1933
+ onFocusout: U,
1934
+ onKeydown: se(O, ["stop"])
1876
1935
  }, [
1877
- b(c.$slots, "body.prepend"),
1878
- e.loading ? (u(), v("div", mn, [
1879
- M(y(he), { size: 24 })
1880
- ])) : (u(), E(y(Ce), {
1936
+ h(o.$slots, "body.prepend"),
1937
+ e.loading ? (u(), m("div", hn, [
1938
+ z(b(ye), { size: 24 })
1939
+ ])) : (u(), B(b(Qe), {
1881
1940
  key: 1,
1882
1941
  ref_key: "listRef",
1883
- ref: m,
1942
+ ref: p,
1884
1943
  class: "q-select__items",
1885
1944
  modelValue: l.value,
1886
1945
  "onUpdate:modelValue": [
1887
- a[0] || (a[0] = (g) => l.value = g),
1946
+ c[0] || (c[0] = (g) => l.value = g),
1888
1947
  T
1889
1948
  ],
1890
1949
  items: e.items,
1891
- groups: c.groups,
1950
+ groups: o.groups,
1892
1951
  "item-label": e.itemLabel,
1893
1952
  "item-value": e.itemValue
1894
1953
  }, {
1895
- item: $(({ item: g }) => [
1896
- b(c.$slots, "item", { item: g })
1954
+ item: _(({ item: g }) => [
1955
+ h(o.$slots, "item", { item: g })
1897
1956
  ]),
1898
1957
  _: 3
1899
1958
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
1900
- b(c.$slots, "body.append")
1959
+ h(o.$slots, "body.append")
1901
1960
  ], 544)
1902
1961
  ]),
1903
1962
  _: 3
@@ -1905,20 +1964,20 @@ const Qt = ["role"], At = {
1905
1964
  ], 64);
1906
1965
  };
1907
1966
  }
1908
- }), Vn = S(bn), yn = /* @__PURE__ */ B({
1967
+ }), Dn = x(gn), _n = /* @__PURE__ */ L({
1909
1968
  __name: "QThemeProvider",
1910
1969
  props: {
1911
1970
  theme: {}
1912
1971
  },
1913
1972
  setup(t) {
1914
1973
  const n = t;
1915
- return (o, e) => (u(), v("div", {
1916
- class: x(["q-theme-provider", `q-theme--${n.theme}`])
1974
+ return (a, e) => (u(), m("div", {
1975
+ class: S(["q-theme-provider", `q-theme--${n.theme}`])
1917
1976
  }, [
1918
- b(o.$slots, "default")
1977
+ h(a.$slots, "default")
1919
1978
  ], 2));
1920
1979
  }
1921
- }), En = S(yn), gn = ["innerHTML"], _n = { key: 1 }, kn = /* @__PURE__ */ B({
1980
+ }), Tn = x(_n), kn = ["innerHTML"], wn = { key: 1 }, $n = /* @__PURE__ */ L({
1922
1981
  __name: "QTooltip",
1923
1982
  props: {
1924
1983
  modelValue: { type: Boolean },
@@ -1936,62 +1995,62 @@ const Qt = ["role"], At = {
1936
1995
  class: { default: void 0 }
1937
1996
  },
1938
1997
  setup(t) {
1939
- const n = t, o = ie(n.id);
1940
- return (e, l) => (u(), v(J, null, [
1941
- b(e.$slots, "anchor", {
1942
- props: { "aria-describedby": y(o) }
1998
+ const n = t, a = ce(n.id);
1999
+ return (e, l) => (u(), m(Y, null, [
2000
+ h(e.$slots, "anchor", {
2001
+ props: { "aria-describedby": b(a) }
1943
2002
  }),
1944
- M(y(de), {
2003
+ z(b(fe), {
1945
2004
  "model-value": n.modelValue,
1946
2005
  anchor: n.anchor,
1947
2006
  role: "tooltip",
1948
- id: y(o),
2007
+ id: b(a),
1949
2008
  appearance: n.appearance,
1950
2009
  arrow: n.arrow,
1951
2010
  attach: n.attach,
1952
- class: x(["q-tooltip", n.class]),
2011
+ class: S(["q-tooltip", n.class]),
1953
2012
  delay: n.delay,
1954
2013
  disabled: n.disabled,
1955
2014
  placement: n.placement,
1956
2015
  trigger: n.trigger
1957
2016
  }, {
1958
- default: $(() => [
1959
- n.html ? (u(), v("span", {
2017
+ default: _(() => [
2018
+ n.html ? (u(), m("span", {
1960
2019
  key: 0,
1961
2020
  innerHTML: n.text
1962
- }, null, 8, gn)) : (u(), v("span", _n, N(n.text), 1))
2021
+ }, null, 8, kn)) : (u(), m("span", wn, H(n.text), 1))
1963
2022
  ]),
1964
2023
  _: 1
1965
2024
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
1966
2025
  ], 64));
1967
2026
  }
1968
- }), Dn = S(kn);
2027
+ }), Cn = x($n);
1969
2028
  export {
1970
- rt as QButton,
1971
- ut as QButtonGroup,
1972
- In as QButtonToggle,
1973
- Ln as QCombobox,
1974
- be as QField,
1975
- ee as QIcon,
1976
- _t as QIconFont,
1977
- kt as QIconImg,
1978
- wt as QIconSvg,
1979
- Bn as QInputGroup,
1980
- Sn as QLineLoader,
1981
- Ce as QList,
1982
- Dt as QListItem,
1983
- Tt as QListItemGroup,
1984
- de as QOverlay,
1985
- xn as QPopover,
1986
- Vn as QSelect,
1987
- he as QSpinnerLoader,
1988
- jt as QTextField,
1989
- En as QThemeProvider,
1990
- Dn as QTooltip,
1991
- qn as createFramework,
1992
- We as defaultDarkColorScheme,
1993
- $e as defaultLightColorScheme,
1994
- $n as provideTheme,
1995
- Ge as useTheme
2029
+ de as QButton,
2030
+ ft as QButtonGroup,
2031
+ xn as QButtonToggle,
2032
+ Bn as QCombobox,
2033
+ ge as QField,
2034
+ X as QIcon,
2035
+ wt as QIconFont,
2036
+ $t as QIconImg,
2037
+ qt as QIconSvg,
2038
+ Sn as QInputGroup,
2039
+ Vn as QLineLoader,
2040
+ Qe as QList,
2041
+ Ct as QListItem,
2042
+ zt as QListItemGroup,
2043
+ fe as QOverlay,
2044
+ En as QPopover,
2045
+ Dn as QSelect,
2046
+ ye as QSpinnerLoader,
2047
+ Xt as QTextField,
2048
+ Tn as QThemeProvider,
2049
+ Cn as QTooltip,
2050
+ Ln as createFramework,
2051
+ Xe as defaultDarkColorScheme,
2052
+ qe as defaultLightColorScheme,
2053
+ In as provideTheme,
2054
+ Pe as useTheme
1996
2055
  };
1997
2056
  //# sourceMappingURL=ui.esm.js.map