@quidgest/ui 0.7.4 → 0.7.6
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 +16 -9
- package/dist/ui.css +9 -4
- package/dist/ui.esm.js +209 -210
- 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 +12 -12
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +9 -4
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Be, computed as
|
|
1
|
+
import { getCurrentInstance as Be, computed as g, 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 H, normalizeClass as K, withModifiers as J, createVNode as ee, unref as y, createCommentVNode as q, Fragment as P, createTextVNode as de, toDisplayString as U, renderSlot as w, toRef as pe, createBlock as x, withCtx as S, renderList as ve, resolveDynamicComponent as De, h as we, normalizeProps as ue, mergeProps as le, reactive as Ke, onBeforeUnmount as We, onMounted as Ee, Teleport as Ge, Transition as je, nextTick as Z, createSlots as Te, withDirectives as Xe, vModelDynamic as Ye, useAttrs as Pe, guardReactiveProps as he } from "vue";
|
|
2
2
|
function ye(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -31,7 +31,7 @@ function Ze() {
|
|
|
31
31
|
if (!n)
|
|
32
32
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
33
33
|
const o = Ce();
|
|
34
|
-
return
|
|
34
|
+
return g(() => {
|
|
35
35
|
var e;
|
|
36
36
|
return (e = o.value) == null ? void 0 : e[n];
|
|
37
37
|
});
|
|
@@ -39,7 +39,7 @@ function Ze() {
|
|
|
39
39
|
function Ae(t) {
|
|
40
40
|
if (ye(t))
|
|
41
41
|
return;
|
|
42
|
-
const n = Ce(), o = I(t), e =
|
|
42
|
+
const n = Ce(), o = I(t), e = g(() => ye(o.value) ? n.value : ze(n.value, o.value));
|
|
43
43
|
He(be, e);
|
|
44
44
|
}
|
|
45
45
|
function Ce() {
|
|
@@ -244,16 +244,16 @@ function lt(t) {
|
|
|
244
244
|
for (e in t) {
|
|
245
245
|
const a = t[e];
|
|
246
246
|
if (a) {
|
|
247
|
-
o += ` ${
|
|
247
|
+
o += ` ${xe(e)}: ${a};
|
|
248
248
|
`;
|
|
249
249
|
const l = Fe(a);
|
|
250
|
-
o += ` ${
|
|
250
|
+
o += ` ${xe(e)}-rgb: ${l.r} ${l.g} ${l.b};
|
|
251
251
|
`;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
o += "}", n.textContent = o;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function xe(t) {
|
|
257
257
|
return t ? `--q-theme-${t.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
258
|
}
|
|
259
259
|
function Bn(t = {}) {
|
|
@@ -268,8 +268,8 @@ function Bn(t = {}) {
|
|
|
268
268
|
o.provide(be, I(l)), nt(o, t.themes);
|
|
269
269
|
} };
|
|
270
270
|
}
|
|
271
|
-
const at = /* @__PURE__ */
|
|
272
|
-
/* @__PURE__ */
|
|
271
|
+
const at = /* @__PURE__ */ H("svg", { viewBox: "25 25 50 50" }, [
|
|
272
|
+
/* @__PURE__ */ H("circle", {
|
|
273
273
|
class: "path",
|
|
274
274
|
cx: "50",
|
|
275
275
|
cy: "50",
|
|
@@ -287,7 +287,7 @@ const at = /* @__PURE__ */ U("svg", { viewBox: "25 25 50 50" }, [
|
|
|
287
287
|
size: { default: 48 }
|
|
288
288
|
},
|
|
289
289
|
setup(t) {
|
|
290
|
-
const n = t, o =
|
|
290
|
+
const n = t, o = g(() => ({
|
|
291
291
|
"font-size": n.size !== 48 ? `${n.size}px` : void 0
|
|
292
292
|
}));
|
|
293
293
|
return (e, a) => (c(), m("div", {
|
|
@@ -311,8 +311,8 @@ function B(t) {
|
|
|
311
311
|
return n(o, e);
|
|
312
312
|
const i = new Proxy(o, {
|
|
313
313
|
get(r, f) {
|
|
314
|
-
var
|
|
315
|
-
const u = Reflect.get(r, f), h = (
|
|
314
|
+
var b;
|
|
315
|
+
const u = Reflect.get(r, f), h = (b = a.value) == null ? void 0 : b[f];
|
|
316
316
|
return typeof f == "string" && !rt(l.vnode, f) ? h ?? u : u;
|
|
317
317
|
}
|
|
318
318
|
});
|
|
@@ -338,11 +338,11 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
338
338
|
},
|
|
339
339
|
emits: ["click"],
|
|
340
340
|
setup(t, { emit: n }) {
|
|
341
|
-
const o = n, e = t, a =
|
|
341
|
+
const o = n, e = t, a = g(() => e.disabled || e.loading);
|
|
342
342
|
function l(r) {
|
|
343
343
|
a.value || o("click", r);
|
|
344
344
|
}
|
|
345
|
-
const i =
|
|
345
|
+
const i = g(() => {
|
|
346
346
|
const r = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
347
347
|
return [
|
|
348
348
|
"q-btn",
|
|
@@ -366,13 +366,13 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
366
366
|
r.loading ? (c(), m("div", ut, [
|
|
367
367
|
ee(y(ge), { size: 23 })
|
|
368
368
|
])) : q("", !0),
|
|
369
|
-
|
|
369
|
+
H("span", ct, [
|
|
370
370
|
r.iconOnRight ? (c(), m(P, { key: 0 }, [
|
|
371
|
-
de(
|
|
371
|
+
de(U(e.label), 1)
|
|
372
372
|
], 64)) : q("", !0),
|
|
373
373
|
w(r.$slots, "default"),
|
|
374
374
|
r.iconOnRight ? q("", !0) : (c(), m(P, { key: 1 }, [
|
|
375
|
-
de(
|
|
375
|
+
de(U(e.label), 1)
|
|
376
376
|
], 64))
|
|
377
377
|
])
|
|
378
378
|
], 10, dt));
|
|
@@ -395,7 +395,7 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
395
395
|
elevated: !1
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
const o =
|
|
398
|
+
const o = g(() => [
|
|
399
399
|
"q-btn-group",
|
|
400
400
|
{
|
|
401
401
|
"q-btn-group--elevated": n.elevated
|
|
@@ -424,7 +424,7 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
424
424
|
() => e.modelValue,
|
|
425
425
|
(r) => a.value = r
|
|
426
426
|
);
|
|
427
|
-
const l =
|
|
427
|
+
const l = g({
|
|
428
428
|
get() {
|
|
429
429
|
return a.value;
|
|
430
430
|
},
|
|
@@ -435,21 +435,21 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
435
435
|
function i(r) {
|
|
436
436
|
l.value === r.key && !e.mandatory ? l.value = void 0 : l.value = r.key;
|
|
437
437
|
}
|
|
438
|
-
return (r, f) => (c(),
|
|
438
|
+
return (r, f) => (c(), x(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:
|
|
445
|
-
(c(!0), m(P, null, ve(e.options, (u) => (c(),
|
|
444
|
+
default: S(() => [
|
|
445
|
+
(c(!0), m(P, null, ve(e.options, (u) => (c(), x(y(pt), {
|
|
446
446
|
key: u.key,
|
|
447
447
|
title: u.title,
|
|
448
448
|
label: u.label,
|
|
449
449
|
active: l.value === u.key,
|
|
450
450
|
onClick: () => i(u)
|
|
451
451
|
}, {
|
|
452
|
-
default:
|
|
452
|
+
default: S(() => [
|
|
453
453
|
w(r.$slots, u.key)
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
@@ -466,19 +466,19 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
466
466
|
size: { default: void 0 }
|
|
467
467
|
},
|
|
468
468
|
setup(t) {
|
|
469
|
-
const n = t, o =
|
|
469
|
+
const n = t, o = g(() => {
|
|
470
470
|
switch (n.type) {
|
|
471
471
|
case "svg":
|
|
472
|
-
return
|
|
472
|
+
return St;
|
|
473
473
|
case "font":
|
|
474
474
|
return qt;
|
|
475
475
|
case "img":
|
|
476
|
-
return
|
|
476
|
+
return xt;
|
|
477
477
|
default:
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
return (e, a) => (c(),
|
|
481
|
+
return (e, a) => (c(), x(De(o.value), {
|
|
482
482
|
icon: n.icon,
|
|
483
483
|
size: n.size
|
|
484
484
|
}, null, 8, ["icon", "size"]));
|
|
@@ -492,7 +492,7 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
492
492
|
size: { default: void 0 }
|
|
493
493
|
},
|
|
494
494
|
setup(t) {
|
|
495
|
-
const n = t, o =
|
|
495
|
+
const n = t, o = g(() => n.variant ? `${n.library}-${n.variant}` : n.library), e = g(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), a = g(() => ({
|
|
496
496
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
497
497
|
}));
|
|
498
498
|
return (l, i) => (c(), m("i", {
|
|
@@ -507,7 +507,7 @@ const ge = B(it), dt = ["disabled"], ut = {
|
|
|
507
507
|
size: {}
|
|
508
508
|
},
|
|
509
509
|
setup(t) {
|
|
510
|
-
const n = t, o =
|
|
510
|
+
const n = t, o = g(() => ({
|
|
511
511
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
512
512
|
}));
|
|
513
513
|
return (e, a) => (c(), m("img", {
|
|
@@ -638,7 +638,7 @@ const It = /* @__PURE__ */ L({
|
|
|
638
638
|
},
|
|
639
639
|
emits: ["loaded", "unloaded"],
|
|
640
640
|
setup(t, { emit: n }) {
|
|
641
|
-
const o = n, e = t, a =
|
|
641
|
+
const o = n, e = t, a = g(() => ({
|
|
642
642
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
643
643
|
}));
|
|
644
644
|
function l(r) {
|
|
@@ -647,7 +647,7 @@ const It = /* @__PURE__ */ L({
|
|
|
647
647
|
function i() {
|
|
648
648
|
o("unloaded");
|
|
649
649
|
}
|
|
650
|
-
return (r, f) => (c(),
|
|
650
|
+
return (r, f) => (c(), x(y(kt), {
|
|
651
651
|
class: "q-icon q-icon__svg",
|
|
652
652
|
src: e.bundle,
|
|
653
653
|
symbol: e.icon,
|
|
@@ -656,7 +656,7 @@ const It = /* @__PURE__ */ L({
|
|
|
656
656
|
onUnloaded: i
|
|
657
657
|
}, null, 8, ["src", "symbol", "style"]));
|
|
658
658
|
}
|
|
659
|
-
}), Y = B(yt), qt = B(bt),
|
|
659
|
+
}), Y = B(yt), qt = B(bt), xt = B(_t), St = B(It), Lt = /* @__PURE__ */ L({
|
|
660
660
|
__name: "QList",
|
|
661
661
|
props: {
|
|
662
662
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -669,11 +669,11 @@ const It = /* @__PURE__ */ L({
|
|
|
669
669
|
},
|
|
670
670
|
emits: ["update:modelValue"],
|
|
671
671
|
setup(t, { expose: n, emit: o }) {
|
|
672
|
-
const e = o, a = t, l = I(a.modelValue), i = I(!1), r =
|
|
672
|
+
const e = o, a = t, l = I(a.modelValue), i = I(!1), r = g(() => f.value.length > 1 ? "div" : "ul"), f = g(() => a.groups.length ? a.groups : [{ title: "" }]), u = I(null);
|
|
673
673
|
function h(s) {
|
|
674
674
|
l.value = s, e("update:modelValue", s);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function b() {
|
|
677
677
|
i.value = !0;
|
|
678
678
|
}
|
|
679
679
|
function R() {
|
|
@@ -684,27 +684,27 @@ const It = /* @__PURE__ */ L({
|
|
|
684
684
|
if (($ = u.value) != null && $.contains(s.relatedTarget))
|
|
685
685
|
return;
|
|
686
686
|
let p;
|
|
687
|
-
l.value ? p = a.items.findIndex((
|
|
687
|
+
l.value ? p = a.items.findIndex((ne) => ne[a.itemValue] === l.value) : p = Q();
|
|
688
688
|
const k = i.value;
|
|
689
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
|
-
|
|
694
|
+
T("next");
|
|
695
695
|
break;
|
|
696
696
|
case "ArrowUp":
|
|
697
|
-
|
|
697
|
+
T("prev");
|
|
698
698
|
break;
|
|
699
699
|
case "Home":
|
|
700
|
-
|
|
700
|
+
T("first");
|
|
701
701
|
break;
|
|
702
702
|
case "End":
|
|
703
|
-
|
|
703
|
+
T("last");
|
|
704
704
|
break;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function T(s) {
|
|
708
708
|
switch (s) {
|
|
709
709
|
case "next":
|
|
710
710
|
case "prev":
|
|
@@ -720,36 +720,36 @@ const It = /* @__PURE__ */ L({
|
|
|
720
720
|
}
|
|
721
721
|
function O(s, p = !1) {
|
|
722
722
|
var $;
|
|
723
|
-
($ =
|
|
723
|
+
($ = E().at(s)) == null || $.focus({ preventScroll: p });
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function E() {
|
|
726
726
|
var p;
|
|
727
727
|
const s = (p = u.value) == null ? void 0 : p.querySelectorAll("li");
|
|
728
728
|
return s ? Array.from(s) : [];
|
|
729
729
|
}
|
|
730
730
|
function X(s) {
|
|
731
|
-
return
|
|
731
|
+
return E().at(s);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
733
|
+
function N() {
|
|
734
|
+
return E().indexOf(document.activeElement);
|
|
735
735
|
}
|
|
736
736
|
function Q() {
|
|
737
|
-
const s =
|
|
737
|
+
const s = E(), p = s.find((k) => v(k));
|
|
738
738
|
return p ? s.indexOf(p) : -1;
|
|
739
739
|
}
|
|
740
740
|
function C() {
|
|
741
|
-
const s =
|
|
741
|
+
const s = E(), p = [...s].reverse().find((k) => v(k));
|
|
742
742
|
return p ? s.indexOf(p) : -1;
|
|
743
743
|
}
|
|
744
744
|
function M(s, p, k) {
|
|
745
745
|
return p === "prev" && s === 0 || p === "next" && s === k.length - 1;
|
|
746
746
|
}
|
|
747
747
|
function W(s) {
|
|
748
|
-
const p =
|
|
748
|
+
const p = N();
|
|
749
749
|
return G(p, s);
|
|
750
750
|
}
|
|
751
751
|
function G(s, p) {
|
|
752
|
-
const k =
|
|
752
|
+
const k = E();
|
|
753
753
|
if (M(s, p, k))
|
|
754
754
|
return s;
|
|
755
755
|
let $ = s + (p === "next" ? 1 : -1);
|
|
@@ -777,25 +777,25 @@ const It = /* @__PURE__ */ L({
|
|
|
777
777
|
getAdjacentItemIndex: G,
|
|
778
778
|
getFirstFocusableItemIndex: Q,
|
|
779
779
|
getLastFocusableItemIndex: C
|
|
780
|
-
}), (s, p) => (c(),
|
|
780
|
+
}), (s, p) => (c(), x(De(r.value), {
|
|
781
781
|
ref_key: "listRef",
|
|
782
782
|
ref: u,
|
|
783
783
|
class: K(["q-list", { "q-list--disabled": a.disabled }]),
|
|
784
784
|
role: "listbox",
|
|
785
785
|
tabindex: a.disabled ? -1 : 0,
|
|
786
786
|
onFocus: A,
|
|
787
|
-
onMousedown:
|
|
787
|
+
onMousedown: b,
|
|
788
788
|
onMouseup: R,
|
|
789
789
|
onKeydown: F
|
|
790
790
|
}, {
|
|
791
|
-
default:
|
|
792
|
-
(c(!0), m(P, null, ve(f.value, (k) => (c(),
|
|
791
|
+
default: S(() => [
|
|
792
|
+
(c(!0), m(P, null, ve(f.value, (k) => (c(), x(y(Qt), {
|
|
793
793
|
key: k.id,
|
|
794
794
|
title: k.title,
|
|
795
795
|
disabled: k.disabled
|
|
796
796
|
}, {
|
|
797
|
-
default:
|
|
798
|
-
(c(!0), m(P, null, ve(V(k.id), ($) => (c(),
|
|
797
|
+
default: S(() => [
|
|
798
|
+
(c(!0), m(P, null, ve(V(k.id), ($) => (c(), x(y(Ft), {
|
|
799
799
|
key: $[a.itemValue],
|
|
800
800
|
value: $[a.itemValue],
|
|
801
801
|
label: $[a.itemLabel],
|
|
@@ -814,14 +814,14 @@ const It = /* @__PURE__ */ L({
|
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
816
|
let Bt = 0;
|
|
817
|
-
function
|
|
817
|
+
function te() {
|
|
818
818
|
return `uid-${++Bt}`;
|
|
819
819
|
}
|
|
820
|
-
const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-list-item__check-container" },
|
|
820
|
+
const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-list-item__check-container" }, Et = {
|
|
821
821
|
check: {
|
|
822
822
|
icon: "check"
|
|
823
823
|
}
|
|
824
|
-
},
|
|
824
|
+
}, Tt = /* @__PURE__ */ L({
|
|
825
825
|
__name: "QListItem",
|
|
826
826
|
props: {
|
|
827
827
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -829,12 +829,12 @@ const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-l
|
|
|
829
829
|
icon: { default: void 0 },
|
|
830
830
|
selected: { type: Boolean },
|
|
831
831
|
highlighted: { type: Boolean },
|
|
832
|
-
icons: { default: () =>
|
|
832
|
+
icons: { default: () => Et },
|
|
833
833
|
disabled: { type: Boolean }
|
|
834
834
|
},
|
|
835
835
|
emits: ["select"],
|
|
836
836
|
setup(t, { emit: n }) {
|
|
837
|
-
const o = n, e = t, a =
|
|
837
|
+
const o = n, e = t, a = te();
|
|
838
838
|
function l() {
|
|
839
839
|
e.disabled || o("select", e.value);
|
|
840
840
|
}
|
|
@@ -858,10 +858,10 @@ const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-l
|
|
|
858
858
|
onKeydown: i,
|
|
859
859
|
onClick: J(l, ["stop", "prevent"])
|
|
860
860
|
}, [
|
|
861
|
-
e.icon ? (c(),
|
|
862
|
-
de(" " +
|
|
863
|
-
|
|
864
|
-
e.selected ? (c(),
|
|
861
|
+
e.icon ? (c(), x(y(Y), ue(le({ key: 0 }, e.icon)), null, 16)) : q("", !0),
|
|
862
|
+
de(" " + U(e.label) + " ", 1),
|
|
863
|
+
H("div", Dt, [
|
|
864
|
+
e.selected ? (c(), x(y(Y), le({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
|
|
865
865
|
])
|
|
866
866
|
], 42, Vt));
|
|
867
867
|
}
|
|
@@ -872,7 +872,7 @@ const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-l
|
|
|
872
872
|
disabled: { type: Boolean }
|
|
873
873
|
},
|
|
874
874
|
setup(t) {
|
|
875
|
-
const n = t, o =
|
|
875
|
+
const n = t, o = te();
|
|
876
876
|
return (e, a) => (c(), m("ul", {
|
|
877
877
|
class: "q-list-item-group",
|
|
878
878
|
role: "group",
|
|
@@ -883,31 +883,31 @@ const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Dt = { class: "q-l
|
|
|
883
883
|
id: y(o),
|
|
884
884
|
class: "q-list-item-group__title",
|
|
885
885
|
role: "presentation"
|
|
886
|
-
},
|
|
886
|
+
}, U(n.title), 9, At)) : q("", !0),
|
|
887
887
|
w(e.$slots, "default")
|
|
888
888
|
], 8, zt));
|
|
889
889
|
}
|
|
890
|
-
}), Oe = B(Lt), Ft = B(
|
|
890
|
+
}), Oe = B(Lt), Ft = B(Tt), Qt = B(Ct);
|
|
891
891
|
function Rt(t, n, o = "right", e) {
|
|
892
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
893
|
let h = o;
|
|
894
894
|
r && !Me(a, r, h) && (h = Ot(a, r, h));
|
|
895
|
-
const
|
|
895
|
+
const b = { x: 0, y: 0, placement: h };
|
|
896
896
|
switch (h) {
|
|
897
897
|
case "top":
|
|
898
|
-
e === "anchor" ?
|
|
898
|
+
e === "anchor" ? b.x = l : b.x = l + (a.width - f) / 2, b.y = i - u;
|
|
899
899
|
break;
|
|
900
900
|
case "bottom":
|
|
901
|
-
e === "anchor" ?
|
|
901
|
+
e === "anchor" ? b.x = l : b.x = l + (a.width - f) / 2, b.y = i + a.height;
|
|
902
902
|
break;
|
|
903
903
|
case "left":
|
|
904
|
-
|
|
904
|
+
b.x = l - f, b.y = i + a.height / 2 - u / 2;
|
|
905
905
|
break;
|
|
906
906
|
case "right":
|
|
907
|
-
|
|
907
|
+
b.x = l + a.width, b.y = i + a.height / 2 - u / 2;
|
|
908
908
|
break;
|
|
909
909
|
}
|
|
910
|
-
return e === "anchor" && a.width >= f && (
|
|
910
|
+
return e === "anchor" && a.width >= f && (b.width = a.width), b;
|
|
911
911
|
}
|
|
912
912
|
function Me(t, n, o) {
|
|
913
913
|
let e = !1, a = !1;
|
|
@@ -919,15 +919,15 @@ function Me(t, n, o) {
|
|
|
919
919
|
e = Le(t, n), a = window.innerHeight - t.top - t.height > n.height;
|
|
920
920
|
break;
|
|
921
921
|
case "left":
|
|
922
|
-
e = t.left > n.width, a =
|
|
922
|
+
e = t.left > n.width, a = Se(t, n);
|
|
923
923
|
break;
|
|
924
924
|
case "right":
|
|
925
|
-
e = window.innerWidth - t.left - t.width > n.width, a =
|
|
925
|
+
e = window.innerWidth - t.left - t.width > n.width, a = Se(t, n);
|
|
926
926
|
break;
|
|
927
927
|
}
|
|
928
928
|
return e && a;
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Se(t, n) {
|
|
931
931
|
return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
|
|
932
932
|
}
|
|
933
933
|
function Le(t, n) {
|
|
@@ -972,7 +972,7 @@ const Mt = {
|
|
|
972
972
|
},
|
|
973
973
|
emits: ["enter", "leave"],
|
|
974
974
|
setup(t, { emit: n }) {
|
|
975
|
-
const o = n, e = t, a =
|
|
975
|
+
const o = n, e = t, a = g(() => [
|
|
976
976
|
"q-overlay",
|
|
977
977
|
`q-overlay--${l.placement}`,
|
|
978
978
|
{ "q-overlay--inverted": e.appearance === "inverted" },
|
|
@@ -984,7 +984,7 @@ const Mt = {
|
|
|
984
984
|
left: 0,
|
|
985
985
|
width: 0,
|
|
986
986
|
placement: e.placement
|
|
987
|
-
}), i =
|
|
987
|
+
}), i = g(() => l.visible && !e.disabled);
|
|
988
988
|
z(
|
|
989
989
|
() => e.modelValue,
|
|
990
990
|
() => l.visible = e.modelValue
|
|
@@ -992,7 +992,7 @@ const Mt = {
|
|
|
992
992
|
() => l.visible,
|
|
993
993
|
() => l.animating = !0
|
|
994
994
|
);
|
|
995
|
-
const r =
|
|
995
|
+
const r = g(() => {
|
|
996
996
|
let v = 0, V = 0;
|
|
997
997
|
switch (l.placement) {
|
|
998
998
|
case "top":
|
|
@@ -1023,7 +1023,7 @@ const Mt = {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
z([() => i.value, () => e.placement], u);
|
|
1025
1025
|
let h;
|
|
1026
|
-
function
|
|
1026
|
+
function b() {
|
|
1027
1027
|
const v = e.trigger === "hover" ? e.delay : 0;
|
|
1028
1028
|
h || (h = window.setTimeout(() => l.visible = !0, v));
|
|
1029
1029
|
}
|
|
@@ -1031,16 +1031,16 @@ const Mt = {
|
|
|
1031
1031
|
clearTimeout(h), h = void 0, l.visible = !1;
|
|
1032
1032
|
}
|
|
1033
1033
|
function A() {
|
|
1034
|
-
i.value ? R() :
|
|
1034
|
+
i.value ? R() : b();
|
|
1035
1035
|
}
|
|
1036
1036
|
let F;
|
|
1037
|
-
function
|
|
1037
|
+
function T() {
|
|
1038
1038
|
o("enter");
|
|
1039
1039
|
}
|
|
1040
1040
|
function O() {
|
|
1041
1041
|
window.clearTimeout(F), F = window.setTimeout(() => l.animating = !1, 200), o("leave");
|
|
1042
1042
|
}
|
|
1043
|
-
let
|
|
1043
|
+
let E;
|
|
1044
1044
|
function X() {
|
|
1045
1045
|
Z(() => {
|
|
1046
1046
|
const v = re(e.anchor);
|
|
@@ -1050,15 +1050,15 @@ const Mt = {
|
|
|
1050
1050
|
v.addEventListener("click", A);
|
|
1051
1051
|
break;
|
|
1052
1052
|
case "hover":
|
|
1053
|
-
v.addEventListener("mouseenter",
|
|
1053
|
+
v.addEventListener("mouseenter", b), v.addEventListener("mouseleave", R);
|
|
1054
1054
|
break;
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function N() {
|
|
1059
1059
|
Z(() => {
|
|
1060
1060
|
const v = re(e.anchor);
|
|
1061
|
-
v && (window.addEventListener("scroll", u), window.addEventListener("resize", u),
|
|
1061
|
+
v && (window.addEventListener("scroll", u), window.addEventListener("resize", u), E = new MutationObserver(u), E.observe(v, {
|
|
1062
1062
|
attributes: !1,
|
|
1063
1063
|
childList: !0,
|
|
1064
1064
|
characterData: !0,
|
|
@@ -1067,19 +1067,19 @@ const Mt = {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
function Q() {
|
|
1070
|
-
window.removeEventListener("scroll", u), window.removeEventListener("resize", u),
|
|
1070
|
+
window.removeEventListener("scroll", u), window.removeEventListener("resize", u), E == null || E.disconnect();
|
|
1071
1071
|
}
|
|
1072
1072
|
let C;
|
|
1073
1073
|
function M() {
|
|
1074
1074
|
re(e.anchor) ? (u(), C = window.setTimeout(M, 100)) : R();
|
|
1075
1075
|
}
|
|
1076
1076
|
function W() {
|
|
1077
|
-
|
|
1077
|
+
N(), e.spy && M();
|
|
1078
1078
|
}
|
|
1079
1079
|
function G() {
|
|
1080
1080
|
Q(), e.spy && (clearTimeout(C), C = void 0);
|
|
1081
1081
|
}
|
|
1082
|
-
return We(G),
|
|
1082
|
+
return We(G), Ee(u), z(
|
|
1083
1083
|
() => e.disabled,
|
|
1084
1084
|
(v) => {
|
|
1085
1085
|
v || X();
|
|
@@ -1093,7 +1093,7 @@ const Mt = {
|
|
|
1093
1093
|
{ immediate: !0 }
|
|
1094
1094
|
), (v, V) => (c(), m(P, null, [
|
|
1095
1095
|
w(v.$slots, "trigger", { open: i.value }),
|
|
1096
|
-
i.value || l.animating ? (c(),
|
|
1096
|
+
i.value || l.animating ? (c(), x(Ge, {
|
|
1097
1097
|
key: 0,
|
|
1098
1098
|
disabled: !e.attach,
|
|
1099
1099
|
to: e.attach
|
|
@@ -1101,16 +1101,16 @@ const Mt = {
|
|
|
1101
1101
|
ee(je, {
|
|
1102
1102
|
name: e.transition,
|
|
1103
1103
|
appear: "",
|
|
1104
|
-
onEnter:
|
|
1104
|
+
onEnter: T,
|
|
1105
1105
|
onLeave: O
|
|
1106
1106
|
}, {
|
|
1107
|
-
default:
|
|
1107
|
+
default: S(() => [
|
|
1108
1108
|
i.value ? (c(), m("div", {
|
|
1109
1109
|
key: 0,
|
|
1110
1110
|
class: K(a.value),
|
|
1111
1111
|
style: se(r.value)
|
|
1112
1112
|
}, [
|
|
1113
|
-
|
|
1113
|
+
H("div", {
|
|
1114
1114
|
class: K(["q-overlay__content"]),
|
|
1115
1115
|
ref_key: "overlay",
|
|
1116
1116
|
ref: f
|
|
@@ -1141,7 +1141,7 @@ const Mt = {
|
|
|
1141
1141
|
inheritAttrs: !1,
|
|
1142
1142
|
__name: "QField",
|
|
1143
1143
|
props: {
|
|
1144
|
-
id: { default: () =>
|
|
1144
|
+
id: { default: () => te() },
|
|
1145
1145
|
label: { default: "" },
|
|
1146
1146
|
size: { default: "medium" },
|
|
1147
1147
|
readonly: { type: Boolean },
|
|
@@ -1149,7 +1149,7 @@ const Mt = {
|
|
|
1149
1149
|
required: { type: Boolean }
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(t, { expose: n }) {
|
|
1152
|
-
const o = t, e = I(null), a =
|
|
1152
|
+
const o = t, e = I(null), a = g(() => o.required && !o.readonly && !o.disabled);
|
|
1153
1153
|
return n({
|
|
1154
1154
|
fieldRef: e
|
|
1155
1155
|
}), (l, i) => (c(), m("div", {
|
|
@@ -1166,13 +1166,13 @@ const Mt = {
|
|
|
1166
1166
|
}, [
|
|
1167
1167
|
o.label ? (c(), m("div", Ht, [
|
|
1168
1168
|
w(l.$slots, "label.prepend"),
|
|
1169
|
-
|
|
1169
|
+
H("label", {
|
|
1170
1170
|
for: o.id
|
|
1171
|
-
},
|
|
1171
|
+
}, U(o.label), 9, Kt),
|
|
1172
1172
|
w(l.$slots, "label.append")
|
|
1173
1173
|
])) : q("", !0),
|
|
1174
1174
|
w(l.$slots, "control", {}, () => [
|
|
1175
|
-
|
|
1175
|
+
H("div", le({
|
|
1176
1176
|
class: "q-field__control",
|
|
1177
1177
|
ref_key: "fieldRef",
|
|
1178
1178
|
ref: e
|
|
@@ -1191,11 +1191,11 @@ const Mt = {
|
|
|
1191
1191
|
])) : q("", !0)
|
|
1192
1192
|
], 10, Nt));
|
|
1193
1193
|
}
|
|
1194
|
-
}), _e = B(Xt), Yt = ["role", "required", "placeholder", "readonly", "disabled", "maxlength"], Pt = /* @__PURE__ */ L({
|
|
1194
|
+
}), _e = B(Xt), Yt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Pt = /* @__PURE__ */ L({
|
|
1195
1195
|
__name: "QTextField",
|
|
1196
1196
|
props: {
|
|
1197
1197
|
modelValue: { default: "" },
|
|
1198
|
-
id: { default: () =>
|
|
1198
|
+
id: { default: () => te() },
|
|
1199
1199
|
placeholder: { default: "" },
|
|
1200
1200
|
label: { default: "" },
|
|
1201
1201
|
size: { default: void 0 },
|
|
@@ -1203,11 +1203,12 @@ const Mt = {
|
|
|
1203
1203
|
readonly: { type: Boolean },
|
|
1204
1204
|
disabled: { type: Boolean },
|
|
1205
1205
|
required: { type: Boolean },
|
|
1206
|
-
role: { default: void 0 }
|
|
1206
|
+
role: { default: void 0 },
|
|
1207
|
+
type: { default: "text" }
|
|
1207
1208
|
},
|
|
1208
1209
|
emits: ["update:modelValue"],
|
|
1209
1210
|
setup(t, { expose: n, emit: o }) {
|
|
1210
|
-
const e = o, a = t, l = I(a.modelValue), i = I(null), r = I(null), f =
|
|
1211
|
+
const e = o, a = t, l = I(a.modelValue), i = I(null), r = I(null), f = g({
|
|
1211
1212
|
get() {
|
|
1212
1213
|
return l.value;
|
|
1213
1214
|
},
|
|
@@ -1219,12 +1220,12 @@ const Mt = {
|
|
|
1219
1220
|
() => a.modelValue,
|
|
1220
1221
|
(u) => l.value = u
|
|
1221
1222
|
), n({
|
|
1222
|
-
fieldRef:
|
|
1223
|
+
fieldRef: g(() => {
|
|
1223
1224
|
var u;
|
|
1224
1225
|
return (u = i.value) == null ? void 0 : u.fieldRef;
|
|
1225
1226
|
}),
|
|
1226
1227
|
inputRef: r
|
|
1227
|
-
}), (u, h) => (c(),
|
|
1228
|
+
}), (u, h) => (c(), x(y(_e), {
|
|
1228
1229
|
ref_key: "fieldRef",
|
|
1229
1230
|
ref: i,
|
|
1230
1231
|
class: "q-text-field",
|
|
@@ -1234,20 +1235,20 @@ const Mt = {
|
|
|
1234
1235
|
readonly: a.readonly,
|
|
1235
1236
|
disabled: a.disabled,
|
|
1236
1237
|
required: a.required
|
|
1237
|
-
},
|
|
1238
|
-
"label.prepend":
|
|
1238
|
+
}, Te({
|
|
1239
|
+
"label.prepend": S(() => [
|
|
1239
1240
|
w(u.$slots, "label.prepend")
|
|
1240
1241
|
]),
|
|
1241
|
-
"label.append":
|
|
1242
|
+
"label.append": S(() => [
|
|
1242
1243
|
w(u.$slots, "label.append")
|
|
1243
1244
|
]),
|
|
1244
|
-
default:
|
|
1245
|
-
Xe(
|
|
1246
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1245
|
+
default: S(() => [
|
|
1246
|
+
Xe(H("input", {
|
|
1247
|
+
"onUpdate:modelValue": h[0] || (h[0] = (b) => f.value = b),
|
|
1247
1248
|
ref_key: "inputRef",
|
|
1248
1249
|
ref: r,
|
|
1249
1250
|
class: "q-text-field__input",
|
|
1250
|
-
type:
|
|
1251
|
+
type: a.type,
|
|
1251
1252
|
role: a.role,
|
|
1252
1253
|
required: a.required,
|
|
1253
1254
|
placeholder: a.placeholder,
|
|
@@ -1262,21 +1263,21 @@ const Mt = {
|
|
|
1262
1263
|
}, [
|
|
1263
1264
|
u.$slots.prepend ? {
|
|
1264
1265
|
name: "prepend",
|
|
1265
|
-
fn:
|
|
1266
|
+
fn: S(() => [
|
|
1266
1267
|
w(u.$slots, "prepend")
|
|
1267
1268
|
]),
|
|
1268
1269
|
key: "0"
|
|
1269
1270
|
} : void 0,
|
|
1270
1271
|
u.$slots.append ? {
|
|
1271
1272
|
name: "append",
|
|
1272
|
-
fn:
|
|
1273
|
+
fn: S(() => [
|
|
1273
1274
|
w(u.$slots, "append")
|
|
1274
1275
|
]),
|
|
1275
1276
|
key: "1"
|
|
1276
1277
|
} : void 0,
|
|
1277
1278
|
u.$slots.extras ? {
|
|
1278
1279
|
name: "extras",
|
|
1279
|
-
fn:
|
|
1280
|
+
fn: S(() => [
|
|
1280
1281
|
w(u.$slots, "extras")
|
|
1281
1282
|
]),
|
|
1282
1283
|
key: "2"
|
|
@@ -1302,7 +1303,7 @@ const Jt = {
|
|
|
1302
1303
|
__name: "QCombobox",
|
|
1303
1304
|
props: {
|
|
1304
1305
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1305
|
-
id: { default: () =>
|
|
1306
|
+
id: { default: () => te() },
|
|
1306
1307
|
selectionMode: { default: "automatic" },
|
|
1307
1308
|
filterMode: { default: "builtin" },
|
|
1308
1309
|
label: { default: "" },
|
|
@@ -1321,36 +1322,36 @@ const Jt = {
|
|
|
1321
1322
|
},
|
|
1322
1323
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1323
1324
|
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),
|
|
1325
|
-
|
|
1326
|
-
const R =
|
|
1325
|
+
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), b = I(null);
|
|
1326
|
+
Ee(Q);
|
|
1327
|
+
const R = g(
|
|
1327
1328
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1328
|
-
), A =
|
|
1329
|
+
), A = g(() => {
|
|
1329
1330
|
var d;
|
|
1330
|
-
return e.filterMode === "manual" || !
|
|
1331
|
+
return e.filterMode === "manual" || !E.value ? e.items : (d = e.items) == null ? void 0 : d.filter(
|
|
1331
1332
|
(_) => _[e.itemLabel].toLowerCase().startsWith(r.value.toLowerCase())
|
|
1332
1333
|
);
|
|
1333
|
-
}), F =
|
|
1334
|
+
}), F = g(() => {
|
|
1334
1335
|
var d;
|
|
1335
1336
|
return (d = e.items) == null ? void 0 : d.find((_) => _[e.itemValue] === l.value);
|
|
1336
|
-
}),
|
|
1337
|
+
}), T = g(() => {
|
|
1337
1338
|
const d = f.value;
|
|
1338
1339
|
if (d !== void 0 && A.value[d])
|
|
1339
1340
|
return A.value[d];
|
|
1340
|
-
}), O =
|
|
1341
|
+
}), O = g(() => {
|
|
1341
1342
|
var _;
|
|
1342
1343
|
if (f.value === void 0)
|
|
1343
1344
|
return;
|
|
1344
1345
|
const d = (_ = h.value) == null ? void 0 : _.getItem(f.value);
|
|
1345
1346
|
return d == null ? void 0 : d.id;
|
|
1346
|
-
}),
|
|
1347
|
+
}), E = g(() => {
|
|
1347
1348
|
var d;
|
|
1348
1349
|
return r.value.length > 0 && r.value !== ((d = F.value) == null ? void 0 : d[e.itemLabel]);
|
|
1349
1350
|
});
|
|
1350
1351
|
function X(d) {
|
|
1351
1352
|
l.value = d, Q(), o("update:modelValue", d);
|
|
1352
1353
|
}
|
|
1353
|
-
function
|
|
1354
|
+
function N(d) {
|
|
1354
1355
|
X(d), M();
|
|
1355
1356
|
}
|
|
1356
1357
|
function Q() {
|
|
@@ -1389,9 +1390,9 @@ const Jt = {
|
|
|
1389
1390
|
d.key === "ArrowDown" ? V() : s();
|
|
1390
1391
|
}));
|
|
1391
1392
|
else if (d.key === "Enter") {
|
|
1392
|
-
if (
|
|
1393
|
+
if (T.value === void 0)
|
|
1393
1394
|
return;
|
|
1394
|
-
|
|
1395
|
+
N(T.value[e.itemValue]);
|
|
1395
1396
|
} else
|
|
1396
1397
|
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
1398
|
}
|
|
@@ -1415,16 +1416,16 @@ const Jt = {
|
|
|
1415
1416
|
}
|
|
1416
1417
|
function k(d) {
|
|
1417
1418
|
var _, D, j;
|
|
1418
|
-
!((_ =
|
|
1419
|
+
!((_ = b.value) != null && _.contains(d.relatedTarget)) && !((j = (D = u.value) == null ? void 0 : D.fieldRef) != null && j.contains(d.relatedTarget)) && (M(), Q());
|
|
1419
1420
|
}
|
|
1420
1421
|
function $() {
|
|
1421
1422
|
var d, _;
|
|
1422
1423
|
(_ = (d = u.value) == null ? void 0 : d.inputRef) == null || _.focus();
|
|
1423
1424
|
}
|
|
1424
|
-
function
|
|
1425
|
+
function ne() {
|
|
1425
1426
|
o("show");
|
|
1426
1427
|
}
|
|
1427
|
-
function
|
|
1428
|
+
function oe() {
|
|
1428
1429
|
o("hide");
|
|
1429
1430
|
}
|
|
1430
1431
|
function ke(d) {
|
|
@@ -1465,15 +1466,15 @@ const Jt = {
|
|
|
1465
1466
|
onFocusout: k,
|
|
1466
1467
|
onKeydown: J(v, ["stop"])
|
|
1467
1468
|
}, {
|
|
1468
|
-
append:
|
|
1469
|
-
R.value && r.value ? (c(),
|
|
1469
|
+
append: S(() => [
|
|
1470
|
+
R.value && r.value ? (c(), x(y(Y), le({ key: 0 }, e.icons.clear, {
|
|
1470
1471
|
class: "q-combobox__clear",
|
|
1471
1472
|
onClick: J(W, ["stop", "prevent"])
|
|
1472
1473
|
}), null, 16)) : q("", !0)
|
|
1473
1474
|
]),
|
|
1474
1475
|
_: 1
|
|
1475
1476
|
}, 8, ["modelValue", "id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1476
|
-
(D = u.value) != null && D.fieldRef ? (c(),
|
|
1477
|
+
(D = u.value) != null && D.fieldRef ? (c(), x(y(fe), {
|
|
1477
1478
|
key: 0,
|
|
1478
1479
|
"model-value": i.value,
|
|
1479
1480
|
spy: "",
|
|
@@ -1482,24 +1483,24 @@ const Jt = {
|
|
|
1482
1483
|
width: "anchor",
|
|
1483
1484
|
offset: 4,
|
|
1484
1485
|
anchor: (j = u.value) == null ? void 0 : j.fieldRef,
|
|
1485
|
-
onEnter:
|
|
1486
|
-
onLeave:
|
|
1486
|
+
onEnter: ne,
|
|
1487
|
+
onLeave: oe
|
|
1487
1488
|
}, {
|
|
1488
|
-
default:
|
|
1489
|
+
default: S(() => {
|
|
1489
1490
|
var ie;
|
|
1490
1491
|
return [
|
|
1491
|
-
|
|
1492
|
+
H("div", {
|
|
1492
1493
|
ref_key: "contentRef",
|
|
1493
|
-
ref:
|
|
1494
|
+
ref: b,
|
|
1494
1495
|
class: "q-select__body",
|
|
1495
1496
|
onFocusout: k
|
|
1496
1497
|
}, [
|
|
1497
1498
|
w(d.$slots, "body.prepend"),
|
|
1498
|
-
e.loading ? (c(),
|
|
1499
|
+
e.loading ? (c(), x(y(ge), {
|
|
1499
1500
|
key: 0,
|
|
1500
1501
|
class: "q-select__loader",
|
|
1501
1502
|
size: 24
|
|
1502
|
-
})) : A.value.length ? (c(),
|
|
1503
|
+
})) : A.value.length ? (c(), x(y(Oe), {
|
|
1503
1504
|
key: 1,
|
|
1504
1505
|
ref_key: "listRef",
|
|
1505
1506
|
ref: h,
|
|
@@ -1507,15 +1508,15 @@ const Jt = {
|
|
|
1507
1508
|
modelValue: l.value,
|
|
1508
1509
|
"onUpdate:modelValue": [
|
|
1509
1510
|
_[1] || (_[1] = (Ne) => l.value = Ne),
|
|
1510
|
-
|
|
1511
|
+
N
|
|
1511
1512
|
],
|
|
1512
|
-
highlighted: (ie =
|
|
1513
|
+
highlighted: (ie = T.value) == null ? void 0 : ie[e.itemValue],
|
|
1513
1514
|
items: A.value,
|
|
1514
1515
|
groups: d.groups,
|
|
1515
1516
|
"item-label": e.itemLabel,
|
|
1516
1517
|
"item-value": e.itemValue,
|
|
1517
1518
|
onMouseup: $
|
|
1518
|
-
}, null, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), m("div", Jt,
|
|
1519
|
+
}, null, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), m("div", Jt, U(d.texts.noData), 1)),
|
|
1519
1520
|
w(d.$slots, "body.append")
|
|
1520
1521
|
], 544)
|
|
1521
1522
|
];
|
|
@@ -1532,25 +1533,25 @@ const Jt = {
|
|
|
1532
1533
|
key: 1,
|
|
1533
1534
|
class: "q-input-group__append"
|
|
1534
1535
|
}, sn = { key: 0 }, rn = /* @__PURE__ */ L({
|
|
1535
|
-
inheritAttrs: !1,
|
|
1536
1536
|
__name: "QInputGroup",
|
|
1537
1537
|
props: {
|
|
1538
|
-
id: { default: () =>
|
|
1538
|
+
id: { default: () => te() },
|
|
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
1544
|
appendIcon: { default: void 0 },
|
|
1545
|
-
size: { default: "
|
|
1545
|
+
size: { default: "large" }
|
|
1546
1546
|
},
|
|
1547
1547
|
setup(t) {
|
|
1548
|
-
const n = t
|
|
1548
|
+
const n = t;
|
|
1549
1549
|
return Ae({
|
|
1550
1550
|
QField: {
|
|
1551
|
-
size:
|
|
1551
|
+
size: "block"
|
|
1552
1552
|
}
|
|
1553
|
-
}), (
|
|
1553
|
+
}), (o, e) => (c(), x(y(_e), {
|
|
1554
|
+
class: "q-input-group",
|
|
1554
1555
|
id: n.id,
|
|
1555
1556
|
label: n.label,
|
|
1556
1557
|
readonly: n.readonly,
|
|
@@ -1558,27 +1559,25 @@ const Jt = {
|
|
|
1558
1559
|
required: n.required,
|
|
1559
1560
|
size: n.size
|
|
1560
1561
|
}, {
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
ee(y(Y), ue(he(n.prependIcon)), null, 16)
|
|
1566
|
-
])) : q("", !0),
|
|
1567
|
-
w(e.$slots, "prepend")
|
|
1562
|
+
default: S(() => [
|
|
1563
|
+
o.$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)
|
|
1568
1566
|
])) : q("", !0),
|
|
1569
|
-
w(
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
])) : q("", !0)
|
|
1576
|
-
|
|
1567
|
+
w(o.$slots, "prepend")
|
|
1568
|
+
])) : q("", !0),
|
|
1569
|
+
w(o.$slots, "default"),
|
|
1570
|
+
o.$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(o.$slots, "append")
|
|
1575
|
+
])) : q("", !0)
|
|
1577
1576
|
]),
|
|
1578
1577
|
_: 3
|
|
1579
1578
|
}, 8, ["id", "label", "readonly", "disabled", "required", "size"]));
|
|
1580
1579
|
}
|
|
1581
|
-
}),
|
|
1580
|
+
}), En = B(rn), dn = (t, n) => {
|
|
1582
1581
|
const o = t.__vccOpts || t;
|
|
1583
1582
|
for (const [e, a] of n)
|
|
1584
1583
|
o[e] = a;
|
|
@@ -1587,7 +1586,7 @@ const Jt = {
|
|
|
1587
1586
|
function fn(t, n) {
|
|
1588
1587
|
return c(), m("div", cn);
|
|
1589
1588
|
}
|
|
1590
|
-
const pn = /* @__PURE__ */ dn(un, [["render", fn]]),
|
|
1589
|
+
const pn = /* @__PURE__ */ dn(un, [["render", fn]]), Tn = B(pn), mn = {
|
|
1591
1590
|
key: 0,
|
|
1592
1591
|
class: "q-popover__header"
|
|
1593
1592
|
}, vn = {
|
|
@@ -1610,7 +1609,7 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1610
1609
|
},
|
|
1611
1610
|
setup(t) {
|
|
1612
1611
|
const n = t;
|
|
1613
|
-
return (o, e) => (c(),
|
|
1612
|
+
return (o, e) => (c(), x(y(fe), {
|
|
1614
1613
|
"model-value": n.modelValue,
|
|
1615
1614
|
trigger: "click",
|
|
1616
1615
|
anchor: n.anchor,
|
|
@@ -1621,16 +1620,16 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1621
1620
|
placement: n.placement,
|
|
1622
1621
|
spy: n.spy
|
|
1623
1622
|
}, {
|
|
1624
|
-
default:
|
|
1623
|
+
default: S(() => [
|
|
1625
1624
|
n.title || o.$slots.header ? (c(), m("h3", mn, [
|
|
1626
|
-
de(
|
|
1625
|
+
de(U(n.title) + " ", 1),
|
|
1627
1626
|
w(o.$slots, "header")
|
|
1628
1627
|
])) : q("", !0),
|
|
1629
1628
|
n.text || o.$slots.body ? (c(), m("div", vn, [
|
|
1630
1629
|
n.html ? (c(), m("span", {
|
|
1631
1630
|
key: 0,
|
|
1632
1631
|
innerHTML: n.text
|
|
1633
|
-
}, null, 8, hn)) : (c(), m("span", yn,
|
|
1632
|
+
}, null, 8, hn)) : (c(), m("span", yn, U(n.text), 1)),
|
|
1634
1633
|
w(o.$slots, "body")
|
|
1635
1634
|
])) : q("", !0)
|
|
1636
1635
|
]),
|
|
@@ -1657,7 +1656,7 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1657
1656
|
__name: "QSelect",
|
|
1658
1657
|
props: {
|
|
1659
1658
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1660
|
-
id: { default: () =>
|
|
1659
|
+
id: { default: () => te() },
|
|
1661
1660
|
label: { default: "" },
|
|
1662
1661
|
clearable: { type: Boolean },
|
|
1663
1662
|
readonly: { type: Boolean },
|
|
@@ -1674,39 +1673,39 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1674
1673
|
},
|
|
1675
1674
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1676
1675
|
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),
|
|
1676
|
+
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), b = g(
|
|
1678
1677
|
() => {
|
|
1679
1678
|
var s;
|
|
1680
1679
|
return (s = e.items) == null ? void 0 : s.find((p) => p[e.itemValue] === l.value);
|
|
1681
1680
|
}
|
|
1682
|
-
), R =
|
|
1683
|
-
() =>
|
|
1684
|
-
), A =
|
|
1681
|
+
), R = g(
|
|
1682
|
+
() => b.value ? b.value[e.itemLabel] : ""
|
|
1683
|
+
), A = g(
|
|
1685
1684
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1686
1685
|
);
|
|
1687
1686
|
function F(s) {
|
|
1688
|
-
l.value = s, o("update:modelValue", s),
|
|
1687
|
+
l.value = s, o("update:modelValue", s), N();
|
|
1689
1688
|
}
|
|
1690
|
-
function
|
|
1689
|
+
function T() {
|
|
1691
1690
|
A.value && F(void 0);
|
|
1692
1691
|
}
|
|
1693
1692
|
function O() {
|
|
1694
|
-
e.readonly || e.disabled || (i.value ?
|
|
1693
|
+
e.readonly || e.disabled || (i.value ? N() : X());
|
|
1695
1694
|
}
|
|
1696
|
-
function
|
|
1695
|
+
function E(s) {
|
|
1697
1696
|
var p, k, $;
|
|
1698
|
-
!((p = h.value) != null && p.contains(s.relatedTarget)) && !(($ = (k = f.value) == null ? void 0 : k.fieldRef) != null && $.contains(s.relatedTarget)) &&
|
|
1697
|
+
!((p = h.value) != null && p.contains(s.relatedTarget)) && !(($ = (k = f.value) == null ? void 0 : k.fieldRef) != null && $.contains(s.relatedTarget)) && N();
|
|
1699
1698
|
}
|
|
1700
1699
|
function X() {
|
|
1701
1700
|
i.value || (o("before-show"), i.value = !0);
|
|
1702
1701
|
}
|
|
1703
|
-
function
|
|
1702
|
+
function N() {
|
|
1704
1703
|
i.value && (o("before-hide"), i.value = !1);
|
|
1705
1704
|
}
|
|
1706
1705
|
let Q;
|
|
1707
1706
|
function C(s) {
|
|
1708
1707
|
if (!(!s.key || e.readonly || e.disabled)) {
|
|
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" &&
|
|
1708
|
+
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" && T()), s.key === "Delete" && e.clearable && T(), /^[a-z]$/i.test(s.key)) {
|
|
1710
1709
|
r.value += s.key.toLowerCase();
|
|
1711
1710
|
for (let p = 0; p < e.items.length; p++)
|
|
1712
1711
|
if (e.items[p][e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
@@ -1749,7 +1748,7 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1749
1748
|
!s && i.value && Z(v);
|
|
1750
1749
|
}
|
|
1751
1750
|
), (s, p) => {
|
|
1752
|
-
var k, $,
|
|
1751
|
+
var k, $, ne;
|
|
1753
1752
|
return c(), m(P, null, [
|
|
1754
1753
|
ee(y(_e), {
|
|
1755
1754
|
id: e.id,
|
|
@@ -1775,31 +1774,31 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1775
1774
|
size: e.size,
|
|
1776
1775
|
onClick: O,
|
|
1777
1776
|
onKeydown: J(C, ["stop"])
|
|
1778
|
-
},
|
|
1779
|
-
append:
|
|
1780
|
-
A.value && l.value ? (c(),
|
|
1777
|
+
}, Te({
|
|
1778
|
+
append: S(() => [
|
|
1779
|
+
A.value && l.value ? (c(), x(y(Y), le({ key: 0 }, e.icons.clear, {
|
|
1781
1780
|
class: "q-select__clear",
|
|
1782
|
-
onClick: J(
|
|
1781
|
+
onClick: J(T, ["stop", "prevent"])
|
|
1783
1782
|
}), null, 16)) : q("", !0),
|
|
1784
|
-
!e.readonly && !e.disabled ? (c(),
|
|
1783
|
+
!e.readonly && !e.disabled ? (c(), x(y(Y), le({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16)) : q("", !0)
|
|
1785
1784
|
]),
|
|
1786
|
-
default:
|
|
1787
|
-
l.value ? (c(), m("span", gn,
|
|
1785
|
+
default: S(() => [
|
|
1786
|
+
l.value ? (c(), m("span", gn, U(R.value), 1)) : (c(), m("span", _n, U(s.texts.placeholder), 1))
|
|
1788
1787
|
]),
|
|
1789
1788
|
_: 2
|
|
1790
1789
|
}, [
|
|
1791
|
-
(k =
|
|
1790
|
+
(k = b.value) != null && k.icon ? {
|
|
1792
1791
|
name: "prepend",
|
|
1793
|
-
fn:
|
|
1794
|
-
var
|
|
1792
|
+
fn: S(() => {
|
|
1793
|
+
var oe;
|
|
1795
1794
|
return [
|
|
1796
|
-
ee(y(Y), ue(he((
|
|
1795
|
+
ee(y(Y), ue(he((oe = b.value) == null ? void 0 : oe.icon)), null, 16)
|
|
1797
1796
|
];
|
|
1798
1797
|
}),
|
|
1799
1798
|
key: "0"
|
|
1800
1799
|
} : void 0
|
|
1801
1800
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1802
|
-
($ = f.value) != null && $.fieldRef ? (c(),
|
|
1801
|
+
($ = f.value) != null && $.fieldRef ? (c(), x(y(fe), {
|
|
1803
1802
|
key: 0,
|
|
1804
1803
|
"model-value": i.value,
|
|
1805
1804
|
spy: "",
|
|
@@ -1807,32 +1806,32 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1807
1806
|
placement: "bottom",
|
|
1808
1807
|
width: "anchor",
|
|
1809
1808
|
offset: 2,
|
|
1810
|
-
anchor: (
|
|
1809
|
+
anchor: (ne = f.value) == null ? void 0 : ne.fieldRef,
|
|
1811
1810
|
onEnter: M,
|
|
1812
1811
|
onLeave: W
|
|
1813
1812
|
}, {
|
|
1814
|
-
default:
|
|
1815
|
-
|
|
1813
|
+
default: S(() => [
|
|
1814
|
+
H("div", {
|
|
1816
1815
|
ref_key: "contentRef",
|
|
1817
1816
|
ref: h,
|
|
1818
1817
|
class: "q-select__body",
|
|
1819
1818
|
tabindex: "-1",
|
|
1820
|
-
onFocusout:
|
|
1819
|
+
onFocusout: E,
|
|
1821
1820
|
onKeydown: J(C, ["stop"])
|
|
1822
1821
|
}, [
|
|
1823
1822
|
w(s.$slots, "body.prepend"),
|
|
1824
|
-
e.loading ? (c(),
|
|
1823
|
+
e.loading ? (c(), x(y(ge), {
|
|
1825
1824
|
key: 0,
|
|
1826
1825
|
class: "q-select__loader",
|
|
1827
1826
|
size: 24
|
|
1828
|
-
})) : (c(),
|
|
1827
|
+
})) : (c(), x(y(Oe), {
|
|
1829
1828
|
key: 1,
|
|
1830
1829
|
ref_key: "listRef",
|
|
1831
1830
|
ref: u,
|
|
1832
1831
|
class: "q-select__items",
|
|
1833
1832
|
modelValue: l.value,
|
|
1834
1833
|
"onUpdate:modelValue": [
|
|
1835
|
-
p[0] || (p[0] = (
|
|
1834
|
+
p[0] || (p[0] = (oe) => l.value = oe),
|
|
1836
1835
|
F
|
|
1837
1836
|
],
|
|
1838
1837
|
items: e.items,
|
|
@@ -1848,7 +1847,7 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1848
1847
|
], 64);
|
|
1849
1848
|
};
|
|
1850
1849
|
}
|
|
1851
|
-
}), An = B($n), In = ["innerHTML"], qn = { key: 1 },
|
|
1850
|
+
}), An = B($n), In = ["innerHTML"], qn = { key: 1 }, xn = /* @__PURE__ */ L({
|
|
1852
1851
|
inheritAttrs: !1,
|
|
1853
1852
|
__name: "QTooltip",
|
|
1854
1853
|
props: {
|
|
@@ -1866,7 +1865,7 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1866
1865
|
},
|
|
1867
1866
|
setup(t) {
|
|
1868
1867
|
const n = t;
|
|
1869
|
-
return (o, e) => (c(),
|
|
1868
|
+
return (o, e) => (c(), x(y(fe), {
|
|
1870
1869
|
"model-value": n.modelValue,
|
|
1871
1870
|
anchor: n.anchor,
|
|
1872
1871
|
appearance: n.appearance,
|
|
@@ -1878,16 +1877,16 @@ const pn = /* @__PURE__ */ dn(un, [["render", fn]]), En = B(pn), mn = {
|
|
|
1878
1877
|
placement: n.placement,
|
|
1879
1878
|
trigger: n.trigger
|
|
1880
1879
|
}, {
|
|
1881
|
-
default:
|
|
1880
|
+
default: S(() => [
|
|
1882
1881
|
n.html ? (c(), m("span", {
|
|
1883
1882
|
key: 0,
|
|
1884
1883
|
innerHTML: n.text
|
|
1885
|
-
}, null, 8, In)) : (c(), m("span", qn,
|
|
1884
|
+
}, null, 8, In)) : (c(), m("span", qn, U(n.text), 1))
|
|
1886
1885
|
]),
|
|
1887
1886
|
_: 1
|
|
1888
1887
|
}, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "delay", "disabled", "placement", "trigger"]));
|
|
1889
1888
|
}
|
|
1890
|
-
}), Cn = B(
|
|
1889
|
+
}), Cn = B(xn), Fn = {
|
|
1891
1890
|
mounted(t, n) {
|
|
1892
1891
|
t.clickOutsideEvent = function(o) {
|
|
1893
1892
|
const e = o.target;
|
|
@@ -1906,10 +1905,10 @@ export {
|
|
|
1906
1905
|
_e as QField,
|
|
1907
1906
|
Y as QIcon,
|
|
1908
1907
|
qt as QIconFont,
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1908
|
+
xt as QIconImg,
|
|
1909
|
+
St as QIconSvg,
|
|
1910
|
+
En as QInputGroup,
|
|
1911
|
+
Tn as QLineLoader,
|
|
1913
1912
|
Oe as QList,
|
|
1914
1913
|
Ft as QListItem,
|
|
1915
1914
|
Qt as QListItemGroup,
|