@adaptabletools/adaptable 19.1.0-canary.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 (131) hide show
  1. package/package.json +1 -1
  2. package/src/AdaptableOptions/FormatColumnOptions.d.ts +4 -4
  3. package/src/Api/GridApi.d.ts +2 -1
  4. package/src/Api/Implementation/ActionColumnApiImpl.d.ts +0 -2
  5. package/src/Api/Implementation/ActionColumnApiImpl.js +1 -4
  6. package/src/Api/Implementation/ActionRowApiImpl.d.ts +1 -1
  7. package/src/Api/Implementation/ActionRowApiImpl.js +4 -4
  8. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  9. package/src/Api/Implementation/AdaptableApiImpl.js +6 -0
  10. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  11. package/src/Api/Implementation/AlertApiImpl.js +16 -15
  12. package/src/Api/Implementation/ApiBase.d.ts +12 -3
  13. package/src/Api/Implementation/ApiBase.js +39 -24
  14. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +1 -1
  15. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -3
  16. package/src/Api/Implementation/CalendarApiImpl.js +1 -1
  17. package/src/Api/Implementation/ChartingApiImpl.d.ts +1 -1
  18. package/src/Api/Implementation/ChartingApiImpl.js +9 -9
  19. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -1
  20. package/src/Api/Implementation/ColumnApiImpl.js +18 -18
  21. package/src/Api/Implementation/ColumnFilterApiImpl.d.ts +1 -1
  22. package/src/Api/Implementation/ColumnFilterApiImpl.js +7 -7
  23. package/src/Api/Implementation/ColumnMenuApiImpl.d.ts +0 -2
  24. package/src/Api/Implementation/ColumnMenuApiImpl.js +2 -5
  25. package/src/Api/Implementation/CommentsApiImpl.d.ts +1 -1
  26. package/src/Api/Implementation/CommentsApiImpl.js +6 -4
  27. package/src/Api/Implementation/ConfigApiImpl.js +23 -24
  28. package/src/Api/Implementation/ContextMenuApiImpl.d.ts +0 -2
  29. package/src/Api/Implementation/ContextMenuApiImpl.js +1 -4
  30. package/src/Api/Implementation/CustomSortApiImpl.d.ts +1 -1
  31. package/src/Api/Implementation/CustomSortApiImpl.js +3 -3
  32. package/src/Api/Implementation/DashboardApiImpl.d.ts +1 -1
  33. package/src/Api/Implementation/DashboardApiImpl.js +5 -5
  34. package/src/Api/Implementation/DataImportApiImpl.d.ts +1 -1
  35. package/src/Api/Implementation/DataImportApiImpl.js +3 -3
  36. package/src/Api/Implementation/DataSetApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/DataSetApiImpl.js +5 -5
  38. package/src/Api/Implementation/EntitlementApiImpl.d.ts +1 -1
  39. package/src/Api/Implementation/EntitlementApiImpl.js +5 -5
  40. package/src/Api/Implementation/EventApiImpl.d.ts +1 -1
  41. package/src/Api/Implementation/EventApiImpl.js +2 -2
  42. package/src/Api/Implementation/ExportApiImpl.d.ts +1 -1
  43. package/src/Api/Implementation/ExportApiImpl.js +7 -7
  44. package/src/Api/Implementation/ExpressionApiImpl.d.ts +1 -1
  45. package/src/Api/Implementation/ExpressionApiImpl.js +5 -5
  46. package/src/Api/Implementation/Fdc3ApiImpl.d.ts +1 -1
  47. package/src/Api/Implementation/Fdc3ApiImpl.js +4 -4
  48. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/FlashingCellApiImpl.js +7 -7
  50. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/FormatColumnApiImpl.js +4 -4
  52. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +1 -1
  53. package/src/Api/Implementation/FreeTextColumnApiImpl.js +4 -4
  54. package/src/Api/Implementation/GridApiImpl.d.ts +3 -2
  55. package/src/Api/Implementation/GridApiImpl.js +106 -103
  56. package/src/Api/Implementation/GridFilterApiImpl.d.ts +1 -1
  57. package/src/Api/Implementation/GridFilterApiImpl.js +4 -4
  58. package/src/Api/Implementation/LayoutApiImpl.d.ts +1 -1
  59. package/src/Api/Implementation/LayoutApiImpl.js +3 -3
  60. package/src/Api/Implementation/NamedQueryApiImpl.d.ts +1 -1
  61. package/src/Api/Implementation/NamedQueryApiImpl.js +3 -3
  62. package/src/Api/Implementation/NoteApiImpl.d.ts +1 -1
  63. package/src/Api/Implementation/NoteApiImpl.js +3 -3
  64. package/src/Api/Implementation/OptionsApiImpl.js +7 -7
  65. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  66. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  67. package/src/Api/Implementation/PredicateApiImpl.d.ts +1 -1
  68. package/src/Api/Implementation/PredicateApiImpl.js +4 -4
  69. package/src/Api/Implementation/ScheduleApiImpl.d.ts +1 -1
  70. package/src/Api/Implementation/ScheduleApiImpl.js +3 -3
  71. package/src/Api/Implementation/SettingsPanelApiImpl.js +1 -1
  72. package/src/Api/Implementation/StatusBarApiImpl.js +1 -1
  73. package/src/Api/Implementation/StyledColumnApiImpl.d.ts +1 -1
  74. package/src/Api/Implementation/StyledColumnApiImpl.js +4 -4
  75. package/src/Api/Implementation/SystemStatusApiImpl.d.ts +1 -1
  76. package/src/Api/Implementation/SystemStatusApiImpl.js +4 -4
  77. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +1 -1
  78. package/src/Api/Implementation/TeamSharingApiImpl.js +11 -11
  79. package/src/Api/Implementation/ThemeApiImpl.d.ts +1 -1
  80. package/src/Api/Implementation/ThemeApiImpl.js +8 -8
  81. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  82. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  83. package/src/Api/Implementation/UserInterfaceApiImpl.js +5 -5
  84. package/src/Api/Internal/ActionRowInternalApi.js +8 -8
  85. package/src/Api/Internal/AdaptableInternalApi.d.ts +2 -0
  86. package/src/Api/Internal/AdaptableInternalApi.js +55 -50
  87. package/src/Api/Internal/AlertInternalApi.js +9 -9
  88. package/src/Api/Internal/CalculatedColumnInternalApi.js +11 -9
  89. package/src/Api/Internal/ChartingInternalApi.js +1 -1
  90. package/src/Api/Internal/ColumnFilterInternalApi.js +7 -9
  91. package/src/Api/Internal/ColumnInternalApi.js +3 -3
  92. package/src/Api/Internal/CustomSortInternalApi.js +3 -3
  93. package/src/Api/Internal/DashboardInternalApi.js +4 -3
  94. package/src/Api/Internal/DataImportInternalApi.js +2 -2
  95. package/src/Api/Internal/DataSetInternalApi.js +2 -2
  96. package/src/Api/Internal/ExportInternalApi.js +21 -22
  97. package/src/Api/Internal/ExpressionInternalApi.js +4 -4
  98. package/src/Api/Internal/Fdc3InternalApi.d.ts +0 -1
  99. package/src/Api/Internal/Fdc3InternalApi.js +9 -12
  100. package/src/Api/Internal/FlashingCellInternalApi.js +2 -2
  101. package/src/Api/Internal/FormatColumnInternalApi.js +2 -3
  102. package/src/Api/Internal/FreeTextColumnInternalApi.js +5 -2
  103. package/src/Api/Internal/GridFilterInternalApi.js +2 -2
  104. package/src/Api/Internal/GridInternalApi.js +26 -26
  105. package/src/Api/Internal/LayoutInternalApi.js +6 -5
  106. package/src/Api/Internal/NamedQueryInternalApi.js +2 -2
  107. package/src/Api/Internal/PredicateInternalApi.js +5 -5
  108. package/src/Api/Internal/ScheduleInternalApi.js +1 -1
  109. package/src/Api/Internal/StyledColumnInternalApi.js +2 -2
  110. package/src/Api/Internal/SystemStatusInternalApi.js +1 -1
  111. package/src/Api/Internal/TeamSharingInternalApi.js +2 -2
  112. package/src/Api/Internal/ThemeInternalApi.js +1 -1
  113. package/src/Strategy/NoteModule.d.ts +0 -1
  114. package/src/Strategy/NoteModule.js +4 -5
  115. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  116. package/src/Utilities/Services/AggregatedScalarLiveValue.js +1 -1
  117. package/src/Utilities/Services/CellPopupService.js +4 -4
  118. package/src/Utilities/Services/Fdc3Service.js +1 -3
  119. package/src/Utilities/Services/FlashingCellService.d.ts +0 -2
  120. package/src/Utilities/Services/FlashingCellService.js +2 -3
  121. package/src/Utilities/Services/RowEditService.js +3 -5
  122. package/src/View/Alert/AlertStatusSubPanel.js +4 -4
  123. package/src/View/Charting/ShowChartButton.js +4 -4
  124. package/src/View/DataImport/DataImportWizard/DataImportWizard.js +14 -13
  125. package/src/agGrid/FloatingFilterWrapper.js +4 -3
  126. package/src/components/Datepicker/index.d.ts +1 -1
  127. package/src/components/ExpressionEditor/DataTableEditor.js +3 -3
  128. package/src/components/ExpressionEditor/ExpressionPreview.js +4 -4
  129. package/src/env.js +2 -2
  130. package/src/metamodel/adaptable.metamodel.js +1 -1
  131. package/tsconfig.esm.tsbuildinfo +1 -1
