@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.
@@ -27198,6 +27198,8 @@
27198
27198
  AppTable.prototype.confirmAndForward = function (event, row) {
27199
27199
  var _this = this;
27200
27200
  var _a;
27201
+ if (!this.inlineEdition)
27202
+ return false;
27201
27203
  row = row || this.editedRow;
27202
27204
  if (!this.confirmEditCreate(event, row)) {
27203
27205
  // If pending: Wait end of validation, then loop
@@ -27771,7 +27773,7 @@
27771
27773
  };
27772
27774
  /* -- protected method -- */
27773
27775
  AppTable.prototype.editRow = function (event, row, opts) {
27774
- if (!this._enabled)
27776
+ if (!this._enabled || !this.inlineEdition)
27775
27777
  return false;
27776
27778
  if (this.editedRow === row)
27777
27779
  return true; // Already the edited row
@@ -28102,7 +28104,7 @@
28102
28104
  };
28103
28105
  AppTable.prototype.addRowToTable = function (insertAt, opts) {
28104
28106
  return __awaiter(this, void 0, void 0, function () {
28105
- var row;
28107
+ var editing, row;
28106
28108
  return __generator(this, function (_e) {
28107
28109
  switch (_e.label) {
28108
28110
  case 0:
@@ -28111,7 +28113,8 @@
28111
28113
  console.warn('[table] Cannot add new row, because the previous edited row cannot be confirmed');
28112
28114
  return [2 /*return*/, undefined];
28113
28115
  }
28114
- return [4 /*yield*/, this._dataSource.createNew(insertAt, { editing: opts === null || opts === void 0 ? void 0 : opts.editing })];
28116
+ editing = this.inlineEdition && (!opts || opts.editing !== false);
28117
+ return [4 /*yield*/, this._dataSource.createNew(insertAt, { editing: editing })];
28115
28118
  case 1:
28116
28119
  row = _e.sent();
28117
28120
  if (!row)