@adaptabletools/adaptable 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 +1 -1
- package/src/Api/ColumnApi.d.ts +1 -1
- package/src/agGrid/AdaptableAgGrid.js +13 -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.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",
|
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 */
|
|
@@ -1796,6 +1796,12 @@ export class AdaptableAgGrid {
|
|
|
1796
1796
|
if (result == undefined && rowNode.data) {
|
|
1797
1797
|
result = rowNode.data[this.adaptableOptions.primaryKey];
|
|
1798
1798
|
}
|
|
1799
|
+
if (result == undefined && rowNode.id != undefined) {
|
|
1800
|
+
// this is reached when called for group rows,
|
|
1801
|
+
// which don't have a rowNode.data object
|
|
1802
|
+
// but do have an id property
|
|
1803
|
+
result = rowNode.id;
|
|
1804
|
+
}
|
|
1799
1805
|
return result;
|
|
1800
1806
|
}
|
|
1801
1807
|
getRawValueFromRowNode(rowNode, columnId) {
|
|
@@ -3942,12 +3948,19 @@ export class AdaptableAgGrid {
|
|
|
3942
3948
|
const gridOptionsService = agGridApi.gos;
|
|
3943
3949
|
const self = this;
|
|
3944
3950
|
gridOptionsService.updateGridOptions = function ({ options, force, source = 'api', }) {
|
|
3951
|
+
// `columnDefs`
|
|
3945
3952
|
const passedColumnDefs = options.columnDefs;
|
|
3946
3953
|
if (passedColumnDefs) {
|
|
3947
3954
|
const colDefsWithSpecialColumns = self.getColumnDefinitionsInclSpecialColumns(passedColumnDefs);
|
|
3948
3955
|
options['columnDefs'] = colDefsWithSpecialColumns;
|
|
3949
3956
|
self.logger.info(`Added SpecialColumns on GridOptions.columnDefs update (source=${source})`);
|
|
3950
3957
|
}
|
|
3958
|
+
// `context`
|
|
3959
|
+
const passedContext = options.context;
|
|
3960
|
+
if (passedContext) {
|
|
3961
|
+
passedContext['__adaptable'] = self;
|
|
3962
|
+
passedContext['adaptableApi'] = self.api;
|
|
3963
|
+
}
|
|
3951
3964
|
// we mutated the options array, so it's OK to use the 'arguments' object
|
|
3952
3965
|
GridOptionsService_updateGridOptions.apply(this, arguments);
|
|
3953
3966
|
};
|
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: 1716905684241 || Date.now(),
|
|
4
|
+
VERSION: "18.0.14" || '--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';
|