@skyux/ag-grid 14.3.7 → 14.3.9

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.
@@ -657,6 +657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
657
657
  function toColumnWidthName(breakpoint) {
658
658
  return breakpoint === 'xs' ? 'xs' : 'sm';
659
659
  }
660
+ const RESERVED_COLUMNS = ['ag-Grid-SelectionColumn'];
660
661
  /**
661
662
  * Connects `SkyAgGridWrapperComponent` with a `SkyDataViewComponent` to control the grid using a `SkyDataManagerService` instance.
662
663
  */
@@ -939,7 +940,8 @@ class SkyAgGridDataManagerAdapterDirective {
939
940
  const hideColumns = agGrid.api
940
941
  .getColumnState()
941
942
  .map((col) => col.colId)
942
- .filter((colId) => !displayedColumnIds.includes(colId));
943
+ .filter((colId) => !displayedColumnIds.includes(colId) &&
944
+ !RESERVED_COLUMNS.includes(colId));
943
945
  agGrid.api.setColumnsVisible(hideColumns, false);
944
946
  agGrid.api.setColumnsVisible(displayedColumnIds, true);
945
947
  agGrid.api.moveColumns(displayedColumnIds, 0);