@adaptabletools/adaptable-cjs 18.0.8 → 18.0.10-canary.0
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 +3 -3
- 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/Utilities/Services/RowSummaryService.js +2 -2
- package/src/View/StateManagement/StateManagementPopup.js +2 -2
- package/src/agGrid/AdaptableAgGrid.js +3 -3
- 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.10-canary.0",
|
|
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",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"styled-components": "^4.3.2",
|
|
61
61
|
"tinycolor2": "^1.4.2",
|
|
62
62
|
"tslib": "^2.3.0",
|
|
63
|
-
"uuid": "
|
|
63
|
+
"uuid": "9.0.1",
|
|
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) : {};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RowSummaryService = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const lodash_1 = require("lodash");
|
|
6
5
|
const RowSummary_1 = require("../../PredefinedConfig/Common/RowSummary");
|
|
7
6
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
@@ -10,6 +9,7 @@ const Helper_1 = tslib_1.__importDefault(require("../Helpers/Helper"));
|
|
|
10
9
|
const AggregatedScalarLiveValue_1 = require("./AggregatedScalarLiveValue");
|
|
11
10
|
const ObjectExtensions_1 = require("../Extensions/ObjectExtensions");
|
|
12
11
|
const throttle_1 = tslib_1.__importDefault(require("lodash/throttle"));
|
|
12
|
+
const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
|
|
13
13
|
/**
|
|
14
14
|
* The logic is extracted here to make it easier to follow
|
|
15
15
|
*/
|
|
@@ -156,7 +156,7 @@ class RowSummaryService {
|
|
|
156
156
|
}),
|
|
157
157
|
};
|
|
158
158
|
});
|
|
159
|
-
if (this.previousRowSummaries && (0,
|
|
159
|
+
if (this.previousRowSummaries && (0, isEqual_1.default)(rowSummariesResults, this.previousRowSummaries)) {
|
|
160
160
|
return;
|
|
161
161
|
}
|
|
162
162
|
this.api.internalApi.dispatchReduxAction((0, SystemRedux_1.SystemRowSummarySet)(rowSummariesResults));
|
|
@@ -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
|
}
|
|
@@ -1790,7 +1790,7 @@ class AdaptableAgGrid {
|
|
|
1790
1790
|
const agGridApi = gridApi || this.agGridAdapter.getAgGridApi();
|
|
1791
1791
|
let result;
|
|
1792
1792
|
if (!this.hasAutogeneratedPrimaryKey) {
|
|
1793
|
-
result = agGridApi.
|
|
1793
|
+
result = agGridApi.getCellValue({ colKey: this.adaptableOptions.primaryKey, rowNode });
|
|
1794
1794
|
}
|
|
1795
1795
|
if (result == undefined && rowNode.data) {
|
|
1796
1796
|
result = rowNode.data[this.adaptableOptions.primaryKey];
|
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: 1715788773565 || Date.now(),
|
|
6
|
+
VERSION: "18.0.10-canary.0" || '--current-version--',
|
|
7
7
|
};
|