@sumaris-net/ngx-components 2.3.3 → 2.3.5

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.
@@ -26103,11 +26103,15 @@ class AppTable {
26103
26103
  if (this.sort)
26104
26104
  this.sort.disabled = true;
26105
26105
  this._enabled = false;
26106
+ if (!opts || opts.emitEvent != false)
26107
+ this.markForCheck();
26106
26108
  }
26107
26109
  enable(opts) {
26108
26110
  if (this.sort)
26109
26111
  this.sort.disabled = false;
26110
26112
  this._enabled = true;
26113
+ if (!opts || opts.emitEvent != false)
26114
+ this.markForCheck();
26111
26115
  }
26112
26116
  get enabled() {
26113
26117
  return this._enabled;
@@ -27243,9 +27247,8 @@ class AppTable {
27243
27247
  this.visibleRowCount++;
27244
27248
  this.markAsDirty({ emitEvent: false /*markForCheck() is called just after*/ });
27245
27249
  // Emit event
27246
- if (!opts || opts.emitEvent !== false) {
27250
+ if (!opts || opts.emitEvent !== false)
27247
27251
  this.markForCheck();
27248
- }
27249
27252
  return row;
27250
27253
  });
27251
27254
  }
@@ -28523,7 +28526,9 @@ class AppEntityEditor extends AppTabEditor {
28523
28526
  this._listenChangesSubscription = this.listenChanges(this.data.id, {
28524
28527
  interval: this._listenIntervalInSeconds
28525
28528
  })
28526
- .pipe(filter(isNotNil))
28529
+ .pipe(filter(isNotNil),
28530
+ // If saving, wait end, to avoid to detect self changes
28531
+ mergeMap((data) => this.saving ? of(data) : firstFalse(this.savingSubject).pipe(mapTo(data))))
28527
28532
  .subscribe((data) => {
28528
28533
  const isNewer = isMoment(data.updateDate) && data.updateDate.isAfter(this.data.updateDate);
28529
28534
  if (!isNewer)