@quidgest/ui 0.7.21 → 0.7.22
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/index.d.ts +0 -8
- package/dist/ui.css +3 -5
- package/dist/ui.esm.js +265 -267
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +37 -37
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +4 -6
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as xe, computed as g, ref as q, provide as Oe, inject as Ve, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as T, normalizeStyle as se, createElementVNode as j, withModifiers as ne, createVNode as W, unref as $, createCommentVNode as S, Fragment as Z, createTextVNode as ae, toDisplayString as N, renderSlot as y, toRef as ce, createBlock as x, withCtx as I, renderList as pe, resolveDynamicComponent as De, h as we, normalizeProps as ie, mergeProps as ee, reactive as Ue, onBeforeUnmount as Ne, onMounted as Te, Teleport as He, Transition as Ke, withKeys as Ge, nextTick as P, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as me } from "vue";
|
|
2
2
|
function ve(n) {
|
|
3
3
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function $e(n) {
|
|
6
6
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function be(n = {}, t = {}) {
|
|
9
9
|
const o = {};
|
|
10
10
|
for (const e in n)
|
|
11
11
|
o[e] = n[e];
|
|
12
12
|
for (const e in t) {
|
|
13
13
|
const l = n[e], a = t[e];
|
|
14
|
-
if (
|
|
15
|
-
o[e] =
|
|
14
|
+
if ($e(l) && $e(a)) {
|
|
15
|
+
o[e] = be(
|
|
16
16
|
l,
|
|
17
17
|
a
|
|
18
18
|
);
|
|
@@ -24,31 +24,29 @@ function Te(n = {}, t = {}) {
|
|
|
24
24
|
}
|
|
25
25
|
const ye = "q-defaults";
|
|
26
26
|
function Xe() {
|
|
27
|
-
|
|
27
|
+
var a, r;
|
|
28
|
+
const n = xe();
|
|
28
29
|
if (!n)
|
|
29
30
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
30
31
|
const t = n.type.name ?? n.type.__name;
|
|
31
32
|
if (!t)
|
|
32
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
33
|
-
const o = ze();
|
|
34
|
-
return g(() =>
|
|
35
|
-
var e;
|
|
36
|
-
return (e = o.value) == null ? void 0 : e[t];
|
|
37
|
-
});
|
|
34
|
+
const o = ze(), e = (a = o.value) == null ? void 0 : a.Global, l = (r = o.value) == null ? void 0 : r[t];
|
|
35
|
+
return g(() => be(e, l));
|
|
38
36
|
}
|
|
39
37
|
function Ee(n) {
|
|
40
38
|
if (ve(n))
|
|
41
39
|
return;
|
|
42
|
-
const t = ze(), o = q(n), e = g(() => ve(o.value) ? t.value :
|
|
40
|
+
const t = ze(), o = q(n), e = g(() => ve(o.value) ? t.value : be(t.value, o.value));
|
|
43
41
|
Oe(ye, e);
|
|
44
42
|
}
|
|
45
43
|
function ze() {
|
|
46
|
-
const n =
|
|
44
|
+
const n = Ve(ye, void 0);
|
|
47
45
|
if (!n)
|
|
48
46
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
49
47
|
return n;
|
|
50
48
|
}
|
|
51
|
-
const
|
|
49
|
+
const Ie = {
|
|
52
50
|
primary: "#00a1f8",
|
|
53
51
|
primaryLight: "#e5f6ff",
|
|
54
52
|
primaryDark: "#0079ba",
|
|
@@ -132,7 +130,7 @@ function Ze(n, t) {
|
|
|
132
130
|
const o = Fe(n), e = t / 100;
|
|
133
131
|
return o.l = o.l - e * o.l, Ae(o);
|
|
134
132
|
}
|
|
135
|
-
function
|
|
133
|
+
function qe(n) {
|
|
136
134
|
const t = n.r.toString(16).padStart(2, "0"), o = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
|
|
137
135
|
return `#${t}${o}${e}`;
|
|
138
136
|
}
|
|
@@ -183,7 +181,7 @@ function fe(n, t, o) {
|
|
|
183
181
|
}
|
|
184
182
|
const re = "q-theme";
|
|
185
183
|
function wn() {
|
|
186
|
-
const n =
|
|
184
|
+
const n = Ve(re);
|
|
187
185
|
if (!n)
|
|
188
186
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
189
187
|
return n;
|
|
@@ -192,14 +190,14 @@ function Je(n, t) {
|
|
|
192
190
|
let o = null;
|
|
193
191
|
if (t)
|
|
194
192
|
for (const e of t.themes) {
|
|
195
|
-
const l = e.mode === "light" ?
|
|
193
|
+
const l = e.mode === "light" ? Ie : Ye;
|
|
196
194
|
if (e.colors) {
|
|
197
195
|
let a;
|
|
198
196
|
for (a in e.colors) {
|
|
199
197
|
const r = e.colors[a];
|
|
200
198
|
if (r && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
201
199
|
const i = Ce(r), f = `${a}Light`, m = `${a}Dark`;
|
|
202
|
-
f in e.colors || (e.colors[f] =
|
|
200
|
+
f in e.colors || (e.colors[f] = qe(Pe(i, 85))), m in e.colors || (e.colors[m] = qe(Ze(i, 25)));
|
|
203
201
|
}
|
|
204
202
|
}
|
|
205
203
|
}
|
|
@@ -210,7 +208,7 @@ function Je(n, t) {
|
|
|
210
208
|
o = {
|
|
211
209
|
name: e,
|
|
212
210
|
mode: "light",
|
|
213
|
-
colors:
|
|
211
|
+
colors: Ie
|
|
214
212
|
}, t = {
|
|
215
213
|
defaultTheme: e,
|
|
216
214
|
themes: [o]
|
|
@@ -244,16 +242,16 @@ function tt(n) {
|
|
|
244
242
|
for (e in n) {
|
|
245
243
|
const l = n[e];
|
|
246
244
|
if (l) {
|
|
247
|
-
o += ` ${
|
|
245
|
+
o += ` ${Se(e)}: ${l};
|
|
248
246
|
`;
|
|
249
247
|
const a = Ce(l);
|
|
250
|
-
o += ` ${
|
|
248
|
+
o += ` ${Se(e)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
251
249
|
`;
|
|
252
250
|
}
|
|
253
251
|
}
|
|
254
252
|
o += "}", t.textContent = o;
|
|
255
253
|
}
|
|
256
|
-
function
|
|
254
|
+
function Se(n) {
|
|
257
255
|
return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
256
|
}
|
|
259
257
|
function $n(n = {}) {
|
|
@@ -278,7 +276,7 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
278
276
|
})
|
|
279
277
|
], -1), lt = [
|
|
280
278
|
nt
|
|
281
|
-
], ot = /* @__PURE__ */
|
|
279
|
+
], ot = /* @__PURE__ */ B({
|
|
282
280
|
__name: "QSpinnerLoader",
|
|
283
281
|
props: {
|
|
284
282
|
size: { default: 48 },
|
|
@@ -288,9 +286,9 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
288
286
|
const t = n, o = g(() => ({
|
|
289
287
|
"font-size": t.size !== 48 ? `${t.size}px` : void 0
|
|
290
288
|
}));
|
|
291
|
-
return (e, l) => (
|
|
289
|
+
return (e, l) => (u(), v("div", {
|
|
292
290
|
class: T(["q-spinner-loader", t.class]),
|
|
293
|
-
style:
|
|
291
|
+
style: se(o.value)
|
|
294
292
|
}, lt, 6));
|
|
295
293
|
}
|
|
296
294
|
});
|
|
@@ -304,7 +302,7 @@ function V(n) {
|
|
|
304
302
|
const l = Xe();
|
|
305
303
|
if (ve(l.value))
|
|
306
304
|
return t(o, e);
|
|
307
|
-
const a =
|
|
305
|
+
const a = xe();
|
|
308
306
|
if (a === null)
|
|
309
307
|
return t(o, e);
|
|
310
308
|
const r = new Proxy(o, {
|
|
@@ -317,10 +315,10 @@ function V(n) {
|
|
|
317
315
|
return t(r, e);
|
|
318
316
|
}), n;
|
|
319
317
|
}
|
|
320
|
-
const
|
|
318
|
+
const ge = V(ot), st = ["disabled"], it = {
|
|
321
319
|
key: 0,
|
|
322
320
|
class: "q-btn__spinner"
|
|
323
|
-
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */
|
|
321
|
+
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */ B({
|
|
324
322
|
__name: "QButton",
|
|
325
323
|
props: {
|
|
326
324
|
active: { type: Boolean },
|
|
@@ -357,27 +355,27 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
357
355
|
e.class
|
|
358
356
|
];
|
|
359
357
|
});
|
|
360
|
-
return (i, f) => (
|
|
358
|
+
return (i, f) => (u(), v("button", {
|
|
361
359
|
type: "button",
|
|
362
360
|
class: T(r.value),
|
|
363
361
|
disabled: l.value,
|
|
364
362
|
onClick: ne(a, ["stop", "prevent"])
|
|
365
363
|
}, [
|
|
366
|
-
i.loading ? (
|
|
367
|
-
|
|
364
|
+
i.loading ? (u(), v("div", it, [
|
|
365
|
+
W($(ge), { size: 23 })
|
|
368
366
|
])) : S("", !0),
|
|
369
367
|
j("span", rt, [
|
|
370
|
-
i.iconOnRight ? (
|
|
371
|
-
|
|
368
|
+
i.iconOnRight ? (u(), v(Z, { key: 0 }, [
|
|
369
|
+
ae(N(e.label), 1)
|
|
372
370
|
], 64)) : S("", !0),
|
|
373
|
-
|
|
374
|
-
i.iconOnRight ? S("", !0) : (
|
|
375
|
-
|
|
371
|
+
y(i.$slots, "default"),
|
|
372
|
+
i.iconOnRight ? S("", !0) : (u(), v(Z, { key: 1 }, [
|
|
373
|
+
ae(N(e.label), 1)
|
|
376
374
|
], 64))
|
|
377
375
|
])
|
|
378
376
|
], 10, st));
|
|
379
377
|
}
|
|
380
|
-
}), ut = V(dt), ct = /* @__PURE__ */
|
|
378
|
+
}), ut = V(dt), ct = /* @__PURE__ */ B({
|
|
381
379
|
__name: "QButtonGroup",
|
|
382
380
|
props: {
|
|
383
381
|
bStyle: { default: void 0 },
|
|
@@ -395,7 +393,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
395
393
|
borderless: ce(t, "borderless"),
|
|
396
394
|
elevated: !1
|
|
397
395
|
}
|
|
398
|
-
}), (o, e) => (
|
|
396
|
+
}), (o, e) => (u(), v("div", {
|
|
399
397
|
class: T([
|
|
400
398
|
"q-btn-group",
|
|
401
399
|
{
|
|
@@ -404,10 +402,10 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
404
402
|
t.class
|
|
405
403
|
])
|
|
406
404
|
}, [
|
|
407
|
-
|
|
405
|
+
y(o.$slots, "default")
|
|
408
406
|
], 2));
|
|
409
407
|
}
|
|
410
|
-
}), ft = V(ct), pt = /* @__PURE__ */
|
|
408
|
+
}), ft = V(ct), pt = /* @__PURE__ */ B({
|
|
411
409
|
__name: "QButtonToggle",
|
|
412
410
|
props: {
|
|
413
411
|
modelValue: {},
|
|
@@ -436,7 +434,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
436
434
|
function r(i) {
|
|
437
435
|
a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
|
|
438
436
|
}
|
|
439
|
-
return (i, f) => (
|
|
437
|
+
return (i, f) => (u(), x($(ft), {
|
|
440
438
|
"b-style": "secondary",
|
|
441
439
|
class: T(e.class),
|
|
442
440
|
disabled: e.disabled,
|
|
@@ -444,7 +442,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
444
442
|
elevated: e.elevated
|
|
445
443
|
}, {
|
|
446
444
|
default: I(() => [
|
|
447
|
-
(
|
|
445
|
+
(u(!0), v(Z, null, pe(e.options, (m) => (u(), x($(ut), {
|
|
448
446
|
key: m.key,
|
|
449
447
|
title: m.title,
|
|
450
448
|
label: m.label,
|
|
@@ -452,7 +450,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
452
450
|
onClick: () => r(m)
|
|
453
451
|
}, {
|
|
454
452
|
default: I(() => [
|
|
455
|
-
|
|
453
|
+
y(i.$slots, m.key)
|
|
456
454
|
]),
|
|
457
455
|
_: 2
|
|
458
456
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -460,7 +458,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
460
458
|
_: 3
|
|
461
459
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
462
460
|
}
|
|
463
|
-
}), In = V(pt), mt = /* @__PURE__ */
|
|
461
|
+
}), In = V(pt), mt = /* @__PURE__ */ B({
|
|
464
462
|
__name: "QIcon",
|
|
465
463
|
props: {
|
|
466
464
|
icon: {},
|
|
@@ -481,13 +479,13 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
481
479
|
return;
|
|
482
480
|
}
|
|
483
481
|
});
|
|
484
|
-
return (e, l) => (
|
|
482
|
+
return (e, l) => (u(), x(De(o.value), {
|
|
485
483
|
class: T(t.class),
|
|
486
484
|
icon: t.icon,
|
|
487
485
|
size: t.size
|
|
488
486
|
}, null, 8, ["class", "icon", "size"]));
|
|
489
487
|
}
|
|
490
|
-
}), vt = /* @__PURE__ */
|
|
488
|
+
}), vt = /* @__PURE__ */ B({
|
|
491
489
|
__name: "QIconFont",
|
|
492
490
|
props: {
|
|
493
491
|
icon: {},
|
|
@@ -500,12 +498,12 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
500
498
|
const t = n, o = g(() => t.variant ? `${t.library}-${t.variant}` : t.library), e = g(() => t.library && t.icon ? `${t.library}-${t.icon}` : t.icon), l = g(() => ({
|
|
501
499
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
502
500
|
}));
|
|
503
|
-
return (a, r) => (
|
|
501
|
+
return (a, r) => (u(), v("i", {
|
|
504
502
|
class: T(["q-icon", "q-icon__font", o.value, e.value, t.class]),
|
|
505
|
-
style:
|
|
503
|
+
style: se(l.value)
|
|
506
504
|
}, null, 6));
|
|
507
505
|
}
|
|
508
|
-
}), ht = ["src"],
|
|
506
|
+
}), ht = ["src"], bt = /* @__PURE__ */ B({
|
|
509
507
|
__name: "QIconImg",
|
|
510
508
|
props: {
|
|
511
509
|
icon: {},
|
|
@@ -516,13 +514,13 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
516
514
|
const t = n, o = g(() => ({
|
|
517
515
|
"font-size": t.size !== void 0 ? `${t.size}px` : void 0
|
|
518
516
|
}));
|
|
519
|
-
return (e, l) => (
|
|
517
|
+
return (e, l) => (u(), v("img", {
|
|
520
518
|
src: t.icon,
|
|
521
519
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
522
|
-
style:
|
|
520
|
+
style: se(o.value)
|
|
523
521
|
}, null, 14, ht));
|
|
524
522
|
}
|
|
525
|
-
}), le = {},
|
|
523
|
+
}), le = {}, yt = B({
|
|
526
524
|
name: "InlineSvg",
|
|
527
525
|
emits: ["loaded", "unloaded", "error"],
|
|
528
526
|
inheritAttrs: !1,
|
|
@@ -531,9 +529,9 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
531
529
|
return null;
|
|
532
530
|
const n = this.getSvgContent(this.svgElSource);
|
|
533
531
|
if (!n)
|
|
534
|
-
return
|
|
532
|
+
return we("div", this.$attrs);
|
|
535
533
|
const t = {};
|
|
536
|
-
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML,
|
|
534
|
+
return this.copySvgAttrs(t, this.svgElSource), this.copySvgAttrs(t, n), this.copyComponentAttrs(t, this.$attrs), t.innerHTML = n.innerHTML, we("svg", t);
|
|
537
535
|
},
|
|
538
536
|
props: {
|
|
539
537
|
src: {
|
|
@@ -635,7 +633,7 @@ function _t(n) {
|
|
|
635
633
|
);
|
|
636
634
|
return o.getIsPending = () => t, o;
|
|
637
635
|
}
|
|
638
|
-
const kt = /* @__PURE__ */
|
|
636
|
+
const kt = /* @__PURE__ */ B({
|
|
639
637
|
__name: "QIconSvg",
|
|
640
638
|
props: {
|
|
641
639
|
icon: {},
|
|
@@ -654,16 +652,16 @@ const kt = /* @__PURE__ */ L({
|
|
|
654
652
|
function r() {
|
|
655
653
|
o("unloaded");
|
|
656
654
|
}
|
|
657
|
-
return (i, f) => (
|
|
655
|
+
return (i, f) => (u(), x($(yt), {
|
|
658
656
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
659
657
|
src: e.bundle,
|
|
660
658
|
symbol: e.icon,
|
|
661
|
-
style:
|
|
659
|
+
style: se(l.value),
|
|
662
660
|
onLoaded: a,
|
|
663
661
|
onUnloaded: r
|
|
664
662
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
665
663
|
}
|
|
666
|
-
}),
|
|
664
|
+
}), J = V(mt), wt = V(vt), $t = V(bt), It = V(kt), qt = /* @__PURE__ */ B({
|
|
667
665
|
__name: "QList",
|
|
668
666
|
props: {
|
|
669
667
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -688,13 +686,13 @@ const kt = /* @__PURE__ */ L({
|
|
|
688
686
|
r.value = !1;
|
|
689
687
|
}
|
|
690
688
|
function E(d) {
|
|
691
|
-
var
|
|
692
|
-
if ((
|
|
689
|
+
var L;
|
|
690
|
+
if ((L = m.value) != null && L.contains(d.relatedTarget))
|
|
693
691
|
return;
|
|
694
|
-
let
|
|
695
|
-
a.value ?
|
|
692
|
+
let b;
|
|
693
|
+
a.value ? b = l.items.findIndex((ue) => ue[l.itemValue] === a.value) : b = Q();
|
|
696
694
|
const k = r.value;
|
|
697
|
-
O(
|
|
695
|
+
O(b, k);
|
|
698
696
|
}
|
|
699
697
|
function A(d) {
|
|
700
698
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
|
|
@@ -726,13 +724,13 @@ const kt = /* @__PURE__ */ L({
|
|
|
726
724
|
break;
|
|
727
725
|
}
|
|
728
726
|
}
|
|
729
|
-
function O(d,
|
|
730
|
-
var
|
|
731
|
-
(
|
|
727
|
+
function O(d, b = !1) {
|
|
728
|
+
var L;
|
|
729
|
+
(L = z()[d]) == null || L.focus({ preventScroll: b });
|
|
732
730
|
}
|
|
733
731
|
function z() {
|
|
734
|
-
var
|
|
735
|
-
const d = (
|
|
732
|
+
var b;
|
|
733
|
+
const d = (b = m.value) == null ? void 0 : b.querySelectorAll("li");
|
|
736
734
|
return d ? Array.from(d) : [];
|
|
737
735
|
}
|
|
738
736
|
function H(d) {
|
|
@@ -742,37 +740,37 @@ const kt = /* @__PURE__ */ L({
|
|
|
742
740
|
return z().indexOf(document.activeElement);
|
|
743
741
|
}
|
|
744
742
|
function Q() {
|
|
745
|
-
const d = z(),
|
|
746
|
-
return
|
|
743
|
+
const d = z(), b = d.find((k) => h(k));
|
|
744
|
+
return b ? d.indexOf(b) : -1;
|
|
747
745
|
}
|
|
748
746
|
function M() {
|
|
749
|
-
const d = z(),
|
|
750
|
-
return
|
|
747
|
+
const d = z(), b = [...d].reverse().find((k) => h(k));
|
|
748
|
+
return b ? d.indexOf(b) : -1;
|
|
751
749
|
}
|
|
752
|
-
function U(d,
|
|
753
|
-
return
|
|
750
|
+
function U(d, b, k) {
|
|
751
|
+
return b === "prev" && d === 0 || b === "next" && d === k.length - 1;
|
|
754
752
|
}
|
|
755
753
|
function Y(d) {
|
|
756
|
-
const
|
|
757
|
-
return K(
|
|
754
|
+
const b = X();
|
|
755
|
+
return K(b, d);
|
|
758
756
|
}
|
|
759
|
-
function K(d,
|
|
757
|
+
function K(d, b) {
|
|
760
758
|
const k = z();
|
|
761
|
-
if (U(d,
|
|
759
|
+
if (U(d, b, k))
|
|
762
760
|
return d;
|
|
763
|
-
let
|
|
764
|
-
for (; !h(k[
|
|
765
|
-
if (U(
|
|
761
|
+
let L = d + (b === "next" ? 1 : -1);
|
|
762
|
+
for (; !h(k[L]); ) {
|
|
763
|
+
if (U(L, b, k))
|
|
766
764
|
return d;
|
|
767
|
-
|
|
765
|
+
L += b === "next" ? 1 : -1;
|
|
768
766
|
}
|
|
769
|
-
return
|
|
767
|
+
return L;
|
|
770
768
|
}
|
|
771
769
|
function h(d) {
|
|
772
770
|
return d.tabIndex === -2;
|
|
773
771
|
}
|
|
774
|
-
function
|
|
775
|
-
return d ? l.items.filter((
|
|
772
|
+
function c(d) {
|
|
773
|
+
return d ? l.items.filter((b) => b.group === d) : l.items;
|
|
776
774
|
}
|
|
777
775
|
return F(
|
|
778
776
|
() => l.modelValue,
|
|
@@ -785,7 +783,7 @@ const kt = /* @__PURE__ */ L({
|
|
|
785
783
|
getAdjacentItemIndex: K,
|
|
786
784
|
getFirstFocusableItemIndex: Q,
|
|
787
785
|
getLastFocusableItemIndex: M
|
|
788
|
-
}), (d,
|
|
786
|
+
}), (d, b) => (u(), x(De(i.value), {
|
|
789
787
|
ref_key: "listRef",
|
|
790
788
|
ref: m,
|
|
791
789
|
class: T(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
@@ -797,24 +795,24 @@ const kt = /* @__PURE__ */ L({
|
|
|
797
795
|
onKeydown: A
|
|
798
796
|
}, {
|
|
799
797
|
default: I(() => [
|
|
800
|
-
(
|
|
798
|
+
(u(!0), v(Z, null, pe(f.value, (k) => (u(), x($(Ct), {
|
|
801
799
|
key: k.id,
|
|
802
800
|
title: f.value.length === 1 ? void 0 : k.title,
|
|
803
801
|
disabled: k.disabled
|
|
804
802
|
}, {
|
|
805
803
|
default: I(() => [
|
|
806
|
-
(
|
|
807
|
-
key:
|
|
808
|
-
value:
|
|
809
|
-
label:
|
|
810
|
-
icon:
|
|
811
|
-
disabled: l.disabled ||
|
|
812
|
-
highlighted: l.highlighted ===
|
|
813
|
-
selected: a.value ===
|
|
804
|
+
(u(!0), v(Z, null, pe(c(k.id), (L) => (u(), x($(zt), {
|
|
805
|
+
key: L[l.itemValue],
|
|
806
|
+
value: L[l.itemValue],
|
|
807
|
+
label: L[l.itemLabel],
|
|
808
|
+
icon: L.icon,
|
|
809
|
+
disabled: l.disabled || L.disabled,
|
|
810
|
+
highlighted: l.highlighted === L[l.itemValue],
|
|
811
|
+
selected: a.value === L[l.itemValue],
|
|
814
812
|
onSelect: p
|
|
815
813
|
}, {
|
|
816
814
|
default: I(() => [
|
|
817
|
-
|
|
815
|
+
y(d.$slots, "item", { item: L })
|
|
818
816
|
]),
|
|
819
817
|
_: 2
|
|
820
818
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -830,11 +828,11 @@ let St = 0;
|
|
|
830
828
|
function te() {
|
|
831
829
|
return `uid-${++St}`;
|
|
832
830
|
}
|
|
833
|
-
const
|
|
831
|
+
const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-list-item__check-container" }, xt = {
|
|
834
832
|
check: {
|
|
835
833
|
icon: "check"
|
|
836
834
|
}
|
|
837
|
-
}, Vt = /* @__PURE__ */
|
|
835
|
+
}, Vt = /* @__PURE__ */ B({
|
|
838
836
|
__name: "QListItem",
|
|
839
837
|
props: {
|
|
840
838
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -854,7 +852,7 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
854
852
|
function r(i) {
|
|
855
853
|
i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
|
|
856
854
|
}
|
|
857
|
-
return (i, f) => (
|
|
855
|
+
return (i, f) => (u(), v("li", {
|
|
858
856
|
id: $(l),
|
|
859
857
|
role: "option",
|
|
860
858
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -871,16 +869,16 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
871
869
|
onKeydown: r,
|
|
872
870
|
onClick: ne(a, ["stop", "prevent"])
|
|
873
871
|
}, [
|
|
874
|
-
|
|
875
|
-
e.icon ? (
|
|
876
|
-
|
|
872
|
+
y(i.$slots, "default", {}, () => [
|
|
873
|
+
e.icon ? (u(), x($(J), ie(ee({ key: 0 }, e.icon)), null, 16)) : S("", !0),
|
|
874
|
+
ae(" " + N(e.label), 1)
|
|
877
875
|
]),
|
|
878
|
-
j("div",
|
|
879
|
-
e.selected ? (
|
|
876
|
+
j("div", Bt, [
|
|
877
|
+
e.selected ? (u(), x($(J), ee({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
|
|
880
878
|
])
|
|
881
|
-
], 42,
|
|
879
|
+
], 42, Lt));
|
|
882
880
|
}
|
|
883
|
-
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */
|
|
881
|
+
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */ B({
|
|
884
882
|
__name: "QListItemGroup",
|
|
885
883
|
props: {
|
|
886
884
|
title: { default: "" },
|
|
@@ -888,18 +886,18 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
888
886
|
},
|
|
889
887
|
setup(n) {
|
|
890
888
|
const t = n, o = te();
|
|
891
|
-
return (e, l) => (
|
|
889
|
+
return (e, l) => (u(), v("ul", {
|
|
892
890
|
class: "q-list-item-group",
|
|
893
891
|
role: "group",
|
|
894
892
|
"aria-labelledby": t.title ? $(o) : void 0
|
|
895
893
|
}, [
|
|
896
|
-
t.title ? (
|
|
894
|
+
t.title ? (u(), v("li", {
|
|
897
895
|
key: 0,
|
|
898
896
|
id: $(o),
|
|
899
897
|
class: "q-list-item-group__title",
|
|
900
898
|
role: "presentation"
|
|
901
899
|
}, N(t.title), 9, Tt)) : S("", !0),
|
|
902
|
-
|
|
900
|
+
y(e.$slots, "default")
|
|
903
901
|
], 8, Dt));
|
|
904
902
|
}
|
|
905
903
|
}), Qe = V(qt), zt = V(Vt), Ct = V(Et);
|
|
@@ -934,15 +932,15 @@ function Re(n, t, o) {
|
|
|
934
932
|
e = Be(n, t), l = window.innerHeight - n.top - n.height > t.height;
|
|
935
933
|
break;
|
|
936
934
|
case "left":
|
|
937
|
-
e = n.left > t.width, l =
|
|
935
|
+
e = n.left > t.width, l = Le(n, t);
|
|
938
936
|
break;
|
|
939
937
|
case "right":
|
|
940
|
-
e = window.innerWidth - n.left - n.width > t.width, l =
|
|
938
|
+
e = window.innerWidth - n.left - n.width > t.width, l = Le(n, t);
|
|
941
939
|
break;
|
|
942
940
|
}
|
|
943
941
|
return e && l;
|
|
944
942
|
}
|
|
945
|
-
function
|
|
943
|
+
function Le(n, t) {
|
|
946
944
|
return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
|
|
947
945
|
}
|
|
948
946
|
function Be(n, t) {
|
|
@@ -967,7 +965,7 @@ const Qt = ["role"], Rt = {
|
|
|
967
965
|
key: 0,
|
|
968
966
|
role: "presentation",
|
|
969
967
|
class: "q-overlay__arrow"
|
|
970
|
-
}, Mt = /* @__PURE__ */
|
|
968
|
+
}, Mt = /* @__PURE__ */ B({
|
|
971
969
|
inheritAttrs: !1,
|
|
972
970
|
__name: "QOverlay",
|
|
973
971
|
props: {
|
|
@@ -1012,13 +1010,13 @@ const Qt = ["role"], Rt = {
|
|
|
1012
1010
|
() => r.animating = !0
|
|
1013
1011
|
);
|
|
1014
1012
|
const f = g(() => {
|
|
1015
|
-
let h = 0,
|
|
1013
|
+
let h = 0, c = 0;
|
|
1016
1014
|
switch (r.placement) {
|
|
1017
1015
|
case "top":
|
|
1018
|
-
|
|
1016
|
+
c = -(e.offset || 0);
|
|
1019
1017
|
break;
|
|
1020
1018
|
case "bottom":
|
|
1021
|
-
|
|
1019
|
+
c = e.offset || 0;
|
|
1022
1020
|
break;
|
|
1023
1021
|
case "left":
|
|
1024
1022
|
h = -(e.offset || 0);
|
|
@@ -1028,7 +1026,7 @@ const Qt = ["role"], Rt = {
|
|
|
1028
1026
|
break;
|
|
1029
1027
|
}
|
|
1030
1028
|
const d = {
|
|
1031
|
-
top: `${r.top +
|
|
1029
|
+
top: `${r.top + c}px`,
|
|
1032
1030
|
left: `${r.left + h}px`
|
|
1033
1031
|
};
|
|
1034
1032
|
return r.width !== void 0 && ["top", "bottom"].includes(r.placement) && (d.width = `${r.width}px`), d;
|
|
@@ -1037,13 +1035,13 @@ const Qt = ["role"], Rt = {
|
|
|
1037
1035
|
if (e.anchor) {
|
|
1038
1036
|
const h = oe(e.anchor);
|
|
1039
1037
|
if (h) {
|
|
1040
|
-
const
|
|
1038
|
+
const c = Ft(
|
|
1041
1039
|
h,
|
|
1042
1040
|
m.value,
|
|
1043
1041
|
e.placement,
|
|
1044
1042
|
e.width
|
|
1045
1043
|
);
|
|
1046
|
-
r.left =
|
|
1044
|
+
r.left = c.x, r.top = c.y, r.width = c.width, r.placement = c.placement;
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
1049
1047
|
}
|
|
@@ -1052,8 +1050,8 @@ const Qt = ["role"], Rt = {
|
|
|
1052
1050
|
function C(h) {
|
|
1053
1051
|
_ || (_ = window.setTimeout(() => {
|
|
1054
1052
|
r.visible = !0, P(() => {
|
|
1055
|
-
var
|
|
1056
|
-
e.trigger === "click" && ((
|
|
1053
|
+
var c;
|
|
1054
|
+
e.trigger === "click" && ((c = m.value) == null || c.focus());
|
|
1057
1055
|
});
|
|
1058
1056
|
}, h));
|
|
1059
1057
|
}
|
|
@@ -1117,7 +1115,7 @@ const Qt = ["role"], Rt = {
|
|
|
1117
1115
|
function K() {
|
|
1118
1116
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1119
1117
|
}
|
|
1120
|
-
return Ne(K),
|
|
1118
|
+
return Ne(K), Te(p), F(
|
|
1121
1119
|
() => e.disabled,
|
|
1122
1120
|
(h) => {
|
|
1123
1121
|
h || H();
|
|
@@ -1129,28 +1127,28 @@ const Qt = ["role"], Rt = {
|
|
|
1129
1127
|
h ? Y() : K();
|
|
1130
1128
|
},
|
|
1131
1129
|
{ immediate: !0 }
|
|
1132
|
-
), (h,
|
|
1130
|
+
), (h, c) => (u(), x(He, {
|
|
1133
1131
|
disabled: !i.value && !r.animating || !e.attach,
|
|
1134
1132
|
to: e.attach
|
|
1135
1133
|
}, [
|
|
1136
|
-
a.value ? (
|
|
1134
|
+
a.value ? (u(), v("div", {
|
|
1137
1135
|
key: 0,
|
|
1138
1136
|
class: T([
|
|
1139
1137
|
"q-overlay__underlay",
|
|
1140
1138
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1141
1139
|
])
|
|
1142
1140
|
}, null, 2)) : S("", !0),
|
|
1143
|
-
|
|
1141
|
+
W(Ke, {
|
|
1144
1142
|
name: e.transition,
|
|
1145
1143
|
appear: "",
|
|
1146
1144
|
onEnter: R,
|
|
1147
1145
|
onLeave: O
|
|
1148
1146
|
}, {
|
|
1149
1147
|
default: I(() => [
|
|
1150
|
-
i.value ? (
|
|
1148
|
+
i.value ? (u(), v("div", {
|
|
1151
1149
|
key: 0,
|
|
1152
1150
|
class: T(l.value),
|
|
1153
|
-
style:
|
|
1151
|
+
style: se(f.value)
|
|
1154
1152
|
}, [
|
|
1155
1153
|
j("div", ee({
|
|
1156
1154
|
class: "q-overlay__content",
|
|
@@ -1159,11 +1157,11 @@ const Qt = ["role"], Rt = {
|
|
|
1159
1157
|
tabindex: "-1",
|
|
1160
1158
|
role: a.value ? "dialog" : void 0
|
|
1161
1159
|
}, h.$attrs, {
|
|
1162
|
-
onKeydown:
|
|
1160
|
+
onKeydown: Ge(E, ["escape"]),
|
|
1163
1161
|
onBlur: E
|
|
1164
1162
|
}), [
|
|
1165
|
-
e.arrow ? (
|
|
1166
|
-
|
|
1163
|
+
e.arrow ? (u(), v("div", Rt)) : S("", !0),
|
|
1164
|
+
y(h.$slots, "default")
|
|
1167
1165
|
], 16, Qt)
|
|
1168
1166
|
], 6)) : S("", !0)
|
|
1169
1167
|
]),
|
|
@@ -1180,10 +1178,10 @@ const Qt = ["role"], Rt = {
|
|
|
1180
1178
|
}, Kt = {
|
|
1181
1179
|
key: 1,
|
|
1182
1180
|
class: "q-field__append"
|
|
1183
|
-
},
|
|
1181
|
+
}, Gt = {
|
|
1184
1182
|
key: 1,
|
|
1185
1183
|
class: "q-field__extras"
|
|
1186
|
-
},
|
|
1184
|
+
}, Wt = /* @__PURE__ */ B({
|
|
1187
1185
|
inheritAttrs: !1,
|
|
1188
1186
|
__name: "QField",
|
|
1189
1187
|
props: {
|
|
@@ -1199,7 +1197,7 @@ const Qt = ["role"], Rt = {
|
|
|
1199
1197
|
const o = n, e = q(null), l = g(() => o.required && !o.readonly && !o.disabled);
|
|
1200
1198
|
return t({
|
|
1201
1199
|
fieldRef: e
|
|
1202
|
-
}), (a, r) => (
|
|
1200
|
+
}), (a, r) => (u(), v("div", {
|
|
1203
1201
|
id: o.id,
|
|
1204
1202
|
class: T([
|
|
1205
1203
|
"q-field",
|
|
@@ -1212,34 +1210,34 @@ const Qt = ["role"], Rt = {
|
|
|
1212
1210
|
o.class
|
|
1213
1211
|
])
|
|
1214
1212
|
}, [
|
|
1215
|
-
o.label ? (
|
|
1216
|
-
|
|
1213
|
+
o.label ? (u(), v("div", Ut, [
|
|
1214
|
+
y(a.$slots, "label.prepend"),
|
|
1217
1215
|
j("label", {
|
|
1218
1216
|
for: o.id
|
|
1219
1217
|
}, N(o.label), 9, Nt),
|
|
1220
|
-
|
|
1218
|
+
y(a.$slots, "label.append")
|
|
1221
1219
|
])) : S("", !0),
|
|
1222
|
-
|
|
1220
|
+
y(a.$slots, "control", {}, () => [
|
|
1223
1221
|
j("div", ee({
|
|
1224
1222
|
class: "q-field__control",
|
|
1225
1223
|
ref_key: "fieldRef",
|
|
1226
1224
|
ref: e
|
|
1227
1225
|
}, a.$attrs), [
|
|
1228
|
-
a.$slots.prepend ? (
|
|
1229
|
-
|
|
1226
|
+
a.$slots.prepend ? (u(), v("div", Ht, [
|
|
1227
|
+
y(a.$slots, "prepend")
|
|
1230
1228
|
])) : S("", !0),
|
|
1231
|
-
|
|
1232
|
-
a.$slots.append ? (
|
|
1233
|
-
|
|
1229
|
+
y(a.$slots, "default"),
|
|
1230
|
+
a.$slots.append ? (u(), v("div", Kt, [
|
|
1231
|
+
y(a.$slots, "append")
|
|
1234
1232
|
])) : S("", !0)
|
|
1235
1233
|
], 16)
|
|
1236
1234
|
]),
|
|
1237
|
-
a.$slots.extras ? (
|
|
1238
|
-
|
|
1235
|
+
a.$slots.extras ? (u(), v("div", Gt, [
|
|
1236
|
+
y(a.$slots, "extras")
|
|
1239
1237
|
])) : S("", !0)
|
|
1240
1238
|
], 10, Ot));
|
|
1241
1239
|
}
|
|
1242
|
-
}),
|
|
1240
|
+
}), _e = V(Wt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ B({
|
|
1243
1241
|
inheritAttrs: !1,
|
|
1244
1242
|
__name: "QTextField",
|
|
1245
1243
|
props: {
|
|
@@ -1277,7 +1275,7 @@ const Qt = ["role"], Rt = {
|
|
|
1277
1275
|
return (p = r.value) == null ? void 0 : p.fieldRef;
|
|
1278
1276
|
}),
|
|
1279
1277
|
inputRef: i
|
|
1280
|
-
}), (p, _) => (
|
|
1278
|
+
}), (p, _) => (u(), x($(_e), {
|
|
1281
1279
|
ref_key: "fieldRef",
|
|
1282
1280
|
ref: r,
|
|
1283
1281
|
class: T(["q-text-field", l.class]),
|
|
@@ -1289,13 +1287,13 @@ const Qt = ["role"], Rt = {
|
|
|
1289
1287
|
required: l.required
|
|
1290
1288
|
}, he({
|
|
1291
1289
|
"label.prepend": I(() => [
|
|
1292
|
-
|
|
1290
|
+
y(p.$slots, "label.prepend")
|
|
1293
1291
|
]),
|
|
1294
1292
|
"label.append": I(() => [
|
|
1295
|
-
|
|
1293
|
+
y(p.$slots, "label.append")
|
|
1296
1294
|
]),
|
|
1297
1295
|
default: I(() => [
|
|
1298
|
-
|
|
1296
|
+
We(j("input", ee({
|
|
1299
1297
|
"onUpdate:modelValue": _[0] || (_[0] = (C) => f.value = C),
|
|
1300
1298
|
ref_key: "inputRef",
|
|
1301
1299
|
ref: i,
|
|
@@ -1316,21 +1314,21 @@ const Qt = ["role"], Rt = {
|
|
|
1316
1314
|
p.$slots.prepend ? {
|
|
1317
1315
|
name: "prepend",
|
|
1318
1316
|
fn: I(() => [
|
|
1319
|
-
|
|
1317
|
+
y(p.$slots, "prepend")
|
|
1320
1318
|
]),
|
|
1321
1319
|
key: "0"
|
|
1322
1320
|
} : void 0,
|
|
1323
1321
|
p.$slots.append ? {
|
|
1324
1322
|
name: "append",
|
|
1325
1323
|
fn: I(() => [
|
|
1326
|
-
|
|
1324
|
+
y(p.$slots, "append")
|
|
1327
1325
|
]),
|
|
1328
1326
|
key: "1"
|
|
1329
1327
|
} : void 0,
|
|
1330
1328
|
p.$slots.extras ? {
|
|
1331
1329
|
name: "extras",
|
|
1332
1330
|
fn: I(() => [
|
|
1333
|
-
|
|
1331
|
+
y(p.$slots, "extras")
|
|
1334
1332
|
]),
|
|
1335
1333
|
key: "2"
|
|
1336
1334
|
} : void 0
|
|
@@ -1345,7 +1343,7 @@ const Qt = ["role"], Rt = {
|
|
|
1345
1343
|
clear: {
|
|
1346
1344
|
icon: "close"
|
|
1347
1345
|
}
|
|
1348
|
-
}, en = /* @__PURE__ */
|
|
1346
|
+
}, en = /* @__PURE__ */ B({
|
|
1349
1347
|
__name: "QCombobox",
|
|
1350
1348
|
props: {
|
|
1351
1349
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1371,7 +1369,7 @@ const Qt = ["role"], Rt = {
|
|
|
1371
1369
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1372
1370
|
setup(n, { expose: t, emit: o }) {
|
|
1373
1371
|
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), f = q(void 0), m = q(null), p = q(null), _ = q(null);
|
|
1374
|
-
|
|
1372
|
+
Te(Q);
|
|
1375
1373
|
const C = g(
|
|
1376
1374
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1377
1375
|
), E = g(() => {
|
|
@@ -1418,7 +1416,7 @@ const Qt = ["role"], Rt = {
|
|
|
1418
1416
|
function K() {
|
|
1419
1417
|
if (M(), A.value !== void 0) {
|
|
1420
1418
|
const s = E.value.indexOf(A.value);
|
|
1421
|
-
s !== -1 && P(() =>
|
|
1419
|
+
s !== -1 && P(() => ke(s));
|
|
1422
1420
|
}
|
|
1423
1421
|
}
|
|
1424
1422
|
function h(s) {
|
|
@@ -1429,13 +1427,13 @@ const Qt = ["role"], Rt = {
|
|
|
1429
1427
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1430
1428
|
r.value ? P(() => {
|
|
1431
1429
|
if (f.value === void 0)
|
|
1432
|
-
|
|
1430
|
+
c();
|
|
1433
1431
|
else {
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1432
|
+
const G = s.key === "ArrowDown" ? "next" : "prev";
|
|
1433
|
+
b(f.value, G);
|
|
1436
1434
|
}
|
|
1437
1435
|
}) : (M(), P(() => {
|
|
1438
|
-
s.key === "ArrowDown" ?
|
|
1436
|
+
s.key === "ArrowDown" ? c() : d();
|
|
1439
1437
|
}));
|
|
1440
1438
|
else if (s.key === "Enter") {
|
|
1441
1439
|
if (R.value === void 0)
|
|
@@ -1444,11 +1442,11 @@ const Qt = ["role"], Rt = {
|
|
|
1444
1442
|
} else
|
|
1445
1443
|
s.key === "Home" ? f.value = (w = p.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? f.value = (D = p.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
|
|
1446
1444
|
}
|
|
1447
|
-
function
|
|
1445
|
+
function c() {
|
|
1448
1446
|
var s, w;
|
|
1449
1447
|
if (a.value !== void 0) {
|
|
1450
1448
|
const D = E.value.findIndex(
|
|
1451
|
-
(
|
|
1449
|
+
(G) => G[l.itemValue] === a.value
|
|
1452
1450
|
);
|
|
1453
1451
|
D === -1 ? f.value = (s = p.value) == null ? void 0 : s.getFirstFocusableItemIndex() : f.value = D;
|
|
1454
1452
|
} else
|
|
@@ -1458,15 +1456,15 @@ const Qt = ["role"], Rt = {
|
|
|
1458
1456
|
var s;
|
|
1459
1457
|
f.value = (s = p.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1460
1458
|
}
|
|
1461
|
-
function
|
|
1459
|
+
function b(s, w) {
|
|
1462
1460
|
var D;
|
|
1463
1461
|
f.value = (D = p.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
|
|
1464
1462
|
}
|
|
1465
1463
|
function k(s) {
|
|
1466
|
-
var w, D,
|
|
1467
|
-
!((w = _.value) != null && w.contains(s.relatedTarget)) && !((
|
|
1464
|
+
var w, D, G;
|
|
1465
|
+
!((w = _.value) != null && w.contains(s.relatedTarget)) && !((G = (D = m.value) == null ? void 0 : D.fieldRef) != null && G.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
|
|
1468
1466
|
}
|
|
1469
|
-
function
|
|
1467
|
+
function L() {
|
|
1470
1468
|
var s, w;
|
|
1471
1469
|
(w = (s = m.value) == null ? void 0 : s.inputRef) == null || w.focus();
|
|
1472
1470
|
}
|
|
@@ -1476,7 +1474,7 @@ const Qt = ["role"], Rt = {
|
|
|
1476
1474
|
function Me() {
|
|
1477
1475
|
e("hide");
|
|
1478
1476
|
}
|
|
1479
|
-
function
|
|
1477
|
+
function ke(s) {
|
|
1480
1478
|
var D;
|
|
1481
1479
|
const w = (D = p.value) == null ? void 0 : D.getItem(s);
|
|
1482
1480
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
@@ -1487,13 +1485,13 @@ const Qt = ["role"], Rt = {
|
|
|
1487
1485
|
a.value = s, Q();
|
|
1488
1486
|
}
|
|
1489
1487
|
), F(f, (s) => {
|
|
1490
|
-
s !== void 0 &&
|
|
1488
|
+
s !== void 0 && ke(s);
|
|
1491
1489
|
}), F(i, (s) => {
|
|
1492
|
-
!s && C.value ? Y() : r.value && l.selectionMode === "automatic" && P(
|
|
1490
|
+
!s && C.value ? Y() : r.value && l.selectionMode === "automatic" && P(c), e("update:inputValue", s);
|
|
1493
1491
|
}), t({
|
|
1494
1492
|
triggerEl: m
|
|
1495
|
-
}), (s, w) => (
|
|
1496
|
-
|
|
1493
|
+
}), (s, w) => (u(), v(Z, null, [
|
|
1494
|
+
W($(Yt), {
|
|
1497
1495
|
modelValue: i.value,
|
|
1498
1496
|
"onUpdate:modelValue": w[0] || (w[0] = (D) => i.value = D),
|
|
1499
1497
|
id: l.id,
|
|
@@ -1516,40 +1514,40 @@ const Qt = ["role"], Rt = {
|
|
|
1516
1514
|
onKeydown: ne(h, ["stop"])
|
|
1517
1515
|
}, he({
|
|
1518
1516
|
"label.prepend": I(() => [
|
|
1519
|
-
|
|
1517
|
+
y(s.$slots, "label.prepend")
|
|
1520
1518
|
]),
|
|
1521
1519
|
"label.append": I(() => [
|
|
1522
|
-
|
|
1520
|
+
y(s.$slots, "label.append")
|
|
1523
1521
|
]),
|
|
1524
1522
|
_: 2
|
|
1525
1523
|
}, [
|
|
1526
1524
|
s.$slots.prepend ? {
|
|
1527
1525
|
name: "prepend",
|
|
1528
1526
|
fn: I(() => [
|
|
1529
|
-
|
|
1527
|
+
y(s.$slots, "prepend")
|
|
1530
1528
|
]),
|
|
1531
1529
|
key: "0"
|
|
1532
1530
|
} : void 0,
|
|
1533
1531
|
C.value && i.value || s.$slots.append ? {
|
|
1534
1532
|
name: "append",
|
|
1535
1533
|
fn: I(() => [
|
|
1536
|
-
C.value && i.value ? (
|
|
1534
|
+
C.value && i.value ? (u(), x($(J), ee({ key: 0 }, l.icons.clear, {
|
|
1537
1535
|
class: "q-combobox__clear",
|
|
1538
1536
|
onClick: ne(Y, ["stop", "prevent"])
|
|
1539
1537
|
}), null, 16)) : S("", !0),
|
|
1540
|
-
|
|
1538
|
+
y(s.$slots, "append")
|
|
1541
1539
|
]),
|
|
1542
1540
|
key: "1"
|
|
1543
1541
|
} : void 0,
|
|
1544
1542
|
s.$slots.extras ? {
|
|
1545
1543
|
name: "extras",
|
|
1546
1544
|
fn: I(() => [
|
|
1547
|
-
|
|
1545
|
+
y(s.$slots, "extras")
|
|
1548
1546
|
]),
|
|
1549
1547
|
key: "2"
|
|
1550
1548
|
} : void 0
|
|
1551
1549
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1552
|
-
|
|
1550
|
+
W($(de), {
|
|
1553
1551
|
"model-value": r.value,
|
|
1554
1552
|
spy: "",
|
|
1555
1553
|
trigger: "manual",
|
|
@@ -1569,19 +1567,19 @@ const Qt = ["role"], Rt = {
|
|
|
1569
1567
|
class: "q-select__body",
|
|
1570
1568
|
onFocusout: k
|
|
1571
1569
|
}, [
|
|
1572
|
-
|
|
1573
|
-
l.loading ? (
|
|
1570
|
+
y(s.$slots, "body.prepend"),
|
|
1571
|
+
l.loading ? (u(), x($(ge), {
|
|
1574
1572
|
key: 0,
|
|
1575
1573
|
class: "q-select__loader",
|
|
1576
1574
|
size: 24
|
|
1577
|
-
})) : E.value.length ? (
|
|
1575
|
+
})) : E.value.length ? (u(), x($(Qe), {
|
|
1578
1576
|
key: 1,
|
|
1579
1577
|
ref_key: "listRef",
|
|
1580
1578
|
ref: p,
|
|
1581
1579
|
class: "q-select__items",
|
|
1582
1580
|
modelValue: a.value,
|
|
1583
1581
|
"onUpdate:modelValue": [
|
|
1584
|
-
w[1] || (w[1] = (
|
|
1582
|
+
w[1] || (w[1] = (G) => a.value = G),
|
|
1585
1583
|
X
|
|
1586
1584
|
],
|
|
1587
1585
|
highlighted: (D = R.value) == null ? void 0 : D[l.itemValue],
|
|
@@ -1589,14 +1587,14 @@ const Qt = ["role"], Rt = {
|
|
|
1589
1587
|
groups: s.groups,
|
|
1590
1588
|
"item-label": l.itemLabel,
|
|
1591
1589
|
"item-value": l.itemValue,
|
|
1592
|
-
onMouseup:
|
|
1590
|
+
onMouseup: L
|
|
1593
1591
|
}, {
|
|
1594
|
-
item: I(({ item:
|
|
1595
|
-
|
|
1592
|
+
item: I(({ item: G }) => [
|
|
1593
|
+
y(s.$slots, "item", { item: G })
|
|
1596
1594
|
]),
|
|
1597
1595
|
_: 3
|
|
1598
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
1599
|
-
|
|
1596
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Pt, N(s.texts.noData), 1)),
|
|
1597
|
+
y(s.$slots, "body.append")
|
|
1600
1598
|
], 544)
|
|
1601
1599
|
];
|
|
1602
1600
|
}),
|
|
@@ -1610,13 +1608,11 @@ const Qt = ["role"], Rt = {
|
|
|
1610
1608
|
}, nn = { key: 0 }, ln = {
|
|
1611
1609
|
key: 1,
|
|
1612
1610
|
class: "q-input-group__append"
|
|
1613
|
-
}, on = { key: 0 }, an = /* @__PURE__ */
|
|
1611
|
+
}, on = { key: 0 }, an = /* @__PURE__ */ B({
|
|
1614
1612
|
__name: "QInputGroup",
|
|
1615
1613
|
props: {
|
|
1616
1614
|
id: { default: () => te() },
|
|
1617
1615
|
label: { default: "" },
|
|
1618
|
-
readonly: { type: Boolean },
|
|
1619
|
-
disabled: { type: Boolean },
|
|
1620
1616
|
required: { type: Boolean },
|
|
1621
1617
|
prependIcon: { default: void 0 },
|
|
1622
1618
|
appendIcon: { default: void 0 },
|
|
@@ -1629,51 +1625,49 @@ const Qt = ["role"], Rt = {
|
|
|
1629
1625
|
QField: {
|
|
1630
1626
|
size: "block"
|
|
1631
1627
|
}
|
|
1632
|
-
}), (o, e) => (
|
|
1628
|
+
}), (o, e) => (u(), x($(_e), {
|
|
1633
1629
|
id: t.id,
|
|
1634
1630
|
class: T(["q-input-group", t.class]),
|
|
1635
1631
|
label: t.label,
|
|
1636
|
-
readonly: t.readonly,
|
|
1637
|
-
disabled: t.disabled,
|
|
1638
1632
|
required: t.required,
|
|
1639
1633
|
size: t.size
|
|
1640
1634
|
}, {
|
|
1641
1635
|
default: I(() => [
|
|
1642
|
-
o.$slots.prepend || t.prependIcon ? (
|
|
1643
|
-
t.prependIcon ? (
|
|
1644
|
-
|
|
1636
|
+
o.$slots.prepend || t.prependIcon ? (u(), v("div", tn, [
|
|
1637
|
+
t.prependIcon ? (u(), v("span", nn, [
|
|
1638
|
+
W($(J), ie(me(t.prependIcon)), null, 16)
|
|
1645
1639
|
])) : S("", !0),
|
|
1646
|
-
|
|
1640
|
+
y(o.$slots, "prepend")
|
|
1647
1641
|
])) : S("", !0),
|
|
1648
|
-
|
|
1649
|
-
o.$slots.append || t.appendIcon ? (
|
|
1650
|
-
t.appendIcon ? (
|
|
1651
|
-
|
|
1642
|
+
y(o.$slots, "default"),
|
|
1643
|
+
o.$slots.append || t.appendIcon ? (u(), v("div", ln, [
|
|
1644
|
+
t.appendIcon ? (u(), v("span", on, [
|
|
1645
|
+
W($(J), ie(me(t.appendIcon)), null, 16)
|
|
1652
1646
|
])) : S("", !0),
|
|
1653
|
-
|
|
1647
|
+
y(o.$slots, "append")
|
|
1654
1648
|
])) : S("", !0)
|
|
1655
1649
|
]),
|
|
1656
1650
|
_: 3
|
|
1657
|
-
}, 8, ["id", "class", "label", "
|
|
1651
|
+
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1658
1652
|
}
|
|
1659
|
-
}), Sn = V(an), sn = /* @__PURE__ */
|
|
1653
|
+
}), Sn = V(an), sn = /* @__PURE__ */ B({
|
|
1660
1654
|
__name: "QLineLoader",
|
|
1661
1655
|
props: {
|
|
1662
1656
|
class: { default: void 0 }
|
|
1663
1657
|
},
|
|
1664
1658
|
setup(n) {
|
|
1665
1659
|
const t = n;
|
|
1666
|
-
return (o, e) => (
|
|
1660
|
+
return (o, e) => (u(), v("div", {
|
|
1667
1661
|
class: T(["q-line-loader", t.class])
|
|
1668
1662
|
}, null, 2));
|
|
1669
1663
|
}
|
|
1670
|
-
}),
|
|
1664
|
+
}), Ln = V(sn), rn = {
|
|
1671
1665
|
key: 0,
|
|
1672
1666
|
class: "q-popover__header"
|
|
1673
1667
|
}, dn = {
|
|
1674
1668
|
key: 1,
|
|
1675
1669
|
class: "q-popover__body"
|
|
1676
|
-
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */
|
|
1670
|
+
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ B({
|
|
1677
1671
|
inheritAttrs: !1,
|
|
1678
1672
|
__name: "QPopover",
|
|
1679
1673
|
props: {
|
|
@@ -1690,7 +1684,7 @@ const Qt = ["role"], Rt = {
|
|
|
1690
1684
|
},
|
|
1691
1685
|
setup(n) {
|
|
1692
1686
|
const t = n;
|
|
1693
|
-
return (o, e) => (
|
|
1687
|
+
return (o, e) => (u(), x($(de), {
|
|
1694
1688
|
"model-value": t.modelValue,
|
|
1695
1689
|
class: "q-popover",
|
|
1696
1690
|
trigger: "click",
|
|
@@ -1702,22 +1696,22 @@ const Qt = ["role"], Rt = {
|
|
|
1702
1696
|
spy: t.spy
|
|
1703
1697
|
}, {
|
|
1704
1698
|
default: I(() => [
|
|
1705
|
-
t.title || o.$slots.header ? (
|
|
1706
|
-
|
|
1707
|
-
|
|
1699
|
+
t.title || o.$slots.header ? (u(), v("h3", rn, [
|
|
1700
|
+
ae(N(t.title) + " ", 1),
|
|
1701
|
+
y(o.$slots, "header")
|
|
1708
1702
|
])) : S("", !0),
|
|
1709
|
-
t.text || o.$slots.body ? (
|
|
1710
|
-
t.html ? (
|
|
1703
|
+
t.text || o.$slots.body ? (u(), v("div", dn, [
|
|
1704
|
+
t.html ? (u(), v("span", {
|
|
1711
1705
|
key: 0,
|
|
1712
1706
|
innerHTML: t.text
|
|
1713
|
-
}, null, 8, un)) : (
|
|
1714
|
-
|
|
1707
|
+
}, null, 8, un)) : (u(), v("span", cn, N(t.text), 1)),
|
|
1708
|
+
y(o.$slots, "body")
|
|
1715
1709
|
])) : S("", !0)
|
|
1716
1710
|
]),
|
|
1717
1711
|
_: 3
|
|
1718
1712
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
1719
1713
|
}
|
|
1720
|
-
}),
|
|
1714
|
+
}), Bn = V(fn), pn = {
|
|
1721
1715
|
key: 0,
|
|
1722
1716
|
class: "q-select__value"
|
|
1723
1717
|
}, mn = {
|
|
@@ -1732,7 +1726,7 @@ const Qt = ["role"], Rt = {
|
|
|
1732
1726
|
clear: {
|
|
1733
1727
|
icon: "close"
|
|
1734
1728
|
}
|
|
1735
|
-
},
|
|
1729
|
+
}, bn = /* @__PURE__ */ B({
|
|
1736
1730
|
__name: "QSelect",
|
|
1737
1731
|
props: {
|
|
1738
1732
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1756,16 +1750,16 @@ const Qt = ["role"], Rt = {
|
|
|
1756
1750
|
setup(n, { emit: t }) {
|
|
1757
1751
|
const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), f = q(null), m = q(null), p = g(
|
|
1758
1752
|
() => {
|
|
1759
|
-
var
|
|
1760
|
-
return (
|
|
1753
|
+
var c;
|
|
1754
|
+
return (c = e.items) == null ? void 0 : c.find((d) => d[e.itemValue] === l.value);
|
|
1761
1755
|
}
|
|
1762
1756
|
), _ = g(
|
|
1763
1757
|
() => p.value ? p.value[e.itemLabel] : ""
|
|
1764
1758
|
), C = g(
|
|
1765
1759
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1766
1760
|
);
|
|
1767
|
-
function E(
|
|
1768
|
-
l.value =
|
|
1761
|
+
function E(c) {
|
|
1762
|
+
l.value = c, o("update:modelValue", c), H();
|
|
1769
1763
|
}
|
|
1770
1764
|
function A() {
|
|
1771
1765
|
C.value && E(void 0);
|
|
@@ -1773,9 +1767,9 @@ const Qt = ["role"], Rt = {
|
|
|
1773
1767
|
function R() {
|
|
1774
1768
|
e.readonly || e.disabled || (a.value ? H() : z());
|
|
1775
1769
|
}
|
|
1776
|
-
function O(
|
|
1777
|
-
var d,
|
|
1778
|
-
!((d = m.value) != null && d.contains(
|
|
1770
|
+
function O(c) {
|
|
1771
|
+
var d, b, k;
|
|
1772
|
+
!((d = m.value) != null && d.contains(c.relatedTarget)) && !((k = (b = i.value) == null ? void 0 : b.fieldRef) != null && k.contains(c.relatedTarget)) && H();
|
|
1779
1773
|
}
|
|
1780
1774
|
function z() {
|
|
1781
1775
|
a.value || (o("before-show"), a.value = !0);
|
|
@@ -1784,10 +1778,10 @@ const Qt = ["role"], Rt = {
|
|
|
1784
1778
|
a.value && (o("before-hide"), a.value = !1);
|
|
1785
1779
|
}
|
|
1786
1780
|
let X;
|
|
1787
|
-
function Q(
|
|
1788
|
-
if (!(!
|
|
1789
|
-
if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
1790
|
-
r.value +=
|
|
1781
|
+
function Q(c) {
|
|
1782
|
+
if (!(!c.key || e.readonly || e.disabled)) {
|
|
1783
|
+
if (window.clearTimeout(X), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(c.key) && (c.preventDefault(), c.stopPropagation()), ["Enter", " "].includes(c.key) && (a.value = !0), ["Escape", "Tab"].includes(c.key) && (a.value ? a.value = !1 : e.clearable && c.key === "Escape" && A()), c.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(c.key)) {
|
|
1784
|
+
r.value += c.key.toLowerCase();
|
|
1791
1785
|
for (let d = 0; d < e.items.length; d++)
|
|
1792
1786
|
if (e.items[d][e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
1793
1787
|
h(d);
|
|
@@ -1800,38 +1794,38 @@ const Qt = ["role"], Rt = {
|
|
|
1800
1794
|
}
|
|
1801
1795
|
}
|
|
1802
1796
|
function M() {
|
|
1803
|
-
var
|
|
1804
|
-
e.loading ? (
|
|
1797
|
+
var c;
|
|
1798
|
+
e.loading ? (c = m.value) == null || c.focus() : K(), o("show");
|
|
1805
1799
|
}
|
|
1806
1800
|
function U() {
|
|
1807
1801
|
Y(), o("hide");
|
|
1808
1802
|
}
|
|
1809
1803
|
function Y() {
|
|
1810
|
-
var
|
|
1811
|
-
(d = (
|
|
1804
|
+
var c, d;
|
|
1805
|
+
(d = (c = i.value) == null ? void 0 : c.fieldRef) == null || d.focus();
|
|
1812
1806
|
}
|
|
1813
1807
|
function K() {
|
|
1814
|
-
var
|
|
1815
|
-
(
|
|
1808
|
+
var c;
|
|
1809
|
+
(c = f.value) == null || c.$el.focus();
|
|
1816
1810
|
}
|
|
1817
|
-
function h(
|
|
1811
|
+
function h(c) {
|
|
1818
1812
|
var d;
|
|
1819
|
-
(d = f.value) == null || d.focusItem(
|
|
1813
|
+
(d = f.value) == null || d.focusItem(c);
|
|
1820
1814
|
}
|
|
1821
1815
|
return F(
|
|
1822
1816
|
() => e.modelValue,
|
|
1823
|
-
(
|
|
1824
|
-
l.value =
|
|
1817
|
+
(c) => {
|
|
1818
|
+
l.value = c;
|
|
1825
1819
|
}
|
|
1826
1820
|
), F(
|
|
1827
1821
|
() => e.loading,
|
|
1828
|
-
(
|
|
1829
|
-
!
|
|
1822
|
+
(c) => {
|
|
1823
|
+
!c && a.value && P(K);
|
|
1830
1824
|
}
|
|
1831
|
-
), (
|
|
1832
|
-
var
|
|
1833
|
-
return
|
|
1834
|
-
|
|
1825
|
+
), (c, d) => {
|
|
1826
|
+
var b;
|
|
1827
|
+
return u(), v(Z, null, [
|
|
1828
|
+
W($(_e), {
|
|
1835
1829
|
id: e.id,
|
|
1836
1830
|
label: e.label,
|
|
1837
1831
|
required: e.required,
|
|
@@ -1857,29 +1851,33 @@ const Qt = ["role"], Rt = {
|
|
|
1857
1851
|
onKeydown: ne(Q, ["stop"])
|
|
1858
1852
|
}, he({
|
|
1859
1853
|
append: I(() => [
|
|
1860
|
-
C.value && l.value ? (
|
|
1854
|
+
C.value && l.value ? (u(), x($(J), ee({ key: 0 }, e.icons.clear, {
|
|
1861
1855
|
class: "q-select__clear",
|
|
1862
1856
|
onClick: ne(A, ["stop", "prevent"])
|
|
1863
1857
|
}), null, 16)) : S("", !0),
|
|
1864
|
-
e.readonly ? S("", !0) : (
|
|
1858
|
+
e.readonly ? S("", !0) : (u(), x($(J), ee({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1865
1859
|
]),
|
|
1866
1860
|
default: I(() => [
|
|
1867
|
-
l.value !== void 0 ? (
|
|
1861
|
+
l.value !== void 0 ? (u(), v("span", pn, N(_.value), 1)) : (u(), v("span", mn, [
|
|
1862
|
+
!e.readonly && !e.disabled ? (u(), v(Z, { key: 0 }, [
|
|
1863
|
+
ae(N(c.texts.placeholder), 1)
|
|
1864
|
+
], 64)) : S("", !0)
|
|
1865
|
+
]))
|
|
1868
1866
|
]),
|
|
1869
1867
|
_: 2
|
|
1870
1868
|
}, [
|
|
1871
|
-
(
|
|
1869
|
+
(b = p.value) != null && b.icon ? {
|
|
1872
1870
|
name: "prepend",
|
|
1873
1871
|
fn: I(() => {
|
|
1874
1872
|
var k;
|
|
1875
1873
|
return [
|
|
1876
|
-
|
|
1874
|
+
W($(J), ie(me((k = p.value) == null ? void 0 : k.icon)), null, 16)
|
|
1877
1875
|
];
|
|
1878
1876
|
}),
|
|
1879
1877
|
key: "0"
|
|
1880
1878
|
} : void 0
|
|
1881
1879
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1882
|
-
|
|
1880
|
+
W($(de), {
|
|
1883
1881
|
"model-value": a.value,
|
|
1884
1882
|
spy: "",
|
|
1885
1883
|
trigger: "manual",
|
|
@@ -1899,12 +1897,12 @@ const Qt = ["role"], Rt = {
|
|
|
1899
1897
|
onFocusout: O,
|
|
1900
1898
|
onKeydown: ne(Q, ["stop"])
|
|
1901
1899
|
}, [
|
|
1902
|
-
|
|
1903
|
-
e.loading ? (
|
|
1900
|
+
y(c.$slots, "body.prepend"),
|
|
1901
|
+
e.loading ? (u(), x($(ge), {
|
|
1904
1902
|
key: 0,
|
|
1905
1903
|
class: "q-select__loader",
|
|
1906
1904
|
size: 24
|
|
1907
|
-
})) : (
|
|
1905
|
+
})) : (u(), x($(Qe), {
|
|
1908
1906
|
key: 1,
|
|
1909
1907
|
ref_key: "listRef",
|
|
1910
1908
|
ref: f,
|
|
@@ -1915,16 +1913,16 @@ const Qt = ["role"], Rt = {
|
|
|
1915
1913
|
E
|
|
1916
1914
|
],
|
|
1917
1915
|
items: e.items,
|
|
1918
|
-
groups:
|
|
1916
|
+
groups: c.groups,
|
|
1919
1917
|
"item-label": e.itemLabel,
|
|
1920
1918
|
"item-value": e.itemValue
|
|
1921
1919
|
}, {
|
|
1922
1920
|
item: I(({ item: k }) => [
|
|
1923
|
-
|
|
1921
|
+
y(c.$slots, "item", { item: k })
|
|
1924
1922
|
]),
|
|
1925
1923
|
_: 3
|
|
1926
1924
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1927
|
-
|
|
1925
|
+
y(c.$slots, "body.append")
|
|
1928
1926
|
], 544)
|
|
1929
1927
|
]),
|
|
1930
1928
|
_: 3
|
|
@@ -1932,7 +1930,7 @@ const Qt = ["role"], Rt = {
|
|
|
1932
1930
|
], 64);
|
|
1933
1931
|
};
|
|
1934
1932
|
}
|
|
1935
|
-
}), xn = V(
|
|
1933
|
+
}), xn = V(bn), yn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ B({
|
|
1936
1934
|
__name: "QTooltip",
|
|
1937
1935
|
props: {
|
|
1938
1936
|
modelValue: { type: Boolean },
|
|
@@ -1951,11 +1949,11 @@ const Qt = ["role"], Rt = {
|
|
|
1951
1949
|
},
|
|
1952
1950
|
setup(n) {
|
|
1953
1951
|
const t = n;
|
|
1954
|
-
return (o, e) => (
|
|
1955
|
-
|
|
1952
|
+
return (o, e) => (u(), v(Z, null, [
|
|
1953
|
+
y(o.$slots, "anchor", {
|
|
1956
1954
|
props: { "aria-describedby": t.id }
|
|
1957
1955
|
}),
|
|
1958
|
-
|
|
1956
|
+
W($(de), {
|
|
1959
1957
|
"model-value": t.modelValue,
|
|
1960
1958
|
anchor: t.anchor,
|
|
1961
1959
|
role: "tooltip",
|
|
@@ -1970,10 +1968,10 @@ const Qt = ["role"], Rt = {
|
|
|
1970
1968
|
trigger: t.trigger
|
|
1971
1969
|
}, {
|
|
1972
1970
|
default: I(() => [
|
|
1973
|
-
t.html ? (
|
|
1971
|
+
t.html ? (u(), v("span", {
|
|
1974
1972
|
key: 0,
|
|
1975
1973
|
innerHTML: t.text
|
|
1976
|
-
}, null, 8,
|
|
1974
|
+
}, null, 8, yn)) : (u(), v("span", gn, N(t.text), 1))
|
|
1977
1975
|
]),
|
|
1978
1976
|
_: 1
|
|
1979
1977
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
@@ -1985,25 +1983,25 @@ export {
|
|
|
1985
1983
|
ft as QButtonGroup,
|
|
1986
1984
|
In as QButtonToggle,
|
|
1987
1985
|
qn as QCombobox,
|
|
1988
|
-
|
|
1989
|
-
|
|
1986
|
+
_e as QField,
|
|
1987
|
+
J as QIcon,
|
|
1990
1988
|
wt as QIconFont,
|
|
1991
1989
|
$t as QIconImg,
|
|
1992
1990
|
It as QIconSvg,
|
|
1993
1991
|
Sn as QInputGroup,
|
|
1994
|
-
|
|
1992
|
+
Ln as QLineLoader,
|
|
1995
1993
|
Qe as QList,
|
|
1996
1994
|
zt as QListItem,
|
|
1997
1995
|
Ct as QListItemGroup,
|
|
1998
1996
|
de as QOverlay,
|
|
1999
|
-
|
|
1997
|
+
Bn as QPopover,
|
|
2000
1998
|
xn as QSelect,
|
|
2001
|
-
|
|
1999
|
+
ge as QSpinnerLoader,
|
|
2002
2000
|
Yt as QTextField,
|
|
2003
2001
|
Vn as QTooltip,
|
|
2004
2002
|
$n as createFramework,
|
|
2005
2003
|
Ye as defaultDarkColorScheme,
|
|
2006
|
-
|
|
2004
|
+
Ie as defaultLightColorScheme,
|
|
2007
2005
|
wn as useTheme
|
|
2008
2006
|
};
|
|
2009
2007
|
//# sourceMappingURL=ui.esm.js.map
|