@adaptabletools/adaptable 18.0.7 → 18.0.9
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 +2 -2
- package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +1 -1
- package/src/Strategy/AdaptableModuleBase.js +3 -1
- package/src/Utilities/Services/ReportService.js +1 -2
- package/src/View/StateManagement/StateManagementPopup.js +2 -2
- package/src/agGrid/AdaptableAgGrid.js +4 -5
- package/src/env.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +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.9",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"react-toastify": "9.1.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@ag-grid-community/core": ">=31.1
|
|
66
|
+
"@ag-grid-community/core": ">=31.3.1"
|
|
67
67
|
},
|
|
68
68
|
"publishTimestamp": 0,
|
|
69
69
|
"type": "module",
|
|
@@ -63,7 +63,7 @@ export interface ExportOptions {
|
|
|
63
63
|
*/
|
|
64
64
|
isColumnExportable?: (exportableColumnContext: ExportableColumnContext) => boolean;
|
|
65
65
|
/**
|
|
66
|
-
* Function invoked
|
|
66
|
+
* Function invoked before a Report is run, enabling users to preload the data before it is exported
|
|
67
67
|
*/
|
|
68
68
|
preProcessExport?: (preProcessExportContext: PreProcessExportContext) => boolean | Promise<ReportData | boolean>;
|
|
69
69
|
}
|
|
@@ -100,7 +100,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
100
100
|
commentApi: CommentApi;
|
|
101
101
|
private destroyed;
|
|
102
102
|
constructor(adaptable: IAdaptable);
|
|
103
|
-
get agGridApi(): import("@ag-grid-community/core/dist/
|
|
103
|
+
get agGridApi(): import("@ag-grid-community/core/dist/types/src/gridApi").GridApi<any>;
|
|
104
104
|
/**
|
|
105
105
|
* This is only meant to be called by the Adaptable instance.
|
|
106
106
|
*/
|
|
@@ -17,7 +17,9 @@ export class AdaptableModuleBase {
|
|
|
17
17
|
this.api = api;
|
|
18
18
|
this.api.eventApi.on('AdaptableReady', () => {
|
|
19
19
|
this.onAdaptableReady();
|
|
20
|
-
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
|
|
22
|
+
}, 100);
|
|
21
23
|
});
|
|
22
24
|
this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
|
|
23
25
|
this.onAdaptableStateReloaded(adaptableStateReloadedInfo);
|
|
@@ -406,14 +406,13 @@ export class ReportService {
|
|
|
406
406
|
.getAdaptableInstance()
|
|
407
407
|
.agGridAdapter.getUserGridOptionsProperty('excelStyles') || [];
|
|
408
408
|
this.adaptableApi.internalApi.forAllVisibleRowNodesDo((node, rowIndex) => {
|
|
409
|
-
var _a;
|
|
410
409
|
const rowParams = {
|
|
411
410
|
node,
|
|
412
411
|
data: node.data,
|
|
413
412
|
rowIndex,
|
|
414
413
|
api: agGridApi,
|
|
415
414
|
columnApi: null,
|
|
416
|
-
context:
|
|
415
|
+
context: agGridApi.getGridOption('context') || {},
|
|
417
416
|
};
|
|
418
417
|
const getRowStyleFn = agGridApi.getGridOption('getRowStyle');
|
|
419
418
|
const rowStyle = getRowStyleFn ? getRowStyleFn(rowParams) : {};
|
|
@@ -10,9 +10,9 @@ export const StateManagementPopup = (props) => {
|
|
|
10
10
|
return (React.createElement(PopupPanel, { className: baseClassName, headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
11
11
|
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "user-state", header: 'User State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginRight: 2, mb: 2 },
|
|
12
12
|
React.createElement(HelpBlock, { marginBottom: 2 }, 'Clear all current user state that has been persisted'),
|
|
13
|
-
React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any
|
|
13
|
+
React.createElement(HelpBlock, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any State you have previously created will be lost, and the initial Predefined Config will be reapplied'),
|
|
14
14
|
React.createElement(ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadPredefinedConfig() }, "Clear User State")),
|
|
15
|
-
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: '
|
|
15
|
+
React.createElement(Panel, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
|
|
16
16
|
React.createElement(HelpBlock, { marginTop: 2 }, 'Load Predefined Config (from a .json file) - this will cause this window to close'),
|
|
17
17
|
' ',
|
|
18
18
|
React.createElement(LoadButton, { tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onLoad: (json) => props.api.configApi.reloadPredefinedConfig(json), "data-name": "load-predefined-config-button" }, "Load Predefined Config")),
|
|
@@ -108,9 +108,9 @@ RowNodeProto.dispatchLocalEvent = function (event) {
|
|
|
108
108
|
const node = event.node;
|
|
109
109
|
const result = RowNode_dispatchLocalEvent.apply(this, arguments);
|
|
110
110
|
const extractGridApiFromRowNode = (rowNode) => {
|
|
111
|
-
var _a;
|
|
111
|
+
var _a, _b, _c, _d;
|
|
112
112
|
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
113
|
-
const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
|
|
113
|
+
const rowNodeApi = (_b = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi) !== null && _b !== void 0 ? _b : (_d = (_c = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _c === void 0 ? void 0 : _c.gos) === null || _d === void 0 ? void 0 : _d.api;
|
|
114
114
|
if (!rowNodeApi) {
|
|
115
115
|
AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
116
116
|
}
|
|
@@ -992,10 +992,9 @@ export class AdaptableAgGrid {
|
|
|
992
992
|
* Either initializes the AG Grid instance or delegates it to the framework wrappers (React/Anglar)
|
|
993
993
|
*/
|
|
994
994
|
async initializeAgGrid(gridOptions, modules, renderAgGridFrameworkComponent) {
|
|
995
|
+
var _a, _b, _c;
|
|
995
996
|
if (renderAgGridFrameworkComponent) {
|
|
996
|
-
console.log('renderAgGridFrameworkComponent');
|
|
997
997
|
const result = await renderAgGridFrameworkComponent(gridOptions);
|
|
998
|
-
console.log('AFTER renderAgGridFrameworkComponent');
|
|
999
998
|
if (result === false) {
|
|
1000
999
|
return false;
|
|
1001
1000
|
}
|
|
@@ -1016,7 +1015,7 @@ export class AdaptableAgGrid {
|
|
|
1016
1015
|
if (!this.getAgGridContainerElement()) {
|
|
1017
1016
|
// initialize the agGridContainerElement from the AgGrid instance
|
|
1018
1017
|
// @ts-ignore
|
|
1019
|
-
const gridRoot = agGridApi.ctrlsService.
|
|
1018
|
+
const gridRoot = (_c = (_b = (_a = agGridApi.ctrlsService) === null || _a === void 0 ? void 0 : _a.getGridBodyCtrl) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.eGridBody;
|
|
1020
1019
|
const gridContainer = gridRoot === null || gridRoot === void 0 ? void 0 : gridRoot.closest('[class*="ag-theme"]');
|
|
1021
1020
|
if (!gridContainer) {
|
|
1022
1021
|
this.logger.consoleError(`No AG Grid container could be derived from the Adaptable framework wrapper.
|
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: 1715670786217 || Date.now(),
|
|
4
|
+
VERSION: "18.0.9" || '--current-version--',
|
|
5
5
|
};
|