@adaptabletools/adaptable 10.0.2 → 10.0.4-canary.2

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 (306) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/base.css +84 -32
  4. package/bundle.cjs.js +350 -0
  5. package/index.css +100 -34
  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 +24 -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 +22 -15
  17. package/src/AdaptableOptions/GeneralOptions.d.ts +3 -2
  18. package/src/AdaptableOptions/LayoutOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/MenuOptions.d.ts +11 -11
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +11 -1
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -2
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +108 -6
  23. package/src/Api/AdaptableApi.d.ts +12 -12
  24. package/src/Api/AlertApi.d.ts +1 -1
  25. package/src/Api/CalculatedColumnApi.d.ts +15 -0
  26. package/src/Api/ColumnApi.d.ts +49 -5
  27. package/src/Api/ConfigApi.d.ts +8 -0
  28. package/src/Api/EventApi.d.ts +1 -1
  29. package/src/Api/Events/AdaptableReady.d.ts +5 -8
  30. package/src/Api/Events/AdaptableStateChanged.d.ts +2 -1
  31. package/src/Api/Events/AlertFired.d.ts +2 -1
  32. package/src/Api/Events/BaseEventInfo.d.ts +10 -0
  33. package/src/{Utilities/Interface/ProgressIndicator.js → Api/Events/BaseEventInfo.js} +0 -0
  34. package/src/Api/Events/CellChanged.d.ts +2 -1
  35. package/src/Api/Events/ChexboxColumnClicked.d.ts +2 -1
  36. package/src/Api/Events/CustomToolbarConfigured.d.ts +2 -1
  37. package/src/Api/Events/DashboardChanged.d.ts +2 -1
  38. package/src/Api/Events/FlashingAlertFired.d.ts +2 -1
  39. package/src/Api/Events/GridDataChanged.d.ts +2 -1
  40. package/src/Api/Events/LayoutChanged.d.ts +2 -1
  41. package/src/Api/Events/LiveDataChanged.d.ts +2 -1
  42. package/src/Api/Events/SearchChanged.d.ts +2 -1
  43. package/src/Api/Events/SelectionChanged.d.ts +2 -1
  44. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +2 -1
  45. package/src/Api/Events/TeamSharingEntityChanged.d.ts +2 -1
  46. package/src/Api/Events/ThemeChanged.d.ts +2 -1
  47. package/src/Api/GridApi.d.ts +44 -18
  48. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/AlertApiImpl.js +22 -15
  50. package/src/Api/Implementation/CalculatedColumnApiImpl.d.ts +3 -0
  51. package/src/Api/Implementation/CalculatedColumnApiImpl.js +23 -0
  52. package/src/Api/Implementation/ColumnApiImpl.d.ts +12 -3
  53. package/src/Api/Implementation/ColumnApiImpl.js +79 -44
  54. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  55. package/src/Api/Implementation/ConfigApiImpl.js +28 -41
  56. package/src/Api/Implementation/DashboardApiImpl.js +2 -1
  57. package/src/Api/Implementation/ExportApiImpl.js +4 -4
  58. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -1
  59. package/src/Api/Implementation/FreeTextColumnApiImpl.js +9 -3
  60. package/src/Api/Implementation/GridApiImpl.d.ts +11 -2
  61. package/src/Api/Implementation/GridApiImpl.js +30 -13
  62. package/src/Api/Implementation/InternalApiImpl.d.ts +4 -2
  63. package/src/Api/Implementation/InternalApiImpl.js +21 -5
  64. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  65. package/src/Api/Implementation/LayoutApiImpl.js +19 -3
  66. package/src/Api/Implementation/PluginsApiImpl.d.ts +2 -2
  67. package/src/Api/Implementation/PluginsApiImpl.js +1 -1
  68. package/src/Api/Implementation/ScheduleApiImpl.js +6 -6
  69. package/src/Api/Implementation/ScopeApiImpl.js +11 -11
  70. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -0
  71. package/src/Api/Implementation/TeamSharingApiImpl.js +1 -0
  72. package/src/Api/Implementation/ThemeApiImpl.js +1 -0
  73. package/src/Api/Implementation/ToolPanelApiImpl.js +1 -1
  74. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +15 -11
  75. package/src/Api/Implementation/UserInterfaceApiImpl.js +73 -91
  76. package/src/Api/InternalApi.d.ts +4 -2
  77. package/src/Api/LayoutApi.d.ts +7 -0
  78. package/src/Api/PluginsApi.d.ts +1 -7
  79. package/src/Api/TeamSharingApi.d.ts +1 -1
  80. package/src/Api/ThemeApi.d.ts +2 -2
  81. package/src/Api/UserInterfaceApi.d.ts +19 -9
  82. package/src/PredefinedConfig/AdaptableState.d.ts +2 -10
  83. package/src/PredefinedConfig/AlertState.d.ts +5 -1
  84. package/src/PredefinedConfig/ApplicationState.d.ts +1 -1
  85. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -38
  86. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
  87. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +36 -36
  88. package/src/PredefinedConfig/Common/AdaptableColumn.js +5 -5
  89. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  90. package/src/PredefinedConfig/Common/AdaptablePredicate.js +19 -18
  91. package/src/PredefinedConfig/Common/AdaptableStyle.d.ts +7 -7
  92. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +4 -3
  93. package/src/PredefinedConfig/Common/DataUpdateConfig.d.ts +5 -1
  94. package/src/PredefinedConfig/Common/Menu.d.ts +40 -17
  95. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +49 -0
  96. package/src/PredefinedConfig/Common/SpecialColumnSettings.js +2 -0
  97. package/src/PredefinedConfig/Common/Types.d.ts +5 -5
  98. package/src/PredefinedConfig/Common/Types.js +9 -7
  99. package/src/PredefinedConfig/ConditionalStyleState.d.ts +1 -1
  100. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  101. package/src/PredefinedConfig/DataSourceState.d.ts +1 -1
  102. package/src/PredefinedConfig/ExportState.d.ts +3 -3
  103. package/src/PredefinedConfig/FilterState.d.ts +3 -3
  104. package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
  105. package/src/PredefinedConfig/FreeTextColumnState.d.ts +11 -1
  106. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  107. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -40
  108. package/src/PredefinedConfig/QuickSearchState.d.ts +3 -3
  109. package/src/PredefinedConfig/ScheduleState.d.ts +1 -1
  110. package/src/PredefinedConfig/Selection/GridCell.d.ts +2 -1
  111. package/src/PredefinedConfig/Selection/GridRow.d.ts +12 -4
  112. package/src/PredefinedConfig/SystemState.d.ts +4 -1
  113. package/src/PredefinedConfig/ThemeState.d.ts +5 -1
  114. package/src/Redux/ActionsReducers/DashboardRedux.js +2 -1
  115. package/src/Redux/ActionsReducers/GridRedux.d.ts +3 -2
  116. package/src/Redux/ActionsReducers/GridRedux.js +2 -2
  117. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +12 -2
  118. package/src/Redux/ActionsReducers/LayoutRedux.js +24 -1
  119. package/src/Redux/ActionsReducers/SystemRedux.js +1 -1
  120. package/src/Redux/DeadRedux.d.ts +4 -8
  121. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +6 -1
  122. package/src/Redux/Store/AdaptableStore.d.ts +3 -3
  123. package/src/Redux/Store/AdaptableStore.js +25 -16
  124. package/src/Strategy/AdaptableModuleBase.d.ts +2 -2
  125. package/src/Strategy/AdaptableModuleBase.js +8 -8
  126. package/src/Strategy/AlertModule.d.ts +2 -2
  127. package/src/Strategy/AlertModule.js +13 -105
  128. package/src/Strategy/BulkUpdateModule.d.ts +2 -2
  129. package/src/Strategy/BulkUpdateModule.js +7 -7
  130. package/src/Strategy/CalculatedColumnModule.js +1 -1
  131. package/src/Strategy/CellSummaryModule.d.ts +2 -2
  132. package/src/Strategy/CellSummaryModule.js +3 -3
  133. package/src/Strategy/ConditionalStyleModule.js +3 -3
  134. package/src/Strategy/CustomSortModule.js +2 -2
  135. package/src/Strategy/DashboardModule.d.ts +2 -2
  136. package/src/Strategy/DataChangeHistoryModule.js +2 -2
  137. package/src/Strategy/ExportModule.d.ts +2 -4
  138. package/src/Strategy/ExportModule.js +59 -62
  139. package/src/Strategy/FilterModule.d.ts +2 -2
  140. package/src/Strategy/FilterModule.js +4 -4
  141. package/src/Strategy/FormatColumnModule.js +6 -6
  142. package/src/Strategy/FreeTextColumnModule.js +1 -1
  143. package/src/Strategy/GridInfoModule.d.ts +2 -2
  144. package/src/Strategy/Interface/IModule.d.ts +2 -2
  145. package/src/Strategy/LayoutModule.d.ts +2 -2
  146. package/src/Strategy/LayoutModule.js +22 -9
  147. package/src/Strategy/PlusMinusModule.js +8 -9
  148. package/src/Strategy/SmartEditModule.d.ts +2 -2
  149. package/src/Strategy/SmartEditModule.js +8 -9
  150. package/src/Strategy/SystemStatusModule.d.ts +2 -2
  151. package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
  152. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  153. package/src/Utilities/Constants/ModuleConstants.d.ts +6 -6
  154. package/src/Utilities/Constants/ModuleConstants.js +7 -7
  155. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +9 -7
  156. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +1 -1
  157. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +2 -2
  158. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +3 -2
  159. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +1 -1
  160. package/src/Utilities/Helpers/DateHelper.d.ts +2 -2
  161. package/src/Utilities/Helpers/DateHelper.js +30 -20
  162. package/src/Utilities/Helpers/PreviewHelper.js +2 -2
  163. package/src/Utilities/Interface/Preview.d.ts +2 -1
  164. package/src/Utilities/ObjectFactory.d.ts +1 -1
  165. package/src/Utilities/ObjectFactory.js +14 -2
  166. package/src/Utilities/Services/DataService.js +5 -5
  167. package/src/Utilities/Services/LicenseService.js +16 -2
  168. package/src/Utilities/Services/ReportService.js +13 -12
  169. package/src/Utilities/Services/ValidationService.js +4 -5
  170. package/src/Utilities/runIfNotResolvedIn.d.ts +8 -0
  171. package/src/Utilities/runIfNotResolvedIn.js +23 -0
  172. package/src/View/AdaptableView.js +1 -1
  173. package/src/View/AdaptableViewFactory.d.ts +2 -1
  174. package/src/View/AdaptableViewFactory.js +2 -0
  175. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +7 -7
  176. package/src/View/Alert/AlertPopup.js +1 -1
  177. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +19 -5
  178. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +1 -1
  179. package/src/View/BulkUpdate/BulkUpdatePopup.d.ts +2 -0
  180. package/src/View/BulkUpdate/BulkUpdatePopup.js +6 -4
  181. package/src/View/BulkUpdate/BulkUpdateViewPanel.d.ts +2 -0
  182. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +3 -1
  183. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +1 -1
  184. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -1
  185. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -1
  186. package/src/View/CellSummary/CellSummaryViewPanel.js +2 -2
  187. package/src/View/Components/ColumnSelector/index.js +2 -2
  188. package/src/View/Components/FilterForm/FilterForm.d.ts +3 -51
  189. package/src/View/Components/FilterForm/FilterForm.js +57 -38
  190. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  191. package/src/View/Components/FilterForm/ListBoxFilterForm.js +18 -9
  192. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +3 -43
  193. package/src/View/Components/FilterForm/QuickFilterForm.js +74 -35
  194. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +3 -0
  195. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +8 -0
  196. package/src/View/Components/NewScopeComponent.js +1 -1
  197. package/src/View/Components/Panels/FilterFormPanel.d.ts +1 -1
  198. package/src/View/Components/Panels/PanelWithImage.d.ts +423 -1
  199. package/src/View/Components/Popups/AdaptablePopup.d.ts +1 -1
  200. package/src/View/Components/Popups/AdaptablePopupAlert.js +23 -10
  201. package/src/View/Components/PreviewResultsPanel.js +1 -1
  202. package/src/View/Components/RangesComponent.js +2 -2
  203. package/src/View/Components/Selectors/ColumnSelector.js +5 -5
  204. package/src/View/Components/Selectors/ColumnValueSelector.d.ts +10 -2
  205. package/src/View/Components/Selectors/ColumnValueSelector.js +47 -15
  206. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +10 -11
  207. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +1 -1
  208. package/src/View/Components/ToolPanel/ToolPanelPopup.js +2 -3
  209. package/src/View/ConditionalStyle/ConditionalStylePopup.js +1 -1
  210. package/src/View/ConditionalStyle/ConditionalStyleSummary.js +1 -1
  211. package/src/View/CustomSort/CustomSortEntityRow.d.ts +3 -1
  212. package/src/View/CustomSort/CustomSortEntityRow.js +3 -3
  213. package/src/View/CustomSort/CustomSortPopup.js +2 -2
  214. package/src/View/CustomSort/CustomSortSummary.js +3 -3
  215. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +4 -4
  216. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +24 -6
  217. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  218. package/src/View/Dashboard/Dashboard.js +2 -3
  219. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +1 -1
  220. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +11 -10
  221. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +6 -6
  222. package/src/View/Export/ExportCustomDestinationDialog.js +1 -1
  223. package/src/View/Export/ExportViewPanel.js +6 -6
  224. package/src/View/Filter/FilterSummary.js +2 -2
  225. package/src/View/FormatColumn/FormatColumnPopup.js +1 -1
  226. package/src/View/FormatColumn/FormatColumnSummary.js +1 -1
  227. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  228. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +4 -2
  229. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +5 -3
  230. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +1 -1
  231. package/src/View/GridInfo/ColumnInfoComponent.js +16 -16
  232. package/src/View/GridInfo/GridInfoPopup.js +4 -1
  233. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  234. package/src/View/Layout/LayoutViewPanel.js +2 -2
  235. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +6 -6
  236. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +1 -1
  237. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +1 -1
  238. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +1 -1
  239. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -2
  240. package/src/View/Layout/Wizard/LayoutEditor/index.js +41 -41
  241. package/src/View/PlusMinus/PlusMinusPopup.js +1 -1
  242. package/src/View/PlusMinus/PlusMinusSummary.js +1 -1
  243. package/src/View/Query/QueryViewPanel.js +3 -3
  244. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -3
  245. package/src/View/Schedule/SchedulePopup.js +3 -3
  246. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  247. package/src/View/SmartEdit/SmartEditPopup.js +1 -1
  248. package/src/View/StateManagement/StateManagementPopup.d.ts +2 -12
  249. package/src/View/StateManagement/StateManagementPopup.js +21 -114
  250. package/src/View/StateManagement/StateManagementViewPanel.d.ts +5 -0
  251. package/src/View/StateManagement/StateManagementViewPanel.js +22 -0
  252. package/src/View/StateManagement/components/ClearButton.d.ts +6 -0
  253. package/src/View/StateManagement/components/ClearButton.js +9 -0
  254. package/src/View/StateManagement/components/ExportDropdown.d.ts +8 -0
  255. package/src/View/StateManagement/components/ExportDropdown.js +43 -0
  256. package/src/View/StateManagement/components/LoadButton.d.ts +7 -0
  257. package/src/View/StateManagement/components/LoadButton.js +38 -0
  258. package/src/View/StateManagement/handleExportState.d.ts +1 -0
  259. package/src/View/StateManagement/handleExportState.js +22 -0
  260. package/src/View/Theme/ThemeViewPanel.js +1 -1
  261. package/src/View/UIHelper.d.ts +2 -0
  262. package/src/View/UIHelper.js +10 -1
  263. package/src/agGrid/ActionColumnRenderer.d.ts +2 -1
  264. package/src/agGrid/ActionColumnRenderer.js +21 -4
  265. package/src/agGrid/Adaptable.d.ts +28 -11
  266. package/src/agGrid/Adaptable.js +326 -168
  267. package/src/agGrid/agGridHelper.d.ts +4 -4
  268. package/src/agGrid/agGridHelper.js +46 -46
  269. package/src/agGrid/agGridMenuHelper.d.ts +15 -13
  270. package/src/agGrid/agGridMenuHelper.js +55 -47
  271. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.d.ts +1 -1
  272. package/src/agGrid/editors/AdaptableDateEditor/InternalAdaptableDateEditor.js +11 -6
  273. package/src/agGrid/editors/AdaptableDateEditor/index.d.ts +3 -2
  274. package/src/agGrid/editors/AdaptableDateEditor/index.js +16 -6
  275. package/src/agGrid/editors/AdaptableNumberEditor/index.d.ts +1 -0
  276. package/src/agGrid/editors/AdaptableNumberEditor/index.js +7 -2
  277. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -3
  278. package/src/components/Dashboard/Dashboard.js +1 -1
  279. package/src/components/Datepicker/DatepickerContext.d.ts +2 -2
  280. package/src/components/Datepicker/index.js +9 -5
  281. package/src/components/DropdownButton/index.js +1 -1
  282. package/src/components/ExpressionEditor/index.js +7 -7
  283. package/src/components/Loader/Loader.d.ts +7 -0
  284. package/src/components/Loader/Loader.js +13 -0
  285. package/src/components/Loader/index.d.ts +2 -0
  286. package/src/components/Loader/index.js +7 -0
  287. package/src/components/Modal/index.d.ts +1 -1
  288. package/src/components/OverlayTrigger/index.js +3 -3
  289. package/src/components/OverlayTrigger/useAgGridClassName.d.ts +2 -0
  290. package/src/components/OverlayTrigger/{useVendorClassName.js → useAgGridClassName.js} +3 -3
  291. package/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -0
  292. package/src/components/ProgressIndicator/ProgressIndicator.js +54 -0
  293. package/src/components/icons/index.js +2 -0
  294. package/src/components/icons/upload.d.ts +3 -0
  295. package/src/components/icons/upload.js +8 -0
  296. package/src/metamodel/adaptable.metamodel.d.ts +176 -52
  297. package/src/metamodel/adaptable.metamodel.js +659 -366
  298. package/src/types.d.ts +5 -4
  299. package/version.d.ts +1 -1
  300. package/version.js +1 -1
  301. package/src/PredefinedConfig/DeprecatedState.d.ts +0 -82
  302. package/src/PredefinedConfig/DeprecatedState.js +0 -5
  303. package/src/Utilities/Interface/ProgressIndicator.d.ts +0 -4
  304. package/src/View/Export/ProgressIndicator.d.ts +0 -6
  305. package/src/View/Export/ProgressIndicator.js +0 -25
  306. package/src/components/OverlayTrigger/useVendorClassName.d.ts +0 -2
