@adaptabletools/adaptable 10.0.4-canary.4 → 11.0.0-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 (507) hide show
  1. package/LICENSE.md +1 -1
  2. package/agGrid.d.ts +2 -2
  3. package/base.css +216 -47
  4. package/bundle.cjs.js +118 -113
  5. package/index.css +257 -49
  6. package/package.json +4 -3
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +12 -7
  10. package/src/AdaptableOptions/AdaptableOptions.d.ts +19 -3
  11. package/src/AdaptableOptions/ContainerOptions.d.ts +0 -7
  12. package/src/AdaptableOptions/DashboardOptions.d.ts +7 -9
  13. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
  14. package/src/AdaptableOptions/EditOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/FilterOptions.d.ts +2 -2
  17. package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
  18. package/src/AdaptableOptions/FlashingCellOptions.d.ts +31 -0
  19. package/src/AdaptableOptions/{ChartPluginOptions.js → FlashingCellOptions.js} +0 -0
  20. package/src/AdaptableOptions/GeneralOptions.d.ts +1 -1
  21. package/src/AdaptableOptions/MenuOptions.d.ts +2 -2
  22. package/src/AdaptableOptions/NotificationsOptions.d.ts +2 -8
  23. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +87 -0
  24. package/src/{Api/ChartApi.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
  25. package/src/AdaptableOptions/TeamSharingOptions.d.ts +1 -1
  26. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -14
  27. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +34 -0
  28. package/src/Api/AdaptableApi.d.ts +9 -7
  29. package/src/Api/AlertApi.d.ts +4 -79
  30. package/src/Api/ChartingApi.d.ts +9 -0
  31. package/src/Api/{Events/FlashingAlertFired.js → ChartingApi.js} +0 -0
  32. package/src/Api/ColumnApi.d.ts +11 -1
  33. package/src/Api/ConfigApi.d.ts +0 -12
  34. package/src/Api/DataChangeHistoryApi.d.ts +4 -0
  35. package/src/Api/EventApi.d.ts +8 -8
  36. package/src/Api/Events/AdaptableReady.d.ts +1 -1
  37. package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
  38. package/src/Api/{SparklineColumnApi.js → Events/FlashingCellDisplayed.js} +0 -0
  39. package/src/Api/Events/GridDataChanged.d.ts +3 -1
  40. package/src/Api/Events/SearchChanged.d.ts +1 -1
  41. package/src/Api/FlashingCellApi.d.ts +89 -0
  42. package/src/{PredefinedConfig/ChartState.js → Api/FlashingCellApi.js} +0 -0
  43. package/src/Api/GridApi.d.ts +28 -5
  44. package/src/Api/Implementation/AdaptableApiImpl.d.ts +4 -2
  45. package/src/Api/Implementation/AdaptableApiImpl.js +4 -2
  46. package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
  47. package/src/Api/Implementation/AlertApiImpl.js +40 -107
  48. package/src/Api/Implementation/CalculatedColumnApiImpl.js +1 -1
  49. package/src/Api/Implementation/ChartingApiImpl.d.ts +5 -0
  50. package/src/Api/Implementation/ChartingApiImpl.js +10 -0
  51. package/src/Api/Implementation/ColumnApiImpl.d.ts +3 -1
  52. package/src/Api/Implementation/ColumnApiImpl.js +9 -3
  53. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  54. package/src/Api/Implementation/ConfigApiImpl.js +0 -21
  55. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  56. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
  57. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +24 -0
  58. package/src/Api/Implementation/FlashingCellApiImpl.js +111 -0
  59. package/src/Api/Implementation/FreeTextColumnApiImpl.js +1 -1
  60. package/src/Api/Implementation/GridApiImpl.d.ts +13 -8
  61. package/src/Api/Implementation/GridApiImpl.js +39 -17
  62. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -7
  63. package/src/Api/Implementation/InternalApiImpl.js +5 -18
  64. package/src/Api/Implementation/LayoutApiImpl.js +12 -0
  65. package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
  66. package/src/Api/Implementation/PluginsApiImpl.js +0 -6
  67. package/src/Api/Implementation/PlusMinusApiImpl.js +1 -1
  68. package/src/Api/Implementation/QueryApiImpl.js +1 -1
  69. package/src/Api/Implementation/ScheduleApiImpl.js +5 -5
  70. package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
  71. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
  72. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  73. package/src/Api/InternalApi.d.ts +4 -9
  74. package/src/Api/PluginsApi.d.ts +0 -2
  75. package/src/Api/SmartEditApi.d.ts +4 -4
  76. package/src/PredefinedConfig/AdaptableState.d.ts +2 -4
  77. package/src/PredefinedConfig/AlertState.d.ts +13 -54
  78. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
  79. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
  80. package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
  81. package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.js → AdaptableFlashingCell.js} +0 -0
  82. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +4 -4
  83. package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -38
  84. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
  85. package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
  86. package/src/PredefinedConfig/Common/Enums.js +1 -0
  87. package/src/PredefinedConfig/Common/Menu.d.ts +16 -20
  88. package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
  89. package/src/PredefinedConfig/Common/Schedule.js +0 -14
  90. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +4 -0
  91. package/src/PredefinedConfig/Common/Types.d.ts +6 -5
  92. package/src/PredefinedConfig/Common/Types.js +0 -2
  93. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  94. package/src/PredefinedConfig/DashboardState.d.ts +6 -5
  95. package/src/PredefinedConfig/FlashingCellState.d.ts +65 -0
  96. package/src/PredefinedConfig/{SparklineColumnState.js → FlashingCellState.js} +0 -0
  97. package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
  98. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  99. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -10
  100. package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
  101. package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
  102. package/src/PredefinedConfig/SystemState.d.ts +17 -8
  103. package/src/PredefinedConfig/ThemeState.d.ts +2 -1
  104. package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
  105. package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
  106. package/src/Redux/ActionsReducers/DashboardRedux.d.ts +0 -7
  107. package/src/Redux/ActionsReducers/DashboardRedux.js +3 -13
  108. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
  109. package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
  110. package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -3
  111. package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -25
  112. package/src/Redux/ActionsReducers/SystemRedux.js +94 -60
  113. package/src/Redux/ActionsReducers/ToolPanelRedux.js +1 -1
  114. package/src/Redux/Store/AdaptableStore.js +90 -66
  115. package/src/Strategy/AdaptableModuleBase.d.ts +1 -1
  116. package/src/Strategy/AdaptableModuleBase.js +0 -3
  117. package/src/Strategy/AlertModule.d.ts +14 -5
  118. package/src/Strategy/AlertModule.js +40 -123
  119. package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
  120. package/src/Strategy/CalculatedColumnModule.js +34 -0
  121. package/src/Strategy/ChartingModule.d.ts +7 -0
  122. package/src/Strategy/ChartingModule.js +15 -0
  123. package/src/Strategy/ConditionalStyleModule.d.ts +12 -0
  124. package/src/Strategy/ConditionalStyleModule.js +28 -0
  125. package/src/Strategy/CustomSortModule.d.ts +12 -1
  126. package/src/Strategy/CustomSortModule.js +26 -0
  127. package/src/Strategy/DashboardModule.d.ts +0 -1
  128. package/src/Strategy/DashboardModule.js +1 -7
  129. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  130. package/src/Strategy/DataSourceModule.d.ts +9 -1
  131. package/src/Strategy/DataSourceModule.js +28 -0
  132. package/src/Strategy/ExportModule.d.ts +12 -0
  133. package/src/Strategy/ExportModule.js +43 -0
  134. package/src/Strategy/FilterModule.d.ts +8 -1
  135. package/src/Strategy/FilterModule.js +28 -0
  136. package/src/Strategy/FlashingCellModule.d.ts +33 -0
  137. package/src/Strategy/FlashingCellModule.js +219 -0
  138. package/src/Strategy/FormatColumnModule.d.ts +11 -1
  139. package/src/Strategy/FormatColumnModule.js +35 -0
  140. package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
  141. package/src/Strategy/FreeTextColumnModule.js +45 -0
  142. package/src/Strategy/GridInfoModule.js +58 -36
  143. package/src/Strategy/Interface/IModule.d.ts +70 -1
  144. package/src/Strategy/LayoutModule.js +15 -3
  145. package/src/Strategy/PlusMinusModule.d.ts +11 -0
  146. package/src/Strategy/PlusMinusModule.js +34 -0
  147. package/src/Strategy/QueryModule.d.ts +20 -0
  148. package/src/Strategy/QueryModule.js +25 -0
  149. package/src/Strategy/ScheduleModule.d.ts +17 -1
  150. package/src/Strategy/ScheduleModule.js +148 -2
  151. package/src/Strategy/SetingsPanelModule.d.ts +11 -0
  152. package/src/Strategy/SetingsPanelModule.js +30 -0
  153. package/src/Strategy/ShortcutModule.d.ts +11 -0
  154. package/src/Strategy/ShortcutModule.js +22 -0
  155. package/src/Strategy/ToolPanelModule.js +1 -1
  156. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
  157. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
  158. package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
  159. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
  160. package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
  161. package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
  162. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
  163. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
  164. package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
  165. package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
  166. package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
  167. package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
  168. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
  169. package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
  170. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
  171. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
  172. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
  173. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
  174. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +5 -0
  175. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +9 -0
  176. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
  177. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
  178. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.d.ts +3 -0
  179. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +10 -0
  180. package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
  181. package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
  182. package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
  183. package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
  184. package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
  185. package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
  186. package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
  187. package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
  188. package/src/Utilities/Constants/ConfigConstants.d.ts +0 -1
  189. package/src/Utilities/Constants/ConfigConstants.js +1 -2
  190. package/src/Utilities/Constants/GeneralConstants.d.ts +0 -9
  191. package/src/Utilities/Constants/GeneralConstants.js +1 -12
  192. package/src/Utilities/Constants/ModuleConstants.d.ts +3 -2
  193. package/src/Utilities/Constants/ModuleConstants.js +4 -3
  194. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +26 -18
  195. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +7 -0
  196. package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
  197. package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
  198. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  199. package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
  200. package/src/Utilities/Helpers/StyleHelper.js +4 -1
  201. package/src/Utilities/Interface/MessagePopups.d.ts +0 -3
  202. package/src/Utilities/MenuItem.d.ts +1 -1
  203. package/src/Utilities/MenuItem.js +2 -2
  204. package/src/Utilities/ObjectFactory.d.ts +6 -17
  205. package/src/Utilities/ObjectFactory.js +14 -84
  206. package/src/Utilities/Services/AlertService.d.ts +3 -3
  207. package/src/Utilities/Services/AlertService.js +11 -17
  208. package/src/Utilities/Services/EntitlementService.d.ts +1 -0
  209. package/src/Utilities/Services/EntitlementService.js +9 -1
  210. package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
  211. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
  212. package/src/Utilities/Services/ModuleService.js +13 -17
  213. package/src/Utilities/Services/TeamSharingService.js +3 -4
  214. package/src/View/AdaptableView.js +3 -9
  215. package/src/View/AdaptableViewFactory.js +0 -26
  216. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +4 -3
  217. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +2 -1
  218. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -10
  219. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
  220. package/src/View/AdaptableWizardView/index.js +1 -1
  221. package/src/View/Alert/AlertEmptyView.d.ts +5 -0
  222. package/src/View/Alert/AlertEmptyView.js +16 -0
  223. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
  224. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
  225. package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
  226. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
  227. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -0
  228. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
  229. package/src/View/Alert/Wizard/AlertWizard.js +20 -6
  230. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +5 -2
  231. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +5 -2
  232. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
  233. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  234. package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
  235. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  236. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
  237. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +16 -0
  238. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -0
  239. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +17 -40
  240. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +20 -3
  241. package/src/View/CellSummary/CellSummaryPopup.js +2 -2
  242. package/src/View/ColorPicker.d.ts +1 -1
  243. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  244. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  245. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +14 -0
  246. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +82 -0
  247. package/src/View/Components/AdaptableObjectList/index.d.ts +1 -0
  248. package/src/View/Components/AdaptableObjectList/index.js +5 -0
  249. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  250. package/src/View/Components/Buttons/ButtonDelete.js +3 -2
  251. package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -3
  252. package/src/View/Components/Buttons/ButtonEdit.js +4 -6
  253. package/src/View/Components/Buttons/ButtonShare.js +3 -2
  254. package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
  255. package/src/View/Components/Buttons/{SuspendToggleButton.d.ts → SuspendToggleButton/SuspendToggleButton.d.ts} +5 -3
  256. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +19 -0
  257. package/src/View/Components/Buttons/SuspendToggleButton/index.d.ts +1 -0
  258. package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -0
  259. package/src/View/Components/ExternalRenderer.d.ts +14 -0
  260. package/src/View/Components/ExternalRenderer.js +32 -0
  261. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -3
  262. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  263. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  264. package/src/View/Components/ModuleValueSelector/index.d.ts +3 -1
  265. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  266. package/src/View/Components/NewScopeComponent.js +1 -1
  267. package/src/View/Components/Panels/PanelWithImage.d.ts +4 -4
  268. package/src/View/Components/Panels/PanelWithImage.js +2 -2
  269. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
  270. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +120 -0
  271. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
  272. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
  273. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
  274. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
  275. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
  276. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
  277. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
  278. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
  279. package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
  280. package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
  281. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
  282. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
  283. package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
  284. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
  285. package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
  286. package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
  287. package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
  288. package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
  289. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +45 -80
  290. package/src/View/Components/ToolPanel/ToolPanelPopup.js +12 -4
  291. package/src/View/Components/ValueSelector/index.d.ts +1 -0
  292. package/src/View/Components/ValueSelector/index.js +6 -6
  293. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
  294. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
  295. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -4
  296. package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
  297. package/src/View/Dashboard/Dashboard.d.ts +0 -1
  298. package/src/View/Dashboard/Dashboard.js +13 -83
  299. package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
  300. package/src/View/Dashboard/DashboardPopup.js +38 -8
  301. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +4 -4
  302. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +3 -3
  303. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +3 -3
  304. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +1 -2
  305. package/src/View/DataSource/Wizard/DataSourceWizard.js +17 -2
  306. package/src/View/Export/ReportExportDropdown.d.ts +5 -0
  307. package/src/View/Export/ReportExportDropdown.js +37 -0
  308. package/src/View/Export/Wizard/NewReportWizard.js +15 -2
  309. package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
  310. package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
  311. package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
  312. package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
  313. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
  314. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +14 -14
  315. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
  316. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
  317. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.d.ts +10 -0
  318. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +66 -0
  319. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
  320. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
  321. package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
  322. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +97 -0
  323. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
  324. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
  325. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
  326. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
  327. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
  328. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
  329. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
  330. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
  331. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +15 -10
  332. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +19 -5
  333. package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
  334. package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
  335. package/src/View/GridInfo/GridInfoPopup.js +22 -16
  336. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  337. package/src/View/Layout/LayoutPopup.js +4 -6
  338. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +3 -1
  339. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -2
  340. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  341. package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -2
  342. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +18 -4
  343. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  344. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
  345. package/src/View/Query/Wizard/NamedQueryWizard.js +17 -2
  346. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  347. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -2
  348. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +7 -8
  349. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
  350. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +9 -9
  351. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +5 -0
  352. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +59 -48
  353. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
  354. package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
  355. package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
  356. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
  357. package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
  358. package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
  359. package/src/View/Shortcut/shortcutKeys.js +0 -1
  360. package/src/View/SmartEdit/SmartEditPopup.js +2 -2
  361. package/src/View/SpecialColumnSettingsWizardStep.d.ts +9 -0
  362. package/src/View/SpecialColumnSettingsWizardStep.js +62 -0
  363. package/src/View/StateManagement/StateManagementPopup.js +16 -15
  364. package/src/View/SystemStatus/SystemStatusPopup.js +3 -3
  365. package/src/View/TeamSharing/TeamSharingPopup.js +2 -2
  366. package/src/View/Theme/ThemePopup.js +5 -7
  367. package/src/View/UIHelper.d.ts +3 -5
  368. package/src/View/UIHelper.js +35 -49
  369. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
  370. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
  371. package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
  372. package/src/agGrid/Adaptable.d.ts +24 -11
  373. package/src/agGrid/Adaptable.js +227 -81
  374. package/src/agGrid/agGridHelper.d.ts +2 -2
  375. package/src/agGrid/agGridHelper.js +21 -6
  376. package/src/agGrid/agGridMenuHelper.js +11 -7
  377. package/src/components/ApplicationIcon.d.ts +5 -0
  378. package/src/components/ApplicationIcon.js +13 -0
  379. package/src/components/Dashboard/Dashboard.js +1 -1
  380. package/src/components/Dashboard/DashboardManager.js +1 -1
  381. package/src/components/Datepicker/index.d.ts +1 -1
  382. package/src/components/Dialog/index.d.ts +4 -1
  383. package/src/components/Dialog/index.js +10 -3
  384. package/src/components/DropdownButton/index.d.ts +1 -0
  385. package/src/components/DropdownButton/index.js +2 -2
  386. package/src/components/EllipsisContainer/index.js +1 -1
  387. package/src/components/EmptyContent/index.js +2 -1
  388. package/src/components/Input/index.d.ts +1 -1
  389. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  390. package/src/components/PopupWithFooter.d.ts +1 -1
  391. package/src/components/PopupWithFooter.js +2 -7
  392. package/src/components/StylePreview.d.ts +8 -0
  393. package/src/components/StylePreview.js +11 -0
  394. package/src/components/Tag/Tag.d.ts +3 -0
  395. package/src/components/Tag/Tag.js +11 -0
  396. package/src/components/Tag/index.d.ts +1 -0
  397. package/src/components/Tag/index.js +5 -0
  398. package/src/components/Textarea/index.d.ts +1 -1
  399. package/src/components/ToggleButton/index.d.ts +1 -0
  400. package/src/components/ToggleButton/index.js +8 -4
  401. package/src/components/WindowModal/WindowModal.d.ts +23 -0
  402. package/src/components/WindowModal/WindowModal.js +102 -0
  403. package/src/components/WindowModal/index.d.ts +1 -0
  404. package/src/components/WindowModal/index.js +4 -0
  405. package/src/components/icons/column-add.d.ts +3 -0
  406. package/src/components/icons/column-add.js +10 -0
  407. package/src/components/icons/index.js +6 -0
  408. package/src/components/icons/menu.d.ts +3 -0
  409. package/src/components/icons/menu.js +7 -0
  410. package/src/components/icons/state-management.js +1 -1
  411. package/src/components/icons/tool-panel.d.ts +3 -0
  412. package/src/components/icons/tool-panel.js +7 -0
  413. package/src/components/utils/useDraggable.d.ts +3 -1
  414. package/src/components/utils/useDraggable.js +15 -2
  415. package/src/metamodel/adaptable.metamodel.d.ts +93 -105
  416. package/src/metamodel/adaptable.metamodel.js +425 -455
  417. package/src/types.d.ts +10 -11
  418. package/version.d.ts +1 -1
  419. package/version.js +1 -1
  420. package/src/AdaptableOptions/ChartPluginOptions.d.ts +0 -20
  421. package/src/Api/ChartApi.d.ts +0 -20
  422. package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
  423. package/src/Api/Implementation/SparklineColumnApiImpl.d.ts +0 -9
  424. package/src/Api/Implementation/SparklineColumnApiImpl.js +0 -24
  425. package/src/Api/SparklineColumnApi.d.ts +0 -23
  426. package/src/PredefinedConfig/ChartState.d.ts +0 -144
  427. package/src/PredefinedConfig/Common/ChartEnums.d.ts +0 -123
  428. package/src/PredefinedConfig/Common/ChartEnums.js +0 -152
  429. package/src/PredefinedConfig/SparklineColumnState.d.ts +0 -40
  430. package/src/Redux/ActionsReducers/SparklineColumnRedux.d.ts +0 -35
  431. package/src/Redux/ActionsReducers/SparklineColumnRedux.js +0 -70
  432. package/src/Utilities/Defaults/DefaultCategoryChartProperties.d.ts +0 -2
  433. package/src/Utilities/Defaults/DefaultCategoryChartProperties.js +0 -56
  434. package/src/Utilities/Defaults/DefaultPieChartProperties.d.ts +0 -2
  435. package/src/Utilities/Defaults/DefaultPieChartProperties.js +0 -13
  436. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.d.ts +0 -2
  437. package/src/Utilities/Defaults/DefaultSparklinesChartProperties.js +0 -25
  438. package/src/View/Alert/AlertPopup.d.ts +0 -42
  439. package/src/View/Alert/AlertPopup.js +0 -205
  440. package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
  441. package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
  442. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts +0 -10
  443. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js +0 -60
  444. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
  445. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
  446. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
  447. package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
  448. package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
  449. package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
  450. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
  451. package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
  452. package/src/View/Components/Panels/PanelWithIImageThreeButtons.d.ts +0 -11
  453. package/src/View/Components/Panels/PanelWithIImageThreeButtons.js +0 -28
  454. package/src/View/Components/Popups/AdaptableChart.d.ts +0 -18
  455. package/src/View/Components/Popups/AdaptableChart.js +0 -40
  456. package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
  457. package/src/View/Components/Popups/AdaptablePopup.js +0 -59
  458. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.d.ts +0 -7
  459. package/src/View/Components/SharedProps/ChartDisplayPopupPropsBase.js +0 -2
  460. package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
  461. package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
  462. package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
  463. package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
  464. package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -12
  465. package/src/View/CustomSort/CustomSortEntityRow.js +0 -32
  466. package/src/View/CustomSort/CustomSortPopup.d.ts +0 -27
  467. package/src/View/CustomSort/CustomSortPopup.js +0 -138
  468. package/src/View/DataSource/DataSourceEntityRow.d.ts +0 -12
  469. package/src/View/DataSource/DataSourceEntityRow.js +0 -29
  470. package/src/View/DataSource/DataSourcePopup.d.ts +0 -28
  471. package/src/View/DataSource/DataSourcePopup.js +0 -97
  472. package/src/View/Export/ExportPopup.d.ts +0 -34
  473. package/src/View/Export/ExportPopup.js +0 -139
  474. package/src/View/Export/ReportEntityRow.d.ts +0 -10
  475. package/src/View/Export/ReportEntityRow.js +0 -49
  476. package/src/View/Export/Wizard/ReportWizard.d.ts +0 -7
  477. package/src/View/Export/Wizard/ReportWizard.js +0 -50
  478. package/src/View/Filter/FilterEntityRow.d.ts +0 -12
  479. package/src/View/Filter/FilterEntityRow.js +0 -20
  480. package/src/View/Filter/FilterPopup.d.ts +0 -20
  481. package/src/View/Filter/FilterPopup.js +0 -50
  482. package/src/View/FormatColumn/FormatColumnEntityRow.d.ts +0 -9
  483. package/src/View/FormatColumn/FormatColumnEntityRow.js +0 -103
  484. package/src/View/FormatColumn/FormatColumnPopup.d.ts +0 -27
  485. package/src/View/FormatColumn/FormatColumnPopup.js +0 -133
  486. package/src/View/FreeTextColumn/FreeTextColumnEntityRow.d.ts +0 -5
  487. package/src/View/FreeTextColumn/FreeTextColumnEntityRow.js +0 -31
  488. package/src/View/FreeTextColumn/FreeTextColumnPopup.d.ts +0 -25
  489. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +0 -118
  490. package/src/View/PlusMinus/PlusMinusEntityRow.d.ts +0 -9
  491. package/src/View/PlusMinus/PlusMinusEntityRow.js +0 -24
  492. package/src/View/PlusMinus/PlusMinusPopup.d.ts +0 -30
  493. package/src/View/PlusMinus/PlusMinusPopup.js +0 -124
  494. package/src/View/Query/NamedQueryEntityRow.d.ts +0 -8
  495. package/src/View/Query/NamedQueryEntityRow.js +0 -21
  496. package/src/View/Query/QueryPopup.d.ts +0 -28
  497. package/src/View/Query/QueryPopup.js +0 -114
  498. package/src/View/Schedule/ScheduleEntityRow.d.ts +0 -5
  499. package/src/View/Schedule/ScheduleEntityRow.js +0 -58
  500. package/src/View/Schedule/SchedulePopup.d.ts +0 -58
  501. package/src/View/Schedule/SchedulePopup.js +0 -317
  502. package/src/View/Shortcut/ShortcutEntityRow.d.ts +0 -17
  503. package/src/View/Shortcut/ShortcutEntityRow.js +0 -47
  504. package/src/View/Shortcut/ShortcutPopup.d.ts +0 -30
  505. package/src/View/Shortcut/ShortcutPopup.js +0 -121
  506. package/src/components/ChartContainer/index.d.ts +0 -15
  507. package/src/components/ChartContainer/index.js +0 -22
