@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
|
|
2
|
+
export declare class AdaptableLogger {
|
|
3
|
+
private adaptableId;
|
|
4
|
+
private debugger;
|
|
5
|
+
private infoLogger;
|
|
6
|
+
private successLogger;
|
|
7
|
+
private warnLogger;
|
|
8
|
+
private errorLogger;
|
|
9
|
+
private perfLogger;
|
|
10
|
+
static consoleErrorBase(message: string, ...optionalParams: any[]): void;
|
|
11
|
+
static consoleWarnBase(message: string, ...optionalParams: any[]): void;
|
|
12
|
+
static consoleLogBase(message: string, ...optionalParams: any[]): void;
|
|
13
|
+
constructor(adaptableId: string);
|
|
14
|
+
beginPerf(sectionName: string): {
|
|
15
|
+
end: (additionalComment?: string) => void;
|
|
16
|
+
};
|
|
17
|
+
info(message: string, ...optionalParams: any[]): void;
|
|
18
|
+
success(message: string, ...optionalParams: any[]): void;
|
|
19
|
+
warn(message: string, ...optionalParams: any[]): void;
|
|
20
|
+
error(message: string, ...optionalParams: any[]): void;
|
|
21
|
+
consoleLogByMessageType(message: string, messageType: AdaptableMessageType, ...optionalParams: any[]): void;
|
|
22
|
+
consoleInfo(message: string, ...optionalParams: any[]): void;
|
|
23
|
+
consoleLog(message: string, ...optionalParams: any[]): void;
|
|
24
|
+
consoleWarn(message: string, ...optionalParams: any[]): void;
|
|
25
|
+
consoleError(message: string, ...optionalParams: any[]): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdaptableLogger = void 0;
|
|
4
|
+
const debugFactory = require('debug');
|
|
5
|
+
function humanize(ms) {
|
|
6
|
+
return `${ms}ms`;
|
|
7
|
+
}
|
|
8
|
+
debugFactory.humanize = humanize;
|
|
9
|
+
const performanceTime = (previousTime) => {
|
|
10
|
+
const now = performance.now();
|
|
11
|
+
return previousTime ? now - previousTime : now;
|
|
12
|
+
};
|
|
13
|
+
class AdaptableLogger {
|
|
14
|
+
constructor(adaptableId) {
|
|
15
|
+
this.adaptableId = adaptableId;
|
|
16
|
+
this.debugger = debugFactory(`Adaptable:${adaptableId}`);
|
|
17
|
+
this.infoLogger = this.debugger.extend(`info`);
|
|
18
|
+
this.infoLogger.log = console.info.bind(console);
|
|
19
|
+
this.successLogger = this.debugger.extend(`success`);
|
|
20
|
+
this.successLogger.log = console.log.bind(console);
|
|
21
|
+
this.warnLogger = this.debugger.extend(`warn`);
|
|
22
|
+
this.warnLogger.log = console.warn.bind(console);
|
|
23
|
+
this.errorLogger = this.debugger.extend(`error`);
|
|
24
|
+
this.errorLogger.log = console.error.bind(console);
|
|
25
|
+
this.perfLogger = this.debugger.extend(`perf`);
|
|
26
|
+
this.perfLogger.log = console.debug.bind(console);
|
|
27
|
+
}
|
|
28
|
+
// use static loggers whenever access to AdaptableLogger instance is not feasible
|
|
29
|
+
static consoleErrorBase(message, ...optionalParams) {
|
|
30
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
31
|
+
console.error(message, optionalParams);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
console.error(message);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
static consoleWarnBase(message, ...optionalParams) {
|
|
38
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
39
|
+
console.warn(message, optionalParams);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
console.warn(message);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
static consoleLogBase(message, ...optionalParams) {
|
|
46
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
47
|
+
console.log(message, optionalParams);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
console.log(message);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
beginPerf(sectionName) {
|
|
54
|
+
this.perfLogger(`[BEGIN] - ${sectionName}`);
|
|
55
|
+
const startTime = performanceTime();
|
|
56
|
+
return {
|
|
57
|
+
end: (additionalComment) => {
|
|
58
|
+
this.perfLogger(`[END] - ${sectionName} ${additionalComment ? `(${additionalComment})` : ''} :: delta +${performanceTime(startTime)}ms`);
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
info(message, ...optionalParams) {
|
|
63
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
64
|
+
this.infoLogger(message, ...optionalParams);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.infoLogger(message);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
success(message, ...optionalParams) {
|
|
71
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
72
|
+
this.successLogger(message, ...optionalParams);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
this.successLogger(message);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
warn(message, ...optionalParams) {
|
|
79
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
80
|
+
this.warnLogger(message, ...optionalParams);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
this.warnLogger(message);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
error(message, ...optionalParams) {
|
|
87
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
88
|
+
this.errorLogger(message, ...optionalParams);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
this.errorLogger(message);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
consoleLogByMessageType(message, messageType, ...optionalParams) {
|
|
95
|
+
message = `AdapTable:${this.adaptableId} ${messageType}: ${message}`;
|
|
96
|
+
switch (messageType) {
|
|
97
|
+
case 'Info':
|
|
98
|
+
console.info(message, optionalParams);
|
|
99
|
+
break;
|
|
100
|
+
case 'Success':
|
|
101
|
+
console.log(message, optionalParams);
|
|
102
|
+
break;
|
|
103
|
+
case 'Warning':
|
|
104
|
+
console.warn(message, optionalParams);
|
|
105
|
+
break;
|
|
106
|
+
case 'Error':
|
|
107
|
+
console.error(message, optionalParams);
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
consoleInfo(message, ...optionalParams) {
|
|
112
|
+
message = `AdapTable:${this.adaptableId}: ${message}`;
|
|
113
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
114
|
+
console.info(message, optionalParams);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
console.info(message);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
consoleLog(message, ...optionalParams) {
|
|
121
|
+
message = `AdapTable:${this.adaptableId}: ${message}`;
|
|
122
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
123
|
+
console.log(message, optionalParams);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
console.log(message);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
consoleWarn(message, ...optionalParams) {
|
|
130
|
+
message = `AdapTable:${this.adaptableId}: ${message}`;
|
|
131
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
132
|
+
console.warn(message, optionalParams);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
console.warn(message);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
consoleError(message, ...optionalParams) {
|
|
139
|
+
message = `AdapTable:${this.adaptableId}: ${message}`;
|
|
140
|
+
if (optionalParams === null || optionalParams === void 0 ? void 0 : optionalParams.length) {
|
|
141
|
+
console.error(message, optionalParams);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
console.error(message);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.AdaptableLogger = AdaptableLogger;
|
|
@@ -30,7 +30,6 @@ const ToolPanelModule_1 = require("../Strategy/ToolPanelModule");
|
|
|
30
30
|
const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
|
|
31
31
|
const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
|
|
32
32
|
const StringExtensions_1 = require("../Utilities/Extensions/StringExtensions");
|
|
33
|
-
const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
|
|
34
33
|
const CheckboxRenderer_1 = require("./CheckboxRenderer");
|
|
35
34
|
const DataChangeHistoryModule_1 = require("../Strategy/DataChangeHistoryModule");
|
|
36
35
|
const FlashingCellModule_1 = require("../Strategy/FlashingCellModule");
|
|
@@ -401,7 +400,7 @@ class agGridHelper {
|
|
|
401
400
|
getColumnDataType(column, logWarning = true) {
|
|
402
401
|
// Some columns can have no ID or Title. we return string as a consequence but it needs testing
|
|
403
402
|
if (!column) {
|
|
404
|
-
|
|
403
|
+
this.adaptable.logger.warn('column is undefined returning String for Type');
|
|
405
404
|
return 'String';
|
|
406
405
|
}
|
|
407
406
|
let dataType = 'Unknown';
|
|
@@ -429,20 +428,20 @@ class agGridHelper {
|
|
|
429
428
|
}
|
|
430
429
|
const model = this.gridOptions.api.getModel();
|
|
431
430
|
if (model == null) {
|
|
432
|
-
|
|
431
|
+
this.adaptable.logger.warn(`No model so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
433
432
|
return 'Unknown';
|
|
434
433
|
}
|
|
435
434
|
let row = model.getRow(0);
|
|
436
435
|
if (row == null) {
|
|
437
436
|
// possible that there will be no data.
|
|
438
|
-
|
|
437
|
+
this.adaptable.logger.warn(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
439
438
|
return 'Unknown';
|
|
440
439
|
}
|
|
441
440
|
// if it's a group we need the content of the group
|
|
442
441
|
if (row.group) {
|
|
443
442
|
const childNodes = row.childrenAfterGroup;
|
|
444
443
|
if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(childNodes)) {
|
|
445
|
-
|
|
444
|
+
this.adaptable.logger.warn(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
|
|
446
445
|
return 'Unknown';
|
|
447
446
|
}
|
|
448
447
|
row = childNodes[0];
|
|
@@ -472,7 +471,7 @@ class agGridHelper {
|
|
|
472
471
|
break;
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
|
-
|
|
474
|
+
this.adaptable.logger.warn(`No defined type for column '${column.getColId()}'. Defaulting to type of first value: ${dataType}`);
|
|
476
475
|
return dataType;
|
|
477
476
|
}
|
|
478
477
|
getAbColDefValue(colType) {
|
|
@@ -533,7 +532,7 @@ class agGridHelper {
|
|
|
533
532
|
// if they have selected to clear column filters on startup then do it
|
|
534
533
|
if (this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp) {
|
|
535
534
|
if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getColumnFilters())) {
|
|
536
|
-
|
|
535
|
+
this.adaptable.logger.warn('Clearing existing Column Filters as "clearFiltersOnStartUp" is true');
|
|
537
536
|
this.adaptable.api.filterApi.clearColumnFilters();
|
|
538
537
|
}
|
|
539
538
|
}
|
|
@@ -542,7 +541,7 @@ class agGridHelper {
|
|
|
542
541
|
if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText) ||
|
|
543
542
|
StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery()) ||
|
|
544
543
|
ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.dataSetApi.getDataSets())) {
|
|
545
|
-
|
|
544
|
+
this.adaptable.logger.warn('Clearing existing Searches as "clearSearchesOnStartUp" is true');
|
|
546
545
|
this.adaptable.api.quickSearchApi.clearQuickSearch();
|
|
547
546
|
this.adaptable.api.queryApi.clearCurrentQuery();
|
|
548
547
|
this.adaptable.api.dataSetApi.clearCurrentDataSet();
|
|
@@ -16,7 +16,6 @@ const react_1 = require("react");
|
|
|
16
16
|
const ExpressionEvaluationError_1 = require("../../parser/src/ExpressionEvaluationError");
|
|
17
17
|
const ButtonInfo_1 = require("../../View/Components/Buttons/ButtonInfo");
|
|
18
18
|
const DocumentationLinkConstants_1 = require("../../Utilities/Constants/DocumentationLinkConstants");
|
|
19
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
20
19
|
const icons_1 = require("../icons");
|
|
21
20
|
const AdaptableContext_1 = require("../../View/AdaptableContext");
|
|
22
21
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
@@ -219,7 +218,7 @@ function BaseEditorInput(props) {
|
|
|
219
218
|
expressionError = buildParserExceptionMessage(e);
|
|
220
219
|
}
|
|
221
220
|
else {
|
|
222
|
-
|
|
221
|
+
props.api.logWarn(`Unexpected error while evaluating '${props.value}':
|
|
223
222
|
${e}`);
|
|
224
223
|
}
|
|
225
224
|
}
|
|
@@ -11,7 +11,6 @@ const Overlay_1 = tslib_1.__importDefault(require("./Overlay"));
|
|
|
11
11
|
const join_1 = tslib_1.__importDefault(require("../utils/join"));
|
|
12
12
|
const usePrevious_1 = tslib_1.__importDefault(require("../utils/usePrevious"));
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
15
14
|
const useAgGridClassName_1 = tslib_1.__importDefault(require("./useAgGridClassName"));
|
|
16
15
|
const contains_1 = tslib_1.__importDefault(require("../utils/contains"));
|
|
17
16
|
const UIHelper_1 = require("../../View/UIHelper");
|
|
@@ -124,7 +123,7 @@ const OverlayTrigger = React.forwardRef((props, ref) => {
|
|
|
124
123
|
target = targetProp(target);
|
|
125
124
|
}
|
|
126
125
|
if (!target) {
|
|
127
|
-
|
|
126
|
+
adaptable.logger.warn('No OverlayTrigger target - make sure you render a child inside the OverlayTrigger, which will be the overlay target');
|
|
128
127
|
return;
|
|
129
128
|
}
|
|
130
129
|
targetRef.current = target;
|
|
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const useProperty_1 = tslib_1.__importDefault(require("../utils/useProperty"));
|
|
8
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
9
8
|
const SelectableListContext = React.createContext({
|
|
10
9
|
clickInfoRef: null,
|
|
11
10
|
selected: {},
|
|
@@ -17,7 +16,6 @@ const useSelectionEvent = () => {
|
|
|
17
16
|
const { selected, setSelected, toggleOnSimpleClick, clickInfoRef, getItemId } = (0, react_1.useContext)(SelectableListContext);
|
|
18
17
|
return (event, { index }) => {
|
|
19
18
|
if (index === undefined) {
|
|
20
|
-
(0, LoggingHelper_1.LogAdaptableWarning)('No "index" was passed to the list item');
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
21
|
const { lastClickIndexWithoutShift, lastShiftSelectionRange } = clickInfoRef.current;
|
|
@@ -133,7 +133,6 @@ const menu_1 = tslib_1.__importDefault(require("./menu"));
|
|
|
133
133
|
const statusbar_1 = tslib_1.__importDefault(require("./statusbar"));
|
|
134
134
|
const add_row_1 = tslib_1.__importDefault(require("./add-row"));
|
|
135
135
|
const brush_1 = tslib_1.__importDefault(require("./brush"));
|
|
136
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
137
136
|
const quote_1 = tslib_1.__importDefault(require("./quote"));
|
|
138
137
|
const news_1 = tslib_1.__importDefault(require("./news"));
|
|
139
138
|
const instrument_1 = tslib_1.__importDefault(require("./instrument"));
|
|
@@ -141,6 +140,7 @@ const analysis_1 = tslib_1.__importDefault(require("./analysis"));
|
|
|
141
140
|
const visibility_1 = tslib_1.__importDefault(require("./visibility"));
|
|
142
141
|
const visibility_off_1 = tslib_1.__importDefault(require("./visibility-off"));
|
|
143
142
|
const AdaptableIconComponent_1 = require("../AdaptableIconComponent");
|
|
143
|
+
const AdaptableLogger_1 = require("../../agGrid/AdaptableLogger");
|
|
144
144
|
const allIcons = {
|
|
145
145
|
// toolbars
|
|
146
146
|
application: application_1.default,
|
|
@@ -293,7 +293,7 @@ const Icon = (_a) => {
|
|
|
293
293
|
var { name, style, className, tabIndex } = _a, props = tslib_1.__rest(_a, ["name", "style", "className", "tabIndex"]);
|
|
294
294
|
const IconCmp = (allIcons[name] || null);
|
|
295
295
|
if (!IconCmp) {
|
|
296
|
-
|
|
296
|
+
AdaptableLogger_1.AdaptableLogger.consoleWarnBase('NO icon found for ' + name);
|
|
297
297
|
return React.createElement("svg", { height: "17", width: "17" });
|
|
298
298
|
}
|
|
299
299
|
return React.createElement(IconCmp, Object.assign({ tabIndex: tabIndex }, props, { style: style, name: name, className: className }));
|