@stock-in-the-channel/sinch-vue-components 0.0.309 → 0.0.310
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.es.js +799 -796
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -796,28 +796,28 @@ var Fe = ye({ name: "QBtn", props: { ...dc, percentage: Number, darkPercentage:
|
|
|
796
796
|
const { proxy: r } = qe(), { classes: o, style: a, innerClasses: i, attributes: l, hasLink: u, linkTag: c, navigateOnClick: s, isActionable: f } = mb(e), d = N(null), v = N(null);
|
|
797
797
|
let m, w = null, _ = null;
|
|
798
798
|
const g = b(() => e.label !== void 0 && e.label !== null && e.label !== ""), S = b(() => e.disable !== !0 && e.ripple !== !1 && { keyCodes: u.value === !0 ? [13, 32] : [13], ...e.ripple === !0 ? {} : e.ripple }), h = b(() => ({ center: e.round })), y = b(() => {
|
|
799
|
-
const
|
|
800
|
-
return
|
|
799
|
+
const U = Math.max(0, Math.min(100, e.percentage));
|
|
800
|
+
return U > 0 ? { transition: "transform 0.6s", transform: `translateX(${U - 100}%)` } : {};
|
|
801
801
|
}), k = b(() => {
|
|
802
802
|
if (e.loading === !0)
|
|
803
803
|
return { onMousedown: $, onTouchstart: $, onClick: $, onKeydown: $, onKeyup: $ };
|
|
804
804
|
if (f.value === !0) {
|
|
805
|
-
const
|
|
805
|
+
const U = { onClick: x, onKeydown: O, onMousedown: T };
|
|
806
806
|
if (r.$q.platform.has.touch === !0) {
|
|
807
|
-
const
|
|
808
|
-
|
|
807
|
+
const J = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
808
|
+
U[`onTouchstart${J}`] = I;
|
|
809
809
|
}
|
|
810
|
-
return
|
|
810
|
+
return U;
|
|
811
811
|
}
|
|
812
812
|
return { onClick: ct };
|
|
813
813
|
}), E = b(() => ({ ref: d, class: "q-btn q-btn-item non-selectable no-outline " + o.value, style: a.value, ...l.value, ...k.value }));
|
|
814
|
-
function x(
|
|
814
|
+
function x(U) {
|
|
815
815
|
if (d.value !== null) {
|
|
816
|
-
if (
|
|
817
|
-
if (
|
|
816
|
+
if (U !== void 0) {
|
|
817
|
+
if (U.defaultPrevented === !0)
|
|
818
818
|
return;
|
|
819
|
-
const
|
|
820
|
-
if (e.type === "submit" &&
|
|
819
|
+
const J = document.activeElement;
|
|
820
|
+
if (e.type === "submit" && J !== document.body && d.value.contains(J) === !1 && J.contains(d.value) === !1) {
|
|
821
821
|
d.value.focus();
|
|
822
822
|
const oe = () => {
|
|
823
823
|
document.removeEventListener("keydown", ct, !0), document.removeEventListener("keyup", oe, Qn), d.value !== null && d.value.removeEventListener("blur", oe, Qn);
|
|
@@ -825,46 +825,46 @@ var Fe = ye({ name: "QBtn", props: { ...dc, percentage: Number, darkPercentage:
|
|
|
825
825
|
document.addEventListener("keydown", ct, !0), document.addEventListener("keyup", oe, Qn), d.value.addEventListener("blur", oe, Qn);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
s(
|
|
828
|
+
s(U);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
|
-
function O(
|
|
832
|
-
d.value !== null && (n("keydown",
|
|
831
|
+
function O(U) {
|
|
832
|
+
d.value !== null && (n("keydown", U), Gn(U, [13, 32]) === !0 && jo !== d.value && (jo !== null && M(), U.defaultPrevented !== !0 && (d.value.focus(), jo = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", D, !0), d.value.addEventListener("blur", D, Qn)), ct(U)));
|
|
833
833
|
}
|
|
834
|
-
function I(
|
|
835
|
-
d.value !== null && (n("touchstart",
|
|
834
|
+
function I(U) {
|
|
835
|
+
d.value !== null && (n("touchstart", U), U.defaultPrevented !== !0 && (Uo !== d.value && (Uo !== null && M(), Uo = d.value, w = U.target, w.addEventListener("touchcancel", D, Qn), w.addEventListener("touchend", D, Qn)), m = !0, _ !== null && clearTimeout(_), _ = setTimeout(() => {
|
|
836
836
|
_ = null, m = !1;
|
|
837
837
|
}, 200)));
|
|
838
838
|
}
|
|
839
|
-
function T(
|
|
840
|
-
d.value !== null && (
|
|
839
|
+
function T(U) {
|
|
840
|
+
d.value !== null && (U.qSkipRipple = m === !0, n("mousedown", U), U.defaultPrevented !== !0 && zo !== d.value && (zo !== null && M(), zo = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", D, Qn)));
|
|
841
841
|
}
|
|
842
|
-
function D(
|
|
843
|
-
if (d.value !== null && (
|
|
844
|
-
if (
|
|
845
|
-
if (jo === d.value && Gn(
|
|
846
|
-
const
|
|
847
|
-
|
|
842
|
+
function D(U) {
|
|
843
|
+
if (d.value !== null && (U === void 0 || U.type !== "blur" || document.activeElement !== d.value)) {
|
|
844
|
+
if (U !== void 0 && U.type === "keyup") {
|
|
845
|
+
if (jo === d.value && Gn(U, [13, 32]) === !0) {
|
|
846
|
+
const J = new MouseEvent("click", U);
|
|
847
|
+
J.qKeyEvent = !0, U.defaultPrevented === !0 && mn(J), U.cancelBubble === !0 && Kt(J), d.value.dispatchEvent(J), ct(U), U.qKeyEvent = !0;
|
|
848
848
|
}
|
|
849
|
-
n("keyup",
|
|
849
|
+
n("keyup", U);
|
|
850
850
|
}
|
|
851
851
|
M();
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
function M(
|
|
855
|
-
const
|
|
856
|
-
|
|
854
|
+
function M(U) {
|
|
855
|
+
const J = v.value;
|
|
856
|
+
U === !0 || Uo !== d.value && zo !== d.value || J === null || J === document.activeElement || (J.setAttribute("tabindex", -1), J.focus()), Uo === d.value && (w !== null && (w.removeEventListener("touchcancel", D, Qn), w.removeEventListener("touchend", D, Qn)), Uo = w = null), zo === d.value && (document.removeEventListener("mouseup", D, Qn), zo = null), jo === d.value && (document.removeEventListener("keyup", D, !0), d.value !== null && d.value.removeEventListener("blur", D, Qn), jo = null), d.value !== null && d.value.classList.remove("q-btn--active");
|
|
857
857
|
}
|
|
858
|
-
function $(
|
|
859
|
-
ct(
|
|
858
|
+
function $(U) {
|
|
859
|
+
ct(U), U.qSkipRipple = !0;
|
|
860
860
|
}
|
|
861
861
|
return ht(() => {
|
|
862
862
|
M(!0);
|
|
863
863
|
}), Object.assign(r, { click: x }), () => {
|
|
864
|
-
let
|
|
865
|
-
e.icon !== void 0 &&
|
|
866
|
-
const
|
|
867
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
864
|
+
let U = [];
|
|
865
|
+
e.icon !== void 0 && U.push(p(vt, { name: e.icon, left: e.stack === !1 && g.value === !0, role: "img", "aria-hidden": "true" })), g.value === !0 && U.push(p("span", { class: "block" }, [e.label])), U = Zt(t.default, U), e.iconRight !== void 0 && e.round === !1 && U.push(p(vt, { name: e.iconRight, right: e.stack === !1 && g.value === !0, role: "img", "aria-hidden": "true" }));
|
|
866
|
+
const J = [p("span", { class: "q-focus-helper", ref: v })];
|
|
867
|
+
return e.loading === !0 && e.percentage !== void 0 && J.push(p("span", { class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "") }, [p("span", { class: "q-btn__progress-indicator fit block", style: y.value })])), J.push(p("span", { class: "q-btn__content text-center col items-center q-anchor--skip " + i.value }, U)), e.loading !== null && J.push(p(pn, { name: "q-transition--fade" }, () => e.loading === !0 ? [p("span", { key: "loading", class: "absolute-full flex flex-center" }, t.loading !== void 0 ? t.loading() : [p(Zn)])] : null)), xe(p(c.value, E.value, J), [[Ql, S.value, void 0, h.value]]);
|
|
868
868
|
};
|
|
869
869
|
} }), qm = ye({ name: "QBtnGroup", props: { unelevated: Boolean, outline: Boolean, flat: Boolean, rounded: Boolean, square: Boolean, push: Boolean, stretch: Boolean, glossy: Boolean, spread: Boolean }, setup(e, { slots: t }) {
|
|
870
870
|
const n = b(() => {
|
|
@@ -1348,17 +1348,17 @@ function _s(e, t, n, r, o) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
var Fo = ye({ name: "QMenu", inheritAttrs: !1, props: { ...fc, ...Ra, ...wt, ...Ti, persistent: Boolean, autoClose: Boolean, separateClosePopup: Boolean, noRouteDismiss: Boolean, noRefocus: Boolean, noFocus: Boolean, fit: Boolean, cover: Boolean, square: Boolean, anchor: { type: String, validator: xl }, self: { type: String, validator: xl }, offset: { type: Array, validator: Um }, scrollTarget: { default: void 0 }, touchPosition: Boolean, maxHeight: { type: String, default: null }, maxWidth: { type: String, default: null } }, emits: [...Aa, "click", "escapeKey"], setup(e, { slots: t, emit: n, attrs: r }) {
|
|
1350
1350
|
let o, a, i, l = null;
|
|
1351
|
-
const u = qe(), { proxy: c } = u, { $q: s } = c, f = N(null), d = N(!1), v = b(() => e.persistent !== !0 && e.noRouteDismiss !== !0), m = St(e, s), { registerTick: w, removeTick: _ } = fa(), { registerTimeout: g } = wa(), { transitionProps: S, transitionStyle: h } = Wl(e), { localScrollTarget: y, changeScrollEvent: k, unconfigureScrollTarget: E } = Pm(e, Y), { anchorEl: x, canShow: O } = pc({ showing: d }), { hide: I } = La({ showing: d, canShow: O, handleShow:
|
|
1351
|
+
const u = qe(), { proxy: c } = u, { $q: s } = c, f = N(null), d = N(!1), v = b(() => e.persistent !== !0 && e.noRouteDismiss !== !0), m = St(e, s), { registerTick: w, removeTick: _ } = fa(), { registerTimeout: g } = wa(), { transitionProps: S, transitionStyle: h } = Wl(e), { localScrollTarget: y, changeScrollEvent: k, unconfigureScrollTarget: E } = Pm(e, Y), { anchorEl: x, canShow: O } = pc({ showing: d }), { hide: I } = La({ showing: d, canShow: O, handleShow: X, handleHide: Q, hideOnRouteChange: v, processOnMount: !0 }), { showPortal: T, hidePortal: D, renderPortal: M } = mc(u, f, ne, "menu"), $ = { anchorEl: x, innerRef: f, onClickOutside(P) {
|
|
1352
1352
|
if (e.persistent !== !0 && d.value === !0)
|
|
1353
1353
|
return I(P), (P.type === "touchstart" || P.target.classList.contains("q-dialog__backdrop")) && ct(P), !0;
|
|
1354
|
-
} },
|
|
1355
|
-
function
|
|
1354
|
+
} }, U = b(() => El(e.anchor || (e.cover === !0 ? "center middle" : "bottom start"), s.lang.rtl)), J = b(() => e.cover === !0 ? U.value : El(e.self || "top start", s.lang.rtl)), oe = b(() => (e.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")), B = b(() => e.autoClose === !0 ? { onClick: Z } : {}), F = b(() => d.value === !0 && e.persistent !== !0);
|
|
1355
|
+
function G() {
|
|
1356
1356
|
Da(() => {
|
|
1357
1357
|
let P = f.value;
|
|
1358
1358
|
P && P.contains(document.activeElement) !== !0 && (P = P.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || P.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || P.querySelector("[autofocus], [data-autofocus]") || P, P.focus({ preventScroll: !0 }));
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function X(P) {
|
|
1362
1362
|
if (l = e.noRefocus === !1 ? document.activeElement : null, Vm(le), T(), Y(), o = void 0, P !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
1363
1363
|
const ie = Dn(P);
|
|
1364
1364
|
if (ie.left !== void 0) {
|
|
@@ -1367,7 +1367,7 @@ var Fo = ye({ name: "QMenu", inheritAttrs: !1, props: { ...fc, ...Ra, ...wt, ...
|
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
1369
1369
|
a === void 0 && (a = me(() => s.screen.width + "|" + s.screen.height + "|" + e.self + "|" + e.anchor + "|" + s.lang.rtl, we)), e.noFocus !== !0 && document.activeElement.blur(), w(() => {
|
|
1370
|
-
we(), e.noFocus !== !0 &&
|
|
1370
|
+
we(), e.noFocus !== !0 && G();
|
|
1371
1371
|
}), g(() => {
|
|
1372
1372
|
s.platform.is.ios === !0 && (i = e.autoClose, f.value.click()), we(), T(!0), n("show", P);
|
|
1373
1373
|
}, e.transitionDuration);
|
|
@@ -1383,24 +1383,24 @@ var Fo = ye({ name: "QMenu", inheritAttrs: !1, props: { ...fc, ...Ra, ...wt, ...
|
|
|
1383
1383
|
function Y() {
|
|
1384
1384
|
x.value === null && e.scrollTarget === void 0 || (y.value = br(x.value, e.scrollTarget), k(y.value, we));
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Z(P) {
|
|
1387
1387
|
i !== !0 ? (Rm(c, P), n("click", P)) : i = !1;
|
|
1388
1388
|
}
|
|
1389
1389
|
function le(P) {
|
|
1390
|
-
F.value === !0 && e.noFocus !== !0 && Em(f.value, P.target) !== !0 &&
|
|
1390
|
+
F.value === !0 && e.noFocus !== !0 && Em(f.value, P.target) !== !0 && G();
|
|
1391
1391
|
}
|
|
1392
1392
|
function ae(P) {
|
|
1393
1393
|
n("escapeKey"), I(P);
|
|
1394
1394
|
}
|
|
1395
1395
|
function we() {
|
|
1396
|
-
hc({ targetEl: f.value, offset: e.offset, anchorEl: x.value, anchorOrigin:
|
|
1396
|
+
hc({ targetEl: f.value, offset: e.offset, anchorEl: x.value, anchorOrigin: U.value, selfOrigin: J.value, absoluteOffset: o, fit: e.fit, cover: e.cover, maxHeight: e.maxHeight, maxWidth: e.maxWidth });
|
|
1397
1397
|
}
|
|
1398
1398
|
function ne() {
|
|
1399
|
-
return p(pn, S.value, () => d.value === !0 ? p("div", { role: "menu", ...r, ref: f, tabindex: -1, class: ["q-menu q-position-engine scroll" + oe.value, r.class], style: [r.style, h.value], ...
|
|
1399
|
+
return p(pn, S.value, () => d.value === !0 ? p("div", { role: "menu", ...r, ref: f, tabindex: -1, class: ["q-menu q-position-engine scroll" + oe.value, r.class], style: [r.style, h.value], ...B.value }, Qe(t.default)) : null);
|
|
1400
1400
|
}
|
|
1401
1401
|
return me(F, (P) => {
|
|
1402
1402
|
P === !0 ? (Mm(ae), Bm($)) : (wl(ae), Cl($));
|
|
1403
|
-
}), ht(R), Object.assign(c, { focus:
|
|
1403
|
+
}), ht(R), Object.assign(c, { focus: G, updatePosition: we }), M;
|
|
1404
1404
|
} });
|
|
1405
1405
|
let ws, Fi = 0;
|
|
1406
1406
|
const En = new Array(256);
|
|
@@ -1605,8 +1605,8 @@ function Sc() {
|
|
|
1605
1605
|
let o, a;
|
|
1606
1606
|
const i = N(null), l = N(null);
|
|
1607
1607
|
function u($) {
|
|
1608
|
-
const
|
|
1609
|
-
x((n.$q.lang.rtl === !0 ? -1 : 1) * ($.direction ===
|
|
1608
|
+
const U = e.vertical === !0 ? "up" : "left";
|
|
1609
|
+
x((n.$q.lang.rtl === !0 ? -1 : 1) * ($.direction === U ? 1 : -1));
|
|
1610
1610
|
}
|
|
1611
1611
|
const c = b(() => [[Mb, u, void 0, { horizontal: e.vertical !== !0, vertical: e.vertical, mouse: !0 }]]), s = b(() => e.transitionPrev || `slide-${e.vertical === !0 ? "down" : "right"}`), f = b(() => e.transitionNext || `slide-${e.vertical === !0 ? "up" : "left"}`), d = b(() => `--q-transition-duration: ${e.transitionDuration}ms`), v = b(() => typeof e.modelValue == "string" || typeof e.modelValue == "number" ? e.modelValue : String(e.modelValue)), m = b(() => ({ include: e.keepAliveInclude, exclude: e.keepAliveExclude, max: e.keepAliveMax })), w = b(() => e.keepAliveInclude !== void 0 || e.keepAliveExclude !== void 0);
|
|
1612
1612
|
function _() {
|
|
@@ -1622,26 +1622,26 @@ function Sc() {
|
|
|
1622
1622
|
return $ != null && $ !== "";
|
|
1623
1623
|
}
|
|
1624
1624
|
function y($) {
|
|
1625
|
-
return o.findIndex((
|
|
1625
|
+
return o.findIndex((U) => U.props.name === $ && U.props.disable !== "" && U.props.disable !== !0);
|
|
1626
1626
|
}
|
|
1627
1627
|
function k() {
|
|
1628
1628
|
return o.filter(($) => $.props.disable !== "" && $.props.disable !== !0);
|
|
1629
1629
|
}
|
|
1630
1630
|
function E($) {
|
|
1631
|
-
const
|
|
1632
|
-
l.value !==
|
|
1631
|
+
const U = $ !== 0 && e.animated === !0 && i.value !== -1 ? "q-transition--" + ($ === -1 ? s.value : f.value) : null;
|
|
1632
|
+
l.value !== U && (l.value = U);
|
|
1633
1633
|
}
|
|
1634
|
-
function x($,
|
|
1635
|
-
let
|
|
1636
|
-
for (;
|
|
1637
|
-
const oe = o[
|
|
1634
|
+
function x($, U = i.value) {
|
|
1635
|
+
let J = U + $;
|
|
1636
|
+
for (; J > -1 && J < o.length; ) {
|
|
1637
|
+
const oe = o[J];
|
|
1638
1638
|
if (oe !== void 0 && oe.props.disable !== "" && oe.props.disable !== !0)
|
|
1639
1639
|
return E($), a = !0, t("update:modelValue", oe.props.name), void setTimeout(() => {
|
|
1640
1640
|
a = !1;
|
|
1641
1641
|
});
|
|
1642
|
-
|
|
1642
|
+
J += $;
|
|
1643
1643
|
}
|
|
1644
|
-
e.infinite === !0 && o.length !== 0 &&
|
|
1644
|
+
e.infinite === !0 && o.length !== 0 && U !== -1 && U !== o.length && x($, $ === -1 ? o.length : -1);
|
|
1645
1645
|
}
|
|
1646
1646
|
function O() {
|
|
1647
1647
|
const $ = y(e.modelValue);
|
|
@@ -1656,15 +1656,15 @@ function Sc() {
|
|
|
1656
1656
|
return e.animated === !0 ? [p(pn, { name: l.value }, I)] : I();
|
|
1657
1657
|
}
|
|
1658
1658
|
function D($) {
|
|
1659
|
-
return o = sc(Qe($.default, [])).filter((
|
|
1659
|
+
return o = sc(Qe($.default, [])).filter((U) => U.props !== null && U.props.slot === void 0 && h(U.props.name) === !0), o.length;
|
|
1660
1660
|
}
|
|
1661
1661
|
function M() {
|
|
1662
1662
|
return o;
|
|
1663
1663
|
}
|
|
1664
|
-
return me(() => e.modelValue, ($,
|
|
1665
|
-
const
|
|
1666
|
-
a !== !0 && E(
|
|
1667
|
-
t("transition", $,
|
|
1664
|
+
return me(() => e.modelValue, ($, U) => {
|
|
1665
|
+
const J = h($) === !0 ? y($) : -1;
|
|
1666
|
+
a !== !0 && E(J === -1 ? 0 : J < y(U) ? -1 : 1), i.value !== J && (i.value = J, t("beforeTransition", $, U), ft(() => {
|
|
1667
|
+
t("transition", $, U);
|
|
1668
1668
|
}));
|
|
1669
1669
|
}), Object.assign(n, { next: _, previous: g, goTo: S }), { panelIndex: i, panelDirectives: c, updatePanelsList: D, updatePanelIndex: O, getPanelContent: T, getEnabledPanels: k, getPanels: M, isValidPanelName: h, keepAliveProps: m, needsUniqueKeepAliveWrapper: w, goToPanelByOffset: x, goToPanel: S, nextPanel: _, previousPanel: g };
|
|
1670
1670
|
}
|
|
@@ -1718,10 +1718,10 @@ ye({ name: "QCarousel", props: { ...wt, ..._c, ...kc, transitionPrev: { type: St
|
|
|
1718
1718
|
const T = [];
|
|
1719
1719
|
if (e.navigation === !0) {
|
|
1720
1720
|
const D = t["navigation-icon"] !== void 0 ? t["navigation-icon"] : ($) => p(Fe, { key: "nav" + $.name, class: `q-carousel__navigation-icon q-carousel__navigation-icon--${$.active === !0 ? "" : "in"}active`, ...$.btnProps, onClick: $.onClick }), M = o - 1;
|
|
1721
|
-
T.push(O("buttons", ($,
|
|
1722
|
-
const
|
|
1723
|
-
return D({ index:
|
|
1724
|
-
c(
|
|
1721
|
+
T.push(O("buttons", ($, U) => {
|
|
1722
|
+
const J = $.props.name, oe = v.value === U;
|
|
1723
|
+
return D({ index: U, maxIndex: M, name: J, active: oe, btnProps: { icon: oe === !0 ? y.value : h.value, size: "sm", ...E.value }, onClick: () => {
|
|
1724
|
+
c(J);
|
|
1725
1725
|
} });
|
|
1726
1726
|
}));
|
|
1727
1727
|
} else if (e.thumbnails === !0) {
|
|
@@ -1829,8 +1829,8 @@ function Wm(e, t) {
|
|
|
1829
1829
|
n.disable !== !0 && k(M, "unshift", ` q-${e}__native absolute q-ma-none q-pa-none`);
|
|
1830
1830
|
const $ = [p("div", { class: h.value, style: f.value, "aria-hidden": "true" }, M)];
|
|
1831
1831
|
c.value !== null && $.push(c.value);
|
|
1832
|
-
const
|
|
1833
|
-
return
|
|
1832
|
+
const U = n.label !== void 0 ? Zt(r.default, [n.label]) : Qe(r.default);
|
|
1833
|
+
return U !== void 0 && $.push(p("div", { class: `q-${e}__label q-anchor--skip` }, U)), p("div", { ref: u, class: S.value, ...E.value, onClick: x, onKeydown: I, onKeyup: T }, $);
|
|
1834
1834
|
};
|
|
1835
1835
|
}
|
|
1836
1836
|
const Bb = p("div", { key: "svg", class: "q-checkbox__bg absolute" }, [p("svg", { class: "q-checkbox__svg fit absolute-full", viewBox: "0 0 24 24" }, [p("path", { class: "q-checkbox__truthy", fill: "none", d: "M1.73,12.91 8.1,19.28 22.79,4.59" }), p("path", { class: "q-checkbox__indet", d: "M4,14H20V10H4" })])]);
|
|
@@ -1983,11 +1983,11 @@ var Jn = fr({ name: "touch-pan", beforeMount(e, { value: t, modifiers: n }) {
|
|
|
1983
1983
|
} });
|
|
1984
1984
|
const mf = "q-slider__marker-labels", Hb = (e) => ({ value: e }), Qb = ({ marker: e }) => p("div", { key: e.value, style: e.style, class: e.classes }, e.label), Tc = [34, 37, 40, 33, 39, 38], Xm = { ...wt, ...tr, min: { type: Number, default: 0 }, max: { type: Number, default: 100 }, innerMin: Number, innerMax: Number, step: { type: Number, default: 1, validator: (e) => e >= 0 }, snap: Boolean, vertical: Boolean, reverse: Boolean, hideSelection: Boolean, color: String, markerLabelsClass: String, label: Boolean, labelColor: String, labelTextColor: String, labelAlways: Boolean, switchLabelSide: Boolean, markers: [Boolean, Number], markerLabels: [Boolean, Array, Object, Function], switchMarkerLabelsSide: Boolean, trackImg: String, trackColor: String, innerTrackImg: String, innerTrackColor: String, selectionColor: String, selectionImg: String, thumbSize: { type: String, default: "20px" }, trackSize: { type: String, default: "4px" }, disable: Boolean, readonly: Boolean, dense: Boolean, tabindex: [String, Number], thumbColor: String, thumbPath: { type: String, default: "M 4, 10 a 6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0" } }, Zm = ["pan", "update:modelValue", "change"];
|
|
1985
1985
|
function eh({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r }) {
|
|
1986
|
-
const { props: o, emit: a, slots: i, proxy: { $q: l } } = qe(), u = St(o, l), c = io(r), s = N(!1), f = N(!1), d = N(!1), v = N(!1), m = b(() => o.vertical === !0 ? "--v" : "--h"), w = b(() => "-" + (o.switchLabelSide === !0 ? "switched" : "standard")), _ = b(() => o.vertical === !0 ? o.reverse === !0 : o.reverse !== (l.lang.rtl === !0)), g = b(() => isNaN(o.innerMin) === !0 || o.innerMin < o.min ? o.min : o.innerMin), S = b(() => isNaN(o.innerMax) === !0 || o.innerMax > o.max ? o.max : o.innerMax), h = b(() => o.disable !== !0 && o.readonly !== !0 && g.value < S.value), y = b(() => (String(o.step).trim().split(".")[1] || "").length), k = b(() => o.step === 0 ? 1 : o.step), E = b(() => h.value === !0 ? o.tabindex || 0 : -1), x = b(() => o.max - o.min), O = b(() => S.value - g.value), I = b(() => be(g.value)), T = b(() => be(S.value)), D = b(() => o.vertical === !0 ? _.value === !0 ? "bottom" : "top" : _.value === !0 ? "right" : "left"), M = b(() => o.vertical === !0 ? "height" : "width"), $ = b(() => o.vertical === !0 ? "width" : "height"),
|
|
1987
|
-
const se = { role: "slider", "aria-valuemin": g.value, "aria-valuemax": S.value, "aria-orientation":
|
|
1986
|
+
const { props: o, emit: a, slots: i, proxy: { $q: l } } = qe(), u = St(o, l), c = io(r), s = N(!1), f = N(!1), d = N(!1), v = N(!1), m = b(() => o.vertical === !0 ? "--v" : "--h"), w = b(() => "-" + (o.switchLabelSide === !0 ? "switched" : "standard")), _ = b(() => o.vertical === !0 ? o.reverse === !0 : o.reverse !== (l.lang.rtl === !0)), g = b(() => isNaN(o.innerMin) === !0 || o.innerMin < o.min ? o.min : o.innerMin), S = b(() => isNaN(o.innerMax) === !0 || o.innerMax > o.max ? o.max : o.innerMax), h = b(() => o.disable !== !0 && o.readonly !== !0 && g.value < S.value), y = b(() => (String(o.step).trim().split(".")[1] || "").length), k = b(() => o.step === 0 ? 1 : o.step), E = b(() => h.value === !0 ? o.tabindex || 0 : -1), x = b(() => o.max - o.min), O = b(() => S.value - g.value), I = b(() => be(g.value)), T = b(() => be(S.value)), D = b(() => o.vertical === !0 ? _.value === !0 ? "bottom" : "top" : _.value === !0 ? "right" : "left"), M = b(() => o.vertical === !0 ? "height" : "width"), $ = b(() => o.vertical === !0 ? "width" : "height"), U = b(() => o.vertical === !0 ? "vertical" : "horizontal"), J = b(() => {
|
|
1987
|
+
const se = { role: "slider", "aria-valuemin": g.value, "aria-valuemax": S.value, "aria-orientation": U.value, "data-step": o.step };
|
|
1988
1988
|
return o.disable === !0 ? se["aria-disabled"] = "true" : o.readonly === !0 && (se["aria-readonly"] = "true"), se;
|
|
1989
1989
|
}), oe = b(() => `q-slider q-slider${m.value} q-slider--${s.value === !0 ? "" : "in"}active inline no-wrap ` + (o.vertical === !0 ? "row" : "column") + (o.disable === !0 ? " disabled" : " q-slider--enabled" + (h.value === !0 ? " q-slider--editable" : "")) + (d.value === "both" ? " q-slider--focus" : "") + (o.label || o.labelAlways === !0 ? " q-slider--label" : "") + (o.labelAlways === !0 ? " q-slider--label-always" : "") + (u.value === !0 ? " q-slider--dark" : "") + (o.dense === !0 ? " q-slider--dense q-slider--dense" + m.value : ""));
|
|
1990
|
-
function
|
|
1990
|
+
function B(se) {
|
|
1991
1991
|
const Ce = "q-slider__" + se;
|
|
1992
1992
|
return `${Ce} ${Ce}${m.value} ${Ce}${m.value}${w.value}`;
|
|
1993
1993
|
}
|
|
@@ -1995,10 +1995,10 @@ function eh({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
|
|
|
1995
1995
|
const Ce = "q-slider__" + se;
|
|
1996
1996
|
return `${Ce} ${Ce}${m.value}`;
|
|
1997
1997
|
}
|
|
1998
|
-
const
|
|
1998
|
+
const G = b(() => {
|
|
1999
1999
|
const se = o.selectionColor || o.color;
|
|
2000
2000
|
return "q-slider__selection absolute" + (se !== void 0 ? ` text-${se}` : "");
|
|
2001
|
-
}),
|
|
2001
|
+
}), X = b(() => F("markers") + " absolute overflow-hidden"), Q = b(() => F("track-container")), R = b(() => B("pin")), Y = b(() => B("label")), Z = b(() => B("text-container")), le = b(() => B("marker-labels-container") + (o.markerLabelsClass !== void 0 ? ` ${o.markerLabelsClass}` : "")), ae = b(() => "q-slider__track relative-position no-outline" + (o.trackColor !== void 0 ? ` bg-${o.trackColor}` : "")), we = b(() => {
|
|
2002
2002
|
const se = { [$.value]: o.trackSize };
|
|
2003
2003
|
return o.trackImg !== void 0 && (se.backgroundImage = `url(${o.trackImg}) !important`), se;
|
|
2004
2004
|
}), ne = b(() => "q-slider__inner absolute" + (o.innerTrackColor !== void 0 ? ` bg-${o.innerTrackColor}` : "")), P = b(() => {
|
|
@@ -2068,7 +2068,7 @@ function eh({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
|
|
|
2068
2068
|
const se = i["marker-label"] || Qb;
|
|
2069
2069
|
return ge.value.map((Ce) => se({ marker: Ce, ..._e.value }));
|
|
2070
2070
|
}
|
|
2071
|
-
const de = b(() => [[Jn, Oe, void 0, { [
|
|
2071
|
+
const de = b(() => [[Jn, Oe, void 0, { [U.value]: !0, prevent: !0, stop: !0, mouse: !0, mouseAllDir: !0 }]]);
|
|
2072
2072
|
function Oe(se) {
|
|
2073
2073
|
se.isFinal === !0 ? (v.value !== void 0 && (t(se.evt), se.touch === !0 && e(!0), v.value = void 0, a("pan", "end")), s.value = !1, d.value = !1) : se.isFirst === !0 ? (v.value = n(se.evt), t(se.evt), e(), s.value = !0, a("pan", "start")) : (t(se.evt), e());
|
|
2074
2074
|
}
|
|
@@ -2097,12 +2097,12 @@ function eh({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
|
|
|
2097
2097
|
const Ce = b(() => f.value !== !1 || d.value !== se.focusValue && d.value !== "both" ? "" : " q-slider--focus"), Ye = b(() => `q-slider__thumb q-slider__thumb${m.value} q-slider__thumb${m.value}-${_.value === !0 ? "rtl" : "ltr"} absolute non-selectable` + Ce.value + (se.thumbColor.value !== void 0 ? ` text-${se.thumbColor.value}` : "")), it = b(() => ({ width: o.thumbSize, height: o.thumbSize, [D.value]: `${100 * se.ratio.value}%`, zIndex: d.value === se.focusValue ? 2 : void 0 })), Ue = b(() => se.labelColor.value !== void 0 ? ` text-${se.labelColor.value}` : ""), gt = b(() => Tt(se.ratio.value)), Mt = b(() => "q-slider__text" + (se.labelTextColor.value !== void 0 ? ` text-${se.labelTextColor.value}` : ""));
|
|
2098
2098
|
return () => {
|
|
2099
2099
|
const zt = [p("svg", { class: "q-slider__thumb-shape absolute-full", viewBox: "0 0 20 20", "aria-hidden": "true" }, [p("path", { d: o.thumbPath })]), p("div", { class: "q-slider__focus-ring fit" })];
|
|
2100
|
-
return o.label !== !0 && o.labelAlways !== !0 || (zt.push(p("div", { class: R.value + " absolute fit no-pointer-events" + Ue.value }, [p("div", { class: Y.value, style: { minWidth: o.thumbSize } }, [p("div", { class:
|
|
2100
|
+
return o.label !== !0 && o.labelAlways !== !0 || (zt.push(p("div", { class: R.value + " absolute fit no-pointer-events" + Ue.value }, [p("div", { class: Y.value, style: { minWidth: o.thumbSize } }, [p("div", { class: Z.value, style: gt.value }, [p("span", { class: Mt.value }, se.label.value)])])])), o.name !== void 0 && o.disable !== !0 && c(zt, "push")), p("div", { class: Ye.value, style: it.value, ...se.getNodeData() }, zt);
|
|
2101
2101
|
};
|
|
2102
2102
|
}
|
|
2103
2103
|
function Se(se, Ce, Ye, it) {
|
|
2104
2104
|
const Ue = [];
|
|
2105
|
-
o.innerTrackColor !== "transparent" && Ue.push(p("div", { key: "inner", class: ne.value, style: P.value })), o.selectionColor !== "transparent" && Ue.push(p("div", { key: "selection", class:
|
|
2105
|
+
o.innerTrackColor !== "transparent" && Ue.push(p("div", { key: "inner", class: ne.value, style: P.value })), o.selectionColor !== "transparent" && Ue.push(p("div", { key: "selection", class: G.value, style: se.value })), o.markers !== !1 && Ue.push(p("div", { key: "marker", class: X.value, style: Re.value })), it(Ue);
|
|
2106
2106
|
const gt = [Xn("div", { key: "trackC", class: Q.value, tabindex: Ce.value, ...Ye.value }, [p("div", { class: ae.value, style: we.value }, Ue)], "slide", h.value, () => de.value)];
|
|
2107
2107
|
if (o.markerLabels !== !1) {
|
|
2108
2108
|
const Mt = o.switchMarkerLabelsSide === !0 ? "unshift" : "push";
|
|
@@ -2112,7 +2112,7 @@ function eh({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
|
|
|
2112
2112
|
}
|
|
2113
2113
|
return ht(() => {
|
|
2114
2114
|
document.removeEventListener("mouseup", $e, !0);
|
|
2115
|
-
}), { state: { active: s, focus: d, preventFocus: f, dragging: v, editable: h, classes: oe, tabindex: E, attributes:
|
|
2115
|
+
}), { state: { active: s, focus: d, preventFocus: f, dragging: v, editable: h, classes: oe, tabindex: E, attributes: J, step: k, decimals: y, trackLen: x, innerMin: g, innerMinRatio: I, innerMax: S, innerMaxRatio: T, positionProp: D, sizeProp: M, isReversed: _ }, methods: { onActivate: ce, onMobileClick: Xe, onBlur: re, onKeyup: kt, getContent: Se, getThumbRenderFn: pe, convertRatioToModel: ie, convertModelToRatio: be, getDraggingRatio: Te } };
|
|
2116
2116
|
}
|
|
2117
2117
|
const Wb = () => ({});
|
|
2118
2118
|
var Ho = ye({ name: "QSlider", props: { ...Xm, modelValue: { required: !0, default: null, validator: (e) => typeof e == "number" || e === null }, labelValue: [String, Number] }, emits: Zm, setup(e, { emit: t }) {
|
|
@@ -2223,22 +2223,22 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2223
2223
|
if (h[de].name.value === Pe)
|
|
2224
2224
|
return !0;
|
|
2225
2225
|
return !1;
|
|
2226
|
-
}), D = b(() => `q-tabs__content--align-${w.value === !0 ? "left" : S.value === !0 ? "justify" : e.align}`), M = b(() => `q-tabs row no-wrap items-center q-tabs--${w.value === !0 ? "" : "not-"}scrollable q-tabs--${e.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${e.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${e.mobileArrows === !0 ? "" : "out"}-arrows` + (e.dense === !0 ? " q-tabs--dense" : "") + (e.shrink === !0 ? " col-shrink" : "") + (e.stretch === !0 ? " self-stretch" : "")), $ = b(() => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + D.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")),
|
|
2227
|
-
function
|
|
2228
|
-
m.value !== Ee && (de !== !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", Ee), Pe !== !0 && e["onUpdate:modelValue"] !== void 0 || (
|
|
2226
|
+
}), D = b(() => `q-tabs__content--align-${w.value === !0 ? "left" : S.value === !0 ? "justify" : e.align}`), M = b(() => `q-tabs row no-wrap items-center q-tabs--${w.value === !0 ? "" : "not-"}scrollable q-tabs--${e.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${e.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${e.mobileArrows === !0 ? "" : "out"}-arrows` + (e.dense === !0 ? " q-tabs--dense" : "") + (e.shrink === !0 ? " col-shrink" : "") + (e.stretch === !0 ? " self-stretch" : "")), $ = b(() => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + D.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")), U = b(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), J = b(() => e.vertical !== !0 && o.lang.rtl === !0), oe = b(() => di === !1 && J.value === !0);
|
|
2227
|
+
function B({ name: Ee, setCurrent: Pe, skipEmit: de }) {
|
|
2228
|
+
m.value !== Ee && (de !== !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", Ee), Pe !== !0 && e["onUpdate:modelValue"] !== void 0 || (X(m.value, Ee), m.value = Ee));
|
|
2229
2229
|
}
|
|
2230
2230
|
function F() {
|
|
2231
2231
|
a(() => {
|
|
2232
|
-
|
|
2232
|
+
G({ width: d.value.offsetWidth, height: d.value.offsetHeight });
|
|
2233
2233
|
});
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2236
|
-
if (
|
|
2235
|
+
function G(Ee) {
|
|
2236
|
+
if (U.value === void 0 || v.value === null)
|
|
2237
2237
|
return;
|
|
2238
|
-
const Pe = Ee[
|
|
2238
|
+
const Pe = Ee[U.value.container], de = Math.min(v.value[U.value.scroll], Array.prototype.reduce.call(v.value.children, (re, ce) => re + (ce[U.value.content] || 0), 0)), Oe = Pe > 0 && de > Pe;
|
|
2239
2239
|
w.value = Oe, Oe === !0 && i(R), S.value = Pe < parseInt(e.breakpoint, 10);
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function X(Ee, Pe) {
|
|
2242
2242
|
const de = Ee != null && Ee !== "" ? h.find((re) => re.name.value === Ee) : null, Oe = Pe != null && Pe !== "" ? h.find((re) => re.name.value === Pe) : null;
|
|
2243
2243
|
if (de && Oe) {
|
|
2244
2244
|
const re = de.tabIndicatorRef.value, ce = Oe.tabIndicatorRef.value;
|
|
@@ -2264,14 +2264,14 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2264
2264
|
if (Ee === null)
|
|
2265
2265
|
return;
|
|
2266
2266
|
const Pe = Ee.getBoundingClientRect(), de = e.vertical === !0 ? Ee.scrollTop : Math.abs(Ee.scrollLeft);
|
|
2267
|
-
|
|
2267
|
+
J.value === !0 ? (_.value = Math.ceil(de + Pe.width) < Ee.scrollWidth - 1, g.value = de > 0) : (_.value = de > 0, g.value = e.vertical === !0 ? Math.ceil(de + Pe.height) < Ee.scrollHeight : Math.ceil(de + Pe.width) < Ee.scrollWidth);
|
|
2268
2268
|
}
|
|
2269
2269
|
function Y(Ee) {
|
|
2270
2270
|
O !== null && clearInterval(O), O = setInterval(() => {
|
|
2271
2271
|
P(Ee) === !0 && ae();
|
|
2272
2272
|
}, 5);
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function Z() {
|
|
2275
2275
|
Y(oe.value === !0 ? Number.MAX_SAFE_INTEGER : 0);
|
|
2276
2276
|
}
|
|
2277
2277
|
function le() {
|
|
@@ -2290,12 +2290,12 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2290
2290
|
return Q(de[Oe - 1]), de[Oe - 1].focus(), !0;
|
|
2291
2291
|
const re = Ee === (e.vertical === !0 ? 38 : 37), ce = Ee === (e.vertical === !0 ? 40 : 39), $e = re === !0 ? -1 : ce === !0 ? 1 : void 0;
|
|
2292
2292
|
if ($e !== void 0) {
|
|
2293
|
-
const Xe =
|
|
2293
|
+
const Xe = J.value === !0 ? -1 : 1, kt = de.indexOf(Pe) + $e * Xe;
|
|
2294
2294
|
return kt >= 0 && kt < Oe && (Q(de[kt]), de[kt].focus({ preventScroll: !0 })), !0;
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
|
-
me(
|
|
2298
|
-
|
|
2297
|
+
me(J, R), me(() => e.modelValue, (Ee) => {
|
|
2298
|
+
B({ name: Ee, setCurrent: !0, skipEmit: !0 });
|
|
2299
2299
|
}), me(() => e.outsideArrows, F);
|
|
2300
2300
|
const ne = b(() => oe.value === !0 ? { get: (Ee) => Math.abs(Ee.scrollLeft), set: (Ee, Pe) => {
|
|
2301
2301
|
Ee.scrollLeft = -Pe;
|
|
@@ -2343,7 +2343,7 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2343
2343
|
Ce.hrefLen > Pe.hrefLen && (Ee = $e.name.value, Pe = Ce);
|
|
2344
2344
|
}
|
|
2345
2345
|
}
|
|
2346
|
-
Ee === null && h.some(($e) => $e.routeData === void 0 && $e.name.value === m.value) === !0 ||
|
|
2346
|
+
Ee === null && h.some(($e) => $e.routeData === void 0 && $e.name.value === m.value) === !0 || B({ name: Ee, setCurrent: !0 });
|
|
2347
2347
|
}
|
|
2348
2348
|
function Te(Ee) {
|
|
2349
2349
|
if (c(), k.value !== !0 && d.value !== null && Ee.target && typeof Ee.target.closest == "function") {
|
|
@@ -2378,7 +2378,7 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2378
2378
|
function _e(Ee) {
|
|
2379
2379
|
h.splice(h.indexOf(Ee), 1), y.value--, F(), E !== void 0 && Ee.routeData !== void 0 && (h.every((Pe) => Pe.routeData === void 0) === !0 && E(), L());
|
|
2380
2380
|
}
|
|
2381
|
-
const Re = { currentModel: m, tabProps: I, hasFocus: k, hasActiveTab: T, registerTab: ge, unregisterTab: _e, verifyRouteModel: L, updateModel:
|
|
2381
|
+
const Re = { currentModel: m, tabProps: I, hasFocus: k, hasActiveTab: T, registerTab: ge, unregisterTab: _e, verifyRouteModel: L, updateModel: B, onKbdNavigate: we, avoidRouteWatcher: !1 };
|
|
2382
2382
|
function ut() {
|
|
2383
2383
|
x !== null && clearTimeout(x), ae(), E !== void 0 && E();
|
|
2384
2384
|
}
|
|
@@ -2387,7 +2387,7 @@ var Il = ye({ name: "QTabs", props: { modelValue: [Number, String], align: { typ
|
|
|
2387
2387
|
et = E !== void 0, ut();
|
|
2388
2388
|
}), Lo(() => {
|
|
2389
2389
|
et === !0 && te(), F();
|
|
2390
|
-
}), () => p("div", { ref: d, class: M.value, role: "tablist", onFocusin: Te, onFocusout: j }, [p(qo, { onResize:
|
|
2390
|
+
}), () => p("div", { ref: d, class: M.value, role: "tablist", onFocusin: Te, onFocusout: j }, [p(qo, { onResize: G }), p("div", { ref: v, class: $.value, onScroll: R }, Qe(t.default)), p(vt, { class: "q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon" + (_.value === !0 ? "" : " q-tabs__arrow--faded"), name: e.leftIcon || o.iconSet.tabs[e.vertical === !0 ? "up" : "left"], onMousedownPassive: Z, onTouchstartPassive: Z, onMouseupPassive: ae, onMouseleavePassive: ae, onTouchendPassive: ae }), p(vt, { class: "q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon" + (g.value === !0 ? "" : " q-tabs__arrow--faded"), name: e.rightIcon || o.iconSet.tabs[e.vertical === !0 ? "down" : "right"], onMousedownPassive: le, onTouchstartPassive: le, onMouseupPassive: ae, onMouseleavePassive: ae, onTouchendPassive: ae })]);
|
|
2391
2391
|
} });
|
|
2392
2392
|
let Jb = 0;
|
|
2393
2393
|
const rh = ["click", "keydown"], oh = { icon: String, label: [Number, String], alert: [Boolean, String], alertIcon: String, name: { type: [Number, String], default: () => `t_${Jb++}` }, noCaps: Boolean, tabindex: [String, Number], disable: Boolean, contentClass: String, ripple: { type: [Boolean, Object], default: !0 } };
|
|
@@ -2552,11 +2552,11 @@ ye({ name: "QColor", props: { ...wt, ...tr, modelValue: String, defaultValue: St
|
|
|
2552
2552
|
const _e = Math.min(L, Math.max(0, ie - te.top)), Re = Math.round(100 * ge / j), ut = Math.round(100 * Math.max(0, Math.min(1, -_e / L + 1))), et = Sf({ h: d.value.h, s: Re, v: ut, a: S.value === !0 ? d.value.a : void 0 });
|
|
2553
2553
|
d.value.s = Re, d.value.v = ut, D(et, be);
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function U(P, ie) {
|
|
2556
2556
|
const be = Math.round(P), Te = Sf({ h: be, s: d.value.s, v: d.value.v, a: S.value === !0 ? d.value.a : void 0 });
|
|
2557
2557
|
d.value.h = be, D(Te, ie);
|
|
2558
2558
|
}
|
|
2559
|
-
function
|
|
2559
|
+
function J(P, ie, be, Te, j) {
|
|
2560
2560
|
if (Te !== void 0 && Kt(Te), !/^[0-9]+$/.test(P))
|
|
2561
2561
|
return void (j === !0 && n.$forceUpdate());
|
|
2562
2562
|
const L = Math.floor(Number(P));
|
|
@@ -2618,12 +2618,12 @@ ye({ name: "QColor", props: { ...wt, ...tr, modelValue: String, defaultValue: St
|
|
|
2618
2618
|
});
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
|
-
function
|
|
2621
|
+
function B(P) {
|
|
2622
2622
|
const ie = M(P), be = { r: ie.r, g: ie.g, b: ie.b, a: ie.a };
|
|
2623
2623
|
be.a === void 0 && (be.a = d.value.a), d.value.h = ie.h, d.value.s = ie.s, d.value.v = ie.v, D(be, !0);
|
|
2624
2624
|
}
|
|
2625
2625
|
function F(P) {
|
|
2626
|
-
P.isFinal ? $(P.position.left, P.position.top, !0) :
|
|
2626
|
+
P.isFinal ? $(P.position.left, P.position.top, !0) : G(P);
|
|
2627
2627
|
}
|
|
2628
2628
|
me(() => e.modelValue, (P) => {
|
|
2629
2629
|
const ie = M(P || e.defaultValue);
|
|
@@ -2634,10 +2634,10 @@ ye({ name: "QColor", props: { ...wt, ...tr, modelValue: String, defaultValue: St
|
|
|
2634
2634
|
ie.hex !== d.value.hex && (d.value = ie);
|
|
2635
2635
|
}
|
|
2636
2636
|
});
|
|
2637
|
-
const
|
|
2637
|
+
const G = Tm((P) => {
|
|
2638
2638
|
$(P.position.left, P.position.top);
|
|
2639
2639
|
}, 20);
|
|
2640
|
-
function
|
|
2640
|
+
function X(P) {
|
|
2641
2641
|
$(P.pageX - window.pageXOffset, P.pageY - window.pageYOffset, !0);
|
|
2642
2642
|
}
|
|
2643
2643
|
function Q(P) {
|
|
@@ -2656,7 +2656,7 @@ ye({ name: "QColor", props: { ...wt, ...tr, modelValue: String, defaultValue: St
|
|
|
2656
2656
|
oe(ie, !0) === !0 && n.$forceUpdate(), R(!1);
|
|
2657
2657
|
} }) }), p(vt, { ref: l, class: "q-color-picker__error-icon absolute no-pointer-events", name: r.iconSet.type.negative })])), p("div", { class: "q-color-picker__header relative-position overflow-hidden" }, [p("div", { class: "q-color-picker__header-bg absolute-full" }), p("div", { class: y.value, style: h.value }, P)]);
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function Z() {
|
|
2660
2660
|
return p(Oc, { modelValue: f.value, animated: !0 }, () => [p(Pr, { class: "q-color-picker__spectrum-tab overflow-hidden", name: "spectrum" }, ae), p(Pr, { class: "q-pa-md q-color-picker__tune-tab", name: "tune" }, we), p(Pr, { class: "q-color-picker__palette-tab", name: "palette" }, ne)]);
|
|
2661
2661
|
}
|
|
2662
2662
|
function le() {
|
|
@@ -2665,20 +2665,20 @@ ye({ name: "QColor", props: { ...wt, ...tr, modelValue: String, defaultValue: St
|
|
|
2665
2665
|
} }) }, () => [p(Qr, { icon: r.iconSet.colorPicker.spectrum, name: "spectrum", ripple: !1 }), p(Qr, { icon: r.iconSet.colorPicker.tune, name: "tune", ripple: !1 }), p(Qr, { icon: r.iconSet.colorPicker.palette, name: "palette", ripple: !1 })])]);
|
|
2666
2666
|
}
|
|
2667
2667
|
function ae() {
|
|
2668
|
-
const P = { ref: i, class: "q-color-picker__spectrum non-selectable relative-position cursor-pointer" + (v.value !== !0 ? " readonly" : ""), style: k.value, ...v.value === !0 ? { onClick:
|
|
2669
|
-
return S.value === !0 && be.push(p(Ho, { class: "q-color-picker__alpha non-selectable", modelValue: d.value.a, min: 0, max: 100, trackSize: "8px", trackColor: "white", innerTrackColor: "transparent", selectionColor: "transparent", trackImg: e_, readonly: v.value !== !0, hideSelection: !0, thumbPath: kf, ...a("alphaSlide", { "onUpdate:modelValue": (Te) =>
|
|
2668
|
+
const P = { ref: i, class: "q-color-picker__spectrum non-selectable relative-position cursor-pointer" + (v.value !== !0 ? " readonly" : ""), style: k.value, ...v.value === !0 ? { onClick: X, onMousedown: Q } : {} }, ie = [p("div", { style: { paddingBottom: "100%" } }), p("div", { class: "q-color-picker__spectrum-white absolute-full" }), p("div", { class: "q-color-picker__spectrum-black absolute-full" }), p("div", { class: "absolute", style: E.value }, [d.value.hex !== void 0 ? p("div", { class: "q-color-picker__spectrum-circle" }) : null])], be = [p(Ho, { class: "q-color-picker__hue non-selectable", modelValue: d.value.h, min: 0, max: 360, trackSize: "8px", innerTrackColor: "transparent", selectionColor: "transparent", readonly: v.value !== !0, thumbPath: kf, "onUpdate:modelValue": U, ...a("lazyhue", { onChange: (Te) => U(Te, !0) }) })];
|
|
2669
|
+
return S.value === !0 && be.push(p(Ho, { class: "q-color-picker__alpha non-selectable", modelValue: d.value.a, min: 0, max: 100, trackSize: "8px", trackColor: "white", innerTrackColor: "transparent", selectionColor: "transparent", trackImg: e_, readonly: v.value !== !0, hideSelection: !0, thumbPath: kf, ...a("alphaSlide", { "onUpdate:modelValue": (Te) => J(Te, "a", 100), onChange: (Te) => J(Te, "a", 100, void 0, !0) }) })), [Xn("div", P, ie, "spec", v.value, () => T.value), p("div", { class: "q-color-picker__sliders" }, be)];
|
|
2670
2670
|
}
|
|
2671
2671
|
function we() {
|
|
2672
|
-
return [p("div", { class: "row items-center no-wrap" }, [p("div", "R"), p(Ho, { modelValue: d.value.r, min: 0, max: 255, color: "red", dark: o.value, readonly: v.value !== !0, ...a("rSlide", { "onUpdate:modelValue": (P) =>
|
|
2672
|
+
return [p("div", { class: "row items-center no-wrap" }, [p("div", "R"), p(Ho, { modelValue: d.value.r, min: 0, max: 255, color: "red", dark: o.value, readonly: v.value !== !0, ...a("rSlide", { "onUpdate:modelValue": (P) => J(P, "r", 255), onChange: (P) => J(P, "r", 255, void 0, !0) }) }), p("input", { value: d.value.r, maxlength: 3, readonly: v.value !== !0, onChange: Kt, ...a("rIn", { onInput: (P) => J(P.target.value, "r", 255, P), onBlur: (P) => J(P.target.value, "r", 255, P, !0) }) })]), p("div", { class: "row items-center no-wrap" }, [p("div", "G"), p(Ho, { modelValue: d.value.g, min: 0, max: 255, color: "green", dark: o.value, readonly: v.value !== !0, ...a("gSlide", { "onUpdate:modelValue": (P) => J(P, "g", 255), onChange: (P) => J(P, "g", 255, void 0, !0) }) }), p("input", { value: d.value.g, maxlength: 3, readonly: v.value !== !0, onChange: Kt, ...a("gIn", { onInput: (P) => J(P.target.value, "g", 255, P), onBlur: (P) => J(P.target.value, "g", 255, P, !0) }) })]), p("div", { class: "row items-center no-wrap" }, [p("div", "B"), p(Ho, { modelValue: d.value.b, min: 0, max: 255, color: "blue", readonly: v.value !== !0, dark: o.value, ...a("bSlide", { "onUpdate:modelValue": (P) => J(P, "b", 255), onChange: (P) => J(P, "b", 255, void 0, !0) }) }), p("input", { value: d.value.b, maxlength: 3, readonly: v.value !== !0, onChange: Kt, ...a("bIn", { onInput: (P) => J(P.target.value, "b", 255, P), onBlur: (P) => J(P.target.value, "b", 255, P, !0) }) })]), S.value === !0 ? p("div", { class: "row items-center no-wrap" }, [p("div", "A"), p(Ho, { modelValue: d.value.a, color: "grey", readonly: v.value !== !0, dark: o.value, ...a("aSlide", { "onUpdate:modelValue": (P) => J(P, "a", 100), onChange: (P) => J(P, "a", 100, void 0, !0) }) }), p("input", { value: d.value.a, maxlength: 3, readonly: v.value !== !0, onChange: Kt, ...a("aIn", { onInput: (P) => J(P.target.value, "a", 100, P), onBlur: (P) => J(P.target.value, "a", 100, P, !0) }) })]) : null];
|
|
2673
2673
|
}
|
|
2674
2674
|
function ne() {
|
|
2675
2675
|
const P = (ie) => p("div", { class: "q-color-picker__cube col-auto", style: { backgroundColor: ie }, ...v.value === !0 ? a("palette#" + ie, { onClick: () => {
|
|
2676
|
-
|
|
2676
|
+
B(ie);
|
|
2677
2677
|
} }) : {} });
|
|
2678
2678
|
return [p("div", { class: "row items-center q-color-picker__palette-rows" + (v.value === !0 ? " q-color-picker__palette-rows--editable" : "") }, x.value.map(P))];
|
|
2679
2679
|
}
|
|
2680
2680
|
return () => {
|
|
2681
|
-
const P = [
|
|
2681
|
+
const P = [Z()];
|
|
2682
2682
|
return e.name !== void 0 && e.disable !== !0 && g(P, "push"), e.noHeader !== !0 && P.unshift(Y()), e.noFooter !== !0 && P.push(le()), p("div", { class: O.value, ...I.value }, P);
|
|
2683
2683
|
};
|
|
2684
2684
|
} });
|
|
@@ -3079,35 +3079,35 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3079
3079
|
const d = Oi(e), v = io(d), m = N(null), w = N(Xe()), _ = N(c()), g = b(() => Xe()), S = b(() => c()), h = b(() => s()), y = N(Tt(w.value, _.value)), k = N(e.defaultView), E = o.lang.rtl === !0 ? "right" : "left", x = N(E.value), O = N(E.value), I = y.value.year, T = N(I - I % co - (I < 0 ? co : 0)), D = N(null), M = b(() => {
|
|
3080
3080
|
const z = e.landscape === !0 ? "landscape" : "portrait";
|
|
3081
3081
|
return `q-date q-date--${z} q-date--${z}-${e.minimal === !0 ? "minimal" : "standard"}` + (a.value === !0 ? " q-date--dark q-dark" : "") + (e.bordered === !0 ? " q-date--bordered" : "") + (e.square === !0 ? " q-date--square no-border-radius" : "") + (e.flat === !0 ? " q-date--flat no-shadow" : "") + (e.disable === !0 ? " disabled" : e.readonly === !0 ? " q-date--readonly" : "");
|
|
3082
|
-
}), $ = b(() => e.color || "primary"),
|
|
3082
|
+
}), $ = b(() => e.color || "primary"), U = b(() => e.textColor || "white"), J = b(() => e.emitImmediately === !0 && e.multiple !== !0 && e.range !== !0), oe = b(() => Array.isArray(e.modelValue) === !0 ? e.modelValue : e.modelValue !== null && e.modelValue !== void 0 ? [e.modelValue] : []), B = b(() => oe.value.filter((z) => typeof z == "string").map((z) => kt(z, w.value, _.value)).filter((z) => z.dateHash !== null && z.day !== null && z.month !== null && z.year !== null)), F = b(() => {
|
|
3083
3083
|
const z = (ee) => kt(ee, w.value, _.value);
|
|
3084
3084
|
return oe.value.filter((ee) => An(ee) === !0 && ee.from !== void 0 && ee.to !== void 0).map((ee) => ({ from: z(ee.from), to: z(ee.to) })).filter((ee) => ee.from.dateHash !== null && ee.to.dateHash !== null && ee.from.dateHash < ee.to.dateHash);
|
|
3085
|
-
}),
|
|
3085
|
+
}), G = b(() => e.calendar !== "persian" ? (z) => new Date(z.year, z.month - 1, z.day) : (z) => {
|
|
3086
3086
|
const ee = Cf(z.year, z.month, z.day);
|
|
3087
3087
|
return new Date(ee.gy, ee.gm - 1, ee.gd);
|
|
3088
|
-
}),
|
|
3088
|
+
}), X = b(() => e.calendar === "persian" ? xr : (z, ee, ve) => gh(new Date(z.year, z.month - 1, z.day, z.hour, z.minute, z.second, z.millisecond), ee === void 0 ? w.value : ee, ve === void 0 ? _.value : ve, z.year, z.timezoneOffset)), Q = b(() => B.value.length + F.value.reduce((z, ee) => z + 1 + hh(G.value(ee.to), G.value(ee.from)), 0)), R = b(() => {
|
|
3089
3089
|
if (e.title !== void 0 && e.title !== null && e.title.length !== 0)
|
|
3090
3090
|
return e.title;
|
|
3091
3091
|
if (D.value !== null) {
|
|
3092
|
-
const ve = D.value.init, Me =
|
|
3092
|
+
const ve = D.value.init, Me = G.value(ve);
|
|
3093
3093
|
return _.value.daysShort[Me.getDay()] + ", " + _.value.monthsShort[ve.month - 1] + " " + ve.day + Qo + "?";
|
|
3094
3094
|
}
|
|
3095
3095
|
if (Q.value === 0)
|
|
3096
3096
|
return Qo;
|
|
3097
3097
|
if (Q.value > 1)
|
|
3098
3098
|
return `${Q.value} ${_.value.pluralDay}`;
|
|
3099
|
-
const z =
|
|
3099
|
+
const z = B.value[0], ee = G.value(z);
|
|
3100
3100
|
return isNaN(ee.valueOf()) === !0 ? Qo : _.value.headerTitle !== void 0 ? _.value.headerTitle(ee, z) : _.value.daysShort[ee.getDay()] + ", " + _.value.monthsShort[z.month - 1] + " " + z.day;
|
|
3101
|
-
}), Y = b(() =>
|
|
3101
|
+
}), Y = b(() => B.value.concat(F.value.map((ee) => ee.from)).sort((ee, ve) => ee.year - ve.year || ee.month - ve.month)[0]), Z = b(() => B.value.concat(F.value.map((ee) => ee.to)).sort((ee, ve) => ve.year - ee.year || ve.month - ee.month)[0]), le = b(() => {
|
|
3102
3102
|
if (e.subtitle !== void 0 && e.subtitle !== null && e.subtitle.length !== 0)
|
|
3103
3103
|
return e.subtitle;
|
|
3104
3104
|
if (Q.value === 0)
|
|
3105
3105
|
return Qo;
|
|
3106
3106
|
if (Q.value > 1) {
|
|
3107
|
-
const z = Y.value, ee =
|
|
3107
|
+
const z = Y.value, ee = Z.value, ve = _.value.monthsShort;
|
|
3108
3108
|
return ve[z.month - 1] + (z.year !== ee.year ? " " + z.year + Qo + ve[ee.month - 1] + " " : z.month !== ee.month ? Qo + ve[ee.month - 1] : "") + " " + ee.year;
|
|
3109
3109
|
}
|
|
3110
|
-
return
|
|
3110
|
+
return B.value[0].year;
|
|
3111
3111
|
}), ae = b(() => {
|
|
3112
3112
|
const z = [o.iconSet.datetime.arrowLeft, o.iconSet.datetime.arrowRight];
|
|
3113
3113
|
return o.lang.rtl === !0 ? z.reverse() : z;
|
|
@@ -3132,7 +3132,7 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3132
3132
|
return be.value !== null && be.value.year >= y.value.year && (z.year.prev = !1, be.value.year === y.value.year && be.value.month >= y.value.month && (z.month.prev = !1)), Te.value !== null && Te.value.year <= y.value.year && (z.year.next = !1, Te.value.year === y.value.year && Te.value.month <= y.value.month && (z.month.next = !1)), z;
|
|
3133
3133
|
}), L = b(() => {
|
|
3134
3134
|
const z = {};
|
|
3135
|
-
return
|
|
3135
|
+
return B.value.forEach((ee) => {
|
|
3136
3136
|
const ve = Dr(ee);
|
|
3137
3137
|
z[ve] === void 0 && (z[ve] = []), z[ve].push(ee.day);
|
|
3138
3138
|
}), z;
|
|
@@ -3205,22 +3205,22 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3205
3205
|
}
|
|
3206
3206
|
if (L.value[_e.value] !== void 0 && L.value[_e.value].forEach((Ge) => {
|
|
3207
3207
|
const mt = De + Ge - 1;
|
|
3208
|
-
Object.assign(z[mt], { selected: !0, unelevated: !0, flat: !1, color: $.value, textColor:
|
|
3208
|
+
Object.assign(z[mt], { selected: !0, unelevated: !0, flat: !1, color: $.value, textColor: U.value });
|
|
3209
3209
|
}), te.value[_e.value] !== void 0 && te.value[_e.value].forEach((Ge) => {
|
|
3210
3210
|
if (Ge.from !== void 0) {
|
|
3211
3211
|
const mt = De + Ge.from - 1, Ot = De + (Ge.to || P.value) - 1;
|
|
3212
3212
|
for (let Hn = mt; Hn <= Ot; Hn++)
|
|
3213
|
-
Object.assign(z[Hn], { range: Ge.range, unelevated: !0, color: $.value, textColor:
|
|
3213
|
+
Object.assign(z[Hn], { range: Ge.range, unelevated: !0, color: $.value, textColor: U.value });
|
|
3214
3214
|
Object.assign(z[mt], { rangeFrom: !0, flat: !1 }), Ge.to !== void 0 && Object.assign(z[Ot], { rangeTo: !0, flat: !1 });
|
|
3215
3215
|
} else if (Ge.to !== void 0) {
|
|
3216
3216
|
const mt = De + Ge.to - 1;
|
|
3217
3217
|
for (let Ot = De; Ot <= mt; Ot++)
|
|
3218
|
-
Object.assign(z[Ot], { range: Ge.range, unelevated: !0, color: $.value, textColor:
|
|
3218
|
+
Object.assign(z[Ot], { range: Ge.range, unelevated: !0, color: $.value, textColor: U.value });
|
|
3219
3219
|
Object.assign(z[mt], { flat: !1, rangeTo: !0 });
|
|
3220
3220
|
} else {
|
|
3221
3221
|
const mt = De + P.value - 1;
|
|
3222
3222
|
for (let Ot = De; Ot <= mt; Ot++)
|
|
3223
|
-
Object.assign(z[Ot], { range: Ge.range, unelevated: !0, color: $.value, textColor:
|
|
3223
|
+
Object.assign(z[Ot], { range: Ge.range, unelevated: !0, color: $.value, textColor: U.value });
|
|
3224
3224
|
}
|
|
3225
3225
|
}), ge.value !== void 0) {
|
|
3226
3226
|
const Ge = De + ge.value.from - 1, mt = De + ge.value.to - 1;
|
|
@@ -3285,17 +3285,17 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3285
3285
|
}
|
|
3286
3286
|
function Se(z) {
|
|
3287
3287
|
let ee = y.value.year, ve = Number(y.value.month) + z;
|
|
3288
|
-
ve === 13 ? (ve = 1, ee++) : ve === 0 && (ve = 12, ee--), gt(ee, ve),
|
|
3288
|
+
ve === 13 ? (ve = 1, ee++) : ve === 0 && (ve = 12, ee--), gt(ee, ve), J.value === !0 && zt("month");
|
|
3289
3289
|
}
|
|
3290
3290
|
function se(z) {
|
|
3291
3291
|
const ee = Number(y.value.year) + z;
|
|
3292
|
-
gt(ee, y.value.month),
|
|
3292
|
+
gt(ee, y.value.month), J.value === !0 && zt("year");
|
|
3293
3293
|
}
|
|
3294
3294
|
function Ce(z) {
|
|
3295
|
-
gt(z, y.value.month), k.value = e.defaultView === "Years" ? "Months" : "Calendar",
|
|
3295
|
+
gt(z, y.value.month), k.value = e.defaultView === "Years" ? "Months" : "Calendar", J.value === !0 && zt("year");
|
|
3296
3296
|
}
|
|
3297
3297
|
function Ye(z) {
|
|
3298
|
-
gt(y.value.year, z), k.value = "Calendar",
|
|
3298
|
+
gt(y.value.year, z), k.value = "Calendar", J.value === !0 && zt("month");
|
|
3299
3299
|
}
|
|
3300
3300
|
function it(z, ee) {
|
|
3301
3301
|
const ve = L.value[ee];
|
|
@@ -3321,7 +3321,7 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3321
3321
|
n("update:modelValue", Me, De, Ct);
|
|
3322
3322
|
}
|
|
3323
3323
|
function zt(z) {
|
|
3324
|
-
const ee =
|
|
3324
|
+
const ee = B.value[0] !== void 0 && B.value[0].dateHash !== null ? { ...B.value[0] } : { ...y.value };
|
|
3325
3325
|
ft(() => {
|
|
3326
3326
|
ee.year = y.value.year, ee.month = y.value.month;
|
|
3327
3327
|
const ve = e.calendar !== "persian" ? new Date(ee.year, ee.month, 0).getDate() : sl(ee.year, ee.month);
|
|
@@ -3336,13 +3336,13 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3336
3336
|
return ee.from !== void 0 ? { reason: `${z}-range`, details: { ...Ue(ee.target), from: Ue(ee.from), to: Ue(ee.to) } } : { reason: `${z}-day`, details: Ue(ee) };
|
|
3337
3337
|
}
|
|
3338
3338
|
function zn(z, ee, ve) {
|
|
3339
|
-
return z.from !== void 0 ? { from:
|
|
3339
|
+
return z.from !== void 0 ? { from: X.value(z.from, ee, ve), to: X.value(z.to, ee, ve) } : X.value(z, ee, ve);
|
|
3340
3340
|
}
|
|
3341
3341
|
function wr(z) {
|
|
3342
3342
|
let ee;
|
|
3343
3343
|
if (e.multiple === !0)
|
|
3344
3344
|
if (z.from !== void 0) {
|
|
3345
|
-
const ve = xr(z.from), Me = xr(z.to), De =
|
|
3345
|
+
const ve = xr(z.from), Me = xr(z.to), De = B.value.filter((Ge) => Ge.dateHash < ve || Ge.dateHash > Me), Ct = F.value.filter(({ from: Ge, to: mt }) => mt.dateHash < ve || Ge.dateHash > Me);
|
|
3346
3346
|
ee = De.concat(Ct).concat(z).map((Ge) => zn(Ge));
|
|
3347
3347
|
} else {
|
|
3348
3348
|
const ve = oe.value.slice();
|
|
@@ -3363,7 +3363,7 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3363
3363
|
Mt(ee, "remove", z);
|
|
3364
3364
|
}
|
|
3365
3365
|
function he(z, ee, ve) {
|
|
3366
|
-
const Me =
|
|
3366
|
+
const Me = B.value.concat(F.value).map((De) => zn(De, z, ee)).filter((De) => De.from !== void 0 ? De.from.dateHash !== null && De.to.dateHash !== null : De.dateHash !== null);
|
|
3367
3367
|
n("update:modelValue", (e.multiple === !0 ? Me : Me[0]) || null, ve);
|
|
3368
3368
|
}
|
|
3369
3369
|
function Ae() {
|
|
@@ -3410,7 +3410,7 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3410
3410
|
} }) }, z.event !== !1 ? () => p("div", { class: "q-date__event bg-" + z.event }) : null) : p("div", "" + z.i)]))))])])], Months() {
|
|
3411
3411
|
const z = y.value.year === h.value.year, ee = (Me) => be.value !== null && y.value.year === be.value.year && be.value.month > Me || Te.value !== null && y.value.year === Te.value.year && Te.value.month < Me, ve = _.value.monthsShort.map((Me, De) => {
|
|
3412
3412
|
const Ct = y.value.month === De + 1;
|
|
3413
|
-
return p("div", { class: "q-date__months-item flex flex-center" }, [p(Fe, { class: z === !0 && h.value.month === De + 1 ? "q-date__today" : null, flat: Ct !== !0, label: Me, unelevated: Ct, color: Ct === !0 ? $.value : null, textColor: Ct === !0 ?
|
|
3413
|
+
return p("div", { class: "q-date__months-item flex flex-center" }, [p(Fe, { class: z === !0 && h.value.month === De + 1 ? "q-date__today" : null, flat: Ct !== !0, label: Me, unelevated: Ct, color: Ct === !0 ? $.value : null, textColor: Ct === !0 ? U.value : null, tabindex: l.value, disable: ee(De + 1), ...i("month#" + De, { onClick: () => {
|
|
3414
3414
|
Ye(De + 1);
|
|
3415
3415
|
} }) })]);
|
|
3416
3416
|
});
|
|
@@ -3419,7 +3419,7 @@ var Ca = ye({ name: "QDate", props: { ...ch, ...tr, ...wt, multiple: Boolean, ra
|
|
|
3419
3419
|
const z = T.value, ee = z + co, ve = [], Me = (De) => be.value !== null && be.value.year > De || Te.value !== null && Te.value.year < De;
|
|
3420
3420
|
for (let De = z; De <= ee; De++) {
|
|
3421
3421
|
const Ct = y.value.year === De;
|
|
3422
|
-
ve.push(p("div", { class: "q-date__years-item flex flex-center" }, [p(Fe, { key: "yr" + De, class: h.value.year === De ? "q-date__today" : null, flat: !Ct, label: De, dense: !0, unelevated: Ct, color: Ct === !0 ? $.value : null, textColor: Ct === !0 ?
|
|
3422
|
+
ve.push(p("div", { class: "q-date__years-item flex flex-center" }, [p(Fe, { key: "yr" + De, class: h.value.year === De ? "q-date__today" : null, flat: !Ct, label: De, dense: !0, unelevated: Ct, color: Ct === !0 ? $.value : null, textColor: Ct === !0 ? U.value : null, tabindex: l.value, disable: Me(De), ...i("yr#" + De, { onClick: () => {
|
|
3423
3423
|
Ce(De);
|
|
3424
3424
|
} }) })]));
|
|
3425
3425
|
}
|
|
@@ -3527,9 +3527,9 @@ const v_ = { standard: "fixed-full flex-center", top: "fixed-top justify-center"
|
|
|
3527
3527
|
var Ma = ye({ name: "QDialog", inheritAttrs: !1, props: { ...Ra, ...Ti, transitionShow: String, transitionHide: String, persistent: Boolean, autoClose: Boolean, allowFocusOutside: Boolean, noEscDismiss: Boolean, noBackdropDismiss: Boolean, noRouteDismiss: Boolean, noRefocus: Boolean, noFocus: Boolean, noShake: Boolean, seamless: Boolean, maximized: Boolean, fullWidth: Boolean, fullHeight: Boolean, square: Boolean, position: { type: String, default: "standard", validator: (e) => e === "standard" || ["top", "bottom", "left", "right"].includes(e) } }, emits: [...Aa, "shake", "click", "escapeKey"], setup(e, { slots: t, emit: n, attrs: r }) {
|
|
3528
3528
|
const o = qe(), a = N(null), i = N(!1), l = N(!1);
|
|
3529
3529
|
let u, c, s = null, f = null;
|
|
3530
|
-
const d = b(() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0), { preventBodyScroll: v } = bh(), { registerTimeout: m } = wa(), { registerTick: w, removeTick: _ } = fa(), { transitionProps: g, transitionStyle: S } = Wl(e, () => Lf[e.position][0], () => Lf[e.position][1]), { showPortal: h, hidePortal: y, portalIsAccessible: k, renderPortal: E } = mc(o, a,
|
|
3531
|
-
function
|
|
3532
|
-
O(), f = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null,
|
|
3530
|
+
const d = b(() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0), { preventBodyScroll: v } = bh(), { registerTimeout: m } = wa(), { registerTick: w, removeTick: _ } = fa(), { transitionProps: g, transitionStyle: S } = Wl(e, () => Lf[e.position][0], () => Lf[e.position][1]), { showPortal: h, hidePortal: y, portalIsAccessible: k, renderPortal: E } = mc(o, a, Z, "dialog"), { hide: x } = La({ showing: i, hideOnRouteChange: d, handleShow: U, handleHide: J, processOnMount: !0 }), { addToHistory: O, removeFromHistory: I } = yh(i), T = b(() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${v_[e.position]}` + (l.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" : "")), D = b(() => i.value === !0 && e.seamless !== !0), M = b(() => e.autoClose === !0 ? { onClick: Q } : {}), $ = b(() => [`q-dialog fullscreen no-pointer-events q-dialog--${D.value === !0 ? "modal" : "seamless"}`, r.class]);
|
|
3531
|
+
function U(le) {
|
|
3532
|
+
O(), f = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, X(e.maximized), h(), l.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), w(oe)) : _(), m(() => {
|
|
3533
3533
|
if (o.proxy.$q.platform.is.ios === !0) {
|
|
3534
3534
|
if (e.seamless !== !0 && document.activeElement) {
|
|
3535
3535
|
const { top: ae, bottom: we } = document.activeElement.getBoundingClientRect(), { innerHeight: ne } = window, P = window.visualViewport !== void 0 ? window.visualViewport.height : ne;
|
|
@@ -3540,8 +3540,8 @@ var Ma = ye({ name: "QDialog", inheritAttrs: !1, props: { ...Ra, ...Ti, transiti
|
|
|
3540
3540
|
h(!0), l.value = !1, n("show", le);
|
|
3541
3541
|
}, e.transitionDuration);
|
|
3542
3542
|
}
|
|
3543
|
-
function
|
|
3544
|
-
_(), I(),
|
|
3543
|
+
function J(le) {
|
|
3544
|
+
_(), I(), G(!0), l.value = !0, y(), f !== null && (((le && le.type.indexOf("key") === 0 ? f.closest('[tabindex]:not([tabindex^="-"])') : void 0) || f).focus(), f = null), m(() => {
|
|
3545
3545
|
y(!0), l.value = !1, n("hide", le);
|
|
3546
3546
|
}, e.transitionDuration);
|
|
3547
3547
|
}
|
|
@@ -3551,7 +3551,7 @@ var Ma = ye({ name: "QDialog", inheritAttrs: !1, props: { ...Ra, ...Ti, transiti
|
|
|
3551
3551
|
ae !== null && ae.contains(document.activeElement) !== !0 && (ae = (le !== "" ? ae.querySelector(le) : null) || ae.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || ae.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || ae.querySelector("[autofocus], [data-autofocus]") || ae, ae.focus({ preventScroll: !0 }));
|
|
3552
3552
|
});
|
|
3553
3553
|
}
|
|
3554
|
-
function
|
|
3554
|
+
function B(le) {
|
|
3555
3555
|
le && typeof le.focus == "function" ? le.focus({ preventScroll: !0 }) : oe(), n("shake");
|
|
3556
3556
|
const ae = a.value;
|
|
3557
3557
|
ae !== null && (ae.classList.remove("q-animate--scale"), ae.classList.add("q-animate--scale"), s !== null && clearTimeout(s), s = setTimeout(() => {
|
|
@@ -3559,33 +3559,33 @@ var Ma = ye({ name: "QDialog", inheritAttrs: !1, props: { ...Ra, ...Ti, transiti
|
|
|
3559
3559
|
}, 170));
|
|
3560
3560
|
}
|
|
3561
3561
|
function F() {
|
|
3562
|
-
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 &&
|
|
3563
|
-
}
|
|
3564
|
-
function J(le) {
|
|
3565
|
-
s !== null && (clearTimeout(s), s = null), le !== !0 && i.value !== !0 || (G(!1), e.seamless !== !0 && (v(!1), vu(Y), wl(F))), le !== !0 && (f = null);
|
|
3562
|
+
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && B() : (n("escapeKey"), x()));
|
|
3566
3563
|
}
|
|
3567
3564
|
function G(le) {
|
|
3565
|
+
s !== null && (clearTimeout(s), s = null), le !== !0 && i.value !== !0 || (X(!1), e.seamless !== !0 && (v(!1), vu(Y), wl(F))), le !== !0 && (f = null);
|
|
3566
|
+
}
|
|
3567
|
+
function X(le) {
|
|
3568
3568
|
le === !0 ? u !== !0 && (zi < 1 && document.body.classList.add("q-body--dialog"), zi++, u = !0) : u === !0 && (zi < 2 && document.body.classList.remove("q-body--dialog"), zi--, u = !1);
|
|
3569
3569
|
}
|
|
3570
3570
|
function Q(le) {
|
|
3571
3571
|
c !== !0 && (x(le), n("click", le));
|
|
3572
3572
|
}
|
|
3573
3573
|
function R(le) {
|
|
3574
|
-
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? x(le) : e.noShake !== !0 &&
|
|
3574
|
+
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? x(le) : e.noShake !== !0 && B();
|
|
3575
3575
|
}
|
|
3576
3576
|
function Y(le) {
|
|
3577
3577
|
e.allowFocusOutside !== !0 && k.value === !0 && Em(a.value, le.target) !== !0 && oe('[tabindex]:not([tabindex="-1"])');
|
|
3578
3578
|
}
|
|
3579
|
-
function
|
|
3579
|
+
function Z() {
|
|
3580
3580
|
return p("div", { role: "dialog", "aria-modal": D.value === !0 ? "true" : "false", ...r, class: $.value }, [p(pn, { name: "q-transition--fade", appear: !0 }, () => D.value === !0 ? p("div", { class: "q-dialog__backdrop fixed-full", style: S.value, "aria-hidden": "true", tabindex: -1, onClick: R }) : null), p(pn, g.value, () => i.value === !0 ? p("div", { ref: a, class: T.value, style: S.value, tabindex: -1, ...M.value }, Qe(t.default)) : null)]);
|
|
3581
3581
|
}
|
|
3582
3582
|
return me(() => e.maximized, (le) => {
|
|
3583
|
-
i.value === !0 &&
|
|
3583
|
+
i.value === !0 && X(le);
|
|
3584
3584
|
}), me(D, (le) => {
|
|
3585
3585
|
v(le), le === !0 ? (Vm(Y), Mm(F)) : (vu(Y), wl(F));
|
|
3586
|
-
}), Object.assign(o.proxy, { focus: oe, shake:
|
|
3586
|
+
}), Object.assign(o.proxy, { focus: oe, shake: B, __updateRefocusTarget(le) {
|
|
3587
3587
|
f = le || null;
|
|
3588
|
-
} }), ht(
|
|
3588
|
+
} }), ht(G), E;
|
|
3589
3589
|
} });
|
|
3590
3590
|
const Df = 150;
|
|
3591
3591
|
ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: String, default: "left", validator: (e) => ["left", "right"].includes(e) }, width: { type: Number, default: 300 }, mini: Boolean, miniToOverlay: Boolean, miniWidth: { type: Number, default: 57 }, noMiniAnimation: Boolean, breakpoint: { type: Number, default: 1023 }, showIfAbove: Boolean, behavior: { type: String, validator: (e) => ["default", "desktop", "mobile"].includes(e), default: "default" }, bordered: Boolean, elevated: Boolean, overlay: Boolean, persistent: Boolean, noSwipeOpen: Boolean, noSwipeClose: Boolean, noSwipeBackdrop: Boolean }, emits: [...Aa, "onLayout", "miniState"], setup(e, { slots: t, emit: n, attrs: r }) {
|
|
@@ -3593,7 +3593,7 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3593
3593
|
if (s === It)
|
|
3594
3594
|
return console.error("QDrawer needs to be child of QLayout"), It;
|
|
3595
3595
|
let f, d, v = null;
|
|
3596
|
-
const m = N(e.behavior === "mobile" || e.behavior !== "desktop" && s.totalWidth.value <= e.breakpoint), w = b(() => e.mini === !0 && m.value !== !0), _ = b(() => w.value === !0 ? e.miniWidth : e.width), g = N(e.showIfAbove === !0 && m.value === !1 || e.modelValue === !0), S = b(() => e.persistent !== !0 && (m.value === !0 ||
|
|
3596
|
+
const m = N(e.behavior === "mobile" || e.behavior !== "desktop" && s.totalWidth.value <= e.breakpoint), w = b(() => e.mini === !0 && m.value !== !0), _ = b(() => w.value === !0 ? e.miniWidth : e.width), g = N(e.showIfAbove === !0 && m.value === !1 || e.modelValue === !0), S = b(() => e.persistent !== !0 && (m.value === !0 || X.value === !0));
|
|
3597
3597
|
function h(de, Oe) {
|
|
3598
3598
|
if (x(), de !== !1 && s.animate(), j(0), m.value === !0) {
|
|
3599
3599
|
const re = s.instances[oe.value];
|
|
@@ -3609,13 +3609,13 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3609
3609
|
n("hide", de);
|
|
3610
3610
|
}, Df) : c();
|
|
3611
3611
|
}
|
|
3612
|
-
const { show: k, hide: E } = La({ showing: g, hideOnRouteChange: S, handleShow: h, handleHide: y }), { addToHistory: x, removeFromHistory: O } = yh(g), I = { belowBreakpoint: m, hide: E }, T = b(() => e.side === "right"), D = b(() => (a.lang.rtl === !0 ? -1 : 1) * (T.value === !0 ? 1 : -1)), M = N(0), $ = N(!1),
|
|
3612
|
+
const { show: k, hide: E } = La({ showing: g, hideOnRouteChange: S, handleShow: h, handleHide: y }), { addToHistory: x, removeFromHistory: O } = yh(g), I = { belowBreakpoint: m, hide: E }, T = b(() => e.side === "right"), D = b(() => (a.lang.rtl === !0 ? -1 : 1) * (T.value === !0 ? 1 : -1)), M = N(0), $ = N(!1), U = N(!1), J = N(_.value * D.value), oe = b(() => T.value === !0 ? "left" : "right"), B = b(() => g.value === !0 && m.value === !1 && e.overlay === !1 ? e.miniToOverlay === !0 ? e.miniWidth : _.value : 0), F = b(() => e.overlay === !0 || e.miniToOverlay === !0 || s.view.value.indexOf(T.value ? "R" : "L") > -1 || a.platform.is.ios === !0 && s.isContainer.value === !0), G = b(() => e.overlay === !1 && g.value === !0 && m.value === !1), X = b(() => e.overlay === !0 && g.value === !0 && m.value === !1), Q = b(() => "fullscreen q-drawer__backdrop" + (g.value === !1 && $.value === !1 ? " hidden" : "")), R = b(() => ({ backgroundColor: `rgba(0,0,0,${0.4 * M.value})` })), Y = b(() => T.value === !0 ? s.rows.value.top[2] === "r" : s.rows.value.top[0] === "l"), Z = b(() => T.value === !0 ? s.rows.value.bottom[2] === "r" : s.rows.value.bottom[0] === "l"), le = b(() => {
|
|
3613
3613
|
const de = {};
|
|
3614
|
-
return s.header.space === !0 && Y.value === !1 && (F.value === !0 ? de.top = `${s.header.offset}px` : s.header.space === !0 && (de.top = `${s.header.size}px`)), s.footer.space === !0 &&
|
|
3614
|
+
return s.header.space === !0 && Y.value === !1 && (F.value === !0 ? de.top = `${s.header.offset}px` : s.header.space === !0 && (de.top = `${s.header.size}px`)), s.footer.space === !0 && Z.value === !1 && (F.value === !0 ? de.bottom = `${s.footer.offset}px` : s.footer.space === !0 && (de.bottom = `${s.footer.size}px`)), de;
|
|
3615
3615
|
}), ae = b(() => {
|
|
3616
|
-
const de = { width: `${_.value}px`, transform: `translateX(${
|
|
3616
|
+
const de = { width: `${_.value}px`, transform: `translateX(${J.value}px)` };
|
|
3617
3617
|
return m.value === !0 ? de : Object.assign(de, le.value);
|
|
3618
|
-
}), we = b(() => "q-drawer__content fit " + (s.isContainer.value !== !0 ? "scroll" : "overflow-auto")), ne = b(() => `q-drawer q-drawer--${e.side}` + (
|
|
3618
|
+
}), we = b(() => "q-drawer__content fit " + (s.isContainer.value !== !0 ? "scroll" : "overflow-auto")), ne = b(() => `q-drawer q-drawer--${e.side}` + (U.value === !0 ? " q-drawer--mini-animate" : "") + (e.bordered === !0 ? " q-drawer--bordered" : "") + (i.value === !0 ? " q-drawer--dark q-dark" : "") + ($.value === !0 ? " no-transition" : g.value === !0 ? "" : " q-layout--prevent-focus") + (m.value === !0 ? " fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding" : ` q-drawer--${w.value === !0 ? "mini" : "standard"}` + (F.value === !0 || G.value !== !0 ? " fixed" : "") + (e.overlay === !0 || e.miniToOverlay === !0 ? " q-drawer--on-top" : "") + (Y.value === !0 ? " q-drawer--top-padding" : ""))), P = b(() => {
|
|
3619
3619
|
const de = a.lang.rtl === !0 ? e.side : oe.value;
|
|
3620
3620
|
return [[Jn, _e, void 0, { [de]: !0, mouse: !0 }]];
|
|
3621
3621
|
}), ie = b(() => {
|
|
@@ -3631,7 +3631,7 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3631
3631
|
function j(de) {
|
|
3632
3632
|
de === void 0 ? ft(() => {
|
|
3633
3633
|
de = g.value === !0 ? 0 : _.value, j(D.value * de);
|
|
3634
|
-
}) : (s.isContainer.value !== !0 || T.value !== !0 || m.value !== !0 && Math.abs(de) !== _.value || (de += D.value * s.scrollbarWidth.value),
|
|
3634
|
+
}) : (s.isContainer.value !== !0 || T.value !== !0 || m.value !== !0 && Math.abs(de) !== _.value || (de += D.value * s.scrollbarWidth.value), J.value = de);
|
|
3635
3635
|
}
|
|
3636
3636
|
function L(de) {
|
|
3637
3637
|
M.value = de;
|
|
@@ -3641,8 +3641,8 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3641
3641
|
Oe !== "" && document.body.classList[Oe]("q-body--drawer-toggle");
|
|
3642
3642
|
}
|
|
3643
3643
|
function ge() {
|
|
3644
|
-
v !== null && clearTimeout(v), o.proxy && o.proxy.$el && o.proxy.$el.classList.add("q-drawer--mini-animate"),
|
|
3645
|
-
v = null,
|
|
3644
|
+
v !== null && clearTimeout(v), o.proxy && o.proxy.$el && o.proxy.$el.classList.add("q-drawer--mini-animate"), U.value = !0, v = setTimeout(() => {
|
|
3645
|
+
v = null, U.value = !1, o && o.proxy && o.proxy.$el && o.proxy.$el.classList.remove("q-drawer--mini-animate");
|
|
3646
3646
|
}, 150);
|
|
3647
3647
|
}
|
|
3648
3648
|
function _e(de) {
|
|
@@ -3676,16 +3676,16 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3676
3676
|
return me(m, (de) => {
|
|
3677
3677
|
de === !0 ? (f = g.value, g.value === !0 && E(!1)) : e.overlay === !1 && e.behavior !== "mobile" && f !== !1 && (g.value === !0 ? (j(0), L(0), ut()) : k(!1));
|
|
3678
3678
|
}), me(() => e.side, (de, Oe) => {
|
|
3679
|
-
s.instances[Oe] === I && (s.instances[Oe] = void 0, s[Oe].space = !1, s[Oe].offset = 0), s.instances[de] = I, s[de].size = _.value, s[de].space =
|
|
3679
|
+
s.instances[Oe] === I && (s.instances[Oe] = void 0, s[Oe].space = !1, s[Oe].offset = 0), s.instances[de] = I, s[de].size = _.value, s[de].space = G.value, s[de].offset = B.value;
|
|
3680
3680
|
}), me(s.totalWidth, () => {
|
|
3681
3681
|
s.isContainer.value !== !0 && document.qScrollPrevented === !0 || Te();
|
|
3682
3682
|
}), me(() => e.behavior + e.breakpoint, Te), me(s.isContainer, (de) => {
|
|
3683
3683
|
g.value === !0 && l(de !== !0), de === !0 && Te();
|
|
3684
3684
|
}), me(s.scrollbarWidth, () => {
|
|
3685
3685
|
j(g.value === !0 ? 0 : void 0);
|
|
3686
|
-
}), me(
|
|
3686
|
+
}), me(B, (de) => {
|
|
3687
3687
|
et("offset", de);
|
|
3688
|
-
}), me(
|
|
3688
|
+
}), me(G, (de) => {
|
|
3689
3689
|
n("onLayout", de), et("space", de);
|
|
3690
3690
|
}), me(T, () => {
|
|
3691
3691
|
j();
|
|
@@ -3699,8 +3699,8 @@ ye({ name: "QDrawer", inheritAttrs: !1, props: { ...Ra, ...wt, side: { type: Str
|
|
|
3699
3699
|
e.noMiniAnimation || e.modelValue === !0 && (ge(), s.animate());
|
|
3700
3700
|
}), me(w, (de) => {
|
|
3701
3701
|
n("miniState", de);
|
|
3702
|
-
}), s.instances[e.side] = I, Pe(e.miniToOverlay, _.value), et("space",
|
|
3703
|
-
n("onLayout",
|
|
3702
|
+
}), s.instances[e.side] = I, Pe(e.miniToOverlay, _.value), et("space", G.value), et("offset", B.value), e.showIfAbove === !0 && e.modelValue !== !0 && g.value === !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", !0), ot(() => {
|
|
3703
|
+
n("onLayout", G.value), n("miniState", w.value), f = e.showIfAbove === !0;
|
|
3704
3704
|
const de = () => {
|
|
3705
3705
|
(g.value === !0 ? h : y)(!1, !0);
|
|
3706
3706
|
};
|
|
@@ -3879,14 +3879,14 @@ class h_ {
|
|
|
3879
3879
|
}
|
|
3880
3880
|
var g_ = ye({ name: "QTooltip", inheritAttrs: !1, props: { ...fc, ...Ra, ...Ti, maxHeight: { type: String, default: null }, maxWidth: { type: String, default: null }, transitionShow: { default: "jump-down" }, transitionHide: { default: "jump-up" }, anchor: { type: String, default: "bottom middle", validator: xl }, self: { type: String, default: "top middle", validator: xl }, offset: { type: Array, default: () => [14, 14], validator: Um }, scrollTarget: { default: void 0 }, delay: { type: Number, default: 0 }, hideDelay: { type: Number, default: 0 } }, emits: [...Aa], setup(e, { slots: t, emit: n, attrs: r }) {
|
|
3881
3881
|
let o, a;
|
|
3882
|
-
const i = qe(), { proxy: { $q: l } } = i, u = N(null), c = N(!1), s = b(() => El(e.anchor, l.lang.rtl)), f = b(() => El(e.self, l.lang.rtl)), d = b(() => e.persistent !== !0), { registerTick: v, removeTick: m } = fa(), { registerTimeout: w } = wa(), { transitionProps: _, transitionStyle: g } = Wl(e), { localScrollTarget: S, changeScrollEvent: h, unconfigureScrollTarget: y } = Pm(e,
|
|
3883
|
-
Object.assign(x, { delayShow:
|
|
3882
|
+
const i = qe(), { proxy: { $q: l } } = i, u = N(null), c = N(!1), s = b(() => El(e.anchor, l.lang.rtl)), f = b(() => El(e.self, l.lang.rtl)), d = b(() => e.persistent !== !0), { registerTick: v, removeTick: m } = fa(), { registerTimeout: w } = wa(), { transitionProps: _, transitionStyle: g } = Wl(e), { localScrollTarget: S, changeScrollEvent: h, unconfigureScrollTarget: y } = Pm(e, X), { anchorEl: k, canShow: E, anchorEvents: x } = pc({ showing: c, configureAnchorEl: G }), { show: O, hide: I } = La({ showing: c, canShow: E, handleShow: $, handleHide: U, hideOnRouteChange: d, processOnMount: !0 });
|
|
3883
|
+
Object.assign(x, { delayShow: B, delayHide: F });
|
|
3884
3884
|
const { showPortal: T, hidePortal: D, renderPortal: M } = mc(i, u, R, "tooltip");
|
|
3885
3885
|
if (l.platform.is.mobile === !0) {
|
|
3886
3886
|
const Y = { anchorEl: k, innerRef: u, onClickOutside(le) {
|
|
3887
3887
|
return I(le), le.target.classList.contains("q-dialog__backdrop") && ct(le), !0;
|
|
3888
|
-
} },
|
|
3889
|
-
me(
|
|
3888
|
+
} }, Z = b(() => e.modelValue === null && e.persistent !== !0 && c.value === !0);
|
|
3889
|
+
me(Z, (le) => {
|
|
3890
3890
|
(le === !0 ? Bm : Cl)(Y);
|
|
3891
3891
|
}), ht(() => {
|
|
3892
3892
|
Cl(Y);
|
|
@@ -3894,26 +3894,26 @@ var g_ = ye({ name: "QTooltip", inheritAttrs: !1, props: { ...fc, ...Ra, ...Ti,
|
|
|
3894
3894
|
}
|
|
3895
3895
|
function $(Y) {
|
|
3896
3896
|
T(), v(() => {
|
|
3897
|
-
a = new MutationObserver(() => oe()), a.observe(u.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), oe(),
|
|
3897
|
+
a = new MutationObserver(() => oe()), a.observe(u.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), oe(), X();
|
|
3898
3898
|
}), o === void 0 && (o = me(() => l.screen.width + "|" + l.screen.height + "|" + e.self + "|" + e.anchor + "|" + l.lang.rtl, oe)), w(() => {
|
|
3899
3899
|
T(!0), n("show", Y);
|
|
3900
3900
|
}, e.transitionDuration);
|
|
3901
3901
|
}
|
|
3902
|
-
function
|
|
3903
|
-
m(), D(),
|
|
3902
|
+
function U(Y) {
|
|
3903
|
+
m(), D(), J(), w(() => {
|
|
3904
3904
|
D(!0), n("hide", Y);
|
|
3905
3905
|
}, e.transitionDuration);
|
|
3906
3906
|
}
|
|
3907
|
-
function
|
|
3907
|
+
function J() {
|
|
3908
3908
|
a !== void 0 && (a.disconnect(), a = void 0), o !== void 0 && (o(), o = void 0), y(), In(x, "tooltipTemp");
|
|
3909
3909
|
}
|
|
3910
3910
|
function oe() {
|
|
3911
3911
|
hc({ targetEl: u.value, offset: e.offset, anchorEl: k.value, anchorOrigin: s.value, selfOrigin: f.value, maxHeight: e.maxHeight, maxWidth: e.maxWidth });
|
|
3912
3912
|
}
|
|
3913
|
-
function
|
|
3913
|
+
function B(Y) {
|
|
3914
3914
|
if (l.platform.is.mobile === !0) {
|
|
3915
3915
|
sr(), document.body.classList.add("non-selectable");
|
|
3916
|
-
const
|
|
3916
|
+
const Z = k.value, le = ["touchmove", "touchcancel", "touchend", "click"].map((ae) => [Z, ae, "delayHide", "passiveCapture"]);
|
|
3917
3917
|
Xt(x, "tooltipTemp", le);
|
|
3918
3918
|
}
|
|
3919
3919
|
w(() => {
|
|
@@ -3927,13 +3927,13 @@ var g_ = ye({ name: "QTooltip", inheritAttrs: !1, props: { ...fc, ...Ra, ...Ti,
|
|
|
3927
3927
|
I(Y);
|
|
3928
3928
|
}, e.hideDelay);
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function G() {
|
|
3931
3931
|
if (e.noParentEvent === !0 || k.value === null)
|
|
3932
3932
|
return;
|
|
3933
3933
|
const Y = l.platform.is.mobile === !0 ? [[k.value, "touchstart", "delayShow", "passive"]] : [[k.value, "mouseenter", "delayShow", "passive"], [k.value, "mouseleave", "delayHide", "passive"]];
|
|
3934
3934
|
Xt(x, "anchor", Y);
|
|
3935
3935
|
}
|
|
3936
|
-
function
|
|
3936
|
+
function X() {
|
|
3937
3937
|
if (k.value !== null || e.scrollTarget !== void 0) {
|
|
3938
3938
|
S.value = br(k.value, e.scrollTarget);
|
|
3939
3939
|
const Y = e.noParentEvent === !0 ? oe : I;
|
|
@@ -3946,7 +3946,7 @@ var g_ = ye({ name: "QTooltip", inheritAttrs: !1, props: { ...fc, ...Ra, ...Ti,
|
|
|
3946
3946
|
function R() {
|
|
3947
3947
|
return p(pn, _.value, Q);
|
|
3948
3948
|
}
|
|
3949
|
-
return ht(
|
|
3949
|
+
return ht(J), Object.assign(i.proxy, { updatePosition: oe }), M;
|
|
3950
3950
|
} }), fn = ye({ name: "QItem", props: { ...wt, ...Na, tag: { type: String, default: "div" }, active: { type: Boolean, default: null }, clickable: Boolean, dense: Boolean, insetLevel: Number, tabindex: [String, Number], focused: Boolean, manualFocus: Boolean }, emits: ["click", "keyup"], setup(e, { slots: t, emit: n }) {
|
|
3951
3951
|
const { proxy: { $q: r } } = qe(), o = St(e, r), { hasLink: a, linkAttrs: i, linkClass: l, linkTag: u, navigateOnClick: c } = Hl(), s = N(null), f = N(null), d = b(() => e.clickable === !0 || a.value === !0 || e.tag === "label"), v = b(() => e.disable !== !0 && d.value === !0), m = b(() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (o.value === !0 ? " q-item--dark" : "") + (a.value === !0 && e.active === null ? l.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (v.value === !0 ? " q-item--clickable q-link cursor-pointer " + (e.manualFocus === !0 ? "q-manual-focusable" : "q-focusable q-hoverable") + (e.focused === !0 ? " q-manual-focusable--focused" : "") : "")), w = b(() => e.insetLevel === void 0 ? null : { ["padding" + (r.lang.rtl === !0 ? "Right" : "Left")]: 16 + 56 * e.insetLevel + "px" });
|
|
3952
3952
|
function _(h) {
|
|
@@ -4098,7 +4098,7 @@ ye({ name: "QEditor", props: { ...wt, ...kc, modelValue: { type: String, require
|
|
|
4098
4098
|
const Te = P[be];
|
|
4099
4099
|
return Te ? Te.type === "no-state" || ne[be] && (Te.cmd === void 0 || k.value[Te.cmd] && k.value[Te.cmd].type === "no-state") ? Te : Object.assign({ type: "toggle" }, Te) : { type: "slot", slot: be };
|
|
4100
4100
|
}));
|
|
4101
|
-
}), x = { $q: i, props: e, slots: t, emit: n, inFullscreen: u, toggleFullscreen: c, runCmd:
|
|
4101
|
+
}), x = { $q: i, props: e, slots: t, emit: n, inFullscreen: u, toggleFullscreen: c, runCmd: Z, isViewingSource: m, editLinkUrl: v, toolbarBackgroundClass: h, buttonProps: y, contentRef: d, buttons: E, setContent: Y };
|
|
4102
4102
|
me(() => e.modelValue, (ne) => {
|
|
4103
4103
|
S !== ne && (S = ne, Y(ne, !0));
|
|
4104
4104
|
}), me(v, (ne) => {
|
|
@@ -4114,25 +4114,25 @@ ye({ name: "QEditor", props: { ...wt, ...kc, modelValue: { type: String, require
|
|
|
4114
4114
|
});
|
|
4115
4115
|
}), ne;
|
|
4116
4116
|
}), T = b(() => u.value ? e.contentStyle : [{ minHeight: e.minHeight, height: e.height, maxHeight: e.maxHeight }, e.contentStyle]), D = b(() => `q-editor q-editor--${m.value === !0 ? "source" : "default"}` + (e.disable === !0 ? " disabled" : "") + (u.value === !0 ? " fullscreen column" : "") + (e.square === !0 ? " q-editor--square no-border-radius" : "") + (e.flat === !0 ? " q-editor--flat" : "") + (e.dense === !0 ? " q-editor--dense" : "") + (l.value === !0 ? " q-editor--dark q-dark" : "")), M = b(() => [e.contentClass, "q-editor__content", { col: u.value, "overflow-auto": u.value || e.maxHeight }]), $ = b(() => e.disable === !0 ? { "aria-disabled": "true" } : e.readonly === !0 ? { "aria-readonly": "true" } : {});
|
|
4117
|
-
function
|
|
4117
|
+
function U() {
|
|
4118
4118
|
if (d.value !== null) {
|
|
4119
4119
|
const ne = `inner${m.value === !0 ? "Text" : "HTML"}`, P = d.value[ne];
|
|
4120
4120
|
P !== e.modelValue && (S = P, n("update:modelValue", P));
|
|
4121
4121
|
}
|
|
4122
4122
|
}
|
|
4123
|
-
function
|
|
4123
|
+
function J(ne) {
|
|
4124
4124
|
if (n("keydown", ne), ne.ctrlKey !== !0 || Do(ne) === !0)
|
|
4125
4125
|
return void le();
|
|
4126
4126
|
const P = ne.keyCode, ie = I.value[P];
|
|
4127
4127
|
if (ie !== void 0) {
|
|
4128
4128
|
const { cmd: be, param: Te } = ie;
|
|
4129
|
-
ct(ne),
|
|
4129
|
+
ct(ne), Z(be, Te, !1);
|
|
4130
4130
|
}
|
|
4131
4131
|
}
|
|
4132
4132
|
function oe(ne) {
|
|
4133
4133
|
le(), n("click", ne);
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function B(ne) {
|
|
4136
4136
|
if (d.value !== null) {
|
|
4137
4137
|
const { scrollTop: P, scrollHeight: ie } = d.value;
|
|
4138
4138
|
g = ie - P;
|
|
@@ -4144,14 +4144,14 @@ ye({ name: "QEditor", props: { ...wt, ...kc, modelValue: { type: String, require
|
|
|
4144
4144
|
d.value !== null && g !== void 0 && (d.value.scrollTop = d.value.scrollHeight - g);
|
|
4145
4145
|
}), n("focus", ne);
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function G(ne) {
|
|
4148
4148
|
const P = f.value;
|
|
4149
4149
|
if (P !== null && P.contains(ne.target) === !0 && (ne.relatedTarget === null || P.contains(ne.relatedTarget) !== !0)) {
|
|
4150
4150
|
const ie = `inner${m.value === !0 ? "Text" : "HTML"}`;
|
|
4151
4151
|
x.caret.restorePosition(d.value[ie].length), le();
|
|
4152
4152
|
}
|
|
4153
4153
|
}
|
|
4154
|
-
function
|
|
4154
|
+
function X(ne) {
|
|
4155
4155
|
const P = f.value;
|
|
4156
4156
|
P === null || P.contains(ne.target) !== !0 || ne.relatedTarget !== null && P.contains(ne.relatedTarget) === !0 || (x.caret.savePosition(), le());
|
|
4157
4157
|
}
|
|
@@ -4168,7 +4168,7 @@ ye({ name: "QEditor", props: { ...wt, ...kc, modelValue: { type: String, require
|
|
|
4168
4168
|
d.value[ie] = ne, P === !0 && (x.caret.restorePosition(d.value[ie].length), le());
|
|
4169
4169
|
}
|
|
4170
4170
|
}
|
|
4171
|
-
function
|
|
4171
|
+
function Z(ne, P, ie = !0) {
|
|
4172
4172
|
ae(), x.caret.restore(), x.caret.apply(ne, P, () => {
|
|
4173
4173
|
ae(), x.caret.save(), ie && le();
|
|
4174
4174
|
});
|
|
@@ -4190,13 +4190,13 @@ ye({ name: "QEditor", props: { ...wt, ...kc, modelValue: { type: String, require
|
|
|
4190
4190
|
x.caret = o.caret = new h_(d.value, x), Y(e.modelValue), le(), document.addEventListener("selectionchange", R);
|
|
4191
4191
|
}), ht(() => {
|
|
4192
4192
|
document.removeEventListener("selectionchange", R);
|
|
4193
|
-
}), Object.assign(o, { runCmd:
|
|
4193
|
+
}), Object.assign(o, { runCmd: Z, refreshToolbar: le, focus: ae, getContentEl: we }), () => {
|
|
4194
4194
|
let ne;
|
|
4195
4195
|
if (O.value) {
|
|
4196
4196
|
const P = [p("div", { key: "qedt_top", class: "q-editor__toolbar row no-wrap scroll-x" + h.value }, b_(x))];
|
|
4197
4197
|
v.value !== null && P.push(p("div", { key: "qedt_btm", class: "q-editor__toolbar row no-wrap items-center scroll-x" + h.value }, w_(x))), ne = p("div", { key: "toolbar_ctainer", class: "q-editor__toolbars-container" }, P);
|
|
4198
4198
|
}
|
|
4199
|
-
return p("div", { ref: f, class: D.value, style: { height: u.value === !0 ? "100%" : null }, ...$.value, onFocusin:
|
|
4199
|
+
return p("div", { ref: f, class: D.value, style: { height: u.value === !0 ? "100%" : null }, ...$.value, onFocusin: G, onFocusout: X }, [ne, p("div", { ref: d, style: T.value, class: M.value, contenteditable: w.value, placeholder: e.placeholder, ...s.listeners.value, onInput: U, onKeydown: J, onClick: oe, onBlur: B, onFocus: F, onMousedown: Q, onTouchstartPassive: Q })]);
|
|
4200
4200
|
};
|
|
4201
4201
|
} });
|
|
4202
4202
|
var _o = ye({ name: "QItemLabel", props: { overline: Boolean, caption: Boolean, header: Boolean, lines: [Number, String] }, setup(e, { slots: t }) {
|
|
@@ -4250,22 +4250,22 @@ var Eh = ye({ name: "QExpansionItem", props: { ...Na, ...Ra, ...wt, icon: String
|
|
|
4250
4250
|
const { proxy: { $q: r } } = qe(), o = St(e, r), a = N(e.modelValue !== null ? e.modelValue : e.defaultOpened), i = N(null), l = Io(), { show: u, hide: c, toggle: s } = La({ showing: a });
|
|
4251
4251
|
let f, d;
|
|
4252
4252
|
const v = b(() => `q-expansion-item q-item-type q-expansion-item--${a.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`), m = b(() => e.contentInsetLevel === void 0 ? null : { ["padding" + (r.lang.rtl === !0 ? "Right" : "Left")]: 56 * e.contentInsetLevel + "px" }), w = b(() => e.disable !== !0 && (e.href !== void 0 || e.to !== void 0 && e.to !== null && e.to !== "")), _ = b(() => {
|
|
4253
|
-
const
|
|
4253
|
+
const B = {};
|
|
4254
4254
|
return x_.forEach((F) => {
|
|
4255
|
-
|
|
4256
|
-
}),
|
|
4255
|
+
B[F] = e[F];
|
|
4256
|
+
}), B;
|
|
4257
4257
|
}), g = b(() => w.value === !0 || e.expandIconToggle !== !0), S = b(() => e.expandedIcon !== void 0 && a.value === !0 ? e.expandedIcon : e.expandIcon || r.iconSet.expansionItem[e.denseToggle === !0 ? "denseIcon" : "icon"]), h = b(() => e.disable !== !0 && (w.value === !0 || e.expandIconToggle === !0)), y = b(() => ({ expanded: a.value === !0, detailsId: e.targetUid, toggle: s, show: u, hide: c })), k = b(() => {
|
|
4258
|
-
const
|
|
4259
|
-
return { role: "button", "aria-expanded": a.value === !0 ? "true" : "false", "aria-controls": l, "aria-label":
|
|
4258
|
+
const B = e.toggleAriaLabel !== void 0 ? e.toggleAriaLabel : r.lang.label[a.value === !0 ? "collapse" : "expand"](e.label);
|
|
4259
|
+
return { role: "button", "aria-expanded": a.value === !0 ? "true" : "false", "aria-controls": l, "aria-label": B };
|
|
4260
4260
|
});
|
|
4261
|
-
function E(
|
|
4262
|
-
w.value !== !0 && s(
|
|
4261
|
+
function E(B) {
|
|
4262
|
+
w.value !== !0 && s(B), n("click", B);
|
|
4263
4263
|
}
|
|
4264
|
-
function x(
|
|
4265
|
-
|
|
4264
|
+
function x(B) {
|
|
4265
|
+
B.keyCode === 13 && O(B, !0);
|
|
4266
4266
|
}
|
|
4267
|
-
function O(
|
|
4268
|
-
F !== !0 && i.value !== null && i.value.focus(), s(
|
|
4267
|
+
function O(B, F) {
|
|
4268
|
+
F !== !0 && i.value !== null && i.value.focus(), s(B), ct(B);
|
|
4269
4269
|
}
|
|
4270
4270
|
function I() {
|
|
4271
4271
|
n("afterShow");
|
|
@@ -4275,36 +4275,36 @@ var Eh = ye({ name: "QExpansionItem", props: { ...Na, ...Ra, ...wt, icon: String
|
|
|
4275
4275
|
}
|
|
4276
4276
|
function D() {
|
|
4277
4277
|
f === void 0 && (f = Io()), a.value === !0 && (po[e.group] = f);
|
|
4278
|
-
const
|
|
4279
|
-
|
|
4280
|
-
}), F = me(() => po[e.group], (
|
|
4281
|
-
|
|
4278
|
+
const B = me(a, (G) => {
|
|
4279
|
+
G === !0 ? po[e.group] = f : po[e.group] === f && delete po[e.group];
|
|
4280
|
+
}), F = me(() => po[e.group], (G, X) => {
|
|
4281
|
+
X === f && G !== void 0 && G !== f && c();
|
|
4282
4282
|
});
|
|
4283
4283
|
d = () => {
|
|
4284
|
-
|
|
4284
|
+
B(), F(), po[e.group] === f && delete po[e.group], d = void 0;
|
|
4285
4285
|
};
|
|
4286
4286
|
}
|
|
4287
4287
|
function M() {
|
|
4288
|
-
const
|
|
4289
|
-
return h.value === !0 && (Object.assign(
|
|
4288
|
+
const B = { class: [`q-focusable relative-position cursor-pointer${e.denseToggle === !0 && e.switchToggleSide === !0 ? " items-end" : ""}`, e.expandIconClass], side: e.switchToggleSide !== !0, avatar: e.switchToggleSide }, F = [p(vt, { class: "q-expansion-item__toggle-icon" + (e.expandedIcon === void 0 && a.value === !0 ? " q-expansion-item__toggle-icon--rotated" : ""), name: S.value })];
|
|
4289
|
+
return h.value === !0 && (Object.assign(B, { tabindex: 0, ...k.value, onClick: O, onKeyup: x }), F.unshift(p("div", { ref: i, class: "q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded", tabindex: -1 }))), p(kn, B, () => F);
|
|
4290
4290
|
}
|
|
4291
4291
|
function $() {
|
|
4292
|
-
let
|
|
4293
|
-
return t.header !== void 0 ?
|
|
4292
|
+
let B;
|
|
4293
|
+
return t.header !== void 0 ? B = [].concat(t.header(y.value)) : (B = [p(kn, () => [p(_o, { lines: e.labelLines }, () => e.label || ""), e.caption ? p(_o, { lines: e.captionLines, caption: !0 }, () => e.caption) : null])], e.icon && B[e.switchToggleSide === !0 ? "push" : "unshift"](p(kn, { side: e.switchToggleSide === !0, avatar: e.switchToggleSide !== !0 }, () => p(vt, { name: e.icon })))), e.disable !== !0 && e.hideExpandIcon !== !0 && B[e.switchToggleSide === !0 ? "unshift" : "push"](M()), B;
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4296
|
-
const
|
|
4297
|
-
return g.value === !0 && (
|
|
4295
|
+
function U() {
|
|
4296
|
+
const B = { ref: "item", style: e.headerStyle, class: e.headerClass, dark: o.value, disable: e.disable, dense: e.dense, insetLevel: e.headerInsetLevel };
|
|
4297
|
+
return g.value === !0 && (B.clickable = !0, B.onClick = E, Object.assign(B, w.value === !0 ? _.value : k.value)), p(fn, B, $);
|
|
4298
4298
|
}
|
|
4299
|
-
function
|
|
4299
|
+
function J() {
|
|
4300
4300
|
return xe(p("div", { key: "e-content", class: "q-expansion-item__content relative-position", style: m.value, id: l }, Qe(t.default)), [[Ie, a.value]]);
|
|
4301
4301
|
}
|
|
4302
4302
|
function oe() {
|
|
4303
|
-
const
|
|
4304
|
-
return e.expandSeparator === !0 &&
|
|
4303
|
+
const B = [U(), p(Pc, { duration: e.duration, onShow: I, onHide: T }, J)];
|
|
4304
|
+
return e.expandSeparator === !0 && B.push(p(ur, { class: "q-expansion-item__border q-expansion-item__border--top absolute-top", dark: o.value }), p(ur, { class: "q-expansion-item__border q-expansion-item__border--bottom absolute-bottom", dark: o.value })), B;
|
|
4305
4305
|
}
|
|
4306
|
-
return me(() => e.group, (
|
|
4307
|
-
d !== void 0 && d(),
|
|
4306
|
+
return me(() => e.group, (B) => {
|
|
4307
|
+
d !== void 0 && d(), B !== void 0 && D();
|
|
4308
4308
|
}), e.group !== void 0 && D(), ht(() => {
|
|
4309
4309
|
d !== void 0 && d();
|
|
4310
4310
|
}), () => p("div", { class: v.value }, [p("div", { class: "q-expansion-item__container relative-position" }, oe())]);
|
|
@@ -4430,66 +4430,66 @@ function Jl({ requiredForAttr: e = !0, tagProp: t } = {}) {
|
|
|
4430
4430
|
function Gl(e) {
|
|
4431
4431
|
const { props: t, emit: n, slots: r, attrs: o, proxy: a } = qe(), { $q: i } = a;
|
|
4432
4432
|
let l = null;
|
|
4433
|
-
e.hasValue === void 0 && (e.hasValue = b(() => Po(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (
|
|
4434
|
-
n("update:modelValue",
|
|
4433
|
+
e.hasValue === void 0 && (e.hasValue = b(() => Po(t.modelValue))), e.emitValue === void 0 && (e.emitValue = (B) => {
|
|
4434
|
+
n("update:modelValue", B);
|
|
4435
4435
|
}), e.controlEvents === void 0 && (e.controlEvents = { onFocusin: I, onFocusout: T }), Object.assign(e, { clearValue: D, onControlFocusin: I, onControlFocusout: T, focus: x }), e.computedCounter === void 0 && (e.computedCounter = b(() => {
|
|
4436
4436
|
if (t.counter !== !1) {
|
|
4437
|
-
const
|
|
4438
|
-
return
|
|
4437
|
+
const B = 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;
|
|
4438
|
+
return B + (F !== void 0 ? " / " + F : "");
|
|
4439
4439
|
}
|
|
4440
4440
|
}));
|
|
4441
4441
|
const { isDirtyModel: u, hasRules: c, hasError: s, errorMessage: f, resetValidation: d } = N_(e.focused, e.innerLoading), v = e.floatingLabel !== void 0 ? b(() => t.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : b(() => t.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), m = b(() => t.bottomSlots === !0 || t.hint !== void 0 || c.value === !0 || t.counter === !0 || t.error !== null), w = b(() => t.filled === !0 ? "filled" : t.outlined === !0 ? "outlined" : t.borderless === !0 ? "borderless" : t.standout ? "standout" : "standard"), _ = b(() => `q-field row no-wrap items-start q-field--${w.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (t.rounded === !0 ? " q-field--rounded" : "") + (t.square === !0 ? " q-field--square" : "") + (v.value === !0 ? " q-field--float" : "") + (S.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" : "")), g = b(() => "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}` : "")), S = b(() => t.labelSlot === !0 || t.label !== void 0), h = b(() => "q-field__label no-pointer-events absolute ellipsis" + (t.labelColor !== void 0 && s.value !== !0 ? ` text-${t.labelColor}` : "")), y = b(() => ({ id: e.targetUid.value, editable: e.editable.value, focused: e.focused.value, floatingLabel: v.value, modelValue: t.modelValue, emitValue: e.emitValue })), k = b(() => {
|
|
4442
|
-
const
|
|
4443
|
-
return t.disable === !0 ?
|
|
4442
|
+
const B = { for: e.targetUid.value };
|
|
4443
|
+
return t.disable === !0 ? B["aria-disabled"] = "true" : t.readonly === !0 && (B["aria-readonly"] = "true"), B;
|
|
4444
4444
|
});
|
|
4445
4445
|
function E() {
|
|
4446
|
-
const
|
|
4446
|
+
const B = document.activeElement;
|
|
4447
4447
|
let F = e.targetRef !== void 0 && e.targetRef.value;
|
|
4448
|
-
!F ||
|
|
4448
|
+
!F || B !== null && B.id === e.targetUid.value || (F.hasAttribute("tabindex") === !0 || (F = F.querySelector("[tabindex]")), F && F !== B && F.focus({ preventScroll: !0 }));
|
|
4449
4449
|
}
|
|
4450
4450
|
function x() {
|
|
4451
4451
|
Da(E);
|
|
4452
4452
|
}
|
|
4453
4453
|
function O() {
|
|
4454
4454
|
gb(E);
|
|
4455
|
-
const
|
|
4456
|
-
|
|
4455
|
+
const B = document.activeElement;
|
|
4456
|
+
B !== null && e.rootRef.value.contains(B) && B.blur();
|
|
4457
4457
|
}
|
|
4458
|
-
function I(
|
|
4459
|
-
l !== null && (clearTimeout(l), l = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, n("focus",
|
|
4458
|
+
function I(B) {
|
|
4459
|
+
l !== null && (clearTimeout(l), l = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, n("focus", B));
|
|
4460
4460
|
}
|
|
4461
|
-
function T(
|
|
4461
|
+
function T(B, F) {
|
|
4462
4462
|
l !== null && clearTimeout(l), l = setTimeout(() => {
|
|
4463
|
-
l = 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, n("blur",
|
|
4463
|
+
l = 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, n("blur", B)), F !== void 0 && F());
|
|
4464
4464
|
});
|
|
4465
4465
|
}
|
|
4466
|
-
function D(
|
|
4467
|
-
ct(
|
|
4466
|
+
function D(B) {
|
|
4467
|
+
ct(B), i.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), n("update:modelValue", null), n("clear", t.modelValue), ft(() => {
|
|
4468
4468
|
d(), i.platform.is.mobile !== !0 && (u.value = !1);
|
|
4469
4469
|
});
|
|
4470
4470
|
}
|
|
4471
4471
|
function M() {
|
|
4472
|
-
const
|
|
4473
|
-
return r.prepend !== void 0 &&
|
|
4472
|
+
const B = [];
|
|
4473
|
+
return r.prepend !== void 0 && B.push(p("div", { class: "q-field__prepend q-field__marginal row no-wrap items-center", key: "prepend", onClick: mn }, r.prepend())), B.push(p("div", { class: "q-field__control-container col relative-position row no-wrap q-anchor--skip" }, $())), s.value === !0 && t.noErrorIcon === !1 && B.push(J("error", [p(vt, { name: i.iconSet.field.error, color: "negative" })])), t.loading === !0 || e.innerLoading.value === !0 ? B.push(J("inner-loading-append", r.loading !== void 0 ? r.loading() : [p(Zn, { color: t.color })])) : t.clearable === !0 && e.hasValue.value === !0 && e.editable.value === !0 && B.push(J("inner-clearable-append", [p(vt, { class: "q-field__focusable-action", tag: "button", name: t.clearIcon || i.iconSet.field.clear, tabindex: 0, type: "button", "aria-hidden": null, role: null, onClick: D })])), r.append !== void 0 && B.push(p("div", { class: "q-field__append q-field__marginal row no-wrap items-center", key: "append", onClick: mn }, r.append())), e.getInnerAppend !== void 0 && B.push(J("inner-append", e.getInnerAppend())), e.getControlChild !== void 0 && B.push(e.getControlChild()), B;
|
|
4474
4474
|
}
|
|
4475
4475
|
function $() {
|
|
4476
|
-
const
|
|
4477
|
-
return t.prefix !== void 0 && t.prefix !== null &&
|
|
4476
|
+
const B = [];
|
|
4477
|
+
return t.prefix !== void 0 && t.prefix !== null && B.push(p("div", { class: "q-field__prefix no-pointer-events row items-center" }, t.prefix)), e.getShadowControl !== void 0 && e.hasShadow.value === !0 && B.push(e.getShadowControl()), e.getControl !== void 0 ? B.push(e.getControl()) : r.rawControl !== void 0 ? B.push(r.rawControl()) : r.control !== void 0 && B.push(p("div", { ref: e.targetRef, class: "q-field__native row", tabindex: -1, ...e.splitAttrs.attributes.value, "data-autofocus": t.autofocus === !0 || void 0 }, r.control(y.value))), S.value === !0 && B.push(p("div", { class: h.value }, Qe(r.label, t.label))), t.suffix !== void 0 && t.suffix !== null && B.push(p("div", { class: "q-field__suffix no-pointer-events row items-center" }, t.suffix)), B.concat(Qe(r.default));
|
|
4478
4478
|
}
|
|
4479
|
-
function
|
|
4480
|
-
let
|
|
4481
|
-
s.value === !0 ? f.value !== null ? (
|
|
4482
|
-
const
|
|
4483
|
-
if (t.hideBottomSpace === !0 &&
|
|
4479
|
+
function U() {
|
|
4480
|
+
let B, F;
|
|
4481
|
+
s.value === !0 ? f.value !== null ? (B = [p("div", { role: "alert" }, f.value)], F = `q--slot-error-${f.value}`) : (B = Qe(r.error), F = "q--slot-error") : t.hideHint === !0 && e.focused.value !== !0 || (t.hint !== void 0 ? (B = [p("div", t.hint)], F = `q--slot-hint-${t.hint}`) : (B = Qe(r.hint), F = "q--slot-hint"));
|
|
4482
|
+
const G = t.counter === !0 || r.counter !== void 0;
|
|
4483
|
+
if (t.hideBottomSpace === !0 && G === !1 && B === void 0)
|
|
4484
4484
|
return;
|
|
4485
|
-
const
|
|
4486
|
-
return p("div", { class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"), onClick: mn }, [t.hideBottomSpace === !0 ?
|
|
4485
|
+
const X = p("div", { key: F, class: "q-field__messages col" }, B);
|
|
4486
|
+
return p("div", { class: "q-field__bottom row items-start q-field__bottom--" + (t.hideBottomSpace !== !0 ? "animated" : "stale"), onClick: mn }, [t.hideBottomSpace === !0 ? X : p(pn, { name: "q-transition--field-message" }, () => X), G === !0 ? p("div", { class: "q-field__counter" }, r.counter !== void 0 ? r.counter() : e.computedCounter.value) : null]);
|
|
4487
4487
|
}
|
|
4488
|
-
function
|
|
4489
|
-
return F === null ? null : p("div", { key:
|
|
4488
|
+
function J(B, F) {
|
|
4489
|
+
return F === null ? null : p("div", { key: B, class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip" }, F);
|
|
4490
4490
|
}
|
|
4491
|
-
me(() => t.for, (
|
|
4492
|
-
e.targetUid.value = qh(
|
|
4491
|
+
me(() => t.for, (B) => {
|
|
4492
|
+
e.targetUid.value = qh(B, e.requiredForAttr);
|
|
4493
4493
|
});
|
|
4494
4494
|
let oe = !1;
|
|
4495
4495
|
return Nr(() => {
|
|
@@ -4501,8 +4501,8 @@ function Gl(e) {
|
|
|
4501
4501
|
}), ht(() => {
|
|
4502
4502
|
l !== null && clearTimeout(l);
|
|
4503
4503
|
}), Object.assign(a, { focus: x, blur: O }), function() {
|
|
4504
|
-
const
|
|
4505
|
-
return p(e.tag.value, { ref: e.rootRef, class: [_.value, o.class], style: o.style, ...
|
|
4504
|
+
const B = e.getControl === void 0 && r.control === void 0 ? { ...e.splitAttrs.attributes.value, "data-autofocus": t.autofocus === !0 || void 0, ...k.value } : k.value;
|
|
4505
|
+
return p(e.tag.value, { ref: e.rootRef, class: [_.value, o.class], style: o.style, ...B }, [r.before !== void 0 ? p("div", { class: "q-field__before q-field__marginal row no-wrap items-center", onClick: mn }, r.before()) : null, p("div", { class: "q-field__inner relative-position col self-stretch" }, [p("div", { ref: e.controlRef, class: g.value, tabindex: -1, ...e.controlEvents }, M()), m.value === !0 ? U() : null]), r.after !== void 0 ? p("div", { class: "q-field__after q-field__marginal row no-wrap items-center", onClick: mn }, r.after()) : null]);
|
|
4506
4506
|
};
|
|
4507
4507
|
}
|
|
4508
4508
|
var R_ = ye({ name: "QField", inheritAttrs: !1, props: { ...qi, tag: { type: String, default: "label" } }, emits: Yl, setup() {
|
|
@@ -4603,58 +4603,58 @@ function Rh(e, t) {
|
|
|
4603
4603
|
} : n);
|
|
4604
4604
|
}
|
|
4605
4605
|
ye({ name: "QFile", inheritAttrs: !1, props: { ...qi, ...tr, ...Ph, modelValue: [File, FileList, Array], append: Boolean, useChips: Boolean, displayValue: [String, Number], tabindex: { type: [String, Number], default: 0 }, counterLabel: Function, inputClass: [Array, String, Object], inputStyle: [Array, String, Object] }, emits: [...Yl, ...$h], setup(e, { slots: t, emit: n, attrs: r }) {
|
|
4606
|
-
const { proxy: o } = qe(), a = Jl(), i = N(null), l = N(!1), u = gc(e), { pickFiles: c, onDragover: s, onDragleave: f, processFiles: d, getDndNode: v } = Nh({ editable: a.editable, dnd: l, getFileInput: M, addFilesToQueue: $ }), m = Rh(e), w = b(() => Object(e.modelValue) === e.modelValue ? "length" in e.modelValue ? Array.from(e.modelValue) : [e.modelValue] : []), _ = b(() => Po(w.value)), g = b(() => w.value.map((
|
|
4607
|
-
function x(
|
|
4606
|
+
const { proxy: o } = qe(), a = Jl(), i = N(null), l = N(!1), u = gc(e), { pickFiles: c, onDragover: s, onDragleave: f, processFiles: d, getDndNode: v } = Nh({ editable: a.editable, dnd: l, getFileInput: M, addFilesToQueue: $ }), m = Rh(e), w = b(() => Object(e.modelValue) === e.modelValue ? "length" in e.modelValue ? Array.from(e.modelValue) : [e.modelValue] : []), _ = b(() => Po(w.value)), g = b(() => w.value.map((B) => B.name).join(", ")), S = b(() => uu(w.value.reduce((B, F) => B + F.size, 0))), h = b(() => ({ totalSize: S.value, filesNumber: w.value.length, maxFiles: e.maxFiles })), y = b(() => ({ tabindex: -1, type: "file", title: "", accept: e.accept, capture: e.capture, name: u.value, ...r, id: a.targetUid.value, disabled: a.editable.value !== !0 })), k = b(() => "q-file q-field--auto-height" + (l.value === !0 ? " q-file--dnd" : "")), E = b(() => e.multiple === !0 && e.append === !0);
|
|
4607
|
+
function x(B) {
|
|
4608
4608
|
const F = w.value.slice();
|
|
4609
|
-
F.splice(
|
|
4609
|
+
F.splice(B, 1), I(F);
|
|
4610
4610
|
}
|
|
4611
|
-
function O(
|
|
4612
|
-
const F = w.value.indexOf(
|
|
4611
|
+
function O(B) {
|
|
4612
|
+
const F = w.value.indexOf(B);
|
|
4613
4613
|
F > -1 && x(F);
|
|
4614
4614
|
}
|
|
4615
|
-
function I(
|
|
4616
|
-
n("update:modelValue", e.multiple === !0 ?
|
|
4615
|
+
function I(B) {
|
|
4616
|
+
n("update:modelValue", e.multiple === !0 ? B : B[0]);
|
|
4617
4617
|
}
|
|
4618
|
-
function T(
|
|
4619
|
-
|
|
4618
|
+
function T(B) {
|
|
4619
|
+
B.keyCode === 13 && mn(B);
|
|
4620
4620
|
}
|
|
4621
|
-
function D(
|
|
4622
|
-
|
|
4621
|
+
function D(B) {
|
|
4622
|
+
B.keyCode !== 13 && B.keyCode !== 32 || c(B);
|
|
4623
4623
|
}
|
|
4624
4624
|
function M() {
|
|
4625
4625
|
return i.value;
|
|
4626
4626
|
}
|
|
4627
|
-
function $(
|
|
4628
|
-
const
|
|
4629
|
-
|
|
4627
|
+
function $(B, F) {
|
|
4628
|
+
const G = d(B, F, w.value, E.value), X = M();
|
|
4629
|
+
X != null && (X.value = ""), G !== void 0 && ((e.multiple === !0 ? e.modelValue && G.every((Q) => w.value.includes(Q)) : e.modelValue === G[0]) || I(E.value === !0 ? w.value.concat(G) : G));
|
|
4630
4630
|
}
|
|
4631
|
-
function
|
|
4631
|
+
function U() {
|
|
4632
4632
|
return [p("input", { class: [e.inputClass, "q-file__filler"], style: e.inputStyle })];
|
|
4633
4633
|
}
|
|
4634
|
-
function
|
|
4634
|
+
function J() {
|
|
4635
4635
|
if (t.file !== void 0)
|
|
4636
|
-
return w.value.length === 0 ?
|
|
4636
|
+
return w.value.length === 0 ? U() : w.value.map((F, G) => t.file({ index: G, file: F, ref: this }));
|
|
4637
4637
|
if (t.selected !== void 0)
|
|
4638
|
-
return w.value.length === 0 ?
|
|
4638
|
+
return w.value.length === 0 ? U() : t.selected({ files: w.value, ref: this });
|
|
4639
4639
|
if (e.useChips === !0)
|
|
4640
|
-
return w.value.length === 0 ?
|
|
4641
|
-
x(
|
|
4640
|
+
return w.value.length === 0 ? U() : w.value.map((F, G) => p(Km, { key: "file-" + G, removable: a.editable.value, dense: !0, textColor: e.color, tabindex: e.tabindex, onRemove: () => {
|
|
4641
|
+
x(G);
|
|
4642
4642
|
} }, () => p("span", { class: "ellipsis", textContent: F.name })));
|
|
4643
|
-
const
|
|
4644
|
-
return
|
|
4643
|
+
const B = e.displayValue !== void 0 ? e.displayValue : g.value;
|
|
4644
|
+
return B.length !== 0 ? [p("div", { class: e.inputClass, style: e.inputStyle, textContent: B })] : U();
|
|
4645
4645
|
}
|
|
4646
4646
|
function oe() {
|
|
4647
|
-
const
|
|
4648
|
-
return e.multiple === !0 && (
|
|
4647
|
+
const B = { ref: i, ...y.value, ...m.value, class: "q-field__input fit absolute-full cursor-pointer", onChange: $ };
|
|
4648
|
+
return e.multiple === !0 && (B.multiple = !0), p("input", B);
|
|
4649
4649
|
}
|
|
4650
4650
|
return Object.assign(a, { fieldClass: k, emitValue: I, hasValue: _, inputRef: i, innerValue: w, floatingLabel: b(() => _.value === !0 || Po(e.displayValue)), computedCounter: b(() => {
|
|
4651
4651
|
if (e.counterLabel !== void 0)
|
|
4652
4652
|
return e.counterLabel(h.value);
|
|
4653
|
-
const
|
|
4654
|
-
return `${w.value.length}${
|
|
4653
|
+
const B = e.maxFiles;
|
|
4654
|
+
return `${w.value.length}${B !== void 0 ? " / " + B : ""} (${S.value})`;
|
|
4655
4655
|
}), getControlChild: () => v("file"), getControl: () => {
|
|
4656
|
-
const
|
|
4657
|
-
return a.editable.value === !0 && Object.assign(
|
|
4656
|
+
const B = { ref: a.targetRef, class: "q-field__native row items-center cursor-pointer", tabindex: e.tabindex };
|
|
4657
|
+
return a.editable.value === !0 && Object.assign(B, { onDragover: s, onDragleave: f, onKeydown: T, onKeyup: D }), p("div", B, [oe()].concat(J()));
|
|
4658
4658
|
} }), Object.assign(o, { removeAtIndex: x, removeFile: O, getNativeElement: () => i.value }), vn(o, "nativeEl", () => i.value), Gl(a);
|
|
4659
4659
|
} });
|
|
4660
4660
|
ye({ name: "QFooter", props: { modelValue: { type: Boolean, default: !0 }, reveal: Boolean, bordered: Boolean, elevated: Boolean, heightHint: { type: [String, Number], default: 50 } }, emits: ["reveal", "focusin"], setup(e, { slots: t, emit: n }) {
|
|
@@ -5005,72 +5005,72 @@ function F_(e, t, n, r) {
|
|
|
5005
5005
|
function w() {
|
|
5006
5006
|
if (s.value = e.mask !== void 0 && e.mask.length !== 0 && d(), s.value === !1)
|
|
5007
5007
|
return l = void 0, o = "", void (a = "");
|
|
5008
|
-
const I = Vf[e.mask] === void 0 ? e.mask : Vf[e.mask], T = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", D = T.replace(Bf, "\\$&"), M = [], $ = [],
|
|
5009
|
-
let
|
|
5010
|
-
I.replace(D_, (Q, R, Y,
|
|
5011
|
-
if (
|
|
5012
|
-
const ae = ql[
|
|
5013
|
-
|
|
5008
|
+
const I = Vf[e.mask] === void 0 ? e.mask : Vf[e.mask], T = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", D = T.replace(Bf, "\\$&"), M = [], $ = [], U = [];
|
|
5009
|
+
let J = e.reverseFillMask === !0, oe = "", B = "";
|
|
5010
|
+
I.replace(D_, (Q, R, Y, Z, le) => {
|
|
5011
|
+
if (Z !== void 0) {
|
|
5012
|
+
const ae = ql[Z];
|
|
5013
|
+
U.push(ae), B = ae.negate, J === !0 && ($.push("(?:" + B + "+)?(" + ae.pattern + "+)?(?:" + B + "+)?(" + ae.pattern + "+)?"), J = !1), $.push("(?:" + B + "+)?(" + ae.pattern + ")?");
|
|
5014
5014
|
} else if (Y !== void 0)
|
|
5015
|
-
oe = "\\" + (Y === "\\" ? "" : Y),
|
|
5015
|
+
oe = "\\" + (Y === "\\" ? "" : Y), U.push(Y), M.push("([^" + oe + "]+)?" + oe + "?");
|
|
5016
5016
|
else {
|
|
5017
5017
|
const ae = R !== void 0 ? R : le;
|
|
5018
|
-
oe = ae === "\\" ? "\\\\\\\\" : ae.replace(Bf, "\\\\$&"),
|
|
5018
|
+
oe = ae === "\\" ? "\\\\\\\\" : ae.replace(Bf, "\\\\$&"), U.push(ae), M.push("([^" + oe + "]+)?" + oe + "?");
|
|
5019
5019
|
}
|
|
5020
5020
|
});
|
|
5021
|
-
const F = new RegExp("^" + M.join("") + "(" + (oe === "" ? "." : "[^" + oe + "]") + "+)?" + (oe === "" ? "" : "[" + oe + "]*") + "$"),
|
|
5022
|
-
i =
|
|
5023
|
-
const R = F.exec(e.reverseFillMask === !0 ? Q : Q.slice(0,
|
|
5021
|
+
const F = new RegExp("^" + M.join("") + "(" + (oe === "" ? "." : "[^" + oe + "]") + "+)?" + (oe === "" ? "" : "[" + oe + "]*") + "$"), G = $.length - 1, X = $.map((Q, R) => R === 0 && e.reverseFillMask === !0 ? new RegExp("^" + D + "*" + Q) : R === G ? new RegExp("^" + Q + "(" + (B === "" ? "." : B) + "+)?" + (e.reverseFillMask === !0 ? "$" : D + "*")) : new RegExp("^" + Q));
|
|
5022
|
+
i = U, l = (Q) => {
|
|
5023
|
+
const R = F.exec(e.reverseFillMask === !0 ? Q : Q.slice(0, U.length + 1));
|
|
5024
5024
|
R !== null && (Q = R.slice(1).join(""));
|
|
5025
|
-
const Y = [],
|
|
5026
|
-
for (let le = 0, ae = Q; le <
|
|
5027
|
-
const we =
|
|
5025
|
+
const Y = [], Z = X.length;
|
|
5026
|
+
for (let le = 0, ae = Q; le < Z; le++) {
|
|
5027
|
+
const we = X[le].exec(ae);
|
|
5028
5028
|
if (we === null)
|
|
5029
5029
|
break;
|
|
5030
5030
|
ae = ae.slice(we.shift().length), Y.push(...we);
|
|
5031
5031
|
}
|
|
5032
5032
|
return Y.length !== 0 ? Y.join("") : Q;
|
|
5033
|
-
}, o =
|
|
5033
|
+
}, o = U.map((Q) => typeof Q == "string" ? Q : cn).join(""), a = o.split(cn).join(T);
|
|
5034
5034
|
}
|
|
5035
5035
|
function _(I, T, D) {
|
|
5036
|
-
const M = r.value, $ = M.selectionEnd,
|
|
5036
|
+
const M = r.value, $ = M.selectionEnd, U = M.value.length - $, J = x(I);
|
|
5037
5037
|
T === !0 && w();
|
|
5038
|
-
const oe = k(
|
|
5039
|
-
M.value !==
|
|
5040
|
-
if (
|
|
5038
|
+
const oe = k(J), B = e.fillMask !== !1 ? O(oe) : oe, F = f.value !== B;
|
|
5039
|
+
M.value !== B && (M.value = B), F === !0 && (f.value = B), document.activeElement === M && ft(() => {
|
|
5040
|
+
if (B !== a)
|
|
5041
5041
|
if (D !== "insertFromPaste" || e.reverseFillMask === !0)
|
|
5042
5042
|
if (["deleteContentBackward", "deleteContentForward"].indexOf(D) > -1) {
|
|
5043
|
-
const
|
|
5044
|
-
M.setSelectionRange(
|
|
5043
|
+
const X = e.reverseFillMask === !0 ? $ === 0 ? B.length > oe.length ? 1 : 0 : Math.max(0, B.length - (B === a ? 0 : Math.min(oe.length, U) + 1)) + 1 : $;
|
|
5044
|
+
M.setSelectionRange(X, X, "forward");
|
|
5045
5045
|
} else if (e.reverseFillMask === !0)
|
|
5046
5046
|
if (F === !0) {
|
|
5047
|
-
const
|
|
5048
|
-
|
|
5047
|
+
const X = Math.max(0, B.length - (B === a ? 0 : Math.min(oe.length, U + 1)));
|
|
5048
|
+
X === 1 && $ === 1 ? M.setSelectionRange(X, X, "forward") : S.rightReverse(M, X);
|
|
5049
5049
|
} else {
|
|
5050
|
-
const
|
|
5051
|
-
M.setSelectionRange(
|
|
5050
|
+
const X = B.length - U;
|
|
5051
|
+
M.setSelectionRange(X, X, "backward");
|
|
5052
5052
|
}
|
|
5053
5053
|
else if (F === !0) {
|
|
5054
|
-
const
|
|
5055
|
-
S.right(M,
|
|
5054
|
+
const X = Math.max(0, o.indexOf(cn), Math.min(oe.length, $) - 1);
|
|
5055
|
+
S.right(M, X);
|
|
5056
5056
|
} else {
|
|
5057
|
-
const
|
|
5058
|
-
S.right(M,
|
|
5057
|
+
const X = $ - 1;
|
|
5058
|
+
S.right(M, X);
|
|
5059
5059
|
}
|
|
5060
5060
|
else {
|
|
5061
|
-
const
|
|
5061
|
+
const X = M.selectionEnd;
|
|
5062
5062
|
let Q = $ - 1;
|
|
5063
|
-
for (let R = u; R <= Q && R <
|
|
5063
|
+
for (let R = u; R <= Q && R < X; R++)
|
|
5064
5064
|
o[R] !== cn && Q++;
|
|
5065
5065
|
S.right(M, Q);
|
|
5066
5066
|
}
|
|
5067
5067
|
else {
|
|
5068
|
-
const
|
|
5069
|
-
M.setSelectionRange(
|
|
5068
|
+
const X = e.reverseFillMask === !0 ? a.length : 0;
|
|
5069
|
+
M.setSelectionRange(X, X, "forward");
|
|
5070
5070
|
}
|
|
5071
5071
|
});
|
|
5072
|
-
const
|
|
5073
|
-
String(e.modelValue) ===
|
|
5072
|
+
const G = e.unmaskedValue === !0 ? x(B) : B;
|
|
5073
|
+
String(e.modelValue) === G || e.modelValue === null && G === "" || n(G, !0);
|
|
5074
5074
|
}
|
|
5075
5075
|
function g(I, T, D) {
|
|
5076
5076
|
const M = k(x(I.value));
|
|
@@ -5128,13 +5128,13 @@ function F_(e, t, n, r) {
|
|
|
5128
5128
|
T >= 0 && I.setSelectionRange(T, T, "backward");
|
|
5129
5129
|
}, rightReverse(I, T) {
|
|
5130
5130
|
const D = I.value.length, M = m(D), $ = M.slice(0, T + 1).indexOf(cn) === -1;
|
|
5131
|
-
let
|
|
5132
|
-
for (;
|
|
5133
|
-
if (M[
|
|
5134
|
-
T =
|
|
5131
|
+
let U = Math.min(D, T + 1);
|
|
5132
|
+
for (; U <= D; U++)
|
|
5133
|
+
if (M[U - 1] === cn) {
|
|
5134
|
+
T = U, T > 0 && $ === !0 && T--;
|
|
5135
5135
|
break;
|
|
5136
5136
|
}
|
|
5137
|
-
if (
|
|
5137
|
+
if (U > D && M[T - 1] !== void 0 && M[T - 1] !== cn)
|
|
5138
5138
|
return S.leftReverse(I, D);
|
|
5139
5139
|
I.setSelectionRange(T, T, "forward");
|
|
5140
5140
|
} };
|
|
@@ -5149,8 +5149,8 @@ function F_(e, t, n, r) {
|
|
|
5149
5149
|
I.shiftKey && c === void 0 && (c = T.selectionDirection === "forward" ? D : M);
|
|
5150
5150
|
const $ = S[(I.keyCode === 39 ? "right" : "left") + (e.reverseFillMask === !0 ? "Reverse" : "")];
|
|
5151
5151
|
if (I.preventDefault(), $(T, c === D ? M : D), I.shiftKey) {
|
|
5152
|
-
const
|
|
5153
|
-
T.setSelectionRange(Math.min(c,
|
|
5152
|
+
const U = T.selectionStart;
|
|
5153
|
+
T.setSelectionRange(Math.min(c, U), Math.max(c, U), "forward");
|
|
5154
5154
|
}
|
|
5155
5155
|
} else
|
|
5156
5156
|
I.keyCode === 8 && e.reverseFillMask !== !0 && D === M ? (S.left(T, D), T.setSelectionRange(T.selectionStart, M, "backward")) : I.keyCode === 46 && e.reverseFillMask === !0 && D === M && (S.rightReverse(T, M), T.setSelectionRange(D, T.selectionEnd, "forward"));
|
|
@@ -5163,13 +5163,13 @@ function F_(e, t, n, r) {
|
|
|
5163
5163
|
const T = i;
|
|
5164
5164
|
let D = 0, M = "";
|
|
5165
5165
|
for (let $ = 0; $ < T.length; $++) {
|
|
5166
|
-
const
|
|
5167
|
-
if (typeof
|
|
5168
|
-
M +=
|
|
5166
|
+
const U = I[D], J = T[$];
|
|
5167
|
+
if (typeof J == "string")
|
|
5168
|
+
M += J, U === J && D++;
|
|
5169
5169
|
else {
|
|
5170
|
-
if (
|
|
5170
|
+
if (U === void 0 || !J.regex.test(U))
|
|
5171
5171
|
return M;
|
|
5172
|
-
M +=
|
|
5172
|
+
M += J.transform !== void 0 ? J.transform(U) : U, D++;
|
|
5173
5173
|
}
|
|
5174
5174
|
}
|
|
5175
5175
|
return M;
|
|
@@ -5177,17 +5177,17 @@ function F_(e, t, n, r) {
|
|
|
5177
5177
|
function E(I) {
|
|
5178
5178
|
const T = i, D = o.indexOf(cn);
|
|
5179
5179
|
let M = I.length - 1, $ = "";
|
|
5180
|
-
for (let
|
|
5181
|
-
const
|
|
5180
|
+
for (let U = T.length - 1; U >= 0 && M > -1; U--) {
|
|
5181
|
+
const J = T[U];
|
|
5182
5182
|
let oe = I[M];
|
|
5183
|
-
if (typeof
|
|
5184
|
-
$ =
|
|
5183
|
+
if (typeof J == "string")
|
|
5184
|
+
$ = J + $, oe === J && M--;
|
|
5185
5185
|
else {
|
|
5186
|
-
if (oe === void 0 || !
|
|
5186
|
+
if (oe === void 0 || !J.regex.test(oe))
|
|
5187
5187
|
return $;
|
|
5188
5188
|
do
|
|
5189
|
-
$ = (
|
|
5190
|
-
while (D ===
|
|
5189
|
+
$ = (J.transform !== void 0 ? J.transform(oe) : oe) + $, M--, oe = I[M];
|
|
5190
|
+
while (D === U && oe !== void 0 && J.regex.test(oe));
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
5193
5193
|
return $;
|
|
@@ -5214,9 +5214,9 @@ function Dh(e) {
|
|
|
5214
5214
|
var Pt = ye({ name: "QInput", inheritAttrs: !1, props: { ...qi, ...M_, ...tr, modelValue: { required: !1 }, shadowText: String, type: { type: String, default: "text" }, debounce: [String, Number], autogrow: Boolean, inputClass: [Array, String, Object], inputStyle: [Array, String, Object] }, emits: [...Yl, "paste", "change", "keydown", "click", "animationend"], setup(e, { emit: t, attrs: n }) {
|
|
5215
5215
|
const { proxy: r } = qe(), { $q: o } = r, a = {};
|
|
5216
5216
|
let i, l, u, c = NaN, s = null;
|
|
5217
|
-
const f = N(null), d = gc(e), { innerValue: v, hasMask: m, moveCursorForPaste: w, updateMaskValue: _, onMaskedKeydown: g, onMaskedClick: S } = F_(e, t, oe, f), h = Rh(e, !0), y = b(() => Po(v.value)), k = Dh(
|
|
5218
|
-
const R = { ...E.splitAttrs.listeners.value, onInput:
|
|
5219
|
-
return R.onCompositionstart = R.onCompositionupdate = R.onCompositionend = k, m.value === !0 && (R.onKeydown = g, R.onClick = S), e.autogrow === !0 && (R.onAnimationend =
|
|
5217
|
+
const f = N(null), d = gc(e), { innerValue: v, hasMask: m, moveCursorForPaste: w, updateMaskValue: _, onMaskedKeydown: g, onMaskedClick: S } = F_(e, t, oe, f), h = Rh(e, !0), y = b(() => Po(v.value)), k = Dh(U), E = Jl(), x = b(() => e.type === "textarea" || e.autogrow === !0), O = b(() => x.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)), I = b(() => {
|
|
5218
|
+
const R = { ...E.splitAttrs.listeners.value, onInput: U, onPaste: $, onChange: F, onBlur: G, onFocus: Kt };
|
|
5219
|
+
return R.onCompositionstart = R.onCompositionupdate = R.onCompositionend = k, m.value === !0 && (R.onKeydown = g, R.onClick = S), e.autogrow === !0 && (R.onAnimationend = J), R;
|
|
5220
5220
|
}), T = b(() => {
|
|
5221
5221
|
const R = { tabindex: 0, "data-autofocus": e.autofocus === !0 || void 0, rows: e.type === "textarea" ? 6 : void 0, "aria-label": e.label, name: d.value, ...E.splitAttrs.attributes.value, id: E.targetUid.value, maxlength: e.maxlength, disabled: e.disable === !0, readonly: e.readonly === !0 };
|
|
5222
5222
|
return x.value === !1 && (R.type = e.type), e.autogrow === !0 && (R.rows = 1), R;
|
|
@@ -5237,7 +5237,7 @@ var Pt = ye({ name: "QInput", inheritAttrs: !1, props: { ...qi, ...M_, ...tr, mo
|
|
|
5237
5237
|
}
|
|
5238
5238
|
t("paste", R);
|
|
5239
5239
|
}
|
|
5240
|
-
function
|
|
5240
|
+
function U(R) {
|
|
5241
5241
|
if (!R || !R.target)
|
|
5242
5242
|
return;
|
|
5243
5243
|
if (e.type === "file")
|
|
@@ -5247,17 +5247,17 @@ var Pt = ye({ name: "QInput", inheritAttrs: !1, props: { ...qi, ...M_, ...tr, mo
|
|
|
5247
5247
|
if (m.value === !0)
|
|
5248
5248
|
_(Y, !1, R.inputType);
|
|
5249
5249
|
else if (oe(Y), O.value === !0 && R.target === document.activeElement) {
|
|
5250
|
-
const { selectionStart:
|
|
5251
|
-
|
|
5252
|
-
R.target === document.activeElement && Y.indexOf(R.target.value) === 0 && R.target.setSelectionRange(
|
|
5250
|
+
const { selectionStart: Z, selectionEnd: le } = R.target;
|
|
5251
|
+
Z !== void 0 && le !== void 0 && ft(() => {
|
|
5252
|
+
R.target === document.activeElement && Y.indexOf(R.target.value) === 0 && R.target.setSelectionRange(Z, le);
|
|
5253
5253
|
});
|
|
5254
5254
|
}
|
|
5255
|
-
e.autogrow === !0 &&
|
|
5255
|
+
e.autogrow === !0 && B();
|
|
5256
5256
|
} else
|
|
5257
5257
|
a.value = Y;
|
|
5258
5258
|
}
|
|
5259
|
-
function
|
|
5260
|
-
t("animationend", R),
|
|
5259
|
+
function J(R) {
|
|
5260
|
+
t("animationend", R), B();
|
|
5261
5261
|
}
|
|
5262
5262
|
function oe(R, Y) {
|
|
5263
5263
|
u = () => {
|
|
@@ -5266,24 +5266,24 @@ var Pt = ye({ name: "QInput", inheritAttrs: !1, props: { ...qi, ...M_, ...tr, mo
|
|
|
5266
5266
|
})), u = void 0;
|
|
5267
5267
|
}, e.type === "number" && (i = !0, a.value = R), e.debounce !== void 0 ? (s !== null && clearTimeout(s), a.value = R, s = setTimeout(u, e.debounce)) : u();
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function B() {
|
|
5270
5270
|
requestAnimationFrame(() => {
|
|
5271
5271
|
const R = f.value;
|
|
5272
5272
|
if (R !== null) {
|
|
5273
|
-
const Y = R.parentNode.style, { scrollTop:
|
|
5274
|
-
we === !0 && (R.style.overflowY = "hidden"), Y.marginBottom = R.scrollHeight - 1 + "px", R.style.height = "1px", R.style.height = R.scrollHeight + "px", we === !0 && (R.style.overflowY = parseInt(ae, 10) < R.scrollHeight ? "auto" : "hidden"), Y.marginBottom = "", R.scrollTop =
|
|
5273
|
+
const Y = R.parentNode.style, { scrollTop: Z } = R, { overflowY: le, maxHeight: ae } = o.platform.is.firefox === !0 ? {} : window.getComputedStyle(R), we = le !== void 0 && le !== "scroll";
|
|
5274
|
+
we === !0 && (R.style.overflowY = "hidden"), Y.marginBottom = R.scrollHeight - 1 + "px", R.style.height = "1px", R.style.height = R.scrollHeight + "px", we === !0 && (R.style.overflowY = parseInt(ae, 10) < R.scrollHeight ? "auto" : "hidden"), Y.marginBottom = "", R.scrollTop = Z;
|
|
5275
5275
|
}
|
|
5276
5276
|
});
|
|
5277
5277
|
}
|
|
5278
5278
|
function F(R) {
|
|
5279
5279
|
k(R), s !== null && (clearTimeout(s), s = null), u !== void 0 && u(), t("change", R.target.value);
|
|
5280
5280
|
}
|
|
5281
|
-
function
|
|
5281
|
+
function G(R) {
|
|
5282
5282
|
R !== void 0 && Kt(R), s !== null && (clearTimeout(s), s = null), u !== void 0 && u(), i = !1, l = !1, delete a.value, e.type !== "file" && setTimeout(() => {
|
|
5283
5283
|
f.value !== null && (f.value.value = v.value !== void 0 ? v.value : "");
|
|
5284
5284
|
});
|
|
5285
5285
|
}
|
|
5286
|
-
function
|
|
5286
|
+
function X() {
|
|
5287
5287
|
return a.hasOwnProperty("value") === !0 ? a.value : v.value !== void 0 ? v.value : "";
|
|
5288
5288
|
}
|
|
5289
5289
|
me(() => e.type, () => {
|
|
@@ -5295,16 +5295,16 @@ var Pt = ye({ name: "QInput", inheritAttrs: !1, props: { ...qi, ...M_, ...tr, mo
|
|
|
5295
5295
|
_(R);
|
|
5296
5296
|
} else
|
|
5297
5297
|
v.value !== R && (v.value = R, e.type === "number" && a.hasOwnProperty("value") === !0 && (i === !0 ? i = !1 : delete a.value));
|
|
5298
|
-
e.autogrow === !0 && ft(
|
|
5298
|
+
e.autogrow === !0 && ft(B);
|
|
5299
5299
|
}), me(() => e.autogrow, (R) => {
|
|
5300
|
-
R === !0 ? ft(
|
|
5300
|
+
R === !0 ? ft(B) : f.value !== null && n.rows > 0 && (f.value.style.height = "auto");
|
|
5301
5301
|
}), me(() => e.dense, () => {
|
|
5302
|
-
e.autogrow === !0 && ft(
|
|
5302
|
+
e.autogrow === !0 && ft(B);
|
|
5303
5303
|
}), ht(() => {
|
|
5304
|
-
|
|
5304
|
+
G();
|
|
5305
5305
|
}), ot(() => {
|
|
5306
|
-
e.autogrow === !0 &&
|
|
5307
|
-
}), Object.assign(E, { innerValue: v, fieldClass: b(() => `q-${x.value === !0 ? "textarea" : "input"}` + (e.autogrow === !0 ? " q-textarea--autogrow" : "")), hasShadow: b(() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0), inputRef: f, emitValue: oe, hasValue: y, floatingLabel: b(() => y.value === !0 && (e.type !== "number" || isNaN(v.value) === !1) || Po(e.displayValue)), getControl: () => p(x.value === !0 ? "textarea" : "input", { ref: f, class: ["q-field__native q-placeholder", e.inputClass], style: e.inputStyle, ...T.value, ...I.value, ...e.type !== "file" ? { value:
|
|
5306
|
+
e.autogrow === !0 && B();
|
|
5307
|
+
}), Object.assign(E, { innerValue: v, fieldClass: b(() => `q-${x.value === !0 ? "textarea" : "input"}` + (e.autogrow === !0 ? " q-textarea--autogrow" : "")), hasShadow: b(() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0), inputRef: f, emitValue: oe, hasValue: y, floatingLabel: b(() => y.value === !0 && (e.type !== "number" || isNaN(v.value) === !1) || Po(e.displayValue)), getControl: () => p(x.value === !0 ? "textarea" : "input", { ref: f, class: ["q-field__native q-placeholder", e.inputClass], style: e.inputStyle, ...T.value, ...I.value, ...e.type !== "file" ? { value: X() } : h.value }), getShadowControl: () => p("div", { class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (x.value === !0 ? "" : " text-no-wrap") }, [p("span", { class: "invisible" }, X()), p("span", e.shadowText)]) });
|
|
5308
5308
|
const Q = Gl(E);
|
|
5309
5309
|
return Object.assign(r, { focus: D, select: M, getNativeElement: () => f.value }), vn(r, "nativeEl", () => f.value), Q;
|
|
5310
5310
|
} });
|
|
@@ -5356,56 +5356,56 @@ ye({ name: "QKnob", props: { ...tr, ...Ec, modelValue: { type: Number, required:
|
|
|
5356
5356
|
}
|
|
5357
5357
|
me(() => `${e.modelValue}|${l.value}|${u.value}`, s), s();
|
|
5358
5358
|
const f = b(() => e.disable === !1 && e.readonly === !1), d = b(() => "q-knob non-selectable" + (f.value === !0 ? " q-knob--editable" : e.disable === !0 ? " disabled" : "")), v = b(() => (String(e.step).trim().split(".")[1] || "").length), m = b(() => e.step === 0 ? 1 : e.step), w = b(() => e.instantFeedback === !0 || i.value === !0), _ = o.platform.is.mobile === !0 ? b(() => f.value === !0 ? { onClick: x } : {}) : b(() => f.value === !0 ? { onMousedown: E, onClick: x, onKeydown: O, onKeyup: T } : {}), g = b(() => f.value === !0 ? { tabindex: e.tabindex } : { [`aria-${e.disable === !0 ? "disabled" : "readonly"}`]: "true" }), S = b(() => {
|
|
5359
|
-
const
|
|
5360
|
-
return H_.forEach((
|
|
5361
|
-
|
|
5362
|
-
}),
|
|
5359
|
+
const U = {};
|
|
5360
|
+
return H_.forEach((J) => {
|
|
5361
|
+
U[J] = e[J];
|
|
5362
|
+
}), U;
|
|
5363
5363
|
});
|
|
5364
|
-
function h(
|
|
5365
|
-
|
|
5364
|
+
function h(U) {
|
|
5365
|
+
U.isFinal ? (I(U.evt, !0), i.value = !1) : (U.isFirst && (k(), i.value = !0), I(U.evt));
|
|
5366
5366
|
}
|
|
5367
5367
|
const y = b(() => [[Jn, h, void 0, { prevent: !0, stop: !0, mouse: !0 }]]);
|
|
5368
5368
|
function k() {
|
|
5369
|
-
const { top:
|
|
5370
|
-
c = { top:
|
|
5369
|
+
const { top: U, left: J, width: oe, height: B } = r.$el.getBoundingClientRect();
|
|
5370
|
+
c = { top: U + B / 2, left: J + oe / 2 };
|
|
5371
5371
|
}
|
|
5372
|
-
function E(
|
|
5373
|
-
k(), I(
|
|
5372
|
+
function E(U) {
|
|
5373
|
+
k(), I(U);
|
|
5374
5374
|
}
|
|
5375
|
-
function x(
|
|
5376
|
-
k(), I(
|
|
5375
|
+
function x(U) {
|
|
5376
|
+
k(), I(U, !0);
|
|
5377
5377
|
}
|
|
5378
|
-
function O(
|
|
5379
|
-
if (!zf.includes(
|
|
5378
|
+
function O(U) {
|
|
5379
|
+
if (!zf.includes(U.keyCode))
|
|
5380
5380
|
return;
|
|
5381
|
-
ct(
|
|
5382
|
-
const
|
|
5381
|
+
ct(U);
|
|
5382
|
+
const J = ([34, 33].includes(U.keyCode) ? 10 : 1) * m.value, oe = [34, 37, 40].includes(U.keyCode) ? -J : J;
|
|
5383
5383
|
a.value = Dt(parseFloat((a.value + oe).toFixed(v.value)), l.value, u.value), D();
|
|
5384
5384
|
}
|
|
5385
|
-
function I(
|
|
5386
|
-
const oe = Dn(
|
|
5387
|
-
let
|
|
5388
|
-
|
|
5389
|
-
let
|
|
5385
|
+
function I(U, J) {
|
|
5386
|
+
const oe = Dn(U), B = Math.abs(oe.top - c.top), F = Math.sqrt(B ** 2 + Math.abs(oe.left - c.left) ** 2);
|
|
5387
|
+
let G = Math.asin(B / F) * (180 / Math.PI);
|
|
5388
|
+
G = oe.top < c.top ? c.left < oe.left ? 90 - G : 270 + G : c.left < oe.left ? G + 90 : 270 - G, o.lang.rtl === !0 ? G = gl(-G - e.angle, 0, 360) : e.angle && (G = gl(G - e.angle, 0, 360)), e.reverse === !0 && (G = 360 - G);
|
|
5389
|
+
let X = e.min + G / 360 * (e.max - e.min);
|
|
5390
5390
|
if (m.value !== 0) {
|
|
5391
|
-
const Q =
|
|
5392
|
-
|
|
5391
|
+
const Q = X % m.value;
|
|
5392
|
+
X = X - Q + (Math.abs(Q) >= m.value / 2 ? (Q < 0 ? -1 : 1) * m.value : 0), X = parseFloat(X.toFixed(v.value));
|
|
5393
5393
|
}
|
|
5394
|
-
|
|
5394
|
+
X = Dt(X, l.value, u.value), n("dragValue", X), a.value !== X && (a.value = X), D(J);
|
|
5395
5395
|
}
|
|
5396
|
-
function T(
|
|
5397
|
-
zf.includes(
|
|
5396
|
+
function T(U) {
|
|
5397
|
+
zf.includes(U.keyCode) && D(!0);
|
|
5398
5398
|
}
|
|
5399
|
-
function D(
|
|
5400
|
-
e.modelValue !== a.value && n("update:modelValue", a.value),
|
|
5399
|
+
function D(U) {
|
|
5400
|
+
e.modelValue !== a.value && n("update:modelValue", a.value), U === !0 && n("change", a.value);
|
|
5401
5401
|
}
|
|
5402
5402
|
const M = Oi(e);
|
|
5403
5403
|
function $() {
|
|
5404
5404
|
return p("input", M.value);
|
|
5405
5405
|
}
|
|
5406
5406
|
return () => {
|
|
5407
|
-
const
|
|
5408
|
-
return f.value === !0 && e.name !== void 0 && (
|
|
5407
|
+
const U = { class: d.value, role: "slider", "aria-valuemin": l.value, "aria-valuemax": u.value, "aria-valuenow": e.modelValue, ...g.value, ...S.value, value: a.value, instantFeedback: w.value, ..._.value }, J = { default: t.default };
|
|
5408
|
+
return f.value === !0 && e.name !== void 0 && (J.internal = $), Xn(Gm, U, J, "knob", f.value, () => y.value);
|
|
5409
5409
|
};
|
|
5410
5410
|
} });
|
|
5411
5411
|
const { passive: Hf } = Lt, Q_ = ["both", "horizontal", "vertical"];
|
|
@@ -5656,8 +5656,8 @@ var Z_ = ye({ name: "QPagination", props: { ...wt, modelValue: { type: Number, r
|
|
|
5656
5656
|
const { proxy: n } = qe(), { $q: r } = n, o = St(e, r), a = b(() => parseInt(e.min, 10)), i = b(() => parseInt(e.max, 10)), l = b(() => parseInt(e.maxPages, 10)), u = b(() => m.value + " / " + i.value), c = b(() => Qi(e.boundaryLinks, e.input)), s = b(() => Qi(e.boundaryNumbers, !e.input)), f = b(() => Qi(e.directionLinks, e.input)), d = b(() => Qi(e.ellipses, !e.input)), v = N(null), m = b({ get: () => e.modelValue, set: ($) => {
|
|
5657
5657
|
if ($ = parseInt($, 10), e.disable || isNaN($))
|
|
5658
5658
|
return;
|
|
5659
|
-
const
|
|
5660
|
-
e.modelValue !==
|
|
5659
|
+
const U = Dt($, a.value, i.value);
|
|
5660
|
+
e.modelValue !== U && t("update:modelValue", U);
|
|
5661
5661
|
} });
|
|
5662
5662
|
me(() => `${a.value}|${i.value}`, () => {
|
|
5663
5663
|
m.value = e.modelValue;
|
|
@@ -5670,8 +5670,8 @@ var Z_ = ye({ name: "QPagination", props: { ...wt, modelValue: { type: Number, r
|
|
|
5670
5670
|
return e.activeDesign !== "" && ($[e.activeDesign] = !0), $;
|
|
5671
5671
|
}), x = b(() => ({ ...E.value, color: e.activeColor || e.color, textColor: e.activeTextColor || e.textColor })), O = b(() => {
|
|
5672
5672
|
let $ = Math.max(l.value, 1 + (d.value ? 2 : 0) + (s.value ? 2 : 0));
|
|
5673
|
-
const
|
|
5674
|
-
return l.value && $ < i.value - a.value + 1 && ($ = 1 + 2 * Math.floor($ / 2),
|
|
5673
|
+
const U = { pgFrom: a.value, pgTo: i.value, ellipsesStart: !1, ellipsesEnd: !1, boundaryStart: !1, boundaryEnd: !1, marginalStyle: { minWidth: `${Math.max(2, String(i.value).length)}em` } };
|
|
5674
|
+
return l.value && $ < i.value - a.value + 1 && ($ = 1 + 2 * Math.floor($ / 2), U.pgFrom = Math.max(a.value, Math.min(i.value - $ + 1, e.modelValue - Math.floor($ / 2))), U.pgTo = Math.min(i.value, U.pgFrom + $ - 1), s.value && (U.boundaryStart = !0, U.pgFrom++), d.value && U.pgFrom > a.value + (s.value ? 1 : 0) && (U.ellipsesStart = !0, U.pgFrom++), s.value && (U.boundaryEnd = !0, U.pgTo--), d.value && U.pgTo < i.value - (s.value ? 1 : 0) && (U.ellipsesEnd = !0, U.pgTo--)), U;
|
|
5675
5675
|
});
|
|
5676
5676
|
function I($) {
|
|
5677
5677
|
m.value = $;
|
|
@@ -5683,37 +5683,37 @@ var Z_ = ye({ name: "QPagination", props: { ...wt, modelValue: { type: Number, r
|
|
|
5683
5683
|
function $() {
|
|
5684
5684
|
m.value = v.value, v.value = null;
|
|
5685
5685
|
}
|
|
5686
|
-
return { "onUpdate:modelValue": (
|
|
5687
|
-
v.value =
|
|
5688
|
-
}, onKeyup: (
|
|
5689
|
-
Gn(
|
|
5686
|
+
return { "onUpdate:modelValue": (U) => {
|
|
5687
|
+
v.value = U;
|
|
5688
|
+
}, onKeyup: (U) => {
|
|
5689
|
+
Gn(U, 13) === !0 && $();
|
|
5690
5690
|
}, onBlur: $ };
|
|
5691
5691
|
});
|
|
5692
|
-
function M($,
|
|
5693
|
-
const oe = { "aria-label":
|
|
5694
|
-
return
|
|
5695
|
-
I(
|
|
5692
|
+
function M($, U, J) {
|
|
5693
|
+
const oe = { "aria-label": U, "aria-current": "false", ...k.value, ...$ };
|
|
5694
|
+
return J === !0 && Object.assign(oe, { "aria-current": "true", ...x.value }), U !== void 0 && (e.toFn !== void 0 ? oe.to = e.toFn(U) : oe.onClick = () => {
|
|
5695
|
+
I(U);
|
|
5696
5696
|
}), p(Fe, oe);
|
|
5697
5697
|
}
|
|
5698
5698
|
return Object.assign(n, { set: I, setByOffset: T }), () => {
|
|
5699
|
-
const $ = [],
|
|
5700
|
-
let
|
|
5701
|
-
if (c.value === !0 && ($.push(M({ key: "bls", disable: e.disable || e.modelValue <= a.value, icon: S.value[0] }, a.value)),
|
|
5702
|
-
|
|
5703
|
-
const { pgFrom: oe, pgTo:
|
|
5699
|
+
const $ = [], U = [];
|
|
5700
|
+
let J;
|
|
5701
|
+
if (c.value === !0 && ($.push(M({ key: "bls", disable: e.disable || e.modelValue <= a.value, icon: S.value[0] }, a.value)), U.unshift(M({ key: "ble", disable: e.disable || e.modelValue >= i.value, icon: S.value[3] }, i.value))), f.value === !0 && ($.push(M({ key: "bdp", disable: e.disable || e.modelValue <= a.value, icon: S.value[1] }, e.modelValue - 1)), U.unshift(M({ key: "bdn", disable: e.disable || e.modelValue >= i.value, icon: S.value[2] }, e.modelValue + 1))), e.input !== !0) {
|
|
5702
|
+
J = [];
|
|
5703
|
+
const { pgFrom: oe, pgTo: B, marginalStyle: F } = O.value;
|
|
5704
5704
|
if (O.value.boundaryStart === !0) {
|
|
5705
|
-
const
|
|
5706
|
-
$.push(M({ key: "bns", style: F, disable: e.disable, label: a.value }, a.value,
|
|
5705
|
+
const G = a.value === e.modelValue;
|
|
5706
|
+
$.push(M({ key: "bns", style: F, disable: e.disable, label: a.value }, a.value, G));
|
|
5707
5707
|
}
|
|
5708
5708
|
if (O.value.boundaryEnd === !0) {
|
|
5709
|
-
const
|
|
5710
|
-
|
|
5709
|
+
const G = i.value === e.modelValue;
|
|
5710
|
+
U.unshift(M({ key: "bne", style: F, disable: e.disable, label: i.value }, i.value, G));
|
|
5711
5711
|
}
|
|
5712
|
-
O.value.ellipsesStart === !0 && $.push(M({ key: "bes", style: F, disable: e.disable, label: "…", ripple: !1 }, oe - 1)), O.value.ellipsesEnd === !0 &&
|
|
5713
|
-
for (let
|
|
5714
|
-
|
|
5712
|
+
O.value.ellipsesStart === !0 && $.push(M({ key: "bes", style: F, disable: e.disable, label: "…", ripple: !1 }, oe - 1)), O.value.ellipsesEnd === !0 && U.unshift(M({ key: "bee", style: F, disable: e.disable, label: "…", ripple: !1 }, B + 1));
|
|
5713
|
+
for (let G = oe; G <= B; G++)
|
|
5714
|
+
J.push(M({ key: `bpg${G}`, style: F, disable: e.disable, label: G }, G, G === e.modelValue));
|
|
5715
5715
|
}
|
|
5716
|
-
return p("div", { class: w.value, ...h.value }, [p("div", { class: "q-pagination__content row no-wrap items-center", style: g.value }, [...$, e.input === !0 ? p(Pt, { class: "inline", style: { width: `${u.value.length / 1.5}em` }, type: "number", dense: !0, value: v.value, disable: e.disable, dark: o.value, borderless: !0, inputClass: e.inputClass, inputStyle: e.inputStyle, placeholder: u.value, min: a.value, max: i.value, ...D.value }) : p("div", { class: "q-pagination__middle row justify-center" },
|
|
5716
|
+
return p("div", { class: w.value, ...h.value }, [p("div", { class: "q-pagination__content row no-wrap items-center", style: g.value }, [...$, e.input === !0 ? p(Pt, { class: "inline", style: { width: `${u.value.length / 1.5}em` }, type: "number", dense: !0, value: v.value, disable: e.disable, dark: o.value, borderless: !0, inputClass: e.inputClass, inputStyle: e.inputStyle, placeholder: u.value, min: a.value, max: i.value, ...D.value }) : p("div", { class: "q-pagination__middle row justify-center" }, J), ...U])]);
|
|
5717
5717
|
};
|
|
5718
5718
|
} });
|
|
5719
5719
|
function $s(e) {
|
|
@@ -5952,40 +5952,40 @@ ye({ name: "QRange", props: { ...Xm, modelValue: { type: Object, default: () =>
|
|
|
5952
5952
|
u.value.min === e.modelValue.min && u.value.max === e.modelValue.max || t("update:modelValue", { ...u.value }), M === !0 && t("change", { ...u.value });
|
|
5953
5953
|
}
|
|
5954
5954
|
function I(M) {
|
|
5955
|
-
const { left: $, top:
|
|
5956
|
-
return e.dragOnlyRange !== !0 &&
|
|
5955
|
+
const { left: $, top: U, width: J, height: oe } = a.value.getBoundingClientRect(), B = e.dragOnlyRange === !0 ? 0 : e.vertical === !0 ? h.value.offsetHeight / (2 * oe) : h.value.offsetWidth / (2 * J), F = { left: $, top: U, width: J, height: oe, valueMin: u.value.min, valueMax: u.value.max, ratioMin: s.value, ratioMax: f.value }, G = o.getDraggingRatio(M, F);
|
|
5956
|
+
return e.dragOnlyRange !== !0 && G < F.ratioMin + B ? F.type = Mr.MIN : e.dragOnlyRange === !0 || G < F.ratioMax - B ? e.dragRange === !0 || e.dragOnlyRange === !0 ? (F.type = Mr.RANGE, Object.assign(F, { offsetRatio: G, offsetModel: o.convertRatioToModel(G), rangeValue: F.valueMax - F.valueMin, rangeRatio: F.ratioMax - F.ratioMin })) : F.type = F.ratioMax - G < G - F.ratioMin ? Mr.MAX : Mr.MIN : F.type = Mr.MAX, F;
|
|
5957
5957
|
}
|
|
5958
5958
|
function T(M, $ = r.dragging.value) {
|
|
5959
|
-
let
|
|
5960
|
-
const
|
|
5959
|
+
let U;
|
|
5960
|
+
const J = o.getDraggingRatio(M, $), oe = o.convertRatioToModel(J);
|
|
5961
5961
|
switch ($.type) {
|
|
5962
5962
|
case Mr.MIN:
|
|
5963
|
-
|
|
5963
|
+
J <= $.ratioMax ? (U = { minR: J, maxR: $.ratioMax, min: oe, max: $.valueMax }, r.focus.value = "min") : (U = { minR: $.ratioMax, maxR: J, min: $.valueMax, max: oe }, r.focus.value = "max");
|
|
5964
5964
|
break;
|
|
5965
5965
|
case Mr.MAX:
|
|
5966
|
-
|
|
5966
|
+
J >= $.ratioMin ? (U = { minR: $.ratioMin, maxR: J, min: $.valueMin, max: oe }, r.focus.value = "max") : (U = { minR: J, maxR: $.ratioMin, min: oe, max: $.valueMin }, r.focus.value = "min");
|
|
5967
5967
|
break;
|
|
5968
5968
|
case Mr.RANGE:
|
|
5969
|
-
const
|
|
5970
|
-
|
|
5969
|
+
const B = J - $.offsetRatio, F = Dt($.ratioMin + B, 0, 1 - $.rangeRatio), G = oe - $.offsetModel, X = Dt($.valueMin + G, e.min, e.max - $.rangeValue);
|
|
5970
|
+
U = { minR: F, maxR: F + $.rangeRatio, min: parseFloat(X.toFixed(r.decimals.value)), max: parseFloat((X + $.rangeValue).toFixed(r.decimals.value)) }, r.focus.value = "both";
|
|
5971
5971
|
break;
|
|
5972
5972
|
}
|
|
5973
|
-
u.value = u.value.min === null || u.value.max === null ? { min:
|
|
5973
|
+
u.value = u.value.min === null || u.value.max === null ? { min: U.min || e.min, max: U.max || e.max } : { min: U.min, max: U.max }, e.snap !== !0 || e.step === 0 ? (i.value = U.minR, l.value = U.maxR) : (i.value = o.convertModelToRatio(u.value.min), l.value = o.convertModelToRatio(u.value.max));
|
|
5974
5974
|
}
|
|
5975
5975
|
function D(M) {
|
|
5976
5976
|
if (!Tc.includes(M.keyCode))
|
|
5977
5977
|
return;
|
|
5978
5978
|
ct(M);
|
|
5979
|
-
const $ = ([34, 33].includes(M.keyCode) ? 10 : 1) * r.step.value,
|
|
5979
|
+
const $ = ([34, 33].includes(M.keyCode) ? 10 : 1) * r.step.value, U = ([34, 37, 40].includes(M.keyCode) ? -1 : 1) * (r.isReversed.value === !0 ? -1 : 1) * (e.vertical === !0 ? -1 : 1) * $;
|
|
5980
5980
|
if (r.focus.value === "both") {
|
|
5981
|
-
const
|
|
5982
|
-
u.value = { min: oe, max: parseFloat((oe +
|
|
5981
|
+
const J = u.value.max - u.value.min, oe = Dt(parseFloat((u.value.min + U).toFixed(r.decimals.value)), r.innerMin.value, r.innerMax.value - J);
|
|
5982
|
+
u.value = { min: oe, max: parseFloat((oe + J).toFixed(r.decimals.value)) };
|
|
5983
5983
|
} else {
|
|
5984
5984
|
if (r.focus.value === !1)
|
|
5985
5985
|
return;
|
|
5986
5986
|
{
|
|
5987
|
-
const
|
|
5988
|
-
u.value = { ...u.value, [
|
|
5987
|
+
const J = r.focus.value;
|
|
5988
|
+
u.value = { ...u.value, [J]: Dt(parseFloat((u.value[J] + U).toFixed(r.decimals.value)), J === "min" ? r.innerMin.value : u.value.min, J === "max" ? r.innerMax.value : u.value.max) };
|
|
5989
5989
|
}
|
|
5990
5990
|
}
|
|
5991
5991
|
O();
|
|
@@ -6080,109 +6080,109 @@ ye({ name: "QScrollArea", props: { ...wt, thumbStyle: Object, verticalThumbStyle
|
|
|
6080
6080
|
let s, f = null;
|
|
6081
6081
|
const d = N(null), v = b(() => "q-scrollarea" + (c.value === !0 ? " q-scrollarea--dark" : ""));
|
|
6082
6082
|
l.vertical.percentage = b(() => {
|
|
6083
|
-
const
|
|
6084
|
-
if (
|
|
6083
|
+
const B = l.vertical.size.value - i.vertical.value;
|
|
6084
|
+
if (B <= 0)
|
|
6085
6085
|
return 0;
|
|
6086
|
-
const F = Dt(l.vertical.position.value /
|
|
6086
|
+
const F = Dt(l.vertical.position.value / B, 0, 1);
|
|
6087
6087
|
return Math.round(1e4 * F) / 1e4;
|
|
6088
6088
|
}), l.vertical.thumbHidden = b(() => (e.visible === null ? a.value : e.visible) !== !0 && r.value === !1 && o.value === !1 || l.vertical.size.value <= i.vertical.value + 1), l.vertical.thumbStart = b(() => l.vertical.percentage.value * (i.vertical.value - l.vertical.thumbSize.value)), l.vertical.thumbSize = b(() => Math.round(Dt(i.vertical.value * i.vertical.value / l.vertical.size.value, Yf(i.vertical.value), i.vertical.value))), l.vertical.style = b(() => ({ ...e.thumbStyle, ...e.verticalThumbStyle, top: `${l.vertical.thumbStart.value}px`, height: `${l.vertical.thumbSize.value}px` })), l.vertical.thumbClass = b(() => "q-scrollarea__thumb q-scrollarea__thumb--v absolute-right" + (l.vertical.thumbHidden.value === !0 ? " q-scrollarea__thumb--invisible" : "")), l.vertical.barClass = b(() => "q-scrollarea__bar q-scrollarea__bar--v absolute-right" + (l.vertical.thumbHidden.value === !0 ? " q-scrollarea__bar--invisible" : "")), l.horizontal.percentage = b(() => {
|
|
6089
|
-
const
|
|
6090
|
-
if (
|
|
6089
|
+
const B = l.horizontal.size.value - i.horizontal.value;
|
|
6090
|
+
if (B <= 0)
|
|
6091
6091
|
return 0;
|
|
6092
|
-
const F = Dt(Math.abs(l.horizontal.position.value) /
|
|
6092
|
+
const F = Dt(Math.abs(l.horizontal.position.value) / B, 0, 1);
|
|
6093
6093
|
return Math.round(1e4 * F) / 1e4;
|
|
6094
6094
|
}), l.horizontal.thumbHidden = b(() => (e.visible === null ? a.value : e.visible) !== !0 && r.value === !1 && o.value === !1 || l.horizontal.size.value <= i.horizontal.value + 1), l.horizontal.thumbStart = b(() => l.horizontal.percentage.value * (i.horizontal.value - l.horizontal.thumbSize.value)), l.horizontal.thumbSize = b(() => Math.round(Dt(i.horizontal.value * i.horizontal.value / l.horizontal.size.value, Yf(i.horizontal.value), i.horizontal.value))), l.horizontal.style = b(() => ({ ...e.thumbStyle, ...e.horizontalThumbStyle, [u.$q.lang.rtl === !0 ? "right" : "left"]: `${l.horizontal.thumbStart.value}px`, width: `${l.horizontal.thumbSize.value}px` })), l.horizontal.thumbClass = b(() => "q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom" + (l.horizontal.thumbHidden.value === !0 ? " q-scrollarea__thumb--invisible" : "")), l.horizontal.barClass = b(() => "q-scrollarea__bar q-scrollarea__bar--h absolute-bottom" + (l.horizontal.thumbHidden.value === !0 ? " q-scrollarea__bar--invisible" : ""));
|
|
6095
|
-
const m = b(() => l.vertical.thumbHidden.value === !0 && l.horizontal.thumbHidden.value === !0 ? e.contentStyle : e.contentActiveStyle), w = [[Jn, (
|
|
6096
|
-
x(
|
|
6097
|
-
}, void 0, { vertical: !0, ...Kf }]], _ = [[Jn, (
|
|
6098
|
-
x(
|
|
6095
|
+
const m = b(() => l.vertical.thumbHidden.value === !0 && l.horizontal.thumbHidden.value === !0 ? e.contentStyle : e.contentActiveStyle), w = [[Jn, (B) => {
|
|
6096
|
+
x(B, "vertical");
|
|
6097
|
+
}, void 0, { vertical: !0, ...Kf }]], _ = [[Jn, (B) => {
|
|
6098
|
+
x(B, "horizontal");
|
|
6099
6099
|
}, void 0, { horizontal: !0, ...Kf }]];
|
|
6100
6100
|
function g() {
|
|
6101
|
-
const
|
|
6101
|
+
const B = {};
|
|
6102
6102
|
return Wf.forEach((F) => {
|
|
6103
|
-
const
|
|
6104
|
-
|
|
6105
|
-
}),
|
|
6103
|
+
const G = l[F];
|
|
6104
|
+
B[F + "Position"] = G.position.value, B[F + "Percentage"] = G.percentage.value, B[F + "Size"] = G.size.value, B[F + "ContainerSize"] = i[F].value;
|
|
6105
|
+
}), B;
|
|
6106
6106
|
}
|
|
6107
6107
|
const S = $a(() => {
|
|
6108
|
-
const
|
|
6109
|
-
|
|
6108
|
+
const B = g();
|
|
6109
|
+
B.ref = u, n("scroll", B);
|
|
6110
6110
|
}, 0);
|
|
6111
|
-
function h(
|
|
6112
|
-
if (Wf.includes(
|
|
6111
|
+
function h(B, F, G) {
|
|
6112
|
+
if (Wf.includes(B) === !1)
|
|
6113
6113
|
return void console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
|
|
6114
|
-
(
|
|
6114
|
+
(B === "vertical" ? pa : bs)(d.value, F, G);
|
|
6115
6115
|
}
|
|
6116
|
-
function y({ height:
|
|
6117
|
-
let
|
|
6118
|
-
i.vertical.value !==
|
|
6116
|
+
function y({ height: B, width: F }) {
|
|
6117
|
+
let G = !1;
|
|
6118
|
+
i.vertical.value !== B && (i.vertical.value = B, G = !0), i.horizontal.value !== F && (i.horizontal.value = F, G = !0), G === !0 && D();
|
|
6119
6119
|
}
|
|
6120
|
-
function k({ position:
|
|
6120
|
+
function k({ position: B }) {
|
|
6121
6121
|
let F = !1;
|
|
6122
|
-
l.vertical.position.value !==
|
|
6122
|
+
l.vertical.position.value !== B.top && (l.vertical.position.value = B.top, F = !0), l.horizontal.position.value !== B.left && (l.horizontal.position.value = B.left, F = !0), F === !0 && D();
|
|
6123
6123
|
}
|
|
6124
|
-
function E({ height:
|
|
6125
|
-
l.horizontal.size.value !== F && (l.horizontal.size.value = F, D()), l.vertical.size.value !==
|
|
6124
|
+
function E({ height: B, width: F }) {
|
|
6125
|
+
l.horizontal.size.value !== F && (l.horizontal.size.value = F, D()), l.vertical.size.value !== B && (l.vertical.size.value = B, D());
|
|
6126
6126
|
}
|
|
6127
|
-
function x(
|
|
6128
|
-
const
|
|
6129
|
-
if (
|
|
6130
|
-
if (
|
|
6127
|
+
function x(B, F) {
|
|
6128
|
+
const G = l[F];
|
|
6129
|
+
if (B.isFirst === !0) {
|
|
6130
|
+
if (G.thumbHidden.value === !0)
|
|
6131
6131
|
return;
|
|
6132
|
-
s =
|
|
6132
|
+
s = G.position.value, o.value = !0;
|
|
6133
6133
|
} else if (o.value !== !0)
|
|
6134
6134
|
return;
|
|
6135
|
-
|
|
6136
|
-
const
|
|
6137
|
-
M(
|
|
6138
|
-
}
|
|
6139
|
-
function O(
|
|
6140
|
-
const
|
|
6141
|
-
if (
|
|
6142
|
-
const
|
|
6143
|
-
if (
|
|
6144
|
-
const Q =
|
|
6145
|
-
M(Q / i[F].value *
|
|
6135
|
+
B.isFinal === !0 && (o.value = !1);
|
|
6136
|
+
const X = Rs[F], Q = i[F].value, R = (G.size.value - Q) / (Q - G.thumbSize.value), Y = B.distance[X.dist], Z = s + (B.direction === X.dir ? 1 : -1) * Y * R;
|
|
6137
|
+
M(Z, F);
|
|
6138
|
+
}
|
|
6139
|
+
function O(B, F) {
|
|
6140
|
+
const G = l[F];
|
|
6141
|
+
if (G.thumbHidden.value !== !0) {
|
|
6142
|
+
const X = B[Rs[F].offset];
|
|
6143
|
+
if (X < G.thumbStart.value || X > G.thumbStart.value + G.thumbSize.value) {
|
|
6144
|
+
const Q = X - G.thumbSize.value / 2;
|
|
6145
|
+
M(Q / i[F].value * G.size.value, F);
|
|
6146
6146
|
}
|
|
6147
|
-
|
|
6147
|
+
G.ref.value !== null && G.ref.value.dispatchEvent(new MouseEvent(B.type, B));
|
|
6148
6148
|
}
|
|
6149
6149
|
}
|
|
6150
|
-
function I(
|
|
6151
|
-
O(
|
|
6150
|
+
function I(B) {
|
|
6151
|
+
O(B, "vertical");
|
|
6152
6152
|
}
|
|
6153
|
-
function T(
|
|
6154
|
-
O(
|
|
6153
|
+
function T(B) {
|
|
6154
|
+
O(B, "horizontal");
|
|
6155
6155
|
}
|
|
6156
6156
|
function D() {
|
|
6157
6157
|
r.value = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
|
|
6158
6158
|
f = null, r.value = !1;
|
|
6159
6159
|
}, e.delay), e.onScroll !== void 0 && S();
|
|
6160
6160
|
}
|
|
6161
|
-
function M(
|
|
6162
|
-
d.value[Rs[F].scroll] =
|
|
6161
|
+
function M(B, F) {
|
|
6162
|
+
d.value[Rs[F].scroll] = B;
|
|
6163
6163
|
}
|
|
6164
6164
|
let $ = null;
|
|
6165
|
-
function
|
|
6165
|
+
function U() {
|
|
6166
6166
|
$ !== null && clearTimeout($), $ = setTimeout(() => {
|
|
6167
6167
|
$ = null, a.value = !0;
|
|
6168
6168
|
}, u.$q.platform.is.ios ? 50 : 0);
|
|
6169
6169
|
}
|
|
6170
|
-
function
|
|
6170
|
+
function J() {
|
|
6171
6171
|
$ !== null && (clearTimeout($), $ = null), a.value = !1;
|
|
6172
6172
|
}
|
|
6173
6173
|
let oe = null;
|
|
6174
|
-
return me(() => u.$q.lang.rtl, (
|
|
6175
|
-
d.value !== null && bs(d.value, Math.abs(l.horizontal.position.value) * (
|
|
6174
|
+
return me(() => u.$q.lang.rtl, (B) => {
|
|
6175
|
+
d.value !== null && bs(d.value, Math.abs(l.horizontal.position.value) * (B === !0 ? -1 : 1));
|
|
6176
6176
|
}), Nr(() => {
|
|
6177
6177
|
oe = { top: l.vertical.position.value, left: l.horizontal.position.value };
|
|
6178
6178
|
}), Lo(() => {
|
|
6179
6179
|
if (oe === null)
|
|
6180
6180
|
return;
|
|
6181
|
-
const
|
|
6182
|
-
|
|
6183
|
-
}), ht(S.cancel), Object.assign(u, { getScrollTarget: () => d.value, getScroll: g, getScrollPosition: () => ({ top: l.vertical.position.value, left: l.horizontal.position.value }), getScrollPercentage: () => ({ top: l.vertical.percentage.value, left: l.horizontal.percentage.value }), setScrollPosition: h, setScrollPercentage(
|
|
6184
|
-
h(
|
|
6185
|
-
} }), () => p("div", { class: v.value, onMouseenter:
|
|
6181
|
+
const B = d.value;
|
|
6182
|
+
B !== null && (bs(B, oe.left), pa(B, oe.top));
|
|
6183
|
+
}), ht(S.cancel), Object.assign(u, { getScrollTarget: () => d.value, getScroll: g, getScrollPosition: () => ({ top: l.vertical.position.value, left: l.horizontal.position.value }), getScrollPercentage: () => ({ top: l.vertical.percentage.value, left: l.horizontal.percentage.value }), setScrollPosition: h, setScrollPercentage(B, F, G) {
|
|
6184
|
+
h(B, F * (l[B].size.value - i[B].value) * (B === "horizontal" && u.$q.lang.rtl === !0 ? -1 : 1), G);
|
|
6185
|
+
} }), () => p("div", { class: v.value, onMouseenter: U, onMouseleave: J }, [p("div", { ref: d, class: "q-scrollarea__container scroll relative-position fit hide-scrollbar", tabindex: e.tabindex !== void 0 ? e.tabindex : void 0 }, [p("div", { class: "q-scrollarea__content absolute", style: m.value }, Zt(t.default, [p(qo, { debounce: 0, onResize: E })])), p(Fh, { axis: "both", onScroll: k })]), p(qo, { debounce: 0, onResize: y }), p("div", { class: l.vertical.barClass.value, style: [e.barStyle, e.verticalBarStyle], "aria-hidden": "true", onMousedown: I }), p("div", { class: l.horizontal.barClass.value, style: [e.barStyle, e.horizontalBarStyle], "aria-hidden": "true", onMousedown: T }), xe(p("div", { ref: l.vertical.ref, class: l.vertical.thumbClass.value, style: l.vertical.style.value, "aria-hidden": "true" }), w), xe(p("div", { ref: l.horizontal.ref, class: l.horizontal.thumbClass.value, style: l.horizontal.style.value, "aria-hidden": "true" }), _)]);
|
|
6186
6186
|
} });
|
|
6187
6187
|
const ar = 1e3, t1 = ["start", "center", "end", "start-force", "center-force", "end-force"], Hh = Array.prototype.filter, n1 = window.getComputedStyle(document.body).overflowAnchor === void 0 ? sn : function(e, t) {
|
|
6188
6188
|
e !== null && (e._qOverflowAnimationFrame !== void 0 && cancelAnimationFrame(e._qOverflowAnimationFrame), e._qOverflowAnimationFrame = requestAnimationFrame(() => {
|
|
@@ -6232,23 +6232,23 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6232
6232
|
r === void 0 && (r = b(() => a.virtualScrollItemSize));
|
|
6233
6233
|
const E = b(() => r.value + ";" + a.virtualScrollHorizontal), x = b(() => E.value + ";" + a.virtualScrollSliceRatioBefore + ";" + a.virtualScrollSliceRatioAfter);
|
|
6234
6234
|
function O() {
|
|
6235
|
-
|
|
6235
|
+
J(s, !0);
|
|
6236
6236
|
}
|
|
6237
6237
|
function I(Q) {
|
|
6238
|
-
|
|
6238
|
+
J(Q === void 0 ? s : Q);
|
|
6239
6239
|
}
|
|
6240
6240
|
function T(Q, R) {
|
|
6241
6241
|
const Y = t();
|
|
6242
6242
|
if (Y == null || Y.nodeType === 8)
|
|
6243
6243
|
return;
|
|
6244
|
-
const
|
|
6245
|
-
f !==
|
|
6244
|
+
const Z = As(Y, n(), g.value, S.value, a.virtualScrollHorizontal, u.lang.rtl, a.virtualScrollStickySizeStart, a.virtualScrollStickySizeEnd);
|
|
6245
|
+
f !== Z.scrollViewSize && oe(Z.scrollViewSize), M(Y, Z, Math.min(e.value - 1, Math.max(0, parseInt(Q, 10) || 0)), 0, t1.indexOf(R) > -1 ? R : s > -1 && Q > s ? "end" : "start");
|
|
6246
6246
|
}
|
|
6247
6247
|
function D() {
|
|
6248
6248
|
const Q = t();
|
|
6249
6249
|
if (Q == null || Q.nodeType === 8)
|
|
6250
6250
|
return;
|
|
6251
|
-
const R = As(Q, n(), g.value, S.value, a.virtualScrollHorizontal, u.lang.rtl, a.virtualScrollStickySizeStart, a.virtualScrollStickySizeEnd), Y = e.value - 1,
|
|
6251
|
+
const R = As(Q, n(), g.value, S.value, a.virtualScrollHorizontal, u.lang.rtl, a.virtualScrollStickySizeStart, a.virtualScrollStickySizeEnd), Y = e.value - 1, Z = R.scrollMaxSize - R.offsetStart - R.offsetEnd - w.value;
|
|
6252
6252
|
if (c === R.scrollStart)
|
|
6253
6253
|
return;
|
|
6254
6254
|
if (R.scrollMaxSize <= 0)
|
|
@@ -6258,7 +6258,7 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6258
6258
|
if (le > 0 && Math.ceil(R.scrollStart) >= le)
|
|
6259
6259
|
return void M(Q, R, Y, R.scrollMaxSize - R.offsetEnd - v.reduce(ma, 0));
|
|
6260
6260
|
let ae = 0, we = R.scrollStart - R.offsetStart, ne = we;
|
|
6261
|
-
if (we <=
|
|
6261
|
+
if (we <= Z && we + R.scrollViewSize >= m.value)
|
|
6262
6262
|
we -= m.value, ae = y.value.from, ne = we;
|
|
6263
6263
|
else
|
|
6264
6264
|
for (let P = 0; we >= v[P] && ae < Y; P++)
|
|
@@ -6267,7 +6267,7 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6267
6267
|
we -= d[ae], we > -R.scrollViewSize ? (ae++, ne = we) : ne = d[ae] + we;
|
|
6268
6268
|
M(Q, R, ae, ne);
|
|
6269
6269
|
}
|
|
6270
|
-
function M(Q, R, Y,
|
|
6270
|
+
function M(Q, R, Y, Z, le) {
|
|
6271
6271
|
const ae = typeof le == "string" && le.indexOf("-force") > -1, we = ae === !0 ? le.replace("-force", "") : le, ne = we !== void 0 ? we : "start";
|
|
6272
6272
|
let P = Math.max(0, Y - _.value[ne]), ie = P + _.value.total;
|
|
6273
6273
|
ie > e.value && (ie = e.value, P = Math.max(0, ie - _.value.total)), c = R.scrollStart;
|
|
@@ -6275,8 +6275,8 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6275
6275
|
if (be === !1 && we === void 0)
|
|
6276
6276
|
return void F(Y);
|
|
6277
6277
|
const { activeElement: Te } = document, j = h.value;
|
|
6278
|
-
be === !0 && j !== null && j !== Te && j.contains(Te) === !0 && (j.addEventListener("focusout",
|
|
6279
|
-
j !== null && j.removeEventListener("focusout",
|
|
6278
|
+
be === !0 && j !== null && j !== Te && j.contains(Te) === !0 && (j.addEventListener("focusout", U), setTimeout(() => {
|
|
6279
|
+
j !== null && j.removeEventListener("focusout", U);
|
|
6280
6280
|
})), n1(j, Y - P);
|
|
6281
6281
|
const L = we !== void 0 ? d.slice(P, Y).reduce(ma, 0) : 0;
|
|
6282
6282
|
if (be === !0) {
|
|
@@ -6290,7 +6290,7 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6290
6290
|
return;
|
|
6291
6291
|
be === !0 && $(P);
|
|
6292
6292
|
const te = d.slice(P, Y).reduce(ma, 0), ge = te + R.offsetStart + m.value, _e = ge + d[Y];
|
|
6293
|
-
let Re = ge +
|
|
6293
|
+
let Re = ge + Z;
|
|
6294
6294
|
if (we !== void 0) {
|
|
6295
6295
|
const ut = te - L, et = R.scrollStart + ut;
|
|
6296
6296
|
Re = ae !== !0 && et < ge && _e < et + R.scrollViewSize ? et : we === "end" ? _e - R.scrollViewSize : ge - (we === "start" ? 0 : Math.round((R.scrollViewSize - d[Y]) / 2));
|
|
@@ -6301,24 +6301,24 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6301
6301
|
function $(Q) {
|
|
6302
6302
|
const R = h.value;
|
|
6303
6303
|
if (R) {
|
|
6304
|
-
const Y = Hh.call(R.children, (P) => P.classList && P.classList.contains("q-virtual-scroll--skip") === !1),
|
|
6304
|
+
const Y = Hh.call(R.children, (P) => P.classList && P.classList.contains("q-virtual-scroll--skip") === !1), Z = Y.length, le = a.virtualScrollHorizontal === !0 ? (P) => P.getBoundingClientRect().width : (P) => P.offsetHeight;
|
|
6305
6305
|
let ae, we, ne = Q;
|
|
6306
|
-
for (let P = 0; P <
|
|
6307
|
-
for (ae = le(Y[P]), P++; P <
|
|
6306
|
+
for (let P = 0; P < Z; ) {
|
|
6307
|
+
for (ae = le(Y[P]), P++; P < Z && Y[P].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
6308
6308
|
ae += le(Y[P]), P++;
|
|
6309
6309
|
we = ae - d[ne], we !== 0 && (d[ne] += we, v[Math.floor(ne / ar)] += we), ne++;
|
|
6310
6310
|
}
|
|
6311
6311
|
}
|
|
6312
6312
|
}
|
|
6313
|
-
function
|
|
6313
|
+
function U() {
|
|
6314
6314
|
h.value !== null && h.value !== void 0 && h.value.focus();
|
|
6315
6315
|
}
|
|
6316
|
-
function
|
|
6316
|
+
function J(Q, R) {
|
|
6317
6317
|
const Y = 1 * r.value;
|
|
6318
6318
|
R !== !0 && Array.isArray(d) !== !1 || (d = []);
|
|
6319
|
-
const
|
|
6319
|
+
const Z = d.length;
|
|
6320
6320
|
d.length = e.value;
|
|
6321
|
-
for (let ae = e.value - 1; ae >=
|
|
6321
|
+
for (let ae = e.value - 1; ae >= Z; ae--)
|
|
6322
6322
|
d[ae] = Y;
|
|
6323
6323
|
const le = Math.floor((e.value - 1) / ar);
|
|
6324
6324
|
v = [];
|
|
@@ -6331,7 +6331,7 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6331
6331
|
}
|
|
6332
6332
|
s = -1, c = void 0, m.value = za(v, d, 0, y.value.from), w.value = za(v, d, y.value.to, e.value), Q >= 0 ? ($(y.value.from), ft(() => {
|
|
6333
6333
|
T(Q);
|
|
6334
|
-
})) :
|
|
6334
|
+
})) : G();
|
|
6335
6335
|
}
|
|
6336
6336
|
function oe(Q) {
|
|
6337
6337
|
if (Q === void 0 && typeof window < "u") {
|
|
@@ -6339,12 +6339,12 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6339
6339
|
we != null && we.nodeType !== 8 && (Q = As(we, n(), g.value, S.value, a.virtualScrollHorizontal, u.lang.rtl, a.virtualScrollStickySizeStart, a.virtualScrollStickySizeEnd).scrollViewSize);
|
|
6340
6340
|
}
|
|
6341
6341
|
f = Q;
|
|
6342
|
-
const R = parseFloat(a.virtualScrollSliceRatioBefore) || 0, Y = parseFloat(a.virtualScrollSliceRatioAfter) || 0,
|
|
6343
|
-
_.value = { total: Math.ceil(ae *
|
|
6342
|
+
const R = parseFloat(a.virtualScrollSliceRatioBefore) || 0, Y = parseFloat(a.virtualScrollSliceRatioAfter) || 0, Z = 1 + R + Y, le = Q === void 0 || Q <= 0 ? 1 : Math.ceil(Q / r.value), ae = Math.max(1, le, Math.ceil((a.virtualScrollSliceSize > 0 ? a.virtualScrollSliceSize : 10) / Z));
|
|
6343
|
+
_.value = { total: Math.ceil(ae * Z), start: Math.ceil(ae * R), center: Math.ceil(ae * (0.5 + R)), end: Math.ceil(ae * (1 + R)), view: le };
|
|
6344
6344
|
}
|
|
6345
|
-
function
|
|
6346
|
-
const Y = a.virtualScrollHorizontal === !0 ? "width" : "height",
|
|
6347
|
-
return [Q === "tbody" ? p(Q, { class: "q-virtual-scroll__padding", key: "before", ref: g }, [p("tr", [p("td", { style: { [Y]: `${m.value}px`, ...
|
|
6345
|
+
function B(Q, R) {
|
|
6346
|
+
const Y = a.virtualScrollHorizontal === !0 ? "width" : "height", Z = { ["--q-virtual-scroll-item-" + Y]: r.value + "px" };
|
|
6347
|
+
return [Q === "tbody" ? p(Q, { class: "q-virtual-scroll__padding", key: "before", ref: g }, [p("tr", [p("td", { style: { [Y]: `${m.value}px`, ...Z }, colspan: k.value })])]) : p(Q, { class: "q-virtual-scroll__padding", key: "before", ref: g, style: { [Y]: `${m.value}px`, ...Z } }), p(Q, { class: "q-virtual-scroll__content", key: "content", ref: h, tabindex: -1 }, R.flat()), Q === "tbody" ? p(Q, { class: "q-virtual-scroll__padding", key: "after", ref: S }, [p("tr", [p("td", { style: { [Y]: `${w.value}px`, ...Z }, colspan: k.value })])]) : p(Q, { class: "q-virtual-scroll__padding", key: "after", ref: S, style: { [Y]: `${w.value}px`, ...Z } })];
|
|
6348
6348
|
}
|
|
6349
6349
|
function F(Q) {
|
|
6350
6350
|
s !== Q && (a.onVirtualScroll !== void 0 && i("virtualScroll", { index: Q, from: y.value.from, to: y.value.to - 1, direction: Q < s ? "decrease" : "increase", ref: l }), s = Q);
|
|
@@ -6352,27 +6352,27 @@ function Yh({ virtualScrollLength: e, getVirtualScrollTarget: t, getVirtualScrol
|
|
|
6352
6352
|
me(x, () => {
|
|
6353
6353
|
oe();
|
|
6354
6354
|
}), me(E, O), oe();
|
|
6355
|
-
const
|
|
6355
|
+
const G = $a(D, u.platform.is.ios === !0 ? 120 : 35);
|
|
6356
6356
|
Ul(() => {
|
|
6357
6357
|
oe();
|
|
6358
6358
|
});
|
|
6359
|
-
let
|
|
6359
|
+
let X = !1;
|
|
6360
6360
|
return Nr(() => {
|
|
6361
|
-
|
|
6361
|
+
X = !0;
|
|
6362
6362
|
}), Lo(() => {
|
|
6363
|
-
if (
|
|
6363
|
+
if (X !== !0)
|
|
6364
6364
|
return;
|
|
6365
6365
|
const Q = t();
|
|
6366
6366
|
c !== void 0 && Q !== void 0 && Q !== null && Q.nodeType !== 8 ? Jf(Q, c, a.virtualScrollHorizontal, u.lang.rtl) : T(s);
|
|
6367
6367
|
}), ht(() => {
|
|
6368
|
-
|
|
6369
|
-
}), Object.assign(l, { scrollTo: T, reset: O, refresh: I }), { virtualScrollSliceRange: y, virtualScrollSliceSizeComputed: _, setVirtualScrollSize: oe, onVirtualScrollEvt:
|
|
6368
|
+
G.cancel();
|
|
6369
|
+
}), Object.assign(l, { scrollTo: T, reset: O, refresh: I }), { virtualScrollSliceRange: y, virtualScrollSliceSizeComputed: _, setVirtualScrollSize: oe, onVirtualScrollEvt: G, localResetVirtualScroll: J, padVirtualScroll: B, scrollTo: T, reset: O, refresh: I };
|
|
6370
6370
|
}
|
|
6371
6371
|
const Gf = (e) => ["add", "add-unique", "toggle"].includes(e), r1 = ".*+?^${}()|[]\\", o1 = Object.keys(qi);
|
|
6372
6372
|
var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, modelValue: { required: !0 }, multiple: Boolean, displayValue: [String, Number], displayValueHtml: Boolean, dropdownIcon: String, options: { type: Array, default: () => [] }, optionValue: [Function, String], optionLabel: [Function, String], optionDisable: [Function, String], hideSelected: Boolean, hideDropdownIcon: Boolean, fillInput: Boolean, maxValues: [Number, String], optionsDense: Boolean, optionsDark: { type: Boolean, default: null }, optionsSelectedClass: String, optionsHtml: Boolean, optionsCover: Boolean, menuShrink: Boolean, menuAnchor: String, menuSelf: String, menuOffset: Array, popupContentClass: String, popupContentStyle: [String, Array, Object], useInput: Boolean, useChips: Boolean, newValueMode: { type: String, validator: Gf }, mapOptions: Boolean, emitValue: Boolean, inputDebounce: { type: [Number, String], default: 500 }, inputClass: [Array, String, Object], inputStyle: [Array, String, Object], tabindex: { type: [String, Number], default: 0 }, autocomplete: String, transitionShow: String, transitionHide: String, transitionDuration: [String, Number], behavior: { type: String, validator: (e) => ["default", "menu", "dialog"].includes(e), default: "default" }, virtualScrollItemSize: { type: [Number, String], default: void 0 }, onNewValue: Function, onFilter: Function }, emits: [...Yl, "add", "remove", "inputValue", "newValue", "keyup", "keypress", "keydown", "filterAbort"], setup(e, { slots: t, emit: n }) {
|
|
6373
6373
|
const { proxy: r } = qe(), { $q: o } = r, a = N(!1), i = N(!1), l = N(-1), u = N(""), c = N(!1), s = N(!1);
|
|
6374
6374
|
let f, d, v, m, w, _, g, S = null, h = null, y = null;
|
|
6375
|
-
const k = N(null), E = N(null), x = N(null), O = N(null), I = N(null), T = gc(e), D = Dh(Ae), M = b(() => Array.isArray(e.options) ? e.options.length : 0), $ = b(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), { virtualScrollSliceRange:
|
|
6375
|
+
const k = N(null), E = N(null), x = N(null), O = N(null), I = N(null), T = gc(e), D = Dh(Ae), M = b(() => Array.isArray(e.options) ? e.options.length : 0), $ = b(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), { virtualScrollSliceRange: U, virtualScrollSliceSizeComputed: J, localResetVirtualScroll: oe, padVirtualScroll: B, onVirtualScrollEvt: F, scrollTo: G, setVirtualScrollSize: X } = Yh({ virtualScrollLength: M, getVirtualScrollTarget: zn, getVirtualScrollEl: qn, virtualScrollItemSizeComputed: $ }), Q = Jl(), R = b(() => {
|
|
6376
6376
|
const K = e.mapOptions === !0 && e.multiple !== !0, je = e.modelValue === void 0 || e.modelValue === null && K !== !0 ? [] : e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue];
|
|
6377
6377
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
6378
6378
|
const Ve = e.mapOptions === !0 && f !== void 0 ? f : [], pt = je.map((Ft) => se(Ft, Ve));
|
|
@@ -6385,7 +6385,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6385
6385
|
const Ve = e[je];
|
|
6386
6386
|
Ve !== void 0 && (K[je] = Ve);
|
|
6387
6387
|
}), K;
|
|
6388
|
-
}),
|
|
6388
|
+
}), Z = b(() => e.optionsDark === null ? Q.isDark.value : e.optionsDark), le = b(() => Po(R.value)), ae = b(() => {
|
|
6389
6389
|
let K = "q-field__input q-placeholder col";
|
|
6390
6390
|
return e.hideSelected === !0 || R.value.length === 0 ? [K, e.inputClass] : (K += " q-field__input--padding", e.inputClass === void 0 ? K : [K, e.inputClass]);
|
|
6391
6391
|
}), we = b(() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")), ne = b(() => M.value === 0), P = b(() => R.value.map((K) => Pe.value(K)).join(", ")), ie = b(() => e.displayValue !== void 0 ? e.displayValue : P.value), be = b(() => e.optionsHtml === !0 ? () => !0 : (K) => K != null && K.html === !0), Te = b(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || R.value.some(be.value))), j = b(() => Q.focused.value === !0 ? e.tabindex : -1), L = b(() => {
|
|
@@ -6394,9 +6394,9 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6394
6394
|
}), te = b(() => ({ id: `${Q.targetUid.value}_lb`, role: "listbox", "aria-multiselectable": e.multiple === !0 ? "true" : "false" })), ge = b(() => R.value.map((K, je) => ({ index: je, opt: K, html: be.value(K), selected: !0, removeAtIndex: Xe, toggleOption: Tt, tabindex: j.value }))), _e = b(() => {
|
|
6395
6395
|
if (M.value === 0)
|
|
6396
6396
|
return [];
|
|
6397
|
-
const { from: K, to: je } =
|
|
6397
|
+
const { from: K, to: je } = U.value;
|
|
6398
6398
|
return e.options.slice(K, je).map((Ve, pt) => {
|
|
6399
|
-
const Ft = de.value(Ve) === !0, Rt = K + pt, an = { clickable: !0, active: !1, activeClass: et.value, manualFocus: !0, focused: !1, disable: Ft, tabindex: -1, dense: e.optionsDense, dark:
|
|
6399
|
+
const Ft = de.value(Ve) === !0, Rt = K + pt, an = { clickable: !0, active: !1, activeClass: et.value, manualFocus: !0, focused: !1, disable: Ft, tabindex: -1, dense: e.optionsDense, dark: Z.value, role: "option", id: `${Q.targetUid.value}_${Rt}`, onClick: () => {
|
|
6400
6400
|
Tt(Ve);
|
|
6401
6401
|
} };
|
|
6402
6402
|
return Ft !== !0 && (Ye(Ve) === !0 && (an.active = !0), l.value === Rt && (an.focused = !0), an["aria-selected"] = an.active === !0 ? "true" : "false", o.platform.is.desktop === !0 && (an.onMousemove = () => {
|
|
@@ -6467,7 +6467,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6467
6467
|
do
|
|
6468
6468
|
Ve = gl(Ve + K, -1, M.value - 1);
|
|
6469
6469
|
while (Ve !== -1 && Ve !== l.value && de.value(e.options[Ve]) === !0);
|
|
6470
|
-
l.value !== Ve && (pe(Ve),
|
|
6470
|
+
l.value !== Ve && (pe(Ve), G(Ve), je !== !0 && e.useInput === !0 && e.fillInput === !0 && Je(Ve >= 0 ? Pe.value(e.options[Ve]) : m, !0));
|
|
6471
6471
|
}
|
|
6472
6472
|
}
|
|
6473
6473
|
function se(K, je) {
|
|
@@ -6521,7 +6521,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6521
6521
|
return ct(K), void Hn();
|
|
6522
6522
|
if (K.keyCode === 8 && (e.useChips === !0 || e.clearable === !0) && e.hideSelected !== !0 && u.value.length === 0)
|
|
6523
6523
|
return void (e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? $e(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && n("update:modelValue", null));
|
|
6524
|
-
K.keyCode !== 35 && K.keyCode !== 36 || typeof u.value == "string" && u.value.length !== 0 || (ct(K), l.value = -1, Se(K.keyCode === 36 ? 1 : -1, e.multiple)), K.keyCode !== 33 && K.keyCode !== 34 ||
|
|
6524
|
+
K.keyCode !== 35 && K.keyCode !== 36 || typeof u.value == "string" && u.value.length !== 0 || (ct(K), l.value = -1, Se(K.keyCode === 36 ? 1 : -1, e.multiple)), K.keyCode !== 33 && K.keyCode !== 34 || J.value === void 0 || (ct(K), l.value = Math.max(-1, Math.min(M.value, l.value + (K.keyCode === 33 ? -1 : 1) * J.value.view)), Se(K.keyCode === 33 ? 1 : -1, e.multiple)), K.keyCode !== 38 && K.keyCode !== 40 || (ct(K), Se(K.keyCode === 38 ? -1 : 1, e.multiple));
|
|
6525
6525
|
const pt = M.value;
|
|
6526
6526
|
if ((_ === void 0 || g < Date.now()) && (_ = ""), pt > 0 && e.useInput !== !0 && K.key !== void 0 && K.key.length === 1 && K.altKey === !1 && K.ctrlKey === !1 && K.metaKey === !1 && (K.keyCode !== 32 || _.length !== 0)) {
|
|
6527
6527
|
a.value !== !0 && Hn(K);
|
|
@@ -6534,7 +6534,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6534
6534
|
Pn = gl(Pn + 1, -1, pt - 1);
|
|
6535
6535
|
while (Pn !== l.value && (de.value(e.options[Pn]) === !0 || an.test(Pe.value(e.options[Pn])) !== !0));
|
|
6536
6536
|
l.value !== Pn && ft(() => {
|
|
6537
|
-
pe(Pn),
|
|
6537
|
+
pe(Pn), G(Pn), Pn >= 0 && e.useInput === !0 && e.fillInput === !0 && Je(Pe.value(e.options[Pn]), !0);
|
|
6538
6538
|
});
|
|
6539
6539
|
} else if (K.keyCode === 13 || K.keyCode === 32 && e.useInput !== !0 && _ === "" || K.keyCode === 9 && Ve !== !1)
|
|
6540
6540
|
if (K.keyCode !== 9 && ct(K), l.value > -1 && l.value < pt)
|
|
@@ -6572,7 +6572,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6572
6572
|
if (ne.value === !0)
|
|
6573
6573
|
return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: u.value }) : void 0;
|
|
6574
6574
|
const K = t.option !== void 0 ? t.option : (Ve) => p(fn, { key: Ve.index, ...Ve.itemProps }, () => p(kn, () => p(_o, () => p("span", { [Ve.html === !0 ? "innerHTML" : "textContent"]: Ve.label }))));
|
|
6575
|
-
let je =
|
|
6575
|
+
let je = B("div", _e.value.map(K));
|
|
6576
6576
|
return t["before-options"] !== void 0 && (je = t["before-options"]().concat(je)), Zt(t["after-options"], je);
|
|
6577
6577
|
}
|
|
6578
6578
|
function he(K, je) {
|
|
@@ -6612,13 +6612,13 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6612
6612
|
});
|
|
6613
6613
|
}
|
|
6614
6614
|
function Ht() {
|
|
6615
|
-
return p(Fo, { ref: x, class: we.value, style: e.popupContentStyle, modelValue: a.value, fit: e.menuShrink !== !0, cover: e.optionsCover === !0 && ne.value !== !0 && e.useInput !== !0, anchor: e.menuAnchor, self: e.menuSelf, offset: e.menuOffset, dark:
|
|
6615
|
+
return p(Fo, { ref: x, class: we.value, style: e.popupContentStyle, modelValue: a.value, fit: e.menuShrink !== !0, cover: e.optionsCover === !0 && ne.value !== !0 && e.useInput !== !0, anchor: e.menuAnchor, self: e.menuSelf, offset: e.menuOffset, dark: Z.value, noParentEvent: !0, noRefocus: !0, noFocus: !0, square: ut.value, transitionShow: e.transitionShow, transitionHide: e.transitionHide, transitionDuration: e.transitionDuration, separateClosePopup: !0, ...te.value, onScrollPassive: F, onBeforeShow: zd, onBeforeHide: z, onShow: ee }, vr);
|
|
6616
6616
|
}
|
|
6617
6617
|
function z(K) {
|
|
6618
6618
|
Hd(K), Ot();
|
|
6619
6619
|
}
|
|
6620
6620
|
function ee() {
|
|
6621
|
-
|
|
6621
|
+
X();
|
|
6622
6622
|
}
|
|
6623
6623
|
function ve(K) {
|
|
6624
6624
|
Kt(K), E.value !== null && E.value.focus(), c.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
@@ -6629,8 +6629,8 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6629
6629
|
});
|
|
6630
6630
|
}
|
|
6631
6631
|
function De() {
|
|
6632
|
-
const K = [p(R_, { class: `col-auto ${Q.fieldClass.value}`, ...Y.value, for: Q.targetUid.value, dark:
|
|
6633
|
-
return a.value === !0 && K.push(p("div", { ref: I, class: we.value + " scroll", style: e.popupContentStyle, ...te.value, onClick: mn, onScrollPassive: F }, vr())), p(Ma, { ref: O, modelValue: i.value, position: e.useInput === !0 ? "top" : void 0, transitionShow: w, transitionHide: e.transitionHide, transitionDuration: e.transitionDuration, onBeforeShow: zd, onBeforeHide: Ct, onHide: Ge, onShow: mt }, () => p("div", { class: "q-select__dialog" + (
|
|
6632
|
+
const K = [p(R_, { class: `col-auto ${Q.fieldClass.value}`, ...Y.value, for: Q.targetUid.value, dark: Z.value, square: !0, loading: s.value, itemAligned: !1, filled: !0, stackLabel: u.value.length !== 0, ...Q.splitAttrs.listeners.value, onFocus: ve, onBlur: Me }, { ...t, rawControl: () => Q.getControl(!0), before: void 0, after: void 0 })];
|
|
6633
|
+
return a.value === !0 && K.push(p("div", { ref: I, class: we.value + " scroll", style: e.popupContentStyle, ...te.value, onClick: mn, onScrollPassive: F }, vr())), p(Ma, { ref: O, modelValue: i.value, position: e.useInput === !0 ? "top" : void 0, transitionShow: w, transitionHide: e.transitionHide, transitionDuration: e.transitionDuration, onBeforeShow: zd, onBeforeHide: Ct, onHide: Ge, onShow: mt }, () => p("div", { class: "q-select__dialog" + (Z.value === !0 ? " q-select__dialog--dark q-dark" : "") + (c.value === !0 ? " q-select__dialog--focused" : "") }, K));
|
|
6634
6634
|
}
|
|
6635
6635
|
function Ct(K) {
|
|
6636
6636
|
Hd(K), O.value !== null && O.value.__updateRefocusTarget(Q.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")), Q.focused.value = !1;
|
|
@@ -6640,7 +6640,7 @@ var Kn = ye({ name: "QSelect", inheritAttrs: !1, props: { ...Kh, ...tr, ...qi, m
|
|
|
6640
6640
|
}
|
|
6641
6641
|
function mt() {
|
|
6642
6642
|
const K = document.activeElement;
|
|
6643
|
-
K !== null && K.id === Q.targetUid.value || E.value === null || E.value === K || E.value.focus(),
|
|
6643
|
+
K !== null && K.id === Q.targetUid.value || E.value === null || E.value === K || E.value.focus(), X();
|
|
6644
6644
|
}
|
|
6645
6645
|
function Ot() {
|
|
6646
6646
|
i.value !== !0 && (l.value = -1, a.value === !0 && (a.value = !1), Q.focused.value === !1 && (y !== null && (clearTimeout(y), y = null), Q.innerLoading.value === !0 && (n("filterAbort"), Q.innerLoading.value = !1, s.value = !1)));
|
|
@@ -7285,14 +7285,14 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7285
7285
|
if (g.value === !0 || he.length === 0)
|
|
7286
7286
|
return he;
|
|
7287
7287
|
const { sortBy: Ae, descending: Je } = _.value;
|
|
7288
|
-
return e.filter && (he = y.value(he, e.filter, Q.value, pe)),
|
|
7288
|
+
return e.filter && (he = y.value(he, e.filter, Q.value, pe)), Z.value !== null && (he = le.value(e.rows === he ? he.slice() : he, Ae, Je)), he;
|
|
7289
7289
|
}), I = b(() => O.value.length), T = b(() => {
|
|
7290
7290
|
let he = O.value;
|
|
7291
7291
|
if (g.value === !0)
|
|
7292
7292
|
return he;
|
|
7293
7293
|
const { rowsPerPage: Ae } = _.value;
|
|
7294
7294
|
return Ae !== 0 && (we.value === 0 && e.rows !== he ? he.length > ne.value && (he = he.slice(0, ne.value)) : he = he.slice(we.value, ne.value)), he;
|
|
7295
|
-
}), { hasSelectionMode: D, singleSelection: M, multipleSelection: $, allRowsSelected:
|
|
7295
|
+
}), { hasSelectionMode: D, singleSelection: M, multipleSelection: $, allRowsSelected: U, someRowsSelected: J, rowsSelectedNumber: oe, isRowSelected: B, clearSelection: F, updateSelection: G } = Y1(e, n, T, u), { colList: X, computedCols: Q, computedColsMap: R, computedColspan: Y } = ew(e, _, D), { columnToSort: Z, computedSortMethod: le, sort: ae } = V1(e, _, X, h), { firstRowIndex: we, lastRowIndex: ne, isFirstPage: P, isLastPage: ie, pagesNumber: be, computedRowsPerPageOptions: Te, computedRowsNumber: j, firstPage: L, prevPage: te, nextPage: ge, lastPage: _e } = Q1(r, w, _, g, h, I), Re = b(() => T.value.length === 0), ut = b(() => {
|
|
7296
7296
|
const he = {};
|
|
7297
7297
|
return Wh.forEach((Ae) => {
|
|
7298
7298
|
he[Ae] = e[Ae];
|
|
@@ -7334,7 +7334,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7334
7334
|
return [p(zh, { class: "q-table__linear-progress", color: e.color, dark: a.value, indeterminate: !0, trackColor: "transparent" })];
|
|
7335
7335
|
}
|
|
7336
7336
|
function re(he, Ae, Je) {
|
|
7337
|
-
const Ze = u.value(he), dt =
|
|
7337
|
+
const Ze = u.value(he), dt = B(Ze);
|
|
7338
7338
|
if (Ae !== void 0)
|
|
7339
7339
|
return Ae($e({ key: Ze, row: he, pageIndex: Je, __trClass: dt ? "selected" : "" }));
|
|
7340
7340
|
const Ht = t["body-cell"], z = Q.value.map((ve) => {
|
|
@@ -7343,7 +7343,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7343
7343
|
});
|
|
7344
7344
|
if (D.value === !0) {
|
|
7345
7345
|
const ve = t["body-selection"], Me = ve !== void 0 ? ve(kt({ key: Ze, row: he, pageIndex: Je })) : [p(Eo, { modelValue: dt, color: e.color, dark: a.value, dense: e.dense, "onUpdate:modelValue": (De, Ct) => {
|
|
7346
|
-
|
|
7346
|
+
G([Ze], [he], De, Ct);
|
|
7347
7347
|
} })];
|
|
7348
7348
|
z.unshift(p("td", { class: "q-table--col-auto-width" }, Me));
|
|
7349
7349
|
}
|
|
@@ -7371,8 +7371,8 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7371
7371
|
return Tt(he), he;
|
|
7372
7372
|
}
|
|
7373
7373
|
function Tt(he) {
|
|
7374
|
-
Object.assign(he, { cols: Q.value, colsMap: R.value, sort: ae, rowIndex: we.value + he.pageIndex, color: e.color, dark: a.value, dense: e.dense }), D.value === !0 && vn(he, "selected", () =>
|
|
7375
|
-
|
|
7374
|
+
Object.assign(he, { cols: Q.value, colsMap: R.value, sort: ae, rowIndex: we.value + he.pageIndex, color: e.color, dark: a.value, dense: e.dense }), D.value === !0 && vn(he, "selected", () => B(he.key), (Ae, Je) => {
|
|
7375
|
+
G([he.key], [he.row], Ae, Je);
|
|
7376
7376
|
}), vn(he, "expand", () => k(he.key), (Ae) => {
|
|
7377
7377
|
x(he.key, Ae);
|
|
7378
7378
|
});
|
|
@@ -7389,7 +7389,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7389
7389
|
let z;
|
|
7390
7390
|
return dt === !0 ? z = Ze(Se.value).slice() : (z = [], Ae !== void 0 ? z.push(p("div", { class: "q-table__control" }, [Ae(Se.value)])) : e.title && z.push(p("div", { class: "q-table__control" }, [p("div", { class: ["q-table__title", e.titleClass] }, e.title)]))), Je !== void 0 && (z.push(p("div", { class: "q-table__separator col" })), z.push(p("div", { class: "q-table__control" }, [Je(Se.value)]))), z.length !== 0 ? p("div", { class: Ht }, z) : void 0;
|
|
7391
7391
|
}
|
|
7392
|
-
const Ce = b(() =>
|
|
7392
|
+
const Ce = b(() => J.value === !0 ? null : U.value);
|
|
7393
7393
|
function Ye() {
|
|
7394
7394
|
const he = it();
|
|
7395
7395
|
return e.loading === !0 && t.loading === void 0 && he.push(p("tr", { class: "q-table__progress" }, [p("th", { class: "relative-position", colspan: Y.value }, Oe())])), p("thead", he);
|
|
@@ -7414,7 +7414,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7414
7414
|
return Object.assign(he, { cols: Q.value, sort: ae, colsMap: R.value, color: e.color, dark: a.value, dense: e.dense }), $.value === !0 && vn(he, "selected", () => Ce.value, gt), he;
|
|
7415
7415
|
}
|
|
7416
7416
|
function gt(he) {
|
|
7417
|
-
|
|
7417
|
+
J.value === !0 && (he = !1), G(T.value.map(u.value), T.value, he);
|
|
7418
7418
|
}
|
|
7419
7419
|
const Mt = b(() => {
|
|
7420
7420
|
const he = [e.iconFirstPage || o.iconSet.table.firstPage, e.iconPrevPage || o.iconSet.table.prevPage, e.iconNextPage || o.iconSet.table.nextPage, e.iconLastPage || o.iconSet.table.lastPage];
|
|
@@ -7458,7 +7458,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7458
7458
|
const Je = Ae.cols.map((dt) => p("div", { class: "q-table__grid-item-row" }, [p("div", { class: "q-table__grid-item-title" }, [dt.label]), p("div", { class: "q-table__grid-item-value" }, [dt.value])]));
|
|
7459
7459
|
if (D.value === !0) {
|
|
7460
7460
|
const dt = t["body-selection"], Ht = dt !== void 0 ? dt(Ae) : [p(Eo, { modelValue: Ae.selected, color: e.color, dark: a.value, dense: e.dense, "onUpdate:modelValue": (z, ee) => {
|
|
7461
|
-
|
|
7461
|
+
G([Ae.key], [Ae.row], z, ee);
|
|
7462
7462
|
} })];
|
|
7463
7463
|
Je.unshift(p("div", { class: "q-table__grid-item-row" }, Ht), p(ur, { dark: a.value }));
|
|
7464
7464
|
}
|
|
@@ -7471,7 +7471,7 @@ var Mn = ye({ name: "QTable", props: { rows: { type: Array, default: () => [] },
|
|
|
7471
7471
|
};
|
|
7472
7472
|
return p("div", { class: ["q-table__grid-content row", e.cardContainerClass], style: e.cardContainerStyle }, T.value.map((Ae, Je) => he($e({ key: u.value(Ae), row: Ae, pageIndex: Je }))));
|
|
7473
7473
|
}
|
|
7474
|
-
return Object.assign(r.proxy, { requestServerInteraction: S, setPagination: h, firstPage: L, prevPage: te, nextPage: ge, lastPage: _e, isRowSelected:
|
|
7474
|
+
return Object.assign(r.proxy, { requestServerInteraction: S, setPagination: h, firstPage: L, prevPage: te, nextPage: ge, lastPage: _e, isRowSelected: B, clearSelection: F, isRowExpanded: k, setExpanded: E, sort: ae, resetVirtualScroll: et, scrollTo: Pe, getCellValue: pe }), um(r.proxy, { filteredSortedRows: () => O.value, computedRows: () => T.value, computedRowsNumber: () => j.value }), () => {
|
|
7475
7475
|
const he = [se()], Ae = { ref: c, class: m.value };
|
|
7476
7476
|
return e.grid === !0 ? he.push(wr()) : Object.assign(Ae, { class: [Ae.class, e.cardClass], style: e.cardStyle }), he.push(Ee(), zt()), e.loading === !0 && t.loading !== void 0 && he.push(t.loading()), p("div", Ae, he);
|
|
7477
7477
|
};
|
|
@@ -7519,21 +7519,21 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7519
7519
|
const pe = h.value === "hour", Se = pe === !0 ? 12 : 60, se = y.value[h.value];
|
|
7520
7520
|
let Ye = `rotate(${Math.round(se * (360 / Se)) - 180}deg) translateX(-50%)`;
|
|
7521
7521
|
return pe === !0 && O.value === !0 && y.value.hour >= 12 && (Ye += " scale(.7)"), { transform: Ye };
|
|
7522
|
-
}), T = b(() => y.value.hour !== null), D = b(() => T.value === !0 && y.value.minute !== null), M = b(() => e.hourOptions !== void 0 ? (pe) => e.hourOptions.includes(pe) : e.options !== void 0 ? (pe) => e.options(pe, null, null) : null), $ = b(() => e.minuteOptions !== void 0 ? (pe) => e.minuteOptions.includes(pe) : e.options !== void 0 ? (pe) => e.options(y.value.hour, pe, null) : null),
|
|
7522
|
+
}), T = b(() => y.value.hour !== null), D = b(() => T.value === !0 && y.value.minute !== null), M = b(() => e.hourOptions !== void 0 ? (pe) => e.hourOptions.includes(pe) : e.options !== void 0 ? (pe) => e.options(pe, null, null) : null), $ = b(() => e.minuteOptions !== void 0 ? (pe) => e.minuteOptions.includes(pe) : e.options !== void 0 ? (pe) => e.options(y.value.hour, pe, null) : null), U = b(() => e.secondOptions !== void 0 ? (pe) => e.secondOptions.includes(pe) : e.options !== void 0 ? (pe) => e.options(y.value.hour, y.value.minute, pe) : null), J = b(() => {
|
|
7523
7523
|
if (M.value === null)
|
|
7524
7524
|
return null;
|
|
7525
7525
|
const pe = R(0, 11, M.value), Se = R(12, 11, M.value);
|
|
7526
7526
|
return { am: pe, pm: Se, values: pe.values.concat(Se.values) };
|
|
7527
|
-
}), oe = b(() => $.value !== null ? R(0, 59, $.value) : null),
|
|
7527
|
+
}), oe = b(() => $.value !== null ? R(0, 59, $.value) : null), B = b(() => U.value !== null ? R(0, 59, U.value) : null), F = b(() => {
|
|
7528
7528
|
switch (h.value) {
|
|
7529
7529
|
case "hour":
|
|
7530
|
-
return
|
|
7530
|
+
return J.value;
|
|
7531
7531
|
case "minute":
|
|
7532
7532
|
return oe.value;
|
|
7533
7533
|
case "second":
|
|
7534
|
-
return
|
|
7534
|
+
return B.value;
|
|
7535
7535
|
}
|
|
7536
|
-
}),
|
|
7536
|
+
}), G = b(() => {
|
|
7537
7537
|
let pe, Se, se = 0, Ce = 1;
|
|
7538
7538
|
const Ye = F.value !== null ? F.value.values : void 0;
|
|
7539
7539
|
h.value === "hour" ? O.value === !0 ? (pe = 0, Se = 23) : (pe = 0, Se = 11, k.value === !1 && (se = 12)) : (pe = 0, Se = 55, Ce = 5);
|
|
@@ -7543,7 +7543,7 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7543
7543
|
it.push({ val: Mt, index: gt, disable: zt, label: qn });
|
|
7544
7544
|
}
|
|
7545
7545
|
return it;
|
|
7546
|
-
}),
|
|
7546
|
+
}), X = b(() => [[Jn, P, void 0, { stop: !0, prevent: !0, mouse: !0 }]]);
|
|
7547
7547
|
function Q() {
|
|
7548
7548
|
const pe = { ...c(), ...nw() };
|
|
7549
7549
|
Xe(pe), Object.assign(y.value, pe), h.value = "hour";
|
|
@@ -7559,7 +7559,7 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7559
7559
|
const Ce = Math.abs(pe - Se);
|
|
7560
7560
|
return Math.min(Ce, se - Ce);
|
|
7561
7561
|
}
|
|
7562
|
-
function
|
|
7562
|
+
function Z(pe, { min: Se, max: se, values: Ce, threshold: Ye }) {
|
|
7563
7563
|
if (pe === Se)
|
|
7564
7564
|
return Se;
|
|
7565
7565
|
if (pe < Se || pe > se)
|
|
@@ -7578,7 +7578,7 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7578
7578
|
return Za(e.defaultDate, "YYYY/MM/DD", void 0, e.calendar);
|
|
7579
7579
|
}
|
|
7580
7580
|
function we() {
|
|
7581
|
-
return Ei(r) === !0 || F.value !== null && (F.value.values.length === 0 || h.value === "hour" && O.value !== !0 &&
|
|
7581
|
+
return Ei(r) === !0 || F.value !== null && (F.value.values.length === 0 || h.value === "hour" && O.value !== !0 && J.value[k.value === !0 ? "am" : "pm"].values.length === 0);
|
|
7582
7582
|
}
|
|
7583
7583
|
function ne() {
|
|
7584
7584
|
const pe = m.value, { top: Se, left: se, width: Ce } = pe.getBoundingClientRect(), Ye = Ce / 2;
|
|
@@ -7598,14 +7598,14 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7598
7598
|
const Ce = Dn(pe), Ye = Math.abs(Ce.top - Se.top), it = Math.sqrt(Math.pow(Math.abs(Ce.top - Se.top), 2) + Math.pow(Math.abs(Ce.left - Se.left), 2));
|
|
7599
7599
|
let Ue, gt = Math.asin(Ye / it) * (180 / Math.PI);
|
|
7600
7600
|
if (gt = Ce.top < Se.top ? Se.left < Ce.left ? 90 - gt : 270 + gt : Se.left < Ce.left ? gt + 90 : 270 - gt, h.value === "hour") {
|
|
7601
|
-
if (Ue = gt / 30,
|
|
7602
|
-
const Mt = O.value !== !0 ? k.value === !0 :
|
|
7603
|
-
Ue =
|
|
7601
|
+
if (Ue = gt / 30, J.value !== null) {
|
|
7602
|
+
const Mt = O.value !== !0 ? k.value === !0 : J.value.am.values.length !== 0 && J.value.pm.values.length !== 0 ? it >= Se.dist : J.value.am.values.length !== 0;
|
|
7603
|
+
Ue = Z(Ue + (Mt === !0 ? 0 : 12), J.value[Mt === !0 ? "am" : "pm"]);
|
|
7604
7604
|
} else
|
|
7605
7605
|
Ue = Math.round(Ue), O.value === !0 ? it < Se.dist ? Ue < 12 && (Ue += 12) : Ue === 12 && (Ue = 0) : k.value === !0 && Ue === 12 ? Ue = 0 : k.value === !1 && Ue !== 12 && (Ue += 12);
|
|
7606
7606
|
O.value === !0 && (k.value = Ue < 12);
|
|
7607
7607
|
} else
|
|
7608
|
-
Ue = Math.round(gt / 6) % 60, h.value === "minute" && oe.value !== null ? Ue =
|
|
7608
|
+
Ue = Math.round(gt / 6) % 60, h.value === "minute" && oe.value !== null ? Ue = Z(Ue, oe.value) : h.value === "second" && B.value !== null && (Ue = Z(Ue, B.value));
|
|
7609
7609
|
return se !== Ue && de[h.value](Ue), Ue;
|
|
7610
7610
|
}
|
|
7611
7611
|
me(() => e.modelValue, (pe) => {
|
|
@@ -7640,8 +7640,8 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7640
7640
|
h.value = "hour";
|
|
7641
7641
|
else if ([37, 39].includes(pe.keyCode)) {
|
|
7642
7642
|
const Se = pe.keyCode === 37 ? -1 : 1;
|
|
7643
|
-
if (
|
|
7644
|
-
const se = O.value === !0 ?
|
|
7643
|
+
if (J.value !== null) {
|
|
7644
|
+
const se = O.value === !0 ? J.value.values : J.value[k.value === !0 ? "am" : "pm"].values;
|
|
7645
7645
|
if (se.length === 0)
|
|
7646
7646
|
return;
|
|
7647
7647
|
if (y.value.hour === null)
|
|
@@ -7682,8 +7682,8 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7682
7682
|
h.value = "second";
|
|
7683
7683
|
else if ([37, 39].includes(pe.keyCode)) {
|
|
7684
7684
|
const Se = pe.keyCode === 37 ? -1 : 1;
|
|
7685
|
-
if (
|
|
7686
|
-
const se =
|
|
7685
|
+
if (B.value !== null) {
|
|
7686
|
+
const se = B.value.values;
|
|
7687
7687
|
if (se.length === 0)
|
|
7688
7688
|
return;
|
|
7689
7689
|
if (y.value.seconds === null)
|
|
@@ -7719,7 +7719,7 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7719
7719
|
h.value !== pe && Se !== void 0 && Se !== null && Se !== "" && typeof Se != "string" && (h.value = pe);
|
|
7720
7720
|
}
|
|
7721
7721
|
function $e() {
|
|
7722
|
-
return M.value !== null && M.value(y.value.hour) !== !0 ? (y.value = Za(), void ce("hour")) : $.value !== null && $.value(y.value.minute) !== !0 ? (y.value.minute = null, y.value.second = null, void ce("minute")) : e.withSeconds === !0 &&
|
|
7722
|
+
return M.value !== null && M.value(y.value.hour) !== !0 ? (y.value = Za(), void ce("hour")) : $.value !== null && $.value(y.value.minute) !== !0 ? (y.value.minute = null, y.value.second = null, void ce("minute")) : e.withSeconds === !0 && U.value !== null && U.value(y.value.second) !== !0 ? (y.value.second = null, void ce("second")) : void (y.value.hour === null || y.value.minute === null || e.withSeconds === !0 && y.value.second === null || Xe());
|
|
7723
7723
|
}
|
|
7724
7724
|
function Xe(pe) {
|
|
7725
7725
|
const Se = Object.assign({ ...y.value }, pe), se = e.calendar === "persian" ? Et(Se.hour) + ":" + Et(Se.minute) + (e.withSeconds === !0 ? ":" + Et(Se.second) : "") : gh(new Date(Se.year, Se.month === null ? null : Se.month - 1, Se.day, Se.hour, Se.minute, Se.second, Se.millisecond), w.value, _.value, Se.year, Se.timezoneOffset);
|
|
@@ -7733,7 +7733,7 @@ ye({ name: "QTime", props: { ...wt, ...tr, ...ch, mask: { default: null }, forma
|
|
|
7733
7733
|
}
|
|
7734
7734
|
function Tt() {
|
|
7735
7735
|
const pe = y.value[h.value];
|
|
7736
|
-
return p("div", { class: "q-time__content col relative-position" }, [p(pn, { name: "q-transition--scale" }, () => p("div", { key: "clock" + h.value, class: "q-time__container-parent absolute-full" }, [p("div", { ref: m, class: "q-time__container-child fit overflow-hidden" }, [xe(p("div", { class: "q-time__clock cursor-pointer non-selectable", onClick: te, onMousedown: ge }, [p("div", { class: "q-time__clock-circle fit" }, [p("div", { class: "q-time__clock-pointer" + (y.value[h.value] === null ? " hidden" : e.color !== void 0 ? ` text-${e.color}` : ""), style: I.value }),
|
|
7736
|
+
return p("div", { class: "q-time__content col relative-position" }, [p(pn, { name: "q-transition--scale" }, () => p("div", { key: "clock" + h.value, class: "q-time__container-parent absolute-full" }, [p("div", { ref: m, class: "q-time__container-child fit overflow-hidden" }, [xe(p("div", { class: "q-time__clock cursor-pointer non-selectable", onClick: te, onMousedown: ge }, [p("div", { class: "q-time__clock-circle fit" }, [p("div", { class: "q-time__clock-pointer" + (y.value[h.value] === null ? " hidden" : e.color !== void 0 ? ` text-${e.color}` : ""), style: I.value }), G.value.map((Se) => p("div", { class: `q-time__clock-position row flex-center q-time__clock-pos-${Se.index}` + (Se.val === pe ? " q-time__clock-position--active " + l.value : Se.disable === !0 ? " q-time__clock-position--disable" : "") }, [p("span", Se.label)]))])]), X.value)])])), e.nowBtn === !0 ? p(Fe, { class: "q-time__now-button absolute", icon: o.iconSet.datetime.now, unelevated: !0, size: "sm", round: !0, color: e.color, textColor: e.textColor, tabindex: i.value, onClick: Q }) : null]);
|
|
7737
7737
|
}
|
|
7738
7738
|
return r.proxy.setNow = Q, () => {
|
|
7739
7739
|
const pe = [Tt()], Se = Qe(t.default);
|
|
@@ -7782,17 +7782,17 @@ ye({ name: "QTree", props: { ...wt, nodes: { type: Array, required: !0 }, nodeKe
|
|
|
7782
7782
|
const R = e.selectedColor || e.color;
|
|
7783
7783
|
return R ? ` text-${R}` : "";
|
|
7784
7784
|
}), _ = b(() => e.filterMethod !== void 0 ? e.filterMethod : (R, Y) => {
|
|
7785
|
-
const
|
|
7786
|
-
return R[e.labelKey] && R[e.labelKey].toLowerCase().indexOf(
|
|
7785
|
+
const Z = Y.toLowerCase();
|
|
7786
|
+
return R[e.labelKey] && R[e.labelKey].toLowerCase().indexOf(Z) > -1;
|
|
7787
7787
|
}), g = b(() => {
|
|
7788
|
-
const R = {}, Y = (
|
|
7789
|
-
const ae =
|
|
7790
|
-
let te =
|
|
7788
|
+
const R = {}, Y = (Z, le) => {
|
|
7789
|
+
const ae = Z.tickStrategy || (le ? le.tickStrategy : e.tickStrategy), we = Z[e.nodeKey], ne = Z[e.childrenKey] && Array.isArray(Z[e.childrenKey]) && Z[e.childrenKey].length !== 0, P = Z.disabled !== !0 && f.value === !0 && Z.selectable !== !1, ie = Z.disabled !== !0 && Z.expandable !== !1, be = ae !== "none", Te = ae === "strict", j = ae === "leaf-filtered", L = ae === "leaf" || ae === "leaf-filtered";
|
|
7790
|
+
let te = Z.disabled !== !0 && Z.tickable !== !1;
|
|
7791
7791
|
L === !0 && te === !0 && le && le.tickable !== !0 && (te = !1);
|
|
7792
|
-
let ge =
|
|
7793
|
-
ge === !0 && i.value[we] !== void 0 && Array.isArray(
|
|
7794
|
-
const _e = { key: we, parent: le, isParent: ne, lazy: ge, disabled:
|
|
7795
|
-
if (R[we] = _e, ne === !0 && (_e.children =
|
|
7792
|
+
let ge = Z.lazy;
|
|
7793
|
+
ge === !0 && i.value[we] !== void 0 && Array.isArray(Z[e.childrenKey]) === !0 && (ge = i.value[we]);
|
|
7794
|
+
const _e = { key: we, parent: le, isParent: ne, lazy: ge, disabled: Z.disabled, link: Z.disabled !== !0 && (P === !0 || ie === !0 && (ne === !0 || ge === !0)), children: [], matchesFilter: !e.filter || _.value(Z, e.filter), selected: we === e.selected && P === !0, selectable: P, expanded: ne === !0 && u.value.includes(we), expandable: ie, noTick: Z.noTick === !0 || Te !== !0 && ge && ge !== "loaded", tickable: te, tickStrategy: ae, hasTicking: be, strictTicking: Te, leafFilteredTicking: j, leafTicking: L, ticked: (Te === !0 || ne !== !0) && l.value.includes(we) };
|
|
7795
|
+
if (R[we] = _e, ne === !0 && (_e.children = Z[e.childrenKey].map((Re) => Y(Re, _e)), e.filter && (_e.matchesFilter !== !0 ? _e.matchesFilter = _e.children.some((Re) => Re.matchesFilter) : _e.noTick !== !0 && _e.disabled !== !0 && _e.tickable === !0 && j === !0 && _e.children.every((Re) => Re.matchesFilter !== !0 || Re.noTick === !0 || Re.tickable !== !0) === !0 && (_e.tickable = !1)), _e.matchesFilter === !0 && (_e.noTick !== !0 && Te !== !0 && _e.children.every((Re) => Re.noTick) === !0 && (_e.noTick = !0), L))) {
|
|
7796
7796
|
if (_e.ticked = !1, _e.indeterminate = _e.children.some((Re) => Re.indeterminate === !0), _e.tickable = _e.tickable === !0 && _e.children.some((Re) => Re.tickable), _e.indeterminate !== !0) {
|
|
7797
7797
|
const Re = _e.children.reduce((ut, et) => et.ticked === !0 ? ut + 1 : ut, 0);
|
|
7798
7798
|
Re === _e.children.length ? _e.ticked = !0 : Re > 0 && (_e.indeterminate = !0);
|
|
@@ -7801,11 +7801,11 @@ ye({ name: "QTree", props: { ...wt, nodes: { type: Array, required: !0 }, nodeKe
|
|
|
7801
7801
|
}
|
|
7802
7802
|
return _e;
|
|
7803
7803
|
};
|
|
7804
|
-
return e.nodes.forEach((
|
|
7804
|
+
return e.nodes.forEach((Z) => Y(Z, null)), R;
|
|
7805
7805
|
});
|
|
7806
7806
|
function S(R) {
|
|
7807
|
-
const Y = [].reduce,
|
|
7808
|
-
return
|
|
7807
|
+
const Y = [].reduce, Z = (le, ae) => le || !ae ? le : Array.isArray(ae) === !0 ? Y.call(Object(ae), Z, le) : ae[e.nodeKey] === R ? ae : ae[e.childrenKey] ? Z(null, ae[e.childrenKey]) : void 0;
|
|
7808
|
+
return Z(null, e.nodes);
|
|
7809
7809
|
}
|
|
7810
7810
|
function h() {
|
|
7811
7811
|
return l.value.map((R) => S(R));
|
|
@@ -7820,30 +7820,30 @@ ye({ name: "QTree", props: { ...wt, nodes: { type: Array, required: !0 }, nodeKe
|
|
|
7820
7820
|
e.expanded !== void 0 ? n("update:expanded", []) : u.value = [];
|
|
7821
7821
|
}
|
|
7822
7822
|
function x() {
|
|
7823
|
-
const R = [], Y = (
|
|
7824
|
-
|
|
7823
|
+
const R = [], Y = (Z) => {
|
|
7824
|
+
Z[e.childrenKey] && Z[e.childrenKey].length !== 0 && Z.expandable !== !1 && Z.disabled !== !0 && (R.push(Z[e.nodeKey]), Z[e.childrenKey].forEach(Y));
|
|
7825
7825
|
};
|
|
7826
7826
|
e.nodes.forEach(Y), e.expanded !== void 0 ? n("update:expanded", R) : u.value = R;
|
|
7827
7827
|
}
|
|
7828
|
-
function O(R, Y,
|
|
7828
|
+
function O(R, Y, Z = S(R), le = g.value[R]) {
|
|
7829
7829
|
if (le.lazy && le.lazy !== "loaded") {
|
|
7830
7830
|
if (le.lazy === "loading")
|
|
7831
7831
|
return;
|
|
7832
|
-
i.value[R] = "loading", Array.isArray(
|
|
7833
|
-
i.value[R] = "loaded",
|
|
7832
|
+
i.value[R] = "loading", Array.isArray(Z[e.childrenKey]) !== !0 && (Z[e.childrenKey] = []), n("lazyLoad", { node: Z, key: R, done: (ae) => {
|
|
7833
|
+
i.value[R] = "loaded", Z[e.childrenKey] = Array.isArray(ae) === !0 ? ae : [], ft(() => {
|
|
7834
7834
|
const we = g.value[R];
|
|
7835
7835
|
we && we.isParent === !0 && I(R, !0);
|
|
7836
7836
|
});
|
|
7837
7837
|
}, fail: () => {
|
|
7838
|
-
delete i.value[R],
|
|
7838
|
+
delete i.value[R], Z[e.childrenKey].length === 0 && delete Z[e.childrenKey];
|
|
7839
7839
|
} });
|
|
7840
7840
|
} else
|
|
7841
7841
|
le.isParent === !0 && le.expandable === !0 && I(R, Y);
|
|
7842
7842
|
}
|
|
7843
7843
|
function I(R, Y) {
|
|
7844
|
-
let
|
|
7844
|
+
let Z = u.value;
|
|
7845
7845
|
const le = e.expanded !== void 0;
|
|
7846
|
-
if (le === !0 && (
|
|
7846
|
+
if (le === !0 && (Z = Z.slice()), Y) {
|
|
7847
7847
|
if (e.accordion && g.value[R]) {
|
|
7848
7848
|
const ae = [];
|
|
7849
7849
|
g.value[R].parent ? g.value[R].parent.children.forEach((we) => {
|
|
@@ -7851,78 +7851,78 @@ ye({ name: "QTree", props: { ...wt, nodes: { type: Array, required: !0 }, nodeKe
|
|
|
7851
7851
|
}) : e.nodes.forEach((we) => {
|
|
7852
7852
|
const ne = we[e.nodeKey];
|
|
7853
7853
|
ne !== R && ae.push(ne);
|
|
7854
|
-
}), ae.length !== 0 && (
|
|
7854
|
+
}), ae.length !== 0 && (Z = Z.filter((we) => ae.includes(we) === !1));
|
|
7855
7855
|
}
|
|
7856
|
-
|
|
7856
|
+
Z = Z.concat([R]).filter((ae, we, ne) => ne.indexOf(ae) === we);
|
|
7857
7857
|
} else
|
|
7858
|
-
|
|
7859
|
-
le === !0 ? n("update:expanded",
|
|
7858
|
+
Z = Z.filter((ae) => ae !== R);
|
|
7859
|
+
le === !0 ? n("update:expanded", Z) : u.value = Z;
|
|
7860
7860
|
}
|
|
7861
7861
|
function T(R) {
|
|
7862
7862
|
return !(!R || !g.value[R]) && g.value[R].ticked;
|
|
7863
7863
|
}
|
|
7864
7864
|
function D(R, Y) {
|
|
7865
|
-
let
|
|
7865
|
+
let Z = l.value;
|
|
7866
7866
|
const le = e.ticked !== void 0;
|
|
7867
|
-
le === !0 && (
|
|
7867
|
+
le === !0 && (Z = Z.slice()), Z = Y ? Z.concat(R).filter((ae, we, ne) => ne.indexOf(ae) === we) : Z.filter((ae) => R.includes(ae) === !1), le === !0 && n("update:ticked", Z);
|
|
7868
7868
|
}
|
|
7869
|
-
function M(R, Y,
|
|
7870
|
-
const le = { tree: r, node: R, key:
|
|
7869
|
+
function M(R, Y, Z) {
|
|
7870
|
+
const le = { tree: r, node: R, key: Z, color: e.color, dark: a.value };
|
|
7871
7871
|
return vn(le, "expanded", () => Y.expanded, (ae) => {
|
|
7872
|
-
ae !== Y.expanded && O(
|
|
7872
|
+
ae !== Y.expanded && O(Z, ae);
|
|
7873
7873
|
}), vn(le, "ticked", () => Y.ticked, (ae) => {
|
|
7874
|
-
ae !== Y.ticked && D([
|
|
7874
|
+
ae !== Y.ticked && D([Z], ae);
|
|
7875
7875
|
}), le;
|
|
7876
7876
|
}
|
|
7877
7877
|
function $(R) {
|
|
7878
|
-
return (e.filter ? R.filter((Y) => g.value[Y[e.nodeKey]].matchesFilter) : R).map((Y) =>
|
|
7878
|
+
return (e.filter ? R.filter((Y) => g.value[Y[e.nodeKey]].matchesFilter) : R).map((Y) => B(Y));
|
|
7879
7879
|
}
|
|
7880
|
-
function
|
|
7880
|
+
function U(R) {
|
|
7881
7881
|
if (R.icon !== void 0)
|
|
7882
7882
|
return p(vt, { class: "q-tree__icon q-mr-sm", name: R.icon, color: R.iconColor });
|
|
7883
7883
|
const Y = R.img || R.avatar;
|
|
7884
7884
|
return Y ? p("img", { class: `q-tree__${R.img ? "img" : "avatar"} q-mr-sm`, src: Y }) : void 0;
|
|
7885
7885
|
}
|
|
7886
|
-
function
|
|
7886
|
+
function J() {
|
|
7887
7887
|
n("afterShow");
|
|
7888
7888
|
}
|
|
7889
7889
|
function oe() {
|
|
7890
7890
|
n("afterHide");
|
|
7891
7891
|
}
|
|
7892
|
-
function
|
|
7893
|
-
const Y = R[e.nodeKey],
|
|
7892
|
+
function B(R) {
|
|
7893
|
+
const Y = R[e.nodeKey], Z = g.value[Y], le = R.header && t[`header-${R.header}`] || t["default-header"], ae = Z.isParent === !0 ? $(R[e.childrenKey]) : [], we = ae.length !== 0 || Z.lazy && Z.lazy !== "loaded";
|
|
7894
7894
|
let ne = R.body && t[`body-${R.body}`] || t["default-body"];
|
|
7895
|
-
const P = le !== void 0 || ne !== void 0 ? M(R,
|
|
7896
|
-
return ne !== void 0 && (ne = p("div", { class: "q-tree__node-body relative-position" }, [p("div", { class: m.value }, [ne(P)])])), p("div", { key: Y, class: `q-tree__node relative-position q-tree__node--${we === !0 ? "parent" : "child"}` }, [p("div", { class: "q-tree__node-header relative-position row no-wrap items-center" + (
|
|
7897
|
-
|
|
7895
|
+
const P = le !== void 0 || ne !== void 0 ? M(R, Z, Y) : null;
|
|
7896
|
+
return ne !== void 0 && (ne = p("div", { class: "q-tree__node-body relative-position" }, [p("div", { class: m.value }, [ne(P)])])), p("div", { key: Y, class: `q-tree__node relative-position q-tree__node--${we === !0 ? "parent" : "child"}` }, [p("div", { class: "q-tree__node-header relative-position row no-wrap items-center" + (Z.link === !0 ? " q-tree__node--link q-hoverable q-focusable" : "") + (Z.selected === !0 ? " q-tree__node--selected" : "") + (Z.disabled === !0 ? " q-tree__node--disabled" : ""), tabindex: Z.link === !0 ? 0 : -1, ariaExpanded: ae.length > 0 ? Z.expanded : null, role: "treeitem", onClick: (ie) => {
|
|
7897
|
+
G(R, Z, ie);
|
|
7898
7898
|
}, onKeypress(ie) {
|
|
7899
|
-
Do(ie) !== !0 && (ie.keyCode === 13 ?
|
|
7899
|
+
Do(ie) !== !0 && (ie.keyCode === 13 ? G(R, Z, ie, !0) : ie.keyCode === 32 && X(R, Z, ie, !0));
|
|
7900
7900
|
} }, [p("div", { class: "q-focus-helper", tabindex: -1, ref: (ie) => {
|
|
7901
|
-
c[
|
|
7902
|
-
} }),
|
|
7903
|
-
|
|
7904
|
-
} }) : null,
|
|
7905
|
-
Q(
|
|
7906
|
-
} }) : null, p("div", { class: "q-tree__node-header-content col row no-wrap items-center" + (
|
|
7901
|
+
c[Z.key] = ie;
|
|
7902
|
+
} }), Z.lazy === "loading" ? p(Zn, { class: "q-tree__spinner", color: v.value }) : we === !0 ? p(vt, { class: "q-tree__arrow" + (Z.expanded === !0 ? " q-tree__arrow--rotate" : ""), name: d.value, onClick(ie) {
|
|
7903
|
+
X(R, Z, ie);
|
|
7904
|
+
} }) : null, Z.hasTicking === !0 && Z.noTick !== !0 ? p(Eo, { class: "q-tree__tickbox", modelValue: Z.indeterminate === !0 ? null : Z.ticked, color: v.value, dark: a.value, dense: !0, keepColor: !0, disable: Z.tickable !== !0, onKeydown: ct, "onUpdate:modelValue": (ie) => {
|
|
7905
|
+
Q(Z, ie);
|
|
7906
|
+
} }) : null, p("div", { class: "q-tree__node-header-content col row no-wrap items-center" + (Z.selected === !0 ? w.value : m.value) }, [le ? le(P) : [U(R), p("div", R[e.labelKey])]])]), we === !0 ? e.noTransition === !0 ? Z.expanded === !0 ? p("div", { class: "q-tree__node-collapsible" + m.value, key: `${Y}__q` }, [ne, p("div", { class: "q-tree__children" + (Z.disabled === !0 ? " q-tree__node--disabled" : ""), role: "group" }, ae)]) : null : p(Pc, { duration: e.duration, onShow: J, onHide: oe }, () => xe(p("div", { class: "q-tree__node-collapsible" + m.value, key: `${Y}__q` }, [ne, p("div", { class: "q-tree__children" + (Z.disabled === !0 ? " q-tree__node--disabled" : ""), role: "group" }, ae)]), [[Ie, Z.expanded]])) : ne]);
|
|
7907
7907
|
}
|
|
7908
7908
|
function F(R) {
|
|
7909
7909
|
const Y = c[R];
|
|
7910
7910
|
Y && Y.focus();
|
|
7911
7911
|
}
|
|
7912
|
-
function
|
|
7913
|
-
le !== !0 && Y.selectable !== !1 && F(Y.key), f.value && Y.selectable ? e.noSelectionUnset === !1 ? n("update:selected", Y.key !== e.selected ? Y.key : null) : Y.key !== e.selected && n("update:selected", Y.key === void 0 ? null : Y.key) :
|
|
7912
|
+
function G(R, Y, Z, le) {
|
|
7913
|
+
le !== !0 && Y.selectable !== !1 && F(Y.key), f.value && Y.selectable ? e.noSelectionUnset === !1 ? n("update:selected", Y.key !== e.selected ? Y.key : null) : Y.key !== e.selected && n("update:selected", Y.key === void 0 ? null : Y.key) : X(R, Y, Z, le), typeof R.handler == "function" && R.handler(R);
|
|
7914
7914
|
}
|
|
7915
|
-
function
|
|
7916
|
-
|
|
7915
|
+
function X(R, Y, Z, le) {
|
|
7916
|
+
Z !== void 0 && ct(Z), le !== !0 && Y.selectable !== !1 && F(Y.key), O(Y.key, !Y.expanded, R, Y);
|
|
7917
7917
|
}
|
|
7918
7918
|
function Q(R, Y) {
|
|
7919
7919
|
if (R.indeterminate === !0 && (Y = R.indeterminateNextState), R.strictTicking)
|
|
7920
7920
|
D([R.key], Y);
|
|
7921
7921
|
else if (R.leafTicking) {
|
|
7922
|
-
const
|
|
7923
|
-
ae.isParent ? (Y !== !0 && ae.noTick !== !0 && ae.tickable === !0 &&
|
|
7922
|
+
const Z = [], le = (ae) => {
|
|
7923
|
+
ae.isParent ? (Y !== !0 && ae.noTick !== !0 && ae.tickable === !0 && Z.push(ae.key), ae.leafTicking === !0 && ae.children.forEach(le)) : ae.noTick === !0 || ae.tickable !== !0 || ae.leafFilteredTicking === !0 && ae.matchesFilter !== !0 || Z.push(ae.key);
|
|
7924
7924
|
};
|
|
7925
|
-
le(R), D(
|
|
7925
|
+
le(R), D(Z, Y);
|
|
7926
7926
|
}
|
|
7927
7927
|
}
|
|
7928
7928
|
return me(() => e.ticked, (R) => {
|
|
@@ -7951,16 +7951,16 @@ function iw(e, t) {
|
|
|
7951
7951
|
} })), m.isBusy === void 0 && (m.isBusy = N(!1));
|
|
7952
7952
|
const x = N(0), O = b(() => x.value === 0 ? 0 : m.uploadedSize.value / x.value), I = b(() => np(O.value)), T = b(() => uu(x.value)), D = b(() => s.value === !0 && m.isUploading.value !== !0 && (r.multiple === !0 || m.queuedFiles.value.length === 0) && (r.maxFiles === void 0 || m.files.value.length < k.value) && (r.maxTotalSize === void 0 || x.value < E.value)), M = b(() => s.value === !0 && m.isBusy.value !== !0 && m.isUploading.value !== !0 && m.queuedFiles.value.length !== 0);
|
|
7953
7953
|
oo(ym, le);
|
|
7954
|
-
const $ = b(() => "q-uploader column no-wrap" + (u.value === !0 ? " q-uploader--dark q-dark" : "") + (r.bordered === !0 ? " q-uploader--bordered" : "") + (r.square === !0 ? " q-uploader--square no-border-radius" : "") + (r.flat === !0 ? " q-uploader--flat no-shadow" : "") + (r.disable === !0 ? " disabled q-uploader--disable" : "") + (f.value === !0 ? " q-uploader--dnd" : "")),
|
|
7955
|
-
function
|
|
7956
|
-
r.disable === !1 && (m.abort(), m.uploadedSize.value = 0, x.value = 0,
|
|
7954
|
+
const $ = b(() => "q-uploader column no-wrap" + (u.value === !0 ? " q-uploader--dark q-dark" : "") + (r.bordered === !0 ? " q-uploader--bordered" : "") + (r.square === !0 ? " q-uploader--square no-border-radius" : "") + (r.flat === !0 ? " q-uploader--flat no-shadow" : "") + (r.disable === !0 ? " disabled q-uploader--disable" : "") + (f.value === !0 ? " q-uploader--dnd" : "")), U = b(() => "q-uploader__header" + (r.color !== void 0 ? ` bg-${r.color}` : "") + (r.textColor !== void 0 ? ` text-${r.textColor}` : ""));
|
|
7955
|
+
function J() {
|
|
7956
|
+
r.disable === !1 && (m.abort(), m.uploadedSize.value = 0, x.value = 0, X(), m.files.value = [], m.queuedFiles.value = [], m.uploadedFiles.value = []);
|
|
7957
7957
|
}
|
|
7958
7958
|
function oe() {
|
|
7959
7959
|
r.disable === !1 && F(["uploaded"], () => {
|
|
7960
7960
|
m.uploadedFiles.value = [];
|
|
7961
7961
|
});
|
|
7962
7962
|
}
|
|
7963
|
-
function
|
|
7963
|
+
function B() {
|
|
7964
7964
|
F(["idle", "failed"], ({ size: P }) => {
|
|
7965
7965
|
x.value -= P, m.queuedFiles.value = [];
|
|
7966
7966
|
});
|
|
@@ -7971,10 +7971,10 @@ function iw(e, t) {
|
|
|
7971
7971
|
const be = { files: [], size: 0 }, Te = m.files.value.filter((j) => P.indexOf(j.__status) === -1 || (be.size += j.size, be.files.push(j), j.__img !== void 0 && window.URL.revokeObjectURL(j.__img.src), !1));
|
|
7972
7972
|
be.files.length !== 0 && (m.files.value = Te, ie(be), a("removed", be.files));
|
|
7973
7973
|
}
|
|
7974
|
-
function
|
|
7974
|
+
function G(P) {
|
|
7975
7975
|
r.disable || (P.__status === "uploaded" ? m.uploadedFiles.value = m.uploadedFiles.value.filter((ie) => ie.__key !== P.__key) : P.__status === "uploading" ? P.__abort() : x.value -= P.size, m.files.value = m.files.value.filter((ie) => ie.__key !== P.__key || (ie.__img !== void 0 && window.URL.revokeObjectURL(ie.__img.src), !1)), m.queuedFiles.value = m.queuedFiles.value.filter((ie) => ie.__key !== P.__key), a("removed", [P]));
|
|
7976
7976
|
}
|
|
7977
|
-
function
|
|
7977
|
+
function X() {
|
|
7978
7978
|
m.files.value.forEach((P) => {
|
|
7979
7979
|
P.__img !== void 0 && window.URL.revokeObjectURL(P.__img.src);
|
|
7980
7980
|
});
|
|
@@ -7994,7 +7994,7 @@ function iw(e, t) {
|
|
|
7994
7994
|
function Y() {
|
|
7995
7995
|
M.value === !0 && m.upload();
|
|
7996
7996
|
}
|
|
7997
|
-
function
|
|
7997
|
+
function Z(P, ie, be) {
|
|
7998
7998
|
if (P === !0) {
|
|
7999
7999
|
const Te = { type: "a", key: ie, icon: l.iconSet.uploader[ie], flat: !0, dense: !0 };
|
|
8000
8000
|
let j;
|
|
@@ -8005,23 +8005,23 @@ function iw(e, t) {
|
|
|
8005
8005
|
return p("input", { ref: v, class: "q-uploader__input overflow-hidden absolute-full", tabindex: -1, type: "file", title: "", accept: r.accept, multiple: r.multiple === !0 ? "multiple" : void 0, capture: r.capture, onMousedown: Kt, onClick: w, onChange: R });
|
|
8006
8006
|
}
|
|
8007
8007
|
function ae() {
|
|
8008
|
-
return o.header !== void 0 ? o.header(ne) : [p("div", { class: "q-uploader__header-content column" }, [p("div", { class: "flex flex-center no-wrap q-gutter-xs" }, [
|
|
8008
|
+
return o.header !== void 0 ? o.header(ne) : [p("div", { class: "q-uploader__header-content column" }, [p("div", { class: "flex flex-center no-wrap q-gutter-xs" }, [Z(m.queuedFiles.value.length !== 0, "removeQueue", B), Z(m.uploadedFiles.value.length !== 0, "removeUploaded", oe), m.isUploading.value === !0 ? p(Zn, { class: "q-uploader__spinner" }) : null, p("div", { class: "col column justify-center" }, [r.label !== void 0 ? p("div", { class: "q-uploader__title" }, [r.label]) : null, p("div", { class: "q-uploader__subtitle" }, [T.value + " / " + I.value])]), Z(D.value, "add"), Z(r.hideUploadBtn === !1 && M.value === !0, "upload", m.upload), Z(m.isUploading.value, "clear", m.abort)])])];
|
|
8009
8009
|
}
|
|
8010
8010
|
function we() {
|
|
8011
8011
|
return o.list !== void 0 ? o.list(ne) : m.files.value.map((P) => p("div", { key: P.__key, class: "q-uploader__file relative-position" + (r.noThumbnails !== !0 && P.__img !== void 0 ? " q-uploader__file--img" : "") + (P.__status === "failed" ? " q-uploader__file--failed" : P.__status === "uploaded" ? " q-uploader__file--uploaded" : ""), style: r.noThumbnails !== !0 && P.__img !== void 0 ? { backgroundImage: 'url("' + P.__img.src + '")' } : null }, [p("div", { class: "q-uploader__file-header row flex-center no-wrap" }, [P.__status === "failed" ? p(vt, { class: "q-uploader__file-status", name: l.iconSet.type.negative, color: "negative" }) : null, p("div", { class: "q-uploader__file-header-content col" }, [p("div", { class: "q-uploader__title" }, [P.name]), p("div", { class: "q-uploader__subtitle row items-center no-wrap" }, [P.__sizeLabel + " / " + P.__progressLabel])]), P.__status === "uploading" ? p(Gm, { value: P.__progress, min: 0, max: 1, indeterminate: P.__progress === 0 }) : p(Fe, { round: !0, dense: !0, flat: !0, icon: l.iconSet.uploader[P.__status === "uploaded" ? "done" : "clear"], onClick: () => {
|
|
8012
|
-
|
|
8012
|
+
G(P);
|
|
8013
8013
|
} })])]));
|
|
8014
8014
|
}
|
|
8015
8015
|
me(m.isUploading, (P, ie) => {
|
|
8016
8016
|
ie === !1 && P === !0 ? a("start") : ie === !0 && P === !1 && a("finish");
|
|
8017
8017
|
}), ht(() => {
|
|
8018
|
-
m.isUploading.value === !0 && m.abort(), m.files.value.length !== 0 &&
|
|
8018
|
+
m.isUploading.value === !0 && m.abort(), m.files.value.length !== 0 && X();
|
|
8019
8019
|
});
|
|
8020
8020
|
const ne = {};
|
|
8021
8021
|
for (const P in m)
|
|
8022
8022
|
sm(m[P]) === !0 ? vn(ne, P, () => m[P].value) : ne[P] = m[P];
|
|
8023
|
-
return Object.assign(ne, { upload: Y, reset:
|
|
8024
|
-
const P = [p("div", { class:
|
|
8023
|
+
return Object.assign(ne, { upload: Y, reset: J, removeUploadedFiles: oe, removeQueuedFiles: B, removeFile: G, pickFiles: w, addFiles: _ }), um(ne, { canAddFiles: () => D.value, canUpload: () => M.value, uploadSizeLabel: () => T.value, uploadProgressLabel: () => I.value }), t({ ...m, upload: Y, reset: J, removeUploadedFiles: oe, removeQueuedFiles: B, removeFile: G, pickFiles: w, addFiles: _, canAddFiles: D, canUpload: M, uploadSizeLabel: T, uploadProgressLabel: I }), () => {
|
|
8024
|
+
const P = [p("div", { class: U.value }, ae()), p("div", { class: "q-uploader__list scroll" }, we()), y("uploader")];
|
|
8025
8025
|
m.isBusy.value === !0 && P.push(p("div", { class: "q-uploader__overlay absolute-full flex flex-center" }, [p(Zn)]));
|
|
8026
8026
|
const ie = { ref: d, class: $.value };
|
|
8027
8027
|
return D.value === !0 && Object.assign(ie, { onDragover: g, onDragleave: S }), p("div", ie, P);
|
|
@@ -8090,12 +8090,12 @@ function fw({ props: e, emit: t, helpers: n }) {
|
|
|
8090
8090
|
return;
|
|
8091
8091
|
const $ = Math.min(I, M.loaded);
|
|
8092
8092
|
n.uploadedSize.value += $ - O, O = $;
|
|
8093
|
-
let
|
|
8094
|
-
for (let
|
|
8095
|
-
const oe = m[
|
|
8096
|
-
if (!(
|
|
8097
|
-
return void n.updateFileStatus(oe, "uploading",
|
|
8098
|
-
|
|
8093
|
+
let U = O - x;
|
|
8094
|
+
for (let J = E; U > 0 && J < m.length; J++) {
|
|
8095
|
+
const oe = m[J];
|
|
8096
|
+
if (!(U > oe.size))
|
|
8097
|
+
return void n.updateFileStatus(oe, "uploading", U);
|
|
8098
|
+
U -= oe.size, E++, x += oe.size, n.updateFileStatus(oe, "uploading", oe.size);
|
|
8099
8099
|
}
|
|
8100
8100
|
}, !1), g.onreadystatechange = () => {
|
|
8101
8101
|
g.readyState < 4 || (g.status && g.status < 400 ? (n.uploadedFiles.value = n.uploadedFiles.value.concat(m), m.forEach((M) => {
|
|
@@ -8232,7 +8232,7 @@ function ww(e) {
|
|
|
8232
8232
|
if (n === !0 || cp($) !== !0)
|
|
8233
8233
|
return void (typeof i.qMorphCancel == "function" && i.qMorphCancel());
|
|
8234
8234
|
i !== $ && typeof $.qMorphCancel == "function" && $.qMorphCancel(), a.keepToClone !== !0 && $.classList.add("q-morph--internal"), T.classList.add("q-morph--internal");
|
|
8235
|
-
const { width:
|
|
8235
|
+
const { width: U, height: J } = Yi(f), { width: oe, height: B } = Yi($.parentNode);
|
|
8236
8236
|
a.hideFromClone !== !0 && T.classList.remove("q-morph--internal"), $.qMorphCancel = () => {
|
|
8237
8237
|
n = !0, T.remove(), D !== void 0 && D.remove(), a.hideFromClone === !0 && T.classList.remove("q-morph--internal"), a.keepToClone !== !0 && $.classList.remove("q-morph--internal"), i.qMorphCancel = void 0, $.qMorphCancel = void 0;
|
|
8238
8238
|
};
|
|
@@ -8240,14 +8240,14 @@ function ww(e) {
|
|
|
8240
8240
|
if (n === !0)
|
|
8241
8241
|
return void (typeof $.qMorphCancel == "function" && $.qMorphCancel());
|
|
8242
8242
|
a.hideFromClone !== !0 && (T.classList.add("q-morph--internal"), T.innerHTML = "", T.style.left = 0, T.style.right = "unset", T.style.top = 0, T.style.bottom = "unset", T.style.transform = "none"), a.keepToClone !== !0 && $.classList.remove("q-morph--internal");
|
|
8243
|
-
const
|
|
8243
|
+
const G = $.parentNode, { width: X, height: Q } = Yi(G), R = $.cloneNode(a.keepToClone);
|
|
8244
8244
|
R.setAttribute("aria-hidden", "true"), a.keepToClone !== !0 && (R.style.left = 0, R.style.right = "unset", R.style.top = 0, R.style.bottom = "unset", R.style.transform = "none", R.style.pointerEvents = "none"), R.classList.add("q-morph--internal");
|
|
8245
|
-
const Y = $ === i && f ===
|
|
8246
|
-
|
|
8247
|
-
const { borderWidth:
|
|
8245
|
+
const Y = $ === i && f === G ? T : $.nextElementSibling;
|
|
8246
|
+
G.insertBefore(R, Y);
|
|
8247
|
+
const { borderWidth: Z, borderStyle: le, borderColor: ae, borderRadius: we, backgroundColor: ne, transform: P, position: ie, cssText: be } = lp($, ["borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "transform", "position", "cssText"]), Te = $.classList.toString(), j = $.style.cssText;
|
|
8248
8248
|
$.style.cssText = be, $.style.transform = "none", $.style.animation = "none", $.style.transition = "none", $.className = Te.split(" ").filter((Ce) => /^bg-/.test(Ce) === !1).join(" ");
|
|
8249
|
-
const L = op($, a.resize), te = v.left - L.left, ge = v.top - L.top, _e = v.width / (L.width > 0 ? L.width : 10), Re = v.height / (L.height > 0 ? L.height : 100), ut = m -
|
|
8250
|
-
let Xe = ie === "fixed", kt =
|
|
8249
|
+
const L = op($, a.resize), te = v.left - L.left, ge = v.top - L.top, _e = v.width / (L.width > 0 ? L.width : 10), Re = v.height / (L.height > 0 ? L.height : 100), ut = m - U, et = w - J, Ee = X - oe, Pe = Q - B, de = Math.max(v.widthM, ut), Oe = Math.max(v.heightM, et), re = Math.max(L.widthM, Ee), ce = Math.max(L.heightM, Pe), $e = i === $ && ["absolute", "fixed"].includes(ie) === !1 && ["absolute", "fixed"].includes(E) === !1;
|
|
8250
|
+
let Xe = ie === "fixed", kt = G;
|
|
8251
8251
|
for (; Xe !== !0 && kt !== document; )
|
|
8252
8252
|
Xe = window.getComputedStyle(kt).position === "fixed", kt = kt.parentNode;
|
|
8253
8253
|
if (a.hideFromClone !== !0 && (T.style.display = "block", T.style.flex = "0 0 auto", T.style.opacity = 0, T.style.minWidth = "unset", T.style.maxWidth = "unset", T.style.minHeight = "unset", T.style.maxHeight = "unset", T.classList.remove("q-morph--internal")), a.keepToClone !== !0 && (R.style.display = "block", R.style.flex = "0 0 auto", R.style.opacity = 0, R.style.minWidth = "unset", R.style.maxWidth = "unset", R.style.minHeight = "unset", R.style.maxHeight = "unset"), R.classList.remove("q-morph--internal"), typeof a.classes == "string" && ($.className += " " + a.classes), typeof a.style == "string")
|
|
@@ -8258,11 +8258,11 @@ function ww(e) {
|
|
|
8258
8258
|
const Tt = sp(T), pe = sp($), Se = Xe === !0 ? document.documentElement : { scrollLeft: 0, scrollTop: 0 };
|
|
8259
8259
|
$.style.position = Xe === !0 ? "fixed" : "absolute", $.style.left = `${L.left - Se.scrollLeft}px`, $.style.right = "unset", $.style.top = `${L.top - Se.scrollTop}px`, $.style.margin = 0, a.resize === !0 && ($.style.minWidth = "unset", $.style.maxWidth = "unset", $.style.minHeight = "unset", $.style.maxHeight = "unset", $.style.overflow = "hidden", $.style.overflowX = "hidden", $.style.overflowY = "hidden"), document.body.appendChild($), D !== void 0 && (D.style.cssText = x, D.style.transform = "none", D.style.animation = "none", D.style.transition = "none", D.style.position = $.style.position, D.style.left = `${v.left - Se.scrollLeft}px`, D.style.right = "unset", D.style.top = `${v.top - Se.scrollTop}px`, D.style.margin = 0, D.style.pointerEvents = "none", a.resize === !0 && (D.style.minWidth = "unset", D.style.maxWidth = "unset", D.style.minHeight = "unset", D.style.maxHeight = "unset", D.style.overflow = "hidden", D.style.overflowX = "hidden", D.style.overflowY = "hidden"), document.body.appendChild(D));
|
|
8260
8260
|
const se = (Ce) => {
|
|
8261
|
-
i === $ && r !== !0 ? ($.style.cssText = I, $.className = O) : ($.style.cssText = j, $.className = Te), R.parentNode ===
|
|
8261
|
+
i === $ && r !== !0 ? ($.style.cssText = I, $.className = O) : ($.style.cssText = j, $.className = Te), R.parentNode === G && G.insertBefore($, R), T.remove(), R.remove(), D !== void 0 && D.remove(), t = () => !1, i.qMorphCancel = void 0, $.qMorphCancel = void 0, typeof a.onEnd == "function" && a.onEnd(r === !0 ? "to" : "from", Ce === !0);
|
|
8262
8262
|
};
|
|
8263
8263
|
if (a.useCSS !== !0 && typeof $.animate == "function") {
|
|
8264
8264
|
const Ce = a.resize === !0 ? { transform: `translate(${te}px, ${ge}px)`, width: `${de}px`, height: `${Oe}px` } : { transform: `translate(${te}px, ${ge}px) scale(${_e}, ${Re})` }, Ye = a.resize === !0 ? { width: `${re}px`, height: `${ce}px` } : {}, it = a.resize === !0 ? { width: `${de}px`, height: `${Oe}px` } : {}, Ue = a.resize === !0 ? { transform: `translate(${-1 * te}px, ${-1 * ge}px)`, width: `${re}px`, height: `${ce}px` } : { transform: `translate(${-1 * te}px, ${-1 * ge}px) scale(${1 / _e}, ${1 / Re})` }, gt = D !== void 0 ? { opacity: a.tweenToOpacity } : { backgroundColor: y }, Mt = D !== void 0 ? { opacity: 1 } : { backgroundColor: ne };
|
|
8265
|
-
s = $.animate([{ margin: 0, borderWidth: _, borderStyle: g, borderColor: S, borderRadius: h, zIndex: Tt, transformOrigin: "0 0", ...Ce, ...gt }, { margin: 0, borderWidth:
|
|
8265
|
+
s = $.animate([{ margin: 0, borderWidth: _, borderStyle: g, borderColor: S, borderRadius: h, zIndex: Tt, transformOrigin: "0 0", ...Ce, ...gt }, { margin: 0, borderWidth: Z, borderStyle: le, borderColor: ae, borderRadius: we, zIndex: pe, transformOrigin: "0 0", transform: P, ...Ye, ...Mt }], { duration: a.duration, easing: a.easing, fill: a.fill, delay: a.delay }), u = D === void 0 ? void 0 : D.animate([{ opacity: a.tweenFromOpacity, margin: 0, borderWidth: _, borderStyle: g, borderColor: S, borderRadius: h, zIndex: Tt, transformOrigin: "0 0", transform: k, ...it }, { opacity: 0, margin: 0, borderWidth: Z, borderStyle: le, borderColor: ae, borderRadius: we, zIndex: pe, transformOrigin: "0 0", ...Ue }], { duration: a.duration, easing: a.easing, fill: a.fill, delay: a.delay }), l = a.hideFromClone === !0 || $e === !0 ? void 0 : T.animate([{ margin: `${et < 0 ? et / 2 : 0}px ${ut < 0 ? ut / 2 : 0}px`, width: `${de + v.marginH}px`, height: `${Oe + v.marginV}px` }, { margin: 0, width: 0, height: 0 }], { duration: a.duration, easing: a.easing, fill: a.fill, delay: a.delay }), c = a.keepToClone === !0 ? void 0 : R.animate([$e === !0 ? { margin: `${et < 0 ? et / 2 : 0}px ${ut < 0 ? ut / 2 : 0}px`, width: `${de + v.marginH}px`, height: `${Oe + v.marginV}px` } : { margin: 0, width: 0, height: 0 }, { margin: `${Pe < 0 ? Pe / 2 : 0}px ${Ee < 0 ? Ee / 2 : 0}px`, width: `${re + L.marginH}px`, height: `${ce + L.marginV}px` }], { duration: a.duration, easing: a.easing, fill: a.fill, delay: a.delay });
|
|
8266
8266
|
const zt = (qn) => {
|
|
8267
8267
|
l !== void 0 && l.cancel(), u !== void 0 && u.cancel(), c !== void 0 && c.cancel(), s.cancel(), s.removeEventListener("finish", zt), s.removeEventListener("cancel", zt), se(qn), l = void 0, u = void 0, c = void 0, s = void 0;
|
|
8268
8268
|
};
|
|
@@ -8304,7 +8304,7 @@ function ww(e) {
|
|
|
8304
8304
|
100% {
|
|
8305
8305
|
opacity: 0;
|
|
8306
8306
|
margin: 0;
|
|
8307
|
-
border-width: ${
|
|
8307
|
+
border-width: ${Z};
|
|
8308
8308
|
border-style: ${le};
|
|
8309
8309
|
border-color: ${ae};
|
|
8310
8310
|
border-radius: ${we};
|
|
@@ -8365,7 +8365,7 @@ function ww(e) {
|
|
|
8365
8365
|
|
|
8366
8366
|
100% {
|
|
8367
8367
|
margin: 0;
|
|
8368
|
-
border-width: ${
|
|
8368
|
+
border-width: ${Z};
|
|
8369
8369
|
border-style: ${le};
|
|
8370
8370
|
border-color: ${ae};
|
|
8371
8371
|
border-radius: ${we};
|
|
@@ -8396,9 +8396,9 @@ function ww(e) {
|
|
|
8396
8396
|
}, $.addEventListener("animationend", Je), $.addEventListener("animationcancel", Je), t = (Ze) => !!(n !== !0 && $ && T && R) && (Ze === !0 ? (Je(), !0) : (r = r !== !0, Ae = Ae === "normal" ? "reverse" : "normal", T.style.animationDirection = Ae, D.style.animationDirection = Ae, R.style.animationDirection = Ae, $.style.animationDirection = Ae, !0));
|
|
8397
8397
|
}
|
|
8398
8398
|
};
|
|
8399
|
-
a.waitFor > 0 || a.waitFor === "transitionend" || a.waitFor === Object(a.waitFor) && typeof a.waitFor.then == "function" ? (a.waitFor > 0 ? new Promise((
|
|
8399
|
+
a.waitFor > 0 || a.waitFor === "transitionend" || a.waitFor === Object(a.waitFor) && typeof a.waitFor.then == "function" ? (a.waitFor > 0 ? new Promise((X) => setTimeout(X, a.waitFor)) : a.waitFor === "transitionend" ? new Promise((X) => {
|
|
8400
8400
|
const Q = () => {
|
|
8401
|
-
R !== null && (clearTimeout(R), R = null), $ && ($.removeEventListener("transitionend", Q), $.removeEventListener("transitioncancel", Q)),
|
|
8401
|
+
R !== null && (clearTimeout(R), R = null), $ && ($.removeEventListener("transitionend", Q), $.removeEventListener("transitioncancel", Q)), X();
|
|
8402
8402
|
};
|
|
8403
8403
|
let R = setTimeout(Q, 400);
|
|
8404
8404
|
$.addEventListener("transitionend", Q), $.addEventListener("transitioncancel", Q);
|
|
@@ -8807,8 +8807,8 @@ ye({ name: "DialogPlugin", props: { ...wt, title: String, message: String, promp
|
|
|
8807
8807
|
const { proxy: n } = qe(), { $q: r } = n, o = St(e, r), a = N(null), i = N(e.prompt !== void 0 ? e.prompt.model : e.options !== void 0 ? e.options.model : void 0), l = b(() => "q-dialog-plugin" + (o.value === !0 ? " q-dialog-plugin--dark q-dark" : "") + (e.progress !== !1 ? " q-dialog-plugin--progress" : "")), u = b(() => e.color || (o.value === !0 ? "amber" : "primary")), c = b(() => e.progress === !1 ? null : An(e.progress) === !0 ? { component: e.progress.spinner || Zn, props: { color: e.progress.color || u.value } } : { component: Zn, props: { color: u.value } }), s = b(() => e.prompt !== void 0 || e.options !== void 0), f = b(() => {
|
|
8808
8808
|
if (s.value !== !0)
|
|
8809
8809
|
return {};
|
|
8810
|
-
const { model:
|
|
8811
|
-
return
|
|
8810
|
+
const { model: U, isValid: J, items: oe, ...B } = e.prompt !== void 0 ? e.prompt : e.options;
|
|
8811
|
+
return B;
|
|
8812
8812
|
}), d = b(() => An(e.ok) === !0 || e.ok === !0 ? r.lang.label.ok : e.ok), v = b(() => An(e.cancel) === !0 || e.cancel === !0 ? r.lang.label.cancel : e.cancel), m = b(() => e.prompt !== void 0 ? e.prompt.isValid !== void 0 && e.prompt.isValid(i.value) !== !0 : e.options !== void 0 && e.options.isValid !== void 0 && e.options.isValid(i.value) !== !0), w = b(() => ({ color: u.value, label: d.value, ripple: !1, disable: m.value, ...An(e.ok) === !0 ? e.ok : { flat: !0 }, "data-autofocus": e.focus === "ok" && s.value !== !0 || void 0, onClick: h })), _ = b(() => ({ color: u.value, label: v.value, ripple: !1, ...An(e.cancel) === !0 ? e.cancel : { flat: !0 }, "data-autofocus": e.focus === "cancel" && s.value !== !0 || void 0, onClick: y }));
|
|
8813
8813
|
function g() {
|
|
8814
8814
|
a.value.show();
|
|
@@ -8825,14 +8825,14 @@ ye({ name: "DialogPlugin", props: { ...wt, title: String, message: String, promp
|
|
|
8825
8825
|
function k() {
|
|
8826
8826
|
t("hide");
|
|
8827
8827
|
}
|
|
8828
|
-
function E(
|
|
8829
|
-
i.value =
|
|
8828
|
+
function E(U) {
|
|
8829
|
+
i.value = U;
|
|
8830
8830
|
}
|
|
8831
|
-
function x(
|
|
8832
|
-
m.value !== !0 && e.prompt.type !== "textarea" && Gn(
|
|
8831
|
+
function x(U) {
|
|
8832
|
+
m.value !== !0 && e.prompt.type !== "textarea" && Gn(U, 13) === !0 && h();
|
|
8833
8833
|
}
|
|
8834
|
-
function O(
|
|
8835
|
-
return e.html === !0 ? p(bt, { class:
|
|
8834
|
+
function O(U, J) {
|
|
8835
|
+
return e.html === !0 ? p(bt, { class: U, innerHTML: J }) : p(bt, { class: U }, () => J);
|
|
8836
8836
|
}
|
|
8837
8837
|
function I() {
|
|
8838
8838
|
return [p(Pt, { color: u.value, dense: !0, autofocus: !0, dark: o.value, ...f.value, modelValue: i.value, "onUpdate:modelValue": E, onKeyup: x })];
|
|
@@ -8841,12 +8841,12 @@ ye({ name: "DialogPlugin", props: { ...wt, title: String, message: String, promp
|
|
|
8841
8841
|
return [p(X_, { color: u.value, options: e.options.items, dark: o.value, ...f.value, modelValue: i.value, "onUpdate:modelValue": E })];
|
|
8842
8842
|
}
|
|
8843
8843
|
function D() {
|
|
8844
|
-
const
|
|
8845
|
-
return e.cancel &&
|
|
8844
|
+
const U = [];
|
|
8845
|
+
return e.cancel && U.push(p(Fe, _.value)), e.ok && U.push(p(Fe, w.value)), p(ka, { class: e.stackButtons === !0 ? "items-end" : "", vertical: e.stackButtons, align: "right" }, () => U);
|
|
8846
8846
|
}
|
|
8847
8847
|
function M() {
|
|
8848
|
-
const
|
|
8849
|
-
return e.title &&
|
|
8848
|
+
const U = [];
|
|
8849
|
+
return e.title && U.push(O("q-dialog__title", e.title)), e.progress !== !1 && U.push(p(bt, { class: "q-dialog__progress" }, () => p(c.value.component, c.value.props))), e.message && U.push(O("q-dialog__message", e.message)), e.prompt !== void 0 ? U.push(p(bt, { class: "scroll q-dialog-plugin__form" }, I)) : e.options !== void 0 && U.push(p(ur, { dark: o.value }), p(bt, { class: "scroll q-dialog-plugin__form" }, T), p(ur, { dark: o.value })), (e.ok || e.cancel) && U.push(D()), U;
|
|
8850
8850
|
}
|
|
8851
8851
|
function $() {
|
|
8852
8852
|
return [p(rn, { class: [l.value, e.cardClass], style: e.cardStyle, dark: o.value }, M)];
|
|
@@ -9641,7 +9641,7 @@ function xS(e, t = {}) {
|
|
|
9641
9641
|
const te = j.currentChar();
|
|
9642
9642
|
return te === Fr ? Fr : L(te) ? (j.next(), te) : null;
|
|
9643
9643
|
}
|
|
9644
|
-
function
|
|
9644
|
+
function U(j) {
|
|
9645
9645
|
return $(j, (te) => {
|
|
9646
9646
|
const ge = te.charCodeAt(0);
|
|
9647
9647
|
return ge >= 97 && ge <= 122 || // a-z
|
|
@@ -9651,7 +9651,7 @@ function xS(e, t = {}) {
|
|
|
9651
9651
|
ge === 36;
|
|
9652
9652
|
});
|
|
9653
9653
|
}
|
|
9654
|
-
function
|
|
9654
|
+
function J(j) {
|
|
9655
9655
|
return $(j, (te) => {
|
|
9656
9656
|
const ge = te.charCodeAt(0);
|
|
9657
9657
|
return ge >= 48 && ge <= 57;
|
|
@@ -9665,9 +9665,9 @@ function xS(e, t = {}) {
|
|
|
9665
9665
|
ge >= 97 && ge <= 102;
|
|
9666
9666
|
});
|
|
9667
9667
|
}
|
|
9668
|
-
function
|
|
9668
|
+
function B(j) {
|
|
9669
9669
|
let L = "", te = "";
|
|
9670
|
-
for (; L =
|
|
9670
|
+
for (; L = J(j); )
|
|
9671
9671
|
te += L;
|
|
9672
9672
|
return te;
|
|
9673
9673
|
}
|
|
@@ -9676,7 +9676,7 @@ function xS(e, t = {}) {
|
|
|
9676
9676
|
const L = j.currentChar();
|
|
9677
9677
|
return L !== "%" && f(tt.EXPECTED_TOKEN, a(), 0, L), j.next(), "%";
|
|
9678
9678
|
}
|
|
9679
|
-
function
|
|
9679
|
+
function G(j) {
|
|
9680
9680
|
let L = "";
|
|
9681
9681
|
for (; ; ) {
|
|
9682
9682
|
const te = j.currentChar();
|
|
@@ -9700,17 +9700,17 @@ function xS(e, t = {}) {
|
|
|
9700
9700
|
}
|
|
9701
9701
|
return L;
|
|
9702
9702
|
}
|
|
9703
|
-
function
|
|
9703
|
+
function X(j) {
|
|
9704
9704
|
_(j);
|
|
9705
9705
|
let L = "", te = "";
|
|
9706
|
-
for (; L =
|
|
9706
|
+
for (; L = U(j); )
|
|
9707
9707
|
te += L;
|
|
9708
9708
|
return j.currentChar() === Fr && f(tt.UNTERMINATED_CLOSING_BRACE, a(), 0), te;
|
|
9709
9709
|
}
|
|
9710
9710
|
function Q(j) {
|
|
9711
9711
|
_(j);
|
|
9712
9712
|
let L = "";
|
|
9713
|
-
return j.currentChar() === "-" ? (j.next(), L += `-${
|
|
9713
|
+
return j.currentChar() === "-" ? (j.next(), L += `-${B(j)}`) : L += B(j), j.currentChar() === Fr && f(tt.UNTERMINATED_CLOSING_BRACE, a(), 0), L;
|
|
9714
9714
|
}
|
|
9715
9715
|
function R(j) {
|
|
9716
9716
|
_(j), m(j, "'");
|
|
@@ -9728,14 +9728,14 @@ function xS(e, t = {}) {
|
|
|
9728
9728
|
case "'":
|
|
9729
9729
|
return j.next(), `\\${L}`;
|
|
9730
9730
|
case "u":
|
|
9731
|
-
return
|
|
9731
|
+
return Z(j, L, 4);
|
|
9732
9732
|
case "U":
|
|
9733
|
-
return
|
|
9733
|
+
return Z(j, L, 6);
|
|
9734
9734
|
default:
|
|
9735
9735
|
return f(tt.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, L), "";
|
|
9736
9736
|
}
|
|
9737
9737
|
}
|
|
9738
|
-
function
|
|
9738
|
+
function Z(j, L, te) {
|
|
9739
9739
|
m(j, L);
|
|
9740
9740
|
let ge = "";
|
|
9741
9741
|
for (let _e = 0; _e < te; _e++) {
|
|
@@ -9758,7 +9758,7 @@ function xS(e, t = {}) {
|
|
|
9758
9758
|
}
|
|
9759
9759
|
function ae(j) {
|
|
9760
9760
|
let L = "", te = "";
|
|
9761
|
-
for (; L =
|
|
9761
|
+
for (; L = U(j); )
|
|
9762
9762
|
te += L;
|
|
9763
9763
|
return te;
|
|
9764
9764
|
}
|
|
@@ -9804,7 +9804,7 @@ function xS(e, t = {}) {
|
|
|
9804
9804
|
if (L.braceNest > 0 && (L.currentType === 5 || L.currentType === 6 || L.currentType === 7))
|
|
9805
9805
|
return f(tt.UNTERMINATED_CLOSING_BRACE, a(), 0), L.braceNest = 0, be(j, L);
|
|
9806
9806
|
if (_e = h(j, L))
|
|
9807
|
-
return te = d(L, 5,
|
|
9807
|
+
return te = d(L, 5, X(j)), _(j), te;
|
|
9808
9808
|
if (Re = y(j, L))
|
|
9809
9809
|
return te = d(L, 6, Q(j)), _(j), te;
|
|
9810
9810
|
if (ut = k(j, L))
|
|
@@ -9871,9 +9871,9 @@ function xS(e, t = {}) {
|
|
|
9871
9871
|
return te = d(L, 1, ne(j)), L.braceNest = 0, L.inLinked = !1, te;
|
|
9872
9872
|
const { isModulo: _e, hasSpace: Re } = D(j);
|
|
9873
9873
|
if (_e)
|
|
9874
|
-
return Re ? d(L, 0,
|
|
9874
|
+
return Re ? d(L, 0, G(j)) : d(L, 4, F(j));
|
|
9875
9875
|
if (M(j))
|
|
9876
|
-
return d(L, 0,
|
|
9876
|
+
return d(L, 0, G(j));
|
|
9877
9877
|
break;
|
|
9878
9878
|
}
|
|
9879
9879
|
return te;
|
|
@@ -11605,23 +11605,23 @@ function Vc(e = {}, t) {
|
|
|
11605
11605
|
set: (re) => {
|
|
11606
11606
|
u.value = re, x.fallbackLocale = u.value, Wa(x, l.value, re);
|
|
11607
11607
|
}
|
|
11608
|
-
}), M = b(() => c.value), $ = /* @__PURE__ */ b(() => s.value),
|
|
11609
|
-
function
|
|
11608
|
+
}), M = b(() => c.value), $ = /* @__PURE__ */ b(() => s.value), U = /* @__PURE__ */ b(() => f.value);
|
|
11609
|
+
function J() {
|
|
11610
11610
|
return Qt(S) ? S : null;
|
|
11611
11611
|
}
|
|
11612
11612
|
function oe(re) {
|
|
11613
11613
|
S = re, x.postTranslation = re;
|
|
11614
11614
|
}
|
|
11615
|
-
function
|
|
11615
|
+
function B() {
|
|
11616
11616
|
return _;
|
|
11617
11617
|
}
|
|
11618
11618
|
function F(re) {
|
|
11619
11619
|
re !== null && (g = Jp(re)), _ = re, x.missing = g;
|
|
11620
11620
|
}
|
|
11621
|
-
function
|
|
11621
|
+
function G(re, ce) {
|
|
11622
11622
|
return re !== "translate" || !ce.resolvedMessage;
|
|
11623
11623
|
}
|
|
11624
|
-
const
|
|
11624
|
+
const X = (re, ce, $e, Xe, kt, Tt) => {
|
|
11625
11625
|
I();
|
|
11626
11626
|
let pe;
|
|
11627
11627
|
try {
|
|
@@ -11632,7 +11632,7 @@ function Vc(e = {}, t) {
|
|
|
11632
11632
|
if ($e !== "translate exists" && // for not `te` (e.g `t`)
|
|
11633
11633
|
hn(pe) && pe === ts || $e === "translate exists" && !pe) {
|
|
11634
11634
|
const [Se, se] = ce();
|
|
11635
|
-
if (process.env.NODE_ENV !== "production" && n && Le(Se) &&
|
|
11635
|
+
if (process.env.NODE_ENV !== "production" && n && Le(Se) && G($e, se) && (m && (ns(v, Se) || I0(d, Se)) && Cn(Un(nn.FALLBACK_TO_ROOT, {
|
|
11636
11636
|
key: Se,
|
|
11637
11637
|
type: $e
|
|
11638
11638
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -11652,7 +11652,7 @@ function Vc(e = {}, t) {
|
|
|
11652
11652
|
}
|
|
11653
11653
|
};
|
|
11654
11654
|
function Q(...re) {
|
|
11655
|
-
return
|
|
11655
|
+
return X((ce) => Reflect.apply(Vp, null, [ce, ...re]), () => wu(...re), "translate", (ce) => Reflect.apply(ce.t, ce, [...re]), (ce) => ce, (ce) => Le(ce));
|
|
11656
11656
|
}
|
|
11657
11657
|
function R(...re) {
|
|
11658
11658
|
const [ce, $e, Xe] = re;
|
|
@@ -11661,10 +11661,10 @@ function Vc(e = {}, t) {
|
|
|
11661
11661
|
return Q(ce, $e, Tn({ resolvedMessage: !0 }, Xe || {}));
|
|
11662
11662
|
}
|
|
11663
11663
|
function Y(...re) {
|
|
11664
|
-
return
|
|
11664
|
+
return X((ce) => Reflect.apply(Up, null, [ce, ...re]), () => Su(...re), "datetime format", (ce) => Reflect.apply(ce.d, ce, [...re]), () => Al, (ce) => Le(ce));
|
|
11665
11665
|
}
|
|
11666
|
-
function
|
|
11667
|
-
return
|
|
11666
|
+
function Z(...re) {
|
|
11667
|
+
return X((ce) => Reflect.apply(zp, null, [ce, ...re]), () => ku(...re), "number format", (ce) => Reflect.apply(ce.n, ce, [...re]), () => Al, (ce) => Le(ce));
|
|
11668
11668
|
}
|
|
11669
11669
|
function le(re) {
|
|
11670
11670
|
return re.map((ce) => Le(ce) || hn(ce) || yt(ce) ? Qp(String(ce)) : ce);
|
|
@@ -11675,7 +11675,7 @@ function Vc(e = {}, t) {
|
|
|
11675
11675
|
type: "vnode"
|
|
11676
11676
|
};
|
|
11677
11677
|
function ne(...re) {
|
|
11678
|
-
return
|
|
11678
|
+
return X(
|
|
11679
11679
|
(ce) => {
|
|
11680
11680
|
let $e;
|
|
11681
11681
|
const Xe = ce;
|
|
@@ -11695,7 +11695,7 @@ function Vc(e = {}, t) {
|
|
|
11695
11695
|
);
|
|
11696
11696
|
}
|
|
11697
11697
|
function P(...re) {
|
|
11698
|
-
return
|
|
11698
|
+
return X(
|
|
11699
11699
|
(ce) => Reflect.apply(zp, null, [ce, ...re]),
|
|
11700
11700
|
() => ku(...re),
|
|
11701
11701
|
"number format",
|
|
@@ -11706,7 +11706,7 @@ function Vc(e = {}, t) {
|
|
|
11706
11706
|
);
|
|
11707
11707
|
}
|
|
11708
11708
|
function ie(...re) {
|
|
11709
|
-
return
|
|
11709
|
+
return X(
|
|
11710
11710
|
(ce) => Reflect.apply(Up, null, [ce, ...re]),
|
|
11711
11711
|
() => Su(...re),
|
|
11712
11712
|
"datetime format",
|
|
@@ -11720,7 +11720,7 @@ function Vc(e = {}, t) {
|
|
|
11720
11720
|
E = re, x.pluralRules = E;
|
|
11721
11721
|
}
|
|
11722
11722
|
function Te(re, ce) {
|
|
11723
|
-
return
|
|
11723
|
+
return X(() => {
|
|
11724
11724
|
if (!re)
|
|
11725
11725
|
return !1;
|
|
11726
11726
|
const $e = Le(ce) ? ce : l.value, Xe = te($e), kt = x.messageResolver(Xe, re);
|
|
@@ -11848,13 +11848,13 @@ function Vc(e = {}, t) {
|
|
|
11848
11848
|
getLocaleMessage: te,
|
|
11849
11849
|
setLocaleMessage: ge,
|
|
11850
11850
|
mergeLocaleMessage: _e,
|
|
11851
|
-
getPostTranslationHandler:
|
|
11851
|
+
getPostTranslationHandler: J,
|
|
11852
11852
|
setPostTranslationHandler: oe,
|
|
11853
|
-
getMissingHandler:
|
|
11853
|
+
getMissingHandler: B,
|
|
11854
11854
|
setMissingHandler: F,
|
|
11855
11855
|
[U0]: be
|
|
11856
11856
|
};
|
|
11857
|
-
return Oe.datetimeFormats = $, Oe.numberFormats =
|
|
11857
|
+
return Oe.datetimeFormats = $, Oe.numberFormats = U, Oe.rt = R, Oe.te = Te, Oe.tm = L, Oe.d = Y, Oe.n = Z, Oe.getDateTimeFormat = Re, Oe.setDateTimeFormat = ut, Oe.mergeDateTimeFormat = et, Oe.getNumberFormat = Ee, Oe.setNumberFormat = Pe, Oe.mergeNumberFormat = de, Oe[j0] = r, Oe[xu] = ne, Oe[Eu] = ie, Oe[Tu] = P, process.env.NODE_ENV !== "production" && (Oe[Ro] = (re) => {
|
|
11858
11858
|
x.__v_emitter = re;
|
|
11859
11859
|
}, Oe[mi] = () => {
|
|
11860
11860
|
x.__v_emitter = void 0;
|
|
@@ -12827,25 +12827,25 @@ function kC(e, t, n, r = {}) {
|
|
|
12827
12827
|
function $(L) {
|
|
12828
12828
|
a.value && a.value.setPostTranslationHandler(L);
|
|
12829
12829
|
}
|
|
12830
|
-
function
|
|
12830
|
+
function U() {
|
|
12831
12831
|
return a.value ? a.value.getMissingHandler() : _;
|
|
12832
12832
|
}
|
|
12833
|
-
function
|
|
12833
|
+
function J(L) {
|
|
12834
12834
|
a.value && a.value.setMissingHandler(L);
|
|
12835
12835
|
}
|
|
12836
12836
|
function oe(L) {
|
|
12837
12837
|
return E(), L();
|
|
12838
12838
|
}
|
|
12839
|
-
function
|
|
12839
|
+
function B(...L) {
|
|
12840
12840
|
return a.value ? oe(() => Reflect.apply(a.value.t, null, [...L])) : oe(() => "");
|
|
12841
12841
|
}
|
|
12842
12842
|
function F(...L) {
|
|
12843
12843
|
return a.value ? Reflect.apply(a.value.rt, null, [...L]) : "";
|
|
12844
12844
|
}
|
|
12845
|
-
function
|
|
12845
|
+
function G(...L) {
|
|
12846
12846
|
return a.value ? oe(() => Reflect.apply(a.value.d, null, [...L])) : oe(() => "");
|
|
12847
12847
|
}
|
|
12848
|
-
function
|
|
12848
|
+
function X(...L) {
|
|
12849
12849
|
return a.value ? oe(() => Reflect.apply(a.value.n, null, [...L])) : oe(() => "");
|
|
12850
12850
|
}
|
|
12851
12851
|
function Q(L) {
|
|
@@ -12857,7 +12857,7 @@ function kC(e, t, n, r = {}) {
|
|
|
12857
12857
|
function Y(L) {
|
|
12858
12858
|
return a.value ? a.value.getLocaleMessage(L) : {};
|
|
12859
12859
|
}
|
|
12860
|
-
function
|
|
12860
|
+
function Z(L, te) {
|
|
12861
12861
|
a.value && (a.value.setLocaleMessage(L, te), c.value[L] = te);
|
|
12862
12862
|
}
|
|
12863
12863
|
function le(L, te) {
|
|
@@ -12944,18 +12944,18 @@ function kC(e, t, n, r = {}) {
|
|
|
12944
12944
|
set escapeParameter(L) {
|
|
12945
12945
|
a.value && (a.value.escapeParameter = L);
|
|
12946
12946
|
},
|
|
12947
|
-
t:
|
|
12947
|
+
t: B,
|
|
12948
12948
|
getPostTranslationHandler: M,
|
|
12949
12949
|
setPostTranslationHandler: $,
|
|
12950
|
-
getMissingHandler:
|
|
12951
|
-
setMissingHandler:
|
|
12950
|
+
getMissingHandler: U,
|
|
12951
|
+
setMissingHandler: J,
|
|
12952
12952
|
rt: F,
|
|
12953
|
-
d:
|
|
12954
|
-
n:
|
|
12953
|
+
d: G,
|
|
12954
|
+
n: X,
|
|
12955
12955
|
tm: Q,
|
|
12956
12956
|
te: R,
|
|
12957
12957
|
getLocaleMessage: Y,
|
|
12958
|
-
setLocaleMessage:
|
|
12958
|
+
setLocaleMessage: Z,
|
|
12959
12959
|
mergeLocaleMessage: le,
|
|
12960
12960
|
getDateTimeFormat: ae,
|
|
12961
12961
|
setDateTimeFormat: we,
|
|
@@ -14367,7 +14367,7 @@ const EL = (e, t, n, r, o, a, i) => {
|
|
|
14367
14367
|
dense: "",
|
|
14368
14368
|
clickable: "",
|
|
14369
14369
|
key: $.id,
|
|
14370
|
-
onClick: (
|
|
14370
|
+
onClick: (U) => _("onBrandSelected", $, U)
|
|
14371
14371
|
}, {
|
|
14372
14372
|
default: H(() => [
|
|
14373
14373
|
C("div", YE, [
|
|
@@ -14424,7 +14424,7 @@ const EL = (e, t, n, r, o, a, i) => {
|
|
|
14424
14424
|
dense: "",
|
|
14425
14425
|
clickable: "",
|
|
14426
14426
|
key: $.id,
|
|
14427
|
-
onClick: (
|
|
14427
|
+
onClick: (U) => _("onCategorySelected", $, U)
|
|
14428
14428
|
}, {
|
|
14429
14429
|
default: H(() => [
|
|
14430
14430
|
C("div", GE, [
|
|
@@ -14481,7 +14481,7 @@ const EL = (e, t, n, r, o, a, i) => {
|
|
|
14481
14481
|
dense: "",
|
|
14482
14482
|
clickable: "",
|
|
14483
14483
|
key: $.id,
|
|
14484
|
-
onClick: (
|
|
14484
|
+
onClick: (U) => _("onProductSelected", $, U)
|
|
14485
14485
|
}, {
|
|
14486
14486
|
default: H(() => [
|
|
14487
14487
|
C("div", ZE, [
|
|
@@ -16546,8 +16546,11 @@ const mO = { class: "text-center q-ma-xl spinner-overlay" }, hO = { class: "sear
|
|
|
16546
16546
|
function m(T, D) {
|
|
16547
16547
|
const M = Math.ceil(T.totalCount / l.value);
|
|
16548
16548
|
c.value = M;
|
|
16549
|
-
const $ = M * l.value,
|
|
16550
|
-
|
|
16549
|
+
const $ = M * l.value, U = Math.min($, T.offset);
|
|
16550
|
+
U > 0 ? u.value = U / l.value + 1 : u.value = 1, r.value = T;
|
|
16551
|
+
for (let J = 0; J < o.filterResponse.filters.length; J++)
|
|
16552
|
+
o.filterResponse.filters[J].values = o.filterResponse.filters[J].values.sort((oe, B) => oe.name.localeCompare(B.name));
|
|
16553
|
+
i.value = o.filterResponse.filters, D && I(o.searchRequest), n.value = o.resultsFor;
|
|
16551
16554
|
}
|
|
16552
16555
|
async function w(T) {
|
|
16553
16556
|
const D = T.target;
|
|
@@ -16579,8 +16582,8 @@ const mO = { class: "text-center q-ma-xl spinner-overlay" }, hO = { class: "sear
|
|
|
16579
16582
|
!D.categoryId && M && (D.categoryId = M);
|
|
16580
16583
|
const $ = v();
|
|
16581
16584
|
!D.distributorId && $ && (D.distributorId = $);
|
|
16582
|
-
const
|
|
16583
|
-
m(
|
|
16585
|
+
const U = await o.performTextSearch(D);
|
|
16586
|
+
m(U, T);
|
|
16584
16587
|
} finally {
|
|
16585
16588
|
a.value = !1;
|
|
16586
16589
|
}
|
|
@@ -21448,40 +21451,40 @@ var Iv = ir(function() {
|
|
|
21448
21451
|
I.variables && !s && (I.variables = Aq(I.variables, v.query));
|
|
21449
21452
|
var T;
|
|
21450
21453
|
!O.signal && typeof AbortController < "u" && (T = new AbortController(), O.signal = T.signal);
|
|
21451
|
-
var D = function(
|
|
21452
|
-
return
|
|
21453
|
-
}, M = function(
|
|
21454
|
-
return
|
|
21455
|
-
}, $ = M(Li(v.query)),
|
|
21456
|
-
if (u && !v.query.definitions.some(D) && (O.method = "GET"),
|
|
21454
|
+
var D = function(G) {
|
|
21455
|
+
return G.kind === "OperationDefinition" && G.operation === "mutation";
|
|
21456
|
+
}, M = function(G) {
|
|
21457
|
+
return G.kind === "OperationDefinition" && G.operation === "subscription";
|
|
21458
|
+
}, $ = M(Li(v.query)), U = bi(["defer"], v.query);
|
|
21459
|
+
if (u && !v.query.definitions.some(D) && (O.method = "GET"), U || $) {
|
|
21457
21460
|
O.headers = O.headers || {};
|
|
21458
|
-
var
|
|
21459
|
-
$ &&
|
|
21461
|
+
var J = "multipart/mixed;";
|
|
21462
|
+
$ && U && globalThis.__DEV__ !== !1 && nt.warn(38), $ ? J += "boundary=graphql;subscriptionSpec=1.0,application/json" : U && (J += "deferSpec=20220824,application/json"), O.headers.accept = J;
|
|
21460
21463
|
}
|
|
21461
21464
|
if (O.method === "GET") {
|
|
21462
|
-
var oe = sP(m, I),
|
|
21465
|
+
var oe = sP(m, I), B = oe.newURI, F = oe.parseError;
|
|
21463
21466
|
if (F)
|
|
21464
21467
|
return Gs(F);
|
|
21465
|
-
m =
|
|
21468
|
+
m = B;
|
|
21466
21469
|
} else
|
|
21467
21470
|
try {
|
|
21468
21471
|
O.body = Hu(I, "Payload");
|
|
21469
|
-
} catch (
|
|
21470
|
-
return Gs(
|
|
21472
|
+
} catch (G) {
|
|
21473
|
+
return Gs(G);
|
|
21471
21474
|
}
|
|
21472
|
-
return new Vt(function(
|
|
21473
|
-
var
|
|
21475
|
+
return new Vt(function(G) {
|
|
21476
|
+
var X = r || ir(function() {
|
|
21474
21477
|
return fetch;
|
|
21475
|
-
}) || Iv, Q =
|
|
21476
|
-
return
|
|
21478
|
+
}) || Iv, Q = G.next.bind(G);
|
|
21479
|
+
return X(m, O).then(function(R) {
|
|
21477
21480
|
var Y;
|
|
21478
21481
|
v.setContext({ response: R });
|
|
21479
|
-
var
|
|
21480
|
-
return
|
|
21482
|
+
var Z = (Y = R.headers) === null || Y === void 0 ? void 0 : Y.get("content-type");
|
|
21483
|
+
return Z !== null && /^multipart\/mixed/i.test(Z) ? Yq(R, Q) : Xq(v)(R).then(Q);
|
|
21481
21484
|
}).then(function() {
|
|
21482
|
-
T = void 0,
|
|
21485
|
+
T = void 0, G.complete();
|
|
21483
21486
|
}).catch(function(R) {
|
|
21484
|
-
T = void 0, Gq(R,
|
|
21487
|
+
T = void 0, Gq(R, G);
|
|
21485
21488
|
}), function() {
|
|
21486
21489
|
T && T.abort();
|
|
21487
21490
|
};
|
|
@@ -26916,13 +26919,13 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
26916
26919
|
});
|
|
26917
26920
|
}
|
|
26918
26921
|
function h(F) {
|
|
26919
|
-
const
|
|
26920
|
-
return
|
|
26922
|
+
const X = Object.keys(go).find((Q) => Q.toLowerCase() === F.toLowerCase());
|
|
26923
|
+
return X ? go[X] : void 0;
|
|
26921
26924
|
}
|
|
26922
|
-
async function y(F,
|
|
26925
|
+
async function y(F, G) {
|
|
26923
26926
|
n.value = !0;
|
|
26924
|
-
const
|
|
26925
|
-
if (!
|
|
26927
|
+
const X = h(F);
|
|
26928
|
+
if (!X) {
|
|
26926
26929
|
o.dialog({
|
|
26927
26930
|
title: a("Error getting subscription details"),
|
|
26928
26931
|
message: a("Please try again, if the problem persists contact our support team.")
|
|
@@ -26981,8 +26984,8 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
26981
26984
|
}
|
|
26982
26985
|
}`,
|
|
26983
26986
|
variables: {
|
|
26984
|
-
providerSubscriptionId:
|
|
26985
|
-
externalSystemType:
|
|
26987
|
+
providerSubscriptionId: G,
|
|
26988
|
+
externalSystemType: X
|
|
26986
26989
|
},
|
|
26987
26990
|
fetchPolicy: "no-cache"
|
|
26988
26991
|
});
|
|
@@ -26992,7 +26995,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
26992
26995
|
Y.__typename = "SubscriptionLineLocal", Y.price = Y.price ?? Y.cost, Y.originalPrice = Y.price, T(Y);
|
|
26993
26996
|
}), R.daysToRenewal != null && (R.renewalColour = my(R.daysToRenewal)), s.value = R;
|
|
26994
26997
|
}
|
|
26995
|
-
s.value && (s.value.sinchAccountId && (u.value = !0), s.value.hasPendingChanges === !1 && await k(
|
|
26998
|
+
s.value && (s.value.sinchAccountId && (u.value = !0), s.value.hasPendingChanges === !1 && await k(X, G), l.value = !0), c.value = JSON.stringify(s.value);
|
|
26996
26999
|
} catch (Q) {
|
|
26997
27000
|
console.error(Q), o.dialog({
|
|
26998
27001
|
title: a("Error getting subscription details"),
|
|
@@ -27002,7 +27005,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27002
27005
|
n.value = !1;
|
|
27003
27006
|
}
|
|
27004
27007
|
}
|
|
27005
|
-
async function k(F,
|
|
27008
|
+
async function k(F, G) {
|
|
27006
27009
|
i.value = !0;
|
|
27007
27010
|
try {
|
|
27008
27011
|
const Q = (await Yt.query({
|
|
@@ -27025,20 +27028,20 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27025
27028
|
}
|
|
27026
27029
|
}`,
|
|
27027
27030
|
variables: {
|
|
27028
|
-
providerSubscriptionId:
|
|
27031
|
+
providerSubscriptionId: G,
|
|
27029
27032
|
externalSystemType: F
|
|
27030
27033
|
}
|
|
27031
27034
|
})).data.subscriptionDetailsFromProvider;
|
|
27032
27035
|
if (Q && s.value) {
|
|
27033
27036
|
const R = JSON.parse(JSON.stringify({ ...s.value, hasPendingChanges: Q.hasPendingChanges, isAutoRenewalEnabled: Q.renewalStatus }));
|
|
27034
27037
|
for (const Y of R.lines) {
|
|
27035
|
-
const
|
|
27036
|
-
|
|
27038
|
+
const Z = Q.products?.find((le) => le.vendor == Y.vendor && le.manufacturerPartNumber == Y.sku);
|
|
27039
|
+
Z && (Y.quantity = Z.quantity);
|
|
27037
27040
|
}
|
|
27038
27041
|
s.value = R;
|
|
27039
27042
|
}
|
|
27040
|
-
} catch (
|
|
27041
|
-
console.error(
|
|
27043
|
+
} catch (X) {
|
|
27044
|
+
console.error(X), o.dialog({
|
|
27042
27045
|
title: a("Error getting subscription latest status"),
|
|
27043
27046
|
message: a("Please try again, if the problem persists contact our support team.")
|
|
27044
27047
|
});
|
|
@@ -27054,21 +27057,21 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27054
27057
|
const F = JSON.parse(c.value);
|
|
27055
27058
|
try {
|
|
27056
27059
|
if (F && F.lines && s.value?.lines) {
|
|
27057
|
-
const
|
|
27060
|
+
const G = [];
|
|
27058
27061
|
for (let Y = 0; Y < s.value.lines.length; Y++) {
|
|
27059
|
-
const
|
|
27060
|
-
(
|
|
27061
|
-
quantity:
|
|
27062
|
-
sku:
|
|
27063
|
-
vendor:
|
|
27064
|
-
isMainSubscription:
|
|
27062
|
+
const Z = s.value.lines[Y], le = F.lines[Y];
|
|
27063
|
+
(Z.quantity != le.quantity || Z.isMainSubscription) && G.push({
|
|
27064
|
+
quantity: Z.quantity,
|
|
27065
|
+
sku: Z.sku,
|
|
27066
|
+
vendor: Z.vendor,
|
|
27067
|
+
isMainSubscription: Z.isMainSubscription
|
|
27065
27068
|
});
|
|
27066
27069
|
}
|
|
27067
|
-
let
|
|
27070
|
+
let X = go[s.value.externalSystem];
|
|
27068
27071
|
const Q = {
|
|
27069
27072
|
cspSubscriptionId: s.value.cspSubscriptionId,
|
|
27070
|
-
lines:
|
|
27071
|
-
externalSystemType:
|
|
27073
|
+
lines: G,
|
|
27074
|
+
externalSystemType: X
|
|
27072
27075
|
}, R = await Yt.mutate({
|
|
27073
27076
|
mutation: cy,
|
|
27074
27077
|
variables: { data: Q }
|
|
@@ -27092,11 +27095,11 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27092
27095
|
}
|
|
27093
27096
|
}
|
|
27094
27097
|
async function O(F) {
|
|
27095
|
-
let
|
|
27098
|
+
let G = null;
|
|
27096
27099
|
if (F) {
|
|
27097
|
-
|
|
27098
|
-
var
|
|
27099
|
-
|
|
27100
|
+
G = [];
|
|
27101
|
+
var X = s.value?.lines.filter((Y) => Y.price != Y.originalPrice);
|
|
27102
|
+
X && (G = X.map((Y) => ({ price: Y.price, productMpn: Y.sku })));
|
|
27100
27103
|
}
|
|
27101
27104
|
const Q = {
|
|
27102
27105
|
cspSubscriptionId: s.value?.cspSubscriptionId,
|
|
@@ -27104,7 +27107,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27104
27107
|
sinchAccountId: s.value?.sinchAccountId,
|
|
27105
27108
|
providerSubscriptionId: s.value?.providerSubscriptionId,
|
|
27106
27109
|
currency: s.value?.currency,
|
|
27107
|
-
prices:
|
|
27110
|
+
prices: G,
|
|
27108
27111
|
externalSystemClientId: s.value?.externalSystemClientId
|
|
27109
27112
|
}, R = await Yt.mutate({
|
|
27110
27113
|
mutation: Nt`mutation patchIngramSubscripton($input: PatchIngramSubscriptonInput!) {
|
|
@@ -27118,29 +27121,29 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27118
27121
|
if (R.data && R.data.patchIngramSubscripton && R.data.patchIngramSubscripton)
|
|
27119
27122
|
return R.data.patchIngramSubscripton;
|
|
27120
27123
|
}
|
|
27121
|
-
function I(F,
|
|
27122
|
-
if (!
|
|
27124
|
+
function I(F, G, X) {
|
|
27125
|
+
if (!X) {
|
|
27123
27126
|
console.error("goToOrderDetailsFromProvider: The parameter SubscriptionGqlModel is required");
|
|
27124
27127
|
return;
|
|
27125
27128
|
}
|
|
27126
27129
|
const Q = {
|
|
27127
|
-
externalSystemType:
|
|
27130
|
+
externalSystemType: X.externalSystemType,
|
|
27128
27131
|
providerOrderId: F.id,
|
|
27129
|
-
customerCompanyName:
|
|
27130
|
-
providerCustomerId:
|
|
27131
|
-
cspCentralisedCustomerId:
|
|
27132
|
-
externalSystemClientId:
|
|
27132
|
+
customerCompanyName: X.customerName,
|
|
27133
|
+
providerCustomerId: X.providerCustomerId,
|
|
27134
|
+
cspCentralisedCustomerId: X.centralisedCustomerId,
|
|
27135
|
+
externalSystemClientId: X.externalSystemClientId
|
|
27133
27136
|
};
|
|
27134
|
-
w("goToOrderDetails", Q,
|
|
27137
|
+
w("goToOrderDetails", Q, G);
|
|
27135
27138
|
}
|
|
27136
27139
|
function T(F) {
|
|
27137
27140
|
F.quantity = F.quantity <= 0 ? 1 : F.quantity;
|
|
27138
|
-
const
|
|
27139
|
-
F.totalCost = F.cost && F.quantity ? F.cost * F.quantity : void 0, F.totalPrice = F.price && F.quantity ? F.price * F.quantity : void 0, F.margin =
|
|
27141
|
+
const G = F.cost && F.price ? (F.price - F.cost) / F.price * 100 : void 0;
|
|
27142
|
+
F.totalCost = F.cost && F.quantity ? F.cost * F.quantity : void 0, F.totalPrice = F.price && F.quantity ? F.price * F.quantity : void 0, F.margin = G ? parseFloat(G.toFixed(2)) : void 0, F.availableStock = F.stockLevel ? F.stockLevel - F.quantity : void 0;
|
|
27140
27143
|
}
|
|
27141
|
-
function D(F,
|
|
27142
|
-
const
|
|
27143
|
-
return F / (1 -
|
|
27144
|
+
function D(F, G) {
|
|
27145
|
+
const X = G / 100;
|
|
27146
|
+
return F / (1 - X);
|
|
27144
27147
|
}
|
|
27145
27148
|
function M(F) {
|
|
27146
27149
|
F.cost && F.margin && (F.price = parseFloat(D(F.cost, F.margin).toFixed(2)), F.totalCost = F.cost && F.quantity ? F.cost * F.quantity : void 0, F.totalPrice = F.price && F.quantity ? F.price * F.quantity : void 0, F.availableStock = F.stockLevel ? F.stockLevel - F.quantity : void 0);
|
|
@@ -27148,14 +27151,14 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27148
27151
|
function $() {
|
|
27149
27152
|
v.value = !0;
|
|
27150
27153
|
}
|
|
27151
|
-
function
|
|
27154
|
+
function U() {
|
|
27152
27155
|
if (v.value = !1, s.value && s.value.lines && c.value) {
|
|
27153
27156
|
const F = JSON.parse(c.value);
|
|
27154
|
-
for (let
|
|
27155
|
-
s.value.lines[
|
|
27157
|
+
for (let G = 0; G < s.value.lines.length; G++)
|
|
27158
|
+
s.value.lines[G].margin = F.lines[G].margin, s.value.lines[G].price = F.lines[G].price;
|
|
27156
27159
|
}
|
|
27157
27160
|
}
|
|
27158
|
-
async function
|
|
27161
|
+
async function J() {
|
|
27159
27162
|
n.value = !0;
|
|
27160
27163
|
try {
|
|
27161
27164
|
const F = await O(!0);
|
|
@@ -27194,8 +27197,8 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27194
27197
|
}).onDismiss(async () => {
|
|
27195
27198
|
await y(m.route.params.externalSystem?.toString(), m.route.params.providerSubscriptionId);
|
|
27196
27199
|
});
|
|
27197
|
-
} catch (
|
|
27198
|
-
console.error(
|
|
27200
|
+
} catch (G) {
|
|
27201
|
+
console.error(G), o.dialog({
|
|
27199
27202
|
title: a("Error while trying to update subscription"),
|
|
27200
27203
|
message: a("Please try again, if the problem persists contact our support team.")
|
|
27201
27204
|
});
|
|
@@ -27203,7 +27206,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27203
27206
|
d.value = !1;
|
|
27204
27207
|
}
|
|
27205
27208
|
}
|
|
27206
|
-
async function
|
|
27209
|
+
async function B() {
|
|
27207
27210
|
n.value = !0;
|
|
27208
27211
|
try {
|
|
27209
27212
|
const F = await Yt.mutate({
|
|
@@ -27245,7 +27248,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27245
27248
|
}
|
|
27246
27249
|
return ot(async () => {
|
|
27247
27250
|
m.route.params && await y(m.route.params.externalSystem?.toString(), m.route.params.providerSubscriptionId);
|
|
27248
|
-
}), (F,
|
|
27251
|
+
}), (F, G) => (W(), ue(rt, null, [
|
|
27249
27252
|
C("div", y2, [
|
|
27250
27253
|
C("div", b2, [
|
|
27251
27254
|
C("div", _2, V(F.$t("Subscription details")), 1),
|
|
@@ -27333,7 +27336,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27333
27336
|
A(q(Vh), {
|
|
27334
27337
|
modelValue: s.value.isAutoRenewalEnabled,
|
|
27335
27338
|
"onUpdate:modelValue": [
|
|
27336
|
-
|
|
27339
|
+
G[0] || (G[0] = (X) => s.value.isAutoRenewalEnabled = X),
|
|
27337
27340
|
oe
|
|
27338
27341
|
],
|
|
27339
27342
|
label: s.value.isAutoRenewalEnabled ? F.$t("Enabled") : F.$t("Disabled"),
|
|
@@ -27362,7 +27365,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27362
27365
|
"table-title": F.$t("Subscription History"),
|
|
27363
27366
|
"rows-per-page-options": m.rowsPerPageOptions,
|
|
27364
27367
|
router: m.router,
|
|
27365
|
-
onGoToOrderDetails:
|
|
27368
|
+
onGoToOrderDetails: G[1] || (G[1] = (X, Q) => I(X, Q, s.value))
|
|
27366
27369
|
}, null, 8, ["sinch-account-id", "csp-centralised-customer-id", "customer-company-name", "external-system-type", "provider-customer-id", "provider-subscription-id", "table-title", "rows-per-page-options", "router"])
|
|
27367
27370
|
])) : Be("", !0)
|
|
27368
27371
|
])
|
|
@@ -27384,7 +27387,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27384
27387
|
flat: "",
|
|
27385
27388
|
loading: n.value,
|
|
27386
27389
|
title: F.$t("Main Subscription"),
|
|
27387
|
-
rows: s.value?.lines.filter((
|
|
27390
|
+
rows: s.value?.lines.filter((X) => X.isMainSubscription),
|
|
27388
27391
|
"row-key": "manufacturerPartNumber",
|
|
27389
27392
|
columns: _,
|
|
27390
27393
|
"hide-bottom": "",
|
|
@@ -27392,12 +27395,12 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27392
27395
|
"visible-columns": f,
|
|
27393
27396
|
class: "subscription-details-table"
|
|
27394
27397
|
}, {
|
|
27395
|
-
body: H((
|
|
27398
|
+
body: H((X) => [
|
|
27396
27399
|
A(q(er), null, {
|
|
27397
27400
|
default: H(() => [
|
|
27398
27401
|
A(q(Ne), { key: "name" }, {
|
|
27399
27402
|
default: H(() => [
|
|
27400
|
-
ze(V(
|
|
27403
|
+
ze(V(X.row.name), 1)
|
|
27401
27404
|
]),
|
|
27402
27405
|
_: 2
|
|
27403
27406
|
}, 1024),
|
|
@@ -27411,14 +27414,14 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27411
27414
|
dense: "",
|
|
27412
27415
|
label: F.$t("Remove"),
|
|
27413
27416
|
color: "negative",
|
|
27414
|
-
onClick: (Q) =>
|
|
27417
|
+
onClick: (Q) => X.row.quantity > 1 && X.row.quantity-- && T(X.row),
|
|
27415
27418
|
disable: i.value || v.value
|
|
27416
27419
|
}, null, 8, ["label", "onClick", "disable"]),
|
|
27417
27420
|
A(q(Pt), {
|
|
27418
27421
|
style: { "min-width": "60px" },
|
|
27419
27422
|
disable: i.value || v.value,
|
|
27420
|
-
modelValue:
|
|
27421
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27423
|
+
modelValue: X.row.quantity,
|
|
27424
|
+
"onUpdate:modelValue": [(Q) => X.row.quantity = Q, (Q) => T(X.row)],
|
|
27422
27425
|
modelModifiers: { number: !0 },
|
|
27423
27426
|
outlined: "",
|
|
27424
27427
|
dense: "",
|
|
@@ -27434,12 +27437,12 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27434
27437
|
dense: "",
|
|
27435
27438
|
label: F.$t("Add"),
|
|
27436
27439
|
color: "positive",
|
|
27437
|
-
onClick: (Q) =>
|
|
27440
|
+
onClick: (Q) => X.row.quantity++ && T(X.row),
|
|
27438
27441
|
disable: i.value || v.value
|
|
27439
27442
|
}, null, 8, ["label", "onClick", "disable"])
|
|
27440
27443
|
]),
|
|
27441
|
-
|
|
27442
|
-
C("span", $2, V(`${
|
|
27444
|
+
X.row.availableStock ? (W(), ue("div", P2, [
|
|
27445
|
+
C("span", $2, V(`${X.row.availableStock} ${F.$t("MoreAvailable")}`), 1)
|
|
27443
27446
|
])) : Be("", !0)
|
|
27444
27447
|
])
|
|
27445
27448
|
]),
|
|
@@ -27447,15 +27450,15 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27447
27450
|
}, 1024),
|
|
27448
27451
|
A(q(Ne), { key: "cost" }, {
|
|
27449
27452
|
default: H(() => [
|
|
27450
|
-
ze(V(F.$formatCurrency(
|
|
27453
|
+
ze(V(F.$formatCurrency(X.row.cost, s.value?.currency)), 1)
|
|
27451
27454
|
]),
|
|
27452
27455
|
_: 2
|
|
27453
27456
|
}, 1024),
|
|
27454
27457
|
A(q(Ne), { key: "price" }, {
|
|
27455
27458
|
default: H(() => [
|
|
27456
27459
|
xe(A(q(Pt), {
|
|
27457
|
-
modelValue:
|
|
27458
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27460
|
+
modelValue: X.row.price,
|
|
27461
|
+
"onUpdate:modelValue": [(Q) => X.row.price = Q, (Q) => T(X.row)],
|
|
27459
27462
|
modelModifiers: { number: !0 },
|
|
27460
27463
|
outlined: "",
|
|
27461
27464
|
dense: "",
|
|
@@ -27466,7 +27469,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27466
27469
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "prefix"]), [
|
|
27467
27470
|
[Ie, v.value]
|
|
27468
27471
|
]),
|
|
27469
|
-
xe(C("span", null, V(F.$formatCurrency(
|
|
27472
|
+
xe(C("span", null, V(F.$formatCurrency(X.row.price, s.value?.currency)), 513), [
|
|
27470
27473
|
[Ie, !v.value]
|
|
27471
27474
|
])
|
|
27472
27475
|
]),
|
|
@@ -27475,8 +27478,8 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27475
27478
|
A(q(Ne), { key: "margin" }, {
|
|
27476
27479
|
default: H(() => [
|
|
27477
27480
|
xe(A(q(Pt), {
|
|
27478
|
-
modelValue:
|
|
27479
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27481
|
+
modelValue: X.row.margin,
|
|
27482
|
+
"onUpdate:modelValue": [(Q) => X.row.margin = Q, (Q) => M(X.row)],
|
|
27480
27483
|
modelModifiers: { number: !0 },
|
|
27481
27484
|
outlined: "",
|
|
27482
27485
|
dense: "",
|
|
@@ -27487,7 +27490,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27487
27490
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]), [
|
|
27488
27491
|
[Ie, v.value]
|
|
27489
27492
|
]),
|
|
27490
|
-
xe(C("span", null, V(
|
|
27493
|
+
xe(C("span", null, V(X.row.margin != null ? `${X.row.margin?.toFixed(2)}%` : F.$t("n/a")), 513), [
|
|
27491
27494
|
[Ie, !v.value]
|
|
27492
27495
|
])
|
|
27493
27496
|
]),
|
|
@@ -27495,13 +27498,13 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27495
27498
|
}, 1024),
|
|
27496
27499
|
A(q(Ne), { key: "totalCost" }, {
|
|
27497
27500
|
default: H(() => [
|
|
27498
|
-
ze(V(F.$formatCurrency(
|
|
27501
|
+
ze(V(F.$formatCurrency(X.row.totalCost, s.value?.currency)), 1)
|
|
27499
27502
|
]),
|
|
27500
27503
|
_: 2
|
|
27501
27504
|
}, 1024),
|
|
27502
27505
|
A(q(Ne), { key: "totalPrice" }, {
|
|
27503
27506
|
default: H(() => [
|
|
27504
|
-
ze(V(F.$formatCurrency(
|
|
27507
|
+
ze(V(F.$formatCurrency(X.row.totalPrice, s.value?.currency)), 1)
|
|
27505
27508
|
]),
|
|
27506
27509
|
_: 2
|
|
27507
27510
|
}, 1024)
|
|
@@ -27516,19 +27519,19 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27516
27519
|
flat: "",
|
|
27517
27520
|
loading: n.value,
|
|
27518
27521
|
title: F.$t("Add Ons"),
|
|
27519
|
-
rows: s.value?.lines.filter((
|
|
27522
|
+
rows: s.value?.lines.filter((X) => !X.isMainSubscription),
|
|
27520
27523
|
"row-key": "manufacturerPartNumber",
|
|
27521
27524
|
columns: _,
|
|
27522
27525
|
pagination: { rowsPerPage: 0 },
|
|
27523
27526
|
"rows-per-page-options": m.rowsPerPageOptions,
|
|
27524
27527
|
"visible-columns": f
|
|
27525
27528
|
}, {
|
|
27526
|
-
body: H((
|
|
27529
|
+
body: H((X) => [
|
|
27527
27530
|
A(q(er), null, {
|
|
27528
27531
|
default: H(() => [
|
|
27529
27532
|
A(q(Ne), { key: "name" }, {
|
|
27530
27533
|
default: H(() => [
|
|
27531
|
-
ze(V(
|
|
27534
|
+
ze(V(X.row.name), 1)
|
|
27532
27535
|
]),
|
|
27533
27536
|
_: 2
|
|
27534
27537
|
}, 1024),
|
|
@@ -27542,14 +27545,14 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27542
27545
|
dense: "",
|
|
27543
27546
|
label: F.$t("Remove"),
|
|
27544
27547
|
color: "negative",
|
|
27545
|
-
onClick: (Q) =>
|
|
27548
|
+
onClick: (Q) => X.row.quantity > 1 && X.row.quantity-- && T(X.row),
|
|
27546
27549
|
disable: i.value || v.value
|
|
27547
27550
|
}, null, 8, ["label", "onClick", "disable"]),
|
|
27548
27551
|
A(q(Pt), {
|
|
27549
27552
|
style: { "min-width": "60px" },
|
|
27550
27553
|
disable: i.value || v.value,
|
|
27551
|
-
modelValue:
|
|
27552
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27554
|
+
modelValue: X.row.quantity,
|
|
27555
|
+
"onUpdate:modelValue": [(Q) => X.row.quantity = Q, (Q) => T(X.row)],
|
|
27553
27556
|
modelModifiers: { number: !0 },
|
|
27554
27557
|
outlined: "",
|
|
27555
27558
|
dense: "",
|
|
@@ -27565,12 +27568,12 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27565
27568
|
dense: "",
|
|
27566
27569
|
label: F.$t("Add"),
|
|
27567
27570
|
color: "positive",
|
|
27568
|
-
onClick: (Q) =>
|
|
27571
|
+
onClick: (Q) => X.row.quantity++ && T(X.row),
|
|
27569
27572
|
disable: i.value || v.value
|
|
27570
27573
|
}, null, 8, ["label", "onClick", "disable"])
|
|
27571
27574
|
]),
|
|
27572
|
-
|
|
27573
|
-
C("span", L2, V(`${
|
|
27575
|
+
X.row.availableStock ? (W(), ue("div", A2, [
|
|
27576
|
+
C("span", L2, V(`${X.row.availableStock} ${F.$t("MoreAvailable")}`), 1)
|
|
27574
27577
|
])) : Be("", !0)
|
|
27575
27578
|
])
|
|
27576
27579
|
]),
|
|
@@ -27578,15 +27581,15 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27578
27581
|
}, 1024),
|
|
27579
27582
|
A(q(Ne), { key: "cost" }, {
|
|
27580
27583
|
default: H(() => [
|
|
27581
|
-
ze(V(F.$formatCurrency(
|
|
27584
|
+
ze(V(F.$formatCurrency(X.row.cost, s.value?.currency)), 1)
|
|
27582
27585
|
]),
|
|
27583
27586
|
_: 2
|
|
27584
27587
|
}, 1024),
|
|
27585
27588
|
A(q(Ne), { key: "price" }, {
|
|
27586
27589
|
default: H(() => [
|
|
27587
27590
|
xe(A(q(Pt), {
|
|
27588
|
-
modelValue:
|
|
27589
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27591
|
+
modelValue: X.row.price,
|
|
27592
|
+
"onUpdate:modelValue": [(Q) => X.row.price = Q, (Q) => T(X.row)],
|
|
27590
27593
|
modelModifiers: { number: !0 },
|
|
27591
27594
|
outlined: "",
|
|
27592
27595
|
dense: "",
|
|
@@ -27597,7 +27600,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27597
27600
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "prefix"]), [
|
|
27598
27601
|
[Ie, v.value]
|
|
27599
27602
|
]),
|
|
27600
|
-
xe(C("span", null, V(F.$formatCurrency(
|
|
27603
|
+
xe(C("span", null, V(F.$formatCurrency(X.row.price, s.value?.currency)), 513), [
|
|
27601
27604
|
[Ie, !v.value]
|
|
27602
27605
|
])
|
|
27603
27606
|
]),
|
|
@@ -27606,8 +27609,8 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27606
27609
|
A(q(Ne), { key: "margin" }, {
|
|
27607
27610
|
default: H(() => [
|
|
27608
27611
|
xe(A(q(Pt), {
|
|
27609
|
-
modelValue:
|
|
27610
|
-
"onUpdate:modelValue": [(Q) =>
|
|
27612
|
+
modelValue: X.row.margin,
|
|
27613
|
+
"onUpdate:modelValue": [(Q) => X.row.margin = Q, (Q) => M(X.row)],
|
|
27611
27614
|
modelModifiers: { number: !0 },
|
|
27612
27615
|
outlined: "",
|
|
27613
27616
|
dense: "",
|
|
@@ -27618,7 +27621,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27618
27621
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]), [
|
|
27619
27622
|
[Ie, v.value]
|
|
27620
27623
|
]),
|
|
27621
|
-
xe(C("span", null, V(
|
|
27624
|
+
xe(C("span", null, V(X.row.margin != null ? `${X.row.margin?.toFixed(2)}%` : F.$t("n/a")), 513), [
|
|
27622
27625
|
[Ie, !v.value]
|
|
27623
27626
|
])
|
|
27624
27627
|
]),
|
|
@@ -27626,13 +27629,13 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27626
27629
|
}, 1024),
|
|
27627
27630
|
A(q(Ne), { key: "totalCost" }, {
|
|
27628
27631
|
default: H(() => [
|
|
27629
|
-
ze(V(F.$formatCurrency(
|
|
27632
|
+
ze(V(F.$formatCurrency(X.row.totalCost, s.value?.currency)), 1)
|
|
27630
27633
|
]),
|
|
27631
27634
|
_: 2
|
|
27632
27635
|
}, 1024),
|
|
27633
27636
|
A(q(Ne), { key: "totalPrice" }, {
|
|
27634
27637
|
default: H(() => [
|
|
27635
|
-
ze(V(F.$formatCurrency(
|
|
27638
|
+
ze(V(F.$formatCurrency(X.row.totalPrice, s.value?.currency)), 1)
|
|
27636
27639
|
]),
|
|
27637
27640
|
_: 2
|
|
27638
27641
|
}, 1024)
|
|
@@ -27643,7 +27646,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27643
27646
|
_: 1
|
|
27644
27647
|
}, 8, ["loading", "title", "rows", "rows-per-page-options"])
|
|
27645
27648
|
], 512), [
|
|
27646
|
-
[Ie, s.value && s.value?.lines.filter((
|
|
27649
|
+
[Ie, s.value && s.value?.lines.filter((X) => !X.isMainSubscription).length > 0]
|
|
27647
27650
|
])
|
|
27648
27651
|
]),
|
|
27649
27652
|
_: 1
|
|
@@ -27659,7 +27662,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27659
27662
|
loading: n.value,
|
|
27660
27663
|
color: "negative",
|
|
27661
27664
|
label: F.$t("CancelSubscription"),
|
|
27662
|
-
onClick:
|
|
27665
|
+
onClick: B
|
|
27663
27666
|
}, null, 8, ["disable", "loading", "label"])) : Be("", !0)
|
|
27664
27667
|
]),
|
|
27665
27668
|
C("div", D2, [
|
|
@@ -27674,7 +27677,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27674
27677
|
xe(A(q(Fe), {
|
|
27675
27678
|
color: "warning",
|
|
27676
27679
|
label: F.$t("Cancel"),
|
|
27677
|
-
onClick:
|
|
27680
|
+
onClick: U
|
|
27678
27681
|
}, null, 8, ["label"]), [
|
|
27679
27682
|
[Ie, v.value]
|
|
27680
27683
|
]),
|
|
@@ -27682,7 +27685,7 @@ const y2 = { class: "q-ma-sm" }, b2 = { class: "row" }, _2 = { class: "text-h5 c
|
|
|
27682
27685
|
class: "q-ml-sm",
|
|
27683
27686
|
color: "primary",
|
|
27684
27687
|
label: F.$t("Apply"),
|
|
27685
|
-
onClick:
|
|
27688
|
+
onClick: J
|
|
27686
27689
|
}, null, 8, ["label"]), [
|
|
27687
27690
|
[Ie, v.value]
|
|
27688
27691
|
])
|