@adaptabletools/adaptable 15.0.1 → 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/Helpers/StyleHelper.d.ts +1 -0
- package/src/Utilities/Helpers/StyleHelper.js +10 -1
- 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 +3 -1
- package/src/agGrid/Adaptable.js +85 -44
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3-canary.0",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@infinite-table/infinite-react": "1.0.0",
|
|
35
35
|
"date-fns": "^2.28.0",
|
|
36
|
-
"debug": "
|
|
36
|
+
"debug": "4.3.4",
|
|
37
37
|
"isomorphic-fetch": "^2.2.1",
|
|
38
38
|
"lodash": "^4.17.15",
|
|
39
39
|
"normalize.css": "^8.0.1",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1679658816162;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -28,6 +28,7 @@ import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelSer
|
|
|
28
28
|
import { ColumnValuesComparer } from '../AdaptableOptions/GeneralOptions';
|
|
29
29
|
import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
|
|
30
30
|
import { RenderReactRootFn } from '../renderReactRoot';
|
|
31
|
+
import { AdaptableLogger } from '../agGrid/AdaptableLogger';
|
|
31
32
|
export declare type AdaptableVariant = 'vanilla' | 'react' | 'angular';
|
|
32
33
|
/**
|
|
33
34
|
* The only interface for Adaptable
|
|
@@ -37,6 +38,7 @@ export declare type AdaptableVariant = 'vanilla' | 'react' | 'angular';
|
|
|
37
38
|
* Should only be used internally as all external access is via the Api
|
|
38
39
|
*/
|
|
39
40
|
export interface IAdaptable {
|
|
41
|
+
logger: AdaptableLogger;
|
|
40
42
|
variant: AdaptableVariant;
|
|
41
43
|
supressReact18RenderWarning: boolean;
|
|
42
44
|
renderReactRoot: RenderReactRootFn;
|
|
@@ -100,6 +100,10 @@ export interface DataSet extends AdaptableObject {
|
|
|
100
100
|
* Params for Data Set popup form
|
|
101
101
|
*/
|
|
102
102
|
form?: AdaptableForm<DataSetFormContext>;
|
|
103
|
+
/**
|
|
104
|
+
* Additional info for Data Set
|
|
105
|
+
*/
|
|
106
|
+
info?: Record<string, string | number | boolean | Date>;
|
|
103
107
|
}
|
|
104
108
|
/**
|
|
105
109
|
* Used when a DataSet displays a Form
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActionApiImpl = void 0;
|
|
4
4
|
const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
|
|
5
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
6
5
|
const ApiBase_1 = require("./ApiBase");
|
|
7
6
|
const ActionInternalApi_1 = require("../Internal/ActionInternalApi");
|
|
8
7
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
@@ -26,7 +25,7 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
25
|
displayEditActionRow(primaryKey) {
|
|
27
26
|
const rowNode = this.adaptable.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
|
|
28
27
|
if (!rowNode) {
|
|
29
|
-
|
|
28
|
+
this.logWarn(`Can NOT edit row: rowNode not found for primaryKey ${primaryKey}`);
|
|
30
29
|
}
|
|
31
30
|
const editForm = this.internalApi.buildRowEditForm(rowNode);
|
|
32
31
|
this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
|
|
@@ -48,7 +47,7 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
48
47
|
displayCloneActionRow(primaryKey) {
|
|
49
48
|
const rowNode = this.adaptable.api.gridApi.getRowNodeForPrimaryKey(primaryKey);
|
|
50
49
|
if (!rowNode) {
|
|
51
|
-
|
|
50
|
+
this.logWarn(`Can NOT clone row: rowNode not found for primaryKey ${primaryKey}`);
|
|
52
51
|
}
|
|
53
52
|
const createForm = this.internalApi.buildRowCreateForm(rowNode);
|
|
54
53
|
this.dispatchAction((0, PopupRedux_1.PopupShowForm)({
|
|
@@ -61,7 +60,7 @@ class ActionApiImpl extends ApiBase_1.ApiBase {
|
|
|
61
60
|
}));
|
|
62
61
|
}
|
|
63
62
|
getAllActionColumn() {
|
|
64
|
-
(0, logDeprecation_1.logDeprecation)('ActionApi', 'getAllActionColumn', 'getActionColumns');
|
|
63
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ActionApi', 'getAllActionColumn', 'getActionColumns');
|
|
65
64
|
return this.getActionColumns();
|
|
66
65
|
}
|
|
67
66
|
}
|
|
@@ -97,4 +97,8 @@ export declare class AdaptableApiImpl implements AdaptableApi {
|
|
|
97
97
|
destroyApi?: boolean;
|
|
98
98
|
}): void;
|
|
99
99
|
isDestroyed(): boolean;
|
|
100
|
+
logInfo(message: string, ...optionalParams: any[]): void;
|
|
101
|
+
logSuccess(message: string, ...optionalParams: any[]): void;
|
|
102
|
+
logWarn(message: string, ...optionalParams: any[]): void;
|
|
103
|
+
logError(message: string, ...optionalParams: any[]): void;
|
|
100
104
|
}
|
|
@@ -149,5 +149,17 @@ class AdaptableApiImpl {
|
|
|
149
149
|
isDestroyed() {
|
|
150
150
|
return this.destroyed;
|
|
151
151
|
}
|
|
152
|
+
logInfo(message, ...optionalParams) {
|
|
153
|
+
this.adaptable.logger.info(message, optionalParams);
|
|
154
|
+
}
|
|
155
|
+
logSuccess(message, ...optionalParams) {
|
|
156
|
+
this.adaptable.logger.success(message, optionalParams);
|
|
157
|
+
}
|
|
158
|
+
logWarn(message, ...optionalParams) {
|
|
159
|
+
this.adaptable.logger.warn(message, optionalParams);
|
|
160
|
+
}
|
|
161
|
+
logError(message, ...optionalParams) {
|
|
162
|
+
this.adaptable.logger.error(message, optionalParams);
|
|
163
|
+
}
|
|
152
164
|
}
|
|
153
165
|
exports.AdaptableApiImpl = AdaptableApiImpl;
|
|
@@ -6,7 +6,6 @@ const SystemRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/Sy
|
|
|
6
6
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
7
7
|
const AlertRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/AlertRedux"));
|
|
8
8
|
const ApiBase_1 = require("./ApiBase");
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
11
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
12
11
|
const AdaptableAlert_1 = require("../../PredefinedConfig/Common/AdaptableAlert");
|
|
@@ -43,7 +42,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
43
42
|
return this.getAlertDefinitionById(alertDefinition.Uuid);
|
|
44
43
|
}
|
|
45
44
|
async displayAlert(alertToShow) {
|
|
46
|
-
(0, logDeprecation_1.logDeprecation)('AlertApi', 'displayAlert', 'showAdaptableAlert');
|
|
45
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'displayAlert', 'showAdaptableAlert');
|
|
47
46
|
await this.showAdaptableAlert(alertToShow);
|
|
48
47
|
}
|
|
49
48
|
async showAdaptableAlert(alertToShow) {
|
|
@@ -72,7 +71,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
72
71
|
}
|
|
73
72
|
// 2. Log to console
|
|
74
73
|
if (alertProperties.LogToConsole) {
|
|
75
|
-
|
|
74
|
+
this.adaptable.logger.consoleLogByMessageType(alertToShow.header + ': ' + alertToShow.message, alertDefinition.MessageType);
|
|
76
75
|
}
|
|
77
76
|
// 3. Show it in a Div (if one has been set)
|
|
78
77
|
if (alertProperties.ShowInDiv) {
|
|
@@ -139,7 +138,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
displayMessageAlertPopup(alertToDisplayAsPopup) {
|
|
142
|
-
(0, logDeprecation_1.logDeprecation)('AlertApi', 'displayMessageAlertPopup', 'showAdaptableAlertAsToast');
|
|
141
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'displayMessageAlertPopup', 'showAdaptableAlertAsToast');
|
|
143
142
|
this.showAdaptableAlertAsToast(alertToDisplayAsPopup);
|
|
144
143
|
}
|
|
145
144
|
showAdaptableAlertAsToast(alert) {
|
|
@@ -166,7 +165,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
166
165
|
this.showModulePopup(ModuleConstants.AlertModuleId);
|
|
167
166
|
}
|
|
168
167
|
showAlertPopup() {
|
|
169
|
-
(0, logDeprecation_1.logDeprecation)('AlertApi', 'showAlertPopup', 'openAlertSettingsPanel');
|
|
168
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'AlertApi', 'showAlertPopup', 'openAlertSettingsPanel');
|
|
170
169
|
this.openAlertSettingsPanel();
|
|
171
170
|
}
|
|
172
171
|
editAlertDefinition(alertDefinition) {
|
|
@@ -259,79 +258,79 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
|
|
|
259
258
|
* DEPRECATED INTERNAL METHODS
|
|
260
259
|
*/
|
|
261
260
|
executeAlertAction(actionName, details) {
|
|
262
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'executeAlertAction');
|
|
261
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'executeAlertAction');
|
|
263
262
|
this.internalApi.executeAlertAction(actionName, details);
|
|
264
263
|
}
|
|
265
264
|
executeAlertButton(button, context) {
|
|
266
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'executeAlertButton');
|
|
265
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'executeAlertButton');
|
|
267
266
|
this.internalApi.executeAlertButton(button, context);
|
|
268
267
|
}
|
|
269
268
|
getActiveNonReactiveAlertDefinitions() {
|
|
270
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getActiveNonReactiveAlertDefinitions');
|
|
269
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getActiveNonReactiveAlertDefinitions');
|
|
271
270
|
return this.internalApi.getActiveNonReactiveAlertDefinitions();
|
|
272
271
|
}
|
|
273
272
|
getActiveReactiveAlertDefinitions() {
|
|
274
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getActiveReactiveAlertDefinitions');
|
|
273
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getActiveReactiveAlertDefinitions');
|
|
275
274
|
return this.internalApi.getActiveReactiveAlertDefinitions();
|
|
276
275
|
}
|
|
277
276
|
getAlertDefinitionsWithAllowEdit() {
|
|
278
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertDefinitionsWithAllowEdit');
|
|
277
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDefinitionsWithAllowEdit');
|
|
279
278
|
return this.internalApi.getAlertDefinitionsWithAllowEdit();
|
|
280
279
|
}
|
|
281
280
|
getAlertDefinitionsWithPreventEdit() {
|
|
282
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertDefinitionsWithPreventEdit');
|
|
281
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDefinitionsWithPreventEdit');
|
|
283
282
|
return this.internalApi.getAlertDefinitionsWithPreventEdit();
|
|
284
283
|
}
|
|
285
284
|
getAlertDescription(alertDefinition, cellDataChangedInfo) {
|
|
286
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertDescription');
|
|
285
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertDescription');
|
|
287
286
|
return this.internalApi.getAlertDescription(alertDefinition, cellDataChangedInfo);
|
|
288
287
|
}
|
|
289
288
|
getAlertMessageTitle(alertDefinition, cellDataChangedInfo) {
|
|
290
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertMessageTitle');
|
|
289
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertMessageTitle');
|
|
291
290
|
return this.internalApi.getAlertMessageTitle(alertDefinition, cellDataChangedInfo);
|
|
292
291
|
}
|
|
293
292
|
getAlertPredicateDefsForScope(scope) {
|
|
294
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertPredicateDefsForScope');
|
|
293
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertPredicateDefsForScope');
|
|
295
294
|
return this.internalApi.getAlertPredicateDefsForScope(scope);
|
|
296
295
|
}
|
|
297
296
|
getAlertRuleDescription(alertDefinition) {
|
|
298
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertRuleDescription');
|
|
297
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertRuleDescription');
|
|
299
298
|
return this.internalApi.getAlertRuleDescription(alertDefinition);
|
|
300
299
|
}
|
|
301
300
|
getAlertTypeForAdaptableAlert(alert) {
|
|
302
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getAlertTypeForAdaptableAlert');
|
|
301
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getAlertTypeForAdaptableAlert');
|
|
303
302
|
return this.internalApi.getAlertTypeForAdaptableAlert(alert);
|
|
304
303
|
}
|
|
305
304
|
getCustomAlertDescription(alertDefinition, dataChangedInfo) {
|
|
306
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getCustomAlertDescription');
|
|
305
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getCustomAlertDescription');
|
|
307
306
|
return this.internalApi.getCustomAlertDescription(alertDefinition, dataChangedInfo);
|
|
308
307
|
}
|
|
309
308
|
getCustomAlertMessageTitle(alertDefinition, dataChangedInfo) {
|
|
310
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getCustomAlertMessageTitle');
|
|
309
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getCustomAlertMessageTitle');
|
|
311
310
|
return this.internalApi.getCustomAlertMessageTitle(alertDefinition, dataChangedInfo);
|
|
312
311
|
}
|
|
313
312
|
getNonReactiveAlertDefinitions() {
|
|
314
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getNonReactiveAlertDefinitions');
|
|
313
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getNonReactiveAlertDefinitions');
|
|
315
314
|
return this.internalApi.getNonReactiveAlertDefinitions();
|
|
316
315
|
}
|
|
317
316
|
getReactiveAlertDefinitions() {
|
|
318
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'getReactiveAlertDefinitions');
|
|
317
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'getReactiveAlertDefinitions');
|
|
319
318
|
return this.internalApi.getReactiveAlertDefinitions();
|
|
320
319
|
}
|
|
321
320
|
isCellChangedAdaptableAlert(alert) {
|
|
322
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'isCellChangedAdaptableAlert');
|
|
321
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isCellChangedAdaptableAlert');
|
|
323
322
|
return this.internalApi.isCellChangedAdaptableAlert(alert);
|
|
324
323
|
}
|
|
325
324
|
isGenericAdaptableAlert(alert) {
|
|
326
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'isGenericAdaptableAlert');
|
|
325
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isGenericAdaptableAlert');
|
|
327
326
|
return this.internalApi.isGenericAdaptableAlert(alert);
|
|
328
327
|
}
|
|
329
328
|
isRowChangedAdaptableAlert(alert) {
|
|
330
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'isRowChangedAdaptableAlert');
|
|
329
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'isRowChangedAdaptableAlert');
|
|
331
330
|
return this.internalApi.isRowChangedAdaptableAlert(alert);
|
|
332
331
|
}
|
|
333
332
|
publishAlertFiredEvent(alertToFire) {
|
|
334
|
-
(0, logDeprecation_1.logDeprecationInternal)('AlertApi', 'publishAlertFiredEvent');
|
|
333
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'AlertApi', 'publishAlertFiredEvent');
|
|
335
334
|
return this.internalApi.publishAlertFiredEvent(alertToFire);
|
|
336
335
|
}
|
|
337
336
|
}
|
|
@@ -22,6 +22,10 @@ export declare abstract class ApiBase {
|
|
|
22
22
|
* @param adaptable the core IAdaptable object
|
|
23
23
|
*/
|
|
24
24
|
constructor(adaptable: IAdaptable);
|
|
25
|
+
protected logInfo(message: string, ...optionalParams: any[]): void;
|
|
26
|
+
protected logSuccess(message: string, ...optionalParams: any[]): void;
|
|
27
|
+
protected logWarn(message: string, ...optionalParams: any[]): void;
|
|
28
|
+
protected logError(message: string, ...optionalParams: any[]): void;
|
|
25
29
|
/**
|
|
26
30
|
* Base api helper method which ensure that Adaptable Object being used in the function is not null or undefined
|
|
27
31
|
*
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApiBase = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
6
5
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
7
6
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
8
7
|
// Base class for the Api - provides checking dispatching methods
|
|
@@ -14,6 +13,18 @@ class ApiBase {
|
|
|
14
13
|
constructor(adaptable) {
|
|
15
14
|
this.adaptable = adaptable;
|
|
16
15
|
}
|
|
16
|
+
logInfo(message, ...optionalParams) {
|
|
17
|
+
this.adaptable.logger.info(message, ...optionalParams);
|
|
18
|
+
}
|
|
19
|
+
logSuccess(message, ...optionalParams) {
|
|
20
|
+
this.adaptable.logger.success(message, ...optionalParams);
|
|
21
|
+
}
|
|
22
|
+
logWarn(message, ...optionalParams) {
|
|
23
|
+
this.adaptable.logger.warn(message, ...optionalParams);
|
|
24
|
+
}
|
|
25
|
+
logError(message, ...optionalParams) {
|
|
26
|
+
this.adaptable.logger.error(message, ...optionalParams);
|
|
27
|
+
}
|
|
17
28
|
/**
|
|
18
29
|
* Base api helper method which ensure that Adaptable Object being used in the function is not null or undefined
|
|
19
30
|
*
|
|
@@ -24,14 +35,14 @@ class ApiBase {
|
|
|
24
35
|
*/
|
|
25
36
|
checkItemExists(item, name, type) {
|
|
26
37
|
if (Helper_1.default.objectNotExists(item)) {
|
|
27
|
-
|
|
38
|
+
this.logError(`No ${type} found with the name: ${name}`);
|
|
28
39
|
return false;
|
|
29
40
|
}
|
|
30
41
|
return true;
|
|
31
42
|
}
|
|
32
43
|
checkArrayExists(array) {
|
|
33
44
|
if (!Array.isArray(array)) {
|
|
34
|
-
|
|
45
|
+
this.logError(`Item passed to Api function was not an array`);
|
|
35
46
|
return false;
|
|
36
47
|
}
|
|
37
48
|
return true;
|
|
@@ -7,7 +7,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
9
9
|
const CalculatedColumnInternalApi_1 = require("../Internal/CalculatedColumnInternalApi");
|
|
10
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
11
10
|
class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
12
11
|
constructor(adaptable) {
|
|
13
12
|
super(adaptable);
|
|
@@ -21,7 +20,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
21
20
|
return (_a = this.getCalculatedColumnState().CalculatedColumns) !== null && _a !== void 0 ? _a : [];
|
|
22
21
|
}
|
|
23
22
|
getAllCalculatedColumn() {
|
|
24
|
-
(0, logDeprecation_1.logDeprecation)('CalculatedColumnApi', 'getAllCalculatedColumn', 'getCalculatedColumns');
|
|
23
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'getAllCalculatedColumn', 'getCalculatedColumns');
|
|
25
24
|
return this.getCalculatedColumns();
|
|
26
25
|
}
|
|
27
26
|
getCalculatedColumnById(id) {
|
|
@@ -40,7 +39,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
40
39
|
return this.getCalculatedColumnById(calculatedColumn.Uuid);
|
|
41
40
|
}
|
|
42
41
|
editCalculatedColumns(calculatedColumns) {
|
|
43
|
-
(0, logDeprecation_1.logDeprecationInternal)('CalculatedColumnApi', 'editCalculatedColumns');
|
|
42
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'editCalculatedColumns');
|
|
44
43
|
calculatedColumns.forEach((cc) => {
|
|
45
44
|
this.editCalculatedColumn(cc);
|
|
46
45
|
});
|
|
@@ -68,7 +67,7 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
68
67
|
var _a;
|
|
69
68
|
const aggregatedCalculatedColumn = this.getCalculatedColumnForColumnId(columnId);
|
|
70
69
|
if (!((_a = aggregatedCalculatedColumn === null || aggregatedCalculatedColumn === void 0 ? void 0 : aggregatedCalculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.AggregatedScalarExpression)) {
|
|
71
|
-
|
|
70
|
+
this.logWarn(`Aggregated calculated column with ID=${columnId} was NOT found (and refreshed)!`);
|
|
72
71
|
return;
|
|
73
72
|
}
|
|
74
73
|
this.getAdaptableApi()
|
|
@@ -77,23 +76,23 @@ class CalculatedColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
77
76
|
this.getGridApi().refreshCells(null, [columnId]);
|
|
78
77
|
}
|
|
79
78
|
showCalculatedColumnPopup() {
|
|
80
|
-
(0, logDeprecation_1.logDeprecation)('CalculatedColumnApi', 'showCalculatedColumnPopup', 'openCalculatedColumnSettingsPanel');
|
|
79
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CalculatedColumnApi', 'showCalculatedColumnPopup', 'openCalculatedColumnSettingsPanel');
|
|
81
80
|
this.showModulePopup(ModuleConstants.CalculatedColumnModuleId);
|
|
82
81
|
}
|
|
83
82
|
getCalculatedColumnModuleReferences(calculatedColumn) {
|
|
84
|
-
(0, logDeprecation_1.logDeprecationInternal)('CalculatedColumnApi', 'getCalculatedColumnModuleReferences');
|
|
83
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnModuleReferences');
|
|
85
84
|
return this.internalApi.getCalculatedColumnModuleReferences(calculatedColumn);
|
|
86
85
|
}
|
|
87
86
|
getCalculatedColumnsReferencingColumnId(columnId) {
|
|
88
|
-
(0, logDeprecation_1.logDeprecationInternal)('CalculatedColumnApi', 'getCalculatedColumnsReferencingColumnId');
|
|
87
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getCalculatedColumnsReferencingColumnId');
|
|
89
88
|
return this.internalApi.getCalculatedColumnsReferencingColumnId(columnId);
|
|
90
89
|
}
|
|
91
90
|
getReferencedColumnIdsForCalculatedColumn(calculatedColumn) {
|
|
92
|
-
(0, logDeprecation_1.logDeprecationInternal)('CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumn');
|
|
91
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumn');
|
|
93
92
|
return this.internalApi.getReferencedColumnIdsForCalculatedColumn(calculatedColumn);
|
|
94
93
|
}
|
|
95
94
|
getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId) {
|
|
96
|
-
(0, logDeprecation_1.logDeprecationInternal)('CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumnId');
|
|
95
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'CalculatedColumnApi', 'getReferencedColumnIdsForCalculatedColumnId');
|
|
97
96
|
return this.internalApi.getReferencedColumnIdsForCalculatedColumnId(calculatedColumnId);
|
|
98
97
|
}
|
|
99
98
|
}
|
|
@@ -27,7 +27,7 @@ class CellSummaryApiImpl extends ApiBase_1.ApiBase {
|
|
|
27
27
|
return cellSummaryOperations;
|
|
28
28
|
}
|
|
29
29
|
showCellSummaryPopup() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)('CellSummaryApi', 'showCellSummaryPopup', 'openCellSummaryPopupSettingsPanel');
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'CellSummaryApi', 'showCellSummaryPopup', 'openCellSummaryPopupSettingsPanel');
|
|
31
31
|
this.openCellSummaryPopupSettingsPanel();
|
|
32
32
|
}
|
|
33
33
|
setCurrentCellSummaryOperation(operation) {
|
|
@@ -39,7 +39,7 @@ class ChartingApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
39
|
return (_a = (0, ChartingRedux_1.ChartingGetChartModels)(this.getAdaptableState())) !== null && _a !== void 0 ? _a : [];
|
|
40
40
|
}
|
|
41
41
|
getAllChartDefinitions() {
|
|
42
|
-
(0, logDeprecation_1.logDeprecation)('ChartingApi', 'getAllChartDefinitions', 'getChartDefinitions');
|
|
42
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ChartingApi', 'getAllChartDefinitions', 'getChartDefinitions');
|
|
43
43
|
return this.getChartDefinitions();
|
|
44
44
|
}
|
|
45
45
|
getChartDefinitionByUuid(uuid) {
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ColumnApiImpl = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
7
6
|
const GeneralConstants = tslib_1.__importStar(require("../../Utilities/Constants/GeneralConstants"));
|
|
8
7
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
9
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
@@ -57,7 +56,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
57
56
|
this.adaptable.showColumn(columnId);
|
|
58
57
|
}
|
|
59
58
|
getAgGridColumnType(columnId) {
|
|
60
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnType');
|
|
59
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnType');
|
|
61
60
|
return this.internalApi.getAgGridColumnType(columnId);
|
|
62
61
|
}
|
|
63
62
|
isAutoRowGroupColumn(columnId) {
|
|
@@ -85,7 +84,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
85
84
|
return (((_a = this.adaptable.api.actionApi.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((cc) => cc.columnId == columnId)) != null);
|
|
86
85
|
}
|
|
87
86
|
isStyledNumericColumn(column) {
|
|
88
|
-
(0, logDeprecation_1.logDeprecationExternal)('ColumnApi', 'isStyledNumericColumn', 'StyledColumnApi',
|
|
87
|
+
(0, logDeprecation_1.logDeprecationExternal)(this.adaptable.logger, 'ColumnApi', 'isStyledNumericColumn', 'StyledColumnApi',
|
|
89
88
|
// @ts-ignore
|
|
90
89
|
'hasPercentBarStyle() or StyledColumnApi.hasGradientStyle');
|
|
91
90
|
if (!column) {
|
|
@@ -115,7 +114,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
115
114
|
return undefined;
|
|
116
115
|
}
|
|
117
116
|
isNumericColumn(column) {
|
|
118
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isNumericColumn', 'hasNumberDataType');
|
|
117
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isNumericColumn', 'hasNumberDataType');
|
|
119
118
|
return this.hasNumberDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
120
119
|
}
|
|
121
120
|
hasNumberDataType(columnId) {
|
|
@@ -126,7 +125,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
126
125
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Number';
|
|
127
126
|
}
|
|
128
127
|
isBooleanColumn(column) {
|
|
129
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isBooleanColumn', 'hasBooleanDataType');
|
|
128
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isBooleanColumn', 'hasBooleanDataType');
|
|
130
129
|
return this.hasBooleanDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
131
130
|
}
|
|
132
131
|
hasBooleanDataType(columnId) {
|
|
@@ -146,7 +145,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
146
145
|
(column === null || column === void 0 ? void 0 : column.dataType) == 'ObjectNumberArray');
|
|
147
146
|
}
|
|
148
147
|
isDateColumn(column) {
|
|
149
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'isDateColumn', 'hasDateDataType');
|
|
148
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'isDateColumn', 'hasDateDataType');
|
|
150
149
|
return this.hasDateDataType(column === null || column === void 0 ? void 0 : column.columnId);
|
|
151
150
|
}
|
|
152
151
|
hasDateDataType(columnId) {
|
|
@@ -157,7 +156,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
157
156
|
return (column === null || column === void 0 ? void 0 : column.dataType) == 'Date';
|
|
158
157
|
}
|
|
159
158
|
getColumnDataTypeFromColumnId(columnId) {
|
|
160
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnDataTypeFromColumnId', 'getColumnDataTypeForColumnId');
|
|
159
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnDataTypeFromColumnId', 'getColumnDataTypeForColumnId');
|
|
161
160
|
return this.getColumnDataTypeForColumnId(columnId);
|
|
162
161
|
}
|
|
163
162
|
getColumnDataTypeForColumnId(columnId) {
|
|
@@ -168,7 +167,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
168
167
|
return column.dataType;
|
|
169
168
|
}
|
|
170
169
|
getFriendlyNameFromColumn(columnId, column) {
|
|
171
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getFriendlyNameFromColumn');
|
|
170
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNameFromColumn');
|
|
172
171
|
if (columnId.includes(GeneralConstants.MISSING_COLUMN)) {
|
|
173
172
|
return columnId;
|
|
174
173
|
}
|
|
@@ -179,7 +178,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
179
178
|
return columnId + GeneralConstants.MISSING_COLUMN;
|
|
180
179
|
}
|
|
181
180
|
getFriendlyNameFromColumnId(columnId) {
|
|
182
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFriendlyNameFromColumnId', 'getFriendlyNameForColumnId');
|
|
181
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNameFromColumnId', 'getFriendlyNameForColumnId');
|
|
183
182
|
return this.getFriendlyNameForColumnId(columnId);
|
|
184
183
|
}
|
|
185
184
|
getFriendlyNameForColumnId(columnId) {
|
|
@@ -201,7 +200,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
201
200
|
return result;
|
|
202
201
|
}
|
|
203
202
|
getFriendlyNamesFromColumnIds(columnIds) {
|
|
204
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getFriendlyNamesFromColumnIds', 'getFriendlyNamesForColumnIds');
|
|
203
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getFriendlyNamesFromColumnIds', 'getFriendlyNamesForColumnIds');
|
|
205
204
|
return this.getFriendlyNamesForColumnIds(columnIds);
|
|
206
205
|
}
|
|
207
206
|
getFriendlyNamesForColumnIds(columnIds) {
|
|
@@ -215,7 +214,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
215
214
|
return friendlyNames;
|
|
216
215
|
}
|
|
217
216
|
getColumnIdFromFriendlyName(friendlyName) {
|
|
218
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnIdFromFriendlyName', 'getColumnIdForFriendlyName');
|
|
217
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnIdFromFriendlyName', 'getColumnIdForFriendlyName');
|
|
219
218
|
return this.getColumnIdForFriendlyName(friendlyName);
|
|
220
219
|
}
|
|
221
220
|
getColumnIdForFriendlyName(friendlyName) {
|
|
@@ -230,7 +229,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
230
229
|
return friendlyName + GeneralConstants.MISSING_COLUMN;
|
|
231
230
|
}
|
|
232
231
|
getColumnIdsFromFriendlyNames(friendlyNames) {
|
|
233
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnIdsFromFriendlyNames', 'getColumnIdsForFriendlyNames');
|
|
232
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnIdsFromFriendlyNames', 'getColumnIdsForFriendlyNames');
|
|
234
233
|
return this.getColumnIdsForFriendlyNames(friendlyNames);
|
|
235
234
|
}
|
|
236
235
|
getColumnIdsForFriendlyNames(friendlyNames) {
|
|
@@ -244,7 +243,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
244
243
|
return columnIds;
|
|
245
244
|
}
|
|
246
245
|
getColumnsFromFriendlyNames(friendlyNames) {
|
|
247
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnsFromFriendlyNames', 'getColumnsWithFriendlyNames');
|
|
246
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnsFromFriendlyNames', 'getColumnsWithFriendlyNames');
|
|
248
247
|
return this.getColumnsWithFriendlyNames(friendlyNames);
|
|
249
248
|
}
|
|
250
249
|
getColumnsWithFriendlyNames(friendlyNames) {
|
|
@@ -253,7 +252,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
253
252
|
.filter(Boolean);
|
|
254
253
|
}
|
|
255
254
|
getColumnsFromIds(columnIds, logWarning = true) {
|
|
256
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnsFromIds', 'getColumnsWithColumnIds');
|
|
255
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnsFromIds', 'getColumnsWithColumnIds');
|
|
257
256
|
return this.getColumnsWithColumnIds(columnIds, logWarning);
|
|
258
257
|
}
|
|
259
258
|
getColumnsWithColumnIds(columnIds, logWarning = true) {
|
|
@@ -267,26 +266,26 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
267
266
|
return returnCols;
|
|
268
267
|
}
|
|
269
268
|
doesColumnExist(columnId) {
|
|
270
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'doesColumnExist', 'isColumnInGrid');
|
|
269
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'doesColumnExist', 'isColumnInGrid');
|
|
271
270
|
return this.isColumnInGrid(columnId);
|
|
272
271
|
}
|
|
273
272
|
isColumnInGrid(columnId) {
|
|
274
273
|
return !!this.getColumnWithColumnId(columnId, false);
|
|
275
274
|
}
|
|
276
275
|
getColumnFromId(columnId, logWarning = true) {
|
|
277
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnFromId', 'getColumnWithColumnId');
|
|
276
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnFromId', 'getColumnWithColumnId');
|
|
278
277
|
return this.getColumnWithColumnId(columnId, logWarning);
|
|
279
278
|
}
|
|
280
279
|
getAgGridColumnFieldForAdaptableColumn(colId) {
|
|
281
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnFieldForAdaptableColumn');
|
|
280
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnFieldForAdaptableColumn');
|
|
282
281
|
return this.internalApi.getAgGridColumnFieldForAdaptableColumn(colId);
|
|
283
282
|
}
|
|
284
283
|
getAgGridColumnForAdaptableColumn(columnId) {
|
|
285
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAgGridColumnForAdaptableColumn');
|
|
284
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAgGridColumnForAdaptableColumn');
|
|
286
285
|
return this.internalApi.getAgGridColumnForAdaptableColumn(columnId);
|
|
287
286
|
}
|
|
288
287
|
getColumnFromFriendlyName(columnName, logWarning = true) {
|
|
289
|
-
(0, logDeprecation_1.logDeprecation)('ColumnApi', 'getColumnFromFriendlyName', 'getColumnWithFriendlyName');
|
|
288
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ColumnApi', 'getColumnFromFriendlyName', 'getColumnWithFriendlyName');
|
|
290
289
|
return this.getColumnWithFriendlyName(columnName, logWarning);
|
|
291
290
|
}
|
|
292
291
|
getColumnWithFriendlyName(columnFriendlyName, logWarning = true) {
|
|
@@ -376,55 +375,55 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
376
375
|
!this.isCalculatedColumn(columnId) &&
|
|
377
376
|
!this.isFreeTextColumn(columnId) &&
|
|
378
377
|
!this.isActionColumn(columnId)) {
|
|
379
|
-
|
|
378
|
+
this.logWarn(`No column found named '${columnId}'`);
|
|
380
379
|
}
|
|
381
380
|
}
|
|
382
381
|
}
|
|
383
382
|
getDistinctDisplayValuesForColumn(columnId) {
|
|
384
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctDisplayValuesForColumn');
|
|
383
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctDisplayValuesForColumn');
|
|
385
384
|
return this.getGridApi().internalApi.getDistinctDisplayValuesForColumn(columnId);
|
|
386
385
|
}
|
|
387
386
|
async getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly) {
|
|
388
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctFilterDisplayValuesForColumn');
|
|
387
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctFilterDisplayValuesForColumn');
|
|
389
388
|
return this.getGridApi().internalApi.getDistinctFilterDisplayValuesForColumn(columnId, filter, showFilteredRowsOnly);
|
|
390
389
|
}
|
|
391
390
|
async getDistinctCustomSortDisplayValuesForColumn(columnId) {
|
|
392
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctCustomSortDisplayValuesForColumn');
|
|
391
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctCustomSortDisplayValuesForColumn');
|
|
393
392
|
return this.getGridApi().internalApi.getDistinctCustomSortDisplayValuesForColumn(columnId);
|
|
394
393
|
}
|
|
395
394
|
async getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells) {
|
|
396
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctBulkUpdateDisplayValuesForColumn');
|
|
395
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctBulkUpdateDisplayValuesForColumn');
|
|
397
396
|
return this.getGridApi().internalApi.getDistinctBulkUpdateDisplayValuesForColumn(columnId, selectedGridCells);
|
|
398
397
|
}
|
|
399
398
|
getDistinctVisibleDisplayValuesForColumn(columnId) {
|
|
400
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctVisibleDisplayValuesForColumn');
|
|
399
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctVisibleDisplayValuesForColumn');
|
|
401
400
|
return this.getGridApi().internalApi.getDistinctVisibleDisplayValuesForColumn(columnId);
|
|
402
401
|
}
|
|
403
402
|
getDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
404
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctRawValuesForColumn');
|
|
403
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctRawValuesForColumn');
|
|
405
404
|
return this.getGridApi().internalApi.getDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
406
405
|
}
|
|
407
406
|
getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode) {
|
|
408
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getUnsortedDistinctRawValuesForColumn');
|
|
407
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getUnsortedDistinctRawValuesForColumn');
|
|
409
408
|
return this.getGridApi().internalApi.getUnsortedDistinctRawValuesForColumn(columnId, skipRowNode);
|
|
410
409
|
}
|
|
411
410
|
getDistinctVisibleRawValuesForColumn(columnId) {
|
|
412
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getDistinctVisibleRawValuesForColumn');
|
|
411
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getDistinctVisibleRawValuesForColumn');
|
|
413
412
|
return this.getGridApi().internalApi.getDistinctVisibleRawValuesForColumn(columnId);
|
|
414
413
|
}
|
|
415
414
|
getPrimaryKeyColumn() {
|
|
416
415
|
return this.getColumnWithColumnId(this.adaptable.adaptableOptions.primaryKey);
|
|
417
416
|
}
|
|
418
417
|
getAllColumnFriendlyNames() {
|
|
419
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getAllColumnFriendlyNames');
|
|
418
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getAllColumnFriendlyNames');
|
|
420
419
|
return this.internalApi.getAllColumnFriendlyNames();
|
|
421
420
|
}
|
|
422
421
|
usesAdaptableFilterForm(columnId) {
|
|
423
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'usesAdaptableFilterForm');
|
|
422
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'usesAdaptableFilterForm');
|
|
424
423
|
return this.internalApi.usesAdaptableFilterForm(columnId);
|
|
425
424
|
}
|
|
426
425
|
usesAdaptableQuickFilter(columnId) {
|
|
427
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'usesAdaptableQuickFilter');
|
|
426
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'usesAdaptableQuickFilter');
|
|
428
427
|
return this.internalApi.usesAdaptableQuickFilter(columnId);
|
|
429
428
|
}
|
|
430
429
|
isActionRowButtonColumn(columnId) {
|
|
@@ -439,7 +438,7 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
439
438
|
}
|
|
440
439
|
getTypesForColumn(columnId) {
|
|
441
440
|
var _a;
|
|
442
|
-
(0, logDeprecation_1.logDeprecationInternal)('ColumnApi', 'getTypesForColumn');
|
|
441
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'ColumnApi', 'getTypesForColumn');
|
|
443
442
|
// nobody uses this, we should delete it
|
|
444
443
|
const agGridColumn = this.getAgGridColumnForAdaptableColumn(columnId);
|
|
445
444
|
return (_a = agGridColumn === null || agGridColumn === void 0 ? void 0 : agGridColumn.getColDef()) === null || _a === void 0 ? void 0 : _a.type;
|