@quidgest/ui 0.7.3 → 0.7.4

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