@adaptabletools/adaptable 10.0.1 → 10.0.4-canary.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 (191) hide show
  1. package/base.css +68 -26
  2. package/index.css +80 -28
  3. package/package.json +1 -1
  4. package/publishTimestamp.d.ts +1 -1
  5. package/publishTimestamp.js +1 -1
  6. package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -2
  7. package/src/AdaptableOptions/FilterOptions.d.ts +14 -7
  8. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  9. package/src/AdaptableOptions/NotificationsOptions.d.ts +3 -1
  10. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +107 -5
  11. package/src/Api/AlertApi.d.ts +1 -1
  12. package/src/Api/CalculatedColumnApi.d.ts +15 -0
  13. package/src/Api/ColumnApi.d.ts +39 -0
  14. package/src/Api/ConfigApi.d.ts +8 -0
  15. package/src/Api/Events/AdaptableReady.d.ts +2 -6
  16. package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
  17. package/src/Api/Events/AlertFired.d.ts +2 -1
  18. package/src/Api/Events/BaseEventInfo.d.ts +10 -0
  19. package/src/{Utilities/Interface/ProgressIndicator.js → Api/Events/BaseEventInfo.js} +0 -0
  20. package/src/Api/Events/CellChanged.d.ts +2 -1
  21. package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
  22. package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
  23. package/src/Api/Events/DashboardChanged.d.ts +2 -1
  24. package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
  25. package/src/Api/Events/GridDataChanged.d.ts +2 -1
  26. package/src/Api/Events/LayoutChanged.d.ts +2 -1
  27. package/src/Api/Events/LiveDataChanged.d.ts +2 -1
  28. package/src/Api/Events/SearchChanged.d.ts +2 -1
  29. package/src/Api/Events/SelectionChanged.d.ts +2 -1
  30. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
  31. package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
  32. package/src/Api/Events/ThemeChanged.d.ts +2 -1
  33. package/src/Api/GridApi.d.ts +34 -8
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  35. package/src/Api/Implementation/AlertApiImpl.js +22 -15
  36. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
  37. package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
  38. package/src/Api/Implementation/ColumnApiImpl.d.ts +8 -0
  39. package/src/Api/Implementation/ColumnApiImpl.js +69 -36
  40. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  41. package/src/Api/Implementation/ConfigApiImpl.js +28 -17
  42. package/src/Api/Implementation/DashboardApiImpl.js +2 -1
  43. package/src/Api/Implementation/ExportApiImpl.js +4 -4
  44. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
  45. package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -3
  46. package/src/Api/Implementation/GridApiImpl.d.ts +9 -0
  47. package/src/Api/Implementation/GridApiImpl.js +28 -10
  48. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -1
  49. package/src/Api/Implementation/InternalApiImpl.js +20 -4
  50. package/src/Api/Implementation/LayoutApiImpl.js +4 -3
  51. package/src/Api/Implementation/ScopeApiImpl.js +11 -11
  52. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
  53. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  54. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  55. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +12 -8
  56. package/src/Api/Implementation/UserInterfaceApiImpl.js +69 -87
  57. package/src/Api/InternalApi.d.ts +3 -1
  58. package/src/Api/UserInterfaceApi.d.ts +16 -6
  59. package/src/PredefinedConfig/AlertState.d.ts +4 -0
  60. package/src/PredefinedConfig/CalculatedColumnState.d.ts +4 -37
  61. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
  62. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +33 -33
  63. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
  64. package/src/PredefinedConfig/Common/AdaptablePredicate.js +19 -18
  65. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +3 -2
  66. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
  67. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
  68. package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -0
  69. package/src/PredefinedConfig/FilterState.d.ts +1 -1
  70. package/src/PredefinedConfig/FreeTextColumnState.d.ts +10 -0
  71. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
  72. package/src/PredefinedConfig/Selection/GridRow.d.ts +12 -4
  73. package/src/PredefinedConfig/SystemState.d.ts +4 -1
  74. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  75. package/src/Redux/Store/AdaptableStore.js +7 -3
  76. package/src/Strategy/AdaptableModuleBase.js +8 -8
  77. package/src/Strategy/AlertModule.js +12 -11
  78. package/src/Strategy/BulkUpdateModule.js +5 -5
  79. package/src/Strategy/CalculatedColumnModule.js +1 -1
  80. package/src/Strategy/CellSummaryModule.js +3 -3
  81. package/src/Strategy/ConditionalStyleModule.js +3 -3
  82. package/src/Strategy/CustomSortModule.js +2 -2
  83. package/src/Strategy/ExportModule.d.ts +0 -2
  84. package/src/Strategy/ExportModule.js +59 -62
  85. package/src/Strategy/FilterModule.js +4 -4
  86. package/src/Strategy/FormatColumnModule.js +5 -5
  87. package/src/Strategy/FreeTextColumnModule.js +1 -1
  88. package/src/Strategy/LayoutModule.js +3 -3
  89. package/src/Strategy/PlusMinusModule.js +8 -9
  90. package/src/Strategy/SmartEditModule.js +6 -6
  91. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -0
  92. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
  93. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  94. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
  95. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  96. package/src/Utilities/Helpers/DateHelper.d.ts +2 -2
  97. package/src/Utilities/Helpers/DateHelper.js +30 -20
  98. package/src/Utilities/Helpers/PreviewHelper.js +2 -2
  99. package/src/Utilities/ObjectFactory.d.ts +1 -1
  100. package/src/Utilities/ObjectFactory.js +14 -2
  101. package/src/Utilities/Services/DataService.js +5 -5
  102. package/src/Utilities/Services/ReportService.js +13 -12
  103. package/src/Utilities/Services/ValidationService.js +4 -5
  104. package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
  105. package/src/Utilities/runIfNotResolvedIn.js +23 -0
  106. package/src/View/AdaptableView.js +1 -1
  107. package/src/View/Alert/AlertPopup.js +1 -1
  108. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +19 -5
  109. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  110. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
  111. package/src/View/BulkUpdate/BulkUpdatePopup.js +6 -4
  112. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
  113. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
  114. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
  115. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  116. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  117. package/src/View/Components/ColumnSelector/index.js +2 -2
  118. package/src/View/Components/FilterForm/FilterForm.d.ts +3 -51
  119. package/src/View/Components/FilterForm/FilterForm.js +53 -32
  120. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +3 -0
  121. package/src/View/Components/FilterForm/ListBoxFilterForm.js +14 -5
  122. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
  123. package/src/View/Components/FilterForm/QuickFilterForm.js +72 -31
  124. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
  125. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
  126. package/src/View/Components/NewScopeComponent.js +1 -1
  127. package/src/View/Components/Popups/AdaptablePopup.d.ts +1 -1
  128. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  129. package/src/View/Components/PreviewResultsPanel.js +1 -1
  130. package/src/View/Components/RangesComponent.js +2 -2
  131. package/src/View/Components/Selectors/ColumnSelector.js +5 -5
  132. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +10 -2
  133. package/src/View/Components/Selectors/ColumnValueSelector.js +47 -15
  134. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +7 -7
  135. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  136. package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
  137. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  138. package/src/View/CustomSort/CustomSortEntityRow.js +2 -2
  139. package/src/View/CustomSort/CustomSortPopup.js +1 -1
  140. package/src/View/CustomSort/CustomSortSummary.js +3 -3
  141. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -3
  142. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
  143. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  144. package/src/View/Dashboard/Dashboard.js +2 -3
  145. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -5
  146. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +4 -1
  147. package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
  148. package/src/View/Filter/FilterSummary.js +2 -2
  149. package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
  150. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  151. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  152. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +4 -2
  153. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +5 -3
  154. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
  155. package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
  156. package/src/View/GridInfo/GridInfoPopup.js +4 -1
  157. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
  158. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
  159. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
  160. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
  161. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
  162. package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
  163. package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
  164. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  165. package/src/View/Query/QueryViewPanel.js +2 -2
  166. package/src/View/UIHelper.d.ts +2 -0
  167. package/src/View/UIHelper.js +10 -1
  168. package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
  169. package/src/agGrid/ActionColumnRenderer.js +21 -4
  170. package/src/agGrid/Adaptable.d.ts +20 -4
  171. package/src/agGrid/Adaptable.js +249 -102
  172. package/src/agGrid/agGridHelper.js +33 -32
  173. package/src/agGrid/agGridMenuHelper.js +2 -2
  174. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
  175. package/src/components/Dashboard/Dashboard.js +1 -1
  176. package/src/components/DropdownButton/index.js +1 -1
  177. package/src/components/ExpressionEditor/index.js +7 -7
  178. package/src/components/Loader/Loader.d.ts +7 -0
  179. package/src/components/Loader/Loader.js +13 -0
  180. package/src/components/Loader/index.d.ts +2 -0
  181. package/src/components/Loader/index.js +7 -0
  182. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -0
  183. package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
  184. package/src/metamodel/adaptable.metamodel.d.ts +125 -16
  185. package/src/metamodel/adaptable.metamodel.js +403 -106
  186. package/src/types.d.ts +4 -3
  187. package/version.d.ts +1 -1
  188. package/version.js +1 -1
  189. package/src/Utilities/Interface/ProgressIndicator.d.ts +0 -4
  190. package/src/View/Export/ProgressIndicator.d.ts +0 -6
  191. package/src/View/Export/ProgressIndicator.js +0 -25
