@jsonforms/core 3.0.0-alpha.3 → 3.0.0-beta.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/docs/globals.html +37 -37
- package/docs/interfaces/arraycontrolprops.html +21 -21
- package/docs/interfaces/arraylayoutprops.html +21 -21
- package/docs/interfaces/cellprops.html +12 -12
- package/docs/interfaces/combinatorrendererprops.html +13 -13
- package/docs/interfaces/controlprops.html +16 -16
- package/docs/interfaces/controlstate.html +2 -2
- package/docs/interfaces/controlwithdetailprops.html +17 -17
- package/docs/interfaces/dispatchcellprops.html +10 -10
- package/docs/interfaces/dispatchcellstateprops.html +10 -10
- package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
- package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
- package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
- package/docs/interfaces/enumcellprops.html +13 -13
- package/docs/interfaces/enumoption.html +2 -2
- package/docs/interfaces/jsonformsprops.html +9 -9
- package/docs/interfaces/layoutprops.html +10 -10
- package/docs/interfaces/ownpropsofcell.html +9 -9
- package/docs/interfaces/ownpropsofcontrol.html +9 -9
- package/docs/interfaces/ownpropsofenum.html +1 -1
- package/docs/interfaces/ownpropsofenumcell.html +10 -10
- package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
- package/docs/interfaces/ownpropsoflayout.html +9 -9
- package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
- package/docs/interfaces/ownpropsofrenderer.html +8 -8
- package/docs/interfaces/rendererprops.html +9 -9
- package/docs/interfaces/statepropsofarraycontrol.html +17 -17
- package/docs/interfaces/statepropsofarraylayout.html +17 -17
- package/docs/interfaces/statepropsofcell.html +11 -11
- package/docs/interfaces/statepropsofcombinator.html +12 -12
- package/docs/interfaces/statepropsofcontrol.html +15 -15
- package/docs/interfaces/statepropsofcontrolwithdetail.html +16 -16
- package/docs/interfaces/statepropsofenumcell.html +12 -12
- package/docs/interfaces/statepropsofjsonformsrenderer.html +9 -9
- package/docs/interfaces/statepropsoflayout.html +10 -10
- package/docs/interfaces/statepropsofmasteritem.html +7 -7
- package/docs/interfaces/statepropsofrenderer.html +9 -9
- package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
- package/docs/interfaces/withclassname.html +1 -1
- package/lib/Helpers.d.ts +5 -5
- package/lib/actions/actions.d.ts +181 -181
- 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/i18nTypes.d.ts +15 -15
- package/lib/i18n/i18nUtil.d.ts +18 -18
- package/lib/i18n/index.d.ts +2 -2
- package/lib/index.d.ts +11 -11
- package/lib/jsonforms-core.cjs.js +2445 -0
- package/lib/jsonforms-core.cjs.js.map +1 -0
- package/lib/jsonforms-core.esm.js +2164 -0
- package/lib/jsonforms-core.esm.js.map +1 -0
- 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 +201 -201
- package/lib/reducers/cells.d.ts +11 -11
- package/lib/reducers/config.d.ts +3 -3
- package/lib/reducers/core.d.ts +24 -24
- package/lib/reducers/default-data.d.ts +10 -10
- package/lib/reducers/i18n.d.ts +8 -8
- package/lib/reducers/index.d.ts +9 -9
- 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 +203 -203
- package/lib/util/Formatted.d.ts +19 -19
- package/lib/util/array.d.ts +3 -3
- package/lib/util/cell.d.ts +79 -79
- package/lib/util/combinators.d.ts +10 -10
- package/lib/util/ids.d.ts +3 -3
- package/lib/util/index.d.ts +15 -15
- package/lib/util/label.d.ts +9 -9
- package/lib/util/path.d.ts +25 -25
- package/lib/util/renderer.d.ts +398 -397
- package/lib/util/resolvers.d.ts +25 -25
- package/lib/util/runtime.d.ts +18 -18
- package/lib/util/schema.d.ts +1 -1
- package/lib/util/type.d.ts +174 -174
- package/lib/util/uischema.d.ts +5 -5
- package/lib/util/util.d.ts +31 -31
- package/lib/util/validator.d.ts +3 -3
- package/package.json +16 -13
- package/rollup.config.js +44 -0
- package/src/reducers/reducers.ts +2 -2
- package/src/util/cell.ts +4 -4
- package/src/util/renderer.ts +9 -8
- package/stats.html +3279 -0
- package/lib/Helpers.js +0 -33
- package/lib/Helpers.js.map +0 -1
- package/lib/actions/actions.js +0 -173
- package/lib/actions/actions.js.map +0 -1
- package/lib/actions/index.js +0 -29
- package/lib/actions/index.js.map +0 -1
- package/lib/configDefault.js +0 -48
- package/lib/configDefault.js.map +0 -1
- package/lib/generators/Generate.js +0 -35
- package/lib/generators/Generate.js.map +0 -1
- package/lib/generators/index.js +0 -31
- package/lib/generators/index.js.map +0 -1
- package/lib/generators/schema.js +0 -154
- package/lib/generators/schema.js.map +0 -1
- package/lib/generators/uischema.js +0 -169
- package/lib/generators/uischema.js.map +0 -1
- package/lib/i18n/i18nTypes.js +0 -3
- package/lib/i18n/i18nTypes.js.map +0 -1
- package/lib/i18n/i18nUtil.js +0 -71
- package/lib/i18n/i18nUtil.js.map +0 -1
- package/lib/i18n/index.js +0 -6
- package/lib/i18n/index.js.map +0 -1
- package/lib/index.js +0 -40
- package/lib/index.js.map +0 -1
- package/lib/jsonforms-core.js +0 -25
- package/lib/jsonforms-core.js.map +0 -1
- package/lib/models/draft4.js +0 -174
- package/lib/models/draft4.js.map +0 -1
- package/lib/models/index.js +0 -33
- package/lib/models/index.js.map +0 -1
- package/lib/models/jsonSchema.js +0 -27
- package/lib/models/jsonSchema.js.map +0 -1
- package/lib/models/jsonSchema4.js +0 -30
- package/lib/models/jsonSchema4.js.map +0 -1
- package/lib/models/jsonSchema7.js +0 -30
- package/lib/models/jsonSchema7.js.map +0 -1
- package/lib/models/uischema.js +0 -58
- package/lib/models/uischema.js.map +0 -1
- package/lib/reducers/cells.js +0 -42
- package/lib/reducers/cells.js.map +0 -1
- package/lib/reducers/config.js +0 -46
- package/lib/reducers/config.js.map +0 -1
- package/lib/reducers/core.js +0 -294
- package/lib/reducers/core.js.map +0 -1
- package/lib/reducers/default-data.js +0 -45
- package/lib/reducers/default-data.js.map +0 -1
- package/lib/reducers/i18n.js +0 -83
- package/lib/reducers/i18n.js.map +0 -1
- package/lib/reducers/index.js +0 -37
- package/lib/reducers/index.js.map +0 -1
- package/lib/reducers/reducers.js +0 -98
- package/lib/reducers/reducers.js.map +0 -1
- package/lib/reducers/renderers.js +0 -43
- package/lib/reducers/renderers.js.map +0 -1
- package/lib/reducers/selectors.js +0 -56
- package/lib/reducers/selectors.js.map +0 -1
- package/lib/reducers/uischemas.js +0 -60
- package/lib/reducers/uischemas.js.map +0 -1
- package/lib/store.js +0 -27
- package/lib/store.js.map +0 -1
- package/lib/testers/index.js +0 -29
- package/lib/testers/index.js.map +0 -1
- package/lib/testers/testers.js +0 -421
- package/lib/testers/testers.js.map +0 -1
- package/lib/util/Formatted.js +0 -27
- package/lib/util/Formatted.js.map +0 -1
- package/lib/util/array.js +0 -44
- package/lib/util/array.js.map +0 -1
- package/lib/util/cell.js +0 -148
- package/lib/util/cell.js.map +0 -1
- package/lib/util/combinators.js +0 -59
- package/lib/util/combinators.js.map +0 -1
- package/lib/util/ids.js +0 -54
- package/lib/util/ids.js.map +0 -1
- package/lib/util/index.js +0 -43
- package/lib/util/index.js.map +0 -1
- package/lib/util/label.js +0 -73
- package/lib/util/label.js.map +0 -1
- package/lib/util/path.js +0 -90
- package/lib/util/path.js.map +0 -1
- package/lib/util/renderer.js +0 -530
- package/lib/util/renderer.js.map +0 -1
- package/lib/util/resolvers.js +0 -169
- package/lib/util/resolvers.js.map +0 -1
- package/lib/util/runtime.js +0 -167
- package/lib/util/runtime.js.map +0 -1
- package/lib/util/schema.js +0 -42
- package/lib/util/schema.js.map +0 -1
- package/lib/util/type.js +0 -27
- package/lib/util/type.js.map +0 -1
- package/lib/util/uischema.js +0 -56
- package/lib/util/uischema.js.map +0 -1
- package/lib/util/util.js +0 -112
- package/lib/util/util.js.map +0 -1
- package/lib/util/validator.js +0 -37
- package/lib/util/validator.js.map +0 -1
- package/webpack.build.js +0 -13
package/lib/reducers/core.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
|
|
2
|
-
import { CoreActions } from '../actions';
|
|
3
|
-
import { Reducer } from '../util';
|
|
4
|
-
import { JsonSchema, UISchemaElement } from '../models';
|
|
5
|
-
export declare const validate: (validator: ValidateFunction | undefined, data: any) => ErrorObject[];
|
|
6
|
-
export declare type ValidationMode = 'ValidateAndShow' | 'ValidateAndHide' | 'NoValidation';
|
|
7
|
-
export interface JsonFormsCore {
|
|
8
|
-
data: any;
|
|
9
|
-
schema: JsonSchema;
|
|
10
|
-
uischema: UISchemaElement;
|
|
11
|
-
errors?: ErrorObject[];
|
|
12
|
-
validator?: ValidateFunction;
|
|
13
|
-
ajv?: Ajv;
|
|
14
|
-
validationMode?: ValidationMode;
|
|
15
|
-
}
|
|
16
|
-
export declare const coreReducer: Reducer<JsonFormsCore, CoreActions>;
|
|
17
|
-
export declare const extractData: (state: JsonFormsCore) => any;
|
|
18
|
-
export declare const extractSchema: (state: JsonFormsCore) => JsonSchema;
|
|
19
|
-
export declare const extractUiSchema: (state: JsonFormsCore) => UISchemaElement;
|
|
20
|
-
export declare const extractAjv: (state: JsonFormsCore) => Ajv;
|
|
21
|
-
export declare const getControlPath: (error: ErrorObject) => any;
|
|
22
|
-
export declare const errorsAt: (instancePath: string, schema: JsonSchema, matchPath: (path: string) => boolean) => (errors: ErrorObject[]) => ErrorObject[];
|
|
23
|
-
export declare const errorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
|
|
24
|
-
export declare const subErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
|
|
1
|
+
import Ajv, { ErrorObject, ValidateFunction } from 'ajv';
|
|
2
|
+
import { CoreActions } from '../actions';
|
|
3
|
+
import { Reducer } from '../util';
|
|
4
|
+
import { JsonSchema, UISchemaElement } from '../models';
|
|
5
|
+
export declare const validate: (validator: ValidateFunction | undefined, data: any) => ErrorObject[];
|
|
6
|
+
export declare type ValidationMode = 'ValidateAndShow' | 'ValidateAndHide' | 'NoValidation';
|
|
7
|
+
export interface JsonFormsCore {
|
|
8
|
+
data: any;
|
|
9
|
+
schema: JsonSchema;
|
|
10
|
+
uischema: UISchemaElement;
|
|
11
|
+
errors?: ErrorObject[];
|
|
12
|
+
validator?: ValidateFunction;
|
|
13
|
+
ajv?: Ajv;
|
|
14
|
+
validationMode?: ValidationMode;
|
|
15
|
+
}
|
|
16
|
+
export declare const coreReducer: Reducer<JsonFormsCore, CoreActions>;
|
|
17
|
+
export declare const extractData: (state: JsonFormsCore) => any;
|
|
18
|
+
export declare const extractSchema: (state: JsonFormsCore) => JsonSchema;
|
|
19
|
+
export declare const extractUiSchema: (state: JsonFormsCore) => UISchemaElement;
|
|
20
|
+
export declare const extractAjv: (state: JsonFormsCore) => Ajv;
|
|
21
|
+
export declare const getControlPath: (error: ErrorObject) => any;
|
|
22
|
+
export declare const errorsAt: (instancePath: string, schema: JsonSchema, matchPath: (path: string) => boolean) => (errors: ErrorObject[]) => ErrorObject[];
|
|
23
|
+
export declare const errorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
|
|
24
|
+
export declare const subErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsCore) => ErrorObject[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RegisterDefaultDataAction, UnregisterDefaultDataAction } from '../actions';
|
|
2
|
-
import { Reducer } from '../util';
|
|
3
|
-
export interface JsonFormsDefaultDataRegistryEntry {
|
|
4
|
-
schemaPath: string;
|
|
5
|
-
data: any;
|
|
6
|
-
}
|
|
7
|
-
declare type ValidDefaultDataActions = RegisterDefaultDataAction | UnregisterDefaultDataAction;
|
|
8
|
-
export declare const defaultDataReducer: Reducer<JsonFormsDefaultDataRegistryEntry[], ValidDefaultDataActions>;
|
|
9
|
-
export declare const extractDefaultData: (state: JsonFormsDefaultDataRegistryEntry[]) => JsonFormsDefaultDataRegistryEntry[];
|
|
10
|
-
export {};
|
|
1
|
+
import { RegisterDefaultDataAction, UnregisterDefaultDataAction } from '../actions';
|
|
2
|
+
import { Reducer } from '../util';
|
|
3
|
+
export interface JsonFormsDefaultDataRegistryEntry {
|
|
4
|
+
schemaPath: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
declare type ValidDefaultDataActions = RegisterDefaultDataAction | UnregisterDefaultDataAction;
|
|
8
|
+
export declare const defaultDataReducer: Reducer<JsonFormsDefaultDataRegistryEntry[], ValidDefaultDataActions>;
|
|
9
|
+
export declare const extractDefaultData: (state: JsonFormsDefaultDataRegistryEntry[]) => JsonFormsDefaultDataRegistryEntry[];
|
|
10
|
+
export {};
|
package/lib/reducers/i18n.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { JsonFormsI18nState } from '../i18n';
|
|
2
|
-
import { I18nActions } from '../actions';
|
|
3
|
-
import { Reducer } from '../util';
|
|
4
|
-
export declare const defaultJsonFormsI18nState: JsonFormsI18nState;
|
|
5
|
-
export declare const i18nReducer: Reducer<JsonFormsI18nState, I18nActions>;
|
|
6
|
-
export declare const fetchLocale: (state?: JsonFormsI18nState) => string;
|
|
7
|
-
export declare const fetchTranslator: (state?: JsonFormsI18nState) => import("../i18n").Translator;
|
|
8
|
-
export declare const fetchErrorTranslator: (state?: JsonFormsI18nState) => import("../i18n").ErrorTranslator;
|
|
1
|
+
import { JsonFormsI18nState } from '../i18n';
|
|
2
|
+
import { I18nActions } from '../actions';
|
|
3
|
+
import { Reducer } from '../util';
|
|
4
|
+
export declare const defaultJsonFormsI18nState: JsonFormsI18nState;
|
|
5
|
+
export declare const i18nReducer: Reducer<JsonFormsI18nState, I18nActions>;
|
|
6
|
+
export declare const fetchLocale: (state?: JsonFormsI18nState) => string;
|
|
7
|
+
export declare const fetchTranslator: (state?: JsonFormsI18nState) => import("../i18n").Translator;
|
|
8
|
+
export declare const fetchErrorTranslator: (state?: JsonFormsI18nState) => import("../i18n").ErrorTranslator;
|
package/lib/reducers/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './cells';
|
|
2
|
-
export * from './config';
|
|
3
|
-
export * from './core';
|
|
4
|
-
export * from './default-data';
|
|
5
|
-
export * from './i18n';
|
|
6
|
-
export * from './reducers';
|
|
7
|
-
export * from './renderers';
|
|
8
|
-
export * from './selectors';
|
|
9
|
-
export * from './uischemas';
|
|
1
|
+
export * from './cells';
|
|
2
|
+
export * from './config';
|
|
3
|
+
export * from './core';
|
|
4
|
+
export * from './default-data';
|
|
5
|
+
export * from './i18n';
|
|
6
|
+
export * from './reducers';
|
|
7
|
+
export * from './renderers';
|
|
8
|
+
export * from './selectors';
|
|
9
|
+
export * from './uischemas';
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ControlElement, UISchemaElement } from '../models';
|
|
2
|
-
import { JsonFormsState } from '../store';
|
|
3
|
-
import { JsonFormsUISchemaRegistryEntry } from './uischemas';
|
|
4
|
-
import { JsonSchema } from '../models/jsonSchema';
|
|
5
|
-
import { ErrorTranslator, Translator } from '../i18n';
|
|
6
|
-
export declare const jsonFormsReducerConfig: {
|
|
7
|
-
core: import("..").Reducer<import("./core").JsonFormsCore, import("..").CoreActions>;
|
|
8
|
-
renderers: import("..").Reducer<import("./renderers").JsonFormsRendererRegistryEntry[], import("..").AddRendererAction | import("..").RemoveRendererAction>;
|
|
9
|
-
cells: import("..").Reducer<import("./cells").JsonFormsCellRendererRegistryState, import("..").AddCellRendererAction | import("..").RemoveCellRendererAction>;
|
|
10
|
-
config: import("..").Reducer<any, import("..").SetConfigAction>;
|
|
11
|
-
uischemas: import("..").Reducer<JsonFormsUISchemaRegistryEntry[], import("..").UISchemaActions>;
|
|
12
|
-
defaultData: import("..").Reducer<import("./default-data").JsonFormsDefaultDataRegistryEntry[], import("..").RegisterDefaultDataAction | import("..").UnregisterDefaultDataAction>;
|
|
13
|
-
i18n: import("..").Reducer<import("../i18n").JsonFormsI18nState, import("..").I18nActions>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Finds a registered UI schema to use, if any.
|
|
17
|
-
* @param schema the JSON schema describing the data to be rendered
|
|
18
|
-
* @param schemaPath the according schema path
|
|
19
|
-
* @param path the instance path
|
|
20
|
-
* @param fallbackLayoutType the type of the layout to use
|
|
21
|
-
* @param control may be checked for embedded inline uischema options
|
|
22
|
-
*/
|
|
23
|
-
export declare const findUISchema: (uischemas: JsonFormsUISchemaRegistryEntry[], schema: JsonSchema, schemaPath: string, path: string, fallbackLayoutType?: string, control?: ControlElement, rootSchema?: JsonSchema) => UISchemaElement;
|
|
24
|
-
export declare const getErrorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsState) => import("ajv").ErrorObject<string, Record<string, any>, unknown>[];
|
|
25
|
-
export declare const getSubErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsState) => import("ajv").ErrorObject<string, Record<string, any>, unknown>[];
|
|
26
|
-
export declare const getConfig: (state: JsonFormsState) => any;
|
|
27
|
-
export declare const getLocale: (state: JsonFormsState) => string;
|
|
28
|
-
export declare const getTranslator: () => (state: JsonFormsState) => Translator;
|
|
29
|
-
export declare const getErrorTranslator: () => (state: JsonFormsState) => ErrorTranslator;
|
|
1
|
+
import { ControlElement, UISchemaElement } from '../models';
|
|
2
|
+
import { JsonFormsState } from '../store';
|
|
3
|
+
import type { JsonFormsUISchemaRegistryEntry } from './uischemas';
|
|
4
|
+
import { JsonSchema } from '../models/jsonSchema';
|
|
5
|
+
import { ErrorTranslator, Translator } from '../i18n';
|
|
6
|
+
export declare const jsonFormsReducerConfig: {
|
|
7
|
+
core: import("..").Reducer<import("./core").JsonFormsCore, import("..").CoreActions>;
|
|
8
|
+
renderers: import("..").Reducer<import("./renderers").JsonFormsRendererRegistryEntry[], import("..").AddRendererAction | import("..").RemoveRendererAction>;
|
|
9
|
+
cells: import("..").Reducer<import("./cells").JsonFormsCellRendererRegistryState, import("..").AddCellRendererAction | import("..").RemoveCellRendererAction>;
|
|
10
|
+
config: import("..").Reducer<any, import("..").SetConfigAction>;
|
|
11
|
+
uischemas: import("..").Reducer<JsonFormsUISchemaRegistryEntry[], import("..").UISchemaActions>;
|
|
12
|
+
defaultData: import("..").Reducer<import("./default-data").JsonFormsDefaultDataRegistryEntry[], import("..").RegisterDefaultDataAction | import("..").UnregisterDefaultDataAction>;
|
|
13
|
+
i18n: import("..").Reducer<import("../i18n").JsonFormsI18nState, import("..").I18nActions>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Finds a registered UI schema to use, if any.
|
|
17
|
+
* @param schema the JSON schema describing the data to be rendered
|
|
18
|
+
* @param schemaPath the according schema path
|
|
19
|
+
* @param path the instance path
|
|
20
|
+
* @param fallbackLayoutType the type of the layout to use
|
|
21
|
+
* @param control may be checked for embedded inline uischema options
|
|
22
|
+
*/
|
|
23
|
+
export declare const findUISchema: (uischemas: JsonFormsUISchemaRegistryEntry[], schema: JsonSchema, schemaPath: string, path: string, fallbackLayoutType?: string, control?: ControlElement, rootSchema?: JsonSchema) => UISchemaElement;
|
|
24
|
+
export declare const getErrorAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsState) => import("ajv").ErrorObject<string, Record<string, any>, unknown>[];
|
|
25
|
+
export declare const getSubErrorsAt: (instancePath: string, schema: JsonSchema) => (state: JsonFormsState) => import("ajv").ErrorObject<string, Record<string, any>, unknown>[];
|
|
26
|
+
export declare const getConfig: (state: JsonFormsState) => any;
|
|
27
|
+
export declare const getLocale: (state: JsonFormsState) => string;
|
|
28
|
+
export declare const getTranslator: () => (state: JsonFormsState) => Translator;
|
|
29
|
+
export declare const getErrorTranslator: () => (state: JsonFormsState) => ErrorTranslator;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RankedTester } from '../testers';
|
|
2
|
-
import { AddRendererAction, RemoveRendererAction } from '../actions';
|
|
3
|
-
import { Reducer } from '../util';
|
|
4
|
-
export interface JsonFormsRendererRegistryEntry {
|
|
5
|
-
tester: RankedTester;
|
|
6
|
-
renderer: any;
|
|
7
|
-
}
|
|
8
|
-
declare type ValidRendererReducerActions = AddRendererAction | RemoveRendererAction;
|
|
9
|
-
export declare const rendererReducer: Reducer<JsonFormsRendererRegistryEntry[], ValidRendererReducerActions>;
|
|
10
|
-
export {};
|
|
1
|
+
import { RankedTester } from '../testers';
|
|
2
|
+
import { AddRendererAction, RemoveRendererAction } from '../actions';
|
|
3
|
+
import { Reducer } from '../util';
|
|
4
|
+
export interface JsonFormsRendererRegistryEntry {
|
|
5
|
+
tester: RankedTester;
|
|
6
|
+
renderer: any;
|
|
7
|
+
}
|
|
8
|
+
declare type ValidRendererReducerActions = AddRendererAction | RemoveRendererAction;
|
|
9
|
+
export declare const rendererReducer: Reducer<JsonFormsRendererRegistryEntry[], ValidRendererReducerActions>;
|
|
10
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import Ajv from 'ajv';
|
|
2
|
-
import { JsonFormsState } from '../store';
|
|
3
|
-
import { JsonSchema, UISchemaElement } from '../models';
|
|
4
|
-
import { JsonFormsDefaultDataRegistryEntry } from './default-data';
|
|
5
|
-
import { JsonFormsRendererRegistryEntry } from './renderers';
|
|
6
|
-
import { JsonFormsCellRendererRegistryEntry } from './cells';
|
|
7
|
-
import { JsonFormsUISchemaRegistryEntry } from './uischemas';
|
|
8
|
-
export declare const getData: (state: JsonFormsState) => any;
|
|
9
|
-
export declare const getSchema: (state: JsonFormsState) => JsonSchema;
|
|
10
|
-
export declare const getUiSchema: (state: JsonFormsState) => UISchemaElement;
|
|
11
|
-
export declare const getAjv: (state: JsonFormsState) => Ajv;
|
|
12
|
-
export declare const getDefaultData: (state: JsonFormsState) => JsonFormsDefaultDataRegistryEntry[];
|
|
13
|
-
export declare const getRenderers: (state: JsonFormsState) => JsonFormsRendererRegistryEntry[];
|
|
14
|
-
export declare const getCells: (state: JsonFormsState) => JsonFormsCellRendererRegistryEntry[];
|
|
15
|
-
export declare const getUISchemas: (state: JsonFormsState) => JsonFormsUISchemaRegistryEntry[];
|
|
1
|
+
import Ajv from 'ajv';
|
|
2
|
+
import { JsonFormsState } from '../store';
|
|
3
|
+
import { JsonSchema, UISchemaElement } from '../models';
|
|
4
|
+
import { JsonFormsDefaultDataRegistryEntry } from './default-data';
|
|
5
|
+
import { JsonFormsRendererRegistryEntry } from './renderers';
|
|
6
|
+
import { JsonFormsCellRendererRegistryEntry } from './cells';
|
|
7
|
+
import { JsonFormsUISchemaRegistryEntry } from './uischemas';
|
|
8
|
+
export declare const getData: (state: JsonFormsState) => any;
|
|
9
|
+
export declare const getSchema: (state: JsonFormsState) => JsonSchema;
|
|
10
|
+
export declare const getUiSchema: (state: JsonFormsState) => UISchemaElement;
|
|
11
|
+
export declare const getAjv: (state: JsonFormsState) => Ajv;
|
|
12
|
+
export declare const getDefaultData: (state: JsonFormsState) => JsonFormsDefaultDataRegistryEntry[];
|
|
13
|
+
export declare const getRenderers: (state: JsonFormsState) => JsonFormsRendererRegistryEntry[];
|
|
14
|
+
export declare const getCells: (state: JsonFormsState) => JsonFormsCellRendererRegistryEntry[];
|
|
15
|
+
export declare const getUISchemas: (state: JsonFormsState) => JsonFormsUISchemaRegistryEntry[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { UISchemaActions } from '../actions';
|
|
2
|
-
import { JsonSchema, UISchemaElement } from '../models';
|
|
3
|
-
import { Reducer } from '../util';
|
|
4
|
-
export declare type UISchemaTester = (schema: JsonSchema, schemaPath: string, path: string) => number;
|
|
5
|
-
export interface JsonFormsUISchemaRegistryEntry {
|
|
6
|
-
tester: UISchemaTester;
|
|
7
|
-
uischema: UISchemaElement;
|
|
8
|
-
}
|
|
9
|
-
export declare const uischemaRegistryReducer: Reducer<JsonFormsUISchemaRegistryEntry[], UISchemaActions>;
|
|
10
|
-
export declare const findMatchingUISchema: (state: JsonFormsUISchemaRegistryEntry[]) => (jsonSchema: JsonSchema, schemaPath: string, path: string) => UISchemaElement;
|
|
1
|
+
import { UISchemaActions } from '../actions';
|
|
2
|
+
import { JsonSchema, UISchemaElement } from '../models';
|
|
3
|
+
import { Reducer } from '../util';
|
|
4
|
+
export declare type UISchemaTester = (schema: JsonSchema, schemaPath: string, path: string) => number;
|
|
5
|
+
export interface JsonFormsUISchemaRegistryEntry {
|
|
6
|
+
tester: UISchemaTester;
|
|
7
|
+
uischema: UISchemaElement;
|
|
8
|
+
}
|
|
9
|
+
export declare const uischemaRegistryReducer: Reducer<JsonFormsUISchemaRegistryEntry[], UISchemaActions>;
|
|
10
|
+
export declare const findMatchingUISchema: (state: JsonFormsUISchemaRegistryEntry[]) => (jsonSchema: JsonSchema, schemaPath: string, path: string) => UISchemaElement;
|
package/lib/store.d.ts
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Store } from './util';
|
|
2
|
-
import { JsonFormsCore, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonFormsUISchemaRegistryEntry } from './reducers';
|
|
3
|
-
import { JsonFormsI18nState } from './i18n';
|
|
4
|
-
/**
|
|
5
|
-
* JSONForms store.
|
|
6
|
-
*/
|
|
7
|
-
export interface JsonFormsStore extends Store<JsonFormsState> {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* The state shape of JSONForms.
|
|
11
|
-
*/
|
|
12
|
-
export interface JsonFormsState {
|
|
13
|
-
/**
|
|
14
|
-
* Represents JSONForm's sub-state.
|
|
15
|
-
*/
|
|
16
|
-
jsonforms: JsonFormsSubStates;
|
|
17
|
-
}
|
|
18
|
-
export interface JsonFormsSubStates {
|
|
19
|
-
/**
|
|
20
|
-
* Substate for storing mandatory sub-state.
|
|
21
|
-
*/
|
|
22
|
-
core?: JsonFormsCore;
|
|
23
|
-
/**
|
|
24
|
-
* Global configuration options.
|
|
25
|
-
*/
|
|
26
|
-
config?: any;
|
|
27
|
-
/**
|
|
28
|
-
* All available renderers.
|
|
29
|
-
*/
|
|
30
|
-
renderers?: JsonFormsRendererRegistryEntry[];
|
|
31
|
-
/**
|
|
32
|
-
* All available cell renderers.
|
|
33
|
-
*/
|
|
34
|
-
cells?: JsonFormsCellRendererRegistryEntry[];
|
|
35
|
-
/**
|
|
36
|
-
* I18n settings.
|
|
37
|
-
*/
|
|
38
|
-
i18n?: JsonFormsI18nState;
|
|
39
|
-
/**
|
|
40
|
-
* The UI schema registry used in detail renderers.
|
|
41
|
-
*/
|
|
42
|
-
uischemas?: JsonFormsUISchemaRegistryEntry[];
|
|
43
|
-
/**
|
|
44
|
-
* If true, sets all controls to read-only.
|
|
45
|
-
*/
|
|
46
|
-
readonly?: boolean;
|
|
47
|
-
[additionalState: string]: any;
|
|
48
|
-
}
|
|
49
|
-
export interface JsonFormsExtendedState<T> extends JsonFormsState {
|
|
50
|
-
jsonforms: {
|
|
51
|
-
[subState: string]: T;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
1
|
+
import { Store } from './util';
|
|
2
|
+
import { JsonFormsCore, JsonFormsCellRendererRegistryEntry, JsonFormsRendererRegistryEntry, JsonFormsUISchemaRegistryEntry } from './reducers';
|
|
3
|
+
import { JsonFormsI18nState } from './i18n';
|
|
4
|
+
/**
|
|
5
|
+
* JSONForms store.
|
|
6
|
+
*/
|
|
7
|
+
export interface JsonFormsStore extends Store<JsonFormsState> {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The state shape of JSONForms.
|
|
11
|
+
*/
|
|
12
|
+
export interface JsonFormsState {
|
|
13
|
+
/**
|
|
14
|
+
* Represents JSONForm's sub-state.
|
|
15
|
+
*/
|
|
16
|
+
jsonforms: JsonFormsSubStates;
|
|
17
|
+
}
|
|
18
|
+
export interface JsonFormsSubStates {
|
|
19
|
+
/**
|
|
20
|
+
* Substate for storing mandatory sub-state.
|
|
21
|
+
*/
|
|
22
|
+
core?: JsonFormsCore;
|
|
23
|
+
/**
|
|
24
|
+
* Global configuration options.
|
|
25
|
+
*/
|
|
26
|
+
config?: any;
|
|
27
|
+
/**
|
|
28
|
+
* All available renderers.
|
|
29
|
+
*/
|
|
30
|
+
renderers?: JsonFormsRendererRegistryEntry[];
|
|
31
|
+
/**
|
|
32
|
+
* All available cell renderers.
|
|
33
|
+
*/
|
|
34
|
+
cells?: JsonFormsCellRendererRegistryEntry[];
|
|
35
|
+
/**
|
|
36
|
+
* I18n settings.
|
|
37
|
+
*/
|
|
38
|
+
i18n?: JsonFormsI18nState;
|
|
39
|
+
/**
|
|
40
|
+
* The UI schema registry used in detail renderers.
|
|
41
|
+
*/
|
|
42
|
+
uischemas?: JsonFormsUISchemaRegistryEntry[];
|
|
43
|
+
/**
|
|
44
|
+
* If true, sets all controls to read-only.
|
|
45
|
+
*/
|
|
46
|
+
readonly?: boolean;
|
|
47
|
+
[additionalState: string]: any;
|
|
48
|
+
}
|
|
49
|
+
export interface JsonFormsExtendedState<T> extends JsonFormsState {
|
|
50
|
+
jsonforms: {
|
|
51
|
+
[subState: string]: T;
|
|
52
|
+
};
|
|
53
|
+
}
|
package/lib/testers/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './testers';
|
|
1
|
+
export * from './testers';
|