@jsonforms/core 3.7.0-beta.0 → 3.8.0-alpha.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.
@@ -9,7 +9,6 @@ var range = require('lodash/range');
9
9
  var get = require('lodash/get');
10
10
  var has = require('lodash/has');
11
11
  var find = require('lodash/find');
12
- var isArray = require('lodash/isArray');
13
12
  var includes = require('lodash/includes');
14
13
  var Ajv = require('ajv');
15
14
  var addFormats = require('ajv-formats');
@@ -37,7 +36,6 @@ var range__default = /*#__PURE__*/_interopDefaultLegacy(range);
37
36
  var get__default = /*#__PURE__*/_interopDefaultLegacy(get);
38
37
  var has__default = /*#__PURE__*/_interopDefaultLegacy(has);
39
38
  var find__default = /*#__PURE__*/_interopDefaultLegacy(find);
40
- var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray);
41
39
  var includes__default = /*#__PURE__*/_interopDefaultLegacy(includes);
42
40
  var Ajv__default = /*#__PURE__*/_interopDefaultLegacy(Ajv);
43
41
  var addFormats__default = /*#__PURE__*/_interopDefaultLegacy(addFormats);
@@ -828,7 +826,7 @@ var deriveTypes = function (jsonSchema) {
828
826
  if (!isEmpty__default["default"](jsonSchema.type) && typeof jsonSchema.type === 'string') {
829
827
  return [jsonSchema.type];
830
828
  }
831
- if (isArray__default["default"](jsonSchema.type)) {
829
+ if (Array.isArray(jsonSchema.type)) {
832
830
  return jsonSchema.type;
833
831
  }
834
832
  if (!isEmpty__default["default"](jsonSchema.properties) ||
@@ -1934,7 +1932,7 @@ var isObjectArray = and(schemaMatches(function (schema, rootSchema) {
1934
1932
  }));
1935
1933
  var isObjectArrayControl = and(uiTypeIs('Control'), isObjectArray);
1936
1934
  var traverse = function (any, pred, rootSchema) {
1937
- if (isArray__default["default"](any)) {
1935
+ if (Array.isArray(any)) {
1938
1936
  return reduce__default["default"](any, function (acc, el) { return acc || traverse(el, pred, rootSchema); }, false);
1939
1937
  }
1940
1938
  if (pred(any)) {
@@ -2376,13 +2374,13 @@ var oneOfToEnumOptionMapper = function (e, t, fallbackI18nKey) {
2376
2374
  var label = (_a = e.title) !== null && _a !== void 0 ? _a : (typeof e.const === 'string' ? e.const : JSON.stringify(e.const));
2377
2375
  if (t) {
2378
2376
  if (e.i18n) {
2379
- label = t(e.i18n, label);
2377
+ label = t(e.i18n, label, { schema: e });
2380
2378
  }
2381
2379
  else if (fallbackI18nKey) {
2382
- label = t("".concat(fallbackI18nKey, ".").concat(label), label);
2380
+ label = t("".concat(fallbackI18nKey, ".").concat(label), label, { schema: e });
2383
2381
  }
2384
2382
  else {
2385
- label = t(label, label);
2383
+ label = t(label, label, { schema: e });
2386
2384
  }
2387
2385
  }
2388
2386
  return {