@quidgest/ui 0.5.15 → 0.5.17

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,18 +1,18 @@
1
- import { getCurrentInstance as me, computed as y, ref as D, provide as Le, inject as he, watch as A, defineComponent as k, openBlock as r, createElementBlock as f, normalizeStyle as W, createElementVNode as K, normalizeClass as T, withModifiers as H, createVNode as U, unref as g, createCommentVNode as b, Fragment as Q, createTextVNode as X, toDisplayString as V, renderSlot as q, toRef as P, createBlock as S, withCtx as C, renderList as te, resolveDynamicComponent as ye, h as le, normalizeProps as ve, mergeProps as Z, reactive as xe, onBeforeUnmount as qe, onMounted as De, Teleport as Ie, Transition as Ee, nextTick as re, useAttrs as Ce, createSlots as Te, guardReactiveProps as Ve, withDirectives as Ae } from "vue";
2
- function ne(t) {
1
+ import { getCurrentInstance as he, computed as v, ref as I, provide as Le, inject as ye, watch as C, defineComponent as k, openBlock as r, createElementBlock as f, normalizeStyle as K, createElementVNode as F, normalizeClass as V, withModifiers as H, createVNode as U, unref as g, createCommentVNode as b, Fragment as O, createTextVNode as X, toDisplayString as A, renderSlot as x, toRef as ee, createBlock as $, withCtx as T, renderList as ne, resolveDynamicComponent as ve, h as re, normalizeProps as ge, mergeProps as Z, reactive as xe, onBeforeUnmount as qe, onMounted as Ie, Teleport as De, Transition as Te, nextTick as ie, useAttrs as Ee, createSlots as Ce, guardReactiveProps as Ve, withDirectives as Ae } from "vue";
2
+ function oe(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 ie(t) {
5
+ function ce(t) {
6
6
  return t !== null && typeof t == "object" && !Array.isArray(t);
7
7
  }
8
- function ge(t = {}, n = {}) {
8
+ function be(t = {}, n = {}) {
9
9
  const e = {};
10
10
  for (const o in t)
11
11
  e[o] = t[o];
12
12
  for (const o in n) {
13
13
  const s = t[o], a = n[o];
14
- if (ie(s) && ie(a)) {
15
- e[o] = ge(
14
+ if (ce(s) && ce(a)) {
15
+ e[o] = be(
16
16
  s,
17
17
  a
18
18
  );
@@ -22,33 +22,33 @@ function ge(t = {}, n = {}) {
22
22
  }
23
23
  return e;
24
24
  }
25
- const oe = "q-defaults";
25
+ const se = "q-defaults";
26
26
  function ze() {
27
- const t = me();
27
+ const t = he();
28
28
  if (!t)
29
29
  throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
30
30
  const n = t.type.name ?? t.type.__name;
31
31
  if (!n)
32
32
  throw new Error("[Quidgest UI] Could not determine component name");
33
- const e = be();
34
- return y(() => {
33
+ const e = _e();
34
+ return v(() => {
35
35
  var o;
36
36
  return (o = e.value) == null ? void 0 : o[n];
37
37
  });
38
38
  }
39
39
  function Qe(t) {
40
- if (ne(t))
40
+ if (oe(t))
41
41
  return;
42
- const n = be(), e = D(t), o = y(() => ne(e.value) ? n.value : ge(n.value, e.value));
43
- Le(oe, o);
42
+ const n = _e(), e = I(t), o = v(() => oe(e.value) ? n.value : be(n.value, e.value));
43
+ Le(se, o);
44
44
  }
45
- function be() {
46
- const t = he(oe, void 0);
45
+ function _e() {
46
+ const t = ye(se, void 0);
47
47
  if (!t)
48
48
  throw new Error("[Quidgest UI] Could not find defaults instance");
49
49
  return t;
50
50
  }
51
- const ce = {
51
+ const ue = {
52
52
  primary: "#00a1f8",
53
53
  primaryLight: "#e5f6ff",
54
54
  primaryDark: "#0079ba",
@@ -109,7 +109,7 @@ const ce = {
109
109
  onDanger: "#fff",
110
110
  onInfo: "#fff"
111
111
  };
112
- function _e(t) {
112
+ function ke(t) {
113
113
  if (!/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t))
114
114
  throw new Error("Invalid color format");
115
115
  t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
@@ -121,22 +121,22 @@ function Fe(t, n) {
121
121
  throw new Error("Amount must be in the range [0, 100]");
122
122
  if (n === 0)
123
123
  return t;
124
- const e = ke(t), o = n / 100;
125
- return e.l = e.l + o * (100 - e.l), we(e);
124
+ const e = we(t), o = n / 100;
125
+ return e.l = e.l + o * (100 - e.l), $e(e);
126
126
  }
127
127
  function Me(t, n) {
128
128
  if (n < 0 || n > 100)
129
129
  throw new Error("Amount must be in the range [0, 100]");
130
130
  if (n === 0)
131
131
  return t;
132
- const e = ke(t), o = n / 100;
133
- return e.l = e.l - o * e.l, we(e);
132
+ const e = we(t), o = n / 100;
133
+ return e.l = e.l - o * e.l, $e(e);
134
134
  }
135
- function ue(t) {
135
+ function de(t) {
136
136
  const n = t.r.toString(16).padStart(2, "0"), e = t.g.toString(16).padStart(2, "0"), o = t.b.toString(16).padStart(2, "0");
137
137
  return `#${n}${e}${o}`;
138
138
  }
139
- function ke(t) {
139
+ function we(t) {
140
140
  const n = t.r / 255, e = t.g / 255, o = t.b / 255, s = Math.max(n, e, o), a = Math.min(n, e, o);
141
141
  let l = 0, c;
142
142
  const i = (s + a) / 2;
@@ -163,14 +163,14 @@ function ke(t) {
163
163
  l: Math.round(i * 100)
164
164
  };
165
165
  }
166
- function we(t) {
166
+ function $e(t) {
167
167
  const n = t.h / 360, e = t.s / 100, o = t.l / 100;
168
168
  let s, a, l;
169
169
  if (e === 0)
170
170
  s = a = l = o;
171
171
  else {
172
172
  const c = o < 0.5 ? o * (1 + e) : o + e - o * e, i = 2 * o - c;
173
- s = ee(i, c, n + 1 / 3), a = ee(i, c, n), l = ee(i, c, n - 1 / 3);
173
+ s = te(i, c, n + 1 / 3), a = te(i, c, n), l = te(i, c, n - 1 / 3);
174
174
  }
175
175
  return {
176
176
  r: Math.round(s * 255),
@@ -178,12 +178,12 @@ function we(t) {
178
178
  b: Math.round(l * 255)
179
179
  };
180
180
  }
181
- function ee(t, n, e) {
181
+ function te(t, n, e) {
182
182
  return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? t + (n - t) * 6 * e : e < 1 / 2 ? n : e < 2 / 3 ? t + (n - t) * (2 / 3 - e) * 6 : t;
183
183
  }
184
184
  const j = "q-theme";
185
- function tn() {
186
- const t = he(j);
185
+ function nn() {
186
+ const t = ye(j);
187
187
  if (!t)
188
188
  throw new Error("[Quidgest UI] Could not find theme instance");
189
189
  return t;
@@ -192,14 +192,14 @@ function Re(t, n) {
192
192
  let e = null;
193
193
  if (n)
194
194
  for (const o of n.themes) {
195
- const s = o.mode === "light" ? ce : Oe;
195
+ const s = o.mode === "light" ? ue : Oe;
196
196
  if (o.colors) {
197
197
  let a;
198
198
  for (a in o.colors) {
199
199
  const l = o.colors[a];
200
200
  if (l && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
201
- const c = _e(l), i = `${a}Light`, h = `${a}Dark`;
202
- i in o.colors || (o.colors[i] = ue(Fe(c, 85))), h in o.colors || (o.colors[h] = ue(Me(c, 25)));
201
+ const c = ke(l), i = `${a}Light`, h = `${a}Dark`;
202
+ i in o.colors || (o.colors[i] = de(Fe(c, 85))), h in o.colors || (o.colors[h] = de(Me(c, 25)));
203
203
  }
204
204
  }
205
205
  }
@@ -210,18 +210,18 @@ function Re(t, n) {
210
210
  e = {
211
211
  name: o,
212
212
  mode: "light",
213
- colors: ce
213
+ colors: ue
214
214
  }, n = {
215
215
  defaultTheme: o,
216
216
  themes: [e]
217
217
  };
218
218
  }
219
219
  if (e) {
220
- const o = D({
220
+ const o = I({
221
221
  activeTheme: e.name,
222
222
  themes: n.themes
223
223
  });
224
- A(
224
+ C(
225
225
  () => o.value.activeTheme,
226
226
  (s) => {
227
227
  const a = o.value.themes.find((l) => l.name === s);
@@ -244,19 +244,19 @@ function Ue(t) {
244
244
  for (o in t) {
245
245
  const s = t[o];
246
246
  if (s) {
247
- e += ` ${de(o)}: ${s};
247
+ e += ` ${fe(o)}: ${s};
248
248
  `;
249
- const a = _e(s);
250
- e += ` ${de(o)}-rgb: ${a.r} ${a.g} ${a.b};
249
+ const a = ke(s);
250
+ e += ` ${fe(o)}-rgb: ${a.r} ${a.g} ${a.b};
251
251
  `;
252
252
  }
253
253
  }
254
254
  e += "}", n.textContent = e;
255
255
  }
256
- function de(t) {
256
+ function fe(t) {
257
257
  return t ? `--q-theme-${t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
258
258
  }
259
- function nn(t = {}) {
259
+ function on(t = {}) {
260
260
  return { install: (e) => {
261
261
  const o = t.components || {};
262
262
  for (const l in o)
@@ -265,11 +265,11 @@ function nn(t = {}) {
265
265
  for (const l in s)
266
266
  e.directive(l, s[l]);
267
267
  const a = t.defaults || {};
268
- e.provide(oe, D(a)), Re(e, t.themes);
268
+ e.provide(se, I(a)), Re(e, t.themes);
269
269
  } };
270
270
  }
271
- const Ne = /* @__PURE__ */ K("svg", { viewBox: "25 25 50 50" }, [
272
- /* @__PURE__ */ K("circle", {
271
+ const Ne = /* @__PURE__ */ F("svg", { viewBox: "25 25 50 50" }, [
272
+ /* @__PURE__ */ F("circle", {
273
273
  class: "path",
274
274
  cx: "50",
275
275
  cy: "50",
@@ -287,12 +287,12 @@ const Ne = /* @__PURE__ */ K("svg", { viewBox: "25 25 50 50" }, [
287
287
  size: { default: 48 }
288
288
  },
289
289
  setup(t) {
290
- const n = t, e = y(() => ({
290
+ const n = t, e = v(() => ({
291
291
  "font-size": n.size !== 48 ? `${n.size}px` : void 0
292
292
  }));
293
293
  return (o, s) => (r(), f("div", {
294
294
  class: "q-spinner-loader",
295
- style: W(e.value)
295
+ style: K(e.value)
296
296
  }, Ke, 4));
297
297
  }
298
298
  });
@@ -304,9 +304,9 @@ function w(t) {
304
304
  const n = t.setup;
305
305
  return n && (t.setup = (e, o) => {
306
306
  const s = ze();
307
- if (ne(s.value))
307
+ if (oe(s.value))
308
308
  return n(e, o);
309
- const a = me();
309
+ const a = he();
310
310
  if (a === null)
311
311
  return n(e, o);
312
312
  const l = new Proxy(e, {
@@ -319,7 +319,7 @@ function w(t) {
319
319
  return n(l, o);
320
320
  }), t;
321
321
  }
322
- const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
322
+ const Se = w(We), Ye = ["disabled", "onClick"], Xe = {
323
323
  key: 0,
324
324
  class: "q-btn__spinner"
325
325
  }, Ze = { class: "q-btn__content" }, je = /* @__PURE__ */ k({
@@ -338,12 +338,12 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
338
338
  },
339
339
  emits: ["click"],
340
340
  setup(t, { emit: n }) {
341
- const e = t, o = y(() => e.disabled || e.loading);
341
+ const e = t, o = v(() => e.disabled || e.loading);
342
342
  function s(l) {
343
343
  o.value || n("click", l);
344
344
  }
345
- const a = y(() => {
346
- const l = y(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), c = y(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
345
+ const a = v(() => {
346
+ const l = v(() => e.bStyle ? `q-btn--${e.bStyle}` : void 0), c = v(() => e.size !== "regular" ? `q-btn--${e.size}` : void 0);
347
347
  return [
348
348
  "q-btn",
349
349
  l.value,
@@ -359,20 +359,20 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
359
359
  });
360
360
  return (l, c) => (r(), f("button", {
361
361
  type: "button",
362
- class: T(a.value),
362
+ class: V(a.value),
363
363
  disabled: o.value,
364
364
  onClick: H(s, ["stop", "prevent"])
365
365
  }, [
366
366
  l.loading ? (r(), f("div", Xe, [
367
- U(g($e), { size: 23 })
367
+ U(g(Se), { size: 23 })
368
368
  ])) : b("", !0),
369
- K("span", Ze, [
370
- l.iconOnRight ? (r(), f(Q, { key: 0 }, [
371
- X(V(e.label), 1)
369
+ F("span", Ze, [
370
+ l.iconOnRight ? (r(), f(O, { key: 0 }, [
371
+ X(A(e.label), 1)
372
372
  ], 64)) : b("", !0),
373
- q(l.$slots, "default"),
374
- l.iconOnRight ? b("", !0) : (r(), f(Q, { key: 1 }, [
375
- X(V(e.label), 1)
373
+ x(l.$slots, "default"),
374
+ l.iconOnRight ? b("", !0) : (r(), f(O, { key: 1 }, [
375
+ X(A(e.label), 1)
376
376
  ], 64))
377
377
  ])
378
378
  ], 10, Ye));
@@ -389,22 +389,22 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
389
389
  const n = t;
390
390
  Qe({
391
391
  QButton: {
392
- bStyle: P(n, "bStyle"),
393
- disabled: P(n, "disabled"),
394
- borderless: P(n, "borderless"),
392
+ bStyle: ee(n, "bStyle"),
393
+ disabled: ee(n, "disabled"),
394
+ borderless: ee(n, "borderless"),
395
395
  elevated: !1
396
396
  }
397
397
  });
398
- const e = y(() => [
398
+ const e = v(() => [
399
399
  "q-btn-group",
400
400
  {
401
401
  "q-btn-group--elevated": n.elevated
402
402
  }
403
403
  ]);
404
404
  return (o, s) => (r(), f("div", {
405
- class: T(e.value)
405
+ class: V(e.value)
406
406
  }, [
407
- q(o.$slots, "default")
407
+ x(o.$slots, "default")
408
408
  ], 2));
409
409
  }
410
410
  }), et = w(Pe), tt = /* @__PURE__ */ k({
@@ -419,12 +419,12 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
419
419
  },
420
420
  emits: ["update:modelValue"],
421
421
  setup(t, { emit: n }) {
422
- const e = t, o = D(e.modelValue);
423
- A(
422
+ const e = t, o = I(e.modelValue);
423
+ C(
424
424
  () => e.modelValue,
425
425
  (l) => o.value = l
426
426
  );
427
- const s = y({
427
+ const s = v({
428
428
  get() {
429
429
  return o.value;
430
430
  },
@@ -435,22 +435,22 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
435
435
  function a(l) {
436
436
  s.value === l.key && !e.mandatory ? s.value = void 0 : s.value = l.key;
437
437
  }
438
- return (l, c) => (r(), S(g(et), {
438
+ return (l, c) => (r(), $(g(et), {
439
439
  "b-style": "secondary",
440
440
  disabled: e.disabled,
441
441
  borderless: e.borderless,
442
442
  elevated: e.elevated
443
443
  }, {
444
- default: C(() => [
445
- (r(!0), f(Q, null, te(e.options, (i) => (r(), S(g(Je), {
444
+ default: T(() => [
445
+ (r(!0), f(O, null, ne(e.options, (i) => (r(), $(g(Je), {
446
446
  key: i.key,
447
447
  title: i.title,
448
448
  label: i.label,
449
449
  active: s.value === i.key,
450
450
  onClick: (h) => a(i)
451
451
  }, {
452
- default: C(() => [
453
- q(l.$slots, i.key)
452
+ default: T(() => [
453
+ x(l.$slots, i.key)
454
454
  ]),
455
455
  _: 2
456
456
  }, 1032, ["title", "label", "active", "onClick"]))), 128))
@@ -458,7 +458,7 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
458
458
  _: 3
459
459
  }, 8, ["disabled", "borderless", "elevated"]));
460
460
  }
461
- }), on = w(tt), nt = /* @__PURE__ */ k({
461
+ }), sn = w(tt), nt = /* @__PURE__ */ k({
462
462
  __name: "QIcon",
463
463
  props: {
464
464
  icon: {},
@@ -466,19 +466,19 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
466
466
  size: { default: void 0 }
467
467
  },
468
468
  setup(t) {
469
- const n = t, e = y(() => {
469
+ const n = t, e = v(() => {
470
470
  switch (n.type) {
471
471
  case "svg":
472
- return ft;
472
+ return pt;
473
473
  case "font":
474
- return ut;
475
- case "img":
476
474
  return dt;
475
+ case "img":
476
+ return ft;
477
477
  default:
478
478
  return;
479
479
  }
480
480
  });
481
- return (o, s) => n.icon ? (r(), S(ye(e.value), {
481
+ return (o, s) => n.icon ? (r(), $(ve(e.value), {
482
482
  key: 0,
483
483
  icon: n.icon,
484
484
  size: n.size
@@ -493,33 +493,34 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
493
493
  size: { default: void 0 }
494
494
  },
495
495
  setup(t) {
496
- const n = t, e = y(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = y(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), s = y(() => ({
496
+ const n = t, e = v(() => n.variant ? `${n.library}-${n.variant}` : n.library), o = v(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), s = v(() => ({
497
497
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
498
498
  }));
499
499
  return (a, l) => o.value ? (r(), f("i", {
500
500
  key: 0,
501
- class: T(["q-icon", "q-icon__font", e.value, o.value]),
502
- style: W(s.value)
501
+ class: V(["q-icon", "q-icon__font", e.value, o.value]),
502
+ style: K(s.value)
503
503
  }, null, 6)) : b("", !0);
504
504
  }
505
- }), st = ["src"], at = /* @__PURE__ */ k({
505
+ }), st = { key: 0 }, at = ["src"], lt = /* @__PURE__ */ k({
506
506
  __name: "QIconImg",
507
507
  props: {
508
508
  icon: {},
509
509
  size: {}
510
510
  },
511
511
  setup(t) {
512
- const n = t, e = y(() => ({
512
+ const n = t, e = v(() => ({
513
513
  "font-size": n.size !== void 0 ? `${n.size}px` : void 0
514
514
  }));
515
- return (o, s) => n.icon ? (r(), f("img", {
516
- key: 0,
517
- src: n.icon,
518
- class: "q-icon",
519
- style: W(e.value)
520
- }, null, 12, st)) : b("", !0);
515
+ return (o, s) => n.icon ? (r(), f("i", st, [
516
+ F("img", {
517
+ src: n.icon,
518
+ class: "q-icon q-icon__img",
519
+ style: K(e.value)
520
+ }, null, 12, at)
521
+ ])) : b("", !0);
521
522
  }
522
- }), R = {}, lt = k({
523
+ }), R = {}, rt = k({
523
524
  name: "InlineSvg",
524
525
  emits: ["loaded", "unloaded", "error"],
525
526
  inheritAttrs: !1,
@@ -528,9 +529,9 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
528
529
  return null;
529
530
  const t = this.getSvgContent(this.svgElSource);
530
531
  if (!t)
531
- return le("div", this.$attrs);
532
+ return re("div", this.$attrs);
532
533
  const n = {};
533
- return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, le("svg", n);
534
+ return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, re("svg", n);
534
535
  },
535
536
  props: {
536
537
  src: {
@@ -575,7 +576,7 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
575
576
  o !== !1 && o !== null && o !== void 0 && (t[e] = o);
576
577
  },
577
578
  getSvgContent(t) {
578
- 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)), rt(t, this.title)), t);
579
+ return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), it(t, this.title)), t);
579
580
  },
580
581
  /**
581
582
  * Get svgElSource
@@ -583,7 +584,7 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
583
584
  */
584
585
  async getSource(t) {
585
586
  try {
586
- R[t] || (R[t] = it(this.download(t))), this.svgElSource && R[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
587
+ R[t] || (R[t] = ct(this.download(t))), this.svgElSource && R[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
587
588
  const n = await R[t];
588
589
  this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
589
590
  } catch (n) {
@@ -611,7 +612,7 @@ const $e = w(We), Ye = ["disabled", "onClick"], Xe = {
611
612
  }
612
613
  }
613
614
  });
614
- function rt(t, n) {
615
+ function it(t, n) {
615
616
  const e = t.getElementsByTagName("title");
616
617
  if (e.length)
617
618
  e[0].textContent = n;
@@ -620,7 +621,7 @@ function rt(t, n) {
620
621
  o.textContent = n, t.insertBefore(o, t.firstChild);
621
622
  }
622
623
  }
623
- function it(t) {
624
+ function ct(t) {
624
625
  if (t.getIsPending)
625
626
  return t;
626
627
  let n = !0;
@@ -632,7 +633,7 @@ function it(t) {
632
633
  );
633
634
  return e.getIsPending = () => n, e;
634
635
  }
635
- const ct = /* @__PURE__ */ k({
636
+ const ut = /* @__PURE__ */ k({
636
637
  __name: "QIconSvg",
637
638
  props: {
638
639
  icon: {},
@@ -641,26 +642,26 @@ const ct = /* @__PURE__ */ k({
641
642
  },
642
643
  emits: ["loaded", "unloaded"],
643
644
  setup(t, { emit: n }) {
644
- const e = t, o = y(() => ({
645
+ const e = t, o = v(() => ({
645
646
  "font-size": e.size !== void 0 ? `${e.size}px` : void 0
646
647
  }));
647
- return (s, a) => e.icon ? (r(), S(g(lt), {
648
+ return (s, a) => e.icon ? (r(), $(g(rt), {
648
649
  key: 0,
649
650
  class: "q-icon q-icon__svg",
650
651
  src: e.bundle,
651
652
  symbol: e.icon,
652
- style: W(o.value),
653
+ style: K(o.value),
653
654
  onLoaded: a[0] || (a[0] = (l) => n("loaded", l)),
654
655
  onUnloaded: a[1] || (a[1] = (l) => n("unloaded", l))
655
656
  }, null, 8, ["src", "symbol", "style"])) : b("", !0);
656
657
  }
657
- }), N = w(nt), ut = w(ot), dt = w(at), ft = w(ct), pt = {
658
+ }), N = w(nt), dt = w(ot), ft = w(lt), pt = w(ut), mt = {
658
659
  key: 0,
659
660
  class: "q-input__prepend"
660
- }, mt = {
661
+ }, ht = {
661
662
  key: 1,
662
663
  class: "q-input__append"
663
- }, ht = /* @__PURE__ */ k({
664
+ }, yt = /* @__PURE__ */ k({
664
665
  __name: "QInput",
665
666
  props: {
666
667
  size: { default: "medium" },
@@ -670,31 +671,31 @@ const ct = /* @__PURE__ */ k({
670
671
  setup(t) {
671
672
  const n = t;
672
673
  return (e, o) => (r(), f("div", {
673
- class: T([
674
+ class: V([
674
675
  "q-input",
675
676
  `q-input--${n.size}`,
676
677
  { "q-input--readonly": n.readonly, "q-input--disabled": n.disabled }
677
678
  ])
678
679
  }, [
679
- e.$slots.prepend ? (r(), f("div", pt, [
680
- q(e.$slots, "prepend")
680
+ e.$slots.prepend ? (r(), f("div", mt, [
681
+ x(e.$slots, "prepend")
681
682
  ])) : b("", !0),
682
- q(e.$slots, "default"),
683
- e.$slots.append ? (r(), f("div", mt, [
684
- q(e.$slots, "append")
683
+ x(e.$slots, "default"),
684
+ e.$slots.append ? (r(), f("div", ht, [
685
+ x(e.$slots, "append")
685
686
  ])) : b("", !0)
686
687
  ], 2));
687
688
  }
688
- }), yt = w(ht), vt = (t, n) => {
689
+ }), vt = w(yt), gt = (t, n) => {
689
690
  const e = t.__vccOpts || t;
690
691
  for (const [o, s] of n)
691
692
  e[o] = s;
692
693
  return e;
693
- }, gt = {}, bt = { class: "q-line-loader" };
694
- function _t(t, n) {
695
- return r(), f("div", bt);
694
+ }, bt = {}, _t = { class: "q-line-loader" };
695
+ function kt(t, n) {
696
+ return r(), f("div", _t);
696
697
  }
697
- const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE__ */ k({
698
+ const wt = /* @__PURE__ */ gt(bt, [["render", kt]]), an = w(wt), $t = /* @__PURE__ */ k({
698
699
  __name: "QList",
699
700
  props: {
700
701
  modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
@@ -706,16 +707,16 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
706
707
  },
707
708
  emits: ["update:modelValue"],
708
709
  setup(t, { expose: n, emit: e }) {
709
- const o = t, s = D(o.modelValue), a = y(() => l.value.length > 1 ? "div" : "ul"), l = y(() => o.groups.length ? o.groups : [{ title: "" }]), c = D(null);
710
- function i(u) {
711
- s.value = u, e("update:modelValue", u);
710
+ const o = t, s = I(o.modelValue), a = v(() => l.value.length > 1 ? "div" : "ul"), l = v(() => o.groups.length ? o.groups : [{ title: "" }]), c = I(null);
711
+ function i(d) {
712
+ s.value = d, e("update:modelValue", d);
712
713
  }
713
714
  function h() {
714
- let u = 0;
715
- s.value && (u = o.items.findIndex(($) => $[o.itemValue] === s.value)), I(u);
715
+ let d = 0;
716
+ s.value && (d = o.items.findIndex((S) => S[o.itemValue] === s.value)), D(d);
716
717
  }
717
- function _(u) {
718
- switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && u.preventDefault(), u.key) {
718
+ function _(d) {
719
+ switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
719
720
  case "ArrowDown":
720
721
  p("next");
721
722
  break;
@@ -730,67 +731,67 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
730
731
  break;
731
732
  }
732
733
  }
733
- function p(u) {
734
- switch (u) {
734
+ function p(d) {
735
+ switch (d) {
735
736
  case "next":
736
737
  case "prev":
737
- I(F(u));
738
+ D(E(d));
738
739
  break;
739
740
  case "first":
740
- I(0);
741
+ D(0);
741
742
  break;
742
743
  case "last":
743
- I(-1);
744
+ D(-1);
744
745
  break;
745
746
  }
746
747
  }
747
- function I(u) {
748
- var v;
749
- (v = E().at(u)) == null || v.focus();
748
+ function D(d) {
749
+ var y;
750
+ (y = z().at(d)) == null || y.focus();
750
751
  }
751
- function E() {
752
- var v;
753
- const u = (v = c.value) == null ? void 0 : v.querySelectorAll("li");
754
- return u ? Array.from(u).filter((x) => x.tabIndex !== -1) : [];
752
+ function z() {
753
+ var y;
754
+ const d = (y = c.value) == null ? void 0 : y.querySelectorAll("li");
755
+ return d ? Array.from(d).filter((L) => L.tabIndex !== -1) : [];
755
756
  }
756
- function z(u) {
757
- return u.indexOf(document.activeElement);
757
+ function Q(d) {
758
+ return d.indexOf(document.activeElement);
758
759
  }
759
- function F(u) {
760
- const $ = E(), v = z($);
761
- return u === "next" ? v === $.length - 1 ? v : v + 1 : v === 0 ? 0 : v - 1;
760
+ function E(d) {
761
+ const S = z(), y = Q(S);
762
+ return d === "next" ? y === S.length - 1 ? y : y + 1 : y === 0 ? 0 : y - 1;
762
763
  }
763
- function M(u) {
764
- return u ? o.items.filter(($) => $.group === u) : o.items;
764
+ function M(d) {
765
+ return d ? o.items.filter((S) => S.group === d) : o.items;
765
766
  }
766
- return A(
767
+ return C(
767
768
  () => o.modelValue,
768
- (u) => {
769
- s.value = u;
769
+ (d) => {
770
+ s.value = d;
770
771
  }
771
- ), n({ focusItem: I }), (u, $) => (r(), S(ye(a.value), {
772
+ ), n({ focusItem: D }), (d, S) => (r(), $(ve(a.value), {
772
773
  ref_key: "listRef",
773
774
  ref: c,
774
- class: T(["q-list", { "q-list--disabled": o.disabled }]),
775
+ class: V(["q-list", { "q-list--disabled": o.disabled }]),
775
776
  role: "listbox",
776
777
  tabindex: o.disabled ? -1 : 0,
777
778
  onFocus: h,
778
779
  onKeydown: _
779
780
  }, {
780
- default: C(() => [
781
- (r(!0), f(Q, null, te(l.value, (v) => (r(), S(g(Vt), {
782
- key: v.id,
783
- title: v.title,
784
- disabled: v.disabled
781
+ default: T(() => [
782
+ (r(!0), f(O, null, ne(l.value, (y) => (r(), $(g(At), {
783
+ key: y.id,
784
+ title: y.title,
785
+ disabled: y.disabled
785
786
  }, {
786
- default: C(() => [
787
- (r(!0), f(Q, null, te(M(v.id), (x) => (r(), S(g(Tt), {
788
- key: x[o.itemValue],
789
- value: x[o.itemValue],
790
- label: x[o.itemLabel],
791
- icon: x.icon,
792
- disabled: o.disabled || x.disabled,
793
- selected: s.value === x[o.itemValue],
787
+ default: T(() => [
788
+ (r(!0), f(O, null, ne(M(y.id), (L) => (r(), $(g(Vt), {
789
+ key: L[o.itemValue],
790
+ value: L[o.itemValue],
791
+ label: L[o.itemLabel],
792
+ icon: L.icon,
793
+ disabled: o.disabled || L.disabled,
794
+ selected: s.value === L[o.itemValue],
794
795
  onSelect: i
795
796
  }, null, 8, ["value", "label", "icon", "disabled", "selected"]))), 128))
796
797
  ]),
@@ -800,11 +801,11 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
800
801
  _: 1
801
802
  }, 40, ["class", "tabindex"]));
802
803
  }
803
- }), $t = ["tabindex", "aria-label", "aria-selected", "onClick"], St = { class: "q-list-item__check-container" }, Bt = {
804
+ }), St = ["tabindex", "aria-label", "aria-selected", "onClick"], Bt = { class: "q-list-item__check-container" }, Lt = {
804
805
  check: {
805
806
  icon: "check"
806
807
  }
807
- }, Lt = /* @__PURE__ */ k({
808
+ }, xt = /* @__PURE__ */ k({
808
809
  __name: "QListItem",
809
810
  props: {
810
811
  value: { type: [String, Number, Boolean, Symbol] },
@@ -812,7 +813,7 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
812
813
  icon: { default: void 0 },
813
814
  selected: { type: Boolean, default: !1 },
814
815
  highlighted: { type: Boolean, default: !1 },
815
- icons: { default: () => Bt },
816
+ icons: { default: () => Lt },
816
817
  disabled: { type: Boolean, default: !1 }
817
818
  },
818
819
  emits: ["select"],
@@ -827,7 +828,7 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
827
828
  return (a, l) => (r(), f("li", {
828
829
  role: "option",
829
830
  tabindex: e.disabled ? void 0 : -2,
830
- class: T([
831
+ class: V([
831
832
  "q-list-item",
832
833
  {
833
834
  "q-list-item--disabled": e.disabled,
@@ -840,26 +841,26 @@ const kt = /* @__PURE__ */ vt(gt, [["render", _t]]), sn = w(kt), wt = /* @__PURE
840
841
  onKeydown: s,
841
842
  onClick: H(o, ["stop", "prevent"])
842
843
  }, [
843
- e.icon ? (r(), S(g(N), ve(Z({ key: 0 }, e.icon)), null, 16)) : b("", !0),
844
- X(" " + V(e.label) + " ", 1),
845
- K("div", St, [
846
- e.selected ? (r(), S(g(N), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
844
+ e.icon ? (r(), $(g(N), ge(Z({ key: 0 }, e.icon)), null, 16)) : b("", !0),
845
+ X(" " + A(e.label) + " ", 1),
846
+ F("div", Bt, [
847
+ e.selected ? (r(), $(g(N), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : b("", !0)
847
848
  ])
848
- ], 42, $t));
849
+ ], 42, St));
849
850
  }
850
851
  });
851
- let xt = 0;
852
- function qt() {
853
- return `uid-${++xt}`;
852
+ let qt = 0;
853
+ function It() {
854
+ return `uid-${++qt}`;
854
855
  }
855
- const Dt = ["aria-labelledby"], It = ["id"], Et = /* @__PURE__ */ k({
856
+ const Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */ k({
856
857
  __name: "QListItemGroup",
857
858
  props: {
858
859
  title: { default: "" },
859
860
  disabled: { type: Boolean, default: !1 }
860
861
  },
861
862
  setup(t) {
862
- const n = t, e = qt();
863
+ const n = t, e = It();
863
864
  return (o, s) => n.title ? (r(), f("ul", {
864
865
  key: 1,
865
866
  class: "q-list-item-group",
@@ -871,15 +872,15 @@ const Dt = ["aria-labelledby"], It = ["id"], Et = /* @__PURE__ */ k({
871
872
  id: g(e),
872
873
  class: "q-list-item-group__title",
873
874
  role: "presentation"
874
- }, V(n.title), 9, It)) : b("", !0),
875
- q(o.$slots, "default")
876
- ], 8, Dt)) : q(o.$slots, "default", { key: 0 });
875
+ }, A(n.title), 9, Tt)) : b("", !0),
876
+ x(o.$slots, "default")
877
+ ], 8, Dt)) : x(o.$slots, "default", { key: 0 });
877
878
  }
878
- }), Ct = w(wt), Tt = w(Lt), Vt = w(Et);
879
- function At(t, n, e = "right", o) {
879
+ }), Ct = w($t), Vt = w(xt), At = w(Et);
880
+ function zt(t, n, e = "right", o) {
880
881
  const s = t.getBoundingClientRect(), a = s.x + window.scrollX, l = s.y + window.scrollY, c = n == null ? void 0 : n.getBoundingClientRect(), i = (c == null ? void 0 : c.width) ?? 0, h = (c == null ? void 0 : c.height) ?? 0;
881
882
  let _ = e;
882
- c && !Se(s, c, _) && (_ = zt(s, c, _));
883
+ c && !Be(s, c, _) && (_ = Qt(s, c, _));
883
884
  const p = { x: 0, y: 0, placement: _ };
884
885
  switch (_) {
885
886
  case "top":
@@ -897,31 +898,31 @@ function At(t, n, e = "right", o) {
897
898
  }
898
899
  return o === "anchor" && s.width >= i && (p.width = s.width), p;
899
900
  }
900
- function Se(t, n, e) {
901
+ function Be(t, n, e) {
901
902
  let o = !1, s = !1;
902
903
  switch (e) {
903
904
  case "top":
904
- o = pe(t, n), s = t.top > n.height;
905
+ o = me(t, n), s = t.top > n.height;
905
906
  break;
906
907
  case "bottom":
907
- o = pe(t, n), s = window.innerHeight - t.top - t.height > n.height;
908
+ o = me(t, n), s = window.innerHeight - t.top - t.height > n.height;
908
909
  break;
909
910
  case "left":
910
- o = t.left > n.width, s = fe(t, n);
911
+ o = t.left > n.width, s = pe(t, n);
911
912
  break;
912
913
  case "right":
913
- o = window.innerWidth - t.left - t.width > n.width, s = fe(t, n);
914
+ o = window.innerWidth - t.left - t.width > n.width, s = pe(t, n);
914
915
  break;
915
916
  }
916
917
  return o && s;
917
918
  }
918
- function fe(t, n) {
919
+ function pe(t, n) {
919
920
  return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
920
921
  }
921
- function pe(t, n) {
922
+ function me(t, n) {
922
923
  return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
923
924
  }
924
- function zt(t, n, e) {
925
+ function Qt(t, n, e) {
925
926
  const o = {
926
927
  top: ["bottom", "left", "right"],
927
928
  bottom: ["top", "left", "right"],
@@ -929,17 +930,17 @@ function zt(t, n, e) {
929
930
  right: ["left", "top", "bottom"]
930
931
  };
931
932
  for (const s of o[e])
932
- if (Se(t, n, s))
933
+ if (Be(t, n, s))
933
934
  return s;
934
935
  return e;
935
936
  }
936
937
  function Y(t) {
937
938
  return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
938
939
  }
939
- const Qt = {
940
+ const Ot = {
940
941
  key: 0,
941
942
  class: "q-overlay__arrow"
942
- }, Ot = /* @__PURE__ */ k({
943
+ }, Ft = /* @__PURE__ */ k({
943
944
  inheritAttrs: !1,
944
945
  __name: "QOverlay",
945
946
  props: {
@@ -960,30 +961,34 @@ const Qt = {
960
961
  },
961
962
  emits: ["enter", "leave"],
962
963
  setup(t, { emit: n }) {
963
- const e = t, o = y(() => [
964
+ const e = t, o = v(() => [
964
965
  "q-overlay",
965
966
  `q-overlay--${s.placement}`,
966
967
  { "q-overlay--inverted": e.appearance === "inverted" },
967
968
  ...e.contentClasses
968
969
  ]), s = xe({
969
970
  visible: e.modelValue,
971
+ animating: !1,
970
972
  top: 0,
971
973
  left: 0,
972
974
  width: 0,
973
975
  placement: e.placement
974
- }), a = y(() => s.visible && !e.disabled);
975
- A(
976
+ }), a = v(() => s.visible && !e.disabled);
977
+ C(
976
978
  () => e.modelValue,
977
979
  () => s.visible = e.modelValue
980
+ ), C(
981
+ () => s.visible,
982
+ () => s.animating = !0
978
983
  );
979
- const l = y(() => {
980
- let m = 0, B = 0;
984
+ const l = v(() => {
985
+ let m = 0, q = 0;
981
986
  switch (s.placement) {
982
987
  case "top":
983
- B = -(e.offset || 0);
988
+ q = -(e.offset || 0);
984
989
  break;
985
990
  case "bottom":
986
- B = e.offset || 0;
991
+ q = e.offset || 0;
987
992
  break;
988
993
  case "left":
989
994
  m = -(e.offset || 0);
@@ -992,20 +997,20 @@ const Qt = {
992
997
  m = e.offset || 0;
993
998
  break;
994
999
  }
995
- const O = {
996
- top: `${s.top + B}px`,
1000
+ const u = {
1001
+ top: `${s.top + q}px`,
997
1002
  left: `${s.left + m}px`
998
1003
  };
999
- return s.width !== void 0 && ["top", "bottom"].includes(s.placement) && (O.width = `${s.width}px`), O;
1000
- }), c = D(null);
1004
+ return s.width !== void 0 && ["top", "bottom"].includes(s.placement) && (u.width = `${s.width}px`), u;
1005
+ }), c = I(null);
1001
1006
  function i() {
1002
1007
  const m = Y(e.anchor);
1003
1008
  if (m) {
1004
- const B = At(m, c.value, e.placement, e.width);
1005
- s.left = B.x, s.top = B.y, s.width = B.width, s.placement = B.placement;
1009
+ const q = zt(m, c.value, e.placement, e.width);
1010
+ s.left = q.x, s.top = q.y, s.width = q.width, s.placement = q.placement;
1006
1011
  }
1007
1012
  }
1008
- A([() => a.value, () => e.placement], i);
1013
+ C([() => a.value, () => e.placement], i);
1009
1014
  let h;
1010
1015
  function _() {
1011
1016
  const m = e.trigger === "hover" ? e.delay : 0;
@@ -1014,17 +1019,21 @@ const Qt = {
1014
1019
  function p() {
1015
1020
  clearTimeout(h), h = void 0, s.visible = !1;
1016
1021
  }
1017
- function I() {
1022
+ function D() {
1018
1023
  a.value ? p() : _();
1019
1024
  }
1025
+ let z;
1026
+ function Q() {
1027
+ window.clearTimeout(z), z = window.setTimeout(() => s.animating = !1, 200), n("leave");
1028
+ }
1020
1029
  let E;
1021
- function z() {
1022
- re(() => {
1030
+ function M() {
1031
+ ie(() => {
1023
1032
  const m = Y(e.anchor);
1024
1033
  if (m)
1025
1034
  switch (e.trigger) {
1026
1035
  case "click":
1027
- m.addEventListener("click", I);
1036
+ m.addEventListener("click", D);
1028
1037
  break;
1029
1038
  case "hover":
1030
1039
  m.addEventListener("mouseenter", _), m.addEventListener("mouseleave", p);
@@ -1032,8 +1041,8 @@ const Qt = {
1032
1041
  }
1033
1042
  });
1034
1043
  }
1035
- function F() {
1036
- re(() => {
1044
+ function d() {
1045
+ ie(() => {
1037
1046
  const m = Y(e.anchor);
1038
1047
  m && (window.addEventListener("scroll", i), window.addEventListener("resize", i), E = new MutationObserver(i), E.observe(m, {
1039
1048
  attributes: !1,
@@ -1043,70 +1052,72 @@ const Qt = {
1043
1052
  }), i());
1044
1053
  });
1045
1054
  }
1046
- function M() {
1055
+ function S() {
1047
1056
  window.removeEventListener("scroll", i), window.removeEventListener("resize", i), E == null || E.disconnect();
1048
1057
  }
1049
- let u;
1050
- function $() {
1051
- Y(e.anchor) ? (i(), u = window.setTimeout($, 100)) : p();
1058
+ let y;
1059
+ function L() {
1060
+ Y(e.anchor) ? (i(), y = window.setTimeout(L, 100)) : p();
1052
1061
  }
1053
- function v() {
1054
- F(), e.spy && $();
1062
+ function J() {
1063
+ d(), e.spy && L();
1055
1064
  }
1056
- function x() {
1057
- M(), e.spy && (clearTimeout(u), u = void 0);
1065
+ function W() {
1066
+ S(), e.spy && (clearTimeout(y), y = void 0);
1058
1067
  }
1059
- return qe(x), De(i), A(
1068
+ return qe(W), Ie(i), C(
1060
1069
  () => e.disabled,
1061
1070
  (m) => {
1062
- m || z();
1071
+ m || M();
1063
1072
  },
1064
1073
  { immediate: !0 }
1065
- ), A(
1074
+ ), C(
1066
1075
  () => a.value,
1067
1076
  (m) => {
1068
- m ? v() : x();
1077
+ m ? J() : W();
1069
1078
  },
1070
1079
  { immediate: !0 }
1071
- ), (m, B) => (r(), f(Q, null, [
1072
- q(m.$slots, "trigger", { open: a.value }),
1073
- (r(), S(Ie, {
1080
+ ), (m, q) => (r(), f(O, null, [
1081
+ x(m.$slots, "trigger", { open: a.value }),
1082
+ a.value || s.animating ? (r(), $(De, {
1083
+ key: 0,
1084
+ disabled: !e.attach,
1074
1085
  to: e.attach
1075
1086
  }, [
1076
- U(Ee, {
1087
+ U(Te, {
1077
1088
  name: e.transition,
1078
1089
  appear: "",
1079
- onEnter: B[0] || (B[0] = (O) => n("enter")),
1080
- onLeave: B[1] || (B[1] = (O) => n("leave"))
1090
+ onEnter: q[0] || (q[0] = (u) => n("enter")),
1091
+ onLeave: Q
1081
1092
  }, {
1082
- default: C(() => [
1093
+ default: T(() => [
1083
1094
  a.value ? (r(), f("div", {
1084
1095
  key: 0,
1085
- class: T(o.value),
1086
- style: W(l.value)
1096
+ class: V(o.value),
1097
+ style: K(l.value)
1087
1098
  }, [
1088
- K("div", {
1089
- class: T(["q-overlay__content"]),
1099
+ F("div", {
1100
+ class: V(["q-overlay__content"]),
1090
1101
  ref_key: "overlay",
1091
1102
  ref: c
1092
1103
  }, [
1093
- e.arrow ? (r(), f("div", Qt)) : b("", !0),
1094
- q(m.$slots, "default")
1104
+ e.arrow ? (r(), f("div", Ot)) : b("", !0),
1105
+ x(m.$slots, "default")
1095
1106
  ], 512)
1096
1107
  ], 6)) : b("", !0)
1097
1108
  ]),
1098
1109
  _: 3
1099
1110
  }, 8, ["name"])
1100
- ], 8, ["to"]))
1111
+ ], 8, ["disabled", "to"])) : b("", !0)
1101
1112
  ], 64));
1102
1113
  }
1103
- }), se = w(Ot), Ft = {
1114
+ }), ae = w(Ft), Mt = {
1104
1115
  key: 0,
1105
1116
  class: "q-popover__header"
1106
- }, Mt = {
1117
+ }, Rt = {
1107
1118
  key: 1,
1108
1119
  class: "q-popover__body"
1109
- }, Rt = ["innerHTML"], Ht = { key: 1 }, Ut = /* @__PURE__ */ k({
1120
+ }, Ht = ["innerHTML"], Ut = { key: 1 }, Nt = /* @__PURE__ */ k({
1110
1121
  inheritAttrs: !1,
1111
1122
  __name: "QPopover",
1112
1123
  props: {
@@ -1123,7 +1134,7 @@ const Qt = {
1123
1134
  },
1124
1135
  setup(t) {
1125
1136
  const n = t;
1126
- return (e, o) => (r(), S(g(se), {
1137
+ return (e, o) => (r(), $(g(ae), {
1127
1138
  "model-value": n.modelValue,
1128
1139
  trigger: "click",
1129
1140
  anchor: n.anchor,
@@ -1134,28 +1145,28 @@ const Qt = {
1134
1145
  placement: n.placement,
1135
1146
  spy: n.spy
1136
1147
  }, {
1137
- default: C(() => [
1138
- n.title || e.$slots.header ? (r(), f("h3", Ft, [
1139
- X(V(n.title) + " ", 1),
1140
- q(e.$slots, "header")
1148
+ default: T(() => [
1149
+ n.title || e.$slots.header ? (r(), f("h3", Mt, [
1150
+ X(A(n.title) + " ", 1),
1151
+ x(e.$slots, "header")
1141
1152
  ])) : b("", !0),
1142
- n.text || e.$slots.body ? (r(), f("div", Mt, [
1153
+ n.text || e.$slots.body ? (r(), f("div", Rt, [
1143
1154
  n.html ? (r(), f("span", {
1144
1155
  key: 0,
1145
1156
  innerHTML: n.text
1146
- }, null, 8, Rt)) : (r(), f("span", Ht, V(n.text), 1)),
1147
- q(e.$slots, "body")
1157
+ }, null, 8, Ht)) : (r(), f("span", Ut, A(n.text), 1)),
1158
+ x(e.$slots, "body")
1148
1159
  ])) : b("", !0)
1149
1160
  ]),
1150
1161
  _: 3
1151
1162
  }, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
1152
1163
  }
1153
- }), an = w(Ut);
1154
- function Nt() {
1155
- const t = Ce(), n = {};
1164
+ }), ln = w(Nt);
1165
+ function Kt() {
1166
+ const t = Ee(), n = {};
1156
1167
  return typeof t.class == "string" ? n.class = t.class.split(" ") : Array.isArray(t.class) ? n.class = t.class : n.class = [], n;
1157
1168
  }
1158
- const Kt = {
1169
+ const Wt = {
1159
1170
  mounted(t, n) {
1160
1171
  t.clickOutsideEvent = function(e) {
1161
1172
  const o = e.target;
@@ -1165,22 +1176,22 @@ const Kt = {
1165
1176
  unmounted(t) {
1166
1177
  document.removeEventListener("click", t.clickOutsideEvent);
1167
1178
  }
1168
- }, Wt = {
1179
+ }, Gt = {
1169
1180
  key: 0,
1170
1181
  class: "q-select__value"
1171
- }, Gt = {
1182
+ }, Yt = {
1172
1183
  key: 1,
1173
1184
  class: "q-select__placeholder"
1174
- }, Yt = {
1175
- placeholder: "Choose..."
1176
1185
  }, Xt = {
1186
+ placeholder: "Choose..."
1187
+ }, Zt = {
1177
1188
  chevron: {
1178
1189
  icon: "chevron-down"
1179
1190
  },
1180
1191
  clear: {
1181
1192
  icon: "close"
1182
1193
  }
1183
- }, Zt = /* @__PURE__ */ k({
1194
+ }, jt = /* @__PURE__ */ k({
1184
1195
  inheritAttrs: !1,
1185
1196
  __name: "QSelect",
1186
1197
  props: {
@@ -1189,90 +1200,90 @@ const Kt = {
1189
1200
  readonly: { type: Boolean },
1190
1201
  disabled: { type: Boolean, default: !1 },
1191
1202
  loading: { type: Boolean, default: !1 },
1192
- icons: { default: () => Xt },
1203
+ icons: { default: () => Zt },
1193
1204
  items: {},
1194
1205
  groups: { default: () => [] },
1195
1206
  itemValue: { default: "key" },
1196
1207
  itemLabel: { default: "label" },
1197
1208
  size: { default: "medium" },
1198
- texts: { default: () => Yt }
1209
+ texts: { default: () => Xt }
1199
1210
  },
1200
1211
  emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
1201
1212
  setup(t, { emit: n }) {
1202
- const e = t, o = Nt(), s = D(e.modelValue), a = D(!1), l = D(""), c = D(null), i = D(null), h = D(null), _ = y(
1213
+ const e = t, o = Kt(), s = I(e.modelValue), a = I(!1), l = I(""), c = I(null), i = I(null), h = I(null), _ = v(
1203
1214
  () => {
1204
- var d;
1205
- return (d = e.items) == null ? void 0 : d.find((L) => L[e.itemValue] === s.value);
1215
+ var u;
1216
+ return (u = e.items) == null ? void 0 : u.find((B) => B[e.itemValue] === s.value);
1206
1217
  }
1207
- ), p = y(
1218
+ ), p = v(
1208
1219
  () => _.value ? _.value[e.itemLabel] : ""
1209
- ), I = y(
1220
+ ), D = v(
1210
1221
  () => e.clearable && !e.readonly && !e.disabled && !e.loading
1211
1222
  );
1212
- function E(d) {
1213
- s.value = d, n("update:modelValue", d), $();
1223
+ function z(u) {
1224
+ s.value = u, n("update:modelValue", u), S();
1214
1225
  }
1215
- function z() {
1216
- I.value && E(void 0);
1226
+ function Q() {
1227
+ D.value && z(void 0);
1217
1228
  }
1218
- function F() {
1219
- e.readonly || e.disabled || (a.value ? $() : u());
1229
+ function E() {
1230
+ e.readonly || e.disabled || (a.value ? S() : d());
1220
1231
  }
1221
- function M(d) {
1222
- var L;
1223
- (L = c.value) != null && L.$el.contains(d.target) || $();
1232
+ function M(u) {
1233
+ var B;
1234
+ (B = c.value) != null && B.$el.contains(u.target) || S();
1224
1235
  }
1225
- function u() {
1236
+ function d() {
1226
1237
  a.value || (n("before-show"), a.value = !0);
1227
1238
  }
1228
- function $() {
1239
+ function S() {
1229
1240
  a.value && (n("before-hide"), a.value = !1);
1230
1241
  }
1231
- let v;
1232
- function x(d) {
1233
- if (!(!d.key || e.readonly || e.disabled)) {
1234
- if (window.clearTimeout(v), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (a.value = !0), ["Escape", "Tab"].includes(d.key) && (a.value ? a.value = !1 : e.clearable && d.key === "Escape" && z()), d.key === "Delete" && e.clearable && z(), /^[a-z]$/i.test(d.key)) {
1235
- l.value += d.key.toLowerCase();
1236
- for (let L = 0; L < e.items.length; L++)
1237
- if (e.items[L][e.itemLabel].toLowerCase().startsWith(l.value)) {
1238
- Be(L);
1242
+ let y;
1243
+ function L(u) {
1244
+ if (!(!u.key || e.readonly || e.disabled)) {
1245
+ if (window.clearTimeout(y), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (a.value = !0), ["Escape", "Tab"].includes(u.key) && (a.value ? a.value = !1 : e.clearable && u.key === "Escape" && Q()), u.key === "Delete" && e.clearable && Q(), /^[a-z]$/i.test(u.key)) {
1246
+ l.value += u.key.toLowerCase();
1247
+ for (let B = 0; B < e.items.length; B++)
1248
+ if (e.items[B][e.itemLabel].toLowerCase().startsWith(l.value)) {
1249
+ q(B);
1239
1250
  break;
1240
1251
  }
1241
1252
  }
1242
- v = window.setTimeout(function() {
1253
+ y = window.setTimeout(function() {
1243
1254
  l.value = "";
1244
1255
  }, 500);
1245
1256
  }
1246
1257
  }
1247
- function m() {
1248
- var d;
1249
- (d = i.value) == null || d.$el.focus(), n("show");
1258
+ function J() {
1259
+ var u;
1260
+ (u = i.value) == null || u.$el.focus(), n("show");
1250
1261
  }
1251
- function B() {
1252
- O(), n("hide");
1262
+ function W() {
1263
+ m(), n("hide");
1253
1264
  }
1254
- function O() {
1255
- var d;
1256
- (d = c.value) == null || d.$el.focus();
1265
+ function m() {
1266
+ var u;
1267
+ (u = c.value) == null || u.$el.focus();
1257
1268
  }
1258
- function Be(d) {
1259
- var L;
1260
- (L = i.value) == null || L.focusItem(d);
1269
+ function q(u) {
1270
+ var B;
1271
+ (B = i.value) == null || B.focusItem(u);
1261
1272
  }
1262
- return A(
1273
+ return C(
1263
1274
  () => e.modelValue,
1264
- (d) => {
1265
- s.value = d;
1275
+ (u) => {
1276
+ s.value = u;
1266
1277
  }
1267
- ), (d, L) => {
1268
- var J, ae;
1269
- return r(), f(Q, null, [
1270
- U(g(yt), {
1278
+ ), (u, B) => {
1279
+ var P, le;
1280
+ return r(), f(O, null, [
1281
+ U(g(vt), {
1271
1282
  ref_key: "inputRef",
1272
1283
  ref: c,
1273
1284
  role: "combobox",
1274
1285
  tabindex: "0",
1275
- class: T([
1286
+ class: V([
1276
1287
  "q-select",
1277
1288
  {
1278
1289
  "q-select--readonly": e.readonly,
@@ -1286,73 +1297,73 @@ const Kt = {
1286
1297
  "aria-expanded": a.value,
1287
1298
  "aria-haspopup": "listbox",
1288
1299
  size: e.size,
1289
- onClick: F,
1290
- onKeydown: H(x, ["stop"])
1291
- }, Te({
1292
- append: C(() => [
1293
- I.value && s.value ? (r(), S(g(N), Z({ key: 0 }, e.icons.clear, {
1300
+ onClick: E,
1301
+ onKeydown: H(L, ["stop"])
1302
+ }, Ce({
1303
+ append: T(() => [
1304
+ D.value && s.value ? (r(), $(g(N), Z({ key: 0 }, e.icons.clear, {
1294
1305
  class: "q-select__clear",
1295
- onClick: H(z, ["stop", "prevent"])
1306
+ onClick: H(Q, ["stop", "prevent"])
1296
1307
  }), null, 16, ["onClick"])) : b("", !0),
1297
- !e.readonly && !e.disabled ? (r(), S(g(N), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : b("", !0)
1308
+ !e.readonly && !e.disabled ? (r(), $(g(N), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : b("", !0)
1298
1309
  ]),
1299
- default: C(() => [
1300
- s.value ? (r(), f("span", Wt, V(p.value), 1)) : (r(), f("span", Gt, V(d.texts.placeholder), 1))
1310
+ default: T(() => [
1311
+ s.value ? (r(), f("span", Gt, A(p.value), 1)) : (r(), f("span", Yt, A(u.texts.placeholder), 1))
1301
1312
  ]),
1302
1313
  _: 2
1303
1314
  }, [
1304
- (J = _.value) != null && J.icon ? {
1315
+ (P = _.value) != null && P.icon ? {
1305
1316
  name: "prepend",
1306
- fn: C(() => {
1317
+ fn: T(() => {
1307
1318
  var G;
1308
1319
  return [
1309
- U(g(N), ve(Ve((G = _.value) == null ? void 0 : G.icon)), null, 16)
1320
+ U(g(N), ge(Ve((G = _.value) == null ? void 0 : G.icon)), null, 16)
1310
1321
  ];
1311
1322
  }),
1312
1323
  key: "0"
1313
1324
  } : void 0
1314
1325
  ]), 1032, ["class", "disabled", "aria-expanded", "size", "onKeydown"]),
1315
- U(g(se), {
1326
+ U(g(ae), {
1316
1327
  "model-value": a.value,
1317
1328
  spy: "",
1318
1329
  trigger: "manual",
1319
1330
  placement: "bottom",
1320
1331
  width: "anchor",
1321
1332
  offset: 2,
1322
- anchor: (ae = c.value) == null ? void 0 : ae.$el,
1323
- onEnter: m,
1324
- onLeave: B
1333
+ anchor: (le = c.value) == null ? void 0 : le.$el,
1334
+ onEnter: J,
1335
+ onLeave: W
1325
1336
  }, {
1326
- default: C(() => [
1337
+ default: T(() => [
1327
1338
  Ae((r(), f("div", {
1328
1339
  ref_key: "contentRef",
1329
1340
  ref: h,
1330
1341
  class: "q-select__body"
1331
1342
  }, [
1332
- q(d.$slots, "body.prepend"),
1333
- e.loading ? (r(), S(g($e), {
1343
+ x(u.$slots, "body.prepend"),
1344
+ e.loading ? (r(), $(g(Se), {
1334
1345
  key: 0,
1335
1346
  class: "q-select__loader",
1336
1347
  size: 24
1337
- })) : (r(), S(g(Ct), {
1348
+ })) : (r(), $(g(Ct), {
1338
1349
  key: 1,
1339
1350
  ref_key: "listRef",
1340
1351
  ref: i,
1341
1352
  class: "q-select__items",
1342
1353
  modelValue: s.value,
1343
1354
  "onUpdate:modelValue": [
1344
- L[0] || (L[0] = (G) => s.value = G),
1345
- E
1355
+ B[0] || (B[0] = (G) => s.value = G),
1356
+ z
1346
1357
  ],
1347
1358
  items: e.items,
1348
- groups: d.groups,
1359
+ groups: u.groups,
1349
1360
  "item-label": e.itemLabel,
1350
1361
  "item-value": e.itemValue,
1351
- onKeydown: H(x, ["stop"])
1362
+ onKeydown: H(L, ["stop"])
1352
1363
  }, null, 8, ["modelValue", "items", "groups", "item-label", "item-value", "onKeydown"])),
1353
- q(d.$slots, "body.append")
1364
+ x(u.$slots, "body.append")
1354
1365
  ])), [
1355
- [g(Kt), M]
1366
+ [g(Wt), M]
1356
1367
  ])
1357
1368
  ]),
1358
1369
  _: 3
@@ -1360,7 +1371,7 @@ const Kt = {
1360
1371
  ], 64);
1361
1372
  };
1362
1373
  }
1363
- }), ln = w(Zt), jt = ["innerHTML"], Jt = { key: 1 }, Pt = /* @__PURE__ */ k({
1374
+ }), rn = w(jt), Jt = ["innerHTML"], Pt = { key: 1 }, en = /* @__PURE__ */ k({
1364
1375
  inheritAttrs: !1,
1365
1376
  __name: "QTooltip",
1366
1377
  props: {
@@ -1378,7 +1389,7 @@ const Kt = {
1378
1389
  },
1379
1390
  setup(t) {
1380
1391
  const n = t;
1381
- return (e, o) => (r(), S(g(se), {
1392
+ return (e, o) => (r(), $(g(ae), {
1382
1393
  "model-value": n.modelValue,
1383
1394
  anchor: n.anchor,
1384
1395
  appearance: n.appearance,
@@ -1390,38 +1401,38 @@ const Kt = {
1390
1401
  placement: n.placement,
1391
1402
  trigger: n.trigger
1392
1403
  }, {
1393
- default: C(() => [
1404
+ default: T(() => [
1394
1405
  n.html ? (r(), f("span", {
1395
1406
  key: 0,
1396
1407
  innerHTML: n.text
1397
- }, null, 8, jt)) : (r(), f("span", Jt, V(n.text), 1))
1408
+ }, null, 8, Jt)) : (r(), f("span", Pt, A(n.text), 1))
1398
1409
  ]),
1399
1410
  _: 1
1400
1411
  }, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
1401
1412
  }
1402
- }), rn = w(Pt);
1413
+ }), cn = w(en);
1403
1414
  export {
1404
1415
  Je as QButton,
1405
1416
  et as QButtonGroup,
1406
- on as QButtonToggle,
1417
+ sn as QButtonToggle,
1407
1418
  N as QIcon,
1408
- ut as QIconFont,
1409
- dt as QIconImg,
1410
- ft as QIconSvg,
1411
- yt as QInput,
1412
- sn as QLineLoader,
1419
+ dt as QIconFont,
1420
+ ft as QIconImg,
1421
+ pt as QIconSvg,
1422
+ vt as QInput,
1423
+ an as QLineLoader,
1413
1424
  Ct as QList,
1414
- Tt as QListItem,
1415
- Vt as QListItemGroup,
1416
- se as QOverlay,
1417
- an as QPopover,
1418
- ln as QSelect,
1419
- $e as QSpinnerLoader,
1420
- rn as QTooltip,
1421
- Kt as clickOutside,
1422
- nn as createFramework,
1425
+ Vt as QListItem,
1426
+ At as QListItemGroup,
1427
+ ae as QOverlay,
1428
+ ln as QPopover,
1429
+ rn as QSelect,
1430
+ Se as QSpinnerLoader,
1431
+ cn as QTooltip,
1432
+ Wt as clickOutside,
1433
+ on as createFramework,
1423
1434
  Oe as defaultDarkColorScheme,
1424
- ce as defaultLightColorScheme,
1425
- tn as useTheme
1435
+ ue as defaultLightColorScheme,
1436
+ nn as useTheme
1426
1437
  };
1427
1438
  //# sourceMappingURL=ui.esm.js.map