@jsonforms/core 3.0.0-beta.4 → 3.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/assets/js/search.json +1 -1
- package/docs/enums/ruleeffect.html +4 -4
- package/docs/globals.html +335 -110
- package/docs/index.html +43 -4
- package/docs/interfaces/andcondition.html +2 -2
- package/docs/interfaces/arraycontrolprops.html +21 -21
- package/docs/interfaces/arraylayoutprops.html +21 -21
- package/docs/interfaces/categorization.html +24 -16
- package/docs/interfaces/category.html +24 -16
- package/docs/interfaces/cellprops.html +12 -12
- package/docs/interfaces/combinatorrendererprops.html +18 -18
- package/docs/interfaces/composablecondition.html +2 -2
- package/docs/interfaces/condition.html +1 -1
- package/docs/interfaces/controlelement.html +21 -16
- package/docs/interfaces/controlprops.html +16 -16
- package/docs/interfaces/controlstate.html +2 -2
- package/docs/interfaces/controlwithdetailprops.html +17 -17
- package/docs/interfaces/dispatchcellprops.html +10 -10
- package/docs/interfaces/dispatchcellstateprops.html +10 -10
- package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
- package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
- package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
- package/docs/interfaces/enumcellprops.html +13 -13
- package/docs/interfaces/enumoption.html +2 -2
- package/docs/interfaces/grouplayout.html +24 -12
- package/docs/interfaces/horizontallayout.html +4 -4
- package/docs/interfaces/internationalizable.html +4 -10
- package/docs/interfaces/jsonformsprops.html +24 -9
- package/docs/interfaces/labelable.html +184 -0
- package/docs/interfaces/labeldescription.html +2 -2
- package/docs/interfaces/labeled.html +182 -0
- package/docs/interfaces/labelelement.html +22 -4
- package/docs/interfaces/labelprops.html +339 -0
- package/docs/interfaces/layout.html +4 -4
- package/docs/interfaces/layoutprops.html +25 -10
- package/docs/interfaces/leafcondition.html +9 -8
- package/docs/interfaces/orcondition.html +2 -2
- package/docs/interfaces/ownpropsofcell.html +9 -9
- package/docs/interfaces/ownpropsofcontrol.html +9 -9
- package/docs/interfaces/ownpropsofenum.html +1 -1
- package/docs/interfaces/ownpropsofenumcell.html +10 -10
- package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
- package/docs/interfaces/ownpropsoflabel.html +286 -0
- package/docs/interfaces/ownpropsoflayout.html +9 -9
- package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
- package/docs/interfaces/ownpropsofrenderer.html +11 -8
- package/docs/interfaces/rendererprops.html +9 -9
- 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/statepropsofarraycontrol.html +17 -17
- package/docs/interfaces/statepropsofarraylayout.html +17 -17
- package/docs/interfaces/statepropsofcell.html +11 -11
- package/docs/interfaces/statepropsofcombinator.html +17 -17
- package/docs/interfaces/statepropsofcontrol.html +15 -15
- package/docs/interfaces/statepropsofcontrolwithdetail.html +16 -16
- package/docs/interfaces/statepropsofenumcell.html +12 -12
- package/docs/interfaces/statepropsofjsonformsrenderer.html +23 -9
- package/docs/interfaces/statepropsoflabel.html +343 -0
- package/docs/interfaces/statepropsoflayout.html +24 -10
- package/docs/interfaces/statepropsofmasteritem.html +7 -7
- package/docs/interfaces/statepropsofrenderer.html +12 -9
- package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
- package/docs/interfaces/testercontext.html +184 -0
- package/docs/interfaces/uischemaelement.html +3 -3
- package/docs/interfaces/verticallayout.html +4 -4
- package/docs/interfaces/withclassname.html +1 -1
- package/lib/i18n/i18nUtil.d.ts +9 -4
- package/lib/jsonforms-core.cjs.js +103 -49
- package/lib/jsonforms-core.cjs.js.map +1 -1
- package/lib/jsonforms-core.esm.js +89 -52
- package/lib/jsonforms-core.esm.js.map +1 -1
- package/lib/models/uischema.d.ts +35 -27
- package/lib/reducers/i18n.d.ts +1 -1
- package/lib/testers/testers.d.ts +15 -6
- package/lib/util/renderer.d.ts +18 -1
- package/lib/util/runtime.d.ts +1 -2
- package/lib/util/util.d.ts +6 -6
- package/package.json +2 -2
- package/src/i18n/i18nUtil.ts +24 -7
- package/src/models/uischema.ts +50 -27
- package/src/reducers/i18n.ts +1 -1
- package/src/testers/testers.ts +44 -34
- package/src/util/path.ts +9 -5
- package/src/util/renderer.ts +61 -28
- package/src/util/runtime.ts +1 -1
- package/src/util/util.ts +8 -8
- package/stats.html +1 -1
- package/test/testers.test.ts +95 -23
- package/test/util/renderer.test.ts +105 -7
|
@@ -292,11 +292,13 @@ var RuleEffect;
|
|
|
292
292
|
RuleEffect["ENABLE"] = "ENABLE";
|
|
293
293
|
RuleEffect["DISABLE"] = "DISABLE";
|
|
294
294
|
})(RuleEffect || (RuleEffect = {}));
|
|
295
|
-
const isInternationalized = (element) =>
|
|
296
|
-
return typeof element === 'object' && element !== null && typeof element.i18n === 'string';
|
|
297
|
-
};
|
|
295
|
+
const isInternationalized = (element) => typeof element === 'object' && element !== null && typeof element.i18n === 'string';
|
|
298
296
|
const isGroup = (layout) => layout.type === 'Group';
|
|
299
297
|
const isLayout = (uischema) => uischema.elements !== undefined;
|
|
298
|
+
const isScopable = (obj) => obj && typeof obj === 'object';
|
|
299
|
+
const isScoped = (obj) => isScopable(obj) && typeof obj.scope === 'string';
|
|
300
|
+
const isLabelable = (obj) => obj && typeof obj === 'object';
|
|
301
|
+
const isLabeled = (obj) => isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);
|
|
300
302
|
|
|
301
303
|
const move = (array, index, delta) => {
|
|
302
304
|
const newIndex = index + delta;
|
|
@@ -686,6 +688,18 @@ const getCombinedErrorMessage = (errors, et, t, schema, uischema, path) => {
|
|
|
686
688
|
}
|
|
687
689
|
return formatErrorMessage(errors.map(error => et(error, t, uischema)));
|
|
688
690
|
};
|
|
691
|
+
const deriveLabelForUISchemaElement = (uischema, t) => {
|
|
692
|
+
if (uischema.label === false) {
|
|
693
|
+
return undefined;
|
|
694
|
+
}
|
|
695
|
+
if ((uischema.label === undefined || uischema.label === null || uischema.label === true) && !isInternationalized(uischema)) {
|
|
696
|
+
return undefined;
|
|
697
|
+
}
|
|
698
|
+
const stringifiedLabel = typeof uischema.label === 'string' ? uischema.label : JSON.stringify(uischema.label);
|
|
699
|
+
const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);
|
|
700
|
+
const i18nKey = typeof i18nKeyPrefix === 'string' ? `${i18nKeyPrefix}.label` : stringifiedLabel;
|
|
701
|
+
return t(i18nKey, stringifiedLabel, { uischema: uischema });
|
|
702
|
+
};
|
|
689
703
|
|
|
690
704
|
const defaultJsonFormsI18nState = {
|
|
691
705
|
locale: 'en',
|
|
@@ -759,7 +773,7 @@ const rendererReducer = (state = [], action) => {
|
|
|
759
773
|
|
|
760
774
|
const NOT_APPLICABLE = -1;
|
|
761
775
|
const isControl = (uischema) => !isEmpty(uischema) && uischema.scope !== undefined;
|
|
762
|
-
const schemaMatches = (predicate) => (uischema, schema,
|
|
776
|
+
const schemaMatches = (predicate) => (uischema, schema, context) => {
|
|
763
777
|
if (isEmpty(uischema) || !isControl(uischema)) {
|
|
764
778
|
return false;
|
|
765
779
|
}
|
|
@@ -772,27 +786,27 @@ const schemaMatches = (predicate) => (uischema, schema, rootSchema) => {
|
|
|
772
786
|
}
|
|
773
787
|
let currentDataSchema = schema;
|
|
774
788
|
if (hasType(schema, 'object')) {
|
|
775
|
-
currentDataSchema = resolveSchema(schema, schemaPath, rootSchema);
|
|
789
|
+
currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);
|
|
776
790
|
}
|
|
777
791
|
if (currentDataSchema === undefined) {
|
|
778
792
|
return false;
|
|
779
793
|
}
|
|
780
|
-
return predicate(currentDataSchema, rootSchema);
|
|
794
|
+
return predicate(currentDataSchema, context?.rootSchema);
|
|
781
795
|
};
|
|
782
|
-
const schemaSubPathMatches = (subPath, predicate) => (uischema, schema,
|
|
796
|
+
const schemaSubPathMatches = (subPath, predicate) => (uischema, schema, context) => {
|
|
783
797
|
if (isEmpty(uischema) || !isControl(uischema)) {
|
|
784
798
|
return false;
|
|
785
799
|
}
|
|
786
800
|
const schemaPath = uischema.scope;
|
|
787
801
|
let currentDataSchema = schema;
|
|
788
802
|
if (hasType(schema, 'object')) {
|
|
789
|
-
currentDataSchema = resolveSchema(schema, schemaPath, rootSchema);
|
|
803
|
+
currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);
|
|
790
804
|
}
|
|
791
805
|
currentDataSchema = get(currentDataSchema, subPath);
|
|
792
806
|
if (currentDataSchema === undefined) {
|
|
793
807
|
return false;
|
|
794
808
|
}
|
|
795
|
-
return predicate(currentDataSchema, rootSchema);
|
|
809
|
+
return predicate(currentDataSchema, context?.rootSchema);
|
|
796
810
|
};
|
|
797
811
|
const schemaTypeIs = (expectedType) => schemaMatches(schema => !isEmpty(schema) && hasType(schema, expectedType));
|
|
798
812
|
const formatIs = (expectedFormat) => schemaMatches(schema => !isEmpty(schema) &&
|
|
@@ -819,16 +833,16 @@ const scopeEndIs = (expected) => (uischema) => {
|
|
|
819
833
|
const schemaPath = uischema.scope;
|
|
820
834
|
return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected;
|
|
821
835
|
};
|
|
822
|
-
const and = (...testers) => (uischema, schema,
|
|
823
|
-
const or = (...testers) => (uischema, schema,
|
|
824
|
-
const rankWith = (rank, tester) => (uischema, schema,
|
|
825
|
-
if (tester(uischema, schema,
|
|
836
|
+
const and = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc && tester(uischema, schema, context), true);
|
|
837
|
+
const or = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc || tester(uischema, schema, context), false);
|
|
838
|
+
const rankWith = (rank, tester) => (uischema, schema, context) => {
|
|
839
|
+
if (tester(uischema, schema, context)) {
|
|
826
840
|
return rank;
|
|
827
841
|
}
|
|
828
842
|
return NOT_APPLICABLE;
|
|
829
843
|
};
|
|
830
|
-
const withIncreasedRank = (by, rankedTester) => (uischema, schema,
|
|
831
|
-
const rank = rankedTester(uischema, schema,
|
|
844
|
+
const withIncreasedRank = (by, rankedTester) => (uischema, schema, context) => {
|
|
845
|
+
const rank = rankedTester(uischema, schema, context);
|
|
832
846
|
if (rank === NOT_APPLICABLE) {
|
|
833
847
|
return NOT_APPLICABLE;
|
|
834
848
|
}
|
|
@@ -876,16 +890,13 @@ const traverse = (any, pred, rootSchema) => {
|
|
|
876
890
|
}
|
|
877
891
|
return false;
|
|
878
892
|
};
|
|
879
|
-
const isObjectArrayWithNesting = (uischema, schema,
|
|
880
|
-
if (!uiTypeIs('Control')(uischema, schema,
|
|
893
|
+
const isObjectArrayWithNesting = (uischema, schema, context) => {
|
|
894
|
+
if (!uiTypeIs('Control')(uischema, schema, context)) {
|
|
881
895
|
return false;
|
|
882
896
|
}
|
|
883
897
|
const schemaPath = uischema.scope;
|
|
884
|
-
const resolvedSchema = resolveSchema(schema, schemaPath, rootSchema ?? schema);
|
|
885
|
-
|
|
886
|
-
object: 2,
|
|
887
|
-
array: 1
|
|
888
|
-
};
|
|
898
|
+
const resolvedSchema = resolveSchema(schema, schemaPath, context?.rootSchema ?? schema);
|
|
899
|
+
let objectDepth = 0;
|
|
889
900
|
if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {
|
|
890
901
|
if (traverse(resolvedSchema.items, val => {
|
|
891
902
|
if (val === schema) {
|
|
@@ -894,16 +905,20 @@ const isObjectArrayWithNesting = (uischema, schema, rootSchema) => {
|
|
|
894
905
|
if (val.$ref !== undefined) {
|
|
895
906
|
return false;
|
|
896
907
|
}
|
|
897
|
-
if (
|
|
908
|
+
if (val.anyOf || val.oneOf) {
|
|
898
909
|
return true;
|
|
899
910
|
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
911
|
+
if (hasType(val, 'object')) {
|
|
912
|
+
objectDepth++;
|
|
913
|
+
if (objectDepth === 2) {
|
|
914
|
+
return true;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
if (hasType(val, 'array')) {
|
|
918
|
+
return true;
|
|
903
919
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
}, rootSchema)) {
|
|
920
|
+
return false;
|
|
921
|
+
}, context?.rootSchema)) {
|
|
907
922
|
return true;
|
|
908
923
|
}
|
|
909
924
|
if (uischema.options && uischema.options.detail) {
|
|
@@ -942,7 +957,7 @@ const hasCategory = (categorization) => {
|
|
|
942
957
|
.reduce((prev, curr) => prev && curr, true);
|
|
943
958
|
};
|
|
944
959
|
const categorizationHasCategory = (uischema) => hasCategory(uischema);
|
|
945
|
-
const not = (tester) => (uischema, schema,
|
|
960
|
+
const not = (tester) => (uischema, schema, context) => !tester(uischema, schema, context);
|
|
946
961
|
|
|
947
962
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
948
963
|
__proto__: null,
|
|
@@ -1093,11 +1108,14 @@ const toDataPath = (schemaPath) => {
|
|
|
1093
1108
|
return toDataPathSegments(schemaPath).join('.');
|
|
1094
1109
|
};
|
|
1095
1110
|
const composeWithUi = (scopableUi, path) => {
|
|
1111
|
+
if (!isScoped(scopableUi)) {
|
|
1112
|
+
return path ?? '';
|
|
1113
|
+
}
|
|
1096
1114
|
const segments = toDataPathSegments(scopableUi.scope);
|
|
1097
|
-
if (isEmpty(segments)
|
|
1098
|
-
return '';
|
|
1115
|
+
if (isEmpty(segments)) {
|
|
1116
|
+
return path ?? '';
|
|
1099
1117
|
}
|
|
1100
|
-
return
|
|
1118
|
+
return compose(path, segments.join('.'));
|
|
1101
1119
|
};
|
|
1102
1120
|
const encode = (segment) => segment?.replace(/~/g, '~0').replace(/\//g, '~1');
|
|
1103
1121
|
const decode = (pointerSegment) => pointerSegment?.replace(/~1/g, '/').replace(/~0/, '~');
|
|
@@ -1331,10 +1349,10 @@ const Resolve = {
|
|
|
1331
1349
|
schema: resolveSchema,
|
|
1332
1350
|
data: resolveData
|
|
1333
1351
|
};
|
|
1334
|
-
const
|
|
1352
|
+
const fromScoped = (scopable) => toDataPathSegments(scopable.scope).join('.');
|
|
1335
1353
|
const Paths = {
|
|
1336
1354
|
compose: compose,
|
|
1337
|
-
|
|
1355
|
+
fromScoped
|
|
1338
1356
|
};
|
|
1339
1357
|
const Runtime = {
|
|
1340
1358
|
isEnabled(uischema, data, ajv) {
|
|
@@ -1650,6 +1668,8 @@ const mapStateToLayoutProps = (state, ownProps) => {
|
|
|
1650
1668
|
const config = getConfig(state);
|
|
1651
1669
|
const enabled = isInherentlyEnabled(state, ownProps, uischema, undefined,
|
|
1652
1670
|
rootData, config);
|
|
1671
|
+
const t = getTranslator()(state);
|
|
1672
|
+
const label = isLabelable(uischema) ? deriveLabelForUISchemaElement(uischema, t) : undefined;
|
|
1653
1673
|
return {
|
|
1654
1674
|
...layoutDefaultProps,
|
|
1655
1675
|
renderers: ownProps.renderers || getRenderers(state),
|
|
@@ -1661,26 +1681,20 @@ const mapStateToLayoutProps = (state, ownProps) => {
|
|
|
1661
1681
|
uischema: ownProps.uischema,
|
|
1662
1682
|
schema: ownProps.schema,
|
|
1663
1683
|
direction: ownProps.direction ?? getDirection(uischema),
|
|
1664
|
-
config
|
|
1684
|
+
config,
|
|
1685
|
+
label
|
|
1665
1686
|
};
|
|
1666
1687
|
};
|
|
1667
1688
|
const mapStateToJsonFormsRendererProps = (state, ownProps) => {
|
|
1668
|
-
let uischema = ownProps.uischema;
|
|
1669
|
-
if (uischema === undefined) {
|
|
1670
|
-
if (ownProps.schema) {
|
|
1671
|
-
uischema = findUISchema(state.jsonforms.uischemas, ownProps.schema, undefined, ownProps.path, undefined, undefined, state.jsonforms.core.schema);
|
|
1672
|
-
}
|
|
1673
|
-
else {
|
|
1674
|
-
uischema = getUiSchema(state);
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
1689
|
return {
|
|
1678
|
-
renderers: ownProps.renderers || get(state.jsonforms, 'renderers')
|
|
1679
|
-
cells: ownProps.cells || get(state.jsonforms, 'cells')
|
|
1690
|
+
renderers: ownProps.renderers || get(state.jsonforms, 'renderers'),
|
|
1691
|
+
cells: ownProps.cells || get(state.jsonforms, 'cells'),
|
|
1680
1692
|
schema: ownProps.schema || getSchema(state),
|
|
1681
1693
|
rootSchema: getSchema(state),
|
|
1682
|
-
uischema: uischema,
|
|
1683
|
-
path: ownProps.path
|
|
1694
|
+
uischema: ownProps.uischema || getUiSchema(state),
|
|
1695
|
+
path: ownProps.path,
|
|
1696
|
+
enabled: ownProps.enabled,
|
|
1697
|
+
config: getConfig(state)
|
|
1684
1698
|
};
|
|
1685
1699
|
};
|
|
1686
1700
|
const controlDefaultProps = {
|
|
@@ -1688,7 +1702,7 @@ const controlDefaultProps = {
|
|
|
1688
1702
|
errors: []
|
|
1689
1703
|
};
|
|
1690
1704
|
const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
|
|
1691
|
-
const { data, schema, ...props } = mapStateToControlProps(state, ownProps);
|
|
1705
|
+
const { data, schema, rootSchema, ...props } = mapStateToControlProps(state, ownProps);
|
|
1692
1706
|
const ajv = state.jsonforms.core.ajv;
|
|
1693
1707
|
const structuralKeywords = [
|
|
1694
1708
|
'required',
|
|
@@ -1705,7 +1719,11 @@ const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
|
|
|
1705
1719
|
let indexOfFittingSchema;
|
|
1706
1720
|
for (let i = 0; i < schema[keyword]?.length; i++) {
|
|
1707
1721
|
try {
|
|
1708
|
-
|
|
1722
|
+
let _schema = schema[keyword][i];
|
|
1723
|
+
if (_schema.$ref) {
|
|
1724
|
+
_schema = Resolve.schema(rootSchema, _schema.$ref, rootSchema);
|
|
1725
|
+
}
|
|
1726
|
+
const valFn = ajv.compile(_schema);
|
|
1709
1727
|
valFn(data);
|
|
1710
1728
|
if (dataIsValid(valFn.errors)) {
|
|
1711
1729
|
indexOfFittingSchema = i;
|
|
@@ -1719,6 +1737,7 @@ const mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {
|
|
|
1719
1737
|
return {
|
|
1720
1738
|
data,
|
|
1721
1739
|
schema,
|
|
1740
|
+
rootSchema,
|
|
1722
1741
|
...props,
|
|
1723
1742
|
indexOfFittingSchema,
|
|
1724
1743
|
uischemas: getUISchemas(state)
|
|
@@ -1748,6 +1767,24 @@ const mapStateToArrayLayoutProps = (state, ownProps) => {
|
|
|
1748
1767
|
minItems: schema.minItems
|
|
1749
1768
|
};
|
|
1750
1769
|
};
|
|
1770
|
+
const mapStateToLabelProps = (state, props) => {
|
|
1771
|
+
const { uischema } = props;
|
|
1772
|
+
const visible = props.visible === undefined || hasShowRule(uischema)
|
|
1773
|
+
? isVisible(props.uischema, getData(state), props.path, getAjv(state))
|
|
1774
|
+
: props.visible;
|
|
1775
|
+
const text = uischema.text;
|
|
1776
|
+
const t = getTranslator()(state);
|
|
1777
|
+
const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);
|
|
1778
|
+
const i18nKey = i18nKeyPrefix ? `${i18nKeyPrefix}.text` : text ?? '';
|
|
1779
|
+
const i18nText = t(i18nKey, text, { uischema });
|
|
1780
|
+
return {
|
|
1781
|
+
text: i18nText,
|
|
1782
|
+
visible,
|
|
1783
|
+
config: getConfig(state),
|
|
1784
|
+
renderers: props.renderers || getRenderers(state),
|
|
1785
|
+
cells: props.cells || getCells(state),
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1751
1788
|
|
|
1752
1789
|
const mapStateToCellProps = (state, ownProps) => {
|
|
1753
1790
|
const { id, schema, path, uischema, renderers, cells } = ownProps;
|
|
@@ -2176,5 +2213,5 @@ const Helpers = {
|
|
|
2176
2213
|
convertToValidClassName
|
|
2177
2214
|
};
|
|
2178
2215
|
|
|
2179
|
-
export { ADD_CELL, ADD_DEFAULT_DATA, ADD_RENDERER, ADD_UI_SCHEMA, index as Actions, Draft4, Generate, Helpers, INIT, NOT_APPLICABLE, Paths, REMOVE_CELL, REMOVE_DEFAULT_DATA, REMOVE_RENDERER, REMOVE_UI_SCHEMA, Resolve, RuleEffect, Runtime, SET_AJV, SET_CONFIG, SET_LOCALE, SET_SCHEMA, SET_TRANSLATOR, SET_UISCHEMA, SET_VALIDATION_MODE, index$1 as Test, UPDATE_CORE, UPDATE_DATA, UPDATE_ERRORS, UPDATE_I18N, VALIDATE, and, categorizationHasCategory, cellReducer, clearAllIds, compose, compose as composePaths, composeWithUi, computeLabel, configReducer, controlDefaultProps, convertToValidClassName, coreReducer, createAjv, createCleanLabel, createCombinatorRenderInfos, createControlElement, createDefaultValue, createId, createLabelDescriptionFrom, decode, defaultDataReducer, defaultErrorTranslator, defaultJsonFormsI18nState, defaultMapDispatchToControlProps, defaultMapStateToEnumCellProps, defaultTranslator, deriveTypes, encode, enumToEnumOptionMapper, errorAt, errorsAt, evalEnablement, evalVisibility, extractAjv, extractData, extractDefaultData, extractSchema, extractUiSchema, fetchErrorTranslator, fetchLocale, fetchTranslator, findAllRefs, findMatchingUISchema, findUISchema, formatErrorMessage, formatIs, generateDefaultUISchema, generateJsonSchema, getAjv, getCells, getCombinedErrorMessage, getConfig, getControlPath, getData, getDefaultData, getErrorAt, getErrorTranslator, getFirstPrimitiveProp, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, getLocale, getRenderers, getSchema, getSubErrorsAt, getTranslator, getUISchemas, getUiSchema, hasCategory, hasEnableRule, hasShowRule, hasType, i18nReducer, init, isAllOfControl, isAnyOfControl, isArrayObjectControl, isBooleanControl, isCategorization, isCategory, isControl, isDateControl, isDateTimeControl, isDescriptionHidden, isEnabled, isEnumControl, isGroup, isInherentlyEnabled, isIntegerControl, isInternationalized, isLayout, isMultiLineControl, isNumberControl, isNumberFormatControl, isObjectArray, isObjectArrayControl, isObjectArrayWithNesting, isObjectControl, isOneOfControl, isOneOfEnumControl, isPrimitiveArrayControl, isRangeControl, isStringControl, isTimeControl, isVisible, iterateSchema, jsonFormsReducerConfig, layoutDefaultProps, mapDispatchToArrayControlProps, mapDispatchToCellProps, mapDispatchToControlProps, mapDispatchToMultiEnumProps, mapStateToAllOfProps, mapStateToAnyOfProps, mapStateToArrayControlProps, mapStateToArrayLayoutProps, mapStateToCellProps, mapStateToCombinatorRendererProps, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToDispatchCellProps, mapStateToEnumControlProps, mapStateToJsonFormsRendererProps, mapStateToLayoutProps, mapStateToMasterListItemProps, mapStateToMultiEnumControlProps, mapStateToOneOfEnumCellProps, mapStateToOneOfEnumControlProps, mapStateToOneOfProps, moveDown, moveUp, not, oneOfToEnumOptionMapper, optionIs, or, rankWith, registerCell, registerDefaultData, registerRenderer, registerUISchema, removeId, rendererReducer, resolveData, resolveSchema, schemaMatches, schemaSubPathMatches, schemaTypeIs, scopeEndIs, scopeEndsWith, setAjv, setConfig, setLocale, setReadonly, setSchema, setTranslator, setUISchema, setValidationMode, showAsRequired, subErrorsAt, toDataPath, toDataPathSegments, transformPathToI18nPrefix, uiTypeIs, uischemaRegistryReducer, unregisterCell, unregisterDefaultData, unregisterRenderer, unregisterUISchema, unsetReadonly, update, updateCore, updateErrors, updateI18n, validate, withIncreasedRank };
|
|
2216
|
+
export { ADD_CELL, ADD_DEFAULT_DATA, ADD_RENDERER, ADD_UI_SCHEMA, index as Actions, Draft4, Generate, Helpers, INIT, NOT_APPLICABLE, Paths, REMOVE_CELL, REMOVE_DEFAULT_DATA, REMOVE_RENDERER, REMOVE_UI_SCHEMA, Resolve, RuleEffect, Runtime, SET_AJV, SET_CONFIG, SET_LOCALE, SET_SCHEMA, SET_TRANSLATOR, SET_UISCHEMA, SET_VALIDATION_MODE, index$1 as Test, UPDATE_CORE, UPDATE_DATA, UPDATE_ERRORS, UPDATE_I18N, VALIDATE, and, categorizationHasCategory, cellReducer, clearAllIds, compose, compose as composePaths, composeWithUi, computeLabel, configReducer, controlDefaultProps, convertToValidClassName, coreReducer, createAjv, createCleanLabel, createCombinatorRenderInfos, createControlElement, createDefaultValue, createId, createLabelDescriptionFrom, decode, defaultDataReducer, defaultErrorTranslator, defaultJsonFormsI18nState, defaultMapDispatchToControlProps, defaultMapStateToEnumCellProps, defaultTranslator, deriveLabelForUISchemaElement, deriveTypes, encode, enumToEnumOptionMapper, errorAt, errorsAt, evalEnablement, evalVisibility, extractAjv, extractData, extractDefaultData, extractSchema, extractUiSchema, fetchErrorTranslator, fetchLocale, fetchTranslator, findAllRefs, findMatchingUISchema, findUISchema, formatErrorMessage, formatIs, generateDefaultUISchema, generateJsonSchema, getAjv, getCells, getCombinedErrorMessage, getConfig, getControlPath, getData, getDefaultData, getErrorAt, getErrorTranslator, getFirstPrimitiveProp, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, getLocale, getRenderers, getSchema, getSubErrorsAt, getTranslator, getUISchemas, getUiSchema, hasCategory, hasEnableRule, hasShowRule, hasType, i18nReducer, init, isAllOfControl, isAnyOfControl, isArrayObjectControl, isBooleanControl, isCategorization, isCategory, isControl, isDateControl, isDateTimeControl, isDescriptionHidden, isEnabled, isEnumControl, isGroup, isInherentlyEnabled, isIntegerControl, isInternationalized, isLabelable, isLabeled, isLayout, isMultiLineControl, isNumberControl, isNumberFormatControl, isObjectArray, isObjectArrayControl, isObjectArrayWithNesting, isObjectControl, isOneOfControl, isOneOfEnumControl, isPrimitiveArrayControl, isRangeControl, isScopable, isScoped, isStringControl, isTimeControl, isVisible, iterateSchema, jsonFormsReducerConfig, layoutDefaultProps, mapDispatchToArrayControlProps, mapDispatchToCellProps, mapDispatchToControlProps, mapDispatchToMultiEnumProps, mapStateToAllOfProps, mapStateToAnyOfProps, mapStateToArrayControlProps, mapStateToArrayLayoutProps, mapStateToCellProps, mapStateToCombinatorRendererProps, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToDispatchCellProps, mapStateToEnumControlProps, mapStateToJsonFormsRendererProps, mapStateToLabelProps, mapStateToLayoutProps, mapStateToMasterListItemProps, mapStateToMultiEnumControlProps, mapStateToOneOfEnumCellProps, mapStateToOneOfEnumControlProps, mapStateToOneOfProps, moveDown, moveUp, not, oneOfToEnumOptionMapper, optionIs, or, rankWith, registerCell, registerDefaultData, registerRenderer, registerUISchema, removeId, rendererReducer, resolveData, resolveSchema, schemaMatches, schemaSubPathMatches, schemaTypeIs, scopeEndIs, scopeEndsWith, setAjv, setConfig, setLocale, setReadonly, setSchema, setTranslator, setUISchema, setValidationMode, showAsRequired, subErrorsAt, toDataPath, toDataPathSegments, transformPathToI18nPrefix, uiTypeIs, uischemaRegistryReducer, unregisterCell, unregisterDefaultData, unregisterRenderer, unregisterUISchema, unsetReadonly, update, updateCore, updateErrors, updateI18n, validate, withIncreasedRank };
|
|
2180
2217
|
//# sourceMappingURL=jsonforms-core.esm.js.map
|