@jsonforms/core 3.0.0-beta.3 → 3.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) 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 +371 -115
  5. package/docs/index.html +59 -4
  6. package/docs/interfaces/andcondition.html +2 -2
  7. package/docs/interfaces/arraycontrolprops.html +21 -21
  8. package/docs/interfaces/arraylayoutprops.html +21 -21
  9. package/docs/interfaces/categorization.html +24 -16
  10. package/docs/interfaces/category.html +24 -16
  11. package/docs/interfaces/cellprops.html +12 -12
  12. package/docs/interfaces/combinatorrendererprops.html +18 -18
  13. package/docs/interfaces/composablecondition.html +2 -2
  14. package/docs/interfaces/condition.html +1 -1
  15. package/docs/interfaces/controlelement.html +38 -15
  16. package/docs/interfaces/controlprops.html +16 -16
  17. package/docs/interfaces/controlstate.html +2 -2
  18. package/docs/interfaces/controlwithdetailprops.html +17 -17
  19. package/docs/interfaces/dispatchcellprops.html +10 -10
  20. package/docs/interfaces/dispatchcellstateprops.html +10 -10
  21. package/docs/interfaces/dispatchpropsofarraycontrol.html +4 -4
  22. package/docs/interfaces/dispatchpropsofcontrol.html +1 -1
  23. package/docs/interfaces/dispatchpropsofmultienumcontrol.html +2 -2
  24. package/docs/interfaces/enumcellprops.html +13 -13
  25. package/docs/interfaces/enumoption.html +2 -2
  26. package/docs/interfaces/grouplayout.html +24 -12
  27. package/docs/interfaces/horizontallayout.html +4 -4
  28. package/docs/interfaces/internationalizable.html +161 -0
  29. package/docs/interfaces/jsonformsprops.html +24 -9
  30. package/docs/interfaces/labelable.html +184 -0
  31. package/docs/interfaces/labeldescription.html +2 -2
  32. package/docs/interfaces/labeled.html +182 -0
  33. package/docs/interfaces/labelelement.html +22 -4
  34. package/docs/interfaces/labelprops.html +339 -0
  35. package/docs/interfaces/layout.html +4 -4
  36. package/docs/interfaces/layoutprops.html +25 -10
  37. package/docs/interfaces/leafcondition.html +9 -8
  38. package/docs/interfaces/orcondition.html +2 -2
  39. package/docs/interfaces/ownpropsofcell.html +9 -9
  40. package/docs/interfaces/ownpropsofcontrol.html +9 -9
  41. package/docs/interfaces/ownpropsofenum.html +1 -1
  42. package/docs/interfaces/ownpropsofenumcell.html +10 -10
  43. package/docs/interfaces/ownpropsofjsonformsrenderer.html +8 -8
  44. package/docs/interfaces/ownpropsoflabel.html +286 -0
  45. package/docs/interfaces/ownpropsoflayout.html +9 -9
  46. package/docs/interfaces/ownpropsofmasterlistitem.html +6 -6
  47. package/docs/interfaces/ownpropsofrenderer.html +11 -8
  48. package/docs/interfaces/rendererprops.html +9 -9
  49. package/docs/interfaces/rule.html +2 -2
  50. package/docs/interfaces/schemabasedcondition.html +9 -8
  51. package/docs/interfaces/scopable.html +3 -9
  52. package/docs/interfaces/scoped.html +183 -0
  53. package/docs/interfaces/statepropsofarraycontrol.html +17 -17
  54. package/docs/interfaces/statepropsofarraylayout.html +17 -17
  55. package/docs/interfaces/statepropsofcell.html +11 -11
  56. package/docs/interfaces/statepropsofcombinator.html +17 -17
  57. package/docs/interfaces/statepropsofcontrol.html +15 -15
  58. package/docs/interfaces/statepropsofcontrolwithdetail.html +16 -16
  59. package/docs/interfaces/statepropsofenumcell.html +12 -12
  60. package/docs/interfaces/statepropsofjsonformsrenderer.html +23 -9
  61. package/docs/interfaces/statepropsoflabel.html +343 -0
  62. package/docs/interfaces/statepropsoflayout.html +24 -10
  63. package/docs/interfaces/statepropsofmasteritem.html +7 -7
  64. package/docs/interfaces/statepropsofrenderer.html +12 -9
  65. package/docs/interfaces/statepropsofscopedrenderer.html +12 -12
  66. package/docs/interfaces/testercontext.html +184 -0
  67. package/docs/interfaces/uischemaelement.html +3 -3
  68. package/docs/interfaces/verticallayout.html +4 -4
  69. package/docs/interfaces/withclassname.html +1 -1
  70. package/lib/i18n/i18nUtil.d.ts +9 -4
  71. package/lib/jsonforms-core.cjs.js +103 -50
  72. package/lib/jsonforms-core.cjs.js.map +1 -1
  73. package/lib/jsonforms-core.esm.js +85 -50
  74. package/lib/jsonforms-core.esm.js.map +1 -1
  75. package/lib/models/uischema.d.ts +41 -24
  76. package/lib/reducers/i18n.d.ts +1 -1
  77. package/lib/testers/testers.d.ts +15 -6
  78. package/lib/util/renderer.d.ts +18 -1
  79. package/lib/util/runtime.d.ts +1 -2
  80. package/lib/util/util.d.ts +6 -6
  81. package/package.json +2 -2
  82. package/src/i18n/i18nUtil.ts +28 -8
  83. package/src/models/uischema.ts +60 -24
  84. package/src/reducers/i18n.ts +1 -1
  85. package/src/testers/testers.ts +43 -36
  86. package/src/util/path.ts +9 -5
  87. package/src/util/renderer.ts +52 -25
  88. package/src/util/runtime.ts +1 -1
  89. package/src/util/util.ts +8 -8
  90. package/stats.html +1 -1
  91. package/test/i18n/i18nUtil.test.ts +41 -1
  92. package/test/testers.test.ts +40 -23
  93. package/test/util/renderer.test.ts +106 -8
