@quickflo/quickforms-quasar 1.16.23 → 1.16.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaUtils as mm, ComponentRegistry as T0, rankWith as We, hasConst as D0, hasXRender as Xt, isStringType as q0, isNumberType as P0, isBooleanType as _0, isEnumType as B0, isDateFormat as R0, isTimeFormat as E0, isDateTimeFormat as L0, isRecordType as I0, isJsonType as V0, isObjectType as F0, isArrayType as ch, hasOneOf as N0, hasAnyOf as H0, hasAllOf as z0 } from "@quickflo/quickforms";
|
|
2
2
|
import { ComponentRegistry as M2, SchemaUtils as A2, and as O2, hasAllOf as T2, hasAnyOf as D2, hasConditional as q2, hasConst as P2, hasExtension as _2, hasFormat as B2, hasOneOf as R2, isArrayType as E2, isBooleanType as L2, isDateFormat as I2, isDateTimeFormat as V2, isDiscriminatedUnion as F2, isEmailFormat as N2, isEnumType as H2, isIntegerType as z2, isJsonType as j2, isNullType as W2, isNumberType as Q2, isObjectType as U2, isRecordType as K2, isStringType as Y2, isTimeFormat as G2, isUrlFormat as J2, not as X2, or as $2, rankWith as Z2 } from "@quickflo/quickforms";
|
|
3
|
-
import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Ln, getCurrentInstance as je, ref as J, onMounted as Mi, watch as ve, onBeforeUpdate as vm, inject as Ho, onBeforeUnmount as ht, nextTick as rt, onDeactivated as zo, onActivated as ac, Transition as mi, provide as ym, createElementBlock as
|
|
3
|
+
import { computed as b, markRaw as gm, defineComponent as Pt, reactive as pm, h as A, withDirectives as Ln, getCurrentInstance as je, ref as J, onMounted as Mi, watch as ve, onBeforeUpdate as vm, inject as Ho, onBeforeUnmount as ht, nextTick as rt, onDeactivated as zo, onActivated as ac, Transition as mi, provide as ym, createElementBlock as le, openBlock as te, normalizeStyle as vt, createVNode as ee, mergeProps as ot, createSlots as Gi, withCtx as ge, createTextVNode as He, createElementVNode as ke, toDisplayString as Me, toRaw as Wn, createCommentVNode as oe, unref as j0, onUnmounted as W0, Teleport as Q0, onBeforeMount as U0, onUpdated as K0, shallowReactive as Y0, vShow as G0, normalizeClass as uc, Fragment as Vt, renderList as Dn, createBlock as Di, shallowRef as aa, renderSlot as rs } from "vue";
|
|
4
4
|
import { useFormContext as J0, useFormField as X0, generateFieldId as $0, FieldRenderer as El, HiddenField as Z0 } from "@quickflo/quickforms-vue";
|
|
5
5
|
const tu = {
|
|
6
6
|
xs: 18,
|
|
@@ -1028,13 +1028,13 @@ function Ry(i, e, t, n) {
|
|
|
1028
1028
|
let Y = i.reverseFillMask === !0, M = "", q = "";
|
|
1029
1029
|
B.replace(c.value.tokenRegexMask, (w, N, U, G, re) => {
|
|
1030
1030
|
if (G !== void 0) {
|
|
1031
|
-
const
|
|
1032
|
-
F.push(
|
|
1031
|
+
const ae = c.value.tokenMap[G];
|
|
1032
|
+
F.push(ae), q = ae.negate, Y === !0 && (P.push("(?:" + q + "+)?(" + ae.pattern + "+)?(?:" + q + "+)?(" + ae.pattern + "+)?"), Y = !1), P.push("(?:" + q + "+)?(" + ae.pattern + ")?");
|
|
1033
1033
|
} else if (U !== void 0)
|
|
1034
1034
|
M = "\\" + (U === "\\" ? "" : U), F.push(U), O.push("([^" + M + "]+)?" + M + "?");
|
|
1035
1035
|
else {
|
|
1036
|
-
const
|
|
1037
|
-
M =
|
|
1036
|
+
const ae = N !== void 0 ? N : re;
|
|
1037
|
+
M = ae === "\\" ? "\\\\\\\\" : ae.replace(Sh, "\\\\$&"), F.push(ae), O.push("([^" + M + "]+)?" + M + "?");
|
|
1038
1038
|
}
|
|
1039
1039
|
});
|
|
1040
1040
|
const z = new RegExp(
|
|
@@ -1046,11 +1046,11 @@ function Ry(i, e, t, n) {
|
|
|
1046
1046
|
const N = z.exec(i.reverseFillMask === !0 ? w : w.slice(0, F.length + 1));
|
|
1047
1047
|
N !== null && (w = N.slice(1).join(""));
|
|
1048
1048
|
const U = [], G = I.length;
|
|
1049
|
-
for (let re = 0,
|
|
1050
|
-
const Be = I[re].exec(
|
|
1049
|
+
for (let re = 0, ae = w; re < G; re++) {
|
|
1050
|
+
const Be = I[re].exec(ae);
|
|
1051
1051
|
if (Be === null)
|
|
1052
1052
|
break;
|
|
1053
|
-
|
|
1053
|
+
ae = ae.slice(Be.shift().length), U.push(...Be);
|
|
1054
1054
|
}
|
|
1055
1055
|
return U.length !== 0 ? U.join("") : w;
|
|
1056
1056
|
}, r = F.map((w) => typeof w == "string" ? w : yt).join(""), o = r.split(yt).join(D);
|
|
@@ -1409,8 +1409,8 @@ const cr = Je({
|
|
|
1409
1409
|
requestAnimationFrame(() => {
|
|
1410
1410
|
const w = h.value;
|
|
1411
1411
|
if (w !== null) {
|
|
1412
|
-
const N = w.parentNode.style, { scrollTop: U } = w, { overflowY: G, maxHeight: re } = r.platform.is.firefox === !0 ? {} : window.getComputedStyle(w),
|
|
1413
|
-
|
|
1412
|
+
const N = w.parentNode.style, { scrollTop: U } = w, { overflowY: G, maxHeight: re } = r.platform.is.firefox === !0 ? {} : window.getComputedStyle(w), ae = G !== void 0 && G !== "scroll";
|
|
1413
|
+
ae === !0 && (w.style.overflowY = "hidden"), N.marginBottom = w.scrollHeight - 1 + "px", w.style.height = "1px", w.style.height = w.scrollHeight + "px", ae === !0 && (w.style.overflowY = parseInt(re, 10) < w.scrollHeight ? "auto" : "hidden"), N.marginBottom = "", w.scrollTop = U;
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
@@ -1581,7 +1581,7 @@ const jy = /* @__PURE__ */ Pt({
|
|
|
1581
1581
|
return t;
|
|
1582
1582
|
};
|
|
1583
1583
|
function Wy(i, e, t, n, r, o) {
|
|
1584
|
-
return te(),
|
|
1584
|
+
return te(), le(
|
|
1585
1585
|
"div",
|
|
1586
1586
|
{
|
|
1587
1587
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -1690,7 +1690,7 @@ const Ch = /* @__PURE__ */ Kt(jy, [["render", Wy], ["__file", "/Users/zachsherbo
|
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
function Uy(i, e, t, n, r, o) {
|
|
1693
|
-
return te(),
|
|
1693
|
+
return te(), le(
|
|
1694
1694
|
"div",
|
|
1695
1695
|
{
|
|
1696
1696
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -1960,7 +1960,7 @@ const $y = () => A("div", {
|
|
|
1960
1960
|
style: { color: "red", "font-size": "0.875rem", "margin-top": "0.25rem" }
|
|
1961
1961
|
};
|
|
1962
1962
|
function rb(i, e, t, n, r, o) {
|
|
1963
|
-
return te(),
|
|
1963
|
+
return te(), le(
|
|
1964
1964
|
"div",
|
|
1965
1965
|
{
|
|
1966
1966
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -1980,25 +1980,25 @@ function rb(i, e, t, n, r, o) {
|
|
|
1980
1980
|
1
|
|
1981
1981
|
/* TEXT */
|
|
1982
1982
|
),
|
|
1983
|
-
t.schema.required ? (te(),
|
|
1983
|
+
t.schema.required ? (te(), le("span", tb, "*")) : oe("v-if", !0)
|
|
1984
1984
|
]),
|
|
1985
1985
|
_: 1
|
|
1986
1986
|
/* STABLE */
|
|
1987
1987
|
}, 16, ["id", "modelValue", "disable", "readonly"]),
|
|
1988
|
-
t.schema.description ? (te(),
|
|
1988
|
+
t.schema.description ? (te(), le(
|
|
1989
1989
|
"div",
|
|
1990
1990
|
ib,
|
|
1991
1991
|
Me(t.schema.description),
|
|
1992
1992
|
1
|
|
1993
1993
|
/* TEXT */
|
|
1994
|
-
)) :
|
|
1995
|
-
n.errorMessage ? (te(),
|
|
1994
|
+
)) : oe("v-if", !0),
|
|
1995
|
+
n.errorMessage ? (te(), le(
|
|
1996
1996
|
"div",
|
|
1997
1997
|
nb,
|
|
1998
1998
|
Me(n.errorMessage),
|
|
1999
1999
|
1
|
|
2000
2000
|
/* TEXT */
|
|
2001
|
-
)) :
|
|
2001
|
+
)) : oe("v-if", !0)
|
|
2002
2002
|
],
|
|
2003
2003
|
4
|
|
2004
2004
|
/* STYLE */
|
|
@@ -3195,11 +3195,11 @@ const $m = Je({
|
|
|
3195
3195
|
}
|
|
3196
3196
|
s === void 0 && (s = ve(
|
|
3197
3197
|
() => c.screen.width + "|" + c.screen.height + "|" + i.self + "|" + i.anchor + "|" + c.lang.rtl,
|
|
3198
|
-
|
|
3198
|
+
ae
|
|
3199
3199
|
)), i.noFocus !== !0 && document.activeElement.blur(), p(() => {
|
|
3200
|
-
|
|
3200
|
+
ae(), i.noFocus !== !0 && z();
|
|
3201
3201
|
}), y(() => {
|
|
3202
|
-
c.platform.is.ios === !0 && (l = i.autoClose, h.value.click()),
|
|
3202
|
+
c.platform.is.ios === !0 && (l = i.autoClose, h.value.click()), ae(), B(!0), t("show", Z);
|
|
3203
3203
|
}, i.transitionDuration);
|
|
3204
3204
|
}
|
|
3205
3205
|
function I(Z) {
|
|
@@ -3212,7 +3212,7 @@ const $m = Je({
|
|
|
3212
3212
|
o = void 0, s !== void 0 && (s(), s = void 0), (Z === !0 || f.value === !0) && (ou(G), E(), ol(O), il(re)), Z !== !0 && (r = null);
|
|
3213
3213
|
}
|
|
3214
3214
|
function N() {
|
|
3215
|
-
(T.value !== null || i.scrollTarget !== void 0) && (x.value = Qm(T.value, i.scrollTarget), C(x.value,
|
|
3215
|
+
(T.value !== null || i.scrollTarget !== void 0) && (x.value = Qm(T.value, i.scrollTarget), C(x.value, ae));
|
|
3216
3216
|
}
|
|
3217
3217
|
function U(Z) {
|
|
3218
3218
|
l !== !0 ? (jm(u, Z), t("click", Z)) : l = !1;
|
|
@@ -3223,7 +3223,7 @@ const $m = Je({
|
|
|
3223
3223
|
function re(Z) {
|
|
3224
3224
|
i.noEscDismiss !== !0 && (t("escapeKey"), V(Z));
|
|
3225
3225
|
}
|
|
3226
|
-
function
|
|
3226
|
+
function ae() {
|
|
3227
3227
|
wc({
|
|
3228
3228
|
targetEl: h.value,
|
|
3229
3229
|
offset: i.offset,
|
|
@@ -3258,7 +3258,7 @@ const $m = Je({
|
|
|
3258
3258
|
}, qt(e.default)) : null
|
|
3259
3259
|
);
|
|
3260
3260
|
}
|
|
3261
|
-
return ht(w), Object.assign(u, { focus: z, updatePosition:
|
|
3261
|
+
return ht(w), Object.assign(u, { focus: z, updatePosition: ae }), R;
|
|
3262
3262
|
}
|
|
3263
3263
|
});
|
|
3264
3264
|
function Pb(i, e, t) {
|
|
@@ -3420,10 +3420,10 @@ const Lb = {
|
|
|
3420
3420
|
u = i.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, z(i.maximized), x(), l.value = !0, i.noFocus !== !0 ? ((G = document.activeElement) == null || G.blur(), p(F)) : g(), m(() => {
|
|
3421
3421
|
if (r.proxy.$q.platform.is.ios === !0) {
|
|
3422
3422
|
if (i.seamless !== !0 && document.activeElement) {
|
|
3423
|
-
const { top: re, bottom:
|
|
3424
|
-
re > 0 &&
|
|
3423
|
+
const { top: re, bottom: ae } = document.activeElement.getBoundingClientRect(), { innerHeight: Be } = window, Z = window.visualViewport !== void 0 ? window.visualViewport.height : Be;
|
|
3424
|
+
re > 0 && ae > Z / 2 && (document.scrollingElement.scrollTop = Math.min(
|
|
3425
3425
|
document.scrollingElement.scrollHeight - Z,
|
|
3426
|
-
|
|
3426
|
+
ae >= Be ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + ae - Z / 2)
|
|
3427
3427
|
)), document.activeElement.scrollIntoView();
|
|
3428
3428
|
}
|
|
3429
3429
|
h = !0, o.value.click(), h = !1;
|
|
@@ -3688,14 +3688,14 @@ function Nb({
|
|
|
3688
3688
|
);
|
|
3689
3689
|
return;
|
|
3690
3690
|
}
|
|
3691
|
-
let re = 0,
|
|
3692
|
-
if (
|
|
3693
|
-
|
|
3691
|
+
let re = 0, ae = w.scrollStart - w.offsetStart, Be = ae;
|
|
3692
|
+
if (ae <= U && ae + w.scrollViewSize >= m.value)
|
|
3693
|
+
ae -= m.value, re = x.value.from, Be = ae;
|
|
3694
3694
|
else
|
|
3695
|
-
for (let Z = 0;
|
|
3696
|
-
|
|
3697
|
-
for (;
|
|
3698
|
-
|
|
3695
|
+
for (let Z = 0; ae >= f[Z] && re < N; Z++)
|
|
3696
|
+
ae -= f[Z], re += Ti;
|
|
3697
|
+
for (; ae > 0 && re < N; )
|
|
3698
|
+
ae -= d[re], ae > -w.scrollViewSize ? (re++, Be = ae) : Be = d[re] + ae;
|
|
3699
3699
|
R(
|
|
3700
3700
|
I,
|
|
3701
3701
|
w,
|
|
@@ -3704,11 +3704,11 @@ function Nb({
|
|
|
3704
3704
|
);
|
|
3705
3705
|
}
|
|
3706
3706
|
function R(I, w, N, U, G) {
|
|
3707
|
-
const re = typeof G == "string" && G.indexOf("-force") !== -1,
|
|
3707
|
+
const re = typeof G == "string" && G.indexOf("-force") !== -1, ae = re === !0 ? G.replace("-force", "") : G, Be = ae !== void 0 ? ae : "start";
|
|
3708
3708
|
let Z = Math.max(0, N - g.value[Be]), et = Z + g.value.total;
|
|
3709
3709
|
et > i.value && (et = i.value, Z = Math.max(0, et - g.value.total)), u = w.scrollStart;
|
|
3710
3710
|
const Ie = Z !== x.value.from || et !== x.value.to;
|
|
3711
|
-
if (Ie === !1 &&
|
|
3711
|
+
if (Ie === !1 && ae === void 0) {
|
|
3712
3712
|
q(N);
|
|
3713
3713
|
return;
|
|
3714
3714
|
}
|
|
@@ -3716,7 +3716,7 @@ function Nb({
|
|
|
3716
3716
|
Ie === !0 && wt !== null && wt !== Qe && wt.contains(Qe) === !0 && (wt.addEventListener("focusout", P), setTimeout(() => {
|
|
3717
3717
|
wt == null || wt.removeEventListener("focusout", P);
|
|
3718
3718
|
})), Vb(wt, N - Z);
|
|
3719
|
-
const _t =
|
|
3719
|
+
const _t = ae !== void 0 ? d.slice(Z, N).reduce(Tr, 0) : 0;
|
|
3720
3720
|
if (Ie === !0) {
|
|
3721
3721
|
const Gt = et >= x.value.from && Z <= x.value.to ? x.value.to : et;
|
|
3722
3722
|
x.value = { from: Z, to: Gt }, m.value = $r(f, d, 0, Z), p.value = $r(f, d, et, i.value), requestAnimationFrame(() => {
|
|
@@ -3728,9 +3728,9 @@ function Nb({
|
|
|
3728
3728
|
Ie === !0 && O(Z);
|
|
3729
3729
|
const Gt = d.slice(Z, N).reduce(Tr, 0), Bt = Gt + w.offsetStart + m.value, dt = Bt + d[N];
|
|
3730
3730
|
let vi = Bt + U;
|
|
3731
|
-
if (
|
|
3731
|
+
if (ae !== void 0) {
|
|
3732
3732
|
const Li = Gt - _t, Jt = w.scrollStart + Li;
|
|
3733
|
-
vi = re !== !0 && Jt < Bt && dt < Jt + w.scrollViewSize ? Jt :
|
|
3733
|
+
vi = re !== !0 && Jt < Bt && dt < Jt + w.scrollViewSize ? Jt : ae === "end" ? dt - w.scrollViewSize : Bt - (ae === "start" ? 0 : Math.round((w.scrollViewSize - d[N]) / 2));
|
|
3734
3734
|
}
|
|
3735
3735
|
u = vi, zh(
|
|
3736
3736
|
I,
|
|
@@ -3747,11 +3747,11 @@ function Nb({
|
|
|
3747
3747
|
w.children,
|
|
3748
3748
|
(Z) => Z.classList && Z.classList.contains("q-virtual-scroll--skip") === !1
|
|
3749
3749
|
), U = N.length, G = o.virtualScrollHorizontal === !0 ? (Z) => Z.getBoundingClientRect().width : (Z) => Z.offsetHeight;
|
|
3750
|
-
let re = I,
|
|
3750
|
+
let re = I, ae, Be;
|
|
3751
3751
|
for (let Z = 0; Z < U; ) {
|
|
3752
|
-
for (
|
|
3753
|
-
|
|
3754
|
-
Be =
|
|
3752
|
+
for (ae = G(N[Z]), Z++; Z < U && N[Z].classList.contains("q-virtual-scroll--with-prev") === !0; )
|
|
3753
|
+
ae += G(N[Z]), Z++;
|
|
3754
|
+
Be = ae - d[re], Be !== 0 && (d[re] += Be, f[Math.floor(re / Ti)] += Be), re++;
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
3757
|
}
|
|
@@ -3769,11 +3769,11 @@ function Nb({
|
|
|
3769
3769
|
const G = Math.floor((i.value - 1) / Ti);
|
|
3770
3770
|
f = [];
|
|
3771
3771
|
for (let re = 0; re <= G; re++) {
|
|
3772
|
-
let
|
|
3772
|
+
let ae = 0;
|
|
3773
3773
|
const Be = Math.min((re + 1) * Ti, i.value);
|
|
3774
3774
|
for (let Z = re * Ti; Z < Be; Z++)
|
|
3775
|
-
|
|
3776
|
-
f.push(
|
|
3775
|
+
ae += d[Z];
|
|
3776
|
+
f.push(ae);
|
|
3777
3777
|
}
|
|
3778
3778
|
c = -1, u = void 0, m.value = $r(f, d, 0, x.value.from), p.value = $r(f, d, x.value.to, i.value), I >= 0 ? (O(x.value.from), rt(() => {
|
|
3779
3779
|
B(I);
|
|
@@ -3781,9 +3781,9 @@ function Nb({
|
|
|
3781
3781
|
}
|
|
3782
3782
|
function Y(I) {
|
|
3783
3783
|
if (I === void 0 && typeof window < "u") {
|
|
3784
|
-
const
|
|
3785
|
-
|
|
3786
|
-
|
|
3784
|
+
const ae = e();
|
|
3785
|
+
ae != null && ae.nodeType !== 8 && (I = ba(
|
|
3786
|
+
ae,
|
|
3787
3787
|
t(),
|
|
3788
3788
|
y.value,
|
|
3789
3789
|
k.value,
|
|
@@ -4105,7 +4105,7 @@ const Qo = Je({
|
|
|
4105
4105
|
}), U = b(() => i.optionsDark === null ? I.isDark.value : i.optionsDark), G = b(() => So(w.value)), re = b(() => {
|
|
4106
4106
|
let _ = "q-field__input q-placeholder col";
|
|
4107
4107
|
return i.hideSelected === !0 || w.value.length === 0 ? [_, i.inputClass] : (_ += " q-field__input--padding", i.inputClass === void 0 ? _ : [_, i.inputClass]);
|
|
4108
|
-
}),
|
|
4108
|
+
}), ae = b(
|
|
4109
4109
|
() => (i.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (i.popupContentClass ? " " + i.popupContentClass : "")
|
|
4110
4110
|
), Be = b(() => R.value === 0), Z = b(
|
|
4111
4111
|
() => w.value.map((_) => X.value(_)).join(", ")
|
|
@@ -4282,13 +4282,13 @@ const Qo = Je({
|
|
|
4282
4282
|
function Re(_) {
|
|
4283
4283
|
i.useInput === !0 && E.value !== null && (_ === void 0 || E.value === _.target && _.target.value === Z.value) && E.value.select();
|
|
4284
4284
|
}
|
|
4285
|
-
function
|
|
4285
|
+
function Ht(_) {
|
|
4286
4286
|
cn(_, 27) === !0 && o.value === !0 && (di(_), Ve(), yi()), t("keyup", _);
|
|
4287
4287
|
}
|
|
4288
4288
|
function De(_) {
|
|
4289
4289
|
const { value: he } = _.target;
|
|
4290
4290
|
if (_.keyCode !== void 0) {
|
|
4291
|
-
|
|
4291
|
+
Ht(_);
|
|
4292
4292
|
return;
|
|
4293
4293
|
}
|
|
4294
4294
|
if (_.target.value = "", h !== null && (clearTimeout(h), h = null), f !== null && (clearTimeout(f), f = null), yi(), typeof he == "string" && he.length !== 0) {
|
|
@@ -4471,7 +4471,7 @@ const Qo = Je({
|
|
|
4471
4471
|
function ra() {
|
|
4472
4472
|
return A($m, {
|
|
4473
4473
|
ref: T,
|
|
4474
|
-
class:
|
|
4474
|
+
class: ae.value,
|
|
4475
4475
|
style: i.popupContentStyle,
|
|
4476
4476
|
modelValue: o.value,
|
|
4477
4477
|
fit: i.menuShrink !== !0,
|
|
@@ -4536,7 +4536,7 @@ const Qo = Je({
|
|
|
4536
4536
|
return o.value === !0 && _.push(
|
|
4537
4537
|
A("div", {
|
|
4538
4538
|
ref: V,
|
|
4539
|
-
class:
|
|
4539
|
+
class: ae.value + " scroll",
|
|
4540
4540
|
style: i.popupContentStyle,
|
|
4541
4541
|
...Gt.value,
|
|
4542
4542
|
onClick: ei,
|
|
@@ -4551,14 +4551,14 @@ const Qo = Je({
|
|
|
4551
4551
|
transitionDuration: i.transitionDuration,
|
|
4552
4552
|
noRouteDismiss: i.popupNoRouteDismiss,
|
|
4553
4553
|
onBeforeShow: lh,
|
|
4554
|
-
onBeforeHide:
|
|
4554
|
+
onBeforeHide: se,
|
|
4555
4555
|
onHide: fe,
|
|
4556
4556
|
onShow: Te
|
|
4557
4557
|
}, () => A("div", {
|
|
4558
4558
|
class: "q-select__dialog" + (U.value === !0 ? " q-select__dialog--dark q-dark" : "") + (u.value === !0 ? " q-select__dialog--focused" : "")
|
|
4559
4559
|
}, _));
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function se(_) {
|
|
4562
4562
|
ah(_), H.value !== null && H.value.__updateRefocusTarget(
|
|
4563
4563
|
I.rootRef.value.querySelector(".q-field__native > [tabindex]:last-child")
|
|
4564
4564
|
), I.focused.value = !1;
|
|
@@ -4687,7 +4687,7 @@ const Qo = Je({
|
|
|
4687
4687
|
"data-autofocus": _ === !0 || i.autofocus === !0 || void 0,
|
|
4688
4688
|
...$e,
|
|
4689
4689
|
onKeydown: Rt,
|
|
4690
|
-
onKeyup:
|
|
4690
|
+
onKeyup: Ht,
|
|
4691
4691
|
onKeypress: tt
|
|
4692
4692
|
})
|
|
4693
4693
|
), me === !0 && typeof i.autocomplete == "string" && i.autocomplete.length !== 0 && he.push(
|
|
@@ -4805,7 +4805,7 @@ const Qo = Je({
|
|
|
4805
4805
|
}
|
|
4806
4806
|
});
|
|
4807
4807
|
function Qb(i, e, t, n, r, o) {
|
|
4808
|
-
return te(),
|
|
4808
|
+
return te(), le(
|
|
4809
4809
|
"div",
|
|
4810
4810
|
{
|
|
4811
4811
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -6079,8 +6079,8 @@ const dg = Je({
|
|
|
6079
6079
|
if (i.title !== void 0 && i.title !== null && i.title.length !== 0)
|
|
6080
6080
|
return i.title;
|
|
6081
6081
|
if (D.value !== null) {
|
|
6082
|
-
const W = D.value.init,
|
|
6083
|
-
return g.value.daysShort[
|
|
6082
|
+
const W = D.value.init, se = z.value(W);
|
|
6083
|
+
return g.value.daysShort[se.getDay()] + ", " + g.value.monthsShort[W.month - 1] + " " + W.day + yr + "?";
|
|
6084
6084
|
}
|
|
6085
6085
|
if (I.value === 0)
|
|
6086
6086
|
return yr;
|
|
@@ -6101,8 +6101,8 @@ const dg = Je({
|
|
|
6101
6101
|
}), re = b(() => {
|
|
6102
6102
|
const S = [r.iconSet.datetime.arrowLeft, r.iconSet.datetime.arrowRight];
|
|
6103
6103
|
return r.lang.rtl === !0 ? S.reverse() : S;
|
|
6104
|
-
}),
|
|
6105
|
-
const S = g.value.daysShort, L =
|
|
6104
|
+
}), ae = b(() => i.firstDayOfWeek !== void 0 ? Number(i.firstDayOfWeek) : g.value.firstDayOfWeek), Be = b(() => {
|
|
6105
|
+
const S = g.value.daysShort, L = ae.value;
|
|
6106
6106
|
return L > 0 ? S.slice(L, 7).concat(S.slice(0, L)) : S;
|
|
6107
6107
|
}), Z = b(() => {
|
|
6108
6108
|
const S = x.value;
|
|
@@ -6132,25 +6132,25 @@ const dg = Je({
|
|
|
6132
6132
|
}), Gt = b(() => {
|
|
6133
6133
|
const S = {};
|
|
6134
6134
|
return q.value.forEach((L) => {
|
|
6135
|
-
const W = pn(L.from),
|
|
6135
|
+
const W = pn(L.from), se = pn(L.to);
|
|
6136
6136
|
if (S[W] === void 0 && (S[W] = []), S[W].push({
|
|
6137
6137
|
from: L.from.day,
|
|
6138
|
-
to: W ===
|
|
6138
|
+
to: W === se ? L.to.day : void 0,
|
|
6139
6139
|
range: L
|
|
6140
|
-
}), W <
|
|
6140
|
+
}), W < se) {
|
|
6141
6141
|
let fe;
|
|
6142
6142
|
const { year: Te, month: pe } = L.from, Se = pe < 12 ? { year: Te, month: pe + 1 } : { year: Te + 1, month: 1 };
|
|
6143
|
-
for (; (fe = pn(Se)) <=
|
|
6143
|
+
for (; (fe = pn(Se)) <= se; )
|
|
6144
6144
|
S[fe] === void 0 && (S[fe] = []), S[fe].push({
|
|
6145
6145
|
from: void 0,
|
|
6146
|
-
to: fe ===
|
|
6146
|
+
to: fe === se ? L.to.day : void 0,
|
|
6147
6147
|
range: L
|
|
6148
6148
|
}), Se.month++, Se.month > 12 && (Se.year++, Se.month = 1);
|
|
6149
6149
|
}
|
|
6150
6150
|
}), S;
|
|
6151
6151
|
}), Bt = b(() => {
|
|
6152
6152
|
if (D.value === null) return;
|
|
6153
|
-
const { init: S, initHash: L, final: W, finalHash:
|
|
6153
|
+
const { init: S, initHash: L, final: W, finalHash: se } = D.value, [fe, Te] = L <= se ? [S, W] : [W, S], pe = pn(fe), Se = pn(Te);
|
|
6154
6154
|
if (pe !== dt.value && Se !== dt.value) return;
|
|
6155
6155
|
const Ve = {};
|
|
6156
6156
|
return pe === dt.value ? (Ve.from = fe.day, Ve.includeFrom = !0) : Ve.from = 1, Se === dt.value ? (Ve.to = Te.day, Ve.includeTo = !0) : Ve.to = Z.value, Ve;
|
|
@@ -6163,8 +6163,8 @@ const dg = Je({
|
|
|
6163
6163
|
}
|
|
6164
6164
|
const L = typeof i.options == "function" ? i.options : (W) => i.options.includes(W);
|
|
6165
6165
|
for (let W = 1; W <= Z.value; W++) {
|
|
6166
|
-
const
|
|
6167
|
-
S[W] = L(
|
|
6166
|
+
const se = dt.value + "/" + Fe(W);
|
|
6167
|
+
S[W] = L(se);
|
|
6168
6168
|
}
|
|
6169
6169
|
return S;
|
|
6170
6170
|
}), Li = b(() => {
|
|
@@ -6175,30 +6175,30 @@ const dg = Je({
|
|
|
6175
6175
|
else {
|
|
6176
6176
|
const L = typeof i.events == "function" ? i.events : (W) => i.events.includes(W);
|
|
6177
6177
|
for (let W = 1; W <= Z.value; W++) {
|
|
6178
|
-
const
|
|
6179
|
-
S[W] = L(
|
|
6178
|
+
const se = dt.value + "/" + Fe(W);
|
|
6179
|
+
S[W] = L(se) === !0 && et.value(se);
|
|
6180
6180
|
}
|
|
6181
6181
|
}
|
|
6182
6182
|
return S;
|
|
6183
6183
|
}), Jt = b(() => {
|
|
6184
6184
|
let S, L;
|
|
6185
|
-
const { year: W, month:
|
|
6185
|
+
const { year: W, month: se } = x.value;
|
|
6186
6186
|
if (i.calendar !== "persian")
|
|
6187
|
-
S = new Date(W,
|
|
6187
|
+
S = new Date(W, se - 1, 1), L = new Date(W, se - 1, 0).getDate();
|
|
6188
6188
|
else {
|
|
6189
|
-
const fe = Gh(W,
|
|
6189
|
+
const fe = Gh(W, se, 1);
|
|
6190
6190
|
S = new Date(fe.gy, fe.gm - 1, fe.gd);
|
|
6191
|
-
let Te =
|
|
6191
|
+
let Te = se - 1, pe = W;
|
|
6192
6192
|
Te === 0 && (Te = 12, pe--), L = Fs(pe, Te);
|
|
6193
6193
|
}
|
|
6194
6194
|
return {
|
|
6195
|
-
days: S.getDay() -
|
|
6195
|
+
days: S.getDay() - ae.value - 1,
|
|
6196
6196
|
endDay: L
|
|
6197
6197
|
};
|
|
6198
6198
|
}), at = b(() => {
|
|
6199
|
-
const S = [], { days: L, endDay: W } = Jt.value,
|
|
6200
|
-
if (
|
|
6201
|
-
for (let pe = W -
|
|
6199
|
+
const S = [], { days: L, endDay: W } = Jt.value, se = L < 0 ? L + 7 : L;
|
|
6200
|
+
if (se < 6)
|
|
6201
|
+
for (let pe = W - se; pe <= W; pe++)
|
|
6202
6202
|
S.push({ i: pe, fill: !0 });
|
|
6203
6203
|
const fe = S.length;
|
|
6204
6204
|
for (let pe = 1; pe <= Z.value; pe++) {
|
|
@@ -6292,7 +6292,7 @@ const dg = Je({
|
|
|
6292
6292
|
h = JSON.stringify(S);
|
|
6293
6293
|
}
|
|
6294
6294
|
function we() {
|
|
6295
|
-
const { year: S, month: L, day: W } = v.value,
|
|
6295
|
+
const { year: S, month: L, day: W } = v.value, se = {
|
|
6296
6296
|
// contains more props than needed (hour, minute, second, millisecond)
|
|
6297
6297
|
// but those aren't used in the processing of this "date" variable
|
|
6298
6298
|
...x.value,
|
|
@@ -6300,8 +6300,8 @@ const dg = Je({
|
|
|
6300
6300
|
year: S,
|
|
6301
6301
|
month: L,
|
|
6302
6302
|
day: W
|
|
6303
|
-
}, fe = _t.value[pn(
|
|
6304
|
-
(fe === void 0 || fe.includes(
|
|
6303
|
+
}, fe = _t.value[pn(se)];
|
|
6304
|
+
(fe === void 0 || fe.includes(se.day) === !1) && Jr(se), Oe(se.year, se.month);
|
|
6305
6305
|
}
|
|
6306
6306
|
function Ue(S) {
|
|
6307
6307
|
Zh(S) === !0 && (C.value = S);
|
|
@@ -6317,12 +6317,12 @@ const dg = Je({
|
|
|
6317
6317
|
D.value = null;
|
|
6318
6318
|
return;
|
|
6319
6319
|
}
|
|
6320
|
-
const W = Object.assign({ ...x.value }, S),
|
|
6320
|
+
const W = Object.assign({ ...x.value }, S), se = L !== void 0 ? Object.assign({ ...x.value }, L) : W;
|
|
6321
6321
|
D.value = {
|
|
6322
6322
|
init: W,
|
|
6323
6323
|
initHash: nn(W),
|
|
6324
|
-
final:
|
|
6325
|
-
finalHash: nn(
|
|
6324
|
+
final: se,
|
|
6325
|
+
finalHash: nn(se)
|
|
6326
6326
|
}, Oe(W.year, W.month);
|
|
6327
6327
|
}
|
|
6328
6328
|
function Xe() {
|
|
@@ -6346,8 +6346,8 @@ const dg = Je({
|
|
|
6346
6346
|
const W = Array.isArray(i.modelValue) === !0 ? i.modelValue : i.modelValue ? [i.modelValue] : [];
|
|
6347
6347
|
if (W.length === 0)
|
|
6348
6348
|
return $();
|
|
6349
|
-
const
|
|
6350
|
-
|
|
6349
|
+
const se = W[W.length - 1], fe = ut(
|
|
6350
|
+
se.from !== void 0 ? se.from : se,
|
|
6351
6351
|
S,
|
|
6352
6352
|
L
|
|
6353
6353
|
);
|
|
@@ -6384,7 +6384,7 @@ const dg = Je({
|
|
|
6384
6384
|
function Re(S) {
|
|
6385
6385
|
Rt(S, x.value.month), C.value = i.defaultView === "Years" ? "Months" : "Calendar", F.value === !0 && gn("year");
|
|
6386
6386
|
}
|
|
6387
|
-
function
|
|
6387
|
+
function Ht(S) {
|
|
6388
6388
|
Rt(x.value.year, S), C.value = "Calendar", F.value === !0 && gn("month");
|
|
6389
6389
|
}
|
|
6390
6390
|
function De(S, L) {
|
|
@@ -6399,19 +6399,19 @@ const dg = Je({
|
|
|
6399
6399
|
const { hour: fe, minute: Te, second: pe, millisecond: Se, timezoneOffset: Ve, timeHash: yi } = W;
|
|
6400
6400
|
Object.assign(x.value, { hour: fe, minute: Te, second: pe, millisecond: Se, timezoneOffset: Ve, timeHash: yi });
|
|
6401
6401
|
}
|
|
6402
|
-
const
|
|
6403
|
-
|
|
6402
|
+
const se = S + "/" + Fe(L) + "/01";
|
|
6403
|
+
se !== x.value.dateHash && (T.value = x.value.dateHash < se == (r.lang.rtl !== !0) ? "left" : "right", S !== x.value.year && (H.value = T.value), rt(() => {
|
|
6404
6404
|
B.value = S - S % tn - (S < 0 ? tn : 0), Object.assign(x.value, {
|
|
6405
6405
|
year: S,
|
|
6406
6406
|
month: L,
|
|
6407
6407
|
day: 1,
|
|
6408
|
-
dateHash:
|
|
6408
|
+
dateHash: se
|
|
6409
6409
|
});
|
|
6410
6410
|
}));
|
|
6411
6411
|
}
|
|
6412
6412
|
function Vn(S, L, W) {
|
|
6413
|
-
const
|
|
6414
|
-
ye(
|
|
6413
|
+
const se = S !== null && S.length === 1 && i.multiple === !1 ? S[0] : S, { reason: fe, details: Te } = ns(L, W);
|
|
6414
|
+
ye(se), t("update:modelValue", se, fe, Te);
|
|
6415
6415
|
}
|
|
6416
6416
|
function gn(S) {
|
|
6417
6417
|
const L = M.value[0] !== void 0 && M.value[0].dateHash !== null ? { ...M.value[0] } : { ...x.value };
|
|
@@ -6419,8 +6419,8 @@ const dg = Je({
|
|
|
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() : Fs(L.year, L.month);
|
|
6421
6421
|
L.day = Math.min(Math.max(1, L.day), W);
|
|
6422
|
-
const
|
|
6423
|
-
ye(
|
|
6422
|
+
const se = en(L), { details: fe } = ns("", L);
|
|
6423
|
+
ye(se), t("update:modelValue", se, S, fe);
|
|
6424
6424
|
});
|
|
6425
6425
|
}
|
|
6426
6426
|
function ns(S, L) {
|
|
@@ -6443,7 +6443,7 @@ const dg = Je({
|
|
|
6443
6443
|
let L;
|
|
6444
6444
|
if (i.multiple === !0)
|
|
6445
6445
|
if (S.from !== void 0) {
|
|
6446
|
-
const W = nn(S.from),
|
|
6446
|
+
const W = nn(S.from), se = nn(S.to), fe = M.value.filter((pe) => pe.dateHash < W || pe.dateHash > se), Te = q.value.filter(({ from: pe, to: Se }) => Se.dateHash < W || pe.dateHash > se);
|
|
6447
6447
|
L = fe.concat(Te).concat(S).map((pe) => en(pe));
|
|
6448
6448
|
} else {
|
|
6449
6449
|
const W = Y.value.slice();
|
|
@@ -6459,13 +6459,13 @@ const dg = Je({
|
|
|
6459
6459
|
if (i.multiple === !0 && Array.isArray(i.modelValue) === !0) {
|
|
6460
6460
|
const W = en(S);
|
|
6461
6461
|
S.from !== void 0 ? L = i.modelValue.filter(
|
|
6462
|
-
(
|
|
6463
|
-
) : L = i.modelValue.filter((
|
|
6462
|
+
(se) => se.from !== void 0 ? se.from !== W.from && se.to !== W.to : !0
|
|
6463
|
+
) : L = i.modelValue.filter((se) => se !== W), L.length === 0 && (L = null);
|
|
6464
6464
|
}
|
|
6465
6465
|
Vn(L, "remove", S);
|
|
6466
6466
|
}
|
|
6467
6467
|
function Fn(S, L, W) {
|
|
6468
|
-
const
|
|
6468
|
+
const se = M.value.concat(q.value).map((Te) => en(Te, S, L)).filter((Te) => Te.from !== void 0 ? Te.from.dateHash !== null && Te.to.dateHash !== null : Te.dateHash !== null), fe = (i.multiple === !0 ? se : se[0]) || null;
|
|
6469
6469
|
ye(fe), t("update:modelValue", fe, W);
|
|
6470
6470
|
}
|
|
6471
6471
|
function Nn() {
|
|
@@ -6527,7 +6527,7 @@ const dg = Je({
|
|
|
6527
6527
|
])
|
|
6528
6528
|
]);
|
|
6529
6529
|
}
|
|
6530
|
-
function Ii({ label: S, type: L, key: W, dir:
|
|
6530
|
+
function Ii({ label: S, type: L, key: W, dir: se, goTo: fe, boundaries: Te, cls: pe }) {
|
|
6531
6531
|
return [
|
|
6532
6532
|
A("div", {
|
|
6533
6533
|
class: "row items-center q-date__arrow"
|
|
@@ -6550,7 +6550,7 @@ const dg = Je({
|
|
|
6550
6550
|
class: "relative-position overflow-hidden flex flex-center" + pe
|
|
6551
6551
|
}, [
|
|
6552
6552
|
A(mi, {
|
|
6553
|
-
name: "q-transition--jump-" +
|
|
6553
|
+
name: "q-transition--jump-" + se
|
|
6554
6554
|
}, () => A("div", { key: W }, [
|
|
6555
6555
|
A(It, {
|
|
6556
6556
|
flat: !0,
|
|
@@ -6647,7 +6647,7 @@ const dg = Je({
|
|
|
6647
6647
|
])
|
|
6648
6648
|
],
|
|
6649
6649
|
Months() {
|
|
6650
|
-
const S = x.value.year === v.value.year, L = (
|
|
6650
|
+
const S = x.value.year === v.value.year, L = (se) => Ie.value !== null && x.value.year === Ie.value.year && Ie.value.month > se || Qe.value !== null && x.value.year === Qe.value.year && Qe.value.month < se, W = g.value.monthsShort.map((se, fe) => {
|
|
6651
6651
|
const Te = x.value.month === fe + 1;
|
|
6652
6652
|
return A("div", {
|
|
6653
6653
|
class: "q-date__months-item flex flex-center"
|
|
@@ -6655,14 +6655,14 @@ const dg = Je({
|
|
|
6655
6655
|
A(It, {
|
|
6656
6656
|
class: S === !0 && v.value.month === fe + 1 ? "q-date__today" : null,
|
|
6657
6657
|
flat: Te !== !0,
|
|
6658
|
-
label:
|
|
6658
|
+
label: se,
|
|
6659
6659
|
unelevated: Te,
|
|
6660
6660
|
color: Te === !0 ? O.value : null,
|
|
6661
6661
|
textColor: Te === !0 ? P.value : null,
|
|
6662
6662
|
tabindex: l.value,
|
|
6663
6663
|
disable: L(fe + 1),
|
|
6664
6664
|
...s("month#" + fe, { onClick: () => {
|
|
6665
|
-
|
|
6665
|
+
Ht(fe + 1);
|
|
6666
6666
|
} })
|
|
6667
6667
|
})
|
|
6668
6668
|
]);
|
|
@@ -6685,7 +6685,7 @@ const dg = Je({
|
|
|
6685
6685
|
}, W);
|
|
6686
6686
|
},
|
|
6687
6687
|
Years() {
|
|
6688
|
-
const S = B.value, L = S + tn, W = [],
|
|
6688
|
+
const S = B.value, L = S + tn, W = [], se = (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(
|
|
@@ -6702,7 +6702,7 @@ const dg = Je({
|
|
|
6702
6702
|
color: Te === !0 ? O.value : null,
|
|
6703
6703
|
textColor: Te === !0 ? P.value : null,
|
|
6704
6704
|
tabindex: l.value,
|
|
6705
|
-
disable:
|
|
6705
|
+
disable: se(fe),
|
|
6706
6706
|
...s("yr#" + fe, { onClick: () => {
|
|
6707
6707
|
Re(fe);
|
|
6708
6708
|
} })
|
|
@@ -6723,7 +6723,7 @@ const dg = Je({
|
|
|
6723
6723
|
icon: re.value[0],
|
|
6724
6724
|
"aria-label": r.lang.date.prevRangeYears(tn),
|
|
6725
6725
|
tabindex: l.value,
|
|
6726
|
-
disable:
|
|
6726
|
+
disable: se(S),
|
|
6727
6727
|
...s("y-", { onClick: () => {
|
|
6728
6728
|
B.value -= tn;
|
|
6729
6729
|
} })
|
|
@@ -6742,7 +6742,7 @@ const dg = Je({
|
|
|
6742
6742
|
icon: re.value[1],
|
|
6743
6743
|
"aria-label": r.lang.date.nextRangeYears(tn),
|
|
6744
6744
|
tabindex: l.value,
|
|
6745
|
-
disable:
|
|
6745
|
+
disable: se(L),
|
|
6746
6746
|
...s("y+", { onClick: () => {
|
|
6747
6747
|
B.value += tn;
|
|
6748
6748
|
} })
|
|
@@ -6767,16 +6767,16 @@ const dg = Je({
|
|
|
6767
6767
|
fr(L);
|
|
6768
6768
|
return;
|
|
6769
6769
|
}
|
|
6770
|
-
const
|
|
6770
|
+
const se = nn(L);
|
|
6771
6771
|
D.value = {
|
|
6772
6772
|
init: L,
|
|
6773
|
-
initHash:
|
|
6773
|
+
initHash: se,
|
|
6774
6774
|
final: L,
|
|
6775
|
-
finalHash:
|
|
6775
|
+
finalHash: se
|
|
6776
6776
|
}, t("rangeStart", tt(L));
|
|
6777
6777
|
} else {
|
|
6778
|
-
const W = D.value.initHash,
|
|
6779
|
-
D.value = null, Jr(W ===
|
|
6778
|
+
const W = D.value.initHash, se = nn(L), fe = W <= se ? { from: D.value.init, to: L } : { from: L, to: D.value.init };
|
|
6779
|
+
D.value = null, Jr(W === se ? L : { target: L, ...fe }), t("rangeEnd", {
|
|
6780
6780
|
from: tt(fe.from),
|
|
6781
6781
|
to: tt(fe.to)
|
|
6782
6782
|
});
|
|
@@ -6859,7 +6859,7 @@ const dg = Je({
|
|
|
6859
6859
|
}
|
|
6860
6860
|
}), m1 = { class: "row items-center justify-end" };
|
|
6861
6861
|
function g1(i, e, t, n, r, o) {
|
|
6862
|
-
return te(),
|
|
6862
|
+
return te(), le(
|
|
6863
6863
|
"div",
|
|
6864
6864
|
{
|
|
6865
6865
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -7223,12 +7223,12 @@ const mg = Je({
|
|
|
7223
7223
|
let Q, $, be = 0, Ce = 1;
|
|
7224
7224
|
const Re = q.value !== null ? q.value.values : void 0;
|
|
7225
7225
|
v.value === "hour" ? H.value === !0 ? (Q = 0, $ = 23) : (Q = 0, $ = 11, C.value === !1 && (be = 12)) : (Q = 0, $ = 55, Ce = 5);
|
|
7226
|
-
const
|
|
7226
|
+
const Ht = [];
|
|
7227
7227
|
for (let De = Q, tt = Q; De <= $; De += Ce, tt++) {
|
|
7228
7228
|
const Rt = De + be, Vn = (Re == null ? void 0 : Re.includes(Rt)) === !1, gn = v.value === "hour" && De === 0 ? H.value === !0 ? "00" : "12" : De;
|
|
7229
|
-
|
|
7229
|
+
Ht.push({ val: Rt, index: tt, disable: Vn, label: gn });
|
|
7230
7230
|
}
|
|
7231
|
-
return
|
|
7231
|
+
return Ht;
|
|
7232
7232
|
}), ie = b(() => [[
|
|
7233
7233
|
b1,
|
|
7234
7234
|
Z,
|
|
@@ -7261,8 +7261,8 @@ const mg = Je({
|
|
|
7261
7261
|
qe(Q), Object.assign(x.value, Q), v.value = "hour";
|
|
7262
7262
|
}
|
|
7263
7263
|
function w(Q, $, be) {
|
|
7264
|
-
const Ce = Array.apply(null, { length: $ + 1 }).map((Re,
|
|
7265
|
-
const De =
|
|
7264
|
+
const Ce = Array.apply(null, { length: $ + 1 }).map((Re, Ht) => {
|
|
7265
|
+
const De = Ht + Q;
|
|
7266
7266
|
return {
|
|
7267
7267
|
index: De,
|
|
7268
7268
|
val: be(De) === !0
|
|
@@ -7285,7 +7285,7 @@ const mg = Je({
|
|
|
7285
7285
|
return $;
|
|
7286
7286
|
if (Q < $ || Q > be)
|
|
7287
7287
|
return N(Q, $, Re) <= N(Q, be, Re) ? $ : be;
|
|
7288
|
-
const
|
|
7288
|
+
const Ht = Ce.findIndex((Rt) => Q <= Rt), De = Ce[Ht - 1], tt = Ce[Ht];
|
|
7289
7289
|
return Q - De <= tt - Q ? De : tt;
|
|
7290
7290
|
}
|
|
7291
7291
|
function G() {
|
|
@@ -7298,7 +7298,7 @@ const mg = Je({
|
|
|
7298
7298
|
}
|
|
7299
7299
|
return oo(i.defaultDate, "YYYY/MM/DD", void 0, i.calendar);
|
|
7300
7300
|
}
|
|
7301
|
-
function
|
|
7301
|
+
function ae() {
|
|
7302
7302
|
return vc(n) === !0 || q.value !== null && (q.value.values.length === 0 || v.value === "hour" && H.value !== !0 && F.value[C.value === !0 ? "am" : "pm"].values.length === 0);
|
|
7303
7303
|
}
|
|
7304
7304
|
function Be() {
|
|
@@ -7310,7 +7310,7 @@ const mg = Je({
|
|
|
7310
7310
|
};
|
|
7311
7311
|
}
|
|
7312
7312
|
function Z(Q) {
|
|
7313
|
-
if (
|
|
7313
|
+
if (ae() !== !0) {
|
|
7314
7314
|
if (Q.isFirst === !0) {
|
|
7315
7315
|
f = Be(), d = Ie(Q.evt, f);
|
|
7316
7316
|
return;
|
|
@@ -7322,19 +7322,19 @@ const mg = Je({
|
|
|
7322
7322
|
v.value === "hour" ? v.value = "minute" : i.withSeconds && v.value === "minute" && (v.value = "second");
|
|
7323
7323
|
}
|
|
7324
7324
|
function Ie(Q, $, be) {
|
|
7325
|
-
const Ce = Lr(Q), Re = Math.abs(Ce.top - $.top),
|
|
7325
|
+
const Ce = Lr(Q), Re = Math.abs(Ce.top - $.top), Ht = Math.sqrt(
|
|
7326
7326
|
Math.pow(Math.abs(Ce.top - $.top), 2) + Math.pow(Math.abs(Ce.left - $.left), 2)
|
|
7327
7327
|
);
|
|
7328
|
-
let De, tt = Math.asin(Re /
|
|
7328
|
+
let De, tt = Math.asin(Re / Ht) * (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
7330
|
if (De = tt / 30, F.value !== null) {
|
|
7331
|
-
const Rt = H.value !== !0 ? C.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ?
|
|
7331
|
+
const Rt = H.value !== !0 ? C.value === !0 : F.value.am.values.length !== 0 && F.value.pm.values.length !== 0 ? Ht >= $.dist : F.value.am.values.length !== 0;
|
|
7332
7332
|
De = U(
|
|
7333
7333
|
De + (Rt === !0 ? 0 : 12),
|
|
7334
7334
|
F.value[Rt === !0 ? "am" : "pm"]
|
|
7335
7335
|
);
|
|
7336
7336
|
} else
|
|
7337
|
-
De = Math.round(De), H.value === !0 ?
|
|
7337
|
+
De = Math.round(De), H.value === !0 ? Ht < $.dist ? De < 12 && (De += 12) : De === 12 && (De = 0) : C.value === !0 && De === 12 ? De = 0 : C.value === !1 && De !== 12 && (De += 12);
|
|
7338
7338
|
H.value === !0 && (C.value = De < 12);
|
|
7339
7339
|
} else
|
|
7340
7340
|
De = Math.round(tt / 6) % 60, v.value === "minute" && Y.value !== null ? De = U(De, Y.value) : v.value === "second" && M.value !== null && (De = U(De, M.value));
|
|
@@ -7358,10 +7358,10 @@ const mg = Je({
|
|
|
7358
7358
|
Q.keyCode === 13 && Ue();
|
|
7359
7359
|
}
|
|
7360
7360
|
function Gt(Q) {
|
|
7361
|
-
|
|
7361
|
+
ae() !== !0 && (r.platform.is.desktop !== !0 && Ie(Q, Be()), et());
|
|
7362
7362
|
}
|
|
7363
7363
|
function Bt(Q) {
|
|
7364
|
-
|
|
7364
|
+
ae() !== !0 && Ie(Q, Be());
|
|
7365
7365
|
}
|
|
7366
7366
|
function dt(Q) {
|
|
7367
7367
|
if (Q.keyCode === 13)
|
|
@@ -7638,7 +7638,7 @@ const mg = Je({
|
|
|
7638
7638
|
}
|
|
7639
7639
|
}), S1 = { class: "row items-center justify-end" };
|
|
7640
7640
|
function C1(i, e, t, n, r, o) {
|
|
7641
|
-
return te(),
|
|
7641
|
+
return te(), le(
|
|
7642
7642
|
"div",
|
|
7643
7643
|
{
|
|
7644
7644
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -7862,7 +7862,7 @@ const rf = /* @__PURE__ */ Kt(w1, [["render", C1], ["__file", "/Users/zachsherbo
|
|
|
7862
7862
|
}
|
|
7863
7863
|
}), T1 = { class: "row no-wrap" };
|
|
7864
7864
|
function D1(i, e, t, n, r, o) {
|
|
7865
|
-
return te(),
|
|
7865
|
+
return te(), le(
|
|
7866
7866
|
"div",
|
|
7867
7867
|
{
|
|
7868
7868
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -8239,6 +8239,7 @@ const of = /* @__PURE__ */ Kt(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
|
|
|
8239
8239
|
}), B1 = /* @__PURE__ */ Pt({
|
|
8240
8240
|
__name: "QuasarObjectField",
|
|
8241
8241
|
props: {
|
|
8242
|
+
hideLabel: { type: Boolean, required: !1, default: !1 },
|
|
8242
8243
|
schema: { type: Object, required: !0 },
|
|
8243
8244
|
uischema: { type: Object, required: !1 },
|
|
8244
8245
|
path: { type: String, required: !0 },
|
|
@@ -8307,7 +8308,7 @@ const of = /* @__PURE__ */ Kt(O1, [["render", D1], ["__scopeId", "data-v-76abc7a
|
|
|
8307
8308
|
class: "quickform-error-message"
|
|
8308
8309
|
};
|
|
8309
8310
|
function F1(i, e, t, n, r, o) {
|
|
8310
|
-
return te(),
|
|
8311
|
+
return te(), le(
|
|
8311
8312
|
"div",
|
|
8312
8313
|
{
|
|
8313
8314
|
style: vt({ marginBottom: n.fieldGap }),
|
|
@@ -8324,19 +8325,27 @@ function F1(i, e, t, n, r, o) {
|
|
|
8324
8325
|
}, n.quasarProps), {
|
|
8325
8326
|
header: ge(() => [
|
|
8326
8327
|
ke("div", R1, [
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8328
|
+
t.hideLabel ? oe("v-if", !0) : (te(), le(
|
|
8329
|
+
Vt,
|
|
8330
|
+
{ key: 0 },
|
|
8331
|
+
[
|
|
8332
|
+
He(
|
|
8333
|
+
Me(n.label) + " ",
|
|
8334
|
+
1
|
|
8335
|
+
/* TEXT */
|
|
8336
|
+
),
|
|
8337
|
+
n.required ? (te(), le("span", E1, "*")) : oe("v-if", !0),
|
|
8338
|
+
!n.required && n.showOptionalIndicator ? (te(), le("span", L1, " (optional) ")) : oe("v-if", !0)
|
|
8339
|
+
],
|
|
8340
|
+
64
|
|
8341
|
+
/* STABLE_FRAGMENT */
|
|
8342
|
+
))
|
|
8334
8343
|
])
|
|
8335
8344
|
]),
|
|
8336
8345
|
default: ge(() => [
|
|
8337
8346
|
ke("div", I1, [
|
|
8338
|
-
(te(!0),
|
|
8339
|
-
|
|
8347
|
+
(te(!0), le(
|
|
8348
|
+
Vt,
|
|
8340
8349
|
null,
|
|
8341
8350
|
Dn(n.properties, (s) => (te(), Di(n.FieldRenderer, {
|
|
8342
8351
|
key: s.key,
|
|
@@ -8348,13 +8357,13 @@ function F1(i, e, t, n, r, o) {
|
|
|
8348
8357
|
128
|
|
8349
8358
|
/* KEYED_FRAGMENT */
|
|
8350
8359
|
)),
|
|
8351
|
-
n.errorMessage ? (te(),
|
|
8360
|
+
n.errorMessage ? (te(), le(
|
|
8352
8361
|
"div",
|
|
8353
8362
|
V1,
|
|
8354
8363
|
Me(n.errorMessage),
|
|
8355
8364
|
1
|
|
8356
8365
|
/* TEXT */
|
|
8357
|
-
)) :
|
|
8366
|
+
)) : oe("v-if", !0)
|
|
8358
8367
|
])
|
|
8359
8368
|
]),
|
|
8360
8369
|
_: 1
|
|
@@ -8550,6 +8559,7 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8550
8559
|
}), Ns = new mm(), N1 = /* @__PURE__ */ Pt({
|
|
8551
8560
|
__name: "QuasarArrayField",
|
|
8552
8561
|
props: {
|
|
8562
|
+
hideLabel: { type: Boolean, required: !1, default: !1 },
|
|
8553
8563
|
schema: { type: Object, required: !0 },
|
|
8554
8564
|
uischema: { type: Object, required: !1 },
|
|
8555
8565
|
path: { type: String, required: !0 },
|
|
@@ -8672,14 +8682,14 @@ const sf = /* @__PURE__ */ Kt(B1, [["render", F1], ["__scopeId", "data-v-813eef2
|
|
|
8672
8682
|
class: "quickform-array-error"
|
|
8673
8683
|
};
|
|
8674
8684
|
function ex(i, e, t, n, r, o) {
|
|
8675
|
-
return te(),
|
|
8685
|
+
return te(), le("div", {
|
|
8676
8686
|
id: n.fieldId,
|
|
8677
8687
|
style: vt({ marginBottom: n.fieldGap }),
|
|
8678
8688
|
class: uc(["quickform-array-field", n.sectionStyleClass])
|
|
8679
8689
|
}, [
|
|
8680
|
-
|
|
8690
|
+
oe(" Array header "),
|
|
8681
8691
|
ke("div", z1, [
|
|
8682
|
-
n.label ? (te(),
|
|
8692
|
+
n.label && !t.hideLabel ? (te(), le(
|
|
8683
8693
|
"div",
|
|
8684
8694
|
{
|
|
8685
8695
|
key: 0,
|
|
@@ -8695,39 +8705,39 @@ function ex(i, e, t, n, r, o) {
|
|
|
8695
8705
|
1
|
|
8696
8706
|
/* TEXT */
|
|
8697
8707
|
),
|
|
8698
|
-
t.schema.required ? (te(),
|
|
8708
|
+
t.schema.required ? (te(), le("span", W1, "*")) : oe("v-if", !0)
|
|
8699
8709
|
]),
|
|
8700
|
-
|
|
8701
|
-
n.isTopPosition && n.isRightPosition ? (te(),
|
|
8710
|
+
oe(" Add button on same line only for top-right "),
|
|
8711
|
+
n.isTopPosition && n.isRightPosition ? (te(), le("div", Q1, [
|
|
8702
8712
|
ee(n.QBtn, ot(n.quickformsFeatures.addButton, {
|
|
8703
8713
|
disable: !n.canAdd,
|
|
8704
8714
|
onClick: n.addItem
|
|
8705
8715
|
}), null, 16, ["disable"])
|
|
8706
|
-
])) :
|
|
8716
|
+
])) : oe("v-if", !0)
|
|
8707
8717
|
],
|
|
8708
8718
|
4
|
|
8709
8719
|
/* STYLE */
|
|
8710
|
-
)) :
|
|
8711
|
-
|
|
8712
|
-
n.isTopPosition && !n.isRightPosition ? (te(),
|
|
8720
|
+
)) : oe("v-if", !0),
|
|
8721
|
+
oe(" Add button below label for top-left "),
|
|
8722
|
+
n.isTopPosition && !n.isRightPosition ? (te(), le("div", U1, [
|
|
8713
8723
|
ee(n.QBtn, ot(n.quickformsFeatures.addButton, {
|
|
8714
8724
|
disable: !n.canAdd,
|
|
8715
8725
|
onClick: n.addItem
|
|
8716
8726
|
}), null, 16, ["disable"])
|
|
8717
|
-
])) :
|
|
8718
|
-
n.hint ? (te(),
|
|
8727
|
+
])) : oe("v-if", !0),
|
|
8728
|
+
n.hint ? (te(), le(
|
|
8719
8729
|
"div",
|
|
8720
8730
|
K1,
|
|
8721
8731
|
Me(n.hint),
|
|
8722
8732
|
1
|
|
8723
8733
|
/* TEXT */
|
|
8724
|
-
)) :
|
|
8734
|
+
)) : oe("v-if", !0)
|
|
8725
8735
|
]),
|
|
8726
|
-
|
|
8736
|
+
oe(" Array content area "),
|
|
8727
8737
|
ke("div", Y1, [
|
|
8728
8738
|
ke("div", G1, [
|
|
8729
|
-
(te(!0),
|
|
8730
|
-
|
|
8739
|
+
(te(!0), le(
|
|
8740
|
+
Vt,
|
|
8731
8741
|
null,
|
|
8732
8742
|
Dn(n.arrayValue, (s, l) => (te(), Di(
|
|
8733
8743
|
n.QCard,
|
|
@@ -8850,9 +8860,9 @@ function ex(i, e, t, n, r, o) {
|
|
|
8850
8860
|
128
|
|
8851
8861
|
/* KEYED_FRAGMENT */
|
|
8852
8862
|
)),
|
|
8853
|
-
n.arrayValue.length === 0 ? (te(),
|
|
8854
|
-
|
|
8855
|
-
n.isTopPosition ?
|
|
8863
|
+
n.arrayValue.length === 0 ? (te(), le("div", $1, " No items ")) : oe("v-if", !0),
|
|
8864
|
+
oe(" Add button (bottom position) "),
|
|
8865
|
+
n.isTopPosition ? oe("v-if", !0) : (te(), le(
|
|
8856
8866
|
"div",
|
|
8857
8867
|
{
|
|
8858
8868
|
key: 1,
|
|
@@ -8867,13 +8877,13 @@ function ex(i, e, t, n, r, o) {
|
|
|
8867
8877
|
4
|
|
8868
8878
|
/* STYLE */
|
|
8869
8879
|
)),
|
|
8870
|
-
n.errorMessage ? (te(),
|
|
8880
|
+
n.errorMessage ? (te(), le(
|
|
8871
8881
|
"div",
|
|
8872
8882
|
Z1,
|
|
8873
8883
|
Me(n.errorMessage),
|
|
8874
8884
|
1
|
|
8875
8885
|
/* TEXT */
|
|
8876
|
-
)) :
|
|
8886
|
+
)) : oe("v-if", !0)
|
|
8877
8887
|
])
|
|
8878
8888
|
])
|
|
8879
8889
|
], 14, H1);
|
|
@@ -9029,15 +9039,15 @@ const ix = /* @__PURE__ */ Pt({
|
|
|
9029
9039
|
class: "text-negative text-caption q-mt-xs"
|
|
9030
9040
|
};
|
|
9031
9041
|
function fx(i, e, t, n, r, o) {
|
|
9032
|
-
return te(),
|
|
9042
|
+
return te(), le(
|
|
9033
9043
|
"div",
|
|
9034
9044
|
{
|
|
9035
9045
|
class: "quickform-keyvalue-field",
|
|
9036
9046
|
style: vt({ marginBottom: n.fieldGap })
|
|
9037
9047
|
},
|
|
9038
9048
|
[
|
|
9039
|
-
|
|
9040
|
-
n.label ? (te(),
|
|
9049
|
+
oe(" Label with optional top-right button "),
|
|
9050
|
+
n.label ? (te(), le(
|
|
9041
9051
|
"div",
|
|
9042
9052
|
{
|
|
9043
9053
|
key: 0,
|
|
@@ -9055,33 +9065,33 @@ function fx(i, e, t, n, r, o) {
|
|
|
9055
9065
|
1
|
|
9056
9066
|
/* TEXT */
|
|
9057
9067
|
),
|
|
9058
|
-
n.required ? (te(),
|
|
9068
|
+
n.required ? (te(), le("span", rx, "*")) : oe("v-if", !0)
|
|
9059
9069
|
]),
|
|
9060
|
-
|
|
9070
|
+
oe(" Add button on same line only for top-right "),
|
|
9061
9071
|
n.isTopPosition && n.isRightPosition ? (te(), Di(n.QBtn, ot({ key: 0 }, n.quickformsFeatures.addButton, {
|
|
9062
9072
|
disable: t.disabled || t.readonly,
|
|
9063
9073
|
onClick: n.addPair
|
|
9064
|
-
}), null, 16, ["disable"])) :
|
|
9074
|
+
}), null, 16, ["disable"])) : oe("v-if", !0)
|
|
9065
9075
|
],
|
|
9066
9076
|
4
|
|
9067
9077
|
/* STYLE */
|
|
9068
|
-
)) :
|
|
9069
|
-
|
|
9070
|
-
n.isTopPosition && !n.isRightPosition ? (te(),
|
|
9078
|
+
)) : oe("v-if", !0),
|
|
9079
|
+
oe(" Add button below label for top-left "),
|
|
9080
|
+
n.isTopPosition && !n.isRightPosition ? (te(), le("div", ox, [
|
|
9071
9081
|
ee(n.QBtn, ot(n.quickformsFeatures.addButton, {
|
|
9072
9082
|
disable: t.disabled || t.readonly,
|
|
9073
9083
|
onClick: n.addPair
|
|
9074
9084
|
}), null, 16, ["disable"])
|
|
9075
|
-
])) :
|
|
9076
|
-
n.hint ? (te(),
|
|
9085
|
+
])) : oe("v-if", !0),
|
|
9086
|
+
n.hint ? (te(), le(
|
|
9077
9087
|
"div",
|
|
9078
9088
|
sx,
|
|
9079
9089
|
Me(n.hint),
|
|
9080
9090
|
1
|
|
9081
9091
|
/* TEXT */
|
|
9082
|
-
)) :
|
|
9092
|
+
)) : oe("v-if", !0),
|
|
9083
9093
|
ke("div", lx, [
|
|
9084
|
-
n.quickformsFeatures.showHeaders && n.pairs.length ? (te(),
|
|
9094
|
+
n.quickformsFeatures.showHeaders && n.pairs.length ? (te(), le("div", ax, [
|
|
9085
9095
|
ke(
|
|
9086
9096
|
"div",
|
|
9087
9097
|
ux,
|
|
@@ -9103,13 +9113,13 @@ function fx(i, e, t, n, r, o) {
|
|
|
9103
9113
|
-1
|
|
9104
9114
|
/* CACHED */
|
|
9105
9115
|
))
|
|
9106
|
-
])) :
|
|
9107
|
-
(te(!0),
|
|
9108
|
-
|
|
9116
|
+
])) : oe("v-if", !0),
|
|
9117
|
+
(te(!0), le(
|
|
9118
|
+
Vt,
|
|
9109
9119
|
null,
|
|
9110
9120
|
Dn(n.pairs, (s) => {
|
|
9111
9121
|
var l, a;
|
|
9112
|
-
return te(),
|
|
9122
|
+
return te(), le("div", {
|
|
9113
9123
|
key: s.id,
|
|
9114
9124
|
class: "row items-center q-gutter-sm q-mb-sm"
|
|
9115
9125
|
}, [
|
|
@@ -9162,8 +9172,8 @@ function fx(i, e, t, n, r, o) {
|
|
|
9162
9172
|
128
|
|
9163
9173
|
/* KEYED_FRAGMENT */
|
|
9164
9174
|
)),
|
|
9165
|
-
|
|
9166
|
-
n.isTopPosition ?
|
|
9175
|
+
oe(" Add button (bottom positions) "),
|
|
9176
|
+
n.isTopPosition ? oe("v-if", !0) : (te(), le(
|
|
9167
9177
|
"div",
|
|
9168
9178
|
{
|
|
9169
9179
|
key: 1,
|
|
@@ -9183,13 +9193,13 @@ function fx(i, e, t, n, r, o) {
|
|
|
9183
9193
|
/* STYLE */
|
|
9184
9194
|
))
|
|
9185
9195
|
]),
|
|
9186
|
-
n.errorMessage ? (te(),
|
|
9196
|
+
n.errorMessage ? (te(), le(
|
|
9187
9197
|
"div",
|
|
9188
9198
|
hx,
|
|
9189
9199
|
Me(n.errorMessage),
|
|
9190
9200
|
1
|
|
9191
9201
|
/* TEXT */
|
|
9192
|
-
)) :
|
|
9202
|
+
)) : oe("v-if", !0)
|
|
9193
9203
|
],
|
|
9194
9204
|
4
|
|
9195
9205
|
/* STYLE */
|
|
@@ -9660,7 +9670,7 @@ class yx {
|
|
|
9660
9670
|
function Vr(i, e, t) {
|
|
9661
9671
|
return e = Math.max(0, Math.min(i.length, e)), [e, Math.max(e, Math.min(i.length, t))];
|
|
9662
9672
|
}
|
|
9663
|
-
function
|
|
9673
|
+
function Nt(i, e, t = !0, n = !0) {
|
|
9664
9674
|
return gx(i, e, t, n);
|
|
9665
9675
|
}
|
|
9666
9676
|
function bx(i) {
|
|
@@ -11255,13 +11265,13 @@ class Ee {
|
|
|
11255
11265
|
wordAt(e) {
|
|
11256
11266
|
let { text: t, from: n, length: r } = this.doc.lineAt(e), o = this.charCategorizer(e), s = e - n, l = e - n;
|
|
11257
11267
|
for (; s > 0; ) {
|
|
11258
|
-
let a =
|
|
11268
|
+
let a = Nt(t, s, !1);
|
|
11259
11269
|
if (o(t.slice(a, s)) != lt.Word)
|
|
11260
11270
|
break;
|
|
11261
11271
|
s = a;
|
|
11262
11272
|
}
|
|
11263
11273
|
for (; l < r; ) {
|
|
11264
|
-
let a =
|
|
11274
|
+
let a = Nt(t, l);
|
|
11265
11275
|
if (o(t.slice(l, a)) != lt.Word)
|
|
11266
11276
|
break;
|
|
11267
11277
|
l = a;
|
|
@@ -11858,7 +11868,7 @@ function pf(i, e) {
|
|
|
11858
11868
|
function Kr(i, e, t = i.length) {
|
|
11859
11869
|
let n = 0;
|
|
11860
11870
|
for (let r = 0; r < t && r < i.length; )
|
|
11861
|
-
i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r =
|
|
11871
|
+
i.charCodeAt(r) == 9 ? (n += e - n % e, r++) : (n++, r = Nt(i, r));
|
|
11862
11872
|
return n;
|
|
11863
11873
|
}
|
|
11864
11874
|
function wu(i, e, t, n) {
|
|
@@ -11867,7 +11877,7 @@ function wu(i, e, t, n) {
|
|
|
11867
11877
|
return r;
|
|
11868
11878
|
if (r == i.length)
|
|
11869
11879
|
break;
|
|
11870
|
-
o += i.charCodeAt(r) == 9 ? t - o % t : 1, r =
|
|
11880
|
+
o += i.charCodeAt(r) == 9 ? t - o % t : 1, r = Nt(i, r);
|
|
11871
11881
|
}
|
|
11872
11882
|
return n === !0 ? -1 : i.length;
|
|
11873
11883
|
}
|
|
@@ -12056,10 +12066,10 @@ var _n = {
|
|
|
12056
12066
|
221: "}",
|
|
12057
12067
|
222: '"'
|
|
12058
12068
|
}, Rx = typeof navigator < "u" && /Mac/.test(navigator.platform), Ex = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
12059
|
-
for (var
|
|
12060
|
-
for (var
|
|
12061
|
-
for (var
|
|
12062
|
-
_n[
|
|
12069
|
+
for (var Ft = 0; Ft < 10; Ft++) _n[48 + Ft] = _n[96 + Ft] = String(Ft);
|
|
12070
|
+
for (var Ft = 1; Ft <= 24; Ft++) _n[Ft + 111] = "F" + Ft;
|
|
12071
|
+
for (var Ft = 65; Ft <= 90; Ft++)
|
|
12072
|
+
_n[Ft] = String.fromCharCode(Ft + 32), To[Ft] = String.fromCharCode(Ft);
|
|
12063
12073
|
for (var Da in _n) To.hasOwnProperty(Da) || (To[Da] = _n[Da]);
|
|
12064
12074
|
function Lx(i) {
|
|
12065
12075
|
var e = Rx && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || Ex && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? To : _n)[i.keyCode] || i.key || "Unidentified";
|
|
@@ -13648,7 +13658,7 @@ function nk(i, e, t, n, r) {
|
|
|
13648
13658
|
return null;
|
|
13649
13659
|
a = e[l = f], s = a.side(!r, t), u = a.side(r, t);
|
|
13650
13660
|
}
|
|
13651
|
-
let c =
|
|
13661
|
+
let c = Nt(i.text, s, a.forward(r, t));
|
|
13652
13662
|
(c < a.from || c > a.to) && (c = u), ep = i.text.slice(Math.min(s, c), Math.max(s, c));
|
|
13653
13663
|
let h = l == (r ? e.length - 1 : 0) ? null : e[l + (r ? 1 : -1)];
|
|
13654
13664
|
return h && c == u && h.level + (r ? 0 : 1) < a.level ? K.cursor(h.side(!r, t) + i.from, h.forward(r, t) ? 1 : -1, h.level) : K.cursor(c + i.from, a.forward(r, t) ? -1 : 1, a.level);
|
|
@@ -14140,7 +14150,7 @@ class Of extends Ke {
|
|
|
14140
14150
|
}
|
|
14141
14151
|
if (!(r instanceof Pi))
|
|
14142
14152
|
return null;
|
|
14143
|
-
let o =
|
|
14153
|
+
let o = Nt(r.text, n);
|
|
14144
14154
|
if (o == n)
|
|
14145
14155
|
return null;
|
|
14146
14156
|
let s = lr(r.dom, n, o).getClientRects();
|
|
@@ -14351,16 +14361,16 @@ function dk(i, e, t = 1) {
|
|
|
14351
14361
|
return K.cursor(e);
|
|
14352
14362
|
o == 0 ? t = 1 : o == r.length && (t = -1);
|
|
14353
14363
|
let s = o, l = o;
|
|
14354
|
-
t < 0 ? s =
|
|
14364
|
+
t < 0 ? s = Nt(r.text, o, !1) : l = Nt(r.text, o);
|
|
14355
14365
|
let a = n(r.text.slice(s, l));
|
|
14356
14366
|
for (; s > 0; ) {
|
|
14357
|
-
let u =
|
|
14367
|
+
let u = Nt(r.text, s, !1);
|
|
14358
14368
|
if (n(r.text.slice(u, s)) != a)
|
|
14359
14369
|
break;
|
|
14360
14370
|
s = u;
|
|
14361
14371
|
}
|
|
14362
14372
|
for (; l < r.length; ) {
|
|
14363
|
-
let u =
|
|
14373
|
+
let u = Nt(r.text, l);
|
|
14364
14374
|
if (n(r.text.slice(l, u)) != a)
|
|
14365
14375
|
break;
|
|
14366
14376
|
l = u;
|
|
@@ -20376,8 +20386,8 @@ function yS(i) {
|
|
|
20376
20386
|
for (; l.pos > I; )
|
|
20377
20387
|
U >= 0 && l.id == U && l.size >= 0 ? (l.end <= re - r && (m(w, N, R, G, l.end, re, U, F, Y), G = w.length, re = l.end), l.next()) : B > 2500 ? f(R, I, w, N) : h(R, I, w, N, U, B + 1);
|
|
20378
20388
|
if (U >= 0 && G > 0 && G < w.length && m(w, N, R, G, R, re, U, F, Y), w.reverse(), N.reverse(), U > -1 && G > 0) {
|
|
20379
|
-
let
|
|
20380
|
-
q = Qc(M, w, N, 0, w.length, 0, O - R,
|
|
20389
|
+
let ae = d(M, Y);
|
|
20390
|
+
q = Qc(M, w, N, 0, w.length, 0, O - R, ae, ae);
|
|
20381
20391
|
} else
|
|
20382
20392
|
q = p(M, w, N, O - R, F - O, Y);
|
|
20383
20393
|
}
|
|
@@ -23029,7 +23039,7 @@ const Nv = (i, e, t) => ts(i, (n) => {
|
|
|
23029
23039
|
r--;
|
|
23030
23040
|
a = r;
|
|
23031
23041
|
} else
|
|
23032
|
-
a =
|
|
23042
|
+
a = Nt(s.text, r - s.from, e, e) + s.from, a == r && s.number != (e ? o.doc.lines : 1) ? a += e ? 1 : -1 : !e && /[\ufe00-\ufe0f]/.test(s.text.slice(a - s.from, r - s.from)) && (a = Nt(s.text, a - s.from, !1, !1) + s.from);
|
|
23033
23043
|
return a;
|
|
23034
23044
|
}), ic = (i) => Nv(i, !1, !0), Hv = (i) => Nv(i, !0, !1), zv = (i, e) => ts(i, (t) => {
|
|
23035
23045
|
let n = t.head, { state: r } = i, o = r.doc.lineAt(n), s = r.charCategorizer(n);
|
|
@@ -23038,7 +23048,7 @@ const Nv = (i, e, t) => ts(i, (n) => {
|
|
|
23038
23048
|
n == t.head && o.number != (e ? r.doc.lines : 1) && (n += e ? 1 : -1);
|
|
23039
23049
|
break;
|
|
23040
23050
|
}
|
|
23041
|
-
let a =
|
|
23051
|
+
let a = Nt(o.text, n - o.from, e) + o.from, u = o.text.slice(Math.min(n, a) - o.from, Math.max(n, a) - o.from), c = s(u);
|
|
23042
23052
|
if (l != null && c != l)
|
|
23043
23053
|
break;
|
|
23044
23054
|
(u != " " || n != t.head) && (l = c), n = a;
|
|
@@ -23067,7 +23077,7 @@ const Nv = (i, e, t) => ts(i, (n) => {
|
|
|
23067
23077
|
let t = i.changeByRange((n) => {
|
|
23068
23078
|
if (!n.empty || n.from == 0 || n.from == i.doc.length)
|
|
23069
23079
|
return { range: n };
|
|
23070
|
-
let r = n.from, o = i.doc.lineAt(r), s = r == o.from ? r - 1 :
|
|
23080
|
+
let r = n.from, o = i.doc.lineAt(r), s = r == o.from ? r - 1 : Nt(o.text, r - o.from, !1) + o.from, l = r == o.to ? r + 1 : Nt(o.text, r - o.from, !0) + o.from;
|
|
23071
23081
|
return {
|
|
23072
23082
|
changes: { from: s, to: l, insert: i.doc.slice(r, l).append(i.doc.slice(s, r)) },
|
|
23073
23083
|
range: K.cursor(l)
|
|
@@ -23723,10 +23733,10 @@ function xr(i, e, t, n) {
|
|
|
23723
23733
|
}, t, n);
|
|
23724
23734
|
}
|
|
23725
23735
|
function Al(i, e) {
|
|
23726
|
-
return i.slice(
|
|
23736
|
+
return i.slice(Nt(i, e, !1), e);
|
|
23727
23737
|
}
|
|
23728
23738
|
function Ol(i, e) {
|
|
23729
|
-
return i.slice(e,
|
|
23739
|
+
return i.slice(e, Nt(i, e));
|
|
23730
23740
|
}
|
|
23731
23741
|
function GM(i) {
|
|
23732
23742
|
return (e, t, n) => !n[0].length || (i(Al(n.input, n.index)) != lt.Word || i(Ol(n.input, n.index)) != lt.Word) && (i(Ol(n.input, n.index + n[0].length)) != lt.Word || i(Al(n.input, n.index + n[0].length)) != lt.Word);
|
|
@@ -27691,26 +27701,26 @@ const LO = "#e5c07b", im = "#e06c75", IO = "#56b6c2", VO = "#ffffff", $s = "#abb
|
|
|
27691
27701
|
class: "quickform-error"
|
|
27692
27702
|
};
|
|
27693
27703
|
function tT(i, e, t, n, r, o) {
|
|
27694
|
-
return te(),
|
|
27704
|
+
return te(), le(
|
|
27695
27705
|
"div",
|
|
27696
27706
|
{
|
|
27697
27707
|
class: "quickform-json-field-wrapper",
|
|
27698
27708
|
style: vt({ marginBottom: n.fieldGap })
|
|
27699
27709
|
},
|
|
27700
27710
|
[
|
|
27701
|
-
n.label ? (te(),
|
|
27711
|
+
n.label ? (te(), le("div", YO, [
|
|
27702
27712
|
ke("span", GO, [
|
|
27703
27713
|
He(
|
|
27704
27714
|
Me(n.label) + " ",
|
|
27705
27715
|
1
|
|
27706
27716
|
/* TEXT */
|
|
27707
27717
|
),
|
|
27708
|
-
n.required ? (te(),
|
|
27718
|
+
n.required ? (te(), le("span", JO, "*")) : oe("v-if", !0)
|
|
27709
27719
|
])
|
|
27710
|
-
])) :
|
|
27711
|
-
n.hint ? (te(),
|
|
27720
|
+
])) : oe("v-if", !0),
|
|
27721
|
+
n.hint ? (te(), le("div", XO, [
|
|
27712
27722
|
ke("span", { innerHTML: n.hint }, null, 8, $O)
|
|
27713
|
-
])) :
|
|
27723
|
+
])) : oe("v-if", !0),
|
|
27714
27724
|
ke("div", ZO, [
|
|
27715
27725
|
e[1] || (e[1] = He(
|
|
27716
27726
|
" Press ",
|
|
@@ -27755,13 +27765,13 @@ function tT(i, e, t, n, r, o) {
|
|
|
27755
27765
|
2
|
|
27756
27766
|
/* CLASS */
|
|
27757
27767
|
),
|
|
27758
|
-
n.displayError ? (te(),
|
|
27768
|
+
n.displayError ? (te(), le(
|
|
27759
27769
|
"div",
|
|
27760
27770
|
eT,
|
|
27761
27771
|
Me(n.displayError),
|
|
27762
27772
|
1
|
|
27763
27773
|
/* TEXT */
|
|
27764
|
-
)) :
|
|
27774
|
+
)) : oe("v-if", !0)
|
|
27765
27775
|
],
|
|
27766
27776
|
4
|
|
27767
27777
|
/* STYLE */
|
|
@@ -27852,7 +27862,7 @@ const lm = /* @__PURE__ */ Kt(KO, [["render", tT], ["__file", "/Users/zachsherbo
|
|
|
27852
27862
|
}
|
|
27853
27863
|
});
|
|
27854
27864
|
function nT(i, e, t, n, r, o) {
|
|
27855
|
-
return te(),
|
|
27865
|
+
return te(), le(
|
|
27856
27866
|
"div",
|
|
27857
27867
|
{
|
|
27858
27868
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -28109,7 +28119,7 @@ const aT = ["left", "center", "right", "justify"], uT = Je({
|
|
|
28109
28119
|
function re() {
|
|
28110
28120
|
T !== null && (clearInterval(T), T = null);
|
|
28111
28121
|
}
|
|
28112
|
-
function
|
|
28122
|
+
function ae(X, ye) {
|
|
28113
28123
|
const we = Array.prototype.filter.call(
|
|
28114
28124
|
d.value.children,
|
|
28115
28125
|
(Xe) => Xe === ye || Xe.matches && Xe.matches(".q-tab.q-focusable") === !0
|
|
@@ -28227,7 +28237,7 @@ const aT = ["left", "center", "right", "justify"], uT = Je({
|
|
|
28227
28237
|
unregisterTab: dt,
|
|
28228
28238
|
verifyRouteModel: _t,
|
|
28229
28239
|
updateModel: M,
|
|
28230
|
-
onKbdNavigate:
|
|
28240
|
+
onKbdNavigate: ae,
|
|
28231
28241
|
avoidRouteWatcher: !1
|
|
28232
28242
|
// false | string (uid)
|
|
28233
28243
|
};
|
|
@@ -28584,7 +28594,7 @@ const mT = Je({
|
|
|
28584
28594
|
style: { color: "red", "font-size": "0.875rem", "margin-top": "0.5rem" }
|
|
28585
28595
|
};
|
|
28586
28596
|
function CT(i, e, t, n, r, o) {
|
|
28587
|
-
return te(),
|
|
28597
|
+
return te(), le(
|
|
28588
28598
|
"div",
|
|
28589
28599
|
{
|
|
28590
28600
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -28597,24 +28607,24 @@ function CT(i, e, t, n, r, o) {
|
|
|
28597
28607
|
default: ge(() => [
|
|
28598
28608
|
ee(n.QCardSection, null, {
|
|
28599
28609
|
default: ge(() => [
|
|
28600
|
-
n.label ? (te(),
|
|
28610
|
+
n.label ? (te(), le("div", pT, [
|
|
28601
28611
|
He(
|
|
28602
28612
|
Me(n.label) + " ",
|
|
28603
28613
|
1
|
|
28604
28614
|
/* TEXT */
|
|
28605
28615
|
),
|
|
28606
|
-
t.schema.required ? (te(),
|
|
28607
|
-
])) :
|
|
28608
|
-
n.hint ? (te(),
|
|
28616
|
+
t.schema.required ? (te(), le("span", vT, "*")) : oe("v-if", !0)
|
|
28617
|
+
])) : oe("v-if", !0),
|
|
28618
|
+
n.hint ? (te(), le(
|
|
28609
28619
|
"div",
|
|
28610
28620
|
yT,
|
|
28611
28621
|
Me(n.hint),
|
|
28612
28622
|
1
|
|
28613
28623
|
/* TEXT */
|
|
28614
|
-
)) :
|
|
28615
|
-
|
|
28616
|
-
n.displayStyle === "tabs" ? (te(),
|
|
28617
|
-
|
|
28624
|
+
)) : oe("v-if", !0),
|
|
28625
|
+
oe(" Tabs display mode "),
|
|
28626
|
+
n.displayStyle === "tabs" ? (te(), le(
|
|
28627
|
+
Vt,
|
|
28618
28628
|
{ key: 2 },
|
|
28619
28629
|
[
|
|
28620
28630
|
ee(n.QTabs, {
|
|
@@ -28628,8 +28638,8 @@ function CT(i, e, t, n, r, o) {
|
|
|
28628
28638
|
"narrow-indicator": ""
|
|
28629
28639
|
}, {
|
|
28630
28640
|
default: ge(() => [
|
|
28631
|
-
(te(!0),
|
|
28632
|
-
|
|
28641
|
+
(te(!0), le(
|
|
28642
|
+
Vt,
|
|
28633
28643
|
null,
|
|
28634
28644
|
Dn(n.allSelectOptions, (s) => (te(), Di(n.QTab, {
|
|
28635
28645
|
key: s.value,
|
|
@@ -28644,18 +28654,18 @@ function CT(i, e, t, n, r, o) {
|
|
|
28644
28654
|
_: 1
|
|
28645
28655
|
/* STABLE */
|
|
28646
28656
|
}, 8, ["modelValue"]),
|
|
28647
|
-
|
|
28648
|
-
n.activeOptionDescription ? (te(),
|
|
28657
|
+
oe(" Option description hint "),
|
|
28658
|
+
n.activeOptionDescription ? (te(), le(
|
|
28649
28659
|
"div",
|
|
28650
28660
|
bT,
|
|
28651
28661
|
Me(n.activeOptionDescription),
|
|
28652
28662
|
1
|
|
28653
28663
|
/* TEXT */
|
|
28654
|
-
)) :
|
|
28664
|
+
)) : oe("v-if", !0),
|
|
28655
28665
|
ke("div", xT, [
|
|
28656
|
-
|
|
28657
|
-
n.shouldRenderPropertiesInline ? (te(!0),
|
|
28658
|
-
|
|
28666
|
+
oe(" Render object properties directly to avoid nested expansion panel "),
|
|
28667
|
+
n.shouldRenderPropertiesInline ? (te(!0), le(
|
|
28668
|
+
Vt,
|
|
28659
28669
|
{ key: 0 },
|
|
28660
28670
|
Dn(n.activeProperties, (s) => (te(), Di(n.FieldRenderer, {
|
|
28661
28671
|
key: `${n.selectedIndex}-${s.key}`,
|
|
@@ -28666,11 +28676,11 @@ function CT(i, e, t, n, r, o) {
|
|
|
28666
28676
|
}, null, 8, ["schema", "path", "disabled", "readonly"]))),
|
|
28667
28677
|
128
|
|
28668
28678
|
/* KEYED_FRAGMENT */
|
|
28669
|
-
)) : n.activeSchema ? (te(),
|
|
28670
|
-
|
|
28679
|
+
)) : n.activeSchema ? (te(), le(
|
|
28680
|
+
Vt,
|
|
28671
28681
|
{ key: 1 },
|
|
28672
28682
|
[
|
|
28673
|
-
|
|
28683
|
+
oe(" Fallback for non-object schemas "),
|
|
28674
28684
|
(te(), Di(n.FieldRenderer, {
|
|
28675
28685
|
key: `${n.selectedIndex}-fallback`,
|
|
28676
28686
|
schema: n.activeSchema,
|
|
@@ -28681,16 +28691,16 @@ function CT(i, e, t, n, r, o) {
|
|
|
28681
28691
|
],
|
|
28682
28692
|
2112
|
|
28683
28693
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
28684
|
-
)) :
|
|
28694
|
+
)) : oe("v-if", !0)
|
|
28685
28695
|
])
|
|
28686
28696
|
],
|
|
28687
28697
|
64
|
|
28688
28698
|
/* STABLE_FRAGMENT */
|
|
28689
|
-
)) : (te(),
|
|
28690
|
-
|
|
28699
|
+
)) : (te(), le(
|
|
28700
|
+
Vt,
|
|
28691
28701
|
{ key: 3 },
|
|
28692
28702
|
[
|
|
28693
|
-
|
|
28703
|
+
oe(" Dropdown display mode "),
|
|
28694
28704
|
ee(n.QSelect, ot({
|
|
28695
28705
|
modelValue: n.selectedIndex,
|
|
28696
28706
|
"onUpdate:modelValue": [
|
|
@@ -28709,18 +28719,18 @@ function CT(i, e, t, n, r, o) {
|
|
|
28709
28719
|
"map-options": "",
|
|
28710
28720
|
onFilter: n.filterFn
|
|
28711
28721
|
}, n.quasarProps), null, 16, ["modelValue", "options", "label", "disable", "use-input", "fill-input", "hide-selected"]),
|
|
28712
|
-
|
|
28713
|
-
n.activeOptionDescription ? (te(),
|
|
28722
|
+
oe(" Option description hint "),
|
|
28723
|
+
n.activeOptionDescription ? (te(), le(
|
|
28714
28724
|
"div",
|
|
28715
28725
|
kT,
|
|
28716
28726
|
Me(n.activeOptionDescription),
|
|
28717
28727
|
1
|
|
28718
28728
|
/* TEXT */
|
|
28719
|
-
)) :
|
|
28729
|
+
)) : oe("v-if", !0),
|
|
28720
28730
|
ke("div", wT, [
|
|
28721
|
-
|
|
28722
|
-
n.shouldRenderPropertiesInline ? (te(!0),
|
|
28723
|
-
|
|
28731
|
+
oe(" Render object properties directly to avoid nested expansion panel "),
|
|
28732
|
+
n.shouldRenderPropertiesInline ? (te(!0), le(
|
|
28733
|
+
Vt,
|
|
28724
28734
|
{ key: 0 },
|
|
28725
28735
|
Dn(n.activeProperties, (s) => (te(), Di(n.FieldRenderer, {
|
|
28726
28736
|
key: `${n.selectedIndex}-${s.key}`,
|
|
@@ -28731,11 +28741,11 @@ function CT(i, e, t, n, r, o) {
|
|
|
28731
28741
|
}, null, 8, ["schema", "path", "disabled", "readonly"]))),
|
|
28732
28742
|
128
|
|
28733
28743
|
/* KEYED_FRAGMENT */
|
|
28734
|
-
)) : n.activeSchema ? (te(),
|
|
28735
|
-
|
|
28744
|
+
)) : n.activeSchema ? (te(), le(
|
|
28745
|
+
Vt,
|
|
28736
28746
|
{ key: 1 },
|
|
28737
28747
|
[
|
|
28738
|
-
|
|
28748
|
+
oe(" Fallback for non-object schemas "),
|
|
28739
28749
|
(te(), Di(n.FieldRenderer, {
|
|
28740
28750
|
key: `${n.selectedIndex}-fallback`,
|
|
28741
28751
|
schema: n.activeSchema,
|
|
@@ -28746,19 +28756,19 @@ function CT(i, e, t, n, r, o) {
|
|
|
28746
28756
|
],
|
|
28747
28757
|
2112
|
|
28748
28758
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
28749
|
-
)) :
|
|
28759
|
+
)) : oe("v-if", !0)
|
|
28750
28760
|
])
|
|
28751
28761
|
],
|
|
28752
28762
|
64
|
|
28753
28763
|
/* STABLE_FRAGMENT */
|
|
28754
28764
|
)),
|
|
28755
|
-
n.errorMessage ? (te(),
|
|
28765
|
+
n.errorMessage ? (te(), le(
|
|
28756
28766
|
"div",
|
|
28757
28767
|
ST,
|
|
28758
28768
|
Me(n.errorMessage),
|
|
28759
28769
|
1
|
|
28760
28770
|
/* TEXT */
|
|
28761
|
-
)) :
|
|
28771
|
+
)) : oe("v-if", !0)
|
|
28762
28772
|
]),
|
|
28763
28773
|
_: 1
|
|
28764
28774
|
/* STABLE */
|
|
@@ -28801,7 +28811,7 @@ const um = /* @__PURE__ */ Kt(gT, [["render", CT], ["__file", "/Users/zachsherbo
|
|
|
28801
28811
|
}
|
|
28802
28812
|
});
|
|
28803
28813
|
function AT(i, e, t, n, r, o) {
|
|
28804
|
-
return te(),
|
|
28814
|
+
return te(), le(
|
|
28805
28815
|
"div",
|
|
28806
28816
|
{
|
|
28807
28817
|
style: vt({ marginBottom: n.fieldGap })
|
|
@@ -28973,7 +28983,7 @@ function _T(i, e) {
|
|
|
28973
28983
|
return {
|
|
28974
28984
|
id: fi(),
|
|
28975
28985
|
type: "condition",
|
|
28976
|
-
left:
|
|
28986
|
+
left: zt(o[0], e.useTemplateSyntax),
|
|
28977
28987
|
operator: "isNotEmpty",
|
|
28978
28988
|
right: ""
|
|
28979
28989
|
};
|
|
@@ -28987,7 +28997,7 @@ function _T(i, e) {
|
|
|
28987
28997
|
return {
|
|
28988
28998
|
id: fi(),
|
|
28989
28999
|
type: "condition",
|
|
28990
|
-
left:
|
|
29000
|
+
left: zt(o[0], e.useTemplateSyntax),
|
|
28991
29001
|
operator: "isEmpty",
|
|
28992
29002
|
right: ""
|
|
28993
29003
|
};
|
|
@@ -29008,7 +29018,7 @@ function BT(i, e) {
|
|
|
29008
29018
|
if (r === "!" && typeof o == "object" && o !== null && "in" in o) {
|
|
29009
29019
|
const a = o.in;
|
|
29010
29020
|
if (Array.isArray(a) && a.length >= 2) {
|
|
29011
|
-
const u =
|
|
29021
|
+
const u = zt(a[0], e.useTemplateSyntax), c = zt(a[1], e.useTemplateSyntax);
|
|
29012
29022
|
return {
|
|
29013
29023
|
id: fi(),
|
|
29014
29024
|
type: "condition",
|
|
@@ -29025,34 +29035,34 @@ function BT(i, e) {
|
|
|
29025
29035
|
return c ? {
|
|
29026
29036
|
id: fi(),
|
|
29027
29037
|
type: "condition",
|
|
29028
|
-
left:
|
|
29038
|
+
left: zt(a, e.useTemplateSyntax),
|
|
29029
29039
|
operator: "in",
|
|
29030
|
-
right:
|
|
29040
|
+
right: zt(u, e.useTemplateSyntax)
|
|
29031
29041
|
} : h && !f ? {
|
|
29032
29042
|
id: fi(),
|
|
29033
29043
|
type: "condition",
|
|
29034
29044
|
// For "contains", left is the string (second in JSONLogic), right is the substring (first in JSONLogic)
|
|
29035
|
-
left:
|
|
29045
|
+
left: zt(u, e.useTemplateSyntax),
|
|
29036
29046
|
operator: "contains",
|
|
29037
|
-
right:
|
|
29047
|
+
right: zt(a, e.useTemplateSyntax)
|
|
29038
29048
|
} : h && f ? {
|
|
29039
29049
|
id: fi(),
|
|
29040
29050
|
type: "condition",
|
|
29041
|
-
left:
|
|
29051
|
+
left: zt(u, e.useTemplateSyntax),
|
|
29042
29052
|
operator: "contains",
|
|
29043
|
-
right:
|
|
29053
|
+
right: zt(a, e.useTemplateSyntax)
|
|
29044
29054
|
} : f && typeof u == "string" ? {
|
|
29045
29055
|
id: fi(),
|
|
29046
29056
|
type: "condition",
|
|
29047
|
-
left:
|
|
29057
|
+
left: zt(a, e.useTemplateSyntax),
|
|
29048
29058
|
operator: "in",
|
|
29049
|
-
right:
|
|
29059
|
+
right: zt(u, e.useTemplateSyntax)
|
|
29050
29060
|
} : {
|
|
29051
29061
|
id: fi(),
|
|
29052
29062
|
type: "condition",
|
|
29053
|
-
left:
|
|
29063
|
+
left: zt(a, e.useTemplateSyntax),
|
|
29054
29064
|
operator: "in",
|
|
29055
|
-
right:
|
|
29065
|
+
right: zt(u, e.useTemplateSyntax)
|
|
29056
29066
|
};
|
|
29057
29067
|
}
|
|
29058
29068
|
const l = {
|
|
@@ -29069,12 +29079,12 @@ function BT(i, e) {
|
|
|
29069
29079
|
return l ? {
|
|
29070
29080
|
id: fi(),
|
|
29071
29081
|
type: "condition",
|
|
29072
|
-
left:
|
|
29082
|
+
left: zt(o[0], e.useTemplateSyntax),
|
|
29073
29083
|
operator: l,
|
|
29074
|
-
right:
|
|
29084
|
+
right: zt(o[1], e.useTemplateSyntax)
|
|
29075
29085
|
} : Tn();
|
|
29076
29086
|
}
|
|
29077
|
-
function
|
|
29087
|
+
function zt(i, e = !1) {
|
|
29078
29088
|
if (i == null)
|
|
29079
29089
|
return "";
|
|
29080
29090
|
if (typeof i == "object" && i !== null && "var" in i) {
|
|
@@ -29336,23 +29346,23 @@ const ET = /* @__PURE__ */ Pt({
|
|
|
29336
29346
|
class: "text-negative text-caption q-mt-xs"
|
|
29337
29347
|
};
|
|
29338
29348
|
function c2(i, e, t, n, r, o) {
|
|
29339
|
-
return te(),
|
|
29349
|
+
return te(), le(
|
|
29340
29350
|
"div",
|
|
29341
29351
|
{
|
|
29342
29352
|
class: "quickform-jsonlogic-builder",
|
|
29343
29353
|
style: vt({ marginBottom: n.fieldGap })
|
|
29344
29354
|
},
|
|
29345
29355
|
[
|
|
29346
|
-
|
|
29356
|
+
oe(" Header with label and mode toggle "),
|
|
29347
29357
|
ke("div", LT, [
|
|
29348
|
-
n.label ? (te(),
|
|
29358
|
+
n.label ? (te(), le("div", IT, [
|
|
29349
29359
|
He(
|
|
29350
29360
|
Me(n.label) + " ",
|
|
29351
29361
|
1
|
|
29352
29362
|
/* TEXT */
|
|
29353
29363
|
),
|
|
29354
|
-
n.required ? (te(),
|
|
29355
|
-
])) :
|
|
29364
|
+
n.required ? (te(), le("span", VT, "*")) : oe("v-if", !0)
|
|
29365
|
+
])) : oe("v-if", !0),
|
|
29356
29366
|
ke("div", FT, [
|
|
29357
29367
|
ee(n.QBtn, {
|
|
29358
29368
|
flat: "",
|
|
@@ -29380,20 +29390,20 @@ function c2(i, e, t, n, r, o) {
|
|
|
29380
29390
|
}, 8, ["icon", "color"])
|
|
29381
29391
|
])
|
|
29382
29392
|
]),
|
|
29383
|
-
|
|
29384
|
-
n.hint ? (te(),
|
|
29393
|
+
oe(" Hint "),
|
|
29394
|
+
n.hint ? (te(), le(
|
|
29385
29395
|
"div",
|
|
29386
29396
|
NT,
|
|
29387
29397
|
Me(n.hint),
|
|
29388
29398
|
1
|
|
29389
29399
|
/* TEXT */
|
|
29390
|
-
)) :
|
|
29391
|
-
|
|
29392
|
-
n.isAdvancedMode ? (te(),
|
|
29393
|
-
|
|
29400
|
+
)) : oe("v-if", !0),
|
|
29401
|
+
oe(" Visual Builder Mode "),
|
|
29402
|
+
n.isAdvancedMode ? (te(), le(
|
|
29403
|
+
Vt,
|
|
29394
29404
|
{ key: 2 },
|
|
29395
29405
|
[
|
|
29396
|
-
|
|
29406
|
+
oe(" Advanced JSON Mode "),
|
|
29397
29407
|
ke("div", a2, [
|
|
29398
29408
|
ee(n.QInput, {
|
|
29399
29409
|
"model-value": n.jsonText,
|
|
@@ -29414,8 +29424,8 @@ function c2(i, e, t, n, r, o) {
|
|
|
29414
29424
|
],
|
|
29415
29425
|
2112
|
|
29416
29426
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
29417
|
-
)) : (te(),
|
|
29418
|
-
|
|
29427
|
+
)) : (te(), le("div", HT, [
|
|
29428
|
+
oe(" Root logic toggle "),
|
|
29419
29429
|
ke("div", zT, [
|
|
29420
29430
|
e[5] || (e[5] = ke(
|
|
29421
29431
|
"span",
|
|
@@ -29451,23 +29461,23 @@ function c2(i, e, t, n, r, o) {
|
|
|
29451
29461
|
/* CACHED */
|
|
29452
29462
|
))
|
|
29453
29463
|
]),
|
|
29454
|
-
|
|
29464
|
+
oe(" Conditions list "),
|
|
29455
29465
|
ke("div", jT, [
|
|
29456
|
-
(te(!0),
|
|
29457
|
-
|
|
29466
|
+
(te(!0), le(
|
|
29467
|
+
Vt,
|
|
29458
29468
|
null,
|
|
29459
29469
|
Dn(n.conditionRoot.conditions, (s, l) => {
|
|
29460
29470
|
var a;
|
|
29461
|
-
return te(),
|
|
29462
|
-
|
|
29471
|
+
return te(), le(
|
|
29472
|
+
Vt,
|
|
29463
29473
|
{
|
|
29464
29474
|
key: s.id
|
|
29465
29475
|
},
|
|
29466
29476
|
[
|
|
29467
|
-
|
|
29468
|
-
s.type === "condition" ? (te(),
|
|
29477
|
+
oe(" Simple condition row "),
|
|
29478
|
+
s.type === "condition" ? (te(), le("div", WT, [
|
|
29469
29479
|
ke("div", QT, [
|
|
29470
|
-
|
|
29480
|
+
oe(" Left value (slot or default input) "),
|
|
29471
29481
|
rs(i.$slots, "left-input", {
|
|
29472
29482
|
value: s.left,
|
|
29473
29483
|
onChange: (u) => n.updateConditionLeft(s, u),
|
|
@@ -29486,7 +29496,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29486
29496
|
"onUpdate:modelValue": (u) => n.updateConditionLeft(s, String(u ?? ""))
|
|
29487
29497
|
}, null, 8, ["model-value", "placeholder", "disable", "readonly", "onUpdate:modelValue"])
|
|
29488
29498
|
], !0),
|
|
29489
|
-
|
|
29499
|
+
oe(" Operator select "),
|
|
29490
29500
|
ee(n.QSelect, {
|
|
29491
29501
|
"model-value": s.operator,
|
|
29492
29502
|
options: n.filteredOperatorOptions,
|
|
@@ -29597,7 +29607,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29597
29607
|
},
|
|
29598
29608
|
1024
|
|
29599
29609
|
/* DYNAMIC_SLOTS */
|
|
29600
|
-
)) :
|
|
29610
|
+
)) : oe("v-if", !0)
|
|
29601
29611
|
]),
|
|
29602
29612
|
_: 2
|
|
29603
29613
|
/* DYNAMIC */
|
|
@@ -29616,7 +29626,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29616
29626
|
key: "1"
|
|
29617
29627
|
} : void 0
|
|
29618
29628
|
]), 1032, ["model-value", "options", "disable", "readonly", "onUpdate:modelValue"]),
|
|
29619
|
-
|
|
29629
|
+
oe(" Right value (conditional based on operator) "),
|
|
29620
29630
|
(a = n.getOperatorInfo(s.operator)) != null && a.rightRequired ? rs(i.$slots, "right-input", {
|
|
29621
29631
|
key: 0,
|
|
29622
29632
|
value: s.right,
|
|
@@ -29636,9 +29646,9 @@ function c2(i, e, t, n, r, o) {
|
|
|
29636
29646
|
readonly: t.readonly,
|
|
29637
29647
|
"onUpdate:modelValue": (u) => n.updateConditionRight(s, String(u ?? ""))
|
|
29638
29648
|
}, null, 8, ["model-value", "placeholder", "disable", "readonly", "onUpdate:modelValue"])
|
|
29639
|
-
], !0) : (te(),
|
|
29649
|
+
], !0) : (te(), le("div", YT))
|
|
29640
29650
|
]),
|
|
29641
|
-
|
|
29651
|
+
oe(" Remove button "),
|
|
29642
29652
|
ee(n.QBtn, {
|
|
29643
29653
|
flat: "",
|
|
29644
29654
|
round: "",
|
|
@@ -29666,11 +29676,11 @@ function c2(i, e, t, n, r, o) {
|
|
|
29666
29676
|
_: 1
|
|
29667
29677
|
/* STABLE */
|
|
29668
29678
|
}, 8, ["disable", "onClick"])
|
|
29669
|
-
])) : s.type === "group" ? (te(),
|
|
29670
|
-
|
|
29679
|
+
])) : s.type === "group" ? (te(), le(
|
|
29680
|
+
Vt,
|
|
29671
29681
|
{ key: 1 },
|
|
29672
29682
|
[
|
|
29673
|
-
|
|
29683
|
+
oe(" Nested group "),
|
|
29674
29684
|
ke("div", GT, [
|
|
29675
29685
|
ke("div", JT, [
|
|
29676
29686
|
ke("div", XT, [
|
|
@@ -29722,18 +29732,18 @@ function c2(i, e, t, n, r, o) {
|
|
|
29722
29732
|
}, 8, ["disable", "onClick"])
|
|
29723
29733
|
]),
|
|
29724
29734
|
ke("div", $T, [
|
|
29725
|
-
(te(!0),
|
|
29726
|
-
|
|
29735
|
+
(te(!0), le(
|
|
29736
|
+
Vt,
|
|
29727
29737
|
null,
|
|
29728
29738
|
Dn(s.conditions, (u) => {
|
|
29729
29739
|
var c;
|
|
29730
|
-
return te(),
|
|
29731
|
-
|
|
29740
|
+
return te(), le(
|
|
29741
|
+
Vt,
|
|
29732
29742
|
{
|
|
29733
29743
|
key: u.id
|
|
29734
29744
|
},
|
|
29735
29745
|
[
|
|
29736
|
-
u.type === "condition" ? (te(),
|
|
29746
|
+
u.type === "condition" ? (te(), le("div", ZT, [
|
|
29737
29747
|
ke("div", e2, [
|
|
29738
29748
|
rs(i.$slots, "left-input", {
|
|
29739
29749
|
value: u.left,
|
|
@@ -29867,7 +29877,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29867
29877
|
},
|
|
29868
29878
|
1024
|
|
29869
29879
|
/* DYNAMIC_SLOTS */
|
|
29870
|
-
)) :
|
|
29880
|
+
)) : oe("v-if", !0)
|
|
29871
29881
|
]),
|
|
29872
29882
|
_: 2
|
|
29873
29883
|
/* DYNAMIC */
|
|
@@ -29905,7 +29915,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29905
29915
|
readonly: t.readonly,
|
|
29906
29916
|
"onUpdate:modelValue": (h) => n.updateConditionRight(u, String(h ?? ""))
|
|
29907
29917
|
}, null, 8, ["model-value", "placeholder", "disable", "readonly", "onUpdate:modelValue"])
|
|
29908
|
-
], !0) : (te(),
|
|
29918
|
+
], !0) : (te(), le("div", n2))
|
|
29909
29919
|
]),
|
|
29910
29920
|
ee(n.QBtn, {
|
|
29911
29921
|
flat: "",
|
|
@@ -29934,7 +29944,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29934
29944
|
_: 1
|
|
29935
29945
|
/* STABLE */
|
|
29936
29946
|
}, 8, ["disable", "onClick"])
|
|
29937
|
-
])) :
|
|
29947
|
+
])) : oe("v-if", !0)
|
|
29938
29948
|
],
|
|
29939
29949
|
64
|
|
29940
29950
|
/* STABLE_FRAGMENT */
|
|
@@ -29943,7 +29953,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29943
29953
|
128
|
|
29944
29954
|
/* KEYED_FRAGMENT */
|
|
29945
29955
|
)),
|
|
29946
|
-
|
|
29956
|
+
oe(" Add condition to group "),
|
|
29947
29957
|
ke("div", r2, [
|
|
29948
29958
|
ee(n.QBtn, {
|
|
29949
29959
|
flat: "",
|
|
@@ -29961,9 +29971,9 @@ function c2(i, e, t, n, r, o) {
|
|
|
29961
29971
|
],
|
|
29962
29972
|
2112
|
|
29963
29973
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
29964
|
-
)) :
|
|
29965
|
-
|
|
29966
|
-
l < n.conditionRoot.conditions.length - 1 ? (te(),
|
|
29974
|
+
)) : oe("v-if", !0),
|
|
29975
|
+
oe(" Logic connector between conditions "),
|
|
29976
|
+
l < n.conditionRoot.conditions.length - 1 ? (te(), le("div", o2, [
|
|
29967
29977
|
ke(
|
|
29968
29978
|
"span",
|
|
29969
29979
|
s2,
|
|
@@ -29971,7 +29981,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29971
29981
|
1
|
|
29972
29982
|
/* TEXT */
|
|
29973
29983
|
)
|
|
29974
|
-
])) :
|
|
29984
|
+
])) : oe("v-if", !0)
|
|
29975
29985
|
],
|
|
29976
29986
|
64
|
|
29977
29987
|
/* STABLE_FRAGMENT */
|
|
@@ -29981,7 +29991,7 @@ function c2(i, e, t, n, r, o) {
|
|
|
29981
29991
|
/* KEYED_FRAGMENT */
|
|
29982
29992
|
))
|
|
29983
29993
|
]),
|
|
29984
|
-
|
|
29994
|
+
oe(" Add buttons "),
|
|
29985
29995
|
ke("div", l2, [
|
|
29986
29996
|
ee(n.QBtn, {
|
|
29987
29997
|
flat: "",
|
|
@@ -30022,14 +30032,14 @@ function c2(i, e, t, n, r, o) {
|
|
|
30022
30032
|
}, 8, ["disable"])
|
|
30023
30033
|
])
|
|
30024
30034
|
])),
|
|
30025
|
-
|
|
30026
|
-
n.errorMessage ? (te(),
|
|
30035
|
+
oe(" Error message "),
|
|
30036
|
+
n.errorMessage ? (te(), le(
|
|
30027
30037
|
"div",
|
|
30028
30038
|
u2,
|
|
30029
30039
|
Me(n.errorMessage),
|
|
30030
30040
|
1
|
|
30031
30041
|
/* TEXT */
|
|
30032
|
-
)) :
|
|
30042
|
+
)) : oe("v-if", !0)
|
|
30033
30043
|
],
|
|
30034
30044
|
4
|
|
30035
30045
|
/* STYLE */
|
|
@@ -30160,7 +30170,7 @@ const h2 = /* @__PURE__ */ Kt(ET, [["render", c2], ["__scopeId", "data-v-722c2e2
|
|
|
30160
30170
|
});
|
|
30161
30171
|
function d2(i, e, t, n, r, o) {
|
|
30162
30172
|
var s;
|
|
30163
|
-
return te(),
|
|
30173
|
+
return te(), le(
|
|
30164
30174
|
"div",
|
|
30165
30175
|
{
|
|
30166
30176
|
style: vt({ marginBottom: n.fieldGap }),
|