@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
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
6
6
|
const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
10
9
|
const CustomSortInternalApi_1 = require("../Internal/CustomSortInternalApi");
|
|
11
10
|
class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -17,7 +16,7 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
17
16
|
return this.getAdaptableState().CustomSort;
|
|
18
17
|
}
|
|
19
18
|
getAllCustomSort(config) {
|
|
20
|
-
(0, logDeprecation_1.logDeprecation)('CustomSortApi', 'getAllCustomSort', 'getCustomSorts');
|
|
19
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllCustomSort', 'getCustomSorts');
|
|
21
20
|
return this.getCustomSorts(config);
|
|
22
21
|
}
|
|
23
22
|
getCustomSorts(config) {
|
|
@@ -28,14 +27,14 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
28
27
|
return this.getCustomSorts().find((customSort) => customSort.Uuid === id);
|
|
29
28
|
}
|
|
30
29
|
getAllActiveCustomSort() {
|
|
31
|
-
(0, logDeprecation_1.logDeprecation)('CustomSortApi', 'getAllActiveCustomSort', 'getActiveCustomSorts');
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllActiveCustomSort', 'getActiveCustomSorts');
|
|
32
31
|
return this.getActiveCustomSorts();
|
|
33
32
|
}
|
|
34
33
|
getActiveCustomSorts(config) {
|
|
35
34
|
return this.getCustomSorts(config).filter((customSort) => !customSort.IsSuspended);
|
|
36
35
|
}
|
|
37
36
|
getAllSuspendedCustomSort() {
|
|
38
|
-
(0, logDeprecation_1.logDeprecation)('CustomSortApi', 'getAllSuspendedCustomSort', 'getSuspendedCustomSorts');
|
|
37
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'getAllSuspendedCustomSort', 'getSuspendedCustomSorts');
|
|
39
38
|
return this.getSuspendedCustomSorts();
|
|
40
39
|
}
|
|
41
40
|
getSuspendedCustomSorts(config) {
|
|
@@ -59,7 +58,7 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
59
58
|
editCustomSort(columnId, values) {
|
|
60
59
|
const previousCustomSort = this.getCustomSortForColumn(columnId);
|
|
61
60
|
if (!previousCustomSort) {
|
|
62
|
-
|
|
61
|
+
this.logWarn(`No custom sort defined for ${columnId}`);
|
|
63
62
|
return;
|
|
64
63
|
}
|
|
65
64
|
const newCustomSort = Object.assign(Object.assign({}, previousCustomSort), { SortedValues: values });
|
|
@@ -79,7 +78,7 @@ class CustomSortApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
78
|
return this.getCustomSortById(customSort.Uuid);
|
|
80
79
|
}
|
|
81
80
|
showCustomSortPopup() {
|
|
82
|
-
(0, logDeprecation_1.logDeprecation)('CustomSortApi', 'showCustomSortPopup', 'openCustomSortSettingsPanel');
|
|
81
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CustomSortApi', 'showCustomSortPopup', 'openCustomSortSettingsPanel');
|
|
83
82
|
}
|
|
84
83
|
openCustomSortSettingsPanel() {
|
|
85
84
|
this.showModulePopup(ModuleConstants.CustomSortModuleId);
|
|
@@ -16,7 +16,7 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
// both firing the same events, thus this function being called twice;
|
|
17
17
|
// so we debounced to only get tha latest call
|
|
18
18
|
this.fireDashboardChangedEvent = (trigger, oldDashboardState, newDashboardState) => {
|
|
19
|
-
(0, logDeprecation_1.logDeprecationInternal)('DashboardApi', 'fireDashboardChangedEvent');
|
|
19
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DashboardApi', 'fireDashboardChangedEvent');
|
|
20
20
|
this.internalApi.fireDashboardChangedEvent(trigger, oldDashboardState, newDashboardState);
|
|
21
21
|
};
|
|
22
22
|
this.internalApi = new DashboardInternalApi_1.DashboardInternalApi(adaptable);
|
|
@@ -119,14 +119,14 @@ class DashboardApiImpl extends ApiBase_1.ApiBase {
|
|
|
119
119
|
return currentTab.Toolbars;
|
|
120
120
|
}
|
|
121
121
|
showDashboardPopup() {
|
|
122
|
-
(0, logDeprecation_1.logDeprecation)('DashboardApi', 'showDashboardPopup', 'openDashboardSettingsPanel');
|
|
122
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'showDashboardPopup', 'openDashboardSettingsPanel');
|
|
123
123
|
this.openDashboardSettingsPanel();
|
|
124
124
|
}
|
|
125
125
|
openDashboardSettingsPanel() {
|
|
126
126
|
this.showModulePopup(ModuleConstants.DashboardModuleId);
|
|
127
127
|
}
|
|
128
128
|
hasCustomToolbarChanged(dashboardChangedInfo, customToolbarName) {
|
|
129
|
-
(0, logDeprecation_1.logDeprecation)('DashboardApi', 'hasCustomToolbarChanged', null, 'Use instead the information provided in the DashboardChanged event.');
|
|
129
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DashboardApi', 'hasCustomToolbarChanged', null, 'Use instead the information provided in the DashboardChanged event.');
|
|
130
130
|
const visibleInNewState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.newDashboardState);
|
|
131
131
|
const visibleInOldState = this.internalApi.isToolbarInActiveTab(customToolbarName, dashboardChangedInfo.oldDashboardState);
|
|
132
132
|
if (visibleInNewState && !visibleInOldState) {
|
|
@@ -42,7 +42,7 @@ class DataChangeHistoryApiImpl extends ApiBase_1.ApiBase {
|
|
|
42
42
|
this.dispatchAction((0, SystemRedux_1.SystemDataChangeHistoryUndo)(dataChangeInfo));
|
|
43
43
|
}
|
|
44
44
|
showDataChangeHistoryPopup() {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)('DataChangeHistoryApi', 'showDataChangeHistoryPopup', 'openDataChangeHistorySettingsPanel');
|
|
45
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataChangeHistoryApi', 'showDataChangeHistoryPopup', 'openDataChangeHistorySettingsPanel');
|
|
46
46
|
this.openDataChangeHistorySettingsPanel();
|
|
47
47
|
}
|
|
48
48
|
openDataChangeHistorySettingsPanel() {
|
|
@@ -13,7 +13,7 @@ class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
|
13
13
|
this.internalApi = new DataSetInternalApi_1.DataSetInternalApi(adaptable);
|
|
14
14
|
}
|
|
15
15
|
getAllDataSets() {
|
|
16
|
-
(0, logDeprecation_1.logDeprecation)('DataSetApi', 'getAllDataSets', 'getDataSets');
|
|
16
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'getAllDataSets', 'getDataSets');
|
|
17
17
|
return this.getDataSets();
|
|
18
18
|
}
|
|
19
19
|
getDataSets() {
|
|
@@ -37,14 +37,14 @@ class DataSetApiImpl extends ApiBase_1.ApiBase {
|
|
|
37
37
|
this.dispatchAction(SystemRedux.SystemDataSetSelect(null));
|
|
38
38
|
}
|
|
39
39
|
showDataSetPopup() {
|
|
40
|
-
(0, logDeprecation_1.logDeprecation)('DataSetApi', 'showDataSetPopup', 'openDataSetSettingsPanel');
|
|
40
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'DataSetApi', 'showDataSetPopup', 'openDataSetSettingsPanel');
|
|
41
41
|
this.openDataSetSettingsPanel();
|
|
42
42
|
}
|
|
43
43
|
openDataSetSettingsPanel() {
|
|
44
44
|
this.showModulePopup(ModuleConstants.DataSetModuleId);
|
|
45
45
|
}
|
|
46
46
|
fireDataSetSelectedEvent(dataSet) {
|
|
47
|
-
(0, logDeprecation_1.logDeprecationInternal)('DataSetApi', 'fireDataSetSelectedEvent');
|
|
47
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'DataSetApi', 'fireDataSetSelectedEvent');
|
|
48
48
|
this.internalApi.fireDataSetSelectedEvent(dataSet);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -6,7 +6,6 @@ const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Ex
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const Enums_1 = require("../../PredefinedConfig/Common/Enums");
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
11
10
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
12
11
|
const ExportInternalApi_1 = require("../Internal/ExportInternalApi");
|
|
@@ -64,7 +63,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
64
63
|
return systemDestinations;
|
|
65
64
|
}
|
|
66
65
|
getAllReports() {
|
|
67
|
-
(0, logDeprecation_1.logDeprecation)('ExportApi', 'getAllReports', 'getReports');
|
|
66
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllReports', 'getReports');
|
|
68
67
|
return this.getReports();
|
|
69
68
|
}
|
|
70
69
|
getReports() {
|
|
@@ -95,7 +94,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
94
|
this.dispatchAction(ExportRedux.DestinationSelect(destinationName));
|
|
96
95
|
}
|
|
97
96
|
getAllCustomDestination() {
|
|
98
|
-
(0, logDeprecation_1.logDeprecation)('ExportApi', 'getAllCustomDestination', 'getCustomDestinations');
|
|
97
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllCustomDestination', 'getCustomDestinations');
|
|
99
98
|
return this.getCustomDestinations();
|
|
100
99
|
}
|
|
101
100
|
getCustomDestinations() {
|
|
@@ -116,7 +115,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
116
115
|
this.adaptable.exportToExcel(reportData, fileName);
|
|
117
116
|
}
|
|
118
117
|
showExportPopup() {
|
|
119
|
-
(0, logDeprecation_1.logDeprecation)('ExportApi', 'showExportPopup', 'openExportSettingsPanel');
|
|
118
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'showExportPopup', 'openExportSettingsPanel');
|
|
120
119
|
this.openExportSettingsPanel();
|
|
121
120
|
}
|
|
122
121
|
openExportSettingsPanel() {
|
|
@@ -133,14 +132,14 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
133
132
|
return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
|
|
134
133
|
}
|
|
135
134
|
isDataChangeInReport(cellDataChangedInfo, report) {
|
|
136
|
-
(0, logDeprecation_1.logDeprecationInternal)('ExportApi', 'isDataChangeInReport');
|
|
135
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ExportApi', 'isDataChangeInReport');
|
|
137
136
|
return this.internalApi.isDataChangeInReport(cellDataChangedInfo, report);
|
|
138
137
|
}
|
|
139
138
|
exportVisualDataToExcel() {
|
|
140
139
|
this.adaptable.exportVisualDataToExcel();
|
|
141
140
|
}
|
|
142
141
|
getAllServerReports() {
|
|
143
|
-
(0, logDeprecation_1.logDeprecation)('ExportApi', 'getAllServerReports', 'getServerReports');
|
|
142
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ExportApi', 'getAllServerReports', 'getServerReports');
|
|
144
143
|
return this.getServerReports();
|
|
145
144
|
}
|
|
146
145
|
getServerReports() {
|
|
@@ -155,7 +154,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
155
154
|
var _a;
|
|
156
155
|
const serverReport = (_a = this.getServerReports()) === null || _a === void 0 ? void 0 : _a.find((cr) => cr.name == serverReportName);
|
|
157
156
|
if (!serverReport) {
|
|
158
|
-
|
|
157
|
+
this.logWarn(`Server Report '${serverReportName}' not found!`);
|
|
159
158
|
return undefined;
|
|
160
159
|
}
|
|
161
160
|
return serverReport.onRunReport();
|
|
@@ -163,7 +162,7 @@ class ExportApiImpl extends ApiBase_1.ApiBase {
|
|
|
163
162
|
getReportDataForReport(reportName) {
|
|
164
163
|
const report = this.getReportByName(reportName);
|
|
165
164
|
if (!report) {
|
|
166
|
-
|
|
165
|
+
this.logWarn(`Report '${reportName}' not found!`);
|
|
167
166
|
return undefined;
|
|
168
167
|
}
|
|
169
168
|
return this.adaptable.api.internalApi.getReportService().getReportData(report);
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/SystemRedux"));
|
|
6
6
|
const LayoutRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/LayoutRedux"));
|
|
7
7
|
const ApiBase_1 = require("./ApiBase");
|
|
8
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
10
9
|
const FilterInternalApi_1 = require("../Internal/FilterInternalApi");
|
|
11
10
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
@@ -15,7 +14,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
15
14
|
this.internalApi = new FilterInternalApi_1.FilterInternalApi(adaptable);
|
|
16
15
|
}
|
|
17
16
|
findPredicateDefByShortcut(shortcut, column) {
|
|
18
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'findPredicateDefByShortcut');
|
|
17
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'findPredicateDefByShortcut');
|
|
19
18
|
return this.internalApi.findPredicateDefByShortcut(shortcut, column);
|
|
20
19
|
}
|
|
21
20
|
getFilterPredicateDefsForColumn(column) {
|
|
@@ -66,18 +65,18 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
66
65
|
return (_a = layout.ColumnFilters) !== null && _a !== void 0 ? _a : [];
|
|
67
66
|
}
|
|
68
67
|
setColumnFilter(columnFilters) {
|
|
69
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'setColumnFilter', 'setColumnFilters');
|
|
68
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'setColumnFilter', 'setColumnFilters');
|
|
70
69
|
return this.setColumnFilters(columnFilters);
|
|
71
70
|
}
|
|
72
71
|
setColumnFilters(columnFilters) {
|
|
73
72
|
columnFilters.forEach((columnFilter) => {
|
|
74
73
|
if (!columnFilter.Predicate) {
|
|
75
|
-
|
|
74
|
+
this.logWarn('Column Filter has no Predicate', columnFilter);
|
|
76
75
|
}
|
|
77
76
|
else {
|
|
78
77
|
const isValidPredicate = this.adaptable.api.predicateApi.isValidPredicate(columnFilter.Predicate);
|
|
79
78
|
if (!isValidPredicate) {
|
|
80
|
-
|
|
79
|
+
this.logWarn('Column Filter Predicate is not valid', columnFilter);
|
|
81
80
|
}
|
|
82
81
|
else {
|
|
83
82
|
this.addUidToAdaptableObject(columnFilter);
|
|
@@ -96,7 +95,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
96
95
|
this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilter));
|
|
97
96
|
}
|
|
98
97
|
clearColumnFilterByColumns(columns) {
|
|
99
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearColumnFilterByColumns', 'clearColumnFiltersForColumns');
|
|
98
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearColumnFilterByColumns', 'clearColumnFiltersForColumns');
|
|
100
99
|
this.clearColumnFiltersForColumns(columns);
|
|
101
100
|
}
|
|
102
101
|
clearColumnFiltersForColumns(columns) {
|
|
@@ -105,7 +104,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
105
104
|
});
|
|
106
105
|
}
|
|
107
106
|
clearColumnFilterByColumn(column) {
|
|
108
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearColumnFilterByColumn', 'clearColumnFilterForColumn');
|
|
107
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearColumnFilterByColumn', 'clearColumnFilterForColumn');
|
|
109
108
|
this.clearColumnFilterForColumn(column);
|
|
110
109
|
}
|
|
111
110
|
clearColumnFilters() {
|
|
@@ -113,7 +112,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
113
112
|
this.adaptable.clearGridFiltering();
|
|
114
113
|
}
|
|
115
114
|
clearAndSetColumnFilter(columnFilters) {
|
|
116
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'clearAndSetColumnFilter', 'clearAndSetColumnFilters');
|
|
115
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'clearAndSetColumnFilter', 'clearAndSetColumnFilters');
|
|
117
116
|
this.clearAndSetColumnFilters(columnFilters);
|
|
118
117
|
}
|
|
119
118
|
clearAndSetColumnFilters(columnFilters) {
|
|
@@ -121,19 +120,19 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
121
120
|
this.setColumnFilters(columnFilters);
|
|
122
121
|
}
|
|
123
122
|
getAllColumnFilterForColumn(column) {
|
|
124
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'getAllColumnFilterForColumn', 'getColumnFilterForColumn', 'One Column may have at most one ColumnFilter applied!');
|
|
123
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'getAllColumnFilterForColumn', 'getColumnFilterForColumn', 'One Column may have at most one ColumnFilter applied!');
|
|
125
124
|
return [this.getColumnFilterForColumn(column)];
|
|
126
125
|
}
|
|
127
126
|
getColumnFilter(columnId) {
|
|
128
|
-
(0, logDeprecation_1.logDeprecation)('FilterApi', 'getColumnFilter', 'getColumnFilterForColumn');
|
|
127
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FilterApi', 'getColumnFilter', 'getColumnFilterForColumn');
|
|
129
128
|
return this.getColumnFilterForColumn(columnId);
|
|
130
129
|
}
|
|
131
130
|
createValuesColumnFilterForCells(gridCells) {
|
|
132
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'createValuesColumnFilterForCells');
|
|
131
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'createValuesColumnFilterForCells');
|
|
133
132
|
return this.internalApi.createValuesColumnFilterForCells(gridCells);
|
|
134
133
|
}
|
|
135
134
|
createEqualityColumnFilterForCell(gridCell) {
|
|
136
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'createEqualityColumnFilterForCell');
|
|
135
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'createEqualityColumnFilterForCell');
|
|
137
136
|
return this.internalApi.createEqualityColumnFilterForCell(gridCell);
|
|
138
137
|
}
|
|
139
138
|
columnFilterToString(columnFilter) {
|
|
@@ -143,7 +142,7 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
143
142
|
return this.internalApi.columnFiltersToString(columnFilters);
|
|
144
143
|
}
|
|
145
144
|
evaluateColumnFilter(columnFilter, node) {
|
|
146
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'evaluateColumnFilter');
|
|
145
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'evaluateColumnFilter');
|
|
147
146
|
return this.internalApi.evaluateColumnFilter(columnFilter, node);
|
|
148
147
|
}
|
|
149
148
|
getColumnFilterById(id) {
|
|
@@ -178,15 +177,15 @@ class FilterApiImpl extends ApiBase_1.ApiBase {
|
|
|
178
177
|
return allInputsHaveValues;
|
|
179
178
|
}
|
|
180
179
|
shouldNewColumnFilterTriggerGridFiltering(action) {
|
|
181
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'shouldNewColumnFilterTriggerGridFiltering');
|
|
180
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'shouldNewColumnFilterTriggerGridFiltering');
|
|
182
181
|
return this.internalApi.shouldNewColumnFilterTriggerGridFiltering(action);
|
|
183
182
|
}
|
|
184
183
|
areColumnFiltersDifferent(oldFilters, newFilters) {
|
|
185
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'areColumnFiltersDifferent');
|
|
184
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'areColumnFiltersDifferent');
|
|
186
185
|
return this.internalApi.areColumnFiltersDifferent(oldFilters, newFilters);
|
|
187
186
|
}
|
|
188
187
|
fireFilterAppliedEvent() {
|
|
189
|
-
(0, logDeprecation_1.logDeprecationInternal)('FilterApi', 'fireFilterAppliedEvent');
|
|
188
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FilterApi', 'fireFilterAppliedEvent');
|
|
190
189
|
this.internalApi.fireFilterAppliedEvent();
|
|
191
190
|
}
|
|
192
191
|
suspendColumnFilter(columnFilter) {
|
|
@@ -23,7 +23,7 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition) {
|
|
26
|
-
(0, logDeprecation_1.logDeprecationInternal)('FlashingCellApi', 'mergeFlashingCellDefinitionWithDefaults');
|
|
26
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FlashingCellApi', 'mergeFlashingCellDefinitionWithDefaults');
|
|
27
27
|
return this.internalApi.mergeFlashingCellDefinitionWithDefaults(flashingCellDefinition);
|
|
28
28
|
}
|
|
29
29
|
getFlashingCellDefinitionById(id) {
|
|
@@ -94,14 +94,14 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
|
|
|
94
94
|
.filter((predicateDef) => this.adaptable.api.scopeApi.isScopeInScope(scope, predicateDef.columnScope));
|
|
95
95
|
}
|
|
96
96
|
clearGridFlashing() {
|
|
97
|
-
(0, logDeprecation_1.logDeprecation)('FlashingCellApi', 'clearGridFlashing', 'clearAllFlashingCells');
|
|
97
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FlashingCellApi', 'clearGridFlashing', 'clearAllFlashingCells');
|
|
98
98
|
this.clearAllFlashingCells();
|
|
99
99
|
}
|
|
100
100
|
clearAllFlashingCells() {
|
|
101
101
|
this.dispatchAction(SystemRedux.SystemFlashingCellDeleteAll());
|
|
102
102
|
}
|
|
103
103
|
areCellsCurrentlyFlashed() {
|
|
104
|
-
(0, logDeprecation_1.logDeprecation)('FlashingCellApi', 'areCellsCurrentlyFlashed', 'isAnyFlashingCellActive');
|
|
104
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FlashingCellApi', 'areCellsCurrentlyFlashed', 'isAnyFlashingCellActive');
|
|
105
105
|
return this.isAnyFlashingCellActive();
|
|
106
106
|
}
|
|
107
107
|
isAnyFlashingCellActive() {
|
|
@@ -16,7 +16,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
return this.getAdaptableState().FormatColumn;
|
|
17
17
|
}
|
|
18
18
|
getAllFormatColumn(config) {
|
|
19
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
19
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
20
20
|
return this.getFormatColumns(config);
|
|
21
21
|
}
|
|
22
22
|
getFormatColumns(config) {
|
|
@@ -27,33 +27,33 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
27
27
|
return this.getFormatColumns({ includeLayoutNotAssociatedObjects: true }).find((formatColumn) => formatColumn.Uuid === id);
|
|
28
28
|
}
|
|
29
29
|
getAllActiveFormatColumn() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
31
31
|
return this.getActiveFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
32
32
|
}
|
|
33
33
|
getActiveFormatColumns(config) {
|
|
34
34
|
return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
|
|
35
35
|
}
|
|
36
36
|
getAllSuspendedFormatColumn() {
|
|
37
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
37
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
38
38
|
return this.getSuspendedFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
39
39
|
}
|
|
40
40
|
getSuspendedFormatColumns(config) {
|
|
41
41
|
return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
|
|
42
42
|
}
|
|
43
43
|
getAllFormatColumnWithStyle() {
|
|
44
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
44
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
45
45
|
return this.internalApi.getAllFormatColumnWithStyle();
|
|
46
46
|
}
|
|
47
47
|
getAllFormatColumnWithStyleAndCellAlignment() {
|
|
48
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
48
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
49
49
|
return this.internalApi.getAllFormatColumnWithStyleAndCellAlignment();
|
|
50
50
|
}
|
|
51
51
|
getAllFormatColumnWithDisplayFormat() {
|
|
52
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
52
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
53
53
|
return this.internalApi.getAllFormatColumnWithDisplayFormat();
|
|
54
54
|
}
|
|
55
55
|
getAllFormatColumnWithCellAlignment() {
|
|
56
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
56
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
57
57
|
return this.internalApi.getAllFormatColumnWithCellAlignment();
|
|
58
58
|
}
|
|
59
59
|
addFormatColumn(formatColumn) {
|
|
@@ -95,7 +95,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
95
|
return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
96
96
|
}
|
|
97
97
|
getFormatColumnsWithStyleForColumn(column, config) {
|
|
98
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
98
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
99
99
|
return this.internalApi.getFormatColumnsWithStyleForColumn(column, config);
|
|
100
100
|
}
|
|
101
101
|
getFormatColumnsForColumnId(columnId, config) {
|
|
@@ -106,15 +106,15 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
106
106
|
return this.getFormatColumnsForColumn(abColumn, config);
|
|
107
107
|
}
|
|
108
108
|
getFormatColumnWithStyleClassNameForColumn(column, config) {
|
|
109
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
109
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
110
110
|
return this.internalApi.getFormatColumnWithStyleClassNameForColumn(column, config);
|
|
111
111
|
}
|
|
112
112
|
getFormatColumnsWithDisplayFormatForColumn(column, config) {
|
|
113
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
113
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
114
114
|
return this.internalApi.getFormatColumnsWithDisplayFormatForColumn(column, config);
|
|
115
115
|
}
|
|
116
116
|
showFormatColumnPopup() {
|
|
117
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
117
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
118
118
|
this.openFormatColumnSettingsPanel();
|
|
119
119
|
}
|
|
120
120
|
openFormatColumnSettingsPanel() {
|
|
@@ -130,15 +130,15 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
130
130
|
return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
|
|
131
131
|
}
|
|
132
132
|
getNumberFormattedValue(value, node, abColumn, options) {
|
|
133
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getNumberFormattedValue');
|
|
133
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getNumberFormattedValue');
|
|
134
134
|
return this.internalApi.getNumberFormattedValue(value, node, abColumn, options);
|
|
135
135
|
}
|
|
136
136
|
getStringFormattedValue(value, node, abColumn, options) {
|
|
137
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getStringFormattedValue');
|
|
137
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getStringFormattedValue');
|
|
138
138
|
return this.internalApi.getStringFormattedValue(value, node, abColumn, options);
|
|
139
139
|
}
|
|
140
140
|
getDateFormattedValue(value, node, abColumn, options) {
|
|
141
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getDateFormattedValue');
|
|
141
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getDateFormattedValue');
|
|
142
142
|
return this.internalApi.getDateFormattedValue(value, node, abColumn, options);
|
|
143
143
|
}
|
|
144
144
|
hasCustomDisplayFormatter(formatColumn) {
|
|
@@ -154,19 +154,19 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
getFormatColumnDefsForScope(scope) {
|
|
157
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
157
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
158
158
|
return this.internalApi.getFormatColumnDefsForScope(scope);
|
|
159
159
|
}
|
|
160
160
|
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
161
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
161
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
162
162
|
return this.internalApi.getFormatColumnsRelevantForColumn(formatColumns, column, params);
|
|
163
163
|
}
|
|
164
164
|
isFormatColumnRelevantForColumn(formatColumn, column, params) {
|
|
165
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
165
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
166
166
|
return this.internalApi.isFormatColumnRelevantForColumn(formatColumn, column, params);
|
|
167
167
|
}
|
|
168
168
|
getFormatColumnsWithExpression() {
|
|
169
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
169
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
170
170
|
return this.internalApi.getFormatColumnsWithExpression();
|
|
171
171
|
}
|
|
172
172
|
incrementFormatColumnPrecedence(formatColumn) {
|
|
@@ -6,7 +6,6 @@ const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsRed
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
11
10
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
12
11
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -18,7 +17,7 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
18
17
|
return this.getAdaptableState().FreeTextColumn;
|
|
19
18
|
}
|
|
20
19
|
getAllFreeTextColumn() {
|
|
21
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
20
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
22
21
|
return this.getFreeTextColumns();
|
|
23
22
|
}
|
|
24
23
|
getFreeTextColumns() {
|
|
@@ -41,20 +40,20 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
40
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
42
41
|
}
|
|
43
42
|
addEditFreeTextColumnStoredValue(freeTextColumn, storedValue) {
|
|
44
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
43
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
45
44
|
return this.setStoredValue(freeTextColumn.ColumnId, storedValue);
|
|
46
45
|
}
|
|
47
46
|
setStoredValue(columnId, storedValue) {
|
|
48
47
|
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
49
48
|
if (!freeTextColumn) {
|
|
50
|
-
|
|
49
|
+
this.logWarn(`No FreeTextColumn with columnId=${columnId} was found!`);
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
52
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnAddEditStoredValue(freeTextColumn, storedValue));
|
|
54
53
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
55
54
|
}
|
|
56
55
|
addStoredValuesToFreeTextColumn(columnId, storedValues, replaceAction) {
|
|
57
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
56
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
58
57
|
this.setStoredValues(columnId, storedValues, replaceAction);
|
|
59
58
|
}
|
|
60
59
|
setStoredValues(columnId, storedValues, replaceAction) {
|
|
@@ -99,14 +98,14 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
showFreeTextColumnPopup() {
|
|
102
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
101
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
103
102
|
this.openFreeTextColumnSettingsPanel();
|
|
104
103
|
}
|
|
105
104
|
openFreeTextColumnSettingsPanel() {
|
|
106
105
|
this.showModulePopup(ModuleConstants.FreeTextColumnModuleId);
|
|
107
106
|
}
|
|
108
107
|
getFreeTextColumnValueFromRowNode(freeTextColumn, rowNode) {
|
|
109
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
108
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
110
109
|
return this.getFreeTextColumnValueForRowNode(freeTextColumn, rowNode);
|
|
111
110
|
}
|
|
112
111
|
getFreeTextColumnValueForRowNode(freeTextColumn, rowNode) {
|
|
@@ -124,16 +123,16 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
124
123
|
return freeTextColumn.DefaultValue;
|
|
125
124
|
}
|
|
126
125
|
catch (e) {
|
|
127
|
-
|
|
126
|
+
this.logError(e);
|
|
128
127
|
return null;
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
checkFreeTextColumnForDataChange(cellDataChangedInfo) {
|
|
132
|
-
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
131
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
133
132
|
return this.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
|
|
134
133
|
}
|
|
135
134
|
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
136
|
-
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
135
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
137
136
|
return this.internalApi.getFreeTextColumnModuleReferences(freeTextColumn);
|
|
138
137
|
}
|
|
139
138
|
}
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
7
7
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
const GridInternalApi_1 = require("../Internal/GridInternalApi");
|
|
12
11
|
class GridApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -56,18 +55,18 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
55
|
setCellValue(columnId, newValue, primaryKeyValue) {
|
|
57
56
|
const abColumn = this.adaptable.api.columnApi.getColumnWithColumnId(columnId);
|
|
58
57
|
if (!abColumn) {
|
|
59
|
-
|
|
58
|
+
this.logWarn(`setCellValue() - column not found for columnId: ${columnId}`);
|
|
60
59
|
return;
|
|
61
60
|
}
|
|
62
61
|
const rowNode = this.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
63
62
|
if (!rowNode) {
|
|
64
|
-
|
|
63
|
+
this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${primaryKeyValue}`);
|
|
65
64
|
return;
|
|
66
65
|
}
|
|
67
66
|
this.adaptable.setDataValue(newValue, abColumn, primaryKeyValue, rowNode);
|
|
68
67
|
}
|
|
69
68
|
setCellsValue(gridCells) {
|
|
70
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'setCellsValue', 'setCellValues');
|
|
69
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'setCellsValue', 'setCellValues');
|
|
71
70
|
this.setCellValues(gridCells);
|
|
72
71
|
}
|
|
73
72
|
setCellValues(gridCells) {
|
|
@@ -305,7 +304,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
305
304
|
this.adaptable.expandAllRowGroups();
|
|
306
305
|
}
|
|
307
306
|
closeAllRowGroups() {
|
|
308
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'closeAllRowGroups', 'collapseAllRowGroups');
|
|
307
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'closeAllRowGroups', 'collapseAllRowGroups');
|
|
309
308
|
this.collapseAllRowGroups();
|
|
310
309
|
}
|
|
311
310
|
collapseAllRowGroups() {
|
|
@@ -340,15 +339,15 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
340
339
|
this.adaptable.redrawHeader();
|
|
341
340
|
}
|
|
342
341
|
fireGridSortedEvent() {
|
|
343
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireGridSortedEvent');
|
|
342
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridSortedEvent');
|
|
344
343
|
this.internalApi.fireGridSortedEvent();
|
|
345
344
|
}
|
|
346
345
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
347
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireCellChangedEvent');
|
|
346
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireCellChangedEvent');
|
|
348
347
|
this.internalApi.fireCellChangedEvent(cellDataChangedInfo);
|
|
349
348
|
}
|
|
350
349
|
fireGridDataChangedEvent(dataRows, rowNodes = [], rowTrigger) {
|
|
351
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireGridDataChangedEvent');
|
|
350
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridDataChangedEvent');
|
|
352
351
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger);
|
|
353
352
|
}
|
|
354
353
|
jumpToRow(primaryKeyValue) {
|
|
@@ -428,7 +427,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
428
427
|
return this.adaptable.isCellEditable(gridCell.rowNode, this.adaptable.getAgGridColumnForColumnId(gridCell.column.columnId));
|
|
429
428
|
}
|
|
430
429
|
areCellsEditable(gridCells) {
|
|
431
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'areCellsEditable', 'isEveryCellEditable');
|
|
430
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'areCellsEditable', 'isEveryCellEditable');
|
|
432
431
|
return this.isEveryCellEditable(gridCells);
|
|
433
432
|
}
|
|
434
433
|
isEveryCellEditable(gridCells) {
|
|
@@ -470,7 +469,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
470
469
|
return this.adaptable.getAgGridContainerElement();
|
|
471
470
|
}
|
|
472
471
|
showGridInfoPopup() {
|
|
473
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'showGridInfoPopup', 'openGridInfoSettingsPanel');
|
|
472
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'showGridInfoPopup', 'openGridInfoSettingsPanel');
|
|
474
473
|
this.openGridInfoSettingsPanel();
|
|
475
474
|
}
|
|
476
475
|
openGridInfoSettingsPanel() {
|