@adaptabletools/adaptable-cjs 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-cjs",
|
|
3
|
-
"version": "21.0.
|
|
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
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
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" || '',
|
|
5
|
-
PUBLISH_TIMESTAMP:
|
|
6
|
-
VERSION: "21.0.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1761289716491 || Date.now(),
|
|
6
|
+
VERSION: "21.0.9-canary.0" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -97,7 +97,7 @@ function isGridLayoutSame(options) {
|
|
|
97
97
|
if (!!gridLayout != !!layout) {
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
|
-
return (0, isLayoutEqual_1.isLayoutEqual)(gridLayout, layout);
|
|
100
|
+
return (0, isLayoutEqual_1.isLayoutEqual)((0, normalizeLayoutModel_1.normalizeLayoutModel)(gridLayout), (0, normalizeLayoutModel_1.normalizeLayoutModel)(layout));
|
|
101
101
|
}
|
|
102
102
|
function getDefaultColumnSizeStateForColDef(colId, colDef, options) {
|
|
103
103
|
if (!colDef) {
|
|
@@ -336,8 +336,6 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
336
336
|
getPivotLayoutModelFromGrid() {
|
|
337
337
|
const pivotResultColumns = this.gridApi.getPivotResultColumns() || [];
|
|
338
338
|
const pivotResultColumnsSet = new Set(pivotResultColumns.map((col) => col.getColId()));
|
|
339
|
-
const rowGroupColumns = this.gridApi.getRowGroupColumns() || [];
|
|
340
|
-
const rowGroupColumnsSet = new Set(rowGroupColumns.map((col) => col.getColId()));
|
|
341
339
|
const prevLayout = this.currentLayout;
|
|
342
340
|
const columnState = this.gridApi
|
|
343
341
|
.getColumnState()
|
|
@@ -365,7 +363,7 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
365
363
|
// since having normal table columns here will break the equality check
|
|
366
364
|
// so we only want to keep the group columns and the pivot result columns
|
|
367
365
|
Object.keys(ColumnVisibility).forEach((colId) => {
|
|
368
|
-
const isInLayout = pivotResultColumnsSet.has(colId) ||
|
|
366
|
+
const isInLayout = pivotResultColumnsSet.has(colId) || colId.startsWith(normalizeLayoutModel_1.AUTO_GROUP_COLUMN_ID__SINGLE);
|
|
369
367
|
if (!isInLayout) {
|
|
370
368
|
delete ColumnVisibility[colId];
|
|
371
369
|
}
|