@adaptabletools/adaptable 15.0.2 → 15.0.3-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/bundle.cjs.js +164 -164
- package/package.json +2 -2
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +4 -0
- package/src/Api/Implementation/ActionApiImpl.js +3 -4
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +12 -0
- package/src/Api/Implementation/AlertApiImpl.js +23 -24
- package/src/Api/Implementation/ApiBase.d.ts +4 -0
- package/src/Api/Implementation/ApiBase.js +14 -3
- package/src/Api/Implementation/CalculatedColumnApiImpl.js +8 -9
- package/src/Api/Implementation/CellSummaryApiImpl.js +1 -1
- package/src/Api/Implementation/ChartingApiImpl.js +1 -1
- package/src/Api/Implementation/ColumnApiImpl.js +31 -32
- package/src/Api/Implementation/CustomSortApiImpl.js +5 -6
- package/src/Api/Implementation/DashboardApiImpl.js +3 -3
- package/src/Api/Implementation/DataChangeHistoryApiImpl.js +1 -1
- package/src/Api/Implementation/DataSetApiImpl.js +3 -3
- package/src/Api/Implementation/ExportApiImpl.js +7 -8
- package/src/Api/Implementation/FilterApiImpl.js +15 -16
- package/src/Api/Implementation/FlashingCellApiImpl.js +3 -3
- package/src/Api/Implementation/FormatColumnApiImpl.js +18 -18
- package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -10
- package/src/Api/Implementation/GridApiImpl.js +9 -10
- package/src/Api/Implementation/LayoutApiImpl.js +11 -12
- package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
- package/src/Api/Implementation/PredicateApiImpl.js +8 -9
- package/src/Api/Implementation/QueryApiImpl.js +5 -5
- package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -6
- package/src/Api/Implementation/QuickSearchApiImpl.js +1 -1
- package/src/Api/Implementation/ScheduleApiImpl.js +17 -17
- package/src/Api/Implementation/SettingsPanelApiImpl.js +3 -4
- package/src/Api/Implementation/ShortcutApiImpl.js +5 -5
- package/src/Api/Implementation/SmartEditApiImpl.js +1 -1
- package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
- package/src/Api/Implementation/SystemStatusApiImpl.js +2 -2
- package/src/Api/Implementation/TeamSharingApiImpl.js +11 -12
- package/src/Api/Implementation/ThemeApiImpl.js +4 -4
- package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
- package/src/Api/Internal/AdaptableInternalApi.js +1 -2
- package/src/Api/Internal/ChartingInternalApi.js +1 -2
- package/src/Api/Internal/QueryInternalApi.js +1 -2
- package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +4 -4
- package/src/Redux/Store/AdaptableReduxMerger.js +1 -2
- package/src/Redux/Store/AdaptableStore.js +11 -13
- package/src/Strategy/CalculatedColumnModule.js +2 -3
- package/src/Strategy/DashboardModule.js +1 -2
- package/src/Strategy/DataChangeHistoryModule.js +1 -2
- package/src/Strategy/FilterModule.js +1 -2
- package/src/Strategy/FormatColumnModule.js +1 -2
- package/src/Strategy/StyledColumnModule.js +1 -2
- package/src/Strategy/ToolPanelModule.js +2 -3
- package/src/Utilities/Helpers/AdaptableHelper.js +1 -2
- package/src/Utilities/Helpers/DateHelper.js +2 -2
- package/src/Utilities/Helpers/Helper.js +3 -3
- package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -4
- package/src/Utilities/Services/AlertService.js +1 -2
- package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -4
- package/src/Utilities/Services/DataService.js +1 -2
- package/src/Utilities/Services/LicenseService/index.js +1 -1
- package/src/Utilities/Services/MetamodelService.js +3 -4
- package/src/Utilities/Services/QueryLanguageService.js +1 -2
- package/src/Utilities/logDeprecation.d.ts +4 -3
- package/src/Utilities/logDeprecation.js +6 -7
- package/src/View/Charting/useChartState.js +1 -2
- package/src/View/Dashboard/Dashboard.js +1 -2
- package/src/View/StateManagement/handleExportState.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +76 -43
- package/src/agGrid/AdaptableLogger.d.ts +26 -0
- package/src/agGrid/AdaptableLogger.js +148 -0
- package/src/agGrid/agGridHelper.js +7 -8
- package/src/components/ExpressionEditor/BaseEditorInput.js +1 -2
- package/src/components/OverlayTrigger/index.js +1 -2
- package/src/components/SelectableList/index.js +0 -2
- package/src/components/icons/index.js +2 -2
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/src/Utilities/Helpers/LoggingHelper.d.ts +0 -15
- package/src/Utilities/Helpers/LoggingHelper.js +0 -111
|
@@ -6,7 +6,6 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
|
|
8
8
|
const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux");
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const TeamSharingInternalApi_1 = require("../Internal/TeamSharingInternalApi");
|
|
11
10
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
12
11
|
const TeamSharingState_1 = require("../../PredefinedConfig/TeamSharingState");
|
|
@@ -17,7 +16,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
16
|
}
|
|
18
17
|
async loadSharedEntities() {
|
|
19
18
|
if (!this.isTeamSharingAvailable()) {
|
|
20
|
-
|
|
19
|
+
this.logWarn('Team Sharing is not Activated so Entities cannot be loaded');
|
|
21
20
|
return [];
|
|
22
21
|
}
|
|
23
22
|
const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
|
|
@@ -41,12 +40,12 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
40
|
return sharedEntities;
|
|
42
41
|
}
|
|
43
42
|
async getSharedEntities() {
|
|
44
|
-
(0, logDeprecation_1.logDeprecation)('TeamSharingApi', 'getSharedEntities', 'loadSharedEntities');
|
|
43
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'getSharedEntities', 'loadSharedEntities');
|
|
45
44
|
return this.loadSharedEntities();
|
|
46
45
|
}
|
|
47
46
|
async persistSharedEntities(sharedEntities) {
|
|
48
47
|
if (!this.isTeamSharingAvailable()) {
|
|
49
|
-
|
|
48
|
+
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
50
49
|
return false;
|
|
51
50
|
}
|
|
52
51
|
const teamSharingOptions = this.adaptable.adaptableOptions.teamSharingOptions;
|
|
@@ -60,7 +59,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
60
59
|
return true;
|
|
61
60
|
}
|
|
62
61
|
async setSharedEntities(sharedEntities) {
|
|
63
|
-
(0, logDeprecation_1.logDeprecation)('TeamSharingApi', 'setSharedEntities', 'persistSharedEntities');
|
|
62
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'setSharedEntities', 'persistSharedEntities');
|
|
64
63
|
return this.persistSharedEntities(sharedEntities);
|
|
65
64
|
}
|
|
66
65
|
isTeamSharingAvailable() {
|
|
@@ -81,7 +80,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
81
80
|
this.dispatchAction((0, TeamSharingRedux_1.TeamSharingCheckForUpdates)());
|
|
82
81
|
}
|
|
83
82
|
showTeamSharingPopup() {
|
|
84
|
-
(0, logDeprecation_1.logDeprecation)('TeamSharingApi', 'showTeamSharingPopup', 'openTeamSharingSettingsPanel');
|
|
83
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'showTeamSharingPopup', 'openTeamSharingSettingsPanel');
|
|
85
84
|
return this.openTeamSharingSettingsPanel();
|
|
86
85
|
}
|
|
87
86
|
openTeamSharingSettingsPanel() {
|
|
@@ -89,25 +88,25 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
89
88
|
}
|
|
90
89
|
shareAdaptableEntity(adaptableObject, module, sharedEntityConfig) {
|
|
91
90
|
if (!this.isTeamSharingAvailable()) {
|
|
92
|
-
|
|
91
|
+
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
93
92
|
return;
|
|
94
93
|
}
|
|
95
94
|
this.dispatchAction(TeamSharingRedux.TeamSharingShare(adaptableObject, module, sharedEntityConfig));
|
|
96
95
|
}
|
|
97
96
|
shareCustomEntity(customObject, sharedEntityConfig) {
|
|
98
97
|
if (!this.isTeamSharingAvailable()) {
|
|
99
|
-
|
|
98
|
+
this.logWarn('Team Sharing is not Activated so Entities cannot be shared');
|
|
100
99
|
return;
|
|
101
100
|
}
|
|
102
101
|
this.dispatchAction(TeamSharingRedux.TeamSharingShareCustom(customObject, sharedEntityConfig));
|
|
103
102
|
}
|
|
104
103
|
shareEntity(entity, module, sharedEntityConfig) {
|
|
105
|
-
(0, logDeprecation_1.logDeprecation)('TeamSharingApi', 'shareEntity', 'shareAdaptableEntity');
|
|
104
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'shareEntity', 'shareAdaptableEntity');
|
|
106
105
|
return this.shareAdaptableEntity(entity, module, sharedEntityConfig);
|
|
107
106
|
}
|
|
108
107
|
unshareEntity(entityId) {
|
|
109
108
|
if (!this.isTeamSharingAvailable()) {
|
|
110
|
-
|
|
109
|
+
this.logWarn('Team Sharing is not Activated so Entities cannot be unshared');
|
|
111
110
|
return;
|
|
112
111
|
}
|
|
113
112
|
this.dispatchAction(TeamSharingRedux.TeamSharingRemoveItem(entityId));
|
|
@@ -119,7 +118,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
119
118
|
else {
|
|
120
119
|
const customSharedEntityImportHandler = this.getAdaptableApi().optionsApi.getTeamSharingOptions().handleCustomSharedEntityImport;
|
|
121
120
|
if (!customSharedEntityImportHandler) {
|
|
122
|
-
|
|
121
|
+
this.logError(`Could NOT import custom shared entity because 'TeamSharingOptions.handleCustomSharedEntityImport(...)' is NOT defined!`, sharedEntity);
|
|
123
122
|
return;
|
|
124
123
|
}
|
|
125
124
|
customSharedEntityImportHandler(sharedEntity, {
|
|
@@ -145,7 +144,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
|
|
|
145
144
|
this.dispatchAction(TeamSharingRedux.TeamSharingGet());
|
|
146
145
|
}
|
|
147
146
|
triggerLoadingTeamSharingEntries() {
|
|
148
|
-
(0, logDeprecation_1.logDeprecation)('TeamSharingApi', 'triggerLoadingTeamSharingEntries', 'refreshTeamSharing');
|
|
147
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'TeamSharingApi', 'triggerLoadingTeamSharingEntries', 'refreshTeamSharing');
|
|
149
148
|
this.refreshTeamSharing();
|
|
150
149
|
}
|
|
151
150
|
}
|
|
@@ -39,7 +39,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
39
|
this.dispatchAction(ThemeRedux.ThemeSetUserThemes(userThemes));
|
|
40
40
|
}
|
|
41
41
|
getAllSystemTheme() {
|
|
42
|
-
(0, logDeprecation_1.logDeprecation)('ThemeApi', 'getAllSystemTheme', 'getSystemThemes');
|
|
42
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllSystemTheme', 'getSystemThemes');
|
|
43
43
|
return this.getSystemThemes();
|
|
44
44
|
}
|
|
45
45
|
getSystemThemes() {
|
|
@@ -72,7 +72,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
72
72
|
this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
|
|
73
73
|
}
|
|
74
74
|
getAllUserTheme() {
|
|
75
|
-
(0, logDeprecation_1.logDeprecation)('ThemeApi', 'getAllUserTheme', 'getUserThemes');
|
|
75
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllUserTheme', 'getUserThemes');
|
|
76
76
|
return this.getUserThemes();
|
|
77
77
|
}
|
|
78
78
|
getUserThemes() {
|
|
@@ -80,14 +80,14 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
|
|
|
80
80
|
return (_a = this.getAdaptableState().Theme.UserThemes) !== null && _a !== void 0 ? _a : [];
|
|
81
81
|
}
|
|
82
82
|
getAllTheme() {
|
|
83
|
-
(0, logDeprecation_1.logDeprecation)('ThemeApi', 'getAllTheme', 'getThemes');
|
|
83
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'getAllTheme', 'getThemes');
|
|
84
84
|
return this.getThemes();
|
|
85
85
|
}
|
|
86
86
|
getThemes() {
|
|
87
87
|
return [...this.getSystemThemes(), ...this.getUserThemes()];
|
|
88
88
|
}
|
|
89
89
|
showThemePopup() {
|
|
90
|
-
(0, logDeprecation_1.logDeprecation)('ThemeApi', 'showThemePopup', 'openThemeSettingsPanel');
|
|
90
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ThemeApi', 'showThemePopup', 'openThemeSettingsPanel');
|
|
91
91
|
return this.openThemeSettingsPanel();
|
|
92
92
|
}
|
|
93
93
|
openThemeSettingsPanel() {
|
|
@@ -25,7 +25,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
25
|
return this.getUserInterfaceOptions().styleClassNames;
|
|
26
26
|
}
|
|
27
27
|
getAllPermittedValuesItems() {
|
|
28
|
-
(0, logDeprecation_1.logDeprecation)('UserInterfaceApi', 'getAllPermittedValuesItems', 'getPermittedValuesItems');
|
|
28
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllPermittedValuesItems', 'getPermittedValuesItems');
|
|
29
29
|
return this.getPermittedValuesItems();
|
|
30
30
|
}
|
|
31
31
|
getPermittedValuesItems() {
|
|
@@ -123,7 +123,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
|
|
|
123
123
|
return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
|
|
124
124
|
}
|
|
125
125
|
getAllEditLookUpItems() {
|
|
126
|
-
(0, logDeprecation_1.logDeprecation)('UserInterfaceApi', 'getAllEditLookUpItems', 'getEditLookUpItems');
|
|
126
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'UserInterfaceApi', 'getAllEditLookUpItems', 'getEditLookUpItems');
|
|
127
127
|
return this.getEditLookUpItems();
|
|
128
128
|
}
|
|
129
129
|
getEditLookUpItems() {
|
|
@@ -10,7 +10,6 @@ const DeadRedux = tslib_1.__importStar(require("../../Redux/DeadRedux"));
|
|
|
10
10
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
11
11
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
12
12
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
13
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
14
13
|
const waitForCondition_1 = require("../../Utilities/waitForCondition");
|
|
15
14
|
const AdaptableIconComponent_1 = require("../../components/AdaptableIconComponent");
|
|
16
15
|
class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
@@ -278,7 +277,7 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
278
277
|
catch (error) {
|
|
279
278
|
errorHandlingFn === null || errorHandlingFn === void 0 ? void 0 : errorHandlingFn();
|
|
280
279
|
this.hideProgressIndicator();
|
|
281
|
-
|
|
280
|
+
this.adaptable.logger.error('Unexpected error while executing a function with a progress indicator', error);
|
|
282
281
|
}
|
|
283
282
|
}, 16);
|
|
284
283
|
}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChartingInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
6
5
|
class ChartingInternalApi extends ApiBase_1.ApiBase {
|
|
7
6
|
getContainerElement(chartContainer) {
|
|
8
7
|
const element = typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string'
|
|
9
8
|
? document.querySelector(chartContainer.element)
|
|
10
9
|
: chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element;
|
|
11
10
|
if (!element && typeof (chartContainer === null || chartContainer === void 0 ? void 0 : chartContainer.element) === 'string') {
|
|
12
|
-
|
|
11
|
+
this.adaptable.logger.consoleLogByMessageType(`Chart container element not found: ${chartContainer.element}`, 'Error');
|
|
13
12
|
return null;
|
|
14
13
|
}
|
|
15
14
|
return element;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QueryInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
6
5
|
class QueryInternalApi extends ApiBase_1.ApiBase {
|
|
7
6
|
/**
|
|
8
7
|
* Returns the name of all the referenced Named Queries as an array of strings
|
|
@@ -16,7 +15,7 @@ class QueryInternalApi extends ApiBase_1.ApiBase {
|
|
|
16
15
|
}
|
|
17
16
|
catch (error) {
|
|
18
17
|
// defensive programing, this should happen only if someone botched the predefined configs
|
|
19
|
-
|
|
18
|
+
this.adaptable.logger.warn(`QueryApi.getReferencedNamedQueryNames received an invalid expression: ${expression}
|
|
20
19
|
Error: ${error}`);
|
|
21
20
|
return [];
|
|
22
21
|
}
|
|
@@ -6,7 +6,7 @@ const isomorphic_fetch_1 = tslib_1.__importDefault(require("isomorphic-fetch"));
|
|
|
6
6
|
const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
|
|
7
7
|
const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
|
|
8
8
|
const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
|
|
9
|
-
const
|
|
9
|
+
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
10
10
|
const checkStatus = (response) => {
|
|
11
11
|
const error = new Error(response.statusText);
|
|
12
12
|
if (response.status >= 200 && response.status < 300) {
|
|
@@ -63,7 +63,7 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
63
63
|
.then((parsedPredefinedState) => {
|
|
64
64
|
return (0, AdaptableReduxMerger_1.MergeStateFunction)(parsedPredefinedState, parsedJsonState);
|
|
65
65
|
})
|
|
66
|
-
.catch((err) => (
|
|
66
|
+
.catch((err) => AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`AdaptableId: ${this.adaptableId}`, err));
|
|
67
67
|
}
|
|
68
68
|
if (predefinedConfig != null) {
|
|
69
69
|
// we have config as an object so need to merge that
|
|
@@ -71,7 +71,7 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
71
71
|
.then((parsedPredefinedState) => {
|
|
72
72
|
return (0, AdaptableReduxMerger_1.MergeStateFunction)(parsedPredefinedState, parsedJsonState);
|
|
73
73
|
})
|
|
74
|
-
.catch((err) => (
|
|
74
|
+
.catch((err) => AdaptableLogger_1.AdaptableLogger.consoleErrorBase(`AdaptableId: ${this.adaptableId}`, err));
|
|
75
75
|
}
|
|
76
76
|
// no predefined config so nothing to merge
|
|
77
77
|
return new Promise((resolve) => {
|
|
@@ -95,7 +95,7 @@ class AdaptableReduxLocalStorageEngine {
|
|
|
95
95
|
}
|
|
96
96
|
const promise = (_a = (this.persistState || persistState)(result, config)) === null || _a === void 0 ? void 0 : _a.catch(rejectWithMessage);
|
|
97
97
|
if (!(promise instanceof Promise)) {
|
|
98
|
-
(
|
|
98
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase(`AdaptableId: ${this.adaptableId}`, 'stateOptions.persistState should return a promise, it returned', 'Error', promise);
|
|
99
99
|
}
|
|
100
100
|
return promise;
|
|
101
101
|
}
|
|
@@ -8,7 +8,6 @@ const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
|
|
|
8
8
|
const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
|
|
9
9
|
const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
|
|
10
10
|
const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
|
|
11
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
12
11
|
function customizer(objValue, srcValue) {
|
|
13
12
|
if ((0, isArray_1.default)(objValue)) {
|
|
14
13
|
if (!Array.isArray(srcValue)) {
|
|
@@ -87,7 +86,7 @@ function MergeStateFunction(oldState, newState) {
|
|
|
87
86
|
let state = newState;
|
|
88
87
|
if (!state || typeof state !== 'object') {
|
|
89
88
|
// in case loadState returns something different than an empty object
|
|
90
|
-
|
|
89
|
+
this.adaptable.logger.warn('State is something different that expected, expected object, received: ', state);
|
|
91
90
|
state = {};
|
|
92
91
|
}
|
|
93
92
|
// any Module in config that doesn't exist in state will be added
|
|
@@ -36,7 +36,6 @@ const StatusBarRedux = tslib_1.__importStar(require("../ActionsReducers/StatusBa
|
|
|
36
36
|
const ChartingRedux = tslib_1.__importStar(require("../ActionsReducers/ChartingRedux"));
|
|
37
37
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
38
38
|
const ConfigConstants = tslib_1.__importStar(require("../../Utilities/Constants/ConfigConstants"));
|
|
39
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
40
39
|
const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
|
|
41
40
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
42
41
|
const PreviewHelper_1 = require("../../Utilities/Helpers/PreviewHelper");
|
|
@@ -107,7 +106,7 @@ class AdaptableStore {
|
|
|
107
106
|
// END STATE LOAD
|
|
108
107
|
this.loadStorageInProgress = false;
|
|
109
108
|
}, (e) => {
|
|
110
|
-
|
|
109
|
+
adaptable.logger.error('Failed to load previous Adaptable State : ', e);
|
|
111
110
|
//for now i'm still initializing Adaptable even if loading state has failed....
|
|
112
111
|
//we may revisit that later
|
|
113
112
|
this.TheStore.dispatch((0, exports.InitState)());
|
|
@@ -169,12 +168,12 @@ class AdaptableStore {
|
|
|
169
168
|
Object.keys(State).forEach((key) => {
|
|
170
169
|
// this check should be removed in version 12 !!!
|
|
171
170
|
if (key === 'Chart') {
|
|
172
|
-
|
|
171
|
+
adaptable.logger.consoleWarn(`DEPRECATED: AdapTable Charts Plugin is deprecated! AG Grid built-in charts are fully supported & integrated in AdapTable.
|
|
173
172
|
|
|
174
173
|
Please contact 'support@adaptabletools.com' if you require any charting features that are not currently available.`);
|
|
175
174
|
}
|
|
176
175
|
if (key === 'SparklineColumn') {
|
|
177
|
-
|
|
176
|
+
adaptable.logger.consoleWarn(`DEPRECATED: AdapTable SparklineColumn is deprecated! AG Grid built-in Sparklines are fully supported & integrated in AdapTable.
|
|
178
177
|
|
|
179
178
|
Please contact 'support@adaptabletools.com' if you require any sparklines features that are not currently available.`);
|
|
180
179
|
}
|
|
@@ -189,7 +188,6 @@ class AdaptableStore {
|
|
|
189
188
|
// If the user has remote storage set then we use Remote Engine, otherwise we use Local Enginge
|
|
190
189
|
// not sure we can do this as we need to be backwardly compatible with existing users so need to stick with adaptable id (which should be unique)
|
|
191
190
|
// const localStorageKey = 'adaptable-adaptable-state-' + adaptable.adaptableOptions.primaryKey;
|
|
192
|
-
const predefinedConfig = adaptable.adaptableOptions.predefinedConfig;
|
|
193
191
|
storageEngine = (0, AdaptableReduxLocalStorageEngine_1.createEngine)({
|
|
194
192
|
adaptableId: adaptable.adaptableOptions.adaptableId,
|
|
195
193
|
adaptableStateKey: adaptable.adaptableOptions.adaptableStateKey,
|
|
@@ -1193,7 +1191,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1193
1191
|
middlewareAPI.dispatch(TeamSharingRedux.TeamSharingSet(sharedEntities));
|
|
1194
1192
|
})
|
|
1195
1193
|
.catch((error) => {
|
|
1196
|
-
|
|
1194
|
+
adaptable.logger.error('TeamSharing get error : ' + error.message);
|
|
1197
1195
|
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
1198
1196
|
alertType: 'generic',
|
|
1199
1197
|
header: 'Team Sharing',
|
|
@@ -1234,11 +1232,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1234
1232
|
})
|
|
1235
1233
|
.then(() => {
|
|
1236
1234
|
if (shareSuccessful) {
|
|
1237
|
-
|
|
1235
|
+
adaptable.logger.info(`Custom Shared Object '${Configuration.Name}' Shared Successfully`);
|
|
1238
1236
|
}
|
|
1239
1237
|
})
|
|
1240
1238
|
.catch((error) => {
|
|
1241
|
-
|
|
1239
|
+
adaptable.logger.error('TeamSharing share error : ' + error.message, actionTyped.Entity);
|
|
1242
1240
|
});
|
|
1243
1241
|
return returnAction;
|
|
1244
1242
|
}
|
|
@@ -1291,7 +1289,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1291
1289
|
}
|
|
1292
1290
|
})
|
|
1293
1291
|
.catch((error) => {
|
|
1294
|
-
|
|
1292
|
+
adaptable.logger.error('TeamSharing share error : ' + error.message, actionTyped.Entity);
|
|
1295
1293
|
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
1296
1294
|
alertType: 'generic',
|
|
1297
1295
|
header: 'Team Sharing',
|
|
@@ -1334,7 +1332,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1334
1332
|
return adaptable.api.teamSharingApi.persistSharedEntities(newSharedEntities);
|
|
1335
1333
|
})
|
|
1336
1334
|
.catch((error) => {
|
|
1337
|
-
|
|
1335
|
+
adaptable.logger.error('TeamSharing remove error : ' + error.message);
|
|
1338
1336
|
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
1339
1337
|
alertType: 'generic',
|
|
1340
1338
|
header: 'Team Sharing',
|
|
@@ -1391,7 +1389,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1391
1389
|
}
|
|
1392
1390
|
}
|
|
1393
1391
|
else {
|
|
1394
|
-
|
|
1392
|
+
adaptable.logger.error('Team Sharing Import Error: Unknown item type', sharedEntity);
|
|
1395
1393
|
}
|
|
1396
1394
|
}
|
|
1397
1395
|
if (activeSharedEntities.length) {
|
|
@@ -1440,7 +1438,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1440
1438
|
return adaptable.api.teamSharingApi.persistSharedEntities(updatedSharedEntities);
|
|
1441
1439
|
})
|
|
1442
1440
|
.catch((error) => {
|
|
1443
|
-
|
|
1441
|
+
adaptable.logger.error('TeamSharing update active item error : ' + error.message);
|
|
1444
1442
|
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
1445
1443
|
alertType: 'generic',
|
|
1446
1444
|
header: 'Team Sharing',
|
|
@@ -1460,7 +1458,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
|
|
|
1460
1458
|
adaptable.api.internalApi.getTeamSharingService().showUpdateNotifications();
|
|
1461
1459
|
})
|
|
1462
1460
|
.catch((error) => {
|
|
1463
|
-
|
|
1461
|
+
adaptable.logger.error('TeamSharing update error : ' + error.message);
|
|
1464
1462
|
middlewareAPI.dispatch(PopupRedux.PopupShowAlert({
|
|
1465
1463
|
alertType: 'generic',
|
|
1466
1464
|
header: 'Team Sharing',
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const CalculatedColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/CalculatedColumnRedux"));
|
|
8
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
const getExpressionViewItems_1 = require("./Utilities/getExpressionViewItems");
|
|
10
9
|
const CalculatedColumnWizard_1 = require("../View/CalculatedColumn/Wizard/CalculatedColumnWizard");
|
|
11
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
@@ -32,14 +31,14 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
32
31
|
};
|
|
33
32
|
cc.ColumnExpression = undefined;
|
|
34
33
|
oldCalculatedColumns.push(cc);
|
|
35
|
-
|
|
34
|
+
this.api.logWarn(`Updating incorrect Predefined Config for Calculated Column: ${cc.ColumnId}`);
|
|
36
35
|
}
|
|
37
36
|
if (!cc.CalculatedColumnSettings) {
|
|
38
37
|
cc.CalculatedColumnSettings = {
|
|
39
38
|
DataType: 'Number',
|
|
40
39
|
};
|
|
41
40
|
oldCalculatedColumns.push(cc);
|
|
42
|
-
|
|
41
|
+
this.api.logWarn(`Updating incorrect Predefined Config for Calculated Column: ${cc.ColumnId}`);
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
oldCalculatedColumns.forEach((oldCalcCol) => this.api.calculatedColumnApi.editCalculatedColumn(oldCalcCol));
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const DashboardRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/DashboardRedux"));
|
|
8
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
10
9
|
constructor(api) {
|
|
11
10
|
super(ModuleConstants.DashboardModuleId, ModuleConstants.DashboardFriendlyName, 'dashboard', 'DashboardPopup', 'The Dashboard - usually placed above the Grid - is designed to provide quick access to commonly required AdapTable functionalty', api);
|
|
@@ -13,7 +12,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
13
12
|
updateOldConfig() {
|
|
14
13
|
let dashboardState = this.api.dashboardApi.getDashboardState();
|
|
15
14
|
if (dashboardState.VisibleButtons) {
|
|
16
|
-
|
|
15
|
+
this.api.logWarn(`Updating Obsolete VisibleButtons Config for DashboardState: [${dashboardState.VisibleButtons}]`);
|
|
17
16
|
this.api.dashboardApi.setModuleButtons(dashboardState.VisibleButtons);
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -7,7 +7,6 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const DataChangeHistoryStatusBarContent_1 = require("../View/DataChangeHistory/DataChangeHistoryStatusBarContent");
|
|
9
9
|
const core_1 = require("@ag-grid-community/core");
|
|
10
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
11
10
|
class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
12
11
|
constructor(api) {
|
|
13
12
|
super(ModuleConstants.DataChangeHistoryModuleId, ModuleConstants.DataChangeHistoryFriendlyName, 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
|
|
@@ -27,7 +26,7 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
|
|
|
27
26
|
.getAdaptableInstance()
|
|
28
27
|
.isAgGridModulePresent(core_1.ModuleNames.ClientSideRowModelModule);
|
|
29
28
|
if (isAdaptableModuleAvailable && !isAgGridModuleAvailable) {
|
|
30
|
-
|
|
29
|
+
this.api.logWarn(`Data Change History is NOT available due to missing required AG Grid module: ${core_1.ModuleNames.ClientSideRowModelModule}`);
|
|
31
30
|
}
|
|
32
31
|
return isAdaptableModuleAvailable && isAgGridModuleAvailable;
|
|
33
32
|
}
|
|
@@ -7,7 +7,6 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
|
|
|
7
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
|
|
8
8
|
const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
|
|
9
9
|
const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
|
|
10
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
11
10
|
const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
|
|
12
11
|
class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
13
12
|
constructor(api) {
|
|
@@ -29,7 +28,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
28
|
const columnFilters = this.api.filterApi.getColumnFilters();
|
|
30
29
|
columnFilters.forEach((cf) => {
|
|
31
30
|
if (!this.api.columnApi.isColumnInGrid(cf.ColumnId)) {
|
|
32
|
-
|
|
31
|
+
this.api.logError('Column Filter contains missing column: ' + cf.ColumnId);
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
34
|
}
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const FormatColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FormatColumnRedux"));
|
|
8
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
const FormatColumnWizard_1 = require("../View/FormatColumn/Wizard/FormatColumnWizard");
|
|
10
9
|
const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
|
|
11
10
|
const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnFormatWizardSection");
|
|
@@ -94,7 +93,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
94
93
|
if (!(oldConditionalStyles === null || oldConditionalStyles === void 0 ? void 0 : oldConditionalStyles.length)) {
|
|
95
94
|
return;
|
|
96
95
|
}
|
|
97
|
-
|
|
96
|
+
this.api.logWarn(`DEPRECATED: Conditional Styles have been merged into 'Format Columns'`);
|
|
98
97
|
// remove conditional styles
|
|
99
98
|
this.api.internalApi.deleteConditionalStyles(oldConditionalStyles);
|
|
100
99
|
const transformedFormatColumns = oldConditionalStyles.map((conditionalStyle) => {
|
|
@@ -8,7 +8,6 @@ const StyledColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers
|
|
|
8
8
|
const StyledColumnWizard_1 = require("../View/StyledColumn/Wizard/StyledColumnWizard");
|
|
9
9
|
const StyledColumnWizardStyleSection_1 = require("../View/StyledColumn/Wizard/StyledColumnWizardStyleSection/StyledColumnWizardStyleSection");
|
|
10
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
|
|
11
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
12
11
|
const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
|
|
13
12
|
class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
14
13
|
constructor(api) {
|
|
@@ -43,7 +42,7 @@ class StyledColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
43
42
|
if (!formatColumnsWithColumnStyles.length) {
|
|
44
43
|
return;
|
|
45
44
|
}
|
|
46
|
-
|
|
45
|
+
this.api.logInfo(`Converting ${formatColumnsWithColumnStyles.length} FormatColumns Styles to Styled Columns`, formatColumnsWithColumnStyles);
|
|
47
46
|
formatColumnsWithColumnStyles.forEach((formatColumn) => {
|
|
48
47
|
this.api.formatColumnApi.deleteFormatColumn(formatColumn);
|
|
49
48
|
});
|
|
@@ -6,7 +6,6 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
|
|
|
6
6
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
7
7
|
const Types_1 = require("../PredefinedConfig/Common/Types");
|
|
8
8
|
const ToolPanelRedux_1 = require("../Redux/ActionsReducers/ToolPanelRedux");
|
|
9
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
11
10
|
constructor(api) {
|
|
12
11
|
super(ModuleConstants.ToolPanelModuleId, ModuleConstants.ToolPanelFriendlyName, 'tool-panel', 'ToolPanelPopup', 'An alternative to using the Dashboard is the AdapTable Tool Panel, the Tool Panel is the collapsible area to the right of the Grid.', api);
|
|
@@ -20,7 +19,7 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
20
19
|
updateOldConfig() {
|
|
21
20
|
const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
|
|
22
21
|
if (deprecatedToolPanelConfigs === null || deprecatedToolPanelConfigs === void 0 ? void 0 : deprecatedToolPanelConfigs.length) {
|
|
23
|
-
|
|
22
|
+
this.api.logWarn(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
|
|
24
23
|
const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
|
|
25
24
|
Name: toolPanel,
|
|
26
25
|
State: 'collapsed',
|
|
@@ -29,7 +28,7 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
|
|
|
29
28
|
}
|
|
30
29
|
else if (!this.api.toolPanelApi.getToolPanelState().ToolPanels) {
|
|
31
30
|
// no predefined config provided, we will display all the panels collapsed (custom & module)
|
|
32
|
-
|
|
31
|
+
this.api.logInfo(`No predefined ToolPanels provided, displaying all available ones (custom&system)`);
|
|
33
32
|
const defaultConfig = [];
|
|
34
33
|
this.api.toolPanelApi
|
|
35
34
|
.getCustomToolPanels()
|
|
@@ -4,7 +4,6 @@ exports.AdaptableHelper = exports.addAdaptableObjectUuidAndSource = exports.runA
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cloneDeepWith_1 = tslib_1.__importDefault(require("lodash/cloneDeepWith"));
|
|
6
6
|
const isPlainObject_1 = tslib_1.__importDefault(require("lodash/isPlainObject"));
|
|
7
|
-
const LoggingHelper_1 = require("./LoggingHelper");
|
|
8
7
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
9
8
|
const DefaultAdaptableOptions_1 = require("../Defaults/DefaultAdaptableOptions");
|
|
10
9
|
function assignAdaptableOptions(adaptableOptions) {
|
|
@@ -75,7 +74,7 @@ function checkValidPrimaryKey(adaptable) {
|
|
|
75
74
|
}
|
|
76
75
|
else {
|
|
77
76
|
if (adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning == true) {
|
|
78
|
-
|
|
77
|
+
adaptable.logger.consoleError(errorMessage);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
return false;
|
|
@@ -4,8 +4,8 @@ exports.parseFilterInputDate = exports.parseDateValue = exports.parseToISO = exp
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const parseISO_1 = tslib_1.__importDefault(require("date-fns/parseISO"));
|
|
6
6
|
const parse_1 = tslib_1.__importDefault(require("date-fns/parse"));
|
|
7
|
-
const LoggingHelper_1 = require("./LoggingHelper");
|
|
8
7
|
const FormatHelper_1 = require("./FormatHelper");
|
|
8
|
+
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
9
9
|
const isValidDate = (date) => {
|
|
10
10
|
return date instanceof Date && !isNaN(date.getTime());
|
|
11
11
|
};
|
|
@@ -57,7 +57,7 @@ const parseDateValue = (dateValue, dateFormat) => {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
if (!(0, exports.isValidDate)(dateInstance)) {
|
|
60
|
-
|
|
60
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase(`Invalid date value "${dateValue}" - cannot be converted to a Date instance. Please make sure you specify adaptableOptions.userInterfaceOptions.dateInputOptions.dateFormat correctly.`);
|
|
61
61
|
dateInstance = undefined;
|
|
62
62
|
}
|
|
63
63
|
return dateInstance;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Helper = exports.clamp = exports.modeNumberArray = exports.medianNumberArray = exports.meanNumberArray = exports.sumNumberArray = exports.RoundNumberTo4dp = exports.RoundNumber = exports.IsInputNotNullOrEmpty = exports.IsInputNullOrEmpty = exports.ReturnItemCount = exports.copyToClipboard = exports.createDownloadedFile = exports.convertArrayToCsv = exports.arrayToKeyMap = exports.cloneObject = exports.getStringRepresentionFromKey = exports.objectNotExists = exports.objectExists = void 0;
|
|
4
4
|
const StringExtensions_1 = require("../Extensions/StringExtensions");
|
|
5
|
-
const
|
|
5
|
+
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
6
6
|
function objectExists(item) {
|
|
7
7
|
return item != null && item != undefined;
|
|
8
8
|
}
|
|
@@ -104,14 +104,14 @@ function copyToClipboard(text) {
|
|
|
104
104
|
return document.execCommand('copy'); // Security exception may be thrown by some browsers.
|
|
105
105
|
}
|
|
106
106
|
catch (ex) {
|
|
107
|
-
|
|
107
|
+
AdaptableLogger_1.AdaptableLogger.consoleErrorBase('Copy to clipboard failed.', ex);
|
|
108
108
|
return false;
|
|
109
109
|
}
|
|
110
110
|
finally {
|
|
111
111
|
document.body.removeChild(textarea);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase('Copy not available on this computer.');
|
|
115
115
|
}
|
|
116
116
|
exports.copyToClipboard = copyToClipboard;
|
|
117
117
|
function ReturnItemCount(items, itemName) {
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AggregatedScalarLiveValue = void 0;
|
|
4
4
|
const scalarAggregationHelper_1 = require("../ExpressionFunctions/scalarAggregationHelper");
|
|
5
|
-
const LoggingHelper_1 = require("../Helpers/LoggingHelper");
|
|
6
5
|
const doOnceFlags = {};
|
|
7
|
-
const logOnce = (message) => {
|
|
6
|
+
const logOnce = (message, loggingFn) => {
|
|
8
7
|
if (doOnceFlags[message]) {
|
|
9
8
|
return;
|
|
10
9
|
}
|
|
11
|
-
(
|
|
10
|
+
loggingFn(message);
|
|
12
11
|
doOnceFlags[message] = true;
|
|
13
12
|
};
|
|
14
13
|
class AggregatedScalarLiveValue {
|
|
@@ -42,7 +41,7 @@ class AggregatedScalarLiveValue {
|
|
|
42
41
|
getAggregatedValueForRow(rowNode) {
|
|
43
42
|
const aggregationValue = this.getAggregationValue(rowNode);
|
|
44
43
|
if (aggregationValue == undefined) {
|
|
45
|
-
logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available
|
|
44
|
+
logOnce(`${this.aggregatedScalarExpression} :: aggregation value is NOT available!`, this.adaptableApi.logWarn);
|
|
46
45
|
return;
|
|
47
46
|
}
|
|
48
47
|
if (this.expressionEvaluation.rowValueGetter) {
|
|
@@ -4,7 +4,6 @@ exports.AlertService = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Emitter_1 = tslib_1.__importDefault(require("../Emitter"));
|
|
6
6
|
const rxjs_1 = require("rxjs");
|
|
7
|
-
const LoggingHelper_1 = require("../Helpers/LoggingHelper");
|
|
8
7
|
const ModuleConstants_1 = require("../Constants/ModuleConstants");
|
|
9
8
|
class AlertService {
|
|
10
9
|
constructor(adaptableApi) {
|
|
@@ -30,7 +29,7 @@ class AlertService {
|
|
|
30
29
|
}
|
|
31
30
|
const isValidExpression = this.adaptableApi.queryLanguageApi.isValidObservableExpression(alertDefinition.Rule.ObservableExpression, ModuleConstants_1.AlertModuleId, `Invalid Alert rule with observable expression `);
|
|
32
31
|
if (!isValidExpression) {
|
|
33
|
-
|
|
32
|
+
this.adaptableApi.logWarn(`Could NOT create reactive alert due to invalid Rule definition!`, alertDefinition.Rule);
|
|
34
33
|
return;
|
|
35
34
|
}
|
|
36
35
|
const reactiveExpressionObservable = this.evaluateReactiveExpression(alertDefinition.Rule);
|