@validol4ik/uikit 0.3.17 → 0.3.18
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-Dnd8fH4m.js → index-CAKyxAXF.js} +374 -382
- package/dist/index-D-GPCN1o.cjs +1 -0
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/boot.d.ts +2 -0
- package/dist/types/components/buttons/AppButton/index.vue.d.ts +24 -0
- package/dist/{components → types/components}/form/AppSelect/index.vue.d.ts +1 -1
- package/dist/types/plugin.d.ts +5 -0
- package/dist/types/uikit.d.ts +1 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +4 -4
- package/dist/boot/boot.d.ts +0 -1
- package/dist/components/buttons/AppButton/index.vue.d.ts +0 -17
- package/dist/index-CB1B_4xi.cjs +0 -1
- package/dist/plugin/plugin.d.ts +0 -1
- package/dist/uikit.d.ts +0 -1
- /package/dist/{components → types/components}/AppIcon/iconsList.d.ts +0 -0
- /package/dist/{components → types/components}/AppIcon/index.vue.d.ts +0 -0
- /package/dist/{components → types/components}/AppIcon/types.d.ts +0 -0
- /package/dist/{components → types/components}/buttons/AppButton/types.d.ts +0 -0
- /package/dist/{components → types/components}/buttons/CopyButton/constants.d.ts +0 -0
- /package/dist/{components → types/components}/buttons/CopyButton/index.vue.d.ts +0 -0
- /package/dist/{components → types/components}/buttons/CopyButton/types.d.ts +0 -0
- /package/dist/{components → types/components}/components.d.ts +0 -0
- /package/dist/{components → types/components}/constants.d.ts +0 -0
- /package/dist/{components → types/components}/form/AppSelect/types.d.ts +0 -0
- /package/dist/{components → types/components}/types.d.ts +0 -0
- /package/dist/{utils → types/utils}/requiredRule.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as d, markRaw as fn, defineComponent as mt, h as g, withDirectives as vn, getCurrentInstance as ne, unref as st, ref as P, onBeforeUnmount as me, Transition as dt, openBlock as ue, createBlock as $t, normalizeClass as
|
|
1
|
+
import { computed as d, markRaw as fn, defineComponent as mt, h as g, withDirectives as vn, getCurrentInstance as ne, unref as st, ref as P, onBeforeUnmount as me, Transition as dt, openBlock as ue, createBlock as $t, normalizeClass as Be, withCtx as xe, createElementBlock as de, createCommentVNode as Ce, renderSlot as bo, Fragment as at, createTextVNode as Bt, toDisplayString as Ze, reactive as yo, mergeProps as mn, withModifiers as hn, toRaw as Ue, onMounted as ht, watch as Z, onBeforeUpdate as gn, inject as wo, nextTick as fe, onDeactivated as Pt, onActivated as pn, onUnmounted as So, Teleport as ko, onBeforeMount as xo, onUpdated as Co, createVNode as ot, createElementVNode as Wt, normalizeStyle as qo } from "vue";
|
|
2
2
|
const bn = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -19,7 +19,7 @@ const bn = {
|
|
|
19
19
|
}, zt = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function Ft(e, t = nl) {
|
|
23
23
|
return d(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
25
|
function dl(e, t, l, n) {
|
|
@@ -38,7 +38,7 @@ function Eo(e) {
|
|
|
38
38
|
function ke(e, t) {
|
|
39
39
|
return e !== void 0 && e() || t;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Vo(e, t) {
|
|
42
42
|
if (e !== void 0) {
|
|
43
43
|
const l = e();
|
|
44
44
|
if (l != null)
|
|
@@ -49,7 +49,7 @@ function Bo(e, t) {
|
|
|
49
49
|
function Ae(e, t) {
|
|
50
50
|
return e !== void 0 ? t.concat(e()) : t;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Bo(e, t) {
|
|
53
53
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
54
54
|
}
|
|
55
55
|
function To(e, t, l, n, o, u) {
|
|
@@ -91,7 +91,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
91
91
|
right: Boolean
|
|
92
92
|
},
|
|
93
93
|
setup(e, { slots: t }) {
|
|
94
|
-
const { proxy: { $q: l } } = ne(), n =
|
|
94
|
+
const { proxy: { $q: l } } = ne(), n = Ft(e), o = d(
|
|
95
95
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
96
96
|
), u = d(() => {
|
|
97
97
|
let a, r = e.name;
|
|
@@ -186,7 +186,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
186
186
|
},
|
|
187
187
|
color: String
|
|
188
188
|
};
|
|
189
|
-
function
|
|
189
|
+
function Fo(e) {
|
|
190
190
|
return {
|
|
191
191
|
cSize: d(() => e.size in nl ? `${nl[e.size]}px` : e.size),
|
|
192
192
|
classes: d(
|
|
@@ -204,7 +204,7 @@ const kn = he({
|
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
setup(e) {
|
|
207
|
-
const { cSize: t, classes: l } =
|
|
207
|
+
const { cSize: t, classes: l } = Fo(e);
|
|
208
208
|
return () => g("svg", {
|
|
209
209
|
class: l.value + " q-spinner-mat",
|
|
210
210
|
width: t.value,
|
|
@@ -229,7 +229,7 @@ function ol(e, t) {
|
|
|
229
229
|
for (const n in t)
|
|
230
230
|
l[n] = t[n];
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Io(e) {
|
|
233
233
|
if (e == null)
|
|
234
234
|
return;
|
|
235
235
|
if (typeof e == "string")
|
|
@@ -315,7 +315,7 @@ function qn(e, t) {
|
|
|
315
315
|
function _n(e) {
|
|
316
316
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ie(e, t) {
|
|
319
319
|
return _n(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
320
320
|
}
|
|
321
321
|
function jo(e, t = 250) {
|
|
@@ -376,7 +376,7 @@ const En = Eo(
|
|
|
376
376
|
n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && Ll(o, e, n, o.qKeyEvent === !0);
|
|
377
377
|
},
|
|
378
378
|
keystart: jo((o) => {
|
|
379
|
-
n.enabled === !0 && o.qSkipRipple !== !0 &&
|
|
379
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && Ie(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && Ll(o, e, n, !0);
|
|
380
380
|
}, 300)
|
|
381
381
|
};
|
|
382
382
|
Ml(n, t), e.__qripple = n, il(n, "main", [
|
|
@@ -399,7 +399,7 @@ const En = Eo(
|
|
|
399
399
|
}), qn(t, "main"), delete e._qripple);
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
),
|
|
402
|
+
), Vn = {
|
|
403
403
|
left: "start",
|
|
404
404
|
center: "center",
|
|
405
405
|
right: "end",
|
|
@@ -407,7 +407,7 @@ const En = Eo(
|
|
|
407
407
|
around: "around",
|
|
408
408
|
evenly: "evenly",
|
|
409
409
|
stretch: "stretch"
|
|
410
|
-
}, No = Object.keys(
|
|
410
|
+
}, No = Object.keys(Vn), Wo = {
|
|
411
411
|
align: {
|
|
412
412
|
type: String,
|
|
413
413
|
validator: (e) => No.includes(e)
|
|
@@ -416,7 +416,7 @@ const En = Eo(
|
|
|
416
416
|
function Ko(e) {
|
|
417
417
|
return d(() => {
|
|
418
418
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
419
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${
|
|
419
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${Vn[t]}`;
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
function Qt(e) {
|
|
@@ -429,7 +429,7 @@ function Qt(e) {
|
|
|
429
429
|
t = t.parent;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Bn(e) {
|
|
433
433
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
434
434
|
}
|
|
435
435
|
function Tn(e) {
|
|
@@ -489,7 +489,7 @@ const $n = {
|
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
492
|
-
const l = ne(), { props: n, proxy: o, emit: u } = l, a =
|
|
492
|
+
const l = ne(), { props: n, proxy: o, emit: u } = l, a = Bn(l), r = d(() => n.disable !== !0 && n.href !== void 0), h = t === !0 ? d(
|
|
493
493
|
() => a === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
494
494
|
) : d(
|
|
495
495
|
() => a === !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
@@ -502,7 +502,7 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
502
502
|
} : {}), m = d(() => {
|
|
503
503
|
if (s.value === !1)
|
|
504
504
|
return -1;
|
|
505
|
-
const { matched: R } = b.value, { length:
|
|
505
|
+
const { matched: R } = b.value, { length: B } = R, A = R[B - 1];
|
|
506
506
|
if (A === void 0)
|
|
507
507
|
return -1;
|
|
508
508
|
const z = o.$route.matched;
|
|
@@ -513,11 +513,11 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
513
513
|
);
|
|
514
514
|
if (N !== -1)
|
|
515
515
|
return N;
|
|
516
|
-
const J = Al(R[
|
|
516
|
+
const J = Al(R[B - 2]);
|
|
517
517
|
return (
|
|
518
518
|
// we are dealing with nested routes
|
|
519
|
-
|
|
520
|
-
Ol.bind(null, R[
|
|
519
|
+
B > 1 && Al(A) === J && z[z.length - 1].path !== J ? z.findIndex(
|
|
520
|
+
Ol.bind(null, R[B - 2])
|
|
521
521
|
) : N
|
|
522
522
|
);
|
|
523
523
|
}), C = d(
|
|
@@ -532,7 +532,7 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
532
532
|
}
|
|
533
533
|
return null;
|
|
534
534
|
}
|
|
535
|
-
function k(R, { returnRouterError:
|
|
535
|
+
function k(R, { returnRouterError: B, to: A = n.to, replace: z = n.replace } = {}) {
|
|
536
536
|
if (n.disable === !0)
|
|
537
537
|
return R.preventDefault(), Promise.resolve(!1);
|
|
538
538
|
if (
|
|
@@ -543,14 +543,14 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
543
543
|
return Promise.resolve(!1);
|
|
544
544
|
R.preventDefault();
|
|
545
545
|
const N = o.$router[z === !0 ? "replace" : "push"](A);
|
|
546
|
-
return
|
|
546
|
+
return B === !0 ? N : N.then(() => {
|
|
547
547
|
}).catch(() => {
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
function M(R) {
|
|
551
551
|
if (s.value === !0) {
|
|
552
|
-
const
|
|
553
|
-
u("click", R,
|
|
552
|
+
const B = (A) => k(R, A);
|
|
553
|
+
u("click", R, B), R.defaultPrevented !== !0 && B();
|
|
554
554
|
} else
|
|
555
555
|
u("click", R);
|
|
556
556
|
}
|
|
@@ -633,7 +633,7 @@ const li = {
|
|
|
633
633
|
round: Boolean
|
|
634
634
|
};
|
|
635
635
|
function oi(e) {
|
|
636
|
-
const t =
|
|
636
|
+
const t = Ft(e, Go), l = Ko(e), { hasRouterLink: n, hasLink: o, linkTag: u, linkAttrs: a, navigateOnClick: r } = Rn({
|
|
637
637
|
fallbackTag: "button"
|
|
638
638
|
}), h = d(() => {
|
|
639
639
|
const p = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
@@ -702,8 +702,8 @@ const ii = he({
|
|
|
702
702
|
keyCodes: h.value === !0 ? [13, 32] : [13],
|
|
703
703
|
...e.ripple === !0 ? {} : e.ripple
|
|
704
704
|
}), k = d(() => ({ center: e.round })), M = d(() => {
|
|
705
|
-
const
|
|
706
|
-
return
|
|
705
|
+
const V = Math.max(0, Math.min(100, e.percentage));
|
|
706
|
+
return V > 0 ? { transition: "transform 0.6s", transform: `translateX(${V - 100}%)` } : {};
|
|
707
707
|
}), R = d(() => {
|
|
708
708
|
if (e.loading === !0)
|
|
709
709
|
return {
|
|
@@ -714,32 +714,32 @@ const ii = he({
|
|
|
714
714
|
onKeyup: K
|
|
715
715
|
};
|
|
716
716
|
if (y.value === !0) {
|
|
717
|
-
const
|
|
717
|
+
const V = {
|
|
718
718
|
onClick: A,
|
|
719
719
|
onKeydown: z,
|
|
720
720
|
onMousedown: J
|
|
721
721
|
};
|
|
722
722
|
if (n.$q.platform.has.touch === !0) {
|
|
723
723
|
const D = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
724
|
-
|
|
724
|
+
V[`onTouchstart${D}`] = N;
|
|
725
725
|
}
|
|
726
|
-
return
|
|
726
|
+
return V;
|
|
727
727
|
}
|
|
728
728
|
return {
|
|
729
729
|
// needed; especially for disabled <a> tags
|
|
730
730
|
onClick: le
|
|
731
731
|
};
|
|
732
|
-
}),
|
|
732
|
+
}), B = d(() => ({
|
|
733
733
|
ref: v,
|
|
734
734
|
class: "q-btn q-btn-item non-selectable no-outline " + o.value,
|
|
735
735
|
style: u.value,
|
|
736
736
|
...r.value,
|
|
737
737
|
...R.value
|
|
738
738
|
}));
|
|
739
|
-
function A(
|
|
739
|
+
function A(V) {
|
|
740
740
|
if (v.value !== null) {
|
|
741
|
-
if (
|
|
742
|
-
if (
|
|
741
|
+
if (V !== void 0) {
|
|
742
|
+
if (V.defaultPrevented === !0)
|
|
743
743
|
return;
|
|
744
744
|
const D = document.activeElement;
|
|
745
745
|
if (e.type === "submit" && D !== document.body && v.value.contains(D) === !1 && D.contains(v.value) === !1) {
|
|
@@ -750,56 +750,56 @@ const ii = he({
|
|
|
750
750
|
document.addEventListener("keydown", le, !0), document.addEventListener("keyup", X, ge), v.value.addEventListener("blur", X, ge);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
s(
|
|
753
|
+
s(V);
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
function z(
|
|
757
|
-
v.value !== null && (l("keydown",
|
|
756
|
+
function z(V) {
|
|
757
|
+
v.value !== null && (l("keydown", V), Ie(V, [13, 32]) === !0 && Xe !== v.value && (Xe !== null && L(), V.defaultPrevented !== !0 && (v.value.focus(), Xe = v.value, v.value.classList.add("q-btn--active"), document.addEventListener("keyup", U, !0), v.value.addEventListener("blur", U, ge)), le(V)));
|
|
758
758
|
}
|
|
759
|
-
function N(
|
|
760
|
-
v.value !== null && (l("touchstart",
|
|
759
|
+
function N(V) {
|
|
760
|
+
v.value !== null && (l("touchstart", V), V.defaultPrevented !== !0 && (Ye !== v.value && (Ye !== null && L(), Ye = v.value, m = V.target, m.addEventListener("touchcancel", U, ge), m.addEventListener("touchend", U, ge)), C = !0, p !== null && clearTimeout(p), p = setTimeout(() => {
|
|
761
761
|
p = null, C = !1;
|
|
762
762
|
}, 200)));
|
|
763
763
|
}
|
|
764
|
-
function J(
|
|
765
|
-
v.value !== null && (
|
|
764
|
+
function J(V) {
|
|
765
|
+
v.value !== null && (V.qSkipRipple = C === !0, l("mousedown", V), V.defaultPrevented !== !0 && Ge !== v.value && (Ge !== null && L(), Ge = v.value, v.value.classList.add("q-btn--active"), document.addEventListener("mouseup", U, ge)));
|
|
766
766
|
}
|
|
767
|
-
function U(
|
|
768
|
-
if (v.value !== null && !(
|
|
769
|
-
if (
|
|
770
|
-
if (Xe === v.value &&
|
|
771
|
-
const D = new MouseEvent("click",
|
|
772
|
-
D.qKeyEvent = !0,
|
|
767
|
+
function U(V) {
|
|
768
|
+
if (v.value !== null && !(V !== void 0 && V.type === "blur" && document.activeElement === v.value)) {
|
|
769
|
+
if (V !== void 0 && V.type === "keyup") {
|
|
770
|
+
if (Xe === v.value && Ie(V, [13, 32]) === !0) {
|
|
771
|
+
const D = new MouseEvent("click", V);
|
|
772
|
+
D.qKeyEvent = !0, V.defaultPrevented === !0 && be(D), V.cancelBubble === !0 && Ee(D), v.value.dispatchEvent(D), le(V), V.qKeyEvent = !0;
|
|
773
773
|
}
|
|
774
|
-
l("keyup",
|
|
774
|
+
l("keyup", V);
|
|
775
775
|
}
|
|
776
776
|
L();
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
function L(
|
|
779
|
+
function L(V) {
|
|
780
780
|
const D = c.value;
|
|
781
|
-
|
|
781
|
+
V !== !0 && (Ye === v.value || Ge === v.value) && D !== null && D !== document.activeElement && (D.setAttribute("tabindex", -1), D.focus()), Ye === v.value && (m !== null && (m.removeEventListener("touchcancel", U, ge), m.removeEventListener("touchend", U, ge)), Ye = m = null), Ge === v.value && (document.removeEventListener("mouseup", U, ge), Ge = null), Xe === v.value && (document.removeEventListener("keyup", U, !0), v.value !== null && v.value.removeEventListener("blur", U, ge), Xe = null), v.value !== null && v.value.classList.remove("q-btn--active");
|
|
782
782
|
}
|
|
783
|
-
function K(
|
|
784
|
-
le(
|
|
783
|
+
function K(V) {
|
|
784
|
+
le(V), V.qSkipRipple = !0;
|
|
785
785
|
}
|
|
786
786
|
return me(() => {
|
|
787
787
|
L(!0);
|
|
788
788
|
}), Object.assign(n, {
|
|
789
|
-
click: (
|
|
790
|
-
y.value === !0 && A(
|
|
789
|
+
click: (V) => {
|
|
790
|
+
y.value === !0 && A(V);
|
|
791
791
|
}
|
|
792
792
|
}), () => {
|
|
793
|
-
let
|
|
794
|
-
e.icon !== void 0 &&
|
|
793
|
+
let V = [];
|
|
794
|
+
e.icon !== void 0 && V.push(
|
|
795
795
|
g(_e, {
|
|
796
796
|
name: e.icon,
|
|
797
797
|
left: e.stack !== !0 && O.value === !0,
|
|
798
798
|
role: "img"
|
|
799
799
|
})
|
|
800
|
-
), O.value === !0 &&
|
|
800
|
+
), O.value === !0 && V.push(
|
|
801
801
|
g("span", { class: "block" }, [e.label])
|
|
802
|
-
),
|
|
802
|
+
), V = Ae(t.default, V), e.iconRight !== void 0 && e.round === !1 && V.push(
|
|
803
803
|
g(_e, {
|
|
804
804
|
name: e.iconRight,
|
|
805
805
|
right: e.stack !== !0 && O.value === !0,
|
|
@@ -824,7 +824,7 @@ const ii = he({
|
|
|
824
824
|
), D.push(
|
|
825
825
|
g("span", {
|
|
826
826
|
class: "q-btn__content text-center col items-center q-anchor--skip " + a.value
|
|
827
|
-
},
|
|
827
|
+
}, V)
|
|
828
828
|
), e.loading !== null && D.push(
|
|
829
829
|
g(dt, {
|
|
830
830
|
name: "q-transition--fade"
|
|
@@ -837,7 +837,7 @@ const ii = he({
|
|
|
837
837
|
), vn(
|
|
838
838
|
g(
|
|
839
839
|
b.value,
|
|
840
|
-
|
|
840
|
+
B.value,
|
|
841
841
|
D
|
|
842
842
|
),
|
|
843
843
|
[[
|
|
@@ -849,10 +849,8 @@ const ii = he({
|
|
|
849
849
|
);
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
}), ui = {
|
|
853
|
-
|
|
854
|
-
}, ai = /* @__PURE__ */ mt({
|
|
855
|
-
...ui,
|
|
852
|
+
}), ui = /* @__PURE__ */ mt({
|
|
853
|
+
__name: "index",
|
|
856
854
|
props: {
|
|
857
855
|
size: { default: qe.MD },
|
|
858
856
|
transparent: { type: Boolean },
|
|
@@ -892,7 +890,7 @@ const ii = he({
|
|
|
892
890
|
return (n, o) => (ue(), $t(st(ii), {
|
|
893
891
|
"no-caps": "",
|
|
894
892
|
unelevated: "",
|
|
895
|
-
class:
|
|
893
|
+
class: Be(l.value),
|
|
896
894
|
padding: st(_o)[n.size || st(qe).MD],
|
|
897
895
|
loading: n.loading,
|
|
898
896
|
disable: n.disabled || void 0,
|
|
@@ -906,7 +904,7 @@ const ii = he({
|
|
|
906
904
|
default: xe(() => [
|
|
907
905
|
n.iconLeft || n.iconMiddle ? (ue(), de("i", {
|
|
908
906
|
key: 0,
|
|
909
|
-
class:
|
|
907
|
+
class: Be([
|
|
910
908
|
"icon-kl",
|
|
911
909
|
n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
912
910
|
`icon-kl-${n.iconLeft || n.iconMiddle}`,
|
|
@@ -915,11 +913,11 @@ const ii = he({
|
|
|
915
913
|
}, null, 2)) : Ce("", !0),
|
|
916
914
|
bo(n.$slots, "default", {}, void 0, !0),
|
|
917
915
|
n.label ? (ue(), de(at, { key: 1 }, [
|
|
918
|
-
|
|
916
|
+
Bt(Ze(n.label), 1)
|
|
919
917
|
], 64)) : Ce("", !0),
|
|
920
918
|
n.iconRight ? (ue(), de("i", {
|
|
921
919
|
key: 2,
|
|
922
|
-
class:
|
|
920
|
+
class: Be([
|
|
923
921
|
"icon-kl",
|
|
924
922
|
"icon-kl_right",
|
|
925
923
|
`icon-kl-${n.iconRight}`,
|
|
@@ -935,11 +933,11 @@ const ii = he({
|
|
|
935
933
|
for (const [n, o] of t)
|
|
936
934
|
l[n] = o;
|
|
937
935
|
return l;
|
|
938
|
-
},
|
|
936
|
+
}, ai = /* @__PURE__ */ fl(ui, [["__scopeId", "data-v-59859915"]]), ft = P(
|
|
939
937
|
!1
|
|
940
938
|
);
|
|
941
939
|
let ul;
|
|
942
|
-
function
|
|
940
|
+
function ri(e, t) {
|
|
943
941
|
const l = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
944
942
|
return {
|
|
945
943
|
browser: l[5] || l[3] || l[1] || "",
|
|
@@ -947,12 +945,12 @@ function si(e, t) {
|
|
|
947
945
|
platform: t[0] || ""
|
|
948
946
|
};
|
|
949
947
|
}
|
|
950
|
-
function
|
|
948
|
+
function si(e) {
|
|
951
949
|
return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
|
|
952
950
|
}
|
|
953
951
|
const Ln = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
954
|
-
function
|
|
955
|
-
const t = e.toLowerCase(), l =
|
|
952
|
+
function ci(e) {
|
|
953
|
+
const t = e.toLowerCase(), l = si(t), n = ri(t, l), o = {
|
|
956
954
|
mobile: !1,
|
|
957
955
|
desktop: !1,
|
|
958
956
|
cordova: !1,
|
|
@@ -1007,15 +1005,15 @@ function di(e) {
|
|
|
1007
1005
|
}
|
|
1008
1006
|
return o;
|
|
1009
1007
|
}
|
|
1010
|
-
const
|
|
1008
|
+
const Fl = navigator.userAgent || navigator.vendor || window.opera, di = {
|
|
1011
1009
|
has: {
|
|
1012
1010
|
touch: !1,
|
|
1013
1011
|
webStorage: !1
|
|
1014
1012
|
},
|
|
1015
1013
|
within: { iframe: !1 }
|
|
1016
1014
|
}, ve = {
|
|
1017
|
-
userAgent:
|
|
1018
|
-
is:
|
|
1015
|
+
userAgent: Fl,
|
|
1016
|
+
is: ci(Fl),
|
|
1019
1017
|
has: {
|
|
1020
1018
|
touch: Ln
|
|
1021
1019
|
},
|
|
@@ -1041,7 +1039,7 @@ const Il = navigator.userAgent || navigator.vendor || window.opera, fi = {
|
|
|
1041
1039
|
} catch {
|
|
1042
1040
|
}
|
|
1043
1041
|
return e = !1, !1;
|
|
1044
|
-
}), Object.assign(al, ve), ft.value === !0 && (Object.assign(al, ul,
|
|
1042
|
+
}), Object.assign(al, ve), ft.value === !0 && (Object.assign(al, ul, di), ul = null);
|
|
1045
1043
|
}
|
|
1046
1044
|
const Pe = [];
|
|
1047
1045
|
function Mn(e) {
|
|
@@ -1054,7 +1052,7 @@ function Rt(e) {
|
|
|
1054
1052
|
const t = Pe.indexOf(e);
|
|
1055
1053
|
t !== -1 && (Pe.splice(t, 1), Pe.length === 0 && document.body.removeEventListener("focusin", Mn));
|
|
1056
1054
|
}
|
|
1057
|
-
function
|
|
1055
|
+
function fi(e) {
|
|
1058
1056
|
const t = document.createElement("textarea");
|
|
1059
1057
|
t.value = e, t.contentEditable = "true", t.style.position = "fixed";
|
|
1060
1058
|
const l = () => {
|
|
@@ -1063,19 +1061,17 @@ function vi(e) {
|
|
|
1063
1061
|
const n = document.execCommand("copy");
|
|
1064
1062
|
return t.remove(), Rt(l), n;
|
|
1065
1063
|
}
|
|
1066
|
-
function
|
|
1064
|
+
function vi(e) {
|
|
1067
1065
|
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(e) : new Promise((t, l) => {
|
|
1068
|
-
const n =
|
|
1066
|
+
const n = fi(e);
|
|
1069
1067
|
n ? t(!0) : l(n);
|
|
1070
1068
|
});
|
|
1071
1069
|
}
|
|
1072
1070
|
const Ut = {
|
|
1073
1071
|
COPY: "copy_o",
|
|
1074
1072
|
COPIED: "copied_o"
|
|
1075
|
-
},
|
|
1076
|
-
|
|
1077
|
-
}, Iu = /* @__PURE__ */ mt({
|
|
1078
|
-
...hi,
|
|
1073
|
+
}, Au = /* @__PURE__ */ mt({
|
|
1074
|
+
__name: "index",
|
|
1079
1075
|
props: {
|
|
1080
1076
|
text: {},
|
|
1081
1077
|
size: {},
|
|
@@ -1101,11 +1097,11 @@ const Ut = {
|
|
|
1101
1097
|
l.value = Ut.COPY;
|
|
1102
1098
|
}, 2e3);
|
|
1103
1099
|
}, o = () => {
|
|
1104
|
-
|
|
1100
|
+
vi(t.text).then(n).catch((u) => {
|
|
1105
1101
|
console.log(u);
|
|
1106
1102
|
});
|
|
1107
1103
|
};
|
|
1108
|
-
return (u, a) => (ue(), $t(
|
|
1104
|
+
return (u, a) => (ue(), $t(ai, mn(t, {
|
|
1109
1105
|
"icon-middle": l.value,
|
|
1110
1106
|
onClick: hn(o, ["prevent"])
|
|
1111
1107
|
}), null, 16, ["icon-middle"]));
|
|
@@ -1119,7 +1115,7 @@ const Ut = {
|
|
|
1119
1115
|
function pt(e, t) {
|
|
1120
1116
|
return d(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1121
1117
|
}
|
|
1122
|
-
function
|
|
1118
|
+
function mi(e, t) {
|
|
1123
1119
|
const l = P(null), n = d(() => e.disable === !0 ? null : g("span", {
|
|
1124
1120
|
ref: l,
|
|
1125
1121
|
class: "no-outline",
|
|
@@ -1137,7 +1133,7 @@ function gi(e, t) {
|
|
|
1137
1133
|
const An = {
|
|
1138
1134
|
name: String
|
|
1139
1135
|
};
|
|
1140
|
-
function
|
|
1136
|
+
function hi(e = {}) {
|
|
1141
1137
|
return (t, l, n) => {
|
|
1142
1138
|
t[l](
|
|
1143
1139
|
g("input", {
|
|
@@ -1147,16 +1143,16 @@ function pi(e = {}) {
|
|
|
1147
1143
|
);
|
|
1148
1144
|
};
|
|
1149
1145
|
}
|
|
1150
|
-
function
|
|
1146
|
+
function gi(e) {
|
|
1151
1147
|
return d(() => e.name || e.for);
|
|
1152
1148
|
}
|
|
1153
|
-
const
|
|
1149
|
+
const pi = {
|
|
1154
1150
|
xs: 30,
|
|
1155
1151
|
sm: 35,
|
|
1156
1152
|
md: 40,
|
|
1157
1153
|
lg: 50,
|
|
1158
1154
|
xl: 60
|
|
1159
|
-
},
|
|
1155
|
+
}, bi = {
|
|
1160
1156
|
...gt,
|
|
1161
1157
|
...zt,
|
|
1162
1158
|
...An,
|
|
@@ -1183,9 +1179,9 @@ const yi = {
|
|
|
1183
1179
|
dense: Boolean,
|
|
1184
1180
|
disable: Boolean,
|
|
1185
1181
|
tabindex: [String, Number]
|
|
1186
|
-
},
|
|
1187
|
-
function
|
|
1188
|
-
const { props: l, slots: n, emit: o, proxy: u } = ne(), { $q: a } = u, r = pt(l, a), h = P(null), { refocusTargetEl: b, refocusTarget: s } =
|
|
1182
|
+
}, yi = ["update:modelValue"];
|
|
1183
|
+
function wi(e, t) {
|
|
1184
|
+
const { props: l, slots: n, emit: o, proxy: u } = ne(), { $q: a } = u, r = pt(l, a), h = P(null), { refocusTargetEl: b, refocusTarget: s } = mi(l, h), y = Ft(l, pi), v = d(
|
|
1189
1185
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1190
1186
|
), c = d(() => {
|
|
1191
1187
|
const L = Ue(l.val);
|
|
@@ -1206,7 +1202,7 @@ function ki(e, t) {
|
|
|
1206
1202
|
name: l.name,
|
|
1207
1203
|
value: v.value === !0 ? l.val : l.trueValue
|
|
1208
1204
|
}), L;
|
|
1209
|
-
}), R =
|
|
1205
|
+
}), R = hi(M), B = d(() => {
|
|
1210
1206
|
const L = {
|
|
1211
1207
|
tabindex: O.value,
|
|
1212
1208
|
role: "checkbox",
|
|
@@ -1258,22 +1254,22 @@ function ki(e, t) {
|
|
|
1258
1254
|
}, L)
|
|
1259
1255
|
];
|
|
1260
1256
|
b.value !== null && K.push(b.value);
|
|
1261
|
-
const
|
|
1262
|
-
return
|
|
1257
|
+
const V = l.label !== void 0 ? Ae(n.default, [l.label]) : ke(n.default);
|
|
1258
|
+
return V !== void 0 && K.push(
|
|
1263
1259
|
g("div", {
|
|
1264
1260
|
class: `q-${e}__label q-anchor--skip`
|
|
1265
|
-
},
|
|
1261
|
+
}, V)
|
|
1266
1262
|
), g("div", {
|
|
1267
1263
|
ref: h,
|
|
1268
1264
|
class: T.value,
|
|
1269
|
-
...
|
|
1265
|
+
...B.value,
|
|
1270
1266
|
onClick: A,
|
|
1271
1267
|
onKeydown: N,
|
|
1272
1268
|
onKeyup: J
|
|
1273
1269
|
}, K);
|
|
1274
1270
|
};
|
|
1275
1271
|
}
|
|
1276
|
-
const
|
|
1272
|
+
const Si = () => g("div", {
|
|
1277
1273
|
key: "svg",
|
|
1278
1274
|
class: "q-checkbox__bg absolute"
|
|
1279
1275
|
}, [
|
|
@@ -1291,12 +1287,12 @@ const xi = () => g("div", {
|
|
|
1291
1287
|
d: "M4,14H20V10H4"
|
|
1292
1288
|
})
|
|
1293
1289
|
])
|
|
1294
|
-
]),
|
|
1290
|
+
]), ki = he({
|
|
1295
1291
|
name: "QCheckbox",
|
|
1296
|
-
props:
|
|
1297
|
-
emits:
|
|
1292
|
+
props: bi,
|
|
1293
|
+
emits: yi,
|
|
1298
1294
|
setup(e) {
|
|
1299
|
-
const t =
|
|
1295
|
+
const t = Si();
|
|
1300
1296
|
function l(n, o) {
|
|
1301
1297
|
const u = d(
|
|
1302
1298
|
() => (n.value === !0 ? e.checkedIcon : o.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
@@ -1313,7 +1309,7 @@ const xi = () => g("div", {
|
|
|
1313
1309
|
])
|
|
1314
1310
|
] : [t];
|
|
1315
1311
|
}
|
|
1316
|
-
return
|
|
1312
|
+
return wi("checkbox", l);
|
|
1317
1313
|
}
|
|
1318
1314
|
}), Tt = he({
|
|
1319
1315
|
name: "QItemSection",
|
|
@@ -1387,7 +1383,7 @@ const xi = () => g("div", {
|
|
|
1387
1383
|
c.value === !0 && (y.value !== null && (k.qKeyEvent !== !0 && document.activeElement === s.value ? y.value.focus() : document.activeElement === y.value && s.value.focus()), b(k));
|
|
1388
1384
|
}
|
|
1389
1385
|
function O(k) {
|
|
1390
|
-
if (c.value === !0 &&
|
|
1386
|
+
if (c.value === !0 && Ie(k, [13, 32]) === !0) {
|
|
1391
1387
|
le(k), k.qKeyEvent = !0;
|
|
1392
1388
|
const M = new MouseEvent("click", k);
|
|
1393
1389
|
M.qKeyEvent = !0, s.value.dispatchEvent(M);
|
|
@@ -1395,7 +1391,7 @@ const xi = () => g("div", {
|
|
|
1395
1391
|
l("keyup", k);
|
|
1396
1392
|
}
|
|
1397
1393
|
function T() {
|
|
1398
|
-
const k =
|
|
1394
|
+
const k = Vo(t.default, []);
|
|
1399
1395
|
return c.value === !0 && k.unshift(
|
|
1400
1396
|
g("div", { class: "q-focus-helper", tabindex: -1, ref: y })
|
|
1401
1397
|
), k;
|
|
@@ -1416,12 +1412,12 @@ const xi = () => g("div", {
|
|
|
1416
1412
|
);
|
|
1417
1413
|
};
|
|
1418
1414
|
}
|
|
1419
|
-
}),
|
|
1415
|
+
}), Il = (e) => e ? !0 : "Обовʼязкове поле";
|
|
1420
1416
|
let Yt, xt = 0;
|
|
1421
1417
|
const ie = new Array(256);
|
|
1422
1418
|
for (let e = 0; e < 256; e++)
|
|
1423
1419
|
ie[e] = (e + 256).toString(16).substring(1);
|
|
1424
|
-
const
|
|
1420
|
+
const xi = (() => {
|
|
1425
1421
|
const e = typeof crypto < "u" ? crypto : typeof window < "u" ? window.crypto || window.msCrypto : void 0;
|
|
1426
1422
|
if (e !== void 0) {
|
|
1427
1423
|
if (e.randomBytes !== void 0)
|
|
@@ -1440,19 +1436,19 @@ const qi = (() => {
|
|
|
1440
1436
|
};
|
|
1441
1437
|
})(), Hl = 4096;
|
|
1442
1438
|
function rl() {
|
|
1443
|
-
(Yt === void 0 || xt + 16 > Hl) && (xt = 0, Yt =
|
|
1439
|
+
(Yt === void 0 || xt + 16 > Hl) && (xt = 0, Yt = xi(Hl));
|
|
1444
1440
|
const e = Array.prototype.slice.call(Yt, xt, xt += 16);
|
|
1445
1441
|
return e[6] = e[6] & 15 | 64, e[8] = e[8] & 63 | 128, ie[e[0]] + ie[e[1]] + ie[e[2]] + ie[e[3]] + "-" + ie[e[4]] + ie[e[5]] + "-" + ie[e[6]] + ie[e[7]] + "-" + ie[e[8]] + ie[e[9]] + "-" + ie[e[10]] + ie[e[11]] + ie[e[12]] + ie[e[13]] + ie[e[14]] + ie[e[15]];
|
|
1446
1442
|
}
|
|
1447
|
-
function
|
|
1443
|
+
function Ci(e) {
|
|
1448
1444
|
return e ?? null;
|
|
1449
1445
|
}
|
|
1450
1446
|
function Dl(e, t) {
|
|
1451
1447
|
return e ?? (t === !0 ? `f_${rl()}` : null);
|
|
1452
1448
|
}
|
|
1453
|
-
function
|
|
1449
|
+
function qi({ getValue: e, required: t = !0 } = {}) {
|
|
1454
1450
|
if (ft.value === !0) {
|
|
1455
|
-
const l = e !== void 0 ? P(
|
|
1451
|
+
const l = e !== void 0 ? P(Ci(e())) : P(null);
|
|
1456
1452
|
return t === !0 && l.value === null && ht(() => {
|
|
1457
1453
|
l.value = `f_${rl()}`;
|
|
1458
1454
|
}), e !== void 0 && Z(e, (n) => {
|
|
@@ -1462,7 +1458,7 @@ function Ei({ getValue: e, required: t = !0 } = {}) {
|
|
|
1462
1458
|
return e !== void 0 ? d(() => Dl(e(), t)) : P(`f_${rl()}`);
|
|
1463
1459
|
}
|
|
1464
1460
|
const jl = /^on[A-Z]/;
|
|
1465
|
-
function
|
|
1461
|
+
function _i() {
|
|
1466
1462
|
const { attrs: e, vnode: t } = ne(), l = {
|
|
1467
1463
|
listeners: P({}),
|
|
1468
1464
|
attributes: P({})
|
|
@@ -1477,9 +1473,9 @@ function Bi() {
|
|
|
1477
1473
|
}
|
|
1478
1474
|
return gn(n), n(), l;
|
|
1479
1475
|
}
|
|
1480
|
-
const
|
|
1481
|
-
function
|
|
1482
|
-
const n = wo(
|
|
1476
|
+
const Ei = "_q_fo_";
|
|
1477
|
+
function Vi({ validate: e, resetValidation: t, requiresQForm: l }) {
|
|
1478
|
+
const n = wo(Ei, !1);
|
|
1483
1479
|
if (n !== !1) {
|
|
1484
1480
|
const { props: o, proxy: u } = ne();
|
|
1485
1481
|
Object.assign(u, { validate: e, resetValidation: t }), Z(() => o.disable, (a) => {
|
|
@@ -1525,7 +1521,7 @@ function zn(e, t = 250, l) {
|
|
|
1525
1521
|
n !== null && clearTimeout(n);
|
|
1526
1522
|
}, o;
|
|
1527
1523
|
}
|
|
1528
|
-
const
|
|
1524
|
+
const Bi = [!0, !1, "ondemand"], Ti = {
|
|
1529
1525
|
modelValue: {},
|
|
1530
1526
|
error: {
|
|
1531
1527
|
type: Boolean,
|
|
@@ -1539,12 +1535,12 @@ const $i = [!0, !1, "ondemand"], Ri = {
|
|
|
1539
1535
|
type: [Boolean, String],
|
|
1540
1536
|
default: !1,
|
|
1541
1537
|
// statement unneeded but avoids future vue implementation changes
|
|
1542
|
-
validator: (e) =>
|
|
1538
|
+
validator: (e) => Bi.includes(e)
|
|
1543
1539
|
}
|
|
1544
1540
|
};
|
|
1545
|
-
function
|
|
1541
|
+
function $i(e, t) {
|
|
1546
1542
|
const { props: l, proxy: n } = ne(), o = P(!1), u = P(null), a = P(!1);
|
|
1547
|
-
|
|
1543
|
+
Vi({ validate: C, resetValidation: m });
|
|
1548
1544
|
let r = 0, h;
|
|
1549
1545
|
const b = d(
|
|
1550
1546
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
@@ -1571,24 +1567,24 @@ function Li(e, t) {
|
|
|
1571
1567
|
const T = ++r, k = t.value !== !0 ? () => {
|
|
1572
1568
|
a.value = !0;
|
|
1573
1569
|
} : () => {
|
|
1574
|
-
}, M = (
|
|
1575
|
-
|
|
1570
|
+
}, M = (B, A) => {
|
|
1571
|
+
B === !0 && k(), o.value = B, u.value = A || null, t.value = !1;
|
|
1576
1572
|
}, R = [];
|
|
1577
|
-
for (let
|
|
1578
|
-
const A = l.rules[
|
|
1573
|
+
for (let B = 0; B < l.rules.length; B++) {
|
|
1574
|
+
const A = l.rules[B];
|
|
1579
1575
|
let z;
|
|
1580
1576
|
if (typeof A == "function" ? z = A(O, Xt) : typeof A == "string" && Xt[A] !== void 0 && (z = Xt[A](O)), z === !1 || typeof z == "string")
|
|
1581
1577
|
return M(!0, z), !1;
|
|
1582
1578
|
z !== !0 && z !== void 0 && R.push(z);
|
|
1583
1579
|
}
|
|
1584
1580
|
return R.length === 0 ? (M(!1), !0) : (t.value = !0, Promise.all(R).then(
|
|
1585
|
-
(
|
|
1586
|
-
if (
|
|
1581
|
+
(B) => {
|
|
1582
|
+
if (B === void 0 || Array.isArray(B) === !1 || B.length === 0)
|
|
1587
1583
|
return T === r && M(!1), !0;
|
|
1588
|
-
const A =
|
|
1584
|
+
const A = B.find((z) => z === !1 || typeof z == "string");
|
|
1589
1585
|
return T === r && M(A !== void 0, A), A === void 0;
|
|
1590
1586
|
},
|
|
1591
|
-
(
|
|
1587
|
+
(B) => (T === r && (console.error(B), M(!0)), !1)
|
|
1592
1588
|
));
|
|
1593
1589
|
}
|
|
1594
1590
|
const p = zn(C, 0);
|
|
@@ -1604,27 +1600,27 @@ function Li(e, t) {
|
|
|
1604
1600
|
};
|
|
1605
1601
|
}
|
|
1606
1602
|
let Oe = [], vt = [];
|
|
1607
|
-
function
|
|
1603
|
+
function Fn(e) {
|
|
1608
1604
|
vt = vt.filter((t) => t !== e);
|
|
1609
1605
|
}
|
|
1610
|
-
function
|
|
1611
|
-
|
|
1606
|
+
function Ri(e) {
|
|
1607
|
+
Fn(e), vt.push(e);
|
|
1612
1608
|
}
|
|
1613
1609
|
function Ql(e) {
|
|
1614
|
-
|
|
1610
|
+
Fn(e), vt.length === 0 && Oe.length !== 0 && (Oe[Oe.length - 1](), Oe = []);
|
|
1615
1611
|
}
|
|
1616
1612
|
function ml(e) {
|
|
1617
1613
|
vt.length === 0 ? e() : Oe.push(e);
|
|
1618
1614
|
}
|
|
1619
|
-
function
|
|
1615
|
+
function Li(e) {
|
|
1620
1616
|
Oe = Oe.filter((t) => t !== e);
|
|
1621
1617
|
}
|
|
1622
1618
|
function sl(e) {
|
|
1623
1619
|
return e != null && ("" + e).length !== 0;
|
|
1624
1620
|
}
|
|
1625
|
-
const
|
|
1621
|
+
const Mi = {
|
|
1626
1622
|
...gt,
|
|
1627
|
-
...
|
|
1623
|
+
...Ti,
|
|
1628
1624
|
label: String,
|
|
1629
1625
|
stackLabel: Boolean,
|
|
1630
1626
|
hint: String,
|
|
@@ -1654,11 +1650,11 @@ const Oi = {
|
|
|
1654
1650
|
autofocus: Boolean,
|
|
1655
1651
|
for: String
|
|
1656
1652
|
}, hl = {
|
|
1657
|
-
...
|
|
1653
|
+
...Mi,
|
|
1658
1654
|
maxlength: [Number, String]
|
|
1659
|
-
},
|
|
1655
|
+
}, In = ["update:modelValue", "clear", "focus", "blur"];
|
|
1660
1656
|
function Hn({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
1661
|
-
const { props: n, proxy: o } = ne(), u = pt(n, o.$q), a =
|
|
1657
|
+
const { props: n, proxy: o } = ne(), u = pt(n, o.$q), a = qi({
|
|
1662
1658
|
required: e,
|
|
1663
1659
|
getValue: () => n.for
|
|
1664
1660
|
});
|
|
@@ -1673,7 +1669,7 @@ function Hn({ requiredForAttr: e = !0, tagProp: t, changeEvent: l = !1 } = {}) {
|
|
|
1673
1669
|
innerLoading: P(!1),
|
|
1674
1670
|
focused: P(!1),
|
|
1675
1671
|
hasPopupOpen: !1,
|
|
1676
|
-
splitAttrs:
|
|
1672
|
+
splitAttrs: _i(),
|
|
1677
1673
|
targetUid: a,
|
|
1678
1674
|
rootRef: P(null),
|
|
1679
1675
|
targetRef: P(null),
|
|
@@ -1713,8 +1709,8 @@ function Dn(e) {
|
|
|
1713
1709
|
focus: A
|
|
1714
1710
|
}), e.computedCounter === void 0 && (e.computedCounter = d(() => {
|
|
1715
1711
|
if (t.counter !== !1) {
|
|
1716
|
-
const E = typeof t.modelValue == "string" || typeof t.modelValue == "number" ? ("" + t.modelValue).length : Array.isArray(t.modelValue) === !0 ? t.modelValue.length : 0,
|
|
1717
|
-
return E + (
|
|
1712
|
+
const E = typeof t.modelValue == "string" || typeof t.modelValue == "number" ? ("" + t.modelValue).length : Array.isArray(t.modelValue) === !0 ? t.modelValue.length : 0, F = t.maxlength !== void 0 ? t.maxlength : t.maxValues;
|
|
1713
|
+
return E + (F !== void 0 ? " / " + F : "");
|
|
1718
1714
|
}
|
|
1719
1715
|
}));
|
|
1720
1716
|
const {
|
|
@@ -1723,7 +1719,7 @@ function Dn(e) {
|
|
|
1723
1719
|
hasError: s,
|
|
1724
1720
|
errorMessage: y,
|
|
1725
1721
|
resetValidation: v
|
|
1726
|
-
} =
|
|
1722
|
+
} = $i(e.focused, e.innerLoading), c = e.floatingLabel !== void 0 ? d(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : d(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), m = d(
|
|
1727
1723
|
() => t.bottomSlots === !0 || t.hint !== void 0 || b.value === !0 || t.counter === !0 || t.error !== null
|
|
1728
1724
|
), C = d(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), p = d(
|
|
1729
1725
|
() => `q-field row no-wrap items-start q-field--${C.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (c.value === !0 ? " q-field--float" : "") + (T.value === !0 ? " q-field--labeled" : "") + (t.dense === !0 ? " q-field--dense" : "") + (t.itemAligned === !0 ? " q-field--item-aligned q-item-type" : "") + (e.isDark.value === !0 ? " q-field--dark" : "") + (e.getControl === void 0 ? " q-field--auto-height" : "") + (e.focused.value === !0 ? " q-field--focused" : "") + (s.value === !0 ? " q-field--error" : "") + (s.value === !0 || e.focused.value === !0 ? " q-field--highlighted" : "") + (t.hideBottomSpace !== !0 && m.value === !0 ? " q-field--with-bottom" : "") + (t.disable === !0 ? " q-field--disabled" : t.readonly === !0 ? " q-field--readonly" : "")
|
|
@@ -1744,31 +1740,31 @@ function Dn(e) {
|
|
|
1744
1740
|
const E = {};
|
|
1745
1741
|
return e.targetUid.value && (E.for = e.targetUid.value), t.disable === !0 && (E["aria-disabled"] = "true"), E;
|
|
1746
1742
|
});
|
|
1747
|
-
function
|
|
1743
|
+
function B() {
|
|
1748
1744
|
const E = document.activeElement;
|
|
1749
|
-
let
|
|
1750
|
-
|
|
1745
|
+
let F = e.targetRef !== void 0 && e.targetRef.value;
|
|
1746
|
+
F && (E === null || E.id !== e.targetUid.value) && (F.hasAttribute("tabindex") === !0 || (F = F.querySelector("[tabindex]")), F && F !== E && F.focus({ preventScroll: !0 }));
|
|
1751
1747
|
}
|
|
1752
1748
|
function A() {
|
|
1753
|
-
ml(
|
|
1749
|
+
ml(B);
|
|
1754
1750
|
}
|
|
1755
1751
|
function z() {
|
|
1756
|
-
|
|
1752
|
+
Li(B);
|
|
1757
1753
|
const E = document.activeElement;
|
|
1758
1754
|
E !== null && e.rootRef.value.contains(E) && E.blur();
|
|
1759
1755
|
}
|
|
1760
1756
|
function N(E) {
|
|
1761
1757
|
r !== null && (clearTimeout(r), r = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, l("focus", E));
|
|
1762
1758
|
}
|
|
1763
|
-
function J(E,
|
|
1759
|
+
function J(E, F) {
|
|
1764
1760
|
r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
1765
|
-
r = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, l("blur", E)),
|
|
1761
|
+
r = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, l("blur", E)), F !== void 0 && F());
|
|
1766
1762
|
});
|
|
1767
1763
|
}
|
|
1768
1764
|
function U(E) {
|
|
1769
1765
|
le(E), a.platform.is.mobile !== !0 ? (e.targetRef !== void 0 && e.targetRef.value || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), t.type === "file" && (e.inputRef.value.value = null), l("update:modelValue", null), e.changeEvent === !0 && l("change", null), l("clear", t.modelValue), fe(() => {
|
|
1770
|
-
const
|
|
1771
|
-
v(), h.value =
|
|
1766
|
+
const F = h.value;
|
|
1767
|
+
v(), h.value = F;
|
|
1772
1768
|
});
|
|
1773
1769
|
}
|
|
1774
1770
|
function L(E) {
|
|
@@ -1785,7 +1781,7 @@ function Dn(e) {
|
|
|
1785
1781
|
), E.push(
|
|
1786
1782
|
g("div", {
|
|
1787
1783
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
1788
|
-
},
|
|
1784
|
+
}, V())
|
|
1789
1785
|
), s.value === !0 && t.noErrorIcon === !1 && E.push(
|
|
1790
1786
|
X("error", [
|
|
1791
1787
|
g(_e, { name: a.iconSet.field.error, color: "negative" })
|
|
@@ -1820,7 +1816,7 @@ function Dn(e) {
|
|
|
1820
1816
|
e.getControlChild()
|
|
1821
1817
|
), E;
|
|
1822
1818
|
}
|
|
1823
|
-
function
|
|
1819
|
+
function V() {
|
|
1824
1820
|
const E = [];
|
|
1825
1821
|
return t.prefix !== void 0 && t.prefix !== null && E.push(
|
|
1826
1822
|
g("div", {
|
|
@@ -1847,13 +1843,13 @@ function Dn(e) {
|
|
|
1847
1843
|
), E.concat(ke(n.default));
|
|
1848
1844
|
}
|
|
1849
1845
|
function D() {
|
|
1850
|
-
let E,
|
|
1851
|
-
s.value === !0 ? y.value !== null ? (E = [g("div", { role: "alert" }, y.value)],
|
|
1846
|
+
let E, F;
|
|
1847
|
+
s.value === !0 ? y.value !== null ? (E = [g("div", { role: "alert" }, y.value)], F = `q--slot-error-${y.value}`) : (E = ke(n.error), F = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (E = [g("div", t.hint)], F = `q--slot-hint-${t.hint}`) : (E = ke(n.hint), F = "q--slot-hint"));
|
|
1852
1848
|
const se = t.counter === !0 || n.counter !== void 0;
|
|
1853
1849
|
if (t.hideBottomSpace === !0 && se === !1 && E === void 0)
|
|
1854
1850
|
return;
|
|
1855
1851
|
const f = g("div", {
|
|
1856
|
-
key:
|
|
1852
|
+
key: F,
|
|
1857
1853
|
class: "q-field__messages col"
|
|
1858
1854
|
}, E);
|
|
1859
1855
|
return g("div", {
|
|
@@ -1866,11 +1862,11 @@ function Dn(e) {
|
|
|
1866
1862
|
}, n.counter !== void 0 ? n.counter() : e.computedCounter.value) : null
|
|
1867
1863
|
]);
|
|
1868
1864
|
}
|
|
1869
|
-
function X(E,
|
|
1870
|
-
return
|
|
1865
|
+
function X(E, F) {
|
|
1866
|
+
return F === null ? null : g("div", {
|
|
1871
1867
|
key: E,
|
|
1872
1868
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
1873
|
-
},
|
|
1869
|
+
}, F);
|
|
1874
1870
|
}
|
|
1875
1871
|
let ae = !1;
|
|
1876
1872
|
return Pt(() => {
|
|
@@ -1882,7 +1878,7 @@ function Dn(e) {
|
|
|
1882
1878
|
}), me(() => {
|
|
1883
1879
|
r !== null && clearTimeout(r);
|
|
1884
1880
|
}), Object.assign(u, { focus: A, blur: z }), function() {
|
|
1885
|
-
const
|
|
1881
|
+
const F = e.getControl === void 0 && n.control === void 0 ? {
|
|
1886
1882
|
...e.splitAttrs.attributes.value,
|
|
1887
1883
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
1888
1884
|
...R.value
|
|
@@ -1894,7 +1890,7 @@ function Dn(e) {
|
|
|
1894
1890
|
o.class
|
|
1895
1891
|
],
|
|
1896
1892
|
style: o.style,
|
|
1897
|
-
...
|
|
1893
|
+
...F
|
|
1898
1894
|
}, [
|
|
1899
1895
|
n.before !== void 0 ? g("div", {
|
|
1900
1896
|
class: "q-field__before q-field__marginal row no-wrap items-center",
|
|
@@ -1918,7 +1914,7 @@ function Dn(e) {
|
|
|
1918
1914
|
]);
|
|
1919
1915
|
};
|
|
1920
1916
|
}
|
|
1921
|
-
const
|
|
1917
|
+
const Ai = he({
|
|
1922
1918
|
name: "QField",
|
|
1923
1919
|
inheritAttrs: !1,
|
|
1924
1920
|
props: {
|
|
@@ -1928,19 +1924,19 @@ const Pi = he({
|
|
|
1928
1924
|
default: "label"
|
|
1929
1925
|
}
|
|
1930
1926
|
},
|
|
1931
|
-
emits:
|
|
1927
|
+
emits: In,
|
|
1932
1928
|
setup() {
|
|
1933
1929
|
return Dn(
|
|
1934
1930
|
Hn({ tagProp: !0 })
|
|
1935
1931
|
);
|
|
1936
1932
|
}
|
|
1937
|
-
}),
|
|
1933
|
+
}), Oi = {
|
|
1938
1934
|
xs: 8,
|
|
1939
1935
|
sm: 10,
|
|
1940
1936
|
md: 14,
|
|
1941
1937
|
lg: 20,
|
|
1942
1938
|
xl: 24
|
|
1943
|
-
},
|
|
1939
|
+
}, Pi = he({
|
|
1944
1940
|
name: "QChip",
|
|
1945
1941
|
props: {
|
|
1946
1942
|
...gt,
|
|
@@ -1975,7 +1971,7 @@ const Pi = he({
|
|
|
1975
1971
|
},
|
|
1976
1972
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
1977
1973
|
setup(e, { slots: t, emit: l }) {
|
|
1978
|
-
const { proxy: { $q: n } } = ne(), o = pt(e, n), u =
|
|
1974
|
+
const { proxy: { $q: n } } = ne(), o = pt(e, n), u = Ft(e, Oi), a = d(() => e.selected === !0 || e.icon !== void 0), r = d(() => e.selected === !0 ? e.iconSelected || n.iconSet.chip.selected : e.icon), h = d(() => e.iconRemove || n.iconSet.chip.remove), b = d(
|
|
1979
1975
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
1980
1976
|
), s = d(() => {
|
|
1981
1977
|
const p = e.outline === !0 && e.color || e.textColor;
|
|
@@ -2012,7 +2008,7 @@ const Pi = he({
|
|
|
2012
2008
|
return p.push(
|
|
2013
2009
|
g("div", {
|
|
2014
2010
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2015
|
-
},
|
|
2011
|
+
}, Bo(t.default, O))
|
|
2016
2012
|
), e.iconRight && p.push(
|
|
2017
2013
|
g(_e, {
|
|
2018
2014
|
class: "q-chip__icon q-chip__icon--right",
|
|
@@ -2049,24 +2045,24 @@ const Pi = he({
|
|
|
2049
2045
|
};
|
|
2050
2046
|
}
|
|
2051
2047
|
});
|
|
2052
|
-
function
|
|
2048
|
+
function zi() {
|
|
2053
2049
|
if (window.getSelection !== void 0) {
|
|
2054
2050
|
const e = window.getSelection();
|
|
2055
2051
|
e.empty !== void 0 ? e.empty() : e.removeAllRanges !== void 0 && (e.removeAllRanges(), al.is.mobile !== !0 && e.addRange(document.createRange()));
|
|
2056
2052
|
} else document.selection !== void 0 && document.selection.empty();
|
|
2057
2053
|
}
|
|
2058
|
-
const
|
|
2054
|
+
const Fi = {
|
|
2059
2055
|
/* SSR does not know about Element */
|
|
2060
2056
|
target: {
|
|
2061
2057
|
type: [Boolean, String, Element],
|
|
2062
2058
|
default: !0
|
|
2063
2059
|
},
|
|
2064
2060
|
noParentEvent: Boolean
|
|
2065
|
-
},
|
|
2066
|
-
...
|
|
2061
|
+
}, Ii = {
|
|
2062
|
+
...Fi,
|
|
2067
2063
|
contextMenu: Boolean
|
|
2068
2064
|
};
|
|
2069
|
-
function
|
|
2065
|
+
function Hi({
|
|
2070
2066
|
showing: e,
|
|
2071
2067
|
avoidEmit: t,
|
|
2072
2068
|
// required for QPopupProxy (true)
|
|
@@ -2087,7 +2083,7 @@ function ji({
|
|
|
2087
2083
|
o.toggle(c), c.qAnchorHandled = !0;
|
|
2088
2084
|
},
|
|
2089
2085
|
toggleKey(c) {
|
|
2090
|
-
|
|
2086
|
+
Ie(c, 13) === !0 && b.toggle(c);
|
|
2091
2087
|
},
|
|
2092
2088
|
contextClick(c) {
|
|
2093
2089
|
o.hide(c), be(c), fe(() => {
|
|
@@ -2110,7 +2106,7 @@ function ji({
|
|
|
2110
2106
|
}, 300);
|
|
2111
2107
|
},
|
|
2112
2108
|
mobileCleanup(c) {
|
|
2113
|
-
a.value.classList.remove("non-selectable"), r !== null && (clearTimeout(r), r = null), e.value === !0 && c !== void 0 &&
|
|
2109
|
+
a.value.classList.remove("non-selectable"), r !== null && (clearTimeout(r), r = null), e.value === !0 && c !== void 0 && zi();
|
|
2114
2110
|
}
|
|
2115
2111
|
}), l = function(c = n.contextMenu) {
|
|
2116
2112
|
if (n.noParentEvent === !0 || a.value === null) return;
|
|
@@ -2165,7 +2161,7 @@ function ji({
|
|
|
2165
2161
|
anchorEvents: b
|
|
2166
2162
|
};
|
|
2167
2163
|
}
|
|
2168
|
-
function
|
|
2164
|
+
function Di(e, t) {
|
|
2169
2165
|
const l = P(null);
|
|
2170
2166
|
let n;
|
|
2171
2167
|
function o(r, h) {
|
|
@@ -2239,7 +2235,7 @@ function Wn({
|
|
|
2239
2235
|
function p(T) {
|
|
2240
2236
|
r.disable === !0 && T === !0 ? r["onUpdate:modelValue"] !== void 0 && h("update:modelValue", !1) : T === !0 !== e.value && (T === !0 ? c : C)(s);
|
|
2241
2237
|
}
|
|
2242
|
-
Z(() => r.modelValue, p), l !== void 0 &&
|
|
2238
|
+
Z(() => r.modelValue, p), l !== void 0 && Bn(a) === !0 && Z(() => b.$route.fullPath, () => {
|
|
2243
2239
|
l.value === !0 && e.value === !0 && m();
|
|
2244
2240
|
}), ht(() => {
|
|
2245
2241
|
p(r.modelValue);
|
|
@@ -2248,20 +2244,20 @@ function Wn({
|
|
|
2248
2244
|
return Object.assign(b, O), O;
|
|
2249
2245
|
}
|
|
2250
2246
|
const Ul = {};
|
|
2251
|
-
let
|
|
2252
|
-
function
|
|
2247
|
+
let ji = 1, Ni = document.body;
|
|
2248
|
+
function Wi(e, t) {
|
|
2253
2249
|
const l = document.createElement("div");
|
|
2254
|
-
if (l.id = t !== void 0 ? `q-portal--${t}--${
|
|
2250
|
+
if (l.id = t !== void 0 ? `q-portal--${t}--${ji++}` : e, Ul.globalNodes !== void 0) {
|
|
2255
2251
|
const n = Ul.globalNodes.class;
|
|
2256
2252
|
n !== void 0 && (l.className = n);
|
|
2257
2253
|
}
|
|
2258
|
-
return
|
|
2254
|
+
return Ni.appendChild(l), l;
|
|
2259
2255
|
}
|
|
2260
|
-
function
|
|
2256
|
+
function Ki(e) {
|
|
2261
2257
|
e.remove();
|
|
2262
2258
|
}
|
|
2263
2259
|
const ct = [];
|
|
2264
|
-
function
|
|
2260
|
+
function Qi(e, t) {
|
|
2265
2261
|
do {
|
|
2266
2262
|
if (e.$options.name === "QMenu") {
|
|
2267
2263
|
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
@@ -2273,13 +2269,13 @@ function Yi(e, t) {
|
|
|
2273
2269
|
e = Qt(e);
|
|
2274
2270
|
} while (e != null);
|
|
2275
2271
|
}
|
|
2276
|
-
const
|
|
2272
|
+
const Ui = he({
|
|
2277
2273
|
name: "QPortal",
|
|
2278
2274
|
setup(e, { slots: t }) {
|
|
2279
2275
|
return () => t.default();
|
|
2280
2276
|
}
|
|
2281
2277
|
});
|
|
2282
|
-
function
|
|
2278
|
+
function Yi(e) {
|
|
2283
2279
|
for (e = e.parent; e != null; ) {
|
|
2284
2280
|
if (e.type.name === "QGlobalDialog")
|
|
2285
2281
|
return !0;
|
|
@@ -2292,19 +2288,19 @@ function Gi(e) {
|
|
|
2292
2288
|
function Kn(e, t, l, n) {
|
|
2293
2289
|
const o = P(!1), u = P(!1);
|
|
2294
2290
|
let a = null;
|
|
2295
|
-
const r = {}, h = n === "dialog" &&
|
|
2291
|
+
const r = {}, h = n === "dialog" && Yi(e);
|
|
2296
2292
|
function b(y) {
|
|
2297
2293
|
if (y === !0) {
|
|
2298
2294
|
Ql(r), u.value = !0;
|
|
2299
2295
|
return;
|
|
2300
2296
|
}
|
|
2301
|
-
u.value = !1, o.value === !1 && (h === !1 && a === null && (a =
|
|
2297
|
+
u.value = !1, o.value === !1 && (h === !1 && a === null && (a = Wi(!1, n)), o.value = !0, ct.push(e.proxy), Ri(r));
|
|
2302
2298
|
}
|
|
2303
2299
|
function s(y) {
|
|
2304
2300
|
if (u.value = !1, y !== !0) return;
|
|
2305
2301
|
Ql(r), o.value = !1;
|
|
2306
2302
|
const v = ct.indexOf(e.proxy);
|
|
2307
|
-
v !== -1 && ct.splice(v, 1), a !== null && (
|
|
2303
|
+
v !== -1 && ct.splice(v, 1), a !== null && (Ki(a), a = null);
|
|
2308
2304
|
}
|
|
2309
2305
|
return So(() => {
|
|
2310
2306
|
s(!0);
|
|
@@ -2313,7 +2309,7 @@ function Kn(e, t, l, n) {
|
|
|
2313
2309
|
hidePortal: s,
|
|
2314
2310
|
portalIsActive: o,
|
|
2315
2311
|
portalIsAccessible: u,
|
|
2316
|
-
renderPortal: () => h === !0 ? l() : o.value === !0 ? [g(ko, { to: a }, g(
|
|
2312
|
+
renderPortal: () => h === !0 ? l() : o.value === !0 ? [g(ko, { to: a }, g(Ui, l))] : void 0
|
|
2317
2313
|
};
|
|
2318
2314
|
}
|
|
2319
2315
|
const Qn = {
|
|
@@ -2379,24 +2375,24 @@ function Xn() {
|
|
|
2379
2375
|
}
|
|
2380
2376
|
};
|
|
2381
2377
|
}
|
|
2382
|
-
const
|
|
2383
|
-
function
|
|
2384
|
-
let l =
|
|
2378
|
+
const Xi = [Element, String], Gi = [null, document, document.body, document.scrollingElement, document.documentElement];
|
|
2379
|
+
function Zi(e, t) {
|
|
2380
|
+
let l = Io(t);
|
|
2385
2381
|
if (l === void 0) {
|
|
2386
2382
|
if (e == null)
|
|
2387
2383
|
return window;
|
|
2388
2384
|
l = e.closest(".scroll,.scroll-y,.overflow-auto");
|
|
2389
2385
|
}
|
|
2390
|
-
return
|
|
2386
|
+
return Gi.includes(l) ? window : l;
|
|
2391
2387
|
}
|
|
2392
|
-
function
|
|
2388
|
+
function Ji(e) {
|
|
2393
2389
|
return e === window ? window.pageYOffset || window.scrollY || document.body.scrollTop || 0 : e.scrollTop;
|
|
2394
2390
|
}
|
|
2395
|
-
function
|
|
2391
|
+
function eu(e) {
|
|
2396
2392
|
return e === window ? window.pageXOffset || window.scrollX || document.body.scrollLeft || 0 : e.scrollLeft;
|
|
2397
2393
|
}
|
|
2398
2394
|
let _t;
|
|
2399
|
-
function
|
|
2395
|
+
function tu() {
|
|
2400
2396
|
if (_t !== void 0)
|
|
2401
2397
|
return _t;
|
|
2402
2398
|
const e = document.createElement("p"), t = document.createElement("div");
|
|
@@ -2417,22 +2413,22 @@ function nu() {
|
|
|
2417
2413
|
let n = e.offsetWidth;
|
|
2418
2414
|
return l === n && (n = t.clientWidth), t.remove(), _t = l - n, _t;
|
|
2419
2415
|
}
|
|
2420
|
-
function
|
|
2416
|
+
function lu(e, t = !0) {
|
|
2421
2417
|
return !e || e.nodeType !== Node.ELEMENT_NODE ? !1 : t ? e.scrollHeight > e.clientHeight && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-y"])) : e.scrollWidth > e.clientWidth && (e.classList.contains("scroll") || e.classList.contains("overflow-auto") || ["auto", "scroll"].includes(window.getComputedStyle(e)["overflow-x"]));
|
|
2422
2418
|
}
|
|
2423
2419
|
const ze = [];
|
|
2424
2420
|
let et;
|
|
2425
|
-
function
|
|
2421
|
+
function nu(e) {
|
|
2426
2422
|
et = e.keyCode === 27;
|
|
2427
2423
|
}
|
|
2428
|
-
function
|
|
2424
|
+
function ou() {
|
|
2429
2425
|
et === !0 && (et = !1);
|
|
2430
2426
|
}
|
|
2431
|
-
function
|
|
2432
|
-
et === !0 && (et = !1,
|
|
2427
|
+
function iu(e) {
|
|
2428
|
+
et === !0 && (et = !1, Ie(e, 27) === !0 && ze[ze.length - 1](e));
|
|
2433
2429
|
}
|
|
2434
2430
|
function Gn(e) {
|
|
2435
|
-
window[e]("keydown",
|
|
2431
|
+
window[e]("keydown", nu), window[e]("blur", ou), window[e]("keyup", iu), et = !1;
|
|
2436
2432
|
}
|
|
2437
2433
|
function Zn(e) {
|
|
2438
2434
|
ve.is.desktop === !0 && (ze.push(e), ze.length === 1 && Gn("addEventListener"));
|
|
@@ -2441,7 +2437,7 @@ function Lt(e) {
|
|
|
2441
2437
|
const t = ze.indexOf(e);
|
|
2442
2438
|
t !== -1 && (ze.splice(t, 1), ze.length === 0 && Gn("removeEventListener"));
|
|
2443
2439
|
}
|
|
2444
|
-
const { notPassiveCapture: Mt } = re,
|
|
2440
|
+
const { notPassiveCapture: Mt } = re, Fe = [];
|
|
2445
2441
|
function At(e) {
|
|
2446
2442
|
const t = e.target;
|
|
2447
2443
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
@@ -2459,27 +2455,27 @@ function At(e) {
|
|
|
2459
2455
|
return;
|
|
2460
2456
|
l--;
|
|
2461
2457
|
}
|
|
2462
|
-
for (let n =
|
|
2463
|
-
const o =
|
|
2458
|
+
for (let n = Fe.length - 1; n >= 0; n--) {
|
|
2459
|
+
const o = Fe[n];
|
|
2464
2460
|
if ((o.anchorEl.value === null || o.anchorEl.value.contains(t) === !1) && (t === document.body || o.innerRef.value !== null && o.innerRef.value.contains(t) === !1))
|
|
2465
2461
|
e.qClickOutside = !0, o.onClickOutside(e);
|
|
2466
2462
|
else
|
|
2467
2463
|
return;
|
|
2468
2464
|
}
|
|
2469
2465
|
}
|
|
2470
|
-
function
|
|
2471
|
-
|
|
2466
|
+
function uu(e) {
|
|
2467
|
+
Fe.push(e), Fe.length === 1 && (document.addEventListener("mousedown", At, Mt), document.addEventListener("touchstart", At, Mt));
|
|
2472
2468
|
}
|
|
2473
2469
|
function Yl(e) {
|
|
2474
|
-
const t =
|
|
2475
|
-
t !== -1 && (
|
|
2470
|
+
const t = Fe.findIndex((l) => l === e);
|
|
2471
|
+
t !== -1 && (Fe.splice(t, 1), Fe.length === 0 && (document.removeEventListener("mousedown", At, Mt), document.removeEventListener("touchstart", At, Mt)));
|
|
2476
2472
|
}
|
|
2477
2473
|
let Xl, Gl;
|
|
2478
2474
|
function Zl(e) {
|
|
2479
2475
|
const t = e.split(" ");
|
|
2480
2476
|
return t.length !== 2 ? !1 : ["top", "center", "bottom"].includes(t[0]) !== !0 ? (console.error("Anchor/Self position must start with one of top/center/bottom"), !1) : ["left", "middle", "right", "start", "end"].includes(t[1]) !== !0 ? (console.error("Anchor/Self position must end with one of left/middle/right/start/end"), !1) : !0;
|
|
2481
2477
|
}
|
|
2482
|
-
function
|
|
2478
|
+
function au(e) {
|
|
2483
2479
|
return e ? !(e.length !== 2 || typeof e[0] != "number" || typeof e[1] != "number") : !0;
|
|
2484
2480
|
}
|
|
2485
2481
|
const cl = {
|
|
@@ -2498,7 +2494,7 @@ function Jl(e, t) {
|
|
|
2498
2494
|
horizontal: cl[`${l[1]}#${t === !0 ? "rtl" : "ltr"}`]
|
|
2499
2495
|
};
|
|
2500
2496
|
}
|
|
2501
|
-
function
|
|
2497
|
+
function ru(e, t) {
|
|
2502
2498
|
let { top: l, left: n, right: o, bottom: u, width: a, height: r } = e.getBoundingClientRect();
|
|
2503
2499
|
return t !== void 0 && (l -= t[1], n -= t[0], u += t[1], o += t[0], a += t[0], r += t[1]), {
|
|
2504
2500
|
top: l,
|
|
@@ -2511,7 +2507,7 @@ function cu(e, t) {
|
|
|
2511
2507
|
center: l + (u - l) / 2
|
|
2512
2508
|
};
|
|
2513
2509
|
}
|
|
2514
|
-
function
|
|
2510
|
+
function su(e, t, l) {
|
|
2515
2511
|
let { top: n, left: o } = e.getBoundingClientRect();
|
|
2516
2512
|
return n += t.top, o += t.left, l !== void 0 && (n += l[1], o += l[0]), {
|
|
2517
2513
|
top: n,
|
|
@@ -2524,7 +2520,7 @@ function du(e, t, l) {
|
|
|
2524
2520
|
center: n
|
|
2525
2521
|
};
|
|
2526
2522
|
}
|
|
2527
|
-
function
|
|
2523
|
+
function cu(e, t) {
|
|
2528
2524
|
return {
|
|
2529
2525
|
top: 0,
|
|
2530
2526
|
center: t / 2,
|
|
@@ -2562,10 +2558,10 @@ function Jn(e, t = 0) {
|
|
|
2562
2558
|
maxWidth: y
|
|
2563
2559
|
} = e;
|
|
2564
2560
|
if (ve.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2565
|
-
const
|
|
2566
|
-
A !== Xl && (
|
|
2561
|
+
const B = document.body.style, { offsetLeft: A, offsetTop: z } = window.visualViewport;
|
|
2562
|
+
A !== Xl && (B.setProperty("--q-pe-left", A + "px"), Xl = A), z !== Gl && (B.setProperty("--q-pe-top", z + "px"), Gl = z);
|
|
2567
2563
|
}
|
|
2568
|
-
const { scrollLeft: v, scrollTop: c } = l, m = r === void 0 ?
|
|
2564
|
+
const { scrollLeft: v, scrollTop: c } = l, m = r === void 0 ? ru(o, b === !0 ? [0, 0] : n) : su(o, r, n);
|
|
2569
2565
|
Object.assign(l.style, {
|
|
2570
2566
|
top: 0,
|
|
2571
2567
|
left: 0,
|
|
@@ -2578,15 +2574,15 @@ function Jn(e, t = 0) {
|
|
|
2578
2574
|
const { offsetWidth: C, offsetHeight: p } = l, { elWidth: O, elHeight: T } = h === !0 || b === !0 ? { elWidth: Math.max(m.width, C), elHeight: b === !0 ? Math.max(m.height, p) : p } : { elWidth: C, elHeight: p };
|
|
2579
2575
|
let k = { maxWidth: y, maxHeight: s };
|
|
2580
2576
|
(h === !0 || b === !0) && (k.minWidth = m.width + "px", b === !0 && (k.minHeight = m.height + "px")), Object.assign(l.style, k);
|
|
2581
|
-
const M =
|
|
2577
|
+
const M = cu(O, T);
|
|
2582
2578
|
let R = en(m, M, u, a);
|
|
2583
2579
|
if (r === void 0 || n === void 0)
|
|
2584
2580
|
Gt(R, m, M, u, a);
|
|
2585
2581
|
else {
|
|
2586
|
-
const { top:
|
|
2582
|
+
const { top: B, left: A } = R;
|
|
2587
2583
|
Gt(R, m, M, u, a);
|
|
2588
2584
|
let z = !1;
|
|
2589
|
-
if (R.top !==
|
|
2585
|
+
if (R.top !== B) {
|
|
2590
2586
|
z = !0;
|
|
2591
2587
|
const N = 2 * n[1];
|
|
2592
2588
|
m.center = m.top -= N, m.bottom -= N + 2;
|
|
@@ -2604,7 +2600,7 @@ function Jn(e, t = 0) {
|
|
|
2604
2600
|
}, R.maxHeight !== void 0 && (k.maxHeight = R.maxHeight + "px", m.height > R.maxHeight && (k.minHeight = k.maxHeight)), R.maxWidth !== void 0 && (k.maxWidth = R.maxWidth + "px", m.width > R.maxWidth && (k.minWidth = k.maxWidth)), Object.assign(l.style, k), l.scrollTop !== c && (l.scrollTop = c), l.scrollLeft !== v && (l.scrollLeft = v);
|
|
2605
2601
|
}
|
|
2606
2602
|
function Gt(e, t, l, n, o) {
|
|
2607
|
-
const u = l.bottom, a = l.right, r =
|
|
2603
|
+
const u = l.bottom, a = l.right, r = tu(), h = window.innerHeight - r, b = document.body.clientWidth;
|
|
2608
2604
|
if (e.top < 0 || e.top + u > h)
|
|
2609
2605
|
if (o.vertical === "center")
|
|
2610
2606
|
e.top = t[n.vertical] > h / 2 ? Math.max(0, h - u) : 0, e.maxHeight = Math.min(u, h);
|
|
@@ -2634,11 +2630,11 @@ function Gt(e, t, l, n, o) {
|
|
|
2634
2630
|
n.horizontal === "middle" ? t.middle : n.horizontal === o.horizontal ? t.left : t.right
|
|
2635
2631
|
), e.maxWidth = Math.min(a, b - e.left);
|
|
2636
2632
|
}
|
|
2637
|
-
const
|
|
2633
|
+
const du = he({
|
|
2638
2634
|
name: "QMenu",
|
|
2639
2635
|
inheritAttrs: !1,
|
|
2640
2636
|
props: {
|
|
2641
|
-
...
|
|
2637
|
+
...Ii,
|
|
2642
2638
|
...jn,
|
|
2643
2639
|
...gt,
|
|
2644
2640
|
...Qn,
|
|
@@ -2661,9 +2657,9 @@ const vu = he({
|
|
|
2661
2657
|
},
|
|
2662
2658
|
offset: {
|
|
2663
2659
|
type: Array,
|
|
2664
|
-
validator:
|
|
2660
|
+
validator: au
|
|
2665
2661
|
},
|
|
2666
|
-
scrollTarget:
|
|
2662
|
+
scrollTarget: Xi,
|
|
2667
2663
|
touchPosition: Boolean,
|
|
2668
2664
|
maxHeight: {
|
|
2669
2665
|
type: String,
|
|
@@ -2683,7 +2679,7 @@ const vu = he({
|
|
|
2683
2679
|
let o = null, u, a, r;
|
|
2684
2680
|
const h = ne(), { proxy: b } = h, { $q: s } = b, y = P(null), v = P(!1), c = d(
|
|
2685
2681
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2686
|
-
), m = pt(e, s), { registerTick: C, removeTick: p } = Yn(), { registerTimeout: O } = Xn(), { transitionProps: T, transitionStyle: k } = Un(e), { localScrollTarget: M, changeScrollEvent: R, unconfigureScrollTarget:
|
|
2682
|
+
), m = pt(e, s), { registerTick: C, removeTick: p } = Yn(), { registerTimeout: O } = Xn(), { transitionProps: T, transitionStyle: k } = Un(e), { localScrollTarget: M, changeScrollEvent: R, unconfigureScrollTarget: B } = Di(e, I), { anchorEl: A, canShow: z } = Hi({ showing: v }), { hide: N } = Wn({
|
|
2687
2683
|
showing: v,
|
|
2688
2684
|
canShow: z,
|
|
2689
2685
|
handleShow: se,
|
|
@@ -2698,27 +2694,27 @@ const vu = he({
|
|
|
2698
2694
|
return N(w), // always prevent touch event
|
|
2699
2695
|
(w.type === "touchstart" || w.target.classList.contains("q-dialog__backdrop")) && le(w), !0;
|
|
2700
2696
|
}
|
|
2701
|
-
},
|
|
2697
|
+
}, V = d(
|
|
2702
2698
|
() => Jl(
|
|
2703
2699
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
2704
2700
|
s.lang.rtl
|
|
2705
2701
|
)
|
|
2706
|
-
), D = d(() => e.cover === !0 ?
|
|
2702
|
+
), D = d(() => e.cover === !0 ? V.value : Jl(e.self || "top start", s.lang.rtl)), X = d(
|
|
2707
2703
|
() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
2708
2704
|
), ae = d(() => e.autoClose === !0 ? { onClick: j } : {}), E = d(
|
|
2709
2705
|
() => v.value === !0 && e.persistent !== !0
|
|
2710
2706
|
);
|
|
2711
2707
|
Z(E, (w) => {
|
|
2712
|
-
w === !0 ? (Zn(x),
|
|
2708
|
+
w === !0 ? (Zn(x), uu(K)) : (Lt(x), Yl(K));
|
|
2713
2709
|
});
|
|
2714
|
-
function
|
|
2710
|
+
function F() {
|
|
2715
2711
|
ml(() => {
|
|
2716
2712
|
let w = y.value;
|
|
2717
2713
|
w && w.contains(document.activeElement) !== !0 && (w = w.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || w.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || w.querySelector("[autofocus], [data-autofocus]") || w, w.focus({ preventScroll: !0 }));
|
|
2718
2714
|
});
|
|
2719
2715
|
}
|
|
2720
2716
|
function se(w) {
|
|
2721
|
-
if (o = e.noRefocus === !1 ? document.activeElement : null, vl(G), J(),
|
|
2717
|
+
if (o = e.noRefocus === !1 ? document.activeElement : null, vl(G), J(), I(), u = void 0, w !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
2722
2718
|
const ee = Cn(w);
|
|
2723
2719
|
if (ee.left !== void 0) {
|
|
2724
2720
|
const { top: ye, left: He } = A.value.getBoundingClientRect();
|
|
@@ -2729,7 +2725,7 @@ const vu = he({
|
|
|
2729
2725
|
() => s.screen.width + "|" + s.screen.height + "|" + e.self + "|" + e.anchor + "|" + s.lang.rtl,
|
|
2730
2726
|
$
|
|
2731
2727
|
)), e.noFocus !== !0 && document.activeElement.blur(), C(() => {
|
|
2732
|
-
$(), e.noFocus !== !0 &&
|
|
2728
|
+
$(), e.noFocus !== !0 && F();
|
|
2733
2729
|
}), O(() => {
|
|
2734
2730
|
s.platform.is.ios === !0 && (r = e.autoClose, y.value.click()), $(), J(!0), l("show", w);
|
|
2735
2731
|
}, e.transitionDuration);
|
|
@@ -2741,16 +2737,16 @@ const vu = he({
|
|
|
2741
2737
|
}, e.transitionDuration);
|
|
2742
2738
|
}
|
|
2743
2739
|
function S(w) {
|
|
2744
|
-
u = void 0, a !== void 0 && (a(), a = void 0), (w === !0 || v.value === !0) && (Rt(G),
|
|
2740
|
+
u = void 0, a !== void 0 && (a(), a = void 0), (w === !0 || v.value === !0) && (Rt(G), B(), Yl(K), Lt(x)), w !== !0 && (o = null);
|
|
2745
2741
|
}
|
|
2746
|
-
function
|
|
2747
|
-
(A.value !== null || e.scrollTarget !== void 0) && (M.value =
|
|
2742
|
+
function I() {
|
|
2743
|
+
(A.value !== null || e.scrollTarget !== void 0) && (M.value = Zi(A.value, e.scrollTarget), R(M.value, $));
|
|
2748
2744
|
}
|
|
2749
2745
|
function j(w) {
|
|
2750
|
-
r !== !0 ? (
|
|
2746
|
+
r !== !0 ? (Qi(b, w), l("click", w)) : r = !1;
|
|
2751
2747
|
}
|
|
2752
2748
|
function G(w) {
|
|
2753
|
-
E.value === !0 && e.noFocus !== !0 && xn(y.value, w.target) !== !0 &&
|
|
2749
|
+
E.value === !0 && e.noFocus !== !0 && xn(y.value, w.target) !== !0 && F();
|
|
2754
2750
|
}
|
|
2755
2751
|
function x(w) {
|
|
2756
2752
|
l("escapeKey"), N(w);
|
|
@@ -2760,7 +2756,7 @@ const vu = he({
|
|
|
2760
2756
|
targetEl: y.value,
|
|
2761
2757
|
offset: e.offset,
|
|
2762
2758
|
anchorEl: A.value,
|
|
2763
|
-
anchorOrigin:
|
|
2759
|
+
anchorOrigin: V.value,
|
|
2764
2760
|
selfOrigin: D.value,
|
|
2765
2761
|
absoluteOffset: u,
|
|
2766
2762
|
fit: e.fit,
|
|
@@ -2790,10 +2786,10 @@ const vu = he({
|
|
|
2790
2786
|
}, ke(t.default)) : null
|
|
2791
2787
|
);
|
|
2792
2788
|
}
|
|
2793
|
-
return me(S), Object.assign(b, { focus:
|
|
2789
|
+
return me(S), Object.assign(b, { focus: F, updatePosition: $ }), L;
|
|
2794
2790
|
}
|
|
2795
2791
|
});
|
|
2796
|
-
function
|
|
2792
|
+
function fu(e, t, l) {
|
|
2797
2793
|
function n() {
|
|
2798
2794
|
}
|
|
2799
2795
|
return me(() => {
|
|
@@ -2805,16 +2801,16 @@ function mu(e, t, l) {
|
|
|
2805
2801
|
};
|
|
2806
2802
|
}
|
|
2807
2803
|
let it = 0, Zt, Jt, rt, el = !1, tn, ln, nn, Me = null;
|
|
2808
|
-
function
|
|
2809
|
-
|
|
2804
|
+
function vu(e) {
|
|
2805
|
+
mu(e) && le(e);
|
|
2810
2806
|
}
|
|
2811
|
-
function
|
|
2807
|
+
function mu(e) {
|
|
2812
2808
|
if (e.target === document.body || e.target.classList.contains("q-layout__backdrop"))
|
|
2813
2809
|
return !0;
|
|
2814
2810
|
const t = Do(e), l = e.shiftKey && !e.deltaX, n = !l && Math.abs(e.deltaX) <= Math.abs(e.deltaY), o = l || n ? e.deltaY : e.deltaX;
|
|
2815
2811
|
for (let u = 0; u < t.length; u++) {
|
|
2816
2812
|
const a = t[u];
|
|
2817
|
-
if (
|
|
2813
|
+
if (lu(a, n))
|
|
2818
2814
|
return n ? o < 0 && a.scrollTop === 0 ? !0 : o > 0 && a.scrollTop + a.clientHeight === a.scrollHeight : o < 0 && a.scrollLeft === 0 ? !0 : o > 0 && a.scrollLeft + a.clientWidth === a.scrollWidth;
|
|
2819
2815
|
}
|
|
2820
2816
|
return !0;
|
|
@@ -2833,11 +2829,11 @@ function un(e) {
|
|
|
2833
2829
|
const t = document.body, l = window.visualViewport !== void 0;
|
|
2834
2830
|
if (e === "add") {
|
|
2835
2831
|
const { overflowY: n, overflowX: o } = window.getComputedStyle(t);
|
|
2836
|
-
Zt =
|
|
2832
|
+
Zt = eu(window), Jt = Ji(window), tn = t.style.left, ln = t.style.top, nn = window.location.href, t.style.left = `-${Zt}px`, t.style.top = `-${Jt}px`, o !== "hidden" && (o === "scroll" || t.scrollWidth > window.innerWidth) && t.classList.add("q-body--force-scrollbar-x"), n !== "hidden" && (n === "scroll" || t.scrollHeight > window.innerHeight) && t.classList.add("q-body--force-scrollbar-y"), t.classList.add("q-body--prevent-scroll"), document.qScrollPrevented = !0, ve.is.ios === !0 && (l === !0 ? (window.scrollTo(0, 0), window.visualViewport.addEventListener("resize", Et, re.passiveCapture), window.visualViewport.addEventListener("scroll", Et, re.passiveCapture), window.scrollTo(0, 0)) : window.addEventListener("scroll", on, re.passiveCapture));
|
|
2837
2833
|
}
|
|
2838
|
-
ve.is.desktop === !0 && ve.is.mac === !0 && window[`${e}EventListener`]("wheel",
|
|
2834
|
+
ve.is.desktop === !0 && ve.is.mac === !0 && window[`${e}EventListener`]("wheel", vu, re.notPassive), e === "remove" && (ve.is.ios === !0 && (l === !0 ? (window.visualViewport.removeEventListener("resize", Et, re.passiveCapture), window.visualViewport.removeEventListener("scroll", Et, re.passiveCapture)) : window.removeEventListener("scroll", on, re.passiveCapture)), t.classList.remove("q-body--prevent-scroll"), t.classList.remove("q-body--force-scrollbar-x"), t.classList.remove("q-body--force-scrollbar-y"), document.qScrollPrevented = !1, t.style.left = tn, t.style.top = ln, window.location.href === nn && window.scrollTo(Zt, Jt), rt = void 0);
|
|
2839
2835
|
}
|
|
2840
|
-
function
|
|
2836
|
+
function hu(e) {
|
|
2841
2837
|
let t = "add";
|
|
2842
2838
|
if (e === !0) {
|
|
2843
2839
|
if (it++, Me !== null) {
|
|
@@ -2858,16 +2854,16 @@ function pu(e) {
|
|
|
2858
2854
|
}
|
|
2859
2855
|
un(t);
|
|
2860
2856
|
}
|
|
2861
|
-
function
|
|
2857
|
+
function gu() {
|
|
2862
2858
|
let e;
|
|
2863
2859
|
return {
|
|
2864
2860
|
preventBodyScroll(t) {
|
|
2865
|
-
t !== e && (e !== void 0 || t === !0) && (e = t,
|
|
2861
|
+
t !== e && (e !== void 0 || t === !0) && (e = t, hu(t));
|
|
2866
2862
|
}
|
|
2867
2863
|
};
|
|
2868
2864
|
}
|
|
2869
|
-
let
|
|
2870
|
-
const
|
|
2865
|
+
let Vt = 0;
|
|
2866
|
+
const pu = {
|
|
2871
2867
|
standard: "fixed-full flex-center",
|
|
2872
2868
|
top: "fixed-top justify-center",
|
|
2873
2869
|
bottom: "fixed-bottom justify-center",
|
|
@@ -2879,7 +2875,7 @@ const yu = {
|
|
|
2879
2875
|
bottom: ["slide-up", "slide-down"],
|
|
2880
2876
|
right: ["slide-left", "slide-right"],
|
|
2881
2877
|
left: ["slide-right", "slide-left"]
|
|
2882
|
-
},
|
|
2878
|
+
}, bu = he({
|
|
2883
2879
|
name: "QDialog",
|
|
2884
2880
|
inheritAttrs: !1,
|
|
2885
2881
|
props: {
|
|
@@ -2921,11 +2917,11 @@ const yu = {
|
|
|
2921
2917
|
let h = null, b = null, s, y;
|
|
2922
2918
|
const v = d(
|
|
2923
2919
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
2924
|
-
), { preventBodyScroll: c } =
|
|
2920
|
+
), { preventBodyScroll: c } = gu(), { registerTimeout: m } = Xn(), { registerTick: C, removeTick: p } = Yn(), { transitionProps: O, transitionStyle: T } = Un(
|
|
2925
2921
|
e,
|
|
2926
2922
|
() => an[e.position][0],
|
|
2927
2923
|
() => an[e.position][1]
|
|
2928
|
-
), k = d(() => T.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: M, hidePortal: R, portalIsAccessible:
|
|
2924
|
+
), k = d(() => T.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: M, hidePortal: R, portalIsAccessible: B, renderPortal: A } = Kn(
|
|
2929
2925
|
o,
|
|
2930
2926
|
u,
|
|
2931
2927
|
G,
|
|
@@ -2936,16 +2932,16 @@ const yu = {
|
|
|
2936
2932
|
handleShow: D,
|
|
2937
2933
|
handleHide: X,
|
|
2938
2934
|
processOnMount: !0
|
|
2939
|
-
}), { addToHistory: N, removeFromHistory: J } =
|
|
2940
|
-
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${
|
|
2941
|
-
), L = d(() => a.value === !0 && e.seamless !== !0), K = d(() => e.autoClose === !0 ? { onClick: S } : {}),
|
|
2935
|
+
}), { addToHistory: N, removeFromHistory: J } = fu(a, z), U = d(
|
|
2936
|
+
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${pu[e.position]}` + (r.value === !0 ? " q-dialog__inner--animating" : "") + (e.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (e.square === !0 ? " q-dialog__inner--square" : "")
|
|
2937
|
+
), L = d(() => a.value === !0 && e.seamless !== !0), K = d(() => e.autoClose === !0 ? { onClick: S } : {}), V = d(() => [
|
|
2942
2938
|
`q-dialog fullscreen no-pointer-events q-dialog--${L.value === !0 ? "modal" : "seamless"}`,
|
|
2943
2939
|
n.class
|
|
2944
2940
|
]);
|
|
2945
2941
|
Z(() => e.maximized, (x) => {
|
|
2946
2942
|
a.value === !0 && f(x);
|
|
2947
2943
|
}), Z(L, (x) => {
|
|
2948
|
-
c(x), x === !0 ? (vl(j), Zn(
|
|
2944
|
+
c(x), x === !0 ? (vl(j), Zn(F)) : (Rt(j), Lt(F));
|
|
2949
2945
|
});
|
|
2950
2946
|
function D(x) {
|
|
2951
2947
|
N(), b = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, f(e.maximized), M(), r.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), C(ae)) : p(), m(() => {
|
|
@@ -2989,23 +2985,23 @@ const yu = {
|
|
|
2989
2985
|
h = null, u.value !== null && ($.classList.remove("q-animate--scale"), ae());
|
|
2990
2986
|
}, 170));
|
|
2991
2987
|
}
|
|
2992
|
-
function
|
|
2988
|
+
function F() {
|
|
2993
2989
|
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && E() : (l("escapeKey"), z()));
|
|
2994
2990
|
}
|
|
2995
2991
|
function se(x) {
|
|
2996
|
-
h !== null && (clearTimeout(h), h = null), (x === !0 || a.value === !0) && (f(!1), e.seamless !== !0 && (c(!1), Rt(j), Lt(
|
|
2992
|
+
h !== null && (clearTimeout(h), h = null), (x === !0 || a.value === !0) && (f(!1), e.seamless !== !0 && (c(!1), Rt(j), Lt(F))), x !== !0 && (b = null);
|
|
2997
2993
|
}
|
|
2998
2994
|
function f(x) {
|
|
2999
|
-
x === !0 ? s !== !0 && (
|
|
2995
|
+
x === !0 ? s !== !0 && (Vt < 1 && document.body.classList.add("q-body--dialog"), Vt++, s = !0) : s === !0 && (Vt < 2 && document.body.classList.remove("q-body--dialog"), Vt--, s = !1);
|
|
3000
2996
|
}
|
|
3001
2997
|
function S(x) {
|
|
3002
2998
|
y !== !0 && (z(x), l("click", x));
|
|
3003
2999
|
}
|
|
3004
|
-
function
|
|
3000
|
+
function I(x) {
|
|
3005
3001
|
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? z(x) : e.noShake !== !0 && E();
|
|
3006
3002
|
}
|
|
3007
3003
|
function j(x) {
|
|
3008
|
-
e.allowFocusOutside !== !0 &&
|
|
3004
|
+
e.allowFocusOutside !== !0 && B.value === !0 && xn(u.value, x.target) !== !0 && ae('[tabindex]:not([tabindex="-1"])');
|
|
3009
3005
|
}
|
|
3010
3006
|
Object.assign(o.proxy, {
|
|
3011
3007
|
// expose public methods
|
|
@@ -3021,7 +3017,7 @@ const yu = {
|
|
|
3021
3017
|
role: "dialog",
|
|
3022
3018
|
"aria-modal": L.value === !0 ? "true" : "false",
|
|
3023
3019
|
...n,
|
|
3024
|
-
class:
|
|
3020
|
+
class: V.value
|
|
3025
3021
|
}, [
|
|
3026
3022
|
g(dt, {
|
|
3027
3023
|
name: "q-transition--fade",
|
|
@@ -3031,7 +3027,7 @@ const yu = {
|
|
|
3031
3027
|
style: k.value,
|
|
3032
3028
|
"aria-hidden": "true",
|
|
3033
3029
|
tabindex: -1,
|
|
3034
|
-
onClick:
|
|
3030
|
+
onClick: I
|
|
3035
3031
|
}) : null),
|
|
3036
3032
|
g(
|
|
3037
3033
|
dt,
|
|
@@ -3063,14 +3059,14 @@ let Ot = !1;
|
|
|
3063
3059
|
height: "1px"
|
|
3064
3060
|
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, Ot = e.scrollLeft >= 0, e.remove();
|
|
3065
3061
|
}
|
|
3066
|
-
const pe = 1e3,
|
|
3062
|
+
const pe = 1e3, yu = [
|
|
3067
3063
|
"start",
|
|
3068
3064
|
"center",
|
|
3069
3065
|
"end",
|
|
3070
3066
|
"start-force",
|
|
3071
3067
|
"center-force",
|
|
3072
3068
|
"end-force"
|
|
3073
|
-
], eo = Array.prototype.filter,
|
|
3069
|
+
], eo = Array.prototype.filter, wu = window.getComputedStyle(document.body).overflowAnchor === void 0 ? Ho : function(e, t) {
|
|
3074
3070
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
3075
3071
|
if (e === null)
|
|
3076
3072
|
return;
|
|
@@ -3116,7 +3112,7 @@ function ut(e, t, l, n) {
|
|
|
3116
3112
|
let r = e.slice(u, a).reduce(Je, 0);
|
|
3117
3113
|
return l % pe !== 0 && (r -= t.slice(u * pe, l).reduce(Je, 0)), n % pe !== 0 && n !== o && (r -= t.slice(n, a * pe).reduce(Je, 0)), r;
|
|
3118
3114
|
}
|
|
3119
|
-
const
|
|
3115
|
+
const Su = {
|
|
3120
3116
|
virtualScrollSliceSize: {
|
|
3121
3117
|
type: [Number, String],
|
|
3122
3118
|
default: 10
|
|
@@ -3145,9 +3141,9 @@ const xu = {
|
|
|
3145
3141
|
}, sn = {
|
|
3146
3142
|
virtualScrollHorizontal: Boolean,
|
|
3147
3143
|
onVirtualScroll: Function,
|
|
3148
|
-
...
|
|
3144
|
+
...Su
|
|
3149
3145
|
};
|
|
3150
|
-
function
|
|
3146
|
+
function ku({
|
|
3151
3147
|
virtualScrollLength: e,
|
|
3152
3148
|
getVirtualScrollTarget: t,
|
|
3153
3149
|
getVirtualScrollEl: l,
|
|
@@ -3158,12 +3154,12 @@ function Cu({
|
|
|
3158
3154
|
let b, s, y, v = [], c;
|
|
3159
3155
|
const m = P(0), C = P(0), p = P({}), O = P(null), T = P(null), k = P(null), M = P({ from: 0, to: 0 }), R = d(() => u.tableColspan !== void 0 ? u.tableColspan : 100);
|
|
3160
3156
|
n === void 0 && (n = d(() => u.virtualScrollItemSize));
|
|
3161
|
-
const
|
|
3162
|
-
() =>
|
|
3157
|
+
const B = d(() => n.value + ";" + u.virtualScrollHorizontal), A = d(
|
|
3158
|
+
() => B.value + ";" + u.virtualScrollSliceRatioBefore + ";" + u.virtualScrollSliceRatioAfter
|
|
3163
3159
|
);
|
|
3164
3160
|
Z(A, () => {
|
|
3165
3161
|
X();
|
|
3166
|
-
}), Z(
|
|
3162
|
+
}), Z(B, z);
|
|
3167
3163
|
function z() {
|
|
3168
3164
|
D(s, !0);
|
|
3169
3165
|
}
|
|
@@ -3171,11 +3167,11 @@ function Cu({
|
|
|
3171
3167
|
D(f === void 0 ? s : f);
|
|
3172
3168
|
}
|
|
3173
3169
|
function J(f, S) {
|
|
3174
|
-
const
|
|
3175
|
-
if (
|
|
3170
|
+
const I = t();
|
|
3171
|
+
if (I == null || I.nodeType === 8)
|
|
3176
3172
|
return;
|
|
3177
3173
|
const j = tl(
|
|
3178
|
-
|
|
3174
|
+
I,
|
|
3179
3175
|
l(),
|
|
3180
3176
|
O.value,
|
|
3181
3177
|
T.value,
|
|
@@ -3185,11 +3181,11 @@ function Cu({
|
|
|
3185
3181
|
u.virtualScrollStickySizeEnd
|
|
3186
3182
|
);
|
|
3187
3183
|
y !== j.scrollViewSize && X(j.scrollViewSize), L(
|
|
3188
|
-
|
|
3184
|
+
I,
|
|
3189
3185
|
j,
|
|
3190
3186
|
Math.min(e.value - 1, Math.max(0, parseInt(f, 10) || 0)),
|
|
3191
3187
|
0,
|
|
3192
|
-
|
|
3188
|
+
yu.indexOf(S) !== -1 ? S : s !== -1 && f > s ? "end" : "start"
|
|
3193
3189
|
);
|
|
3194
3190
|
}
|
|
3195
3191
|
function U() {
|
|
@@ -3205,7 +3201,7 @@ function Cu({
|
|
|
3205
3201
|
h.lang.rtl,
|
|
3206
3202
|
u.virtualScrollStickySizeStart,
|
|
3207
3203
|
u.virtualScrollStickySizeEnd
|
|
3208
|
-
),
|
|
3204
|
+
), I = e.value - 1, j = S.scrollMaxSize - S.offsetStart - S.offsetEnd - C.value;
|
|
3209
3205
|
if (b === S.scrollStart)
|
|
3210
3206
|
return;
|
|
3211
3207
|
if (S.scrollMaxSize <= 0) {
|
|
@@ -3213,12 +3209,12 @@ function Cu({
|
|
|
3213
3209
|
return;
|
|
3214
3210
|
}
|
|
3215
3211
|
y !== S.scrollViewSize && X(S.scrollViewSize), K(M.value.from);
|
|
3216
|
-
const G = Math.floor(S.scrollMaxSize - Math.max(S.scrollViewSize, S.offsetEnd) - Math.min(c[
|
|
3212
|
+
const G = Math.floor(S.scrollMaxSize - Math.max(S.scrollViewSize, S.offsetEnd) - Math.min(c[I], S.scrollViewSize / 2));
|
|
3217
3213
|
if (G > 0 && Math.ceil(S.scrollStart) >= G) {
|
|
3218
3214
|
L(
|
|
3219
3215
|
f,
|
|
3220
3216
|
S,
|
|
3221
|
-
|
|
3217
|
+
I,
|
|
3222
3218
|
S.scrollMaxSize - S.offsetEnd - v.reduce(Je, 0)
|
|
3223
3219
|
);
|
|
3224
3220
|
return;
|
|
@@ -3227,9 +3223,9 @@ function Cu({
|
|
|
3227
3223
|
if ($ <= j && $ + S.scrollViewSize >= m.value)
|
|
3228
3224
|
$ -= m.value, x = M.value.from, W = $;
|
|
3229
3225
|
else
|
|
3230
|
-
for (let w = 0; $ >= v[w] && x <
|
|
3226
|
+
for (let w = 0; $ >= v[w] && x < I; w++)
|
|
3231
3227
|
$ -= v[w], x += pe;
|
|
3232
|
-
for (; $ > 0 && x <
|
|
3228
|
+
for (; $ > 0 && x < I; )
|
|
3233
3229
|
$ -= c[x], $ > -S.scrollViewSize ? (x++, W = $) : W = c[x] + $;
|
|
3234
3230
|
L(
|
|
3235
3231
|
f,
|
|
@@ -3238,20 +3234,20 @@ function Cu({
|
|
|
3238
3234
|
W
|
|
3239
3235
|
);
|
|
3240
3236
|
}
|
|
3241
|
-
function L(f, S,
|
|
3237
|
+
function L(f, S, I, j, G) {
|
|
3242
3238
|
const x = typeof G == "string" && G.indexOf("-force") !== -1, $ = x === !0 ? G.replace("-force", "") : G, W = $ !== void 0 ? $ : "start";
|
|
3243
|
-
let w = Math.max(0,
|
|
3239
|
+
let w = Math.max(0, I - p.value[W]), ee = w + p.value.total;
|
|
3244
3240
|
ee > e.value && (ee = e.value, w = Math.max(0, ee - p.value.total)), b = S.scrollStart;
|
|
3245
3241
|
const ye = w !== M.value.from || ee !== M.value.to;
|
|
3246
3242
|
if (ye === !1 && $ === void 0) {
|
|
3247
|
-
E(
|
|
3243
|
+
E(I);
|
|
3248
3244
|
return;
|
|
3249
3245
|
}
|
|
3250
3246
|
const { activeElement: He } = document, we = k.value;
|
|
3251
|
-
ye === !0 && we !== null && we !== He && we.contains(He) === !0 && (we.addEventListener("focusout",
|
|
3252
|
-
we !== null && we.removeEventListener("focusout",
|
|
3253
|
-
})),
|
|
3254
|
-
const bt = $ !== void 0 ? c.slice(w,
|
|
3247
|
+
ye === !0 && we !== null && we !== He && we.contains(He) === !0 && (we.addEventListener("focusout", V), setTimeout(() => {
|
|
3248
|
+
we !== null && we.removeEventListener("focusout", V);
|
|
3249
|
+
})), wu(we, I - w);
|
|
3250
|
+
const bt = $ !== void 0 ? c.slice(w, I).reduce(Je, 0) : 0;
|
|
3255
3251
|
if (ye === !0) {
|
|
3256
3252
|
const Te = ee >= M.value.from && w <= M.value.to ? M.value.to : ee;
|
|
3257
3253
|
M.value = { from: w, to: Te }, m.value = ut(v, c, 0, w), C.value = ut(v, c, ee, e.value), requestAnimationFrame(() => {
|
|
@@ -3262,45 +3258,45 @@ function Cu({
|
|
|
3262
3258
|
if (b !== S.scrollStart)
|
|
3263
3259
|
return;
|
|
3264
3260
|
ye === !0 && K(w);
|
|
3265
|
-
const Te = c.slice(w,
|
|
3261
|
+
const Te = c.slice(w, I).reduce(Je, 0), $e = Te + S.offsetStart + m.value, yt = $e + c[I];
|
|
3266
3262
|
let tt = $e + j;
|
|
3267
3263
|
if ($ !== void 0) {
|
|
3268
|
-
const
|
|
3269
|
-
tt = x !== !0 && lt < $e && yt < lt + S.scrollViewSize ? lt : $ === "end" ? yt - S.scrollViewSize : $e - ($ === "start" ? 0 : Math.round((S.scrollViewSize - c[
|
|
3264
|
+
const It = Te - bt, lt = S.scrollStart + It;
|
|
3265
|
+
tt = x !== !0 && lt < $e && yt < lt + S.scrollViewSize ? lt : $ === "end" ? yt - S.scrollViewSize : $e - ($ === "start" ? 0 : Math.round((S.scrollViewSize - c[I]) / 2));
|
|
3270
3266
|
}
|
|
3271
3267
|
b = tt, rn(
|
|
3272
3268
|
f,
|
|
3273
3269
|
tt,
|
|
3274
3270
|
u.virtualScrollHorizontal,
|
|
3275
3271
|
h.lang.rtl
|
|
3276
|
-
), E(
|
|
3272
|
+
), E(I);
|
|
3277
3273
|
});
|
|
3278
3274
|
}
|
|
3279
3275
|
function K(f) {
|
|
3280
3276
|
const S = k.value;
|
|
3281
3277
|
if (S) {
|
|
3282
|
-
const
|
|
3278
|
+
const I = eo.call(
|
|
3283
3279
|
S.children,
|
|
3284
3280
|
(w) => w.classList && w.classList.contains("q-virtual-scroll--skip") === !1
|
|
3285
|
-
), j =
|
|
3281
|
+
), j = I.length, G = u.virtualScrollHorizontal === !0 ? (w) => w.getBoundingClientRect().width : (w) => w.offsetHeight;
|
|
3286
3282
|
let x = f, $, W;
|
|
3287
3283
|
for (let w = 0; w < j; ) {
|
|
3288
|
-
for ($ = G(
|
|
3289
|
-
$ += G(
|
|
3284
|
+
for ($ = G(I[w]), w++; w < j && I[w].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
3285
|
+
$ += G(I[w]), w++;
|
|
3290
3286
|
W = $ - c[x], W !== 0 && (c[x] += W, v[Math.floor(x / pe)] += W), x++;
|
|
3291
3287
|
}
|
|
3292
3288
|
}
|
|
3293
3289
|
}
|
|
3294
|
-
function
|
|
3290
|
+
function V() {
|
|
3295
3291
|
k.value !== null && k.value !== void 0 && k.value.focus();
|
|
3296
3292
|
}
|
|
3297
3293
|
function D(f, S) {
|
|
3298
|
-
const
|
|
3294
|
+
const I = 1 * n.value;
|
|
3299
3295
|
(S === !0 || Array.isArray(c) === !1) && (c = []);
|
|
3300
3296
|
const j = c.length;
|
|
3301
3297
|
c.length = e.value;
|
|
3302
3298
|
for (let x = e.value - 1; x >= j; x--)
|
|
3303
|
-
c[x] =
|
|
3299
|
+
c[x] = I;
|
|
3304
3300
|
const G = Math.floor((e.value - 1) / pe);
|
|
3305
3301
|
v = [];
|
|
3306
3302
|
for (let x = 0; x <= G; x++) {
|
|
@@ -3312,7 +3308,7 @@ function Cu({
|
|
|
3312
3308
|
}
|
|
3313
3309
|
s = -1, b = void 0, m.value = ut(v, c, 0, M.value.from), C.value = ut(v, c, M.value.to, e.value), f >= 0 ? (K(M.value.from), fe(() => {
|
|
3314
3310
|
J(f);
|
|
3315
|
-
})) :
|
|
3311
|
+
})) : F();
|
|
3316
3312
|
}
|
|
3317
3313
|
function X(f) {
|
|
3318
3314
|
if (f === void 0 && typeof window < "u") {
|
|
@@ -3329,7 +3325,7 @@ function Cu({
|
|
|
3329
3325
|
).scrollViewSize);
|
|
3330
3326
|
}
|
|
3331
3327
|
y = f;
|
|
3332
|
-
const S = parseFloat(u.virtualScrollSliceRatioBefore) || 0,
|
|
3328
|
+
const S = parseFloat(u.virtualScrollSliceRatioBefore) || 0, I = parseFloat(u.virtualScrollSliceRatioAfter) || 0, j = 1 + S + I, G = f === void 0 || f <= 0 ? 1 : Math.ceil(f / n.value), x = Math.max(
|
|
3333
3329
|
1,
|
|
3334
3330
|
G,
|
|
3335
3331
|
Math.ceil((u.virtualScrollSliceSize > 0 ? u.virtualScrollSliceSize : 10) / j)
|
|
@@ -3343,8 +3339,8 @@ function Cu({
|
|
|
3343
3339
|
};
|
|
3344
3340
|
}
|
|
3345
3341
|
function ae(f, S) {
|
|
3346
|
-
const
|
|
3347
|
-
["--q-virtual-scroll-item-" +
|
|
3342
|
+
const I = u.virtualScrollHorizontal === !0 ? "width" : "height", j = {
|
|
3343
|
+
["--q-virtual-scroll-item-" + I]: n.value + "px"
|
|
3348
3344
|
};
|
|
3349
3345
|
return [
|
|
3350
3346
|
f === "tbody" ? g(f, {
|
|
@@ -3354,7 +3350,7 @@ function Cu({
|
|
|
3354
3350
|
}, [
|
|
3355
3351
|
g("tr", [
|
|
3356
3352
|
g("td", {
|
|
3357
|
-
style: { [
|
|
3353
|
+
style: { [I]: `${m.value}px`, ...j },
|
|
3358
3354
|
colspan: R.value
|
|
3359
3355
|
})
|
|
3360
3356
|
])
|
|
@@ -3362,7 +3358,7 @@ function Cu({
|
|
|
3362
3358
|
class: "q-virtual-scroll__padding",
|
|
3363
3359
|
key: "before",
|
|
3364
3360
|
ref: O,
|
|
3365
|
-
style: { [
|
|
3361
|
+
style: { [I]: `${m.value}px`, ...j }
|
|
3366
3362
|
}),
|
|
3367
3363
|
g(f, {
|
|
3368
3364
|
class: "q-virtual-scroll__content",
|
|
@@ -3377,7 +3373,7 @@ function Cu({
|
|
|
3377
3373
|
}, [
|
|
3378
3374
|
g("tr", [
|
|
3379
3375
|
g("td", {
|
|
3380
|
-
style: { [
|
|
3376
|
+
style: { [I]: `${C.value}px`, ...j },
|
|
3381
3377
|
colspan: R.value
|
|
3382
3378
|
})
|
|
3383
3379
|
])
|
|
@@ -3385,7 +3381,7 @@ function Cu({
|
|
|
3385
3381
|
class: "q-virtual-scroll__padding",
|
|
3386
3382
|
key: "after",
|
|
3387
3383
|
ref: T,
|
|
3388
|
-
style: { [
|
|
3384
|
+
style: { [I]: `${C.value}px`, ...j }
|
|
3389
3385
|
})
|
|
3390
3386
|
];
|
|
3391
3387
|
}
|
|
@@ -3399,7 +3395,7 @@ function Cu({
|
|
|
3399
3395
|
}), s = f);
|
|
3400
3396
|
}
|
|
3401
3397
|
X();
|
|
3402
|
-
const
|
|
3398
|
+
const F = zn(
|
|
3403
3399
|
U,
|
|
3404
3400
|
h.platform.is.ios === !0 ? 120 : 35
|
|
3405
3401
|
);
|
|
@@ -3419,12 +3415,12 @@ function Cu({
|
|
|
3419
3415
|
h.lang.rtl
|
|
3420
3416
|
) : J(s);
|
|
3421
3417
|
}), me(() => {
|
|
3422
|
-
|
|
3418
|
+
F.cancel();
|
|
3423
3419
|
}), Object.assign(r, { scrollTo: J, reset: z, refresh: N }), {
|
|
3424
3420
|
virtualScrollSliceRange: M,
|
|
3425
3421
|
virtualScrollSliceSizeComputed: p,
|
|
3426
3422
|
setVirtualScrollSize: X,
|
|
3427
|
-
onVirtualScrollEvt:
|
|
3423
|
+
onVirtualScrollEvt: F,
|
|
3428
3424
|
localResetVirtualScroll: D,
|
|
3429
3425
|
padVirtualScroll: ae,
|
|
3430
3426
|
scrollTo: J,
|
|
@@ -3432,16 +3428,16 @@ function Cu({
|
|
|
3432
3428
|
refresh: N
|
|
3433
3429
|
};
|
|
3434
3430
|
}
|
|
3435
|
-
const
|
|
3436
|
-
function
|
|
3431
|
+
const xu = /[\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]/, Cu = /[\u4e00-\u9fff\u3400-\u4dbf\u{20000}-\u{2a6df}\u{2a700}-\u{2b73f}\u{2b740}-\u{2b81f}\u{2b820}-\u{2ceaf}\uf900-\ufaff\u3300-\u33ff\ufe30-\ufe4f\uf900-\ufaff\u{2f800}-\u{2fa1f}]/u, qu = /[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]/, _u = /[a-z0-9_ -]$/i;
|
|
3432
|
+
function Eu(e) {
|
|
3437
3433
|
return function(l) {
|
|
3438
3434
|
if (l.type === "compositionend" || l.type === "change") {
|
|
3439
3435
|
if (l.target.qComposing !== !0) return;
|
|
3440
3436
|
l.target.qComposing = !1, e(l);
|
|
3441
|
-
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (ve.is.firefox === !0 ?
|
|
3437
|
+
} else l.type === "compositionupdate" && l.target.qComposing !== !0 && typeof l.data == "string" && (ve.is.firefox === !0 ? _u.test(l.data) === !1 : xu.test(l.data) === !0 || Cu.test(l.data) === !0 || qu.test(l.data) === !0) === !0 && (l.target.qComposing = !0);
|
|
3442
3438
|
};
|
|
3443
3439
|
}
|
|
3444
|
-
function
|
|
3440
|
+
function Ve(e, t) {
|
|
3445
3441
|
if (e === t)
|
|
3446
3442
|
return !0;
|
|
3447
3443
|
if (e !== null && t !== null && typeof e == "object" && typeof t == "object") {
|
|
@@ -3452,7 +3448,7 @@ function Be(e, t) {
|
|
|
3452
3448
|
if (l = e.length, l !== t.length)
|
|
3453
3449
|
return !1;
|
|
3454
3450
|
for (n = l; n-- !== 0; )
|
|
3455
|
-
if (
|
|
3451
|
+
if (Ve(e[n], t[n]) !== !0)
|
|
3456
3452
|
return !1;
|
|
3457
3453
|
return !0;
|
|
3458
3454
|
}
|
|
@@ -3466,7 +3462,7 @@ function Be(e, t) {
|
|
|
3466
3462
|
n = u.next();
|
|
3467
3463
|
}
|
|
3468
3464
|
for (u = e.entries(), n = u.next(); n.done !== !0; ) {
|
|
3469
|
-
if (
|
|
3465
|
+
if (Ve(n.value[1], t.get(n.value[0])) !== !0)
|
|
3470
3466
|
return !1;
|
|
3471
3467
|
n = u.next();
|
|
3472
3468
|
}
|
|
@@ -3502,7 +3498,7 @@ function Be(e, t) {
|
|
|
3502
3498
|
return !1;
|
|
3503
3499
|
for (n = l; n-- !== 0; ) {
|
|
3504
3500
|
const u = o[n];
|
|
3505
|
-
if (
|
|
3501
|
+
if (Ve(e[u], t[u]) !== !0)
|
|
3506
3502
|
return !1;
|
|
3507
3503
|
}
|
|
3508
3504
|
return !0;
|
|
@@ -3516,13 +3512,13 @@ function cn(e, t, l) {
|
|
|
3516
3512
|
let o = t + (e - t) % n;
|
|
3517
3513
|
return o < t && (o = n + o), o === 0 ? 0 : o;
|
|
3518
3514
|
}
|
|
3519
|
-
const dn = (e) => ["add", "add-unique", "toggle"].includes(e),
|
|
3515
|
+
const dn = (e) => ["add", "add-unique", "toggle"].includes(e), Vu = ".*+?^${}()|[]\\", Bu = Object.keys(hl);
|
|
3520
3516
|
function ll(e, t) {
|
|
3521
3517
|
if (typeof e == "function") return e;
|
|
3522
3518
|
const l = e !== void 0 ? e : t;
|
|
3523
3519
|
return (n) => n !== null && typeof n == "object" && l in n ? n[l] : n;
|
|
3524
3520
|
}
|
|
3525
|
-
const
|
|
3521
|
+
const Tu = he({
|
|
3526
3522
|
name: "QSelect",
|
|
3527
3523
|
inheritAttrs: !1,
|
|
3528
3524
|
props: {
|
|
@@ -3597,7 +3593,7 @@ const Ru = he({
|
|
|
3597
3593
|
onFilter: Function
|
|
3598
3594
|
},
|
|
3599
3595
|
emits: [
|
|
3600
|
-
...
|
|
3596
|
+
...In,
|
|
3601
3597
|
"add",
|
|
3602
3598
|
"remove",
|
|
3603
3599
|
"inputValue",
|
|
@@ -3611,15 +3607,15 @@ const Ru = he({
|
|
|
3611
3607
|
setup(e, { slots: t, emit: l }) {
|
|
3612
3608
|
const { proxy: n } = ne(), { $q: o } = n, u = P(!1), a = P(!1), r = P(-1), h = P(""), b = P(!1), s = P(!1);
|
|
3613
3609
|
let y = null, v = null, c, m, C, p = null, O, T, k, M;
|
|
3614
|
-
const R = P(null),
|
|
3615
|
-
virtualScrollSliceRange:
|
|
3610
|
+
const R = P(null), B = P(null), A = P(null), z = P(null), N = P(null), J = gi(e), U = Eu(ql), L = d(() => Array.isArray(e.options) ? e.options.length : 0), K = d(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
3611
|
+
virtualScrollSliceRange: V,
|
|
3616
3612
|
virtualScrollSliceSizeComputed: D,
|
|
3617
3613
|
localResetVirtualScroll: X,
|
|
3618
3614
|
padVirtualScroll: ae,
|
|
3619
3615
|
onVirtualScrollEvt: E,
|
|
3620
|
-
scrollTo:
|
|
3616
|
+
scrollTo: F,
|
|
3621
3617
|
setVirtualScrollSize: se
|
|
3622
|
-
} =
|
|
3618
|
+
} = ku({
|
|
3623
3619
|
virtualScrollLength: L,
|
|
3624
3620
|
getVirtualScrollTarget: oo,
|
|
3625
3621
|
getVirtualScrollEl: xl,
|
|
@@ -3631,9 +3627,9 @@ const Ru = he({
|
|
|
3631
3627
|
return e.modelValue === null && i === !0 ? H.filter((Y) => Y !== null) : H;
|
|
3632
3628
|
}
|
|
3633
3629
|
return q;
|
|
3634
|
-
}),
|
|
3630
|
+
}), I = d(() => {
|
|
3635
3631
|
const i = {};
|
|
3636
|
-
return
|
|
3632
|
+
return Bu.forEach((q) => {
|
|
3637
3633
|
const _ = e[q];
|
|
3638
3634
|
_ !== void 0 && (i[q] = _);
|
|
3639
3635
|
}), i;
|
|
@@ -3670,7 +3666,7 @@ const Ru = he({
|
|
|
3670
3666
|
}))), yt = d(() => {
|
|
3671
3667
|
if (L.value === 0)
|
|
3672
3668
|
return [];
|
|
3673
|
-
const { from: i, to: q } =
|
|
3669
|
+
const { from: i, to: q } = V.value;
|
|
3674
3670
|
return e.options.slice(i, q).map((_, H) => {
|
|
3675
3671
|
const Y = De.value(_) === !0, Q = Dt(_) === !0, oe = i + H, te = {
|
|
3676
3672
|
clickable: !0,
|
|
@@ -3703,7 +3699,7 @@ const Ru = he({
|
|
|
3703
3699
|
itemProps: te
|
|
3704
3700
|
};
|
|
3705
3701
|
});
|
|
3706
|
-
}), tt = d(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown),
|
|
3702
|
+
}), tt = d(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : o.iconSet.arrow.dropdown), It = d(
|
|
3707
3703
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
3708
3704
|
), lt = d(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), Se = d(() => ll(e.optionValue, "value")), ce = d(() => ll(e.optionLabel, "label")), De = d(() => ll(e.optionDisable, "disable")), wt = d(() => S.value.map(Se.value)), to = d(() => {
|
|
3709
3705
|
const i = {
|
|
@@ -3768,7 +3764,7 @@ const Ru = he({
|
|
|
3768
3764
|
e.fillInput === !0 ? ce.value(i) : "",
|
|
3769
3765
|
!0,
|
|
3770
3766
|
!0
|
|
3771
|
-
), Le()),
|
|
3767
|
+
), Le()), B.value !== null && B.value.focus(), (S.value.length === 0 || Ve(Se.value(S.value[0]), _) !== !0) && l("update:modelValue", e.emitValue === !0 ? _ : i);
|
|
3772
3768
|
return;
|
|
3773
3769
|
}
|
|
3774
3770
|
if ((m !== !0 || b.value === !0) && f.focus(), bl(), S.value.length === 0) {
|
|
@@ -3776,7 +3772,7 @@ const Ru = he({
|
|
|
3776
3772
|
l("add", { index: 0, value: Q }), l("update:modelValue", e.multiple === !0 ? [Q] : Q);
|
|
3777
3773
|
return;
|
|
3778
3774
|
}
|
|
3779
|
-
const H = e.modelValue.slice(), Y = wt.value.findIndex((Q) =>
|
|
3775
|
+
const H = e.modelValue.slice(), Y = wt.value.findIndex((Q) => Ve(Q, _));
|
|
3780
3776
|
if (Y !== -1)
|
|
3781
3777
|
l("remove", { index: Y, value: H.splice(Y, 1)[0] });
|
|
3782
3778
|
else {
|
|
@@ -3802,25 +3798,25 @@ const Ru = he({
|
|
|
3802
3798
|
L.value - 1
|
|
3803
3799
|
);
|
|
3804
3800
|
while (_ !== -1 && _ !== r.value && De.value(e.options[_]) === !0);
|
|
3805
|
-
r.value !== _ && (je(_),
|
|
3801
|
+
r.value !== _ && (je(_), F(_), q !== !0 && e.useInput === !0 && e.fillInput === !0 && kt(
|
|
3806
3802
|
_ >= 0 ? ce.value(e.options[_]) : O,
|
|
3807
3803
|
!0
|
|
3808
3804
|
));
|
|
3809
3805
|
}
|
|
3810
3806
|
}
|
|
3811
3807
|
function no(i, q) {
|
|
3812
|
-
const _ = (H) =>
|
|
3808
|
+
const _ = (H) => Ve(Se.value(H), i);
|
|
3813
3809
|
return e.options.find(_) || q.find(_) || i;
|
|
3814
3810
|
}
|
|
3815
3811
|
function Dt(i) {
|
|
3816
3812
|
const q = Se.value(i);
|
|
3817
|
-
return wt.value.find((_) =>
|
|
3813
|
+
return wt.value.find((_) => Ve(_, q)) !== void 0;
|
|
3818
3814
|
}
|
|
3819
3815
|
function bl(i) {
|
|
3820
|
-
e.useInput === !0 &&
|
|
3816
|
+
e.useInput === !0 && B.value !== null && (i === void 0 || B.value === i.target && i.target.value === w.value) && B.value.select();
|
|
3821
3817
|
}
|
|
3822
3818
|
function yl(i) {
|
|
3823
|
-
|
|
3819
|
+
Ie(i, 27) === !0 && u.value === !0 && (Ee(i), Le(), Qe()), l("keyup", i);
|
|
3824
3820
|
}
|
|
3825
3821
|
function wl(i) {
|
|
3826
3822
|
const { value: q } = i.target;
|
|
@@ -3875,14 +3871,14 @@ const Ru = he({
|
|
|
3875
3871
|
u.value !== !0 && Ke(i);
|
|
3876
3872
|
const Y = i.key.toLocaleLowerCase(), Q = k.length === 1 && k[0] === Y;
|
|
3877
3873
|
M = Date.now() + 1500, Q === !1 && (le(i), k += Y);
|
|
3878
|
-
const oe = new RegExp("^" + k.split("").map((Nt) =>
|
|
3874
|
+
const oe = new RegExp("^" + k.split("").map((Nt) => Vu.indexOf(Nt) !== -1 ? "\\" + Nt : Nt).join(".*"), "i");
|
|
3879
3875
|
let te = r.value;
|
|
3880
3876
|
if (Q === !0 || te < 0 || oe.test(ce.value(e.options[te])) !== !0)
|
|
3881
3877
|
do
|
|
3882
3878
|
te = cn(te + 1, -1, H - 1);
|
|
3883
3879
|
while (te !== r.value && (De.value(e.options[te]) === !0 || oe.test(ce.value(e.options[te])) !== !0));
|
|
3884
3880
|
r.value !== te && fe(() => {
|
|
3885
|
-
je(te),
|
|
3881
|
+
je(te), F(te), te >= 0 && e.useInput === !0 && e.fillInput === !0 && kt(ce.value(e.options[te]), !0);
|
|
3886
3882
|
});
|
|
3887
3883
|
return;
|
|
3888
3884
|
}
|
|
@@ -3900,7 +3896,7 @@ const Ru = he({
|
|
|
3900
3896
|
oe = e.newValueMode;
|
|
3901
3897
|
if (nt("", e.multiple !== !0, !0), Q == null)
|
|
3902
3898
|
return;
|
|
3903
|
-
(oe === "toggle" ? Re : pl)(Q, oe === "add-unique"), e.multiple !== !0 && (
|
|
3899
|
+
(oe === "toggle" ? Re : pl)(Q, oe === "add-unique"), e.multiple !== !0 && (B.value !== null && B.value.focus(), Le());
|
|
3904
3900
|
};
|
|
3905
3901
|
if (e.onNewValue !== void 0 ? l("newValue", h.value, Y) : Y(h.value), e.multiple !== !0)
|
|
3906
3902
|
return;
|
|
@@ -3915,7 +3911,7 @@ const Ru = he({
|
|
|
3915
3911
|
return xl();
|
|
3916
3912
|
}
|
|
3917
3913
|
function io() {
|
|
3918
|
-
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? $e.value.map((i) => t["selected-item"](i)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? $e.value.map((i, q) => g(
|
|
3914
|
+
return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? $e.value.map((i) => t["selected-item"](i)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? $e.value.map((i, q) => g(Pi, {
|
|
3919
3915
|
key: "option-" + q,
|
|
3920
3916
|
removable: f.editable.value === !0 && De.value(i.opt) !== !0,
|
|
3921
3917
|
dense: !0,
|
|
@@ -3953,7 +3949,7 @@ const Ru = he({
|
|
|
3953
3949
|
}
|
|
3954
3950
|
function uo(i, q) {
|
|
3955
3951
|
const _ = q === !0 ? { ...bt.value, ...f.splitAttrs.attributes.value } : void 0, H = {
|
|
3956
|
-
ref: q === !0 ?
|
|
3952
|
+
ref: q === !0 ? B : void 0,
|
|
3957
3953
|
key: "i_t",
|
|
3958
3954
|
class: x.value,
|
|
3959
3955
|
style: e.inputStyle,
|
|
@@ -4009,7 +4005,7 @@ const Ru = he({
|
|
|
4009
4005
|
);
|
|
4010
4006
|
}
|
|
4011
4007
|
function ao() {
|
|
4012
|
-
return g(
|
|
4008
|
+
return g(du, {
|
|
4013
4009
|
ref: A,
|
|
4014
4010
|
class: $.value,
|
|
4015
4011
|
style: e.popupContentStyle,
|
|
@@ -4024,7 +4020,7 @@ const Ru = he({
|
|
|
4024
4020
|
noRefocus: !0,
|
|
4025
4021
|
noFocus: !0,
|
|
4026
4022
|
noRouteDismiss: e.popupNoRouteDismiss,
|
|
4027
|
-
square:
|
|
4023
|
+
square: It.value,
|
|
4028
4024
|
transitionShow: e.transitionShow,
|
|
4029
4025
|
transitionHide: e.transitionHide,
|
|
4030
4026
|
transitionDuration: e.transitionDuration,
|
|
@@ -4037,13 +4033,13 @@ const Ru = he({
|
|
|
4037
4033
|
}, Cl);
|
|
4038
4034
|
}
|
|
4039
4035
|
function ro(i) {
|
|
4040
|
-
|
|
4036
|
+
Vl(i), We();
|
|
4041
4037
|
}
|
|
4042
4038
|
function so() {
|
|
4043
4039
|
se();
|
|
4044
4040
|
}
|
|
4045
4041
|
function co(i) {
|
|
4046
|
-
Ee(i),
|
|
4042
|
+
Ee(i), B.value !== null && B.value.focus(), b.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4047
4043
|
}
|
|
4048
4044
|
function fo(i) {
|
|
4049
4045
|
Ee(i), fe(() => {
|
|
@@ -4052,9 +4048,9 @@ const Ru = he({
|
|
|
4052
4048
|
}
|
|
4053
4049
|
function vo() {
|
|
4054
4050
|
const i = [
|
|
4055
|
-
g(
|
|
4051
|
+
g(Ai, {
|
|
4056
4052
|
class: `col-auto ${f.fieldClass.value}`,
|
|
4057
|
-
...
|
|
4053
|
+
...I.value,
|
|
4058
4054
|
for: f.targetUid.value,
|
|
4059
4055
|
dark: j.value,
|
|
4060
4056
|
square: !0,
|
|
@@ -4081,7 +4077,7 @@ const Ru = he({
|
|
|
4081
4077
|
onClick: be,
|
|
4082
4078
|
onScrollPassive: E
|
|
4083
4079
|
}, Cl())
|
|
4084
|
-
), g(
|
|
4080
|
+
), g(bu, {
|
|
4085
4081
|
ref: z,
|
|
4086
4082
|
modelValue: a.value,
|
|
4087
4083
|
position: e.useInput === !0 ? "top" : void 0,
|
|
@@ -4098,7 +4094,7 @@ const Ru = he({
|
|
|
4098
4094
|
}, i));
|
|
4099
4095
|
}
|
|
4100
4096
|
function mo(i) {
|
|
4101
|
-
|
|
4097
|
+
Vl(i), z.value !== null && z.value.__updateRefocusTarget(
|
|
4102
4098
|
f.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4103
4099
|
), f.focused.value = !1;
|
|
4104
4100
|
}
|
|
@@ -4107,7 +4103,7 @@ const Ru = he({
|
|
|
4107
4103
|
}
|
|
4108
4104
|
function go() {
|
|
4109
4105
|
const i = document.activeElement;
|
|
4110
|
-
(i === null || i.id !== f.targetUid.value) &&
|
|
4106
|
+
(i === null || i.id !== f.targetUid.value) && B.value !== null && B.value !== i && B.value.focus(), se();
|
|
4111
4107
|
}
|
|
4112
4108
|
function We() {
|
|
4113
4109
|
a.value !== !0 && (r.value = -1, u.value === !0 && (u.value = !1), f.focused.value === !1 && (p !== null && (clearTimeout(p), p = null), f.innerLoading.value === !0 && (l("filterAbort"), f.innerLoading.value = !1, s.value = !1)));
|
|
@@ -4132,7 +4128,7 @@ const Ru = he({
|
|
|
4132
4128
|
if (i === !0) {
|
|
4133
4129
|
if (S.value.length !== 0) {
|
|
4134
4130
|
const _ = Se.value(S.value[0]);
|
|
4135
|
-
q = e.options.findIndex((H) =>
|
|
4131
|
+
q = e.options.findIndex((H) => Ve(Se.value(H), _));
|
|
4136
4132
|
}
|
|
4137
4133
|
X(q);
|
|
4138
4134
|
}
|
|
@@ -4149,13 +4145,13 @@ const Ru = he({
|
|
|
4149
4145
|
function El(i) {
|
|
4150
4146
|
i !== void 0 && Ee(i), l("popupShow", i), f.hasPopupOpen = !0, f.onControlFocusin(i);
|
|
4151
4147
|
}
|
|
4152
|
-
function
|
|
4148
|
+
function Vl(i) {
|
|
4153
4149
|
i !== void 0 && Ee(i), l("popupHide", i), f.hasPopupOpen = !1, f.onControlFocusout(i);
|
|
4154
4150
|
}
|
|
4155
|
-
function
|
|
4151
|
+
function Bl() {
|
|
4156
4152
|
m = o.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || W.value === !1 : !0), T = o.platform.is.ios === !0 && m === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
4157
4153
|
}
|
|
4158
|
-
return gn(
|
|
4154
|
+
return gn(Bl), Co(_l), Bl(), me(() => {
|
|
4159
4155
|
y !== null && clearTimeout(y), v !== null && clearTimeout(v);
|
|
4160
4156
|
}), Object.assign(n, {
|
|
4161
4157
|
showPopup: Ke,
|
|
@@ -4180,7 +4176,7 @@ const Ru = he({
|
|
|
4180
4176
|
() => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
|
|
4181
4177
|
),
|
|
4182
4178
|
inputRef: R,
|
|
4183
|
-
targetRef:
|
|
4179
|
+
targetRef: B,
|
|
4184
4180
|
hasValue: G,
|
|
4185
4181
|
showPopup: Ke,
|
|
4186
4182
|
floatingLabel: d(
|
|
@@ -4202,7 +4198,7 @@ const Ru = he({
|
|
|
4202
4198
|
},
|
|
4203
4199
|
onClick(i) {
|
|
4204
4200
|
if (be(i), m !== !0 && u.value === !0) {
|
|
4205
|
-
We(),
|
|
4201
|
+
We(), B.value !== null && B.value.focus();
|
|
4206
4202
|
return;
|
|
4207
4203
|
}
|
|
4208
4204
|
Ke(i);
|
|
@@ -4216,7 +4212,7 @@ const Ru = he({
|
|
|
4216
4212
|
const Y = _ === !0 ? bt.value : void 0;
|
|
4217
4213
|
q.push(
|
|
4218
4214
|
g("input", {
|
|
4219
|
-
ref: _ === !0 ?
|
|
4215
|
+
ref: _ === !0 ? B : void 0,
|
|
4220
4216
|
key: "d_t",
|
|
4221
4217
|
class: "q-select__focus-target",
|
|
4222
4218
|
id: _ === !0 ? f.targetUid.value : void 0,
|
|
@@ -4262,10 +4258,8 @@ const Ru = he({
|
|
|
4262
4258
|
] : null
|
|
4263
4259
|
}), Dn(f);
|
|
4264
4260
|
}
|
|
4265
|
-
}),
|
|
4266
|
-
|
|
4267
|
-
}, Au = /* @__PURE__ */ mt({
|
|
4268
|
-
...Mu,
|
|
4261
|
+
}), $u = { class: "app-select__amount" }, Ru = /* @__PURE__ */ mt({
|
|
4262
|
+
__name: "index",
|
|
4269
4263
|
props: {
|
|
4270
4264
|
modelValue: {},
|
|
4271
4265
|
size: { default: qe.MD },
|
|
@@ -4302,9 +4296,9 @@ const Ru = he({
|
|
|
4302
4296
|
(c) => c.label.toLowerCase().includes(u.value.toLowerCase())
|
|
4303
4297
|
) : l.options), s = d(() => {
|
|
4304
4298
|
if (l.rules)
|
|
4305
|
-
return l.required ? [...l.rules,
|
|
4299
|
+
return l.required ? [...l.rules, Il] : l.rules;
|
|
4306
4300
|
if (l.required)
|
|
4307
|
-
return [
|
|
4301
|
+
return [Il];
|
|
4308
4302
|
}), y = () => {
|
|
4309
4303
|
a.value = void 0;
|
|
4310
4304
|
}, v = (c, m) => {
|
|
@@ -4313,13 +4307,13 @@ const Ru = he({
|
|
|
4313
4307
|
});
|
|
4314
4308
|
};
|
|
4315
4309
|
return (c, m) => (ue(), de("div", {
|
|
4316
|
-
class:
|
|
4310
|
+
class: Be(["app-select", [{ "app-select_opened": o.value }, `app-select_${c.size}`]])
|
|
4317
4311
|
}, [
|
|
4318
4312
|
c.label ? (ue(), de("label", {
|
|
4319
4313
|
key: 0,
|
|
4320
|
-
class:
|
|
4314
|
+
class: Be(["app-select__label", { "app-select__label_bold": c.required }])
|
|
4321
4315
|
}, Ze(c.required ? `${c.label} *` : c.label), 3)) : Ce("", !0),
|
|
4322
|
-
ot(st(
|
|
4316
|
+
ot(st(Tu), {
|
|
4323
4317
|
standout: "",
|
|
4324
4318
|
"hide-bottom-space": "",
|
|
4325
4319
|
"hide-dropdown-icon": "",
|
|
@@ -4356,7 +4350,7 @@ const Ru = he({
|
|
|
4356
4350
|
Array.isArray(a.value) ? (ue(), de(at, { key: 0 }, [
|
|
4357
4351
|
!c.filtering || a.value.length ? (ue(), de("span", {
|
|
4358
4352
|
key: 0,
|
|
4359
|
-
class:
|
|
4353
|
+
class: Be([
|
|
4360
4354
|
"app-select__selected",
|
|
4361
4355
|
{
|
|
4362
4356
|
"app-select__placeholder": !((C = a.value) != null && C.length) && c.placeholder
|
|
@@ -4364,16 +4358,16 @@ const Ru = he({
|
|
|
4364
4358
|
])
|
|
4365
4359
|
}, [
|
|
4366
4360
|
(p = a.value) != null && p.length ? (ue(), de(at, { key: 0 }, [
|
|
4367
|
-
m[4] || (m[4] =
|
|
4368
|
-
Wt("span",
|
|
4361
|
+
m[4] || (m[4] = Bt(" Вибрано ")),
|
|
4362
|
+
Wt("span", $u, Ze(a.value.length), 1)
|
|
4369
4363
|
], 64)) : (ue(), de(at, { key: 1 }, [
|
|
4370
|
-
|
|
4364
|
+
Bt(Ze(l.placeholder), 1)
|
|
4371
4365
|
], 64))
|
|
4372
4366
|
], 2)) : Ce("", !0)
|
|
4373
4367
|
], 64)) : (ue(), de(at, { key: 1 }, [
|
|
4374
4368
|
!c.filtering || a.value ? (ue(), de("span", {
|
|
4375
4369
|
key: 0,
|
|
4376
|
-
class:
|
|
4370
|
+
class: Be([
|
|
4377
4371
|
"app-select__selected",
|
|
4378
4372
|
{ "app-select__placeholder": !a.value && c.placeholder }
|
|
4379
4373
|
])
|
|
@@ -4392,7 +4386,7 @@ const Ru = he({
|
|
|
4392
4386
|
avatar: ""
|
|
4393
4387
|
}, {
|
|
4394
4388
|
default: xe(() => [
|
|
4395
|
-
ot(
|
|
4389
|
+
ot(ki, {
|
|
4396
4390
|
size: "30px",
|
|
4397
4391
|
"model-value": C.selected,
|
|
4398
4392
|
"onUpdate:modelValue": () => C.toggleOption(C.opt)
|
|
@@ -4414,7 +4408,7 @@ const Ru = he({
|
|
|
4414
4408
|
default: xe(() => [
|
|
4415
4409
|
ot(On, null, {
|
|
4416
4410
|
default: xe(() => [
|
|
4417
|
-
|
|
4411
|
+
Bt(Ze(C.opt.label), 1)
|
|
4418
4412
|
]),
|
|
4419
4413
|
_: 2
|
|
4420
4414
|
}, 1024)
|
|
@@ -4429,10 +4423,8 @@ const Ru = he({
|
|
|
4429
4423
|
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
4430
4424
|
], 2));
|
|
4431
4425
|
}
|
|
4432
|
-
}),
|
|
4433
|
-
|
|
4434
|
-
}, Pu = /* @__PURE__ */ mt({
|
|
4435
|
-
...Ou,
|
|
4426
|
+
}), Ou = /* @__PURE__ */ fl(Ru, [["__scopeId", "data-v-7e772358"]]), Lu = /* @__PURE__ */ mt({
|
|
4427
|
+
__name: "index",
|
|
4436
4428
|
props: {
|
|
4437
4429
|
name: {},
|
|
4438
4430
|
size: {},
|
|
@@ -4440,14 +4432,14 @@ const Ru = he({
|
|
|
4440
4432
|
},
|
|
4441
4433
|
setup(e) {
|
|
4442
4434
|
return (t, l) => (ue(), de("i", {
|
|
4443
|
-
class:
|
|
4435
|
+
class: Be(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
4444
4436
|
style: qo(t.size ? `font-size: ${t.size}` : void 0)
|
|
4445
4437
|
}, null, 6));
|
|
4446
4438
|
}
|
|
4447
|
-
}),
|
|
4439
|
+
}), Pu = /* @__PURE__ */ fl(Lu, [["__scopeId", "data-v-100590bf"]]);
|
|
4448
4440
|
export {
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4441
|
+
ai as A,
|
|
4442
|
+
Au as _,
|
|
4443
|
+
Ou as a,
|
|
4444
|
+
Pu as b
|
|
4453
4445
|
};
|