@adaptabletools/adaptable 12.2.2 → 12.2.3
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/bundle.cjs.js +8 -8
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +1 -1
- package/src/Api/Implementation/CellSummaryApiImpl.js +5 -2
- package/src/Api/Implementation/FilterApiImpl.js +4 -4
- package/src/Api/Implementation/LayoutApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +2 -2
- package/src/Api/Implementation/QueryApiImpl.js +4 -4
- package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
- package/src/Api/Implementation/SystemStatusApiImpl.js +7 -7
- package/src/Api/Implementation/TeamSharingApiImpl.js +5 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.3",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1661939619960;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -12,6 +12,6 @@ export declare class CellSummaryApiImpl extends ApiBase implements CellSummaryAp
|
|
|
12
12
|
/**
|
|
13
13
|
* Weighted average is availabe only if the current layout has at leat a Weighted Average aggregation defined.
|
|
14
14
|
*/
|
|
15
|
-
private
|
|
15
|
+
private isWeightedAverageCellSummaryAvailable;
|
|
16
16
|
private getWeightedAverageCellSummaryOperation;
|
|
17
17
|
}
|
|
@@ -14,7 +14,7 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
14
14
|
getCellSummaryOperationDefinitions() {
|
|
15
15
|
var _a;
|
|
16
16
|
let cellSummaryOperations = (_a = this.getGeneralOptions().cellSummaryOperations) !== null && _a !== void 0 ? _a : [];
|
|
17
|
-
if (this.
|
|
17
|
+
if (this.isWeightedAverageCellSummaryAvailable()) {
|
|
18
18
|
cellSummaryOperations = [
|
|
19
19
|
...cellSummaryOperations,
|
|
20
20
|
this.getWeightedAverageCellSummaryOperation(),
|
|
@@ -64,8 +64,11 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
64
64
|
/**
|
|
65
65
|
* Weighted average is availabe only if the current layout has at leat a Weighted Average aggregation defined.
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
isWeightedAverageCellSummaryAvailable() {
|
|
68
68
|
const currentLayout = this.getAdaptableApi().layoutApi.getCurrentLayout();
|
|
69
|
+
if (currentLayout.AggregationColumns == undefined) {
|
|
70
|
+
return false;
|
|
71
|
+
}
|
|
69
72
|
return Object.values(currentLayout.AggregationColumns).some((aggCol) => typeof aggCol === 'object' && aggCol.type === 'weightedAverage');
|
|
70
73
|
}
|
|
71
74
|
getWeightedAverageCellSummaryOperation() {
|
|
@@ -306,16 +306,16 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
suspendColumnFilter(columnFilter) {
|
|
309
|
-
this.
|
|
309
|
+
this.dispatchAction(LayoutRedux.LayoutColumnFilterSuspend(columnFilter));
|
|
310
310
|
}
|
|
311
311
|
unSuspendColumnFilter(columnFilter) {
|
|
312
|
-
this.
|
|
312
|
+
this.dispatchAction(LayoutRedux.LayoutColumnFilterUnSuspend(columnFilter));
|
|
313
313
|
}
|
|
314
314
|
suspendAllColumnFilters() {
|
|
315
|
-
this.
|
|
315
|
+
this.dispatchAction(LayoutRedux.LayoutColumnFilterSuspendAll());
|
|
316
316
|
}
|
|
317
317
|
unSuspendAllColumnFilters() {
|
|
318
|
-
this.
|
|
318
|
+
this.dispatchAction(LayoutRedux.LayoutColumnFilterUnSuspendAll());
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
exports.FilterApiImpl = FilterApiImpl;
|
|
@@ -52,7 +52,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
52
|
}
|
|
53
53
|
fireLayoutChangedEvent(trigger, oldSate, newState, skipEqualityCheck) {
|
|
54
54
|
const layoutChangedInfo = {
|
|
55
|
-
adaptableApi: this.
|
|
55
|
+
adaptableApi: this.getAdaptableApi(),
|
|
56
56
|
actionName: trigger,
|
|
57
57
|
oldLayoutState: oldSate,
|
|
58
58
|
newLayoutState: newState,
|
|
@@ -67,7 +67,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
67
67
|
if (!predicate) {
|
|
68
68
|
return defaultReturn;
|
|
69
69
|
}
|
|
70
|
-
const predicateDef = this.
|
|
70
|
+
const predicateDef = this.getPredicateDefById(predicate.PredicateId);
|
|
71
71
|
if (predicateDef === undefined) {
|
|
72
72
|
return defaultReturn;
|
|
73
73
|
}
|
|
@@ -75,7 +75,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
75
75
|
return defaultReturn;
|
|
76
76
|
}
|
|
77
77
|
try {
|
|
78
|
-
return predicateDef.handler(Object.assign({ api: this.
|
|
78
|
+
return predicateDef.handler(Object.assign({ api: this.getAdaptableApi(), inputs: predicate.Inputs }, params));
|
|
79
79
|
}
|
|
80
80
|
catch (error) {
|
|
81
81
|
console.error(`Error in predicate ${predicateDef.label}`, error);
|
|
@@ -55,8 +55,8 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
55
55
|
}
|
|
56
56
|
getReferencedNamedQueryNames(expression = '') {
|
|
57
57
|
try {
|
|
58
|
-
return this.
|
|
59
|
-
.getQueryLanguageService()
|
|
58
|
+
return this.getAdaptableApi()
|
|
59
|
+
.internalApi.getQueryLanguageService()
|
|
60
60
|
.getNamedQueryNamesFromExpression(expression);
|
|
61
61
|
}
|
|
62
62
|
catch (error) {
|
|
@@ -79,7 +79,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
79
|
}
|
|
80
80
|
expandCurrentQuery(query) {
|
|
81
81
|
const preparedQuery = query !== null && query !== void 0 ? query : this.getCurrentQuery();
|
|
82
|
-
this.
|
|
82
|
+
this.dispatchAction(PopupRedux.PopupShowWindow({
|
|
83
83
|
Id: windowFactory_1.WINDOW_QUERY_EDITOR,
|
|
84
84
|
Title: 'Current Query',
|
|
85
85
|
Icon: 'query',
|
|
@@ -90,7 +90,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
90
90
|
}
|
|
91
91
|
fireQueryRunEvent() {
|
|
92
92
|
if (this.adaptable.isLive) {
|
|
93
|
-
const currentQuery = this.
|
|
93
|
+
const currentQuery = this.getCurrentQuery();
|
|
94
94
|
const adaptableApi = this.getAdaptableApi();
|
|
95
95
|
const queryRunInfo = {
|
|
96
96
|
currentQuery,
|
|
@@ -11,7 +11,7 @@ class StatusBarApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
return this.adaptable.getAgGridStatusPanels();
|
|
12
12
|
}
|
|
13
13
|
setStatusBarPanels(statusPanels) {
|
|
14
|
-
this.
|
|
14
|
+
this.dispatchAction(StatusBarRedux_1.StatusBarSetPanels(statusPanels));
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.StatusBarApiImpl = StatusBarApiImpl;
|
|
@@ -15,7 +15,7 @@ const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
|
15
15
|
class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
16
16
|
setSystemStatus(statusMessage, messageType, statusFurtherInformation) {
|
|
17
17
|
let systemStatusMessageInfo = ObjectFactory_1.default.CreateSystemStatusMessageInfo(statusMessage, messageType, statusFurtherInformation ? statusFurtherInformation : '');
|
|
18
|
-
this.
|
|
18
|
+
this.getAdaptableApi().internalApi.addSystemStatusMessageInfo(systemStatusMessageInfo);
|
|
19
19
|
// publish the event
|
|
20
20
|
this.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
21
21
|
if (this.getNotificationsOptions().showSystemStatusMessageNotifications) {
|
|
@@ -25,16 +25,16 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
}
|
|
26
26
|
switch (messageType) {
|
|
27
27
|
case 'Success':
|
|
28
|
-
this.
|
|
28
|
+
this.getAdaptableApi().alertApi.showAlertSuccess('System Status Success', fullMessage);
|
|
29
29
|
return;
|
|
30
30
|
case 'Info':
|
|
31
|
-
this.
|
|
31
|
+
this.getAdaptableApi().alertApi.showAlertInfo('System Status Info', fullMessage);
|
|
32
32
|
return;
|
|
33
33
|
case 'Warning':
|
|
34
|
-
this.
|
|
34
|
+
this.getAdaptableApi().alertApi.showAlertWarning('System Status Warning', fullMessage);
|
|
35
35
|
return;
|
|
36
36
|
case 'Error':
|
|
37
|
-
this.
|
|
37
|
+
this.getAdaptableApi().alertApi.showAlertError('System Status Error', fullMessage);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -83,10 +83,10 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
83
83
|
adaptableApi: this.getAdaptableApi(),
|
|
84
84
|
systemStatusMessageInfo: systemStatusMessageInfo,
|
|
85
85
|
};
|
|
86
|
-
this.
|
|
86
|
+
this.getAdaptableApi().eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
|
|
87
87
|
}
|
|
88
88
|
getCurrentSystemStatusMessageInfo() {
|
|
89
|
-
const messageInfos = this.
|
|
89
|
+
const messageInfos = this.getAdaptableApi().internalApi.getSystemStatusMessageInfos() || [];
|
|
90
90
|
const orderedArray = messageInfos.sort((a, b) => b.timestamp.getTime() - a.timestamp.getTime());
|
|
91
91
|
return orderedArray[0];
|
|
92
92
|
}
|
|
@@ -36,8 +36,8 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
36
36
|
return this.isTeamSharingAvailable();
|
|
37
37
|
}
|
|
38
38
|
hasTeamSharingFullRights() {
|
|
39
|
-
return this.
|
|
40
|
-
.getEntitlementService()
|
|
39
|
+
return this.getAdaptableApi()
|
|
40
|
+
.internalApi.getEntitlementService()
|
|
41
41
|
.isModuleFullEntitlement(ModuleConstants.TeamSharingModuleId);
|
|
42
42
|
}
|
|
43
43
|
checkForUpdates() {
|
|
@@ -52,7 +52,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
52
52
|
adaptableApi: this.adaptable.api,
|
|
53
53
|
sharedEntity: sharedEntity,
|
|
54
54
|
};
|
|
55
|
-
this.
|
|
55
|
+
this.getAdaptableApi().eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
shareEntity(entity, module, sharedEntityConfig) {
|
|
@@ -70,7 +70,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
70
70
|
this.dispatchAction(TeamSharingRedux.TeamSharingRemoveItem(entityId));
|
|
71
71
|
}
|
|
72
72
|
importSharedEntry(sharedEntity) {
|
|
73
|
-
this.
|
|
73
|
+
this.dispatchAction(TeamSharingRedux.TeamSharingImportItem(sharedEntity));
|
|
74
74
|
}
|
|
75
75
|
getTeamSharingState() {
|
|
76
76
|
return this.getAdaptableState().TeamSharing;
|
|
@@ -84,7 +84,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
84
84
|
return ((_a = sharedEntity === null || sharedEntity === void 0 ? void 0 : sharedEntity.EntityDependencyIds) !== null && _a !== void 0 ? _a : []).map((id) => allEntities.find((entity) => entity.Uuid === id));
|
|
85
85
|
}
|
|
86
86
|
triggerLoadingTeamSharingEntries() {
|
|
87
|
-
this.
|
|
87
|
+
this.dispatchAction(TeamSharingRedux.TeamSharingGet());
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
exports.TeamSharingApiImpl = TeamSharingApiImpl;
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "12.2.
|
|
1
|
+
declare const _default: "12.2.3";
|
|
2
2
|
export default _default;
|
package/version.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = '12.2.
|
|
3
|
+
exports.default = '12.2.3'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
|