@@ -328,12 +328,27 @@ exports.RuleEffect = void 0;
328
328
  RuleEffect["ENABLE"] = "ENABLE";
329
329
  RuleEffect["DISABLE"] = "DISABLE";
330
330
  })(exports.RuleEffect || (exports.RuleEffect = {}));
331
+ var isInternationalized = function (element) {
332
+ return typeof element === 'object' && element !== null && typeof element.i18n === 'string';
333
+ };
331
334
  var isGroup = function (layout) {
332
335
  return layout.type === 'Group';
333
336
  };
334
337
  var isLayout = function (uischema) {
335
338
  return uischema.elements !== undefined;
336
339
  };
340
+ var isScopable = function (obj) {
341
+ return obj && typeof obj === 'object';
342
+ };
343
+ var isScoped = function (obj) {
344
+ return isScopable(obj) && typeof obj.scope === 'string';
345
+ };
346
+ var isLabelable = function (obj) {
347
+ return obj && typeof obj === 'object';
348
+ };
349
+ var isLabeled = function (obj) {
350
+ return isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);
351
+ };
337
352
 
338
353
  var move = function (array, index, delta) {
339
354
  var newIndex = index + delta;
@@ -682,8 +697,11 @@ var defaultDataReducer = function (state, action) {
682
697
  var extractDefaultData = function (state) { return state; };
683
698
 
684
699
  var getI18nKeyPrefixBySchema = function (schema, uischema) {
685
- var _a, _b, _c;
686
- return (_c = (_b = (_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.i18n) !== null && _b !== void 0 ? _b : schema === null || schema === void 0 ? void 0 : schema.i18n) !== null && _c !== void 0 ? _c : undefined;
700
+ var _a;
701
+ if (isInternationalized(uischema)) {
702
+ return uischema.i18n;
703
+ }
704
+ return (_a = schema === null || schema === void 0 ? void 0 : schema.i18n) !== null && _a !== void 0 ? _a : undefined;
687
705
  };
688
706
  var transformPathToI18nPrefix = function (path) {
689
707
  return ((path === null || path === void 0 ? void 0 : path.split('.').filter(function (segment) { return !/^\d+$/.test(segment); }).join('.')) || 'root');
@@ -726,6 +744,18 @@ var getCombinedErrorMessage = function (errors, et, t, schema, uischema, path) {
726
744
  }
727
745
  return formatErrorMessage(errors.map(function (error) { return et(error, t, uischema); }));
728
746
  };
747
+ var deriveLabelForUISchemaElement = function (uischema, t) {
748
+ if (uischema.label === false) {
749
+ return undefined;
750
+ }
751
+ if ((uischema.label === undefined || uischema.label === null || uischema.label === true) && !isInternationalized(uischema)) {
752
+ return undefined;
753
+ }
754
+ var stringifiedLabel = typeof uischema.label === 'string' ? uischema.label : JSON.stringify(uischema.label);
755
+ var i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);
756
+ var i18nKey = typeof i18nKeyPrefix === 'string' ? i18nKeyPrefix + ".label" : stringifiedLabel;
757
+ return t(i18nKey, stringifiedLabel, { uischema: uischema });
758
+ };
729
759
 
730
760
  var defaultJsonFormsI18nState = {
731
761
  locale: 'en',
@@ -794,7 +824,7 @@ var NOT_APPLICABLE = -1;
794
824
  var isControl = function (uischema) {
795
825
  return !isEmpty__default["default"](uischema) && uischema.scope !== undefined;
796
826
  };
797
- var schemaMatches = function (predicate) { return function (uischema, schema, rootSchema) {
827
+ var schemaMatches = function (predicate) { return function (uischema, schema, context) {
798
828
  if (isEmpty__default["default"](uischema) || !isControl(uischema)) {
799
829
  return false;
800
830
  }
@@ -807,27 +837,27 @@ var schemaMatches = function (predicate) { return function (uischema, schema, ro
807
837
  }
808
838
  var currentDataSchema = schema;
809
839
  if (hasType(schema, 'object')) {
810
- currentDataSchema = resolveSchema(schema, schemaPath, rootSchema);
840
+ currentDataSchema = resolveSchema(schema, schemaPath, context === null || context === void 0 ? void 0 : context.rootSchema);
811
841
  }
812
842
  if (currentDataSchema === undefined) {
813
843
  return false;
814
844
  }
815
- return predicate(currentDataSchema, rootSchema);
845
+ return predicate(currentDataSchema, context === null || context === void 0 ? void 0 : context.rootSchema);
816
846
  }; };
817
- var schemaSubPathMatches = function (subPath, predicate) { return function (uischema, schema, rootSchema) {
847
+ var schemaSubPathMatches = function (subPath, predicate) { return function (uischema, schema, context) {
818
848
  if (isEmpty__default["default"](uischema) || !isControl(uischema)) {
819
849
  return false;
820
850
  }
821
851
  var schemaPath = uischema.scope;
822
852
  var currentDataSchema = schema;
823
853
  if (hasType(schema, 'object')) {
824
- currentDataSchema = resolveSchema(schema, schemaPath, rootSchema);
854
+ currentDataSchema = resolveSchema(schema, schemaPath, context === null || context === void 0 ? void 0 : context.rootSchema);
825
855
  }
826
856
  currentDataSchema = get__default["default"](currentDataSchema, subPath);
827
857
  if (currentDataSchema === undefined) {
828
858
  return false;
829
859
  }
830
- return predicate(currentDataSchema, rootSchema);
860
+ return predicate(currentDataSchema, context === null || context === void 0 ? void 0 : context.rootSchema);
831
861
  }; };
832
862
  var schemaTypeIs = function (expectedType) {
833
863
  return schemaMatches(function (schema) { return !isEmpty__default["default"](schema) && hasType(schema, expectedType); });
@@ -836,7 +866,7 @@ var formatIs = function (expectedFormat) {
836
866
  return schemaMatches(function (schema) {
837
867
  return !isEmpty__default["default"](schema) &&
838
868
  schema.format === expectedFormat &&
839
- schema.type === 'string';
869
+ hasType(schema, 'string');
840
870
  });
841
871
  };
842
872
  var uiTypeIs = function (expected) { return function (uischema) { return !isEmpty__default["default"](uischema) && uischema.type === expected; }; };
@@ -865,23 +895,23 @@ var and = function () {
865
895
  for (var _i = 0; _i < arguments.length; _i++) {
866
896
  testers[_i] = arguments[_i];
867
897
  }
868
- return function (uischema, schema, rootSchema) { return testers.reduce(function (acc, tester) { return acc && tester(uischema, schema, rootSchema); }, true); };
898
+ return function (uischema, schema, context) { return testers.reduce(function (acc, tester) { return acc && tester(uischema, schema, context); }, true); };
869
899
  };
870
900
  var or = function () {
871
901
  var testers = [];
872
902
  for (var _i = 0; _i < arguments.length; _i++) {
873
903
  testers[_i] = arguments[_i];
874
904
  }
875
- return function (uischema, schema, rootSchema) { return testers.reduce(function (acc, tester) { return acc || tester(uischema, schema, rootSchema); }, false); };
905
+ return function (uischema, schema, context) { return testers.reduce(function (acc, tester) { return acc || tester(uischema, schema, context); }, false); };
876
906
  };
877
- var rankWith = function (rank, tester) { return function (uischema, schema, rootSchema) {
878
- if (tester(uischema, schema, rootSchema)) {
907
+ var rankWith = function (rank, tester) { return function (uischema, schema, context) {
908
+ if (tester(uischema, schema, context)) {
879
909
  return rank;
880
910
  }
881
911
  return NOT_APPLICABLE;
882
912
  }; };
883
- var withIncreasedRank = function (by, rankedTester) { return function (uischema, schema, rootSchema) {
884
- var rank = rankedTester(uischema, schema, rootSchema);
913
+ var withIncreasedRank = function (by, rankedTester) { return function (uischema, schema, context) {
914
+ var rank = rankedTester(uischema, schema, context);
885
915
  if (rank === NOT_APPLICABLE) {
886
916
  return NOT_APPLICABLE;
887
917
  }
@@ -934,16 +964,14 @@ var traverse = function (any, pred, rootSchema) {
934
964
  }
935
965
  return false;
936
966
  };
937
- var isObjectArrayWithNesting = function (uischema, schema, rootSchema) {
938
- if (!uiTypeIs('Control')(uischema, schema, rootSchema)) {
967
+ var isObjectArrayWithNesting = function (uischema, schema, context) {
968
+ var _a;
969
+ if (!uiTypeIs('Control')(uischema, schema, context)) {
939
970
  return false;
940
971
  }
941
972
  var schemaPath = uischema.scope;
942
- var resolvedSchema = resolveSchema(schema, schemaPath, rootSchema !== null && rootSchema !== void 0 ? rootSchema : schema);
943
- var wantedNestingByType = {
944
- object: 2,
945
- array: 1
946
- };
973
+ var resolvedSchema = resolveSchema(schema, schemaPath, (_a = context === null || context === void 0 ? void 0 : context.rootSchema) !== null && _a !== void 0 ? _a : schema);
974
+ var objectDepth = 0;
947
975
  if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {
948
976
  if (traverse(resolvedSchema.items, function (val) {
949
977
  if (val === schema) {
@@ -952,16 +980,17 @@ var isObjectArrayWithNesting = function (uischema, schema, rootSchema) {
952
980
  if (val.$ref !== undefined) {
953
981
  return false;
954
982
  }
955
- if (typeof val.type !== 'string') {
956
- return true;
983
+ if (hasType(val, 'object')) {
984
+ objectDepth++;
985
+ if (objectDepth === 2) {
986
+ return true;
987
+ }
957
988
  }
958
- var typeCount = wantedNestingByType[val.type];
959
- if (typeCount === undefined) {
960
- return false;
989
+ if (hasType(val, 'array')) {
990
+ return true;
961
991
  }
962
- wantedNestingByType[val.type] = typeCount - 1;
963
- return wantedNestingByType[val.type] === 0;
964
- }, rootSchema)) {
992
+ return false;
993
+ }, context === null || context === void 0 ? void 0 : context.rootSchema)) {
965
994
  return true;
966
995
  }
967
996
  if (uischema.options && uischema.options.detail) {
@@ -1010,7 +1039,7 @@ var hasCategory = function (categorization) {
1010
1039
  var categorizationHasCategory = function (uischema) {
1011
1040
  return hasCategory(uischema);
1012
1041
  };
1013
- var not = function (tester) { return function (uischema, schema, rootSchema) { return !tester(uischema, schema, rootSchema); }; };
1042
+ var not = function (tester) { return function (uischema, schema, context) { return !tester(uischema, schema, context); }; };
1014
1043
 
1015
1044
  var index$1 = /*#__PURE__*/Object.freeze({
1016
1045
  __proto__: null,
@@ -1175,11 +1204,14 @@ var toDataPath = function (schemaPath) {
1175
1204
  return toDataPathSegments(schemaPath).join('.');
1176
1205
  };
1177
1206
  var composeWithUi = function (scopableUi, path) {
1207
+ if (!isScoped(scopableUi)) {
1208
+ return path !== null && path !== void 0 ? path : '';
1209
+ }
1178
1210
  var segments = toDataPathSegments(scopableUi.scope);
1179
- if (isEmpty__default["default"](segments) && path === undefined) {
1180
- return '';
1211
+ if (isEmpty__default["default"](segments)) {
1212
+ return path !== null && path !== void 0 ? path : '';
1181
1213
  }
1182
- return isEmpty__default["default"](segments) ? path : compose(path, segments.join('.'));
1214
+ return compose(path, segments.join('.'));
1183
1215
  };
1184
1216
  var encode = function (segment) { return segment === null || segment === void 0 ? void 0 : segment.replace(/~/g, '~0').replace(/\//g, '~1'); };
1185
1217
  var decode = function (pointerSegment) { return pointerSegment === null || pointerSegment === void 0 ? void 0 : pointerSegment.replace(/~1/g, '/').replace(/~0/, '~'); };
@@ -1434,12 +1466,12 @@ var Resolve = {
1434
1466
  schema: resolveSchema,
1435
1467
  data: resolveData
1436
1468
  };
1437
- var fromScopable = function (scopable) {
1469
+ var fromScoped = function (scopable) {
1438
1470
  return toDataPathSegments(scopable.scope).join('.');
1439
1471
  };
1440
1472
  var Paths = {
1441
1473
  compose: compose,
1442
- fromScopable: fromScopable
1474
+ fromScoped: fromScoped
1443
1475
  };
1444
1476
  var Runtime = {
1445
1477
  isEnabled: function (uischema, data, ajv) {
@@ -1747,26 +1779,22 @@ var mapStateToLayoutProps = function (state, ownProps) {
1747
1779
  var config = getConfig(state);
1748
1780
  var enabled = isInherentlyEnabled(state, ownProps, uischema, undefined,
1749
1781
  rootData, config);
1782
+ var t = getTranslator()(state);
1783
+ var label = isLabelable(uischema) ? deriveLabelForUISchemaElement(uischema, t) : undefined;
1750
1784
  return __assign(__assign({}, layoutDefaultProps), { renderers: ownProps.renderers || getRenderers(state), cells: ownProps.cells || getCells(state), visible: visible,
1751
- enabled: enabled, path: ownProps.path, data: data, uischema: ownProps.uischema, schema: ownProps.schema, direction: (_a = ownProps.direction) !== null && _a !== void 0 ? _a : getDirection(uischema), config: config });
1785
+ enabled: enabled, path: ownProps.path, data: data, uischema: ownProps.uischema, schema: ownProps.schema, direction: (_a = ownProps.direction) !== null && _a !== void 0 ? _a : getDirection(uischema), config: config,
1786
+ label: label });
1752
1787
  };
1753
1788
  var mapStateToJsonFormsRendererProps = function (state, ownProps) {
1754
- var uischema = ownProps.uischema;
1755
- if (uischema === undefined) {
1756
- if (ownProps.schema) {
1757
- uischema = findUISchema(state.jsonforms.uischemas, ownProps.schema, undefined, ownProps.path, undefined, undefined, state.jsonforms.core.schema);
1758
- }
1759
- else {
1760
- uischema = getUiSchema(state);
1761
- }
1762
- }
1763
1789
  return {
1764
- renderers: ownProps.renderers || get__default["default"](state.jsonforms, 'renderers') || [],
1765
- cells: ownProps.cells || get__default["default"](state.jsonforms, 'cells') || [],
1790
+ renderers: ownProps.renderers || get__default["default"](state.jsonforms, 'renderers'),
1791
+ cells: ownProps.cells || get__default["default"](state.jsonforms, 'cells'),
1766
1792
  schema: ownProps.schema || getSchema(state),
1767
1793
  rootSchema: getSchema(state),
1768
- uischema: uischema,
1769
- path: ownProps.path
1794
+ uischema: ownProps.uischema || getUiSchema(state),
1795
+ path: ownProps.path,
1796
+ enabled: ownProps.enabled,
1797
+ config: getConfig(state)
1770
1798
  };
1771
1799
  };
1772
1800
  var controlDefaultProps = __assign(__assign({}, layoutDefaultProps), { errors: [] });
@@ -1822,6 +1850,24 @@ var mapStateToArrayLayoutProps = function (state, ownProps) {
1822
1850
  return __assign(__assign({}, props), { path: path,
1823
1851
  uischema: uischema, schema: resolvedSchema, data: props.data ? props.data.length : 0, errors: allErrors, minItems: schema.minItems });
1824
1852
  };
1853
+ var mapStateToLabelProps = function (state, props) {
1854
+ var uischema = props.uischema;
1855
+ var visible = props.visible === undefined || hasShowRule(uischema)
1856
+ ? isVisible(props.uischema, getData(state), props.path, getAjv(state))
1857
+ : props.visible;
1858
+ var text = uischema.text;
1859
+ var t = getTranslator()(state);
1860
+ var i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);
1861
+ var i18nKey = i18nKeyPrefix ? i18nKeyPrefix + ".text" : text !== null && text !== void 0 ? text : '';
1862
+ var i18nText = t(i18nKey, text, { uischema: uischema });
1863
+ return {
1864
+ text: i18nText,
1865
+ visible: visible,
1866
+ config: getConfig(state),
1867
+ renderers: props.renderers || getRenderers(state),
1868
+ cells: props.cells || getCells(state),
1869
+ };
1870
+ };
1825
1871
 
1826
1872
  var mapStateToCellProps = function (state, ownProps) {
1827
1873
  var id = ownProps.id, schema = ownProps.schema, path = ownProps.path, uischema = ownProps.uischema, renderers = ownProps.renderers, cells = ownProps.cells;
@@ -2309,6 +2355,7 @@ exports.defaultJsonFormsI18nState = defaultJsonFormsI18nState;
2309
2355
  exports.defaultMapDispatchToControlProps = defaultMapDispatchToControlProps;
2310
2356
  exports.defaultMapStateToEnumCellProps = defaultMapStateToEnumCellProps;
2311
2357
  exports.defaultTranslator = defaultTranslator;
2358
+ exports.deriveLabelForUISchemaElement = deriveLabelForUISchemaElement;
2312
2359
  exports.deriveTypes = deriveTypes;
2313
2360
  exports.encode = encode;
2314
2361
  exports.enumToEnumOptionMapper = enumToEnumOptionMapper;
@@ -2372,6 +2419,9 @@ exports.isEnumControl = isEnumControl;
2372
2419
  exports.isGroup = isGroup;
2373
2420
  exports.isInherentlyEnabled = isInherentlyEnabled;
2374
2421
  exports.isIntegerControl = isIntegerControl;
2422
+ exports.isInternationalized = isInternationalized;
2423
+ exports.isLabelable = isLabelable;
2424
+ exports.isLabeled = isLabeled;
2375
2425
  exports.isLayout = isLayout;
2376
2426
  exports.isMultiLineControl = isMultiLineControl;
2377
2427
  exports.isNumberControl = isNumberControl;
@@ -2384,6 +2434,8 @@ exports.isOneOfControl = isOneOfControl;
2384
2434
  exports.isOneOfEnumControl = isOneOfEnumControl;
2385
2435
  exports.isPrimitiveArrayControl = isPrimitiveArrayControl;
2386
2436
  exports.isRangeControl = isRangeControl;
2437
+ exports.isScopable = isScopable;
2438
+ exports.isScoped = isScoped;
2387
2439
  exports.isStringControl = isStringControl;
2388
2440
  exports.isTimeControl = isTimeControl;
2389
2441
  exports.isVisible = isVisible;
@@ -2405,6 +2457,7 @@ exports.mapStateToControlWithDetailProps = mapStateToControlWithDetailProps;
2405
2457
  exports.mapStateToDispatchCellProps = mapStateToDispatchCellProps;
2406
2458
  exports.mapStateToEnumControlProps = mapStateToEnumControlProps;
2407
2459
  exports.mapStateToJsonFormsRendererProps = mapStateToJsonFormsRendererProps;
2460
+ exports.mapStateToLabelProps = mapStateToLabelProps;
2408
2461
  exports.mapStateToLayoutProps = mapStateToLayoutProps;
2409
2462
  exports.mapStateToMasterListItemProps = mapStateToMasterListItemProps;
2410
2463
  exports.mapStateToMultiEnumControlProps = mapStateToMultiEnumControlProps;