@adaptabletools/adaptable 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 +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +7 -0
- package/src/env.js +2 -2
- package/src/types.d.ts +1 -1
- package/tsconfig.esm.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "18.0.
|
|
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",
|
package/src/Api/ColumnApi.d.ts
CHANGED
|
@@ -292,7 +292,7 @@ export interface ColumnApi {
|
|
|
292
292
|
setColumnDefinitions(columnDefinitions: (ColDef | ColGroupDef)[]): void;
|
|
293
293
|
}
|
|
294
294
|
/**
|
|
295
|
-
* Column
|
|
295
|
+
* Configuration of an AG Grid Column, used for runtime updating of ColDefs
|
|
296
296
|
*/
|
|
297
297
|
export interface ColumnConfig {
|
|
298
298
|
/** Column Id */
|
|
@@ -3942,12 +3942,19 @@ export class AdaptableAgGrid {
|
|
|
3942
3942
|
const gridOptionsService = agGridApi.gos;
|
|
3943
3943
|
const self = this;
|
|
3944
3944
|
gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
|
|
3945
|
+
// `columnDefs`
|
|
3945
3946
|
const passedColumnDefs = options.columnDefs;
|
|
3946
3947
|
if (passedColumnDefs) {
|
|
3947
3948
|
const colDefsWithSpecialColumns = self.getColumnDefinitionsInclSpecialColumns(passedColumnDefs);
|
|
3948
3949
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
3949
3950
|
self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
|
|
3950
3951
|
}
|
|
3952
|
+
// `context`
|
|
3953
|
+
const passedContext = options.context;
|
|
3954
|
+
if (passedContext) {
|
|
3955
|
+
passedContext['__adaptable'] = self;
|
|
3956
|
+
passedContext['adaptableApi'] = self.api;
|
|
3957
|
+
}
|
|
3951
3958
|
// we mutated the options array, so it's OK to use the 'arguments' object
|
|
3952
3959
|
GridOptionsService_updateGridOptions.apply(this, arguments);
|
|
3953
3960
|
};
|
package/src/env.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
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:
|
|
4
|
-
VERSION: "18.0.
|
|
3
|
+
PUBLISH_TIMESTAMP: 1716828231909 || Date.now(),
|
|
4
|
+
VERSION: "18.0.13" || '--current-version--',
|
|
5
5
|
};
|
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';
|