@adaptabletools/adaptable-cjs 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.cjs.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-cjs",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-toastify": "9.1.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"ag-grid-community": ">=31.1
|
|
67
|
+
"ag-grid-community": ">=31.3.1"
|
|
68
68
|
},
|
|
69
69
|
"publishTimestamp": 0
|
|
70
70
|
}
|
|
@@ -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
|
*/
|
|
@@ -21,7 +21,9 @@ class AdaptableModuleBase {
|
|
|
21
21
|
this.api = api;
|
|
22
22
|
this.api.eventApi.on('AdaptableReady', () => {
|
|
23
23
|
this.onAdaptableReady();
|
|
24
|
-
|
|
24
|
+
setTimeout(() => {
|
|
25
|
+
this.api.configApi.dispatchStateReadyAction(this.moduleInfo.ModuleName);
|
|
26
|
+
}, 100);
|
|
25
27
|
});
|
|
26
28
|
this.api.eventApi.on('AdaptableStateReloaded', (adaptableStateReloadedInfo) => {
|
|
27
29
|
this.onAdaptableStateReloaded(adaptableStateReloadedInfo);
|
|
@@ -410,14 +410,13 @@ class ReportService {
|
|
|
410
410
|
.getAdaptableInstance()
|
|
411
411
|
.agGridAdapter.getUserGridOptionsProperty('excelStyles') || [];
|
|
412
412
|
this.adaptableApi.internalApi.forAllVisibleRowNodesDo((node, rowIndex) => {
|
|
413
|
-
var _a;
|
|
414
413
|
const rowParams = {
|
|
415
414
|
node,
|
|
416
415
|
data: node.data,
|
|
417
416
|
rowIndex,
|
|
418
417
|
api: agGridApi,
|
|
419
418
|
columnApi: null,
|
|
420
|
-
context:
|
|
419
|
+
context: agGridApi.getGridOption('context') || {},
|
|
421
420
|
};
|
|
422
421
|
const getRowStyleFn = agGridApi.getGridOption('getRowStyle');
|
|
423
422
|
const rowStyle = getRowStyleFn ? getRowStyleFn(rowParams) : {};
|
|
@@ -14,9 +14,9 @@ const StateManagementPopup = (props) => {
|
|
|
14
14
|
return (React.createElement(PopupPanel_1.PopupPanel, { className: baseClassName, headerText: props.moduleInfo.FriendlyName, glyphicon: props.moduleInfo.Glyph, infoLink: props.moduleInfo.HelpPage, infoLinkDisabled: !props.api.internalApi.isDocumentationLinksDisplayed() },
|
|
15
15
|
React.createElement(Panel_1.default, { className: `${baseClassName}__panel`, "data-name": "user-state", header: 'User State', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginRight: 2, mb: 2 },
|
|
16
16
|
React.createElement(HelpBlock_1.default, { marginBottom: 2 }, 'Clear all current user state that has been persisted'),
|
|
17
|
-
React.createElement(HelpBlock_1.default, { style: { color: 'var(--ab-color-warn)' } }, 'This will cause this window to close and any
|
|
17
|
+
React.createElement(HelpBlock_1.default, { 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'),
|
|
18
18
|
React.createElement(ClearButton_1.ClearButton, { "data-name": "clear-user-state-button", tone: "info", variant: "raised", marginTop: 2, accessLevel: props.accessLevel, onClick: () => props.api.configApi.reloadPredefinedConfig() }, "Clear User State")),
|
|
19
|
-
React.createElement(Panel_1.default, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: '
|
|
19
|
+
React.createElement(Panel_1.default, { className: `${baseClassName}__panel`, "data-name": "predefined-config", header: 'Predefined Config', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 3, marginRight: 2, mb: 2 },
|
|
20
20
|
React.createElement(HelpBlock_1.default, { marginTop: 2 }, 'Load Predefined Config (from a .json file) - this will cause this window to close'),
|
|
21
21
|
' ',
|
|
22
22
|
React.createElement(LoadButton_1.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")),
|
|
@@ -112,9 +112,9 @@ RowNodeProto.dispatchLocalEvent = function (event) {
|
|
|
112
112
|
const node = event.node;
|
|
113
113
|
const result = RowNode_dispatchLocalEvent.apply(this, arguments);
|
|
114
114
|
const extractGridApiFromRowNode = (rowNode) => {
|
|
115
|
-
var _a;
|
|
115
|
+
var _a, _b, _c, _d;
|
|
116
116
|
// starting with AG Grid 26.1.0 the gridApi is wrapped in a Beans property
|
|
117
|
-
const rowNodeApi = (_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.beans) === null || _a === void 0 ? void 0 : _a.gridApi;
|
|
117
|
+
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;
|
|
118
118
|
if (!rowNodeApi) {
|
|
119
119
|
AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`No GridAPI found in passed RowNode, this should never happen!`, rowNode);
|
|
120
120
|
}
|
|
@@ -996,10 +996,9 @@ class AdaptableAgGrid {
|
|
|
996
996
|
* Either initializes the AG Grid instance or delegates it to the framework wrappers (React/Anglar)
|
|
997
997
|
*/
|
|
998
998
|
async initializeAgGrid(gridOptions, modules, renderAgGridFrameworkComponent) {
|
|
999
|
+
var _a, _b, _c;
|
|
999
1000
|
if (renderAgGridFrameworkComponent) {
|
|
1000
|
-
console.log('renderAgGridFrameworkComponent');
|
|
1001
1001
|
const result = await renderAgGridFrameworkComponent(gridOptions);
|
|
1002
|
-
console.log('AFTER renderAgGridFrameworkComponent');
|
|
1003
1002
|
if (result === false) {
|
|
1004
1003
|
return false;
|
|
1005
1004
|
}
|
|
@@ -1020,7 +1019,7 @@ class AdaptableAgGrid {
|
|
|
1020
1019
|
if (!this.getAgGridContainerElement()) {
|
|
1021
1020
|
// initialize the agGridContainerElement from the AgGrid instance
|
|
1022
1021
|
// @ts-ignore
|
|
1023
|
-
const gridRoot = agGridApi.ctrlsService.
|
|
1022
|
+
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;
|
|
1024
1023
|
const gridContainer = gridRoot === null || gridRoot === void 0 ? void 0 : gridRoot.closest('[class*="ag-theme"]');
|
|
1025
1024
|
if (!gridContainer) {
|
|
1026
1025
|
this.logger.consoleError(`No AG Grid container could be derived from the Adaptable framework wrapper.
|
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:
|
|
6
|
-
VERSION: "18.0.
|
|
5
|
+
PUBLISH_TIMESTAMP: 1715670815539 || Date.now(),
|
|
6
|
+
VERSION: "18.0.9" || '--current-version--',
|
|
7
7
|
};
|