@sumaris-net/ngx-components 1.23.55 → 1.23.56

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.
@@ -23471,6 +23471,8 @@ class AppTable {
23471
23471
  }
23472
23472
  confirmAndForward(event, row) {
23473
23473
  var _a;
23474
+ if (!this.inlineEdition)
23475
+ return false;
23474
23476
  row = row || this.editedRow;
23475
23477
  if (!this.confirmEditCreate(event, row)) {
23476
23478
  // If pending: Wait end of validation, then loop
@@ -23955,7 +23957,7 @@ class AppTable {
23955
23957
  }
23956
23958
  /* -- protected method -- */
23957
23959
  editRow(event, row, opts) {
23958
- if (!this._enabled)
23960
+ if (!this._enabled || !this.inlineEdition)
23959
23961
  return false;
23960
23962
  if (this.editedRow === row)
23961
23963
  return true; // Already the edited row
@@ -24244,7 +24246,8 @@ class AppTable {
24244
24246
  console.warn('[table] Cannot add new row, because the previous edited row cannot be confirmed');
24245
24247
  return undefined;
24246
24248
  }
24247
- const row = yield this._dataSource.createNew(insertAt, { editing: opts === null || opts === void 0 ? void 0 : opts.editing });
24249
+ const editing = this.inlineEdition && (!opts || opts.editing !== false); // true by default, if inlineEdition
24250
+ const row = yield this._dataSource.createNew(insertAt, { editing });
24248
24251
  if (!row)
24249
24252
  return undefined;
24250
24253
  if (row.editing) {