@adaptabletools/adaptable-cjs 18.0.14 → 18.0.16

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": "18.0.14",
3
+ "version": "18.0.16",
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",
@@ -255,6 +255,7 @@ export interface IAdaptable {
255
255
  getAgGridContainerElement(): HTMLElement | null;
256
256
  updateColumnModelAndRefreshGrid(config?: {
257
257
  skipColDefsRefresh?: boolean;
258
+ preemptiveColumnStateRefresh?: boolean;
258
259
  }): void;
259
260
  getAgGridColumnForColumnId(columnId: string): Column;
260
261
  getMinMaxCachedValueForColumn(column: AdaptableColumn, minMax: 'min' | 'max'): number | undefined;
@@ -138,7 +138,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
138
138
  });
139
139
  promise
140
140
  .then(() => {
141
- this.adaptable.updateColumnModelAndRefreshGrid({ skipColDefsRefresh: true });
141
+ this.adaptable.updateColumnModelAndRefreshGrid({
142
+ preemptiveColumnStateRefresh: true,
143
+ });
142
144
  this.adaptable.setLayout();
143
145
  })
144
146
  .then(() => {
@@ -196,6 +196,7 @@ export declare class AdaptableAgGrid implements IAdaptable {
196
196
  getNormalisedValueFromRawValue(rawValue: any, column: AdaptableColumn): string | number | boolean | Date | unknown;
197
197
  updateColumnModelAndRefreshGrid(config?: {
198
198
  skipColDefsRefresh?: boolean;
199
+ preemptiveColumnStateRefresh?: boolean;
199
200
  }): void;
200
201
  redrawBody(): void;
201
202
  refreshHeader(): void;
@@ -1800,12 +1800,6 @@ class AdaptableAgGrid {
1800
1800
  if (result == undefined && rowNode.data) {
1801
1801
  result = rowNode.data[this.adaptableOptions.primaryKey];
1802
1802
  }
1803
- if (result == undefined && rowNode.id != undefined) {
1804
- // this is reached when called for group rows,
1805
- // which don't have a rowNode.data object
1806
- // but do have an id property
1807
- result = rowNode.id;
1808
- }
1809
1803
  return result;
1810
1804
  }
1811
1805
  getRawValueFromRowNode(rowNode, columnId) {
@@ -1883,6 +1877,9 @@ class AdaptableAgGrid {
1883
1877
  return rawValue;
1884
1878
  }
1885
1879
  updateColumnModelAndRefreshGrid(config) {
1880
+ if (config === null || config === void 0 ? void 0 : config.preemptiveColumnStateRefresh) {
1881
+ this.deriveAdaptableColumnStateFromAgGrid();
1882
+ }
1886
1883
  if (!(config === null || config === void 0 ? void 0 : config.skipColDefsRefresh)) {
1887
1884
  this.refreshColDefs();
1888
1885
  }
@@ -3163,8 +3160,13 @@ class AdaptableAgGrid {
3163
3160
  return this.ReportService.getCellExportValueFromRawValue(rowNode, rawValue, columnId);
3164
3161
  }
3165
3162
  processCellForExcelExport(rowNode, columnId) {
3163
+ var _a;
3166
3164
  if (this.api.exportApi.internalApi.isVisualDataExportInProgress()) {
3167
- const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, this.getPrimaryKeyValueFromRowNode(rowNode));
3165
+ const cellKey = this.agGridColumnAdapter.getExcelClassNameForCell(columnId, (_a = this.getPrimaryKeyValueFromRowNode(rowNode)) !== null && _a !== void 0 ? _a : rowNode.id
3166
+ // when getPrimaryKeyValueFromRowNode is called for group rows,
3167
+ // which don't have a rowNode.data object, the result is undefined
3168
+ // but we do have an id property on the rowNode object, so we'll use that
3169
+ );
3168
3170
  const isoFormattedDate = this.ReportService.getExcelStyleWithFormattedDate(cellKey);
3169
3171
  if (isoFormattedDate) {
3170
3172
  // this is a Date cell which will be formatted by Excel
@@ -3725,6 +3727,7 @@ class AdaptableAgGrid {
3725
3727
  */
3726
3728
  updateLayoutFromGrid() {
3727
3729
  var _a, _b;
3730
+ this.logger.info('updateLayoutFromGrid()');
3728
3731
  const agGridApi = this.agGridAdapter.getAgGridApi();
3729
3732
  const columnState = agGridApi.getColumnState();
3730
3733
  const expandedState = agGridApi.getState().rowGroupExpansion || { expandedRowGroupIds: [] };
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  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: 1716905716519 || Date.now(),
6
- VERSION: "18.0.14" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1716977367968 || Date.now(),
6
+ VERSION: "18.0.16" || '--current-version--',
7
7
  };