@adaptabletools/adaptable-cjs 18.0.12 → 18.0.13

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.13",
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 */
@@ -3946,12 +3946,19 @@ class AdaptableAgGrid {
3946
3946
  const gridOptionsService = agGridApi.gos;
3947
3947
  const self = this;
3948
3948
  gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
3949
+ // `columnDefs`
3949
3950
  const passedColumnDefs = options.columnDefs;
3950
3951
  if (passedColumnDefs) {
3951
3952
  const colDefsWithSpecialColumns = self.getColumnDefinitionsInclSpecialColumns(passedColumnDefs);
3952
3953
  options['columnDefs'] = colDefsWithSpecialColumns;
3953
3954
  self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
3954
3955
  }
3956
+ // `context`
3957
+ const passedContext = options.context;
3958
+ if (passedContext) {
3959
+ passedContext['__adaptable'] = self;
3960
+ passedContext['adaptableApi'] = self.api;
3961
+ }
3955
3962
  // we mutated the options array, so it's OK to use the 'arguments' object
3956
3963
  GridOptionsService_updateGridOptions.apply(this, arguments);
3957
3964
  };
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: 1716828261274 || Date.now(),
6
+ VERSION: "18.0.13" || '--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';