@jsonforms/core 3.3.0-beta.0 → 3.3.0
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/lib/Helpers.d.ts +5 -5
- package/lib/actions/actions.d.ts +198 -198
- package/lib/actions/index.d.ts +1 -1
- package/lib/configDefault.d.ts +6 -6
- package/lib/generators/Generate.d.ts +6 -6
- package/lib/generators/index.d.ts +3 -3
- package/lib/generators/schema.d.ts +8 -8
- package/lib/generators/uischema.d.ts +12 -12
- package/lib/i18n/arrayTranslations.d.ts +24 -24
- package/lib/i18n/combinatorTranslations.d.ts +14 -14
- package/lib/i18n/i18nTypes.d.ts +16 -16
- package/lib/i18n/i18nUtil.d.ts +28 -28
- package/lib/i18n/index.d.ts +4 -4
- package/lib/index.d.ts +11 -11
- package/lib/models/draft4.d.ts +198 -198
- package/lib/models/index.d.ts +5 -5
- package/lib/models/jsonSchema.d.ts +3 -3
- package/lib/models/jsonSchema4.d.ts +110 -110
- package/lib/models/jsonSchema7.d.ts +119 -119
- package/lib/models/uischema.d.ts +231 -231
- package/lib/reducers/cells.d.ts +11 -11
- package/lib/reducers/config.d.ts +3 -3
- package/lib/reducers/core.d.ts +26 -26
- package/lib/reducers/default-data.d.ts +10 -10
- package/lib/reducers/i18n.d.ts +8 -8
- package/lib/reducers/index.d.ts +10 -10
- package/lib/reducers/middleware.d.ts +6 -6
- package/lib/reducers/reducers.d.ts +29 -29
- package/lib/reducers/renderers.d.ts +10 -10
- package/lib/reducers/selectors.d.ts +15 -15
- package/lib/reducers/uischemas.d.ts +10 -10
- package/lib/store.d.ts +53 -53
- package/lib/testers/index.d.ts +1 -1
- package/lib/testers/testers.d.ts +220 -220
- package/lib/util/Formatted.d.ts +19 -19
- package/lib/util/array.d.ts +3 -3
- package/lib/util/cell.d.ts +78 -78
- package/lib/util/combinators.d.ts +9 -9
- package/lib/util/defaultDateFormat.d.ts +3 -3
- package/lib/util/ids.d.ts +3 -3
- package/lib/util/index.d.ts +16 -16
- package/lib/util/label.d.ts +21 -21
- package/lib/util/path.d.ts +38 -38
- package/lib/util/renderer.d.ts +429 -429
- package/lib/util/resolvers.d.ts +25 -25
- package/lib/util/runtime.d.ts +17 -17
- package/lib/util/schema.d.ts +10 -10
- package/lib/util/type.d.ts +174 -174
- package/lib/util/uischema.d.ts +18 -18
- package/lib/util/util.d.ts +57 -57
- package/lib/util/validator.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const defaultDateFormat = "YYYY-MM-DD";
|
|
2
|
-
export declare const defaultTimeFormat = "HH:mm:ss";
|
|
3
|
-
export declare const defaultDateTimeFormat = "YYYY-MM-DDTHH:mm:ss.sssZ";
|
|
1
|
+
export declare const defaultDateFormat = "YYYY-MM-DD";
|
|
2
|
+
export declare const defaultTimeFormat = "HH:mm:ss";
|
|
3
|
+
export declare const defaultDateTimeFormat = "YYYY-MM-DDTHH:mm:ss.sssZ";
|
package/lib/util/ids.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const createId: (proposedId: string) => string;
|
|
2
|
-
export declare const removeId: (id: string) => boolean;
|
|
3
|
-
export declare const clearAllIds: () => void;
|
|
1
|
+
export declare const createId: (proposedId: string) => string;
|
|
2
|
+
export declare const removeId: (id: string) => boolean;
|
|
3
|
+
export declare const clearAllIds: () => void;
|
package/lib/util/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from './array';
|
|
2
|
-
export * from './cell';
|
|
3
|
-
export * from './combinators';
|
|
4
|
-
export * from './Formatted';
|
|
5
|
-
export * from './ids';
|
|
6
|
-
export * from './label';
|
|
7
|
-
export * from './path';
|
|
8
|
-
export * from './renderer';
|
|
9
|
-
export * from './resolvers';
|
|
10
|
-
export * from './runtime';
|
|
11
|
-
export * from './schema';
|
|
12
|
-
export * from './type';
|
|
13
|
-
export * from './uischema';
|
|
14
|
-
export * from './util';
|
|
15
|
-
export * from './validator';
|
|
16
|
-
export * from './defaultDateFormat';
|
|
1
|
+
export * from './array';
|
|
2
|
+
export * from './cell';
|
|
3
|
+
export * from './combinators';
|
|
4
|
+
export * from './Formatted';
|
|
5
|
+
export * from './ids';
|
|
6
|
+
export * from './label';
|
|
7
|
+
export * from './path';
|
|
8
|
+
export * from './renderer';
|
|
9
|
+
export * from './resolvers';
|
|
10
|
+
export * from './runtime';
|
|
11
|
+
export * from './schema';
|
|
12
|
+
export * from './type';
|
|
13
|
+
export * from './uischema';
|
|
14
|
+
export * from './util';
|
|
15
|
+
export * from './validator';
|
|
16
|
+
export * from './defaultDateFormat';
|
package/lib/util/label.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ControlElement, JsonSchema, LabelDescription, UISchemaElement } from '../models';
|
|
2
|
-
import { Translator } from '../i18n';
|
|
3
|
-
export declare const createCleanLabel: (label: string) => string;
|
|
4
|
-
/**
|
|
5
|
-
* Return a label object based on the given control and schema element.
|
|
6
|
-
* @param {ControlElement} withLabel the UI schema to obtain a label object for
|
|
7
|
-
* @param {JsonSchema} schema optional: the corresponding schema element
|
|
8
|
-
* @returns {LabelDescription}
|
|
9
|
-
*/
|
|
10
|
-
export declare const createLabelDescriptionFrom: (withLabel: ControlElement, schema?: JsonSchema) => LabelDescription;
|
|
11
|
-
/**
|
|
12
|
-
* Compute the child label title for array based controls
|
|
13
|
-
* @param data the data of the control
|
|
14
|
-
* @param childPath the child path
|
|
15
|
-
* @param childLabelProp the dotted path to the value used as child label
|
|
16
|
-
* @param {JsonSchema} schema the json schema for this control
|
|
17
|
-
* @param {JsonSchema} rootSchema the root json schema
|
|
18
|
-
* @param {Translator} translateFct the translator fonction
|
|
19
|
-
* @param {UISchemaElement} uiSchema the uiSchema of the control
|
|
20
|
-
*/
|
|
21
|
-
export declare const computeChildLabel: (data: any, childPath: string, childLabelProp: string, schema: JsonSchema, rootSchema: JsonSchema, translateFct: Translator, uiSchema: UISchemaElement) => string;
|
|
1
|
+
import { ControlElement, JsonSchema, LabelDescription, UISchemaElement } from '../models';
|
|
2
|
+
import { Translator } from '../i18n';
|
|
3
|
+
export declare const createCleanLabel: (label: string) => string;
|
|
4
|
+
/**
|
|
5
|
+
* Return a label object based on the given control and schema element.
|
|
6
|
+
* @param {ControlElement} withLabel the UI schema to obtain a label object for
|
|
7
|
+
* @param {JsonSchema} schema optional: the corresponding schema element
|
|
8
|
+
* @returns {LabelDescription}
|
|
9
|
+
*/
|
|
10
|
+
export declare const createLabelDescriptionFrom: (withLabel: ControlElement, schema?: JsonSchema) => LabelDescription;
|
|
11
|
+
/**
|
|
12
|
+
* Compute the child label title for array based controls
|
|
13
|
+
* @param data the data of the control
|
|
14
|
+
* @param childPath the child path
|
|
15
|
+
* @param childLabelProp the dotted path to the value used as child label
|
|
16
|
+
* @param {JsonSchema} schema the json schema for this control
|
|
17
|
+
* @param {JsonSchema} rootSchema the root json schema
|
|
18
|
+
* @param {Translator} translateFct the translator fonction
|
|
19
|
+
* @param {UISchemaElement} uiSchema the uiSchema of the control
|
|
20
|
+
*/
|
|
21
|
+
export declare const computeChildLabel: (data: any, childPath: string, childLabelProp: string, schema: JsonSchema, rootSchema: JsonSchema, translateFct: Translator, uiSchema: UISchemaElement) => string;
|
package/lib/util/path.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Scopable } from '../models';
|
|
2
|
-
export declare const compose: (path1: string, path2: string) => string;
|
|
3
|
-
export { compose as composePaths };
|
|
4
|
-
/**
|
|
5
|
-
* Convert a schema path (i.e. JSON pointer) to an array by splitting
|
|
6
|
-
* at the '/' character and removing all schema-specific keywords.
|
|
7
|
-
*
|
|
8
|
-
* The returned value can be used to de-reference a root object by folding over it
|
|
9
|
-
* and de-referencing the single segments to obtain a new object.
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @param {string} schemaPath the schema path to be converted
|
|
13
|
-
* @returns {string[]} an array containing only non-schema-specific segments
|
|
14
|
-
*/
|
|
15
|
-
export declare const toDataPathSegments: (schemaPath: string) => string[];
|
|
16
|
-
/**
|
|
17
|
-
* Convert a schema path (i.e. JSON pointer) to a data path.
|
|
18
|
-
*
|
|
19
|
-
* Data paths can be used in field change event handlers like handleChange.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* toDataPath('#/properties/foo/properties/bar') === 'foo.bar')
|
|
23
|
-
*
|
|
24
|
-
* @param {string} schemaPath the schema path to be converted
|
|
25
|
-
* @returns {string} the data path
|
|
26
|
-
*/
|
|
27
|
-
export declare const toDataPath: (schemaPath: string) => string;
|
|
28
|
-
export declare const composeWithUi: (scopableUi: Scopable, path: string) => string;
|
|
29
|
-
/**
|
|
30
|
-
* Encodes the given segment to be used as part of a JSON Pointer
|
|
31
|
-
*
|
|
32
|
-
* JSON Pointer has special meaning for "/" and "~", therefore these must be encoded
|
|
33
|
-
*/
|
|
34
|
-
export declare const encode: (segment: string) => string;
|
|
35
|
-
/**
|
|
36
|
-
* Decodes a given JSON Pointer segment to its "normal" representation
|
|
37
|
-
*/
|
|
38
|
-
export declare const decode: (pointerSegment: string) => string;
|
|
1
|
+
import { Scopable } from '../models';
|
|
2
|
+
export declare const compose: (path1: string, path2: string) => string;
|
|
3
|
+
export { compose as composePaths };
|
|
4
|
+
/**
|
|
5
|
+
* Convert a schema path (i.e. JSON pointer) to an array by splitting
|
|
6
|
+
* at the '/' character and removing all schema-specific keywords.
|
|
7
|
+
*
|
|
8
|
+
* The returned value can be used to de-reference a root object by folding over it
|
|
9
|
+
* and de-referencing the single segments to obtain a new object.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* @param {string} schemaPath the schema path to be converted
|
|
13
|
+
* @returns {string[]} an array containing only non-schema-specific segments
|
|
14
|
+
*/
|
|
15
|
+
export declare const toDataPathSegments: (schemaPath: string) => string[];
|
|
16
|
+
/**
|
|
17
|
+
* Convert a schema path (i.e. JSON pointer) to a data path.
|
|
18
|
+
*
|
|
19
|
+
* Data paths can be used in field change event handlers like handleChange.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* toDataPath('#/properties/foo/properties/bar') === 'foo.bar')
|
|
23
|
+
*
|
|
24
|
+
* @param {string} schemaPath the schema path to be converted
|
|
25
|
+
* @returns {string} the data path
|
|
26
|
+
*/
|
|
27
|
+
export declare const toDataPath: (schemaPath: string) => string;
|
|
28
|
+
export declare const composeWithUi: (scopableUi: Scopable, path: string) => string;
|
|
29
|
+
/**
|
|
30
|
+
* Encodes the given segment to be used as part of a JSON Pointer
|
|
31
|
+
*
|
|
32
|
+
* JSON Pointer has special meaning for "/" and "~", therefore these must be encoded
|
|
33
|
+
*/
|
|
34
|
+
export declare const encode: (segment: string) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Decodes a given JSON Pointer segment to its "normal" representation
|
|
37
|
+
*/
|
|
38
|
+
export declare const decode: (pointerSegment: string) => string;
|