@validol4ik/uikit 0.6.6 → 0.6.8
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/{AppButtonCopy-CcsAzDik.js → AppButtonCopy-Cpoz6v02.js} +5 -5
- package/dist/{AppButtonCopy-4GxKBcWx.cjs → AppButtonCopy-UfvMMx3V.cjs} +1 -1
- package/dist/AppSelect-9OPvOErd.cjs +1 -0
- package/dist/{AppSelect-BtUUK2ea.js → AppSelect-JVVrifzF.js} +678 -685
- package/dist/DropdownButton-BK_sSxXA.cjs +1 -0
- package/dist/{DropdownButton-CZwBMGcA.js → DropdownButton-pcp6W_7i.js} +98 -88
- package/dist/QMenu-B07m1rKE.cjs +1 -0
- package/dist/{QMenu-P1hqLpnc.js → QMenu-TwM_-QHE.js} +104 -109
- package/dist/{index-CtoDgaeS.js → index-B0t4qh6b.js} +373 -372
- package/dist/index-BEJxpQtP.cjs +1 -0
- package/dist/types/components/AppIcon/AppIcon.vue.d.ts +1 -1
- package/dist/types/components/buttons/AppButton/AppButton.vue.d.ts +2 -1
- package/dist/types/components/buttons/AppButton/types.d.ts +4 -1
- package/dist/types/components/buttons/DropdownButton/DropdownButton.vue.d.ts +2 -1
- package/dist/types/components/buttons/DropdownButton/types.d.ts +4 -1
- package/dist/types/components/form/AppCodeInput/AppCodeInput.vue.d.ts +3 -1
- package/dist/types/components/form/AppSelect/AppSelect.vue.d.ts +1 -1
- package/dist/types/components/form/AppToggle/AppToggle.vue.d.ts +3 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +3 -3
- package/dist/AppSelect-Tg7_Uj55.cjs +0 -1
- package/dist/DropdownButton-DXQzSYcl.cjs +0 -1
- package/dist/QMenu-cWjMyOHy.cjs +0 -1
- package/dist/index-CNCrt1w6.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as T, onMounted as oe, watch as S, computed as E, getCurrentInstance as R, nextTick as I, onBeforeUnmount as z, onUnmounted as Ie, h as Q, Teleport as Qe, onDeactivated as Se, Transition as _e } from "vue";
|
|
2
2
|
import { i as Ne, P as Ke, b as je, c as Ce, r as Ue, a as Ge } from "./focusout-DjvPXP_b.js";
|
|
3
|
-
import {
|
|
3
|
+
import { p as ce, z as de, i as Pe, B as Xe, n as J, D as Ye, E as X, c as He, F as ke, G as Ze, H as fe, a as Je, b as et, I as tt, h as ot, q as nt, s as lt } from "./index-B0t4qh6b.js";
|
|
4
4
|
let Y, V = 0;
|
|
5
5
|
const y = new Array(256);
|
|
6
6
|
for (let e = 0; e < 256; e++)
|
|
@@ -102,17 +102,16 @@ function ft({
|
|
|
102
102
|
Pe(u, 13) === !0 && c.toggle(u);
|
|
103
103
|
},
|
|
104
104
|
contextClick(u) {
|
|
105
|
-
l.hide(u),
|
|
105
|
+
l.hide(u), ce(u), I(() => {
|
|
106
106
|
l.show(u), u.qAnchorHandled = !0;
|
|
107
107
|
});
|
|
108
108
|
},
|
|
109
|
-
prevent:
|
|
109
|
+
prevent: ce,
|
|
110
110
|
mobileTouch(u) {
|
|
111
|
-
if (c.mobileCleanup(u), m(u) !== !0)
|
|
112
|
-
return;
|
|
111
|
+
if (c.mobileCleanup(u), m(u) !== !0) return;
|
|
113
112
|
l.hide(u), i.value.classList.add("non-selectable");
|
|
114
113
|
const d = u.target;
|
|
115
|
-
|
|
114
|
+
de(c, "anchor", [
|
|
116
115
|
[d, "touchmove", "mobileCleanup", "passive"],
|
|
117
116
|
[d, "touchend", "mobileCleanup", "passive"],
|
|
118
117
|
[d, "touchcancel", "mobileCleanup", "passive"],
|
|
@@ -135,9 +134,9 @@ function ft({
|
|
|
135
134
|
] : d = [
|
|
136
135
|
[i.value, "click", "toggle", "passive"],
|
|
137
136
|
[i.value, "keyup", "toggleKey", "passive"]
|
|
138
|
-
],
|
|
137
|
+
], de(c, "anchor", d);
|
|
139
138
|
});
|
|
140
|
-
function
|
|
139
|
+
function s() {
|
|
141
140
|
Xe(c, "anchor");
|
|
142
141
|
}
|
|
143
142
|
function g(u) {
|
|
@@ -162,15 +161,15 @@ function ft({
|
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
163
|
return S(() => n.contextMenu, (u) => {
|
|
165
|
-
i.value !== null && (
|
|
164
|
+
i.value !== null && (s(), o(u));
|
|
166
165
|
}), S(() => n.target, () => {
|
|
167
|
-
i.value !== null &&
|
|
166
|
+
i.value !== null && s(), p();
|
|
168
167
|
}), S(() => n.noParentEvent, (u) => {
|
|
169
|
-
i.value !== null && (u === !0 ?
|
|
168
|
+
i.value !== null && (u === !0 ? s() : o());
|
|
170
169
|
}), oe(() => {
|
|
171
170
|
p(), t !== !0 && n.modelValue === !0 && i.value === null && f("update:modelValue", !1);
|
|
172
171
|
}), z(() => {
|
|
173
|
-
a !== null && clearTimeout(a),
|
|
172
|
+
a !== null && clearTimeout(a), s();
|
|
174
173
|
}), {
|
|
175
174
|
anchorEl: i,
|
|
176
175
|
canShow: m,
|
|
@@ -181,8 +180,8 @@ function mt(e, t) {
|
|
|
181
180
|
const o = T(null);
|
|
182
181
|
let n;
|
|
183
182
|
function l(a, m) {
|
|
184
|
-
const c = `${m !== void 0 ? "add" : "remove"}EventListener`,
|
|
185
|
-
a !== window && a[c]("scroll",
|
|
183
|
+
const c = `${m !== void 0 ? "add" : "remove"}EventListener`, s = m !== void 0 ? m : n;
|
|
184
|
+
a !== window && a[c]("scroll", s, J.passive), window[c]("scroll", s, J.passive), n = m;
|
|
186
185
|
}
|
|
187
186
|
function f() {
|
|
188
187
|
o.value !== null && (l(o.value), o.value = null);
|
|
@@ -222,34 +221,32 @@ function gt({
|
|
|
222
221
|
// optional
|
|
223
222
|
}) {
|
|
224
223
|
const i = R(), { props: a, emit: m, proxy: c } = i;
|
|
225
|
-
let
|
|
224
|
+
let s;
|
|
226
225
|
function g(h) {
|
|
227
226
|
e.value === !0 ? d(h) : p(h);
|
|
228
227
|
}
|
|
229
228
|
function p(h) {
|
|
230
|
-
if (a.disable === !0 || h
|
|
231
|
-
return;
|
|
229
|
+
if (a.disable === !0 || (h == null ? void 0 : h.qAnchorHandled) === !0 || t !== void 0 && t(h) !== !0) return;
|
|
232
230
|
const v = a["onUpdate:modelValue"] !== void 0;
|
|
233
|
-
v === !0 && (m("update:modelValue", !0),
|
|
234
|
-
|
|
231
|
+
v === !0 && (m("update:modelValue", !0), s = h, I(() => {
|
|
232
|
+
s === h && (s = void 0);
|
|
235
233
|
})), (a.modelValue === null || v === !1) && u(h);
|
|
236
234
|
}
|
|
237
235
|
function u(h) {
|
|
238
236
|
e.value !== !0 && (e.value = !0, m("beforeShow", h), n !== void 0 ? n(h) : m("show", h));
|
|
239
237
|
}
|
|
240
238
|
function d(h) {
|
|
241
|
-
if (a.disable === !0)
|
|
242
|
-
return;
|
|
239
|
+
if (a.disable === !0) return;
|
|
243
240
|
const v = a["onUpdate:modelValue"] !== void 0;
|
|
244
|
-
v === !0 && (m("update:modelValue", !1),
|
|
245
|
-
|
|
241
|
+
v === !0 && (m("update:modelValue", !1), s = h, I(() => {
|
|
242
|
+
s === h && (s = void 0);
|
|
246
243
|
})), (a.modelValue === null || v === !1) && k(h);
|
|
247
244
|
}
|
|
248
245
|
function k(h) {
|
|
249
246
|
e.value !== !1 && (e.value = !1, m("beforeHide", h), l !== void 0 ? l(h) : m("hide", h));
|
|
250
247
|
}
|
|
251
248
|
function C(h) {
|
|
252
|
-
a.disable === !0 && h === !0 ? a["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : h === !0 !== e.value && (h === !0 ? u : k)(
|
|
249
|
+
a.disable === !0 && h === !0 ? a["onUpdate:modelValue"] !== void 0 && m("update:modelValue", !1) : h === !0 !== e.value && (h === !0 ? u : k)(s);
|
|
253
250
|
}
|
|
254
251
|
S(() => a.modelValue, C), o !== void 0 && Ye(i) === !0 && S(() => c.$route.fullPath, () => {
|
|
255
252
|
o.value === !0 && e.value === !0 && d();
|
|
@@ -272,7 +269,7 @@ function yt(e, t) {
|
|
|
272
269
|
function bt(e) {
|
|
273
270
|
e.remove();
|
|
274
271
|
}
|
|
275
|
-
const
|
|
272
|
+
const A = [];
|
|
276
273
|
function xt(e, t) {
|
|
277
274
|
do {
|
|
278
275
|
if (e.$options.name === "QMenu") {
|
|
@@ -280,7 +277,7 @@ function xt(e, t) {
|
|
|
280
277
|
return X(e);
|
|
281
278
|
} else if (e.__qPortal === !0) {
|
|
282
279
|
const o = X(e);
|
|
283
|
-
return o
|
|
280
|
+
return (o == null ? void 0 : o.$options.name) === "QPopupProxy" ? (e.hide(t), o) : e;
|
|
284
281
|
}
|
|
285
282
|
e = X(e);
|
|
286
283
|
} while (e != null);
|
|
@@ -310,19 +307,19 @@ function St(e, t, o, n) {
|
|
|
310
307
|
ve(a), f.value = !0;
|
|
311
308
|
return;
|
|
312
309
|
}
|
|
313
|
-
f.value = !1, l.value === !1 && (m === !1 && i === null && (i = yt(!1, n)), l.value = !0,
|
|
310
|
+
f.value = !1, l.value === !1 && (m === !1 && i === null && (i = yt(!1, n)), l.value = !0, A.push(e.proxy), at(a));
|
|
314
311
|
}
|
|
315
|
-
function
|
|
312
|
+
function s(g) {
|
|
316
313
|
if (f.value = !1, g !== !0) return;
|
|
317
314
|
ve(a), l.value = !1;
|
|
318
|
-
const p =
|
|
319
|
-
p !== -1 &&
|
|
315
|
+
const p = A.indexOf(e.proxy);
|
|
316
|
+
p !== -1 && A.splice(p, 1), i !== null && (bt(i), i = null);
|
|
320
317
|
}
|
|
321
318
|
return Ie(() => {
|
|
322
|
-
|
|
319
|
+
s(!0);
|
|
323
320
|
}), e.proxy.__qPortal = !0, je(e.proxy, "contentEl", () => t.value), {
|
|
324
321
|
showPortal: c,
|
|
325
|
-
hidePortal:
|
|
322
|
+
hidePortal: s,
|
|
326
323
|
portalIsActive: l,
|
|
327
324
|
portalIsAccessible: f,
|
|
328
325
|
renderPortal: () => m === !0 ? o() : l.value === !0 ? [Q(Qe, { to: i }, Q(Et, o))] : void 0
|
|
@@ -433,20 +430,20 @@ function Gt(e, t = !0) {
|
|
|
433
430
|
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"]));
|
|
434
431
|
}
|
|
435
432
|
const q = [];
|
|
436
|
-
let
|
|
437
|
-
function
|
|
438
|
-
|
|
433
|
+
let F;
|
|
434
|
+
function Bt(e) {
|
|
435
|
+
F = e.keyCode === 27;
|
|
439
436
|
}
|
|
440
|
-
function
|
|
441
|
-
|
|
437
|
+
function Ft() {
|
|
438
|
+
F === !0 && (F = !1);
|
|
442
439
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
440
|
+
function Lt(e) {
|
|
441
|
+
F === !0 && (F = !1, Pe(e, 27) === !0 && q[q.length - 1](e));
|
|
445
442
|
}
|
|
446
443
|
function We(e) {
|
|
447
|
-
window[e]("keydown",
|
|
444
|
+
window[e]("keydown", Bt), window[e]("blur", Ft), window[e]("keyup", Lt), F = !1;
|
|
448
445
|
}
|
|
449
|
-
function
|
|
446
|
+
function At(e) {
|
|
450
447
|
Ce.is.desktop === !0 && (q.push(e), q.length === 1 && We("addEventListener"));
|
|
451
448
|
}
|
|
452
449
|
function pe(e) {
|
|
@@ -456,19 +453,17 @@ function pe(e) {
|
|
|
456
453
|
const { notPassiveCapture: _ } = J, $ = [];
|
|
457
454
|
function N(e) {
|
|
458
455
|
const t = e.target;
|
|
459
|
-
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0)
|
|
460
|
-
|
|
461
|
-
let o = B.length - 1;
|
|
456
|
+
if (t === void 0 || t.nodeType === 8 || t.classList.contains("no-pointer-events") === !0) return;
|
|
457
|
+
let o = A.length - 1;
|
|
462
458
|
for (; o >= 0; ) {
|
|
463
|
-
const n =
|
|
459
|
+
const n = A[o].$;
|
|
464
460
|
if (n.type.name === "QTooltip") {
|
|
465
461
|
o--;
|
|
466
462
|
continue;
|
|
467
463
|
}
|
|
468
464
|
if (n.type.name !== "QDialog")
|
|
469
465
|
break;
|
|
470
|
-
if (n.props.seamless !== !0)
|
|
471
|
-
return;
|
|
466
|
+
if (n.props.seamless !== !0) return;
|
|
472
467
|
o--;
|
|
473
468
|
}
|
|
474
469
|
for (let n = $.length - 1; n >= 0; n--) {
|
|
@@ -553,8 +548,7 @@ function Te(e, t, o, n) {
|
|
|
553
548
|
};
|
|
554
549
|
}
|
|
555
550
|
function qe(e, t = 0) {
|
|
556
|
-
if (e.targetEl === null || e.anchorEl === null || t > 5)
|
|
557
|
-
return;
|
|
551
|
+
if (e.targetEl === null || e.anchorEl === null || t > 5) return;
|
|
558
552
|
if (e.targetEl.offsetHeight === 0 || e.targetEl.offsetWidth === 0) {
|
|
559
553
|
setTimeout(() => {
|
|
560
554
|
qe(e, t + 1);
|
|
@@ -570,12 +564,12 @@ function qe(e, t = 0) {
|
|
|
570
564
|
absoluteOffset: a,
|
|
571
565
|
fit: m,
|
|
572
566
|
cover: c,
|
|
573
|
-
maxHeight:
|
|
567
|
+
maxHeight: s,
|
|
574
568
|
maxWidth: g
|
|
575
569
|
} = e;
|
|
576
570
|
if (Ce.is.ios === !0 && window.visualViewport !== void 0) {
|
|
577
|
-
const
|
|
578
|
-
b !== ye && (
|
|
571
|
+
const B = document.body.style, { offsetLeft: b, offsetTop: x } = window.visualViewport;
|
|
572
|
+
b !== ye && (B.setProperty("--q-pe-left", b + "px"), ye = b), x !== be && (B.setProperty("--q-pe-top", x + "px"), be = x);
|
|
579
573
|
}
|
|
580
574
|
const { scrollLeft: p, scrollTop: u } = o, d = a === void 0 ? zt(l, c === !0 ? [0, 0] : n) : Vt(l, a, n);
|
|
581
575
|
Object.assign(o.style, {
|
|
@@ -584,21 +578,21 @@ function qe(e, t = 0) {
|
|
|
584
578
|
minWidth: null,
|
|
585
579
|
minHeight: null,
|
|
586
580
|
maxWidth: g,
|
|
587
|
-
maxHeight:
|
|
581
|
+
maxHeight: s,
|
|
588
582
|
visibility: "visible"
|
|
589
583
|
});
|
|
590
584
|
const { offsetWidth: k, offsetHeight: C } = o, { elWidth: M, elHeight: h } = m === !0 || c === !0 ? { elWidth: Math.max(d.width, k), elHeight: c === !0 ? Math.max(d.height, C) : C } : { elWidth: k, elHeight: C };
|
|
591
|
-
let v = { maxWidth: g, maxHeight:
|
|
585
|
+
let v = { maxWidth: g, maxHeight: s };
|
|
592
586
|
(m === !0 || c === !0) && (v.minWidth = d.width + "px", c === !0 && (v.minHeight = d.height + "px")), Object.assign(o.style, v);
|
|
593
587
|
const P = Ot(M, h);
|
|
594
588
|
let w = Te(d, P, f, i);
|
|
595
589
|
if (a === void 0 || n === void 0)
|
|
596
590
|
Z(w, d, P, f, i);
|
|
597
591
|
else {
|
|
598
|
-
const { top:
|
|
592
|
+
const { top: B, left: b } = w;
|
|
599
593
|
Z(w, d, P, f, i);
|
|
600
594
|
let x = !1;
|
|
601
|
-
if (w.top !==
|
|
595
|
+
if (w.top !== B) {
|
|
602
596
|
x = !0;
|
|
603
597
|
const H = 2 * n[1];
|
|
604
598
|
d.center = d.top -= H, d.bottom -= H + 2;
|
|
@@ -621,11 +615,11 @@ function Z(e, t, o, n, l) {
|
|
|
621
615
|
if (l.vertical === "center")
|
|
622
616
|
e.top = t[n.vertical] > m / 2 ? Math.max(0, m - f) : 0, e.maxHeight = Math.min(f, m);
|
|
623
617
|
else if (t[n.vertical] > m / 2) {
|
|
624
|
-
const
|
|
618
|
+
const s = Math.min(
|
|
625
619
|
m,
|
|
626
620
|
n.vertical === "center" ? t.center : n.vertical === l.vertical ? t.bottom : t.top
|
|
627
621
|
);
|
|
628
|
-
e.maxHeight = Math.min(f,
|
|
622
|
+
e.maxHeight = Math.min(f, s), e.top = Math.max(0, s - f);
|
|
629
623
|
} else
|
|
630
624
|
e.top = Math.max(
|
|
631
625
|
0,
|
|
@@ -635,11 +629,11 @@ function Z(e, t, o, n, l) {
|
|
|
635
629
|
if (e.maxWidth = Math.min(i, c), l.horizontal === "middle")
|
|
636
630
|
e.left = t[n.horizontal] > c / 2 ? Math.max(0, c - i) : 0;
|
|
637
631
|
else if (t[n.horizontal] > c / 2) {
|
|
638
|
-
const
|
|
632
|
+
const s = Math.min(
|
|
639
633
|
c,
|
|
640
634
|
n.horizontal === "middle" ? t.middle : n.horizontal === l.horizontal ? t.right : t.left
|
|
641
635
|
);
|
|
642
|
-
e.maxWidth = Math.min(i,
|
|
636
|
+
e.maxWidth = Math.min(i, s), e.left = Math.max(0, s - e.maxWidth);
|
|
643
637
|
} else
|
|
644
638
|
e.left = Math.max(
|
|
645
639
|
0,
|
|
@@ -652,11 +646,12 @@ const Xt = He({
|
|
|
652
646
|
props: {
|
|
653
647
|
...dt,
|
|
654
648
|
...ht,
|
|
655
|
-
...
|
|
649
|
+
...Je,
|
|
656
650
|
...Ct,
|
|
657
651
|
persistent: Boolean,
|
|
658
652
|
autoClose: Boolean,
|
|
659
653
|
separateClosePopup: Boolean,
|
|
654
|
+
noEscDismiss: Boolean,
|
|
660
655
|
noRouteDismiss: Boolean,
|
|
661
656
|
noRefocus: Boolean,
|
|
662
657
|
noFocus: Boolean,
|
|
@@ -693,87 +688,87 @@ const Xt = He({
|
|
|
693
688
|
],
|
|
694
689
|
setup(e, { slots: t, emit: o, attrs: n }) {
|
|
695
690
|
let l = null, f, i, a;
|
|
696
|
-
const m = R(), { proxy: c } = m, { $q:
|
|
691
|
+
const m = R(), { proxy: c } = m, { $q: s } = c, g = T(null), p = T(!1), u = E(
|
|
697
692
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
698
|
-
), d =
|
|
693
|
+
), d = et(e, s), { registerTick: k, removeTick: C } = Ht(), { registerTimeout: M } = kt(), { transitionProps: h, transitionStyle: v } = Pt(e), { localScrollTarget: P, changeScrollEvent: w, unconfigureScrollTarget: B } = mt(e, re), { anchorEl: b, canShow: x } = ft({ showing: p }), { hide: H } = gt({
|
|
699
694
|
showing: p,
|
|
700
695
|
canShow: x,
|
|
701
|
-
handleShow:
|
|
696
|
+
handleShow: Ae,
|
|
702
697
|
handleHide: De,
|
|
703
698
|
hideOnRouteChange: u,
|
|
704
699
|
processOnMount: !0
|
|
705
700
|
}), { showPortal: ne, hidePortal: le, renderPortal: $e } = St(m, g, ze, "menu"), K = {
|
|
706
701
|
anchorEl: b,
|
|
707
702
|
innerRef: g,
|
|
708
|
-
onClickOutside(
|
|
703
|
+
onClickOutside(r) {
|
|
709
704
|
if (e.persistent !== !0 && p.value === !0)
|
|
710
|
-
return H(
|
|
711
|
-
(
|
|
705
|
+
return H(r), // always prevent touch event
|
|
706
|
+
(r.type === "touchstart" || r.target.classList.contains("q-dialog__backdrop")) && lt(r), !0;
|
|
712
707
|
}
|
|
713
708
|
}, ie = E(
|
|
714
709
|
() => Ee(
|
|
715
710
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
716
|
-
|
|
711
|
+
s.lang.rtl
|
|
717
712
|
)
|
|
718
|
-
),
|
|
713
|
+
), Be = E(() => e.cover === !0 ? ie.value : Ee(e.self || "top start", s.lang.rtl)), Fe = E(
|
|
719
714
|
() => (e.square === !0 ? " q-menu--square" : "") + (d.value === !0 ? " q-menu--dark q-dark" : "")
|
|
720
|
-
),
|
|
715
|
+
), Le = E(() => e.autoClose === !0 ? { onClick: Re } : {}), ue = E(
|
|
721
716
|
() => p.value === !0 && e.persistent !== !0
|
|
722
717
|
);
|
|
723
|
-
S(ue, (
|
|
724
|
-
|
|
718
|
+
S(ue, (r) => {
|
|
719
|
+
r === !0 ? (At(U), Dt(K)) : (pe(U), we(K));
|
|
725
720
|
});
|
|
726
721
|
function j() {
|
|
727
722
|
rt(() => {
|
|
728
|
-
let
|
|
729
|
-
|
|
723
|
+
let r = g.value;
|
|
724
|
+
r && r.contains(document.activeElement) !== !0 && (r = r.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || r.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || r.querySelector("[autofocus], [data-autofocus]") || r, r.focus({ preventScroll: !0 }));
|
|
730
725
|
});
|
|
731
726
|
}
|
|
732
|
-
function
|
|
733
|
-
if (l = e.noRefocus === !1 ? document.activeElement : null, Ge(se), ne(), re(), f = void 0,
|
|
734
|
-
const G = tt(
|
|
727
|
+
function Ae(r) {
|
|
728
|
+
if (l = e.noRefocus === !1 ? document.activeElement : null, Ge(se), ne(), re(), f = void 0, r !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
729
|
+
const G = tt(r);
|
|
735
730
|
if (G.left !== void 0) {
|
|
736
731
|
const { top: Ve, left: Oe } = b.value.getBoundingClientRect();
|
|
737
732
|
f = { left: G.left - Oe, top: G.top - Ve };
|
|
738
733
|
}
|
|
739
734
|
}
|
|
740
735
|
i === void 0 && (i = S(
|
|
741
|
-
() =>
|
|
742
|
-
|
|
736
|
+
() => s.screen.width + "|" + s.screen.height + "|" + e.self + "|" + e.anchor + "|" + s.lang.rtl,
|
|
737
|
+
L
|
|
743
738
|
)), e.noFocus !== !0 && document.activeElement.blur(), k(() => {
|
|
744
|
-
|
|
739
|
+
L(), e.noFocus !== !0 && j();
|
|
745
740
|
}), M(() => {
|
|
746
|
-
|
|
741
|
+
s.platform.is.ios === !0 && (a = e.autoClose, g.value.click()), L(), ne(!0), o("show", r);
|
|
747
742
|
}, e.transitionDuration);
|
|
748
743
|
}
|
|
749
|
-
function De(
|
|
744
|
+
function De(r) {
|
|
750
745
|
C(), le(), ae(!0), l !== null && // menu was hidden from code or ESC plugin
|
|
751
|
-
(
|
|
752
|
-
le(!0), o("hide",
|
|
746
|
+
(r === void 0 || r.qClickOutside !== !0) && ((((r == null ? void 0 : r.type.indexOf("key")) === 0 ? l.closest('[tabindex]:not([tabindex^="-"])') : void 0) || l).focus(), l = null), M(() => {
|
|
747
|
+
le(!0), o("hide", r);
|
|
753
748
|
}, e.transitionDuration);
|
|
754
749
|
}
|
|
755
|
-
function ae(
|
|
756
|
-
f = void 0, i !== void 0 && (i(), i = void 0), (
|
|
750
|
+
function ae(r) {
|
|
751
|
+
f = void 0, i !== void 0 && (i(), i = void 0), (r === !0 || p.value === !0) && (Ue(se), B(), we(K), pe(U)), r !== !0 && (l = null);
|
|
757
752
|
}
|
|
758
753
|
function re() {
|
|
759
|
-
(b.value !== null || e.scrollTarget !== void 0) && (P.value = qt(b.value, e.scrollTarget), w(P.value,
|
|
754
|
+
(b.value !== null || e.scrollTarget !== void 0) && (P.value = qt(b.value, e.scrollTarget), w(P.value, L));
|
|
760
755
|
}
|
|
761
|
-
function Re(
|
|
762
|
-
a !== !0 ? (xt(c,
|
|
756
|
+
function Re(r) {
|
|
757
|
+
a !== !0 ? (xt(c, r), o("click", r)) : a = !1;
|
|
763
758
|
}
|
|
764
|
-
function se(
|
|
765
|
-
ue.value === !0 && e.noFocus !== !0 &&
|
|
759
|
+
function se(r) {
|
|
760
|
+
ue.value === !0 && e.noFocus !== !0 && nt(g.value, r.target) !== !0 && j();
|
|
766
761
|
}
|
|
767
|
-
function U(
|
|
768
|
-
o("escapeKey"), H(
|
|
762
|
+
function U(r) {
|
|
763
|
+
e.noEscDismiss !== !0 && (o("escapeKey"), H(r));
|
|
769
764
|
}
|
|
770
|
-
function
|
|
765
|
+
function L() {
|
|
771
766
|
qe({
|
|
772
767
|
targetEl: g.value,
|
|
773
768
|
offset: e.offset,
|
|
774
769
|
anchorEl: b.value,
|
|
775
770
|
anchorOrigin: ie.value,
|
|
776
|
-
selfOrigin:
|
|
771
|
+
selfOrigin: Be.value,
|
|
777
772
|
absoluteOffset: f,
|
|
778
773
|
fit: e.fit,
|
|
779
774
|
cover: e.cover,
|
|
@@ -791,36 +786,36 @@ const Xt = He({
|
|
|
791
786
|
ref: g,
|
|
792
787
|
tabindex: -1,
|
|
793
788
|
class: [
|
|
794
|
-
"q-menu q-position-engine scroll" +
|
|
789
|
+
"q-menu q-position-engine scroll" + Fe.value,
|
|
795
790
|
n.class
|
|
796
791
|
],
|
|
797
792
|
style: [
|
|
798
793
|
n.style,
|
|
799
794
|
v.value
|
|
800
795
|
],
|
|
801
|
-
...
|
|
802
|
-
},
|
|
796
|
+
...Le.value
|
|
797
|
+
}, ot(t.default)) : null
|
|
803
798
|
);
|
|
804
799
|
}
|
|
805
|
-
return z(ae), Object.assign(c, { focus: j, updatePosition:
|
|
800
|
+
return z(ae), Object.assign(c, { focus: j, updatePosition: L }), $e;
|
|
806
801
|
}
|
|
807
802
|
});
|
|
808
803
|
export {
|
|
809
804
|
Xt as Q,
|
|
810
805
|
rt as a,
|
|
811
806
|
jt as b,
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
807
|
+
vt as c,
|
|
808
|
+
Ct as d,
|
|
809
|
+
ht as e,
|
|
810
|
+
kt as f,
|
|
816
811
|
Ut as g,
|
|
817
812
|
Gt as h,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
813
|
+
Ht as i,
|
|
814
|
+
Pt as j,
|
|
815
|
+
St as k,
|
|
816
|
+
gt as l,
|
|
817
|
+
pe as m,
|
|
818
|
+
At as n,
|
|
824
819
|
Kt as r,
|
|
825
820
|
Nt as u
|
|
826
821
|
};
|