@adaptabletools/adaptable-cjs 20.1.6 → 20.1.7
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": "20.1.
|
|
3
|
+
"version": "20.1.7",
|
|
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: "20.1.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1748599445310 || Date.now(),
|
|
6
|
+
VERSION: "20.1.7" || '--current-version--',
|
|
7
7
|
};
|
|
@@ -930,14 +930,15 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
930
930
|
return columnState;
|
|
931
931
|
}
|
|
932
932
|
computePivotAggregations(layout, columnState) {
|
|
933
|
-
const
|
|
933
|
+
const PivotAggregationColumns = layout.PivotAggregationColumns || [];
|
|
934
|
+
const pivotAggsToIndexes = PivotAggregationColumns.reduce((acc, { ColumnId }, index) => {
|
|
934
935
|
acc[ColumnId] = index;
|
|
935
936
|
return acc;
|
|
936
937
|
}, {});
|
|
937
938
|
columnState.state = columnState.state.map((colState) => {
|
|
938
939
|
const columnId = colState.colId;
|
|
939
940
|
const aggIndex = pivotAggsToIndexes[columnId];
|
|
940
|
-
const aggFunc = aggIndex != null ?
|
|
941
|
+
const aggFunc = aggIndex != null ? PivotAggregationColumns[aggIndex].AggFunc.aggFunc : null;
|
|
941
942
|
return {
|
|
942
943
|
...colState,
|
|
943
944
|
aggFunc: aggIndex != null ? (aggFunc === true ? DEFAULT_AGG_FUNC : aggFunc) : null,
|
|
@@ -1112,7 +1113,7 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
1112
1113
|
// fourth: ...etc
|
|
1113
1114
|
// so we apply the states for all aggregations except the last one
|
|
1114
1115
|
//
|
|
1115
|
-
const aggregationsMapForOrder = layout.PivotAggregationColumns.map((_, index) => layout.PivotAggregationColumns.slice(0, index));
|
|
1116
|
+
const aggregationsMapForOrder = (layout.PivotAggregationColumns || []).map((_, index) => layout.PivotAggregationColumns.slice(0, index));
|
|
1116
1117
|
aggregationsMapForOrder.forEach((agg) => {
|
|
1117
1118
|
// we're mutating the columnState here
|
|
1118
1119
|
this.computePivotAggregations({ ...layout, PivotAggregationColumns: agg }, columnState);
|
|
@@ -1307,7 +1308,7 @@ class LayoutManager extends LMEmitter_1.LMEmitter {
|
|
|
1307
1308
|
};
|
|
1308
1309
|
const colIdInfo = (0, destructurePivotColumnId_1.destructurePivotColumnId)(colDef, {
|
|
1309
1310
|
pivotColIds: this.currentLayout.PivotColumns,
|
|
1310
|
-
aggColIds: this.currentLayout.PivotAggregationColumns.map((col) => col.ColumnId),
|
|
1311
|
+
aggColIds: (this.currentLayout.PivotAggregationColumns || []).map((col) => col.ColumnId),
|
|
1311
1312
|
}, (message) => this.warn(message));
|
|
1312
1313
|
if (colIdInfo === '!unknown!') {
|
|
1313
1314
|
return defaultHiddenConfig;
|