@quickflo/quickforms-vue 1.6.1 → 1.6.2
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 +885 -887
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { provide as ta, inject as ra, computed as G, defineComponent as me, ref as ae, createElementBlock as I, openBlock as j, createElementVNode as F, withDirectives as
|
|
2
|
-
import { useField as
|
|
3
|
-
class
|
|
1
|
+
import { provide as ta, inject as ra, computed as G, defineComponent as me, ref as ae, createElementBlock as I, openBlock as j, createElementVNode as F, withDirectives as je, createCommentVNode as V, createTextVNode as qe, toDisplayString as X, vModelText as vt, normalizeClass as Er, vModelDynamic as Pr, vModelCheckbox as na, Fragment as ke, renderList as He, vModelSelect as sa, createBlock as _t, resolveDynamicComponent as aa, createVNode as Wn, watch as Fe, onMounted as Or, mergeModels as $n, useModel as oa, reactive as ia, markRaw as la, toRaw as wn, nextTick as Pt, renderSlot as da } from "vue";
|
|
2
|
+
import { useField as ca, useForm as ua } from "vee-validate";
|
|
3
|
+
class fa {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.components = /* @__PURE__ */ new Map();
|
|
6
6
|
}
|
|
@@ -57,9 +57,9 @@ class ma {
|
|
|
57
57
|
this.components.clear();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const ye = (e, t) => t ? e : -1, rt = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string",
|
|
61
|
-
(!e.properties || Object.keys(e.properties).length === 0),
|
|
62
|
-
(!e.properties || Object.keys(e.properties).length === 0),
|
|
60
|
+
const ye = (e, t) => t ? e : -1, rt = (e) => e.type === "string" || e.const !== void 0 && typeof e.const == "string", ma = (e) => e.type === "number" || e.type === "integer" || e.const !== void 0 && typeof e.const == "number", om = (e) => e.type === "integer", ha = (e) => e.type === "boolean" || e.const !== void 0 && typeof e.const == "boolean", pa = (e) => e.type === "object" || e.type === void 0 && e.properties !== void 0, ya = (e) => e.type === "array", va = (e) => e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length > 0 && // Has typed additionalProperties
|
|
61
|
+
(!e.properties || Object.keys(e.properties).length === 0), _a = (e) => e["x-render"] === "jsoneditor" ? !0 : e.type === "object" && e.additionalProperties !== void 0 && typeof e.additionalProperties == "object" && Object.keys(e.additionalProperties).length === 0 && // Empty = freeform
|
|
62
|
+
(!e.properties || Object.keys(e.properties).length === 0), im = (e) => e.type === "null", ga = (e) => e.const !== void 0, ba = (e) => Array.isArray(e.enum) && e.enum.length > 0, lm = (e) => (t) => t.format === e, dm = (e) => rt(e) && e.format === "email", $a = (e) => rt(e) && e.format === "date", cm = (e) => rt(e) && e.format === "time", um = (e) => rt(e) && e.format === "date-time", fm = (e) => rt(e) && (e.format === "url" || e.format === "uri"), Zn = (e) => Array.isArray(e.oneOf) && e.oneOf.length > 0, wa = (e) => Array.isArray(e.anyOf) && e.anyOf.length > 0, ka = (e) => Array.isArray(e.allOf) && e.allOf.length > 0, mm = (e) => Zn(e) && e.discriminator !== void 0, hm = (e) => e.if !== void 0, pm = (e) => (t) => t[e] !== void 0, ym = (...e) => (t) => e.every((n) => n(t)), vm = (...e) => (t) => e.some((n) => n(t)), _m = (e) => (t) => !e(t);
|
|
63
63
|
function Yn(e) {
|
|
64
64
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
65
65
|
}
|
|
@@ -867,18 +867,18 @@ var vr = {};
|
|
|
867
867
|
var N = {};
|
|
868
868
|
Object.defineProperty(N, "__esModule", { value: !0 });
|
|
869
869
|
N.checkStrictMode = N.getErrorPath = N.Type = N.useFunc = N.setEvaluated = N.evaluatedPropsToName = N.mergeEvaluated = N.eachItem = N.unescapeJsonPointer = N.escapeJsonPointer = N.escapeFragment = N.unescapeFragment = N.schemaRefOrVal = N.schemaHasRulesButRef = N.schemaHasRules = N.checkUnknownRules = N.alwaysValidSchema = N.toHash = void 0;
|
|
870
|
-
const Q = B,
|
|
871
|
-
function
|
|
870
|
+
const Q = B, Sa = gt;
|
|
871
|
+
function Ea(e) {
|
|
872
872
|
const t = {};
|
|
873
873
|
for (const n of e)
|
|
874
874
|
t[n] = !0;
|
|
875
875
|
return t;
|
|
876
876
|
}
|
|
877
|
-
N.toHash =
|
|
878
|
-
function
|
|
877
|
+
N.toHash = Ea;
|
|
878
|
+
function Pa(e, t) {
|
|
879
879
|
return typeof t == "boolean" ? t : Object.keys(t).length === 0 ? !0 : (Xn(e, t), !es(t, e.self.RULES.all));
|
|
880
880
|
}
|
|
881
|
-
N.alwaysValidSchema =
|
|
881
|
+
N.alwaysValidSchema = Pa;
|
|
882
882
|
function Xn(e, t = e.schema) {
|
|
883
883
|
const { opts: n, self: r } = e;
|
|
884
884
|
if (!n.strictSchema || typeof t == "boolean")
|
|
@@ -897,7 +897,7 @@ function es(e, t) {
|
|
|
897
897
|
return !1;
|
|
898
898
|
}
|
|
899
899
|
N.schemaHasRules = es;
|
|
900
|
-
function
|
|
900
|
+
function Oa(e, t) {
|
|
901
901
|
if (typeof e == "boolean")
|
|
902
902
|
return !e;
|
|
903
903
|
for (const n in e)
|
|
@@ -905,8 +905,8 @@ function ja(e, t) {
|
|
|
905
905
|
return !0;
|
|
906
906
|
return !1;
|
|
907
907
|
}
|
|
908
|
-
N.schemaHasRulesButRef =
|
|
909
|
-
function
|
|
908
|
+
N.schemaHasRulesButRef = Oa;
|
|
909
|
+
function ja({ topSchemaRef: e, schemaPath: t }, n, r, s) {
|
|
910
910
|
if (!s) {
|
|
911
911
|
if (typeof n == "number" || typeof n == "boolean")
|
|
912
912
|
return n;
|
|
@@ -915,49 +915,49 @@ function qa({ topSchemaRef: e, schemaPath: t }, n, r, s) {
|
|
|
915
915
|
}
|
|
916
916
|
return (0, Q._)`${e}${t}${(0, Q.getProperty)(r)}`;
|
|
917
917
|
}
|
|
918
|
-
N.schemaRefOrVal =
|
|
919
|
-
function
|
|
918
|
+
N.schemaRefOrVal = ja;
|
|
919
|
+
function qa(e) {
|
|
920
920
|
return ts(decodeURIComponent(e));
|
|
921
921
|
}
|
|
922
|
-
N.unescapeFragment =
|
|
923
|
-
function
|
|
924
|
-
return encodeURIComponent(
|
|
922
|
+
N.unescapeFragment = qa;
|
|
923
|
+
function Ia(e) {
|
|
924
|
+
return encodeURIComponent(jr(e));
|
|
925
925
|
}
|
|
926
|
-
N.escapeFragment =
|
|
927
|
-
function
|
|
926
|
+
N.escapeFragment = Ia;
|
|
927
|
+
function jr(e) {
|
|
928
928
|
return typeof e == "number" ? `${e}` : e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
929
929
|
}
|
|
930
|
-
N.escapeJsonPointer =
|
|
930
|
+
N.escapeJsonPointer = jr;
|
|
931
931
|
function ts(e) {
|
|
932
932
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
933
933
|
}
|
|
934
934
|
N.unescapeJsonPointer = ts;
|
|
935
|
-
function
|
|
935
|
+
function Na(e, t) {
|
|
936
936
|
if (Array.isArray(e))
|
|
937
937
|
for (const n of e)
|
|
938
938
|
t(n);
|
|
939
939
|
else
|
|
940
940
|
t(e);
|
|
941
941
|
}
|
|
942
|
-
N.eachItem =
|
|
943
|
-
function
|
|
942
|
+
N.eachItem = Na;
|
|
943
|
+
function kn({ mergeNames: e, mergeToName: t, mergeValues: n, resultToName: r }) {
|
|
944
944
|
return (s, a, o, i) => {
|
|
945
945
|
const d = o === void 0 ? a : o instanceof Q.Name ? (a instanceof Q.Name ? e(s, a, o) : t(s, a, o), o) : a instanceof Q.Name ? (t(s, o, a), a) : n(a, o);
|
|
946
946
|
return i === Q.Name && !(d instanceof Q.Name) ? r(s, d) : d;
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
949
|
N.mergeEvaluated = {
|
|
950
|
-
props:
|
|
950
|
+
props: kn({
|
|
951
951
|
mergeNames: (e, t, n) => e.if((0, Q._)`${n} !== true && ${t} !== undefined`, () => {
|
|
952
952
|
e.if((0, Q._)`${t} === true`, () => e.assign(n, !0), () => e.assign(n, (0, Q._)`${n} || {}`).code((0, Q._)`Object.assign(${n}, ${t})`));
|
|
953
953
|
}),
|
|
954
954
|
mergeToName: (e, t, n) => e.if((0, Q._)`${n} !== true`, () => {
|
|
955
|
-
t === !0 ? e.assign(n, !0) : (e.assign(n, (0, Q._)`${n} || {}`),
|
|
955
|
+
t === !0 ? e.assign(n, !0) : (e.assign(n, (0, Q._)`${n} || {}`), qr(e, n, t));
|
|
956
956
|
}),
|
|
957
957
|
mergeValues: (e, t) => e === !0 ? !0 : { ...e, ...t },
|
|
958
958
|
resultToName: rs
|
|
959
959
|
}),
|
|
960
|
-
items:
|
|
960
|
+
items: kn({
|
|
961
961
|
mergeNames: (e, t, n) => e.if((0, Q._)`${n} !== true && ${t} !== undefined`, () => e.assign(n, (0, Q._)`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),
|
|
962
962
|
mergeToName: (e, t, n) => e.if((0, Q._)`${n} !== true`, () => e.assign(n, t === !0 ? !0 : (0, Q._)`${n} > ${t} ? ${n} : ${t}`)),
|
|
963
963
|
mergeValues: (e, t) => e === !0 ? !0 : Math.max(e, t),
|
|
@@ -968,33 +968,33 @@ function rs(e, t) {
|
|
|
968
968
|
if (t === !0)
|
|
969
969
|
return e.var("props", !0);
|
|
970
970
|
const n = e.var("props", (0, Q._)`{}`);
|
|
971
|
-
return t !== void 0 &&
|
|
971
|
+
return t !== void 0 && qr(e, n, t), n;
|
|
972
972
|
}
|
|
973
973
|
N.evaluatedPropsToName = rs;
|
|
974
|
-
function
|
|
974
|
+
function qr(e, t, n) {
|
|
975
975
|
Object.keys(n).forEach((r) => e.assign((0, Q._)`${t}${(0, Q.getProperty)(r)}`, !0));
|
|
976
976
|
}
|
|
977
|
-
N.setEvaluated =
|
|
978
|
-
const
|
|
979
|
-
function
|
|
977
|
+
N.setEvaluated = qr;
|
|
978
|
+
const Sn = {};
|
|
979
|
+
function Ma(e, t) {
|
|
980
980
|
return e.scopeValue("func", {
|
|
981
981
|
ref: t,
|
|
982
|
-
code:
|
|
982
|
+
code: Sn[t.code] || (Sn[t.code] = new Sa._Code(t.code))
|
|
983
983
|
});
|
|
984
984
|
}
|
|
985
|
-
N.useFunc =
|
|
985
|
+
N.useFunc = Ma;
|
|
986
986
|
var _r;
|
|
987
987
|
(function(e) {
|
|
988
988
|
e[e.Num = 0] = "Num", e[e.Str = 1] = "Str";
|
|
989
989
|
})(_r || (N.Type = _r = {}));
|
|
990
|
-
function
|
|
990
|
+
function Ta(e, t, n) {
|
|
991
991
|
if (e instanceof Q.Name) {
|
|
992
992
|
const r = t === _r.Num;
|
|
993
993
|
return n ? r ? (0, Q._)`"[" + ${e} + "]"` : (0, Q._)`"['" + ${e} + "']"` : r ? (0, Q._)`"/" + ${e}` : (0, Q._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`;
|
|
994
994
|
}
|
|
995
|
-
return n ? (0, Q.getProperty)(e).toString() : "/" +
|
|
995
|
+
return n ? (0, Q.getProperty)(e).toString() : "/" + jr(e);
|
|
996
996
|
}
|
|
997
|
-
N.getErrorPath =
|
|
997
|
+
N.getErrorPath = Ta;
|
|
998
998
|
function ns(e, t, n = e.opts.strictSchema) {
|
|
999
999
|
if (n) {
|
|
1000
1000
|
if (t = `strict mode: ${t}`, n === !0)
|
|
@@ -1005,7 +1005,7 @@ function ns(e, t, n = e.opts.strictSchema) {
|
|
|
1005
1005
|
N.checkStrictMode = ns;
|
|
1006
1006
|
var Ie = {};
|
|
1007
1007
|
Object.defineProperty(Ie, "__esModule", { value: !0 });
|
|
1008
|
-
const de = B,
|
|
1008
|
+
const de = B, Ra = {
|
|
1009
1009
|
// validation function arguments
|
|
1010
1010
|
data: new de.Name("data"),
|
|
1011
1011
|
// data passed to validation function
|
|
@@ -1034,7 +1034,7 @@ const de = B, Aa = {
|
|
|
1034
1034
|
jsonLen: new de.Name("jsonLen"),
|
|
1035
1035
|
jsonPart: new de.Name("jsonPart")
|
|
1036
1036
|
};
|
|
1037
|
-
Ie.default =
|
|
1037
|
+
Ie.default = Ra;
|
|
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 = B, n = N, r = Ie;
|
|
@@ -1110,19 +1110,19 @@ Ie.default = Aa;
|
|
|
1110
1110
|
})(bt);
|
|
1111
1111
|
Object.defineProperty(et, "__esModule", { value: !0 });
|
|
1112
1112
|
et.boolOrEmptySchema = et.topBoolOrEmptySchema = void 0;
|
|
1113
|
-
const
|
|
1113
|
+
const Aa = bt, Fa = B, Ca = Ie, Da = {
|
|
1114
1114
|
message: "boolean schema is false"
|
|
1115
1115
|
};
|
|
1116
|
-
function
|
|
1116
|
+
function Va(e) {
|
|
1117
1117
|
const { gen: t, schema: n, validateName: r } = e;
|
|
1118
|
-
n === !1 ? ss(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(
|
|
1118
|
+
n === !1 ? ss(e, !1) : typeof n == "object" && n.$async === !0 ? t.return(Ca.default.data) : (t.assign((0, Fa._)`${r}.errors`, null), t.return(!0));
|
|
1119
1119
|
}
|
|
1120
|
-
et.topBoolOrEmptySchema =
|
|
1121
|
-
function
|
|
1120
|
+
et.topBoolOrEmptySchema = Va;
|
|
1121
|
+
function za(e, t) {
|
|
1122
1122
|
const { gen: n, schema: r } = e;
|
|
1123
1123
|
r === !1 ? (n.var(t, !1), ss(e)) : n.var(t, !0);
|
|
1124
1124
|
}
|
|
1125
|
-
et.boolOrEmptySchema =
|
|
1125
|
+
et.boolOrEmptySchema = za;
|
|
1126
1126
|
function ss(e, t) {
|
|
1127
1127
|
const { gen: n, data: r } = e, s = {
|
|
1128
1128
|
gen: n,
|
|
@@ -1134,17 +1134,17 @@ function ss(e, t) {
|
|
|
1134
1134
|
params: {},
|
|
1135
1135
|
it: e
|
|
1136
1136
|
};
|
|
1137
|
-
(0,
|
|
1137
|
+
(0, Aa.reportError)(s, Da, void 0, t);
|
|
1138
1138
|
}
|
|
1139
1139
|
var se = {}, Ke = {};
|
|
1140
1140
|
Object.defineProperty(Ke, "__esModule", { value: !0 });
|
|
1141
1141
|
Ke.getRules = Ke.isJSONType = void 0;
|
|
1142
|
-
const
|
|
1143
|
-
function
|
|
1144
|
-
return typeof e == "string" &&
|
|
1142
|
+
const Ua = ["string", "number", "integer", "boolean", "null", "object", "array"], La = new Set(Ua);
|
|
1143
|
+
function Ha(e) {
|
|
1144
|
+
return typeof e == "string" && La.has(e);
|
|
1145
1145
|
}
|
|
1146
|
-
Ke.isJSONType =
|
|
1147
|
-
function
|
|
1146
|
+
Ke.isJSONType = Ha;
|
|
1147
|
+
function Ka() {
|
|
1148
1148
|
const e = {
|
|
1149
1149
|
number: { type: "number", rules: [] },
|
|
1150
1150
|
string: { type: "string", rules: [] },
|
|
@@ -1159,15 +1159,15 @@ function Ba() {
|
|
|
1159
1159
|
keywords: {}
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
|
-
Ke.getRules =
|
|
1162
|
+
Ke.getRules = Ka;
|
|
1163
1163
|
var Ne = {};
|
|
1164
1164
|
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
1165
1165
|
Ne.shouldUseRule = Ne.shouldUseGroup = Ne.schemaHasRulesForType = void 0;
|
|
1166
|
-
function
|
|
1166
|
+
function Ba({ schema: e, self: t }, n) {
|
|
1167
1167
|
const r = t.RULES.types[n];
|
|
1168
1168
|
return r && r !== !0 && as(e, r);
|
|
1169
1169
|
}
|
|
1170
|
-
Ne.schemaHasRulesForType =
|
|
1170
|
+
Ne.schemaHasRulesForType = Ba;
|
|
1171
1171
|
function as(e, t) {
|
|
1172
1172
|
return t.rules.some((n) => os(e, n));
|
|
1173
1173
|
}
|
|
@@ -1179,12 +1179,12 @@ function os(e, t) {
|
|
|
1179
1179
|
Ne.shouldUseRule = os;
|
|
1180
1180
|
Object.defineProperty(se, "__esModule", { value: !0 });
|
|
1181
1181
|
se.reportTypeError = se.checkDataTypes = se.checkDataType = se.coerceAndCheckDataType = se.getJSONTypes = se.getSchemaTypes = se.DataType = void 0;
|
|
1182
|
-
const
|
|
1182
|
+
const Ga = Ke, Ja = Ne, xa = bt, K = B, is = N;
|
|
1183
1183
|
var Qe;
|
|
1184
1184
|
(function(e) {
|
|
1185
1185
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
1186
1186
|
})(Qe || (se.DataType = Qe = {}));
|
|
1187
|
-
function
|
|
1187
|
+
function Wa(e) {
|
|
1188
1188
|
const t = ls(e.type);
|
|
1189
1189
|
if (t.includes("null")) {
|
|
1190
1190
|
if (e.nullable === !1)
|
|
@@ -1196,36 +1196,36 @@ function Za(e) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
return t;
|
|
1198
1198
|
}
|
|
1199
|
-
se.getSchemaTypes =
|
|
1199
|
+
se.getSchemaTypes = Wa;
|
|
1200
1200
|
function ls(e) {
|
|
1201
1201
|
const t = Array.isArray(e) ? e : e ? [e] : [];
|
|
1202
|
-
if (t.every(
|
|
1202
|
+
if (t.every(Ga.isJSONType))
|
|
1203
1203
|
return t;
|
|
1204
1204
|
throw new Error("type must be JSONType or JSONType[]: " + t.join(","));
|
|
1205
1205
|
}
|
|
1206
1206
|
se.getJSONTypes = ls;
|
|
1207
|
-
function
|
|
1208
|
-
const { gen: n, data: r, opts: s } = e, a =
|
|
1207
|
+
function Za(e, t) {
|
|
1208
|
+
const { gen: n, data: r, opts: s } = e, a = Ya(t, s.coerceTypes), o = t.length > 0 && !(a.length === 0 && t.length === 1 && (0, Ja.schemaHasRulesForType)(e, t[0]));
|
|
1209
1209
|
if (o) {
|
|
1210
|
-
const i =
|
|
1210
|
+
const i = Ir(t, r, s.strictNumbers, Qe.Wrong);
|
|
1211
1211
|
n.if(i, () => {
|
|
1212
|
-
a.length ?
|
|
1212
|
+
a.length ? Qa(e, t, a) : Nr(e);
|
|
1213
1213
|
});
|
|
1214
1214
|
}
|
|
1215
1215
|
return o;
|
|
1216
1216
|
}
|
|
1217
|
-
se.coerceAndCheckDataType =
|
|
1217
|
+
se.coerceAndCheckDataType = Za;
|
|
1218
1218
|
const ds = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1219
|
-
function
|
|
1219
|
+
function Ya(e, t) {
|
|
1220
1220
|
return t ? e.filter((n) => ds.has(n) || t === "array" && n === "array") : [];
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function Qa(e, t, n) {
|
|
1223
1223
|
const { gen: r, data: s, opts: a } = e, o = r.let("dataType", (0, K._)`typeof ${s}`), i = r.let("coerced", (0, K._)`undefined`);
|
|
1224
|
-
a.coerceTypes === "array" && r.if((0, K._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`, () => r.assign(s, (0, K._)`${s}[0]`).assign(o, (0, K._)`typeof ${s}`).if(
|
|
1224
|
+
a.coerceTypes === "array" && r.if((0, K._)`${o} == 'object' && Array.isArray(${s}) && ${s}.length == 1`, () => r.assign(s, (0, K._)`${s}[0]`).assign(o, (0, K._)`typeof ${s}`).if(Ir(t, s, a.strictNumbers), () => r.assign(i, s))), r.if((0, K._)`${i} !== undefined`);
|
|
1225
1225
|
for (const c of n)
|
|
1226
1226
|
(ds.has(c) || c === "array" && a.coerceTypes === "array") && d(c);
|
|
1227
|
-
r.else(),
|
|
1228
|
-
r.assign(s, i),
|
|
1227
|
+
r.else(), Nr(e), r.endIf(), r.if((0, K._)`${i} !== undefined`, () => {
|
|
1228
|
+
r.assign(s, i), Xa(e, i);
|
|
1229
1229
|
});
|
|
1230
1230
|
function d(c) {
|
|
1231
1231
|
switch (c) {
|
|
@@ -1252,7 +1252,7 @@ function Xa(e, t, n) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Xa({ gen: e, parentData: t, parentDataProperty: n }, r) {
|
|
1256
1256
|
e.if((0, K._)`${t} !== undefined`, () => e.assign((0, K._)`${t}[${n}]`, r));
|
|
1257
1257
|
}
|
|
1258
1258
|
function gr(e, t, n, r = Qe.Correct) {
|
|
@@ -1282,7 +1282,7 @@ function gr(e, t, n, r = Qe.Correct) {
|
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
se.checkDataType = gr;
|
|
1285
|
-
function
|
|
1285
|
+
function Ir(e, t, n, r) {
|
|
1286
1286
|
if (e.length === 1)
|
|
1287
1287
|
return gr(e[0], t, n, r);
|
|
1288
1288
|
let s;
|
|
@@ -1297,17 +1297,17 @@ function qr(e, t, n, r) {
|
|
|
1297
1297
|
s = (0, K.and)(s, gr(o, t, n, r));
|
|
1298
1298
|
return s;
|
|
1299
1299
|
}
|
|
1300
|
-
se.checkDataTypes =
|
|
1301
|
-
const
|
|
1300
|
+
se.checkDataTypes = Ir;
|
|
1301
|
+
const eo = {
|
|
1302
1302
|
message: ({ schema: e }) => `must be ${e}`,
|
|
1303
1303
|
params: ({ schema: e, schemaValue: t }) => typeof e == "string" ? (0, K._)`{type: ${e}}` : (0, K._)`{type: ${t}}`
|
|
1304
1304
|
};
|
|
1305
|
-
function
|
|
1306
|
-
const t =
|
|
1307
|
-
(0,
|
|
1305
|
+
function Nr(e) {
|
|
1306
|
+
const t = to(e);
|
|
1307
|
+
(0, xa.reportError)(t, eo);
|
|
1308
1308
|
}
|
|
1309
|
-
se.reportTypeError =
|
|
1310
|
-
function
|
|
1309
|
+
se.reportTypeError = Nr;
|
|
1310
|
+
function to(e) {
|
|
1311
1311
|
const { gen: t, data: n, schema: r } = e, s = (0, is.schemaRefOrVal)(e, r, "type");
|
|
1312
1312
|
return {
|
|
1313
1313
|
gen: t,
|
|
@@ -1324,46 +1324,46 @@ function ro(e) {
|
|
|
1324
1324
|
var Kt = {};
|
|
1325
1325
|
Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
1326
1326
|
Kt.assignDefaults = void 0;
|
|
1327
|
-
const xe = B,
|
|
1328
|
-
function
|
|
1327
|
+
const xe = B, ro = N;
|
|
1328
|
+
function no(e, t) {
|
|
1329
1329
|
const { properties: n, items: r } = e.schema;
|
|
1330
1330
|
if (t === "object" && n)
|
|
1331
1331
|
for (const s in n)
|
|
1332
|
-
|
|
1333
|
-
else t === "array" && Array.isArray(r) && r.forEach((s, a) =>
|
|
1332
|
+
En(e, s, n[s].default);
|
|
1333
|
+
else t === "array" && Array.isArray(r) && r.forEach((s, a) => En(e, a, s.default));
|
|
1334
1334
|
}
|
|
1335
|
-
Kt.assignDefaults =
|
|
1336
|
-
function
|
|
1335
|
+
Kt.assignDefaults = no;
|
|
1336
|
+
function En(e, t, n) {
|
|
1337
1337
|
const { gen: r, compositeRule: s, data: a, opts: o } = e;
|
|
1338
1338
|
if (n === void 0)
|
|
1339
1339
|
return;
|
|
1340
1340
|
const i = (0, xe._)`${a}${(0, xe.getProperty)(t)}`;
|
|
1341
1341
|
if (s) {
|
|
1342
|
-
(0,
|
|
1342
|
+
(0, ro.checkStrictMode)(e, `default is ignored for: ${i}`);
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
1345
|
let d = (0, xe._)`${i} === undefined`;
|
|
1346
1346
|
o.useDefaults === "empty" && (d = (0, xe._)`${d} || ${i} === null || ${i} === ""`), r.if(d, (0, xe._)`${i} = ${(0, xe.stringify)(n)}`);
|
|
1347
1347
|
}
|
|
1348
|
-
var
|
|
1348
|
+
var Pe = {}, J = {};
|
|
1349
1349
|
Object.defineProperty(J, "__esModule", { value: !0 });
|
|
1350
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
|
-
const ee = B,
|
|
1352
|
-
function
|
|
1351
|
+
const ee = B, Mr = N, Re = Ie, so = N;
|
|
1352
|
+
function ao(e, t) {
|
|
1353
1353
|
const { gen: n, data: r, it: s } = e;
|
|
1354
|
-
n.if(
|
|
1354
|
+
n.if(Rr(n, r, t, s.opts.ownProperties), () => {
|
|
1355
1355
|
e.setParams({ missingProperty: (0, ee._)`${t}` }, !0), e.error();
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
|
-
J.checkReportMissingProp =
|
|
1359
|
-
function
|
|
1360
|
-
return (0, ee.or)(...r.map((a) => (0, ee.and)(
|
|
1358
|
+
J.checkReportMissingProp = ao;
|
|
1359
|
+
function oo({ gen: e, data: t, it: { opts: n } }, r, s) {
|
|
1360
|
+
return (0, ee.or)(...r.map((a) => (0, ee.and)(Rr(e, t, a, n.ownProperties), (0, ee._)`${s} = ${a}`)));
|
|
1361
1361
|
}
|
|
1362
|
-
J.checkMissingProp =
|
|
1363
|
-
function
|
|
1362
|
+
J.checkMissingProp = oo;
|
|
1363
|
+
function io(e, t) {
|
|
1364
1364
|
e.setParams({ missingProperty: t }, !0), e.error();
|
|
1365
1365
|
}
|
|
1366
|
-
J.reportMissingProp =
|
|
1366
|
+
J.reportMissingProp = io;
|
|
1367
1367
|
function cs(e) {
|
|
1368
1368
|
return e.scopeValue("func", {
|
|
1369
1369
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1372,29 +1372,29 @@ function cs(e) {
|
|
|
1372
1372
|
});
|
|
1373
1373
|
}
|
|
1374
1374
|
J.hasPropFunc = cs;
|
|
1375
|
-
function
|
|
1375
|
+
function Tr(e, t, n) {
|
|
1376
1376
|
return (0, ee._)`${cs(e)}.call(${t}, ${n})`;
|
|
1377
1377
|
}
|
|
1378
|
-
J.isOwnProperty =
|
|
1379
|
-
function
|
|
1378
|
+
J.isOwnProperty = Tr;
|
|
1379
|
+
function lo(e, t, n, r) {
|
|
1380
1380
|
const s = (0, ee._)`${t}${(0, ee.getProperty)(n)} !== undefined`;
|
|
1381
|
-
return r ? (0, ee._)`${s} && ${
|
|
1381
|
+
return r ? (0, ee._)`${s} && ${Tr(e, t, n)}` : s;
|
|
1382
1382
|
}
|
|
1383
|
-
J.propertyInData =
|
|
1384
|
-
function
|
|
1383
|
+
J.propertyInData = lo;
|
|
1384
|
+
function Rr(e, t, n, r) {
|
|
1385
1385
|
const s = (0, ee._)`${t}${(0, ee.getProperty)(n)} === undefined`;
|
|
1386
|
-
return r ? (0, ee.or)(s, (0, ee.not)(
|
|
1386
|
+
return r ? (0, ee.or)(s, (0, ee.not)(Tr(e, t, n))) : s;
|
|
1387
1387
|
}
|
|
1388
|
-
J.noPropertyInData =
|
|
1388
|
+
J.noPropertyInData = Rr;
|
|
1389
1389
|
function us(e) {
|
|
1390
1390
|
return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
|
|
1391
1391
|
}
|
|
1392
1392
|
J.allSchemaProperties = us;
|
|
1393
|
-
function
|
|
1394
|
-
return us(t).filter((n) => !(0,
|
|
1393
|
+
function co(e, t) {
|
|
1394
|
+
return us(t).filter((n) => !(0, Mr.alwaysValidSchema)(e, t[n]));
|
|
1395
1395
|
}
|
|
1396
|
-
J.schemaProperties =
|
|
1397
|
-
function
|
|
1396
|
+
J.schemaProperties = co;
|
|
1397
|
+
function uo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath: s, errorPath: a }, it: o }, i, d, c) {
|
|
1398
1398
|
const u = c ? (0, ee._)`${e}, ${t}, ${r}${s}` : t, f = [
|
|
1399
1399
|
[Re.default.instancePath, (0, ee.strConcat)(Re.default.instancePath, a)],
|
|
1400
1400
|
[Re.default.parentData, o.parentData],
|
|
@@ -1405,18 +1405,18 @@ function fo({ schemaCode: e, data: t, it: { gen: n, topSchemaRef: r, schemaPath:
|
|
|
1405
1405
|
const b = (0, ee._)`${u}, ${n.object(...f)}`;
|
|
1406
1406
|
return d !== ee.nil ? (0, ee._)`${i}.call(${d}, ${b})` : (0, ee._)`${i}(${b})`;
|
|
1407
1407
|
}
|
|
1408
|
-
J.callValidateCode =
|
|
1409
|
-
const
|
|
1410
|
-
function
|
|
1408
|
+
J.callValidateCode = uo;
|
|
1409
|
+
const fo = (0, ee._)`new RegExp`;
|
|
1410
|
+
function mo({ gen: e, it: { opts: t } }, n) {
|
|
1411
1411
|
const r = t.unicodeRegExp ? "u" : "", { regExp: s } = t.code, a = s(n, r);
|
|
1412
1412
|
return e.scopeValue("pattern", {
|
|
1413
1413
|
key: a.toString(),
|
|
1414
1414
|
ref: a,
|
|
1415
|
-
code: (0, ee._)`${s.code === "new RegExp" ?
|
|
1415
|
+
code: (0, ee._)`${s.code === "new RegExp" ? fo : (0, so.useFunc)(e, s)}(${n}, ${r})`
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
|
-
J.usePattern =
|
|
1419
|
-
function
|
|
1418
|
+
J.usePattern = mo;
|
|
1419
|
+
function ho(e) {
|
|
1420
1420
|
const { gen: t, data: n, keyword: r, it: s } = e, a = t.name("valid");
|
|
1421
1421
|
if (s.allErrors) {
|
|
1422
1422
|
const i = t.let("valid", !0);
|
|
@@ -1429,17 +1429,17 @@ function po(e) {
|
|
|
1429
1429
|
e.subschema({
|
|
1430
1430
|
keyword: r,
|
|
1431
1431
|
dataProp: c,
|
|
1432
|
-
dataPropType:
|
|
1432
|
+
dataPropType: Mr.Type.Num
|
|
1433
1433
|
}, a), t.if((0, ee.not)(a), i);
|
|
1434
1434
|
});
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
J.validateArray =
|
|
1438
|
-
function
|
|
1437
|
+
J.validateArray = ho;
|
|
1438
|
+
function po(e) {
|
|
1439
1439
|
const { gen: t, schema: n, keyword: r, it: s } = e;
|
|
1440
1440
|
if (!Array.isArray(n))
|
|
1441
1441
|
throw new Error("ajv implementation error");
|
|
1442
|
-
if (n.some((d) => (0,
|
|
1442
|
+
if (n.some((d) => (0, Mr.alwaysValidSchema)(s, d)) && !s.opts.unevaluated)
|
|
1443
1443
|
return;
|
|
1444
1444
|
const o = t.let("valid", !1), i = t.name("_valid");
|
|
1445
1445
|
t.block(() => n.forEach((d, c) => {
|
|
@@ -1451,11 +1451,11 @@ function yo(e) {
|
|
|
1451
1451
|
t.assign(o, (0, ee._)`${o} || ${i}`), e.mergeValidEvaluated(u, i) || t.if((0, ee.not)(o));
|
|
1452
1452
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
1453
1453
|
}
|
|
1454
|
-
J.validateUnion =
|
|
1455
|
-
Object.defineProperty(
|
|
1456
|
-
|
|
1457
|
-
const ce = B, ze = Ie,
|
|
1458
|
-
function
|
|
1454
|
+
J.validateUnion = po;
|
|
1455
|
+
Object.defineProperty(Pe, "__esModule", { value: !0 });
|
|
1456
|
+
Pe.validateKeywordUsage = Pe.validSchemaType = Pe.funcKeywordCode = Pe.macroKeywordCode = void 0;
|
|
1457
|
+
const ce = B, ze = Ie, yo = J, vo = bt;
|
|
1458
|
+
function _o(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 = fs(n, r, i);
|
|
1460
1460
|
o.opts.validateSchema !== !1 && o.self.validateSchema(i, !0);
|
|
1461
1461
|
const c = n.name("valid");
|
|
@@ -1467,19 +1467,19 @@ function go(e, t) {
|
|
|
1467
1467
|
compositeRule: !0
|
|
1468
1468
|
}, c), e.pass(c, () => e.error(!0));
|
|
1469
1469
|
}
|
|
1470
|
-
|
|
1471
|
-
function
|
|
1470
|
+
Pe.macroKeywordCode = _o;
|
|
1471
|
+
function go(e, t) {
|
|
1472
1472
|
var n;
|
|
1473
1473
|
const { gen: r, keyword: s, schema: a, parentSchema: o, $data: i, it: d } = e;
|
|
1474
|
-
|
|
1474
|
+
$o(d, t);
|
|
1475
1475
|
const c = !i && t.compile ? t.compile.call(d.self, a, o, d) : t.validate, u = fs(r, s, c), f = r.let("valid");
|
|
1476
1476
|
e.block$data(f, b), e.ok((n = t.valid) !== null && n !== void 0 ? n : f);
|
|
1477
1477
|
function b() {
|
|
1478
1478
|
if (t.errors === !1)
|
|
1479
|
-
g(), t.modifying &&
|
|
1479
|
+
g(), t.modifying && Pn(e), p(() => e.error());
|
|
1480
1480
|
else {
|
|
1481
1481
|
const m = t.async ? $() : _();
|
|
1482
|
-
t.modifying &&
|
|
1482
|
+
t.modifying && Pn(e), p(() => bo(e, m));
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
function $() {
|
|
@@ -1492,25 +1492,25 @@ function bo(e, t) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
function g(m = t.async ? (0, ce._)`await ` : ce.nil) {
|
|
1494
1494
|
const y = d.opts.passContext ? ze.default.this : ze.default.self, k = !("compile" in t && !i || t.schema === !1);
|
|
1495
|
-
r.assign(f, (0, ce._)`${m}${(0,
|
|
1495
|
+
r.assign(f, (0, ce._)`${m}${(0, yo.callValidateCode)(e, u, y, k)}`, t.modifying);
|
|
1496
1496
|
}
|
|
1497
1497
|
function p(m) {
|
|
1498
1498
|
var y;
|
|
1499
1499
|
r.if((0, ce.not)((y = t.valid) !== null && y !== void 0 ? y : f), m);
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
|
|
1503
|
-
function
|
|
1502
|
+
Pe.funcKeywordCode = go;
|
|
1503
|
+
function Pn(e) {
|
|
1504
1504
|
const { gen: t, data: n, it: r } = e;
|
|
1505
1505
|
t.if(r.parentData, () => t.assign(n, (0, ce._)`${r.parentData}[${r.parentDataProperty}]`));
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function bo(e, t) {
|
|
1508
1508
|
const { gen: n } = e;
|
|
1509
1509
|
n.if((0, ce._)`Array.isArray(${t})`, () => {
|
|
1510
|
-
n.assign(ze.default.vErrors, (0, ce._)`${ze.default.vErrors} === null ? ${t} : ${ze.default.vErrors}.concat(${t})`).assign(ze.default.errors, (0, ce._)`${ze.default.vErrors}.length`), (0,
|
|
1510
|
+
n.assign(ze.default.vErrors, (0, ce._)`${ze.default.vErrors} === null ? ${t} : ${ze.default.vErrors}.concat(${t})`).assign(ze.default.errors, (0, ce._)`${ze.default.vErrors}.length`), (0, vo.extendErrors)(e);
|
|
1511
1511
|
}, () => e.error());
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function $o({ schemaEnv: e }, t) {
|
|
1514
1514
|
if (t.async && !e.$async)
|
|
1515
1515
|
throw new Error("async keyword in sync schema");
|
|
1516
1516
|
}
|
|
@@ -1519,11 +1519,11 @@ function fs(e, t, n) {
|
|
|
1519
1519
|
throw new Error(`keyword "${t}" failed to compile`);
|
|
1520
1520
|
return e.scopeValue("keyword", typeof n == "function" ? { ref: n } : { ref: n, code: (0, ce.stringify)(n) });
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function wo(e, t, n = !1) {
|
|
1523
1523
|
return !t.length || t.some((r) => r === "array" ? Array.isArray(e) : r === "object" ? e && typeof e == "object" && !Array.isArray(e) : typeof e == r || n && typeof e > "u");
|
|
1524
1524
|
}
|
|
1525
|
-
|
|
1526
|
-
function
|
|
1525
|
+
Pe.validSchemaType = wo;
|
|
1526
|
+
function ko({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
|
|
1527
1527
|
if (Array.isArray(s.keyword) ? !s.keyword.includes(a) : s.keyword !== a)
|
|
1528
1528
|
throw new Error("ajv implementation error");
|
|
1529
1529
|
const o = s.dependencies;
|
|
@@ -1537,23 +1537,23 @@ function So({ schema: e, opts: t, self: n, errSchemaPath: r }, s, a) {
|
|
|
1537
1537
|
throw new Error(d);
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
|
-
|
|
1540
|
+
Pe.validateKeywordUsage = ko;
|
|
1541
1541
|
var De = {};
|
|
1542
1542
|
Object.defineProperty(De, "__esModule", { value: !0 });
|
|
1543
1543
|
De.extendSubschemaMode = De.extendSubschemaData = De.getSubschema = void 0;
|
|
1544
|
-
const
|
|
1545
|
-
function
|
|
1544
|
+
const Ee = B, ms = N;
|
|
1545
|
+
function So(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaPath: a, topSchemaRef: o }) {
|
|
1546
1546
|
if (t !== void 0 && r !== void 0)
|
|
1547
1547
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
1548
1548
|
if (t !== void 0) {
|
|
1549
1549
|
const i = e.schema[t];
|
|
1550
1550
|
return n === void 0 ? {
|
|
1551
1551
|
schema: i,
|
|
1552
|
-
schemaPath: (0,
|
|
1552
|
+
schemaPath: (0, Ee._)`${e.schemaPath}${(0, Ee.getProperty)(t)}`,
|
|
1553
1553
|
errSchemaPath: `${e.errSchemaPath}/${t}`
|
|
1554
1554
|
} : {
|
|
1555
1555
|
schema: i[n],
|
|
1556
|
-
schemaPath: (0,
|
|
1556
|
+
schemaPath: (0, Ee._)`${e.schemaPath}${(0, Ee.getProperty)(t)}${(0, Ee.getProperty)(n)}`,
|
|
1557
1557
|
errSchemaPath: `${e.errSchemaPath}/${t}/${(0, ms.escapeFragment)(n)}`
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
@@ -1569,17 +1569,17 @@ function Eo(e, { keyword: t, schemaProp: n, schema: r, schemaPath: s, errSchemaP
|
|
|
1569
1569
|
}
|
|
1570
1570
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
1571
1571
|
}
|
|
1572
|
-
De.getSubschema =
|
|
1573
|
-
function
|
|
1572
|
+
De.getSubschema = So;
|
|
1573
|
+
function Eo(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propertyName: o }) {
|
|
1574
1574
|
if (s !== void 0 && n !== void 0)
|
|
1575
1575
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
1576
1576
|
const { gen: i } = t;
|
|
1577
1577
|
if (n !== void 0) {
|
|
1578
|
-
const { errorPath: c, dataPathArr: u, opts: f } = t, b = i.let("data", (0,
|
|
1579
|
-
d(b), e.errorPath = (0,
|
|
1578
|
+
const { errorPath: c, dataPathArr: u, opts: f } = t, b = i.let("data", (0, Ee._)`${t.data}${(0, Ee.getProperty)(n)}`, !0);
|
|
1579
|
+
d(b), e.errorPath = (0, Ee.str)`${c}${(0, ms.getErrorPath)(n, r, f.jsPropertySyntax)}`, e.parentDataProperty = (0, Ee._)`${n}`, e.dataPathArr = [...u, e.parentDataProperty];
|
|
1580
1580
|
}
|
|
1581
1581
|
if (s !== void 0) {
|
|
1582
|
-
const c = s instanceof
|
|
1582
|
+
const c = s instanceof Ee.Name ? s : i.let("data", s, !0);
|
|
1583
1583
|
d(c), o !== void 0 && (e.propertyName = o);
|
|
1584
1584
|
}
|
|
1585
1585
|
a && (e.dataTypes = a);
|
|
@@ -1587,11 +1587,11 @@ function Po(e, t, { dataProp: n, dataPropType: r, data: s, dataTypes: a, propert
|
|
|
1587
1587
|
e.data = c, e.dataLevel = t.dataLevel + 1, e.dataTypes = [], t.definedProperties = /* @__PURE__ */ new Set(), e.parentData = t.data, e.dataNames = [...t.dataNames, c];
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
|
-
De.extendSubschemaData =
|
|
1591
|
-
function
|
|
1590
|
+
De.extendSubschemaData = Eo;
|
|
1591
|
+
function Po(e, { jtdDiscriminator: t, jtdMetadata: n, compositeRule: r, createErrors: s, allErrors: a }) {
|
|
1592
1592
|
r !== void 0 && (e.compositeRule = r), s !== void 0 && (e.createErrors = s), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
1593
1593
|
}
|
|
1594
|
-
De.extendSubschemaMode =
|
|
1594
|
+
De.extendSubschemaMode = Po;
|
|
1595
1595
|
var le = {}, hs = function e(t, n) {
|
|
1596
1596
|
if (t === n) return !0;
|
|
1597
1597
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -1679,19 +1679,19 @@ function Tt(e, t, n, r, s, a, o, i, d, c) {
|
|
|
1679
1679
|
} else if (u in Ce.propsKeywords) {
|
|
1680
1680
|
if (f && typeof f == "object")
|
|
1681
1681
|
for (var $ in f)
|
|
1682
|
-
Tt(e, t, n, f[$], s + "/" + u + "/" +
|
|
1682
|
+
Tt(e, t, n, f[$], s + "/" + u + "/" + Oo($), a, s, u, r, $);
|
|
1683
1683
|
} else (u in Ce.keywords || e.allKeys && !(u in Ce.skipKeywords)) && Tt(e, t, n, f, s + "/" + u, a, s, u, r);
|
|
1684
1684
|
}
|
|
1685
1685
|
n(r, s, a, o, i, d, c);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Oo(e) {
|
|
1689
1689
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1690
1690
|
}
|
|
1691
|
-
var
|
|
1691
|
+
var jo = ps.exports;
|
|
1692
1692
|
Object.defineProperty(le, "__esModule", { value: !0 });
|
|
1693
1693
|
le.getSchemaRefs = le.resolveUrl = le.normalizeId = le._getFullPath = le.getFullPath = le.inlineRef = void 0;
|
|
1694
|
-
const
|
|
1694
|
+
const qo = N, Io = hs, No = jo, Mo = /* @__PURE__ */ new Set([
|
|
1695
1695
|
"type",
|
|
1696
1696
|
"format",
|
|
1697
1697
|
"pattern",
|
|
@@ -1709,11 +1709,11 @@ const Io = N, No = hs, Mo = qo, To = /* @__PURE__ */ new Set([
|
|
|
1709
1709
|
"enum",
|
|
1710
1710
|
"const"
|
|
1711
1711
|
]);
|
|
1712
|
-
function
|
|
1712
|
+
function To(e, t = !0) {
|
|
1713
1713
|
return typeof e == "boolean" ? !0 : t === !0 ? !br(e) : t ? ys(e) <= t : !1;
|
|
1714
1714
|
}
|
|
1715
|
-
le.inlineRef =
|
|
1716
|
-
const
|
|
1715
|
+
le.inlineRef = To;
|
|
1716
|
+
const Ro = /* @__PURE__ */ new Set([
|
|
1717
1717
|
"$ref",
|
|
1718
1718
|
"$recursiveRef",
|
|
1719
1719
|
"$recursiveAnchor",
|
|
@@ -1722,7 +1722,7 @@ const Ao = /* @__PURE__ */ new Set([
|
|
|
1722
1722
|
]);
|
|
1723
1723
|
function br(e) {
|
|
1724
1724
|
for (const t in e) {
|
|
1725
|
-
if (
|
|
1725
|
+
if (Ro.has(t))
|
|
1726
1726
|
return !0;
|
|
1727
1727
|
const n = e[t];
|
|
1728
1728
|
if (Array.isArray(n) && n.some(br) || typeof n == "object" && br(n))
|
|
@@ -1735,7 +1735,7 @@ function ys(e) {
|
|
|
1735
1735
|
for (const n in e) {
|
|
1736
1736
|
if (n === "$ref")
|
|
1737
1737
|
return 1 / 0;
|
|
1738
|
-
if (t++, !
|
|
1738
|
+
if (t++, !Mo.has(n) && (typeof e[n] == "object" && (0, qo.eachItem)(e[n], (r) => t += ys(r)), t === 1 / 0))
|
|
1739
1739
|
return 1 / 0;
|
|
1740
1740
|
}
|
|
1741
1741
|
return t;
|
|
@@ -1750,21 +1750,21 @@ function _s(e, t) {
|
|
|
1750
1750
|
return e.serialize(t).split("#")[0] + "#";
|
|
1751
1751
|
}
|
|
1752
1752
|
le._getFullPath = _s;
|
|
1753
|
-
const
|
|
1753
|
+
const Ao = /#\/?$/;
|
|
1754
1754
|
function Xe(e) {
|
|
1755
|
-
return e ? e.replace(
|
|
1755
|
+
return e ? e.replace(Ao, "") : "";
|
|
1756
1756
|
}
|
|
1757
1757
|
le.normalizeId = Xe;
|
|
1758
|
-
function
|
|
1758
|
+
function Fo(e, t, n) {
|
|
1759
1759
|
return n = Xe(n), e.resolve(t, n);
|
|
1760
1760
|
}
|
|
1761
|
-
le.resolveUrl =
|
|
1762
|
-
const
|
|
1763
|
-
function
|
|
1761
|
+
le.resolveUrl = Fo;
|
|
1762
|
+
const Co = /^[a-z_][-a-z0-9._]*$/i;
|
|
1763
|
+
function Do(e, t) {
|
|
1764
1764
|
if (typeof e == "boolean")
|
|
1765
1765
|
return {};
|
|
1766
1766
|
const { schemaId: n, uriResolver: r } = this.opts, s = Xe(e[n] || t), a = { "": s }, o = vs(r, s, !1), i = {}, d = /* @__PURE__ */ new Set();
|
|
1767
|
-
return
|
|
1767
|
+
return No(e, { allKeys: !0 }, (f, b, $, _) => {
|
|
1768
1768
|
if (_ === void 0)
|
|
1769
1769
|
return;
|
|
1770
1770
|
const g = o + b;
|
|
@@ -1780,64 +1780,64 @@ function Vo(e, t) {
|
|
|
1780
1780
|
}
|
|
1781
1781
|
function y(k) {
|
|
1782
1782
|
if (typeof k == "string") {
|
|
1783
|
-
if (!
|
|
1783
|
+
if (!Co.test(k))
|
|
1784
1784
|
throw new Error(`invalid anchor "${k}"`);
|
|
1785
1785
|
m.call(this, `#${k}`);
|
|
1786
1786
|
}
|
|
1787
1787
|
}
|
|
1788
1788
|
}), i;
|
|
1789
1789
|
function c(f, b, $) {
|
|
1790
|
-
if (b !== void 0 && !
|
|
1790
|
+
if (b !== void 0 && !Io(f, b))
|
|
1791
1791
|
throw u($);
|
|
1792
1792
|
}
|
|
1793
1793
|
function u(f) {
|
|
1794
1794
|
return new Error(`reference "${f}" resolves to more than one schema`);
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
|
-
le.getSchemaRefs =
|
|
1797
|
+
le.getSchemaRefs = Do;
|
|
1798
1798
|
Object.defineProperty(we, "__esModule", { value: !0 });
|
|
1799
1799
|
we.getData = we.KeywordCxt = we.validateFunctionCode = void 0;
|
|
1800
|
-
const gs = et,
|
|
1801
|
-
function
|
|
1800
|
+
const gs = et, On = se, Ar = Ne, Dt = se, Vo = Kt, ft = Pe, ur = De, R = B, L = Ie, zo = le, Me = N, lt = bt;
|
|
1801
|
+
function Uo(e) {
|
|
1802
1802
|
if (ws(e) && (ks(e), $s(e))) {
|
|
1803
|
-
|
|
1803
|
+
Ko(e);
|
|
1804
1804
|
return;
|
|
1805
1805
|
}
|
|
1806
1806
|
bs(e, () => (0, gs.topBoolOrEmptySchema)(e));
|
|
1807
1807
|
}
|
|
1808
|
-
we.validateFunctionCode =
|
|
1808
|
+
we.validateFunctionCode = Uo;
|
|
1809
1809
|
function bs({ gen: e, validateName: t, schema: n, schemaEnv: r, opts: s }, a) {
|
|
1810
1810
|
s.code.es5 ? e.func(t, (0, R._)`${L.default.data}, ${L.default.valCxt}`, r.$async, () => {
|
|
1811
|
-
e.code((0, R._)`"use strict"; ${
|
|
1812
|
-
}) : e.func(t, (0, R._)`${L.default.data}, ${
|
|
1811
|
+
e.code((0, R._)`"use strict"; ${jn(n, s)}`), Ho(e, s), e.code(a);
|
|
1812
|
+
}) : e.func(t, (0, R._)`${L.default.data}, ${Lo(s)}`, r.$async, () => e.code(jn(n, s)).code(a));
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function Lo(e) {
|
|
1815
1815
|
return (0, R._)`{${L.default.instancePath}="", ${L.default.parentData}, ${L.default.parentDataProperty}, ${L.default.rootData}=${L.default.data}${e.dynamicRef ? (0, R._)`, ${L.default.dynamicAnchors}={}` : R.nil}}={}`;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Ho(e, t) {
|
|
1818
1818
|
e.if(L.default.valCxt, () => {
|
|
1819
1819
|
e.var(L.default.instancePath, (0, R._)`${L.default.valCxt}.${L.default.instancePath}`), e.var(L.default.parentData, (0, R._)`${L.default.valCxt}.${L.default.parentData}`), e.var(L.default.parentDataProperty, (0, R._)`${L.default.valCxt}.${L.default.parentDataProperty}`), e.var(L.default.rootData, (0, R._)`${L.default.valCxt}.${L.default.rootData}`), t.dynamicRef && e.var(L.default.dynamicAnchors, (0, R._)`${L.default.valCxt}.${L.default.dynamicAnchors}`);
|
|
1820
1820
|
}, () => {
|
|
1821
1821
|
e.var(L.default.instancePath, (0, R._)`""`), e.var(L.default.parentData, (0, R._)`undefined`), e.var(L.default.parentDataProperty, (0, R._)`undefined`), e.var(L.default.rootData, L.default.data), t.dynamicRef && e.var(L.default.dynamicAnchors, (0, R._)`{}`);
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function Ko(e) {
|
|
1825
1825
|
const { schema: t, opts: n, gen: r } = e;
|
|
1826
1826
|
bs(e, () => {
|
|
1827
|
-
n.$comment && t.$comment && Es(e),
|
|
1827
|
+
n.$comment && t.$comment && Es(e), Wo(e), r.let(L.default.vErrors, null), r.let(L.default.errors, 0), n.unevaluated && Bo(e), Ss(e), Qo(e);
|
|
1828
1828
|
});
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Bo(e) {
|
|
1831
1831
|
const { gen: t, validateName: n } = e;
|
|
1832
1832
|
e.evaluated = t.const("evaluated", (0, R._)`${n}.evaluated`), t.if((0, R._)`${e.evaluated}.dynamicProps`, () => t.assign((0, R._)`${e.evaluated}.props`, (0, R._)`undefined`)), t.if((0, R._)`${e.evaluated}.dynamicItems`, () => t.assign((0, R._)`${e.evaluated}.items`, (0, R._)`undefined`));
|
|
1833
1833
|
}
|
|
1834
|
-
function
|
|
1834
|
+
function jn(e, t) {
|
|
1835
1835
|
const n = typeof e == "object" && e[t.schemaId];
|
|
1836
1836
|
return n && (t.code.source || t.code.process) ? (0, R._)`/*# sourceURL=${n} */` : R.nil;
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function Go(e, t) {
|
|
1839
1839
|
if (ws(e) && (ks(e), $s(e))) {
|
|
1840
|
-
|
|
1840
|
+
Jo(e, t);
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
1843
|
(0, gs.boolOrEmptySchema)(e, t);
|
|
@@ -1853,34 +1853,34 @@ function $s({ schema: e, self: t }) {
|
|
|
1853
1853
|
function ws(e) {
|
|
1854
1854
|
return typeof e.schema != "boolean";
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1856
|
+
function Jo(e, t) {
|
|
1857
1857
|
const { schema: n, gen: r, opts: s } = e;
|
|
1858
|
-
s.$comment && n.$comment && Es(e),
|
|
1858
|
+
s.$comment && n.$comment && Es(e), Zo(e), Yo(e);
|
|
1859
1859
|
const a = r.const("_errs", L.default.errors);
|
|
1860
1860
|
Ss(e, a), r.var(t, (0, R._)`${a} === ${L.default.errors}`);
|
|
1861
1861
|
}
|
|
1862
1862
|
function ks(e) {
|
|
1863
|
-
(0, Me.checkUnknownRules)(e),
|
|
1863
|
+
(0, Me.checkUnknownRules)(e), xo(e);
|
|
1864
1864
|
}
|
|
1865
1865
|
function Ss(e, t) {
|
|
1866
1866
|
if (e.opts.jtd)
|
|
1867
|
-
return
|
|
1868
|
-
const n = (0,
|
|
1869
|
-
|
|
1867
|
+
return qn(e, [], !1, t);
|
|
1868
|
+
const n = (0, On.getSchemaTypes)(e.schema), r = (0, On.coerceAndCheckDataType)(e, n);
|
|
1869
|
+
qn(e, n, !r, t);
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function xo(e) {
|
|
1872
1872
|
const { schema: t, errSchemaPath: n, opts: r, self: s } = e;
|
|
1873
1873
|
t.$ref && r.ignoreKeywordsWithRef && (0, Me.schemaHasRulesButRef)(t, s.RULES) && s.logger.warn(`$ref: keywords ignored in schema at path "${n}"`);
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1875
|
+
function Wo(e) {
|
|
1876
1876
|
const { schema: t, opts: n } = e;
|
|
1877
1877
|
t.default !== void 0 && n.useDefaults && n.strictSchema && (0, Me.checkStrictMode)(e, "default is ignored in the schema root");
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Zo(e) {
|
|
1880
1880
|
const t = e.schema[e.opts.schemaId];
|
|
1881
|
-
t && (e.baseId = (0,
|
|
1881
|
+
t && (e.baseId = (0, zo.resolveUrl)(e.opts.uriResolver, e.baseId, t));
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Yo(e) {
|
|
1884
1884
|
if (e.schema.$async && !e.schemaEnv.$async)
|
|
1885
1885
|
throw new Error("async schema in sync schema");
|
|
1886
1886
|
}
|
|
@@ -1893,75 +1893,75 @@ function Es({ gen: e, schemaEnv: t, schema: n, errSchemaPath: r, opts: s }) {
|
|
|
1893
1893
|
e.code((0, R._)`${L.default.self}.opts.$comment(${a}, ${o}, ${i}.schema)`);
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function Qo(e) {
|
|
1897
1897
|
const { gen: t, schemaEnv: n, validateName: r, ValidationError: s, opts: a } = e;
|
|
1898
|
-
n.$async ? t.if((0, R._)`${L.default.errors} === 0`, () => t.return(L.default.data), () => t.throw((0, R._)`new ${s}(${L.default.vErrors})`)) : (t.assign((0, R._)`${r}.errors`, L.default.vErrors), a.unevaluated &&
|
|
1898
|
+
n.$async ? t.if((0, R._)`${L.default.errors} === 0`, () => t.return(L.default.data), () => t.throw((0, R._)`new ${s}(${L.default.vErrors})`)) : (t.assign((0, R._)`${r}.errors`, L.default.vErrors), a.unevaluated && Xo(e), t.return((0, R._)`${L.default.errors} === 0`));
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function Xo({ gen: e, evaluated: t, props: n, items: r }) {
|
|
1901
1901
|
n instanceof R.Name && e.assign((0, R._)`${t}.props`, n), r instanceof R.Name && e.assign((0, R._)`${t}.items`, r);
|
|
1902
1902
|
}
|
|
1903
|
-
function
|
|
1903
|
+
function qn(e, t, n, r) {
|
|
1904
1904
|
const { gen: s, schema: a, data: o, allErrors: i, opts: d, self: c } = e, { RULES: u } = c;
|
|
1905
1905
|
if (a.$ref && (d.ignoreKeywordsWithRef || !(0, Me.schemaHasRulesButRef)(a, u))) {
|
|
1906
1906
|
s.block(() => js(e, "$ref", u.all.$ref.definition));
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
1909
|
-
d.jtd ||
|
|
1909
|
+
d.jtd || ei(e, t), s.block(() => {
|
|
1910
1910
|
for (const b of u.rules)
|
|
1911
1911
|
f(b);
|
|
1912
1912
|
f(u.post);
|
|
1913
1913
|
});
|
|
1914
1914
|
function f(b) {
|
|
1915
|
-
(0,
|
|
1915
|
+
(0, Ar.shouldUseGroup)(a, b) && (b.type ? (s.if((0, Dt.checkDataType)(b.type, o, d.strictNumbers)), In(e, b), t.length === 1 && t[0] === b.type && n && (s.else(), (0, Dt.reportTypeError)(e)), s.endIf()) : In(e, b), i || s.if((0, R._)`${L.default.errors} === ${r || 0}`));
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function In(e, t) {
|
|
1919
1919
|
const { gen: n, schema: r, opts: { useDefaults: s } } = e;
|
|
1920
|
-
s && (0,
|
|
1920
|
+
s && (0, Vo.assignDefaults)(e, t.type), n.block(() => {
|
|
1921
1921
|
for (const a of t.rules)
|
|
1922
|
-
(0,
|
|
1922
|
+
(0, Ar.shouldUseRule)(r, a) && js(e, a.keyword, a.definition, t.type);
|
|
1923
1923
|
});
|
|
1924
1924
|
}
|
|
1925
|
-
function
|
|
1926
|
-
e.schemaEnv.meta || !e.opts.strictTypes || (
|
|
1925
|
+
function ei(e, t) {
|
|
1926
|
+
e.schemaEnv.meta || !e.opts.strictTypes || (ti(e, t), e.opts.allowUnionTypes || ri(e, t), ni(e, e.dataTypes));
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function ti(e, t) {
|
|
1929
1929
|
if (t.length) {
|
|
1930
1930
|
if (!e.dataTypes.length) {
|
|
1931
1931
|
e.dataTypes = t;
|
|
1932
1932
|
return;
|
|
1933
1933
|
}
|
|
1934
1934
|
t.forEach((n) => {
|
|
1935
|
-
Ps(e.dataTypes, n) ||
|
|
1936
|
-
}),
|
|
1935
|
+
Ps(e.dataTypes, n) || Fr(e, `type "${n}" not allowed by context "${e.dataTypes.join(",")}"`);
|
|
1936
|
+
}), ai(e, t);
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1940
|
-
t.length > 1 && !(t.length === 2 && t.includes("null")) &&
|
|
1939
|
+
function ri(e, t) {
|
|
1940
|
+
t.length > 1 && !(t.length === 2 && t.includes("null")) && Fr(e, "use allowUnionTypes to allow union type keyword");
|
|
1941
1941
|
}
|
|
1942
|
-
function
|
|
1942
|
+
function ni(e, t) {
|
|
1943
1943
|
const n = e.self.RULES.all;
|
|
1944
1944
|
for (const r in n) {
|
|
1945
1945
|
const s = n[r];
|
|
1946
|
-
if (typeof s == "object" && (0,
|
|
1946
|
+
if (typeof s == "object" && (0, Ar.shouldUseRule)(e.schema, s)) {
|
|
1947
1947
|
const { type: a } = s.definition;
|
|
1948
|
-
a.length && !a.some((o) =>
|
|
1948
|
+
a.length && !a.some((o) => si(t, o)) && Fr(e, `missing type "${a.join(",")}" for keyword "${r}"`);
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function si(e, t) {
|
|
1953
1953
|
return e.includes(t) || t === "number" && e.includes("integer");
|
|
1954
1954
|
}
|
|
1955
1955
|
function Ps(e, t) {
|
|
1956
1956
|
return e.includes(t) || t === "integer" && e.includes("number");
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function ai(e, t) {
|
|
1959
1959
|
const n = [];
|
|
1960
1960
|
for (const r of e.dataTypes)
|
|
1961
1961
|
Ps(t, r) ? n.push(r) : t.includes("integer") && r === "number" && n.push("integer");
|
|
1962
1962
|
e.dataTypes = n;
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Fr(e, t) {
|
|
1965
1965
|
const n = e.schemaEnv.baseId + e.errSchemaPath;
|
|
1966
1966
|
t += ` at "${n}" (strictTypes)`, (0, Me.checkStrictMode)(e, t, e.opts.strictTypes);
|
|
1967
1967
|
}
|
|
@@ -2054,7 +2054,7 @@ class Os {
|
|
|
2054
2054
|
const r = (0, ur.getSubschema)(this.it, t);
|
|
2055
2055
|
(0, ur.extendSubschemaData)(r, this.it, t), (0, ur.extendSubschemaMode)(r, t);
|
|
2056
2056
|
const s = { ...this.it, ...r, items: void 0, props: void 0 };
|
|
2057
|
-
return
|
|
2057
|
+
return Go(s, n), s;
|
|
2058
2058
|
}
|
|
2059
2059
|
mergeEvaluated(t, n) {
|
|
2060
2060
|
const { it: r, gen: s } = this;
|
|
@@ -2071,17 +2071,17 @@ function js(e, t, n, r) {
|
|
|
2071
2071
|
const s = new Os(e, n, t);
|
|
2072
2072
|
"code" in n ? n.code(s, r) : s.$data && n.validate ? (0, ft.funcKeywordCode)(s, n) : "macro" in n ? (0, ft.macroKeywordCode)(s, n) : (n.compile || n.validate) && (0, ft.funcKeywordCode)(s, n);
|
|
2073
2073
|
}
|
|
2074
|
-
const
|
|
2074
|
+
const oi = /^\/(?:[^~]|~0|~1)*$/, ii = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
2075
2075
|
function qs(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
2076
2076
|
let s, a;
|
|
2077
2077
|
if (e === "")
|
|
2078
2078
|
return L.default.rootData;
|
|
2079
2079
|
if (e[0] === "/") {
|
|
2080
|
-
if (!
|
|
2080
|
+
if (!oi.test(e))
|
|
2081
2081
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
2082
2082
|
s = e, a = L.default.rootData;
|
|
2083
2083
|
} else {
|
|
2084
|
-
const c =
|
|
2084
|
+
const c = ii.exec(e);
|
|
2085
2085
|
if (!c)
|
|
2086
2086
|
throw new Error(`Invalid JSON-pointer: ${e}`);
|
|
2087
2087
|
const u = +c[1];
|
|
@@ -2107,25 +2107,25 @@ function qs(e, { dataLevel: t, dataNames: n, dataPathArr: r }) {
|
|
|
2107
2107
|
we.getData = qs;
|
|
2108
2108
|
var $t = {};
|
|
2109
2109
|
Object.defineProperty($t, "__esModule", { value: !0 });
|
|
2110
|
-
class
|
|
2110
|
+
class li extends Error {
|
|
2111
2111
|
constructor(t) {
|
|
2112
2112
|
super("validation failed"), this.errors = t, this.ajv = this.validation = !0;
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
|
-
$t.default =
|
|
2115
|
+
$t.default = li;
|
|
2116
2116
|
var nt = {};
|
|
2117
2117
|
Object.defineProperty(nt, "__esModule", { value: !0 });
|
|
2118
2118
|
const fr = le;
|
|
2119
|
-
class
|
|
2119
|
+
class di extends Error {
|
|
2120
2120
|
constructor(t, n, r, s) {
|
|
2121
2121
|
super(s || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, fr.resolveUrl)(t, n, r), this.missingSchema = (0, fr.normalizeId)((0, fr.getFullPath)(t, this.missingRef));
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
nt.default =
|
|
2124
|
+
nt.default = di;
|
|
2125
2125
|
var fe = {};
|
|
2126
2126
|
Object.defineProperty(fe, "__esModule", { value: !0 });
|
|
2127
2127
|
fe.resolveSchema = fe.getCompilingSchema = fe.resolveRef = fe.compileSchema = fe.SchemaEnv = void 0;
|
|
2128
|
-
const ge = B,
|
|
2128
|
+
const ge = B, ci = $t, Ve = Ie, $e = le, Nn = N, ui = we;
|
|
2129
2129
|
class Bt {
|
|
2130
2130
|
constructor(t) {
|
|
2131
2131
|
var n;
|
|
@@ -2135,14 +2135,14 @@ class Bt {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
}
|
|
2137
2137
|
fe.SchemaEnv = Bt;
|
|
2138
|
-
function
|
|
2138
|
+
function Cr(e) {
|
|
2139
2139
|
const t = Is.call(this, e);
|
|
2140
2140
|
if (t)
|
|
2141
2141
|
return t;
|
|
2142
2142
|
const n = (0, $e.getFullPath)(this.opts.uriResolver, e.root.baseId), { es5: r, lines: s } = this.opts.code, { ownProperties: a } = this.opts, o = new ge.CodeGen(this.scope, { es5: r, lines: s, ownProperties: a });
|
|
2143
2143
|
let i;
|
|
2144
2144
|
e.$async && (i = o.scopeValue("Error", {
|
|
2145
|
-
ref:
|
|
2145
|
+
ref: ci.default,
|
|
2146
2146
|
code: (0, ge._)`require("ajv/dist/runtime/validation_error").default`
|
|
2147
2147
|
}));
|
|
2148
2148
|
const d = o.scopeName("validate");
|
|
@@ -2174,7 +2174,7 @@ function Fr(e) {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
let u;
|
|
2176
2176
|
try {
|
|
2177
|
-
this._compilations.add(e), (0,
|
|
2177
|
+
this._compilations.add(e), (0, ui.validateFunctionCode)(c), o.optimize(this.opts.code.optimize);
|
|
2178
2178
|
const f = o.toString();
|
|
2179
2179
|
u = `${o.scopeRefs(Ve.default.scope)}return ${f}`, this.opts.code.process && (u = this.opts.code.process(u, e));
|
|
2180
2180
|
const $ = new Function(`${Ve.default.self}`, `${Ve.default.scope}`, u)(this, this.scope.get());
|
|
@@ -2194,35 +2194,35 @@ function Fr(e) {
|
|
|
2194
2194
|
this._compilations.delete(e);
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
|
-
fe.compileSchema =
|
|
2198
|
-
function
|
|
2197
|
+
fe.compileSchema = Cr;
|
|
2198
|
+
function fi(e, t, n) {
|
|
2199
2199
|
var r;
|
|
2200
2200
|
n = (0, $e.resolveUrl)(this.opts.uriResolver, t, n);
|
|
2201
2201
|
const s = e.refs[n];
|
|
2202
2202
|
if (s)
|
|
2203
2203
|
return s;
|
|
2204
|
-
let a =
|
|
2204
|
+
let a = pi.call(this, e, n);
|
|
2205
2205
|
if (a === void 0) {
|
|
2206
2206
|
const o = (r = e.localRefs) === null || r === void 0 ? void 0 : r[n], { schemaId: i } = this.opts;
|
|
2207
2207
|
o && (a = new Bt({ schema: o, schemaId: i, root: e, baseId: t }));
|
|
2208
2208
|
}
|
|
2209
2209
|
if (a !== void 0)
|
|
2210
|
-
return e.refs[n] =
|
|
2210
|
+
return e.refs[n] = mi.call(this, a);
|
|
2211
2211
|
}
|
|
2212
|
-
fe.resolveRef =
|
|
2213
|
-
function
|
|
2214
|
-
return (0, $e.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e :
|
|
2212
|
+
fe.resolveRef = fi;
|
|
2213
|
+
function mi(e) {
|
|
2214
|
+
return (0, $e.inlineRef)(e.schema, this.opts.inlineRefs) ? e.schema : e.validate ? e : Cr.call(this, e);
|
|
2215
2215
|
}
|
|
2216
2216
|
function Is(e) {
|
|
2217
2217
|
for (const t of this._compilations)
|
|
2218
|
-
if (
|
|
2218
|
+
if (hi(t, e))
|
|
2219
2219
|
return t;
|
|
2220
2220
|
}
|
|
2221
2221
|
fe.getCompilingSchema = Is;
|
|
2222
|
-
function
|
|
2222
|
+
function hi(e, t) {
|
|
2223
2223
|
return e.schema === t.schema && e.root === t.root && e.baseId === t.baseId;
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function pi(e, t) {
|
|
2226
2226
|
let n;
|
|
2227
2227
|
for (; typeof (n = this.refs[t]) == "string"; )
|
|
2228
2228
|
t = n;
|
|
@@ -2239,7 +2239,7 @@ function Gt(e, t) {
|
|
|
2239
2239
|
return typeof (i == null ? void 0 : i.schema) != "object" ? void 0 : mr.call(this, n, i);
|
|
2240
2240
|
}
|
|
2241
2241
|
if (typeof (o == null ? void 0 : o.schema) == "object") {
|
|
2242
|
-
if (o.validate ||
|
|
2242
|
+
if (o.validate || Cr.call(this, o), a === (0, $e.normalizeId)(t)) {
|
|
2243
2243
|
const { schema: i } = o, { schemaId: d } = this.opts, c = i[d];
|
|
2244
2244
|
return c && (s = (0, $e.resolveUrl)(this.opts.uriResolver, s, c)), new Bt({ schema: i, schemaId: d, root: e, baseId: s });
|
|
2245
2245
|
}
|
|
@@ -2247,7 +2247,7 @@ function Gt(e, t) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
2249
2249
|
fe.resolveSchema = Gt;
|
|
2250
|
-
const
|
|
2250
|
+
const yi = /* @__PURE__ */ new Set([
|
|
2251
2251
|
"properties",
|
|
2252
2252
|
"patternProperties",
|
|
2253
2253
|
"enum",
|
|
@@ -2261,15 +2261,15 @@ function mr(e, { baseId: t, schema: n, root: r }) {
|
|
|
2261
2261
|
for (const i of e.fragment.slice(1).split("/")) {
|
|
2262
2262
|
if (typeof n == "boolean")
|
|
2263
2263
|
return;
|
|
2264
|
-
const d = n[(0,
|
|
2264
|
+
const d = n[(0, Nn.unescapeFragment)(i)];
|
|
2265
2265
|
if (d === void 0)
|
|
2266
2266
|
return;
|
|
2267
2267
|
n = d;
|
|
2268
2268
|
const c = typeof n == "object" && n[this.opts.schemaId];
|
|
2269
|
-
!
|
|
2269
|
+
!yi.has(i) && c && (t = (0, $e.resolveUrl)(this.opts.uriResolver, t, c));
|
|
2270
2270
|
}
|
|
2271
2271
|
let a;
|
|
2272
|
-
if (typeof n != "boolean" && n.$ref && !(0,
|
|
2272
|
+
if (typeof n != "boolean" && n.$ref && !(0, Nn.schemaHasRulesButRef)(n, this.RULES)) {
|
|
2273
2273
|
const i = (0, $e.resolveUrl)(this.opts.uriResolver, t, n.$ref);
|
|
2274
2274
|
a = Gt.call(this, r, i);
|
|
2275
2275
|
}
|
|
@@ -2277,9 +2277,9 @@ function mr(e, { baseId: t, schema: n, root: r }) {
|
|
|
2277
2277
|
if (a = a || new Bt({ schema: n, schemaId: o, root: r, baseId: t }), a.schema !== a.root.schema)
|
|
2278
2278
|
return a;
|
|
2279
2279
|
}
|
|
2280
|
-
const
|
|
2280
|
+
const vi = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", _i = "Meta-schema for $data reference (JSON AnySchema extension proposal)", gi = "object", bi = [
|
|
2281
2281
|
"$data"
|
|
2282
|
-
],
|
|
2282
|
+
], $i = {
|
|
2283
2283
|
$data: {
|
|
2284
2284
|
type: "string",
|
|
2285
2285
|
anyOf: [
|
|
@@ -2291,16 +2291,16 @@ const _i = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
2291
2291
|
}
|
|
2292
2292
|
]
|
|
2293
2293
|
}
|
|
2294
|
-
},
|
|
2295
|
-
$id:
|
|
2296
|
-
description:
|
|
2297
|
-
type:
|
|
2298
|
-
required:
|
|
2299
|
-
properties:
|
|
2300
|
-
additionalProperties:
|
|
2294
|
+
}, wi = !1, ki = {
|
|
2295
|
+
$id: vi,
|
|
2296
|
+
description: _i,
|
|
2297
|
+
type: gi,
|
|
2298
|
+
required: bi,
|
|
2299
|
+
properties: $i,
|
|
2300
|
+
additionalProperties: wi
|
|
2301
2301
|
};
|
|
2302
|
-
var
|
|
2303
|
-
const
|
|
2302
|
+
var Dr = {}, Jt = { exports: {} };
|
|
2303
|
+
const Si = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), Ns = 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
2304
|
function Ms(e) {
|
|
2305
2305
|
let t = "", n = 0, r = 0;
|
|
2306
2306
|
for (r = 0; r < e.length; r++)
|
|
@@ -2317,11 +2317,11 @@ function Ms(e) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
return t;
|
|
2319
2319
|
}
|
|
2320
|
-
const
|
|
2321
|
-
function
|
|
2320
|
+
const Ei = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
2321
|
+
function Mn(e) {
|
|
2322
2322
|
return e.length = 0, !0;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function Pi(e, t, n) {
|
|
2325
2325
|
if (e.length) {
|
|
2326
2326
|
const r = Ms(e);
|
|
2327
2327
|
if (r !== "")
|
|
@@ -2332,10 +2332,10 @@ function Oi(e, t, n) {
|
|
|
2332
2332
|
}
|
|
2333
2333
|
return !0;
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Oi(e) {
|
|
2336
2336
|
let t = 0;
|
|
2337
2337
|
const n = { error: !1, address: "", zone: "" }, r = [], s = [];
|
|
2338
|
-
let a = !1, o = !1, i =
|
|
2338
|
+
let a = !1, o = !1, i = Pi;
|
|
2339
2339
|
for (let d = 0; d < e.length; d++) {
|
|
2340
2340
|
const c = e[d];
|
|
2341
2341
|
if (!(c === "[" || c === "]"))
|
|
@@ -2351,18 +2351,18 @@ function ji(e) {
|
|
|
2351
2351
|
} else if (c === "%") {
|
|
2352
2352
|
if (!i(s, r, n))
|
|
2353
2353
|
break;
|
|
2354
|
-
i =
|
|
2354
|
+
i = Mn;
|
|
2355
2355
|
} else {
|
|
2356
2356
|
s.push(c);
|
|
2357
2357
|
continue;
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
|
-
return s.length && (i ===
|
|
2360
|
+
return s.length && (i === Mn ? n.zone = s.join("") : o ? r.push(s.join("")) : r.push(Ms(s))), n.address = r.join(""), n;
|
|
2361
2361
|
}
|
|
2362
2362
|
function Ts(e) {
|
|
2363
|
-
if (
|
|
2363
|
+
if (ji(e, ":") < 2)
|
|
2364
2364
|
return { host: e, isIPV6: !1 };
|
|
2365
|
-
const t =
|
|
2365
|
+
const t = Oi(e);
|
|
2366
2366
|
if (t.error)
|
|
2367
2367
|
return { host: e, isIPV6: !1 };
|
|
2368
2368
|
{
|
|
@@ -2370,13 +2370,13 @@ function Ts(e) {
|
|
|
2370
2370
|
return t.zone && (n += "%" + t.zone, r += "%25" + t.zone), { host: n, isIPV6: !0, escapedHost: r };
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function ji(e, t) {
|
|
2374
2374
|
let n = 0;
|
|
2375
2375
|
for (let r = 0; r < e.length; r++)
|
|
2376
2376
|
e[r] === t && n++;
|
|
2377
2377
|
return n;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function qi(e) {
|
|
2380
2380
|
let t = e;
|
|
2381
2381
|
const n = [];
|
|
2382
2382
|
let r = -1, s = 0;
|
|
@@ -2434,11 +2434,11 @@ function Ii(e) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
return n.join("");
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function Ii(e, t) {
|
|
2438
2438
|
const n = t !== !0 ? escape : unescape;
|
|
2439
2439
|
return e.scheme !== void 0 && (e.scheme = n(e.scheme)), e.userinfo !== void 0 && (e.userinfo = n(e.userinfo)), e.host !== void 0 && (e.host = n(e.host)), e.path !== void 0 && (e.path = n(e.path)), e.query !== void 0 && (e.query = n(e.query)), e.fragment !== void 0 && (e.fragment = n(e.fragment)), e;
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function Ni(e) {
|
|
2442
2442
|
const t = [];
|
|
2443
2443
|
if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
|
|
2444
2444
|
let n = unescape(e.host);
|
|
@@ -2451,15 +2451,15 @@ function Mi(e) {
|
|
|
2451
2451
|
return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
|
|
2452
2452
|
}
|
|
2453
2453
|
var Rs = {
|
|
2454
|
-
nonSimpleDomain:
|
|
2455
|
-
recomposeAuthority:
|
|
2456
|
-
normalizeComponentEncoding:
|
|
2457
|
-
removeDotSegments:
|
|
2454
|
+
nonSimpleDomain: Ei,
|
|
2455
|
+
recomposeAuthority: Ni,
|
|
2456
|
+
normalizeComponentEncoding: Ii,
|
|
2457
|
+
removeDotSegments: qi,
|
|
2458
2458
|
isIPv4: Ns,
|
|
2459
|
-
isUUID:
|
|
2459
|
+
isUUID: Si,
|
|
2460
2460
|
normalizeIPv6: Ts
|
|
2461
2461
|
};
|
|
2462
|
-
const { isUUID:
|
|
2462
|
+
const { isUUID: Mi } = Rs, Ti = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
2463
2463
|
function As(e) {
|
|
2464
2464
|
return e.secure === !0 ? !0 : e.secure === !1 ? !1 : e.scheme ? e.scheme.length === 3 && (e.scheme[0] === "w" || e.scheme[0] === "W") && (e.scheme[1] === "s" || e.scheme[1] === "S") && (e.scheme[2] === "s" || e.scheme[2] === "S") : !1;
|
|
2465
2465
|
}
|
|
@@ -2470,42 +2470,42 @@ function Cs(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 Ri(e) {
|
|
2474
2474
|
return e.secure = As(e), e.resourceName = (e.path || "/") + (e.query ? "?" + e.query : ""), e.path = void 0, e.query = void 0, e;
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Ai(e) {
|
|
2477
2477
|
if ((e.port === (As(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;
|
|
2480
2480
|
}
|
|
2481
2481
|
return e.fragment = void 0, e;
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function Fi(e, t) {
|
|
2484
2484
|
if (!e.path)
|
|
2485
2485
|
return e.error = "URN can not be parsed", e;
|
|
2486
|
-
const n = e.path.match(
|
|
2486
|
+
const n = e.path.match(Ti);
|
|
2487
2487
|
if (n) {
|
|
2488
2488
|
const r = t.scheme || e.scheme || "urn";
|
|
2489
2489
|
e.nid = n[1].toLowerCase(), e.nss = n[2];
|
|
2490
|
-
const s = `${r}:${t.nid || e.nid}`, a =
|
|
2490
|
+
const s = `${r}:${t.nid || e.nid}`, a = Vr(s);
|
|
2491
2491
|
e.path = void 0, a && (e = a.parse(e, t));
|
|
2492
2492
|
} else
|
|
2493
2493
|
e.error = e.error || "URN can not be parsed.";
|
|
2494
2494
|
return e;
|
|
2495
2495
|
}
|
|
2496
|
-
function
|
|
2496
|
+
function Ci(e, t) {
|
|
2497
2497
|
if (e.nid === void 0)
|
|
2498
2498
|
throw new Error("URN without nid cannot be serialized");
|
|
2499
|
-
const n = t.scheme || e.scheme || "urn", r = e.nid.toLowerCase(), s = `${n}:${t.nid || r}`, a =
|
|
2499
|
+
const n = t.scheme || e.scheme || "urn", r = e.nid.toLowerCase(), s = `${n}:${t.nid || r}`, a = Vr(s);
|
|
2500
2500
|
a && (e = a.serialize(e, t));
|
|
2501
2501
|
const o = e, i = e.nss;
|
|
2502
2502
|
return o.path = `${r || t.nid}:${i}`, t.skipEscape = !0, o;
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function Di(e, t) {
|
|
2505
2505
|
const n = e;
|
|
2506
|
-
return n.uuid = n.nss, n.nss = void 0, !t.tolerant && (!n.uuid || !
|
|
2506
|
+
return n.uuid = n.nss, n.nss = void 0, !t.tolerant && (!n.uuid || !Mi(n.uuid)) && (n.error = n.error || "UUID is not valid."), n;
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function Vi(e) {
|
|
2509
2509
|
const t = e;
|
|
2510
2510
|
return t.nss = (e.uuid || "").toLowerCase(), t;
|
|
2511
2511
|
}
|
|
@@ -2517,7 +2517,7 @@ const Ds = (
|
|
|
2517
2517
|
parse: Fs,
|
|
2518
2518
|
serialize: Cs
|
|
2519
2519
|
}
|
|
2520
|
-
),
|
|
2520
|
+
), zi = (
|
|
2521
2521
|
/** @type {SchemeHandler} */
|
|
2522
2522
|
{
|
|
2523
2523
|
scheme: "https",
|
|
@@ -2530,10 +2530,10 @@ const Ds = (
|
|
|
2530
2530
|
{
|
|
2531
2531
|
scheme: "ws",
|
|
2532
2532
|
domainHost: !0,
|
|
2533
|
-
parse:
|
|
2534
|
-
serialize:
|
|
2533
|
+
parse: Ri,
|
|
2534
|
+
serialize: Ai
|
|
2535
2535
|
}
|
|
2536
|
-
),
|
|
2536
|
+
), Ui = (
|
|
2537
2537
|
/** @type {SchemeHandler} */
|
|
2538
2538
|
{
|
|
2539
2539
|
scheme: "wss",
|
|
@@ -2541,35 +2541,35 @@ const Ds = (
|
|
|
2541
2541
|
parse: Rt.parse,
|
|
2542
2542
|
serialize: Rt.serialize
|
|
2543
2543
|
}
|
|
2544
|
-
),
|
|
2544
|
+
), Li = (
|
|
2545
2545
|
/** @type {SchemeHandler} */
|
|
2546
2546
|
{
|
|
2547
2547
|
scheme: "urn",
|
|
2548
|
-
parse:
|
|
2549
|
-
serialize:
|
|
2548
|
+
parse: Fi,
|
|
2549
|
+
serialize: Ci,
|
|
2550
2550
|
skipNormalize: !0
|
|
2551
2551
|
}
|
|
2552
|
-
),
|
|
2552
|
+
), Hi = (
|
|
2553
2553
|
/** @type {SchemeHandler} */
|
|
2554
2554
|
{
|
|
2555
2555
|
scheme: "urn:uuid",
|
|
2556
|
-
parse:
|
|
2557
|
-
serialize:
|
|
2556
|
+
parse: Di,
|
|
2557
|
+
serialize: Vi,
|
|
2558
2558
|
skipNormalize: !0
|
|
2559
2559
|
}
|
|
2560
2560
|
), Vt = (
|
|
2561
2561
|
/** @type {Record<SchemeName, SchemeHandler>} */
|
|
2562
2562
|
{
|
|
2563
2563
|
http: Ds,
|
|
2564
|
-
https:
|
|
2564
|
+
https: zi,
|
|
2565
2565
|
ws: Rt,
|
|
2566
|
-
wss:
|
|
2567
|
-
urn:
|
|
2568
|
-
"urn:uuid":
|
|
2566
|
+
wss: Ui,
|
|
2567
|
+
urn: Li,
|
|
2568
|
+
"urn:uuid": Hi
|
|
2569
2569
|
}
|
|
2570
2570
|
);
|
|
2571
2571
|
Object.setPrototypeOf(Vt, null);
|
|
2572
|
-
function
|
|
2572
|
+
function Vr(e) {
|
|
2573
2573
|
return e && (Vt[
|
|
2574
2574
|
/** @type {SchemeName} */
|
|
2575
2575
|
e
|
|
@@ -2578,28 +2578,28 @@ function Dr(e) {
|
|
|
2578
2578
|
e.toLowerCase()
|
|
2579
2579
|
]) || void 0;
|
|
2580
2580
|
}
|
|
2581
|
-
var
|
|
2581
|
+
var Ki = {
|
|
2582
2582
|
SCHEMES: Vt,
|
|
2583
|
-
getSchemeHandler:
|
|
2583
|
+
getSchemeHandler: Vr
|
|
2584
2584
|
};
|
|
2585
|
-
const { normalizeIPv6:
|
|
2586
|
-
function
|
|
2585
|
+
const { normalizeIPv6: Bi, removeDotSegments: ct, recomposeAuthority: Gi, normalizeComponentEncoding: Ot, isIPv4: Ji, nonSimpleDomain: xi } = Rs, { SCHEMES: Wi, getSchemeHandler: Vs } = Ki;
|
|
2586
|
+
function Zi(e, t) {
|
|
2587
2587
|
return typeof e == "string" ? e = /** @type {T} */
|
|
2588
|
-
|
|
2589
|
-
Te(
|
|
2588
|
+
Oe(Te(e, t), t) : typeof e == "object" && (e = /** @type {T} */
|
|
2589
|
+
Te(Oe(e, t), t)), e;
|
|
2590
2590
|
}
|
|
2591
|
-
function
|
|
2591
|
+
function Yi(e, t, n) {
|
|
2592
2592
|
const r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, s = zs(Te(e, r), Te(t, r), r, !0);
|
|
2593
|
-
return r.skipEscape = !0,
|
|
2593
|
+
return r.skipEscape = !0, Oe(s, r);
|
|
2594
2594
|
}
|
|
2595
2595
|
function zs(e, t, n, r) {
|
|
2596
2596
|
const s = {};
|
|
2597
|
-
return r || (e = Te(
|
|
2597
|
+
return r || (e = Te(Oe(e, n), n), t = Te(Oe(t, n), n)), n = n || {}, !n.tolerant && t.scheme ? (s.scheme = t.scheme, s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ct(t.path || ""), s.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (s.userinfo = t.userinfo, s.host = t.host, s.port = t.port, s.path = ct(t.path || ""), s.query = t.query) : (t.path ? (t.path[0] === "/" ? s.path = ct(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? s.path = "/" + t.path : e.path ? s.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : s.path = t.path, s.path = ct(s.path)), s.query = t.query) : (s.path = e.path, t.query !== void 0 ? s.query = t.query : s.query = e.query), s.userinfo = e.userinfo, s.host = e.host, s.port = e.port), s.scheme = e.scheme), s.fragment = t.fragment, s;
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2600
|
-
return typeof e == "string" ? (e = unescape(e), e =
|
|
2599
|
+
function Qi(e, t, n) {
|
|
2600
|
+
return typeof e == "string" ? (e = unescape(e), e = Oe(Ot(Te(e, n), !0), { ...n, skipEscape: !0 })) : typeof e == "object" && (e = Oe(Ot(e, !0), { ...n, skipEscape: !0 })), typeof t == "string" ? (t = unescape(t), t = Oe(Ot(Te(t, n), !0), { ...n, skipEscape: !0 })) : typeof t == "object" && (t = Oe(Ot(t, !0), { ...n, skipEscape: !0 })), e.toLowerCase() === t.toLowerCase();
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function Oe(e, t) {
|
|
2603
2603
|
const n = {
|
|
2604
2604
|
host: e.host,
|
|
2605
2605
|
scheme: e.scheme,
|
|
@@ -2617,14 +2617,14 @@ function je(e, t) {
|
|
|
2617
2617
|
error: ""
|
|
2618
2618
|
}, r = Object.assign({}, t), s = [], a = Vs(r.scheme || n.scheme);
|
|
2619
2619
|
a && a.serialize && a.serialize(n, r), n.path !== void 0 && (r.skipEscape ? n.path = unescape(n.path) : (n.path = escape(n.path), n.scheme !== void 0 && (n.path = n.path.split("%3A").join(":")))), r.reference !== "suffix" && n.scheme && s.push(n.scheme, ":");
|
|
2620
|
-
const o =
|
|
2620
|
+
const o = Gi(n);
|
|
2621
2621
|
if (o !== void 0 && (r.reference !== "suffix" && s.push("//"), s.push(o), n.path && n.path[0] !== "/" && s.push("/")), n.path !== void 0) {
|
|
2622
2622
|
let i = n.path;
|
|
2623
2623
|
!r.absolutePath && (!a || !a.absolutePath) && (i = ct(i)), o === void 0 && i[0] === "/" && i[1] === "/" && (i = "/%2F" + i.slice(2)), s.push(i);
|
|
2624
2624
|
}
|
|
2625
2625
|
return n.query !== void 0 && s.push("?", n.query), n.fragment !== void 0 && s.push("#", n.fragment), s.join("");
|
|
2626
2626
|
}
|
|
2627
|
-
const
|
|
2627
|
+
const Xi = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
2628
2628
|
function Te(e, t) {
|
|
2629
2629
|
const n = Object.assign({}, t), r = {
|
|
2630
2630
|
scheme: void 0,
|
|
@@ -2637,17 +2637,17 @@ function Te(e, t) {
|
|
|
2637
2637
|
};
|
|
2638
2638
|
let s = !1;
|
|
2639
2639
|
n.reference === "suffix" && (n.scheme ? e = n.scheme + ":" + e : e = "//" + e);
|
|
2640
|
-
const a = e.match(
|
|
2640
|
+
const a = e.match(Xi);
|
|
2641
2641
|
if (a) {
|
|
2642
2642
|
if (r.scheme = a[1], r.userinfo = a[3], r.host = a[4], r.port = parseInt(a[5], 10), r.path = a[6] || "", r.query = a[7], r.fragment = a[8], isNaN(r.port) && (r.port = a[5]), r.host)
|
|
2643
|
-
if (
|
|
2644
|
-
const d =
|
|
2643
|
+
if (Ji(r.host) === !1) {
|
|
2644
|
+
const d = Bi(r.host);
|
|
2645
2645
|
r.host = d.host.toLowerCase(), s = d.isIPV6;
|
|
2646
2646
|
} else
|
|
2647
2647
|
s = !0;
|
|
2648
2648
|
r.scheme === void 0 && r.userinfo === void 0 && r.host === void 0 && r.port === void 0 && r.query === void 0 && !r.path ? r.reference = "same-document" : r.scheme === void 0 ? r.reference = "relative" : r.fragment === void 0 ? r.reference = "absolute" : r.reference = "uri", n.reference && n.reference !== "suffix" && n.reference !== r.reference && (r.error = r.error || "URI is not a " + n.reference + " reference.");
|
|
2649
2649
|
const o = Vs(n.scheme || r.scheme);
|
|
2650
|
-
if (!n.unicodeSupport && (!o || !o.unicodeSupport) && r.host && (n.domainHost || o && o.domainHost) && s === !1 &&
|
|
2650
|
+
if (!n.unicodeSupport && (!o || !o.unicodeSupport) && r.host && (n.domainHost || o && o.domainHost) && s === !1 && xi(r.host))
|
|
2651
2651
|
try {
|
|
2652
2652
|
r.host = URL.domainToASCII(r.host.toLowerCase());
|
|
2653
2653
|
} catch (i) {
|
|
@@ -2658,23 +2658,23 @@ function Te(e, t) {
|
|
|
2658
2658
|
r.error = r.error || "URI can not be parsed.";
|
|
2659
2659
|
return r;
|
|
2660
2660
|
}
|
|
2661
|
-
const
|
|
2662
|
-
SCHEMES:
|
|
2663
|
-
normalize:
|
|
2664
|
-
resolve:
|
|
2661
|
+
const zr = {
|
|
2662
|
+
SCHEMES: Wi,
|
|
2663
|
+
normalize: Zi,
|
|
2664
|
+
resolve: Yi,
|
|
2665
2665
|
resolveComponent: zs,
|
|
2666
|
-
equal:
|
|
2667
|
-
serialize:
|
|
2666
|
+
equal: Qi,
|
|
2667
|
+
serialize: Oe,
|
|
2668
2668
|
parse: Te
|
|
2669
2669
|
};
|
|
2670
|
-
Jt.exports =
|
|
2671
|
-
Jt.exports.default =
|
|
2672
|
-
Jt.exports.fastUri =
|
|
2673
|
-
var
|
|
2674
|
-
Object.defineProperty(
|
|
2675
|
-
const Us =
|
|
2670
|
+
Jt.exports = zr;
|
|
2671
|
+
Jt.exports.default = zr;
|
|
2672
|
+
Jt.exports.fastUri = zr;
|
|
2673
|
+
var el = Jt.exports;
|
|
2674
|
+
Object.defineProperty(Dr, "__esModule", { value: !0 });
|
|
2675
|
+
const Us = el;
|
|
2676
2676
|
Us.code = 'require("ajv/dist/runtime/uri").default';
|
|
2677
|
-
|
|
2677
|
+
Dr.default = Us;
|
|
2678
2678
|
(function(e) {
|
|
2679
2679
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
2680
2680
|
var t = we;
|
|
@@ -2695,7 +2695,7 @@ Cr.default = Us;
|
|
|
2695
2695
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
2696
2696
|
return n.CodeGen;
|
|
2697
2697
|
} });
|
|
2698
|
-
const r = $t, s = nt, a = Ke, o = fe, i = B, d = le, c = se, u = N, f =
|
|
2698
|
+
const r = $t, s = nt, a = Ke, o = fe, i = B, d = le, c = se, u = N, f = ki, b = Dr, $ = (q, v) => new RegExp(q, v);
|
|
2699
2699
|
$.code = "new RegExp";
|
|
2700
2700
|
const _ = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
2701
2701
|
"validate",
|
|
@@ -2734,14 +2734,14 @@ Cr.default = Us;
|
|
|
2734
2734
|
}, y = 200;
|
|
2735
2735
|
function k(q) {
|
|
2736
2736
|
var v, P, w, l, h, E, A, D, Y, Z, oe, Je, Yt, Qt, Xt, er, tr, rr, nr, sr, ar, or, ir, lr, dr;
|
|
2737
|
-
const it = q.strict, cr = (v = q.code) === null || v === void 0 ? void 0 : v.optimize,
|
|
2737
|
+
const it = q.strict, cr = (v = q.code) === null || v === void 0 ? void 0 : v.optimize, gn = cr === !0 || cr === void 0 ? 1 : cr || 0, bn = (w = (P = q.code) === null || P === void 0 ? void 0 : P.regExp) !== null && w !== void 0 ? w : $, ea = (l = q.uriResolver) !== null && l !== void 0 ? l : b.default;
|
|
2738
2738
|
return {
|
|
2739
2739
|
strictSchema: (E = (h = q.strictSchema) !== null && h !== void 0 ? h : it) !== null && E !== void 0 ? E : !0,
|
|
2740
2740
|
strictNumbers: (D = (A = q.strictNumbers) !== null && A !== void 0 ? A : it) !== null && D !== void 0 ? D : !0,
|
|
2741
2741
|
strictTypes: (Z = (Y = q.strictTypes) !== null && Y !== void 0 ? Y : it) !== null && Z !== void 0 ? Z : "log",
|
|
2742
2742
|
strictTuples: (Je = (oe = q.strictTuples) !== null && oe !== void 0 ? oe : it) !== null && Je !== void 0 ? Je : "log",
|
|
2743
2743
|
strictRequired: (Qt = (Yt = q.strictRequired) !== null && Yt !== void 0 ? Yt : it) !== null && Qt !== void 0 ? Qt : !1,
|
|
2744
|
-
code: q.code ? { ...q.code, optimize:
|
|
2744
|
+
code: q.code ? { ...q.code, optimize: gn, regExp: bn } : { optimize: gn, regExp: bn },
|
|
2745
2745
|
loopRequired: (Xt = q.loopRequired) !== null && Xt !== void 0 ? Xt : y,
|
|
2746
2746
|
loopEnum: (er = q.loopEnum) !== null && er !== void 0 ? er : y,
|
|
2747
2747
|
meta: (tr = q.meta) !== null && tr !== void 0 ? tr : !0,
|
|
@@ -3115,29 +3115,29 @@ Cr.default = Us;
|
|
|
3115
3115
|
return { anyOf: [q, Zt] };
|
|
3116
3116
|
}
|
|
3117
3117
|
})(Qn);
|
|
3118
|
-
var
|
|
3119
|
-
Object.defineProperty(
|
|
3120
|
-
const
|
|
3118
|
+
var Ur = {}, Lr = {}, Hr = {};
|
|
3119
|
+
Object.defineProperty(Hr, "__esModule", { value: !0 });
|
|
3120
|
+
const tl = {
|
|
3121
3121
|
keyword: "id",
|
|
3122
3122
|
code() {
|
|
3123
3123
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
3124
3124
|
}
|
|
3125
3125
|
};
|
|
3126
|
-
|
|
3126
|
+
Hr.default = tl;
|
|
3127
3127
|
var Be = {};
|
|
3128
3128
|
Object.defineProperty(Be, "__esModule", { value: !0 });
|
|
3129
3129
|
Be.callRef = Be.getValidate = void 0;
|
|
3130
|
-
const
|
|
3130
|
+
const rl = nt, Tn = J, ue = B, We = Ie, Rn = fe, jt = N, nl = {
|
|
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 = Rn.resolveRef.call(d, c, s, n);
|
|
3138
3138
|
if (u === void 0)
|
|
3139
|
-
throw new
|
|
3140
|
-
if (u instanceof
|
|
3139
|
+
throw new rl.default(r.opts.uriResolver, s, n);
|
|
3140
|
+
if (u instanceof Rn.SchemaEnv)
|
|
3141
3141
|
return b(u);
|
|
3142
3142
|
return $(u);
|
|
3143
3143
|
function f() {
|
|
@@ -3175,13 +3175,13 @@ function At(e, t, n, r) {
|
|
|
3175
3175
|
throw new Error("async schema referenced by sync schema");
|
|
3176
3176
|
const _ = s.let("valid");
|
|
3177
3177
|
s.try(() => {
|
|
3178
|
-
s.code((0, ue._)`await ${(0,
|
|
3178
|
+
s.code((0, ue._)`await ${(0, Tn.callValidateCode)(e, t, c)}`), $(t), o || s.assign(_, !0);
|
|
3179
3179
|
}, (g) => {
|
|
3180
3180
|
s.if((0, ue._)`!(${g} instanceof ${a.ValidationError})`, () => s.throw(g)), b(g), o || s.assign(_, !1);
|
|
3181
3181
|
}), e.ok(_);
|
|
3182
3182
|
}
|
|
3183
3183
|
function f() {
|
|
3184
|
-
e.result((0,
|
|
3184
|
+
e.result((0, Tn.callValidateCode)(e, t, c), () => $(t), () => b(t));
|
|
3185
3185
|
}
|
|
3186
3186
|
function b(_) {
|
|
3187
3187
|
const g = (0, ue._)`${_}.errors`;
|
|
@@ -3209,60 +3209,60 @@ function At(e, t, n, r) {
|
|
|
3209
3209
|
}
|
|
3210
3210
|
}
|
|
3211
3211
|
Be.callRef = At;
|
|
3212
|
-
Be.default =
|
|
3213
|
-
Object.defineProperty(
|
|
3214
|
-
const
|
|
3212
|
+
Be.default = nl;
|
|
3213
|
+
Object.defineProperty(Lr, "__esModule", { value: !0 });
|
|
3214
|
+
const sl = Hr, al = Be, ol = [
|
|
3215
3215
|
"$schema",
|
|
3216
3216
|
"$id",
|
|
3217
3217
|
"$defs",
|
|
3218
3218
|
"$vocabulary",
|
|
3219
3219
|
{ keyword: "$comment" },
|
|
3220
3220
|
"definitions",
|
|
3221
|
-
|
|
3222
|
-
|
|
3221
|
+
sl.default,
|
|
3222
|
+
al.default
|
|
3223
3223
|
];
|
|
3224
|
-
|
|
3225
|
-
var
|
|
3226
|
-
Object.defineProperty(
|
|
3224
|
+
Lr.default = ol;
|
|
3225
|
+
var Kr = {}, Br = {};
|
|
3226
|
+
Object.defineProperty(Br, "__esModule", { value: !0 });
|
|
3227
3227
|
const zt = B, Ae = zt.operators, Ut = {
|
|
3228
3228
|
maximum: { okStr: "<=", ok: Ae.LTE, fail: Ae.GT },
|
|
3229
3229
|
minimum: { okStr: ">=", ok: Ae.GTE, fail: Ae.LT },
|
|
3230
3230
|
exclusiveMaximum: { okStr: "<", ok: Ae.LT, fail: Ae.GTE },
|
|
3231
3231
|
exclusiveMinimum: { okStr: ">", ok: Ae.GT, fail: Ae.LTE }
|
|
3232
|
-
},
|
|
3232
|
+
}, il = {
|
|
3233
3233
|
message: ({ keyword: e, schemaCode: t }) => (0, zt.str)`must be ${Ut[e].okStr} ${t}`,
|
|
3234
3234
|
params: ({ keyword: e, schemaCode: t }) => (0, zt._)`{comparison: ${Ut[e].okStr}, limit: ${t}}`
|
|
3235
|
-
},
|
|
3235
|
+
}, ll = {
|
|
3236
3236
|
keyword: Object.keys(Ut),
|
|
3237
3237
|
type: "number",
|
|
3238
3238
|
schemaType: "number",
|
|
3239
3239
|
$data: !0,
|
|
3240
|
-
error:
|
|
3240
|
+
error: il,
|
|
3241
3241
|
code(e) {
|
|
3242
3242
|
const { keyword: t, data: n, schemaCode: r } = e;
|
|
3243
3243
|
e.fail$data((0, zt._)`${n} ${Ut[t].fail} ${r} || isNaN(${n})`);
|
|
3244
3244
|
}
|
|
3245
3245
|
};
|
|
3246
|
-
|
|
3247
|
-
var
|
|
3248
|
-
Object.defineProperty(
|
|
3249
|
-
const mt = B,
|
|
3246
|
+
Br.default = ll;
|
|
3247
|
+
var Gr = {};
|
|
3248
|
+
Object.defineProperty(Gr, "__esModule", { value: !0 });
|
|
3249
|
+
const mt = B, dl = {
|
|
3250
3250
|
message: ({ schemaCode: e }) => (0, mt.str)`must be multiple of ${e}`,
|
|
3251
3251
|
params: ({ schemaCode: e }) => (0, mt._)`{multipleOf: ${e}}`
|
|
3252
|
-
},
|
|
3252
|
+
}, cl = {
|
|
3253
3253
|
keyword: "multipleOf",
|
|
3254
3254
|
type: "number",
|
|
3255
3255
|
schemaType: "number",
|
|
3256
3256
|
$data: !0,
|
|
3257
|
-
error:
|
|
3257
|
+
error: dl,
|
|
3258
3258
|
code(e) {
|
|
3259
3259
|
const { gen: t, data: n, schemaCode: r, it: s } = e, a = s.opts.multipleOfPrecision, o = t.let("res"), i = a ? (0, mt._)`Math.abs(Math.round(${o}) - ${o}) > 1e-${a}` : (0, mt._)`${o} !== parseInt(${o})`;
|
|
3260
3260
|
e.fail$data((0, mt._)`(${r} === 0 || (${o} = ${n}/${r}, ${i}))`);
|
|
3261
3261
|
}
|
|
3262
3262
|
};
|
|
3263
|
-
|
|
3264
|
-
var
|
|
3265
|
-
Object.defineProperty(
|
|
3263
|
+
Gr.default = cl;
|
|
3264
|
+
var Jr = {}, xr = {};
|
|
3265
|
+
Object.defineProperty(xr, "__esModule", { value: !0 });
|
|
3266
3266
|
function Hs(e) {
|
|
3267
3267
|
const t = e.length;
|
|
3268
3268
|
let n = 0, r = 0, s;
|
|
@@ -3270,75 +3270,75 @@ function Hs(e) {
|
|
|
3270
3270
|
n++, s = e.charCodeAt(r++), s >= 55296 && s <= 56319 && r < t && (s = e.charCodeAt(r), (s & 64512) === 56320 && r++);
|
|
3271
3271
|
return n;
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3273
|
+
xr.default = Hs;
|
|
3274
3274
|
Hs.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
3275
|
-
Object.defineProperty(
|
|
3276
|
-
const Ue = B,
|
|
3275
|
+
Object.defineProperty(Jr, "__esModule", { value: !0 });
|
|
3276
|
+
const Ue = B, ul = N, fl = xr, ml = {
|
|
3277
3277
|
message({ keyword: e, schemaCode: t }) {
|
|
3278
3278
|
const n = e === "maxLength" ? "more" : "fewer";
|
|
3279
3279
|
return (0, Ue.str)`must NOT have ${n} than ${t} characters`;
|
|
3280
3280
|
},
|
|
3281
3281
|
params: ({ schemaCode: e }) => (0, Ue._)`{limit: ${e}}`
|
|
3282
|
-
},
|
|
3282
|
+
}, hl = {
|
|
3283
3283
|
keyword: ["maxLength", "minLength"],
|
|
3284
3284
|
type: "string",
|
|
3285
3285
|
schemaType: "number",
|
|
3286
3286
|
$data: !0,
|
|
3287
|
-
error:
|
|
3287
|
+
error: ml,
|
|
3288
3288
|
code(e) {
|
|
3289
|
-
const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? Ue.operators.GT : Ue.operators.LT, o = s.opts.unicode === !1 ? (0, Ue._)`${n}.length` : (0, Ue._)`${(0,
|
|
3289
|
+
const { keyword: t, data: n, schemaCode: r, it: s } = e, a = t === "maxLength" ? Ue.operators.GT : Ue.operators.LT, o = s.opts.unicode === !1 ? (0, Ue._)`${n}.length` : (0, Ue._)`${(0, ul.useFunc)(e.gen, fl.default)}(${n})`;
|
|
3290
3290
|
e.fail$data((0, Ue._)`${o} ${a} ${r}`);
|
|
3291
3291
|
}
|
|
3292
3292
|
};
|
|
3293
|
-
|
|
3294
|
-
var
|
|
3295
|
-
Object.defineProperty(
|
|
3296
|
-
const
|
|
3293
|
+
Jr.default = hl;
|
|
3294
|
+
var Wr = {};
|
|
3295
|
+
Object.defineProperty(Wr, "__esModule", { value: !0 });
|
|
3296
|
+
const pl = J, Lt = B, yl = {
|
|
3297
3297
|
message: ({ schemaCode: e }) => (0, Lt.str)`must match pattern "${e}"`,
|
|
3298
3298
|
params: ({ schemaCode: e }) => (0, Lt._)`{pattern: ${e}}`
|
|
3299
|
-
},
|
|
3299
|
+
}, vl = {
|
|
3300
3300
|
keyword: "pattern",
|
|
3301
3301
|
type: "string",
|
|
3302
3302
|
schemaType: "string",
|
|
3303
3303
|
$data: !0,
|
|
3304
|
-
error:
|
|
3304
|
+
error: yl,
|
|
3305
3305
|
code(e) {
|
|
3306
|
-
const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Lt._)`(new RegExp(${s}, ${o}))` : (0,
|
|
3306
|
+
const { data: t, $data: n, schema: r, schemaCode: s, it: a } = e, o = a.opts.unicodeRegExp ? "u" : "", i = n ? (0, Lt._)`(new RegExp(${s}, ${o}))` : (0, pl.usePattern)(e, r);
|
|
3307
3307
|
e.fail$data((0, Lt._)`!${i}.test(${t})`);
|
|
3308
3308
|
}
|
|
3309
3309
|
};
|
|
3310
|
-
|
|
3311
|
-
var
|
|
3312
|
-
Object.defineProperty(
|
|
3313
|
-
const ht = B,
|
|
3310
|
+
Wr.default = vl;
|
|
3311
|
+
var Zr = {};
|
|
3312
|
+
Object.defineProperty(Zr, "__esModule", { value: !0 });
|
|
3313
|
+
const ht = B, _l = {
|
|
3314
3314
|
message({ keyword: e, schemaCode: t }) {
|
|
3315
3315
|
const n = e === "maxProperties" ? "more" : "fewer";
|
|
3316
3316
|
return (0, ht.str)`must NOT have ${n} than ${t} properties`;
|
|
3317
3317
|
},
|
|
3318
3318
|
params: ({ schemaCode: e }) => (0, ht._)`{limit: ${e}}`
|
|
3319
|
-
},
|
|
3319
|
+
}, gl = {
|
|
3320
3320
|
keyword: ["maxProperties", "minProperties"],
|
|
3321
3321
|
type: "object",
|
|
3322
3322
|
schemaType: "number",
|
|
3323
3323
|
$data: !0,
|
|
3324
|
-
error:
|
|
3324
|
+
error: _l,
|
|
3325
3325
|
code(e) {
|
|
3326
3326
|
const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxProperties" ? ht.operators.GT : ht.operators.LT;
|
|
3327
3327
|
e.fail$data((0, ht._)`Object.keys(${n}).length ${s} ${r}`);
|
|
3328
3328
|
}
|
|
3329
3329
|
};
|
|
3330
|
-
|
|
3331
|
-
var
|
|
3332
|
-
Object.defineProperty(
|
|
3333
|
-
const dt = J, pt = B,
|
|
3330
|
+
Zr.default = gl;
|
|
3331
|
+
var Yr = {};
|
|
3332
|
+
Object.defineProperty(Yr, "__esModule", { value: !0 });
|
|
3333
|
+
const dt = J, pt = B, bl = N, $l = {
|
|
3334
3334
|
message: ({ params: { missingProperty: e } }) => (0, pt.str)`must have required property '${e}'`,
|
|
3335
3335
|
params: ({ params: { missingProperty: e } }) => (0, pt._)`{missingProperty: ${e}}`
|
|
3336
|
-
},
|
|
3336
|
+
}, wl = {
|
|
3337
3337
|
keyword: "required",
|
|
3338
3338
|
type: "object",
|
|
3339
3339
|
schemaType: "array",
|
|
3340
3340
|
$data: !0,
|
|
3341
|
-
error:
|
|
3341
|
+
error: $l,
|
|
3342
3342
|
code(e) {
|
|
3343
3343
|
const { gen: t, schema: n, schemaCode: r, data: s, $data: a, it: o } = e, { opts: i } = o;
|
|
3344
3344
|
if (!a && n.length === 0)
|
|
@@ -3349,7 +3349,7 @@ const dt = J, pt = B, $l = N, wl = {
|
|
|
3349
3349
|
for (const g of n)
|
|
3350
3350
|
if (($ == null ? void 0 : $[g]) === void 0 && !_.has(g)) {
|
|
3351
3351
|
const p = o.schemaEnv.baseId + o.errSchemaPath, m = `required property "${g}" is not defined at "${p}" (strictRequired)`;
|
|
3352
|
-
(0,
|
|
3352
|
+
(0, bl.checkStrictMode)(o, m, o.opts.strictRequired);
|
|
3353
3353
|
}
|
|
3354
3354
|
}
|
|
3355
3355
|
function c() {
|
|
@@ -3381,42 +3381,42 @@ const dt = J, pt = B, $l = N, wl = {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
3383
|
};
|
|
3384
|
-
|
|
3385
|
-
var
|
|
3386
|
-
Object.defineProperty(
|
|
3387
|
-
const yt = B,
|
|
3384
|
+
Yr.default = wl;
|
|
3385
|
+
var Qr = {};
|
|
3386
|
+
Object.defineProperty(Qr, "__esModule", { value: !0 });
|
|
3387
|
+
const yt = B, kl = {
|
|
3388
3388
|
message({ keyword: e, schemaCode: t }) {
|
|
3389
3389
|
const n = e === "maxItems" ? "more" : "fewer";
|
|
3390
3390
|
return (0, yt.str)`must NOT have ${n} than ${t} items`;
|
|
3391
3391
|
},
|
|
3392
3392
|
params: ({ schemaCode: e }) => (0, yt._)`{limit: ${e}}`
|
|
3393
|
-
},
|
|
3393
|
+
}, Sl = {
|
|
3394
3394
|
keyword: ["maxItems", "minItems"],
|
|
3395
3395
|
type: "array",
|
|
3396
3396
|
schemaType: "number",
|
|
3397
3397
|
$data: !0,
|
|
3398
|
-
error:
|
|
3398
|
+
error: kl,
|
|
3399
3399
|
code(e) {
|
|
3400
3400
|
const { keyword: t, data: n, schemaCode: r } = e, s = t === "maxItems" ? yt.operators.GT : yt.operators.LT;
|
|
3401
3401
|
e.fail$data((0, yt._)`${n}.length ${s} ${r}`);
|
|
3402
3402
|
}
|
|
3403
3403
|
};
|
|
3404
|
-
|
|
3405
|
-
var
|
|
3404
|
+
Qr.default = Sl;
|
|
3405
|
+
var Xr = {}, wt = {};
|
|
3406
3406
|
Object.defineProperty(wt, "__esModule", { value: !0 });
|
|
3407
3407
|
const Ks = hs;
|
|
3408
3408
|
Ks.code = 'require("ajv/dist/runtime/equal").default';
|
|
3409
3409
|
wt.default = Ks;
|
|
3410
|
-
Object.defineProperty(
|
|
3411
|
-
const hr = se, ie = B,
|
|
3410
|
+
Object.defineProperty(Xr, "__esModule", { value: !0 });
|
|
3411
|
+
const hr = se, ie = B, El = N, Pl = wt, Ol = {
|
|
3412
3412
|
message: ({ params: { i: e, j: t } }) => (0, ie.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,
|
|
3413
3413
|
params: ({ params: { i: e, j: t } }) => (0, ie._)`{i: ${e}, j: ${t}}`
|
|
3414
|
-
},
|
|
3414
|
+
}, jl = {
|
|
3415
3415
|
keyword: "uniqueItems",
|
|
3416
3416
|
type: "array",
|
|
3417
3417
|
schemaType: "boolean",
|
|
3418
3418
|
$data: !0,
|
|
3419
|
-
error:
|
|
3419
|
+
error: Ol,
|
|
3420
3420
|
code(e) {
|
|
3421
3421
|
const { gen: t, data: n, $data: r, schema: s, parentSchema: a, schemaCode: o, it: i } = e;
|
|
3422
3422
|
if (!r && !s)
|
|
@@ -3439,46 +3439,46 @@ const hr = se, ie = B, Pl = N, Ol = wt, jl = {
|
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
3441
|
function $(_, g) {
|
|
3442
|
-
const p = (0,
|
|
3442
|
+
const p = (0, El.useFunc)(t, Pl.default), m = t.name("outer");
|
|
3443
3443
|
t.label(m).for((0, ie._)`;${_}--;`, () => t.for((0, ie._)`${g} = ${_}; ${g}--;`, () => t.if((0, ie._)`${p}(${n}[${_}], ${n}[${g}])`, () => {
|
|
3444
3444
|
e.error(), t.assign(d, !1).break(m);
|
|
3445
3445
|
})));
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
3448
|
};
|
|
3449
|
-
|
|
3450
|
-
var
|
|
3451
|
-
Object.defineProperty(
|
|
3452
|
-
const $r = B,
|
|
3449
|
+
Xr.default = jl;
|
|
3450
|
+
var en = {};
|
|
3451
|
+
Object.defineProperty(en, "__esModule", { value: !0 });
|
|
3452
|
+
const $r = B, ql = N, Il = wt, Nl = {
|
|
3453
3453
|
message: "must be equal to constant",
|
|
3454
3454
|
params: ({ schemaCode: e }) => (0, $r._)`{allowedValue: ${e}}`
|
|
3455
|
-
},
|
|
3455
|
+
}, Ml = {
|
|
3456
3456
|
keyword: "const",
|
|
3457
3457
|
$data: !0,
|
|
3458
|
-
error:
|
|
3458
|
+
error: Nl,
|
|
3459
3459
|
code(e) {
|
|
3460
3460
|
const { gen: t, data: n, $data: r, schemaCode: s, schema: a } = e;
|
|
3461
|
-
r || a && typeof a == "object" ? e.fail$data((0, $r._)`!${(0,
|
|
3461
|
+
r || a && typeof a == "object" ? e.fail$data((0, $r._)`!${(0, ql.useFunc)(t, Il.default)}(${n}, ${s})`) : e.fail((0, $r._)`${a} !== ${n}`);
|
|
3462
3462
|
}
|
|
3463
3463
|
};
|
|
3464
|
-
|
|
3465
|
-
var
|
|
3466
|
-
Object.defineProperty(
|
|
3467
|
-
const ut = B,
|
|
3464
|
+
en.default = Ml;
|
|
3465
|
+
var tn = {};
|
|
3466
|
+
Object.defineProperty(tn, "__esModule", { value: !0 });
|
|
3467
|
+
const ut = B, Tl = N, Rl = wt, Al = {
|
|
3468
3468
|
message: "must be equal to one of the allowed values",
|
|
3469
3469
|
params: ({ schemaCode: e }) => (0, ut._)`{allowedValues: ${e}}`
|
|
3470
|
-
},
|
|
3470
|
+
}, Fl = {
|
|
3471
3471
|
keyword: "enum",
|
|
3472
3472
|
schemaType: "array",
|
|
3473
3473
|
$data: !0,
|
|
3474
|
-
error:
|
|
3474
|
+
error: Al,
|
|
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,
|
|
3481
|
+
const c = () => d ?? (d = (0, Tl.useFunc)(t, Rl.default));
|
|
3482
3482
|
let u;
|
|
3483
3483
|
if (i || r)
|
|
3484
3484
|
u = t.let("valid"), e.block$data(u, f);
|
|
@@ -3498,40 +3498,40 @@ const ut = B, Rl = N, Al = wt, Fl = {
|
|
|
3498
3498
|
}
|
|
3499
3499
|
}
|
|
3500
3500
|
};
|
|
3501
|
-
|
|
3502
|
-
Object.defineProperty(
|
|
3503
|
-
const Dl =
|
|
3501
|
+
tn.default = Fl;
|
|
3502
|
+
Object.defineProperty(Kr, "__esModule", { value: !0 });
|
|
3503
|
+
const Cl = Br, Dl = Gr, Vl = Jr, zl = Wr, Ul = Zr, Ll = Yr, Hl = Qr, Kl = Xr, Bl = en, Gl = tn, Jl = [
|
|
3504
3504
|
// number
|
|
3505
|
+
Cl.default,
|
|
3505
3506
|
Dl.default,
|
|
3506
|
-
Vl.default,
|
|
3507
3507
|
// string
|
|
3508
|
+
Vl.default,
|
|
3508
3509
|
zl.default,
|
|
3509
|
-
Ul.default,
|
|
3510
3510
|
// object
|
|
3511
|
+
Ul.default,
|
|
3511
3512
|
Ll.default,
|
|
3512
|
-
Hl.default,
|
|
3513
3513
|
// array
|
|
3514
|
+
Hl.default,
|
|
3514
3515
|
Kl.default,
|
|
3515
|
-
Bl.default,
|
|
3516
3516
|
// any
|
|
3517
3517
|
{ keyword: "type", schemaType: ["string", "array"] },
|
|
3518
3518
|
{ keyword: "nullable", schemaType: "boolean" },
|
|
3519
|
-
|
|
3520
|
-
|
|
3519
|
+
Bl.default,
|
|
3520
|
+
Gl.default
|
|
3521
3521
|
];
|
|
3522
|
-
|
|
3523
|
-
var
|
|
3522
|
+
Kr.default = Jl;
|
|
3523
|
+
var rn = {}, st = {};
|
|
3524
3524
|
Object.defineProperty(st, "__esModule", { value: !0 });
|
|
3525
3525
|
st.validateAdditionalItems = void 0;
|
|
3526
|
-
const Le = B, wr = N,
|
|
3526
|
+
const Le = B, wr = N, xl = {
|
|
3527
3527
|
message: ({ params: { len: e } }) => (0, Le.str)`must NOT have more than ${e} items`,
|
|
3528
3528
|
params: ({ params: { len: e } }) => (0, Le._)`{limit: ${e}}`
|
|
3529
|
-
},
|
|
3529
|
+
}, Wl = {
|
|
3530
3530
|
keyword: "additionalItems",
|
|
3531
3531
|
type: "array",
|
|
3532
3532
|
schemaType: ["boolean", "object"],
|
|
3533
3533
|
before: "uniqueItems",
|
|
3534
|
-
error:
|
|
3534
|
+
error: xl,
|
|
3535
3535
|
code(e) {
|
|
3536
3536
|
const { parentSchema: t, it: n } = e, { items: r } = t;
|
|
3537
3537
|
if (!Array.isArray(r)) {
|
|
@@ -3558,11 +3558,11 @@ function Bs(e, t) {
|
|
|
3558
3558
|
}
|
|
3559
3559
|
}
|
|
3560
3560
|
st.validateAdditionalItems = Bs;
|
|
3561
|
-
st.default =
|
|
3562
|
-
var
|
|
3561
|
+
st.default = Wl;
|
|
3562
|
+
var nn = {}, at = {};
|
|
3563
3563
|
Object.defineProperty(at, "__esModule", { value: !0 });
|
|
3564
3564
|
at.validateTuple = void 0;
|
|
3565
|
-
const
|
|
3565
|
+
const An = B, Ft = N, Zl = J, Yl = {
|
|
3566
3566
|
keyword: "items",
|
|
3567
3567
|
type: "array",
|
|
3568
3568
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -3571,15 +3571,15 @@ const Rn = B, Ft = N, Yl = J, Ql = {
|
|
|
3571
3571
|
const { schema: t, it: n } = e;
|
|
3572
3572
|
if (Array.isArray(t))
|
|
3573
3573
|
return Gs(e, "additionalItems", t);
|
|
3574
|
-
n.items = !0, !(0, Ft.alwaysValidSchema)(n, t) && e.ok((0,
|
|
3574
|
+
n.items = !0, !(0, Ft.alwaysValidSchema)(n, t) && e.ok((0, Zl.validateArray)(e));
|
|
3575
3575
|
}
|
|
3576
3576
|
};
|
|
3577
3577
|
function Gs(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 = Ft.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, An._)`${a}.length`);
|
|
3581
3581
|
n.forEach((f, b) => {
|
|
3582
|
-
(0, Ft.alwaysValidSchema)(i, f) || (r.if((0,
|
|
3582
|
+
(0, Ft.alwaysValidSchema)(i, f) || (r.if((0, An._)`${c} > ${b}`, () => e.subschema({
|
|
3583
3583
|
keyword: o,
|
|
3584
3584
|
schemaProp: b,
|
|
3585
3585
|
dataProp: b
|
|
@@ -3594,45 +3594,45 @@ function Gs(e, t, n = e.schema) {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
at.validateTuple = Gs;
|
|
3597
|
-
at.default =
|
|
3598
|
-
Object.defineProperty(
|
|
3599
|
-
const
|
|
3597
|
+
at.default = Yl;
|
|
3598
|
+
Object.defineProperty(nn, "__esModule", { value: !0 });
|
|
3599
|
+
const Ql = at, Xl = {
|
|
3600
3600
|
keyword: "prefixItems",
|
|
3601
3601
|
type: "array",
|
|
3602
3602
|
schemaType: ["array"],
|
|
3603
3603
|
before: "uniqueItems",
|
|
3604
|
-
code: (e) => (0,
|
|
3604
|
+
code: (e) => (0, Ql.validateTuple)(e, "items")
|
|
3605
3605
|
};
|
|
3606
|
-
|
|
3607
|
-
var
|
|
3608
|
-
Object.defineProperty(
|
|
3609
|
-
const
|
|
3610
|
-
message: ({ params: { len: e } }) => (0,
|
|
3611
|
-
params: ({ params: { len: e } }) => (0,
|
|
3612
|
-
},
|
|
3606
|
+
nn.default = Xl;
|
|
3607
|
+
var sn = {};
|
|
3608
|
+
Object.defineProperty(sn, "__esModule", { value: !0 });
|
|
3609
|
+
const Fn = B, ed = N, td = J, rd = st, nd = {
|
|
3610
|
+
message: ({ params: { len: e } }) => (0, Fn.str)`must NOT have more than ${e} items`,
|
|
3611
|
+
params: ({ params: { len: e } }) => (0, Fn._)`{limit: ${e}}`
|
|
3612
|
+
}, sd = {
|
|
3613
3613
|
keyword: "items",
|
|
3614
3614
|
type: "array",
|
|
3615
3615
|
schemaType: ["object", "boolean"],
|
|
3616
3616
|
before: "uniqueItems",
|
|
3617
|
-
error:
|
|
3617
|
+
error: nd,
|
|
3618
3618
|
code(e) {
|
|
3619
3619
|
const { schema: t, parentSchema: n, it: r } = e, { prefixItems: s } = n;
|
|
3620
|
-
r.items = !0, !(0,
|
|
3620
|
+
r.items = !0, !(0, ed.alwaysValidSchema)(r, t) && (s ? (0, rd.validateAdditionalItems)(e, s) : e.ok((0, td.validateArray)(e)));
|
|
3621
3621
|
}
|
|
3622
3622
|
};
|
|
3623
|
-
|
|
3624
|
-
var
|
|
3625
|
-
Object.defineProperty(
|
|
3626
|
-
const ve = B, qt = N,
|
|
3623
|
+
sn.default = sd;
|
|
3624
|
+
var an = {};
|
|
3625
|
+
Object.defineProperty(an, "__esModule", { value: !0 });
|
|
3626
|
+
const ve = B, qt = N, ad = {
|
|
3627
3627
|
message: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ve.str)`must contain at least ${e} valid item(s)` : (0, ve.str)`must contain at least ${e} and no more than ${t} valid item(s)`,
|
|
3628
3628
|
params: ({ params: { min: e, max: t } }) => t === void 0 ? (0, ve._)`{minContains: ${e}}` : (0, ve._)`{minContains: ${e}, maxContains: ${t}}`
|
|
3629
|
-
},
|
|
3629
|
+
}, od = {
|
|
3630
3630
|
keyword: "contains",
|
|
3631
3631
|
type: "array",
|
|
3632
3632
|
schemaType: ["object", "boolean"],
|
|
3633
3633
|
before: "uniqueItems",
|
|
3634
3634
|
trackErrors: !0,
|
|
3635
|
-
error:
|
|
3635
|
+
error: ad,
|
|
3636
3636
|
code(e) {
|
|
3637
3637
|
const { gen: t, schema: n, parentSchema: r, data: s, it: a } = e;
|
|
3638
3638
|
let o, i;
|
|
@@ -3674,7 +3674,7 @@ const ve = B, qt = N, od = {
|
|
|
3674
3674
|
}
|
|
3675
3675
|
}
|
|
3676
3676
|
};
|
|
3677
|
-
|
|
3677
|
+
an.default = od;
|
|
3678
3678
|
var Js = {};
|
|
3679
3679
|
(function(e) {
|
|
3680
3680
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
@@ -3746,19 +3746,19 @@ var Js = {};
|
|
|
3746
3746
|
}
|
|
3747
3747
|
e.validateSchemaDeps = i, e.default = s;
|
|
3748
3748
|
})(Js);
|
|
3749
|
-
var
|
|
3750
|
-
Object.defineProperty(
|
|
3751
|
-
const xs = B,
|
|
3749
|
+
var on = {};
|
|
3750
|
+
Object.defineProperty(on, "__esModule", { value: !0 });
|
|
3751
|
+
const xs = B, id = N, ld = {
|
|
3752
3752
|
message: "property name must be valid",
|
|
3753
3753
|
params: ({ params: e }) => (0, xs._)`{propertyName: ${e.propertyName}}`
|
|
3754
|
-
},
|
|
3754
|
+
}, dd = {
|
|
3755
3755
|
keyword: "propertyNames",
|
|
3756
3756
|
type: "object",
|
|
3757
3757
|
schemaType: ["object", "boolean"],
|
|
3758
|
-
error:
|
|
3758
|
+
error: ld,
|
|
3759
3759
|
code(e) {
|
|
3760
3760
|
const { gen: t, schema: n, data: r, it: s } = e;
|
|
3761
|
-
if ((0,
|
|
3761
|
+
if ((0, id.alwaysValidSchema)(s, n))
|
|
3762
3762
|
return;
|
|
3763
3763
|
const a = t.name("valid");
|
|
3764
3764
|
t.forIn("key", r, (o) => {
|
|
@@ -3774,19 +3774,19 @@ const xs = B, ld = N, dd = {
|
|
|
3774
3774
|
}), e.ok(a);
|
|
3775
3775
|
}
|
|
3776
3776
|
};
|
|
3777
|
-
|
|
3777
|
+
on.default = dd;
|
|
3778
3778
|
var xt = {};
|
|
3779
3779
|
Object.defineProperty(xt, "__esModule", { value: !0 });
|
|
3780
|
-
const It = J, be = B,
|
|
3780
|
+
const It = J, be = B, cd = Ie, Nt = N, ud = {
|
|
3781
3781
|
message: "must NOT have additional properties",
|
|
3782
3782
|
params: ({ params: e }) => (0, be._)`{additionalProperty: ${e.additionalProperty}}`
|
|
3783
|
-
},
|
|
3783
|
+
}, fd = {
|
|
3784
3784
|
keyword: "additionalProperties",
|
|
3785
3785
|
type: ["object"],
|
|
3786
3786
|
schemaType: ["boolean", "object"],
|
|
3787
3787
|
allowUndefined: !0,
|
|
3788
3788
|
trackErrors: !0,
|
|
3789
|
-
error:
|
|
3789
|
+
error: ud,
|
|
3790
3790
|
code(e) {
|
|
3791
3791
|
const { gen: t, schema: n, parentSchema: r, data: s, errsCount: a, it: o } = e;
|
|
3792
3792
|
if (!a)
|
|
@@ -3795,7 +3795,7 @@ const It = J, be = B, ud = Ie, Nt = N, fd = {
|
|
|
3795
3795
|
if (o.props = !0, d.removeAdditional !== "all" && (0, Nt.alwaysValidSchema)(o, n))
|
|
3796
3796
|
return;
|
|
3797
3797
|
const c = (0, It.allSchemaProperties)(r.properties), u = (0, It.allSchemaProperties)(r.patternProperties);
|
|
3798
|
-
f(), e.ok((0, be._)`${a} === ${
|
|
3798
|
+
f(), e.ok((0, be._)`${a} === ${cd.default.errors}`);
|
|
3799
3799
|
function f() {
|
|
3800
3800
|
t.forIn("key", s, (p) => {
|
|
3801
3801
|
!c.length && !u.length ? _(p) : t.if(b(p), () => _(p));
|
|
@@ -3842,17 +3842,17 @@ const It = J, be = B, ud = Ie, Nt = N, fd = {
|
|
|
3842
3842
|
}
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
|
-
xt.default =
|
|
3846
|
-
var
|
|
3847
|
-
Object.defineProperty(
|
|
3848
|
-
const
|
|
3845
|
+
xt.default = fd;
|
|
3846
|
+
var ln = {};
|
|
3847
|
+
Object.defineProperty(ln, "__esModule", { value: !0 });
|
|
3848
|
+
const md = we, Cn = J, pr = N, Dn = xt, hd = {
|
|
3849
3849
|
keyword: "properties",
|
|
3850
3850
|
type: "object",
|
|
3851
3851
|
schemaType: "object",
|
|
3852
3852
|
code(e) {
|
|
3853
3853
|
const { gen: t, schema: n, parentSchema: r, data: s, it: a } = e;
|
|
3854
|
-
a.opts.removeAdditional === "all" && r.additionalProperties === void 0 &&
|
|
3855
|
-
const o = (0,
|
|
3854
|
+
a.opts.removeAdditional === "all" && r.additionalProperties === void 0 && Dn.default.code(new md.KeywordCxt(a, Dn.default, "additionalProperties"));
|
|
3855
|
+
const o = (0, Cn.allSchemaProperties)(n);
|
|
3856
3856
|
for (const f of o)
|
|
3857
3857
|
a.definedProperties.add(f);
|
|
3858
3858
|
a.opts.unevaluated && o.length && a.props !== !0 && (a.props = pr.mergeEvaluated.props(t, (0, pr.toHash)(o), a.props));
|
|
@@ -3861,7 +3861,7 @@ const hd = we, Fn = J, pr = N, Cn = xt, pd = {
|
|
|
3861
3861
|
return;
|
|
3862
3862
|
const d = t.name("valid");
|
|
3863
3863
|
for (const f of i)
|
|
3864
|
-
c(f) ? u(f) : (t.if((0,
|
|
3864
|
+
c(f) ? u(f) : (t.if((0, Cn.propertyInData)(t, s, f, a.opts.ownProperties)), u(f), a.allErrors || t.else().var(d, !0), t.endIf()), e.it.definedProperties.add(f), e.ok(d);
|
|
3865
3865
|
function c(f) {
|
|
3866
3866
|
return a.opts.useDefaults && !a.compositeRule && n[f].default !== void 0;
|
|
3867
3867
|
}
|
|
@@ -3874,19 +3874,19 @@ const hd = we, Fn = J, pr = N, Cn = xt, pd = {
|
|
|
3874
3874
|
}
|
|
3875
3875
|
}
|
|
3876
3876
|
};
|
|
3877
|
-
|
|
3878
|
-
var
|
|
3879
|
-
Object.defineProperty(
|
|
3880
|
-
const
|
|
3877
|
+
ln.default = hd;
|
|
3878
|
+
var dn = {};
|
|
3879
|
+
Object.defineProperty(dn, "__esModule", { value: !0 });
|
|
3880
|
+
const Vn = J, Mt = B, zn = N, Un = N, pd = {
|
|
3881
3881
|
keyword: "patternProperties",
|
|
3882
3882
|
type: "object",
|
|
3883
3883
|
schemaType: "object",
|
|
3884
3884
|
code(e) {
|
|
3885
|
-
const { gen: t, schema: n, data: r, parentSchema: s, it: a } = e, { opts: o } = a, i = (0,
|
|
3885
|
+
const { gen: t, schema: n, data: r, parentSchema: s, it: a } = e, { opts: o } = a, i = (0, Vn.allSchemaProperties)(n), d = i.filter((g) => (0, zn.alwaysValidSchema)(a, n[g]));
|
|
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 Mt.Name) && (a.props = (0,
|
|
3889
|
+
a.props !== !0 && !(a.props instanceof Mt.Name) && (a.props = (0, Un.evaluatedPropsToName)(t, a.props));
|
|
3890
3890
|
const { props: f } = a;
|
|
3891
3891
|
b();
|
|
3892
3892
|
function b() {
|
|
@@ -3895,33 +3895,33 @@ const Dn = J, Mt = B, Vn = N, zn = N, yd = {
|
|
|
3895
3895
|
}
|
|
3896
3896
|
function $(g) {
|
|
3897
3897
|
for (const p in c)
|
|
3898
|
-
new RegExp(g).test(p) && (0,
|
|
3898
|
+
new RegExp(g).test(p) && (0, zn.checkStrictMode)(a, `property ${p} matches pattern ${g} (use allowMatchingProperties)`);
|
|
3899
3899
|
}
|
|
3900
3900
|
function _(g) {
|
|
3901
3901
|
t.forIn("key", r, (p) => {
|
|
3902
|
-
t.if((0, Mt._)`${(0,
|
|
3902
|
+
t.if((0, Mt._)`${(0, Vn.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
|
-
dataPropType:
|
|
3908
|
+
dataPropType: Un.Type.Str
|
|
3909
3909
|
}, u), a.opts.unevaluated && f !== !0 ? t.assign((0, Mt._)`${f}[${p}]`, !0) : !m && !a.allErrors && t.if((0, Mt.not)(u), () => t.break());
|
|
3910
3910
|
});
|
|
3911
3911
|
});
|
|
3912
3912
|
}
|
|
3913
3913
|
}
|
|
3914
3914
|
};
|
|
3915
|
-
|
|
3916
|
-
var
|
|
3917
|
-
Object.defineProperty(
|
|
3918
|
-
const
|
|
3915
|
+
dn.default = pd;
|
|
3916
|
+
var cn = {};
|
|
3917
|
+
Object.defineProperty(cn, "__esModule", { value: !0 });
|
|
3918
|
+
const yd = N, vd = {
|
|
3919
3919
|
keyword: "not",
|
|
3920
3920
|
schemaType: ["object", "boolean"],
|
|
3921
3921
|
trackErrors: !0,
|
|
3922
3922
|
code(e) {
|
|
3923
3923
|
const { gen: t, schema: n, it: r } = e;
|
|
3924
|
-
if ((0,
|
|
3924
|
+
if ((0, yd.alwaysValidSchema)(r, n)) {
|
|
3925
3925
|
e.fail();
|
|
3926
3926
|
return;
|
|
3927
3927
|
}
|
|
@@ -3935,27 +3935,27 @@ const vd = N, _d = {
|
|
|
3935
3935
|
},
|
|
3936
3936
|
error: { message: "must NOT be valid" }
|
|
3937
3937
|
};
|
|
3938
|
-
|
|
3939
|
-
var
|
|
3940
|
-
Object.defineProperty(
|
|
3941
|
-
const
|
|
3938
|
+
cn.default = vd;
|
|
3939
|
+
var un = {};
|
|
3940
|
+
Object.defineProperty(un, "__esModule", { value: !0 });
|
|
3941
|
+
const _d = J, gd = {
|
|
3942
3942
|
keyword: "anyOf",
|
|
3943
3943
|
schemaType: "array",
|
|
3944
3944
|
trackErrors: !0,
|
|
3945
|
-
code:
|
|
3945
|
+
code: _d.validateUnion,
|
|
3946
3946
|
error: { message: "must match a schema in anyOf" }
|
|
3947
3947
|
};
|
|
3948
|
-
|
|
3949
|
-
var
|
|
3950
|
-
Object.defineProperty(
|
|
3951
|
-
const Ct = B,
|
|
3948
|
+
un.default = gd;
|
|
3949
|
+
var fn = {};
|
|
3950
|
+
Object.defineProperty(fn, "__esModule", { value: !0 });
|
|
3951
|
+
const Ct = B, bd = N, $d = {
|
|
3952
3952
|
message: "must match exactly one schema in oneOf",
|
|
3953
3953
|
params: ({ params: e }) => (0, Ct._)`{passingSchemas: ${e.passing}}`
|
|
3954
|
-
},
|
|
3954
|
+
}, wd = {
|
|
3955
3955
|
keyword: "oneOf",
|
|
3956
3956
|
schemaType: "array",
|
|
3957
3957
|
trackErrors: !0,
|
|
3958
|
-
error:
|
|
3958
|
+
error: $d,
|
|
3959
3959
|
code(e) {
|
|
3960
3960
|
const { gen: t, schema: n, parentSchema: r, it: s } = e;
|
|
3961
3961
|
if (!Array.isArray(n))
|
|
@@ -3967,7 +3967,7 @@ const Ct = B, $d = N, wd = {
|
|
|
3967
3967
|
function c() {
|
|
3968
3968
|
a.forEach((u, f) => {
|
|
3969
3969
|
let b;
|
|
3970
|
-
(0,
|
|
3970
|
+
(0, bd.alwaysValidSchema)(s, u) ? t.var(d, !0) : b = e.subschema({
|
|
3971
3971
|
keyword: "oneOf",
|
|
3972
3972
|
schemaProp: f,
|
|
3973
3973
|
compositeRule: !0
|
|
@@ -3978,10 +3978,10 @@ const Ct = B, $d = N, wd = {
|
|
|
3978
3978
|
}
|
|
3979
3979
|
}
|
|
3980
3980
|
};
|
|
3981
|
-
|
|
3982
|
-
var
|
|
3983
|
-
Object.defineProperty(
|
|
3984
|
-
const
|
|
3981
|
+
fn.default = wd;
|
|
3982
|
+
var mn = {};
|
|
3983
|
+
Object.defineProperty(mn, "__esModule", { value: !0 });
|
|
3984
|
+
const kd = N, Sd = {
|
|
3985
3985
|
keyword: "allOf",
|
|
3986
3986
|
schemaType: "array",
|
|
3987
3987
|
code(e) {
|
|
@@ -3990,28 +3990,28 @@ const Sd = N, Ed = {
|
|
|
3990
3990
|
throw new Error("ajv implementation error");
|
|
3991
3991
|
const s = t.name("valid");
|
|
3992
3992
|
n.forEach((a, o) => {
|
|
3993
|
-
if ((0,
|
|
3993
|
+
if ((0, kd.alwaysValidSchema)(r, a))
|
|
3994
3994
|
return;
|
|
3995
3995
|
const i = e.subschema({ keyword: "allOf", schemaProp: o }, s);
|
|
3996
3996
|
e.ok(s), e.mergeEvaluated(i);
|
|
3997
3997
|
});
|
|
3998
3998
|
}
|
|
3999
3999
|
};
|
|
4000
|
-
|
|
4001
|
-
var
|
|
4002
|
-
Object.defineProperty(
|
|
4003
|
-
const Ht = B, Ws = N,
|
|
4000
|
+
mn.default = Sd;
|
|
4001
|
+
var hn = {};
|
|
4002
|
+
Object.defineProperty(hn, "__esModule", { value: !0 });
|
|
4003
|
+
const Ht = B, Ws = N, Ed = {
|
|
4004
4004
|
message: ({ params: e }) => (0, Ht.str)`must match "${e.ifClause}" schema`,
|
|
4005
4005
|
params: ({ params: e }) => (0, Ht._)`{failingKeyword: ${e.ifClause}}`
|
|
4006
|
-
},
|
|
4006
|
+
}, Pd = {
|
|
4007
4007
|
keyword: "if",
|
|
4008
4008
|
schemaType: ["object", "boolean"],
|
|
4009
4009
|
trackErrors: !0,
|
|
4010
|
-
error:
|
|
4010
|
+
error: Ed,
|
|
4011
4011
|
code(e) {
|
|
4012
4012
|
const { gen: t, parentSchema: n, it: r } = e;
|
|
4013
4013
|
n.then === void 0 && n.else === void 0 && (0, Ws.checkStrictMode)(r, '"if" without "then" and "else" is ignored');
|
|
4014
|
-
const s =
|
|
4014
|
+
const s = Ln(r, "then"), a = Ln(r, "else");
|
|
4015
4015
|
if (!s && !a)
|
|
4016
4016
|
return;
|
|
4017
4017
|
const o = t.let("valid", !0), i = t.name("_valid");
|
|
@@ -4037,53 +4037,53 @@ const Ht = B, Ws = N, Pd = {
|
|
|
4037
4037
|
}
|
|
4038
4038
|
}
|
|
4039
4039
|
};
|
|
4040
|
-
function
|
|
4040
|
+
function Ln(e, t) {
|
|
4041
4041
|
const n = e.schema[t];
|
|
4042
4042
|
return n !== void 0 && !(0, Ws.alwaysValidSchema)(e, n);
|
|
4043
4043
|
}
|
|
4044
|
-
|
|
4045
|
-
var
|
|
4046
|
-
Object.defineProperty(
|
|
4047
|
-
const
|
|
4044
|
+
hn.default = Pd;
|
|
4045
|
+
var pn = {};
|
|
4046
|
+
Object.defineProperty(pn, "__esModule", { value: !0 });
|
|
4047
|
+
const Od = N, jd = {
|
|
4048
4048
|
keyword: ["then", "else"],
|
|
4049
4049
|
schemaType: ["object", "boolean"],
|
|
4050
4050
|
code({ keyword: e, parentSchema: t, it: n }) {
|
|
4051
|
-
t.if === void 0 && (0,
|
|
4051
|
+
t.if === void 0 && (0, Od.checkStrictMode)(n, `"${e}" without "if" is ignored`);
|
|
4052
4052
|
}
|
|
4053
4053
|
};
|
|
4054
|
-
|
|
4055
|
-
Object.defineProperty(
|
|
4056
|
-
const
|
|
4057
|
-
function
|
|
4054
|
+
pn.default = jd;
|
|
4055
|
+
Object.defineProperty(rn, "__esModule", { value: !0 });
|
|
4056
|
+
const qd = st, Id = nn, Nd = at, Md = sn, Td = an, Rd = Js, Ad = on, Fd = xt, Cd = ln, Dd = dn, Vd = cn, zd = un, Ud = fn, Ld = mn, Hd = hn, Kd = pn;
|
|
4057
|
+
function Bd(e = !1) {
|
|
4058
4058
|
const t = [
|
|
4059
4059
|
// any
|
|
4060
|
+
Vd.default,
|
|
4060
4061
|
zd.default,
|
|
4061
4062
|
Ud.default,
|
|
4062
4063
|
Ld.default,
|
|
4063
4064
|
Hd.default,
|
|
4064
4065
|
Kd.default,
|
|
4065
|
-
Bd.default,
|
|
4066
4066
|
// object
|
|
4067
|
+
Ad.default,
|
|
4067
4068
|
Fd.default,
|
|
4069
|
+
Rd.default,
|
|
4068
4070
|
Cd.default,
|
|
4069
|
-
|
|
4070
|
-
Dd.default,
|
|
4071
|
-
Vd.default
|
|
4071
|
+
Dd.default
|
|
4072
4072
|
];
|
|
4073
|
-
return e ? t.push(
|
|
4073
|
+
return e ? t.push(Id.default, Md.default) : t.push(qd.default, Nd.default), t.push(Td.default), t;
|
|
4074
4074
|
}
|
|
4075
|
-
|
|
4076
|
-
var
|
|
4077
|
-
Object.defineProperty(
|
|
4078
|
-
const te = B,
|
|
4075
|
+
rn.default = Bd;
|
|
4076
|
+
var yn = {}, vn = {};
|
|
4077
|
+
Object.defineProperty(vn, "__esModule", { value: !0 });
|
|
4078
|
+
const te = B, Gd = {
|
|
4079
4079
|
message: ({ schemaCode: e }) => (0, te.str)`must match format "${e}"`,
|
|
4080
4080
|
params: ({ schemaCode: e }) => (0, te._)`{format: ${e}}`
|
|
4081
|
-
},
|
|
4081
|
+
}, Jd = {
|
|
4082
4082
|
keyword: "format",
|
|
4083
4083
|
type: ["number", "string"],
|
|
4084
4084
|
schemaType: "string",
|
|
4085
4085
|
$data: !0,
|
|
4086
|
-
error:
|
|
4086
|
+
error: Gd,
|
|
4087
4087
|
code(e, t) {
|
|
4088
4088
|
const { gen: n, data: r, $data: s, schema: a, schemaCode: o, it: i } = e, { opts: d, errSchemaPath: c, schemaEnv: u, self: f } = i;
|
|
4089
4089
|
if (!d.validateFormats)
|
|
@@ -4138,10 +4138,10 @@ const te = B, Jd = {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
}
|
|
4140
4140
|
};
|
|
4141
|
-
|
|
4142
|
-
Object.defineProperty(
|
|
4143
|
-
const
|
|
4144
|
-
|
|
4141
|
+
vn.default = Jd;
|
|
4142
|
+
Object.defineProperty(yn, "__esModule", { value: !0 });
|
|
4143
|
+
const xd = vn, Wd = [xd.default];
|
|
4144
|
+
yn.default = Wd;
|
|
4145
4145
|
var tt = {};
|
|
4146
4146
|
Object.defineProperty(tt, "__esModule", { value: !0 });
|
|
4147
4147
|
tt.contentVocabulary = tt.metadataVocabulary = void 0;
|
|
@@ -4159,32 +4159,32 @@ tt.contentVocabulary = [
|
|
|
4159
4159
|
"contentEncoding",
|
|
4160
4160
|
"contentSchema"
|
|
4161
4161
|
];
|
|
4162
|
-
Object.defineProperty(
|
|
4163
|
-
const
|
|
4162
|
+
Object.defineProperty(Ur, "__esModule", { value: !0 });
|
|
4163
|
+
const Zd = Lr, Yd = Kr, Qd = rn, Xd = yn, Hn = tt, ec = [
|
|
4164
|
+
Zd.default,
|
|
4164
4165
|
Yd.default,
|
|
4165
|
-
Qd.default,
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
Ln.contentVocabulary
|
|
4166
|
+
(0, Qd.default)(),
|
|
4167
|
+
Xd.default,
|
|
4168
|
+
Hn.metadataVocabulary,
|
|
4169
|
+
Hn.contentVocabulary
|
|
4170
4170
|
];
|
|
4171
|
-
|
|
4172
|
-
var
|
|
4171
|
+
Ur.default = ec;
|
|
4172
|
+
var _n = {}, Wt = {};
|
|
4173
4173
|
Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
4174
4174
|
Wt.DiscrError = void 0;
|
|
4175
|
-
var
|
|
4175
|
+
var Kn;
|
|
4176
4176
|
(function(e) {
|
|
4177
4177
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
4178
|
-
})(
|
|
4179
|
-
Object.defineProperty(
|
|
4180
|
-
const Ye = B, kr = Wt,
|
|
4178
|
+
})(Kn || (Wt.DiscrError = Kn = {}));
|
|
4179
|
+
Object.defineProperty(_n, "__esModule", { value: !0 });
|
|
4180
|
+
const Ye = B, kr = Wt, Bn = fe, tc = nt, rc = N, nc = {
|
|
4181
4181
|
message: ({ params: { discrError: e, tagName: t } }) => e === kr.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, Ye._)`{error: ${e}, tag: ${n}, tagValue: ${t}}`
|
|
4183
|
-
},
|
|
4183
|
+
}, sc = {
|
|
4184
4184
|
keyword: "discriminator",
|
|
4185
4185
|
type: "object",
|
|
4186
4186
|
schemaType: "object",
|
|
4187
|
-
error:
|
|
4187
|
+
error: nc,
|
|
4188
4188
|
code(e) {
|
|
4189
4189
|
const { gen: t, data: n, schema: r, parentSchema: s, it: a } = e, { oneOf: o } = s;
|
|
4190
4190
|
if (!a.opts.discriminator)
|
|
@@ -4215,10 +4215,10 @@ const Ye = B, kr = Wt, Kn = fe, rc = nt, nc = N, sc = {
|
|
|
4215
4215
|
let p = !0;
|
|
4216
4216
|
for (let S = 0; S < o.length; S++) {
|
|
4217
4217
|
let O = o[S];
|
|
4218
|
-
if (O != null && O.$ref && !(0,
|
|
4218
|
+
if (O != null && O.$ref && !(0, rc.schemaHasRulesButRef)(O, a.self.RULES)) {
|
|
4219
4219
|
const H = O.$ref;
|
|
4220
|
-
if (O =
|
|
4221
|
-
throw new
|
|
4220
|
+
if (O = Bn.resolveRef.call(a.self, a.schemaEnv.root, a.baseId, H), O instanceof Bn.SchemaEnv && (O = O.schema), O === void 0)
|
|
4221
|
+
throw new tc.default(a.opts.uriResolver, a.baseId, H);
|
|
4222
4222
|
}
|
|
4223
4223
|
const C = ($ = O == null ? void 0 : O.properties) === null || $ === void 0 ? void 0 : $[i];
|
|
4224
4224
|
if (typeof C != "object")
|
|
@@ -4248,8 +4248,8 @@ const Ye = B, kr = Wt, Kn = fe, rc = nt, nc = N, sc = {
|
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
4250
|
};
|
|
4251
|
-
|
|
4252
|
-
const
|
|
4251
|
+
_n.default = sc;
|
|
4252
|
+
const ac = "http://json-schema.org/draft-07/schema#", oc = "http://json-schema.org/draft-07/schema#", ic = "Core schema meta-schema", lc = {
|
|
4253
4253
|
schemaArray: {
|
|
4254
4254
|
type: "array",
|
|
4255
4255
|
minItems: 1,
|
|
@@ -4290,10 +4290,10 @@ const oc = "http://json-schema.org/draft-07/schema#", ic = "http://json-schema.o
|
|
|
4290
4290
|
uniqueItems: !0,
|
|
4291
4291
|
default: []
|
|
4292
4292
|
}
|
|
4293
|
-
},
|
|
4293
|
+
}, dc = [
|
|
4294
4294
|
"object",
|
|
4295
4295
|
"boolean"
|
|
4296
|
-
],
|
|
4296
|
+
], cc = {
|
|
4297
4297
|
$id: {
|
|
4298
4298
|
type: "string",
|
|
4299
4299
|
format: "uri-reference"
|
|
@@ -4481,18 +4481,18 @@ const oc = "http://json-schema.org/draft-07/schema#", ic = "http://json-schema.o
|
|
|
4481
4481
|
not: {
|
|
4482
4482
|
$ref: "#"
|
|
4483
4483
|
}
|
|
4484
|
-
},
|
|
4485
|
-
$schema:
|
|
4486
|
-
$id:
|
|
4487
|
-
title:
|
|
4488
|
-
definitions:
|
|
4489
|
-
type:
|
|
4490
|
-
properties:
|
|
4484
|
+
}, uc = {
|
|
4485
|
+
$schema: ac,
|
|
4486
|
+
$id: oc,
|
|
4487
|
+
title: ic,
|
|
4488
|
+
definitions: lc,
|
|
4489
|
+
type: dc,
|
|
4490
|
+
properties: cc,
|
|
4491
4491
|
default: !0
|
|
4492
4492
|
};
|
|
4493
4493
|
(function(e, t) {
|
|
4494
4494
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
4495
|
-
const n = Qn, r =
|
|
4495
|
+
const n = Qn, r = Ur, s = _n, a = uc, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
4496
4496
|
class d extends n.default {
|
|
4497
4497
|
_addVocabularies() {
|
|
4498
4498
|
super._addVocabularies(), r.default.forEach((_) => this.addVocabulary(_)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -4536,7 +4536,7 @@ const oc = "http://json-schema.org/draft-07/schema#", ic = "http://json-schema.o
|
|
|
4536
4536
|
} });
|
|
4537
4537
|
})(yr, yr.exports);
|
|
4538
4538
|
var Zs = yr.exports;
|
|
4539
|
-
const
|
|
4539
|
+
const fc = /* @__PURE__ */ Yn(Zs);
|
|
4540
4540
|
var Sr = { exports: {} }, Ys = {};
|
|
4541
4541
|
(function(e) {
|
|
4542
4542
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
@@ -4746,15 +4746,15 @@ var Qs = {};
|
|
|
4746
4746
|
}
|
|
4747
4747
|
e.exports = t = i, Object.defineProperty(t, "__esModule", { value: !0 }), t.default = i;
|
|
4748
4748
|
})(Sr, Sr.exports);
|
|
4749
|
-
var
|
|
4750
|
-
const
|
|
4749
|
+
var mc = Sr.exports;
|
|
4750
|
+
const hc = /* @__PURE__ */ Yn(mc);
|
|
4751
4751
|
class kt {
|
|
4752
4752
|
constructor() {
|
|
4753
|
-
this.validators = /* @__PURE__ */ new Map(), this.ajv = new
|
|
4753
|
+
this.validators = /* @__PURE__ */ new Map(), this.ajv = new fc({
|
|
4754
4754
|
allErrors: !0,
|
|
4755
4755
|
strict: !1,
|
|
4756
4756
|
validateFormats: !0
|
|
4757
|
-
}),
|
|
4757
|
+
}), hc(this.ajv), this.ajv.addFormat("textarea", () => !0), this.ajv.addFormat("password", () => !0);
|
|
4758
4758
|
}
|
|
4759
4759
|
/**
|
|
4760
4760
|
* Validate data against a JSON Schema
|
|
@@ -4899,40 +4899,40 @@ class kt {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
}
|
|
4901
4901
|
const Xs = Symbol("quickforms-context");
|
|
4902
|
-
function
|
|
4902
|
+
function pc(e) {
|
|
4903
4903
|
ta(Xs, e);
|
|
4904
4904
|
}
|
|
4905
4905
|
function ot() {
|
|
4906
4906
|
return ra(Xs, void 0);
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4908
|
+
function Se(e) {
|
|
4909
4909
|
return `field-${e.replace(/\./g, "-")}`;
|
|
4910
4910
|
}
|
|
4911
|
-
function
|
|
4911
|
+
function gm(e, t) {
|
|
4912
4912
|
return e.title || t.split(".").pop() || t;
|
|
4913
4913
|
}
|
|
4914
|
-
function
|
|
4914
|
+
function yc(e) {
|
|
4915
4915
|
const t = e["x-hint"];
|
|
4916
4916
|
return t || e.description;
|
|
4917
4917
|
}
|
|
4918
|
-
function
|
|
4918
|
+
function bm(e) {
|
|
4919
4919
|
return e == null ? !0 : typeof e == "string" ? e.trim() === "" : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4921
|
+
function $m(...e) {
|
|
4922
4922
|
return e.filter(Boolean).join(".");
|
|
4923
4923
|
}
|
|
4924
|
-
const
|
|
4925
|
-
function
|
|
4924
|
+
const Gn = new kt();
|
|
4925
|
+
function vc(e) {
|
|
4926
4926
|
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
|
|
4927
4927
|
}
|
|
4928
|
-
function
|
|
4928
|
+
function _c(e) {
|
|
4929
4929
|
try {
|
|
4930
4930
|
return new URL(e), !0;
|
|
4931
4931
|
} catch {
|
|
4932
4932
|
return !1;
|
|
4933
4933
|
}
|
|
4934
4934
|
}
|
|
4935
|
-
function
|
|
4935
|
+
function gc(e, t) {
|
|
4936
4936
|
let n = null;
|
|
4937
4937
|
return (...r) => new Promise((s) => {
|
|
4938
4938
|
n && clearTimeout(n), n = setTimeout(async () => {
|
|
@@ -4941,7 +4941,7 @@ function bc(e, t) {
|
|
|
4941
4941
|
}, t);
|
|
4942
4942
|
});
|
|
4943
4943
|
}
|
|
4944
|
-
function
|
|
4944
|
+
function Jn(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 _e(e, t, n = {}) {
|
|
@@ -4959,7 +4959,7 @@ function _e(e, t, n = {}) {
|
|
|
4959
4959
|
if (s === "NoValidation")
|
|
4960
4960
|
return !0;
|
|
4961
4961
|
const T = r == null ? void 0 : r.schema;
|
|
4962
|
-
if (T &&
|
|
4962
|
+
if (T && Gn.isRequired(T, e) && (M == null || M === ""))
|
|
4963
4963
|
return d(
|
|
4964
4964
|
"required",
|
|
4965
4965
|
`${t.title || e} is required`
|
|
@@ -4985,9 +4985,9 @@ function _e(e, t, n = {}) {
|
|
|
4985
4985
|
} catch {
|
|
4986
4986
|
console.warn("Invalid regex pattern:", t.pattern);
|
|
4987
4987
|
}
|
|
4988
|
-
if (t.format === "email" && !
|
|
4988
|
+
if (t.format === "email" && !vc(M))
|
|
4989
4989
|
return d("format", "Invalid email address");
|
|
4990
|
-
if ((t.format === "url" || t.format === "uri") && !
|
|
4990
|
+
if ((t.format === "url" || t.format === "uri") && !_c(M))
|
|
4991
4991
|
return d("format", "Invalid URL");
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
@@ -5039,12 +5039,12 @@ function _e(e, t, n = {}) {
|
|
|
5039
5039
|
if (z)
|
|
5040
5040
|
try {
|
|
5041
5041
|
const U = ((W = r == null ? void 0 : r.formValues) == null ? void 0 : W.call(r)) || {}, ne = (r == null ? void 0 : r.context) || {}, re = z(M, U, ne);
|
|
5042
|
-
return re instanceof Promise ? re.then(
|
|
5042
|
+
return re instanceof Promise ? re.then(Jn) : Jn(re);
|
|
5043
5043
|
} catch (U) {
|
|
5044
5044
|
return console.error("Custom validator error for", e, ":", U), "Validation error";
|
|
5045
5045
|
}
|
|
5046
5046
|
return !0;
|
|
5047
|
-
}, f = c(), b = f && (o != null && o[e]) ?
|
|
5047
|
+
}, f = c(), b = f && (o != null && o[e]) ? gc(u, f) : u, { value: $, errorMessage: _, errors: g, setValue: p, setTouched: m, meta: y } = ca(
|
|
5048
5048
|
e,
|
|
5049
5049
|
s === "NoValidation" ? void 0 : b,
|
|
5050
5050
|
{
|
|
@@ -5054,7 +5054,7 @@ function _e(e, t, n = {}) {
|
|
|
5054
5054
|
// Note: VeeValidate will still validate, we just control when errors are displayed
|
|
5055
5055
|
}
|
|
5056
5056
|
), k = G(() => n.label !== void 0 ? n.label : e === "__root__" ? t.title || "" : t.title || e), S = G(() => {
|
|
5057
|
-
const M =
|
|
5057
|
+
const M = yc(t);
|
|
5058
5058
|
if (M)
|
|
5059
5059
|
return r != null && r.hintRenderer ? r.hintRenderer(M, {
|
|
5060
5060
|
schema: t,
|
|
@@ -5067,7 +5067,7 @@ function _e(e, t, n = {}) {
|
|
|
5067
5067
|
return M || ((z = (T = r == null ? void 0 : r.componentDefaults) == null ? void 0 : T.hints) == null ? void 0 : z.showMode) || "always";
|
|
5068
5068
|
}), C = G(() => {
|
|
5069
5069
|
const M = r == null ? void 0 : r.schema;
|
|
5070
|
-
return M ?
|
|
5070
|
+
return M ? Gn.isRequired(M, e) : !1;
|
|
5071
5071
|
}), H = G(() => s === "ValidateAndHide" || s === "NoValidation" ? null : _.value);
|
|
5072
5072
|
return {
|
|
5073
5073
|
value: $,
|
|
@@ -5082,7 +5082,7 @@ function _e(e, t, n = {}) {
|
|
|
5082
5082
|
required: C
|
|
5083
5083
|
};
|
|
5084
5084
|
}
|
|
5085
|
-
const
|
|
5085
|
+
const bc = /* @__PURE__ */ me({
|
|
5086
5086
|
__name: "StringField",
|
|
5087
5087
|
props: {
|
|
5088
5088
|
schema: { type: Object, required: !0 },
|
|
@@ -5099,7 +5099,7 @@ const $c = /* @__PURE__ */ me({
|
|
|
5099
5099
|
n.path,
|
|
5100
5100
|
n.schema,
|
|
5101
5101
|
{ label: n.label }
|
|
5102
|
-
), u =
|
|
5102
|
+
), u = Se(n.path), f = ae(!1), b = ae(!1), $ = ae(!1), _ = G(() => n.schema.format === "password"), g = G(() => n.schema.format === "email" ? "email" : n.schema.format === "url" || n.schema.format === "uri" ? "url" : n.schema.format === "password" ? f.value ? "text" : "password" : "text"), p = G(() => n.schema.format === "textarea" || n.schema.maxLength && n.schema.maxLength > 200), m = () => {
|
|
5103
5103
|
f.value = !f.value;
|
|
5104
5104
|
}, y = G(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? b.value : c.value === "hover" ? $.value : !0), k = { props: n, formContext: r, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, showPassword: f, isFocused: b, isHovered: $, isPassword: _, inputType: g, isTextarea: p, togglePasswordVisibility: m, showHint: y };
|
|
5105
5105
|
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
@@ -5109,13 +5109,13 @@ const $c = /* @__PURE__ */ me({
|
|
|
5109
5109
|
for (const [r, s] of t)
|
|
5110
5110
|
n[r] = s;
|
|
5111
5111
|
return n;
|
|
5112
|
-
},
|
|
5112
|
+
}, $c = { class: "quickform-field quickform-string-field" }, wc = ["for"], kc = {
|
|
5113
5113
|
key: 0,
|
|
5114
5114
|
class: "quickform-required"
|
|
5115
|
-
},
|
|
5115
|
+
}, Sc = ["id", "disabled", "readonly", "placeholder", "minlength", "maxlength", "aria-describedby", "aria-invalid"], Ec = {
|
|
5116
5116
|
key: 1,
|
|
5117
5117
|
class: "quickform-input-wrapper"
|
|
5118
|
-
},
|
|
5118
|
+
}, Pc = ["id", "type", "disabled", "readonly", "placeholder", "minlength", "maxlength", "pattern", "aria-describedby", "aria-invalid"], Oc = ["aria-label"], jc = {
|
|
5119
5119
|
key: 0,
|
|
5120
5120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5121
5121
|
width: "20",
|
|
@@ -5126,7 +5126,7 @@ const $c = /* @__PURE__ */ me({
|
|
|
5126
5126
|
"stroke-width": "2",
|
|
5127
5127
|
"stroke-linecap": "round",
|
|
5128
5128
|
"stroke-linejoin": "round"
|
|
5129
|
-
},
|
|
5129
|
+
}, qc = {
|
|
5130
5130
|
key: 1,
|
|
5131
5131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5132
5132
|
width: "20",
|
|
@@ -5137,13 +5137,13 @@ const $c = /* @__PURE__ */ me({
|
|
|
5137
5137
|
"stroke-width": "2",
|
|
5138
5138
|
"stroke-linecap": "round",
|
|
5139
5139
|
"stroke-linejoin": "round"
|
|
5140
|
-
},
|
|
5140
|
+
}, Ic = ["id"], Nc = ["innerHTML"], Mc = {
|
|
5141
5141
|
key: 3,
|
|
5142
5142
|
class: "quickform-error"
|
|
5143
5143
|
};
|
|
5144
|
-
function
|
|
5144
|
+
function Tc(e, t, n, r, s, a) {
|
|
5145
5145
|
var o, i;
|
|
5146
|
-
return j(), I("div",
|
|
5146
|
+
return j(), I("div", $c, [
|
|
5147
5147
|
F("label", {
|
|
5148
5148
|
for: r.fieldId,
|
|
5149
5149
|
class: "quickform-label"
|
|
@@ -5153,9 +5153,9 @@ function Rc(e, t, n, r, s, a) {
|
|
|
5153
5153
|
1
|
|
5154
5154
|
/* TEXT */
|
|
5155
5155
|
),
|
|
5156
|
-
r.props.schema.required ? (j(), I("span",
|
|
5157
|
-
], 8,
|
|
5158
|
-
r.isTextarea ?
|
|
5156
|
+
r.props.schema.required ? (j(), I("span", kc, "*")) : V("v-if", !0)
|
|
5157
|
+
], 8, wc),
|
|
5158
|
+
r.isTextarea ? je((j(), I("textarea", {
|
|
5159
5159
|
key: 0,
|
|
5160
5160
|
id: r.fieldId,
|
|
5161
5161
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => r.value = d),
|
|
@@ -5171,14 +5171,14 @@ function Rc(e, t, n, r, s, a) {
|
|
|
5171
5171
|
onBlur: t[2] || (t[2] = (d) => r.isFocused = !1),
|
|
5172
5172
|
onMouseenter: t[3] || (t[3] = (d) => r.isHovered = !0),
|
|
5173
5173
|
onMouseleave: t[4] || (t[4] = (d) => r.isHovered = !1)
|
|
5174
|
-
}, null, 40,
|
|
5174
|
+
}, null, 40, Sc)), [
|
|
5175
5175
|
[vt, r.value]
|
|
5176
|
-
]) : (j(), I("div",
|
|
5177
|
-
|
|
5176
|
+
]) : (j(), I("div", Ec, [
|
|
5177
|
+
je(F("input", {
|
|
5178
5178
|
id: r.fieldId,
|
|
5179
5179
|
"onUpdate:modelValue": t[5] || (t[5] = (d) => r.value = d),
|
|
5180
5180
|
type: r.inputType,
|
|
5181
|
-
class:
|
|
5181
|
+
class: Er(["quickform-input", { "quickform-input-with-icon": r.isPassword }]),
|
|
5182
5182
|
disabled: n.disabled,
|
|
5183
5183
|
readonly: n.readonly,
|
|
5184
5184
|
placeholder: r.hint,
|
|
@@ -5191,8 +5191,8 @@ function Rc(e, t, n, r, s, a) {
|
|
|
5191
5191
|
onBlur: t[7] || (t[7] = (d) => r.isFocused = !1),
|
|
5192
5192
|
onMouseenter: t[8] || (t[8] = (d) => r.isHovered = !0),
|
|
5193
5193
|
onMouseleave: t[9] || (t[9] = (d) => r.isHovered = !1)
|
|
5194
|
-
}, null, 42,
|
|
5195
|
-
[
|
|
5194
|
+
}, null, 42, Pc), [
|
|
5195
|
+
[Pr, r.value]
|
|
5196
5196
|
]),
|
|
5197
5197
|
r.isPassword ? (j(), I("button", {
|
|
5198
5198
|
key: 0,
|
|
@@ -5201,7 +5201,7 @@ function Rc(e, t, n, r, s, a) {
|
|
|
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 ? (j(), I("svg",
|
|
5204
|
+
r.showPassword ? (j(), I("svg", jc, [...t[10] || (t[10] = [
|
|
5205
5205
|
F(
|
|
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 Rc(e, t, n, r, s, a) {
|
|
|
5221
5221
|
-1
|
|
5222
5222
|
/* CACHED */
|
|
5223
5223
|
)
|
|
5224
|
-
])])) : (j(), I("svg",
|
|
5224
|
+
])])) : (j(), I("svg", qc, [...t[11] || (t[11] = [
|
|
5225
5225
|
F(
|
|
5226
5226
|
"path",
|
|
5227
5227
|
{ d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" },
|
|
@@ -5241,25 +5241,25 @@ function Rc(e, t, n, r, s, a) {
|
|
|
5241
5241
|
/* CACHED */
|
|
5242
5242
|
)
|
|
5243
5243
|
])]))
|
|
5244
|
-
], 8,
|
|
5244
|
+
], 8, Oc)) : V("v-if", !0)
|
|
5245
5245
|
])),
|
|
5246
5246
|
r.showHint ? (j(), I("div", {
|
|
5247
5247
|
key: 2,
|
|
5248
5248
|
id: `${r.fieldId}-hint`,
|
|
5249
5249
|
class: "quickform-hint"
|
|
5250
5250
|
}, [
|
|
5251
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5252
|
-
], 8,
|
|
5251
|
+
F("span", { innerHTML: r.hint }, null, 8, Nc)
|
|
5252
|
+
], 8, Ic)) : V("v-if", !0),
|
|
5253
5253
|
r.errorMessage ? (j(), I(
|
|
5254
5254
|
"div",
|
|
5255
|
-
|
|
5255
|
+
Mc,
|
|
5256
5256
|
X(r.errorMessage),
|
|
5257
5257
|
1
|
|
5258
5258
|
/* TEXT */
|
|
5259
5259
|
)) : V("v-if", !0)
|
|
5260
5260
|
]);
|
|
5261
5261
|
}
|
|
5262
|
-
const
|
|
5262
|
+
const Rc = /* @__PURE__ */ he(bc, [["render", Tc], ["__scopeId", "data-v-ad9ab1f4"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/StringField.vue"]]), Ac = /* @__PURE__ */ me({
|
|
5263
5263
|
__name: "NumberField",
|
|
5264
5264
|
props: {
|
|
5265
5265
|
schema: { type: Object, required: !0 },
|
|
@@ -5272,18 +5272,18 @@ const Ac = /* @__PURE__ */ he($c, [["render", Rc], ["__scopeId", "data-v-ad9ab1f
|
|
|
5272
5272
|
},
|
|
5273
5273
|
setup(e, { expose: t }) {
|
|
5274
5274
|
t();
|
|
5275
|
-
const n = e, r = ot(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = _e(n.path, n.schema, { label: n.label }), u =
|
|
5275
|
+
const n = e, r = ot(), s = (r == null ? void 0 : r.validationMode) || "ValidateAndShow", { value: a, errorMessage: o, label: i, hint: d, hintMode: c } = _e(n.path, n.schema, { label: n.label }), u = Se(n.path), f = ae(!1), b = ae(!1), $ = G(() => (n.schema.type === "integer", "number")), _ = G(() => n.schema.multipleOf ? n.schema.multipleOf : n.schema.type === "integer" ? 1 : "any"), g = G(() => !d.value || o.value ? !1 : c.value === "always" ? !0 : c.value === "focus" ? f.value : c.value === "hover" ? b.value : !0), p = { props: n, formContext: r, validationMode: s, value: a, errorMessage: o, label: i, hint: d, hintMode: c, fieldId: u, isFocused: f, isHovered: b, inputType: $, step: _, showHint: g };
|
|
5276
5276
|
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
5277
5277
|
}
|
|
5278
|
-
}),
|
|
5278
|
+
}), Fc = { class: "quickform-field quickform-number-field" }, Cc = ["for"], Dc = {
|
|
5279
5279
|
key: 0,
|
|
5280
5280
|
class: "quickform-required"
|
|
5281
|
-
},
|
|
5281
|
+
}, Vc = ["id", "type", "disabled", "readonly", "placeholder", "min", "max", "step", "aria-describedby", "aria-invalid"], zc = ["id"], Uc = ["innerHTML"], Lc = {
|
|
5282
5282
|
key: 1,
|
|
5283
5283
|
class: "quickform-error"
|
|
5284
5284
|
};
|
|
5285
|
-
function
|
|
5286
|
-
return j(), I("div",
|
|
5285
|
+
function Hc(e, t, n, r, s, a) {
|
|
5286
|
+
return j(), I("div", Fc, [
|
|
5287
5287
|
F("label", {
|
|
5288
5288
|
for: r.fieldId,
|
|
5289
5289
|
class: "quickform-label"
|
|
@@ -5293,9 +5293,9 @@ function Kc(e, t, n, r, s, a) {
|
|
|
5293
5293
|
1
|
|
5294
5294
|
/* TEXT */
|
|
5295
5295
|
),
|
|
5296
|
-
r.props.schema.required ? (j(), I("span",
|
|
5297
|
-
], 8,
|
|
5298
|
-
|
|
5296
|
+
r.props.schema.required ? (j(), I("span", Dc, "*")) : V("v-if", !0)
|
|
5297
|
+
], 8, Cc),
|
|
5298
|
+
je(F("input", {
|
|
5299
5299
|
id: r.fieldId,
|
|
5300
5300
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
5301
5301
|
type: r.inputType,
|
|
@@ -5312,9 +5312,9 @@ function Kc(e, t, n, r, s, a) {
|
|
|
5312
5312
|
onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
|
|
5313
5313
|
onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
|
|
5314
5314
|
onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
|
|
5315
|
-
}, null, 40,
|
|
5315
|
+
}, null, 40, Vc), [
|
|
5316
5316
|
[
|
|
5317
|
-
|
|
5317
|
+
Pr,
|
|
5318
5318
|
r.value,
|
|
5319
5319
|
void 0,
|
|
5320
5320
|
{ number: !0 }
|
|
@@ -5325,18 +5325,18 @@ function Kc(e, t, n, r, s, a) {
|
|
|
5325
5325
|
id: `${r.fieldId}-hint`,
|
|
5326
5326
|
class: "quickform-hint"
|
|
5327
5327
|
}, [
|
|
5328
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5329
|
-
], 8,
|
|
5328
|
+
F("span", { innerHTML: r.hint }, null, 8, Uc)
|
|
5329
|
+
], 8, zc)) : V("v-if", !0),
|
|
5330
5330
|
r.errorMessage ? (j(), I(
|
|
5331
5331
|
"div",
|
|
5332
|
-
|
|
5332
|
+
Lc,
|
|
5333
5333
|
X(r.errorMessage),
|
|
5334
5334
|
1
|
|
5335
5335
|
/* TEXT */
|
|
5336
5336
|
)) : V("v-if", !0)
|
|
5337
5337
|
]);
|
|
5338
5338
|
}
|
|
5339
|
-
const
|
|
5339
|
+
const Kc = /* @__PURE__ */ he(Ac, [["render", Hc], ["__scopeId", "data-v-7def4a8b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/NumberField.vue"]]), Bc = /* @__PURE__ */ me({
|
|
5340
5340
|
__name: "BooleanField",
|
|
5341
5341
|
props: {
|
|
5342
5342
|
schema: { type: Object, required: !0 },
|
|
@@ -5349,25 +5349,25 @@ const Bc = /* @__PURE__ */ he(Fc, [["render", Kc], ["__scopeId", "data-v-7def4a8
|
|
|
5349
5349
|
},
|
|
5350
5350
|
setup(e, { expose: t }) {
|
|
5351
5351
|
t();
|
|
5352
|
-
const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d =
|
|
5352
|
+
const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d = Se(n.path), c = ae(!1), u = ae(!1), f = G(() => !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
|
-
}),
|
|
5355
|
+
}), Gc = { class: "quickform-field quickform-boolean-field" }, Jc = ["for"], xc = ["id", "disabled", "readonly", "aria-describedby", "aria-invalid"], Wc = { class: "quickform-checkbox-text" }, Zc = {
|
|
5356
5356
|
key: 0,
|
|
5357
5357
|
class: "quickform-required"
|
|
5358
|
-
},
|
|
5358
|
+
}, Yc = ["id"], Qc = ["innerHTML"], Xc = {
|
|
5359
5359
|
key: 1,
|
|
5360
5360
|
class: "quickform-error"
|
|
5361
5361
|
};
|
|
5362
|
-
function
|
|
5363
|
-
return j(), I("div",
|
|
5362
|
+
function eu(e, t, n, r, s, a) {
|
|
5363
|
+
return j(), I("div", Gc, [
|
|
5364
5364
|
F("label", {
|
|
5365
5365
|
for: r.fieldId,
|
|
5366
5366
|
class: "quickform-checkbox-label",
|
|
5367
5367
|
onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
|
|
5368
5368
|
onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
|
|
5369
5369
|
}, [
|
|
5370
|
-
|
|
5370
|
+
je(F("input", {
|
|
5371
5371
|
id: r.fieldId,
|
|
5372
5372
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
5373
5373
|
type: "checkbox",
|
|
@@ -5378,35 +5378,35 @@ function tu(e, t, n, r, s, a) {
|
|
|
5378
5378
|
"aria-invalid": !!r.errorMessage,
|
|
5379
5379
|
onFocus: t[1] || (t[1] = (o) => r.isFocused = !0),
|
|
5380
5380
|
onBlur: t[2] || (t[2] = (o) => r.isFocused = !1)
|
|
5381
|
-
}, null, 40,
|
|
5381
|
+
}, null, 40, xc), [
|
|
5382
5382
|
[na, r.value]
|
|
5383
5383
|
]),
|
|
5384
|
-
F("span",
|
|
5384
|
+
F("span", Wc, [
|
|
5385
5385
|
qe(
|
|
5386
5386
|
X(r.label) + " ",
|
|
5387
5387
|
1
|
|
5388
5388
|
/* TEXT */
|
|
5389
5389
|
),
|
|
5390
|
-
r.props.schema.required ? (j(), I("span",
|
|
5390
|
+
r.props.schema.required ? (j(), I("span", Zc, "*")) : V("v-if", !0)
|
|
5391
5391
|
])
|
|
5392
|
-
], 40,
|
|
5392
|
+
], 40, Jc),
|
|
5393
5393
|
r.showHint ? (j(), I("div", {
|
|
5394
5394
|
key: 0,
|
|
5395
5395
|
id: `${r.fieldId}-hint`,
|
|
5396
5396
|
class: "quickform-hint"
|
|
5397
5397
|
}, [
|
|
5398
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5399
|
-
], 8,
|
|
5398
|
+
F("span", { innerHTML: r.hint }, null, 8, Qc)
|
|
5399
|
+
], 8, Yc)) : V("v-if", !0),
|
|
5400
5400
|
r.errorMessage ? (j(), I(
|
|
5401
5401
|
"div",
|
|
5402
|
-
|
|
5402
|
+
Xc,
|
|
5403
5403
|
X(r.errorMessage),
|
|
5404
5404
|
1
|
|
5405
5405
|
/* TEXT */
|
|
5406
5406
|
)) : V("v-if", !0)
|
|
5407
5407
|
]);
|
|
5408
5408
|
}
|
|
5409
|
-
const
|
|
5409
|
+
const tu = /* @__PURE__ */ he(Bc, [["render", eu], ["__scopeId", "data-v-1ff012c7"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/BooleanField.vue"]]), ru = /* @__PURE__ */ me({
|
|
5410
5410
|
__name: "EnumField",
|
|
5411
5411
|
props: {
|
|
5412
5412
|
schema: { type: Object, required: !0 },
|
|
@@ -5423,7 +5423,7 @@ const ru = /* @__PURE__ */ he(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c
|
|
|
5423
5423
|
n.path,
|
|
5424
5424
|
n.schema,
|
|
5425
5425
|
{ label: n.label }
|
|
5426
|
-
), d = ot(), c =
|
|
5426
|
+
), d = ot(), c = Se(n.path), u = `${c}-datalist`, f = ae(!1), b = ae(!1), $ = G(() => {
|
|
5427
5427
|
if (!n.schema.enum) return [];
|
|
5428
5428
|
const y = n.schema["x-enum-labels"];
|
|
5429
5429
|
return n.schema.enum.map((k) => {
|
|
@@ -5446,15 +5446,15 @@ const ru = /* @__PURE__ */ he(Gc, [["render", tu], ["__scopeId", "data-v-1ff012c
|
|
|
5446
5446
|
}), p = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? f.value : i.value === "hover" ? b.value : !0), m = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, formContext: d, fieldId: c, datalistId: u, isFocused: f, isHovered: b, options: $, useAutocomplete: _, placeholder: g, showHint: p };
|
|
5447
5447
|
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
5448
5448
|
}
|
|
5449
|
-
}),
|
|
5449
|
+
}), nu = { class: "quickform-field quickform-enum-field" }, su = ["for"], au = {
|
|
5450
5450
|
key: 0,
|
|
5451
5451
|
class: "quickform-required"
|
|
5452
|
-
},
|
|
5452
|
+
}, ou = ["id", "disabled", "placeholder", "aria-describedby", "aria-invalid"], iu = ["value"], lu = ["id", "disabled", "aria-describedby", "aria-invalid"], du = { value: "" }, cu = ["value"], uu = ["id"], fu = ["innerHTML"], mu = {
|
|
5453
5453
|
key: 3,
|
|
5454
5454
|
class: "quickform-error"
|
|
5455
5455
|
};
|
|
5456
|
-
function
|
|
5457
|
-
return j(), I("div",
|
|
5456
|
+
function hu(e, t, n, r, s, a) {
|
|
5457
|
+
return j(), I("div", nu, [
|
|
5458
5458
|
F("label", {
|
|
5459
5459
|
for: r.fieldId,
|
|
5460
5460
|
class: "quickform-label"
|
|
@@ -5464,10 +5464,10 @@ function pu(e, t, n, r, s, a) {
|
|
|
5464
5464
|
1
|
|
5465
5465
|
/* TEXT */
|
|
5466
5466
|
),
|
|
5467
|
-
r.props.schema.required ? (j(), I("span",
|
|
5468
|
-
], 8,
|
|
5467
|
+
r.props.schema.required ? (j(), I("span", au, "*")) : V("v-if", !0)
|
|
5468
|
+
], 8, su),
|
|
5469
5469
|
V(" Use datalist for autocomplete when enabled "),
|
|
5470
|
-
r.useAutocomplete ?
|
|
5470
|
+
r.useAutocomplete ? je((j(), I("input", {
|
|
5471
5471
|
key: 0,
|
|
5472
5472
|
id: r.fieldId,
|
|
5473
5473
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
@@ -5481,23 +5481,23 @@ function pu(e, t, n, r, s, a) {
|
|
|
5481
5481
|
onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
|
|
5482
5482
|
onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
|
|
5483
5483
|
onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
|
|
5484
|
-
}, null, 40,
|
|
5484
|
+
}, null, 40, ou)), [
|
|
5485
5485
|
[vt, r.value]
|
|
5486
5486
|
]) : V("v-if", !0),
|
|
5487
5487
|
F("datalist", { id: r.datalistId }, [
|
|
5488
5488
|
(j(!0), I(
|
|
5489
|
-
|
|
5489
|
+
ke,
|
|
5490
5490
|
null,
|
|
5491
5491
|
He(r.options, (o) => (j(), I("option", {
|
|
5492
5492
|
key: String(o.value),
|
|
5493
5493
|
value: o.value
|
|
5494
|
-
}, X(o.label), 9,
|
|
5494
|
+
}, X(o.label), 9, iu))),
|
|
5495
5495
|
128
|
|
5496
5496
|
/* KEYED_FRAGMENT */
|
|
5497
5497
|
))
|
|
5498
5498
|
]),
|
|
5499
5499
|
V(" Use regular select when autocomplete disabled "),
|
|
5500
|
-
r.useAutocomplete ? V("v-if", !0) :
|
|
5500
|
+
r.useAutocomplete ? V("v-if", !0) : je((j(), I("select", {
|
|
5501
5501
|
key: 1,
|
|
5502
5502
|
id: r.fieldId,
|
|
5503
5503
|
"onUpdate:modelValue": t[5] || (t[5] = (o) => r.value = o),
|
|
@@ -5512,22 +5512,22 @@ function pu(e, t, n, r, s, a) {
|
|
|
5512
5512
|
}, [
|
|
5513
5513
|
F(
|
|
5514
5514
|
"option",
|
|
5515
|
-
|
|
5515
|
+
du,
|
|
5516
5516
|
X(r.placeholder),
|
|
5517
5517
|
1
|
|
5518
5518
|
/* TEXT */
|
|
5519
5519
|
),
|
|
5520
5520
|
(j(!0), I(
|
|
5521
|
-
|
|
5521
|
+
ke,
|
|
5522
5522
|
null,
|
|
5523
5523
|
He(r.options, (o) => (j(), I("option", {
|
|
5524
5524
|
key: String(o.value),
|
|
5525
5525
|
value: o.value
|
|
5526
|
-
}, X(o.label), 9,
|
|
5526
|
+
}, X(o.label), 9, cu))),
|
|
5527
5527
|
128
|
|
5528
5528
|
/* KEYED_FRAGMENT */
|
|
5529
5529
|
))
|
|
5530
|
-
], 40,
|
|
5530
|
+
], 40, lu)), [
|
|
5531
5531
|
[sa, r.value]
|
|
5532
5532
|
]),
|
|
5533
5533
|
r.showHint ? (j(), I("div", {
|
|
@@ -5535,18 +5535,18 @@ function pu(e, t, n, r, s, a) {
|
|
|
5535
5535
|
id: `${r.fieldId}-hint`,
|
|
5536
5536
|
class: "quickform-hint"
|
|
5537
5537
|
}, [
|
|
5538
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5539
|
-
], 8,
|
|
5538
|
+
F("span", { innerHTML: r.hint }, null, 8, fu)
|
|
5539
|
+
], 8, uu)) : V("v-if", !0),
|
|
5540
5540
|
r.errorMessage ? (j(), I(
|
|
5541
5541
|
"div",
|
|
5542
|
-
|
|
5542
|
+
mu,
|
|
5543
5543
|
X(r.errorMessage),
|
|
5544
5544
|
1
|
|
5545
5545
|
/* TEXT */
|
|
5546
5546
|
)) : V("v-if", !0)
|
|
5547
5547
|
]);
|
|
5548
5548
|
}
|
|
5549
|
-
const
|
|
5549
|
+
const pu = /* @__PURE__ */ he(ru, [["render", hu], ["__scopeId", "data-v-666cc49b"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/EnumField.vue"]]), yu = /* @__PURE__ */ me({
|
|
5550
5550
|
__name: "DateField",
|
|
5551
5551
|
props: {
|
|
5552
5552
|
schema: { type: Object, required: !0 },
|
|
@@ -5559,18 +5559,18 @@ const yu = /* @__PURE__ */ he(nu, [["render", pu], ["__scopeId", "data-v-666cc49
|
|
|
5559
5559
|
},
|
|
5560
5560
|
setup(e, { expose: t }) {
|
|
5561
5561
|
t();
|
|
5562
|
-
const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d =
|
|
5562
|
+
const n = e, { value: r, errorMessage: s, label: a, hint: o, hintMode: i } = _e(n.path, n.schema, { label: n.label }), d = Se(n.path), c = ae(!1), u = ae(!1), f = G(() => n.schema.format === "time" ? "time" : n.schema.format === "date-time" ? "datetime-local" : "date"), b = G(() => !o.value || s.value ? !1 : i.value === "always" ? !0 : i.value === "focus" ? c.value : i.value === "hover" ? u.value : !0), $ = { props: n, value: r, errorMessage: s, label: a, hint: o, hintMode: i, fieldId: d, isFocused: c, isHovered: u, inputType: f, showHint: b };
|
|
5563
5563
|
return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
|
|
5564
5564
|
}
|
|
5565
|
-
}),
|
|
5565
|
+
}), vu = { class: "quickform-field quickform-date-field" }, _u = ["for"], gu = {
|
|
5566
5566
|
key: 0,
|
|
5567
5567
|
class: "quickform-required"
|
|
5568
|
-
},
|
|
5568
|
+
}, bu = ["id", "type", "disabled", "readonly", "aria-describedby", "aria-invalid"], $u = ["id"], wu = ["innerHTML"], ku = {
|
|
5569
5569
|
key: 1,
|
|
5570
5570
|
class: "quickform-error"
|
|
5571
5571
|
};
|
|
5572
|
-
function
|
|
5573
|
-
return j(), I("div",
|
|
5572
|
+
function Su(e, t, n, r, s, a) {
|
|
5573
|
+
return j(), I("div", vu, [
|
|
5574
5574
|
F("label", {
|
|
5575
5575
|
for: r.fieldId,
|
|
5576
5576
|
class: "quickform-label"
|
|
@@ -5580,9 +5580,9 @@ function Eu(e, t, n, r, s, a) {
|
|
|
5580
5580
|
1
|
|
5581
5581
|
/* TEXT */
|
|
5582
5582
|
),
|
|
5583
|
-
r.props.schema.required ? (j(), I("span",
|
|
5584
|
-
], 8,
|
|
5585
|
-
|
|
5583
|
+
r.props.schema.required ? (j(), I("span", gu, "*")) : V("v-if", !0)
|
|
5584
|
+
], 8, _u),
|
|
5585
|
+
je(F("input", {
|
|
5586
5586
|
id: r.fieldId,
|
|
5587
5587
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.value = o),
|
|
5588
5588
|
type: r.inputType,
|
|
@@ -5595,26 +5595,26 @@ function Eu(e, t, n, r, s, a) {
|
|
|
5595
5595
|
onBlur: t[2] || (t[2] = (o) => r.isFocused = !1),
|
|
5596
5596
|
onMouseenter: t[3] || (t[3] = (o) => r.isHovered = !0),
|
|
5597
5597
|
onMouseleave: t[4] || (t[4] = (o) => r.isHovered = !1)
|
|
5598
|
-
}, null, 40,
|
|
5599
|
-
[
|
|
5598
|
+
}, null, 40, bu), [
|
|
5599
|
+
[Pr, r.value]
|
|
5600
5600
|
]),
|
|
5601
5601
|
r.showHint ? (j(), I("div", {
|
|
5602
5602
|
key: 0,
|
|
5603
5603
|
id: `${r.fieldId}-hint`,
|
|
5604
5604
|
class: "quickform-hint"
|
|
5605
5605
|
}, [
|
|
5606
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5607
|
-
], 8,
|
|
5606
|
+
F("span", { innerHTML: r.hint }, null, 8, wu)
|
|
5607
|
+
], 8, $u)) : V("v-if", !0),
|
|
5608
5608
|
r.errorMessage ? (j(), I(
|
|
5609
5609
|
"div",
|
|
5610
|
-
|
|
5610
|
+
ku,
|
|
5611
5611
|
X(r.errorMessage),
|
|
5612
5612
|
1
|
|
5613
5613
|
/* TEXT */
|
|
5614
5614
|
)) : V("v-if", !0)
|
|
5615
5615
|
]);
|
|
5616
5616
|
}
|
|
5617
|
-
const
|
|
5617
|
+
const Eu = /* @__PURE__ */ he(yu, [["render", Su], ["__scopeId", "data-v-e0ddab64"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DateField.vue"]]), Pu = /* @__PURE__ */ me({
|
|
5618
5618
|
__name: "FieldRenderer",
|
|
5619
5619
|
props: {
|
|
5620
5620
|
schema: { type: Object, required: !0 },
|
|
@@ -5657,18 +5657,18 @@ const Pu = /* @__PURE__ */ he(vu, [["render", Eu], ["__scopeId", "data-v-e0ddab6
|
|
|
5657
5657
|
}), i = { props: n, context: r, isVisible: s, isFieldReadonly: a, component: o };
|
|
5658
5658
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
5659
5659
|
}
|
|
5660
|
-
}),
|
|
5660
|
+
}), Ou = {
|
|
5661
5661
|
key: 1,
|
|
5662
5662
|
class: "quickform-no-renderer"
|
|
5663
5663
|
};
|
|
5664
|
-
function
|
|
5664
|
+
function ju(e, t, n, r, s, a) {
|
|
5665
5665
|
return j(), I(
|
|
5666
|
-
|
|
5666
|
+
ke,
|
|
5667
5667
|
null,
|
|
5668
5668
|
[
|
|
5669
5669
|
V(" Only render if visible "),
|
|
5670
5670
|
r.isVisible ? (j(), I(
|
|
5671
|
-
|
|
5671
|
+
ke,
|
|
5672
5672
|
{ key: 0 },
|
|
5673
5673
|
[
|
|
5674
5674
|
r.component ? (j(), _t(aa(r.component), {
|
|
@@ -5679,7 +5679,7 @@ function qu(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"])) : (j(), I("div",
|
|
5682
|
+
}, null, 8, ["schema", "uischema", "path", "label", "disabled", "readonly"])) : (j(), I("div", Ou, [
|
|
5683
5683
|
F(
|
|
5684
5684
|
"p",
|
|
5685
5685
|
null,
|
|
@@ -5704,7 +5704,7 @@ function qu(e, t, n, r, s, a) {
|
|
|
5704
5704
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
5705
5705
|
);
|
|
5706
5706
|
}
|
|
5707
|
-
const St = /* @__PURE__ */ he(
|
|
5707
|
+
const St = /* @__PURE__ */ he(Pu, [["render", ju], ["__scopeId", "data-v-abf28e2e"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/FieldRenderer.vue"]]), qu = /* @__PURE__ */ me({
|
|
5708
5708
|
__name: "ObjectField",
|
|
5709
5709
|
props: {
|
|
5710
5710
|
schema: { type: Object, required: !0 },
|
|
@@ -5717,48 +5717,48 @@ const St = /* @__PURE__ */ he(Ou, [["render", qu], ["__scopeId", "data-v-abf28e2
|
|
|
5717
5717
|
},
|
|
5718
5718
|
setup(e, { expose: t }) {
|
|
5719
5719
|
t();
|
|
5720
|
-
const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o =
|
|
5720
|
+
const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o = Se(n.path), i = G(() => n.schema.properties ? Object.entries(n.schema.properties).map(([c, u]) => ({
|
|
5721
5721
|
key: c,
|
|
5722
5722
|
schema: u,
|
|
5723
5723
|
path: n.path ? `${n.path}.${c}` : c
|
|
5724
5724
|
})) : []), d = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, properties: i, FieldRenderer: St };
|
|
5725
5725
|
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
5726
5726
|
}
|
|
5727
|
-
}),
|
|
5727
|
+
}), Iu = { class: "quickform-field quickform-object-field" }, Nu = ["id", "aria-describedby"], Mu = {
|
|
5728
5728
|
key: 0,
|
|
5729
5729
|
class: "quickform-legend"
|
|
5730
|
-
},
|
|
5730
|
+
}, Tu = {
|
|
5731
5731
|
key: 0,
|
|
5732
5732
|
class: "quickform-required"
|
|
5733
|
-
},
|
|
5733
|
+
}, Ru = ["id"], Au = ["innerHTML"], Fu = { class: "quickform-object-content" }, Cu = {
|
|
5734
5734
|
key: 2,
|
|
5735
5735
|
class: "quickform-error"
|
|
5736
5736
|
};
|
|
5737
|
-
function
|
|
5738
|
-
return j(), I("div",
|
|
5737
|
+
function Du(e, t, n, r, s, a) {
|
|
5738
|
+
return j(), I("div", Iu, [
|
|
5739
5739
|
F("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 ? (j(), I("legend",
|
|
5744
|
+
r.label ? (j(), I("legend", Mu, [
|
|
5745
5745
|
qe(
|
|
5746
5746
|
X(r.label) + " ",
|
|
5747
5747
|
1
|
|
5748
5748
|
/* TEXT */
|
|
5749
5749
|
),
|
|
5750
|
-
r.props.schema.required ? (j(), I("span",
|
|
5750
|
+
r.props.schema.required ? (j(), I("span", Tu, "*")) : V("v-if", !0)
|
|
5751
5751
|
])) : V("v-if", !0),
|
|
5752
5752
|
r.hint ? (j(), I("div", {
|
|
5753
5753
|
key: 1,
|
|
5754
5754
|
id: `${r.fieldId}-hint`,
|
|
5755
5755
|
class: "quickform-hint quickform-object-hint"
|
|
5756
5756
|
}, [
|
|
5757
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5758
|
-
], 8,
|
|
5759
|
-
F("div",
|
|
5757
|
+
F("span", { innerHTML: r.hint }, null, 8, Au)
|
|
5758
|
+
], 8, Ru)) : V("v-if", !0),
|
|
5759
|
+
F("div", Fu, [
|
|
5760
5760
|
(j(!0), I(
|
|
5761
|
-
|
|
5761
|
+
ke,
|
|
5762
5762
|
null,
|
|
5763
5763
|
He(r.properties, (o) => (j(), _t(r.FieldRenderer, {
|
|
5764
5764
|
key: o.key,
|
|
@@ -5773,15 +5773,15 @@ function Vu(e, t, n, r, s, a) {
|
|
|
5773
5773
|
]),
|
|
5774
5774
|
r.errorMessage ? (j(), I(
|
|
5775
5775
|
"div",
|
|
5776
|
-
|
|
5776
|
+
Cu,
|
|
5777
5777
|
X(r.errorMessage),
|
|
5778
5778
|
1
|
|
5779
5779
|
/* TEXT */
|
|
5780
5780
|
)) : V("v-if", !0)
|
|
5781
|
-
], 8,
|
|
5781
|
+
], 8, Nu)
|
|
5782
5782
|
]);
|
|
5783
5783
|
}
|
|
5784
|
-
const
|
|
5784
|
+
const Vu = /* @__PURE__ */ he(qu, [["render", Du], ["__scopeId", "data-v-8012fc15"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ObjectField.vue"]]), zu = /* @__PURE__ */ me({
|
|
5785
5785
|
__name: "ArrayField",
|
|
5786
5786
|
props: {
|
|
5787
5787
|
schema: { type: Object, required: !0 },
|
|
@@ -5798,7 +5798,7 @@ const zu = /* @__PURE__ */ he(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc1
|
|
|
5798
5798
|
n.path,
|
|
5799
5799
|
n.schema,
|
|
5800
5800
|
{ label: n.label }
|
|
5801
|
-
), i = ot(), d =
|
|
5801
|
+
), i = ot(), d = Se(n.path), c = new kt(), u = G({
|
|
5802
5802
|
get: () => Array.isArray(r.value) ? r.value : [],
|
|
5803
5803
|
set: (k) => r.value = k
|
|
5804
5804
|
}), f = G(() => Array.isArray(n.schema.items) ? n.schema.items[0] : n.schema.items), b = () => {
|
|
@@ -5832,50 +5832,50 @@ const zu = /* @__PURE__ */ he(Iu, [["render", Vu], ["__scopeId", "data-v-8012fc1
|
|
|
5832
5832
|
}, FieldRenderer: St };
|
|
5833
5833
|
return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
|
|
5834
5834
|
}
|
|
5835
|
-
}),
|
|
5835
|
+
}), Uu = { class: "quickform-field quickform-array-field" }, Lu = ["id", "aria-describedby"], Hu = {
|
|
5836
5836
|
key: 0,
|
|
5837
5837
|
class: "quickform-legend"
|
|
5838
|
-
},
|
|
5838
|
+
}, Ku = {
|
|
5839
5839
|
key: 0,
|
|
5840
5840
|
class: "quickform-required"
|
|
5841
|
-
},
|
|
5841
|
+
}, Bu = ["id"], Gu = ["innerHTML"], Ju = { class: "quickform-array-items" }, xu = { class: "quickform-array-item-content" }, Wu = { class: "quickform-array-item-actions" }, Zu = ["disabled", "onClick"], Yu = ["disabled", "onClick"], Qu = ["disabled", "onClick", "title"], Xu = {
|
|
5842
5842
|
key: 0,
|
|
5843
5843
|
class: "quickform-array-empty"
|
|
5844
|
-
},
|
|
5844
|
+
}, ef = { class: "quickform-array-footer" }, tf = ["disabled"], rf = {
|
|
5845
5845
|
key: 2,
|
|
5846
5846
|
class: "quickform-error"
|
|
5847
5847
|
};
|
|
5848
|
-
function
|
|
5849
|
-
return j(), I("div",
|
|
5848
|
+
function nf(e, t, n, r, s, a) {
|
|
5849
|
+
return j(), I("div", Uu, [
|
|
5850
5850
|
F("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 ? (j(), I("legend",
|
|
5855
|
+
r.label ? (j(), I("legend", Hu, [
|
|
5856
5856
|
qe(
|
|
5857
5857
|
X(r.label) + " ",
|
|
5858
5858
|
1
|
|
5859
5859
|
/* TEXT */
|
|
5860
5860
|
),
|
|
5861
|
-
r.props.schema.required ? (j(), I("span",
|
|
5861
|
+
r.props.schema.required ? (j(), I("span", Ku, "*")) : V("v-if", !0)
|
|
5862
5862
|
])) : V("v-if", !0),
|
|
5863
5863
|
r.hint ? (j(), I("div", {
|
|
5864
5864
|
key: 1,
|
|
5865
5865
|
id: `${r.fieldId}-hint`,
|
|
5866
5866
|
class: "quickform-hint quickform-array-hint"
|
|
5867
5867
|
}, [
|
|
5868
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
5869
|
-
], 8,
|
|
5870
|
-
F("div",
|
|
5868
|
+
F("span", { innerHTML: r.hint }, null, 8, Gu)
|
|
5869
|
+
], 8, Bu)) : V("v-if", !0),
|
|
5870
|
+
F("div", Ju, [
|
|
5871
5871
|
(j(!0), I(
|
|
5872
|
-
|
|
5872
|
+
ke,
|
|
5873
5873
|
null,
|
|
5874
5874
|
He(r.arrayValue, (o, i) => (j(), I("div", {
|
|
5875
5875
|
key: i,
|
|
5876
5876
|
class: "quickform-array-item"
|
|
5877
5877
|
}, [
|
|
5878
|
-
F("div",
|
|
5878
|
+
F("div", xu, [
|
|
5879
5879
|
Wn(r.FieldRenderer, {
|
|
5880
5880
|
schema: r.itemsSchema,
|
|
5881
5881
|
path: `${n.path}[${i}]`,
|
|
@@ -5884,54 +5884,54 @@ function sf(e, t, n, r, s, a) {
|
|
|
5884
5884
|
readonly: n.readonly
|
|
5885
5885
|
}, null, 8, ["schema", "path", "label", "disabled", "readonly"])
|
|
5886
5886
|
]),
|
|
5887
|
-
F("div",
|
|
5887
|
+
F("div", Wu, [
|
|
5888
5888
|
F("button", {
|
|
5889
5889
|
type: "button",
|
|
5890
5890
|
class: "quickform-btn-icon",
|
|
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, Zu),
|
|
5895
5895
|
F("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, Yu),
|
|
5902
5902
|
F("button", {
|
|
5903
5903
|
type: "button",
|
|
5904
5904
|
class: "quickform-btn-icon quickform-btn-danger",
|
|
5905
5905
|
disabled: !r.canRemove,
|
|
5906
5906
|
onClick: (d) => r.removeItem(i),
|
|
5907
5907
|
title: r.formContext.labels.removeItem
|
|
5908
|
-
}, " × ", 8,
|
|
5908
|
+
}, " × ", 8, Qu)
|
|
5909
5909
|
])
|
|
5910
5910
|
]))),
|
|
5911
5911
|
128
|
|
5912
5912
|
/* KEYED_FRAGMENT */
|
|
5913
5913
|
)),
|
|
5914
|
-
r.arrayValue.length === 0 ? (j(), I("div",
|
|
5914
|
+
r.arrayValue.length === 0 ? (j(), I("div", Xu, " No items ")) : V("v-if", !0)
|
|
5915
5915
|
]),
|
|
5916
|
-
F("div",
|
|
5916
|
+
F("div", ef, [
|
|
5917
5917
|
F("button", {
|
|
5918
5918
|
type: "button",
|
|
5919
5919
|
class: "quickform-btn quickform-btn-secondary",
|
|
5920
5920
|
disabled: !r.canAdd,
|
|
5921
5921
|
onClick: r.addItem
|
|
5922
|
-
}, " + " + X(r.formContext.labels.addItem), 9,
|
|
5922
|
+
}, " + " + X(r.formContext.labels.addItem), 9, tf)
|
|
5923
5923
|
]),
|
|
5924
5924
|
r.errorMessage ? (j(), I(
|
|
5925
5925
|
"div",
|
|
5926
|
-
|
|
5926
|
+
rf,
|
|
5927
5927
|
X(r.errorMessage),
|
|
5928
5928
|
1
|
|
5929
5929
|
/* TEXT */
|
|
5930
5930
|
)) : V("v-if", !0)
|
|
5931
|
-
], 8,
|
|
5931
|
+
], 8, Lu)
|
|
5932
5932
|
]);
|
|
5933
5933
|
}
|
|
5934
|
-
const
|
|
5934
|
+
const sf = /* @__PURE__ */ he(zu, [["render", nf], ["__scopeId", "data-v-a0783890"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/ArrayField.vue"]]), af = /* @__PURE__ */ me({
|
|
5935
5935
|
__name: "KeyValueField",
|
|
5936
5936
|
props: {
|
|
5937
5937
|
schema: { type: Object, required: !0 },
|
|
@@ -5948,7 +5948,7 @@ const af = /* @__PURE__ */ he(Uu, [["render", sf], ["__scopeId", "data-v-a078389
|
|
|
5948
5948
|
n.path,
|
|
5949
5949
|
n.schema,
|
|
5950
5950
|
{ label: n.label }
|
|
5951
|
-
), c =
|
|
5951
|
+
), c = Se(n.path);
|
|
5952
5952
|
let u = 0;
|
|
5953
5953
|
const f = ae([]), b = ae(!1);
|
|
5954
5954
|
Fe(
|
|
@@ -5988,18 +5988,18 @@ const af = /* @__PURE__ */ he(Uu, [["render", sf], ["__scopeId", "data-v-a078389
|
|
|
5988
5988
|
}, pairs: f, isInternalUpdate: b, addPair: $, removePair: _ };
|
|
5989
5989
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
5990
5990
|
}
|
|
5991
|
-
}),
|
|
5991
|
+
}), of = { class: "quickform-field quickform-keyvalue-field" }, lf = ["for"], df = {
|
|
5992
5992
|
key: 0,
|
|
5993
5993
|
class: "quickform-required"
|
|
5994
|
-
},
|
|
5994
|
+
}, cf = ["id"], uf = ["innerHTML"], ff = { class: "quickform-keyvalue-container" }, mf = {
|
|
5995
5995
|
key: 0,
|
|
5996
5996
|
class: "quickform-keyvalue-header"
|
|
5997
|
-
},
|
|
5997
|
+
}, hf = ["onUpdate:modelValue", "disabled", "readonly"], pf = ["onUpdate:modelValue", "disabled", "readonly"], yf = ["disabled", "onClick"], vf = ["disabled"], _f = {
|
|
5998
5998
|
key: 2,
|
|
5999
5999
|
class: "quickform-error"
|
|
6000
6000
|
};
|
|
6001
|
-
function
|
|
6002
|
-
return j(), I("div",
|
|
6001
|
+
function gf(e, t, n, r, s, a) {
|
|
6002
|
+
return j(), I("div", of, [
|
|
6003
6003
|
r.label ? (j(), I("label", {
|
|
6004
6004
|
key: 0,
|
|
6005
6005
|
for: r.fieldId,
|
|
@@ -6010,17 +6010,17 @@ function bf(e, t, n, r, s, a) {
|
|
|
6010
6010
|
1
|
|
6011
6011
|
/* TEXT */
|
|
6012
6012
|
),
|
|
6013
|
-
r.required ? (j(), I("span",
|
|
6014
|
-
], 8,
|
|
6013
|
+
r.required ? (j(), I("span", df, "*")) : V("v-if", !0)
|
|
6014
|
+
], 8, lf)) : V("v-if", !0),
|
|
6015
6015
|
r.hint ? (j(), I("div", {
|
|
6016
6016
|
key: 1,
|
|
6017
6017
|
id: `${r.fieldId}-hint`,
|
|
6018
6018
|
class: "quickform-hint"
|
|
6019
6019
|
}, [
|
|
6020
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
6021
|
-
], 8,
|
|
6022
|
-
F("div",
|
|
6023
|
-
r.pairs.length ? (j(), I("div",
|
|
6020
|
+
F("span", { innerHTML: r.hint }, null, 8, uf)
|
|
6021
|
+
], 8, cf)) : V("v-if", !0),
|
|
6022
|
+
F("div", ff, [
|
|
6023
|
+
r.pairs.length ? (j(), I("div", mf, [...t[0] || (t[0] = [
|
|
6024
6024
|
F(
|
|
6025
6025
|
"span",
|
|
6026
6026
|
{ class: "quickform-keyvalue-header-cell" },
|
|
@@ -6044,30 +6044,30 @@ function bf(e, t, n, r, s, a) {
|
|
|
6044
6044
|
)
|
|
6045
6045
|
])])) : V("v-if", !0),
|
|
6046
6046
|
(j(!0), I(
|
|
6047
|
-
|
|
6047
|
+
ke,
|
|
6048
6048
|
null,
|
|
6049
6049
|
He(r.pairs, (o) => (j(), I("div", {
|
|
6050
6050
|
key: o.id,
|
|
6051
6051
|
class: "quickform-keyvalue-row"
|
|
6052
6052
|
}, [
|
|
6053
|
-
|
|
6053
|
+
je(F("input", {
|
|
6054
6054
|
"onUpdate:modelValue": (i) => o.key = i,
|
|
6055
6055
|
type: "text",
|
|
6056
6056
|
placeholder: "key",
|
|
6057
6057
|
class: "quickform-input quickform-keyvalue-key",
|
|
6058
6058
|
disabled: n.disabled,
|
|
6059
6059
|
readonly: n.readonly
|
|
6060
|
-
}, null, 8,
|
|
6060
|
+
}, null, 8, hf), [
|
|
6061
6061
|
[vt, o.key]
|
|
6062
6062
|
]),
|
|
6063
|
-
|
|
6063
|
+
je(F("input", {
|
|
6064
6064
|
"onUpdate:modelValue": (i) => o.value = i,
|
|
6065
6065
|
type: "text",
|
|
6066
6066
|
placeholder: "value",
|
|
6067
6067
|
class: "quickform-input quickform-keyvalue-value",
|
|
6068
6068
|
disabled: n.disabled,
|
|
6069
6069
|
readonly: n.readonly
|
|
6070
|
-
}, null, 8,
|
|
6070
|
+
}, null, 8, pf), [
|
|
6071
6071
|
[vt, o.value]
|
|
6072
6072
|
]),
|
|
6073
6073
|
F("button", {
|
|
@@ -6075,7 +6075,7 @@ function bf(e, t, n, r, s, a) {
|
|
|
6075
6075
|
class: "quickform-button quickform-keyvalue-remove",
|
|
6076
6076
|
disabled: n.disabled || n.readonly,
|
|
6077
6077
|
onClick: (i) => r.removePair(o.id)
|
|
6078
|
-
}, " × ", 8,
|
|
6078
|
+
}, " × ", 8, yf)
|
|
6079
6079
|
]))),
|
|
6080
6080
|
128
|
|
6081
6081
|
/* KEYED_FRAGMENT */
|
|
@@ -6085,18 +6085,18 @@ function bf(e, t, n, r, s, a) {
|
|
|
6085
6085
|
class: "quickform-button quickform-keyvalue-add",
|
|
6086
6086
|
disabled: n.disabled || n.readonly,
|
|
6087
6087
|
onClick: r.addPair
|
|
6088
|
-
}, " + Add Parameter ", 8,
|
|
6088
|
+
}, " + Add Parameter ", 8, vf)
|
|
6089
6089
|
]),
|
|
6090
6090
|
r.errorMessage ? (j(), I(
|
|
6091
6091
|
"div",
|
|
6092
|
-
|
|
6092
|
+
_f,
|
|
6093
6093
|
X(r.errorMessage),
|
|
6094
6094
|
1
|
|
6095
6095
|
/* TEXT */
|
|
6096
6096
|
)) : V("v-if", !0)
|
|
6097
6097
|
]);
|
|
6098
6098
|
}
|
|
6099
|
-
const
|
|
6099
|
+
const bf = /* @__PURE__ */ he(af, [["render", gf], ["__scopeId", "data-v-8e716b7d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/KeyValueField.vue"]]), $f = /* @__PURE__ */ me({
|
|
6100
6100
|
__name: "JsonField",
|
|
6101
6101
|
props: {
|
|
6102
6102
|
schema: { type: Object, required: !0 },
|
|
@@ -6113,7 +6113,7 @@ const $f = /* @__PURE__ */ he(of, [["render", bf], ["__scopeId", "data-v-8e716b7
|
|
|
6113
6113
|
n.path,
|
|
6114
6114
|
n.schema,
|
|
6115
6115
|
{ label: n.label }
|
|
6116
|
-
), c =
|
|
6116
|
+
), c = Se(n.path), u = G(() => n.schema["x-show-format-hint"] !== !1), f = ae(""), b = ae(null), $ = ae(!1);
|
|
6117
6117
|
Fe(
|
|
6118
6118
|
() => r.value,
|
|
6119
6119
|
(S) => {
|
|
@@ -6167,23 +6167,23 @@ const $f = /* @__PURE__ */ he(of, [["render", bf], ["__scopeId", "data-v-8e716b7
|
|
|
6167
6167
|
}), k = { props: n, value: r, setValue: s, label: a, hint: o, errorMessage: i, required: d, fieldId: c, showFormatHint: u, jsonText: f, parseError: b, isInitialized: $, handleInput: _, formatJson: g, handleKeyDown: p, displayError: m, rows: y };
|
|
6168
6168
|
return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
|
|
6169
6169
|
}
|
|
6170
|
-
}),
|
|
6170
|
+
}), wf = { class: "quickform-field quickform-json-field" }, kf = {
|
|
6171
6171
|
key: 0,
|
|
6172
6172
|
class: "quickform-label-wrapper"
|
|
6173
|
-
},
|
|
6173
|
+
}, Sf = ["for"], Ef = {
|
|
6174
6174
|
key: 0,
|
|
6175
6175
|
class: "quickform-required"
|
|
6176
|
-
},
|
|
6176
|
+
}, Pf = {
|
|
6177
6177
|
key: 0,
|
|
6178
6178
|
class: "quickform-info-icon",
|
|
6179
6179
|
title: "Press Ctrl+Space to format JSON"
|
|
6180
|
-
},
|
|
6180
|
+
}, Of = ["id"], jf = ["innerHTML"], qf = ["id", "disabled", "readonly", "rows", "aria-describedby", "aria-invalid"], If = {
|
|
6181
6181
|
key: 2,
|
|
6182
6182
|
class: "quickform-error"
|
|
6183
6183
|
};
|
|
6184
|
-
function
|
|
6185
|
-
return j(), I("div",
|
|
6186
|
-
r.label ? (j(), I("div",
|
|
6184
|
+
function Nf(e, t, n, r, s, a) {
|
|
6185
|
+
return j(), I("div", wf, [
|
|
6186
|
+
r.label ? (j(), I("div", kf, [
|
|
6187
6187
|
F("label", {
|
|
6188
6188
|
for: r.fieldId,
|
|
6189
6189
|
class: "quickform-label"
|
|
@@ -6193,21 +6193,21 @@ function Mf(e, t, n, r, s, a) {
|
|
|
6193
6193
|
1
|
|
6194
6194
|
/* TEXT */
|
|
6195
6195
|
),
|
|
6196
|
-
r.required ? (j(), I("span",
|
|
6197
|
-
], 8,
|
|
6198
|
-
r.showFormatHint ? (j(), I("span",
|
|
6196
|
+
r.required ? (j(), I("span", Ef, "*")) : V("v-if", !0)
|
|
6197
|
+
], 8, Sf),
|
|
6198
|
+
r.showFormatHint ? (j(), I("span", Pf, "ⓘ")) : V("v-if", !0)
|
|
6199
6199
|
])) : V("v-if", !0),
|
|
6200
6200
|
r.hint ? (j(), I("div", {
|
|
6201
6201
|
key: 1,
|
|
6202
6202
|
id: `${r.fieldId}-hint`,
|
|
6203
6203
|
class: "quickform-hint"
|
|
6204
6204
|
}, [
|
|
6205
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
6206
|
-
], 8,
|
|
6207
|
-
|
|
6205
|
+
F("span", { innerHTML: r.hint }, null, 8, jf)
|
|
6206
|
+
], 8, Of)) : V("v-if", !0),
|
|
6207
|
+
je(F("textarea", {
|
|
6208
6208
|
id: r.fieldId,
|
|
6209
6209
|
"onUpdate:modelValue": t[0] || (t[0] = (o) => r.jsonText = o),
|
|
6210
|
-
class:
|
|
6210
|
+
class: Er(["quickform-textarea quickform-json-editor", { "quickform-error-border": r.displayError }]),
|
|
6211
6211
|
disabled: n.disabled,
|
|
6212
6212
|
readonly: n.readonly,
|
|
6213
6213
|
rows: r.rows,
|
|
@@ -6217,19 +6217,19 @@ function Mf(e, t, n, r, s, a) {
|
|
|
6217
6217
|
spellcheck: "false",
|
|
6218
6218
|
onInput: r.handleInput,
|
|
6219
6219
|
onKeydown: r.handleKeyDown
|
|
6220
|
-
}, null, 42,
|
|
6220
|
+
}, null, 42, qf), [
|
|
6221
6221
|
[vt, r.jsonText]
|
|
6222
6222
|
]),
|
|
6223
6223
|
r.displayError ? (j(), I(
|
|
6224
6224
|
"div",
|
|
6225
|
-
|
|
6225
|
+
If,
|
|
6226
6226
|
X(r.displayError),
|
|
6227
6227
|
1
|
|
6228
6228
|
/* TEXT */
|
|
6229
6229
|
)) : V("v-if", !0)
|
|
6230
6230
|
]);
|
|
6231
6231
|
}
|
|
6232
|
-
const
|
|
6232
|
+
const Mf = /* @__PURE__ */ he($f, [["render", Nf], ["__scopeId", "data-v-8122fb79"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/JsonField.vue"]]), Tf = /* @__PURE__ */ me({
|
|
6233
6233
|
__name: "OneOfField",
|
|
6234
6234
|
props: {
|
|
6235
6235
|
schema: { type: Object, required: !0 },
|
|
@@ -6242,8 +6242,8 @@ const Tf = /* @__PURE__ */ he(wf, [["render", Mf], ["__scopeId", "data-v-8122fb7
|
|
|
6242
6242
|
},
|
|
6243
6243
|
setup(e, { expose: t }) {
|
|
6244
6244
|
t();
|
|
6245
|
-
const n = e, { value: r, label: s, hint: a, errorMessage: o } = _e(n.path, n.schema, { label: n.label }), i =
|
|
6246
|
-
|
|
6245
|
+
const n = e, { value: r, label: s, hint: a, errorMessage: o } = _e(n.path, n.schema, { label: n.label }), i = Se(n.path), d = new kt(), c = G(() => n.schema.oneOf || n.schema.anyOf || []), u = ae(0);
|
|
6246
|
+
Or(() => {
|
|
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,39 +6255,39 @@ const Tf = /* @__PURE__ */ he(wf, [["render", Mf], ["__scopeId", "data-v-8122fb7
|
|
|
6255
6255
|
}, FieldRenderer: St };
|
|
6256
6256
|
return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
|
|
6257
6257
|
}
|
|
6258
|
-
}),
|
|
6258
|
+
}), Rf = { class: "quickform-field quickform-oneof-field" }, Af = ["id", "aria-describedby"], Ff = {
|
|
6259
6259
|
key: 0,
|
|
6260
6260
|
class: "quickform-legend"
|
|
6261
|
-
},
|
|
6261
|
+
}, Cf = {
|
|
6262
6262
|
key: 0,
|
|
6263
6263
|
class: "quickform-required"
|
|
6264
|
-
},
|
|
6264
|
+
}, Df = ["id"], Vf = ["innerHTML"], zf = { class: "quickform-oneof-selector" }, Uf = ["value", "disabled"], Lf = ["value"], Hf = { class: "quickform-oneof-content" }, Kf = {
|
|
6265
6265
|
key: 2,
|
|
6266
6266
|
class: "quickform-error"
|
|
6267
6267
|
};
|
|
6268
|
-
function
|
|
6269
|
-
return j(), I("div",
|
|
6268
|
+
function Bf(e, t, n, r, s, a) {
|
|
6269
|
+
return j(), I("div", Rf, [
|
|
6270
6270
|
F("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 ? (j(), I("legend",
|
|
6275
|
+
r.label ? (j(), I("legend", Ff, [
|
|
6276
6276
|
qe(
|
|
6277
6277
|
X(r.label) + " ",
|
|
6278
6278
|
1
|
|
6279
6279
|
/* TEXT */
|
|
6280
6280
|
),
|
|
6281
|
-
r.props.schema.required ? (j(), I("span",
|
|
6281
|
+
r.props.schema.required ? (j(), I("span", Cf, "*")) : V("v-if", !0)
|
|
6282
6282
|
])) : V("v-if", !0),
|
|
6283
6283
|
r.hint ? (j(), I("div", {
|
|
6284
6284
|
key: 1,
|
|
6285
6285
|
id: `${r.fieldId}-hint`,
|
|
6286
6286
|
class: "quickform-hint quickform-oneof-hint"
|
|
6287
6287
|
}, [
|
|
6288
|
-
F("span", { innerHTML: r.hint }, null, 8,
|
|
6289
|
-
], 8,
|
|
6290
|
-
F("div",
|
|
6288
|
+
F("span", { innerHTML: r.hint }, null, 8, Vf)
|
|
6289
|
+
], 8, Df)) : V("v-if", !0),
|
|
6290
|
+
F("div", zf, [
|
|
6291
6291
|
F("select", {
|
|
6292
6292
|
value: r.selectedIndex,
|
|
6293
6293
|
onChange: r.handleOptionChange,
|
|
@@ -6295,18 +6295,18 @@ function Gf(e, t, n, r, s, a) {
|
|
|
6295
6295
|
disabled: n.disabled || n.readonly
|
|
6296
6296
|
}, [
|
|
6297
6297
|
(j(!0), I(
|
|
6298
|
-
|
|
6298
|
+
ke,
|
|
6299
6299
|
null,
|
|
6300
6300
|
He(r.optionLabels, (o, i) => (j(), I("option", {
|
|
6301
6301
|
key: i,
|
|
6302
6302
|
value: i
|
|
6303
|
-
}, X(o), 9,
|
|
6303
|
+
}, X(o), 9, Lf))),
|
|
6304
6304
|
128
|
|
6305
6305
|
/* KEYED_FRAGMENT */
|
|
6306
6306
|
))
|
|
6307
|
-
], 40,
|
|
6307
|
+
], 40, Uf)
|
|
6308
6308
|
]),
|
|
6309
|
-
F("div",
|
|
6309
|
+
F("div", Hf, [
|
|
6310
6310
|
r.activeSchema ? (j(), _t(r.FieldRenderer, {
|
|
6311
6311
|
key: 0,
|
|
6312
6312
|
schema: r.activeSchema,
|
|
@@ -6317,15 +6317,15 @@ function Gf(e, t, n, r, s, a) {
|
|
|
6317
6317
|
]),
|
|
6318
6318
|
r.errorMessage ? (j(), I(
|
|
6319
6319
|
"div",
|
|
6320
|
-
|
|
6320
|
+
Kf,
|
|
6321
6321
|
X(r.errorMessage),
|
|
6322
6322
|
1
|
|
6323
6323
|
/* TEXT */
|
|
6324
6324
|
)) : V("v-if", !0)
|
|
6325
|
-
], 8,
|
|
6325
|
+
], 8, Af)
|
|
6326
6326
|
]);
|
|
6327
6327
|
}
|
|
6328
|
-
const
|
|
6328
|
+
const xn = /* @__PURE__ */ he(Tf, [["render", Bf], ["__scopeId", "data-v-dab625e6"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/OneOfField.vue"]]), Gf = /* @__PURE__ */ me({
|
|
6329
6329
|
__name: "AllOfField",
|
|
6330
6330
|
props: {
|
|
6331
6331
|
schema: { type: Object, required: !0 },
|
|
@@ -6338,16 +6338,16 @@ const Jn = /* @__PURE__ */ he(Rf, [["render", Gf], ["__scopeId", "data-v-dab625e
|
|
|
6338
6338
|
},
|
|
6339
6339
|
setup(e, { expose: t }) {
|
|
6340
6340
|
t();
|
|
6341
|
-
const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o =
|
|
6341
|
+
const n = e, { label: r, hint: s, errorMessage: a } = _e(n.path, n.schema, { label: n.label }), o = Se(n.path), i = new kt(), d = G(() => {
|
|
6342
6342
|
if (!n.schema.allOf) return n.schema;
|
|
6343
6343
|
const u = { ...n.schema };
|
|
6344
6344
|
return delete u.allOf, i.mergeSchemas(u, ...n.schema.allOf);
|
|
6345
6345
|
}), c = { props: n, label: r, hint: s, errorMessage: a, fieldId: o, schemaUtils: i, mergedSchema: d, FieldRenderer: St };
|
|
6346
6346
|
return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
|
|
6347
6347
|
}
|
|
6348
|
-
}),
|
|
6349
|
-
function
|
|
6350
|
-
return j(), I("div",
|
|
6348
|
+
}), Jf = { class: "quickform-field quickform-allof-field" };
|
|
6349
|
+
function xf(e, t, n, r, s, a) {
|
|
6350
|
+
return j(), I("div", Jf, [
|
|
6351
6351
|
V(" If the merged result is an object, ObjectField might be better, but FieldRenderer will dispatch correctly "),
|
|
6352
6352
|
Wn(r.FieldRenderer, {
|
|
6353
6353
|
schema: r.mergedSchema,
|
|
@@ -6358,7 +6358,7 @@ function Wf(e, t, n, r, s, a) {
|
|
|
6358
6358
|
}, null, 8, ["schema", "path", "disabled", "readonly", "label"])
|
|
6359
6359
|
]);
|
|
6360
6360
|
}
|
|
6361
|
-
const
|
|
6361
|
+
const Wf = /* @__PURE__ */ he(Gf, [["render", xf], ["__scopeId", "data-v-094fd67d"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/AllOfField.vue"]]), Zf = /* @__PURE__ */ me({
|
|
6362
6362
|
__name: "HiddenField",
|
|
6363
6363
|
props: {
|
|
6364
6364
|
schema: { type: Object, required: !0 },
|
|
@@ -6372,101 +6372,101 @@ const Zf = /* @__PURE__ */ he(Jf, [["render", Wf], ["__scopeId", "data-v-094fd67
|
|
|
6372
6372
|
setup(e, { expose: t }) {
|
|
6373
6373
|
t();
|
|
6374
6374
|
const n = e, { value: r } = _e(n.path, n.schema, { label: n.label });
|
|
6375
|
-
|
|
6375
|
+
Or(() => {
|
|
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
|
-
}),
|
|
6382
|
-
function
|
|
6381
|
+
}), Yf = ["value"];
|
|
6382
|
+
function Qf(e, t, n, r, s, a) {
|
|
6383
6383
|
return j(), I(
|
|
6384
|
-
|
|
6384
|
+
ke,
|
|
6385
6385
|
null,
|
|
6386
6386
|
[
|
|
6387
6387
|
V(" Hidden field - renders nothing visible to the user "),
|
|
6388
6388
|
F("input", {
|
|
6389
6389
|
type: "hidden",
|
|
6390
6390
|
value: r.value
|
|
6391
|
-
}, null, 8,
|
|
6391
|
+
}, null, 8, Yf)
|
|
6392
6392
|
],
|
|
6393
6393
|
2112
|
|
6394
6394
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
6395
6395
|
);
|
|
6396
6396
|
}
|
|
6397
|
-
const
|
|
6398
|
-
function
|
|
6399
|
-
const e = new
|
|
6397
|
+
const Xf = /* @__PURE__ */ he(Zf, [["render", Qf], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/HiddenField.vue"]]);
|
|
6398
|
+
function em() {
|
|
6399
|
+
const e = new fa();
|
|
6400
6400
|
return e.register(
|
|
6401
6401
|
"hidden",
|
|
6402
|
-
|
|
6403
|
-
(t) => ye(100,
|
|
6402
|
+
Xf,
|
|
6403
|
+
(t) => ye(100, ga(t))
|
|
6404
6404
|
), e.register(
|
|
6405
6405
|
"string",
|
|
6406
|
-
|
|
6406
|
+
Rc,
|
|
6407
6407
|
(t) => ye(1, rt(t))
|
|
6408
6408
|
), e.register(
|
|
6409
6409
|
"number",
|
|
6410
|
-
|
|
6411
|
-
(t) => ye(1,
|
|
6410
|
+
Kc,
|
|
6411
|
+
(t) => ye(1, ma(t))
|
|
6412
6412
|
), e.register(
|
|
6413
6413
|
"boolean",
|
|
6414
|
-
|
|
6415
|
-
(t) => ye(1,
|
|
6414
|
+
tu,
|
|
6415
|
+
(t) => ye(1, ha(t))
|
|
6416
6416
|
), e.register(
|
|
6417
6417
|
"enum",
|
|
6418
|
-
|
|
6419
|
-
(t) => ye(2,
|
|
6418
|
+
pu,
|
|
6419
|
+
(t) => ye(2, ba(t))
|
|
6420
6420
|
), e.register(
|
|
6421
6421
|
"date",
|
|
6422
|
-
|
|
6423
|
-
(t) => ye(2,
|
|
6422
|
+
Eu,
|
|
6423
|
+
(t) => ye(2, $a(t))
|
|
6424
6424
|
), e.register(
|
|
6425
6425
|
"keyvalue",
|
|
6426
|
-
|
|
6427
|
-
(t) => ye(6,
|
|
6426
|
+
bf,
|
|
6427
|
+
(t) => ye(6, va(t))
|
|
6428
6428
|
), e.register(
|
|
6429
6429
|
"json",
|
|
6430
|
-
|
|
6431
|
-
(t) => ye(5,
|
|
6430
|
+
Mf,
|
|
6431
|
+
(t) => ye(5, _a(t))
|
|
6432
6432
|
), e.register(
|
|
6433
6433
|
"object",
|
|
6434
|
-
|
|
6435
|
-
(t) => ye(1,
|
|
6434
|
+
Vu,
|
|
6435
|
+
(t) => ye(1, pa(t))
|
|
6436
6436
|
), e.register(
|
|
6437
6437
|
"array",
|
|
6438
|
-
|
|
6439
|
-
(t) => ye(1,
|
|
6438
|
+
sf,
|
|
6439
|
+
(t) => ye(1, ya(t))
|
|
6440
6440
|
), e.register(
|
|
6441
6441
|
"oneOf",
|
|
6442
|
-
|
|
6442
|
+
xn,
|
|
6443
6443
|
(t) => ye(10, Zn(t))
|
|
6444
6444
|
), e.register(
|
|
6445
6445
|
"anyOf",
|
|
6446
|
-
|
|
6447
|
-
(t) => ye(10,
|
|
6446
|
+
xn,
|
|
6447
|
+
(t) => ye(10, wa(t))
|
|
6448
6448
|
), e.register(
|
|
6449
6449
|
"allOf",
|
|
6450
|
-
|
|
6451
|
-
(t) => ye(10,
|
|
6450
|
+
Wf,
|
|
6451
|
+
(t) => ye(10, ka(t))
|
|
6452
6452
|
), e;
|
|
6453
6453
|
}
|
|
6454
|
-
const Ze = "__root__",
|
|
6454
|
+
const Ze = "__root__", tm = /* @__PURE__ */ me({
|
|
6455
6455
|
__name: "DynamicForm",
|
|
6456
|
-
props: /* @__PURE__ */
|
|
6456
|
+
props: /* @__PURE__ */ $n({
|
|
6457
6457
|
schema: { type: Object, required: !0 },
|
|
6458
6458
|
options: { type: Object, required: !1, default: () => ({}) }
|
|
6459
6459
|
}, {
|
|
6460
6460
|
modelValue: { type: Object, default: () => ({}) },
|
|
6461
6461
|
modelModifiers: {}
|
|
6462
6462
|
}),
|
|
6463
|
-
emits: /* @__PURE__ */
|
|
6463
|
+
emits: /* @__PURE__ */ $n(["submit", "validation", "ready"], ["update:modelValue"]),
|
|
6464
6464
|
setup(e, { expose: t, emit: n }) {
|
|
6465
6465
|
var W, U, ne, re;
|
|
6466
6466
|
t();
|
|
6467
|
-
const r = e, s = oa(e, "modelValue"), a = n, o = new kt(), i = r.options.registry ||
|
|
6467
|
+
const r = e, s = oa(e, "modelValue"), a = n, o = new kt(), i = r.options.registry || em(), d = G(() => r.schema.type === "object" && !r.schema.properties), c = d.value ? {
|
|
6468
6468
|
[Ze]: s.value && typeof s.value == "object" && Object.keys(s.value).length > 0 ? s.value : r.options.useDefaults !== !1 ? o.getDefaultValue(r.schema) : {}
|
|
6469
|
-
} : r.options.useDefaults !== !1 ? { ...o.getDefaultValue(r.schema), ...s.value } : { ...s.value }, { handleSubmit: u, values: f, setValues: b, setFieldValue: $, errors: _, meta: g } =
|
|
6469
|
+
} : r.options.useDefaults !== !1 ? { ...o.getDefaultValue(r.schema), ...s.value } : { ...s.value }, { handleSubmit: u, values: f, setValues: b, setFieldValue: $, errors: _, meta: g } = ua({
|
|
6470
6470
|
initialValues: c,
|
|
6471
6471
|
validateOnMount: r.options.validateOnMount ?? !1
|
|
6472
6472
|
}), p = {
|
|
@@ -6503,7 +6503,7 @@ const Ze = "__root__", rm = /* @__PURE__ */ me({
|
|
|
6503
6503
|
errorMessages: r.options.errorMessages,
|
|
6504
6504
|
validators: r.options.validators,
|
|
6505
6505
|
validatorDebounce: r.options.validatorDebounce,
|
|
6506
|
-
formValues: () => d.value ?
|
|
6506
|
+
formValues: () => d.value ? wn(f[Ze]) : wn(f),
|
|
6507
6507
|
labels: { ...p, ...r.options.labels },
|
|
6508
6508
|
componentDefaults: {
|
|
6509
6509
|
// Start with all custom component defaults from options
|
|
@@ -6529,7 +6529,7 @@ const Ze = "__root__", rm = /* @__PURE__ */ me({
|
|
|
6529
6529
|
quickformsDefaults: r.options.quickformsDefaults || {},
|
|
6530
6530
|
hintRenderer: r.options.hintRenderer
|
|
6531
6531
|
});
|
|
6532
|
-
|
|
6532
|
+
pc(y);
|
|
6533
6533
|
const k = ae(!1), S = ae(null);
|
|
6534
6534
|
function O() {
|
|
6535
6535
|
requestAnimationFrame(() => {
|
|
@@ -6538,7 +6538,7 @@ const Ze = "__root__", rm = /* @__PURE__ */ me({
|
|
|
6538
6538
|
});
|
|
6539
6539
|
});
|
|
6540
6540
|
}
|
|
6541
|
-
|
|
6541
|
+
Or(() => {
|
|
6542
6542
|
O();
|
|
6543
6543
|
}), Fe(
|
|
6544
6544
|
() => r.schema,
|
|
@@ -6607,14 +6607,11 @@ const Ze = "__root__", rm = /* @__PURE__ */ me({
|
|
|
6607
6607
|
}, onSubmit: M, properties: T, FieldRenderer: St };
|
|
6608
6608
|
return Object.defineProperty(z, "__isScriptSetup", { enumerable: !1, value: !0 }), z;
|
|
6609
6609
|
}
|
|
6610
|
-
}),
|
|
6610
|
+
}), rm = {
|
|
6611
6611
|
key: 0,
|
|
6612
|
-
class: "quickform-loading"
|
|
6613
|
-
}, sm = {
|
|
6614
|
-
ref: "formContentRef",
|
|
6615
|
-
class: "quickform-content"
|
|
6612
|
+
class: "quickform-loading-overlay"
|
|
6616
6613
|
};
|
|
6617
|
-
function
|
|
6614
|
+
function nm(e, t, n, r, s, a) {
|
|
6618
6615
|
return j(), I(
|
|
6619
6616
|
"form",
|
|
6620
6617
|
{
|
|
@@ -6622,8 +6619,8 @@ function am(e, t, n, r, s, a) {
|
|
|
6622
6619
|
onSubmit: t[0] || (t[0] = (...o) => r.onSubmit && r.onSubmit(...o))
|
|
6623
6620
|
},
|
|
6624
6621
|
[
|
|
6625
|
-
V(" Loading
|
|
6626
|
-
r.isReady ? V("v-if", !0) : (j(), I("div",
|
|
6622
|
+
V(" Loading overlay (shown until form is ready) "),
|
|
6623
|
+
r.isReady ? V("v-if", !0) : (j(), I("div", rm, [
|
|
6627
6624
|
da(e.$slots, "loading", {}, () => [
|
|
6628
6625
|
t[1] || (t[1] = F(
|
|
6629
6626
|
"div",
|
|
@@ -6636,10 +6633,13 @@ function am(e, t, n, r, s, a) {
|
|
|
6636
6633
|
))
|
|
6637
6634
|
], !0)
|
|
6638
6635
|
])),
|
|
6639
|
-
V(" Form content (
|
|
6640
|
-
|
|
6636
|
+
V(" Form content (always rendered, but hidden until ready) "),
|
|
6637
|
+
F(
|
|
6641
6638
|
"div",
|
|
6642
|
-
|
|
6639
|
+
{
|
|
6640
|
+
ref: "formContentRef",
|
|
6641
|
+
class: Er(["quickform-content", { "quickform-content-hidden": !r.isReady }])
|
|
6642
|
+
},
|
|
6643
6643
|
[
|
|
6644
6644
|
V(" Single field schema (e.g., JSON editor, single object field) "),
|
|
6645
6645
|
r.isSingleField ? (j(), _t(r.FieldRenderer, {
|
|
@@ -6649,12 +6649,12 @@ function am(e, t, n, r, s, a) {
|
|
|
6649
6649
|
disabled: n.options.disabled,
|
|
6650
6650
|
readonly: n.options.readonly
|
|
6651
6651
|
}, null, 8, ["schema", "disabled", "readonly"])) : (j(), I(
|
|
6652
|
-
|
|
6652
|
+
ke,
|
|
6653
6653
|
{ key: 1 },
|
|
6654
6654
|
[
|
|
6655
6655
|
V(" Multiple fields (normal form) "),
|
|
6656
6656
|
(j(!0), I(
|
|
6657
|
-
|
|
6657
|
+
ke,
|
|
6658
6658
|
null,
|
|
6659
6659
|
He(r.properties, (o) => (j(), _t(r.FieldRenderer, {
|
|
6660
6660
|
key: o.key,
|
|
@@ -6671,67 +6671,65 @@ function am(e, t, n, r, s, a) {
|
|
|
6671
6671
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
6672
6672
|
))
|
|
6673
6673
|
],
|
|
6674
|
-
|
|
6675
|
-
/*
|
|
6676
|
-
)
|
|
6677
|
-
[ca, r.isReady]
|
|
6678
|
-
])
|
|
6674
|
+
2
|
|
6675
|
+
/* CLASS */
|
|
6676
|
+
)
|
|
6679
6677
|
],
|
|
6680
6678
|
32
|
|
6681
6679
|
/* NEED_HYDRATION */
|
|
6682
6680
|
);
|
|
6683
6681
|
}
|
|
6684
|
-
const
|
|
6682
|
+
const wm = /* @__PURE__ */ he(tm, [["render", nm], ["__scopeId", "data-v-cb85e2c1"], ["__file", "/Users/zachsherbondy/src/github.com/quickforms/packages/vue/src/components/DynamicForm.vue"]]);
|
|
6685
6683
|
export {
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6684
|
+
Wf as AllOfField,
|
|
6685
|
+
sf as ArrayField,
|
|
6686
|
+
tu as BooleanField,
|
|
6687
|
+
fa as ComponentRegistry,
|
|
6688
|
+
Eu as DateField,
|
|
6689
|
+
wm as DynamicForm,
|
|
6690
|
+
pu as EnumField,
|
|
6693
6691
|
St as FieldRenderer,
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6692
|
+
Xf as HiddenField,
|
|
6693
|
+
Mf as JsonField,
|
|
6694
|
+
bf as KeyValueField,
|
|
6695
|
+
Kc as NumberField,
|
|
6696
|
+
Vu as ObjectField,
|
|
6697
|
+
xn as OneOfField,
|
|
6700
6698
|
kt as SchemaUtils,
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6699
|
+
Rc as StringField,
|
|
6700
|
+
ym as and,
|
|
6701
|
+
em as createDefaultRegistry,
|
|
6702
|
+
Se as generateFieldId,
|
|
6703
|
+
yc as getHint,
|
|
6704
|
+
gm as getLabel,
|
|
6705
|
+
ka as hasAllOf,
|
|
6706
|
+
wa as hasAnyOf,
|
|
6707
|
+
hm as hasConditional,
|
|
6708
|
+
ga as hasConst,
|
|
6709
|
+
pm as hasExtension,
|
|
6710
|
+
lm as hasFormat,
|
|
6713
6711
|
Zn as hasOneOf,
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6712
|
+
ya as isArrayType,
|
|
6713
|
+
ha as isBooleanType,
|
|
6714
|
+
$a as isDateFormat,
|
|
6715
|
+
um as isDateTimeFormat,
|
|
6716
|
+
mm as isDiscriminatedUnion,
|
|
6717
|
+
dm as isEmailFormat,
|
|
6718
|
+
bm as isEmpty,
|
|
6719
|
+
ba as isEnumType,
|
|
6720
|
+
om as isIntegerType,
|
|
6721
|
+
_a as isJsonType,
|
|
6722
|
+
im as isNullType,
|
|
6723
|
+
ma as isNumberType,
|
|
6724
|
+
pa as isObjectType,
|
|
6725
|
+
va as isRecordType,
|
|
6728
6726
|
rt as isStringType,
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6727
|
+
cm as isTimeFormat,
|
|
6728
|
+
fm as isUrlFormat,
|
|
6729
|
+
$m as joinPath,
|
|
6730
|
+
_m as not,
|
|
6731
|
+
vm as or,
|
|
6732
|
+
pc as provideFormContext,
|
|
6735
6733
|
ye as rankWith,
|
|
6736
6734
|
ot as useFormContext,
|
|
6737
6735
|
_e as useFormField
|