@@ -7,12 +7,12 @@ import ArrayExtensions from '../../Utilities/Extensions/ArrayExtensions';
7
7
  import { WINDOW_SHOW_TRANSPOSED_VIEW } from '../../View/Components/Popups/WindowPopups/windowFactory';
8
8
  import { ROW_SUMMARY_ROW_ID } from '../../PredefinedConfig/Common/RowSummary';
9
9
  export class GridApiImpl extends ApiBase {
10
- constructor(adaptable) {
11
- super(adaptable);
12
- this.internalApi = new GridInternalApi(adaptable);
10
+ constructor(_adaptable) {
11
+ super(_adaptable);
12
+ this.internalApi = new GridInternalApi(_adaptable);
13
13
  }
14
14
  getVariant() {
15
- return this.adaptable.variant;
15
+ return this.getAdaptableVariant();
16
16
  }
17
17
  getGridState() {
18
18
  return this.getAdaptableState().Grid;
@@ -22,20 +22,20 @@ export class GridApiImpl extends ApiBase {
22
22
  // to prevent `cellchanged` events from being triggered for rows that have
23
23
  // the same primary key with existing rows
24
24
  // see #testprevent_cellchanged_event_on_load_grid_data
25
- this.adaptable.agGridAdapter.setGridOption('rowData', []);
26
- this.adaptable.setGridData(dataSource);
25
+ this._adaptable.agGridAdapter.setGridOption('rowData', []);
26
+ this._adaptable.setGridData(dataSource);
27
27
  const allRowNodes = this.getAllRowNodes();
28
28
  this.internalApi.fireGridDataChangedEvent(dataSource, allRowNodes, 'Load');
29
29
  }
30
30
  getGridData() {
31
- return this.adaptable.getGridData();
31
+ return this._adaptable.getGridData();
32
32
  }
33
33
  getFilteredData() {
34
- return this.adaptable.getFilteredData();
34
+ return this._adaptable.getFilteredData();
35
35
  }
36
36
  getVisibleData() {
37
37
  const data = [];
38
- this.adaptable.forAllVisibleRowNodesDo((rowNode) => {
38
+ this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => {
39
39
  if (!this.isGroupRowNode(rowNode)) {
40
40
  data.push(rowNode.data);
41
41
  }
@@ -43,12 +43,12 @@ export class GridApiImpl extends ApiBase {
43
43
  return data;
44
44
  }
45
45
  async updateGridData(dataRows, dataUpdateConfig) {
46
- const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
46
+ const rowNodes = await this._adaptable.updateRows(dataRows, dataUpdateConfig);
47
47
  this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Update');
48
48
  return rowNodes;
49
49
  }
50
50
  async addOrUpdateGridData(dataRows, dataUpdateConfig) {
51
- const { added, updated } = await this.adaptable.addOrUpdateRows(dataRows, dataUpdateConfig);
51
+ const { added, updated } = await this._adaptable.addOrUpdateRows(dataRows, dataUpdateConfig);
52
52
  if (ArrayExtensions.IsNotNullOrEmpty(updated)) {
53
53
  this.internalApi.fireGridDataChangedEvent(dataRows, updated, 'Update');
54
54
  }
@@ -61,13 +61,13 @@ export class GridApiImpl extends ApiBase {
61
61
  };
62
62
  }
63
63
  async addGridData(dataRows, dataUpdateConfig) {
64
- const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
64
+ const rowNodes = await this._adaptable.addRows(dataRows, dataUpdateConfig);
65
65
  this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
66
66
  return rowNodes;
67
67
  }
68
68
  undoCellEdit(cellDataChangedInfo) {
69
69
  // for the reason of this hacky solution see the comments in DataService
70
- this.getAdaptableApi().internalApi.getDataService().logUndoChange(cellDataChangedInfo);
70
+ this.getAdaptableInternalApi().getDataService().logUndoChange(cellDataChangedInfo);
71
71
  const cellUpdateRequest = {
72
72
  columnId: cellDataChangedInfo.column.columnId,
73
73
  newValue: cellDataChangedInfo.oldValue,
@@ -79,7 +79,7 @@ export class GridApiImpl extends ApiBase {
79
79
  }
80
80
  async deleteGridData(dataRows, dataUpdateConfig) {
81
81
  if (this.checkArrayExists(dataRows)) {
82
- const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
82
+ const rowNodes = await this._adaptable.deleteRows(dataRows, dataUpdateConfig);
83
83
  this.internalApi.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
84
84
  return rowNodes;
85
85
  }
@@ -97,7 +97,7 @@ export class GridApiImpl extends ApiBase {
97
97
  this.logWarn(`setCellValue() - rowNode not found for primaryKeyValue: ${cellUpdateRequest.primaryKeyValue}`);
98
98
  return;
99
99
  }
100
- this.adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
100
+ this._adaptable.setDataValue(cellUpdateRequest.newValue, abColumn, cellUpdateRequest.primaryKeyValue, rowNode);
101
101
  this.refreshCells([rowNode], [abColumn.columnId]);
102
102
  }
103
103
  setCellValues(cellUpdateRequests) {
@@ -122,10 +122,10 @@ export class GridApiImpl extends ApiBase {
122
122
  return rowNode ? this.getNormalisedValueFromRowNode(rowNode, columnId) : undefined;
123
123
  }
124
124
  hideFilterForm() {
125
- this.adaptable.hideColumnFilterForm();
125
+ this._adaptable.hideColumnFilterForm();
126
126
  }
127
127
  applyGridFiltering() {
128
- this.adaptable.applyColumnFiltering();
128
+ this._adaptable.applyColumnFiltering();
129
129
  }
130
130
  clearGridFiltering() {
131
131
  // slightly round the houses but we have to call ColumnFilterAPI as it does it properly
@@ -139,11 +139,11 @@ export class GridApiImpl extends ApiBase {
139
139
  return columnSorts === null || columnSorts === void 0 ? void 0 : columnSorts.find((cs) => cs.ColumnId == columnId);
140
140
  }
141
141
  setAdaptableSorting(columnSorts) {
142
- this.adaptable.setColumnSort(columnSorts);
142
+ this._adaptable.setColumnSort(columnSorts);
143
143
  this.setColumnSorts(columnSorts);
144
144
  }
145
145
  clearAdaptableSorting() {
146
- this.adaptable.clearColumnSort();
146
+ this._adaptable.clearColumnSort();
147
147
  this.clearColumnSorts();
148
148
  }
149
149
  setColumnSorts(columnSorts) {
@@ -163,13 +163,13 @@ export class GridApiImpl extends ApiBase {
163
163
  this.selectNodes(nodes, clearSelection);
164
164
  }
165
165
  selectNode(rowNode, clearSelection) {
166
- this.adaptable.selectNode(rowNode, clearSelection);
166
+ this._adaptable.selectNode(rowNode, clearSelection);
167
167
  }
168
168
  selectNodes(rowNodes, clearSelection) {
169
- this.adaptable.selectNodes(rowNodes, clearSelection);
169
+ this._adaptable.selectNodes(rowNodes, clearSelection);
170
170
  }
171
171
  deSelectRow(primaryKeyValue, clearSelection) {
172
- this.adaptable.deSelectNode(this.getRowNodeForPrimaryKey(primaryKeyValue), clearSelection);
172
+ this._adaptable.deSelectNode(this.getRowNodeForPrimaryKey(primaryKeyValue), clearSelection);
173
173
  }
174
174
  deSelectRows(primaryKeyValues, clearSelection) {
175
175
  let nodes = [];
@@ -179,22 +179,22 @@ export class GridApiImpl extends ApiBase {
179
179
  this.deSelectNodes(nodes, clearSelection);
180
180
  }
181
181
  deSelectNode(rowNode, clearSelection) {
182
- this.adaptable.deSelectNode(rowNode, clearSelection);
182
+ this._adaptable.deSelectNode(rowNode, clearSelection);
183
183
  }
184
184
  deSelectNodes(rowNodes, clearSelection) {
185
- this.adaptable.deSelectNodes(rowNodes, clearSelection);
185
+ this._adaptable.deSelectNodes(rowNodes, clearSelection);
186
186
  }
187
187
  getSelectionStartEndNodes(gridCellRange) {
188
188
  let startNode;
189
189
  let endNode;
190
190
  startNode = gridCellRange.primaryKeyValueEnd
191
- ? this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart)
192
- : this.adaptable.getRowNodeByIndex(gridCellRange.rowIndexStart);
191
+ ? this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueStart)
192
+ : this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexStart);
193
193
  if (gridCellRange.primaryKeyValueEnd) {
194
- endNode = this.adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd);
194
+ endNode = this._adaptable.getRowNodeForPrimaryKey(gridCellRange.primaryKeyValueEnd);
195
195
  }
196
196
  else if (gridCellRange.rowIndexEnd) {
197
- endNode = this.adaptable.getRowNodeByIndex(gridCellRange.rowIndexEnd);
197
+ endNode = this._adaptable.getRowNodeByIndex(gridCellRange.rowIndexEnd);
198
198
  }
199
199
  else {
200
200
  endNode = startNode;
@@ -211,7 +211,7 @@ export class GridApiImpl extends ApiBase {
211
211
  }
212
212
  const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
213
213
  if (startNode && endNode) {
214
- this.adaptable.selectCells(gridCellRange.columnIds, startNode, endNode, clearSelection);
214
+ this._adaptable.selectCells(gridCellRange.columnIds, startNode, endNode, clearSelection);
215
215
  }
216
216
  }
217
217
  selectCellRangeByQuery(query, gridCellRange, clearSelection) {
@@ -222,13 +222,13 @@ export class GridApiImpl extends ApiBase {
222
222
  if (gridCellRange) {
223
223
  const [startNode, endNode] = this.getSelectionStartEndNodes(gridCellRange);
224
224
  for (let rowIndex = startNode.rowIndex; rowIndex <= endNode.rowIndex; rowIndex++) {
225
- const rowNode = this.adaptable.getRowNodeByIndex(rowIndex);
225
+ const rowNode = this._adaptable.getRowNodeByIndex(rowIndex);
226
226
  isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
227
227
  }
228
228
  }
229
229
  else {
230
230
  // include all row
231
- this.adaptable.forAllRowNodesDo((rowNode) => {
231
+ this._adaptable.forAllRowNodesDo((rowNode) => {
232
232
  isRowNodeInQuery(rowNode) && filteredRowNodes.push(rowNode);
233
233
  });
234
234
  }
@@ -268,7 +268,7 @@ export class GridApiImpl extends ApiBase {
268
268
  let preparedClearSelection = clearSelection;
269
269
  rowRanges.forEach((range) => {
270
270
  // clear only on first range selection
271
- this.adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
271
+ this._adaptable.selectCells(preapredGridCellRange.columnIds, range.startNode, range.endNode, preparedClearSelection);
272
272
  preparedClearSelection = false;
273
273
  });
274
274
  }
@@ -279,106 +279,106 @@ export class GridApiImpl extends ApiBase {
279
279
  this.getAdaptableApi().columnApi.selectColumns(columnIds);
280
280
  }
281
281
  getFirstRowNode() {
282
- return this.adaptable.getFirstRowNode();
282
+ return this._adaptable.getFirstRowNode();
283
283
  }
284
284
  getFirstDisplayedRowNode() {
285
- return this.adaptable.getFirstDisplayedRowNode();
285
+ return this._adaptable.getFirstDisplayedRowNode();
286
286
  }
287
287
  getVisibleRowNodes(config) {
288
288
  const rowNodes = [];
289
- this.adaptable.forAllVisibleRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
289
+ this.getAdaptableInternalApi().forAllVisibleRowNodesDo((rowNode) => rowNodes.push(rowNode), config);
290
290
  return rowNodes;
291
291
  }
292
292
  getAllRowNodes(config) {
293
- return this.adaptable.getAllRowNodes(config);
293
+ return this._adaptable.getAllRowNodes(config);
294
294
  }
295
295
  getGroupRowNodes(config) {
296
- return this.adaptable.getGroupRowNodes(config);
296
+ return this._adaptable.getGroupRowNodes(config);
297
297
  }
298
298
  getGridCellFromRowNode(rowNode, columnId) {
299
- return this.adaptable.getGridCellFromRowNode(rowNode, columnId);
299
+ return this._adaptable.getGridCellFromRowNode(rowNode, columnId);
300
300
  }
301
301
  getRawValueFromRowNode(rowNode, columnId) {
302
- return this.adaptable.getRawValueFromRowNode(rowNode, columnId);
302
+ return this._adaptable.getRawValueFromRowNode(rowNode, columnId);
303
303
  }
304
304
  getDisplayValueFromRowNode(rowNode, columnId) {
305
- return this.adaptable.getDisplayValueFromRowNode(rowNode, columnId);
305
+ return this._adaptable.getDisplayValueFromRowNode(rowNode, columnId);
306
306
  }
307
307
  getDisplayValueFromRawValue(rowNode, columnId, rawValue) {
308
- return this.adaptable.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
308
+ return this._adaptable.getDisplayValueFromRawValue(rowNode, columnId, rawValue);
309
309
  }
310
310
  getNormalisedValueFromRowNode(rowNode, columnId) {
311
- const rawValue = this.adaptable.getRawValueFromRowNode(rowNode, columnId);
311
+ const rawValue = this._adaptable.getRawValueFromRowNode(rowNode, columnId);
312
312
  const abColumn = this.getAdaptableApi().columnApi.getColumnWithColumnId(columnId);
313
- return this.adaptable.getNormalisedValueFromRawValue(rawValue, abColumn);
313
+ return this._adaptable.getNormalisedValueFromRawValue(rawValue, abColumn);
314
314
  }
315
315
  getRowNodesForPrimaryKeys(primaryKeyValues) {
316
- return this.adaptable.getRowNodesForPrimaryKeys(primaryKeyValues);
316
+ return this._adaptable.getRowNodesForPrimaryKeys(primaryKeyValues);
317
317
  }
318
318
  getRowNodeForPrimaryKey(primaryKeyValue) {
319
- return this.adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
319
+ return this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
320
320
  }
321
321
  getPrimaryKeyValueForRowNode(rowNode) {
322
- return this.adaptable.getPrimaryKeyValueFromRowNode(rowNode);
322
+ return this._adaptable.getPrimaryKeyValueFromRowNode(rowNode);
323
323
  }
324
324
  getRowNodeForIndex(index) {
325
- return this.adaptable.getRowNodeByIndex(index);
325
+ return this._adaptable.getRowNodeByIndex(index);
326
326
  }
327
327
  getPrimaryKeyValuesForRowNodes(rowNodes) {
328
328
  return rowNodes.map((rowNode) => this.getPrimaryKeyValueForRowNode(rowNode));
329
329
  }
330
330
  setRowGroupColumns(columnIds) {
331
- this.adaptable.setRowGroupColumns(columnIds);
331
+ this._adaptable.setRowGroupColumns(columnIds);
332
332
  }
333
333
  clearRowGroupColumns() {
334
- this.adaptable.clearRowGroupColumns();
334
+ this._adaptable.clearRowGroupColumns();
335
335
  }
336
336
  expandAllRowGroups() {
337
- this.adaptable.expandAllRowGroups();
337
+ this._adaptable.expandAllRowGroups();
338
338
  }
339
339
  collapseAllRowGroups() {
340
- this.adaptable.collapseAllRowGroups();
340
+ this._adaptable.collapseAllRowGroups();
341
341
  }
342
342
  getExpandRowGroupsKeys() {
343
- return this.adaptable.getExpandRowGroupsKeys();
343
+ return this._adaptable.getExpandRowGroupsKeys();
344
344
  }
345
345
  expandRowGroupsForValues(columnValues) {
346
- this.adaptable.expandRowGroupsForValues(columnValues);
346
+ this._adaptable.expandRowGroupsForValues(columnValues);
347
347
  }
348
348
  isGridPivotable() {
349
- return !this.getAdaptableApi().internalApi.isGridInTreeMode();
349
+ return !this.getAdaptableInternalApi().isGridInTreeMode();
350
350
  }
351
351
  isGridGroupable() {
352
- return !this.getAdaptableApi().internalApi.isGridInTreeMode();
352
+ return !this.getAdaptableInternalApi().isGridInTreeMode();
353
353
  }
354
354
  isGridRowSelectable() {
355
- return this.adaptable.isGridRowSelectable();
355
+ return this._adaptable.isGridRowSelectable();
356
356
  }
357
357
  isGridRangeSelectable() {
358
- return this.adaptable.isGridRangeSelectable();
358
+ return this._adaptable.isGridRangeSelectable();
359
359
  }
360
360
  isGridRowGrouped() {
361
- return this.adaptable.isGridGroupingActive();
361
+ return this._adaptable.isGridGroupingActive();
362
362
  }
363
363
  isGridInPivotMode() {
364
364
  return this.getLayoutApi().isCurrentLayoutPivot();
365
365
  }
366
366
  isGroupRowNode(rowNode) {
367
- return this.adaptable.isGroupRowNode(rowNode);
367
+ return this._adaptable.isGroupRowNode(rowNode);
368
368
  }
369
369
  isSummaryNode(rowNode) {
370
370
  var _a;
371
371
  return !!((_a = rowNode === null || rowNode === void 0 ? void 0 : rowNode.data) === null || _a === void 0 ? void 0 : _a[ROW_SUMMARY_ROW_ID]);
372
372
  }
373
373
  isQuickFilterAvailable() {
374
- return this.adaptable.isQuickFilterAvailable();
374
+ return this._adaptable.isQuickFilterAvailable();
375
375
  }
376
376
  redrawGrid() {
377
- this.adaptable.redrawBody();
378
- this.adaptable.refreshHeader();
377
+ this._adaptable.redrawBody();
378
+ this._adaptable.refreshHeader();
379
379
  }
380
380
  getGridCellsForRawValue(columnId, rawValue) {
381
- const gridCells = this.adaptable.getGridCellsForColumn(columnId);
381
+ const gridCells = this._adaptable.getGridCellsForColumn(columnId);
382
382
  if (!gridCells) {
383
383
  return undefined;
384
384
  }
@@ -395,7 +395,7 @@ export class GridApiImpl extends ApiBase {
395
395
  return gridCells === null || gridCells === void 0 ? void 0 : gridCells.length;
396
396
  }
397
397
  getGridCellsForDisplayValue(columnId, displayValue) {
398
- const gridCells = this.adaptable.getGridCellsForColumn(columnId);
398
+ const gridCells = this._adaptable.getGridCellsForColumn(columnId);
399
399
  if (!gridCells) {
400
400
  return undefined;
401
401
  }
@@ -408,15 +408,15 @@ export class GridApiImpl extends ApiBase {
408
408
  return returnGridCells;
409
409
  }
410
410
  jumpToRow(primaryKeyValue) {
411
- const node = this.adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
412
- this.adaptable.jumpToRow(node);
411
+ const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
412
+ this._adaptable.jumpToRow(node);
413
413
  }
414
414
  jumpToColumn(columnId) {
415
- this.adaptable.jumpToColumn(columnId);
415
+ this._adaptable.jumpToColumn(columnId);
416
416
  }
417
417
  jumpToCell(primaryKeyValue, columnId) {
418
- const node = this.adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
419
- this.adaptable.jumpToCell(columnId, node);
418
+ const node = this._adaptable.getRowNodeForPrimaryKey(primaryKeyValue);
419
+ this._adaptable.jumpToCell(columnId, node);
420
420
  }
421
421
  highlightCell(cellHighlightInfo) {
422
422
  this.dispatchAction(SystemHighlightCellAdd(cellHighlightInfo));
@@ -457,8 +457,11 @@ export class GridApiImpl extends ApiBase {
457
457
  unHighlightAllRows() {
458
458
  this.dispatchAction(SystemHighlightRowDeleteAll());
459
459
  }
460
- refreshCells(rowNodes, columnIds) {
461
- this.adaptable.refreshCells(rowNodes, columnIds, true);
460
+ refreshCells(rowNodes, columnIds, suppressFlash = true) {
461
+ this._adaptable.refreshCells(rowNodes, columnIds, suppressFlash);
462
+ }
463
+ refreshAllCells(forceUpdate = false) {
464
+ this._adaptable.refreshAllCells(forceUpdate);
462
465
  }
463
466
  refreshGridCell(gridCell) {
464
467
  this.refreshCells([gridCell.rowNode], [gridCell.column.columnId]);
@@ -469,25 +472,25 @@ export class GridApiImpl extends ApiBase {
469
472
  });
470
473
  }
471
474
  refreshColumn(columnId) {
472
- this.adaptable.refreshCells(null, [columnId], true);
475
+ this._adaptable.refreshCells(null, [columnId], true);
473
476
  }
474
477
  refreshColumns(columnIds) {
475
- this.adaptable.refreshCells(null, columnIds, true);
478
+ this._adaptable.refreshCells(null, columnIds, true);
476
479
  }
477
480
  refreshRowByPrimaryKey(primaryKey) {
478
481
  const rowNode = this.getRowNodeForPrimaryKey(primaryKey);
479
482
  this.refreshRowNode(rowNode);
480
483
  }
481
484
  refreshRowNode(rowNode) {
482
- this.adaptable.redrawRow(rowNode);
485
+ this._adaptable.redrawRow(rowNode);
483
486
  }
484
487
  refreshRowNodes(rowNodes) {
485
- this.adaptable.redrawRows(rowNodes);
488
+ this._adaptable.redrawRows(rowNodes);
486
489
  }
487
490
  refreshGroupRowNodes() {
488
491
  // see https://www.ag-grid.com/javascript-data-grid/client-side-row-stages/#refreshing-the-client-side-model
489
- this.getAdaptableApi().agGridApi.refreshClientSideRowModel('group');
490
- this.adaptable.updateRowGroupsExpandedState();
492
+ this.getAgGridApi().refreshClientSideRowModel('group');
493
+ this._adaptable.updateRowGroupsExpandedState();
491
494
  }
492
495
  isCellEditable(gridCell) {
493
496
  if (!gridCell) {
@@ -505,7 +508,7 @@ export class GridApiImpl extends ApiBase {
505
508
  }
506
509
  const cellEditableFn = this.getEditOptions().isCellEditable;
507
510
  if (cellEditableFn) {
508
- const cellEditableContext = Object.assign({ gridCell }, this.getAdaptableApi().internalApi.buildBaseContext());
511
+ const cellEditableContext = Object.assign({ gridCell }, this.getAdaptableInternalApi().buildBaseContext());
509
512
  return cellEditableFn(cellEditableContext);
510
513
  }
511
514
  return true;
@@ -526,37 +529,37 @@ export class GridApiImpl extends ApiBase {
526
529
  return true;
527
530
  }
528
531
  getRowCount() {
529
- return this.adaptable.getRowCount();
532
+ return this._adaptable.getRowCount();
530
533
  }
531
534
  getVisibleRowCount() {
532
- return this.adaptable.getVisibleRowCount();
535
+ return this._adaptable.getVisibleRowCount();
533
536
  }
534
537
  getRowsInViewport() {
535
- return this.adaptable.getRowsInViewport();
538
+ return this._adaptable.getRowsInViewport();
536
539
  }
537
540
  getColumnCount() {
538
- return this.adaptable.getColumnCount();
541
+ return this._adaptable.getColumnCount();
539
542
  }
540
543
  getVisibleColumnCount() {
541
- return this.adaptable.getVisibleColumnCount();
544
+ return this._adaptable.getVisibleColumnCount();
542
545
  }
543
546
  selectAll() {
544
- this.adaptable.selectAll();
547
+ this._adaptable.selectAll();
545
548
  }
546
549
  deselectAll() {
547
- this.adaptable.deselectAll();
550
+ this._adaptable.deselectAll();
548
551
  }
549
552
  destroy() {
550
- this.adaptable.destroy();
553
+ this._adaptable.destroy();
551
554
  }
552
555
  getGridContainerElement() {
553
- return this.adaptable.getAgGridContainerElement();
556
+ return this._adaptable.getAgGridContainerElement();
554
557
  }
555
558
  openGridInfoSettingsPanel() {
556
559
  this.showModulePopup(ModuleConstants.GridInfoModuleId);
557
560
  }
558
561
  getAgGridRowModelType() {
559
- return this.adaptable.getAgGridRowModelType();
562
+ return this._adaptable.getAgGridRowModelType();
560
563
  }
561
564
  showTransposedView(transposeConfig = {}) {
562
565
  var _a, _b, _c, _d, _e;
@@ -565,7 +568,7 @@ export class GridApiImpl extends ApiBase {
565
568
  const visibleColumns = (_c = transposeConfig.visibleColumns) !== null && _c !== void 0 ? _c : false;
566
569
  const visibleRows = (_d = transposeConfig.visibleRows) !== null && _d !== void 0 ? _d : false;
567
570
  const autosize = (_e = transposeConfig.autosize) !== null && _e !== void 0 ? _e : true;
568
- this.getAdaptableApi().internalApi.showPopupWindow({
571
+ this.getAdaptableInternalApi().showPopupWindow({
569
572
  id: WINDOW_SHOW_TRANSPOSED_VIEW,
570
573
  factoryId: WINDOW_SHOW_TRANSPOSED_VIEW,
571
574
  title: 'Transposed View',
@@ -580,7 +583,7 @@ export class GridApiImpl extends ApiBase {
580
583
  });
581
584
  }
582
585
  getAllAgGridColumns() {
583
- return this.adaptable.getAllGridColumns();
586
+ return this._adaptable.getAllGridColumns();
584
587
  }
585
588
  updateAgGridColumnState(columnState) {
586
589
  const columnExists = this.getColumnApi().doesColumnExist(columnState.colId);
@@ -588,7 +591,7 @@ export class GridApiImpl extends ApiBase {
588
591
  this.logWarn(`Column with id ${columnState.colId} does not exist, could NOT update configuration`);
589
592
  return;
590
593
  }
591
- const agGridApi = this.adaptable.agGridAdapter.getAgGridApi();
594
+ const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
592
595
  agGridApi.applyColumnState({
593
596
  state: [columnState],
594
597
  });
@@ -601,18 +604,18 @@ export class GridApiImpl extends ApiBase {
601
604
  notExistingColumnIds.forEach((colId) => {
602
605
  this.logWarn(`Column with id ${colId} does not exist, could NOT update configuration`);
603
606
  });
604
- const agGridApi = this.adaptable.agGridAdapter.getAgGridApi();
607
+ const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
605
608
  agGridApi.applyColumnState({
606
609
  state: existingColumnStates,
607
610
  });
608
611
  }
609
612
  setAgGridColumnDefinitions(columnDefinitions) {
610
- const agGridApi = this.adaptable.agGridAdapter.getAgGridApi();
613
+ const agGridApi = this._adaptable.agGridAdapter.getAgGridApi();
611
614
  agGridApi.setGridOption('columnDefs', columnDefinitions);
612
- this.adaptable.updateColumnModelAndRefreshGrid({ skipColDefsRefresh: true });
615
+ this._adaptable.updateColumnModelAndRefreshGrid({ skipColDefsRefresh: true });
613
616
  }
614
617
  updateAgGridColumnDefinition(columnDefinitionToBeUpdated) {
615
- const currentColDefs = [...this.adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
618
+ const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
616
619
  const columnId = columnDefinitionToBeUpdated.colId;
617
620
  const doesColumnExist = this.getColumnApi().doesColumnExist(columnId);
618
621
  if (!doesColumnExist) {
@@ -621,20 +624,20 @@ export class GridApiImpl extends ApiBase {
621
624
  this.setAgGridColumnDefinitions(newColDefs);
622
625
  return;
623
626
  }
624
- const updatedColDefs = this.adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
627
+ const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
625
628
  return colDef.colId === columnId ? Object.assign(Object.assign({}, colDef), columnDefinitionToBeUpdated) : colDef;
626
629
  });
627
630
  this.setAgGridColumnDefinitions(updatedColDefs);
628
631
  }
629
632
  updateAgGridColumnDefinitions(columnDefinitionsToBeUpdated) {
630
- const currentColDefs = [...this.adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
631
- const updatedColDefs = this.adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
633
+ const currentColDefs = [...this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs()];
634
+ const updatedColDefs = this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
632
635
  const newColDef = newColumnDefinitions.find((c) => c.colId === colDef.colId);
633
636
  return newColDef ? Object.assign(Object.assign({}, colDef), newColDef) : colDef;
634
637
  });
635
638
  // find out new columns which are not in the current column definitions
636
639
  const currentColIds = [];
637
- this.adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
640
+ this._adaptable.agGridAdapter.traverseColDefs(currentColDefs, (colDef) => {
638
641
  currentColIds.push(colDef.colId);
639
642
  return colDef;
640
643
  });
@@ -650,8 +653,8 @@ export class GridApiImpl extends ApiBase {
650
653
  this.logWarn(`Column with id ${columnId} does not exist!`);
651
654
  return;
652
655
  }
653
- const currentColDefs = this.adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
654
- const updatedColDefs = this.adaptable.agGridAdapter
656
+ const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
657
+ const updatedColDefs = this._adaptable.agGridAdapter
655
658
  .traverseColDefs(currentColDefs, (colDef) => {
656
659
  return colDef.colId === columnId ? null : colDef;
657
660
  })
@@ -659,9 +662,9 @@ export class GridApiImpl extends ApiBase {
659
662
  this.setAgGridColumnDefinitions(updatedColDefs);
660
663
  }
661
664
  addAgGridColumnDefinition(newColumnDefinition) {
662
- const currentColDefs = this.adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
665
+ const currentColDefs = this._adaptable.agGridAdapter.getAgGridApi().getColumnDefs();
663
666
  // just in case check of there is not already an existing column with the same id and eliminate it
664
- const sanitizedColDefs = this.adaptable.agGridAdapter
667
+ const sanitizedColDefs = this._adaptable.agGridAdapter
665
668
  .traverseColDefs(currentColDefs, (colDef) => {
666
669
  return colDef.colId === newColumnDefinition.colId ? null : colDef;
667
670
  })
@@ -5,7 +5,7 @@ import { ApiBase } from './ApiBase';
5
5
  import { GridFilter } from '../../types';
6
6
  export declare class GridFilterApiImpl extends ApiBase implements GridFilterApi {
7
7
  internalApi: GridFilterInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  getCurrentGridFilter(): GridFilter | undefined;
10
10
  getCurrentGridFilterExpression(): string | undefined;
11
11
  setGridFilterExpression(filter: string): void;
@@ -4,9 +4,9 @@ import { GridFilterInternalApi } from '../Internal/GridFilterInternalApi';
4
4
  import { ApiBase } from './ApiBase';
5
5
  import * as ModuleConstants from '../../Utilities/Constants/ModuleConstants';
6
6
  export class GridFilterApiImpl extends ApiBase {
7
- constructor(adaptable) {
8
- super(adaptable);
9
- this.internalApi = new GridFilterInternalApi(adaptable);
7
+ constructor(_adaptable) {
8
+ super(_adaptable);
9
+ this.internalApi = new GridFilterInternalApi(_adaptable);
10
10
  }
11
11
  getCurrentGridFilter() {
12
12
  var _a;
@@ -24,7 +24,7 @@ export class GridFilterApiImpl extends ApiBase {
24
24
  }
25
25
  openUIEditorForGridFilter(expression) {
26
26
  const preparedQuery = expression !== null && expression !== void 0 ? expression : this.getCurrentGridFilterExpression();
27
- this.getAdaptableApi().internalApi.showPopupWindow({
27
+ this.getAdaptableInternalApi().showPopupWindow({
28
28
  id: WINDOW_GRID_FILTER_EDITOR,
29
29
  title: ModuleConstants.GridFilterFriendlyName,
30
30
  icon: 'filter-list',
@@ -9,7 +9,7 @@ import { LayoutInternalApi } from '../Internal/LayoutInternalApi';
9
9
  import { ExtendedLayoutInfo } from '../../PredefinedConfig/Common/ExtendedLayoutInfo';
10
10
  export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
11
11
  internalApi: LayoutInternalApi;
12
- constructor(adaptable: IAdaptable);
12
+ constructor(_adaptable: IAdaptable);
13
13
  isCurrentLayoutPivot(): boolean;
14
14
  getLayoutState(): LayoutState;
15
15
  shouldAutoSaveLayouts: () => boolean;
@@ -10,13 +10,13 @@ import { DEFAULT_LAYOUT } from '../../Utilities/Constants/GeneralConstants';
10
10
  import { PopupShowPrompt } from '../../Redux/ActionsReducers/PopupRedux';
11
11
  import { LayoutInternalApi } from '../Internal/LayoutInternalApi';
12
12
  export class LayoutApiImpl extends ApiBase {
13
- constructor(adaptable) {
14
- super(adaptable);
13
+ constructor(_adaptable) {
14
+ super(_adaptable);
15
15
  this.shouldAutoSaveLayouts = () => {
16
16
  var _a;
17
17
  return (_a = this.getLayoutOptions()) === null || _a === void 0 ? void 0 : _a.autoSaveLayouts;
18
18
  };
19
- this.internalApi = new LayoutInternalApi(adaptable);
19
+ this.internalApi = new LayoutInternalApi(_adaptable);
20
20
  }
21
21
  isCurrentLayoutPivot() {
22
22
  return this.getCurrentLayout().EnablePivot;
@@ -5,7 +5,7 @@ import { NamedQueryApi, NamedQueryValidationResult } from '../NamedQueryApi';
5
5
  import { ApiBase } from './ApiBase';
6
6
  export declare class NamedQueryApiImpl extends ApiBase implements NamedQueryApi {
7
7
  internalApi: NamedQueryInternalApi;
8
- constructor(adaptable: IAdaptable);
8
+ constructor(_adaptable: IAdaptable);
9
9
  addNamedQuery(namedQuery: NamedQuery): void;
10
10
  addNamedQueries(namedQueries: NamedQuery[]): void;
11
11
  getNamedQueryState(): NamedQueryState;
@@ -4,9 +4,9 @@ import { NamedQueryInternalApi } from '../Internal/NamedQueryInternalApi';
4
4
  import { ApiBase } from './ApiBase';
5
5
  import * as NamedQueryRedux from '../../Redux/ActionsReducers/NamedQueryRedux';
6
6
  export class NamedQueryApiImpl extends ApiBase {
7
- constructor(adaptable) {
8
- super(adaptable);
9
- this.internalApi = new NamedQueryInternalApi(adaptable);
7
+ constructor(_adaptable) {
8
+ super(_adaptable);
9
+ this.internalApi = new NamedQueryInternalApi(_adaptable);
10
10
  }
11
11
  addNamedQuery(namedQuery) {
12
12
  this.dispatchAction(NamedQueryRedux.NamedQueryAdd(namedQuery));
@@ -6,7 +6,7 @@ import { NoteInternalApi } from '../Internal/NoteInternalApi';
6
6
  import { CellAddress } from '../../types';
7
7
  export declare class NoteApiImpl extends ApiBase implements NoteApi {
8
8
  internalApi: NoteInternalApi;
9
- constructor(adaptable: IAdaptable);
9
+ constructor(_adaptable: IAdaptable);
10
10
  addNote(noteStr: string, primaryKeyValue: any, columnId: string): void;
11
11
  editNote(note: AdaptableNote): void;
12
12
  updateNoteText(noteStr: string, note: AdaptableNote): void;