@porscheinformatik/clr-addons 21.5.3 → 21.5.4

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.
@@ -5740,6 +5740,7 @@ class TreetableHeaderRenderer {
5740
5740
  }
5741
5741
  setWidth(width) {
5742
5742
  const el = this.elementRef.nativeElement;
5743
+ this.renderer.setStyle(el, 'max-width', `${width}px`);
5743
5744
  this.renderer.setStyle(el, 'width', `${width}px`);
5744
5745
  this.renderer.setStyle(el, 'flex', '0 0 auto');
5745
5746
  }
@@ -5783,6 +5784,7 @@ class TreetableCellRenderer {
5783
5784
  }
5784
5785
  setWidth(width) {
5785
5786
  const el = this.elementRef.nativeElement;
5787
+ this.renderer.setStyle(el, 'max-width', `${width}px`);
5786
5788
  this.renderer.setStyle(el, 'width', `${width}px`);
5787
5789
  this.renderer.setStyle(el, 'flex', '0 0 auto');
5788
5790
  }
@@ -13196,7 +13198,9 @@ class StatePersistenceKeyDirective {
13196
13198
  }
13197
13199
  initColumnOrder(savedState) {
13198
13200
  if (savedState?.columns) {
13199
- const entries = Object.entries(savedState.columns).map(([key, value]) => [key, value.order]);
13201
+ const entries = Object.entries(savedState.columns)
13202
+ .filter(([, value]) => typeof value.order === 'number')
13203
+ .map(([key, value]) => [key, value.order]);
13200
13204
  this.reorderDirective.initializeColumnOrder(Object.fromEntries(entries));
13201
13205
  }
13202
13206
  }