@jsonforms/core 3.0.0-beta.2 → 3.0.0-beta.5
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/README.md +11 -0
- package/docs/assets/js/search.json +1 -1
- package/docs/enums/ruleeffect.html +4 -4
- package/docs/globals.html +307 -89
- package/docs/index.html +47 -4
- package/docs/interfaces/addcellrendereraction.html +3 -3
- package/docs/interfaces/addrendereraction.html +3 -3
- package/docs/interfaces/adduischemaaction.html +3 -3
- package/docs/interfaces/andcondition.html +2 -2
- package/docs/interfaces/arraylayoutprops.html +2 -2
- package/docs/interfaces/categorization.html +24 -16
- package/docs/interfaces/category.html +24 -16
- package/docs/interfaces/combinatorrendererprops.html +6 -6
- package/docs/interfaces/composablecondition.html +2 -2
- package/docs/interfaces/condition.html +1 -1
- package/docs/interfaces/controlelement.html +38 -15
- package/docs/interfaces/grouplayout.html +24 -12
- package/docs/interfaces/horizontallayout.html +4 -4
- package/docs/interfaces/initactionoptions.html +14 -0
- package/docs/interfaces/internationalizable.html +158 -0
- package/docs/interfaces/jsonformscore.html +17 -3
- package/docs/interfaces/labeldescription.html +2 -2
- package/docs/interfaces/labeled.html +182 -0
- package/docs/interfaces/labelelement.html +4 -4
- package/docs/interfaces/lableable.html +184 -0
- package/docs/interfaces/layout.html +4 -4
- package/docs/interfaces/leafcondition.html +9 -8
- package/docs/interfaces/orcondition.html +2 -2
- package/docs/interfaces/registerdefaultdataaction.html +3 -3
- package/docs/interfaces/removecellrendereraction.html +3 -3
- package/docs/interfaces/removerendereraction.html +3 -3
- package/docs/interfaces/removeuischemaaction.html +2 -2
- package/docs/interfaces/rule.html +2 -2
- package/docs/interfaces/schemabasedcondition.html +9 -8
- package/docs/interfaces/scopable.html +3 -9
- package/docs/interfaces/scoped.html +183 -0
- package/docs/interfaces/setajvaction.html +2 -2
- package/docs/interfaces/setconfigaction.html +2 -2
- package/docs/interfaces/setlocaleaction.html +2 -2
- package/docs/interfaces/setschemaaction.html +2 -2
- package/docs/interfaces/settranslatoraction.html +3 -3
- package/docs/interfaces/setuischemaaction.html +2 -2
- package/docs/interfaces/setvalidationmodeaction.html +2 -2
- package/docs/interfaces/statepropsofarraylayout.html +2 -2
- package/docs/interfaces/statepropsofcombinator.html +6 -6
- package/docs/interfaces/uischemaelement.html +3 -3
- package/docs/interfaces/unregisterdefaultdataaction.html +2 -2
- package/docs/interfaces/updatei18naction.html +4 -4
- package/docs/interfaces/verticallayout.html +4 -4
- package/lib/actions/actions.d.ts +1 -0
- package/lib/jsonforms-core.cjs.js +74 -31
- package/lib/jsonforms-core.cjs.js.map +1 -1
- package/lib/jsonforms-core.esm.js +60 -29
- package/lib/jsonforms-core.esm.js.map +1 -1
- package/lib/models/uischema.d.ts +40 -23
- package/lib/reducers/core.d.ts +1 -0
- package/lib/util/runtime.d.ts +1 -2
- package/lib/util/util.d.ts +6 -6
- package/package.json +2 -2
- package/src/actions/actions.ts +1 -0
- package/src/i18n/i18nUtil.ts +10 -7
- package/src/models/uischema.ts +59 -23
- package/src/reducers/core.ts +30 -3
- package/src/testers/testers.ts +10 -13
- package/src/util/path.ts +9 -5
- package/src/util/renderer.ts +6 -3
- package/src/util/runtime.ts +1 -1
- package/src/util/util.ts +8 -8
- package/stats.html +1 -1
- package/test/i18n/i18nUtil.test.ts +41 -1
- package/test/reducers/core.test.ts +203 -1
- package/test/util/renderer.test.ts +1 -1
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":"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}};
|
|
3262
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"jsonforms-core.esm.js","children":[{"name":"src","children":[{"name":"generators","children":[{"uid":"3a16-1","name":"schema.ts"},{"uid":"3a16-59","name":"uischema.ts"},{"uid":"3a16-61","name":"Generate.ts"}]},{"name":"models","children":[{"uid":"3a16-3","name":"draft4.ts"},{"uid":"3a16-5","name":"uischema.ts"}]},{"name":"util","children":[{"uid":"3a16-7","name":"array.ts"},{"uid":"3a16-35","name":"path.ts"},{"uid":"3a16-37","name":"resolvers.ts"},{"uid":"3a16-39","name":"runtime.ts"},{"uid":"3a16-41","name":"util.ts"},{"uid":"3a16-43","name":"label.ts"},{"uid":"3a16-45","name":"renderer.ts"},{"uid":"3a16-47","name":"cell.ts"},{"uid":"3a16-49","name":"combinators.ts"},{"uid":"3a16-51","name":"ids.ts"},{"uid":"3a16-53","name":"schema.ts"},{"uid":"3a16-55","name":"uischema.ts"},{"uid":"3a16-57","name":"validator.ts"}]},{"name":"reducers","children":[{"uid":"3a16-9","name":"cells.ts"},{"uid":"3a16-13","name":"config.ts"},{"uid":"3a16-15","name":"core.ts"},{"uid":"3a16-17","name":"default-data.ts"},{"uid":"3a16-21","name":"i18n.ts"},{"uid":"3a16-23","name":"renderers.ts"},{"uid":"3a16-29","name":"uischemas.ts"},{"uid":"3a16-31","name":"reducers.ts"},{"uid":"3a16-33","name":"selectors.ts"}]},{"uid":"3a16-11","name":"configDefault.ts"},{"name":"i18n/i18nUtil.ts","uid":"3a16-19"},{"name":"testers","children":[{"uid":"3a16-25","name":"testers.ts"},{"uid":"3a16-27","name":"index.ts"}]},{"name":"actions","children":[{"uid":"3a16-63","name":"actions.ts"},{"uid":"3a16-65","name":"index.ts"}]},{"uid":"3a16-67","name":"Helpers.ts"},{"uid":"3a16-69","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"3a16-1":{"renderedLength":3843,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-0"},"3a16-3":{"renderedLength":4050,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-2"},"3a16-5":{"renderedLength":755,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-4"},"3a16-7":{"renderedLength":421,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-6"},"3a16-9":{"renderedLength":294,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-8"},"3a16-11":{"renderedLength":133,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-10"},"3a16-13":{"renderedLength":322,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-12"},"3a16-15":{"renderedLength":10156,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-14"},"3a16-17":{"renderedLength":434,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-16"},"3a16-19":{"renderedLength":2075,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-18"},"3a16-21":{"renderedLength":1754,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-20"},"3a16-23":{"renderedLength":370,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-22"},"3a16-25":{"renderedLength":8391,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-24"},"3a16-27":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-26"},"3a16-29":{"renderedLength":783,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-28"},"3a16-31":{"renderedLength":1846,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-30"},"3a16-33":{"renderedLength":573,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-32"},"3a16-35":{"renderedLength":1333,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-34"},"3a16-37":{"renderedLength":3040,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-36"},"3a16-39":{"renderedLength":3621,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-38"},"3a16-41":{"renderedLength":1498,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-40"},"3a16-43":{"renderedLength":1289,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-42"},"3a16-45":{"renderedLength":13284,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-44"},"3a16-47":{"renderedLength":2622,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-46"},"3a16-49":{"renderedLength":671,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-48"},"3a16-51":{"renderedLength":621,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-50"},"3a16-53":{"renderedLength":365,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-52"},"3a16-55":{"renderedLength":609,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-54"},"3a16-57":{"renderedLength":196,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-56"},"3a16-59":{"renderedLength":3310,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-58"},"3a16-61":{"renderedLength":137,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-60"},"3a16-63":{"renderedLength":3051,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-62"},"3a16-65":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-64"},"3a16-67":{"renderedLength":80,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-66"},"3a16-69":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"3a16-68"}},"nodeMetas":{"3a16-0":{"id":"/src/generators/schema.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-1"},"imported":[],"importedBy":[{"uid":"3a16-70"},{"uid":"3a16-60"}]},"3a16-2":{"id":"/src/models/draft4.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-3"},"imported":[],"importedBy":[{"uid":"3a16-71"}]},"3a16-4":{"id":"/src/models/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-5"},"imported":[],"importedBy":[{"uid":"3a16-71"}]},"3a16-6":{"id":"/src/util/array.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-7"},"imported":[],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-44"}]},"3a16-8":{"id":"/src/reducers/cells.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-9"},"imported":[{"uid":"3a16-64"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"}]},"3a16-10":{"id":"/src/configDefault.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-11"},"imported":[],"importedBy":[{"uid":"3a16-12"}]},"3a16-12":{"id":"/src/reducers/config.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-13"},"imported":[{"uid":"3a16-85"},{"uid":"3a16-64"},{"uid":"3a16-10"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"}]},"3a16-14":{"id":"/src/reducers/core.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-15"},"imported":[{"uid":"3a16-86"},{"uid":"3a16-87"},{"uid":"3a16-88"},{"uid":"3a16-89"},{"uid":"3a16-90"},{"uid":"3a16-91"},{"uid":"3a16-64"},{"uid":"3a16-73"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"},{"uid":"3a16-32"}]},"3a16-16":{"id":"/src/reducers/default-data.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-17"},"imported":[{"uid":"3a16-64"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"},{"uid":"3a16-32"}]},"3a16-18":{"id":"/src/i18n/i18nUtil.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-19"},"imported":[{"uid":"3a16-71"},{"uid":"3a16-72"},{"uid":"3a16-73"}],"importedBy":[{"uid":"3a16-75"}]},"3a16-20":{"id":"/src/reducers/i18n.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-21"},"imported":[{"uid":"3a16-75"},{"uid":"3a16-64"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"}]},"3a16-22":{"id":"/src/reducers/renderers.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-23"},"imported":[{"uid":"3a16-64"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"}]},"3a16-24":{"id":"/src/testers/testers.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-25"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-88"},{"uid":"3a16-94"},{"uid":"3a16-95"},{"uid":"3a16-96"},{"uid":"3a16-97"},{"uid":"3a16-98"},{"uid":"3a16-99"},{"uid":"3a16-73"}],"importedBy":[{"uid":"3a16-26"}]},"3a16-26":{"id":"/src/testers/index.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-27"},"imported":[{"uid":"3a16-24"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-28"}]},"3a16-28":{"id":"/src/reducers/uischemas.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-29"},"imported":[{"uid":"3a16-92"},{"uid":"3a16-93"},{"uid":"3a16-64"},{"uid":"3a16-26"}],"importedBy":[{"uid":"3a16-72"},{"uid":"3a16-30"}]},"3a16-30":{"id":"/src/reducers/reducers.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-31"},"imported":[{"uid":"3a16-14"},{"uid":"3a16-16"},{"uid":"3a16-22"},{"uid":"3a16-28"},{"uid":"3a16-20"},{"uid":"3a16-70"},{"uid":"3a16-8"},{"uid":"3a16-12"},{"uid":"3a16-88"},{"uid":"3a16-72"}],"importedBy":[{"uid":"3a16-72"}]},"3a16-32":{"id":"/src/reducers/selectors.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-33"},"imported":[{"uid":"3a16-88"},{"uid":"3a16-14"},{"uid":"3a16-16"}],"importedBy":[{"uid":"3a16-72"}]},"3a16-34":{"id":"/src/util/path.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-35"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-101"},{"uid":"3a16-71"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-42"},{"uid":"3a16-44"},{"uid":"3a16-36"},{"uid":"3a16-38"},{"uid":"3a16-40"}]},"3a16-36":{"id":"/src/util/resolvers.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-37"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-88"},{"uid":"3a16-34"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-38"},{"uid":"3a16-40"}]},"3a16-38":{"id":"/src/util/runtime.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-39"},"imported":[{"uid":"3a16-103"},{"uid":"3a16-71"},{"uid":"3a16-36"},{"uid":"3a16-34"},{"uid":"3a16-72"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-46"},{"uid":"3a16-44"},{"uid":"3a16-40"}]},"3a16-40":{"id":"/src/util/util.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-41"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-96"},{"uid":"3a16-99"},{"uid":"3a16-102"},{"uid":"3a16-36"},{"uid":"3a16-34"},{"uid":"3a16-38"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-46"},{"uid":"3a16-48"},{"uid":"3a16-44"}]},"3a16-42":{"id":"/src/util/label.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-43"},"imported":[{"uid":"3a16-83"},{"uid":"3a16-34"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-44"}]},"3a16-44":{"id":"/src/util/renderer.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-45"},"imported":[{"uid":"3a16-88"},{"uid":"3a16-102"},{"uid":"3a16-72"},{"uid":"3a16-38"},{"uid":"3a16-42"},{"uid":"3a16-6"},{"uid":"3a16-40"},{"uid":"3a16-34"},{"uid":"3a16-64"},{"uid":"3a16-75"}],"importedBy":[{"uid":"3a16-73"},{"uid":"3a16-46"}]},"3a16-46":{"id":"/src/util/cell.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-47"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-100"},{"uid":"3a16-72"},{"uid":"3a16-40"},{"uid":"3a16-38"},{"uid":"3a16-44"},{"uid":"3a16-75"}],"importedBy":[{"uid":"3a16-73"}]},"3a16-48":{"id":"/src/util/combinators.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-49"},"imported":[{"uid":"3a16-72"},{"uid":"3a16-40"}],"importedBy":[{"uid":"3a16-73"}]},"3a16-50":{"id":"/src/util/ids.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-51"},"imported":[],"importedBy":[{"uid":"3a16-73"}]},"3a16-52":{"id":"/src/util/schema.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-53"},"imported":[{"uid":"3a16-102"}],"importedBy":[{"uid":"3a16-73"}]},"3a16-54":{"id":"/src/util/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-55"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-71"}],"importedBy":[{"uid":"3a16-73"}]},"3a16-56":{"id":"/src/util/validator.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-57"},"imported":[{"uid":"3a16-104"},{"uid":"3a16-105"}],"importedBy":[{"uid":"3a16-73"}]},"3a16-58":{"id":"/src/generators/uischema.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-59"},"imported":[{"uid":"3a16-82"},{"uid":"3a16-83"},{"uid":"3a16-84"},{"uid":"3a16-71"},{"uid":"3a16-73"}],"importedBy":[{"uid":"3a16-70"},{"uid":"3a16-60"}]},"3a16-60":{"id":"/src/generators/Generate.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-61"},"imported":[{"uid":"3a16-0"},{"uid":"3a16-58"}],"importedBy":[{"uid":"3a16-70"}]},"3a16-62":{"id":"/src/actions/actions.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-63"},"imported":[{"uid":"3a16-70"}],"importedBy":[{"uid":"3a16-64"}]},"3a16-64":{"id":"/src/actions/index.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-65"},"imported":[{"uid":"3a16-62"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-8"},{"uid":"3a16-12"},{"uid":"3a16-14"},{"uid":"3a16-16"},{"uid":"3a16-20"},{"uid":"3a16-22"},{"uid":"3a16-28"},{"uid":"3a16-44"}]},"3a16-66":{"id":"/src/Helpers.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-67"},"imported":[{"uid":"3a16-73"}],"importedBy":[{"uid":"3a16-68"}]},"3a16-68":{"id":"/src/index.ts","moduleParts":{"jsonforms-core.esm.js":"3a16-69"},"imported":[{"uid":"3a16-64"},{"uid":"3a16-70"},{"uid":"3a16-71"},{"uid":"3a16-72"},{"uid":"3a16-26"},{"uid":"3a16-73"},{"uid":"3a16-66"},{"uid":"3a16-74"},{"uid":"3a16-75"}],"importedBy":[],"isEntry":true},"3a16-70":{"id":"/src/generators/index.ts","moduleParts":{},"imported":[{"uid":"3a16-60"},{"uid":"3a16-0"},{"uid":"3a16-58"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-62"},{"uid":"3a16-30"}]},"3a16-71":{"id":"/src/models/index.ts","moduleParts":{},"imported":[{"uid":"3a16-2"},{"uid":"3a16-76"},{"uid":"3a16-77"},{"uid":"3a16-78"},{"uid":"3a16-4"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-58"},{"uid":"3a16-34"},{"uid":"3a16-38"},{"uid":"3a16-54"},{"uid":"3a16-18"}]},"3a16-72":{"id":"/src/reducers/index.ts","moduleParts":{},"imported":[{"uid":"3a16-8"},{"uid":"3a16-12"},{"uid":"3a16-14"},{"uid":"3a16-16"},{"uid":"3a16-20"},{"uid":"3a16-30"},{"uid":"3a16-22"},{"uid":"3a16-32"},{"uid":"3a16-28"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-30"},{"uid":"3a16-46"},{"uid":"3a16-48"},{"uid":"3a16-44"},{"uid":"3a16-38"},{"uid":"3a16-18"}]},"3a16-73":{"id":"/src/util/index.ts","moduleParts":{},"imported":[{"uid":"3a16-6"},{"uid":"3a16-46"},{"uid":"3a16-48"},{"uid":"3a16-79"},{"uid":"3a16-50"},{"uid":"3a16-42"},{"uid":"3a16-34"},{"uid":"3a16-44"},{"uid":"3a16-36"},{"uid":"3a16-38"},{"uid":"3a16-52"},{"uid":"3a16-80"},{"uid":"3a16-54"},{"uid":"3a16-40"},{"uid":"3a16-56"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-66"},{"uid":"3a16-58"},{"uid":"3a16-14"},{"uid":"3a16-24"},{"uid":"3a16-18"}]},"3a16-74":{"id":"/src/store.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-68"}]},"3a16-75":{"id":"/src/i18n/index.ts","moduleParts":{},"imported":[{"uid":"3a16-81"},{"uid":"3a16-18"}],"importedBy":[{"uid":"3a16-68"},{"uid":"3a16-20"},{"uid":"3a16-46"},{"uid":"3a16-44"}]},"3a16-76":{"id":"/src/models/jsonSchema.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-71"}]},"3a16-77":{"id":"/src/models/jsonSchema4.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-71"}]},"3a16-78":{"id":"/src/models/jsonSchema7.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-71"}]},"3a16-79":{"id":"/src/util/Formatted.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-73"}]},"3a16-80":{"id":"/src/util/type.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-73"}]},"3a16-81":{"id":"/src/i18n/i18nTypes.ts","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-75"}]},"3a16-82":{"id":"lodash/isEmpty","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-58"},{"uid":"3a16-24"},{"uid":"3a16-46"},{"uid":"3a16-34"},{"uid":"3a16-36"},{"uid":"3a16-54"},{"uid":"3a16-40"}],"isExternal":true},"3a16-83":{"id":"lodash/startCase","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-58"},{"uid":"3a16-42"}],"isExternal":true},"3a16-84":{"id":"lodash/keys","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-58"}],"isExternal":true},"3a16-85":{"id":"lodash/merge","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-12"}],"isExternal":true},"3a16-86":{"id":"lodash/cloneDeep","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"}],"isExternal":true},"3a16-87":{"id":"lodash/fp/set","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"}],"isExternal":true},"3a16-88":{"id":"lodash/get","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"},{"uid":"3a16-30"},{"uid":"3a16-32"},{"uid":"3a16-24"},{"uid":"3a16-44"},{"uid":"3a16-36"}],"isExternal":true},"3a16-89":{"id":"lodash/filter","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"}],"isExternal":true},"3a16-90":{"id":"lodash/isEqual","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"}],"isExternal":true},"3a16-91":{"id":"lodash/isFunction","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-14"}],"isExternal":true},"3a16-92":{"id":"lodash/maxBy","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-28"}],"isExternal":true},"3a16-93":{"id":"lodash/remove","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-28"}],"isExternal":true},"3a16-94":{"id":"lodash/endsWith","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"}],"isExternal":true},"3a16-95":{"id":"lodash/last","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"}],"isExternal":true},"3a16-96":{"id":"lodash/isArray","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"},{"uid":"3a16-40"}],"isExternal":true},"3a16-97":{"id":"lodash/reduce","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"}],"isExternal":true},"3a16-98":{"id":"lodash/toPairs","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"}],"isExternal":true},"3a16-99":{"id":"lodash/includes","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-24"},{"uid":"3a16-40"}],"isExternal":true},"3a16-100":{"id":"lodash/union","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-46"}],"isExternal":true},"3a16-101":{"id":"lodash/range","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-34"}],"isExternal":true},"3a16-102":{"id":"lodash/find","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-44"},{"uid":"3a16-52"},{"uid":"3a16-40"}],"isExternal":true},"3a16-103":{"id":"lodash/has","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-38"}],"isExternal":true},"3a16-104":{"id":"ajv","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-56"}],"isExternal":true},"3a16-105":{"id":"ajv-formats","moduleParts":{},"imported":[],"importedBy":[{"uid":"3a16-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
|
+
});
|
|
@@ -133,6 +133,15 @@ test('core reducer - previous state - init without options should keep previous
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
const myAjv = new Ajv();
|
|
136
|
+
const additionalErrors = [{
|
|
137
|
+
instancePath: '',
|
|
138
|
+
dataPath: '',
|
|
139
|
+
schemaPath: '#/required',
|
|
140
|
+
keyword: 'required',
|
|
141
|
+
params: {
|
|
142
|
+
missingProperty: 'foo'
|
|
143
|
+
},
|
|
144
|
+
}];
|
|
136
145
|
const after = coreReducer(
|
|
137
146
|
{
|
|
138
147
|
data: {},
|
|
@@ -141,10 +150,12 @@ test('core reducer - previous state - init without options should keep previous
|
|
|
141
150
|
type: 'Label'
|
|
142
151
|
},
|
|
143
152
|
ajv: myAjv,
|
|
153
|
+
additionalErrors
|
|
144
154
|
},
|
|
145
155
|
init({}, schema)
|
|
146
156
|
);
|
|
147
157
|
t.deepEqual(after.ajv, myAjv);
|
|
158
|
+
t.deepEqual(after.additionalErrors, additionalErrors);
|
|
148
159
|
});
|
|
149
160
|
|
|
150
161
|
test('core reducer - previous state - init with ajv options object should overwrite ajv', t => {
|
|
@@ -173,6 +184,49 @@ test('core reducer - previous state - init with ajv options object should overwr
|
|
|
173
184
|
t.deepEqual(after.ajv, newAjv);
|
|
174
185
|
});
|
|
175
186
|
|
|
187
|
+
test('core reducer - previous state - init with additionalErrors option object should overwrite additionalErrors', t => {
|
|
188
|
+
const schema: JsonSchema = {
|
|
189
|
+
type: 'object',
|
|
190
|
+
properties: {
|
|
191
|
+
foo: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
const: 'bar'
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const prevAdditionalErrors = [{
|
|
199
|
+
instancePath: '',
|
|
200
|
+
dataPath: '',
|
|
201
|
+
schemaPath: '#/required',
|
|
202
|
+
keyword: 'required',
|
|
203
|
+
params: {
|
|
204
|
+
missingProperty: 'foo'
|
|
205
|
+
},
|
|
206
|
+
}];
|
|
207
|
+
const currentAdditionalErrors = [{
|
|
208
|
+
instancePath: '',
|
|
209
|
+
dataPath: '',
|
|
210
|
+
schemaPath: '#/required',
|
|
211
|
+
keyword: 'required',
|
|
212
|
+
params: {
|
|
213
|
+
missingProperty: 'bar'
|
|
214
|
+
},
|
|
215
|
+
}];
|
|
216
|
+
const after = coreReducer(
|
|
217
|
+
{
|
|
218
|
+
data: {},
|
|
219
|
+
schema: {},
|
|
220
|
+
uischema: {
|
|
221
|
+
type: 'Label'
|
|
222
|
+
},
|
|
223
|
+
additionalErrors: prevAdditionalErrors
|
|
224
|
+
},
|
|
225
|
+
init({}, schema, undefined, { additionalErrors: currentAdditionalErrors })
|
|
226
|
+
);
|
|
227
|
+
t.deepEqual(after.additionalErrors, currentAdditionalErrors);
|
|
228
|
+
});
|
|
229
|
+
|
|
176
230
|
test('core reducer - previous state - init with empty options should not overwrite', t => {
|
|
177
231
|
const schema: JsonSchema = {
|
|
178
232
|
type: 'object',
|
|
@@ -184,6 +238,15 @@ test('core reducer - previous state - init with empty options should not overwri
|
|
|
184
238
|
}
|
|
185
239
|
};
|
|
186
240
|
const myAjv = new Ajv();
|
|
241
|
+
const additionalErrors = [{
|
|
242
|
+
instancePath: '',
|
|
243
|
+
dataPath: '',
|
|
244
|
+
schemaPath: '#/required',
|
|
245
|
+
keyword: 'required',
|
|
246
|
+
params: {
|
|
247
|
+
missingProperty: 'foo'
|
|
248
|
+
},
|
|
249
|
+
}];
|
|
187
250
|
const after = coreReducer(
|
|
188
251
|
{
|
|
189
252
|
data: {},
|
|
@@ -192,10 +255,12 @@ test('core reducer - previous state - init with empty options should not overwri
|
|
|
192
255
|
type: 'Label'
|
|
193
256
|
},
|
|
194
257
|
ajv: myAjv,
|
|
258
|
+
additionalErrors
|
|
195
259
|
},
|
|
196
260
|
init({}, schema, undefined, {})
|
|
197
261
|
);
|
|
198
262
|
t.deepEqual(after.ajv, myAjv);
|
|
263
|
+
t.deepEqual(after.additionalErrors, additionalErrors);
|
|
199
264
|
});
|
|
200
265
|
|
|
201
266
|
test('core reducer - previous state - init with undefined data should not change data', t => {
|
|
@@ -1181,6 +1246,108 @@ test('errorAt respects hide validation mode', t => {
|
|
|
1181
1246
|
t.is(errorAt('animal', schema)(core).length, 0);
|
|
1182
1247
|
})
|
|
1183
1248
|
|
|
1249
|
+
test('errorAt contains additionalErrors', t => {
|
|
1250
|
+
const schema = {
|
|
1251
|
+
type: 'object',
|
|
1252
|
+
properties: {
|
|
1253
|
+
animal: {
|
|
1254
|
+
type: 'string'
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
const data = {
|
|
1260
|
+
animal: 100
|
|
1261
|
+
};
|
|
1262
|
+
|
|
1263
|
+
const additionalErrors = [{
|
|
1264
|
+
instancePath: '',
|
|
1265
|
+
dataPath: '',
|
|
1266
|
+
schemaPath: '#/required',
|
|
1267
|
+
keyword: 'required',
|
|
1268
|
+
params: {
|
|
1269
|
+
missingProperty: 'animal'
|
|
1270
|
+
},
|
|
1271
|
+
}];
|
|
1272
|
+
const core: JsonFormsCore = coreReducer(
|
|
1273
|
+
undefined,
|
|
1274
|
+
init(data, schema, undefined, { additionalErrors })
|
|
1275
|
+
);
|
|
1276
|
+
t.is(core.errors.length, 1);
|
|
1277
|
+
t.is(core.additionalErrors.length, 1);
|
|
1278
|
+
const errorsAt = errorAt('animal', schema)(core);
|
|
1279
|
+
t.is(errorsAt.length, 2);
|
|
1280
|
+
t.true(errorsAt.indexOf(additionalErrors[0]) > -1);
|
|
1281
|
+
});
|
|
1282
|
+
|
|
1283
|
+
test('errorAt contains additionalErrors for validation mode NoValidation ', t => {
|
|
1284
|
+
const schema = {
|
|
1285
|
+
type: 'object',
|
|
1286
|
+
properties: {
|
|
1287
|
+
animal: {
|
|
1288
|
+
type: 'string'
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
const data = {
|
|
1294
|
+
animal: 100
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
const additionalErrors = [{
|
|
1298
|
+
instancePath: '',
|
|
1299
|
+
dataPath: '',
|
|
1300
|
+
schemaPath: '#/required',
|
|
1301
|
+
keyword: 'required',
|
|
1302
|
+
params: {
|
|
1303
|
+
missingProperty: 'animal'
|
|
1304
|
+
},
|
|
1305
|
+
}];
|
|
1306
|
+
const core: JsonFormsCore = coreReducer(
|
|
1307
|
+
undefined,
|
|
1308
|
+
init(data, schema, undefined, { additionalErrors, validationMode: 'NoValidation' })
|
|
1309
|
+
);
|
|
1310
|
+
t.is(core.errors.length, 0);
|
|
1311
|
+
t.is(core.additionalErrors.length, 1);
|
|
1312
|
+
const errorsAt = errorAt('animal', schema)(core);
|
|
1313
|
+
t.is(errorsAt.length, 1);
|
|
1314
|
+
t.is(errorsAt.indexOf(additionalErrors[0]), 0);
|
|
1315
|
+
});
|
|
1316
|
+
|
|
1317
|
+
test('errorAt contains additionalErrors for validation mode ValidateAndHide ', t => {
|
|
1318
|
+
const schema = {
|
|
1319
|
+
type: 'object',
|
|
1320
|
+
properties: {
|
|
1321
|
+
animal: {
|
|
1322
|
+
type: 'string'
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
};
|
|
1326
|
+
|
|
1327
|
+
const data = {
|
|
1328
|
+
animal: 100
|
|
1329
|
+
};
|
|
1330
|
+
|
|
1331
|
+
const additionalErrors = [{
|
|
1332
|
+
instancePath: '',
|
|
1333
|
+
dataPath: '',
|
|
1334
|
+
schemaPath: '#/required',
|
|
1335
|
+
keyword: 'required',
|
|
1336
|
+
params: {
|
|
1337
|
+
missingProperty: 'animal'
|
|
1338
|
+
},
|
|
1339
|
+
}];
|
|
1340
|
+
const core: JsonFormsCore = coreReducer(
|
|
1341
|
+
undefined,
|
|
1342
|
+
init(data, schema, undefined, { additionalErrors, validationMode: 'ValidateAndHide' })
|
|
1343
|
+
);
|
|
1344
|
+
t.is(core.errors.length, 1);
|
|
1345
|
+
t.is(core.additionalErrors.length, 1);
|
|
1346
|
+
const errorsAt = errorAt('animal', schema)(core);
|
|
1347
|
+
t.is(errorsAt.length, 1);
|
|
1348
|
+
t.is(errorsAt.indexOf(additionalErrors[0]), 0);
|
|
1349
|
+
});
|
|
1350
|
+
|
|
1184
1351
|
test('core reducer - setValidationMode - No validation should not produce errors', t => {
|
|
1185
1352
|
const schema = {
|
|
1186
1353
|
type: 'object',
|
|
@@ -1424,7 +1591,7 @@ test('core reducer - update core - unchanged state properties should be unchange
|
|
|
1424
1591
|
before,
|
|
1425
1592
|
updateCore({
|
|
1426
1593
|
animal: 'cat'
|
|
1427
|
-
}, before.schema, before.uischema, before.ajv)
|
|
1594
|
+
}, before.schema, before.uischema, { ajv: before.ajv, additionalErrors: before.additionalErrors })
|
|
1428
1595
|
);
|
|
1429
1596
|
t.true(before.schema === afterDataUpdate.schema);
|
|
1430
1597
|
t.true(before.ajv === afterDataUpdate.ajv);
|
|
@@ -1432,6 +1599,7 @@ test('core reducer - update core - unchanged state properties should be unchange
|
|
|
1432
1599
|
t.true(before.uischema === afterDataUpdate.uischema);
|
|
1433
1600
|
t.true(before.validationMode === afterDataUpdate.validationMode);
|
|
1434
1601
|
t.true(before.validator === afterDataUpdate.validator);
|
|
1602
|
+
t.true(before.additionalErrors === afterDataUpdate.additionalErrors);
|
|
1435
1603
|
|
|
1436
1604
|
const updatedSchema = {
|
|
1437
1605
|
type: 'object',
|
|
@@ -1452,6 +1620,40 @@ test('core reducer - update core - unchanged state properties should be unchange
|
|
|
1452
1620
|
t.true(before.data === afterSchemaUpdate.data);
|
|
1453
1621
|
});
|
|
1454
1622
|
|
|
1623
|
+
test('core reducer - update core - additionalErrors should update', t => {
|
|
1624
|
+
const schema = {
|
|
1625
|
+
type: 'object',
|
|
1626
|
+
properties: {
|
|
1627
|
+
animal: {
|
|
1628
|
+
type: 'string'
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
|
|
1633
|
+
const data = {
|
|
1634
|
+
animal: 'dog'
|
|
1635
|
+
};
|
|
1636
|
+
const before: JsonFormsCore = coreReducer(
|
|
1637
|
+
undefined,
|
|
1638
|
+
init(data, schema, undefined, { additionalErrors: [] })
|
|
1639
|
+
);
|
|
1640
|
+
|
|
1641
|
+
const additionalErrors = [{
|
|
1642
|
+
instancePath: '',
|
|
1643
|
+
dataPath: '',
|
|
1644
|
+
schemaPath: '#/required',
|
|
1645
|
+
keyword: 'required',
|
|
1646
|
+
params: {
|
|
1647
|
+
missingProperty: 'animal'
|
|
1648
|
+
},
|
|
1649
|
+
}];
|
|
1650
|
+
const after: JsonFormsCore = coreReducer(
|
|
1651
|
+
before,
|
|
1652
|
+
updateCore(before.data, before.schema, before.uischema, { additionalErrors })
|
|
1653
|
+
);
|
|
1654
|
+
t.true(after.additionalErrors === additionalErrors);
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1455
1657
|
test('core reducer - setSchema - schema with id', t => {
|
|
1456
1658
|
const schema: JsonSchema = {
|
|
1457
1659
|
$id: 'https://www.jsonforms.io/example.json',
|
|
@@ -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,
|
|
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';
|