@quidgest/ui 0.8.12 → 0.9.1

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