@paperless/angular 2.0.1-beta.98 → 2.0.1-beta.99

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.
@@ -3758,6 +3758,7 @@ let Table = class Table {
3758
3758
  }
3759
3759
  if (changes['enableScroll']?.currentValue) {
3760
3760
  this._calculateColumnWidths();
3761
+ this._checkChangesSubscriptions();
3761
3762
  }
3762
3763
  }
3763
3764
  ngAfterViewInit() {
@@ -3765,6 +3766,7 @@ let Table = class Table {
3765
3766
  return;
3766
3767
  }
3767
3768
  this._calculateColumnWidths();
3769
+ this._checkChangesSubscriptions();
3768
3770
  }
3769
3771
  onResize() {
3770
3772
  this._setRowSelectionData();
@@ -4157,6 +4159,14 @@ let Table = class Table {
4157
4159
  definition.parsedSizes = parsedSizes;
4158
4160
  return definition;
4159
4161
  }
4162
+ _checkChangesSubscriptions() {
4163
+ if (this._rowChangesSubscription) {
4164
+ this._rowChangesSubscription = this.tableRows.changes.pipe(untilDestroyed(this)).subscribe(() => this._calculateColumnWidths());
4165
+ }
4166
+ if (!this._cellChangesSubscription) {
4167
+ this.tableCells.changes.pipe(untilDestroyed(this)).subscribe(() => this._calculateColumnWidths());
4168
+ }
4169
+ }
4160
4170
  _calculateColumnWidths() {
4161
4171
  if (!this.tableCells) {
4162
4172
  return;