@adaptabletools/adaptable 15.0.2 → 15.1.0-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 +185 -181
- package/package.json +3 -3
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -1
- package/src/AdaptableOptions/FilterOptions.d.ts +7 -0
- package/src/AdaptableOptions/GeneralOptions.d.ts +4 -0
- package/src/AdaptableOptions/SearchOptions.d.ts +8 -0
- package/src/AdaptableOptions/TeamSharingOptions.d.ts +7 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +5 -5
- package/src/Api/GridApi.d.ts +14 -6
- 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.d.ts +7 -2
- package/src/Api/Implementation/GridApiImpl.js +52 -13
- 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/GridInternalApi.js +11 -1
- 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 +16 -15
- package/src/Strategy/AlertModule.js +1 -0
- package/src/Strategy/CalculatedColumnModule.js +2 -3
- package/src/Strategy/CustomSortModule.d.ts +1 -0
- package/src/Strategy/CustomSortModule.js +1 -0
- package/src/Strategy/DashboardModule.js +1 -2
- package/src/Strategy/DataChangeHistoryModule.js +1 -2
- package/src/Strategy/FilterModule.js +1 -2
- package/src/Strategy/FlashingCellModule.js +1 -0
- package/src/Strategy/FormatColumnModule.js +2 -2
- package/src/Strategy/Interface/IModule.d.ts +6 -0
- package/src/Strategy/PlusMinusModule.js +1 -0
- package/src/Strategy/ScheduleModule.js +21 -0
- package/src/Strategy/ShortcutModule.js +1 -0
- package/src/Strategy/StyledColumnModule.js +2 -2
- package/src/Strategy/ToolPanelModule.js +2 -3
- package/src/Strategy/Utilities/Alert/getAlertBehaviourViewItems.d.ts +3 -8
- package/src/Strategy/Utilities/getObjectTagsViewItems.js +27 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -0
- package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +2 -2
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
- package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +104 -42
- package/src/Utilities/Extensions/NumberExtensions.d.ts +2 -0
- package/src/Utilities/Extensions/NumberExtensions.js +6 -1
- 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/Components/AdaptableObjectList/AdaptableObjectList.d.ts +1 -0
- package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +9 -2
- package/src/View/Dashboard/Dashboard.js +1 -2
- package/src/View/Layout/Wizard/sections/FilterSection.js +1 -1
- package/src/View/StateManagement/handleExportState.js +1 -2
- package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
- package/src/View/TeamSharing/SharedEntityObjectView.d.ts +3 -0
- package/src/View/Theme/ThemePopup.d.ts +1 -1
- package/src/View/Theme/ThemePopup.js +17 -3
- package/src/agGrid/Adaptable.d.ts +3 -1
- package/src/agGrid/Adaptable.js +94 -50
- 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/src/parser/src/evaluator.js +3 -1
- package/src/parser/src/parser.js +496 -453
- package/src/parser/src/types.d.ts +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
|
@@ -11,7 +11,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
return this.getAdaptableState().Schedule;
|
|
12
12
|
}
|
|
13
13
|
getAllSchedule() {
|
|
14
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSchedule', 'getSchedules');
|
|
14
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSchedule', 'getSchedules');
|
|
15
15
|
return this.getSchedules();
|
|
16
16
|
}
|
|
17
17
|
getSchedules() {
|
|
@@ -24,7 +24,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
24
24
|
return allSchedules;
|
|
25
25
|
}
|
|
26
26
|
getAllReminderSchedule(config) {
|
|
27
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllReminderSchedule', 'getReminderSchedules');
|
|
27
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllReminderSchedule', 'getReminderSchedules');
|
|
28
28
|
return this.getReminderSchedules(config);
|
|
29
29
|
}
|
|
30
30
|
getReminderSchedules(config) {
|
|
@@ -35,14 +35,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
35
35
|
return this.getSchedules().find((schedule) => (schedule === null || schedule === void 0 ? void 0 : schedule.Uuid) === id);
|
|
36
36
|
}
|
|
37
37
|
getAllActiveReminderSchedule() {
|
|
38
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveReminderSchedule', 'getActiveReminderSchedules');
|
|
38
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveReminderSchedule', 'getActiveReminderSchedules');
|
|
39
39
|
return this.getActiveReminderSchedules();
|
|
40
40
|
}
|
|
41
41
|
getActiveReminderSchedules() {
|
|
42
42
|
return this.getReminderSchedules().filter((schedule) => !schedule.IsSuspended);
|
|
43
43
|
}
|
|
44
44
|
getAllSuspendedReminderSchedule() {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedReminderSchedule', 'getSuspendedReminderSchedules');
|
|
45
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedReminderSchedule', 'getSuspendedReminderSchedules');
|
|
46
46
|
return this.getSuspendedReminderSchedules();
|
|
47
47
|
}
|
|
48
48
|
getSuspendedReminderSchedules() {
|
|
@@ -68,7 +68,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
68
68
|
return this.getScheduleById(schedule.Uuid);
|
|
69
69
|
}
|
|
70
70
|
getAllReportSchedule(config) {
|
|
71
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllReportSchedule', 'getReportSchedules');
|
|
71
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllReportSchedule', 'getReportSchedules');
|
|
72
72
|
return this.getReportSchedules();
|
|
73
73
|
}
|
|
74
74
|
getReportSchedules(config) {
|
|
@@ -76,14 +76,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
76
|
return ((_a = this.handleLayoutAssociatedObjects(this.adaptable.api.exportApi.getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
|
|
77
77
|
}
|
|
78
78
|
getAllActiveReportSchedule() {
|
|
79
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveReportSchedule', 'getActiveReportSchedules');
|
|
79
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveReportSchedule', 'getActiveReportSchedules');
|
|
80
80
|
return this.getActiveReportSchedules();
|
|
81
81
|
}
|
|
82
82
|
getActiveReportSchedules() {
|
|
83
83
|
return this.getReportSchedules().filter((schedule) => !schedule.IsSuspended);
|
|
84
84
|
}
|
|
85
85
|
getAllSuspendedReportSchedule() {
|
|
86
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedReportSchedule', 'getSuspendedReportSchedules');
|
|
86
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedReportSchedule', 'getSuspendedReportSchedules');
|
|
87
87
|
return this.getSuspendedReportSchedules();
|
|
88
88
|
}
|
|
89
89
|
getSuspendedReportSchedules() {
|
|
@@ -109,7 +109,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
109
109
|
return this.getScheduleById(schedule.Uuid);
|
|
110
110
|
}
|
|
111
111
|
getAllIPushPullSchedule(config) {
|
|
112
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllIPushPullSchedule', 'getIPushPullSchedules');
|
|
112
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllIPushPullSchedule', 'getIPushPullSchedules');
|
|
113
113
|
return this.getIPushPullSchedules();
|
|
114
114
|
}
|
|
115
115
|
getIPushPullSchedules(config) {
|
|
@@ -118,14 +118,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
118
118
|
return ((_a = this.handleLayoutAssociatedObjects(ippApi === null || ippApi === void 0 ? void 0 : ippApi.getIPushPullSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
|
|
119
119
|
}
|
|
120
120
|
getAllActiveIPushPullSchedule() {
|
|
121
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveIPushPullSchedule', 'getActiveIPushPullSchedules');
|
|
121
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveIPushPullSchedule', 'getActiveIPushPullSchedules');
|
|
122
122
|
return this.getActiveIPushPullSchedules();
|
|
123
123
|
}
|
|
124
124
|
getActiveIPushPullSchedules() {
|
|
125
125
|
return this.getIPushPullSchedules().filter((schedule) => !schedule.IsSuspended);
|
|
126
126
|
}
|
|
127
127
|
getAllSuspendedIPushPullSchedule() {
|
|
128
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedIPushPullSchedule', 'getSuspendedIPushPullSchedules');
|
|
128
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedIPushPullSchedule', 'getSuspendedIPushPullSchedules');
|
|
129
129
|
return this.getSuspendedIPushPullSchedules();
|
|
130
130
|
}
|
|
131
131
|
getSuspendedIPushPullSchedules() {
|
|
@@ -151,7 +151,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
151
151
|
return this.getScheduleById(schedule.Uuid);
|
|
152
152
|
}
|
|
153
153
|
getAllGlue42Schedule(config) {
|
|
154
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllGlue42Schedule', 'getGlue42Schedules');
|
|
154
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllGlue42Schedule', 'getGlue42Schedules');
|
|
155
155
|
return this.getGlue42Schedules();
|
|
156
156
|
}
|
|
157
157
|
getGlue42Schedules(config) {
|
|
@@ -160,14 +160,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
160
160
|
return ((_a = this.handleLayoutAssociatedObjects(glue42Api === null || glue42Api === void 0 ? void 0 : glue42Api.getGlue42Schedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
|
|
161
161
|
}
|
|
162
162
|
getAllActiveGlue42Schedule() {
|
|
163
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveGlue42Schedule', 'getActiveGlue42Schedules');
|
|
163
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveGlue42Schedule', 'getActiveGlue42Schedules');
|
|
164
164
|
return this.getActiveGlue42Schedules();
|
|
165
165
|
}
|
|
166
166
|
getActiveGlue42Schedules() {
|
|
167
167
|
return this.getGlue42Schedules().filter((schedule) => !schedule.IsSuspended);
|
|
168
168
|
}
|
|
169
169
|
getAllSuspendedGlue42Schedule() {
|
|
170
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedGlue42Schedule', 'getSuspendedGlue42Schedules');
|
|
170
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedGlue42Schedule', 'getSuspendedGlue42Schedules');
|
|
171
171
|
return this.getSuspendedGlue42Schedules();
|
|
172
172
|
}
|
|
173
173
|
getSuspendedGlue42Schedules() {
|
|
@@ -193,7 +193,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
193
193
|
return this.getScheduleById(schedule.Uuid);
|
|
194
194
|
}
|
|
195
195
|
getAllOpenFinSchedule(config) {
|
|
196
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllOpenFinSchedule', 'getOpenFinSchedules');
|
|
196
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllOpenFinSchedule', 'getOpenFinSchedules');
|
|
197
197
|
return this.getOpenFinSchedules();
|
|
198
198
|
}
|
|
199
199
|
getOpenFinSchedules(config) {
|
|
@@ -202,14 +202,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
202
202
|
return ((_a = this.handleLayoutAssociatedObjects(openFinApi === null || openFinApi === void 0 ? void 0 : openFinApi.getOpenFinSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
|
|
203
203
|
}
|
|
204
204
|
getAllActiveOpenFinSchedule() {
|
|
205
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveOpenFinSchedule', 'getActiveOpenFinSchedules');
|
|
205
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveOpenFinSchedule', 'getActiveOpenFinSchedules');
|
|
206
206
|
return this.getActiveOpenFinSchedules();
|
|
207
207
|
}
|
|
208
208
|
getActiveOpenFinSchedules() {
|
|
209
209
|
return this.getOpenFinSchedules().filter((schedule) => !schedule.IsSuspended);
|
|
210
210
|
}
|
|
211
211
|
getAllSuspendedOpenFinSchedule() {
|
|
212
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedOpenFinSchedule', 'getSuspendedOpenFinSchedules');
|
|
212
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedOpenFinSchedule', 'getSuspendedOpenFinSchedules');
|
|
213
213
|
return this.getSuspendedOpenFinSchedules();
|
|
214
214
|
}
|
|
215
215
|
getSuspendedOpenFinSchedules() {
|
|
@@ -284,7 +284,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
|
|
|
284
284
|
this.dispatchAction(ScheduleRedux.ScheduleJobRun(schedule, scheduleType));
|
|
285
285
|
}
|
|
286
286
|
showSchedulePopup() {
|
|
287
|
-
(0, logDeprecation_1.logDeprecation)('ScheduleApi', 'showSchedulePopup', 'openScheduleSettingsPanel');
|
|
287
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'showSchedulePopup', 'openScheduleSettingsPanel');
|
|
288
288
|
this.openScheduleSettingsPanel();
|
|
289
289
|
}
|
|
290
290
|
openScheduleSettingsPanel() {
|
|
@@ -4,23 +4,22 @@ exports.SettingsPanelApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
8
7
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
8
|
class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
|
|
10
9
|
showSettingsPanel(moduleName) {
|
|
11
|
-
(0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showSettingsPanel', 'openSettingsPanel');
|
|
10
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SettingsPanelApi', 'showSettingsPanel', 'openSettingsPanel');
|
|
12
11
|
this.openSettingsPanel(moduleName);
|
|
13
12
|
}
|
|
14
13
|
openSettingsPanel(moduleName) {
|
|
15
14
|
const moduleInfo = this.adaptable.ModuleService.getModuleInfoByModule(moduleName);
|
|
16
15
|
if (!moduleInfo) {
|
|
17
|
-
|
|
16
|
+
this.logError(`${moduleName} module does not exist`);
|
|
18
17
|
return;
|
|
19
18
|
}
|
|
20
19
|
this.dispatchAction(PopupRedux.PopupShowScreen(moduleName, moduleInfo.Popup));
|
|
21
20
|
}
|
|
22
21
|
showCustomSettingsPanel(name) {
|
|
23
|
-
(0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showCustomSettingsPanel', 'openCustomSettingsPanel');
|
|
22
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SettingsPanelApi', 'showCustomSettingsPanel', 'openCustomSettingsPanel');
|
|
24
23
|
this.openCustomSettingsPanel(name);
|
|
25
24
|
}
|
|
26
25
|
openCustomSettingsPanel(name) {
|
|
@@ -11,7 +11,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
11
11
|
return this.getAdaptableState().Shortcut;
|
|
12
12
|
}
|
|
13
13
|
getAllShortcut(config) {
|
|
14
|
-
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllShortcut', 'getShortcuts');
|
|
14
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllShortcut', 'getShortcuts');
|
|
15
15
|
return this.getShortcuts(config);
|
|
16
16
|
}
|
|
17
17
|
getShortcuts(config) {
|
|
@@ -22,14 +22,14 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
22
22
|
return this.getShortcuts().find((shortcut) => (shortcut === null || shortcut === void 0 ? void 0 : shortcut.Uuid) === id);
|
|
23
23
|
}
|
|
24
24
|
getAllActiveShortcut() {
|
|
25
|
-
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllActiveShortcut', 'getActiveShortcuts');
|
|
25
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllActiveShortcut', 'getActiveShortcuts');
|
|
26
26
|
return this.getActiveShortcuts();
|
|
27
27
|
}
|
|
28
28
|
getActiveShortcuts() {
|
|
29
29
|
return this.getShortcuts().filter((shortcut) => !shortcut.IsSuspended);
|
|
30
30
|
}
|
|
31
31
|
getAllSuspendedShortcut() {
|
|
32
|
-
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllSuspendedShortcut', 'getSuspendedShortcuts');
|
|
32
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllSuspendedShortcut', 'getSuspendedShortcuts');
|
|
33
33
|
return this.getSuspendedShortcuts();
|
|
34
34
|
}
|
|
35
35
|
getSuspendedShortcuts() {
|
|
@@ -44,7 +44,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
44
44
|
this.dispatchAction(ShortcutRedux.ShortcutDelete(shortcut));
|
|
45
45
|
}
|
|
46
46
|
deleteAllShortcut() {
|
|
47
|
-
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'deleteAllShortcut', 'deleteAllShortcuts');
|
|
47
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'deleteAllShortcut', 'deleteAllShortcuts');
|
|
48
48
|
this.deleteAllShortcuts();
|
|
49
49
|
}
|
|
50
50
|
deleteAllShortcuts() {
|
|
@@ -61,7 +61,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
|
|
|
61
61
|
return this.getShortcutById(shortcut.Uuid);
|
|
62
62
|
}
|
|
63
63
|
showShortcutPopup() {
|
|
64
|
-
(0, logDeprecation_1.logDeprecation)('ShortcutApi', 'showShortcutPopup', 'openShortcutSettingsPanel');
|
|
64
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'showShortcutPopup', 'openShortcutSettingsPanel');
|
|
65
65
|
this.openShortcutSettingsPanel();
|
|
66
66
|
}
|
|
67
67
|
openShortcutSettingsPanel() {
|
|
@@ -21,7 +21,7 @@ class SmartEditApiImpl extends ApiBase_1.ApiBase {
|
|
|
21
21
|
return this.getAdaptableState().System.SmartEditValue;
|
|
22
22
|
}
|
|
23
23
|
showSmartEditPopup() {
|
|
24
|
-
(0, logDeprecation_1.logDeprecation)('SmartEditApi', 'showSmartEditPopup', 'openSmartEditSettingsPanel');
|
|
24
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SmartEditApi', 'showSmartEditPopup', 'openSmartEditSettingsPanel');
|
|
25
25
|
this.openSmartEditSettingsPanel();
|
|
26
26
|
}
|
|
27
27
|
openSmartEditSettingsPanel() {
|
|
@@ -17,7 +17,7 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
17
|
return this.getAdaptableState().StyledColumn;
|
|
18
18
|
}
|
|
19
19
|
getAllStyledColumn(config) {
|
|
20
|
-
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllStyledColumn', 'getStyledColumns');
|
|
20
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllStyledColumn', 'getStyledColumns');
|
|
21
21
|
return this.getStyledColumns(config);
|
|
22
22
|
}
|
|
23
23
|
getStyledColumns(config) {
|
|
@@ -28,21 +28,21 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
28
|
return this.getStyledColumns().find((styledcolumn) => styledcolumn.Uuid === id);
|
|
29
29
|
}
|
|
30
30
|
getStyledColumnByColumnId(id) {
|
|
31
|
-
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getStyledColumnByColumnId', 'getStyledColumnForColumnId');
|
|
31
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getStyledColumnByColumnId', 'getStyledColumnForColumnId');
|
|
32
32
|
return this.getStyledColumnForColumnId(id);
|
|
33
33
|
}
|
|
34
34
|
getStyledColumnForColumnId(columnId) {
|
|
35
35
|
return this.getStyledColumns().find((styledcolumn) => styledcolumn.ColumnId === columnId);
|
|
36
36
|
}
|
|
37
37
|
getAllActiveStyledColumn() {
|
|
38
|
-
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllActiveStyledColumn', 'getActiveStyledColumns');
|
|
38
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllActiveStyledColumn', 'getActiveStyledColumns');
|
|
39
39
|
return this.getActiveStyledColumns();
|
|
40
40
|
}
|
|
41
41
|
getActiveStyledColumns() {
|
|
42
42
|
return this.getStyledColumns().filter((styledcolumn) => !styledcolumn.IsSuspended);
|
|
43
43
|
}
|
|
44
44
|
getAllSuspendedStyledColumn() {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllSuspendedStyledColumn', 'getSuspendedStyledColumns');
|
|
45
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllSuspendedStyledColumn', 'getSuspendedStyledColumns');
|
|
46
46
|
return this.getSuspendedStyledColumns();
|
|
47
47
|
}
|
|
48
48
|
getSuspendedStyledColumns() {
|
|
@@ -77,14 +77,14 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
77
|
this.setSystemStatus(statusMessage, 'Info', statusFurtherInformation);
|
|
78
78
|
}
|
|
79
79
|
showSystemStatusPopup() {
|
|
80
|
-
(0, logDeprecation_1.logDeprecation)('SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
|
|
80
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
|
|
81
81
|
this.openSystemStatusSettingsPanel();
|
|
82
82
|
}
|
|
83
83
|
openSystemStatusSettingsPanel() {
|
|
84
84
|
this.showModulePopup(ModuleConstants.SystemStatusModuleId);
|
|
85
85
|
}
|
|
86
86
|
fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
|
|
87
|
-
(0, logDeprecation_1.logDeprecationInternal)('SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
|
|
87
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
|
|
88
88
|
this.internalApi.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
|
|
89
89
|
}
|
|
90
90
|
getCurrentSystemStatusMessageInfo() {
|
|
@@ -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;
|
|
@@ -6,6 +6,7 @@ const ApiBase_1 = require("../Implementation/ApiBase");
|
|
|
6
6
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
7
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
8
8
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
9
|
+
const NumberExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/NumberExtensions"));
|
|
9
10
|
class GridInternalApi extends ApiBase_1.ApiBase {
|
|
10
11
|
/**
|
|
11
12
|
* Fires Grid Sorted Event
|
|
@@ -76,10 +77,19 @@ class GridInternalApi extends ApiBase_1.ApiBase {
|
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
const { gridCells, suppressClientSideFilter } = await this.adaptable.getDistinctFilterValuesForColumn(abColumn, showFilteredRowsOnly, filter);
|
|
80
|
+
let showValuesCount = false;
|
|
81
|
+
const showValuesCountFunction = this.getFilterOptions().showValuesCount;
|
|
82
|
+
if (showValuesCountFunction) {
|
|
83
|
+
showValuesCount = showValuesCountFunction(abColumn);
|
|
84
|
+
}
|
|
79
85
|
return {
|
|
80
86
|
values: this.sortDistinctValues(gridCells, abColumn).map((cv) => {
|
|
87
|
+
const label = showValuesCount
|
|
88
|
+
? cv.displayValue +
|
|
89
|
+
NumberExtensions_1.default.WrapInParentheses(this.getGridApi().getCellDisplayValueCount(abColumn.columnId, cv.displayValue))
|
|
90
|
+
: cv.displayValue;
|
|
81
91
|
return {
|
|
82
|
-
label:
|
|
92
|
+
label: label,
|
|
83
93
|
value: cv.normalisedValue,
|
|
84
94
|
};
|
|
85
95
|
}),
|
|
@@ -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
|