@jsonforms/core 3.0.0-beta.1 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/assets/js/search.json +1 -1
- package/docs/globals.html +203 -161
- package/docs/index.html +7 -4
- 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 +143 -36
- 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 -12
- 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 +147 -40
- package/docs/interfaces/statepropsofcontrol.html +18 -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/jsonforms-core.cjs.js +160 -164
- package/lib/jsonforms-core.cjs.js.map +1 -1
- package/lib/jsonforms-core.esm.js +142 -154
- package/lib/jsonforms-core.esm.js.map +1 -1
- package/lib/reducers/reducers.d.ts +2 -2
- package/lib/testers/testers.d.ts +8 -7
- package/lib/util/combinators.d.ts +0 -1
- package/lib/util/path.d.ts +10 -0
- package/lib/util/renderer.d.ts +2 -2
- package/lib/util/resolvers.d.ts +1 -1
- package/lib/util/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/generators/uischema.ts +4 -4
- package/src/reducers/reducers.ts +12 -4
- package/src/testers/testers.ts +60 -33
- package/src/util/combinators.ts +17 -32
- package/src/util/label.ts +2 -2
- package/src/util/path.ts +18 -6
- package/src/util/renderer.ts +14 -29
- package/src/util/resolvers.ts +57 -68
- package/src/util/util.ts +1 -1
- package/stats.html +1 -1
- package/test/generators/uischema.test.ts +18 -0
- package/test/testers.test.ts +208 -120
- package/test/util/path.test.ts +37 -20
- package/test/util/resolvers.test.ts +99 -8
package/src/util/renderer.ts
CHANGED
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
import get from 'lodash/get';
|
|
27
27
|
import { ControlElement, JsonSchema, UISchemaElement } from '../models';
|
|
28
28
|
import find from 'lodash/find';
|
|
29
|
-
import
|
|
29
|
+
import {
|
|
30
|
+
getUISchemas,
|
|
30
31
|
JsonFormsCellRendererRegistryEntry,
|
|
31
32
|
JsonFormsRendererRegistryEntry,
|
|
32
33
|
} from '../reducers';
|
|
@@ -48,7 +49,7 @@ import {
|
|
|
48
49
|
import { RankedTester } from '../testers';
|
|
49
50
|
import { hasShowRule, isInherentlyEnabled, isVisible } from './runtime';
|
|
50
51
|
import { createLabelDescriptionFrom } from './label';
|
|
51
|
-
import { CombinatorKeyword
|
|
52
|
+
import { CombinatorKeyword } from './combinators';
|
|
52
53
|
import { moveDown, moveUp } from './array';
|
|
53
54
|
import { AnyAction, Dispatch } from './type';
|
|
54
55
|
import { Resolve } from './util';
|
|
@@ -65,6 +66,7 @@ const isRequired = (
|
|
|
65
66
|
): boolean => {
|
|
66
67
|
const pathSegments = schemaPath.split('/');
|
|
67
68
|
const lastSegment = pathSegments[pathSegments.length - 1];
|
|
69
|
+
// Skip "properties", "items" etc. to resolve the parent
|
|
68
70
|
const nextHigherSchemaSegments = pathSegments.slice(
|
|
69
71
|
0,
|
|
70
72
|
pathSegments.length - 2
|
|
@@ -865,7 +867,8 @@ export const mapStateToLayoutProps = (
|
|
|
865
867
|
data,
|
|
866
868
|
uischema: ownProps.uischema,
|
|
867
869
|
schema: ownProps.schema,
|
|
868
|
-
direction: ownProps.direction ?? getDirection(uischema)
|
|
870
|
+
direction: ownProps.direction ?? getDirection(uischema),
|
|
871
|
+
config
|
|
869
872
|
};
|
|
870
873
|
};
|
|
871
874
|
|
|
@@ -913,7 +916,7 @@ export const controlDefaultProps = {
|
|
|
913
916
|
errors: [] as string[]
|
|
914
917
|
};
|
|
915
918
|
|
|
916
|
-
export interface StatePropsOfCombinator extends
|
|
919
|
+
export interface StatePropsOfCombinator extends StatePropsOfControl {
|
|
917
920
|
rootSchema: JsonSchema;
|
|
918
921
|
path: string;
|
|
919
922
|
id: string;
|
|
@@ -927,25 +930,12 @@ export const mapStateToCombinatorRendererProps = (
|
|
|
927
930
|
ownProps: OwnPropsOfControl,
|
|
928
931
|
keyword: CombinatorKeyword
|
|
929
932
|
): StatePropsOfCombinator => {
|
|
930
|
-
const {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
const resolvedSchema = Resolve.schema(
|
|
934
|
-
ownProps.schema || rootSchema,
|
|
935
|
-
uischema.scope,
|
|
936
|
-
rootSchema
|
|
933
|
+
const { data, schema, ...props } = mapStateToControlProps(
|
|
934
|
+
state,
|
|
935
|
+
ownProps
|
|
937
936
|
);
|
|
938
|
-
const visible: boolean =
|
|
939
|
-
ownProps.visible === undefined || hasShowRule(uischema)
|
|
940
|
-
? isVisible(uischema, getData(state), ownProps.path, getAjv(state))
|
|
941
|
-
: ownProps.visible;
|
|
942
|
-
const id = ownProps.id;
|
|
943
|
-
|
|
944
|
-
const data = Resolve.data(getData(state), path);
|
|
945
937
|
|
|
946
938
|
const ajv = state.jsonforms.core.ajv;
|
|
947
|
-
const schema = resolvedSchema || rootSchema;
|
|
948
|
-
const _schema = resolveSubSchemas(schema, rootSchema, keyword);
|
|
949
939
|
const structuralKeywords = [
|
|
950
940
|
'required',
|
|
951
941
|
'additionalProperties',
|
|
@@ -964,9 +954,9 @@ export const mapStateToCombinatorRendererProps = (
|
|
|
964
954
|
// TODO instead of compiling the combinator subschemas we can compile the original schema
|
|
965
955
|
// without the combinator alternatives and then revalidate and check the errors for the
|
|
966
956
|
// element
|
|
967
|
-
for (let i = 0; i <
|
|
957
|
+
for (let i = 0; i < schema[keyword]?.length; i++) {
|
|
968
958
|
try {
|
|
969
|
-
const valFn = ajv.compile(
|
|
959
|
+
const valFn = ajv.compile(schema[keyword][i]);
|
|
970
960
|
valFn(data);
|
|
971
961
|
if (dataIsValid(valFn.errors)) {
|
|
972
962
|
indexOfFittingSchema = i;
|
|
@@ -979,14 +969,10 @@ export const mapStateToCombinatorRendererProps = (
|
|
|
979
969
|
|
|
980
970
|
return {
|
|
981
971
|
data,
|
|
982
|
-
path,
|
|
983
972
|
schema,
|
|
984
|
-
|
|
985
|
-
visible,
|
|
986
|
-
id,
|
|
973
|
+
...props,
|
|
987
974
|
indexOfFittingSchema,
|
|
988
|
-
uischemas: state
|
|
989
|
-
uischema
|
|
975
|
+
uischemas: getUISchemas(state)
|
|
990
976
|
};
|
|
991
977
|
};
|
|
992
978
|
|
|
@@ -1044,7 +1030,6 @@ export const mapStateToArrayLayoutProps = (
|
|
|
1044
1030
|
|
|
1045
1031
|
const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);
|
|
1046
1032
|
|
|
1047
|
-
// TODO Does not consider a specialized '.custom' error message overriding all other error messages
|
|
1048
1033
|
// TODO Does not consider 'i18n' keys which are specified in the ui schemas of the sub errors
|
|
1049
1034
|
const childErrors = getCombinedErrorMessage(
|
|
1050
1035
|
getSubErrorsAt(path, resolvedSchema)(state),
|
package/src/util/resolvers.ts
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
import isEmpty from 'lodash/isEmpty';
|
|
27
27
|
import get from 'lodash/get';
|
|
28
|
-
import { JsonSchema } from '../models';
|
|
28
|
+
import { JsonSchema, JsonSchema7 } from '../models';
|
|
29
|
+
import { decode } from './path';
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* Map for storing refs and the respective schemas they are pointing to.
|
|
@@ -110,80 +111,68 @@ const invalidSegment = (pathSegment: string) =>
|
|
|
110
111
|
export const resolveSchema = (
|
|
111
112
|
schema: JsonSchema,
|
|
112
113
|
schemaPath: string,
|
|
113
|
-
rootSchema
|
|
114
|
+
rootSchema: JsonSchema
|
|
115
|
+
): JsonSchema => {
|
|
116
|
+
const segments = schemaPath?.split('/').map(decode);
|
|
117
|
+
return resolveSchemaWithSegments(schema, segments, rootSchema);
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const resolveSchemaWithSegments = (
|
|
121
|
+
schema: JsonSchema,
|
|
122
|
+
pathSegments: string[],
|
|
123
|
+
rootSchema: JsonSchema
|
|
114
124
|
): JsonSchema => {
|
|
115
125
|
if (isEmpty(schema)) {
|
|
116
126
|
return undefined;
|
|
117
127
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
let pathSegment = validPathSegments[i];
|
|
122
|
-
resultSchema =
|
|
123
|
-
resultSchema === undefined || resultSchema.$ref === undefined
|
|
124
|
-
? resultSchema
|
|
125
|
-
: resolveSchema(schema, resultSchema.$ref);
|
|
126
|
-
if (invalidSegment(pathSegment)) {
|
|
127
|
-
// skip invalid segments
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
let curSchema = get(resultSchema, pathSegment);
|
|
131
|
-
if (!curSchema) {
|
|
132
|
-
// resolving was not successful, check whether the scope omitted an oneOf, allOf or anyOf and resolve anyway
|
|
133
|
-
const schemas = [].concat(
|
|
134
|
-
resultSchema?.oneOf ?? [],
|
|
135
|
-
resultSchema?.allOf ?? [],
|
|
136
|
-
resultSchema?.anyOf ?? []
|
|
137
|
-
);
|
|
138
|
-
for (let item of schemas) {
|
|
139
|
-
curSchema = resolveSchema(item, validPathSegments.slice(i).join('/'));
|
|
140
|
-
if (curSchema) {
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (curSchema) {
|
|
145
|
-
// already resolved rest of the path
|
|
146
|
-
resultSchema = curSchema;
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
resultSchema = curSchema;
|
|
128
|
+
|
|
129
|
+
if (schema.$ref) {
|
|
130
|
+
schema = resolveSchema(rootSchema, schema.$ref, rootSchema);
|
|
151
131
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// schemas around
|
|
156
|
-
if (resultSchema !== undefined && resultSchema.$ref !== undefined) {
|
|
157
|
-
try {
|
|
158
|
-
return retrieveResolvableSchema(schema, resultSchema.$ref);
|
|
159
|
-
} catch (e) {
|
|
160
|
-
return retrieveResolvableSchema(rootSchema, resultSchema.$ref);
|
|
161
|
-
}
|
|
132
|
+
|
|
133
|
+
if (!pathSegments || pathSegments.length === 0) {
|
|
134
|
+
return schema;
|
|
162
135
|
}
|
|
163
136
|
|
|
164
|
-
|
|
165
|
-
};
|
|
137
|
+
const [segment, ...remainingSegments] = pathSegments;
|
|
166
138
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
*
|
|
170
|
-
* @param {JsonSchema} full the JSON schema to resolved the reference against
|
|
171
|
-
* @param {string} reference the reference to be resolved
|
|
172
|
-
* @returns {JsonSchema} the resolved sub-schema
|
|
173
|
-
*/
|
|
174
|
-
// disable rule because resolve is mutually recursive
|
|
175
|
-
// tslint:disable:only-arrow-functions
|
|
176
|
-
function retrieveResolvableSchema(
|
|
177
|
-
full: JsonSchema,
|
|
178
|
-
reference: string
|
|
179
|
-
): JsonSchema {
|
|
180
|
-
// tslint:enable:only-arrow-functions
|
|
181
|
-
const child = resolveSchema(full, reference);
|
|
182
|
-
const allRefs = findAllRefs(child);
|
|
183
|
-
const innerSelfReference = allRefs[reference];
|
|
184
|
-
if (innerSelfReference !== undefined) {
|
|
185
|
-
innerSelfReference.$ref = '#';
|
|
139
|
+
if (invalidSegment(segment)) {
|
|
140
|
+
return resolveSchemaWithSegments(schema, remainingSegments, rootSchema);
|
|
186
141
|
}
|
|
187
142
|
|
|
188
|
-
|
|
189
|
-
|
|
143
|
+
const singleSegmentResolveSchema = get(schema, segment);
|
|
144
|
+
|
|
145
|
+
const resolvedSchema = resolveSchemaWithSegments(singleSegmentResolveSchema, remainingSegments, rootSchema);
|
|
146
|
+
if (resolvedSchema) {
|
|
147
|
+
return resolvedSchema;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (segment === 'properties' || segment === 'items') {
|
|
151
|
+
// Let's try to resolve the path, assuming oneOf/allOf/anyOf/then/else was omitted.
|
|
152
|
+
// We only do this when traversing an object or array as we want to avoid
|
|
153
|
+
// following a property which is named oneOf, allOf, anyOf, then or else.
|
|
154
|
+
let alternativeResolveResult = undefined;
|
|
155
|
+
|
|
156
|
+
const subSchemas = [].concat(
|
|
157
|
+
schema.oneOf ?? [],
|
|
158
|
+
schema.allOf ?? [],
|
|
159
|
+
schema.anyOf ?? [],
|
|
160
|
+
(schema as JsonSchema7).then ?? [],
|
|
161
|
+
(schema as JsonSchema7).else ?? []
|
|
162
|
+
);
|
|
163
|
+
|
|
164
|
+
for (const subSchema of subSchemas) {
|
|
165
|
+
alternativeResolveResult = resolveSchemaWithSegments(
|
|
166
|
+
subSchema,
|
|
167
|
+
[segment, ...remainingSegments],
|
|
168
|
+
rootSchema
|
|
169
|
+
);
|
|
170
|
+
if (alternativeResolveResult) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return alternativeResolveResult;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return undefined;
|
|
178
|
+
}
|
package/src/util/util.ts
CHANGED
package/stats.html
CHANGED
|
@@ -3259,7 +3259,7 @@ var drawChart = (function (exports) {
|
|
|
3259
3259
|
</script>
|
|
3260
3260
|
<script>
|
|
3261
3261
|
/*<!--*/
|
|
3262
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"jsonforms-core.esm.js","children":[{"name":"src","children":[{"name":"generators","children":[{"uid":"0ae3-1","name":"schema.ts"},{"uid":"0ae3-59","name":"uischema.ts"},{"uid":"0ae3-61","name":"Generate.ts"}]},{"name":"models","children":[{"uid":"0ae3-3","name":"draft4.ts"},{"uid":"0ae3-5","name":"uischema.ts"}]},{"name":"util","children":[{"uid":"0ae3-7","name":"array.ts"},{"uid":"0ae3-35","name":"resolvers.ts"},{"uid":"0ae3-37","name":"path.ts"},{"uid":"0ae3-39","name":"runtime.ts"},{"uid":"0ae3-41","name":"util.ts"},{"uid":"0ae3-43","name":"label.ts"},{"uid":"0ae3-45","name":"combinators.ts"},{"uid":"0ae3-47","name":"renderer.ts"},{"uid":"0ae3-49","name":"cell.ts"},{"uid":"0ae3-51","name":"ids.ts"},{"uid":"0ae3-53","name":"schema.ts"},{"uid":"0ae3-55","name":"uischema.ts"},{"uid":"0ae3-57","name":"validator.ts"}]},{"name":"reducers","children":[{"uid":"0ae3-9","name":"cells.ts"},{"uid":"0ae3-13","name":"config.ts"},{"uid":"0ae3-15","name":"core.ts"},{"uid":"0ae3-17","name":"default-data.ts"},{"uid":"0ae3-21","name":"i18n.ts"},{"uid":"0ae3-23","name":"renderers.ts"},{"uid":"0ae3-29","name":"uischemas.ts"},{"uid":"0ae3-31","name":"reducers.ts"},{"uid":"0ae3-33","name":"selectors.ts"}]},{"uid":"0ae3-11","name":"configDefault.ts"},{"name":"i18n/i18nUtil.ts","uid":"0ae3-19"},{"name":"testers","children":[{"uid":"0ae3-25","name":"testers.ts"},{"uid":"0ae3-27","name":"index.ts"}]},{"name":"actions","children":[{"uid":"0ae3-63","name":"actions.ts"},{"uid":"0ae3-65","name":"index.ts"}]},{"uid":"0ae3-67","name":"Helpers.ts"},{"uid":"0ae3-69","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"0ae3-1":{"renderedLength":3843,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-0"},"0ae3-3":{"renderedLength":4050,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-2"},"0ae3-5":{"renderedLength":336,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-4"},"0ae3-7":{"renderedLength":421,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-6"},"0ae3-9":{"renderedLength":294,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-8"},"0ae3-11":{"renderedLength":133,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-10"},"0ae3-13":{"renderedLength":322,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-12"},"0ae3-15":{"renderedLength":9352,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-14"},"0ae3-17":{"renderedLength":434,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-16"},"0ae3-19":{"renderedLength":1945,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-18"},"0ae3-21":{"renderedLength":1754,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-20"},"0ae3-23":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-22"},"0ae3-25":{"renderedLength":7550,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-24"},"0ae3-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-26"},"0ae3-29":{"renderedLength":783,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-28"},"0ae3-31":{"renderedLength":1678,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-30"},"0ae3-33":{"renderedLength":573,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-32"},"0ae3-35":{"renderedLength":3307,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-34"},"0ae3-37":{"renderedLength":1085,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-36"},"0ae3-39":{"renderedLength":3621,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-38"},"0ae3-41":{"renderedLength":1502,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-40"},"0ae3-43":{"renderedLength":1281,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-42"},"0ae3-45":{"renderedLength":887,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-44"},"0ae3-47":{"renderedLength":13748,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-46"},"0ae3-49":{"renderedLength":2622,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-48"},"0ae3-51":{"renderedLength":621,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-50"},"0ae3-53":{"renderedLength":365,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-52"},"0ae3-55":{"renderedLength":609,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-54"},"0ae3-57":{"renderedLength":196,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-56"},"0ae3-59":{"renderedLength":3278,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-58"},"0ae3-61":{"renderedLength":137,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-60"},"0ae3-63":{"renderedLength":3051,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-62"},"0ae3-65":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-64"},"0ae3-67":{"renderedLength":80,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-66"},"0ae3-69":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"0ae3-68"}},"nodeMetas":{"0ae3-0":{"id":"/src/generators/schema.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-1"},"imported":[],"importedBy":[{"uid":"0ae3-70"},{"uid":"0ae3-60"}]},"0ae3-2":{"id":"/src/models/draft4.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-3"},"imported":[],"importedBy":[{"uid":"0ae3-71"}]},"0ae3-4":{"id":"/src/models/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-5"},"imported":[],"importedBy":[{"uid":"0ae3-71"}]},"0ae3-6":{"id":"/src/util/array.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-7"},"imported":[],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-46"}]},"0ae3-8":{"id":"/src/reducers/cells.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-9"},"imported":[{"uid":"0ae3-64"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"}]},"0ae3-10":{"id":"/src/configDefault.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-11"},"imported":[],"importedBy":[{"uid":"0ae3-12"}]},"0ae3-12":{"id":"/src/reducers/config.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-13"},"imported":[{"uid":"0ae3-85"},{"uid":"0ae3-64"},{"uid":"0ae3-10"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"}]},"0ae3-14":{"id":"/src/reducers/core.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-15"},"imported":[{"uid":"0ae3-86"},{"uid":"0ae3-87"},{"uid":"0ae3-88"},{"uid":"0ae3-89"},{"uid":"0ae3-90"},{"uid":"0ae3-91"},{"uid":"0ae3-64"},{"uid":"0ae3-73"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"},{"uid":"0ae3-32"}]},"0ae3-16":{"id":"/src/reducers/default-data.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-17"},"imported":[{"uid":"0ae3-64"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"},{"uid":"0ae3-32"}]},"0ae3-18":{"id":"/src/i18n/i18nUtil.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-19"},"imported":[{"uid":"0ae3-72"},{"uid":"0ae3-73"}],"importedBy":[{"uid":"0ae3-75"}]},"0ae3-20":{"id":"/src/reducers/i18n.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-21"},"imported":[{"uid":"0ae3-75"},{"uid":"0ae3-64"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"}]},"0ae3-22":{"id":"/src/reducers/renderers.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-23"},"imported":[{"uid":"0ae3-64"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"}]},"0ae3-24":{"id":"/src/testers/testers.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-25"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-88"},{"uid":"0ae3-94"},{"uid":"0ae3-95"},{"uid":"0ae3-96"},{"uid":"0ae3-97"},{"uid":"0ae3-98"},{"uid":"0ae3-99"},{"uid":"0ae3-73"}],"importedBy":[{"uid":"0ae3-26"}]},"0ae3-26":{"id":"/src/testers/index.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-27"},"imported":[{"uid":"0ae3-24"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-28"}]},"0ae3-28":{"id":"/src/reducers/uischemas.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-29"},"imported":[{"uid":"0ae3-92"},{"uid":"0ae3-93"},{"uid":"0ae3-64"},{"uid":"0ae3-26"}],"importedBy":[{"uid":"0ae3-72"},{"uid":"0ae3-30"}]},"0ae3-30":{"id":"/src/reducers/reducers.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-31"},"imported":[{"uid":"0ae3-14"},{"uid":"0ae3-16"},{"uid":"0ae3-22"},{"uid":"0ae3-28"},{"uid":"0ae3-20"},{"uid":"0ae3-70"},{"uid":"0ae3-8"},{"uid":"0ae3-12"},{"uid":"0ae3-88"},{"uid":"0ae3-72"}],"importedBy":[{"uid":"0ae3-72"}]},"0ae3-32":{"id":"/src/reducers/selectors.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-33"},"imported":[{"uid":"0ae3-88"},{"uid":"0ae3-14"},{"uid":"0ae3-16"}],"importedBy":[{"uid":"0ae3-72"}]},"0ae3-34":{"id":"/src/util/resolvers.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-35"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-88"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-44"},{"uid":"0ae3-38"},{"uid":"0ae3-40"}]},"0ae3-36":{"id":"/src/util/path.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-37"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-101"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-46"},{"uid":"0ae3-38"},{"uid":"0ae3-40"}]},"0ae3-38":{"id":"/src/util/runtime.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-39"},"imported":[{"uid":"0ae3-103"},{"uid":"0ae3-71"},{"uid":"0ae3-34"},{"uid":"0ae3-36"},{"uid":"0ae3-72"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-48"},{"uid":"0ae3-46"},{"uid":"0ae3-40"}]},"0ae3-40":{"id":"/src/util/util.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-41"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-96"},{"uid":"0ae3-99"},{"uid":"0ae3-102"},{"uid":"0ae3-34"},{"uid":"0ae3-36"},{"uid":"0ae3-38"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-48"},{"uid":"0ae3-46"}]},"0ae3-42":{"id":"/src/util/label.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-43"},"imported":[{"uid":"0ae3-83"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-46"}]},"0ae3-44":{"id":"/src/util/combinators.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-45"},"imported":[{"uid":"0ae3-34"},{"uid":"0ae3-72"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-46"}]},"0ae3-46":{"id":"/src/util/renderer.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-47"},"imported":[{"uid":"0ae3-88"},{"uid":"0ae3-102"},{"uid":"0ae3-72"},{"uid":"0ae3-38"},{"uid":"0ae3-42"},{"uid":"0ae3-44"},{"uid":"0ae3-6"},{"uid":"0ae3-40"},{"uid":"0ae3-36"},{"uid":"0ae3-64"},{"uid":"0ae3-75"}],"importedBy":[{"uid":"0ae3-73"},{"uid":"0ae3-48"}]},"0ae3-48":{"id":"/src/util/cell.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-49"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-100"},{"uid":"0ae3-72"},{"uid":"0ae3-40"},{"uid":"0ae3-38"},{"uid":"0ae3-46"},{"uid":"0ae3-75"}],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-50":{"id":"/src/util/ids.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-51"},"imported":[],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-52":{"id":"/src/util/schema.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-53"},"imported":[{"uid":"0ae3-102"}],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-54":{"id":"/src/util/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-55"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-71"}],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-56":{"id":"/src/util/validator.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-57"},"imported":[{"uid":"0ae3-104"},{"uid":"0ae3-105"}],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-58":{"id":"/src/generators/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-59"},"imported":[{"uid":"0ae3-82"},{"uid":"0ae3-83"},{"uid":"0ae3-84"},{"uid":"0ae3-71"},{"uid":"0ae3-73"}],"importedBy":[{"uid":"0ae3-70"},{"uid":"0ae3-60"}]},"0ae3-60":{"id":"/src/generators/Generate.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-61"},"imported":[{"uid":"0ae3-0"},{"uid":"0ae3-58"}],"importedBy":[{"uid":"0ae3-70"}]},"0ae3-62":{"id":"/src/actions/actions.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-63"},"imported":[{"uid":"0ae3-70"}],"importedBy":[{"uid":"0ae3-64"}]},"0ae3-64":{"id":"/src/actions/index.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-65"},"imported":[{"uid":"0ae3-62"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-8"},{"uid":"0ae3-12"},{"uid":"0ae3-14"},{"uid":"0ae3-16"},{"uid":"0ae3-20"},{"uid":"0ae3-22"},{"uid":"0ae3-28"},{"uid":"0ae3-46"}]},"0ae3-66":{"id":"/src/Helpers.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-67"},"imported":[{"uid":"0ae3-73"}],"importedBy":[{"uid":"0ae3-68"}]},"0ae3-68":{"id":"/src/index.ts","moduleParts":{"jsonforms-core.esm.js":"0ae3-69"},"imported":[{"uid":"0ae3-64"},{"uid":"0ae3-70"},{"uid":"0ae3-71"},{"uid":"0ae3-72"},{"uid":"0ae3-26"},{"uid":"0ae3-73"},{"uid":"0ae3-66"},{"uid":"0ae3-74"},{"uid":"0ae3-75"}],"importedBy":[],"isEntry":true},"0ae3-70":{"id":"/src/generators/index.ts","moduleParts":{},"imported":[{"uid":"0ae3-60"},{"uid":"0ae3-0"},{"uid":"0ae3-58"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-62"},{"uid":"0ae3-30"}]},"0ae3-71":{"id":"/src/models/index.ts","moduleParts":{},"imported":[{"uid":"0ae3-2"},{"uid":"0ae3-76"},{"uid":"0ae3-77"},{"uid":"0ae3-78"},{"uid":"0ae3-4"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-58"},{"uid":"0ae3-38"},{"uid":"0ae3-54"}]},"0ae3-72":{"id":"/src/reducers/index.ts","moduleParts":{},"imported":[{"uid":"0ae3-8"},{"uid":"0ae3-12"},{"uid":"0ae3-14"},{"uid":"0ae3-16"},{"uid":"0ae3-20"},{"uid":"0ae3-30"},{"uid":"0ae3-22"},{"uid":"0ae3-32"},{"uid":"0ae3-28"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-30"},{"uid":"0ae3-48"},{"uid":"0ae3-44"},{"uid":"0ae3-46"},{"uid":"0ae3-38"},{"uid":"0ae3-18"}]},"0ae3-73":{"id":"/src/util/index.ts","moduleParts":{},"imported":[{"uid":"0ae3-6"},{"uid":"0ae3-48"},{"uid":"0ae3-44"},{"uid":"0ae3-79"},{"uid":"0ae3-50"},{"uid":"0ae3-42"},{"uid":"0ae3-36"},{"uid":"0ae3-46"},{"uid":"0ae3-34"},{"uid":"0ae3-38"},{"uid":"0ae3-52"},{"uid":"0ae3-80"},{"uid":"0ae3-54"},{"uid":"0ae3-40"},{"uid":"0ae3-56"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-66"},{"uid":"0ae3-58"},{"uid":"0ae3-14"},{"uid":"0ae3-24"},{"uid":"0ae3-18"}]},"0ae3-74":{"id":"/src/store.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-68"}]},"0ae3-75":{"id":"/src/i18n/index.ts","moduleParts":{},"imported":[{"uid":"0ae3-81"},{"uid":"0ae3-18"}],"importedBy":[{"uid":"0ae3-68"},{"uid":"0ae3-20"},{"uid":"0ae3-48"},{"uid":"0ae3-46"}]},"0ae3-76":{"id":"/src/models/jsonSchema.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-71"}]},"0ae3-77":{"id":"/src/models/jsonSchema4.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-71"}]},"0ae3-78":{"id":"/src/models/jsonSchema7.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-71"}]},"0ae3-79":{"id":"/src/util/Formatted.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-80":{"id":"/src/util/type.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-73"}]},"0ae3-81":{"id":"/src/i18n/i18nTypes.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-75"}]},"0ae3-82":{"id":"lodash/isEmpty","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-58"},{"uid":"0ae3-24"},{"uid":"0ae3-48"},{"uid":"0ae3-36"},{"uid":"0ae3-34"},{"uid":"0ae3-54"},{"uid":"0ae3-40"}],"isExternal":true},"0ae3-83":{"id":"lodash/startCase","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-58"},{"uid":"0ae3-42"}],"isExternal":true},"0ae3-84":{"id":"lodash/keys","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-58"}],"isExternal":true},"0ae3-85":{"id":"lodash/merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-12"}],"isExternal":true},"0ae3-86":{"id":"lodash/cloneDeep","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"}],"isExternal":true},"0ae3-87":{"id":"lodash/fp/set","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"}],"isExternal":true},"0ae3-88":{"id":"lodash/get","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"},{"uid":"0ae3-30"},{"uid":"0ae3-32"},{"uid":"0ae3-24"},{"uid":"0ae3-46"},{"uid":"0ae3-34"}],"isExternal":true},"0ae3-89":{"id":"lodash/filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"}],"isExternal":true},"0ae3-90":{"id":"lodash/isEqual","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"}],"isExternal":true},"0ae3-91":{"id":"lodash/isFunction","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-14"}],"isExternal":true},"0ae3-92":{"id":"lodash/maxBy","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-28"}],"isExternal":true},"0ae3-93":{"id":"lodash/remove","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-28"}],"isExternal":true},"0ae3-94":{"id":"lodash/endsWith","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"}],"isExternal":true},"0ae3-95":{"id":"lodash/last","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"}],"isExternal":true},"0ae3-96":{"id":"lodash/isArray","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"},{"uid":"0ae3-40"}],"isExternal":true},"0ae3-97":{"id":"lodash/reduce","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"}],"isExternal":true},"0ae3-98":{"id":"lodash/toPairs","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"}],"isExternal":true},"0ae3-99":{"id":"lodash/includes","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-24"},{"uid":"0ae3-40"}],"isExternal":true},"0ae3-100":{"id":"lodash/union","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-48"}],"isExternal":true},"0ae3-101":{"id":"lodash/range","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-36"}],"isExternal":true},"0ae3-102":{"id":"lodash/find","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-46"},{"uid":"0ae3-52"},{"uid":"0ae3-40"}],"isExternal":true},"0ae3-103":{"id":"lodash/has","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-38"}],"isExternal":true},"0ae3-104":{"id":"ajv","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-56"}],"isExternal":true},"0ae3-105":{"id":"ajv-formats","moduleParts":{},"imported":[],"importedBy":[{"uid":"0ae3-56"}],"isExternal":true}},"env":{"rollup":"2.61.1"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
3262
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"jsonforms-core.esm.js","children":[{"name":"src","children":[{"name":"generators","children":[{"uid":"410c-1","name":"schema.ts"},{"uid":"410c-59","name":"uischema.ts"},{"uid":"410c-61","name":"Generate.ts"}]},{"name":"models","children":[{"uid":"410c-3","name":"draft4.ts"},{"uid":"410c-5","name":"uischema.ts"}]},{"name":"util","children":[{"uid":"410c-7","name":"array.ts"},{"uid":"410c-35","name":"path.ts"},{"uid":"410c-37","name":"resolvers.ts"},{"uid":"410c-39","name":"runtime.ts"},{"uid":"410c-41","name":"util.ts"},{"uid":"410c-43","name":"label.ts"},{"uid":"410c-45","name":"renderer.ts"},{"uid":"410c-47","name":"cell.ts"},{"uid":"410c-49","name":"combinators.ts"},{"uid":"410c-51","name":"ids.ts"},{"uid":"410c-53","name":"schema.ts"},{"uid":"410c-55","name":"uischema.ts"},{"uid":"410c-57","name":"validator.ts"}]},{"name":"reducers","children":[{"uid":"410c-9","name":"cells.ts"},{"uid":"410c-13","name":"config.ts"},{"uid":"410c-15","name":"core.ts"},{"uid":"410c-17","name":"default-data.ts"},{"uid":"410c-21","name":"i18n.ts"},{"uid":"410c-23","name":"renderers.ts"},{"uid":"410c-29","name":"uischemas.ts"},{"uid":"410c-31","name":"reducers.ts"},{"uid":"410c-33","name":"selectors.ts"}]},{"uid":"410c-11","name":"configDefault.ts"},{"name":"i18n/i18nUtil.ts","uid":"410c-19"},{"name":"testers","children":[{"uid":"410c-25","name":"testers.ts"},{"uid":"410c-27","name":"index.ts"}]},{"name":"actions","children":[{"uid":"410c-63","name":"actions.ts"},{"uid":"410c-65","name":"index.ts"}]},{"uid":"410c-67","name":"Helpers.ts"},{"uid":"410c-69","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"410c-1":{"renderedLength":3843,"gzipLength":0,"brotliLength":0,"mainUid":"410c-0"},"410c-3":{"renderedLength":4050,"gzipLength":0,"brotliLength":0,"mainUid":"410c-2"},"410c-5":{"renderedLength":336,"gzipLength":0,"brotliLength":0,"mainUid":"410c-4"},"410c-7":{"renderedLength":421,"gzipLength":0,"brotliLength":0,"mainUid":"410c-6"},"410c-9":{"renderedLength":294,"gzipLength":0,"brotliLength":0,"mainUid":"410c-8"},"410c-11":{"renderedLength":133,"gzipLength":0,"brotliLength":0,"mainUid":"410c-10"},"410c-13":{"renderedLength":322,"gzipLength":0,"brotliLength":0,"mainUid":"410c-12"},"410c-15":{"renderedLength":9352,"gzipLength":0,"brotliLength":0,"mainUid":"410c-14"},"410c-17":{"renderedLength":434,"gzipLength":0,"brotliLength":0,"mainUid":"410c-16"},"410c-19":{"renderedLength":1945,"gzipLength":0,"brotliLength":0,"mainUid":"410c-18"},"410c-21":{"renderedLength":1754,"gzipLength":0,"brotliLength":0,"mainUid":"410c-20"},"410c-23":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"mainUid":"410c-22"},"410c-25":{"renderedLength":8507,"gzipLength":0,"brotliLength":0,"mainUid":"410c-24"},"410c-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"410c-26"},"410c-29":{"renderedLength":783,"gzipLength":0,"brotliLength":0,"mainUid":"410c-28"},"410c-31":{"renderedLength":1846,"gzipLength":0,"brotliLength":0,"mainUid":"410c-30"},"410c-33":{"renderedLength":573,"gzipLength":0,"brotliLength":0,"mainUid":"410c-32"},"410c-35":{"renderedLength":1308,"gzipLength":0,"brotliLength":0,"mainUid":"410c-34"},"410c-37":{"renderedLength":3040,"gzipLength":0,"brotliLength":0,"mainUid":"410c-36"},"410c-39":{"renderedLength":3621,"gzipLength":0,"brotliLength":0,"mainUid":"410c-38"},"410c-41":{"renderedLength":1502,"gzipLength":0,"brotliLength":0,"mainUid":"410c-40"},"410c-43":{"renderedLength":1289,"gzipLength":0,"brotliLength":0,"mainUid":"410c-42"},"410c-45":{"renderedLength":13161,"gzipLength":0,"brotliLength":0,"mainUid":"410c-44"},"410c-47":{"renderedLength":2622,"gzipLength":0,"brotliLength":0,"mainUid":"410c-46"},"410c-49":{"renderedLength":671,"gzipLength":0,"brotliLength":0,"mainUid":"410c-48"},"410c-51":{"renderedLength":621,"gzipLength":0,"brotliLength":0,"mainUid":"410c-50"},"410c-53":{"renderedLength":365,"gzipLength":0,"brotliLength":0,"mainUid":"410c-52"},"410c-55":{"renderedLength":609,"gzipLength":0,"brotliLength":0,"mainUid":"410c-54"},"410c-57":{"renderedLength":196,"gzipLength":0,"brotliLength":0,"mainUid":"410c-56"},"410c-59":{"renderedLength":3310,"gzipLength":0,"brotliLength":0,"mainUid":"410c-58"},"410c-61":{"renderedLength":137,"gzipLength":0,"brotliLength":0,"mainUid":"410c-60"},"410c-63":{"renderedLength":3051,"gzipLength":0,"brotliLength":0,"mainUid":"410c-62"},"410c-65":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"410c-64"},"410c-67":{"renderedLength":80,"gzipLength":0,"brotliLength":0,"mainUid":"410c-66"},"410c-69":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"410c-68"}},"nodeMetas":{"410c-0":{"id":"/src/generators/schema.ts","moduleParts":{"jsonforms-core.esm.js":"410c-1"},"imported":[],"importedBy":[{"uid":"410c-70"},{"uid":"410c-60"}]},"410c-2":{"id":"/src/models/draft4.ts","moduleParts":{"jsonforms-core.esm.js":"410c-3"},"imported":[],"importedBy":[{"uid":"410c-71"}]},"410c-4":{"id":"/src/models/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"410c-5"},"imported":[],"importedBy":[{"uid":"410c-71"}]},"410c-6":{"id":"/src/util/array.ts","moduleParts":{"jsonforms-core.esm.js":"410c-7"},"imported":[],"importedBy":[{"uid":"410c-73"},{"uid":"410c-44"}]},"410c-8":{"id":"/src/reducers/cells.ts","moduleParts":{"jsonforms-core.esm.js":"410c-9"},"imported":[{"uid":"410c-64"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"}]},"410c-10":{"id":"/src/configDefault.ts","moduleParts":{"jsonforms-core.esm.js":"410c-11"},"imported":[],"importedBy":[{"uid":"410c-12"}]},"410c-12":{"id":"/src/reducers/config.ts","moduleParts":{"jsonforms-core.esm.js":"410c-13"},"imported":[{"uid":"410c-85"},{"uid":"410c-64"},{"uid":"410c-10"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"}]},"410c-14":{"id":"/src/reducers/core.ts","moduleParts":{"jsonforms-core.esm.js":"410c-15"},"imported":[{"uid":"410c-86"},{"uid":"410c-87"},{"uid":"410c-88"},{"uid":"410c-89"},{"uid":"410c-90"},{"uid":"410c-91"},{"uid":"410c-64"},{"uid":"410c-73"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"},{"uid":"410c-32"}]},"410c-16":{"id":"/src/reducers/default-data.ts","moduleParts":{"jsonforms-core.esm.js":"410c-17"},"imported":[{"uid":"410c-64"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"},{"uid":"410c-32"}]},"410c-18":{"id":"/src/i18n/i18nUtil.ts","moduleParts":{"jsonforms-core.esm.js":"410c-19"},"imported":[{"uid":"410c-72"},{"uid":"410c-73"}],"importedBy":[{"uid":"410c-75"}]},"410c-20":{"id":"/src/reducers/i18n.ts","moduleParts":{"jsonforms-core.esm.js":"410c-21"},"imported":[{"uid":"410c-75"},{"uid":"410c-64"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"}]},"410c-22":{"id":"/src/reducers/renderers.ts","moduleParts":{"jsonforms-core.esm.js":"410c-23"},"imported":[{"uid":"410c-64"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"}]},"410c-24":{"id":"/src/testers/testers.ts","moduleParts":{"jsonforms-core.esm.js":"410c-25"},"imported":[{"uid":"410c-82"},{"uid":"410c-88"},{"uid":"410c-94"},{"uid":"410c-95"},{"uid":"410c-96"},{"uid":"410c-97"},{"uid":"410c-98"},{"uid":"410c-99"},{"uid":"410c-73"}],"importedBy":[{"uid":"410c-26"}]},"410c-26":{"id":"/src/testers/index.ts","moduleParts":{"jsonforms-core.esm.js":"410c-27"},"imported":[{"uid":"410c-24"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-28"}]},"410c-28":{"id":"/src/reducers/uischemas.ts","moduleParts":{"jsonforms-core.esm.js":"410c-29"},"imported":[{"uid":"410c-92"},{"uid":"410c-93"},{"uid":"410c-64"},{"uid":"410c-26"}],"importedBy":[{"uid":"410c-72"},{"uid":"410c-30"}]},"410c-30":{"id":"/src/reducers/reducers.ts","moduleParts":{"jsonforms-core.esm.js":"410c-31"},"imported":[{"uid":"410c-14"},{"uid":"410c-16"},{"uid":"410c-22"},{"uid":"410c-28"},{"uid":"410c-20"},{"uid":"410c-70"},{"uid":"410c-8"},{"uid":"410c-12"},{"uid":"410c-88"},{"uid":"410c-72"}],"importedBy":[{"uid":"410c-72"}]},"410c-32":{"id":"/src/reducers/selectors.ts","moduleParts":{"jsonforms-core.esm.js":"410c-33"},"imported":[{"uid":"410c-88"},{"uid":"410c-14"},{"uid":"410c-16"}],"importedBy":[{"uid":"410c-72"}]},"410c-34":{"id":"/src/util/path.ts","moduleParts":{"jsonforms-core.esm.js":"410c-35"},"imported":[{"uid":"410c-82"},{"uid":"410c-101"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-42"},{"uid":"410c-44"},{"uid":"410c-36"},{"uid":"410c-38"},{"uid":"410c-40"}]},"410c-36":{"id":"/src/util/resolvers.ts","moduleParts":{"jsonforms-core.esm.js":"410c-37"},"imported":[{"uid":"410c-82"},{"uid":"410c-88"},{"uid":"410c-34"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-38"},{"uid":"410c-40"}]},"410c-38":{"id":"/src/util/runtime.ts","moduleParts":{"jsonforms-core.esm.js":"410c-39"},"imported":[{"uid":"410c-103"},{"uid":"410c-71"},{"uid":"410c-36"},{"uid":"410c-34"},{"uid":"410c-72"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-46"},{"uid":"410c-44"},{"uid":"410c-40"}]},"410c-40":{"id":"/src/util/util.ts","moduleParts":{"jsonforms-core.esm.js":"410c-41"},"imported":[{"uid":"410c-82"},{"uid":"410c-96"},{"uid":"410c-99"},{"uid":"410c-102"},{"uid":"410c-36"},{"uid":"410c-34"},{"uid":"410c-38"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-46"},{"uid":"410c-48"},{"uid":"410c-44"}]},"410c-42":{"id":"/src/util/label.ts","moduleParts":{"jsonforms-core.esm.js":"410c-43"},"imported":[{"uid":"410c-83"},{"uid":"410c-34"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-44"}]},"410c-44":{"id":"/src/util/renderer.ts","moduleParts":{"jsonforms-core.esm.js":"410c-45"},"imported":[{"uid":"410c-88"},{"uid":"410c-102"},{"uid":"410c-72"},{"uid":"410c-38"},{"uid":"410c-42"},{"uid":"410c-6"},{"uid":"410c-40"},{"uid":"410c-34"},{"uid":"410c-64"},{"uid":"410c-75"}],"importedBy":[{"uid":"410c-73"},{"uid":"410c-46"}]},"410c-46":{"id":"/src/util/cell.ts","moduleParts":{"jsonforms-core.esm.js":"410c-47"},"imported":[{"uid":"410c-82"},{"uid":"410c-100"},{"uid":"410c-72"},{"uid":"410c-40"},{"uid":"410c-38"},{"uid":"410c-44"},{"uid":"410c-75"}],"importedBy":[{"uid":"410c-73"}]},"410c-48":{"id":"/src/util/combinators.ts","moduleParts":{"jsonforms-core.esm.js":"410c-49"},"imported":[{"uid":"410c-72"},{"uid":"410c-40"}],"importedBy":[{"uid":"410c-73"}]},"410c-50":{"id":"/src/util/ids.ts","moduleParts":{"jsonforms-core.esm.js":"410c-51"},"imported":[],"importedBy":[{"uid":"410c-73"}]},"410c-52":{"id":"/src/util/schema.ts","moduleParts":{"jsonforms-core.esm.js":"410c-53"},"imported":[{"uid":"410c-102"}],"importedBy":[{"uid":"410c-73"}]},"410c-54":{"id":"/src/util/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"410c-55"},"imported":[{"uid":"410c-82"},{"uid":"410c-71"}],"importedBy":[{"uid":"410c-73"}]},"410c-56":{"id":"/src/util/validator.ts","moduleParts":{"jsonforms-core.esm.js":"410c-57"},"imported":[{"uid":"410c-104"},{"uid":"410c-105"}],"importedBy":[{"uid":"410c-73"}]},"410c-58":{"id":"/src/generators/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"410c-59"},"imported":[{"uid":"410c-82"},{"uid":"410c-83"},{"uid":"410c-84"},{"uid":"410c-71"},{"uid":"410c-73"}],"importedBy":[{"uid":"410c-70"},{"uid":"410c-60"}]},"410c-60":{"id":"/src/generators/Generate.ts","moduleParts":{"jsonforms-core.esm.js":"410c-61"},"imported":[{"uid":"410c-0"},{"uid":"410c-58"}],"importedBy":[{"uid":"410c-70"}]},"410c-62":{"id":"/src/actions/actions.ts","moduleParts":{"jsonforms-core.esm.js":"410c-63"},"imported":[{"uid":"410c-70"}],"importedBy":[{"uid":"410c-64"}]},"410c-64":{"id":"/src/actions/index.ts","moduleParts":{"jsonforms-core.esm.js":"410c-65"},"imported":[{"uid":"410c-62"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-8"},{"uid":"410c-12"},{"uid":"410c-14"},{"uid":"410c-16"},{"uid":"410c-20"},{"uid":"410c-22"},{"uid":"410c-28"},{"uid":"410c-44"}]},"410c-66":{"id":"/src/Helpers.ts","moduleParts":{"jsonforms-core.esm.js":"410c-67"},"imported":[{"uid":"410c-73"}],"importedBy":[{"uid":"410c-68"}]},"410c-68":{"id":"/src/index.ts","moduleParts":{"jsonforms-core.esm.js":"410c-69"},"imported":[{"uid":"410c-64"},{"uid":"410c-70"},{"uid":"410c-71"},{"uid":"410c-72"},{"uid":"410c-26"},{"uid":"410c-73"},{"uid":"410c-66"},{"uid":"410c-74"},{"uid":"410c-75"}],"importedBy":[],"isEntry":true},"410c-70":{"id":"/src/generators/index.ts","moduleParts":{},"imported":[{"uid":"410c-60"},{"uid":"410c-0"},{"uid":"410c-58"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-62"},{"uid":"410c-30"}]},"410c-71":{"id":"/src/models/index.ts","moduleParts":{},"imported":[{"uid":"410c-2"},{"uid":"410c-76"},{"uid":"410c-77"},{"uid":"410c-78"},{"uid":"410c-4"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-58"},{"uid":"410c-38"},{"uid":"410c-54"}]},"410c-72":{"id":"/src/reducers/index.ts","moduleParts":{},"imported":[{"uid":"410c-8"},{"uid":"410c-12"},{"uid":"410c-14"},{"uid":"410c-16"},{"uid":"410c-20"},{"uid":"410c-30"},{"uid":"410c-22"},{"uid":"410c-32"},{"uid":"410c-28"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-30"},{"uid":"410c-46"},{"uid":"410c-48"},{"uid":"410c-44"},{"uid":"410c-38"},{"uid":"410c-18"}]},"410c-73":{"id":"/src/util/index.ts","moduleParts":{},"imported":[{"uid":"410c-6"},{"uid":"410c-46"},{"uid":"410c-48"},{"uid":"410c-79"},{"uid":"410c-50"},{"uid":"410c-42"},{"uid":"410c-34"},{"uid":"410c-44"},{"uid":"410c-36"},{"uid":"410c-38"},{"uid":"410c-52"},{"uid":"410c-80"},{"uid":"410c-54"},{"uid":"410c-40"},{"uid":"410c-56"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-66"},{"uid":"410c-58"},{"uid":"410c-14"},{"uid":"410c-24"},{"uid":"410c-18"}]},"410c-74":{"id":"/src/store.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-68"}]},"410c-75":{"id":"/src/i18n/index.ts","moduleParts":{},"imported":[{"uid":"410c-81"},{"uid":"410c-18"}],"importedBy":[{"uid":"410c-68"},{"uid":"410c-20"},{"uid":"410c-46"},{"uid":"410c-44"}]},"410c-76":{"id":"/src/models/jsonSchema.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-71"}]},"410c-77":{"id":"/src/models/jsonSchema4.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-71"}]},"410c-78":{"id":"/src/models/jsonSchema7.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-71"}]},"410c-79":{"id":"/src/util/Formatted.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-73"}]},"410c-80":{"id":"/src/util/type.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-73"}]},"410c-81":{"id":"/src/i18n/i18nTypes.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-75"}]},"410c-82":{"id":"lodash/isEmpty","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-58"},{"uid":"410c-24"},{"uid":"410c-46"},{"uid":"410c-34"},{"uid":"410c-36"},{"uid":"410c-54"},{"uid":"410c-40"}],"isExternal":true},"410c-83":{"id":"lodash/startCase","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-58"},{"uid":"410c-42"}],"isExternal":true},"410c-84":{"id":"lodash/keys","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-58"}],"isExternal":true},"410c-85":{"id":"lodash/merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-12"}],"isExternal":true},"410c-86":{"id":"lodash/cloneDeep","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"}],"isExternal":true},"410c-87":{"id":"lodash/fp/set","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"}],"isExternal":true},"410c-88":{"id":"lodash/get","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"},{"uid":"410c-30"},{"uid":"410c-32"},{"uid":"410c-24"},{"uid":"410c-44"},{"uid":"410c-36"}],"isExternal":true},"410c-89":{"id":"lodash/filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"}],"isExternal":true},"410c-90":{"id":"lodash/isEqual","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"}],"isExternal":true},"410c-91":{"id":"lodash/isFunction","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-14"}],"isExternal":true},"410c-92":{"id":"lodash/maxBy","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-28"}],"isExternal":true},"410c-93":{"id":"lodash/remove","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-28"}],"isExternal":true},"410c-94":{"id":"lodash/endsWith","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"}],"isExternal":true},"410c-95":{"id":"lodash/last","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"}],"isExternal":true},"410c-96":{"id":"lodash/isArray","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"},{"uid":"410c-40"}],"isExternal":true},"410c-97":{"id":"lodash/reduce","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"}],"isExternal":true},"410c-98":{"id":"lodash/toPairs","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"}],"isExternal":true},"410c-99":{"id":"lodash/includes","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-24"},{"uid":"410c-40"}],"isExternal":true},"410c-100":{"id":"lodash/union","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-46"}],"isExternal":true},"410c-101":{"id":"lodash/range","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-34"}],"isExternal":true},"410c-102":{"id":"lodash/find","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-44"},{"uid":"410c-52"},{"uid":"410c-40"}],"isExternal":true},"410c-103":{"id":"lodash/has","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-38"}],"isExternal":true},"410c-104":{"id":"ajv","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-56"}],"isExternal":true},"410c-105":{"id":"ajv-formats","moduleParts":{},"imported":[],"importedBy":[{"uid":"410c-56"}],"isExternal":true}},"env":{"rollup":"2.61.1"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
3263
3263
|
|
|
3264
3264
|
const run = () => {
|
|
3265
3265
|
const width = window.innerWidth;
|
|
@@ -556,3 +556,21 @@ test('generate control for nested oneOf', t => {
|
|
|
556
556
|
};
|
|
557
557
|
t.deepEqual(generateDefaultUISchema(schema), uischema);
|
|
558
558
|
});
|
|
559
|
+
|
|
560
|
+
test('encode "/" in generated ui schema', t => {
|
|
561
|
+
const schema: JsonSchema = {
|
|
562
|
+
properties: {
|
|
563
|
+
'some / initial / value': {
|
|
564
|
+
type : 'integer'
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
const uischema: Layout = {
|
|
569
|
+
type: 'VerticalLayout',
|
|
570
|
+
elements: [{
|
|
571
|
+
type: 'Control',
|
|
572
|
+
scope: '#/properties/some ~1 initial ~1 value'
|
|
573
|
+
}] as ControlElement[]
|
|
574
|
+
};
|
|
575
|
+
t.deepEqual(generateDefaultUISchema(schema), uischema);
|
|
576
|
+
});
|