@quidgest/ui 0.12.1 → 0.13.0

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