@@ -8,10 +8,13 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
8
8
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
9
9
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
10
10
  const AdaptableQuery_1 = require("../PredefinedConfig/Common/AdaptableQuery");
11
- const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
12
- const ANY_PREDICATE = {
13
- PredicateId: 'Any',
14
- };
11
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../Utilities/ObjectFactory"));
12
+ const AlertWizard_1 = require("../View/Alert/Wizard/AlertWizard");
13
+ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
14
+ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
15
+ const getAlertPreviewViewItems_1 = require("./Utilities/getAlertPreviewViewItems");
16
+ const getAlertBehaviourViewItems_1 = require("./Utilities/getAlertBehaviourViewItems");
17
+ const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
15
18
  class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
16
19
  constructor(api) {
17
20
  super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
@@ -38,10 +41,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
41
  .onReactiveAlertTriggered((reactiveAlertInfo) => this.handleReactiveAlertTriggered(reactiveAlertInfo));
39
42
  }
40
43
  getModuleAdaptableObjects() {
41
- return [
42
- ...this.api.alertApi.getAlertDefinitions(),
43
- ...this.api.alertApi.getFlashingAlertDefinitions(),
44
- ];
44
+ return this.api.alertApi.getAlertDefinitions();
45
45
  }
46
46
  getExplicitlyReferencedColumnIds(alertDefinition) {
47
47
  const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
@@ -63,64 +63,14 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
63
63
  return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
64
64
  }