@@ -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,22 +2,26 @@ 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';
6
- import { ActionColumn, CellValuesList } from '../../AdaptableOptions/UserInterfaceOptions';
5
+ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../../PredefinedConfig/Common/Menu';
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;
10
- getAllPermittedValuesItems(): CellValuesList[];
11
- private getPermittedValuesItemsWithColumnScope;
12
- private getPermittedValuesItemsWithDataTypeScope;
13
- private getPermittedValuesItemsWithAllScope;
11
+ getAllPermittedValuesItems(): PermittedValues[];
14
12
  private getPermittedValuesForScope;
15
13
  getPermittedValuesForColumn(column: AdaptableColumn): any[] | undefined;
16
- getAllEditLookUpItems(): CellValuesList[];
17
- getEditLookUpItemForColumn(columnId: string): CellValuesList | undefined;
18
- getEditLookUpValuesForEditLookUpItem(editLookUpItem: CellValuesList, columnId: string): any[] | undefined;
19
- addColumnMenuItem(columnMenuItem: UserMenuItem): void;
20
- addContextMenuItem(contextMenuItem: UserMenuItem): void;
14
+ getAllFilterPermittedValuesItems(): FilterPermittedValues[];
15
+ getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
16
+ getAllCustomSortPermittedValuesItems(): CustomSortPermittedValues[];
17
+ getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
18
+ getAllBulkUpdatePermittedValuesItems(): BulkUpdatePermittedValues[];
19
+ getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
20
+ getAllEditLookUpItems(): EditLookUpPermittedValues[];
21
+ getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
22
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
23
+ addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
24
+ addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
21
25
  getEditableCellStyle(): AdaptableStyle | undefined;
