@adaptabletools/adaptable-cjs 18.0.12 → 18.0.14

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.12",
3
+ "version": "18.0.14",
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",
@@ -292,7 +292,7 @@ export interface ColumnApi {
292
292
  setColumnDefinitions(columnDefinitions: (ColDef | ColGroupDef)[]): void;
293
293
  }
294
294
  /**
295
- * Column Configuration
295
+ * Configuration of an AG Grid Column, used for runtime updating of ColDefs
296
296
  */
297
297
  export interface ColumnConfig {
298
298
  /** Column Id */
@@ -1800,6 +1800,12 @@ 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
+ }
1803
1809
  return result;
1804
1810
  }
1805
1811
  getRawValueFromRowNode(rowNode, columnId) {
@@ -3946,12 +3952,19 @@ class AdaptableAgGrid {
3946
3952
  const gridOptionsService = agGridApi.gos;
3947
3953
  const self = this;
3948
3954
  gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
3955
+ // `columnDefs`
3949
3956
  const passedColumnDefs = options.columnDefs;
3950
3957
  if (passedColumnDefs) {
3951
3958
  const colDefsWithSpecialColumns = self.getColumnDefinitionsInclSpecialColumns(passedColumnDefs);
3952
3959
  options['columnDefs'] = colDefsWithSpecialColumns;
3953
3960
  self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
3954
3961
  }
3962
+ // `context`
3963
+ const passedContext = options.context;
3964
+ if (passedContext) {
3965
+ passedContext['__adaptable'] = self;
3966
+ passedContext['adaptableApi'] = self.api;
3967
+ }
3955
3968
  // we mutated the options array, so it's OK to use the 'arguments' object
3956
3969
  GridOptionsService_updateGridOptions.apply(this, arguments);
3957
3970
  };
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: 1716379134351 || Date.now(),
6
- VERSION: "18.0.12" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1716905716519 || Date.now(),
6
+ VERSION: "18.0.14" || '--current-version--',
7
7
  };
package/src/types.d.ts CHANGED
@@ -65,7 +65,7 @@ export type { CalendarApi } from './Api/CalendarApi';
65
65
  export type { CalculatedColumnApi } from './Api/CalculatedColumnApi';
66
66
  export type { CellSummaryApi } from './Api/CellSummaryApi';
67
67
  export type { ChartingApi } from './Api/ChartingApi';
68
- export type { ColumnApi } from './Api/ColumnApi';
68
+ export type { ColumnApi, ColumnConfig } from './Api/ColumnApi';
69
69
  export type { ColumnFilterApi } from './Api/ColumnFilterApi';
70
70
  export type { CommentApi } from './Api/CommentApi';
71
71
  export type { ConfigApi } from './Api/ConfigApi';