@gravitee/graphene-core 3.29.2 → 3.29.3-fix-json-schema-form-array-ux.f8a5478
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/{CodeEditorField-CMymmkQA.js → CodeEditorField-Cp5OWo1-.js} +6 -6
- package/dist/{SchemaBanner-CdGB5Bfw.js → SchemaBanner-B0ZEWe3Y.js} +10 -7
- package/dist/__stories__/fixtures/json-schema-form/array.fixture.d.ts +2 -0
- package/dist/__stories__/fixtures/json-schema-form/array.fixture.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/BlockableButton.d.ts +7 -0
- package/dist/composed/JsonSchemaForm/fields/array/BlockableButton.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/itemCount.d.ts +5 -0
- package/dist/composed/JsonSchemaForm/fields/array/itemCount.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/itemTitle.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/fields/array/itemTitle.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/summarizeItem.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/fields/array/summarizeItem.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/use-array-field.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/fields/array/use-array-field.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/utils/fieldErrors.d.ts.map +1 -1
- package/dist/index.js +7872 -7716
- package/dist/styles/globals.css +1 -1
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, g as t, h as n, l as r, p as i, r as a, s as o, t as s, v as c } from "./SchemaBanner-B0ZEWe3Y.js";
|
|
2
2
|
import { t as l } from "./CodeEditor-W9JPCQhc.js";
|
|
3
3
|
import { useEffect as u, useRef as d, useState as f } from "react";
|
|
4
4
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -13,7 +13,7 @@ function g(e) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
function _({ node: _, name: v }) {
|
|
16
|
-
let { control: y, basePath: b, disabled: x } =
|
|
16
|
+
let { control: y, basePath: b, disabled: x } = o(), { schema: S } = _, C = v ? b ? `${b}.${v}` : v : b, { field: w, fieldState: T } = r({
|
|
17
17
|
control: y,
|
|
18
18
|
name: C
|
|
19
19
|
}), E = a(S, v), D = T.invalid, O = typeof w.value == "string" ? w.value : "", [k] = f(() => O), A = S.gioConfig?.monacoEditorConfig?.language ?? (g(k) ? "json" : "plaintext"), j = d(w.onBlur);
|
|
@@ -23,10 +23,10 @@ function _({ node: _, name: v }) {
|
|
|
23
23
|
let M = d(null);
|
|
24
24
|
return u(() => () => {
|
|
25
25
|
M.current?.dispose(), M.current = null;
|
|
26
|
-
}, []), /* @__PURE__ */ m(
|
|
26
|
+
}, []), /* @__PURE__ */ m(i, {
|
|
27
27
|
"data-invalid": D,
|
|
28
28
|
children: [
|
|
29
|
-
/* @__PURE__ */ p(
|
|
29
|
+
/* @__PURE__ */ p(c, {
|
|
30
30
|
htmlFor: C,
|
|
31
31
|
required: S.isRequired,
|
|
32
32
|
children: E
|
|
@@ -43,8 +43,8 @@ function _({ node: _, name: v }) {
|
|
|
43
43
|
M.current?.dispose(), M.current = e.onDidBlurEditorText(() => j.current());
|
|
44
44
|
}
|
|
45
45
|
}),
|
|
46
|
-
S.description && /* @__PURE__ */ p(
|
|
47
|
-
/* @__PURE__ */ p(
|
|
46
|
+
S.description && /* @__PURE__ */ p(n, { children: S.description }),
|
|
47
|
+
/* @__PURE__ */ p(t, { errors: e(T.error) })
|
|
48
48
|
]
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -999,20 +999,23 @@ function yt() {
|
|
|
999
999
|
function bt(e) {
|
|
1000
1000
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
1001
1001
|
}
|
|
1002
|
+
function xt(e) {
|
|
1003
|
+
return !e || typeof e != "object" ? 0 : typeof e.type == "string" ? 1 : Object.values(e).reduce((e, t) => e + xt(t), 0);
|
|
1004
|
+
}
|
|
1002
1005
|
//#endregion
|
|
1003
1006
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
1004
|
-
function
|
|
1007
|
+
function St(e) {
|
|
1005
1008
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
1006
1009
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return
|
|
1010
|
+
function Ct(e) {
|
|
1011
|
+
return St(e.split(".").pop());
|
|
1009
1012
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
1013
|
+
function wt(e, t) {
|
|
1014
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : St(t);
|
|
1012
1015
|
}
|
|
1013
1016
|
//#endregion
|
|
1014
1017
|
//#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
|
|
1015
|
-
function
|
|
1018
|
+
function Tt({ banner: e }) {
|
|
1016
1019
|
let t = "title" in e ? e.title : void 0;
|
|
1017
1020
|
return /* @__PURE__ */ u(de, {
|
|
1018
1021
|
role: "note",
|
|
@@ -1031,4 +1034,4 @@ function wt({ banner: e }) {
|
|
|
1031
1034
|
});
|
|
1032
1035
|
}
|
|
1033
1036
|
//#endregion
|
|
1034
|
-
export {
|
|
1037
|
+
export { D as A, ge as C, pe as D, me as E, y as F, p as I, m as L, ee as M, g as N, fe as O, h as P, we as S, de as T, ye as _, bt as a, Ee as b, R as c, Re as d, He as f, De as g, Te as h, xt as i, C as j, le as k, Ue as l, Se as m, Ct as n, vt as o, xe as p, wt as r, yt as s, Tt as t, _t as u, Ce as v, he as w, _e as x, ve as y };
|
|
@@ -4,6 +4,8 @@ import { JsonSchema } from '../../../composed/JsonSchemaForm';
|
|
|
4
4
|
* Covers every array variant US 4 ships:
|
|
5
5
|
* - simple string array
|
|
6
6
|
* - array of objects (collapsible items rendering nested fields)
|
|
7
|
+
* - array of objects carrying arrays of objects (nested rows start closed and sum up their
|
|
8
|
+
* item, each Add names what it adds, a rail bounds each open item)
|
|
7
9
|
* - array with `minItems` / `maxItems` constraints
|
|
8
10
|
* - array with `gioConfig.uiBorder: 'full'` opt-in (Graphene default = borderless)
|
|
9
11
|
* - headers-array via `gioConfig.uiType: 'gio-headers-array'`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/array.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF
|
|
1
|
+
{"version":3,"file":"array.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/json-schema-form/array.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAElF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gCAAgC,EAAE,UAoK9C,CAAC"}
|
|
@@ -4,9 +4,9 @@ interface SchemaFieldProps {
|
|
|
4
4
|
readonly node: SchemaNode;
|
|
5
5
|
readonly name?: string;
|
|
6
6
|
readonly depth?: number;
|
|
7
|
-
readonly
|
|
7
|
+
readonly hiddenTitle?: string;
|
|
8
8
|
}
|
|
9
|
-
declare function SchemaField({ node, name, depth,
|
|
9
|
+
declare function SchemaField({ node, name, depth, hiddenTitle }: SchemaFieldProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import('react').ReactPortal | import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|
|
10
10
|
export { SchemaField };
|
|
11
11
|
export type { SchemaFieldProps };
|
|
12
12
|
//# sourceMappingURL=SchemaField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAejD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"SchemaField.d.ts","sourceRoot":"","sources":["../../../src/composed/JsonSchemaForm/SchemaField.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAgBhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAejD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAG1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAS,EAAE,WAAW,EAAE,EAAE,gBAAgB,+TAgC5E;AAsFD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/ArrayField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/ArrayField.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAYrD,UAAU,eAAe;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAWD,iBAAS,UAAU,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,+BAwFzD;AA4ID,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ButtonProps } from '../../../../base/Button';
|
|
2
|
+
interface BlockableButtonProps extends ButtonProps {
|
|
3
|
+
readonly reason: string | undefined;
|
|
4
|
+
}
|
|
5
|
+
declare function BlockableButton({ reason, className, onClick, ...props }: BlockableButtonProps): import("react").JSX.Element;
|
|
6
|
+
export { BlockableButton };
|
|
7
|
+
//# sourceMappingURL=BlockableButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockableButton.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/BlockableButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAI/E,UAAU,oBAAqB,SAAQ,WAAW;IAEhD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAID,iBAAS,eAAe,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAYtF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeadersArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeadersArrayField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAWrD,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAKD,iBAAS,iBAAiB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,sBAAsB,+BA8EvE;AA0FD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare function countBadge(length: number, maxItems: number): string;
|
|
2
|
+
declare function countSentence(length: number, maxItems: number): string;
|
|
3
|
+
declare function itemsWord(count: number): string;
|
|
4
|
+
export { countBadge, countSentence, itemsWord };
|
|
5
|
+
//# sourceMappingURL=itemCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemCount.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/itemCount.ts"],"names":[],"mappings":"AAEA,iBAAS,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,iBAAS,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,iBAAS,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExC;AAED,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JsonSchema } from '../../models/json-schema.types';
|
|
2
|
+
declare function itemTitleOf(itemsSchema: JsonSchema | undefined): string;
|
|
3
|
+
declare function asNoun(title: string): string;
|
|
4
|
+
declare function itemNounOf(itemsSchema: JsonSchema | undefined): string;
|
|
5
|
+
export { asNoun, itemNounOf, itemTitleOf };
|
|
6
|
+
//# sourceMappingURL=itemTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemTitle.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/itemTitle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,iBAAS,WAAW,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAGhE;AAGD,iBAAS,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrC;AAED,iBAAS,UAAU,CAAC,WAAW,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAE/D;AAED,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarizeItem.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/summarizeItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAMjE,iBAAS,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAe9F;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -7,8 +7,12 @@ declare function useArrayField(schema: JsonSchema, name: string | undefined): {
|
|
|
7
7
|
remove: import('react-hook-form').UseFieldArrayRemove;
|
|
8
8
|
fieldState: import('react-hook-form').ControllerFieldState;
|
|
9
9
|
isDisabled: boolean;
|
|
10
|
+
minItems: number;
|
|
11
|
+
maxItems: number;
|
|
10
12
|
atMin: boolean;
|
|
11
13
|
atMax: boolean;
|
|
14
|
+
addReason: string | undefined;
|
|
15
|
+
removeReason: string | undefined;
|
|
12
16
|
};
|
|
13
17
|
export { useArrayField };
|
|
14
18
|
//# sourceMappingURL=use-array-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-array-field.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/use-array-field.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"use-array-field.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/array/use-array-field.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAGjE,iBAAS,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS;;;;;;;;;;;;;;EA4BlE;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { SchemaNode } from '../../schema/types';
|
|
|
2
2
|
interface BooleanFieldProps {
|
|
3
3
|
readonly node: SchemaNode;
|
|
4
4
|
readonly name: string;
|
|
5
|
+
readonly hiddenTitle?: string;
|
|
5
6
|
}
|
|
6
|
-
declare function BooleanField({ node, name }: BooleanFieldProps): import("react").JSX.Element;
|
|
7
|
+
declare function BooleanField({ node, name, hiddenTitle }: BooleanFieldProps): import("react").JSX.Element;
|
|
7
8
|
export { BooleanField };
|
|
8
9
|
//# sourceMappingURL=BooleanField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BooleanField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,iBAAS,YAAY,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,iBAAiB,+BAwCnE;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { SchemaNode } from '../../schema/types';
|
|
|
2
2
|
interface EnumFieldProps {
|
|
3
3
|
readonly node: SchemaNode;
|
|
4
4
|
readonly name: string;
|
|
5
|
+
readonly hiddenTitle?: string;
|
|
5
6
|
}
|
|
6
|
-
declare function EnumField({ node, name }: EnumFieldProps): import("react").JSX.Element;
|
|
7
|
+
declare function EnumField({ node, name, hiddenTitle }: EnumFieldProps): import("react").JSX.Element;
|
|
7
8
|
export { EnumField };
|
|
8
9
|
//# sourceMappingURL=EnumField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnumField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/enum/EnumField.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrD,UAAU,cAAc;IACtB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"EnumField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/enum/EnumField.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrD,UAAU,cAAc;IACtB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,iBAAS,SAAS,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,cAAc,+BA6C7D;AAWD,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { SchemaNode } from '../../schema/types';
|
|
|
2
2
|
interface NumberFieldProps {
|
|
3
3
|
readonly node: SchemaNode;
|
|
4
4
|
readonly name: string;
|
|
5
|
+
readonly hiddenTitle?: string;
|
|
5
6
|
}
|
|
6
|
-
declare function NumberField({ node, name }: NumberFieldProps): import("react").JSX.Element;
|
|
7
|
+
declare function NumberField({ node, name, hiddenTitle }: NumberFieldProps): import("react").JSX.Element;
|
|
7
8
|
export { NumberField };
|
|
8
9
|
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/number/NumberField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/number/NumberField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,gBAAgB,+BAgEjE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -3,8 +3,8 @@ interface ObjectFieldProps {
|
|
|
3
3
|
readonly node: SchemaNode;
|
|
4
4
|
readonly name?: string;
|
|
5
5
|
readonly depth: number;
|
|
6
|
-
readonly
|
|
6
|
+
readonly hiddenTitle?: string;
|
|
7
7
|
}
|
|
8
|
-
declare function ObjectField({ node, name, depth,
|
|
8
|
+
declare function ObjectField({ node, name, depth, hiddenTitle }: ObjectFieldProps): import("react").JSX.Element;
|
|
9
9
|
export { ObjectField };
|
|
10
10
|
//# sourceMappingURL=ObjectField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"ObjectField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/object/ObjectField.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAOrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAGvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAQD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,gBAAgB,+BA0DxE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -2,7 +2,8 @@ import { SchemaNode } from '../../schema/types';
|
|
|
2
2
|
interface StringFieldProps {
|
|
3
3
|
readonly node: SchemaNode;
|
|
4
4
|
readonly name: string;
|
|
5
|
+
readonly hiddenTitle?: string;
|
|
5
6
|
}
|
|
6
|
-
declare function StringField({ node, name }: StringFieldProps): import("react").JSX.Element;
|
|
7
|
+
declare function StringField({ node, name, hiddenTitle }: StringFieldProps): import("react").JSX.Element;
|
|
7
8
|
export { StringField };
|
|
8
9
|
//# sourceMappingURL=StringField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/string/StringField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StringField.d.ts","sourceRoot":"","sources":["../../../../../src/composed/JsonSchemaForm/fields/string/StringField.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrD,UAAU,gBAAgB;IACxB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAOD,iBAAS,WAAW,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,gBAAgB,+BA4DjE;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -2,5 +2,6 @@ import { FieldError } from 'react-hook-form';
|
|
|
2
2
|
declare function fieldErrorsAsArray(error: FieldError | undefined): Array<{
|
|
3
3
|
message?: string;
|
|
4
4
|
}>;
|
|
5
|
-
|
|
5
|
+
declare function countFieldErrors(error: unknown): number;
|
|
6
|
+
export { countFieldErrors, fieldErrorsAsArray };
|
|
6
7
|
//# sourceMappingURL=fieldErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldErrors.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/fieldErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAStF;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"fieldErrors.d.ts","sourceRoot":"","sources":["../../../../src/composed/JsonSchemaForm/utils/fieldErrors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMlD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,KAAK,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAStF;AAGD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAIhD;AAED,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,CAAC"}
|