@quickflo/quickforms-quasar 1.19.16 → 1.19.17
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 +383 -359
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SchemaUtils as gm, ComponentRegistry as q0, rankWith as Qe, hasConst as P0, hasXRender as Xt, isStringType as _0, isNumberType as B0, isBooleanType as R0, isEnumType as E0, isDateFormat as L0, isTimeFormat as I0, isDateTimeFormat as V0, isRecordType as F0, isJsonType as N0, isObjectType as H0, isArrayType as hh, hasOneOf as z0, hasAnyOf as j0, hasAllOf as W0 } from "@quickflo/quickforms";
|
|
2
|
-
import { ComponentRegistry as
|
|
3
|
-
import { computed as w, markRaw as pm, defineComponent as _t, reactive as vm, h as T, withDirectives as pn, getCurrentInstance as We, ref as G, onMounted as Ai, watch as me, onBeforeUpdate as ym, inject as jo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Wo, onActivated as cc, Transition as gi, provide as bm, createElementBlock as oe, openBlock as Z, normalizeStyle as
|
|
2
|
+
import { ComponentRegistry as V2, SchemaUtils as F2, and as N2, hasAllOf as H2, hasAnyOf as z2, hasConditional as j2, hasConst as W2, hasExtension as Q2, hasFormat as U2, hasOneOf as K2, isArrayType as Y2, isBooleanType as G2, isDateFormat as J2, isDateTimeFormat as X2, isDiscriminatedUnion as $2, isEmailFormat as Z2, isEnumType as eD, isIntegerType as tD, isJsonType as iD, isNullType as nD, isNumberType as rD, isObjectType as oD, isRecordType as sD, isStringType as lD, isTimeFormat as aD, isUrlFormat as uD, not as cD, or as hD, rankWith as dD } from "@quickflo/quickforms";
|
|
3
|
+
import { computed as w, markRaw as pm, defineComponent as _t, reactive as vm, h as T, withDirectives as pn, getCurrentInstance as We, ref as G, onMounted as Ai, watch as me, onBeforeUpdate as ym, inject as jo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Wo, onActivated as cc, Transition as gi, provide as bm, createElementBlock as oe, openBlock as Z, normalizeStyle as dt, createVNode as ee, mergeProps as ot, createSlots as Gi, withCtx as ae, createTextVNode as Le, createElementVNode as be, toDisplayString as Se, toRaw as Un, createCommentVNode as ie, unref as Q0, onUnmounted as U0, Teleport as K0, onBeforeMount as Y0, onUpdated as G0, normalizeProps as J0, guardReactiveProps as X0, createBlock as li, shallowReactive as $0, vShow as xm, normalizeClass as El, Fragment as St, renderList as hn, renderSlot as An, withModifiers as iu, shallowRef as ua } from "vue";
|
|
4
4
|
import { useFormContext as Z0, useFormField as ey, generateFieldId as ty, FieldRenderer as Ll, HiddenField as iy } from "@quickflo/quickforms-vue";
|
|
5
|
-
import { useFormContext as
|
|
5
|
+
import { useFormContext as mD, useWatchFormValue as gD, useWatchFormValues as pD } from "@quickflo/quickforms-vue";
|
|
6
6
|
const nu = {
|
|
7
7
|
xs: 18,
|
|
8
8
|
sm: 24,
|
|
@@ -85,7 +85,7 @@ const dh = "0 0 24 24", ca = (i) => i, ha = (i) => `ionicons ${i}`, km = {
|
|
|
85
85
|
sym_o_: "-outlined",
|
|
86
86
|
sym_r_: "-rounded",
|
|
87
87
|
sym_s_: "-sharp"
|
|
88
|
-
}, ly = new RegExp("^(" + Object.keys(km).join("|") + ")"), ay = new RegExp("^(" + Object.keys(wm).join("|") + ")"), fh = new RegExp("^(" + Object.keys(Sm).join("|") + ")"), uy = /^[Mm]\s?[-+]?\.?\d/, cy = /^img:/, hy = /^svguse:/, dy = /^ion-/, fy = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,
|
|
88
|
+
}, ly = new RegExp("^(" + Object.keys(km).join("|") + ")"), ay = new RegExp("^(" + Object.keys(wm).join("|") + ")"), fh = new RegExp("^(" + Object.keys(Sm).join("|") + ")"), uy = /^[Mm]\s?[-+]?\.?\d/, cy = /^img:/, hy = /^svguse:/, dy = /^ion-/, fy = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ft = Xe({
|
|
89
89
|
name: "QIcon",
|
|
90
90
|
props: {
|
|
91
91
|
...Il,
|
|
@@ -798,7 +798,7 @@ function gc(i) {
|
|
|
798
798
|
}, _())
|
|
799
799
|
), c.value === !0 && e.noErrorIcon === !1 && H.push(
|
|
800
800
|
Y("error", [
|
|
801
|
-
T(
|
|
801
|
+
T(ft, { name: s.iconSet.field.error, color: "negative" })
|
|
802
802
|
])
|
|
803
803
|
), e.loading === !0 || i.innerLoading.value === !0 ? H.push(
|
|
804
804
|
Y(
|
|
@@ -807,7 +807,7 @@ function gc(i) {
|
|
|
807
807
|
)
|
|
808
808
|
) : e.clearable === !0 && i.hasValue.value === !0 && i.editable.value === !0 && H.push(
|
|
809
809
|
Y("inner-clearable-append", [
|
|
810
|
-
T(
|
|
810
|
+
T(ft, {
|
|
811
811
|
class: "q-field__focusable-action",
|
|
812
812
|
name: e.clearIcon || s.iconSet.field.clear,
|
|
813
813
|
tabindex: 0,
|
|
@@ -962,7 +962,7 @@ function qm(i) {
|
|
|
962
962
|
function Pm(i) {
|
|
963
963
|
return new RegExp("\\\\([^.*+?^${}()|([\\]])|([.*+?^${}()|[\\]])|([" + i.join("") + "])|(.)", "g");
|
|
964
964
|
}
|
|
965
|
-
const Ch = /[.*+?^${}()|[\]\\]/g, Ey = Pm(Ry),
|
|
965
|
+
const Ch = /[.*+?^${}()|[\]\\]/g, Ey = Pm(Ry), bt = "", Ly = {
|
|
966
966
|
mask: String,
|
|
967
967
|
reverseFillMask: Boolean,
|
|
968
968
|
fillMask: [Boolean, String],
|
|
@@ -1012,10 +1012,10 @@ function Iy(i, e, t, n) {
|
|
|
1012
1012
|
if (E < r.length)
|
|
1013
1013
|
return r.slice(-E);
|
|
1014
1014
|
let B = "", R = r;
|
|
1015
|
-
const q = R.indexOf(
|
|
1015
|
+
const q = R.indexOf(bt);
|
|
1016
1016
|
if (q !== -1) {
|
|
1017
1017
|
for (let _ = E - R.length; _ > 0; _--)
|
|
1018
|
-
B +=
|
|
1018
|
+
B += bt;
|
|
1019
1019
|
R = R.slice(0, q) + B + R.slice(q);
|
|
1020
1020
|
}
|
|
1021
1021
|
return R;
|
|
@@ -1054,7 +1054,7 @@ function Iy(i, e, t, n) {
|
|
|
1054
1054
|
re = re.slice(Oe.shift().length), F.push(...Oe);
|
|
1055
1055
|
}
|
|
1056
1056
|
return F.length !== 0 ? F.join("") : v;
|
|
1057
|
-
}, r = I.map((v) => typeof v == "string" ? v :
|
|
1057
|
+
}, r = I.map((v) => typeof v == "string" ? v : bt).join(""), o = r.split(bt).join(B);
|
|
1058
1058
|
}
|
|
1059
1059
|
function k(E, B, R) {
|
|
1060
1060
|
const q = n.value, _ = q.selectionEnd, I = q.value.length - _, Y = V(E);
|
|
@@ -1070,7 +1070,7 @@ function Iy(i, e, t, n) {
|
|
|
1070
1070
|
const x = q.selectionEnd;
|
|
1071
1071
|
let v = _ - 1;
|
|
1072
1072
|
for (let A = a; A <= v && A < x; A++)
|
|
1073
|
-
r[A] !==
|
|
1073
|
+
r[A] !== bt && v++;
|
|
1074
1074
|
y.right(q, v);
|
|
1075
1075
|
return;
|
|
1076
1076
|
}
|
|
@@ -1088,7 +1088,7 @@ function Iy(i, e, t, n) {
|
|
|
1088
1088
|
q.setSelectionRange(x, x, "backward");
|
|
1089
1089
|
}
|
|
1090
1090
|
else if (J === !0) {
|
|
1091
|
-
const x = Math.max(0, r.indexOf(
|
|
1091
|
+
const x = Math.max(0, r.indexOf(bt), Math.min(N.length, _) - 1);
|
|
1092
1092
|
y.right(q, x);
|
|
1093
1093
|
} else {
|
|
1094
1094
|
const x = _ - 1;
|
|
@@ -1100,18 +1100,18 @@ function Iy(i, e, t, n) {
|
|
|
1100
1100
|
}
|
|
1101
1101
|
function S(E, B, R) {
|
|
1102
1102
|
const q = D(V(E.value));
|
|
1103
|
-
B = Math.max(0, r.indexOf(
|
|
1103
|
+
B = Math.max(0, r.indexOf(bt), Math.min(q.length, B)), a = B, E.setSelectionRange(B, R, "forward");
|
|
1104
1104
|
}
|
|
1105
1105
|
const y = {
|
|
1106
1106
|
left(E, B) {
|
|
1107
|
-
const R = r.slice(B - 1).indexOf(
|
|
1107
|
+
const R = r.slice(B - 1).indexOf(bt) === -1;
|
|
1108
1108
|
let q = Math.max(0, B - 1);
|
|
1109
1109
|
for (; q >= 0; q--)
|
|
1110
|
-
if (r[q] ===
|
|
1110
|
+
if (r[q] === bt) {
|
|
1111
1111
|
B = q, R === !0 && B++;
|
|
1112
1112
|
break;
|
|
1113
1113
|
}
|
|
1114
|
-
if (q < 0 && r[B] !== void 0 && r[B] !==
|
|
1114
|
+
if (q < 0 && r[B] !== void 0 && r[B] !== bt)
|
|
1115
1115
|
return y.right(E, 0);
|
|
1116
1116
|
B >= 0 && E.setSelectionRange(B, B, "backward");
|
|
1117
1117
|
},
|
|
@@ -1119,11 +1119,11 @@ function Iy(i, e, t, n) {
|
|
|
1119
1119
|
const R = E.value.length;
|
|
1120
1120
|
let q = Math.min(R, B + 1);
|
|
1121
1121
|
for (; q <= R; q++)
|
|
1122
|
-
if (r[q] ===
|
|
1122
|
+
if (r[q] === bt) {
|
|
1123
1123
|
B = q;
|
|
1124
1124
|
break;
|
|
1125
|
-
} else r[q - 1] ===
|
|
1126
|
-
if (q > R && r[B - 1] !== void 0 && r[B - 1] !==
|
|
1125
|
+
} else r[q - 1] === bt && (B = q);
|
|
1126
|
+
if (q > R && r[B - 1] !== void 0 && r[B - 1] !== bt)
|
|
1127
1127
|
return y.left(E, R);
|
|
1128
1128
|
E.setSelectionRange(B, B, "forward");
|
|
1129
1129
|
},
|
|
@@ -1131,24 +1131,24 @@ function Iy(i, e, t, n) {
|
|
|
1131
1131
|
const R = p(E.value.length);
|
|
1132
1132
|
let q = Math.max(0, B - 1);
|
|
1133
1133
|
for (; q >= 0; q--)
|
|
1134
|
-
if (R[q - 1] ===
|
|
1134
|
+
if (R[q - 1] === bt) {
|
|
1135
1135
|
B = q;
|
|
1136
1136
|
break;
|
|
1137
|
-
} else if (R[q] ===
|
|
1137
|
+
} else if (R[q] === bt && (B = q, q === 0))
|
|
1138
1138
|
break;
|
|
1139
|
-
if (q < 0 && R[B] !== void 0 && R[B] !==
|
|
1139
|
+
if (q < 0 && R[B] !== void 0 && R[B] !== bt)
|
|
1140
1140
|
return y.rightReverse(E, 0);
|
|
1141
1141
|
B >= 0 && E.setSelectionRange(B, B, "backward");
|
|
1142
1142
|
},
|
|
1143
1143
|
rightReverse(E, B) {
|
|
1144
|
-
const R = E.value.length, q = p(R), _ = q.slice(0, B + 1).indexOf(
|
|
1144
|
+
const R = E.value.length, q = p(R), _ = q.slice(0, B + 1).indexOf(bt) === -1;
|
|
1145
1145
|
let I = Math.min(R, B + 1);
|
|
1146
1146
|
for (; I <= R; I++)
|
|
1147
|
-
if (q[I - 1] ===
|
|
1147
|
+
if (q[I - 1] === bt) {
|
|
1148
1148
|
B = I, B > 0 && _ === !0 && B--;
|
|
1149
1149
|
break;
|
|
1150
1150
|
}
|
|
1151
|
-
if (I > R && q[B - 1] !== void 0 && q[B - 1] !==
|
|
1151
|
+
if (I > R && q[B - 1] !== void 0 && q[B - 1] !== bt)
|
|
1152
1152
|
return y.leftReverse(E, R);
|
|
1153
1153
|
E.setSelectionRange(B, B, "forward");
|
|
1154
1154
|
}
|
|
@@ -1187,7 +1187,7 @@ function Iy(i, e, t, n) {
|
|
|
1187
1187
|
return _;
|
|
1188
1188
|
}
|
|
1189
1189
|
function O(E, B) {
|
|
1190
|
-
const R = s, q = r.indexOf(
|
|
1190
|
+
const R = s, q = r.indexOf(bt);
|
|
1191
1191
|
let _ = E.length - 1, I = "";
|
|
1192
1192
|
for (let Y = R.length - 1; Y >= 0 && _ !== -1; Y--) {
|
|
1193
1193
|
const N = R[Y];
|
|
@@ -1471,7 +1471,7 @@ const hr = Xe({
|
|
|
1471
1471
|
}), Yr(n, "nativeEl", () => h.value), x;
|
|
1472
1472
|
}
|
|
1473
1473
|
}), Em = Symbol("quickforms-quasar-context");
|
|
1474
|
-
function
|
|
1474
|
+
function P2(i) {
|
|
1475
1475
|
bm(Em, i);
|
|
1476
1476
|
}
|
|
1477
1477
|
function Lm() {
|
|
@@ -1571,7 +1571,7 @@ const Uy = /* @__PURE__ */ _t({
|
|
|
1571
1571
|
), S = { props: t, value: n, label: r, hint: o, errorMessage: s, fieldId: l, quasarProps: a, quickformsFeatures: u, fieldGap: c, isPasswordVisible: h, inputType: d, isTextarea: f, isPasswordField: m, iconConfig: p, showPrependIcon: g, showAppendIcon: k, get QInput() {
|
|
1572
1572
|
return hr;
|
|
1573
1573
|
}, get QIcon() {
|
|
1574
|
-
return
|
|
1574
|
+
return ft;
|
|
1575
1575
|
} };
|
|
1576
1576
|
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
1577
1577
|
}
|
|
@@ -1585,7 +1585,7 @@ function Ky(i, e, t, n, r, o) {
|
|
|
1585
1585
|
return Z(), oe(
|
|
1586
1586
|
"div",
|
|
1587
1587
|
{
|
|
1588
|
-
style:
|
|
1588
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
1589
1589
|
},
|
|
1590
1590
|
[
|
|
1591
1591
|
ee(n.QInput, ot({
|
|
@@ -1694,7 +1694,7 @@ function Gy(i, e, t, n, r, o) {
|
|
|
1694
1694
|
return Z(), oe(
|
|
1695
1695
|
"div",
|
|
1696
1696
|
{
|
|
1697
|
-
style:
|
|
1697
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
1698
1698
|
},
|
|
1699
1699
|
[
|
|
1700
1700
|
ee(n.QInput, ot({
|
|
@@ -1911,7 +1911,7 @@ const tb = () => T("div", {
|
|
|
1911
1911
|
key: "icon",
|
|
1912
1912
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
1913
1913
|
}, [
|
|
1914
|
-
T(
|
|
1914
|
+
T(ft, {
|
|
1915
1915
|
class: "q-checkbox__icon",
|
|
1916
1916
|
name: o.value
|
|
1917
1917
|
})
|
|
@@ -1964,7 +1964,7 @@ function lb(i, e, t, n, r, o) {
|
|
|
1964
1964
|
return Z(), oe(
|
|
1965
1965
|
"div",
|
|
1966
1966
|
{
|
|
1967
|
-
style:
|
|
1967
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
1968
1968
|
},
|
|
1969
1969
|
[
|
|
1970
1970
|
ee(n.QCheckbox, ot({
|
|
@@ -2449,7 +2449,7 @@ const bc = hc(
|
|
|
2449
2449
|
u.value === !0 && g.push(
|
|
2450
2450
|
T("div", { class: "q-focus-helper" })
|
|
2451
2451
|
), s.value === !0 && g.push(
|
|
2452
|
-
T(
|
|
2452
|
+
T(ft, {
|
|
2453
2453
|
class: "q-chip__icon q-chip__icon--left",
|
|
2454
2454
|
name: l.value
|
|
2455
2455
|
})
|
|
@@ -2460,12 +2460,12 @@ const bc = hc(
|
|
|
2460
2460
|
class: "q-chip__content col row no-wrap items-center q-anchor--skip"
|
|
2461
2461
|
}, oy(e.default, k))
|
|
2462
2462
|
), i.iconRight && g.push(
|
|
2463
|
-
T(
|
|
2463
|
+
T(ft, {
|
|
2464
2464
|
class: "q-chip__icon q-chip__icon--right",
|
|
2465
2465
|
name: i.iconRight
|
|
2466
2466
|
})
|
|
2467
2467
|
), i.removable === !0 && g.push(
|
|
2468
|
-
T(
|
|
2468
|
+
T(ft, {
|
|
2469
2469
|
class: "q-chip__icon q-chip__icon--remove cursor-pointer",
|
|
2470
2470
|
name: a.value,
|
|
2471
2471
|
...h.value.remove,
|
|
@@ -3727,11 +3727,11 @@ function jb({
|
|
|
3727
3727
|
requestAnimationFrame(() => {
|
|
3728
3728
|
if (u !== v.scrollStart) return;
|
|
3729
3729
|
Ve === !0 && q($);
|
|
3730
|
-
const Gt = f.slice($, A).reduce(Dr, 0), Rt = Gt + v.offsetStart + m.value,
|
|
3730
|
+
const Gt = f.slice($, A).reduce(Dr, 0), Rt = Gt + v.offsetStart + m.value, gt = Rt + f[A];
|
|
3731
3731
|
let yi = Rt + F;
|
|
3732
3732
|
if (re !== void 0) {
|
|
3733
3733
|
const Li = Gt - Bt, Jt = v.scrollStart + Li;
|
|
3734
|
-
yi = X !== !0 && Jt < Rt &&
|
|
3734
|
+
yi = X !== !0 && Jt < Rt && gt < Jt + v.scrollViewSize ? Jt : re === "end" ? gt - v.scrollViewSize : Rt - (re === "start" ? 0 : Math.round((v.scrollViewSize - f[A]) / 2));
|
|
3735
3735
|
}
|
|
3736
3736
|
u = yi, jh(
|
|
3737
3737
|
x,
|
|
@@ -4133,14 +4133,14 @@ const Ko = Xe({
|
|
|
4133
4133
|
removeAtIndex: Pe,
|
|
4134
4134
|
toggleOption: ut,
|
|
4135
4135
|
tabindex: wt.value
|
|
4136
|
-
}))),
|
|
4136
|
+
}))), gt = w(() => {
|
|
4137
4137
|
if (R.value === 0)
|
|
4138
4138
|
return [];
|
|
4139
4139
|
const { from: P, to: he } = _.value;
|
|
4140
4140
|
return i.options.slice(P, he).map((ge, Be) => {
|
|
4141
|
-
const Ze = ve.value(ge) === !0,
|
|
4141
|
+
const Ze = ve.value(ge) === !0, pt = Me(ge) === !0, et = P + Be, vt = {
|
|
4142
4142
|
clickable: !0,
|
|
4143
|
-
active:
|
|
4143
|
+
active: pt,
|
|
4144
4144
|
activeClass: Jt.value,
|
|
4145
4145
|
manualFocus: !0,
|
|
4146
4146
|
focused: !1,
|
|
@@ -4149,24 +4149,24 @@ const Ko = Xe({
|
|
|
4149
4149
|
dense: i.optionsDense,
|
|
4150
4150
|
dark: F.value,
|
|
4151
4151
|
role: "option",
|
|
4152
|
-
"aria-selected":
|
|
4152
|
+
"aria-selected": pt === !0 ? "true" : "false",
|
|
4153
4153
|
id: `${x.targetUid.value}_${et}`,
|
|
4154
4154
|
onClick: () => {
|
|
4155
4155
|
ut(ge);
|
|
4156
4156
|
}
|
|
4157
4157
|
};
|
|
4158
|
-
return Ze !== !0 && (l.value === et && (
|
|
4158
|
+
return Ze !== !0 && (l.value === et && (vt.focused = !0), r.platform.is.desktop === !0 && (vt.onMousemove = () => {
|
|
4159
4159
|
o.value === !0 && U(et);
|
|
4160
4160
|
})), {
|
|
4161
4161
|
index: et,
|
|
4162
4162
|
opt: ge,
|
|
4163
4163
|
html: Ve.value(ge),
|
|
4164
4164
|
label: te.value(ge),
|
|
4165
|
-
selected:
|
|
4166
|
-
focused:
|
|
4165
|
+
selected: vt.active,
|
|
4166
|
+
focused: vt.focused,
|
|
4167
4167
|
toggleOption: ut,
|
|
4168
4168
|
setOptionIndex: U,
|
|
4169
|
-
itemProps:
|
|
4169
|
+
itemProps: vt
|
|
4170
4170
|
};
|
|
4171
4171
|
});
|
|
4172
4172
|
}), yi = w(() => i.dropdownIcon !== void 0 ? i.dropdownIcon : r.iconSet.arrow.dropdown), Li = w(
|
|
@@ -4225,7 +4225,7 @@ const Ko = Xe({
|
|
|
4225
4225
|
t("add", { index: Be.length, value: ge }), Be.push(ge), t("update:modelValue", Be);
|
|
4226
4226
|
}
|
|
4227
4227
|
function ut(P, he) {
|
|
4228
|
-
var
|
|
4228
|
+
var pt;
|
|
4229
4229
|
if (x.editable.value !== !0 || P === void 0 || ve.value(P) === !0) return;
|
|
4230
4230
|
const ge = at.value(P);
|
|
4231
4231
|
if (i.multiple !== !0) {
|
|
@@ -4233,7 +4233,7 @@ const Ko = Xe({
|
|
|
4233
4233
|
i.fillInput === !0 ? te.value(P) : "",
|
|
4234
4234
|
!0,
|
|
4235
4235
|
!0
|
|
4236
|
-
), Fe()), (
|
|
4236
|
+
), Fe()), (pt = D.value) == null || pt.focus(), (v.value.length === 0 || Cn(at.value(v.value[0]), ge) !== !0) && t("update:modelValue", i.emitValue === !0 ? ge : P);
|
|
4237
4237
|
return;
|
|
4238
4238
|
}
|
|
4239
4239
|
if ((m !== !0 || u.value === !0) && x.focus(), Re(), v.value.length === 0) {
|
|
@@ -4293,11 +4293,11 @@ const Ko = Xe({
|
|
|
4293
4293
|
return;
|
|
4294
4294
|
}
|
|
4295
4295
|
if (P.target.value = "", h !== null && (clearTimeout(h), h = null), d !== null && (clearTimeout(d), d = null), bi(), typeof he == "string" && he.length !== 0) {
|
|
4296
|
-
const ge = he.toLocaleLowerCase(), Be = (
|
|
4297
|
-
const et = i.options.find((
|
|
4296
|
+
const ge = he.toLocaleLowerCase(), Be = (pt) => {
|
|
4297
|
+
const et = i.options.find((vt) => String(pt.value(vt)).toLocaleLowerCase() === ge);
|
|
4298
4298
|
return et === void 0 ? !1 : (v.value.indexOf(et) === -1 ? ut(et) : Fe(), !0);
|
|
4299
|
-
}, Ze = (
|
|
4300
|
-
Be(at) !== !0 &&
|
|
4299
|
+
}, Ze = (pt) => {
|
|
4300
|
+
Be(at) !== !0 && pt !== !0 && Be(te) !== !0 && Ii(he, !0, () => Ze(!0));
|
|
4301
4301
|
};
|
|
4302
4302
|
Ze();
|
|
4303
4303
|
} else
|
|
@@ -4336,16 +4336,16 @@ const Ko = Xe({
|
|
|
4336
4336
|
const Be = R.value;
|
|
4337
4337
|
if ((y === void 0 || b < Date.now()) && (y = ""), Be > 0 && i.useInput !== !0 && P.key !== void 0 && P.key.length === 1 && P.altKey === !1 && P.ctrlKey === !1 && P.metaKey === !1 && (P.keyCode !== 32 || y.length !== 0)) {
|
|
4338
4338
|
o.value !== !0 && Ce(P);
|
|
4339
|
-
const Ze = P.key.toLocaleLowerCase(),
|
|
4340
|
-
b = Date.now() + 1500,
|
|
4339
|
+
const Ze = P.key.toLocaleLowerCase(), pt = y.length === 1 && y[0] === Ze;
|
|
4340
|
+
b = Date.now() + 1500, pt === !1 && (ct(P), y += Ze);
|
|
4341
4341
|
const et = new RegExp("^" + y.split("").map((mr) => Qb.indexOf(mr) !== -1 ? "\\" + mr : mr).join(".*"), "i");
|
|
4342
|
-
let
|
|
4343
|
-
if (
|
|
4342
|
+
let vt = l.value;
|
|
4343
|
+
if (pt === !0 || vt < 0 || et.test(te.value(i.options[vt])) !== !0)
|
|
4344
4344
|
do
|
|
4345
|
-
|
|
4346
|
-
while (
|
|
4347
|
-
l.value !==
|
|
4348
|
-
U(
|
|
4345
|
+
vt = Qh(vt + 1, -1, Be - 1);
|
|
4346
|
+
while (vt !== l.value && (ve.value(i.options[vt]) === !0 || et.test(te.value(i.options[vt])) !== !0));
|
|
4347
|
+
l.value !== vt && rt(() => {
|
|
4348
|
+
U(vt), J(vt), vt >= 0 && i.useInput === !0 && i.fillInput === !0 && Hn(te.value(i.options[vt]), !0);
|
|
4349
4349
|
});
|
|
4350
4350
|
return;
|
|
4351
4351
|
}
|
|
@@ -4355,14 +4355,14 @@ const Ko = Xe({
|
|
|
4355
4355
|
return;
|
|
4356
4356
|
}
|
|
4357
4357
|
if (he === !0) {
|
|
4358
|
-
const Ze = (
|
|
4358
|
+
const Ze = (pt, et) => {
|
|
4359
4359
|
var mr;
|
|
4360
4360
|
if (et) {
|
|
4361
4361
|
if (Uh(et) !== !0) return;
|
|
4362
4362
|
} else
|
|
4363
4363
|
et = i.newValueMode;
|
|
4364
|
-
if (zn("", i.multiple !== !0, !0),
|
|
4365
|
-
(et === "toggle" ? ut : $e)(
|
|
4364
|
+
if (zn("", i.multiple !== !0, !0), pt == null) return;
|
|
4365
|
+
(et === "toggle" ? ut : $e)(pt, et === "add-unique"), i.multiple !== !0 && ((mr = D.value) == null || mr.focus(), Fe());
|
|
4366
4366
|
};
|
|
4367
4367
|
if (i.onNewValue !== void 0 ? t("newValue", a.value, Ze) : Ze(a.value), i.multiple !== !0) return;
|
|
4368
4368
|
}
|
|
@@ -4410,7 +4410,7 @@ const Ko = Xe({
|
|
|
4410
4410
|
})
|
|
4411
4411
|
)
|
|
4412
4412
|
));
|
|
4413
|
-
let he = N("div",
|
|
4413
|
+
let he = N("div", gt.value.map(P));
|
|
4414
4414
|
return e["before-options"] !== void 0 && (he = e["before-options"]().concat(he)), On(e["after-options"], he);
|
|
4415
4415
|
}
|
|
4416
4416
|
function $r(P, he) {
|
|
@@ -4455,10 +4455,10 @@ const Ko = Xe({
|
|
|
4455
4455
|
g !== null && clearTimeout(g), g = Be, t(
|
|
4456
4456
|
"filter",
|
|
4457
4457
|
P,
|
|
4458
|
-
(Ze,
|
|
4458
|
+
(Ze, pt) => {
|
|
4459
4459
|
(he === !0 || x.focused.value === !0) && g === Be && (clearTimeout(g), typeof Ze == "function" && Ze(), c.value = !1, rt(() => {
|
|
4460
|
-
x.innerLoading.value = !1, x.editable.value === !0 && (he === !0 ? o.value === !0 && Fe() : o.value === !0 ? aa(!0) : o.value = !0), typeof
|
|
4461
|
-
|
|
4460
|
+
x.innerLoading.value = !1, x.editable.value === !0 && (he === !0 ? o.value === !0 && Fe() : o.value === !0 ? aa(!0) : o.value = !0), typeof pt == "function" && rt(() => {
|
|
4461
|
+
pt(n);
|
|
4462
4462
|
}), typeof ge == "function" && rt(() => {
|
|
4463
4463
|
ge(n);
|
|
4464
4464
|
});
|
|
@@ -4701,7 +4701,7 @@ const Ko = Xe({
|
|
|
4701
4701
|
);
|
|
4702
4702
|
}
|
|
4703
4703
|
if (E.value !== void 0 && i.disable !== !0 && we.value.length !== 0) {
|
|
4704
|
-
const Ze = we.value.map((
|
|
4704
|
+
const Ze = we.value.map((pt) => T("option", { value: pt, selected: !0 }));
|
|
4705
4705
|
he.push(
|
|
4706
4706
|
T("select", {
|
|
4707
4707
|
class: "hidden",
|
|
@@ -4718,7 +4718,7 @@ const Ko = Xe({
|
|
|
4718
4718
|
}, he);
|
|
4719
4719
|
},
|
|
4720
4720
|
getInnerAppend: () => i.loading !== !0 && c.value !== !0 && i.hideDropdownIcon !== !0 ? [
|
|
4721
|
-
T(
|
|
4721
|
+
T(ft, {
|
|
4722
4722
|
class: "q-select__dropdown-icon" + (o.value === !0 ? " rotate-180" : ""),
|
|
4723
4723
|
name: yi.value
|
|
4724
4724
|
})
|
|
@@ -4814,7 +4814,7 @@ function Yb(i, e, t, n, r, o) {
|
|
|
4814
4814
|
return Z(), oe(
|
|
4815
4815
|
"div",
|
|
4816
4816
|
{
|
|
4817
|
-
style:
|
|
4817
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
4818
4818
|
},
|
|
4819
4819
|
[
|
|
4820
4820
|
ee(n.QSelect, ot({
|
|
@@ -5176,7 +5176,7 @@ const Vt = Xe({
|
|
|
5176
5176
|
}), () => {
|
|
5177
5177
|
let _ = [];
|
|
5178
5178
|
i.icon !== void 0 && _.push(
|
|
5179
|
-
T(
|
|
5179
|
+
T(ft, {
|
|
5180
5180
|
name: i.icon,
|
|
5181
5181
|
left: i.stack !== !0 && k.value === !0,
|
|
5182
5182
|
role: "img"
|
|
@@ -5184,7 +5184,7 @@ const Vt = Xe({
|
|
|
5184
5184
|
), k.value === !0 && _.push(
|
|
5185
5185
|
T("span", { class: "block" }, [i.label])
|
|
5186
5186
|
), _ = On(e.default, _), i.iconRight !== void 0 && i.round === !1 && _.push(
|
|
5187
|
-
T(
|
|
5187
|
+
T(ft, {
|
|
5188
5188
|
name: i.iconRight,
|
|
5189
5189
|
right: i.stack !== !0 && k.value === !0,
|
|
5190
5190
|
role: "img"
|
|
@@ -6225,10 +6225,10 @@ const gg = Xe({
|
|
|
6225
6225
|
}), Rt = w(() => {
|
|
6226
6226
|
if (B.value === null) return;
|
|
6227
6227
|
const { init: M, initHash: L, final: Q, finalHash: le } = B.value, [de, De] = L <= le ? [M, Q] : [Q, M], pe = xn(de), Ce = xn(De);
|
|
6228
|
-
if (pe !==
|
|
6228
|
+
if (pe !== gt.value && Ce !== gt.value) return;
|
|
6229
6229
|
const Fe = {};
|
|
6230
|
-
return pe ===
|
|
6231
|
-
}),
|
|
6230
|
+
return pe === gt.value ? (Fe.from = de.day, Fe.includeFrom = !0) : Fe.from = 1, Ce === gt.value ? (Fe.to = De.day, Fe.includeTo = !0) : Fe.to = $.value, Fe;
|
|
6231
|
+
}), gt = w(() => xn(b.value)), yi = w(() => {
|
|
6232
6232
|
const M = {};
|
|
6233
6233
|
if (i.options === void 0) {
|
|
6234
6234
|
for (let Q = 1; Q <= $.value; Q++)
|
|
@@ -6237,7 +6237,7 @@ const gg = Xe({
|
|
|
6237
6237
|
}
|
|
6238
6238
|
const L = typeof i.options == "function" ? i.options : (Q) => i.options.includes(Q);
|
|
6239
6239
|
for (let Q = 1; Q <= $.value; Q++) {
|
|
6240
|
-
const le =
|
|
6240
|
+
const le = gt.value + "/" + Ne(Q);
|
|
6241
6241
|
M[Q] = L(le);
|
|
6242
6242
|
}
|
|
6243
6243
|
return M;
|
|
@@ -6249,7 +6249,7 @@ const gg = Xe({
|
|
|
6249
6249
|
else {
|
|
6250
6250
|
const L = typeof i.events == "function" ? i.events : (Q) => i.events.includes(Q);
|
|
6251
6251
|
for (let Q = 1; Q <= $.value; Q++) {
|
|
6252
|
-
const le =
|
|
6252
|
+
const le = gt.value + "/" + Ne(Q);
|
|
6253
6253
|
M[Q] = L(le) === !0 && ze.value(le);
|
|
6254
6254
|
}
|
|
6255
6255
|
}
|
|
@@ -6279,7 +6279,7 @@ const gg = Xe({
|
|
|
6279
6279
|
const Ce = { i: pe, event: Li.value[pe], classes: [] };
|
|
6280
6280
|
yi.value[pe] === !0 && (Ce.in = !0, Ce.flat = !0), M.push(Ce);
|
|
6281
6281
|
}
|
|
6282
|
-
if (Bt.value[
|
|
6282
|
+
if (Bt.value[gt.value] !== void 0 && Bt.value[gt.value].forEach((pe) => {
|
|
6283
6283
|
const Ce = de + pe - 1;
|
|
6284
6284
|
Object.assign(M[Ce], {
|
|
6285
6285
|
selected: !0,
|
|
@@ -6288,7 +6288,7 @@ const gg = Xe({
|
|
|
6288
6288
|
color: q.value,
|
|
6289
6289
|
textColor: _.value
|
|
6290
6290
|
});
|
|
6291
|
-
}), Gt.value[
|
|
6291
|
+
}), Gt.value[gt.value] !== void 0 && Gt.value[gt.value].forEach((pe) => {
|
|
6292
6292
|
if (pe.from !== void 0) {
|
|
6293
6293
|
const Ce = de + pe.from - 1, Fe = de + (pe.to || $.value) - 1;
|
|
6294
6294
|
for (let bi = Ce; bi <= Fe; bi++)
|
|
@@ -6691,7 +6691,7 @@ const gg = Xe({
|
|
|
6691
6691
|
T(gi, {
|
|
6692
6692
|
name: "q-transition--slide-" + O.value
|
|
6693
6693
|
}, () => T("div", {
|
|
6694
|
-
key:
|
|
6694
|
+
key: gt.value,
|
|
6695
6695
|
class: "q-date__calendar-days fit"
|
|
6696
6696
|
}, at.value.map((M) => T("div", { class: M.classes }, [
|
|
6697
6697
|
M.in === !0 ? T(
|
|
@@ -6828,7 +6828,7 @@ const gg = Xe({
|
|
|
6828
6828
|
function sa(M) {
|
|
6829
6829
|
const L = { ...b.value, day: M };
|
|
6830
6830
|
if (i.range === !1) {
|
|
6831
|
-
qe(L,
|
|
6831
|
+
qe(L, gt.value);
|
|
6832
6832
|
return;
|
|
6833
6833
|
}
|
|
6834
6834
|
if (B.value === null) {
|
|
@@ -6936,7 +6936,7 @@ function y1(i, e, t, n, r, o) {
|
|
|
6936
6936
|
return Z(), oe(
|
|
6937
6937
|
"div",
|
|
6938
6938
|
{
|
|
6939
|
-
style:
|
|
6939
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
6940
6940
|
},
|
|
6941
6941
|
[
|
|
6942
6942
|
ee(n.QInput, ot({
|
|
@@ -6952,7 +6952,7 @@ function y1(i, e, t, n, r, o) {
|
|
|
6952
6952
|
required: t.schema.required
|
|
6953
6953
|
}, n.quasarProps), Gi({
|
|
6954
6954
|
prepend: ae(() => [
|
|
6955
|
-
ee(
|
|
6955
|
+
ee(ft, {
|
|
6956
6956
|
name: "event",
|
|
6957
6957
|
class: "cursor-pointer"
|
|
6958
6958
|
}, {
|
|
@@ -7437,7 +7437,7 @@ const pg = Xe({
|
|
|
7437
7437
|
function Rt(U) {
|
|
7438
7438
|
re() !== !0 && Ve(U, Oe());
|
|
7439
7439
|
}
|
|
7440
|
-
function
|
|
7440
|
+
function gt(U) {
|
|
7441
7441
|
if (U.keyCode === 13)
|
|
7442
7442
|
y.value = "hour";
|
|
7443
7443
|
else if ([37, 39].includes(U.keyCode)) {
|
|
@@ -7560,7 +7560,7 @@ const pg = Xe({
|
|
|
7560
7560
|
class: "q-time__link " + (y.value === "hour" ? "q-time__link--active" : "cursor-pointer"),
|
|
7561
7561
|
tabindex: s.value,
|
|
7562
7562
|
onClick: Ue.hour,
|
|
7563
|
-
onKeyup:
|
|
7563
|
+
onKeyup: gt
|
|
7564
7564
|
}, O.value.hour),
|
|
7565
7565
|
T("div", ":"),
|
|
7566
7566
|
T(
|
|
@@ -7715,7 +7715,7 @@ function O1(i, e, t, n, r, o) {
|
|
|
7715
7715
|
return Z(), oe(
|
|
7716
7716
|
"div",
|
|
7717
7717
|
{
|
|
7718
|
-
style:
|
|
7718
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
7719
7719
|
},
|
|
7720
7720
|
[
|
|
7721
7721
|
ee(n.QInput, ot({
|
|
@@ -7731,7 +7731,7 @@ function O1(i, e, t, n, r, o) {
|
|
|
7731
7731
|
required: t.schema.required
|
|
7732
7732
|
}, n.quasarProps), Gi({
|
|
7733
7733
|
prepend: ae(() => [
|
|
7734
|
-
ee(
|
|
7734
|
+
ee(ft, {
|
|
7735
7735
|
name: "access_time",
|
|
7736
7736
|
class: "cursor-pointer"
|
|
7737
7737
|
}, {
|
|
@@ -7939,7 +7939,7 @@ function _1(i, e, t, n, r, o) {
|
|
|
7939
7939
|
return Z(), oe(
|
|
7940
7940
|
"div",
|
|
7941
7941
|
{
|
|
7942
|
-
style:
|
|
7942
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
7943
7943
|
},
|
|
7944
7944
|
[
|
|
7945
7945
|
ee(n.QInput, ot({
|
|
@@ -7955,7 +7955,7 @@ function _1(i, e, t, n, r, o) {
|
|
|
7955
7955
|
required: t.schema.required
|
|
7956
7956
|
}, n.quasarProps), Gi({
|
|
7957
7957
|
prepend: ae(() => [
|
|
7958
|
-
ee(
|
|
7958
|
+
ee(ft, {
|
|
7959
7959
|
name: "event",
|
|
7960
7960
|
class: "cursor-pointer"
|
|
7961
7961
|
}, {
|
|
@@ -8221,7 +8221,7 @@ const od = /* @__PURE__ */ Kt(q1, [["render", _1], ["__scopeId", "data-v-76abc7a
|
|
|
8221
8221
|
side: i.switchToggleSide !== !0,
|
|
8222
8222
|
avatar: i.switchToggleSide
|
|
8223
8223
|
}, H = [
|
|
8224
|
-
T(
|
|
8224
|
+
T(ft, {
|
|
8225
8225
|
class: "q-expansion-item__toggle-icon" + (i.expandedIcon === void 0 && o.value === !0 ? " q-expansion-item__toggle-icon--rotated" : ""),
|
|
8226
8226
|
name: S.value
|
|
8227
8227
|
})
|
|
@@ -8250,7 +8250,7 @@ const od = /* @__PURE__ */ Kt(q1, [["render", _1], ["__scopeId", "data-v-76abc7a
|
|
|
8250
8250
|
T(un, {
|
|
8251
8251
|
side: i.switchToggleSide === !0,
|
|
8252
8252
|
avatar: i.switchToggleSide !== !0
|
|
8253
|
-
}, () => T(
|
|
8253
|
+
}, () => T(ft, { name: i.icon }))
|
|
8254
8254
|
)), i.disable !== !0 && i.hideExpandIcon !== !0 && N[i.switchToggleSide === !0 ? "unshift" : "push"](
|
|
8255
8255
|
R()
|
|
8256
8256
|
), N;
|
|
@@ -8404,7 +8404,7 @@ function K1(i, e, t, n, r, o) {
|
|
|
8404
8404
|
return Z(), oe(
|
|
8405
8405
|
"div",
|
|
8406
8406
|
{
|
|
8407
|
-
style:
|
|
8407
|
+
style: dt({ marginBottom: n.fieldGap }),
|
|
8408
8408
|
class: El(["quickform-object-field", n.sectionStyleClass])
|
|
8409
8409
|
},
|
|
8410
8410
|
[
|
|
@@ -8874,7 +8874,7 @@ const sd = /* @__PURE__ */ Kt(L1, [["render", K1], ["__scopeId", "data-v-813eef2
|
|
|
8874
8874
|
function hx(i, e, t, n, r, o) {
|
|
8875
8875
|
return Z(), oe("div", {
|
|
8876
8876
|
id: n.fieldId,
|
|
8877
|
-
style:
|
|
8877
|
+
style: dt({ marginBottom: n.fieldGap }),
|
|
8878
8878
|
class: El(["quickform-array-field", n.sectionStyleClass])
|
|
8879
8879
|
}, [
|
|
8880
8880
|
ie(" Array header "),
|
|
@@ -8935,7 +8935,7 @@ function hx(i, e, t, n, r, o) {
|
|
|
8935
8935
|
onClick: (c) => n.toggleItem(l)
|
|
8936
8936
|
}, [
|
|
8937
8937
|
be("div", lx, [
|
|
8938
|
-
ee(
|
|
8938
|
+
ee(ft, {
|
|
8939
8939
|
name: n.isItemExpanded(l) ? "expand_more" : "chevron_right",
|
|
8940
8940
|
size: "18px",
|
|
8941
8941
|
class: "quickform-array-item-expand-icon"
|
|
@@ -9091,7 +9091,7 @@ function hx(i, e, t, n, r, o) {
|
|
|
9091
9091
|
"div",
|
|
9092
9092
|
{
|
|
9093
9093
|
key: 1,
|
|
9094
|
-
style:
|
|
9094
|
+
style: dt({ textAlign: n.isRightPosition ? "right" : "left" })
|
|
9095
9095
|
},
|
|
9096
9096
|
[
|
|
9097
9097
|
ee(n.QBtn, ot(n.quickformsFeatures.addButton, {
|
|
@@ -9134,7 +9134,7 @@ function dx(i) {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
return i;
|
|
9136
9136
|
}
|
|
9137
|
-
function
|
|
9137
|
+
function _2(i) {
|
|
9138
9138
|
return i === null ? "null" : i === void 0 ? "" : String(i);
|
|
9139
9139
|
}
|
|
9140
9140
|
const fx = /* @__PURE__ */ _t({
|
|
@@ -9270,7 +9270,7 @@ function Sx(i, e, t, n, r, o) {
|
|
|
9270
9270
|
"div",
|
|
9271
9271
|
{
|
|
9272
9272
|
class: "quickform-keyvalue-field",
|
|
9273
|
-
style:
|
|
9273
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
9274
9274
|
},
|
|
9275
9275
|
[
|
|
9276
9276
|
ie(" Label with optional top-right button "),
|
|
@@ -9278,7 +9278,7 @@ function Sx(i, e, t, n, r, o) {
|
|
|
9278
9278
|
"div",
|
|
9279
9279
|
{
|
|
9280
9280
|
key: 0,
|
|
9281
|
-
style:
|
|
9281
|
+
style: dt({
|
|
9282
9282
|
display: "flex",
|
|
9283
9283
|
alignItems: "center",
|
|
9284
9284
|
justifyContent: n.isTopPosition && n.isRightPosition ? "space-between" : "flex-start",
|
|
@@ -9404,7 +9404,7 @@ function Sx(i, e, t, n, r, o) {
|
|
|
9404
9404
|
"div",
|
|
9405
9405
|
{
|
|
9406
9406
|
key: 1,
|
|
9407
|
-
style:
|
|
9407
|
+
style: dt({
|
|
9408
9408
|
textAlign: n.isRightPosition ? "right" : n.isCenterPosition ? "center" : "left",
|
|
9409
9409
|
marginTop: n.pairs.length ? "0.5rem" : "0"
|
|
9410
9410
|
})
|
|
@@ -9633,10 +9633,10 @@ class He {
|
|
|
9633
9633
|
static of(e) {
|
|
9634
9634
|
if (e.length == 0)
|
|
9635
9635
|
throw new RangeError("A document must have at least one line");
|
|
9636
|
-
return e.length == 1 && !e[0] ? He.empty : e.length <= 32 ? new
|
|
9636
|
+
return e.length == 1 && !e[0] ? He.empty : e.length <= 32 ? new yt(e) : zi.from(yt.split(e, []));
|
|
9637
9637
|
}
|
|
9638
9638
|
}
|
|
9639
|
-
class
|
|
9639
|
+
class yt extends He {
|
|
9640
9640
|
constructor(e, t = Tx(e)) {
|
|
9641
9641
|
super(), this.text = e, this.length = t;
|
|
9642
9642
|
}
|
|
@@ -9655,24 +9655,24 @@ class vt extends He {
|
|
|
9655
9655
|
}
|
|
9656
9656
|
}
|
|
9657
9657
|
decompose(e, t, n, r) {
|
|
9658
|
-
let o = e <= 0 && t >= this.length ? this : new
|
|
9658
|
+
let o = e <= 0 && t >= this.length ? this : new yt(dd(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
9659
9659
|
if (r & 1) {
|
|
9660
9660
|
let s = n.pop(), l = zs(o.text, s.text.slice(), 0, o.length);
|
|
9661
9661
|
if (l.length <= 32)
|
|
9662
|
-
n.push(new
|
|
9662
|
+
n.push(new yt(l, s.length + o.length));
|
|
9663
9663
|
else {
|
|
9664
9664
|
let a = l.length >> 1;
|
|
9665
|
-
n.push(new
|
|
9665
|
+
n.push(new yt(l.slice(0, a)), new yt(l.slice(a)));
|
|
9666
9666
|
}
|
|
9667
9667
|
} else
|
|
9668
9668
|
n.push(o);
|
|
9669
9669
|
}
|
|
9670
9670
|
replace(e, t, n) {
|
|
9671
|
-
if (!(n instanceof
|
|
9671
|
+
if (!(n instanceof yt))
|
|
9672
9672
|
return super.replace(e, t, n);
|
|
9673
9673
|
[e, t] = Nr(this, e, t);
|
|
9674
9674
|
let r = zs(this.text, zs(n.text, dd(this.text, 0, e)), t), o = this.length + n.length - (t - e);
|
|
9675
|
-
return r.length <= 32 ? new
|
|
9675
|
+
return r.length <= 32 ? new yt(r, o) : zi.from(yt.split(r, []), o);
|
|
9676
9676
|
}
|
|
9677
9677
|
sliceString(e, t = this.length, n = `
|
|
9678
9678
|
`) {
|
|
@@ -9694,8 +9694,8 @@ class vt extends He {
|
|
|
9694
9694
|
static split(e, t) {
|
|
9695
9695
|
let n = [], r = -1;
|
|
9696
9696
|
for (let o of e)
|
|
9697
|
-
n.push(o), r += o.length + 1, n.length == 32 && (t.push(new
|
|
9698
|
-
return r > -1 && t.push(new
|
|
9697
|
+
n.push(o), r += o.length + 1, n.length == 32 && (t.push(new yt(n, r)), n = [], r = -1);
|
|
9698
|
+
return r > -1 && t.push(new yt(n, r)), t;
|
|
9699
9699
|
}
|
|
9700
9700
|
}
|
|
9701
9701
|
class zi extends He {
|
|
@@ -9773,7 +9773,7 @@ class zi extends He {
|
|
|
9773
9773
|
let f = [];
|
|
9774
9774
|
for (let m of e)
|
|
9775
9775
|
m.flatten(f);
|
|
9776
|
-
return new
|
|
9776
|
+
return new yt(f, t);
|
|
9777
9777
|
}
|
|
9778
9778
|
let r = Math.max(
|
|
9779
9779
|
32,
|
|
@@ -9785,7 +9785,7 @@ class zi extends He {
|
|
|
9785
9785
|
if (f.lines > o && f instanceof zi)
|
|
9786
9786
|
for (let p of f.children)
|
|
9787
9787
|
h(p);
|
|
9788
|
-
else f.lines > s && (a > s || !a) ? (d(), l.push(f)) : f instanceof
|
|
9788
|
+
else f.lines > s && (a > s || !a) ? (d(), l.push(f)) : f instanceof yt && a && (m = c[c.length - 1]) instanceof yt && f.lines + m.lines <= 32 ? (a += f.lines, u += f.length + 1, c[c.length - 1] = new yt(m.text.concat(f.text), m.length + 1 + f.length)) : (a + f.lines > r && d(), a += f.lines, u += f.length + 1, c.push(f));
|
|
9789
9789
|
}
|
|
9790
9790
|
function d() {
|
|
9791
9791
|
a != 0 && (l.push(c.length == 1 ? c[0] : zi.from(c, u)), u = -1, a = c.length = 0);
|
|
@@ -9795,7 +9795,7 @@ class zi extends He {
|
|
|
9795
9795
|
return d(), l.length == 1 ? l[0] : new zi(l, t);
|
|
9796
9796
|
}
|
|
9797
9797
|
}
|
|
9798
|
-
He.empty = /* @__PURE__ */ new
|
|
9798
|
+
He.empty = /* @__PURE__ */ new yt([""], 0);
|
|
9799
9799
|
function Tx(i) {
|
|
9800
9800
|
let e = -1;
|
|
9801
9801
|
for (let t of i)
|
|
@@ -9814,11 +9814,11 @@ function dd(i, e, t) {
|
|
|
9814
9814
|
}
|
|
9815
9815
|
class go {
|
|
9816
9816
|
constructor(e, t = 1) {
|
|
9817
|
-
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof
|
|
9817
|
+
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof yt ? e.text.length : e.children.length) << 1];
|
|
9818
9818
|
}
|
|
9819
9819
|
nextInner(e, t) {
|
|
9820
9820
|
for (this.done = this.lineBreak = !1; ; ) {
|
|
9821
|
-
let n = this.nodes.length - 1, r = this.nodes[n], o = this.offsets[n], s = o >> 1, l = r instanceof
|
|
9821
|
+
let n = this.nodes.length - 1, r = this.nodes[n], o = this.offsets[n], s = o >> 1, l = r instanceof yt ? r.text.length : r.children.length;
|
|
9822
9822
|
if (s == (t > 0 ? l : 0)) {
|
|
9823
9823
|
if (n == 0)
|
|
9824
9824
|
return this.done = !0, this.value = "", this;
|
|
@@ -9828,14 +9828,14 @@ class go {
|
|
|
9828
9828
|
return this.lineBreak = !0, this.value = `
|
|
9829
9829
|
`, this;
|
|
9830
9830
|
e--;
|
|
9831
|
-
} else if (r instanceof
|
|
9831
|
+
} else if (r instanceof yt) {
|
|
9832
9832
|
let a = r.text[s + (t < 0 ? -1 : 0)];
|
|
9833
9833
|
if (this.offsets[n] += t, a.length > Math.max(0, e))
|
|
9834
9834
|
return this.value = e == 0 ? a : t > 0 ? a.slice(e) : a.slice(0, a.length - e), this;
|
|
9835
9835
|
e -= a.length;
|
|
9836
9836
|
} else {
|
|
9837
9837
|
let a = r.children[s + (t < 0 ? -1 : 0)];
|
|
9838
|
-
e > a.length ? (e -= a.length, this.offsets[n] += t) : (t < 0 && this.offsets[n]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof
|
|
9838
|
+
e > a.length ? (e -= a.length, this.offsets[n] += t) : (t < 0 && this.offsets[n]--, this.nodes.push(a), this.offsets.push(t > 0 ? 1 : (a instanceof yt ? a.text.length : a.children.length) << 1));
|
|
9839
9839
|
}
|
|
9840
9840
|
}
|
|
9841
9841
|
}
|
|
@@ -13340,21 +13340,21 @@ function Qs(i, e, t, n = 0) {
|
|
|
13340
13340
|
let r = t.length - 1;
|
|
13341
13341
|
r >= 0 && t[r] + n >= i ? t[r] = Math.max(t[r], e) : t.push(i, e);
|
|
13342
13342
|
}
|
|
13343
|
-
class
|
|
13343
|
+
class xt extends Ye {
|
|
13344
13344
|
constructor() {
|
|
13345
13345
|
super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
|
|
13346
13346
|
}
|
|
13347
13347
|
// Consumes source
|
|
13348
13348
|
merge(e, t, n, r, o, s) {
|
|
13349
13349
|
if (n) {
|
|
13350
|
-
if (!(n instanceof
|
|
13350
|
+
if (!(n instanceof xt))
|
|
13351
13351
|
return !1;
|
|
13352
13352
|
this.dom || n.transferDOM(this);
|
|
13353
13353
|
}
|
|
13354
13354
|
return r && this.setDeco(n ? n.attrs : null), Kg(this, e, t, n ? n.children.slice() : [], o, s), !0;
|
|
13355
13355
|
}
|
|
13356
13356
|
split(e) {
|
|
13357
|
-
let t = new
|
|
13357
|
+
let t = new xt();
|
|
13358
13358
|
if (t.breakAfter = this.breakAfter, this.length == 0)
|
|
13359
13359
|
return t;
|
|
13360
13360
|
let { i: n, off: r } = this.childPos(e);
|
|
@@ -13426,7 +13426,7 @@ class bt extends Ye {
|
|
|
13426
13426
|
return n;
|
|
13427
13427
|
}
|
|
13428
13428
|
become(e) {
|
|
13429
|
-
return e instanceof
|
|
13429
|
+
return e instanceof xt && this.children.length == 0 && e.children.length == 0 && dl(this.attrs, e.attrs) && this.breakAfter == e.breakAfter;
|
|
13430
13430
|
}
|
|
13431
13431
|
covers() {
|
|
13432
13432
|
return !0;
|
|
@@ -13435,7 +13435,7 @@ class bt extends Ye {
|
|
|
13435
13435
|
for (let n = 0, r = 0; n < e.children.length; n++) {
|
|
13436
13436
|
let o = e.children[n], s = r + o.length;
|
|
13437
13437
|
if (s >= t) {
|
|
13438
|
-
if (o instanceof
|
|
13438
|
+
if (o instanceof xt)
|
|
13439
13439
|
return o;
|
|
13440
13440
|
if (s > t)
|
|
13441
13441
|
break;
|
|
@@ -13535,7 +13535,7 @@ class yo {
|
|
|
13535
13535
|
return !(e.breakAfter || e instanceof dn && e.deco.endSide < 0);
|
|
13536
13536
|
}
|
|
13537
13537
|
getLine() {
|
|
13538
|
-
return this.curLine || (this.content.push(this.curLine = new
|
|
13538
|
+
return this.curLine || (this.content.push(this.curLine = new xt()), this.atCursorPos = !0), this.curLine;
|
|
13539
13539
|
}
|
|
13540
13540
|
flushBuffer(e = this.bufferMarks) {
|
|
13541
13541
|
this.pendingBuffer && (this.curLine.append(ps(new zr(-1), e), e.length), this.pendingBuffer = 0);
|
|
@@ -13933,7 +13933,7 @@ const Sr = /* @__PURE__ */ fe.define({
|
|
|
13933
13933
|
});
|
|
13934
13934
|
}
|
|
13935
13935
|
});
|
|
13936
|
-
class
|
|
13936
|
+
class mt {
|
|
13937
13937
|
constructor(e, t, n, r, o) {
|
|
13938
13938
|
this.id = e, this.create = t, this.domEventHandlers = n, this.domEventObservers = r, this.baseExtensions = o(this), this.extension = this.baseExtensions.concat(Sr.of({ plugin: this, arg: void 0 }));
|
|
13939
13939
|
}
|
|
@@ -13949,7 +13949,7 @@ class ft {
|
|
|
13949
13949
|
*/
|
|
13950
13950
|
static define(e, t) {
|
|
13951
13951
|
const { eventHandlers: n, eventObservers: r, provide: o, decorations: s } = t || {};
|
|
13952
|
-
return new
|
|
13952
|
+
return new mt(pk++, e, n, r, (l) => {
|
|
13953
13953
|
let a = [];
|
|
13954
13954
|
return s && a.push(_o.of((u) => {
|
|
13955
13955
|
let c = u.plugin(l);
|
|
@@ -13962,7 +13962,7 @@ class ft {
|
|
|
13962
13962
|
editor view as argument.
|
|
13963
13963
|
*/
|
|
13964
13964
|
static fromClass(e, t) {
|
|
13965
|
-
return
|
|
13965
|
+
return mt.define((n, r) => new e(n, r), t);
|
|
13966
13966
|
}
|
|
13967
13967
|
}
|
|
13968
13968
|
class _a {
|
|
@@ -14154,7 +14154,7 @@ class Od extends Ye {
|
|
|
14154
14154
|
return this.view.state.doc.length;
|
|
14155
14155
|
}
|
|
14156
14156
|
constructor(e) {
|
|
14157
|
-
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = ke.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new
|
|
14157
|
+
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = ke.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new xt()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new Ci(0, 0, 0, e.state.doc.length)], 0, null);
|
|
14158
14158
|
}
|
|
14159
14159
|
// Update the document view to a given state.
|
|
14160
14160
|
update(e) {
|
|
@@ -14222,7 +14222,7 @@ class Od extends Ye {
|
|
|
14222
14222
|
t.flags |= 8;
|
|
14223
14223
|
for (let { deco: r } of e.marks)
|
|
14224
14224
|
t = new gn(r, [t], t.length);
|
|
14225
|
-
let n = new
|
|
14225
|
+
let n = new xt();
|
|
14226
14226
|
return n.append(t, 0), n;
|
|
14227
14227
|
}
|
|
14228
14228
|
fixCompositionDOM(e) {
|
|
@@ -14289,7 +14289,7 @@ class Od extends Ye {
|
|
|
14289
14289
|
let { view: e } = this, t = e.state.selection.main, n = Po(e.root), { anchorNode: r, anchorOffset: o } = e.observer.selectionRange;
|
|
14290
14290
|
if (!n || !t.empty || !t.assoc || !n.modify)
|
|
14291
14291
|
return;
|
|
14292
|
-
let s =
|
|
14292
|
+
let s = xt.find(this, t.head);
|
|
14293
14293
|
if (!s)
|
|
14294
14294
|
return;
|
|
14295
14295
|
let l = s.posAtStart;
|
|
@@ -14311,11 +14311,11 @@ class Od extends Ye {
|
|
|
14311
14311
|
return e;
|
|
14312
14312
|
for (let r = e.offset; !n && r < t.childNodes.length; r++) {
|
|
14313
14313
|
let o = Ye.get(t.childNodes[r]);
|
|
14314
|
-
o instanceof
|
|
14314
|
+
o instanceof xt && (n = o.domAtPos(0));
|
|
14315
14315
|
}
|
|
14316
14316
|
for (let r = e.offset - 1; !n && r >= 0; r--) {
|
|
14317
14317
|
let o = Ye.get(t.childNodes[r]);
|
|
14318
|
-
o instanceof
|
|
14318
|
+
o instanceof xt && (n = o.domAtPos(o.length));
|
|
14319
14319
|
}
|
|
14320
14320
|
return n ? new Wt(n.node, n.offset, !0) : e;
|
|
14321
14321
|
}
|
|
@@ -14338,7 +14338,7 @@ class Od extends Ye {
|
|
|
14338
14338
|
let { i: t, off: n } = this.childCursor().findPos(e, -1);
|
|
14339
14339
|
for (; t < this.children.length - 1; ) {
|
|
14340
14340
|
let r = this.children[t];
|
|
14341
|
-
if (n < r.length || r instanceof
|
|
14341
|
+
if (n < r.length || r instanceof xt)
|
|
14342
14342
|
break;
|
|
14343
14343
|
t++, n = 0;
|
|
14344
14344
|
}
|
|
@@ -14350,7 +14350,7 @@ class Od extends Ye {
|
|
|
14350
14350
|
let l = this.children[s], a = o - l.breakAfter, u = a - l.length;
|
|
14351
14351
|
if (a < e)
|
|
14352
14352
|
break;
|
|
14353
|
-
if (u <= e && (u < e || l.covers(-1)) && (a > e || l.covers(1)) && (!n || l instanceof
|
|
14353
|
+
if (u <= e && (u < e || l.covers(-1)) && (a > e || l.covers(1)) && (!n || l instanceof xt && !(n instanceof xt && t >= 0)))
|
|
14354
14354
|
n = l, r = u;
|
|
14355
14355
|
else if (n && u == e && a == e && l instanceof dn && Math.abs(t) < 2) {
|
|
14356
14356
|
if (l.deco.startSide < 0)
|
|
@@ -14363,7 +14363,7 @@ class Od extends Ye {
|
|
|
14363
14363
|
}
|
|
14364
14364
|
coordsForChar(e) {
|
|
14365
14365
|
let { i: t, off: n } = this.childPos(e, 1), r = this.children[t];
|
|
14366
|
-
if (!(r instanceof
|
|
14366
|
+
if (!(r instanceof xt))
|
|
14367
14367
|
return null;
|
|
14368
14368
|
for (; r.children.length; ) {
|
|
14369
14369
|
let { i: l, off: a } = r.childPos(n, 1);
|
|
@@ -14414,7 +14414,7 @@ class Od extends Ye {
|
|
|
14414
14414
|
}
|
|
14415
14415
|
measureTextSize() {
|
|
14416
14416
|
for (let o of this.children)
|
|
14417
|
-
if (o instanceof
|
|
14417
|
+
if (o instanceof xt) {
|
|
14418
14418
|
let s = o.measureTextSize();
|
|
14419
14419
|
if (s)
|
|
14420
14420
|
return s;
|
|
@@ -14536,7 +14536,7 @@ function yk(i, e, t) {
|
|
|
14536
14536
|
if (d instanceof gn)
|
|
14537
14537
|
c.push({ node: h, deco: d.mark });
|
|
14538
14538
|
else {
|
|
14539
|
-
if (d instanceof
|
|
14539
|
+
if (d instanceof xt || h.nodeName == "DIV" && h.parentNode == i.contentDOM)
|
|
14540
14540
|
return { range: u, text: r, marks: c, line: h };
|
|
14541
14541
|
if (h != i.contentDOM)
|
|
14542
14542
|
c.push({ node: h, deco: new Jo({
|
|
@@ -14699,7 +14699,7 @@ function yp(i, e, t, n = -1) {
|
|
|
14699
14699
|
k && (!i.contentDOM.contains(k) || ue.safari && Ok(k, S, c) || ue.chrome && Tk(k, S, c)) && (k = void 0), k && (S = Math.min(Ji(k), S));
|
|
14700
14700
|
}
|
|
14701
14701
|
if (!k || !i.docView.dom.contains(k)) {
|
|
14702
|
-
let b =
|
|
14702
|
+
let b = xt.find(i.docView, f);
|
|
14703
14703
|
if (!b)
|
|
14704
14704
|
return d > a.top + a.height / 2 ? a.to : a.from;
|
|
14705
14705
|
({ node: k, offset: S } = Fu(b.dom, c, h));
|
|
@@ -15370,13 +15370,13 @@ function Ed(i, e, t, n) {
|
|
|
15370
15370
|
if (n == 2)
|
|
15371
15371
|
return Ck(i.state, e, t);
|
|
15372
15372
|
{
|
|
15373
|
-
let r =
|
|
15373
|
+
let r = xt.find(i.docView, e), o = i.state.doc.lineAt(r ? r.posAtEnd : e), s = r ? r.posAtStart : o.from, l = r ? r.posAtEnd : o.to;
|
|
15374
15374
|
return l < i.state.doc.length && l == o.to && l++, K.range(s, l);
|
|
15375
15375
|
}
|
|
15376
15376
|
}
|
|
15377
15377
|
let Ld = (i, e, t) => e >= t.top && e <= t.bottom && i >= t.left && i <= t.right;
|
|
15378
15378
|
function Gk(i, e, t, n) {
|
|
15379
|
-
let r =
|
|
15379
|
+
let r = xt.find(i.docView, e);
|
|
15380
15380
|
if (!r)
|
|
15381
15381
|
return 1;
|
|
15382
15382
|
let o = e - r.posAtStart;
|
|
@@ -17775,7 +17775,7 @@ class ce {
|
|
|
17775
17775
|
its parent nodes is scrolled.
|
|
17776
17776
|
*/
|
|
17777
17777
|
static domEventHandlers(e) {
|
|
17778
|
-
return
|
|
17778
|
+
return mt.define(() => ({}), { eventHandlers: e });
|
|
17779
17779
|
}
|
|
17780
17780
|
/**
|
|
17781
17781
|
Create an extension that registers DOM event observers. Contrary
|
|
@@ -17786,7 +17786,7 @@ class ce {
|
|
|
17786
17786
|
call `preventDefault`.
|
|
17787
17787
|
*/
|
|
17788
17788
|
static domEventObservers(e) {
|
|
17789
|
-
return
|
|
17789
|
+
return mt.define(() => ({}), { eventObservers: e });
|
|
17790
17790
|
}
|
|
17791
17791
|
/**
|
|
17792
17792
|
Create a theme extension. The first argument can be a
|
|
@@ -18125,7 +18125,7 @@ class Tw {
|
|
|
18125
18125
|
const Ks = /* @__PURE__ */ fe.define();
|
|
18126
18126
|
function Vp(i) {
|
|
18127
18127
|
return [
|
|
18128
|
-
|
|
18128
|
+
mt.define((e) => new Tw(e, i)),
|
|
18129
18129
|
Ks.of(i)
|
|
18130
18130
|
];
|
|
18131
18131
|
}
|
|
@@ -18213,7 +18213,7 @@ const Pw = /* @__PURE__ */ Vp({
|
|
|
18213
18213
|
update(i, e) {
|
|
18214
18214
|
return i != null && (i = e.changes.mapPos(i)), e.effects.reduce((t, n) => n.is(Np) ? n.value : t, i);
|
|
18215
18215
|
}
|
|
18216
|
-
}), Bw = /* @__PURE__ */
|
|
18216
|
+
}), Bw = /* @__PURE__ */ mt.fromClass(class {
|
|
18217
18217
|
constructor(i) {
|
|
18218
18218
|
this.view = i, this.cursor = null, this.measureReq = { read: this.readPos.bind(this), write: this.drawCursor.bind(this) };
|
|
18219
18219
|
}
|
|
@@ -18400,7 +18400,7 @@ function Nw(i = {}) {
|
|
|
18400
18400
|
}
|
|
18401
18401
|
let nf = null;
|
|
18402
18402
|
function Hw() {
|
|
18403
|
-
return nf || (nf =
|
|
18403
|
+
return nf || (nf = mt.fromClass(class {
|
|
18404
18404
|
constructor(i) {
|
|
18405
18405
|
this.view = i, this.decorations = ke.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(i.state.facet(Ys)), this.decorations = this.decorator.createDeco(i);
|
|
18406
18406
|
}
|
|
@@ -18468,7 +18468,7 @@ class Qw extends yn {
|
|
|
18468
18468
|
function Uw() {
|
|
18469
18469
|
return Yw;
|
|
18470
18470
|
}
|
|
18471
|
-
const Kw = /* @__PURE__ */ ke.line({ class: "cm-activeLine" }), Yw = /* @__PURE__ */
|
|
18471
|
+
const Kw = /* @__PURE__ */ ke.line({ class: "cm-activeLine" }), Yw = /* @__PURE__ */ mt.fromClass(class {
|
|
18472
18472
|
constructor(i) {
|
|
18473
18473
|
this.decorations = this.getDeco(i);
|
|
18474
18474
|
}
|
|
@@ -18506,7 +18506,7 @@ class Gw extends yn {
|
|
|
18506
18506
|
}
|
|
18507
18507
|
}
|
|
18508
18508
|
function Jw(i) {
|
|
18509
|
-
let e =
|
|
18509
|
+
let e = mt.fromClass(class {
|
|
18510
18510
|
constructor(t) {
|
|
18511
18511
|
this.view = t, this.placeholder = i ? ke.set([ke.widget({ widget: new Gw(i), side: 1 }).range(0)]) : ke.none;
|
|
18512
18512
|
}
|
|
@@ -18579,7 +18579,7 @@ const tS = {
|
|
|
18579
18579
|
Meta: [91, (i) => !!i.metaKey]
|
|
18580
18580
|
}, iS = { style: "cursor: crosshair" };
|
|
18581
18581
|
function nS(i = {}) {
|
|
18582
|
-
let [e, t] = tS[i.key || "Alt"], n =
|
|
18582
|
+
let [e, t] = tS[i.key || "Alt"], n = mt.fromClass(class {
|
|
18583
18583
|
constructor(r) {
|
|
18584
18584
|
this.view = r, this.isDown = !1;
|
|
18585
18585
|
}
|
|
@@ -18656,7 +18656,7 @@ const Va = /* @__PURE__ */ fe.define({
|
|
|
18656
18656
|
tooltipSpace: ((n = i.find((r) => r.tooltipSpace)) === null || n === void 0 ? void 0 : n.tooltipSpace) || rS
|
|
18657
18657
|
};
|
|
18658
18658
|
}
|
|
18659
|
-
}), of = /* @__PURE__ */ new WeakMap(), zc = /* @__PURE__ */
|
|
18659
|
+
}), of = /* @__PURE__ */ new WeakMap(), zc = /* @__PURE__ */ mt.fromClass(class {
|
|
18660
18660
|
constructor(i) {
|
|
18661
18661
|
this.view = i, this.above = [], this.inView = !0, this.madeAbsolute = !1, this.lastTransaction = 0, this.measureTimeout = -1;
|
|
18662
18662
|
let e = i.state.facet(Va);
|
|
@@ -19051,7 +19051,7 @@ function hS(i, e = {}) {
|
|
|
19051
19051
|
active: n,
|
|
19052
19052
|
extension: [
|
|
19053
19053
|
n,
|
|
19054
|
-
|
|
19054
|
+
mt.define((r) => new aS(
|
|
19055
19055
|
r,
|
|
19056
19056
|
i,
|
|
19057
19057
|
n,
|
|
@@ -19082,7 +19082,7 @@ function Ro(i, e) {
|
|
|
19082
19082
|
let t = i.plugin(jp), n = t ? t.specs.indexOf(e) : -1;
|
|
19083
19083
|
return n > -1 ? t.panels[n] : null;
|
|
19084
19084
|
}
|
|
19085
|
-
const jp = /* @__PURE__ */
|
|
19085
|
+
const jp = /* @__PURE__ */ mt.fromClass(class {
|
|
19086
19086
|
constructor(i) {
|
|
19087
19087
|
this.input = i.state.facet(Eo), this.specs = this.input.filter((t) => t), this.panels = this.specs.map((t) => t(i));
|
|
19088
19088
|
let e = i.state.facet(lf);
|
|
@@ -19214,7 +19214,7 @@ function Qp(i) {
|
|
|
19214
19214
|
gS
|
|
19215
19215
|
];
|
|
19216
19216
|
}
|
|
19217
|
-
const gS = /* @__PURE__ */
|
|
19217
|
+
const gS = /* @__PURE__ */ mt.fromClass(class {
|
|
19218
19218
|
constructor(i) {
|
|
19219
19219
|
this.view = i, this.domAfter = null, this.prevViewport = i.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters cm-gutters-before", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = i.state.facet(xo).map((e) => new hf(i, e)), this.fixed = !i.state.facet(uf);
|
|
19220
19220
|
for (let e of this.gutters)
|
|
@@ -19694,7 +19694,7 @@ var Tt;
|
|
|
19694
19694
|
(function(i) {
|
|
19695
19695
|
i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
19696
19696
|
})(Tt || (Tt = {}));
|
|
19697
|
-
class
|
|
19697
|
+
class kt {
|
|
19698
19698
|
/**
|
|
19699
19699
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
19700
19700
|
*/
|
|
@@ -19827,7 +19827,7 @@ class xt {
|
|
|
19827
19827
|
[`NodeType.none`](#common.NodeType^none).
|
|
19828
19828
|
*/
|
|
19829
19829
|
balance(e = {}) {
|
|
19830
|
-
return this.children.length <= 8 ? this : Uc(ui.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new
|
|
19830
|
+
return this.children.length <= 8 ? this : Uc(ui.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new kt(this.type, t, n, r, this.propValues), e.makeTree || ((t, n, r) => new kt(ui.none, t, n, r)));
|
|
19831
19831
|
}
|
|
19832
19832
|
/**
|
|
19833
19833
|
Build a tree from a postfix-ordered buffer of node information,
|
|
@@ -19837,7 +19837,7 @@ class xt {
|
|
|
19837
19837
|
return DS(e);
|
|
19838
19838
|
}
|
|
19839
19839
|
}
|
|
19840
|
-
|
|
19840
|
+
kt.empty = new kt(ui.none, [], [], 0);
|
|
19841
19841
|
class Wc {
|
|
19842
19842
|
constructor(e, t) {
|
|
19843
19843
|
this.buffer = e, this.index = t;
|
|
@@ -20238,7 +20238,7 @@ class Pn extends Jp {
|
|
|
20238
20238
|
let s = n.buffer[this.index + 1];
|
|
20239
20239
|
e.push(n.slice(r, o, s)), t.push(0);
|
|
20240
20240
|
}
|
|
20241
|
-
return new
|
|
20241
|
+
return new kt(this.type, e, t, this.to - this.from);
|
|
20242
20242
|
}
|
|
20243
20243
|
/**
|
|
20244
20244
|
@internal
|
|
@@ -20642,7 +20642,7 @@ function DS(i) {
|
|
|
20642
20642
|
function f(C, D) {
|
|
20643
20643
|
return (O, V, z) => {
|
|
20644
20644
|
let E = 0, B = O.length - 1, R, q;
|
|
20645
|
-
if (B >= 0 && (R = O[B]) instanceof
|
|
20645
|
+
if (B >= 0 && (R = O[B]) instanceof kt) {
|
|
20646
20646
|
if (!B && R.type == C && R.length == z)
|
|
20647
20647
|
return R;
|
|
20648
20648
|
(q = R.prop(_e.lookAhead)) && (E = V[B] + R.length + q);
|
|
@@ -20665,7 +20665,7 @@ function DS(i) {
|
|
|
20665
20665
|
let R = [_e.lookAhead, z];
|
|
20666
20666
|
B = B ? [R].concat(B) : [R];
|
|
20667
20667
|
}
|
|
20668
|
-
return new
|
|
20668
|
+
return new kt(C, D, O, V, B);
|
|
20669
20669
|
}
|
|
20670
20670
|
function g(C, D) {
|
|
20671
20671
|
let O = l.fork(), V = 0, z = 0, E = 0, B = O.end - r, R = { size: 0, start: 0, skip: 0 };
|
|
@@ -20709,7 +20709,7 @@ function DS(i) {
|
|
|
20709
20709
|
for (; l.pos > 0; )
|
|
20710
20710
|
h(i.start || 0, i.bufferStart || 0, S, y, -1, 0);
|
|
20711
20711
|
let b = (e = i.length) !== null && e !== void 0 ? e : S.length ? y[0] + S[0].length : 0;
|
|
20712
|
-
return new
|
|
20712
|
+
return new kt(a[i.topID], S.reverse(), y.reverse(), b);
|
|
20713
20713
|
}
|
|
20714
20714
|
const gf = /* @__PURE__ */ new WeakMap();
|
|
20715
20715
|
function Js(i, e) {
|
|
@@ -20719,7 +20719,7 @@ function Js(i, e) {
|
|
|
20719
20719
|
if (t == null) {
|
|
20720
20720
|
t = 1;
|
|
20721
20721
|
for (let n of e.children) {
|
|
20722
|
-
if (n.type != i || !(n instanceof
|
|
20722
|
+
if (n.type != i || !(n instanceof kt)) {
|
|
20723
20723
|
t = 1;
|
|
20724
20724
|
break;
|
|
20725
20725
|
}
|
|
@@ -21580,7 +21580,7 @@ class qi {
|
|
|
21580
21580
|
}
|
|
21581
21581
|
for (let a = 0; a < o.children.length; a++) {
|
|
21582
21582
|
let u = o.children[a];
|
|
21583
|
-
u instanceof
|
|
21583
|
+
u instanceof kt && r(u, o.positions[a] + s);
|
|
21584
21584
|
}
|
|
21585
21585
|
};
|
|
21586
21586
|
return r(Qt(e), 0), n;
|
|
@@ -21627,7 +21627,7 @@ class bl extends qi {
|
|
|
21627
21627
|
}
|
|
21628
21628
|
function Qt(i) {
|
|
21629
21629
|
let e = i.field(qi.state, !1);
|
|
21630
|
-
return e ? e.tree :
|
|
21630
|
+
return e ? e.tree : kt.empty;
|
|
21631
21631
|
}
|
|
21632
21632
|
class HS {
|
|
21633
21633
|
/**
|
|
@@ -21662,7 +21662,7 @@ class xl {
|
|
|
21662
21662
|
@internal
|
|
21663
21663
|
*/
|
|
21664
21664
|
static create(e, t, n) {
|
|
21665
|
-
return new xl(e, t, [],
|
|
21665
|
+
return new xl(e, t, [], kt.empty, 0, n, [], null);
|
|
21666
21666
|
}
|
|
21667
21667
|
startParse() {
|
|
21668
21668
|
return this.parser.startParse(new HS(this.state.doc), this.fragments);
|
|
@@ -21671,7 +21671,7 @@ class xl {
|
|
|
21671
21671
|
@internal
|
|
21672
21672
|
*/
|
|
21673
21673
|
work(e, t) {
|
|
21674
|
-
return t != null && t >= this.state.doc.length && (t = void 0), this.tree !=
|
|
21674
|
+
return t != null && t >= this.state.doc.length && (t = void 0), this.tree != kt.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
|
|
21675
21675
|
var n;
|
|
21676
21676
|
if (typeof e == "number") {
|
|
21677
21677
|
let r = Date.now() + e;
|
|
@@ -21720,7 +21720,7 @@ class xl {
|
|
|
21720
21720
|
let { fragments: n, tree: r, treeLen: o, viewport: s, skipped: l } = this;
|
|
21721
21721
|
if (this.takeTree(), !e.empty) {
|
|
21722
21722
|
let a = [];
|
|
21723
|
-
if (e.iterChangedRanges((u, c, h, d) => a.push({ fromA: u, toA: c, fromB: h, toB: d })), n = rr.applyChanges(n, a), r =
|
|
21723
|
+
if (e.iterChangedRanges((u, c, h, d) => a.push({ fromA: u, toA: c, fromB: h, toB: d })), n = rr.applyChanges(n, a), r = kt.empty, o = 0, s = { from: e.mapPos(s.from, -1), to: e.mapPos(s.to, 1) }, this.skipped.length) {
|
|
21724
21724
|
l = [];
|
|
21725
21725
|
for (let u of this.skipped) {
|
|
21726
21726
|
let c = e.mapPos(u.from, 1), h = e.mapPos(u.to, -1);
|
|
@@ -21780,7 +21780,7 @@ class xl {
|
|
|
21780
21780
|
a.tempSkipped.push(u);
|
|
21781
21781
|
e && (a.scheduleOn = a.scheduleOn ? Promise.all([a.scheduleOn, e]) : e);
|
|
21782
21782
|
}
|
|
21783
|
-
return this.parsedPos = s, new
|
|
21783
|
+
return this.parsedPos = s, new kt(ui.none, [], [], s - o);
|
|
21784
21784
|
},
|
|
21785
21785
|
stoppedAt: null,
|
|
21786
21786
|
stopAt() {
|
|
@@ -21853,7 +21853,7 @@ typeof requestIdleCallback < "u" && (iv = (i) => {
|
|
|
21853
21853
|
);
|
|
21854
21854
|
return () => e < 0 ? clearTimeout(t) : cancelIdleCallback(e);
|
|
21855
21855
|
});
|
|
21856
|
-
const Wa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null || ja === void 0) && ja.isInputPending) ? () => navigator.scheduling.isInputPending() : null, zS = /* @__PURE__ */
|
|
21856
|
+
const Wa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null || ja === void 0) && ja.isInputPending) ? () => navigator.scheduling.isInputPending() : null, zS = /* @__PURE__ */ mt.fromClass(class {
|
|
21857
21857
|
constructor(e) {
|
|
21858
21858
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
21859
21859
|
}
|
|
@@ -22383,7 +22383,7 @@ class Qa extends Xi {
|
|
|
22383
22383
|
}
|
|
22384
22384
|
}
|
|
22385
22385
|
function fC(i = {}) {
|
|
22386
|
-
let e = { ...dC, ...i }, t = new Qa(e, !0), n = new Qa(e, !1), r =
|
|
22386
|
+
let e = { ...dC, ...i }, t = new Qa(e, !0), n = new Qa(e, !1), r = mt.fromClass(class {
|
|
22387
22387
|
constructor(s) {
|
|
22388
22388
|
this.from = s.viewport.from, this.markers = this.buildMarkers(s);
|
|
22389
22389
|
}
|
|
@@ -22508,7 +22508,7 @@ class gC {
|
|
|
22508
22508
|
return n.finish();
|
|
22509
22509
|
}
|
|
22510
22510
|
}
|
|
22511
|
-
const pC = /* @__PURE__ */ dr.high(/* @__PURE__ */
|
|
22511
|
+
const pC = /* @__PURE__ */ dr.high(/* @__PURE__ */ mt.fromClass(gC, {
|
|
22512
22512
|
decorations: (i) => i.decorations
|
|
22513
22513
|
})), vC = /* @__PURE__ */ is.define([
|
|
22514
22514
|
{
|
|
@@ -23767,7 +23767,7 @@ function Lf(i, e, t, n) {
|
|
|
23767
23767
|
function $M(i, e, t, n) {
|
|
23768
23768
|
return i(e.sliceDoc(t, t + 1)) == lt.Word && i(e.sliceDoc(n - 1, n)) == lt.Word;
|
|
23769
23769
|
}
|
|
23770
|
-
const ZM = /* @__PURE__ */
|
|
23770
|
+
const ZM = /* @__PURE__ */ mt.fromClass(class {
|
|
23771
23771
|
constructor(i) {
|
|
23772
23772
|
this.decorations = this.getDeco(i);
|
|
23773
23773
|
}
|
|
@@ -24040,7 +24040,7 @@ class Ja {
|
|
|
24040
24040
|
this.query = e, this.panel = t;
|
|
24041
24041
|
}
|
|
24042
24042
|
}
|
|
24043
|
-
const aA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch" }), uA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), cA = /* @__PURE__ */
|
|
24043
|
+
const aA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch" }), uA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), cA = /* @__PURE__ */ mt.fromClass(class {
|
|
24044
24044
|
constructor(i) {
|
|
24045
24045
|
this.view = i, this.decorations = this.highlight(i.state.field(Bn));
|
|
24046
24046
|
}
|
|
@@ -25067,7 +25067,7 @@ class VA {
|
|
|
25067
25067
|
this.active = e, this.context = t, this.time = Date.now(), this.updates = [], this.done = void 0;
|
|
25068
25068
|
}
|
|
25069
25069
|
}
|
|
25070
|
-
const FA = 50, NA = 1e3, HA = /* @__PURE__ */
|
|
25070
|
+
const FA = 50, NA = 1e3, HA = /* @__PURE__ */ mt.fromClass(class {
|
|
25071
25071
|
constructor(i) {
|
|
25072
25072
|
this.view = i, this.debounceUpdate = -1, this.running = [], this.debounceAccept = -1, this.pendingStart = !1, this.composing = 0;
|
|
25073
25073
|
for (let e of i.state.field(si).active)
|
|
@@ -25683,7 +25683,7 @@ const lO = (i) => {
|
|
|
25683
25683
|
}, uO = [
|
|
25684
25684
|
{ key: "Mod-Shift-m", run: lO, preventDefault: !0 },
|
|
25685
25685
|
{ key: "F8", run: aO }
|
|
25686
|
-
], cO = /* @__PURE__ */
|
|
25686
|
+
], cO = /* @__PURE__ */ mt.fromClass(class {
|
|
25687
25687
|
constructor(i) {
|
|
25688
25688
|
this.view = i, this.timeout = -1, this.set = !0;
|
|
25689
25689
|
let { delay: e } = i.state.facet(Ki);
|
|
@@ -27017,7 +27017,7 @@ class LO {
|
|
|
27017
27017
|
let o = n.children[r], s = this.start[t] + n.positions[r];
|
|
27018
27018
|
if (s > e)
|
|
27019
27019
|
return this.nextStart = s, null;
|
|
27020
|
-
if (o instanceof
|
|
27020
|
+
if (o instanceof kt) {
|
|
27021
27021
|
if (s == e) {
|
|
27022
27022
|
if (s < this.safeFrom)
|
|
27023
27023
|
return null;
|
|
@@ -27208,10 +27208,10 @@ class VO {
|
|
|
27208
27208
|
let d = this.parser.nodeSet.types[h.type.id] == h.type ? o.getGoto(e.state, h.type.id) : -1;
|
|
27209
27209
|
if (d > -1 && h.length && (!u || (h.prop(_e.contextHash) || 0) == c))
|
|
27210
27210
|
return e.useNode(h, d), hi && console.log(s + this.stackID(e) + ` (via reuse of ${o.getName(h.type.id)})`), !0;
|
|
27211
|
-
if (!(h instanceof
|
|
27211
|
+
if (!(h instanceof kt) || h.children.length == 0 || h.positions[0] > 0)
|
|
27212
27212
|
break;
|
|
27213
27213
|
let f = h.children[0];
|
|
27214
|
-
if (f instanceof
|
|
27214
|
+
if (f instanceof kt && h.positions[0] == 0)
|
|
27215
27215
|
h = f;
|
|
27216
27216
|
else
|
|
27217
27217
|
break;
|
|
@@ -27271,7 +27271,7 @@ class VO {
|
|
|
27271
27271
|
}
|
|
27272
27272
|
// Convert the stack's buffer to a syntax tree.
|
|
27273
27273
|
stackToTree(e) {
|
|
27274
|
-
return e.close(),
|
|
27274
|
+
return e.close(), kt.build({
|
|
27275
27275
|
buffer: Bl.create(e),
|
|
27276
27276
|
nodeSet: this.parser.nodeSet,
|
|
27277
27277
|
topID: this.topTerm,
|
|
@@ -27932,7 +27932,7 @@ function dT(i, e, t, n, r, o) {
|
|
|
27932
27932
|
"div",
|
|
27933
27933
|
{
|
|
27934
27934
|
class: "quickform-json-field-wrapper",
|
|
27935
|
-
style:
|
|
27935
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
27936
27936
|
},
|
|
27937
27937
|
[
|
|
27938
27938
|
n.label ? (Z(), oe("div", oT, [
|
|
@@ -27978,7 +27978,7 @@ function dT(i, e, t, n, r, o) {
|
|
|
27978
27978
|
id: n.fieldId,
|
|
27979
27979
|
modelValue: n.code,
|
|
27980
27980
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => n.code = s),
|
|
27981
|
-
style:
|
|
27981
|
+
style: dt({ height: n.editorHeight }),
|
|
27982
27982
|
extensions: n.extensions,
|
|
27983
27983
|
disabled: t.disabled || t.readonly,
|
|
27984
27984
|
"indent-with-tab": n.indentWithTab,
|
|
@@ -28092,7 +28092,7 @@ function mT(i, e, t, n, r, o) {
|
|
|
28092
28092
|
return Z(), oe(
|
|
28093
28093
|
"div",
|
|
28094
28094
|
{
|
|
28095
|
-
style:
|
|
28095
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
28096
28096
|
},
|
|
28097
28097
|
[
|
|
28098
28098
|
ee(n.QSelect, ot({
|
|
@@ -28452,7 +28452,7 @@ const bT = ["left", "center", "right", "justify"], xT = Xe({
|
|
|
28452
28452
|
}
|
|
28453
28453
|
}) : (Gt(), te.routeData.hasRouterLink.value === !0 && Bt());
|
|
28454
28454
|
}
|
|
28455
|
-
function
|
|
28455
|
+
function gt(te) {
|
|
28456
28456
|
y.splice(y.indexOf(te), 1), b.value--, H(), V !== void 0 && te.routeData !== void 0 && (y.every((ve) => ve.routeData === void 0) === !0 && V(), Bt());
|
|
28457
28457
|
}
|
|
28458
28458
|
const yi = {
|
|
@@ -28461,7 +28461,7 @@ const bT = ["left", "center", "right", "justify"], xT = Xe({
|
|
|
28461
28461
|
hasFocus: C,
|
|
28462
28462
|
hasActiveTab: E,
|
|
28463
28463
|
registerTab: Rt,
|
|
28464
|
-
unregisterTab:
|
|
28464
|
+
unregisterTab: gt,
|
|
28465
28465
|
verifyRouteModel: Bt,
|
|
28466
28466
|
updateModel: N,
|
|
28467
28467
|
onKbdNavigate: re,
|
|
@@ -28490,7 +28490,7 @@ const bT = ["left", "center", "right", "justify"], xT = Xe({
|
|
|
28490
28490
|
class: q.value,
|
|
28491
28491
|
onScroll: v
|
|
28492
28492
|
}, Pt(e.default)),
|
|
28493
|
-
T(
|
|
28493
|
+
T(ft, {
|
|
28494
28494
|
class: "q-tabs__arrow q-tabs__arrow--left absolute q-tab__icon" + (g.value === !0 ? "" : " q-tabs__arrow--faded"),
|
|
28495
28495
|
name: i.leftIcon || r.iconSet.tabs[i.vertical === !0 ? "up" : "left"],
|
|
28496
28496
|
onMousedownPassive: F,
|
|
@@ -28499,7 +28499,7 @@ const bT = ["left", "center", "right", "justify"], xT = Xe({
|
|
|
28499
28499
|
onMouseleavePassive: X,
|
|
28500
28500
|
onTouchendPassive: X
|
|
28501
28501
|
}),
|
|
28502
|
-
T(
|
|
28502
|
+
T(ft, {
|
|
28503
28503
|
class: "q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon" + (k.value === !0 ? "" : " q-tabs__arrow--faded"),
|
|
28504
28504
|
name: i.rightIcon || r.iconSet.tabs[i.vertical === !0 ? "down" : "right"],
|
|
28505
28505
|
onMousedownPassive: j,
|
|
@@ -28561,14 +28561,14 @@ function CT(i, e, t, n) {
|
|
|
28561
28561
|
]
|
|
28562
28562
|
});
|
|
28563
28563
|
i.icon !== void 0 && b.push(
|
|
28564
|
-
T(
|
|
28564
|
+
T(ft, {
|
|
28565
28565
|
class: "q-tab__icon",
|
|
28566
28566
|
name: i.icon
|
|
28567
28567
|
})
|
|
28568
28568
|
), i.label !== void 0 && b.push(
|
|
28569
28569
|
T("div", { class: "q-tab__label" }, i.label)
|
|
28570
28570
|
), i.alert !== !1 && b.push(
|
|
28571
|
-
i.alertIcon !== void 0 ? T(
|
|
28571
|
+
i.alertIcon !== void 0 ? T(ft, {
|
|
28572
28572
|
class: "q-tab__alert-icon",
|
|
28573
28573
|
color: i.alert !== !0 ? i.alert : void 0,
|
|
28574
28574
|
name: i.alertIcon
|
|
@@ -28834,7 +28834,7 @@ const MT = Xe({
|
|
|
28834
28834
|
}, get QTab() {
|
|
28835
28835
|
return MT;
|
|
28836
28836
|
}, get QIcon() {
|
|
28837
|
-
return
|
|
28837
|
+
return ft;
|
|
28838
28838
|
}, get QTooltip() {
|
|
28839
28839
|
return qr;
|
|
28840
28840
|
}, get FieldRenderer() {
|
|
@@ -28855,24 +28855,24 @@ const MT = Xe({
|
|
|
28855
28855
|
key: 0,
|
|
28856
28856
|
class: "text-caption text-grey-7",
|
|
28857
28857
|
style: { "margin-top": "0.25rem" }
|
|
28858
|
-
}, PT = { key: 0 }, _T = ["href"], BT = {
|
|
28858
|
+
}, PT = { key: 0 }, _T = ["href"], BT = {
|
|
28859
28859
|
key: 0,
|
|
28860
28860
|
class: "text-caption text-grey-7",
|
|
28861
28861
|
style: { "margin-top": "0.25rem", "padding-left": "12px" }
|
|
28862
|
-
},
|
|
28862
|
+
}, RT = { key: 0 }, ET = ["href"], LT = {
|
|
28863
28863
|
key: 4,
|
|
28864
28864
|
style: { color: "red", "font-size": "0.875rem", "margin-top": "0.5rem" }
|
|
28865
28865
|
};
|
|
28866
|
-
function
|
|
28866
|
+
function IT(i, e, t, n, r, o) {
|
|
28867
28867
|
return Z(), oe(
|
|
28868
28868
|
"div",
|
|
28869
28869
|
{
|
|
28870
|
-
style:
|
|
28870
|
+
style: dt({ marginBottom: n.isFlat ? void 0 : n.fieldGap })
|
|
28871
28871
|
},
|
|
28872
28872
|
[
|
|
28873
28873
|
ee(n.QCard, {
|
|
28874
28874
|
flat: "",
|
|
28875
|
-
bordered:
|
|
28875
|
+
bordered: !n.isFlat,
|
|
28876
28876
|
class: El({ "quickform-oneof-flat": n.isFlat })
|
|
28877
28877
|
}, {
|
|
28878
28878
|
default: ae(() => [
|
|
@@ -28960,37 +28960,49 @@ function FT(i, e, t, n, r, o) {
|
|
|
28960
28960
|
})
|
|
28961
28961
|
], 8, _T)) : ie("v-if", !0)
|
|
28962
28962
|
])) : ie("v-if", !0),
|
|
28963
|
-
be(
|
|
28964
|
-
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
28972
|
-
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
ie(" Fallback for non-object schemas "),
|
|
28982
|
-
(Z(), li(n.FieldRenderer, {
|
|
28983
|
-
key: `${n.selectedIndex}-fallback`,
|
|
28984
|
-
schema: n.activeSchema,
|
|
28985
|
-
path: t.path,
|
|
28963
|
+
be(
|
|
28964
|
+
"div",
|
|
28965
|
+
{
|
|
28966
|
+
style: dt(n.isFlat ? {} : {
|
|
28967
|
+
marginTop: "1rem",
|
|
28968
|
+
paddingTop: "1rem",
|
|
28969
|
+
borderTop: "1px solid #eee"
|
|
28970
|
+
})
|
|
28971
|
+
},
|
|
28972
|
+
[
|
|
28973
|
+
ie(" Render object properties directly to avoid nested expansion panel "),
|
|
28974
|
+
n.shouldRenderPropertiesInline ? (Z(!0), oe(
|
|
28975
|
+
St,
|
|
28976
|
+
{ key: 0 },
|
|
28977
|
+
hn(n.activeProperties, (s) => (Z(), li(n.FieldRenderer, {
|
|
28978
|
+
key: `${n.selectedIndex}-${s.key}`,
|
|
28979
|
+
schema: s.schema,
|
|
28980
|
+
path: s.path,
|
|
28986
28981
|
disabled: t.disabled,
|
|
28987
28982
|
readonly: t.readonly
|
|
28988
|
-
}, null, 8, ["schema", "path", "disabled", "readonly"]))
|
|
28989
|
-
|
|
28990
|
-
|
|
28991
|
-
|
|
28992
|
-
|
|
28993
|
-
|
|
28983
|
+
}, null, 8, ["schema", "path", "disabled", "readonly"]))),
|
|
28984
|
+
128
|
|
28985
|
+
/* KEYED_FRAGMENT */
|
|
28986
|
+
)) : n.activeSchema ? (Z(), oe(
|
|
28987
|
+
St,
|
|
28988
|
+
{ key: 1 },
|
|
28989
|
+
[
|
|
28990
|
+
ie(" Fallback for non-object schemas "),
|
|
28991
|
+
(Z(), li(n.FieldRenderer, {
|
|
28992
|
+
key: `${n.selectedIndex}-fallback`,
|
|
28993
|
+
schema: n.activeSchema,
|
|
28994
|
+
path: t.path,
|
|
28995
|
+
disabled: t.disabled,
|
|
28996
|
+
readonly: t.readonly
|
|
28997
|
+
}, null, 8, ["schema", "path", "disabled", "readonly"]))
|
|
28998
|
+
],
|
|
28999
|
+
2112
|
|
29000
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
29001
|
+
)) : ie("v-if", !0)
|
|
29002
|
+
],
|
|
29003
|
+
4
|
|
29004
|
+
/* STYLE */
|
|
29005
|
+
)
|
|
28994
29006
|
],
|
|
28995
29007
|
64
|
|
28996
29008
|
/* STABLE_FRAGMENT */
|
|
@@ -29018,10 +29030,10 @@ function FT(i, e, t, n, r, o) {
|
|
|
29018
29030
|
onFilter: n.filterFn
|
|
29019
29031
|
}, n.quasarProps), null, 16, ["modelValue", "options", "label", "disable", "use-input", "fill-input", "hide-selected"]),
|
|
29020
29032
|
ie(" Option description hint (always visible, outside QSelect) "),
|
|
29021
|
-
n.activeOptionDescription || n.activeOptionDocsUrl ? (Z(), oe("div",
|
|
29033
|
+
n.activeOptionDescription || n.activeOptionDocsUrl ? (Z(), oe("div", BT, [
|
|
29022
29034
|
n.activeOptionDescription ? (Z(), oe(
|
|
29023
29035
|
"span",
|
|
29024
|
-
|
|
29036
|
+
RT,
|
|
29025
29037
|
Se(n.activeOptionDescription),
|
|
29026
29038
|
1
|
|
29027
29039
|
/* TEXT */
|
|
@@ -29050,46 +29062,58 @@ function FT(i, e, t, n, r, o) {
|
|
|
29050
29062
|
_: 1
|
|
29051
29063
|
/* STABLE */
|
|
29052
29064
|
})
|
|
29053
|
-
], 8,
|
|
29065
|
+
], 8, ET)) : ie("v-if", !0)
|
|
29054
29066
|
])) : ie("v-if", !0),
|
|
29055
|
-
be(
|
|
29056
|
-
|
|
29057
|
-
|
|
29058
|
-
|
|
29059
|
-
|
|
29060
|
-
|
|
29061
|
-
|
|
29062
|
-
|
|
29063
|
-
|
|
29064
|
-
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29068
|
-
|
|
29069
|
-
|
|
29070
|
-
|
|
29071
|
-
|
|
29072
|
-
|
|
29073
|
-
ie(" Fallback for non-object schemas "),
|
|
29074
|
-
(Z(), li(n.FieldRenderer, {
|
|
29075
|
-
key: `${n.selectedIndex}-fallback`,
|
|
29076
|
-
schema: n.activeSchema,
|
|
29077
|
-
path: t.path,
|
|
29067
|
+
be(
|
|
29068
|
+
"div",
|
|
29069
|
+
{
|
|
29070
|
+
style: dt(n.isFlat ? {} : {
|
|
29071
|
+
marginTop: "1rem",
|
|
29072
|
+
paddingTop: "1rem",
|
|
29073
|
+
borderTop: "1px dashed #ddd"
|
|
29074
|
+
})
|
|
29075
|
+
},
|
|
29076
|
+
[
|
|
29077
|
+
ie(" Render object properties directly to avoid nested expansion panel "),
|
|
29078
|
+
n.shouldRenderPropertiesInline ? (Z(!0), oe(
|
|
29079
|
+
St,
|
|
29080
|
+
{ key: 0 },
|
|
29081
|
+
hn(n.activeProperties, (s) => (Z(), li(n.FieldRenderer, {
|
|
29082
|
+
key: `${n.selectedIndex}-${s.key}`,
|
|
29083
|
+
schema: s.schema,
|
|
29084
|
+
path: s.path,
|
|
29078
29085
|
disabled: t.disabled,
|
|
29079
29086
|
readonly: t.readonly
|
|
29080
|
-
}, null, 8, ["schema", "path", "disabled", "readonly"]))
|
|
29081
|
-
|
|
29082
|
-
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
29087
|
+
}, null, 8, ["schema", "path", "disabled", "readonly"]))),
|
|
29088
|
+
128
|
|
29089
|
+
/* KEYED_FRAGMENT */
|
|
29090
|
+
)) : n.activeSchema ? (Z(), oe(
|
|
29091
|
+
St,
|
|
29092
|
+
{ key: 1 },
|
|
29093
|
+
[
|
|
29094
|
+
ie(" Fallback for non-object schemas "),
|
|
29095
|
+
(Z(), li(n.FieldRenderer, {
|
|
29096
|
+
key: `${n.selectedIndex}-fallback`,
|
|
29097
|
+
schema: n.activeSchema,
|
|
29098
|
+
path: t.path,
|
|
29099
|
+
disabled: t.disabled,
|
|
29100
|
+
readonly: t.readonly
|
|
29101
|
+
}, null, 8, ["schema", "path", "disabled", "readonly"]))
|
|
29102
|
+
],
|
|
29103
|
+
2112
|
|
29104
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
29105
|
+
)) : ie("v-if", !0)
|
|
29106
|
+
],
|
|
29107
|
+
4
|
|
29108
|
+
/* STYLE */
|
|
29109
|
+
)
|
|
29086
29110
|
],
|
|
29087
29111
|
64
|
|
29088
29112
|
/* STABLE_FRAGMENT */
|
|
29089
29113
|
)),
|
|
29090
29114
|
n.errorMessage ? (Z(), oe(
|
|
29091
29115
|
"div",
|
|
29092
|
-
|
|
29116
|
+
LT,
|
|
29093
29117
|
Se(n.errorMessage),
|
|
29094
29118
|
1
|
|
29095
29119
|
/* TEXT */
|
|
@@ -29101,13 +29125,13 @@ function FT(i, e, t, n, r, o) {
|
|
|
29101
29125
|
]),
|
|
29102
29126
|
_: 1
|
|
29103
29127
|
/* STABLE */
|
|
29104
|
-
}, 8, ["class"])
|
|
29128
|
+
}, 8, ["bordered", "class"])
|
|
29105
29129
|
],
|
|
29106
29130
|
4
|
|
29107
29131
|
/* STYLE */
|
|
29108
29132
|
);
|
|
29109
29133
|
}
|
|
29110
|
-
const cm = /* @__PURE__ */ Kt(AT, [["render",
|
|
29134
|
+
const cm = /* @__PURE__ */ Kt(AT, [["render", IT], ["__scopeId", "data-v-157e455c"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarOneOfField.vue"]]), VT = /* @__PURE__ */ _t({
|
|
29111
29135
|
__name: "QuasarAllOfField",
|
|
29112
29136
|
props: {
|
|
29113
29137
|
schema: { type: Object, required: !0 },
|
|
@@ -29135,11 +29159,11 @@ const cm = /* @__PURE__ */ Kt(AT, [["render", FT], ["__scopeId", "data-v-157e455
|
|
|
29135
29159
|
return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
|
|
29136
29160
|
}
|
|
29137
29161
|
});
|
|
29138
|
-
function
|
|
29162
|
+
function FT(i, e, t, n, r, o) {
|
|
29139
29163
|
return Z(), oe(
|
|
29140
29164
|
"div",
|
|
29141
29165
|
{
|
|
29142
|
-
style:
|
|
29166
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
29143
29167
|
},
|
|
29144
29168
|
[
|
|
29145
29169
|
ee(n.FieldRenderer, {
|
|
@@ -29154,7 +29178,7 @@ function HT(i, e, t, n, r, o) {
|
|
|
29154
29178
|
/* STYLE */
|
|
29155
29179
|
);
|
|
29156
29180
|
}
|
|
29157
|
-
const
|
|
29181
|
+
const NT = /* @__PURE__ */ Kt(VT, [["render", FT], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarAllOfField.vue"]]), T0 = [
|
|
29158
29182
|
{ value: "==", label: "equals", symbol: "=", shortLabel: "equals", icon: "drag_handle", searchTerms: ["==", "=", "eq", "equal"], rightRequired: !0, rightType: "text" },
|
|
29159
29183
|
{ value: "!=", label: "not equals", symbol: "≠", shortLabel: "not equals", icon: "close", searchTerms: ["!=", "!", "neq", "not"], rightRequired: !0, rightType: "text" },
|
|
29160
29184
|
{ value: ">", label: "greater than", symbol: ">", shortLabel: "greater than", icon: "chevron_right", searchTerms: [">", "gt", "greater"], rightRequired: !0, rightType: "number" },
|
|
@@ -29172,12 +29196,12 @@ const zT = /* @__PURE__ */ Kt(NT, [["render", HT], ["__file", "/Users/zachsherbo
|
|
|
29172
29196
|
{ value: "isEmpty", label: "is empty", shortLabel: "is empty", icon: "radio_button_unchecked", searchTerms: ["empty", "blank", "null"], rightRequired: !1, description: "Empty string, null, or undefined" },
|
|
29173
29197
|
{ value: "isNotEmpty", label: "is not empty", shortLabel: "is not empty", icon: "radio_button_checked", searchTerms: ["not empty", "filled", "exists"], rightRequired: !1 }
|
|
29174
29198
|
];
|
|
29175
|
-
function
|
|
29199
|
+
function HT(i) {
|
|
29176
29200
|
return T0.find((e) => e.value === i);
|
|
29177
29201
|
}
|
|
29178
|
-
let
|
|
29202
|
+
let zT = 0;
|
|
29179
29203
|
function fi() {
|
|
29180
|
-
return `cond-${++
|
|
29204
|
+
return `cond-${++zT}-${Date.now()}`;
|
|
29181
29205
|
}
|
|
29182
29206
|
function hm(i, e = {}) {
|
|
29183
29207
|
return i.conditions.length === 0 ? !0 : i.conditions.length === 1 ? uc(i.conditions[0], e) : {
|
|
@@ -29187,9 +29211,9 @@ function hm(i, e = {}) {
|
|
|
29187
29211
|
function uc(i, e) {
|
|
29188
29212
|
return i.type === "group" ? i.conditions.length === 0 ? !0 : {
|
|
29189
29213
|
[i.logic]: i.conditions.map((t) => uc(t, e))
|
|
29190
|
-
} :
|
|
29214
|
+
} : jT(i, e);
|
|
29191
29215
|
}
|
|
29192
|
-
function
|
|
29216
|
+
function jT(i, e) {
|
|
29193
29217
|
const t = fo(i.left, e.useTemplateSyntax, { treatAsVar: !0 }), n = fo(i.right, e.useTemplateSyntax);
|
|
29194
29218
|
switch (i.operator) {
|
|
29195
29219
|
case "==":
|
|
@@ -29246,9 +29270,9 @@ function fo(i, e = !1, t = {}) {
|
|
|
29246
29270
|
if (e && i.includes("{{") && i.includes("}}"))
|
|
29247
29271
|
return i;
|
|
29248
29272
|
const n = Number(i);
|
|
29249
|
-
return !isNaN(n) && i.trim() !== "" ? n : i.toLowerCase() === "true" ? !0 : i.toLowerCase() === "false" ? !1 : i.toLowerCase() === "null" ? null : t.treatAsVar ? { var: i } : !e &&
|
|
29273
|
+
return !isNaN(n) && i.trim() !== "" ? n : i.toLowerCase() === "true" ? !0 : i.toLowerCase() === "false" ? !1 : i.toLowerCase() === "null" ? null : t.treatAsVar ? { var: i } : !e && WT(i) ? { var: i } : i;
|
|
29250
29274
|
}
|
|
29251
|
-
function
|
|
29275
|
+
function WT(i) {
|
|
29252
29276
|
return i.includes(".") || i.startsWith("$");
|
|
29253
29277
|
}
|
|
29254
29278
|
function dm(i, e = !1) {
|
|
@@ -29295,9 +29319,9 @@ function wo(i, e) {
|
|
|
29295
29319
|
type: "group",
|
|
29296
29320
|
logic: "or",
|
|
29297
29321
|
conditions: i.or.map((t) => wo(t, e))
|
|
29298
|
-
} :
|
|
29322
|
+
} : UT(i, e);
|
|
29299
29323
|
}
|
|
29300
|
-
function
|
|
29324
|
+
function QT(i, e) {
|
|
29301
29325
|
if (typeof i != "object" || i === null)
|
|
29302
29326
|
return null;
|
|
29303
29327
|
if ("and" in i && Array.isArray(i.and) && i.and.length === 3) {
|
|
@@ -29330,10 +29354,10 @@ function KT(i, e) {
|
|
|
29330
29354
|
}
|
|
29331
29355
|
return null;
|
|
29332
29356
|
}
|
|
29333
|
-
function
|
|
29357
|
+
function UT(i, e) {
|
|
29334
29358
|
if (typeof i != "object" || i === null)
|
|
29335
29359
|
return _n();
|
|
29336
|
-
const t =
|
|
29360
|
+
const t = QT(i, e);
|
|
29337
29361
|
if (t)
|
|
29338
29362
|
return t;
|
|
29339
29363
|
const n = Object.keys(i);
|
|
@@ -29435,7 +29459,7 @@ function _n() {
|
|
|
29435
29459
|
right: ""
|
|
29436
29460
|
};
|
|
29437
29461
|
}
|
|
29438
|
-
function
|
|
29462
|
+
function KT(i = "and") {
|
|
29439
29463
|
return {
|
|
29440
29464
|
id: fi(),
|
|
29441
29465
|
type: "group",
|
|
@@ -29449,7 +29473,7 @@ function mm() {
|
|
|
29449
29473
|
conditions: [_n()]
|
|
29450
29474
|
};
|
|
29451
29475
|
}
|
|
29452
|
-
const
|
|
29476
|
+
const YT = /* @__PURE__ */ _t({
|
|
29453
29477
|
__name: "QuasarJsonLogicBuilderField",
|
|
29454
29478
|
props: {
|
|
29455
29479
|
schema: { type: Object, required: !0 },
|
|
@@ -29502,7 +29526,7 @@ const JT = /* @__PURE__ */ _t({
|
|
|
29502
29526
|
v.push(_n()), y();
|
|
29503
29527
|
}
|
|
29504
29528
|
function C(v) {
|
|
29505
|
-
v.push(
|
|
29529
|
+
v.push(KT()), y();
|
|
29506
29530
|
}
|
|
29507
29531
|
function D(v, A) {
|
|
29508
29532
|
const F = v.findIndex((j) => j.id === A);
|
|
@@ -29631,64 +29655,64 @@ const JT = /* @__PURE__ */ _t({
|
|
|
29631
29655
|
}, get QInput() {
|
|
29632
29656
|
return hr;
|
|
29633
29657
|
}, get QIcon() {
|
|
29634
|
-
return
|
|
29658
|
+
return ft;
|
|
29635
29659
|
}, get QTooltip() {
|
|
29636
29660
|
return qr;
|
|
29637
29661
|
}, get getOperatorInfo() {
|
|
29638
|
-
return
|
|
29662
|
+
return HT;
|
|
29639
29663
|
} };
|
|
29640
29664
|
return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
|
|
29641
29665
|
}
|
|
29642
|
-
}),
|
|
29666
|
+
}), GT = { class: "builder-header" }, JT = {
|
|
29643
29667
|
key: 0,
|
|
29644
29668
|
class: "builder-label"
|
|
29645
|
-
},
|
|
29669
|
+
}, XT = {
|
|
29646
29670
|
key: 0,
|
|
29647
29671
|
class: "text-negative q-ml-xs"
|
|
29648
|
-
},
|
|
29672
|
+
}, $T = { class: "builder-actions" }, ZT = {
|
|
29649
29673
|
key: 0,
|
|
29650
29674
|
class: "builder-hint text-caption text-grey-7 q-mb-sm"
|
|
29651
|
-
},
|
|
29675
|
+
}, e2 = {
|
|
29652
29676
|
key: 1,
|
|
29653
29677
|
class: "builder-visual"
|
|
29654
|
-
},
|
|
29678
|
+
}, t2 = { class: "logic-toggle q-mb-sm" }, i2 = { class: "conditions-container" }, n2 = {
|
|
29655
29679
|
key: 0,
|
|
29656
29680
|
class: "condition-row"
|
|
29657
|
-
},
|
|
29681
|
+
}, r2 = { class: "condition-inputs" }, o2 = { class: "row items-center no-wrap q-gutter-xs" }, s2 = { class: "text-caption" }, l2 = {
|
|
29658
29682
|
key: 1,
|
|
29659
29683
|
class: "condition-input-placeholder"
|
|
29660
|
-
},
|
|
29684
|
+
}, a2 = { class: "condition-group" }, u2 = { class: "group-header" }, c2 = { class: "group-logic-toggle" }, h2 = { class: "group-conditions" }, d2 = {
|
|
29661
29685
|
key: 0,
|
|
29662
29686
|
class: "condition-row condition-row--nested"
|
|
29663
|
-
},
|
|
29687
|
+
}, f2 = { class: "condition-inputs" }, m2 = { class: "row items-center no-wrap q-gutter-xs" }, g2 = { class: "text-caption" }, p2 = {
|
|
29664
29688
|
key: 1,
|
|
29665
29689
|
class: "condition-input-placeholder"
|
|
29666
|
-
},
|
|
29690
|
+
}, v2 = { class: "group-actions" }, y2 = {
|
|
29667
29691
|
key: 2,
|
|
29668
29692
|
class: "logic-connector"
|
|
29669
|
-
},
|
|
29693
|
+
}, b2 = { class: "logic-connector-text" }, x2 = { class: "builder-actions-bottom q-mt-sm" }, k2 = { class: "builder-advanced" }, w2 = {
|
|
29670
29694
|
key: 3,
|
|
29671
29695
|
class: "text-negative text-caption q-mt-xs"
|
|
29672
29696
|
};
|
|
29673
|
-
function
|
|
29697
|
+
function S2(i, e, t, n, r, o) {
|
|
29674
29698
|
return Z(), oe(
|
|
29675
29699
|
"div",
|
|
29676
29700
|
{
|
|
29677
29701
|
class: "quickform-jsonlogic-builder",
|
|
29678
|
-
style:
|
|
29702
|
+
style: dt({ marginBottom: n.fieldGap })
|
|
29679
29703
|
},
|
|
29680
29704
|
[
|
|
29681
29705
|
ie(" Header with label and mode toggle "),
|
|
29682
|
-
be("div",
|
|
29683
|
-
n.label ? (Z(), oe("div",
|
|
29706
|
+
be("div", GT, [
|
|
29707
|
+
n.label ? (Z(), oe("div", JT, [
|
|
29684
29708
|
Le(
|
|
29685
29709
|
Se(n.label) + " ",
|
|
29686
29710
|
1
|
|
29687
29711
|
/* TEXT */
|
|
29688
29712
|
),
|
|
29689
|
-
n.required ? (Z(), oe("span",
|
|
29713
|
+
n.required ? (Z(), oe("span", XT, "*")) : ie("v-if", !0)
|
|
29690
29714
|
])) : ie("v-if", !0),
|
|
29691
|
-
be("div",
|
|
29715
|
+
be("div", $T, [
|
|
29692
29716
|
ee(n.QBtn, {
|
|
29693
29717
|
flat: "",
|
|
29694
29718
|
dense: "",
|
|
@@ -29718,7 +29742,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
29718
29742
|
ie(" Hint "),
|
|
29719
29743
|
n.hint ? (Z(), oe(
|
|
29720
29744
|
"div",
|
|
29721
|
-
|
|
29745
|
+
ZT,
|
|
29722
29746
|
Se(n.hint),
|
|
29723
29747
|
1
|
|
29724
29748
|
/* TEXT */
|
|
@@ -29729,7 +29753,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
29729
29753
|
{ key: 2 },
|
|
29730
29754
|
[
|
|
29731
29755
|
ie(" Advanced JSON Mode "),
|
|
29732
|
-
be("div",
|
|
29756
|
+
be("div", k2, [
|
|
29733
29757
|
ee(n.QInput, {
|
|
29734
29758
|
"model-value": n.jsonText,
|
|
29735
29759
|
type: "textarea",
|
|
@@ -29749,9 +29773,9 @@ function M2(i, e, t, n, r, o) {
|
|
|
29749
29773
|
],
|
|
29750
29774
|
2112
|
|
29751
29775
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
29752
|
-
)) : (Z(), oe("div",
|
|
29776
|
+
)) : (Z(), oe("div", e2, [
|
|
29753
29777
|
ie(" Root logic toggle "),
|
|
29754
|
-
be("div",
|
|
29778
|
+
be("div", t2, [
|
|
29755
29779
|
e[5] || (e[5] = be(
|
|
29756
29780
|
"span",
|
|
29757
29781
|
{ class: "text-caption text-grey-7 q-mr-sm" },
|
|
@@ -29787,7 +29811,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
29787
29811
|
))
|
|
29788
29812
|
]),
|
|
29789
29813
|
ie(" Conditions list "),
|
|
29790
|
-
be("div",
|
|
29814
|
+
be("div", i2, [
|
|
29791
29815
|
(Z(!0), oe(
|
|
29792
29816
|
St,
|
|
29793
29817
|
null,
|
|
@@ -29800,8 +29824,8 @@ function M2(i, e, t, n, r, o) {
|
|
|
29800
29824
|
},
|
|
29801
29825
|
[
|
|
29802
29826
|
ie(" Simple condition row "),
|
|
29803
|
-
s.type === "condition" ? (Z(), oe("div",
|
|
29804
|
-
be("div",
|
|
29827
|
+
s.type === "condition" ? (Z(), oe("div", n2, [
|
|
29828
|
+
be("div", r2, [
|
|
29805
29829
|
ie(" Left value (slot or default input) "),
|
|
29806
29830
|
An(i.$slots, "left-input", {
|
|
29807
29831
|
value: s.left,
|
|
@@ -29851,14 +29875,14 @@ function M2(i, e, t, n, r, o) {
|
|
|
29851
29875
|
fn: ae(() => {
|
|
29852
29876
|
var u, c;
|
|
29853
29877
|
return [
|
|
29854
|
-
be("div",
|
|
29878
|
+
be("div", o2, [
|
|
29855
29879
|
ee(n.QIcon, {
|
|
29856
29880
|
name: ((u = n.operatorOptions.find((h) => h.value === s.operator)) == null ? void 0 : u.icon) || "help",
|
|
29857
29881
|
size: "xs"
|
|
29858
29882
|
}, null, 8, ["name"]),
|
|
29859
29883
|
be(
|
|
29860
29884
|
"span",
|
|
29861
|
-
|
|
29885
|
+
s2,
|
|
29862
29886
|
Se((c = n.operatorOptions.find((h) => h.value === s.operator)) == null ? void 0 : c.label),
|
|
29863
29887
|
1
|
|
29864
29888
|
/* TEXT */
|
|
@@ -29971,7 +29995,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
29971
29995
|
readonly: t.readonly,
|
|
29972
29996
|
"onUpdate:modelValue": (u) => n.updateConditionRight(s, String(u ?? ""))
|
|
29973
29997
|
}, null, 8, ["model-value", "placeholder", "disable", "readonly", "onUpdate:modelValue"])
|
|
29974
|
-
], !0) : (Z(), oe("div",
|
|
29998
|
+
], !0) : (Z(), oe("div", l2))
|
|
29975
29999
|
]),
|
|
29976
30000
|
ie(" Remove button "),
|
|
29977
30001
|
ee(n.QBtn, {
|
|
@@ -30006,9 +30030,9 @@ function M2(i, e, t, n, r, o) {
|
|
|
30006
30030
|
{ key: 1 },
|
|
30007
30031
|
[
|
|
30008
30032
|
ie(" Nested group "),
|
|
30009
|
-
be("div",
|
|
30010
|
-
be("div",
|
|
30011
|
-
be("div",
|
|
30033
|
+
be("div", a2, [
|
|
30034
|
+
be("div", u2, [
|
|
30035
|
+
be("div", c2, [
|
|
30012
30036
|
ee(n.QBtn, {
|
|
30013
30037
|
flat: s.logic !== "and",
|
|
30014
30038
|
outline: s.logic === "and",
|
|
@@ -30056,7 +30080,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30056
30080
|
/* STABLE */
|
|
30057
30081
|
}, 8, ["disable", "onClick"])
|
|
30058
30082
|
]),
|
|
30059
|
-
be("div",
|
|
30083
|
+
be("div", h2, [
|
|
30060
30084
|
(Z(!0), oe(
|
|
30061
30085
|
St,
|
|
30062
30086
|
null,
|
|
@@ -30068,8 +30092,8 @@ function M2(i, e, t, n, r, o) {
|
|
|
30068
30092
|
key: u.id
|
|
30069
30093
|
},
|
|
30070
30094
|
[
|
|
30071
|
-
u.type === "condition" ? (Z(), oe("div",
|
|
30072
|
-
be("div",
|
|
30095
|
+
u.type === "condition" ? (Z(), oe("div", d2, [
|
|
30096
|
+
be("div", f2, [
|
|
30073
30097
|
An(i.$slots, "left-input", {
|
|
30074
30098
|
value: u.left,
|
|
30075
30099
|
onChange: (h) => n.updateConditionLeft(u, h),
|
|
@@ -30117,7 +30141,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30117
30141
|
fn: ae(() => {
|
|
30118
30142
|
var h, d;
|
|
30119
30143
|
return [
|
|
30120
|
-
be("div",
|
|
30144
|
+
be("div", m2, [
|
|
30121
30145
|
ee(n.QIcon, {
|
|
30122
30146
|
name: ((h = n.operatorOptions.find(
|
|
30123
30147
|
(f) => f.value === u.operator
|
|
@@ -30126,7 +30150,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30126
30150
|
}, null, 8, ["name"]),
|
|
30127
30151
|
be(
|
|
30128
30152
|
"span",
|
|
30129
|
-
|
|
30153
|
+
g2,
|
|
30130
30154
|
Se((d = n.operatorOptions.find(
|
|
30131
30155
|
(f) => f.value === u.operator
|
|
30132
30156
|
)) == null ? void 0 : d.label),
|
|
@@ -30240,7 +30264,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30240
30264
|
readonly: t.readonly,
|
|
30241
30265
|
"onUpdate:modelValue": (h) => n.updateConditionRight(u, String(h ?? ""))
|
|
30242
30266
|
}, null, 8, ["model-value", "placeholder", "disable", "readonly", "onUpdate:modelValue"])
|
|
30243
|
-
], !0) : (Z(), oe("div",
|
|
30267
|
+
], !0) : (Z(), oe("div", p2))
|
|
30244
30268
|
]),
|
|
30245
30269
|
ee(n.QBtn, {
|
|
30246
30270
|
flat: "",
|
|
@@ -30279,7 +30303,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30279
30303
|
/* KEYED_FRAGMENT */
|
|
30280
30304
|
)),
|
|
30281
30305
|
ie(" Add condition to group "),
|
|
30282
|
-
be("div",
|
|
30306
|
+
be("div", v2, [
|
|
30283
30307
|
ee(n.QBtn, {
|
|
30284
30308
|
flat: "",
|
|
30285
30309
|
dense: "",
|
|
@@ -30298,10 +30322,10 @@ function M2(i, e, t, n, r, o) {
|
|
|
30298
30322
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
30299
30323
|
)) : ie("v-if", !0),
|
|
30300
30324
|
ie(" Logic connector between conditions "),
|
|
30301
|
-
l < n.conditionRoot.conditions.length - 1 ? (Z(), oe("div",
|
|
30325
|
+
l < n.conditionRoot.conditions.length - 1 ? (Z(), oe("div", y2, [
|
|
30302
30326
|
be(
|
|
30303
30327
|
"span",
|
|
30304
|
-
|
|
30328
|
+
b2,
|
|
30305
30329
|
Se(n.conditionRoot.logic.toUpperCase()),
|
|
30306
30330
|
1
|
|
30307
30331
|
/* TEXT */
|
|
@@ -30317,7 +30341,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30317
30341
|
))
|
|
30318
30342
|
]),
|
|
30319
30343
|
ie(" Add buttons "),
|
|
30320
|
-
be("div",
|
|
30344
|
+
be("div", x2, [
|
|
30321
30345
|
ee(n.QBtn, {
|
|
30322
30346
|
flat: "",
|
|
30323
30347
|
dense: "",
|
|
@@ -30360,7 +30384,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30360
30384
|
ie(" Error message "),
|
|
30361
30385
|
n.errorMessage ? (Z(), oe(
|
|
30362
30386
|
"div",
|
|
30363
|
-
|
|
30387
|
+
w2,
|
|
30364
30388
|
Se(n.errorMessage),
|
|
30365
30389
|
1
|
|
30366
30390
|
/* TEXT */
|
|
@@ -30370,7 +30394,7 @@ function M2(i, e, t, n, r, o) {
|
|
|
30370
30394
|
/* STYLE */
|
|
30371
30395
|
);
|
|
30372
30396
|
}
|
|
30373
|
-
const
|
|
30397
|
+
const C2 = /* @__PURE__ */ Kt(YT, [["render", S2], ["__scopeId", "data-v-722c2e28"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarJsonLogicBuilderField.vue"]]), M2 = /* @__PURE__ */ _t({
|
|
30374
30398
|
__name: "QuasarTagsField",
|
|
30375
30399
|
props: {
|
|
30376
30400
|
schema: { type: Object, required: !0 },
|
|
@@ -30493,12 +30517,12 @@ const A2 = /* @__PURE__ */ Kt(JT, [["render", M2], ["__scopeId", "data-v-722c2e2
|
|
|
30493
30517
|
return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
|
|
30494
30518
|
}
|
|
30495
30519
|
});
|
|
30496
|
-
function
|
|
30520
|
+
function A2(i, e, t, n, r, o) {
|
|
30497
30521
|
var s;
|
|
30498
30522
|
return Z(), oe(
|
|
30499
30523
|
"div",
|
|
30500
30524
|
{
|
|
30501
|
-
style:
|
|
30525
|
+
style: dt({ marginBottom: n.fieldGap }),
|
|
30502
30526
|
class: "quickform-tags-field"
|
|
30503
30527
|
},
|
|
30504
30528
|
[
|
|
@@ -30576,8 +30600,8 @@ function T2(i, e, t, n, r, o) {
|
|
|
30576
30600
|
/* STYLE */
|
|
30577
30601
|
);
|
|
30578
30602
|
}
|
|
30579
|
-
const
|
|
30580
|
-
function
|
|
30603
|
+
const O2 = /* @__PURE__ */ Kt(M2, [["render", A2], ["__scopeId", "data-v-33c01fc5"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/quasar/src/components/QuasarTagsField.vue"]]);
|
|
30604
|
+
function E2() {
|
|
30581
30605
|
const i = new q0();
|
|
30582
30606
|
return i.register(
|
|
30583
30607
|
"hidden",
|
|
@@ -30629,11 +30653,11 @@ function I2() {
|
|
|
30629
30653
|
(e) => Qe(50, Xt("json")(e) || Xt("jsoneditor")(e))
|
|
30630
30654
|
), i.register(
|
|
30631
30655
|
"jsonlogic-builder-override",
|
|
30632
|
-
|
|
30656
|
+
C2,
|
|
30633
30657
|
(e) => Qe(50, Xt("jsonlogic-builder")(e) || Xt("condition-builder")(e))
|
|
30634
30658
|
), i.register(
|
|
30635
30659
|
"tags-override",
|
|
30636
|
-
|
|
30660
|
+
O2,
|
|
30637
30661
|
(e) => Qe(50, Xt("tags")(e))
|
|
30638
30662
|
), i.register(
|
|
30639
30663
|
"string",
|
|
@@ -30697,74 +30721,74 @@ function I2() {
|
|
|
30697
30721
|
(e) => Qe(10, j0(e))
|
|
30698
30722
|
), i.register(
|
|
30699
30723
|
"allOf",
|
|
30700
|
-
|
|
30724
|
+
NT,
|
|
30701
30725
|
(e) => Qe(10, W0(e))
|
|
30702
30726
|
), i;
|
|
30703
30727
|
}
|
|
30704
30728
|
export {
|
|
30705
|
-
|
|
30729
|
+
V2 as ComponentRegistry,
|
|
30706
30730
|
T0 as OPERATORS,
|
|
30707
|
-
|
|
30731
|
+
NT as QuasarAllOfField,
|
|
30708
30732
|
ld as QuasarArrayField,
|
|
30709
30733
|
Oh as QuasarBooleanField,
|
|
30710
30734
|
td as QuasarDateField,
|
|
30711
30735
|
od as QuasarDateTimeField,
|
|
30712
30736
|
Kh as QuasarEnumField,
|
|
30713
30737
|
am as QuasarJsonField,
|
|
30714
|
-
|
|
30738
|
+
C2 as QuasarJsonLogicBuilderField,
|
|
30715
30739
|
ad as QuasarKeyValueField,
|
|
30716
30740
|
gT as QuasarMultiEnumField,
|
|
30717
30741
|
Ah as QuasarNumberField,
|
|
30718
30742
|
sd as QuasarObjectField,
|
|
30719
30743
|
cm as QuasarOneOfField,
|
|
30720
30744
|
Mh as QuasarStringField,
|
|
30721
|
-
|
|
30745
|
+
O2 as QuasarTagsField,
|
|
30722
30746
|
rd as QuasarTimeField,
|
|
30723
|
-
|
|
30724
|
-
|
|
30747
|
+
F2 as SchemaUtils,
|
|
30748
|
+
N2 as and,
|
|
30725
30749
|
_n as createEmptyCondition,
|
|
30726
|
-
|
|
30750
|
+
KT as createEmptyGroup,
|
|
30727
30751
|
mm as createEmptyRoot,
|
|
30728
|
-
|
|
30752
|
+
E2 as createQuasarRegistry,
|
|
30729
30753
|
fm as fromJsonLogic,
|
|
30730
30754
|
fi as generateConditionId,
|
|
30731
30755
|
Wy as getFieldGapStyle,
|
|
30732
|
-
|
|
30733
|
-
|
|
30734
|
-
|
|
30735
|
-
|
|
30736
|
-
|
|
30737
|
-
|
|
30738
|
-
|
|
30739
|
-
|
|
30756
|
+
HT as getOperatorInfo,
|
|
30757
|
+
H2 as hasAllOf,
|
|
30758
|
+
z2 as hasAnyOf,
|
|
30759
|
+
j2 as hasConditional,
|
|
30760
|
+
W2 as hasConst,
|
|
30761
|
+
Q2 as hasExtension,
|
|
30762
|
+
U2 as hasFormat,
|
|
30763
|
+
K2 as hasOneOf,
|
|
30740
30764
|
dx as inferType,
|
|
30741
|
-
|
|
30742
|
-
|
|
30743
|
-
|
|
30744
|
-
|
|
30745
|
-
|
|
30746
|
-
|
|
30747
|
-
|
|
30748
|
-
|
|
30749
|
-
|
|
30750
|
-
|
|
30751
|
-
|
|
30752
|
-
|
|
30753
|
-
|
|
30754
|
-
|
|
30755
|
-
|
|
30756
|
-
|
|
30765
|
+
Y2 as isArrayType,
|
|
30766
|
+
G2 as isBooleanType,
|
|
30767
|
+
J2 as isDateFormat,
|
|
30768
|
+
X2 as isDateTimeFormat,
|
|
30769
|
+
$2 as isDiscriminatedUnion,
|
|
30770
|
+
Z2 as isEmailFormat,
|
|
30771
|
+
eD as isEnumType,
|
|
30772
|
+
tD as isIntegerType,
|
|
30773
|
+
iD as isJsonType,
|
|
30774
|
+
nD as isNullType,
|
|
30775
|
+
rD as isNumberType,
|
|
30776
|
+
oD as isObjectType,
|
|
30777
|
+
sD as isRecordType,
|
|
30778
|
+
lD as isStringType,
|
|
30779
|
+
aD as isTimeFormat,
|
|
30780
|
+
uD as isUrlFormat,
|
|
30757
30781
|
Uo as mergeQuasarProps,
|
|
30758
30782
|
Qy as mergeQuickFormsQuasarFeatures,
|
|
30759
|
-
|
|
30760
|
-
|
|
30761
|
-
|
|
30762
|
-
|
|
30763
|
-
|
|
30783
|
+
cD as not,
|
|
30784
|
+
hD as or,
|
|
30785
|
+
P2 as provideQuasarFormContext,
|
|
30786
|
+
dD as rankWith,
|
|
30787
|
+
_2 as toDisplayString,
|
|
30764
30788
|
hm as toJsonLogic,
|
|
30765
|
-
|
|
30789
|
+
mD as useFormContext,
|
|
30766
30790
|
Lm as useQuasarFormContext,
|
|
30767
30791
|
Ut as useQuasarFormField,
|
|
30768
|
-
|
|
30769
|
-
|
|
30792
|
+
gD as useWatchFormValue,
|
|
30793
|
+
pD as useWatchFormValues
|
|
30770
30794
|
};
|