65
65
  updateOldConfig() {
66
- var _a, _b;
67
- /*
68
- Need to do 4 things here:
69
- 1. Make all (new) Flashing Alerts have a Predicate if none exists
70
- 2. Convert old Alert Rules to use new syntax
71
- 3. Convert old Flashing Cells into Flashing Alerts
72
- 4. Convert old Updated Rows into Flashing Alerts
73
- */
74
- let oldAlertDefinitions = [];
75
66
  // 1. Make all (new) Flashing Alerts have a Predicate if none exists
76
- (_a = this.api.alertApi
77
- .getAlertState()
78
- .FlashingAlertDefinitions) === null || _a === void 0 ? void 0 : _a.forEach((flashingAlertDefinition) => {
79
- var _a, _b, _c;
80
- if (!((_a = flashingAlertDefinition.Rule) === null || _a === void 0 ? void 0 : _a.BooleanExpression) &&
81
- !((_b = flashingAlertDefinition.Rule) === null || _b === void 0 ? void 0 : _b.ObservableExpression) &&
82
- !((_c = flashingAlertDefinition.Rule) === null || _c === void 0 ? void 0 : _c.Predicate)) {
83
- flashingAlertDefinition.Rule = {
84
- Predicate: ANY_PREDICATE,
85
- };
86
- oldAlertDefinitions.push(flashingAlertDefinition);
87
- }
88
- });
89
- // 2. Convert old Alert Rules to use new syntax
90
- (_b = this.api.alertApi.getAlertState().AlertDefinitions) === null || _b === void 0 ? void 0 : _b.forEach((alertDefinition) => {
91
- if (alertDefinition.Predicate) {
92
- alertDefinition.Rule = {
93
- Predicate: alertDefinition.Predicate,
94
- };
95
- LoggingHelper_1.LogAdaptableWarning(`Updating incorrect Predefined Config for Alert Definition: ${alertDefinition.predicate}`);
96
- alertDefinition.Predicate = undefined;
97
- oldAlertDefinitions.push(alertDefinition);
98
- }
99
- });
100
- }
101
- addColumnMenuItems(column) {
102
- if (column && this.isModuleEditable()) {
103
- if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
104
- const flashingAlertDefinitions = this.api.alertApi.getFlashingAlertDefinitions();
105
- const flashingAlertForCurrentColumn = flashingAlertDefinitions.find((flashingAlertDefinition) => {
106
- return this.api.scopeApi.isColumnInScope(column, flashingAlertDefinition.Scope);
107
- });
108
- if (flashingAlertForCurrentColumn) {
109
- return [
110
- this.createColumnMenuItemReduxAction('Remove Flashing Alert', this.moduleInfo.Glyph, AlertRedux.FlashingAlertDefinitionDelete(flashingAlertForCurrentColumn)),
111
- ];
112
- }
113
- return [
114
- this.createColumnMenuItemReduxAction('Add Flashing Alert', this.moduleInfo.Glyph, AlertRedux.FlashingAlertDefinitionAdd({
115
- Scope: {
116
- ColumnIds: [column.columnId],
117
- },
118
- Rule: {
119
- Predicate: { PredicateId: 'Any' },
120
- },
121
- })),
122
- ];
123
- }
67
+ const flashingAlertDefinitions = this.api.alertApi.getAlertState().FlashingAlertDefinitions;
68
+ const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
69
+ if (ArrayExtensions_1.ArrayExtensions.IsEmpty(flashingCellDefinitions) &&
70
+ ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
71
+ this.api.flashingCellApi.setFlashingCellDefinitions(flashingAlertDefinitions);
72
+ // TODO: state does not clear
73
+ this.api.internalApi.clearFlashingCellState();
124
74
  }
125
75
  }
