@adaptabletools/adaptable 10.0.3 → 10.0.4-canary.3

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 (267) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/base.css +16 -6
  4. package/bundle.cjs.js +350 -0
  5. package/index.css +20 -6
  6. package/package.json +1 -5
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -1
  10. package/src/AdaptableInterfaces/IAdaptable.d.ts +14 -12
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +4 -5
  13. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/DateInputOptions.d.ts +5 -1
  15. package/src/AdaptableOptions/EditOptions.d.ts +2 -3
  16. package/src/AdaptableOptions/FilterOptions.d.ts +8 -8
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
  18. package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
  19. package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
  20. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
  21. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -12
  22. package/src/Api/AdaptableApi.d.ts +12 -12
  23. package/src/Api/CalculatedColumnApi.d.ts +15 -0
  24. package/src/Api/ColumnApi.d.ts +16 -5
  25. package/src/Api/EventApi.d.ts +1 -1
  26. package/src/Api/Events/AdaptableReady.d.ts +5 -8
  27. package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
  28. package/src/Api/Events/AlertFired.d.ts +2 -1
  29. package/src/Api/Events/BaseEventInfo.d.ts +10 -0
  30. package/src/Api/Events/BaseEventInfo.js +2 -0
  31. package/src/Api/Events/CellChanged.d.ts +2 -1
  32. package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
  33. package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
  34. package/src/Api/Events/DashboardChanged.d.ts +2 -1
  35. package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
  36. package/src/Api/Events/GridDataChanged.d.ts +2 -1
  37. package/src/Api/Events/LayoutChanged.d.ts +2 -1
  38. package/src/Api/Events/LiveDataChanged.d.ts +2 -1
  39. package/src/Api/Events/SearchChanged.d.ts +2 -1
  40. package/src/Api/Events/SelectionChanged.d.ts +2 -1
  41. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
  42. package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
  43. package/src/Api/Events/ThemeChanged.d.ts +2 -1
  44. package/src/Api/GridApi.d.ts +10 -10
  45. package/src/Api/Implementation/AlertApiImpl.js +17 -17
  46. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
  47. package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
  48. package/src/Api/Implementation/ColumnApiImpl.d.ts +5 -3
  49. package/src/Api/Implementation/ColumnApiImpl.js +43 -44
  50. package/src/Api/Implementation/ConfigApiImpl.js +0 -24
  51. package/src/Api/Implementation/DashboardApiImpl.js +2 -1
  52. package/src/Api/Implementation/ExportApiImpl.js +4 -4
  53. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
  54. package/src/Api/Implementation/FreeTextColumnApiImpl.js +7 -2
  55. package/src/Api/Implementation/GridApiImpl.d.ts +2 -2
  56. package/src/Api/Implementation/GridApiImpl.js +14 -13
  57. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -2
  58. package/src/Api/Implementation/InternalApiImpl.js +5 -5
  59. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  60. package/src/Api/Implementation/LayoutApiImpl.js +19 -3
  61. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
  62. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  63. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  64. package/src/Api/Implementation/ScopeApiImpl.js +11 -11
  65. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
  66. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  67. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  68. package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
  69. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +5 -4
  70. package/src/Api/Implementation/UserInterfaceApiImpl.js +18 -13
  71. package/src/Api/InternalApi.d.ts +2 -2
  72. package/src/Api/LayoutApi.d.ts +7 -0
  73. package/src/Api/PluginsApi.d.ts +1 -7
  74. package/src/Api/TeamSharingApi.d.ts +1 -1
  75. package/src/Api/ThemeApi.d.ts +2 -2
  76. package/src/Api/UserInterfaceApi.d.ts +6 -5
  77. package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
  78. package/src/PredefinedConfig/AlertState.d.ts +2 -3
  79. package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
  80. package/src/PredefinedConfig/CalculatedColumnState.d.ts +1 -1
  81. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
  82. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
  83. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
  84. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  85. package/src/PredefinedConfig/Common/AdaptablePredicate.js +3 -3
  86. package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
  87. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
  88. package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
  89. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
  90. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  91. package/src/PredefinedConfig/Common/Types.js +9 -7
  92. package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
  93. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  94. package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
  95. package/src/PredefinedConfig/ExportState.d.ts +3 -3
  96. package/src/PredefinedConfig/FilterState.d.ts +2 -2
  97. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  98. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  99. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  100. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
  101. package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
  102. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  103. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
  104. package/src/PredefinedConfig/ThemeState.d.ts +5 -1
  105. package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
  106. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
  107. package/src/Redux/ActionsReducers/GridRedux.js +2 -2
  108. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
  109. package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
  110. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  111. package/src/Redux/DeadRedux.d.ts +4 -8
  112. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
  113. package/src/Redux/Store/AdaptableStore.d.ts +3 -3
  114. package/src/Redux/Store/AdaptableStore.js +21 -16
  115. package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
  116. package/src/Strategy/AdaptableModuleBase.js +8 -8
  117. package/src/Strategy/AlertModule.d.ts +2 -2
  118. package/src/Strategy/AlertModule.js +13 -105
  119. package/src/Strategy/BulkUpdateModule.d.ts +2 -2
  120. package/src/Strategy/BulkUpdateModule.js +7 -7
  121. package/src/Strategy/CalculatedColumnModule.js +1 -1
  122. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  123. package/src/Strategy/CellSummaryModule.js +3 -3
  124. package/src/Strategy/ConditionalStyleModule.js +3 -3
  125. package/src/Strategy/CustomSortModule.js +2 -2
  126. package/src/Strategy/DashboardModule.d.ts +2 -2
  127. package/src/Strategy/DataChangeHistoryModule.js +2 -2
  128. package/src/Strategy/ExportModule.d.ts +2 -2
  129. package/src/Strategy/ExportModule.js +1 -1
  130. package/src/Strategy/FilterModule.d.ts +2 -2
  131. package/src/Strategy/FilterModule.js +4 -4
  132. package/src/Strategy/FormatColumnModule.js +6 -6
  133. package/src/Strategy/FreeTextColumnModule.js +1 -1
  134. package/src/Strategy/GridInfoModule.d.ts +2 -2
  135. package/src/Strategy/Interface/IModule.d.ts +2 -2
  136. package/src/Strategy/LayoutModule.d.ts +2 -2
  137. package/src/Strategy/LayoutModule.js +22 -9
  138. package/src/Strategy/PlusMinusModule.js +8 -9
  139. package/src/Strategy/SmartEditModule.d.ts +2 -2
  140. package/src/Strategy/SmartEditModule.js +8 -9
  141. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  142. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  143. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  144. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  145. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  146. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -7
  147. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
  148. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  149. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
  150. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  151. package/src/Utilities/Helpers/PreviewHelper.js +2 -2
  152. package/src/Utilities/Interface/Preview.d.ts +2 -1
  153. package/src/Utilities/ObjectFactory.js +1 -1
  154. package/src/Utilities/Services/DataService.js +5 -5
  155. package/src/Utilities/Services/LicenseService.js +16 -2
  156. package/src/Utilities/Services/MetamodelService.js +0 -1
  157. package/src/Utilities/Services/ReportService.js +12 -11
  158. package/src/Utilities/Services/ValidationService.js +4 -5
  159. package/src/View/AdaptableViewFactory.d.ts +2 -1
  160. package/src/View/AdaptableViewFactory.js +2 -0
  161. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
  162. package/src/View/Alert/AlertPopup.js +1 -1
  163. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  164. package/src/View/BulkUpdate/BulkUpdatePopup.js +3 -3
  165. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
  166. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  167. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  168. package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
  169. package/src/View/Components/ColumnSelector/index.js +2 -2
  170. package/src/View/Components/FilterForm/FilterForm.js +18 -20
  171. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +1 -1
  172. package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
  173. package/src/View/Components/FilterForm/QuickFilterForm.js +15 -17
  174. package/src/View/Components/NewScopeComponent.js +1 -1
  175. package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
  176. package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
  177. package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
  178. package/src/View/Components/PreviewResultsPanel.js +1 -1
  179. package/src/View/Components/RangesComponent.js +2 -2
  180. package/src/View/Components/Selectors/ColumnSelector.js +5 -5
  181. package/src/View/Components/Selectors/ColumnValueSelector.js +4 -4
  182. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
  183. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  184. package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
  185. package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
  186. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  187. package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
  188. package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
  189. package/src/View/CustomSort/CustomSortPopup.js +2 -2
  190. package/src/View/CustomSort/CustomSortSummary.js +3 -3
  191. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
  192. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  193. package/src/View/Dashboard/Dashboard.js +2 -3
  194. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
  195. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
  196. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
  197. package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
  198. package/src/View/Export/ExportViewPanel.js +6 -6
  199. package/src/View/Filter/FilterSummary.js +2 -2
  200. package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
  201. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  202. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  203. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +1 -1
  204. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +2 -2
  205. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
  206. package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
  207. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  208. package/src/View/Layout/LayoutViewPanel.js +2 -2
  209. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
  210. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
  211. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
  212. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
  213. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
  214. package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
  215. package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
  216. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  217. package/src/View/Query/QueryViewPanel.js +3 -3
  218. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
  219. package/src/View/Schedule/SchedulePopup.js +3 -3
  220. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  221. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  222. package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
  223. package/src/View/StateManagement/StateManagementPopup.js +21 -114
  224. package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
  225. package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
  226. package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
  227. package/src/View/StateManagement/components/ClearButton.js +9 -0
  228. package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
  229. package/src/View/StateManagement/components/ExportDropdown.js +43 -0
  230. package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
  231. package/src/View/StateManagement/components/LoadButton.js +38 -0
  232. package/src/View/StateManagement/handleExportState.d.ts +1 -0
  233. package/src/View/StateManagement/handleExportState.js +22 -0
  234. package/src/View/Theme/ThemeViewPanel.js +1 -1
  235. package/src/agGrid/ActionColumnRenderer.js +1 -1
  236. package/src/agGrid/Adaptable.d.ts +9 -8
  237. package/src/agGrid/Adaptable.js +174 -132
  238. package/src/agGrid/agGridHelper.d.ts +4 -4
  239. package/src/agGrid/agGridHelper.js +46 -46
  240. package/src/agGrid/agGridMenuHelper.d.ts +15 -13
  241. package/src/agGrid/agGridMenuHelper.js +55 -47
  242. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
  243. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
  244. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
  245. package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
  246. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
  247. package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
  248. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
  249. package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
  250. package/src/components/Datepicker/index.js +9 -5
  251. package/src/components/ExpressionEditor/index.js +7 -7
  252. package/src/components/Modal/index.d.ts +1 -1
  253. package/src/components/OverlayTrigger/index.js +3 -3
  254. package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
  255. package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
  256. package/src/components/ProgressIndicator/ProgressIndicator.js +1 -1
  257. package/src/components/icons/index.js +2 -0
  258. package/src/components/icons/upload.d.ts +3 -0
  259. package/src/components/icons/upload.js +8 -0
  260. package/src/metamodel/adaptable.metamodel.d.ts +104 -50
  261. package/src/metamodel/adaptable.metamodel.js +358 -300
  262. package/src/types.d.ts +2 -2
  263. package/version.d.ts +1 -1
  264. package/version.js +1 -1
  265. package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
  266. package/src/PredefinedConfig/DeprecatedState.js +0 -5
  267. package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
