@jsonforms/core 3.2.0-alpha.1 → 3.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1655,6 +1655,18 @@ var deriveTypes = function (jsonSchema) {
1655
1655
  if (!isEmpty__default["default"](jsonSchema.items)) {
1656
1656
  return ['array'];
1657
1657
  }
1658
+ if (!isEmpty__default["default"](jsonSchema.enum)) {
1659
+ var types_1 = new Set();
1660
+ jsonSchema.enum.forEach(function (enumElement) {
1661
+ if (typeof enumElement === 'string') {
1662
+ types_1.add('string');
1663
+ }
1664
+ else {
1665
+ deriveTypes(enumElement).forEach(function (type) { return types_1.add(type); });
1666
+ }
1667
+ });
1668
+ return Array.from(types_1);
1669
+ }
1658
1670
  if (!isEmpty__default["default"](jsonSchema.allOf)) {
1659
1671
  var allOfType = find__default["default"](jsonSchema.allOf, function (schema) { return deriveTypes(schema).length !== 0; });
1660
1672
  if (allOfType) {
@@ -1873,6 +1885,10 @@ var mapStateToMultiEnumControlProps = function (state, ownProps) {
1873
1885
  var _a;
1874
1886
  var props = mapStateToControlProps(state, ownProps);
1875
1887
  var items = props.schema.items;
1888
+ items =
1889
+ items && items.$ref
1890
+ ? resolveSchema(props.rootSchema, items.$ref, props.rootSchema)
1891
+ : items;
1876
1892
  var options = ownProps.options ||
1877
1893
  ((items === null || items === void 0 ? void 0 : items.oneOf) &&
1878
1894
  items.oneOf.map(function (oneOfSubSchema) {