@quickflo/quickforms-vue 1.4.3 → 1.4.4
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/DynamicForm.vue.d.ts.map +1 -1
- package/dist/index.js +423 -423
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { provide as Xs, inject as ea, computed as B, defineComponent as fe, ref as oe, createElementBlock as
|
|
1
|
+
import { provide as Xs, inject as ea, computed as B, defineComponent as fe, ref as oe, createElementBlock as I, openBlock as q, createElementVNode as C, withDirectives as Oe, createCommentVNode as z, createTextVNode as je, toDisplayString as Q, vModelText as pt, normalizeClass as Bn, vModelDynamic as Sr, vModelCheckbox as ta, Fragment as $e, renderList as He, vModelSelect as ra, createBlock as yt, resolveDynamicComponent as na, createVNode as Jn, watch as Le, onMounted as Gn, reactive as sa, markRaw as aa, toRaw as _n } from "vue";
|
|
2
2
|
import { useField as oa, useForm as ia } from "vee-validate";
|
|
3
3
|
class la {
|
|
4
4
|
constructor() {
|
|
@@ -567,12 +567,12 @@ var yr = {};
|
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
F.kind = "func";
|
|
570
|
-
class
|
|
570
|
+
class G extends $ {
|
|
571
571
|
render(l) {
|
|
572
572
|
return "return " + super.render(l);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
G.kind = "return";
|
|
576
576
|
class T extends _ {
|
|
577
577
|
render(l) {
|
|
578
578
|
let h = "try" + super.render(l);
|
|
@@ -591,7 +591,7 @@ var yr = {};
|
|
|
591
591
|
return this.catch && L(l, this.catch.names), this.finally && L(l, this.finally.names), l;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
-
class
|
|
594
|
+
class j extends _ {
|
|
595
595
|
constructor(l) {
|
|
596
596
|
super(), this.error = l;
|
|
597
597
|
}
|
|
@@ -599,7 +599,7 @@ var yr = {};
|
|
|
599
599
|
return `catch(${this.error})` + super.render(l);
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
j.kind = "catch";
|
|
603
603
|
class V extends _ {
|
|
604
604
|
render(l) {
|
|
605
605
|
return "finally" + super.render(l);
|
|
@@ -740,10 +740,10 @@ var yr = {};
|
|
|
740
740
|
}
|
|
741
741
|
// `return` statement
|
|
742
742
|
return(l) {
|
|
743
|
-
const h = new
|
|
743
|
+
const h = new G();
|
|
744
744
|
if (this._blockNode(h), this.code(l), h.nodes.length !== 1)
|
|
745
745
|
throw new Error('CodeGen: "return" should have one node');
|
|
746
|
-
return this._endBlockNode(
|
|
746
|
+
return this._endBlockNode(G);
|
|
747
747
|
}
|
|
748
748
|
// `try` statement
|
|
749
749
|
try(l, h, E) {
|
|
@@ -752,9 +752,9 @@ var yr = {};
|
|
|
752
752
|
const A = new T();
|
|
753
753
|
if (this._blockNode(A), this.code(l), h) {
|
|
754
754
|
const D = this.name("e");
|
|
755
|
-
this._currNode = A.catch = new
|
|
755
|
+
this._currNode = A.catch = new j(D), h(D);
|
|
756
756
|
}
|
|
757
|
-
return E && (this._currNode = A.finally = new V(), this.code(E)), this._endBlockNode(
|
|
757
|
+
return E && (this._currNode = A.finally = new V(), this.code(E)), this._endBlockNode(j, V);
|
|
758
758
|
}
|
|
759
759
|
// `throw` statement
|
|
760
760
|
throw(l) {
|
|
@@ -853,10 +853,10 @@ var yr = {};
|
|
|
853
853
|
}
|
|
854
854
|
e.and = Wt;
|
|
855
855
|
const St = v(e.operators.OR);
|
|
856
|
-
function
|
|
856
|
+
function N(...w) {
|
|
857
857
|
return w.reduce(St);
|
|
858
858
|
}
|
|
859
|
-
e.or =
|
|
859
|
+
e.or = N;
|
|
860
860
|
function v(w) {
|
|
861
861
|
return (l, h) => l === t.nil ? h : h === t.nil ? l : (0, t._)`${P(l)} ${w} ${P(h)}`;
|
|
862
862
|
}
|
|
@@ -1005,7 +1005,7 @@ function ts(e, t, n = e.opts.strictSchema) {
|
|
|
1005
1005
|
M.checkStrictMode = ts;
|
|
1006
1006
|
var qe = {};
|
|
1007
1007
|
Object.defineProperty(qe, "__esModule", { value: !0 });
|
|
1008
|
-
const le = K,
|
|
1008
|
+
const le = K, Na = {
|
|
1009
1009
|
// validation function arguments
|
|
1010
1010
|
data: new le.Name("data"),
|
|
1011
1011
|
// data passed to validation function
|
|
@@ -1034,7 +1034,7 @@ const le = K, Ia = {
|
|
|
1034
1034
|
jsonLen: new le.Name("jsonLen"),
|
|
1035
1035
|
jsonPart: new le.Name("jsonPart")
|
|
1036
1036
|
};
|
|
1037
|
-
qe.default =
|
|
1037
|
+
qe.default = Na;
|
|
1038
1038
|
(function(e) {
|
|
1039
1039
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
1040
1040
|
const t = K, n = M, r = qe;
|
|
@@ -1044,13 +1044,13 @@ qe.default = Ia;
|
|
|
1044
1044
|
message: ({ keyword: p, schemaType: m }) => m ? (0, t.str)`"${p}" keyword must be ${m} ($data)` : (0, t.str)`"${p}" keyword is invalid ($data)`
|
|
1045
1045
|
};
|
|
1046
1046
|
function s(p, m = e.keywordError, y, k) {
|
|
1047
|
-
const { it: S } = p, { gen: O, compositeRule: F, allErrors:
|
|
1048
|
-
k ?? (F ||
|
|
1047
|
+
const { it: S } = p, { gen: O, compositeRule: F, allErrors: G } = S, T = f(p, m, y);
|
|
1048
|
+
k ?? (F || G) ? d(O, T) : c(S, (0, t._)`[${T}]`);
|
|
1049
1049
|
}
|
|
1050
1050
|
e.reportError = s;
|
|
1051
1051
|
function a(p, m = e.keywordError, y) {
|
|
1052
|
-
const { it: k } = p, { gen: S, compositeRule: O, allErrors: F } = k,
|
|
1053
|
-
d(S,
|
|
1052
|
+
const { it: k } = p, { gen: S, compositeRule: O, allErrors: F } = k, G = f(p, m, y);
|
|
1053
|
+
d(S, G), O || F || c(k, r.default.vErrors);
|
|
1054
1054
|
}
|
|
1055
1055
|
e.reportExtraError = a;
|
|
1056
1056
|
function o(p, m) {
|
|
@@ -1061,8 +1061,8 @@ qe.default = Ia;
|
|
|
1061
1061
|
if (S === void 0)
|
|
1062
1062
|
throw new Error("ajv implementation error");
|
|
1063
1063
|
const F = p.name("err");
|
|
1064
|
-
p.forRange("i", S, r.default.errors, (
|
|
1065
|
-
p.const(F, (0, t._)`${r.default.vErrors}[${
|
|
1064
|
+
p.forRange("i", S, r.default.errors, (G) => {
|
|
1065
|
+
p.const(F, (0, t._)`${r.default.vErrors}[${G}]`), p.if((0, t._)`${F}.instancePath === undefined`, () => p.assign((0, t._)`${F}.instancePath`, (0, t.strConcat)(r.default.instancePath, O.errorPath))), p.assign((0, t._)`${F}.schemaPath`, (0, t.str)`${O.errSchemaPath}/${m}`), O.opts.verbose && (p.assign((0, t._)`${F}.schema`, y), p.assign((0, t._)`${F}.data`, k));
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
e.extendErrors = i;
|
|
@@ -1104,13 +1104,13 @@ qe.default = Ia;
|
|
|
1104
1104
|
return y && (S = (0, t.str)`${S}${(0, n.getErrorPath)(y, n.Type.Str)}`), [u.schemaPath, S];
|
|
1105
1105
|
}
|
|
1106
1106
|
function g(p, { params: m, message: y }, k) {
|
|
1107
|
-
const { keyword: S, data: O, schemaValue: F, it:
|
|
1108
|
-
k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), T.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), T.verbose && k.push([u.schema, F], [u.parentSchema, (0, t._)`${V}${x}`], [r.default.data, O]),
|
|
1107
|
+
const { keyword: S, data: O, schemaValue: F, it: G } = p, { opts: T, propertyName: j, topSchemaRef: V, schemaPath: x } = G;
|
|
1108
|
+
k.push([u.keyword, S], [u.params, typeof m == "function" ? m(p) : m || (0, t._)`{}`]), T.messages && k.push([u.message, typeof y == "function" ? y(p) : y]), T.verbose && k.push([u.schema, F], [u.parentSchema, (0, t._)`${V}${x}`], [r.default.data, O]), j && k.push([u.propertyName, j]);
|
|
1109
1109
|
}
|
|
1110
1110
|
})(_t);
|
|
1111
1111
|
Object.defineProperty(Qe, "__esModule", { value: !0 });
|
|
1112
1112
|
Qe.boolOrEmptySchema = Qe.topBoolOrEmptySchema = void 0;
|
|
1113
|
-
const
|
|
1113
|
+
const Ia = _t, Ma = K, Ta = qe, Ra = {
|
|
1114
1114
|
message: "boolean schema is false"
|
|
1115
1115
|
};
|
|
1116
1116
|
function Aa(e) {
|
|
@@ -1134,16 +1134,16 @@ function rs(e, t) {
|
|
|
1134
1134
|
params: {},
|
|
1135
1135
|
it: e
|
|
1136
1136
|
};
|
|
1137
|
-
(0,
|
|
1137
|
+
(0, Ia.reportError)(s, Ra, void 0, t);
|
|
1138
1138
|
}
|
|
1139
|
-
var te = {},
|
|
1140
|
-
Object.defineProperty(
|
|
1141
|
-
|
|
1139
|
+
var te = {}, Ke = {};
|
|
1140
|
+
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
1141
|
+
Ke.getRules = Ke.isJSONType = void 0;
|
|
1142
1142
|
const Da = ["string", "number", "integer", "boolean", "null", "object", "array"], Ca = new Set(Da);
|
|
1143
1143
|
function Fa(e) {
|
|
1144
1144
|
return typeof e == "string" && Ca.has(e);
|
|
1145
1145
|
}
|
|
1146
|
-
|
|
1146
|
+
Ke.isJSONType = Fa;
|
|
1147
1147
|
function za() {
|
|
1148
1148
|
const e = {
|
|
1149
1149
|
number: { type: "number", rules: [] },
|
|
@@ -1159,27 +1159,27 @@ function za() {
|
|
|
1159
1159
|
keywords: {}
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
|
-
|
|
1163
|
-
var
|
|
1164
|
-
Object.defineProperty(
|
|
1165
|
-
|
|
1162
|
+
Ke.getRules = za;
|
|
1163
|
+
var Ne = {};
|
|
1164
|
+
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
1165
|
+
Ne.shouldUseRule = Ne.shouldUseGroup = Ne.schemaHasRulesForType = void 0;
|
|
1166
1166
|
function Ua({ schema: e, self: t }, n) {
|
|
1167
1167
|
const r = t.RULES.types[n];
|
|
1168
1168
|
return r && r !== !0 && ns(e, r);
|
|
1169
1169
|
}
|
|
1170
|
-
|
|
1170
|
+
Ne.schemaHasRulesForType = Ua;
|
|
1171
1171
|
function ns(e, t) {
|
|
1172
1172
|
return t.rules.some((n) => ss(e, n));
|
|
1173
1173
|
}
|
|
1174
|
-
|
|
1174
|
+
Ne.shouldUseGroup = ns;
|
|
1175
1175
|
function ss(e, t) {
|
|
1176
1176
|
var n;
|
|
1177
1177
|
return e[t.keyword] !== void 0 || ((n = t.definition.implements) === null || n === void 0 ? void 0 : n.some((r) => e[r] !== void 0));
|
|
1178
1178
|
}
|
|
1179
|
-
|
|
1179
|
+
Ne.shouldUseRule = ss;
|
|
1180
1180
|
Object.defineProperty(te, "__esModule", { value: !0 });
|
|
1181
1181
|
te.reportTypeError = te.checkDataTypes = te.checkDataType = te.coerceAndCheckDataType = te.getJSONTypes = te.getSchemaTypes = te.DataType = void 0;
|
|
1182
|
-
const La =
|
|
1182
|
+
const La = Ke, Ha = Ne, Ka = _t, H = K, as = M;
|
|
1183
1183
|
var Ze;
|
|
1184
1184
|
(function(e) {
|
|
1185
1185
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
@@ -1204,8 +1204,8 @@ function os(e) {
|
|
|
1204
1204
|
throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
|
|
1205
1205
|
}
|
|
1206
1206
|
te.getJSONTypes = os;
|
|
1207
|
-
function
|
|
1208
|
-
const { gen: n, data: r, opts: s } = e, a =
|
|
1207
|
+
function Ja(e, t) {
|
|
1208
|
+
const { gen: n, data: r, opts: s } = e, a = Ga(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ha.schemaHasRulesForType)(e, t[0]));
|
|
1209
1209
|
if (o) {
|
|
1210
1210
|
const i = Or(t, r, s.strictNumbers, Ze.Wrong);
|
|
1211
1211
|
n.if(i, () => {
|
|
@@ -1214,9 +1214,9 @@ function Ga(e, t) {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
return o;
|
|
1216
1216
|
}
|
|
1217
|
-
te.coerceAndCheckDataType =
|
|
1217
|
+
te.coerceAndCheckDataType = Ja;
|
|
1218
1218
|
const is = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1219
|
-
function
|
|
1219
|
+
function Ga(e, t) {
|
|
1220
1220
|
return t ? e.filter((n) => is.has(n) || t === "array" && n === "array") : [];
|
|
1221
1221
|
}
|
|
1222
1222
|
function xa(e, t, n) {
|
|
@@ -1345,25 +1345,25 @@ function $n(e, t, n) {
|
|
|
1345
1345
|
let d = (0, Ge._)`${i} === undefined`;
|
|
1346
1346
|
o.useDefaults === "empty" && (d = (0, Ge._)`${d} || ${i} === null || ${i} === ""`), r.if(d, (0, Ge._)`${i} = ${(0, Ge.stringify)(n)}`);
|
|
1347
1347
|
}
|
|
1348
|
-
var Ee = {},
|
|
1349
|
-
Object.defineProperty(
|
|
1350
|
-
|
|
1348
|
+
var Ee = {}, J = {};
|
|
1349
|
+
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
1350
|
+
J.validateUnion = J.validateArray = J.usePattern = J.callValidateCode = J.schemaProperties = J.allSchemaProperties = J.noPropertyInData = J.propertyInData = J.isOwnProperty = J.hasPropFunc = J.reportMissingProp = J.checkMissingProp = J.checkReportMissingProp = void 0;
|
|
1351
1351
|
const X = K, qr = M, Te = qe, eo = M;
|
|
1352
1352
|
function to(e, t) {
|
|
1353
1353
|
const { gen: n, data: r, it: s } = e;
|
|
1354
|
-
n.if(
|
|
1354
|
+
n.if(Ir(n, r, t, s.opts.ownProperties), () => {
|
|
1355
1355
|
e.setParams({ missingProperty: (0, X._)`${t}` }, !0), e.error();
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
|
-
|
|
1358
|
+
J.checkReportMissingProp = to;
|
|
1359
1359
|
function ro({ gen: e, data: t, it: { opts: n } }, r, s) {
|
|
1360
|
-
return (0, X.or)(...r.map((a) => (0, X.and)(
|
|
1360
|
+
return (0, X.or)(...r.map((a) => (0, X.and)(Ir(e, t, a, n.ownProperties), (0, X._)`${s} = ${a}`)));
|
|
1361
1361
|
}
|
|
1362
|
-
|
|
1362
|
+
J.checkMissingProp = ro;
|
|
1363
1363
|
function no(e, t) {
|
|
1364
1364
|
e.setParams({ missingProperty: t }, !0), e.error();
|
|
1365
1365
|
}
|
|
1366
|
-
|
|
1366
|
+
J.reportMissingProp = no;
|
|
1367
1367
|
function ls(e) {
|
|
1368
1368
|
return e.scopeValue("func", {
|
|
1369
1369
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1371,29 +1371,29 @@ function ls(e) {
|
|
|
1371
1371
|
code: (0, X._)`Object.prototype.hasOwnProperty`
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
1374
|
-
|
|
1375
|
-
function
|
|
1374
|
+
J.hasPropFunc = ls;
|
|
1375
|
+
function Nr(e, t, n) {
|
|
1376
1376
|
return (0, X._)`${ls(e)}.call(${t}, ${n})`;
|
|
1377
1377
|
}
|
|
1378
|
-
|
|
1378
|
+
J.isOwnProperty = Nr;
|
|
1379
1379
|
function so(e, t, n, r) {
|
|
1380
1380
|
const s = (0, X._)`${t}${(0, X.getProperty)(n)} !== undefined`;
|
|
1381
|
-
return r ? (0, X._)`${s} && ${
|
|
1381
|
+
return r ? (0, X._)`${s} && ${Nr(e, t, n)}` : s;
|
|
1382
1382
|
}
|
|
1383
|
-
|
|
1384
|
-
function
|
|
1383
|
+
J.propertyInData = so;
|
|
1384
|
+
function Ir(e, t, n, r) {
|
|
1385
1385
|
const s = (0, X._)`${t}${(0, X.getProperty)(n)} === undefined`;
|
|
1386
|
-
return r ? (0, X.or)(s, (0, X.not)(
|
|
1386
|
+
return r ? (0, X.or)(s, (0, X.not)(Nr(e, t, n))) : s;
|
|
1387
1387
|
}
|
|
1388
|
-
|
|
1388
|
+
J.noPropertyInData = Ir;
|
|
1389
1389
|
function ds(e) {
|
|
1390
1390
|
return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
|
|
1391
1391
|
}
|
|
1392
|
-
|
|
1392
|
+
J.allSchemaProperties = ds;
|
|
1393
1393
|
function ao(e, t) {
|
|
1394
1394
|
return ds(t).filter((n) => !(0, qr.alwaysValidSchema)(e, t[n]));
|
|
1395
1395
|
}
|
|
1396
|
-
|
|
1396
|
+
J.schemaProperties = ao;
|
|
1397
1397
|
function oo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
|
|
1398
1398
|
const u = c ? (0, X._)`${e}, ${t}, ${r}${s}` : t, f = [
|
|
1399
1399
|
[Te.default.instancePath, (0, X.strConcat)(Te.default.instancePath, a)],
|
|
@@ -1405,7 +1405,7 @@ function oo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath:
|
|
|
1405
1405
|
const b = (0, X._)`${u}, ${n.object(...f)}`;
|
|
1406
1406
|
return d !== X.nil ? (0, X._)`${i}.call(${d}, ${b})` : (0, X._)`${i}(${b})`;
|
|
1407
1407
|
}
|
|
1408
|
-
|
|
1408
|
+
J.callValidateCode = oo;
|
|
1409
1409
|
const io = (0, X._)`new RegExp`;
|
|
1410
1410
|
function lo({ gen: e, it: { opts: t } }, n) {
|
|
1411
1411
|
const r = t.unicodeRegExp ? "u" : "", { regExp: s } = t.code, a = s(n, r);
|
|
@@ -1415,7 +1415,7 @@ function lo({ gen: e, it: { opts: t } }, n) {
|
|
|
1415
1415
|
code: (0, X._)`${s.code === "new RegExp" ? io : (0, eo.useFunc)(e, s)}(${n}, ${r})`
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
|
-
|
|
1418
|
+
J.usePattern = lo;
|
|
1419
1419
|
function co(e) {
|
|
1420
1420
|
const { gen: t, data: n, keyword: r, it: s } = e, a = t.name("valid");
|
|
1421
1421
|
if (s.allErrors) {
|
|
@@ -1434,7 +1434,7 @@ function co(e) {
|
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
|
|
1437
|
+
J.validateArray = co;
|
|
1438
1438
|
function uo(e) {
|
|
1439
1439
|
const { gen: t, schema: n, keyword: r, it: s } = e;
|
|
1440
1440
|
if (!Array.isArray(n))
|
|
@@ -1451,10 +1451,10 @@ function uo(e) {
|
|
|
1451
1451
|
t.assign(o, (0, X._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, X.not)(o));
|
|
1452
1452
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
1453
1453
|
}
|
|
1454
|
-
|
|
1454
|
+
J.validateUnion = uo;
|
|
1455
1455
|
Object.defineProperty(Ee, "__esModule", { value: !0 });
|
|
1456
1456
|
Ee.validateKeywordUsage = Ee.validSchemaType = Ee.funcKeywordCode = Ee.macroKeywordCode = void 0;
|
|
1457
|
-
const de = K,
|
|
1457
|
+
const de = K, Fe = qe, fo = J, mo = _t;
|
|
1458
1458
|
function ho(e, t) {
|
|
1459
1459
|
const { gen: n, keyword: r, schema: s, parentSchema: a, it: o } = e, i = t.macro.call(o.self, s, a, o), d = cs(n, r, i);
|
|
1460
1460
|
o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
|
|
@@ -1491,7 +1491,7 @@ function po(e, t) {
|
|
|
1491
1491
|
return r.assign(m, null), g(de.nil), m;
|
|
1492
1492
|
}
|
|
1493
1493
|
function g(m = t.async ? (0, de._)`await ` : de.nil) {
|
|
1494
|
-
const y = d.opts.passContext ?
|
|
1494
|
+
const y = d.opts.passContext ? Fe.default.this : Fe.default.self, k = !("compile" in t && !i || t.schema === !1);
|
|
1495
1495
|
r.assign(f, (0, de._)`${m}${(0, fo.callValidateCode)(e, u, y, k)}`, t.modifying);
|
|
1496
1496
|
}
|
|
1497
1497
|
function p(m) {
|
|
@@ -1507,7 +1507,7 @@ function wn(e) {
|
|
|
1507
1507
|
function yo(e, t) {
|
|
1508
1508
|
const { gen: n } = e;
|
|
1509
1509
|
n.if((0, de._)`Array.isArray(${t})`, () => {
|
|
1510
|
-
n.assign(
|
|
1510
|
+
n.assign(Fe.default.vErrors, (0, de._)`${Fe.default.vErrors} === null ? ${t} : ${Fe.default.vErrors}.concat(${t})`).assign(Fe.default.errors, (0, de._)`${Fe.default.vErrors}.length`), (0, mo.extendErrors)(e);
|
|
1511
1511
|
}, () => e.error());
|
|
1512
1512
|
}
|
|
1513
1513
|
function vo({ schemaEnv: e }, t) {
|
|
@@ -1621,7 +1621,7 @@ var ae = {}, fs = function e(t, n) {
|
|
|
1621
1621
|
var r = typeof n == "function" ? n : n.pre || function() {
|
|
1622
1622
|
}, s = n.post || function() {
|
|
1623
1623
|
};
|
|
1624
|
-
|
|
1624
|
+
It(t, r, s, e, "", e);
|
|
1625
1625
|
};
|
|
1626
1626
|
Ae.keywords = {
|
|
1627
1627
|
additionalItems: !0,
|
|
@@ -1667,7 +1667,7 @@ Ae.skipKeywords = {
|
|
|
1667
1667
|
maxProperties: !0,
|
|
1668
1668
|
minProperties: !0
|
|
1669
1669
|
};
|
|
1670
|
-
function
|
|
1670
|
+
function It(e, t, n, r, s, a, o, i, d, c) {
|
|
1671
1671
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
1672
1672
|
t(r, s, a, o, i, d, c);
|
|
1673
1673
|
for (var u in r) {
|
|
@@ -1675,12 +1675,12 @@ function Nt(e, t, n, r, s, a, o, i, d, c) {
|
|
|
1675
1675
|
if (Array.isArray(f)) {
|
|
1676
1676
|
if (u in Ae.arrayKeywords)
|
|
1677
1677
|
for (var b = 0; b < f.length; b++)
|
|
1678
|
-
|
|
1678
|
+
It(e, t, n, f[b], s + "/" + u + "/" + b, a, s, u, r, b);
|
|
1679
1679
|
} else if (u in Ae.propsKeywords) {
|
|
1680
1680
|
if (f && typeof f == "object")
|
|
1681
1681
|
for (var $ in f)
|
|
1682
|
-
|
|
1683
|
-
} else (u in Ae.keywords || e.allKeys && !(u in Ae.skipKeywords)) &&
|
|
1682
|
+
It(e, t, n, f[$], s + "/" + u + "/" + ko($), a, s, u, r, $);
|
|
1683
|
+
} else (u in Ae.keywords || e.allKeys && !(u in Ae.skipKeywords)) && It(e, t, n, f, s + "/" + u, a, s, u, r);
|
|
1684
1684
|
}
|
|
1685
1685
|
n(r, s, a, o, i, d, c);
|
|
1686
1686
|
}
|
|
@@ -1713,7 +1713,7 @@ function qo(e, t = !0) {
|
|
|
1713
1713
|
return typeof e == "boolean" ? !0 : t === !0 ? !gr(e) : t ? hs(e) <= t : !1;
|
|
1714
1714
|
}
|
|
1715
1715
|
ae.inlineRef = qo;
|
|
1716
|
-
const
|
|
1716
|
+
const No = /* @__PURE__ */ new Set([
|
|
1717
1717
|
"$ref",
|
|
1718
1718
|
"$recursiveRef",
|
|
1719
1719
|
"$recursiveAnchor",
|
|
@@ -1722,7 +1722,7 @@ const Io = /* @__PURE__ */ new Set([
|
|
|
1722
1722
|
]);
|
|
1723
1723
|
function gr(e) {
|
|
1724
1724
|
for (const t in e) {
|
|
1725
|
-
if (
|
|
1725
|
+
if (No.has(t))
|
|
1726
1726
|
return !0;
|
|
1727
1727
|
const n = e[t];
|
|
1728
1728
|
if (Array.isArray(n) && n.some(gr) || typeof n == "object" && gr(n))
|
|
@@ -1750,9 +1750,9 @@ function ys(e, t) {
|
|
|
1750
1750
|
return e.serialize(t).split("#")[0] + "#";
|
|
1751
1751
|
}
|
|
1752
1752
|
ae._getFullPath = ys;
|
|
1753
|
-
const
|
|
1753
|
+
const Io = /#\/?$/;
|
|
1754
1754
|
function Ye(e) {
|
|
1755
|
-
return e ? e.replace(
|
|
1755
|
+
return e ? e.replace(Io, "") : "";
|
|
1756
1756
|
}
|
|
1757
1757
|
ae.normalizeId = Ye;
|
|
1758
1758
|
function Mo(e, t, n) {
|
|
@@ -1797,7 +1797,7 @@ function Ro(e, t) {
|
|
|
1797
1797
|
ae.getSchemaRefs = Ro;
|
|
1798
1798
|
Object.defineProperty(be, "__esModule", { value: !0 });
|
|
1799
1799
|
be.getData = be.KeywordCxt = be.validateFunctionCode = void 0;
|
|
1800
|
-
const vs = Qe, kn = te, Mr =
|
|
1800
|
+
const vs = Qe, kn = te, Mr = Ne, Vt = te, Ao = Lt, ct = Ee, cr = Ve, R = K, U = qe, Vo = ae, Ie = M, ot = _t;
|
|
1801
1801
|
function Do(e) {
|
|
1802
1802
|
if (bs(e) && ($s(e), gs(e))) {
|
|
1803
1803
|
zo(e);
|
|
@@ -1855,12 +1855,12 @@ function bs(e) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
function Ho(e, t) {
|
|
1857
1857
|
const { schema: n, gen: r, opts: s } = e;
|
|
1858
|
-
s.$comment && n.$comment && ks(e),
|
|
1858
|
+
s.$comment && n.$comment && ks(e), Jo(e), Go(e);
|
|
1859
1859
|
const a = r.const("_errs", U.default.errors);
|
|
1860
1860
|
ws(e, a), r.var(t, (0, R._)`${a} === ${U.default.errors}`);
|
|
1861
1861
|
}
|
|
1862
1862
|
function $s(e) {
|
|
1863
|
-
(0,
|
|
1863
|
+
(0, Ie.checkUnknownRules)(e), Ko(e);
|
|
1864
1864
|
}
|
|
1865
1865
|
function ws(e, t) {
|
|
1866
1866
|
if (e.opts.jtd)
|
|
@@ -1870,17 +1870,17 @@ function ws(e, t) {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
function Ko(e) {
|
|
1872
1872
|
const { schema: t, errSchemaPath: n, opts: r, self: s } = e;
|
|
1873
|
-
t.$ref && r.ignoreKeywordsWithRef && (0,
|
|
1873
|
+
t.$ref && r.ignoreKeywordsWithRef && (0, Ie.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
|
|
1874
1874
|
}
|
|
1875
1875
|
function Bo(e) {
|
|
1876
1876
|
const { schema: t, opts: n } = e;
|
|
1877
|
-
t.default !== void 0 && n.useDefaults && n.strictSchema && (0,
|
|
1877
|
+
t.default !== void 0 && n.useDefaults && n.strictSchema && (0, Ie.checkStrictMode)(e, "default is ignored in the schema root");
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Jo(e) {
|
|
1880
1880
|
const t = e.schema[e.opts.schemaId];
|
|
1881
1881
|
t && (e.baseId = (0, Vo.resolveUrl)(e.opts.uriResolver, e.baseId, t));
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Go(e) {
|
|
1884
1884
|
if (e.schema.$async && !e.schemaEnv.$async)
|
|
1885
1885
|
throw new Error("async schema in sync schema");
|
|
1886
1886
|
}
|
|
@@ -1902,7 +1902,7 @@ function Wo({ gen: e, evaluated: t, props: n, items: r }) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
function En(e, t, n, r) {
|
|
1904
1904
|
const { gen: s, schema: a, data: o, allErrors: i, opts: d, self: c } = e, { RULES: u } = c;
|
|
1905
|
-
if (a.$ref && (d.ignoreKeywordsWithRef || !(0,
|
|
1905
|
+
if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Ie.schemaHasRulesButRef)(a, u))) {
|
|
1906
1906
|
s.block(() => Ps(e, "$ref", u.all.$ref.definition));
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
@@ -1963,11 +1963,11 @@ function ti(e, t) {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
function Tr(e, t) {
|
|
1965
1965
|
const n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
1966
|
-
t += ` at "${n}" (strictTypes)`, (0,
|
|
1966
|
+
t += ` at "${n}" (strictTypes)`, (0, Ie.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
1967
1967
|
}
|
|
1968
1968
|
class Es {
|
|
1969
1969
|
constructor(t, n, r) {
|
|
1970
|
-
if ((0, ct.validateKeywordUsage)(t, n, r), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = r, this.data = t.data, this.schema = t.schema[r], this.$data = n.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0,
|
|
1970
|
+
if ((0, ct.validateKeywordUsage)(t, n, r), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = r, this.data = t.data, this.schema = t.schema[r], this.$data = n.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Ie.schemaRefOrVal)(t, this.schema, r, this.$data), this.schemaType = n.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = n, this.$data)
|
|
1971
1971
|
this.schemaCode = t.gen.const("vSchema", Os(this.$data, t));
|
|
1972
1972
|
else if (this.schemaCode = this.schemaValue, !(0, ct.validSchemaType)(this.schema, n.schemaType, n.allowUndefined))
|
|
1973
1973
|
throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);
|
|
@@ -2058,7 +2058,7 @@ class Es {
|
|
|
2058
2058
|
}
|
|
2059
2059
|
mergeEvaluated(t, n) {
|
|
2060
2060
|
const { it: r, gen: s } = this;
|
|
2061
|
-
r.opts.unevaluated && (r.props !== !0 && t.props !== void 0 && (r.props =
|
|
2061
|
+
r.opts.unevaluated && (r.props !== !0 && t.props !== void 0 && (r.props = Ie.mergeEvaluated.props(s, t.props, r.props, n)), r.items !== !0 && t.items !== void 0 && (r.items = Ie.mergeEvaluated.items(s, t.items, r.items, n)));
|
|
2062
2062
|
}
|
|
2063
2063
|
mergeValidEvaluated(t, n) {
|
|
2064
2064
|
const { it: r, gen: s } = this;
|
|
@@ -2098,7 +2098,7 @@ function Os(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
|
2098
2098
|
let o = a;
|
|
2099
2099
|
const i = s.split("/");
|
|
2100
2100
|
for (const c of i)
|
|
2101
|
-
c && (a = (0, R._)`${a}${(0, R.getProperty)((0,
|
|
2101
|
+
c && (a = (0, R._)`${a}${(0, R.getProperty)((0, Ie.unescapeJsonPointer)(c))}`, o = (0, R._)`${o} && ${a}`);
|
|
2102
2102
|
return o;
|
|
2103
2103
|
function d(c, u) {
|
|
2104
2104
|
return `Cannot access ${c} ${u} levels up, current level is ${t}`;
|
|
@@ -2301,7 +2301,7 @@ const mi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
2301
2301
|
};
|
|
2302
2302
|
var Ar = {}, Bt = { exports: {} };
|
|
2303
2303
|
const bi = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), qs = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
2304
|
-
function
|
|
2304
|
+
function Ns(e) {
|
|
2305
2305
|
let t = "", n = 0, r = 0;
|
|
2306
2306
|
for (r = 0; r < e.length; r++)
|
|
2307
2307
|
if (n = e[r].charCodeAt(0), n !== 48) {
|
|
@@ -2323,7 +2323,7 @@ function jn(e) {
|
|
|
2323
2323
|
}
|
|
2324
2324
|
function wi(e, t, n) {
|
|
2325
2325
|
if (e.length) {
|
|
2326
|
-
const r =
|
|
2326
|
+
const r = Ns(e);
|
|
2327
2327
|
if (r !== "")
|
|
2328
2328
|
t.push(r);
|
|
2329
2329
|
else
|
|
@@ -2357,9 +2357,9 @@ function ki(e) {
|
|
|
2357
2357
|
continue;
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
return s.length && (i === jn ? n.zone = s.join("") : o ? r.push(s.join("")) : r.push(
|
|
2360
|
+
return s.length && (i === jn ? n.zone = s.join("") : o ? r.push(s.join("")) : r.push(Ns(s))), n.address = r.join(""), n;
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2362
|
+
function Is(e) {
|
|
2363
2363
|
if (Si(e, ":") < 2)
|
|
2364
2364
|
return { host: e, isIPV6: !1 };
|
|
2365
2365
|
const t = ki(e);
|
|
@@ -2443,7 +2443,7 @@ function Oi(e) {
|
|
|
2443
2443
|
if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
|
|
2444
2444
|
let n = unescape(e.host);
|
|
2445
2445
|
if (!qs(n)) {
|
|
2446
|
-
const r =
|
|
2446
|
+
const r = Is(n);
|
|
2447
2447
|
r.isIPV6 === !0 ? n = `[${r.escapedHost}]` : n = e.host;
|
|
2448
2448
|
}
|
|
2449
2449
|
t.push(n);
|
|
@@ -2457,7 +2457,7 @@ var Ms = {
|
|
|
2457
2457
|
removeDotSegments: Ei,
|
|
2458
2458
|
isIPv4: qs,
|
|
2459
2459
|
isUUID: bi,
|
|
2460
|
-
normalizeIPv6:
|
|
2460
|
+
normalizeIPv6: Is
|
|
2461
2461
|
};
|
|
2462
2462
|
const { isUUID: ji } = Ms, qi = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
2463
2463
|
function Ts(e) {
|
|
@@ -2470,10 +2470,10 @@ function As(e) {
|
|
|
2470
2470
|
const t = String(e.scheme).toLowerCase() === "https";
|
|
2471
2471
|
return (e.port === (t ? 443 : 80) || e.port === "") && (e.port = void 0), e.path || (e.path = "/"), e;
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function Ni(e) {
|
|
2474
2474
|
return e.secure = Ts(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Ii(e) {
|
|
2477
2477
|
if ((e.port === (Ts(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
|
|
2478
2478
|
const [t, n] = e.resourceName.split("?");
|
|
2479
2479
|
e.path = t && t !== "/" ? t : void 0, e.query = n, e.resourceName = void 0;
|
|
@@ -2530,8 +2530,8 @@ const Vs = (
|
|
|
2530
2530
|
{
|
|
2531
2531
|
scheme: "ws",
|
|
2532
2532
|
domainHost: !0,
|
|
2533
|
-
parse:
|
|
2534
|
-
serialize:
|
|
2533
|
+
parse: Ni,
|
|
2534
|
+
serialize: Ii
|
|
2535
2535
|
}
|
|
2536
2536
|
), Di = (
|
|
2537
2537
|
/** @type {SchemeHandler} */
|
|
@@ -2583,12 +2583,12 @@ var zi = {
|
|
|
2583
2583
|
getSchemeHandler: Vr
|
|
2584
2584
|
};
|
|
2585
2585
|
const { normalizeIPv6: Ui, removeDotSegments: lt, recomposeAuthority: Li, normalizeComponentEncoding: Et, isIPv4: Hi, nonSimpleDomain: Ki } = Ms, { SCHEMES: Bi, getSchemeHandler: Ds } = zi;
|
|
2586
|
-
function
|
|
2586
|
+
function Ji(e, t) {
|
|
2587
2587
|
return typeof e == "string" ? e = /** @type {T} */
|
|
2588
2588
|
Pe(Me(e, t), t) : typeof e == "object" && (e = /** @type {T} */
|
|
2589
2589
|
Me(Pe(e, t), t)), e;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function Gi(e, t, n) {
|
|
2592
2592
|
const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = Cs(Me(e, r), Me(t, r), r, !0);
|
|
2593
2593
|
return r.skipEscape = !0, Pe(s, r);
|
|
2594
2594
|
}
|
|
@@ -2660,8 +2660,8 @@ function Me(e, t) {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
const Dr = {
|
|
2662
2662
|
SCHEMES: Bi,
|
|
2663
|
-
normalize:
|
|
2664
|
-
resolve:
|
|
2663
|
+
normalize: Ji,
|
|
2664
|
+
resolve: Gi,
|
|
2665
2665
|
resolveComponent: Cs,
|
|
2666
2666
|
equal: xi,
|
|
2667
2667
|
serialize: Pe,
|
|
@@ -2695,7 +2695,7 @@ Ar.default = Fs;
|
|
|
2695
2695
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2696
2696
|
return n.CodeGen;
|
|
2697
2697
|
} });
|
|
2698
|
-
const r = gt, s = tt, a =
|
|
2698
|
+
const r = gt, s = tt, a = Ke, o = ue, i = K, d = ae, c = te, u = M, f = gi, b = Ar, $ = (N, v) => new RegExp(N, v);
|
|
2699
2699
|
$.code = "new RegExp";
|
|
2700
2700
|
const _ = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
2701
2701
|
"validate",
|
|
@@ -2732,27 +2732,27 @@ Ar.default = Fs;
|
|
|
2732
2732
|
jsPropertySyntax: "",
|
|
2733
2733
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
2734
2734
|
}, y = 200;
|
|
2735
|
-
function k(
|
|
2736
|
-
var v, P, w, l, h, E, A, D, Z, W, re,
|
|
2737
|
-
const at =
|
|
2735
|
+
function k(N) {
|
|
2736
|
+
var v, P, w, l, h, E, A, D, Z, W, re, Je, Zt, Yt, Qt, Xt, er, tr, rr, nr, sr, ar, or, ir, lr;
|
|
2737
|
+
const at = N.strict, dr = (v = N.code) === null || v === void 0 ? void 0 : v.optimize, yn = dr === !0 || dr === void 0 ? 1 : dr || 0, vn = (w = (P = N.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, Qs = (l = N.uriResolver) !== null && l !== void 0 ? l : b.default;
|
|
2738
2738
|
return {
|
|
2739
|
-
strictSchema: (E = (h =
|
|
2740
|
-
strictNumbers: (D = (A =
|
|
2741
|
-
strictTypes: (W = (Z =
|
|
2742
|
-
strictTuples: (
|
|
2743
|
-
strictRequired: (Yt = (Zt =
|
|
2744
|
-
code:
|
|
2745
|
-
loopRequired: (Qt =
|
|
2746
|
-
loopEnum: (Xt =
|
|
2747
|
-
meta: (er =
|
|
2748
|
-
messages: (tr =
|
|
2749
|
-
inlineRefs: (rr =
|
|
2750
|
-
schemaId: (nr =
|
|
2751
|
-
addUsedSchema: (sr =
|
|
2752
|
-
validateSchema: (ar =
|
|
2753
|
-
validateFormats: (or =
|
|
2754
|
-
unicodeRegExp: (ir =
|
|
2755
|
-
int32range: (lr =
|
|
2739
|
+
strictSchema: (E = (h = N.strictSchema) !== null && h !== void 0 ? h : at) !== null && E !== void 0 ? E : !0,
|
|
2740
|
+
strictNumbers: (D = (A = N.strictNumbers) !== null && A !== void 0 ? A : at) !== null && D !== void 0 ? D : !0,
|
|
2741
|
+
strictTypes: (W = (Z = N.strictTypes) !== null && Z !== void 0 ? Z : at) !== null && W !== void 0 ? W : "log",
|
|
2742
|
+
strictTuples: (Je = (re = N.strictTuples) !== null && re !== void 0 ? re : at) !== null && Je !== void 0 ? Je : "log",
|
|
2743
|
+
strictRequired: (Yt = (Zt = N.strictRequired) !== null && Zt !== void 0 ? Zt : at) !== null && Yt !== void 0 ? Yt : !1,
|
|
2744
|
+
code: N.code ? { ...N.code, optimize: yn, regExp: vn } : { optimize: yn, regExp: vn },
|
|
2745
|
+
loopRequired: (Qt = N.loopRequired) !== null && Qt !== void 0 ? Qt : y,
|
|
2746
|
+
loopEnum: (Xt = N.loopEnum) !== null && Xt !== void 0 ? Xt : y,
|
|
2747
|
+
meta: (er = N.meta) !== null && er !== void 0 ? er : !0,
|
|
2748
|
+
messages: (tr = N.messages) !== null && tr !== void 0 ? tr : !0,
|
|
2749
|
+
inlineRefs: (rr = N.inlineRefs) !== null && rr !== void 0 ? rr : !0,
|
|
2750
|
+
schemaId: (nr = N.schemaId) !== null && nr !== void 0 ? nr : "$id",
|
|
2751
|
+
addUsedSchema: (sr = N.addUsedSchema) !== null && sr !== void 0 ? sr : !0,
|
|
2752
|
+
validateSchema: (ar = N.validateSchema) !== null && ar !== void 0 ? ar : !0,
|
|
2753
|
+
validateFormats: (or = N.validateFormats) !== null && or !== void 0 ? or : !0,
|
|
2754
|
+
unicodeRegExp: (ir = N.unicodeRegExp) !== null && ir !== void 0 ? ir : !0,
|
|
2755
|
+
int32range: (lr = N.int32range) !== null && lr !== void 0 ? lr : !0,
|
|
2756
2756
|
uriResolver: Qs
|
|
2757
2757
|
};
|
|
2758
2758
|
}
|
|
@@ -2762,7 +2762,7 @@ Ar.default = Fs;
|
|
|
2762
2762
|
const { es5: P, lines: w } = this.opts.code;
|
|
2763
2763
|
this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5: P, lines: w }), this.logger = L(v.logger);
|
|
2764
2764
|
const l = v.validateFormats;
|
|
2765
|
-
v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = V.call(this), v.formats && T.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords &&
|
|
2765
|
+
v.validateFormats = !1, this.RULES = (0, a.getRules)(), O.call(this, p, v, "NOT SUPPORTED"), O.call(this, m, v, "DEPRECATED", "warn"), this._metaOpts = V.call(this), v.formats && T.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), v.keywords && j.call(this, v.keywords), typeof v.meta == "object" && this.addMetaSchema(v.meta), G.call(this), v.validateFormats = l;
|
|
2766
2766
|
}
|
|
2767
2767
|
_addVocabularies() {
|
|
2768
2768
|
this.addKeyword("$async");
|
|
@@ -2797,8 +2797,8 @@ Ar.default = Fs;
|
|
|
2797
2797
|
return l.call(this, v, P);
|
|
2798
2798
|
async function l(W, re) {
|
|
2799
2799
|
await h.call(this, W.$schema);
|
|
2800
|
-
const
|
|
2801
|
-
return
|
|
2800
|
+
const Je = this._addSchema(W, re);
|
|
2801
|
+
return Je.validate || E.call(this, Je);
|
|
2802
2802
|
}
|
|
2803
2803
|
async function h(W) {
|
|
2804
2804
|
W && !this.getSchema(W) && await l.call(this, { $ref: W }, !0);
|
|
@@ -3016,64 +3016,64 @@ Ar.default = Fs;
|
|
|
3016
3016
|
}
|
|
3017
3017
|
}
|
|
3018
3018
|
S.ValidationError = r.default, S.MissingRefError = s.default, e.default = S;
|
|
3019
|
-
function O(
|
|
3020
|
-
for (const l in
|
|
3019
|
+
function O(N, v, P, w = "error") {
|
|
3020
|
+
for (const l in N) {
|
|
3021
3021
|
const h = l;
|
|
3022
|
-
h in v && this.logger[w](`${P}: option ${l}. ${
|
|
3022
|
+
h in v && this.logger[w](`${P}: option ${l}. ${N[h]}`);
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
function F(
|
|
3026
|
-
return
|
|
3025
|
+
function F(N) {
|
|
3026
|
+
return N = (0, d.normalizeId)(N), this.schemas[N] || this.refs[N];
|
|
3027
3027
|
}
|
|
3028
|
-
function
|
|
3029
|
-
const
|
|
3030
|
-
if (
|
|
3031
|
-
if (Array.isArray(
|
|
3032
|
-
this.addSchema(
|
|
3028
|
+
function G() {
|
|
3029
|
+
const N = this.opts.schemas;
|
|
3030
|
+
if (N)
|
|
3031
|
+
if (Array.isArray(N))
|
|
3032
|
+
this.addSchema(N);
|
|
3033
3033
|
else
|
|
3034
|
-
for (const v in
|
|
3035
|
-
this.addSchema(
|
|
3034
|
+
for (const v in N)
|
|
3035
|
+
this.addSchema(N[v], v);
|
|
3036
3036
|
}
|
|
3037
3037
|
function T() {
|
|
3038
|
-
for (const
|
|
3039
|
-
const v = this.opts.formats[
|
|
3040
|
-
v && this.addFormat(
|
|
3038
|
+
for (const N in this.opts.formats) {
|
|
3039
|
+
const v = this.opts.formats[N];
|
|
3040
|
+
v && this.addFormat(N, v);
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3044
|
-
if (Array.isArray(
|
|
3045
|
-
this.addVocabulary(
|
|
3043
|
+
function j(N) {
|
|
3044
|
+
if (Array.isArray(N)) {
|
|
3045
|
+
this.addVocabulary(N);
|
|
3046
3046
|
return;
|
|
3047
3047
|
}
|
|
3048
3048
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
|
3049
|
-
for (const v in
|
|
3050
|
-
const P =
|
|
3049
|
+
for (const v in N) {
|
|
3050
|
+
const P = N[v];
|
|
3051
3051
|
P.keyword || (P.keyword = v), this.addKeyword(P);
|
|
3052
3052
|
}
|
|
3053
3053
|
}
|
|
3054
3054
|
function V() {
|
|
3055
|
-
const
|
|
3055
|
+
const N = { ...this.opts };
|
|
3056
3056
|
for (const v of _)
|
|
3057
|
-
delete
|
|
3058
|
-
return
|
|
3057
|
+
delete N[v];
|
|
3058
|
+
return N;
|
|
3059
3059
|
}
|
|
3060
3060
|
const x = { log() {
|
|
3061
3061
|
}, warn() {
|
|
3062
3062
|
}, error() {
|
|
3063
3063
|
} };
|
|
3064
|
-
function L(
|
|
3065
|
-
if (
|
|
3064
|
+
function L(N) {
|
|
3065
|
+
if (N === !1)
|
|
3066
3066
|
return x;
|
|
3067
|
-
if (
|
|
3067
|
+
if (N === void 0)
|
|
3068
3068
|
return console;
|
|
3069
|
-
if (
|
|
3070
|
-
return
|
|
3069
|
+
if (N.log && N.warn && N.error)
|
|
3070
|
+
return N;
|
|
3071
3071
|
throw new Error("logger must implement log, warn and error methods");
|
|
3072
3072
|
}
|
|
3073
3073
|
const ie = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
3074
|
-
function ne(
|
|
3074
|
+
function ne(N, v) {
|
|
3075
3075
|
const { RULES: P } = this;
|
|
3076
|
-
if ((0, u.eachItem)(
|
|
3076
|
+
if ((0, u.eachItem)(N, (w) => {
|
|
3077
3077
|
if (P.keywords[w])
|
|
3078
3078
|
throw new Error(`Keyword ${w} is already defined`);
|
|
3079
3079
|
if (!ie.test(w))
|
|
@@ -3081,38 +3081,38 @@ Ar.default = Fs;
|
|
|
3081
3081
|
}), !!v && v.$data && !("code" in v || "validate" in v))
|
|
3082
3082
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
3083
3083
|
}
|
|
3084
|
-
function ke(
|
|
3084
|
+
function ke(N, v, P) {
|
|
3085
3085
|
var w;
|
|
3086
3086
|
const l = v == null ? void 0 : v.post;
|
|
3087
3087
|
if (P && l)
|
|
3088
3088
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
3089
3089
|
const { RULES: h } = this;
|
|
3090
3090
|
let E = l ? h.post : h.rules.find(({ type: D }) => D === P);
|
|
3091
|
-
if (E || (E = { type: P, rules: [] }, h.rules.push(E)), h.keywords[
|
|
3091
|
+
if (E || (E = { type: P, rules: [] }, h.rules.push(E)), h.keywords[N] = !0, !v)
|
|
3092
3092
|
return;
|
|
3093
3093
|
const A = {
|
|
3094
|
-
keyword:
|
|
3094
|
+
keyword: N,
|
|
3095
3095
|
definition: {
|
|
3096
3096
|
...v,
|
|
3097
3097
|
type: (0, c.getJSONTypes)(v.type),
|
|
3098
3098
|
schemaType: (0, c.getJSONTypes)(v.schemaType)
|
|
3099
3099
|
}
|
|
3100
3100
|
};
|
|
3101
|
-
v.before ? kt.call(this, E, A, v.before) : E.rules.push(A), h.all[
|
|
3101
|
+
v.before ? kt.call(this, E, A, v.before) : E.rules.push(A), h.all[N] = A, (w = v.implements) === null || w === void 0 || w.forEach((D) => this.addKeyword(D));
|
|
3102
3102
|
}
|
|
3103
|
-
function kt(
|
|
3104
|
-
const w =
|
|
3105
|
-
w >= 0 ?
|
|
3103
|
+
function kt(N, v, P) {
|
|
3104
|
+
const w = N.rules.findIndex((l) => l.keyword === P);
|
|
3105
|
+
w >= 0 ? N.rules.splice(w, 0, v) : (N.rules.push(v), this.logger.warn(`rule ${P} is not defined`));
|
|
3106
3106
|
}
|
|
3107
|
-
function xt(
|
|
3108
|
-
let { metaSchema: v } =
|
|
3109
|
-
v !== void 0 && (
|
|
3107
|
+
function xt(N) {
|
|
3108
|
+
let { metaSchema: v } = N;
|
|
3109
|
+
v !== void 0 && (N.$data && this.opts.$data && (v = St(v)), N.validateSchema = this.compile(v, !0));
|
|
3110
3110
|
}
|
|
3111
3111
|
const Wt = {
|
|
3112
3112
|
$ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"
|
|
3113
3113
|
};
|
|
3114
|
-
function St(
|
|
3115
|
-
return { anyOf: [
|
|
3114
|
+
function St(N) {
|
|
3115
|
+
return { anyOf: [N, Wt] };
|
|
3116
3116
|
}
|
|
3117
3117
|
})(Zn);
|
|
3118
3118
|
var Cr = {}, Fr = {}, zr = {};
|
|
@@ -3124,20 +3124,20 @@ const Yi = {
|
|
|
3124
3124
|
}
|
|
3125
3125
|
};
|
|
3126
3126
|
zr.default = Yi;
|
|
3127
|
-
var
|
|
3128
|
-
Object.defineProperty(
|
|
3129
|
-
|
|
3130
|
-
const Qi = tt, qn =
|
|
3127
|
+
var Be = {};
|
|
3128
|
+
Object.defineProperty(Be, "__esModule", { value: !0 });
|
|
3129
|
+
Be.callRef = Be.getValidate = void 0;
|
|
3130
|
+
const Qi = tt, qn = J, ce = K, xe = qe, Nn = ue, Pt = M, Xi = {
|
|
3131
3131
|
keyword: "$ref",
|
|
3132
3132
|
schemaType: "string",
|
|
3133
3133
|
code(e) {
|
|
3134
3134
|
const { gen: t, schema: n, it: r } = e, { baseId: s, schemaEnv: a, validateName: o, opts: i, self: d } = r, { root: c } = a;
|
|
3135
3135
|
if ((n === "#" || n === "#/") && s === c.baseId)
|
|
3136
3136
|
return f();
|
|
3137
|
-
const u =
|
|
3137
|
+
const u = Nn.resolveRef.call(d, c, s, n);
|
|
3138
3138
|
if (u === void 0)
|
|
3139
3139
|
throw new Qi.default(r.opts.uriResolver, s, n);
|
|
3140
|
-
if (u instanceof
|
|
3140
|
+
if (u instanceof Nn.SchemaEnv)
|
|
3141
3141
|
return b(u);
|
|
3142
3142
|
return $(u);
|
|
3143
3143
|
function f() {
|
|
@@ -3166,9 +3166,9 @@ function zs(e, t) {
|
|
|
3166
3166
|
const { gen: n } = e;
|
|
3167
3167
|
return t.validate ? n.scopeValue("validate", { ref: t.validate }) : (0, ce._)`${n.scopeValue("wrapper", { ref: t })}.validate`;
|
|
3168
3168
|
}
|
|
3169
|
-
|
|
3169
|
+
Be.getValidate = zs;
|
|
3170
3170
|
function Tt(e, t, n, r) {
|
|
3171
|
-
const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ?
|
|
3171
|
+
const { gen: s, it: a } = e, { allErrors: o, schemaEnv: i, opts: d } = a, c = d.passContext ? xe.default.this : ce.nil;
|
|
3172
3172
|
r ? u() : f();
|
|
3173
3173
|
function u() {
|
|
3174
3174
|
if (!i.$async)
|
|
@@ -3185,7 +3185,7 @@ function Tt(e, t, n, r) {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
function b(_) {
|
|
3187
3187
|
const g = (0, ce._)`${_}.errors`;
|
|
3188
|
-
s.assign(
|
|
3188
|
+
s.assign(xe.default.vErrors, (0, ce._)`${xe.default.vErrors} === null ? ${g} : ${xe.default.vErrors}.concat(${g})`), s.assign(xe.default.errors, (0, ce._)`${xe.default.vErrors}.length`);
|
|
3189
3189
|
}
|
|
3190
3190
|
function $(_) {
|
|
3191
3191
|
var g;
|
|
@@ -3208,10 +3208,10 @@ function Tt(e, t, n, r) {
|
|
|
3208
3208
|
}
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
|
-
|
|
3212
|
-
|
|
3211
|
+
Be.callRef = Tt;
|
|
3212
|
+
Be.default = Xi;
|
|
3213
3213
|
Object.defineProperty(Fr, "__esModule", { value: !0 });
|
|
3214
|
-
const el = zr, tl =
|
|
3214
|
+
const el = zr, tl = Be, rl = [
|
|
3215
3215
|
"$schema",
|
|
3216
3216
|
"$id",
|
|
3217
3217
|
"$defs",
|
|
@@ -3273,12 +3273,12 @@ function Us(e) {
|
|
|
3273
3273
|
Br.default = Us;
|
|
3274
3274
|
Us.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
3275
3275
|
Object.defineProperty(Kr, "__esModule", { value: !0 });
|
|
3276
|
-
const
|
|
3276
|
+
const ze = K, il = M, ll = Br, dl = {
|
|
3277
3277
|
message({ keyword: e, schemaCode: t }) {
|
|
3278
3278
|
const n = e === "maxLength" ? "more" : "fewer";
|
|
3279
|
-
return (0,
|
|
3279
|
+
return (0, ze.str)`must NOT have ${n} than ${t} characters`;
|
|
3280
3280
|
},
|
|
3281
|
-
params: ({ schemaCode: e }) => (0,
|
|
3281
|
+
params: ({ schemaCode: e }) => (0, ze._)`{limit: ${e}}`
|
|
3282
3282
|
}, cl = {
|
|
3283
3283
|
keyword: ["maxLength", "minLength"],
|
|
3284
3284
|
type: "string",
|
|
@@ -3286,14 +3286,14 @@ const Fe = K, il = M, ll = Br, dl = {
|
|
|
3286
3286
|
$data: !0,
|
|
3287
3287
|
error: dl,
|
|
3288
3288
|
code(e) {
|
|
3289
|
-
const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ?
|
|
3290
|
-
e.fail$data((0,
|
|
3289
|
+
const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? ze.operators.GT : ze.operators.LT, o = s.opts.unicode === !1 ? (0, ze._)`${n}.length` : (0, ze._)`${(0, il.useFunc)(e.gen, ll.default)}(${n})`;
|
|
3290
|
+
e.fail$data((0, ze._)`${o} ${a} ${r}`);
|
|
3291
3291
|
}
|
|
3292
3292
|
};
|
|
3293
3293
|
Kr.default = cl;
|
|
3294
|
-
var
|
|
3295
|
-
Object.defineProperty(
|
|
3296
|
-
const ul =
|
|
3294
|
+
var Jr = {};
|
|
3295
|
+
Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
3296
|
+
const ul = J, zt = K, fl = {
|
|
3297
3297
|
message: ({ schemaCode: e }) => (0, zt.str)`must match pattern "${e}"`,
|
|
3298
3298
|
params: ({ schemaCode: e }) => (0, zt._)`{pattern: ${e}}`
|
|
3299
3299
|
}, ml = {
|
|
@@ -3307,9 +3307,9 @@ const ul = G, zt = K, fl = {
|
|
|
3307
3307
|
e.fail$data((0, zt._)`!${i}.test(${t})`);
|
|
3308
3308
|
}
|
|
3309
3309
|
};
|
|
3310
|
-
|
|
3311
|
-
var
|
|
3312
|
-
Object.defineProperty(
|
|
3310
|
+
Jr.default = ml;
|
|
3311
|
+
var Gr = {};
|
|
3312
|
+
Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
3313
3313
|
const ft = K, hl = {
|
|
3314
3314
|
message({ keyword: e, schemaCode: t }) {
|
|
3315
3315
|
const n = e === "maxProperties" ? "more" : "fewer";
|
|
@@ -3327,10 +3327,10 @@ const ft = K, hl = {
|
|
|
3327
3327
|
e.fail$data((0, ft._)`Object.keys(${n}).length ${s} ${r}`);
|
|
3328
3328
|
}
|
|
3329
3329
|
};
|
|
3330
|
-
|
|
3330
|
+
Gr.default = pl;
|
|
3331
3331
|
var xr = {};
|
|
3332
3332
|
Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
3333
|
-
const it =
|
|
3333
|
+
const it = J, mt = K, yl = M, vl = {
|
|
3334
3334
|
message: ({ params: { missingProperty: e } }) => (0, mt.str)`must have required property '${e}'`,
|
|
3335
3335
|
params: ({ params: { missingProperty: e } }) => (0, mt._)`{missingProperty: ${e}}`
|
|
3336
3336
|
}, _l = {
|
|
@@ -3464,21 +3464,21 @@ const br = K, El = M, Pl = bt, Ol = {
|
|
|
3464
3464
|
Yr.default = jl;
|
|
3465
3465
|
var Qr = {};
|
|
3466
3466
|
Object.defineProperty(Qr, "__esModule", { value: !0 });
|
|
3467
|
-
const dt = K, ql = M,
|
|
3467
|
+
const dt = K, ql = M, Nl = bt, Il = {
|
|
3468
3468
|
message: "must be equal to one of the allowed values",
|
|
3469
3469
|
params: ({ schemaCode: e }) => (0, dt._)`{allowedValues: ${e}}`
|
|
3470
3470
|
}, Ml = {
|
|
3471
3471
|
keyword: "enum",
|
|
3472
3472
|
schemaType: "array",
|
|
3473
3473
|
$data: !0,
|
|
3474
|
-
error:
|
|
3474
|
+
error: Il,
|
|
3475
3475
|
code(e) {
|
|
3476
3476
|
const { gen: t, data: n, $data: r, schema: s, schemaCode: a, it: o } = e;
|
|
3477
3477
|
if (!r && s.length === 0)
|
|
3478
3478
|
throw new Error("enum must have non-empty array");
|
|
3479
3479
|
const i = s.length >= o.opts.loopEnum;
|
|
3480
3480
|
let d;
|
|
3481
|
-
const c = () => d ?? (d = (0, ql.useFunc)(t,
|
|
3481
|
+
const c = () => d ?? (d = (0, ql.useFunc)(t, Nl.default));
|
|
3482
3482
|
let u;
|
|
3483
3483
|
if (i || r)
|
|
3484
3484
|
u = t.let("valid"), e.block$data(u, f);
|
|
@@ -3500,7 +3500,7 @@ const dt = K, ql = M, Il = bt, Nl = {
|
|
|
3500
3500
|
};
|
|
3501
3501
|
Qr.default = Ml;
|
|
3502
3502
|
Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
3503
|
-
const Tl = Lr, Rl = Hr, Al = Kr, Vl =
|
|
3503
|
+
const Tl = Lr, Rl = Hr, Al = Kr, Vl = Jr, Dl = Gr, Cl = xr, Fl = Wr, zl = Zr, Ul = Yr, Ll = Qr, Hl = [
|
|
3504
3504
|
// number
|
|
3505
3505
|
Tl.default,
|
|
3506
3506
|
Rl.default,
|
|
@@ -3523,9 +3523,9 @@ Ur.default = Hl;
|
|
|
3523
3523
|
var Xr = {}, rt = {};
|
|
3524
3524
|
Object.defineProperty(rt, "__esModule", { value: !0 });
|
|
3525
3525
|
rt.validateAdditionalItems = void 0;
|
|
3526
|
-
const
|
|
3527
|
-
message: ({ params: { len: e } }) => (0,
|
|
3528
|
-
params: ({ params: { len: e } }) => (0,
|
|
3526
|
+
const Ue = K, $r = M, Kl = {
|
|
3527
|
+
message: ({ params: { len: e } }) => (0, Ue.str)`must NOT have more than ${e} items`,
|
|
3528
|
+
params: ({ params: { len: e } }) => (0, Ue._)`{limit: ${e}}`
|
|
3529
3529
|
}, Bl = {
|
|
3530
3530
|
keyword: "additionalItems",
|
|
3531
3531
|
type: "array",
|
|
@@ -3544,16 +3544,16 @@ const ze = K, $r = M, Kl = {
|
|
|
3544
3544
|
function Hs(e, t) {
|
|
3545
3545
|
const { gen: n, schema: r, data: s, keyword: a, it: o } = e;
|
|
3546
3546
|
o.items = !0;
|
|
3547
|
-
const i = n.const("len", (0,
|
|
3547
|
+
const i = n.const("len", (0, Ue._)`${s}.length`);
|
|
3548
3548
|
if (r === !1)
|
|
3549
|
-
e.setParams({ len: t.length }), e.pass((0,
|
|
3549
|
+
e.setParams({ len: t.length }), e.pass((0, Ue._)`${i} <= ${t.length}`);
|
|
3550
3550
|
else if (typeof r == "object" && !(0, $r.alwaysValidSchema)(o, r)) {
|
|
3551
|
-
const c = n.var("valid", (0,
|
|
3552
|
-
n.if((0,
|
|
3551
|
+
const c = n.var("valid", (0, Ue._)`${i} <= ${t.length}`);
|
|
3552
|
+
n.if((0, Ue.not)(c), () => d(c)), e.ok(c);
|
|
3553
3553
|
}
|
|
3554
3554
|
function d(c) {
|
|
3555
3555
|
n.forRange("i", t.length, i, (u) => {
|
|
3556
|
-
e.subschema({ keyword: a, dataProp: u, dataPropType: $r.Type.Num }, c), o.allErrors || n.if((0,
|
|
3556
|
+
e.subschema({ keyword: a, dataProp: u, dataPropType: $r.Type.Num }, c), o.allErrors || n.if((0, Ue.not)(c), () => n.break());
|
|
3557
3557
|
});
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
@@ -3562,7 +3562,7 @@ rt.default = Bl;
|
|
|
3562
3562
|
var en = {}, nt = {};
|
|
3563
3563
|
Object.defineProperty(nt, "__esModule", { value: !0 });
|
|
3564
3564
|
nt.validateTuple = void 0;
|
|
3565
|
-
const
|
|
3565
|
+
const In = K, Rt = M, Jl = J, Gl = {
|
|
3566
3566
|
keyword: "items",
|
|
3567
3567
|
type: "array",
|
|
3568
3568
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -3571,15 +3571,15 @@ const Nn = K, Rt = M, Gl = G, Jl = {
|
|
|
3571
3571
|
const { schema: t, it: n } = e;
|
|
3572
3572
|
if (Array.isArray(t))
|
|
3573
3573
|
return Ks(e, "additionalItems", t);
|
|
3574
|
-
n.items = !0, !(0, Rt.alwaysValidSchema)(n, t) && e.ok((0,
|
|
3574
|
+
n.items = !0, !(0, Rt.alwaysValidSchema)(n, t) && e.ok((0, Jl.validateArray)(e));
|
|
3575
3575
|
}
|
|
3576
3576
|
};
|
|
3577
3577
|
function Ks(e, t, n = e.schema) {
|
|
3578
3578
|
const { gen: r, parentSchema: s, data: a, keyword: o, it: i } = e;
|
|
3579
3579
|
u(s), i.opts.unevaluated && n.length && i.items !== !0 && (i.items = Rt.mergeEvaluated.items(r, n.length, i.items));
|
|
3580
|
-
const d = r.name("valid"), c = r.const("len", (0,
|
|
3580
|
+
const d = r.name("valid"), c = r.const("len", (0, In._)`${a}.length`);
|
|
3581
3581
|
n.forEach((f, b) => {
|
|
3582
|
-
(0, Rt.alwaysValidSchema)(i, f) || (r.if((0,
|
|
3582
|
+
(0, Rt.alwaysValidSchema)(i, f) || (r.if((0, In._)`${c} > ${b}`, () => e.subschema({
|
|
3583
3583
|
keyword: o,
|
|
3584
3584
|
schemaProp: b,
|
|
3585
3585
|
dataProp: b
|
|
@@ -3594,7 +3594,7 @@ function Ks(e, t, n = e.schema) {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
nt.validateTuple = Ks;
|
|
3597
|
-
nt.default =
|
|
3597
|
+
nt.default = Gl;
|
|
3598
3598
|
Object.defineProperty(en, "__esModule", { value: !0 });
|
|
3599
3599
|
const xl = nt, Wl = {
|
|
3600
3600
|
keyword: "prefixItems",
|
|
@@ -3606,7 +3606,7 @@ const xl = nt, Wl = {
|
|
|
3606
3606
|
en.default = Wl;
|
|
3607
3607
|
var tn = {};
|
|
3608
3608
|
Object.defineProperty(tn, "__esModule", { value: !0 });
|
|
3609
|
-
const Mn = K, Zl = M, Yl =
|
|
3609
|
+
const Mn = K, Zl = M, Yl = J, Ql = rt, Xl = {
|
|
3610
3610
|
message: ({ params: { len: e } }) => (0, Mn.str)`must NOT have more than ${e} items`,
|
|
3611
3611
|
params: ({ params: { len: e } }) => (0, Mn._)`{limit: ${e}}`
|
|
3612
3612
|
}, ed = {
|
|
@@ -3678,7 +3678,7 @@ rn.default = rd;
|
|
|
3678
3678
|
var Bs = {};
|
|
3679
3679
|
(function(e) {
|
|
3680
3680
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
3681
|
-
const t = K, n = M, r =
|
|
3681
|
+
const t = K, n = M, r = J;
|
|
3682
3682
|
e.error = {
|
|
3683
3683
|
message: ({ params: { property: d, depsCount: c, deps: u } }) => {
|
|
3684
3684
|
const f = c === 1 ? "property" : "properties";
|
|
@@ -3748,9 +3748,9 @@ var Bs = {};
|
|
|
3748
3748
|
})(Bs);
|
|
3749
3749
|
var nn = {};
|
|
3750
3750
|
Object.defineProperty(nn, "__esModule", { value: !0 });
|
|
3751
|
-
const
|
|
3751
|
+
const Js = K, nd = M, sd = {
|
|
3752
3752
|
message: "property name must be valid",
|
|
3753
|
-
params: ({ params: e }) => (0,
|
|
3753
|
+
params: ({ params: e }) => (0, Js._)`{propertyName: ${e.propertyName}}`
|
|
3754
3754
|
}, ad = {
|
|
3755
3755
|
keyword: "propertyNames",
|
|
3756
3756
|
type: "object",
|
|
@@ -3768,16 +3768,16 @@ const Gs = K, nd = M, sd = {
|
|
|
3768
3768
|
dataTypes: ["string"],
|
|
3769
3769
|
propertyName: o,
|
|
3770
3770
|
compositeRule: !0
|
|
3771
|
-
}, a), t.if((0,
|
|
3771
|
+
}, a), t.if((0, Js.not)(a), () => {
|
|
3772
3772
|
e.error(!0), s.allErrors || t.break();
|
|
3773
3773
|
});
|
|
3774
3774
|
}), e.ok(a);
|
|
3775
3775
|
}
|
|
3776
3776
|
};
|
|
3777
3777
|
nn.default = ad;
|
|
3778
|
-
var
|
|
3779
|
-
Object.defineProperty(
|
|
3780
|
-
const jt =
|
|
3778
|
+
var Jt = {};
|
|
3779
|
+
Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
3780
|
+
const jt = J, _e = K, od = qe, qt = M, id = {
|
|
3781
3781
|
message: "must NOT have additional properties",
|
|
3782
3782
|
params: ({ params: e }) => (0, _e._)`{additionalProperty: ${e.additionalProperty}}`
|
|
3783
3783
|
}, ld = {
|
|
@@ -3842,10 +3842,10 @@ const jt = G, _e = K, od = qe, qt = M, id = {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
|
-
|
|
3845
|
+
Jt.default = ld;
|
|
3846
3846
|
var sn = {};
|
|
3847
3847
|
Object.defineProperty(sn, "__esModule", { value: !0 });
|
|
3848
|
-
const dd = be, Tn =
|
|
3848
|
+
const dd = be, Tn = J, hr = M, Rn = Jt, cd = {
|
|
3849
3849
|
keyword: "properties",
|
|
3850
3850
|
type: "object",
|
|
3851
3851
|
schemaType: "object",
|
|
@@ -3877,7 +3877,7 @@ const dd = be, Tn = G, hr = M, Rn = Gt, cd = {
|
|
|
3877
3877
|
sn.default = cd;
|
|
3878
3878
|
var an = {};
|
|
3879
3879
|
Object.defineProperty(an, "__esModule", { value: !0 });
|
|
3880
|
-
const An =
|
|
3880
|
+
const An = J, Nt = K, Vn = M, Dn = M, ud = {
|
|
3881
3881
|
keyword: "patternProperties",
|
|
3882
3882
|
type: "object",
|
|
3883
3883
|
schemaType: "object",
|
|
@@ -3886,7 +3886,7 @@ const An = G, It = K, Vn = M, Dn = M, ud = {
|
|
|
3886
3886
|
if (i.length === 0 || d.length === i.length && (!a.opts.unevaluated || a.props === !0))
|
|
3887
3887
|
return;
|
|
3888
3888
|
const c = o.strictSchema && !o.allowMatchingProperties && s.properties, u = t.name("valid");
|
|
3889
|
-
a.props !== !0 && !(a.props instanceof
|
|
3889
|
+
a.props !== !0 && !(a.props instanceof Nt.Name) && (a.props = (0, Dn.evaluatedPropsToName)(t, a.props));
|
|
3890
3890
|
const { props: f } = a;
|
|
3891
3891
|
b();
|
|
3892
3892
|
function b() {
|
|
@@ -3899,14 +3899,14 @@ const An = G, It = K, Vn = M, Dn = M, ud = {
|
|
|
3899
3899
|
}
|
|
3900
3900
|
function _(g) {
|
|
3901
3901
|
t.forIn("key", r, (p) => {
|
|
3902
|
-
t.if((0,
|
|
3902
|
+
t.if((0, Nt._)`${(0, An.usePattern)(e, g)}.test(${p})`, () => {
|
|
3903
3903
|
const m = d.includes(g);
|
|
3904
3904
|
m || e.subschema({
|
|
3905
3905
|
keyword: "patternProperties",
|
|
3906
3906
|
schemaProp: g,
|
|
3907
3907
|
dataProp: p,
|
|
3908
3908
|
dataPropType: Dn.Type.Str
|
|
3909
|
-
}, u), a.opts.unevaluated && f !== !0 ? t.assign((0,
|
|
3909
|
+
}, u), a.opts.unevaluated && f !== !0 ? t.assign((0, Nt._)`${f}[${p}]`, !0) : !m && !a.allErrors && t.if((0, Nt.not)(u), () => t.break());
|
|
3910
3910
|
});
|
|
3911
3911
|
});
|
|
3912
3912
|
}
|
|
@@ -3938,7 +3938,7 @@ const fd = M, md = {
|
|
|
3938
3938
|
on.default = md;
|
|
3939
3939
|
var ln = {};
|
|
3940
3940
|
Object.defineProperty(ln, "__esModule", { value: !0 });
|
|
3941
|
-
const hd =
|
|
3941
|
+
const hd = J, pd = {
|
|
3942
3942
|
keyword: "anyOf",
|
|
3943
3943
|
schemaType: "array",
|
|
3944
3944
|
trackErrors: !0,
|
|
@@ -4000,7 +4000,7 @@ const gd = M, bd = {
|
|
|
4000
4000
|
cn.default = bd;
|
|
4001
4001
|
var un = {};
|
|
4002
4002
|
Object.defineProperty(un, "__esModule", { value: !0 });
|
|
4003
|
-
const Ut = K,
|
|
4003
|
+
const Ut = K, Gs = M, $d = {
|
|
4004
4004
|
message: ({ params: e }) => (0, Ut.str)`must match "${e.ifClause}" schema`,
|
|
4005
4005
|
params: ({ params: e }) => (0, Ut._)`{failingKeyword: ${e.ifClause}}`
|
|
4006
4006
|
}, wd = {
|
|
@@ -4010,7 +4010,7 @@ const Ut = K, Js = M, $d = {
|
|
|
4010
4010
|
error: $d,
|
|
4011
4011
|
code(e) {
|
|
4012
4012
|
const { gen: t, parentSchema: n, it: r } = e;
|
|
4013
|
-
n.then === void 0 && n.else === void 0 && (0,
|
|
4013
|
+
n.then === void 0 && n.else === void 0 && (0, Gs.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
|
|
4014
4014
|
const s = Cn(r, "then"), a = Cn(r, "else");
|
|
4015
4015
|
if (!s && !a)
|
|
4016
4016
|
return;
|
|
@@ -4039,7 +4039,7 @@ const Ut = K, Js = M, $d = {
|
|
|
4039
4039
|
};
|
|
4040
4040
|
function Cn(e, t) {
|
|
4041
4041
|
const n = e.schema[t];
|
|
4042
|
-
return n !== void 0 && !(0,
|
|
4042
|
+
return n !== void 0 && !(0, Gs.alwaysValidSchema)(e, n);
|
|
4043
4043
|
}
|
|
4044
4044
|
un.default = wd;
|
|
4045
4045
|
var fn = {};
|
|
@@ -4053,7 +4053,7 @@ const kd = M, Sd = {
|
|
|
4053
4053
|
};
|
|
4054
4054
|
fn.default = Sd;
|
|
4055
4055
|
Object.defineProperty(Xr, "__esModule", { value: !0 });
|
|
4056
|
-
const Ed = rt, Pd = en, Od = nt, jd = tn, qd = rn,
|
|
4056
|
+
const Ed = rt, Pd = en, Od = nt, jd = tn, qd = rn, Nd = Bs, Id = nn, Md = Jt, Td = sn, Rd = an, Ad = on, Vd = ln, Dd = dn, Cd = cn, Fd = un, zd = fn;
|
|
4057
4057
|
function Ud(e = !1) {
|
|
4058
4058
|
const t = [
|
|
4059
4059
|
// any
|
|
@@ -4064,9 +4064,9 @@ function Ud(e = !1) {
|
|
|
4064
4064
|
Fd.default,
|
|
4065
4065
|
zd.default,
|
|
4066
4066
|
// object
|
|
4067
|
-
Nd.default,
|
|
4068
|
-
Md.default,
|
|
4069
4067
|
Id.default,
|
|
4068
|
+
Md.default,
|
|
4069
|
+
Nd.default,
|
|
4070
4070
|
Td.default,
|
|
4071
4071
|
Rd.default
|
|
4072
4072
|
];
|
|
@@ -4124,8 +4124,8 @@ const ee = K, Ld = {
|
|
|
4124
4124
|
}
|
|
4125
4125
|
}
|
|
4126
4126
|
function k(O) {
|
|
4127
|
-
const F = O instanceof RegExp ? (0, ee.regexpCode)(O) : d.code.formats ? (0, ee._)`${d.code.formats}${(0, ee.getProperty)(a)}` : void 0,
|
|
4128
|
-
return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, ee._)`${
|
|
4127
|
+
const F = O instanceof RegExp ? (0, ee.regexpCode)(O) : d.code.formats ? (0, ee._)`${d.code.formats}${(0, ee.getProperty)(a)}` : void 0, G = n.scopeValue("formats", { key: a, ref: O, code: F });
|
|
4128
|
+
return typeof O == "object" && !(O instanceof RegExp) ? [O.type || "string", O.validate, (0, ee._)`${G}.validate`] : ["string", O, G];
|
|
4129
4129
|
}
|
|
4130
4130
|
function S() {
|
|
4131
4131
|
if (typeof _ == "object" && !(_ instanceof RegExp) && _.async) {
|
|
@@ -4160,24 +4160,24 @@ Xe.contentVocabulary = [
|
|
|
4160
4160
|
"contentSchema"
|
|
4161
4161
|
];
|
|
4162
4162
|
Object.defineProperty(Cr, "__esModule", { value: !0 });
|
|
4163
|
-
const
|
|
4164
|
-
Gd.default,
|
|
4163
|
+
const Jd = Fr, Gd = Ur, xd = Xr, Wd = mn, Fn = Xe, Zd = [
|
|
4165
4164
|
Jd.default,
|
|
4165
|
+
Gd.default,
|
|
4166
4166
|
(0, xd.default)(),
|
|
4167
4167
|
Wd.default,
|
|
4168
4168
|
Fn.metadataVocabulary,
|
|
4169
4169
|
Fn.contentVocabulary
|
|
4170
4170
|
];
|
|
4171
4171
|
Cr.default = Zd;
|
|
4172
|
-
var pn = {},
|
|
4173
|
-
Object.defineProperty(
|
|
4174
|
-
|
|
4172
|
+
var pn = {}, Gt = {};
|
|
4173
|
+
Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
4174
|
+
Gt.DiscrError = void 0;
|
|
4175
4175
|
var zn;
|
|
4176
4176
|
(function(e) {
|
|
4177
4177
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
4178
|
-
})(zn || (
|
|
4178
|
+
})(zn || (Gt.DiscrError = zn = {}));
|
|
4179
4179
|
Object.defineProperty(pn, "__esModule", { value: !0 });
|
|
4180
|
-
const We = K, wr =
|
|
4180
|
+
const We = K, wr = Gt, Un = ue, Yd = tt, Qd = M, Xd = {
|
|
4181
4181
|
message: ({ params: { discrError: e, tagName: t } }) => e === wr.DiscrError.Tag ? `tag "${t}" must be string` : `value of tag "${t}" must be in oneOf`,
|
|
4182
4182
|
params: ({ params: { discrError: e, tag: t, tagName: n } }) => (0, We._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
|
|
4183
4183
|
}, ec = {
|
|
@@ -4216,9 +4216,9 @@ const We = K, wr = Jt, Un = ue, Yd = tt, Qd = M, Xd = {
|
|
|
4216
4216
|
for (let S = 0; S < o.length; S++) {
|
|
4217
4217
|
let O = o[S];
|
|
4218
4218
|
if (O != null && O.$ref && !(0, Qd.schemaHasRulesButRef)(O, a.self.RULES)) {
|
|
4219
|
-
const
|
|
4220
|
-
if (O = Un.resolveRef.call(a.self, a.schemaEnv.root, a.baseId,
|
|
4221
|
-
throw new Yd.default(a.opts.uriResolver, a.baseId,
|
|
4219
|
+
const G = O.$ref;
|
|
4220
|
+
if (O = Un.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, G), O instanceof Un.SchemaEnv && (O = O.schema), O === void 0)
|
|
4221
|
+
throw new Yd.default(a.opts.uriResolver, a.baseId, G);
|
|
4222
4222
|
}
|
|
4223
4223
|
const F = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
|
|
4224
4224
|
if (typeof F != "object")
|
|
@@ -4540,8 +4540,8 @@ const lc = /* @__PURE__ */ Wn(xs);
|
|
|
4540
4540
|
var kr = { exports: {} }, Ws = {};
|
|
4541
4541
|
(function(e) {
|
|
4542
4542
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
4543
|
-
function t(
|
|
4544
|
-
return { validate:
|
|
4543
|
+
function t(j, V) {
|
|
4544
|
+
return { validate: j, compare: V };
|
|
4545
4545
|
}
|
|
4546
4546
|
e.fullFormats = {
|
|
4547
4547
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -4600,72 +4600,72 @@ var kr = { exports: {} }, Ws = {};
|
|
|
4600
4600
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
4601
4601
|
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
4602
4602
|
}, e.formatNames = Object.keys(e.fullFormats);
|
|
4603
|
-
function n(
|
|
4604
|
-
return
|
|
4603
|
+
function n(j) {
|
|
4604
|
+
return j % 4 === 0 && (j % 100 !== 0 || j % 400 === 0);
|
|
4605
4605
|
}
|
|
4606
4606
|
const r = /^(\d\d\d\d)-(\d\d)-(\d\d)$/, s = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
4607
|
-
function a(
|
|
4608
|
-
const V = r.exec(
|
|
4607
|
+
function a(j) {
|
|
4608
|
+
const V = r.exec(j);
|
|
4609
4609
|
if (!V)
|
|
4610
4610
|
return !1;
|
|
4611
4611
|
const x = +V[1], L = +V[2], ie = +V[3];
|
|
4612
4612
|
return L >= 1 && L <= 12 && ie >= 1 && ie <= (L === 2 && n(x) ? 29 : s[L]);
|
|
4613
4613
|
}
|
|
4614
|
-
function o(
|
|
4615
|
-
if (
|
|
4616
|
-
return
|
|
4614
|
+
function o(j, V) {
|
|
4615
|
+
if (j && V)
|
|
4616
|
+
return j > V ? 1 : j < V ? -1 : 0;
|
|
4617
4617
|
}
|
|
4618
4618
|
const i = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
4619
|
-
function d(
|
|
4620
|
-
const x = i.exec(
|
|
4619
|
+
function d(j, V) {
|
|
4620
|
+
const x = i.exec(j);
|
|
4621
4621
|
if (!x)
|
|
4622
4622
|
return !1;
|
|
4623
4623
|
const L = +x[1], ie = +x[2], ne = +x[3], ke = x[5];
|
|
4624
4624
|
return (L <= 23 && ie <= 59 && ne <= 59 || L === 23 && ie === 59 && ne === 60) && (!V || ke !== "");
|
|
4625
4625
|
}
|
|
4626
|
-
function c(
|
|
4627
|
-
if (!(
|
|
4626
|
+
function c(j, V) {
|
|
4627
|
+
if (!(j && V))
|
|
4628
4628
|
return;
|
|
4629
|
-
const x = i.exec(
|
|
4629
|
+
const x = i.exec(j), L = i.exec(V);
|
|
4630
4630
|
if (x && L)
|
|
4631
|
-
return
|
|
4631
|
+
return j = x[1] + x[2] + x[3] + (x[4] || ""), V = L[1] + L[2] + L[3] + (L[4] || ""), j > V ? 1 : j < V ? -1 : 0;
|
|
4632
4632
|
}
|
|
4633
4633
|
const u = /t|\s/i;
|
|
4634
|
-
function f(
|
|
4635
|
-
const V =
|
|
4634
|
+
function f(j) {
|
|
4635
|
+
const V = j.split(u);
|
|
4636
4636
|
return V.length === 2 && a(V[0]) && d(V[1], !0);
|
|
4637
4637
|
}
|
|
4638
|
-
function b(
|
|
4639
|
-
if (!(
|
|
4638
|
+
function b(j, V) {
|
|
4639
|
+
if (!(j && V))
|
|
4640
4640
|
return;
|
|
4641
|
-
const [x, L] =
|
|
4641
|
+
const [x, L] = j.split(u), [ie, ne] = V.split(u), ke = o(x, ie);
|
|
4642
4642
|
if (ke !== void 0)
|
|
4643
4643
|
return ke || c(L, ne);
|
|
4644
4644
|
}
|
|
4645
4645
|
const $ = /\/|:/, _ = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
4646
|
-
function g(
|
|
4647
|
-
return $.test(
|
|
4646
|
+
function g(j) {
|
|
4647
|
+
return $.test(j) && _.test(j);
|
|
4648
4648
|
}
|
|
4649
4649
|
const p = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
4650
|
-
function m(
|
|
4651
|
-
return p.lastIndex = 0, p.test(
|
|
4650
|
+
function m(j) {
|
|
4651
|
+
return p.lastIndex = 0, p.test(j);
|
|
4652
4652
|
}
|
|
4653
4653
|
const y = -2147483648, k = 2 ** 31 - 1;
|
|
4654
|
-
function S(
|
|
4655
|
-
return Number.isInteger(
|
|
4654
|
+
function S(j) {
|
|
4655
|
+
return Number.isInteger(j) && j <= k && j >= y;
|
|
4656
4656
|
}
|
|
4657
|
-
function O(
|
|
4658
|
-
return Number.isInteger(
|
|
4657
|
+
function O(j) {
|
|
4658
|
+
return Number.isInteger(j);
|
|
4659
4659
|
}
|
|
4660
4660
|
function F() {
|
|
4661
4661
|
return !0;
|
|
4662
4662
|
}
|
|
4663
|
-
const
|
|
4664
|
-
function T(
|
|
4665
|
-
if (
|
|
4663
|
+
const G = /[^\\]\\Z/;
|
|
4664
|
+
function T(j) {
|
|
4665
|
+
if (G.test(j))
|
|
4666
4666
|
return !1;
|
|
4667
4667
|
try {
|
|
4668
|
-
return new RegExp(
|
|
4668
|
+
return new RegExp(j), !0;
|
|
4669
4669
|
} catch {
|
|
4670
4670
|
return !1;
|
|
4671
4671
|
}
|
|
@@ -4945,10 +4945,10 @@ function Hn(e) {
|
|
|
4945
4945
|
return typeof e == "boolean" || typeof e == "string" ? e : e && typeof e == "object" && e.valid === !1 ? e.message || "Validation failed" : !0;
|
|
4946
4946
|
}
|
|
4947
4947
|
function ye(e, t, n = {}) {
|
|
4948
|
-
const r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", a = r == null ? void 0 : r.errorMessages, o = r == null ? void 0 : r.validators, i = r == null ? void 0 : r.validatorDebounce, d = (T,
|
|
4948
|
+
const r = st(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", a = r == null ? void 0 : r.errorMessages, o = r == null ? void 0 : r.validators, i = r == null ? void 0 : r.validatorDebounce, d = (T, j) => {
|
|
4949
4949
|
var x;
|
|
4950
4950
|
const V = t["x-error-messages"];
|
|
4951
|
-
return V != null && V[T] ? V[T] : (x = a == null ? void 0 : a[e]) != null && x[T] ? a[e][T] :
|
|
4951
|
+
return V != null && V[T] ? V[T] : (x = a == null ? void 0 : a[e]) != null && x[T] ? a[e][T] : j;
|
|
4952
4952
|
}, c = () => {
|
|
4953
4953
|
if (typeof i == "number")
|
|
4954
4954
|
return i;
|
|
@@ -4958,8 +4958,8 @@ function ye(e, t, n = {}) {
|
|
|
4958
4958
|
var x;
|
|
4959
4959
|
if (s === "NoValidation")
|
|
4960
4960
|
return !0;
|
|
4961
|
-
const
|
|
4962
|
-
if (
|
|
4961
|
+
const j = r == null ? void 0 : r.schema;
|
|
4962
|
+
if (j && Ln.isRequired(j, e) && (T == null || T === ""))
|
|
4963
4963
|
return d(
|
|
4964
4964
|
"required",
|
|
4965
4965
|
`${t.title || e} is required`
|
|
@@ -5062,16 +5062,16 @@ function ye(e, t, n = {}) {
|
|
|
5062
5062
|
value: $.value
|
|
5063
5063
|
}) : T;
|
|
5064
5064
|
}), O = B(() => {
|
|
5065
|
-
var
|
|
5065
|
+
var j, V;
|
|
5066
5066
|
const T = t["x-hint-mode"];
|
|
5067
|
-
return T || ((V = (
|
|
5067
|
+
return T || ((V = (j = r == null ? void 0 : r.componentDefaults) == null ? void 0 : j.hints) == null ? void 0 : V.showMode) || "always";
|
|
5068
5068
|
}), F = B(() => {
|
|
5069
5069
|
const T = r == null ? void 0 : r.schema;
|
|
5070
5070
|
return T ? Ln.isRequired(T, e) : !1;
|
|
5071
|
-
}),
|
|
5071
|
+
}), G = B(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
|
|
5072
5072
|
return {
|
|
5073
5073
|
value: $,
|
|
5074
|
-
errorMessage:
|
|
5074
|
+
errorMessage: G,
|
|
5075
5075
|
errors: g,
|
|
5076
5076
|
setValue: p,
|
|
5077
5077
|
setTouched: m,
|
|
@@ -5143,7 +5143,7 @@ const yc = /* @__PURE__ */ fe({
|
|
|
5143
5143
|
};
|
|
5144
5144
|
function qc(e, t, n, r, s, a) {
|
|
5145
5145
|
var o, i;
|
|
5146
|
-
return
|
|
5146
|
+
return q(), I("div", vc, [
|
|
5147
5147
|
C("label", {
|
|
5148
5148
|
for: r.fieldId,
|
|
5149
5149
|
class: "quickform-label"
|
|
@@ -5153,9 +5153,9 @@ function qc(e, t, n, r, s, a) {
|
|
|
5153
5153
|
1
|
|
5154
5154
|
/* TEXT */
|
|
5155
5155
|
),
|
|
5156
|
-
r.props.schema.required ? (
|
|
5156
|
+
r.props.schema.required ? (q(), I("span", gc, "*")) : z("v-if", !0)
|
|
5157
5157
|
], 8, _c),
|
|
5158
|
-
r.isTextarea ? Oe((
|
|
5158
|
+
r.isTextarea ? Oe((q(), I("textarea", {
|
|
5159
5159
|
key: 0,
|
|
5160
5160
|
id: r.fieldId,
|
|
5161
5161
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => r.value = d),
|
|
@@ -5173,7 +5173,7 @@ function qc(e, t, n, r, s, a) {
|
|
|
5173
5173
|
onMouseleave: t[4] || (t[4] = (d) => r.isHovered = !1)
|
|
5174
5174
|
}, null, 40, bc)), [
|
|
5175
5175
|
[pt, r.value]
|
|
5176
|
-
]) : (
|
|
5176
|
+
]) : (q(), I("div", $c, [
|
|
5177
5177
|
Oe(C("input", {
|
|
5178
5178
|
id: r.fieldId,
|
|
5179
5179
|
"onUpdate:modelValue": t[5] || (t[5] = (d) => r.value = d),
|
|
@@ -5194,14 +5194,14 @@ function qc(e, t, n, r, s, a) {
|
|
|
5194
5194
|
}, null, 42, wc), [
|
|
5195
5195
|
[Sr, r.value]
|
|
5196
5196
|
]),
|
|
5197
|
-
r.isPassword ? (
|
|
5197
|
+
r.isPassword ? (q(), I("button", {
|
|
5198
5198
|
key: 0,
|
|
5199
5199
|
type: "button",
|
|
5200
5200
|
class: "quickform-password-toggle",
|
|
5201
5201
|
"aria-label": r.showPassword ? (o = r.formContext) == null ? void 0 : o.labels.hidePassword : (i = r.formContext) == null ? void 0 : i.labels.showPassword,
|
|
5202
5202
|
onClick: r.togglePasswordVisibility
|
|
5203
5203
|
}, [
|
|
5204
|
-
r.showPassword ? (
|
|
5204
|
+
r.showPassword ? (q(), I("svg", Sc, [...t[10] || (t[10] = [
|
|
5205
5205
|
C(
|
|
5206
5206
|
"path",
|
|
5207
5207
|
{ d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" },
|
|
@@ -5221,7 +5221,7 @@ function qc(e, t, n, r, s, a) {
|
|
|
5221
5221
|
-1
|
|
5222
5222
|
/* CACHED */
|
|
5223
5223
|
)
|
|
5224
|
-
])])) : (
|
|
5224
|
+
])])) : (q(), I("svg", Ec, [...t[11] || (t[11] = [
|
|
5225
5225
|
C(
|
|
5226
5226
|
"path",
|
|
5227
5227
|
{ d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" },
|
|
@@ -5243,14 +5243,14 @@ function qc(e, t, n, r, s, a) {
|
|
|
5243
5243
|
])]))
|
|
5244
5244
|
], 8, kc)) : z("v-if", !0)
|
|
5245
5245
|
])),
|
|
5246
|
-
r.showHint ? (
|
|
5246
|
+
r.showHint ? (q(), I("div", {
|
|
5247
5247
|
key: 2,
|
|
5248
5248
|
id: `${r.fieldId}-hint`,
|
|
5249
5249
|
class: "quickform-hint"
|
|
5250
5250
|
}, [
|
|
5251
5251
|
C("span", { innerHTML: r.hint }, null, 8, Oc)
|
|
5252
5252
|
], 8, Pc)) : z("v-if", !0),
|
|
5253
|
-
r.errorMessage ? (
|
|
5253
|
+
r.errorMessage ? (q(), I(
|
|
5254
5254
|
"div",
|
|
5255
5255
|
jc,
|
|
5256
5256
|
Q(r.errorMessage),
|
|
@@ -5259,7 +5259,7 @@ function qc(e, t, n, r, s, a) {
|
|
|
5259
5259
|
)) : z("v-if", !0)
|
|
5260
5260
|
]);
|
|
5261
5261
|
}
|
|
5262
|
-
const
|
|
5262
|
+
const Nc = /* @__PURE__ */ me(yc, [["render", qc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Ic = /* @__PURE__ */ fe({
|
|
5263
5263
|
__name: "NumberField",
|
|
5264
5264
|
props: {
|
|
5265
5265
|
schema: { type: Object, required: !0 },
|
|
@@ -5283,7 +5283,7 @@ const Ic = /* @__PURE__ */ me(yc, [["render", qc], ["__scopeId", "data-v-ad9ab1f
|
|
|
5283
5283
|
class: "quickform-error"
|
|
5284
5284
|
};
|
|
5285
5285
|
function Fc(e, t, n, r, s, a) {
|
|
5286
|
-
return
|
|
5286
|
+
return q(), I("div", Mc, [
|
|
5287
5287
|
C("label", {
|
|
5288
5288
|
for: r.fieldId,
|
|
5289
5289
|
class: "quickform-label"
|
|
@@ -5293,7 +5293,7 @@ function Fc(e, t, n, r, s, a) {
|
|
|
5293
5293
|
1
|
|
5294
5294
|
/* TEXT */
|
|
5295
5295
|
),
|
|
5296
|
-
r.props.schema.required ? (
|
|
5296
|
+
r.props.schema.required ? (q(), I("span", Rc, "*")) : z("v-if", !0)
|
|
5297
5297
|
], 8, Tc),
|
|
5298
5298
|
Oe(C("input", {
|
|
5299
5299
|
id: r.fieldId,
|
|
@@ -5320,14 +5320,14 @@ function Fc(e, t, n, r, s, a) {
|
|
|
5320
5320
|
{ number: !0 }
|
|
5321
5321
|
]
|
|
5322
5322
|
]),
|
|
5323
|
-
r.showHint ? (
|
|
5323
|
+
r.showHint ? (q(), I("div", {
|
|
5324
5324
|
key: 0,
|
|
5325
5325
|
id: `${r.fieldId}-hint`,
|
|
5326
5326
|
class: "quickform-hint"
|
|
5327
5327
|
}, [
|
|
5328
5328
|
C("span", { innerHTML: r.hint }, null, 8, Dc)
|
|
5329
5329
|
], 8, Vc)) : z("v-if", !0),
|
|
5330
|
-
r.errorMessage ? (
|
|
5330
|
+
r.errorMessage ? (q(), I(
|
|
5331
5331
|
"div",
|
|
5332
5332
|
Cc,
|
|
5333
5333
|
Q(r.errorMessage),
|
|
@@ -5336,7 +5336,7 @@ function Fc(e, t, n, r, s, a) {
|
|
|
5336
5336
|
)) : z("v-if", !0)
|
|
5337
5337
|
]);
|
|
5338
5338
|
}
|
|
5339
|
-
const zc = /* @__PURE__ */ me(
|
|
5339
|
+
const zc = /* @__PURE__ */ me(Ic, [["render", Fc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Uc = /* @__PURE__ */ fe({
|
|
5340
5340
|
__name: "BooleanField",
|
|
5341
5341
|
props: {
|
|
5342
5342
|
schema: { type: Object, required: !0 },
|
|
@@ -5352,15 +5352,15 @@ const zc = /* @__PURE__ */ me(Nc, [["render", Fc], ["__scopeId", "data-v-7def4a8
|
|
|
5352
5352
|
const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = ye(n.path, n.schema, { label: n.label }), d = we(n.path), c = oe(!1), u = oe(!1), f = B(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), b = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, showHint: f };
|
|
5353
5353
|
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
5354
5354
|
}
|
|
5355
|
-
}), Lc = { class: "quickform-field quickform-boolean-field" }, Hc = ["for"], Kc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Bc = { class: "quickform-checkbox-text" },
|
|
5355
|
+
}), Lc = { class: "quickform-field quickform-boolean-field" }, Hc = ["for"], Kc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Bc = { class: "quickform-checkbox-text" }, Jc = {
|
|
5356
5356
|
key: 0,
|
|
5357
5357
|
class: "quickform-required"
|
|
5358
|
-
},
|
|
5358
|
+
}, Gc = ["id"], xc = ["innerHTML"], Wc = {
|
|
5359
5359
|
key: 1,
|
|
5360
5360
|
class: "quickform-error"
|
|
5361
5361
|
};
|
|
5362
5362
|
function Zc(e, t, n, r, s, a) {
|
|
5363
|
-
return
|
|
5363
|
+
return q(), I("div", Lc, [
|
|
5364
5364
|
C("label", {
|
|
5365
5365
|
for: r.fieldId,
|
|
5366
5366
|
class: "quickform-checkbox-label",
|
|
@@ -5387,17 +5387,17 @@ function Zc(e, t, n, r, s, a) {
|
|
|
5387
5387
|
1
|
|
5388
5388
|
/* TEXT */
|
|
5389
5389
|
),
|
|
5390
|
-
r.props.schema.required ? (
|
|
5390
|
+
r.props.schema.required ? (q(), I("span", Jc, "*")) : z("v-if", !0)
|
|
5391
5391
|
])
|
|
5392
5392
|
], 40, Hc),
|
|
5393
|
-
r.showHint ? (
|
|
5393
|
+
r.showHint ? (q(), I("div", {
|
|
5394
5394
|
key: 0,
|
|
5395
5395
|
id: `${r.fieldId}-hint`,
|
|
5396
5396
|
class: "quickform-hint"
|
|
5397
5397
|
}, [
|
|
5398
5398
|
C("span", { innerHTML: r.hint }, null, 8, xc)
|
|
5399
|
-
], 8,
|
|
5400
|
-
r.errorMessage ? (
|
|
5399
|
+
], 8, Gc)) : z("v-if", !0),
|
|
5400
|
+
r.errorMessage ? (q(), I(
|
|
5401
5401
|
"div",
|
|
5402
5402
|
Wc,
|
|
5403
5403
|
Q(r.errorMessage),
|
|
@@ -5434,11 +5434,11 @@ const Yc = /* @__PURE__ */ me(Uc, [["render", Zc], ["__scopeId", "data-v-1ff012c
|
|
|
5434
5434
|
};
|
|
5435
5435
|
});
|
|
5436
5436
|
}), _ = B(() => {
|
|
5437
|
-
var O, F,
|
|
5437
|
+
var O, F, G, T;
|
|
5438
5438
|
const y = n.schema["x-component-props"];
|
|
5439
5439
|
if ((y == null ? void 0 : y.autocomplete) !== void 0)
|
|
5440
5440
|
return y.autocomplete;
|
|
5441
|
-
const k = ((F = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : F.autocomplete) || !1, S = ((T = (
|
|
5441
|
+
const k = ((F = (O = d == null ? void 0 : d.componentDefaults) == null ? void 0 : O.select) == null ? void 0 : F.autocomplete) || !1, S = ((T = (G = d == null ? void 0 : d.componentDefaults) == null ? void 0 : G.select) == null ? void 0 : T.autocompleteThreshold) || 5;
|
|
5442
5442
|
return k || $.value.length >= S;
|
|
5443
5443
|
}), g = B(() => {
|
|
5444
5444
|
var y;
|
|
@@ -5454,7 +5454,7 @@ const Yc = /* @__PURE__ */ me(Uc, [["render", Zc], ["__scopeId", "data-v-1ff012c
|
|
|
5454
5454
|
class: "quickform-error"
|
|
5455
5455
|
};
|
|
5456
5456
|
function cu(e, t, n, r, s, a) {
|
|
5457
|
-
return
|
|
5457
|
+
return q(), I("div", Xc, [
|
|
5458
5458
|
C("label", {
|
|
5459
5459
|
for: r.fieldId,
|
|
5460
5460
|
class: "quickform-label"
|
|
@@ -5464,10 +5464,10 @@ function cu(e, t, n, r, s, a) {
|
|
|
5464
5464
|
1
|
|
5465
5465
|
/* TEXT */
|
|
5466
5466
|
),
|
|
5467
|
-
r.props.schema.required ? (
|
|
5467
|
+
r.props.schema.required ? (q(), I("span", tu, "*")) : z("v-if", !0)
|
|
5468
5468
|
], 8, eu),
|
|
5469
5469
|
z(" Use datalist for autocomplete when enabled "),
|
|
5470
|
-
r.useAutocomplete ? Oe((
|
|
5470
|
+
r.useAutocomplete ? Oe((q(), I("input", {
|
|
5471
5471
|
key: 0,
|
|
5472
5472
|
id: r.fieldId,
|
|
5473
5473
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
@@ -5485,10 +5485,10 @@ function cu(e, t, n, r, s, a) {
|
|
|
5485
5485
|
[pt, r.value]
|
|
5486
5486
|
]) : z("v-if", !0),
|
|
5487
5487
|
C("datalist", { id: r.datalistId }, [
|
|
5488
|
-
(
|
|
5488
|
+
(q(!0), I(
|
|
5489
5489
|
$e,
|
|
5490
5490
|
null,
|
|
5491
|
-
|
|
5491
|
+
He(r.options, (o) => (q(), I("option", {
|
|
5492
5492
|
key: String(o.value),
|
|
5493
5493
|
value: o.value
|
|
5494
5494
|
}, Q(o.label), 9, nu))),
|
|
@@ -5497,7 +5497,7 @@ function cu(e, t, n, r, s, a) {
|
|
|
5497
5497
|
))
|
|
5498
5498
|
]),
|
|
5499
5499
|
z(" Use regular select when autocomplete disabled "),
|
|
5500
|
-
r.useAutocomplete ? z("v-if", !0) : Oe((
|
|
5500
|
+
r.useAutocomplete ? z("v-if", !0) : Oe((q(), I("select", {
|
|
5501
5501
|
key: 1,
|
|
5502
5502
|
id: r.fieldId,
|
|
5503
5503
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => r.value = o),
|
|
@@ -5517,10 +5517,10 @@ function cu(e, t, n, r, s, a) {
|
|
|
5517
5517
|
1
|
|
5518
5518
|
/* TEXT */
|
|
5519
5519
|
),
|
|
5520
|
-
(
|
|
5520
|
+
(q(!0), I(
|
|
5521
5521
|
$e,
|
|
5522
5522
|
null,
|
|
5523
|
-
|
|
5523
|
+
He(r.options, (o) => (q(), I("option", {
|
|
5524
5524
|
key: String(o.value),
|
|
5525
5525
|
value: o.value
|
|
5526
5526
|
}, Q(o.label), 9, ou))),
|
|
@@ -5530,14 +5530,14 @@ function cu(e, t, n, r, s, a) {
|
|
|
5530
5530
|
], 40, su)), [
|
|
5531
5531
|
[ra, r.value]
|
|
5532
5532
|
]),
|
|
5533
|
-
r.showHint ? (
|
|
5533
|
+
r.showHint ? (q(), I("div", {
|
|
5534
5534
|
key: 2,
|
|
5535
5535
|
id: `${r.fieldId}-hint`,
|
|
5536
5536
|
class: "quickform-hint"
|
|
5537
5537
|
}, [
|
|
5538
5538
|
C("span", { innerHTML: r.hint }, null, 8, lu)
|
|
5539
5539
|
], 8, iu)) : z("v-if", !0),
|
|
5540
|
-
r.errorMessage ? (
|
|
5540
|
+
r.errorMessage ? (q(), I(
|
|
5541
5541
|
"div",
|
|
5542
5542
|
du,
|
|
5543
5543
|
Q(r.errorMessage),
|
|
@@ -5570,7 +5570,7 @@ const uu = /* @__PURE__ */ me(Qc, [["render", cu], ["__scopeId", "data-v-666cc49
|
|
|
5570
5570
|
class: "quickform-error"
|
|
5571
5571
|
};
|
|
5572
5572
|
function bu(e, t, n, r, s, a) {
|
|
5573
|
-
return
|
|
5573
|
+
return q(), I("div", mu, [
|
|
5574
5574
|
C("label", {
|
|
5575
5575
|
for: r.fieldId,
|
|
5576
5576
|
class: "quickform-label"
|
|
@@ -5580,7 +5580,7 @@ function bu(e, t, n, r, s, a) {
|
|
|
5580
5580
|
1
|
|
5581
5581
|
/* TEXT */
|
|
5582
5582
|
),
|
|
5583
|
-
r.props.schema.required ? (
|
|
5583
|
+
r.props.schema.required ? (q(), I("span", pu, "*")) : z("v-if", !0)
|
|
5584
5584
|
], 8, hu),
|
|
5585
5585
|
Oe(C("input", {
|
|
5586
5586
|
id: r.fieldId,
|
|
@@ -5598,14 +5598,14 @@ function bu(e, t, n, r, s, a) {
|
|
|
5598
5598
|
}, null, 40, yu), [
|
|
5599
5599
|
[Sr, r.value]
|
|
5600
5600
|
]),
|
|
5601
|
-
r.showHint ? (
|
|
5601
|
+
r.showHint ? (q(), I("div", {
|
|
5602
5602
|
key: 0,
|
|
5603
5603
|
id: `${r.fieldId}-hint`,
|
|
5604
5604
|
class: "quickform-hint"
|
|
5605
5605
|
}, [
|
|
5606
5606
|
C("span", { innerHTML: r.hint }, null, 8, _u)
|
|
5607
5607
|
], 8, vu)) : z("v-if", !0),
|
|
5608
|
-
r.errorMessage ? (
|
|
5608
|
+
r.errorMessage ? (q(), I(
|
|
5609
5609
|
"div",
|
|
5610
5610
|
gu,
|
|
5611
5611
|
Q(r.errorMessage),
|
|
@@ -5662,16 +5662,16 @@ const $u = /* @__PURE__ */ me(fu, [["render", bu], ["__scopeId", "data-v-e0ddab6
|
|
|
5662
5662
|
class: "quickform-no-renderer"
|
|
5663
5663
|
};
|
|
5664
5664
|
function Su(e, t, n, r, s, a) {
|
|
5665
|
-
return
|
|
5665
|
+
return q(), I(
|
|
5666
5666
|
$e,
|
|
5667
5667
|
null,
|
|
5668
5668
|
[
|
|
5669
5669
|
z(" Only render if visible "),
|
|
5670
|
-
r.isVisible ? (
|
|
5670
|
+
r.isVisible ? (q(), I(
|
|
5671
5671
|
$e,
|
|
5672
5672
|
{ key: 0 },
|
|
5673
5673
|
[
|
|
5674
|
-
r.component ? (
|
|
5674
|
+
r.component ? (q(), yt(na(r.component), {
|
|
5675
5675
|
key: 0,
|
|
5676
5676
|
schema: n.schema,
|
|
5677
5677
|
uischema: n.uischema,
|
|
@@ -5679,7 +5679,7 @@ function Su(e, t, n, r, s, a) {
|
|
|
5679
5679
|
label: n.label,
|
|
5680
5680
|
disabled: n.disabled || r.context.disabled,
|
|
5681
5681
|
readonly: r.isFieldReadonly
|
|
5682
|
-
}, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (
|
|
5682
|
+
}, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (q(), I("div", ku, [
|
|
5683
5683
|
C(
|
|
5684
5684
|
"p",
|
|
5685
5685
|
null,
|
|
@@ -5730,37 +5730,37 @@ const wt = /* @__PURE__ */ me(wu, [["render", Su], ["__scopeId", "data-v-abf28e2
|
|
|
5730
5730
|
}, qu = {
|
|
5731
5731
|
key: 0,
|
|
5732
5732
|
class: "quickform-required"
|
|
5733
|
-
},
|
|
5733
|
+
}, Nu = ["id"], Iu = ["innerHTML"], Mu = { class: "quickform-object-content" }, Tu = {
|
|
5734
5734
|
key: 2,
|
|
5735
5735
|
class: "quickform-error"
|
|
5736
5736
|
};
|
|
5737
5737
|
function Ru(e, t, n, r, s, a) {
|
|
5738
|
-
return
|
|
5738
|
+
return q(), I("div", Pu, [
|
|
5739
5739
|
C("fieldset", {
|
|
5740
5740
|
id: r.fieldId,
|
|
5741
5741
|
class: "quickform-fieldset",
|
|
5742
5742
|
"aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
|
|
5743
5743
|
}, [
|
|
5744
|
-
r.label ? (
|
|
5744
|
+
r.label ? (q(), I("legend", ju, [
|
|
5745
5745
|
je(
|
|
5746
5746
|
Q(r.label) + " ",
|
|
5747
5747
|
1
|
|
5748
5748
|
/* TEXT */
|
|
5749
5749
|
),
|
|
5750
|
-
r.props.schema.required ? (
|
|
5750
|
+
r.props.schema.required ? (q(), I("span", qu, "*")) : z("v-if", !0)
|
|
5751
5751
|
])) : z("v-if", !0),
|
|
5752
|
-
r.hint ? (
|
|
5752
|
+
r.hint ? (q(), I("div", {
|
|
5753
5753
|
key: 1,
|
|
5754
5754
|
id: `${r.fieldId}-hint`,
|
|
5755
5755
|
class: "quickform-hint quickform-object-hint"
|
|
5756
5756
|
}, [
|
|
5757
|
-
C("span", { innerHTML: r.hint }, null, 8,
|
|
5758
|
-
], 8,
|
|
5757
|
+
C("span", { innerHTML: r.hint }, null, 8, Iu)
|
|
5758
|
+
], 8, Nu)) : z("v-if", !0),
|
|
5759
5759
|
C("div", Mu, [
|
|
5760
|
-
(
|
|
5760
|
+
(q(!0), I(
|
|
5761
5761
|
$e,
|
|
5762
5762
|
null,
|
|
5763
|
-
|
|
5763
|
+
He(r.properties, (o) => (q(), yt(r.FieldRenderer, {
|
|
5764
5764
|
key: o.key,
|
|
5765
5765
|
schema: o.schema,
|
|
5766
5766
|
path: o.path,
|
|
@@ -5771,7 +5771,7 @@ function Ru(e, t, n, r, s, a) {
|
|
|
5771
5771
|
/* KEYED_FRAGMENT */
|
|
5772
5772
|
))
|
|
5773
5773
|
]),
|
|
5774
|
-
r.errorMessage ? (
|
|
5774
|
+
r.errorMessage ? (q(), I(
|
|
5775
5775
|
"div",
|
|
5776
5776
|
Tu,
|
|
5777
5777
|
Q(r.errorMessage),
|
|
@@ -5810,21 +5810,21 @@ const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc1
|
|
|
5810
5810
|
S.splice(k, 1), r.value = S;
|
|
5811
5811
|
}, _ = (k, S) => {
|
|
5812
5812
|
if (S === "up" && k === 0 || S === "down" && k === u.value.length - 1) return;
|
|
5813
|
-
const O = [...u.value], F = S === "up" ? k - 1 : k + 1,
|
|
5814
|
-
O[k] = O[F], O[F] =
|
|
5813
|
+
const O = [...u.value], F = S === "up" ? k - 1 : k + 1, G = O[k];
|
|
5814
|
+
O[k] = O[F], O[F] = G, r.value = O;
|
|
5815
5815
|
}, g = B(() => !(n.disabled || n.readonly || n.schema.maxItems && u.value.length >= n.schema.maxItems)), p = B(() => !(n.disabled || n.readonly || n.schema.minItems && u.value.length <= n.schema.minItems)), y = { props: n, value: r, errorMessage: s, label: a, hint: o, formContext: i, fieldId: d, schemaUtils: c, arrayValue: u, itemsSchema: f, addItem: b, removeItem: $, moveItem: _, canAdd: g, canRemove: p, getItemLabel: (k) => {
|
|
5816
5816
|
var F;
|
|
5817
5817
|
const S = n.schema["x-item-label"];
|
|
5818
5818
|
if (S === "none" || S === !1)
|
|
5819
5819
|
return "";
|
|
5820
5820
|
if (typeof S == "string" && S.includes("{{")) {
|
|
5821
|
-
const
|
|
5822
|
-
if (typeof
|
|
5823
|
-
let T = S,
|
|
5821
|
+
const G = u.value[k];
|
|
5822
|
+
if (typeof G == "object" && G !== null) {
|
|
5823
|
+
let T = S, j = !1;
|
|
5824
5824
|
if (T = T.replace(/\{\{([^}]+)\}\}/g, (V, x) => {
|
|
5825
|
-
const L =
|
|
5826
|
-
return L != null && L !== "" ? (
|
|
5827
|
-
}), T = T.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""),
|
|
5825
|
+
const L = G[x.trim()];
|
|
5826
|
+
return L != null && L !== "" ? (j = !0, String(L)) : "";
|
|
5827
|
+
}), T = T.replace(/^\s*-\s*/, "").replace(/\s*-\s*$/, ""), j && T.trim())
|
|
5828
5828
|
return T.trim();
|
|
5829
5829
|
}
|
|
5830
5830
|
}
|
|
@@ -5838,7 +5838,7 @@ const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc1
|
|
|
5838
5838
|
}, zu = {
|
|
5839
5839
|
key: 0,
|
|
5840
5840
|
class: "quickform-required"
|
|
5841
|
-
}, Uu = ["id"], Lu = ["innerHTML"], Hu = { class: "quickform-array-items" }, Ku = { class: "quickform-array-item-content" }, Bu = { class: "quickform-array-item-actions" },
|
|
5841
|
+
}, Uu = ["id"], Lu = ["innerHTML"], Hu = { class: "quickform-array-items" }, Ku = { class: "quickform-array-item-content" }, Bu = { class: "quickform-array-item-actions" }, Ju = ["disabled", "onClick"], Gu = ["disabled", "onClick"], xu = ["disabled", "onClick", "title"], Wu = {
|
|
5842
5842
|
key: 0,
|
|
5843
5843
|
class: "quickform-array-empty"
|
|
5844
5844
|
}, Zu = { class: "quickform-array-footer" }, Yu = ["disabled"], Qu = {
|
|
@@ -5846,21 +5846,21 @@ const Au = /* @__PURE__ */ me(Eu, [["render", Ru], ["__scopeId", "data-v-8012fc1
|
|
|
5846
5846
|
class: "quickform-error"
|
|
5847
5847
|
};
|
|
5848
5848
|
function Xu(e, t, n, r, s, a) {
|
|
5849
|
-
return
|
|
5849
|
+
return q(), I("div", Du, [
|
|
5850
5850
|
C("fieldset", {
|
|
5851
5851
|
id: r.fieldId,
|
|
5852
5852
|
class: "quickform-fieldset",
|
|
5853
5853
|
"aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
|
|
5854
5854
|
}, [
|
|
5855
|
-
r.label ? (
|
|
5855
|
+
r.label ? (q(), I("legend", Fu, [
|
|
5856
5856
|
je(
|
|
5857
5857
|
Q(r.label) + " ",
|
|
5858
5858
|
1
|
|
5859
5859
|
/* TEXT */
|
|
5860
5860
|
),
|
|
5861
|
-
r.props.schema.required ? (
|
|
5861
|
+
r.props.schema.required ? (q(), I("span", zu, "*")) : z("v-if", !0)
|
|
5862
5862
|
])) : z("v-if", !0),
|
|
5863
|
-
r.hint ? (
|
|
5863
|
+
r.hint ? (q(), I("div", {
|
|
5864
5864
|
key: 1,
|
|
5865
5865
|
id: `${r.fieldId}-hint`,
|
|
5866
5866
|
class: "quickform-hint quickform-array-hint"
|
|
@@ -5868,15 +5868,15 @@ function Xu(e, t, n, r, s, a) {
|
|
|
5868
5868
|
C("span", { innerHTML: r.hint }, null, 8, Lu)
|
|
5869
5869
|
], 8, Uu)) : z("v-if", !0),
|
|
5870
5870
|
C("div", Hu, [
|
|
5871
|
-
(
|
|
5871
|
+
(q(!0), I(
|
|
5872
5872
|
$e,
|
|
5873
5873
|
null,
|
|
5874
|
-
|
|
5874
|
+
He(r.arrayValue, (o, i) => (q(), I("div", {
|
|
5875
5875
|
key: i,
|
|
5876
5876
|
class: "quickform-array-item"
|
|
5877
5877
|
}, [
|
|
5878
5878
|
C("div", Ku, [
|
|
5879
|
-
|
|
5879
|
+
Jn(r.FieldRenderer, {
|
|
5880
5880
|
schema: r.itemsSchema,
|
|
5881
5881
|
path: `${n.path}[${i}]`,
|
|
5882
5882
|
label: r.getItemLabel(i),
|
|
@@ -5891,14 +5891,14 @@ function Xu(e, t, n, r, s, a) {
|
|
|
5891
5891
|
disabled: i === 0 || n.disabled || n.readonly,
|
|
5892
5892
|
onClick: (d) => r.moveItem(i, "up"),
|
|
5893
5893
|
title: "Move Up"
|
|
5894
|
-
}, " ↑ ", 8,
|
|
5894
|
+
}, " ↑ ", 8, Ju),
|
|
5895
5895
|
C("button", {
|
|
5896
5896
|
type: "button",
|
|
5897
5897
|
class: "quickform-btn-icon",
|
|
5898
5898
|
disabled: i === r.arrayValue.length - 1 || n.disabled || n.readonly,
|
|
5899
5899
|
onClick: (d) => r.moveItem(i, "down"),
|
|
5900
5900
|
title: "Move Down"
|
|
5901
|
-
}, " ↓ ", 8,
|
|
5901
|
+
}, " ↓ ", 8, Gu),
|
|
5902
5902
|
C("button", {
|
|
5903
5903
|
type: "button",
|
|
5904
5904
|
class: "quickform-btn-icon quickform-btn-danger",
|
|
@@ -5911,7 +5911,7 @@ function Xu(e, t, n, r, s, a) {
|
|
|
5911
5911
|
128
|
|
5912
5912
|
/* KEYED_FRAGMENT */
|
|
5913
5913
|
)),
|
|
5914
|
-
r.arrayValue.length === 0 ? (
|
|
5914
|
+
r.arrayValue.length === 0 ? (q(), I("div", Wu, " No items ")) : z("v-if", !0)
|
|
5915
5915
|
]),
|
|
5916
5916
|
C("div", Zu, [
|
|
5917
5917
|
C("button", {
|
|
@@ -5921,7 +5921,7 @@ function Xu(e, t, n, r, s, a) {
|
|
|
5921
5921
|
onClick: r.addItem
|
|
5922
5922
|
}, " + " + Q(r.formContext.labels.addItem), 9, Yu)
|
|
5923
5923
|
]),
|
|
5924
|
-
r.errorMessage ? (
|
|
5924
|
+
r.errorMessage ? (q(), I(
|
|
5925
5925
|
"div",
|
|
5926
5926
|
Qu,
|
|
5927
5927
|
Q(r.errorMessage),
|
|
@@ -5951,7 +5951,7 @@ const ef = /* @__PURE__ */ me(Vu, [["render", Xu], ["__scopeId", "data-v-a078389
|
|
|
5951
5951
|
), c = we(n.path);
|
|
5952
5952
|
let u = 0;
|
|
5953
5953
|
const f = oe([]), b = oe(!1);
|
|
5954
|
-
|
|
5954
|
+
Le(
|
|
5955
5955
|
() => r.value,
|
|
5956
5956
|
(p) => {
|
|
5957
5957
|
if (b.value) {
|
|
@@ -5965,7 +5965,7 @@ const ef = /* @__PURE__ */ me(Vu, [["render", Xu], ["__scopeId", "data-v-a078389
|
|
|
5965
5965
|
})) : f.value.length || (f.value = []);
|
|
5966
5966
|
},
|
|
5967
5967
|
{ immediate: !0 }
|
|
5968
|
-
),
|
|
5968
|
+
), Le(
|
|
5969
5969
|
f,
|
|
5970
5970
|
(p) => {
|
|
5971
5971
|
const m = {};
|
|
@@ -5999,8 +5999,8 @@ const ef = /* @__PURE__ */ me(Vu, [["render", Xu], ["__scopeId", "data-v-a078389
|
|
|
5999
5999
|
class: "quickform-error"
|
|
6000
6000
|
};
|
|
6001
6001
|
function pf(e, t, n, r, s, a) {
|
|
6002
|
-
return
|
|
6003
|
-
r.label ? (
|
|
6002
|
+
return q(), I("div", rf, [
|
|
6003
|
+
r.label ? (q(), I("label", {
|
|
6004
6004
|
key: 0,
|
|
6005
6005
|
for: r.fieldId,
|
|
6006
6006
|
class: "quickform-label"
|
|
@@ -6010,9 +6010,9 @@ function pf(e, t, n, r, s, a) {
|
|
|
6010
6010
|
1
|
|
6011
6011
|
/* TEXT */
|
|
6012
6012
|
),
|
|
6013
|
-
r.required ? (
|
|
6013
|
+
r.required ? (q(), I("span", sf, "*")) : z("v-if", !0)
|
|
6014
6014
|
], 8, nf)) : z("v-if", !0),
|
|
6015
|
-
r.hint ? (
|
|
6015
|
+
r.hint ? (q(), I("div", {
|
|
6016
6016
|
key: 1,
|
|
6017
6017
|
id: `${r.fieldId}-hint`,
|
|
6018
6018
|
class: "quickform-hint"
|
|
@@ -6020,7 +6020,7 @@ function pf(e, t, n, r, s, a) {
|
|
|
6020
6020
|
C("span", { innerHTML: r.hint }, null, 8, of)
|
|
6021
6021
|
], 8, af)) : z("v-if", !0),
|
|
6022
6022
|
C("div", lf, [
|
|
6023
|
-
r.pairs.length ? (
|
|
6023
|
+
r.pairs.length ? (q(), I("div", df, [...t[0] || (t[0] = [
|
|
6024
6024
|
C(
|
|
6025
6025
|
"span",
|
|
6026
6026
|
{ class: "quickform-keyvalue-header-cell" },
|
|
@@ -6043,10 +6043,10 @@ function pf(e, t, n, r, s, a) {
|
|
|
6043
6043
|
/* CACHED */
|
|
6044
6044
|
)
|
|
6045
6045
|
])])) : z("v-if", !0),
|
|
6046
|
-
(
|
|
6046
|
+
(q(!0), I(
|
|
6047
6047
|
$e,
|
|
6048
6048
|
null,
|
|
6049
|
-
|
|
6049
|
+
He(r.pairs, (o) => (q(), I("div", {
|
|
6050
6050
|
key: o.id,
|
|
6051
6051
|
class: "quickform-keyvalue-row"
|
|
6052
6052
|
}, [
|
|
@@ -6087,7 +6087,7 @@ function pf(e, t, n, r, s, a) {
|
|
|
6087
6087
|
onClick: r.addPair
|
|
6088
6088
|
}, " + Add Parameter ", 8, mf)
|
|
6089
6089
|
]),
|
|
6090
|
-
r.errorMessage ? (
|
|
6090
|
+
r.errorMessage ? (q(), I(
|
|
6091
6091
|
"div",
|
|
6092
6092
|
hf,
|
|
6093
6093
|
Q(r.errorMessage),
|
|
@@ -6114,7 +6114,7 @@ const yf = /* @__PURE__ */ me(tf, [["render", pf], ["__scopeId", "data-v-8e716b7
|
|
|
6114
6114
|
n.schema,
|
|
6115
6115
|
{ label: n.label }
|
|
6116
6116
|
), c = we(n.path), u = B(() => n.schema["x-show-format-hint"] !== !1), f = oe(""), b = oe(null), $ = oe(!1);
|
|
6117
|
-
|
|
6117
|
+
Le(
|
|
6118
6118
|
() => r.value,
|
|
6119
6119
|
(S) => {
|
|
6120
6120
|
if (!$.value) {
|
|
@@ -6153,8 +6153,8 @@ const yf = /* @__PURE__ */ me(tf, [["render", pf], ["__scopeId", "data-v-8e716b7
|
|
|
6153
6153
|
}
|
|
6154
6154
|
if (S.key === "Tab") {
|
|
6155
6155
|
S.preventDefault(), S.stopPropagation();
|
|
6156
|
-
const F = O.selectionStart,
|
|
6157
|
-
f.value = f.value.substring(0, F) + T + f.value.substring(
|
|
6156
|
+
const F = O.selectionStart, G = O.selectionEnd, T = " ";
|
|
6157
|
+
f.value = f.value.substring(0, F) + T + f.value.substring(G), setTimeout(() => {
|
|
6158
6158
|
O.selectionStart = O.selectionEnd = F + T.length;
|
|
6159
6159
|
}, 0);
|
|
6160
6160
|
return;
|
|
@@ -6182,8 +6182,8 @@ const yf = /* @__PURE__ */ me(tf, [["render", pf], ["__scopeId", "data-v-8e716b7
|
|
|
6182
6182
|
class: "quickform-error"
|
|
6183
6183
|
};
|
|
6184
6184
|
function Of(e, t, n, r, s, a) {
|
|
6185
|
-
return
|
|
6186
|
-
r.label ? (
|
|
6185
|
+
return q(), I("div", _f, [
|
|
6186
|
+
r.label ? (q(), I("div", gf, [
|
|
6187
6187
|
C("label", {
|
|
6188
6188
|
for: r.fieldId,
|
|
6189
6189
|
class: "quickform-label"
|
|
@@ -6193,11 +6193,11 @@ function Of(e, t, n, r, s, a) {
|
|
|
6193
6193
|
1
|
|
6194
6194
|
/* TEXT */
|
|
6195
6195
|
),
|
|
6196
|
-
r.required ? (
|
|
6196
|
+
r.required ? (q(), I("span", $f, "*")) : z("v-if", !0)
|
|
6197
6197
|
], 8, bf),
|
|
6198
|
-
r.showFormatHint ? (
|
|
6198
|
+
r.showFormatHint ? (q(), I("span", wf, "ⓘ")) : z("v-if", !0)
|
|
6199
6199
|
])) : z("v-if", !0),
|
|
6200
|
-
r.hint ? (
|
|
6200
|
+
r.hint ? (q(), I("div", {
|
|
6201
6201
|
key: 1,
|
|
6202
6202
|
id: `${r.fieldId}-hint`,
|
|
6203
6203
|
class: "quickform-hint"
|
|
@@ -6220,7 +6220,7 @@ function Of(e, t, n, r, s, a) {
|
|
|
6220
6220
|
}, null, 42, Ef), [
|
|
6221
6221
|
[pt, r.jsonText]
|
|
6222
6222
|
]),
|
|
6223
|
-
r.displayError ? (
|
|
6223
|
+
r.displayError ? (q(), I(
|
|
6224
6224
|
"div",
|
|
6225
6225
|
Pf,
|
|
6226
6226
|
Q(r.displayError),
|
|
@@ -6243,7 +6243,7 @@ const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb7
|
|
|
6243
6243
|
setup(e, { expose: t }) {
|
|
6244
6244
|
t();
|
|
6245
6245
|
const n = e, { value: r, label: s, hint: a, errorMessage: o } = ye(n.path, n.schema, { label: n.label }), i = we(n.path), d = new $t(), c = B(() => n.schema.oneOf || n.schema.anyOf || []), u = oe(0);
|
|
6246
|
-
|
|
6246
|
+
Gn(() => {
|
|
6247
6247
|
if (r.value) {
|
|
6248
6248
|
const g = c.value.findIndex((p) => d.validate(p, r.value).valid);
|
|
6249
6249
|
g !== -1 && (u.value = g);
|
|
@@ -6255,7 +6255,7 @@ const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb7
|
|
|
6255
6255
|
}, FieldRenderer: wt };
|
|
6256
6256
|
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
6257
6257
|
}
|
|
6258
|
-
}),
|
|
6258
|
+
}), Nf = { class: "quickform-field quickform-oneof-field" }, If = ["id", "aria-describedby"], Mf = {
|
|
6259
6259
|
key: 0,
|
|
6260
6260
|
class: "quickform-legend"
|
|
6261
6261
|
}, Tf = {
|
|
@@ -6266,21 +6266,21 @@ const jf = /* @__PURE__ */ me(vf, [["render", Of], ["__scopeId", "data-v-8122fb7
|
|
|
6266
6266
|
class: "quickform-error"
|
|
6267
6267
|
};
|
|
6268
6268
|
function Uf(e, t, n, r, s, a) {
|
|
6269
|
-
return
|
|
6269
|
+
return q(), I("div", Nf, [
|
|
6270
6270
|
C("fieldset", {
|
|
6271
6271
|
id: r.fieldId,
|
|
6272
6272
|
class: "quickform-fieldset",
|
|
6273
6273
|
"aria-describedby": r.hint ? `${r.fieldId}-hint` : void 0
|
|
6274
6274
|
}, [
|
|
6275
|
-
r.label ? (
|
|
6275
|
+
r.label ? (q(), I("legend", Mf, [
|
|
6276
6276
|
je(
|
|
6277
6277
|
Q(r.label) + " ",
|
|
6278
6278
|
1
|
|
6279
6279
|
/* TEXT */
|
|
6280
6280
|
),
|
|
6281
|
-
r.props.schema.required ? (
|
|
6281
|
+
r.props.schema.required ? (q(), I("span", Tf, "*")) : z("v-if", !0)
|
|
6282
6282
|
])) : z("v-if", !0),
|
|
6283
|
-
r.hint ? (
|
|
6283
|
+
r.hint ? (q(), I("div", {
|
|
6284
6284
|
key: 1,
|
|
6285
6285
|
id: `${r.fieldId}-hint`,
|
|
6286
6286
|
class: "quickform-hint quickform-oneof-hint"
|
|
@@ -6294,10 +6294,10 @@ function Uf(e, t, n, r, s, a) {
|
|
|
6294
6294
|
class: "quickform-select",
|
|
6295
6295
|
disabled: n.disabled || n.readonly
|
|
6296
6296
|
}, [
|
|
6297
|
-
(
|
|
6297
|
+
(q(!0), I(
|
|
6298
6298
|
$e,
|
|
6299
6299
|
null,
|
|
6300
|
-
|
|
6300
|
+
He(r.optionLabels, (o, i) => (q(), I("option", {
|
|
6301
6301
|
key: i,
|
|
6302
6302
|
value: i
|
|
6303
6303
|
}, Q(o), 9, Cf))),
|
|
@@ -6307,7 +6307,7 @@ function Uf(e, t, n, r, s, a) {
|
|
|
6307
6307
|
], 40, Df)
|
|
6308
6308
|
]),
|
|
6309
6309
|
C("div", Ff, [
|
|
6310
|
-
r.activeSchema ? (
|
|
6310
|
+
r.activeSchema ? (q(), yt(r.FieldRenderer, {
|
|
6311
6311
|
key: 0,
|
|
6312
6312
|
schema: r.activeSchema,
|
|
6313
6313
|
path: n.path,
|
|
@@ -6315,14 +6315,14 @@ function Uf(e, t, n, r, s, a) {
|
|
|
6315
6315
|
readonly: n.readonly
|
|
6316
6316
|
}, null, 8, ["schema", "path", "disabled", "readonly"])) : z("v-if", !0)
|
|
6317
6317
|
]),
|
|
6318
|
-
r.errorMessage ? (
|
|
6318
|
+
r.errorMessage ? (q(), I(
|
|
6319
6319
|
"div",
|
|
6320
6320
|
zf,
|
|
6321
6321
|
Q(r.errorMessage),
|
|
6322
6322
|
1
|
|
6323
6323
|
/* TEXT */
|
|
6324
6324
|
)) : z("v-if", !0)
|
|
6325
|
-
], 8,
|
|
6325
|
+
], 8, If)
|
|
6326
6326
|
]);
|
|
6327
6327
|
}
|
|
6328
6328
|
const Kn = /* @__PURE__ */ me(qf, [["render", Uf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Lf = /* @__PURE__ */ fe({
|
|
@@ -6347,9 +6347,9 @@ const Kn = /* @__PURE__ */ me(qf, [["render", Uf], ["__scopeId", "data-v-dab625e
|
|
|
6347
6347
|
}
|
|
6348
6348
|
}), Hf = { class: "quickform-field quickform-allof-field" };
|
|
6349
6349
|
function Kf(e, t, n, r, s, a) {
|
|
6350
|
-
return
|
|
6350
|
+
return q(), I("div", Hf, [
|
|
6351
6351
|
z(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
|
|
6352
|
-
|
|
6352
|
+
Jn(r.FieldRenderer, {
|
|
6353
6353
|
schema: r.mergedSchema,
|
|
6354
6354
|
path: n.path,
|
|
6355
6355
|
disabled: n.disabled,
|
|
@@ -6358,7 +6358,7 @@ function Kf(e, t, n, r, s, a) {
|
|
|
6358
6358
|
}, null, 8, ["schema", "path", "disabled", "readonly", "label"])
|
|
6359
6359
|
]);
|
|
6360
6360
|
}
|
|
6361
|
-
const Bf = /* @__PURE__ */ me(Lf, [["render", Kf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]),
|
|
6361
|
+
const Bf = /* @__PURE__ */ me(Lf, [["render", Kf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Jf = /* @__PURE__ */ fe({
|
|
6362
6362
|
__name: "HiddenField",
|
|
6363
6363
|
props: {
|
|
6364
6364
|
schema: { type: Object, required: !0 },
|
|
@@ -6372,15 +6372,15 @@ const Bf = /* @__PURE__ */ me(Lf, [["render", Kf], ["__scopeId", "data-v-094fd67
|
|
|
6372
6372
|
setup(e, { expose: t }) {
|
|
6373
6373
|
t();
|
|
6374
6374
|
const n = e, { value: r } = ye(n.path, n.schema, { label: n.label });
|
|
6375
|
-
|
|
6375
|
+
Gn(() => {
|
|
6376
6376
|
n.schema.const !== void 0 && r.value === void 0 && (r.value = n.schema.const);
|
|
6377
6377
|
});
|
|
6378
6378
|
const s = { props: n, value: r };
|
|
6379
6379
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
6380
6380
|
}
|
|
6381
|
-
}),
|
|
6381
|
+
}), Gf = ["value"];
|
|
6382
6382
|
function xf(e, t, n, r, s, a) {
|
|
6383
|
-
return
|
|
6383
|
+
return q(), I(
|
|
6384
6384
|
$e,
|
|
6385
6385
|
null,
|
|
6386
6386
|
[
|
|
@@ -6388,13 +6388,13 @@ function xf(e, t, n, r, s, a) {
|
|
|
6388
6388
|
C("input", {
|
|
6389
6389
|
type: "hidden",
|
|
6390
6390
|
value: r.value
|
|
6391
|
-
}, null, 8,
|
|
6391
|
+
}, null, 8, Gf)
|
|
6392
6392
|
],
|
|
6393
6393
|
2112
|
|
6394
6394
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
6395
6395
|
);
|
|
6396
6396
|
}
|
|
6397
|
-
const Wf = /* @__PURE__ */ me(
|
|
6397
|
+
const Wf = /* @__PURE__ */ me(Jf, [["render", xf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
|
|
6398
6398
|
function Zf() {
|
|
6399
6399
|
const e = new la();
|
|
6400
6400
|
return e.register(
|
|
@@ -6403,7 +6403,7 @@ function Zf() {
|
|
|
6403
6403
|
(t) => he(100, pa(t))
|
|
6404
6404
|
), e.register(
|
|
6405
6405
|
"string",
|
|
6406
|
-
|
|
6406
|
+
Nc,
|
|
6407
6407
|
(t) => he(1, et(t))
|
|
6408
6408
|
), e.register(
|
|
6409
6409
|
"number",
|
|
@@ -6451,7 +6451,7 @@ function Zf() {
|
|
|
6451
6451
|
(t) => he(10, ga(t))
|
|
6452
6452
|
), e;
|
|
6453
6453
|
}
|
|
6454
|
-
const
|
|
6454
|
+
const Ce = "__root__", Yf = /* @__PURE__ */ fe({
|
|
6455
6455
|
__name: "DynamicForm",
|
|
6456
6456
|
props: {
|
|
6457
6457
|
schema: { type: Object, required: !0 },
|
|
@@ -6460,10 +6460,10 @@ const xe = "__root__", Yf = /* @__PURE__ */ fe({
|
|
|
6460
6460
|
},
|
|
6461
6461
|
emits: ["update:modelValue", "submit", "validation"],
|
|
6462
6462
|
setup(e, { expose: t, emit: n }) {
|
|
6463
|
-
var O, F,
|
|
6463
|
+
var O, F, G, T;
|
|
6464
6464
|
t();
|
|
6465
6465
|
const r = e, s = n, a = new $t(), o = r.options.registry || Zf(), i = B(() => r.schema.type === "object" && !r.schema.properties), d = i.value ? {
|
|
6466
|
-
[
|
|
6466
|
+
[Ce]: r.modelValue && typeof r.modelValue == "object" && Object.keys(r.modelValue).length > 0 ? r.modelValue : r.options.useDefaults !== !1 ? a.getDefaultValue(r.schema) : {}
|
|
6467
6467
|
} : r.options.useDefaults !== !1 ? { ...a.getDefaultValue(r.schema), ...r.modelValue } : { ...r.modelValue }, { handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _ } = ia({
|
|
6468
6468
|
initialValues: d,
|
|
6469
6469
|
validateOnMount: r.options.validateOnMount ?? !1
|
|
@@ -6501,7 +6501,7 @@ const xe = "__root__", Yf = /* @__PURE__ */ fe({
|
|
|
6501
6501
|
errorMessages: r.options.errorMessages,
|
|
6502
6502
|
validators: r.options.validators,
|
|
6503
6503
|
validatorDebounce: r.options.validatorDebounce,
|
|
6504
|
-
formValues: () => i.value ? _n(u[
|
|
6504
|
+
formValues: () => i.value ? _n(u[Ce]) : _n(u),
|
|
6505
6505
|
labels: { ...g, ...r.options.labels },
|
|
6506
6506
|
componentDefaults: {
|
|
6507
6507
|
// Start with all custom component defaults from options
|
|
@@ -6517,7 +6517,7 @@ const xe = "__root__", Yf = /* @__PURE__ */ fe({
|
|
|
6517
6517
|
},
|
|
6518
6518
|
number: {
|
|
6519
6519
|
...p.number,
|
|
6520
|
-
...(
|
|
6520
|
+
...(G = r.options.componentDefaults) == null ? void 0 : G.number
|
|
6521
6521
|
},
|
|
6522
6522
|
hints: {
|
|
6523
6523
|
...p.hints,
|
|
@@ -6527,51 +6527,51 @@ const xe = "__root__", Yf = /* @__PURE__ */ fe({
|
|
|
6527
6527
|
quickformsDefaults: r.options.quickformsDefaults || {},
|
|
6528
6528
|
hintRenderer: r.options.hintRenderer
|
|
6529
6529
|
});
|
|
6530
|
-
uc(m),
|
|
6530
|
+
uc(m), Le(
|
|
6531
6531
|
() => r.modelValue,
|
|
6532
|
-
(
|
|
6532
|
+
(j) => {
|
|
6533
6533
|
if (i.value) {
|
|
6534
|
-
const V =
|
|
6535
|
-
b(
|
|
6534
|
+
const V = j && typeof j == "object" && Object.keys(j).length > 0 ? j : r.options.useDefaults !== !1 ? a.getDefaultValue(r.schema) : {}, x = u[Ce];
|
|
6535
|
+
JSON.stringify(x) !== JSON.stringify(V) && b(Ce, V);
|
|
6536
6536
|
} else
|
|
6537
|
-
|
|
6537
|
+
j && JSON.stringify(j) !== JSON.stringify(u) && f(j);
|
|
6538
6538
|
},
|
|
6539
6539
|
{ deep: !0 }
|
|
6540
|
-
), i.value ?
|
|
6541
|
-
() => u[
|
|
6542
|
-
(
|
|
6543
|
-
s("update:modelValue",
|
|
6540
|
+
), i.value ? Le(
|
|
6541
|
+
() => u[Ce],
|
|
6542
|
+
(j) => {
|
|
6543
|
+
JSON.stringify(j) !== JSON.stringify(r.modelValue) && s("update:modelValue", j);
|
|
6544
6544
|
},
|
|
6545
6545
|
{ deep: !0 }
|
|
6546
|
-
) :
|
|
6546
|
+
) : Le(
|
|
6547
6547
|
u,
|
|
6548
|
-
(
|
|
6549
|
-
s("update:modelValue",
|
|
6548
|
+
(j) => {
|
|
6549
|
+
JSON.stringify(j) !== JSON.stringify(r.modelValue) && s("update:modelValue", j);
|
|
6550
6550
|
},
|
|
6551
6551
|
{ deep: !0 }
|
|
6552
|
-
),
|
|
6552
|
+
), Le(
|
|
6553
6553
|
[$, _],
|
|
6554
|
-
([
|
|
6554
|
+
([j, V]) => {
|
|
6555
6555
|
s("validation", {
|
|
6556
6556
|
valid: V.valid,
|
|
6557
|
-
errors:
|
|
6557
|
+
errors: j
|
|
6558
6558
|
});
|
|
6559
6559
|
},
|
|
6560
6560
|
{ deep: !0, immediate: !0 }
|
|
6561
6561
|
);
|
|
6562
|
-
const y = c((
|
|
6563
|
-
const V = i.value ?
|
|
6562
|
+
const y = c((j) => {
|
|
6563
|
+
const V = i.value ? j[Ce] : j, x = a.validate(r.schema, V);
|
|
6564
6564
|
x.valid ? s("submit", V) : console.error("Form validation failed:", x.errors);
|
|
6565
|
-
}), k = B(() => r.schema.type !== "object" || !r.schema.properties ? [] : Object.entries(r.schema.properties).map(([
|
|
6566
|
-
key:
|
|
6565
|
+
}), k = B(() => r.schema.type !== "object" || !r.schema.properties ? [] : Object.entries(r.schema.properties).map(([j, V]) => ({
|
|
6566
|
+
key: j,
|
|
6567
6567
|
schema: V,
|
|
6568
|
-
path:
|
|
6569
|
-
}))), S = { props: r, emit: s, schemaUtils: a, registry: o, SINGLE_FIELD_PATH:
|
|
6568
|
+
path: j
|
|
6569
|
+
}))), S = { props: r, emit: s, schemaUtils: a, registry: o, SINGLE_FIELD_PATH: Ce, isSingleField: i, initialValues: d, handleSubmit: c, values: u, setValues: f, setFieldValue: b, errors: $, meta: _, defaultLabels: g, defaultComponentDefaults: p, formContext: m, onSubmit: y, properties: k, FieldRenderer: wt };
|
|
6570
6570
|
return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
|
|
6571
6571
|
}
|
|
6572
6572
|
});
|
|
6573
6573
|
function Qf(e, t, n, r, s, a) {
|
|
6574
|
-
return
|
|
6574
|
+
return q(), I(
|
|
6575
6575
|
"form",
|
|
6576
6576
|
{
|
|
6577
6577
|
class: "quickform",
|
|
@@ -6579,21 +6579,21 @@ function Qf(e, t, n, r, s, a) {
|
|
|
6579
6579
|
},
|
|
6580
6580
|
[
|
|
6581
6581
|
z(" Single field schema (e.g., JSON editor, single object field) "),
|
|
6582
|
-
r.isSingleField ? (
|
|
6582
|
+
r.isSingleField ? (q(), yt(r.FieldRenderer, {
|
|
6583
6583
|
key: 0,
|
|
6584
6584
|
schema: n.schema,
|
|
6585
6585
|
path: r.SINGLE_FIELD_PATH,
|
|
6586
6586
|
disabled: n.options.disabled,
|
|
6587
6587
|
readonly: n.options.readonly
|
|
6588
|
-
}, null, 8, ["schema", "disabled", "readonly"])) : (
|
|
6588
|
+
}, null, 8, ["schema", "disabled", "readonly"])) : (q(), I(
|
|
6589
6589
|
$e,
|
|
6590
6590
|
{ key: 1 },
|
|
6591
6591
|
[
|
|
6592
6592
|
z(" Multiple fields (normal form) "),
|
|
6593
|
-
(
|
|
6593
|
+
(q(!0), I(
|
|
6594
6594
|
$e,
|
|
6595
6595
|
null,
|
|
6596
|
-
|
|
6596
|
+
He(r.properties, (o) => (q(), yt(r.FieldRenderer, {
|
|
6597
6597
|
key: o.key,
|
|
6598
6598
|
schema: o.schema,
|
|
6599
6599
|
path: o.path,
|
|
@@ -6629,7 +6629,7 @@ export {
|
|
|
6629
6629
|
Au as ObjectField,
|
|
6630
6630
|
Kn as OneOfField,
|
|
6631
6631
|
$t as SchemaUtils,
|
|
6632
|
-
|
|
6632
|
+
Nc as StringField,
|
|
6633
6633
|
um as and,
|
|
6634
6634
|
Zf as createDefaultRegistry,
|
|
6635
6635
|
we as generateFieldId,
|