@quickflo/quickforms-quasar 1.19.23 → 1.19.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +155 -155
- package/dist/utils/jsonlogic.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SchemaUtils as pm, ComponentRegistry as P0, rankWith as Qe, hasConst as _0, hasXRender as Xt, isStringType as B0, isNumberType as R0, isBooleanType as E0, isEnumType as L0, isDateFormat as I0, isTimeFormat as V0, isDateTimeFormat as F0, isRecordType as N0, isJsonType as H0, isObjectType as z0, isArrayType as dh, hasOneOf as j0, hasAnyOf as W0, hasAllOf as Q0 } from "@quickflo/quickforms";
|
|
2
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 vm, defineComponent as _t, reactive as ym, h as T, withDirectives as pn, getCurrentInstance as We, ref as G, onMounted as Ai, watch as me, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Wo, onActivated as cc, Transition as gi, provide as xm, 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
|
|
3
|
+
import { computed as w, markRaw as vm, defineComponent as _t, reactive as ym, h as T, withDirectives as pn, getCurrentInstance as We, ref as G, onMounted as Ai, watch as me, onBeforeUpdate as bm, inject as jo, onBeforeUnmount as ht, nextTick as rt, onDeactivated as Wo, onActivated as cc, Transition as gi, provide as xm, 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 Qn, createCommentVNode as ie, unref as U0, onUnmounted as K0, Teleport as Y0, onBeforeMount as G0, onUpdated as J0, normalizeProps as X0, guardReactiveProps as $0, createBlock as li, shallowReactive as Z0, vShow as km, 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 ey, useFormField as ty, generateFieldId as iy, FieldRenderer as Ll, HiddenField as ny } from "@quickflo/quickforms-vue";
|
|
5
5
|
import { useFormContext as mD, useWatchFormValue as gD, useWatchFormValues as pD } from "@quickflo/quickforms-vue";
|
|
6
6
|
const nu = {
|
|
@@ -611,7 +611,7 @@ function er(i, e) {
|
|
|
611
611
|
n[0].removeEventListener(n[1], i[n[2]], Ot[n[3]]);
|
|
612
612
|
}), i[t] = void 0);
|
|
613
613
|
}
|
|
614
|
-
let
|
|
614
|
+
let Jn = [], So = [];
|
|
615
615
|
function qm(i) {
|
|
616
616
|
So = So.filter((e) => e !== i);
|
|
617
617
|
}
|
|
@@ -619,13 +619,13 @@ function _y(i) {
|
|
|
619
619
|
qm(i), So.push(i);
|
|
620
620
|
}
|
|
621
621
|
function wh(i) {
|
|
622
|
-
qm(i), So.length === 0 &&
|
|
622
|
+
qm(i), So.length === 0 && Jn.length !== 0 && (Jn[Jn.length - 1](), Jn = []);
|
|
623
623
|
}
|
|
624
624
|
function Fl(i) {
|
|
625
|
-
So.length === 0 ? i() :
|
|
625
|
+
So.length === 0 ? i() : Jn.push(i);
|
|
626
626
|
}
|
|
627
627
|
function By(i) {
|
|
628
|
-
|
|
628
|
+
Jn = Jn.filter((e) => e !== i);
|
|
629
629
|
}
|
|
630
630
|
function Co(i) {
|
|
631
631
|
return i != null && ("" + i).length !== 0;
|
|
@@ -1793,9 +1793,9 @@ function tb(i, e) {
|
|
|
1793
1793
|
const { props: t, slots: n, emit: r, proxy: o } = We(), { $q: s } = o, l = Zi(t, s), a = G(null), { refocusTargetEl: u, refocusTarget: c } = Xy(t, a), h = Vl(t, $y), d = w(
|
|
1794
1794
|
() => t.val !== void 0 && Array.isArray(t.modelValue)
|
|
1795
1795
|
), f = w(() => {
|
|
1796
|
-
const R =
|
|
1797
|
-
return d.value === !0 ? t.modelValue.findIndex((q) =>
|
|
1798
|
-
}), m = w(() => d.value === !0 ? f.value !== -1 :
|
|
1796
|
+
const R = Qn(t.val);
|
|
1797
|
+
return d.value === !0 ? t.modelValue.findIndex((q) => Qn(q) === R) : -1;
|
|
1798
|
+
}), m = w(() => d.value === !0 ? f.value !== -1 : Qn(t.modelValue) === Qn(t.trueValue)), p = w(() => d.value === !0 ? f.value === -1 : Qn(t.modelValue) === Qn(t.falseValue)), g = w(
|
|
1799
1799
|
() => m.value === !1 && p.value === !1
|
|
1800
1800
|
), k = w(() => t.disable === !0 ? -1 : t.tabindex || 0), S = w(
|
|
1801
1801
|
() => `q-${i} cursor-pointer no-outline row inline no-wrap items-center` + (t.disable === !0 ? " disabled" : "") + (l.value === !0 ? ` q-${i}--dark` : "") + (t.dense === !0 ? ` q-${i}--dense` : "") + (t.leftLabel === !0 ? " reverse" : "")
|
|
@@ -3273,7 +3273,7 @@ function Eb(i, e, t) {
|
|
|
3273
3273
|
}
|
|
3274
3274
|
};
|
|
3275
3275
|
}
|
|
3276
|
-
let Zr = 0, va, ya, so, ba = !1, Vh, Fh, Nh,
|
|
3276
|
+
let Zr = 0, va, ya, so, ba = !1, Vh, Fh, Nh, zn = null;
|
|
3277
3277
|
function Lb(i) {
|
|
3278
3278
|
Ib(i) && ct(i);
|
|
3279
3279
|
}
|
|
@@ -3309,16 +3309,16 @@ function zh(i) {
|
|
|
3309
3309
|
function Vb(i) {
|
|
3310
3310
|
let e = "add";
|
|
3311
3311
|
if (i === !0) {
|
|
3312
|
-
if (Zr++,
|
|
3313
|
-
clearTimeout(
|
|
3312
|
+
if (Zr++, zn !== null) {
|
|
3313
|
+
clearTimeout(zn), zn = null;
|
|
3314
3314
|
return;
|
|
3315
3315
|
}
|
|
3316
3316
|
if (Zr > 1) return;
|
|
3317
3317
|
} else {
|
|
3318
3318
|
if (Zr === 0 || (Zr--, Zr > 0)) return;
|
|
3319
3319
|
if (e = "remove", Dt.is.ios === !0 && Dt.is.nativeMobile === !0) {
|
|
3320
|
-
|
|
3321
|
-
zh(e),
|
|
3320
|
+
zn !== null && clearTimeout(zn), zn = setTimeout(() => {
|
|
3321
|
+
zh(e), zn = null;
|
|
3322
3322
|
}, 100);
|
|
3323
3323
|
return;
|
|
3324
3324
|
}
|
|
@@ -4088,7 +4088,7 @@ const Ko = Xe({
|
|
|
4088
4088
|
} = Wb({
|
|
4089
4089
|
virtualScrollLength: R,
|
|
4090
4090
|
getVirtualScrollTarget: bn,
|
|
4091
|
-
getVirtualScrollEl:
|
|
4091
|
+
getVirtualScrollEl: Fn,
|
|
4092
4092
|
virtualScrollItemSizeComputed: q
|
|
4093
4093
|
}), x = mc(), v = w(() => {
|
|
4094
4094
|
const P = i.mapOptions === !0 && i.multiple !== !0, he = i.modelValue !== void 0 && (i.modelValue !== null || P === !0) ? i.multiple === !0 && Array.isArray(i.modelValue) ? i.modelValue : [i.modelValue] : [];
|
|
@@ -4209,7 +4209,7 @@ const Ko = Xe({
|
|
|
4209
4209
|
function $e(P, he) {
|
|
4210
4210
|
const ge = je(P);
|
|
4211
4211
|
if (i.multiple !== !0) {
|
|
4212
|
-
i.fillInput === !0 &&
|
|
4212
|
+
i.fillInput === !0 && Hn(
|
|
4213
4213
|
te.value(P),
|
|
4214
4214
|
!0,
|
|
4215
4215
|
!0
|
|
@@ -4229,7 +4229,7 @@ const Ko = Xe({
|
|
|
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) {
|
|
4232
|
-
he !== !0 && (
|
|
4232
|
+
he !== !0 && (Hn(
|
|
4233
4233
|
i.fillInput === !0 ? te.value(P) : "",
|
|
4234
4234
|
!0,
|
|
4235
4235
|
!0
|
|
@@ -4266,7 +4266,7 @@ const Ko = Xe({
|
|
|
4266
4266
|
R.value - 1
|
|
4267
4267
|
);
|
|
4268
4268
|
while (ge !== -1 && ge !== l.value && ve.value(i.options[ge]) === !0);
|
|
4269
|
-
l.value !== ge && (U(ge), J(ge), he !== !0 && i.useInput === !0 && i.fillInput === !0 &&
|
|
4269
|
+
l.value !== ge && (U(ge), J(ge), he !== !0 && i.useInput === !0 && i.fillInput === !0 && Nn(
|
|
4270
4270
|
ge >= 0 ? te.value(i.options[ge]) : k,
|
|
4271
4271
|
!0
|
|
4272
4272
|
));
|
|
@@ -4345,7 +4345,7 @@ const Ko = Xe({
|
|
|
4345
4345
|
vt = Uh(vt + 1, -1, Be - 1);
|
|
4346
4346
|
while (vt !== l.value && (ve.value(i.options[vt]) === !0 || et.test(te.value(i.options[vt])) !== !0));
|
|
4347
4347
|
l.value !== vt && rt(() => {
|
|
4348
|
-
U(vt), J(vt), vt >= 0 && i.useInput === !0 && i.fillInput === !0 &&
|
|
4348
|
+
U(vt), J(vt), vt >= 0 && i.useInput === !0 && i.fillInput === !0 && Nn(te.value(i.options[vt]), !0);
|
|
4349
4349
|
});
|
|
4350
4350
|
return;
|
|
4351
4351
|
}
|
|
@@ -4361,7 +4361,7 @@ const Ko = Xe({
|
|
|
4361
4361
|
if (Kh(et) !== !0) return;
|
|
4362
4362
|
} else
|
|
4363
4363
|
et = i.newValueMode;
|
|
4364
|
-
if (
|
|
4364
|
+
if (Hn("", i.multiple !== !0, !0), pt == null) return;
|
|
4365
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;
|
|
@@ -4369,11 +4369,11 @@ const Ko = Xe({
|
|
|
4369
4369
|
o.value === !0 ? pe() : x.innerLoading.value !== !0 && Ce();
|
|
4370
4370
|
}
|
|
4371
4371
|
}
|
|
4372
|
-
function
|
|
4372
|
+
function Fn() {
|
|
4373
4373
|
return m === !0 ? z.value : O.value !== null && O.value.contentEl !== null ? O.value.contentEl : void 0;
|
|
4374
4374
|
}
|
|
4375
4375
|
function bn() {
|
|
4376
|
-
return
|
|
4376
|
+
return Fn();
|
|
4377
4377
|
}
|
|
4378
4378
|
function os() {
|
|
4379
4379
|
return i.hideSelected === !0 ? [] : e["selected-item"] !== void 0 ? Rt.value.map((P) => e["selected-item"](P)).slice() : e.selected !== void 0 ? [].concat(e.selected()) : i.useChips === !0 ? Rt.value.map((P, he) => T(zm, {
|
|
@@ -4434,17 +4434,17 @@ const Ko = Xe({
|
|
|
4434
4434
|
return P !== !0 && m === !0 && (Array.isArray(Be.class) === !0 ? Be.class = [...Be.class, "no-pointer-events"] : Be.class += " no-pointer-events"), T("input", Be);
|
|
4435
4435
|
}
|
|
4436
4436
|
function fr(P) {
|
|
4437
|
-
h !== null && (clearTimeout(h), h = null), d !== null && (clearTimeout(d), d = null), !(P && P.target && P.target.qComposing === !0) && (
|
|
4437
|
+
h !== null && (clearTimeout(h), h = null), d !== null && (clearTimeout(d), d = null), !(P && P.target && P.target.qComposing === !0) && (Nn(P.target.value || ""), p = !0, k = a.value, x.focused.value !== !0 && (m !== !0 || u.value === !0) && x.focus(), i.onFilter !== void 0 && (h = setTimeout(() => {
|
|
4438
4438
|
h = null, Ii(a.value);
|
|
4439
4439
|
}, i.inputDebounce)));
|
|
4440
4440
|
}
|
|
4441
|
-
function
|
|
4441
|
+
function Nn(P, he) {
|
|
4442
4442
|
a.value !== P && (a.value = P, he === !0 || i.inputDebounce === 0 || i.inputDebounce === "0" ? t("inputValue", P) : d = setTimeout(() => {
|
|
4443
4443
|
d = null, t("inputValue", P);
|
|
4444
4444
|
}, i.inputDebounce));
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4447
|
-
p = ge !== !0, i.useInput === !0 && (
|
|
4446
|
+
function Hn(P, he, ge) {
|
|
4447
|
+
p = ge !== !0, i.useInput === !0 && (Nn(P, !0), (he === !0 || ge !== !0) && (k = P), he !== !0 && Ii(P));
|
|
4448
4448
|
}
|
|
4449
4449
|
function Ii(P, he, ge) {
|
|
4450
4450
|
if (i.onFilter === void 0 || he !== !0 && x.focused.value !== !0) return;
|
|
@@ -4583,7 +4583,7 @@ const Ko = Xe({
|
|
|
4583
4583
|
s.value = !1, pe();
|
|
4584
4584
|
}
|
|
4585
4585
|
function bi() {
|
|
4586
|
-
i.useInput === !0 &&
|
|
4586
|
+
i.useInput === !0 && Hn(
|
|
4587
4587
|
i.multiple !== !0 && i.fillInput === !0 && v.value.length !== 0 && te.value(v.value[0]) || "",
|
|
4588
4588
|
!0,
|
|
4589
4589
|
!0
|
|
@@ -4630,7 +4630,7 @@ const Ko = Xe({
|
|
|
4630
4630
|
moveOptionSelection: ne,
|
|
4631
4631
|
filter: Ii,
|
|
4632
4632
|
updateMenuPosition: ah,
|
|
4633
|
-
updateInputValue:
|
|
4633
|
+
updateInputValue: Hn,
|
|
4634
4634
|
isOptionSelected: Me,
|
|
4635
4635
|
getEmittingOptionValue: je,
|
|
4636
4636
|
isOptionDisabled: (...P) => ve.value.apply(null, P) === !0,
|
|
@@ -6358,9 +6358,9 @@ const pg = Xe({
|
|
|
6358
6358
|
}), me(() => b.value.year + "|" + b.value.month, () => {
|
|
6359
6359
|
t("navigation", { year: b.value.year, month: b.value.month });
|
|
6360
6360
|
}), me(k, (M) => {
|
|
6361
|
-
|
|
6361
|
+
Nn(M, g.value, "mask"), p.value = M;
|
|
6362
6362
|
}), me(S, (M) => {
|
|
6363
|
-
|
|
6363
|
+
Nn(p.value, M, "locale"), g.value = M;
|
|
6364
6364
|
});
|
|
6365
6365
|
function ve(M) {
|
|
6366
6366
|
h = JSON.stringify(M);
|
|
@@ -6483,7 +6483,7 @@ const pg = Xe({
|
|
|
6483
6483
|
});
|
|
6484
6484
|
}));
|
|
6485
6485
|
}
|
|
6486
|
-
function
|
|
6486
|
+
function Fn(M, L, Q) {
|
|
6487
6487
|
const le = M !== null && M.length === 1 && i.multiple === !1 ? M[0] : M, { reason: de, details: De } = os(L, Q);
|
|
6488
6488
|
ve(le), t("update:modelValue", le, de, De);
|
|
6489
6489
|
}
|
|
@@ -6525,7 +6525,7 @@ const pg = Xe({
|
|
|
6525
6525
|
}
|
|
6526
6526
|
else
|
|
6527
6527
|
L = en(M);
|
|
6528
|
-
|
|
6528
|
+
Fn(L, "add", M);
|
|
6529
6529
|
}
|
|
6530
6530
|
function fr(M) {
|
|
6531
6531
|
if (i.noUnset === !0) return;
|
|
@@ -6536,13 +6536,13 @@ const pg = Xe({
|
|
|
6536
6536
|
(le) => le.from !== void 0 ? le.from !== Q.from && le.to !== Q.to : !0
|
|
6537
6537
|
) : L = i.modelValue.filter((le) => le !== Q), L.length === 0 && (L = null);
|
|
6538
6538
|
}
|
|
6539
|
-
|
|
6539
|
+
Fn(L, "remove", M);
|
|
6540
6540
|
}
|
|
6541
|
-
function
|
|
6541
|
+
function Nn(M, L, Q) {
|
|
6542
6542
|
const le = N.value.concat(H.value).map((De) => en(De, M, L)).filter((De) => De.from !== void 0 ? De.from.dateHash !== null && De.to.dateHash !== null : De.dateHash !== null), de = (i.multiple === !0 ? le : le[0]) || null;
|
|
6543
6543
|
ve(de), t("update:modelValue", de, Q);
|
|
6544
6544
|
}
|
|
6545
|
-
function
|
|
6545
|
+
function Hn() {
|
|
6546
6546
|
if (i.minimal !== !0)
|
|
6547
6547
|
return T("div", {
|
|
6548
6548
|
class: "q-date__header " + a.value
|
|
@@ -6887,7 +6887,7 @@ const pg = Xe({
|
|
|
6887
6887
|
class: R.value,
|
|
6888
6888
|
...te.value
|
|
6889
6889
|
}, [
|
|
6890
|
-
|
|
6890
|
+
Hn(),
|
|
6891
6891
|
T("div", {
|
|
6892
6892
|
ref: m,
|
|
6893
6893
|
class: "q-date__main col column",
|
|
@@ -7299,8 +7299,8 @@ const vg = Xe({
|
|
|
7299
7299
|
y.value === "hour" ? V.value === !0 ? (U = 0, ne = 23) : (U = 0, ne = 11, C.value === !1 && (xe = 12)) : (U = 0, ne = 55, Me = 5);
|
|
7300
7300
|
const Ht = [];
|
|
7301
7301
|
for (let qe = U, tt = U; qe <= ne; qe += Me, tt++) {
|
|
7302
|
-
const Et = qe + xe,
|
|
7303
|
-
Ht.push({ val: Et, index: tt, disable:
|
|
7302
|
+
const Et = qe + xe, Fn = (Re == null ? void 0 : Re.includes(Et)) === !1, bn = y.value === "hour" && qe === 0 ? V.value === !0 ? "00" : "12" : qe;
|
|
7303
|
+
Ht.push({ val: Et, index: tt, disable: Fn, label: bn });
|
|
7304
7304
|
}
|
|
7305
7305
|
return Ht;
|
|
7306
7306
|
}), ye = w(() => [[
|
|
@@ -8108,7 +8108,7 @@ const sd = /* @__PURE__ */ Kt(P1, [["render", B1], ["__scopeId", "data-v-76abc7a
|
|
|
8108
8108
|
onLeave: m
|
|
8109
8109
|
}, e.default);
|
|
8110
8110
|
}
|
|
8111
|
-
}),
|
|
8111
|
+
}), jn = Z0({}), E1 = Object.keys(yc), L1 = Xe({
|
|
8112
8112
|
name: "QExpansionItem",
|
|
8113
8113
|
props: {
|
|
8114
8114
|
...yc,
|
|
@@ -8199,17 +8199,17 @@ const sd = /* @__PURE__ */ Kt(P1, [["render", B1], ["__scopeId", "data-v-76abc7a
|
|
|
8199
8199
|
t("afterHide");
|
|
8200
8200
|
}
|
|
8201
8201
|
function B() {
|
|
8202
|
-
h === void 0 && (h = el()), o.value === !0 && (
|
|
8202
|
+
h === void 0 && (h = el()), o.value === !0 && (jn[i.group] = h);
|
|
8203
8203
|
const N = me(o, (J) => {
|
|
8204
|
-
J === !0 ?
|
|
8204
|
+
J === !0 ? jn[i.group] = h : jn[i.group] === h && delete jn[i.group];
|
|
8205
8205
|
}), H = me(
|
|
8206
|
-
() =>
|
|
8206
|
+
() => jn[i.group],
|
|
8207
8207
|
(J, ye) => {
|
|
8208
8208
|
ye === h && J !== void 0 && J !== h && u();
|
|
8209
8209
|
}
|
|
8210
8210
|
);
|
|
8211
8211
|
d = () => {
|
|
8212
|
-
N(), H(),
|
|
8212
|
+
N(), H(), jn[i.group] === h && delete jn[i.group], d = void 0;
|
|
8213
8213
|
};
|
|
8214
8214
|
}
|
|
8215
8215
|
function R() {
|
|
@@ -10392,7 +10392,7 @@ class To {
|
|
|
10392
10392
|
this.ins == -1 ? this.forward(e) : e == this.ins ? this.next() : (this.ins -= e, this.off += e);
|
|
10393
10393
|
}
|
|
10394
10394
|
}
|
|
10395
|
-
class
|
|
10395
|
+
class Xn {
|
|
10396
10396
|
constructor(e, t, n) {
|
|
10397
10397
|
this.from = e, this.to = t, this.flags = n;
|
|
10398
10398
|
}
|
|
@@ -10449,7 +10449,7 @@ class $n {
|
|
|
10449
10449
|
*/
|
|
10450
10450
|
map(e, t = -1) {
|
|
10451
10451
|
let n, r;
|
|
10452
|
-
return this.empty ? n = r = e.mapPos(this.from, t) : (n = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), n == this.from && r == this.to ? this : new
|
|
10452
|
+
return this.empty ? n = r = e.mapPos(this.from, t) : (n = e.mapPos(this.from, 1), r = e.mapPos(this.to, -1)), n == this.from && r == this.to ? this : new Xn(n, r, this.flags);
|
|
10453
10453
|
}
|
|
10454
10454
|
/**
|
|
10455
10455
|
Extend this range to cover at least `from` to `to`.
|
|
@@ -10485,7 +10485,7 @@ class $n {
|
|
|
10485
10485
|
@internal
|
|
10486
10486
|
*/
|
|
10487
10487
|
static create(e, t, n) {
|
|
10488
|
-
return new
|
|
10488
|
+
return new Xn(e, t, n);
|
|
10489
10489
|
}
|
|
10490
10490
|
}
|
|
10491
10491
|
class K {
|
|
@@ -10555,7 +10555,7 @@ class K {
|
|
|
10555
10555
|
static fromJSON(e) {
|
|
10556
10556
|
if (!e || !Array.isArray(e.ranges) || typeof e.main != "number" || e.main >= e.ranges.length)
|
|
10557
10557
|
throw new RangeError("Invalid JSON representation for EditorSelection");
|
|
10558
|
-
return new K(e.ranges.map((t) =>
|
|
10558
|
+
return new K(e.ranges.map((t) => Xn.fromJSON(t)), e.main);
|
|
10559
10559
|
}
|
|
10560
10560
|
/**
|
|
10561
10561
|
Create a selection holding a single range.
|
|
@@ -10583,14 +10583,14 @@ class K {
|
|
|
10583
10583
|
safely ignore the optional arguments in most situations.
|
|
10584
10584
|
*/
|
|
10585
10585
|
static cursor(e, t = 0, n, r) {
|
|
10586
|
-
return
|
|
10586
|
+
return Xn.create(e, e, (t == 0 ? 0 : t < 0 ? 8 : 16) | (n == null ? 7 : Math.min(6, n)) | (r ?? 16777215) << 6);
|
|
10587
10587
|
}
|
|
10588
10588
|
/**
|
|
10589
10589
|
Create a selection range.
|
|
10590
10590
|
*/
|
|
10591
10591
|
static range(e, t, n, r) {
|
|
10592
10592
|
let o = (n ?? 16777215) << 6 | (r == null ? 7 : Math.min(6, r));
|
|
10593
|
-
return t < e ?
|
|
10593
|
+
return t < e ? Xn.create(t, e, 48 | o) : Xn.create(e, t, (t > e ? 8 : 0) | o);
|
|
10594
10594
|
}
|
|
10595
10595
|
/**
|
|
10596
10596
|
@internal
|
|
@@ -10800,7 +10800,7 @@ class At {
|
|
|
10800
10800
|
return this;
|
|
10801
10801
|
}
|
|
10802
10802
|
}
|
|
10803
|
-
const
|
|
10803
|
+
const Kn = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
|
|
10804
10804
|
function to(i) {
|
|
10805
10805
|
return (e) => new Og(e, i);
|
|
10806
10806
|
}
|
|
@@ -10809,26 +10809,26 @@ const dr = {
|
|
|
10809
10809
|
The highest precedence level, for extensions that should end up
|
|
10810
10810
|
near the start of the precedence ordering.
|
|
10811
10811
|
*/
|
|
10812
|
-
highest: /* @__PURE__ */ to(
|
|
10812
|
+
highest: /* @__PURE__ */ to(Kn.highest),
|
|
10813
10813
|
/**
|
|
10814
10814
|
A higher-than-default precedence, for extensions that should
|
|
10815
10815
|
come before those with default precedence.
|
|
10816
10816
|
*/
|
|
10817
|
-
high: /* @__PURE__ */ to(
|
|
10817
|
+
high: /* @__PURE__ */ to(Kn.high),
|
|
10818
10818
|
/**
|
|
10819
10819
|
The default precedence, which is also used for extensions
|
|
10820
10820
|
without an explicit precedence.
|
|
10821
10821
|
*/
|
|
10822
|
-
default: /* @__PURE__ */ to(
|
|
10822
|
+
default: /* @__PURE__ */ to(Kn.default),
|
|
10823
10823
|
/**
|
|
10824
10824
|
A lower-than-default precedence.
|
|
10825
10825
|
*/
|
|
10826
|
-
low: /* @__PURE__ */ to(
|
|
10826
|
+
low: /* @__PURE__ */ to(Kn.low),
|
|
10827
10827
|
/**
|
|
10828
10828
|
The lowest precedence level. Meant for things that should end up
|
|
10829
10829
|
near the end of the extension order.
|
|
10830
10830
|
*/
|
|
10831
|
-
lowest: /* @__PURE__ */ to(
|
|
10831
|
+
lowest: /* @__PURE__ */ to(Kn.lowest)
|
|
10832
10832
|
};
|
|
10833
10833
|
class Og {
|
|
10834
10834
|
constructor(e, t) {
|
|
@@ -10928,7 +10928,7 @@ function Rx(i, e, t) {
|
|
|
10928
10928
|
else if (s instanceof At)
|
|
10929
10929
|
n[l].push(s), s.provides && o(s.provides, l);
|
|
10930
10930
|
else if (s instanceof js)
|
|
10931
|
-
n[l].push(s), s.facet.extensions && o(s.facet.extensions,
|
|
10931
|
+
n[l].push(s), s.facet.extensions && o(s.facet.extensions, Kn.default);
|
|
10932
10932
|
else {
|
|
10933
10933
|
let u = s.extension;
|
|
10934
10934
|
if (!u)
|
|
@@ -10936,7 +10936,7 @@ function Rx(i, e, t) {
|
|
|
10936
10936
|
o(u, l);
|
|
10937
10937
|
}
|
|
10938
10938
|
}
|
|
10939
|
-
return o(i,
|
|
10939
|
+
return o(i, Kn.default), n.reduce((s, l) => s.concat(l));
|
|
10940
10940
|
}
|
|
10941
10941
|
function po(i, e) {
|
|
10942
10942
|
if (e & 1)
|
|
@@ -12109,7 +12109,7 @@ function Cu(i, e, t, n) {
|
|
|
12109
12109
|
return n === !0 ? -1 : i.length;
|
|
12110
12110
|
}
|
|
12111
12111
|
const Mu = "ͼ", yd = typeof Symbol > "u" ? "__" + Mu : Symbol.for(Mu), Au = typeof Symbol > "u" ? "__styleSet" + Math.floor(Math.random() * 1e8) : Symbol("styleSet"), bd = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : {};
|
|
12112
|
-
class
|
|
12112
|
+
class Bn {
|
|
12113
12113
|
// :: (Object<Style>, ?{finish: ?(string) → string})
|
|
12114
12114
|
// Create a style module from the given spec.
|
|
12115
12115
|
//
|
|
@@ -12214,7 +12214,7 @@ class Qx {
|
|
|
12214
12214
|
this.styleTag && this.styleTag.getAttribute("nonce") != e && this.styleTag.setAttribute("nonce", e);
|
|
12215
12215
|
}
|
|
12216
12216
|
}
|
|
12217
|
-
var
|
|
12217
|
+
var Rn = {
|
|
12218
12218
|
8: "Backspace",
|
|
12219
12219
|
9: "Tab",
|
|
12220
12220
|
10: "Enter",
|
|
@@ -12293,13 +12293,13 @@ var En = {
|
|
|
12293
12293
|
221: "}",
|
|
12294
12294
|
222: '"'
|
|
12295
12295
|
}, Ux = typeof navigator < "u" && /Mac/.test(navigator.platform), Kx = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
12296
|
-
for (var Ft = 0; Ft < 10; Ft++)
|
|
12297
|
-
for (var Ft = 1; Ft <= 24; Ft++)
|
|
12296
|
+
for (var Ft = 0; Ft < 10; Ft++) Rn[48 + Ft] = Rn[96 + Ft] = String(Ft);
|
|
12297
|
+
for (var Ft = 1; Ft <= 24; Ft++) Rn[Ft + 111] = "F" + Ft;
|
|
12298
12298
|
for (var Ft = 65; Ft <= 90; Ft++)
|
|
12299
|
-
|
|
12300
|
-
for (var qa in
|
|
12299
|
+
Rn[Ft] = String.fromCharCode(Ft + 32), qo[Ft] = String.fromCharCode(Ft);
|
|
12300
|
+
for (var qa in Rn) qo.hasOwnProperty(qa) || (qo[qa] = Rn[qa]);
|
|
12301
12301
|
function Yx(i) {
|
|
12302
|
-
var e = Ux && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || Kx && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? qo :
|
|
12302
|
+
var e = Ux && i.metaKey && i.shiftKey && !i.ctrlKey && !i.altKey || Kx && i.shiftKey && i.key && i.key.length == 1 || i.key == "Unidentified", t = !e && i.key || (i.shiftKey ? qo : Rn)[i.keyCode] || i.key || "Unidentified";
|
|
12303
12303
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
12304
12304
|
}
|
|
12305
12305
|
function Ge() {
|
|
@@ -12505,22 +12505,22 @@ class Zx {
|
|
|
12505
12505
|
this.anchorNode = e, this.anchorOffset = t, this.focusNode = n, this.focusOffset = r;
|
|
12506
12506
|
}
|
|
12507
12507
|
}
|
|
12508
|
-
let
|
|
12509
|
-
ue.safari && ue.safari_version >= 26 && (
|
|
12508
|
+
let Un = null;
|
|
12509
|
+
ue.safari && ue.safari_version >= 26 && (Un = !1);
|
|
12510
12510
|
function Hg(i) {
|
|
12511
12511
|
if (i.setActive)
|
|
12512
12512
|
return i.setActive();
|
|
12513
|
-
if (
|
|
12514
|
-
return i.focus(
|
|
12513
|
+
if (Un)
|
|
12514
|
+
return i.focus(Un);
|
|
12515
12515
|
let e = [];
|
|
12516
12516
|
for (let t = i; t && (e.push(t, t.scrollTop, t.scrollLeft), t != t.ownerDocument); t = t.parentNode)
|
|
12517
12517
|
;
|
|
12518
|
-
if (i.focus(
|
|
12518
|
+
if (i.focus(Un == null ? {
|
|
12519
12519
|
get preventScroll() {
|
|
12520
|
-
return
|
|
12520
|
+
return Un = { preventScroll: !0 }, !0;
|
|
12521
12521
|
}
|
|
12522
|
-
} : void 0), !
|
|
12523
|
-
|
|
12522
|
+
} : void 0), !Un) {
|
|
12523
|
+
Un = !1;
|
|
12524
12524
|
for (let t = 0; t < e.length; ) {
|
|
12525
12525
|
let n = e[t++], r = e[t++], o = e[t++];
|
|
12526
12526
|
n.scrollTop != r && (n.scrollTop = r), n.scrollLeft != o && (n.scrollLeft = o);
|
|
@@ -13236,7 +13236,7 @@ class ke extends sr {
|
|
|
13236
13236
|
*/
|
|
13237
13237
|
static widget(e) {
|
|
13238
13238
|
let t = Math.max(-1e4, Math.min(1e4, e.side || 0)), n = !!e.block;
|
|
13239
|
-
return t += n && !e.inlineOrder ? t > 0 ? 3e8 : -4e8 : t > 0 ? 1e8 : -1e8, new
|
|
13239
|
+
return t += n && !e.inlineOrder ? t > 0 ? 3e8 : -4e8 : t > 0 ? 1e8 : -1e8, new En(e, t, t, n, e.widget || null, !1);
|
|
13240
13240
|
}
|
|
13241
13241
|
/**
|
|
13242
13242
|
Create a replace decoration which replaces the given range with
|
|
@@ -13250,7 +13250,7 @@ class ke extends sr {
|
|
|
13250
13250
|
let { start: o, end: s } = $g(e, t);
|
|
13251
13251
|
n = (o ? t ? -3e8 : -1 : 5e8) - 1, r = (s ? t ? 2e8 : 1 : -6e8) + 1;
|
|
13252
13252
|
}
|
|
13253
|
-
return new
|
|
13253
|
+
return new En(e, n, r, t, e.widget || null, !0);
|
|
13254
13254
|
}
|
|
13255
13255
|
/**
|
|
13256
13256
|
Create a line decoration, which can add DOM attributes to the
|
|
@@ -13306,7 +13306,7 @@ class Xo extends ke {
|
|
|
13306
13306
|
}
|
|
13307
13307
|
Xo.prototype.mapMode = ti.TrackBefore;
|
|
13308
13308
|
Xo.prototype.point = !0;
|
|
13309
|
-
class
|
|
13309
|
+
class En extends ke {
|
|
13310
13310
|
constructor(e, t, n, r, o, s) {
|
|
13311
13311
|
super(t, n, o, e), this.block = r, this.isReplace = s, this.mapMode = r ? t <= 0 ? ti.TrackBefore : ti.TrackAfter : ti.TrackDel;
|
|
13312
13312
|
}
|
|
@@ -13318,7 +13318,7 @@ class Ln extends ke {
|
|
|
13318
13318
|
return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
|
|
13319
13319
|
}
|
|
13320
13320
|
eq(e) {
|
|
13321
|
-
return e instanceof
|
|
13321
|
+
return e instanceof En && lk(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide;
|
|
13322
13322
|
}
|
|
13323
13323
|
range(e, t = e) {
|
|
13324
13324
|
if (this.isReplace && (e > t || e == t && this.startSide > 0 && this.endSide <= 0))
|
|
@@ -13328,7 +13328,7 @@ class Ln extends ke {
|
|
|
13328
13328
|
return super.range(e, t);
|
|
13329
13329
|
}
|
|
13330
13330
|
}
|
|
13331
|
-
|
|
13331
|
+
En.prototype.point = !0;
|
|
13332
13332
|
function $g(i, e = !1) {
|
|
13333
13333
|
let { inclusiveStart: t, inclusiveEnd: n } = i;
|
|
13334
13334
|
return t == null && (t = i.inclusive), n == null && (n = i.inclusive), { start: t ?? e, end: n ?? e };
|
|
@@ -13570,14 +13570,14 @@ class yo {
|
|
|
13570
13570
|
this.buildText(t - e, n, r), this.pos = t, this.openStart < 0 && (this.openStart = r);
|
|
13571
13571
|
}
|
|
13572
13572
|
point(e, t, n, r, o, s) {
|
|
13573
|
-
if (this.disallowBlockEffectsFor[s] && n instanceof
|
|
13573
|
+
if (this.disallowBlockEffectsFor[s] && n instanceof En) {
|
|
13574
13574
|
if (n.block)
|
|
13575
13575
|
throw new RangeError("Block decorations may not be specified via plugins");
|
|
13576
13576
|
if (t > this.doc.lineAt(this.pos).to)
|
|
13577
13577
|
throw new RangeError("Decorations that replace line breaks may not be specified via plugins");
|
|
13578
13578
|
}
|
|
13579
13579
|
let l = t - e;
|
|
13580
|
-
if (n instanceof
|
|
13580
|
+
if (n instanceof En)
|
|
13581
13581
|
if (n.block)
|
|
13582
13582
|
n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new dn(n.widget || jr.block, l, n));
|
|
13583
13583
|
else {
|
|
@@ -15657,7 +15657,7 @@ class Wi {
|
|
|
15657
15657
|
associated with it.
|
|
15658
15658
|
*/
|
|
15659
15659
|
get widget() {
|
|
15660
|
-
return this._content instanceof
|
|
15660
|
+
return this._content instanceof En ? this._content.widget : null;
|
|
15661
15661
|
}
|
|
15662
15662
|
/**
|
|
15663
15663
|
If this is a textblock, this holds the number of line breaks
|
|
@@ -16429,9 +16429,9 @@ function co(i, e) {
|
|
|
16429
16429
|
let t = e.toDOM(i.top), n = e.toDOM(i.bottom);
|
|
16430
16430
|
return new Wi(i.from, i.length, t, n - t, Array.isArray(i._content) ? i._content.map((r) => co(r, e)) : i._content);
|
|
16431
16431
|
}
|
|
16432
|
-
const Ss = /* @__PURE__ */ fe.define({ combine: (i) => i.join(" ") }), zu = /* @__PURE__ */ fe.define({ combine: (i) => i.indexOf(!0) > -1 }), ju = /* @__PURE__ */
|
|
16432
|
+
const Ss = /* @__PURE__ */ fe.define({ combine: (i) => i.join(" ") }), zu = /* @__PURE__ */ fe.define({ combine: (i) => i.indexOf(!0) > -1 }), ju = /* @__PURE__ */ Bn.newName(), Bp = /* @__PURE__ */ Bn.newName(), Rp = /* @__PURE__ */ Bn.newName(), Ep = { "&light": "." + Bp, "&dark": "." + Rp };
|
|
16433
16433
|
function Wu(i, e, t) {
|
|
16434
|
-
return new
|
|
16434
|
+
return new Bn(e, {
|
|
16435
16435
|
finish(n) {
|
|
16436
16436
|
return /&/.test(n) ? n.replace(/&\w*/, (r) => {
|
|
16437
16437
|
if (r == "&")
|
|
@@ -17405,7 +17405,7 @@ class ce {
|
|
|
17405
17405
|
mountStyles() {
|
|
17406
17406
|
this.styleModules = this.state.facet(ao);
|
|
17407
17407
|
let e = this.state.facet(ce.cspNonce);
|
|
17408
|
-
|
|
17408
|
+
Bn.mount(this.root, this.styleModules.concat(gw).reverse(), e ? { nonce: e } : void 0);
|
|
17409
17409
|
}
|
|
17410
17410
|
readMeasured() {
|
|
17411
17411
|
if (this.updateState == 2)
|
|
@@ -17807,7 +17807,7 @@ class ce {
|
|
|
17807
17807
|
`&light` when a light theme is active).
|
|
17808
17808
|
*/
|
|
17809
17809
|
static theme(e, t) {
|
|
17810
|
-
let n =
|
|
17810
|
+
let n = Bn.newName(), r = [Ss.of(n), ao.of(Wu(`.${n}`, e))];
|
|
17811
17811
|
return t && t.dark && r.push(zu.of(!0)), r;
|
|
17812
17812
|
}
|
|
17813
17813
|
/**
|
|
@@ -17982,7 +17982,7 @@ function Ip(i, e, t, n) {
|
|
|
17982
17982
|
}, f = i[n], m, p;
|
|
17983
17983
|
return f && (d(f[l + Cs(r, e, !s)]) ? a = !0 : s && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
17984
17984
|
!(ue.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
17985
|
-
!(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m =
|
|
17985
|
+
!(ue.mac && e.altKey && !(e.ctrlKey || e.metaKey)) && (m = Rn[e.keyCode]) && m != r ? (d(f[l + Cs(m, e, !0)]) || e.shiftKey && (p = qo[e.keyCode]) != r && p != m && d(f[l + Cs(p, e, !1)])) && (a = !0) : s && e.shiftKey && d(f[l + Cs(r, e, !0)]) && (a = !0), !a && d(f._any) && (a = !0)), u && (a = !0), a && c && e.stopPropagation(), Qu = null, a;
|
|
17986
17986
|
}
|
|
17987
17987
|
class es {
|
|
17988
17988
|
/**
|
|
@@ -19864,7 +19864,7 @@ class Wc {
|
|
|
19864
19864
|
return new Wc(this.buffer, this.index);
|
|
19865
19865
|
}
|
|
19866
19866
|
}
|
|
19867
|
-
class
|
|
19867
|
+
class Ln {
|
|
19868
19868
|
/**
|
|
19869
19869
|
Create a tree buffer.
|
|
19870
19870
|
*/
|
|
@@ -19917,7 +19917,7 @@ class In {
|
|
|
19917
19917
|
let u = o[a++] = r[l++] - n;
|
|
19918
19918
|
o[a++] = r[l++] - e, s = Math.max(s, u);
|
|
19919
19919
|
}
|
|
19920
|
-
return new
|
|
19920
|
+
return new Ln(o, s, this.set);
|
|
19921
19921
|
}
|
|
19922
19922
|
}
|
|
19923
19923
|
function Jp(i, e, t, n) {
|
|
@@ -20009,7 +20009,7 @@ class Mi extends Xp {
|
|
|
20009
20009
|
for (let { children: l, positions: a } = s._tree, u = t > 0 ? l.length : -1; e != u; e += t) {
|
|
20010
20010
|
let c = l[e], h = a[e] + s.from;
|
|
20011
20011
|
if (Jp(r, n, h, h + c.length)) {
|
|
20012
|
-
if (c instanceof
|
|
20012
|
+
if (c instanceof Ln) {
|
|
20013
20013
|
if (o & Tt.ExcludeBuffers)
|
|
20014
20014
|
continue;
|
|
20015
20015
|
let d = c.findChild(0, c.buffer.length, t, n - h, r);
|
|
@@ -20450,7 +20450,7 @@ class Ju {
|
|
|
20450
20450
|
if (t > -1)
|
|
20451
20451
|
for (let o = t + e, s = e < 0 ? -1 : n._tree.children.length; o != s; o += e) {
|
|
20452
20452
|
let l = n._tree.children[o];
|
|
20453
|
-
if (this.mode & Tt.IncludeAnonymous || l instanceof
|
|
20453
|
+
if (this.mode & Tt.IncludeAnonymous || l instanceof Ln || !l.type.isAnonymous || Qc(l))
|
|
20454
20454
|
return !1;
|
|
20455
20455
|
}
|
|
20456
20456
|
return !0;
|
|
@@ -20580,7 +20580,7 @@ class Ju {
|
|
|
20580
20580
|
}
|
|
20581
20581
|
}
|
|
20582
20582
|
function Qc(i) {
|
|
20583
|
-
return i.children.some((e) => e instanceof
|
|
20583
|
+
return i.children.some((e) => e instanceof Ln || !e.type.isAnonymous || Qc(e));
|
|
20584
20584
|
}
|
|
20585
20585
|
function qS(i) {
|
|
20586
20586
|
var e;
|
|
@@ -20605,7 +20605,7 @@ function qS(i) {
|
|
|
20605
20605
|
let x = new Uint16Array(J.size - J.skip), v = l.pos - J.size, A = x.length;
|
|
20606
20606
|
for (; l.pos > v; )
|
|
20607
20607
|
A = k(J.start, x, A);
|
|
20608
|
-
H = new
|
|
20608
|
+
H = new Ln(x, q - J.start, n), ye = J.start - C;
|
|
20609
20609
|
} else {
|
|
20610
20610
|
let x = l.pos - _;
|
|
20611
20611
|
l.next();
|
|
@@ -20636,7 +20636,7 @@ function qS(i) {
|
|
|
20636
20636
|
let R = new Uint16Array(E * 4), q = z[z.length - 2];
|
|
20637
20637
|
for (let _ = z.length - 3, I = 0; _ >= 0; _ -= 3)
|
|
20638
20638
|
R[I++] = z[_], R[I++] = z[_ + 1] - q, R[I++] = z[_ + 2] - q, R[I++] = I;
|
|
20639
|
-
O.push(new
|
|
20639
|
+
O.push(new Ln(R, z[2] - q, n)), V.push(q - C);
|
|
20640
20640
|
}
|
|
20641
20641
|
}
|
|
20642
20642
|
function f(C, D) {
|
|
@@ -20713,7 +20713,7 @@ function qS(i) {
|
|
|
20713
20713
|
}
|
|
20714
20714
|
const pf = /* @__PURE__ */ new WeakMap();
|
|
20715
20715
|
function Js(i, e) {
|
|
20716
|
-
if (!i.isAnonymous || e instanceof
|
|
20716
|
+
if (!i.isAnonymous || e instanceof Ln || e.type != i)
|
|
20717
20717
|
return 1;
|
|
20718
20718
|
let t = pf.get(e);
|
|
20719
20719
|
if (t == null) {
|
|
@@ -21101,7 +21101,7 @@ function FS(i) {
|
|
|
21101
21101
|
e = e.next;
|
|
21102
21102
|
return e || null;
|
|
21103
21103
|
}
|
|
21104
|
-
const se = ki.define, Ds = se(), wn = se(), vf = se(wn), yf = se(wn), Sn = se(), qs = se(Sn), za = se(Sn), Hi = se(),
|
|
21104
|
+
const se = ki.define, Ds = se(), wn = se(), vf = se(wn), yf = se(wn), Sn = se(), qs = se(Sn), za = se(Sn), Hi = se(), Wn = se(Hi), Fi = se(), Ni = se(), Xu = se(), no = se(Xu), Ps = se(), W = {
|
|
21105
21105
|
/**
|
|
21106
21106
|
A comment.
|
|
21107
21107
|
*/
|
|
@@ -21333,31 +21333,31 @@ const se = ki.define, Ds = se(), wn = se(), vf = se(wn), yf = se(wn), Sn = se(),
|
|
|
21333
21333
|
/**
|
|
21334
21334
|
[Content](#highlight.tags.content) that represents a heading.
|
|
21335
21335
|
*/
|
|
21336
|
-
heading:
|
|
21336
|
+
heading: Wn,
|
|
21337
21337
|
/**
|
|
21338
21338
|
A level 1 [heading](#highlight.tags.heading).
|
|
21339
21339
|
*/
|
|
21340
|
-
heading1: se(
|
|
21340
|
+
heading1: se(Wn),
|
|
21341
21341
|
/**
|
|
21342
21342
|
A level 2 [heading](#highlight.tags.heading).
|
|
21343
21343
|
*/
|
|
21344
|
-
heading2: se(
|
|
21344
|
+
heading2: se(Wn),
|
|
21345
21345
|
/**
|
|
21346
21346
|
A level 3 [heading](#highlight.tags.heading).
|
|
21347
21347
|
*/
|
|
21348
|
-
heading3: se(
|
|
21348
|
+
heading3: se(Wn),
|
|
21349
21349
|
/**
|
|
21350
21350
|
A level 4 [heading](#highlight.tags.heading).
|
|
21351
21351
|
*/
|
|
21352
|
-
heading4: se(
|
|
21352
|
+
heading4: se(Wn),
|
|
21353
21353
|
/**
|
|
21354
21354
|
A level 5 [heading](#highlight.tags.heading).
|
|
21355
21355
|
*/
|
|
21356
|
-
heading5: se(
|
|
21356
|
+
heading5: se(Wn),
|
|
21357
21357
|
/**
|
|
21358
21358
|
A level 6 [heading](#highlight.tags.heading).
|
|
21359
21359
|
*/
|
|
21360
|
-
heading6: se(
|
|
21360
|
+
heading6: se(Wn),
|
|
21361
21361
|
/**
|
|
21362
21362
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
21363
21363
|
*/
|
|
@@ -21523,7 +21523,7 @@ class qi {
|
|
|
21523
21523
|
this.data = e, this.name = r, Ee.prototype.hasOwnProperty("tree") || Object.defineProperty(Ee.prototype, "tree", { get() {
|
|
21524
21524
|
return Qt(this);
|
|
21525
21525
|
} }), this.parser = t, this.extension = [
|
|
21526
|
-
|
|
21526
|
+
In.of(this),
|
|
21527
21527
|
Ee.languageData.of((o, s, l) => {
|
|
21528
21528
|
let a = bf(o, s, l), u = a.type.prop(Mr);
|
|
21529
21529
|
if (!u)
|
|
@@ -21553,7 +21553,7 @@ class qi {
|
|
|
21553
21553
|
in this language, when those exist.
|
|
21554
21554
|
*/
|
|
21555
21555
|
findRegions(e) {
|
|
21556
|
-
let t = e.facet(
|
|
21556
|
+
let t = e.facet(In);
|
|
21557
21557
|
if ((t == null ? void 0 : t.data) == this.data)
|
|
21558
21558
|
return [{ from: 0, to: e.doc.length }];
|
|
21559
21559
|
if (!t || !t.allowsNesting)
|
|
@@ -21595,7 +21595,7 @@ class qi {
|
|
|
21595
21595
|
}
|
|
21596
21596
|
qi.setState = /* @__PURE__ */ Ae.define();
|
|
21597
21597
|
function bf(i, e, t) {
|
|
21598
|
-
let n = i.facet(
|
|
21598
|
+
let n = i.facet(In), r = Qt(i).topNode;
|
|
21599
21599
|
if (!n || n.allowsNesting)
|
|
21600
21600
|
for (let o = r; o; o = o.enter(e, t, Tt.ExcludeBuffers))
|
|
21601
21601
|
o.type.isTop && (r = o);
|
|
@@ -21819,7 +21819,7 @@ class Qr {
|
|
|
21819
21819
|
return t.work(20, n) || t.takeTree(), new Qr(t);
|
|
21820
21820
|
}
|
|
21821
21821
|
static init(e) {
|
|
21822
|
-
let t = Math.min(3e3, e.doc.length), n = xl.create(e.facet(
|
|
21822
|
+
let t = Math.min(3e3, e.doc.length), n = xl.create(e.facet(In).parser, e, { from: 0, to: t });
|
|
21823
21823
|
return n.work(20, t) || n.takeTree(), new Qr(n);
|
|
21824
21824
|
}
|
|
21825
21825
|
}
|
|
@@ -21829,7 +21829,7 @@ qi.state = /* @__PURE__ */ At.define({
|
|
|
21829
21829
|
for (let t of e.effects)
|
|
21830
21830
|
if (t.is(qi.setState))
|
|
21831
21831
|
return t.value;
|
|
21832
|
-
return e.startState.facet(
|
|
21832
|
+
return e.startState.facet(In) != e.state.facet(In) ? Qr.init(e.state) : i.apply(e);
|
|
21833
21833
|
}
|
|
21834
21834
|
});
|
|
21835
21835
|
let nv = (i) => {
|
|
@@ -21894,7 +21894,7 @@ const Wa = typeof navigator < "u" && (!((ja = navigator.scheduling) === null ||
|
|
|
21894
21894
|
eventHandlers: { focus() {
|
|
21895
21895
|
this.scheduleWork();
|
|
21896
21896
|
} }
|
|
21897
|
-
}),
|
|
21897
|
+
}), In = /* @__PURE__ */ fe.define({
|
|
21898
21898
|
combine(i) {
|
|
21899
21899
|
return i.length ? i[0] : null;
|
|
21900
21900
|
},
|
|
@@ -22388,7 +22388,7 @@ function mC(i = {}) {
|
|
|
22388
22388
|
this.from = s.viewport.from, this.markers = this.buildMarkers(s);
|
|
22389
22389
|
}
|
|
22390
22390
|
update(s) {
|
|
22391
|
-
(s.docChanged || s.viewportChanged || s.startState.facet(
|
|
22391
|
+
(s.docChanged || s.viewportChanged || s.startState.facet(In) != s.state.facet(In) || s.startState.field(cr, !1) != s.state.field(cr, !1) || Qt(s.startState) != Qt(s.state) || e.foldingChanged(s)) && (this.markers = this.buildMarkers(s.view));
|
|
22392
22392
|
}
|
|
22393
22393
|
buildMarkers(s) {
|
|
22394
22394
|
let l = new mn();
|
|
@@ -22446,7 +22446,7 @@ class is {
|
|
|
22446
22446
|
this.specs = e;
|
|
22447
22447
|
let n;
|
|
22448
22448
|
function r(l) {
|
|
22449
|
-
let a =
|
|
22449
|
+
let a = Bn.newName();
|
|
22450
22450
|
return (n || (n = /* @__PURE__ */ Object.create(null)))["." + a] = l, a;
|
|
22451
22451
|
}
|
|
22452
22452
|
const o = typeof t.all == "string" ? t.all : t.all ? r(t.all) : void 0, s = t.scope;
|
|
@@ -22455,7 +22455,7 @@ class is {
|
|
|
22455
22455
|
class: l.class || r(Object.assign({}, l, { tag: null }))
|
|
22456
22456
|
})), {
|
|
22457
22457
|
all: o
|
|
22458
|
-
}).style, this.module = n ? new
|
|
22458
|
+
}).style, this.module = n ? new Bn(n) : null, this.themeType = t.themeType;
|
|
22459
22459
|
}
|
|
22460
22460
|
/**
|
|
22461
22461
|
Create a highlighter style that associates the given styles to
|
|
@@ -23145,7 +23145,7 @@ function Bv(i, e) {
|
|
|
23145
23145
|
return i.dispatch(Ri(n, r), { effects: o }), !0;
|
|
23146
23146
|
}
|
|
23147
23147
|
const Of = (i) => Bv(i, !1), nc = (i) => Bv(i, !0);
|
|
23148
|
-
function
|
|
23148
|
+
function Vn(i, e, t) {
|
|
23149
23149
|
let n = i.lineBlockAt(e.head), r = i.moveToLineBoundary(e, t);
|
|
23150
23150
|
if (r.head == e.head && r.head != (t ? n.to : n.from) && (r = i.moveToLineBoundary(e, t, !1)), !t && r.head == n.from && n.length) {
|
|
23151
23151
|
let o = /^\s*/.exec(i.state.sliceDoc(n.from, Math.min(n.from + 100, n.to)))[0].length;
|
|
@@ -23153,7 +23153,7 @@ function Fn(i, e, t) {
|
|
|
23153
23153
|
}
|
|
23154
23154
|
return r;
|
|
23155
23155
|
}
|
|
23156
|
-
const iM = (i) => Ei(i, (e) =>
|
|
23156
|
+
const iM = (i) => Ei(i, (e) => Vn(i, e, !0)), nM = (i) => Ei(i, (e) => Vn(i, e, !1)), rM = (i) => Ei(i, (e) => Vn(i, e, !Yt(i))), oM = (i) => Ei(i, (e) => Vn(i, e, Yt(i))), sM = (i) => Ei(i, (e) => K.cursor(i.lineBlockAt(e.head).from, 1)), lM = (i) => Ei(i, (e) => K.cursor(i.lineBlockAt(e.head).to, -1));
|
|
23157
23157
|
function aM(i, e, t) {
|
|
23158
23158
|
let n = !1, r = Jr(i.selection, (o) => {
|
|
23159
23159
|
let s = Qi(i, o.head, -1) || Qi(i, o.head, 1) || o.head > 0 && Qi(i, o.head - 1, 1) || o.head < i.doc.length && Qi(i, o.head + 1, -1);
|
|
@@ -23188,7 +23188,7 @@ const Fv = (i) => Vv(i, !1), Nv = (i) => Vv(i, !0);
|
|
|
23188
23188
|
function Hv(i, e) {
|
|
23189
23189
|
return Ti(i, (t) => i.moveVertically(t, e, _v(i).height));
|
|
23190
23190
|
}
|
|
23191
|
-
const Tf = (i) => Hv(i, !1), Df = (i) => Hv(i, !0), mM = (i) => Ti(i, (e) =>
|
|
23191
|
+
const Tf = (i) => Hv(i, !1), Df = (i) => Hv(i, !0), mM = (i) => Ti(i, (e) => Vn(i, e, !0)), gM = (i) => Ti(i, (e) => Vn(i, e, !1)), pM = (i) => Ti(i, (e) => Vn(i, e, !Yt(i))), vM = (i) => Ti(i, (e) => Vn(i, e, Yt(i))), yM = (i) => Ti(i, (e) => K.cursor(i.lineBlockAt(e.head).from)), bM = (i) => Ti(i, (e) => K.cursor(i.lineBlockAt(e.head).to)), qf = ({ state: i, dispatch: e }) => (e(Ri(i, { anchor: 0 })), !0), Pf = ({ state: i, dispatch: e }) => (e(Ri(i, { anchor: i.doc.length })), !0), _f = ({ state: i, dispatch: e }) => (e(Ri(i, { anchor: i.selection.main.anchor, head: 0 })), !0), Bf = ({ state: i, dispatch: e }) => (e(Ri(i, { anchor: i.selection.main.anchor, head: i.doc.length })), !0), xM = ({ state: i, dispatch: e }) => (e(i.update({ selection: { anchor: 0, head: i.doc.length }, userEvent: "select" })), !0), kM = ({ state: i, dispatch: e }) => {
|
|
23192
23192
|
let t = ta(i).map(({ from: n, to: r }) => K.range(n, Math.min(r + 1, i.doc.length)));
|
|
23193
23193
|
return e(i.update({ selection: K.create(t), userEvent: "select" })), !0;
|
|
23194
23194
|
}, wM = ({ state: i, dispatch: e }) => {
|
|
@@ -24024,7 +24024,7 @@ class aA extends i0 {
|
|
|
24024
24024
|
r(o.value.from, o.value.to);
|
|
24025
24025
|
}
|
|
24026
24026
|
}
|
|
24027
|
-
const Fo = /* @__PURE__ */ Ae.define(), Zc = /* @__PURE__ */ Ae.define(),
|
|
24027
|
+
const Fo = /* @__PURE__ */ Ae.define(), Zc = /* @__PURE__ */ Ae.define(), _n = /* @__PURE__ */ At.define({
|
|
24028
24028
|
create(i) {
|
|
24029
24029
|
return new Ja(sc(i).create(), null);
|
|
24030
24030
|
},
|
|
@@ -24042,11 +24042,11 @@ class Ja {
|
|
|
24042
24042
|
}
|
|
24043
24043
|
const uA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch" }), cA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), hA = /* @__PURE__ */ mt.fromClass(class {
|
|
24044
24044
|
constructor(i) {
|
|
24045
|
-
this.view = i, this.decorations = this.highlight(i.state.field(
|
|
24045
|
+
this.view = i, this.decorations = this.highlight(i.state.field(_n));
|
|
24046
24046
|
}
|
|
24047
24047
|
update(i) {
|
|
24048
|
-
let e = i.state.field(
|
|
24049
|
-
(e != i.startState.field(
|
|
24048
|
+
let e = i.state.field(_n);
|
|
24049
|
+
(e != i.startState.field(_n) || i.docChanged || i.selectionSet || i.viewportChanged) && (this.decorations = this.highlight(e));
|
|
24050
24050
|
}
|
|
24051
24051
|
highlight({ query: i, panel: e }) {
|
|
24052
24052
|
if (!e || !i.spec.valid)
|
|
@@ -24068,7 +24068,7 @@ const uA = /* @__PURE__ */ ke.mark({ class: "cm-searchMatch" }), cA = /* @__PURE
|
|
|
24068
24068
|
});
|
|
24069
24069
|
function rs(i) {
|
|
24070
24070
|
return (e) => {
|
|
24071
|
-
let t = e.state.field(
|
|
24071
|
+
let t = e.state.field(_n, !1);
|
|
24072
24072
|
return t && t.query.spec.valid ? i(e, t) : o0(e);
|
|
24073
24073
|
};
|
|
24074
24074
|
}
|
|
@@ -24170,7 +24170,7 @@ function r0(i) {
|
|
|
24170
24170
|
e && e == i.root.activeElement && e.select();
|
|
24171
24171
|
}
|
|
24172
24172
|
const o0 = (i) => {
|
|
24173
|
-
let e = i.state.field(
|
|
24173
|
+
let e = i.state.field(_n, !1);
|
|
24174
24174
|
if (e && e.panel) {
|
|
24175
24175
|
let t = n0(i);
|
|
24176
24176
|
if (t && t != i.root.activeElement) {
|
|
@@ -24184,7 +24184,7 @@ const o0 = (i) => {
|
|
|
24184
24184
|
] });
|
|
24185
24185
|
return !0;
|
|
24186
24186
|
}, s0 = (i) => {
|
|
24187
|
-
let e = i.state.field(
|
|
24187
|
+
let e = i.state.field(_n, !1);
|
|
24188
24188
|
if (!e || !e.panel)
|
|
24189
24189
|
return !1;
|
|
24190
24190
|
let t = Ro(i, eh);
|
|
@@ -24201,7 +24201,7 @@ const o0 = (i) => {
|
|
|
24201
24201
|
class pA {
|
|
24202
24202
|
constructor(e) {
|
|
24203
24203
|
this.view = e;
|
|
24204
|
-
let t = this.query = e.state.field(
|
|
24204
|
+
let t = this.query = e.state.field(_n).query.spec;
|
|
24205
24205
|
this.commit = this.commit.bind(this), this.searchField = Ge("input", {
|
|
24206
24206
|
value: t.search,
|
|
24207
24207
|
placeholder: ci(e, "Find"),
|
|
@@ -24348,7 +24348,7 @@ const vA = /* @__PURE__ */ ce.baseTheme({
|
|
|
24348
24348
|
"&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
|
|
24349
24349
|
"&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
|
|
24350
24350
|
}), yA = [
|
|
24351
|
-
|
|
24351
|
+
_n,
|
|
24352
24352
|
/* @__PURE__ */ dr.low(hA),
|
|
24353
24353
|
vA
|
|
24354
24354
|
];
|
|
@@ -25304,7 +25304,7 @@ const NA = 50, HA = 1e3, zA = /* @__PURE__ */ mt.fromClass(class {
|
|
|
25304
25304
|
brackets: ["(", "[", "{", "'", '"'],
|
|
25305
25305
|
before: ")]}:;>",
|
|
25306
25306
|
stringPrefixes: []
|
|
25307
|
-
},
|
|
25307
|
+
}, $n = /* @__PURE__ */ Ae.define({
|
|
25308
25308
|
map(i, e) {
|
|
25309
25309
|
let t = e.mapPos(i, -1, ti.TrackAfter);
|
|
25310
25310
|
return t ?? void 0;
|
|
@@ -25323,7 +25323,7 @@ const d0 = /* @__PURE__ */ At.define({
|
|
|
25323
25323
|
i = i.update({ filter: (n) => n >= t.from && n <= t.to });
|
|
25324
25324
|
}
|
|
25325
25325
|
for (let t of e.effects)
|
|
25326
|
-
t.is(
|
|
25326
|
+
t.is($n) && (i = i.update({ add: [rh.range(t.value, t.value + 1)] }));
|
|
25327
25327
|
return i;
|
|
25328
25328
|
}
|
|
25329
25329
|
});
|
|
@@ -25397,13 +25397,13 @@ function ZA(i, e, t, n) {
|
|
|
25397
25397
|
if (!s.empty)
|
|
25398
25398
|
return {
|
|
25399
25399
|
changes: [{ insert: e, from: s.from }, { insert: t, from: s.to }],
|
|
25400
|
-
effects:
|
|
25400
|
+
effects: $n.of(s.to + e.length),
|
|
25401
25401
|
range: K.range(s.anchor + e.length, s.head + e.length)
|
|
25402
25402
|
};
|
|
25403
25403
|
let l = ia(i.doc, s.head);
|
|
25404
25404
|
return !l || /\s/.test(l) || n.indexOf(l) > -1 ? {
|
|
25405
25405
|
changes: { insert: e + t, from: s.head },
|
|
25406
|
-
effects:
|
|
25406
|
+
effects: $n.of(s.head + e.length),
|
|
25407
25407
|
range: K.cursor(s.head + e.length)
|
|
25408
25408
|
} : { range: r = s };
|
|
25409
25409
|
});
|
|
@@ -25427,7 +25427,7 @@ function tO(i, e, t, n) {
|
|
|
25427
25427
|
if (!l.empty)
|
|
25428
25428
|
return {
|
|
25429
25429
|
changes: [{ insert: e, from: l.from }, { insert: e, from: l.to }],
|
|
25430
|
-
effects:
|
|
25430
|
+
effects: $n.of(l.to + e.length),
|
|
25431
25431
|
range: K.range(l.anchor + e.length, l.head + e.length)
|
|
25432
25432
|
};
|
|
25433
25433
|
let a = l.head, u = ia(i.doc, a), c;
|
|
@@ -25435,7 +25435,7 @@ function tO(i, e, t, n) {
|
|
|
25435
25435
|
if (Qf(i, a))
|
|
25436
25436
|
return {
|
|
25437
25437
|
changes: { insert: e + e, from: a },
|
|
25438
|
-
effects:
|
|
25438
|
+
effects: $n.of(a + e.length),
|
|
25439
25439
|
range: K.cursor(a + e.length)
|
|
25440
25440
|
};
|
|
25441
25441
|
if (g0(i, a)) {
|
|
@@ -25449,13 +25449,13 @@ function tO(i, e, t, n) {
|
|
|
25449
25449
|
if (t && i.sliceDoc(a - 2 * e.length, a) == e + e && (c = Uf(i, a - 2 * e.length, r)) > -1 && Qf(i, c))
|
|
25450
25450
|
return {
|
|
25451
25451
|
changes: { insert: e + e + e + e, from: a },
|
|
25452
|
-
effects:
|
|
25452
|
+
effects: $n.of(a + e.length),
|
|
25453
25453
|
range: K.cursor(a + e.length)
|
|
25454
25454
|
};
|
|
25455
25455
|
if (i.charCategorizer(a)(u) != lt.Word && Uf(i, a, r) > -1 && !iO(i, a, e, r))
|
|
25456
25456
|
return {
|
|
25457
25457
|
changes: { insert: e + e, from: a },
|
|
25458
|
-
effects:
|
|
25458
|
+
effects: $n.of(a + e.length),
|
|
25459
25459
|
range: K.cursor(a + e.length)
|
|
25460
25460
|
};
|
|
25461
25461
|
}
|
|
@@ -25527,7 +25527,7 @@ class Kf {
|
|
|
25527
25527
|
this.from = e, this.to = t, this.diagnostic = n;
|
|
25528
25528
|
}
|
|
25529
25529
|
}
|
|
25530
|
-
class
|
|
25530
|
+
class Yn {
|
|
25531
25531
|
constructor(e, t, n) {
|
|
25532
25532
|
this.diagnostics = e, this.panel = t, this.selected = n;
|
|
25533
25533
|
}
|
|
@@ -25591,7 +25591,7 @@ class Gn {
|
|
|
25591
25591
|
l[y].to <= a && l.splice(y--, 1);
|
|
25592
25592
|
}
|
|
25593
25593
|
let d = s.finish();
|
|
25594
|
-
return new
|
|
25594
|
+
return new Yn(d, t, Kr(d));
|
|
25595
25595
|
}
|
|
25596
25596
|
}
|
|
25597
25597
|
function Kr(i, e = null, t = 0) {
|
|
@@ -25624,7 +25624,7 @@ function oO(i, e) {
|
|
|
25624
25624
|
}
|
|
25625
25625
|
const na = /* @__PURE__ */ Ae.define(), oh = /* @__PURE__ */ Ae.define(), b0 = /* @__PURE__ */ Ae.define(), vi = /* @__PURE__ */ At.define({
|
|
25626
25626
|
create() {
|
|
25627
|
-
return new
|
|
25627
|
+
return new Yn(ke.none, null, null);
|
|
25628
25628
|
},
|
|
25629
25629
|
update(i, e) {
|
|
25630
25630
|
if (e.docChanged && i.diagnostics.size) {
|
|
@@ -25633,13 +25633,13 @@ const na = /* @__PURE__ */ Ae.define(), oh = /* @__PURE__ */ Ae.define(), b0 = /
|
|
|
25633
25633
|
let o = e.changes.mapPos(i.selected.from, 1);
|
|
25634
25634
|
n = Kr(t, i.selected.diagnostic, o) || Kr(t, null, o);
|
|
25635
25635
|
}
|
|
25636
|
-
!t.size && r && e.state.facet(Ki).autoPanel && (r = null), i = new
|
|
25636
|
+
!t.size && r && e.state.facet(Ki).autoPanel && (r = null), i = new Yn(t, r, n);
|
|
25637
25637
|
}
|
|
25638
25638
|
for (let t of e.effects)
|
|
25639
25639
|
if (t.is(na)) {
|
|
25640
25640
|
let n = e.state.facet(Ki).autoPanel ? t.value.length ? zo.open : null : i.panel;
|
|
25641
|
-
i =
|
|
25642
|
-
} else t.is(oh) ? i = new
|
|
25641
|
+
i = Yn.init(t.value, n, e.state);
|
|
25642
|
+
} else t.is(oh) ? i = new Yn(i.diagnostics, t.value ? zo.open : null, i.selected) : t.is(b0) && (i = new Yn(i.diagnostics, i.panel, t.value));
|
|
25643
25643
|
return i;
|
|
25644
25644
|
},
|
|
25645
25645
|
provide: (i) => [
|
|
@@ -26220,24 +26220,24 @@ var CO = Object.freeze({ autofocus: !1, disabled: !1, indentWithTab: !0, tabSize
|
|
|
26220
26220
|
(function(i) {
|
|
26221
26221
|
i.Change = "change", i.Update = "update", i.Focus = "focus", i.Blur = "blur", i.Ready = "ready", i.ModelUpdate = "update:modelValue";
|
|
26222
26222
|
})(Zt || (Zt = {}));
|
|
26223
|
-
var
|
|
26224
|
-
|
|
26223
|
+
var Gn = {};
|
|
26224
|
+
Gn[Zt.Change] = function(i, e) {
|
|
26225
26225
|
return !0;
|
|
26226
|
-
},
|
|
26226
|
+
}, Gn[Zt.Update] = function(i) {
|
|
26227
26227
|
return !0;
|
|
26228
|
-
},
|
|
26228
|
+
}, Gn[Zt.Focus] = function(i) {
|
|
26229
26229
|
return !0;
|
|
26230
|
-
},
|
|
26230
|
+
}, Gn[Zt.Blur] = function(i) {
|
|
26231
26231
|
return !0;
|
|
26232
|
-
},
|
|
26232
|
+
}, Gn[Zt.Ready] = function(i) {
|
|
26233
26233
|
return !0;
|
|
26234
26234
|
};
|
|
26235
26235
|
var O0 = {};
|
|
26236
|
-
O0[Zt.ModelUpdate] =
|
|
26237
|
-
var qO = Object.assign(Object.assign({},
|
|
26236
|
+
O0[Zt.ModelUpdate] = Gn[Zt.Change];
|
|
26237
|
+
var qO = Object.assign(Object.assign({}, Gn), O0), PO = _t({ name: "VueCodemirror", props: Object.assign({}, DO), emits: Object.assign({}, qO), setup: function(i, e) {
|
|
26238
26238
|
var t = ua(), n = ua(), r = ua(), o = Object.assign(Object.assign({}, CO), jo(MO, {})), s = w(function() {
|
|
26239
26239
|
var l = {};
|
|
26240
|
-
return Object.keys(
|
|
26240
|
+
return Object.keys(Qn(i)).forEach(function(a) {
|
|
26241
26241
|
var u;
|
|
26242
26242
|
a !== "modelValue" && (l[a] = (u = i[a]) !== null && u !== void 0 ? u : o[a]);
|
|
26243
26243
|
}), l;
|
|
@@ -29269,7 +29269,7 @@ function fo(i, e = !1, t = {}) {
|
|
|
29269
29269
|
if (e && i.includes("{{") && i.includes("}}"))
|
|
29270
29270
|
return i;
|
|
29271
29271
|
const n = Number(i);
|
|
29272
|
-
return !isNaN(n) && i.trim() !== "" ? n : i.toLowerCase() === "true" ? !0 : i.toLowerCase() === "false" ? !1 : i.toLowerCase() === "null" ? null : t.treatAsVar ? { var: i } : !e && QT(i) ? { var: i } : i;
|
|
29272
|
+
return !isNaN(n) && i.trim() !== "" ? n : i.toLowerCase() === "true" ? !0 : i.toLowerCase() === "false" ? !1 : i.toLowerCase() === "null" ? null : t.treatAsVar && !e ? { var: i } : !e && QT(i) ? { var: i } : i;
|
|
29273
29273
|
}
|
|
29274
29274
|
function QT(i) {
|
|
29275
29275
|
return i.includes(".") || i.startsWith("$");
|
|
@@ -29314,7 +29314,7 @@ function mm(i, e = {}) {
|
|
|
29314
29314
|
}
|
|
29315
29315
|
function wo(i, e) {
|
|
29316
29316
|
if (typeof i != "object" || i === null)
|
|
29317
|
-
return
|
|
29317
|
+
return Zn();
|
|
29318
29318
|
const t = lh(i, e);
|
|
29319
29319
|
return t || ("and" in i && Array.isArray(i.and) ? {
|
|
29320
29320
|
id: fi(),
|
|
@@ -29363,13 +29363,13 @@ function lh(i, e) {
|
|
|
29363
29363
|
}
|
|
29364
29364
|
function UT(i, e) {
|
|
29365
29365
|
if (typeof i != "object" || i === null)
|
|
29366
|
-
return
|
|
29366
|
+
return Zn();
|
|
29367
29367
|
const t = lh(i, e);
|
|
29368
29368
|
if (t)
|
|
29369
29369
|
return t;
|
|
29370
29370
|
const n = Object.keys(i);
|
|
29371
29371
|
if (n.length === 0)
|
|
29372
|
-
return
|
|
29372
|
+
return Zn();
|
|
29373
29373
|
const r = n[0], o = i[r];
|
|
29374
29374
|
if (r === "!" && typeof o == "object" && o !== null && "in" in o) {
|
|
29375
29375
|
const a = o.in;
|
|
@@ -29385,7 +29385,7 @@ function UT(i, e) {
|
|
|
29385
29385
|
}
|
|
29386
29386
|
}
|
|
29387
29387
|
if (!Array.isArray(o))
|
|
29388
|
-
return
|
|
29388
|
+
return Zn();
|
|
29389
29389
|
if (r === "in" && o.length >= 2) {
|
|
29390
29390
|
const a = o[0], u = o[1], c = Array.isArray(u), h = typeof u == "object" && u !== null && "var" in u, d = typeof a == "object" && a !== null && "var" in a;
|
|
29391
29391
|
return c ? {
|
|
@@ -29438,7 +29438,7 @@ function UT(i, e) {
|
|
|
29438
29438
|
left: zt(o[0], e.useTemplateSyntax),
|
|
29439
29439
|
operator: l,
|
|
29440
29440
|
right: zt(o[1], e.useTemplateSyntax)
|
|
29441
|
-
} :
|
|
29441
|
+
} : Zn();
|
|
29442
29442
|
}
|
|
29443
29443
|
function zt(i, e = !1) {
|
|
29444
29444
|
if (i == null)
|
|
@@ -29457,7 +29457,7 @@ function zt(i, e = !1) {
|
|
|
29457
29457
|
}
|
|
29458
29458
|
return String(i);
|
|
29459
29459
|
}
|
|
29460
|
-
function
|
|
29460
|
+
function Zn() {
|
|
29461
29461
|
return {
|
|
29462
29462
|
id: fi(),
|
|
29463
29463
|
type: "condition",
|
|
@@ -29471,13 +29471,13 @@ function KT(i = "and") {
|
|
|
29471
29471
|
id: fi(),
|
|
29472
29472
|
type: "group",
|
|
29473
29473
|
logic: i,
|
|
29474
|
-
conditions: [
|
|
29474
|
+
conditions: [Zn()]
|
|
29475
29475
|
};
|
|
29476
29476
|
}
|
|
29477
29477
|
function gm() {
|
|
29478
29478
|
return {
|
|
29479
29479
|
logic: "and",
|
|
29480
|
-
conditions: [
|
|
29480
|
+
conditions: []
|
|
29481
29481
|
};
|
|
29482
29482
|
}
|
|
29483
29483
|
const YT = /* @__PURE__ */ _t({
|
|
@@ -29530,7 +29530,7 @@ const YT = /* @__PURE__ */ _t({
|
|
|
29530
29530
|
r(v), g.value = JSON.stringify(v, null, 2);
|
|
29531
29531
|
}
|
|
29532
29532
|
function b(v) {
|
|
29533
|
-
v.push(
|
|
29533
|
+
v.push(Zn()), y();
|
|
29534
29534
|
}
|
|
29535
29535
|
function C(v) {
|
|
29536
29536
|
v.push(KT()), y();
|
|
@@ -30744,7 +30744,7 @@ export {
|
|
|
30744
30744
|
od as QuasarTimeField,
|
|
30745
30745
|
F2 as SchemaUtils,
|
|
30746
30746
|
N2 as and,
|
|
30747
|
-
|
|
30747
|
+
Zn as createEmptyCondition,
|
|
30748
30748
|
KT as createEmptyGroup,
|
|
30749
30749
|
gm as createEmptyRoot,
|
|
30750
30750
|
E2 as createQuasarRegistry,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonlogic.d.ts","sourceRoot":"","sources":["../../src/utils/jsonlogic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,UAAU,GACV,YAAY,GACZ,UAAU,GACV,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,CAAA;AAEhB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,kBAAkB,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,cAAc,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAA;AAMzD,eAAO,MAAM,SAAS,EAAE,YAAY,EAiBnC,CAAA;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,YAAY,GAAG,SAAS,CAEhF;AAQD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAMD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,GAAE,kBAAuB,GAAG,SAAS,CAY5F;
|
|
1
|
+
{"version":3,"file":"jsonlogic.d.ts","sourceRoot":"","sources":["../../src/utils/jsonlogic.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,GAAG,GACH,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,UAAU,GACV,YAAY,GACZ,UAAU,GACV,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,GACT,YAAY,CAAA;AAEhB;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,kBAAkB,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAA;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,eAAe,GAAG,cAAc,CAAA;AAE5D;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,GAAG,IAAI,CAAA;IACnB,UAAU,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAA;AAMzD,eAAO,MAAM,SAAS,EAAE,YAAY,EAiBnC,CAAA;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,kBAAkB,GAAG,YAAY,GAAG,SAAS,CAEhF;AAQD,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAMD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,GAAE,kBAAuB,GAAG,SAAS,CAY5F;AAmMD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,GAAE,oBAAyB,GAAG,aAAa,CAsCjG;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AA6RD;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,eAAe,CAQtD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,KAAK,GAAG,IAAY,GAAG,cAAc,CAO5E;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAK/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quickflo/quickforms-quasar",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.25",
|
|
4
4
|
"description": "Quasar UI components for QuickForms - JSON Schema form generator",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@codemirror/view": "^6.38.8",
|
|
39
39
|
"vee-validate": "^4.12.0",
|
|
40
40
|
"vue-codemirror": "^6.1.1",
|
|
41
|
-
"@quickflo/quickforms
|
|
42
|
-
"@quickflo/quickforms": "1.19.
|
|
41
|
+
"@quickflo/quickforms": "1.19.25",
|
|
42
|
+
"@quickflo/quickforms-vue": "1.19.25"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@quasar/extras": "^1.17.0",
|