@adaptabletools/adaptable 21.0.8 → 21.0.9-canary.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "21.0.8",
3
+ "version": "21.0.9-canary.0",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
3
- PUBLISH_TIMESTAMP: 1761108086778 || Date.now(),
4
- VERSION: "21.0.8" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1761289684570 || Date.now(),
4
+ VERSION: "21.0.9-canary.0" || '--current-version--',
5
5
  };
@@ -94,7 +94,7 @@ function isGridLayoutSame(options) {
94
94
  if (!!gridLayout != !!layout) {
95
95
  return false;
96
96
  }
97
- return isLayoutEqual(gridLayout, layout);
97
+ return isLayoutEqual(normalizeLayoutModel(gridLayout), normalizeLayoutModel(layout));
98
98
  }
99
99
  function getDefaultColumnSizeStateForColDef(colId, colDef, options) {
100
100
  if (!colDef) {
@@ -333,8 +333,6 @@ export class LayoutManager extends LMEmitter {
333
333
  getPivotLayoutModelFromGrid() {
334
334
  const pivotResultColumns = this.gridApi.getPivotResultColumns() || [];
335
335
  const pivotResultColumnsSet = new Set(pivotResultColumns.map((col) => col.getColId()));
336
- const rowGroupColumns = this.gridApi.getRowGroupColumns() || [];
337
- const rowGroupColumnsSet = new Set(rowGroupColumns.map((col) => col.getColId()));
338
336
  const prevLayout = this.currentLayout;
339
337
  const columnState = this.gridApi
340
338
  .getColumnState()
@@ -362,7 +360,7 @@ export class LayoutManager extends LMEmitter {
362
360
  // since having normal table columns here will break the equality check
363
361
  // so we only want to keep the group columns and the pivot result columns
364
362
  Object.keys(ColumnVisibility).forEach((colId) => {
365
- const isInLayout = pivotResultColumnsSet.has(colId) || rowGroupColumnsSet.has(colId);
363
+ const isInLayout = pivotResultColumnsSet.has(colId) || colId.startsWith(AUTO_GROUP_COLUMN_ID__SINGLE);
366
364
  if (!isInLayout) {
367
365
  delete ColumnVisibility[colId];
368
366
  }