@quickflo/quickforms-quasar 1.16.6 → 1.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/QuasarOneOfField.vue.d.ts.map +1 -1
- package/dist/index.js +1202 -1200
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -503,24 +503,24 @@ function Cy(i, e) {
|
|
|
503
503
|
const k = ++l, v = e.value !== !0 ? () => {
|
|
504
504
|
s.value = !0;
|
|
505
505
|
} : () => {
|
|
506
|
-
}, x = (
|
|
507
|
-
|
|
506
|
+
}, x = (E, q) => {
|
|
507
|
+
E === !0 && v(), r.value = E, o.value = q || null, e.value = !1;
|
|
508
508
|
}, C = [];
|
|
509
|
-
for (let
|
|
510
|
-
const q = t.rules[
|
|
511
|
-
let
|
|
512
|
-
if (typeof q == "function" ?
|
|
513
|
-
return x(!0,
|
|
514
|
-
|
|
509
|
+
for (let E = 0; E < t.rules.length; E++) {
|
|
510
|
+
const q = t.rules[E];
|
|
511
|
+
let F;
|
|
512
|
+
if (typeof q == "function" ? F = q(y, da) : typeof q == "string" && da[q] !== void 0 && (F = da[q](y)), F === !1 || typeof F == "string")
|
|
513
|
+
return x(!0, F), !1;
|
|
514
|
+
F !== !0 && F !== void 0 && C.push(F);
|
|
515
515
|
}
|
|
516
516
|
return C.length === 0 ? (x(!1), !0) : (e.value = !0, Promise.all(C).then(
|
|
517
|
-
(
|
|
518
|
-
if (
|
|
517
|
+
(E) => {
|
|
518
|
+
if (E === void 0 || Array.isArray(E) === !1 || E.length === 0)
|
|
519
519
|
return k === l && x(!1), !0;
|
|
520
|
-
const q =
|
|
520
|
+
const q = E.find((F) => F === !1 || typeof F == "string");
|
|
521
521
|
return k === l && x(q !== void 0, q), q === void 0;
|
|
522
522
|
},
|
|
523
|
-
(
|
|
523
|
+
(E) => (k === l && (console.error(E), x(!0)), !1)
|
|
524
524
|
));
|
|
525
525
|
}
|
|
526
526
|
const g = Mm(p, 0);
|
|
@@ -711,12 +711,12 @@ function dc(i) {
|
|
|
711
711
|
i.hasValue === void 0 && (i.hasValue = b(() => xo(e.modelValue))), i.emitValue === void 0 && (i.emitValue = (N) => {
|
|
712
712
|
t("update:modelValue", N);
|
|
713
713
|
}), i.controlEvents === void 0 && (i.controlEvents = {
|
|
714
|
-
onFocusin:
|
|
715
|
-
onFocusout:
|
|
714
|
+
onFocusin: V,
|
|
715
|
+
onFocusout: B
|
|
716
716
|
}), Object.assign(i, {
|
|
717
717
|
clearValue: P,
|
|
718
|
-
onControlFocusin:
|
|
719
|
-
onControlFocusout:
|
|
718
|
+
onControlFocusin: V,
|
|
719
|
+
onControlFocusout: B,
|
|
720
720
|
focus: q
|
|
721
721
|
}), i.computedCounter === void 0 && (i.computedCounter = b(() => {
|
|
722
722
|
if (e.counter !== !1) {
|
|
@@ -751,24 +751,24 @@ function dc(i) {
|
|
|
751
751
|
const N = {};
|
|
752
752
|
return i.targetUid.value && (N.for = i.targetUid.value), e.disable === !0 && (N["aria-disabled"] = "true"), N;
|
|
753
753
|
});
|
|
754
|
-
function
|
|
754
|
+
function E() {
|
|
755
755
|
var Y;
|
|
756
756
|
const N = document.activeElement;
|
|
757
757
|
let K = (Y = i.targetRef) == null ? void 0 : Y.value;
|
|
758
758
|
K && (N === null || N.id !== i.targetUid.value) && (K.hasAttribute("tabindex") === !0 || (K = K.querySelector("[tabindex]")), K !== N && (K == null || K.focus({ preventScroll: !0 })));
|
|
759
759
|
}
|
|
760
760
|
function q() {
|
|
761
|
-
Il(
|
|
761
|
+
Il(E);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
Ty(
|
|
763
|
+
function F() {
|
|
764
|
+
Ty(E);
|
|
765
765
|
const N = document.activeElement;
|
|
766
766
|
N !== null && i.rootRef.value.contains(N) && N.blur();
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function V(N) {
|
|
769
769
|
l !== null && (clearTimeout(l), l = null), i.editable.value === !0 && i.focused.value === !1 && (i.focused.value = !0, t("focus", N));
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function B(N, K) {
|
|
772
772
|
l !== null && clearTimeout(l), l = setTimeout(() => {
|
|
773
773
|
l = null, !(document.hasFocus() === !0 && (i.hasPopupOpen === !0 || i.controlRef === void 0 || i.controlRef.value === null || i.controlRef.value.contains(document.activeElement) !== !1)) && (i.focused.value === !0 && (i.focused.value = !1, t("blur", N)), K == null || K());
|
|
774
774
|
});
|
|
@@ -783,7 +783,7 @@ function dc(i) {
|
|
|
783
783
|
function R(N) {
|
|
784
784
|
[13, 32].includes(N.keyCode) && P(N);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function D() {
|
|
787
787
|
const N = [];
|
|
788
788
|
return n.prepend !== void 0 && N.push(
|
|
789
789
|
O("div", {
|
|
@@ -794,7 +794,7 @@ function dc(i) {
|
|
|
794
794
|
), N.push(
|
|
795
795
|
O("div", {
|
|
796
796
|
class: "q-field__control-container col relative-position row no-wrap q-anchor--skip"
|
|
797
|
-
},
|
|
797
|
+
}, w())
|
|
798
798
|
), c.value === !0 && e.noErrorIcon === !1 && N.push(
|
|
799
799
|
H("error", [
|
|
800
800
|
O(kt, { name: s.iconSet.field.error, color: "negative" })
|
|
@@ -829,7 +829,7 @@ function dc(i) {
|
|
|
829
829
|
i.getControlChild()
|
|
830
830
|
), N;
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function w() {
|
|
833
833
|
const N = [];
|
|
834
834
|
return e.prefix !== void 0 && e.prefix !== null && N.push(
|
|
835
835
|
O("div", {
|
|
@@ -855,12 +855,12 @@ function dc(i) {
|
|
|
855
855
|
}, e.suffix)
|
|
856
856
|
), N.concat(qt(n.default));
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function A() {
|
|
859
859
|
let N, K;
|
|
860
860
|
c.value === !0 ? h.value !== null ? (N = [O("div", { role: "alert" }, h.value)], K = `q--slot-error-${h.value}`) : (N = qt(n.error), K = "q--slot-error") : (e.hideHint !== !0 || i.focused.value === !0) && (e.hint !== void 0 ? (N = [O("div", e.hint)], K = `q--slot-hint-${e.hint}`) : (N = qt(n.hint), K = "q--slot-hint"));
|
|
861
861
|
const Y = e.counter === !0 || n.counter !== void 0;
|
|
862
862
|
if (e.hideBottomSpace === !0 && Y === !1 && N === void 0) return;
|
|
863
|
-
const
|
|
863
|
+
const M = O("div", {
|
|
864
864
|
key: K,
|
|
865
865
|
class: "q-field__messages col"
|
|
866
866
|
}, N);
|
|
@@ -868,7 +868,7 @@ function dc(i) {
|
|
|
868
868
|
class: "q-field__bottom row items-start q-field__bottom--" + (e.hideBottomSpace !== !0 ? "animated" : "stale"),
|
|
869
869
|
onClick: Zt
|
|
870
870
|
}, [
|
|
871
|
-
e.hideBottomSpace === !0 ?
|
|
871
|
+
e.hideBottomSpace === !0 ? M : O(fi, { name: "q-transition--field-message" }, () => M),
|
|
872
872
|
Y === !0 ? O("div", {
|
|
873
873
|
class: "q-field__counter"
|
|
874
874
|
}, n.counter !== void 0 ? n.counter() : i.computedCounter.value) : null
|
|
@@ -880,16 +880,16 @@ function dc(i) {
|
|
|
880
880
|
class: "q-field__append q-field__marginal row no-wrap items-center q-anchor--skip"
|
|
881
881
|
}, K);
|
|
882
882
|
}
|
|
883
|
-
let
|
|
883
|
+
let I = !1;
|
|
884
884
|
return No(() => {
|
|
885
|
-
|
|
885
|
+
I = !0;
|
|
886
886
|
}), lc(() => {
|
|
887
|
-
|
|
887
|
+
I === !0 && e.autofocus === !0 && o.focus();
|
|
888
888
|
}), e.autofocus === !0 && Si(() => {
|
|
889
889
|
o.focus();
|
|
890
890
|
}), ht(() => {
|
|
891
891
|
l !== null && clearTimeout(l);
|
|
892
|
-
}), Object.assign(o, { focus: q, blur:
|
|
892
|
+
}), Object.assign(o, { focus: q, blur: F }), function() {
|
|
893
893
|
const K = i.getControl === void 0 && n.control === void 0 ? {
|
|
894
894
|
...i.splitAttrs.attributes.value,
|
|
895
895
|
"data-autofocus": e.autofocus === !0 || void 0,
|
|
@@ -916,8 +916,8 @@ function dc(i) {
|
|
|
916
916
|
class: y.value,
|
|
917
917
|
tabindex: -1,
|
|
918
918
|
...i.controlEvents
|
|
919
|
-
},
|
|
920
|
-
m.value === !0 ?
|
|
919
|
+
}, D()),
|
|
920
|
+
m.value === !0 ? A() : null
|
|
921
921
|
]),
|
|
922
922
|
n.after !== void 0 ? O("div", {
|
|
923
923
|
class: "q-field__after q-field__marginal row no-wrap items-center",
|
|
@@ -976,9 +976,9 @@ function By(i, e, t, n) {
|
|
|
976
976
|
tokenMap: kh,
|
|
977
977
|
tokenRegexMask: Py
|
|
978
978
|
};
|
|
979
|
-
const { tokenMap:
|
|
979
|
+
const { tokenMap: B } = Om(i.maskTokens), P = {
|
|
980
980
|
...kh,
|
|
981
|
-
...
|
|
981
|
+
...B
|
|
982
982
|
};
|
|
983
983
|
return {
|
|
984
984
|
tokenMap: P,
|
|
@@ -988,11 +988,11 @@ function By(i, e, t, n) {
|
|
|
988
988
|
function d() {
|
|
989
989
|
return i.autogrow === !0 || ["textarea", "text", "search", "url", "tel", "password"].includes(i.type);
|
|
990
990
|
}
|
|
991
|
-
ye(() => i.type + i.autogrow, g), ye(() => i.mask, (
|
|
992
|
-
if (
|
|
991
|
+
ye(() => i.type + i.autogrow, g), ye(() => i.mask, (B) => {
|
|
992
|
+
if (B !== void 0)
|
|
993
993
|
y(f.value, !0);
|
|
994
994
|
else {
|
|
995
|
-
const P =
|
|
995
|
+
const P = F(f.value);
|
|
996
996
|
g(), i.modelValue !== P && e("update:modelValue", P);
|
|
997
997
|
}
|
|
998
998
|
}), ye(() => i.fillMask + i.reverseFillMask, () => {
|
|
@@ -1002,20 +1002,20 @@ function By(i, e, t, n) {
|
|
|
1002
1002
|
});
|
|
1003
1003
|
function m() {
|
|
1004
1004
|
if (g(), h.value === !0) {
|
|
1005
|
-
const
|
|
1006
|
-
return i.fillMask !== !1 ?
|
|
1005
|
+
const B = E(F(i.modelValue));
|
|
1006
|
+
return i.fillMask !== !1 ? V(B) : B;
|
|
1007
1007
|
}
|
|
1008
1008
|
return i.modelValue;
|
|
1009
1009
|
}
|
|
1010
|
-
function p(
|
|
1011
|
-
if (
|
|
1012
|
-
return r.slice(-
|
|
1010
|
+
function p(B) {
|
|
1011
|
+
if (B < r.length)
|
|
1012
|
+
return r.slice(-B);
|
|
1013
1013
|
let P = "", R = r;
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
for (let
|
|
1014
|
+
const D = R.indexOf(yt);
|
|
1015
|
+
if (D !== -1) {
|
|
1016
|
+
for (let w = B - R.length; w > 0; w--)
|
|
1017
1017
|
P += yt;
|
|
1018
|
-
R = R.slice(0,
|
|
1018
|
+
R = R.slice(0, D) + P + R.slice(D);
|
|
1019
1019
|
}
|
|
1020
1020
|
return R;
|
|
1021
1021
|
}
|
|
@@ -1024,189 +1024,189 @@ function By(i, e, t, n) {
|
|
|
1024
1024
|
l = void 0, r = "", o = "";
|
|
1025
1025
|
return;
|
|
1026
1026
|
}
|
|
1027
|
-
const
|
|
1028
|
-
let H = i.reverseFillMask === !0,
|
|
1029
|
-
|
|
1027
|
+
const B = xh[i.mask] === void 0 ? i.mask : xh[i.mask], P = typeof i.fillMask == "string" && i.fillMask.length !== 0 ? i.fillMask.slice(0, 1) : "_", R = P.replace(wh, "\\$&"), D = [], w = [], A = [];
|
|
1028
|
+
let H = i.reverseFillMask === !0, I = "", N = "";
|
|
1029
|
+
B.replace(c.value.tokenRegexMask, (T, z, J, oe, ce) => {
|
|
1030
1030
|
if (oe !== void 0) {
|
|
1031
1031
|
const se = c.value.tokenMap[oe];
|
|
1032
|
-
|
|
1032
|
+
A.push(se), N = se.negate, H === !0 && (w.push("(?:" + N + "+)?(" + se.pattern + "+)?(?:" + N + "+)?(" + se.pattern + "+)?"), H = !1), w.push("(?:" + N + "+)?(" + se.pattern + ")?");
|
|
1033
1033
|
} else if (J !== void 0)
|
|
1034
|
-
|
|
1034
|
+
I = "\\" + (J === "\\" ? "" : J), A.push(J), D.push("([^" + I + "]+)?" + I + "?");
|
|
1035
1035
|
else {
|
|
1036
|
-
const se =
|
|
1037
|
-
|
|
1036
|
+
const se = z !== void 0 ? z : ce;
|
|
1037
|
+
I = se === "\\" ? "\\\\\\\\" : se.replace(wh, "\\\\$&"), A.push(se), D.push("([^" + I + "]+)?" + I + "?");
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
const K = new RegExp(
|
|
1041
|
-
"^" +
|
|
1042
|
-
), Y =
|
|
1041
|
+
"^" + D.join("") + "(" + (I === "" ? "." : "[^" + I + "]") + "+)?" + (I === "" ? "" : "[" + I + "]*") + "$"
|
|
1042
|
+
), Y = w.length - 1, M = w.map((T, z) => z === 0 && i.reverseFillMask === !0 ? new RegExp("^" + R + "*" + T) : z === Y ? new RegExp(
|
|
1043
1043
|
"^" + T + "(" + (N === "" ? "." : N) + "+)?" + (i.reverseFillMask === !0 ? "$" : R + "*")
|
|
1044
1044
|
) : new RegExp("^" + T));
|
|
1045
|
-
s =
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
const J = [], oe =
|
|
1045
|
+
s = A, l = (T) => {
|
|
1046
|
+
const z = K.exec(i.reverseFillMask === !0 ? T : T.slice(0, A.length + 1));
|
|
1047
|
+
z !== null && (T = z.slice(1).join(""));
|
|
1048
|
+
const J = [], oe = M.length;
|
|
1049
1049
|
for (let ce = 0, se = T; ce < oe; ce++) {
|
|
1050
|
-
const Be =
|
|
1050
|
+
const Be = M[ce].exec(se);
|
|
1051
1051
|
if (Be === null)
|
|
1052
1052
|
break;
|
|
1053
1053
|
se = se.slice(Be.shift().length), J.push(...Be);
|
|
1054
1054
|
}
|
|
1055
1055
|
return J.length !== 0 ? J.join("") : T;
|
|
1056
|
-
}, r =
|
|
1056
|
+
}, r = A.map((T) => typeof T == "string" ? T : yt).join(""), o = r.split(yt).join(P);
|
|
1057
1057
|
}
|
|
1058
|
-
function y(
|
|
1059
|
-
const
|
|
1058
|
+
function y(B, P, R) {
|
|
1059
|
+
const D = n.value, w = D.selectionEnd, A = D.value.length - w, H = F(B);
|
|
1060
1060
|
P === !0 && g();
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1061
|
+
const I = E(H, P), N = i.fillMask !== !1 ? V(I) : I, K = f.value !== N;
|
|
1062
|
+
D.value !== N && (D.value = N), K === !0 && (f.value = N), document.activeElement === D && rt(() => {
|
|
1063
1063
|
if (N === o) {
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1064
|
+
const M = i.reverseFillMask === !0 ? o.length : 0;
|
|
1065
|
+
D.setSelectionRange(M, M, "forward");
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
1068
|
if (R === "insertFromPaste" && i.reverseFillMask !== !0) {
|
|
1069
|
-
const
|
|
1070
|
-
let T =
|
|
1071
|
-
for (let
|
|
1072
|
-
r[
|
|
1073
|
-
v.right(
|
|
1069
|
+
const M = D.selectionEnd;
|
|
1070
|
+
let T = w - 1;
|
|
1071
|
+
for (let z = a; z <= T && z < M; z++)
|
|
1072
|
+
r[z] !== yt && T++;
|
|
1073
|
+
v.right(D, T);
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
1076
|
if (["deleteContentBackward", "deleteContentForward"].indexOf(R) !== -1) {
|
|
1077
|
-
const
|
|
1078
|
-
|
|
1077
|
+
const M = i.reverseFillMask === !0 ? w === 0 ? N.length > I.length ? 1 : 0 : Math.max(0, N.length - (N === o ? 0 : Math.min(I.length, A) + 1)) + 1 : w;
|
|
1078
|
+
D.setSelectionRange(M, M, "forward");
|
|
1079
1079
|
return;
|
|
1080
1080
|
}
|
|
1081
1081
|
if (i.reverseFillMask === !0)
|
|
1082
1082
|
if (K === !0) {
|
|
1083
|
-
const
|
|
1084
|
-
|
|
1083
|
+
const M = Math.max(0, N.length - (N === o ? 0 : Math.min(I.length, A + 1)));
|
|
1084
|
+
M === 1 && w === 1 ? D.setSelectionRange(M, M, "forward") : v.rightReverse(D, M);
|
|
1085
1085
|
} else {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1086
|
+
const M = N.length - A;
|
|
1087
|
+
D.setSelectionRange(M, M, "backward");
|
|
1088
1088
|
}
|
|
1089
1089
|
else if (K === !0) {
|
|
1090
|
-
const
|
|
1091
|
-
v.right(
|
|
1090
|
+
const M = Math.max(0, r.indexOf(yt), Math.min(I.length, w) - 1);
|
|
1091
|
+
v.right(D, M);
|
|
1092
1092
|
} else {
|
|
1093
|
-
const
|
|
1094
|
-
v.right(
|
|
1093
|
+
const M = w - 1;
|
|
1094
|
+
v.right(D, M);
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
|
-
const Y = i.unmaskedValue === !0 ?
|
|
1097
|
+
const Y = i.unmaskedValue === !0 ? F(N) : N;
|
|
1098
1098
|
String(i.modelValue) !== Y && (i.modelValue !== null || Y !== "") && t(Y, !0);
|
|
1099
1099
|
}
|
|
1100
|
-
function k(
|
|
1101
|
-
const
|
|
1102
|
-
P = Math.max(0, r.indexOf(yt), Math.min(
|
|
1100
|
+
function k(B, P, R) {
|
|
1101
|
+
const D = E(F(B.value));
|
|
1102
|
+
P = Math.max(0, r.indexOf(yt), Math.min(D.length, P)), a = P, B.setSelectionRange(P, R, "forward");
|
|
1103
1103
|
}
|
|
1104
1104
|
const v = {
|
|
1105
|
-
left(
|
|
1105
|
+
left(B, P) {
|
|
1106
1106
|
const R = r.slice(P - 1).indexOf(yt) === -1;
|
|
1107
|
-
let
|
|
1108
|
-
for (;
|
|
1109
|
-
if (r[
|
|
1110
|
-
P =
|
|
1107
|
+
let D = Math.max(0, P - 1);
|
|
1108
|
+
for (; D >= 0; D--)
|
|
1109
|
+
if (r[D] === yt) {
|
|
1110
|
+
P = D, R === !0 && P++;
|
|
1111
1111
|
break;
|
|
1112
1112
|
}
|
|
1113
|
-
if (
|
|
1114
|
-
return v.right(
|
|
1115
|
-
P >= 0 &&
|
|
1113
|
+
if (D < 0 && r[P] !== void 0 && r[P] !== yt)
|
|
1114
|
+
return v.right(B, 0);
|
|
1115
|
+
P >= 0 && B.setSelectionRange(P, P, "backward");
|
|
1116
1116
|
},
|
|
1117
|
-
right(
|
|
1118
|
-
const R =
|
|
1119
|
-
let
|
|
1120
|
-
for (;
|
|
1121
|
-
if (r[
|
|
1122
|
-
P =
|
|
1117
|
+
right(B, P) {
|
|
1118
|
+
const R = B.value.length;
|
|
1119
|
+
let D = Math.min(R, P + 1);
|
|
1120
|
+
for (; D <= R; D++)
|
|
1121
|
+
if (r[D] === yt) {
|
|
1122
|
+
P = D;
|
|
1123
1123
|
break;
|
|
1124
|
-
} else r[
|
|
1125
|
-
if (
|
|
1126
|
-
return v.left(
|
|
1127
|
-
|
|
1124
|
+
} else r[D - 1] === yt && (P = D);
|
|
1125
|
+
if (D > R && r[P - 1] !== void 0 && r[P - 1] !== yt)
|
|
1126
|
+
return v.left(B, R);
|
|
1127
|
+
B.setSelectionRange(P, P, "forward");
|
|
1128
1128
|
},
|
|
1129
|
-
leftReverse(
|
|
1130
|
-
const R = p(
|
|
1131
|
-
let
|
|
1132
|
-
for (;
|
|
1133
|
-
if (R[
|
|
1134
|
-
P =
|
|
1129
|
+
leftReverse(B, P) {
|
|
1130
|
+
const R = p(B.value.length);
|
|
1131
|
+
let D = Math.max(0, P - 1);
|
|
1132
|
+
for (; D >= 0; D--)
|
|
1133
|
+
if (R[D - 1] === yt) {
|
|
1134
|
+
P = D;
|
|
1135
1135
|
break;
|
|
1136
|
-
} else if (R[
|
|
1136
|
+
} else if (R[D] === yt && (P = D, D === 0))
|
|
1137
1137
|
break;
|
|
1138
|
-
if (
|
|
1139
|
-
return v.rightReverse(
|
|
1140
|
-
P >= 0 &&
|
|
1138
|
+
if (D < 0 && R[P] !== void 0 && R[P] !== yt)
|
|
1139
|
+
return v.rightReverse(B, 0);
|
|
1140
|
+
P >= 0 && B.setSelectionRange(P, P, "backward");
|
|
1141
1141
|
},
|
|
1142
|
-
rightReverse(
|
|
1143
|
-
const R =
|
|
1144
|
-
let
|
|
1145
|
-
for (;
|
|
1146
|
-
if (
|
|
1147
|
-
P =
|
|
1142
|
+
rightReverse(B, P) {
|
|
1143
|
+
const R = B.value.length, D = p(R), w = D.slice(0, P + 1).indexOf(yt) === -1;
|
|
1144
|
+
let A = Math.min(R, P + 1);
|
|
1145
|
+
for (; A <= R; A++)
|
|
1146
|
+
if (D[A - 1] === yt) {
|
|
1147
|
+
P = A, P > 0 && w === !0 && P--;
|
|
1148
1148
|
break;
|
|
1149
1149
|
}
|
|
1150
|
-
if (
|
|
1151
|
-
return v.leftReverse(
|
|
1152
|
-
|
|
1150
|
+
if (A > R && D[P - 1] !== void 0 && D[P - 1] !== yt)
|
|
1151
|
+
return v.leftReverse(B, R);
|
|
1152
|
+
B.setSelectionRange(P, P, "forward");
|
|
1153
1153
|
}
|
|
1154
1154
|
};
|
|
1155
|
-
function x(
|
|
1156
|
-
e("click",
|
|
1157
|
-
}
|
|
1158
|
-
function C(
|
|
1159
|
-
if (e("keydown",
|
|
1160
|
-
const P = n.value, R = P.selectionStart,
|
|
1161
|
-
if (
|
|
1162
|
-
|
|
1163
|
-
const
|
|
1164
|
-
if (
|
|
1165
|
-
const
|
|
1166
|
-
P.setSelectionRange(Math.min(u,
|
|
1167
|
-
}
|
|
1168
|
-
} else
|
|
1169
|
-
}
|
|
1170
|
-
function B
|
|
1171
|
-
if (
|
|
1155
|
+
function x(B) {
|
|
1156
|
+
e("click", B), u = void 0;
|
|
1157
|
+
}
|
|
1158
|
+
function C(B) {
|
|
1159
|
+
if (e("keydown", B), Fl(B) === !0 || B.altKey === !0) return;
|
|
1160
|
+
const P = n.value, R = P.selectionStart, D = P.selectionEnd;
|
|
1161
|
+
if (B.shiftKey || (u = void 0), B.keyCode === 37 || B.keyCode === 39) {
|
|
1162
|
+
B.shiftKey && u === void 0 && (u = P.selectionDirection === "forward" ? R : D);
|
|
1163
|
+
const w = v[(B.keyCode === 39 ? "right" : "left") + (i.reverseFillMask === !0 ? "Reverse" : "")];
|
|
1164
|
+
if (B.preventDefault(), w(P, u === R ? D : R), B.shiftKey) {
|
|
1165
|
+
const A = P.selectionStart;
|
|
1166
|
+
P.setSelectionRange(Math.min(u, A), Math.max(u, A), "forward");
|
|
1167
|
+
}
|
|
1168
|
+
} else B.keyCode === 8 && i.reverseFillMask !== !0 && R === D ? (v.left(P, R), P.setSelectionRange(P.selectionStart, D, "backward")) : B.keyCode === 46 && i.reverseFillMask === !0 && R === D && (v.rightReverse(P, D), P.setSelectionRange(R, P.selectionEnd, "forward"));
|
|
1169
|
+
}
|
|
1170
|
+
function E(B, P) {
|
|
1171
|
+
if (B == null || B === "")
|
|
1172
1172
|
return "";
|
|
1173
1173
|
if (i.reverseFillMask === !0)
|
|
1174
|
-
return q(
|
|
1174
|
+
return q(B, P);
|
|
1175
1175
|
const R = s;
|
|
1176
|
-
let
|
|
1177
|
-
for (let
|
|
1178
|
-
const H =
|
|
1179
|
-
if (typeof
|
|
1180
|
-
|
|
1181
|
-
else if (H !== void 0 &&
|
|
1182
|
-
|
|
1176
|
+
let D = 0, w = "";
|
|
1177
|
+
for (let A = 0; A < R.length; A++) {
|
|
1178
|
+
const H = B[D], I = R[A];
|
|
1179
|
+
if (typeof I == "string")
|
|
1180
|
+
w += I, P === !0 && H === I && D++;
|
|
1181
|
+
else if (H !== void 0 && I.regex.test(H))
|
|
1182
|
+
w += I.transform !== void 0 ? I.transform(H) : H, D++;
|
|
1183
1183
|
else
|
|
1184
|
-
return
|
|
1185
|
-
}
|
|
1186
|
-
return
|
|
1187
|
-
}
|
|
1188
|
-
function q(
|
|
1189
|
-
const R = s,
|
|
1190
|
-
let
|
|
1191
|
-
for (let H = R.length - 1; H >= 0 &&
|
|
1192
|
-
const
|
|
1193
|
-
let N =
|
|
1194
|
-
if (typeof
|
|
1195
|
-
|
|
1196
|
-
else if (N !== void 0 &&
|
|
1184
|
+
return w;
|
|
1185
|
+
}
|
|
1186
|
+
return w;
|
|
1187
|
+
}
|
|
1188
|
+
function q(B, P) {
|
|
1189
|
+
const R = s, D = r.indexOf(yt);
|
|
1190
|
+
let w = B.length - 1, A = "";
|
|
1191
|
+
for (let H = R.length - 1; H >= 0 && w !== -1; H--) {
|
|
1192
|
+
const I = R[H];
|
|
1193
|
+
let N = B[w];
|
|
1194
|
+
if (typeof I == "string")
|
|
1195
|
+
A = I + A, P === !0 && N === I && w--;
|
|
1196
|
+
else if (N !== void 0 && I.regex.test(N))
|
|
1197
1197
|
do
|
|
1198
|
-
|
|
1199
|
-
while (
|
|
1198
|
+
A = (I.transform !== void 0 ? I.transform(N) : N) + A, w--, N = B[w];
|
|
1199
|
+
while (D === H && N !== void 0 && I.regex.test(N));
|
|
1200
1200
|
else
|
|
1201
|
-
return
|
|
1201
|
+
return A;
|
|
1202
1202
|
}
|
|
1203
|
-
return
|
|
1203
|
+
return A;
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return typeof
|
|
1205
|
+
function F(B) {
|
|
1206
|
+
return typeof B != "string" || l === void 0 ? typeof B == "number" ? l("" + B) : B : l(B);
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return o.length -
|
|
1208
|
+
function V(B) {
|
|
1209
|
+
return o.length - B.length <= 0 ? B : i.reverseFillMask === !0 && B.length !== 0 ? o.slice(0, -B.length) + B : B + o.slice(B.length);
|
|
1210
1210
|
}
|
|
1211
1211
|
return {
|
|
1212
1212
|
innerValue: f,
|
|
@@ -1310,15 +1310,15 @@ const ar = Je({
|
|
|
1310
1310
|
onMaskedClick: k
|
|
1311
1311
|
} = By(i, e, H, h), v = Ry(
|
|
1312
1312
|
i
|
|
1313
|
-
), x = b(() => xo(d.value)), C = Pm(
|
|
1313
|
+
), x = b(() => xo(d.value)), C = Pm(w), E = fc({ changeEvent: !0 }), q = b(
|
|
1314
1314
|
() => i.type === "textarea" || i.autogrow === !0
|
|
1315
|
-
),
|
|
1315
|
+
), F = b(
|
|
1316
1316
|
() => q.value === !0 || ["text", "search", "url", "tel", "password"].includes(i.type)
|
|
1317
|
-
),
|
|
1317
|
+
), V = b(() => {
|
|
1318
1318
|
const T = {
|
|
1319
|
-
...
|
|
1320
|
-
onInput:
|
|
1321
|
-
onPaste:
|
|
1319
|
+
...E.splitAttrs.listeners.value,
|
|
1320
|
+
onInput: w,
|
|
1321
|
+
onPaste: D,
|
|
1322
1322
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
1323
1323
|
// switching focus before confirming composition choice
|
|
1324
1324
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
|
@@ -1327,16 +1327,16 @@ const ar = Je({
|
|
|
1327
1327
|
onBlur: K,
|
|
1328
1328
|
onFocus: hi
|
|
1329
1329
|
};
|
|
1330
|
-
return T.onCompositionstart = T.onCompositionupdate = T.onCompositionend = C, m.value === !0 && (T.onKeydown = y, T.onClick = k), i.autogrow === !0 && (T.onAnimationend =
|
|
1331
|
-
}),
|
|
1330
|
+
return T.onCompositionstart = T.onCompositionupdate = T.onCompositionend = C, m.value === !0 && (T.onKeydown = y, T.onClick = k), i.autogrow === !0 && (T.onAnimationend = A), T;
|
|
1331
|
+
}), B = b(() => {
|
|
1332
1332
|
const T = {
|
|
1333
1333
|
tabindex: 0,
|
|
1334
1334
|
"data-autofocus": i.autofocus === !0 || void 0,
|
|
1335
1335
|
rows: i.type === "textarea" ? 6 : void 0,
|
|
1336
1336
|
"aria-label": i.label,
|
|
1337
1337
|
name: f.value,
|
|
1338
|
-
...
|
|
1339
|
-
id:
|
|
1338
|
+
...E.splitAttrs.attributes.value,
|
|
1339
|
+
id: E.targetUid.value,
|
|
1340
1340
|
maxlength: i.maxlength,
|
|
1341
1341
|
disabled: i.disable === !0,
|
|
1342
1342
|
readonly: i.readonly === !0
|
|
@@ -1351,66 +1351,66 @@ const ar = Je({
|
|
|
1351
1351
|
return;
|
|
1352
1352
|
g(T);
|
|
1353
1353
|
} else d.value !== T && (d.value = T, i.type === "number" && o.hasOwnProperty("value") === !0 && (l === !0 ? l = !1 : delete o.value));
|
|
1354
|
-
i.autogrow === !0 && rt(
|
|
1354
|
+
i.autogrow === !0 && rt(I);
|
|
1355
1355
|
}), ye(() => i.autogrow, (T) => {
|
|
1356
|
-
T === !0 ? rt(
|
|
1356
|
+
T === !0 ? rt(I) : h.value !== null && t.rows > 0 && (h.value.style.height = "auto");
|
|
1357
1357
|
}), ye(() => i.dense, () => {
|
|
1358
|
-
i.autogrow === !0 && rt(
|
|
1358
|
+
i.autogrow === !0 && rt(I);
|
|
1359
1359
|
});
|
|
1360
1360
|
function P() {
|
|
1361
1361
|
Il(() => {
|
|
1362
1362
|
const T = document.activeElement;
|
|
1363
|
-
h.value !== null && h.value !== T && (T === null || T.id !==
|
|
1363
|
+
h.value !== null && h.value !== T && (T === null || T.id !== E.targetUid.value) && h.value.focus({ preventScroll: !0 });
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
1366
|
function R() {
|
|
1367
1367
|
var T;
|
|
1368
1368
|
(T = h.value) == null || T.select();
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function D(T) {
|
|
1371
1371
|
if (m.value === !0 && i.reverseFillMask !== !0) {
|
|
1372
|
-
const
|
|
1373
|
-
p(
|
|
1372
|
+
const z = T.target;
|
|
1373
|
+
p(z, z.selectionStart, z.selectionEnd);
|
|
1374
1374
|
}
|
|
1375
1375
|
e("paste", T);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function w(T) {
|
|
1378
1378
|
if (!T || !T.target) return;
|
|
1379
1379
|
if (i.type === "file") {
|
|
1380
1380
|
e("update:modelValue", T.target.files);
|
|
1381
1381
|
return;
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const z = T.target.value;
|
|
1384
1384
|
if (T.target.qComposing === !0) {
|
|
1385
|
-
o.value =
|
|
1385
|
+
o.value = z;
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
1388
|
if (m.value === !0)
|
|
1389
|
-
g(
|
|
1390
|
-
else if (H(
|
|
1389
|
+
g(z, !1, T.inputType);
|
|
1390
|
+
else if (H(z), F.value === !0 && T.target === document.activeElement) {
|
|
1391
1391
|
const { selectionStart: J, selectionEnd: oe } = T.target;
|
|
1392
1392
|
J !== void 0 && oe !== void 0 && rt(() => {
|
|
1393
|
-
T.target === document.activeElement &&
|
|
1393
|
+
T.target === document.activeElement && z.indexOf(T.target.value) === 0 && T.target.setSelectionRange(J, oe);
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
|
-
i.autogrow === !0 &&
|
|
1396
|
+
i.autogrow === !0 && I();
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
e("animationend", T),
|
|
1398
|
+
function A(T) {
|
|
1399
|
+
e("animationend", T), I();
|
|
1400
1400
|
}
|
|
1401
|
-
function H(T,
|
|
1401
|
+
function H(T, z) {
|
|
1402
1402
|
c = () => {
|
|
1403
|
-
u = null, i.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, i.modelValue !== T && s !== T && (s = T,
|
|
1403
|
+
u = null, i.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, i.modelValue !== T && s !== T && (s = T, z === !0 && (a = !0), e("update:modelValue", T), rt(() => {
|
|
1404
1404
|
s === T && (s = NaN);
|
|
1405
1405
|
})), c = void 0;
|
|
1406
1406
|
}, i.type === "number" && (l = !0, o.value = T), i.debounce !== void 0 ? (u !== null && clearTimeout(u), o.value = T, u = setTimeout(c, i.debounce)) : c();
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function I() {
|
|
1409
1409
|
requestAnimationFrame(() => {
|
|
1410
1410
|
const T = h.value;
|
|
1411
1411
|
if (T !== null) {
|
|
1412
|
-
const
|
|
1413
|
-
se === !0 && (T.style.overflowY = "hidden"),
|
|
1412
|
+
const z = T.parentNode.style, { scrollTop: J } = T, { overflowY: oe, maxHeight: ce } = r.platform.is.firefox === !0 ? {} : window.getComputedStyle(T), se = oe !== void 0 && oe !== "scroll";
|
|
1413
|
+
se === !0 && (T.style.overflowY = "hidden"), z.marginBottom = T.scrollHeight - 1 + "px", T.style.height = "1px", T.style.height = T.scrollHeight + "px", se === !0 && (T.style.overflowY = parseInt(ce, 10) < T.scrollHeight ? "auto" : "hidden"), z.marginBottom = "", T.scrollTop = J;
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
@@ -1428,8 +1428,8 @@ const ar = Je({
|
|
|
1428
1428
|
ht(() => {
|
|
1429
1429
|
K();
|
|
1430
1430
|
}), Si(() => {
|
|
1431
|
-
i.autogrow === !0 &&
|
|
1432
|
-
}), Object.assign(
|
|
1431
|
+
i.autogrow === !0 && I();
|
|
1432
|
+
}), Object.assign(E, {
|
|
1433
1433
|
innerValue: d,
|
|
1434
1434
|
fieldClass: b(
|
|
1435
1435
|
() => `q-${q.value === !0 ? "textarea" : "input"}` + (i.autogrow === !0 ? " q-textarea--autogrow" : "")
|
|
@@ -1450,8 +1450,8 @@ const ar = Je({
|
|
|
1450
1450
|
i.inputClass
|
|
1451
1451
|
],
|
|
1452
1452
|
style: i.inputStyle,
|
|
1453
|
-
...
|
|
1454
|
-
...
|
|
1453
|
+
...B.value,
|
|
1454
|
+
...V.value,
|
|
1455
1455
|
...i.type !== "file" ? { value: Y() } : v.value
|
|
1456
1456
|
}),
|
|
1457
1457
|
getShadowControl: () => O("div", {
|
|
@@ -1461,13 +1461,13 @@ const ar = Je({
|
|
|
1461
1461
|
O("span", i.shadowText)
|
|
1462
1462
|
])
|
|
1463
1463
|
});
|
|
1464
|
-
const
|
|
1464
|
+
const M = dc(E);
|
|
1465
1465
|
return Object.assign(n, {
|
|
1466
1466
|
focus: P,
|
|
1467
1467
|
select: R,
|
|
1468
1468
|
getNativeElement: () => h.value
|
|
1469
1469
|
// deprecated
|
|
1470
|
-
}), Wr(n, "nativeEl", () => h.value),
|
|
1470
|
+
}), Wr(n, "nativeEl", () => h.value), M;
|
|
1471
1471
|
}
|
|
1472
1472
|
}), _m = Symbol("quickforms-quasar-context");
|
|
1473
1473
|
function v2(i) {
|
|
@@ -1793,14 +1793,14 @@ function Jy(i, e) {
|
|
|
1793
1793
|
() => t.val !== void 0 && Array.isArray(t.modelValue)
|
|
1794
1794
|
), d = b(() => {
|
|
1795
1795
|
const R = zn(t.val);
|
|
1796
|
-
return f.value === !0 ? t.modelValue.findIndex((
|
|
1796
|
+
return f.value === !0 ? t.modelValue.findIndex((D) => zn(D) === R) : -1;
|
|
1797
1797
|
}), m = b(() => f.value === !0 ? d.value !== -1 : zn(t.modelValue) === zn(t.trueValue)), p = b(() => f.value === !0 ? d.value === -1 : zn(t.modelValue) === zn(t.falseValue)), g = b(
|
|
1798
1798
|
() => m.value === !1 && p.value === !1
|
|
1799
1799
|
), y = b(() => t.disable === !0 ? -1 : t.tabindex || 0), k = b(
|
|
1800
1800
|
() => `q-${i} cursor-pointer no-outline row inline no-wrap items-center` + (t.disable === !0 ? " disabled" : "") + (l.value === !0 ? ` q-${i}--dark` : "") + (t.dense === !0 ? ` q-${i}--dense` : "") + (t.leftLabel === !0 ? " reverse" : "")
|
|
1801
1801
|
), v = b(() => {
|
|
1802
|
-
const R = m.value === !0 ? "truthy" : p.value === !0 ? "falsy" : "indet",
|
|
1803
|
-
return `q-${i}__inner relative-position non-selectable q-${i}__inner--${R}${
|
|
1802
|
+
const R = m.value === !0 ? "truthy" : p.value === !0 ? "falsy" : "indet", D = t.color !== void 0 && (t.keepColor === !0 || p.value !== !0) ? ` text-${t.color}` : "";
|
|
1803
|
+
return `q-${i}__inner relative-position non-selectable q-${i}__inner--${R}${D}`;
|
|
1804
1804
|
}), x = b(() => {
|
|
1805
1805
|
const R = { type: "checkbox" };
|
|
1806
1806
|
return t.name !== void 0 && Object.assign(R, {
|
|
@@ -1810,7 +1810,7 @@ function Jy(i, e) {
|
|
|
1810
1810
|
name: t.name,
|
|
1811
1811
|
value: f.value === !0 ? t.val : t.trueValue
|
|
1812
1812
|
}), R;
|
|
1813
|
-
}), C = mc(x),
|
|
1813
|
+
}), C = mc(x), E = b(() => {
|
|
1814
1814
|
const R = {
|
|
1815
1815
|
tabindex: y.value,
|
|
1816
1816
|
role: "checkbox",
|
|
@@ -1820,9 +1820,9 @@ function Jy(i, e) {
|
|
|
1820
1820
|
return t.disable === !0 && (R["aria-disabled"] = "true"), R;
|
|
1821
1821
|
});
|
|
1822
1822
|
function q(R) {
|
|
1823
|
-
R !== void 0 && (ct(R), c(R)), t.disable !== !0 && r("update:modelValue",
|
|
1823
|
+
R !== void 0 && (ct(R), c(R)), t.disable !== !0 && r("update:modelValue", F(), R);
|
|
1824
1824
|
}
|
|
1825
|
-
function
|
|
1825
|
+
function F() {
|
|
1826
1826
|
if (f.value === !0) {
|
|
1827
1827
|
if (m.value === !0) {
|
|
1828
1828
|
const R = t.modelValue.slice();
|
|
@@ -1840,10 +1840,10 @@ function Jy(i, e) {
|
|
|
1840
1840
|
return t.toggleOrder !== "ft" ? t.trueValue : t.falseValue;
|
|
1841
1841
|
return t.indeterminateValue;
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function V(R) {
|
|
1844
1844
|
(R.keyCode === 13 || R.keyCode === 32) && ct(R);
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function B(R) {
|
|
1847
1847
|
(R.keyCode === 13 || R.keyCode === 32) && q(R);
|
|
1848
1848
|
}
|
|
1849
1849
|
const P = e(m, g);
|
|
@@ -1854,27 +1854,27 @@ function Jy(i, e) {
|
|
|
1854
1854
|
"unshift",
|
|
1855
1855
|
` q-${i}__native absolute q-ma-none q-pa-none`
|
|
1856
1856
|
);
|
|
1857
|
-
const
|
|
1857
|
+
const D = [
|
|
1858
1858
|
O("div", {
|
|
1859
1859
|
class: v.value,
|
|
1860
1860
|
style: h.value,
|
|
1861
1861
|
"aria-hidden": "true"
|
|
1862
1862
|
}, R)
|
|
1863
1863
|
];
|
|
1864
|
-
u.value !== null &&
|
|
1865
|
-
const
|
|
1866
|
-
return
|
|
1864
|
+
u.value !== null && D.push(u.value);
|
|
1865
|
+
const w = t.label !== void 0 ? xn(n.default, [t.label]) : qt(n.default);
|
|
1866
|
+
return w !== void 0 && D.push(
|
|
1867
1867
|
O("div", {
|
|
1868
1868
|
class: `q-${i}__label q-anchor--skip`
|
|
1869
|
-
},
|
|
1869
|
+
}, w)
|
|
1870
1870
|
), O("div", {
|
|
1871
1871
|
ref: a,
|
|
1872
1872
|
class: k.value,
|
|
1873
|
-
...
|
|
1873
|
+
...E.value,
|
|
1874
1874
|
onClick: q,
|
|
1875
|
-
onKeydown:
|
|
1876
|
-
onKeyup:
|
|
1877
|
-
},
|
|
1875
|
+
onKeydown: V,
|
|
1876
|
+
onKeyup: B
|
|
1877
|
+
}, D);
|
|
1878
1878
|
};
|
|
1879
1879
|
}
|
|
1880
1880
|
const Xy = () => O("div", {
|
|
@@ -2325,23 +2325,23 @@ function Vm({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
|
|
|
2325
2325
|
} : {}), m = b(() => {
|
|
2326
2326
|
if (c.value === !1)
|
|
2327
2327
|
return -1;
|
|
2328
|
-
const { matched: C } = u.value, { length:
|
|
2328
|
+
const { matched: C } = u.value, { length: E } = C, q = C[E - 1];
|
|
2329
2329
|
if (q === void 0)
|
|
2330
2330
|
return -1;
|
|
2331
|
-
const
|
|
2332
|
-
if (
|
|
2331
|
+
const F = r.$route.matched;
|
|
2332
|
+
if (F.length === 0)
|
|
2333
2333
|
return -1;
|
|
2334
|
-
const
|
|
2334
|
+
const V = F.findIndex(
|
|
2335
2335
|
Dh.bind(null, q)
|
|
2336
2336
|
);
|
|
2337
|
-
if (
|
|
2338
|
-
return
|
|
2339
|
-
const
|
|
2337
|
+
if (V !== -1)
|
|
2338
|
+
return V;
|
|
2339
|
+
const B = Th(C[E - 2]);
|
|
2340
2340
|
return (
|
|
2341
2341
|
// we are dealing with nested routes
|
|
2342
|
-
|
|
2343
|
-
Dh.bind(null, C[
|
|
2344
|
-
) :
|
|
2342
|
+
E > 1 && Th(q) === B && F[F.length - 1].path !== B ? F.findIndex(
|
|
2343
|
+
Dh.bind(null, C[E - 2])
|
|
2344
|
+
) : V
|
|
2345
2345
|
);
|
|
2346
2346
|
}), p = b(
|
|
2347
2347
|
() => c.value === !0 && m.value !== -1 && ab(r.$route.params, u.value.params)
|
|
@@ -2355,7 +2355,7 @@ function Vm({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
|
|
|
2355
2355
|
}
|
|
2356
2356
|
return null;
|
|
2357
2357
|
}
|
|
2358
|
-
function v(C, { returnRouterError:
|
|
2358
|
+
function v(C, { returnRouterError: E, to: q = n.to, replace: F = n.replace } = {}) {
|
|
2359
2359
|
if (n.disable === !0)
|
|
2360
2360
|
return C.preventDefault(), Promise.resolve(!1);
|
|
2361
2361
|
if (
|
|
@@ -2365,15 +2365,15 @@ function Vm({ fallbackTag: i, useDisableForRouterLinkProps: e = !0 } = {}) {
|
|
|
2365
2365
|
)
|
|
2366
2366
|
return Promise.resolve(!1);
|
|
2367
2367
|
C.preventDefault();
|
|
2368
|
-
const
|
|
2369
|
-
return
|
|
2368
|
+
const V = r.$router[F === !0 ? "replace" : "push"](q);
|
|
2369
|
+
return E === !0 ? V : V.then(() => {
|
|
2370
2370
|
}).catch(() => {
|
|
2371
2371
|
});
|
|
2372
2372
|
}
|
|
2373
2373
|
function x(C) {
|
|
2374
2374
|
if (c.value === !0) {
|
|
2375
|
-
const
|
|
2376
|
-
o("click", C,
|
|
2375
|
+
const E = (q) => v(C, q);
|
|
2376
|
+
o("click", C, E), C.defaultPrevented !== !0 && E();
|
|
2377
2377
|
} else
|
|
2378
2378
|
o("click", C);
|
|
2379
2379
|
}
|
|
@@ -3029,8 +3029,8 @@ function kc(i, e = 0) {
|
|
|
3029
3029
|
maxWidth: h
|
|
3030
3030
|
} = i;
|
|
3031
3031
|
if (Tt.is.ios === !0 && window.visualViewport !== void 0) {
|
|
3032
|
-
const
|
|
3033
|
-
q !== _h && (
|
|
3032
|
+
const E = document.body.style, { offsetLeft: q, offsetTop: F } = window.visualViewport;
|
|
3033
|
+
q !== _h && (E.setProperty("--q-pe-left", q + "px"), _h = q), F !== Bh && (E.setProperty("--q-pe-top", F + "px"), Bh = F);
|
|
3034
3034
|
}
|
|
3035
3035
|
const { scrollLeft: f, scrollTop: d } = t, m = l === void 0 ? Ob(r, u === !0 ? [0, 0] : n) : Tb(r, l, n);
|
|
3036
3036
|
Object.assign(t.style, {
|
|
@@ -3050,20 +3050,20 @@ function kc(i, e = 0) {
|
|
|
3050
3050
|
if (l === void 0 || n === void 0)
|
|
3051
3051
|
ga(C, m, x, o, s);
|
|
3052
3052
|
else {
|
|
3053
|
-
const { top:
|
|
3053
|
+
const { top: E, left: q } = C;
|
|
3054
3054
|
ga(C, m, x, o, s);
|
|
3055
|
-
let
|
|
3056
|
-
if (C.top !==
|
|
3057
|
-
|
|
3058
|
-
const
|
|
3059
|
-
m.center = m.top -=
|
|
3055
|
+
let F = !1;
|
|
3056
|
+
if (C.top !== E) {
|
|
3057
|
+
F = !0;
|
|
3058
|
+
const V = 2 * n[1];
|
|
3059
|
+
m.center = m.top -= V, m.bottom -= V + 2;
|
|
3060
3060
|
}
|
|
3061
3061
|
if (C.left !== q) {
|
|
3062
|
-
|
|
3063
|
-
const
|
|
3064
|
-
m.middle = m.left -=
|
|
3062
|
+
F = !0;
|
|
3063
|
+
const V = 2 * n[0];
|
|
3064
|
+
m.middle = m.left -= V, m.right -= V + 2;
|
|
3065
3065
|
}
|
|
3066
|
-
|
|
3066
|
+
F === !0 && (C = Rh(m, x, o, s), ga(C, m, x, o, s));
|
|
3067
3067
|
}
|
|
3068
3068
|
v = {
|
|
3069
3069
|
top: C.top + "px",
|
|
@@ -3151,33 +3151,33 @@ const Xm = Je({
|
|
|
3151
3151
|
let r = null, o, s, l;
|
|
3152
3152
|
const a = je(), { proxy: u } = a, { $q: c } = u, h = G(null), f = G(!1), d = b(
|
|
3153
3153
|
() => i.persistent !== !0 && i.noRouteDismiss !== !0
|
|
3154
|
-
), m = Ji(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: y } = ko(), { transitionProps: k, transitionStyle: v } = xc(i), { localScrollTarget: x, changeScrollEvent: C, unconfigureScrollTarget:
|
|
3154
|
+
), m = Ji(i, c), { registerTick: p, removeTick: g } = Mr(), { registerTimeout: y } = ko(), { transitionProps: k, transitionStyle: v } = xc(i), { localScrollTarget: x, changeScrollEvent: C, unconfigureScrollTarget: E } = Hm(i, z), { anchorEl: q, canShow: F } = yc({ showing: f }), { hide: V } = jl({
|
|
3155
3155
|
showing: f,
|
|
3156
|
-
canShow:
|
|
3156
|
+
canShow: F,
|
|
3157
3157
|
handleShow: Y,
|
|
3158
|
-
handleHide:
|
|
3158
|
+
handleHide: M,
|
|
3159
3159
|
hideOnRouteChange: d,
|
|
3160
3160
|
processOnMount: !0
|
|
3161
|
-
}), { showPortal:
|
|
3161
|
+
}), { showPortal: B, hidePortal: P, renderPortal: R } = bc(a, h, Be, "menu"), D = {
|
|
3162
3162
|
anchorEl: q,
|
|
3163
3163
|
innerRef: h,
|
|
3164
3164
|
onClickOutside(ee) {
|
|
3165
3165
|
if (i.persistent !== !0 && f.value === !0)
|
|
3166
|
-
return
|
|
3166
|
+
return V(ee), // always prevent touch event
|
|
3167
3167
|
(ee.type === "touchstart" || ee.target.classList.contains("q-dialog__backdrop")) && ct(ee), !0;
|
|
3168
3168
|
}
|
|
3169
|
-
},
|
|
3169
|
+
}, w = b(
|
|
3170
3170
|
() => ol(
|
|
3171
3171
|
i.anchor || (i.cover === !0 ? "center middle" : "bottom start"),
|
|
3172
3172
|
c.lang.rtl
|
|
3173
3173
|
)
|
|
3174
|
-
),
|
|
3174
|
+
), A = b(() => i.cover === !0 ? w.value : ol(i.self || "top start", c.lang.rtl)), H = b(
|
|
3175
3175
|
() => (i.square === !0 ? " q-menu--square" : "") + (m.value === !0 ? " q-menu--dark q-dark" : "")
|
|
3176
|
-
),
|
|
3176
|
+
), I = b(() => i.autoClose === !0 ? { onClick: J } : {}), N = b(
|
|
3177
3177
|
() => f.value === !0 && i.persistent !== !0
|
|
3178
3178
|
);
|
|
3179
3179
|
ye(N, (ee) => {
|
|
3180
|
-
ee === !0 ? (Um(ce), Gm(
|
|
3180
|
+
ee === !0 ? (Um(ce), Gm(D)) : (el(ce), nl(D));
|
|
3181
3181
|
});
|
|
3182
3182
|
function K() {
|
|
3183
3183
|
Il(() => {
|
|
@@ -3186,7 +3186,7 @@ const Xm = Je({
|
|
|
3186
3186
|
});
|
|
3187
3187
|
}
|
|
3188
3188
|
function Y(ee) {
|
|
3189
|
-
if (r = i.noRefocus === !1 ? document.activeElement : null, Ym(oe),
|
|
3189
|
+
if (r = i.noRefocus === !1 ? document.activeElement : null, Ym(oe), B(), z(), o = void 0, ee !== void 0 && (i.touchPosition || i.contextMenu)) {
|
|
3190
3190
|
const et = Rr(ee);
|
|
3191
3191
|
if (et.left !== void 0) {
|
|
3192
3192
|
const { top: Ie, left: Qe } = q.value.getBoundingClientRect();
|
|
@@ -3199,19 +3199,19 @@ const Xm = Je({
|
|
|
3199
3199
|
)), i.noFocus !== !0 && document.activeElement.blur(), p(() => {
|
|
3200
3200
|
se(), i.noFocus !== !0 && K();
|
|
3201
3201
|
}), y(() => {
|
|
3202
|
-
c.platform.is.ios === !0 && (l = i.autoClose, h.value.click()), se(),
|
|
3202
|
+
c.platform.is.ios === !0 && (l = i.autoClose, h.value.click()), se(), B(!0), t("show", ee);
|
|
3203
3203
|
}, i.transitionDuration);
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3205
|
+
function M(ee) {
|
|
3206
3206
|
g(), P(), T(!0), r !== null && // menu was hidden from code or ESC plugin
|
|
3207
3207
|
(ee === void 0 || ee.qClickOutside !== !0) && ((((ee == null ? void 0 : ee.type.indexOf("key")) === 0 ? r.closest('[tabindex]:not([tabindex^="-"])') : void 0) || r).focus(), r = null), y(() => {
|
|
3208
3208
|
P(!0), t("hide", ee);
|
|
3209
3209
|
}, i.transitionDuration);
|
|
3210
3210
|
}
|
|
3211
3211
|
function T(ee) {
|
|
3212
|
-
o = void 0, s !== void 0 && (s(), s = void 0), (ee === !0 || f.value === !0) && (ou(oe),
|
|
3212
|
+
o = void 0, s !== void 0 && (s(), s = void 0), (ee === !0 || f.value === !0) && (ou(oe), E(), nl(D), el(ce)), ee !== !0 && (r = null);
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function z() {
|
|
3215
3215
|
(q.value !== null || i.scrollTarget !== void 0) && (x.value = Wm(q.value, i.scrollTarget), C(x.value, se));
|
|
3216
3216
|
}
|
|
3217
3217
|
function J(ee) {
|
|
@@ -3221,15 +3221,15 @@ const Xm = Je({
|
|
|
3221
3221
|
N.value === !0 && i.noFocus !== !0 && Rm(h.value, ee.target) !== !0 && K();
|
|
3222
3222
|
}
|
|
3223
3223
|
function ce(ee) {
|
|
3224
|
-
i.noEscDismiss !== !0 && (t("escapeKey"),
|
|
3224
|
+
i.noEscDismiss !== !0 && (t("escapeKey"), V(ee));
|
|
3225
3225
|
}
|
|
3226
3226
|
function se() {
|
|
3227
3227
|
kc({
|
|
3228
3228
|
targetEl: h.value,
|
|
3229
3229
|
offset: i.offset,
|
|
3230
3230
|
anchorEl: q.value,
|
|
3231
|
-
anchorOrigin:
|
|
3232
|
-
selfOrigin:
|
|
3231
|
+
anchorOrigin: w.value,
|
|
3232
|
+
selfOrigin: A.value,
|
|
3233
3233
|
absoluteOffset: o,
|
|
3234
3234
|
fit: i.fit,
|
|
3235
3235
|
cover: i.cover,
|
|
@@ -3254,7 +3254,7 @@ const Xm = Je({
|
|
|
3254
3254
|
n.style,
|
|
3255
3255
|
v.value
|
|
3256
3256
|
],
|
|
3257
|
-
...
|
|
3257
|
+
...I.value
|
|
3258
3258
|
}, qt(e.default)) : null
|
|
3259
3259
|
);
|
|
3260
3260
|
}
|
|
@@ -3391,33 +3391,33 @@ const Eb = {
|
|
|
3391
3391
|
i,
|
|
3392
3392
|
() => Nh[i.position][0],
|
|
3393
3393
|
() => Nh[i.position][1]
|
|
3394
|
-
), v = b(() => k.value + (i.backdropFilter !== void 0 ? `;backdrop-filter:${i.backdropFilter};-webkit-backdrop-filter:${i.backdropFilter}` : "")), { showPortal: x, hidePortal: C, portalIsAccessible:
|
|
3394
|
+
), v = b(() => k.value + (i.backdropFilter !== void 0 ? `;backdrop-filter:${i.backdropFilter};-webkit-backdrop-filter:${i.backdropFilter}` : "")), { showPortal: x, hidePortal: C, portalIsAccessible: E, renderPortal: q } = bc(
|
|
3395
3395
|
r,
|
|
3396
3396
|
o,
|
|
3397
|
-
|
|
3397
|
+
z,
|
|
3398
3398
|
"dialog"
|
|
3399
|
-
), { hide:
|
|
3399
|
+
), { hide: F } = jl({
|
|
3400
3400
|
showing: s,
|
|
3401
3401
|
hideOnRouteChange: f,
|
|
3402
|
-
handleShow:
|
|
3403
|
-
handleHide:
|
|
3402
|
+
handleShow: D,
|
|
3403
|
+
handleHide: w,
|
|
3404
3404
|
processOnMount: !0
|
|
3405
3405
|
});
|
|
3406
3406
|
qb(s);
|
|
3407
|
-
const
|
|
3407
|
+
const V = b(
|
|
3408
3408
|
() => `q-dialog__inner flex no-pointer-events q-dialog__inner--${i.maximized === !0 ? "maximized" : "minimized"} q-dialog__inner--${i.position} ${Eb[i.position]}` + (l.value === !0 ? " q-dialog__inner--animating" : "") + (i.fullWidth === !0 ? " q-dialog__inner--fullwidth" : "") + (i.fullHeight === !0 ? " q-dialog__inner--fullheight" : "") + (i.square === !0 ? " q-dialog__inner--square" : "")
|
|
3409
|
-
),
|
|
3410
|
-
`q-dialog fullscreen no-pointer-events q-dialog--${
|
|
3409
|
+
), B = b(() => s.value === !0 && i.seamless !== !0), P = b(() => i.autoClose === !0 ? { onClick: Y } : {}), R = b(() => [
|
|
3410
|
+
`q-dialog fullscreen no-pointer-events q-dialog--${B.value === !0 ? "modal" : "seamless"}`,
|
|
3411
3411
|
n.class
|
|
3412
3412
|
]);
|
|
3413
3413
|
ye(() => i.maximized, (J) => {
|
|
3414
3414
|
s.value === !0 && K(J);
|
|
3415
|
-
}), ye(
|
|
3416
|
-
d(J), J === !0 ? (Ym(T), Um(
|
|
3415
|
+
}), ye(B, (J) => {
|
|
3416
|
+
d(J), J === !0 ? (Ym(T), Um(I)) : (ou(T), el(I));
|
|
3417
3417
|
});
|
|
3418
|
-
function
|
|
3418
|
+
function D(J) {
|
|
3419
3419
|
var oe;
|
|
3420
|
-
u = i.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, K(i.maximized), x(), l.value = !0, i.noFocus !== !0 ? ((oe = document.activeElement) == null || oe.blur(), p(
|
|
3420
|
+
u = i.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, K(i.maximized), x(), l.value = !0, i.noFocus !== !0 ? ((oe = document.activeElement) == null || oe.blur(), p(A)) : g(), m(() => {
|
|
3421
3421
|
if (r.proxy.$q.platform.is.ios === !0) {
|
|
3422
3422
|
if (i.seamless !== !0 && document.activeElement) {
|
|
3423
3423
|
const { top: ce, bottom: se } = document.activeElement.getBoundingClientRect(), { innerHeight: Be } = window, ee = window.visualViewport !== void 0 ? window.visualViewport.height : Be;
|
|
@@ -3431,12 +3431,12 @@ const Eb = {
|
|
|
3431
3431
|
x(!0), l.value = !1, t("show", J);
|
|
3432
3432
|
}, i.transitionDuration);
|
|
3433
3433
|
}
|
|
3434
|
-
function
|
|
3434
|
+
function w(J) {
|
|
3435
3435
|
g(), N(!0), l.value = !0, C(), u !== null && ((((J == null ? void 0 : J.type.indexOf("key")) === 0 ? u.closest('[tabindex]:not([tabindex^="-"])') : void 0) || u).focus(), u = null), m(() => {
|
|
3436
3436
|
C(!0), l.value = !1, t("hide", J);
|
|
3437
3437
|
}, i.transitionDuration);
|
|
3438
3438
|
}
|
|
3439
|
-
function
|
|
3439
|
+
function A(J) {
|
|
3440
3440
|
Il(() => {
|
|
3441
3441
|
let oe = o.value;
|
|
3442
3442
|
if (oe !== null) {
|
|
@@ -3452,62 +3452,62 @@ const Eb = {
|
|
|
3452
3452
|
});
|
|
3453
3453
|
}
|
|
3454
3454
|
function H(J) {
|
|
3455
|
-
J && typeof J.focus == "function" ? J.focus({ preventScroll: !0 }) :
|
|
3455
|
+
J && typeof J.focus == "function" ? J.focus({ preventScroll: !0 }) : A(), t("shake");
|
|
3456
3456
|
const oe = o.value;
|
|
3457
3457
|
oe !== null && (oe.classList.remove("q-animate--scale"), oe.classList.add("q-animate--scale"), a !== null && clearTimeout(a), a = setTimeout(() => {
|
|
3458
|
-
a = null, o.value !== null && (oe.classList.remove("q-animate--scale"),
|
|
3458
|
+
a = null, o.value !== null && (oe.classList.remove("q-animate--scale"), A());
|
|
3459
3459
|
}, 170));
|
|
3460
3460
|
}
|
|
3461
|
-
function
|
|
3462
|
-
i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && H() : (t("escapeKey"),
|
|
3461
|
+
function I() {
|
|
3462
|
+
i.seamless !== !0 && (i.persistent === !0 || i.noEscDismiss === !0 ? i.maximized !== !0 && i.noShake !== !0 && H() : (t("escapeKey"), F()));
|
|
3463
3463
|
}
|
|
3464
3464
|
function N(J) {
|
|
3465
|
-
a !== null && (clearTimeout(a), a = null), (J === !0 || s.value === !0) && (K(!1), i.seamless !== !0 && (d(!1), ou(T), el(
|
|
3465
|
+
a !== null && (clearTimeout(a), a = null), (J === !0 || s.value === !0) && (K(!1), i.seamless !== !0 && (d(!1), ou(T), el(I))), J !== !0 && (u = null);
|
|
3466
3466
|
}
|
|
3467
3467
|
function K(J) {
|
|
3468
3468
|
J === !0 ? c !== !0 && (ls < 1 && document.body.classList.add("q-body--dialog"), ls++, c = !0) : c === !0 && (ls < 2 && document.body.classList.remove("q-body--dialog"), ls--, c = !1);
|
|
3469
3469
|
}
|
|
3470
3470
|
function Y(J) {
|
|
3471
|
-
h !== !0 && (
|
|
3471
|
+
h !== !0 && (F(J), t("click", J));
|
|
3472
3472
|
}
|
|
3473
|
-
function
|
|
3474
|
-
i.persistent !== !0 && i.noBackdropDismiss !== !0 ?
|
|
3473
|
+
function M(J) {
|
|
3474
|
+
i.persistent !== !0 && i.noBackdropDismiss !== !0 ? F(J) : i.noShake !== !0 && H();
|
|
3475
3475
|
}
|
|
3476
3476
|
function T(J) {
|
|
3477
|
-
i.allowFocusOutside !== !0 &&
|
|
3477
|
+
i.allowFocusOutside !== !0 && E.value === !0 && Rm(o.value, J.target) !== !0 && A('[tabindex]:not([tabindex="-1"])');
|
|
3478
3478
|
}
|
|
3479
3479
|
Object.assign(r.proxy, {
|
|
3480
3480
|
// expose public methods
|
|
3481
|
-
focus:
|
|
3481
|
+
focus: A,
|
|
3482
3482
|
shake: H,
|
|
3483
3483
|
// private but needed by QSelect
|
|
3484
3484
|
__updateRefocusTarget(J) {
|
|
3485
3485
|
u = J || null;
|
|
3486
3486
|
}
|
|
3487
3487
|
}), ht(N);
|
|
3488
|
-
function
|
|
3488
|
+
function z() {
|
|
3489
3489
|
return O("div", {
|
|
3490
3490
|
role: "dialog",
|
|
3491
|
-
"aria-modal":
|
|
3491
|
+
"aria-modal": B.value === !0 ? "true" : "false",
|
|
3492
3492
|
...n,
|
|
3493
3493
|
class: R.value
|
|
3494
3494
|
}, [
|
|
3495
3495
|
O(fi, {
|
|
3496
3496
|
name: "q-transition--fade",
|
|
3497
3497
|
appear: !0
|
|
3498
|
-
}, () =>
|
|
3498
|
+
}, () => B.value === !0 ? O("div", {
|
|
3499
3499
|
class: "q-dialog__backdrop fixed-full",
|
|
3500
3500
|
style: v.value,
|
|
3501
3501
|
"aria-hidden": "true",
|
|
3502
3502
|
tabindex: -1,
|
|
3503
|
-
onClick:
|
|
3503
|
+
onClick: M
|
|
3504
3504
|
}) : null),
|
|
3505
3505
|
O(
|
|
3506
3506
|
fi,
|
|
3507
3507
|
y.value,
|
|
3508
3508
|
() => s.value === !0 ? O("div", {
|
|
3509
3509
|
ref: o,
|
|
3510
|
-
class:
|
|
3510
|
+
class: V.value,
|
|
3511
3511
|
style: k.value,
|
|
3512
3512
|
tabindex: -1,
|
|
3513
3513
|
...P.value
|
|
@@ -3626,23 +3626,23 @@ function Fb({
|
|
|
3626
3626
|
let u, c, h, f = [], d;
|
|
3627
3627
|
const m = G(0), p = G(0), g = G({}), y = G(null), k = G(null), v = G(null), x = G({ from: 0, to: 0 }), C = b(() => o.tableColspan !== void 0 ? o.tableColspan : 100);
|
|
3628
3628
|
n === void 0 && (n = b(() => o.virtualScrollItemSize));
|
|
3629
|
-
const
|
|
3630
|
-
() =>
|
|
3629
|
+
const E = b(() => n.value + ";" + o.virtualScrollHorizontal), q = b(
|
|
3630
|
+
() => E.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
|
|
3631
3631
|
);
|
|
3632
3632
|
ye(q, () => {
|
|
3633
3633
|
H();
|
|
3634
|
-
}), ye(
|
|
3635
|
-
function
|
|
3636
|
-
|
|
3634
|
+
}), ye(E, F);
|
|
3635
|
+
function F() {
|
|
3636
|
+
A(c, !0);
|
|
3637
3637
|
}
|
|
3638
|
-
function
|
|
3639
|
-
|
|
3638
|
+
function V(M) {
|
|
3639
|
+
A(M === void 0 ? c : M);
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3642
|
-
const
|
|
3643
|
-
if (
|
|
3641
|
+
function B(M, T) {
|
|
3642
|
+
const z = e();
|
|
3643
|
+
if (z == null || z.nodeType === 8) return;
|
|
3644
3644
|
const J = ba(
|
|
3645
|
-
|
|
3645
|
+
z,
|
|
3646
3646
|
t(),
|
|
3647
3647
|
y.value,
|
|
3648
3648
|
k.value,
|
|
@@ -3652,18 +3652,18 @@ function Fb({
|
|
|
3652
3652
|
o.virtualScrollStickySizeEnd
|
|
3653
3653
|
);
|
|
3654
3654
|
h !== J.scrollViewSize && H(J.scrollViewSize), R(
|
|
3655
|
-
|
|
3655
|
+
z,
|
|
3656
3656
|
J,
|
|
3657
|
-
Math.min(i.value - 1, Math.max(0, parseInt(
|
|
3657
|
+
Math.min(i.value - 1, Math.max(0, parseInt(M, 10) || 0)),
|
|
3658
3658
|
0,
|
|
3659
|
-
Lb.indexOf(T) !== -1 ? T : c !== -1 &&
|
|
3659
|
+
Lb.indexOf(T) !== -1 ? T : c !== -1 && M > c ? "end" : "start"
|
|
3660
3660
|
);
|
|
3661
3661
|
}
|
|
3662
3662
|
function P() {
|
|
3663
|
-
const
|
|
3664
|
-
if (
|
|
3663
|
+
const M = e();
|
|
3664
|
+
if (M == null || M.nodeType === 8) return;
|
|
3665
3665
|
const T = ba(
|
|
3666
|
-
|
|
3666
|
+
M,
|
|
3667
3667
|
t(),
|
|
3668
3668
|
y.value,
|
|
3669
3669
|
k.value,
|
|
@@ -3671,19 +3671,19 @@ function Fb({
|
|
|
3671
3671
|
a.lang.rtl,
|
|
3672
3672
|
o.virtualScrollStickySizeStart,
|
|
3673
3673
|
o.virtualScrollStickySizeEnd
|
|
3674
|
-
),
|
|
3674
|
+
), z = i.value - 1, J = T.scrollMaxSize - T.offsetStart - T.offsetEnd - p.value;
|
|
3675
3675
|
if (u === T.scrollStart) return;
|
|
3676
3676
|
if (T.scrollMaxSize <= 0) {
|
|
3677
|
-
R(
|
|
3677
|
+
R(M, T, 0, 0);
|
|
3678
3678
|
return;
|
|
3679
3679
|
}
|
|
3680
|
-
h !== T.scrollViewSize && H(T.scrollViewSize),
|
|
3681
|
-
const oe = Math.floor(T.scrollMaxSize - Math.max(T.scrollViewSize, T.offsetEnd) - Math.min(d[
|
|
3680
|
+
h !== T.scrollViewSize && H(T.scrollViewSize), D(x.value.from);
|
|
3681
|
+
const oe = Math.floor(T.scrollMaxSize - Math.max(T.scrollViewSize, T.offsetEnd) - Math.min(d[z], T.scrollViewSize / 2));
|
|
3682
3682
|
if (oe > 0 && Math.ceil(T.scrollStart) >= oe) {
|
|
3683
3683
|
R(
|
|
3684
|
-
|
|
3684
|
+
M,
|
|
3685
3685
|
T,
|
|
3686
|
-
|
|
3686
|
+
z,
|
|
3687
3687
|
T.scrollMaxSize - T.offsetEnd - f.reduce(Ar, 0)
|
|
3688
3688
|
);
|
|
3689
3689
|
return;
|
|
@@ -3692,31 +3692,31 @@ function Fb({
|
|
|
3692
3692
|
if (se <= J && se + T.scrollViewSize >= m.value)
|
|
3693
3693
|
se -= m.value, ce = x.value.from, Be = se;
|
|
3694
3694
|
else
|
|
3695
|
-
for (let ee = 0; se >= f[ee] && ce <
|
|
3695
|
+
for (let ee = 0; se >= f[ee] && ce < z; ee++)
|
|
3696
3696
|
se -= f[ee], ce += Ai;
|
|
3697
|
-
for (; se > 0 && ce <
|
|
3697
|
+
for (; se > 0 && ce < z; )
|
|
3698
3698
|
se -= d[ce], se > -T.scrollViewSize ? (ce++, Be = se) : Be = d[ce] + se;
|
|
3699
3699
|
R(
|
|
3700
|
-
|
|
3700
|
+
M,
|
|
3701
3701
|
T,
|
|
3702
3702
|
ce,
|
|
3703
3703
|
Be
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
|
-
function R(
|
|
3706
|
+
function R(M, T, z, J, oe) {
|
|
3707
3707
|
const ce = typeof oe == "string" && oe.indexOf("-force") !== -1, se = ce === !0 ? oe.replace("-force", "") : oe, Be = se !== void 0 ? se : "start";
|
|
3708
|
-
let ee = Math.max(0,
|
|
3708
|
+
let ee = Math.max(0, z - g.value[Be]), et = ee + g.value.total;
|
|
3709
3709
|
et > i.value && (et = i.value, ee = Math.max(0, et - g.value.total)), u = T.scrollStart;
|
|
3710
3710
|
const Ie = ee !== x.value.from || et !== x.value.to;
|
|
3711
3711
|
if (Ie === !1 && se === void 0) {
|
|
3712
|
-
N(
|
|
3712
|
+
N(z);
|
|
3713
3713
|
return;
|
|
3714
3714
|
}
|
|
3715
3715
|
const { activeElement: Qe } = document, wt = v.value;
|
|
3716
|
-
Ie === !0 && wt !== null && wt !== Qe && wt.contains(Qe) === !0 && (wt.addEventListener("focusout",
|
|
3717
|
-
wt == null || wt.removeEventListener("focusout",
|
|
3718
|
-
})), Ib(wt,
|
|
3719
|
-
const _t = se !== void 0 ? d.slice(ee,
|
|
3716
|
+
Ie === !0 && wt !== null && wt !== Qe && wt.contains(Qe) === !0 && (wt.addEventListener("focusout", w), setTimeout(() => {
|
|
3717
|
+
wt == null || wt.removeEventListener("focusout", w);
|
|
3718
|
+
})), Ib(wt, z - ee);
|
|
3719
|
+
const _t = se !== void 0 ? d.slice(ee, z).reduce(Ar, 0) : 0;
|
|
3720
3720
|
if (Ie === !0) {
|
|
3721
3721
|
const Yt = et >= x.value.from && ee <= x.value.to ? x.value.to : et;
|
|
3722
3722
|
x.value = { from: ee, to: Yt }, m.value = Jr(f, d, 0, ee), p.value = Jr(f, d, et, i.value), requestAnimationFrame(() => {
|
|
@@ -3725,47 +3725,47 @@ function Fb({
|
|
|
3725
3725
|
}
|
|
3726
3726
|
requestAnimationFrame(() => {
|
|
3727
3727
|
if (u !== T.scrollStart) return;
|
|
3728
|
-
Ie === !0 &&
|
|
3729
|
-
const Yt = d.slice(ee,
|
|
3728
|
+
Ie === !0 && D(ee);
|
|
3729
|
+
const Yt = d.slice(ee, z).reduce(Ar, 0), Bt = Yt + T.offsetStart + m.value, dt = Bt + d[z];
|
|
3730
3730
|
let gi = Bt + J;
|
|
3731
3731
|
if (se !== void 0) {
|
|
3732
3732
|
const Bi = Yt - _t, Gt = T.scrollStart + Bi;
|
|
3733
|
-
gi = ce !== !0 && Gt < Bt && dt < Gt + T.scrollViewSize ? Gt : se === "end" ? dt - T.scrollViewSize : Bt - (se === "start" ? 0 : Math.round((T.scrollViewSize - d[
|
|
3733
|
+
gi = ce !== !0 && Gt < Bt && dt < Gt + T.scrollViewSize ? Gt : se === "end" ? dt - T.scrollViewSize : Bt - (se === "start" ? 0 : Math.round((T.scrollViewSize - d[z]) / 2));
|
|
3734
3734
|
}
|
|
3735
3735
|
u = gi, Hh(
|
|
3736
|
-
|
|
3736
|
+
M,
|
|
3737
3737
|
gi,
|
|
3738
3738
|
o.virtualScrollHorizontal,
|
|
3739
3739
|
a.lang.rtl
|
|
3740
|
-
), N(
|
|
3740
|
+
), N(z);
|
|
3741
3741
|
});
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function D(M) {
|
|
3744
3744
|
const T = v.value;
|
|
3745
3745
|
if (T) {
|
|
3746
|
-
const
|
|
3746
|
+
const z = Zm.call(
|
|
3747
3747
|
T.children,
|
|
3748
3748
|
(ee) => ee.classList && ee.classList.contains("q-virtual-scroll--skip") === !1
|
|
3749
|
-
), J =
|
|
3750
|
-
let ce =
|
|
3749
|
+
), J = z.length, oe = o.virtualScrollHorizontal === !0 ? (ee) => ee.getBoundingClientRect().width : (ee) => ee.offsetHeight;
|
|
3750
|
+
let ce = M, se, Be;
|
|
3751
3751
|
for (let ee = 0; ee < J; ) {
|
|
3752
|
-
for (se = oe(
|
|
3753
|
-
se += oe(
|
|
3752
|
+
for (se = oe(z[ee]), ee++; ee < J && z[ee].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
3753
|
+
se += oe(z[ee]), ee++;
|
|
3754
3754
|
Be = se - d[ce], Be !== 0 && (d[ce] += Be, f[Math.floor(ce / Ai)] += Be), ce++;
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3759
|
-
var
|
|
3760
|
-
(
|
|
3758
|
+
function w() {
|
|
3759
|
+
var M;
|
|
3760
|
+
(M = v.value) == null || M.focus();
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3763
|
-
const
|
|
3762
|
+
function A(M, T) {
|
|
3763
|
+
const z = 1 * n.value;
|
|
3764
3764
|
(T === !0 || Array.isArray(d) === !1) && (d = []);
|
|
3765
3765
|
const J = d.length;
|
|
3766
3766
|
d.length = i.value;
|
|
3767
3767
|
for (let ce = i.value - 1; ce >= J; ce--)
|
|
3768
|
-
d[ce] =
|
|
3768
|
+
d[ce] = z;
|
|
3769
3769
|
const oe = Math.floor((i.value - 1) / Ai);
|
|
3770
3770
|
f = [];
|
|
3771
3771
|
for (let ce = 0; ce <= oe; ce++) {
|
|
@@ -3775,14 +3775,14 @@ function Fb({
|
|
|
3775
3775
|
se += d[ee];
|
|
3776
3776
|
f.push(se);
|
|
3777
3777
|
}
|
|
3778
|
-
c = -1, u = void 0, m.value = Jr(f, d, 0, x.value.from), p.value = Jr(f, d, x.value.to, i.value),
|
|
3779
|
-
|
|
3778
|
+
c = -1, u = void 0, m.value = Jr(f, d, 0, x.value.from), p.value = Jr(f, d, x.value.to, i.value), M >= 0 ? (D(x.value.from), rt(() => {
|
|
3779
|
+
B(M);
|
|
3780
3780
|
})) : K();
|
|
3781
3781
|
}
|
|
3782
|
-
function H(
|
|
3783
|
-
if (
|
|
3782
|
+
function H(M) {
|
|
3783
|
+
if (M === void 0 && typeof window < "u") {
|
|
3784
3784
|
const se = e();
|
|
3785
|
-
se != null && se.nodeType !== 8 && (
|
|
3785
|
+
se != null && se.nodeType !== 8 && (M = ba(
|
|
3786
3786
|
se,
|
|
3787
3787
|
t(),
|
|
3788
3788
|
y.value,
|
|
@@ -3793,8 +3793,8 @@ function Fb({
|
|
|
3793
3793
|
o.virtualScrollStickySizeEnd
|
|
3794
3794
|
).scrollViewSize);
|
|
3795
3795
|
}
|
|
3796
|
-
h =
|
|
3797
|
-
const T = parseFloat(o.virtualScrollSliceRatioBefore) || 0,
|
|
3796
|
+
h = M;
|
|
3797
|
+
const T = parseFloat(o.virtualScrollSliceRatioBefore) || 0, z = parseFloat(o.virtualScrollSliceRatioAfter) || 0, J = 1 + T + z, oe = M === void 0 || M <= 0 ? 1 : Math.ceil(M / n.value), ce = Math.max(
|
|
3798
3798
|
1,
|
|
3799
3799
|
oe,
|
|
3800
3800
|
Math.ceil((o.virtualScrollSliceSize > 0 ? o.virtualScrollSliceSize : 10) / J)
|
|
@@ -3807,61 +3807,61 @@ function Fb({
|
|
|
3807
3807
|
view: oe
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3811
|
-
const
|
|
3812
|
-
["--q-virtual-scroll-item-" +
|
|
3810
|
+
function I(M, T) {
|
|
3811
|
+
const z = o.virtualScrollHorizontal === !0 ? "width" : "height", J = {
|
|
3812
|
+
["--q-virtual-scroll-item-" + z]: n.value + "px"
|
|
3813
3813
|
};
|
|
3814
3814
|
return [
|
|
3815
|
-
|
|
3815
|
+
M === "tbody" ? O(M, {
|
|
3816
3816
|
class: "q-virtual-scroll__padding",
|
|
3817
3817
|
key: "before",
|
|
3818
3818
|
ref: y
|
|
3819
3819
|
}, [
|
|
3820
3820
|
O("tr", [
|
|
3821
3821
|
O("td", {
|
|
3822
|
-
style: { [
|
|
3822
|
+
style: { [z]: `${m.value}px`, ...J },
|
|
3823
3823
|
colspan: C.value
|
|
3824
3824
|
})
|
|
3825
3825
|
])
|
|
3826
|
-
]) : O(
|
|
3826
|
+
]) : O(M, {
|
|
3827
3827
|
class: "q-virtual-scroll__padding",
|
|
3828
3828
|
key: "before",
|
|
3829
3829
|
ref: y,
|
|
3830
|
-
style: { [
|
|
3830
|
+
style: { [z]: `${m.value}px`, ...J }
|
|
3831
3831
|
}),
|
|
3832
|
-
O(
|
|
3832
|
+
O(M, {
|
|
3833
3833
|
class: "q-virtual-scroll__content",
|
|
3834
3834
|
key: "content",
|
|
3835
3835
|
ref: v,
|
|
3836
3836
|
tabindex: -1
|
|
3837
3837
|
}, T.flat()),
|
|
3838
|
-
|
|
3838
|
+
M === "tbody" ? O(M, {
|
|
3839
3839
|
class: "q-virtual-scroll__padding",
|
|
3840
3840
|
key: "after",
|
|
3841
3841
|
ref: k
|
|
3842
3842
|
}, [
|
|
3843
3843
|
O("tr", [
|
|
3844
3844
|
O("td", {
|
|
3845
|
-
style: { [
|
|
3845
|
+
style: { [z]: `${p.value}px`, ...J },
|
|
3846
3846
|
colspan: C.value
|
|
3847
3847
|
})
|
|
3848
3848
|
])
|
|
3849
|
-
]) : O(
|
|
3849
|
+
]) : O(M, {
|
|
3850
3850
|
class: "q-virtual-scroll__padding",
|
|
3851
3851
|
key: "after",
|
|
3852
3852
|
ref: k,
|
|
3853
|
-
style: { [
|
|
3853
|
+
style: { [z]: `${p.value}px`, ...J }
|
|
3854
3854
|
})
|
|
3855
3855
|
];
|
|
3856
3856
|
}
|
|
3857
|
-
function N(
|
|
3858
|
-
c !==
|
|
3859
|
-
index:
|
|
3857
|
+
function N(M) {
|
|
3858
|
+
c !== M && (o.onVirtualScroll !== void 0 && s("virtualScroll", {
|
|
3859
|
+
index: M,
|
|
3860
3860
|
from: x.value.from,
|
|
3861
3861
|
to: x.value.to - 1,
|
|
3862
|
-
direction:
|
|
3862
|
+
direction: M < c ? "decrease" : "increase",
|
|
3863
3863
|
ref: l
|
|
3864
|
-
}), c =
|
|
3864
|
+
}), c = M);
|
|
3865
3865
|
}
|
|
3866
3866
|
H();
|
|
3867
3867
|
const K = Mm(
|
|
@@ -3876,25 +3876,25 @@ function Fb({
|
|
|
3876
3876
|
Y = !0;
|
|
3877
3877
|
}), lc(() => {
|
|
3878
3878
|
if (Y !== !0) return;
|
|
3879
|
-
const
|
|
3880
|
-
u !== void 0 &&
|
|
3881
|
-
|
|
3879
|
+
const M = e();
|
|
3880
|
+
u !== void 0 && M !== void 0 && M !== null && M.nodeType !== 8 ? Hh(
|
|
3881
|
+
M,
|
|
3882
3882
|
u,
|
|
3883
3883
|
o.virtualScrollHorizontal,
|
|
3884
3884
|
a.lang.rtl
|
|
3885
|
-
) :
|
|
3885
|
+
) : B(c);
|
|
3886
3886
|
}), ht(() => {
|
|
3887
3887
|
K.cancel();
|
|
3888
|
-
}), Object.assign(l, { scrollTo:
|
|
3888
|
+
}), Object.assign(l, { scrollTo: B, reset: F, refresh: V }), {
|
|
3889
3889
|
virtualScrollSliceRange: x,
|
|
3890
3890
|
virtualScrollSliceSizeComputed: g,
|
|
3891
3891
|
setVirtualScrollSize: H,
|
|
3892
3892
|
onVirtualScrollEvt: K,
|
|
3893
|
-
localResetVirtualScroll:
|
|
3894
|
-
padVirtualScroll:
|
|
3895
|
-
scrollTo:
|
|
3896
|
-
reset:
|
|
3897
|
-
refresh:
|
|
3893
|
+
localResetVirtualScroll: A,
|
|
3894
|
+
padVirtualScroll: I,
|
|
3895
|
+
scrollTo: B,
|
|
3896
|
+
reset: F,
|
|
3897
|
+
refresh: V
|
|
3898
3898
|
};
|
|
3899
3899
|
}
|
|
3900
3900
|
function yn(i, e) {
|
|
@@ -4076,11 +4076,11 @@ const zo = Je({
|
|
|
4076
4076
|
setup(i, { slots: e, emit: t }) {
|
|
4077
4077
|
const { proxy: n } = je(), { $q: r } = n, o = G(!1), s = G(!1), l = G(-1), a = G(""), u = G(!1), c = G(!1);
|
|
4078
4078
|
let h = null, f = null, d, m, p, g = null, y, k, v, x;
|
|
4079
|
-
const C = G(null),
|
|
4080
|
-
virtualScrollSliceRange:
|
|
4081
|
-
virtualScrollSliceSizeComputed:
|
|
4079
|
+
const C = G(null), E = G(null), q = G(null), F = G(null), V = G(null), B = qm(i), P = Pm(cr), R = b(() => Array.isArray(i.options) ? i.options.length : 0), D = b(() => i.virtualScrollItemSize === void 0 ? i.optionsDense === !0 ? 24 : 48 : i.virtualScrollItemSize), {
|
|
4080
|
+
virtualScrollSliceRange: w,
|
|
4081
|
+
virtualScrollSliceSizeComputed: A,
|
|
4082
4082
|
localResetVirtualScroll: H,
|
|
4083
|
-
padVirtualScroll:
|
|
4083
|
+
padVirtualScroll: I,
|
|
4084
4084
|
onVirtualScrollEvt: N,
|
|
4085
4085
|
scrollTo: K,
|
|
4086
4086
|
setVirtualScrollSize: Y
|
|
@@ -4088,28 +4088,28 @@ const zo = Je({
|
|
|
4088
4088
|
virtualScrollLength: R,
|
|
4089
4089
|
getVirtualScrollTarget: dn,
|
|
4090
4090
|
getVirtualScrollEl: Ln,
|
|
4091
|
-
virtualScrollItemSizeComputed:
|
|
4092
|
-
}),
|
|
4091
|
+
virtualScrollItemSizeComputed: D
|
|
4092
|
+
}), M = fc(), T = b(() => {
|
|
4093
4093
|
const _ = i.mapOptions === !0 && i.multiple !== !0, he = i.modelValue !== void 0 && (i.modelValue !== null || _ === !0) ? i.multiple === !0 && Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [];
|
|
4094
4094
|
if (i.mapOptions === !0 && Array.isArray(i.options) === !0) {
|
|
4095
4095
|
const me = i.mapOptions === !0 && d !== void 0 ? d : [], _e = he.map(($e) => be($e, me));
|
|
4096
4096
|
return i.modelValue === null && _ === !0 ? _e.filter(($e) => $e !== null) : _e;
|
|
4097
4097
|
}
|
|
4098
4098
|
return he;
|
|
4099
|
-
}),
|
|
4099
|
+
}), z = b(() => {
|
|
4100
4100
|
const _ = {};
|
|
4101
4101
|
return zb.forEach((he) => {
|
|
4102
4102
|
const me = i[he];
|
|
4103
4103
|
me !== void 0 && (_[he] = me);
|
|
4104
4104
|
}), _;
|
|
4105
|
-
}), J = b(() => i.optionsDark === null ?
|
|
4105
|
+
}), J = b(() => i.optionsDark === null ? M.isDark.value : i.optionsDark), oe = b(() => xo(T.value)), ce = b(() => {
|
|
4106
4106
|
let _ = "q-field__input q-placeholder col";
|
|
4107
4107
|
return i.hideSelected === !0 || T.value.length === 0 ? [_, i.inputClass] : (_ += " q-field__input--padding", i.inputClass === void 0 ? _ : [_, i.inputClass]);
|
|
4108
4108
|
}), se = b(
|
|
4109
4109
|
() => (i.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (i.popupContentClass ? " " + i.popupContentClass : "")
|
|
4110
4110
|
), Be = b(() => R.value === 0), ee = b(
|
|
4111
4111
|
() => T.value.map((_) => X.value(_)).join(", ")
|
|
4112
|
-
), et = b(() => i.displayValue !== void 0 ? i.displayValue : ee.value), Ie = b(() => i.optionsHtml === !0 ? () => !0 : (_) => (_ == null ? void 0 : _.html) === !0), Qe = b(() => i.displayValueHtml === !0 || i.displayValue === void 0 && (i.optionsHtml === !0 || T.value.some(Ie.value))), wt = b(() =>
|
|
4112
|
+
), et = b(() => i.displayValue !== void 0 ? i.displayValue : ee.value), Ie = b(() => i.optionsHtml === !0 ? () => !0 : (_) => (_ == null ? void 0 : _.html) === !0), Qe = b(() => i.displayValueHtml === !0 || i.displayValue === void 0 && (i.optionsHtml === !0 || T.value.some(Ie.value))), wt = b(() => M.focused.value === !0 ? i.tabindex : -1), _t = b(() => {
|
|
4113
4113
|
const _ = {
|
|
4114
4114
|
tabindex: i.tabindex,
|
|
4115
4115
|
role: "combobox",
|
|
@@ -4117,11 +4117,11 @@ const zo = Je({
|
|
|
4117
4117
|
"aria-readonly": i.readonly === !0 ? "true" : "false",
|
|
4118
4118
|
"aria-autocomplete": i.useInput === !0 ? "list" : "none",
|
|
4119
4119
|
"aria-expanded": o.value === !0 ? "true" : "false",
|
|
4120
|
-
"aria-controls": `${
|
|
4120
|
+
"aria-controls": `${M.targetUid.value}_lb`
|
|
4121
4121
|
};
|
|
4122
|
-
return l.value >= 0 && (_["aria-activedescendant"] = `${
|
|
4122
|
+
return l.value >= 0 && (_["aria-activedescendant"] = `${M.targetUid.value}_${l.value}`), _;
|
|
4123
4123
|
}), Yt = b(() => ({
|
|
4124
|
-
id: `${
|
|
4124
|
+
id: `${M.targetUid.value}_lb`,
|
|
4125
4125
|
role: "listbox",
|
|
4126
4126
|
"aria-multiselectable": i.multiple === !0 ? "true" : "false"
|
|
4127
4127
|
})), Bt = b(() => T.value.map((_, he) => ({
|
|
@@ -4135,7 +4135,7 @@ const zo = Je({
|
|
|
4135
4135
|
}))), dt = b(() => {
|
|
4136
4136
|
if (R.value === 0)
|
|
4137
4137
|
return [];
|
|
4138
|
-
const { from: _, to: he } =
|
|
4138
|
+
const { from: _, to: he } = w.value;
|
|
4139
4139
|
return i.options.slice(_, he).map((me, _e) => {
|
|
4140
4140
|
const $e = ve.value(me) === !0, mt = Ce(me) === !0, Ze = _ + _e, gt = {
|
|
4141
4141
|
clickable: !0,
|
|
@@ -4149,7 +4149,7 @@ const zo = Je({
|
|
|
4149
4149
|
dark: J.value,
|
|
4150
4150
|
role: "option",
|
|
4151
4151
|
"aria-selected": mt === !0 ? "true" : "false",
|
|
4152
|
-
id: `${
|
|
4152
|
+
id: `${M.targetUid.value}_${Ze}`,
|
|
4153
4153
|
onClick: () => {
|
|
4154
4154
|
ut(me);
|
|
4155
4155
|
}
|
|
@@ -4189,7 +4189,7 @@ const zo = Je({
|
|
|
4189
4189
|
return _.onCompositionstart = _.onCompositionupdate = _.onCompositionend = P, _;
|
|
4190
4190
|
});
|
|
4191
4191
|
ye(T, (_) => {
|
|
4192
|
-
d = _, i.useInput === !0 && i.fillInput === !0 && i.multiple !== !0 &&
|
|
4192
|
+
d = _, i.useInput === !0 && i.fillInput === !0 && i.multiple !== !0 && M.innerLoading.value !== !0 && (s.value !== !0 && o.value !== !0 || oe.value !== !0) && (p !== !0 && pi(), (s.value === !0 || o.value === !0) && Ri(""));
|
|
4193
4193
|
}, { immediate: !0 }), ye(() => i.fillInput, pi), ye(o, la), ye(R, A0);
|
|
4194
4194
|
function ze(_) {
|
|
4195
4195
|
return i.emitValue === !0 ? at.value(_) : _;
|
|
@@ -4203,7 +4203,7 @@ const zo = Je({
|
|
|
4203
4203
|
t("update:modelValue", null);
|
|
4204
4204
|
}
|
|
4205
4205
|
function qe(_) {
|
|
4206
|
-
Oe(_),
|
|
4206
|
+
Oe(_), M.focus();
|
|
4207
4207
|
}
|
|
4208
4208
|
function Xe(_, he) {
|
|
4209
4209
|
const me = ze(_);
|
|
@@ -4225,17 +4225,17 @@ const zo = Je({
|
|
|
4225
4225
|
}
|
|
4226
4226
|
function ut(_, he) {
|
|
4227
4227
|
var mt;
|
|
4228
|
-
if (
|
|
4228
|
+
if (M.editable.value !== !0 || _ === void 0 || ve.value(_) === !0) return;
|
|
4229
4229
|
const me = at.value(_);
|
|
4230
4230
|
if (i.multiple !== !0) {
|
|
4231
4231
|
he !== !0 && (Vn(
|
|
4232
4232
|
i.fillInput === !0 ? X.value(_) : "",
|
|
4233
4233
|
!0,
|
|
4234
4234
|
!0
|
|
4235
|
-
), Ve()), (mt =
|
|
4235
|
+
), Ve()), (mt = E.value) == null || mt.focus(), (T.value.length === 0 || yn(at.value(T.value[0]), me) !== !0) && t("update:modelValue", i.emitValue === !0 ? me : _);
|
|
4236
4236
|
return;
|
|
4237
4237
|
}
|
|
4238
|
-
if ((m !== !0 || u.value === !0) &&
|
|
4238
|
+
if ((m !== !0 || u.value === !0) && M.focus(), Re(), T.value.length === 0) {
|
|
4239
4239
|
const Ze = i.emitValue === !0 ? me : _;
|
|
4240
4240
|
t("add", { index: 0, value: Ze }), t("update:modelValue", i.multiple === !0 ? [Ze] : Ze);
|
|
4241
4241
|
return;
|
|
@@ -4280,7 +4280,7 @@ const zo = Je({
|
|
|
4280
4280
|
return we.value.find((me) => yn(me, he)) !== void 0;
|
|
4281
4281
|
}
|
|
4282
4282
|
function Re(_) {
|
|
4283
|
-
i.useInput === !0 &&
|
|
4283
|
+
i.useInput === !0 && E.value !== null && (_ === void 0 || E.value === _.target && _.target.value === ee.value) && E.value.select();
|
|
4284
4284
|
}
|
|
4285
4285
|
function Nt(_) {
|
|
4286
4286
|
an(_, 27) === !0 && o.value === !0 && (hi(_), Ve(), pi()), t("keyup", _);
|
|
@@ -4300,7 +4300,7 @@ const zo = Je({
|
|
|
4300
4300
|
};
|
|
4301
4301
|
$e();
|
|
4302
4302
|
} else
|
|
4303
|
-
|
|
4303
|
+
M.clearValue(_);
|
|
4304
4304
|
}
|
|
4305
4305
|
function tt(_) {
|
|
4306
4306
|
t("keypress", _);
|
|
@@ -4316,8 +4316,8 @@ const zo = Je({
|
|
|
4316
4316
|
pe();
|
|
4317
4317
|
return;
|
|
4318
4318
|
}
|
|
4319
|
-
if (_.target === void 0 || _.target.id !==
|
|
4320
|
-
if (_.keyCode === 40 &&
|
|
4319
|
+
if (_.target === void 0 || _.target.id !== M.targetUid.value || M.editable.value !== !0) return;
|
|
4320
|
+
if (_.keyCode === 40 && M.innerLoading.value !== !0 && o.value === !1) {
|
|
4321
4321
|
ct(_), Se();
|
|
4322
4322
|
return;
|
|
4323
4323
|
}
|
|
@@ -4325,11 +4325,11 @@ const zo = Je({
|
|
|
4325
4325
|
i.multiple === !0 && Array.isArray(i.modelValue) === !0 ? Oe(i.modelValue.length - 1) : i.multiple !== !0 && i.modelValue !== null && t("update:modelValue", null);
|
|
4326
4326
|
return;
|
|
4327
4327
|
}
|
|
4328
|
-
(_.keyCode === 35 || _.keyCode === 36) && (typeof a.value != "string" || a.value.length === 0) && (ct(_), l.value = -1, $(_.keyCode === 36 ? 1 : -1, i.multiple)), (_.keyCode === 33 || _.keyCode === 34) &&
|
|
4328
|
+
(_.keyCode === 35 || _.keyCode === 36) && (typeof a.value != "string" || a.value.length === 0) && (ct(_), l.value = -1, $(_.keyCode === 36 ? 1 : -1, i.multiple)), (_.keyCode === 33 || _.keyCode === 34) && A.value !== void 0 && (ct(_), l.value = Math.max(
|
|
4329
4329
|
-1,
|
|
4330
4330
|
Math.min(
|
|
4331
4331
|
R.value,
|
|
4332
|
-
l.value + (_.keyCode === 33 ? -1 : 1) *
|
|
4332
|
+
l.value + (_.keyCode === 33 ? -1 : 1) * A.value.view
|
|
4333
4333
|
)
|
|
4334
4334
|
), $(_.keyCode === 33 ? 1 : -1, i.multiple)), (_.keyCode === 38 || _.keyCode === 40) && (ct(_), $(_.keyCode === 38 ? -1 : 1, i.multiple));
|
|
4335
4335
|
const _e = R.value;
|
|
@@ -4361,15 +4361,15 @@ const zo = Je({
|
|
|
4361
4361
|
} else
|
|
4362
4362
|
Ze = i.newValueMode;
|
|
4363
4363
|
if (Vn("", i.multiple !== !0, !0), mt == null) return;
|
|
4364
|
-
(Ze === "toggle" ? ut : Xe)(mt, Ze === "add-unique"), i.multiple !== !0 && ((hr =
|
|
4364
|
+
(Ze === "toggle" ? ut : Xe)(mt, Ze === "add-unique"), i.multiple !== !0 && ((hr = E.value) == null || hr.focus(), Ve());
|
|
4365
4365
|
};
|
|
4366
4366
|
if (i.onNewValue !== void 0 ? t("newValue", a.value, $e) : $e(a.value), i.multiple !== !0) return;
|
|
4367
4367
|
}
|
|
4368
|
-
o.value === !0 ? pe() :
|
|
4368
|
+
o.value === !0 ? pe() : M.innerLoading.value !== !0 && Se();
|
|
4369
4369
|
}
|
|
4370
4370
|
}
|
|
4371
4371
|
function Ln() {
|
|
4372
|
-
return m === !0 ?
|
|
4372
|
+
return m === !0 ? V.value : q.value !== null && q.value.contentEl !== null ? q.value.contentEl : void 0;
|
|
4373
4373
|
}
|
|
4374
4374
|
function dn() {
|
|
4375
4375
|
return Ln();
|
|
@@ -4377,7 +4377,7 @@ const zo = Je({
|
|
|
4377
4377
|
function es() {
|
|
4378
4378
|
return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Bt.value.map((_) => e["selected-item"](_)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Bt.value.map((_, he) => O(Em, {
|
|
4379
4379
|
key: "option-" + he,
|
|
4380
|
-
removable:
|
|
4380
|
+
removable: M.editable.value === !0 && ve.value(_.opt) !== !0,
|
|
4381
4381
|
dense: !0,
|
|
4382
4382
|
textColor: i.color,
|
|
4383
4383
|
tabindex: wt.value,
|
|
@@ -4409,12 +4409,12 @@ const zo = Je({
|
|
|
4409
4409
|
})
|
|
4410
4410
|
)
|
|
4411
4411
|
));
|
|
4412
|
-
let he =
|
|
4412
|
+
let he = I("div", dt.value.map(_));
|
|
4413
4413
|
return e["before-options"] !== void 0 && (he = e["before-options"]().concat(he)), xn(e["after-options"], he);
|
|
4414
4414
|
}
|
|
4415
4415
|
function Yr(_, he) {
|
|
4416
|
-
const me = he === !0 ? { ..._t.value, ...
|
|
4417
|
-
ref: he === !0 ?
|
|
4416
|
+
const me = he === !0 ? { ..._t.value, ...M.splitAttrs.attributes.value } : void 0, _e = {
|
|
4417
|
+
ref: he === !0 ? E : void 0,
|
|
4418
4418
|
key: "i_t",
|
|
4419
4419
|
class: ce.value,
|
|
4420
4420
|
style: i.inputStyle,
|
|
@@ -4422,7 +4422,7 @@ const zo = Je({
|
|
|
4422
4422
|
// required for Android in order to show ENTER key when in form
|
|
4423
4423
|
type: "search",
|
|
4424
4424
|
...me,
|
|
4425
|
-
id: he === !0 ?
|
|
4425
|
+
id: he === !0 ? M.targetUid.value : void 0,
|
|
4426
4426
|
maxlength: i.maxlength,
|
|
4427
4427
|
autocomplete: i.autocomplete,
|
|
4428
4428
|
"data-autofocus": _ === !0 || i.autofocus === !0 || void 0,
|
|
@@ -4433,7 +4433,7 @@ const zo = Je({
|
|
|
4433
4433
|
return _ !== !0 && m === !0 && (Array.isArray(_e.class) === !0 ? _e.class = [..._e.class, "no-pointer-events"] : _e.class += " no-pointer-events"), O("input", _e);
|
|
4434
4434
|
}
|
|
4435
4435
|
function cr(_) {
|
|
4436
|
-
h !== null && (clearTimeout(h), h = null), f !== null && (clearTimeout(f), f = null), !(_ && _.target && _.target.qComposing === !0) && (In(_.target.value || ""), p = !0, y = a.value,
|
|
4436
|
+
h !== null && (clearTimeout(h), h = null), f !== null && (clearTimeout(f), f = null), !(_ && _.target && _.target.qComposing === !0) && (In(_.target.value || ""), p = !0, y = a.value, M.focused.value !== !0 && (m !== !0 || u.value === !0) && M.focus(), i.onFilter !== void 0 && (h = setTimeout(() => {
|
|
4437
4437
|
h = null, Ri(a.value);
|
|
4438
4438
|
}, i.inputDebounce)));
|
|
4439
4439
|
}
|
|
@@ -4446,8 +4446,8 @@ const zo = Je({
|
|
|
4446
4446
|
p = me !== !0, i.useInput === !0 && (In(_, !0), (he === !0 || me !== !0) && (y = _), he !== !0 && Ri(_));
|
|
4447
4447
|
}
|
|
4448
4448
|
function Ri(_, he, me) {
|
|
4449
|
-
if (i.onFilter === void 0 || he !== !0 &&
|
|
4450
|
-
|
|
4449
|
+
if (i.onFilter === void 0 || he !== !0 && M.focused.value !== !0) return;
|
|
4450
|
+
M.innerLoading.value === !0 ? t("filterAbort") : (M.innerLoading.value = !0, c.value = !0), _ !== "" && i.multiple !== !0 && T.value.length !== 0 && p !== !0 && _ === X.value(T.value[0]) && (_ = "");
|
|
4451
4451
|
const _e = setTimeout(() => {
|
|
4452
4452
|
o.value === !0 && (o.value = !1);
|
|
4453
4453
|
}, 10);
|
|
@@ -4455,8 +4455,8 @@ const zo = Je({
|
|
|
4455
4455
|
"filter",
|
|
4456
4456
|
_,
|
|
4457
4457
|
($e, mt) => {
|
|
4458
|
-
(he === !0 ||
|
|
4459
|
-
|
|
4458
|
+
(he === !0 || M.focused.value === !0) && g === _e && (clearTimeout(g), typeof $e == "function" && $e(), c.value = !1, rt(() => {
|
|
4459
|
+
M.innerLoading.value = !1, M.editable.value === !0 && (he === !0 ? o.value === !0 && Ve() : o.value === !0 ? la(!0) : o.value = !0), typeof mt == "function" && rt(() => {
|
|
4460
4460
|
mt(n);
|
|
4461
4461
|
}), typeof me == "function" && rt(() => {
|
|
4462
4462
|
me(n);
|
|
@@ -4464,7 +4464,7 @@ const zo = Je({
|
|
|
4464
4464
|
}));
|
|
4465
4465
|
},
|
|
4466
4466
|
() => {
|
|
4467
|
-
|
|
4467
|
+
M.focused.value === !0 && g === _e && (clearTimeout(g), M.innerLoading.value = !1, c.value = !1), o.value === !0 && (o.value = !1);
|
|
4468
4468
|
}
|
|
4469
4469
|
);
|
|
4470
4470
|
}
|
|
@@ -4504,7 +4504,7 @@ const zo = Je({
|
|
|
4504
4504
|
}
|
|
4505
4505
|
function S(_) {
|
|
4506
4506
|
var he;
|
|
4507
|
-
hi(_), (he =
|
|
4507
|
+
hi(_), (he = E.value) == null || he.focus(), u.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
|
|
4508
4508
|
}
|
|
4509
4509
|
function L(_) {
|
|
4510
4510
|
hi(_), rt(() => {
|
|
@@ -4514,28 +4514,28 @@ const zo = Je({
|
|
|
4514
4514
|
function W() {
|
|
4515
4515
|
const _ = [
|
|
4516
4516
|
O(rb, {
|
|
4517
|
-
class: `col-auto ${
|
|
4518
|
-
...
|
|
4519
|
-
for:
|
|
4517
|
+
class: `col-auto ${M.fieldClass.value}`,
|
|
4518
|
+
...z.value,
|
|
4519
|
+
for: M.targetUid.value,
|
|
4520
4520
|
dark: J.value,
|
|
4521
4521
|
square: !0,
|
|
4522
4522
|
loading: c.value,
|
|
4523
4523
|
itemAligned: !1,
|
|
4524
4524
|
filled: !0,
|
|
4525
4525
|
stackLabel: a.value.length !== 0,
|
|
4526
|
-
...
|
|
4526
|
+
...M.splitAttrs.listeners.value,
|
|
4527
4527
|
onFocus: S,
|
|
4528
4528
|
onBlur: L
|
|
4529
4529
|
}, {
|
|
4530
4530
|
...e,
|
|
4531
|
-
rawControl: () =>
|
|
4531
|
+
rawControl: () => M.getControl(!0),
|
|
4532
4532
|
before: void 0,
|
|
4533
4533
|
after: void 0
|
|
4534
4534
|
})
|
|
4535
4535
|
];
|
|
4536
4536
|
return o.value === !0 && _.push(
|
|
4537
4537
|
O("div", {
|
|
4538
|
-
ref:
|
|
4538
|
+
ref: V,
|
|
4539
4539
|
class: se.value + " scroll",
|
|
4540
4540
|
style: i.popupContentStyle,
|
|
4541
4541
|
...Yt.value,
|
|
@@ -4543,7 +4543,7 @@ const zo = Je({
|
|
|
4543
4543
|
onScrollPassive: N
|
|
4544
4544
|
}, Xi())
|
|
4545
4545
|
), O($m, {
|
|
4546
|
-
ref:
|
|
4546
|
+
ref: F,
|
|
4547
4547
|
modelValue: s.value,
|
|
4548
4548
|
position: i.useInput === !0 ? "top" : void 0,
|
|
4549
4549
|
transitionShow: k,
|
|
@@ -4559,24 +4559,24 @@ const zo = Je({
|
|
|
4559
4559
|
}, _));
|
|
4560
4560
|
}
|
|
4561
4561
|
function ne(_) {
|
|
4562
|
-
lh(_),
|
|
4563
|
-
|
|
4564
|
-
),
|
|
4562
|
+
lh(_), F.value !== null && F.value.__updateRefocusTarget(
|
|
4563
|
+
M.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4564
|
+
), M.focused.value = !1;
|
|
4565
4565
|
}
|
|
4566
4566
|
function fe(_) {
|
|
4567
|
-
Ve(),
|
|
4567
|
+
Ve(), M.focused.value === !1 && t("blur", _), pi();
|
|
4568
4568
|
}
|
|
4569
4569
|
function Te() {
|
|
4570
4570
|
const _ = document.activeElement;
|
|
4571
|
-
(_ === null || _.id !==
|
|
4571
|
+
(_ === null || _.id !== M.targetUid.value) && E.value !== null && E.value !== _ && E.value.focus(), Y();
|
|
4572
4572
|
}
|
|
4573
4573
|
function pe() {
|
|
4574
|
-
s.value !== !0 && (l.value = -1, o.value === !0 && (o.value = !1),
|
|
4574
|
+
s.value !== !0 && (l.value = -1, o.value === !0 && (o.value = !1), M.focused.value === !1 && (g !== null && (clearTimeout(g), g = null), M.innerLoading.value === !0 && (t("filterAbort"), M.innerLoading.value = !1, c.value = !1)));
|
|
4575
4575
|
}
|
|
4576
4576
|
function Se(_) {
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
})) :
|
|
4577
|
+
M.editable.value === !0 && (m === !0 ? (M.onControlFocusin(_), s.value = !0, rt(() => {
|
|
4578
|
+
M.focus();
|
|
4579
|
+
})) : M.focus(), i.onFilter !== void 0 ? Ri(a.value) : (Be.value !== !0 || e["no-option"] !== void 0) && (o.value = !0));
|
|
4580
4580
|
}
|
|
4581
4581
|
function Ve() {
|
|
4582
4582
|
s.value = !1, pe();
|
|
@@ -4600,18 +4600,18 @@ const zo = Je({
|
|
|
4600
4600
|
Q(he);
|
|
4601
4601
|
}
|
|
4602
4602
|
function A0(_, he) {
|
|
4603
|
-
o.value === !0 &&
|
|
4604
|
-
o.value === !0 &&
|
|
4603
|
+
o.value === !0 && M.innerLoading.value === !1 && (H(-1, !0), rt(() => {
|
|
4604
|
+
o.value === !0 && M.innerLoading.value === !1 && (_ > he ? H() : la(!0));
|
|
4605
4605
|
}));
|
|
4606
4606
|
}
|
|
4607
4607
|
function oh() {
|
|
4608
4608
|
s.value === !1 && q.value !== null && q.value.updatePosition();
|
|
4609
4609
|
}
|
|
4610
4610
|
function sh(_) {
|
|
4611
|
-
_ !== void 0 && hi(_), t("popupShow", _),
|
|
4611
|
+
_ !== void 0 && hi(_), t("popupShow", _), M.hasPopupOpen = !0, M.onControlFocusin(_);
|
|
4612
4612
|
}
|
|
4613
4613
|
function lh(_) {
|
|
4614
|
-
_ !== void 0 && hi(_), t("popupHide", _),
|
|
4614
|
+
_ !== void 0 && hi(_), t("popupHide", _), M.hasPopupOpen = !1, M.onControlFocusout(_);
|
|
4615
4615
|
}
|
|
4616
4616
|
function ah() {
|
|
4617
4617
|
m = r.platform.is.mobile !== !0 && i.behavior !== "dialog" ? !1 : i.behavior !== "menu" && (i.useInput === !0 ? e["no-option"] !== void 0 || i.onFilter !== void 0 || Be.value === !1 : !0), k = r.platform.is.ios === !0 && m === !0 && i.useInput === !0 ? "fade" : i.transitionShow;
|
|
@@ -4635,36 +4635,36 @@ const zo = Je({
|
|
|
4635
4635
|
isOptionDisabled: (..._) => ve.value.apply(null, _) === !0,
|
|
4636
4636
|
getOptionValue: (..._) => at.value.apply(null, _),
|
|
4637
4637
|
getOptionLabel: (..._) => X.value.apply(null, _)
|
|
4638
|
-
}), Object.assign(
|
|
4638
|
+
}), Object.assign(M, {
|
|
4639
4639
|
innerValue: T,
|
|
4640
4640
|
fieldClass: b(
|
|
4641
4641
|
() => `q-select q-field--auto-height q-select--with${i.useInput !== !0 ? "out" : ""}-input q-select--with${i.useChips !== !0 ? "out" : ""}-chips q-select--${i.multiple === !0 ? "multiple" : "single"}`
|
|
4642
4642
|
),
|
|
4643
4643
|
inputRef: C,
|
|
4644
|
-
targetRef:
|
|
4644
|
+
targetRef: E,
|
|
4645
4645
|
hasValue: oe,
|
|
4646
4646
|
showPopup: Se,
|
|
4647
4647
|
floatingLabel: b(
|
|
4648
4648
|
() => i.hideSelected !== !0 && oe.value === !0 || typeof a.value == "number" || a.value.length !== 0 || xo(i.displayValue)
|
|
4649
4649
|
),
|
|
4650
4650
|
getControlChild: () => {
|
|
4651
|
-
if (
|
|
4651
|
+
if (M.editable.value !== !1 && (s.value === !0 || Be.value !== !0 || e["no-option"] !== void 0))
|
|
4652
4652
|
return m === !0 ? W() : ra();
|
|
4653
|
-
|
|
4653
|
+
M.hasPopupOpen === !0 && (M.hasPopupOpen = !1);
|
|
4654
4654
|
},
|
|
4655
4655
|
controlEvents: {
|
|
4656
4656
|
onFocusin(_) {
|
|
4657
|
-
|
|
4657
|
+
M.onControlFocusin(_);
|
|
4658
4658
|
},
|
|
4659
4659
|
onFocusout(_) {
|
|
4660
|
-
|
|
4660
|
+
M.onControlFocusout(_, () => {
|
|
4661
4661
|
pi(), pe();
|
|
4662
4662
|
});
|
|
4663
4663
|
},
|
|
4664
4664
|
onClick(_) {
|
|
4665
4665
|
var he;
|
|
4666
4666
|
if (Zt(_), m !== !0 && o.value === !0) {
|
|
4667
|
-
pe(), (he =
|
|
4667
|
+
pe(), (he = E.value) == null || he.focus();
|
|
4668
4668
|
return;
|
|
4669
4669
|
}
|
|
4670
4670
|
Se(_);
|
|
@@ -4674,14 +4674,14 @@ const zo = Je({
|
|
|
4674
4674
|
const he = es(), me = _ === !0 || s.value !== !0 || m !== !0;
|
|
4675
4675
|
if (i.useInput === !0)
|
|
4676
4676
|
he.push(Yr(_, me));
|
|
4677
|
-
else if (
|
|
4677
|
+
else if (M.editable.value === !0) {
|
|
4678
4678
|
const $e = me === !0 ? _t.value : void 0;
|
|
4679
4679
|
he.push(
|
|
4680
4680
|
O("input", {
|
|
4681
|
-
ref: me === !0 ?
|
|
4681
|
+
ref: me === !0 ? E : void 0,
|
|
4682
4682
|
key: "d_t",
|
|
4683
4683
|
class: "q-select__focus-target",
|
|
4684
|
-
id: me === !0 ?
|
|
4684
|
+
id: me === !0 ? M.targetUid.value : void 0,
|
|
4685
4685
|
value: et.value,
|
|
4686
4686
|
readonly: !0,
|
|
4687
4687
|
"data-autofocus": _ === !0 || i.autofocus === !0 || void 0,
|
|
@@ -4699,21 +4699,21 @@ const zo = Je({
|
|
|
4699
4699
|
})
|
|
4700
4700
|
);
|
|
4701
4701
|
}
|
|
4702
|
-
if (
|
|
4702
|
+
if (B.value !== void 0 && i.disable !== !0 && we.value.length !== 0) {
|
|
4703
4703
|
const $e = we.value.map((mt) => O("option", { value: mt, selected: !0 }));
|
|
4704
4704
|
he.push(
|
|
4705
4705
|
O("select", {
|
|
4706
4706
|
class: "hidden",
|
|
4707
|
-
name:
|
|
4707
|
+
name: B.value,
|
|
4708
4708
|
multiple: i.multiple
|
|
4709
4709
|
}, $e)
|
|
4710
4710
|
);
|
|
4711
4711
|
}
|
|
4712
|
-
const _e = i.useInput === !0 || me !== !0 ? void 0 :
|
|
4712
|
+
const _e = i.useInput === !0 || me !== !0 ? void 0 : M.splitAttrs.attributes.value;
|
|
4713
4713
|
return O("div", {
|
|
4714
4714
|
class: "q-field__native row items-center",
|
|
4715
4715
|
..._e,
|
|
4716
|
-
...
|
|
4716
|
+
...M.splitAttrs.listeners.value
|
|
4717
4717
|
}, he);
|
|
4718
4718
|
},
|
|
4719
4719
|
getInnerAppend: () => i.loading !== !0 && c.value !== !0 && i.hideDropdownIcon !== !0 ? [
|
|
@@ -4722,7 +4722,7 @@ const zo = Je({
|
|
|
4722
4722
|
name: gi.value
|
|
4723
4723
|
})
|
|
4724
4724
|
] : null
|
|
4725
|
-
}), dc(
|
|
4725
|
+
}), dc(M);
|
|
4726
4726
|
}
|
|
4727
4727
|
}), jb = /* @__PURE__ */ Pt({
|
|
4728
4728
|
__name: "QuasarEnumField",
|
|
@@ -4762,9 +4762,9 @@ const zo = Je({
|
|
|
4762
4762
|
// We control this via useFilter
|
|
4763
4763
|
hideSelected: C,
|
|
4764
4764
|
// We control this via useFilter
|
|
4765
|
-
...
|
|
4765
|
+
...E
|
|
4766
4766
|
} = g;
|
|
4767
|
-
return
|
|
4767
|
+
return E;
|
|
4768
4768
|
}), h = b(() => {
|
|
4769
4769
|
if (!t.schema.enum) return [];
|
|
4770
4770
|
const g = t.schema["x-enum-labels"];
|
|
@@ -5011,118 +5011,118 @@ const It = Je({
|
|
|
5011
5011
|
keyCodes: a.value === !0 ? [13, 32] : [13],
|
|
5012
5012
|
...i.ripple === !0 ? {} : i.ripple
|
|
5013
5013
|
}), v = b(() => ({ center: i.round })), x = b(() => {
|
|
5014
|
-
const
|
|
5015
|
-
return
|
|
5014
|
+
const w = Math.max(0, Math.min(100, i.percentage));
|
|
5015
|
+
return w > 0 ? { transition: "transform 0.6s", transform: `translateX(${w - 100}%)` } : {};
|
|
5016
5016
|
}), C = b(() => {
|
|
5017
5017
|
if (i.loading === !0)
|
|
5018
5018
|
return {
|
|
5019
|
-
onMousedown:
|
|
5020
|
-
onTouchstart:
|
|
5021
|
-
onClick:
|
|
5022
|
-
onKeydown:
|
|
5023
|
-
onKeyup:
|
|
5019
|
+
onMousedown: D,
|
|
5020
|
+
onTouchstart: D,
|
|
5021
|
+
onClick: D,
|
|
5022
|
+
onKeydown: D,
|
|
5023
|
+
onKeyup: D
|
|
5024
5024
|
};
|
|
5025
5025
|
if (h.value === !0) {
|
|
5026
|
-
const
|
|
5026
|
+
const w = {
|
|
5027
5027
|
onClick: q,
|
|
5028
|
-
onKeydown:
|
|
5029
|
-
onMousedown:
|
|
5028
|
+
onKeydown: F,
|
|
5029
|
+
onMousedown: B
|
|
5030
5030
|
};
|
|
5031
5031
|
if (n.$q.platform.has.touch === !0) {
|
|
5032
|
-
const
|
|
5033
|
-
|
|
5032
|
+
const A = i.onTouchstart !== void 0 ? "" : "Passive";
|
|
5033
|
+
w[`onTouchstart${A}`] = V;
|
|
5034
5034
|
}
|
|
5035
|
-
return
|
|
5035
|
+
return w;
|
|
5036
5036
|
}
|
|
5037
5037
|
return {
|
|
5038
5038
|
// needed; especially for disabled <a> tags
|
|
5039
5039
|
onClick: ct
|
|
5040
5040
|
};
|
|
5041
|
-
}),
|
|
5041
|
+
}), E = b(() => ({
|
|
5042
5042
|
ref: f,
|
|
5043
5043
|
class: "q-btn q-btn-item non-selectable no-outline " + r.value,
|
|
5044
5044
|
style: o.value,
|
|
5045
5045
|
...l.value,
|
|
5046
5046
|
...C.value
|
|
5047
5047
|
}));
|
|
5048
|
-
function q(
|
|
5048
|
+
function q(w) {
|
|
5049
5049
|
if (f.value !== null) {
|
|
5050
|
-
if (
|
|
5051
|
-
if (
|
|
5052
|
-
const
|
|
5053
|
-
if (i.type === "submit" &&
|
|
5054
|
-
|
|
5050
|
+
if (w !== void 0) {
|
|
5051
|
+
if (w.defaultPrevented === !0) return;
|
|
5052
|
+
const A = document.activeElement;
|
|
5053
|
+
if (i.type === "submit" && A !== document.body && f.value.contains(A) === !1 && A.contains(f.value) === !1) {
|
|
5054
|
+
w.qAvoidFocus !== !0 && f.value.focus();
|
|
5055
5055
|
const H = () => {
|
|
5056
|
-
var
|
|
5057
|
-
document.removeEventListener("keydown", ct, !0), document.removeEventListener("keyup", H, vi), (
|
|
5056
|
+
var I;
|
|
5057
|
+
document.removeEventListener("keydown", ct, !0), document.removeEventListener("keyup", H, vi), (I = f.value) == null || I.removeEventListener("blur", H, vi);
|
|
5058
5058
|
};
|
|
5059
5059
|
document.addEventListener("keydown", ct, !0), document.addEventListener("keyup", H, vi), f.value.addEventListener("blur", H, vi);
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
|
-
c(
|
|
5062
|
+
c(w);
|
|
5063
5063
|
}
|
|
5064
5064
|
}
|
|
5065
|
-
function
|
|
5066
|
-
f.value !== null && (t("keydown",
|
|
5065
|
+
function F(w) {
|
|
5066
|
+
f.value !== null && (t("keydown", w), an(w, [13, 32]) === !0 && dr !== f.value && (dr !== null && R(), w.defaultPrevented !== !0 && (w.qAvoidFocus !== !0 && f.value.focus(), dr = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("keyup", P, !0), f.value.addEventListener("blur", P, vi)), ct(w)));
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5069
|
-
f.value !== null && (t("touchstart",
|
|
5068
|
+
function V(w) {
|
|
5069
|
+
f.value !== null && (t("touchstart", w), w.defaultPrevented !== !0 && (fr !== f.value && (fr !== null && R(), fr = f.value, m = w.target, m.addEventListener("touchcancel", P, vi), m.addEventListener("touchend", P, vi)), p = !0, g !== null && clearTimeout(g), g = setTimeout(() => {
|
|
5070
5070
|
g = null, p = !1;
|
|
5071
5071
|
}, 200)));
|
|
5072
5072
|
}
|
|
5073
|
-
function
|
|
5074
|
-
f.value !== null && (
|
|
5073
|
+
function B(w) {
|
|
5074
|
+
f.value !== null && (w.qSkipRipple = p === !0, t("mousedown", w), w.defaultPrevented !== !0 && mr !== f.value && (mr !== null && R(), mr = f.value, f.value.classList.add("q-btn--active"), document.addEventListener("mouseup", P, vi)));
|
|
5075
5075
|
}
|
|
5076
|
-
function P(
|
|
5077
|
-
if (f.value !== null && !((
|
|
5078
|
-
if ((
|
|
5079
|
-
if (dr === f.value && an(
|
|
5080
|
-
const
|
|
5081
|
-
|
|
5076
|
+
function P(w) {
|
|
5077
|
+
if (f.value !== null && !((w == null ? void 0 : w.type) === "blur" && document.activeElement === f.value)) {
|
|
5078
|
+
if ((w == null ? void 0 : w.type) === "keyup") {
|
|
5079
|
+
if (dr === f.value && an(w, [13, 32]) === !0) {
|
|
5080
|
+
const A = new MouseEvent("click", w);
|
|
5081
|
+
A.qKeyEvent = !0, w.defaultPrevented === !0 && Zt(A), w.cancelBubble === !0 && hi(A), f.value.dispatchEvent(A), ct(w), w.qKeyEvent = !0;
|
|
5082
5082
|
}
|
|
5083
|
-
t("keyup",
|
|
5083
|
+
t("keyup", w);
|
|
5084
5084
|
}
|
|
5085
5085
|
R();
|
|
5086
5086
|
}
|
|
5087
5087
|
}
|
|
5088
|
-
function R(
|
|
5089
|
-
var H,
|
|
5090
|
-
const
|
|
5091
|
-
|
|
5088
|
+
function R(w) {
|
|
5089
|
+
var H, I;
|
|
5090
|
+
const A = d.value;
|
|
5091
|
+
w !== !0 && (fr === f.value || mr === f.value) && A !== null && A !== document.activeElement && (A.setAttribute("tabindex", -1), A.focus()), fr === f.value && (m !== null && (m.removeEventListener("touchcancel", P, vi), m.removeEventListener("touchend", P, vi)), fr = m = null), mr === f.value && (document.removeEventListener("mouseup", P, vi), mr = null), dr === f.value && (document.removeEventListener("keyup", P, !0), (H = f.value) == null || H.removeEventListener("blur", P, vi), dr = null), (I = f.value) == null || I.classList.remove("q-btn--active");
|
|
5092
5092
|
}
|
|
5093
|
-
function w
|
|
5094
|
-
ct(
|
|
5093
|
+
function D(w) {
|
|
5094
|
+
ct(w), w.qSkipRipple = !0;
|
|
5095
5095
|
}
|
|
5096
5096
|
return ht(() => {
|
|
5097
5097
|
R(!0);
|
|
5098
5098
|
}), Object.assign(n, {
|
|
5099
|
-
click: (
|
|
5100
|
-
h.value === !0 && q(
|
|
5099
|
+
click: (w) => {
|
|
5100
|
+
h.value === !0 && q(w);
|
|
5101
5101
|
}
|
|
5102
5102
|
}), () => {
|
|
5103
|
-
let
|
|
5104
|
-
i.icon !== void 0 &&
|
|
5103
|
+
let w = [];
|
|
5104
|
+
i.icon !== void 0 && w.push(
|
|
5105
5105
|
O(kt, {
|
|
5106
5106
|
name: i.icon,
|
|
5107
5107
|
left: i.stack !== !0 && y.value === !0,
|
|
5108
5108
|
role: "img"
|
|
5109
5109
|
})
|
|
5110
|
-
), y.value === !0 &&
|
|
5110
|
+
), y.value === !0 && w.push(
|
|
5111
5111
|
O("span", { class: "block" }, [i.label])
|
|
5112
|
-
),
|
|
5112
|
+
), w = xn(e.default, w), i.iconRight !== void 0 && i.round === !1 && w.push(
|
|
5113
5113
|
O(kt, {
|
|
5114
5114
|
name: i.iconRight,
|
|
5115
5115
|
right: i.stack !== !0 && y.value === !0,
|
|
5116
5116
|
role: "img"
|
|
5117
5117
|
})
|
|
5118
5118
|
);
|
|
5119
|
-
const
|
|
5119
|
+
const A = [
|
|
5120
5120
|
O("span", {
|
|
5121
5121
|
class: "q-focus-helper",
|
|
5122
5122
|
ref: d
|
|
5123
5123
|
})
|
|
5124
5124
|
];
|
|
5125
|
-
return i.loading === !0 && i.percentage !== void 0 &&
|
|
5125
|
+
return i.loading === !0 && i.percentage !== void 0 && A.push(
|
|
5126
5126
|
O("span", {
|
|
5127
5127
|
class: "q-btn__progress absolute-full overflow-hidden" + (i.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
5128
5128
|
}, [
|
|
@@ -5131,11 +5131,11 @@ const It = Je({
|
|
|
5131
5131
|
style: x.value
|
|
5132
5132
|
})
|
|
5133
5133
|
])
|
|
5134
|
-
),
|
|
5134
|
+
), A.push(
|
|
5135
5135
|
O("span", {
|
|
5136
5136
|
class: "q-btn__content text-center col items-center q-anchor--skip " + s.value
|
|
5137
|
-
},
|
|
5138
|
-
), i.loading !== null &&
|
|
5137
|
+
}, w)
|
|
5138
|
+
), i.loading !== null && A.push(
|
|
5139
5139
|
O(fi, {
|
|
5140
5140
|
name: "q-transition--fade"
|
|
5141
5141
|
}, () => i.loading === !0 ? [
|
|
@@ -5147,8 +5147,8 @@ const It = Je({
|
|
|
5147
5147
|
), Rn(
|
|
5148
5148
|
O(
|
|
5149
5149
|
u.value,
|
|
5150
|
-
|
|
5151
|
-
|
|
5150
|
+
E.value,
|
|
5151
|
+
A
|
|
5152
5152
|
),
|
|
5153
5153
|
[[
|
|
5154
5154
|
gc,
|
|
@@ -6038,12 +6038,12 @@ const fg = Je({
|
|
|
6038
6038
|
setup(i, { slots: e, emit: t }) {
|
|
6039
6039
|
const { proxy: n } = je(), { $q: r } = n, o = Ji(i, r), { getCache: s } = e1(), { tabindex: l, headerClass: a, getLocale: u, getCurrentDate: c } = sg(i, r);
|
|
6040
6040
|
let h;
|
|
6041
|
-
const f = Dm(i), d = mc(f), m = G(null), p = G(Xe()), g = G(u()), y = b(() => Xe()), k = b(() => u()), v = b(() => c()), x = G(Q(p.value, g.value)), C = G(i.defaultView),
|
|
6041
|
+
const f = Dm(i), d = mc(f), m = G(null), p = G(Xe()), g = G(u()), y = b(() => Xe()), k = b(() => u()), v = b(() => c()), x = G(Q(p.value, g.value)), C = G(i.defaultView), E = b(() => r.lang.rtl === !0 ? "right" : "left"), q = G(E.value), F = G(E.value), V = x.value.year, B = G(V - V % $i - (V < 0 ? $i : 0)), P = G(null), R = b(() => {
|
|
6042
6042
|
const S = i.landscape === !0 ? "landscape" : "portrait";
|
|
6043
6043
|
return `q-date q-date--${S} q-date--${S}-${i.minimal === !0 ? "minimal" : "standard"}` + (o.value === !0 ? " q-date--dark q-dark" : "") + (i.bordered === !0 ? " q-date--bordered" : "") + (i.square === !0 ? " q-date--square no-border-radius" : "") + (i.flat === !0 ? " q-date--flat no-shadow" : "") + (i.disable === !0 ? " disabled" : i.readonly === !0 ? " q-date--readonly" : "");
|
|
6044
|
-
}),
|
|
6044
|
+
}), D = b(() => i.color || "primary"), w = b(() => i.textColor || "white"), A = b(
|
|
6045
6045
|
() => i.emitImmediately === !0 && i.multiple !== !0 && i.range !== !0
|
|
6046
|
-
), H = b(() => Array.isArray(i.modelValue) === !0 ? i.modelValue : i.modelValue !== null && i.modelValue !== void 0 ? [i.modelValue] : []),
|
|
6046
|
+
), H = b(() => Array.isArray(i.modelValue) === !0 ? i.modelValue : i.modelValue !== null && i.modelValue !== void 0 ? [i.modelValue] : []), I = b(
|
|
6047
6047
|
() => H.value.filter((S) => typeof S == "string").map((S) => ut(S, p.value, g.value)).filter(
|
|
6048
6048
|
(S) => S.dateHash !== null && S.day !== null && S.month !== null && S.year !== null
|
|
6049
6049
|
)
|
|
@@ -6067,8 +6067,8 @@ const fg = Je({
|
|
|
6067
6067
|
W === void 0 ? g.value : W,
|
|
6068
6068
|
S.year,
|
|
6069
6069
|
S.timezoneOffset
|
|
6070
|
-
)),
|
|
6071
|
-
() =>
|
|
6070
|
+
)), M = b(
|
|
6071
|
+
() => I.value.length + N.value.reduce(
|
|
6072
6072
|
(S, L) => S + 1 + cg(
|
|
6073
6073
|
K.value(L.to),
|
|
6074
6074
|
K.value(L.from)
|
|
@@ -6082,22 +6082,22 @@ const fg = Je({
|
|
|
6082
6082
|
const W = P.value.init, ne = K.value(W);
|
|
6083
6083
|
return g.value.daysShort[ne.getDay()] + ", " + g.value.monthsShort[W.month - 1] + " " + W.day + pr + "?";
|
|
6084
6084
|
}
|
|
6085
|
-
if (
|
|
6085
|
+
if (M.value === 0)
|
|
6086
6086
|
return pr;
|
|
6087
|
-
if (
|
|
6088
|
-
return `${
|
|
6089
|
-
const S =
|
|
6087
|
+
if (M.value > 1)
|
|
6088
|
+
return `${M.value} ${g.value.pluralDay}`;
|
|
6089
|
+
const S = I.value[0], L = K.value(S);
|
|
6090
6090
|
return isNaN(L.valueOf()) === !0 ? pr : g.value.headerTitle !== void 0 ? g.value.headerTitle(L, S) : g.value.daysShort[L.getDay()] + ", " + g.value.monthsShort[S.month - 1] + " " + S.day;
|
|
6091
|
-
}),
|
|
6091
|
+
}), z = b(() => I.value.concat(N.value.map((L) => L.from)).sort((L, W) => L.year - W.year || L.month - W.month)[0]), J = b(() => I.value.concat(N.value.map((L) => L.to)).sort((L, W) => W.year - L.year || W.month - L.month)[0]), oe = b(() => {
|
|
6092
6092
|
if (i.subtitle !== void 0 && i.subtitle !== null && i.subtitle.length !== 0)
|
|
6093
6093
|
return i.subtitle;
|
|
6094
|
-
if (
|
|
6094
|
+
if (M.value === 0)
|
|
6095
6095
|
return pr;
|
|
6096
|
-
if (
|
|
6097
|
-
const S =
|
|
6096
|
+
if (M.value > 1) {
|
|
6097
|
+
const S = z.value, L = J.value, W = g.value.monthsShort;
|
|
6098
6098
|
return W[S.month - 1] + (S.year !== L.year ? " " + S.year + pr + W[L.month - 1] + " " : S.month !== L.month ? pr + W[L.month - 1] : "") + " " + L.year;
|
|
6099
6099
|
}
|
|
6100
|
-
return
|
|
6100
|
+
return I.value[0].year;
|
|
6101
6101
|
}), ce = b(() => {
|
|
6102
6102
|
const S = [r.iconSet.datetime.arrowLeft, r.iconSet.datetime.arrowRight];
|
|
6103
6103
|
return r.lang.rtl === !0 ? S.reverse() : S;
|
|
@@ -6125,7 +6125,7 @@ const fg = Je({
|
|
|
6125
6125
|
return Ie.value !== null && Ie.value.year >= x.value.year && (S.year.prev = !1, Ie.value.year === x.value.year && Ie.value.month >= x.value.month && (S.month.prev = !1)), Qe.value !== null && Qe.value.year <= x.value.year && (S.year.next = !1, Qe.value.year === x.value.year && Qe.value.month <= x.value.month && (S.month.next = !1)), S;
|
|
6126
6126
|
}), _t = b(() => {
|
|
6127
6127
|
const S = {};
|
|
6128
|
-
return
|
|
6128
|
+
return I.value.forEach((L) => {
|
|
6129
6129
|
const W = mn(L);
|
|
6130
6130
|
S[W] === void 0 && (S[W] = []), S[W].push(L.day);
|
|
6131
6131
|
}), S;
|
|
@@ -6211,8 +6211,8 @@ const fg = Je({
|
|
|
6211
6211
|
selected: !0,
|
|
6212
6212
|
unelevated: !0,
|
|
6213
6213
|
flat: !1,
|
|
6214
|
-
color:
|
|
6215
|
-
textColor:
|
|
6214
|
+
color: D.value,
|
|
6215
|
+
textColor: w.value
|
|
6216
6216
|
});
|
|
6217
6217
|
}), Yt.value[dt.value] !== void 0 && Yt.value[dt.value].forEach((pe) => {
|
|
6218
6218
|
if (pe.from !== void 0) {
|
|
@@ -6221,8 +6221,8 @@ const fg = Je({
|
|
|
6221
6221
|
Object.assign(S[pi], {
|
|
6222
6222
|
range: pe.range,
|
|
6223
6223
|
unelevated: !0,
|
|
6224
|
-
color:
|
|
6225
|
-
textColor:
|
|
6224
|
+
color: D.value,
|
|
6225
|
+
textColor: w.value
|
|
6226
6226
|
});
|
|
6227
6227
|
Object.assign(S[Se], {
|
|
6228
6228
|
rangeFrom: !0,
|
|
@@ -6237,8 +6237,8 @@ const fg = Je({
|
|
|
6237
6237
|
Object.assign(S[Ve], {
|
|
6238
6238
|
range: pe.range,
|
|
6239
6239
|
unelevated: !0,
|
|
6240
|
-
color:
|
|
6241
|
-
textColor:
|
|
6240
|
+
color: D.value,
|
|
6241
|
+
textColor: w.value
|
|
6242
6242
|
});
|
|
6243
6243
|
Object.assign(S[Se], {
|
|
6244
6244
|
flat: !1,
|
|
@@ -6250,14 +6250,14 @@ const fg = Je({
|
|
|
6250
6250
|
Object.assign(S[Ve], {
|
|
6251
6251
|
range: pe.range,
|
|
6252
6252
|
unelevated: !0,
|
|
6253
|
-
color:
|
|
6254
|
-
textColor:
|
|
6253
|
+
color: D.value,
|
|
6254
|
+
textColor: w.value
|
|
6255
6255
|
});
|
|
6256
6256
|
}
|
|
6257
6257
|
}), Bt.value !== void 0) {
|
|
6258
6258
|
const pe = fe + Bt.value.from - 1, Se = fe + Bt.value.to - 1;
|
|
6259
6259
|
for (let Ve = pe; Ve <= Se; Ve++)
|
|
6260
|
-
S[Ve].color =
|
|
6260
|
+
S[Ve].color = D.value, S[Ve].editRange = !0;
|
|
6261
6261
|
Bt.value.includeFrom === !0 && (S[pe].editRangeFrom = !0), Bt.value.includeTo === !0 && (S[Se].editRangeTo = !0);
|
|
6262
6262
|
}
|
|
6263
6263
|
x.value.year === v.value.year && x.value.month === v.value.month && (S[fe + v.value.day - 1].today = !0);
|
|
@@ -6375,17 +6375,17 @@ const fg = Je({
|
|
|
6375
6375
|
}
|
|
6376
6376
|
function be(S) {
|
|
6377
6377
|
let L = x.value.year, W = Number(x.value.month) + S;
|
|
6378
|
-
W === 13 ? (W = 1, L++) : W === 0 && (W = 12, L--), Rt(L, W),
|
|
6378
|
+
W === 13 ? (W = 1, L++) : W === 0 && (W = 12, L--), Rt(L, W), A.value === !0 && dn("month");
|
|
6379
6379
|
}
|
|
6380
6380
|
function Ce(S) {
|
|
6381
6381
|
const L = Number(x.value.year) + S;
|
|
6382
|
-
Rt(L, x.value.month),
|
|
6382
|
+
Rt(L, x.value.month), A.value === !0 && dn("year");
|
|
6383
6383
|
}
|
|
6384
6384
|
function Re(S) {
|
|
6385
|
-
Rt(S, x.value.month), C.value = i.defaultView === "Years" ? "Months" : "Calendar",
|
|
6385
|
+
Rt(S, x.value.month), C.value = i.defaultView === "Years" ? "Months" : "Calendar", A.value === !0 && dn("year");
|
|
6386
6386
|
}
|
|
6387
6387
|
function Nt(S) {
|
|
6388
|
-
Rt(x.value.year, S), C.value = "Calendar",
|
|
6388
|
+
Rt(x.value.year, S), C.value = "Calendar", A.value === !0 && dn("month");
|
|
6389
6389
|
}
|
|
6390
6390
|
function De(S, L) {
|
|
6391
6391
|
const W = _t.value[L];
|
|
@@ -6400,8 +6400,8 @@ const fg = Je({
|
|
|
6400
6400
|
Object.assign(x.value, { hour: fe, minute: Te, second: pe, millisecond: Se, timezoneOffset: Ve, timeHash: pi });
|
|
6401
6401
|
}
|
|
6402
6402
|
const ne = S + "/" + Fe(L) + "/01";
|
|
6403
|
-
ne !== x.value.dateHash && (q.value = x.value.dateHash < ne == (r.lang.rtl !== !0) ? "left" : "right", S !== x.value.year && (
|
|
6404
|
-
|
|
6403
|
+
ne !== x.value.dateHash && (q.value = x.value.dateHash < ne == (r.lang.rtl !== !0) ? "left" : "right", S !== x.value.year && (F.value = q.value), rt(() => {
|
|
6404
|
+
B.value = S - S % $i - (S < 0 ? $i : 0), Object.assign(x.value, {
|
|
6405
6405
|
year: S,
|
|
6406
6406
|
month: L,
|
|
6407
6407
|
day: 1,
|
|
@@ -6414,7 +6414,7 @@ const fg = Je({
|
|
|
6414
6414
|
ve(ne), t("update:modelValue", ne, fe, Te);
|
|
6415
6415
|
}
|
|
6416
6416
|
function dn(S) {
|
|
6417
|
-
const L =
|
|
6417
|
+
const L = I.value[0] !== void 0 && I.value[0].dateHash !== null ? { ...I.value[0] } : { ...x.value };
|
|
6418
6418
|
rt(() => {
|
|
6419
6419
|
L.year = x.value.year, L.month = x.value.month;
|
|
6420
6420
|
const W = i.calendar !== "persian" ? new Date(L.year, L.month, 0).getDate() : Ls(L.year, L.month);
|
|
@@ -6443,7 +6443,7 @@ const fg = Je({
|
|
|
6443
6443
|
let L;
|
|
6444
6444
|
if (i.multiple === !0)
|
|
6445
6445
|
if (S.from !== void 0) {
|
|
6446
|
-
const W = Zi(S.from), ne = Zi(S.to), fe =
|
|
6446
|
+
const W = Zi(S.from), ne = Zi(S.to), fe = I.value.filter((pe) => pe.dateHash < W || pe.dateHash > ne), Te = N.value.filter(({ from: pe, to: Se }) => Se.dateHash < W || pe.dateHash > ne);
|
|
6447
6447
|
L = fe.concat(Te).concat(S).map((pe) => Xi(pe));
|
|
6448
6448
|
} else {
|
|
6449
6449
|
const W = H.value.slice();
|
|
@@ -6465,7 +6465,7 @@ const fg = Je({
|
|
|
6465
6465
|
Ln(L, "remove", S);
|
|
6466
6466
|
}
|
|
6467
6467
|
function In(S, L, W) {
|
|
6468
|
-
const ne =
|
|
6468
|
+
const ne = I.value.concat(N.value).map((Te) => Xi(Te, S, L)).filter((Te) => Te.from !== void 0 ? Te.from.dateHash !== null && Te.to.dateHash !== null : Te.dateHash !== null), fe = (i.multiple === !0 ? ne : ne[0]) || null;
|
|
6469
6469
|
ve(fe), t("update:modelValue", fe, W);
|
|
6470
6470
|
}
|
|
6471
6471
|
function Vn() {
|
|
@@ -6603,7 +6603,7 @@ const fg = Je({
|
|
|
6603
6603
|
label: x.value.year,
|
|
6604
6604
|
type: "Years",
|
|
6605
6605
|
key: x.value.year,
|
|
6606
|
-
dir:
|
|
6606
|
+
dir: F.value,
|
|
6607
6607
|
goTo: Ce,
|
|
6608
6608
|
boundaries: wt.value.year,
|
|
6609
6609
|
cls: ""
|
|
@@ -6657,8 +6657,8 @@ const fg = Je({
|
|
|
6657
6657
|
flat: Te !== !0,
|
|
6658
6658
|
label: ne,
|
|
6659
6659
|
unelevated: Te,
|
|
6660
|
-
color: Te === !0 ?
|
|
6661
|
-
textColor: Te === !0 ?
|
|
6660
|
+
color: Te === !0 ? D.value : null,
|
|
6661
|
+
textColor: Te === !0 ? w.value : null,
|
|
6662
6662
|
tabindex: l.value,
|
|
6663
6663
|
disable: L(fe + 1),
|
|
6664
6664
|
...s("month#" + fe, { onClick: () => {
|
|
@@ -6673,7 +6673,7 @@ const fg = Je({
|
|
|
6673
6673
|
label: x.value.year,
|
|
6674
6674
|
type: "Years",
|
|
6675
6675
|
key: x.value.year,
|
|
6676
|
-
dir:
|
|
6676
|
+
dir: F.value,
|
|
6677
6677
|
goTo: Ce,
|
|
6678
6678
|
boundaries: wt.value.year,
|
|
6679
6679
|
cls: " col"
|
|
@@ -6685,7 +6685,7 @@ const fg = Je({
|
|
|
6685
6685
|
}, W);
|
|
6686
6686
|
},
|
|
6687
6687
|
Years() {
|
|
6688
|
-
const S =
|
|
6688
|
+
const S = B.value, L = S + $i, W = [], ne = (fe) => Ie.value !== null && Ie.value.year > fe || Qe.value !== null && Qe.value.year < fe;
|
|
6689
6689
|
for (let fe = S; fe <= L; fe++) {
|
|
6690
6690
|
const Te = x.value.year === fe;
|
|
6691
6691
|
W.push(
|
|
@@ -6699,8 +6699,8 @@ const fg = Je({
|
|
|
6699
6699
|
label: fe,
|
|
6700
6700
|
dense: !0,
|
|
6701
6701
|
unelevated: Te,
|
|
6702
|
-
color: Te === !0 ?
|
|
6703
|
-
textColor: Te === !0 ?
|
|
6702
|
+
color: Te === !0 ? D.value : null,
|
|
6703
|
+
textColor: Te === !0 ? w.value : null,
|
|
6704
6704
|
tabindex: l.value,
|
|
6705
6705
|
disable: ne(fe),
|
|
6706
6706
|
...s("yr#" + fe, { onClick: () => {
|
|
@@ -6725,7 +6725,7 @@ const fg = Je({
|
|
|
6725
6725
|
tabindex: l.value,
|
|
6726
6726
|
disable: ne(S),
|
|
6727
6727
|
...s("y-", { onClick: () => {
|
|
6728
|
-
|
|
6728
|
+
B.value -= $i;
|
|
6729
6729
|
} })
|
|
6730
6730
|
})
|
|
6731
6731
|
]),
|
|
@@ -6744,7 +6744,7 @@ const fg = Je({
|
|
|
6744
6744
|
tabindex: l.value,
|
|
6745
6745
|
disable: ne(L),
|
|
6746
6746
|
...s("y+", { onClick: () => {
|
|
6747
|
-
|
|
6747
|
+
B.value += $i;
|
|
6748
6748
|
} })
|
|
6749
6749
|
})
|
|
6750
6750
|
])
|
|
@@ -7190,42 +7190,42 @@ const dg = Je({
|
|
|
7190
7190
|
// initial locale
|
|
7191
7191
|
i.calendar,
|
|
7192
7192
|
y.value
|
|
7193
|
-
), v = G(b1(k)), x = G(k), C = G(k.hour === null || k.hour < 12),
|
|
7193
|
+
), v = G(b1(k)), x = G(k), C = G(k.hour === null || k.hour < 12), E = b(
|
|
7194
7194
|
() => `q-time q-time--${i.landscape === !0 ? "landscape" : "portrait"}` + (o.value === !0 ? " q-time--dark q-dark" : "") + (i.disable === !0 ? " disabled" : i.readonly === !0 ? " q-time--readonly" : "") + (i.bordered === !0 ? " q-time--bordered" : "") + (i.square === !0 ? " q-time--square no-border-radius" : "") + (i.flat === !0 ? " q-time--flat no-shadow" : "")
|
|
7195
7195
|
), q = b(() => {
|
|
7196
7196
|
const Q = x.value;
|
|
7197
7197
|
return {
|
|
7198
|
-
hour: Q.hour === null ? "--" :
|
|
7198
|
+
hour: Q.hour === null ? "--" : F.value === !0 ? Fe(Q.hour) : String(
|
|
7199
7199
|
C.value === !0 ? Q.hour === 0 ? 12 : Q.hour : Q.hour > 12 ? Q.hour - 12 : Q.hour
|
|
7200
7200
|
),
|
|
7201
7201
|
minute: Q.minute === null ? "--" : Fe(Q.minute),
|
|
7202
7202
|
second: Q.second === null ? "--" : Fe(Q.second)
|
|
7203
7203
|
};
|
|
7204
|
-
}),
|
|
7204
|
+
}), F = b(() => i.format24h !== null ? i.format24h : r.lang.date.format24h), V = b(() => {
|
|
7205
7205
|
const Q = v.value === "hour", $ = Q === !0 ? 12 : 60, be = x.value[v.value];
|
|
7206
7206
|
let Re = `rotate(${Math.round(be * (360 / $)) - 180}deg) translateX(-50%)`;
|
|
7207
|
-
return Q === !0 &&
|
|
7208
|
-
}),
|
|
7207
|
+
return Q === !0 && F.value === !0 && x.value.hour >= 12 && (Re += " scale(.7)"), { transform: Re };
|
|
7208
|
+
}), B = b(() => x.value.hour !== null), P = b(() => B.value === !0 && x.value.minute !== null), R = b(() => i.hourOptions !== void 0 ? (Q) => i.hourOptions.includes(Q) : i.options !== void 0 ? (Q) => i.options(Q, null, null) : null), D = b(() => i.minuteOptions !== void 0 ? (Q) => i.minuteOptions.includes(Q) : i.options !== void 0 ? (Q) => i.options(x.value.hour, Q, null) : null), w = b(() => i.secondOptions !== void 0 ? (Q) => i.secondOptions.includes(Q) : i.options !== void 0 ? (Q) => i.options(x.value.hour, x.value.minute, Q) : null), A = b(() => {
|
|
7209
7209
|
if (R.value === null)
|
|
7210
7210
|
return null;
|
|
7211
7211
|
const Q = T(0, 11, R.value), $ = T(12, 11, R.value);
|
|
7212
7212
|
return { am: Q, pm: $, values: Q.values.concat($.values) };
|
|
7213
|
-
}), H = b(() =>
|
|
7213
|
+
}), H = b(() => D.value !== null ? T(0, 59, D.value) : null), I = b(() => w.value !== null ? T(0, 59, w.value) : null), N = b(() => {
|
|
7214
7214
|
switch (v.value) {
|
|
7215
7215
|
case "hour":
|
|
7216
|
-
return
|
|
7216
|
+
return A.value;
|
|
7217
7217
|
case "minute":
|
|
7218
7218
|
return H.value;
|
|
7219
7219
|
case "second":
|
|
7220
|
-
return
|
|
7220
|
+
return I.value;
|
|
7221
7221
|
}
|
|
7222
7222
|
}), K = b(() => {
|
|
7223
7223
|
let Q, $, be = 0, Ce = 1;
|
|
7224
7224
|
const Re = N.value !== null ? N.value.values : void 0;
|
|
7225
|
-
v.value === "hour" ?
|
|
7225
|
+
v.value === "hour" ? F.value === !0 ? (Q = 0, $ = 23) : (Q = 0, $ = 11, C.value === !1 && (be = 12)) : (Q = 0, $ = 55, Ce = 5);
|
|
7226
7226
|
const Nt = [];
|
|
7227
7227
|
for (let De = Q, tt = Q; De <= $; De += Ce, tt++) {
|
|
7228
|
-
const Rt = De + be, Ln = (Re == null ? void 0 : Re.includes(Rt)) === !1, dn = v.value === "hour" && De === 0 ?
|
|
7228
|
+
const Rt = De + be, Ln = (Re == null ? void 0 : Re.includes(Rt)) === !1, dn = v.value === "hour" && De === 0 ? F.value === !0 ? "00" : "12" : De;
|
|
7229
7229
|
Nt.push({ val: Rt, index: tt, disable: Ln, label: dn });
|
|
7230
7230
|
}
|
|
7231
7231
|
return Nt;
|
|
@@ -7253,7 +7253,7 @@ const dg = Je({
|
|
|
7253
7253
|
qe();
|
|
7254
7254
|
});
|
|
7255
7255
|
});
|
|
7256
|
-
function
|
|
7256
|
+
function M() {
|
|
7257
7257
|
const Q = {
|
|
7258
7258
|
...u(),
|
|
7259
7259
|
...x1()
|
|
@@ -7276,7 +7276,7 @@ const dg = Je({
|
|
|
7276
7276
|
threshold: $ + 1
|
|
7277
7277
|
};
|
|
7278
7278
|
}
|
|
7279
|
-
function
|
|
7279
|
+
function z(Q, $, be) {
|
|
7280
7280
|
const Ce = Math.abs(Q - $);
|
|
7281
7281
|
return Math.min(Ce, be - Ce);
|
|
7282
7282
|
}
|
|
@@ -7284,7 +7284,7 @@ const dg = Je({
|
|
|
7284
7284
|
if (Q === $)
|
|
7285
7285
|
return $;
|
|
7286
7286
|
if (Q < $ || Q > be)
|
|
7287
|
-
return
|
|
7287
|
+
return z(Q, $, Re) <= z(Q, be, Re) ? $ : be;
|
|
7288
7288
|
const Nt = Ce.findIndex((Rt) => Q <= Rt), De = Ce[Nt - 1], tt = Ce[Nt];
|
|
7289
7289
|
return Q - De <= tt - Q ? De : tt;
|
|
7290
7290
|
}
|
|
@@ -7299,7 +7299,7 @@ const dg = Je({
|
|
|
7299
7299
|
return no(i.defaultDate, "YYYY/MM/DD", void 0, i.calendar);
|
|
7300
7300
|
}
|
|
7301
7301
|
function se() {
|
|
7302
|
-
return pc(n) === !0 || N.value !== null && (N.value.values.length === 0 || v.value === "hour" &&
|
|
7302
|
+
return pc(n) === !0 || N.value !== null && (N.value.values.length === 0 || v.value === "hour" && F.value !== !0 && A.value[C.value === !0 ? "am" : "pm"].values.length === 0);
|
|
7303
7303
|
}
|
|
7304
7304
|
function Be() {
|
|
7305
7305
|
const Q = m.value, { top: $, left: be, width: Ce } = Q.getBoundingClientRect(), Re = Ce / 2;
|
|
@@ -7327,17 +7327,17 @@ const dg = Je({
|
|
|
7327
7327
|
);
|
|
7328
7328
|
let De, tt = Math.asin(Re / Nt) * (180 / Math.PI);
|
|
7329
7329
|
if (Ce.top < $.top ? tt = $.left < Ce.left ? 90 - tt : 270 + tt : tt = $.left < Ce.left ? tt + 90 : 270 - tt, v.value === "hour") {
|
|
7330
|
-
if (De = tt / 30,
|
|
7331
|
-
const Rt =
|
|
7330
|
+
if (De = tt / 30, A.value !== null) {
|
|
7331
|
+
const Rt = F.value !== !0 ? C.value === !0 : A.value.am.values.length !== 0 && A.value.pm.values.length !== 0 ? Nt >= $.dist : A.value.am.values.length !== 0;
|
|
7332
7332
|
De = J(
|
|
7333
7333
|
De + (Rt === !0 ? 0 : 12),
|
|
7334
|
-
|
|
7334
|
+
A.value[Rt === !0 ? "am" : "pm"]
|
|
7335
7335
|
);
|
|
7336
7336
|
} else
|
|
7337
|
-
De = Math.round(De),
|
|
7338
|
-
|
|
7337
|
+
De = Math.round(De), F.value === !0 ? Nt < $.dist ? De < 12 && (De += 12) : De === 12 && (De = 0) : C.value === !0 && De === 12 ? De = 0 : C.value === !1 && De !== 12 && (De += 12);
|
|
7338
|
+
F.value === !0 && (C.value = De < 12);
|
|
7339
7339
|
} else
|
|
7340
|
-
De = Math.round(tt / 6) % 60, v.value === "minute" && H.value !== null ? De = J(De, H.value) : v.value === "second" &&
|
|
7340
|
+
De = Math.round(tt / 6) % 60, v.value === "minute" && H.value !== null ? De = J(De, H.value) : v.value === "second" && I.value !== null && (De = J(De, I.value));
|
|
7341
7341
|
return be !== De && ve[v.value](De), De;
|
|
7342
7342
|
}
|
|
7343
7343
|
const Qe = {
|
|
@@ -7368,8 +7368,8 @@ const dg = Je({
|
|
|
7368
7368
|
v.value = "hour";
|
|
7369
7369
|
else if ([37, 39].includes(Q.keyCode)) {
|
|
7370
7370
|
const $ = Q.keyCode === 37 ? -1 : 1;
|
|
7371
|
-
if (
|
|
7372
|
-
const be =
|
|
7371
|
+
if (A.value !== null) {
|
|
7372
|
+
const be = F.value === !0 ? A.value.values : A.value[C.value === !0 ? "am" : "pm"].values;
|
|
7373
7373
|
if (be.length === 0) return;
|
|
7374
7374
|
if (x.value.hour === null)
|
|
7375
7375
|
Gt(be[0]);
|
|
@@ -7378,7 +7378,7 @@ const dg = Je({
|
|
|
7378
7378
|
Gt(be[Ce]);
|
|
7379
7379
|
}
|
|
7380
7380
|
} else {
|
|
7381
|
-
const be =
|
|
7381
|
+
const be = F.value === !0 ? 24 : 12, Ce = F.value !== !0 && C.value === !1 ? 12 : 0, Re = x.value.hour === null ? -$ : x.value.hour;
|
|
7382
7382
|
Gt(Ce + (24 + Re + $) % be);
|
|
7383
7383
|
}
|
|
7384
7384
|
}
|
|
@@ -7408,8 +7408,8 @@ const dg = Je({
|
|
|
7408
7408
|
v.value = "second";
|
|
7409
7409
|
else if ([37, 39].includes(Q.keyCode)) {
|
|
7410
7410
|
const $ = Q.keyCode === 37 ? -1 : 1;
|
|
7411
|
-
if (
|
|
7412
|
-
const be =
|
|
7411
|
+
if (I.value !== null) {
|
|
7412
|
+
const be = I.value.values;
|
|
7413
7413
|
if (be.length === 0) return;
|
|
7414
7414
|
if (x.value.seconds === null)
|
|
7415
7415
|
X(be[0]);
|
|
@@ -7452,11 +7452,11 @@ const dg = Je({
|
|
|
7452
7452
|
x.value = no(), ze("hour");
|
|
7453
7453
|
return;
|
|
7454
7454
|
}
|
|
7455
|
-
if (
|
|
7455
|
+
if (D.value !== null && D.value(x.value.minute) !== !0) {
|
|
7456
7456
|
x.value.minute = null, x.value.second = null, ze("minute");
|
|
7457
7457
|
return;
|
|
7458
7458
|
}
|
|
7459
|
-
if (i.withSeconds === !0 &&
|
|
7459
|
+
if (i.withSeconds === !0 && w.value !== null && w.value(x.value.second) !== !0) {
|
|
7460
7460
|
x.value.second = null, ze("second");
|
|
7461
7461
|
return;
|
|
7462
7462
|
}
|
|
@@ -7491,7 +7491,7 @@ const dg = Je({
|
|
|
7491
7491
|
O("div", ":"),
|
|
7492
7492
|
O(
|
|
7493
7493
|
"div",
|
|
7494
|
-
|
|
7494
|
+
B.value === !0 ? {
|
|
7495
7495
|
class: "q-time__link " + (v.value === "minute" ? "q-time__link--active" : "cursor-pointer"),
|
|
7496
7496
|
tabindex: s.value,
|
|
7497
7497
|
onKeyup: gi,
|
|
@@ -7519,7 +7519,7 @@ const dg = Je({
|
|
|
7519
7519
|
dir: "ltr"
|
|
7520
7520
|
}, Q)
|
|
7521
7521
|
];
|
|
7522
|
-
return
|
|
7522
|
+
return F.value === !1 && $.push(
|
|
7523
7523
|
O("div", {
|
|
7524
7524
|
class: "q-time__header-ampm column items-between no-wrap"
|
|
7525
7525
|
}, [
|
|
@@ -7564,7 +7564,7 @@ const dg = Je({
|
|
|
7564
7564
|
O("div", { class: "q-time__clock-circle fit" }, [
|
|
7565
7565
|
O("div", {
|
|
7566
7566
|
class: "q-time__clock-pointer" + (x.value[v.value] === null ? " hidden" : i.color !== void 0 ? ` text-${i.color}` : ""),
|
|
7567
|
-
style:
|
|
7567
|
+
style: V.value
|
|
7568
7568
|
}),
|
|
7569
7569
|
K.value.map(($) => O("div", {
|
|
7570
7570
|
class: `q-time__clock-position row flex-center q-time__clock-pos-${$.index}` + ($.val === Q ? " q-time__clock-position--active " + l.value : $.disable === !0 ? " q-time__clock-position--disable" : "")
|
|
@@ -7584,16 +7584,16 @@ const dg = Je({
|
|
|
7584
7584
|
color: i.color,
|
|
7585
7585
|
textColor: i.textColor,
|
|
7586
7586
|
tabindex: s.value,
|
|
7587
|
-
onClick:
|
|
7587
|
+
onClick: M
|
|
7588
7588
|
}) : null
|
|
7589
7589
|
]);
|
|
7590
7590
|
}
|
|
7591
|
-
return n.proxy.setNow =
|
|
7591
|
+
return n.proxy.setNow = M, () => {
|
|
7592
7592
|
const Q = [ut()], $ = qt(e.default);
|
|
7593
7593
|
return $ !== void 0 && Q.push(
|
|
7594
7594
|
O("div", { class: "q-time__actions" }, $)
|
|
7595
7595
|
), i.name !== void 0 && i.disable !== !0 && h(Q, "push"), O("div", {
|
|
7596
|
-
class:
|
|
7596
|
+
class: E.value,
|
|
7597
7597
|
tabindex: -1
|
|
7598
7598
|
}, [
|
|
7599
7599
|
Xe(),
|
|
@@ -7834,14 +7834,14 @@ const nf = /* @__PURE__ */ Ut(k1, [["render", S1], ["__file", "/Users/zachsherbo
|
|
|
7834
7834
|
}), d = b(() => a.value.mask || `${h.value} ${f.value}`), m = b(() => a.value.format24h || !1), p = b(() => a.value.withSeconds || !1), y = { props: t, value: n, label: r, hint: o, errorMessage: s, fieldId: l, quasarProps: a, fieldGap: u, formContext: c, dateMask: h, timeMask: f, fullMask: d, use24Hour: m, withSeconds: p, setNow: () => {
|
|
7835
7835
|
const k = /* @__PURE__ */ new Date(), v = k.getFullYear(), x = String(k.getMonth() + 1).padStart(2, "0"), C = String(k.getDate()).padStart(2, "0");
|
|
7836
7836
|
if (m.value) {
|
|
7837
|
-
const
|
|
7838
|
-
n.value = `${v}-${x}-${C} ${
|
|
7837
|
+
const E = String(k.getHours()).padStart(2, "0"), q = String(k.getMinutes()).padStart(2, "0");
|
|
7838
|
+
n.value = `${v}-${x}-${C} ${E}:${q}`;
|
|
7839
7839
|
} else {
|
|
7840
|
-
let
|
|
7841
|
-
const q =
|
|
7842
|
-
|
|
7843
|
-
const
|
|
7844
|
-
n.value = `${v}-${x}-${C} ${
|
|
7840
|
+
let E = k.getHours();
|
|
7841
|
+
const q = E >= 12 ? "PM" : "AM";
|
|
7842
|
+
E = E % 12 || 12;
|
|
7843
|
+
const F = String(k.getMinutes()).padStart(2, "0");
|
|
7844
|
+
n.value = `${v}-${x}-${C} ${E}:${F} ${q}`;
|
|
7845
7845
|
}
|
|
7846
7846
|
}, get QInput() {
|
|
7847
7847
|
return ar;
|
|
@@ -8082,10 +8082,10 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8082
8082
|
}), p = b(
|
|
8083
8083
|
() => i.disable !== !0 && (i.href !== void 0 || i.to !== void 0 && i.to !== null && i.to !== "")
|
|
8084
8084
|
), g = b(() => {
|
|
8085
|
-
const
|
|
8085
|
+
const I = {};
|
|
8086
8086
|
return q1.forEach((N) => {
|
|
8087
|
-
|
|
8088
|
-
}),
|
|
8087
|
+
I[N] = i[N];
|
|
8088
|
+
}), I;
|
|
8089
8089
|
}), y = b(
|
|
8090
8090
|
() => p.value === !0 || i.expandIconToggle !== !0
|
|
8091
8091
|
), k = b(() => i.expandedIcon !== void 0 && o.value === !0 ? i.expandedIcon : i.expandIcon || n.iconSet.expansionItem[i.denseToggle === !0 ? "denseIcon" : "icon"]), v = b(
|
|
@@ -8097,36 +8097,36 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8097
8097
|
show: a,
|
|
8098
8098
|
hide: u
|
|
8099
8099
|
})), C = b(() => {
|
|
8100
|
-
const
|
|
8100
|
+
const I = i.toggleAriaLabel !== void 0 ? i.toggleAriaLabel : n.lang.label[o.value === !0 ? "collapse" : "expand"](i.label);
|
|
8101
8101
|
return {
|
|
8102
8102
|
role: "button",
|
|
8103
8103
|
"aria-expanded": o.value === !0 ? "true" : "false",
|
|
8104
8104
|
"aria-controls": l.value,
|
|
8105
|
-
"aria-label":
|
|
8105
|
+
"aria-label": I
|
|
8106
8106
|
};
|
|
8107
8107
|
});
|
|
8108
|
-
ye(() => i.group, (
|
|
8109
|
-
f == null || f(),
|
|
8108
|
+
ye(() => i.group, (I) => {
|
|
8109
|
+
f == null || f(), I !== void 0 && P();
|
|
8110
8110
|
});
|
|
8111
|
-
function
|
|
8112
|
-
p.value !== !0 && c(
|
|
8111
|
+
function E(I) {
|
|
8112
|
+
p.value !== !0 && c(I), t("click", I);
|
|
8113
8113
|
}
|
|
8114
|
-
function q(
|
|
8115
|
-
|
|
8114
|
+
function q(I) {
|
|
8115
|
+
I.keyCode === 13 && F(I, !0);
|
|
8116
8116
|
}
|
|
8117
|
-
function
|
|
8117
|
+
function F(I, N) {
|
|
8118
8118
|
var K;
|
|
8119
|
-
N !== !0 &&
|
|
8119
|
+
N !== !0 && I.qAvoidFocus !== !0 && ((K = s.value) == null || K.focus()), c(I), ct(I);
|
|
8120
8120
|
}
|
|
8121
|
-
function
|
|
8121
|
+
function V() {
|
|
8122
8122
|
t("afterShow");
|
|
8123
8123
|
}
|
|
8124
|
-
function
|
|
8124
|
+
function B() {
|
|
8125
8125
|
t("afterHide");
|
|
8126
8126
|
}
|
|
8127
8127
|
function P() {
|
|
8128
8128
|
h === void 0 && (h = Xs()), o.value === !0 && (Nn[i.group] = h);
|
|
8129
|
-
const
|
|
8129
|
+
const I = ye(o, (K) => {
|
|
8130
8130
|
K === !0 ? Nn[i.group] = h : Nn[i.group] === h && delete Nn[i.group];
|
|
8131
8131
|
}), N = ye(
|
|
8132
8132
|
() => Nn[i.group],
|
|
@@ -8135,11 +8135,11 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8135
8135
|
}
|
|
8136
8136
|
);
|
|
8137
8137
|
f = () => {
|
|
8138
|
-
|
|
8138
|
+
I(), N(), Nn[i.group] === h && delete Nn[i.group], f = void 0;
|
|
8139
8139
|
};
|
|
8140
8140
|
}
|
|
8141
8141
|
function R() {
|
|
8142
|
-
const
|
|
8142
|
+
const I = {
|
|
8143
8143
|
class: [
|
|
8144
8144
|
`q-focusable relative-position cursor-pointer${i.denseToggle === !0 && i.switchToggleSide === !0 ? " items-end" : ""}`,
|
|
8145
8145
|
i.expandIconClass
|
|
@@ -8152,10 +8152,10 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8152
8152
|
name: k.value
|
|
8153
8153
|
})
|
|
8154
8154
|
];
|
|
8155
|
-
return v.value === !0 && (Object.assign(
|
|
8155
|
+
return v.value === !0 && (Object.assign(I, {
|
|
8156
8156
|
tabindex: 0,
|
|
8157
8157
|
...C.value,
|
|
8158
|
-
onClick:
|
|
8158
|
+
onClick: F,
|
|
8159
8159
|
onKeyup: q
|
|
8160
8160
|
}), N.unshift(
|
|
8161
8161
|
O("div", {
|
|
@@ -8163,26 +8163,26 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8163
8163
|
class: "q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded",
|
|
8164
8164
|
tabindex: -1
|
|
8165
8165
|
})
|
|
8166
|
-
)), O(kn,
|
|
8166
|
+
)), O(kn, I, () => N);
|
|
8167
8167
|
}
|
|
8168
|
-
function
|
|
8169
|
-
let
|
|
8170
|
-
return e.header !== void 0 ?
|
|
8168
|
+
function D() {
|
|
8169
|
+
let I;
|
|
8170
|
+
return e.header !== void 0 ? I = [].concat(e.header(x.value)) : (I = [
|
|
8171
8171
|
O(kn, () => [
|
|
8172
8172
|
O(Yn, { lines: i.labelLines }, () => i.label || ""),
|
|
8173
8173
|
i.caption ? O(Yn, { lines: i.captionLines, caption: !0 }, () => i.caption) : null
|
|
8174
8174
|
])
|
|
8175
|
-
], i.icon &&
|
|
8175
|
+
], i.icon && I[i.switchToggleSide === !0 ? "push" : "unshift"](
|
|
8176
8176
|
O(kn, {
|
|
8177
8177
|
side: i.switchToggleSide === !0,
|
|
8178
8178
|
avatar: i.switchToggleSide !== !0
|
|
8179
8179
|
}, () => O(kt, { name: i.icon }))
|
|
8180
|
-
)), i.disable !== !0 && i.hideExpandIcon !== !0 &&
|
|
8180
|
+
)), i.disable !== !0 && i.hideExpandIcon !== !0 && I[i.switchToggleSide === !0 ? "unshift" : "push"](
|
|
8181
8181
|
R()
|
|
8182
|
-
),
|
|
8182
|
+
), I;
|
|
8183
8183
|
}
|
|
8184
|
-
function
|
|
8185
|
-
const
|
|
8184
|
+
function w() {
|
|
8185
|
+
const I = {
|
|
8186
8186
|
ref: "item",
|
|
8187
8187
|
style: i.headerStyle,
|
|
8188
8188
|
class: i.headerClass,
|
|
@@ -8191,12 +8191,12 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8191
8191
|
dense: i.dense,
|
|
8192
8192
|
insetLevel: i.headerInsetLevel
|
|
8193
8193
|
};
|
|
8194
|
-
return y.value === !0 && (
|
|
8195
|
-
|
|
8194
|
+
return y.value === !0 && (I.clickable = !0, I.onClick = E, Object.assign(
|
|
8195
|
+
I,
|
|
8196
8196
|
p.value === !0 ? g.value : C.value
|
|
8197
|
-
)), O($s,
|
|
8197
|
+
)), O($s, I, D);
|
|
8198
8198
|
}
|
|
8199
|
-
function
|
|
8199
|
+
function A() {
|
|
8200
8200
|
return Rn(
|
|
8201
8201
|
O("div", {
|
|
8202
8202
|
key: "e-content",
|
|
@@ -8211,15 +8211,15 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8211
8211
|
);
|
|
8212
8212
|
}
|
|
8213
8213
|
function H() {
|
|
8214
|
-
const
|
|
8215
|
-
|
|
8214
|
+
const I = [
|
|
8215
|
+
w(),
|
|
8216
8216
|
O(D1, {
|
|
8217
8217
|
duration: i.duration,
|
|
8218
|
-
onShow:
|
|
8219
|
-
onHide:
|
|
8220
|
-
},
|
|
8218
|
+
onShow: V,
|
|
8219
|
+
onHide: B
|
|
8220
|
+
}, A)
|
|
8221
8221
|
];
|
|
8222
|
-
return i.expandSeparator === !0 &&
|
|
8222
|
+
return i.expandSeparator === !0 && I.push(
|
|
8223
8223
|
O(uu, {
|
|
8224
8224
|
class: "q-expansion-item__border q-expansion-item__border--top absolute-top",
|
|
8225
8225
|
dark: r.value
|
|
@@ -8228,7 +8228,7 @@ const rf = /* @__PURE__ */ Ut(A1, [["render", T1], ["__scopeId", "data-v-76abc7a
|
|
|
8228
8228
|
class: "q-expansion-item__border q-expansion-item__border--bottom absolute-bottom",
|
|
8229
8229
|
dark: r.value
|
|
8230
8230
|
})
|
|
8231
|
-
),
|
|
8231
|
+
), I;
|
|
8232
8232
|
}
|
|
8233
8233
|
return i.group !== void 0 && P(), ht(() => {
|
|
8234
8234
|
f == null || f();
|
|
@@ -8415,22 +8415,22 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8415
8415
|
],
|
|
8416
8416
|
setup(i, { slots: e, emit: t, attrs: n }) {
|
|
8417
8417
|
let r, o;
|
|
8418
|
-
const s = je(), { proxy: { $q: l } } = s, a = G(null), u = G(!1), c = b(() => ol(i.anchor, l.lang.rtl)), h = b(() => ol(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: y } = xc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: x } = Hm(i, Y), { anchorEl: C, canShow:
|
|
8418
|
+
const s = je(), { proxy: { $q: l } } = s, a = G(null), u = G(!1), c = b(() => ol(i.anchor, l.lang.rtl)), h = b(() => ol(i.self, l.lang.rtl)), f = b(() => i.persistent !== !0), { registerTick: d, removeTick: m } = Mr(), { registerTimeout: p } = ko(), { transitionProps: g, transitionStyle: y } = xc(i), { localScrollTarget: k, changeScrollEvent: v, unconfigureScrollTarget: x } = Hm(i, Y), { anchorEl: C, canShow: E, anchorEvents: q } = yc({ showing: u, configureAnchorEl: K }), { show: F, hide: V } = jl({
|
|
8419
8419
|
showing: u,
|
|
8420
|
-
canShow:
|
|
8421
|
-
handleShow:
|
|
8422
|
-
handleHide:
|
|
8420
|
+
canShow: E,
|
|
8421
|
+
handleShow: D,
|
|
8422
|
+
handleHide: w,
|
|
8423
8423
|
hideOnRouteChange: f,
|
|
8424
8424
|
processOnMount: !0
|
|
8425
8425
|
});
|
|
8426
|
-
Object.assign(q, { delayShow:
|
|
8427
|
-
const { showPortal:
|
|
8426
|
+
Object.assign(q, { delayShow: I, delayHide: N });
|
|
8427
|
+
const { showPortal: B, hidePortal: P, renderPortal: R } = bc(s, a, T, "tooltip");
|
|
8428
8428
|
if (l.platform.is.mobile === !0) {
|
|
8429
|
-
const
|
|
8429
|
+
const z = {
|
|
8430
8430
|
anchorEl: C,
|
|
8431
8431
|
innerRef: a,
|
|
8432
8432
|
onClickOutside(oe) {
|
|
8433
|
-
return
|
|
8433
|
+
return V(oe), oe.target.classList.contains("q-dialog__backdrop") && ct(oe), !0;
|
|
8434
8434
|
}
|
|
8435
8435
|
}, J = b(
|
|
8436
8436
|
() => (
|
|
@@ -8440,27 +8440,27 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8440
8440
|
)
|
|
8441
8441
|
);
|
|
8442
8442
|
ye(J, (oe) => {
|
|
8443
|
-
(oe === !0 ? Gm : nl)(
|
|
8443
|
+
(oe === !0 ? Gm : nl)(z);
|
|
8444
8444
|
}), ht(() => {
|
|
8445
|
-
nl(
|
|
8445
|
+
nl(z);
|
|
8446
8446
|
});
|
|
8447
8447
|
}
|
|
8448
|
-
function
|
|
8449
|
-
|
|
8448
|
+
function D(z) {
|
|
8449
|
+
B(), d(() => {
|
|
8450
8450
|
o = new MutationObserver(() => H()), o.observe(a.value, { attributes: !1, childList: !0, characterData: !0, subtree: !0 }), H(), Y();
|
|
8451
8451
|
}), r === void 0 && (r = ye(
|
|
8452
8452
|
() => l.screen.width + "|" + l.screen.height + "|" + i.self + "|" + i.anchor + "|" + l.lang.rtl,
|
|
8453
8453
|
H
|
|
8454
8454
|
)), p(() => {
|
|
8455
|
-
|
|
8455
|
+
B(!0), t("show", z);
|
|
8456
8456
|
}, i.transitionDuration);
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8459
|
-
m(), P(),
|
|
8460
|
-
P(!0), t("hide",
|
|
8458
|
+
function w(z) {
|
|
8459
|
+
m(), P(), A(), p(() => {
|
|
8460
|
+
P(!0), t("hide", z);
|
|
8461
8461
|
}, i.transitionDuration);
|
|
8462
8462
|
}
|
|
8463
|
-
function
|
|
8463
|
+
function A() {
|
|
8464
8464
|
o !== void 0 && (o.disconnect(), o = void 0), r !== void 0 && (r(), r = void 0), x(), Xn(q, "tooltipTemp");
|
|
8465
8465
|
}
|
|
8466
8466
|
function H() {
|
|
@@ -8474,41 +8474,41 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8474
8474
|
maxWidth: i.maxWidth
|
|
8475
8475
|
});
|
|
8476
8476
|
}
|
|
8477
|
-
function
|
|
8477
|
+
function I(z) {
|
|
8478
8478
|
if (l.platform.is.mobile === !0) {
|
|
8479
8479
|
Zs(), document.body.classList.add("non-selectable");
|
|
8480
8480
|
const J = C.value, oe = ["touchmove", "touchcancel", "touchend", "click"].map((ce) => [J, ce, "delayHide", "passiveCapture"]);
|
|
8481
8481
|
rn(q, "tooltipTemp", oe);
|
|
8482
8482
|
}
|
|
8483
8483
|
p(() => {
|
|
8484
|
-
|
|
8484
|
+
F(z);
|
|
8485
8485
|
}, i.delay);
|
|
8486
8486
|
}
|
|
8487
|
-
function N(
|
|
8487
|
+
function N(z) {
|
|
8488
8488
|
l.platform.is.mobile === !0 && (Xn(q, "tooltipTemp"), Zs(), setTimeout(() => {
|
|
8489
8489
|
document.body.classList.remove("non-selectable");
|
|
8490
8490
|
}, 10)), p(() => {
|
|
8491
|
-
|
|
8491
|
+
V(z);
|
|
8492
8492
|
}, i.hideDelay);
|
|
8493
8493
|
}
|
|
8494
8494
|
function K() {
|
|
8495
8495
|
if (i.noParentEvent === !0 || C.value === null) return;
|
|
8496
|
-
const
|
|
8496
|
+
const z = l.platform.is.mobile === !0 ? [
|
|
8497
8497
|
[C.value, "touchstart", "delayShow", "passive"]
|
|
8498
8498
|
] : [
|
|
8499
8499
|
[C.value, "mouseenter", "delayShow", "passive"],
|
|
8500
8500
|
[C.value, "mouseleave", "delayHide", "passive"]
|
|
8501
8501
|
];
|
|
8502
|
-
rn(q, "anchor",
|
|
8502
|
+
rn(q, "anchor", z);
|
|
8503
8503
|
}
|
|
8504
8504
|
function Y() {
|
|
8505
8505
|
if (C.value !== null || i.scrollTarget !== void 0) {
|
|
8506
8506
|
k.value = Wm(C.value, i.scrollTarget);
|
|
8507
|
-
const
|
|
8508
|
-
v(k.value,
|
|
8507
|
+
const z = i.noParentEvent === !0 ? H : V;
|
|
8508
|
+
v(k.value, z);
|
|
8509
8509
|
}
|
|
8510
8510
|
}
|
|
8511
|
-
function
|
|
8511
|
+
function M() {
|
|
8512
8512
|
return u.value === !0 ? O("div", {
|
|
8513
8513
|
...n,
|
|
8514
8514
|
ref: a,
|
|
@@ -8524,9 +8524,9 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8524
8524
|
}, qt(e.default)) : null;
|
|
8525
8525
|
}
|
|
8526
8526
|
function T() {
|
|
8527
|
-
return O(fi, g.value,
|
|
8527
|
+
return O(fi, g.value, M);
|
|
8528
8528
|
}
|
|
8529
|
-
return ht(
|
|
8529
|
+
return ht(A), Object.assign(s.proxy, { updatePosition: H }), R;
|
|
8530
8530
|
}
|
|
8531
8531
|
}), mg = Je({
|
|
8532
8532
|
name: "QCardSection",
|
|
@@ -8569,77 +8569,77 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8569
8569
|
label: t.label,
|
|
8570
8570
|
componentType: "card"
|
|
8571
8571
|
}), h = b(() => {
|
|
8572
|
-
var R,
|
|
8573
|
-
const
|
|
8574
|
-
if (
|
|
8575
|
-
return
|
|
8576
|
-
const
|
|
8577
|
-
return (
|
|
8572
|
+
var R, D;
|
|
8573
|
+
const V = t.schema["x-section-style"];
|
|
8574
|
+
if (V)
|
|
8575
|
+
return V;
|
|
8576
|
+
const B = (R = c == null ? void 0 : c.quickformsDefaults) == null ? void 0 : R.array, P = (D = c == null ? void 0 : c.quickformsDefaults) == null ? void 0 : D.object;
|
|
8577
|
+
return (B == null ? void 0 : B.sectionStyle) ?? (P == null ? void 0 : P.sectionStyle) ?? "card";
|
|
8578
8578
|
}), f = b(() => `quickform-section-${h.value}`), d = b(() => {
|
|
8579
|
-
var H,
|
|
8580
|
-
const
|
|
8579
|
+
var H, I;
|
|
8580
|
+
const V = ((H = c == null ? void 0 : c.quickformsDefaults) == null ? void 0 : H.array) || {}, B = t.schema["x-quickforms-quasar"] || {}, P = B.addButtonPosition ?? V.addButtonPosition ?? "bottom-left", R = {
|
|
8581
8581
|
outline: !0,
|
|
8582
8582
|
color: "primary",
|
|
8583
8583
|
icon: "add",
|
|
8584
|
-
label: ((
|
|
8585
|
-
},
|
|
8584
|
+
label: ((I = c == null ? void 0 : c.labels) == null ? void 0 : I.addItem) || "Add item"
|
|
8585
|
+
}, D = {
|
|
8586
8586
|
flat: !0,
|
|
8587
8587
|
round: !0,
|
|
8588
8588
|
dense: !0,
|
|
8589
8589
|
size: "sm",
|
|
8590
8590
|
icon: "close",
|
|
8591
8591
|
color: "negative"
|
|
8592
|
-
},
|
|
8592
|
+
}, w = {
|
|
8593
8593
|
...R,
|
|
8594
|
-
...
|
|
8595
|
-
...
|
|
8596
|
-
},
|
|
8597
|
-
...
|
|
8598
|
-
...
|
|
8599
|
-
...
|
|
8594
|
+
...V.addButton || {},
|
|
8595
|
+
...B.addButton || {}
|
|
8596
|
+
}, A = {
|
|
8597
|
+
...D,
|
|
8598
|
+
...V.removeButton || {},
|
|
8599
|
+
...B.removeButton || {}
|
|
8600
8600
|
};
|
|
8601
8601
|
return {
|
|
8602
8602
|
addButtonPosition: P,
|
|
8603
|
-
addButton:
|
|
8604
|
-
removeButton:
|
|
8603
|
+
addButton: w,
|
|
8604
|
+
removeButton: A
|
|
8605
8605
|
};
|
|
8606
8606
|
}), m = b(() => {
|
|
8607
|
-
const
|
|
8608
|
-
return
|
|
8607
|
+
const V = d.value.addButtonPosition;
|
|
8608
|
+
return V === "top-left" || V === "top-right";
|
|
8609
8609
|
}), p = b(() => {
|
|
8610
|
-
const
|
|
8611
|
-
return
|
|
8610
|
+
const V = d.value.addButtonPosition;
|
|
8611
|
+
return V === "top-right" || V === "bottom-right";
|
|
8612
8612
|
}), g = b({
|
|
8613
8613
|
get: () => Array.isArray(n.value) ? n.value : [],
|
|
8614
|
-
set: (
|
|
8614
|
+
set: (V) => n.value = V
|
|
8615
8615
|
}), y = b(() => Array.isArray(t.schema.items) ? t.schema.items[0] : t.schema.items), k = () => {
|
|
8616
8616
|
if (!y.value) return;
|
|
8617
|
-
const
|
|
8618
|
-
n.value = [...g.value,
|
|
8619
|
-
}, v = (
|
|
8620
|
-
const
|
|
8621
|
-
|
|
8622
|
-
}, x = (
|
|
8623
|
-
if (
|
|
8624
|
-
const P = [...g.value], R =
|
|
8625
|
-
P[
|
|
8626
|
-
}, C = b(() => !(t.disabled || t.readonly || t.schema.maxItems && g.value.length >= t.schema.maxItems)),
|
|
8617
|
+
const V = Is.getDefaultValue(y.value);
|
|
8618
|
+
n.value = [...g.value, V];
|
|
8619
|
+
}, v = (V) => {
|
|
8620
|
+
const B = [...g.value];
|
|
8621
|
+
B.splice(V, 1), n.value = B;
|
|
8622
|
+
}, x = (V, B) => {
|
|
8623
|
+
if (B === "up" && V === 0 || B === "down" && V === g.value.length - 1) return;
|
|
8624
|
+
const P = [...g.value], R = B === "up" ? V - 1 : V + 1, D = P[V];
|
|
8625
|
+
P[V] = P[R], P[R] = D, n.value = P;
|
|
8626
|
+
}, C = b(() => !(t.disabled || t.readonly || t.schema.maxItems && g.value.length >= t.schema.maxItems)), E = b(() => !(t.disabled || t.readonly || t.schema.minItems && g.value.length <= t.schema.minItems)), F = { props: t, value: n, label: r, hint: o, errorMessage: s, fieldId: l, quasarProps: a, fieldGap: u, formContext: c, sectionStyle: h, sectionStyleClass: f, quickformsFeatures: d, isTopPosition: m, isRightPosition: p, arrayValue: g, itemsSchema: y, addItem: k, removeItem: v, moveItem: x, canAdd: C, canRemove: E, getItemLabel: (V) => {
|
|
8627
8627
|
var R;
|
|
8628
|
-
const
|
|
8629
|
-
if (
|
|
8628
|
+
const B = t.schema["x-item-label"];
|
|
8629
|
+
if (B === "none" || B === !1)
|
|
8630
8630
|
return "";
|
|
8631
|
-
if (typeof
|
|
8632
|
-
const
|
|
8633
|
-
if (typeof
|
|
8634
|
-
let
|
|
8635
|
-
if (
|
|
8636
|
-
const N =
|
|
8637
|
-
return N != null && N !== "" ? (
|
|
8638
|
-
}),
|
|
8639
|
-
return
|
|
8631
|
+
if (typeof B == "string" && B.includes("{{")) {
|
|
8632
|
+
const D = g.value[V];
|
|
8633
|
+
if (typeof D == "object" && D !== null) {
|
|
8634
|
+
let w = B, A = !1;
|
|
8635
|
+
if (w = w.replace(/\{\{([^}]+)\}\}/g, (H, I) => {
|
|
8636
|
+
const N = D[I.trim()];
|
|
8637
|
+
return N != null && N !== "" ? (A = !0, String(N)) : "";
|
|
8638
|
+
}), w = w.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), A && w.trim())
|
|
8639
|
+
return w.trim();
|
|
8640
8640
|
}
|
|
8641
8641
|
}
|
|
8642
|
-
return `${((R = y.value) == null ? void 0 : R.title) || "Item"} ${
|
|
8642
|
+
return `${((R = y.value) == null ? void 0 : R.title) || "Item"} ${V + 1}`;
|
|
8643
8643
|
}, get QCard() {
|
|
8644
8644
|
return Ac;
|
|
8645
8645
|
}, get QCardSection() {
|
|
@@ -8649,7 +8649,7 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8649
8649
|
}, get FieldRenderer() {
|
|
8650
8650
|
return Rl;
|
|
8651
8651
|
} };
|
|
8652
|
-
return Object.defineProperty(
|
|
8652
|
+
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
8653
8653
|
}
|
|
8654
8654
|
}), N1 = ["id"], H1 = { class: "quickform-array-header" }, z1 = { class: "quickform-array-label" }, j1 = {
|
|
8655
8655
|
key: 0,
|
|
@@ -8927,13 +8927,13 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8927
8927
|
componentType: "keyvalue"
|
|
8928
8928
|
}), d = b(() => {
|
|
8929
8929
|
var N, K;
|
|
8930
|
-
const q = ((N = f == null ? void 0 : f.quickformsDefaults) == null ? void 0 : N.keyvalue) || {},
|
|
8930
|
+
const q = ((N = f == null ? void 0 : f.quickformsDefaults) == null ? void 0 : N.keyvalue) || {}, F = t.schema["x-quickforms-quasar"] || {}, V = F.addButtonPosition ?? q.addButtonPosition ?? "bottom-left", B = F.showHeaders ?? q.showHeaders ?? !1, P = F.keyLabel ?? q.keyLabel ?? "Key", R = F.valueLabel ?? q.valueLabel ?? "Value", D = t.schema["x-infer-types"] ?? F.inferTypes ?? q.inferTypes ?? !1, w = {
|
|
8931
8931
|
outline: !0,
|
|
8932
8932
|
color: "primary",
|
|
8933
8933
|
icon: "add",
|
|
8934
8934
|
label: ((K = f == null ? void 0 : f.labels) == null ? void 0 : K.addItem) || "Add Parameter",
|
|
8935
8935
|
size: "sm"
|
|
8936
|
-
},
|
|
8936
|
+
}, A = {
|
|
8937
8937
|
flat: !0,
|
|
8938
8938
|
round: !0,
|
|
8939
8939
|
dense: !0,
|
|
@@ -8941,22 +8941,22 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8941
8941
|
icon: "close",
|
|
8942
8942
|
color: "negative"
|
|
8943
8943
|
}, H = {
|
|
8944
|
-
...
|
|
8944
|
+
...w,
|
|
8945
8945
|
...q.addButton || {},
|
|
8946
|
-
...
|
|
8947
|
-
},
|
|
8948
|
-
...
|
|
8946
|
+
...F.addButton || {}
|
|
8947
|
+
}, I = {
|
|
8948
|
+
...A,
|
|
8949
8949
|
...q.removeButton || {},
|
|
8950
|
-
...
|
|
8950
|
+
...F.removeButton || {}
|
|
8951
8951
|
};
|
|
8952
8952
|
return {
|
|
8953
|
-
addButtonPosition:
|
|
8953
|
+
addButtonPosition: V,
|
|
8954
8954
|
addButton: H,
|
|
8955
|
-
removeButton:
|
|
8956
|
-
showHeaders:
|
|
8955
|
+
removeButton: I,
|
|
8956
|
+
showHeaders: B,
|
|
8957
8957
|
keyLabel: P,
|
|
8958
8958
|
valueLabel: R,
|
|
8959
|
-
inferTypes:
|
|
8959
|
+
inferTypes: D
|
|
8960
8960
|
};
|
|
8961
8961
|
}), m = b(() => {
|
|
8962
8962
|
const q = d.value.addButtonPosition;
|
|
@@ -8974,9 +8974,9 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8974
8974
|
v.value = !1;
|
|
8975
8975
|
return;
|
|
8976
8976
|
}
|
|
8977
|
-
q && typeof q == "object" && !Array.isArray(q) ? k.value = Object.entries(q).map(([
|
|
8978
|
-
key:
|
|
8979
|
-
value: String(
|
|
8977
|
+
q && typeof q == "object" && !Array.isArray(q) ? k.value = Object.entries(q).map(([F, V]) => ({
|
|
8978
|
+
key: F,
|
|
8979
|
+
value: String(V),
|
|
8980
8980
|
id: y++
|
|
8981
8981
|
})) : k.value.length || (k.value = []);
|
|
8982
8982
|
},
|
|
@@ -8984,10 +8984,10 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8984
8984
|
), ye(
|
|
8985
8985
|
k,
|
|
8986
8986
|
(q) => {
|
|
8987
|
-
const
|
|
8988
|
-
q.forEach((
|
|
8989
|
-
|
|
8990
|
-
}), v.value = !0, r(
|
|
8987
|
+
const F = {};
|
|
8988
|
+
q.forEach((V) => {
|
|
8989
|
+
V.key.trim() && (F[V.key] = d.value.inferTypes ? ex(V.value) : V.value);
|
|
8990
|
+
}), v.value = !0, r(F);
|
|
8991
8991
|
},
|
|
8992
8992
|
{ deep: !0 }
|
|
8993
8993
|
);
|
|
@@ -8995,9 +8995,9 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8995
8995
|
k.value.push({ key: "", value: "", id: y++ });
|
|
8996
8996
|
}
|
|
8997
8997
|
function C(q) {
|
|
8998
|
-
k.value = k.value.filter((
|
|
8998
|
+
k.value = k.value.filter((F) => F.id !== q);
|
|
8999
8999
|
}
|
|
9000
|
-
const
|
|
9000
|
+
const E = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, inputProps: c, fieldGap: h, formContext: f, quickformsFeatures: d, isTopPosition: m, isRightPosition: p, isCenterPosition: g, get nextId() {
|
|
9001
9001
|
return y;
|
|
9002
9002
|
}, set nextId(q) {
|
|
9003
9003
|
y = q;
|
|
@@ -9006,7 +9006,7 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
9006
9006
|
}, get QBtn() {
|
|
9007
9007
|
return It;
|
|
9008
9008
|
} };
|
|
9009
|
-
return Object.defineProperty(
|
|
9009
|
+
return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
|
|
9010
9010
|
}
|
|
9011
9011
|
}), ix = { class: "text-subtitle2" }, nx = {
|
|
9012
9012
|
key: 0,
|
|
@@ -13961,8 +13961,8 @@ class Af extends Ke {
|
|
|
13961
13961
|
if (n && n.range.fromB < h && n.range.toB > c) {
|
|
13962
13962
|
let x = mo.build(this.view.state.doc, c, n.range.fromB, this.decorations, this.dynamicDecorationMap), C = mo.build(this.view.state.doc, n.range.toB, h, this.decorations, this.dynamicDecorationMap);
|
|
13963
13963
|
d = x.breakAtStart, m = x.openStart, p = C.openEnd;
|
|
13964
|
-
let
|
|
13965
|
-
C.breakAtStart ?
|
|
13964
|
+
let E = this.compositionView(n);
|
|
13965
|
+
C.breakAtStart ? E.breakAfter = 1 : C.content.length && E.merge(E.length, E.length, C.content[0], !1, C.openStart, 0) && (E.breakAfter = C.content[0].breakAfter, C.content.shift()), x.content.length && E.merge(0, 0, x.content[x.content.length - 1], !0, 0, x.openEnd) && x.content.pop(), f = x.content.concat(E).concat(C.content);
|
|
13966
13966
|
} else
|
|
13967
13967
|
({ content: f, breakAtStart: d, openStart: m, openEnd: p } = mo.build(this.view.state.doc, c, h, this.decorations, this.dynamicDecorationMap));
|
|
13968
13968
|
let { i: g, off: y } = o.findPos(u, 1), { i: k, off: v } = o.findPos(a, -1);
|
|
@@ -15921,13 +15921,13 @@ class Qf {
|
|
|
15921
15921
|
if ((this.contentDOMWidth != k || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = l.width, this.editorHeight = e.scrollDOM.clientHeight, u |= 16), a) {
|
|
15922
15922
|
let x = e.docView.measureVisibleLineHeights(this.viewport);
|
|
15923
15923
|
if (r.mustRefreshForHeights(x) && (s = !0), s || r.lineWrapping && Math.abs(k - this.contentDOMWidth) > r.charWidth) {
|
|
15924
|
-
let { lineHeight: C, charWidth:
|
|
15925
|
-
s = C > 0 && r.refresh(o, C,
|
|
15924
|
+
let { lineHeight: C, charWidth: E, textHeight: q } = e.docView.measureTextSize();
|
|
15925
|
+
s = C > 0 && r.refresh(o, C, E, q, Math.max(5, k / E), x), s && (e.docView.minWidth = 0, u |= 16);
|
|
15926
15926
|
}
|
|
15927
15927
|
p > 0 && g > 0 ? c = Math.max(p, g) : p < 0 && g < 0 && (c = Math.min(p, g)), jf();
|
|
15928
15928
|
for (let C of this.viewports) {
|
|
15929
|
-
let
|
|
15930
|
-
this.heightMap = (s ? ni.empty().applyChanges(this.stateDeco, Ne.empty, this.heightOracle, [new ki(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, s, new Qk(C.from,
|
|
15929
|
+
let E = C.from == this.viewport.from ? x : e.docView.measureVisibleLineHeights(C);
|
|
15930
|
+
this.heightMap = (s ? ni.empty().applyChanges(this.stateDeco, Ne.empty, this.heightOracle, [new ki(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, s, new Qk(C.from, E));
|
|
15931
15931
|
}
|
|
15932
15932
|
Nr && (u |= 2);
|
|
15933
15933
|
}
|
|
@@ -16028,12 +16028,12 @@ class Qf {
|
|
|
16028
16028
|
} else {
|
|
16029
16029
|
let p = h.total * this.heightOracle.charWidth, g = r * this.heightOracle.charWidth, y = 0;
|
|
16030
16030
|
if (p > 2e6)
|
|
16031
|
-
for (let
|
|
16032
|
-
|
|
16031
|
+
for (let E of e)
|
|
16032
|
+
E.from >= c.from && E.from < c.to && E.size != E.displaySize && E.from * this.heightOracle.charWidth + y < this.pixelViewport.left && (y = E.size - E.displaySize);
|
|
16033
16033
|
let k = this.pixelViewport.left + y, v = this.pixelViewport.right + y, x, C;
|
|
16034
16034
|
if (f != null) {
|
|
16035
|
-
let
|
|
16036
|
-
x =
|
|
16035
|
+
let E = ys(h, f), q = ((v - k) / 2 + g) / p;
|
|
16036
|
+
x = E - q, C = E + q;
|
|
16037
16037
|
} else
|
|
16038
16038
|
x = (k - g) / p, C = (v + g) / p;
|
|
16039
16039
|
d = vs(h, x), m = vs(h, C);
|
|
@@ -17800,42 +17800,42 @@ function mw(i, e, t) {
|
|
|
17800
17800
|
if (p && (i.lineWrapping || d.widgetLineBreaks) && (p = $f(i, n, 1, p)), g && (i.lineWrapping || m.widgetLineBreaks) && (g = $f(i, r, -1, g)), p && g && p.from == g.from && p.to == g.to)
|
|
17801
17801
|
return k(v(t.from, t.to, p));
|
|
17802
17802
|
{
|
|
17803
|
-
let C = p ? v(t.from, null, p) : x(d, !1),
|
|
17804
|
-
return (p || d).to < (g || m).from - (p && g ? 1 : 0) || d.widgetLineBreaks > 1 && C.bottom + i.defaultLineHeight / 2 <
|
|
17805
|
-
}
|
|
17806
|
-
function y(C,
|
|
17807
|
-
return new Go(e, C - a.left,
|
|
17808
|
-
}
|
|
17809
|
-
function k({ top: C, bottom:
|
|
17810
|
-
let
|
|
17811
|
-
for (let
|
|
17812
|
-
|
|
17813
|
-
return
|
|
17814
|
-
}
|
|
17815
|
-
function v(C,
|
|
17816
|
-
let
|
|
17817
|
-
function P(
|
|
17818
|
-
let K = i.coordsAtPos(
|
|
17819
|
-
!K || !Y || (
|
|
17820
|
-
}
|
|
17821
|
-
let R = C ?? q.from,
|
|
17822
|
-
for (let
|
|
17823
|
-
if (
|
|
17824
|
-
for (let
|
|
17825
|
-
let
|
|
17826
|
-
for (let N of i.bidiSpans(
|
|
17827
|
-
let K = N.from +
|
|
17803
|
+
let C = p ? v(t.from, null, p) : x(d, !1), E = g ? v(null, t.to, g) : x(m, !0), q = [];
|
|
17804
|
+
return (p || d).to < (g || m).from - (p && g ? 1 : 0) || d.widgetLineBreaks > 1 && C.bottom + i.defaultLineHeight / 2 < E.top ? q.push(y(h, C.bottom, f, E.top)) : C.bottom < E.top && i.elementAtHeight((C.bottom + E.top) / 2).type == ii.Text && (C.bottom = E.top = (C.bottom + E.top) / 2), k(C).concat(q).concat(k(E));
|
|
17805
|
+
}
|
|
17806
|
+
function y(C, E, q, F) {
|
|
17807
|
+
return new Go(e, C - a.left, E - a.top, q - C, F - E);
|
|
17808
|
+
}
|
|
17809
|
+
function k({ top: C, bottom: E, horizontal: q }) {
|
|
17810
|
+
let F = [];
|
|
17811
|
+
for (let V = 0; V < q.length; V += 2)
|
|
17812
|
+
F.push(y(q[V], C, q[V + 1], E));
|
|
17813
|
+
return F;
|
|
17814
|
+
}
|
|
17815
|
+
function v(C, E, q) {
|
|
17816
|
+
let F = 1e9, V = -1e9, B = [];
|
|
17817
|
+
function P(w, A, H, I, N) {
|
|
17818
|
+
let K = i.coordsAtPos(w, w == q.to ? -2 : 2), Y = i.coordsAtPos(H, H == q.from ? 2 : -2);
|
|
17819
|
+
!K || !Y || (F = Math.min(K.top, Y.top, F), V = Math.max(K.bottom, Y.bottom, V), N == st.LTR ? B.push(o && A ? h : K.left, o && I ? f : Y.right) : B.push(!o && I ? h : Y.left, !o && A ? f : K.right));
|
|
17820
|
+
}
|
|
17821
|
+
let R = C ?? q.from, D = E ?? q.to;
|
|
17822
|
+
for (let w of i.visibleRanges)
|
|
17823
|
+
if (w.to > R && w.from < D)
|
|
17824
|
+
for (let A = Math.max(w.from, R), H = Math.min(w.to, D); ; ) {
|
|
17825
|
+
let I = i.state.doc.lineAt(A);
|
|
17826
|
+
for (let N of i.bidiSpans(I)) {
|
|
17827
|
+
let K = N.from + I.from, Y = N.to + I.from;
|
|
17828
17828
|
if (K >= H)
|
|
17829
17829
|
break;
|
|
17830
|
-
Y >
|
|
17830
|
+
Y > A && P(Math.max(K, A), C == null && K <= R, Math.min(Y, H), E == null && Y >= D, N.dir);
|
|
17831
17831
|
}
|
|
17832
|
-
if (
|
|
17832
|
+
if (A = I.to + 1, A >= H)
|
|
17833
17833
|
break;
|
|
17834
17834
|
}
|
|
17835
|
-
return
|
|
17835
|
+
return B.length == 0 && P(R, C == null, D, E == null, i.textDirection), { top: F, bottom: V, horizontal: B };
|
|
17836
17836
|
}
|
|
17837
|
-
function x(C,
|
|
17838
|
-
let q = l.top + (
|
|
17837
|
+
function x(C, E) {
|
|
17838
|
+
let q = l.top + (E ? C.top : C.bottom);
|
|
17839
17839
|
return { top: q, bottom: q, horizontal: [] };
|
|
17840
17840
|
}
|
|
17841
17841
|
}
|
|
@@ -18534,15 +18534,15 @@ const Ia = /* @__PURE__ */ de.define({
|
|
|
18534
18534
|
}
|
|
18535
18535
|
nd.set(u, g), c.style.height = (g = C) / o + "px";
|
|
18536
18536
|
} else c.style.height && (c.style.height = "");
|
|
18537
|
-
let
|
|
18537
|
+
let E = x ? h.top - g - m - y.y : h.bottom + m + y.y, q = v + p;
|
|
18538
18538
|
if (u.overlap !== !0)
|
|
18539
|
-
for (let
|
|
18540
|
-
|
|
18541
|
-
if (this.position == "absolute" ? (c.style.top = (
|
|
18542
|
-
let
|
|
18543
|
-
d.style.left =
|
|
18539
|
+
for (let F of s)
|
|
18540
|
+
F.left < q && F.right > v && F.top < E + g && F.bottom > E && (E = x ? F.top - g - 2 - m : F.bottom + m + 2);
|
|
18541
|
+
if (this.position == "absolute" ? (c.style.top = (E - i.parent.top) / o + "px", rd(c, (v - i.parent.left) / r)) : (c.style.top = E / o + "px", rd(c, v / r)), d) {
|
|
18542
|
+
let F = h.left + (k ? y.x : -y.x) - (v + 14 - 7);
|
|
18543
|
+
d.style.left = F / r + "px";
|
|
18544
18544
|
}
|
|
18545
|
-
u.overlap !== !0 && s.push({ left: v, top:
|
|
18545
|
+
u.overlap !== !0 && s.push({ left: v, top: E, right: q, bottom: E + g }), c.classList.toggle("cm-tooltip-above", x), c.classList.toggle("cm-tooltip-below", !x), u.positioned && u.positioned(i.space);
|
|
18546
18546
|
}
|
|
18547
18547
|
}
|
|
18548
18548
|
maybeMeasure() {
|
|
@@ -20344,101 +20344,101 @@ function jc(i) {
|
|
|
20344
20344
|
function vS(i) {
|
|
20345
20345
|
var e;
|
|
20346
20346
|
let { buffer: t, nodeSet: n, maxBufferLength: r = Qp, reused: o = [], minRepeatType: s = n.types.length } = i, l = Array.isArray(t) ? new zc(t, t.length) : t, a = n.types, u = 0, c = 0;
|
|
20347
|
-
function h(C,
|
|
20348
|
-
let { id: P, start: R, end:
|
|
20349
|
-
if (
|
|
20350
|
-
if (l.next(),
|
|
20351
|
-
let
|
|
20352
|
-
q.push(
|
|
20347
|
+
function h(C, E, q, F, V, B) {
|
|
20348
|
+
let { id: P, start: R, end: D, size: w } = l, A = c, H = u;
|
|
20349
|
+
if (w < 0)
|
|
20350
|
+
if (l.next(), w == -1) {
|
|
20351
|
+
let M = o[P];
|
|
20352
|
+
q.push(M), F.push(R - C);
|
|
20353
20353
|
return;
|
|
20354
|
-
} else if (
|
|
20354
|
+
} else if (w == -3) {
|
|
20355
20355
|
u = P;
|
|
20356
20356
|
return;
|
|
20357
|
-
} else if (
|
|
20357
|
+
} else if (w == -4) {
|
|
20358
20358
|
c = P;
|
|
20359
20359
|
return;
|
|
20360
20360
|
} else
|
|
20361
|
-
throw new RangeError(`Unrecognized record size: ${
|
|
20362
|
-
let
|
|
20363
|
-
if (
|
|
20364
|
-
let
|
|
20361
|
+
throw new RangeError(`Unrecognized record size: ${w}`);
|
|
20362
|
+
let I = a[P], N, K, Y = R - C;
|
|
20363
|
+
if (D - R <= r && (K = g(l.pos - E, V))) {
|
|
20364
|
+
let M = new Uint16Array(K.size - K.skip), T = l.pos - K.size, z = M.length;
|
|
20365
20365
|
for (; l.pos > T; )
|
|
20366
|
-
|
|
20367
|
-
N = new _n(
|
|
20366
|
+
z = y(K.start, M, z);
|
|
20367
|
+
N = new _n(M, D - K.start, n), Y = K.start - C;
|
|
20368
20368
|
} else {
|
|
20369
|
-
let
|
|
20369
|
+
let M = l.pos - w;
|
|
20370
20370
|
l.next();
|
|
20371
|
-
let T = [],
|
|
20372
|
-
for (; l.pos >
|
|
20373
|
-
J >= 0 && l.id == J && l.size >= 0 ? (l.end <= ce - r && (m(T,
|
|
20374
|
-
if (J >= 0 && oe > 0 && oe < T.length && m(T,
|
|
20375
|
-
let se = d(
|
|
20376
|
-
N = Wc(
|
|
20371
|
+
let T = [], z = [], J = P >= s ? P : -1, oe = 0, ce = D;
|
|
20372
|
+
for (; l.pos > M; )
|
|
20373
|
+
J >= 0 && l.id == J && l.size >= 0 ? (l.end <= ce - r && (m(T, z, R, oe, l.end, ce, J, A, H), oe = T.length, ce = l.end), l.next()) : B > 2500 ? f(R, M, T, z) : h(R, M, T, z, J, B + 1);
|
|
20374
|
+
if (J >= 0 && oe > 0 && oe < T.length && m(T, z, R, oe, R, ce, J, A, H), T.reverse(), z.reverse(), J > -1 && oe > 0) {
|
|
20375
|
+
let se = d(I, H);
|
|
20376
|
+
N = Wc(I, T, z, 0, T.length, 0, D - R, se, se);
|
|
20377
20377
|
} else
|
|
20378
|
-
N = p(
|
|
20378
|
+
N = p(I, T, z, D - R, A - D, H);
|
|
20379
20379
|
}
|
|
20380
|
-
q.push(N),
|
|
20380
|
+
q.push(N), F.push(Y);
|
|
20381
20381
|
}
|
|
20382
|
-
function f(C,
|
|
20383
|
-
let
|
|
20384
|
-
for (; l.pos >
|
|
20385
|
-
let { id: R, start:
|
|
20386
|
-
if (
|
|
20382
|
+
function f(C, E, q, F) {
|
|
20383
|
+
let V = [], B = 0, P = -1;
|
|
20384
|
+
for (; l.pos > E; ) {
|
|
20385
|
+
let { id: R, start: D, end: w, size: A } = l;
|
|
20386
|
+
if (A > 4)
|
|
20387
20387
|
l.next();
|
|
20388
20388
|
else {
|
|
20389
|
-
if (P > -1 &&
|
|
20389
|
+
if (P > -1 && D < P)
|
|
20390
20390
|
break;
|
|
20391
|
-
P < 0 && (P =
|
|
20391
|
+
P < 0 && (P = w - r), V.push(R, D, w), B++, l.next();
|
|
20392
20392
|
}
|
|
20393
20393
|
}
|
|
20394
|
-
if (
|
|
20395
|
-
let R = new Uint16Array(
|
|
20396
|
-
for (let
|
|
20397
|
-
R[
|
|
20398
|
-
q.push(new _n(R,
|
|
20394
|
+
if (B) {
|
|
20395
|
+
let R = new Uint16Array(B * 4), D = V[V.length - 2];
|
|
20396
|
+
for (let w = V.length - 3, A = 0; w >= 0; w -= 3)
|
|
20397
|
+
R[A++] = V[w], R[A++] = V[w + 1] - D, R[A++] = V[w + 2] - D, R[A++] = A;
|
|
20398
|
+
q.push(new _n(R, V[2] - D, n)), F.push(D - C);
|
|
20399
20399
|
}
|
|
20400
20400
|
}
|
|
20401
|
-
function d(C,
|
|
20402
|
-
return (q,
|
|
20403
|
-
let
|
|
20401
|
+
function d(C, E) {
|
|
20402
|
+
return (q, F, V) => {
|
|
20403
|
+
let B = 0, P = q.length - 1, R, D;
|
|
20404
20404
|
if (P >= 0 && (R = q[P]) instanceof xt) {
|
|
20405
|
-
if (!P && R.type == C && R.length ==
|
|
20405
|
+
if (!P && R.type == C && R.length == V)
|
|
20406
20406
|
return R;
|
|
20407
|
-
(
|
|
20407
|
+
(D = R.prop(Pe.lookAhead)) && (B = F[P] + R.length + D);
|
|
20408
20408
|
}
|
|
20409
|
-
return p(C, q, V,
|
|
20409
|
+
return p(C, q, F, V, B, E);
|
|
20410
20410
|
};
|
|
20411
20411
|
}
|
|
20412
|
-
function m(C,
|
|
20413
|
-
let
|
|
20414
|
-
for (; C.length >
|
|
20415
|
-
|
|
20416
|
-
C.push(p(n.types[P],
|
|
20412
|
+
function m(C, E, q, F, V, B, P, R, D) {
|
|
20413
|
+
let w = [], A = [];
|
|
20414
|
+
for (; C.length > F; )
|
|
20415
|
+
w.push(C.pop()), A.push(E.pop() + q - V);
|
|
20416
|
+
C.push(p(n.types[P], w, A, B - V, R - B, D)), E.push(V - q);
|
|
20417
20417
|
}
|
|
20418
|
-
function p(C,
|
|
20419
|
-
if (
|
|
20420
|
-
let R = [Pe.contextHash,
|
|
20418
|
+
function p(C, E, q, F, V, B, P) {
|
|
20419
|
+
if (B) {
|
|
20420
|
+
let R = [Pe.contextHash, B];
|
|
20421
20421
|
P = P ? [R].concat(P) : [R];
|
|
20422
20422
|
}
|
|
20423
|
-
if (
|
|
20424
|
-
let R = [Pe.lookAhead,
|
|
20423
|
+
if (V > 25) {
|
|
20424
|
+
let R = [Pe.lookAhead, V];
|
|
20425
20425
|
P = P ? [R].concat(P) : [R];
|
|
20426
20426
|
}
|
|
20427
|
-
return new xt(C,
|
|
20427
|
+
return new xt(C, E, q, F, P);
|
|
20428
20428
|
}
|
|
20429
|
-
function g(C,
|
|
20430
|
-
let q = l.fork(),
|
|
20431
|
-
e: for (let
|
|
20432
|
-
let
|
|
20433
|
-
if (q.id ==
|
|
20434
|
-
R.size =
|
|
20429
|
+
function g(C, E) {
|
|
20430
|
+
let q = l.fork(), F = 0, V = 0, B = 0, P = q.end - r, R = { size: 0, start: 0, skip: 0 };
|
|
20431
|
+
e: for (let D = q.pos - C; q.pos > D; ) {
|
|
20432
|
+
let w = q.size;
|
|
20433
|
+
if (q.id == E && w >= 0) {
|
|
20434
|
+
R.size = F, R.start = V, R.skip = B, B += 4, F += 4, q.next();
|
|
20435
20435
|
continue;
|
|
20436
20436
|
}
|
|
20437
|
-
let
|
|
20438
|
-
if (
|
|
20437
|
+
let A = q.pos - w;
|
|
20438
|
+
if (w < 0 || A < D || q.start < P)
|
|
20439
20439
|
break;
|
|
20440
|
-
let H = q.id >= s ? 4 : 0,
|
|
20441
|
-
for (q.next(); q.pos >
|
|
20440
|
+
let H = q.id >= s ? 4 : 0, I = q.start;
|
|
20441
|
+
for (q.next(); q.pos > A; ) {
|
|
20442
20442
|
if (q.size < 0)
|
|
20443
20443
|
if (q.size == -3)
|
|
20444
20444
|
H += 4;
|
|
@@ -20447,21 +20447,21 @@ function vS(i) {
|
|
|
20447
20447
|
else q.id >= s && (H += 4);
|
|
20448
20448
|
q.next();
|
|
20449
20449
|
}
|
|
20450
|
-
|
|
20450
|
+
V = I, F += w, B += H;
|
|
20451
20451
|
}
|
|
20452
|
-
return (
|
|
20452
|
+
return (E < 0 || F == C) && (R.size = F, R.start = V, R.skip = B), R.size > 4 ? R : void 0;
|
|
20453
20453
|
}
|
|
20454
|
-
function y(C,
|
|
20455
|
-
let { id:
|
|
20456
|
-
if (l.next(), P >= 0 &&
|
|
20454
|
+
function y(C, E, q) {
|
|
20455
|
+
let { id: F, start: V, end: B, size: P } = l;
|
|
20456
|
+
if (l.next(), P >= 0 && F < s) {
|
|
20457
20457
|
let R = q;
|
|
20458
20458
|
if (P > 4) {
|
|
20459
|
-
let
|
|
20460
|
-
for (; l.pos >
|
|
20461
|
-
q = y(C,
|
|
20459
|
+
let D = l.pos - (P - 4);
|
|
20460
|
+
for (; l.pos > D; )
|
|
20461
|
+
q = y(C, E, q);
|
|
20462
20462
|
}
|
|
20463
|
-
|
|
20464
|
-
} else P == -3 ? u =
|
|
20463
|
+
E[--q] = R, E[--q] = B - C, E[--q] = V - C, E[--q] = F;
|
|
20464
|
+
} else P == -3 ? u = F : P == -4 && (c = F);
|
|
20465
20465
|
return q;
|
|
20466
20466
|
}
|
|
20467
20467
|
let k = [], v = [];
|
|
@@ -20498,15 +20498,15 @@ function Wc(i, e, t, n, r, o, s, l, a) {
|
|
|
20498
20498
|
), h = [], f = [];
|
|
20499
20499
|
function d(m, p, g, y, k) {
|
|
20500
20500
|
for (let v = g; v < y; ) {
|
|
20501
|
-
let x = v, C = p[v],
|
|
20501
|
+
let x = v, C = p[v], E = Us(i, m[v]);
|
|
20502
20502
|
for (v++; v < y; v++) {
|
|
20503
20503
|
let q = Us(i, m[v]);
|
|
20504
|
-
if (
|
|
20504
|
+
if (E + q >= c)
|
|
20505
20505
|
break;
|
|
20506
|
-
|
|
20506
|
+
E += q;
|
|
20507
20507
|
}
|
|
20508
20508
|
if (v == x + 1) {
|
|
20509
|
-
if (
|
|
20509
|
+
if (E > c) {
|
|
20510
20510
|
let q = m[x];
|
|
20511
20511
|
d(q.children, q.positions, 0, q.children.length, p[x] + k);
|
|
20512
20512
|
continue;
|
|
@@ -20860,7 +20860,7 @@ function AS(i) {
|
|
|
20860
20860
|
e = e.next;
|
|
20861
20861
|
return e || null;
|
|
20862
20862
|
}
|
|
20863
|
-
const ie = yi.define, Ms = ie(), pn = ie(), md = ie(pn), gd = ie(pn), vn = ie(), As = ie(vn), Ha = ie(vn), Vi = ie(), Hn = ie(Vi), Li = ie(), Ii = ie(), Gu = ie(), Zr = ie(Gu), Os = ie(),
|
|
20863
|
+
const ie = yi.define, Ms = ie(), pn = ie(), md = ie(pn), gd = ie(pn), vn = ie(), As = ie(vn), Ha = ie(vn), Vi = ie(), Hn = ie(Vi), Li = ie(), Ii = ie(), Gu = ie(), Zr = ie(Gu), Os = ie(), j = {
|
|
20864
20864
|
/**
|
|
20865
20865
|
A comment.
|
|
20866
20866
|
*/
|
|
@@ -21226,41 +21226,41 @@ const ie = yi.define, Ms = ie(), pn = ie(), md = ie(pn), gd = ie(pn), vn = ie(),
|
|
|
21226
21226
|
*/
|
|
21227
21227
|
special: yi.defineModifier("special")
|
|
21228
21228
|
};
|
|
21229
|
-
for (let i in
|
|
21230
|
-
let e =
|
|
21229
|
+
for (let i in j) {
|
|
21230
|
+
let e = j[i];
|
|
21231
21231
|
e instanceof yi && (e.name = i);
|
|
21232
21232
|
}
|
|
21233
21233
|
$p([
|
|
21234
|
-
{ tag:
|
|
21235
|
-
{ tag:
|
|
21236
|
-
{ tag:
|
|
21237
|
-
{ tag:
|
|
21238
|
-
{ tag:
|
|
21239
|
-
{ tag:
|
|
21240
|
-
{ tag:
|
|
21241
|
-
{ tag:
|
|
21242
|
-
{ tag:
|
|
21243
|
-
{ tag:
|
|
21244
|
-
{ tag:
|
|
21245
|
-
{ tag:
|
|
21246
|
-
{ tag:
|
|
21247
|
-
{ tag:
|
|
21248
|
-
{ tag: [
|
|
21249
|
-
{ tag:
|
|
21250
|
-
{ tag:
|
|
21251
|
-
{ tag:
|
|
21252
|
-
{ tag:
|
|
21253
|
-
{ tag:
|
|
21254
|
-
{ tag:
|
|
21255
|
-
{ tag:
|
|
21256
|
-
{ tag:
|
|
21257
|
-
{ tag:
|
|
21258
|
-
{ tag:
|
|
21259
|
-
{ tag:
|
|
21260
|
-
{ tag:
|
|
21261
|
-
{ tag:
|
|
21262
|
-
{ tag:
|
|
21263
|
-
{ tag:
|
|
21234
|
+
{ tag: j.link, class: "tok-link" },
|
|
21235
|
+
{ tag: j.heading, class: "tok-heading" },
|
|
21236
|
+
{ tag: j.emphasis, class: "tok-emphasis" },
|
|
21237
|
+
{ tag: j.strong, class: "tok-strong" },
|
|
21238
|
+
{ tag: j.keyword, class: "tok-keyword" },
|
|
21239
|
+
{ tag: j.atom, class: "tok-atom" },
|
|
21240
|
+
{ tag: j.bool, class: "tok-bool" },
|
|
21241
|
+
{ tag: j.url, class: "tok-url" },
|
|
21242
|
+
{ tag: j.labelName, class: "tok-labelName" },
|
|
21243
|
+
{ tag: j.inserted, class: "tok-inserted" },
|
|
21244
|
+
{ tag: j.deleted, class: "tok-deleted" },
|
|
21245
|
+
{ tag: j.literal, class: "tok-literal" },
|
|
21246
|
+
{ tag: j.string, class: "tok-string" },
|
|
21247
|
+
{ tag: j.number, class: "tok-number" },
|
|
21248
|
+
{ tag: [j.regexp, j.escape, j.special(j.string)], class: "tok-string2" },
|
|
21249
|
+
{ tag: j.variableName, class: "tok-variableName" },
|
|
21250
|
+
{ tag: j.local(j.variableName), class: "tok-variableName tok-local" },
|
|
21251
|
+
{ tag: j.definition(j.variableName), class: "tok-variableName tok-definition" },
|
|
21252
|
+
{ tag: j.special(j.variableName), class: "tok-variableName2" },
|
|
21253
|
+
{ tag: j.definition(j.propertyName), class: "tok-propertyName tok-definition" },
|
|
21254
|
+
{ tag: j.typeName, class: "tok-typeName" },
|
|
21255
|
+
{ tag: j.namespace, class: "tok-namespace" },
|
|
21256
|
+
{ tag: j.className, class: "tok-className" },
|
|
21257
|
+
{ tag: j.macroName, class: "tok-macroName" },
|
|
21258
|
+
{ tag: j.propertyName, class: "tok-propertyName" },
|
|
21259
|
+
{ tag: j.operator, class: "tok-operator" },
|
|
21260
|
+
{ tag: j.comment, class: "tok-comment" },
|
|
21261
|
+
{ tag: j.meta, class: "tok-meta" },
|
|
21262
|
+
{ tag: j.invalid, class: "tok-invalid" },
|
|
21263
|
+
{ tag: j.punctuation, class: "tok-punctuation" }
|
|
21264
21264
|
]);
|
|
21265
21265
|
var za;
|
|
21266
21266
|
const wr = /* @__PURE__ */ new Pe();
|
|
@@ -22271,80 +22271,80 @@ const rC = /* @__PURE__ */ ur.high(/* @__PURE__ */ ft.fromClass(nC, {
|
|
|
22271
22271
|
decorations: (i) => i.decorations
|
|
22272
22272
|
})), oC = /* @__PURE__ */ Xo.define([
|
|
22273
22273
|
{
|
|
22274
|
-
tag:
|
|
22274
|
+
tag: j.meta,
|
|
22275
22275
|
color: "#404740"
|
|
22276
22276
|
},
|
|
22277
22277
|
{
|
|
22278
|
-
tag:
|
|
22278
|
+
tag: j.link,
|
|
22279
22279
|
textDecoration: "underline"
|
|
22280
22280
|
},
|
|
22281
22281
|
{
|
|
22282
|
-
tag:
|
|
22282
|
+
tag: j.heading,
|
|
22283
22283
|
textDecoration: "underline",
|
|
22284
22284
|
fontWeight: "bold"
|
|
22285
22285
|
},
|
|
22286
22286
|
{
|
|
22287
|
-
tag:
|
|
22287
|
+
tag: j.emphasis,
|
|
22288
22288
|
fontStyle: "italic"
|
|
22289
22289
|
},
|
|
22290
22290
|
{
|
|
22291
|
-
tag:
|
|
22291
|
+
tag: j.strong,
|
|
22292
22292
|
fontWeight: "bold"
|
|
22293
22293
|
},
|
|
22294
22294
|
{
|
|
22295
|
-
tag:
|
|
22295
|
+
tag: j.strikethrough,
|
|
22296
22296
|
textDecoration: "line-through"
|
|
22297
22297
|
},
|
|
22298
22298
|
{
|
|
22299
|
-
tag:
|
|
22299
|
+
tag: j.keyword,
|
|
22300
22300
|
color: "#708"
|
|
22301
22301
|
},
|
|
22302
22302
|
{
|
|
22303
|
-
tag: [
|
|
22303
|
+
tag: [j.atom, j.bool, j.url, j.contentSeparator, j.labelName],
|
|
22304
22304
|
color: "#219"
|
|
22305
22305
|
},
|
|
22306
22306
|
{
|
|
22307
|
-
tag: [
|
|
22307
|
+
tag: [j.literal, j.inserted],
|
|
22308
22308
|
color: "#164"
|
|
22309
22309
|
},
|
|
22310
22310
|
{
|
|
22311
|
-
tag: [
|
|
22311
|
+
tag: [j.string, j.deleted],
|
|
22312
22312
|
color: "#a11"
|
|
22313
22313
|
},
|
|
22314
22314
|
{
|
|
22315
|
-
tag: [
|
|
22315
|
+
tag: [j.regexp, j.escape, /* @__PURE__ */ j.special(j.string)],
|
|
22316
22316
|
color: "#e40"
|
|
22317
22317
|
},
|
|
22318
22318
|
{
|
|
22319
|
-
tag: /* @__PURE__ */
|
|
22319
|
+
tag: /* @__PURE__ */ j.definition(j.variableName),
|
|
22320
22320
|
color: "#00f"
|
|
22321
22321
|
},
|
|
22322
22322
|
{
|
|
22323
|
-
tag: /* @__PURE__ */
|
|
22323
|
+
tag: /* @__PURE__ */ j.local(j.variableName),
|
|
22324
22324
|
color: "#30a"
|
|
22325
22325
|
},
|
|
22326
22326
|
{
|
|
22327
|
-
tag: [
|
|
22327
|
+
tag: [j.typeName, j.namespace],
|
|
22328
22328
|
color: "#085"
|
|
22329
22329
|
},
|
|
22330
22330
|
{
|
|
22331
|
-
tag:
|
|
22331
|
+
tag: j.className,
|
|
22332
22332
|
color: "#167"
|
|
22333
22333
|
},
|
|
22334
22334
|
{
|
|
22335
|
-
tag: [/* @__PURE__ */
|
|
22335
|
+
tag: [/* @__PURE__ */ j.special(j.variableName), j.macroName],
|
|
22336
22336
|
color: "#256"
|
|
22337
22337
|
},
|
|
22338
22338
|
{
|
|
22339
|
-
tag: /* @__PURE__ */
|
|
22339
|
+
tag: /* @__PURE__ */ j.definition(j.propertyName),
|
|
22340
22340
|
color: "#00c"
|
|
22341
22341
|
},
|
|
22342
22342
|
{
|
|
22343
|
-
tag:
|
|
22343
|
+
tag: j.comment,
|
|
22344
22344
|
color: "#940"
|
|
22345
22345
|
},
|
|
22346
22346
|
{
|
|
22347
|
-
tag:
|
|
22347
|
+
tag: j.invalid,
|
|
22348
22348
|
color: "#f00"
|
|
22349
22349
|
}
|
|
22350
22350
|
]), sC = /* @__PURE__ */ ue.baseTheme({
|
|
@@ -22489,7 +22489,7 @@ function yC(i, e) {
|
|
|
22489
22489
|
for (let l of e.split(" ")) {
|
|
22490
22490
|
let a = [];
|
|
22491
22491
|
for (let u of l.split(".")) {
|
|
22492
|
-
let c = i[u] ||
|
|
22492
|
+
let c = i[u] || j[u];
|
|
22493
22493
|
c ? typeof c == "function" ? a.length ? a = a.map(c) : Ua(u, `Modifier ${u} used at start of tag`) : a.length ? Ua(u, `Tag ${u} used as modifier`) : a = Array.isArray(c) ? c : [c] : Ua(u, `Unknown highlighting tag ${u}`);
|
|
22494
22494
|
}
|
|
22495
22495
|
for (let u of a)
|
|
@@ -24277,7 +24277,7 @@ class cA {
|
|
|
24277
24277
|
for (let k = 0, v = Math.min(e.length, 200), x = 0; k < v && h < a; ) {
|
|
24278
24278
|
let C = ri(e, k);
|
|
24279
24279
|
l < 0 && (c < a && C == t[c] && (o[c++] = k), d < a && (C == t[d] || C == n[d] ? (d == 0 && (m = k), p = k + 1, d++) : d = 0));
|
|
24280
|
-
let
|
|
24280
|
+
let E, q = C < 255 ? C >= 48 && C <= 57 || C >= 97 && C <= 122 ? 2 : C >= 65 && C <= 90 ? 1 : 0 : (E = Oc(C)) != E.toLowerCase() ? 1 : E != E.toUpperCase() ? 2 : 0;
|
|
24281
24281
|
(!k || q == 1 && g || x == 0 && q != 0) && (t[h] == C || n[h] == C && (f = !0) ? s[h++] = k : s.length && (y = !1)), x = q, k += Ni(C);
|
|
24282
24282
|
}
|
|
24283
24283
|
return h == a && s[0] == 0 && y ? this.result(-100 + (f ? -200 : 0), s, e) : d == a && m == 0 ? this.ret(-200 - e.length + (p == e.length ? 0 : -100), [0, p]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : d == a ? this.ret(-900 - e.length, [m, p]) : h == a ? this.result(-100 + (f ? -200 : 0) + -700 + (y ? 0 : -1100), s, e) : t.length == 2 ? null : this.result((r[0] ? -700 : 0) + -200 + -1100, r, e);
|
|
@@ -27335,14 +27335,14 @@ function em(i) {
|
|
|
27335
27335
|
return i.get;
|
|
27336
27336
|
}
|
|
27337
27337
|
const DO = Jp({
|
|
27338
|
-
String:
|
|
27339
|
-
Number:
|
|
27340
|
-
"True False":
|
|
27341
|
-
PropertyName:
|
|
27342
|
-
Null:
|
|
27343
|
-
", :":
|
|
27344
|
-
"[ ]":
|
|
27345
|
-
"{ }":
|
|
27338
|
+
String: j.string,
|
|
27339
|
+
Number: j.number,
|
|
27340
|
+
"True False": j.bool,
|
|
27341
|
+
PropertyName: j.propertyName,
|
|
27342
|
+
Null: j.null,
|
|
27343
|
+
", :": j.separator,
|
|
27344
|
+
"[ ]": j.squareBracket,
|
|
27345
|
+
"{ }": j.brace
|
|
27346
27346
|
}), qO = _l.deserialize({
|
|
27347
27347
|
version: 14,
|
|
27348
27348
|
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
@@ -27461,69 +27461,69 @@ const EO = "#e5c07b", tm = "#e06c75", LO = "#56b6c2", IO = "#ffffff", Gs = "#abb
|
|
|
27461
27461
|
}
|
|
27462
27462
|
}, { dark: !0 }), WO = /* @__PURE__ */ Xo.define([
|
|
27463
27463
|
{
|
|
27464
|
-
tag:
|
|
27464
|
+
tag: j.keyword,
|
|
27465
27465
|
color: NO
|
|
27466
27466
|
},
|
|
27467
27467
|
{
|
|
27468
|
-
tag: [
|
|
27468
|
+
tag: [j.name, j.deleted, j.character, j.propertyName, j.macroName],
|
|
27469
27469
|
color: tm
|
|
27470
27470
|
},
|
|
27471
27471
|
{
|
|
27472
|
-
tag: [/* @__PURE__ */
|
|
27472
|
+
tag: [/* @__PURE__ */ j.function(j.variableName), j.labelName],
|
|
27473
27473
|
color: VO
|
|
27474
27474
|
},
|
|
27475
27475
|
{
|
|
27476
|
-
tag: [
|
|
27476
|
+
tag: [j.color, /* @__PURE__ */ j.constant(j.name), /* @__PURE__ */ j.standard(j.name)],
|
|
27477
27477
|
color: im
|
|
27478
27478
|
},
|
|
27479
27479
|
{
|
|
27480
|
-
tag: [/* @__PURE__ */
|
|
27480
|
+
tag: [/* @__PURE__ */ j.definition(j.name), j.separator],
|
|
27481
27481
|
color: Gs
|
|
27482
27482
|
},
|
|
27483
27483
|
{
|
|
27484
|
-
tag: [
|
|
27484
|
+
tag: [j.typeName, j.className, j.number, j.changed, j.annotation, j.modifier, j.self, j.namespace],
|
|
27485
27485
|
color: EO
|
|
27486
27486
|
},
|
|
27487
27487
|
{
|
|
27488
|
-
tag: [
|
|
27488
|
+
tag: [j.operator, j.operatorKeyword, j.url, j.escape, j.regexp, j.link, /* @__PURE__ */ j.special(j.string)],
|
|
27489
27489
|
color: LO
|
|
27490
27490
|
},
|
|
27491
27491
|
{
|
|
27492
|
-
tag: [
|
|
27492
|
+
tag: [j.meta, j.comment],
|
|
27493
27493
|
color: sc
|
|
27494
27494
|
},
|
|
27495
27495
|
{
|
|
27496
|
-
tag:
|
|
27496
|
+
tag: j.strong,
|
|
27497
27497
|
fontWeight: "bold"
|
|
27498
27498
|
},
|
|
27499
27499
|
{
|
|
27500
|
-
tag:
|
|
27500
|
+
tag: j.emphasis,
|
|
27501
27501
|
fontStyle: "italic"
|
|
27502
27502
|
},
|
|
27503
27503
|
{
|
|
27504
|
-
tag:
|
|
27504
|
+
tag: j.strikethrough,
|
|
27505
27505
|
textDecoration: "line-through"
|
|
27506
27506
|
},
|
|
27507
27507
|
{
|
|
27508
|
-
tag:
|
|
27508
|
+
tag: j.link,
|
|
27509
27509
|
color: sc,
|
|
27510
27510
|
textDecoration: "underline"
|
|
27511
27511
|
},
|
|
27512
27512
|
{
|
|
27513
|
-
tag:
|
|
27513
|
+
tag: j.heading,
|
|
27514
27514
|
fontWeight: "bold",
|
|
27515
27515
|
color: tm
|
|
27516
27516
|
},
|
|
27517
27517
|
{
|
|
27518
|
-
tag: [
|
|
27518
|
+
tag: [j.atom, j.bool, /* @__PURE__ */ j.special(j.variableName)],
|
|
27519
27519
|
color: im
|
|
27520
27520
|
},
|
|
27521
27521
|
{
|
|
27522
|
-
tag: [
|
|
27522
|
+
tag: [j.processingInstruction, j.string, j.inserted],
|
|
27523
27523
|
color: FO
|
|
27524
27524
|
},
|
|
27525
27525
|
{
|
|
27526
|
-
tag:
|
|
27526
|
+
tag: j.invalid,
|
|
27527
27527
|
color: IO
|
|
27528
27528
|
}
|
|
27529
27529
|
]), QO = [jO, /* @__PURE__ */ hv(WO)], UO = /* @__PURE__ */ Pt({
|
|
@@ -27555,10 +27555,10 @@ const EO = "#e5c07b", tm = "#e06c75", LO = "#56b6c2", IO = "#ffffff", Gs = "#abb
|
|
|
27555
27555
|
}), f = fx(), d = G(""), m = G(null), p = G(!0);
|
|
27556
27556
|
ye(
|
|
27557
27557
|
() => n.value,
|
|
27558
|
-
(
|
|
27558
|
+
(D) => {
|
|
27559
27559
|
if (p.value) {
|
|
27560
27560
|
try {
|
|
27561
|
-
d.value = JSON.stringify(
|
|
27561
|
+
d.value = JSON.stringify(D || {}, null, 2), m.value = null;
|
|
27562
27562
|
} catch {
|
|
27563
27563
|
d.value = "{}";
|
|
27564
27564
|
}
|
|
@@ -27568,38 +27568,38 @@ const EO = "#e5c07b", tm = "#e06c75", LO = "#56b6c2", IO = "#ffffff", Gs = "#abb
|
|
|
27568
27568
|
{ immediate: !0 }
|
|
27569
27569
|
);
|
|
27570
27570
|
const g = b(() => {
|
|
27571
|
-
var
|
|
27572
|
-
const
|
|
27573
|
-
if (
|
|
27574
|
-
return
|
|
27575
|
-
const
|
|
27576
|
-
return
|
|
27571
|
+
var A, H;
|
|
27572
|
+
const D = t.schema["x-json-height"];
|
|
27573
|
+
if (D)
|
|
27574
|
+
return D;
|
|
27575
|
+
const w = (H = (A = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : A.jsoneditor) == null ? void 0 : H.height;
|
|
27576
|
+
return w || "300px";
|
|
27577
27577
|
}), y = b(() => {
|
|
27578
|
-
var
|
|
27579
|
-
const
|
|
27578
|
+
var A, H;
|
|
27579
|
+
const D = t.schema["x-json-dark-theme"];
|
|
27580
|
+
if (D !== void 0)
|
|
27581
|
+
return console.log("[JSON Editor] Using darkTheme from schema:", D), D === !0;
|
|
27582
|
+
const w = (H = (A = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : A.jsoneditor) == null ? void 0 : H.darkTheme;
|
|
27580
27583
|
if (w !== void 0)
|
|
27581
|
-
return console.log("[JSON Editor] Using darkTheme from schema:", w), w === !0;
|
|
27582
|
-
const M = (H = (D = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : D.jsoneditor) == null ? void 0 : H.darkTheme;
|
|
27583
|
-
if (M !== void 0)
|
|
27584
27584
|
return console.log(
|
|
27585
27585
|
"[JSON Editor] Using darkTheme from quickformsDefaults:",
|
|
27586
|
-
|
|
27587
|
-
),
|
|
27586
|
+
w
|
|
27587
|
+
), w === !0;
|
|
27588
27588
|
if (f.dark) {
|
|
27589
|
-
const
|
|
27590
|
-
return console.log("[JSON Editor] Auto-detected darkTheme from Quasar:",
|
|
27589
|
+
const I = f.dark.isActive;
|
|
27590
|
+
return console.log("[JSON Editor] Auto-detected darkTheme from Quasar:", I), I;
|
|
27591
27591
|
}
|
|
27592
27592
|
return console.log("[JSON Editor] Using default darkTheme: false"), !1;
|
|
27593
27593
|
});
|
|
27594
|
-
function k(
|
|
27595
|
-
const
|
|
27594
|
+
function k(D) {
|
|
27595
|
+
const w = D.state.doc.toString(), A = D.state.selection.main.head;
|
|
27596
27596
|
try {
|
|
27597
|
-
const H = JSON.parse(
|
|
27598
|
-
Math.round(N *
|
|
27599
|
-
|
|
27597
|
+
const H = JSON.parse(w), I = JSON.stringify(H, null, 2), N = w.length > 0 ? A / w.length : 0, K = Math.min(
|
|
27598
|
+
Math.round(N * I.length),
|
|
27599
|
+
I.length
|
|
27600
27600
|
);
|
|
27601
|
-
return
|
|
27602
|
-
changes: { from: 0, to:
|
|
27601
|
+
return D.dispatch({
|
|
27602
|
+
changes: { from: 0, to: D.state.doc.length, insert: I },
|
|
27603
27603
|
selection: { anchor: K }
|
|
27604
27604
|
}), m.value = null, !0;
|
|
27605
27605
|
} catch {
|
|
@@ -27607,32 +27607,32 @@ const EO = "#e5c07b", tm = "#e06c75", LO = "#56b6c2", IO = "#ffffff", Gs = "#abb
|
|
|
27607
27607
|
}
|
|
27608
27608
|
}
|
|
27609
27609
|
const v = b(() => {
|
|
27610
|
-
var
|
|
27611
|
-
const
|
|
27612
|
-
return
|
|
27610
|
+
var w, A;
|
|
27611
|
+
const D = t.schema["x-json-line-numbers"];
|
|
27612
|
+
return D !== void 0 ? D : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.lineNumbers) ?? !1;
|
|
27613
27613
|
}), x = b(() => {
|
|
27614
|
-
var
|
|
27615
|
-
const
|
|
27616
|
-
return
|
|
27614
|
+
var w, A;
|
|
27615
|
+
const D = t.schema["x-json-lint-gutter"];
|
|
27616
|
+
return D !== void 0 ? D : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.lintGutter) ?? !1;
|
|
27617
27617
|
}), C = b(() => {
|
|
27618
|
-
var
|
|
27619
|
-
const
|
|
27620
|
-
return
|
|
27621
|
-
}),
|
|
27622
|
-
var
|
|
27623
|
-
const
|
|
27624
|
-
return
|
|
27618
|
+
var w, A;
|
|
27619
|
+
const D = t.schema["x-json-tab-size"];
|
|
27620
|
+
return D !== void 0 ? D : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.tabSize) ?? 2;
|
|
27621
|
+
}), E = b(() => {
|
|
27622
|
+
var w, A;
|
|
27623
|
+
const D = t.schema["x-json-indent-with-tab"];
|
|
27624
|
+
return D !== void 0 ? D : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.indentWithTab) ?? !0;
|
|
27625
27625
|
}), q = b(() => {
|
|
27626
|
-
var
|
|
27627
|
-
const
|
|
27628
|
-
return
|
|
27629
|
-
}),
|
|
27626
|
+
var w, A;
|
|
27627
|
+
const D = t.schema["x-json-format-key"];
|
|
27628
|
+
return D !== void 0 ? D : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.formatKey) ?? "Ctrl-.";
|
|
27629
|
+
}), F = b(() => {
|
|
27630
27630
|
console.log("[JSON Editor] Building extensions:", {
|
|
27631
27631
|
showLineNumbers: v.value,
|
|
27632
27632
|
showLintGutter: x.value,
|
|
27633
27633
|
useDarkTheme: y.value
|
|
27634
27634
|
});
|
|
27635
|
-
const
|
|
27635
|
+
const D = [
|
|
27636
27636
|
RO(),
|
|
27637
27637
|
// Add keyboard shortcut for formatting
|
|
27638
27638
|
Yo.of([
|
|
@@ -27642,33 +27642,33 @@ const EO = "#e5c07b", tm = "#e06c75", LO = "#56b6c2", IO = "#ffffff", Gs = "#abb
|
|
|
27642
27642
|
}
|
|
27643
27643
|
])
|
|
27644
27644
|
];
|
|
27645
|
-
return v.value ? (console.log("[JSON Editor] Adding lineNumbers extension"),
|
|
27645
|
+
return v.value ? (console.log("[JSON Editor] Adding lineNumbers extension"), D.push(Wp())) : (console.log("[JSON Editor] Hiding gutters and line numbers"), D.push(
|
|
27646
27646
|
ue.theme({
|
|
27647
27647
|
".cm-gutters": {
|
|
27648
27648
|
display: "none !important"
|
|
27649
27649
|
}
|
|
27650
27650
|
})
|
|
27651
|
-
)), x.value && (
|
|
27652
|
-
}),
|
|
27651
|
+
)), x.value && (D.push(eO(PO())), D.push(uO())), y.value ? (console.log("[JSON Editor] Adding oneDark theme"), D.push(QO)) : console.log("[JSON Editor] NOT adding oneDark theme"), console.log("[JSON Editor] Final extensions count:", D.length), D;
|
|
27652
|
+
}), V = b(() => m.value || l.value), B = b(
|
|
27653
27653
|
() => `${v.value}-${x.value}-${y.value}-${q.value}`
|
|
27654
27654
|
);
|
|
27655
|
-
ye(
|
|
27655
|
+
ye(B, () => {
|
|
27656
27656
|
console.log("[JSON Editor] editorKey changed, forcing remount");
|
|
27657
|
-
const
|
|
27657
|
+
const D = d.value;
|
|
27658
27658
|
d.value = "", rt(() => {
|
|
27659
|
-
d.value =
|
|
27659
|
+
d.value = D;
|
|
27660
27660
|
});
|
|
27661
27661
|
});
|
|
27662
|
-
function P(
|
|
27662
|
+
function P(D, w) {
|
|
27663
27663
|
if (!p.value)
|
|
27664
27664
|
try {
|
|
27665
|
-
const
|
|
27666
|
-
r(
|
|
27667
|
-
} catch (
|
|
27668
|
-
m.value =
|
|
27665
|
+
const A = JSON.parse(D);
|
|
27666
|
+
r(A), m.value = null;
|
|
27667
|
+
} catch (A) {
|
|
27668
|
+
m.value = A.message;
|
|
27669
27669
|
}
|
|
27670
27670
|
}
|
|
27671
|
-
const R = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, $q: f, code: d, parseError: m, isInitializing: p, editorHeight: g, useDarkTheme: y, formatJSON: k, showLineNumbers: v, showLintGutter: x, tabSize: C, indentWithTab:
|
|
27671
|
+
const R = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, $q: f, code: d, parseError: m, isInitializing: p, editorHeight: g, useDarkTheme: y, formatJSON: k, showLineNumbers: v, showLintGutter: x, tabSize: C, indentWithTab: E, formatKey: q, extensions: F, displayError: V, editorKey: B, handleChange: P, get Codemirror() {
|
|
27672
27672
|
return bO;
|
|
27673
27673
|
} };
|
|
27674
27674
|
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
@@ -27800,7 +27800,7 @@ const sm = /* @__PURE__ */ Ut(UO, [["render", eT], ["__file", "/Users/zachsherbo
|
|
|
27800
27800
|
autocompleteThreshold: v,
|
|
27801
27801
|
useInput: x,
|
|
27802
27802
|
fillInput: C,
|
|
27803
|
-
hideSelected:
|
|
27803
|
+
hideSelected: E,
|
|
27804
27804
|
...q
|
|
27805
27805
|
} = y;
|
|
27806
27806
|
return q;
|
|
@@ -27812,9 +27812,9 @@ const sm = /* @__PURE__ */ Ut(UO, [["render", eT], ["__file", "/Users/zachsherbo
|
|
|
27812
27812
|
if (!k) return [];
|
|
27813
27813
|
const v = y["x-enum-labels"];
|
|
27814
27814
|
return k.map((C) => {
|
|
27815
|
-
let
|
|
27816
|
-
return v && C in v && (
|
|
27817
|
-
label:
|
|
27815
|
+
let E = String(C);
|
|
27816
|
+
return v && C in v && (E = v[C]), {
|
|
27817
|
+
label: E,
|
|
27818
27818
|
value: C
|
|
27819
27819
|
};
|
|
27820
27820
|
});
|
|
@@ -28010,8 +28010,8 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28010
28010
|
},
|
|
28011
28011
|
setup(i, { slots: e, emit: t }) {
|
|
28012
28012
|
const { proxy: n } = je(), { $q: r } = n, { registerTick: o } = Mr(), { registerTick: s } = Mr(), { registerTick: l } = Mr(), { registerTimeout: a, removeTimeout: u } = ko(), { registerTimeout: c, removeTimeout: h } = ko(), f = G(null), d = G(null), m = G(i.modelValue), p = G(!1), g = G(!0), y = G(!1), k = G(!1), v = [], x = G(0), C = G(!1);
|
|
28013
|
-
let
|
|
28014
|
-
const
|
|
28013
|
+
let E = null, q = null, F;
|
|
28014
|
+
const V = b(() => ({
|
|
28015
28015
|
activeClass: i.activeClass,
|
|
28016
28016
|
activeColor: i.activeColor,
|
|
28017
28017
|
activeBgColor: i.activeBgColor,
|
|
@@ -28023,7 +28023,7 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28023
28023
|
narrowIndicator: i.narrowIndicator,
|
|
28024
28024
|
inlineLabel: i.inlineLabel,
|
|
28025
28025
|
noCaps: i.noCaps
|
|
28026
|
-
})),
|
|
28026
|
+
})), B = b(() => {
|
|
28027
28027
|
const X = x.value, ve = m.value;
|
|
28028
28028
|
for (let we = 0; we < X; we++)
|
|
28029
28029
|
if (v[we].name.value === ve)
|
|
@@ -28031,13 +28031,13 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28031
28031
|
return !1;
|
|
28032
28032
|
}), P = b(() => `q-tabs__content--align-${p.value === !0 ? "left" : k.value === !0 ? "justify" : i.align}`), R = b(
|
|
28033
28033
|
() => `q-tabs row no-wrap items-center q-tabs--${p.value === !0 ? "" : "not-"}scrollable q-tabs--${i.vertical === !0 ? "vertical" : "horizontal"} q-tabs__arrows--${i.outsideArrows === !0 ? "outside" : "inside"} q-tabs--mobile-with${i.mobileArrows === !0 ? "" : "out"}-arrows` + (i.dense === !0 ? " q-tabs--dense" : "") + (i.shrink === !0 ? " col-shrink" : "") + (i.stretch === !0 ? " self-stretch" : "")
|
|
28034
|
-
),
|
|
28034
|
+
), D = b(
|
|
28035
28035
|
() => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + P.value + (i.contentClass !== void 0 ? ` ${i.contentClass}` : "")
|
|
28036
|
-
),
|
|
28037
|
-
ye(
|
|
28038
|
-
|
|
28036
|
+
), w = b(() => i.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), A = b(() => i.vertical !== !0 && r.lang.rtl === !0), H = b(() => wo === !1 && A.value === !0);
|
|
28037
|
+
ye(A, T), ye(() => i.modelValue, (X) => {
|
|
28038
|
+
I({ name: X, setCurrent: !0, skipEmit: !0 });
|
|
28039
28039
|
}), ye(() => i.outsideArrows, N);
|
|
28040
|
-
function
|
|
28040
|
+
function I({ name: X, setCurrent: ve, skipEmit: we }) {
|
|
28041
28041
|
m.value !== X && (we !== !0 && i["onUpdate:modelValue"] !== void 0 && t("update:modelValue", X), (ve === !0 || i["onUpdate:modelValue"] === void 0) && (Y(m.value, X), m.value = X));
|
|
28042
28042
|
}
|
|
28043
28043
|
function N() {
|
|
@@ -28049,12 +28049,12 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28049
28049
|
});
|
|
28050
28050
|
}
|
|
28051
28051
|
function K(X) {
|
|
28052
|
-
if (
|
|
28053
|
-
const ve = X[
|
|
28054
|
-
d.value[
|
|
28052
|
+
if (w.value === void 0 || d.value === null) return;
|
|
28053
|
+
const ve = X[w.value.container], we = Math.min(
|
|
28054
|
+
d.value[w.value.scroll],
|
|
28055
28055
|
Array.prototype.reduce.call(
|
|
28056
28056
|
d.value.children,
|
|
28057
|
-
(ze, Oe) => ze + (Oe[
|
|
28057
|
+
(ze, Oe) => ze + (Oe[w.value.content] || 0),
|
|
28058
28058
|
0
|
|
28059
28059
|
)
|
|
28060
28060
|
), Ue = ve > 0 && we > ve;
|
|
@@ -28066,17 +28066,17 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28066
28066
|
at = !1;
|
|
28067
28067
|
else if (we && Ue) {
|
|
28068
28068
|
const ze = we.tabIndicatorRef.value, Oe = Ue.tabIndicatorRef.value;
|
|
28069
|
-
|
|
28069
|
+
E !== null && (clearTimeout(E), E = null), ze.style.transition = "none", ze.style.transform = "none", Oe.style.transition = "none", Oe.style.transform = "none";
|
|
28070
28070
|
const qe = ze.getBoundingClientRect(), Xe = Oe.getBoundingClientRect();
|
|
28071
28071
|
Oe.style.transform = i.vertical === !0 ? `translate3d(0,${qe.top - Xe.top}px,0) scale3d(1,${Xe.height ? qe.height / Xe.height : 1},1)` : `translate3d(${qe.left - Xe.left}px,0,0) scale3d(${Xe.width ? qe.width / Xe.width : 1},1,1)`, l(() => {
|
|
28072
|
-
|
|
28073
|
-
|
|
28072
|
+
E = setTimeout(() => {
|
|
28073
|
+
E = null, Oe.style.transition = "transform .25s cubic-bezier(.4, 0, .2, 1)", Oe.style.transform = "none";
|
|
28074
28074
|
}, 70);
|
|
28075
28075
|
});
|
|
28076
28076
|
}
|
|
28077
|
-
Ue && p.value === !0 &&
|
|
28077
|
+
Ue && p.value === !0 && M(Ue.rootRef.value);
|
|
28078
28078
|
}
|
|
28079
|
-
function
|
|
28079
|
+
function M(X) {
|
|
28080
28080
|
const { left: ve, width: we, top: Ue, height: ze } = d.value.getBoundingClientRect(), Oe = X.getBoundingClientRect();
|
|
28081
28081
|
let qe = i.vertical === !0 ? Oe.top - Ue : Oe.left - ve;
|
|
28082
28082
|
if (qe < 0) {
|
|
@@ -28089,18 +28089,18 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28089
28089
|
const X = d.value;
|
|
28090
28090
|
if (X === null) return;
|
|
28091
28091
|
const ve = X.getBoundingClientRect(), we = i.vertical === !0 ? X.scrollTop : Math.abs(X.scrollLeft);
|
|
28092
|
-
|
|
28092
|
+
A.value === !0 ? (g.value = Math.ceil(we + ve.width) < X.scrollWidth - 1, y.value = we > 0) : (g.value = we > 0, y.value = i.vertical === !0 ? Math.ceil(we + ve.height) < X.scrollHeight : Math.ceil(we + ve.width) < X.scrollWidth);
|
|
28093
28093
|
}
|
|
28094
|
-
function
|
|
28094
|
+
function z(X) {
|
|
28095
28095
|
q !== null && clearInterval(q), q = setInterval(() => {
|
|
28096
28096
|
ee(X) === !0 && ce();
|
|
28097
28097
|
}, 5);
|
|
28098
28098
|
}
|
|
28099
28099
|
function J() {
|
|
28100
|
-
|
|
28100
|
+
z(H.value === !0 ? Number.MAX_SAFE_INTEGER : 0);
|
|
28101
28101
|
}
|
|
28102
28102
|
function oe() {
|
|
28103
|
-
|
|
28103
|
+
z(H.value === !0 ? 0 : Number.MAX_SAFE_INTEGER);
|
|
28104
28104
|
}
|
|
28105
28105
|
function ce() {
|
|
28106
28106
|
q !== null && (clearInterval(q), q = null);
|
|
@@ -28112,13 +28112,13 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28112
28112
|
), Ue = we.length;
|
|
28113
28113
|
if (Ue === 0) return;
|
|
28114
28114
|
if (X === 36)
|
|
28115
|
-
return
|
|
28115
|
+
return M(we[0]), we[0].focus(), !0;
|
|
28116
28116
|
if (X === 35)
|
|
28117
|
-
return
|
|
28117
|
+
return M(we[Ue - 1]), we[Ue - 1].focus(), !0;
|
|
28118
28118
|
const ze = X === (i.vertical === !0 ? 38 : 37), Oe = X === (i.vertical === !0 ? 40 : 39), qe = ze === !0 ? -1 : Oe === !0 ? 1 : void 0;
|
|
28119
28119
|
if (qe !== void 0) {
|
|
28120
|
-
const Xe =
|
|
28121
|
-
return ut >= 0 && ut < Ue && (
|
|
28120
|
+
const Xe = A.value === !0 ? -1 : 1, ut = we.indexOf(ve) + qe * Xe;
|
|
28121
|
+
return ut >= 0 && ut < Ue && (M(we[ut]), we[ut].focus({ preventScroll: !0 })), !0;
|
|
28122
28122
|
}
|
|
28123
28123
|
}
|
|
28124
28124
|
const Be = b(() => H.value === !0 ? { get: (X) => Math.abs(X.scrollLeft), set: (X, ve) => {
|
|
@@ -28179,12 +28179,12 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28179
28179
|
at = !1;
|
|
28180
28180
|
return;
|
|
28181
28181
|
}
|
|
28182
|
-
|
|
28182
|
+
I({ name: X, setCurrent: !0 });
|
|
28183
28183
|
}
|
|
28184
28184
|
function Qe(X) {
|
|
28185
28185
|
if (u(), C.value !== !0 && f.value !== null && X.target && typeof X.target.closest == "function") {
|
|
28186
28186
|
const ve = X.target.closest(".q-tab");
|
|
28187
|
-
ve && f.value.contains(ve) === !0 && (C.value = !0, p.value === !0 &&
|
|
28187
|
+
ve && f.value.contains(ve) === !0 && (C.value = !0, p.value === !0 && M(ve));
|
|
28188
28188
|
}
|
|
28189
28189
|
}
|
|
28190
28190
|
function wt() {
|
|
@@ -28196,10 +28196,10 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28196
28196
|
gi.avoidRouteWatcher === !1 ? c(Ie) : h();
|
|
28197
28197
|
}
|
|
28198
28198
|
function Yt() {
|
|
28199
|
-
if (
|
|
28199
|
+
if (F === void 0) {
|
|
28200
28200
|
const X = ye(() => n.$route.fullPath, _t);
|
|
28201
|
-
|
|
28202
|
-
X(),
|
|
28201
|
+
F = () => {
|
|
28202
|
+
X(), F = void 0;
|
|
28203
28203
|
};
|
|
28204
28204
|
}
|
|
28205
28205
|
}
|
|
@@ -28207,33 +28207,33 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28207
28207
|
v.push(X), x.value++, N(), X.routeData === void 0 || n.$route === void 0 ? c(() => {
|
|
28208
28208
|
if (p.value === !0) {
|
|
28209
28209
|
const ve = m.value, we = ve != null && ve !== "" ? v.find((Ue) => Ue.name.value === ve) : null;
|
|
28210
|
-
we &&
|
|
28210
|
+
we && M(we.rootRef.value);
|
|
28211
28211
|
}
|
|
28212
28212
|
}) : (Yt(), X.routeData.hasRouterLink.value === !0 && _t());
|
|
28213
28213
|
}
|
|
28214
28214
|
function dt(X) {
|
|
28215
|
-
v.splice(v.indexOf(X), 1), x.value--, N(),
|
|
28215
|
+
v.splice(v.indexOf(X), 1), x.value--, N(), F !== void 0 && X.routeData !== void 0 && (v.every((ve) => ve.routeData === void 0) === !0 && F(), _t());
|
|
28216
28216
|
}
|
|
28217
28217
|
const gi = {
|
|
28218
28218
|
currentModel: m,
|
|
28219
|
-
tabProps:
|
|
28219
|
+
tabProps: V,
|
|
28220
28220
|
hasFocus: C,
|
|
28221
|
-
hasActiveTab:
|
|
28221
|
+
hasActiveTab: B,
|
|
28222
28222
|
registerTab: Bt,
|
|
28223
28223
|
unregisterTab: dt,
|
|
28224
28224
|
verifyRouteModel: _t,
|
|
28225
|
-
updateModel:
|
|
28225
|
+
updateModel: I,
|
|
28226
28226
|
onKbdNavigate: se,
|
|
28227
28227
|
avoidRouteWatcher: !1
|
|
28228
28228
|
// false | string (uid)
|
|
28229
28229
|
};
|
|
28230
28230
|
vm(Cm, gi);
|
|
28231
28231
|
function Bi() {
|
|
28232
|
-
|
|
28232
|
+
E !== null && clearTimeout(E), ce(), F == null || F();
|
|
28233
28233
|
}
|
|
28234
28234
|
let Gt, at;
|
|
28235
28235
|
return ht(Bi), No(() => {
|
|
28236
|
-
Gt =
|
|
28236
|
+
Gt = F !== void 0, Bi();
|
|
28237
28237
|
}), lc(() => {
|
|
28238
28238
|
Gt === !0 && (Yt(), at = !0, _t()), N();
|
|
28239
28239
|
}), () => O("div", {
|
|
@@ -28246,7 +28246,7 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28246
28246
|
O(oT, { onResize: K }),
|
|
28247
28247
|
O("div", {
|
|
28248
28248
|
ref: d,
|
|
28249
|
-
class:
|
|
28249
|
+
class: D.value,
|
|
28250
28250
|
onScroll: T
|
|
28251
28251
|
}, qt(e.default)),
|
|
28252
28252
|
O(kt, {
|
|
@@ -28335,11 +28335,11 @@ function fT(i, e, t, n) {
|
|
|
28335
28335
|
class: "q-tab__alert" + (i.alert !== !0 ? ` text-${i.alert}` : "")
|
|
28336
28336
|
})
|
|
28337
28337
|
), v === !0 && x.push(C);
|
|
28338
|
-
const
|
|
28338
|
+
const E = [
|
|
28339
28339
|
O("div", { class: "q-focus-helper", tabindex: -1, ref: s }),
|
|
28340
28340
|
O("div", { class: f.value }, xn(e.default, x))
|
|
28341
28341
|
];
|
|
28342
|
-
return v === !1 &&
|
|
28342
|
+
return v === !1 && E.push(C), E;
|
|
28343
28343
|
}
|
|
28344
28344
|
const y = {
|
|
28345
28345
|
name: b(() => i.name),
|
|
@@ -28407,115 +28407,117 @@ const dT = Je({
|
|
|
28407
28407
|
}), h = b(() => {
|
|
28408
28408
|
const w = t.schema["x-quasar-props"] || {};
|
|
28409
28409
|
return { ...t.schema["x-component-props"] || {}, ...w };
|
|
28410
|
-
}), f = b(() => t.schema.oneOf || t.schema.anyOf || []), d = G(0)
|
|
28410
|
+
}), f = b(() => t.schema.oneOf || t.schema.anyOf || []), d = G(0), m = (w) => {
|
|
28411
|
+
const A = {};
|
|
28412
|
+
if (!(w != null && w.properties)) return A;
|
|
28413
|
+
for (const [H, I] of Object.entries(w.properties))
|
|
28414
|
+
I.const !== void 0 && (A[H] = I.const);
|
|
28415
|
+
return A;
|
|
28416
|
+
};
|
|
28411
28417
|
Si(() => {
|
|
28412
28418
|
let w = 0;
|
|
28413
28419
|
if (n.value && typeof n.value == "object" && Object.keys(n.value).length > 0) {
|
|
28414
|
-
const
|
|
28415
|
-
|
|
28420
|
+
const H = f.value.findIndex((I) => Is.validate(I, n.value).valid);
|
|
28421
|
+
H !== -1 && (w = H);
|
|
28416
28422
|
}
|
|
28417
28423
|
d.value = w;
|
|
28418
|
-
const
|
|
28419
|
-
if (
|
|
28420
|
-
const
|
|
28421
|
-
|
|
28422
|
-
|
|
28423
|
-
|
|
28424
|
-
}
|
|
28424
|
+
const A = f.value[w];
|
|
28425
|
+
if (A && A.properties) {
|
|
28426
|
+
const H = n.value && typeof n.value == "object" ? n.value : {}, I = Is.getDefaultValue(A) || {}, N = m(A), K = { ...I, ...H, ...N }, Y = Object.keys(K).some((T) => !(T in H)), M = Object.entries(N).some(
|
|
28427
|
+
([T, z]) => H[T] !== z
|
|
28428
|
+
);
|
|
28429
|
+
(Y || M) && r && r(K, !1);
|
|
28425
28430
|
}
|
|
28426
28431
|
});
|
|
28427
|
-
const
|
|
28428
|
-
const w =
|
|
28429
|
-
return !w || !w.properties ? [] : Object.entries(w.properties).map(([
|
|
28430
|
-
key:
|
|
28431
|
-
schema:
|
|
28432
|
-
path: t.path ? `${t.path}.${
|
|
28432
|
+
const p = b(() => f.value[d.value]), g = b(() => {
|
|
28433
|
+
const w = p.value;
|
|
28434
|
+
return !w || !w.properties ? [] : Object.entries(w.properties).map(([A, H]) => ({
|
|
28435
|
+
key: A,
|
|
28436
|
+
schema: H,
|
|
28437
|
+
path: t.path ? `${t.path}.${A}` : A
|
|
28433
28438
|
}));
|
|
28434
|
-
}), g = b(() => {
|
|
28435
|
-
const w = m.value;
|
|
28436
|
-
return w && w.properties && !w.oneOf && !w.anyOf && !w.allOf;
|
|
28437
28439
|
}), y = b(() => {
|
|
28438
|
-
|
|
28440
|
+
const w = p.value;
|
|
28441
|
+
return w && w.properties && !w.oneOf && !w.anyOf && !w.allOf;
|
|
28442
|
+
}), k = b(() => {
|
|
28443
|
+
var H, I;
|
|
28439
28444
|
const w = t.schema["x-oneof-style"];
|
|
28440
28445
|
if (w)
|
|
28441
28446
|
return w;
|
|
28442
|
-
const
|
|
28443
|
-
return
|
|
28444
|
-
}),
|
|
28447
|
+
const A = (I = (H = c == null ? void 0 : c.componentDefaults) == null ? void 0 : H.oneOf) == null ? void 0 : I.displayStyle;
|
|
28448
|
+
return A || (f.value.length <= 4 ? "tabs" : "dropdown");
|
|
28449
|
+
}), v = b(() => {
|
|
28445
28450
|
const w = f.value[0];
|
|
28446
28451
|
if (!(w != null && w.properties)) return null;
|
|
28447
|
-
for (const [
|
|
28448
|
-
if (
|
|
28449
|
-
return
|
|
28452
|
+
for (const [A, H] of Object.entries(w.properties))
|
|
28453
|
+
if (H.const !== void 0)
|
|
28454
|
+
return A;
|
|
28450
28455
|
return null;
|
|
28451
|
-
}),
|
|
28452
|
-
var
|
|
28453
|
-
const
|
|
28454
|
-
return !
|
|
28455
|
-
},
|
|
28456
|
-
const
|
|
28457
|
-
if (
|
|
28458
|
-
if (Array.isArray(
|
|
28459
|
-
return
|
|
28460
|
-
if (typeof
|
|
28461
|
-
const
|
|
28462
|
-
if (
|
|
28463
|
-
return
|
|
28456
|
+
}), x = (w) => {
|
|
28457
|
+
var H;
|
|
28458
|
+
const A = v.value;
|
|
28459
|
+
return !A || !((H = w == null ? void 0 : w.properties) != null && H[A]) ? null : w.properties[A].const ?? null;
|
|
28460
|
+
}, C = (w, A) => {
|
|
28461
|
+
const H = t.schema["x-oneof-labels"];
|
|
28462
|
+
if (H) {
|
|
28463
|
+
if (Array.isArray(H) && H[A])
|
|
28464
|
+
return H[A];
|
|
28465
|
+
if (typeof H == "object") {
|
|
28466
|
+
const I = x(w);
|
|
28467
|
+
if (I && H[I])
|
|
28468
|
+
return H[I];
|
|
28464
28469
|
}
|
|
28465
28470
|
}
|
|
28466
|
-
return w.title || `Option ${
|
|
28467
|
-
},
|
|
28471
|
+
return w.title || `Option ${A + 1}`;
|
|
28472
|
+
}, E = b(() => {
|
|
28468
28473
|
const w = t.schema["x-oneof-descriptions"];
|
|
28469
28474
|
if (!w) return null;
|
|
28470
|
-
const
|
|
28471
|
-
if (!
|
|
28475
|
+
const A = p.value;
|
|
28476
|
+
if (!A) return null;
|
|
28472
28477
|
if (Array.isArray(w) && w[d.value])
|
|
28473
28478
|
return w[d.value];
|
|
28474
28479
|
if (typeof w == "object") {
|
|
28475
|
-
const
|
|
28476
|
-
if (
|
|
28477
|
-
return w[
|
|
28480
|
+
const H = x(A);
|
|
28481
|
+
if (H && w[H])
|
|
28482
|
+
return w[H];
|
|
28478
28483
|
}
|
|
28479
28484
|
return null;
|
|
28480
|
-
}),
|
|
28481
|
-
label:
|
|
28482
|
-
value:
|
|
28483
|
-
}))),
|
|
28484
|
-
var
|
|
28485
|
+
}), q = b(() => f.value.map((w, A) => ({
|
|
28486
|
+
label: C(w, A),
|
|
28487
|
+
value: A
|
|
28488
|
+
}))), F = b(() => {
|
|
28489
|
+
var A, H;
|
|
28485
28490
|
const w = t.schema["x-oneof-select-label"];
|
|
28486
|
-
return w || ((
|
|
28487
|
-
}), V = G(
|
|
28491
|
+
return w || ((H = (A = c == null ? void 0 : c.componentDefaults) == null ? void 0 : A.oneOf) == null ? void 0 : H.selectLabel) || "Select Option";
|
|
28492
|
+
}), V = G(q.value);
|
|
28488
28493
|
ye(
|
|
28489
|
-
|
|
28494
|
+
q,
|
|
28490
28495
|
(w) => {
|
|
28491
28496
|
V.value = w;
|
|
28492
28497
|
},
|
|
28493
28498
|
{ immediate: !0 }
|
|
28494
28499
|
);
|
|
28495
|
-
const
|
|
28496
|
-
var
|
|
28500
|
+
const B = b(() => {
|
|
28501
|
+
var A, H;
|
|
28497
28502
|
const w = t.schema["x-component-props"];
|
|
28498
|
-
return (w == null ? void 0 : w.autocomplete) !== void 0 ? w.autocomplete : ((
|
|
28499
|
-
}),
|
|
28500
|
-
|
|
28503
|
+
return (w == null ? void 0 : w.autocomplete) !== void 0 ? w.autocomplete : ((H = (A = c == null ? void 0 : c.quickformsDefaults) == null ? void 0 : A.select) == null ? void 0 : H.autocomplete) !== void 0 ? c.quickformsDefaults.select.autocomplete : !0;
|
|
28504
|
+
}), D = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, fieldId: a, fieldGap: u, formContext: c, quasarProps: h, options: f, selectedIndex: d, extractConstValues: m, activeSchema: p, activeProperties: g, shouldRenderPropertiesInline: y, displayStyle: k, discriminatorField: v, getDiscriminatorValue: x, getOptionLabel: C, activeOptionDescription: E, allSelectOptions: q, selectLabel: F, filteredOptions: V, useFilter: B, filterFn: (w, A) => {
|
|
28505
|
+
A(() => {
|
|
28501
28506
|
if (w === "")
|
|
28502
|
-
V.value =
|
|
28507
|
+
V.value = q.value;
|
|
28503
28508
|
else {
|
|
28504
|
-
const
|
|
28505
|
-
V.value =
|
|
28506
|
-
(
|
|
28509
|
+
const H = w.toLowerCase();
|
|
28510
|
+
V.value = q.value.filter(
|
|
28511
|
+
(I) => I.label.toLowerCase().includes(H)
|
|
28507
28512
|
);
|
|
28508
28513
|
}
|
|
28509
28514
|
});
|
|
28510
28515
|
}, handleOptionChange: (w) => {
|
|
28511
28516
|
d.value = w;
|
|
28512
|
-
const
|
|
28513
|
-
if (
|
|
28514
|
-
const
|
|
28515
|
-
|
|
28516
|
-
const F = { ...H, ...D };
|
|
28517
|
-
r && r(F, !1);
|
|
28518
|
-
}
|
|
28517
|
+
const A = f.value[w];
|
|
28518
|
+
if (A && A.properties) {
|
|
28519
|
+
const H = n.value && typeof n.value == "object" ? n.value : {}, I = Is.getDefaultValue(A) || {}, N = m(A), K = { ...I, ...H, ...N };
|
|
28520
|
+
r && r(K, !1);
|
|
28519
28521
|
}
|
|
28520
28522
|
}, get QCard() {
|
|
28521
28523
|
return Ac;
|
|
@@ -28530,7 +28532,7 @@ const dT = Je({
|
|
|
28530
28532
|
}, get FieldRenderer() {
|
|
28531
28533
|
return Rl;
|
|
28532
28534
|
} };
|
|
28533
|
-
return Object.defineProperty(
|
|
28535
|
+
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
28534
28536
|
}
|
|
28535
28537
|
}), gT = {
|
|
28536
28538
|
key: 0,
|
|
@@ -29013,9 +29015,9 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29013
29015
|
} = Qt(t.path, t.schema, {
|
|
29014
29016
|
label: t.label
|
|
29015
29017
|
}), h = Bm(), f = b(() => h == null ? void 0 : h.quickformsDefaults), d = b(() => {
|
|
29016
|
-
var T,
|
|
29017
|
-
const Y = t.schema["x-use-template-syntax"],
|
|
29018
|
-
return Y ??
|
|
29018
|
+
var T, z;
|
|
29019
|
+
const Y = t.schema["x-use-template-syntax"], M = (z = (T = f.value) == null ? void 0 : T.jsonlogicbuilder) == null ? void 0 : z.useTemplateSyntax;
|
|
29020
|
+
return Y ?? M ?? !1;
|
|
29019
29021
|
}), m = G(fm()), p = G(!1), g = G(""), y = G(null), k = G(!1);
|
|
29020
29022
|
ye(
|
|
29021
29023
|
() => n.value,
|
|
@@ -29043,21 +29045,21 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29043
29045
|
function C(Y) {
|
|
29044
29046
|
Y.push(BT()), v();
|
|
29045
29047
|
}
|
|
29046
|
-
function
|
|
29047
|
-
const T = Y.findIndex((
|
|
29048
|
+
function E(Y, M) {
|
|
29049
|
+
const T = Y.findIndex((z) => z.id === M);
|
|
29048
29050
|
T !== -1 && (Y.splice(T, 1), v());
|
|
29049
29051
|
}
|
|
29050
|
-
function q(Y,
|
|
29051
|
-
Y.left =
|
|
29052
|
+
function q(Y, M) {
|
|
29053
|
+
Y.left = M, v();
|
|
29052
29054
|
}
|
|
29053
|
-
function
|
|
29054
|
-
Y.operator =
|
|
29055
|
+
function F(Y, M) {
|
|
29056
|
+
Y.operator = M, v();
|
|
29055
29057
|
}
|
|
29056
|
-
function
|
|
29057
|
-
Y.right =
|
|
29058
|
+
function V(Y, M) {
|
|
29059
|
+
Y.right = M, v();
|
|
29058
29060
|
}
|
|
29059
|
-
function
|
|
29060
|
-
Y.logic =
|
|
29061
|
+
function B(Y, M) {
|
|
29062
|
+
Y.logic = M, v();
|
|
29061
29063
|
}
|
|
29062
29064
|
function P() {
|
|
29063
29065
|
if (p.value)
|
|
@@ -29079,83 +29081,83 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29079
29081
|
function R(Y) {
|
|
29080
29082
|
g.value = Y;
|
|
29081
29083
|
try {
|
|
29082
|
-
const
|
|
29083
|
-
y.value = null, k.value = !0, r(
|
|
29084
|
-
} catch (
|
|
29085
|
-
y.value =
|
|
29086
|
-
}
|
|
29087
|
-
}
|
|
29088
|
-
const
|
|
29089
|
-
var T,
|
|
29090
|
-
const Y = t.schema["x-operator-display"],
|
|
29091
|
-
return Y ||
|
|
29092
|
-
}),
|
|
29093
|
-
var T,
|
|
29094
|
-
const Y = t.schema["x-allowed-operators"],
|
|
29095
|
-
return Y ||
|
|
29096
|
-
}),
|
|
29084
|
+
const M = JSON.parse(Y);
|
|
29085
|
+
y.value = null, k.value = !0, r(M);
|
|
29086
|
+
} catch (M) {
|
|
29087
|
+
y.value = M.message;
|
|
29088
|
+
}
|
|
29089
|
+
}
|
|
29090
|
+
const D = b(() => {
|
|
29091
|
+
var T, z;
|
|
29092
|
+
const Y = t.schema["x-operator-display"], M = (z = (T = f.value) == null ? void 0 : T.jsonlogicbuilder) == null ? void 0 : z.operatorDisplayMode;
|
|
29093
|
+
return Y || M || "short";
|
|
29094
|
+
}), w = b(() => {
|
|
29095
|
+
var T, z;
|
|
29096
|
+
const Y = t.schema["x-allowed-operators"], M = (z = (T = f.value) == null ? void 0 : T.jsonlogicbuilder) == null ? void 0 : z.allowedOperators;
|
|
29097
|
+
return Y || M || null;
|
|
29098
|
+
}), A = b(() => {
|
|
29097
29099
|
let Y = M0;
|
|
29098
|
-
return
|
|
29099
|
-
(
|
|
29100
|
-
)), Y.map((
|
|
29101
|
-
const T =
|
|
29102
|
-
let
|
|
29100
|
+
return w.value && (Y = Y.filter(
|
|
29101
|
+
(M) => w.value.includes(M.value)
|
|
29102
|
+
)), Y.map((M) => {
|
|
29103
|
+
const T = D.value;
|
|
29104
|
+
let z = "";
|
|
29103
29105
|
switch (T) {
|
|
29104
29106
|
case "icon":
|
|
29105
|
-
|
|
29107
|
+
z = M.shortLabel || M.symbol || M.label;
|
|
29106
29108
|
break;
|
|
29107
29109
|
case "symbol":
|
|
29108
|
-
|
|
29110
|
+
z = M.symbol || M.label;
|
|
29109
29111
|
break;
|
|
29110
29112
|
case "short":
|
|
29111
|
-
|
|
29113
|
+
z = M.shortLabel || M.label;
|
|
29112
29114
|
break;
|
|
29113
29115
|
case "verbose":
|
|
29114
|
-
|
|
29116
|
+
z = M.symbol ? `${M.symbol} ${M.label}` : M.label;
|
|
29115
29117
|
break;
|
|
29116
29118
|
default:
|
|
29117
|
-
|
|
29119
|
+
z = M.symbol || M.label;
|
|
29118
29120
|
}
|
|
29119
29121
|
return {
|
|
29120
|
-
value:
|
|
29121
|
-
label:
|
|
29122
|
-
icon:
|
|
29123
|
-
description:
|
|
29122
|
+
value: M.value,
|
|
29123
|
+
label: z,
|
|
29124
|
+
icon: M.icon,
|
|
29125
|
+
description: M.description,
|
|
29124
29126
|
// Store searchTerms for custom filter function
|
|
29125
|
-
searchTerms:
|
|
29127
|
+
searchTerms: M.searchTerms || []
|
|
29126
29128
|
};
|
|
29127
29129
|
});
|
|
29128
|
-
}), H = G(
|
|
29129
|
-
ye(
|
|
29130
|
+
}), H = G(A.value);
|
|
29131
|
+
ye(A, (Y) => {
|
|
29130
29132
|
H.value = Y;
|
|
29131
29133
|
});
|
|
29132
|
-
function
|
|
29134
|
+
function I(Y, M) {
|
|
29133
29135
|
if (Y === "") {
|
|
29134
|
-
|
|
29135
|
-
H.value =
|
|
29136
|
+
M(() => {
|
|
29137
|
+
H.value = A.value;
|
|
29136
29138
|
});
|
|
29137
29139
|
return;
|
|
29138
29140
|
}
|
|
29139
|
-
|
|
29141
|
+
M(() => {
|
|
29140
29142
|
const T = Y.toLowerCase();
|
|
29141
|
-
H.value =
|
|
29143
|
+
H.value = A.value.filter((z) => z.label.toLowerCase().includes(T) ? !0 : z.searchTerms && Array.isArray(z.searchTerms) ? z.searchTerms.some(
|
|
29142
29144
|
(J) => J.toLowerCase().includes(T)
|
|
29143
29145
|
) : !1);
|
|
29144
29146
|
});
|
|
29145
29147
|
}
|
|
29146
|
-
function N(Y,
|
|
29147
|
-
if (
|
|
29148
|
-
(
|
|
29148
|
+
function N(Y, M) {
|
|
29149
|
+
if (M && typeof M == "string" && H.value.length > 0 && !A.value.some(
|
|
29150
|
+
(z) => z.value === M
|
|
29149
29151
|
)) {
|
|
29150
|
-
|
|
29152
|
+
F(
|
|
29151
29153
|
Y,
|
|
29152
29154
|
H.value[0].value
|
|
29153
29155
|
);
|
|
29154
29156
|
return;
|
|
29155
29157
|
}
|
|
29156
|
-
|
|
29158
|
+
M && F(Y, M);
|
|
29157
29159
|
}
|
|
29158
|
-
const K = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: y, isInternalUpdate: k, syncToValue: v, addCondition: x, addGroup: C, removeCondition:
|
|
29160
|
+
const K = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quickformsDefaults: f, useTemplateSyntax: d, conditionRoot: m, isAdvancedMode: p, jsonText: g, jsonParseError: y, isInternalUpdate: k, syncToValue: v, addCondition: x, addGroup: C, removeCondition: E, updateConditionLeft: q, updateConditionOperator: F, updateConditionRight: V, updateGroupLogic: B, toggleAdvancedMode: P, handleJsonChange: R, operatorDisplayMode: D, allowedOperators: w, operatorOptions: A, filteredOperatorOptions: H, filterOperators: I, handleOperatorInput: N, get QBtn() {
|
|
29159
29161
|
return It;
|
|
29160
29162
|
}, get QSelect() {
|
|
29161
29163
|
return zo;
|
|
@@ -29928,23 +29930,23 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29928
29930
|
});
|
|
29929
29931
|
Array.isArray(n.value) || r([], !1);
|
|
29930
29932
|
const f = b(() => {
|
|
29931
|
-
const
|
|
29933
|
+
const V = Nl(
|
|
29932
29934
|
t.schema,
|
|
29933
29935
|
h == null ? void 0 : h.componentDefaults,
|
|
29934
29936
|
"select"
|
|
29935
29937
|
), {
|
|
29936
|
-
useInput:
|
|
29938
|
+
useInput: B,
|
|
29937
29939
|
useChips: P,
|
|
29938
29940
|
multiple: R,
|
|
29939
|
-
hideDropdownIcon:
|
|
29940
|
-
newValueMode:
|
|
29941
|
-
autocomplete:
|
|
29941
|
+
hideDropdownIcon: D,
|
|
29942
|
+
newValueMode: w,
|
|
29943
|
+
autocomplete: A,
|
|
29942
29944
|
...H
|
|
29943
|
-
} =
|
|
29944
|
-
return
|
|
29945
|
+
} = V, I = { ...H };
|
|
29946
|
+
return A !== void 0 && (I.autocomplete = A === !0 ? "on" : A === !1 ? "off" : A), I;
|
|
29945
29947
|
}), d = b(() => {
|
|
29946
29948
|
var R;
|
|
29947
|
-
const
|
|
29949
|
+
const V = ((R = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : R.tags) || {}, B = t.schema["x-quickforms-quasar"] || {};
|
|
29948
29950
|
return {
|
|
29949
29951
|
chip: {
|
|
29950
29952
|
...{
|
|
@@ -29953,26 +29955,26 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29953
29955
|
color: "primary",
|
|
29954
29956
|
textColor: "white"
|
|
29955
29957
|
},
|
|
29956
|
-
...
|
|
29957
|
-
...
|
|
29958
|
+
...V.chip || {},
|
|
29959
|
+
...B.chip || {}
|
|
29958
29960
|
},
|
|
29959
29961
|
// Separator pattern for pasting multiple values
|
|
29960
|
-
separator:
|
|
29962
|
+
separator: B.separator || V.separator || /[,;\s]+/
|
|
29961
29963
|
};
|
|
29962
29964
|
}), m = b(() => {
|
|
29963
|
-
const
|
|
29964
|
-
return !
|
|
29965
|
+
const V = t.schema.items;
|
|
29966
|
+
return !V || typeof V == "boolean" ? null : Array.isArray(V) ? V[0] : V;
|
|
29965
29967
|
}), p = b(() => {
|
|
29966
|
-
var
|
|
29967
|
-
return ((
|
|
29968
|
+
var V;
|
|
29969
|
+
return ((V = m.value) == null ? void 0 : V.format) === "email";
|
|
29968
29970
|
}), g = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
29969
|
-
function y(
|
|
29970
|
-
const
|
|
29971
|
-
return
|
|
29971
|
+
function y(V) {
|
|
29972
|
+
const B = m.value;
|
|
29973
|
+
return B ? !(B.format === "email" && !g.test(V) || typeof B.minLength == "number" && V.length < B.minLength || typeof B.maxLength == "number" && V.length > B.maxLength || B.pattern && !new RegExp(B.pattern).test(V)) : !0;
|
|
29972
29974
|
}
|
|
29973
|
-
function k(
|
|
29974
|
-
const
|
|
29975
|
-
return
|
|
29975
|
+
function k(V) {
|
|
29976
|
+
const B = y(V), P = { ...d.value.chip };
|
|
29977
|
+
return B ? P : {
|
|
29976
29978
|
...P,
|
|
29977
29979
|
color: "negative",
|
|
29978
29980
|
textColor: "white",
|
|
@@ -29980,46 +29982,46 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29980
29982
|
};
|
|
29981
29983
|
}
|
|
29982
29984
|
const v = b(() => {
|
|
29983
|
-
const
|
|
29984
|
-
return
|
|
29985
|
+
const V = t.schema["x-placeholder"];
|
|
29986
|
+
return V || (p.value ? "Type email and press Enter" : "Type and press Enter to add");
|
|
29985
29987
|
});
|
|
29986
|
-
function x(
|
|
29987
|
-
if (!(
|
|
29988
|
+
function x(V) {
|
|
29989
|
+
if (!(V != null && V.trim()))
|
|
29988
29990
|
return [];
|
|
29989
|
-
const
|
|
29990
|
-
return
|
|
29991
|
+
const B = d.value.separator, P = typeof B == "string" ? new RegExp(B) : B;
|
|
29992
|
+
return V.split(P).map((R) => R.trim()).filter((R) => R.length > 0);
|
|
29991
29993
|
}
|
|
29992
|
-
function C(
|
|
29993
|
-
const P = x(
|
|
29994
|
+
function C(V, B) {
|
|
29995
|
+
const P = x(V);
|
|
29994
29996
|
if (P.length === 0) {
|
|
29995
|
-
|
|
29997
|
+
B();
|
|
29996
29998
|
return;
|
|
29997
29999
|
}
|
|
29998
30000
|
const R = Array.isArray(n.value) ? n.value : [];
|
|
29999
30001
|
if (P.length === 1) {
|
|
30000
|
-
const
|
|
30001
|
-
R.includes(
|
|
30002
|
+
const D = P[0];
|
|
30003
|
+
R.includes(D) ? B() : B(D, "add-unique");
|
|
30002
30004
|
} else {
|
|
30003
|
-
const
|
|
30004
|
-
|
|
30005
|
+
const D = P.filter((w) => !R.includes(w));
|
|
30006
|
+
D.length > 0 && r([...R, ...D]), B();
|
|
30005
30007
|
}
|
|
30006
30008
|
}
|
|
30007
|
-
function
|
|
30008
|
-
|
|
30009
|
+
function E(V, B) {
|
|
30010
|
+
B(() => {
|
|
30009
30011
|
});
|
|
30010
30012
|
}
|
|
30011
|
-
function q(
|
|
30013
|
+
function q(V) {
|
|
30012
30014
|
if (t.disabled || t.readonly)
|
|
30013
30015
|
return;
|
|
30014
|
-
const
|
|
30015
|
-
r(
|
|
30016
|
+
const B = Array.isArray(n.value) ? n.value : [];
|
|
30017
|
+
r(B.filter((P) => P !== V));
|
|
30016
30018
|
}
|
|
30017
|
-
const
|
|
30019
|
+
const F = { props: t, value: n, setValue: r, label: o, hint: s, errorMessage: l, required: a, fieldId: u, fieldGap: c, formContext: h, quasarProps: f, quickformsFeatures: d, itemsSchema: m, isEmailFormat: p, EMAIL_REGEX: g, validateItem: y, getChipProps: k, placeholder: v, parseInput: x, handleNewValue: C, filterFn: E, removeValue: q, get QSelect() {
|
|
30018
30020
|
return zo;
|
|
30019
30021
|
}, get QChip() {
|
|
30020
30022
|
return Em;
|
|
30021
30023
|
} };
|
|
30022
|
-
return Object.defineProperty(
|
|
30024
|
+
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
30023
30025
|
}
|
|
30024
30026
|
});
|
|
30025
30027
|
function f2(i, e, t, n, r, o) {
|