@quidgest/ui 0.12.2 → 0.13.1

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 (43) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +166 -1
  3. package/dist/ui.esm.js +1045 -830
  4. package/dist/ui.js +6 -6
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +111 -93
  7. package/dist/ui.scss +122 -2
  8. package/esm/components/QBadge/QBadge.d.ts +72 -0
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -0
  10. package/esm/components/QBadge/QBadge.vue.js +87 -0
  11. package/esm/components/QBadge/QBadge.vue2.js +4 -0
  12. package/esm/components/QBadge/index.d.ts +119 -0
  13. package/esm/components/QBadge/index.d.ts.map +1 -0
  14. package/esm/components/QBadge/index.js +6 -0
  15. package/esm/components/QButton/index.d.ts +3 -0
  16. package/esm/components/QButton/index.d.ts.map +1 -1
  17. package/esm/components/QCombobox/QCombobox.d.ts +10 -10
  18. package/esm/components/QCombobox/index.d.ts +30 -30
  19. package/esm/components/QDialog/QDialog.d.ts +184 -0
  20. package/esm/components/QDialog/QDialog.d.ts.map +1 -0
  21. package/esm/components/QDialog/QDialog.vue.js +146 -0
  22. package/esm/components/QDialog/QDialog.vue2.js +4 -0
  23. package/esm/components/QDialog/index.d.ts +237 -0
  24. package/esm/components/QDialog/index.d.ts.map +1 -0
  25. package/esm/components/QDialog/index.js +6 -0
  26. package/esm/components/QList/index.d.ts +16 -16
  27. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  28. package/esm/components/QSelect/QSelect.vue.js +34 -34
  29. package/esm/components/QTextField/QTextField.d.ts +5 -5
  30. package/esm/components/QTextField/index.d.ts +11 -11
  31. package/esm/components/QTooltip/QTooltip.d.ts +15 -0
  32. package/esm/components/QTooltip/QTooltip.d.ts.map +1 -1
  33. package/esm/components/QTooltip/QTooltip.vue.js +44 -27
  34. package/esm/components/QTooltip/index.d.ts +20 -0
  35. package/esm/components/QTooltip/index.d.ts.map +1 -1
  36. package/esm/components/index.d.ts +2 -0
  37. package/esm/components/index.d.ts.map +1 -1
  38. package/esm/components/index.js +43 -39
  39. package/esm/index.d.ts +2 -0
  40. package/esm/utils/color.d.ts +7 -1
  41. package/esm/utils/color.d.ts.map +1 -1
  42. package/esm/utils/color.js +54 -9
  43. package/package.json +1 -1
package/dist/ui.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, computed as k, openBlock as u, createElementBlock as m, normalizeClass as C, normalizeStyle as ie, getCurrentInstance as Ue, ref as V, provide as Ne, inject as He, withModifiers as ce, createVNode as Q, unref as y, createCommentVNode as q, createElementVNode as K, Fragment as se, createTextVNode as ve, toDisplayString as j, renderSlot as h, toRef as Ae, mergeModels as Z, useModel as ne, createBlock as D, withCtx as w, renderList as xe, resolveDynamicComponent as Ke, h as ze, normalizeProps as ae, mergeProps as fe, guardReactiveProps as re, reactive as Qe, watch as R, nextTick as X, onMounted as je, onBeforeUnmount as lt, Teleport as at, Transition as st, withKeys as it, createSlots as $e, withDirectives as rt, vModelDynamic as dt } from "vue";
1
+ import { defineComponent as L, computed as k, openBlock as u, createElementBlock as v, normalizeClass as C, normalizeStyle as ue, getCurrentInstance as Pe, ref as V, provide as Ne, inject as He, withModifiers as pe, createVNode as z, unref as m, createCommentVNode as $, createElementVNode as A, Fragment as te, createTextVNode as me, toDisplayString as N, renderSlot as y, createBlock as x, resolveDynamicComponent as Ke, h as Ae, withCtx as _, normalizeProps as W, guardReactiveProps as ie, toRef as ze, mergeModels as X, useModel as ee, renderList as we, mergeProps as re, reactive as Qe, watch as Z, nextTick as J, onMounted as je, onBeforeUnmount as at, Teleport as st, Transition as it, withKeys as rt, createSlots as qe, withDirectives as dt, vModelDynamic as ut } from "vue";
2
2
  /*!
3
- * Quidgest UI v0.12.2
3
+ * Quidgest UI v0.13.1
4
4
  * (c) 2024 Quidgest - Consultores de Gestão, S.A.
5
5
  * Released under the MIT License.
6
6
  */
@@ -66,11 +66,11 @@ const Le = {
66
66
  onWarning: "#fff",
67
67
  onDanger: "#fff",
68
68
  onInfo: "#fff"
69
- }, nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
69
+ }, qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
70
70
  __proto__: null,
71
71
  defaultDarkColorScheme: Ge,
72
72
  defaultLightColorScheme: Le
