@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.
- package/bundles/sumaris-net.ngx-components.umd.js +2 -1
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/form.utils.js +1 -1
- package/esm2015/src/app/core/table/table.class.js +3 -2
- package/esm2015/src/app/shared/pipes/form.pipes.js +1 -1
- package/esm2015/src/app/shared/validator/form-error-adapter.class.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +2 -1
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/table.class.d.ts +2 -1
- package/src/app/shared/pipes/form.pipes.d.ts +2 -2
- package/src/app/shared/validator/form-error-adapter.class.d.ts +3 -3
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -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({
|
|
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) {
|