@adaptabletools/adaptable-cjs 20.2.3 → 20.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "20.2.3",
3
+ "version": "20.2.4",
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",
@@ -212,7 +212,7 @@ export interface IAdaptable {
212
212
  getGroupRowNodes(config?: {
213
213
  filterFn?: (rowNode: IRowNode) => boolean;
214
214
  }): IRowNode[];
215
- updateRowGroupsExpandedState(layout?: Layout): void;
215
+ updateRowGroupsAndColumnGroupsExpandedState(layout?: Layout): void;
216
216
  getRowsInViewport(): IRowNode[];
217
217
  isGroupRowNode(rowNode: IRowNode): boolean;
218
218
  isRowNodeVisible(rowNode: IRowNode): boolean;
@@ -515,7 +515,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
515
515
  refreshGroupRowNodes() {
516
516
  // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
517
517
  this.getAgGridApi().refreshClientSideRowModel('group');
518
- this._adaptable.updateRowGroupsExpandedState();
518
+ this._adaptable.updateRowGroupsAndColumnGroupsExpandedState();
519
519
  }
520
520
  isCellEditable(gridCell) {
521
521
  // If not Grid Cell or Column then return false - GridCell.column may be undefined for cells from synthetic columns created by AG Grid (ex. autoGroup columns)
@@ -221,7 +221,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
221
221
  private addSyntheticPrimaryKeyIfMissing;
222
222
  getFirstDisplayedRowNode(): IRowNode;
223
223
  getFirstRowNode(): IRowNode | undefined;
224
- updateRowGroupsExpandedState(layout?: Layout): void;
224
+ updateRowGroupsAndColumnGroupsExpandedState(layout?: Layout): void;
225
225
  isGroupRowNode(rowNode: IRowNode): boolean;
226
226
  getFilteredData(): any[];
227
227
  /**
@@ -1970,7 +1970,7 @@ You need to define at least one Layout!`);
1970
1970
  this.addSyntheticPrimaryKey(dataSource);
1971
1971
  }
1972
1972
  this.agGridAdapter.setGridOption('rowData', dataSource);
1973
- this.updateRowGroupsExpandedState();
1973
+ this.updateRowGroupsAndColumnGroupsExpandedState();
1974
1974
  // this.updateColumnModelAndRefreshGrid();
1975
1975
  }
1976
1976
  getGridData() {
@@ -2013,12 +2013,13 @@ You need to define at least one Layout!`);
2013
2013
  }
2014
2014
  return firstRowNode;
2015
2015
  }
2016
- updateRowGroupsExpandedState(layout) {
2016
+ updateRowGroupsAndColumnGroupsExpandedState(layout) {
2017
2017
  if (!layout) {
2018
2018
  layout = this.api.layoutApi.getCurrentLayout();
2019
2019
  }
2020
2020
  const layoutModel = (0, LayoutHelpers_1.layoutStateToLayoutModel)(layout);
2021
2021
  this.layoutManager.applyRowGroupValues(layoutModel.RowGroupValues, layoutModel.RowGroupedColumns);
2022
+ this.layoutManager.applyColumnGroupCollapseExpandState(layoutModel);
2022
2023
  }
2023
2024
  isGroupRowNode(rowNode) {
2024
2025
  if (!rowNode) {
@@ -2104,7 +2105,7 @@ You need to define at least one Layout!`);
2104
2105
  dataUpdateConfig.callback(transaction);
2105
2106
  }
2106
2107
  resolve(transaction?.add);
2107
- this.updateRowGroupsExpandedState();
2108
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2108
2109
  });
2109
2110
  if (dataUpdateConfig.flushAsync) {
2110
2111
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
@@ -2116,7 +2117,7 @@ You need to define at least one Layout!`);
2116
2117
  if (dataUpdateConfig.flushAsync) {
2117
2118
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
2118
2119
  }
2119
- this.updateRowGroupsExpandedState();
2120
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2120
2121
  return Promise.resolve(transaction?.add);
2121
2122
  }
2122
2123
  }
@@ -2144,7 +2145,7 @@ You need to define at least one Layout!`);
2144
2145
  dataUpdateConfig.callback(transaction);
2145
2146
  }
2146
2147
  if (transaction?.add) {
2147
- this.updateRowGroupsExpandedState();
2148
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2148
2149
  }
2149
2150
  resolve({
2150
2151
  added: transaction?.add,
@@ -2163,7 +2164,7 @@ You need to define at least one Layout!`);
2163
2164
  addIndex: dataUpdateConfig.addIndex,
2164
2165
  });
2165
2166
  if (transaction?.add) {
2166
- this.updateRowGroupsExpandedState();
2167
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2167
2168
  }
2168
2169
  if (dataUpdateConfig.flushAsync) {
2169
2170
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
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: 1750939331799 || Date.now(),
6
- VERSION: "20.2.3" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1751027848227 || Date.now(),
6
+ VERSION: "20.2.4" || '--current-version--',
7
7
  };