73
- }, Symbol.toStringTag, { value: "Module" })), ut = /* @__PURE__ */ L({
73
+ }, Symbol.toStringTag, { value: "Module" })), ct = /* @__PURE__ */ L({
74
74
  __name: "QSpinnerLoader",
75
75
  props: {
76
76
  size: { default: 48 },
@@ -80,9 +80,9 @@ const Le = {
80
80
  const o = t, e = k(() => ({
81
81
  "font-size": o.size !== 48 ? `${o.size}px` : void 0
82
82
  }));
83
- return (n, l) => (u(), m("div", {
83
+ return (n, l) => (u(), v("div", {
84
84
  class: C(["q-spinner-loader", o.class]),
85
- style: ie(e.value)
85
+ style: ue(e.value)
86
86
  }, null, 6));
87
87
  }
88
88
  });
@@ -109,26 +109,26 @@ function Be(t = {}, o = {}) {
109
109
  }
110
110
  return e;
111
111
  }
112
- const Ve = "q-defaults";
113
- function ct() {
112
+ const Ce = "q-defaults";
113
+ function ft() {
114
114
  var s, i;
115
- const t = Ue();
115
+ const t = Pe();
116
116
  if (!t)
117
117
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
118
118
  const o = t.type.name ?? t.type.__name;
119
119
  if (!o)
120
120
  throw new Error("[Quidgest UI] Could not determine component name");
121
- const e = Re(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
121
+ const e = We(), n = (s = e.value) == null ? void 0 : s.Global, l = (i = e.value) == null ? void 0 : i[o];
122
122
  return k(() => Be(n, l));
123
123
  }
124
- function We(t) {
124
+ function Re(t) {
125
125
  if (Se(t))
126
126
  return;
127
- const o = Re(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
128
- Ne(Ve, n);
127
+ const o = We(), e = V(t), n = k(() => Se(e.value) ? o.value : Be(o.value, e.value));
128
+ Ne(Ce, n);
129
129
  }
130
- function Re() {
131
- const t = He(Ve, void 0);
130
+ function We() {
131
+ const t = He(Ce, void 0);
132
132
  if (!t)
133
133
  throw new Error("[Quidgest UI] Could not find defaults instance");
134
134
  return t;
@@ -136,34 +136,34 @@ function Re() {
136
136
  function Xe(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 ft(t, o) {
139
+ function pt(t, o) {
140
140
  var n;
141
141
  const e = Xe(o);
142
142
  return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
143
143
  }
144
- function S(t) {
144
+ function B(t) {
145
145
  const o = t.setup;
146
146
  return o && (t.setup = (e, n) => {
147
- const l = ct();
147
+ const l = ft();
148
148
  if (Se(l.value))
149
149
  return o(e, n);
150
- const s = Ue();
150
+ const s = Pe();
151
151
  if (s === null)
152
152
  return o(e, n);
153
153
  const i = new Proxy(e, {
154
- get(a, c) {
155
- var x;
156
- const v = Reflect.get(a, c), $ = (x = l.value) == null ? void 0 : x[c];
157
- return typeof c == "string" && !ft(s.vnode, c) ? $ ?? v : v;
154
+ get(a, r) {
155
+ var I;
156
+ const f = Reflect.get(a, r), q = (I = l.value) == null ? void 0 : I[r];
157
+ return typeof r == "string" && !pt(s.vnode, r) ? q ?? f : f;
158
158
  }
159
159
  });
160
160
  return o(i, n);
161
161
  }), t;
162
162
  }
163
- const qe = S(ut), pt = ["disabled"], mt = {
163
+ const xe = B(ct), mt = ["disabled"], vt = {
164
164
  key: 0,
165
165
  class: "q-btn__spinner"
166
- }, vt = { class: "q-btn__content" }, ht = /* @__PURE__ */ L({
166
+ }, ht = { class: "q-btn__content" }, yt = /* @__PURE__ */ L({
167
167
  __name: "QButton",
168
168
  props: {
169
169
  active: { type: Boolean },
@@ -200,99 +200,27 @@ const qe = S(ut), pt = ["disabled"], mt = {
200
200
  e.class
201
201
  ];
202
202
  });
203
- return (a, c) => (u(), m("button", {
203
+ return (a, r) => (u(), v("button", {
204
204
  type: "button",
205
205
  class: C(i.value),
206
206
  disabled: l.value,
207
- onClick: ce(s, ["stop", "prevent"])
207
+ onClick: pe(s, ["stop", "prevent"])
208
208
  }, [
209
- a.loading ? (u(), m("div", mt, [
210
- Q(y(qe), { size: 20 })
211
- ])) : q("", !0),
212
- K("span", vt, [
213
- a.iconOnRight ? (u(), m(se, { key: 0 }, [
214
- ve(j(e.label), 1)
215
- ], 64)) : q("", !0),
216
- h(a.$slots, "default"),
217
- a.iconOnRight ? q("", !0) : (u(), m(se, { key: 1 }, [
218
- ve(j(e.label), 1)
209
+ a.loading ? (u(), v("div", vt, [
210
+ z(m(xe), { size: 20 })
211
+ ])) : $("", !0),
212
+ A("span", ht, [
213
+ a.iconOnRight ? (u(), v(te, { key: 0 }, [
214
+ me(N(e.label), 1)
215
+ ], 64)) : $("", !0),
216
+ y(a.$slots, "default"),
217
+ a.iconOnRight ? $("", !0) : (u(), v(te, { key: 1 }, [
218
+ me(N(e.label), 1)
219
219
  ], 64))
220
220
  ])
221
- ], 10, pt));
221
+ ], 10, mt));
222
222
  }
223
- }), pe = S(ht), yt = /* @__PURE__ */ L({
224
- __name: "QButtonGroup",
225
- props: {
226
- disabled: { type: Boolean },
227
- borderless: { type: Boolean },
228
- elevated: { type: Boolean },
229
- class: { default: void 0 }
230
- },
231
- setup(t) {
232
- const o = t;
233
- return We({
234
- QButton: {
235
- bStyle: "secondary",
236
- disabled: Ae(o, "disabled"),
237
- borderless: Ae(o, "borderless"),
238
- elevated: !1
239
- }
240
- }), (e, n) => (u(), m("div", {
241
- class: C([
242
- "q-btn-group",
243
- {
244
- "q-btn-group--elevated": o.elevated
245
- },
246
- o.class
247
- ])
248
- }, [
249
- h(e.$slots, "default")
250
- ], 2));
251
- }
252
- }), Ye = S(yt), bt = /* @__PURE__ */ L({
253
- __name: "QButtonToggle",
254
- props: /* @__PURE__ */ Z({
255
- options: {},
256
- disabled: { type: Boolean },
257
- borderless: { type: Boolean },
258
- elevated: { type: Boolean },
259
- required: { type: Boolean },
260
- class: {}
261
- }, {
262
- modelValue: {},
263
- modelModifiers: {}
264
- }),
265
- emits: ["update:modelValue"],
266
- setup(t) {
267
- const o = t, e = ne(t, "modelValue");
268
- function n(l) {
269
- e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
270
- }
271
- return (l, s) => (u(), D(y(Ye), {
272
- "b-style": "secondary",
273
- class: C(o.class),
274
- disabled: o.disabled,
275
- borderless: o.borderless,
276
- elevated: o.elevated
277
- }, {
278
- default: w(() => [
279
- (u(!0), m(se, null, xe(o.options, (i) => (u(), D(y(pe), {
280
- key: i.key,
281
- title: i.title,
282
- label: i.label,
283
- active: e.value === i.key,
284
- onClick: () => n(i)
285
- }, {
286
- default: w(() => [
287
- h(l.$slots, i.key)
288
- ]),
289
- _: 2
290
- }, 1032, ["title", "label", "active", "onClick"]))), 128))
291
- ]),
292
- _: 3
293
- }, 8, ["class", "disabled", "borderless", "elevated"]));
294
- }
295
- }), gt = S(bt), _t = /* @__PURE__ */ L({
223
+ }), de = B(yt), bt = /* @__PURE__ */ L({
296
224
  __name: "QIcon",
297
225
  props: {
298
226
  icon: {},
@@ -304,22 +232,22 @@ const qe = S(ut), pt = ["disabled"], mt = {
304
232
  const o = t, e = k(() => {
305
233
  switch (o.type) {
306
234
  case "svg":
307
- return et;
235
+ return Je;
308
236
  case "font":
309
- return Ze;
237
+ return Ye;
310
238
  case "img":
311
- return Je;
239
+ return Ze;
312
240
  default:
313
241
  return;
314
242
  }
315
243
  });
316
- return (n, l) => (u(), D(Ke(e.value), {
244
+ return (n, l) => (u(), x(Ke(e.value), {
317
245
  class: C(o.class),
318
246
  icon: o.icon,
319
247
  size: o.size
320
248
  }, null, 8, ["class", "icon", "size"]));
321
249
  }
322
- }), kt = /* @__PURE__ */ L({
250
+ }), gt = /* @__PURE__ */ L({
323
251
  __name: "QIconFont",
324
252
  props: {
325
253
  icon: {},
@@ -332,12 +260,12 @@ const qe = S(ut), pt = ["disabled"], mt = {
332
260
  const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
333
261
  "font-size": o.size !== void 0 ? `${o.size}px` : void 0
334
262
  }));
335
- return (s, i) => (u(), m("i", {
263
+ return (s, i) => (u(), v("i", {
336
264
  class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
337
- style: ie(l.value)
265
+ style: ue(l.value)
338
266
  }, null, 6));
339
267
  }
340
- }), wt = ["src"], $t = /* @__PURE__ */ L({
268
+ }), _t = ["src"], kt = /* @__PURE__ */ L({
341
269
  __name: "QIconImg",
342
270
  props: {
343
271
  icon: {},
@@ -348,13 +276,13 @@ const qe = S(ut), pt = ["disabled"], mt = {
348
276
  const o = t, e = k(() => ({
349
277
  "font-size": o.size !== void 0 ? `${o.size}px` : void 0
350
278
  }));
351
- return (n, l) => (u(), m("img", {
279
+ return (n, l) => (u(), v("img", {
352
280
  src: o.icon,
353
281
  class: C(["q-icon", "q-icon__img", o.class]),
354
- style: ie(e.value)
355
- }, null, 14, wt));
282
+ style: ue(e.value)
283
+ }, null, 14, _t));
356
284
  }
357
- }), me = {}, qt = L({
285
+ }), ye = {}, wt = L({
358
286
  name: "InlineSvg",
359
287
  emits: {
360
288
  loaded: (t) => typeof t == "object",
@@ -367,9 +295,9 @@ const qe = S(ut), pt = ["disabled"], mt = {
367
295
  return null;
368
296
  const t = this.getSvgContent(this.svgElSource);
369
297
  if (!t)
370
- return ze("div", this.$attrs);
298
+ return Ae("div", this.$attrs);
371
299
  const o = {};
372
- return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, ze("svg", o);
300
+ return this.copySvgAttrs(o, this.svgElSource), this.copySvgAttrs(o, t), this.copyComponentAttrs(o, this.$attrs), o.innerHTML = t.innerHTML, Ae("svg", o);
373
301
  },
374
302
  props: {
375
303
  /**
@@ -431,7 +359,7 @@ const qe = S(ut), pt = ["disabled"], mt = {
431
359
  n !== !1 && n !== null && n !== void 0 && (t[e] = n);
432
360
  },
433
361
  getSvgContent(t) {
434
- 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)), It(t, this.title)), t);
362
+ 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)), $t(t, this.title)), t);
435
363
  },
436
364
  /**
437
365
  * Get svgElSource
@@ -439,11 +367,11 @@ const qe = S(ut), pt = ["disabled"], mt = {
439
367
  */
440
368
  async getSource(t) {
441
369
  try {
442
- me[t] || (me[t] = xt(this.download(t))), this.svgElSource && me[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
443
- const o = await me[t];
370
+ ye[t] || (ye[t] = qt(this.download(t))), this.svgElSource && ye[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
371
+ const o = await ye[t];
444
372
  this.svgElSource = o, await this.$nextTick(), this.$emit("loaded", this.$el);
445
373
  } catch (o) {
446
- this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete me[t], this.$emit("error", o);
374
+ this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete ye[t], this.$emit("error", o);
447
375
  }
448
376
  },
449
377
  /**
@@ -468,7 +396,7 @@ const qe = S(ut), pt = ["disabled"], mt = {
468
396
  },
469
397
  expose: []
470
398
  });
471
- function It(t, o) {
399
+ function $t(t, o) {
472
400
  const e = t.getElementsByTagName("title");
473
401
  if (e.length)
474
402
  e[0].textContent = o;
@@ -477,7 +405,7 @@ function It(t, o) {
477
405
  n.textContent = o, t.insertBefore(n, t.firstChild);
478
406
  }
479
407
  }
480
- function xt(t) {
408
+ function qt(t) {
481
409
  if (t.getIsPending)
482
410
  return t;
483
411
  let o = !0;
@@ -489,7 +417,7 @@ function xt(t) {
489
417
  );
490
418
  return e.getIsPending = () => o, e;
491
419
  }
492
- const Lt = /* @__PURE__ */ L({
420
+ const xt = /* @__PURE__ */ L({
493
421
  __name: "QIconSvg",
494
422
  props: {
495
423
  icon: {},
@@ -508,18 +436,203 @@ const Lt = /* @__PURE__ */ L({
508
436
  function i() {
509
437
  n("unloaded");
510
438
  }
511
- return (a, c) => (u(), D(y(qt), {
439
+ return (a, r) => (u(), x(m(wt), {
512
440
  class: C(["q-icon", "q-icon__svg", e.class]),
513
441
  src: e.bundle,
514
442
  symbol: e.icon,
515
- style: ie(l.value),
443
+ style: ue(l.value),
516
444
  onLoaded: s,
517
445
  onUnloaded: i
518
446
  }, null, 8, ["class", "src", "symbol", "style"]));
519
447
  }
520
- }), Y = S(_t), Ze = S(kt), Je = S($t), et = S(Lt), St = /* @__PURE__ */ L({
448
+ }), F = B(bt), Ye = B(gt), Ze = B(kt), Je = B(xt);
449
+ function It(t) {
450
+ return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
451
+ }
452
+ function Lt(t) {
453
+ const o = t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
454
+ if (o) {
455
+ const e = parseInt(o[1], 10), n = parseInt(o[2], 10), l = parseInt(o[3], 10);
456
+ return { r: e, g: n, b: l };
457
+ }
458
+ }
459
+ function et(t) {
460
+ if (It(t)) {
461
+ t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
462
+ const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
463
+ return { r: o, g: e, b: n };
464
+ } else {
465
+ const o = Lt(t);
466
+ if (o)
467
+ return o;
468
+ }
469
+ throw new Error("Invalid color format");
470
+ }
471
+ function St(t) {
472
+ const o = t.r / 255, e = t.g / 255, n = t.b / 255, l = Math.max(o, e, n), s = Math.min(o, e, n);
473
+ let i = 0, a;
474
+ const r = (l + s) / 2;
475
+ if (l === s)
476
+ i = a = 0;
477
+ else {
478
+ const f = l - s;
479
+ switch (a = r > 0.5 ? f / (2 - l - s) : f / (l + s), l) {
480
+ case o:
481
+ i = (e - n) / f + (e < n ? 6 : 0);
482
+ break;
483
+ case e:
484
+ i = (n - o) / f + 2;
485
+ break;
486
+ case n:
487
+ i = (o - e) / f + 4;
488
+ break;
489
+ }
490
+ i /= 6;
491
+ }
492
+ return {
493
+ h: Math.round(i * 360),
494
+ s: Math.round(a * 100),
495
+ l: Math.round(r * 100)
496
+ };
497
+ }
498
+ function Bt(t) {
499
+ return t > 50 ? "#000" : "#fff";
500
+ }
501
+ const Ct = /* @__PURE__ */ A("div", { class: "q-badge__underlay" }, null, -1), Tt = { class: "q-badge__content" }, Vt = {
502
+ remove: {
503
+ icon: "close"
504
+ }
505
+ }, Et = /* @__PURE__ */ L({
506
+ __name: "QBadge",
507
+ props: {
508
+ color: { default: "primary" },
509
+ variant: { default: "tonal" },
510
+ removable: { type: Boolean },
511
+ pill: { type: Boolean },
512
+ icons: { default: () => Vt }
513
+ },
514
+ emits: ["click:remove"],
515
+ setup(t, { emit: o }) {
516
+ const e = t, n = o, l = k(
517
+ () => ["primary", "info", "success", "warning", "danger"].includes(e.color)
518
+ ), s = k(() => {
519
+ const r = l.value ? `q-badge--${e.color}` : void 0;
520
+ return ["q-badge", `q-badge--${e.variant}`, r, { "q-badge--pill": e.pill }];
521
+ }), i = k(() => {
522
+ let r, f;
523
+ if (!l.value)
524
+ if (r = e.color, e.variant === "tonal")
525
+ f = e.color;
526
+ else {
527
+ const q = et(r), I = St(q);
528
+ f = Bt(I.l);
529
+ }
530
+ return {
531
+ "--q-badge-color": r,
532
+ "--q-badge-text-color": f
533
+ };
534
+ });
535
+ function a() {
536
+ n("click:remove");
537
+ }
538
+ return (r, f) => (u(), v("span", {
539
+ class: C(s.value),
540
+ role: "presentation",
541
+ style: ue(i.value)
542
+ }, [
543
+ Ct,
544
+ A("div", Tt, [
545
+ y(r.$slots, "default"),
546
+ e.removable ? (u(), x(m(de), {
547
+ key: 0,
548
+ class: "q-badge__remove",
549
+ borderless: "",
550
+ tabindex: "0",
551
+ onClick: a
552
+ }, {
553
+ default: _(() => [
554
+ z(m(F), W(ie(e.icons.remove)), null, 16)
555
+ ]),
556
+ _: 1
557
+ })) : $("", !0)
558
+ ])
559
+ ], 6));
560
+ }
561
+ }), Dt = B(Et), At = /* @__PURE__ */ L({
562
+ __name: "QButtonGroup",
563
+ props: {
564
+ disabled: { type: Boolean },
565
+ borderless: { type: Boolean },
566
+ elevated: { type: Boolean },
567
+ class: { default: void 0 }
568
+ },
569
+ setup(t) {
570
+ const o = t;
571
+ return Re({
572
+ QButton: {
573
+ bStyle: "secondary",
574
+ disabled: ze(o, "disabled"),
575
+ borderless: ze(o, "borderless"),
576
+ elevated: !1
577
+ }
578
+ }), (e, n) => (u(), v("div", {
579
+ class: C([
580
+ "q-btn-group",
581
+ {
582
+ "q-btn-group--elevated": o.elevated
583
+ },
584
+ o.class
585
+ ])
586
+ }, [
587
+ y(e.$slots, "default")
588
+ ], 2));
589
+ }
590
+ }), tt = B(At), zt = /* @__PURE__ */ L({
591
+ __name: "QButtonToggle",
592
+ props: /* @__PURE__ */ X({
593
+ options: {},
594
+ disabled: { type: Boolean },
595
+ borderless: { type: Boolean },
596
+ elevated: { type: Boolean },
597
+ required: { type: Boolean },
598
+ class: {}
599
+ }, {
600
+ modelValue: {},
601
+ modelModifiers: {}
602
+ }),
603
+ emits: ["update:modelValue"],
604
+ setup(t) {
605
+ const o = t, e = ee(t, "modelValue");
606
+ function n(l) {
607
+ e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
608
+ }
609
+ return (l, s) => (u(), x(m(tt), {
610
+ "b-style": "secondary",
611
+ class: C(o.class),
612
+ disabled: o.disabled,
613
+ borderless: o.borderless,
614
+ elevated: o.elevated
615
+ }, {
616
+ default: _(() => [
617
+ (u(!0), v(te, null, we(o.options, (i) => (u(), x(m(de), {
618
+ key: i.key,
619
+ title: i.title,
620
+ label: i.label,
621
+ active: e.value === i.key,
622
+ onClick: () => n(i)
623
+ }, {
624
+ default: _(() => [
625
+ y(l.$slots, i.key)
626
+ ]),
627
+ _: 2
628
+ }, 1032, ["title", "label", "active", "onClick"]))), 128))
629
+ ]),
630
+ _: 3
631
+ }, 8, ["class", "disabled", "borderless", "elevated"]));
632
+ }
633
+ }), Qt = B(zt), Mt = /* @__PURE__ */ L({
521
634
  __name: "QList",
522
- props: /* @__PURE__ */ Z({
635
+ props: /* @__PURE__ */ X({
523
636
  highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
524
637
  items: {},
525
638
  groups: { default: () => [] },
@@ -535,142 +648,142 @@ const Lt = /* @__PURE__ */ L({
535
648
  }),
536
649
  emits: ["update:modelValue"],
537
650
  setup(t, { expose: o }) {
538
- const e = t, n = ne(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
539
- (f) => e.items.some((g) => g.group === f.id)
651
+ const e = t, n = ee(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
652
+ (p) => e.items.some((g) => g.group === p.id)
540
653
  ) : [{ id: "", title: "" }]), a = V(null);
541
- function c(f) {
542
- n.value = f;
654
+ function r(p) {
655
+ n.value = p;
543
656
  }
544
- function v() {
657
+ function f() {
545
658
  l.value = !0;
546
659
  }
547
- function $() {
660
+ function q() {
548
661
  l.value = !1;
549
662
  }
550
- function x(f) {
551
- var p;
552
- if ((p = a.value) != null && p.contains(f.relatedTarget))
663
+ function I(p) {
664
+ var h;
665
+ if ((h = a.value) != null && h.contains(p.relatedTarget))
553
666
  return;
554
667
  let g;
555
- n.value ? g = e.items.findIndex((F) => F[e.itemValue] === n.value) : g = H();
556
- const d = l.value;
557
- I(g, d);
668
+ n.value ? g = e.items.findIndex((U) => U[e.itemValue] === n.value) : g = G();
669
+ const c = l.value;
670
+ S(g, c);
558
671
  }
559
- function z(f) {
560
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
672
+ function M(p) {
673
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key) && p.preventDefault(), p.key) {
561
674
  case "ArrowDown":
562
- T("next");
675
+ E("next");
563
676
  break;
564
677
  case "ArrowUp":
565
- T("prev");
678
+ E("prev");
566
679
  break;
567
680
  case "Home":
568
- T("first");
681
+ E("first");
569
682
  break;
570
683
  case "End":
571
- T("last");
684
+ E("last");
572
685
  break;
573
686
  }
574
687
  }
575
- function T(f) {
576
- switch (f) {
688
+ function E(p) {
689
+ switch (p) {
577
690
  case "next":
578
691
  case "prev":
579
- I(P(f));
692
+ S(H(p));
580
693
  break;
581
694
  case "first":
582
- I(H());
695
+ S(G());
583
696
  break;
584
697
  case "last":
585
- I(M());
698
+ S(O());
586
699
  break;
587
700
  }
588
701
  }
589
- function I(f, g = !1) {
590
- var p;
591
- (p = B()[f]) == null || p.focus({ preventScroll: g });
702
+ function S(p, g = !1) {
703
+ var h;
704
+ (h = T()[p]) == null || h.focus({ preventScroll: g });
592
705
  }
593
- function B() {
706
+ function T() {
594
707
  var g;
595
- const f = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
596
- return f ? Array.from(f) : [];
708
+ const p = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
709
+ return p ? Array.from(p) : [];
597
710
  }
598
- function G(f) {
599
- return B()[f];
711
+ function Y(p) {
712
+ return T()[p];
600
713
  }
601
- function J() {
602
- return B().indexOf(document.activeElement);
714
+ function oe() {
715
+ return T().indexOf(document.activeElement);
603
716
  }
604
- function H() {
605
- const f = B(), g = f.find((d) => A(d));
606
- return g ? f.indexOf(g) : -1;
607
- }
608
- function M() {
609
- const f = B(), g = [...f].reverse().find((d) => A(d));
610
- return g ? f.indexOf(g) : -1;
611
- }
612
- function ee(f, g, d) {
613
- return g === "prev" && f === 0 || g === "next" && f === d.length - 1;
614
- }
615
- function P(f) {
616
- const g = J();
617
- return te(g, f);
618
- }
619
- function te(f, g) {
620
- const d = B();
621
- if (ee(f, g, d))
622
- return f;
623
- let p = f + (g === "next" ? 1 : -1);
624
- for (; !A(d[p]); ) {
625
- if (ee(p, g, d))
626
- return f;
627
- p += g === "next" ? 1 : -1;
717
+ function G() {
718
+ const p = T(), g = p.find((c) => Q(c));
719
+ return g ? p.indexOf(g) : -1;
720
+ }
721
+ function O() {
722
+ const p = T(), g = [...p].reverse().find((c) => Q(c));
723
+ return g ? p.indexOf(g) : -1;
724
+ }
725
+ function ne(p, g, c) {
726
+ return g === "prev" && p === 0 || g === "next" && p === c.length - 1;
727
+ }
728
+ function H(p) {
729
+ const g = oe();
730
+ return le(g, p);
731
+ }
732
+ function le(p, g) {
733
+ const c = T();
734
+ if (ne(p, g, c))
735
+ return p;
736
+ let h = p + (g === "next" ? 1 : -1);
737
+ for (; !Q(c[h]); ) {
738
+ if (ne(h, g, c))
739
+ return p;
740
+ h += g === "next" ? 1 : -1;
628
741
  }
629
- return p;
742
+ return h;
630
743
  }
631
- function A(f) {
632
- return f.tabIndex === -2;
744
+ function Q(p) {
745
+ return p.tabIndex === -2;
633
746
  }
634
- function W(f) {
635
- return f ? e.items.filter((g) => g.group === f) : e.items;
747
+ function R(p) {
748
+ return p ? e.items.filter((g) => g.group === p) : e.items;
636
749
  }
637
750
  return o({
638
- focusItem: I,
639
- getItem: G,
640
- getAdjacentItemIndex: te,
641
- getFirstFocusableItemIndex: H,
642
- getLastFocusableItemIndex: M
643
- }), (f, g) => (u(), D(Ke(s.value), {
751
+ focusItem: S,
752
+ getItem: Y,
753
+ getAdjacentItemIndex: le,
754
+ getFirstFocusableItemIndex: G,
755
+ getLastFocusableItemIndex: O
756
+ }), (p, g) => (u(), x(Ke(s.value), {
644
757
  ref_key: "listRef",
645
758
  ref: a,
646
759
  class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
647
760
  role: "listbox",
648
761
  tabindex: e.disabled ? -1 : 0,
649
- onFocus: x,
650
- onMousedown: v,
651
- onMouseup: $,
652
- onKeydown: z
762
+ onFocus: I,
763
+ onMousedown: f,
764
+ onMouseup: q,
765
+ onKeydown: M
653
766
  }, {
654
- default: w(() => [
655
- (u(!0), m(se, null, xe(i.value, (d) => (u(), D(y(ot), {
656
- key: d.id,
657
- id: d.id,
658
- title: i.value.length === 1 ? void 0 : d.title
767
+ default: _(() => [
768
+ (u(!0), v(te, null, we(i.value, (c) => (u(), x(m(nt), {
769
+ key: c.id,
770
+ id: c.id,
771
+ title: i.value.length === 1 ? void 0 : c.title
659
772
  }, {
660
- default: w(() => [
661
- (u(!0), m(se, null, xe(W(d.id), (p) => (u(), D(y(tt), {
662
- key: p[e.itemValue],
663
- value: p[e.itemValue],
664
- label: p[e.itemLabel],
665
- description: p.description,
666
- icon: p.icon,
667
- disabled: e.disabled || d.disabled || p.disabled,
668
- highlighted: e.highlighted === p[e.itemValue],
669
- selected: n.value === p[e.itemValue],
670
- onSelect: c
773
+ default: _(() => [
774
+ (u(!0), v(te, null, we(R(c.id), (h) => (u(), x(m(ot), {
775
+ key: h[e.itemValue],
776
+ value: h[e.itemValue],
777
+ label: h[e.itemLabel],
778
+ description: h.description,
779
+ icon: h.icon,
780
+ disabled: e.disabled || c.disabled || h.disabled,
781
+ highlighted: e.highlighted === h[e.itemValue],
782
+ selected: n.value === h[e.itemValue],
783
+ onSelect: r
671
784
  }, {
672
- default: w(() => [
673
- h(f.$slots, "item", { item: p })
785
+ default: _(() => [
786
+ y(p.$slots, "item", { item: h })
674
787
  ]),
675
788
  _: 2
676
789
  }, 1032, ["value", "label", "description", "icon", "disabled", "highlighted", "selected"]))), 128))
@@ -682,21 +795,21 @@ const Lt = /* @__PURE__ */ L({
682
795
  }, 40, ["class", "tabindex"]));
683
796
  }
684
797
  });
685
- let Bt = 0;
686
- function ye(t) {
687
- return t || `uid-${++Bt}`;
798
+ let Ft = 0;
799
+ function ve(t) {
800
+ return t || `uid-${++Ft}`;
688
801
  }
689
- const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = { class: "q-list-item__container" }, Tt = { class: "q-list-item__content" }, Et = {
802
+ const Ot = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ut = { class: "q-list-item__container" }, Pt = { class: "q-list-item__content" }, Nt = {
690
803
  key: 0,
691
804
  class: "q-list-item__description"
692
- }, Dt = { class: "q-list-item__check-container" }, At = {
805
+ }, Ht = { class: "q-list-item__check-container" }, Kt = {
693
806
  check: {
694
807
  icon: "check"
695
808
  },
696
809
  description: {
697
810
  icon: "information-outline"
698
811
  }
699
- }, zt = /* @__PURE__ */ L({
812
+ }, jt = /* @__PURE__ */ L({
700
813
  __name: "QListItem",
701
814
  props: {
702
815
  value: { type: [String, Number, Boolean, Symbol] },
@@ -704,21 +817,21 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = {
704
817
  icon: { default: void 0 },
705
818
  selected: { type: Boolean },
706
819
  highlighted: { type: Boolean },
707
- icons: { default: () => At },
820
+ icons: { default: () => Kt },
708
821
  disabled: { type: Boolean },
709
822
  description: { default: void 0 }
710
823
  },
711
824
  emits: ["select"],
712
825
  setup(t, { emit: o }) {
713
- const e = t, n = o, l = ye();
826
+ const e = t, n = o, l = ve();
714
827
  function s() {
715
828
  e.disabled || n("select", e.value);
716
829
  }
717
830
  function i(a) {
718
831
  a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
719
832
  }
720
- return (a, c) => (u(), m("li", {
721
- id: y(l),
833
+ return (a, r) => (u(), v("li", {
834
+ id: m(l),
722
835
  "data-key": e.value,
723
836
  role: "option",
724
837
  tabindex: e.disabled ? void 0 : -2,
@@ -733,107 +846,107 @@ const Vt = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Ct = {
733
846
  "aria-label": e.label,
734
847
  "aria-selected": e.disabled ? void 0 : e.selected,
735
848
  onKeydown: i,
736
- onClick: ce(s, ["stop", "prevent"])
849
+ onClick: pe(s, ["stop", "prevent"])
737
850
  }, [
738
- K("div", Ct, [
739
- K("div", Tt, [
740
- h(a.$slots, "default", {}, () => [
741
- e.icon ? (u(), D(y(Y), ae(fe({ key: 0 }, e.icon)), null, 16)) : q("", !0),
742
- ve(" " + j(e.label), 1)
851
+ A("div", Ut, [
852
+ A("div", Pt, [
853
+ y(a.$slots, "default", {}, () => [
854
+ e.icon ? (u(), x(m(F), W(re({ key: 0 }, e.icon)), null, 16)) : $("", !0),
855
+ me(" " + N(e.label), 1)
743
856
  ])
744
857
  ]),
745
- e.description ? (u(), m("div", Et, [
746
- Q(y(Y), ae(re(e.icons.description)), null, 16),
747
- K("span", null, j(e.description), 1)
748
- ])) : q("", !0)
858
+ e.description ? (u(), v("div", Nt, [
859
+ z(m(F), W(ie(e.icons.description)), null, 16),
860
+ A("span", null, N(e.description), 1)
861
+ ])) : $("", !0)
749
862
  ]),
750
- K("div", Dt, [
751
- e.selected ? (u(), D(y(Y), fe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
863
+ A("div", Ht, [
864
+ e.selected ? (u(), x(m(F), re({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : $("", !0)
752
865
  ])
753
- ], 42, Vt));
866
+ ], 42, Ot));
754
867
  }
755
- }), Qt = ["data-key", "aria-labelledby"], Mt = ["id"], Ft = /* @__PURE__ */ L({
868
+ }), Gt = ["data-key", "aria-labelledby"], Rt = ["id"], Wt = /* @__PURE__ */ L({
756
869
  __name: "QListItemGroup",
757
870
  props: {
758
871
  id: {},
759
872
  title: { default: "" }
760
873
  },
761
874
  setup(t) {
762
- const o = t, e = ye();
763
- return (n, l) => (u(), m("ul", {
875
+ const o = t, e = ve();
876
+ return (n, l) => (u(), v("ul", {
764
877
  class: "q-list-item-group",
765
878
  role: "group",
766
879
  "data-key": o.id,
767
- "aria-labelledby": o.title ? y(e) : void 0
880
+ "aria-labelledby": o.title ? m(e) : void 0
768
881
  }, [
769
- o.title ? (u(), m("li", {
882
+ o.title ? (u(), v("li", {
770
883
  key: 0,
771
- id: y(e),
884
+ id: m(e),
772
885
  class: "q-list-item-group__title",
773
886
  role: "presentation"
774
- }, j(o.title), 9, Mt)) : q("", !0),
775
- h(n.$slots, "default")
776
- ], 8, Qt));
887
+ }, N(o.title), 9, Rt)) : $("", !0),
888
+ y(n.$slots, "default")
889
+ ], 8, Gt));
777
890
  }
778
- }), Ce = S(St), tt = S(zt), ot = S(Ft), ke = 8;
779
- function Ot(t, o, e, n) {
780
- const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Pt(i, a, s, l), $ = Kt(i, a, v), x = Nt($, v, l), z = Ut(x, a, v);
781
- let T;
891
+ }), Te = B(Mt), ot = B(jt), nt = B(Wt), ke = 8;
892
+ function Xt(t, o, e, n) {
893
+ const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), r = e == null ? void 0 : e.getBoundingClientRect(), f = Yt(i, a, s, l), q = to(i, a, f), I = Jt(q, f, l), M = Zt(I, a, f);
894
+ let E;
782
895
  if (n != null && n.arrow) {
783
- if (!c)
896
+ if (!r)
784
897
  throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
785
- T = Ht(z, i, a, c, v);
898
+ E = eo(M, i, a, r, f);
786
899
  }
787
- return { overlayCoords: z, arrowCoords: T, placement: v };
900
+ return { overlayCoords: M, arrowCoords: E, placement: f };
788
901
  }
789
- function Pt(t, o, e, n) {
902
+ function Yt(t, o, e, n) {
790
903
  const l = Fe(t, o, e, n);
791
904
  if (Oe(l)) {
792
- const s = be(e), a = {
905
+ const s = ge(e), a = {
793
906
  top: "bottom",
794
907
  bottom: "top",
795
908
  left: "right",
796
909
  right: "left"
797
- }[s], c = Fe(
910
+ }[s], r = Fe(
798
911
  t,
799
912
  o,
800
913
  a,
801
914
  n
802
915
  );
803
- if (Oe(c))
916
+ if (Oe(r))
804
917
  return e;
805
- const v = Wt(e);
806
- return v ? `${a}-${v}` : a;
918
+ const f = lo(e);
919
+ return f ? `${a}-${f}` : a;
807
920
  }
808
921
  return e;
809
922
  }
810
- function Ut(t, o, e) {
811
- const n = we(e), l = (i, a, c) => Math.min(Math.max(i, a), c), s = { ...t };
923
+ function Zt(t, o, e) {
924
+ const n = $e(e), l = (i, a, r) => Math.min(Math.max(i, a), r), s = { ...t };
812
925
  return n === "x" ? s.x = l(t.x, ke, window.innerWidth - o.width - ke) : s.y = l(t.y, ke, window.innerHeight - o.height - ke), s;
813
926
  }
814
- function Nt(t, o, e) {
815
- const n = be(o);
927
+ function Jt(t, o, e) {
928
+ const n = ge(o);
816
929
  return {
817
930
  x: t.x + (n === "left" ? -e : n === "right" ? e : 0),
818
931
  y: t.y + (n === "top" ? -e : n === "bottom" ? e : 0)
819
932
  };
820
933
  }
821
- function Ht(t, o, e, n, l) {
822
- if (we(l) === "y") {
823
- const i = o.top + o.height / 2, a = t.y + e.height / 2, c = a - i, v = e.height / 2 - c - n.height / 2 + 2;
824
- if (v > 0 && v < e.height - n.height)
934
+ function eo(t, o, e, n, l) {
935
+ if ($e(l) === "y") {
936
+ const i = o.top + o.height / 2, a = t.y + e.height / 2, r = a - i, f = e.height / 2 - r - n.height / 2 + 2;
937
+ if (f > 0 && f < e.height - n.height)
825
938
  return {
826
- y: v
939
+ y: f
827
940
  };
828
941
  } else {
829
- const i = o.left + o.width / 2, a = t.x + e.width / 2, c = a - i, v = e.width / 2 - c - n.width / 2 + 2;
830
- if (v > 0 && v < e.width - n.width)
942
+ const i = o.left + o.width / 2, a = t.x + e.width / 2, r = a - i, f = e.width / 2 - r - n.width / 2 + 2;
943
+ if (f > 0 && f < e.width - n.width)
831
944
  return {
832
- x: v
945
+ x: f
833
946
  };
834
947
  }
835
948
  }
836
- function Kt(t, o, e) {
949
+ function to(t, o, e) {
837
950
  const [n, l] = e.split("-"), s = t.x + t.width / 2 - o.width / 2, i = t.y + t.height / 2 - o.height / 2;
838
951
  let a;
839
952
  switch (n) {
@@ -854,13 +967,13 @@ function Kt(t, o, e) {
854
967
  }
855
968
  if (!l)
856
969
  return a;
857
- const v = we(e) === "y" ? "height" : "width", $ = we(e), x = t[v] / 2 - o[v] / 2;
970
+ const f = $e(e) === "y" ? "height" : "width", q = $e(e), I = t[f] / 2 - o[f] / 2;
858
971
  switch (l) {
859
972
  case "start":
860
- a[$] -= x;
973
+ a[q] -= I;
861
974
  break;
862
975
  case "end":
863
- a[$] += x;
976
+ a[q] += I;
864
977
  break;
865
978
  default:
866
979
  throw new Error(`[Quidgest UI] Invalid alignment value: ${l}`);
@@ -868,7 +981,7 @@ function Kt(t, o, e) {
868
981
  return a;
869
982
  }
870
983
  function Fe(t, o, e, n) {
871
- const l = be(e);
984
+ const l = ge(e);
872
985
  let s = 0;
873
986
  switch (l) {
874
987
  case "top":
@@ -888,34 +1001,34 @@ function Fe(t, o, e, n) {
888
1001
  }
889
1002
  return s;
890
1003
  }
891
- function jt(t) {
1004
+ function oo(t) {
892
1005
  return t === "x" ? "y" : "x";
893
1006
  }
894
- function Gt(t) {
895
- const o = be(t);
1007
+ function no(t) {
1008
+ const o = ge(t);
896
1009
  return ["left", "right"].includes(o) ? "x" : "y";
897
1010
  }
898
- function we(t) {
899
- return jt(Gt(t));
1011
+ function $e(t) {
1012
+ return oo(no(t));
900
1013
  }
901
- function be(t) {
1014
+ function ge(t) {
902
1015
  const [o] = t.split("-");
903
1016
  return o;
904
1017
  }
905
- function Wt(t) {
1018
+ function lo(t) {
906
1019
  const [, o] = t.split("-");
907
1020
  return o;
908
1021
  }
909
1022
  function Oe(t) {
910
1023
  return t < 0;
911
1024
  }
912
- function Rt(t) {
1025
+ function ao(t) {
913
1026
  return typeof t == "string" ? document.querySelector(t) : t;
914
1027
  }
915
- const Xt = ["role"], Yt = /* @__PURE__ */ L({
1028
+ const so = ["role"], io = /* @__PURE__ */ L({
916
1029
  inheritAttrs: !1,
917
1030
  __name: "QOverlay",
918
- props: /* @__PURE__ */ Z({
1031
+ props: /* @__PURE__ */ X({
919
1032
  anchor: { default: void 0 },
920
1033
  appearance: { default: "regular" },
921
1034
  arrow: { type: Boolean },
@@ -937,11 +1050,11 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
937
1050
  modelValue: { type: Boolean },
938
1051
  modelModifiers: {}
939
1052
  }),
940
- emits: /* @__PURE__ */ Z(["enter", "leave"], ["update:modelValue"]),
1053
+ emits: /* @__PURE__ */ X(["enter", "leave"], ["update:modelValue"]),
941
1054
  setup(t, { emit: o }) {
942
- const e = t, n = o, l = ne(t, "modelValue"), s = k(() => [
1055
+ const e = t, n = o, l = ee(t, "modelValue"), s = k(() => [
943
1056
  "q-overlay",
944
- `q-overlay--${be(a.placement)}`,
1057
+ `q-overlay--${ge(a.placement)}`,
945
1058
  {
946
1059
  "q-overlay--independent": e.anchor === void 0,
947
1060
  "q-overlay--inverted": e.appearance === "inverted"
@@ -953,202 +1066,202 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
953
1066
  left: 0,
954
1067
  width: 0,
955
1068
  placement: e.placement
956
- }), c = Qe({
1069
+ }), r = Qe({
957
1070
  top: void 0,
958
1071
  left: void 0,
959
1072
  hidden: !0
960
- }), v = k(() => a.top !== 0 && a.left !== 0);
961
- R(l, () => a.animating = !0);
962
- const $ = k(() => {
1073
+ }), f = k(() => a.top !== 0 && a.left !== 0);
1074
+ Z(l, () => a.animating = !0);
1075
+ const q = k(() => {
963
1076
  if (e.anchor === void 0)
964
1077
  return;
965
- const b = A(), de = e.width === "anchor", N = de ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
1078
+ const b = Q(), ce = e.width === "anchor", j = ce ? b == null ? void 0 : b.getBoundingClientRect().width : void 0;
966
1079
  return {
967
1080
  top: `${a.top}px`,
968
1081
  left: `${a.left}px`,
969
- width: N !== void 0 ? `${N}px` : void 0
1082
+ width: j !== void 0 ? `${j}px` : void 0
970
1083
  };
971
- }), x = k(() => {
1084
+ }), I = k(() => {
972
1085
  if (e.arrow)
973
1086
  return {
974
- top: c.top !== void 0 ? `${c.top}px` : void 0,
975
- left: c.left !== void 0 ? `${c.left}px` : void 0,
976
- opacity: c.hidden ? 0 : 1
1087
+ top: r.top !== void 0 ? `${r.top}px` : void 0,
1088
+ left: r.left !== void 0 ? `${r.left}px` : void 0,
1089
+ opacity: r.hidden ? 0 : 1
977
1090
  };
978
- }), z = V(null), T = V(null);
979
- function I() {
980
- const b = A();
981
- if (!b || !T.value)
1091
+ }), M = V(null), E = V(null);
1092
+ function S() {
1093
+ const b = Q();
1094
+ if (!b || !E.value)
982
1095
  return;
983
- const de = {
1096
+ const ce = {
984
1097
  placement: e.placement,
985
1098
  width: e.width,
986
1099
  offset: e.offset,
987
1100
  arrow: e.arrow
988
- }, N = Ot(
1101
+ }, j = Xt(
989
1102
  b,
990
- T.value,
991
- (z == null ? void 0 : z.value) ?? void 0,
992
- de
1103
+ E.value,
1104
+ (M == null ? void 0 : M.value) ?? void 0,
1105
+ ce
993
1106
  );
994
- a.left = N.overlayCoords.x, a.top = N.overlayCoords.y, a.placement = N.placement, c.hidden = N.arrowCoords === void 0, N.arrowCoords && (c.top = N.arrowCoords.y, c.left = N.arrowCoords.x);
1107
+ a.left = j.overlayCoords.x, a.top = j.overlayCoords.y, a.placement = j.placement, r.hidden = j.arrowCoords === void 0, j.arrowCoords && (r.top = j.arrowCoords.y, r.left = j.arrowCoords.x);
995
1108
  }
996
- R(
1109
+ Z(
997
1110
  () => e.placement,
998
- () => X(I)
1111
+ () => J(S)
999
1112
  );
1000
- let B;
1001
- function G() {
1002
- H(0);
1113
+ let T;
1114
+ function Y() {
1115
+ G(0);
1003
1116
  }
1004
- function J() {
1005
- H(e.delay);
1117
+ function oe() {
1118
+ G(e.delay);
1006
1119
  }
1007
- function H(b) {
1008
- B || (B = window.setTimeout(() => {
1120
+ function G(b) {
1121
+ T || (T = window.setTimeout(() => {
1009
1122
  l.value = !0;
1010
1123
  }, b));
1011
1124
  }
1012
- function M() {
1013
- if (clearTimeout(B), B = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1014
- const b = A();
1125
+ function O() {
1126
+ if (clearTimeout(T), T = void 0, l.value = !1, e.anchor && e.trigger === "click") {
1127
+ const b = Q();
1015
1128
  b == null || b.focus();
1016
1129
  }
1017
1130
  }
1018
- R(v, () => X(ee));
1019
- function ee() {
1131
+ Z(f, () => J(ne));
1132
+ function ne() {
1020
1133
  n("enter");
1021
1134
  }
1022
- let P;
1023
- function te() {
1024
- window.clearTimeout(P), P = window.setTimeout(() => a.animating = !1, 200), n("leave");
1135
+ let H;
1136
+ function le() {
1137
+ window.clearTimeout(H), H = window.setTimeout(() => a.animating = !1, 200), n("leave");
1025
1138
  }
1026
- function A() {
1027
- return e.anchor ? Rt(e.anchor) : null;
1139
+ function Q() {
1140
+ return e.anchor ? ao(e.anchor) : null;
1028
1141
  }
1029
- let W;
1030
- function f() {
1031
- const b = A();
1142
+ let R;
1143
+ function p() {
1144
+ const b = Q();
1032
1145
  if (b)
1033
- switch (W = new MutationObserver(I), W.observe(b, {
1146
+ switch (R = new MutationObserver(S), R.observe(b, {
1034
1147
  attributes: !1,
1035
1148
  childList: !0,
1036
1149
  characterData: !0,
1037
1150
  subtree: !0
1038
1151
  }), e.trigger) {
1039
1152
  case "click":
1040
- b.addEventListener("click", G);
1153
+ b.addEventListener("click", Y);
1041
1154
  break;
1042
1155
  case "hover":
1043
- b.addEventListener("mouseenter", J), b.addEventListener("mouseleave", M), b.addEventListener("focusin", G), b.addEventListener("focusout", M);
1156
+ b.addEventListener("mouseenter", oe), b.addEventListener("mouseleave", O), b.addEventListener("focusin", Y), b.addEventListener("focusout", O);
1044
1157
  break;
1045
1158
  }
1046
1159
  }
1047
1160
  function g() {
1048
- const b = A();
1161
+ const b = Q();
1049
1162
  if (b)
1050
- switch (W == null || W.disconnect(), e.trigger) {
1163
+ switch (R == null || R.disconnect(), e.trigger) {
1051
1164
  case "click":
1052
- b.removeEventListener("click", G);
1165
+ b.removeEventListener("click", Y);
1053
1166
  break;
1054
1167
  case "hover":
1055
- b.removeEventListener("mouseenter", J), b.removeEventListener("mouseleave", M), b.removeEventListener("focusin", G), b.removeEventListener("focusout", M);
1168
+ b.removeEventListener("mouseenter", oe), b.removeEventListener("mouseleave", O), b.removeEventListener("focusin", Y), b.removeEventListener("focusout", O);
1056
1169
  break;
1057
1170
  }
1058
1171
  }
1059
- function d() {
1060
- window.addEventListener("resize", I), e.scrollLock || window.addEventListener("scroll", I);
1172
+ function c() {
1173
+ window.addEventListener("resize", S), e.scrollLock || window.addEventListener("scroll", S);
1061
1174
  }
1062
- function p() {
1063
- window.removeEventListener("resize", I), e.scrollLock || window.removeEventListener("scroll", I);
1175
+ function h() {
1176
+ window.removeEventListener("resize", S), e.scrollLock || window.removeEventListener("scroll", S);
1064
1177
  }
1065
- let F;
1066
- function oe() {
1067
- A() ? (I(), F = window.setTimeout(oe, 100)) : M();
1178
+ let U;
1179
+ function ae() {
1180
+ Q() ? (S(), U = window.setTimeout(ae, 100)) : O();
1068
1181
  }
1069
- function U() {
1070
- d(), e.spy ? oe() : I(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && X(() => {
1182
+ function K() {
1183
+ c(), e.spy ? ae() : S(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && J(() => {
1071
1184
  var b;
1072
- return (b = T.value) == null ? void 0 : b.focus();
1185
+ return (b = E.value) == null ? void 0 : b.focus();
1073
1186
  });
1074
1187
  }
1075
- function le() {
1076
- p(), e.spy && (clearTimeout(F), F = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1188
+ function se() {
1189
+ h(), e.spy && (clearTimeout(U), U = void 0), e.scrollLock && document.body.classList.remove("no-scroll"), a.top = 0, a.left = 0;
1077
1190
  }
1078
1191
  function _e() {
1079
- e.persistent || M();
1192
+ e.persistent || O();
1080
1193
  }
1081
1194
  return je(() => {
1082
- X(f);
1083
- }), lt(() => {
1084
- g(), le();
1085
- }), R(
1195
+ J(p);
1196
+ }), at(() => {
1197
+ g(), se();
1198
+ }), Z(
1086
1199
  l,
1087
1200
  (b) => {
1088
- X(() => b ? U() : le());
1201
+ J(() => b ? K() : se());
1089
1202
  },
1090
1203
  { immediate: !0 }
1091
- ), (b, de) => (u(), D(at, {
1204
+ ), (b, ce) => (u(), x(st, {
1092
1205
  disabled: !l.value && !a.animating || e.inline,
1093
1206
  to: e.attach
1094
1207
  }, [
1095
- i.value ? (u(), m("div", {
1208
+ i.value ? (u(), v("div", {
1096
1209
  key: 0,
1097
1210
  class: C([
1098
1211
  "q-overlay__underlay",
1099
1212
  { "q-overlay__underlay--blur": e.backdropBlur }
1100
1213
  ])
1101
- }, null, 2)) : q("", !0),
1102
- Q(st, {
1214
+ }, null, 2)) : $("", !0),
1215
+ z(it, {
1103
1216
  name: e.transition,
1104
1217
  appear: "",
1105
- onLeave: te
1218
+ onLeave: le
1106
1219
  }, {
1107
- default: w(() => [
1108
- l.value ? (u(), m("div", {
1220
+ default: _(() => [
1221
+ l.value ? (u(), v("div", {
1109
1222
  key: 0,
1110
1223
  class: C(s.value),
1111
- style: ie($.value)
1224
+ style: ue(q.value)
1112
1225
  }, [
1113
- K("div", fe({
1226
+ A("div", re({
1114
1227
  class: "q-overlay__content",
1115
1228
  ref_key: "overlayRef",
1116
- ref: T,
1229
+ ref: E,
1117
1230
  tabindex: "-1",
1118
1231
  role: i.value ? "dialog" : void 0
1119
1232
  }, b.$attrs, {
1120
- onKeydown: it(_e, ["escape"]),
1233
+ onKeydown: rt(_e, ["escape"]),
1121
1234
  onBlur: _e
1122
1235
  }), [
1123
- e.arrow ? (u(), m("div", {
1236
+ e.arrow ? (u(), v("div", {
1124
1237
  key: 0,
1125
1238
  ref_key: "arrowRef",
1126
- ref: z,
1239
+ ref: M,
1127
1240
  role: "presentation",
1128
1241
  class: "q-overlay__arrow",
1129
- style: ie(x.value)
1130
- }, null, 4)) : q("", !0),
1131
- h(b.$slots, "default")
1132
- ], 16, Xt)
1133
- ], 6)) : q("", !0)
1242
+ style: ue(I.value)
1243
+ }, null, 4)) : $("", !0),
1244
+ y(b.$slots, "default")
1245
+ ], 16, so)
1246
+ ], 6)) : $("", !0)
1134
1247
  ]),
1135
1248
  _: 3
1136
1249
  }, 8, ["name"])
1137
1250
  ], 8, ["disabled", "to"]));
1138
1251
  }
1139
- }), ge = S(Yt), Zt = ["id"], Jt = {
1252
+ }), he = B(io), ro = ["id"], uo = {
1140
1253
  key: 0,
1141
1254
  class: "q-field__label"
1142
- }, eo = ["for"], to = {
1255
+ }, co = ["for"], fo = {
1143
1256
  key: 0,
1144
1257
  class: "q-field__prepend"
1145
- }, oo = {
1258
+ }, po = {
1146
1259
  key: 1,
1147
1260
  class: "q-field__append"
1148
- }, no = {
1261
+ }, mo = {
1149
1262
  key: 1,
1150
1263
  class: "q-field__extras"
1151
- }, lo = /* @__PURE__ */ L({
1264
+ }, vo = /* @__PURE__ */ L({
1152
1265
  inheritAttrs: !1,
1153
1266
  __name: "QField",
1154
1267
  props: {
@@ -1162,11 +1275,11 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1162
1275
  class: { default: void 0 }
1163
1276
  },
1164
1277
  setup(t, { expose: o }) {
1165
- const e = t, n = ye(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
1278
+ const e = t, n = ve(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
1166
1279
  return o({
1167
1280
  fieldRef: l
1168
- }), (i, a) => (u(), m("div", {
1169
- id: y(n),
1281
+ }), (i, a) => (u(), v("div", {
1282
+ id: m(n),
1170
1283
  class: C([
1171
1284
  "q-field",
1172
1285
  `q-field--${e.size}`,
@@ -1178,37 +1291,37 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1178
1291
  e.class
1179
1292
  ])
1180
1293
  }, [
1181
- e.label ? (u(), m("div", Jt, [
1182
- h(i.$slots, "label.prepend"),
1183
- K("label", {
1294
+ e.label ? (u(), v("div", uo, [
1295
+ y(i.$slots, "label.prepend"),
1296
+ A("label", {
1184
1297
  for: e.for
1185
- }, j(e.label), 9, eo),
1186
- h(i.$slots, "label.append")
1187
- ])) : q("", !0),
1188
- h(i.$slots, "control", {}, () => [
1189
- K("div", fe({
1298
+ }, N(e.label), 9, co),
1299
+ y(i.$slots, "label.append")
1300
+ ])) : $("", !0),
1301
+ y(i.$slots, "control", {}, () => [
1302
+ A("div", re({
1190
1303
  class: "q-field__control",
1191
1304
  ref_key: "fieldRef",
1192
1305
  ref: l
1193
1306
  }, i.$attrs), [
1194
- i.$slots.prepend ? (u(), m("div", to, [
1195
- h(i.$slots, "prepend")
1196
- ])) : q("", !0),
1197
- h(i.$slots, "default"),
1198
- i.$slots.append ? (u(), m("div", oo, [
1199
- h(i.$slots, "append")
1200
- ])) : q("", !0)
1307
+ i.$slots.prepend ? (u(), v("div", fo, [
1308
+ y(i.$slots, "prepend")
1309
+ ])) : $("", !0),
1310
+ y(i.$slots, "default"),
1311
+ i.$slots.append ? (u(), v("div", po, [
1312
+ y(i.$slots, "append")
1313
+ ])) : $("", !0)
1201
1314
  ], 16)
1202
1315
  ]),
1203
- i.$slots.extras ? (u(), m("div", no, [
1204
- h(i.$slots, "extras")
1205
- ])) : q("", !0)
1206
- ], 10, Zt));
1316
+ i.$slots.extras ? (u(), v("div", mo, [
1317
+ y(i.$slots, "extras")
1318
+ ])) : $("", !0)
1319
+ ], 10, ro));
1207
1320
  }
1208
- }), Ie = S(lo), ao = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], so = /* @__PURE__ */ L({
1321
+ }), Ie = B(vo), ho = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], yo = /* @__PURE__ */ L({
1209
1322
  inheritAttrs: !1,
1210
1323
  __name: "QTextField",
1211
- props: /* @__PURE__ */ Z({
1324
+ props: /* @__PURE__ */ X({
1212
1325
  id: { default: void 0 },
1213
1326
  placeholder: { default: "" },
1214
1327
  label: { default: "" },
@@ -1226,38 +1339,38 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1226
1339
  }),
1227
1340
  emits: ["update:modelValue"],
1228
1341
  setup(t, { expose: o }) {
1229
- const e = t, n = ne(t, "modelValue"), l = ye(e.id), s = V(null), i = V(null), a = k(
1342
+ const e = t, n = ee(t, "modelValue"), l = ve(e.id), s = V(null), i = V(null), a = k(
1230
1343
  () => e.readonly || e.disabled ? "" : e.placeholder
1231
1344
  );
1232
1345
  return o({
1233
1346
  fieldRef: k(() => {
1234
- var c;
1235
- return (c = s.value) == null ? void 0 : c.fieldRef;
1347
+ var r;
1348
+ return (r = s.value) == null ? void 0 : r.fieldRef;
1236
1349
  }),
1237
1350
  inputRef: i
1238
- }), (c, v) => (u(), D(y(Ie), {
1351
+ }), (r, f) => (u(), x(m(Ie), {
1239
1352
  ref_key: "fieldRef",
1240
1353
  ref: s,
1241
1354
  class: C(["q-text-field", e.class]),
1242
- for: y(l),
1355
+ for: m(l),
1243
1356
  label: e.label,
1244
1357
  size: e.size,
1245
1358
  readonly: e.readonly,
1246
1359
  disabled: e.disabled,
1247
1360
  required: e.required
1248
- }, $e({
1249
- "label.prepend": w(() => [
1250
- h(c.$slots, "label.prepend")
1361
+ }, qe({
1362
+ "label.prepend": _(() => [
1363
+ y(r.$slots, "label.prepend")
1251
1364
  ]),
1252
- "label.append": w(() => [
1253
- h(c.$slots, "label.append")
1365
+ "label.append": _(() => [
1366
+ y(r.$slots, "label.append")
1254
1367
  ]),
1255
- default: w(() => [
1256
- rt(K("input", fe({
1257
- "onUpdate:modelValue": v[0] || (v[0] = ($) => n.value = $),
1368
+ default: _(() => [
1369
+ dt(A("input", re({
1370
+ "onUpdate:modelValue": f[0] || (f[0] = (q) => n.value = q),
1258
1371
  ref_key: "inputRef",
1259
1372
  ref: i,
1260
- id: y(l),
1373
+ id: m(l),
1261
1374
  class: "q-text-field__input",
1262
1375
  type: e.type,
1263
1376
  role: e.role,
@@ -1266,53 +1379,53 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1266
1379
  readonly: e.readonly,
1267
1380
  disabled: e.disabled,
1268
1381
  maxlength: e.maxLength
1269
- }, c.$attrs), null, 16, ao), [
1270
- [dt, n.value]
1382
+ }, r.$attrs), null, 16, ho), [
1383
+ [ut, n.value]
1271
1384
  ])
1272
1385
  ]),
1273
1386
  _: 2
1274
1387
  }, [
1275
- c.$slots.prepend ? {
1388
+ r.$slots.prepend ? {
1276
1389
  name: "prepend",
1277
- fn: w(() => [
1278
- h(c.$slots, "prepend")
1390
+ fn: _(() => [
1391
+ y(r.$slots, "prepend")
1279
1392
  ]),
1280
1393
  key: "0"
1281
1394
  } : void 0,
1282
- c.$slots.append ? {
1395
+ r.$slots.append ? {
1283
1396
  name: "append",
1284
- fn: w(() => [
1285
- h(c.$slots, "append")
1397
+ fn: _(() => [
1398
+ y(r.$slots, "append")
1286
1399
  ]),
1287
1400
  key: "1"
1288
1401
  } : void 0,
1289
- c.$slots.extras ? {
1402
+ r.$slots.extras ? {
1290
1403
  name: "extras",
1291
- fn: w(() => [
1292
- h(c.$slots, "extras")
1404
+ fn: _(() => [
1405
+ y(r.$slots, "extras")
1293
1406
  ]),
1294
1407
  key: "2"
1295
1408
  } : void 0
1296
1409
  ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
1297
1410
  }
1298
- }), nt = S(so), io = ["data-key"], ro = {
1411
+ }), lt = B(yo), bo = ["data-key"], go = {
1299
1412
  key: 0,
1300
1413
  class: "q-select__loader"
1301
- }, uo = {
1414
+ }, _o = {
1302
1415
  key: 2,
1303
1416
  class: "q-select__loader"
1304
- }, co = {
1417
+ }, ko = {
1305
1418
  noData: "No data available"
1306
- }, fo = {
1419
+ }, wo = {
1307
1420
  chevron: {
1308
1421
  icon: "chevron-down"
1309
1422
  },
1310
1423
  clear: {
1311
1424
  icon: "close"
1312
1425
  }
1313
- }, po = /* @__PURE__ */ L({
1426
+ }, $o = /* @__PURE__ */ L({
1314
1427
  __name: "QCombobox",
1315
- props: /* @__PURE__ */ Z({
1428
+ props: /* @__PURE__ */ X({
1316
1429
  id: { default: void 0 },
1317
1430
  placeholder: { default: "" },
1318
1431
  selectionMode: { default: "automatic" },
@@ -1329,8 +1442,8 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1329
1442
  itemLabel: { default: "label" },
1330
1443
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1331
1444
  size: { default: void 0 },
1332
- texts: { default: () => co },
1333
- icons: { default: () => fo },
1445
+ texts: { default: () => ko },
1446
+ icons: { default: () => wo },
1334
1447
  class: { default: void 0 }
1335
1448
  }, {
1336
1449
  modelValue: {
@@ -1342,158 +1455,158 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1342
1455
  search: { default: "" },
1343
1456
  searchModifiers: {}
1344
1457
  }),
1345
- emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1458
+ emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
1346
1459
  setup(t, { expose: o, emit: e }) {
1347
- const n = t, l = e, s = ne(t, "modelValue"), i = ne(t, "open"), a = ne(t, "search"), c = V(void 0), v = V(null), $ = V(null), x = V(null), z = V(null);
1348
- je(P);
1349
- const T = k(() => n.clearable && !n.readonly && !n.disabled), I = k(() => {
1350
- var r;
1351
- return n.filterMode === "manual" || !M.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
1352
- (_) => _[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1460
+ const n = t, l = e, s = ee(t, "modelValue"), i = ee(t, "open"), a = ee(t, "search"), r = V(void 0), f = V(null), q = V(null), I = V(null), M = V(null);
1461
+ je(H);
1462
+ const E = k(() => n.clearable && !n.readonly && !n.disabled), S = k(() => {
1463
+ var d;
1464
+ return n.filterMode === "manual" || !O.value ? n.items : (d = n.items) == null ? void 0 : d.filter(
1465
+ (w) => w[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
1353
1466
  );
1354
- }), B = k(() => {
1355
- var r;
1356
- return (r = n.items) == null ? void 0 : r.find((_) => _[n.itemValue] === s.value);
1357
- }), G = k(() => B.value === void 0), J = k(() => {
1358
- const r = c.value;
1359
- if (r !== void 0 && I.value[r])
1360
- return I.value[r];
1361
- }), H = k(() => {
1362
- var _;
1363
- if (c.value === void 0)
1467
+ }), T = k(() => {
1468
+ var d;
1469
+ return (d = n.items) == null ? void 0 : d.find((w) => w[n.itemValue] === s.value);
1470
+ }), Y = k(() => T.value === void 0), oe = k(() => {
1471
+ const d = r.value;
1472
+ if (d !== void 0 && S.value[d])
1473
+ return S.value[d];
1474
+ }), G = k(() => {
1475
+ var w;
1476
+ if (r.value === void 0)
1364
1477
  return;
1365
- const r = (_ = $.value) == null ? void 0 : _.getItem(c.value);
1366
- return r == null ? void 0 : r.id;
1367
- }), M = k(() => {
1368
- var r;
1369
- return a.value.length > 0 && a.value !== ((r = B.value) == null ? void 0 : r[n.itemLabel]);
1478
+ const d = (w = q.value) == null ? void 0 : w.getItem(r.value);
1479
+ return d == null ? void 0 : d.id;
1480
+ }), O = k(() => {
1481
+ var d;
1482
+ return a.value.length > 0 && a.value !== ((d = T.value) == null ? void 0 : d[n.itemLabel]);
1370
1483
  });
1371
- function ee(r) {
1372
- s.value = r, A();
1484
+ function ne(d) {
1485
+ s.value = d, Q();
1373
1486
  }
1374
- function P() {
1375
- var _;
1376
- const r = ((_ = B.value) == null ? void 0 : _[n.itemLabel]) || "";
1377
- a.value !== r && (a.value = r);
1487
+ function H() {
1488
+ var w;
1489
+ const d = ((w = T.value) == null ? void 0 : w[n.itemLabel]) || "";
1490
+ a.value !== d && (a.value = d);
1378
1491
  }
1379
- function te() {
1380
- i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, le());
1492
+ function le() {
1493
+ i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, se());
1381
1494
  }
1382
- function A() {
1383
- i.value && (l("before-hide"), i.value = !1, c.value = void 0);
1495
+ function Q() {
1496
+ i.value && (l("before-hide"), i.value = !1, r.value = void 0);
1384
1497
  }
1385
- function W() {
1386
- i.value ? A() : g();
1498
+ function R() {
1499
+ i.value ? Q() : g();
1387
1500
  }
1388
- function f() {
1389
- T.value && (s.value = n.emptyValue, c.value = void 0, le());
1501
+ function p() {
1502
+ E.value && (s.value = n.emptyValue, r.value = void 0, se());
1390
1503
  }
1391
1504
  function g() {
1392
- if (te(), B.value !== void 0) {
1393
- const r = I.value.indexOf(B.value);
1394
- r !== -1 && X(() => N(r));
1505
+ if (le(), T.value !== void 0) {
1506
+ const d = S.value.indexOf(T.value);
1507
+ d !== -1 && J(() => j(d));
1395
1508
  }
1396
1509
  }
1397
- function d(r) {
1398
- var _, E;
1399
- if (!(!r.key || n.readonly || n.disabled))
1400
- if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
1401
- P(), i.value && A();
1402
- else if (["ArrowDown", "ArrowUp"].includes(r.key))
1403
- i.value ? X(() => {
1404
- if (c.value === void 0)
1405
- p();
1510
+ function c(d) {
1511
+ var w, D;
1512
+ if (!(!d.key || n.readonly || n.disabled))
1513
+ if (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), d.key === "Escape")
1514
+ H(), i.value && Q();
1515
+ else if (["ArrowDown", "ArrowUp"].includes(d.key))
1516
+ i.value ? J(() => {
1517
+ if (r.value === void 0)
1518
+ h();
1406
1519
  else {
1407
- const O = r.key === "ArrowDown" ? "next" : "prev";
1408
- oe(c.value, O);
1520
+ const P = d.key === "ArrowDown" ? "next" : "prev";
1521
+ ae(r.value, P);
1409
1522
  }
1410
- }) : (te(), X(() => {
1411
- r.key === "ArrowDown" ? p() : F();
1523
+ }) : (le(), J(() => {
1524
+ d.key === "ArrowDown" ? h() : U();
1412
1525
  }));
1413
- else if (r.key === "Enter") {
1414
- if (J.value === void 0)
1526
+ else if (d.key === "Enter") {
1527
+ if (oe.value === void 0)
1415
1528
  return;
1416
- ee(J.value[n.itemValue]);
1529
+ ne(oe.value[n.itemValue]);
1417
1530
  } else
1418
- r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (E = $.value) == null ? void 0 : E.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && te();
1531
+ d.key === "Home" ? r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex() : d.key === "End" ? r.value = (D = q.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(d.key) || d.key === "Backspace") && le();
1419
1532
  }
1420
- function p() {
1421
- var r, _;
1422
- if (G.value)
1423
- c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex();
1533
+ function h() {
1534
+ var d, w;
1535
+ if (Y.value)
1536
+ r.value = (w = q.value) == null ? void 0 : w.getFirstFocusableItemIndex();
1424
1537
  else {
1425
- const E = I.value.findIndex(
1426
- (O) => O[n.itemValue] === s.value
1538
+ const D = S.value.findIndex(
1539
+ (P) => P[n.itemValue] === s.value
1427
1540
  );
1428
- E === -1 ? c.value = (r = $.value) == null ? void 0 : r.getFirstFocusableItemIndex() : c.value = E;
1541
+ D === -1 ? r.value = (d = q.value) == null ? void 0 : d.getFirstFocusableItemIndex() : r.value = D;
1429
1542
  }
1430
1543
  }
1431
- function F() {
1432
- var r;
1433
- c.value = (r = $.value) == null ? void 0 : r.getLastFocusableItemIndex();
1544
+ function U() {
1545
+ var d;
1546
+ r.value = (d = q.value) == null ? void 0 : d.getLastFocusableItemIndex();
1434
1547
  }
1435
- function oe(r, _) {
1436
- var E;
1437
- c.value = (E = $.value) == null ? void 0 : E.getAdjacentItemIndex(r, _);
1548
+ function ae(d, w) {
1549
+ var D;
1550
+ r.value = (D = q.value) == null ? void 0 : D.getAdjacentItemIndex(d, w);
1438
1551
  }
1439
- function U(r) {
1440
- var ue, Te, Ee, De;
1441
- const _ = ((ue = x == null ? void 0 : x.value) == null ? void 0 : ue.$el) === r.relatedTarget, E = (Ee = (Te = v == null ? void 0 : v.value) == null ? void 0 : Te.$el) == null ? void 0 : Ee.contains(r.relatedTarget), O = (De = z == null ? void 0 : z.value) == null ? void 0 : De.contains(r.relatedTarget);
1442
- if (_ || O || E) {
1443
- r.preventDefault(), r.stopPropagation();
1552
+ function K(d) {
1553
+ var fe, Ve, Ee, De;
1554
+ const w = ((fe = I == null ? void 0 : I.value) == null ? void 0 : fe.$el) === d.relatedTarget, D = (Ee = (Ve = f == null ? void 0 : f.value) == null ? void 0 : Ve.$el) == null ? void 0 : Ee.contains(d.relatedTarget), P = (De = M == null ? void 0 : M.value) == null ? void 0 : De.contains(d.relatedTarget);
1555
+ if (w || P || D) {
1556
+ d.preventDefault(), d.stopPropagation();
1444
1557
  return;
1445
1558
  }
1446
- A(), T.value && !a.value && (s.value = n.emptyValue), P();
1559
+ Q(), E.value && !a.value && (s.value = n.emptyValue), H();
1447
1560
  }
1448
- function le() {
1449
- var r, _;
1450
- (_ = (r = v.value) == null ? void 0 : r.inputRef) == null || _.focus();
1561
+ function se() {
1562
+ var d, w;
1563
+ (w = (d = f.value) == null ? void 0 : d.inputRef) == null || w.focus();
1451
1564
  }
1452
1565
  function _e() {
1453
- le();
1566
+ se();
1454
1567
  }
1455
1568
  function b() {
1456
1569
  l("show");
1457
1570
  }
1458
- function de() {
1571
+ function ce() {
1459
1572
  l("hide");
1460
1573
  }
1461
- function N(r) {
1462
- var E;
1463
- const _ = (E = $.value) == null ? void 0 : E.getItem(r);
1464
- $.value && ($.value.$el.scrollTop = _ == null ? void 0 : _.offsetTop);
1574
+ function j(d) {
1575
+ var D;
1576
+ const w = (D = q.value) == null ? void 0 : D.getItem(d);
1577
+ q.value && (q.value.$el.scrollTop = w == null ? void 0 : w.offsetTop);
1465
1578
  }
1466
- return R(s, P), R(
1579
+ return Z(s, H), Z(
1467
1580
  () => n.items,
1468
- (r, _) => {
1469
- if (!G.value) {
1470
- const E = _.find((O) => O[n.itemValue] === s.value);
1471
- a.value === (E == null ? void 0 : E[n.itemLabel]) && P();
1581
+ (d, w) => {
1582
+ if (!Y.value) {
1583
+ const D = w.find((P) => P[n.itemValue] === s.value);
1584
+ a.value === (D == null ? void 0 : D[n.itemLabel]) && H();
1472
1585
  }
1473
1586
  },
1474
1587
  { deep: !0 }
1475
- ), R(c, (r) => {
1476
- r !== void 0 && N(r);
1477
- }), R(a, (r) => {
1478
- r && i.value && n.selectionMode === "automatic" && X(p);
1479
- }), R(
1588
+ ), Z(r, (d) => {
1589
+ d !== void 0 && j(d);
1590
+ }), Z(a, (d) => {
1591
+ d && i.value && n.selectionMode === "automatic" && J(h);
1592
+ }), Z(
1480
1593
  () => n.loading,
1481
- (r) => {
1482
- !r && i.value && X(p);
1594
+ (d) => {
1595
+ !d && i.value && J(h);
1483
1596
  }
1484
1597
  ), o({
1485
- triggerEl: v
1486
- }), (r, _) => {
1487
- var E;
1488
- return u(), m(se, null, [
1489
- Q(y(nt), {
1598
+ triggerEl: f
1599
+ }), (d, w) => {
1600
+ var D;
1601
+ return u(), v(te, null, [
1602
+ z(m(lt), {
1490
1603
  modelValue: a.value,
1491
- "onUpdate:modelValue": _[0] || (_[0] = (O) => a.value = O),
1604
+ "onUpdate:modelValue": w[0] || (w[0] = (P) => a.value = P),
1492
1605
  id: n.id,
1493
1606
  label: n.label,
1494
1607
  required: n.required,
1495
1608
  ref_key: "triggerEl",
1496
- ref: v,
1609
+ ref: f,
1497
1610
  role: "combobox",
1498
1611
  placeholder: n.placeholder,
1499
1612
  class: C([
@@ -1512,118 +1625,118 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1512
1625
  "aria-expanded": i.value,
1513
1626
  "aria-haspopup": "listbox",
1514
1627
  "aria-autocomplete": "list",
1515
- "aria-activedescendant": H.value,
1628
+ "aria-activedescendant": G.value,
1516
1629
  size: n.size,
1517
1630
  onClick: g,
1518
- onFocusout: U,
1519
- onKeydown: ce(d, ["stop"])
1520
- }, $e({
1521
- "label.prepend": w(() => [
1522
- h(r.$slots, "label.prepend")
1631
+ onFocusout: K,
1632
+ onKeydown: pe(c, ["stop"])
1633
+ }, qe({
1634
+ "label.prepend": _(() => [
1635
+ y(d.$slots, "label.prepend")
1523
1636
  ]),
1524
- "label.append": w(() => [
1525
- h(r.$slots, "label.append")
1637
+ "label.append": _(() => [
1638
+ y(d.$slots, "label.append")
1526
1639
  ]),
1527
- append: w(() => [
1528
- h(r.$slots, "append"),
1529
- T.value && a.value ? (u(), D(y(pe), {
1640
+ append: _(() => [
1641
+ y(d.$slots, "append"),
1642
+ E.value && a.value ? (u(), x(m(de), {
1530
1643
  key: 0,
1531
1644
  class: "q-combobox__clear",
1532
1645
  "b-style": "plain",
1533
1646
  borderless: "",
1534
1647
  tabindex: "-1",
1535
- onClick: f
1648
+ onClick: p
1536
1649
  }, {
1537
- default: w(() => [
1538
- Q(y(Y), ae(re(n.icons.clear)), null, 16)
1650
+ default: _(() => [
1651
+ z(m(F), W(ie(n.icons.clear)), null, 16)
1539
1652
  ]),
1540
1653
  _: 1
1541
- })) : q("", !0),
1542
- n.readonly ? q("", !0) : (u(), D(y(pe), {
1654
+ })) : $("", !0),
1655
+ n.readonly ? $("", !0) : (u(), x(m(de), {
1543
1656
  key: 1,
1544
1657
  ref_key: "toggleRef",
1545
- ref: x,
1658
+ ref: I,
1546
1659
  class: "q-combobox__chevron",
1547
1660
  "b-style": "plain",
1548
1661
  borderless: "",
1549
1662
  tabindex: "-1",
1550
1663
  disabled: n.disabled,
1551
- onMousedown: ce(W, ["stop", "prevent"])
1664
+ onMousedown: pe(R, ["stop", "prevent"])
1552
1665
  }, {
1553
- default: w(() => [
1554
- Q(y(Y), ae(re(n.icons.chevron)), null, 16)
1666
+ default: _(() => [
1667
+ z(m(F), W(ie(n.icons.chevron)), null, 16)
1555
1668
  ]),
1556
1669
  _: 1
1557
1670
  }, 8, ["disabled"]))
1558
1671
  ]),
1559
1672
  _: 2
1560
1673
  }, [
1561
- r.$slots.prepend ? {
1674
+ d.$slots.prepend ? {
1562
1675
  name: "prepend",
1563
- fn: w(() => [
1564
- h(r.$slots, "prepend")
1676
+ fn: _(() => [
1677
+ y(d.$slots, "prepend")
1565
1678
  ]),
1566
1679
  key: "0"
1567
1680
  } : void 0,
1568
- r.$slots.extras ? {
1681
+ d.$slots.extras ? {
1569
1682
  name: "extras",
1570
- fn: w(() => [
1571
- h(r.$slots, "extras")
1683
+ fn: _(() => [
1684
+ y(d.$slots, "extras")
1572
1685
  ]),
1573
1686
  key: "1"
1574
1687
  } : void 0
1575
1688
  ]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
1576
- Q(y(ge), {
1689
+ z(m(he), {
1577
1690
  modelValue: i.value,
1578
- "onUpdate:modelValue": _[2] || (_[2] = (O) => i.value = O),
1691
+ "onUpdate:modelValue": w[2] || (w[2] = (P) => i.value = P),
1579
1692
  spy: "",
1580
1693
  "non-modal": "",
1581
1694
  trigger: "manual",
1582
1695
  placement: "bottom-start",
1583
1696
  width: "anchor",
1584
1697
  offset: 4,
1585
- anchor: (E = v.value) == null ? void 0 : E.$el,
1698
+ anchor: (D = f.value) == null ? void 0 : D.$el,
1586
1699
  onEnter: b,
1587
- onLeave: de
1700
+ onLeave: ce
1588
1701
  }, {
1589
- default: w(() => {
1590
- var O;
1702
+ default: _(() => {
1703
+ var P;
1591
1704
  return [
1592
- K("div", {
1705
+ A("div", {
1593
1706
  ref_key: "contentRef",
1594
- ref: z,
1707
+ ref: M,
1595
1708
  class: "q-select__body",
1596
1709
  "data-testid": "combobox-dropdown",
1597
1710
  "data-key": n.id,
1598
- onFocusout: U
1711
+ onFocusout: K
1599
1712
  }, [
1600
- h(r.$slots, "body.prepend"),
1601
- n.loading ? (u(), m("div", ro, [
1602
- Q(y(qe), { size: 24 })
1603
- ])) : I.value.length ? (u(), D(y(Ce), {
1713
+ y(d.$slots, "body.prepend"),
1714
+ n.loading ? (u(), v("div", go, [
1715
+ z(m(xe), { size: 24 })
1716
+ ])) : S.value.length ? (u(), x(m(Te), {
1604
1717
  key: 1,
1605
1718
  ref_key: "listRef",
1606
- ref: $,
1719
+ ref: q,
1607
1720
  class: "q-select__items",
1608
1721
  modelValue: s.value,
1609
1722
  "onUpdate:modelValue": [
1610
- _[1] || (_[1] = (ue) => s.value = ue),
1611
- ee
1723
+ w[1] || (w[1] = (fe) => s.value = fe),
1724
+ ne
1612
1725
  ],
1613
- highlighted: (O = J.value) == null ? void 0 : O[n.itemValue],
1614
- items: I.value,
1615
- groups: r.groups,
1726
+ highlighted: (P = oe.value) == null ? void 0 : P[n.itemValue],
1727
+ items: S.value,
1728
+ groups: d.groups,
1616
1729
  "item-label": n.itemLabel,
1617
1730
  "item-value": n.itemValue,
1618
1731
  onMouseup: _e
1619
1732
  }, {
1620
- item: w(({ item: ue }) => [
1621
- h(r.$slots, "item", { item: ue })
1733
+ item: _(({ item: fe }) => [
1734
+ y(d.$slots, "item", { item: fe })
1622
1735
  ]),
1623
1736
  _: 3
1624
- }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", uo, j(r.texts.noData), 1)),
1625
- h(r.$slots, "body.append")
1626
- ], 40, io)
1737
+ }, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", _o, N(d.texts.noData), 1)),
1738
+ y(d.$slots, "body.append")
1739
+ ], 40, bo)
1627
1740
  ];
1628
1741
  }),
1629
1742
  _: 3
@@ -1631,13 +1744,117 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1631
1744
  ], 64);
1632
1745
  };
1633
1746
  }
1634
- }), mo = S(po), vo = {
1747
+ }), qo = B($o), xo = { class: "q-dialog" }, Io = { class: "q-dialog__header" }, Lo = { class: "q-dialog__header-title" }, So = { class: "q-dialog__body" }, Bo = {
1748
+ key: 0,
1749
+ class: "q-dialog__body-icon"
1750
+ }, Co = { class: "q-dialog__body-text" }, To = ["innerHTML"], Vo = { key: 1 }, Eo = { class: "q-dialog__body-actions" }, Do = [
1751
+ {
1752
+ id: "button",
1753
+ icon: {
1754
+ icon: "check"
1755
+ },
1756
+ props: {
1757
+ bStyle: "primary",
1758
+ label: "Ok"
1759
+ }
1760
+ }
1761
+ ], Ao = {
1762
+ icon: "check-circle-outline",
1763
+ type: "svg"
1764
+ }, zo = /* @__PURE__ */ L({
1765
+ __name: "QDialog",
1766
+ props: /* @__PURE__ */ X({
1767
+ text: { default: "" },
1768
+ attach: { default: "body" },
1769
+ inline: { type: Boolean },
1770
+ backdropBlur: { type: Boolean, default: !0 },
1771
+ buttons: { default: () => Do },
1772
+ dismissible: { type: Boolean, default: !1 },
1773
+ html: { type: Boolean, default: !0 },
1774
+ icon: { default: () => Ao },
1775
+ id: { default: void 0 },
1776
+ title: { default: "" },
1777
+ class: { default: void 0 }
1778
+ }, {
1779
+ modelValue: { type: Boolean },
1780
+ modelModifiers: {}
1781
+ }),
1782
+ emits: ["update:modelValue"],
1783
+ setup(t) {
1784
+ const o = t, e = ee(t, "modelValue"), n = ve(o.id);
1785
+ function l() {
1786
+ e.value = !1;
1787
+ }
1788
+ function s(i) {
1789
+ var a;
1790
+ (a = i.action) == null || a.call(i), l();
1791
+ }
1792
+ return (i, a) => (u(), x(m(he), {
1793
+ "model-value": e.value,
1794
+ id: m(n),
1795
+ inline: o.inline,
1796
+ attach: o.attach,
1797
+ "backdrop-blur": o.backdropBlur,
1798
+ "scroll-lock": "",
1799
+ persistent: ""
1800
+ }, {
1801
+ default: _(() => [
1802
+ A("div", xo, [
1803
+ A("div", Io, [
1804
+ A("span", Lo, N(o.title), 1),
1805
+ o.dismissible ? (u(), x(m(de), {
1806
+ key: 0,
1807
+ "b-style": "tertiary",
1808
+ onClick: l
1809
+ }, {
1810
+ default: _(() => [
1811
+ z(m(F), { icon: "close" })
1812
+ ]),
1813
+ _: 1
1814
+ })) : $("", !0)
1815
+ ]),
1816
+ y(i.$slots, "body.content", {}, () => [
1817
+ A("div", So, [
1818
+ y(i.$slots, "body.icon", {}, () => [
1819
+ o.icon ? (u(), v("span", Bo, [
1820
+ z(m(F), W(ie(o.icon)), null, 16)
1821
+ ])) : $("", !0)
1822
+ ]),
1823
+ A("div", Co, [
1824
+ o.html ? (u(), v("span", {
1825
+ key: 0,
1826
+ innerHTML: o.text
1827
+ }, null, 8, To)) : (u(), v("span", Vo, N(o.text), 1))
1828
+ ]),
1829
+ y(i.$slots, "body.append")
1830
+ ])
1831
+ ]),
1832
+ A("div", Eo, [
1833
+ (u(!0), v(te, null, we(o.buttons, (r) => (u(), x(m(de), re({ ref_for: !0 }, r.props, {
1834
+ key: r.id,
1835
+ onClick: () => s(r)
1836
+ }), {
1837
+ default: _(() => [
1838
+ r.icon ? (u(), x(m(F), re({
1839
+ key: 0,
1840
+ ref_for: !0
1841
+ }, r.icon), null, 16)) : $("", !0)
1842
+ ]),
1843
+ _: 2
1844
+ }, 1040, ["onClick"]))), 128))
1845
+ ])
1846
+ ])
1847
+ ]),
1848
+ _: 3
1849
+ }, 8, ["model-value", "id", "inline", "attach", "backdrop-blur"]));
1850
+ }
1851
+ }), Qo = B(zo), Mo = {
1635
1852
  key: 0,
1636
1853
  class: "q-input-group__prepend"
1637
- }, ho = { key: 0 }, yo = {
1854
+ }, Fo = { key: 0 }, Oo = {
1638
1855
  key: 1,
1639
1856
  class: "q-input-group__append"
1640
- }, bo = { key: 0 }, go = /* @__PURE__ */ L({
1857
+ }, Uo = { key: 0 }, Po = /* @__PURE__ */ L({
1641
1858
  __name: "QInputGroup",
1642
1859
  props: {
1643
1860
  id: { default: void 0 },
@@ -1650,64 +1867,64 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1650
1867
  },
1651
1868
  setup(t) {
1652
1869
  const o = t;
1653
- return We({
1870
+ return Re({
1654
1871
  QField: {
1655
1872
  size: "block"
1656
1873
  }
1657
- }), (e, n) => (u(), D(y(Ie), {
1874
+ }), (e, n) => (u(), x(m(Ie), {
1658
1875
  id: o.id,
1659
1876
  class: C(["q-input-group", o.class]),
1660
1877
  label: o.label,
1661
1878
  required: o.required,
1662
1879
  size: o.size
1663
- }, $e({
1664
- default: w(() => [
1665
- e.$slots.prepend || o.prependIcon ? (u(), m("div", vo, [
1666
- o.prependIcon ? (u(), m("span", ho, [
1667
- Q(y(Y), ae(re(o.prependIcon)), null, 16)
1668
- ])) : q("", !0),
1669
- h(e.$slots, "prepend")
1670
- ])) : q("", !0),
1671
- h(e.$slots, "default"),
1672
- e.$slots.append || o.appendIcon ? (u(), m("div", yo, [
1673
- o.appendIcon ? (u(), m("span", bo, [
1674
- Q(y(Y), ae(re(o.appendIcon)), null, 16)
1675
- ])) : q("", !0),
1676
- h(e.$slots, "append")
1677
- ])) : q("", !0)
1880
+ }, qe({
1881
+ default: _(() => [
1882
+ e.$slots.prepend || o.prependIcon ? (u(), v("div", Mo, [
1883
+ o.prependIcon ? (u(), v("span", Fo, [
1884
+ z(m(F), W(ie(o.prependIcon)), null, 16)
1885
+ ])) : $("", !0),
1886
+ y(e.$slots, "prepend")
1887
+ ])) : $("", !0),
1888
+ y(e.$slots, "default"),
1889
+ e.$slots.append || o.appendIcon ? (u(), v("div", Oo, [
1890
+ o.appendIcon ? (u(), v("span", Uo, [
1891
+ z(m(F), W(ie(o.appendIcon)), null, 16)
1892
+ ])) : $("", !0),
1893
+ y(e.$slots, "append")
1894
+ ])) : $("", !0)
1678
1895
  ]),
1679
1896
  _: 2
1680
1897
  }, [
1681
1898
  e.$slots.extras ? {
1682
1899
  name: "extras",
1683
- fn: w(() => [
1684
- h(e.$slots, "extras")
1900
+ fn: _(() => [
1901
+ y(e.$slots, "extras")
1685
1902
  ]),
1686
1903
  key: "0"
1687
1904
  } : void 0
1688
1905
  ]), 1032, ["id", "class", "label", "required", "size"]));
1689
1906
  }
1690
- }), _o = S(go), ko = /* @__PURE__ */ L({
1907
+ }), No = B(Po), Ho = /* @__PURE__ */ L({
1691
1908
  __name: "QLineLoader",
1692
1909
  props: {
1693
1910
  class: { default: void 0 }
1694
1911
  },
1695
1912
  setup(t) {
1696
1913
  const o = t;
1697
- return (e, n) => (u(), m("div", {
1914
+ return (e, n) => (u(), v("div", {
1698
1915
  class: C(["q-line-loader", o.class])
1699
1916
  }, null, 2));
1700
1917
  }
1701
- }), wo = S(ko), $o = {
1918
+ }), Ko = B(Ho), jo = {
1702
1919
  key: 0,
1703
1920
  class: "q-popover__header"
1704
- }, qo = {
1921
+ }, Go = {
1705
1922
  key: 1,
1706
1923
  class: "q-popover__body"
1707
- }, Io = ["innerHTML"], xo = { key: 1 }, Lo = /* @__PURE__ */ L({
1924
+ }, Ro = ["innerHTML"], Wo = { key: 1 }, Xo = /* @__PURE__ */ L({
1708
1925
  inheritAttrs: !1,
1709
1926
  __name: "QPopover",
1710
- props: /* @__PURE__ */ Z({
1927
+ props: /* @__PURE__ */ X({
1711
1928
  anchor: {},
1712
1929
  arrow: { type: Boolean, default: !0 },
1713
1930
  attach: { default: "body" },
@@ -1723,8 +1940,8 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1723
1940
  }),
1724
1941
  emits: ["update:modelValue"],
1725
1942
  setup(t) {
1726
- const o = t, e = ne(t, "modelValue");
1727
- return (n, l) => (u(), D(y(ge), {
1943
+ const o = t, e = ee(t, "modelValue");
1944
+ return (n, l) => (u(), x(m(he), {
1728
1945
  "model-value": e.value,
1729
1946
  class: "q-popover",
1730
1947
  trigger: "click",
@@ -1735,43 +1952,43 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1735
1952
  disabled: o.disabled,
1736
1953
  placement: o.placement
1737
1954
  }, {
1738
- default: w(() => [
1739
- o.title || n.$slots.header ? (u(), m("h3", $o, [
1740
- ve(j(o.title) + " ", 1),
1741
- h(n.$slots, "header")
1742
- ])) : q("", !0),
1743
- o.text || n.$slots.body ? (u(), m("div", qo, [
1744
- o.html ? (u(), m("span", {
1955
+ default: _(() => [
1956
+ o.title || n.$slots.header ? (u(), v("h3", jo, [
1957
+ me(N(o.title) + " ", 1),
1958
+ y(n.$slots, "header")
1959
+ ])) : $("", !0),
1960
+ o.text || n.$slots.body ? (u(), v("div", Go, [
1961
+ o.html ? (u(), v("span", {
1745
1962
  key: 0,
1746
1963
  innerHTML: o.text
1747
- }, null, 8, Io)) : (u(), m("span", xo, j(o.text), 1)),
1748
- h(n.$slots, "body")
1749
- ])) : q("", !0)
1964
+ }, null, 8, Ro)) : (u(), v("span", Wo, N(o.text), 1)),
1965
+ y(n.$slots, "body")
1966
+ ])) : $("", !0)
1750
1967
  ]),
1751
1968
  _: 3
1752
1969
  }, 8, ["model-value", "anchor", "arrow", "attach", "inline", "disabled", "placement"]));
1753
1970
  }
1754
- }), So = S(Lo), Bo = {
1971
+ }), Yo = B(Xo), Zo = {
1755
1972
  key: 0,
1756
1973
  class: "q-select__value"
1757
- }, Vo = {
1974
+ }, Jo = {
1758
1975
  key: 1,
1759
1976
  class: "q-select__placeholder"
1760
- }, Co = ["data-key"], To = {
1977
+ }, en = ["data-key"], tn = {
1761
1978
  key: 0,
1762
1979
  class: "q-select__loader"
1763
- }, Eo = {
1980
+ }, on = {
1764
1981
  placeholder: "Choose..."
1765
- }, Do = {
1982
+ }, nn = {
1766
1983
  chevron: {
1767
1984
  icon: "chevron-down"
1768
1985
  },
1769
1986
  clear: {
1770
1987
  icon: "close"
1771
1988
  }
1772
- }, Ao = /* @__PURE__ */ L({
1989
+ }, ln = /* @__PURE__ */ L({
1773
1990
  __name: "QSelect",
1774
- props: /* @__PURE__ */ Z({
1991
+ props: /* @__PURE__ */ X({
1775
1992
  id: { default: void 0 },
1776
1993
  label: { default: "" },
1777
1994
  clearable: { type: Boolean },
@@ -1779,14 +1996,14 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1779
1996
  disabled: { type: Boolean },
1780
1997
  required: { type: Boolean },
1781
1998
  loading: { type: Boolean },
1782
- icons: { default: () => Do },
1999
+ icons: { default: () => nn },
1783
2000
  items: {},
1784
2001
  groups: { default: () => [] },
1785
2002
  itemValue: { default: "key" },
1786
2003
  itemLabel: { default: "label" },
1787
2004
  emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
1788
2005
  size: { default: void 0 },
1789
- texts: { default: () => Eo },
2006
+ texts: { default: () => on },
1790
2007
  class: { default: "" }
1791
2008
  }, {
1792
2009
  modelValue: {
@@ -1794,81 +2011,81 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1794
2011
  },
1795
2012
  modelModifiers: {}
1796
2013
  }),
1797
- emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
2014
+ emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
1798
2015
  setup(t, { emit: o }) {
1799
- const e = t, n = o, l = ne(t, "modelValue"), s = V(!1), i = V(""), a = V(null), c = V(null), v = V(null), $ = k(() => x.value === void 0), x = k(
2016
+ const e = t, n = o, l = ee(t, "modelValue"), s = V(!1), i = V(""), a = V(null), r = V(null), f = V(null), q = k(() => I.value === void 0), I = k(
1800
2017
  () => {
1801
- var d;
1802
- return (d = e.items) == null ? void 0 : d.find((p) => p[e.itemValue] === l.value);
2018
+ var c;
2019
+ return (c = e.items) == null ? void 0 : c.find((h) => h[e.itemValue] === l.value);
1803
2020
  }
1804
- ), z = k(
1805
- () => x.value ? x.value[e.itemLabel] : ""
1806
- ), T = k(
2021
+ ), M = k(
2022
+ () => I.value ? I.value[e.itemLabel] : ""
2023
+ ), E = k(
1807
2024
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1808
2025
  );
1809
- function I(d) {
1810
- l.value = d, H();
2026
+ function S(c) {
2027
+ l.value = c, G();
1811
2028
  }
1812
- function B() {
1813
- T.value && I(e.emptyValue);
2029
+ function T() {
2030
+ E.value && (S(e.emptyValue), R());
1814
2031
  }
1815
- function G(d) {
1816
- var p, F, oe;
1817
- !((p = v.value) != null && p.contains(d.relatedTarget)) && !((oe = (F = a.value) == null ? void 0 : F.fieldRef) != null && oe.contains(d.relatedTarget)) && H();
2032
+ function Y(c) {
2033
+ var h, U, ae;
2034
+ !((h = f.value) != null && h.contains(c.relatedTarget)) && !((ae = (U = a.value) == null ? void 0 : U.fieldRef) != null && ae.contains(c.relatedTarget)) && G();
1818
2035
  }
1819
- function J() {
2036
+ function oe() {
1820
2037
  s.value || (n("before-show"), s.value = !0);
1821
2038
  }
1822
- function H() {
2039
+ function G() {
1823
2040
  s.value && (n("before-hide"), s.value = !1);
1824
2041
  }
1825
- function M() {
1826
- e.readonly || e.disabled || (s.value ? H() : J());
1827
- }
1828
- let ee;
1829
- function P(d) {
1830
- if (!(!d.key || e.readonly || e.disabled)) {
1831
- if (window.clearTimeout(ee), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : T.value && d.key === "Escape" && B()), d.key === "Delete" && e.clearable && B(), /^[a-z]$/i.test(d.key)) {
1832
- i.value += d.key.toLowerCase();
1833
- for (let p = 0; p < e.items.length; p++)
1834
- if (e.items[p][e.itemLabel].toLowerCase().startsWith(i.value)) {
1835
- g(p);
2042
+ function O() {
2043
+ e.readonly || e.disabled || (s.value ? G() : oe());
2044
+ }
2045
+ let ne;
2046
+ function H(c) {
2047
+ if (!(!c.key || e.readonly || e.disabled)) {
2048
+ if (window.clearTimeout(ne), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (s.value = !0), ["Escape", "Tab"].includes(c.key) && (s.value ? s.value = !1 : E.value && c.key === "Escape" && T()), c.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(c.key)) {
2049
+ i.value += c.key.toLowerCase();
2050
+ for (let h = 0; h < e.items.length; h++)
2051
+ if (e.items[h][e.itemLabel].toLowerCase().startsWith(i.value)) {
2052
+ g(h);
1836
2053
  break;
1837
2054
  }
1838
2055
  }
1839
- ee = window.setTimeout(function() {
2056
+ ne = window.setTimeout(function() {
1840
2057
  i.value = "";
1841
2058
  }, 500);
1842
2059
  }
1843
2060
  }
1844
- function te() {
1845
- var d;
1846
- e.loading ? (d = v.value) == null || d.focus() : f(), n("show");
2061
+ function le() {
2062
+ var c;
2063
+ e.loading ? (c = f.value) == null || c.focus() : p(), n("show");
1847
2064
  }
1848
- function A() {
1849
- W(), n("hide");
2065
+ function Q() {
2066
+ R(), n("hide");
1850
2067
  }
1851
- function W() {
1852
- var d, p;
1853
- (p = (d = a.value) == null ? void 0 : d.fieldRef) == null || p.focus();
2068
+ function R() {
2069
+ var c, h;
2070
+ (h = (c = a.value) == null ? void 0 : c.fieldRef) == null || h.focus();
1854
2071
  }
1855
- function f() {
1856
- var d;
1857
- (d = c.value) == null || d.$el.focus();
2072
+ function p() {
2073
+ var c;
2074
+ (c = r.value) == null || c.$el.focus();
1858
2075
  }
1859
- function g(d) {
1860
- var p;
1861
- (p = c.value) == null || p.focusItem(d);
2076
+ function g(c) {
2077
+ var h;
2078
+ (h = r.value) == null || h.focusItem(c);
1862
2079
  }
1863
- return R(
2080
+ return Z(
1864
2081
  () => e.loading,
1865
- (d) => {
1866
- !d && s.value && X(f);
2082
+ (c) => {
2083
+ !c && s.value && J(p);
1867
2084
  }
1868
- ), (d, p) => {
1869
- var F, oe;
1870
- return u(), m(se, null, [
1871
- Q(y(Ie), {
2085
+ ), (c, h) => {
2086
+ var U, ae;
2087
+ return u(), v(te, null, [
2088
+ z(m(Ie), {
1872
2089
  id: e.id,
1873
2090
  label: e.label,
1874
2091
  required: e.required,
@@ -1891,125 +2108,125 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
1891
2108
  "aria-expanded": s.value,
1892
2109
  "aria-haspopup": "listbox",
1893
2110
  size: e.size,
1894
- onClick: M,
1895
- onKeydown: ce(P, ["stop"])
1896
- }, $e({
1897
- append: w(() => [
1898
- h(d.$slots, "append"),
1899
- T.value && l.value ? (u(), D(y(pe), {
2111
+ onClick: O,
2112
+ onKeydown: pe(H, ["stop"])
2113
+ }, qe({
2114
+ append: _(() => [
2115
+ y(c.$slots, "append"),
2116
+ E.value && l.value ? (u(), x(m(de), {
1900
2117
  key: 0,
1901
2118
  class: "q-select__clear",
1902
2119
  "b-style": "plain",
1903
2120
  borderless: "",
1904
2121
  tabindex: "-1",
1905
- onClick: B
2122
+ onClick: T
1906
2123
  }, {
1907
- default: w(() => [
1908
- Q(y(Y), ae(re(e.icons.clear)), null, 16)
2124
+ default: _(() => [
2125
+ z(m(F), W(ie(e.icons.clear)), null, 16)
1909
2126
  ]),
1910
2127
  _: 1
1911
- })) : q("", !0),
1912
- e.readonly ? q("", !0) : (u(), D(y(pe), {
2128
+ })) : $("", !0),
2129
+ e.readonly ? $("", !0) : (u(), x(m(de), {
1913
2130
  key: 1,
1914
2131
  class: "q-select__chevron",
1915
2132
  "b-style": "plain",
1916
2133
  borderless: "",
1917
2134
  tabindex: "-1",
1918
2135
  disabled: e.disabled,
1919
- onClick: M
2136
+ onClick: O
1920
2137
  }, {
1921
- default: w(() => [
1922
- Q(y(Y), ae(re(e.icons.chevron)), null, 16)
2138
+ default: _(() => [
2139
+ z(m(F), W(ie(e.icons.chevron)), null, 16)
1923
2140
  ]),
1924
2141
  _: 1
1925
2142
  }, 8, ["disabled"]))
1926
2143
  ]),
1927
- default: w(() => [
1928
- $.value ? (u(), m("span", Vo, [
1929
- !e.readonly && !e.disabled ? (u(), m(se, { key: 0 }, [
1930
- ve(j(d.texts.placeholder), 1)
1931
- ], 64)) : q("", !0)
1932
- ])) : (u(), m("span", Bo, j(z.value), 1))
2144
+ default: _(() => [
2145
+ q.value ? (u(), v("span", Jo, [
2146
+ !e.readonly && !e.disabled ? (u(), v(te, { key: 0 }, [
2147
+ me(N(c.texts.placeholder), 1)
2148
+ ], 64)) : $("", !0)
2149
+ ])) : (u(), v("span", Zo, N(M.value), 1))
1933
2150
  ]),
1934
2151
  _: 2
1935
2152
  }, [
1936
- (F = x.value) != null && F.icon || d.$slots.prepend ? {
2153
+ (U = I.value) != null && U.icon || c.$slots.prepend ? {
1937
2154
  name: "prepend",
1938
- fn: w(() => {
1939
- var U, le;
2155
+ fn: _(() => {
2156
+ var K, se;
1940
2157
  return [
1941
- h(d.$slots, "prepend"),
1942
- (U = x.value) != null && U.icon ? (u(), D(y(Y), ae(fe({ key: 0 }, (le = x.value) == null ? void 0 : le.icon)), null, 16)) : q("", !0)
2158
+ y(c.$slots, "prepend"),
2159
+ (K = I.value) != null && K.icon ? (u(), x(m(F), W(re({ key: 0 }, (se = I.value) == null ? void 0 : se.icon)), null, 16)) : $("", !0)
1943
2160
  ];
1944
2161
  }),
1945
2162
  key: "0"
1946
2163
  } : void 0,
1947
- d.$slots.extras ? {
2164
+ c.$slots.extras ? {
1948
2165
  name: "extras",
1949
- fn: w(() => [
1950
- h(d.$slots, "extras")
2166
+ fn: _(() => [
2167
+ y(c.$slots, "extras")
1951
2168
  ]),
1952
2169
  key: "1"
1953
2170
  } : void 0
1954
2171
  ]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size"]),
1955
- Q(y(ge), {
2172
+ z(m(he), {
1956
2173
  modelValue: s.value,
1957
- "onUpdate:modelValue": p[1] || (p[1] = (U) => s.value = U),
2174
+ "onUpdate:modelValue": h[1] || (h[1] = (K) => s.value = K),
1958
2175
  spy: "",
1959
2176
  trigger: "manual",
1960
2177
  placement: "bottom-start",
1961
2178
  width: "anchor",
1962
2179
  "scroll-lock": "",
1963
- anchor: (oe = a.value) == null ? void 0 : oe.$el,
2180
+ anchor: (ae = a.value) == null ? void 0 : ae.$el,
1964
2181
  offset: 2,
1965
- onEnter: te,
1966
- onLeave: A
2182
+ onEnter: le,
2183
+ onLeave: Q
1967
2184
  }, {
1968
- default: w(() => [
1969
- K("div", {
2185
+ default: _(() => [
2186
+ A("div", {
1970
2187
  ref_key: "contentRef",
1971
- ref: v,
2188
+ ref: f,
1972
2189
  "data-testid": "combobox-dropdown",
1973
2190
  "data-key": e.id,
1974
2191
  class: "q-select__body",
1975
2192
  tabindex: "-1",
1976
- onFocusout: G,
1977
- onKeydown: ce(P, ["stop"])
2193
+ onFocusout: Y,
2194
+ onKeydown: pe(H, ["stop"])
1978
2195
  }, [
1979
- h(d.$slots, "body.prepend"),
1980
- e.loading ? (u(), m("div", To, [
1981
- Q(y(qe), { size: 24 })
1982
- ])) : (u(), D(y(Ce), {
2196
+ y(c.$slots, "body.prepend"),
2197
+ e.loading ? (u(), v("div", tn, [
2198
+ z(m(xe), { size: 24 })
2199
+ ])) : (u(), x(m(Te), {
1983
2200
  key: 1,
1984
2201
  ref_key: "listRef",
1985
- ref: c,
2202
+ ref: r,
1986
2203
  class: "q-select__items",
1987
2204
  modelValue: l.value,
1988
2205
  "onUpdate:modelValue": [
1989
- p[0] || (p[0] = (U) => l.value = U),
1990
- I
2206
+ h[0] || (h[0] = (K) => l.value = K),
2207
+ S
1991
2208
  ],
1992
2209
  items: e.items,
1993
- groups: d.groups,
2210
+ groups: c.groups,
1994
2211
  "item-label": e.itemLabel,
1995
2212
  "item-value": e.itemValue
1996
2213
  }, {
1997
- item: w(({ item: U }) => [
1998
- h(d.$slots, "item", { item: U })
2214
+ item: _(({ item: K }) => [
2215
+ y(c.$slots, "item", { item: K })
1999
2216
  ]),
2000
2217
  _: 3
2001
2218
  }, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
2002
- h(d.$slots, "body.append")
2003
- ], 40, Co)
2219
+ y(c.$slots, "body.append")
2220
+ ], 40, en)
2004
2221
  ]),
2005
2222
  _: 3
2006
2223
  }, 8, ["modelValue", "anchor"])
2007
2224
  ], 64);
2008
2225
  };
2009
2226
  }
2010
- }), zo = S(Ao), Qo = /* @__PURE__ */ K("div", { class: "q-skeleton-loader__bone" }, null, -1), Mo = [
2011
- Qo
2012
- ], Fo = /* @__PURE__ */ L({
2227
+ }), an = B(ln), sn = /* @__PURE__ */ A("div", { class: "q-skeleton-loader__bone" }, null, -1), rn = [
2228
+ sn
2229
+ ], dn = /* @__PURE__ */ L({
2013
2230
  __name: "QSkeletonLoader",
2014
2231
  props: {
2015
2232
  type: { default: void 0 },
@@ -2024,27 +2241,27 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
2024
2241
  height: s
2025
2242
  };
2026
2243
  });
2027
- return (l, s) => (u(), m("div", {
2244
+ return (l, s) => (u(), v("div", {
2028
2245
  class: C(["q-skeleton-loader", e.value]),
2029
- style: ie(n.value)
2030
- }, Mo, 6));
2246
+ style: ue(n.value)
2247
+ }, rn, 6));
2031
2248
  }
2032
- }), Oo = S(Fo), Po = /* @__PURE__ */ L({
2249
+ }), un = B(dn), cn = /* @__PURE__ */ L({
2033
2250
  __name: "QThemeProvider",
2034
2251
  props: {
2035
2252
  theme: {}
2036
2253
  },
2037
2254
  setup(t) {
2038
2255
  const o = t;
2039
- return (e, n) => (u(), m("div", {
2256
+ return (e, n) => (u(), v("div", {
2040
2257
  class: C(["q-theme-provider", `q-theme--${o.theme}`])
2041
2258
  }, [
2042
- h(e.$slots, "default")
2259
+ y(e.$slots, "default")
2043
2260
  ], 2));
2044
2261
  }
2045
- }), Uo = S(Po), No = ["innerHTML"], Ho = { key: 1 }, Ko = /* @__PURE__ */ L({
2262
+ }), fn = B(cn), pn = ["innerHTML"], mn = /* @__PURE__ */ L({
2046
2263
  __name: "QTooltip",
2047
- props: /* @__PURE__ */ Z({
2264
+ props: /* @__PURE__ */ X({
2048
2265
  id: { default: void 0 },
2049
2266
  anchor: {},
2050
2267
  appearance: { default: "inverted" },
@@ -2056,6 +2273,7 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
2056
2273
  html: { type: Boolean, default: !0 },
2057
2274
  placement: { default: "right" },
2058
2275
  text: {},
2276
+ icon: { default: void 0 },
2059
2277
  trigger: { default: "hover" },
2060
2278
  class: { default: void 0 }
2061
2279
  }, {
@@ -2064,17 +2282,17 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
2064
2282
  }),
2065
2283
  emits: ["update:modelValue"],
2066
2284
  setup(t) {
2067
- const o = t, e = ne(t, "modelValue"), n = ye(o.id);
2068
- return (l, s) => (u(), m(se, null, [
2069
- h(l.$slots, "anchor", {
2070
- props: { "aria-describedby": y(n) }
2285
+ const o = t, e = ee(t, "modelValue"), n = ve(o.id);
2286
+ return (l, s) => (u(), v(te, null, [
2287
+ y(l.$slots, "anchor", {
2288
+ props: { "aria-describedby": m(n) }
2071
2289
  }),
2072
- Q(y(ge), {
2290
+ z(m(he), {
2073
2291
  "model-value": e.value,
2074
2292
  anchor: o.anchor,
2075
2293
  role: "tooltip",
2076
2294
  "non-modal": "",
2077
- id: y(n),
2295
+ id: m(n),
2078
2296
  appearance: o.appearance,
2079
2297
  arrow: o.arrow,
2080
2298
  attach: o.attach,
@@ -2085,71 +2303,68 @@ const Xt = ["role"], Yt = /* @__PURE__ */ L({
2085
2303
  placement: o.placement,
2086
2304
  trigger: o.trigger
2087
2305
  }, {
2088
- default: w(() => [
2089
- o.html ? (u(), m("span", {
2090
- key: 0,
2091
- innerHTML: o.text
2092
- }, null, 8, No)) : (u(), m("span", Ho, j(o.text), 1))
2306
+ default: _(() => [
2307
+ y(l.$slots, "default", {}, () => [
2308
+ o.icon ? (u(), x(m(F), W(re({ key: 0 }, o.icon)), null, 16)) : $("", !0),
2309
+ o.html ? (u(), v("span", {
2310
+ key: 1,
2311
+ innerHTML: o.text
2312
+ }, null, 8, pn)) : (u(), v(te, { key: 2 }, [
2313
+ me(N(o.text), 1)
2314
+ ], 64))
2315
+ ])
2093
2316
  ]),
2094
- _: 1
2317
+ _: 3
2095
2318
  }, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "inline", "class", "delay", "disabled", "placement", "trigger"])
2096
2319
  ], 64));
2097
2320
  }
2098
- }), jo = S(Ko), Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2321
+ }), vn = B(mn), hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2099
2322
  __proto__: null,
2100
- QButton: pe,
2101
- QButtonGroup: Ye,
2102
- QButtonToggle: gt,
2103
- QCombobox: mo,
2323
+ QBadge: Dt,
2324
+ QButton: de,
2325
+ QButtonGroup: tt,
2326
+ QButtonToggle: Qt,
2327
+ QCombobox: qo,
2328
+ QDialog: Qo,
2104
2329
  QField: Ie,
2105
- QIcon: Y,
2106
- QIconFont: Ze,
2107
- QIconImg: Je,
2108
- QIconSvg: et,
2109
- QInputGroup: _o,
2110
- QLineLoader: wo,
2111
- QList: Ce,
2112
- QListItem: tt,
2113
- QListItemGroup: ot,
2114
- QOverlay: ge,
2115
- QPopover: So,
2116
- QSelect: zo,
2117
- QSkeletonLoader: Oo,
2118
- QSpinnerLoader: qe,
2119
- QTextField: nt,
2120
- QThemeProvider: Uo,
2121
- QTooltip: jo
2122
- }, Symbol.toStringTag, { value: "Module" })), he = "q-theme";
2123
- function Wo() {
2124
- const t = He(he);
2330
+ QIcon: F,
2331
+ QIconFont: Ye,
2332
+ QIconImg: Ze,
2333
+ QIconSvg: Je,
2334
+ QInputGroup: No,
2335
+ QLineLoader: Ko,
2336
+ QList: Te,
2337
+ QListItem: ot,
2338
+ QListItemGroup: nt,
2339
+ QOverlay: he,
2340
+ QPopover: Yo,
2341
+ QSelect: an,
2342
+ QSkeletonLoader: un,
2343
+ QSpinnerLoader: xe,
2344
+ QTextField: lt,
2345
+ QThemeProvider: fn,
2346
+ QTooltip: vn
2347
+ }, Symbol.toStringTag, { value: "Module" })), be = "q-theme";
2348
+ function yn() {
2349
+ const t = He(be);
2125
2350
  if (!t)
2126
2351
  throw new Error("[Quidgest UI] Could not find theme instance");
2127
2352
  return t;
2128
2353
  }
2129
- function ln(t) {
2130
- const o = Wo(), e = {
2354
+ function xn(t) {
2355
+ const o = yn(), e = {
2131
2356
  activeTheme: V(t),
2132
2357
  themes: o.themes
2133
2358
  };
2134
- return Ne(he, e), e;
2135
- }
2136
- function Ro(t) {
2137
- return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
2138
- }
2139
- function Xo(t) {
2140
- if (!Ro(t))
2141
- throw new Error("Invalid color format");
2142
- t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
2143
- const o = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), n = parseInt(t.slice(5, 7), 16);
2144
- return { r: o, g: e, b: n };
2359
+ return Ne(be, e), e;
2145
2360
  }
2146
- function Yo() {
2361
+ function bn() {
2147
2362
  let t = document.getElementById(
2148
- he
2363
+ be
2149
2364
  );
2150
- return t || (t = document.createElement("style"), t.id = he, document.head.appendChild(t)), t;
2365
+ return t || (t = document.createElement("style"), t.id = be, document.head.appendChild(t)), t;
2151
2366
  }
2152
- function Zo(t) {
2367
+ function gn(t) {
2153
2368
  let o = "";
2154
2369
  for (const n of t) {
2155
2370
  o += `.q-theme--${n.name} {
@@ -2159,32 +2374,32 @@ function Zo(t) {
2159
2374
  for (s in l) {
2160
2375
  const i = l[s];
2161
2376
  if (i) {
2162
- o += ` ${Pe(s)}: ${i};
2377
+ o += ` ${Ue(s)}: ${i};
2163
2378
  `;
2164
- const a = Xo(i);
2165
- o += ` ${Pe(s)}-rgb: ${a.r} ${a.g} ${a.b};
2379
+ const a = et(i);
2380
+ o += ` ${Ue(s)}-rgb: ${a.r} ${a.g} ${a.b};
2166
2381
  `;
2167
2382
  }
2168
2383
  }
2169
2384
  o += `}
2170
2385
  `;
2171
2386
  }
2172
- const e = Yo();
2387
+ const e = bn();
2173
2388
  e.textContent = o;
2174
2389
  }
2175
- function Pe(t) {
2390
+ function Ue(t) {
2176
2391
  return t ? `--q-theme-${Xe(t)}` : "";
2177
2392
  }
2178
- function Jo(t = {}) {
2393
+ function _n(t = {}) {
2179
2394
  return { install: (e) => {
2180
2395
  const n = t.components || {};
2181
2396
  for (const s in n)
2182
2397
  e.component(s, n[s]);
2183
2398
  const l = t.defaults || {};
2184
- e.provide(Ve, V(l)), en(e, t.themes);
2399
+ e.provide(Ce, V(l)), kn(e, t.themes);
2185
2400
  } };
2186
2401
  }
2187
- function en(t, o) {
2402
+ function kn(t, o) {
2188
2403
  const e = [];
2189
2404
  let n;
2190
2405
  if (!o)
@@ -2207,18 +2422,18 @@ function en(t, o) {
2207
2422
  activeTheme: V(n),
2208
2423
  themes: e
2209
2424
  };
2210
- Zo(e), R(l.activeTheme, tn, { immediate: !0 }), t.provide(he, l);
2425
+ gn(e), Z(l.activeTheme, wn, { immediate: !0 }), t.provide(be, l);
2211
2426
  }
2212
2427
  }
2213
- function tn(t) {
2428
+ function wn(t) {
2214
2429
  const o = document.documentElement, n = Array.from(o.classList).filter((l) => !l.startsWith("q-theme"));
2215
2430
  o.className = n.join(" "), o.classList.add(`q-theme--${t}`);
2216
2431
  }
2217
- const an = (t = {}) => Jo({ components: Go, ...t });
2432
+ const In = (t = {}) => _n({ components: hn, ...t });
2218
2433
  export {
2219
- Go as components,
2220
- an as createFramework,
2221
- ln as provideTheme,
2222
- nn as templates,
2223
- Wo as useTheme
2434
+ hn as components,
2435
+ In as createFramework,
2436
+ xn as provideTheme,
2437
+ qn as templates,
2438
+ yn as useTheme
2224
2439
  };