@sumaris-net/ngx-components 18.7.9 → 18.7.10
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/doc/changelog.md +3 -0
- package/esm2022/src/app/core/table/async-table.class.mjs +6 -3
- package/esm2022/src/app/core/table/table.class.mjs +5 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +9 -3
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -34358,7 +34358,6 @@ class AppTable {
|
|
|
34358
34358
|
}
|
|
34359
34359
|
this._openingRow = true; // Prevent double click
|
|
34360
34360
|
this.markAsLoading();
|
|
34361
|
-
this.selection.clear();
|
|
34362
34361
|
this.openRow(row.currentData.id, row)
|
|
34363
34362
|
.catch((err) => console.error('Failed to open row', err)) // Continue
|
|
34364
34363
|
.then(() => {
|
|
@@ -34659,6 +34658,8 @@ class AppTable {
|
|
|
34659
34658
|
console.warn('[table] Opening row details, but data has no id!');
|
|
34660
34659
|
return false;
|
|
34661
34660
|
}
|
|
34661
|
+
// Clear selection (because next route can change the current table content)
|
|
34662
|
+
this.selection.clear();
|
|
34662
34663
|
return this.navController.navigateForward(`${this.router.url}/${id}`, {
|
|
34663
34664
|
queryParams: {},
|
|
34664
34665
|
});
|
|
@@ -34672,6 +34673,8 @@ class AppTable {
|
|
|
34672
34673
|
this.onNewRow.emit(event);
|
|
34673
34674
|
return true;
|
|
34674
34675
|
}
|
|
34676
|
+
// Clear selection (because next route can change the current table content)
|
|
34677
|
+
this.selection.clear();
|
|
34675
34678
|
return this.navController.navigateForward(`${this.router.url}/new`);
|
|
34676
34679
|
}
|
|
34677
34680
|
// can be overridden to add more required columns
|
|
@@ -36697,7 +36700,7 @@ class AppAsyncTable {
|
|
|
36697
36700
|
await this.editRowById(event, row.id, { focusColumn: this.lastUserColumn });
|
|
36698
36701
|
return true;
|
|
36699
36702
|
}
|
|
36700
|
-
// Edit
|
|
36703
|
+
// Edit row
|
|
36701
36704
|
await this.editRow(event, row, { focusColumn: this.lastUserColumn });
|
|
36702
36705
|
return true;
|
|
36703
36706
|
}
|
|
@@ -37061,7 +37064,6 @@ class AppAsyncTable {
|
|
|
37061
37064
|
}
|
|
37062
37065
|
this._openingRow = true; // Prevent double click
|
|
37063
37066
|
this.markAsLoading();
|
|
37064
|
-
this.selection.clear();
|
|
37065
37067
|
this.openRow(row.currentData.id, row)
|
|
37066
37068
|
.catch((err) => console.error('Failed to open row', err)) // Continue
|
|
37067
37069
|
.then(() => {
|
|
@@ -37360,6 +37362,8 @@ class AppAsyncTable {
|
|
|
37360
37362
|
console.warn('[table] Opening row details, but data has no id!');
|
|
37361
37363
|
return false;
|
|
37362
37364
|
}
|
|
37365
|
+
// Clear selection (because next route can change the current table content)
|
|
37366
|
+
this.selection.clear();
|
|
37363
37367
|
return this.navController.navigateForward(`${this.router.url}/${id}`, {
|
|
37364
37368
|
queryParams: {},
|
|
37365
37369
|
});
|
|
@@ -37373,6 +37377,8 @@ class AppAsyncTable {
|
|
|
37373
37377
|
this.onNewRow.emit(event);
|
|
37374
37378
|
return true;
|
|
37375
37379
|
}
|
|
37380
|
+
// Clear selection (because next route can change the current table content)
|
|
37381
|
+
this.selection.clear();
|
|
37376
37382
|
return this.navController.navigateForward(`${this.router.url}/new`);
|
|
37377
37383
|
}
|
|
37378
37384
|
// can be overridden to add more required columns
|