@@ -76,7 +76,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
76
76
  return this.getScheduleById(schedule.Uuid);
77
77
  }
78
78
  getAllIPushPullSchedule() {
79
- const ippApi = this.adaptable.api.pluginsApi.getPluginApi('ipushpull');
79
+ const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
80
80
  return ippApi ? ippApi.getIPushPullSchedules() : [];
81
81
  }
82
82
  getAllActiveIPushPullSchedule() {
@@ -105,7 +105,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
105
105
  return this.getScheduleById(schedule.Uuid);
106
106
  }
107
107
  getAllGlue42Schedule() {
108
- const glue42Api = this.adaptable.api.pluginsApi.getPluginApi('glue42');
108
+ const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
109
109
  return glue42Api ? glue42Api.getGlue42Schedules() : [];
110
110
  }
111
111
  getAllActiveGlue42Schedule() {
@@ -134,7 +134,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
134
134
  return this.getScheduleById(schedule.Uuid);
135
135
  }
136
136
  getAllOpenFinSchedule() {
137
- const openFinApi = this.adaptable.api.pluginsApi.getPluginApi('openfin');
137
+ const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
138
138
  return openFinApi ? openFinApi.getOpenFinSchedules() : [];
139
139
  }
140
140
  getAllActiveOpenFinSchedule() {
@@ -185,7 +185,7 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
185
185
  this.adaptable.api.exportApi.sendReport(reportSchedule.ReportName, reportSchedule.ExportDestination);
186
186
  }
