@validol4ik/uikit 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-BgtAowBn.cjs +1 -0
- package/dist/components-E-l9faBE.js +7 -0
- package/dist/{index-CAKyxAXF.js → index-3MpKzEw2.js} +125 -125
- package/dist/{index-D-GPCN1o.cjs → index-BqOzNNP9.cjs} +1 -1
- package/dist/plugin/plugin.cjs +1 -1
- package/dist/plugin/plugin.es.js +6 -4
- package/dist/types/components/buttons/AppButton/index.vue.d.ts +2 -2
- package/dist/types/components/buttons/CopyButton/index.vue.d.ts +1 -1
- package/dist/types/components/form/AppSelect/index.vue.d.ts +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ function Vo(e, t) {
|
|
|
46
46
|
}
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Oe(e, t) {
|
|
50
50
|
return e !== void 0 ? t.concat(e()) : t;
|
|
51
51
|
}
|
|
52
52
|
function Bo(e, t) {
|
|
@@ -77,7 +77,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
77
77
|
sym_o_: "-outlined",
|
|
78
78
|
sym_r_: "-rounded",
|
|
79
79
|
sym_s_: "-sharp"
|
|
80
|
-
}, $o = new RegExp("^(" + Object.keys(yn).join("|") + ")"), Ro = new RegExp("^(" + Object.keys(wn).join("|") + ")"), Rl = new RegExp("^(" + Object.keys(Sn).join("|") + ")"), Lo = /^[Mm]\s?[-+]?\.?\d/, Mo = /^img:/,
|
|
80
|
+
}, $o = new RegExp("^(" + Object.keys(yn).join("|") + ")"), Ro = new RegExp("^(" + Object.keys(wn).join("|") + ")"), Rl = new RegExp("^(" + Object.keys(Sn).join("|") + ")"), Lo = /^[Mm]\s?[-+]?\.?\d/, Mo = /^img:/, Oo = /^svguse:/, Ao = /^ion-/, Po = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, _e = he({
|
|
81
81
|
name: "QIcon",
|
|
82
82
|
props: {
|
|
83
83
|
...zt,
|
|
@@ -125,7 +125,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
125
125
|
img: !0,
|
|
126
126
|
src: r.substring(4)
|
|
127
127
|
};
|
|
128
|
-
if (
|
|
128
|
+
if (Oo.test(r) === !0) {
|
|
129
129
|
const [s, y = Tl] = r.split("|");
|
|
130
130
|
return {
|
|
131
131
|
svguse: !0,
|
|
@@ -139,7 +139,7 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
139
139
|
a = yn[b[1]](r);
|
|
140
140
|
else if (Po.test(r) === !0)
|
|
141
141
|
a = r;
|
|
142
|
-
else if (
|
|
142
|
+
else if (Ao.test(r) === !0)
|
|
143
143
|
a = `ionicons ion-${l.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
|
|
144
144
|
else if (Rl.test(r) === !0) {
|
|
145
145
|
a = "notranslate material-symbols";
|
|
@@ -162,19 +162,19 @@ const Tl = "0 0 24 24", $l = (e) => e, Kt = (e) => `ionicons ${e}`, yn = {
|
|
|
162
162
|
"aria-hidden": "true",
|
|
163
163
|
role: "presentation"
|
|
164
164
|
};
|
|
165
|
-
return u.value.none === !0 ? g(e.tag, a, ke(t.default)) : u.value.img === !0 ? g(e.tag, a,
|
|
165
|
+
return u.value.none === !0 ? g(e.tag, a, ke(t.default)) : u.value.img === !0 ? g(e.tag, a, Oe(t.default, [
|
|
166
166
|
g("img", { src: u.value.src })
|
|
167
|
-
])) : u.value.svg === !0 ? g(e.tag, a,
|
|
167
|
+
])) : u.value.svg === !0 ? g(e.tag, a, Oe(t.default, [
|
|
168
168
|
g("svg", {
|
|
169
169
|
viewBox: u.value.viewBox || "0 0 24 24"
|
|
170
170
|
}, u.value.nodes)
|
|
171
|
-
])) : u.value.svguse === !0 ? g(e.tag, a,
|
|
171
|
+
])) : u.value.svguse === !0 ? g(e.tag, a, Oe(t.default, [
|
|
172
172
|
g("svg", {
|
|
173
173
|
viewBox: u.value.viewBox
|
|
174
174
|
}, [
|
|
175
175
|
g("use", { "xlink:href": u.value.src })
|
|
176
176
|
])
|
|
177
|
-
])) : (u.value.cls !== void 0 && (a.class += " " + u.value.cls), g(e.tag, a,
|
|
177
|
+
])) : (u.value.cls !== void 0 && (a.class += " " + u.value.cls), g(e.tag, a, Oe(t.default, [
|
|
178
178
|
u.value.content
|
|
179
179
|
])));
|
|
180
180
|
};
|
|
@@ -331,7 +331,7 @@ function Ll(e, t, l, n) {
|
|
|
331
331
|
const o = l.modifiers.color;
|
|
332
332
|
let u = l.modifiers.center;
|
|
333
333
|
u = u === !0 || n === !0;
|
|
334
|
-
const a = document.createElement("span"), r = document.createElement("span"), h = Cn(e), { left: b, top: s, width: y, height: v } = t.getBoundingClientRect(), c = Math.sqrt(y * y + v * v), m = c / 2, C = `${(y - c) / 2}px`, p = u ? C : `${h.left - b - m}px`,
|
|
334
|
+
const a = document.createElement("span"), r = document.createElement("span"), h = Cn(e), { left: b, top: s, width: y, height: v } = t.getBoundingClientRect(), c = Math.sqrt(y * y + v * v), m = c / 2, C = `${(y - c) / 2}px`, p = u ? C : `${h.left - b - m}px`, A = `${(v - c) / 2}px`, T = u ? A : `${h.top - s - m}px`;
|
|
335
335
|
r.className = "q-ripple__inner", ol(r, {
|
|
336
336
|
height: `${c}px`,
|
|
337
337
|
width: `${c}px`,
|
|
@@ -343,7 +343,7 @@ function Ll(e, t, l, n) {
|
|
|
343
343
|
};
|
|
344
344
|
l.abort.push(k);
|
|
345
345
|
let M = setTimeout(() => {
|
|
346
|
-
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${C},${
|
|
346
|
+
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${C},${A},0) scale3d(1,1,1)`, r.style.opacity = 0.2, M = setTimeout(() => {
|
|
347
347
|
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, M = setTimeout(() => {
|
|
348
348
|
a.remove(), l.abort.splice(l.abort.indexOf(k), 1);
|
|
349
349
|
}, 275);
|
|
@@ -435,10 +435,10 @@ function Bn(e) {
|
|
|
435
435
|
function Tn(e) {
|
|
436
436
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function Ol(e) {
|
|
439
439
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Al(e, t) {
|
|
442
442
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
443
443
|
}
|
|
444
444
|
function Qo(e, t) {
|
|
@@ -502,29 +502,29 @@ 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: B } = R,
|
|
506
|
-
if (
|
|
505
|
+
const { matched: R } = b.value, { length: B } = R, O = R[B - 1];
|
|
506
|
+
if (O === void 0)
|
|
507
507
|
return -1;
|
|
508
508
|
const z = o.$route.matched;
|
|
509
509
|
if (z.length === 0)
|
|
510
510
|
return -1;
|
|
511
511
|
const N = z.findIndex(
|
|
512
|
-
|
|
512
|
+
Al.bind(null, O)
|
|
513
513
|
);
|
|
514
514
|
if (N !== -1)
|
|
515
515
|
return N;
|
|
516
|
-
const J =
|
|
516
|
+
const J = Ol(R[B - 2]);
|
|
517
517
|
return (
|
|
518
518
|
// we are dealing with nested routes
|
|
519
|
-
B > 1 &&
|
|
520
|
-
|
|
519
|
+
B > 1 && Ol(O) === J && z[z.length - 1].path !== J ? z.findIndex(
|
|
520
|
+
Al.bind(null, R[B - 2])
|
|
521
521
|
) : N
|
|
522
522
|
);
|
|
523
523
|
}), C = d(
|
|
524
524
|
() => s.value === !0 && m.value !== -1 && Qo(o.$route.params, b.value.params)
|
|
525
525
|
), p = d(
|
|
526
526
|
() => C.value === !0 && m.value === o.$route.matched.length - 1 && Yo(o.$route.params, b.value.params)
|
|
527
|
-
),
|
|
527
|
+
), A = d(() => s.value === !0 ? p.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : C.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
528
528
|
function T(R) {
|
|
529
529
|
try {
|
|
530
530
|
return o.$router.resolve(R);
|
|
@@ -532,7 +532,7 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
532
532
|
}
|
|
533
533
|
return null;
|
|
534
534
|
}
|
|
535
|
-
function k(R, { returnRouterError: B, to:
|
|
535
|
+
function k(R, { returnRouterError: B, to: O = n.to, replace: z = n.replace } = {}) {
|
|
536
536
|
if (n.disable === !0)
|
|
537
537
|
return R.preventDefault(), Promise.resolve(!1);
|
|
538
538
|
if (
|
|
@@ -542,14 +542,14 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
542
542
|
)
|
|
543
543
|
return Promise.resolve(!1);
|
|
544
544
|
R.preventDefault();
|
|
545
|
-
const N = o.$router[z === !0 ? "replace" : "push"](
|
|
545
|
+
const N = o.$router[z === !0 ? "replace" : "push"](O);
|
|
546
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 B = (
|
|
552
|
+
const B = (O) => k(R, O);
|
|
553
553
|
u("click", R, B), R.defaultPrevented !== !0 && B();
|
|
554
554
|
} else
|
|
555
555
|
u("click", R);
|
|
@@ -562,7 +562,7 @@ function Rn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
562
562
|
resolvedLink: b,
|
|
563
563
|
linkIsActive: C,
|
|
564
564
|
linkIsExactActive: p,
|
|
565
|
-
linkClass:
|
|
565
|
+
linkClass: A,
|
|
566
566
|
linkAttrs: c,
|
|
567
567
|
getLink: T,
|
|
568
568
|
navigateToRouterLink: k,
|
|
@@ -638,7 +638,7 @@ function oi(e) {
|
|
|
638
638
|
}), h = d(() => {
|
|
639
639
|
const p = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
640
640
|
return e.padding !== void 0 ? Object.assign({}, p, {
|
|
641
|
-
padding: e.padding.split(/\s+/).map((
|
|
641
|
+
padding: e.padding.split(/\s+/).map((A) => A in zl ? zl[A] + "px" : A).join(" "),
|
|
642
642
|
minWidth: "0",
|
|
643
643
|
minHeight: "0"
|
|
644
644
|
}) : p;
|
|
@@ -657,8 +657,8 @@ function oi(e) {
|
|
|
657
657
|
}), m = d(() => {
|
|
658
658
|
let p;
|
|
659
659
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? p = `text-${e.textColor || e.color}` : p = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (p = `text-${e.textColor}`);
|
|
660
|
-
const
|
|
661
|
-
return `q-btn--${v.value} q-btn--${
|
|
660
|
+
const A = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
661
|
+
return `q-btn--${v.value} q-btn--${A}` + (p !== void 0 ? " " + p : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
662
662
|
}), C = d(
|
|
663
663
|
() => l.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
664
664
|
);
|
|
@@ -696,7 +696,7 @@ const ii = he({
|
|
|
696
696
|
isActionable: y
|
|
697
697
|
} = oi(e), v = P(null), c = P(null);
|
|
698
698
|
let m = null, C, p = null;
|
|
699
|
-
const
|
|
699
|
+
const A = d(
|
|
700
700
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
701
701
|
), T = d(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
702
702
|
keyCodes: h.value === !0 ? [13, 32] : [13],
|
|
@@ -715,7 +715,7 @@ const ii = he({
|
|
|
715
715
|
};
|
|
716
716
|
if (y.value === !0) {
|
|
717
717
|
const V = {
|
|
718
|
-
onClick:
|
|
718
|
+
onClick: O,
|
|
719
719
|
onKeydown: z,
|
|
720
720
|
onMousedown: J
|
|
721
721
|
};
|
|
@@ -736,7 +736,7 @@ const ii = he({
|
|
|
736
736
|
...r.value,
|
|
737
737
|
...R.value
|
|
738
738
|
}));
|
|
739
|
-
function
|
|
739
|
+
function O(V) {
|
|
740
740
|
if (v.value !== null) {
|
|
741
741
|
if (V !== void 0) {
|
|
742
742
|
if (V.defaultPrevented === !0)
|
|
@@ -787,22 +787,22 @@ const ii = he({
|
|
|
787
787
|
L(!0);
|
|
788
788
|
}), Object.assign(n, {
|
|
789
789
|
click: (V) => {
|
|
790
|
-
y.value === !0 &&
|
|
790
|
+
y.value === !0 && O(V);
|
|
791
791
|
}
|
|
792
792
|
}), () => {
|
|
793
793
|
let V = [];
|
|
794
794
|
e.icon !== void 0 && V.push(
|
|
795
795
|
g(_e, {
|
|
796
796
|
name: e.icon,
|
|
797
|
-
left: e.stack !== !0 &&
|
|
797
|
+
left: e.stack !== !0 && A.value === !0,
|
|
798
798
|
role: "img"
|
|
799
799
|
})
|
|
800
|
-
),
|
|
800
|
+
), A.value === !0 && V.push(
|
|
801
801
|
g("span", { class: "block" }, [e.label])
|
|
802
|
-
), V =
|
|
802
|
+
), V = Oe(t.default, V), e.iconRight !== void 0 && e.round === !1 && V.push(
|
|
803
803
|
g(_e, {
|
|
804
804
|
name: e.iconRight,
|
|
805
|
-
right: e.stack !== !0 &&
|
|
805
|
+
right: e.stack !== !0 && A.value === !0,
|
|
806
806
|
role: "img"
|
|
807
807
|
})
|
|
808
808
|
);
|
|
@@ -1070,7 +1070,7 @@ function vi(e) {
|
|
|
1070
1070
|
const Ut = {
|
|
1071
1071
|
COPY: "copy_o",
|
|
1072
1072
|
COPIED: "copied_o"
|
|
1073
|
-
},
|
|
1073
|
+
}, Ou = /* @__PURE__ */ mt({
|
|
1074
1074
|
__name: "index",
|
|
1075
1075
|
props: {
|
|
1076
1076
|
text: {},
|
|
@@ -1130,7 +1130,7 @@ function mi(e, t) {
|
|
|
1130
1130
|
refocusTarget: o
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1133
|
+
const On = {
|
|
1134
1134
|
name: String
|
|
1135
1135
|
};
|
|
1136
1136
|
function hi(e = {}) {
|
|
@@ -1155,7 +1155,7 @@ const pi = {
|
|
|
1155
1155
|
}, bi = {
|
|
1156
1156
|
...gt,
|
|
1157
1157
|
...zt,
|
|
1158
|
-
...
|
|
1158
|
+
...On,
|
|
1159
1159
|
modelValue: {
|
|
1160
1160
|
required: !0,
|
|
1161
1161
|
default: null
|
|
@@ -1188,7 +1188,7 @@ function wi(e, t) {
|
|
|
1188
1188
|
return v.value === !0 ? l.modelValue.findIndex((K) => Ue(K) === L) : -1;
|
|
1189
1189
|
}), m = d(() => v.value === !0 ? c.value !== -1 : Ue(l.modelValue) === Ue(l.trueValue)), C = d(() => v.value === !0 ? c.value === -1 : Ue(l.modelValue) === Ue(l.falseValue)), p = d(
|
|
1190
1190
|
() => m.value === !1 && C.value === !1
|
|
1191
|
-
),
|
|
1191
|
+
), A = d(() => l.disable === !0 ? -1 : l.tabindex || 0), T = d(
|
|
1192
1192
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (l.disable === !0 ? " disabled" : "") + (r.value === !0 ? ` q-${e}--dark` : "") + (l.dense === !0 ? ` q-${e}--dense` : "") + (l.leftLabel === !0 ? " reverse" : "")
|
|
1193
1193
|
), k = d(() => {
|
|
1194
1194
|
const L = m.value === !0 ? "truthy" : C.value === !0 ? "falsy" : "indet", K = l.color !== void 0 && (l.keepColor === !0 || C.value !== !0) ? ` text-${l.color}` : "";
|
|
@@ -1204,14 +1204,14 @@ function wi(e, t) {
|
|
|
1204
1204
|
}), L;
|
|
1205
1205
|
}), R = hi(M), B = d(() => {
|
|
1206
1206
|
const L = {
|
|
1207
|
-
tabindex:
|
|
1207
|
+
tabindex: A.value,
|
|
1208
1208
|
role: "checkbox",
|
|
1209
1209
|
"aria-label": l.label,
|
|
1210
1210
|
"aria-checked": p.value === !0 ? "mixed" : m.value === !0 ? "true" : "false"
|
|
1211
1211
|
};
|
|
1212
1212
|
return l.disable === !0 && (L["aria-disabled"] = "true"), L;
|
|
1213
1213
|
});
|
|
1214
|
-
function
|
|
1214
|
+
function O(L) {
|
|
1215
1215
|
L !== void 0 && (le(L), s(L)), l.disable !== !0 && o("update:modelValue", z(), L);
|
|
1216
1216
|
}
|
|
1217
1217
|
function z() {
|
|
@@ -1236,10 +1236,10 @@ function wi(e, t) {
|
|
|
1236
1236
|
(L.keyCode === 13 || L.keyCode === 32) && le(L);
|
|
1237
1237
|
}
|
|
1238
1238
|
function J(L) {
|
|
1239
|
-
(L.keyCode === 13 || L.keyCode === 32) &&
|
|
1239
|
+
(L.keyCode === 13 || L.keyCode === 32) && O(L);
|
|
1240
1240
|
}
|
|
1241
1241
|
const U = t(m, p);
|
|
1242
|
-
return Object.assign(u, { toggle:
|
|
1242
|
+
return Object.assign(u, { toggle: O }), () => {
|
|
1243
1243
|
const L = U();
|
|
1244
1244
|
l.disable !== !0 && R(
|
|
1245
1245
|
L,
|
|
@@ -1254,7 +1254,7 @@ function wi(e, t) {
|
|
|
1254
1254
|
}, L)
|
|
1255
1255
|
];
|
|
1256
1256
|
b.value !== null && K.push(b.value);
|
|
1257
|
-
const V = l.label !== void 0 ?
|
|
1257
|
+
const V = l.label !== void 0 ? Oe(n.default, [l.label]) : ke(n.default);
|
|
1258
1258
|
return V !== void 0 && K.push(
|
|
1259
1259
|
g("div", {
|
|
1260
1260
|
class: `q-${e}__label q-anchor--skip`
|
|
@@ -1263,7 +1263,7 @@ function wi(e, t) {
|
|
|
1263
1263
|
ref: h,
|
|
1264
1264
|
class: T.value,
|
|
1265
1265
|
...B.value,
|
|
1266
|
-
onClick:
|
|
1266
|
+
onClick: O,
|
|
1267
1267
|
onKeydown: N,
|
|
1268
1268
|
onKeyup: J
|
|
1269
1269
|
}, K);
|
|
@@ -1326,7 +1326,7 @@ const Si = () => g("div", {
|
|
|
1326
1326
|
);
|
|
1327
1327
|
return () => g("div", { class: l.value }, ke(t.default));
|
|
1328
1328
|
}
|
|
1329
|
-
}),
|
|
1329
|
+
}), An = he({
|
|
1330
1330
|
name: "QItemLabel",
|
|
1331
1331
|
props: {
|
|
1332
1332
|
overline: Boolean,
|
|
@@ -1382,7 +1382,7 @@ const Si = () => g("div", {
|
|
|
1382
1382
|
function p(k) {
|
|
1383
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));
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function A(k) {
|
|
1386
1386
|
if (c.value === !0 && Ie(k, [13, 32]) === !0) {
|
|
1387
1387
|
le(k), k.qKeyEvent = !0;
|
|
1388
1388
|
const M = new MouseEvent("click", k);
|
|
@@ -1403,7 +1403,7 @@ const Si = () => g("div", {
|
|
|
1403
1403
|
style: C.value,
|
|
1404
1404
|
role: "listitem",
|
|
1405
1405
|
onClick: p,
|
|
1406
|
-
onKeyup:
|
|
1406
|
+
onKeyup: A
|
|
1407
1407
|
};
|
|
1408
1408
|
return c.value === !0 ? (k.tabindex = e.tabindex || "0", Object.assign(k, a.value)) : v.value === !0 && (k["aria-disabled"] = "true"), g(
|
|
1409
1409
|
h.value,
|
|
@@ -1553,27 +1553,27 @@ function $i(e, t) {
|
|
|
1553
1553
|
function c() {
|
|
1554
1554
|
l.lazyRules !== "ondemand" && s.value === !0 && a.value === !0 && p();
|
|
1555
1555
|
}
|
|
1556
|
-
Z(() => l.reactiveRules, (
|
|
1557
|
-
|
|
1558
|
-
}, { immediate: !0 }), Z(() => l.lazyRules, c), Z(e, (
|
|
1559
|
-
|
|
1556
|
+
Z(() => l.reactiveRules, (A) => {
|
|
1557
|
+
A === !0 ? h === void 0 && (h = Z(() => l.rules, c, { immediate: !0, deep: !0 })) : h !== void 0 && (h(), h = void 0);
|
|
1558
|
+
}, { immediate: !0 }), Z(() => l.lazyRules, c), Z(e, (A) => {
|
|
1559
|
+
A === !0 ? a.value = !0 : s.value === !0 && l.lazyRules !== "ondemand" && p();
|
|
1560
1560
|
});
|
|
1561
1561
|
function m() {
|
|
1562
1562
|
r++, t.value = !1, a.value = !1, o.value = !1, u.value = null, p.cancel();
|
|
1563
1563
|
}
|
|
1564
|
-
function C(
|
|
1564
|
+
function C(A = l.modelValue) {
|
|
1565
1565
|
if (l.disable === !0 || b.value === !1)
|
|
1566
1566
|
return !0;
|
|
1567
1567
|
const T = ++r, k = t.value !== !0 ? () => {
|
|
1568
1568
|
a.value = !0;
|
|
1569
1569
|
} : () => {
|
|
1570
|
-
}, M = (B,
|
|
1571
|
-
B === !0 && k(), o.value = B, u.value =
|
|
1570
|
+
}, M = (B, O) => {
|
|
1571
|
+
B === !0 && k(), o.value = B, u.value = O || null, t.value = !1;
|
|
1572
1572
|
}, R = [];
|
|
1573
1573
|
for (let B = 0; B < l.rules.length; B++) {
|
|
1574
|
-
const
|
|
1574
|
+
const O = l.rules[B];
|
|
1575
1575
|
let z;
|
|
1576
|
-
if (typeof
|
|
1576
|
+
if (typeof O == "function" ? z = O(A, Xt) : typeof O == "string" && Xt[O] !== void 0 && (z = Xt[O](A)), z === !1 || typeof z == "string")
|
|
1577
1577
|
return M(!0, z), !1;
|
|
1578
1578
|
z !== !0 && z !== void 0 && R.push(z);
|
|
1579
1579
|
}
|
|
@@ -1581,8 +1581,8 @@ function $i(e, t) {
|
|
|
1581
1581
|
(B) => {
|
|
1582
1582
|
if (B === void 0 || Array.isArray(B) === !1 || B.length === 0)
|
|
1583
1583
|
return T === r && M(!1), !0;
|
|
1584
|
-
const
|
|
1585
|
-
return T === r && M(
|
|
1584
|
+
const O = B.find((z) => z === !1 || typeof z == "string");
|
|
1585
|
+
return T === r && M(O !== void 0, O), O === void 0;
|
|
1586
1586
|
},
|
|
1587
1587
|
(B) => (T === r && (console.error(B), M(!0)), !1)
|
|
1588
1588
|
));
|
|
@@ -1599,7 +1599,7 @@ function $i(e, t) {
|
|
|
1599
1599
|
resetValidation: m
|
|
1600
1600
|
};
|
|
1601
1601
|
}
|
|
1602
|
-
let
|
|
1602
|
+
let Ae = [], vt = [];
|
|
1603
1603
|
function Fn(e) {
|
|
1604
1604
|
vt = vt.filter((t) => t !== e);
|
|
1605
1605
|
}
|
|
@@ -1607,13 +1607,13 @@ function Ri(e) {
|
|
|
1607
1607
|
Fn(e), vt.push(e);
|
|
1608
1608
|
}
|
|
1609
1609
|
function Ql(e) {
|
|
1610
|
-
Fn(e), vt.length === 0 &&
|
|
1610
|
+
Fn(e), vt.length === 0 && Ae.length !== 0 && (Ae[Ae.length - 1](), Ae = []);
|
|
1611
1611
|
}
|
|
1612
1612
|
function ml(e) {
|
|
1613
|
-
vt.length === 0 ? e() :
|
|
1613
|
+
vt.length === 0 ? e() : Ae.push(e);
|
|
1614
1614
|
}
|
|
1615
1615
|
function Li(e) {
|
|
1616
|
-
|
|
1616
|
+
Ae = Ae.filter((t) => t !== e);
|
|
1617
1617
|
}
|
|
1618
1618
|
function sl(e) {
|
|
1619
1619
|
return e != null && ("" + e).length !== 0;
|
|
@@ -1706,7 +1706,7 @@ function Dn(e) {
|
|
|
1706
1706
|
clearValue: U,
|
|
1707
1707
|
onControlFocusin: N,
|
|
1708
1708
|
onControlFocusout: J,
|
|
1709
|
-
focus:
|
|
1709
|
+
focus: O
|
|
1710
1710
|
}), e.computedCounter === void 0 && (e.computedCounter = d(() => {
|
|
1711
1711
|
if (t.counter !== !1) {
|
|
1712
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;
|
|
@@ -1723,7 +1723,7 @@ function Dn(e) {
|
|
|
1723
1723
|
() => t.bottomSlots === !0 || t.hint !== void 0 || b.value === !0 || t.counter === !0 || t.error !== null
|
|
1724
1724
|
), C = d(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), p = d(
|
|
1725
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" : "")
|
|
1726
|
-
),
|
|
1726
|
+
), A = d(
|
|
1727
1727
|
() => "q-field__control relative-position row no-wrap" + (t.bgColor !== void 0 ? ` bg-${t.bgColor}` : "") + (s.value === !0 ? " text-negative" : typeof t.standout == "string" && t.standout.length !== 0 && e.focused.value === !0 ? ` ${t.standout}` : t.color !== void 0 ? ` text-${t.color}` : "")
|
|
1728
1728
|
), T = d(
|
|
1729
1729
|
() => t.labelSlot === !0 || t.label !== void 0
|
|
@@ -1745,7 +1745,7 @@ function Dn(e) {
|
|
|
1745
1745
|
let F = e.targetRef !== void 0 && e.targetRef.value;
|
|
1746
1746
|
F && (E === null || E.id !== e.targetUid.value) && (F.hasAttribute("tabindex") === !0 || (F = F.querySelector("[tabindex]")), F && F !== E && F.focus({ preventScroll: !0 }));
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function O() {
|
|
1749
1749
|
ml(B);
|
|
1750
1750
|
}
|
|
1751
1751
|
function z() {
|
|
@@ -1877,7 +1877,7 @@ function Dn(e) {
|
|
|
1877
1877
|
u.focus();
|
|
1878
1878
|
}), me(() => {
|
|
1879
1879
|
r !== null && clearTimeout(r);
|
|
1880
|
-
}), Object.assign(u, { focus:
|
|
1880
|
+
}), Object.assign(u, { focus: O, blur: z }), function() {
|
|
1881
1881
|
const F = e.getControl === void 0 && n.control === void 0 ? {
|
|
1882
1882
|
...e.splitAttrs.attributes.value,
|
|
1883
1883
|
"data-autofocus": t.autofocus === !0 || void 0,
|
|
@@ -1901,7 +1901,7 @@ function Dn(e) {
|
|
|
1901
1901
|
}, [
|
|
1902
1902
|
g("div", {
|
|
1903
1903
|
ref: e.controlRef,
|
|
1904
|
-
class:
|
|
1904
|
+
class: A.value,
|
|
1905
1905
|
tabindex: -1,
|
|
1906
1906
|
...e.controlEvents
|
|
1907
1907
|
}, K()),
|
|
@@ -1914,7 +1914,7 @@ function Dn(e) {
|
|
|
1914
1914
|
]);
|
|
1915
1915
|
};
|
|
1916
1916
|
}
|
|
1917
|
-
const
|
|
1917
|
+
const Oi = he({
|
|
1918
1918
|
name: "QField",
|
|
1919
1919
|
inheritAttrs: !1,
|
|
1920
1920
|
props: {
|
|
@@ -1930,7 +1930,7 @@ const Ai = he({
|
|
|
1930
1930
|
Hn({ tagProp: !0 })
|
|
1931
1931
|
);
|
|
1932
1932
|
}
|
|
1933
|
-
}),
|
|
1933
|
+
}), Ai = {
|
|
1934
1934
|
xs: 8,
|
|
1935
1935
|
sm: 10,
|
|
1936
1936
|
md: 14,
|
|
@@ -1971,19 +1971,19 @@ const Ai = he({
|
|
|
1971
1971
|
},
|
|
1972
1972
|
emits: ["update:modelValue", "update:selected", "remove", "click"],
|
|
1973
1973
|
setup(e, { slots: t, emit: l }) {
|
|
1974
|
-
const { proxy: { $q: n } } = ne(), o = pt(e, n), u = Ft(e,
|
|
1974
|
+
const { proxy: { $q: n } } = ne(), o = pt(e, n), u = Ft(e, Ai), 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(
|
|
1975
1975
|
() => e.disable === !1 && (e.clickable === !0 || e.selected !== null)
|
|
1976
1976
|
), s = d(() => {
|
|
1977
1977
|
const p = e.outline === !0 && e.color || e.textColor;
|
|
1978
1978
|
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (p ? ` text-${p} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (b.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (o.value === !0 ? " q-chip--dark q-dark" : "");
|
|
1979
1979
|
}), y = d(() => {
|
|
1980
|
-
const p = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 },
|
|
1980
|
+
const p = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 }, A = {
|
|
1981
1981
|
...p,
|
|
1982
1982
|
role: "button",
|
|
1983
1983
|
"aria-hidden": "false",
|
|
1984
1984
|
"aria-label": e.removeAriaLabel || n.lang.label.remove
|
|
1985
1985
|
};
|
|
1986
|
-
return { chip: p, remove:
|
|
1986
|
+
return { chip: p, remove: A };
|
|
1987
1987
|
});
|
|
1988
1988
|
function v(p) {
|
|
1989
1989
|
p.keyCode === 13 && c(p);
|
|
@@ -2004,11 +2004,11 @@ const Ai = he({
|
|
|
2004
2004
|
name: r.value
|
|
2005
2005
|
})
|
|
2006
2006
|
);
|
|
2007
|
-
const
|
|
2007
|
+
const A = e.label !== void 0 ? [g("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
2008
2008
|
return p.push(
|
|
2009
2009
|
g("div", {
|
|
2010
2010
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2011
|
-
}, Bo(t.default,
|
|
2011
|
+
}, Bo(t.default, A))
|
|
2012
2012
|
), e.iconRight && p.push(
|
|
2013
2013
|
g(_e, {
|
|
2014
2014
|
class: "q-chip__icon q-chip__icon--right",
|
|
@@ -2240,8 +2240,8 @@ function Wn({
|
|
|
2240
2240
|
}), ht(() => {
|
|
2241
2241
|
p(r.modelValue);
|
|
2242
2242
|
});
|
|
2243
|
-
const
|
|
2244
|
-
return Object.assign(b,
|
|
2243
|
+
const A = { show: v, hide: m, toggle: y };
|
|
2244
|
+
return Object.assign(b, A), A;
|
|
2245
2245
|
}
|
|
2246
2246
|
const Ul = {};
|
|
2247
2247
|
let ji = 1, Ni = document.body;
|
|
@@ -2438,7 +2438,7 @@ function Lt(e) {
|
|
|
2438
2438
|
t !== -1 && (ze.splice(t, 1), ze.length === 0 && Gn("removeEventListener"));
|
|
2439
2439
|
}
|
|
2440
2440
|
const { notPassiveCapture: Mt } = re, Fe = [];
|
|
2441
|
-
function
|
|
2441
|
+
function Ot(e) {
|
|
2442
2442
|
const t = e.target;
|
|
2443
2443
|
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
2444
2444
|
return;
|
|
@@ -2464,11 +2464,11 @@ function At(e) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
function uu(e) {
|
|
2467
|
-
Fe.push(e), Fe.length === 1 && (document.addEventListener("mousedown",
|
|
2467
|
+
Fe.push(e), Fe.length === 1 && (document.addEventListener("mousedown", Ot, Mt), document.addEventListener("touchstart", Ot, Mt));
|
|
2468
2468
|
}
|
|
2469
2469
|
function Yl(e) {
|
|
2470
2470
|
const t = Fe.findIndex((l) => l === e);
|
|
2471
|
-
t !== -1 && (Fe.splice(t, 1), Fe.length === 0 && (document.removeEventListener("mousedown",
|
|
2471
|
+
t !== -1 && (Fe.splice(t, 1), Fe.length === 0 && (document.removeEventListener("mousedown", Ot, Mt), document.removeEventListener("touchstart", Ot, Mt)));
|
|
2472
2472
|
}
|
|
2473
2473
|
let Xl, Gl;
|
|
2474
2474
|
function Zl(e) {
|
|
@@ -2558,8 +2558,8 @@ function Jn(e, t = 0) {
|
|
|
2558
2558
|
maxWidth: y
|
|
2559
2559
|
} = e;
|
|
2560
2560
|
if (ve.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2561
|
-
const B = document.body.style, { offsetLeft:
|
|
2562
|
-
|
|
2561
|
+
const B = document.body.style, { offsetLeft: O, offsetTop: z } = window.visualViewport;
|
|
2562
|
+
O !== Xl && (B.setProperty("--q-pe-left", O + "px"), Xl = O), z !== Gl && (B.setProperty("--q-pe-top", z + "px"), Gl = z);
|
|
2563
2563
|
}
|
|
2564
2564
|
const { scrollLeft: v, scrollTop: c } = l, m = r === void 0 ? ru(o, b === !0 ? [0, 0] : n) : su(o, r, n);
|
|
2565
2565
|
Object.assign(l.style, {
|
|
@@ -2571,15 +2571,15 @@ function Jn(e, t = 0) {
|
|
|
2571
2571
|
maxHeight: s,
|
|
2572
2572
|
visibility: "visible"
|
|
2573
2573
|
});
|
|
2574
|
-
const { offsetWidth: C, offsetHeight: p } = l, { elWidth:
|
|
2574
|
+
const { offsetWidth: C, offsetHeight: p } = l, { elWidth: A, 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 };
|
|
2575
2575
|
let k = { maxWidth: y, maxHeight: s };
|
|
2576
2576
|
(h === !0 || b === !0) && (k.minWidth = m.width + "px", b === !0 && (k.minHeight = m.height + "px")), Object.assign(l.style, k);
|
|
2577
|
-
const M = cu(
|
|
2577
|
+
const M = cu(A, T);
|
|
2578
2578
|
let R = en(m, M, u, a);
|
|
2579
2579
|
if (r === void 0 || n === void 0)
|
|
2580
2580
|
Gt(R, m, M, u, a);
|
|
2581
2581
|
else {
|
|
2582
|
-
const { top: B, left:
|
|
2582
|
+
const { top: B, left: O } = R;
|
|
2583
2583
|
Gt(R, m, M, u, a);
|
|
2584
2584
|
let z = !1;
|
|
2585
2585
|
if (R.top !== B) {
|
|
@@ -2587,7 +2587,7 @@ function Jn(e, t = 0) {
|
|
|
2587
2587
|
const N = 2 * n[1];
|
|
2588
2588
|
m.center = m.top -= N, m.bottom -= N + 2;
|
|
2589
2589
|
}
|
|
2590
|
-
if (R.left !==
|
|
2590
|
+
if (R.left !== O) {
|
|
2591
2591
|
z = !0;
|
|
2592
2592
|
const N = 2 * n[0];
|
|
2593
2593
|
m.middle = m.left -= N, m.right -= N + 2;
|
|
@@ -2679,7 +2679,7 @@ const du = he({
|
|
|
2679
2679
|
let o = null, u, a, r;
|
|
2680
2680
|
const h = ne(), { proxy: b } = h, { $q: s } = b, y = P(null), v = P(!1), c = d(
|
|
2681
2681
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
2682
|
-
), m = pt(e, s), { registerTick: C, removeTick: p } = Yn(), { registerTimeout:
|
|
2682
|
+
), m = pt(e, s), { registerTick: C, removeTick: p } = Yn(), { registerTimeout: A } = Xn(), { transitionProps: T, transitionStyle: k } = Un(e), { localScrollTarget: M, changeScrollEvent: R, unconfigureScrollTarget: B } = Di(e, I), { anchorEl: O, canShow: z } = Hi({ showing: v }), { hide: N } = Wn({
|
|
2683
2683
|
showing: v,
|
|
2684
2684
|
canShow: z,
|
|
2685
2685
|
handleShow: se,
|
|
@@ -2687,7 +2687,7 @@ const du = he({
|
|
|
2687
2687
|
hideOnRouteChange: c,
|
|
2688
2688
|
processOnMount: !0
|
|
2689
2689
|
}), { showPortal: J, hidePortal: U, renderPortal: L } = Kn(h, y, W, "menu"), K = {
|
|
2690
|
-
anchorEl:
|
|
2690
|
+
anchorEl: O,
|
|
2691
2691
|
innerRef: y,
|
|
2692
2692
|
onClickOutside(w) {
|
|
2693
2693
|
if (e.persistent !== !0 && v.value === !0)
|
|
@@ -2717,7 +2717,7 @@ const du = he({
|
|
|
2717
2717
|
if (o = e.noRefocus === !1 ? document.activeElement : null, vl(G), J(), I(), u = void 0, w !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
2718
2718
|
const ee = Cn(w);
|
|
2719
2719
|
if (ee.left !== void 0) {
|
|
2720
|
-
const { top: ye, left: He } =
|
|
2720
|
+
const { top: ye, left: He } = O.value.getBoundingClientRect();
|
|
2721
2721
|
u = { left: ee.left - He, top: ee.top - ye };
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
@@ -2726,13 +2726,13 @@ const du = he({
|
|
|
2726
2726
|
$
|
|
2727
2727
|
)), e.noFocus !== !0 && document.activeElement.blur(), C(() => {
|
|
2728
2728
|
$(), e.noFocus !== !0 && F();
|
|
2729
|
-
}),
|
|
2729
|
+
}), A(() => {
|
|
2730
2730
|
s.platform.is.ios === !0 && (r = e.autoClose, y.value.click()), $(), J(!0), l("show", w);
|
|
2731
2731
|
}, e.transitionDuration);
|
|
2732
2732
|
}
|
|
2733
2733
|
function f(w) {
|
|
2734
2734
|
p(), U(), S(!0), o !== null && // menu was hidden from code or ESC plugin
|
|
2735
|
-
(w === void 0 || w.qClickOutside !== !0) && (((w && w.type.indexOf("key") === 0 ? o.closest('[tabindex]:not([tabindex^="-"])') : void 0) || o).focus(), o = null),
|
|
2735
|
+
(w === void 0 || w.qClickOutside !== !0) && (((w && w.type.indexOf("key") === 0 ? o.closest('[tabindex]:not([tabindex^="-"])') : void 0) || o).focus(), o = null), A(() => {
|
|
2736
2736
|
U(!0), l("hide", w);
|
|
2737
2737
|
}, e.transitionDuration);
|
|
2738
2738
|
}
|
|
@@ -2740,7 +2740,7 @@ const du = he({
|
|
|
2740
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);
|
|
2741
2741
|
}
|
|
2742
2742
|
function I() {
|
|
2743
|
-
(
|
|
2743
|
+
(O.value !== null || e.scrollTarget !== void 0) && (M.value = Zi(O.value, e.scrollTarget), R(M.value, $));
|
|
2744
2744
|
}
|
|
2745
2745
|
function j(w) {
|
|
2746
2746
|
r !== !0 ? (Qi(b, w), l("click", w)) : r = !1;
|
|
@@ -2755,7 +2755,7 @@ const du = he({
|
|
|
2755
2755
|
Jn({
|
|
2756
2756
|
targetEl: y.value,
|
|
2757
2757
|
offset: e.offset,
|
|
2758
|
-
anchorEl:
|
|
2758
|
+
anchorEl: O.value,
|
|
2759
2759
|
anchorOrigin: V.value,
|
|
2760
2760
|
selfOrigin: D.value,
|
|
2761
2761
|
absoluteOffset: u,
|
|
@@ -2917,11 +2917,11 @@ const pu = {
|
|
|
2917
2917
|
let h = null, b = null, s, y;
|
|
2918
2918
|
const v = d(
|
|
2919
2919
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
2920
|
-
), { preventBodyScroll: c } = gu(), { registerTimeout: m } = Xn(), { registerTick: C, removeTick: p } = Yn(), { transitionProps:
|
|
2920
|
+
), { preventBodyScroll: c } = gu(), { registerTimeout: m } = Xn(), { registerTick: C, removeTick: p } = Yn(), { transitionProps: A, transitionStyle: T } = Un(
|
|
2921
2921
|
e,
|
|
2922
2922
|
() => an[e.position][0],
|
|
2923
2923
|
() => an[e.position][1]
|
|
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:
|
|
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: O } = Kn(
|
|
2925
2925
|
o,
|
|
2926
2926
|
u,
|
|
2927
2927
|
G,
|
|
@@ -3031,7 +3031,7 @@ const pu = {
|
|
|
3031
3031
|
}) : null),
|
|
3032
3032
|
g(
|
|
3033
3033
|
dt,
|
|
3034
|
-
|
|
3034
|
+
A.value,
|
|
3035
3035
|
() => a.value === !0 ? g("div", {
|
|
3036
3036
|
ref: u,
|
|
3037
3037
|
class: U.value,
|
|
@@ -3042,10 +3042,10 @@ const pu = {
|
|
|
3042
3042
|
)
|
|
3043
3043
|
]);
|
|
3044
3044
|
}
|
|
3045
|
-
return
|
|
3045
|
+
return O;
|
|
3046
3046
|
}
|
|
3047
3047
|
});
|
|
3048
|
-
let
|
|
3048
|
+
let At = !1;
|
|
3049
3049
|
{
|
|
3050
3050
|
const e = document.createElement("div");
|
|
3051
3051
|
e.setAttribute("dir", "rtl"), Object.assign(e.style, {
|
|
@@ -3057,7 +3057,7 @@ let Ot = !1;
|
|
|
3057
3057
|
Object.assign(t.style, {
|
|
3058
3058
|
width: "1000px",
|
|
3059
3059
|
height: "1px"
|
|
3060
|
-
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3,
|
|
3060
|
+
}), document.body.appendChild(e), e.appendChild(t), e.scrollLeft = -1e3, At = e.scrollLeft >= 0, e.remove();
|
|
3061
3061
|
}
|
|
3062
3062
|
const pe = 1e3, yu = [
|
|
3063
3063
|
"start",
|
|
@@ -3090,7 +3090,7 @@ function tl(e, t, l, n, o, u, a, r) {
|
|
|
3090
3090
|
offsetStart: -a,
|
|
3091
3091
|
offsetEnd: -r
|
|
3092
3092
|
};
|
|
3093
|
-
if (o === !0 ? (e === window ? (s.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, s.scrollViewSize += document.documentElement.clientWidth) : (s.scrollStart = h.scrollLeft, s.scrollViewSize += h.clientWidth), s.scrollMaxSize = h.scrollWidth, u === !0 && (s.scrollStart = (
|
|
3093
|
+
if (o === !0 ? (e === window ? (s.scrollStart = window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, s.scrollViewSize += document.documentElement.clientWidth) : (s.scrollStart = h.scrollLeft, s.scrollViewSize += h.clientWidth), s.scrollMaxSize = h.scrollWidth, u === !0 && (s.scrollStart = (At === !0 ? s.scrollMaxSize - s.scrollViewSize : 0) - s.scrollStart)) : (e === window ? (s.scrollStart = window.pageYOffset || window.scrollY || document.body.scrollTop || 0, s.scrollViewSize += document.documentElement.clientHeight) : (s.scrollStart = h.scrollTop, s.scrollViewSize += h.clientHeight), s.scrollMaxSize = h.scrollHeight), l !== null)
|
|
3094
3094
|
for (let y = l.previousElementSibling; y !== null; y = y.previousElementSibling)
|
|
3095
3095
|
y.classList.contains("q-virtual-scroll--skip") === !1 && (s.offsetStart += y[b]);
|
|
3096
3096
|
if (n !== null)
|
|
@@ -3103,7 +3103,7 @@ function tl(e, t, l, n, o, u, a, r) {
|
|
|
3103
3103
|
return s;
|
|
3104
3104
|
}
|
|
3105
3105
|
function rn(e, t, l, n) {
|
|
3106
|
-
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (
|
|
3106
|
+
t === "end" && (t = (e === window ? document.body : e)[l === !0 ? "scrollWidth" : "scrollHeight"]), e === window ? l === !0 ? (n === !0 && (t = (At === !0 ? document.body.scrollWidth - document.documentElement.clientWidth : 0) - t), window.scrollTo(t, window.pageYOffset || window.scrollY || document.body.scrollTop || 0)) : window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, t) : l === !0 ? (n === !0 && (t = (At === !0 ? e.scrollWidth - e.offsetWidth : 0) - t), e.scrollLeft = t) : e.scrollTop = t;
|
|
3107
3107
|
}
|
|
3108
3108
|
function ut(e, t, l, n) {
|
|
3109
3109
|
if (l >= n)
|
|
@@ -3152,12 +3152,12 @@ function ku({
|
|
|
3152
3152
|
}) {
|
|
3153
3153
|
const o = ne(), { props: u, emit: a, proxy: r } = o, { $q: h } = r;
|
|
3154
3154
|
let b, s, y, v = [], c;
|
|
3155
|
-
const m = P(0), C = P(0), p = P({}),
|
|
3155
|
+
const m = P(0), C = P(0), p = P({}), A = P(null), T = P(null), k = P(null), M = P({ from: 0, to: 0 }), R = d(() => u.tableColspan !== void 0 ? u.tableColspan : 100);
|
|
3156
3156
|
n === void 0 && (n = d(() => u.virtualScrollItemSize));
|
|
3157
|
-
const B = d(() => n.value + ";" + u.virtualScrollHorizontal),
|
|
3157
|
+
const B = d(() => n.value + ";" + u.virtualScrollHorizontal), O = d(
|
|
3158
3158
|
() => B.value + ";" + u.virtualScrollSliceRatioBefore + ";" + u.virtualScrollSliceRatioAfter
|
|
3159
3159
|
);
|
|
3160
|
-
Z(
|
|
3160
|
+
Z(O, () => {
|
|
3161
3161
|
X();
|
|
3162
3162
|
}), Z(B, z);
|
|
3163
3163
|
function z() {
|
|
@@ -3173,7 +3173,7 @@ function ku({
|
|
|
3173
3173
|
const j = tl(
|
|
3174
3174
|
I,
|
|
3175
3175
|
l(),
|
|
3176
|
-
|
|
3176
|
+
A.value,
|
|
3177
3177
|
T.value,
|
|
3178
3178
|
u.virtualScrollHorizontal,
|
|
3179
3179
|
h.lang.rtl,
|
|
@@ -3195,7 +3195,7 @@ function ku({
|
|
|
3195
3195
|
const S = tl(
|
|
3196
3196
|
f,
|
|
3197
3197
|
l(),
|
|
3198
|
-
|
|
3198
|
+
A.value,
|
|
3199
3199
|
T.value,
|
|
3200
3200
|
u.virtualScrollHorizontal,
|
|
3201
3201
|
h.lang.rtl,
|
|
@@ -3316,7 +3316,7 @@ function ku({
|
|
|
3316
3316
|
$ != null && $.nodeType !== 8 && (f = tl(
|
|
3317
3317
|
$,
|
|
3318
3318
|
l(),
|
|
3319
|
-
|
|
3319
|
+
A.value,
|
|
3320
3320
|
T.value,
|
|
3321
3321
|
u.virtualScrollHorizontal,
|
|
3322
3322
|
h.lang.rtl,
|
|
@@ -3346,7 +3346,7 @@ function ku({
|
|
|
3346
3346
|
f === "tbody" ? g(f, {
|
|
3347
3347
|
class: "q-virtual-scroll__padding",
|
|
3348
3348
|
key: "before",
|
|
3349
|
-
ref:
|
|
3349
|
+
ref: A
|
|
3350
3350
|
}, [
|
|
3351
3351
|
g("tr", [
|
|
3352
3352
|
g("td", {
|
|
@@ -3357,7 +3357,7 @@ function ku({
|
|
|
3357
3357
|
]) : g(f, {
|
|
3358
3358
|
class: "q-virtual-scroll__padding",
|
|
3359
3359
|
key: "before",
|
|
3360
|
-
ref:
|
|
3360
|
+
ref: A,
|
|
3361
3361
|
style: { [I]: `${m.value}px`, ...j }
|
|
3362
3362
|
}),
|
|
3363
3363
|
g(f, {
|
|
@@ -3523,7 +3523,7 @@ const Tu = he({
|
|
|
3523
3523
|
inheritAttrs: !1,
|
|
3524
3524
|
props: {
|
|
3525
3525
|
...sn,
|
|
3526
|
-
...
|
|
3526
|
+
...On,
|
|
3527
3527
|
...hl,
|
|
3528
3528
|
// override of useFieldProps > modelValue
|
|
3529
3529
|
modelValue: {
|
|
@@ -3606,8 +3606,8 @@ const Tu = he({
|
|
|
3606
3606
|
],
|
|
3607
3607
|
setup(e, { slots: t, emit: l }) {
|
|
3608
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);
|
|
3609
|
-
let y = null, v = null, c, m, C, p = null,
|
|
3610
|
-
const R = P(null), B = P(null),
|
|
3609
|
+
let y = null, v = null, c, m, C, p = null, A, T, k, M;
|
|
3610
|
+
const R = P(null), B = P(null), O = 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
3611
|
virtualScrollSliceRange: V,
|
|
3612
3612
|
virtualScrollSliceSizeComputed: D,
|
|
3613
3613
|
localResetVirtualScroll: X,
|
|
@@ -3799,7 +3799,7 @@ const Tu = he({
|
|
|
3799
3799
|
);
|
|
3800
3800
|
while (_ !== -1 && _ !== r.value && De.value(e.options[_]) === !0);
|
|
3801
3801
|
r.value !== _ && (je(_), F(_), q !== !0 && e.useInput === !0 && e.fillInput === !0 && kt(
|
|
3802
|
-
_ >= 0 ? ce.value(e.options[_]) :
|
|
3802
|
+
_ >= 0 ? ce.value(e.options[_]) : A,
|
|
3803
3803
|
!0
|
|
3804
3804
|
));
|
|
3805
3805
|
}
|
|
@@ -3905,7 +3905,7 @@ const Tu = he({
|
|
|
3905
3905
|
}
|
|
3906
3906
|
}
|
|
3907
3907
|
function xl() {
|
|
3908
|
-
return m === !0 ? N.value :
|
|
3908
|
+
return m === !0 ? N.value : O.value !== null && O.value.contentEl !== null ? O.value.contentEl : void 0;
|
|
3909
3909
|
}
|
|
3910
3910
|
function oo() {
|
|
3911
3911
|
return xl();
|
|
@@ -3938,14 +3938,14 @@ const Tu = he({
|
|
|
3938
3938
|
}, () => g(
|
|
3939
3939
|
Tt,
|
|
3940
3940
|
() => g(
|
|
3941
|
-
|
|
3941
|
+
An,
|
|
3942
3942
|
() => g("span", {
|
|
3943
3943
|
[_.html === !0 ? "innerHTML" : "textContent"]: _.label
|
|
3944
3944
|
})
|
|
3945
3945
|
)
|
|
3946
3946
|
));
|
|
3947
3947
|
let q = ae("div", yt.value.map(i));
|
|
3948
|
-
return t["before-options"] !== void 0 && (q = t["before-options"]().concat(q)),
|
|
3948
|
+
return t["before-options"] !== void 0 && (q = t["before-options"]().concat(q)), Oe(t["after-options"], q);
|
|
3949
3949
|
}
|
|
3950
3950
|
function uo(i, q) {
|
|
3951
3951
|
const _ = q === !0 ? { ...bt.value, ...f.splitAttrs.attributes.value } : void 0, H = {
|
|
@@ -3968,7 +3968,7 @@ const Tu = he({
|
|
|
3968
3968
|
return i !== !0 && m === !0 && (Array.isArray(H.class) === !0 ? H.class = [...H.class, "no-pointer-events"] : H.class += " no-pointer-events"), g("input", H);
|
|
3969
3969
|
}
|
|
3970
3970
|
function ql(i) {
|
|
3971
|
-
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(i && i.target && i.target.qComposing === !0) && (kt(i.target.value || ""), C = !0,
|
|
3971
|
+
y !== null && (clearTimeout(y), y = null), v !== null && (clearTimeout(v), v = null), !(i && i.target && i.target.qComposing === !0) && (kt(i.target.value || ""), C = !0, A = h.value, f.focused.value !== !0 && (m !== !0 || b.value === !0) && f.focus(), e.onFilter !== void 0 && (y = setTimeout(() => {
|
|
3972
3972
|
y = null, Ne(h.value);
|
|
3973
3973
|
}, e.inputDebounce)));
|
|
3974
3974
|
}
|
|
@@ -3978,7 +3978,7 @@ const Tu = he({
|
|
|
3978
3978
|
}, e.inputDebounce));
|
|
3979
3979
|
}
|
|
3980
3980
|
function nt(i, q, _) {
|
|
3981
|
-
C = _ !== !0, e.useInput === !0 && (kt(i, !0), (q === !0 || _ !== !0) && (
|
|
3981
|
+
C = _ !== !0, e.useInput === !0 && (kt(i, !0), (q === !0 || _ !== !0) && (A = i), q !== !0 && Ne(i));
|
|
3982
3982
|
}
|
|
3983
3983
|
function Ne(i, q, _) {
|
|
3984
3984
|
if (e.onFilter === void 0 || q !== !0 && f.focused.value !== !0)
|
|
@@ -4006,7 +4006,7 @@ const Tu = he({
|
|
|
4006
4006
|
}
|
|
4007
4007
|
function ao() {
|
|
4008
4008
|
return g(du, {
|
|
4009
|
-
ref:
|
|
4009
|
+
ref: O,
|
|
4010
4010
|
class: $.value,
|
|
4011
4011
|
style: e.popupContentStyle,
|
|
4012
4012
|
modelValue: u.value,
|
|
@@ -4048,7 +4048,7 @@ const Tu = he({
|
|
|
4048
4048
|
}
|
|
4049
4049
|
function vo() {
|
|
4050
4050
|
const i = [
|
|
4051
|
-
g(
|
|
4051
|
+
g(Oi, {
|
|
4052
4052
|
class: `col-auto ${f.fieldClass.value}`,
|
|
4053
4053
|
...I.value,
|
|
4054
4054
|
for: f.targetUid.value,
|
|
@@ -4140,7 +4140,7 @@ const Tu = he({
|
|
|
4140
4140
|
}));
|
|
4141
4141
|
}
|
|
4142
4142
|
function _l() {
|
|
4143
|
-
a.value === !1 &&
|
|
4143
|
+
a.value === !1 && O.value !== null && O.value.updatePosition();
|
|
4144
4144
|
}
|
|
4145
4145
|
function El(i) {
|
|
4146
4146
|
i !== void 0 && Ee(i), l("popupShow", i), f.hasPopupOpen = !0, f.onControlFocusin(i);
|
|
@@ -4406,7 +4406,7 @@ const Tu = he({
|
|
|
4406
4406
|
})) : Ce("", !0),
|
|
4407
4407
|
ot(Tt, null, {
|
|
4408
4408
|
default: xe(() => [
|
|
4409
|
-
ot(
|
|
4409
|
+
ot(An, null, {
|
|
4410
4410
|
default: xe(() => [
|
|
4411
4411
|
Bt(Ze(C.opt.label), 1)
|
|
4412
4412
|
]),
|
|
@@ -4423,7 +4423,7 @@ const Tu = he({
|
|
|
4423
4423
|
}, 8, ["popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "autofocus", "disable", "loading"])
|
|
4424
4424
|
], 2));
|
|
4425
4425
|
}
|
|
4426
|
-
}),
|
|
4426
|
+
}), Au = /* @__PURE__ */ fl(Ru, [["__scopeId", "data-v-7e772358"]]), Lu = /* @__PURE__ */ mt({
|
|
4427
4427
|
__name: "index",
|
|
4428
4428
|
props: {
|
|
4429
4429
|
name: {},
|
|
@@ -4439,7 +4439,7 @@ const Tu = he({
|
|
|
4439
4439
|
}), Pu = /* @__PURE__ */ fl(Lu, [["__scopeId", "data-v-100590bf"]]);
|
|
4440
4440
|
export {
|
|
4441
4441
|
ai as A,
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4442
|
+
Ou as _,
|
|
4443
|
+
Pu as a,
|
|
4444
|
+
Au as i
|
|
4445
4445
|
};
|