22
26
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
23
27
  getAllActionColumn(): ActionColumn[];
@@ -22,51 +22,32 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
22
22
  return this.getUserInterfaceOptions().styleClassNames;
23
23
  }
24
24
  getAllPermittedValuesItems() {
25
- return this.getUserInterfaceOptions().permittedValues;
25
+ var _a, _b;
26
+ return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.permittedValues) !== null && _b !== void 0 ? _b : [];
26
27
  }
27
- getPermittedValuesItemsWithColumnScope() {
28
- return this.getAllPermittedValuesItems().filter((pv) => {
29
- return 'ColumnIds' in pv.scope == true;
30
- });
31
- }
32
- getPermittedValuesItemsWithDataTypeScope() {
33
- return this.getAllPermittedValuesItems().filter((pv) => {
34
- return 'DataTypes' in pv.scope == true;
35
- });
36
- }
37
- getPermittedValuesItemsWithAllScope() {
38
- return this.getAllPermittedValuesItems().filter((pv) => {
39
- return 'All' in pv.scope == true;
40
- });
41
- }
42
- getPermittedValuesForScope(column) {
28
+ getPermittedValuesForScope(column, permittedValues) {
43
29
  let permittedValuesItem;
44
- this.getPermittedValuesItemsWithColumnScope().forEach((pv) => {
45
- if (!permittedValuesItem) {
46
- if (this.adaptable.api.scopeApi.isColumnInScope(column, pv.scope)) {
47
- permittedValuesItem = pv;
48
- }
49
- }
30
+ /**
31
+ * The previous implementation prioritized column-id, data-types and all
32
+ */
33
+ // columns id
34
+ permittedValuesItem = permittedValues.find((permittedValue) => {
35
+ return ('ColumnIds' in permittedValue.scope &&
36
+ this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
50
37
  });
51
38
  if (permittedValuesItem) {
52
39
  return permittedValuesItem;
53
40
  }
54
- this.getPermittedValuesItemsWithDataTypeScope().forEach((pv) => {
55
- if (!permittedValuesItem) {
56
- if (this.adaptable.api.scopeApi.isColumnInScope(column, pv.scope)) {
57
- permittedValuesItem = pv;
58
- }
59
- }
41
+ permittedValuesItem = permittedValues.find((permittedValue) => {
42
+ return ('DataTypes' in permittedValue.scope &&
43
+ this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
60
44
  });
61
45
  if (permittedValuesItem) {
62
46
  return permittedValuesItem;
63
47
  }
64
- this.getPermittedValuesItemsWithAllScope().forEach((pv) => {
65
- if (!permittedValuesItem) {
66
- if (this.adaptable.api.scopeApi.isColumnInScope(column, pv.scope)) {
67
- permittedValuesItem = pv;
68
- }
69
- }
48
+ permittedValuesItem = permittedValues.find((permittedValue) => {
49
+ return ('All' in permittedValue.scope &&
50
+ this.adaptable.api.scopeApi.isColumnInScope(column, permittedValue.scope));
70
51
  });
71
52
  if (permittedValuesItem) {
72
53
  return permittedValuesItem;
@@ -77,7 +58,8 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
77
58
  if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(this.getAllPermittedValuesItems())) {
78
59
  return undefined;
79
60
  }
80
- let permittedValuesColumn = this.getPermittedValuesForScope(column);
61
+ const allPermittedValues = this.getAllPermittedValuesItems();
62
+ let permittedValuesColumn = this.getPermittedValuesForScope(column, allPermittedValues);
81
63
  if (!permittedValuesColumn) {
82
64
  return undefined;
83
65
  }
@@ -85,7 +67,11 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
85
67
  // first do the function then get hardcoded items
86
68
  if (permittedValues != null && typeof permittedValues === 'function') {
87
69
  if (column) {
88
- return permittedValues(column);
70
+ const permittedValuesParams = {
71
+ adaptableApi: this.adaptable.api,
72
+ column: column,
73
+ };
74
+ return permittedValues(permittedValuesParams);
89
75
  }
90
76
  }
91
77
  else {
@@ -96,69 +82,65 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
96
82
  }
97
83
  return undefined;
98
84
  }
99
- getAllEditLookUpItems() {
100
- return this.getUserInterfaceOptions().editLookUpItems;
85
+ getAllFilterPermittedValuesItems() {
86
+ var _a, _b;
87
+ return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.filterPermittedValues) !== null && _b !== void 0 ? _b : [];
101
88
  }
102
- getEditLookUpItemForColumn(columnId) {
103
- const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
104
- if (!abColumn) {
89
+ getFilterPermittedValuesForColumn(column) {
90
+ const allFilterPermittedValuesItems = this.getAllFilterPermittedValuesItems();
91
+ if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
105
92
  return undefined;
106
93
  }
107
- let editLookUpItem;
108
- let editLookUpItems = this.getAllEditLookUpItems();
109
- if (!editLookUpItems) {
94
+ return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
95
+ }
96
+ getAllCustomSortPermittedValuesItems() {
97
+ var _a, _b;
98
+ return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.customSortPermittedValues) !== null && _b !== void 0 ? _b : [];
99
+ }
100
+ getCustomSortPermittedValuesForColumn(column) {
101
+ const allFilterPermittedValuesItems = this.getAllCustomSortPermittedValuesItems();
102
+ if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
110
103
  return undefined;
111
104
  }
112
- // first we get any for the column as that is lower level
113
- const columnEditLookItems = editLookUpItems.filter((pv) => {
114
- return 'ColumnIds' in pv.scope == true;
115
- });
116
- columnEditLookItems.forEach((eli) => {
117
- if (this.adaptable.api.scopeApi.isColumnInScopeColumns(abColumn, eli.scope)) {
118
- editLookUpItem = eli;
119
- }
120
- });
121
- if (editLookUpItem) {
122
- return editLookUpItem;
123
- }
124
- // then we get any for the DataType
125
- const dateEditLookItems = editLookUpItems.filter((pv) => {
126
- return 'DataTypes' in pv.scope == true;
127
- });
128
- dateEditLookItems.forEach((eli) => {
129
- if (this.adaptable.api.scopeApi.isColumnInDateScope(abColumn, eli.scope)) {
130
- editLookUpItem = eli;
131
- }
132
- });
133
- if (editLookUpItem) {
134
- return editLookUpItem;
135
- }
136
- // then we get any for All
137
- const allTypeEditLookItems = editLookUpItems.filter((pv) => {
138
- return 'All' in pv.scope == true;
139
- });
140
- allTypeEditLookItems.forEach((eli) => {
141
- if (this.adaptable.api.scopeApi.isColumnInScope(abColumn, eli.scope)) {
142
- editLookUpItem = eli;
143
- }
144
- });
145
- if (editLookUpItem) {
146
- return editLookUpItem;
147
- }
148
- return undefined;
105
+ return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
149
106
  }
150
- getEditLookUpValuesForEditLookUpItem(editLookUpItem, columnId) {
151
- if (!editLookUpItem) {
107
+ getAllBulkUpdatePermittedValuesItems() {
108
+ var _a, _b;
109
+ return (_b = (_a = this.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.bulkUpdatePermittedValues) !== null && _b !== void 0 ? _b : [];
110
+ }
111
+ getBulkUpdatePermittedValuesForColumn(column) {
112
+ const allFilterPermittedValuesItems = this.getAllBulkUpdatePermittedValuesItems();
113
+ if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(allFilterPermittedValuesItems)) {
152
114
  return undefined;
153
115
  }
154
- const column = this.adaptable.api.columnApi.getColumnFromId(columnId);
116
+ return this.getPermittedValuesForScope(column, allFilterPermittedValuesItems);
117
+ }
118
+ getAllEditLookUpItems() {
119
+ return this.getUserInterfaceOptions().editLookUpItems || [];
120
+ }
121
+ getEditLookUpItemForColumn(column) {
155
122
  if (!column) {
156
123
  return undefined;
157
124
  }
125
+ let editLookUpItems = this.getAllEditLookUpItems();
126
+ if (!editLookUpItems) {
127
+ return undefined;
128
+ }
129
+ return this.getPermittedValuesForScope(column, editLookUpItems);
130
+ }
131
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem, gridCell) {
132
+ if (!editLookUpItem || !gridCell || !gridCell.column) {
133
+ return undefined;
134
+ }
158
135
  let editLookUpValues = editLookUpItem.values;
159
136
  // first do the function then get hardcoded items
160
137
  if (editLookUpValues != null && typeof editLookUpValues === 'function') {
161
- return editLookUpValues(column);
138
+ const editLookUpParams = {
139
+ adaptableApi: this.adaptable.api,
140
+ column: gridCell.column,
141
+ gridCell: gridCell,
142
+ };
143
+ return editLookUpValues(editLookUpParams);
162
144
  }
163
145
  else {
164
146
  let arr = editLookUpValues;
@@ -168,15 +150,15 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
168
150
  }
169
151
  // if no hard-coded values or function provided then just get the distinct values for the column
170
152
  // this will use the columnapi method that first looks for permitted values and then distinct values
171
- return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(columnId);
153
+ return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
172
154
  }
173
- addColumnMenuItem(columnMenuItem) {
155
+ addColumnMenuItem(userMenuItem) {
174
156
  var _a;
175
- (_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);
176
158
  }
177
- addContextMenuItem(contextMenuItem) {
159
+ addContextMenuItem(userMenuItem) {
178
160
  var _a;
179
- (_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);
180
162
  }
181
163
  getEditableCellStyle() {
182
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;
@@ -116,4 +116,6 @@ export interface InternalApi {
116
116
  destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar'): void;
117
117
  initializeDataChangeHistory(): void;
118
118
  isTextComparisonCaseSensitive(): boolean;
119
+ executeWithProgressIndicator(label: string, executeFn: () => unknown): void;
120
+ hideProgressIndicator(): void;
119
121
  }
@@ -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';
4
- import { ActionColumn, CellValuesList } from '../AdaptableOptions/UserInterfaceOptions';
3
+ import { ColumnMenuContext, ContextMenuContext, UserMenuItem } from '../PredefinedConfig/Common/Menu';
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
  */
@@ -17,37 +18,46 @@ export interface UserInterfaceApi {
17
18
  /**
18
19
  * Retrieves `permittedValues` property from User Interface Options
19
20
  */
20
- getAllPermittedValuesItems(): CellValuesList[];
21
+ getAllPermittedValuesItems(): PermittedValues[];
21
22
  /**
22
23
  * Retrieves Permitted Values for a given Column
23
24
  * @param column column for which to retrieve Permitted Values
24
25
  */
25
26
  getPermittedValuesForColumn(column: AdaptableColumn): any[];
27
+ /**
28
+ * Retrieves Permitted values for filtering by column values in Floating Filter and dropdown Filter.
29
+ */
30
+ getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
31
+ /**
32
+ * Retrieves Permitted values for Custom sort.
33
+ */
34
+ getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
35
+ getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
26
36
  /**
27
37
  * Retrieves `editLookUpItems` property from User Interface Options
28
38
  */
29
- getAllEditLookUpItems(): CellValuesList[];
39
+ getAllEditLookUpItems(): EditLookUpPermittedValues[];
30
40
  /**
31
41
  * Retrieves EditLookUpItems for a given Column
32
42
  * @param columnId Column for which to retrieve EditLookUpItems
33
43
  */
34
- getEditLookUpItemForColumn(columnId: string): CellValuesList | undefined;
44
+ getEditLookUpItemForColumn(column: AdaptableColumn): EditLookUpPermittedValues | undefined;
35
45
  /**
36
46
  * Retrieves actual Look Up Values from an EditLookUpItem
37
47
  * @param editLookUpItem editLookUpItem to check
38
- * @param columnId Column to check
48
+ * @param gridCell: the currently edited Grid Cell
39
49
  */
40
- getEditLookUpValuesForEditLookUpItem(editLookUpItem: CellValuesList, columnId: string): any[] | undefined;
50
+ getEditLookUpValuesForEditLookUpItem(editLookUpItem: EditLookUpPermittedValues, gridCell: GridCell): any[] | undefined;
41
51
  /**
42
52
  * Adds menu item to Column Menu
43
53
  * @param userMenuItem Menu Item to add
44
54
  */
45
- addColumnMenuItem(userMenuItem: UserMenuItem): void;
55
+ addColumnMenuItem(userMenuItem: UserMenuItem<ColumnMenuContext>): void;
46
56
  /**
47
57
  * Adds menu item to Context Menu
48
58
  * @param userMenuItem Menu Item to add
49
59
  */
50
- addContextMenuItem(userMenuItem: UserMenuItem): void;
60
+ addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
51
61
  /**
52
62
  * Returns Style set for Editable cells
53
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
  }
@@ -12,7 +12,7 @@ import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQu
12
12
  import { ButtonStyle } from './Common/ButtonStyle';
13
13
  import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
14
14
  /**
15
- * Predefined Configuration for Alert function
15
+ * Predefined Configuration for Alert Module
16
16
  */
17
17
  export interface AlertState extends ConfigState {
18
18
  /**
@@ -82,6 +82,10 @@ export interface AlertDefinition extends BaseAlertDefinition {
82
82
  * Type of Alert: 'Info', 'Success', 'Warning', 'Error'; influences Alert colour, icon and logging
83
83
  */
84
84
  MessageType: AdaptableMessageType;
85
+ /**
86
+ * Alert Message - can be string or function; if not provided AdapTable creates dynamically using Rule & Scope
87
+ */
88
+ MessageText?: string;
85
89
  /**
86
90
  * Series of properties which set what happens when Alert is triggered
87
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
  /**