@quickflo/quickforms-quasar 1.16.6 → 1.16.7
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 +1224 -1224
- 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, D) => {
|
|
507
|
+
E === !0 && v(), r.value = E, o.value = D || null, e.value = !1;
|
|
508
508
|
}, C = [];
|
|
509
|
-
for (let
|
|
510
|
-
const
|
|
511
|
-
let
|
|
512
|
-
if (typeof
|
|
513
|
-
return x(!0,
|
|
514
|
-
|
|
509
|
+
for (let E = 0; E < t.rules.length; E++) {
|
|
510
|
+
const D = t.rules[E];
|
|
511
|
+
let F;
|
|
512
|
+
if (typeof D == "function" ? F = D(y, da) : typeof D == "string" && da[D] !== void 0 && (F = da[D](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
|
|
521
|
-
return k === l && x(
|
|
520
|
+
const D = E.find((F) => F === !1 || typeof F == "string");
|
|
521
|
+
return k === l && x(D !== void 0, D), D === 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,13 +711,13 @@ 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:
|
|
720
|
-
focus:
|
|
718
|
+
onControlFocusin: V,
|
|
719
|
+
onControlFocusout: B,
|
|
720
|
+
focus: D
|
|
721
721
|
}), i.computedCounter === void 0 && (i.computedCounter = b(() => {
|
|
722
722
|
if (e.counter !== !1) {
|
|
723
723
|
const N = typeof e.modelValue == "string" || typeof e.modelValue == "number" ? ("" + e.modelValue).length : Array.isArray(e.modelValue) === !0 ? e.modelValue.length : 0, K = e.maxlength !== void 0 ? e.maxlength : e.maxValues;
|
|
@@ -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
|
-
function
|
|
761
|
-
Il(
|
|
760
|
+
function D() {
|
|
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 T() {
|
|
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:
|
|
892
|
+
}), Object.assign(o, { focus: D, 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
|
+
}, T()),
|
|
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 T = R.indexOf(yt);
|
|
1015
|
+
if (T !== -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, T) + P + R.slice(T);
|
|
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, "\\$&"), T = [], w = [], A = [];
|
|
1028
|
+
let H = i.reverseFillMask === !0, I = "", N = "";
|
|
1029
|
+
B.replace(c.value.tokenRegexMask, (q, j, 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), T.push("([^" + I + "]+)?" + I + "?");
|
|
1035
1035
|
else {
|
|
1036
1036
|
const se = j !== void 0 ? j : ce;
|
|
1037
|
-
|
|
1037
|
+
I = se === "\\" ? "\\\\\\\\" : se.replace(wh, "\\\\$&"), A.push(se), T.push("([^" + I + "]+)?" + I + "?");
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
const K = new RegExp(
|
|
1041
|
-
"^" +
|
|
1042
|
-
), Y =
|
|
1043
|
-
"^" +
|
|
1044
|
-
) : new RegExp("^" +
|
|
1045
|
-
s =
|
|
1046
|
-
const j = K.exec(i.reverseFillMask === !0 ?
|
|
1047
|
-
j !== null && (
|
|
1048
|
-
const J = [], oe =
|
|
1049
|
-
for (let ce = 0, se =
|
|
1050
|
-
const Be =
|
|
1041
|
+
"^" + T.join("") + "(" + (I === "" ? "." : "[^" + I + "]") + "+)?" + (I === "" ? "" : "[" + I + "]*") + "$"
|
|
1042
|
+
), Y = w.length - 1, M = w.map((q, j) => j === 0 && i.reverseFillMask === !0 ? new RegExp("^" + R + "*" + q) : j === Y ? new RegExp(
|
|
1043
|
+
"^" + q + "(" + (N === "" ? "." : N) + "+)?" + (i.reverseFillMask === !0 ? "$" : R + "*")
|
|
1044
|
+
) : new RegExp("^" + q));
|
|
1045
|
+
s = A, l = (q) => {
|
|
1046
|
+
const j = K.exec(i.reverseFillMask === !0 ? q : q.slice(0, A.length + 1));
|
|
1047
|
+
j !== null && (q = j.slice(1).join(""));
|
|
1048
|
+
const J = [], oe = M.length;
|
|
1049
|
+
for (let ce = 0, se = q; ce < oe; ce++) {
|
|
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
|
-
return J.length !== 0 ? J.join("") :
|
|
1056
|
-
}, r =
|
|
1055
|
+
return J.length !== 0 ? J.join("") : q;
|
|
1056
|
+
}, r = A.map((q) => typeof q == "string" ? q : yt).join(""), o = r.split(yt).join(P);
|
|
1057
1057
|
}
|
|
1058
|
-
function y(
|
|
1059
|
-
const
|
|
1058
|
+
function y(B, P, R) {
|
|
1059
|
+
const T = n.value, w = T.selectionEnd, A = T.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
|
+
T.value !== N && (T.value = N), K === !0 && (f.value = N), document.activeElement === T && rt(() => {
|
|
1063
1063
|
if (N === o) {
|
|
1064
|
-
const
|
|
1065
|
-
|
|
1064
|
+
const M = i.reverseFillMask === !0 ? o.length : 0;
|
|
1065
|
+
T.setSelectionRange(M, M, "forward");
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
1068
|
if (R === "insertFromPaste" && i.reverseFillMask !== !0) {
|
|
1069
|
-
const
|
|
1070
|
-
let
|
|
1071
|
-
for (let j = a; j <=
|
|
1072
|
-
r[j] !== yt &&
|
|
1073
|
-
v.right(
|
|
1069
|
+
const M = T.selectionEnd;
|
|
1070
|
+
let q = w - 1;
|
|
1071
|
+
for (let j = a; j <= q && j < M; j++)
|
|
1072
|
+
r[j] !== yt && q++;
|
|
1073
|
+
v.right(T, q);
|
|
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
|
+
T.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 ? T.setSelectionRange(M, M, "forward") : v.rightReverse(T, M);
|
|
1085
1085
|
} else {
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1086
|
+
const M = N.length - A;
|
|
1087
|
+
T.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(T, M);
|
|
1092
1092
|
} else {
|
|
1093
|
-
const
|
|
1094
|
-
v.right(
|
|
1093
|
+
const M = w - 1;
|
|
1094
|
+
v.right(T, 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 T = E(F(B.value));
|
|
1102
|
+
P = Math.max(0, r.indexOf(yt), Math.min(T.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 T = Math.max(0, P - 1);
|
|
1108
|
+
for (; T >= 0; T--)
|
|
1109
|
+
if (r[T] === yt) {
|
|
1110
|
+
P = T, R === !0 && P++;
|
|
1111
1111
|
break;
|
|
1112
1112
|
}
|
|
1113
|
-
if (
|
|
1114
|
-
return v.right(
|
|
1115
|
-
P >= 0 &&
|
|
1113
|
+
if (T < 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 T = Math.min(R, P + 1);
|
|
1120
|
+
for (; T <= R; T++)
|
|
1121
|
+
if (r[T] === yt) {
|
|
1122
|
+
P = T;
|
|
1123
1123
|
break;
|
|
1124
|
-
} else r[
|
|
1125
|
-
if (
|
|
1126
|
-
return v.left(
|
|
1127
|
-
|
|
1124
|
+
} else r[T - 1] === yt && (P = T);
|
|
1125
|
+
if (T > 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 T = Math.max(0, P - 1);
|
|
1132
|
+
for (; T >= 0; T--)
|
|
1133
|
+
if (R[T - 1] === yt) {
|
|
1134
|
+
P = T;
|
|
1135
1135
|
break;
|
|
1136
|
-
} else if (R[
|
|
1136
|
+
} else if (R[T] === yt && (P = T, T === 0))
|
|
1137
1137
|
break;
|
|
1138
|
-
if (
|
|
1139
|
-
return v.rightReverse(
|
|
1140
|
-
P >= 0 &&
|
|
1138
|
+
if (T < 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, T = p(R), w = T.slice(0, P + 1).indexOf(yt) === -1;
|
|
1144
|
+
let A = Math.min(R, P + 1);
|
|
1145
|
+
for (; A <= R; A++)
|
|
1146
|
+
if (T[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 && T[P - 1] !== void 0 && T[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, T = 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 : T);
|
|
1163
|
+
const w = v[(B.keyCode === 39 ? "right" : "left") + (i.reverseFillMask === !0 ? "Reverse" : "")];
|
|
1164
|
+
if (B.preventDefault(), w(P, u === R ? T : 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 === T ? (v.left(P, R), P.setSelectionRange(P.selectionStart, T, "backward")) : B.keyCode === 46 && i.reverseFillMask === !0 && R === T && (v.rightReverse(P, T), 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
|
|
1174
|
+
return D(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 T = 0, w = "";
|
|
1177
|
+
for (let A = 0; A < R.length; A++) {
|
|
1178
|
+
const H = B[T], I = R[A];
|
|
1179
|
+
if (typeof I == "string")
|
|
1180
|
+
w += I, P === !0 && H === I && T++;
|
|
1181
|
+
else if (H !== void 0 && I.regex.test(H))
|
|
1182
|
+
w += I.transform !== void 0 ? I.transform(H) : H, T++;
|
|
1183
1183
|
else
|
|
1184
|
-
return
|
|
1185
|
-
}
|
|
1186
|
-
return
|
|
1187
|
-
}
|
|
1188
|
-
function
|
|
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 D(B, P) {
|
|
1189
|
+
const R = s, T = 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 (T === 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 }), D = b(
|
|
1314
1314
|
() => i.type === "textarea" || i.autogrow === !0
|
|
1315
|
-
),
|
|
1316
|
-
() =>
|
|
1317
|
-
),
|
|
1318
|
-
const
|
|
1319
|
-
...
|
|
1320
|
-
onInput:
|
|
1321
|
-
onPaste:
|
|
1315
|
+
), F = b(
|
|
1316
|
+
() => D.value === !0 || ["text", "search", "url", "tel", "password"].includes(i.type)
|
|
1317
|
+
), V = b(() => {
|
|
1318
|
+
const q = {
|
|
1319
|
+
...E.splitAttrs.listeners.value,
|
|
1320
|
+
onInput: w,
|
|
1321
|
+
onPaste: T,
|
|
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,98 +1327,98 @@ const ar = Je({
|
|
|
1327
1327
|
onBlur: K,
|
|
1328
1328
|
onFocus: hi
|
|
1329
1329
|
};
|
|
1330
|
-
return
|
|
1331
|
-
}),
|
|
1332
|
-
const
|
|
1330
|
+
return q.onCompositionstart = q.onCompositionupdate = q.onCompositionend = C, m.value === !0 && (q.onKeydown = y, q.onClick = k), i.autogrow === !0 && (q.onAnimationend = A), q;
|
|
1331
|
+
}), B = b(() => {
|
|
1332
|
+
const q = {
|
|
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
|
|
1343
1343
|
};
|
|
1344
|
-
return
|
|
1344
|
+
return D.value === !1 && (q.type = i.type), i.autogrow === !0 && (q.rows = 1), q;
|
|
1345
1345
|
});
|
|
1346
1346
|
ye(() => i.type, () => {
|
|
1347
1347
|
h.value && (h.value.value = i.modelValue);
|
|
1348
|
-
}), ye(() => i.modelValue, (
|
|
1348
|
+
}), ye(() => i.modelValue, (q) => {
|
|
1349
1349
|
if (m.value === !0) {
|
|
1350
|
-
if (a === !0 && (a = !1, String(
|
|
1350
|
+
if (a === !0 && (a = !1, String(q) === s))
|
|
1351
1351
|
return;
|
|
1352
|
-
g(
|
|
1353
|
-
} else d.value !==
|
|
1354
|
-
i.autogrow === !0 && rt(
|
|
1355
|
-
}), ye(() => i.autogrow, (
|
|
1356
|
-
|
|
1352
|
+
g(q);
|
|
1353
|
+
} else d.value !== q && (d.value = q, i.type === "number" && o.hasOwnProperty("value") === !0 && (l === !0 ? l = !1 : delete o.value));
|
|
1354
|
+
i.autogrow === !0 && rt(I);
|
|
1355
|
+
}), ye(() => i.autogrow, (q) => {
|
|
1356
|
+
q === !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
|
-
const
|
|
1363
|
-
h.value !== null && h.value !==
|
|
1362
|
+
const q = document.activeElement;
|
|
1363
|
+
h.value !== null && h.value !== q && (q === null || q.id !== E.targetUid.value) && h.value.focus({ preventScroll: !0 });
|
|
1364
1364
|
});
|
|
1365
1365
|
}
|
|
1366
1366
|
function R() {
|
|
1367
|
-
var
|
|
1368
|
-
(
|
|
1367
|
+
var q;
|
|
1368
|
+
(q = h.value) == null || q.select();
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1370
|
+
function T(q) {
|
|
1371
1371
|
if (m.value === !0 && i.reverseFillMask !== !0) {
|
|
1372
|
-
const j =
|
|
1372
|
+
const j = q.target;
|
|
1373
1373
|
p(j, j.selectionStart, j.selectionEnd);
|
|
1374
1374
|
}
|
|
1375
|
-
e("paste",
|
|
1375
|
+
e("paste", q);
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
if (!
|
|
1377
|
+
function w(q) {
|
|
1378
|
+
if (!q || !q.target) return;
|
|
1379
1379
|
if (i.type === "file") {
|
|
1380
|
-
e("update:modelValue",
|
|
1380
|
+
e("update:modelValue", q.target.files);
|
|
1381
1381
|
return;
|
|
1382
1382
|
}
|
|
1383
|
-
const j =
|
|
1384
|
-
if (
|
|
1383
|
+
const j = q.target.value;
|
|
1384
|
+
if (q.target.qComposing === !0) {
|
|
1385
1385
|
o.value = j;
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
1388
|
if (m.value === !0)
|
|
1389
|
-
g(j, !1,
|
|
1390
|
-
else if (H(j),
|
|
1391
|
-
const { selectionStart: J, selectionEnd: oe } =
|
|
1389
|
+
g(j, !1, q.inputType);
|
|
1390
|
+
else if (H(j), F.value === !0 && q.target === document.activeElement) {
|
|
1391
|
+
const { selectionStart: J, selectionEnd: oe } = q.target;
|
|
1392
1392
|
J !== void 0 && oe !== void 0 && rt(() => {
|
|
1393
|
-
|
|
1393
|
+
q.target === document.activeElement && j.indexOf(q.target.value) === 0 && q.target.setSelectionRange(J, oe);
|
|
1394
1394
|
});
|
|
1395
1395
|
}
|
|
1396
|
-
i.autogrow === !0 &&
|
|
1396
|
+
i.autogrow === !0 && I();
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
e("animationend",
|
|
1398
|
+
function A(q) {
|
|
1399
|
+
e("animationend", q), I();
|
|
1400
1400
|
}
|
|
1401
|
-
function H(
|
|
1401
|
+
function H(q, j) {
|
|
1402
1402
|
c = () => {
|
|
1403
|
-
u = null, i.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, i.modelValue !==
|
|
1404
|
-
s ===
|
|
1403
|
+
u = null, i.type !== "number" && o.hasOwnProperty("value") === !0 && delete o.value, i.modelValue !== q && s !== q && (s = q, j === !0 && (a = !0), e("update:modelValue", q), rt(() => {
|
|
1404
|
+
s === q && (s = NaN);
|
|
1405
1405
|
})), c = void 0;
|
|
1406
|
-
}, i.type === "number" && (l = !0, o.value =
|
|
1406
|
+
}, i.type === "number" && (l = !0, o.value = q), i.debounce !== void 0 ? (u !== null && clearTimeout(u), o.value = q, u = setTimeout(c, i.debounce)) : c();
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1408
|
+
function I() {
|
|
1409
1409
|
requestAnimationFrame(() => {
|
|
1410
|
-
const
|
|
1411
|
-
if (
|
|
1412
|
-
const j =
|
|
1413
|
-
se === !0 && (
|
|
1410
|
+
const q = h.value;
|
|
1411
|
+
if (q !== null) {
|
|
1412
|
+
const j = q.parentNode.style, { scrollTop: J } = q, { overflowY: oe, maxHeight: ce } = r.platform.is.firefox === !0 ? {} : window.getComputedStyle(q), se = oe !== void 0 && oe !== "scroll";
|
|
1413
|
+
se === !0 && (q.style.overflowY = "hidden"), j.marginBottom = q.scrollHeight - 1 + "px", q.style.height = "1px", q.style.height = q.scrollHeight + "px", se === !0 && (q.style.overflowY = parseInt(ce, 10) < q.scrollHeight ? "auto" : "hidden"), j.marginBottom = "", q.scrollTop = J;
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
|
-
function N(
|
|
1418
|
-
C(
|
|
1417
|
+
function N(q) {
|
|
1418
|
+
C(q), u !== null && (clearTimeout(u), u = null), c == null || c(), e("change", q.target.value);
|
|
1419
1419
|
}
|
|
1420
|
-
function K(
|
|
1421
|
-
|
|
1420
|
+
function K(q) {
|
|
1421
|
+
q !== void 0 && hi(q), u !== null && (clearTimeout(u), u = null), c == null || c(), l = !1, a = !1, delete o.value, i.type !== "file" && setTimeout(() => {
|
|
1422
1422
|
h.value !== null && (h.value.value = d.value !== void 0 ? d.value : "");
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
@@ -1428,11 +1428,11 @@ 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
|
-
() => `q-${
|
|
1435
|
+
() => `q-${D.value === !0 ? "textarea" : "input"}` + (i.autogrow === !0 ? " q-textarea--autogrow" : "")
|
|
1436
1436
|
),
|
|
1437
1437
|
hasShadow: b(
|
|
1438
1438
|
() => i.type !== "file" && typeof i.shadowText == "string" && i.shadowText.length !== 0
|
|
@@ -1443,31 +1443,31 @@ const ar = Je({
|
|
|
1443
1443
|
floatingLabel: b(
|
|
1444
1444
|
() => x.value === !0 && (i.type !== "number" || isNaN(d.value) === !1) || xo(i.displayValue)
|
|
1445
1445
|
),
|
|
1446
|
-
getControl: () => O(
|
|
1446
|
+
getControl: () => O(D.value === !0 ? "textarea" : "input", {
|
|
1447
1447
|
ref: h,
|
|
1448
1448
|
class: [
|
|
1449
1449
|
"q-field__native q-placeholder",
|
|
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", {
|
|
1458
|
-
class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (
|
|
1458
|
+
class: "q-field__native q-field__shadow absolute-bottom no-pointer-events" + (D.value === !0 ? "" : " text-no-wrap")
|
|
1459
1459
|
}, [
|
|
1460
1460
|
O("span", { class: "invisible" }, Y()),
|
|
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((T) => zn(T) === 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", T = 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}${T}`;
|
|
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",
|
|
@@ -1819,10 +1819,10 @@ function Jy(i, e) {
|
|
|
1819
1819
|
};
|
|
1820
1820
|
return t.disable === !0 && (R["aria-disabled"] = "true"), R;
|
|
1821
1821
|
});
|
|
1822
|
-
function
|
|
1823
|
-
R !== void 0 && (ct(R), c(R)), t.disable !== !0 && r("update:modelValue",
|
|
1822
|
+
function D(R) {
|
|
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,41 +1840,41 @@ 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
|
|
1847
|
-
(R.keyCode === 13 || R.keyCode === 32) &&
|
|
1846
|
+
function B(R) {
|
|
1847
|
+
(R.keyCode === 13 || R.keyCode === 32) && D(R);
|
|
1848
1848
|
}
|
|
1849
1849
|
const P = e(m, g);
|
|
1850
|
-
return Object.assign(o, { toggle:
|
|
1850
|
+
return Object.assign(o, { toggle: D }), () => {
|
|
1851
1851
|
const R = P();
|
|
1852
1852
|
t.disable !== !0 && C(
|
|
1853
1853
|
R,
|
|
1854
1854
|
"unshift",
|
|
1855
1855
|
` q-${i}__native absolute q-ma-none q-pa-none`
|
|
1856
1856
|
);
|
|
1857
|
-
const
|
|
1857
|
+
const T = [
|
|
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 && T.push(u.value);
|
|
1865
|
+
const w = t.label !== void 0 ? xn(n.default, [t.label]) : qt(n.default);
|
|
1866
|
+
return w !== void 0 && T.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
|
-
...
|
|
1874
|
-
onClick:
|
|
1875
|
-
onKeydown:
|
|
1876
|
-
onKeyup:
|
|
1877
|
-
},
|
|
1873
|
+
...E.value,
|
|
1874
|
+
onClick: D,
|
|
1875
|
+
onKeydown: V,
|
|
1876
|
+
onKeyup: B
|
|
1877
|
+
}, T);
|
|
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:
|
|
2329
|
-
if (
|
|
2328
|
+
const { matched: C } = u.value, { length: E } = C, D = C[E - 1];
|
|
2329
|
+
if (D === 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
|
|
2335
|
-
Dh.bind(null,
|
|
2334
|
+
const V = F.findIndex(
|
|
2335
|
+
Dh.bind(null, D)
|
|
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(D) === 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: D = 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"](D);
|
|
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 = (D) => v(C, D);
|
|
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
|
-
|
|
3032
|
+
const E = document.body.style, { offsetLeft: D, offsetTop: F } = window.visualViewport;
|
|
3033
|
+
D !== _h && (E.setProperty("--q-pe-left", D + "px"), _h = D), 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: D } = 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
|
-
if (C.left !==
|
|
3062
|
-
|
|
3063
|
-
const
|
|
3064
|
-
m.middle = m.left -=
|
|
3061
|
+
if (C.left !== D) {
|
|
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, j), { anchorEl: D, 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:
|
|
3162
|
-
anchorEl:
|
|
3161
|
+
}), { showPortal: B, hidePortal: P, renderPortal: R } = bc(a, h, Be, "menu"), T = {
|
|
3162
|
+
anchorEl: D,
|
|
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(T)) : (el(ce), nl(T));
|
|
3181
3181
|
});
|
|
3182
3182
|
function K() {
|
|
3183
3183
|
Il(() => {
|
|
@@ -3186,10 +3186,10 @@ 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(), j(), o = void 0, ee !== void 0 && (i.touchPosition || i.contextMenu)) {
|
|
3190
3190
|
const et = Rr(ee);
|
|
3191
3191
|
if (et.left !== void 0) {
|
|
3192
|
-
const { top: Ie, left: Qe } =
|
|
3192
|
+
const { top: Ie, left: Qe } = D.value.getBoundingClientRect();
|
|
3193
3193
|
o = { left: et.left - Qe, top: et.top - Ie };
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
@@ -3199,20 +3199,20 @@ 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
|
|
3206
|
-
g(), P(),
|
|
3205
|
+
function M(ee) {
|
|
3206
|
+
g(), P(), q(!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
|
-
function
|
|
3212
|
-
o = void 0, s !== void 0 && (s(), s = void 0), (ee === !0 || f.value === !0) && (ou(oe),
|
|
3211
|
+
function q(ee) {
|
|
3212
|
+
o = void 0, s !== void 0 && (s(), s = void 0), (ee === !0 || f.value === !0) && (ou(oe), E(), nl(T), el(ce)), ee !== !0 && (r = null);
|
|
3213
3213
|
}
|
|
3214
3214
|
function j() {
|
|
3215
|
-
(
|
|
3215
|
+
(D.value !== null || i.scrollTarget !== void 0) && (x.value = Wm(D.value, i.scrollTarget), C(x.value, se));
|
|
3216
3216
|
}
|
|
3217
3217
|
function J(ee) {
|
|
3218
3218
|
l !== !0 ? (zm(u, ee), t("click", ee)) : l = !1;
|
|
@@ -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
|
-
anchorEl:
|
|
3231
|
-
anchorOrigin:
|
|
3232
|
-
selfOrigin:
|
|
3230
|
+
anchorEl: D.value,
|
|
3231
|
+
anchorOrigin: w.value,
|
|
3232
|
+
selfOrigin: A.value,
|
|
3233
3233
|
absoluteOffset: o,
|
|
3234
3234
|
fit: i.fit,
|
|
3235
3235
|
cover: i.cover,
|
|
@@ -3254,11 +3254,11 @@ 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
|
}
|
|
3261
|
-
return ht(
|
|
3261
|
+
return ht(q), Object.assign(u, { focus: K, updatePosition: se }), R;
|
|
3262
3262
|
}
|
|
3263
3263
|
});
|
|
3264
3264
|
function qb(i, e, t) {
|
|
@@ -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: D } = bc(
|
|
3395
3395
|
r,
|
|
3396
3396
|
o,
|
|
3397
3397
|
j,
|
|
3398
3398
|
"dialog"
|
|
3399
|
-
), { hide:
|
|
3399
|
+
), { hide: F } = jl({
|
|
3400
3400
|
showing: s,
|
|
3401
3401
|
hideOnRouteChange: f,
|
|
3402
|
-
handleShow:
|
|
3403
|
-
handleHide:
|
|
3402
|
+
handleShow: T,
|
|
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(
|
|
3415
|
+
}), ye(B, (J) => {
|
|
3416
|
+
d(J), J === !0 ? (Ym(q), Um(I)) : (ou(q), el(I));
|
|
3417
3417
|
});
|
|
3418
|
-
function
|
|
3418
|
+
function T(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,33 +3452,33 @@ 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(
|
|
3465
|
+
a !== null && (clearTimeout(a), a = null), (J === !0 || s.value === !0) && (K(!1), i.seamless !== !0 && (d(!1), ou(q), 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
|
-
function
|
|
3477
|
-
i.allowFocusOutside !== !0 &&
|
|
3476
|
+
function q(J) {
|
|
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) {
|
|
@@ -3488,26 +3488,26 @@ const Eb = {
|
|
|
3488
3488
|
function j() {
|
|
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
|
|
@@ -3515,7 +3515,7 @@ const Eb = {
|
|
|
3515
3515
|
)
|
|
3516
3516
|
]);
|
|
3517
3517
|
}
|
|
3518
|
-
return
|
|
3518
|
+
return D;
|
|
3519
3519
|
}
|
|
3520
3520
|
});
|
|
3521
3521
|
let wo = !1;
|
|
@@ -3626,19 +3626,19 @@ 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), D = b(
|
|
3630
|
+
() => E.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
|
|
3631
3631
|
);
|
|
3632
|
-
ye(
|
|
3632
|
+
ye(D, () => {
|
|
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
|
|
3641
|
+
function B(M, q) {
|
|
3642
3642
|
const j = e();
|
|
3643
3643
|
if (j == null || j.nodeType === 8) return;
|
|
3644
3644
|
const J = ba(
|
|
@@ -3654,16 +3654,16 @@ function Fb({
|
|
|
3654
3654
|
h !== J.scrollViewSize && H(J.scrollViewSize), R(
|
|
3655
3655
|
j,
|
|
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(
|
|
3659
|
+
Lb.indexOf(q) !== -1 ? q : c !== -1 && M > c ? "end" : "start"
|
|
3660
3660
|
);
|
|
3661
3661
|
}
|
|
3662
3662
|
function P() {
|
|
3663
|
-
const
|
|
3664
|
-
if (
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3663
|
+
const M = e();
|
|
3664
|
+
if (M == null || M.nodeType === 8) return;
|
|
3665
|
+
const q = ba(
|
|
3666
|
+
M,
|
|
3667
3667
|
t(),
|
|
3668
3668
|
y.value,
|
|
3669
3669
|
k.value,
|
|
@@ -3671,83 +3671,83 @@ function Fb({
|
|
|
3671
3671
|
a.lang.rtl,
|
|
3672
3672
|
o.virtualScrollStickySizeStart,
|
|
3673
3673
|
o.virtualScrollStickySizeEnd
|
|
3674
|
-
), j = i.value - 1, J =
|
|
3675
|
-
if (u ===
|
|
3676
|
-
if (
|
|
3677
|
-
R(
|
|
3674
|
+
), j = i.value - 1, J = q.scrollMaxSize - q.offsetStart - q.offsetEnd - p.value;
|
|
3675
|
+
if (u === q.scrollStart) return;
|
|
3676
|
+
if (q.scrollMaxSize <= 0) {
|
|
3677
|
+
R(M, q, 0, 0);
|
|
3678
3678
|
return;
|
|
3679
3679
|
}
|
|
3680
|
-
h !==
|
|
3681
|
-
const oe = Math.floor(
|
|
3682
|
-
if (oe > 0 && Math.ceil(
|
|
3680
|
+
h !== q.scrollViewSize && H(q.scrollViewSize), T(x.value.from);
|
|
3681
|
+
const oe = Math.floor(q.scrollMaxSize - Math.max(q.scrollViewSize, q.offsetEnd) - Math.min(d[j], q.scrollViewSize / 2));
|
|
3682
|
+
if (oe > 0 && Math.ceil(q.scrollStart) >= oe) {
|
|
3683
3683
|
R(
|
|
3684
|
-
|
|
3685
|
-
|
|
3684
|
+
M,
|
|
3685
|
+
q,
|
|
3686
3686
|
j,
|
|
3687
|
-
|
|
3687
|
+
q.scrollMaxSize - q.offsetEnd - f.reduce(Ar, 0)
|
|
3688
3688
|
);
|
|
3689
3689
|
return;
|
|
3690
3690
|
}
|
|
3691
|
-
let ce = 0, se =
|
|
3692
|
-
if (se <= J && se +
|
|
3691
|
+
let ce = 0, se = q.scrollStart - q.offsetStart, Be = se;
|
|
3692
|
+
if (se <= J && se + q.scrollViewSize >= m.value)
|
|
3693
3693
|
se -= m.value, ce = x.value.from, Be = se;
|
|
3694
3694
|
else
|
|
3695
3695
|
for (let ee = 0; se >= f[ee] && ce < j; ee++)
|
|
3696
3696
|
se -= f[ee], ce += Ai;
|
|
3697
3697
|
for (; se > 0 && ce < j; )
|
|
3698
|
-
se -= d[ce], se > -
|
|
3698
|
+
se -= d[ce], se > -q.scrollViewSize ? (ce++, Be = se) : Be = d[ce] + se;
|
|
3699
3699
|
R(
|
|
3700
|
-
|
|
3701
|
-
|
|
3700
|
+
M,
|
|
3701
|
+
q,
|
|
3702
3702
|
ce,
|
|
3703
3703
|
Be
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
|
-
function R(
|
|
3706
|
+
function R(M, q, j, 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
3708
|
let ee = Math.max(0, j - g.value[Be]), et = ee + g.value.total;
|
|
3709
|
-
et > i.value && (et = i.value, ee = Math.max(0, et - g.value.total)), u =
|
|
3709
|
+
et > i.value && (et = i.value, ee = Math.max(0, et - g.value.total)), u = q.scrollStart;
|
|
3710
3710
|
const Ie = ee !== x.value.from || et !== x.value.to;
|
|
3711
3711
|
if (Ie === !1 && se === void 0) {
|
|
3712
3712
|
N(j);
|
|
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",
|
|
3716
|
+
Ie === !0 && wt !== null && wt !== Qe && wt.contains(Qe) === !0 && (wt.addEventListener("focusout", w), setTimeout(() => {
|
|
3717
|
+
wt == null || wt.removeEventListener("focusout", w);
|
|
3718
3718
|
})), Ib(wt, j - ee);
|
|
3719
3719
|
const _t = se !== void 0 ? d.slice(ee, j).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(() => {
|
|
3723
|
-
x.value.to !== et && u ===
|
|
3723
|
+
x.value.to !== et && u === q.scrollStart && (x.value = { from: x.value.from, to: et }, p.value = Jr(f, d, et, i.value));
|
|
3724
3724
|
});
|
|
3725
3725
|
}
|
|
3726
3726
|
requestAnimationFrame(() => {
|
|
3727
|
-
if (u !==
|
|
3728
|
-
Ie === !0 &&
|
|
3729
|
-
const Yt = d.slice(ee, j).reduce(Ar, 0), Bt = Yt +
|
|
3727
|
+
if (u !== q.scrollStart) return;
|
|
3728
|
+
Ie === !0 && T(ee);
|
|
3729
|
+
const Yt = d.slice(ee, j).reduce(Ar, 0), Bt = Yt + q.offsetStart + m.value, dt = Bt + d[j];
|
|
3730
3730
|
let gi = Bt + J;
|
|
3731
3731
|
if (se !== void 0) {
|
|
3732
|
-
const Bi = Yt - _t, Gt =
|
|
3733
|
-
gi = ce !== !0 && Gt < Bt && dt < Gt +
|
|
3732
|
+
const Bi = Yt - _t, Gt = q.scrollStart + Bi;
|
|
3733
|
+
gi = ce !== !0 && Gt < Bt && dt < Gt + q.scrollViewSize ? Gt : se === "end" ? dt - q.scrollViewSize : Bt - (se === "start" ? 0 : Math.round((q.scrollViewSize - d[j]) / 2));
|
|
3734
3734
|
}
|
|
3735
3735
|
u = gi, Hh(
|
|
3736
|
-
|
|
3736
|
+
M,
|
|
3737
3737
|
gi,
|
|
3738
3738
|
o.virtualScrollHorizontal,
|
|
3739
3739
|
a.lang.rtl
|
|
3740
3740
|
), N(j);
|
|
3741
3741
|
});
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3744
|
-
const
|
|
3745
|
-
if (
|
|
3743
|
+
function T(M) {
|
|
3744
|
+
const q = v.value;
|
|
3745
|
+
if (q) {
|
|
3746
3746
|
const j = Zm.call(
|
|
3747
|
-
|
|
3747
|
+
q.children,
|
|
3748
3748
|
(ee) => ee.classList && ee.classList.contains("q-virtual-scroll--skip") === !1
|
|
3749
3749
|
), J = j.length, oe = o.virtualScrollHorizontal === !0 ? (ee) => ee.getBoundingClientRect().width : (ee) => ee.offsetHeight;
|
|
3750
|
-
let ce =
|
|
3750
|
+
let ce = M, se, Be;
|
|
3751
3751
|
for (let ee = 0; ee < J; ) {
|
|
3752
3752
|
for (se = oe(j[ee]), ee++; ee < J && j[ee].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
3753
3753
|
se += oe(j[ee]), ee++;
|
|
@@ -3755,13 +3755,13 @@ function Fb({
|
|
|
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
|
|
3762
|
+
function A(M, q) {
|
|
3763
3763
|
const j = 1 * n.value;
|
|
3764
|
-
(
|
|
3764
|
+
(q === !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--)
|
|
@@ -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 ? (T(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,26 +3793,26 @@ function Fb({
|
|
|
3793
3793
|
o.virtualScrollStickySizeEnd
|
|
3794
3794
|
).scrollViewSize);
|
|
3795
3795
|
}
|
|
3796
|
-
h =
|
|
3797
|
-
const
|
|
3796
|
+
h = M;
|
|
3797
|
+
const q = parseFloat(o.virtualScrollSliceRatioBefore) || 0, j = parseFloat(o.virtualScrollSliceRatioAfter) || 0, J = 1 + q + j, 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)
|
|
3801
3801
|
);
|
|
3802
3802
|
g.value = {
|
|
3803
3803
|
total: Math.ceil(ce * J),
|
|
3804
|
-
start: Math.ceil(ce *
|
|
3805
|
-
center: Math.ceil(ce * (0.5 +
|
|
3806
|
-
end: Math.ceil(ce * (1 +
|
|
3804
|
+
start: Math.ceil(ce * q),
|
|
3805
|
+
center: Math.ceil(ce * (0.5 + q)),
|
|
3806
|
+
end: Math.ceil(ce * (1 + q)),
|
|
3807
3807
|
view: oe
|
|
3808
3808
|
};
|
|
3809
3809
|
}
|
|
3810
|
-
function
|
|
3810
|
+
function I(M, q) {
|
|
3811
3811
|
const j = o.virtualScrollHorizontal === !0 ? "width" : "height", J = {
|
|
3812
3812
|
["--q-virtual-scroll-item-" + j]: 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
|
|
@@ -3823,19 +3823,19 @@ function Fb({
|
|
|
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
3830
|
style: { [j]: `${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
|
-
},
|
|
3838
|
-
|
|
3837
|
+
}, q.flat()),
|
|
3838
|
+
M === "tbody" ? O(M, {
|
|
3839
3839
|
class: "q-virtual-scroll__padding",
|
|
3840
3840
|
key: "after",
|
|
3841
3841
|
ref: k
|
|
@@ -3846,7 +3846,7 @@ function Fb({
|
|
|
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,
|
|
@@ -3854,14 +3854,14 @@ function Fb({
|
|
|
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), D = G(null), F = G(null), V = G(null), B = qm(i), P = Pm(cr), R = b(() => Array.isArray(i.options) ? i.options.length : 0), T = 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,8 +4088,8 @@ const zo = Je({
|
|
|
4088
4088
|
virtualScrollLength: R,
|
|
4089
4089
|
getVirtualScrollTarget: dn,
|
|
4090
4090
|
getVirtualScrollEl: Ln,
|
|
4091
|
-
virtualScrollItemSizeComputed:
|
|
4092
|
-
}),
|
|
4091
|
+
virtualScrollItemSizeComputed: T
|
|
4092
|
+
}), M = fc(), q = 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));
|
|
@@ -4102,14 +4102,14 @@ const zo = Je({
|
|
|
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(q.value)), ce = b(() => {
|
|
4106
4106
|
let _ = "q-field__input q-placeholder col";
|
|
4107
|
-
return i.hideSelected === !0 ||
|
|
4107
|
+
return i.hideSelected === !0 || q.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
|
-
() =>
|
|
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 ||
|
|
4111
|
+
() => q.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 || q.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,14 +4117,14 @@ 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
|
-
})), Bt = b(() =>
|
|
4127
|
+
})), Bt = b(() => q.value.map((_, he) => ({
|
|
4128
4128
|
index: he,
|
|
4129
4129
|
opt: _,
|
|
4130
4130
|
html: Ie.value(_),
|
|
@@ -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
|
}
|
|
@@ -4170,7 +4170,7 @@ const zo = Je({
|
|
|
4170
4170
|
});
|
|
4171
4171
|
}), gi = b(() => i.dropdownIcon !== void 0 ? i.dropdownIcon : r.iconSet.arrow.dropdown), Bi = b(
|
|
4172
4172
|
() => i.optionsCover === !1 && i.outlined !== !0 && i.standout !== !0 && i.borderless !== !0 && i.rounded !== !0
|
|
4173
|
-
), Gt = b(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), at = b(() => xa(i.optionValue, "value")), X = b(() => xa(i.optionLabel, "label")), ve = b(() => xa(i.optionDisable, "disable")), we = b(() =>
|
|
4173
|
+
), Gt = b(() => i.optionsSelectedClass !== void 0 ? i.optionsSelectedClass : i.color !== void 0 ? `text-${i.color}` : ""), at = b(() => xa(i.optionValue, "value")), X = b(() => xa(i.optionLabel, "label")), ve = b(() => xa(i.optionDisable, "disable")), we = b(() => q.value.map(at.value)), Ue = b(() => {
|
|
4174
4174
|
const _ = {
|
|
4175
4175
|
onInput: cr,
|
|
4176
4176
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
|
@@ -4188,14 +4188,14 @@ const zo = Je({
|
|
|
4188
4188
|
};
|
|
4189
4189
|
return _.onCompositionstart = _.onCompositionupdate = _.onCompositionend = P, _;
|
|
4190
4190
|
});
|
|
4191
|
-
ye(
|
|
4192
|
-
d = _, i.useInput === !0 && i.fillInput === !0 && i.multiple !== !0 &&
|
|
4191
|
+
ye(q, (_) => {
|
|
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(_) : _;
|
|
4196
4196
|
}
|
|
4197
4197
|
function Oe(_) {
|
|
4198
|
-
if (_ !== -1 && _ <
|
|
4198
|
+
if (_ !== -1 && _ < q.value.length)
|
|
4199
4199
|
if (i.multiple === !0) {
|
|
4200
4200
|
const he = i.modelValue.slice();
|
|
4201
4201
|
t("remove", { index: _, value: he.splice(_, 1)[0] }), t("update:modelValue", he);
|
|
@@ -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(_);
|
|
@@ -4215,7 +4215,7 @@ const zo = Je({
|
|
|
4215
4215
|
), t("update:modelValue", me);
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
|
-
if (
|
|
4218
|
+
if (q.value.length === 0) {
|
|
4219
4219
|
t("add", { index: 0, value: me }), t("update:modelValue", i.multiple === !0 ? [me] : me);
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
@@ -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(), (q.value.length === 0 || yn(at.value(q.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(), q.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", _);
|
|
@@ -4294,13 +4294,13 @@ const zo = Je({
|
|
|
4294
4294
|
if (_.target.value = "", h !== null && (clearTimeout(h), h = null), f !== null && (clearTimeout(f), f = null), pi(), typeof he == "string" && he.length !== 0) {
|
|
4295
4295
|
const me = he.toLocaleLowerCase(), _e = (mt) => {
|
|
4296
4296
|
const Ze = i.options.find((gt) => String(mt.value(gt)).toLocaleLowerCase() === me);
|
|
4297
|
-
return Ze === void 0 ? !1 : (
|
|
4297
|
+
return Ze === void 0 ? !1 : (q.value.indexOf(Ze) === -1 ? ut(Ze) : Ve(), !0);
|
|
4298
4298
|
}, $e = (mt) => {
|
|
4299
4299
|
_e(at) !== !0 && mt !== !0 && _e(X) !== !0 && Ri(he, !0, () => $e(!0));
|
|
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 : D.value !== null && D.value.contentEl !== null ? D.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 && q.value.length !== 0 && p !== !0 && _ === X.value(q.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,13 +4464,13 @@ 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
|
}
|
|
4471
4471
|
function ra() {
|
|
4472
4472
|
return O(Xm, {
|
|
4473
|
-
ref:
|
|
4473
|
+
ref: D,
|
|
4474
4474
|
class: se.value,
|
|
4475
4475
|
style: i.popupContentStyle,
|
|
4476
4476
|
modelValue: o.value,
|
|
@@ -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 ${
|
|
4517
|
+
class: `col-auto ${M.fieldClass.value}`,
|
|
4518
4518
|
...j.value,
|
|
4519
|
-
for:
|
|
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,31 +4559,31 @@ 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();
|
|
4583
4583
|
}
|
|
4584
4584
|
function pi() {
|
|
4585
4585
|
i.useInput === !0 && Vn(
|
|
4586
|
-
i.multiple !== !0 && i.fillInput === !0 &&
|
|
4586
|
+
i.multiple !== !0 && i.fillInput === !0 && q.value.length !== 0 && X.value(q.value[0]) || "",
|
|
4587
4587
|
!0,
|
|
4588
4588
|
!0
|
|
4589
4589
|
);
|
|
@@ -4591,8 +4591,8 @@ const zo = Je({
|
|
|
4591
4591
|
function la(_) {
|
|
4592
4592
|
let he = -1;
|
|
4593
4593
|
if (_ === !0) {
|
|
4594
|
-
if (
|
|
4595
|
-
const me = at.value(
|
|
4594
|
+
if (q.value.length !== 0) {
|
|
4595
|
+
const me = at.value(q.value[0]);
|
|
4596
4596
|
he = i.options.findIndex((_e) => yn(at.value(_e), me));
|
|
4597
4597
|
}
|
|
4598
4598
|
H(he);
|
|
@@ -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
|
-
s.value === !1 &&
|
|
4608
|
+
s.value === !1 && D.value !== null && D.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(
|
|
4639
|
-
innerValue:
|
|
4638
|
+
}), Object.assign(M, {
|
|
4639
|
+
innerValue: q,
|
|
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: T,
|
|
5020
|
+
onTouchstart: T,
|
|
5021
|
+
onClick: T,
|
|
5022
|
+
onKeydown: T,
|
|
5023
|
+
onKeyup: T
|
|
5024
5024
|
};
|
|
5025
5025
|
if (h.value === !0) {
|
|
5026
|
-
const
|
|
5027
|
-
onClick:
|
|
5028
|
-
onKeydown:
|
|
5029
|
-
onMousedown:
|
|
5026
|
+
const w = {
|
|
5027
|
+
onClick: D,
|
|
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
|
|
5048
|
+
function D(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 T(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 &&
|
|
5099
|
+
click: (w) => {
|
|
5100
|
+
h.value === !0 && D(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"), D = 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
|
+
}), T = 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,37 +6067,37 @@ 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)
|
|
6075
6075
|
),
|
|
6076
6076
|
0
|
|
6077
6077
|
)
|
|
6078
|
-
),
|
|
6078
|
+
), q = b(() => {
|
|
6079
6079
|
if (i.title !== void 0 && i.title !== null && i.title.length !== 0)
|
|
6080
6080
|
return i.title;
|
|
6081
6081
|
if (P.value !== null) {
|
|
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
|
-
}), j = b(() =>
|
|
6091
|
+
}), j = 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 (
|
|
6096
|
+
if (M.value > 1) {
|
|
6097
6097
|
const S = j.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: T.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: T.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: T.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: T.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 = T.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 && (
|
|
6404
|
-
|
|
6403
|
+
ne !== x.value.dateHash && (D.value = x.value.dateHash < ne == (r.lang.rtl !== !0) ? "left" : "right", S !== x.value.year && (F.value = D.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() {
|
|
@@ -6501,7 +6501,7 @@ const fg = Je({
|
|
|
6501
6501
|
O(fi, {
|
|
6502
6502
|
name: "q-transition--fade"
|
|
6503
6503
|
}, () => O("div", {
|
|
6504
|
-
key: "h-sub" +
|
|
6504
|
+
key: "h-sub" + q.value,
|
|
6505
6505
|
class: "q-date__header-title-label q-date__header-link " + (C.value === "Calendar" ? "q-date__header-link--active" : "cursor-pointer"),
|
|
6506
6506
|
tabindex: l.value,
|
|
6507
6507
|
...s("vC", {
|
|
@@ -6512,7 +6512,7 @@ const fg = Je({
|
|
|
6512
6512
|
S.keyCode === 13 && (C.value = "Calendar");
|
|
6513
6513
|
}
|
|
6514
6514
|
})
|
|
6515
|
-
}, [
|
|
6515
|
+
}, [q.value]))
|
|
6516
6516
|
]),
|
|
6517
6517
|
i.todayBtn === !0 ? O(It, {
|
|
6518
6518
|
class: "q-date__header-today self-start",
|
|
@@ -6595,7 +6595,7 @@ const fg = Je({
|
|
|
6595
6595
|
label: g.value.months[x.value.month - 1],
|
|
6596
6596
|
type: "Months",
|
|
6597
6597
|
key: x.value.month,
|
|
6598
|
-
dir:
|
|
6598
|
+
dir: D.value,
|
|
6599
6599
|
goTo: be,
|
|
6600
6600
|
boundaries: wt.value.month,
|
|
6601
6601
|
cls: " col"
|
|
@@ -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: ""
|
|
@@ -6615,7 +6615,7 @@ const fg = Je({
|
|
|
6615
6615
|
class: "q-date__calendar-days-container relative-position overflow-hidden"
|
|
6616
6616
|
}, [
|
|
6617
6617
|
O(fi, {
|
|
6618
|
-
name: "q-transition--slide-" +
|
|
6618
|
+
name: "q-transition--slide-" + D.value
|
|
6619
6619
|
}, () => O("div", {
|
|
6620
6620
|
key: dt.value,
|
|
6621
6621
|
class: "q-date__calendar-days fit"
|
|
@@ -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 ? T.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 ? T.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
|
+
), D = 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), T = 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
|
-
const Q =
|
|
7211
|
+
const Q = q(0, 11, R.value), $ = q(12, 11, R.value);
|
|
7212
7212
|
return { am: Q, pm: $, values: Q.values.concat($.values) };
|
|
7213
|
-
}), H = b(() =>
|
|
7213
|
+
}), H = b(() => T.value !== null ? q(0, 59, T.value) : null), I = b(() => w.value !== null ? q(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,14 +7253,14 @@ 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()
|
|
7260
7260
|
};
|
|
7261
7261
|
qe(Q), Object.assign(x.value, Q), v.value = "hour";
|
|
7262
7262
|
}
|
|
7263
|
-
function
|
|
7263
|
+
function q(Q, $, be) {
|
|
7264
7264
|
const Ce = Array.apply(null, { length: $ + 1 }).map((Re, Nt) => {
|
|
7265
7265
|
const De = Nt + Q;
|
|
7266
7266
|
return {
|
|
@@ -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 (T.value !== null && T.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
|
}
|
|
@@ -7487,17 +7487,17 @@ const dg = Je({
|
|
|
7487
7487
|
tabindex: s.value,
|
|
7488
7488
|
onClick: Qe.hour,
|
|
7489
7489
|
onKeyup: dt
|
|
7490
|
-
},
|
|
7490
|
+
}, D.value.hour),
|
|
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,
|
|
7498
7498
|
onClick: Qe.minute
|
|
7499
7499
|
} : { class: "q-time__link" },
|
|
7500
|
-
|
|
7500
|
+
D.value.minute
|
|
7501
7501
|
)
|
|
7502
7502
|
];
|
|
7503
7503
|
i.withSeconds === !0 && Q.push(
|
|
@@ -7510,7 +7510,7 @@ const dg = Je({
|
|
|
7510
7510
|
onKeyup: Bi,
|
|
7511
7511
|
onClick: Qe.second
|
|
7512
7512
|
} : { class: "q-time__link" },
|
|
7513
|
-
|
|
7513
|
+
D.value.second
|
|
7514
7514
|
)
|
|
7515
7515
|
);
|
|
7516
7516
|
const $ = [
|
|
@@ -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"), D = String(k.getMinutes()).padStart(2, "0");
|
|
7838
|
+
n.value = `${v}-${x}-${C} ${E}:${D}`;
|
|
7839
7839
|
} else {
|
|
7840
|
-
let
|
|
7841
|
-
const
|
|
7842
|
-
|
|
7843
|
-
const
|
|
7844
|
-
n.value = `${v}-${x}-${C} ${
|
|
7840
|
+
let E = k.getHours();
|
|
7841
|
+
const D = 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} ${D}`;
|
|
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
|
|
8115
|
-
|
|
8114
|
+
function D(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,37 +8152,37 @@ 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:
|
|
8159
|
-
onKeyup:
|
|
8158
|
+
onClick: F,
|
|
8159
|
+
onKeyup: D
|
|
8160
8160
|
}), N.unshift(
|
|
8161
8161
|
O("div", {
|
|
8162
8162
|
ref: s,
|
|
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 T() {
|
|
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, T);
|
|
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: D } = 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: T,
|
|
8422
|
+
handleHide: w,
|
|
8423
8423
|
hideOnRouteChange: f,
|
|
8424
8424
|
processOnMount: !0
|
|
8425
8425
|
});
|
|
8426
|
-
Object.assign(
|
|
8427
|
-
const { showPortal:
|
|
8426
|
+
Object.assign(D, { delayShow: I, delayHide: N });
|
|
8427
|
+
const { showPortal: B, hidePortal: P, renderPortal: R } = bc(s, a, q, "tooltip");
|
|
8428
8428
|
if (l.platform.is.mobile === !0) {
|
|
8429
8429
|
const j = {
|
|
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
|
() => (
|
|
@@ -8445,23 +8445,23 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8445
8445
|
nl(j);
|
|
8446
8446
|
});
|
|
8447
8447
|
}
|
|
8448
|
-
function
|
|
8449
|
-
|
|
8448
|
+
function T(j) {
|
|
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", j);
|
|
8456
8456
|
}, i.transitionDuration);
|
|
8457
8457
|
}
|
|
8458
|
-
function
|
|
8459
|
-
m(), P(),
|
|
8458
|
+
function w(j) {
|
|
8459
|
+
m(), P(), A(), p(() => {
|
|
8460
8460
|
P(!0), t("hide", j);
|
|
8461
8461
|
}, i.transitionDuration);
|
|
8462
8462
|
}
|
|
8463
|
-
function
|
|
8464
|
-
o !== void 0 && (o.disconnect(), o = void 0), r !== void 0 && (r(), r = void 0), x(), Xn(
|
|
8463
|
+
function A() {
|
|
8464
|
+
o !== void 0 && (o.disconnect(), o = void 0), r !== void 0 && (r(), r = void 0), x(), Xn(D, "tooltipTemp");
|
|
8465
8465
|
}
|
|
8466
8466
|
function H() {
|
|
8467
8467
|
kc({
|
|
@@ -8474,21 +8474,21 @@ 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(j) {
|
|
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
|
-
rn(
|
|
8481
|
+
rn(D, "tooltipTemp", oe);
|
|
8482
8482
|
}
|
|
8483
8483
|
p(() => {
|
|
8484
|
-
|
|
8484
|
+
F(j);
|
|
8485
8485
|
}, i.delay);
|
|
8486
8486
|
}
|
|
8487
8487
|
function N(j) {
|
|
8488
|
-
l.platform.is.mobile === !0 && (Xn(
|
|
8488
|
+
l.platform.is.mobile === !0 && (Xn(D, "tooltipTemp"), Zs(), setTimeout(() => {
|
|
8489
8489
|
document.body.classList.remove("non-selectable");
|
|
8490
8490
|
}, 10)), p(() => {
|
|
8491
|
-
|
|
8491
|
+
V(j);
|
|
8492
8492
|
}, i.hideDelay);
|
|
8493
8493
|
}
|
|
8494
8494
|
function K() {
|
|
@@ -8499,16 +8499,16 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8499
8499
|
[C.value, "mouseenter", "delayShow", "passive"],
|
|
8500
8500
|
[C.value, "mouseleave", "delayHide", "passive"]
|
|
8501
8501
|
];
|
|
8502
|
-
rn(
|
|
8502
|
+
rn(D, "anchor", j);
|
|
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 j = i.noParentEvent === !0 ? H :
|
|
8507
|
+
const j = i.noParentEvent === !0 ? H : V;
|
|
8508
8508
|
v(k.value, j);
|
|
8509
8509
|
}
|
|
8510
8510
|
}
|
|
8511
|
-
function
|
|
8511
|
+
function M() {
|
|
8512
8512
|
return u.value === !0 ? O("div", {
|
|
8513
8513
|
...n,
|
|
8514
8514
|
ref: a,
|
|
@@ -8523,10 +8523,10 @@ const of = /* @__PURE__ */ Ut(_1, [["render", V1], ["__scopeId", "data-v-813eef2
|
|
|
8523
8523
|
role: "tooltip"
|
|
8524
8524
|
}, qt(e.default)) : null;
|
|
8525
8525
|
}
|
|
8526
|
-
function
|
|
8527
|
-
return O(fi, g.value,
|
|
8526
|
+
function q() {
|
|
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, T;
|
|
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 = (T = c == null ? void 0 : c.quickformsDefaults) == null ? void 0 : T.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
|
+
}, T = {
|
|
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
|
+
...T,
|
|
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, T = P[V];
|
|
8625
|
+
P[V] = P[R], P[R] = T, 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 T = g.value[V];
|
|
8633
|
+
if (typeof T == "object" && T !== null) {
|
|
8634
|
+
let w = B, A = !1;
|
|
8635
|
+
if (w = w.replace(/\{\{([^}]+)\}\}/g, (H, I) => {
|
|
8636
|
+
const N = T[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
|
|
8930
|
+
const D = ((N = f == null ? void 0 : f.quickformsDefaults) == null ? void 0 : N.keyvalue) || {}, F = t.schema["x-quickforms-quasar"] || {}, V = F.addButtonPosition ?? D.addButtonPosition ?? "bottom-left", B = F.showHeaders ?? D.showHeaders ?? !1, P = F.keyLabel ?? D.keyLabel ?? "Key", R = F.valueLabel ?? D.valueLabel ?? "Value", T = t.schema["x-infer-types"] ?? F.inferTypes ?? D.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,72 +8941,72 @@ const tx = /* @__PURE__ */ Pt({
|
|
|
8941
8941
|
icon: "close",
|
|
8942
8942
|
color: "negative"
|
|
8943
8943
|
}, H = {
|
|
8944
|
-
...
|
|
8945
|
-
...
|
|
8946
|
-
...
|
|
8947
|
-
},
|
|
8948
|
-
...
|
|
8949
|
-
...
|
|
8950
|
-
...
|
|
8944
|
+
...w,
|
|
8945
|
+
...D.addButton || {},
|
|
8946
|
+
...F.addButton || {}
|
|
8947
|
+
}, I = {
|
|
8948
|
+
...A,
|
|
8949
|
+
...D.removeButton || {},
|
|
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: T
|
|
8960
8960
|
};
|
|
8961
8961
|
}), m = b(() => {
|
|
8962
|
-
const
|
|
8963
|
-
return
|
|
8962
|
+
const D = d.value.addButtonPosition;
|
|
8963
|
+
return D === "top-left" || D === "top-right";
|
|
8964
8964
|
}), p = b(() => {
|
|
8965
|
-
const
|
|
8966
|
-
return
|
|
8965
|
+
const D = d.value.addButtonPosition;
|
|
8966
|
+
return D === "top-right" || D === "bottom-right";
|
|
8967
8967
|
}), g = b(() => d.value.addButtonPosition === "bottom-center");
|
|
8968
8968
|
let y = 0;
|
|
8969
8969
|
const k = G([]), v = G(!1);
|
|
8970
8970
|
ye(
|
|
8971
8971
|
() => n.value,
|
|
8972
|
-
(
|
|
8972
|
+
(D) => {
|
|
8973
8973
|
if (v.value) {
|
|
8974
8974
|
v.value = !1;
|
|
8975
8975
|
return;
|
|
8976
8976
|
}
|
|
8977
|
-
|
|
8978
|
-
key:
|
|
8979
|
-
value: String(
|
|
8977
|
+
D && typeof D == "object" && !Array.isArray(D) ? k.value = Object.entries(D).map(([F, V]) => ({
|
|
8978
|
+
key: F,
|
|
8979
|
+
value: String(V),
|
|
8980
8980
|
id: y++
|
|
8981
8981
|
})) : k.value.length || (k.value = []);
|
|
8982
8982
|
},
|
|
8983
8983
|
{ immediate: !0 }
|
|
8984
8984
|
), ye(
|
|
8985
8985
|
k,
|
|
8986
|
-
(
|
|
8987
|
-
const
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
}), v.value = !0, r(
|
|
8986
|
+
(D) => {
|
|
8987
|
+
const F = {};
|
|
8988
|
+
D.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
|
);
|
|
8994
8994
|
function x() {
|
|
8995
8995
|
k.value.push({ key: "", value: "", id: y++ });
|
|
8996
8996
|
}
|
|
8997
|
-
function C(
|
|
8998
|
-
k.value = k.value.filter((
|
|
8997
|
+
function C(D) {
|
|
8998
|
+
k.value = k.value.filter((F) => F.id !== D);
|
|
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
|
-
}, set nextId(
|
|
9003
|
-
y =
|
|
9002
|
+
}, set nextId(D) {
|
|
9003
|
+
y = D;
|
|
9004
9004
|
}, pairs: k, isInternalUpdate: v, addPair: x, removePair: C, get QInput() {
|
|
9005
9005
|
return ar;
|
|
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: D } = e.docView.measureTextSize();
|
|
15925
|
+
s = C > 0 && r.refresh(o, C, E, D, 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), D = ((v - k) / 2 + g) / p;
|
|
16036
|
+
x = E - D, C = E + D;
|
|
16037
16037
|
} else
|
|
16038
16038
|
x = (k - g) / p, C = (v + g) / p;
|
|
16039
16039
|
d = vs(h, x), m = vs(h, C);
|
|
@@ -17800,43 +17800,43 @@ 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 ??
|
|
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), D = [];
|
|
17804
|
+
return (p || d).to < (g || m).from - (p && g ? 1 : 0) || d.widgetLineBreaks > 1 && C.bottom + i.defaultLineHeight / 2 < E.top ? D.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(D).concat(k(E));
|
|
17805
|
+
}
|
|
17806
|
+
function y(C, E, D, F) {
|
|
17807
|
+
return new Go(e, C - a.left, E - a.top, D - C, F - E);
|
|
17808
|
+
}
|
|
17809
|
+
function k({ top: C, bottom: E, horizontal: D }) {
|
|
17810
|
+
let F = [];
|
|
17811
|
+
for (let V = 0; V < D.length; V += 2)
|
|
17812
|
+
F.push(y(D[V], C, D[V + 1], E));
|
|
17813
|
+
return F;
|
|
17814
|
+
}
|
|
17815
|
+
function v(C, E, D) {
|
|
17816
|
+
let F = 1e9, V = -1e9, B = [];
|
|
17817
|
+
function P(w, A, H, I, N) {
|
|
17818
|
+
let K = i.coordsAtPos(w, w == D.to ? -2 : 2), Y = i.coordsAtPos(H, H == D.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 ?? D.from, T = E ?? D.to;
|
|
17822
|
+
for (let w of i.visibleRanges)
|
|
17823
|
+
if (w.to > R && w.from < T)
|
|
17824
|
+
for (let A = Math.max(w.from, R), H = Math.min(w.to, T); ; ) {
|
|
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 >= T, 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, T, E == null, i.textDirection), { top: F, bottom: V, horizontal: B };
|
|
17836
17836
|
}
|
|
17837
|
-
function x(C,
|
|
17838
|
-
let
|
|
17839
|
-
return { top:
|
|
17837
|
+
function x(C, E) {
|
|
17838
|
+
let D = l.top + (E ? C.top : C.bottom);
|
|
17839
|
+
return { top: D, bottom: D, horizontal: [] };
|
|
17840
17840
|
}
|
|
17841
17841
|
}
|
|
17842
17842
|
function gw(i, e) {
|
|
@@ -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, D = 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 < D && 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: D, 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,125 +20344,125 @@ 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
|
-
|
|
20347
|
+
function h(C, E, D, F, V, B) {
|
|
20348
|
+
let { id: P, start: R, end: T, size: w } = l, A = c, H = u;
|
|
20349
|
+
if (w < 0)
|
|
20350
|
+
if (l.next(), w == -1) {
|
|
20351
|
+
let M = o[P];
|
|
20352
|
+
D.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
|
|
20365
|
-
for (; l.pos >
|
|
20366
|
-
j = y(K.start,
|
|
20367
|
-
N = new _n(
|
|
20361
|
+
throw new RangeError(`Unrecognized record size: ${w}`);
|
|
20362
|
+
let I = a[P], N, K, Y = R - C;
|
|
20363
|
+
if (T - R <= r && (K = g(l.pos - E, V))) {
|
|
20364
|
+
let M = new Uint16Array(K.size - K.skip), q = l.pos - K.size, j = M.length;
|
|
20365
|
+
for (; l.pos > q; )
|
|
20366
|
+
j = y(K.start, M, j);
|
|
20367
|
+
N = new _n(M, T - K.start, n), Y = K.start - C;
|
|
20368
20368
|
} else {
|
|
20369
|
-
let
|
|
20369
|
+
let M = l.pos - w;
|
|
20370
20370
|
l.next();
|
|
20371
|
-
let
|
|
20372
|
-
for (; l.pos >
|
|
20373
|
-
J >= 0 && l.id == J && l.size >= 0 ? (l.end <= ce - r && (m(
|
|
20374
|
-
if (J >= 0 && oe > 0 && oe <
|
|
20375
|
-
let se = d(
|
|
20376
|
-
N = Wc(
|
|
20371
|
+
let q = [], j = [], J = P >= s ? P : -1, oe = 0, ce = T;
|
|
20372
|
+
for (; l.pos > M; )
|
|
20373
|
+
J >= 0 && l.id == J && l.size >= 0 ? (l.end <= ce - r && (m(q, j, R, oe, l.end, ce, J, A, H), oe = q.length, ce = l.end), l.next()) : B > 2500 ? f(R, M, q, j) : h(R, M, q, j, J, B + 1);
|
|
20374
|
+
if (J >= 0 && oe > 0 && oe < q.length && m(q, j, R, oe, R, ce, J, A, H), q.reverse(), j.reverse(), J > -1 && oe > 0) {
|
|
20375
|
+
let se = d(I, H);
|
|
20376
|
+
N = Wc(I, q, j, 0, q.length, 0, T - R, se, se);
|
|
20377
20377
|
} else
|
|
20378
|
-
N = p(
|
|
20378
|
+
N = p(I, q, j, T - R, A - T, H);
|
|
20379
20379
|
}
|
|
20380
|
-
|
|
20380
|
+
D.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, D, F) {
|
|
20383
|
+
let V = [], B = 0, P = -1;
|
|
20384
|
+
for (; l.pos > E; ) {
|
|
20385
|
+
let { id: R, start: T, end: w, size: A } = l;
|
|
20386
|
+
if (A > 4)
|
|
20387
20387
|
l.next();
|
|
20388
20388
|
else {
|
|
20389
|
-
if (P > -1 &&
|
|
20389
|
+
if (P > -1 && T < P)
|
|
20390
20390
|
break;
|
|
20391
|
-
P < 0 && (P =
|
|
20391
|
+
P < 0 && (P = w - r), V.push(R, T, w), B++, l.next();
|
|
20392
20392
|
}
|
|
20393
20393
|
}
|
|
20394
|
-
if (
|
|
20395
|
-
let R = new Uint16Array(
|
|
20396
|
-
for (let
|
|
20397
|
-
R[
|
|
20398
|
-
|
|
20394
|
+
if (B) {
|
|
20395
|
+
let R = new Uint16Array(B * 4), T = 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] - T, R[A++] = V[w + 2] - T, R[A++] = A;
|
|
20398
|
+
D.push(new _n(R, V[2] - T, n)), F.push(T - C);
|
|
20399
20399
|
}
|
|
20400
20400
|
}
|
|
20401
|
-
function d(C,
|
|
20402
|
-
return (
|
|
20403
|
-
let
|
|
20404
|
-
if (P >= 0 && (R =
|
|
20405
|
-
if (!P && R.type == C && R.length ==
|
|
20401
|
+
function d(C, E) {
|
|
20402
|
+
return (D, F, V) => {
|
|
20403
|
+
let B = 0, P = D.length - 1, R, T;
|
|
20404
|
+
if (P >= 0 && (R = D[P]) instanceof xt) {
|
|
20405
|
+
if (!P && R.type == C && R.length == V)
|
|
20406
20406
|
return R;
|
|
20407
|
-
(
|
|
20407
|
+
(T = R.prop(Pe.lookAhead)) && (B = F[P] + R.length + T);
|
|
20408
20408
|
}
|
|
20409
|
-
return p(C,
|
|
20409
|
+
return p(C, D, 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, D, F, V, B, P, R, T) {
|
|
20413
|
+
let w = [], A = [];
|
|
20414
|
+
for (; C.length > F; )
|
|
20415
|
+
w.push(C.pop()), A.push(E.pop() + D - V);
|
|
20416
|
+
C.push(p(n.types[P], w, A, B - V, R - B, T)), E.push(V - D);
|
|
20417
20417
|
}
|
|
20418
|
-
function p(C,
|
|
20419
|
-
if (
|
|
20420
|
-
let R = [Pe.contextHash,
|
|
20418
|
+
function p(C, E, D, 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, D, F, P);
|
|
20428
20428
|
}
|
|
20429
|
-
function g(C,
|
|
20430
|
-
let
|
|
20431
|
-
e: for (let
|
|
20432
|
-
let
|
|
20433
|
-
if (
|
|
20434
|
-
R.size =
|
|
20429
|
+
function g(C, E) {
|
|
20430
|
+
let D = l.fork(), F = 0, V = 0, B = 0, P = D.end - r, R = { size: 0, start: 0, skip: 0 };
|
|
20431
|
+
e: for (let T = D.pos - C; D.pos > T; ) {
|
|
20432
|
+
let w = D.size;
|
|
20433
|
+
if (D.id == E && w >= 0) {
|
|
20434
|
+
R.size = F, R.start = V, R.skip = B, B += 4, F += 4, D.next();
|
|
20435
20435
|
continue;
|
|
20436
20436
|
}
|
|
20437
|
-
let
|
|
20438
|
-
if (
|
|
20437
|
+
let A = D.pos - w;
|
|
20438
|
+
if (w < 0 || A < T || D.start < P)
|
|
20439
20439
|
break;
|
|
20440
|
-
let H =
|
|
20441
|
-
for (
|
|
20442
|
-
if (
|
|
20443
|
-
if (
|
|
20440
|
+
let H = D.id >= s ? 4 : 0, I = D.start;
|
|
20441
|
+
for (D.next(); D.pos > A; ) {
|
|
20442
|
+
if (D.size < 0)
|
|
20443
|
+
if (D.size == -3)
|
|
20444
20444
|
H += 4;
|
|
20445
20445
|
else
|
|
20446
20446
|
break e;
|
|
20447
|
-
else
|
|
20448
|
-
|
|
20447
|
+
else D.id >= s && (H += 4);
|
|
20448
|
+
D.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 &&
|
|
20457
|
-
let R =
|
|
20454
|
+
function y(C, E, D) {
|
|
20455
|
+
let { id: F, start: V, end: B, size: P } = l;
|
|
20456
|
+
if (l.next(), P >= 0 && F < s) {
|
|
20457
|
+
let R = D;
|
|
20458
20458
|
if (P > 4) {
|
|
20459
|
-
let
|
|
20460
|
-
for (; l.pos >
|
|
20461
|
-
|
|
20459
|
+
let T = l.pos - (P - 4);
|
|
20460
|
+
for (; l.pos > T; )
|
|
20461
|
+
D = y(C, E, D);
|
|
20462
20462
|
}
|
|
20463
|
-
|
|
20464
|
-
} else P == -3 ? u =
|
|
20465
|
-
return
|
|
20463
|
+
E[--D] = R, E[--D] = B - C, E[--D] = V - C, E[--D] = F;
|
|
20464
|
+
} else P == -3 ? u = F : P == -4 && (c = F);
|
|
20465
|
+
return D;
|
|
20466
20466
|
}
|
|
20467
20467
|
let k = [], v = [];
|
|
20468
20468
|
for (; l.pos > 0; )
|
|
@@ -20498,23 +20498,23 @@ 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
|
-
let
|
|
20504
|
-
if (
|
|
20503
|
+
let D = Us(i, m[v]);
|
|
20504
|
+
if (E + D >= c)
|
|
20505
20505
|
break;
|
|
20506
|
-
|
|
20506
|
+
E += D;
|
|
20507
20507
|
}
|
|
20508
20508
|
if (v == x + 1) {
|
|
20509
|
-
if (
|
|
20510
|
-
let
|
|
20511
|
-
d(
|
|
20509
|
+
if (E > c) {
|
|
20510
|
+
let D = m[x];
|
|
20511
|
+
d(D.children, D.positions, 0, D.children.length, p[x] + k);
|
|
20512
20512
|
continue;
|
|
20513
20513
|
}
|
|
20514
20514
|
h.push(m[x]);
|
|
20515
20515
|
} else {
|
|
20516
|
-
let
|
|
20517
|
-
h.push(Wc(i, m, p, x, v, C,
|
|
20516
|
+
let D = p[v - 1] + m[v - 1].length - C;
|
|
20517
|
+
h.push(Wc(i, m, p, x, v, C, D, null, a));
|
|
20518
20518
|
}
|
|
20519
20519
|
f.push(C + k - o);
|
|
20520
20520
|
}
|
|
@@ -24277,8 +24277,8 @@ 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
|
|
24281
|
-
(!k ||
|
|
24280
|
+
let E, D = 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
|
+
(!k || D == 1 && g || x == 0 && D != 0) && (t[h] == C || n[h] == C && (f = !0) ? s[h++] = k : s.length && (y = !1)), x = D, 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);
|
|
24284
24284
|
}
|
|
@@ -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
|
+
(T) => {
|
|
27559
27559
|
if (p.value) {
|
|
27560
27560
|
try {
|
|
27561
|
-
d.value = JSON.stringify(
|
|
27561
|
+
d.value = JSON.stringify(T || {}, 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 T = t.schema["x-json-height"];
|
|
27573
|
+
if (T)
|
|
27574
|
+
return T;
|
|
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 T = t.schema["x-json-dark-theme"];
|
|
27580
|
+
if (T !== void 0)
|
|
27581
|
+
return console.log("[JSON Editor] Using darkTheme from schema:", T), T === !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(T) {
|
|
27595
|
+
const w = T.state.doc.toString(), A = T.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 T.dispatch({
|
|
27602
|
+
changes: { from: 0, to: T.state.doc.length, insert: I },
|
|
27603
27603
|
selection: { anchor: K }
|
|
27604
27604
|
}), m.value = null, !0;
|
|
27605
27605
|
} catch {
|
|
@@ -27607,68 +27607,68 @@ 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 T = t.schema["x-json-line-numbers"];
|
|
27612
|
+
return T !== void 0 ? T : ((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 T = t.schema["x-json-lint-gutter"];
|
|
27616
|
+
return T !== void 0 ? T : ((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
|
|
27625
|
-
}),
|
|
27626
|
-
var
|
|
27627
|
-
const
|
|
27628
|
-
return
|
|
27629
|
-
}),
|
|
27618
|
+
var w, A;
|
|
27619
|
+
const T = t.schema["x-json-tab-size"];
|
|
27620
|
+
return T !== void 0 ? T : ((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 T = t.schema["x-json-indent-with-tab"];
|
|
27624
|
+
return T !== void 0 ? T : ((A = (w = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : w.jsoneditor) == null ? void 0 : A.indentWithTab) ?? !0;
|
|
27625
|
+
}), D = b(() => {
|
|
27626
|
+
var w, A;
|
|
27627
|
+
const T = t.schema["x-json-format-key"];
|
|
27628
|
+
return T !== void 0 ? T : ((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 T = [
|
|
27636
27636
|
RO(),
|
|
27637
27637
|
// Add keyboard shortcut for formatting
|
|
27638
27638
|
Yo.of([
|
|
27639
27639
|
{
|
|
27640
|
-
key:
|
|
27640
|
+
key: D.value,
|
|
27641
27641
|
run: k
|
|
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"), T.push(Wp())) : (console.log("[JSON Editor] Hiding gutters and line numbers"), T.push(
|
|
27646
27646
|
ue.theme({
|
|
27647
27647
|
".cm-gutters": {
|
|
27648
27648
|
display: "none !important"
|
|
27649
27649
|
}
|
|
27650
27650
|
})
|
|
27651
|
-
)), x.value && (
|
|
27652
|
-
}),
|
|
27653
|
-
() => `${v.value}-${x.value}-${y.value}-${
|
|
27651
|
+
)), x.value && (T.push(eO(PO())), T.push(uO())), y.value ? (console.log("[JSON Editor] Adding oneDark theme"), T.push(QO)) : console.log("[JSON Editor] NOT adding oneDark theme"), console.log("[JSON Editor] Final extensions count:", T.length), T;
|
|
27652
|
+
}), V = b(() => m.value || l.value), B = b(
|
|
27653
|
+
() => `${v.value}-${x.value}-${y.value}-${D.value}`
|
|
27654
27654
|
);
|
|
27655
|
-
ye(
|
|
27655
|
+
ye(B, () => {
|
|
27656
27656
|
console.log("[JSON Editor] editorKey changed, forcing remount");
|
|
27657
|
-
const
|
|
27657
|
+
const T = d.value;
|
|
27658
27658
|
d.value = "", rt(() => {
|
|
27659
|
-
d.value =
|
|
27659
|
+
d.value = T;
|
|
27660
27660
|
});
|
|
27661
27661
|
});
|
|
27662
|
-
function P(
|
|
27662
|
+
function P(T, w) {
|
|
27663
27663
|
if (!p.value)
|
|
27664
27664
|
try {
|
|
27665
|
-
const
|
|
27666
|
-
r(
|
|
27667
|
-
} catch (
|
|
27668
|
-
m.value =
|
|
27665
|
+
const A = JSON.parse(T);
|
|
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: D, 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,10 +27800,10 @@ const sm = /* @__PURE__ */ Ut(UO, [["render", eT], ["__file", "/Users/zachsherbo
|
|
|
27800
27800
|
autocompleteThreshold: v,
|
|
27801
27801
|
useInput: x,
|
|
27802
27802
|
fillInput: C,
|
|
27803
|
-
hideSelected:
|
|
27804
|
-
...
|
|
27803
|
+
hideSelected: E,
|
|
27804
|
+
...D
|
|
27805
27805
|
} = y;
|
|
27806
|
-
return
|
|
27806
|
+
return D;
|
|
27807
27807
|
}), f = b(() => {
|
|
27808
27808
|
var x;
|
|
27809
27809
|
const y = t.schema.items;
|
|
@@ -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, D = 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
|
+
), T = 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, q), 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,16 +28049,16 @@ 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;
|
|
28061
|
-
p.value = Ue, Ue === !0 && s(
|
|
28061
|
+
p.value = Ue, Ue === !0 && s(q), k.value = ve < parseInt(i.breakpoint, 10);
|
|
28062
28062
|
}
|
|
28063
28063
|
function Y(X, ve) {
|
|
28064
28064
|
const we = X != null && X !== "" ? v.find((ze) => ze.name.value === X) : null, Ue = ve != null && ve !== "" ? v.find((ze) => ze.name.value === ve) : null;
|
|
@@ -28066,33 +28066,33 @@ 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) {
|
|
28083
|
-
d.value[i.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(qe),
|
|
28083
|
+
d.value[i.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(qe), q();
|
|
28084
28084
|
return;
|
|
28085
28085
|
}
|
|
28086
|
-
qe += i.vertical === !0 ? Oe.height - ze : Oe.width - we, qe > 0 && (d.value[i.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(qe),
|
|
28086
|
+
qe += i.vertical === !0 ? Oe.height - ze : Oe.width - we, qe > 0 && (d.value[i.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(qe), q());
|
|
28087
28087
|
}
|
|
28088
|
-
function
|
|
28088
|
+
function q() {
|
|
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
28094
|
function j(X) {
|
|
28095
|
-
|
|
28095
|
+
D !== null && clearInterval(D), D = setInterval(() => {
|
|
28096
28096
|
ee(X) === !0 && ce();
|
|
28097
28097
|
}, 5);
|
|
28098
28098
|
}
|
|
@@ -28103,7 +28103,7 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28103
28103
|
j(H.value === !0 ? 0 : Number.MAX_SAFE_INTEGER);
|
|
28104
28104
|
}
|
|
28105
28105
|
function ce() {
|
|
28106
|
-
|
|
28106
|
+
D !== null && (clearInterval(D), D = null);
|
|
28107
28107
|
}
|
|
28108
28108
|
function se(X, ve) {
|
|
28109
28109
|
const we = Array.prototype.filter.call(
|
|
@@ -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) => {
|
|
@@ -28132,7 +28132,7 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28132
28132
|
const ve = d.value, { get: we, set: Ue } = Be.value;
|
|
28133
28133
|
let ze = !1, Oe = we(ve);
|
|
28134
28134
|
const qe = X < Oe ? -1 : 1;
|
|
28135
|
-
return Oe += qe * 5, Oe < 0 ? (ze = !0, Oe = 0) : (qe === -1 && Oe <= X || qe === 1 && Oe >= X) && (ze = !0, Oe = X), Ue(ve, Oe),
|
|
28135
|
+
return Oe += qe * 5, Oe < 0 ? (ze = !0, Oe = 0) : (qe === -1 && Oe <= X || qe === 1 && Oe >= X) && (ze = !0, Oe = X), Ue(ve, Oe), q(), ze;
|
|
28136
28136
|
}
|
|
28137
28137
|
function et(X, ve) {
|
|
28138
28138
|
for (const we in X)
|
|
@@ -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,8 +28246,8 @@ const lT = ["left", "center", "right", "justify"], aT = Je({
|
|
|
28246
28246
|
O(oT, { onResize: K }),
|
|
28247
28247
|
O("div", {
|
|
28248
28248
|
ref: d,
|
|
28249
|
-
class:
|
|
28250
|
-
onScroll:
|
|
28249
|
+
class: T.value,
|
|
28250
|
+
onScroll: q
|
|
28251
28251
|
}, qt(e.default)),
|
|
28252
28252
|
O(kt, {
|
|
28253
28253
|
class: "q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon" + (g.value === !0 ? "" : " q-tabs__arrow--faded"),
|
|
@@ -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,115 @@ 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
|
-
const F = { ...H, ...D };
|
|
28423
|
-
Object.keys(H).some((K) => !(K in D)) && r && r(F, !1);
|
|
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 };
|
|
28427
|
+
Object.keys(K).some((M) => !(M in H)) && r && r(K, !1);
|
|
28425
28428
|
}
|
|
28426
28429
|
});
|
|
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}.${
|
|
28430
|
+
const p = b(() => f.value[d.value]), g = b(() => {
|
|
28431
|
+
const w = p.value;
|
|
28432
|
+
return !w || !w.properties ? [] : Object.entries(w.properties).map(([A, H]) => ({
|
|
28433
|
+
key: A,
|
|
28434
|
+
schema: H,
|
|
28435
|
+
path: t.path ? `${t.path}.${A}` : A
|
|
28433
28436
|
}));
|
|
28434
|
-
}), g = b(() => {
|
|
28435
|
-
const w = m.value;
|
|
28436
|
-
return w && w.properties && !w.oneOf && !w.anyOf && !w.allOf;
|
|
28437
28437
|
}), y = b(() => {
|
|
28438
|
-
|
|
28438
|
+
const w = p.value;
|
|
28439
|
+
return w && w.properties && !w.oneOf && !w.anyOf && !w.allOf;
|
|
28440
|
+
}), k = b(() => {
|
|
28441
|
+
var H, I;
|
|
28439
28442
|
const w = t.schema["x-oneof-style"];
|
|
28440
28443
|
if (w)
|
|
28441
28444
|
return w;
|
|
28442
|
-
const
|
|
28443
|
-
return
|
|
28444
|
-
}),
|
|
28445
|
+
const A = (I = (H = c == null ? void 0 : c.componentDefaults) == null ? void 0 : H.oneOf) == null ? void 0 : I.displayStyle;
|
|
28446
|
+
return A || (f.value.length <= 4 ? "tabs" : "dropdown");
|
|
28447
|
+
}), v = b(() => {
|
|
28445
28448
|
const w = f.value[0];
|
|
28446
28449
|
if (!(w != null && w.properties)) return null;
|
|
28447
|
-
for (const [
|
|
28448
|
-
if (
|
|
28449
|
-
return
|
|
28450
|
+
for (const [A, H] of Object.entries(w.properties))
|
|
28451
|
+
if (H.const !== void 0)
|
|
28452
|
+
return A;
|
|
28450
28453
|
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
|
|
28454
|
+
}), x = (w) => {
|
|
28455
|
+
var H;
|
|
28456
|
+
const A = v.value;
|
|
28457
|
+
return !A || !((H = w == null ? void 0 : w.properties) != null && H[A]) ? null : w.properties[A].const ?? null;
|
|
28458
|
+
}, C = (w, A) => {
|
|
28459
|
+
const H = t.schema["x-oneof-labels"];
|
|
28460
|
+
if (H) {
|
|
28461
|
+
if (Array.isArray(H) && H[A])
|
|
28462
|
+
return H[A];
|
|
28463
|
+
if (typeof H == "object") {
|
|
28464
|
+
const I = x(w);
|
|
28465
|
+
if (I && H[I])
|
|
28466
|
+
return H[I];
|
|
28464
28467
|
}
|
|
28465
28468
|
}
|
|
28466
|
-
return w.title || `Option ${
|
|
28467
|
-
},
|
|
28469
|
+
return w.title || `Option ${A + 1}`;
|
|
28470
|
+
}, E = b(() => {
|
|
28468
28471
|
const w = t.schema["x-oneof-descriptions"];
|
|
28469
28472
|
if (!w) return null;
|
|
28470
|
-
const
|
|
28471
|
-
if (!
|
|
28473
|
+
const A = p.value;
|
|
28474
|
+
if (!A) return null;
|
|
28472
28475
|
if (Array.isArray(w) && w[d.value])
|
|
28473
28476
|
return w[d.value];
|
|
28474
28477
|
if (typeof w == "object") {
|
|
28475
|
-
const
|
|
28476
|
-
if (
|
|
28477
|
-
return w[
|
|
28478
|
+
const H = x(A);
|
|
28479
|
+
if (H && w[H])
|
|
28480
|
+
return w[H];
|
|
28478
28481
|
}
|
|
28479
28482
|
return null;
|
|
28480
|
-
}),
|
|
28481
|
-
label:
|
|
28482
|
-
value:
|
|
28483
|
-
}))),
|
|
28484
|
-
var
|
|
28483
|
+
}), D = b(() => f.value.map((w, A) => ({
|
|
28484
|
+
label: C(w, A),
|
|
28485
|
+
value: A
|
|
28486
|
+
}))), F = b(() => {
|
|
28487
|
+
var A, H;
|
|
28485
28488
|
const w = t.schema["x-oneof-select-label"];
|
|
28486
|
-
return w || ((
|
|
28487
|
-
}), V = G(
|
|
28489
|
+
return w || ((H = (A = c == null ? void 0 : c.componentDefaults) == null ? void 0 : A.oneOf) == null ? void 0 : H.selectLabel) || "Select Option";
|
|
28490
|
+
}), V = G(D.value);
|
|
28488
28491
|
ye(
|
|
28489
|
-
|
|
28492
|
+
D,
|
|
28490
28493
|
(w) => {
|
|
28491
28494
|
V.value = w;
|
|
28492
28495
|
},
|
|
28493
28496
|
{ immediate: !0 }
|
|
28494
28497
|
);
|
|
28495
|
-
const
|
|
28496
|
-
var
|
|
28498
|
+
const B = b(() => {
|
|
28499
|
+
var A, H;
|
|
28497
28500
|
const w = t.schema["x-component-props"];
|
|
28498
|
-
return (w == null ? void 0 : w.autocomplete) !== void 0 ? w.autocomplete : ((
|
|
28499
|
-
}),
|
|
28500
|
-
|
|
28501
|
+
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;
|
|
28502
|
+
}), T = { 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: D, selectLabel: F, filteredOptions: V, useFilter: B, filterFn: (w, A) => {
|
|
28503
|
+
A(() => {
|
|
28501
28504
|
if (w === "")
|
|
28502
|
-
V.value =
|
|
28505
|
+
V.value = D.value;
|
|
28503
28506
|
else {
|
|
28504
|
-
const
|
|
28505
|
-
V.value =
|
|
28506
|
-
(
|
|
28507
|
+
const H = w.toLowerCase();
|
|
28508
|
+
V.value = D.value.filter(
|
|
28509
|
+
(I) => I.label.toLowerCase().includes(H)
|
|
28507
28510
|
);
|
|
28508
28511
|
}
|
|
28509
28512
|
});
|
|
28510
28513
|
}, handleOptionChange: (w) => {
|
|
28511
28514
|
d.value = w;
|
|
28512
|
-
const
|
|
28513
|
-
if (
|
|
28514
|
-
const
|
|
28515
|
-
|
|
28516
|
-
const F = { ...H, ...D };
|
|
28517
|
-
r && r(F, !1);
|
|
28518
|
-
}
|
|
28515
|
+
const A = f.value[w];
|
|
28516
|
+
if (A && A.properties) {
|
|
28517
|
+
const H = n.value && typeof n.value == "object" ? n.value : {}, I = Is.getDefaultValue(A) || {}, N = m(A), K = { ...I, ...H, ...N };
|
|
28518
|
+
r && r(K, !1);
|
|
28519
28519
|
}
|
|
28520
28520
|
}, get QCard() {
|
|
28521
28521
|
return Ac;
|
|
@@ -28530,7 +28530,7 @@ const dT = Je({
|
|
|
28530
28530
|
}, get FieldRenderer() {
|
|
28531
28531
|
return Rl;
|
|
28532
28532
|
} };
|
|
28533
|
-
return Object.defineProperty(
|
|
28533
|
+
return Object.defineProperty(T, "__isScriptSetup", { enumerable: !1, value: !0 }), T;
|
|
28534
28534
|
}
|
|
28535
28535
|
}), gT = {
|
|
28536
28536
|
key: 0,
|
|
@@ -29013,9 +29013,9 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29013
29013
|
} = Qt(t.path, t.schema, {
|
|
29014
29014
|
label: t.label
|
|
29015
29015
|
}), h = Bm(), f = b(() => h == null ? void 0 : h.quickformsDefaults), d = b(() => {
|
|
29016
|
-
var
|
|
29017
|
-
const Y = t.schema["x-use-template-syntax"],
|
|
29018
|
-
return Y ??
|
|
29016
|
+
var q, j;
|
|
29017
|
+
const Y = t.schema["x-use-template-syntax"], M = (j = (q = f.value) == null ? void 0 : q.jsonlogicbuilder) == null ? void 0 : j.useTemplateSyntax;
|
|
29018
|
+
return Y ?? M ?? !1;
|
|
29019
29019
|
}), m = G(fm()), p = G(!1), g = G(""), y = G(null), k = G(!1);
|
|
29020
29020
|
ye(
|
|
29021
29021
|
() => n.value,
|
|
@@ -29043,21 +29043,21 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29043
29043
|
function C(Y) {
|
|
29044
29044
|
Y.push(BT()), v();
|
|
29045
29045
|
}
|
|
29046
|
-
function
|
|
29047
|
-
const
|
|
29048
|
-
|
|
29046
|
+
function E(Y, M) {
|
|
29047
|
+
const q = Y.findIndex((j) => j.id === M);
|
|
29048
|
+
q !== -1 && (Y.splice(q, 1), v());
|
|
29049
29049
|
}
|
|
29050
|
-
function
|
|
29051
|
-
Y.left =
|
|
29050
|
+
function D(Y, M) {
|
|
29051
|
+
Y.left = M, v();
|
|
29052
29052
|
}
|
|
29053
|
-
function
|
|
29054
|
-
Y.operator =
|
|
29053
|
+
function F(Y, M) {
|
|
29054
|
+
Y.operator = M, v();
|
|
29055
29055
|
}
|
|
29056
|
-
function
|
|
29057
|
-
Y.right =
|
|
29056
|
+
function V(Y, M) {
|
|
29057
|
+
Y.right = M, v();
|
|
29058
29058
|
}
|
|
29059
|
-
function
|
|
29060
|
-
Y.logic =
|
|
29059
|
+
function B(Y, M) {
|
|
29060
|
+
Y.logic = M, v();
|
|
29061
29061
|
}
|
|
29062
29062
|
function P() {
|
|
29063
29063
|
if (p.value)
|
|
@@ -29079,83 +29079,83 @@ const RT = /* @__PURE__ */ Pt({
|
|
|
29079
29079
|
function R(Y) {
|
|
29080
29080
|
g.value = Y;
|
|
29081
29081
|
try {
|
|
29082
|
-
const
|
|
29083
|
-
y.value = null, k.value = !0, r(
|
|
29084
|
-
} catch (
|
|
29085
|
-
y.value =
|
|
29086
|
-
}
|
|
29087
|
-
}
|
|
29088
|
-
const
|
|
29089
|
-
var
|
|
29090
|
-
const Y = t.schema["x-operator-display"],
|
|
29091
|
-
return Y ||
|
|
29092
|
-
}),
|
|
29093
|
-
var
|
|
29094
|
-
const Y = t.schema["x-allowed-operators"],
|
|
29095
|
-
return Y ||
|
|
29096
|
-
}),
|
|
29082
|
+
const M = JSON.parse(Y);
|
|
29083
|
+
y.value = null, k.value = !0, r(M);
|
|
29084
|
+
} catch (M) {
|
|
29085
|
+
y.value = M.message;
|
|
29086
|
+
}
|
|
29087
|
+
}
|
|
29088
|
+
const T = b(() => {
|
|
29089
|
+
var q, j;
|
|
29090
|
+
const Y = t.schema["x-operator-display"], M = (j = (q = f.value) == null ? void 0 : q.jsonlogicbuilder) == null ? void 0 : j.operatorDisplayMode;
|
|
29091
|
+
return Y || M || "short";
|
|
29092
|
+
}), w = b(() => {
|
|
29093
|
+
var q, j;
|
|
29094
|
+
const Y = t.schema["x-allowed-operators"], M = (j = (q = f.value) == null ? void 0 : q.jsonlogicbuilder) == null ? void 0 : j.allowedOperators;
|
|
29095
|
+
return Y || M || null;
|
|
29096
|
+
}), A = b(() => {
|
|
29097
29097
|
let Y = M0;
|
|
29098
|
-
return
|
|
29099
|
-
(
|
|
29100
|
-
)), Y.map((
|
|
29101
|
-
const
|
|
29098
|
+
return w.value && (Y = Y.filter(
|
|
29099
|
+
(M) => w.value.includes(M.value)
|
|
29100
|
+
)), Y.map((M) => {
|
|
29101
|
+
const q = T.value;
|
|
29102
29102
|
let j = "";
|
|
29103
|
-
switch (
|
|
29103
|
+
switch (q) {
|
|
29104
29104
|
case "icon":
|
|
29105
|
-
j =
|
|
29105
|
+
j = M.shortLabel || M.symbol || M.label;
|
|
29106
29106
|
break;
|
|
29107
29107
|
case "symbol":
|
|
29108
|
-
j =
|
|
29108
|
+
j = M.symbol || M.label;
|
|
29109
29109
|
break;
|
|
29110
29110
|
case "short":
|
|
29111
|
-
j =
|
|
29111
|
+
j = M.shortLabel || M.label;
|
|
29112
29112
|
break;
|
|
29113
29113
|
case "verbose":
|
|
29114
|
-
j =
|
|
29114
|
+
j = M.symbol ? `${M.symbol} ${M.label}` : M.label;
|
|
29115
29115
|
break;
|
|
29116
29116
|
default:
|
|
29117
|
-
j =
|
|
29117
|
+
j = M.symbol || M.label;
|
|
29118
29118
|
}
|
|
29119
29119
|
return {
|
|
29120
|
-
value:
|
|
29120
|
+
value: M.value,
|
|
29121
29121
|
label: j,
|
|
29122
|
-
icon:
|
|
29123
|
-
description:
|
|
29122
|
+
icon: M.icon,
|
|
29123
|
+
description: M.description,
|
|
29124
29124
|
// Store searchTerms for custom filter function
|
|
29125
|
-
searchTerms:
|
|
29125
|
+
searchTerms: M.searchTerms || []
|
|
29126
29126
|
};
|
|
29127
29127
|
});
|
|
29128
|
-
}), H = G(
|
|
29129
|
-
ye(
|
|
29128
|
+
}), H = G(A.value);
|
|
29129
|
+
ye(A, (Y) => {
|
|
29130
29130
|
H.value = Y;
|
|
29131
29131
|
});
|
|
29132
|
-
function
|
|
29132
|
+
function I(Y, M) {
|
|
29133
29133
|
if (Y === "") {
|
|
29134
|
-
|
|
29135
|
-
H.value =
|
|
29134
|
+
M(() => {
|
|
29135
|
+
H.value = A.value;
|
|
29136
29136
|
});
|
|
29137
29137
|
return;
|
|
29138
29138
|
}
|
|
29139
|
-
|
|
29140
|
-
const
|
|
29141
|
-
H.value =
|
|
29142
|
-
(J) => J.toLowerCase().includes(
|
|
29139
|
+
M(() => {
|
|
29140
|
+
const q = Y.toLowerCase();
|
|
29141
|
+
H.value = A.value.filter((j) => j.label.toLowerCase().includes(q) ? !0 : j.searchTerms && Array.isArray(j.searchTerms) ? j.searchTerms.some(
|
|
29142
|
+
(J) => J.toLowerCase().includes(q)
|
|
29143
29143
|
) : !1);
|
|
29144
29144
|
});
|
|
29145
29145
|
}
|
|
29146
|
-
function N(Y,
|
|
29147
|
-
if (
|
|
29148
|
-
(j) => j.value ===
|
|
29146
|
+
function N(Y, M) {
|
|
29147
|
+
if (M && typeof M == "string" && H.value.length > 0 && !A.value.some(
|
|
29148
|
+
(j) => j.value === M
|
|
29149
29149
|
)) {
|
|
29150
|
-
|
|
29150
|
+
F(
|
|
29151
29151
|
Y,
|
|
29152
29152
|
H.value[0].value
|
|
29153
29153
|
);
|
|
29154
29154
|
return;
|
|
29155
29155
|
}
|
|
29156
|
-
|
|
29156
|
+
M && F(Y, M);
|
|
29157
29157
|
}
|
|
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:
|
|
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: E, updateConditionLeft: D, updateConditionOperator: F, updateConditionRight: V, updateGroupLogic: B, toggleAdvancedMode: P, handleJsonChange: R, operatorDisplayMode: T, allowedOperators: w, operatorOptions: A, filteredOperatorOptions: H, filterOperators: I, handleOperatorInput: N, get QBtn() {
|
|
29159
29159
|
return It;
|
|
29160
29160
|
}, get QSelect() {
|
|
29161
29161
|
return zo;
|
|
@@ -29928,23 +29928,23 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29928
29928
|
});
|
|
29929
29929
|
Array.isArray(n.value) || r([], !1);
|
|
29930
29930
|
const f = b(() => {
|
|
29931
|
-
const
|
|
29931
|
+
const V = Nl(
|
|
29932
29932
|
t.schema,
|
|
29933
29933
|
h == null ? void 0 : h.componentDefaults,
|
|
29934
29934
|
"select"
|
|
29935
29935
|
), {
|
|
29936
|
-
useInput:
|
|
29936
|
+
useInput: B,
|
|
29937
29937
|
useChips: P,
|
|
29938
29938
|
multiple: R,
|
|
29939
|
-
hideDropdownIcon:
|
|
29940
|
-
newValueMode:
|
|
29941
|
-
autocomplete:
|
|
29939
|
+
hideDropdownIcon: T,
|
|
29940
|
+
newValueMode: w,
|
|
29941
|
+
autocomplete: A,
|
|
29942
29942
|
...H
|
|
29943
|
-
} =
|
|
29944
|
-
return
|
|
29943
|
+
} = V, I = { ...H };
|
|
29944
|
+
return A !== void 0 && (I.autocomplete = A === !0 ? "on" : A === !1 ? "off" : A), I;
|
|
29945
29945
|
}), d = b(() => {
|
|
29946
29946
|
var R;
|
|
29947
|
-
const
|
|
29947
|
+
const V = ((R = h == null ? void 0 : h.quickformsDefaults) == null ? void 0 : R.tags) || {}, B = t.schema["x-quickforms-quasar"] || {};
|
|
29948
29948
|
return {
|
|
29949
29949
|
chip: {
|
|
29950
29950
|
...{
|
|
@@ -29953,26 +29953,26 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29953
29953
|
color: "primary",
|
|
29954
29954
|
textColor: "white"
|
|
29955
29955
|
},
|
|
29956
|
-
...
|
|
29957
|
-
...
|
|
29956
|
+
...V.chip || {},
|
|
29957
|
+
...B.chip || {}
|
|
29958
29958
|
},
|
|
29959
29959
|
// Separator pattern for pasting multiple values
|
|
29960
|
-
separator:
|
|
29960
|
+
separator: B.separator || V.separator || /[,;\s]+/
|
|
29961
29961
|
};
|
|
29962
29962
|
}), m = b(() => {
|
|
29963
|
-
const
|
|
29964
|
-
return !
|
|
29963
|
+
const V = t.schema.items;
|
|
29964
|
+
return !V || typeof V == "boolean" ? null : Array.isArray(V) ? V[0] : V;
|
|
29965
29965
|
}), p = b(() => {
|
|
29966
|
-
var
|
|
29967
|
-
return ((
|
|
29966
|
+
var V;
|
|
29967
|
+
return ((V = m.value) == null ? void 0 : V.format) === "email";
|
|
29968
29968
|
}), g = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
29969
|
-
function y(
|
|
29970
|
-
const
|
|
29971
|
-
return
|
|
29969
|
+
function y(V) {
|
|
29970
|
+
const B = m.value;
|
|
29971
|
+
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
29972
|
}
|
|
29973
|
-
function k(
|
|
29974
|
-
const
|
|
29975
|
-
return
|
|
29973
|
+
function k(V) {
|
|
29974
|
+
const B = y(V), P = { ...d.value.chip };
|
|
29975
|
+
return B ? P : {
|
|
29976
29976
|
...P,
|
|
29977
29977
|
color: "negative",
|
|
29978
29978
|
textColor: "white",
|
|
@@ -29980,46 +29980,46 @@ const c2 = /* @__PURE__ */ Ut(RT, [["render", u2], ["__scopeId", "data-v-722c2e2
|
|
|
29980
29980
|
};
|
|
29981
29981
|
}
|
|
29982
29982
|
const v = b(() => {
|
|
29983
|
-
const
|
|
29984
|
-
return
|
|
29983
|
+
const V = t.schema["x-placeholder"];
|
|
29984
|
+
return V || (p.value ? "Type email and press Enter" : "Type and press Enter to add");
|
|
29985
29985
|
});
|
|
29986
|
-
function x(
|
|
29987
|
-
if (!(
|
|
29986
|
+
function x(V) {
|
|
29987
|
+
if (!(V != null && V.trim()))
|
|
29988
29988
|
return [];
|
|
29989
|
-
const
|
|
29990
|
-
return
|
|
29989
|
+
const B = d.value.separator, P = typeof B == "string" ? new RegExp(B) : B;
|
|
29990
|
+
return V.split(P).map((R) => R.trim()).filter((R) => R.length > 0);
|
|
29991
29991
|
}
|
|
29992
|
-
function C(
|
|
29993
|
-
const P = x(
|
|
29992
|
+
function C(V, B) {
|
|
29993
|
+
const P = x(V);
|
|
29994
29994
|
if (P.length === 0) {
|
|
29995
|
-
|
|
29995
|
+
B();
|
|
29996
29996
|
return;
|
|
29997
29997
|
}
|
|
29998
29998
|
const R = Array.isArray(n.value) ? n.value : [];
|
|
29999
29999
|
if (P.length === 1) {
|
|
30000
|
-
const
|
|
30001
|
-
R.includes(
|
|
30000
|
+
const T = P[0];
|
|
30001
|
+
R.includes(T) ? B() : B(T, "add-unique");
|
|
30002
30002
|
} else {
|
|
30003
|
-
const
|
|
30004
|
-
|
|
30003
|
+
const T = P.filter((w) => !R.includes(w));
|
|
30004
|
+
T.length > 0 && r([...R, ...T]), B();
|
|
30005
30005
|
}
|
|
30006
30006
|
}
|
|
30007
|
-
function
|
|
30008
|
-
|
|
30007
|
+
function E(V, B) {
|
|
30008
|
+
B(() => {
|
|
30009
30009
|
});
|
|
30010
30010
|
}
|
|
30011
|
-
function
|
|
30011
|
+
function D(V) {
|
|
30012
30012
|
if (t.disabled || t.readonly)
|
|
30013
30013
|
return;
|
|
30014
|
-
const
|
|
30015
|
-
r(
|
|
30014
|
+
const B = Array.isArray(n.value) ? n.value : [];
|
|
30015
|
+
r(B.filter((P) => P !== V));
|
|
30016
30016
|
}
|
|
30017
|
-
const
|
|
30017
|
+
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: D, get QSelect() {
|
|
30018
30018
|
return zo;
|
|
30019
30019
|
}, get QChip() {
|
|
30020
30020
|
return Em;
|
|
30021
30021
|
} };
|
|
30022
|
-
return Object.defineProperty(
|
|
30022
|
+
return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
|
|
30023
30023
|
}
|
|
30024
30024
|
});
|
|
30025
30025
|
function f2(i, e, t, n, r, o) {
|