126
76
  addContextMenuItems(menuContext) {
@@ -136,14 +86,6 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
136
86
  items.push(this.createColumnMenuItemReduxAction('Clear Alert', this.moduleInfo.Glyph, SystemRedux.SystemAlertDelete(relevantAlert)));
137
87
  }
138
88
  }
139
- const flashingAlertForRow = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue);
140
- const flashingAlertForCell = this.api.internalApi.getAdaptableFlashingAlertFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
141
- if (flashingAlertForRow && flashingAlertForRow.flashTarget === 'row') {
142
- items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingAlertDelete(flashingAlertForRow)));
143
- }
144
- else if (flashingAlertForCell && flashingAlertForCell.flashTarget === 'cell') {
145
- items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Cell', this.moduleInfo.Glyph, SystemRedux.SystemFlashingAlertDelete(flashingAlertForCell)));
146
- }
147
89
  }
148
90
  }
149
91
  return items;
@@ -153,10 +95,6 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
153
95
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(alertDefinitions)) {
154
96
  this.showAlertForDefinitions(dataChangedInfo, alertDefinitions);
155
97
  }
156
- const flashingAlertDefinitions = this.getFlashingAlertDefinitionsForDataChange(dataChangedInfo);
157
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
158
- this.showFlashingAlertsForDefinitions(dataChangedInfo, flashingAlertDefinitions);
159
- }
160
98
  }