187
187
  else if (scheduleType == 'ipushpull') {
188
- const ippApi = this.adaptable.api.pluginsApi.getPluginApi('ipushpull');
188
+ const ippApi = this.adaptable.api.pluginsApi.getipushpullPluginApi();
189
189
  const iPushPullSchedule = schedule;
190
190
  if (iPushPullSchedule.Transmission == 'Snapshot') {
191
191
  ippApi.sendSnapshot(iPushPullSchedule.IPushPullReport);
@@ -195,12 +195,12 @@ class ScheduleApiImpl extends ApiBase_1.ApiBase {
195
195
  }
196
196
  }
197
197
  else if (scheduleType == 'Glue42') {
198
- const glue42Api = this.adaptable.api.pluginsApi.getPluginApi('glue42');
198
+ const glue42Api = this.adaptable.api.pluginsApi.getGlue42PluginApi();
199
199
  const glue42Schedule = schedule;
200
200
  glue42Api.sendSnapshotToDo(glue42Schedule.Glue42Report);
201
201
  }
202
202
  else if (scheduleType == 'OpenFin') {
203
- const openFinApi = this.adaptable.api.pluginsApi.getPluginApi('openfin');
203
+ const openFinApi = this.adaptable.api.pluginsApi.getOpenFinPluginApi();
204
204
  const openFinSchedule = schedule;
205
205
  openFinApi.startLiveData(openFinSchedule.OpenFinReport);
206
206
  }
@@ -14,10 +14,10 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
14
14
  // do we need a true check here?
15
15
  return true;
16
16
  }
17
- if ('DataTypes' in scope && scope.DataTypes.includes(column.DataType)) {
17
+ if ('DataTypes' in scope && scope.DataTypes.includes(column.dataType)) {
18
18
  return true;
19
19
  }
20
- if ('ColumnIds' in scope && scope.ColumnIds.includes(column.ColumnId)) {
20
+ if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
21
21
  return true;
22
22
  }
23
23
  return false;
@@ -31,10 +31,10 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
31
31
  return columns;
32
32
  }
