@adaptabletools/adaptable 19.1.0 → 19.1.1

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 (129) hide show
  1. package/package.json +1 -1
  2. package/src/Api/GridApi.d.ts +2 -1
  3. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
  4. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
  5. package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
  6. package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
  7. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  8. package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
  9. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  10. package/src/Api/Implementation/AlertApiImpl.js +16 -15
  11. package/src/Api/Implementation/ApiBase.d.ts +12 -3
  12. package/src/Api/Implementation/ApiBase.js +39 -24
  13. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
  14. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
  15. package/src/Api/Implementation/CalendarApiImpl.js +1 -1
  16. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  17. package/src/Api/Implementation/ChartingApiImpl.js +9 -9
  18. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  19. package/src/Api/Implementation/ColumnApiImpl.js +18 -18
  20. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
  21. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  22. package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
  23. package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
  24. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
  25. package/src/Api/Implementation/CommentsApiImpl.js +6 -4
  26. package/src/Api/Implementation/ConfigApiImpl.js +23 -24
  27. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
  28. package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
  29. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
  30. package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
  31. package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
  32. package/src/Api/Implementation/DashboardApiImpl.js +5 -5
  33. package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
  34. package/src/Api/Implementation/DataImportApiImpl.js +3 -3
  35. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
  36. package/src/Api/Implementation/DataSetApiImpl.js +5 -5
  37. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  38. package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
  39. package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
  40. package/src/Api/Implementation/EventApiImpl.js +2 -2
  41. package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
  42. package/src/Api/Implementation/ExportApiImpl.js +7 -7
  43. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  44. package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
  45. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
  46. package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
  47. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
  48. package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
  49. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  50. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  51. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
  52. package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
  53. package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
  54. package/src/Api/Implementation/GridApiImpl.js +106 -103
  55. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  56. package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
  57. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
  58. package/src/Api/Implementation/LayoutApiImpl.js +3 -3
  59. package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
  60. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
  61. package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
  62. package/src/Api/Implementation/NoteApiImpl.js +3 -3
  63. package/src/Api/Implementation/OptionsApiImpl.js +7 -7
  64. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  65. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  66. package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
  67. package/src/Api/Implementation/PredicateApiImpl.js +4 -4
  68. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
  69. package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
  70. package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
  71. package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
  72. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
  73. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
  74. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
  75. package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
  76. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
  77. package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
  78. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
  79. package/src/Api/Implementation/ThemeApiImpl.js +8 -8
  80. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  81. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  82. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
  83. package/src/Api/Internal/ActionRowInternalApi.js +8 -8
  84. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  85. package/src/Api/Internal/AdaptableInternalApi.js +55 -50
  86. package/src/Api/Internal/AlertInternalApi.js +9 -9
  87. package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
  88. package/src/Api/Internal/ChartingInternalApi.js +1 -1
  89. package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
  90. package/src/Api/Internal/ColumnInternalApi.js +3 -3
  91. package/src/Api/Internal/CustomSortInternalApi.js +3 -3
  92. package/src/Api/Internal/DashboardInternalApi.js +4 -3
  93. package/src/Api/Internal/DataImportInternalApi.js +2 -2
  94. package/src/Api/Internal/DataSetInternalApi.js +2 -2
  95. package/src/Api/Internal/ExportInternalApi.js +21 -22
  96. package/src/Api/Internal/ExpressionInternalApi.js +4 -4
  97. package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
  98. package/src/Api/Internal/Fdc3InternalApi.js +9 -12
  99. package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
  100. package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
  101. package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
  102. package/src/Api/Internal/GridFilterInternalApi.js +2 -2
  103. package/src/Api/Internal/GridInternalApi.js +26 -26
  104. package/src/Api/Internal/LayoutInternalApi.js +6 -5
  105. package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
  106. package/src/Api/Internal/PredicateInternalApi.js +5 -5
  107. package/src/Api/Internal/ScheduleInternalApi.js +1 -1
  108. package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
  109. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  110. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  111. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  112. package/src/Strategy/NoteModule.d.ts +0 -1
  113. package/src/Strategy/NoteModule.js +4 -5
  114. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  115. package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
  116. package/src/Utilities/Services/CellPopupService.js +4 -4
  117. package/src/Utilities/Services/Fdc3Service.js +1 -3
  118. package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
  119. package/src/Utilities/Services/FlashingCellService.js +2 -3
  120. package/src/Utilities/Services/RowEditService.js +3 -5
  121. package/src/View/Alert/AlertStatusSubPanel.js +4 -4
  122. package/src/View/Charting/ShowChartButton.js +4 -4
  123. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
  124. package/src/agGrid/FloatingFilterWrapper.js +4 -3
  125. package/src/components/Datepicker/index.d.ts +1 -1
  126. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  127. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
  128. package/src/env.js +2 -2
  129. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -4,9 +4,9 @@ import { ApiBase } from './ApiBase';
4
4
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
5
5
  import { ColumnFilterInternalApi } from '../Internal/ColumnFilterInternalApi';