161
99
  handleReactiveAlertTriggered(reactiveAlertInfo) {
162
100
  var _a;
@@ -171,60 +109,16 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
171
109
  reactiveAlertInfo.alertDefinition,
172
110
  ]);
173
111
  }
174
- else {
175
- this.showFlashingAlertsForDefinitions(reactiveAlertInfo.dataChangeLogEntry, [
176
- reactiveAlertInfo.alertDefinition,
177
- ]);
178
- }
179
112
  }
180
113
  showAlertForDefinitions(dataChangedInfo, alertDefinitions = []) {
181
114
  alertDefinitions.forEach((alertDefinition) => {
182
- // might be better to do a single alert with all the messages?
183
- this.api.alertApi.showAlert(dataChangedInfo.column.friendlyName, this.api.alertApi.getAlertDescription(alertDefinition, dataChangedInfo), alertDefinition, dataChangedInfo);
184
- });
185
- }
186
- showFlashingAlertsForDefinitions(dataChangedInfo, flashingAlertDefinitions = []) {
187
- const allColumnIds = this.api.columnApi.getColumns().map((c) => c.columnId);
188
- const columnDataType = dataChangedInfo.column.dataType;
189
- const numeric = columnDataType === 'Number';
190
- const isComparableType = numeric || columnDataType === 'Date';
191
- let up = false;
192
- let down = false;
193
- let direction = 'neutral';
194
- if (isComparableType) {
195
- const newValue = numeric ? Number(dataChangedInfo.newValue) : dataChangedInfo.newValue;
196
- const oldValue = numeric ? Number(dataChangedInfo.oldValue) : dataChangedInfo.oldValue;
197
- up = newValue > oldValue;
198
- down = newValue < oldValue;
199
- direction = up ? 'up' : down ? 'down' : 'neutral';
200
- }
201
- flashingAlertDefinitions.forEach((flashingAlertDefinition) => {
202
- const flashTarget = this.api.alertApi.getFlashingAlertFlashTarget(flashingAlertDefinition);
203
- const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
204
- if (flashTarget === 'row') {
205
- allColumnIds.forEach((colId) => {
206
- flashColumnIds[colId] = true;
207
- });
208
- }
209
- const rowPrimaryKey = dataChangedInfo.primaryKeyValue;
210
- this.api.alertApi.showFlashingAlert({
211
- rowPrimaryKey,
212
- flashingAlertDefinition,
213
- dataChangedInfo,
214
- direction,
215
- flashTarget,
216
- flashColumnIds,
217
- });
115
+ const alert = ObjectFactory_1.default.CreateAlert(dataChangedInfo.column.friendlyName, this.api.alertApi.getAlertDescription(alertDefinition, dataChangedInfo), alertDefinition, dataChangedInfo);
116
+ this.api.alertApi.displayAlert(alert);
218
117
  });
219
118
  }