33
33
  return columns.filter((c) => {
34
- if ('DataTypes' in scope && scope.DataTypes.includes(c.DataType)) {
34
+ if ('DataTypes' in scope && scope.DataTypes.includes(c.dataType)) {
35
35
  return true;
36
36
  }
37
- if ('ColumnIds' in scope && scope.ColumnIds.includes(c.ColumnId)) {
37
+ if ('ColumnIds' in scope && scope.ColumnIds.includes(c.columnId)) {
38
38
  return true;
39
39
  }
40
40
  return false;
@@ -140,7 +140,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
140
140
  }
141
141
  isColumnInNumericScope(column, scope) {
142
142
  // if column is not even numeric then return false
143
- if (column == null || column == undefined || column.DataType !== 'Number') {
143
+ if (column == null || column == undefined || column.dataType !== 'Number') {
144
144
  return false;
145
145
  }
146
146
  // if no scope then return false
@@ -148,7 +148,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
148
148
  return false;
149
149
  }
150
150
  // check if the scope has ColumnIds and whether this column is contained
151
- if ('ColumnIds' in scope && scope.ColumnIds.includes(column.ColumnId)) {
151
+ if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
152
152
  return true;
153
153
  }
154
154
  // check if the scope has ColumnIds and whether this column is contained
@@ -159,7 +159,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
159
159
  }
160
160
  isColumnInStringsScope(column, scope) {
161
161
  // if column is not even string then return false
162
- if (column == null || column == undefined || column.DataType !== 'String') {
162
+ if (column == null || column == undefined || column.dataType !== 'String') {
163
163
  return false;
164
164
  }
165
165
  // if no scope then return false
@@ -167,7 +167,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
167
167
  return false;
168
168
  }
169
169
  // check if the scope has ColumnIds and whether this column is contained
170
- if ('ColumnIds' in scope && scope.ColumnIds.includes(column.ColumnId)) {
170
+ if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
171
171
  return true;
172
172
  }
173
173
  // check if the scope has ColumnIds and whether this column is contained
@@ -178,7 +178,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
178
178
  }
179
179
  isColumnInDateScope(column, scope) {
180
180
  // if column is not even numeric then return false
181
- if (column == null || column == undefined || column.DataType !== 'Date') {
181
+ if (column == null || column == undefined || column.dataType !== 'Date') {
182
182
  return false;
183
183
  }
184
184
  // if no scope then return false
@@ -186,7 +186,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
186
186
  return false;
187
187
  }
188
188
  // check if the scope has ColumnIds and whether this column is contained
189
- if ('ColumnIds' in scope && scope.ColumnIds.includes(column.ColumnId)) {
189
+ if ('ColumnIds' in scope && scope.ColumnIds.includes(column.columnId)) {
190
190
  return true;
191
191
  }
192
192
  // check if the scope has ColumnIds and whether this column is contained
@@ -213,7 +213,7 @@ class ScopeApiImpl extends ApiBase_1.ApiBase {
213
213
  'DataTypes' in b &&
214
214
  a.ColumnIds.every((columnId) => {
215
215
  var _a;
216
- return b.DataTypes.includes((_a = this.adaptable.api.columnApi.getColumnFromId(columnId)) === null || _a === void 0 ? void 0 : _a.DataType);
216
+ return b.DataTypes.includes((_a = this.adaptable.api.columnApi.getColumnFromId(columnId)) === null || _a === void 0 ? void 0 : _a.dataType);
217
217
  })) {
218
218
  return true;
219
219
  }
@@ -80,6 +80,7 @@ class SystemStatusApiImpl extends ApiBase_1.ApiBase {
80
80
  }
81
81
  fireSystemStatusMessageDisplayedEvent(systemStatusMessageInfo) {
82
82
  const systemStatusMessageDisplayedInfo = {
83
+ adaptableApi: this.adaptable.api,
83
84
  systemStatusMessageInfo: systemStatusMessageInfo,
84
85
  };
85
86
  this.adaptable.api.eventApi.emit('SystemStatusMessageDisplayed', systemStatusMessageDisplayedInfo);
@@ -35,6 +35,7 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
35
35
  fireTeamSharingEntityChangedEvent(sharedEntity) {
36
36
  if (this.adaptable.isInitialised) {
37
37
  const teamSharingEntityChangedInfo = {
38
+ adaptableApi: this.adaptable.api,
38
39
  sharedEntity: sharedEntity,
39
40
  };
40
41
  this.adaptable.api.eventApi.emit('TeamSharingEntityChanged', teamSharingEntityChangedInfo);
@@ -48,6 +48,7 @@ class ThemeApiImpl extends ApiBase_1.ApiBase {
48
48
  }
49
49
  this.adaptable.applyAdaptableTheme(currentTheme);
50
50
  let themeChangedInfo = {
51
+ adaptableApi: this.adaptable.api,
51
52
  theme: currentTheme,
52
53
  };
53
54
  this.adaptable.api.eventApi.emit('ThemeChanged', themeChangedInfo);
@@ -15,7 +15,7 @@ class ToolPanelApiImpl extends ApiBase_1.ApiBase {
15
15
  openAdapTableToolPanel() {
16
16
  let gridOptions = this.getOptions().vendorGrid;
17
17
  if (gridOptions) {
18
- gridOptions.api.openToolPanel('AdaptableToolPanel');
18
+ gridOptions.api.openToolPanel('adaptable');
19
19
  }
20
20
  }
21
21
  closeAdapTableToolPanel() {
@@ -2,8 +2,9 @@ import { ApiBase } from './ApiBase';
2
2
  import { UserInterfaceApi } from '../UserInterfaceApi';
3
3
  import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { AdaptableStyle } from '../../PredefinedConfig/Common/AdaptableStyle';
5
- import { UserMenuItem } from '../../PredefinedConfig/Common/Menu';
5
+ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
6
6
  import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../../AdaptableOptions/UserInterfaceOptions';
7
+ import { GridCell } from '../../types';
7
8
  export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfaceApi {
8
9
  getColorPalette(): string[];
9
10
  getStyleClassNames(): string[] | undefined;
@@ -18,9 +19,9 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
18
19
  getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
19
20
  getAllEditLookUpItems(): EditLookUpPermittedValues[];
20
21
  getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
21
- getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, columnId: string, data: any): any[] | undefined;
22
- addColumnMenuItem(columnMenuItem: UserMenuItem): void;
23
- addContextMenuItem(contextMenuItem: UserMenuItem): void;
22
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
23
+ addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
24
+ addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
24
25
  getEditableCellStyle(): AdaptableStyle | undefined;
25
26
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
26
27
  getAllActionColumn(): ActionColumn[];
@@ -67,7 +67,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
67
67
  // first do the function then get hardcoded items
68
68
  if (permittedValues != null && typeof permittedValues === 'function') {
69
69
  if (column) {
70
- return permittedValues(column);
70
+ const permittedValuesParams = {
71
+ adaptableApi: this.adaptable.api,
72
+ column: column,
73
+ };
74
+ return permittedValues(permittedValuesParams);
71
75
  }
72
76
  }
73
77
  else {
@@ -124,18 +128,19 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
124
128
  }
125
129
  return this.getPermittedValuesForScope(column, editLookUpItems);
126
130
  }
127
- getEditLookUpValuesForEditLookUpItem(editLookUpItem, columnId, data) {
128
- if (!editLookUpItem) {
129
- return undefined;
130
- }
131
- const column = this.adaptable.api.columnApi.getColumnFromId(columnId);
132
- if (!column) {
131
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem, gridCell) {
132
+ if (!editLookUpItem || !gridCell || !gridCell.column) {
133
133
  return undefined;
134
134
  }
135
135
  let editLookUpValues = editLookUpItem.values;
136
136
  // first do the function then get hardcoded items
137
137
  if (editLookUpValues != null && typeof editLookUpValues === 'function') {
138
- return editLookUpValues(column, data);
138
+ const editLookUpParams = {
139
+ adaptableApi: this.adaptable.api,
140
+ column: gridCell.column,
141
+ gridCell: gridCell,
142
+ };
143
+ return editLookUpValues(editLookUpParams);
139
144
  }
140
145
  else {
141
146
  let arr = editLookUpValues;
@@ -145,15 +150,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
145
150
  }
146
151
  // if no hard-coded values or function provided then just get the distinct values for the column
147
152
  // this will use the columnapi method that first looks for permitted values and then distinct values
148
- return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(columnId);
153
+ return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
149
154
  }
150
- addColumnMenuItem(columnMenuItem) {
155
+ addColumnMenuItem(userMenuItem) {
151
156
  var _a;
152
- (_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(columnMenuItem);
157
+ (_a = this.getMenuOptions().columnMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
153
158
  }
154
- addContextMenuItem(contextMenuItem) {
159
+ addContextMenuItem(userMenuItem) {
155
160
  var _a;
156
- (_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(contextMenuItem);
161
+ (_a = this.getMenuOptions().contextMenuItems) === null || _a === void 0 ? void 0 : _a.push(userMenuItem);
157
162
  }
158
163
  getEditableCellStyle() {
159
164
  return this.getUserInterfaceOptions().editableCellStyle;
@@ -78,13 +78,13 @@ export interface InternalApi {
78
78
  setGridCell(gridCell: GridCell): void;
79
79
  setToolbarTitle(): string;
80
80
  getQueryPreviewData(): any;
81
- buildDataChangedInfo(config: Pick<DataChangedInfo, 'newValue' | 'oldValue' | 'columnId' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): DataChangedInfo;
81
+ buildDataChangedInfo(config: Pick<DataChangedInfo, 'newValue' | 'oldValue' | 'column' | 'primaryKeyValue' | 'rowNode' | 'trigger'>): DataChangedInfo;
82
82
  setLastAppliedShortCut(gridCell: GridCell | undefined): void;
83
83
  setDefaultDashboardTab(): void;
84
84
  updateCurrentDraftLayout(layout: Layout): void;
85
85
  getPrimaryKey(): any;
86
86
  getAdaptableInstance(): IAdaptable;
87
- getVendorGridInstance(): any;
87
+ getAgGridInstance(): any;
88
88
  getPredefinedConfig(): any;
89
89
  getState(): AdaptableState;
90
90
  getAdaptableOptions(): AdaptableOptions;
@@ -121,4 +121,11 @@ export interface LayoutApi {
121
121
  * Opens Layout popup screen
122
122
  */
123
123
  showLayoutPopup(): void;
124
+ /**
125
+ * Sets a new Caption / Header for a Column (this Layout only)
126
+ * @param columnId Column to Update
127
+ * @param caption New Caption to display
128
+ */
129
+ setColumnCaption(columnId: string, caption: string): void;
130
+ isCurrentLayoutReadOnly(): boolean;
124
131
  }
@@ -12,13 +12,7 @@ export interface PluginsApi {
12
12
  getPluginState(pluginId: string): any;
13
13
  registerPlugin(pluginId: string, initialPluginState: any): void;
14
14
  setPluginState(pluginId: string, pluginState: any): void;
15
- getPluginApi(pluginId: string): any;
16
- getPluginApi(pluginId: 'ipushpull'): IPushPullApi;
17
- getPluginApi(pluginId: 'glue42'): Glue42Api;
18
- getPluginApi(pluginId: 'finance'): FinanceApi;
19
- getPluginApi(pluginId: 'openfin'): OpenFinApi;
20
- getPluginApi(pluginId: 'charts'): ChartApi;
21
- getIpushpullPluginApi(): IPushPullApi;
15
+ getipushpullPluginApi(): IPushPullApi;
22
16
  getGlue42PluginApi(): Glue42Api;
23
17
  getOpenFinPluginApi(): OpenFinApi;
24
18
  getChartsPluginApi(): ChartApi;
@@ -28,7 +28,7 @@ export interface TeamSharingApi {
28
28
  */
29
29
  checkForUpdates(): void;
30
30
  /**
31
- * Fires the Team S
31
+ * Fires the Team Sharing Entity Changed Event
32
32
  * @param sharedEntity Entity that has been changed
33
33
  */
34
34
  fireTeamSharingEntityChangedEvent(sharedEntity: SharedEntity): void;
@@ -17,11 +17,11 @@ export interface ThemeApi {
17
17
  */
18
18
  loadTheme(theme: string): void;
19
19
  /**
20
- * Sets AdapTable Light Theme - updates underlying vendor grid theme to match
20
+ * Sets AdapTable Light Theme - updates the AG Grid theme to match
21
21
  */
22
22
  loadLightTheme(): void;
23
23
  /**
24
- * Sets AdapTable Dark Theme - updates underlying vendor grid theme to match
24
+ * Sets AdapTable Dark Theme - updates the AG Grid theme to match
25
25
  */
26
26
  loadDarkTheme(): void;
27
27
  /**
@@ -1,7 +1,8 @@
1
1
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
2
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
3
- import { UserMenuItem } from '../PredefinedConfig/Common/Menu';
3
+ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
4
4
  import { ActionColumn, BulkUpdatePermittedValues, CustomSortPermittedValues, EditLookUpPermittedValues, FilterPermittedValues, PermittedValues } from '../AdaptableOptions/UserInterfaceOptions';
5
+ import { GridCell } from '../PredefinedConfig/Selection/GridCell';
5
6
  /**
6
7
  * Functions relating to User Interface section of Adaptable State
7
8
  */
@@ -44,19 +45,19 @@ export interface UserInterfaceApi {
44
45
  /**
45
46
  * Retrieves actual Look Up Values from an EditLookUpItem
46
47
  * @param editLookUpItem editLookUpItem to check
47
- * @param columnId Column to check
48
+ * @param gridCell: the currently edited Grid Cell
48
49
  */
49
- getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, columnId: string, rowData: any): any[] | undefined;
50
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
50
51
  /**
51
52
  * Adds menu item to Column Menu
52
53
  * @param userMenuItem Menu Item to add
53
54
  */
54
- addColumnMenuItem(userMenuItem: UserMenuItem): void;
55
+ addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
55
56
  /**
56
57
  * Adds menu item to Context Menu
57
58
  * @param userMenuItem Menu Item to add
58
59
  */
59
- addContextMenuItem(userMenuItem: UserMenuItem): void;
60
+ addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
60
61
  /**
61
62
  * Returns Style set for Editable cells
62
63
  */
@@ -12,7 +12,6 @@ import { ExportState } from './ExportState';
12
12
  import { FormatColumnState } from './FormatColumnState';
13
13
  import { FreeTextColumnState } from './FreeTextColumnState';
14
14
  import { LayoutState } from './LayoutState';
15
- import { PercentBarState } from './DeprecatedState';
16
15
  import { ScheduleState } from './ScheduleState';
17
16
  import { PlusMinusState } from './PlusMinusState';
18
17
  import { QuickSearchState } from './QuickSearchState';
@@ -24,10 +23,7 @@ import { FilterState } from './FilterState';
24
23
  import { SparklineColumnState } from './SparklineColumnState';
25
24
  import { ApplicationState } from './ApplicationState';
26
25
  import { ToolPanelState } from './ToolPanelState';
27
- import { GradientColumnState } from './DeprecatedState';
28
26
  import { QueryState } from './QueryState';
29
- import { FlashingCellState } from './DeprecatedState';
30
- import { UpdatedRowState } from './DeprecatedState';
31
27
  /**
32
28
  * The main state object that Adaptable persists
33
29
  */
@@ -52,17 +48,13 @@ export interface AdaptableState {
52
48
  Filter: FilterState;
53
49
  FormatColumn: FormatColumnState;
54
50
  FreeTextColumn: FreeTextColumnState;
55
- GradientColumn: GradientColumnState;
56
51
  Layout: LayoutState;
57
- PercentBar: PercentBarState;
58
- Schedule: ScheduleState;
59
52
  PlusMinus: PlusMinusState;
53
+ Query: QueryState;
60
54
  QuickSearch: QuickSearchState;
55
+ Schedule: ScheduleState;
61
56
  Shortcut: ShortcutState;
62
57
  TeamSharing: TeamSharingState;
63
58
  Theme: ThemeState;
64
59
  ToolPanel: ToolPanelState;
65
- Query: QueryState;
66
- FlashingCell: FlashingCellState;
67
- UpdatedRow: UpdatedRowState;
68
60
  }
@@ -11,9 +11,8 @@ import { XOR } from '../Utilities/Extensions/TypeExtensions';
11
11
  import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
12
12
  import { ButtonStyle } from './Common/ButtonStyle';
13
13
  import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
14
- import { DataChangedInfo } from './Common/DataChangedInfo';
15
14
  /**
16
- * Predefined Configuration for Alert function
15
+ * Predefined Configuration for Alert Module
17
16
  */
18
17
  export interface AlertState extends ConfigState {
19
18
  /**
@@ -86,7 +85,7 @@ export interface AlertDefinition extends BaseAlertDefinition {
86
85
  /**
87
86
  * Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope
88
87
  */
89
- MessageText?: string | ((scope: AdaptableScope, rule: AlertRule, dataChangedInfo?: DataChangedInfo) => string);
88
+ MessageText?: string;
90
89
  /**
91
90
  * Series of properties which set what happens when Alert is triggered
92
91
  */
@@ -1,6 +1,6 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  /**
3
- * Predefined Configuration for the Application function
3
+ * Predefined Configuration for the Application Module
4
4
  **/
5
5
  export interface ApplicationState extends ConfigState {
6
6
  /**
@@ -3,7 +3,7 @@ import { AdaptableObject } from './Common/AdaptableObject';
3
3
  import { AdaptableScalarQuery } from './Common/AdaptableQuery';
4
4
  import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
5
5
  /**
6
- * Predefined Configuration for Calculated Column function
6
+ * Predefined Configuration for Calculated Column Module
7
7
  **/
8
8
  export interface CalculatedColumnState extends ConfigState {
9
9
  /**
@@ -36,5 +36,5 @@ export interface AdaptableButton<CONTEXT_TYPE extends ButtonContext> extends Ada
36
36
  hidden?: (button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => boolean;
37
37
  }
38
38
  export interface ButtonContext {
39
- api: AdaptableApi;
39
+ adaptableApi: AdaptableApi;
40
40
  }
@@ -4,17 +4,17 @@ import { AdaptableObject } from './AdaptableObject';
4
4
  */
5
5
  export interface AdaptableColumnBase extends AdaptableObject {
6
6
  /**
7
- * Name of Column in underlying grid (e.g. field or colId)
7
+ * Name of Column in AG Grid (e.g. field or colId)
8
8
  */
9
- ColumnId: string;
9
+ columnId: string;
10
10
  /**
11
- * How Column is referred to in Adaptable UI; 'Caption' or 'Header' property in underlying grid
11
+ * How Column is referred to in Adaptable UI; `Caption` property in AG Grid
12
12
  */
13
- FriendlyName: string;
13
+ friendlyName: string;
14
14
  /**
15
15
  * DataType of the column
16
16
  */
17
- DataType: 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown';
17
+ dataType: 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown';
18
18
  }
19
19
  export declare const isValidOrderForColumnGroups: ({ oldColumns, newColumns, }: {
20
20
  oldColumns: AdaptableColumn[];
@@ -24,101 +24,101 @@ export declare const isValidOrderForColumnGroups: ({ oldColumns, newColumns, }:
24
24
  * Defines a Column Group
25
25
  */
26
26
  export interface AdaptableColumnGroup {
27
- AllowGroupSplit: boolean;
28
- ColumnGroupId: string;
29
- FriendlyName: string;
30
- GroupCount: number;
27
+ allowGroupSplit: boolean;
28
+ columnGroupId: string;
29
+ friendlyName: string;
30
+ groupCount: number;
31
31
  }
32
32
  /**
33
- * Defines an Adaptable Column - created at run-time based on vendor grid column definition
33
+ * Defines an Adaptable Column - created at run-time based on AG Grid column definition
34
34
  */
35
35
  export interface AdaptableColumn extends AdaptableColumnBase {
36
36
  /**
37
37
  * Is this the Primary Key column
38
38
  */
39
- IsPrimaryKey: boolean;
39
+ isPrimaryKey: boolean;
40
40
  /**
41
41
  * Column width
42
42
  */
43
- Width?: number;
43
+ width?: number;
44
44
  /**
45
45
  * Flex details of the column
46
46
  */
47
- Flex?: number;
47
+ flex?: number;
48
48
  /**
49
49
  * Is column editable
50
50
  */
51
- ReadOnly: boolean;
51
+ readOnly: boolean;
52
52
  /**
53
53
  * Is Column currently visible
54
54
  */
55
- Visible: boolean;
55
+ visible: boolean;
56
56
  /**
57
57
  * Is Column sortable
58
58
  */
59
- Sortable: boolean;
59
+ sortable: boolean;
60
60
  /**
61
61
  * Is Column able to be filtered
62
62
  */
63
- Filterable: boolean;
63
+ filterable: boolean;
64
64
  /**
65
65
  * Can Column be moved at run-time to a new position
66
66
  */
67
- Moveable: boolean;
67
+ moveable: boolean;
68
68
  /**
69
69
  * Can Column be removed from the grid
70
70
  */
71
- Hideable: boolean;
71
+ hideable: boolean;
72
72
  /**
73
73
  * Can Column form a Row Group
74
74
  */
75
- Groupable: boolean;
75
+ groupable: boolean;
76
76
  /**
77
77
  * Can Column be used in a Pivot Grid
78
78
  */
79
- Pivotable: boolean;
79
+ pivotable: boolean;
80
80
  /**
81
81
  * Is Column able to display aggregations (e.g. 'sum') when grouped
82
82
  */
83
- Aggregatable: boolean;
83
+ aggregatable: boolean;
84
84
  /**
85
85
  * Can the Column be in included in Queries / Expressions
86
86
  */
87
- Queryable: boolean;
87
+ queryable: boolean;
88
88
  /**
89
89
  * Available aggregations for the Column
90
90
  */
91
- AvailableAggregationFunctions?: string[];
91
+ availableAggregationFunctions?: string[];
92
92
  /**
93
93
  * Custom aggregation function for the Column
94
94
  */
95
- AggregationFunction?: string;
95
+ aggregationFunction?: string;
96
96
  /**
97
97
  * Is Column currently grouped
98
98
  */
99
- IsGrouped: boolean;
99
+ isGrouped: boolean;
100
100
  /**
101
101
  * Is Column pinned or locked into position
102
102
  */
103
- IsFixed: boolean;
103
+ isFixed: boolean;
104
104
  /**
105
105
  * Is it a Sparkline Column
106
106
  */
107
- IsSparkline: boolean;
107
+ isSparkline: boolean;
108
108
  /**
109
109
  * Has colummn been excluded from Quick Search results
110
110
  */
111
- IsExcludedFromQuickSearch: boolean;
111
+ isExcludedFromQuickSearch: boolean;
112
112
  /**
113
113
  * The parent column group, if the column belongs to one
114
114
  */
115
- ColumnGroup?: AdaptableColumnGroup;
115
+ columnGroup?: AdaptableColumnGroup;
116
116
  }
117
117
  export interface AdaptableColumnProperties {
118
- Sortable: boolean;
119
- Filterable: boolean;
120
- Moveable: boolean;
121
- Groupable: boolean;
122
- Pivotable: boolean;
123
- Aggregatable: boolean;
118
+ sortable: boolean;
119
+ filterable: boolean;
120
+ moveable: boolean;
121
+ groupable: boolean;
122
+ pivotable: boolean;
123
+ aggregatable: boolean;
124
124
  }
@@ -8,14 +8,14 @@ exports.isValidOrderForColumnGroups = ({ oldColumns, newColumns, }) => {
8
8
  let count = 0;
9
9
  columns.forEach((column) => {
10
10
  var _a, _b;
11
- if (column.ColumnGroup &&
12
- column.ColumnGroup.GroupCount > 1 &&
13
- !column.ColumnGroup.AllowGroupSplit) {
14
- if (prevGroup !== column.ColumnGroup.ColumnGroupId) {
11
+ if (column.columnGroup &&
12
+ column.columnGroup.groupCount > 1 &&
13
+ !column.columnGroup.allowGroupSplit) {
14
+ if (prevGroup !== column.columnGroup.columnGroupId) {
15
15
  count++;
16
16
  }
17
17
  }
18
- prevGroup = (_b = (_a = column.ColumnGroup) === null || _a === void 0 ? void 0 : _a.ColumnGroupId) !== null && _b !== void 0 ? _b : '';
18
+ prevGroup = (_b = (_a = column.columnGroup) === null || _a === void 0 ? void 0 : _a.columnGroupId) !== null && _b !== void 0 ? _b : '';
19
19
  });
20
20
  return count;
21
21
  };