@jsonforms/core 3.0.0-beta.3 → 3.0.0-beta.4

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.
Files changed (35) hide show
  1. package/README.md +11 -0
  2. package/docs/assets/js/search.json +1 -1
  3. package/docs/enums/ruleeffect.html +4 -4
  4. package/docs/globals.html +39 -8
  5. package/docs/index.html +16 -0
  6. package/docs/interfaces/andcondition.html +2 -2
  7. package/docs/interfaces/categorization.html +5 -5
  8. package/docs/interfaces/category.html +5 -5
  9. package/docs/interfaces/composablecondition.html +2 -2
  10. package/docs/interfaces/condition.html +1 -1
  11. package/docs/interfaces/controlelement.html +22 -4
  12. package/docs/interfaces/grouplayout.html +5 -5
  13. package/docs/interfaces/horizontallayout.html +4 -4
  14. package/docs/interfaces/internationalizable.html +167 -0
  15. package/docs/interfaces/labeldescription.html +2 -2
  16. package/docs/interfaces/labelelement.html +4 -4
  17. package/docs/interfaces/layout.html +4 -4
  18. package/docs/interfaces/leafcondition.html +2 -2
  19. package/docs/interfaces/orcondition.html +2 -2
  20. package/docs/interfaces/rule.html +2 -2
  21. package/docs/interfaces/schemabasedcondition.html +2 -2
  22. package/docs/interfaces/uischemaelement.html +3 -3
  23. package/docs/interfaces/verticallayout.html +4 -4
  24. package/lib/jsonforms-core.cjs.js +10 -3
  25. package/lib/jsonforms-core.cjs.js.map +1 -1
  26. package/lib/jsonforms-core.esm.js +9 -3
  27. package/lib/jsonforms-core.esm.js.map +1 -1
  28. package/lib/models/uischema.d.ts +10 -1
  29. package/package.json +2 -2
  30. package/src/i18n/i18nUtil.ts +5 -2
  31. package/src/models/uischema.ts +14 -1
  32. package/src/testers/testers.ts +1 -1
  33. package/stats.html +1 -1
  34. package/test/i18n/i18nUtil.test.ts +41 -1
  35. package/test/util/renderer.test.ts +1 -1
@@ -9,6 +9,14 @@ export interface Scopable {
9
9
  */
10
10
  scope: string;
11
11
  }
12
+ /**
13
+ * Interface for describing an UI schema element that can provide an internationalization base key.
14
+ * If defined, this key is suffixed to derive applicable message keys for the UI schema element.
15
+ * For example, such suffixes are `.label` or `.description` to derive the corresponding message keys for a control element.
16
+ */
17
+ export interface Internationalizable {
18
+ i18n?: string;
19
+ }
12
20
  /**
13
21
  * A rule that may be attached to any UI schema element.
14
22
  */
@@ -163,7 +171,7 @@ export interface LabelElement extends UISchemaElement {
163
171
  * A control element. The scope property of the control determines
164
172
  * to which part of the schema the control should be bound.
165
173
  */
166
- export interface ControlElement extends UISchemaElement, Scopable {
174
+ export interface ControlElement extends UISchemaElement, Scopable, Internationalizable {
167
175
  type: 'Control';
168
176
  /**
169
177
  * An optional label that will be associated with the control
@@ -197,5 +205,6 @@ export interface Categorization extends UISchemaElement {
197
205
  */
198
206
  elements: (Category | Categorization)[];
199
207
  }
208
+ export declare const isInternationalized: (element: unknown) => element is Required<Internationalizable>;
200
209
  export declare const isGroup: (layout: Layout) => layout is GroupLayout;
201
210
  export declare const isLayout: (uischema: UISchemaElement) => uischema is Layout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsonforms/core",
3
- "version": "3.0.0-beta.3",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Core module of JSON Forms",
5
5
  "repository": "https://github.com/eclipsesource/jsonforms",
6
6
  "bugs": "https://github.com/eclipsesource/jsonforms/issues",
@@ -88,5 +88,5 @@
88
88
  "typedoc": "^0.19.2",
89
89
  "typescript": "4.2.3"
90
90
  },
91
- "gitHead": "78ef46d070f9c5ac1db1f04772db1293858ce2a4"
91
+ "gitHead": "413b9767ea8e2c0b6adb3919f5e6b76263d4be31"
92
92
  }
@@ -1,5 +1,5 @@
1
1
  import { ErrorObject } from 'ajv';
2
- import { UISchemaElement } from '../models';
2
+ import { isInternationalized, UISchemaElement } from '../models';
3
3
  import { getControlPath } from '../reducers';
4
4
  import { formatErrorMessage } from '../util';
5
5
  import { i18nJsonSchema, ErrorTranslator, Translator } from './i18nTypes';
@@ -8,7 +8,10 @@ export const getI18nKeyPrefixBySchema = (
8
8
  schema: i18nJsonSchema | undefined,
9
9
  uischema: UISchemaElement | undefined
10
10
  ): string | undefined => {
11
- return uischema?.options?.i18n ?? schema?.i18n ?? undefined;
11
+ if (isInternationalized(uischema)) {
12
+ return uischema.i18n;
13
+ }
14
+ return schema?.i18n ?? undefined;
12
15
  };
13
16
 
14
17
  /**
@@ -36,6 +36,15 @@ export interface Scopable {
36
36
  scope: string;
37
37
  }
38
38
 
39
+ /**
40
+ * Interface for describing an UI schema element that can provide an internationalization base key.
41
+ * If defined, this key is suffixed to derive applicable message keys for the UI schema element.
42
+ * For example, such suffixes are `.label` or `.description` to derive the corresponding message keys for a control element.
43
+ */
44
+ export interface Internationalizable {
45
+ i18n?: string;
46
+ }
47
+
39
48
  /**
40
49
  * A rule that may be attached to any UI schema element.
41
50
  */