220
119
  getAlertDefinitionsForDataChange(dataChangedEvent) {
221
120
  return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent, this.api.alertApi.getActiveNonReactiveAlertDefinitions());
222
121
  }
223
- getFlashingAlertDefinitionsForDataChange(dataChangedEvent) {
224
- return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent,
225
- // reactive flashing alert definitions are excluded as they are handled separately (asynchronously)
226
- this.api.alertApi.getActiveNonReactiveFlashingAlertDefinitions(), true);
227
- }
228
122
  getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
229
123
  let relatedAlertDefinitions = definitions
230
124
  .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
@@ -271,5 +165,28 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
271
165
  EditAction: AlertRedux.AlertDefinitionEdit,
272
166
  };
273
167
  }
168
+ toView(alert) {
169
+ return {
170
+ items: [
171
+ getScopeViewItems_1.getScopeViewItems(alert.Scope),
172
+ getRuleViewItems_1.getRuleViewItems(alert.Rule, this.api),
173
+ getAlertBehaviourViewItems_1.getAlertBehaviourViewItems(),
174
+ getAlertPreviewViewItems_1.getAlertPreviewViewItems(alert, this.api),
175
+ ],
176
+ abObject: alert,
177
+ };
178
+ }
179
+ toViewAll() {
180
+ return this.api.alertApi.getAlertDefinitions().map((alert) => this.toView(alert));
181
+ }
182
+ getViewProperties() {
183
+ return {
184
+ getDeleteAction: AlertRedux.AlertDefinitionDelete,
185
+ getSuspendAction: AlertRedux.AlertDefinitionSuspend,
186
+ getUnSuspendAction: AlertRedux.AlertDefinitionUnSuspend,
187
+ emptyView: AlertEmptyView_1.AlertEmptyView,
188
+ getEditWizard: () => AlertWizard_1.AlertWizard,
189
+ };
190
+ }
274
191
  }
275
192
  exports.AlertModule = AlertModule;
@@ -1,6 +1,8 @@
1
+ /// <reference types="react" />
1
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
4
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
5
+ import * as CalculatedColumnRedux from '../Redux/ActionsReducers/CalculatedColumnRedux';
4
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
7
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
6
8
  import { IModule } from './Interface/IModule';
@@ -14,4 +16,30 @@ export declare class CalculatedColumnModule extends AdaptableModuleBase implemen
14
16
  getReferencedNamedQueryNames(calculatedColumn: CalculatedColumn): string[];
15
17
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
16
18
  getTeamSharingAction(): TeamSharingImportInfo<CalculatedColumn>;
19
+ toView(calculateColumn: CalculatedColumn): {
20
+ items: ({
21
+ name: string;
22
+ values: string[];
23
+ } | {
24
+ name: string;
25
+ label: string;
26
+ values: string[];
27
+ })[];
28
+ abObject: CalculatedColumn;
29
+ };
30
+ toViewAll(): {
31
+ items: ({
32
+ name: string;
33
+ values: string[];
34
+ } | {
35
+ name: string;
36
+ label: string;
37
+ values: string[];
38
+ })[];
39
+ abObject: CalculatedColumn;
40
+ }[];
41
+ getViewProperties(): {
42
+ getDeleteAction: (calculatedColumn: CalculatedColumn) => CalculatedColumnRedux.CalculatedColumnDeleteAction;
43
+ getEditWizard: () => (props: import("../View/CalculatedColumn/Wizard/CalculatedColumnWizard").CalculatedColumnWizardProps) => JSX.Element;
44
+ };
17
45
  }
@@ -6,6 +6,10 @@ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const CalculatedColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/CalculatedColumnRedux"));
8
8
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
9
+ const getExpressionViewItems_1 = require("./Utilities/getExpressionViewItems");
10
+ const CalculatedColumnWizard_1 = require("../View/CalculatedColumn/Wizard/CalculatedColumnWizard");
11
+ const getCalculatedColumnSettingTags_1 = require("../View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags");
12
+ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
9
13
  class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
10
14
  constructor(api) {
11
15
  super(ModuleConstants.CalculatedColumnModuleId, 'Calculated Column', 'calculated-column', 'CalculatedColumnPopup', 'Create bespoke columns whose cell value is derived dynamically from an Expression', api);
@@ -59,5 +63,35 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
59
63
  EditAction: CalculatedColumnRedux.CalculatedColumnEdit,
60
64
  };
61
65
  }
66
+ toView(calculateColumn) {
67
+ const settingsTags = getCalculatedColumnSettingTags_1.getCalculatedColumnSettingTags(calculateColumn.CalculatedColumnSettings);
68
+ let items = [
69
+ {
70
+ name: 'Settings',
71
+ label: 'Column Id',
72
+ values: [calculateColumn.ColumnId],
73
+ },
74
+ getExpressionViewItems_1.getExpressionViewItems(calculateColumn.Query),
75
+ ];
76
+ if (ArrayExtensions_1.default.IsNotNullOrEmpty(settingsTags)) {
77
+ items.push({
78
+ name: 'Settings',
79
+ values: settingsTags,
80
+ });
81
+ }
82
+ return {
83
+ items: items,
84
+ abObject: calculateColumn,
85
+ };
86
+ }
87
+ toViewAll() {
88
+ return this.getModuleAdaptableObjects().map((calculatedColumn) => this.toView(calculatedColumn));
89
+ }
90
+ getViewProperties() {
91
+ return {
92
+ getDeleteAction: CalculatedColumnRedux.CalculatedColumnDelete,
93
+ getEditWizard: () => CalculatedColumnWizard_1.CalculatedColumnWizard,
94
+ };
95
+ }
62
96
  }
63
97
  exports.CalculatedColumnModule = CalculatedColumnModule;
