@adaptabletools/adaptable 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",
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;
@@ -511,7 +511,7 @@ export class GridApiImpl extends ApiBase {
511
511
  refreshGroupRowNodes() {
512
512
  // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
513
513
  this.getAgGridApi().refreshClientSideRowModel('group');
514
- this._adaptable.updateRowGroupsExpandedState();
514
+ this._adaptable.updateRowGroupsAndColumnGroupsExpandedState();
515
515
  }
516
516
  isCellEditable(gridCell) {
517
517
  // 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
  /**
@@ -1966,7 +1966,7 @@ You need to define at least one Layout!`);
1966
1966
  this.addSyntheticPrimaryKey(dataSource);
1967
1967
  }
1968
1968
  this.agGridAdapter.setGridOption('rowData', dataSource);
1969
- this.updateRowGroupsExpandedState();
1969
+ this.updateRowGroupsAndColumnGroupsExpandedState();
1970
1970
  // this.updateColumnModelAndRefreshGrid();
1971
1971
  }
1972
1972
  getGridData() {
@@ -2009,12 +2009,13 @@ You need to define at least one Layout!`);
2009
2009
  }
2010
2010
  return firstRowNode;
2011
2011
  }
2012
- updateRowGroupsExpandedState(layout) {
2012
+ updateRowGroupsAndColumnGroupsExpandedState(layout) {
2013
2013
  if (!layout) {
2014
2014
  layout = this.api.layoutApi.getCurrentLayout();
2015
2015
  }
2016
2016
  const layoutModel = layoutStateToLayoutModel(layout);
2017
2017
  this.layoutManager.applyRowGroupValues(layoutModel.RowGroupValues, layoutModel.RowGroupedColumns);
2018
+ this.layoutManager.applyColumnGroupCollapseExpandState(layoutModel);
2018
2019
  }
2019
2020
  isGroupRowNode(rowNode) {
2020
2021
  if (!rowNode) {
@@ -2100,7 +2101,7 @@ You need to define at least one Layout!`);
2100
2101
  dataUpdateConfig.callback(transaction);
2101
2102
  }
2102
2103
  resolve(transaction?.add);
2103
- this.updateRowGroupsExpandedState();
2104
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2104
2105
  });
2105
2106
  if (dataUpdateConfig.flushAsync) {
2106
2107
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
@@ -2112,7 +2113,7 @@ You need to define at least one Layout!`);
2112
2113
  if (dataUpdateConfig.flushAsync) {
2113
2114
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
2114
2115
  }
2115
- this.updateRowGroupsExpandedState();
2116
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2116
2117
  return Promise.resolve(transaction?.add);
2117
2118
  }
2118
2119
  }
@@ -2140,7 +2141,7 @@ You need to define at least one Layout!`);
2140
2141
  dataUpdateConfig.callback(transaction);
2141
2142
  }
2142
2143
  if (transaction?.add) {
2143
- this.updateRowGroupsExpandedState();
2144
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2144
2145
  }
2145
2146
  resolve({
2146
2147
  added: transaction?.add,
@@ -2159,7 +2160,7 @@ You need to define at least one Layout!`);
2159
2160
  addIndex: dataUpdateConfig.addIndex,
2160
2161
  });
2161
2162
  if (transaction?.add) {
2162
- this.updateRowGroupsExpandedState();
2163
+ this.updateRowGroupsAndColumnGroupsExpandedState();
2163
2164
  }
2164
2165
  if (dataUpdateConfig.flushAsync) {
2165
2166
  this.agGridAdapter.getAgGridApi().flushAsyncTransactions();
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: 1750939303696 || Date.now(),
4
- VERSION: "20.2.3" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1751027819726 || Date.now(),
4
+ VERSION: "20.2.4" || '--current-version--',
5
5
  };