@@ -22,7 +22,8 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
22
  }
23
23
  if (this.api.internalApi.getAdaptableOptions().notificationsOptions
24
24
  .dataChangeDetectionPolicy === 'formattedValue') {
25
- const { oldValue, newValue, columnId } = dataChangedInfo;
25
+ const { oldValue, newValue } = dataChangedInfo;
26
+ const columnId = dataChangedInfo.column.columnId;
26
27
  const oldFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, oldValue);
27
28
  const newFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, newValue);
28
29
  if (oldFormattedValue === newFormattedValue) {
@@ -50,7 +51,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
50
51
  else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
51
52
  return this.api.scopeApi
52
53
  .getColumnsForScope(alertDefinition.Scope)
53
- .map((adaptableColumn) => adaptableColumn.ColumnId);
54
+ .map((adaptableColumn) => adaptableColumn.columnId);
54
55
  }
55
56
  return [];
56
57
  }
@@ -192,7 +193,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
192
193
  }
193
194
  addColumnMenuItems(column) {
194
195
  if (column && this.isModuleEditable()) {
195
- if (!this.api.columnApi.isCalculatedColumn(column.ColumnId)) {
196
+ if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
196
197
  const flashingAlertDefinitions = this.api.alertApi.getFlashingAlertDefinitions();
197
198
  const flashingAlertForCurrentColumn = flashingAlertDefinitions.find((flashingAlertDefinition) => {
198
199
  return this.api.scopeApi.isColumnInScope(column, flashingAlertDefinition.Scope);
@@ -205,7 +206,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
205
206
  return [
206
207
  this.createColumnMenuItemReduxAction('Add Flashing Alert', this.moduleInfo.Glyph, AlertRedux.FlashingAlertDefinitionAdd({
207
208
  Scope: {
208
- ColumnIds: [column.ColumnId],
209
+ ColumnIds: [column.columnId],
209
210
  },
210
211
  Rule: {
211
212
  Predicate: { PredicateId: 'Any' },
@@ -229,7 +230,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
229
230
  }
230
231
  }
231
232
  const flashingAlertForRow = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue);
232
- const flashingAlertForCell = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.ColumnId);
233
+ const flashingAlertForCell = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
233
234
  if (flashingAlertForRow && flashingAlertForRow.flashTarget === 'row') {
234
235
  items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingAlertDelete(flashingAlertForRow)));
235
236
  }
@@ -272,12 +273,12 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
272
273
  showAlertForDefinitions(dataChangedInfo, alertDefinitions = []) {
273
274
  alertDefinitions.forEach((alertDefinition) => {
274
275
  // might be better to do a single alert with all the messages?
275
- this.api.alertApi.showAlert(this.api.columnApi.getFriendlyNameFromColumnId(dataChangedInfo.columnId), this.api.alertApi.getAlertDescription(alertDefinition), alertDefinition, dataChangedInfo);
276
+ this.api.alertApi.showAlert(dataChangedInfo.column.friendlyName, this.api.alertApi.getAlertDescription(alertDefinition, dataChangedInfo), alertDefinition, dataChangedInfo);
276
277
  });
277
278
  }
278
279
  showFlashingAlertsForDefinitions(dataChangedInfo, flashingAlertDefinitions = []) {
279
- const allColumnIds = this.api.columnApi.getColumns().map((c) => c.ColumnId);
280
- const columnDataType = this.api.columnApi.getColumnDataTypeFromColumnId(dataChangedInfo.columnId);
280
+ const allColumnIds = this.api.columnApi.getColumns().map((c) => c.columnId);
281
+ const columnDataType = dataChangedInfo.column.dataType;
281
282
  const numeric = columnDataType === 'Number';
282
283
  const isComparableType = numeric || columnDataType === 'Date';
283
284
  let up = false;
@@ -292,7 +293,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
292
293
  }
293
294
  flashingAlertDefinitions.forEach((flashingAlertDefinition) => {
294
295
  const flashTarget = this.api.alertApi.getFlashingAlertFlashTarget(flashingAlertDefinition);
295
- const flashColumnIds = { [dataChangedInfo.columnId]: true };
296
+ const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
296
297
  if (flashTarget === 'row') {
297
298
  allColumnIds.forEach((colId) => {
298
299
  flashColumnIds[colId] = true;
@@ -319,7 +320,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
319
320
  }
320
321
  getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
321
322
  let relatedAlertDefinitions = definitions
322
- .filter((v) => this.api.scopeApi.isColumnInScope(this.api.columnApi.getColumnFromId(dataChangedEvent.columnId), v.Scope))
323
+ .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
323
324
  .filter((alertDefinition) => !AdaptableQuery_1.isReactiveQuery(alertDefinition.Rule));
324
325
  let triggeredAlerts = [];
325
326
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
@@ -353,7 +354,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
353
354
  // TODO send real display value
354
355
  displayValue: null,
355
356
  node: dataChangedEvent.rowNode,
356
- column: this.api.columnApi.getColumnFromId(dataChangedEvent.columnId),
357
+ column: dataChangedEvent.column,
357
358
  }, defaultNoPredicateReturn);
358
359
  }
359
360
  getTeamSharingAction() {
@@ -20,7 +20,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
20
20
  let menuItemShowPopup = undefined;
21
21
  if (!menuContext.isRowGroupColumn && this.isModuleEditable()) {
22
22
  if (menuContext.adaptableColumn &&
23
- !menuContext.adaptableColumn.ReadOnly &&
23
+ !menuContext.adaptableColumn.readOnly &&
24
24
  menuContext.isSelectedCell &&
25
25
  menuContext.isSingleSelectedColumn &&
26
26
  this.api.gridApi.areCellsEditable(menuContext.selectedCellInfo.gridCells)) {
@@ -70,7 +70,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
70
70
  };
71
71
  }
72
72
  let selectedColumn = selectedCellInfo.columns[0];
73
- if (selectedColumn && selectedColumn.ReadOnly) {
73
+ if (selectedColumn && selectedColumn.readOnly) {
74
74
  return {
75
75
  IsValid: false,
76
76
  Alert: {
@@ -102,9 +102,9 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
102
102
  let columnId = '';
103
103
  if (!this.api.internalApi.isGridInPivotMode()) {
104
104
  if (selectedCellInfo != null && selectedCellInfo.columns.length > 0) {
105
- columnId = selectedCellInfo.columns[0].ColumnId;
105
+ columnId = selectedCellInfo.columns[0].columnId;
106
106
  let typedBulkUpdateValue;
107
- switch (selectedCellInfo.columns[0].DataType) {
107
+ switch (selectedCellInfo.columns[0].dataType) {
108
108
  case Enums_1.DataType.Number:
109
109
  typedBulkUpdateValue = Number(bulkUpdateValue);
110
110
  break;
@@ -119,7 +119,7 @@ class BulkUpdateModule extends AdaptableModuleBase_1.AdaptableModuleBase {
119
119
  const dataChangedInfo = this.api.internalApi.buildDataChangedInfo({
120
120
  oldValue: selectedCell.rawValue,
121
121
  newValue: typedBulkUpdateValue,
122
- columnId: selectedCell.columnId,
122
+ column: selectedCell.column,
123
123
  primaryKeyValue: selectedCell.primaryKeyValue,
124
124
  rowNode: selectedCell.rowNode,
125
125
  trigger: 'edit',
@@ -40,7 +40,7 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
40
40
  if (column && this.isModuleEditable()) {
41
41
  if (this.api.calculatedColumnApi
42
42
  .getAllCalculatedColumn()
43
- .find((cc) => cc.ColumnId == column.ColumnId)) {
43
+ .find((cc) => cc.ColumnId == column.columnId)) {
44
44
  let popupParam = {
45
45
  column: column,
46
46
  action: 'Edit',
@@ -38,14 +38,14 @@ class CellSummaryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
38
  let allValues = [];
39
39
  let numericColumns = [];
40
40
  selectedCellInfo.columns.map((c) => {
41
- if (c && c.DataType == Enums_1.DataType.Number) {
42
- numericColumns.push(c.ColumnId);
41
+ if (c && c.dataType == Enums_1.DataType.Number) {
42
+ numericColumns.push(c.columnId);
43
43
  }
44
44
  });
45
45
  selectedCellInfo.gridCells.forEach((selectedCell) => {
46
46
  let value = selectedCell.rawValue;
47
47
  allValues.push(value);
48
- if (ArrayExtensions_1.ArrayExtensions.ContainsItem(numericColumns, selectedCell.columnId)) {
48
+ if (ArrayExtensions_1.ArrayExtensions.ContainsItem(numericColumns, selectedCell.column.columnId)) {
49
49
  let valueAsNumber = Number(value);
50
50
  // possible that its not a number despite it being a numeric column
51
51
  if (!isNaN(Number(valueAsNumber))) {
@@ -22,7 +22,7 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
22
  else if (this.api.scopeApi.scopeHasColumns(conditionalStyle.Scope)) {
23
23
  return this.api.scopeApi
24
24
  .getColumnsForScope(conditionalStyle.Scope)
25
- .map((adaptableColumn) => adaptableColumn.ColumnId);
25
+ .map((adaptableColumn) => adaptableColumn.columnId);
26
26
  }
27
27
  return [];
28
28
  }
@@ -73,7 +73,7 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
73
73
  this.api.conditionalStyleApi.editConditionalStyles(oldConditionalStyles);
74
74
  }
75
75
  addColumnMenuItems(column) {
76
- if (column && this.isModuleEditable() && !column.IsSparkline) {
76
+ if (column && this.isModuleEditable() && !column.isSparkline) {
77
77
  let conditionalStyles = this.api.conditionalStyleApi.getConditionalStylesForColumn(column);
78
78
  let firstConditionalStyle = ArrayExtensions_1.default.IsNotNullOrEmpty(conditionalStyles)
79
79
  ? conditionalStyles.find((cs) => this.api.scopeApi.isColumnInScopeColumns(column, cs.Scope))
@@ -160,7 +160,7 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
160
160
  value: value,
161
161
  oldValue: null,
162
162
  displayValue: column
163
- ? this.api.gridApi.getDisplayValueFromRowNode(node, column.ColumnId)
163
+ ? this.api.gridApi.getDisplayValueFromRowNode(node, column.columnId)
164
164
  : value,
165
165
  node: node,
166
166
  column: column,
@@ -19,10 +19,10 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
19
  return false;
20
20
  }
21
21
  addColumnMenuItems(column) {
22
- if (column && this.isModuleEditable() && column.Sortable) {
22
+ if (column && this.isModuleEditable() && column.sortable) {
23
23
  let customSort = this.api.customSortApi
24
24
  .getAllCustomSort()
25
- .find((x) => x.ColumnId == column.ColumnId);
25
+ .find((x) => x.ColumnId == column.columnId);
26
26
  let label = customSort ? 'Edit ' : 'Create ';
27
27
  // dont show a menu item if there is a custom sort that uses a comparer function
28
28
  const columnSortComparer = this.api.internalApi.getCustomSortComparer(column);
@@ -24,6 +24,4 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
24
24
  getTeamSharingAction(): TeamSharingImportInfo<Report>;
25
25
  private isEmptyReportData;
26
26
  private showEmptyExportWarning;
27
- private showExportIndicator;
28
- private hideExportIndicator;
29
27
  }
@@ -14,7 +14,6 @@ const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
14
14
  const StringExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/StringExtensions"));
15
15
  const PopupRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PopupRedux"));
16
16
  const ObjectFactory_1 = require("../Utilities/ObjectFactory");
17
- const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
18
17
  class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
18
  constructor(api) {
20
19
  super(ModuleConstants.ExportModuleId, 'Export', 'export-data', 'ExportPopup', 'Export data from the Grid to numerous locations in numerous formatso', api);
@@ -27,7 +26,7 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
27
26
  this.api.scopeApi.scopeHasColumns(report.Scope)) {
28
27
  return this.api.scopeApi
29
28
  .getColumnsForScope(report.Scope)
30
- .map((adaptableColumn) => adaptableColumn.ColumnId);
29
+ .map((adaptableColumn) => adaptableColumn.columnId);
31
30
  }
32
31
  return [];
33
32
  }
@@ -53,68 +52,72 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
53
52
  this.api.exportApi.editReports(reportsToEdit);
54
53
  }
55
54
  addContextMenuItems(menuContext) {
56
- let menuItemClickFunction = undefined;
57
- if (!menuContext.isRowGroupColumn && this.isModuleAvailable() && menuContext.selectedCellInfo) {
58
- if (ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.columns) &&
59
- ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.gridCells)) {
60
- let selectedCellReport = this.api.exportApi.getReportByName(GeneralConstants_1.SELECTED_CELLS_REPORT);
61
- let clickFunction = () => {
62
- this.export(selectedCellReport, Enums_1.ExportDestination.Excel);
63
- };
64
- menuItemClickFunction = this.createColumnMenuItemClickFunction('Export Selected Cells', this.moduleInfo.Glyph, clickFunction);
65
- }
55
+ const canExport = !menuContext.isRowGroupColumn &&
56
+ this.isModuleAvailable() &&
57
+ menuContext.selectedCellInfo &&
58
+ ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.columns) &&
59
+ ArrayExtensions_1.default.IsNotNullOrEmpty(menuContext.selectedCellInfo.gridCells);
60
+ if (!canExport) {
61
+ return;
62
+ }
63
+ const selectedCellReport = this.api.exportApi.getReportByName(GeneralConstants_1.SELECTED_CELLS_REPORT);
64
+ const menuItems = [];
65
+ for (const destination of this.api.exportApi.getAvailableExportDestinations()) {
66
+ menuItems.push(this.createColumnMenuItemClickFunction(destination, this.moduleInfo.Glyph, () => this.export(selectedCellReport, destination)));
67
+ }
68
+ for (const customDestination of this.api.exportApi.getAllCustomDestination()) {
69
+ menuItems.push(this.createColumnMenuItemClickFunction(customDestination.name, this.moduleInfo.Glyph, () => this.export(selectedCellReport, customDestination.name)));
66
70
  }
67
- return [menuItemClickFunction];
71
+ return [
72
+ {
73
+ label: 'Export Selected Cells',
74
+ isVisible: true,
75
+ icon: this.moduleInfo.Glyph,
76
+ subItems: menuItems,
77
+ },
78
+ ];
68
79
  }
69
80
  export(report, exportDestination) {
70
- this.showExportIndicator(`${report.Name} Export in progress...`);
71
- // setTimeout required to give the export indicator a head-start to render
72
- setTimeout(() => {
81
+ this.api.internalApi.executeWithProgressIndicator(`${report.Name} Export in progress...`, () => {
73
82
  var _a;
74
- try {
75
- if (this.isCustomDestination(exportDestination)) {
76
- const customDestination = (_a = this.api.internalApi
77
- .getAdaptableOptions()
78
- .exportOptions.customDestinations) === null || _a === void 0 ? void 0 : _a.find((cd) => cd.name == exportDestination);
79
- if (customDestination === null || customDestination === void 0 ? void 0 : customDestination.form) {
80
- this.api.internalApi.dispatchReduxAction(SystemRedux.SystemExportCustomDestinationPopupShow({
81
- ReportName: report.Name,
82
- ExportDestination: customDestination,
83
- }));
84
- }
85
- else if (customDestination) {
86
- customDestination.onExport(report, this.api.internalApi.getReportService().getReportData(report));
87
- }
83
+ if (this.isCustomDestination(exportDestination)) {
84
+ const customDestination = (_a = this.api.internalApi
85
+ .getAdaptableOptions()
86
+ .exportOptions.customDestinations) === null || _a === void 0 ? void 0 : _a.find((cd) => cd.name == exportDestination);
87
+ if (customDestination === null || customDestination === void 0 ? void 0 : customDestination.form) {
88
+ this.api.internalApi.dispatchReduxAction(SystemRedux.SystemExportCustomDestinationPopupShow({
89
+ ReportName: report.Name,
90
+ ExportDestination: customDestination,
91
+ }));
88
92
  }
89
- else {
90
- switch (exportDestination) {
91
- case Enums_1.ExportDestination.Excel:
92
- if (report.Name === GeneralConstants_1.VISUAL_DATA_REPORT) {
93
- // WYSIWYG is fully delegated to the ag-grid excel export
94
- this.api.exportApi.exportVisualDataToExcel();
95
- }
96
- else {
97
- this.convertReportToExcel(report);
98
- }
99
- break;
100
- case Enums_1.ExportDestination.Clipboard:
101
- this.copyToClipboard(report);
102
- break;
103
- case Enums_1.ExportDestination.CSV:
104
- this.convertReportToCsv(report);
105
- break;
106
- case Enums_1.ExportDestination.JSON:
107
- this.convertReportToJSON(report);
108
- break;
109
- }
93
+ else if (customDestination) {
94
+ customDestination.onExport(report, this.api.internalApi.getReportService().getReportData(report));
110
95
  }
111
- this.hideExportIndicator();
112
96
  }
113
- catch (error) {
114
- this.hideExportIndicator();
115
- throw error;
97
+ else {
98
+ switch (exportDestination) {
99
+ case Enums_1.ExportDestination.Excel:
100
+ if (report.Name === GeneralConstants_1.VISUAL_DATA_REPORT) {
101
+ // WYSIWYG is fully delegated to the ag-grid excel export
102
+ this.api.exportApi.exportVisualDataToExcel();
103
+ }
104
+ else {
105
+ this.convertReportToExcel(report);
106
+ }
107
+ break;
108
+ case Enums_1.ExportDestination.Clipboard:
109
+ this.copyToClipboard(report);
110
+ break;
111
+ case Enums_1.ExportDestination.CSV:
112
+ this.convertReportToCsv(report);
113
+ break;
114
+ case Enums_1.ExportDestination.JSON:
115
+ this.convertReportToJSON(report);
116
+ break;
117
+ }
116
118
  }
117
- }, 16);
119
+ this.api.internalApi.hideProgressIndicator();
120
+ });
118
121
  }
119
122
  isCustomDestination(exportDestination) {
120
123
  if (Object.values(Enums_1.ExportDestination).some((val) => val === exportDestination)) {
@@ -183,11 +186,5 @@ class ExportModule extends AdaptableModuleBase_1.AdaptableModuleBase {
183
186
  alertDefinition: ObjectFactory_1.ObjectFactory.CreateInternalAlertDefinitionForMessages('Error'),
184
187
  }));
185
188
  }
186
- showExportIndicator(label) {
187
- this.api.internalApi.dispatchReduxAction(SystemRedux_1.SystemProgressIndicatorShow(label));
188
- }
189
- hideExportIndicator() {
190
- this.api.internalApi.dispatchReduxAction(SystemRedux_1.SystemProgressIndicatorHide());
191
- }
192
189
  }
193
190
  exports.ExportModule = ExportModule;
@@ -32,7 +32,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
32
32
  let menuItemClickFunction = undefined;
33
33
  if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
34
34
  if (menuContext.adaptableColumn &&
35
- menuContext.adaptableColumn.Filterable &&
35
+ menuContext.adaptableColumn.filterable &&
36
36
  menuContext.isSingleSelectedColumn &&
37
37
  menuContext.gridCell != null) {
38
38
  let isMultiple = menuContext.selectedCellInfo.gridCells.length > 1;
@@ -42,7 +42,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
42
42
  })
43
43
  : [menuContext.gridCell.primaryKeyValue];
44
44
  let clickFunction = () => {
45
- this.api.filterApi.createColumnFilterForCell(menuContext.adaptableColumn.ColumnId, pkValues);
45
+ this.api.filterApi.createColumnFilterForCell(menuContext.adaptableColumn.columnId, pkValues);
46
46
  };
47
47
  menuItemClickFunction = this.createColumnMenuItemClickFunction(isMultiple ? 'Filter on Cell Values' : 'Filter on Cell Value', this.moduleInfo.Glyph, clickFunction);
48
48
  }
@@ -53,14 +53,14 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
53
53
  let baseMenuItems = [];
54
54
  if (column && this.api.gridApi.isQuickFilterAvailable()) {
55
55
  const isFilterVisible = this.api.filterApi.isQuickFilterVisible();
56
- if (this.isModuleEditable() && this.api.columnApi.usesAdaptableQuickFilter(column.ColumnId)) {
56
+ if (this.isModuleEditable() && this.api.columnApi.usesAdaptableQuickFilter(column.columnId)) {
57
57
  baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Quick Filter Bar' : 'Show Quick Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible ? FilterRedux.QuickFilterBarHide() : FilterRedux.QuickFilterBarShow()));
58
58
  }
59
59
  }
60
60
  if (column && this.canCreateColumnMenuItem(column, 'ReadOnly', 'filter')) {
61
61
  let existingColumnFilter = this.api.filterApi
62
62
  .getAllColumnFilter()
63
- .find((x) => x.ColumnId == column.ColumnId);
63
+ .find((x) => x.ColumnId == column.columnId);
64
64
  if (existingColumnFilter) {
65
65
  baseMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', this.moduleInfo.Glyph, FilterRedux.ColumnFilterClear(existingColumnFilter)));
66
66
  }
@@ -18,7 +18,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
18
18
  if (this.api.scopeApi.scopeHasColumns(formatColumn.Scope)) {
19
19
  return this.api.scopeApi
20
20
  .getColumnsForScope(formatColumn.Scope)
21
- .map((adaptableColumn) => adaptableColumn.ColumnId);
21
+ .map((adaptableColumn) => adaptableColumn.columnId);
22
22
  }
23
23
  return [];
24
24
  }
@@ -148,7 +148,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
148
148
  addColumnMenuItems(column) {
149
149
  var _a;
150
150
  let returnColumnMenuItems = [];
151
- if (column && this.isModuleEditable() && !column.IsSparkline) {
151
+ if (column && this.isModuleEditable() && !column.isSparkline) {
152
152
  // not fullproof as might be an All but its generally pretty good
153
153
  let formatColumn = this.api.formatColumnApi.getFormatColumnForColumn(column);
154
154
  let formatExists = formatColumn
@@ -165,8 +165,8 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
165
165
  value: formatColumn,
166
166
  };
167
167
  returnColumnMenuItems.push(this.createColumnMenuItemShowPopup(label + 'Format Column', this.moduleInfo.Popup, this.moduleInfo.Glyph, popupParam));
168
- if (column.DataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.ColumnId)) {
169
- let formatColumn = this.api.formatColumnApi.getFormatColumnForColumnId(column.ColumnId);
168
+ if (column.dataType == 'Boolean' && !this.api.columnApi.isFreeTextColumn(column.columnId)) {
169
+ let formatColumn = this.api.formatColumnApi.getFormatColumnForColumnId(column.columnId);
170
170
  let hasCheckBox = formatColumn && ((_a = formatColumn.ColumnStyle) === null || _a === void 0 ? void 0 : _a.CheckBoxStyle);
171
171
  if (hasCheckBox) {
172
172
  returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Remove Checkbox', 'check-box-outline', () => {
@@ -188,7 +188,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
188
188
  returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Show as Checkbox', 'check-box', () => {
189
189
  let newFormatColumn = {
190
190
  Scope: {
191
- ColumnIds: [column.ColumnId],
191
+ ColumnIds: [column.columnId],
192
192
  },
193
193
  ColumnStyle: {
194
194
  CheckBoxStyle: true,
@@ -24,7 +24,7 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
24
  if (column && this.isModuleEditable()) {
25
25
  if (this.api.freeTextColumnApi
26
26
  .getAllFreeTextColumn()
27
- .find((ftc) => ftc.ColumnId == column.ColumnId)) {
27
+ .find((ftc) => ftc.ColumnId == column.columnId)) {
28
28
  let popupParam = {
29
29
  column: column,
30
30
  action: 'Edit',
@@ -42,15 +42,15 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
42
42
  action: 'Edit',
43
43
  source: 'ColumnMenu',
44
44
  }));
45
- if (column && column.Hideable) {
45
+ if (column && column.hideable) {
46
46
  returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Hide Column', 'hide-column', () => {
47
- this.api.columnApi.hideColumn(column.ColumnId);
47
+ this.api.columnApi.hideColumn(column.columnId);
48
48
  }));
49
49
  }
50
50
  let selectMenuItems = [];
51
51
  if (column) {
52
52
  selectMenuItems.push(this.createColumnMenuItemClickFunction('Column', 'column-chooser', () => {
53
- this.api.columnApi.selectColumn(column.ColumnId);
53
+ this.api.columnApi.selectColumn(column.columnId);
54
54
  }));
55
55
  }
56
56
  selectMenuItems.push(this.createColumnMenuItemClickFunction('Whole Grid', this.moduleInfo.Glyph, () => {
@@ -22,7 +22,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
22
  if (this.api.scopeApi.scopeHasColumns(plusMinusNudge.Scope)) {
23
23
  return this.api.scopeApi
24
24
  .getColumnsForScope(plusMinusNudge.Scope)
25
- .map((adaptableColumn) => adaptableColumn.ColumnId);
25
+ .map((adaptableColumn) => adaptableColumn.columnId);
26
26
  }
27
27
  return [];
28
28
  }
@@ -52,7 +52,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
52
52
  this.shouldHandleKeyDown = ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(plusMinusNudges);
53
53
  }
54
54
  addColumnMenuItems(column) {
55
- if (column && this.isModuleEditable() && column.DataType == 'Number') {
55
+ if (column && this.isModuleEditable() && column.dataType == 'Number') {
56
56
  let popupParam = {
57
57
  column: column,
58
58
  action: 'New',
@@ -86,15 +86,14 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
86
86
  let failedPreventEdits = [];
87
87
  let side = direction == 'up' ? 1 : -1;
88
88
  cellsToUpdate.forEach((gridCell) => {
89
- let selectedColumn = this.api.columnApi.getColumnFromId(gridCell.columnId);
90
- if (selectedColumn &&
91
- selectedColumn.DataType == Enums_1.DataType.Number &&
92
- !selectedColumn.ReadOnly) {
89
+ if (gridCell.column &&
90
+ gridCell.column.dataType == Enums_1.DataType.Number &&
91
+ !gridCell.column.readOnly) {
93
92
  let foundRule;
94
93
  let replacementGridCell;
95
94
  plusMinusNudges.forEach((pmr) => {
96
95
  if (!foundRule) {
97
- if (this.api.scopeApi.isColumnInScope(selectedColumn, pmr.Scope)) {
96
+ if (this.api.scopeApi.isColumnInScope(gridCell.column, pmr.Scope)) {
98
97
  if (this.api.gridApi.areCellsEditable([gridCell])) {
99
98
  //for aggrid as we are getting strings sometimes
100
99
  if (typeof gridCell.rawValue != 'number') {
@@ -109,7 +108,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
109
108
  // computedValue= parseFloat(computedValue.toFixed(12));
110
109
  replacementGridCell = {
111
110
  primaryKeyValue: gridCell.primaryKeyValue,
112
- columnId: gridCell.columnId,
111
+ column: gridCell.column,
113
112
  rawValue: computedValue,
114
113
  displayValue: computedValue,
115
114
  normalisedValue: computedValue,
@@ -124,7 +123,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
124
123
  const dataChangedEvent = this.api.internalApi.buildDataChangedInfo({
125
124
  oldValue: Number(gridCell.rawValue),
126
125
  newValue: replacementGridCell.rawValue,
127
- columnId: gridCell.columnId,
126
+ column: gridCell.column,
128
127
  primaryKeyValue: gridCell.primaryKeyValue,
129
128
  rowNode: gridCell.rowNode,
130
129
  trigger: 'edit',
@@ -23,8 +23,8 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  let menuItemShowPopup = undefined;
24
24
  if (!menuContext.isRowGroupColumn && this.isModuleEditable()) {
25
25
  if (menuContext.adaptableColumn &&
26
- menuContext.adaptableColumn.DataType == Enums_1.DataType.Number &&
27
- !menuContext.adaptableColumn.ReadOnly &&
26
+ menuContext.adaptableColumn.dataType == Enums_1.DataType.Number &&
27
+ !menuContext.adaptableColumn.readOnly &&
28
28
  menuContext.isSelectedCell &&
29
29
  menuContext.isSingleSelectedColumn &&
30
30
  this.api.gridApi.areCellsEditable(menuContext.selectedCellInfo.gridCells)) {
@@ -75,7 +75,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
75
75
  }
76
76
  let column = selectedCellInfo.columns[0];
77
77
  if (column) {
78
- if (column.DataType != Enums_1.DataType.Number) {
78
+ if (column.dataType != Enums_1.DataType.Number) {
79
79
  return {
80
80
  Alert: {
81
81
  header: 'Smart Edit Error',
@@ -84,7 +84,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
84
84
  },
85
85
  };
86
86
  }
87
- if (column.ReadOnly) {
87
+ if (column.readOnly) {
88
88
  return {
89
89
  Alert: {
90
90
  header: 'Smart Edit Error',
@@ -114,7 +114,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
114
114
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(selectedCellInfo.columns)) {
115
115
  let column = selectedCellInfo.columns[0];
116
116
  if (column) {
117
- columnId = column.ColumnId;
117
+ columnId = column.columnId;
118
118
  selectedCellInfo.gridCells.forEach((selectedCell) => {
119
119
  let newValue;
120
120
  switch (smartEditOperation) {
@@ -138,7 +138,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
138
138
  let dataChangedEvent = this.api.internalApi.buildDataChangedInfo({
139
139
  oldValue: Number(selectedCell.rawValue),
140
140
  newValue: newValue,
141
- columnId: selectedCell.columnId,
141
+ column: selectedCell.column,
142
142
  primaryKeyValue: selectedCell.primaryKeyValue,
143
143
  rowNode: selectedCell.rowNode,
144
144
  trigger: 'edit',
@@ -131,6 +131,7 @@ exports.DefaultAdaptableOptions = {
131
131
  useAdaptableQuickFilter: true,
132
132
  clearFiltersOnStartUp: false,
133
133
  quickFilterTrigger: 'mouseenter',
134
+ quickFilterValuesTrigger: 'mouseenter',
134
135
  filterActionOnUserDataChange: {
135
136
  applyFilter: GeneralConstants.FILTER_ALWAYS,
136
137
  throttleDelay: 0,
@@ -227,7 +227,7 @@ exports.booleanExpressionFunctions = {
227
227
  const searchTerm = expressionFunctionUtils_1.getStringValue(context, String(args[0]));
228
228
  return (_a = context.api) === null || _a === void 0 ? void 0 : _a.columnApi.getColumns().some((column) => {
229
229
  var _a;
230
- const value = (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getNormalisedValueFromRowNode(context.node, column.ColumnId);
230
+ const value = (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getNormalisedValueFromRowNode(context.node, column.columnId);
231
231
  const columnValue = expressionFunctionUtils_1.getStringValue(context, String(value));
232
232
  return columnValue.indexOf(searchTerm) !== -1;
233
233
  });
@@ -23,7 +23,7 @@ exports.isTextSearchCaseInsensitive = (context) => !context.api.internalApi.isTe
23
23
  exports.getDataChangeLog$ = (context, columnNameFilter) => {
24
24
  let dataChangeLog$ = context.api.internalApi.getDataService().dataChangeLog$;
25
25
  // filter only the given column changes
26
- dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.columnId === columnNameFilter));
26
+ dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((dataChangeLog) => dataChangeLog.column.columnId === columnNameFilter));
27
27
  // filter based on the WHERE clause
28
28
  if (context.filterFn) {
29
29
  dataChangeLog$ = dataChangeLog$.pipe(operators_1.filter((value) => context.filterFn(value.rowNode)));
@@ -92,7 +92,7 @@ const validateColumnId = (columnId, api) => {
92
92
  if (!column) {
93
93
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('', `Column name "${columnId}" is not found`);
94
94
  }
95
- if (!column.Queryable) {
95
+ if (!column.queryable) {
96
96
  throw new ExpressionEvaluationError_1.ExpressionEvaluationError('', `Column name "${columnId}" is not queryable`);
97
97
  }
98
98
  };
@@ -244,14 +244,15 @@ const getDataChangedInfoStub = (context) => {
244
244
  const rowNode = rowNodeStub;
245
245
  if (rowNode) {
246
246
  const primaryKeyValue = context.api.gridApi.getPrimaryKeyValueForRowNode(rowNode);
247
- const columnId = (_a = context.api.columnApi.getQueryableColumns()[0]) === null || _a === void 0 ? void 0 : _a.ColumnId;
247
+ const columnId = (_a = context.api.columnApi.getQueryableColumns()[0]) === null || _a === void 0 ? void 0 : _a.columnId;
248
248
  const oldValue = context.api.gridApi.getCellRawValue(primaryKeyValue, columnId);
249
+ const column = context.api.columnApi.getColumnFromId(columnId);
249
250
  const newValue = oldValue;
250
251
  return {
251
252
  changedAt: Date.now(),
252
253
  rowNode,
253
254
  primaryKeyValue,
254
- columnId,
255
+ column: column,
255
256
  oldValue,
256
257
  newValue,
257
258
  };