@@ -0,0 +1,7 @@
1
+ import { AdaptableModuleBase } from '@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase';
2
+ import { IModule } from '@adaptabletools/adaptable/src/Strategy/Interface/IModule';
3
+ import { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';
4
+ export declare class ChartingModule extends AdaptableModuleBase implements IModule {
5
+ constructor(api: AdaptableApi);
6
+ isModuleAvailable(): boolean;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChartingModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const AdaptableModuleBase_1 = require("@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase");
6
+ const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants"));
7
+ class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
+ constructor(api) {
9
+ super(ModuleConstants.ChartingModuleId, 'Charts', 'chart', 'ChartPopup', 'Create Charts in order to see Adaptable Data visually', api);
10
+ }
11
+ isModuleAvailable() {
12
+ return this.api.chartingApi.isChartingEnabled() && super.isModuleAvailable();
13
+ }
14
+ }
15
+ exports.ChartingModule = ChartingModule;
@@ -1,11 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { AdaptableApi } from '../Api/AdaptableApi';
2
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
4
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
4
5
  import { ConditionalStyle } from '../PredefinedConfig/ConditionalStyleState';
5
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
7
+ import * as ConditionalStyleRedux from '../Redux/ActionsReducers/ConditionalStyleRedux';
6
8
  import { AdaptableModuleBase } from './AdaptableModuleBase';
7
9
  import { IConditionalStyleModule } from './Interface/IConditionalStyleModule';
8
10
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
11
+ import { AdaptableObjectView } from './Interface/IModule';
9
12
  export declare class ConditionalStyleModule extends AdaptableModuleBase implements IConditionalStyleModule {
10
13
  constructor(api: AdaptableApi);
11
14
  getModuleAdaptableObjects(): AdaptableObject[];
@@ -19,4 +22,13 @@ export declare class ConditionalStyleModule extends AdaptableModuleBase implemen
19
22
  private evaluatePredicate;
20
23
  private evaluateExpression;
21
24
  private shouldRunStyle;
25
+ toView(conditionalStyle: ConditionalStyle): AdaptableObjectView;
26
+ toViewAll(): AdaptableObjectView[];
27
+ getViewProperties(): {
28
+ getDeleteAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleAction;
29
+ getSuspendAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleSuspendAction;
30
+ getUnSuspendAction: (conditionalStyle: ConditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspendAction;
31
+ emptyView: string;
32
+ getEditWizard(): import("react").FunctionComponent<import("../View/ConditionalStyle/Wizard/ConditionalStyleWizard").ConditionalStyleWizardProps>;
33
+ };
22
34
  }
@@ -8,6 +8,10 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensio
8
8
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
9
9
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
10
10
  const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
11
+ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
12
+ const ConditionalStyleWizard_1 = require("../View/ConditionalStyle/Wizard/ConditionalStyleWizard");
13
+ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
14
+ const getStyleViewItems_1 = require("./Utilities/getStyleViewItems");
11
15
  class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
12
16
  constructor(api) {
13
17
  super(ModuleConstants.ConditionalStyleModuleId, 'Conditional Style', 'conditional-style', 'ConditionalStylePopup', 'Style columns and rows dynamically based on rules and cell values', api);
@@ -181,5 +185,29 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
181
185
  }
182
186
  return true;
183
187
  }
188
+ toView(conditionalStyle) {
189
+ return {
190
+ items: [
191
+ getScopeViewItems_1.getScopeViewItems(conditionalStyle.Scope),
192
+ getStyleViewItems_1.getStyleViewItems(),
193
+ getRuleViewItems_1.getRuleViewItems(conditionalStyle.Rule, this.api),
194
+ ],
195
+ abObject: conditionalStyle,
196
+ };
197
+ }
198
+ toViewAll() {
199
+ return this.getModuleAdaptableObjects().map((conditionalStyle) => this.toView(conditionalStyle));
200
+ }
201
+ getViewProperties() {
202
+ return {
203
+ getDeleteAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleDelete(conditionalStyle),
204
+ getSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleSuspend(conditionalStyle),
205
+ getUnSuspendAction: (conditionalStyle) => ConditionalStyleRedux.ConditionalStyleUnSuspend(conditionalStyle),
206
+ emptyView: "Click 'New' to create a new Conditional Style Rule. When this is met, row or cells in the Conditional Style's scope will be styled appropriately.",
207
+ getEditWizard() {
208
+ return ConditionalStyleWizard_1.ConditionalStyleWizard;
209
+ },
210
+ };
211
+ }
184
212
  }
185
213
  exports.ConditionalStyleModule = ConditionalStyleModule;
@@ -1,9 +1,11 @@
1
+ /// <reference types="react" />
1
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
4
  import { CustomSort } from '../PredefinedConfig/CustomSortState';
5
+ import * as CustomSortRedux from '../Redux/ActionsReducers/CustomSortRedux';
4
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
7
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
6
- import { IModule } from './Interface/IModule';
8
+ import { AdaptableObjectView, IModule } from './Interface/IModule';
7
9
  import { AdaptableApi } from '../Api/AdaptableApi';
8
10
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
9
11
  export declare class CustomSortModule extends AdaptableModuleBase implements IModule {
@@ -13,4 +15,13 @@ export declare class CustomSortModule extends AdaptableModuleBase implements IMo
13
15
  hasNamedQueryReferences(): boolean;
14
16
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
15
17
  getTeamSharingAction(): TeamSharingImportInfo<CustomSort>;
18
+ toView(customSort: CustomSort): AdaptableObjectView;
19
+ toViewAll(): AdaptableObjectView[];
20
+ getViewProperties(): {
21
+ getDeleteAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
22
+ getSuspendAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
23
+ getUnSuspendAction: (customSort: CustomSort) => CustomSortRedux.CustomSortDeleteAction;
24
+ emptyView: string;
25
+ getEditWizard(): (props: import("../View/CustomSort/Wizard/CustomSortWizard").CustomSortWizardProps) => JSX.Element;
26
+ };
16
27
  }
@@ -5,6 +5,9 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const CustomSortRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/CustomSortRedux"));
8
+ const CustomSortWizard_1 = require("../View/CustomSort/Wizard/CustomSortWizard");
9
+ const getCustomSortColumnViewItems_1 = require("./Utilities/getCustomSortColumnViewItems");
10
+ const getCustomSortSortOrderViewItems_1 = require("./Utilities/getCustomSortSortOrderViewItems");
8
11
  class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
12
  constructor(api) {
10
13
  super(ModuleConstants.CustomSortModuleId, 'Custom Sort', 'custom-sort', 'CustomSortPopup', 'Provide bespoke sorting information for Columns (in place of alphabetical sorting)', api);
@@ -46,5 +49,28 @@ class CustomSortModule extends AdaptableModuleBase_1.AdaptableModuleBase {
46
49
  EditAction: CustomSortRedux.CustomSortEdit,
47
50
  };
48
51
  }
52
+ toView(customSort) {
53
+ return {
54
+ items: [
55
+ getCustomSortColumnViewItems_1.getCustomSortColumnViewItems(customSort, this.api),
56
+ getCustomSortSortOrderViewItems_1.getCustomSortSortOrderViewItems(customSort),
57
+ ],
58
+ abObject: customSort,
59
+ };
60
+ }
61
+ toViewAll() {
62
+ return this.getModuleAdaptableObjects().map((customSort) => this.toView(customSort));
63
+ }
64
+ getViewProperties() {
65
+ return {
66
+ getDeleteAction: CustomSortRedux.CustomSortDelete,
67
+ getSuspendAction: CustomSortRedux.CustomSortSuspend,
68
+ getUnSuspendAction: CustomSortRedux.CustomSortUnSuspend,
69
+ emptyView: "Click 'New' to create a custom Sort Order for a selected Column.",
70
+ getEditWizard() {
71
+ return CustomSortWizard_1.CustomSortWizard;
72
+ },
73
+ };
74
+ }
49
75
  }
