@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
|
@@ -16,7 +16,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
16
|
return this.getAdaptableState().FormatColumn;
|
|
17
17
|
}
|
|
18
18
|
getAllFormatColumn(config) {
|
|
19
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
19
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumn', 'getFormatColumns');
|
|
20
20
|
return this.getFormatColumns(config);
|
|
21
21
|
}
|
|
22
22
|
getFormatColumns(config) {
|
|
@@ -27,33 +27,33 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
27
27
|
return this.getFormatColumns({ includeLayoutNotAssociatedObjects: true }).find((formatColumn) => formatColumn.Uuid === id);
|
|
28
28
|
}
|
|
29
29
|
getAllActiveFormatColumn() {
|
|
30
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
30
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllActiveFormatColumn', 'getActiveFormatColumns');
|
|
31
31
|
return this.getActiveFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
32
32
|
}
|
|
33
33
|
getActiveFormatColumns(config) {
|
|
34
34
|
return this.getFormatColumns(config).filter((formatColumn) => !formatColumn.IsSuspended);
|
|
35
35
|
}
|
|
36
36
|
getAllSuspendedFormatColumn() {
|
|
37
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
37
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'getAllSuspendedFormatColumn', 'getSuspendedFormatColumns');
|
|
38
38
|
return this.getSuspendedFormatColumns({ includeLayoutNotAssociatedObjects: true });
|
|
39
39
|
}
|
|
40
40
|
getSuspendedFormatColumns(config) {
|
|
41
41
|
return this.getFormatColumns(config).filter((formatColumn) => formatColumn.IsSuspended);
|
|
42
42
|
}
|
|
43
43
|
getAllFormatColumnWithStyle() {
|
|
44
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
44
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyle');
|
|
45
45
|
return this.internalApi.getAllFormatColumnWithStyle();
|
|
46
46
|
}
|
|
47
47
|
getAllFormatColumnWithStyleAndCellAlignment() {
|
|
48
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
48
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithStyleAndCellAlignment');
|
|
49
49
|
return this.internalApi.getAllFormatColumnWithStyleAndCellAlignment();
|
|
50
50
|
}
|
|
51
51
|
getAllFormatColumnWithDisplayFormat() {
|
|
52
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
52
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithDisplayFormat');
|
|
53
53
|
return this.internalApi.getAllFormatColumnWithDisplayFormat();
|
|
54
54
|
}
|
|
55
55
|
getAllFormatColumnWithCellAlignment() {
|
|
56
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
56
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getAllFormatColumnWithCellAlignment');
|
|
57
57
|
return this.internalApi.getAllFormatColumnWithCellAlignment();
|
|
58
58
|
}
|
|
59
59
|
addFormatColumn(formatColumn) {
|
|
@@ -95,7 +95,7 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
95
95
|
return this.internalApi.getFormatColumnWithColumnInScope(formatColumns, column);
|
|
96
96
|
}
|
|
97
97
|
getFormatColumnsWithStyleForColumn(column, config) {
|
|
98
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
98
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithStyleForColumn');
|
|
99
99
|
return this.internalApi.getFormatColumnsWithStyleForColumn(column, config);
|
|
100
100
|
}
|
|
101
101
|
getFormatColumnsForColumnId(columnId, config) {
|
|
@@ -106,15 +106,15 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
106
106
|
return this.getFormatColumnsForColumn(abColumn, config);
|
|
107
107
|
}
|
|
108
108
|
getFormatColumnWithStyleClassNameForColumn(column, config) {
|
|
109
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
109
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnWithStyleClassNameForColumn');
|
|
110
110
|
return this.internalApi.getFormatColumnWithStyleClassNameForColumn(column, config);
|
|
111
111
|
}
|
|
112
112
|
getFormatColumnsWithDisplayFormatForColumn(column, config) {
|
|
113
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
113
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithDisplayFormatForColumn');
|
|
114
114
|
return this.internalApi.getFormatColumnsWithDisplayFormatForColumn(column, config);
|
|
115
115
|
}
|
|
116
116
|
showFormatColumnPopup() {
|
|
117
|
-
(0, logDeprecation_1.logDeprecation)('FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
117
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FormatColumnApi', 'showFormatColumnPopup', 'openFormatColumnSettingsPanel');
|
|
118
118
|
this.openFormatColumnSettingsPanel();
|
|
119
119
|
}
|
|
120
120
|
openFormatColumnSettingsPanel() {
|
|
@@ -130,15 +130,15 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
130
130
|
return formatColumns.filter((fc) => this.adaptable.api.scopeApi.scopeHasColumns(fc.Scope));
|
|
131
131
|
}
|
|
132
132
|
getNumberFormattedValue(value, node, abColumn, options) {
|
|
133
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getNumberFormattedValue');
|
|
133
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getNumberFormattedValue');
|
|
134
134
|
return this.internalApi.getNumberFormattedValue(value, node, abColumn, options);
|
|
135
135
|
}
|
|
136
136
|
getStringFormattedValue(value, node, abColumn, options) {
|
|
137
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getStringFormattedValue');
|
|
137
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getStringFormattedValue');
|
|
138
138
|
return this.internalApi.getStringFormattedValue(value, node, abColumn, options);
|
|
139
139
|
}
|
|
140
140
|
getDateFormattedValue(value, node, abColumn, options) {
|
|
141
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getDateFormattedValue');
|
|
141
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getDateFormattedValue');
|
|
142
142
|
return this.internalApi.getDateFormattedValue(value, node, abColumn, options);
|
|
143
143
|
}
|
|
144
144
|
hasCustomDisplayFormatter(formatColumn) {
|
|
@@ -154,19 +154,19 @@ class FormatColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
getFormatColumnDefsForScope(scope) {
|
|
157
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
157
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnDefsForScope');
|
|
158
158
|
return this.internalApi.getFormatColumnDefsForScope(scope);
|
|
159
159
|
}
|
|
160
160
|
getFormatColumnsRelevantForColumn(formatColumns, column, params) {
|
|
161
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
161
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsRelevantForColumn');
|
|
162
162
|
return this.internalApi.getFormatColumnsRelevantForColumn(formatColumns, column, params);
|
|
163
163
|
}
|
|
164
164
|
isFormatColumnRelevantForColumn(formatColumn, column, params) {
|
|
165
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
165
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'isFormatColumnRelevantForColumn');
|
|
166
166
|
return this.internalApi.isFormatColumnRelevantForColumn(formatColumn, column, params);
|
|
167
167
|
}
|
|
168
168
|
getFormatColumnsWithExpression() {
|
|
169
|
-
(0, logDeprecation_1.logDeprecationInternal)('FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
169
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FormatColumnApi', 'getFormatColumnsWithExpression');
|
|
170
170
|
return this.internalApi.getFormatColumnsWithExpression();
|
|
171
171
|
}
|
|
172
172
|
incrementFormatColumnPrecedence(formatColumn) {
|
|
@@ -6,7 +6,6 @@ const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsRed
|
|
|
6
6
|
const ApiBase_1 = require("./ApiBase");
|
|
7
7
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
8
8
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const FreeTextColumnInternalApi_1 = require("../Internal/FreeTextColumnInternalApi");
|
|
11
10
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
12
11
|
class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -18,7 +17,7 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
18
17
|
return this.getAdaptableState().FreeTextColumn;
|
|
19
18
|
}
|
|
20
19
|
getAllFreeTextColumn() {
|
|
21
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
20
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getAllFreeTextColumn', 'getFreeTextColumns');
|
|
22
21
|
return this.getFreeTextColumns();
|
|
23
22
|
}
|
|
24
23
|
getFreeTextColumns() {
|
|
@@ -41,20 +40,20 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
41
40
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
42
41
|
}
|
|
43
42
|
addEditFreeTextColumnStoredValue(freeTextColumn, storedValue) {
|
|
44
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
43
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addEditFreeTextColumnStoredValue', 'setStoredValue');
|
|
45
44
|
return this.setStoredValue(freeTextColumn.ColumnId, storedValue);
|
|
46
45
|
}
|
|
47
46
|
setStoredValue(columnId, storedValue) {
|
|
48
47
|
const freeTextColumn = this.getFreeTextColumnForColumnId(columnId);
|
|
49
48
|
if (!freeTextColumn) {
|
|
50
|
-
|
|
49
|
+
this.logWarn(`No FreeTextColumn with columnId=${columnId} was found!`);
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
52
|
this.dispatchAction(FreeTextColumnRedux.FreeTextColumnAddEditStoredValue(freeTextColumn, storedValue));
|
|
54
53
|
return this.getFreeTextColumnById(freeTextColumn === null || freeTextColumn === void 0 ? void 0 : freeTextColumn.Uuid);
|
|
55
54
|
}
|
|
56
55
|
addStoredValuesToFreeTextColumn(columnId, storedValues, replaceAction) {
|
|
57
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
56
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'addStoredValuesToFreeTextColumn', 'setStoredValues');
|
|
58
57
|
this.setStoredValues(columnId, storedValues, replaceAction);
|
|
59
58
|
}
|
|
60
59
|
setStoredValues(columnId, storedValues, replaceAction) {
|
|
@@ -99,14 +98,14 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
showFreeTextColumnPopup() {
|
|
102
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
101
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'showFreeTextColumnPopup', 'openFreeTextColumnSettingsPanel');
|
|
103
102
|
this.openFreeTextColumnSettingsPanel();
|
|
104
103
|
}
|
|
105
104
|
openFreeTextColumnSettingsPanel() {
|
|
106
105
|
this.showModulePopup(ModuleConstants.FreeTextColumnModuleId);
|
|
107
106
|
}
|
|
108
107
|
getFreeTextColumnValueFromRowNode(freeTextColumn, rowNode) {
|
|
109
|
-
(0, logDeprecation_1.logDeprecation)('FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
108
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnValueFromRowNode', 'getFreeTextColumnValueForRowNode');
|
|
110
109
|
return this.getFreeTextColumnValueForRowNode(freeTextColumn, rowNode);
|
|
111
110
|
}
|
|
112
111
|
getFreeTextColumnValueForRowNode(freeTextColumn, rowNode) {
|
|
@@ -124,16 +123,16 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
|
|
|
124
123
|
return freeTextColumn.DefaultValue;
|
|
125
124
|
}
|
|
126
125
|
catch (e) {
|
|
127
|
-
|
|
126
|
+
this.logError(e);
|
|
128
127
|
return null;
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
checkFreeTextColumnForDataChange(cellDataChangedInfo) {
|
|
132
|
-
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
131
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'checkFreeTextColumnForDataChange');
|
|
133
132
|
return this.internalApi.handleFreeTextColumnDataChange(cellDataChangedInfo);
|
|
134
133
|
}
|
|
135
134
|
getFreeTextColumnModuleReferences(freeTextColumn) {
|
|
136
|
-
(0, logDeprecation_1.logDeprecationInternal)('FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
135
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'FreeTextColumnApi', 'getFreeTextColumnModuleReferences');
|
|
137
136
|
return this.internalApi.getFreeTextColumnModuleReferences(freeTextColumn);
|
|
138
137
|
}
|
|
139
138
|
}
|
|
@@ -21,9 +21,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
21
21
|
constructor(adaptable: IAdaptable);
|
|
22
22
|
getGridState(): GridState;
|
|
23
23
|
setGridData(dataSource: any[]): void;
|
|
24
|
+
setInitialGridData(data: any): void;
|
|
25
|
+
loadGridData(dataSource: any): void;
|
|
24
26
|
getGridData(): any[];
|
|
25
27
|
getFilteredData(): any[];
|
|
26
|
-
loadGridData(dataSource: any): void;
|
|
27
28
|
updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
|
|
28
29
|
addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode<any>[]>;
|
|
29
30
|
undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
|
|
@@ -70,7 +71,7 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
70
71
|
getFirstRowNode(): IRowNode;
|
|
71
72
|
getFirstDisplayedRowNode(): IRowNode;
|
|
72
73
|
getVisibleRowNodes(): IRowNode[];
|
|
73
|
-
getAllRowNodes(config
|
|
74
|
+
getAllRowNodes(config?: {
|
|
74
75
|
includeGroupRows?: boolean;
|
|
75
76
|
filterFn?: (rowNode: IRowNode) => boolean;
|
|
76
77
|
}): IRowNode[];
|
|
@@ -98,6 +99,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
98
99
|
isGroupRowNode(rowNode: IRowNode): boolean;
|
|
99
100
|
isQuickFilterAvailable(): boolean;
|
|
100
101
|
redrawGrid(): void;
|
|
102
|
+
getGridCellsForRawValue(columnId: string, rawValue: any): GridCell[] | undefined;
|
|
103
|
+
getCellRawValueCount(columnId: string, rawValue: any): number;
|
|
104
|
+
getGridCellsForDisplayValue(columnId: string, displayValue: any): GridCell[] | undefined;
|
|
105
|
+
getCellDisplayValueCount(columnId: string, displayValue: any): number;
|
|
101
106
|
fireGridSortedEvent(): void;
|
|
102
107
|
fireCellChangedEvent(cellDataChangedInfo: CellDataChangedInfo): void;
|
|
103
108
|
fireGridDataChangedEvent(dataRows: any[], rowNodes: IRowNode[], rowTrigger: 'Add' | 'Edit' | 'Delete'): void;
|
|
@@ -6,7 +6,6 @@ const ApiBase_1 = require("./ApiBase");
|
|
|
6
6
|
const GridRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/GridRedux"));
|
|
7
7
|
const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
|
|
8
8
|
const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
|
|
9
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
10
9
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
11
10
|
const GridInternalApi_1 = require("../Internal/GridInternalApi");
|
|
12
11
|
class GridApiImpl extends ApiBase_1.ApiBase {
|
|
@@ -19,6 +18,15 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
19
18
|
}
|
|
20
19
|
setGridData(dataSource) {
|
|
21
20
|
this.adaptable.setDataSource(dataSource);
|
|
21
|
+
const allRowNodes = this.getAllRowNodes();
|
|
22
|
+
this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Add');
|
|
23
|
+
}
|
|
24
|
+
setInitialGridData(data) {
|
|
25
|
+
this.adaptable.setDataSource(data);
|
|
26
|
+
}
|
|
27
|
+
loadGridData(dataSource) {
|
|
28
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'loadGridData', 'setInitialGridData');
|
|
29
|
+
this.setInitialGridData(dataSource);
|
|
22
30
|
}
|
|
23
31
|
getGridData() {
|
|
24
32
|
return this.adaptable.getGridData();
|
|
@@ -26,9 +34,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
34
|
getFilteredData() {
|
|
27
35
|
return this.adaptable.getFilteredData();
|
|
28
36
|
}
|
|
29
|
-
loadGridData(dataSource) {
|
|
30
|
-
this.adaptable.loadDataSource(dataSource);
|
|
31
|
-
}
|
|
32
37
|
async updateGridData(dataRows, dataUpdateConfig) {
|
|
33
38
|
const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
|
|
34
39
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
|
|
@@ -56,18 +61,18 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
56
61
|
setCellValue(columnId, newValue, primaryKeyValue) {
|
|
57
62
|
const abColumn = this.adaptable.api.columnApi.getColumnWithColumnId(columnId);
|
|
58
63
|
if (!abColumn) {
|
|
59
|
-
|
|
64
|
+
this.logWarn(`setCellValue() - column not found for columnId: ${columnId}`);
|
|
60
65
|
return;
|
|
61
66
|
}
|
|
62
67
|
const rowNode = this.getRowNodeForPrimaryKey(primaryKeyValue);
|
|
63
68
|
if (!rowNode) {
|
|
64
|
-
|
|
69
|
+
this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${primaryKeyValue}`);
|
|
65
70
|
return;
|
|
66
71
|
}
|
|
67
72
|
this.adaptable.setDataValue(newValue, abColumn, primaryKeyValue, rowNode);
|
|
68
73
|
}
|
|
69
74
|
setCellsValue(gridCells) {
|
|
70
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'setCellsValue', 'setCellValues');
|
|
75
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'setCellsValue', 'setCellValues');
|
|
71
76
|
this.setCellValues(gridCells);
|
|
72
77
|
}
|
|
73
78
|
setCellValues(gridCells) {
|
|
@@ -305,7 +310,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
305
310
|
this.adaptable.expandAllRowGroups();
|
|
306
311
|
}
|
|
307
312
|
closeAllRowGroups() {
|
|
308
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'closeAllRowGroups', 'collapseAllRowGroups');
|
|
313
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'closeAllRowGroups', 'collapseAllRowGroups');
|
|
309
314
|
this.collapseAllRowGroups();
|
|
310
315
|
}
|
|
311
316
|
collapseAllRowGroups() {
|
|
@@ -339,16 +344,50 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
339
344
|
this.adaptable.redrawBody();
|
|
340
345
|
this.adaptable.redrawHeader();
|
|
341
346
|
}
|
|
347
|
+
getGridCellsForRawValue(columnId, rawValue) {
|
|
348
|
+
const gridCells = this.adaptable.getGridCellsForColumn(columnId);
|
|
349
|
+
if (!gridCells) {
|
|
350
|
+
return undefined;
|
|
351
|
+
}
|
|
352
|
+
const returnValues = [];
|
|
353
|
+
gridCells.forEach((gc) => {
|
|
354
|
+
if (gc.rawValue === rawValue) {
|
|
355
|
+
returnValues.push(gc);
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
return returnValues;
|
|
359
|
+
}
|
|
360
|
+
getCellRawValueCount(columnId, rawValue) {
|
|
361
|
+
const gridCells = this.getGridCellsForRawValue(columnId, rawValue);
|
|
362
|
+
return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
|
|
363
|
+
}
|
|
364
|
+
getGridCellsForDisplayValue(columnId, displayValue) {
|
|
365
|
+
const gridCells = this.adaptable.getGridCellsForColumn(columnId);
|
|
366
|
+
if (!gridCells) {
|
|
367
|
+
return undefined;
|
|
368
|
+
}
|
|
369
|
+
const returnValues = [];
|
|
370
|
+
gridCells.forEach((gc) => {
|
|
371
|
+
if (gc.displayValue === displayValue) {
|
|
372
|
+
returnValues.push(gc);
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
return returnValues;
|
|
376
|
+
}
|
|
377
|
+
getCellDisplayValueCount(columnId, displayValue) {
|
|
378
|
+
const gridCells = this.getGridCellsForDisplayValue(columnId, displayValue);
|
|
379
|
+
return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
|
|
380
|
+
}
|
|
342
381
|
fireGridSortedEvent() {
|
|
343
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireGridSortedEvent');
|
|
382
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridSortedEvent');
|
|
344
383
|
this.internalApi.fireGridSortedEvent();
|
|
345
384
|
}
|
|
346
385
|
fireCellChangedEvent(cellDataChangedInfo) {
|
|
347
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireCellChangedEvent');
|
|
386
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireCellChangedEvent');
|
|
348
387
|
this.internalApi.fireCellChangedEvent(cellDataChangedInfo);
|
|
349
388
|
}
|
|
350
389
|
fireGridDataChangedEvent(dataRows, rowNodes = [], rowTrigger) {
|
|
351
|
-
(0, logDeprecation_1.logDeprecationInternal)('GridApi', 'fireGridDataChangedEvent');
|
|
390
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'GridApi', 'fireGridDataChangedEvent');
|
|
352
391
|
this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, rowTrigger);
|
|
353
392
|
}
|
|
354
393
|
jumpToRow(primaryKeyValue) {
|
|
@@ -428,7 +467,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
428
467
|
return this.adaptable.isCellEditable(gridCell.rowNode, this.adaptable.getAgGridColumnForColumnId(gridCell.column.columnId));
|
|
429
468
|
}
|
|
430
469
|
areCellsEditable(gridCells) {
|
|
431
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'areCellsEditable', 'isEveryCellEditable');
|
|
470
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'areCellsEditable', 'isEveryCellEditable');
|
|
432
471
|
return this.isEveryCellEditable(gridCells);
|
|
433
472
|
}
|
|
434
473
|
isEveryCellEditable(gridCells) {
|
|
@@ -470,7 +509,7 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
470
509
|
return this.adaptable.getAgGridContainerElement();
|
|
471
510
|
}
|
|
472
511
|
showGridInfoPopup() {
|
|
473
|
-
(0, logDeprecation_1.logDeprecation)('GridApi', 'showGridInfoPopup', 'openGridInfoSettingsPanel');
|
|
512
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'GridApi', 'showGridInfoPopup', 'openGridInfoSettingsPanel');
|
|
474
513
|
this.openGridInfoSettingsPanel();
|
|
475
514
|
}
|
|
476
515
|
openGridInfoSettingsPanel() {
|
|
@@ -8,7 +8,6 @@ const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/
|
|
|
8
8
|
const ApiBase_1 = require("./ApiBase");
|
|
9
9
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
10
10
|
const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectFactory"));
|
|
11
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
12
11
|
const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
|
|
13
12
|
const Uuid_1 = require("../../PredefinedConfig/Uuid");
|
|
14
13
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
@@ -51,7 +50,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
fireLayoutChangedEvent(trigger, oldState, newState, skipEqualityCheck) {
|
|
54
|
-
(0, logDeprecation_1.logDeprecationInternal)('LayoutApi', 'fireLayoutChangedEvent');
|
|
53
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'fireLayoutChangedEvent');
|
|
55
54
|
this.internalApi.fireLayoutChangedEvent(trigger, oldState, newState, skipEqualityCheck);
|
|
56
55
|
}
|
|
57
56
|
getCurrentLayout() {
|
|
@@ -79,7 +78,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
80
|
getAllLayout() {
|
|
82
|
-
(0, logDeprecation_1.logDeprecation)('LayouApi', 'getAllLayout', 'getLayouts');
|
|
81
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'LayouApi', 'getAllLayout', 'getLayouts');
|
|
83
82
|
return this.getLayouts();
|
|
84
83
|
}
|
|
85
84
|
getLayouts() {
|
|
@@ -116,7 +115,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
116
115
|
}
|
|
117
116
|
createLayout(layoutToCreate) {
|
|
118
117
|
if (this.doesLayoutExist(layoutToCreate)) {
|
|
119
|
-
|
|
118
|
+
this.logError("Cannot create layout with the Name: '" + layoutToCreate.Name + "' as it already exists");
|
|
120
119
|
return false;
|
|
121
120
|
}
|
|
122
121
|
const newLayout = ObjectFactory_1.default.CreateEmptyLayout(Object.assign({}, layoutToCreate));
|
|
@@ -133,7 +132,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
133
132
|
}
|
|
134
133
|
cloneLayout(layoutToClone, layoutName) {
|
|
135
134
|
if (!this.doesLayoutExist(layoutToClone)) {
|
|
136
|
-
|
|
135
|
+
this.logError("Cannot clone layout with Name: '" + layoutName + "' as other Layout does not exist");
|
|
137
136
|
return false;
|
|
138
137
|
}
|
|
139
138
|
const newLayout = Helper_1.default.cloneObject(layoutToClone);
|
|
@@ -159,11 +158,11 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
160
|
areLayoutsEqual(layout1, layout2) {
|
|
162
|
-
(0, logDeprecation_1.logDeprecationInternal)('LayoutApi', 'areLayoutsEqual');
|
|
161
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'areLayoutsEqual');
|
|
163
162
|
return this.internalApi.areLayoutsEqual(layout1, layout2);
|
|
164
163
|
}
|
|
165
164
|
createDefaultLayoutIfNeeded() {
|
|
166
|
-
(0, logDeprecation_1.logDeprecationInternal)('LayoutApi', 'createDefaultLayoutIfNeeded');
|
|
165
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'LayoutApi', 'createDefaultLayoutIfNeeded');
|
|
167
166
|
return this.internalApi.createDefaultLayoutIfNeeded();
|
|
168
167
|
}
|
|
169
168
|
showChangeColumnCaption(column) {
|
|
@@ -176,7 +175,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
176
175
|
}));
|
|
177
176
|
}
|
|
178
177
|
showLayoutPopup() {
|
|
179
|
-
(0, logDeprecation_1.logDeprecation)('LayoutApi', 'showLayoutPopup', 'openLayoutSettingsPanel');
|
|
178
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'LayoutApi', 'showLayoutPopup', 'openLayoutSettingsPanel');
|
|
180
179
|
this.openLayoutSettingsPanel();
|
|
181
180
|
}
|
|
182
181
|
openLayoutSettingsPanel() {
|
|
@@ -186,7 +185,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
186
185
|
let preparedAction = action;
|
|
187
186
|
if (!['Edit', 'New', 'Clone'].includes(action)) {
|
|
188
187
|
preparedAction = 'Edit';
|
|
189
|
-
|
|
188
|
+
this.logError(`When opening the layout editor the action must be one of: New, Clone, Edit; given: ${action}`);
|
|
190
189
|
}
|
|
191
190
|
let layout = layoutName ? this.getLayoutByName(layoutName) : this.getCurrentLayout();
|
|
192
191
|
if (preparedAction === 'New') {
|
|
@@ -207,12 +206,12 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
207
206
|
}
|
|
208
207
|
deleteLayout(layout) {
|
|
209
208
|
if (layout.Name === GeneralConstants_1.DEFAULT_LAYOUT) {
|
|
210
|
-
|
|
209
|
+
this.logWarn('The Default Layout cannot be deleted');
|
|
211
210
|
return;
|
|
212
211
|
}
|
|
213
212
|
const layoutCount = this.getLayouts().length;
|
|
214
213
|
if (layoutCount === 1) {
|
|
215
|
-
|
|
214
|
+
this.logWarn('You cannot delete the only Layout. AdapTable always requires one layout');
|
|
216
215
|
return;
|
|
217
216
|
}
|
|
218
217
|
this.dispatchAction(LayoutRedux.LayoutDelete(layout));
|
|
@@ -220,7 +219,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
220
219
|
deleteLayoutByName(layoutName) {
|
|
221
220
|
const layout = this.getLayoutByName(layoutName);
|
|
222
221
|
if (!layout) {
|
|
223
|
-
|
|
222
|
+
this.logWarn('No Layout exists with that name');
|
|
224
223
|
return;
|
|
225
224
|
}
|
|
226
225
|
return this.deleteLayout(layout);
|
|
@@ -32,7 +32,7 @@ class PlusMinusApiImpl extends ApiBase_1.ApiBase {
|
|
|
32
32
|
this.dispatchAction(PlusMinusRedux.PlusMinusApply(gridCells));
|
|
33
33
|
}
|
|
34
34
|
showPlusMinusPopup() {
|
|
35
|
-
(0, logDeprecation_1.logDeprecation)('PlusMinusApi', 'showPlusMinusPopup', 'openPlusMinusSettingsPanel');
|
|
35
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'PlusMinusApi', 'showPlusMinusPopup', 'openPlusMinusSettingsPanel');
|
|
36
36
|
this.openPlusMinusSettingsPanel();
|
|
37
37
|
}
|
|
38
38
|
openPlusMinusSettingsPanel() {
|
|
@@ -4,7 +4,6 @@ exports.PredicateApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const AdaptablePredicate_1 = require("../../PredefinedConfig/Common/AdaptablePredicate");
|
|
7
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
8
7
|
const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
|
|
9
8
|
const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/StringExtensions"));
|
|
10
9
|
const logDeprecation_1 = require("../../Utilities/logDeprecation");
|
|
@@ -39,7 +38,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
39
38
|
predicateToString(predicate) {
|
|
40
39
|
const predicateDef = this.getPredicateDefById(predicate.PredicateId);
|
|
41
40
|
if (!predicateDef) {
|
|
42
|
-
|
|
41
|
+
this.logWarn('Cannot find Predicate with Id:' + predicate.PredicateId);
|
|
43
42
|
return '[Predicate Not found]';
|
|
44
43
|
}
|
|
45
44
|
let strPredicate = predicateDef.hasOwnProperty('toString')
|
|
@@ -69,7 +68,7 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
69
68
|
ArrayExtensions_1.default.IsNullOrEmpty(predicate.Inputs));
|
|
70
69
|
}
|
|
71
70
|
arePredicatesValid(predicates) {
|
|
72
|
-
(0, logDeprecation_1.logDeprecation)('PredicateApi', 'arePredicatesValid', 'isEveryPredicateValid');
|
|
71
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'PredicateApi', 'arePredicatesValid', 'isEveryPredicateValid');
|
|
73
72
|
return this.isEveryPredicateValid(predicates);
|
|
74
73
|
}
|
|
75
74
|
isEveryPredicateValid(predicates) {
|
|
@@ -117,27 +116,27 @@ class PredicateApiImpl extends ApiBase_1.ApiBase {
|
|
|
117
116
|
return predicates === null || predicates === void 0 ? void 0 : predicates.every((p) => this.handlePredicate(p, params, defaultReturn));
|
|
118
117
|
}
|
|
119
118
|
getEqualityPredicateForDataType(dataType) {
|
|
120
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'getEqualityPredicateForDataType');
|
|
119
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'getEqualityPredicateForDataType');
|
|
121
120
|
return this.internalApi.getEqualityPredicateForDataType(dataType);
|
|
122
121
|
}
|
|
123
122
|
hasPredicateValues(predicate) {
|
|
124
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'hasPredicateValues');
|
|
123
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'hasPredicateValues');
|
|
125
124
|
return this.internalApi.hasPredicateValues(predicate);
|
|
126
125
|
}
|
|
127
126
|
getFilterPredicateDefs() {
|
|
128
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'getFilterPredicateDefs');
|
|
127
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'getFilterPredicateDefs');
|
|
129
128
|
return this.internalApi.getFilterPredicateDefs();
|
|
130
129
|
}
|
|
131
130
|
getAlertPredicateDefs() {
|
|
132
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'getAlertPredicateDefs');
|
|
131
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'getAlertPredicateDefs');
|
|
133
132
|
return this.internalApi.getAlertPredicateDefs();
|
|
134
133
|
}
|
|
135
134
|
getFormatColumnPredicateDefs() {
|
|
136
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'getFormatColumnPredicateDefs');
|
|
135
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'getFormatColumnPredicateDefs');
|
|
137
136
|
return this.internalApi.getFormatColumnPredicateDefs();
|
|
138
137
|
}
|
|
139
138
|
getFlashingCellPredicateDefs() {
|
|
140
|
-
(0, logDeprecation_1.logDeprecationInternal)('PredicateApi', 'getFlashingCellPredicateDefs');
|
|
139
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'PredicateApi', 'getFlashingCellPredicateDefs');
|
|
141
140
|
return this.internalApi.getFlashingCellPredicateDefs();
|
|
142
141
|
}
|
|
143
142
|
}
|
|
@@ -18,7 +18,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
18
18
|
return this.getAdaptableState().Query;
|
|
19
19
|
}
|
|
20
20
|
getAllNamedQuery() {
|
|
21
|
-
(0, logDeprecation_1.logDeprecation)('QueryApi', 'getAllNamedQuery', 'getNamedQueries');
|
|
21
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'QueryApi', 'getAllNamedQuery', 'getNamedQueries');
|
|
22
22
|
return this.getNamedQueries();
|
|
23
23
|
}
|
|
24
24
|
getNamedQueries() {
|
|
@@ -42,7 +42,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
42
42
|
return { valid: true, message: '' };
|
|
43
43
|
}
|
|
44
44
|
showQueryPopup() {
|
|
45
|
-
(0, logDeprecation_1.logDeprecation)('QueryApi', 'showQueryPopup', 'openQuerySettingsPanel');
|
|
45
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'QueryApi', 'showQueryPopup', 'openQuerySettingsPanel');
|
|
46
46
|
this.openQuerySettingsPanel();
|
|
47
47
|
}
|
|
48
48
|
openQuerySettingsPanel() {
|
|
@@ -58,11 +58,11 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
58
58
|
return this.getQueryState().CurrentQuery;
|
|
59
59
|
}
|
|
60
60
|
getReferencedNamedQueryNames(expression = '') {
|
|
61
|
-
(0, logDeprecation_1.logDeprecationInternal)('QueryApi', 'getReferencedNamedQueryNames');
|
|
61
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'QueryApi', 'getReferencedNamedQueryNames');
|
|
62
62
|
return this.internalApi.getReferencedNamedQueryNames(expression);
|
|
63
63
|
}
|
|
64
64
|
getNamedQueryModuleReferences(namedQueryName) {
|
|
65
|
-
(0, logDeprecation_1.logDeprecationInternal)('QueryApi', 'getNamedQueryModuleReferences');
|
|
65
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'QueryApi', 'getNamedQueryModuleReferences');
|
|
66
66
|
return this.internalApi.getNamedQueryModuleReferences(namedQueryName);
|
|
67
67
|
}
|
|
68
68
|
expandCurrentQuery(query) {
|
|
@@ -78,7 +78,7 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
fireQueryRunEvent() {
|
|
81
|
-
(0, logDeprecation_1.logDeprecationInternal)('QueryApi', 'fireQueryRunEvent');
|
|
81
|
+
(0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'QueryApi', 'fireQueryRunEvent');
|
|
82
82
|
this.internalApi.fireQueryRunEvent();
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -4,7 +4,6 @@ exports.QueryLanguageApiImpl = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const ApiBase_1 = require("./ApiBase");
|
|
6
6
|
const parser = tslib_1.__importStar(require("../../parser/src"));
|
|
7
|
-
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
8
7
|
const QueryLanguageInternalApi_1 = require("../Internal/QueryLanguageInternalApi");
|
|
9
8
|
class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
10
9
|
constructor(adaptable) {
|
|
@@ -16,7 +15,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
16
15
|
.getQueryLanguageService()
|
|
17
16
|
.validateBoolean(query, module, { force: true });
|
|
18
17
|
if (!isValid && validationErrorMessage) {
|
|
19
|
-
|
|
18
|
+
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
20
19
|
}
|
|
21
20
|
return isValid;
|
|
22
21
|
}
|
|
@@ -25,7 +24,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
25
24
|
.getQueryLanguageService()
|
|
26
25
|
.validateObservable(expression, module);
|
|
27
26
|
if (!isValid && validationErrorMessage) {
|
|
28
|
-
|
|
27
|
+
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
29
28
|
}
|
|
30
29
|
return isValid;
|
|
31
30
|
}
|
|
@@ -34,7 +33,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
34
33
|
.getQueryLanguageService()
|
|
35
34
|
.validateAggregatedBoolean(expression, module);
|
|
36
35
|
if (!isValid && validationErrorMessage) {
|
|
37
|
-
|
|
36
|
+
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
38
37
|
}
|
|
39
38
|
return isValid;
|
|
40
39
|
}
|
|
@@ -43,7 +42,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
43
42
|
.getQueryLanguageService()
|
|
44
43
|
.validateAggregatedScalar(expression, module);
|
|
45
44
|
if (!isValid && validationErrorMessage) {
|
|
46
|
-
|
|
45
|
+
this.logWarn(`${validationErrorMessage} :: ${errorMessage}`);
|
|
47
46
|
}
|
|
48
47
|
return isValid;
|
|
49
48
|
}
|
|
@@ -66,7 +65,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
|
|
|
66
65
|
}
|
|
67
66
|
catch (error) {
|
|
68
67
|
// defensive programing, this should happen only if someone botched the predefined configs
|
|
69
|
-
|
|
68
|
+
this.logWarn(`QueryApi.getColumnsFromExpressionInvalid received an invalid expression: ${expression}
|
|
70
69
|
Error: ${error}`);
|
|
71
70
|
return [];
|
|
72
71
|
}
|
|
@@ -26,7 +26,7 @@ class QuickSearchApiImpl extends ApiBase_1.ApiBase {
|
|
|
26
26
|
this.dispatchAction(QuickSearchRedux.QuickSearchSetStyle(style));
|
|
27
27
|
}
|
|
28
28
|
showQuickSearchPopup() {
|
|
29
|
-
(0, logDeprecation_1.logDeprecation)('QuickSearchApi', 'showQuickSearchPopup', 'openQuickSearchSettingsPanel');
|
|
29
|
+
(0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'QuickSearchApi', 'showQuickSearchPopup', 'openQuickSearchSettingsPanel');
|
|
30
30
|
this.openQuickSearchSettingsPanel();
|
|
31
31
|
}
|
|
32
32
|
openQuickSearchSettingsPanel() {
|