@sumaris-net/ngx-components 0.25.14 → 0.25.15

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.
@@ -23719,6 +23719,7 @@
23719
23719
  this.saveBeforeSort = toBoolean(this.saveBeforeSort, !this.readOnly); // force to false when readonly
23720
23720
  this.saveBeforeFilter = toBoolean(this.saveBeforeFilter, !this.readOnly); // force to false when readonly
23721
23721
  this.keepEditedRowOnSave = toBoolean(this.keepEditedRowOnSave, this.inlineEdition);
23722
+ this.translateErrorOptions = this.translateErrorOptions || { separator: ', ', pathTranslateService: this }; // Can be override in subclasses constructors
23722
23723
  // Check ask user confirmation is possible
23723
23724
  if (this.confirmBeforeDelete && !this.alertCtrl)
23724
23725
  throw Error('Missing \'alertCtrl\' or \'injector\' in component\'s constructor.');
@@ -24891,7 +24892,7 @@
24891
24892
  row = row || this.editedRow;
24892
24893
  if (!row || !this.formErrorAdapter)
24893
24894
  return undefined;
24894
- return this.formErrorAdapter.translateErrors(row.validator, Object.assign({ pathTranslateService: this }, opts));
24895
+ return this.formErrorAdapter.translateErrors(row.validator, Object.assign(Object.assign({}, this.translateErrorOptions), opts));
24895
24896
  };
24896
24897
  AppTable.prototype.setError = function (value, opts) {
24897
24898
  if (this.errorSubject.value !== value) {