50
76
  exports.CustomSortModule = CustomSortModule;
@@ -4,7 +4,6 @@ import { IModule } from './Interface/IModule';
4
4
  import { AdaptableApi } from '../Api/AdaptableApi';
5
5
  export declare class DashboardModule extends AdaptableModuleBase implements IModule {
6
6
  constructor(api: AdaptableApi);
7
- addModuleMenuItem(source: 'ModuleMenu' | 'ModuleButton'): AdaptableMenuItem | undefined;
8
7
  updateOldConfig(): void;
9
8
  handleAdaptableReady(): void;
10
9
  addColumnMenuItems(): AdaptableMenuItem[] | undefined;
@@ -10,11 +10,6 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
10
10
  constructor(api) {
11
11
  super(ModuleConstants.DashboardModuleId, 'Dashboard', 'dashboard', 'DashboardPopup', 'The Dashboard - usually placed above the Grid - is designed to provide quick access to commonly required AdapTable functionalty', api);
12
12
  }
13
- // no standard module menu item as we do special ones in the Dashboard class
14
- addModuleMenuItem(source) {
15
- // dont need
16
- return undefined;
17
- }
18
13
  updateOldConfig() {
19
14
  let dashboardState = this.api.dashboardApi.getDashboardState();
20
15
  if (dashboardState.VisibleButtons) {
@@ -23,8 +18,7 @@ class DashboardModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
18
  }
24
19
  }
25
20
  handleAdaptableReady() {
26
- // create a default Dashboard tab if one not provided
27
- this.api.internalApi.setDefaultDashboardTab();
21
+ // we used to create a default tab here but we no longer do // this.api.internalApi.setDefaultDashboardTab();
28
22
  // this handler reacts to the 'AdaptableReady' event,
29
23
  // but so do all the other possible handlers of the 'DashboardChanged' event
30
24
  // therefore, we give them a head start to subscribe to 'DashboardChanged' before emitting it
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const SystemRedux_1 = require("../Redux/ActionsReducers/SystemRedux");
8
8
  class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
9
  constructor(api) {
10
- super(ModuleConstants.DataChangeHistoryModuleId, 'Data Change History', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
10
+ super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
11
11
  this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
12
12
  if (dataChangedInfo.trigger !== 'undo') {
13
13
  if (this.shouldLogDataChange(dataChangedInfo)) {
@@ -1,7 +1,9 @@
1
+ /// <reference types="react" />
1
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
3
+ import * as DataSourceRedux from '../Redux/ActionsReducers/DataSourceRedux';
2
4
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
3
5
  import { DataSource } from '../PredefinedConfig/DataSourceState';
4
- import { IModule } from './Interface/IModule';
6
+ import { AdaptableObjectView, IModule } from './Interface/IModule';
5
7
  import { AdaptableApi } from '../Api/AdaptableApi';
6
8
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
7
9
  export declare class DataSourceModule extends AdaptableModuleBase implements IModule {
@@ -9,4 +11,10 @@ export declare class DataSourceModule extends AdaptableModuleBase implements IMo
9
11
  getModuleAdaptableObjects(): AdaptableObject[];
10
12
  hasNamedQueryReferences(): boolean;
11
13
  getTeamSharingAction(): TeamSharingImportInfo<DataSource>;
14
+ toView(dataSource: DataSource): AdaptableObjectView;
15
+ toViewAll(): AdaptableObjectView[];
16
+ getViewProperties(): {
17
+ getDeleteAction: (dataSource: DataSource) => DataSourceRedux.DataSourceDeleteAction;
18
+ getEditWizard: () => import("react").FunctionComponent<import("../View/DataSource/Wizard/DataSourceWizard").DataSourceWizardProps>;
19
+ };
12
20
  }
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const DataSourceRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/DataSourceRedux"));
8
+ const DataSourceWizard_1 = require("../View/DataSource/Wizard/DataSourceWizard");
8
9
  class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
10
  constructor(api) {
10
11
  super(ModuleConstants.DataSourceModuleId, 'Data Source', 'data-source', 'DataSourcePopup', 'Update the entire data set in AdapTable using pre-populated data sources', api);
@@ -22,5 +23,32 @@ class DataSourceModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
23
  EditAction: DataSourceRedux.DataSourceEdit,
23
24
  };
24
25
  }
26
+ toView(dataSource) {
27
+ var _a;
28
+ return {
29
+ items: [
30
+ {
31
+ name: 'Settings',
32
+ label: 'Name',
33
+ values: [dataSource.Name],
34
+ },
35
+ {
36
+ name: 'Settings',
37
+ label: 'Description',
38
+ values: [(_a = dataSource.Description) !== null && _a !== void 0 ? _a : 'Not Specified'],
39
+ },
40
+ ],
41
+ abObject: dataSource,
42
+ };
43
+ }
44
+ toViewAll() {
45
+ return this.getModuleAdaptableObjects().map((dataSource) => this.toView(dataSource));
46
+ }
47
+ getViewProperties() {
48
+ return {
49
+ getDeleteAction: DataSourceRedux.DataSourceDelete,
50
+ getEditWizard: () => DataSourceWizard_1.DataSourceWizard,
51
+ };
52
+ }
25
53
  }
26
54
  exports.DataSourceModule = DataSourceModule;
@@ -1,11 +1,14 @@
1
+ /// <reference types="react" />
1
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
3
  import { IExportModule } from './Interface/IExportModule';
3
4
  import { ExportDestination } from '../PredefinedConfig/Common/Enums';
4
5
  import { Report } from '../PredefinedConfig/ExportState';
6
+ import * as ExportRedux from '../Redux/ActionsReducers/ExportRedux';
5
7
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
6
8
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
7
9
  import { AdaptableApi } from '../Api/AdaptableApi';
8
10
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
11
+ import { AdaptableObjectView } from './Interface/IModule';
9
12
  export declare class ExportModule extends AdaptableModuleBase implements IExportModule {
10
13
  constructor(api: AdaptableApi);
11
14
  getModuleAdaptableObjects(): AdaptableObject[];
@@ -24,4 +27,13 @@ export declare class ExportModule extends AdaptableModuleBase implements IExport
24
27
  getTeamSharingAction(): TeamSharingImportInfo<Report>;
25
28
  private isEmptyReportData;
26
29
  private showEmptyExportWarning;
30
+ toView(report: Report): AdaptableObjectView;
31
+ toViewAll(): AdaptableObjectView[];
32
+ getViewProperties(): {
33
+ actions: import("react").FunctionComponent<{
34
+ data: Report;
35
+ }>[];
36
+ getDeleteAction: (report: Report) => ExportRedux.ReportDeleteAction;
37
+ getEditWizard(): (props: import("../View/Export/Wizard/NewReportWizard").NewReportWizardProps) => JSX.Element;
38
+ };
27
39
  }