@adaptabletools/adaptable 15.0.1 → 15.0.3-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/bundle.cjs.js +164 -164
  2. package/package.json +2 -2
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -0
  6. package/src/AdaptableOptions/GeneralOptions.d.ts +4 -0
  7. package/src/Api/Implementation/ActionApiImpl.js +3 -4
  8. package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -0
  9. package/src/Api/Implementation/AdaptableApiImpl.js +12 -0
  10. package/src/Api/Implementation/AlertApiImpl.js +23 -24
  11. package/src/Api/Implementation/ApiBase.d.ts +4 -0
  12. package/src/Api/Implementation/ApiBase.js +14 -3
  13. package/src/Api/Implementation/CalculatedColumnApiImpl.js +8 -9
  14. package/src/Api/Implementation/CellSummaryApiImpl.js +1 -1
  15. package/src/Api/Implementation/ChartingApiImpl.js +1 -1
  16. package/src/Api/Implementation/ColumnApiImpl.js +31 -32
  17. package/src/Api/Implementation/CustomSortApiImpl.js +5 -6
  18. package/src/Api/Implementation/DashboardApiImpl.js +3 -3
  19. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +1 -1
  20. package/src/Api/Implementation/DataSetApiImpl.js +3 -3
  21. package/src/Api/Implementation/ExportApiImpl.js +7 -8
  22. package/src/Api/Implementation/FilterApiImpl.js +15 -16
  23. package/src/Api/Implementation/FlashingCellApiImpl.js +3 -3
  24. package/src/Api/Implementation/FormatColumnApiImpl.js +18 -18
  25. package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -10
  26. package/src/Api/Implementation/GridApiImpl.js +9 -10
  27. package/src/Api/Implementation/LayoutApiImpl.js +11 -12
  28. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  29. package/src/Api/Implementation/PredicateApiImpl.js +8 -9
  30. package/src/Api/Implementation/QueryApiImpl.js +5 -5
  31. package/src/Api/Implementation/QueryLanguageApiImpl.js +5 -6
  32. package/src/Api/Implementation/QuickSearchApiImpl.js +1 -1
  33. package/src/Api/Implementation/ScheduleApiImpl.js +17 -17
  34. package/src/Api/Implementation/SettingsPanelApiImpl.js +3 -4
  35. package/src/Api/Implementation/ShortcutApiImpl.js +5 -5
  36. package/src/Api/Implementation/SmartEditApiImpl.js +1 -1
  37. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
  38. package/src/Api/Implementation/SystemStatusApiImpl.js +2 -2
  39. package/src/Api/Implementation/TeamSharingApiImpl.js +11 -12
  40. package/src/Api/Implementation/ThemeApiImpl.js +4 -4
  41. package/src/Api/Implementation/UserInterfaceApiImpl.js +2 -2
  42. package/src/Api/Internal/AdaptableInternalApi.js +1 -2
  43. package/src/Api/Internal/ChartingInternalApi.js +1 -2
  44. package/src/Api/Internal/QueryInternalApi.js +1 -2
  45. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +4 -4
  46. package/src/Redux/Store/AdaptableReduxMerger.js +1 -2
  47. package/src/Redux/Store/AdaptableStore.js +11 -13
  48. package/src/Strategy/CalculatedColumnModule.js +2 -3
  49. package/src/Strategy/DashboardModule.js +1 -2
  50. package/src/Strategy/DataChangeHistoryModule.js +1 -2
  51. package/src/Strategy/FilterModule.js +1 -2
  52. package/src/Strategy/FormatColumnModule.js +1 -2
  53. package/src/Strategy/StyledColumnModule.js +1 -2
  54. package/src/Strategy/ToolPanelModule.js +2 -3
  55. package/src/Utilities/Helpers/AdaptableHelper.js +1 -2
  56. package/src/Utilities/Helpers/DateHelper.js +2 -2
  57. package/src/Utilities/Helpers/Helper.js +3 -3
  58. package/src/Utilities/Helpers/StyleHelper.d.ts +1 -0
  59. package/src/Utilities/Helpers/StyleHelper.js +10 -1
  60. package/src/Utilities/Services/AggregatedScalarLiveValue.js +3 -4
  61. package/src/Utilities/Services/AlertService.js +1 -2
  62. package/src/Utilities/Services/CalculatedColumnExpressionService.js +3 -4
  63. package/src/Utilities/Services/DataService.js +1 -2
  64. package/src/Utilities/Services/LicenseService/index.js +1 -1
  65. package/src/Utilities/Services/MetamodelService.js +3 -4
  66. package/src/Utilities/Services/QueryLanguageService.js +1 -2
  67. package/src/Utilities/logDeprecation.d.ts +4 -3
  68. package/src/Utilities/logDeprecation.js +6 -7
  69. package/src/View/Charting/useChartState.js +1 -2
  70. package/src/View/Dashboard/Dashboard.js +1 -2
  71. package/src/View/StateManagement/handleExportState.js +1 -2
  72. package/src/View/StyledColumn/Wizard/StyledColumnSparklineSettingsSection.js +1 -2
  73. package/src/agGrid/Adaptable.d.ts +3 -1
  74. package/src/agGrid/Adaptable.js +85 -44
  75. package/src/agGrid/AdaptableLogger.d.ts +26 -0
  76. package/src/agGrid/AdaptableLogger.js +148 -0
  77. package/src/agGrid/agGridHelper.js +7 -8
  78. package/src/components/ExpressionEditor/BaseEditorInput.js +1 -2
  79. package/src/components/OverlayTrigger/index.js +1 -2
  80. package/src/components/SelectableList/index.js +0 -2
  81. package/src/components/icons/index.js +2 -2
  82. package/src/metamodel/adaptable.metamodel.js +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/src/Utilities/Helpers/LoggingHelper.d.ts +0 -15
  86. package/src/Utilities/Helpers/LoggingHelper.js +0 -111
