@sumaris-net/ngx-components 1.19.14 → 1.19.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 +24 -21
- 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/table/table.class.js +7 -2
- package/fesm2015/sumaris-net.ngx-components.js +6 -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 +1 -1
|
@@ -22553,8 +22553,13 @@ class AppTable {
|
|
|
22553
22553
|
return true;
|
|
22554
22554
|
}
|
|
22555
22555
|
confirmAndForward(event, row) {
|
|
22556
|
+
var _a;
|
|
22556
22557
|
row = row || this.editedRow;
|
|
22557
22558
|
if (!this.confirmEditCreate(event, row)) {
|
|
22559
|
+
// If pending: Wait end of validation, then loop
|
|
22560
|
+
if ((_a = row.validator) === null || _a === void 0 ? void 0 : _a.pending) {
|
|
22561
|
+
return AppFormUtils.waitWhilePending(row.validator).then(() => this.confirmAndForward(event, row));
|
|
22562
|
+
}
|
|
22558
22563
|
return false;
|
|
22559
22564
|
}
|
|
22560
22565
|
// Edit next row
|
|
@@ -23226,7 +23231,7 @@ class AppTable {
|
|
|
23226
23231
|
console.warn('[table] Opening row details, but data has no id!');
|
|
23227
23232
|
return false;
|
|
23228
23233
|
}
|
|
23229
|
-
return
|
|
23234
|
+
return this.router.navigate(['.', id.toString()], {
|
|
23230
23235
|
relativeTo: this.route,
|
|
23231
23236
|
queryParams: {}
|
|
23232
23237
|
});
|