@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
|
@@ -23240,7 +23240,7 @@ class AppTable {
|
|
|
23240
23240
|
* @param event
|
|
23241
23241
|
* @param row
|
|
23242
23242
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
23243
|
-
*
|
|
23243
|
+
* And to force deletion even if table is busy
|
|
23244
23244
|
*/
|
|
23245
23245
|
deleteRow(event, row, opts) {
|
|
23246
23246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -23253,7 +23253,7 @@ class AppTable {
|
|
|
23253
23253
|
* @param event
|
|
23254
23254
|
* @param rows
|
|
23255
23255
|
* @param opts Use interactive=false to avoid user interaction (e.g. user confirmation)
|
|
23256
|
-
*
|
|
23256
|
+
* And to force deletion even if table is busy
|
|
23257
23257
|
*/
|
|
23258
23258
|
deleteRows(event, rows, opts) {
|
|
23259
23259
|
var _a;
|
|
@@ -23266,8 +23266,8 @@ class AppTable {
|
|
|
23266
23266
|
event === null || event === void 0 ? void 0 : event.preventDefault();
|
|
23267
23267
|
if (!this._enabled || isEmptyArray(rows))
|
|
23268
23268
|
return 0; // Skip is disabled, or no rows to delete
|
|
23269
|
-
if (this.loading && (!opts || opts.
|
|
23270
|
-
console.warn('[app-table] Skip deleteRows() because table is busy (loading). Use opts.
|
|
23269
|
+
if (this.loading && (!opts || opts.interactive !== false)) {
|
|
23270
|
+
console.warn('[app-table] Skip deleteRows() because table is busy (loading). Use opts.interactive = false to force deletion');
|
|
23271
23271
|
return 0; // Skip if loading
|
|
23272
23272
|
}
|
|
23273
23273
|
// Make sure to keep newly created row
|