6
6
  export class ColumnFilterApiImpl extends ApiBase {
7
- constructor(adaptable) {
8
- super(adaptable);
9
- this.internalApi = new ColumnFilterInternalApi(adaptable);
7
+ constructor(_adaptable) {
8
+ super(_adaptable);
9
+ this.internalApi = new ColumnFilterInternalApi(_adaptable);
10
10
  }
11
11
  getFilterPredicateDefsForColumn(column) {
12
12
  const scope = {
@@ -27,11 +27,11 @@ export class ColumnFilterApiImpl extends ApiBase {
27
27
  this.dispatchAction(SystemRedux.SystemQuickFilterBarHide());
28
28
  }
29
29
  isQuickFilterAvailable() {
30
- return this.adaptable.isQuickFilterAvailable();
30
+ return this._adaptable.isQuickFilterAvailable();
31
31
  }
32
32
  isQuickFilterVisible() {
33
33
  return (this.isQuickFilterAvailable() &&
34
- this.getAdaptableApi().internalApi.getSystemState().IsQuickFilterVisible);
34
+ this.getAdaptableInternalApi().getSystemState().IsQuickFilterVisible);
35
35
  }
36
36
  getColumnFilters() {
37
37
  var _a;
@@ -91,7 +91,7 @@ export class ColumnFilterApiImpl extends ApiBase {
91
91
  }
92
92
  clearColumnFilters() {
93
93
  this.dispatchAction(LayoutRedux.LayoutColumnFilterClearAll());
94
- this.adaptable.clearColumnFiltering();
94
+ this._adaptable.clearColumnFiltering();
95
95
  }
96
96
  clearAndSetColumnFilters(columnFilters) {
97
97
  this.clearColumnFilters();
@@ -166,7 +166,7 @@ export class ColumnFilterApiImpl extends ApiBase {
166
166
  let columnFilterForColumn = this.getColumnFilterForColumn(columnId);
167
167
  if (columnFilterForColumn) {
168
168
  this.dispatchAction(LayoutRedux.LayoutColumnFilterClear(columnFilterForColumn));
169
- this.adaptable.clearColumnFilteringForColumns([columnId]);
169
+ this._adaptable.clearColumnFilteringForColumns([columnId]);
170
170
  }
171
171
  }
172
172
  }
@@ -1,8 +1,6 @@
1
1
  import { ColumnMenuApi } from '../ColumnMenuApi';
2
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
3
2
  import { ApiBase } from './ApiBase';
4
3
  export declare class ColumnMenuApiImpl extends ApiBase implements ColumnMenuApi {
5
- constructor(adaptable: IAdaptable);
6
4
  showColumnMenu(columnKey: string): void;
7
5
  hideColumnMenu(): void;
8
6
  }
@@ -1,12 +1,9 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  export class ColumnMenuApiImpl extends ApiBase {
3
- constructor(adaptable) {
4
- super(adaptable);
5
- }
6
3
  showColumnMenu(columnKey) {
7
- this.adaptable.agGridAdapter.getAgGridApi().showColumnMenu(columnKey);
4
+ this.getAgGridApi().showColumnMenu(columnKey);
8
5
  }
9
6
  hideColumnMenu() {
10
- this.adaptable.agGridAdapter.getAgGridApi().hidePopupMenu();
7
+ this.getAgGridApi().hidePopupMenu();
11
8
  }
12
9
  }
@@ -5,7 +5,7 @@ import { CommentsInternalApi } from '../Internal/CommentsInternalApi';
5
5
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
6
  export declare class CommentsApiImpl extends ApiBase implements CommentApi {
7
7
  internalApi: CommentsInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getCommentThread(address: CellAddress): CommentThread | undefined;
10
10
  getGridComments(): CommentThread[];
11
11
  editComment(comment: AdaptableComment, address: CellAddress): void;
@@ -3,10 +3,11 @@ import { ApiBase } from './ApiBase';
3
3
  import ObjectFactory from '../../Utilities/ObjectFactory';
4
4
  import AdaptableHelper from '../../Utilities/Helpers/AdaptableHelper';
5
5
  import { CommentsInternalApi } from '../Internal/CommentsInternalApi';
6
+ import _ from 'lodash';
6
7
  export class CommentsApiImpl extends ApiBase {
7
- constructor(adaptable) {
8
- super(adaptable);
9
- this.internalApi = new CommentsInternalApi(adaptable);
8
+ constructor(_adaptable) {
9
+ super(_adaptable);
10
+ this.internalApi = new CommentsInternalApi(_adaptable);
10
11
  }
11
12
  getCommentThread(address) {
12
13
  return CommentRedux.GetCellCommentSelector(this.getAdaptableState().Comment, address);
@@ -14,6 +15,7 @@ export class CommentsApiImpl extends ApiBase {
14
15
  getGridComments() {
15
16
  var _a;
16
17
  return (_a = this.getAdaptableState().Comment.CommentThreads) !== null && _a !== void 0 ? _a : [];
18
+ _;
17
19
  }
18
20
  editComment(comment, address) {
19
21
  this.dispatchAction(CommentRedux.CommentsEdit({ comment, cellAddress: address }));
@@ -45,6 +47,6 @@ export class CommentsApiImpl extends ApiBase {
45
47
  this.setGridComments([]);
46
48
  }
47
49
  hideCommentsPopup() {
48
- this.adaptable.api.internalApi.getCellPopupService().hidePopup();
50
+ this.getAdaptableInternalApi().getCellPopupService().hidePopup();
49
51
  }
50
52
  }
@@ -39,21 +39,21 @@ export class ConfigApiImpl extends ApiBase {
39
39
  Helper.copyToClipboard(stringifiedState);
40
40
  }
41
41
  getPredefinedConfig() {
42
- return this.adaptable.adaptableOptions.predefinedConfig;
42
+ return this.getPredefinedConfig;
43
43
  }
44
44
  reloadPredefinedConfig(newPredefinedConfig) {
45
45
  var _a;
46
- const adaptableOptions = this.adaptable.adaptableOptions;
46
+ const adaptableOptions = this.getOptions();
47
47
  const oldState = this.getPersistedState();
48
48
  // clearing filters so that AG Grid doesnt display the filter icon in a column header after grid reloads
49
49
  // but this is a hack so would be nicer if there was a better way to do this
50
- this.getAdaptableApi().gridApi.clearGridFiltering();
50
+ this.getGridApi().clearGridFiltering();
51
51
  const clearStateFn = ((_a = adaptableOptions.stateOptions) === null || _a === void 0 ? void 0 : _a.clearState) ||
52
52
  (() => {
53
53
  localStorage.removeItem(adaptableOptions.adaptableStateKey);
54
54
  return Promise.resolve(true);
55
55
  });
56
- this.adaptable.adaptableStore.saveStateNow(this.adaptable).then(() => {
56
+ this.getAdaptableSore().saveStateNow(this._adaptable).then(() => {
57
57
  const promise = clearStateFn({
58
58
  adaptableId: adaptableOptions.adaptableId,
59
59
  adaptableStateKey: adaptableOptions.adaptableStateKey,
@@ -66,7 +66,7 @@ export class ConfigApiImpl extends ApiBase {
66
66
  }).then(() => {
67
67
  const newState = this.getPersistedState();
68
68
  const stateReloadedInfo = Object.assign({ oldState,
69
- newState, adaptableStateKey: adaptableOptions.adaptableStateKey }, this.getAdaptableApi().internalApi.buildBaseContext());
69
+ newState, adaptableStateKey: adaptableOptions.adaptableStateKey }, this.getAdaptableInternalApi().buildBaseContext());
70
70
  this.getAdaptableApi().eventApi.emit('AdaptableStateReloaded', stateReloadedInfo);
71
71
  });
72
72
  });
@@ -77,15 +77,14 @@ export class ConfigApiImpl extends ApiBase {
77
77
  }
78
78
  getPersistedState() {
79
79
  // no assertion should be required here as soon as we make order in our state typings
80
- return this.adaptable.adaptableStore.getCurrentStorageState();
80
+ return this.getAdaptableSore().getCurrentStorageState();
81
81
  }
82
82
  getAllUserState() {
83
83
  return Object.values(this.getPersistedState());
84
84
  }
85
85
  loadUserState(state) {
86
- const adaptableOptions = this.adaptable.adaptableOptions;
87
- this.setAdaptableStateKey(adaptableOptions.adaptableStateKey, {
88
- predefinedConfig: state || adaptableOptions.predefinedConfig,
86
+ this.setAdaptableStateKey(this.getOptions().adaptableStateKey, {
87
+ predefinedConfig: state || this.getOptions().predefinedConfig,
89
88
  flushCurrentState: false,
90
89
  });
91
90
  }
@@ -114,40 +113,40 @@ export class ConfigApiImpl extends ApiBase {
114
113
  setAdaptableStateKey(adaptableStateKey, config) {
115
114
  return new Promise((resolve, reject) => {
116
115
  var _a;
117
- this.getAdaptableApi().internalApi.executeWithProgressIndicator((_a = config === null || config === void 0 ? void 0 : config.progressIndicatorLabel) !== null && _a !== void 0 ? _a : `Initialising...`, () => {
116
+ this.getAdaptableInternalApi().executeWithProgressIndicator((_a = config === null || config === void 0 ? void 0 : config.progressIndicatorLabel) !== null && _a !== void 0 ? _a : `Initialising...`, () => {
118
117
  const flushCurrentState = !config || config.flushCurrentState !== false;
119
118
  // make sure we persist any "pending" changes to state - since stateOptions.debounceStateDelay can cause
120
119
  // the state to be persisted with a delay, which we dont want in this case
121
120
  const flushStatePromise = flushCurrentState
122
- ? this.adaptable.adaptableStore.saveStateNow(this.adaptable)
121
+ ? this.getAdaptableSore().saveStateNow(this._adaptable)
123
122
  : Promise.resolve(true);
124
123
  flushStatePromise.then(() => {
125
- this.adaptable.adaptableOptions.adaptableStateKey = adaptableStateKey;
124
+ this.getOptions().adaptableStateKey = adaptableStateKey;
126
125
  let predefinedConfig = config === null || config === void 0 ? void 0 : config.predefinedConfig;
127
126
  if (predefinedConfig) {
128
127
  predefinedConfig = initPredefinedConfigWithUuids(predefinedConfig);
129
128
  }
130
- const promise = this.adaptable.adaptableStore.loadStore({
131
- adaptable: this.adaptable,
129
+ const promise = this.getAdaptableSore().loadStore({
130
+ adaptable: this._adaptable,
132
131
  adaptableStateKey,
133
132
  predefinedConfig,
134
133
  postLoadHook: (state) => {
135
134
  const agGridOptions = {
136
- columnDefs: this.adaptable.agGridAdapter.getGridOption('columnDefs'),
137
- autoGroupColumnDef: this.adaptable.agGridAdapter.getGridOption('autoGroupColumnDef'),
138
- rowModelType: this.adaptable.agGridAdapter.getGridOption('rowModelType'),
139
- treeData: this.adaptable.agGridAdapter.getGridOption('treeData'),
135
+ columnDefs: this._adaptable.agGridAdapter.getGridOption('columnDefs'),
136
+ autoGroupColumnDef: this._adaptable.agGridAdapter.getGridOption('autoGroupColumnDef'),
137
+ rowModelType: this._adaptable.agGridAdapter.getGridOption('rowModelType'),
138
+ treeData: this._adaptable.agGridAdapter.getGridOption('treeData'),
140
139
  };
141
- return this.adaptable.normalizeAdaptableState(state, agGridOptions);
140
+ return this._adaptable.normalizeAdaptableState(state, agGridOptions);
142
141
  },
143
142
  });
144
143
  promise
145
144
  .then(() => {
146
- this.adaptable.updateColumnModelAndRefreshGrid({
145
+ this._adaptable.updateColumnModelAndRefreshGrid({
147
146
  preemptiveColumnStateRefresh: true,
148
147
  });
149
- this.adaptable.setLayout();
150
- this.adaptable.applyColumnFiltering();
148
+ this._adaptable.setLayout();
149
+ this._adaptable.applyColumnFiltering();
151
150
  })
152
151
  .then(() => {
153
152
  // resolve main(result) promise
@@ -167,10 +166,10 @@ export class ConfigApiImpl extends ApiBase {
167
166
  });
168
167
  }
169
168
  getDescriptionForModule(module) {
170
- return this.adaptable.ModuleService.getModuleInfoByModule(module).Description;
169
+ return this._adaptable.ModuleService.getModuleInfoByModule(module).Description;
171
170
  }
172
171
  getHelpPageForModule(module) {
173
- return this.adaptable.ModuleService.getModuleInfoByModule(module).HelpPage;
172
+ return this._adaptable.ModuleService.getModuleInfoByModule(module).HelpPage;
174
173
  }
175
174
  getUserStateByStateKey(stateKey, returnJson = false) {
176
175
  switch (stateKey) {
@@ -1,7 +1,5 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { ContextMenuApi } from '../ContextMenuApi';
3
- import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
4
3
  export declare class ContextMenuApiImpl extends ApiBase implements ContextMenuApi {
5
- constructor(adaptable: IAdaptable);
6
4
  hideContextMenu(): void;
7
5
  }
@@ -1,9 +1,6 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  export class ContextMenuApiImpl extends ApiBase {
3
- constructor(adaptable) {
4
- super(adaptable);
5
- }
6
3
  hideContextMenu() {
7
- this.adaptable.agGridAdapter.getAgGridApi().hidePopupMenu();
4
+ this.getAgGridApi().hidePopupMenu();
8
5
  }
9
6
  }
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
5
  import { CustomSortInternalApi } from '../Internal/CustomSortInternalApi';
6
6
  export declare class CustomSortApiImpl extends ApiBase implements CustomSortApi {
7
7
  internalApi: CustomSortInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getCustomSortState(): CustomSortState;
10
10
  getCustomSorts(config?: {
11
11
  includeLayoutNotAssociatedObjects?: boolean;
@@ -3,9 +3,9 @@ import * as CustomSortRedux from '../../Redux/ActionsReducers/CustomSortRedux';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { CustomSortInternalApi } from '../Internal/CustomSortInternalApi';
5
5
  export class CustomSortApiImpl extends ApiBase {
6
- constructor(adaptable) {
7
- super(adaptable);
8
- this.internalApi = new CustomSortInternalApi(adaptable);
6
+ constructor(_adaptable) {
7
+ super(_adaptable);
8
+ this.internalApi = new CustomSortInternalApi(_adaptable);
9
9
  }
10
10
  getCustomSortState() {
11
11
  return this.getAdaptableState().CustomSort;
@@ -8,7 +8,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
8
8
  import { DashboardInternalApi } from '../Internal/DashboardInternalApi';
9
9
  export declare class DashboardApiImpl extends ApiBase implements DashboardApi {
10
10
  internalApi: DashboardInternalApi;
11
- constructor(adaptable: IAdaptable);
11
+ constructor(_adaptable: IAdaptable);
12
12
  getDashboardState(): DashboardState;
13
13
  getCustomToolbars(): CustomToolbar[];
14
14
  getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
@@ -5,9 +5,9 @@ import * as React from 'react';
5
5
  import { SystemDashboardRefresh } from '../../Redux/ActionsReducers/SystemRedux';
6
6
  import { DashboardInternalApi } from '../Internal/DashboardInternalApi';
7
7
  export class DashboardApiImpl extends ApiBase {
8
- constructor(adaptable) {
9
- super(adaptable);
10
- this.internalApi = new DashboardInternalApi(adaptable);
8
+ constructor(_adaptable) {
9
+ super(_adaptable);
10
+ this.internalApi = new DashboardInternalApi(_adaptable);
11
11
  }
12
12
  getDashboardState() {
13
13
  return this.getAdaptableState().Dashboard;
@@ -20,7 +20,7 @@ export class DashboardApiImpl extends ApiBase {
20
20
  }
21
21
  getCustomDashboardButtonByLabel(buttonLabel) {
22
22
  const api = this.getAdaptableApi();
23
- const dashboardContext = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { dashboardState: api.dashboardApi.getDashboardState() });
23
+ const dashboardContext = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { dashboardState: api.dashboardApi.getDashboardState() });
24
24
  return this.getDashboardOptions().customDashboardButtons.find((cb) => {
25
25
  api.internalApi.getLabelForButton(cb, dashboardContext) == buttonLabel;
26
26
  });
@@ -52,7 +52,7 @@ export class DashboardApiImpl extends ApiBase {
52
52
  setCustomToolbarHTMLContent(customToolbarName, htmlContent) {
53
53
  let customRenderedContainer = this.getCustomToolbarHTMLElement(customToolbarName);
54
54
  if (customRenderedContainer) {
55
- this.adaptable.renderReactRoot(React.createElement("div", { dangerouslySetInnerHTML: { __html: htmlContent } }), customRenderedContainer);
55
+ this._adaptable.renderReactRoot(React.createElement("div", { dangerouslySetInnerHTML: { __html: htmlContent } }), customRenderedContainer);
56
56
  }
57
57
  }
58
58
  getCustomToolbarByName(customToolbarName) {
@@ -4,7 +4,7 @@ import { DataImportInternalApi } from '../Internal/DataImportInternalApi';
4
4
  import { ApiBase } from './ApiBase';
5
5
  export declare class DataImportApiImpl extends ApiBase implements DataImportApi {
6
6
  internalApi: DataImportInternalApi;
7
- constructor(adaptable: IAdaptable);
7
+ constructor(_adaptable: IAdaptable);
8
8
  openImportWizard(): void;
9
9
  importData(partialRows: any[]): void;
10
10
  }
@@ -1,9 +1,9 @@
1
1
  import { DataImportInternalApi } from '../Internal/DataImportInternalApi';
2
2
  import { ApiBase } from './ApiBase';
3
3
  export class DataImportApiImpl extends ApiBase {
4
- constructor(adaptable) {
5
- super(adaptable);
6
- this.internalApi = new DataImportInternalApi(adaptable);
4
+ constructor(_adaptable) {
5
+ super(_adaptable);
6
+ this.internalApi = new DataImportInternalApi(_adaptable);
7
7
  }
8
8
  openImportWizard() {
9
9
  this.getSettingsPanelApi().openSettingsPanel('DataImport');
@@ -5,7 +5,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
5
5
  import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
6
6
  export declare class DataSetApiImpl extends ApiBase implements DataSetApi {
7
7
  internalApi: DataSetInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getDataSets(): DataSet[];
10
10
  getCurrentDataSet(): DataSet | undefined;
11
11
  getDataSetByName(dataSetName: string): DataSet | undefined;
@@ -3,13 +3,13 @@ import * as SystemRedux from '../../Redux/ActionsReducers/SystemRedux';
3
3
  import { ApiBase } from './ApiBase';
4
4
  import { DataSetInternalApi } from '../Internal/DataSetInternalApi';
5
5
  export class DataSetApiImpl extends ApiBase {
6
- constructor(adaptable) {
7
- super(adaptable);
8
- this.internalApi = new DataSetInternalApi(adaptable);
6
+ constructor(_adaptable) {
7
+ super(_adaptable);
8
+ this.internalApi = new DataSetInternalApi(_adaptable);
9
9
  }
10
10
  getDataSets() {
11
- var _a, _b, _c;
12
- return (_c = (_b = (_a = this.adaptable.adaptableOptions) === null || _a === void 0 ? void 0 : _a.dataSetOptions) === null || _b === void 0 ? void 0 : _b.dataSets) !== null && _c !== void 0 ? _c : [];
11
+ var _a, _b;
12
+ return (_b = (_a = this.getDataSetOptions()) === null || _a === void 0 ? void 0 : _a.dataSets) !== null && _b !== void 0 ? _b : [];
13
13
  }
14
14
  getCurrentDataSet() {
15
15
  let currentDataSetName = this.getAdaptableState().System.CurrentDataSet;
@@ -5,7 +5,7 @@ import { EntitlementInternalApi } from '../Internal/EntitlementInternalApi';
5
5
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
6
6
  export declare class EntitlementApiImpl extends ApiBase implements EntitlementApi {
7
7
  internalApi: EntitlementInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getEntitlementAccessLevelForModule(adaptableModule: AdaptableModule): AccessLevel;
10
10
  isObjectReadonly(object: AdaptableObject): boolean;
11
11
  isModuleHiddenEntitlement(adaptableModule: AdaptableModule): boolean;
@@ -1,21 +1,21 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { EntitlementInternalApi } from '../Internal/EntitlementInternalApi';
3
3
  export class EntitlementApiImpl extends ApiBase {
4
- constructor(adaptable) {
5
- super(adaptable);
6
- this.internalApi = new EntitlementInternalApi(adaptable);
4
+ constructor(_adaptable) {
5
+ super(_adaptable);
6
+ this.internalApi = new EntitlementInternalApi(_adaptable);
7
7
  }
8
8
  getEntitlementAccessLevelForModule(adaptableModule) {
9
9
  let entitlementOptions = this.getEntitlementOptions();
10
10
  if (entitlementOptions) {
11
- const defaultAccessLevelContext = this.getAdaptableApi().internalApi.buildBaseContext();
11
+ const defaultAccessLevelContext = this.getAdaptableInternalApi().buildBaseContext();
12
12
  const defaultAccessLevel = typeof entitlementOptions.defaultAccessLevel === 'function'
13
13
  ? entitlementOptions.defaultAccessLevel(defaultAccessLevelContext)
14
14
  : entitlementOptions.defaultAccessLevel;
15
15
  const moduleEntitlements = entitlementOptions.moduleEntitlements;
16
16
  if (moduleEntitlements) {
17
17
  if (typeof moduleEntitlements === 'function') {
18
- const entitlementContext = Object.assign(Object.assign({ adaptableModule }, this.getAdaptableApi().internalApi.buildBaseContext()), { defaultAccessLevel });
18
+ const entitlementContext = Object.assign(Object.assign({ adaptableModule }, this.getAdaptableInternalApi().buildBaseContext()), { defaultAccessLevel });
19
19
  const dynamicModuleEntitlement = moduleEntitlements(entitlementContext);
20
20
  return dynamicModuleEntitlement !== null && dynamicModuleEntitlement !== void 0 ? dynamicModuleEntitlement : defaultAccessLevel;
21
21
  }
@@ -4,7 +4,7 @@ import { EventApi } from '../EventApi';
4
4
  import { EmitterCallback } from '../../Utilities/Emitter';
5
5
  export declare class EventApiImpl extends ApiBase implements EventApi {
6
6
  private emitter;
7
- constructor(adaptable: IAdaptable);
7
+ constructor(_adaptable: IAdaptable);
8
8
  destroy(): void;
9
9
  on: (eventName: string, callback: EmitterCallback) => (() => void);
10
10
  off: (eventName: string, callback: EmitterCallback) => void;
@@ -1,8 +1,8 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import Emitter from '../../Utilities/Emitter';
3
3
  export class EventApiImpl extends ApiBase {
4
- constructor(adaptable) {
5
- super(adaptable);
4
+ constructor(_adaptable) {
5
+ super(_adaptable);
6
6
  this.on = (eventName, callback) => {
7
7
  let result;
8
8
  if (eventName === 'AdaptableReady') {
@@ -8,7 +8,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
8
8
  import { ExportInternalApi } from '../Internal/ExportInternalApi';
9
9
  export declare class ExportApiImpl extends ApiBase implements ExportApi {
10
10
  internalApi: ExportInternalApi;
11
- constructor(adaptable: IAdaptable);
11
+ constructor(_adaptable: IAdaptable);
12
12
  getExportState(): ExportState;
13
13
  getCurrentReportName(): string;
14
14
  getCurrentReport(): Report;
@@ -6,9 +6,9 @@ import ObjectFactory from '../../Utilities/ObjectFactory';
6
6
  import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
7
7
  import { ExportInternalApi } from '../Internal/ExportInternalApi';
8
8
  export class ExportApiImpl extends ApiBase {
9
- constructor(adaptable) {
10
- super(adaptable);
11
- this.internalApi = new ExportInternalApi(adaptable);
9
+ constructor(_adaptable) {
10
+ super(_adaptable);
11
+ this.internalApi = new ExportInternalApi(_adaptable);
12
12
  }
13
13
  getExportState() {
14
14
  return this.getAdaptableState().Export;
@@ -97,10 +97,10 @@ export class ExportApiImpl extends ApiBase {
97
97
  return (_a = this.getCustomDestinations().find((destination) => destination.name === destinationName)) === null || _a === void 0 ? void 0 : _a.form;
98
98
  }
99
99
  canExportToExcel() {
100
- return this.adaptable.canExportToExcel();
100
+ return this._adaptable.canExportToExcel();
101
101
  }
102
102
  exportDataToExcel(reportData, fileName) {
103
- this.adaptable.exportToExcel(reportData, fileName);
103
+ this._adaptable.exportToExcel(reportData, fileName);
104
104
  }
105
105
  openExportSettingsPanel() {
106
106
  this.showModulePopup(ModuleConstants.ExportModuleId);
@@ -116,7 +116,7 @@ export class ExportApiImpl extends ApiBase {
116
116
  return reports === null || reports === void 0 ? void 0 : reports.map((report) => this.getReportById(report.Uuid));
117
117
  }
118
118
  exportVisualDataToExcel() {
119
- this.adaptable.exportVisualDataToExcel();
119
+ this._adaptable.exportVisualDataToExcel();
120
120
  }
121
121
  getExternalReports() {
122
122
  var _a;
@@ -146,7 +146,7 @@ export class ExportApiImpl extends ApiBase {
146
146
  isColumnExportable(adaptableColumn) {
147
147
  const isExportableFn = this.getExportOptions().isColumnExportable;
148
148
  if (typeof isExportableFn === 'function') {
149
- return isExportableFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { adaptableColumn }));
149
+ return isExportableFn(Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { adaptableColumn }));
150
150
  }
151
151
  return true;
152
152
  }
@@ -7,7 +7,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
8
8
  export declare class ExpressionApiImpl extends ApiBase implements ExpressionApi {
9
9
  internalApi: ExpressionInternalApi;
10
- constructor(adaptable: IAdaptable);
10
+ constructor(_adaptable: IAdaptable);
11
11
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
12
12
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
13
13
  isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
2
2
  import * as parser from '../../parser/src';
3
3
  import { ExpressionInternalApi } from '../Internal/ExpressionInternalApi';
4
4
  export class ExpressionApiImpl extends ApiBase {
5
- constructor(adaptable) {
6
- super(adaptable);
7
- this.internalApi = new ExpressionInternalApi(adaptable);
5
+ constructor(_adaptable) {
6
+ super(_adaptable);
7
+ this.internalApi = new ExpressionInternalApi(_adaptable);
8
8
  }
9
9
  isValidBooleanExpression(query, module, validationErrorMessage) {
10
10
  const { isValid, errorMessage } = this.getAdaptableApi()
@@ -69,7 +69,7 @@ export class ExpressionApiImpl extends ApiBase {
69
69
  isColumnQueryable(adaptableColumnBase) {
70
70
  let queryableColumnFn = this.getExpressionOptions().isColumnQueryable;
71
71
  if (queryableColumnFn) {
72
- const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.getAdaptableApi().internalApi.buildBaseContext());
72
+ const queryableColumnContext = Object.assign({ adaptableColumn: adaptableColumnBase }, this.getAdaptableInternalApi().buildBaseContext());
73
73
  return queryableColumnFn(queryableColumnContext);
74
74
  }
75
75
  return true;
@@ -84,6 +84,6 @@ export class ExpressionApiImpl extends ApiBase {
84
84
  .getExpressionWithColumnFriendlyNames(this.getAdaptableQueryExpression(query));
85
85
  }
86
86
  useCaseSensitivity() {
87
- return this.adaptable.adaptableOptions.expressionOptions.caseSensitiveExpressions;
87
+ return this.getExpressionOptions().caseSensitiveExpressions;
88
88
  }
89
89
  }
@@ -7,7 +7,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
7
7
  import { AppIdentifier } from '@finos/fdc3/dist/api/AppIdentifier';
8
8
  export declare class Fdc3ApiImpl extends ApiBase implements Fdc3Api {
9
9
  internalApi: Fdc3InternalApi;
10
- constructor(adaptable: IAdaptable);
10
+ constructor(_adaptable: IAdaptable);
11
11
  getDesktopAgent(): DesktopAgent;
12
12
  buildContextDataFromRow(contextType: ContextType, rowNode: IRowNode): Context;
13
13
  buildContextDataForPrimaryKey(contextType: ContextType, primaryKeyValue: string | number): Context | undefined;
@@ -2,9 +2,9 @@ import { ApiBase } from './ApiBase';
2
2
  import { Fdc3InternalApi } from '../Internal/Fdc3InternalApi';
3
3
  import { ContextConfiguration } from '../../PredefinedConfig/Common/Fdc3Context';
4
4
  export class Fdc3ApiImpl extends ApiBase {
5
- constructor(adaptable) {
6
- super(adaptable);
7
- this.internalApi = new Fdc3InternalApi(adaptable);
5
+ constructor(_adaptable) {
6
+ super(_adaptable);
7
+ this.internalApi = new Fdc3InternalApi(_adaptable);
8
8
  }
9
9
  getDesktopAgent() {
10
10
  return this.getFdc3Service().getDesktopAgent();
@@ -69,7 +69,7 @@ export class Fdc3ApiImpl extends ApiBase {
69
69
  return this.internalApi.isStandardIntentType(intentType);
70
70
  }
71
71
  getFdc3Service() {
72
- return this.getAdaptableApi().internalApi.getFdc3Service();
72
+ return this.getAdaptableInternalApi().getFdc3Service();
73
73
  }
74
74
  getPossibleContextTypes(intent) {
75
75
  this.logWarn('Fdc3Api.getPossibleContextTypes is NO longer relevant as of FDC3 v1.2 and will be removed in a future version');
@@ -9,7 +9,7 @@ import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
9
  import { AdaptableObjectLookupCriteria } from '../../types';
10
10
  export declare class FlashingCellApiImpl extends ApiBase implements FlashingCellApi {
11
11
  internalApi: FlashingCellInternalApi;
12
- constructor(adaptable: IAdaptable);
12
+ constructor(_adaptable: IAdaptable);
13
13
  getFlashingCellState(): FlashingCellState;
14
14
  getFlashingCellDefinitions(config?: LayoutAssociatedObjectLoadConfig): FlashingCellDefinition[];
15
15
  getFlashingCellDefinitionById(id: FlashingCellDefinition['Uuid']): FlashingCellDefinition;
@@ -2,9 +2,9 @@ import * as FlashingCellRedux from '../../Redux/ActionsReducers/FlashingCellRedu
2
2
  import { ApiBase } from './ApiBase';
3
3
  import { FlashingCellInternalApi } from '../Internal/FlashingCellInternalApi';
4
4
  export class FlashingCellApiImpl extends ApiBase {
5
- constructor(adaptable) {
6
- super(adaptable);
7
- this.internalApi = new FlashingCellInternalApi(adaptable);
5
+ constructor(_adaptable) {
6
+ super(_adaptable);
7
+ this.internalApi = new FlashingCellInternalApi(_adaptable);
8
8
  }
9
9
  getFlashingCellState() {
10
10
  return this.getAdaptableState().FlashingCell;
@@ -32,7 +32,7 @@ export class FlashingCellApiImpl extends ApiBase {
32
32
  }
33
33
  showFlashingCell(flashingCellToShow) {
34
34
  this.addUidToAdaptableObject(flashingCellToShow);
35
- const flashingCellFiredInfo = Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { flashingCell: flashingCellToShow });
35
+ const flashingCellFiredInfo = Object.assign(Object.assign({}, this.getAdaptableInternalApi().buildBaseContext()), { flashingCell: flashingCellToShow });
36
36
  const results = this.getAdaptableApi().eventApi.emitSync('FlashingCellDisplayed', flashingCellFiredInfo);
37
37
  const shouldShow = results.reduce((endResult, aResult) => {
38
38
  return endResult && aResult !== false;
@@ -94,13 +94,13 @@ export class FlashingCellApiImpl extends ApiBase {
94
94
  .filter((predicateDef) => this.getAdaptableApi().columnScopeApi.isScopeInScope(scope, predicateDef.columnScope));
95
95
  }
96
96
  clearAllFlashingCells() {
97
- this.getAdaptableApi().internalApi.getFlashingCellService().clearAllGridCellFlashes();
97
+ this.getAdaptableInternalApi().getFlashingCellService().clearAllGridCellFlashes();
98
98
  }
99
99
  isAnyFlashingCellActive() {
100
- return this.getAdaptableApi().internalApi.getFlashingCellService().isAnyFlashingCellActive();
100
+ return this.getAdaptableInternalApi().getFlashingCellService().isAnyFlashingCellActive();
101
101
  }
102
102
  findFlashingCellDefinitions(criteria) {
103
- return this.getAdaptableApi().internalApi.findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
103
+ return this.getAdaptableInternalApi().findAdaptableObjectsByLookupCriteria(criteria, this.getFlashingCellDefinitions({
104
104
  includeLayoutNotAssociatedObjects: true,
105
105
  }));
106
106
  }
@@ -8,7 +8,7 @@ import { FormatColumnInternalApi } from '../Internal/FormatColumnInternalApi';
8
8
  import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
9
9
  export declare class FormatColumnApiImpl extends ApiBase implements FormatColumnApi {
10
10
  internalApi: FormatColumnInternalApi;
11
- constructor(adaptable: IAdaptable);
11
+ constructor(_adaptable: IAdaptable);
12
12
  getFormatColumnState(): FormatColumnState;
13
13
  getFormatColumns(config?: {
14
14
  includeLayoutNotAssociatedObjects?: boolean;