@sumaris-net/ngx-components 1.20.33 → 1.20.34
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 +4 -4
- 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/doc/changelog.md +3 -0
- package/esm2015/src/app/core/table/table.class.js +5 -5
- package/fesm2015/sumaris-net.ngx-components.js +4 -4
- 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 -4
|
@@ -26867,7 +26867,7 @@
|
|
|
26867
26867
|
* @param event
|
|
26868
26868
|
* @param row
|
|
26869
26869
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
26870
|
-
*
|
|
26870
|
+
* And to force deletion even if table is busy
|
|
26871
26871
|
*/
|
|
26872
26872
|
AppTable.prototype.deleteRow = function (event, row, opts) {
|
|
26873
26873
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -26887,7 +26887,7 @@
|
|
|
26887
26887
|
* @param event
|
|
26888
26888
|
* @param rows
|
|
26889
26889
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
26890
|
-
*
|
|
26890
|
+
* And to force deletion even if table is busy
|
|
26891
26891
|
*/
|
|
26892
26892
|
AppTable.prototype.deleteRows = function (event, rows, opts) {
|
|
26893
26893
|
var _a;
|
|
@@ -26905,8 +26905,8 @@
|
|
|
26905
26905
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
26906
26906
|
if (!this._enabled || isEmptyArray(rows))
|
|
26907
26907
|
return [2 /*return*/, 0]; // Skip is disabled, or no rows to delete
|
|
26908
|
-
if (this.loading && (!opts || opts.
|
|
26909
|
-
console.warn('[app-table] Skip deleteRows() because table is busy (loading). Use opts.
|
|
26908
|
+
if (this.loading && (!opts || opts.interactive !== false)) {
|
|
26909
|
+
console.warn('[app-table] Skip deleteRows() because table is busy (loading). Use opts.interactive = false to force deletion');
|
|
26910
26910
|
return [2 /*return*/, 0]; // Skip if loading
|
|
26911
26911
|
}
|
|
26912
26912
|
// Make sure to keep newly created row
|