@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
|
@@ -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;
|
|
@@ -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() {
|