@quickflo/quickforms-quasar 1.7.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/QuasarOneOfField.vue.d.ts.map +1 -1
- package/dist/index.js +1087 -1079
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -122,8 +122,8 @@ const va = "0 0 24 24", ml = (e) => e, hl = (e) => `ionicons ${e}`, io = {
|
|
|
122
122
|
svg: !0,
|
|
123
123
|
viewBox: v,
|
|
124
124
|
nodes: s.split("&&").map((b) => {
|
|
125
|
-
const [g,
|
|
126
|
-
return m("path", { style:
|
|
125
|
+
const [g, S, q] = b.split("@@");
|
|
126
|
+
return m("path", { style: S, d: g, transform: q });
|
|
127
127
|
})
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -476,7 +476,7 @@ const Jr = [!0, !1, "ondemand"], $r = {
|
|
|
476
476
|
};
|
|
477
477
|
function ei(e, n) {
|
|
478
478
|
const { props: l, proxy: t } = Te(), a = N(!1), o = N(null), i = N(!1);
|
|
479
|
-
Zr({ validate:
|
|
479
|
+
Zr({ validate: q, resetValidation: S });
|
|
480
480
|
let r = 0, c;
|
|
481
481
|
const d = u(
|
|
482
482
|
() => l.rules !== void 0 && l.rules !== null && l.rules.length !== 0
|
|
@@ -489,50 +489,50 @@ function ei(e, n) {
|
|
|
489
489
|
function g() {
|
|
490
490
|
l.lazyRules !== "ondemand" && s.value === !0 && i.value === !0 && y();
|
|
491
491
|
}
|
|
492
|
-
ue(() => l.reactiveRules, (
|
|
493
|
-
|
|
494
|
-
}, { immediate: !0 }), ue(() => l.lazyRules, g), ue(e, (
|
|
495
|
-
|
|
492
|
+
ue(() => l.reactiveRules, (B) => {
|
|
493
|
+
B === !0 ? c === void 0 && (c = ue(() => l.rules, g, { immediate: !0, deep: !0 })) : c !== void 0 && (c(), c = void 0);
|
|
494
|
+
}, { immediate: !0 }), ue(() => l.lazyRules, g), ue(e, (B) => {
|
|
495
|
+
B === !0 ? i.value = !0 : s.value === !0 && l.lazyRules !== "ondemand" && y();
|
|
496
496
|
});
|
|
497
|
-
function
|
|
497
|
+
function S() {
|
|
498
498
|
r++, n.value = !1, i.value = !1, a.value = !1, o.value = null, y.cancel();
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function q(B = l.modelValue) {
|
|
501
501
|
if (l.disable === !0 || d.value === !1)
|
|
502
502
|
return !0;
|
|
503
503
|
const P = ++r, p = n.value !== !0 ? () => {
|
|
504
504
|
i.value = !0;
|
|
505
505
|
} : () => {
|
|
506
|
-
}, w = (
|
|
507
|
-
|
|
508
|
-
},
|
|
509
|
-
for (let
|
|
510
|
-
const
|
|
511
|
-
let
|
|
512
|
-
if (typeof
|
|
513
|
-
return w(!0,
|
|
514
|
-
|
|
515
|
-
}
|
|
516
|
-
return
|
|
517
|
-
(
|
|
518
|
-
if (
|
|
506
|
+
}, w = (z, O) => {
|
|
507
|
+
z === !0 && p(), a.value = z, o.value = O || null, n.value = !1;
|
|
508
|
+
}, V = [];
|
|
509
|
+
for (let z = 0; z < l.rules.length; z++) {
|
|
510
|
+
const O = l.rules[z];
|
|
511
|
+
let T;
|
|
512
|
+
if (typeof O == "function" ? T = O(B, yl) : typeof O == "string" && yl[O] !== void 0 && (T = yl[O](B)), T === !1 || typeof T == "string")
|
|
513
|
+
return w(!0, T), !1;
|
|
514
|
+
T !== !0 && T !== void 0 && V.push(T);
|
|
515
|
+
}
|
|
516
|
+
return V.length === 0 ? (w(!1), !0) : (n.value = !0, Promise.all(V).then(
|
|
517
|
+
(z) => {
|
|
518
|
+
if (z === void 0 || Array.isArray(z) === !1 || z.length === 0)
|
|
519
519
|
return P === r && w(!1), !0;
|
|
520
|
-
const
|
|
521
|
-
return P === r && w(
|
|
520
|
+
const O = z.find((T) => T === !1 || typeof T == "string");
|
|
521
|
+
return P === r && w(O !== void 0, O), O === void 0;
|
|
522
522
|
},
|
|
523
|
-
(
|
|
523
|
+
(z) => (P === r && (console.error(z), w(!0)), !1)
|
|
524
524
|
));
|
|
525
525
|
}
|
|
526
|
-
const y = ho(
|
|
526
|
+
const y = ho(q, 0);
|
|
527
527
|
return Ye(() => {
|
|
528
528
|
c == null || c(), y.cancel();
|
|
529
|
-
}), Object.assign(t, { resetValidation:
|
|
529
|
+
}), Object.assign(t, { resetValidation: S, validate: q }), _n(t, "hasError", () => v.value), {
|
|
530
530
|
isDirtyModel: i,
|
|
531
531
|
hasRules: d,
|
|
532
532
|
hasError: v,
|
|
533
533
|
errorMessage: b,
|
|
534
|
-
validate:
|
|
535
|
-
resetValidation:
|
|
534
|
+
validate: q,
|
|
535
|
+
resetValidation: S
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
const Je = {
|
|
@@ -711,13 +711,13 @@ function Ul(e) {
|
|
|
711
711
|
e.hasValue === void 0 && (e.hasValue = u(() => On(n.modelValue))), e.emitValue === void 0 && (e.emitValue = (D) => {
|
|
712
712
|
l("update:modelValue", D);
|
|
713
713
|
}), e.controlEvents === void 0 && (e.controlEvents = {
|
|
714
|
-
onFocusin:
|
|
715
|
-
onFocusout:
|
|
714
|
+
onFocusin: H,
|
|
715
|
+
onFocusout: M
|
|
716
716
|
}), Object.assign(e, {
|
|
717
|
-
clearValue:
|
|
718
|
-
onControlFocusin:
|
|
719
|
-
onControlFocusout:
|
|
720
|
-
focus:
|
|
717
|
+
clearValue: x,
|
|
718
|
+
onControlFocusin: H,
|
|
719
|
+
onControlFocusout: M,
|
|
720
|
+
focus: O
|
|
721
721
|
}), e.computedCounter === void 0 && (e.computedCounter = u(() => {
|
|
722
722
|
if (n.counter !== !1) {
|
|
723
723
|
const D = typeof n.modelValue == "string" || typeof n.modelValue == "number" ? ("" + n.modelValue).length : Array.isArray(n.modelValue) === !0 ? n.modelValue.length : 0, Z = n.maxlength !== void 0 ? n.maxlength : n.maxValues;
|
|
@@ -730,11 +730,11 @@ function Ul(e) {
|
|
|
730
730
|
hasError: s,
|
|
731
731
|
errorMessage: v,
|
|
732
732
|
resetValidation: b
|
|
733
|
-
} = ei(e.focused, e.innerLoading), g = e.floatingLabel !== void 0 ? u(() => n.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : u(() => n.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0),
|
|
733
|
+
} = ei(e.focused, e.innerLoading), g = e.floatingLabel !== void 0 ? u(() => n.stackLabel === !0 || e.focused.value === !0 || e.floatingLabel.value === !0) : u(() => n.stackLabel === !0 || e.focused.value === !0 || e.hasValue.value === !0), S = u(
|
|
734
734
|
() => n.bottomSlots === !0 || n.hint !== void 0 || d.value === !0 || n.counter === !0 || n.error !== null
|
|
735
|
-
),
|
|
736
|
-
() => `q-field row no-wrap items-start q-field--${
|
|
737
|
-
),
|
|
735
|
+
), q = u(() => n.filled === !0 ? "filled" : n.outlined === !0 ? "outlined" : n.borderless === !0 ? "borderless" : n.standout ? "standout" : "standard"), y = u(
|
|
736
|
+
() => `q-field row no-wrap items-start q-field--${q.value}` + (e.fieldClass !== void 0 ? ` ${e.fieldClass.value}` : "") + (n.rounded === !0 ? " q-field--rounded" : "") + (n.square === !0 ? " q-field--square" : "") + (g.value === !0 ? " q-field--float" : "") + (P.value === !0 ? " q-field--labeled" : "") + (n.dense === !0 ? " q-field--dense" : "") + (n.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" : "") + (n.hideBottomSpace !== !0 && S.value === !0 ? " q-field--with-bottom" : "") + (n.disable === !0 ? " q-field--disabled" : n.readonly === !0 ? " q-field--readonly" : "")
|
|
737
|
+
), B = u(
|
|
738
738
|
() => "q-field__control relative-position row no-wrap" + (n.bgColor !== void 0 ? ` bg-${n.bgColor}` : "") + (s.value === !0 ? " text-negative" : typeof n.standout == "string" && n.standout.length !== 0 && e.focused.value === !0 ? ` ${n.standout}` : n.color !== void 0 ? ` text-${n.color}` : "")
|
|
739
739
|
), P = u(
|
|
740
740
|
() => n.labelSlot === !0 || n.label !== void 0
|
|
@@ -747,41 +747,41 @@ function Ul(e) {
|
|
|
747
747
|
floatingLabel: g.value,
|
|
748
748
|
modelValue: n.modelValue,
|
|
749
749
|
emitValue: e.emitValue
|
|
750
|
-
})),
|
|
750
|
+
})), V = u(() => {
|
|
751
751
|
const D = {};
|
|
752
752
|
return e.targetUid.value && (D.for = e.targetUid.value), n.disable === !0 && (D["aria-disabled"] = "true"), D;
|
|
753
753
|
});
|
|
754
|
-
function
|
|
754
|
+
function z() {
|
|
755
755
|
var be;
|
|
756
756
|
const D = document.activeElement;
|
|
757
757
|
let Z = (be = e.targetRef) == null ? void 0 : be.value;
|
|
758
758
|
Z && (D === null || D.id !== e.targetUid.value) && (Z.hasAttribute("tabindex") === !0 || (Z = Z.querySelector("[tabindex]")), Z !== D && (Z == null || Z.focus({ preventScroll: !0 })));
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
al(
|
|
760
|
+
function O() {
|
|
761
|
+
al(z);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
ai(
|
|
763
|
+
function T() {
|
|
764
|
+
ai(z);
|
|
765
765
|
const D = document.activeElement;
|
|
766
766
|
D !== null && e.rootRef.value.contains(D) && D.blur();
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function H(D) {
|
|
769
769
|
r !== null && (clearTimeout(r), r = null), e.editable.value === !0 && e.focused.value === !1 && (e.focused.value = !0, l("focus", D));
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function M(D, Z) {
|
|
772
772
|
r !== null && clearTimeout(r), r = setTimeout(() => {
|
|
773
773
|
r = null, !(document.hasFocus() === !0 && (e.hasPopupOpen === !0 || e.controlRef === void 0 || e.controlRef.value === null || e.controlRef.value.contains(document.activeElement) !== !1)) && (e.focused.value === !0 && (e.focused.value = !1, l("blur", D)), Z == null || Z());
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function x(D) {
|
|
777
777
|
var Z;
|
|
778
778
|
Qe(D), i.platform.is.mobile !== !0 ? (((Z = e.targetRef) == null ? void 0 : Z.value) || e.rootRef.value).focus() : e.rootRef.value.contains(document.activeElement) === !0 && document.activeElement.blur(), n.type === "file" && (e.inputRef.value.value = null), l("update:modelValue", null), e.changeEvent === !0 && l("change", null), l("clear", n.modelValue), Re(() => {
|
|
779
779
|
const be = c.value;
|
|
780
780
|
b(), c.value = be;
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
[13, 32].includes(D.keyCode) &&
|
|
783
|
+
function E(D) {
|
|
784
|
+
[13, 32].includes(D.keyCode) && x(D);
|
|
785
785
|
}
|
|
786
786
|
function A() {
|
|
787
787
|
const D = [];
|
|
@@ -813,8 +813,8 @@ function Ul(e) {
|
|
|
813
813
|
role: "button",
|
|
814
814
|
"aria-hidden": "false",
|
|
815
815
|
"aria-label": i.lang.label.clear,
|
|
816
|
-
onKeyup:
|
|
817
|
-
onClick:
|
|
816
|
+
onKeyup: E,
|
|
817
|
+
onClick: x
|
|
818
818
|
})
|
|
819
819
|
])
|
|
820
820
|
), t.append !== void 0 && D.push(
|
|
@@ -855,7 +855,7 @@ function Ul(e) {
|
|
|
855
855
|
}, n.suffix)
|
|
856
856
|
), D.concat(et(t.default));
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function j() {
|
|
859
859
|
let D, Z;
|
|
860
860
|
s.value === !0 ? v.value !== null ? (D = [m("div", { role: "alert" }, v.value)], Z = `q--slot-error-${v.value}`) : (D = et(t.error), Z = "q--slot-error") : (n.hideHint !== !0 || e.focused.value === !0) && (n.hint !== void 0 ? (D = [m("div", n.hint)], Z = `q--slot-hint-${n.hint}`) : (D = et(t.hint), Z = "q--slot-hint"));
|
|
861
861
|
const be = n.counter === !0 || t.counter !== void 0;
|
|
@@ -889,12 +889,12 @@ function Ul(e) {
|
|
|
889
889
|
o.focus();
|
|
890
890
|
}), Ye(() => {
|
|
891
891
|
r !== null && clearTimeout(r);
|
|
892
|
-
}), Object.assign(o, { focus:
|
|
892
|
+
}), Object.assign(o, { focus: O, blur: T }), function() {
|
|
893
893
|
const Z = e.getControl === void 0 && t.control === void 0 ? {
|
|
894
894
|
...e.splitAttrs.attributes.value,
|
|
895
895
|
"data-autofocus": n.autofocus === !0 || void 0,
|
|
896
|
-
...
|
|
897
|
-
} :
|
|
896
|
+
...V.value
|
|
897
|
+
} : V.value;
|
|
898
898
|
return m(e.tag.value, {
|
|
899
899
|
ref: e.rootRef,
|
|
900
900
|
class: [
|
|
@@ -913,11 +913,11 @@ function Ul(e) {
|
|
|
913
913
|
}, [
|
|
914
914
|
m("div", {
|
|
915
915
|
ref: e.controlRef,
|
|
916
|
-
class:
|
|
916
|
+
class: B.value,
|
|
917
917
|
tabindex: -1,
|
|
918
918
|
...e.controlEvents
|
|
919
919
|
}, A()),
|
|
920
|
-
|
|
920
|
+
S.value === !0 ? j() : null
|
|
921
921
|
]),
|
|
922
922
|
t.after !== void 0 ? m("div", {
|
|
923
923
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
@@ -976,114 +976,114 @@ function si(e, n, l, t) {
|
|
|
976
976
|
tokenMap: qa,
|
|
977
977
|
tokenRegexMask: ii
|
|
978
978
|
};
|
|
979
|
-
const { tokenMap:
|
|
979
|
+
const { tokenMap: M } = bo(e.maskTokens), x = {
|
|
980
980
|
...qa,
|
|
981
|
-
...
|
|
981
|
+
...M
|
|
982
982
|
};
|
|
983
983
|
return {
|
|
984
|
-
tokenMap:
|
|
985
|
-
tokenRegexMask: yo(Object.keys(
|
|
984
|
+
tokenMap: x,
|
|
985
|
+
tokenRegexMask: yo(Object.keys(x))
|
|
986
986
|
};
|
|
987
|
-
}), v = N(null), b = N(
|
|
987
|
+
}), v = N(null), b = N(S());
|
|
988
988
|
function g() {
|
|
989
989
|
return e.autogrow === !0 || ["textarea", "text", "search", "url", "tel", "password"].includes(e.type);
|
|
990
990
|
}
|
|
991
|
-
ue(() => e.type + e.autogrow, y), ue(() => e.mask, (
|
|
992
|
-
if (
|
|
993
|
-
|
|
991
|
+
ue(() => e.type + e.autogrow, y), ue(() => e.mask, (M) => {
|
|
992
|
+
if (M !== void 0)
|
|
993
|
+
B(b.value, !0);
|
|
994
994
|
else {
|
|
995
|
-
const
|
|
996
|
-
y(), e.modelValue !==
|
|
995
|
+
const x = T(b.value);
|
|
996
|
+
y(), e.modelValue !== x && n("update:modelValue", x);
|
|
997
997
|
}
|
|
998
998
|
}), ue(() => e.fillMask + e.reverseFillMask, () => {
|
|
999
|
-
v.value === !0 &&
|
|
999
|
+
v.value === !0 && B(b.value, !0);
|
|
1000
1000
|
}), ue(() => e.unmaskedValue, () => {
|
|
1001
|
-
v.value === !0 &&
|
|
1001
|
+
v.value === !0 && B(b.value);
|
|
1002
1002
|
});
|
|
1003
|
-
function
|
|
1003
|
+
function S() {
|
|
1004
1004
|
if (y(), v.value === !0) {
|
|
1005
|
-
const
|
|
1006
|
-
return e.fillMask !== !1 ?
|
|
1005
|
+
const M = z(T(e.modelValue));
|
|
1006
|
+
return e.fillMask !== !1 ? H(M) : M;
|
|
1007
1007
|
}
|
|
1008
1008
|
return e.modelValue;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
if (
|
|
1012
|
-
return a.slice(-
|
|
1013
|
-
let
|
|
1014
|
-
const A =
|
|
1010
|
+
function q(M) {
|
|
1011
|
+
if (M < a.length)
|
|
1012
|
+
return a.slice(-M);
|
|
1013
|
+
let x = "", E = a;
|
|
1014
|
+
const A = E.indexOf(Ge);
|
|
1015
1015
|
if (A !== -1) {
|
|
1016
|
-
for (let F =
|
|
1017
|
-
|
|
1018
|
-
|
|
1016
|
+
for (let F = M - E.length; F > 0; F--)
|
|
1017
|
+
x += Ge;
|
|
1018
|
+
E = E.slice(0, A) + x + E.slice(A);
|
|
1019
1019
|
}
|
|
1020
|
-
return
|
|
1020
|
+
return E;
|
|
1021
1021
|
}
|
|
1022
1022
|
function y() {
|
|
1023
1023
|
if (v.value = e.mask !== void 0 && e.mask.length !== 0 && g(), v.value === !1) {
|
|
1024
1024
|
r = void 0, a = "", o = "";
|
|
1025
1025
|
return;
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1027
|
+
const M = Sa[e.mask] === void 0 ? e.mask : Sa[e.mask], x = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", E = x.replace(xa, "\\$&"), A = [], F = [], j = [];
|
|
1028
1028
|
let G = e.reverseFillMask === !0, R = "", D = "";
|
|
1029
|
-
|
|
1029
|
+
M.replace(s.value.tokenRegexMask, (k, Y, W, ne, te) => {
|
|
1030
1030
|
if (ne !== void 0) {
|
|
1031
1031
|
const $ = s.value.tokenMap[ne];
|
|
1032
|
-
|
|
1032
|
+
j.push($), D = $.negate, G === !0 && (F.push("(?:" + D + "+)?(" + $.pattern + "+)?(?:" + D + "+)?(" + $.pattern + "+)?"), G = !1), F.push("(?:" + D + "+)?(" + $.pattern + ")?");
|
|
1033
1033
|
} else if (W !== void 0)
|
|
1034
|
-
R = "\\" + (W === "\\" ? "" : W),
|
|
1034
|
+
R = "\\" + (W === "\\" ? "" : W), j.push(W), A.push("([^" + R + "]+)?" + R + "?");
|
|
1035
1035
|
else {
|
|
1036
1036
|
const $ = Y !== void 0 ? Y : te;
|
|
1037
|
-
R = $ === "\\" ? "\\\\\\\\" : $.replace(xa, "\\\\$&"),
|
|
1037
|
+
R = $ === "\\" ? "\\\\\\\\" : $.replace(xa, "\\\\$&"), j.push($), A.push("([^" + R + "]+)?" + R + "?");
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
const Z = new RegExp(
|
|
1041
1041
|
"^" + A.join("") + "(" + (R === "" ? "." : "[^" + R + "]") + "+)?" + (R === "" ? "" : "[" + R + "]*") + "$"
|
|
1042
|
-
), be = F.length - 1, C = F.map((
|
|
1043
|
-
"^" +
|
|
1044
|
-
) : new RegExp("^" +
|
|
1045
|
-
i =
|
|
1046
|
-
const Y = Z.exec(e.reverseFillMask === !0 ?
|
|
1047
|
-
Y !== null && (
|
|
1042
|
+
), be = F.length - 1, C = F.map((k, Y) => Y === 0 && e.reverseFillMask === !0 ? new RegExp("^" + E + "*" + k) : Y === be ? new RegExp(
|
|
1043
|
+
"^" + k + "(" + (D === "" ? "." : D) + "+)?" + (e.reverseFillMask === !0 ? "$" : E + "*")
|
|
1044
|
+
) : new RegExp("^" + k));
|
|
1045
|
+
i = j, r = (k) => {
|
|
1046
|
+
const Y = Z.exec(e.reverseFillMask === !0 ? k : k.slice(0, j.length + 1));
|
|
1047
|
+
Y !== null && (k = Y.slice(1).join(""));
|
|
1048
1048
|
const W = [], ne = C.length;
|
|
1049
|
-
for (let te = 0, $ =
|
|
1049
|
+
for (let te = 0, $ = k; te < ne; te++) {
|
|
1050
1050
|
const ke = C[te].exec($);
|
|
1051
1051
|
if (ke === null)
|
|
1052
1052
|
break;
|
|
1053
1053
|
$ = $.slice(ke.shift().length), W.push(...ke);
|
|
1054
1054
|
}
|
|
1055
|
-
return W.length !== 0 ? W.join("") :
|
|
1056
|
-
}, a =
|
|
1055
|
+
return W.length !== 0 ? W.join("") : k;
|
|
1056
|
+
}, a = j.map((k) => typeof k == "string" ? k : Ge).join(""), o = a.split(Ge).join(x);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const A = t.value, F = A.selectionEnd,
|
|
1060
|
-
|
|
1061
|
-
const R =
|
|
1058
|
+
function B(M, x, E) {
|
|
1059
|
+
const A = t.value, F = A.selectionEnd, j = A.value.length - F, G = T(M);
|
|
1060
|
+
x === !0 && y();
|
|
1061
|
+
const R = z(G, x), D = e.fillMask !== !1 ? H(R) : R, Z = b.value !== D;
|
|
1062
1062
|
A.value !== D && (A.value = D), Z === !0 && (b.value = D), document.activeElement === A && Re(() => {
|
|
1063
1063
|
if (D === o) {
|
|
1064
1064
|
const C = e.reverseFillMask === !0 ? o.length : 0;
|
|
1065
1065
|
A.setSelectionRange(C, C, "forward");
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
|
-
if (
|
|
1068
|
+
if (E === "insertFromPaste" && e.reverseFillMask !== !0) {
|
|
1069
1069
|
const C = A.selectionEnd;
|
|
1070
|
-
let
|
|
1071
|
-
for (let Y = c; Y <=
|
|
1072
|
-
a[Y] !== Ge &&
|
|
1073
|
-
p.right(A,
|
|
1070
|
+
let k = F - 1;
|
|
1071
|
+
for (let Y = c; Y <= k && Y < C; Y++)
|
|
1072
|
+
a[Y] !== Ge && k++;
|
|
1073
|
+
p.right(A, k);
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
|
-
if (["deleteContentBackward", "deleteContentForward"].indexOf(
|
|
1077
|
-
const C = e.reverseFillMask === !0 ? F === 0 ? D.length > R.length ? 1 : 0 : Math.max(0, D.length - (D === o ? 0 : Math.min(R.length,
|
|
1076
|
+
if (["deleteContentBackward", "deleteContentForward"].indexOf(E) !== -1) {
|
|
1077
|
+
const C = e.reverseFillMask === !0 ? F === 0 ? D.length > R.length ? 1 : 0 : Math.max(0, D.length - (D === o ? 0 : Math.min(R.length, j) + 1)) + 1 : F;
|
|
1078
1078
|
A.setSelectionRange(C, C, "forward");
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
1081
|
if (e.reverseFillMask === !0)
|
|
1082
1082
|
if (Z === !0) {
|
|
1083
|
-
const C = Math.max(0, D.length - (D === o ? 0 : Math.min(R.length,
|
|
1083
|
+
const C = Math.max(0, D.length - (D === o ? 0 : Math.min(R.length, j + 1)));
|
|
1084
1084
|
C === 1 && F === 1 ? A.setSelectionRange(C, C, "forward") : p.rightReverse(A, C);
|
|
1085
1085
|
} else {
|
|
1086
|
-
const C = D.length -
|
|
1086
|
+
const C = D.length - j;
|
|
1087
1087
|
A.setSelectionRange(C, C, "backward");
|
|
1088
1088
|
}
|
|
1089
1089
|
else if (Z === !0) {
|
|
@@ -1094,90 +1094,90 @@ function si(e, n, l, t) {
|
|
|
1094
1094
|
p.right(A, C);
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
|
-
const be = e.unmaskedValue === !0 ?
|
|
1097
|
+
const be = e.unmaskedValue === !0 ? T(D) : D;
|
|
1098
1098
|
String(e.modelValue) !== be && (e.modelValue !== null || be !== "") && l(be, !0);
|
|
1099
1099
|
}
|
|
1100
|
-
function P(
|
|
1101
|
-
const A =
|
|
1102
|
-
|
|
1100
|
+
function P(M, x, E) {
|
|
1101
|
+
const A = z(T(M.value));
|
|
1102
|
+
x = Math.max(0, a.indexOf(Ge), Math.min(A.length, x)), c = x, M.setSelectionRange(x, E, "forward");
|
|
1103
1103
|
}
|
|
1104
1104
|
const p = {
|
|
1105
|
-
left(
|
|
1106
|
-
const
|
|
1107
|
-
let A = Math.max(0,
|
|
1105
|
+
left(M, x) {
|
|
1106
|
+
const E = a.slice(x - 1).indexOf(Ge) === -1;
|
|
1107
|
+
let A = Math.max(0, x - 1);
|
|
1108
1108
|
for (; A >= 0; A--)
|
|
1109
1109
|
if (a[A] === Ge) {
|
|
1110
|
-
|
|
1110
|
+
x = A, E === !0 && x++;
|
|
1111
1111
|
break;
|
|
1112
1112
|
}
|
|
1113
|
-
if (A < 0 && a[
|
|
1114
|
-
return p.right(
|
|
1115
|
-
|
|
1113
|
+
if (A < 0 && a[x] !== void 0 && a[x] !== Ge)
|
|
1114
|
+
return p.right(M, 0);
|
|
1115
|
+
x >= 0 && M.setSelectionRange(x, x, "backward");
|
|
1116
1116
|
},
|
|
1117
|
-
right(
|
|
1118
|
-
const
|
|
1119
|
-
let A = Math.min(
|
|
1120
|
-
for (; A <=
|
|
1117
|
+
right(M, x) {
|
|
1118
|
+
const E = M.value.length;
|
|
1119
|
+
let A = Math.min(E, x + 1);
|
|
1120
|
+
for (; A <= E; A++)
|
|
1121
1121
|
if (a[A] === Ge) {
|
|
1122
|
-
|
|
1122
|
+
x = A;
|
|
1123
1123
|
break;
|
|
1124
|
-
} else a[A - 1] === Ge && (
|
|
1125
|
-
if (A >
|
|
1126
|
-
return p.left(
|
|
1127
|
-
|
|
1124
|
+
} else a[A - 1] === Ge && (x = A);
|
|
1125
|
+
if (A > E && a[x - 1] !== void 0 && a[x - 1] !== Ge)
|
|
1126
|
+
return p.left(M, E);
|
|
1127
|
+
M.setSelectionRange(x, x, "forward");
|
|
1128
1128
|
},
|
|
1129
|
-
leftReverse(
|
|
1130
|
-
const
|
|
1131
|
-
let A = Math.max(0,
|
|
1129
|
+
leftReverse(M, x) {
|
|
1130
|
+
const E = q(M.value.length);
|
|
1131
|
+
let A = Math.max(0, x - 1);
|
|
1132
1132
|
for (; A >= 0; A--)
|
|
1133
|
-
if (
|
|
1134
|
-
|
|
1133
|
+
if (E[A - 1] === Ge) {
|
|
1134
|
+
x = A;
|
|
1135
1135
|
break;
|
|
1136
|
-
} else if (
|
|
1136
|
+
} else if (E[A] === Ge && (x = A, A === 0))
|
|
1137
1137
|
break;
|
|
1138
|
-
if (A < 0 &&
|
|
1139
|
-
return p.rightReverse(
|
|
1140
|
-
|
|
1138
|
+
if (A < 0 && E[x] !== void 0 && E[x] !== Ge)
|
|
1139
|
+
return p.rightReverse(M, 0);
|
|
1140
|
+
x >= 0 && M.setSelectionRange(x, x, "backward");
|
|
1141
1141
|
},
|
|
1142
|
-
rightReverse(
|
|
1143
|
-
const
|
|
1144
|
-
let
|
|
1145
|
-
for (;
|
|
1146
|
-
if (A[
|
|
1147
|
-
|
|
1142
|
+
rightReverse(M, x) {
|
|
1143
|
+
const E = M.value.length, A = q(E), F = A.slice(0, x + 1).indexOf(Ge) === -1;
|
|
1144
|
+
let j = Math.min(E, x + 1);
|
|
1145
|
+
for (; j <= E; j++)
|
|
1146
|
+
if (A[j - 1] === Ge) {
|
|
1147
|
+
x = j, x > 0 && F === !0 && x--;
|
|
1148
1148
|
break;
|
|
1149
1149
|
}
|
|
1150
|
-
if (
|
|
1151
|
-
return p.leftReverse(
|
|
1152
|
-
|
|
1150
|
+
if (j > E && A[x - 1] !== void 0 && A[x - 1] !== Ge)
|
|
1151
|
+
return p.leftReverse(M, E);
|
|
1152
|
+
M.setSelectionRange(x, x, "forward");
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
function w(
|
|
1156
|
-
n("click",
|
|
1157
|
-
}
|
|
1158
|
-
function
|
|
1159
|
-
if (n("keydown",
|
|
1160
|
-
const
|
|
1161
|
-
if (
|
|
1162
|
-
|
|
1163
|
-
const F = p[(
|
|
1164
|
-
if (
|
|
1165
|
-
const
|
|
1166
|
-
|
|
1155
|
+
function w(M) {
|
|
1156
|
+
n("click", M), d = void 0;
|
|
1157
|
+
}
|
|
1158
|
+
function V(M) {
|
|
1159
|
+
if (n("keydown", M), rl(M) === !0 || M.altKey === !0) return;
|
|
1160
|
+
const x = t.value, E = x.selectionStart, A = x.selectionEnd;
|
|
1161
|
+
if (M.shiftKey || (d = void 0), M.keyCode === 37 || M.keyCode === 39) {
|
|
1162
|
+
M.shiftKey && d === void 0 && (d = x.selectionDirection === "forward" ? E : A);
|
|
1163
|
+
const F = p[(M.keyCode === 39 ? "right" : "left") + (e.reverseFillMask === !0 ? "Reverse" : "")];
|
|
1164
|
+
if (M.preventDefault(), F(x, d === E ? A : E), M.shiftKey) {
|
|
1165
|
+
const j = x.selectionStart;
|
|
1166
|
+
x.setSelectionRange(Math.min(d, j), Math.max(d, j), "forward");
|
|
1167
1167
|
}
|
|
1168
|
-
} else
|
|
1168
|
+
} else M.keyCode === 8 && e.reverseFillMask !== !0 && E === A ? (p.left(x, E), x.setSelectionRange(x.selectionStart, A, "backward")) : M.keyCode === 46 && e.reverseFillMask === !0 && E === A && (p.rightReverse(x, A), x.setSelectionRange(E, x.selectionEnd, "forward"));
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1171
|
-
if (
|
|
1170
|
+
function z(M, x) {
|
|
1171
|
+
if (M == null || M === "")
|
|
1172
1172
|
return "";
|
|
1173
1173
|
if (e.reverseFillMask === !0)
|
|
1174
|
-
return M
|
|
1175
|
-
const
|
|
1174
|
+
return O(M, x);
|
|
1175
|
+
const E = i;
|
|
1176
1176
|
let A = 0, F = "";
|
|
1177
|
-
for (let
|
|
1178
|
-
const G =
|
|
1177
|
+
for (let j = 0; j < E.length; j++) {
|
|
1178
|
+
const G = M[A], R = E[j];
|
|
1179
1179
|
if (typeof R == "string")
|
|
1180
|
-
F += R,
|
|
1180
|
+
F += R, x === !0 && G === R && A++;
|
|
1181
1181
|
else if (G !== void 0 && R.regex.test(G))
|
|
1182
1182
|
F += R.transform !== void 0 ? R.transform(G) : G, A++;
|
|
1183
1183
|
else
|
|
@@ -1185,35 +1185,35 @@ function si(e, n, l, t) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
return F;
|
|
1187
1187
|
}
|
|
1188
|
-
function M
|
|
1189
|
-
const
|
|
1190
|
-
let F =
|
|
1191
|
-
for (let G =
|
|
1192
|
-
const R =
|
|
1193
|
-
let D =
|
|
1188
|
+
function O(M, x) {
|
|
1189
|
+
const E = i, A = a.indexOf(Ge);
|
|
1190
|
+
let F = M.length - 1, j = "";
|
|
1191
|
+
for (let G = E.length - 1; G >= 0 && F !== -1; G--) {
|
|
1192
|
+
const R = E[G];
|
|
1193
|
+
let D = M[F];
|
|
1194
1194
|
if (typeof R == "string")
|
|
1195
|
-
|
|
1195
|
+
j = R + j, x === !0 && D === R && F--;
|
|
1196
1196
|
else if (D !== void 0 && R.regex.test(D))
|
|
1197
1197
|
do
|
|
1198
|
-
|
|
1198
|
+
j = (R.transform !== void 0 ? R.transform(D) : D) + j, F--, D = M[F];
|
|
1199
1199
|
while (A === G && D !== void 0 && R.regex.test(D));
|
|
1200
1200
|
else
|
|
1201
|
-
return
|
|
1201
|
+
return j;
|
|
1202
1202
|
}
|
|
1203
|
-
return
|
|
1203
|
+
return j;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return typeof
|
|
1205
|
+
function T(M) {
|
|
1206
|
+
return typeof M != "string" || r === void 0 ? typeof M == "number" ? r("" + M) : M : r(M);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return o.length -
|
|
1208
|
+
function H(M) {
|
|
1209
|
+
return o.length - M.length <= 0 ? M : e.reverseFillMask === !0 && M.length !== 0 ? o.slice(0, -M.length) + M : M + o.slice(M.length);
|
|
1210
1210
|
}
|
|
1211
1211
|
return {
|
|
1212
1212
|
innerValue: b,
|
|
1213
1213
|
hasMask: v,
|
|
1214
1214
|
moveCursorForPaste: P,
|
|
1215
|
-
updateMaskValue:
|
|
1216
|
-
onMaskedKeydown:
|
|
1215
|
+
updateMaskValue: B,
|
|
1216
|
+
onMaskedKeydown: V,
|
|
1217
1217
|
onMaskedClick: w
|
|
1218
1218
|
};
|
|
1219
1219
|
}
|
|
@@ -1303,20 +1303,20 @@ const ln = Be({
|
|
|
1303
1303
|
let i = NaN, r, c, d = null, s;
|
|
1304
1304
|
const v = N(null), b = wo(e), {
|
|
1305
1305
|
innerValue: g,
|
|
1306
|
-
hasMask:
|
|
1307
|
-
moveCursorForPaste:
|
|
1306
|
+
hasMask: S,
|
|
1307
|
+
moveCursorForPaste: q,
|
|
1308
1308
|
updateMaskValue: y,
|
|
1309
|
-
onMaskedKeydown:
|
|
1309
|
+
onMaskedKeydown: B,
|
|
1310
1310
|
onMaskedClick: P
|
|
1311
1311
|
} = si(e, n, G, v), p = ci(
|
|
1312
1312
|
e
|
|
1313
|
-
), w = u(() => On(g.value)),
|
|
1313
|
+
), w = u(() => On(g.value)), V = _o(F), z = Kl({ changeEvent: !0 }), O = u(
|
|
1314
1314
|
() => e.type === "textarea" || e.autogrow === !0
|
|
1315
|
-
),
|
|
1316
|
-
() =>
|
|
1317
|
-
),
|
|
1318
|
-
const
|
|
1319
|
-
...
|
|
1315
|
+
), T = u(
|
|
1316
|
+
() => O.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
|
|
1317
|
+
), H = u(() => {
|
|
1318
|
+
const k = {
|
|
1319
|
+
...z.splitAttrs.listeners.value,
|
|
1320
1320
|
onInput: F,
|
|
1321
1321
|
onPaste: A,
|
|
1322
1322
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -1327,98 +1327,98 @@ const ln = Be({
|
|
|
1327
1327
|
onBlur: Z,
|
|
1328
1328
|
onFocus: yt
|
|
1329
1329
|
};
|
|
1330
|
-
return
|
|
1331
|
-
}),
|
|
1332
|
-
const
|
|
1330
|
+
return k.onCompositionstart = k.onCompositionupdate = k.onCompositionend = V, S.value === !0 && (k.onKeydown = B, k.onClick = P), e.autogrow === !0 && (k.onAnimationend = j), k;
|
|
1331
|
+
}), M = u(() => {
|
|
1332
|
+
const k = {
|
|
1333
1333
|
tabindex: 0,
|
|
1334
1334
|
"data-autofocus": e.autofocus === !0 || void 0,
|
|
1335
1335
|
rows: e.type === "textarea" ? 6 : void 0,
|
|
1336
1336
|
"aria-label": e.label,
|
|
1337
1337
|
name: b.value,
|
|
1338
|
-
...
|
|
1339
|
-
id:
|
|
1338
|
+
...z.splitAttrs.attributes.value,
|
|
1339
|
+
id: z.targetUid.value,
|
|
1340
1340
|
maxlength: e.maxlength,
|
|
1341
1341
|
disabled: e.disable === !0,
|
|
1342
1342
|
readonly: e.readonly === !0
|
|
1343
1343
|
};
|
|
1344
|
-
return
|
|
1344
|
+
return O.value === !1 && (k.type = e.type), e.autogrow === !0 && (k.rows = 1), k;
|
|
1345
1345
|
});
|
|
1346
1346
|
ue(() => e.type, () => {
|
|
1347
1347
|
v.value && (v.value.value = e.modelValue);
|
|
1348
|
-
}), ue(() => e.modelValue, (
|
|
1349
|
-
if (
|
|
1350
|
-
if (c === !0 && (c = !1, String(
|
|
1348
|
+
}), ue(() => e.modelValue, (k) => {
|
|
1349
|
+
if (S.value === !0) {
|
|
1350
|
+
if (c === !0 && (c = !1, String(k) === i))
|
|
1351
1351
|
return;
|
|
1352
|
-
y(
|
|
1353
|
-
} else g.value !==
|
|
1352
|
+
y(k);
|
|
1353
|
+
} else g.value !== k && (g.value = k, e.type === "number" && o.hasOwnProperty("value") === !0 && (r === !0 ? r = !1 : delete o.value));
|
|
1354
1354
|
e.autogrow === !0 && Re(R);
|
|
1355
|
-
}), ue(() => e.autogrow, (
|
|
1356
|
-
|
|
1355
|
+
}), ue(() => e.autogrow, (k) => {
|
|
1356
|
+
k === !0 ? Re(R) : v.value !== null && l.rows > 0 && (v.value.style.height = "auto");
|
|
1357
1357
|
}), ue(() => e.dense, () => {
|
|
1358
1358
|
e.autogrow === !0 && Re(R);
|
|
1359
1359
|
});
|
|
1360
|
-
function
|
|
1360
|
+
function x() {
|
|
1361
1361
|
al(() => {
|
|
1362
|
-
const
|
|
1363
|
-
v.value !== null && v.value !==
|
|
1362
|
+
const k = document.activeElement;
|
|
1363
|
+
v.value !== null && v.value !== k && (k === null || k.id !== z.targetUid.value) && v.value.focus({ preventScroll: !0 });
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1367
|
-
var
|
|
1368
|
-
(
|
|
1366
|
+
function E() {
|
|
1367
|
+
var k;
|
|
1368
|
+
(k = v.value) == null || k.select();
|
|
1369
1369
|
}
|
|
1370
|
-
function A(
|
|
1371
|
-
if (
|
|
1372
|
-
const Y =
|
|
1373
|
-
|
|
1370
|
+
function A(k) {
|
|
1371
|
+
if (S.value === !0 && e.reverseFillMask !== !0) {
|
|
1372
|
+
const Y = k.target;
|
|
1373
|
+
q(Y, Y.selectionStart, Y.selectionEnd);
|
|
1374
1374
|
}
|
|
1375
|
-
n("paste",
|
|
1375
|
+
n("paste", k);
|
|
1376
1376
|
}
|
|
1377
|
-
function F(
|
|
1378
|
-
if (!
|
|
1377
|
+
function F(k) {
|
|
1378
|
+
if (!k || !k.target) return;
|
|
1379
1379
|
if (e.type === "file") {
|
|
1380
|
-
n("update:modelValue",
|
|
1380
|
+
n("update:modelValue", k.target.files);
|
|
1381
1381
|
return;
|
|
1382
1382
|
}
|
|
1383
|
-
const Y =
|
|
1384
|
-
if (
|
|
1383
|
+
const Y = k.target.value;
|
|
1384
|
+
if (k.target.qComposing === !0) {
|
|
1385
1385
|
o.value = Y;
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
|
-
if (
|
|
1389
|
-
y(Y, !1,
|
|
1390
|
-
else if (G(Y),
|
|
1391
|
-
const { selectionStart: W, selectionEnd: ne } =
|
|
1388
|
+
if (S.value === !0)
|
|
1389
|
+
y(Y, !1, k.inputType);
|
|
1390
|
+
else if (G(Y), T.value === !0 && k.target === document.activeElement) {
|
|
1391
|
+
const { selectionStart: W, selectionEnd: ne } = k.target;
|
|
1392
1392
|
W !== void 0 && ne !== void 0 && Re(() => {
|
|
1393
|
-
|
|
1393
|
+
k.target === document.activeElement && Y.indexOf(k.target.value) === 0 && k.target.setSelectionRange(W, ne);
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
1396
|
e.autogrow === !0 && R();
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
n("animationend",
|
|
1398
|
+
function j(k) {
|
|
1399
|
+
n("animationend", k), R();
|
|
1400
1400
|
}
|
|
1401
|
-
function G(
|
|
1401
|
+
function G(k, Y) {
|
|
1402
1402
|
s = () => {
|
|
1403
|
-
d = null, e.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, e.modelValue !==
|
|
1404
|
-
i ===
|
|
1403
|
+
d = null, e.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, e.modelValue !== k && i !== k && (i = k, Y === !0 && (c = !0), n("update:modelValue", k), Re(() => {
|
|
1404
|
+
i === k && (i = NaN);
|
|
1405
1405
|
})), s = void 0;
|
|
1406
|
-
}, e.type === "number" && (r = !0, o.value =
|
|
1406
|
+
}, e.type === "number" && (r = !0, o.value = k), e.debounce !== void 0 ? (d !== null && clearTimeout(d), o.value = k, d = setTimeout(s, e.debounce)) : s();
|
|
1407
1407
|
}
|
|
1408
1408
|
function R() {
|
|
1409
1409
|
requestAnimationFrame(() => {
|
|
1410
|
-
const
|
|
1411
|
-
if (
|
|
1412
|
-
const Y =
|
|
1413
|
-
$ === !0 && (
|
|
1410
|
+
const k = v.value;
|
|
1411
|
+
if (k !== null) {
|
|
1412
|
+
const Y = k.parentNode.style, { scrollTop: W } = k, { overflowY: ne, maxHeight: te } = a.platform.is.firefox === !0 ? {} : window.getComputedStyle(k), $ = ne !== void 0 && ne !== "scroll";
|
|
1413
|
+
$ === !0 && (k.style.overflowY = "hidden"), Y.marginBottom = k.scrollHeight - 1 + "px", k.style.height = "1px", k.style.height = k.scrollHeight + "px", $ === !0 && (k.style.overflowY = parseInt(te, 10) < k.scrollHeight ? "auto" : "hidden"), Y.marginBottom = "", k.scrollTop = W;
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
|
-
function D(
|
|
1418
|
-
|
|
1417
|
+
function D(k) {
|
|
1418
|
+
V(k), d !== null && (clearTimeout(d), d = null), s == null || s(), n("change", k.target.value);
|
|
1419
1419
|
}
|
|
1420
|
-
function Z(
|
|
1421
|
-
|
|
1420
|
+
function Z(k) {
|
|
1421
|
+
k !== void 0 && yt(k), d !== null && (clearTimeout(d), d = null), s == null || s(), r = !1, c = !1, delete o.value, e.type !== "file" && setTimeout(() => {
|
|
1422
1422
|
v.value !== null && (v.value.value = g.value !== void 0 ? g.value : "");
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
@@ -1429,10 +1429,10 @@ const ln = Be({
|
|
|
1429
1429
|
Z();
|
|
1430
1430
|
}), Ct(() => {
|
|
1431
1431
|
e.autogrow === !0 && R();
|
|
1432
|
-
}), Object.assign(
|
|
1432
|
+
}), Object.assign(z, {
|
|
1433
1433
|
innerValue: g,
|
|
1434
1434
|
fieldClass: u(
|
|
1435
|
-
() => `q-${
|
|
1435
|
+
() => `q-${O.value === !0 ? "textarea" : "input"}` + (e.autogrow === !0 ? " q-textarea--autogrow" : "")
|
|
1436
1436
|
),
|
|
1437
1437
|
hasShadow: u(
|
|
1438
1438
|
() => e.type !== "file" && typeof e.shadowText == "string" && e.shadowText.length !== 0
|
|
@@ -1443,28 +1443,28 @@ const ln = Be({
|
|
|
1443
1443
|
floatingLabel: u(
|
|
1444
1444
|
() => w.value === !0 && (e.type !== "number" || isNaN(g.value) === !1) || On(e.displayValue)
|
|
1445
1445
|
),
|
|
1446
|
-
getControl: () => m(
|
|
1446
|
+
getControl: () => m(O.value === !0 ? "textarea" : "input", {
|
|
1447
1447
|
ref: v,
|
|
1448
1448
|
class: [
|
|
1449
1449
|
"q-field__native q-placeholder",
|
|
1450
1450
|
e.inputClass
|
|
1451
1451
|
],
|
|
1452
1452
|
style: e.inputStyle,
|
|
1453
|
-
...
|
|
1454
|
-
...
|
|
1453
|
+
...M.value,
|
|
1454
|
+
...H.value,
|
|
1455
1455
|
...e.type !== "file" ? { value: be() } : p.value
|
|
1456
1456
|
}),
|
|
1457
1457
|
getShadowControl: () => m("div", {
|
|
1458
|
-
class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (
|
|
1458
|
+
class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (O.value === !0 ? "" : " text-no-wrap")
|
|
1459
1459
|
}, [
|
|
1460
1460
|
m("span", { class: "invisible" }, be()),
|
|
1461
1461
|
m("span", e.shadowText)
|
|
1462
1462
|
])
|
|
1463
1463
|
});
|
|
1464
|
-
const C = Ul(
|
|
1464
|
+
const C = Ul(z);
|
|
1465
1465
|
return Object.assign(t, {
|
|
1466
|
-
focus:
|
|
1467
|
-
select:
|
|
1466
|
+
focus: x,
|
|
1467
|
+
select: E,
|
|
1468
1468
|
getNativeElement: () => v.value
|
|
1469
1469
|
// deprecated
|
|
1470
1470
|
}), _n(t, "nativeEl", () => v.value), C;
|
|
@@ -1523,12 +1523,12 @@ const bi = /* @__PURE__ */ vt({
|
|
|
1523
1523
|
l.schema,
|
|
1524
1524
|
r == null ? void 0 : r.quickformsDefaults,
|
|
1525
1525
|
"input"
|
|
1526
|
-
)), v = N(!1), b = u(() => l.schema.format === "email" ? "email" : l.schema.format === "url" || l.schema.format === "uri" ? "url" : l.schema.format === "password" ? v.value ? "text" : "password" : l.schema.format === "textarea" ? "textarea" : "text"), g = u(() => l.schema.format === "textarea" || l.schema.maxLength && l.schema.maxLength > 200),
|
|
1526
|
+
)), v = N(!1), b = u(() => l.schema.format === "email" ? "email" : l.schema.format === "url" || l.schema.format === "uri" ? "url" : l.schema.format === "password" ? v.value ? "text" : "password" : l.schema.format === "textarea" ? "textarea" : "text"), g = u(() => l.schema.format === "textarea" || l.schema.maxLength && l.schema.maxLength > 200), S = u(() => l.schema.format === "password"), q = u(() => ({
|
|
1527
1527
|
color: s.value.iconColor || "grey-7",
|
|
1528
1528
|
size: s.value.iconSize || "sm"
|
|
1529
|
-
})), y = u(() => !!s.value.prependIcon),
|
|
1530
|
-
() => !
|
|
1531
|
-
), P = u(() => gt(r == null ? void 0 : r.componentDefaults)), p = { props: l, value: t, errorMessage: a, label: o, hint: i, formContext: r, fieldId: c, quasarProps: d, quickformsFeatures: s, isPasswordVisible: v, inputType: b, isTextarea: g, isPasswordField:
|
|
1529
|
+
})), y = u(() => !!s.value.prependIcon), B = u(
|
|
1530
|
+
() => !S.value && !!s.value.appendIcon
|
|
1531
|
+
), P = u(() => gt(r == null ? void 0 : r.componentDefaults)), p = { props: l, value: t, errorMessage: a, label: o, hint: i, formContext: r, fieldId: c, quasarProps: d, quickformsFeatures: s, isPasswordVisible: v, inputType: b, isTextarea: g, isPasswordField: S, iconConfig: q, showPrependIcon: y, showAppendIcon: B, fieldGap: P, get QInput() {
|
|
1532
1532
|
return ln;
|
|
1533
1533
|
}, get QIcon() {
|
|
1534
1534
|
return Xe;
|
|
@@ -1750,65 +1750,65 @@ function Mi(e, n) {
|
|
|
1750
1750
|
const { props: l, slots: t, emit: a, proxy: o } = Te(), { $q: i } = o, r = Bt(l, i), c = N(null), { refocusTargetEl: d, refocusTarget: s } = Si(l, c), v = ll(l, qi), b = u(
|
|
1751
1751
|
() => l.val !== void 0 && Array.isArray(l.modelValue)
|
|
1752
1752
|
), g = u(() => {
|
|
1753
|
-
const
|
|
1754
|
-
return b.value === !0 ? l.modelValue.findIndex((A) => rn(A) ===
|
|
1755
|
-
}),
|
|
1756
|
-
() =>
|
|
1757
|
-
),
|
|
1753
|
+
const E = rn(l.val);
|
|
1754
|
+
return b.value === !0 ? l.modelValue.findIndex((A) => rn(A) === E) : -1;
|
|
1755
|
+
}), S = u(() => b.value === !0 ? g.value !== -1 : rn(l.modelValue) === rn(l.trueValue)), q = u(() => b.value === !0 ? g.value === -1 : rn(l.modelValue) === rn(l.falseValue)), y = u(
|
|
1756
|
+
() => S.value === !1 && q.value === !1
|
|
1757
|
+
), B = u(() => l.disable === !0 ? -1 : l.tabindex || 0), P = u(
|
|
1758
1758
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (l.disable === !0 ? " disabled" : "") + (r.value === !0 ? ` q-${e}--dark` : "") + (l.dense === !0 ? ` q-${e}--dense` : "") + (l.leftLabel === !0 ? " reverse" : "")
|
|
1759
1759
|
), p = u(() => {
|
|
1760
|
-
const
|
|
1761
|
-
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${
|
|
1760
|
+
const E = S.value === !0 ? "truthy" : q.value === !0 ? "falsy" : "indet", A = l.color !== void 0 && (l.keepColor === !0 || q.value !== !0) ? ` text-${l.color}` : "";
|
|
1761
|
+
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${E}${A}`;
|
|
1762
1762
|
}), w = u(() => {
|
|
1763
|
-
const
|
|
1764
|
-
return l.name !== void 0 && Object.assign(
|
|
1763
|
+
const E = { type: "checkbox" };
|
|
1764
|
+
return l.name !== void 0 && Object.assign(E, {
|
|
1765
1765
|
// see https://vuejs.org/guide/extras/render-function.html#creating-vnodes (.prop)
|
|
1766
|
-
".checked":
|
|
1767
|
-
"^checked":
|
|
1766
|
+
".checked": S.value,
|
|
1767
|
+
"^checked": S.value === !0 ? "checked" : void 0,
|
|
1768
1768
|
name: l.name,
|
|
1769
1769
|
value: b.value === !0 ? l.val : l.trueValue
|
|
1770
|
-
}),
|
|
1771
|
-
}),
|
|
1772
|
-
const
|
|
1773
|
-
tabindex:
|
|
1770
|
+
}), E;
|
|
1771
|
+
}), V = Wl(w), z = u(() => {
|
|
1772
|
+
const E = {
|
|
1773
|
+
tabindex: B.value,
|
|
1774
1774
|
role: "checkbox",
|
|
1775
1775
|
"aria-label": l.label,
|
|
1776
|
-
"aria-checked": y.value === !0 ? "mixed" :
|
|
1776
|
+
"aria-checked": y.value === !0 ? "mixed" : S.value === !0 ? "true" : "false"
|
|
1777
1777
|
};
|
|
1778
|
-
return l.disable === !0 && (
|
|
1778
|
+
return l.disable === !0 && (E["aria-disabled"] = "true"), E;
|
|
1779
1779
|
});
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1780
|
+
function O(E) {
|
|
1781
|
+
E !== void 0 && (Qe(E), s(E)), l.disable !== !0 && a("update:modelValue", T(), E);
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function T() {
|
|
1784
1784
|
if (b.value === !0) {
|
|
1785
|
-
if (
|
|
1786
|
-
const
|
|
1787
|
-
return
|
|
1785
|
+
if (S.value === !0) {
|
|
1786
|
+
const E = l.modelValue.slice();
|
|
1787
|
+
return E.splice(g.value, 1), E;
|
|
1788
1788
|
}
|
|
1789
1789
|
return l.modelValue.concat([l.val]);
|
|
1790
1790
|
}
|
|
1791
|
-
if (
|
|
1791
|
+
if (S.value === !0) {
|
|
1792
1792
|
if (l.toggleOrder !== "ft" || l.toggleIndeterminate === !1)
|
|
1793
1793
|
return l.falseValue;
|
|
1794
|
-
} else if (
|
|
1794
|
+
} else if (q.value === !0) {
|
|
1795
1795
|
if (l.toggleOrder === "ft" || l.toggleIndeterminate === !1)
|
|
1796
1796
|
return l.trueValue;
|
|
1797
1797
|
} else
|
|
1798
1798
|
return l.toggleOrder !== "ft" ? l.trueValue : l.falseValue;
|
|
1799
1799
|
return l.indeterminateValue;
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1802
|
-
(
|
|
1801
|
+
function H(E) {
|
|
1802
|
+
(E.keyCode === 13 || E.keyCode === 32) && Qe(E);
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1805
|
-
(
|
|
1804
|
+
function M(E) {
|
|
1805
|
+
(E.keyCode === 13 || E.keyCode === 32) && O(E);
|
|
1806
1806
|
}
|
|
1807
|
-
const
|
|
1808
|
-
return Object.assign(o, { toggle:
|
|
1809
|
-
const
|
|
1810
|
-
l.disable !== !0 &&
|
|
1811
|
-
|
|
1807
|
+
const x = n(S, y);
|
|
1808
|
+
return Object.assign(o, { toggle: O }), () => {
|
|
1809
|
+
const E = x();
|
|
1810
|
+
l.disable !== !0 && V(
|
|
1811
|
+
E,
|
|
1812
1812
|
"unshift",
|
|
1813
1813
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
1814
1814
|
);
|
|
@@ -1817,7 +1817,7 @@ function Mi(e, n) {
|
|
|
1817
1817
|
class: p.value,
|
|
1818
1818
|
style: v.value,
|
|
1819
1819
|
"aria-hidden": "true"
|
|
1820
|
-
},
|
|
1820
|
+
}, E)
|
|
1821
1821
|
];
|
|
1822
1822
|
d.value !== null && A.push(d.value);
|
|
1823
1823
|
const F = l.label !== void 0 ? Qt(t.default, [l.label]) : et(t.default);
|
|
@@ -1828,10 +1828,10 @@ function Mi(e, n) {
|
|
|
1828
1828
|
), m("div", {
|
|
1829
1829
|
ref: c,
|
|
1830
1830
|
class: P.value,
|
|
1831
|
-
...
|
|
1832
|
-
onClick:
|
|
1833
|
-
onKeydown:
|
|
1834
|
-
onKeyup:
|
|
1831
|
+
...z.value,
|
|
1832
|
+
onClick: O,
|
|
1833
|
+
onKeydown: H,
|
|
1834
|
+
onKeyup: M
|
|
1835
1835
|
}, A);
|
|
1836
1836
|
};
|
|
1837
1837
|
}
|
|
@@ -2014,7 +2014,7 @@ function Ca(e, n, l, t) {
|
|
|
2014
2014
|
const a = l.modifiers.color;
|
|
2015
2015
|
let o = l.modifiers.center;
|
|
2016
2016
|
o = o === !0 || t === !0;
|
|
2017
|
-
const i = document.createElement("span"), r = document.createElement("span"), c = pn(e), { left: d, top: s, width: v, height: b } = n.getBoundingClientRect(), g = Math.sqrt(v * v + b * b),
|
|
2017
|
+
const i = document.createElement("span"), r = document.createElement("span"), c = pn(e), { left: d, top: s, width: v, height: b } = n.getBoundingClientRect(), g = Math.sqrt(v * v + b * b), S = g / 2, q = `${(v - g) / 2}px`, y = o ? q : `${c.left - d - S}px`, B = `${(b - g) / 2}px`, P = o ? B : `${c.top - s - S}px`;
|
|
2018
2018
|
r.className = "q-ripple__inner", Fl(r, {
|
|
2019
2019
|
height: `${g}px`,
|
|
2020
2020
|
width: `${g}px`,
|
|
@@ -2026,7 +2026,7 @@ function Ca(e, n, l, t) {
|
|
|
2026
2026
|
};
|
|
2027
2027
|
l.abort.push(p);
|
|
2028
2028
|
let w = setTimeout(() => {
|
|
2029
|
-
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${
|
|
2029
|
+
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${q},${B},0) scale3d(1,1,1)`, r.style.opacity = 0.2, w = setTimeout(() => {
|
|
2030
2030
|
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, w = setTimeout(() => {
|
|
2031
2031
|
i.remove(), l.abort.splice(l.abort.indexOf(p), 1);
|
|
2032
2032
|
}, 275);
|
|
@@ -2128,13 +2128,13 @@ const Gl = Ql(
|
|
|
2128
2128
|
const y = e.outline === !0 && e.color || e.textColor;
|
|
2129
2129
|
return "q-chip row inline no-wrap items-center" + (e.outline === !1 && e.color !== void 0 ? ` bg-${e.color}` : "") + (y ? ` text-${y} q-chip--colored` : "") + (e.disable === !0 ? " disabled" : "") + (e.dense === !0 ? " q-chip--dense" : "") + (e.outline === !0 ? " q-chip--outline" : "") + (e.selected === !0 ? " q-chip--selected" : "") + (d.value === !0 ? " q-chip--clickable cursor-pointer non-selectable q-hoverable" : "") + (e.square === !0 ? " q-chip--square" : "") + (a.value === !0 ? " q-chip--dark q-dark" : "");
|
|
2130
2130
|
}), v = u(() => {
|
|
2131
|
-
const y = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 },
|
|
2131
|
+
const y = e.disable === !0 ? { tabindex: -1, "aria-disabled": "true" } : { tabindex: e.tabindex || 0 }, B = {
|
|
2132
2132
|
...y,
|
|
2133
2133
|
role: "button",
|
|
2134
2134
|
"aria-hidden": "false",
|
|
2135
2135
|
"aria-label": e.removeAriaLabel || t.lang.label.remove
|
|
2136
2136
|
};
|
|
2137
|
-
return { chip: y, remove:
|
|
2137
|
+
return { chip: y, remove: B };
|
|
2138
2138
|
});
|
|
2139
2139
|
function b(y) {
|
|
2140
2140
|
y.keyCode === 13 && g(y);
|
|
@@ -2142,10 +2142,10 @@ const Gl = Ql(
|
|
|
2142
2142
|
function g(y) {
|
|
2143
2143
|
e.disable || (l("update:selected", !e.selected), l("click", y));
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function S(y) {
|
|
2146
2146
|
(y.keyCode === void 0 || y.keyCode === 13) && (Qe(y), e.disable === !1 && (l("update:modelValue", !1), l("remove")));
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function q() {
|
|
2149
2149
|
const y = [];
|
|
2150
2150
|
d.value === !0 && y.push(
|
|
2151
2151
|
m("div", { class: "q-focus-helper" })
|
|
@@ -2155,11 +2155,11 @@ const Gl = Ql(
|
|
|
2155
2155
|
name: r.value
|
|
2156
2156
|
})
|
|
2157
2157
|
);
|
|
2158
|
-
const
|
|
2158
|
+
const B = e.label !== void 0 ? [m("div", { class: "ellipsis" }, [e.label])] : void 0;
|
|
2159
2159
|
return y.push(
|
|
2160
2160
|
m("div", {
|
|
2161
2161
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2162
|
-
}, Vr(n.default,
|
|
2162
|
+
}, Vr(n.default, B))
|
|
2163
2163
|
), e.iconRight && y.push(
|
|
2164
2164
|
m(Xe, {
|
|
2165
2165
|
class: "q-chip__icon q-chip__icon--right",
|
|
@@ -2170,8 +2170,8 @@ const Gl = Ql(
|
|
|
2170
2170
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
2171
2171
|
name: c.value,
|
|
2172
2172
|
...v.value.remove,
|
|
2173
|
-
onClick:
|
|
2174
|
-
onKeyup:
|
|
2173
|
+
onClick: S,
|
|
2174
|
+
onKeyup: S
|
|
2175
2175
|
})
|
|
2176
2176
|
), y;
|
|
2177
2177
|
}
|
|
@@ -2188,7 +2188,7 @@ const Gl = Ql(
|
|
|
2188
2188
|
), Pr(
|
|
2189
2189
|
"div",
|
|
2190
2190
|
y,
|
|
2191
|
-
|
|
2191
|
+
q(),
|
|
2192
2192
|
"ripple",
|
|
2193
2193
|
e.ripple !== !1 && e.disable !== !0,
|
|
2194
2194
|
() => [[Gl, e.ripple]]
|
|
@@ -2276,60 +2276,60 @@ function xo({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
|
2276
2276
|
} : s.value === !0 ? {
|
|
2277
2277
|
href: d.value.href,
|
|
2278
2278
|
target: t.target
|
|
2279
|
-
} : {}),
|
|
2279
|
+
} : {}), S = u(() => {
|
|
2280
2280
|
if (s.value === !1)
|
|
2281
2281
|
return -1;
|
|
2282
|
-
const { matched:
|
|
2283
|
-
if (
|
|
2282
|
+
const { matched: V } = d.value, { length: z } = V, O = V[z - 1];
|
|
2283
|
+
if (O === void 0)
|
|
2284
2284
|
return -1;
|
|
2285
|
-
const
|
|
2286
|
-
if (
|
|
2285
|
+
const T = a.$route.matched;
|
|
2286
|
+
if (T.length === 0)
|
|
2287
2287
|
return -1;
|
|
2288
|
-
const
|
|
2289
|
-
Oa.bind(null,
|
|
2288
|
+
const H = T.findIndex(
|
|
2289
|
+
Oa.bind(null, O)
|
|
2290
2290
|
);
|
|
2291
|
-
if (
|
|
2292
|
-
return
|
|
2293
|
-
const
|
|
2291
|
+
if (H !== -1)
|
|
2292
|
+
return H;
|
|
2293
|
+
const M = Ta(V[z - 2]);
|
|
2294
2294
|
return (
|
|
2295
2295
|
// we are dealing with nested routes
|
|
2296
|
-
|
|
2297
|
-
Oa.bind(null,
|
|
2298
|
-
) :
|
|
2296
|
+
z > 1 && Ta(O) === M && T[T.length - 1].path !== M ? T.findIndex(
|
|
2297
|
+
Oa.bind(null, V[z - 2])
|
|
2298
|
+
) : H
|
|
2299
2299
|
);
|
|
2300
|
-
}),
|
|
2301
|
-
() => s.value === !0 &&
|
|
2300
|
+
}), q = u(
|
|
2301
|
+
() => s.value === !0 && S.value !== -1 && zi(a.$route.params, d.value.params)
|
|
2302
2302
|
), y = u(
|
|
2303
|
-
() =>
|
|
2304
|
-
),
|
|
2305
|
-
function P(
|
|
2303
|
+
() => q.value === !0 && S.value === a.$route.matched.length - 1 && Qi(a.$route.params, d.value.params)
|
|
2304
|
+
), B = u(() => s.value === !0 ? y.value === !0 ? ` ${t.exactActiveClass} ${t.activeClass}` : t.exact === !0 ? "" : q.value === !0 ? ` ${t.activeClass}` : "" : "");
|
|
2305
|
+
function P(V) {
|
|
2306
2306
|
try {
|
|
2307
|
-
return a.$router.resolve(
|
|
2307
|
+
return a.$router.resolve(V);
|
|
2308
2308
|
} catch {
|
|
2309
2309
|
}
|
|
2310
2310
|
return null;
|
|
2311
2311
|
}
|
|
2312
|
-
function p(
|
|
2312
|
+
function p(V, { returnRouterError: z, to: O = t.to, replace: T = t.replace } = {}) {
|
|
2313
2313
|
if (t.disable === !0)
|
|
2314
|
-
return
|
|
2314
|
+
return V.preventDefault(), Promise.resolve(!1);
|
|
2315
2315
|
if (
|
|
2316
2316
|
// don't redirect with control keys;
|
|
2317
2317
|
// should match RouterLink from Vue Router
|
|
2318
|
-
|
|
2318
|
+
V.metaKey || V.altKey || V.ctrlKey || V.shiftKey || V.button !== void 0 && V.button !== 0 || t.target === "_blank"
|
|
2319
2319
|
)
|
|
2320
2320
|
return Promise.resolve(!1);
|
|
2321
|
-
|
|
2322
|
-
const
|
|
2323
|
-
return
|
|
2321
|
+
V.preventDefault();
|
|
2322
|
+
const H = a.$router[T === !0 ? "replace" : "push"](O);
|
|
2323
|
+
return z === !0 ? H : H.then(() => {
|
|
2324
2324
|
}).catch(() => {
|
|
2325
2325
|
});
|
|
2326
2326
|
}
|
|
2327
|
-
function w(
|
|
2327
|
+
function w(V) {
|
|
2328
2328
|
if (s.value === !0) {
|
|
2329
|
-
const
|
|
2330
|
-
o("click",
|
|
2329
|
+
const z = (O) => p(V, O);
|
|
2330
|
+
o("click", V, z), V.defaultPrevented !== !0 && z();
|
|
2331
2331
|
} else
|
|
2332
|
-
o("click",
|
|
2332
|
+
o("click", V);
|
|
2333
2333
|
}
|
|
2334
2334
|
return {
|
|
2335
2335
|
hasRouterLink: s,
|
|
@@ -2337,9 +2337,9 @@ function xo({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
|
2337
2337
|
hasLink: v,
|
|
2338
2338
|
linkTag: b,
|
|
2339
2339
|
resolvedLink: d,
|
|
2340
|
-
linkIsActive:
|
|
2340
|
+
linkIsActive: q,
|
|
2341
2341
|
linkIsExactActive: y,
|
|
2342
|
-
linkClass:
|
|
2342
|
+
linkClass: B,
|
|
2343
2343
|
linkAttrs: g,
|
|
2344
2344
|
getLink: P,
|
|
2345
2345
|
navigateToRouterLink: p,
|
|
@@ -2372,15 +2372,15 @@ const Co = Be({
|
|
|
2372
2372
|
() => e.clickable === !0 || o.value === !0 || e.tag === "label"
|
|
2373
2373
|
), g = u(
|
|
2374
2374
|
() => e.disable !== !0 && b.value === !0
|
|
2375
|
-
),
|
|
2375
|
+
), S = u(
|
|
2376
2376
|
() => "q-item q-item-type row no-wrap" + (e.dense === !0 ? " q-item--dense" : "") + (a.value === !0 ? " q-item--dark" : "") + (o.value === !0 && e.active === null ? r.value : e.active === !0 ? ` q-item--active${e.activeClass !== void 0 ? ` ${e.activeClass}` : ""}` : "") + (e.disable === !0 ? " disabled" : "") + (g.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" : "") : "")
|
|
2377
|
-
),
|
|
2377
|
+
), q = u(() => e.insetLevel === void 0 ? null : {
|
|
2378
2378
|
["padding" + (t.lang.rtl === !0 ? "Right" : "Left")]: 16 + e.insetLevel * 56 + "px"
|
|
2379
2379
|
});
|
|
2380
2380
|
function y(p) {
|
|
2381
2381
|
g.value === !0 && (v.value !== null && p.qAvoidFocus !== !0 && (p.qKeyEvent !== !0 && document.activeElement === s.value ? v.value.focus() : document.activeElement === v.value && s.value.focus()), d(p));
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2383
|
+
function B(p) {
|
|
2384
2384
|
if (g.value === !0 && Lt(p, [13, 32]) === !0) {
|
|
2385
2385
|
Qe(p), p.qKeyEvent = !0;
|
|
2386
2386
|
const w = new MouseEvent("click", p);
|
|
@@ -2397,11 +2397,11 @@ const Co = Be({
|
|
|
2397
2397
|
return () => {
|
|
2398
2398
|
const p = {
|
|
2399
2399
|
ref: s,
|
|
2400
|
-
class:
|
|
2401
|
-
style:
|
|
2400
|
+
class: S.value,
|
|
2401
|
+
style: q.value,
|
|
2402
2402
|
role: "listitem",
|
|
2403
2403
|
onClick: y,
|
|
2404
|
-
onKeyup:
|
|
2404
|
+
onKeyup: B
|
|
2405
2405
|
};
|
|
2406
2406
|
return g.value === !0 ? (p.tabindex = e.tabindex || "0", Object.assign(p, i.value)) : b.value === !0 && (p["aria-disabled"] = "true"), m(
|
|
2407
2407
|
c.value,
|
|
@@ -2497,11 +2497,11 @@ function Jl({
|
|
|
2497
2497
|
mobileTouch(g) {
|
|
2498
2498
|
if (d.mobileCleanup(g), c(g) !== !0) return;
|
|
2499
2499
|
a.hide(g), i.value.classList.add("non-selectable");
|
|
2500
|
-
const
|
|
2500
|
+
const S = g.target;
|
|
2501
2501
|
At(d, "anchor", [
|
|
2502
|
-
[
|
|
2503
|
-
[
|
|
2504
|
-
[
|
|
2502
|
+
[S, "touchmove", "mobileCleanup", "passive"],
|
|
2503
|
+
[S, "touchend", "mobileCleanup", "passive"],
|
|
2504
|
+
[S, "touchcancel", "mobileCleanup", "passive"],
|
|
2505
2505
|
[i.value, "contextmenu", "prevent", "notPassive"]
|
|
2506
2506
|
]), r = setTimeout(() => {
|
|
2507
2507
|
r = null, a.show(g), g.qAnchorHandled = !0;
|
|
@@ -2512,16 +2512,16 @@ function Jl({
|
|
|
2512
2512
|
}
|
|
2513
2513
|
}), l = function(g = t.contextMenu) {
|
|
2514
2514
|
if (t.noParentEvent === !0 || i.value === null) return;
|
|
2515
|
-
let
|
|
2516
|
-
g === !0 ? a.$q.platform.is.mobile === !0 ?
|
|
2515
|
+
let S;
|
|
2516
|
+
g === !0 ? a.$q.platform.is.mobile === !0 ? S = [
|
|
2517
2517
|
[i.value, "touchstart", "mobileTouch", "passive"]
|
|
2518
|
-
] :
|
|
2518
|
+
] : S = [
|
|
2519
2519
|
[i.value, "mousedown", "hide", "passive"],
|
|
2520
2520
|
[i.value, "contextmenu", "contextClick", "notPassive"]
|
|
2521
|
-
] :
|
|
2521
|
+
] : S = [
|
|
2522
2522
|
[i.value, "click", "toggle", "passive"],
|
|
2523
2523
|
[i.value, "keyup", "toggleKey", "passive"]
|
|
2524
|
-
], At(d, "anchor",
|
|
2524
|
+
], At(d, "anchor", S);
|
|
2525
2525
|
});
|
|
2526
2526
|
function s() {
|
|
2527
2527
|
$t(d, "anchor");
|
|
@@ -2610,7 +2610,7 @@ function sl({
|
|
|
2610
2610
|
const i = Te(), { props: r, emit: c, proxy: d } = i;
|
|
2611
2611
|
let s;
|
|
2612
2612
|
function v(P) {
|
|
2613
|
-
e.value === !0 ?
|
|
2613
|
+
e.value === !0 ? S(P) : b(P);
|
|
2614
2614
|
}
|
|
2615
2615
|
function b(P) {
|
|
2616
2616
|
if (r.disable === !0 || (P == null ? void 0 : P.qAnchorHandled) === !0 || n !== void 0 && n(P) !== !0) return;
|
|
@@ -2622,26 +2622,26 @@ function sl({
|
|
|
2622
2622
|
function g(P) {
|
|
2623
2623
|
e.value !== !0 && (e.value = !0, c("beforeShow", P), t !== void 0 ? t(P) : c("show", P));
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function S(P) {
|
|
2626
2626
|
if (r.disable === !0) return;
|
|
2627
2627
|
const p = r["onUpdate:modelValue"] !== void 0;
|
|
2628
2628
|
p === !0 && (c("update:modelValue", !1), s = P, Re(() => {
|
|
2629
2629
|
s === P && (s = void 0);
|
|
2630
|
-
})), (r.modelValue === null || p === !1) &&
|
|
2630
|
+
})), (r.modelValue === null || p === !1) && q(P);
|
|
2631
2631
|
}
|
|
2632
|
-
function
|
|
2632
|
+
function q(P) {
|
|
2633
2633
|
e.value !== !1 && (e.value = !1, c("beforeHide", P), a !== void 0 ? a(P) : c("hide", P));
|
|
2634
2634
|
}
|
|
2635
2635
|
function y(P) {
|
|
2636
|
-
r.disable === !0 && P === !0 ? r["onUpdate:modelValue"] !== void 0 && c("update:modelValue", !1) : P === !0 !== e.value && (P === !0 ? g :
|
|
2636
|
+
r.disable === !0 && P === !0 ? r["onUpdate:modelValue"] !== void 0 && c("update:modelValue", !1) : P === !0 !== e.value && (P === !0 ? g : q)(s);
|
|
2637
2637
|
}
|
|
2638
2638
|
ue(() => r.modelValue, y), l !== void 0 && So(i) === !0 && ue(() => d.$route.fullPath, () => {
|
|
2639
|
-
l.value === !0 && e.value === !0 &&
|
|
2639
|
+
l.value === !0 && e.value === !0 && S();
|
|
2640
2640
|
}), o === !0 && Ct(() => {
|
|
2641
2641
|
y(r.modelValue);
|
|
2642
2642
|
});
|
|
2643
|
-
const
|
|
2644
|
-
return Object.assign(d,
|
|
2643
|
+
const B = { show: b, hide: S, toggle: v };
|
|
2644
|
+
return Object.assign(d, B), B;
|
|
2645
2645
|
}
|
|
2646
2646
|
const Ba = {};
|
|
2647
2647
|
let Ni = 1, Yi = document.body;
|
|
@@ -2983,10 +2983,10 @@ function ta(e, n = 0) {
|
|
|
2983
2983
|
maxWidth: v
|
|
2984
2984
|
} = e;
|
|
2985
2985
|
if ($e.is.ios === !0 && window.visualViewport !== void 0) {
|
|
2986
|
-
const
|
|
2987
|
-
|
|
2986
|
+
const z = document.body.style, { offsetLeft: O, offsetTop: T } = window.visualViewport;
|
|
2987
|
+
O !== Va && (z.setProperty("--q-pe-left", O + "px"), Va = O), T !== Pa && (z.setProperty("--q-pe-top", T + "px"), Pa = T);
|
|
2988
2988
|
}
|
|
2989
|
-
const { scrollLeft: b, scrollTop: g } = l,
|
|
2989
|
+
const { scrollLeft: b, scrollTop: g } = l, S = r === void 0 ? ru(a, d === !0 ? [0, 0] : t) : iu(a, r, t);
|
|
2990
2990
|
Object.assign(l.style, {
|
|
2991
2991
|
top: 0,
|
|
2992
2992
|
left: 0,
|
|
@@ -2996,33 +2996,33 @@ function ta(e, n = 0) {
|
|
|
2996
2996
|
maxHeight: s,
|
|
2997
2997
|
visibility: "visible"
|
|
2998
2998
|
});
|
|
2999
|
-
const { offsetWidth:
|
|
2999
|
+
const { offsetWidth: q, offsetHeight: y } = l, { elWidth: B, elHeight: P } = c === !0 || d === !0 ? { elWidth: Math.max(S.width, q), elHeight: d === !0 ? Math.max(S.height, y) : y } : { elWidth: q, elHeight: y };
|
|
3000
3000
|
let p = { maxWidth: v, maxHeight: s };
|
|
3001
|
-
(c === !0 || d === !0) && (p.minWidth =
|
|
3002
|
-
const w = uu(
|
|
3003
|
-
let
|
|
3001
|
+
(c === !0 || d === !0) && (p.minWidth = S.width + "px", d === !0 && (p.minHeight = S.height + "px")), Object.assign(l.style, p);
|
|
3002
|
+
const w = uu(B, P);
|
|
3003
|
+
let V = Da(S, w, o, i);
|
|
3004
3004
|
if (r === void 0 || t === void 0)
|
|
3005
|
-
wl(
|
|
3005
|
+
wl(V, S, w, o, i);
|
|
3006
3006
|
else {
|
|
3007
|
-
const { top:
|
|
3008
|
-
wl(
|
|
3009
|
-
let
|
|
3010
|
-
if (
|
|
3011
|
-
|
|
3012
|
-
const
|
|
3013
|
-
|
|
3007
|
+
const { top: z, left: O } = V;
|
|
3008
|
+
wl(V, S, w, o, i);
|
|
3009
|
+
let T = !1;
|
|
3010
|
+
if (V.top !== z) {
|
|
3011
|
+
T = !0;
|
|
3012
|
+
const H = 2 * t[1];
|
|
3013
|
+
S.center = S.top -= H, S.bottom -= H + 2;
|
|
3014
3014
|
}
|
|
3015
|
-
if (
|
|
3016
|
-
|
|
3017
|
-
const
|
|
3018
|
-
|
|
3015
|
+
if (V.left !== O) {
|
|
3016
|
+
T = !0;
|
|
3017
|
+
const H = 2 * t[0];
|
|
3018
|
+
S.middle = S.left -= H, S.right -= H + 2;
|
|
3019
3019
|
}
|
|
3020
|
-
|
|
3020
|
+
T === !0 && (V = Da(S, w, o, i), wl(V, S, w, o, i));
|
|
3021
3021
|
}
|
|
3022
3022
|
p = {
|
|
3023
|
-
top:
|
|
3024
|
-
left:
|
|
3025
|
-
},
|
|
3023
|
+
top: V.top + "px",
|
|
3024
|
+
left: V.left + "px"
|
|
3025
|
+
}, V.maxHeight !== void 0 && (p.maxHeight = V.maxHeight + "px", S.height > V.maxHeight && (p.minHeight = p.maxHeight)), V.maxWidth !== void 0 && (p.maxWidth = V.maxWidth + "px", S.width > V.maxWidth && (p.minWidth = p.maxWidth)), Object.assign(l.style, p), l.scrollTop !== g && (l.scrollTop = g), l.scrollLeft !== b && (l.scrollLeft = b);
|
|
3026
3026
|
}
|
|
3027
3027
|
function wl(e, n, l, t, a) {
|
|
3028
3028
|
const o = l.bottom, i = l.right, r = tu(), c = window.innerHeight - r, d = document.body.clientWidth;
|
|
@@ -3105,19 +3105,19 @@ const Ro = Be({
|
|
|
3105
3105
|
let a = null, o, i, r;
|
|
3106
3106
|
const c = Te(), { proxy: d } = c, { $q: s } = d, v = N(null), b = N(!1), g = u(
|
|
3107
3107
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0
|
|
3108
|
-
),
|
|
3108
|
+
), S = Bt(e, s), { registerTick: q, removeTick: y } = gn(), { registerTimeout: B } = En(), { transitionProps: P, transitionStyle: p } = ea(e), { localScrollTarget: w, changeScrollEvent: V, unconfigureScrollTarget: z } = Oo(e, Y), { anchorEl: O, canShow: T } = Jl({ showing: b }), { hide: H } = sl({
|
|
3109
3109
|
showing: b,
|
|
3110
|
-
canShow:
|
|
3110
|
+
canShow: T,
|
|
3111
3111
|
handleShow: be,
|
|
3112
3112
|
handleHide: C,
|
|
3113
3113
|
hideOnRouteChange: g,
|
|
3114
3114
|
processOnMount: !0
|
|
3115
|
-
}), { showPortal:
|
|
3116
|
-
anchorEl:
|
|
3115
|
+
}), { showPortal: M, hidePortal: x, renderPortal: E } = $l(c, v, ke, "menu"), A = {
|
|
3116
|
+
anchorEl: O,
|
|
3117
3117
|
innerRef: v,
|
|
3118
3118
|
onClickOutside(U) {
|
|
3119
3119
|
if (e.persistent !== !0 && b.value === !0)
|
|
3120
|
-
return
|
|
3120
|
+
return H(U), // always prevent touch event
|
|
3121
3121
|
(U.type === "touchstart" || U.target.classList.contains("q-dialog__backdrop")) && Qe(U), !0;
|
|
3122
3122
|
}
|
|
3123
3123
|
}, F = u(
|
|
@@ -3125,8 +3125,8 @@ const Ro = Be({
|
|
|
3125
3125
|
e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
|
|
3126
3126
|
s.lang.rtl
|
|
3127
3127
|
)
|
|
3128
|
-
),
|
|
3129
|
-
() => (e.square === !0 ? " q-menu--square" : "") + (
|
|
3128
|
+
), j = u(() => e.cover === !0 ? F.value : $n(e.self || "top start", s.lang.rtl)), G = u(
|
|
3129
|
+
() => (e.square === !0 ? " q-menu--square" : "") + (S.value === !0 ? " q-menu--dark q-dark" : "")
|
|
3130
3130
|
), R = u(() => e.autoClose === !0 ? { onClick: W } : {}), D = u(
|
|
3131
3131
|
() => b.value === !0 && e.persistent !== !0
|
|
3132
3132
|
);
|
|
@@ -3140,33 +3140,33 @@ const Ro = Be({
|
|
|
3140
3140
|
});
|
|
3141
3141
|
}
|
|
3142
3142
|
function be(U) {
|
|
3143
|
-
if (a = e.noRefocus === !1 ? document.activeElement : null, Io(ne),
|
|
3143
|
+
if (a = e.noRefocus === !1 ? document.activeElement : null, Io(ne), M(), Y(), o = void 0, U !== void 0 && (e.touchPosition || e.contextMenu)) {
|
|
3144
3144
|
const Ie = pn(U);
|
|
3145
3145
|
if (Ie.left !== void 0) {
|
|
3146
|
-
const { top: qe, left: Oe } =
|
|
3146
|
+
const { top: qe, left: Oe } = O.value.getBoundingClientRect();
|
|
3147
3147
|
o = { left: Ie.left - Oe, top: Ie.top - qe };
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
3150
|
i === void 0 && (i = ue(
|
|
3151
3151
|
() => s.screen.width + "|" + s.screen.height + "|" + e.self + "|" + e.anchor + "|" + s.lang.rtl,
|
|
3152
3152
|
$
|
|
3153
|
-
)), e.noFocus !== !0 && document.activeElement.blur(),
|
|
3153
|
+
)), e.noFocus !== !0 && document.activeElement.blur(), q(() => {
|
|
3154
3154
|
$(), e.noFocus !== !0 && Z();
|
|
3155
|
-
}),
|
|
3156
|
-
s.platform.is.ios === !0 && (r = e.autoClose, v.value.click()), $(),
|
|
3155
|
+
}), B(() => {
|
|
3156
|
+
s.platform.is.ios === !0 && (r = e.autoClose, v.value.click()), $(), M(!0), l("show", U);
|
|
3157
3157
|
}, e.transitionDuration);
|
|
3158
3158
|
}
|
|
3159
3159
|
function C(U) {
|
|
3160
|
-
y(),
|
|
3161
|
-
(U === void 0 || U.qClickOutside !== !0) && ((((U == null ? void 0 : U.type.indexOf("key")) === 0 ? a.closest('[tabindex]:not([tabindex^="-"])') : void 0) || a).focus(), a = null),
|
|
3162
|
-
|
|
3160
|
+
y(), x(), k(!0), a !== null && // menu was hidden from code or ESC plugin
|
|
3161
|
+
(U === void 0 || U.qClickOutside !== !0) && ((((U == null ? void 0 : U.type.indexOf("key")) === 0 ? a.closest('[tabindex]:not([tabindex^="-"])') : void 0) || a).focus(), a = null), B(() => {
|
|
3162
|
+
x(!0), l("hide", U);
|
|
3163
3163
|
}, e.transitionDuration);
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3166
|
-
o = void 0, i !== void 0 && (i(), i = void 0), (U === !0 || b.value === !0) && (Al(ne),
|
|
3165
|
+
function k(U) {
|
|
3166
|
+
o = void 0, i !== void 0 && (i(), i = void 0), (U === !0 || b.value === !0) && (Al(ne), z(), Zn(A), Wn(te)), U !== !0 && (a = null);
|
|
3167
3167
|
}
|
|
3168
3168
|
function Y() {
|
|
3169
|
-
(
|
|
3169
|
+
(O.value !== null || e.scrollTarget !== void 0) && (w.value = Vo(O.value, e.scrollTarget), V(w.value, $));
|
|
3170
3170
|
}
|
|
3171
3171
|
function W(U) {
|
|
3172
3172
|
r !== !0 ? (Eo(d, U), l("click", U)) : r = !1;
|
|
@@ -3175,15 +3175,15 @@ const Ro = Be({
|
|
|
3175
3175
|
D.value === !0 && e.noFocus !== !0 && ko(v.value, U.target) !== !0 && Z();
|
|
3176
3176
|
}
|
|
3177
3177
|
function te(U) {
|
|
3178
|
-
e.noEscDismiss !== !0 && (l("escapeKey"),
|
|
3178
|
+
e.noEscDismiss !== !0 && (l("escapeKey"), H(U));
|
|
3179
3179
|
}
|
|
3180
3180
|
function $() {
|
|
3181
3181
|
ta({
|
|
3182
3182
|
targetEl: v.value,
|
|
3183
3183
|
offset: e.offset,
|
|
3184
|
-
anchorEl:
|
|
3184
|
+
anchorEl: O.value,
|
|
3185
3185
|
anchorOrigin: F.value,
|
|
3186
|
-
selfOrigin:
|
|
3186
|
+
selfOrigin: j.value,
|
|
3187
3187
|
absoluteOffset: o,
|
|
3188
3188
|
fit: e.fit,
|
|
3189
3189
|
cover: e.cover,
|
|
@@ -3212,7 +3212,7 @@ const Ro = Be({
|
|
|
3212
3212
|
}, et(n.default)) : null
|
|
3213
3213
|
);
|
|
3214
3214
|
}
|
|
3215
|
-
return Ye(
|
|
3215
|
+
return Ye(k), Object.assign(d, { focus: Z, updatePosition: $ }), E;
|
|
3216
3216
|
}
|
|
3217
3217
|
});
|
|
3218
3218
|
function su(e, n, l) {
|
|
@@ -3341,16 +3341,16 @@ const mu = {
|
|
|
3341
3341
|
let c = null, d = null, s, v;
|
|
3342
3342
|
const b = u(
|
|
3343
3343
|
() => e.persistent !== !0 && e.noRouteDismiss !== !0 && e.seamless !== !0
|
|
3344
|
-
), { preventBodyScroll: g } = vu(), { registerTimeout:
|
|
3344
|
+
), { preventBodyScroll: g } = vu(), { registerTimeout: S } = En(), { registerTick: q, removeTick: y } = gn(), { transitionProps: B, transitionStyle: P } = ea(
|
|
3345
3345
|
e,
|
|
3346
3346
|
() => Ha[e.position][0],
|
|
3347
3347
|
() => Ha[e.position][1]
|
|
3348
|
-
), p = u(() => P.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: w, hidePortal:
|
|
3348
|
+
), p = u(() => P.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: w, hidePortal: V, portalIsAccessible: z, renderPortal: O } = $l(
|
|
3349
3349
|
a,
|
|
3350
3350
|
o,
|
|
3351
3351
|
Y,
|
|
3352
3352
|
"dialog"
|
|
3353
|
-
), { hide:
|
|
3353
|
+
), { hide: T } = sl({
|
|
3354
3354
|
showing: i,
|
|
3355
3355
|
hideOnRouteChange: b,
|
|
3356
3356
|
handleShow: A,
|
|
@@ -3358,20 +3358,20 @@ const mu = {
|
|
|
3358
3358
|
processOnMount: !0
|
|
3359
3359
|
});
|
|
3360
3360
|
su(i);
|
|
3361
|
-
const
|
|
3361
|
+
const H = u(
|
|
3362
3362
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${e.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${e.position} ${mu[e.position]}` + (r.value === !0 ? " q-dialog__inner--animating" : "") + (e.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (e.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (e.square === !0 ? " q-dialog__inner--square" : "")
|
|
3363
|
-
),
|
|
3364
|
-
`q-dialog fullscreen no-pointer-events q-dialog--${
|
|
3363
|
+
), M = u(() => i.value === !0 && e.seamless !== !0), x = u(() => e.autoClose === !0 ? { onClick: be } : {}), E = u(() => [
|
|
3364
|
+
`q-dialog fullscreen no-pointer-events q-dialog--${M.value === !0 ? "modal" : "seamless"}`,
|
|
3365
3365
|
t.class
|
|
3366
3366
|
]);
|
|
3367
3367
|
ue(() => e.maximized, (W) => {
|
|
3368
3368
|
i.value === !0 && Z(W);
|
|
3369
|
-
}), ue(
|
|
3370
|
-
g(W), W === !0 ? (Io(
|
|
3369
|
+
}), ue(M, (W) => {
|
|
3370
|
+
g(W), W === !0 ? (Io(k), Do(R)) : (Al(k), Wn(R));
|
|
3371
3371
|
});
|
|
3372
3372
|
function A(W) {
|
|
3373
3373
|
var ne;
|
|
3374
|
-
d = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, Z(e.maximized), w(), r.value = !0, e.noFocus !== !0 ? ((ne = document.activeElement) == null || ne.blur(),
|
|
3374
|
+
d = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, Z(e.maximized), w(), r.value = !0, e.noFocus !== !0 ? ((ne = document.activeElement) == null || ne.blur(), q(j)) : y(), S(() => {
|
|
3375
3375
|
if (a.proxy.$q.platform.is.ios === !0) {
|
|
3376
3376
|
if (e.seamless !== !0 && document.activeElement) {
|
|
3377
3377
|
const { top: te, bottom: $ } = document.activeElement.getBoundingClientRect(), { innerHeight: ke } = window, U = window.visualViewport !== void 0 ? window.visualViewport.height : ke;
|
|
@@ -3386,11 +3386,11 @@ const mu = {
|
|
|
3386
3386
|
}, e.transitionDuration);
|
|
3387
3387
|
}
|
|
3388
3388
|
function F(W) {
|
|
3389
|
-
y(), D(!0), r.value = !0,
|
|
3390
|
-
|
|
3389
|
+
y(), D(!0), r.value = !0, V(), d !== null && ((((W == null ? void 0 : W.type.indexOf("key")) === 0 ? d.closest('[tabindex]:not([tabindex^="-"])') : void 0) || d).focus(), d = null), S(() => {
|
|
3390
|
+
V(!0), r.value = !1, l("hide", W);
|
|
3391
3391
|
}, e.transitionDuration);
|
|
3392
3392
|
}
|
|
3393
|
-
function
|
|
3393
|
+
function j(W) {
|
|
3394
3394
|
al(() => {
|
|
3395
3395
|
let ne = o.value;
|
|
3396
3396
|
if (ne !== null) {
|
|
@@ -3406,33 +3406,33 @@ const mu = {
|
|
|
3406
3406
|
});
|
|
3407
3407
|
}
|
|
3408
3408
|
function G(W) {
|
|
3409
|
-
W && typeof W.focus == "function" ? W.focus({ preventScroll: !0 }) :
|
|
3409
|
+
W && typeof W.focus == "function" ? W.focus({ preventScroll: !0 }) : j(), l("shake");
|
|
3410
3410
|
const ne = o.value;
|
|
3411
3411
|
ne !== null && (ne.classList.remove("q-animate--scale"), ne.classList.add("q-animate--scale"), c !== null && clearTimeout(c), c = setTimeout(() => {
|
|
3412
|
-
c = null, o.value !== null && (ne.classList.remove("q-animate--scale"),
|
|
3412
|
+
c = null, o.value !== null && (ne.classList.remove("q-animate--scale"), j());
|
|
3413
3413
|
}, 170));
|
|
3414
3414
|
}
|
|
3415
3415
|
function R() {
|
|
3416
|
-
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && G() : (l("escapeKey"),
|
|
3416
|
+
e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && G() : (l("escapeKey"), T()));
|
|
3417
3417
|
}
|
|
3418
3418
|
function D(W) {
|
|
3419
|
-
c !== null && (clearTimeout(c), c = null), (W === !0 || i.value === !0) && (Z(!1), e.seamless !== !0 && (g(!1), Al(
|
|
3419
|
+
c !== null && (clearTimeout(c), c = null), (W === !0 || i.value === !0) && (Z(!1), e.seamless !== !0 && (g(!1), Al(k), Wn(R))), W !== !0 && (d = null);
|
|
3420
3420
|
}
|
|
3421
3421
|
function Z(W) {
|
|
3422
3422
|
W === !0 ? s !== !0 && (Hn < 1 && document.body.classList.add("q-body--dialog"), Hn++, s = !0) : s === !0 && (Hn < 2 && document.body.classList.remove("q-body--dialog"), Hn--, s = !1);
|
|
3423
3423
|
}
|
|
3424
3424
|
function be(W) {
|
|
3425
|
-
v !== !0 && (
|
|
3425
|
+
v !== !0 && (T(W), l("click", W));
|
|
3426
3426
|
}
|
|
3427
3427
|
function C(W) {
|
|
3428
|
-
e.persistent !== !0 && e.noBackdropDismiss !== !0 ?
|
|
3428
|
+
e.persistent !== !0 && e.noBackdropDismiss !== !0 ? T(W) : e.noShake !== !0 && G();
|
|
3429
3429
|
}
|
|
3430
|
-
function
|
|
3431
|
-
e.allowFocusOutside !== !0 &&
|
|
3430
|
+
function k(W) {
|
|
3431
|
+
e.allowFocusOutside !== !0 && z.value === !0 && ko(o.value, W.target) !== !0 && j('[tabindex]:not([tabindex="-1"])');
|
|
3432
3432
|
}
|
|
3433
3433
|
Object.assign(a.proxy, {
|
|
3434
3434
|
// expose public methods
|
|
3435
|
-
focus:
|
|
3435
|
+
focus: j,
|
|
3436
3436
|
shake: G,
|
|
3437
3437
|
// private but needed by QSelect
|
|
3438
3438
|
__updateRefocusTarget(W) {
|
|
@@ -3442,14 +3442,14 @@ const mu = {
|
|
|
3442
3442
|
function Y() {
|
|
3443
3443
|
return m("div", {
|
|
3444
3444
|
role: "dialog",
|
|
3445
|
-
"aria-modal":
|
|
3445
|
+
"aria-modal": M.value === !0 ? "true" : "false",
|
|
3446
3446
|
...t,
|
|
3447
|
-
class:
|
|
3447
|
+
class: E.value
|
|
3448
3448
|
}, [
|
|
3449
3449
|
m(pt, {
|
|
3450
3450
|
name: "q-transition--fade",
|
|
3451
3451
|
appear: !0
|
|
3452
|
-
}, () =>
|
|
3452
|
+
}, () => M.value === !0 ? m("div", {
|
|
3453
3453
|
class: "q-dialog__backdrop fixed-full",
|
|
3454
3454
|
style: p.value,
|
|
3455
3455
|
"aria-hidden": "true",
|
|
@@ -3458,18 +3458,18 @@ const mu = {
|
|
|
3458
3458
|
}) : null),
|
|
3459
3459
|
m(
|
|
3460
3460
|
pt,
|
|
3461
|
-
|
|
3461
|
+
B.value,
|
|
3462
3462
|
() => i.value === !0 ? m("div", {
|
|
3463
3463
|
ref: o,
|
|
3464
|
-
class:
|
|
3464
|
+
class: H.value,
|
|
3465
3465
|
style: P.value,
|
|
3466
3466
|
tabindex: -1,
|
|
3467
|
-
...
|
|
3467
|
+
...x.value
|
|
3468
3468
|
}, et(n.default)) : null
|
|
3469
3469
|
)
|
|
3470
3470
|
]);
|
|
3471
3471
|
}
|
|
3472
|
-
return
|
|
3472
|
+
return O;
|
|
3473
3473
|
}
|
|
3474
3474
|
});
|
|
3475
3475
|
let Bn = !1;
|
|
@@ -3578,89 +3578,89 @@ function yu({
|
|
|
3578
3578
|
}) {
|
|
3579
3579
|
const a = Te(), { props: o, emit: i, proxy: r } = a, { $q: c } = r;
|
|
3580
3580
|
let d, s, v, b = [], g;
|
|
3581
|
-
const
|
|
3581
|
+
const S = N(0), q = N(0), y = N({}), B = N(null), P = N(null), p = N(null), w = N({ from: 0, to: 0 }), V = u(() => o.tableColspan !== void 0 ? o.tableColspan : 100);
|
|
3582
3582
|
t === void 0 && (t = u(() => o.virtualScrollItemSize));
|
|
3583
|
-
const
|
|
3584
|
-
() =>
|
|
3583
|
+
const z = u(() => t.value + ";" + o.virtualScrollHorizontal), O = u(
|
|
3584
|
+
() => z.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
|
|
3585
3585
|
);
|
|
3586
|
-
ue(
|
|
3586
|
+
ue(O, () => {
|
|
3587
3587
|
G();
|
|
3588
|
-
}), ue(
|
|
3589
|
-
function
|
|
3590
|
-
|
|
3588
|
+
}), ue(z, T);
|
|
3589
|
+
function T() {
|
|
3590
|
+
j(s, !0);
|
|
3591
3591
|
}
|
|
3592
|
-
function
|
|
3593
|
-
|
|
3592
|
+
function H(C) {
|
|
3593
|
+
j(C === void 0 ? s : C);
|
|
3594
3594
|
}
|
|
3595
|
-
function
|
|
3595
|
+
function M(C, k) {
|
|
3596
3596
|
const Y = n();
|
|
3597
3597
|
if (Y == null || Y.nodeType === 8) return;
|
|
3598
3598
|
const W = ql(
|
|
3599
3599
|
Y,
|
|
3600
3600
|
l(),
|
|
3601
|
-
|
|
3601
|
+
B.value,
|
|
3602
3602
|
P.value,
|
|
3603
3603
|
o.virtualScrollHorizontal,
|
|
3604
3604
|
c.lang.rtl,
|
|
3605
3605
|
o.virtualScrollStickySizeStart,
|
|
3606
3606
|
o.virtualScrollStickySizeEnd
|
|
3607
3607
|
);
|
|
3608
|
-
v !== W.scrollViewSize && G(W.scrollViewSize),
|
|
3608
|
+
v !== W.scrollViewSize && G(W.scrollViewSize), E(
|
|
3609
3609
|
Y,
|
|
3610
3610
|
W,
|
|
3611
3611
|
Math.min(e.value - 1, Math.max(0, parseInt(C, 10) || 0)),
|
|
3612
3612
|
0,
|
|
3613
|
-
hu.indexOf(
|
|
3613
|
+
hu.indexOf(k) !== -1 ? k : s !== -1 && C > s ? "end" : "start"
|
|
3614
3614
|
);
|
|
3615
3615
|
}
|
|
3616
|
-
function
|
|
3616
|
+
function x() {
|
|
3617
3617
|
const C = n();
|
|
3618
3618
|
if (C == null || C.nodeType === 8) return;
|
|
3619
|
-
const
|
|
3619
|
+
const k = ql(
|
|
3620
3620
|
C,
|
|
3621
3621
|
l(),
|
|
3622
|
-
|
|
3622
|
+
B.value,
|
|
3623
3623
|
P.value,
|
|
3624
3624
|
o.virtualScrollHorizontal,
|
|
3625
3625
|
c.lang.rtl,
|
|
3626
3626
|
o.virtualScrollStickySizeStart,
|
|
3627
3627
|
o.virtualScrollStickySizeEnd
|
|
3628
|
-
), Y = e.value - 1, W =
|
|
3629
|
-
if (d ===
|
|
3630
|
-
if (
|
|
3631
|
-
|
|
3628
|
+
), Y = e.value - 1, W = k.scrollMaxSize - k.offsetStart - k.offsetEnd - q.value;
|
|
3629
|
+
if (d === k.scrollStart) return;
|
|
3630
|
+
if (k.scrollMaxSize <= 0) {
|
|
3631
|
+
E(C, k, 0, 0);
|
|
3632
3632
|
return;
|
|
3633
3633
|
}
|
|
3634
|
-
v !==
|
|
3635
|
-
const ne = Math.floor(
|
|
3636
|
-
if (ne > 0 && Math.ceil(
|
|
3637
|
-
|
|
3634
|
+
v !== k.scrollViewSize && G(k.scrollViewSize), A(w.value.from);
|
|
3635
|
+
const ne = Math.floor(k.scrollMaxSize - Math.max(k.scrollViewSize, k.offsetEnd) - Math.min(g[Y], k.scrollViewSize / 2));
|
|
3636
|
+
if (ne > 0 && Math.ceil(k.scrollStart) >= ne) {
|
|
3637
|
+
E(
|
|
3638
3638
|
C,
|
|
3639
|
-
|
|
3639
|
+
k,
|
|
3640
3640
|
Y,
|
|
3641
|
-
|
|
3641
|
+
k.scrollMaxSize - k.offsetEnd - b.reduce(bn, 0)
|
|
3642
3642
|
);
|
|
3643
3643
|
return;
|
|
3644
3644
|
}
|
|
3645
|
-
let te = 0, $ =
|
|
3646
|
-
if ($ <= W && $ +
|
|
3647
|
-
$ -=
|
|
3645
|
+
let te = 0, $ = k.scrollStart - k.offsetStart, ke = $;
|
|
3646
|
+
if ($ <= W && $ + k.scrollViewSize >= S.value)
|
|
3647
|
+
$ -= S.value, te = w.value.from, ke = $;
|
|
3648
3648
|
else
|
|
3649
3649
|
for (let U = 0; $ >= b[U] && te < Y; U++)
|
|
3650
3650
|
$ -= b[U], te += xt;
|
|
3651
3651
|
for (; $ > 0 && te < Y; )
|
|
3652
|
-
$ -= g[te], $ > -
|
|
3653
|
-
|
|
3652
|
+
$ -= g[te], $ > -k.scrollViewSize ? (te++, ke = $) : ke = g[te] + $;
|
|
3653
|
+
E(
|
|
3654
3654
|
C,
|
|
3655
|
-
|
|
3655
|
+
k,
|
|
3656
3656
|
te,
|
|
3657
3657
|
ke
|
|
3658
3658
|
);
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function E(C, k, Y, W, ne) {
|
|
3661
3661
|
const te = typeof ne == "string" && ne.indexOf("-force") !== -1, $ = te === !0 ? ne.replace("-force", "") : ne, ke = $ !== void 0 ? $ : "start";
|
|
3662
3662
|
let U = Math.max(0, Y - y.value[ke]), Ie = U + y.value.total;
|
|
3663
|
-
Ie > e.value && (Ie = e.value, U = Math.max(0, Ie - y.value.total)), d =
|
|
3663
|
+
Ie > e.value && (Ie = e.value, U = Math.max(0, Ie - y.value.total)), d = k.scrollStart;
|
|
3664
3664
|
const qe = U !== w.value.from || Ie !== w.value.to;
|
|
3665
3665
|
if (qe === !1 && $ === void 0) {
|
|
3666
3666
|
D(Y);
|
|
@@ -3673,18 +3673,18 @@ function yu({
|
|
|
3673
3673
|
const nt = $ !== void 0 ? g.slice(U, Y).reduce(bn, 0) : 0;
|
|
3674
3674
|
if (qe === !0) {
|
|
3675
3675
|
const ct = Ie >= w.value.from && U <= w.value.to ? w.value.to : Ie;
|
|
3676
|
-
w.value = { from: U, to: ct },
|
|
3677
|
-
w.value.to !== Ie && d ===
|
|
3676
|
+
w.value = { from: U, to: ct }, S.value = qn(b, g, 0, U), q.value = qn(b, g, Ie, e.value), requestAnimationFrame(() => {
|
|
3677
|
+
w.value.to !== Ie && d === k.scrollStart && (w.value = { from: w.value.from, to: Ie }, q.value = qn(b, g, Ie, e.value));
|
|
3678
3678
|
});
|
|
3679
3679
|
}
|
|
3680
3680
|
requestAnimationFrame(() => {
|
|
3681
|
-
if (d !==
|
|
3681
|
+
if (d !== k.scrollStart) return;
|
|
3682
3682
|
qe === !0 && A(U);
|
|
3683
|
-
const ct = g.slice(U, Y).reduce(bn, 0), lt = ct +
|
|
3683
|
+
const ct = g.slice(U, Y).reduce(bn, 0), lt = ct + k.offsetStart + S.value, Ke = lt + g[Y];
|
|
3684
3684
|
let kt = lt + W;
|
|
3685
3685
|
if ($ !== void 0) {
|
|
3686
|
-
const Mt = ct - nt, dt =
|
|
3687
|
-
kt = te !== !0 && dt < lt && Ke < dt +
|
|
3686
|
+
const Mt = ct - nt, dt = k.scrollStart + Mt;
|
|
3687
|
+
kt = te !== !0 && dt < lt && Ke < dt + k.scrollViewSize ? dt : $ === "end" ? Ke - k.scrollViewSize : lt - ($ === "start" ? 0 : Math.round((k.scrollViewSize - g[Y]) / 2));
|
|
3688
3688
|
}
|
|
3689
3689
|
d = kt, za(
|
|
3690
3690
|
C,
|
|
@@ -3695,10 +3695,10 @@ function yu({
|
|
|
3695
3695
|
});
|
|
3696
3696
|
}
|
|
3697
3697
|
function A(C) {
|
|
3698
|
-
const
|
|
3699
|
-
if (
|
|
3698
|
+
const k = p.value;
|
|
3699
|
+
if (k) {
|
|
3700
3700
|
const Y = zo.call(
|
|
3701
|
-
|
|
3701
|
+
k.children,
|
|
3702
3702
|
(U) => U.classList && U.classList.contains("q-virtual-scroll--skip") === !1
|
|
3703
3703
|
), W = Y.length, ne = o.virtualScrollHorizontal === !0 ? (U) => U.getBoundingClientRect().width : (U) => U.offsetHeight;
|
|
3704
3704
|
let te = C, $, ke;
|
|
@@ -3713,9 +3713,9 @@ function yu({
|
|
|
3713
3713
|
var C;
|
|
3714
3714
|
(C = p.value) == null || C.focus();
|
|
3715
3715
|
}
|
|
3716
|
-
function
|
|
3716
|
+
function j(C, k) {
|
|
3717
3717
|
const Y = 1 * t.value;
|
|
3718
|
-
(
|
|
3718
|
+
(k === !0 || Array.isArray(g) === !1) && (g = []);
|
|
3719
3719
|
const W = g.length;
|
|
3720
3720
|
g.length = e.value;
|
|
3721
3721
|
for (let te = e.value - 1; te >= W; te--)
|
|
@@ -3729,8 +3729,8 @@ function yu({
|
|
|
3729
3729
|
$ += g[U];
|
|
3730
3730
|
b.push($);
|
|
3731
3731
|
}
|
|
3732
|
-
s = -1, d = void 0,
|
|
3733
|
-
|
|
3732
|
+
s = -1, d = void 0, S.value = qn(b, g, 0, w.value.from), q.value = qn(b, g, w.value.to, e.value), C >= 0 ? (A(w.value.from), Re(() => {
|
|
3733
|
+
M(C);
|
|
3734
3734
|
})) : Z();
|
|
3735
3735
|
}
|
|
3736
3736
|
function G(C) {
|
|
@@ -3739,7 +3739,7 @@ function yu({
|
|
|
3739
3739
|
$ != null && $.nodeType !== 8 && (C = ql(
|
|
3740
3740
|
$,
|
|
3741
3741
|
l(),
|
|
3742
|
-
|
|
3742
|
+
B.value,
|
|
3743
3743
|
P.value,
|
|
3744
3744
|
o.virtualScrollHorizontal,
|
|
3745
3745
|
c.lang.rtl,
|
|
@@ -3748,20 +3748,20 @@ function yu({
|
|
|
3748
3748
|
).scrollViewSize);
|
|
3749
3749
|
}
|
|
3750
3750
|
v = C;
|
|
3751
|
-
const
|
|
3751
|
+
const k = parseFloat(o.virtualScrollSliceRatioBefore) || 0, Y = parseFloat(o.virtualScrollSliceRatioAfter) || 0, W = 1 + k + Y, ne = C === void 0 || C <= 0 ? 1 : Math.ceil(C / t.value), te = Math.max(
|
|
3752
3752
|
1,
|
|
3753
3753
|
ne,
|
|
3754
3754
|
Math.ceil((o.virtualScrollSliceSize > 0 ? o.virtualScrollSliceSize : 10) / W)
|
|
3755
3755
|
);
|
|
3756
3756
|
y.value = {
|
|
3757
3757
|
total: Math.ceil(te * W),
|
|
3758
|
-
start: Math.ceil(te *
|
|
3759
|
-
center: Math.ceil(te * (0.5 +
|
|
3760
|
-
end: Math.ceil(te * (1 +
|
|
3758
|
+
start: Math.ceil(te * k),
|
|
3759
|
+
center: Math.ceil(te * (0.5 + k)),
|
|
3760
|
+
end: Math.ceil(te * (1 + k)),
|
|
3761
3761
|
view: ne
|
|
3762
3762
|
};
|
|
3763
3763
|
}
|
|
3764
|
-
function R(C,
|
|
3764
|
+
function R(C, k) {
|
|
3765
3765
|
const Y = o.virtualScrollHorizontal === !0 ? "width" : "height", W = {
|
|
3766
3766
|
["--q-virtual-scroll-item-" + Y]: t.value + "px"
|
|
3767
3767
|
};
|
|
@@ -3769,26 +3769,26 @@ function yu({
|
|
|
3769
3769
|
C === "tbody" ? m(C, {
|
|
3770
3770
|
class: "q-virtual-scroll__padding",
|
|
3771
3771
|
key: "before",
|
|
3772
|
-
ref:
|
|
3772
|
+
ref: B
|
|
3773
3773
|
}, [
|
|
3774
3774
|
m("tr", [
|
|
3775
3775
|
m("td", {
|
|
3776
|
-
style: { [Y]: `${
|
|
3777
|
-
colspan:
|
|
3776
|
+
style: { [Y]: `${S.value}px`, ...W },
|
|
3777
|
+
colspan: V.value
|
|
3778
3778
|
})
|
|
3779
3779
|
])
|
|
3780
3780
|
]) : m(C, {
|
|
3781
3781
|
class: "q-virtual-scroll__padding",
|
|
3782
3782
|
key: "before",
|
|
3783
|
-
ref:
|
|
3784
|
-
style: { [Y]: `${
|
|
3783
|
+
ref: B,
|
|
3784
|
+
style: { [Y]: `${S.value}px`, ...W }
|
|
3785
3785
|
}),
|
|
3786
3786
|
m(C, {
|
|
3787
3787
|
class: "q-virtual-scroll__content",
|
|
3788
3788
|
key: "content",
|
|
3789
3789
|
ref: p,
|
|
3790
3790
|
tabindex: -1
|
|
3791
|
-
},
|
|
3791
|
+
}, k.flat()),
|
|
3792
3792
|
C === "tbody" ? m(C, {
|
|
3793
3793
|
class: "q-virtual-scroll__padding",
|
|
3794
3794
|
key: "after",
|
|
@@ -3796,15 +3796,15 @@ function yu({
|
|
|
3796
3796
|
}, [
|
|
3797
3797
|
m("tr", [
|
|
3798
3798
|
m("td", {
|
|
3799
|
-
style: { [Y]: `${
|
|
3800
|
-
colspan:
|
|
3799
|
+
style: { [Y]: `${q.value}px`, ...W },
|
|
3800
|
+
colspan: V.value
|
|
3801
3801
|
})
|
|
3802
3802
|
])
|
|
3803
3803
|
]) : m(C, {
|
|
3804
3804
|
class: "q-virtual-scroll__padding",
|
|
3805
3805
|
key: "after",
|
|
3806
3806
|
ref: P,
|
|
3807
|
-
style: { [Y]: `${
|
|
3807
|
+
style: { [Y]: `${q.value}px`, ...W }
|
|
3808
3808
|
})
|
|
3809
3809
|
];
|
|
3810
3810
|
}
|
|
@@ -3819,7 +3819,7 @@ function yu({
|
|
|
3819
3819
|
}
|
|
3820
3820
|
G();
|
|
3821
3821
|
const Z = ho(
|
|
3822
|
-
|
|
3822
|
+
x,
|
|
3823
3823
|
c.platform.is.ios === !0 ? 120 : 35
|
|
3824
3824
|
);
|
|
3825
3825
|
qr(() => {
|
|
@@ -3836,19 +3836,19 @@ function yu({
|
|
|
3836
3836
|
d,
|
|
3837
3837
|
o.virtualScrollHorizontal,
|
|
3838
3838
|
c.lang.rtl
|
|
3839
|
-
) :
|
|
3839
|
+
) : M(s);
|
|
3840
3840
|
}), Ye(() => {
|
|
3841
3841
|
Z.cancel();
|
|
3842
|
-
}), Object.assign(r, { scrollTo:
|
|
3842
|
+
}), Object.assign(r, { scrollTo: M, reset: T, refresh: H }), {
|
|
3843
3843
|
virtualScrollSliceRange: w,
|
|
3844
3844
|
virtualScrollSliceSizeComputed: y,
|
|
3845
3845
|
setVirtualScrollSize: G,
|
|
3846
3846
|
onVirtualScrollEvt: Z,
|
|
3847
|
-
localResetVirtualScroll:
|
|
3847
|
+
localResetVirtualScroll: j,
|
|
3848
3848
|
padVirtualScroll: R,
|
|
3849
|
-
scrollTo:
|
|
3850
|
-
reset:
|
|
3851
|
-
refresh:
|
|
3849
|
+
scrollTo: M,
|
|
3850
|
+
reset: T,
|
|
3851
|
+
refresh: H
|
|
3852
3852
|
};
|
|
3853
3853
|
}
|
|
3854
3854
|
function jt(e, n) {
|
|
@@ -4029,21 +4029,21 @@ const na = Be({
|
|
|
4029
4029
|
],
|
|
4030
4030
|
setup(e, { slots: n, emit: l }) {
|
|
4031
4031
|
const { proxy: t } = Te(), { $q: a } = t, o = N(!1), i = N(!1), r = N(-1), c = N(""), d = N(!1), s = N(!1);
|
|
4032
|
-
let v = null, b = null, g,
|
|
4033
|
-
const
|
|
4032
|
+
let v = null, b = null, g, S, q, y = null, B, P, p, w;
|
|
4033
|
+
const V = N(null), z = N(null), O = N(null), T = N(null), H = N(null), M = wo(e), x = _o(an), E = u(() => Array.isArray(e.options) ? e.options.length : 0), A = u(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
|
|
4034
4034
|
virtualScrollSliceRange: F,
|
|
4035
|
-
virtualScrollSliceSizeComputed:
|
|
4035
|
+
virtualScrollSliceSizeComputed: j,
|
|
4036
4036
|
localResetVirtualScroll: G,
|
|
4037
4037
|
padVirtualScroll: R,
|
|
4038
4038
|
onVirtualScrollEvt: D,
|
|
4039
4039
|
scrollTo: Z,
|
|
4040
4040
|
setVirtualScrollSize: be
|
|
4041
4041
|
} = yu({
|
|
4042
|
-
virtualScrollLength:
|
|
4042
|
+
virtualScrollLength: E,
|
|
4043
4043
|
getVirtualScrollTarget: Rt,
|
|
4044
4044
|
getVirtualScrollEl: Ut,
|
|
4045
4045
|
virtualScrollItemSizeComputed: A
|
|
4046
|
-
}), C = Kl(),
|
|
4046
|
+
}), C = Kl(), k = u(() => {
|
|
4047
4047
|
const h = e.mapOptions === !0 && e.multiple !== !0, J = e.modelValue !== void 0 && (e.modelValue !== null || h === !0) ? e.multiple === !0 && Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [];
|
|
4048
4048
|
if (e.mapOptions === !0 && Array.isArray(e.options) === !0) {
|
|
4049
4049
|
const le = e.mapOptions === !0 && g !== void 0 ? g : [], _e = J.map((Pe) => se(Pe, le));
|
|
@@ -4056,14 +4056,14 @@ const na = Be({
|
|
|
4056
4056
|
const le = e[J];
|
|
4057
4057
|
le !== void 0 && (h[J] = le);
|
|
4058
4058
|
}), h;
|
|
4059
|
-
}), W = u(() => e.optionsDark === null ? C.isDark.value : e.optionsDark), ne = u(() => On(
|
|
4059
|
+
}), W = u(() => e.optionsDark === null ? C.isDark.value : e.optionsDark), ne = u(() => On(k.value)), te = u(() => {
|
|
4060
4060
|
let h = "q-field__input q-placeholder col";
|
|
4061
|
-
return e.hideSelected === !0 ||
|
|
4061
|
+
return e.hideSelected === !0 || k.value.length === 0 ? [h, e.inputClass] : (h += " q-field__input--padding", e.inputClass === void 0 ? h : [h, e.inputClass]);
|
|
4062
4062
|
}), $ = u(
|
|
4063
4063
|
() => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
|
|
4064
|
-
), ke = u(() =>
|
|
4065
|
-
() =>
|
|
4066
|
-
), Ie = u(() => e.displayValue !== void 0 ? e.displayValue : U.value), qe = u(() => e.optionsHtml === !0 ? () => !0 : (h) => (h == null ? void 0 : h.html) === !0), Oe = u(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 ||
|
|
4064
|
+
), ke = u(() => E.value === 0), U = u(
|
|
4065
|
+
() => k.value.map((h) => Q.value(h)).join(", ")
|
|
4066
|
+
), Ie = u(() => e.displayValue !== void 0 ? e.displayValue : U.value), qe = u(() => e.optionsHtml === !0 ? () => !0 : (h) => (h == null ? void 0 : h.html) === !0), Oe = u(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || k.value.some(qe.value))), Ze = u(() => C.focused.value === !0 ? e.tabindex : -1), nt = u(() => {
|
|
4067
4067
|
const h = {
|
|
4068
4068
|
tabindex: e.tabindex,
|
|
4069
4069
|
role: "combobox",
|
|
@@ -4078,7 +4078,7 @@ const na = Be({
|
|
|
4078
4078
|
id: `${C.targetUid.value}_lb`,
|
|
4079
4079
|
role: "listbox",
|
|
4080
4080
|
"aria-multiselectable": e.multiple === !0 ? "true" : "false"
|
|
4081
|
-
})), lt = u(() =>
|
|
4081
|
+
})), lt = u(() => k.value.map((h, J) => ({
|
|
4082
4082
|
index: J,
|
|
4083
4083
|
opt: h,
|
|
4084
4084
|
html: qe.value(h),
|
|
@@ -4087,7 +4087,7 @@ const na = Be({
|
|
|
4087
4087
|
toggleOption: je,
|
|
4088
4088
|
tabindex: Ze.value
|
|
4089
4089
|
}))), Ke = u(() => {
|
|
4090
|
-
if (
|
|
4090
|
+
if (E.value === 0)
|
|
4091
4091
|
return [];
|
|
4092
4092
|
const { from: h, to: J } = F.value;
|
|
4093
4093
|
return e.options.slice(h, J).map((le, _e) => {
|
|
@@ -4124,32 +4124,32 @@ const na = Be({
|
|
|
4124
4124
|
});
|
|
4125
4125
|
}), kt = u(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown), Mt = u(
|
|
4126
4126
|
() => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
|
|
4127
|
-
), dt = u(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), ze = u(() => xl(e.optionValue, "value")), Q = u(() => xl(e.optionLabel, "label")), oe = u(() => xl(e.optionDisable, "disable")), de = u(() =>
|
|
4127
|
+
), dt = u(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), ze = u(() => xl(e.optionValue, "value")), Q = u(() => xl(e.optionLabel, "label")), oe = u(() => xl(e.optionDisable, "disable")), de = u(() => k.value.map(ze.value)), Ee = u(() => {
|
|
4128
4128
|
const h = {
|
|
4129
4129
|
onInput: an,
|
|
4130
4130
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
4131
4131
|
// switching focus before confirming composition choice
|
|
4132
4132
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
|
4133
4133
|
// fires "change" instead of "input" on autocomplete.
|
|
4134
|
-
onChange:
|
|
4134
|
+
onChange: x,
|
|
4135
4135
|
onKeydown: at,
|
|
4136
4136
|
onKeyup: pe,
|
|
4137
4137
|
onKeypress: Ae,
|
|
4138
4138
|
onFocus: Se,
|
|
4139
4139
|
onClick(J) {
|
|
4140
|
-
|
|
4140
|
+
S === !0 && yt(J);
|
|
4141
4141
|
}
|
|
4142
4142
|
};
|
|
4143
|
-
return h.onCompositionstart = h.onCompositionupdate = h.onCompositionend =
|
|
4143
|
+
return h.onCompositionstart = h.onCompositionupdate = h.onCompositionend = x, h;
|
|
4144
4144
|
});
|
|
4145
|
-
ue(
|
|
4146
|
-
g = h, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && C.innerLoading.value !== !0 && (i.value !== !0 && o.value !== !0 || ne.value !== !0) && (
|
|
4147
|
-
}, { immediate: !0 }), ue(() => e.fillInput, St), ue(o, vl), ue(
|
|
4145
|
+
ue(k, (h) => {
|
|
4146
|
+
g = h, e.useInput === !0 && e.fillInput === !0 && e.multiple !== !0 && C.innerLoading.value !== !0 && (i.value !== !0 && o.value !== !0 || ne.value !== !0) && (q !== !0 && St(), (i.value === !0 || o.value === !0) && Tt(""));
|
|
4147
|
+
}, { immediate: !0 }), ue(() => e.fillInput, St), ue(o, vl), ue(E, or);
|
|
4148
4148
|
function Me(h) {
|
|
4149
4149
|
return e.emitValue === !0 ? ze.value(h) : h;
|
|
4150
4150
|
}
|
|
4151
4151
|
function he(h) {
|
|
4152
|
-
if (h !== -1 && h <
|
|
4152
|
+
if (h !== -1 && h < k.value.length)
|
|
4153
4153
|
if (e.multiple === !0) {
|
|
4154
4154
|
const J = e.modelValue.slice();
|
|
4155
4155
|
l("remove", { index: h, value: J.splice(h, 1)[0] }), l("update:modelValue", J);
|
|
@@ -4169,7 +4169,7 @@ const na = Be({
|
|
|
4169
4169
|
), l("update:modelValue", le);
|
|
4170
4170
|
return;
|
|
4171
4171
|
}
|
|
4172
|
-
if (
|
|
4172
|
+
if (k.value.length === 0) {
|
|
4173
4173
|
l("add", { index: 0, value: le }), l("update:modelValue", e.multiple === !0 ? [le] : le);
|
|
4174
4174
|
return;
|
|
4175
4175
|
}
|
|
@@ -4186,10 +4186,10 @@ const na = Be({
|
|
|
4186
4186
|
e.fillInput === !0 ? Q.value(h) : "",
|
|
4187
4187
|
!0,
|
|
4188
4188
|
!0
|
|
4189
|
-
), xe()), (Ue =
|
|
4189
|
+
), xe()), (Ue = z.value) == null || Ue.focus(), (k.value.length === 0 || jt(ze.value(k.value[0]), le) !== !0) && l("update:modelValue", e.emitValue === !0 ? le : h);
|
|
4190
4190
|
return;
|
|
4191
4191
|
}
|
|
4192
|
-
if ((
|
|
4192
|
+
if ((S !== !0 || d.value === !0) && C.focus(), Se(), k.value.length === 0) {
|
|
4193
4193
|
const De = e.emitValue === !0 ? le : h;
|
|
4194
4194
|
l("add", { index: 0, value: De }), l("update:modelValue", e.multiple === !0 ? [De] : De);
|
|
4195
4195
|
return;
|
|
@@ -4206,7 +4206,7 @@ const na = Be({
|
|
|
4206
4206
|
}
|
|
4207
4207
|
function L(h) {
|
|
4208
4208
|
if (a.platform.is.desktop !== !0) return;
|
|
4209
|
-
const J = h !== -1 && h <
|
|
4209
|
+
const J = h !== -1 && h < E.value ? h : -1;
|
|
4210
4210
|
r.value !== J && (r.value = J);
|
|
4211
4211
|
}
|
|
4212
4212
|
function K(h = 1, J) {
|
|
@@ -4216,11 +4216,11 @@ const na = Be({
|
|
|
4216
4216
|
le = Qa(
|
|
4217
4217
|
le + h,
|
|
4218
4218
|
-1,
|
|
4219
|
-
|
|
4219
|
+
E.value - 1
|
|
4220
4220
|
);
|
|
4221
4221
|
while (le !== -1 && le !== r.value && oe.value(e.options[le]) === !0);
|
|
4222
4222
|
r.value !== le && (L(le), Z(le), J !== !0 && e.useInput === !0 && e.fillInput === !0 && Wt(
|
|
4223
|
-
le >= 0 ? Q.value(e.options[le]) :
|
|
4223
|
+
le >= 0 ? Q.value(e.options[le]) : B,
|
|
4224
4224
|
!0
|
|
4225
4225
|
));
|
|
4226
4226
|
}
|
|
@@ -4234,7 +4234,7 @@ const na = Be({
|
|
|
4234
4234
|
return de.value.find((le) => jt(le, J)) !== void 0;
|
|
4235
4235
|
}
|
|
4236
4236
|
function Se(h) {
|
|
4237
|
-
e.useInput === !0 &&
|
|
4237
|
+
e.useInput === !0 && z.value !== null && (h === void 0 || z.value === h.target && h.target.value === U.value) && z.value.select();
|
|
4238
4238
|
}
|
|
4239
4239
|
function it(h) {
|
|
4240
4240
|
Lt(h, 27) === !0 && o.value === !0 && (yt(h), xe(), St()), l("keyup", h);
|
|
@@ -4248,7 +4248,7 @@ const na = Be({
|
|
|
4248
4248
|
if (h.target.value = "", v !== null && (clearTimeout(v), v = null), b !== null && (clearTimeout(b), b = null), St(), typeof J == "string" && J.length !== 0) {
|
|
4249
4249
|
const le = J.toLocaleLowerCase(), _e = (Ue) => {
|
|
4250
4250
|
const De = e.options.find((We) => String(Ue.value(We)).toLocaleLowerCase() === le);
|
|
4251
|
-
return De === void 0 ? !1 : (
|
|
4251
|
+
return De === void 0 ? !1 : (k.value.indexOf(De) === -1 ? je(De) : xe(), !0);
|
|
4252
4252
|
}, Pe = (Ue) => {
|
|
4253
4253
|
_e(ze) !== !0 && Ue !== !0 && _e(Q) !== !0 && Tt(J, !0, () => Pe(!0));
|
|
4254
4254
|
};
|
|
@@ -4279,14 +4279,14 @@ const na = Be({
|
|
|
4279
4279
|
e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? he(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
|
|
4280
4280
|
return;
|
|
4281
4281
|
}
|
|
4282
|
-
(h.keyCode === 35 || h.keyCode === 36) && (typeof c.value != "string" || c.value.length === 0) && (Qe(h), r.value = -1, K(h.keyCode === 36 ? 1 : -1, e.multiple)), (h.keyCode === 33 || h.keyCode === 34) &&
|
|
4282
|
+
(h.keyCode === 35 || h.keyCode === 36) && (typeof c.value != "string" || c.value.length === 0) && (Qe(h), r.value = -1, K(h.keyCode === 36 ? 1 : -1, e.multiple)), (h.keyCode === 33 || h.keyCode === 34) && j.value !== void 0 && (Qe(h), r.value = Math.max(
|
|
4283
4283
|
-1,
|
|
4284
4284
|
Math.min(
|
|
4285
|
-
|
|
4286
|
-
r.value + (h.keyCode === 33 ? -1 : 1) *
|
|
4285
|
+
E.value,
|
|
4286
|
+
r.value + (h.keyCode === 33 ? -1 : 1) * j.value.view
|
|
4287
4287
|
)
|
|
4288
4288
|
), K(h.keyCode === 33 ? 1 : -1, e.multiple)), (h.keyCode === 38 || h.keyCode === 40) && (Qe(h), K(h.keyCode === 38 ? -1 : 1, e.multiple));
|
|
4289
|
-
const _e =
|
|
4289
|
+
const _e = E.value;
|
|
4290
4290
|
if ((p === void 0 || w < Date.now()) && (p = ""), _e > 0 && e.useInput !== !0 && h.key !== void 0 && h.key.length === 1 && h.altKey === !1 && h.ctrlKey === !1 && h.metaKey === !1 && (h.keyCode !== 32 || p.length !== 0)) {
|
|
4291
4291
|
o.value !== !0 && fe(h);
|
|
4292
4292
|
const Pe = h.key.toLocaleLowerCase(), Ue = p.length === 1 && p[0] === Pe;
|
|
@@ -4315,7 +4315,7 @@ const na = Be({
|
|
|
4315
4315
|
} else
|
|
4316
4316
|
De = e.newValueMode;
|
|
4317
4317
|
if (Gt("", e.multiple !== !0, !0), Ue == null) return;
|
|
4318
|
-
(De === "toggle" ? je : Ve)(Ue, De === "add-unique"), e.multiple !== !0 && ((on =
|
|
4318
|
+
(De === "toggle" ? je : Ve)(Ue, De === "add-unique"), e.multiple !== !0 && ((on = z.value) == null || on.focus(), xe());
|
|
4319
4319
|
};
|
|
4320
4320
|
if (e.onNewValue !== void 0 ? l("newValue", c.value, Pe) : Pe(c.value), e.multiple !== !0) return;
|
|
4321
4321
|
}
|
|
@@ -4323,7 +4323,7 @@ const na = Be({
|
|
|
4323
4323
|
}
|
|
4324
4324
|
}
|
|
4325
4325
|
function Ut() {
|
|
4326
|
-
return
|
|
4326
|
+
return S === !0 ? H.value : O.value !== null && O.value.contentEl !== null ? O.value.contentEl : void 0;
|
|
4327
4327
|
}
|
|
4328
4328
|
function Rt() {
|
|
4329
4329
|
return Ut();
|
|
@@ -4368,7 +4368,7 @@ const na = Be({
|
|
|
4368
4368
|
}
|
|
4369
4369
|
function kn(h, J) {
|
|
4370
4370
|
const le = J === !0 ? { ...nt.value, ...C.splitAttrs.attributes.value } : void 0, _e = {
|
|
4371
|
-
ref: J === !0 ?
|
|
4371
|
+
ref: J === !0 ? z : void 0,
|
|
4372
4372
|
key: "i_t",
|
|
4373
4373
|
class: te.value,
|
|
4374
4374
|
style: e.inputStyle,
|
|
@@ -4384,10 +4384,10 @@ const na = Be({
|
|
|
4384
4384
|
readonly: e.readonly === !0,
|
|
4385
4385
|
...Ee.value
|
|
4386
4386
|
};
|
|
4387
|
-
return h !== !0 &&
|
|
4387
|
+
return h !== !0 && S === !0 && (Array.isArray(_e.class) === !0 ? _e.class = [..._e.class, "no-pointer-events"] : _e.class += " no-pointer-events"), m("input", _e);
|
|
4388
4388
|
}
|
|
4389
4389
|
function an(h) {
|
|
4390
|
-
v !== null && (clearTimeout(v), v = null), b !== null && (clearTimeout(b), b = null), !(h && h.target && h.target.qComposing === !0) && (Wt(h.target.value || ""),
|
|
4390
|
+
v !== null && (clearTimeout(v), v = null), b !== null && (clearTimeout(b), b = null), !(h && h.target && h.target.qComposing === !0) && (Wt(h.target.value || ""), q = !0, B = c.value, C.focused.value !== !0 && (S !== !0 || d.value === !0) && C.focus(), e.onFilter !== void 0 && (v = setTimeout(() => {
|
|
4391
4391
|
v = null, Tt(c.value);
|
|
4392
4392
|
}, e.inputDebounce)));
|
|
4393
4393
|
}
|
|
@@ -4397,11 +4397,11 @@ const na = Be({
|
|
|
4397
4397
|
}, e.inputDebounce));
|
|
4398
4398
|
}
|
|
4399
4399
|
function Gt(h, J, le) {
|
|
4400
|
-
|
|
4400
|
+
q = le !== !0, e.useInput === !0 && (Wt(h, !0), (J === !0 || le !== !0) && (B = h), J !== !0 && Tt(h));
|
|
4401
4401
|
}
|
|
4402
4402
|
function Tt(h, J, le) {
|
|
4403
4403
|
if (e.onFilter === void 0 || J !== !0 && C.focused.value !== !0) return;
|
|
4404
|
-
C.innerLoading.value === !0 ? l("filterAbort") : (C.innerLoading.value = !0, s.value = !0), h !== "" && e.multiple !== !0 &&
|
|
4404
|
+
C.innerLoading.value === !0 ? l("filterAbort") : (C.innerLoading.value = !0, s.value = !0), h !== "" && e.multiple !== !0 && k.value.length !== 0 && q !== !0 && h === Q.value(k.value[0]) && (h = "");
|
|
4405
4405
|
const _e = setTimeout(() => {
|
|
4406
4406
|
o.value === !0 && (o.value = !1);
|
|
4407
4407
|
}, 10);
|
|
@@ -4424,7 +4424,7 @@ const na = Be({
|
|
|
4424
4424
|
}
|
|
4425
4425
|
function cl() {
|
|
4426
4426
|
return m(Ro, {
|
|
4427
|
-
ref:
|
|
4427
|
+
ref: O,
|
|
4428
4428
|
class: $.value,
|
|
4429
4429
|
style: e.popupContentStyle,
|
|
4430
4430
|
modelValue: o.value,
|
|
@@ -4458,7 +4458,7 @@ const na = Be({
|
|
|
4458
4458
|
}
|
|
4459
4459
|
function f(h) {
|
|
4460
4460
|
var J;
|
|
4461
|
-
yt(h), (J =
|
|
4461
|
+
yt(h), (J = z.value) == null || J.focus(), d.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4462
4462
|
}
|
|
4463
4463
|
function _(h) {
|
|
4464
4464
|
yt(h), Re(() => {
|
|
@@ -4489,7 +4489,7 @@ const na = Be({
|
|
|
4489
4489
|
];
|
|
4490
4490
|
return o.value === !0 && h.push(
|
|
4491
4491
|
m("div", {
|
|
4492
|
-
ref:
|
|
4492
|
+
ref: H,
|
|
4493
4493
|
class: $.value + " scroll",
|
|
4494
4494
|
style: e.popupContentStyle,
|
|
4495
4495
|
...ct.value,
|
|
@@ -4497,7 +4497,7 @@ const na = Be({
|
|
|
4497
4497
|
onScrollPassive: D
|
|
4498
4498
|
}, Pt())
|
|
4499
4499
|
), m(Ho, {
|
|
4500
|
-
ref:
|
|
4500
|
+
ref: T,
|
|
4501
4501
|
modelValue: i.value,
|
|
4502
4502
|
position: e.useInput === !0 ? "top" : void 0,
|
|
4503
4503
|
transitionShow: P,
|
|
@@ -4513,7 +4513,7 @@ const na = Be({
|
|
|
4513
4513
|
}, h));
|
|
4514
4514
|
}
|
|
4515
4515
|
function X(h) {
|
|
4516
|
-
ca(h),
|
|
4516
|
+
ca(h), T.value !== null && T.value.__updateRefocusTarget(
|
|
4517
4517
|
C.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4518
4518
|
), C.focused.value = !1;
|
|
4519
4519
|
}
|
|
@@ -4522,13 +4522,13 @@ const na = Be({
|
|
|
4522
4522
|
}
|
|
4523
4523
|
function ye() {
|
|
4524
4524
|
const h = document.activeElement;
|
|
4525
|
-
(h === null || h.id !== C.targetUid.value) &&
|
|
4525
|
+
(h === null || h.id !== C.targetUid.value) && z.value !== null && z.value !== h && z.value.focus(), be();
|
|
4526
4526
|
}
|
|
4527
4527
|
function ae() {
|
|
4528
4528
|
i.value !== !0 && (r.value = -1, o.value === !0 && (o.value = !1), C.focused.value === !1 && (y !== null && (clearTimeout(y), y = null), C.innerLoading.value === !0 && (l("filterAbort"), C.innerLoading.value = !1, s.value = !1)));
|
|
4529
4529
|
}
|
|
4530
4530
|
function fe(h) {
|
|
4531
|
-
C.editable.value === !0 && (
|
|
4531
|
+
C.editable.value === !0 && (S === !0 ? (C.onControlFocusin(h), i.value = !0, Re(() => {
|
|
4532
4532
|
C.focus();
|
|
4533
4533
|
})) : C.focus(), e.onFilter !== void 0 ? Tt(c.value) : (ke.value !== !0 || n["no-option"] !== void 0) && (o.value = !0));
|
|
4534
4534
|
}
|
|
@@ -4537,7 +4537,7 @@ const na = Be({
|
|
|
4537
4537
|
}
|
|
4538
4538
|
function St() {
|
|
4539
4539
|
e.useInput === !0 && Gt(
|
|
4540
|
-
e.multiple !== !0 && e.fillInput === !0 &&
|
|
4540
|
+
e.multiple !== !0 && e.fillInput === !0 && k.value.length !== 0 && Q.value(k.value[0]) || "",
|
|
4541
4541
|
!0,
|
|
4542
4542
|
!0
|
|
4543
4543
|
);
|
|
@@ -4545,8 +4545,8 @@ const na = Be({
|
|
|
4545
4545
|
function vl(h) {
|
|
4546
4546
|
let J = -1;
|
|
4547
4547
|
if (h === !0) {
|
|
4548
|
-
if (
|
|
4549
|
-
const le = ze.value(
|
|
4548
|
+
if (k.value.length !== 0) {
|
|
4549
|
+
const le = ze.value(k.value[0]);
|
|
4550
4550
|
J = e.options.findIndex((_e) => jt(ze.value(_e), le));
|
|
4551
4551
|
}
|
|
4552
4552
|
G(J);
|
|
@@ -4559,7 +4559,7 @@ const na = Be({
|
|
|
4559
4559
|
}));
|
|
4560
4560
|
}
|
|
4561
4561
|
function ua() {
|
|
4562
|
-
i.value === !1 &&
|
|
4562
|
+
i.value === !1 && O.value !== null && O.value.updatePosition();
|
|
4563
4563
|
}
|
|
4564
4564
|
function sa(h) {
|
|
4565
4565
|
h !== void 0 && yt(h), l("popupShow", h), C.hasPopupOpen = !0, C.onControlFocusin(h);
|
|
@@ -4568,7 +4568,7 @@ const na = Be({
|
|
|
4568
4568
|
h !== void 0 && yt(h), l("popupHide", h), C.hasPopupOpen = !1, C.onControlFocusout(h);
|
|
4569
4569
|
}
|
|
4570
4570
|
function da() {
|
|
4571
|
-
|
|
4571
|
+
S = a.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? n["no-option"] !== void 0 || e.onFilter !== void 0 || ke.value === !1 : !0), P = a.platform.is.ios === !0 && S === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
|
|
4572
4572
|
}
|
|
4573
4573
|
return oo(da), xr(ua), da(), Ye(() => {
|
|
4574
4574
|
v !== null && clearTimeout(v), b !== null && clearTimeout(b);
|
|
@@ -4590,12 +4590,12 @@ const na = Be({
|
|
|
4590
4590
|
getOptionValue: (...h) => ze.value.apply(null, h),
|
|
4591
4591
|
getOptionLabel: (...h) => Q.value.apply(null, h)
|
|
4592
4592
|
}), Object.assign(C, {
|
|
4593
|
-
innerValue:
|
|
4593
|
+
innerValue: k,
|
|
4594
4594
|
fieldClass: u(
|
|
4595
4595
|
() => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
|
|
4596
4596
|
),
|
|
4597
|
-
inputRef:
|
|
4598
|
-
targetRef:
|
|
4597
|
+
inputRef: V,
|
|
4598
|
+
targetRef: z,
|
|
4599
4599
|
hasValue: ne,
|
|
4600
4600
|
showPopup: fe,
|
|
4601
4601
|
floatingLabel: u(
|
|
@@ -4603,7 +4603,7 @@ const na = Be({
|
|
|
4603
4603
|
),
|
|
4604
4604
|
getControlChild: () => {
|
|
4605
4605
|
if (C.editable.value !== !1 && (i.value === !0 || ke.value !== !0 || n["no-option"] !== void 0))
|
|
4606
|
-
return
|
|
4606
|
+
return S === !0 ? I() : cl();
|
|
4607
4607
|
C.hasPopupOpen === !0 && (C.hasPopupOpen = !1);
|
|
4608
4608
|
},
|
|
4609
4609
|
controlEvents: {
|
|
@@ -4617,22 +4617,22 @@ const na = Be({
|
|
|
4617
4617
|
},
|
|
4618
4618
|
onClick(h) {
|
|
4619
4619
|
var J;
|
|
4620
|
-
if (ft(h),
|
|
4621
|
-
ae(), (J =
|
|
4620
|
+
if (ft(h), S !== !0 && o.value === !0) {
|
|
4621
|
+
ae(), (J = z.value) == null || J.focus();
|
|
4622
4622
|
return;
|
|
4623
4623
|
}
|
|
4624
4624
|
fe(h);
|
|
4625
4625
|
}
|
|
4626
4626
|
},
|
|
4627
4627
|
getControl: (h) => {
|
|
4628
|
-
const J = Dn(), le = h === !0 || i.value !== !0 ||
|
|
4628
|
+
const J = Dn(), le = h === !0 || i.value !== !0 || S !== !0;
|
|
4629
4629
|
if (e.useInput === !0)
|
|
4630
4630
|
J.push(kn(h, le));
|
|
4631
4631
|
else if (C.editable.value === !0) {
|
|
4632
4632
|
const Pe = le === !0 ? nt.value : void 0;
|
|
4633
4633
|
J.push(
|
|
4634
4634
|
m("input", {
|
|
4635
|
-
ref: le === !0 ?
|
|
4635
|
+
ref: le === !0 ? z : void 0,
|
|
4636
4636
|
key: "d_t",
|
|
4637
4637
|
class: "q-select__focus-target",
|
|
4638
4638
|
id: le === !0 ? C.targetUid.value : void 0,
|
|
@@ -4653,12 +4653,12 @@ const na = Be({
|
|
|
4653
4653
|
})
|
|
4654
4654
|
);
|
|
4655
4655
|
}
|
|
4656
|
-
if (
|
|
4656
|
+
if (M.value !== void 0 && e.disable !== !0 && de.value.length !== 0) {
|
|
4657
4657
|
const Pe = de.value.map((Ue) => m("option", { value: Ue, selected: !0 }));
|
|
4658
4658
|
J.push(
|
|
4659
4659
|
m("select", {
|
|
4660
4660
|
class: "hidden",
|
|
4661
|
-
name:
|
|
4661
|
+
name: M.value,
|
|
4662
4662
|
multiple: e.multiple
|
|
4663
4663
|
}, Pe)
|
|
4664
4664
|
);
|
|
@@ -4701,25 +4701,25 @@ const na = Be({
|
|
|
4701
4701
|
r == null ? void 0 : r.componentDefaults,
|
|
4702
4702
|
"select"
|
|
4703
4703
|
), {
|
|
4704
|
-
autocomplete:
|
|
4704
|
+
autocomplete: B,
|
|
4705
4705
|
autocompleteThreshold: P,
|
|
4706
4706
|
useInput: p,
|
|
4707
4707
|
// We control this via useFilter
|
|
4708
4708
|
fillInput: w,
|
|
4709
4709
|
// We control this via useFilter
|
|
4710
|
-
hideSelected:
|
|
4710
|
+
hideSelected: V,
|
|
4711
4711
|
// We control this via useFilter
|
|
4712
|
-
...
|
|
4712
|
+
...z
|
|
4713
4713
|
} = y;
|
|
4714
|
-
return
|
|
4714
|
+
return z;
|
|
4715
4715
|
}), s = u(() => {
|
|
4716
4716
|
if (!l.schema.enum) return [];
|
|
4717
4717
|
const y = l.schema["x-enum-labels"];
|
|
4718
|
-
return l.schema.enum.map((
|
|
4719
|
-
let P = String(
|
|
4720
|
-
return y &&
|
|
4718
|
+
return l.schema.enum.map((B) => {
|
|
4719
|
+
let P = String(B);
|
|
4720
|
+
return y && B in y && (P = y[B]), {
|
|
4721
4721
|
label: P,
|
|
4722
|
-
value:
|
|
4722
|
+
value: B
|
|
4723
4723
|
};
|
|
4724
4724
|
});
|
|
4725
4725
|
}), v = N([]);
|
|
@@ -4734,8 +4734,8 @@ const na = Be({
|
|
|
4734
4734
|
var P, p;
|
|
4735
4735
|
const y = l.schema["x-component-props"];
|
|
4736
4736
|
return (y == null ? void 0 : y.autocomplete) !== void 0 ? y.autocomplete : ((p = (P = r == null ? void 0 : r.componentDefaults) == null ? void 0 : P.select) == null ? void 0 : p.autocomplete) !== void 0 ? r.componentDefaults.select.autocomplete : !0;
|
|
4737
|
-
}), g = (y,
|
|
4738
|
-
|
|
4737
|
+
}), g = (y, B) => {
|
|
4738
|
+
B(() => {
|
|
4739
4739
|
if (y === "")
|
|
4740
4740
|
v.value = s.value;
|
|
4741
4741
|
else {
|
|
@@ -4745,10 +4745,10 @@ const na = Be({
|
|
|
4745
4745
|
);
|
|
4746
4746
|
}
|
|
4747
4747
|
});
|
|
4748
|
-
},
|
|
4748
|
+
}, S = u(() => gt(r == null ? void 0 : r.componentDefaults)), q = { props: l, value: t, errorMessage: a, label: o, hint: i, formContext: r, fieldId: c, quasarProps: d, allOptions: s, filteredOptions: v, useFilter: b, filterFn: g, fieldGap: S, get QSelect() {
|
|
4749
4749
|
return na;
|
|
4750
4750
|
} };
|
|
4751
|
-
return Object.defineProperty(
|
|
4751
|
+
return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
|
|
4752
4752
|
}
|
|
4753
4753
|
});
|
|
4754
4754
|
function Su(e, n, l, t, a, o) {
|
|
@@ -4894,7 +4894,7 @@ function Pu(e) {
|
|
|
4894
4894
|
}), c = u(() => {
|
|
4895
4895
|
const y = e.fab === !1 && e.fabMini === !1 ? n.value : {};
|
|
4896
4896
|
return e.padding !== void 0 ? Object.assign({}, y, {
|
|
4897
|
-
padding: e.padding.split(/\s+/).map((
|
|
4897
|
+
padding: e.padding.split(/\s+/).map((B) => B in Ya ? Ya[B] + "px" : B).join(" "),
|
|
4898
4898
|
minWidth: "0",
|
|
4899
4899
|
minHeight: "0"
|
|
4900
4900
|
}) : y;
|
|
@@ -4910,18 +4910,18 @@ function Pu(e) {
|
|
|
4910
4910
|
"aria-valuemax": 100,
|
|
4911
4911
|
"aria-valuenow": e.percentage
|
|
4912
4912
|
}), y;
|
|
4913
|
-
}),
|
|
4913
|
+
}), S = u(() => {
|
|
4914
4914
|
let y;
|
|
4915
4915
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? y = `text-${e.textColor || e.color}` : y = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (y = `text-${e.textColor}`);
|
|
4916
|
-
const
|
|
4917
|
-
return `q-btn--${b.value} q-btn--${
|
|
4918
|
-
}),
|
|
4916
|
+
const B = e.round === !0 ? "round" : `rectangle${d.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
4917
|
+
return `q-btn--${b.value} q-btn--${B}` + (y !== void 0 ? " " + y : "") + (s.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
4918
|
+
}), q = u(
|
|
4919
4919
|
() => l.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
4920
4920
|
);
|
|
4921
4921
|
return {
|
|
4922
|
-
classes:
|
|
4922
|
+
classes: S,
|
|
4923
4923
|
style: c,
|
|
4924
|
-
innerClasses:
|
|
4924
|
+
innerClasses: q,
|
|
4925
4925
|
attributes: g,
|
|
4926
4926
|
hasLink: a,
|
|
4927
4927
|
linkTag: o,
|
|
@@ -4951,8 +4951,8 @@ const st = Be({
|
|
|
4951
4951
|
navigateOnClick: s,
|
|
4952
4952
|
isActionable: v
|
|
4953
4953
|
} = Pu(e), b = N(null), g = N(null);
|
|
4954
|
-
let
|
|
4955
|
-
const
|
|
4954
|
+
let S = null, q, y = null;
|
|
4955
|
+
const B = u(
|
|
4956
4956
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
4957
4957
|
), P = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
4958
4958
|
keyCodes: c.value === !0 ? [13, 32] : [13],
|
|
@@ -4960,7 +4960,7 @@ const st = Be({
|
|
|
4960
4960
|
}), p = u(() => ({ center: e.round })), w = u(() => {
|
|
4961
4961
|
const F = Math.max(0, Math.min(100, e.percentage));
|
|
4962
4962
|
return F > 0 ? { transition: "transform 0.6s", transform: `translateX(${F - 100}%)` } : {};
|
|
4963
|
-
}),
|
|
4963
|
+
}), V = u(() => {
|
|
4964
4964
|
if (e.loading === !0)
|
|
4965
4965
|
return {
|
|
4966
4966
|
onMousedown: A,
|
|
@@ -4971,13 +4971,13 @@ const st = Be({
|
|
|
4971
4971
|
};
|
|
4972
4972
|
if (v.value === !0) {
|
|
4973
4973
|
const F = {
|
|
4974
|
-
onClick:
|
|
4975
|
-
onKeydown:
|
|
4976
|
-
onMousedown:
|
|
4974
|
+
onClick: O,
|
|
4975
|
+
onKeydown: T,
|
|
4976
|
+
onMousedown: M
|
|
4977
4977
|
};
|
|
4978
4978
|
if (t.$q.platform.has.touch === !0) {
|
|
4979
|
-
const
|
|
4980
|
-
F[`onTouchstart${
|
|
4979
|
+
const j = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
4980
|
+
F[`onTouchstart${j}`] = H;
|
|
4981
4981
|
}
|
|
4982
4982
|
return F;
|
|
4983
4983
|
}
|
|
@@ -4985,19 +4985,19 @@ const st = Be({
|
|
|
4985
4985
|
// needed; especially for disabled <a> tags
|
|
4986
4986
|
onClick: Qe
|
|
4987
4987
|
};
|
|
4988
|
-
}),
|
|
4988
|
+
}), z = u(() => ({
|
|
4989
4989
|
ref: b,
|
|
4990
4990
|
class: "q-btn q-btn-item non-selectable no-outline " + a.value,
|
|
4991
4991
|
style: o.value,
|
|
4992
4992
|
...r.value,
|
|
4993
|
-
...
|
|
4993
|
+
...V.value
|
|
4994
4994
|
}));
|
|
4995
|
-
function
|
|
4995
|
+
function O(F) {
|
|
4996
4996
|
if (b.value !== null) {
|
|
4997
4997
|
if (F !== void 0) {
|
|
4998
4998
|
if (F.defaultPrevented === !0) return;
|
|
4999
|
-
const
|
|
5000
|
-
if (e.type === "submit" &&
|
|
4999
|
+
const j = document.activeElement;
|
|
5000
|
+
if (e.type === "submit" && j !== document.body && b.value.contains(j) === !1 && j.contains(b.value) === !1) {
|
|
5001
5001
|
F.qAvoidFocus !== !0 && b.value.focus();
|
|
5002
5002
|
const G = () => {
|
|
5003
5003
|
var R;
|
|
@@ -5009,67 +5009,67 @@ const st = Be({
|
|
|
5009
5009
|
s(F);
|
|
5010
5010
|
}
|
|
5011
5011
|
}
|
|
5012
|
-
function
|
|
5013
|
-
b.value !== null && (l("keydown", F), Lt(F, [13, 32]) === !0 && sn !== b.value && (sn !== null &&
|
|
5012
|
+
function T(F) {
|
|
5013
|
+
b.value !== null && (l("keydown", F), Lt(F, [13, 32]) === !0 && sn !== b.value && (sn !== null && E(), F.defaultPrevented !== !0 && (F.qAvoidFocus !== !0 && b.value.focus(), sn = b.value, b.value.classList.add("q-btn--active"), document.addEventListener("keyup", x, !0), b.value.addEventListener("blur", x, qt)), Qe(F)));
|
|
5014
5014
|
}
|
|
5015
|
-
function
|
|
5016
|
-
b.value !== null && (l("touchstart", F), F.defaultPrevented !== !0 && (un !== b.value && (un !== null &&
|
|
5017
|
-
y = null,
|
|
5015
|
+
function H(F) {
|
|
5016
|
+
b.value !== null && (l("touchstart", F), F.defaultPrevented !== !0 && (un !== b.value && (un !== null && E(), un = b.value, S = F.target, S.addEventListener("touchcancel", x, qt), S.addEventListener("touchend", x, qt)), q = !0, y !== null && clearTimeout(y), y = setTimeout(() => {
|
|
5017
|
+
y = null, q = !1;
|
|
5018
5018
|
}, 200)));
|
|
5019
5019
|
}
|
|
5020
|
-
function
|
|
5021
|
-
b.value !== null && (F.qSkipRipple =
|
|
5020
|
+
function M(F) {
|
|
5021
|
+
b.value !== null && (F.qSkipRipple = q === !0, l("mousedown", F), F.defaultPrevented !== !0 && cn !== b.value && (cn !== null && E(), cn = b.value, b.value.classList.add("q-btn--active"), document.addEventListener("mouseup", x, qt)));
|
|
5022
5022
|
}
|
|
5023
|
-
function
|
|
5023
|
+
function x(F) {
|
|
5024
5024
|
if (b.value !== null && !((F == null ? void 0 : F.type) === "blur" && document.activeElement === b.value)) {
|
|
5025
5025
|
if ((F == null ? void 0 : F.type) === "keyup") {
|
|
5026
5026
|
if (sn === b.value && Lt(F, [13, 32]) === !0) {
|
|
5027
|
-
const
|
|
5028
|
-
|
|
5027
|
+
const j = new MouseEvent("click", F);
|
|
5028
|
+
j.qKeyEvent = !0, F.defaultPrevented === !0 && ft(j), F.cancelBubble === !0 && yt(j), b.value.dispatchEvent(j), Qe(F), F.qKeyEvent = !0;
|
|
5029
5029
|
}
|
|
5030
5030
|
l("keyup", F);
|
|
5031
5031
|
}
|
|
5032
|
-
|
|
5032
|
+
E();
|
|
5033
5033
|
}
|
|
5034
5034
|
}
|
|
5035
|
-
function
|
|
5035
|
+
function E(F) {
|
|
5036
5036
|
var G, R;
|
|
5037
|
-
const
|
|
5038
|
-
F !== !0 && (un === b.value || cn === b.value) &&
|
|
5037
|
+
const j = g.value;
|
|
5038
|
+
F !== !0 && (un === b.value || cn === b.value) && j !== null && j !== document.activeElement && (j.setAttribute("tabindex", -1), j.focus()), un === b.value && (S !== null && (S.removeEventListener("touchcancel", x, qt), S.removeEventListener("touchend", x, qt)), un = S = null), cn === b.value && (document.removeEventListener("mouseup", x, qt), cn = null), sn === b.value && (document.removeEventListener("keyup", x, !0), (G = b.value) == null || G.removeEventListener("blur", x, qt), sn = null), (R = b.value) == null || R.classList.remove("q-btn--active");
|
|
5039
5039
|
}
|
|
5040
5040
|
function A(F) {
|
|
5041
5041
|
Qe(F), F.qSkipRipple = !0;
|
|
5042
5042
|
}
|
|
5043
5043
|
return Ye(() => {
|
|
5044
|
-
|
|
5044
|
+
E(!0);
|
|
5045
5045
|
}), Object.assign(t, {
|
|
5046
5046
|
click: (F) => {
|
|
5047
|
-
v.value === !0 &&
|
|
5047
|
+
v.value === !0 && O(F);
|
|
5048
5048
|
}
|
|
5049
5049
|
}), () => {
|
|
5050
5050
|
let F = [];
|
|
5051
5051
|
e.icon !== void 0 && F.push(
|
|
5052
5052
|
m(Xe, {
|
|
5053
5053
|
name: e.icon,
|
|
5054
|
-
left: e.stack !== !0 &&
|
|
5054
|
+
left: e.stack !== !0 && B.value === !0,
|
|
5055
5055
|
role: "img"
|
|
5056
5056
|
})
|
|
5057
|
-
),
|
|
5057
|
+
), B.value === !0 && F.push(
|
|
5058
5058
|
m("span", { class: "block" }, [e.label])
|
|
5059
5059
|
), F = Qt(n.default, F), e.iconRight !== void 0 && e.round === !1 && F.push(
|
|
5060
5060
|
m(Xe, {
|
|
5061
5061
|
name: e.iconRight,
|
|
5062
|
-
right: e.stack !== !0 &&
|
|
5062
|
+
right: e.stack !== !0 && B.value === !0,
|
|
5063
5063
|
role: "img"
|
|
5064
5064
|
})
|
|
5065
5065
|
);
|
|
5066
|
-
const
|
|
5066
|
+
const j = [
|
|
5067
5067
|
m("span", {
|
|
5068
5068
|
class: "q-focus-helper",
|
|
5069
5069
|
ref: g
|
|
5070
5070
|
})
|
|
5071
5071
|
];
|
|
5072
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
5072
|
+
return e.loading === !0 && e.percentage !== void 0 && j.push(
|
|
5073
5073
|
m("span", {
|
|
5074
5074
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
5075
5075
|
}, [
|
|
@@ -5078,11 +5078,11 @@ const st = Be({
|
|
|
5078
5078
|
style: w.value
|
|
5079
5079
|
})
|
|
5080
5080
|
])
|
|
5081
|
-
),
|
|
5081
|
+
), j.push(
|
|
5082
5082
|
m("span", {
|
|
5083
5083
|
class: "q-btn__content text-center col items-center q-anchor--skip " + i.value
|
|
5084
5084
|
}, F)
|
|
5085
|
-
), e.loading !== null &&
|
|
5085
|
+
), e.loading !== null && j.push(
|
|
5086
5086
|
m(pt, {
|
|
5087
5087
|
name: "q-transition--fade"
|
|
5088
5088
|
}, () => e.loading === !0 ? [
|
|
@@ -5094,8 +5094,8 @@ const st = Be({
|
|
|
5094
5094
|
), Yt(
|
|
5095
5095
|
m(
|
|
5096
5096
|
d.value,
|
|
5097
|
-
|
|
5098
|
-
|
|
5097
|
+
z.value,
|
|
5098
|
+
j
|
|
5099
5099
|
),
|
|
5100
5100
|
[[
|
|
5101
5101
|
Gl,
|
|
@@ -5159,43 +5159,43 @@ const la = Ql(
|
|
|
5159
5159
|
const v = N(s()), b = u(
|
|
5160
5160
|
() => v.value === "menu" ? { maxHeight: "99vh" } : {}
|
|
5161
5161
|
);
|
|
5162
|
-
ue(() => s(), (
|
|
5163
|
-
i.value !== !0 && (v.value =
|
|
5162
|
+
ue(() => s(), (q) => {
|
|
5163
|
+
i.value !== !0 && (v.value = q);
|
|
5164
5164
|
});
|
|
5165
|
-
function g(
|
|
5166
|
-
i.value = !0, l("show",
|
|
5165
|
+
function g(q) {
|
|
5166
|
+
i.value = !0, l("show", q);
|
|
5167
5167
|
}
|
|
5168
|
-
function q
|
|
5169
|
-
i.value = !1, v.value = s(), l("hide",
|
|
5168
|
+
function S(q) {
|
|
5169
|
+
i.value = !1, v.value = s(), l("hide", q);
|
|
5170
5170
|
}
|
|
5171
5171
|
return Object.assign(a, {
|
|
5172
|
-
show(
|
|
5173
|
-
d(
|
|
5172
|
+
show(q) {
|
|
5173
|
+
d(q) === !0 && r.value.show(q);
|
|
5174
5174
|
},
|
|
5175
|
-
hide(
|
|
5176
|
-
r.value.hide(
|
|
5175
|
+
hide(q) {
|
|
5176
|
+
r.value.hide(q);
|
|
5177
5177
|
},
|
|
5178
|
-
toggle(
|
|
5179
|
-
r.value.toggle(
|
|
5178
|
+
toggle(q) {
|
|
5179
|
+
r.value.toggle(q);
|
|
5180
5180
|
}
|
|
5181
5181
|
}), _n(a, "currentComponent", () => ({
|
|
5182
5182
|
type: v.value,
|
|
5183
5183
|
ref: r.value
|
|
5184
5184
|
})), () => {
|
|
5185
|
-
const
|
|
5185
|
+
const q = {
|
|
5186
5186
|
ref: r,
|
|
5187
5187
|
...b.value,
|
|
5188
5188
|
...t,
|
|
5189
5189
|
onShow: g,
|
|
5190
|
-
onHide:
|
|
5190
|
+
onHide: S
|
|
5191
5191
|
};
|
|
5192
5192
|
let y;
|
|
5193
|
-
return v.value === "dialog" ? y = Ho : (y = Ro, Object.assign(
|
|
5193
|
+
return v.value === "dialog" ? y = Ho : (y = Ro, Object.assign(q, {
|
|
5194
5194
|
target: e.target,
|
|
5195
5195
|
contextMenu: e.contextMenu,
|
|
5196
5196
|
noParentEvent: !0,
|
|
5197
5197
|
separateClosePopup: !0
|
|
5198
|
-
})), m(y,
|
|
5198
|
+
})), m(y, q, n.default);
|
|
5199
5199
|
};
|
|
5200
5200
|
}
|
|
5201
5201
|
});
|
|
@@ -5638,8 +5638,8 @@ function Cn(e, n, l, t, a) {
|
|
|
5638
5638
|
const g = parseInt(v[s.X !== void 0 ? s.X : s.x], 10);
|
|
5639
5639
|
if (isNaN(g) === !0 || g < 0)
|
|
5640
5640
|
return o;
|
|
5641
|
-
const
|
|
5642
|
-
o.year =
|
|
5641
|
+
const S = new Date(g * (s.X !== void 0 ? 1e3 : 1));
|
|
5642
|
+
o.year = S.getFullYear(), o.month = S.getMonth() + 1, o.day = S.getDate(), o.hour = S.getHours(), o.minute = S.getMinutes(), o.second = S.getSeconds(), o.millisecond = S.getMilliseconds();
|
|
5643
5643
|
} else {
|
|
5644
5644
|
if (s.YYYY !== void 0)
|
|
5645
5645
|
o.year = parseInt(v[s.YYYY], 10);
|
|
@@ -5985,17 +5985,17 @@ const er = Be({
|
|
|
5985
5985
|
setup(e, { slots: n, emit: l }) {
|
|
5986
5986
|
const { proxy: t } = Te(), { $q: a } = t, o = Bt(e, a), { getCache: i } = Du(), { tabindex: r, headerClass: c, getLocale: d, getCurrentDate: s } = Wo(e, a);
|
|
5987
5987
|
let v;
|
|
5988
|
-
const b = po(e), g = Wl(b),
|
|
5988
|
+
const b = po(e), g = Wl(b), S = N(null), q = N(Ve()), y = N(d()), B = u(() => Ve()), P = u(() => d()), p = u(() => s()), w = N(L(q.value, y.value)), V = N(e.defaultView), z = u(() => a.lang.rtl === !0 ? "right" : "left"), O = N(z.value), T = N(z.value), H = w.value.year, M = N(H - H % Dt - (H < 0 ? Dt : 0)), x = N(null), E = u(() => {
|
|
5989
5989
|
const f = e.landscape === !0 ? "landscape" : "portrait";
|
|
5990
5990
|
return `q-date q-date--${f} q-date--${f}-${e.minimal === !0 ? "minimal" : "standard"}` + (o.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" : "");
|
|
5991
|
-
}), A = u(() => e.color || "primary"), F = u(() => e.textColor || "white"),
|
|
5991
|
+
}), A = u(() => e.color || "primary"), F = u(() => e.textColor || "white"), j = u(
|
|
5992
5992
|
() => e.emitImmediately === !0 && e.multiple !== !0 && e.range !== !0
|
|
5993
5993
|
), G = u(() => Array.isArray(e.modelValue) === !0 ? e.modelValue : e.modelValue !== null && e.modelValue !== void 0 ? [e.modelValue] : []), R = u(
|
|
5994
|
-
() => G.value.filter((f) => typeof f == "string").map((f) => je(f,
|
|
5994
|
+
() => G.value.filter((f) => typeof f == "string").map((f) => je(f, q.value, y.value)).filter(
|
|
5995
5995
|
(f) => f.dateHash !== null && f.day !== null && f.month !== null && f.year !== null
|
|
5996
5996
|
)
|
|
5997
5997
|
), D = u(() => {
|
|
5998
|
-
const f = (_) => je(_,
|
|
5998
|
+
const f = (_) => je(_, q.value, y.value);
|
|
5999
5999
|
return G.value.filter((_) => pu(_) === !0 && _.from !== void 0 && _.to !== void 0).map((_) => ({ from: f(_.from), to: f(_.to) })).filter((_) => _.from.dateHash !== null && _.to.dateHash !== null && _.from.dateHash < _.to.dateHash);
|
|
6000
6000
|
}), Z = u(() => e.calendar !== "persian" ? (f) => new Date(f.year, f.month - 1, f.day) : (f) => {
|
|
6001
6001
|
const _ = Ua(f.year, f.month, f.day);
|
|
@@ -6010,7 +6010,7 @@ const er = Be({
|
|
|
6010
6010
|
f.second,
|
|
6011
6011
|
f.millisecond
|
|
6012
6012
|
),
|
|
6013
|
-
_ === void 0 ?
|
|
6013
|
+
_ === void 0 ? q.value : _,
|
|
6014
6014
|
I === void 0 ? y.value : I,
|
|
6015
6015
|
f.year,
|
|
6016
6016
|
f.timezoneOffset
|
|
@@ -6022,11 +6022,11 @@ const er = Be({
|
|
|
6022
6022
|
),
|
|
6023
6023
|
0
|
|
6024
6024
|
)
|
|
6025
|
-
),
|
|
6025
|
+
), k = u(() => {
|
|
6026
6026
|
if (e.title !== void 0 && e.title !== null && e.title.length !== 0)
|
|
6027
6027
|
return e.title;
|
|
6028
|
-
if (
|
|
6029
|
-
const I =
|
|
6028
|
+
if (x.value !== null) {
|
|
6029
|
+
const I = x.value.init, X = Z.value(I);
|
|
6030
6030
|
return y.value.daysShort[X.getDay()] + ", " + y.value.monthsShort[I.month - 1] + " " + I.day + fn + "?";
|
|
6031
6031
|
}
|
|
6032
6032
|
if (C.value === 0)
|
|
@@ -6096,8 +6096,8 @@ const er = Be({
|
|
|
6096
6096
|
}
|
|
6097
6097
|
}), f;
|
|
6098
6098
|
}), lt = u(() => {
|
|
6099
|
-
if (
|
|
6100
|
-
const { init: f, initHash: _, final: I, finalHash: X } =
|
|
6099
|
+
if (x.value === null) return;
|
|
6100
|
+
const { init: f, initHash: _, final: I, finalHash: X } = x.value, [ee, ye] = _ <= X ? [f, I] : [I, f], ae = Ht(ee), fe = Ht(ye);
|
|
6101
6101
|
if (ae !== Ke.value && fe !== Ke.value) return;
|
|
6102
6102
|
const xe = {};
|
|
6103
6103
|
return ae === Ke.value ? (xe.from = ee.day, xe.includeFrom = !0) : xe.from = 1, fe === Ke.value ? (xe.to = ye.day, xe.includeTo = !0) : xe.to = U.value, xe;
|
|
@@ -6223,17 +6223,17 @@ const er = Be({
|
|
|
6223
6223
|
if (v === JSON.stringify(f))
|
|
6224
6224
|
v = 0;
|
|
6225
6225
|
else {
|
|
6226
|
-
const _ = L(
|
|
6226
|
+
const _ = L(q.value, y.value);
|
|
6227
6227
|
at(_.year, _.month, _);
|
|
6228
6228
|
}
|
|
6229
|
-
}), ue(
|
|
6230
|
-
|
|
6229
|
+
}), ue(V, () => {
|
|
6230
|
+
S.value !== null && t.$el.contains(document.activeElement) === !0 && S.value.focus();
|
|
6231
6231
|
}), ue(() => w.value.year + "|" + w.value.month, () => {
|
|
6232
6232
|
l("navigation", { year: w.value.year, month: w.value.month });
|
|
6233
|
-
}), ue(
|
|
6234
|
-
Wt(f, y.value, "mask"),
|
|
6233
|
+
}), ue(B, (f) => {
|
|
6234
|
+
Wt(f, y.value, "mask"), q.value = f;
|
|
6235
6235
|
}), ue(P, (f) => {
|
|
6236
|
-
Wt(
|
|
6236
|
+
Wt(q.value, f, "locale"), y.value = f;
|
|
6237
6237
|
});
|
|
6238
6238
|
function oe(f) {
|
|
6239
6239
|
v = JSON.stringify(f);
|
|
@@ -6251,21 +6251,21 @@ const er = Be({
|
|
|
6251
6251
|
(ee === void 0 || ee.includes(X.day) === !1) && kn(X), he(X.year, X.month);
|
|
6252
6252
|
}
|
|
6253
6253
|
function Ee(f) {
|
|
6254
|
-
Za(f) === !0 && (
|
|
6254
|
+
Za(f) === !0 && (V.value = f);
|
|
6255
6255
|
}
|
|
6256
6256
|
function Me(f, _) {
|
|
6257
6257
|
["month", "year"].includes(f) && (f === "month" ? se : me)(_ === !0 ? -1 : 1);
|
|
6258
6258
|
}
|
|
6259
6259
|
function he(f, _) {
|
|
6260
|
-
|
|
6260
|
+
V.value = "Calendar", at(f, _);
|
|
6261
6261
|
}
|
|
6262
6262
|
function we(f, _) {
|
|
6263
6263
|
if (e.range === !1 || !f) {
|
|
6264
|
-
|
|
6264
|
+
x.value = null;
|
|
6265
6265
|
return;
|
|
6266
6266
|
}
|
|
6267
6267
|
const I = Object.assign({ ...w.value }, f), X = _ !== void 0 ? Object.assign({ ...w.value }, _) : I;
|
|
6268
|
-
|
|
6268
|
+
x.value = {
|
|
6269
6269
|
init: I,
|
|
6270
6270
|
initHash: Ft(I),
|
|
6271
6271
|
final: X,
|
|
@@ -6322,17 +6322,17 @@ const er = Be({
|
|
|
6322
6322
|
}
|
|
6323
6323
|
function se(f) {
|
|
6324
6324
|
let _ = w.value.year, I = Number(w.value.month) + f;
|
|
6325
|
-
I === 13 ? (I = 1, _++) : I === 0 && (I = 12, _--), at(_, I),
|
|
6325
|
+
I === 13 ? (I = 1, _++) : I === 0 && (I = 12, _--), at(_, I), j.value === !0 && Rt("month");
|
|
6326
6326
|
}
|
|
6327
6327
|
function me(f) {
|
|
6328
6328
|
const _ = Number(w.value.year) + f;
|
|
6329
|
-
at(_, w.value.month),
|
|
6329
|
+
at(_, w.value.month), j.value === !0 && Rt("year");
|
|
6330
6330
|
}
|
|
6331
6331
|
function Se(f) {
|
|
6332
|
-
at(f, w.value.month),
|
|
6332
|
+
at(f, w.value.month), V.value = e.defaultView === "Years" ? "Months" : "Calendar", j.value === !0 && Rt("year");
|
|
6333
6333
|
}
|
|
6334
6334
|
function it(f) {
|
|
6335
|
-
at(w.value.year, f),
|
|
6335
|
+
at(w.value.year, f), V.value = "Calendar", j.value === !0 && Rt("month");
|
|
6336
6336
|
}
|
|
6337
6337
|
function pe(f, _) {
|
|
6338
6338
|
const I = nt.value[_];
|
|
@@ -6347,8 +6347,8 @@ const er = Be({
|
|
|
6347
6347
|
Object.assign(w.value, { hour: ee, minute: ye, second: ae, millisecond: fe, timezoneOffset: xe, timeHash: St });
|
|
6348
6348
|
}
|
|
6349
6349
|
const X = f + "/" + Ce(_) + "/01";
|
|
6350
|
-
X !== w.value.dateHash && (
|
|
6351
|
-
|
|
6350
|
+
X !== w.value.dateHash && (O.value = w.value.dateHash < X == (a.lang.rtl !== !0) ? "left" : "right", f !== w.value.year && (T.value = O.value), Re(() => {
|
|
6351
|
+
M.value = f - f % Dt - (f < 0 ? Dt : 0), Object.assign(w.value, {
|
|
6352
6352
|
year: f,
|
|
6353
6353
|
month: _,
|
|
6354
6354
|
day: 1,
|
|
@@ -6427,14 +6427,14 @@ const er = Be({
|
|
|
6427
6427
|
name: "q-transition--fade"
|
|
6428
6428
|
}, () => m("div", {
|
|
6429
6429
|
key: "h-yr-" + ne.value,
|
|
6430
|
-
class: "q-date__header-subtitle q-date__header-link " + (
|
|
6430
|
+
class: "q-date__header-subtitle q-date__header-link " + (V.value === "Years" ? "q-date__header-link--active" : "cursor-pointer"),
|
|
6431
6431
|
tabindex: r.value,
|
|
6432
6432
|
...i("vY", {
|
|
6433
6433
|
onClick() {
|
|
6434
|
-
|
|
6434
|
+
V.value = "Years";
|
|
6435
6435
|
},
|
|
6436
6436
|
onKeyup(f) {
|
|
6437
|
-
f.keyCode === 13 && (
|
|
6437
|
+
f.keyCode === 13 && (V.value = "Years");
|
|
6438
6438
|
}
|
|
6439
6439
|
})
|
|
6440
6440
|
}, [ne.value]))
|
|
@@ -6448,18 +6448,18 @@ const er = Be({
|
|
|
6448
6448
|
m(pt, {
|
|
6449
6449
|
name: "q-transition--fade"
|
|
6450
6450
|
}, () => m("div", {
|
|
6451
|
-
key: "h-sub" +
|
|
6452
|
-
class: "q-date__header-title-label q-date__header-link " + (
|
|
6451
|
+
key: "h-sub" + k.value,
|
|
6452
|
+
class: "q-date__header-title-label q-date__header-link " + (V.value === "Calendar" ? "q-date__header-link--active" : "cursor-pointer"),
|
|
6453
6453
|
tabindex: r.value,
|
|
6454
6454
|
...i("vC", {
|
|
6455
6455
|
onClick() {
|
|
6456
|
-
|
|
6456
|
+
V.value = "Calendar";
|
|
6457
6457
|
},
|
|
6458
6458
|
onKeyup(f) {
|
|
6459
|
-
f.keyCode === 13 && (
|
|
6459
|
+
f.keyCode === 13 && (V.value = "Calendar");
|
|
6460
6460
|
}
|
|
6461
6461
|
})
|
|
6462
|
-
}, [
|
|
6462
|
+
}, [k.value]))
|
|
6463
6463
|
]),
|
|
6464
6464
|
e.todayBtn === !0 ? m(st, {
|
|
6465
6465
|
class: "q-date__header-today self-start",
|
|
@@ -6506,7 +6506,7 @@ const er = Be({
|
|
|
6506
6506
|
label: f,
|
|
6507
6507
|
tabindex: r.value,
|
|
6508
6508
|
...i("view#" + _, { onClick: () => {
|
|
6509
|
-
|
|
6509
|
+
V.value = _;
|
|
6510
6510
|
} })
|
|
6511
6511
|
})
|
|
6512
6512
|
]))
|
|
@@ -6542,7 +6542,7 @@ const er = Be({
|
|
|
6542
6542
|
label: y.value.months[w.value.month - 1],
|
|
6543
6543
|
type: "Months",
|
|
6544
6544
|
key: w.value.month,
|
|
6545
|
-
dir:
|
|
6545
|
+
dir: O.value,
|
|
6546
6546
|
goTo: se,
|
|
6547
6547
|
boundaries: Ze.value.month,
|
|
6548
6548
|
cls: " col"
|
|
@@ -6550,7 +6550,7 @@ const er = Be({
|
|
|
6550
6550
|
label: w.value.year,
|
|
6551
6551
|
type: "Years",
|
|
6552
6552
|
key: w.value.year,
|
|
6553
|
-
dir:
|
|
6553
|
+
dir: T.value,
|
|
6554
6554
|
goTo: me,
|
|
6555
6555
|
boundaries: Ze.value.year,
|
|
6556
6556
|
cls: ""
|
|
@@ -6562,7 +6562,7 @@ const er = Be({
|
|
|
6562
6562
|
class: "q-date__calendar-days-container relative-position overflow-hidden"
|
|
6563
6563
|
}, [
|
|
6564
6564
|
m(pt, {
|
|
6565
|
-
name: "q-transition--slide-" +
|
|
6565
|
+
name: "q-transition--slide-" + O.value
|
|
6566
6566
|
}, () => m("div", {
|
|
6567
6567
|
key: Ke.value,
|
|
6568
6568
|
class: "q-date__calendar-days fit"
|
|
@@ -6620,7 +6620,7 @@ const er = Be({
|
|
|
6620
6620
|
label: w.value.year,
|
|
6621
6621
|
type: "Years",
|
|
6622
6622
|
key: w.value.year,
|
|
6623
|
-
dir:
|
|
6623
|
+
dir: T.value,
|
|
6624
6624
|
goTo: me,
|
|
6625
6625
|
boundaries: Ze.value.year,
|
|
6626
6626
|
cls: " col"
|
|
@@ -6632,7 +6632,7 @@ const er = Be({
|
|
|
6632
6632
|
}, I);
|
|
6633
6633
|
},
|
|
6634
6634
|
Years() {
|
|
6635
|
-
const f =
|
|
6635
|
+
const f = M.value, _ = f + Dt, I = [], X = (ee) => qe.value !== null && qe.value.year > ee || Oe.value !== null && Oe.value.year < ee;
|
|
6636
6636
|
for (let ee = f; ee <= _; ee++) {
|
|
6637
6637
|
const ye = w.value.year === ee;
|
|
6638
6638
|
I.push(
|
|
@@ -6672,7 +6672,7 @@ const er = Be({
|
|
|
6672
6672
|
tabindex: r.value,
|
|
6673
6673
|
disable: X(f),
|
|
6674
6674
|
...i("y-", { onClick: () => {
|
|
6675
|
-
|
|
6675
|
+
M.value -= Dt;
|
|
6676
6676
|
} })
|
|
6677
6677
|
})
|
|
6678
6678
|
]),
|
|
@@ -6691,7 +6691,7 @@ const er = Be({
|
|
|
6691
6691
|
tabindex: r.value,
|
|
6692
6692
|
disable: X(_),
|
|
6693
6693
|
...i("y+", { onClick: () => {
|
|
6694
|
-
|
|
6694
|
+
M.value += Dt;
|
|
6695
6695
|
} })
|
|
6696
6696
|
})
|
|
6697
6697
|
])
|
|
@@ -6704,7 +6704,7 @@ const er = Be({
|
|
|
6704
6704
|
pe(_, Ke.value);
|
|
6705
6705
|
return;
|
|
6706
6706
|
}
|
|
6707
|
-
if (
|
|
6707
|
+
if (x.value === null) {
|
|
6708
6708
|
const I = ze.value.find((ee) => ee.fill !== !0 && ee.i === f);
|
|
6709
6709
|
if (e.noUnset !== !0 && I.range !== void 0) {
|
|
6710
6710
|
an({ target: _, from: I.range.from, to: I.range.to });
|
|
@@ -6715,24 +6715,24 @@ const er = Be({
|
|
|
6715
6715
|
return;
|
|
6716
6716
|
}
|
|
6717
6717
|
const X = Ft(_);
|
|
6718
|
-
|
|
6718
|
+
x.value = {
|
|
6719
6719
|
init: _,
|
|
6720
6720
|
initHash: X,
|
|
6721
6721
|
final: _,
|
|
6722
6722
|
finalHash: X
|
|
6723
6723
|
}, l("rangeStart", Ae(_));
|
|
6724
6724
|
} else {
|
|
6725
|
-
const I =
|
|
6726
|
-
|
|
6725
|
+
const I = x.value.initHash, X = Ft(_), ee = I <= X ? { from: x.value.init, to: _ } : { from: _, to: x.value.init };
|
|
6726
|
+
x.value = null, kn(I === X ? _ : { target: _, ...ee }), l("rangeEnd", {
|
|
6727
6727
|
from: Ae(ee.from),
|
|
6728
6728
|
to: Ae(ee.to)
|
|
6729
6729
|
});
|
|
6730
6730
|
}
|
|
6731
6731
|
}
|
|
6732
6732
|
function fl(f) {
|
|
6733
|
-
if (
|
|
6733
|
+
if (x.value !== null) {
|
|
6734
6734
|
const _ = { ...w.value, day: f };
|
|
6735
|
-
Object.assign(
|
|
6735
|
+
Object.assign(x.value, {
|
|
6736
6736
|
final: _,
|
|
6737
6737
|
finalHash: Ft(_)
|
|
6738
6738
|
});
|
|
@@ -6751,18 +6751,18 @@ const er = Be({
|
|
|
6751
6751
|
}, [
|
|
6752
6752
|
m(pt, {
|
|
6753
6753
|
name: "q-transition--fade"
|
|
6754
|
-
}, cl[
|
|
6754
|
+
}, cl[V.value])
|
|
6755
6755
|
])
|
|
6756
6756
|
], _ = et(n.default);
|
|
6757
6757
|
return _ !== void 0 && f.push(
|
|
6758
6758
|
m("div", { class: "q-date__actions" }, _)
|
|
6759
6759
|
), e.name !== void 0 && e.disable !== !0 && g(f, "push"), m("div", {
|
|
6760
|
-
class:
|
|
6760
|
+
class: E.value,
|
|
6761
6761
|
...Q.value
|
|
6762
6762
|
}, [
|
|
6763
6763
|
Gt(),
|
|
6764
6764
|
m("div", {
|
|
6765
|
-
ref:
|
|
6765
|
+
ref: S,
|
|
6766
6766
|
class: "q-date__main col column",
|
|
6767
6767
|
tabindex: -1
|
|
6768
6768
|
}, f)
|
|
@@ -7018,21 +7018,21 @@ const $u = Ql(
|
|
|
7018
7018
|
const d = a.event.mouse === !0, s = () => {
|
|
7019
7019
|
t(o, d);
|
|
7020
7020
|
let g;
|
|
7021
|
-
l.preserveCursor !== !0 && l.preservecursor !== !0 && (g = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), d === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), Un(), a.styleCleanup = (
|
|
7021
|
+
l.preserveCursor !== !0 && l.preservecursor !== !0 && (g = document.documentElement.style.cursor || "", document.documentElement.style.cursor = "grabbing"), d === !0 && document.body.classList.add("no-pointer-events--children"), document.body.classList.add("non-selectable"), Un(), a.styleCleanup = (S) => {
|
|
7022
7022
|
if (a.styleCleanup = void 0, g !== void 0 && (document.documentElement.style.cursor = g), document.body.classList.remove("non-selectable"), d === !0) {
|
|
7023
|
-
const
|
|
7023
|
+
const q = () => {
|
|
7024
7024
|
document.body.classList.remove("no-pointer-events--children");
|
|
7025
7025
|
};
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
}, 50) :
|
|
7029
|
-
} else
|
|
7026
|
+
S !== void 0 ? setTimeout(() => {
|
|
7027
|
+
q(), S();
|
|
7028
|
+
}, 50) : q();
|
|
7029
|
+
} else S !== void 0 && S();
|
|
7030
7030
|
};
|
|
7031
7031
|
};
|
|
7032
7032
|
if (a.event.detected === !0) {
|
|
7033
7033
|
a.event.isFirst !== !0 && t(o, a.event.mouse);
|
|
7034
|
-
const { payload: g, synthetic:
|
|
7035
|
-
g !== void 0 && (a.handler(g) === !1 ? a.end(o) : (a.styleCleanup === void 0 && a.event.isFirst === !0 && s(), a.event.lastX = g.position.left, a.event.lastY = g.position.top, a.event.lastDir =
|
|
7034
|
+
const { payload: g, synthetic: S } = El(o, a, !1);
|
|
7035
|
+
g !== void 0 && (a.handler(g) === !1 ? a.end(o) : (a.styleCleanup === void 0 && a.event.isFirst === !0 && s(), a.event.lastX = g.position.left, a.event.lastY = g.position.top, a.event.lastDir = S === !0 ? void 0 : g.direction, a.event.isFirst = !1));
|
|
7036
7036
|
return;
|
|
7037
7037
|
}
|
|
7038
7038
|
if (a.direction.all === !0 || d === !0 && (a.modifiers.mouseAllDir === !0 || a.modifiers.mousealldir === !0)) {
|
|
@@ -7126,38 +7126,38 @@ const tr = Be({
|
|
|
7126
7126
|
setup(e, { slots: n, emit: l }) {
|
|
7127
7127
|
const t = Te(), { $q: a } = t.proxy, o = Bt(e, a), { tabindex: i, headerClass: r, getLocale: c, getCurrentDate: d } = Wo(e, a), s = po(e), v = Wl(s);
|
|
7128
7128
|
let b, g;
|
|
7129
|
-
const
|
|
7129
|
+
const S = N(null), q = u(() => ne()), y = u(() => c()), B = u(() => te()), P = Cn(
|
|
7130
7130
|
e.modelValue,
|
|
7131
|
-
|
|
7131
|
+
q.value,
|
|
7132
7132
|
// initial mask
|
|
7133
7133
|
y.value,
|
|
7134
7134
|
// initial locale
|
|
7135
7135
|
e.calendar,
|
|
7136
|
-
|
|
7137
|
-
), p = N(es(P)), w = N(P),
|
|
7136
|
+
B.value
|
|
7137
|
+
), p = N(es(P)), w = N(P), V = N(P.hour === null || P.hour < 12), z = u(
|
|
7138
7138
|
() => `q-time q-time--${e.landscape === !0 ? "landscape" : "portrait"}` + (o.value === !0 ? " q-time--dark q-dark" : "") + (e.disable === !0 ? " disabled" : e.readonly === !0 ? " q-time--readonly" : "") + (e.bordered === !0 ? " q-time--bordered" : "") + (e.square === !0 ? " q-time--square no-border-radius" : "") + (e.flat === !0 ? " q-time--flat no-shadow" : "")
|
|
7139
|
-
),
|
|
7139
|
+
), O = u(() => {
|
|
7140
7140
|
const L = w.value;
|
|
7141
7141
|
return {
|
|
7142
|
-
hour: L.hour === null ? "--" :
|
|
7143
|
-
|
|
7142
|
+
hour: L.hour === null ? "--" : T.value === !0 ? Ce(L.hour) : String(
|
|
7143
|
+
V.value === !0 ? L.hour === 0 ? 12 : L.hour : L.hour > 12 ? L.hour - 12 : L.hour
|
|
7144
7144
|
),
|
|
7145
7145
|
minute: L.minute === null ? "--" : Ce(L.minute),
|
|
7146
7146
|
second: L.second === null ? "--" : Ce(L.second)
|
|
7147
7147
|
};
|
|
7148
|
-
}),
|
|
7148
|
+
}), T = u(() => e.format24h !== null ? e.format24h : a.lang.date.format24h), H = u(() => {
|
|
7149
7149
|
const L = p.value === "hour", K = L === !0 ? 12 : 60, se = w.value[p.value];
|
|
7150
7150
|
let Se = `rotate(${Math.round(se * (360 / K)) - 180}deg) translateX(-50%)`;
|
|
7151
|
-
return L === !0 &&
|
|
7152
|
-
}),
|
|
7153
|
-
if (
|
|
7151
|
+
return L === !0 && T.value === !0 && w.value.hour >= 12 && (Se += " scale(.7)"), { transform: Se };
|
|
7152
|
+
}), M = u(() => w.value.hour !== null), x = u(() => M.value === !0 && w.value.minute !== null), E = u(() => e.hourOptions !== void 0 ? (L) => e.hourOptions.includes(L) : e.options !== void 0 ? (L) => e.options(L, null, null) : null), A = u(() => e.minuteOptions !== void 0 ? (L) => e.minuteOptions.includes(L) : e.options !== void 0 ? (L) => e.options(w.value.hour, L, null) : null), F = u(() => e.secondOptions !== void 0 ? (L) => e.secondOptions.includes(L) : e.options !== void 0 ? (L) => e.options(w.value.hour, w.value.minute, L) : null), j = u(() => {
|
|
7153
|
+
if (E.value === null)
|
|
7154
7154
|
return null;
|
|
7155
|
-
const L =
|
|
7155
|
+
const L = k(0, 11, E.value), K = k(12, 11, E.value);
|
|
7156
7156
|
return { am: L, pm: K, values: L.values.concat(K.values) };
|
|
7157
|
-
}), G = u(() => A.value !== null ?
|
|
7157
|
+
}), G = u(() => A.value !== null ? k(0, 59, A.value) : null), R = u(() => F.value !== null ? k(0, 59, F.value) : null), D = u(() => {
|
|
7158
7158
|
switch (p.value) {
|
|
7159
7159
|
case "hour":
|
|
7160
|
-
return
|
|
7160
|
+
return j.value;
|
|
7161
7161
|
case "minute":
|
|
7162
7162
|
return G.value;
|
|
7163
7163
|
case "second":
|
|
@@ -7166,10 +7166,10 @@ const tr = Be({
|
|
|
7166
7166
|
}), Z = u(() => {
|
|
7167
7167
|
let L, K, se = 0, me = 1;
|
|
7168
7168
|
const Se = D.value !== null ? D.value.values : void 0;
|
|
7169
|
-
p.value === "hour" ?
|
|
7169
|
+
p.value === "hour" ? T.value === !0 ? (L = 0, K = 23) : (L = 0, K = 11, V.value === !1 && (se = 12)) : (L = 0, K = 55, me = 5);
|
|
7170
7170
|
const it = [];
|
|
7171
7171
|
for (let pe = L, Ae = L; pe <= K; pe += me, Ae++) {
|
|
7172
|
-
const at = pe + se, Ut = (Se == null ? void 0 : Se.includes(at)) === !1, Rt = p.value === "hour" && pe === 0 ?
|
|
7172
|
+
const at = pe + se, Ut = (Se == null ? void 0 : Se.includes(at)) === !1, Rt = p.value === "hour" && pe === 0 ? T.value === !0 ? "00" : "12" : pe;
|
|
7173
7173
|
it.push({ val: at, index: Ae, disable: Ut, label: Rt });
|
|
7174
7174
|
}
|
|
7175
7175
|
return it;
|
|
@@ -7186,13 +7186,13 @@ const tr = Be({
|
|
|
7186
7186
|
ue(() => e.modelValue, (L) => {
|
|
7187
7187
|
const K = Cn(
|
|
7188
7188
|
L,
|
|
7189
|
-
|
|
7189
|
+
q.value,
|
|
7190
7190
|
y.value,
|
|
7191
7191
|
e.calendar,
|
|
7192
|
-
|
|
7192
|
+
B.value
|
|
7193
7193
|
);
|
|
7194
|
-
(K.dateHash !== w.value.dateHash || K.timeHash !== w.value.timeHash) && (w.value = K, K.hour === null ? p.value = "hour" :
|
|
7195
|
-
}), ue([
|
|
7194
|
+
(K.dateHash !== w.value.dateHash || K.timeHash !== w.value.timeHash) && (w.value = K, K.hour === null ? p.value = "hour" : V.value = K.hour < 12);
|
|
7195
|
+
}), ue([q, y], () => {
|
|
7196
7196
|
Re(() => {
|
|
7197
7197
|
we();
|
|
7198
7198
|
});
|
|
@@ -7204,7 +7204,7 @@ const tr = Be({
|
|
|
7204
7204
|
};
|
|
7205
7205
|
we(L), Object.assign(w.value, L), p.value = "hour";
|
|
7206
7206
|
}
|
|
7207
|
-
function
|
|
7207
|
+
function k(L, K, se) {
|
|
7208
7208
|
const me = Array.apply(null, { length: K + 1 }).map((Se, it) => {
|
|
7209
7209
|
const pe = it + L;
|
|
7210
7210
|
return {
|
|
@@ -7243,10 +7243,10 @@ const tr = Be({
|
|
|
7243
7243
|
return Cn(e.defaultDate, "YYYY/MM/DD", void 0, e.calendar);
|
|
7244
7244
|
}
|
|
7245
7245
|
function $() {
|
|
7246
|
-
return Xl(t) === !0 || D.value !== null && (D.value.values.length === 0 || p.value === "hour" &&
|
|
7246
|
+
return Xl(t) === !0 || D.value !== null && (D.value.values.length === 0 || p.value === "hour" && T.value !== !0 && j.value[V.value === !0 ? "am" : "pm"].values.length === 0);
|
|
7247
7247
|
}
|
|
7248
7248
|
function ke() {
|
|
7249
|
-
const L =
|
|
7249
|
+
const L = S.value, { top: K, left: se, width: me } = L.getBoundingClientRect(), Se = me / 2;
|
|
7250
7250
|
return {
|
|
7251
7251
|
top: K + Se,
|
|
7252
7252
|
left: se + Se,
|
|
@@ -7271,15 +7271,15 @@ const tr = Be({
|
|
|
7271
7271
|
);
|
|
7272
7272
|
let pe, Ae = Math.asin(Se / it) * (180 / Math.PI);
|
|
7273
7273
|
if (me.top < K.top ? Ae = K.left < me.left ? 90 - Ae : 270 + Ae : Ae = K.left < me.left ? Ae + 90 : 270 - Ae, p.value === "hour") {
|
|
7274
|
-
if (pe = Ae / 30,
|
|
7275
|
-
const at =
|
|
7274
|
+
if (pe = Ae / 30, j.value !== null) {
|
|
7275
|
+
const at = T.value !== !0 ? V.value === !0 : j.value.am.values.length !== 0 && j.value.pm.values.length !== 0 ? it >= K.dist : j.value.am.values.length !== 0;
|
|
7276
7276
|
pe = W(
|
|
7277
7277
|
pe + (at === !0 ? 0 : 12),
|
|
7278
|
-
|
|
7278
|
+
j.value[at === !0 ? "am" : "pm"]
|
|
7279
7279
|
);
|
|
7280
7280
|
} else
|
|
7281
|
-
pe = Math.round(pe),
|
|
7282
|
-
|
|
7281
|
+
pe = Math.round(pe), T.value === !0 ? it < K.dist ? pe < 12 && (pe += 12) : pe === 12 && (pe = 0) : V.value === !0 && pe === 12 ? pe = 0 : V.value === !1 && pe !== 12 && (pe += 12);
|
|
7282
|
+
T.value === !0 && (V.value = pe < 12);
|
|
7283
7283
|
} else
|
|
7284
7284
|
pe = Math.round(Ae / 6) % 60, p.value === "minute" && G.value !== null ? pe = W(pe, G.value) : p.value === "second" && R.value !== null && (pe = W(pe, R.value));
|
|
7285
7285
|
return se !== pe && oe[p.value](pe), pe;
|
|
@@ -7312,8 +7312,8 @@ const tr = Be({
|
|
|
7312
7312
|
p.value = "hour";
|
|
7313
7313
|
else if ([37, 39].includes(L.keyCode)) {
|
|
7314
7314
|
const K = L.keyCode === 37 ? -1 : 1;
|
|
7315
|
-
if (
|
|
7316
|
-
const se =
|
|
7315
|
+
if (j.value !== null) {
|
|
7316
|
+
const se = T.value === !0 ? j.value.values : j.value[V.value === !0 ? "am" : "pm"].values;
|
|
7317
7317
|
if (se.length === 0) return;
|
|
7318
7318
|
if (w.value.hour === null)
|
|
7319
7319
|
dt(se[0]);
|
|
@@ -7322,7 +7322,7 @@ const tr = Be({
|
|
|
7322
7322
|
dt(se[me]);
|
|
7323
7323
|
}
|
|
7324
7324
|
} else {
|
|
7325
|
-
const se =
|
|
7325
|
+
const se = T.value === !0 ? 24 : 12, me = T.value !== !0 && V.value === !1 ? 12 : 0, Se = w.value.hour === null ? -K : w.value.hour;
|
|
7326
7326
|
dt(me + (24 + Se + K) % se);
|
|
7327
7327
|
}
|
|
7328
7328
|
}
|
|
@@ -7382,17 +7382,17 @@ const tr = Be({
|
|
|
7382
7382
|
second: Q
|
|
7383
7383
|
};
|
|
7384
7384
|
function de() {
|
|
7385
|
-
|
|
7385
|
+
V.value === !1 && (V.value = !0, w.value.hour !== null && (w.value.hour -= 12, he()));
|
|
7386
7386
|
}
|
|
7387
7387
|
function Ee() {
|
|
7388
|
-
|
|
7388
|
+
V.value === !0 && (V.value = !1, w.value.hour !== null && (w.value.hour += 12, he()));
|
|
7389
7389
|
}
|
|
7390
7390
|
function Me(L) {
|
|
7391
7391
|
const K = e.modelValue;
|
|
7392
7392
|
p.value !== L && K !== void 0 && K !== null && K !== "" && typeof K != "string" && (p.value = L);
|
|
7393
7393
|
}
|
|
7394
7394
|
function he() {
|
|
7395
|
-
if (
|
|
7395
|
+
if (E.value !== null && E.value(w.value.hour) !== !0) {
|
|
7396
7396
|
w.value = Cn(), Me("hour");
|
|
7397
7397
|
return;
|
|
7398
7398
|
}
|
|
@@ -7417,7 +7417,7 @@ const tr = Be({
|
|
|
7417
7417
|
K.second,
|
|
7418
7418
|
K.millisecond
|
|
7419
7419
|
),
|
|
7420
|
-
|
|
7420
|
+
q.value,
|
|
7421
7421
|
y.value,
|
|
7422
7422
|
K.year,
|
|
7423
7423
|
K.timezoneOffset
|
|
@@ -7431,30 +7431,30 @@ const tr = Be({
|
|
|
7431
7431
|
tabindex: i.value,
|
|
7432
7432
|
onClick: Oe.hour,
|
|
7433
7433
|
onKeyup: Ke
|
|
7434
|
-
},
|
|
7434
|
+
}, O.value.hour),
|
|
7435
7435
|
m("div", ":"),
|
|
7436
7436
|
m(
|
|
7437
7437
|
"div",
|
|
7438
|
-
|
|
7438
|
+
M.value === !0 ? {
|
|
7439
7439
|
class: "q-time__link " + (p.value === "minute" ? "q-time__link--active" : "cursor-pointer"),
|
|
7440
7440
|
tabindex: i.value,
|
|
7441
7441
|
onKeyup: kt,
|
|
7442
7442
|
onClick: Oe.minute
|
|
7443
7443
|
} : { class: "q-time__link" },
|
|
7444
|
-
|
|
7444
|
+
O.value.minute
|
|
7445
7445
|
)
|
|
7446
7446
|
];
|
|
7447
7447
|
e.withSeconds === !0 && L.push(
|
|
7448
7448
|
m("div", ":"),
|
|
7449
7449
|
m(
|
|
7450
7450
|
"div",
|
|
7451
|
-
|
|
7451
|
+
x.value === !0 ? {
|
|
7452
7452
|
class: "q-time__link " + (p.value === "second" ? "q-time__link--active" : "cursor-pointer"),
|
|
7453
7453
|
tabindex: i.value,
|
|
7454
7454
|
onKeyup: Mt,
|
|
7455
7455
|
onClick: Oe.second
|
|
7456
7456
|
} : { class: "q-time__link" },
|
|
7457
|
-
|
|
7457
|
+
O.value.second
|
|
7458
7458
|
)
|
|
7459
7459
|
);
|
|
7460
7460
|
const K = [
|
|
@@ -7463,18 +7463,18 @@ const tr = Be({
|
|
|
7463
7463
|
dir: "ltr"
|
|
7464
7464
|
}, L)
|
|
7465
7465
|
];
|
|
7466
|
-
return
|
|
7466
|
+
return T.value === !1 && K.push(
|
|
7467
7467
|
m("div", {
|
|
7468
7468
|
class: "q-time__header-ampm column items-between no-wrap"
|
|
7469
7469
|
}, [
|
|
7470
7470
|
m("div", {
|
|
7471
|
-
class: "q-time__link " + (
|
|
7471
|
+
class: "q-time__link " + (V.value === !0 ? "q-time__link--active" : "cursor-pointer"),
|
|
7472
7472
|
tabindex: i.value,
|
|
7473
7473
|
onClick: de,
|
|
7474
7474
|
onKeyup: Ze
|
|
7475
7475
|
}, "AM"),
|
|
7476
7476
|
m("div", {
|
|
7477
|
-
class: "q-time__link " + (
|
|
7477
|
+
class: "q-time__link " + (V.value !== !0 ? "q-time__link--active" : "cursor-pointer"),
|
|
7478
7478
|
tabindex: i.value,
|
|
7479
7479
|
onClick: Ee,
|
|
7480
7480
|
onKeyup: nt
|
|
@@ -7496,7 +7496,7 @@ const tr = Be({
|
|
|
7496
7496
|
class: "q-time__container-parent absolute-full"
|
|
7497
7497
|
}, [
|
|
7498
7498
|
m("div", {
|
|
7499
|
-
ref:
|
|
7499
|
+
ref: S,
|
|
7500
7500
|
class: "q-time__container-child fit overflow-hidden"
|
|
7501
7501
|
}, [
|
|
7502
7502
|
Yt(
|
|
@@ -7508,7 +7508,7 @@ const tr = Be({
|
|
|
7508
7508
|
m("div", { class: "q-time__clock-circle fit" }, [
|
|
7509
7509
|
m("div", {
|
|
7510
7510
|
class: "q-time__clock-pointer" + (w.value[p.value] === null ? " hidden" : e.color !== void 0 ? ` text-${e.color}` : ""),
|
|
7511
|
-
style:
|
|
7511
|
+
style: H.value
|
|
7512
7512
|
}),
|
|
7513
7513
|
Z.value.map((K) => m("div", {
|
|
7514
7514
|
class: `q-time__clock-position row flex-center q-time__clock-pos-${K.index}` + (K.val === L ? " q-time__clock-position--active " + r.value : K.disable === !0 ? " q-time__clock-position--disable" : "")
|
|
@@ -7537,7 +7537,7 @@ const tr = Be({
|
|
|
7537
7537
|
return K !== void 0 && L.push(
|
|
7538
7538
|
m("div", { class: "q-time__actions" }, K)
|
|
7539
7539
|
), e.name !== void 0 && e.disable !== !0 && v(L, "push"), m("div", {
|
|
7540
|
-
class:
|
|
7540
|
+
class: z.value,
|
|
7541
7541
|
tabindex: -1
|
|
7542
7542
|
}, [
|
|
7543
7543
|
Ve(),
|
|
@@ -7760,17 +7760,17 @@ const os = /* @__PURE__ */ bt(ns, [["render", as], ["__file", "/Users/zachsherbo
|
|
|
7760
7760
|
l.schema,
|
|
7761
7761
|
r == null ? void 0 : r.componentDefaults,
|
|
7762
7762
|
"datetime"
|
|
7763
|
-
)), s = u(() => d.value.dateMask || "YYYY-MM-DD"), v = u(() => d.value.timeMask || "hh:mm A"), b = u(() => d.value.mask || `${s.value} ${v.value}`), g = u(() => d.value.format24h || !1),
|
|
7764
|
-
const P = /* @__PURE__ */ new Date(), p = P.getFullYear(), w = String(P.getMonth() + 1).padStart(2, "0"),
|
|
7763
|
+
)), s = u(() => d.value.dateMask || "YYYY-MM-DD"), v = u(() => d.value.timeMask || "hh:mm A"), b = u(() => d.value.mask || `${s.value} ${v.value}`), g = u(() => d.value.format24h || !1), S = u(() => d.value.withSeconds || !1), q = u(() => gt(r == null ? void 0 : r.componentDefaults)), B = { props: l, value: t, errorMessage: a, label: o, hint: i, formContext: r, fieldId: c, quasarProps: d, dateMask: s, timeMask: v, fullMask: b, use24Hour: g, withSeconds: S, fieldGap: q, setNow: () => {
|
|
7764
|
+
const P = /* @__PURE__ */ new Date(), p = P.getFullYear(), w = String(P.getMonth() + 1).padStart(2, "0"), V = String(P.getDate()).padStart(2, "0");
|
|
7765
7765
|
if (g.value) {
|
|
7766
|
-
const
|
|
7767
|
-
t.value = `${p}-${w}-${
|
|
7766
|
+
const z = String(P.getHours()).padStart(2, "0"), O = String(P.getMinutes()).padStart(2, "0");
|
|
7767
|
+
t.value = `${p}-${w}-${V} ${z}:${O}`;
|
|
7768
7768
|
} else {
|
|
7769
|
-
let
|
|
7770
|
-
const
|
|
7771
|
-
|
|
7772
|
-
const
|
|
7773
|
-
t.value = `${p}-${w}-${
|
|
7769
|
+
let z = P.getHours();
|
|
7770
|
+
const O = z >= 12 ? "PM" : "AM";
|
|
7771
|
+
z = z % 12 || 12;
|
|
7772
|
+
const T = String(P.getMinutes()).padStart(2, "0");
|
|
7773
|
+
t.value = `${p}-${w}-${V} ${z}:${T} ${O}`;
|
|
7774
7774
|
}
|
|
7775
7775
|
}, get QInput() {
|
|
7776
7776
|
return ln;
|
|
@@ -7787,7 +7787,7 @@ const os = /* @__PURE__ */ bt(ns, [["render", as], ["__file", "/Users/zachsherbo
|
|
|
7787
7787
|
}, get QSeparator() {
|
|
7788
7788
|
return zl;
|
|
7789
7789
|
} };
|
|
7790
|
-
return Object.defineProperty(
|
|
7790
|
+
return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
|
|
7791
7791
|
}
|
|
7792
7792
|
}), ss = { class: "row no-wrap" };
|
|
7793
7793
|
function cs(e, n, l, t, a, o) {
|
|
@@ -7932,26 +7932,26 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
7932
7932
|
function s() {
|
|
7933
7933
|
a == null || a(), a = null, t = !1, i !== null && (clearTimeout(i), i = null), r !== null && (clearTimeout(r), r = null), o == null || o.removeEventListener("transitionend", c), c = null;
|
|
7934
7934
|
}
|
|
7935
|
-
function v(
|
|
7936
|
-
y !== void 0 && (
|
|
7935
|
+
function v(q, y, B) {
|
|
7936
|
+
y !== void 0 && (q.style.height = `${y}px`), q.style.transition = `height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`, t = !0, a = B;
|
|
7937
7937
|
}
|
|
7938
|
-
function b(
|
|
7939
|
-
|
|
7938
|
+
function b(q, y) {
|
|
7939
|
+
q.style.overflowY = null, q.style.height = null, q.style.transition = null, s(), y !== d && l(y);
|
|
7940
7940
|
}
|
|
7941
|
-
function g(
|
|
7942
|
-
let
|
|
7943
|
-
o =
|
|
7944
|
-
i = null,
|
|
7945
|
-
r = null, (Object(P) !== P || P.target ===
|
|
7946
|
-
},
|
|
7941
|
+
function g(q, y) {
|
|
7942
|
+
let B = 0;
|
|
7943
|
+
o = q, t === !0 ? (s(), B = q.offsetHeight === q.scrollHeight ? 0 : void 0) : (d = "hide", q.style.overflowY = "hidden"), v(q, B, y), i = setTimeout(() => {
|
|
7944
|
+
i = null, q.style.height = `${q.scrollHeight}px`, c = (P) => {
|
|
7945
|
+
r = null, (Object(P) !== P || P.target === q) && b(q, "show");
|
|
7946
|
+
}, q.addEventListener("transitionend", c), r = setTimeout(c, e.duration * 1.1);
|
|
7947
7947
|
}, 100);
|
|
7948
7948
|
}
|
|
7949
|
-
function q
|
|
7950
|
-
let
|
|
7951
|
-
o =
|
|
7952
|
-
i = null,
|
|
7953
|
-
r = null, (Object(P) !== P || P.target ===
|
|
7954
|
-
},
|
|
7949
|
+
function S(q, y) {
|
|
7950
|
+
let B;
|
|
7951
|
+
o = q, t === !0 ? s() : (d = "show", q.style.overflowY = "hidden", B = q.scrollHeight), v(q, B, y), i = setTimeout(() => {
|
|
7952
|
+
i = null, q.style.height = 0, c = (P) => {
|
|
7953
|
+
r = null, (Object(P) !== P || P.target === q) && b(q, "hide");
|
|
7954
|
+
}, q.addEventListener("transitionend", c), r = setTimeout(c, e.duration * 1.1);
|
|
7955
7955
|
}, 100);
|
|
7956
7956
|
}
|
|
7957
7957
|
return Ye(() => {
|
|
@@ -7960,7 +7960,7 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
7960
7960
|
css: !1,
|
|
7961
7961
|
appear: e.appear,
|
|
7962
7962
|
onEnter: g,
|
|
7963
|
-
onLeave:
|
|
7963
|
+
onLeave: S
|
|
7964
7964
|
}, n.default);
|
|
7965
7965
|
}
|
|
7966
7966
|
}), Zt = Cr({}), vs = Object.keys(Zl), ms = Be({
|
|
@@ -8006,26 +8006,26 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8006
8006
|
let v, b;
|
|
8007
8007
|
const g = u(
|
|
8008
8008
|
() => `q-expansion-item q-item-type q-expansion-item--${o.value === !0 ? "expanded" : "collapsed"} q-expansion-item--${e.popup === !0 ? "popup" : "standard"}`
|
|
8009
|
-
),
|
|
8009
|
+
), S = u(() => e.contentInsetLevel === void 0 ? null : {
|
|
8010
8010
|
["padding" + (t.lang.rtl === !0 ? "Right" : "Left")]: e.contentInsetLevel * 56 + "px"
|
|
8011
|
-
}),
|
|
8011
|
+
}), q = u(
|
|
8012
8012
|
() => e.disable !== !0 && (e.href !== void 0 || e.to !== void 0 && e.to !== null && e.to !== "")
|
|
8013
8013
|
), y = u(() => {
|
|
8014
8014
|
const R = {};
|
|
8015
8015
|
return vs.forEach((D) => {
|
|
8016
8016
|
R[D] = e[D];
|
|
8017
8017
|
}), R;
|
|
8018
|
-
}),
|
|
8019
|
-
() =>
|
|
8018
|
+
}), B = u(
|
|
8019
|
+
() => q.value === !0 || e.expandIconToggle !== !0
|
|
8020
8020
|
), P = u(() => e.expandedIcon !== void 0 && o.value === !0 ? e.expandedIcon : e.expandIcon || t.iconSet.expansionItem[e.denseToggle === !0 ? "denseIcon" : "icon"]), p = u(
|
|
8021
|
-
() => e.disable !== !0 && (
|
|
8021
|
+
() => e.disable !== !0 && (q.value === !0 || e.expandIconToggle === !0)
|
|
8022
8022
|
), w = u(() => ({
|
|
8023
8023
|
expanded: o.value === !0,
|
|
8024
8024
|
detailsId: r.value,
|
|
8025
8025
|
toggle: s,
|
|
8026
8026
|
show: c,
|
|
8027
8027
|
hide: d
|
|
8028
|
-
})),
|
|
8028
|
+
})), V = u(() => {
|
|
8029
8029
|
const R = e.toggleAriaLabel !== void 0 ? e.toggleAriaLabel : t.lang.label[o.value === !0 ? "collapse" : "expand"](e.label);
|
|
8030
8030
|
return {
|
|
8031
8031
|
role: "button",
|
|
@@ -8035,25 +8035,25 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8035
8035
|
};
|
|
8036
8036
|
});
|
|
8037
8037
|
ue(() => e.group, (R) => {
|
|
8038
|
-
b == null || b(), R !== void 0 &&
|
|
8038
|
+
b == null || b(), R !== void 0 && x();
|
|
8039
8039
|
});
|
|
8040
|
-
function
|
|
8041
|
-
|
|
8040
|
+
function z(R) {
|
|
8041
|
+
q.value !== !0 && s(R), l("click", R);
|
|
8042
8042
|
}
|
|
8043
|
-
function
|
|
8044
|
-
R.keyCode === 13 &&
|
|
8043
|
+
function O(R) {
|
|
8044
|
+
R.keyCode === 13 && T(R, !0);
|
|
8045
8045
|
}
|
|
8046
|
-
function
|
|
8046
|
+
function T(R, D) {
|
|
8047
8047
|
var Z;
|
|
8048
8048
|
D !== !0 && R.qAvoidFocus !== !0 && ((Z = i.value) == null || Z.focus()), s(R), Qe(R);
|
|
8049
8049
|
}
|
|
8050
|
-
function
|
|
8050
|
+
function H() {
|
|
8051
8051
|
l("afterShow");
|
|
8052
8052
|
}
|
|
8053
|
-
function
|
|
8053
|
+
function M() {
|
|
8054
8054
|
l("afterHide");
|
|
8055
8055
|
}
|
|
8056
|
-
function
|
|
8056
|
+
function x() {
|
|
8057
8057
|
v === void 0 && (v = Kn()), o.value === !0 && (Zt[e.group] = v);
|
|
8058
8058
|
const R = ue(o, (Z) => {
|
|
8059
8059
|
Z === !0 ? Zt[e.group] = v : Zt[e.group] === v && delete Zt[e.group];
|
|
@@ -8067,7 +8067,7 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8067
8067
|
R(), D(), Zt[e.group] === v && delete Zt[e.group], b = void 0;
|
|
8068
8068
|
};
|
|
8069
8069
|
}
|
|
8070
|
-
function
|
|
8070
|
+
function E() {
|
|
8071
8071
|
const R = {
|
|
8072
8072
|
class: [
|
|
8073
8073
|
`q-focusable relative-position cursor-pointer${e.denseToggle === !0 && e.switchToggleSide === !0 ? " items-end" : ""}`,
|
|
@@ -8083,9 +8083,9 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8083
8083
|
];
|
|
8084
8084
|
return p.value === !0 && (Object.assign(R, {
|
|
8085
8085
|
tabindex: 0,
|
|
8086
|
-
...
|
|
8087
|
-
onClick:
|
|
8088
|
-
onKeyup:
|
|
8086
|
+
...V.value,
|
|
8087
|
+
onClick: T,
|
|
8088
|
+
onKeyup: O
|
|
8089
8089
|
}), D.unshift(
|
|
8090
8090
|
m("div", {
|
|
8091
8091
|
ref: i,
|
|
@@ -8107,7 +8107,7 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8107
8107
|
avatar: e.switchToggleSide !== !0
|
|
8108
8108
|
}, () => m(Xe, { name: e.icon }))
|
|
8109
8109
|
)), e.disable !== !0 && e.hideExpandIcon !== !0 && R[e.switchToggleSide === !0 ? "unshift" : "push"](
|
|
8110
|
-
|
|
8110
|
+
E()
|
|
8111
8111
|
), R;
|
|
8112
8112
|
}
|
|
8113
8113
|
function F() {
|
|
@@ -8120,17 +8120,17 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8120
8120
|
dense: e.dense,
|
|
8121
8121
|
insetLevel: e.headerInsetLevel
|
|
8122
8122
|
};
|
|
8123
|
-
return
|
|
8123
|
+
return B.value === !0 && (R.clickable = !0, R.onClick = z, Object.assign(
|
|
8124
8124
|
R,
|
|
8125
|
-
|
|
8125
|
+
q.value === !0 ? y.value : V.value
|
|
8126
8126
|
)), m(Co, R, A);
|
|
8127
8127
|
}
|
|
8128
|
-
function
|
|
8128
|
+
function j() {
|
|
8129
8129
|
return Yt(
|
|
8130
8130
|
m("div", {
|
|
8131
8131
|
key: "e-content",
|
|
8132
8132
|
class: "q-expansion-item__content relative-position",
|
|
8133
|
-
style:
|
|
8133
|
+
style: S.value,
|
|
8134
8134
|
id: r.value
|
|
8135
8135
|
}, et(n.default)),
|
|
8136
8136
|
[[
|
|
@@ -8144,9 +8144,9 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8144
8144
|
F(),
|
|
8145
8145
|
m(fs, {
|
|
8146
8146
|
duration: e.duration,
|
|
8147
|
-
onShow:
|
|
8148
|
-
onHide:
|
|
8149
|
-
},
|
|
8147
|
+
onShow: H,
|
|
8148
|
+
onHide: M
|
|
8149
|
+
}, j)
|
|
8150
8150
|
];
|
|
8151
8151
|
return e.expandSeparator === !0 && R.push(
|
|
8152
8152
|
m(zl, {
|
|
@@ -8159,7 +8159,7 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8159
8159
|
})
|
|
8160
8160
|
), R;
|
|
8161
8161
|
}
|
|
8162
|
-
return e.group !== void 0 &&
|
|
8162
|
+
return e.group !== void 0 && x(), Ye(() => {
|
|
8163
8163
|
b == null || b();
|
|
8164
8164
|
}), () => m("div", { class: g.value }, [
|
|
8165
8165
|
m("div", { class: "q-expansion-item__container relative-position" }, G())
|
|
@@ -8184,28 +8184,28 @@ const ds = /* @__PURE__ */ bt(us, [["render", cs], ["__scopeId", "data-v-76abc7a
|
|
|
8184
8184
|
{ label: l.label }
|
|
8185
8185
|
), c = u(() => {
|
|
8186
8186
|
var P;
|
|
8187
|
-
const
|
|
8188
|
-
if (
|
|
8189
|
-
return
|
|
8190
|
-
const y = (P = t == null ? void 0 : t.componentDefaults) == null ? void 0 : P.object,
|
|
8191
|
-
return
|
|
8187
|
+
const q = l.schema["x-default-expanded"];
|
|
8188
|
+
if (q !== void 0)
|
|
8189
|
+
return q;
|
|
8190
|
+
const y = (P = t == null ? void 0 : t.componentDefaults) == null ? void 0 : P.object, B = (y == null ? void 0 : y.defaultExpanded) ?? "required-only";
|
|
8191
|
+
return B === "all" ? !0 : B === "none" ? !1 : r.value;
|
|
8192
8192
|
}), d = u(() => {
|
|
8193
8193
|
var y;
|
|
8194
|
-
const
|
|
8195
|
-
return (
|
|
8194
|
+
const q = (y = t == null ? void 0 : t.componentDefaults) == null ? void 0 : y.object;
|
|
8195
|
+
return (q == null ? void 0 : q.showOptionalIndicator) ?? !0;
|
|
8196
8196
|
}), s = _t(l.path), v = u(() => {
|
|
8197
|
-
const
|
|
8198
|
-
return { ...l.schema["x-component-props"] || {}, ...
|
|
8199
|
-
}), b = u(() => l.schema.properties ? Object.entries(l.schema.properties).map(([
|
|
8200
|
-
key:
|
|
8197
|
+
const q = l.schema["x-quasar-props"] || {};
|
|
8198
|
+
return { ...l.schema["x-component-props"] || {}, ...q };
|
|
8199
|
+
}), b = u(() => l.schema.properties ? Object.entries(l.schema.properties).map(([q, y]) => ({
|
|
8200
|
+
key: q,
|
|
8201
8201
|
schema: y,
|
|
8202
|
-
path: l.path ? `${l.path}.${
|
|
8203
|
-
})) : []), g = u(() => gt(t == null ? void 0 : t.componentDefaults)),
|
|
8202
|
+
path: l.path ? `${l.path}.${q}` : q
|
|
8203
|
+
})) : []), g = u(() => gt(t == null ? void 0 : t.componentDefaults)), S = { props: l, formContext: t, label: a, hint: o, errorMessage: i, required: r, defaultOpened: c, showOptionalIndicator: d, fieldId: s, quasarProps: v, properties: b, fieldGap: g, get QExpansionItem() {
|
|
8204
8204
|
return ms;
|
|
8205
8205
|
}, get FieldRenderer() {
|
|
8206
8206
|
return tl;
|
|
8207
8207
|
} };
|
|
8208
|
-
return Object.defineProperty(
|
|
8208
|
+
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
8209
8209
|
}
|
|
8210
8210
|
}), gs = { class: "text-subtitle1" }, bs = {
|
|
8211
8211
|
key: 0,
|
|
@@ -8327,22 +8327,22 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8327
8327
|
],
|
|
8328
8328
|
setup(e, { slots: n, emit: l, attrs: t }) {
|
|
8329
8329
|
let a, o;
|
|
8330
|
-
const i = Te(), { proxy: { $q: r } } = i, c = N(null), d = N(!1), s = u(() => $n(e.anchor, r.lang.rtl)), v = u(() => $n(e.self, r.lang.rtl)), b = u(() => e.persistent !== !0), { registerTick: g, removeTick:
|
|
8330
|
+
const i = Te(), { proxy: { $q: r } } = i, c = N(null), d = N(!1), s = u(() => $n(e.anchor, r.lang.rtl)), v = u(() => $n(e.self, r.lang.rtl)), b = u(() => e.persistent !== !0), { registerTick: g, removeTick: S } = gn(), { registerTimeout: q } = En(), { transitionProps: y, transitionStyle: B } = ea(e), { localScrollTarget: P, changeScrollEvent: p, unconfigureScrollTarget: w } = Oo(e, be), { anchorEl: V, canShow: z, anchorEvents: O } = Jl({ showing: d, configureAnchorEl: Z }), { show: T, hide: H } = sl({
|
|
8331
8331
|
showing: d,
|
|
8332
|
-
canShow:
|
|
8332
|
+
canShow: z,
|
|
8333
8333
|
handleShow: A,
|
|
8334
8334
|
handleHide: F,
|
|
8335
8335
|
hideOnRouteChange: b,
|
|
8336
8336
|
processOnMount: !0
|
|
8337
8337
|
});
|
|
8338
|
-
Object.assign(
|
|
8339
|
-
const { showPortal:
|
|
8338
|
+
Object.assign(O, { delayShow: R, delayHide: D });
|
|
8339
|
+
const { showPortal: M, hidePortal: x, renderPortal: E } = $l(i, c, k, "tooltip");
|
|
8340
8340
|
if (r.platform.is.mobile === !0) {
|
|
8341
8341
|
const Y = {
|
|
8342
|
-
anchorEl:
|
|
8342
|
+
anchorEl: V,
|
|
8343
8343
|
innerRef: c,
|
|
8344
8344
|
onClickOutside(ne) {
|
|
8345
|
-
return
|
|
8345
|
+
return H(ne), ne.target.classList.contains("q-dialog__backdrop") && Qe(ne), !0;
|
|
8346
8346
|
}
|
|
8347
8347
|
}, W = u(
|
|
8348
8348
|
() => (
|
|
@@ -8358,28 +8358,28 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8358
8358
|
});
|
|
8359
8359
|
}
|
|
8360
8360
|
function A(Y) {
|
|
8361
|
-
|
|
8361
|
+
M(), g(() => {
|
|
8362
8362
|
o = new MutationObserver(() => G()), o.observe(c.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), G(), be();
|
|
8363
8363
|
}), a === void 0 && (a = ue(
|
|
8364
8364
|
() => r.screen.width + "|" + r.screen.height + "|" + e.self + "|" + e.anchor + "|" + r.lang.rtl,
|
|
8365
8365
|
G
|
|
8366
|
-
)),
|
|
8367
|
-
|
|
8366
|
+
)), q(() => {
|
|
8367
|
+
M(!0), l("show", Y);
|
|
8368
8368
|
}, e.transitionDuration);
|
|
8369
8369
|
}
|
|
8370
8370
|
function F(Y) {
|
|
8371
|
-
|
|
8372
|
-
|
|
8371
|
+
S(), x(), j(), q(() => {
|
|
8372
|
+
x(!0), l("hide", Y);
|
|
8373
8373
|
}, e.transitionDuration);
|
|
8374
8374
|
}
|
|
8375
|
-
function
|
|
8376
|
-
o !== void 0 && (o.disconnect(), o = void 0), a !== void 0 && (a(), a = void 0), w(), $t(
|
|
8375
|
+
function j() {
|
|
8376
|
+
o !== void 0 && (o.disconnect(), o = void 0), a !== void 0 && (a(), a = void 0), w(), $t(O, "tooltipTemp");
|
|
8377
8377
|
}
|
|
8378
8378
|
function G() {
|
|
8379
8379
|
ta({
|
|
8380
8380
|
targetEl: c.value,
|
|
8381
8381
|
offset: e.offset,
|
|
8382
|
-
anchorEl:
|
|
8382
|
+
anchorEl: V.value,
|
|
8383
8383
|
anchorOrigin: s.value,
|
|
8384
8384
|
selfOrigin: v.value,
|
|
8385
8385
|
maxHeight: e.maxHeight,
|
|
@@ -8389,34 +8389,34 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8389
8389
|
function R(Y) {
|
|
8390
8390
|
if (r.platform.is.mobile === !0) {
|
|
8391
8391
|
Un(), document.body.classList.add("non-selectable");
|
|
8392
|
-
const W =
|
|
8393
|
-
At(
|
|
8392
|
+
const W = V.value, ne = ["touchmove", "touchcancel", "touchend", "click"].map((te) => [W, te, "delayHide", "passiveCapture"]);
|
|
8393
|
+
At(O, "tooltipTemp", ne);
|
|
8394
8394
|
}
|
|
8395
|
-
|
|
8396
|
-
|
|
8395
|
+
q(() => {
|
|
8396
|
+
T(Y);
|
|
8397
8397
|
}, e.delay);
|
|
8398
8398
|
}
|
|
8399
8399
|
function D(Y) {
|
|
8400
|
-
r.platform.is.mobile === !0 && ($t(
|
|
8400
|
+
r.platform.is.mobile === !0 && ($t(O, "tooltipTemp"), Un(), setTimeout(() => {
|
|
8401
8401
|
document.body.classList.remove("non-selectable");
|
|
8402
|
-
}, 10)),
|
|
8403
|
-
|
|
8402
|
+
}, 10)), q(() => {
|
|
8403
|
+
H(Y);
|
|
8404
8404
|
}, e.hideDelay);
|
|
8405
8405
|
}
|
|
8406
8406
|
function Z() {
|
|
8407
|
-
if (e.noParentEvent === !0 ||
|
|
8407
|
+
if (e.noParentEvent === !0 || V.value === null) return;
|
|
8408
8408
|
const Y = r.platform.is.mobile === !0 ? [
|
|
8409
|
-
[
|
|
8409
|
+
[V.value, "touchstart", "delayShow", "passive"]
|
|
8410
8410
|
] : [
|
|
8411
|
-
[
|
|
8412
|
-
[
|
|
8411
|
+
[V.value, "mouseenter", "delayShow", "passive"],
|
|
8412
|
+
[V.value, "mouseleave", "delayHide", "passive"]
|
|
8413
8413
|
];
|
|
8414
|
-
At(
|
|
8414
|
+
At(O, "anchor", Y);
|
|
8415
8415
|
}
|
|
8416
8416
|
function be() {
|
|
8417
|
-
if (
|
|
8418
|
-
P.value = Vo(
|
|
8419
|
-
const Y = e.noParentEvent === !0 ? G :
|
|
8417
|
+
if (V.value !== null || e.scrollTarget !== void 0) {
|
|
8418
|
+
P.value = Vo(V.value, e.scrollTarget);
|
|
8419
|
+
const Y = e.noParentEvent === !0 ? G : H;
|
|
8420
8420
|
p(P.value, Y);
|
|
8421
8421
|
}
|
|
8422
8422
|
}
|
|
@@ -8430,15 +8430,15 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8430
8430
|
],
|
|
8431
8431
|
style: [
|
|
8432
8432
|
t.style,
|
|
8433
|
-
|
|
8433
|
+
B.value
|
|
8434
8434
|
],
|
|
8435
8435
|
role: "tooltip"
|
|
8436
8436
|
}, et(n.default)) : null;
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function k() {
|
|
8439
8439
|
return m(pt, y.value, C);
|
|
8440
8440
|
}
|
|
8441
|
-
return Ye(
|
|
8441
|
+
return Ye(j), Object.assign(i.proxy, { updatePosition: G }), E;
|
|
8442
8442
|
}
|
|
8443
8443
|
}), nr = Be({
|
|
8444
8444
|
name: "QCardSection",
|
|
@@ -8477,71 +8477,71 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8477
8477
|
r == null ? void 0 : r.componentDefaults,
|
|
8478
8478
|
"card"
|
|
8479
8479
|
)), s = u(() => {
|
|
8480
|
-
var F,
|
|
8481
|
-
const
|
|
8480
|
+
var F, j;
|
|
8481
|
+
const O = ((F = r == null ? void 0 : r.quickformsDefaults) == null ? void 0 : F.array) || {}, T = l.schema["x-quickforms-quasar"] || {}, H = T.addButtonPosition ?? O.addButtonPosition ?? "bottom-left", M = {
|
|
8482
8482
|
outline: !0,
|
|
8483
8483
|
color: "primary",
|
|
8484
8484
|
icon: "add",
|
|
8485
|
-
label: ((
|
|
8486
|
-
},
|
|
8485
|
+
label: ((j = r == null ? void 0 : r.labels) == null ? void 0 : j.addItem) || "Add item"
|
|
8486
|
+
}, x = {
|
|
8487
8487
|
flat: !0,
|
|
8488
8488
|
round: !0,
|
|
8489
8489
|
dense: !0,
|
|
8490
8490
|
size: "sm",
|
|
8491
8491
|
icon: "close",
|
|
8492
8492
|
color: "negative"
|
|
8493
|
-
},
|
|
8494
|
-
...
|
|
8495
|
-
...
|
|
8496
|
-
...
|
|
8493
|
+
}, E = {
|
|
8494
|
+
...M,
|
|
8495
|
+
...O.addButton || {},
|
|
8496
|
+
...T.addButton || {}
|
|
8497
8497
|
}, A = {
|
|
8498
|
-
...
|
|
8499
|
-
...
|
|
8500
|
-
...
|
|
8498
|
+
...x,
|
|
8499
|
+
...O.removeButton || {},
|
|
8500
|
+
...T.removeButton || {}
|
|
8501
8501
|
};
|
|
8502
8502
|
return {
|
|
8503
|
-
addButtonPosition:
|
|
8504
|
-
addButton:
|
|
8503
|
+
addButtonPosition: H,
|
|
8504
|
+
addButton: E,
|
|
8505
8505
|
removeButton: A
|
|
8506
8506
|
};
|
|
8507
8507
|
}), v = u(() => {
|
|
8508
|
-
const
|
|
8509
|
-
return
|
|
8508
|
+
const O = s.value.addButtonPosition;
|
|
8509
|
+
return O === "top-left" || O === "top-right";
|
|
8510
8510
|
}), b = u(() => {
|
|
8511
|
-
const
|
|
8512
|
-
return
|
|
8511
|
+
const O = s.value.addButtonPosition;
|
|
8512
|
+
return O === "top-right" || O === "bottom-right";
|
|
8513
8513
|
}), g = u({
|
|
8514
8514
|
get: () => Array.isArray(t.value) ? t.value : [],
|
|
8515
|
-
set: (
|
|
8516
|
-
}),
|
|
8517
|
-
if (!
|
|
8518
|
-
const
|
|
8519
|
-
t.value = [...g.value,
|
|
8520
|
-
}, y = (
|
|
8521
|
-
const
|
|
8522
|
-
|
|
8523
|
-
},
|
|
8524
|
-
if (
|
|
8525
|
-
const
|
|
8526
|
-
|
|
8527
|
-
}, P = u(() => !(l.disabled || l.readonly || l.schema.maxItems && g.value.length >= l.schema.maxItems)), p = u(() => !(l.disabled || l.readonly || l.schema.minItems && g.value.length <= l.schema.minItems)), w = (
|
|
8528
|
-
var
|
|
8529
|
-
const
|
|
8530
|
-
if (
|
|
8515
|
+
set: (O) => t.value = O
|
|
8516
|
+
}), S = u(() => Array.isArray(l.schema.items) ? l.schema.items[0] : l.schema.items), q = () => {
|
|
8517
|
+
if (!S.value) return;
|
|
8518
|
+
const O = lr.getDefaultValue(S.value);
|
|
8519
|
+
t.value = [...g.value, O];
|
|
8520
|
+
}, y = (O) => {
|
|
8521
|
+
const T = [...g.value];
|
|
8522
|
+
T.splice(O, 1), t.value = T;
|
|
8523
|
+
}, B = (O, T) => {
|
|
8524
|
+
if (T === "up" && O === 0 || T === "down" && O === g.value.length - 1) return;
|
|
8525
|
+
const H = [...g.value], M = T === "up" ? O - 1 : O + 1, x = H[O];
|
|
8526
|
+
H[O] = H[M], H[M] = x, t.value = H;
|
|
8527
|
+
}, P = u(() => !(l.disabled || l.readonly || l.schema.maxItems && g.value.length >= l.schema.maxItems)), p = u(() => !(l.disabled || l.readonly || l.schema.minItems && g.value.length <= l.schema.minItems)), w = (O) => {
|
|
8528
|
+
var M;
|
|
8529
|
+
const T = l.schema["x-item-label"];
|
|
8530
|
+
if (T === "none" || T === !1)
|
|
8531
8531
|
return "";
|
|
8532
|
-
if (typeof
|
|
8533
|
-
const
|
|
8534
|
-
if (typeof
|
|
8535
|
-
let
|
|
8536
|
-
if (
|
|
8537
|
-
const G =
|
|
8532
|
+
if (typeof T == "string" && T.includes("{{")) {
|
|
8533
|
+
const x = g.value[O];
|
|
8534
|
+
if (typeof x == "object" && x !== null) {
|
|
8535
|
+
let E = T, A = !1;
|
|
8536
|
+
if (E = E.replace(/\{\{([^}]+)\}\}/g, (F, j) => {
|
|
8537
|
+
const G = x[j.trim()];
|
|
8538
8538
|
return G != null && G !== "" ? (A = !0, String(G)) : "";
|
|
8539
|
-
}),
|
|
8540
|
-
return
|
|
8539
|
+
}), E = E.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), A && E.trim())
|
|
8540
|
+
return E.trim();
|
|
8541
8541
|
}
|
|
8542
8542
|
}
|
|
8543
|
-
return `${((
|
|
8544
|
-
},
|
|
8543
|
+
return `${((M = S.value) == null ? void 0 : M.title) || "Item"} ${O + 1}`;
|
|
8544
|
+
}, V = u(() => gt(r == null ? void 0 : r.componentDefaults)), z = { props: l, value: t, errorMessage: a, label: o, hint: i, formContext: r, fieldId: c, quasarProps: d, quickformsFeatures: s, isTopPosition: v, isRightPosition: b, arrayValue: g, itemsSchema: S, addItem: q, removeItem: y, moveItem: B, canAdd: P, canRemove: p, getItemLabel: w, fieldGap: V, get QCard() {
|
|
8545
8545
|
return ia;
|
|
8546
8546
|
}, get QCardSection() {
|
|
8547
8547
|
return nr;
|
|
@@ -8550,7 +8550,7 @@ const ks = /* @__PURE__ */ bt(hs, [["render", _s], ["__file", "/Users/zachsherbo
|
|
|
8550
8550
|
}, get FieldRenderer() {
|
|
8551
8551
|
return tl;
|
|
8552
8552
|
} };
|
|
8553
|
-
return Object.defineProperty(
|
|
8553
|
+
return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
|
|
8554
8554
|
}
|
|
8555
8555
|
}), qs = ["id"], xs = { style: { "font-weight": "500" } }, Cs = {
|
|
8556
8556
|
key: 0,
|
|
@@ -8794,7 +8794,7 @@ const Is = /* @__PURE__ */ bt(Ss, [["render", Fs], ["__file", "/Users/zachsherbo
|
|
|
8794
8794
|
"keyvalue"
|
|
8795
8795
|
)), b = u(() => {
|
|
8796
8796
|
var R, D;
|
|
8797
|
-
const
|
|
8797
|
+
const O = ((R = d == null ? void 0 : d.quickformsDefaults) == null ? void 0 : R.keyvalue) || {}, T = l.schema["x-quickforms-quasar"] || {}, H = T.addButtonPosition ?? O.addButtonPosition ?? "bottom-left", M = T.showHeaders ?? O.showHeaders ?? !1, x = T.keyLabel ?? O.keyLabel ?? "Key", E = T.valueLabel ?? O.valueLabel ?? "Value", A = {
|
|
8798
8798
|
outline: !0,
|
|
8799
8799
|
color: "primary",
|
|
8800
8800
|
icon: "add",
|
|
@@ -8807,72 +8807,72 @@ const Is = /* @__PURE__ */ bt(Ss, [["render", Fs], ["__file", "/Users/zachsherbo
|
|
|
8807
8807
|
size: "sm",
|
|
8808
8808
|
icon: "close",
|
|
8809
8809
|
color: "negative"
|
|
8810
|
-
},
|
|
8810
|
+
}, j = {
|
|
8811
8811
|
...A,
|
|
8812
|
-
...
|
|
8813
|
-
...
|
|
8812
|
+
...O.addButton || {},
|
|
8813
|
+
...T.addButton || {}
|
|
8814
8814
|
}, G = {
|
|
8815
8815
|
...F,
|
|
8816
|
-
...
|
|
8817
|
-
...
|
|
8816
|
+
...O.removeButton || {},
|
|
8817
|
+
...T.removeButton || {}
|
|
8818
8818
|
};
|
|
8819
8819
|
return {
|
|
8820
|
-
addButtonPosition:
|
|
8821
|
-
addButton:
|
|
8820
|
+
addButtonPosition: H,
|
|
8821
|
+
addButton: j,
|
|
8822
8822
|
removeButton: G,
|
|
8823
|
-
showHeaders:
|
|
8824
|
-
keyLabel:
|
|
8825
|
-
valueLabel:
|
|
8823
|
+
showHeaders: M,
|
|
8824
|
+
keyLabel: x,
|
|
8825
|
+
valueLabel: E
|
|
8826
8826
|
};
|
|
8827
8827
|
}), g = u(() => {
|
|
8828
|
-
const
|
|
8829
|
-
return
|
|
8830
|
-
}),
|
|
8831
|
-
const
|
|
8832
|
-
return
|
|
8833
|
-
}),
|
|
8828
|
+
const O = b.value.addButtonPosition;
|
|
8829
|
+
return O === "top-left" || O === "top-right";
|
|
8830
|
+
}), S = u(() => {
|
|
8831
|
+
const O = b.value.addButtonPosition;
|
|
8832
|
+
return O === "top-right" || O === "bottom-right";
|
|
8833
|
+
}), q = u(() => b.value.addButtonPosition === "bottom-center");
|
|
8834
8834
|
let y = 0;
|
|
8835
|
-
const
|
|
8835
|
+
const B = N([]), P = N(!1);
|
|
8836
8836
|
ue(
|
|
8837
8837
|
() => t.value,
|
|
8838
|
-
(
|
|
8838
|
+
(O) => {
|
|
8839
8839
|
if (P.value) {
|
|
8840
8840
|
P.value = !1;
|
|
8841
8841
|
return;
|
|
8842
8842
|
}
|
|
8843
|
-
|
|
8844
|
-
key:
|
|
8845
|
-
value: String(
|
|
8843
|
+
O && typeof O == "object" && !Array.isArray(O) ? B.value = Object.entries(O).map(([T, H]) => ({
|
|
8844
|
+
key: T,
|
|
8845
|
+
value: String(H),
|
|
8846
8846
|
id: y++
|
|
8847
|
-
})) :
|
|
8847
|
+
})) : B.value.length || (B.value = []);
|
|
8848
8848
|
},
|
|
8849
8849
|
{ immediate: !0 }
|
|
8850
8850
|
), ue(
|
|
8851
|
-
|
|
8852
|
-
(
|
|
8853
|
-
const
|
|
8854
|
-
|
|
8855
|
-
|
|
8856
|
-
}), P.value = !0, a(
|
|
8851
|
+
B,
|
|
8852
|
+
(O) => {
|
|
8853
|
+
const T = {};
|
|
8854
|
+
O.forEach((H) => {
|
|
8855
|
+
H.key.trim() && (T[H.key] = H.value);
|
|
8856
|
+
}), P.value = !0, a(T);
|
|
8857
8857
|
},
|
|
8858
8858
|
{ deep: !0 }
|
|
8859
8859
|
);
|
|
8860
8860
|
function p() {
|
|
8861
|
-
|
|
8861
|
+
B.value.push({ key: "", value: "", id: y++ });
|
|
8862
8862
|
}
|
|
8863
|
-
function w(
|
|
8864
|
-
|
|
8863
|
+
function w(O) {
|
|
8864
|
+
B.value = B.value.filter((T) => T.id !== O);
|
|
8865
8865
|
}
|
|
8866
|
-
const
|
|
8866
|
+
const V = u(() => gt(d == null ? void 0 : d.componentDefaults)), z = { props: l, value: t, setValue: a, label: o, hint: i, errorMessage: r, required: c, formContext: d, fieldId: s, inputProps: v, quickformsFeatures: b, isTopPosition: g, isRightPosition: S, isCenterPosition: q, get nextId() {
|
|
8867
8867
|
return y;
|
|
8868
|
-
}, set nextId(
|
|
8869
|
-
y =
|
|
8870
|
-
}, pairs:
|
|
8868
|
+
}, set nextId(O) {
|
|
8869
|
+
y = O;
|
|
8870
|
+
}, pairs: B, isInternalUpdate: P, addPair: p, removePair: w, fieldGap: V, get QInput() {
|
|
8871
8871
|
return ln;
|
|
8872
8872
|
}, get QBtn() {
|
|
8873
8873
|
return st;
|
|
8874
8874
|
} };
|
|
8875
|
-
return Object.defineProperty(
|
|
8875
|
+
return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
|
|
8876
8876
|
}
|
|
8877
8877
|
}), Ls = { class: "text-subtitle2" }, Rs = {
|
|
8878
8878
|
key: 0,
|
|
@@ -9077,10 +9077,10 @@ const Ws = /* @__PURE__ */ bt(As, [["render", Us], ["__file", "/Users/zachsherbo
|
|
|
9077
9077
|
), d = ht(), s = _t(l.path), v = N(""), b = N(null), g = N(!1);
|
|
9078
9078
|
ue(
|
|
9079
9079
|
() => t.value,
|
|
9080
|
-
(
|
|
9080
|
+
(T) => {
|
|
9081
9081
|
if (!g.value) {
|
|
9082
9082
|
try {
|
|
9083
|
-
v.value = JSON.stringify(
|
|
9083
|
+
v.value = JSON.stringify(T || {}, null, 2), b.value = null;
|
|
9084
9084
|
} catch {
|
|
9085
9085
|
v.value = "{}";
|
|
9086
9086
|
}
|
|
@@ -9089,60 +9089,60 @@ const Ws = /* @__PURE__ */ bt(As, [["render", Us], ["__file", "/Users/zachsherbo
|
|
|
9089
9089
|
},
|
|
9090
9090
|
{ immediate: !0 }
|
|
9091
9091
|
);
|
|
9092
|
-
function
|
|
9093
|
-
v.value =
|
|
9092
|
+
function S(T) {
|
|
9093
|
+
v.value = T;
|
|
9094
9094
|
try {
|
|
9095
|
-
const
|
|
9096
|
-
a(
|
|
9097
|
-
} catch (
|
|
9098
|
-
b.value =
|
|
9095
|
+
const H = JSON.parse(v.value);
|
|
9096
|
+
a(H), b.value = null;
|
|
9097
|
+
} catch (H) {
|
|
9098
|
+
b.value = H.message;
|
|
9099
9099
|
}
|
|
9100
9100
|
}
|
|
9101
|
-
function
|
|
9101
|
+
function q() {
|
|
9102
9102
|
try {
|
|
9103
|
-
const
|
|
9104
|
-
v.value = JSON.stringify(
|
|
9103
|
+
const T = JSON.parse(v.value);
|
|
9104
|
+
v.value = JSON.stringify(T, null, 2), b.value = null;
|
|
9105
9105
|
} catch {
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
|
-
function y(
|
|
9109
|
-
const
|
|
9110
|
-
if (
|
|
9111
|
-
|
|
9108
|
+
function y(T) {
|
|
9109
|
+
const H = T.target;
|
|
9110
|
+
if (T.ctrlKey && (T.key === " " || T.code === "Space")) {
|
|
9111
|
+
T.preventDefault(), T.stopPropagation(), q();
|
|
9112
9112
|
return;
|
|
9113
9113
|
}
|
|
9114
|
-
if (
|
|
9115
|
-
|
|
9116
|
-
const
|
|
9117
|
-
v.value = v.value.substring(0,
|
|
9118
|
-
|
|
9114
|
+
if (T.key === "Tab") {
|
|
9115
|
+
T.preventDefault(), T.stopPropagation();
|
|
9116
|
+
const M = H.selectionStart, x = H.selectionEnd, E = " ";
|
|
9117
|
+
v.value = v.value.substring(0, M) + E + v.value.substring(x), setTimeout(() => {
|
|
9118
|
+
H.selectionStart = H.selectionEnd = M + E.length;
|
|
9119
9119
|
}, 0);
|
|
9120
9120
|
return;
|
|
9121
9121
|
}
|
|
9122
|
-
(
|
|
9122
|
+
(T.key === "Enter" || T.key === " ") && T.stopPropagation();
|
|
9123
9123
|
}
|
|
9124
|
-
const
|
|
9125
|
-
var
|
|
9126
|
-
const
|
|
9124
|
+
const B = u(() => b.value || r.value), P = u(() => {
|
|
9125
|
+
var E, A;
|
|
9126
|
+
const T = ((E = d == null ? void 0 : d.componentDefaults) == null ? void 0 : E.global) || {}, H = ((A = d == null ? void 0 : d.componentDefaults) == null ? void 0 : A.jsoneditor) || {}, M = l.schema["x-quasar-props"] || {}, x = l.schema["x-component-props"] || {};
|
|
9127
9127
|
return {
|
|
9128
|
-
...k,
|
|
9129
|
-
...j,
|
|
9130
9128
|
...T,
|
|
9131
|
-
...
|
|
9129
|
+
...H,
|
|
9130
|
+
...x,
|
|
9131
|
+
...M
|
|
9132
9132
|
};
|
|
9133
9133
|
}), p = u(() => {
|
|
9134
|
-
var
|
|
9135
|
-
const
|
|
9136
|
-
return { ...
|
|
9137
|
-
}), w = u(() => p.value.showFormatHint !== !1),
|
|
9138
|
-
const
|
|
9139
|
-
return
|
|
9140
|
-
}),
|
|
9134
|
+
var x, E;
|
|
9135
|
+
const T = ((x = d == null ? void 0 : d.quickformsDefaults) == null ? void 0 : x.global) || {}, H = ((E = d == null ? void 0 : d.quickformsDefaults) == null ? void 0 : E.jsoneditor) || {}, M = l.schema["x-quickforms-quasar"] || {};
|
|
9136
|
+
return { ...T, ...H, ...M };
|
|
9137
|
+
}), w = u(() => p.value.showFormatHint !== !1), V = u(() => {
|
|
9138
|
+
const T = l.schema["x-rows"];
|
|
9139
|
+
return T !== void 0 ? T : 8;
|
|
9140
|
+
}), z = u(() => gt(d == null ? void 0 : d.componentDefaults)), O = { props: l, value: t, setValue: a, label: o, hint: i, errorMessage: r, required: c, formContext: d, fieldId: s, jsonText: v, parseError: b, isInitialized: g, handleInput: S, formatJson: q, handleKeyDown: y, displayError: B, quasarProps: P, quickformsFeatures: p, showFormatHint: w, rows: V, fieldGap: z, get QInput() {
|
|
9141
9141
|
return ln;
|
|
9142
9142
|
}, get QIcon() {
|
|
9143
9143
|
return Xe;
|
|
9144
9144
|
} };
|
|
9145
|
-
return Object.defineProperty(
|
|
9145
|
+
return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
|
|
9146
9146
|
}
|
|
9147
9147
|
}), Xs = {
|
|
9148
9148
|
key: 0,
|
|
@@ -9246,7 +9246,7 @@ const tc = /* @__PURE__ */ bt(Gs, [["render", ec], ["__scopeId", "data-v-b6a61d1
|
|
|
9246
9246
|
), c = ht(), d = _t(l.path);
|
|
9247
9247
|
Array.isArray(t.value) || r([], !1);
|
|
9248
9248
|
const s = u(() => {
|
|
9249
|
-
const
|
|
9249
|
+
const B = Vt(
|
|
9250
9250
|
l.schema,
|
|
9251
9251
|
c == null ? void 0 : c.componentDefaults,
|
|
9252
9252
|
"select"
|
|
@@ -9254,49 +9254,49 @@ const tc = /* @__PURE__ */ bt(Gs, [["render", ec], ["__scopeId", "data-v-b6a61d1
|
|
|
9254
9254
|
autocomplete: P,
|
|
9255
9255
|
autocompleteThreshold: p,
|
|
9256
9256
|
useInput: w,
|
|
9257
|
-
fillInput:
|
|
9258
|
-
hideSelected:
|
|
9259
|
-
...
|
|
9260
|
-
} =
|
|
9261
|
-
return
|
|
9257
|
+
fillInput: V,
|
|
9258
|
+
hideSelected: z,
|
|
9259
|
+
...O
|
|
9260
|
+
} = B;
|
|
9261
|
+
return O;
|
|
9262
9262
|
}), v = u(() => {
|
|
9263
9263
|
var w;
|
|
9264
|
-
const
|
|
9265
|
-
if (!
|
|
9266
|
-
const P = Array.isArray(
|
|
9264
|
+
const B = l.schema.items;
|
|
9265
|
+
if (!B || typeof B == "boolean") return [];
|
|
9266
|
+
const P = Array.isArray(B) ? (w = B[0]) == null ? void 0 : w.enum : B.enum;
|
|
9267
9267
|
if (!P) return [];
|
|
9268
|
-
const p =
|
|
9269
|
-
return P.map((
|
|
9270
|
-
let
|
|
9271
|
-
return p &&
|
|
9272
|
-
label:
|
|
9273
|
-
value:
|
|
9268
|
+
const p = B["x-enum-labels"];
|
|
9269
|
+
return P.map((V) => {
|
|
9270
|
+
let z = String(V);
|
|
9271
|
+
return p && V in p && (z = p[V]), {
|
|
9272
|
+
label: z,
|
|
9273
|
+
value: V
|
|
9274
9274
|
};
|
|
9275
9275
|
});
|
|
9276
9276
|
}), b = N([]);
|
|
9277
9277
|
ue(
|
|
9278
9278
|
v,
|
|
9279
|
-
(
|
|
9280
|
-
b.value =
|
|
9279
|
+
(B) => {
|
|
9280
|
+
b.value = B;
|
|
9281
9281
|
},
|
|
9282
9282
|
{ immediate: !0 }
|
|
9283
9283
|
);
|
|
9284
9284
|
const g = u(() => {
|
|
9285
9285
|
var P, p;
|
|
9286
|
-
const
|
|
9287
|
-
return (
|
|
9288
|
-
}),
|
|
9286
|
+
const B = l.schema["x-component-props"];
|
|
9287
|
+
return (B == null ? void 0 : B.autocomplete) !== void 0 ? B.autocomplete : ((p = (P = c == null ? void 0 : c.componentDefaults) == null ? void 0 : P.select) == null ? void 0 : p.autocomplete) !== void 0 ? c.componentDefaults.select.autocomplete : !0;
|
|
9288
|
+
}), S = (B, P) => {
|
|
9289
9289
|
P(() => {
|
|
9290
|
-
if (
|
|
9290
|
+
if (B === "")
|
|
9291
9291
|
b.value = v.value;
|
|
9292
9292
|
else {
|
|
9293
|
-
const p =
|
|
9293
|
+
const p = B.toLowerCase();
|
|
9294
9294
|
b.value = v.value.filter(
|
|
9295
9295
|
(w) => w.label.toLowerCase().includes(p)
|
|
9296
9296
|
);
|
|
9297
9297
|
}
|
|
9298
9298
|
});
|
|
9299
|
-
},
|
|
9299
|
+
}, q = u(() => gt(c == null ? void 0 : c.componentDefaults)), y = { props: l, value: t, errorMessage: a, label: o, hint: i, setValue: r, formContext: c, fieldId: d, quasarProps: s, allOptions: v, filteredOptions: b, useFilter: g, filterFn: S, fieldGap: q, get QSelect() {
|
|
9300
9300
|
return na;
|
|
9301
9301
|
} };
|
|
9302
9302
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
@@ -9464,9 +9464,9 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9464
9464
|
"onUpdate:modelValue": [Function, Array]
|
|
9465
9465
|
},
|
|
9466
9466
|
setup(e, { slots: n, emit: l }) {
|
|
9467
|
-
const { proxy: t } = Te(), { $q: a } = t, { registerTick: o } = gn(), { registerTick: i } = gn(), { registerTick: r } = gn(), { registerTimeout: c, removeTimeout: d } = En(), { registerTimeout: s, removeTimeout: v } = En(), b = N(null), g = N(null),
|
|
9468
|
-
let
|
|
9469
|
-
const
|
|
9467
|
+
const { proxy: t } = Te(), { $q: a } = t, { registerTick: o } = gn(), { registerTick: i } = gn(), { registerTick: r } = gn(), { registerTimeout: c, removeTimeout: d } = En(), { registerTimeout: s, removeTimeout: v } = En(), b = N(null), g = N(null), S = N(e.modelValue), q = N(!1), y = N(!0), B = N(!1), P = N(!1), p = [], w = N(0), V = N(!1);
|
|
9468
|
+
let z = null, O = null, T;
|
|
9469
|
+
const H = u(() => ({
|
|
9470
9470
|
activeClass: e.activeClass,
|
|
9471
9471
|
activeColor: e.activeColor,
|
|
9472
9472
|
activeBgColor: e.activeBgColor,
|
|
@@ -9478,22 +9478,22 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9478
9478
|
narrowIndicator: e.narrowIndicator,
|
|
9479
9479
|
inlineLabel: e.inlineLabel,
|
|
9480
9480
|
noCaps: e.noCaps
|
|
9481
|
-
})),
|
|
9482
|
-
const Q = w.value, oe =
|
|
9481
|
+
})), M = u(() => {
|
|
9482
|
+
const Q = w.value, oe = S.value;
|
|
9483
9483
|
for (let de = 0; de < Q; de++)
|
|
9484
9484
|
if (p[de].name.value === oe)
|
|
9485
9485
|
return !0;
|
|
9486
9486
|
return !1;
|
|
9487
|
-
}),
|
|
9488
|
-
() => `q-tabs row no-wrap items-center q-tabs--${
|
|
9487
|
+
}), x = u(() => `q-tabs__content--align-${q.value === !0 ? "left" : P.value === !0 ? "justify" : e.align}`), E = u(
|
|
9488
|
+
() => `q-tabs row no-wrap items-center q-tabs--${q.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" : "")
|
|
9489
9489
|
), A = u(
|
|
9490
|
-
() => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " +
|
|
9491
|
-
), F = u(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }),
|
|
9492
|
-
ue(
|
|
9490
|
+
() => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + x.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
|
|
9491
|
+
), F = u(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), j = u(() => e.vertical !== !0 && a.lang.rtl === !0), G = u(() => Bn === !1 && j.value === !0);
|
|
9492
|
+
ue(j, k), ue(() => e.modelValue, (Q) => {
|
|
9493
9493
|
R({ name: Q, setCurrent: !0, skipEmit: !0 });
|
|
9494
9494
|
}), ue(() => e.outsideArrows, D);
|
|
9495
9495
|
function R({ name: Q, setCurrent: oe, skipEmit: de }) {
|
|
9496
|
-
|
|
9496
|
+
S.value !== Q && (de !== !0 && e["onUpdate:modelValue"] !== void 0 && l("update:modelValue", Q), (oe === !0 || e["onUpdate:modelValue"] === void 0) && (be(S.value, Q), S.value = Q));
|
|
9497
9497
|
}
|
|
9498
9498
|
function D() {
|
|
9499
9499
|
o(() => {
|
|
@@ -9513,7 +9513,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9513
9513
|
0
|
|
9514
9514
|
)
|
|
9515
9515
|
), Ee = oe > 0 && de > oe;
|
|
9516
|
-
|
|
9516
|
+
q.value = Ee, Ee === !0 && i(k), P.value = oe < parseInt(e.breakpoint, 10);
|
|
9517
9517
|
}
|
|
9518
9518
|
function be(Q, oe) {
|
|
9519
9519
|
const de = Q != null && Q !== "" ? p.find((Me) => Me.name.value === Q) : null, Ee = oe != null && oe !== "" ? p.find((Me) => Me.name.value === oe) : null;
|
|
@@ -9521,33 +9521,33 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9521
9521
|
ze = !1;
|
|
9522
9522
|
else if (de && Ee) {
|
|
9523
9523
|
const Me = de.tabIndicatorRef.value, he = Ee.tabIndicatorRef.value;
|
|
9524
|
-
|
|
9524
|
+
z !== null && (clearTimeout(z), z = null), Me.style.transition = "none", Me.style.transform = "none", he.style.transition = "none", he.style.transform = "none";
|
|
9525
9525
|
const we = Me.getBoundingClientRect(), Ve = he.getBoundingClientRect();
|
|
9526
9526
|
he.style.transform = e.vertical === !0 ? `translate3d(0,${we.top - Ve.top}px,0) scale3d(1,${Ve.height ? we.height / Ve.height : 1},1)` : `translate3d(${we.left - Ve.left}px,0,0) scale3d(${Ve.width ? we.width / Ve.width : 1},1,1)`, r(() => {
|
|
9527
|
-
|
|
9528
|
-
|
|
9527
|
+
z = setTimeout(() => {
|
|
9528
|
+
z = null, he.style.transition = "transform .25s cubic-bezier(.4, 0, .2, 1)", he.style.transform = "none";
|
|
9529
9529
|
}, 70);
|
|
9530
9530
|
});
|
|
9531
9531
|
}
|
|
9532
|
-
Ee &&
|
|
9532
|
+
Ee && q.value === !0 && C(Ee.rootRef.value);
|
|
9533
9533
|
}
|
|
9534
9534
|
function C(Q) {
|
|
9535
9535
|
const { left: oe, width: de, top: Ee, height: Me } = g.value.getBoundingClientRect(), he = Q.getBoundingClientRect();
|
|
9536
9536
|
let we = e.vertical === !0 ? he.top - Ee : he.left - oe;
|
|
9537
9537
|
if (we < 0) {
|
|
9538
|
-
g.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(we),
|
|
9538
|
+
g.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(we), k();
|
|
9539
9539
|
return;
|
|
9540
9540
|
}
|
|
9541
|
-
we += e.vertical === !0 ? he.height - Me : he.width - de, we > 0 && (g.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(we),
|
|
9541
|
+
we += e.vertical === !0 ? he.height - Me : he.width - de, we > 0 && (g.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(we), k());
|
|
9542
9542
|
}
|
|
9543
|
-
function
|
|
9543
|
+
function k() {
|
|
9544
9544
|
const Q = g.value;
|
|
9545
9545
|
if (Q === null) return;
|
|
9546
9546
|
const oe = Q.getBoundingClientRect(), de = e.vertical === !0 ? Q.scrollTop : Math.abs(Q.scrollLeft);
|
|
9547
|
-
|
|
9547
|
+
j.value === !0 ? (y.value = Math.ceil(de + oe.width) < Q.scrollWidth - 1, B.value = de > 0) : (y.value = de > 0, B.value = e.vertical === !0 ? Math.ceil(de + oe.height) < Q.scrollHeight : Math.ceil(de + oe.width) < Q.scrollWidth);
|
|
9548
9548
|
}
|
|
9549
9549
|
function Y(Q) {
|
|
9550
|
-
|
|
9550
|
+
O !== null && clearInterval(O), O = setInterval(() => {
|
|
9551
9551
|
U(Q) === !0 && te();
|
|
9552
9552
|
}, 5);
|
|
9553
9553
|
}
|
|
@@ -9558,7 +9558,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9558
9558
|
Y(G.value === !0 ? 0 : Number.MAX_SAFE_INTEGER);
|
|
9559
9559
|
}
|
|
9560
9560
|
function te() {
|
|
9561
|
-
|
|
9561
|
+
O !== null && (clearInterval(O), O = null);
|
|
9562
9562
|
}
|
|
9563
9563
|
function $(Q, oe) {
|
|
9564
9564
|
const de = Array.prototype.filter.call(
|
|
@@ -9572,7 +9572,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9572
9572
|
return C(de[Ee - 1]), de[Ee - 1].focus(), !0;
|
|
9573
9573
|
const Me = Q === (e.vertical === !0 ? 38 : 37), he = Q === (e.vertical === !0 ? 40 : 39), we = Me === !0 ? -1 : he === !0 ? 1 : void 0;
|
|
9574
9574
|
if (we !== void 0) {
|
|
9575
|
-
const Ve =
|
|
9575
|
+
const Ve = j.value === !0 ? -1 : 1, je = de.indexOf(oe) + we * Ve;
|
|
9576
9576
|
return je >= 0 && je < Ee && (C(de[je]), de[je].focus({ preventScroll: !0 })), !0;
|
|
9577
9577
|
}
|
|
9578
9578
|
}
|
|
@@ -9587,7 +9587,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9587
9587
|
const oe = g.value, { get: de, set: Ee } = ke.value;
|
|
9588
9588
|
let Me = !1, he = de(oe);
|
|
9589
9589
|
const we = Q < he ? -1 : 1;
|
|
9590
|
-
return he += we * 5, he < 0 ? (Me = !0, he = 0) : (we === -1 && he <= Q || we === 1 && he >= Q) && (Me = !0, he = Q), Ee(oe, he),
|
|
9590
|
+
return he += we * 5, he < 0 ? (Me = !0, he = 0) : (we === -1 && he <= Q || we === 1 && he >= Q) && (Me = !0, he = Q), Ee(oe, he), k(), Me;
|
|
9591
9591
|
}
|
|
9592
9592
|
function Ie(Q, oe) {
|
|
9593
9593
|
for (const de in Q)
|
|
@@ -9630,50 +9630,50 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9630
9630
|
continue;
|
|
9631
9631
|
Se.hrefLen > oe.hrefLen && (Q = we.name.value, oe = Se);
|
|
9632
9632
|
}
|
|
9633
|
-
if (Q === null && p.some((we) => we.routeData === void 0 && we.name.value ===
|
|
9633
|
+
if (Q === null && p.some((we) => we.routeData === void 0 && we.name.value === S.value) === !0) {
|
|
9634
9634
|
ze = !1;
|
|
9635
9635
|
return;
|
|
9636
9636
|
}
|
|
9637
9637
|
R({ name: Q, setCurrent: !0 });
|
|
9638
9638
|
}
|
|
9639
9639
|
function Oe(Q) {
|
|
9640
|
-
if (d(),
|
|
9640
|
+
if (d(), V.value !== !0 && b.value !== null && Q.target && typeof Q.target.closest == "function") {
|
|
9641
9641
|
const oe = Q.target.closest(".q-tab");
|
|
9642
|
-
oe && b.value.contains(oe) === !0 && (
|
|
9642
|
+
oe && b.value.contains(oe) === !0 && (V.value = !0, q.value === !0 && C(oe));
|
|
9643
9643
|
}
|
|
9644
9644
|
}
|
|
9645
9645
|
function Ze() {
|
|
9646
9646
|
c(() => {
|
|
9647
|
-
|
|
9647
|
+
V.value = !1;
|
|
9648
9648
|
}, 30);
|
|
9649
9649
|
}
|
|
9650
9650
|
function nt() {
|
|
9651
9651
|
kt.avoidRouteWatcher === !1 ? s(qe) : v();
|
|
9652
9652
|
}
|
|
9653
9653
|
function ct() {
|
|
9654
|
-
if (
|
|
9654
|
+
if (T === void 0) {
|
|
9655
9655
|
const Q = ue(() => t.$route.fullPath, nt);
|
|
9656
|
-
|
|
9657
|
-
Q(),
|
|
9656
|
+
T = () => {
|
|
9657
|
+
Q(), T = void 0;
|
|
9658
9658
|
};
|
|
9659
9659
|
}
|
|
9660
9660
|
}
|
|
9661
9661
|
function lt(Q) {
|
|
9662
9662
|
p.push(Q), w.value++, D(), Q.routeData === void 0 || t.$route === void 0 ? s(() => {
|
|
9663
|
-
if (
|
|
9664
|
-
const oe =
|
|
9663
|
+
if (q.value === !0) {
|
|
9664
|
+
const oe = S.value, de = oe != null && oe !== "" ? p.find((Ee) => Ee.name.value === oe) : null;
|
|
9665
9665
|
de && C(de.rootRef.value);
|
|
9666
9666
|
}
|
|
9667
9667
|
}) : (ct(), Q.routeData.hasRouterLink.value === !0 && nt());
|
|
9668
9668
|
}
|
|
9669
9669
|
function Ke(Q) {
|
|
9670
|
-
p.splice(p.indexOf(Q), 1), w.value--, D(),
|
|
9670
|
+
p.splice(p.indexOf(Q), 1), w.value--, D(), T !== void 0 && Q.routeData !== void 0 && (p.every((oe) => oe.routeData === void 0) === !0 && T(), nt());
|
|
9671
9671
|
}
|
|
9672
9672
|
const kt = {
|
|
9673
|
-
currentModel:
|
|
9674
|
-
tabProps:
|
|
9675
|
-
hasFocus:
|
|
9676
|
-
hasActiveTab:
|
|
9673
|
+
currentModel: S,
|
|
9674
|
+
tabProps: H,
|
|
9675
|
+
hasFocus: V,
|
|
9676
|
+
hasActiveTab: M,
|
|
9677
9677
|
registerTab: lt,
|
|
9678
9678
|
unregisterTab: Ke,
|
|
9679
9679
|
verifyRouteModel: nt,
|
|
@@ -9684,16 +9684,16 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9684
9684
|
};
|
|
9685
9685
|
Tr(mo, kt);
|
|
9686
9686
|
function Mt() {
|
|
9687
|
-
|
|
9687
|
+
z !== null && clearTimeout(z), te(), T == null || T();
|
|
9688
9688
|
}
|
|
9689
9689
|
let dt, ze;
|
|
9690
9690
|
return Ye(Mt), Vn(() => {
|
|
9691
|
-
dt =
|
|
9691
|
+
dt = T !== void 0, Mt();
|
|
9692
9692
|
}), jl(() => {
|
|
9693
9693
|
dt === !0 && (ct(), ze = !0, nt()), D();
|
|
9694
9694
|
}), () => m("div", {
|
|
9695
9695
|
ref: b,
|
|
9696
|
-
class:
|
|
9696
|
+
class: E.value,
|
|
9697
9697
|
role: "tablist",
|
|
9698
9698
|
onFocusin: Oe,
|
|
9699
9699
|
onFocusout: Ze
|
|
@@ -9702,7 +9702,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9702
9702
|
m("div", {
|
|
9703
9703
|
ref: g,
|
|
9704
9704
|
class: A.value,
|
|
9705
|
-
onScroll:
|
|
9705
|
+
onScroll: k
|
|
9706
9706
|
}, et(n.default)),
|
|
9707
9707
|
m(Xe, {
|
|
9708
9708
|
class: "q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon" + (y.value === !0 ? "" : " q-tabs__arrow--faded"),
|
|
@@ -9714,7 +9714,7 @@ const uc = ["left", "center", "right", "justify"], sc = Be({
|
|
|
9714
9714
|
onTouchendPassive: te
|
|
9715
9715
|
}),
|
|
9716
9716
|
m(Xe, {
|
|
9717
|
-
class: "q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon" + (
|
|
9717
|
+
class: "q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon" + (B.value === !0 ? "" : " q-tabs__arrow--faded"),
|
|
9718
9718
|
name: e.rightIcon || a.iconSet.tabs[e.vertical === !0 ? "down" : "right"],
|
|
9719
9719
|
onMousedownPassive: ne,
|
|
9720
9720
|
onTouchstartPassive: ne,
|
|
@@ -9756,18 +9756,18 @@ function vc(e, n, l, t) {
|
|
|
9756
9756
|
), b = u(
|
|
9757
9757
|
() => "q-tab__content self-stretch flex-center relative-position q-anchor--skip non-selectable " + (a.tabProps.value.inlineLabel === !0 ? "row no-wrap q-tab__content--inline" : "column") + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
|
|
9758
9758
|
), g = u(() => e.disable === !0 || a.hasFocus.value === !0 || s.value === !1 && a.hasActiveTab.value === !0 ? -1 : e.tabindex || 0);
|
|
9759
|
-
function
|
|
9760
|
-
var
|
|
9761
|
-
if (w !== !0 && (p == null ? void 0 : p.qAvoidFocus) !== !0 && ((
|
|
9759
|
+
function S(p, w) {
|
|
9760
|
+
var V;
|
|
9761
|
+
if (w !== !0 && (p == null ? void 0 : p.qAvoidFocus) !== !0 && ((V = i.value) == null || V.focus()), e.disable !== !0) {
|
|
9762
9762
|
a.updateModel({ name: e.name }), l("click", p);
|
|
9763
9763
|
return;
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
9766
|
-
function
|
|
9767
|
-
Lt(p, [13, 32]) ?
|
|
9766
|
+
function q(p) {
|
|
9767
|
+
Lt(p, [13, 32]) ? S(p, !0) : rl(p) !== !0 && p.keyCode >= 35 && p.keyCode <= 40 && p.altKey !== !0 && p.metaKey !== !0 && a.onKbdNavigate(p.keyCode, o.$el) === !0 && Qe(p), l("keydown", p);
|
|
9768
9768
|
}
|
|
9769
9769
|
function y() {
|
|
9770
|
-
const p = a.tabProps.value.narrowIndicator, w = [],
|
|
9770
|
+
const p = a.tabProps.value.narrowIndicator, w = [], V = m("div", {
|
|
9771
9771
|
ref: c,
|
|
9772
9772
|
class: [
|
|
9773
9773
|
"q-tab__indicator",
|
|
@@ -9789,38 +9789,38 @@ function vc(e, n, l, t) {
|
|
|
9789
9789
|
}) : m("div", {
|
|
9790
9790
|
class: "q-tab__alert" + (e.alert !== !0 ? ` text-${e.alert}` : "")
|
|
9791
9791
|
})
|
|
9792
|
-
), p === !0 && w.push(
|
|
9793
|
-
const
|
|
9792
|
+
), p === !0 && w.push(V);
|
|
9793
|
+
const z = [
|
|
9794
9794
|
m("div", { class: "q-focus-helper", tabindex: -1, ref: i }),
|
|
9795
9795
|
m("div", { class: b.value }, Qt(n.default, w))
|
|
9796
9796
|
];
|
|
9797
|
-
return p === !1 &&
|
|
9797
|
+
return p === !1 && z.push(V), z;
|
|
9798
9798
|
}
|
|
9799
|
-
const
|
|
9799
|
+
const B = {
|
|
9800
9800
|
name: u(() => e.name),
|
|
9801
9801
|
rootRef: r,
|
|
9802
9802
|
tabIndicatorRef: c,
|
|
9803
9803
|
routeData: t
|
|
9804
9804
|
};
|
|
9805
9805
|
Ye(() => {
|
|
9806
|
-
a.unregisterTab(
|
|
9806
|
+
a.unregisterTab(B);
|
|
9807
9807
|
}), Ct(() => {
|
|
9808
|
-
a.registerTab(
|
|
9808
|
+
a.registerTab(B);
|
|
9809
9809
|
});
|
|
9810
9810
|
function P(p, w) {
|
|
9811
|
-
const
|
|
9811
|
+
const V = {
|
|
9812
9812
|
ref: r,
|
|
9813
9813
|
class: v.value,
|
|
9814
9814
|
tabindex: g.value,
|
|
9815
9815
|
role: "tab",
|
|
9816
9816
|
"aria-selected": s.value === !0 ? "true" : "false",
|
|
9817
9817
|
"aria-disabled": e.disable === !0 ? "true" : void 0,
|
|
9818
|
-
onClick:
|
|
9819
|
-
onKeydown:
|
|
9818
|
+
onClick: S,
|
|
9819
|
+
onKeydown: q,
|
|
9820
9820
|
...w
|
|
9821
9821
|
};
|
|
9822
9822
|
return Yt(
|
|
9823
|
-
m(p,
|
|
9823
|
+
m(p, V, y()),
|
|
9824
9824
|
[[Gl, d.value]]
|
|
9825
9825
|
);
|
|
9826
9826
|
}
|
|
@@ -9852,56 +9852,64 @@ const mc = Be({
|
|
|
9852
9852
|
l.schema,
|
|
9853
9853
|
{ label: l.label }
|
|
9854
9854
|
), r = _t(l.path), c = ht(), d = u(() => {
|
|
9855
|
-
const
|
|
9856
|
-
return { ...l.schema["x-component-props"] || {}, ...
|
|
9855
|
+
const H = l.schema["x-quasar-props"] || {};
|
|
9856
|
+
return { ...l.schema["x-component-props"] || {}, ...H };
|
|
9857
9857
|
}), s = u(() => l.schema.oneOf || l.schema.anyOf || []), v = N(0);
|
|
9858
9858
|
Ct(() => {
|
|
9859
9859
|
if (t.value) {
|
|
9860
|
-
const
|
|
9861
|
-
|
|
9860
|
+
const H = s.value.findIndex((M) => lr.validate(M, t.value).valid);
|
|
9861
|
+
H !== -1 && (v.value = H);
|
|
9862
9862
|
}
|
|
9863
9863
|
});
|
|
9864
9864
|
const b = u(() => s.value[v.value]), g = u(() => {
|
|
9865
|
-
const
|
|
9866
|
-
return !
|
|
9867
|
-
key:
|
|
9868
|
-
schema:
|
|
9869
|
-
path: l.path ? `${l.path}.${
|
|
9865
|
+
const H = b.value;
|
|
9866
|
+
return !H || !H.properties ? [] : Object.entries(H.properties).map(([M, x]) => ({
|
|
9867
|
+
key: M,
|
|
9868
|
+
schema: x,
|
|
9869
|
+
path: l.path ? `${l.path}.${M}` : M
|
|
9870
9870
|
}));
|
|
9871
|
+
}), S = u(() => {
|
|
9872
|
+
const H = b.value;
|
|
9873
|
+
return H && H.properties && !H.oneOf && !H.anyOf && !H.allOf;
|
|
9871
9874
|
}), q = u(() => {
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9875
|
+
var x, E;
|
|
9876
|
+
const H = l.schema["x-oneof-style"];
|
|
9877
|
+
if (H)
|
|
9878
|
+
return H;
|
|
9879
|
+
const M = (E = (x = c == null ? void 0 : c.componentDefaults) == null ? void 0 : x.oneOf) == null ? void 0 : E.displayStyle;
|
|
9880
|
+
return M || (s.value.length <= 4 ? "tabs" : "dropdown");
|
|
9881
|
+
}), y = (H, M) => {
|
|
9882
|
+
const x = l.schema["x-oneof-labels"];
|
|
9883
|
+
return x && x[M] ? x[M] : H.title || `Option ${M + 1}`;
|
|
9884
|
+
}, B = u(() => s.value.map((H, M) => ({
|
|
9885
|
+
label: y(H, M),
|
|
9886
|
+
value: M
|
|
9887
|
+
}))), P = u(() => {
|
|
9888
|
+
var M, x;
|
|
9889
|
+
const H = l.schema["x-oneof-select-label"];
|
|
9890
|
+
return H || ((x = (M = c == null ? void 0 : c.componentDefaults) == null ? void 0 : M.oneOf) == null ? void 0 : x.selectLabel) || "Select Option";
|
|
9891
|
+
}), p = N(B.value);
|
|
9892
|
+
ue(B, (H) => {
|
|
9893
|
+
p.value = H;
|
|
9886
9894
|
}, { immediate: !0 });
|
|
9887
|
-
const
|
|
9888
|
-
var
|
|
9889
|
-
const
|
|
9890
|
-
return (
|
|
9891
|
-
}),
|
|
9892
|
-
|
|
9893
|
-
if (
|
|
9894
|
-
|
|
9895
|
+
const w = u(() => {
|
|
9896
|
+
var M, x;
|
|
9897
|
+
const H = l.schema["x-component-props"];
|
|
9898
|
+
return (H == null ? void 0 : H.autocomplete) !== void 0 ? H.autocomplete : ((x = (M = c == null ? void 0 : c.componentDefaults) == null ? void 0 : M.select) == null ? void 0 : x.autocomplete) !== void 0 ? c.componentDefaults.select.autocomplete : !0;
|
|
9899
|
+
}), V = (H, M) => {
|
|
9900
|
+
M(() => {
|
|
9901
|
+
if (H === "")
|
|
9902
|
+
p.value = B.value;
|
|
9895
9903
|
else {
|
|
9896
|
-
const
|
|
9897
|
-
|
|
9898
|
-
(
|
|
9904
|
+
const x = H.toLowerCase();
|
|
9905
|
+
p.value = B.value.filter(
|
|
9906
|
+
(E) => E.label.toLowerCase().includes(x)
|
|
9899
9907
|
);
|
|
9900
9908
|
}
|
|
9901
9909
|
});
|
|
9902
|
-
},
|
|
9903
|
-
v.value =
|
|
9904
|
-
},
|
|
9910
|
+
}, z = (H) => {
|
|
9911
|
+
v.value = H;
|
|
9912
|
+
}, O = u(() => gt(c == null ? void 0 : c.componentDefaults)), T = { props: l, value: t, label: a, hint: o, errorMessage: i, fieldId: r, formContext: c, quasarProps: d, options: s, selectedIndex: v, activeSchema: b, activeProperties: g, shouldRenderPropertiesInline: S, displayStyle: q, getOptionLabel: y, allSelectOptions: B, selectLabel: P, filteredOptions: p, useFilter: w, filterFn: V, handleOptionChange: z, fieldGap: O, get QCard() {
|
|
9905
9913
|
return ia;
|
|
9906
9914
|
}, get QCardSection() {
|
|
9907
9915
|
return nr;
|
|
@@ -9914,7 +9922,7 @@ const mc = Be({
|
|
|
9914
9922
|
}, get FieldRenderer() {
|
|
9915
9923
|
return tl;
|
|
9916
9924
|
} };
|
|
9917
|
-
return Object.defineProperty(
|
|
9925
|
+
return Object.defineProperty(T, "__isScriptSetup", { enumerable: !1, value: !0 }), T;
|
|
9918
9926
|
}
|
|
9919
9927
|
}), gc = {
|
|
9920
9928
|
key: 0,
|
|
@@ -10035,7 +10043,7 @@ function kc(e, n, l, t, a, o) {
|
|
|
10035
10043
|
t.handleOptionChange
|
|
10036
10044
|
],
|
|
10037
10045
|
options: t.filteredOptions,
|
|
10038
|
-
label:
|
|
10046
|
+
label: t.selectLabel,
|
|
10039
10047
|
disable: l.disabled || l.readonly,
|
|
10040
10048
|
"use-input": t.useFilter,
|
|
10041
10049
|
"input-debounce": 0,
|
|
@@ -10046,7 +10054,7 @@ function kc(e, n, l, t, a, o) {
|
|
|
10046
10054
|
"emit-value": "",
|
|
10047
10055
|
"map-options": "",
|
|
10048
10056
|
onFilter: t.filterFn
|
|
10049
|
-
}, t.quasarProps), null, 16, ["modelValue", "options", "disable", "use-input", "fill-input", "hide-selected"]),
|
|
10057
|
+
}, t.quasarProps), null, 16, ["modelValue", "options", "label", "disable", "use-input", "fill-input", "hide-selected"]),
|
|
10050
10058
|
He("div", wc, [
|
|
10051
10059
|
ve(" Render object properties directly to avoid nested expansion panel "),
|
|
10052
10060
|
t.shouldRenderPropertiesInline ? (re(!0), ce(
|