@gravitee/graphene-core 2.50.0-json-schema-form-context.a4d5171 → 2.50.0-renovate-react.45a19df
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/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form/displayIf.fixture.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/evalCondition.d.ts +6 -6
- package/dist/composed/JsonSchemaForm/conditional/evalCondition.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts +0 -1
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/setupJsonSchemaForm.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +1 -3
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/index.js +460 -477
- package/package.json +2 -2
- package/snippets/json-schema-form-simple.tsx +2 -20
- package/snippets/json-schema-form-with-meta.tsx +3 -18
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts +0 -12
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -29635,57 +29635,46 @@ function xJ() {
|
|
|
29635
29635
|
return e;
|
|
29636
29636
|
}
|
|
29637
29637
|
//#endregion
|
|
29638
|
-
//#region src/composed/JsonSchemaForm/utils/readPath.ts
|
|
29639
|
-
function SJ(e, t) {
|
|
29640
|
-
if (t === "") return e;
|
|
29641
|
-
let n = e;
|
|
29642
|
-
for (let e of t.split(".")) {
|
|
29643
|
-
if (typeof n != "object" || !n) return;
|
|
29644
|
-
n = n[e];
|
|
29645
|
-
}
|
|
29646
|
-
return n;
|
|
29647
|
-
}
|
|
29648
|
-
//#endregion
|
|
29649
29638
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
29650
|
-
function
|
|
29651
|
-
|
|
29652
|
-
|
|
29653
|
-
|
|
29639
|
+
function SJ(e, t) {
|
|
29640
|
+
if (e.$eq.size === 0) return !0;
|
|
29641
|
+
for (let [n, r] of e.$eq) {
|
|
29642
|
+
let e = t.get(n);
|
|
29643
|
+
if (!(Array.isArray(r) ? r : [r]).includes(e)) return !1;
|
|
29654
29644
|
}
|
|
29655
29645
|
return !0;
|
|
29656
29646
|
}
|
|
29657
|
-
function wJ(e, t) {
|
|
29658
|
-
return (Array.isArray(t) ? t : [t]).includes(e);
|
|
29659
|
-
}
|
|
29660
29647
|
//#endregion
|
|
29661
29648
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
29662
|
-
function
|
|
29663
|
-
let { control: r
|
|
29649
|
+
function CJ({ condition: e, unregisterOnHide: t, children: n }) {
|
|
29650
|
+
let { control: r } = xJ(), i = B(() => Array.from(e.$eq.keys()), [e]), a = Iq({
|
|
29664
29651
|
control: r,
|
|
29665
|
-
name:
|
|
29666
|
-
}),
|
|
29667
|
-
let e = /* @__PURE__ */ new Map()
|
|
29668
|
-
|
|
29669
|
-
|
|
29652
|
+
name: i
|
|
29653
|
+
}), o = SJ(e, B(() => {
|
|
29654
|
+
let e = /* @__PURE__ */ new Map();
|
|
29655
|
+
if (i.length === 0) return e;
|
|
29656
|
+
let t = Array.isArray(a) ? a : [a];
|
|
29657
|
+
return i.forEach((n, r) => e.set(n, t[r])), e;
|
|
29658
|
+
}, [i, a]));
|
|
29670
29659
|
return z(() => {
|
|
29671
|
-
if (!
|
|
29660
|
+
if (!o && !(!t || t.length === 0)) for (let e of t) r.unregister(e);
|
|
29672
29661
|
}, [
|
|
29673
|
-
|
|
29662
|
+
o,
|
|
29674
29663
|
t,
|
|
29675
29664
|
r
|
|
29676
|
-
]),
|
|
29665
|
+
]), o ? /* @__PURE__ */ U(ce, { children: n }) : null;
|
|
29677
29666
|
}
|
|
29678
29667
|
//#endregion
|
|
29679
29668
|
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
29680
|
-
function
|
|
29669
|
+
function wJ({ condition: e, children: t }) {
|
|
29681
29670
|
let n = xJ(), r = B(() => Array.from(e.$eq.keys()), [e]), i = Iq({
|
|
29682
29671
|
control: n.control,
|
|
29683
29672
|
name: r
|
|
29684
29673
|
});
|
|
29685
|
-
return
|
|
29674
|
+
return SJ(e, B(() => {
|
|
29686
29675
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
|
|
29687
29676
|
return r.forEach((n, r) => e.set(n, t[r])), e;
|
|
29688
|
-
}, [r, i])
|
|
29677
|
+
}, [r, i])) ? /* @__PURE__ */ U(bJ.Provider, {
|
|
29689
29678
|
value: {
|
|
29690
29679
|
...n,
|
|
29691
29680
|
disabled: !0
|
|
@@ -29695,7 +29684,7 @@ function EJ({ condition: e, children: t }) {
|
|
|
29695
29684
|
}
|
|
29696
29685
|
//#endregion
|
|
29697
29686
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
29698
|
-
function
|
|
29687
|
+
function TJ(e, t) {
|
|
29699
29688
|
return e.split(".").map((e, n) => {
|
|
29700
29689
|
let r = t[n];
|
|
29701
29690
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -29703,16 +29692,13 @@ function DJ(e, t) {
|
|
|
29703
29692
|
}
|
|
29704
29693
|
//#endregion
|
|
29705
29694
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
29706
|
-
function
|
|
29707
|
-
let n = t === "" ? [] : t.split(".")
|
|
29708
|
-
return e.$
|
|
29709
|
-
$eq: r,
|
|
29710
|
-
$eqContext: e.$eqContext
|
|
29711
|
-
} : { $eq: r };
|
|
29695
|
+
function EJ(e, t) {
|
|
29696
|
+
let n = t === "" ? [] : t.split(".");
|
|
29697
|
+
return { $eq: new Map([...e.$eq].map(([e, t]) => [TJ(e, n), t])) };
|
|
29712
29698
|
}
|
|
29713
29699
|
//#endregion
|
|
29714
29700
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
29715
|
-
function
|
|
29701
|
+
function DJ(e, t) {
|
|
29716
29702
|
if (!e) return e;
|
|
29717
29703
|
let n = {};
|
|
29718
29704
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -29720,17 +29706,17 @@ function kJ(e, t) {
|
|
|
29720
29706
|
}
|
|
29721
29707
|
//#endregion
|
|
29722
29708
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
29723
|
-
function
|
|
29724
|
-
return
|
|
29709
|
+
function OJ(e) {
|
|
29710
|
+
return kJ(e);
|
|
29725
29711
|
}
|
|
29726
|
-
function
|
|
29727
|
-
return
|
|
29712
|
+
function kJ(e) {
|
|
29713
|
+
return jJ(AJ({ ...e }));
|
|
29728
29714
|
}
|
|
29729
|
-
function
|
|
29715
|
+
function AJ(e) {
|
|
29730
29716
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
29731
29717
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
29732
29718
|
for (let a of e.allOf) {
|
|
29733
|
-
let e =
|
|
29719
|
+
let e = kJ(a);
|
|
29734
29720
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
29735
29721
|
...r,
|
|
29736
29722
|
...e.gioConfig
|
|
@@ -29739,33 +29725,33 @@ function MJ(e) {
|
|
|
29739
29725
|
let a = { ...e };
|
|
29740
29726
|
return Object.keys(t).length > 0 && (a.properties = t), n.size > 0 && (a.required = Array.from(n)), r !== void 0 && (a.gioConfig = r), Object.keys(i).length > 0 && (a.dependencies = i), delete a.allOf, a;
|
|
29741
29727
|
}
|
|
29742
|
-
function
|
|
29743
|
-
return e.properties &&=
|
|
29728
|
+
function jJ(e) {
|
|
29729
|
+
return e.properties &&= MJ(e.properties, kJ), e.items &&= Array.isArray(e.items) ? e.items.map(kJ) : kJ(e.items), e.oneOf &&= e.oneOf.map(kJ), e.anyOf &&= e.anyOf.map(kJ), e.dependencies &&= DJ(e.dependencies, kJ), e;
|
|
29744
29730
|
}
|
|
29745
|
-
function
|
|
29731
|
+
function MJ(e, t) {
|
|
29746
29732
|
let n = {};
|
|
29747
29733
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
29748
29734
|
return n;
|
|
29749
29735
|
}
|
|
29750
29736
|
//#endregion
|
|
29751
29737
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
29752
|
-
function
|
|
29738
|
+
function NJ(e) {
|
|
29753
29739
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
29754
29740
|
}
|
|
29755
|
-
function
|
|
29741
|
+
function PJ(e) {
|
|
29756
29742
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
29757
29743
|
}
|
|
29758
29744
|
//#endregion
|
|
29759
29745
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
29760
|
-
function
|
|
29761
|
-
return
|
|
29746
|
+
function FJ(e) {
|
|
29747
|
+
return IJ(e, e, []);
|
|
29762
29748
|
}
|
|
29763
|
-
function
|
|
29749
|
+
function IJ(e, t, n) {
|
|
29764
29750
|
if (typeof e.$ref == "string") {
|
|
29765
29751
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
29766
|
-
let r =
|
|
29752
|
+
let r = LJ(t, e.$ref);
|
|
29767
29753
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
29768
|
-
let i =
|
|
29754
|
+
let i = IJ(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
29769
29755
|
...i,
|
|
29770
29756
|
...s
|
|
29771
29757
|
};
|
|
@@ -29777,25 +29763,25 @@ function RJ(e, t, n) {
|
|
|
29777
29763
|
let r = { ...e };
|
|
29778
29764
|
if (r.properties) {
|
|
29779
29765
|
let e = {};
|
|
29780
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
29766
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = IJ(a, t, n);
|
|
29781
29767
|
r.properties = e;
|
|
29782
29768
|
}
|
|
29783
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
29769
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => IJ(e, t, n)) : IJ(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => IJ(e, t, n)), r.anyOf &&= r.anyOf.map((e) => IJ(e, t, n)), r.allOf &&= r.allOf.map((e) => IJ(e, t, n)), r.dependencies &&= DJ(r.dependencies, (e) => IJ(e, t, n)), r.definitions) {
|
|
29784
29770
|
let e = {};
|
|
29785
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
29771
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = IJ(a, t, n);
|
|
29786
29772
|
r.definitions = e;
|
|
29787
29773
|
}
|
|
29788
29774
|
if (r.$defs) {
|
|
29789
29775
|
let e = {};
|
|
29790
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
29776
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = IJ(a, t, n);
|
|
29791
29777
|
r.$defs = e;
|
|
29792
29778
|
}
|
|
29793
29779
|
return r;
|
|
29794
29780
|
}
|
|
29795
|
-
function
|
|
29781
|
+
function LJ(e, t) {
|
|
29796
29782
|
if (t === "#") return e;
|
|
29797
29783
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
29798
|
-
let n = t.slice(2).split("/").map(
|
|
29784
|
+
let n = t.slice(2).split("/").map(PJ), r = e;
|
|
29799
29785
|
for (let e of n) {
|
|
29800
29786
|
if (typeof r != "object" || !r) return;
|
|
29801
29787
|
r = r[e];
|
|
@@ -29804,28 +29790,28 @@ function zJ(e, t) {
|
|
|
29804
29790
|
}
|
|
29805
29791
|
//#endregion
|
|
29806
29792
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
29807
|
-
function
|
|
29793
|
+
function RJ(e) {
|
|
29808
29794
|
let t;
|
|
29809
29795
|
try {
|
|
29810
|
-
t =
|
|
29796
|
+
t = OJ(FJ(e));
|
|
29811
29797
|
} catch {
|
|
29812
29798
|
return;
|
|
29813
29799
|
}
|
|
29814
|
-
return
|
|
29800
|
+
return zJ(t);
|
|
29815
29801
|
}
|
|
29816
|
-
function
|
|
29802
|
+
function zJ(e) {
|
|
29817
29803
|
if (e.deprecated === !0) return;
|
|
29818
29804
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
29819
29805
|
let t = {};
|
|
29820
29806
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
29821
|
-
let e =
|
|
29807
|
+
let e = zJ(r);
|
|
29822
29808
|
e !== void 0 && (t[n] = e);
|
|
29823
29809
|
}
|
|
29824
29810
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
|
|
29825
29811
|
if (n?.properties) {
|
|
29826
29812
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
29827
29813
|
else if (!(e in t)) {
|
|
29828
|
-
let n =
|
|
29814
|
+
let n = zJ(r);
|
|
29829
29815
|
n !== void 0 && (t[e] = n);
|
|
29830
29816
|
}
|
|
29831
29817
|
}
|
|
@@ -29833,23 +29819,23 @@ function VJ(e) {
|
|
|
29833
29819
|
}
|
|
29834
29820
|
//#endregion
|
|
29835
29821
|
//#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
|
|
29836
|
-
function
|
|
29822
|
+
function BJ(e) {
|
|
29837
29823
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
29838
29824
|
}
|
|
29839
29825
|
//#endregion
|
|
29840
29826
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
29841
|
-
function
|
|
29827
|
+
function VJ(e) {
|
|
29842
29828
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
29843
29829
|
}
|
|
29844
|
-
function
|
|
29845
|
-
return
|
|
29830
|
+
function HJ(e) {
|
|
29831
|
+
return VJ(e.split(".").pop());
|
|
29846
29832
|
}
|
|
29847
|
-
function
|
|
29848
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
29833
|
+
function UJ(e, t) {
|
|
29834
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : VJ(t);
|
|
29849
29835
|
}
|
|
29850
29836
|
//#endregion
|
|
29851
29837
|
//#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
|
|
29852
|
-
function
|
|
29838
|
+
function WJ({ banner: e }) {
|
|
29853
29839
|
let t = "title" in e ? e.title : void 0;
|
|
29854
29840
|
return /* @__PURE__ */ W(xv, {
|
|
29855
29841
|
role: "note",
|
|
@@ -29869,7 +29855,7 @@ function KJ({ banner: e }) {
|
|
|
29869
29855
|
}
|
|
29870
29856
|
//#endregion
|
|
29871
29857
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
29872
|
-
function
|
|
29858
|
+
function GJ(e) {
|
|
29873
29859
|
if (e.default !== void 0) return e.default;
|
|
29874
29860
|
switch (e.type) {
|
|
29875
29861
|
case "string": return "";
|
|
@@ -29884,7 +29870,7 @@ function qJ(e) {
|
|
|
29884
29870
|
}
|
|
29885
29871
|
//#endregion
|
|
29886
29872
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
29887
|
-
function
|
|
29873
|
+
function KJ(e, t) {
|
|
29888
29874
|
let n = xJ(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = yJ({
|
|
29889
29875
|
control: n.control,
|
|
29890
29876
|
name: r
|
|
@@ -29906,10 +29892,10 @@ function JJ(e, t) {
|
|
|
29906
29892
|
}
|
|
29907
29893
|
//#endregion
|
|
29908
29894
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
29909
|
-
function
|
|
29910
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
29895
|
+
function qJ({ node: e, name: t, depth: n }) {
|
|
29896
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = KJ(r, t), p = r.items, m = e.items, h = UJ(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
29911
29897
|
function _() {
|
|
29912
|
-
s(
|
|
29898
|
+
s(YJ(p), { shouldFocus: !1 });
|
|
29913
29899
|
}
|
|
29914
29900
|
return /* @__PURE__ */ W(TI, {
|
|
29915
29901
|
"aria-required": r.isRequired || void 0,
|
|
@@ -29921,10 +29907,10 @@ function YJ({ node: e, name: t, depth: n }) {
|
|
|
29921
29907
|
children: h
|
|
29922
29908
|
}),
|
|
29923
29909
|
r.description && /* @__PURE__ */ U(NI, { children: r.description }),
|
|
29924
|
-
r.gioConfig?.banner && /* @__PURE__ */ U(
|
|
29910
|
+
r.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: r.gioConfig.banner }),
|
|
29925
29911
|
/* @__PURE__ */ U("div", {
|
|
29926
29912
|
className: "flex flex-col",
|
|
29927
|
-
children: o.map((e, t) => /* @__PURE__ */ U(
|
|
29913
|
+
children: o.map((e, t) => /* @__PURE__ */ U(JJ, {
|
|
29928
29914
|
index: t,
|
|
29929
29915
|
path: a,
|
|
29930
29916
|
itemsNode: m,
|
|
@@ -29946,11 +29932,11 @@ function YJ({ node: e, name: t, depth: n }) {
|
|
|
29946
29932
|
children: [/* @__PURE__ */ U(k, { "aria-hidden": "true" }), "Add"]
|
|
29947
29933
|
})
|
|
29948
29934
|
}),
|
|
29949
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
29935
|
+
/* @__PURE__ */ U(FI, { errors: BJ(l.error) })
|
|
29950
29936
|
]
|
|
29951
29937
|
});
|
|
29952
29938
|
}
|
|
29953
|
-
function
|
|
29939
|
+
function JJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: s }) {
|
|
29954
29940
|
let c = `${t}.${e}`;
|
|
29955
29941
|
return /* @__PURE__ */ W(hC, {
|
|
29956
29942
|
defaultOpen: !0,
|
|
@@ -29985,7 +29971,7 @@ function XJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
29985
29971
|
basePath: c,
|
|
29986
29972
|
disabled: i
|
|
29987
29973
|
},
|
|
29988
|
-
children: /* @__PURE__ */ U(
|
|
29974
|
+
children: /* @__PURE__ */ U(EY, {
|
|
29989
29975
|
node: n,
|
|
29990
29976
|
name: "",
|
|
29991
29977
|
depth: r + 1
|
|
@@ -29994,17 +29980,17 @@ function XJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
29994
29980
|
}) })]
|
|
29995
29981
|
});
|
|
29996
29982
|
}
|
|
29997
|
-
function
|
|
29998
|
-
let t =
|
|
29999
|
-
return t === void 0 ?
|
|
29983
|
+
function YJ(e) {
|
|
29984
|
+
let t = RJ(e);
|
|
29985
|
+
return t === void 0 ? GJ(e) : t;
|
|
30000
29986
|
}
|
|
30001
29987
|
//#endregion
|
|
30002
29988
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
30003
|
-
function
|
|
30004
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
29989
|
+
function XJ({ node: e, name: t }) {
|
|
29990
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = KJ(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = UJ(n, t);
|
|
30005
29991
|
function h() {
|
|
30006
29992
|
let e = {};
|
|
30007
|
-
for (let t of p) e[t] =
|
|
29993
|
+
for (let t of p) e[t] = GJ(f[t]);
|
|
30008
29994
|
a(e, { shouldFocus: !1 });
|
|
30009
29995
|
}
|
|
30010
29996
|
return /* @__PURE__ */ W(TI, {
|
|
@@ -30016,16 +30002,16 @@ function QJ({ node: e, name: t }) {
|
|
|
30016
30002
|
children: m
|
|
30017
30003
|
}),
|
|
30018
30004
|
n.description && /* @__PURE__ */ U(NI, { children: n.description }),
|
|
30019
|
-
n.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30005
|
+
n.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: n.gioConfig.banner }),
|
|
30020
30006
|
/* @__PURE__ */ U("div", {
|
|
30021
30007
|
className: "overflow-hidden rounded-lg border",
|
|
30022
30008
|
children: /* @__PURE__ */ W($H, { children: [/* @__PURE__ */ U(eU, { children: /* @__PURE__ */ W(rU, { children: [p.map((e) => /* @__PURE__ */ U(iU, {
|
|
30023
30009
|
scope: "col",
|
|
30024
|
-
children:
|
|
30010
|
+
children: $J(f[e], e)
|
|
30025
30011
|
}, e)), /* @__PURE__ */ U(iU, {
|
|
30026
30012
|
"aria-hidden": "true",
|
|
30027
30013
|
className: "w-px"
|
|
30028
|
-
})] }) }), /* @__PURE__ */ U(tU, { children: i.map((e, t) => /* @__PURE__ */ U(
|
|
30014
|
+
})] }) }), /* @__PURE__ */ U(tU, { children: i.map((e, t) => /* @__PURE__ */ U(ZJ, {
|
|
30029
30015
|
rowIndex: t,
|
|
30030
30016
|
rowPath: `${r}.${t}`,
|
|
30031
30017
|
columnKeys: p,
|
|
@@ -30043,12 +30029,12 @@ function QJ({ node: e, name: t }) {
|
|
|
30043
30029
|
onClick: h,
|
|
30044
30030
|
children: [/* @__PURE__ */ U(k, { "aria-hidden": "true" }), "Add"]
|
|
30045
30031
|
}) }),
|
|
30046
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30032
|
+
/* @__PURE__ */ U(FI, { errors: BJ(s.error) })
|
|
30047
30033
|
]
|
|
30048
30034
|
});
|
|
30049
30035
|
}
|
|
30050
|
-
function
|
|
30051
|
-
return /* @__PURE__ */ W(rU, { children: [n.map((n) => /* @__PURE__ */ U(
|
|
30036
|
+
function ZJ({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
30037
|
+
return /* @__PURE__ */ W(rU, { children: [n.map((n) => /* @__PURE__ */ U(QJ, {
|
|
30052
30038
|
columnKey: n,
|
|
30053
30039
|
cellPath: `${t}.${n}`,
|
|
30054
30040
|
propSchema: r[n],
|
|
@@ -30067,7 +30053,7 @@ function $J({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
30067
30053
|
})
|
|
30068
30054
|
})] });
|
|
30069
30055
|
}
|
|
30070
|
-
function
|
|
30056
|
+
function QJ({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
30071
30057
|
let { control: a } = xJ(), { field: o, fieldState: s } = Lq({
|
|
30072
30058
|
control: a,
|
|
30073
30059
|
name: t
|
|
@@ -30080,21 +30066,21 @@ function eY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
30080
30066
|
onBlur: l,
|
|
30081
30067
|
disabled: i,
|
|
30082
30068
|
"aria-invalid": s.invalid,
|
|
30083
|
-
"aria-label": `${
|
|
30069
|
+
"aria-label": `${$J(n, e)} for row ${r + 1}`,
|
|
30084
30070
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
30085
30071
|
}) });
|
|
30086
30072
|
}
|
|
30087
|
-
function
|
|
30073
|
+
function $J(e, t) {
|
|
30088
30074
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
30089
30075
|
}
|
|
30090
30076
|
//#endregion
|
|
30091
30077
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
30092
|
-
function
|
|
30078
|
+
function eY({ node: e, name: t }) {
|
|
30093
30079
|
let { control: n, basePath: r, disabled: i } = xJ(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = Lq({
|
|
30094
30080
|
control: n,
|
|
30095
30081
|
name: o,
|
|
30096
30082
|
defaultValue: typeof a.default == "boolean" ? a.default : !1
|
|
30097
|
-
}), l =
|
|
30083
|
+
}), l = UJ(a, t), u = i || a.readOnly === !0;
|
|
30098
30084
|
return /* @__PURE__ */ W(kI, {
|
|
30099
30085
|
orientation: "horizontal",
|
|
30100
30086
|
"data-invalid": c.invalid,
|
|
@@ -30110,43 +30096,43 @@ function nY({ node: e, name: t }) {
|
|
|
30110
30096
|
htmlFor: o,
|
|
30111
30097
|
children: l
|
|
30112
30098
|
}),
|
|
30113
|
-
a.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30099
|
+
a.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: a.gioConfig.banner }),
|
|
30114
30100
|
a.description && /* @__PURE__ */ U(NI, { children: a.description }),
|
|
30115
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30101
|
+
/* @__PURE__ */ U(FI, { errors: BJ(c.error) })
|
|
30116
30102
|
] })]
|
|
30117
30103
|
});
|
|
30118
30104
|
}
|
|
30119
30105
|
//#endregion
|
|
30120
30106
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
30121
|
-
function
|
|
30107
|
+
function tY(e) {
|
|
30122
30108
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
30123
30109
|
}
|
|
30124
|
-
function
|
|
30110
|
+
function nY(e) {
|
|
30125
30111
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
30126
30112
|
}
|
|
30127
|
-
function
|
|
30113
|
+
function rY(e) {
|
|
30128
30114
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
30129
30115
|
}
|
|
30130
|
-
function
|
|
30131
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
30116
|
+
function iY(e) {
|
|
30117
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !tY(e);
|
|
30132
30118
|
}
|
|
30133
|
-
function
|
|
30119
|
+
function aY(e) {
|
|
30134
30120
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
30135
30121
|
}
|
|
30136
30122
|
//#endregion
|
|
30137
30123
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
30138
|
-
function
|
|
30124
|
+
function oY(e, t) {
|
|
30139
30125
|
let n = t?.[String(e)];
|
|
30140
30126
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
30141
30127
|
}
|
|
30142
|
-
function
|
|
30128
|
+
function sY(e, t) {
|
|
30143
30129
|
return e.map((e, n) => ({
|
|
30144
30130
|
raw: e,
|
|
30145
30131
|
key: String(n),
|
|
30146
|
-
label:
|
|
30132
|
+
label: oY(e, t)
|
|
30147
30133
|
}));
|
|
30148
30134
|
}
|
|
30149
|
-
function
|
|
30135
|
+
function cY(e) {
|
|
30150
30136
|
return e.map((e, t) => ({
|
|
30151
30137
|
raw: e.const,
|
|
30152
30138
|
key: String(t),
|
|
@@ -30155,12 +30141,12 @@ function uY(e) {
|
|
|
30155
30141
|
}
|
|
30156
30142
|
//#endregion
|
|
30157
30143
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
30158
|
-
function
|
|
30144
|
+
function lY({ node: e, name: t }) {
|
|
30159
30145
|
let { control: n, basePath: r, disabled: i } = xJ(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = Lq({
|
|
30160
30146
|
control: n,
|
|
30161
30147
|
name: o,
|
|
30162
30148
|
defaultValue: a.default
|
|
30163
|
-
}), { ref: l, onBlur: u } = s, d =
|
|
30149
|
+
}), { ref: l, onBlur: u } = s, d = UJ(a, t), f = i || a.readOnly === !0, p = uY(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
30164
30150
|
return /* @__PURE__ */ W(kI, {
|
|
30165
30151
|
"data-invalid": c.invalid,
|
|
30166
30152
|
children: [
|
|
@@ -30169,7 +30155,7 @@ function dY({ node: e, name: t }) {
|
|
|
30169
30155
|
required: a.isRequired,
|
|
30170
30156
|
children: d
|
|
30171
30157
|
}),
|
|
30172
|
-
a.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30158
|
+
a.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: a.gioConfig.banner }),
|
|
30173
30159
|
/* @__PURE__ */ W(pV, {
|
|
30174
30160
|
value: m,
|
|
30175
30161
|
onValueChange: (e) => s.onChange(h(e)),
|
|
@@ -30187,22 +30173,22 @@ function dY({ node: e, name: t }) {
|
|
|
30187
30173
|
}, e.key)) })]
|
|
30188
30174
|
}),
|
|
30189
30175
|
a.description && /* @__PURE__ */ U(NI, { children: a.description }),
|
|
30190
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30176
|
+
/* @__PURE__ */ U(FI, { errors: BJ(c.error) })
|
|
30191
30177
|
]
|
|
30192
30178
|
});
|
|
30193
30179
|
}
|
|
30194
|
-
function
|
|
30195
|
-
return
|
|
30180
|
+
function uY(e) {
|
|
30181
|
+
return tY(e) ? cY(e.oneOf ?? []) : sY(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
30196
30182
|
}
|
|
30197
30183
|
//#endregion
|
|
30198
30184
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
30199
|
-
function
|
|
30185
|
+
function dY({ node: e, name: t }) {
|
|
30200
30186
|
let { control: n, basePath: r, disabled: i } = xJ(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = Lq({
|
|
30201
30187
|
control: n,
|
|
30202
30188
|
name: o,
|
|
30203
30189
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
30204
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = QA(), m =
|
|
30205
|
-
return
|
|
30190
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = QA(), m = UJ(a, t), h = i || a.readOnly === !0, g = a.items, _ = sY(g.enum ?? [], g.gioConfig?.enumLabelMap), v = _.map((e) => e.label), y = (e) => _.find((t) => t.label === e)?.raw, b = (e) => _.find((t) => Object.is(t.raw, e))?.label, x = (Array.isArray(s.value) ? s.value : []).map((e) => b(e)).filter((e) => e !== void 0);
|
|
30191
|
+
return fY({
|
|
30206
30192
|
schema: a,
|
|
30207
30193
|
options: _,
|
|
30208
30194
|
value: f,
|
|
@@ -30215,7 +30201,7 @@ function pY({ node: e, name: t }) {
|
|
|
30215
30201
|
required: a.isRequired,
|
|
30216
30202
|
children: m
|
|
30217
30203
|
}),
|
|
30218
|
-
a.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30204
|
+
a.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: a.gioConfig.banner }),
|
|
30219
30205
|
/* @__PURE__ */ W(IA, {
|
|
30220
30206
|
multiple: !0,
|
|
30221
30207
|
autoHighlight: !0,
|
|
@@ -30248,27 +30234,27 @@ function pY({ node: e, name: t }) {
|
|
|
30248
30234
|
})]
|
|
30249
30235
|
}),
|
|
30250
30236
|
a.description && /* @__PURE__ */ U(NI, { children: a.description }),
|
|
30251
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30237
|
+
/* @__PURE__ */ U(FI, { errors: BJ(c.error) })
|
|
30252
30238
|
]
|
|
30253
30239
|
});
|
|
30254
30240
|
}
|
|
30255
|
-
function
|
|
30241
|
+
function fY({ schema: e, options: t, value: n, onReset: r }) {
|
|
30256
30242
|
z(() => {
|
|
30257
30243
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
30258
30244
|
}, [e]);
|
|
30259
30245
|
}
|
|
30260
30246
|
//#endregion
|
|
30261
30247
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
30262
|
-
function
|
|
30248
|
+
function pY() {
|
|
30263
30249
|
return null;
|
|
30264
30250
|
}
|
|
30265
30251
|
//#endregion
|
|
30266
30252
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
30267
|
-
function
|
|
30253
|
+
function mY({ node: e, name: t }) {
|
|
30268
30254
|
let { control: n, basePath: r, disabled: i } = xJ(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = Lq({
|
|
30269
30255
|
control: n,
|
|
30270
30256
|
name: o
|
|
30271
|
-
}), l =
|
|
30257
|
+
}), l = UJ(a, t), u = i || a.readOnly === !0, d = (e) => {
|
|
30272
30258
|
let t = e.target.value;
|
|
30273
30259
|
if (t === "") {
|
|
30274
30260
|
s.onChange(null);
|
|
@@ -30285,7 +30271,7 @@ function gY({ node: e, name: t }) {
|
|
|
30285
30271
|
required: a.isRequired,
|
|
30286
30272
|
children: l
|
|
30287
30273
|
}),
|
|
30288
|
-
a.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30274
|
+
a.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: a.gioConfig.banner }),
|
|
30289
30275
|
/* @__PURE__ */ U(EA, {
|
|
30290
30276
|
id: o,
|
|
30291
30277
|
type: "number",
|
|
@@ -30301,21 +30287,21 @@ function gY({ node: e, name: t }) {
|
|
|
30301
30287
|
placeholder: (Array.isArray(a.examples) && a.examples[0] !== void 0 && a.examples[0] !== null ? String(a.examples[0]) : void 0) ?? (a.default !== void 0 && a.default !== null ? String(a.default) : void 0)
|
|
30302
30288
|
}),
|
|
30303
30289
|
a.description && /* @__PURE__ */ U(NI, { children: a.description }),
|
|
30304
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30290
|
+
/* @__PURE__ */ U(FI, { errors: BJ(c.error) })
|
|
30305
30291
|
]
|
|
30306
30292
|
});
|
|
30307
30293
|
}
|
|
30308
30294
|
//#endregion
|
|
30309
30295
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
30310
|
-
function
|
|
30296
|
+
function hY(e, t, n, r) {
|
|
30311
30297
|
if (e.length === 0) return -1;
|
|
30312
30298
|
let i = n?.get(t);
|
|
30313
|
-
return
|
|
30299
|
+
return gY(i, e) && _Y(e[i], r) ? i : vY(e, r);
|
|
30314
30300
|
}
|
|
30315
|
-
function
|
|
30301
|
+
function gY(e, t) {
|
|
30316
30302
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
30317
30303
|
}
|
|
30318
|
-
function
|
|
30304
|
+
function _Y(e, t) {
|
|
30319
30305
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
30320
30306
|
if (n.const !== void 0) return t(e) === n.const;
|
|
30321
30307
|
if (typeof n.pattern == "string") {
|
|
@@ -30325,18 +30311,18 @@ function yY(e, t) {
|
|
|
30325
30311
|
return !0;
|
|
30326
30312
|
});
|
|
30327
30313
|
}
|
|
30328
|
-
function
|
|
30314
|
+
function vY(e, t) {
|
|
30329
30315
|
let n = 0, r = {
|
|
30330
30316
|
viable: !1,
|
|
30331
30317
|
matches: -1
|
|
30332
30318
|
};
|
|
30333
30319
|
return e.forEach((e, i) => {
|
|
30334
|
-
let a =
|
|
30335
|
-
|
|
30320
|
+
let a = yY(e, t);
|
|
30321
|
+
bY(a, r) > 0 && (n = i, r = a);
|
|
30336
30322
|
}), n;
|
|
30337
30323
|
}
|
|
30338
|
-
function
|
|
30339
|
-
return
|
|
30324
|
+
function yY(e, t) {
|
|
30325
|
+
return _Y(e, t) ? {
|
|
30340
30326
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
30341
30327
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
30342
30328
|
} : {
|
|
@@ -30344,13 +30330,13 @@ function xY(e, t) {
|
|
|
30344
30330
|
matches: -1
|
|
30345
30331
|
};
|
|
30346
30332
|
}
|
|
30347
|
-
function
|
|
30333
|
+
function bY(e, t) {
|
|
30348
30334
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
30349
30335
|
}
|
|
30350
30336
|
//#endregion
|
|
30351
30337
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30352
|
-
function
|
|
30353
|
-
let n = xJ(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = oe(() =>
|
|
30338
|
+
function xY({ node: e, depth: t }) {
|
|
30339
|
+
let n = xJ(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = oe(() => hY(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = B(() => c.map((e) => (e.dependencyBranches ?? []).map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e))), [c, a]);
|
|
30354
30340
|
if (c.length === 0) return null;
|
|
30355
30341
|
let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
30356
30342
|
if (e === l) return;
|
|
@@ -30381,21 +30367,21 @@ function CY({ node: e, depth: t }) {
|
|
|
30381
30367
|
}, t)) })]
|
|
30382
30368
|
}),
|
|
30383
30369
|
t === 0 && o.description && /* @__PURE__ */ U(NI, { children: o.description }),
|
|
30384
|
-
o.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30370
|
+
o.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: o.gioConfig.banner })
|
|
30385
30371
|
] }),
|
|
30386
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ U(
|
|
30372
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ U(SY, {
|
|
30387
30373
|
path: a ? `${a}.${e}` : e,
|
|
30388
30374
|
value: t
|
|
30389
30375
|
}, e)),
|
|
30390
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ U(
|
|
30376
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ U(EY, {
|
|
30391
30377
|
node: n,
|
|
30392
30378
|
name: e,
|
|
30393
30379
|
depth: t + 1
|
|
30394
30380
|
}, `${l}-${e}`)),
|
|
30395
|
-
p.map((e, n) => /* @__PURE__ */ U(
|
|
30396
|
-
condition:
|
|
30381
|
+
p.map((e, n) => /* @__PURE__ */ U(CJ, {
|
|
30382
|
+
condition: EJ(e.showIf, a),
|
|
30397
30383
|
unregisterOnHide: d[l]?.[n],
|
|
30398
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(
|
|
30384
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(EY, {
|
|
30399
30385
|
node: n,
|
|
30400
30386
|
name: e,
|
|
30401
30387
|
depth: t + 1
|
|
@@ -30403,7 +30389,7 @@ function CY({ node: e, depth: t }) {
|
|
|
30403
30389
|
}, `${l}-var-dep-${n}`))
|
|
30404
30390
|
] });
|
|
30405
30391
|
}
|
|
30406
|
-
function
|
|
30392
|
+
function SY({ path: e, value: t }) {
|
|
30407
30393
|
let { control: n } = xJ(), { field: r } = Lq({
|
|
30408
30394
|
control: n,
|
|
30409
30395
|
name: e
|
|
@@ -30414,28 +30400,28 @@ function wY({ path: e, value: t }) {
|
|
|
30414
30400
|
}
|
|
30415
30401
|
//#endregion
|
|
30416
30402
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30417
|
-
function
|
|
30418
|
-
let r = xJ(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o =
|
|
30403
|
+
function CY({ node: e, name: t, depth: n }) {
|
|
30404
|
+
let r = xJ(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = iY(i) || aY(i), s = B(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = B(() => s.map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e)), [s, a]), u = (e.properties || o || c) && /* @__PURE__ */ U(bJ.Provider, {
|
|
30419
30405
|
value: {
|
|
30420
30406
|
...r,
|
|
30421
30407
|
basePath: a
|
|
30422
30408
|
},
|
|
30423
30409
|
children: /* @__PURE__ */ W(DI, { children: [
|
|
30424
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30410
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(EY, {
|
|
30425
30411
|
node: t,
|
|
30426
30412
|
name: e,
|
|
30427
30413
|
depth: n + 1
|
|
30428
30414
|
}, e)),
|
|
30429
|
-
s.map((e, t) => /* @__PURE__ */ U(
|
|
30430
|
-
condition:
|
|
30415
|
+
s.map((e, t) => /* @__PURE__ */ U(CJ, {
|
|
30416
|
+
condition: EJ(e.showIf, a),
|
|
30431
30417
|
unregisterOnHide: l[t],
|
|
30432
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30418
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(EY, {
|
|
30433
30419
|
node: t,
|
|
30434
30420
|
name: e,
|
|
30435
30421
|
depth: n + 1
|
|
30436
30422
|
}, e))
|
|
30437
30423
|
}, `dep-${t}`)),
|
|
30438
|
-
o && /* @__PURE__ */ U(
|
|
30424
|
+
o && /* @__PURE__ */ U(xY, {
|
|
30439
30425
|
node: e,
|
|
30440
30426
|
depth: n
|
|
30441
30427
|
})
|
|
@@ -30447,17 +30433,17 @@ function TY({ node: e, name: t, depth: n }) {
|
|
|
30447
30433
|
/* @__PURE__ */ U(EI, {
|
|
30448
30434
|
className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
30449
30435
|
required: i.isRequired,
|
|
30450
|
-
children:
|
|
30436
|
+
children: UJ(i, t)
|
|
30451
30437
|
}),
|
|
30452
30438
|
i.description && /* @__PURE__ */ U(NI, { children: i.description }),
|
|
30453
|
-
i.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30439
|
+
i.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: i.gioConfig.banner }),
|
|
30454
30440
|
u
|
|
30455
30441
|
]
|
|
30456
30442
|
});
|
|
30457
30443
|
}
|
|
30458
30444
|
//#endregion
|
|
30459
30445
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30460
|
-
function
|
|
30446
|
+
function wY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
30461
30447
|
let [s, c] = oe(!1);
|
|
30462
30448
|
return /* @__PURE__ */ W(OA, {
|
|
30463
30449
|
className: e,
|
|
@@ -30483,14 +30469,14 @@ function EY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30483
30469
|
})]
|
|
30484
30470
|
});
|
|
30485
30471
|
}
|
|
30486
|
-
|
|
30472
|
+
wY.displayName = "PasswordInput";
|
|
30487
30473
|
//#endregion
|
|
30488
30474
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30489
|
-
function
|
|
30475
|
+
function TY({ node: e, name: t }) {
|
|
30490
30476
|
let { control: n, basePath: r, disabled: i } = xJ(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = Lq({
|
|
30491
30477
|
control: n,
|
|
30492
30478
|
name: o
|
|
30493
|
-
}), l =
|
|
30479
|
+
}), l = UJ(a, t), u = i || a.readOnly === !0, d = c.invalid, f = typeof s.value == "string" ? s.value : "", p = (Array.isArray(a.examples) && a.examples[0] !== void 0 && a.examples[0] !== null ? String(a.examples[0]) : void 0) ?? (a.default !== void 0 && a.default !== null ? String(a.default) : void 0), m = {
|
|
30494
30480
|
id: o,
|
|
30495
30481
|
value: f,
|
|
30496
30482
|
onChange: s.onChange,
|
|
@@ -30510,8 +30496,8 @@ function DY({ node: e, name: t }) {
|
|
|
30510
30496
|
required: a.isRequired,
|
|
30511
30497
|
children: l
|
|
30512
30498
|
}),
|
|
30513
|
-
a.gioConfig?.banner && /* @__PURE__ */ U(
|
|
30514
|
-
a.format === "text" ? /* @__PURE__ */ U(DA, { ...m }) : a.format === "password" ? /* @__PURE__ */ U(
|
|
30499
|
+
a.gioConfig?.banner && /* @__PURE__ */ U(WJ, { banner: a.gioConfig.banner }),
|
|
30500
|
+
a.format === "text" ? /* @__PURE__ */ U(DA, { ...m }) : a.format === "password" ? /* @__PURE__ */ U(wY, {
|
|
30515
30501
|
...m,
|
|
30516
30502
|
pattern: a.pattern
|
|
30517
30503
|
}) : /* @__PURE__ */ U(EA, {
|
|
@@ -30520,144 +30506,144 @@ function DY({ node: e, name: t }) {
|
|
|
30520
30506
|
pattern: a.pattern
|
|
30521
30507
|
}),
|
|
30522
30508
|
a.description && /* @__PURE__ */ U(NI, { children: a.description }),
|
|
30523
|
-
/* @__PURE__ */ U(FI, { errors:
|
|
30509
|
+
/* @__PURE__ */ U(FI, { errors: BJ(c.error) })
|
|
30524
30510
|
]
|
|
30525
30511
|
});
|
|
30526
30512
|
}
|
|
30527
30513
|
//#endregion
|
|
30528
30514
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30529
|
-
function
|
|
30530
|
-
let { basePath: r } = xJ(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ?
|
|
30515
|
+
function EY({ node: e, name: t, depth: n = 0 }) {
|
|
30516
|
+
let { basePath: r } = xJ(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? EJ(e.displayIf, r) : void 0, [e.displayIf, r]), l = B(() => e.disableIf ? EJ(e.disableIf, r) : void 0, [e.disableIf, r]);
|
|
30531
30517
|
if (i.deprecated === !0) return null;
|
|
30532
|
-
let u =
|
|
30533
|
-
return u === null ? null : (l && (u = /* @__PURE__ */ U(
|
|
30518
|
+
let u = DY(e, a, t, n);
|
|
30519
|
+
return u === null ? null : (l && (u = /* @__PURE__ */ U(wJ, {
|
|
30534
30520
|
condition: l,
|
|
30535
30521
|
children: u
|
|
30536
|
-
})), c ? /* @__PURE__ */ U(
|
|
30522
|
+
})), c ? /* @__PURE__ */ U(CJ, {
|
|
30537
30523
|
condition: c,
|
|
30538
30524
|
unregisterOnHide: s,
|
|
30539
30525
|
children: u
|
|
30540
30526
|
}) : u);
|
|
30541
30527
|
}
|
|
30542
|
-
function
|
|
30543
|
-
let { schema: i } = e, a =
|
|
30544
|
-
return Array.isArray(i.enum) && i.enum.length > 0 ||
|
|
30528
|
+
function DY(e, t, n, r) {
|
|
30529
|
+
let { schema: i } = e, a = OY(i.type);
|
|
30530
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || tY(i) ? /* @__PURE__ */ U(lY, {
|
|
30545
30531
|
node: e,
|
|
30546
30532
|
name: t
|
|
30547
|
-
}) :
|
|
30533
|
+
}) : nY(i) ? /* @__PURE__ */ U(dY, {
|
|
30548
30534
|
node: e,
|
|
30549
30535
|
name: t
|
|
30550
|
-
}) :
|
|
30536
|
+
}) : rY(i) ? /* @__PURE__ */ U(XJ, {
|
|
30551
30537
|
node: e,
|
|
30552
30538
|
name: t
|
|
30553
|
-
}) : a === "null" ? /* @__PURE__ */ U(
|
|
30539
|
+
}) : a === "null" ? /* @__PURE__ */ U(pY, {}) : a === "boolean" ? /* @__PURE__ */ U(eY, {
|
|
30554
30540
|
node: e,
|
|
30555
30541
|
name: t
|
|
30556
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ U(
|
|
30542
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ U(mY, {
|
|
30557
30543
|
node: e,
|
|
30558
30544
|
name: t
|
|
30559
|
-
}) : a === "string" ? /* @__PURE__ */ U(
|
|
30545
|
+
}) : a === "string" ? /* @__PURE__ */ U(TY, {
|
|
30560
30546
|
node: e,
|
|
30561
30547
|
name: t
|
|
30562
|
-
}) : i.properties || a === "object" ||
|
|
30548
|
+
}) : i.properties || a === "object" || iY(i) || aY(i) ? /* @__PURE__ */ U(CY, {
|
|
30563
30549
|
node: e,
|
|
30564
30550
|
name: n,
|
|
30565
30551
|
depth: r
|
|
30566
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ U(
|
|
30552
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ U(qJ, {
|
|
30567
30553
|
node: e,
|
|
30568
30554
|
name: n,
|
|
30569
30555
|
depth: r
|
|
30570
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
30556
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${kY(i)}). Field is omitted.`), null);
|
|
30571
30557
|
}
|
|
30572
|
-
function
|
|
30558
|
+
function OY(e) {
|
|
30573
30559
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30574
30560
|
}
|
|
30575
|
-
function
|
|
30561
|
+
function kY(e) {
|
|
30576
30562
|
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : e.const === void 0 ? "unknown" : "const";
|
|
30577
30563
|
}
|
|
30578
30564
|
//#endregion
|
|
30579
30565
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
30580
|
-
function
|
|
30581
|
-
return
|
|
30566
|
+
function AY(e) {
|
|
30567
|
+
return jY(e);
|
|
30582
30568
|
}
|
|
30583
|
-
function
|
|
30569
|
+
function jY(e) {
|
|
30584
30570
|
let t = { ...e };
|
|
30585
30571
|
if (t.properties) {
|
|
30586
30572
|
let e = new Set(t.required ?? []), n = {};
|
|
30587
30573
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
30588
|
-
let t =
|
|
30574
|
+
let t = jY(i);
|
|
30589
30575
|
e.has(r) && (t.isRequired = !0, t.type === "string" && t.minLength === void 0 && t.const === void 0 && !Array.isArray(t.enum) && !Array.isArray(t.oneOf) && !Array.isArray(t.anyOf) && (t.minLength = 1), t.type === "array" && t.minItems === void 0 && t.const === void 0 && !Array.isArray(t.enum) && (t.minItems = 1)), n[r] = t;
|
|
30590
30576
|
}
|
|
30591
30577
|
t.properties = n;
|
|
30592
30578
|
}
|
|
30593
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
30579
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(jY) : jY(t.items), t.oneOf &&= t.oneOf.map(jY), t.anyOf &&= t.anyOf.map(jY), t.allOf &&= t.allOf.map(jY), t.dependencies &&= DJ(t.dependencies, jY), t;
|
|
30594
30580
|
}
|
|
30595
30581
|
//#endregion
|
|
30596
30582
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
30597
|
-
function
|
|
30583
|
+
function MY(e) {
|
|
30598
30584
|
if (e.deprecated === !0) return { deprecated: !0 };
|
|
30599
30585
|
let t = { ...e };
|
|
30600
30586
|
if (e.properties) {
|
|
30601
30587
|
let n = [];
|
|
30602
30588
|
t.properties = {};
|
|
30603
|
-
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] =
|
|
30589
|
+
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = MY(i);
|
|
30604
30590
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
30605
30591
|
}
|
|
30606
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
30592
|
+
return e.items && !Array.isArray(e.items) && (t.items = MY(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(MY)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(MY)), e.dependencies && (t.dependencies = DJ(e.dependencies, MY)), t;
|
|
30607
30593
|
}
|
|
30608
30594
|
//#endregion
|
|
30609
30595
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
30610
|
-
function
|
|
30611
|
-
let n = MY(
|
|
30596
|
+
function NY(e, t = "") {
|
|
30597
|
+
let n = AY(MY(OJ(FJ(e)))), r = /* @__PURE__ */ new Map();
|
|
30612
30598
|
return {
|
|
30613
|
-
root:
|
|
30599
|
+
root: PY(n, "", !1, r, "", t),
|
|
30614
30600
|
nodeByPath: r,
|
|
30615
30601
|
variantIndices: /* @__PURE__ */ new Map()
|
|
30616
30602
|
};
|
|
30617
30603
|
}
|
|
30618
|
-
function
|
|
30604
|
+
function PY(e, t, n, r, i = "", a = "") {
|
|
30619
30605
|
let o = {
|
|
30620
30606
|
rhfPath: t,
|
|
30621
30607
|
schema: e,
|
|
30622
30608
|
isRequired: n
|
|
30623
30609
|
};
|
|
30624
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
30610
|
+
if (e.gioConfig?.displayIf && (o.displayIf = zY(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = zY(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
30625
30611
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
30626
30612
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
30627
30613
|
let e = t ? `${t}.${o}` : o;
|
|
30628
|
-
i.set(o,
|
|
30614
|
+
i.set(o, PY(s, e, n.has(o), r, t, a));
|
|
30629
30615
|
}
|
|
30630
30616
|
o.properties = i;
|
|
30631
30617
|
}
|
|
30632
30618
|
if (e.items && !Array.isArray(e.items)) {
|
|
30633
30619
|
let n = t ? `${t}.*` : "*";
|
|
30634
|
-
o.items =
|
|
30620
|
+
o.items = PY(e.items, n, !1, r, t, a);
|
|
30635
30621
|
}
|
|
30636
30622
|
let s = e.oneOf ?? e.anyOf;
|
|
30637
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
30638
|
-
let n =
|
|
30623
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = FY(s).map((e) => IY(e, t, a))), e.dependencies) {
|
|
30624
|
+
let n = VY(e.dependencies, t, a);
|
|
30639
30625
|
n.length > 0 && (o.dependencyBranches = n);
|
|
30640
30626
|
}
|
|
30641
30627
|
return r.set(t, o), o;
|
|
30642
30628
|
}
|
|
30643
|
-
function
|
|
30629
|
+
function FY(e) {
|
|
30644
30630
|
let t = /* @__PURE__ */ new Set();
|
|
30645
30631
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
30646
30632
|
}
|
|
30647
|
-
function
|
|
30633
|
+
function IY(e, t, n) {
|
|
30648
30634
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
30649
30635
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
30650
|
-
let e =
|
|
30636
|
+
let e = LY(s);
|
|
30651
30637
|
e && a.push({
|
|
30652
30638
|
key: o,
|
|
30653
30639
|
value: e.value
|
|
30654
30640
|
});
|
|
30655
30641
|
let c = t ? `${t}.${o}` : o;
|
|
30656
|
-
i.set(o,
|
|
30642
|
+
i.set(o, RY(s, c, r.has(o), t, n));
|
|
30657
30643
|
}
|
|
30658
30644
|
let o;
|
|
30659
30645
|
if (e.dependencies) {
|
|
30660
|
-
let r =
|
|
30646
|
+
let r = VY(e.dependencies, t, n);
|
|
30661
30647
|
r.length > 0 && (o = r);
|
|
30662
30648
|
}
|
|
30663
30649
|
return {
|
|
@@ -30668,33 +30654,26 @@ function RY(e, t, n) {
|
|
|
30668
30654
|
raw: e
|
|
30669
30655
|
};
|
|
30670
30656
|
}
|
|
30671
|
-
function
|
|
30657
|
+
function LY(e) {
|
|
30672
30658
|
if (e.const !== void 0) return { value: e.const };
|
|
30673
30659
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
30674
30660
|
}
|
|
30675
|
-
function
|
|
30676
|
-
return
|
|
30661
|
+
function RY(e, t, n, r, i) {
|
|
30662
|
+
return PY(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
30677
30663
|
}
|
|
30678
|
-
function
|
|
30679
|
-
let r = /* @__PURE__ */ new Map()
|
|
30680
|
-
for (let [
|
|
30681
|
-
|
|
30682
|
-
i.set(a.slice(8), o);
|
|
30683
|
-
continue;
|
|
30684
|
-
}
|
|
30685
|
-
let e = HY(a, t, n);
|
|
30664
|
+
function zY(e, t, n) {
|
|
30665
|
+
let r = /* @__PURE__ */ new Map();
|
|
30666
|
+
for (let [i, a] of Object.entries(e.$eq)) {
|
|
30667
|
+
let e = BY(i, t, n);
|
|
30686
30668
|
if (e === null) {
|
|
30687
|
-
console.warn(`[JsonSchemaForm] gioConfig path "${
|
|
30669
|
+
console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
|
|
30688
30670
|
continue;
|
|
30689
30671
|
}
|
|
30690
|
-
r.set(e,
|
|
30672
|
+
r.set(e, a);
|
|
30691
30673
|
}
|
|
30692
|
-
return
|
|
30693
|
-
$eq: r,
|
|
30694
|
-
$eqContext: i
|
|
30695
|
-
} : { $eq: r };
|
|
30674
|
+
return { $eq: r };
|
|
30696
30675
|
}
|
|
30697
|
-
function
|
|
30676
|
+
function BY(e, t, n) {
|
|
30698
30677
|
let r = null;
|
|
30699
30678
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
30700
30679
|
else if (e.startsWith("./")) {
|
|
@@ -30708,24 +30687,24 @@ function HY(e, t, n) {
|
|
|
30708
30687
|
}
|
|
30709
30688
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
30710
30689
|
}
|
|
30711
|
-
function
|
|
30690
|
+
function VY(e, t, n) {
|
|
30712
30691
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
30713
|
-
let i =
|
|
30692
|
+
let i = HY(e, r);
|
|
30714
30693
|
if (!i) return [];
|
|
30715
30694
|
let a = t ? `${t}.${e}` : e;
|
|
30716
|
-
return i.map((r) =>
|
|
30695
|
+
return i.map((r) => UY(r, e, a, t, n));
|
|
30717
30696
|
});
|
|
30718
30697
|
}
|
|
30719
|
-
function
|
|
30698
|
+
function HY(e, t) {
|
|
30720
30699
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
30721
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
30700
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && LY(t.properties[e]) !== void 0) ? n.oneOf : (console.warn(`[JsonSchemaForm] dependencies."${e}".oneOf has at least one variant missing a \`const\` (or single-value \`enum\`) discriminator on "${e}". Skipping the whole dependency (no partial unfold).`), null) : (console.warn(`[JsonSchemaForm] dependencies."${e}" is not a discriminator-oneOf shape (only \`{ oneOf: [...] }\` with const discriminators is supported). Skipping.`), null);
|
|
30722
30701
|
}
|
|
30723
|
-
function
|
|
30724
|
-
let a =
|
|
30702
|
+
function UY(e, t, n, r, i) {
|
|
30703
|
+
let a = LY(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
30725
30704
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
30726
30705
|
if (n === t) continue;
|
|
30727
30706
|
let e = r ? `${r}.${n}` : n;
|
|
30728
|
-
s.set(n,
|
|
30707
|
+
s.set(n, RY(a, e, o.has(n), r, i));
|
|
30729
30708
|
}
|
|
30730
30709
|
let c = i ? `${i}.${n}` : n;
|
|
30731
30710
|
return {
|
|
@@ -30736,12 +30715,20 @@ function GY(e, t, n, r, i) {
|
|
|
30736
30715
|
}
|
|
30737
30716
|
//#endregion
|
|
30738
30717
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30739
|
-
function
|
|
30718
|
+
function WY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
30740
30719
|
let a = B(() => {
|
|
30741
30720
|
try {
|
|
30721
|
+
let a = NY(e, n);
|
|
30742
30722
|
return {
|
|
30743
30723
|
ok: !0,
|
|
30744
|
-
|
|
30724
|
+
contextValue: {
|
|
30725
|
+
control: t,
|
|
30726
|
+
basePath: n,
|
|
30727
|
+
disabled: r,
|
|
30728
|
+
externalContext: i,
|
|
30729
|
+
index: a
|
|
30730
|
+
},
|
|
30731
|
+
root: a.root
|
|
30745
30732
|
};
|
|
30746
30733
|
} catch (e) {
|
|
30747
30734
|
return {
|
|
@@ -30749,37 +30736,25 @@ function KY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
30749
30736
|
error: e instanceof Error ? e.message : "Unknown schema error"
|
|
30750
30737
|
};
|
|
30751
30738
|
}
|
|
30752
|
-
}, [e, n]), o = B(() => a.ok ? {
|
|
30753
|
-
ok: !0,
|
|
30754
|
-
contextValue: {
|
|
30755
|
-
control: t,
|
|
30756
|
-
basePath: n,
|
|
30757
|
-
disabled: r,
|
|
30758
|
-
externalContext: i,
|
|
30759
|
-
index: a.value
|
|
30760
|
-
}
|
|
30761
|
-
} : {
|
|
30762
|
-
ok: !1,
|
|
30763
|
-
error: a.error
|
|
30764
30739
|
}, [
|
|
30765
|
-
|
|
30740
|
+
e,
|
|
30766
30741
|
t,
|
|
30767
30742
|
n,
|
|
30768
30743
|
r,
|
|
30769
30744
|
i
|
|
30770
30745
|
]);
|
|
30771
|
-
return
|
|
30772
|
-
value:
|
|
30773
|
-
children: /* @__PURE__ */ U(
|
|
30746
|
+
return a.ok ? /* @__PURE__ */ U(bJ.Provider, {
|
|
30747
|
+
value: a.contextValue,
|
|
30748
|
+
children: /* @__PURE__ */ U(EY, { node: a.root })
|
|
30774
30749
|
}) : /* @__PURE__ */ W("p", {
|
|
30775
30750
|
role: "alert",
|
|
30776
30751
|
className: "text-sm text-destructive",
|
|
30777
|
-
children: ["Schema error: ",
|
|
30752
|
+
children: ["Schema error: ", a.error]
|
|
30778
30753
|
});
|
|
30779
30754
|
}
|
|
30780
30755
|
//#endregion
|
|
30781
30756
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
30782
|
-
function
|
|
30757
|
+
function GY(...e) {
|
|
30783
30758
|
return async (t, n, r) => {
|
|
30784
30759
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
30785
30760
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -30794,7 +30769,7 @@ function qY(...e) {
|
|
|
30794
30769
|
}
|
|
30795
30770
|
//#endregion
|
|
30796
30771
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
30797
|
-
var
|
|
30772
|
+
var KY = /* @__PURE__ */ G(((e) => {
|
|
30798
30773
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
30799
30774
|
var t = class {};
|
|
30800
30775
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -30899,9 +30874,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
30899
30874
|
return new r(e.toString());
|
|
30900
30875
|
}
|
|
30901
30876
|
e.regexpCode = g;
|
|
30902
|
-
})),
|
|
30877
|
+
})), qY = /* @__PURE__ */ G(((e) => {
|
|
30903
30878
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
30904
|
-
var t =
|
|
30879
|
+
var t = KY(), n = class extends Error {
|
|
30905
30880
|
constructor(e) {
|
|
30906
30881
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
30907
30882
|
}
|
|
@@ -31010,9 +30985,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31010
30985
|
return c;
|
|
31011
30986
|
}
|
|
31012
30987
|
};
|
|
31013
|
-
})),
|
|
30988
|
+
})), JY = /* @__PURE__ */ G(((e) => {
|
|
31014
30989
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
31015
|
-
var t =
|
|
30990
|
+
var t = KY(), n = qY(), r = KY();
|
|
31016
30991
|
Object.defineProperty(e, "_", {
|
|
31017
30992
|
enumerable: !0,
|
|
31018
30993
|
get: function() {
|
|
@@ -31054,7 +31029,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31054
31029
|
return r.Name;
|
|
31055
31030
|
}
|
|
31056
31031
|
});
|
|
31057
|
-
var i =
|
|
31032
|
+
var i = qY();
|
|
31058
31033
|
Object.defineProperty(e, "Scope", {
|
|
31059
31034
|
enumerable: !0,
|
|
31060
31035
|
get: function() {
|
|
@@ -31525,9 +31500,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31525
31500
|
function L(e) {
|
|
31526
31501
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31527
31502
|
}
|
|
31528
|
-
})),
|
|
31503
|
+
})), YY = /* @__PURE__ */ G(((e) => {
|
|
31529
31504
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
31530
|
-
var t =
|
|
31505
|
+
var t = JY(), n = KY();
|
|
31531
31506
|
function r(e) {
|
|
31532
31507
|
let t = {};
|
|
31533
31508
|
for (let n of e) t[n] = !0;
|
|
@@ -31650,9 +31625,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31650
31625
|
}
|
|
31651
31626
|
}
|
|
31652
31627
|
e.checkStrictMode = x;
|
|
31653
|
-
})),
|
|
31628
|
+
})), XY = /* @__PURE__ */ G(((e) => {
|
|
31654
31629
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31655
|
-
var t =
|
|
31630
|
+
var t = JY();
|
|
31656
31631
|
e.default = {
|
|
31657
31632
|
data: new t.Name("data"),
|
|
31658
31633
|
valCxt: new t.Name("valCxt"),
|
|
@@ -31671,9 +31646,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31671
31646
|
jsonLen: new t.Name("jsonLen"),
|
|
31672
31647
|
jsonPart: new t.Name("jsonPart")
|
|
31673
31648
|
};
|
|
31674
|
-
})),
|
|
31649
|
+
})), ZY = /* @__PURE__ */ G(((e) => {
|
|
31675
31650
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
31676
|
-
var t =
|
|
31651
|
+
var t = JY(), n = YY(), r = XY();
|
|
31677
31652
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
31678
31653
|
function i(n, r = e.keywordError, i, a) {
|
|
31679
31654
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -31735,9 +31710,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31735
31710
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
31736
31711
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
31737
31712
|
}
|
|
31738
|
-
})),
|
|
31713
|
+
})), QY = /* @__PURE__ */ G(((e) => {
|
|
31739
31714
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
31740
|
-
var t =
|
|
31715
|
+
var t = ZY(), n = JY(), r = XY(), i = { message: "boolean schema is false" };
|
|
31741
31716
|
function a(e) {
|
|
31742
31717
|
let { gen: t, schema: i, validateName: a } = e;
|
|
31743
31718
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -31761,7 +31736,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31761
31736
|
};
|
|
31762
31737
|
(0, t.reportError)(o, i, void 0, n);
|
|
31763
31738
|
}
|
|
31764
|
-
})),
|
|
31739
|
+
})), $Y = /* @__PURE__ */ G(((e) => {
|
|
31765
31740
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
31766
31741
|
var t = new Set([
|
|
31767
31742
|
"string",
|
|
@@ -31815,7 +31790,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31815
31790
|
};
|
|
31816
31791
|
}
|
|
31817
31792
|
e.getRules = r;
|
|
31818
|
-
})),
|
|
31793
|
+
})), eX = /* @__PURE__ */ G(((e) => {
|
|
31819
31794
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
31820
31795
|
function t({ schema: e, self: t }, r) {
|
|
31821
31796
|
let i = t.RULES.types[r];
|
|
@@ -31830,9 +31805,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31830
31805
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
31831
31806
|
}
|
|
31832
31807
|
e.shouldUseRule = r;
|
|
31833
|
-
})),
|
|
31808
|
+
})), tX = /* @__PURE__ */ G(((e) => {
|
|
31834
31809
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
31835
|
-
var t =
|
|
31810
|
+
var t = $Y(), n = eX(), r = ZY(), i = JY(), a = YY(), o;
|
|
31836
31811
|
(function(e) {
|
|
31837
31812
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
31838
31813
|
})(o || (e.DataType = o = {}));
|
|
@@ -31967,9 +31942,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31967
31942
|
it: e
|
|
31968
31943
|
};
|
|
31969
31944
|
}
|
|
31970
|
-
})),
|
|
31945
|
+
})), nX = /* @__PURE__ */ G(((e) => {
|
|
31971
31946
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
31972
|
-
var t =
|
|
31947
|
+
var t = JY(), n = YY();
|
|
31973
31948
|
function r(e, t) {
|
|
31974
31949
|
let { properties: n, items: r } = e.schema;
|
|
31975
31950
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -31987,9 +31962,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
31987
31962
|
let u = (0, t._)`${l} === undefined`;
|
|
31988
31963
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
31989
31964
|
}
|
|
31990
|
-
})),
|
|
31965
|
+
})), rX = /* @__PURE__ */ G(((e) => {
|
|
31991
31966
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
31992
|
-
var t =
|
|
31967
|
+
var t = JY(), n = YY(), r = XY(), i = YY();
|
|
31993
31968
|
function a(e, n) {
|
|
31994
31969
|
let { gen: r, data: i, it: a } = e;
|
|
31995
31970
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32091,9 +32066,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32091
32066
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32092
32067
|
}
|
|
32093
32068
|
e.validateUnion = v;
|
|
32094
|
-
})),
|
|
32069
|
+
})), iX = /* @__PURE__ */ G(((e) => {
|
|
32095
32070
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32096
|
-
var t =
|
|
32071
|
+
var t = JY(), n = XY(), r = rX(), i = ZY();
|
|
32097
32072
|
function a(e, n) {
|
|
32098
32073
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
32099
32074
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32172,9 +32147,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32172
32147
|
}
|
|
32173
32148
|
}
|
|
32174
32149
|
e.validateKeywordUsage = f;
|
|
32175
|
-
})),
|
|
32150
|
+
})), aX = /* @__PURE__ */ G(((e) => {
|
|
32176
32151
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32177
|
-
var t =
|
|
32152
|
+
var t = JY(), n = YY();
|
|
32178
32153
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32179
32154
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32180
32155
|
if (r !== void 0) {
|
|
@@ -32218,7 +32193,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32218
32193
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32219
32194
|
}
|
|
32220
32195
|
e.extendSubschemaMode = a;
|
|
32221
|
-
})),
|
|
32196
|
+
})), oX = /* @__PURE__ */ G(((e, t) => {
|
|
32222
32197
|
t.exports = function e(t, n) {
|
|
32223
32198
|
if (t === n) return !0;
|
|
32224
32199
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32242,7 +32217,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32242
32217
|
}
|
|
32243
32218
|
return t !== t && n !== n;
|
|
32244
32219
|
};
|
|
32245
|
-
})),
|
|
32220
|
+
})), sX = /* @__PURE__ */ G(((e, t) => {
|
|
32246
32221
|
var n = t.exports = function(e, t, n) {
|
|
32247
32222
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32248
32223
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32305,9 +32280,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32305
32280
|
function i(e) {
|
|
32306
32281
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32307
32282
|
}
|
|
32308
|
-
})),
|
|
32283
|
+
})), cX = /* @__PURE__ */ G(((e) => {
|
|
32309
32284
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32310
|
-
var t =
|
|
32285
|
+
var t = YY(), n = oX(), r = sX(), i = new Set([
|
|
32311
32286
|
"type",
|
|
32312
32287
|
"format",
|
|
32313
32288
|
"pattern",
|
|
@@ -32396,9 +32371,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32396
32371
|
}
|
|
32397
32372
|
}
|
|
32398
32373
|
e.getSchemaRefs = h;
|
|
32399
|
-
})),
|
|
32374
|
+
})), lX = /* @__PURE__ */ G(((e) => {
|
|
32400
32375
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32401
|
-
var t =
|
|
32376
|
+
var t = QY(), n = tX(), r = eX(), i = tX(), a = nX(), o = iX(), s = aX(), c = JY(), l = XY(), u = cX(), d = YY(), f = ZY();
|
|
32402
32377
|
function p(e) {
|
|
32403
32378
|
if (S(e) && (w(e), x(e))) {
|
|
32404
32379
|
_(e);
|
|
@@ -32688,23 +32663,23 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32688
32663
|
}
|
|
32689
32664
|
}
|
|
32690
32665
|
e.getData = V;
|
|
32691
|
-
})),
|
|
32666
|
+
})), uX = /* @__PURE__ */ G(((e) => {
|
|
32692
32667
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
32693
32668
|
constructor(e) {
|
|
32694
32669
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
32695
32670
|
}
|
|
32696
32671
|
};
|
|
32697
|
-
})),
|
|
32672
|
+
})), dX = /* @__PURE__ */ G(((e) => {
|
|
32698
32673
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32699
|
-
var t =
|
|
32674
|
+
var t = cX();
|
|
32700
32675
|
e.default = class extends Error {
|
|
32701
32676
|
constructor(e, n, r, i) {
|
|
32702
32677
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
32703
32678
|
}
|
|
32704
32679
|
};
|
|
32705
|
-
})),
|
|
32680
|
+
})), fX = /* @__PURE__ */ G(((e) => {
|
|
32706
32681
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
32707
|
-
var t =
|
|
32682
|
+
var t = JY(), n = uX(), r = XY(), i = cX(), a = YY(), o = lX(), s = class {
|
|
32708
32683
|
constructor(e) {
|
|
32709
32684
|
this.refs = {}, this.dynamicAnchors = {};
|
|
32710
32685
|
let t;
|
|
@@ -32863,27 +32838,27 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
32863
32838
|
baseId: t
|
|
32864
32839
|
}), o.schema !== o.root.schema) return o;
|
|
32865
32840
|
}
|
|
32866
|
-
})),
|
|
32867
|
-
$id: () =>
|
|
32841
|
+
})), pX = /* @__PURE__ */ Ce({
|
|
32842
|
+
$id: () => mX,
|
|
32868
32843
|
additionalProperties: () => !1,
|
|
32869
|
-
default: () =>
|
|
32870
|
-
description: () =>
|
|
32871
|
-
properties: () =>
|
|
32872
|
-
required: () =>
|
|
32873
|
-
type: () =>
|
|
32874
|
-
}), gX, _X, vX, yX, bX
|
|
32875
|
-
|
|
32844
|
+
default: () => yX,
|
|
32845
|
+
description: () => hX,
|
|
32846
|
+
properties: () => vX,
|
|
32847
|
+
required: () => _X,
|
|
32848
|
+
type: () => gX
|
|
32849
|
+
}), mX, hX, gX, _X, vX, yX, bX = Se((() => {
|
|
32850
|
+
mX = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", hX = "Meta-schema for $data reference (JSON AnySchema extension proposal)", gX = "object", _X = ["$data"], vX = { $data: {
|
|
32876
32851
|
type: "string",
|
|
32877
32852
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
32878
|
-
} },
|
|
32879
|
-
$id:
|
|
32880
|
-
description:
|
|
32881
|
-
type:
|
|
32882
|
-
required:
|
|
32883
|
-
properties:
|
|
32853
|
+
} }, yX = {
|
|
32854
|
+
$id: mX,
|
|
32855
|
+
description: hX,
|
|
32856
|
+
type: gX,
|
|
32857
|
+
required: _X,
|
|
32858
|
+
properties: vX,
|
|
32884
32859
|
additionalProperties: !1
|
|
32885
32860
|
};
|
|
32886
|
-
})),
|
|
32861
|
+
})), xX = /* @__PURE__ */ G(((e, t) => {
|
|
32887
32862
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = 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), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
32888
32863
|
function s(e) {
|
|
32889
32864
|
let t = "", n = 0, r = 0;
|
|
@@ -33095,8 +33070,8 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33095
33070
|
normalizeIPv6: f,
|
|
33096
33071
|
stringArrayToHexStripped: s
|
|
33097
33072
|
};
|
|
33098
|
-
})),
|
|
33099
|
-
var { isUUID: n } =
|
|
33073
|
+
})), SX = /* @__PURE__ */ G(((e, t) => {
|
|
33074
|
+
var { isUUID: n } = xX(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
33100
33075
|
"http",
|
|
33101
33076
|
"https",
|
|
33102
33077
|
"ws",
|
|
@@ -33201,8 +33176,8 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33201
33176
|
isValidSchemeName: a,
|
|
33202
33177
|
getSchemeHandler: y
|
|
33203
33178
|
};
|
|
33204
|
-
})),
|
|
33205
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
33179
|
+
})), CX = /* @__PURE__ */ G(((e, t) => {
|
|
33180
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = xX(), { SCHEMES: d, getSchemeHandler: f } = SX();
|
|
33206
33181
|
function p(e, t) {
|
|
33207
33182
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
33208
33183
|
}
|
|
@@ -33316,20 +33291,20 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33316
33291
|
parse: x
|
|
33317
33292
|
};
|
|
33318
33293
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
33319
|
-
})),
|
|
33294
|
+
})), wX = /* @__PURE__ */ G(((e) => {
|
|
33320
33295
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33321
|
-
var t =
|
|
33296
|
+
var t = CX();
|
|
33322
33297
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33323
|
-
})),
|
|
33298
|
+
})), TX = /* @__PURE__ */ G(((e) => {
|
|
33324
33299
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33325
|
-
var t =
|
|
33300
|
+
var t = lX();
|
|
33326
33301
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33327
33302
|
enumerable: !0,
|
|
33328
33303
|
get: function() {
|
|
33329
33304
|
return t.KeywordCxt;
|
|
33330
33305
|
}
|
|
33331
33306
|
});
|
|
33332
|
-
var n =
|
|
33307
|
+
var n = JY();
|
|
33333
33308
|
Object.defineProperty(e, "_", {
|
|
33334
33309
|
enumerable: !0,
|
|
33335
33310
|
get: function() {
|
|
@@ -33361,7 +33336,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33361
33336
|
return n.CodeGen;
|
|
33362
33337
|
}
|
|
33363
33338
|
});
|
|
33364
|
-
var r =
|
|
33339
|
+
var r = uX(), i = dX(), a = $Y(), o = fX(), s = JY(), c = cX(), l = tX(), u = YY(), d = (bX(), Ee(pX).default), f = wX(), p = (e, t) => new RegExp(e, t);
|
|
33365
33340
|
p.code = "new RegExp";
|
|
33366
33341
|
var m = [
|
|
33367
33342
|
"removeAdditional",
|
|
@@ -33747,16 +33722,16 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33747
33722
|
function F(e) {
|
|
33748
33723
|
return { anyOf: [e, P] };
|
|
33749
33724
|
}
|
|
33750
|
-
})),
|
|
33725
|
+
})), EX = /* @__PURE__ */ G(((e) => {
|
|
33751
33726
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
33752
33727
|
keyword: "id",
|
|
33753
33728
|
code() {
|
|
33754
33729
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
33755
33730
|
}
|
|
33756
33731
|
};
|
|
33757
|
-
})),
|
|
33732
|
+
})), DX = /* @__PURE__ */ G(((e) => {
|
|
33758
33733
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
33759
|
-
var t =
|
|
33734
|
+
var t = dX(), n = rX(), r = JY(), i = XY(), a = fX(), o = YY(), s = {
|
|
33760
33735
|
keyword: "$ref",
|
|
33761
33736
|
schemaType: "string",
|
|
33762
33737
|
code(e) {
|
|
@@ -33829,9 +33804,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33829
33804
|
}
|
|
33830
33805
|
}
|
|
33831
33806
|
e.callRef = l, e.default = s;
|
|
33832
|
-
})),
|
|
33807
|
+
})), OX = /* @__PURE__ */ G(((e) => {
|
|
33833
33808
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33834
|
-
var t =
|
|
33809
|
+
var t = EX(), n = DX();
|
|
33835
33810
|
e.default = [
|
|
33836
33811
|
"$schema",
|
|
33837
33812
|
"$id",
|
|
@@ -33842,9 +33817,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33842
33817
|
t.default,
|
|
33843
33818
|
n.default
|
|
33844
33819
|
];
|
|
33845
|
-
})),
|
|
33820
|
+
})), kX = /* @__PURE__ */ G(((e) => {
|
|
33846
33821
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33847
|
-
var t =
|
|
33822
|
+
var t = JY(), n = t.operators, r = {
|
|
33848
33823
|
maximum: {
|
|
33849
33824
|
okStr: "<=",
|
|
33850
33825
|
ok: n.LTE,
|
|
@@ -33880,9 +33855,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33880
33855
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
33881
33856
|
}
|
|
33882
33857
|
};
|
|
33883
|
-
})),
|
|
33858
|
+
})), AX = /* @__PURE__ */ G(((e) => {
|
|
33884
33859
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33885
|
-
var t =
|
|
33860
|
+
var t = JY();
|
|
33886
33861
|
e.default = {
|
|
33887
33862
|
keyword: "multipleOf",
|
|
33888
33863
|
type: "number",
|
|
@@ -33897,7 +33872,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33897
33872
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
33898
33873
|
}
|
|
33899
33874
|
};
|
|
33900
|
-
})),
|
|
33875
|
+
})), jX = /* @__PURE__ */ G(((e) => {
|
|
33901
33876
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33902
33877
|
function t(e) {
|
|
33903
33878
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -33905,9 +33880,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33905
33880
|
return n;
|
|
33906
33881
|
}
|
|
33907
33882
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
33908
|
-
})),
|
|
33883
|
+
})), MX = /* @__PURE__ */ G(((e) => {
|
|
33909
33884
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33910
|
-
var t =
|
|
33885
|
+
var t = JY(), n = YY(), r = jX();
|
|
33911
33886
|
e.default = {
|
|
33912
33887
|
keyword: ["maxLength", "minLength"],
|
|
33913
33888
|
type: "string",
|
|
@@ -33925,9 +33900,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33925
33900
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
33926
33901
|
}
|
|
33927
33902
|
};
|
|
33928
|
-
})),
|
|
33903
|
+
})), NX = /* @__PURE__ */ G(((e) => {
|
|
33929
33904
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33930
|
-
var t =
|
|
33905
|
+
var t = rX(), n = YY(), r = JY();
|
|
33931
33906
|
e.default = {
|
|
33932
33907
|
keyword: "pattern",
|
|
33933
33908
|
type: "string",
|
|
@@ -33948,9 +33923,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33948
33923
|
}
|
|
33949
33924
|
}
|
|
33950
33925
|
};
|
|
33951
|
-
})),
|
|
33926
|
+
})), PX = /* @__PURE__ */ G(((e) => {
|
|
33952
33927
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33953
|
-
var t =
|
|
33928
|
+
var t = JY();
|
|
33954
33929
|
e.default = {
|
|
33955
33930
|
keyword: ["maxProperties", "minProperties"],
|
|
33956
33931
|
type: "object",
|
|
@@ -33968,9 +33943,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
33968
33943
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
33969
33944
|
}
|
|
33970
33945
|
};
|
|
33971
|
-
})),
|
|
33946
|
+
})), FX = /* @__PURE__ */ G(((e) => {
|
|
33972
33947
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33973
|
-
var t =
|
|
33948
|
+
var t = rX(), n = JY(), r = YY();
|
|
33974
33949
|
e.default = {
|
|
33975
33950
|
keyword: "required",
|
|
33976
33951
|
type: "object",
|
|
@@ -34016,9 +33991,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34016
33991
|
}
|
|
34017
33992
|
}
|
|
34018
33993
|
};
|
|
34019
|
-
})),
|
|
33994
|
+
})), IX = /* @__PURE__ */ G(((e) => {
|
|
34020
33995
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34021
|
-
var t =
|
|
33996
|
+
var t = JY();
|
|
34022
33997
|
e.default = {
|
|
34023
33998
|
keyword: ["maxItems", "minItems"],
|
|
34024
33999
|
type: "array",
|
|
@@ -34036,13 +34011,13 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34036
34011
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34037
34012
|
}
|
|
34038
34013
|
};
|
|
34039
|
-
})),
|
|
34014
|
+
})), LX = /* @__PURE__ */ G(((e) => {
|
|
34040
34015
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34041
|
-
var t =
|
|
34016
|
+
var t = oX();
|
|
34042
34017
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34043
|
-
})),
|
|
34018
|
+
})), RX = /* @__PURE__ */ G(((e) => {
|
|
34044
34019
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34045
|
-
var t =
|
|
34020
|
+
var t = tX(), n = JY(), r = YY(), i = LX();
|
|
34046
34021
|
e.default = {
|
|
34047
34022
|
keyword: "uniqueItems",
|
|
34048
34023
|
type: "array",
|
|
@@ -34083,9 +34058,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34083
34058
|
}
|
|
34084
34059
|
}
|
|
34085
34060
|
};
|
|
34086
|
-
})),
|
|
34061
|
+
})), zX = /* @__PURE__ */ G(((e) => {
|
|
34087
34062
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34088
|
-
var t =
|
|
34063
|
+
var t = JY(), n = YY(), r = LX();
|
|
34089
34064
|
e.default = {
|
|
34090
34065
|
keyword: "const",
|
|
34091
34066
|
$data: !0,
|
|
@@ -34098,9 +34073,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34098
34073
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34099
34074
|
}
|
|
34100
34075
|
};
|
|
34101
|
-
})),
|
|
34076
|
+
})), BX = /* @__PURE__ */ G(((e) => {
|
|
34102
34077
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34103
|
-
var t =
|
|
34078
|
+
var t = JY(), n = YY(), r = LX();
|
|
34104
34079
|
e.default = {
|
|
34105
34080
|
keyword: "enum",
|
|
34106
34081
|
schemaType: "array",
|
|
@@ -34130,9 +34105,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34130
34105
|
}
|
|
34131
34106
|
}
|
|
34132
34107
|
};
|
|
34133
|
-
})),
|
|
34108
|
+
})), VX = /* @__PURE__ */ G(((e) => {
|
|
34134
34109
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34135
|
-
var t =
|
|
34110
|
+
var t = kX(), n = AX(), r = MX(), i = NX(), a = PX(), o = FX(), s = IX(), c = RX(), l = zX(), u = BX();
|
|
34136
34111
|
e.default = [
|
|
34137
34112
|
t.default,
|
|
34138
34113
|
n.default,
|
|
@@ -34153,9 +34128,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34153
34128
|
l.default,
|
|
34154
34129
|
u.default
|
|
34155
34130
|
];
|
|
34156
|
-
})),
|
|
34131
|
+
})), HX = /* @__PURE__ */ G(((e) => {
|
|
34157
34132
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34158
|
-
var t =
|
|
34133
|
+
var t = JY(), n = YY(), r = {
|
|
34159
34134
|
keyword: "additionalItems",
|
|
34160
34135
|
type: "array",
|
|
34161
34136
|
schemaType: ["boolean", "object"],
|
|
@@ -34193,9 +34168,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34193
34168
|
}
|
|
34194
34169
|
}
|
|
34195
34170
|
e.validateAdditionalItems = i, e.default = r;
|
|
34196
|
-
})),
|
|
34171
|
+
})), UX = /* @__PURE__ */ G(((e) => {
|
|
34197
34172
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34198
|
-
var t =
|
|
34173
|
+
var t = JY(), n = YY(), r = rX(), i = {
|
|
34199
34174
|
keyword: "items",
|
|
34200
34175
|
type: "array",
|
|
34201
34176
|
schemaType: [
|
|
@@ -34230,9 +34205,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34230
34205
|
}
|
|
34231
34206
|
}
|
|
34232
34207
|
e.validateTuple = a, e.default = i;
|
|
34233
|
-
})),
|
|
34208
|
+
})), WX = /* @__PURE__ */ G(((e) => {
|
|
34234
34209
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34235
|
-
var t =
|
|
34210
|
+
var t = UX();
|
|
34236
34211
|
e.default = {
|
|
34237
34212
|
keyword: "prefixItems",
|
|
34238
34213
|
type: "array",
|
|
@@ -34240,9 +34215,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34240
34215
|
before: "uniqueItems",
|
|
34241
34216
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34242
34217
|
};
|
|
34243
|
-
})),
|
|
34218
|
+
})), GX = /* @__PURE__ */ G(((e) => {
|
|
34244
34219
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34245
|
-
var t =
|
|
34220
|
+
var t = JY(), n = YY(), r = rX(), i = HX();
|
|
34246
34221
|
e.default = {
|
|
34247
34222
|
keyword: "items",
|
|
34248
34223
|
type: "array",
|
|
@@ -34257,9 +34232,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34257
34232
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34258
34233
|
}
|
|
34259
34234
|
};
|
|
34260
|
-
})),
|
|
34235
|
+
})), KX = /* @__PURE__ */ G(((e) => {
|
|
34261
34236
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34262
|
-
var t =
|
|
34237
|
+
var t = JY(), n = YY();
|
|
34263
34238
|
e.default = {
|
|
34264
34239
|
keyword: "contains",
|
|
34265
34240
|
type: "array",
|
|
@@ -34312,9 +34287,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34312
34287
|
}
|
|
34313
34288
|
}
|
|
34314
34289
|
};
|
|
34315
|
-
})),
|
|
34290
|
+
})), qX = /* @__PURE__ */ G(((e) => {
|
|
34316
34291
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34317
|
-
var t =
|
|
34292
|
+
var t = JY(), n = YY(), r = rX();
|
|
34318
34293
|
e.error = {
|
|
34319
34294
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34320
34295
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34373,9 +34348,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34373
34348
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34374
34349
|
}
|
|
34375
34350
|
e.validateSchemaDeps = s, e.default = i;
|
|
34376
|
-
})),
|
|
34351
|
+
})), JX = /* @__PURE__ */ G(((e) => {
|
|
34377
34352
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34378
|
-
var t =
|
|
34353
|
+
var t = JY(), n = YY();
|
|
34379
34354
|
e.default = {
|
|
34380
34355
|
keyword: "propertyNames",
|
|
34381
34356
|
type: "object",
|
|
@@ -34401,9 +34376,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34401
34376
|
}), e.ok(s);
|
|
34402
34377
|
}
|
|
34403
34378
|
};
|
|
34404
|
-
})),
|
|
34379
|
+
})), YX = /* @__PURE__ */ G(((e) => {
|
|
34405
34380
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34406
|
-
var t =
|
|
34381
|
+
var t = rX(), n = JY(), r = XY(), i = YY();
|
|
34407
34382
|
e.default = {
|
|
34408
34383
|
keyword: "additionalProperties",
|
|
34409
34384
|
type: ["object"],
|
|
@@ -34468,9 +34443,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34468
34443
|
}
|
|
34469
34444
|
}
|
|
34470
34445
|
};
|
|
34471
|
-
})),
|
|
34446
|
+
})), XX = /* @__PURE__ */ G(((e) => {
|
|
34472
34447
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34473
|
-
var t =
|
|
34448
|
+
var t = lX(), n = rX(), r = YY(), i = YX();
|
|
34474
34449
|
e.default = {
|
|
34475
34450
|
keyword: "properties",
|
|
34476
34451
|
type: "object",
|
|
@@ -34497,9 +34472,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34497
34472
|
}
|
|
34498
34473
|
}
|
|
34499
34474
|
};
|
|
34500
|
-
})),
|
|
34475
|
+
})), ZX = /* @__PURE__ */ G(((e) => {
|
|
34501
34476
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34502
|
-
var t =
|
|
34477
|
+
var t = rX(), n = JY(), r = YY(), i = YY();
|
|
34503
34478
|
e.default = {
|
|
34504
34479
|
keyword: "patternProperties",
|
|
34505
34480
|
type: "object",
|
|
@@ -34532,9 +34507,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34532
34507
|
}
|
|
34533
34508
|
}
|
|
34534
34509
|
};
|
|
34535
|
-
})),
|
|
34510
|
+
})), QX = /* @__PURE__ */ G(((e) => {
|
|
34536
34511
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34537
|
-
var t =
|
|
34512
|
+
var t = YY();
|
|
34538
34513
|
e.default = {
|
|
34539
34514
|
keyword: "not",
|
|
34540
34515
|
schemaType: ["object", "boolean"],
|
|
@@ -34555,17 +34530,17 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34555
34530
|
},
|
|
34556
34531
|
error: { message: "must NOT be valid" }
|
|
34557
34532
|
};
|
|
34558
|
-
})),
|
|
34533
|
+
})), $X = /* @__PURE__ */ G(((e) => {
|
|
34559
34534
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34560
34535
|
keyword: "anyOf",
|
|
34561
34536
|
schemaType: "array",
|
|
34562
34537
|
trackErrors: !0,
|
|
34563
|
-
code:
|
|
34538
|
+
code: rX().validateUnion,
|
|
34564
34539
|
error: { message: "must match a schema in anyOf" }
|
|
34565
34540
|
};
|
|
34566
|
-
})),
|
|
34541
|
+
})), eZ = /* @__PURE__ */ G(((e) => {
|
|
34567
34542
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34568
|
-
var t =
|
|
34543
|
+
var t = JY(), n = YY();
|
|
34569
34544
|
e.default = {
|
|
34570
34545
|
keyword: "oneOf",
|
|
34571
34546
|
schemaType: "array",
|
|
@@ -34595,9 +34570,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34595
34570
|
}
|
|
34596
34571
|
}
|
|
34597
34572
|
};
|
|
34598
|
-
})),
|
|
34573
|
+
})), tZ = /* @__PURE__ */ G(((e) => {
|
|
34599
34574
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34600
|
-
var t =
|
|
34575
|
+
var t = YY();
|
|
34601
34576
|
e.default = {
|
|
34602
34577
|
keyword: "allOf",
|
|
34603
34578
|
schemaType: "array",
|
|
@@ -34616,9 +34591,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34616
34591
|
});
|
|
34617
34592
|
}
|
|
34618
34593
|
};
|
|
34619
|
-
})),
|
|
34594
|
+
})), nZ = /* @__PURE__ */ G(((e) => {
|
|
34620
34595
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34621
|
-
var t =
|
|
34596
|
+
var t = JY(), n = YY(), r = {
|
|
34622
34597
|
keyword: "if",
|
|
34623
34598
|
schemaType: ["object", "boolean"],
|
|
34624
34599
|
trackErrors: !0,
|
|
@@ -34659,9 +34634,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34659
34634
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
34660
34635
|
}
|
|
34661
34636
|
e.default = r;
|
|
34662
|
-
})),
|
|
34637
|
+
})), rZ = /* @__PURE__ */ G(((e) => {
|
|
34663
34638
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34664
|
-
var t =
|
|
34639
|
+
var t = YY();
|
|
34665
34640
|
e.default = {
|
|
34666
34641
|
keyword: ["then", "else"],
|
|
34667
34642
|
schemaType: ["object", "boolean"],
|
|
@@ -34669,9 +34644,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34669
34644
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
34670
34645
|
}
|
|
34671
34646
|
};
|
|
34672
|
-
})),
|
|
34647
|
+
})), iZ = /* @__PURE__ */ G(((e) => {
|
|
34673
34648
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34674
|
-
var t =
|
|
34649
|
+
var t = HX(), n = WX(), r = UX(), i = GX(), a = KX(), o = qX(), s = JX(), c = YX(), l = XX(), u = ZX(), d = QX(), f = $X(), p = eZ(), m = tZ(), h = nZ(), g = rZ();
|
|
34675
34650
|
function _(e = !1) {
|
|
34676
34651
|
let _ = [
|
|
34677
34652
|
d.default,
|
|
@@ -34689,9 +34664,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34689
34664
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
34690
34665
|
}
|
|
34691
34666
|
e.default = _;
|
|
34692
|
-
})),
|
|
34667
|
+
})), aZ = /* @__PURE__ */ G(((e) => {
|
|
34693
34668
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34694
|
-
var t =
|
|
34669
|
+
var t = JY();
|
|
34695
34670
|
e.default = {
|
|
34696
34671
|
keyword: "format",
|
|
34697
34672
|
type: ["number", "string"],
|
|
@@ -34764,9 +34739,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34764
34739
|
}
|
|
34765
34740
|
}
|
|
34766
34741
|
};
|
|
34767
|
-
})),
|
|
34768
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
34769
|
-
})),
|
|
34742
|
+
})), oZ = /* @__PURE__ */ G(((e) => {
|
|
34743
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [aZ().default];
|
|
34744
|
+
})), sZ = /* @__PURE__ */ G(((e) => {
|
|
34770
34745
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
34771
34746
|
"title",
|
|
34772
34747
|
"description",
|
|
@@ -34780,9 +34755,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34780
34755
|
"contentEncoding",
|
|
34781
34756
|
"contentSchema"
|
|
34782
34757
|
];
|
|
34783
|
-
})),
|
|
34758
|
+
})), cZ = /* @__PURE__ */ G(((e) => {
|
|
34784
34759
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34785
|
-
var t =
|
|
34760
|
+
var t = OX(), n = VX(), r = iZ(), i = oZ(), a = sZ();
|
|
34786
34761
|
e.default = [
|
|
34787
34762
|
t.default,
|
|
34788
34763
|
n.default,
|
|
@@ -34791,15 +34766,15 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34791
34766
|
a.metadataVocabulary,
|
|
34792
34767
|
a.contentVocabulary
|
|
34793
34768
|
];
|
|
34794
|
-
})),
|
|
34769
|
+
})), lZ = /* @__PURE__ */ G(((e) => {
|
|
34795
34770
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
34796
34771
|
var t;
|
|
34797
34772
|
(function(e) {
|
|
34798
34773
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
34799
34774
|
})(t || (e.DiscrError = t = {}));
|
|
34800
|
-
})),
|
|
34775
|
+
})), uZ = /* @__PURE__ */ G(((e) => {
|
|
34801
34776
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34802
|
-
var t =
|
|
34777
|
+
var t = JY(), n = lZ(), r = fX(), i = dX(), a = YY();
|
|
34803
34778
|
e.default = {
|
|
34804
34779
|
keyword: "discriminator",
|
|
34805
34780
|
type: "object",
|
|
@@ -34867,16 +34842,16 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34867
34842
|
}
|
|
34868
34843
|
}
|
|
34869
34844
|
};
|
|
34870
|
-
})),
|
|
34871
|
-
$id: () =>
|
|
34872
|
-
$schema: () =>
|
|
34873
|
-
default: () =>
|
|
34874
|
-
definitions: () =>
|
|
34875
|
-
properties: () =>
|
|
34876
|
-
title: () =>
|
|
34877
|
-
type: () =>
|
|
34878
|
-
}), mZ, hZ, gZ, _Z, vZ, yZ
|
|
34879
|
-
|
|
34845
|
+
})), dZ = /* @__PURE__ */ Ce({
|
|
34846
|
+
$id: () => pZ,
|
|
34847
|
+
$schema: () => fZ,
|
|
34848
|
+
default: () => vZ,
|
|
34849
|
+
definitions: () => hZ,
|
|
34850
|
+
properties: () => _Z,
|
|
34851
|
+
title: () => mZ,
|
|
34852
|
+
type: () => gZ
|
|
34853
|
+
}), fZ, pZ, mZ, hZ, gZ, _Z, vZ, yZ = Se((() => {
|
|
34854
|
+
fZ = "http://json-schema.org/draft-07/schema#", pZ = "http://json-schema.org/draft-07/schema#", mZ = "Core schema meta-schema", hZ = {
|
|
34880
34855
|
schemaArray: {
|
|
34881
34856
|
type: "array",
|
|
34882
34857
|
minItems: 1,
|
|
@@ -34902,7 +34877,7 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
34902
34877
|
uniqueItems: !0,
|
|
34903
34878
|
default: []
|
|
34904
34879
|
}
|
|
34905
|
-
},
|
|
34880
|
+
}, gZ = ["object", "boolean"], _Z = {
|
|
34906
34881
|
$id: {
|
|
34907
34882
|
type: "string",
|
|
34908
34883
|
format: "uri-reference"
|
|
@@ -35001,18 +34976,18 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35001
34976
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35002
34977
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35003
34978
|
not: { $ref: "#" }
|
|
35004
|
-
},
|
|
35005
|
-
$schema:
|
|
35006
|
-
$id:
|
|
35007
|
-
title:
|
|
35008
|
-
definitions:
|
|
35009
|
-
type:
|
|
35010
|
-
properties:
|
|
34979
|
+
}, vZ = {
|
|
34980
|
+
$schema: fZ,
|
|
34981
|
+
$id: pZ,
|
|
34982
|
+
title: mZ,
|
|
34983
|
+
definitions: hZ,
|
|
34984
|
+
type: gZ,
|
|
34985
|
+
properties: _Z,
|
|
35011
34986
|
default: !0
|
|
35012
34987
|
};
|
|
35013
|
-
})),
|
|
34988
|
+
})), bZ = /* @__PURE__ */ G(((e, t) => {
|
|
35014
34989
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
|
|
35015
|
-
var n =
|
|
34990
|
+
var n = TX(), r = cZ(), i = uZ(), a = (yZ(), Ee(dZ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35016
34991
|
_addVocabularies() {
|
|
35017
34992
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35018
34993
|
}
|
|
@@ -35026,14 +35001,14 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35026
35001
|
}
|
|
35027
35002
|
};
|
|
35028
35003
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35029
|
-
var l =
|
|
35004
|
+
var l = lX();
|
|
35030
35005
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35031
35006
|
enumerable: !0,
|
|
35032
35007
|
get: function() {
|
|
35033
35008
|
return l.KeywordCxt;
|
|
35034
35009
|
}
|
|
35035
35010
|
});
|
|
35036
|
-
var u =
|
|
35011
|
+
var u = JY();
|
|
35037
35012
|
Object.defineProperty(e, "_", {
|
|
35038
35013
|
enumerable: !0,
|
|
35039
35014
|
get: function() {
|
|
@@ -35065,21 +35040,21 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35065
35040
|
return u.CodeGen;
|
|
35066
35041
|
}
|
|
35067
35042
|
});
|
|
35068
|
-
var d =
|
|
35043
|
+
var d = uX();
|
|
35069
35044
|
Object.defineProperty(e, "ValidationError", {
|
|
35070
35045
|
enumerable: !0,
|
|
35071
35046
|
get: function() {
|
|
35072
35047
|
return d.default;
|
|
35073
35048
|
}
|
|
35074
35049
|
});
|
|
35075
|
-
var f =
|
|
35050
|
+
var f = dX();
|
|
35076
35051
|
Object.defineProperty(e, "MissingRefError", {
|
|
35077
35052
|
enumerable: !0,
|
|
35078
35053
|
get: function() {
|
|
35079
35054
|
return f.default;
|
|
35080
35055
|
}
|
|
35081
35056
|
});
|
|
35082
|
-
})),
|
|
35057
|
+
})), xZ = /* @__PURE__ */ G(((e) => {
|
|
35083
35058
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35084
35059
|
function t(e, t) {
|
|
35085
35060
|
return {
|
|
@@ -35231,9 +35206,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35231
35206
|
return !1;
|
|
35232
35207
|
}
|
|
35233
35208
|
}
|
|
35234
|
-
})),
|
|
35209
|
+
})), SZ = /* @__PURE__ */ G(((e) => {
|
|
35235
35210
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35236
|
-
var t =
|
|
35211
|
+
var t = bZ(), n = JY(), r = n.operators, i = {
|
|
35237
35212
|
formatMaximum: {
|
|
35238
35213
|
okStr: "<=",
|
|
35239
35214
|
ok: r.LTE,
|
|
@@ -35293,9 +35268,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35293
35268
|
},
|
|
35294
35269
|
dependencies: ["format"]
|
|
35295
35270
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35296
|
-
})),
|
|
35271
|
+
})), CZ = /* @__PURE__ */ G(((e, t) => {
|
|
35297
35272
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35298
|
-
var n =
|
|
35273
|
+
var n = xZ(), r = SZ(), i = JY(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35299
35274
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35300
35275
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35301
35276
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35311,9 +35286,9 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35311
35286
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35312
35287
|
}
|
|
35313
35288
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35314
|
-
})),
|
|
35289
|
+
})), wZ = /* @__PURE__ */ Te(bZ(), 1), TZ = /* @__PURE__ */ Te(CZ(), 1), EZ = {
|
|
35315
35290
|
required: () => "This field is required",
|
|
35316
|
-
type: (e) => `Should be "${
|
|
35291
|
+
type: (e) => `Should be "${OZ(e)}".`,
|
|
35317
35292
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35318
35293
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35319
35294
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35325,81 +35300,89 @@ var JY = /* @__PURE__ */ G(((e) => {
|
|
|
35325
35300
|
maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
|
|
35326
35301
|
uniqueItems: () => "Should NOT have duplicate items",
|
|
35327
35302
|
const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
|
|
35328
|
-
pattern: (e, t) => `${
|
|
35303
|
+
pattern: (e, t) => `${HJ(t)} value does not respect the pattern: ${e.params.pattern}`,
|
|
35329
35304
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35330
35305
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35331
35306
|
};
|
|
35332
|
-
function
|
|
35333
|
-
let n =
|
|
35307
|
+
function DZ(e, t) {
|
|
35308
|
+
let n = EZ[e.keyword];
|
|
35334
35309
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35335
35310
|
}
|
|
35336
|
-
function
|
|
35311
|
+
function OZ(e) {
|
|
35337
35312
|
let t = e.params.type;
|
|
35338
35313
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35339
35314
|
}
|
|
35340
35315
|
//#endregion
|
|
35341
35316
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35342
|
-
function
|
|
35317
|
+
function kZ(e, t, n) {
|
|
35343
35318
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
35344
35319
|
for (let e of r) {
|
|
35345
35320
|
if (!i) return {
|
|
35346
35321
|
node: void 0,
|
|
35347
35322
|
value: void 0
|
|
35348
35323
|
};
|
|
35349
|
-
i =
|
|
35324
|
+
i = AZ(i, a, n, o), /^\d+$/.test(e) ? (i = i.items, a = Array.isArray(a) ? a[Number(e)] : void 0) : (i = i.properties?.get(e), a = a && typeof a == "object" ? a[e] : void 0), o.push(e);
|
|
35350
35325
|
}
|
|
35351
35326
|
return i ? {
|
|
35352
|
-
node:
|
|
35327
|
+
node: jZ(AZ(i, a, n, r), r),
|
|
35353
35328
|
value: a
|
|
35354
35329
|
} : {
|
|
35355
35330
|
node: void 0,
|
|
35356
35331
|
value: a
|
|
35357
35332
|
};
|
|
35358
35333
|
}
|
|
35359
|
-
function
|
|
35360
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
35334
|
+
function AZ(e, t, n, r) {
|
|
35335
|
+
let i = new Map(e.properties), a = e.variants ? PZ(e.variants, t) : void 0;
|
|
35361
35336
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
35362
35337
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
35363
35338
|
if (o.length > 0) {
|
|
35364
|
-
for (let e of o) if (
|
|
35339
|
+
for (let e of o) if (MZ(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
35365
35340
|
}
|
|
35366
35341
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
35367
35342
|
...e,
|
|
35368
35343
|
properties: i
|
|
35369
35344
|
} : e;
|
|
35370
35345
|
}
|
|
35371
|
-
function
|
|
35346
|
+
function jZ(e, t) {
|
|
35372
35347
|
return e.displayIf ? {
|
|
35373
35348
|
...e,
|
|
35374
|
-
displayIf:
|
|
35349
|
+
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [TJ(e, t), n])) }
|
|
35375
35350
|
} : e;
|
|
35376
35351
|
}
|
|
35377
|
-
function
|
|
35352
|
+
function MZ(e, t, n) {
|
|
35378
35353
|
for (let [r, i] of e) {
|
|
35379
|
-
let e =
|
|
35354
|
+
let e = NZ(t, TJ(r, n).split("."));
|
|
35380
35355
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35381
35356
|
}
|
|
35382
35357
|
return !0;
|
|
35383
35358
|
}
|
|
35384
|
-
function
|
|
35359
|
+
function NZ(e, t) {
|
|
35360
|
+
let n = e;
|
|
35361
|
+
for (let e of t) {
|
|
35362
|
+
if (typeof n != "object" || !n) return;
|
|
35363
|
+
n = n[e];
|
|
35364
|
+
}
|
|
35365
|
+
return n;
|
|
35366
|
+
}
|
|
35367
|
+
function PZ(e, t) {
|
|
35385
35368
|
if (typeof t != "object" || !t) return;
|
|
35386
35369
|
let n = t;
|
|
35387
35370
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35388
35371
|
}
|
|
35389
35372
|
//#endregion
|
|
35390
35373
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35391
|
-
var
|
|
35374
|
+
var FZ = new wZ.default({
|
|
35392
35375
|
strict: !1,
|
|
35393
35376
|
allErrors: !0
|
|
35394
35377
|
});
|
|
35395
|
-
(0,
|
|
35378
|
+
(0, TZ.default)(FZ), FZ.removeKeyword("id"), FZ.addKeyword({
|
|
35396
35379
|
keyword: "id",
|
|
35397
35380
|
validate: () => !0
|
|
35398
35381
|
});
|
|
35399
|
-
function
|
|
35382
|
+
function IZ(e, t = {}) {
|
|
35400
35383
|
let n;
|
|
35401
35384
|
try {
|
|
35402
|
-
n =
|
|
35385
|
+
n = NY(e);
|
|
35403
35386
|
} catch (e) {
|
|
35404
35387
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35405
35388
|
return () => ({
|
|
@@ -35412,7 +35395,7 @@ function LZ(e, t = {}) {
|
|
|
35412
35395
|
}
|
|
35413
35396
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
35414
35397
|
try {
|
|
35415
|
-
a =
|
|
35398
|
+
a = FZ.compile(r);
|
|
35416
35399
|
} catch (e) {
|
|
35417
35400
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35418
35401
|
return () => ({
|
|
@@ -35423,15 +35406,15 @@ function LZ(e, t = {}) {
|
|
|
35423
35406
|
} }
|
|
35424
35407
|
});
|
|
35425
35408
|
}
|
|
35426
|
-
|
|
35409
|
+
FZ.removeSchema(r);
|
|
35427
35410
|
let o = async (e, t, r) => {
|
|
35428
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
35411
|
+
let o = a(e) ? [] : a.errors ?? [], s = UZ(n.root, e, "", i), c = [...o, ...s];
|
|
35429
35412
|
return c.length === 0 ? {
|
|
35430
35413
|
values: e,
|
|
35431
35414
|
errors: {}
|
|
35432
35415
|
} : {
|
|
35433
35416
|
values: {},
|
|
35434
|
-
errors:
|
|
35417
|
+
errors: BZ(zZ(c.filter((t) => !LZ(t, n, e))), r.criteriaMode ?? "firstError")
|
|
35435
35418
|
};
|
|
35436
35419
|
};
|
|
35437
35420
|
if (!t.basePath) return o;
|
|
@@ -35447,12 +35430,12 @@ function LZ(e, t = {}) {
|
|
|
35447
35430
|
};
|
|
35448
35431
|
};
|
|
35449
35432
|
}
|
|
35450
|
-
function
|
|
35451
|
-
let { node: r, value: i } =
|
|
35433
|
+
function LZ(e, t, n) {
|
|
35434
|
+
let { node: r, value: i } = kZ(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(PJ) : []).join("."), n);
|
|
35452
35435
|
if (!r) return !1;
|
|
35453
35436
|
switch (e.keyword) {
|
|
35454
35437
|
case "const":
|
|
35455
|
-
case "enum": return
|
|
35438
|
+
case "enum": return RZ(r.schema, i);
|
|
35456
35439
|
case "required": {
|
|
35457
35440
|
let t = e.params.missingProperty;
|
|
35458
35441
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -35460,46 +35443,46 @@ function RZ(e, t, n) {
|
|
|
35460
35443
|
default: return !1;
|
|
35461
35444
|
}
|
|
35462
35445
|
}
|
|
35463
|
-
function
|
|
35446
|
+
function RZ(e, t) {
|
|
35464
35447
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35465
35448
|
}
|
|
35466
|
-
function
|
|
35449
|
+
function zZ(e) {
|
|
35467
35450
|
return e.filter((t) => {
|
|
35468
35451
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35469
|
-
let n =
|
|
35452
|
+
let n = VZ(t), r = n === "" ? "" : `${n}.`;
|
|
35470
35453
|
return !e.some((e) => {
|
|
35471
35454
|
if (e === t) return !1;
|
|
35472
|
-
let i =
|
|
35455
|
+
let i = VZ(e);
|
|
35473
35456
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35474
35457
|
});
|
|
35475
35458
|
});
|
|
35476
35459
|
}
|
|
35477
|
-
function
|
|
35460
|
+
function BZ(e, t) {
|
|
35478
35461
|
let n = /* @__PURE__ */ new Map();
|
|
35479
35462
|
for (let t of e) {
|
|
35480
|
-
let e =
|
|
35463
|
+
let e = VZ(t), r = n.get(e) ?? [];
|
|
35481
35464
|
r.push(t), n.set(e, r);
|
|
35482
35465
|
}
|
|
35483
35466
|
let r = {};
|
|
35484
35467
|
for (let [e, i] of n) {
|
|
35485
35468
|
let n = {
|
|
35486
35469
|
type: i[0].keyword,
|
|
35487
|
-
message:
|
|
35470
|
+
message: DZ(i[0], e)
|
|
35488
35471
|
};
|
|
35489
35472
|
if (t === "all" && i.length > 0) {
|
|
35490
35473
|
let t = {};
|
|
35491
|
-
for (let n of i) t[n.keyword] =
|
|
35474
|
+
for (let n of i) t[n.keyword] = DZ(n, e);
|
|
35492
35475
|
n.types = t;
|
|
35493
35476
|
}
|
|
35494
|
-
|
|
35477
|
+
HZ(r, e === "" ? "root" : e, n);
|
|
35495
35478
|
}
|
|
35496
35479
|
return r;
|
|
35497
35480
|
}
|
|
35498
|
-
function
|
|
35499
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
35481
|
+
function VZ(e) {
|
|
35482
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(PJ) : [];
|
|
35500
35483
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35501
35484
|
}
|
|
35502
|
-
function
|
|
35485
|
+
function HZ(e, t, n) {
|
|
35503
35486
|
let r = t.split("."), i = e;
|
|
35504
35487
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35505
35488
|
let t = r[e];
|
|
@@ -35507,7 +35490,7 @@ function UZ(e, t, n) {
|
|
|
35507
35490
|
}
|
|
35508
35491
|
i[r[r.length - 1]] = n;
|
|
35509
35492
|
}
|
|
35510
|
-
function
|
|
35493
|
+
function UZ(e, t, n, r) {
|
|
35511
35494
|
if (!e) return [];
|
|
35512
35495
|
let i = [];
|
|
35513
35496
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -35524,18 +35507,18 @@ function WZ(e, t, n, r) {
|
|
|
35524
35507
|
}
|
|
35525
35508
|
}
|
|
35526
35509
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
35527
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
35510
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...UZ(o, t[a], `${n}/${NJ(a)}`, r));
|
|
35528
35511
|
if (e.variants && e.variants.length > 0 && a) {
|
|
35529
|
-
let a = t, o =
|
|
35530
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
35512
|
+
let a = t, o = hY(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
35513
|
+
if (s) for (let [e, t] of s.properties) i.push(...UZ(t, a[e], `${n}/${NJ(e)}`, r));
|
|
35531
35514
|
}
|
|
35532
35515
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
35533
|
-
i.push(...
|
|
35516
|
+
i.push(...UZ(e.items, t, `${n}/${a}`, r));
|
|
35534
35517
|
}), i;
|
|
35535
35518
|
}
|
|
35536
35519
|
//#endregion
|
|
35537
35520
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35538
|
-
var
|
|
35521
|
+
var WZ = {
|
|
35539
35522
|
navigation: null,
|
|
35540
35523
|
contextSidebar: null,
|
|
35541
35524
|
breadcrumbs: [],
|
|
@@ -35543,9 +35526,9 @@ var GZ = {
|
|
|
35543
35526
|
viewMode: "global",
|
|
35544
35527
|
contextExpanded: !0,
|
|
35545
35528
|
contentVariant: "default"
|
|
35546
|
-
},
|
|
35547
|
-
function
|
|
35548
|
-
let [t, n] = oe(
|
|
35529
|
+
}, GZ = F(null);
|
|
35530
|
+
function KZ({ children: e }) {
|
|
35531
|
+
let [t, n] = oe(WZ), r = R((e, t) => {
|
|
35549
35532
|
n((n) => ({
|
|
35550
35533
|
...n,
|
|
35551
35534
|
[e]: t
|
|
@@ -35557,7 +35540,7 @@ function qZ({ children: e }) {
|
|
|
35557
35540
|
}));
|
|
35558
35541
|
}, []), a = R((e) => {
|
|
35559
35542
|
n((t) => {
|
|
35560
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
35543
|
+
let n = Object.fromEntries(e.map((e) => [e, WZ[e]]));
|
|
35561
35544
|
return {
|
|
35562
35545
|
...t,
|
|
35563
35546
|
...n
|
|
@@ -35574,20 +35557,20 @@ function qZ({ children: e }) {
|
|
|
35574
35557
|
i,
|
|
35575
35558
|
a
|
|
35576
35559
|
]);
|
|
35577
|
-
return /* @__PURE__ */ U(
|
|
35560
|
+
return /* @__PURE__ */ U(GZ.Provider, {
|
|
35578
35561
|
value: o,
|
|
35579
35562
|
children: e
|
|
35580
35563
|
});
|
|
35581
35564
|
}
|
|
35582
|
-
function
|
|
35583
|
-
let e = ee(
|
|
35565
|
+
function qZ() {
|
|
35566
|
+
let e = ee(GZ);
|
|
35584
35567
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
35585
35568
|
return e;
|
|
35586
35569
|
}
|
|
35587
35570
|
//#endregion
|
|
35588
35571
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
35589
|
-
function
|
|
35590
|
-
let { setSlots: n, resetSlots: r } =
|
|
35572
|
+
function JZ(e, t = []) {
|
|
35573
|
+
let { setSlots: n, resetSlots: r } = qZ();
|
|
35591
35574
|
z(() => {
|
|
35592
35575
|
n(e);
|
|
35593
35576
|
let t = Object.keys(e);
|
|
@@ -35602,7 +35585,7 @@ function YZ(e, t = []) {
|
|
|
35602
35585
|
}
|
|
35603
35586
|
//#endregion
|
|
35604
35587
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
35605
|
-
var
|
|
35588
|
+
var YZ = [
|
|
35606
35589
|
{
|
|
35607
35590
|
value: "light",
|
|
35608
35591
|
label: "Light"
|
|
@@ -35616,7 +35599,7 @@ var XZ = [
|
|
|
35616
35599
|
label: "System"
|
|
35617
35600
|
}
|
|
35618
35601
|
];
|
|
35619
|
-
function
|
|
35602
|
+
function XZ({ name: t, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
35620
35603
|
let s = i ?? t.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = A();
|
|
35621
35604
|
return /* @__PURE__ */ W(nI, { children: [/* @__PURE__ */ U(iI, {
|
|
35622
35605
|
asChild: !0,
|
|
@@ -35645,7 +35628,7 @@ function ZZ({ name: t, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
35645
35628
|
/* @__PURE__ */ U(lI, {
|
|
35646
35629
|
value: c,
|
|
35647
35630
|
onValueChange: (e) => l(e),
|
|
35648
|
-
children:
|
|
35631
|
+
children: YZ.map((e) => /* @__PURE__ */ U(uI, {
|
|
35649
35632
|
value: e.value,
|
|
35650
35633
|
children: e.label
|
|
35651
35634
|
}, e.value))
|
|
@@ -35658,6 +35641,6 @@ function ZZ({ name: t, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
35658
35641
|
]
|
|
35659
35642
|
})] });
|
|
35660
35643
|
}
|
|
35661
|
-
|
|
35644
|
+
XZ.displayName = "TopNavUser";
|
|
35662
35645
|
//#endregion
|
|
35663
|
-
export { pv as Accordion, gv as AccordionContent, mv as AccordionItem, hv as AccordionTrigger, xv as Alert, wv as AlertAction, Cv as AlertDescription, Sv as AlertTitle, bU as AppContextBar, AU as AppLayout, PU as AppSidebar, _U as AppSwitcher, Tv as Avatar, Ov as AvatarBadge, Dv as AvatarFallback, kv as AvatarGroup, Av as AvatarGroupCount, Ev as AvatarImage, Mv as Badge, jG as BadgeCell, Nv as Breadcrumb, zv as BreadcrumbEllipsis, Fv as BreadcrumbItem, Iv as BreadcrumbLink, Pv as BreadcrumbList, Lv as BreadcrumbPage, Rv as BreadcrumbSeparator, Vv as Button, Wv as ButtonGroup, Kv as ButtonGroupSeparator, Gv as ButtonGroupText, aC as Calendar, oC as CalendarDayButton, sC as Card, dC as CardAction, fC as CardContent, uC as CardDescription, pC as CardFooter, cC as CardHeader, lC as CardTitle, mC as Checkbox, hC as Collapsible, _C as CollapsibleContent, gC as CollapsibleTrigger, IA as Combobox, XA as ComboboxChip, YA as ComboboxChips, ZA as ComboboxChipsInput, KA as ComboboxCollection, VA as ComboboxContent, qA as ComboboxEmpty, WA as ComboboxGroup, BA as ComboboxInput, UA as ComboboxItem, GA as ComboboxLabel, HA as ComboboxList, JA as ComboboxSeparator, RA as ComboboxTrigger, LA as ComboboxValue, _P as Command, vP as CommandDialog, xP as CommandEmpty, SP as CommandGroup, yP as CommandInput, wP as CommandItem, bP as CommandList, CP as CommandSeparator, TP as CommandShortcut, zU as ContentHeader, EP as ContextMenu, IP as ContextMenuCheckboxItem, MP as ContextMenuContent, OP as ContextMenuGroup, NP as ContextMenuItem, RP as ContextMenuLabel, kP as ContextMenuPortal, jP as ContextMenuRadioGroup, LP as ContextMenuRadioItem, zP as ContextMenuSeparator, BP as ContextMenuShortcut, AP as ContextMenuSub, FP as ContextMenuSubContent, PP as ContextMenuSubTrigger, DP as ContextMenuTrigger, IU as ContextSidebar, LU as ContextToggleButton, NG as CopyableCell, BU as CopyableText,
|
|
35646
|
+
export { pv as Accordion, gv as AccordionContent, mv as AccordionItem, hv as AccordionTrigger, xv as Alert, wv as AlertAction, Cv as AlertDescription, Sv as AlertTitle, bU as AppContextBar, AU as AppLayout, PU as AppSidebar, _U as AppSwitcher, Tv as Avatar, Ov as AvatarBadge, Dv as AvatarFallback, kv as AvatarGroup, Av as AvatarGroupCount, Ev as AvatarImage, Mv as Badge, jG as BadgeCell, Nv as Breadcrumb, zv as BreadcrumbEllipsis, Fv as BreadcrumbItem, Iv as BreadcrumbLink, Pv as BreadcrumbList, Lv as BreadcrumbPage, Rv as BreadcrumbSeparator, Vv as Button, Wv as ButtonGroup, Kv as ButtonGroupSeparator, Gv as ButtonGroupText, aC as Calendar, oC as CalendarDayButton, sC as Card, dC as CardAction, fC as CardContent, uC as CardDescription, pC as CardFooter, cC as CardHeader, lC as CardTitle, mC as Checkbox, hC as Collapsible, _C as CollapsibleContent, gC as CollapsibleTrigger, IA as Combobox, XA as ComboboxChip, YA as ComboboxChips, ZA as ComboboxChipsInput, KA as ComboboxCollection, VA as ComboboxContent, qA as ComboboxEmpty, WA as ComboboxGroup, BA as ComboboxInput, UA as ComboboxItem, GA as ComboboxLabel, HA as ComboboxList, JA as ComboboxSeparator, RA as ComboboxTrigger, LA as ComboboxValue, _P as Command, vP as CommandDialog, xP as CommandEmpty, SP as CommandGroup, yP as CommandInput, wP as CommandItem, bP as CommandList, CP as CommandSeparator, TP as CommandShortcut, zU as ContentHeader, EP as ContextMenu, IP as ContextMenuCheckboxItem, MP as ContextMenuContent, OP as ContextMenuGroup, NP as ContextMenuItem, RP as ContextMenuLabel, kP as ContextMenuPortal, jP as ContextMenuRadioGroup, LP as ContextMenuRadioItem, zP as ContextMenuSeparator, BP as ContextMenuShortcut, AP as ContextMenuSub, FP as ContextMenuSubContent, PP as ContextMenuSubTrigger, DP as ContextMenuTrigger, IU as ContextSidebar, LU as ContextToggleButton, NG as CopyableCell, BU as CopyableText, WZ as DEFAULT_SLOTS, SG as DataTable, CG as DataTableColumnHeader, FG as DataTableEmptyState, hG as DataTablePagination, gG as DataTableViewOptions, AG as DateCell, WK as DatePicker, GK as DateRangePicker, JK as DateTimePicker, ZK as DateTimeRangePicker, sP as Dialog, uP as DialogClose, fP as DialogContent, gP as DialogDescription, mP as DialogFooter, pP as DialogHeader, dP as DialogOverlay, lP as DialogPortal, hP as DialogTitle, cP as DialogTrigger, KF as Drawer, YF as DrawerClose, ZF as DrawerContent, tI as DrawerDescription, $F as DrawerFooter, QF as DrawerHeader, XF as DrawerOverlay, JF as DrawerPortal, eI as DrawerTitle, qF as DrawerTrigger, nI as DropdownMenu, cI as DropdownMenuCheckboxItem, aI as DropdownMenuContent, oI as DropdownMenuGroup, sI as DropdownMenuItem, dI as DropdownMenuLabel, rI as DropdownMenuPortal, lI as DropdownMenuRadioGroup, uI as DropdownMenuRadioItem, fI as DropdownMenuSeparator, pI as DropdownMenuShortcut, mI as DropdownMenuSub, gI as DropdownMenuSubContent, hI as DropdownMenuSubTrigger, iI as DropdownMenuTrigger, _I as Empty, CI as EmptyContent, SI as EmptyDescription, vI as EmptyHeader, bI as EmptyMedia, xI as EmptyTitle, QK as FacetedFilter, kI as Field, AI as FieldContent, NI as FieldDescription, FI as FieldError, DI as FieldGroup, jI as FieldLabel, EI as FieldLegend, PI as FieldSeparator, TI as FieldSet, MI as FieldTitle, rq as FileUpload, kR as FileUploadInput, nq as FileUploadItem, AR as HoverCard, MR as HoverCardContent, FR as HoverCardDescription, NR as HoverCardHeader, PR as HoverCardTitle, jR as HoverCardTrigger, EA as Input, OA as InputGroup, AA as InputGroupAddon, MA as InputGroupButton, PA as InputGroupInput, NA as InputGroupText, FA as InputGroupTextarea, zR as Item, GR as ItemActions, HR as ItemContent, WR as ItemDescription, qR as ItemFooter, IR as ItemGroup, KR as ItemHeader, VR as ItemMedia, LR as ItemSeparator, UR as ItemTitle, WY as JsonSchemaForm, JR as Kbd, YR as KbdGroup, wI as Label, KZ as LayoutSlotsProvider, MG as MonoCell, XR as Pagination, ZR as PaginationContent, nz as PaginationEllipsis, QR as PaginationItem, $R as PaginationLink, tz as PaginationNext, ez as PaginationPrevious, wY as PasswordInput, rz as Popover, oz as PopoverAnchor, az as PopoverContent, lz as PopoverDescription, sz as PopoverHeader, cz as PopoverTitle, iz as PopoverTrigger, Oe as PortalContainerProvider, uz as Progress, fz as Prose, pz as RadioGroup, mz as RadioGroupItem, uV as ResizableHandle, lV as ResizablePanel, cV as ResizablePanelGroup, dV as ScrollArea, fV as ScrollBar, pV as Select, _V as SelectContent, mV as SelectGroup, yV as SelectItem, vV as SelectLabel, SV as SelectScrollDownButton, xV as SelectScrollUpButton, bV as SelectSeparator, gV as SelectTrigger, hV as SelectValue, vU as SelectorDropdown, yU as SelectorTriggerButton, Hv as Separator, CV as Sheet, TV as SheetClose, OV as SheetContent, MV as SheetDescription, AV as SheetFooter, kV as SheetHeader, jV as SheetTitle, wV as SheetTrigger, ZV as Sidebar, aH as SidebarContent, rH as SidebarFooter, oH as SidebarGroup, cH as SidebarGroupAction, lH as SidebarGroupContent, sH as SidebarGroupLabel, nH as SidebarHeader, tH as SidebarInput, eH as SidebarInset, uH as SidebarMenu, mH as SidebarMenuAction, hH as SidebarMenuBadge, pH as SidebarMenuButton, dH as SidebarMenuItem, gH as SidebarMenuSkeleton, _H as SidebarMenuSub, yH as SidebarMenuSubButton, vH as SidebarMenuSubItem, OU as SidebarModeControl, EU as SidebarModeProvider, FU as SidebarNavigation, XV as SidebarProvider, $V as SidebarRail, iH as SidebarSeparator, QV as SidebarTrigger, n as Skeleton, ZH as Spinner, QH as Switch, $H as Table, tU as TableBody, oU as TableCaption, aU as TableCell, nU as TableFooter, iU as TableHead, eU as TableHeader, rU as TableRow, sU as Tabs, dU as TabsContent, lU as TabsList, uU as TabsTrigger, DA as Textarea, j as ThemeProvider, XH as Toaster, pU as Toggle, hU as ToggleGroup, gU as ToggleGroupItem, PV as Tooltip, IV as TooltipContent, NV as TooltipProvider, FV as TooltipTrigger, XZ as TopNavUser, PG as TruncatedCell, bv as alertVariants, jv as badgeVariants, VU as buildLinearBreadcrumbs, Uv as buttonGroupVariants, Bv as buttonVariants, e as cn, GY as composeResolvers, RJ as extractDefaults, IZ as jsonSchemaResolver, cU as tabsListVariants, PH as toast, fU as toggleVariants, QA as useComboboxAnchor, JZ as useLayoutConfig, qZ as useLayoutSlots, ke as usePortalContainer, YV as useSidebar, CU as useSidebarMode, A as useTheme };
|