@@ -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
- (0, LoggingHelper_1.LogAdaptableError)("Cannot create layout with the Name: '" + layoutToCreate.Name + "' as it already exists");
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
- (0, LoggingHelper_1.LogAdaptableError)("Cannot clone layout with Name: '" + layoutName + "' as other Layout does not exist");
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
- (0, LoggingHelper_1.LogAdaptableError)(`When opening the layout editor the action must be one of: New, Clone, Edit; given: ${action}`);
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
- (0, LoggingHelper_1.LogAdaptableWarning)('The Default Layout cannot be deleted');
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
- (0, LoggingHelper_1.LogAdaptableWarning)('You cannot delete the only Layout. AdapTable always requires one layout');
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
- (0, LoggingHelper_1.LogAdaptableWarning)('No Layout exists with that name');
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
- (0, LoggingHelper_1.LogAdaptableWarning)('Cannot find Predicate with Id:' + predicate.PredicateId);
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
- (0, LoggingHelper_1.LogAdaptableWarning)(`${validationErrorMessage} :: ${errorMessage}`);
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
- (0, LoggingHelper_1.LogAdaptableWarning)(`${validationErrorMessage} :: ${errorMessage}`);
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
- (0, LoggingHelper_1.LogAdaptableWarning)(`${validationErrorMessage} :: ${errorMessage}`);
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
- (0, LoggingHelper_1.LogAdaptableWarning)(`${validationErrorMessage} :: ${errorMessage}`);
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
- (0, LoggingHelper_1.LogAdaptableWarning)(`QueryApi.getColumnsFromExpressionInvalid received an invalid expression: ${expression}
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() {
@@ -11,7 +11,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
11
11
  return this.getAdaptableState().Schedule;
12
12
  }
13
13
  getAllSchedule() {
14
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSchedule', 'getSchedules');
14
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSchedule', 'getSchedules');
15
15
  return this.getSchedules();
16
16
  }
17
17
  getSchedules() {
@@ -24,7 +24,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
24
24
  return allSchedules;
25
25
  }
26
26
  getAllReminderSchedule(config) {
27
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllReminderSchedule', 'getReminderSchedules');
27
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllReminderSchedule', 'getReminderSchedules');
28
28
  return this.getReminderSchedules(config);
29
29
  }
30
30
  getReminderSchedules(config) {
@@ -35,14 +35,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
35
35
  return this.getSchedules().find((schedule) => (schedule === null || schedule === void 0 ? void 0 : schedule.Uuid) === id);
36
36
  }
37
37
  getAllActiveReminderSchedule() {
38
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveReminderSchedule', 'getActiveReminderSchedules');
38
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveReminderSchedule', 'getActiveReminderSchedules');
39
39
  return this.getActiveReminderSchedules();
40
40
  }
41
41
  getActiveReminderSchedules() {
42
42
  return this.getReminderSchedules().filter((schedule) => !schedule.IsSuspended);
43
43
  }
44
44
  getAllSuspendedReminderSchedule() {
45
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedReminderSchedule', 'getSuspendedReminderSchedules');
45
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedReminderSchedule', 'getSuspendedReminderSchedules');
46
46
  return this.getSuspendedReminderSchedules();
47
47
  }
48
48
  getSuspendedReminderSchedules() {
@@ -68,7 +68,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
68
68
  return this.getScheduleById(schedule.Uuid);
69
69
  }
70
70
  getAllReportSchedule(config) {
71
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllReportSchedule', 'getReportSchedules');
71
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllReportSchedule', 'getReportSchedules');
72
72
  return this.getReportSchedules();
73
73
  }
74
74
  getReportSchedules(config) {
@@ -76,14 +76,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
76
76
  return ((_a = this.handleLayoutAssociatedObjects(this.adaptable.api.exportApi.getReportSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
77
77
  }
78
78
  getAllActiveReportSchedule() {
79
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveReportSchedule', 'getActiveReportSchedules');
79
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveReportSchedule', 'getActiveReportSchedules');
80
80
  return this.getActiveReportSchedules();
81
81
  }
82
82
  getActiveReportSchedules() {
83
83
  return this.getReportSchedules().filter((schedule) => !schedule.IsSuspended);
84
84
  }
85
85
  getAllSuspendedReportSchedule() {
86
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedReportSchedule', 'getSuspendedReportSchedules');
86
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedReportSchedule', 'getSuspendedReportSchedules');
87
87
  return this.getSuspendedReportSchedules();
88
88
  }
89
89
  getSuspendedReportSchedules() {
@@ -109,7 +109,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
109
109
  return this.getScheduleById(schedule.Uuid);
110
110
  }
111
111
  getAllIPushPullSchedule(config) {
112
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllIPushPullSchedule', 'getIPushPullSchedules');
112
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllIPushPullSchedule', 'getIPushPullSchedules');
113
113
  return this.getIPushPullSchedules();
114
114
  }
115
115
  getIPushPullSchedules(config) {
@@ -118,14 +118,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
118
118
  return ((_a = this.handleLayoutAssociatedObjects(ippApi === null || ippApi === void 0 ? void 0 : ippApi.getIPushPullSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
119
119
  }
120
120
  getAllActiveIPushPullSchedule() {
121
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveIPushPullSchedule', 'getActiveIPushPullSchedules');
121
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveIPushPullSchedule', 'getActiveIPushPullSchedules');
122
122
  return this.getActiveIPushPullSchedules();
123
123
  }
124
124
  getActiveIPushPullSchedules() {
125
125
  return this.getIPushPullSchedules().filter((schedule) => !schedule.IsSuspended);
126
126
  }
127
127
  getAllSuspendedIPushPullSchedule() {
128
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedIPushPullSchedule', 'getSuspendedIPushPullSchedules');
128
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedIPushPullSchedule', 'getSuspendedIPushPullSchedules');
129
129
  return this.getSuspendedIPushPullSchedules();
130
130
  }
131
131
  getSuspendedIPushPullSchedules() {
@@ -151,7 +151,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
151
151
  return this.getScheduleById(schedule.Uuid);
152
152
  }
153
153
  getAllGlue42Schedule(config) {
154
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllGlue42Schedule', 'getGlue42Schedules');
154
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllGlue42Schedule', 'getGlue42Schedules');
155
155
  return this.getGlue42Schedules();
156
156
  }
157
157
  getGlue42Schedules(config) {
@@ -160,14 +160,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
160
160
  return ((_a = this.handleLayoutAssociatedObjects(glue42Api === null || glue42Api === void 0 ? void 0 : glue42Api.getGlue42Schedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
161
161
  }
162
162
  getAllActiveGlue42Schedule() {
163
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveGlue42Schedule', 'getActiveGlue42Schedules');
163
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveGlue42Schedule', 'getActiveGlue42Schedules');
164
164
  return this.getActiveGlue42Schedules();
165
165
  }
166
166
  getActiveGlue42Schedules() {
167
167
  return this.getGlue42Schedules().filter((schedule) => !schedule.IsSuspended);
168
168
  }
169
169
  getAllSuspendedGlue42Schedule() {
170
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedGlue42Schedule', 'getSuspendedGlue42Schedules');
170
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedGlue42Schedule', 'getSuspendedGlue42Schedules');
171
171
  return this.getSuspendedGlue42Schedules();
172
172
  }
173
173
  getSuspendedGlue42Schedules() {
@@ -193,7 +193,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
193
193
  return this.getScheduleById(schedule.Uuid);
194
194
  }
195
195
  getAllOpenFinSchedule(config) {
196
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllOpenFinSchedule', 'getOpenFinSchedules');
196
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllOpenFinSchedule', 'getOpenFinSchedules');
197
197
  return this.getOpenFinSchedules();
198
198
  }
199
199
  getOpenFinSchedules(config) {
@@ -202,14 +202,14 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
202
202
  return ((_a = this.handleLayoutAssociatedObjects(openFinApi === null || openFinApi === void 0 ? void 0 : openFinApi.getOpenFinSchedules(), 'Schedule', config)) !== null && _a !== void 0 ? _a : []);
203
203
  }
204
204
  getAllActiveOpenFinSchedule() {
205
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllActiveOpenFinSchedule', 'getActiveOpenFinSchedules');
205
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllActiveOpenFinSchedule', 'getActiveOpenFinSchedules');
206
206
  return this.getActiveOpenFinSchedules();
207
207
  }
208
208
  getActiveOpenFinSchedules() {
209
209
  return this.getOpenFinSchedules().filter((schedule) => !schedule.IsSuspended);
210
210
  }
211
211
  getAllSuspendedOpenFinSchedule() {
212
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'getAllSuspendedOpenFinSchedule', 'getSuspendedOpenFinSchedules');
212
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'getAllSuspendedOpenFinSchedule', 'getSuspendedOpenFinSchedules');
213
213
  return this.getSuspendedOpenFinSchedules();
214
214
  }
215
215
  getSuspendedOpenFinSchedules() {
@@ -284,7 +284,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
284
284
  this.dispatchAction(ScheduleRedux.ScheduleJobRun(schedule, scheduleType));
285
285
  }
286
286
  showSchedulePopup() {
287
- (0, logDeprecation_1.logDeprecation)('ScheduleApi', 'showSchedulePopup', 'openScheduleSettingsPanel');
287
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ScheduleApi', 'showSchedulePopup', 'openScheduleSettingsPanel');
288
288
  this.openScheduleSettingsPanel();
289
289
  }
290
290
  openScheduleSettingsPanel() {
@@ -4,23 +4,22 @@ exports.SettingsPanelApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ApiBase_1 = require("./ApiBase");
6
6
  const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
7
- const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
8
7
  const logDeprecation_1 = require("../../Utilities/logDeprecation");
9
8
  class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
10
9
  showSettingsPanel(moduleName) {
11
- (0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showSettingsPanel', 'openSettingsPanel');
10
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SettingsPanelApi', 'showSettingsPanel', 'openSettingsPanel');
12
11
  this.openSettingsPanel(moduleName);
13
12
  }
14
13
  openSettingsPanel(moduleName) {
15
14
  const moduleInfo = this.adaptable.ModuleService.getModuleInfoByModule(moduleName);
16
15
  if (!moduleInfo) {
17
- (0, LoggingHelper_1.LogAdaptableError)(`${moduleName} module does not exist`);
16
+ this.logError(`${moduleName} module does not exist`);
18
17
  return;
19
18
  }
20
19
  this.dispatchAction(PopupRedux.PopupShowScreen(moduleName, moduleInfo.Popup));
21
20
  }
22
21
  showCustomSettingsPanel(name) {
23
- (0, logDeprecation_1.logDeprecation)('SettingsPanelApi', 'showCustomSettingsPanel', 'openCustomSettingsPanel');
22
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SettingsPanelApi', 'showCustomSettingsPanel', 'openCustomSettingsPanel');
24
23
  this.openCustomSettingsPanel(name);
25
24
  }
26
25
  openCustomSettingsPanel(name) {
@@ -11,7 +11,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
11
11
  return this.getAdaptableState().Shortcut;
12
12
  }
13
13
  getAllShortcut(config) {
14
- (0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllShortcut', 'getShortcuts');
14
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllShortcut', 'getShortcuts');
15
15
  return this.getShortcuts(config);
16
16
  }
17
17
  getShortcuts(config) {
@@ -22,14 +22,14 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
22
22
  return this.getShortcuts().find((shortcut) => (shortcut === null || shortcut === void 0 ? void 0 : shortcut.Uuid) === id);
23
23
  }
24
24
  getAllActiveShortcut() {
25
- (0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllActiveShortcut', 'getActiveShortcuts');
25
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllActiveShortcut', 'getActiveShortcuts');
26
26
  return this.getActiveShortcuts();
27
27
  }
28
28
  getActiveShortcuts() {
29
29
  return this.getShortcuts().filter((shortcut) => !shortcut.IsSuspended);
30
30
  }
31
31
  getAllSuspendedShortcut() {
32
- (0, logDeprecation_1.logDeprecation)('ShortcutApi', 'getAllSuspendedShortcut', 'getSuspendedShortcuts');
32
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'getAllSuspendedShortcut', 'getSuspendedShortcuts');
33
33
  return this.getSuspendedShortcuts();
34
34
  }
35
35
  getSuspendedShortcuts() {
@@ -44,7 +44,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
44
44
  this.dispatchAction(ShortcutRedux.ShortcutDelete(shortcut));
45
45
  }
46
46
  deleteAllShortcut() {
47
- (0, logDeprecation_1.logDeprecation)('ShortcutApi', 'deleteAllShortcut', 'deleteAllShortcuts');
47
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'deleteAllShortcut', 'deleteAllShortcuts');
48
48
  this.deleteAllShortcuts();
49
49
  }
50
50
  deleteAllShortcuts() {
@@ -61,7 +61,7 @@ class ShortcutApiImpl extends ApiBase_1.ApiBase {
61
61
  return this.getShortcutById(shortcut.Uuid);
62
62
  }
63
63
  showShortcutPopup() {
64
- (0, logDeprecation_1.logDeprecation)('ShortcutApi', 'showShortcutPopup', 'openShortcutSettingsPanel');
64
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'ShortcutApi', 'showShortcutPopup', 'openShortcutSettingsPanel');
65
65
  this.openShortcutSettingsPanel();
66
66
  }
67
67
  openShortcutSettingsPanel() {
@@ -21,7 +21,7 @@ class SmartEditApiImpl extends ApiBase_1.ApiBase {
21
21
  return this.getAdaptableState().System.SmartEditValue;
22
22
  }
23
23
  showSmartEditPopup() {
24
- (0, logDeprecation_1.logDeprecation)('SmartEditApi', 'showSmartEditPopup', 'openSmartEditSettingsPanel');
24
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SmartEditApi', 'showSmartEditPopup', 'openSmartEditSettingsPanel');
25
25
  this.openSmartEditSettingsPanel();
26
26
  }
27
27
  openSmartEditSettingsPanel() {
@@ -17,7 +17,7 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
17
17
  return this.getAdaptableState().StyledColumn;
18
18
  }
19
19
  getAllStyledColumn(config) {
20
- (0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllStyledColumn', 'getStyledColumns');
20
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllStyledColumn', 'getStyledColumns');
21
21
  return this.getStyledColumns(config);
22
22
  }
23
23
  getStyledColumns(config) {
@@ -28,21 +28,21 @@ class StyledColumnApiImpl extends ApiBase_1.ApiBase {
28
28
  return this.getStyledColumns().find((styledcolumn) => styledcolumn.Uuid === id);
29
29
  }
30
30
  getStyledColumnByColumnId(id) {
31
- (0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getStyledColumnByColumnId', 'getStyledColumnForColumnId');
31
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getStyledColumnByColumnId', 'getStyledColumnForColumnId');
32
32
  return this.getStyledColumnForColumnId(id);
33
33
  }
34
34
  getStyledColumnForColumnId(columnId) {
35
35
  return this.getStyledColumns().find((styledcolumn) => styledcolumn.ColumnId === columnId);
36
36
  }
37
37
  getAllActiveStyledColumn() {
38
- (0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllActiveStyledColumn', 'getActiveStyledColumns');
38
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllActiveStyledColumn', 'getActiveStyledColumns');
39
39
  return this.getActiveStyledColumns();
40
40
  }
41
41
  getActiveStyledColumns() {
42
42
  return this.getStyledColumns().filter((styledcolumn) => !styledcolumn.IsSuspended);
43
43
  }
44
44
  getAllSuspendedStyledColumn() {
45
- (0, logDeprecation_1.logDeprecation)('StyledColumnApi', 'getAllSuspendedStyledColumn', 'getSuspendedStyledColumns');
45
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'StyledColumnApi', 'getAllSuspendedStyledColumn', 'getSuspendedStyledColumns');
46
46
  return this.getSuspendedStyledColumns();
47
47
  }
48
48
  getSuspendedStyledColumns() {
@@ -77,14 +77,14 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
77
77
  this.setSystemStatus(statusMessage, 'Info', statusFurtherInformation);
78
78
  }
79
79
  showSystemStatusPopup() {
80
- (0, logDeprecation_1.logDeprecation)('SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
80
+ (0, logDeprecation_1.logDeprecation)(this.adaptable.logger, 'SystemStatusApi', 'showSystemStatusPopup', 'openSystemStatusSettingsPanel');
81
81
  this.openSystemStatusSettingsPanel();
82
82
  }
83
83
  openSystemStatusSettingsPanel() {
84
84
  this.showModulePopup(ModuleConstants.SystemStatusModuleId);
85
85
  }
86
86
  fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
87
- (0, logDeprecation_1.logDeprecationInternal)('SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
87
+ (0, logDeprecation_1.logDeprecationInternal)(this.adaptable.logger, 'SystemStatusApi', 'fireSystemStatusMessageDisplayedEvent');
88
88
  this.internalApi.fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo);
89
89
  }
90
90
  getCurrentSystemStatusMessageInfo() {