@@ -207,7 +216,7 @@ export interface LabelElement extends UISchemaElement {
207
216
  * A control element. The scope property of the control determines
208
217
  * to which part of the schema the control should be bound.
209
218
  */
210
- export interface ControlElement extends UISchemaElement, Scopable {
219
+ export interface ControlElement extends UISchemaElement, Scopable, Internationalizable {
211
220
  type: 'Control';
212
221
  /**
213
222
  * An optional label that will be associated with the control
@@ -244,6 +253,10 @@ export interface Categorization extends UISchemaElement {
244
253
  elements: (Category | Categorization)[];
245
254
  }
246
255
 
256
+ export const isInternationalized = (element: unknown): element is Required<Internationalizable> => {
257
+ return typeof element === 'object' && element !== null && typeof (element as Internationalizable).i18n === 'string';
258
+ }
259
+
247
260
  export const isGroup = (layout: Layout): layout is GroupLayout =>
248
261
  layout.type === 'Group';
249
262
 
@@ -144,7 +144,7 @@ export const formatIs = (expectedFormat: string): Tester =>
144
144
  schema =>
145
145
  !isEmpty(schema) &&
146
146
  schema.format === expectedFormat &&
147
- schema.type === 'string'
147
+ hasType(schema, 'string')
148
148
  );
149
149
 
150
150
  /**
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":"40e6-1","name":"schema.ts"},{"uid":"40e6-59","name":"uischema.ts"},{"uid":"40e6-61","name":"Generate.ts"}]},{"name":"models","children":[{"uid":"40e6-3","name":"draft4.ts"},{"uid":"40e6-5","name":"uischema.ts"}]},{"name":"util","children":[{"uid":"40e6-7","name":"array.ts"},{"uid":"40e6-35","name":"path.ts"},{"uid":"40e6-37","name":"resolvers.ts"},{"uid":"40e6-39","name":"runtime.ts"},{"uid":"40e6-41","name":"util.ts"},{"uid":"40e6-43","name":"label.ts"},{"uid":"40e6-45","name":"renderer.ts"},{"uid":"40e6-47","name":"cell.ts"},{"uid":"40e6-49","name":"combinators.ts"},{"uid":"40e6-51","name":"ids.ts"},{"uid":"40e6-53","name":"schema.ts"},{"uid":"40e6-55","name":"uischema.ts"},{"uid":"40e6-57","name":"validator.ts"}]},{"name":"reducers","children":[{"uid":"40e6-9","name":"cells.ts"},{"uid":"40e6-13","name":"config.ts"},{"uid":"40e6-15","name":"core.ts"},{"uid":"40e6-17","name":"default-data.ts"},{"uid":"40e6-21","name":"i18n.ts"},{"uid":"40e6-23","name":"renderers.ts"},{"uid":"40e6-29","name":"uischemas.ts"},{"uid":"40e6-31","name":"reducers.ts"},{"uid":"40e6-33","name":"selectors.ts"}]},{"uid":"40e6-11","name":"configDefault.ts"},{"name":"i18n/i18nUtil.ts","uid":"40e6-19"},{"name":"testers","children":[{"uid":"40e6-25","name":"testers.ts"},{"uid":"40e6-27","name":"index.ts"}]},{"name":"actions","children":[{"uid":"40e6-63","name":"actions.ts"},{"uid":"40e6-65","name":"index.ts"}]},{"uid":"40e6-67","name":"Helpers.ts"},{"uid":"40e6-69","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"40e6-1":{"renderedLength":3843,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-0"},"40e6-3":{"renderedLength":4050,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-2"},"40e6-5":{"renderedLength":336,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-4"},"40e6-7":{"renderedLength":421,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-6"},"40e6-9":{"renderedLength":294,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-8"},"40e6-11":{"renderedLength":133,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-10"},"40e6-13":{"renderedLength":322,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-12"},"40e6-15":{"renderedLength":10156,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-14"},"40e6-17":{"renderedLength":434,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-16"},"40e6-19":{"renderedLength":2025,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-18"},"40e6-21":{"renderedLength":1754,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-20"},"40e6-23":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-22"},"40e6-25":{"renderedLength":8507,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-24"},"40e6-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-26"},"40e6-29":{"renderedLength":783,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-28"},"40e6-31":{"renderedLength":1846,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-30"},"40e6-33":{"renderedLength":573,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-32"},"40e6-35":{"renderedLength":1308,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-34"},"40e6-37":{"renderedLength":3040,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-36"},"40e6-39":{"renderedLength":3621,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-38"},"40e6-41":{"renderedLength":1502,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-40"},"40e6-43":{"renderedLength":1289,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-42"},"40e6-45":{"renderedLength":13284,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-44"},"40e6-47":{"renderedLength":2622,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-46"},"40e6-49":{"renderedLength":671,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-48"},"40e6-51":{"renderedLength":621,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-50"},"40e6-53":{"renderedLength":365,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-52"},"40e6-55":{"renderedLength":609,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-54"},"40e6-57":{"renderedLength":196,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-56"},"40e6-59":{"renderedLength":3310,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-58"},"40e6-61":{"renderedLength":137,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-60"},"40e6-63":{"renderedLength":3051,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-62"},"40e6-65":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-64"},"40e6-67":{"renderedLength":80,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-66"},"40e6-69":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"40e6-68"}},"nodeMetas":{"40e6-0":{"id":"/src/generators/schema.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-1"},"imported":[],"importedBy":[{"uid":"40e6-70"},{"uid":"40e6-60"}]},"40e6-2":{"id":"/src/models/draft4.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-3"},"imported":[],"importedBy":[{"uid":"40e6-71"}]},"40e6-4":{"id":"/src/models/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-5"},"imported":[],"importedBy":[{"uid":"40e6-71"}]},"40e6-6":{"id":"/src/util/array.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-7"},"imported":[],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-44"}]},"40e6-8":{"id":"/src/reducers/cells.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-9"},"imported":[{"uid":"40e6-64"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"}]},"40e6-10":{"id":"/src/configDefault.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-11"},"imported":[],"importedBy":[{"uid":"40e6-12"}]},"40e6-12":{"id":"/src/reducers/config.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-13"},"imported":[{"uid":"40e6-85"},{"uid":"40e6-64"},{"uid":"40e6-10"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"}]},"40e6-14":{"id":"/src/reducers/core.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-15"},"imported":[{"uid":"40e6-86"},{"uid":"40e6-87"},{"uid":"40e6-88"},{"uid":"40e6-89"},{"uid":"40e6-90"},{"uid":"40e6-91"},{"uid":"40e6-64"},{"uid":"40e6-73"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"},{"uid":"40e6-32"}]},"40e6-16":{"id":"/src/reducers/default-data.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-17"},"imported":[{"uid":"40e6-64"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"},{"uid":"40e6-32"}]},"40e6-18":{"id":"/src/i18n/i18nUtil.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-19"},"imported":[{"uid":"40e6-72"},{"uid":"40e6-73"}],"importedBy":[{"uid":"40e6-75"}]},"40e6-20":{"id":"/src/reducers/i18n.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-21"},"imported":[{"uid":"40e6-75"},{"uid":"40e6-64"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"}]},"40e6-22":{"id":"/src/reducers/renderers.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-23"},"imported":[{"uid":"40e6-64"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"}]},"40e6-24":{"id":"/src/testers/testers.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-25"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-88"},{"uid":"40e6-94"},{"uid":"40e6-95"},{"uid":"40e6-96"},{"uid":"40e6-97"},{"uid":"40e6-98"},{"uid":"40e6-99"},{"uid":"40e6-73"}],"importedBy":[{"uid":"40e6-26"}]},"40e6-26":{"id":"/src/testers/index.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-27"},"imported":[{"uid":"40e6-24"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-28"}]},"40e6-28":{"id":"/src/reducers/uischemas.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-29"},"imported":[{"uid":"40e6-92"},{"uid":"40e6-93"},{"uid":"40e6-64"},{"uid":"40e6-26"}],"importedBy":[{"uid":"40e6-72"},{"uid":"40e6-30"}]},"40e6-30":{"id":"/src/reducers/reducers.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-31"},"imported":[{"uid":"40e6-14"},{"uid":"40e6-16"},{"uid":"40e6-22"},{"uid":"40e6-28"},{"uid":"40e6-20"},{"uid":"40e6-70"},{"uid":"40e6-8"},{"uid":"40e6-12"},{"uid":"40e6-88"},{"uid":"40e6-72"}],"importedBy":[{"uid":"40e6-72"}]},"40e6-32":{"id":"/src/reducers/selectors.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-33"},"imported":[{"uid":"40e6-88"},{"uid":"40e6-14"},{"uid":"40e6-16"}],"importedBy":[{"uid":"40e6-72"}]},"40e6-34":{"id":"/src/util/path.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-35"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-101"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-42"},{"uid":"40e6-44"},{"uid":"40e6-36"},{"uid":"40e6-38"},{"uid":"40e6-40"}]},"40e6-36":{"id":"/src/util/resolvers.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-37"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-88"},{"uid":"40e6-34"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-38"},{"uid":"40e6-40"}]},"40e6-38":{"id":"/src/util/runtime.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-39"},"imported":[{"uid":"40e6-103"},{"uid":"40e6-71"},{"uid":"40e6-36"},{"uid":"40e6-34"},{"uid":"40e6-72"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-46"},{"uid":"40e6-44"},{"uid":"40e6-40"}]},"40e6-40":{"id":"/src/util/util.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-41"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-96"},{"uid":"40e6-99"},{"uid":"40e6-102"},{"uid":"40e6-36"},{"uid":"40e6-34"},{"uid":"40e6-38"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-46"},{"uid":"40e6-48"},{"uid":"40e6-44"}]},"40e6-42":{"id":"/src/util/label.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-43"},"imported":[{"uid":"40e6-83"},{"uid":"40e6-34"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-44"}]},"40e6-44":{"id":"/src/util/renderer.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-45"},"imported":[{"uid":"40e6-88"},{"uid":"40e6-102"},{"uid":"40e6-72"},{"uid":"40e6-38"},{"uid":"40e6-42"},{"uid":"40e6-6"},{"uid":"40e6-40"},{"uid":"40e6-34"},{"uid":"40e6-64"},{"uid":"40e6-75"}],"importedBy":[{"uid":"40e6-73"},{"uid":"40e6-46"}]},"40e6-46":{"id":"/src/util/cell.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-47"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-100"},{"uid":"40e6-72"},{"uid":"40e6-40"},{"uid":"40e6-38"},{"uid":"40e6-44"},{"uid":"40e6-75"}],"importedBy":[{"uid":"40e6-73"}]},"40e6-48":{"id":"/src/util/combinators.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-49"},"imported":[{"uid":"40e6-72"},{"uid":"40e6-40"}],"importedBy":[{"uid":"40e6-73"}]},"40e6-50":{"id":"/src/util/ids.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-51"},"imported":[],"importedBy":[{"uid":"40e6-73"}]},"40e6-52":{"id":"/src/util/schema.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-53"},"imported":[{"uid":"40e6-102"}],"importedBy":[{"uid":"40e6-73"}]},"40e6-54":{"id":"/src/util/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-55"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-71"}],"importedBy":[{"uid":"40e6-73"}]},"40e6-56":{"id":"/src/util/validator.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-57"},"imported":[{"uid":"40e6-104"},{"uid":"40e6-105"}],"importedBy":[{"uid":"40e6-73"}]},"40e6-58":{"id":"/src/generators/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-59"},"imported":[{"uid":"40e6-82"},{"uid":"40e6-83"},{"uid":"40e6-84"},{"uid":"40e6-71"},{"uid":"40e6-73"}],"importedBy":[{"uid":"40e6-70"},{"uid":"40e6-60"}]},"40e6-60":{"id":"/src/generators/Generate.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-61"},"imported":[{"uid":"40e6-0"},{"uid":"40e6-58"}],"importedBy":[{"uid":"40e6-70"}]},"40e6-62":{"id":"/src/actions/actions.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-63"},"imported":[{"uid":"40e6-70"}],"importedBy":[{"uid":"40e6-64"}]},"40e6-64":{"id":"/src/actions/index.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-65"},"imported":[{"uid":"40e6-62"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-8"},{"uid":"40e6-12"},{"uid":"40e6-14"},{"uid":"40e6-16"},{"uid":"40e6-20"},{"uid":"40e6-22"},{"uid":"40e6-28"},{"uid":"40e6-44"}]},"40e6-66":{"id":"/src/Helpers.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-67"},"imported":[{"uid":"40e6-73"}],"importedBy":[{"uid":"40e6-68"}]},"40e6-68":{"id":"/src/index.ts","moduleParts":{"jsonforms-core.esm.js":"40e6-69"},"imported":[{"uid":"40e6-64"},{"uid":"40e6-70"},{"uid":"40e6-71"},{"uid":"40e6-72"},{"uid":"40e6-26"},{"uid":"40e6-73"},{"uid":"40e6-66"},{"uid":"40e6-74"},{"uid":"40e6-75"}],"importedBy":[],"isEntry":true},"40e6-70":{"id":"/src/generators/index.ts","moduleParts":{},"imported":[{"uid":"40e6-60"},{"uid":"40e6-0"},{"uid":"40e6-58"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-62"},{"uid":"40e6-30"}]},"40e6-71":{"id":"/src/models/index.ts","moduleParts":{},"imported":[{"uid":"40e6-2"},{"uid":"40e6-76"},{"uid":"40e6-77"},{"uid":"40e6-78"},{"uid":"40e6-4"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-58"},{"uid":"40e6-38"},{"uid":"40e6-54"}]},"40e6-72":{"id":"/src/reducers/index.ts","moduleParts":{},"imported":[{"uid":"40e6-8"},{"uid":"40e6-12"},{"uid":"40e6-14"},{"uid":"40e6-16"},{"uid":"40e6-20"},{"uid":"40e6-30"},{"uid":"40e6-22"},{"uid":"40e6-32"},{"uid":"40e6-28"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-30"},{"uid":"40e6-46"},{"uid":"40e6-48"},{"uid":"40e6-44"},{"uid":"40e6-38"},{"uid":"40e6-18"}]},"40e6-73":{"id":"/src/util/index.ts","moduleParts":{},"imported":[{"uid":"40e6-6"},{"uid":"40e6-46"},{"uid":"40e6-48"},{"uid":"40e6-79"},{"uid":"40e6-50"},{"uid":"40e6-42"},{"uid":"40e6-34"},{"uid":"40e6-44"},{"uid":"40e6-36"},{"uid":"40e6-38"},{"uid":"40e6-52"},{"uid":"40e6-80"},{"uid":"40e6-54"},{"uid":"40e6-40"},{"uid":"40e6-56"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-66"},{"uid":"40e6-58"},{"uid":"40e6-14"},{"uid":"40e6-24"},{"uid":"40e6-18"}]},"40e6-74":{"id":"/src/store.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-68"}]},"40e6-75":{"id":"/src/i18n/index.ts","moduleParts":{},"imported":[{"uid":"40e6-81"},{"uid":"40e6-18"}],"importedBy":[{"uid":"40e6-68"},{"uid":"40e6-20"},{"uid":"40e6-46"},{"uid":"40e6-44"}]},"40e6-76":{"id":"/src/models/jsonSchema.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-71"}]},"40e6-77":{"id":"/src/models/jsonSchema4.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-71"}]},"40e6-78":{"id":"/src/models/jsonSchema7.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-71"}]},"40e6-79":{"id":"/src/util/Formatted.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-73"}]},"40e6-80":{"id":"/src/util/type.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-73"}]},"40e6-81":{"id":"/src/i18n/i18nTypes.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-75"}]},"40e6-82":{"id":"lodash/isEmpty","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-58"},{"uid":"40e6-24"},{"uid":"40e6-46"},{"uid":"40e6-34"},{"uid":"40e6-36"},{"uid":"40e6-54"},{"uid":"40e6-40"}],"isExternal":true},"40e6-83":{"id":"lodash/startCase","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-58"},{"uid":"40e6-42"}],"isExternal":true},"40e6-84":{"id":"lodash/keys","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-58"}],"isExternal":true},"40e6-85":{"id":"lodash/merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-12"}],"isExternal":true},"40e6-86":{"id":"lodash/cloneDeep","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"}],"isExternal":true},"40e6-87":{"id":"lodash/fp/set","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"}],"isExternal":true},"40e6-88":{"id":"lodash/get","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"},{"uid":"40e6-30"},{"uid":"40e6-32"},{"uid":"40e6-24"},{"uid":"40e6-44"},{"uid":"40e6-36"}],"isExternal":true},"40e6-89":{"id":"lodash/filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"}],"isExternal":true},"40e6-90":{"id":"lodash/isEqual","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"}],"isExternal":true},"40e6-91":{"id":"lodash/isFunction","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-14"}],"isExternal":true},"40e6-92":{"id":"lodash/maxBy","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-28"}],"isExternal":true},"40e6-93":{"id":"lodash/remove","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-28"}],"isExternal":true},"40e6-94":{"id":"lodash/endsWith","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"}],"isExternal":true},"40e6-95":{"id":"lodash/last","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"}],"isExternal":true},"40e6-96":{"id":"lodash/isArray","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"},{"uid":"40e6-40"}],"isExternal":true},"40e6-97":{"id":"lodash/reduce","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"}],"isExternal":true},"40e6-98":{"id":"lodash/toPairs","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"}],"isExternal":true},"40e6-99":{"id":"lodash/includes","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-24"},{"uid":"40e6-40"}],"isExternal":true},"40e6-100":{"id":"lodash/union","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-46"}],"isExternal":true},"40e6-101":{"id":"lodash/range","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-34"}],"isExternal":true},"40e6-102":{"id":"lodash/find","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-44"},{"uid":"40e6-52"},{"uid":"40e6-40"}],"isExternal":true},"40e6-103":{"id":"lodash/has","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-38"}],"isExternal":true},"40e6-104":{"id":"ajv","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-56"}],"isExternal":true},"40e6-105":{"id":"ajv-formats","moduleParts":{},"imported":[],"importedBy":[{"uid":"40e6-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":"7b5e-1","name":"schema.ts"},{"uid":"7b5e-59","name":"uischema.ts"},{"uid":"7b5e-61","name":"Generate.ts"}]},{"name":"models","children":[{"uid":"7b5e-3","name":"draft4.ts"},{"uid":"7b5e-5","name":"uischema.ts"}]},{"name":"util","children":[{"uid":"7b5e-7","name":"array.ts"},{"uid":"7b5e-35","name":"path.ts"},{"uid":"7b5e-37","name":"resolvers.ts"},{"uid":"7b5e-39","name":"runtime.ts"},{"uid":"7b5e-41","name":"util.ts"},{"uid":"7b5e-43","name":"label.ts"},{"uid":"7b5e-45","name":"renderer.ts"},{"uid":"7b5e-47","name":"cell.ts"},{"uid":"7b5e-49","name":"combinators.ts"},{"uid":"7b5e-51","name":"ids.ts"},{"uid":"7b5e-53","name":"schema.ts"},{"uid":"7b5e-55","name":"uischema.ts"},{"uid":"7b5e-57","name":"validator.ts"}]},{"name":"reducers","children":[{"uid":"7b5e-9","name":"cells.ts"},{"uid":"7b5e-13","name":"config.ts"},{"uid":"7b5e-15","name":"core.ts"},{"uid":"7b5e-17","name":"default-data.ts"},{"uid":"7b5e-21","name":"i18n.ts"},{"uid":"7b5e-23","name":"renderers.ts"},{"uid":"7b5e-29","name":"uischemas.ts"},{"uid":"7b5e-31","name":"reducers.ts"},{"uid":"7b5e-33","name":"selectors.ts"}]},{"uid":"7b5e-11","name":"configDefault.ts"},{"name":"i18n/i18nUtil.ts","uid":"7b5e-19"},{"name":"testers","children":[{"uid":"7b5e-25","name":"testers.ts"},{"uid":"7b5e-27","name":"index.ts"}]},{"name":"actions","children":[{"uid":"7b5e-63","name":"actions.ts"},{"uid":"7b5e-65","name":"index.ts"}]},{"uid":"7b5e-67","name":"Helpers.ts"},{"uid":"7b5e-69","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"7b5e-1":{"renderedLength":3843,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-0"},"7b5e-3":{"renderedLength":4050,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-2"},"7b5e-5":{"renderedLength":478,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-4"},"7b5e-7":{"renderedLength":421,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-6"},"7b5e-9":{"renderedLength":294,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-8"},"7b5e-11":{"renderedLength":133,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-10"},"7b5e-13":{"renderedLength":322,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-12"},"7b5e-15":{"renderedLength":10156,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-14"},"7b5e-17":{"renderedLength":434,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-16"},"7b5e-19":{"renderedLength":2075,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-18"},"7b5e-21":{"renderedLength":1754,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-20"},"7b5e-23":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-22"},"7b5e-25":{"renderedLength":8508,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-24"},"7b5e-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-26"},"7b5e-29":{"renderedLength":783,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-28"},"7b5e-31":{"renderedLength":1846,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-30"},"7b5e-33":{"renderedLength":573,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-32"},"7b5e-35":{"renderedLength":1308,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-34"},"7b5e-37":{"renderedLength":3040,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-36"},"7b5e-39":{"renderedLength":3621,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-38"},"7b5e-41":{"renderedLength":1502,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-40"},"7b5e-43":{"renderedLength":1289,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-42"},"7b5e-45":{"renderedLength":13284,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-44"},"7b5e-47":{"renderedLength":2622,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-46"},"7b5e-49":{"renderedLength":671,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-48"},"7b5e-51":{"renderedLength":621,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-50"},"7b5e-53":{"renderedLength":365,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-52"},"7b5e-55":{"renderedLength":609,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-54"},"7b5e-57":{"renderedLength":196,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-56"},"7b5e-59":{"renderedLength":3310,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-58"},"7b5e-61":{"renderedLength":137,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-60"},"7b5e-63":{"renderedLength":3051,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-62"},"7b5e-65":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-64"},"7b5e-67":{"renderedLength":80,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-66"},"7b5e-69":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"7b5e-68"}},"nodeMetas":{"7b5e-0":{"id":"/src/generators/schema.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-1"},"imported":[],"importedBy":[{"uid":"7b5e-70"},{"uid":"7b5e-60"}]},"7b5e-2":{"id":"/src/models/draft4.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-3"},"imported":[],"importedBy":[{"uid":"7b5e-71"}]},"7b5e-4":{"id":"/src/models/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-5"},"imported":[],"importedBy":[{"uid":"7b5e-71"}]},"7b5e-6":{"id":"/src/util/array.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-7"},"imported":[],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-44"}]},"7b5e-8":{"id":"/src/reducers/cells.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-9"},"imported":[{"uid":"7b5e-64"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"}]},"7b5e-10":{"id":"/src/configDefault.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-11"},"imported":[],"importedBy":[{"uid":"7b5e-12"}]},"7b5e-12":{"id":"/src/reducers/config.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-13"},"imported":[{"uid":"7b5e-85"},{"uid":"7b5e-64"},{"uid":"7b5e-10"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"}]},"7b5e-14":{"id":"/src/reducers/core.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-15"},"imported":[{"uid":"7b5e-86"},{"uid":"7b5e-87"},{"uid":"7b5e-88"},{"uid":"7b5e-89"},{"uid":"7b5e-90"},{"uid":"7b5e-91"},{"uid":"7b5e-64"},{"uid":"7b5e-73"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"},{"uid":"7b5e-32"}]},"7b5e-16":{"id":"/src/reducers/default-data.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-17"},"imported":[{"uid":"7b5e-64"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"},{"uid":"7b5e-32"}]},"7b5e-18":{"id":"/src/i18n/i18nUtil.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-19"},"imported":[{"uid":"7b5e-71"},{"uid":"7b5e-72"},{"uid":"7b5e-73"}],"importedBy":[{"uid":"7b5e-75"}]},"7b5e-20":{"id":"/src/reducers/i18n.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-21"},"imported":[{"uid":"7b5e-75"},{"uid":"7b5e-64"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"}]},"7b5e-22":{"id":"/src/reducers/renderers.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-23"},"imported":[{"uid":"7b5e-64"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"}]},"7b5e-24":{"id":"/src/testers/testers.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-25"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-88"},{"uid":"7b5e-94"},{"uid":"7b5e-95"},{"uid":"7b5e-96"},{"uid":"7b5e-97"},{"uid":"7b5e-98"},{"uid":"7b5e-99"},{"uid":"7b5e-73"}],"importedBy":[{"uid":"7b5e-26"}]},"7b5e-26":{"id":"/src/testers/index.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-27"},"imported":[{"uid":"7b5e-24"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-28"}]},"7b5e-28":{"id":"/src/reducers/uischemas.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-29"},"imported":[{"uid":"7b5e-92"},{"uid":"7b5e-93"},{"uid":"7b5e-64"},{"uid":"7b5e-26"}],"importedBy":[{"uid":"7b5e-72"},{"uid":"7b5e-30"}]},"7b5e-30":{"id":"/src/reducers/reducers.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-31"},"imported":[{"uid":"7b5e-14"},{"uid":"7b5e-16"},{"uid":"7b5e-22"},{"uid":"7b5e-28"},{"uid":"7b5e-20"},{"uid":"7b5e-70"},{"uid":"7b5e-8"},{"uid":"7b5e-12"},{"uid":"7b5e-88"},{"uid":"7b5e-72"}],"importedBy":[{"uid":"7b5e-72"}]},"7b5e-32":{"id":"/src/reducers/selectors.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-33"},"imported":[{"uid":"7b5e-88"},{"uid":"7b5e-14"},{"uid":"7b5e-16"}],"importedBy":[{"uid":"7b5e-72"}]},"7b5e-34":{"id":"/src/util/path.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-35"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-101"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-42"},{"uid":"7b5e-44"},{"uid":"7b5e-36"},{"uid":"7b5e-38"},{"uid":"7b5e-40"}]},"7b5e-36":{"id":"/src/util/resolvers.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-37"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-88"},{"uid":"7b5e-34"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-38"},{"uid":"7b5e-40"}]},"7b5e-38":{"id":"/src/util/runtime.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-39"},"imported":[{"uid":"7b5e-103"},{"uid":"7b5e-71"},{"uid":"7b5e-36"},{"uid":"7b5e-34"},{"uid":"7b5e-72"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-46"},{"uid":"7b5e-44"},{"uid":"7b5e-40"}]},"7b5e-40":{"id":"/src/util/util.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-41"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-96"},{"uid":"7b5e-99"},{"uid":"7b5e-102"},{"uid":"7b5e-36"},{"uid":"7b5e-34"},{"uid":"7b5e-38"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-46"},{"uid":"7b5e-48"},{"uid":"7b5e-44"}]},"7b5e-42":{"id":"/src/util/label.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-43"},"imported":[{"uid":"7b5e-83"},{"uid":"7b5e-34"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-44"}]},"7b5e-44":{"id":"/src/util/renderer.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-45"},"imported":[{"uid":"7b5e-88"},{"uid":"7b5e-102"},{"uid":"7b5e-72"},{"uid":"7b5e-38"},{"uid":"7b5e-42"},{"uid":"7b5e-6"},{"uid":"7b5e-40"},{"uid":"7b5e-34"},{"uid":"7b5e-64"},{"uid":"7b5e-75"}],"importedBy":[{"uid":"7b5e-73"},{"uid":"7b5e-46"}]},"7b5e-46":{"id":"/src/util/cell.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-47"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-100"},{"uid":"7b5e-72"},{"uid":"7b5e-40"},{"uid":"7b5e-38"},{"uid":"7b5e-44"},{"uid":"7b5e-75"}],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-48":{"id":"/src/util/combinators.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-49"},"imported":[{"uid":"7b5e-72"},{"uid":"7b5e-40"}],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-50":{"id":"/src/util/ids.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-51"},"imported":[],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-52":{"id":"/src/util/schema.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-53"},"imported":[{"uid":"7b5e-102"}],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-54":{"id":"/src/util/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-55"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-71"}],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-56":{"id":"/src/util/validator.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-57"},"imported":[{"uid":"7b5e-104"},{"uid":"7b5e-105"}],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-58":{"id":"/src/generators/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-59"},"imported":[{"uid":"7b5e-82"},{"uid":"7b5e-83"},{"uid":"7b5e-84"},{"uid":"7b5e-71"},{"uid":"7b5e-73"}],"importedBy":[{"uid":"7b5e-70"},{"uid":"7b5e-60"}]},"7b5e-60":{"id":"/src/generators/Generate.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-61"},"imported":[{"uid":"7b5e-0"},{"uid":"7b5e-58"}],"importedBy":[{"uid":"7b5e-70"}]},"7b5e-62":{"id":"/src/actions/actions.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-63"},"imported":[{"uid":"7b5e-70"}],"importedBy":[{"uid":"7b5e-64"}]},"7b5e-64":{"id":"/src/actions/index.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-65"},"imported":[{"uid":"7b5e-62"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-8"},{"uid":"7b5e-12"},{"uid":"7b5e-14"},{"uid":"7b5e-16"},{"uid":"7b5e-20"},{"uid":"7b5e-22"},{"uid":"7b5e-28"},{"uid":"7b5e-44"}]},"7b5e-66":{"id":"/src/Helpers.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-67"},"imported":[{"uid":"7b5e-73"}],"importedBy":[{"uid":"7b5e-68"}]},"7b5e-68":{"id":"/src/index.ts","moduleParts":{"jsonforms-core.esm.js":"7b5e-69"},"imported":[{"uid":"7b5e-64"},{"uid":"7b5e-70"},{"uid":"7b5e-71"},{"uid":"7b5e-72"},{"uid":"7b5e-26"},{"uid":"7b5e-73"},{"uid":"7b5e-66"},{"uid":"7b5e-74"},{"uid":"7b5e-75"}],"importedBy":[],"isEntry":true},"7b5e-70":{"id":"/src/generators/index.ts","moduleParts":{},"imported":[{"uid":"7b5e-60"},{"uid":"7b5e-0"},{"uid":"7b5e-58"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-62"},{"uid":"7b5e-30"}]},"7b5e-71":{"id":"/src/models/index.ts","moduleParts":{},"imported":[{"uid":"7b5e-2"},{"uid":"7b5e-76"},{"uid":"7b5e-77"},{"uid":"7b5e-78"},{"uid":"7b5e-4"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-58"},{"uid":"7b5e-38"},{"uid":"7b5e-54"},{"uid":"7b5e-18"}]},"7b5e-72":{"id":"/src/reducers/index.ts","moduleParts":{},"imported":[{"uid":"7b5e-8"},{"uid":"7b5e-12"},{"uid":"7b5e-14"},{"uid":"7b5e-16"},{"uid":"7b5e-20"},{"uid":"7b5e-30"},{"uid":"7b5e-22"},{"uid":"7b5e-32"},{"uid":"7b5e-28"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-30"},{"uid":"7b5e-46"},{"uid":"7b5e-48"},{"uid":"7b5e-44"},{"uid":"7b5e-38"},{"uid":"7b5e-18"}]},"7b5e-73":{"id":"/src/util/index.ts","moduleParts":{},"imported":[{"uid":"7b5e-6"},{"uid":"7b5e-46"},{"uid":"7b5e-48"},{"uid":"7b5e-79"},{"uid":"7b5e-50"},{"uid":"7b5e-42"},{"uid":"7b5e-34"},{"uid":"7b5e-44"},{"uid":"7b5e-36"},{"uid":"7b5e-38"},{"uid":"7b5e-52"},{"uid":"7b5e-80"},{"uid":"7b5e-54"},{"uid":"7b5e-40"},{"uid":"7b5e-56"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-66"},{"uid":"7b5e-58"},{"uid":"7b5e-14"},{"uid":"7b5e-24"},{"uid":"7b5e-18"}]},"7b5e-74":{"id":"/src/store.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-68"}]},"7b5e-75":{"id":"/src/i18n/index.ts","moduleParts":{},"imported":[{"uid":"7b5e-81"},{"uid":"7b5e-18"}],"importedBy":[{"uid":"7b5e-68"},{"uid":"7b5e-20"},{"uid":"7b5e-46"},{"uid":"7b5e-44"}]},"7b5e-76":{"id":"/src/models/jsonSchema.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-71"}]},"7b5e-77":{"id":"/src/models/jsonSchema4.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-71"}]},"7b5e-78":{"id":"/src/models/jsonSchema7.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-71"}]},"7b5e-79":{"id":"/src/util/Formatted.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-80":{"id":"/src/util/type.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-73"}]},"7b5e-81":{"id":"/src/i18n/i18nTypes.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-75"}]},"7b5e-82":{"id":"lodash/isEmpty","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-58"},{"uid":"7b5e-24"},{"uid":"7b5e-46"},{"uid":"7b5e-34"},{"uid":"7b5e-36"},{"uid":"7b5e-54"},{"uid":"7b5e-40"}],"isExternal":true},"7b5e-83":{"id":"lodash/startCase","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-58"},{"uid":"7b5e-42"}],"isExternal":true},"7b5e-84":{"id":"lodash/keys","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-58"}],"isExternal":true},"7b5e-85":{"id":"lodash/merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-12"}],"isExternal":true},"7b5e-86":{"id":"lodash/cloneDeep","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"}],"isExternal":true},"7b5e-87":{"id":"lodash/fp/set","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"}],"isExternal":true},"7b5e-88":{"id":"lodash/get","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"},{"uid":"7b5e-30"},{"uid":"7b5e-32"},{"uid":"7b5e-24"},{"uid":"7b5e-44"},{"uid":"7b5e-36"}],"isExternal":true},"7b5e-89":{"id":"lodash/filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"}],"isExternal":true},"7b5e-90":{"id":"lodash/isEqual","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"}],"isExternal":true},"7b5e-91":{"id":"lodash/isFunction","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-14"}],"isExternal":true},"7b5e-92":{"id":"lodash/maxBy","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-28"}],"isExternal":true},"7b5e-93":{"id":"lodash/remove","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-28"}],"isExternal":true},"7b5e-94":{"id":"lodash/endsWith","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"}],"isExternal":true},"7b5e-95":{"id":"lodash/last","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"}],"isExternal":true},"7b5e-96":{"id":"lodash/isArray","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"},{"uid":"7b5e-40"}],"isExternal":true},"7b5e-97":{"id":"lodash/reduce","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"}],"isExternal":true},"7b5e-98":{"id":"lodash/toPairs","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"}],"isExternal":true},"7b5e-99":{"id":"lodash/includes","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-24"},{"uid":"7b5e-40"}],"isExternal":true},"7b5e-100":{"id":"lodash/union","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-46"}],"isExternal":true},"7b5e-101":{"id":"lodash/range","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-34"}],"isExternal":true},"7b5e-102":{"id":"lodash/find","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-44"},{"uid":"7b5e-52"},{"uid":"7b5e-40"}],"isExternal":true},"7b5e-103":{"id":"lodash/has","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-38"}],"isExternal":true},"7b5e-104":{"id":"ajv","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-56"}],"isExternal":true},"7b5e-105":{"id":"ajv-formats","moduleParts":{},"imported":[],"importedBy":[{"uid":"7b5e-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;
@@ -24,7 +24,7 @@
24
24
  */
25
25
  import test from 'ava';
26
26
 
27
- import { transformPathToI18nPrefix } from '../../src';
27
+ import { ControlElement, getI18nKeyPrefixBySchema, i18nJsonSchema, transformPathToI18nPrefix } from '../../src';
28
28
 
29
29
  test('transformPathToI18nPrefix returns root when empty', t => {
30
30
  t.is(transformPathToI18nPrefix(''), 'root');
@@ -46,3 +46,43 @@ test('transformPathToI18nPrefix removes array indices', t => {
46
46
  t.is(transformPathToI18nPrefix('foo1.23.b2ar3.1.5.foo'), 'foo1.b2ar3.foo');
47
47
  t.is(transformPathToI18nPrefix('3'), 'root');
48
48
  });
49
+
50
+ test('getI18nKeyPrefixBySchema gets key from uischema over schema', t => {
51
+ const control: ControlElement = {
52
+ type: 'Control',
53
+ scope: '#/properties/foo',
54
+ i18n: 'controlFoo'
55
+ };
56
+ const schema: i18nJsonSchema = {
57
+ type: 'string',
58
+ i18n: 'schemaFoo'
59
+ }
60
+ t.is(getI18nKeyPrefixBySchema(schema, control), 'controlFoo');
61
+ });
62
+
63
+ test('getI18nKeyPrefixBySchema gets schema key for missing uischema key', t => {
64
+ const control: ControlElement = {
65
+ type: 'Control',
66
+ scope: '#/properties/foo',
67
+ };
68
+ const schema: i18nJsonSchema = {
69
+ type: 'string',
70
+ i18n: 'schemaFoo'
71
+ }
72
+ t.is(getI18nKeyPrefixBySchema(schema, control), 'schemaFoo');
73
+ });
74
+
75
+ test('getI18nKeyPrefixBySchema returns undefined for missing uischema and schema keys', t => {
76
+ const control: ControlElement = {
77
+ type: 'Control',
78
+ scope: '#/properties/foo',
79
+ };
80
+ const schema: i18nJsonSchema = {
81
+ type: 'string',
82
+ }
83
+ t.is(getI18nKeyPrefixBySchema(schema, control), undefined);
84
+ });
85
+
86
+ test('getI18nKeyPrefixBySchema returns undefined for undefined parameters', t => {
87
+ t.is(getI18nKeyPrefixBySchema(undefined, undefined), undefined);
88
+ });
@@ -1344,7 +1344,7 @@ test('mapStateToControlProps - i18n - translation via UI Schema i18n key', t =>
1344
1344
  };
1345
1345
  const state: JsonFormsState = createState(coreUISchema);
1346
1346
  state.jsonforms.i18n = defaultJsonFormsI18nState;
1347
- ownProps.uischema = {...ownProps.uischema, options: {i18n: 'my-key'}};
1347
+ ownProps.uischema = {...ownProps.uischema, i18n: 'my-key'};
1348
1348
  state.jsonforms.i18n.translate = (key: string, defaultMessage: string | undefined) => {
1349
1349
  switch(key){
1350
1350
  case 'my-key.label': return 'my label';