@jsonforms/core 3.4.0-alpha.3 → 3.4.0-beta.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.
@@ -2380,11 +2380,10 @@ var mapStateToControlWithDetailProps = function (state, ownProps) {
2380
2380
  return __assign(__assign({}, props), { uischemas: state.jsonforms.uischemas });
2381
2381
  };
2382
2382
  var mapStateToArrayControlProps = function (state, ownProps) {
2383
- var _a = mapStateToControlWithDetailProps(state, ownProps), path = _a.path, schema = _a.schema, uischema = _a.uischema, i18nKeyPrefix = _a.i18nKeyPrefix, label = _a.label, props = __rest(_a, ["path", "schema", "uischema", "i18nKeyPrefix", "label"]);
2383
+ var _a = mapStateToControlWithDetailProps(state, ownProps), path = _a.path, schema = _a.schema, uischema = _a.uischema, label = _a.label, props = __rest(_a, ["path", "schema", "uischema", "label"]);
2384
2384
  var resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);
2385
2385
  var childErrors = getSubErrorsAt(path, resolvedSchema)(state);
2386
- var t = getTranslator()(state);
2387
- return __assign(__assign({}, props), { label: label, path: path, uischema: uischema, schema: resolvedSchema, childErrors: childErrors, renderers: ownProps.renderers || getRenderers(state), cells: ownProps.cells || getCells(state), translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label) });
2386
+ return __assign(__assign({}, props), { label: label, path: path, uischema: uischema, schema: resolvedSchema, childErrors: childErrors, renderers: ownProps.renderers || getRenderers(state), cells: ownProps.cells || getCells(state) });
2388
2387
  };
2389
2388
  var mapDispatchToArrayControlProps = function (dispatch) { return ({
2390
2389
  addItem: function (path, value) { return function () {
@@ -2491,8 +2490,6 @@ var mapStateToCombinatorRendererProps = function (state, ownProps, keyword) {
2491
2490
  var _a;
2492
2491
  var _b = mapStateToControlProps(state, ownProps), data = _b.data, schema = _b.schema, rootSchema = _b.rootSchema, i18nKeyPrefix = _b.i18nKeyPrefix, label = _b.label, props = __rest(_b, ["data", "schema", "rootSchema", "i18nKeyPrefix", "label"]);
2493
2492
  var ajv = state.jsonforms.core.ajv;
2494
- var t = getTranslator()(state);
2495
- var translations = getCombinatorTranslations(t, combinatorDefaultTranslations, i18nKeyPrefix, label);
2496
2493
  var structuralKeywords = [
2497
2494
  'required',
2498
2495
  'additionalProperties',
@@ -2523,7 +2520,7 @@ var mapStateToCombinatorRendererProps = function (state, ownProps, keyword) {
2523
2520
  console.debug("Combinator subschema is not self contained, can't hand it over to AJV");
2524
2521
  }
2525
2522
  }
2526
- return __assign(__assign({ data: data, schema: schema, rootSchema: rootSchema }, props), { i18nKeyPrefix: i18nKeyPrefix, label: label, indexOfFittingSchema: indexOfFittingSchema, uischemas: getUISchemas(state), translations: translations });
2523
+ return __assign(__assign({ data: data, schema: schema, rootSchema: rootSchema }, props), { i18nKeyPrefix: i18nKeyPrefix, label: label, indexOfFittingSchema: indexOfFittingSchema, uischemas: getUISchemas(state) });
2527
2524
  };
2528
2525
  var mapStateToAllOfProps = function (state, ownProps) {
2529
2526
  return mapStateToCombinatorRendererProps(state, ownProps, 'allOf');
@@ -2535,14 +2532,14 @@ var mapStateToOneOfProps = function (state, ownProps) {
2535
2532
  return mapStateToCombinatorRendererProps(state, ownProps, 'oneOf');
2536
2533
  };
2537
2534
  var mapStateToArrayLayoutProps = function (state, ownProps) {
2538
- var _a = mapStateToControlWithDetailProps(state, ownProps), path = _a.path, schema = _a.schema, uischema = _a.uischema, errors = _a.errors, i18nKeyPrefix = _a.i18nKeyPrefix, label = _a.label, props = __rest(_a, ["path", "schema", "uischema", "errors", "i18nKeyPrefix", "label"]);
2535
+ var _a = mapStateToControlWithDetailProps(state, ownProps), path = _a.path, schema = _a.schema, uischema = _a.uischema, errors = _a.errors, label = _a.label, props = __rest(_a, ["path", "schema", "uischema", "errors", "label"]);
2539
2536
  var resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);
2540
2537
  var t = getTranslator()(state);
2541
2538
  var childErrors = getCombinedErrorMessage(getSubErrorsAt(path, resolvedSchema)(state), getErrorTranslator()(state), t, undefined, undefined, undefined);
2542
2539
  var allErrors = errors +
2543
2540
  (errors.length > 0 && childErrors.length > 0 ? '\n' : '') +
2544
2541
  childErrors;
2545
- return __assign(__assign({}, props), { label: label, path: path, uischema: uischema, schema: resolvedSchema, data: props.data ? props.data.length : 0, errors: allErrors, minItems: schema.minItems, translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label) });
2542
+ return __assign(__assign({}, props), { label: label, path: path, uischema: uischema, schema: resolvedSchema, data: props.data ? props.data.length : 0, errors: allErrors, minItems: schema.minItems });
2546
2543
  };
2547
2544
  var mapStateToLabelProps = function (state, props) {
2548
2545
  var uischema = props.uischema;