@adaptabletools/adaptable 10.0.4-canary.4 → 10.0.4-canary.5

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 (421) hide show
  1. package/LICENSE.md +1 -1
  2. package/agGrid.d.ts +2 -2
  3. package/base.css +202 -33
  4. package/bundle.cjs.js +100 -97
  5. package/index.css +243 -33
  6. package/package.json +3 -2
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/IAdaptable.d.ts +3 -3
  10. package/src/AdaptableOptions/AdaptableOptions.d.ts +7 -2
  11. package/src/AdaptableOptions/DashboardOptions.d.ts +2 -2
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +2 -2
  13. package/src/AdaptableOptions/EditOptions.d.ts +2 -2
  14. package/src/AdaptableOptions/ExportOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/FilterOptions.d.ts +2 -2
  16. package/src/AdaptableOptions/FinancePluginOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/MenuOptions.d.ts +1 -1
  18. package/src/AdaptableOptions/NotificationsOptions.d.ts +4 -3
  19. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +75 -0
  20. package/src/{Api/Events/FlashingAlertFired.js → AdaptableOptions/SettingsPanelOptions.js} +0 -0
  21. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +29 -0
  22. package/src/Api/AdaptableApi.d.ts +3 -1
  23. package/src/Api/AlertApi.d.ts +4 -79
  24. package/src/Api/DataChangeHistoryApi.d.ts +4 -0
  25. package/src/Api/EventApi.d.ts +8 -8
  26. package/src/Api/Events/AdaptableReady.d.ts +2 -2
  27. package/src/Api/Events/FlashingCellDisplayed.d.ts +11 -0
  28. package/src/{PredefinedConfig/Common/AdaptableFlashingAlert.js → Api/Events/FlashingCellDisplayed.js} +0 -0
  29. package/src/Api/Events/GridDataChanged.d.ts +3 -1
  30. package/src/Api/FlashingCellApi.d.ts +78 -0
  31. package/src/Api/FlashingCellApi.js +2 -0
  32. package/src/Api/GridApi.d.ts +28 -5
  33. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  34. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  35. package/src/Api/Implementation/AlertApiImpl.d.ts +8 -22
  36. package/src/Api/Implementation/AlertApiImpl.js +40 -107
  37. package/src/Api/Implementation/ConfigApiImpl.js +0 -5
  38. package/src/Api/Implementation/DataChangeHistoryApiImpl.d.ts +1 -0
  39. package/src/Api/Implementation/DataChangeHistoryApiImpl.js +5 -0
  40. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +20 -0
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +96 -0
  42. package/src/Api/Implementation/GridApiImpl.d.ts +13 -8
  43. package/src/Api/Implementation/GridApiImpl.js +39 -17
  44. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -2
  45. package/src/Api/Implementation/InternalApiImpl.js +5 -4
  46. package/src/Api/Implementation/LayoutApiImpl.js +12 -0
  47. package/src/Api/Implementation/ScheduleApiImpl.js +5 -5
  48. package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
  49. package/src/Api/Implementation/SystemStatusApiImpl.js +1 -1
  50. package/src/Api/Implementation/ToolPanelApiImpl.js +2 -2
  51. package/src/Api/InternalApi.d.ts +4 -4
  52. package/src/Api/SmartEditApi.d.ts +4 -4
  53. package/src/PredefinedConfig/AdaptableState.d.ts +2 -0
  54. package/src/PredefinedConfig/AlertState.d.ts +13 -54
  55. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +4 -0
  56. package/src/PredefinedConfig/Common/AdaptableComparerFunction.d.ts +2 -2
  57. package/src/PredefinedConfig/Common/{AdaptableFlashingAlert.d.ts → AdaptableFlashingCell.d.ts} +6 -6
  58. package/src/PredefinedConfig/Common/AdaptableFlashingCell.js +2 -0
  59. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +14 -3
  60. package/src/PredefinedConfig/Common/CellSummary.d.ts +2 -2
  61. package/src/PredefinedConfig/Common/Menu.d.ts +2 -2
  62. package/src/PredefinedConfig/Common/Schedule.d.ts +4 -14
  63. package/src/PredefinedConfig/Common/Schedule.js +0 -14
  64. package/src/PredefinedConfig/Common/Types.d.ts +4 -3
  65. package/src/PredefinedConfig/CustomSortState.d.ts +1 -1
  66. package/src/PredefinedConfig/DashboardState.d.ts +3 -2
  67. package/src/PredefinedConfig/FlashingCellState.d.ts +70 -0
  68. package/src/PredefinedConfig/FlashingCellState.js +2 -0
  69. package/src/PredefinedConfig/FreeTextColumnState.d.ts +2 -2
  70. package/src/PredefinedConfig/LayoutState.d.ts +1 -1
  71. package/src/PredefinedConfig/PredefinedConfig.d.ts +2 -0
  72. package/src/PredefinedConfig/ScheduleState.d.ts +1 -5
  73. package/src/PredefinedConfig/ShortcutState.d.ts +1 -1
  74. package/src/PredefinedConfig/SystemState.d.ts +17 -4
  75. package/src/Redux/ActionsReducers/AlertRedux.d.ts +3 -38
  76. package/src/Redux/ActionsReducers/AlertRedux.js +9 -68
  77. package/src/Redux/ActionsReducers/DashboardRedux.js +1 -1
  78. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +55 -0
  79. package/src/Redux/ActionsReducers/FlashingCellRedux.js +100 -0
  80. package/src/Redux/ActionsReducers/PopupRedux.d.ts +1 -1
  81. package/src/Redux/ActionsReducers/SystemRedux.d.ts +34 -13
  82. package/src/Redux/ActionsReducers/SystemRedux.js +94 -40
  83. package/src/Redux/ActionsReducers/ToolPanelRedux.js +2 -1
  84. package/src/Redux/Store/AdaptableStore.js +80 -45
  85. package/src/Strategy/AlertModule.d.ts +14 -5
  86. package/src/Strategy/AlertModule.js +40 -123
  87. package/src/Strategy/CalculatedColumnModule.d.ts +28 -0
  88. package/src/Strategy/CalculatedColumnModule.js +29 -0
  89. package/src/Strategy/ConditionalStyleModule.d.ts +12 -0
  90. package/src/Strategy/ConditionalStyleModule.js +28 -0
  91. package/src/Strategy/CustomSortModule.d.ts +12 -1
  92. package/src/Strategy/CustomSortModule.js +26 -0
  93. package/src/Strategy/DashboardModule.d.ts +0 -1
  94. package/src/Strategy/DashboardModule.js +1 -7
  95. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  96. package/src/Strategy/DataSourceModule.d.ts +9 -1
  97. package/src/Strategy/DataSourceModule.js +28 -0
  98. package/src/Strategy/ExportModule.d.ts +12 -0
  99. package/src/Strategy/ExportModule.js +43 -0
  100. package/src/Strategy/FilterModule.d.ts +8 -1
  101. package/src/Strategy/FilterModule.js +27 -0
  102. package/src/Strategy/FlashingCellModule.d.ts +33 -0
  103. package/src/Strategy/FlashingCellModule.js +219 -0
  104. package/src/Strategy/FormatColumnModule.d.ts +11 -1
  105. package/src/Strategy/FormatColumnModule.js +35 -0
  106. package/src/Strategy/FreeTextColumnModule.d.ts +9 -1
  107. package/src/Strategy/FreeTextColumnModule.js +45 -0
  108. package/src/Strategy/GridInfoModule.js +58 -36
  109. package/src/Strategy/Interface/IModule.d.ts +70 -0
  110. package/src/Strategy/PlusMinusModule.d.ts +11 -0
  111. package/src/Strategy/PlusMinusModule.js +34 -0
  112. package/src/Strategy/QueryModule.d.ts +20 -0
  113. package/src/Strategy/QueryModule.js +27 -0
  114. package/src/Strategy/ScheduleModule.d.ts +17 -1
  115. package/src/Strategy/ScheduleModule.js +148 -2
  116. package/src/Strategy/SetingsPanelModule.d.ts +10 -0
  117. package/src/Strategy/SetingsPanelModule.js +24 -0
  118. package/src/Strategy/ShortcutModule.d.ts +11 -0
  119. package/src/Strategy/ShortcutModule.js +22 -0
  120. package/src/Strategy/ToolPanelModule.js +1 -1
  121. package/src/Strategy/Utilities/getAlertBehaviourViewItems.d.ts +8 -0
  122. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +15 -0
  123. package/src/Strategy/Utilities/getAlertPreviewViewItems.d.ts +4 -0
  124. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +19 -0
  125. package/src/Strategy/Utilities/getCustomSortColumnViewItems.d.ts +5 -0
  126. package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +9 -0
  127. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.d.ts +5 -0
  128. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +9 -0
  129. package/src/Strategy/Utilities/getExportColumnsViewItems.d.ts +3 -0
  130. package/src/Strategy/Utilities/getExportColumnsViewItems.js +22 -0
  131. package/src/Strategy/Utilities/getExportRowsViewItems.d.ts +5 -0
  132. package/src/Strategy/Utilities/getExportRowsViewItems.js +26 -0
  133. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +5 -0
  134. package/src/Strategy/Utilities/getExpressionViewItems.js +9 -0
  135. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.d.ts +5 -0
  136. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +9 -0
  137. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +5 -0
  138. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +10 -0
  139. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.d.ts +5 -0
  140. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +15 -0
  141. package/src/Strategy/Utilities/getRuleViewItems.d.ts +6 -0
  142. package/src/Strategy/Utilities/getRuleViewItems.js +15 -0
  143. package/src/Strategy/Utilities/getScopeViewItems.d.ts +3 -0
  144. package/src/Strategy/Utilities/getScopeViewItems.js +20 -0
  145. package/src/Strategy/Utilities/getShortcutSettingsViewItems.d.ts +5 -0
  146. package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +15 -0
  147. package/src/Strategy/Utilities/getStyleViewItems.d.ts +2 -0
  148. package/src/Strategy/Utilities/getStyleViewItems.js +15 -0
  149. package/src/Utilities/Constants/ModuleConstants.d.ts +2 -0
  150. package/src/Utilities/Constants/ModuleConstants.js +3 -1
  151. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +11 -4
  152. package/src/Utilities/Defaults/DefaultSettingsPanel.d.ts +6 -0
  153. package/src/Utilities/Defaults/DefaultSettingsPanel.js +35 -0
  154. package/src/Utilities/Extensions/ArrayExtensions.js +1 -1
  155. package/src/Utilities/Helpers/AdaptableHelper.js +2 -1
  156. package/src/Utilities/Helpers/StyleHelper.d.ts +4 -0
  157. package/src/Utilities/Helpers/StyleHelper.js +4 -1
  158. package/src/Utilities/MenuItem.d.ts +1 -1
  159. package/src/Utilities/MenuItem.js +2 -2
  160. package/src/Utilities/ObjectFactory.d.ts +6 -7
  161. package/src/Utilities/ObjectFactory.js +13 -20
  162. package/src/Utilities/Services/AlertService.d.ts +3 -3
  163. package/src/Utilities/Services/AlertService.js +11 -17
  164. package/src/Utilities/Services/EntitlementService.d.ts +1 -0
  165. package/src/Utilities/Services/EntitlementService.js +8 -0
  166. package/src/Utilities/Services/Interface/IAlertService.d.ts +3 -7
  167. package/src/Utilities/Services/Interface/IEntitlementService.d.ts +1 -0
  168. package/src/Utilities/Services/ModuleService.js +6 -6
  169. package/src/Utilities/Services/TeamSharingService.js +3 -4
  170. package/src/View/AdaptableView.js +2 -2
  171. package/src/View/AdaptableViewFactory.js +0 -26
  172. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -10
  173. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +6 -6
  174. package/src/View/AdaptableWizardView/index.js +1 -1
  175. package/src/View/Alert/AlertEmptyView.d.ts +5 -0
  176. package/src/View/Alert/AlertEmptyView.js +16 -0
  177. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.d.ts +2 -1
  178. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +10 -5
  179. package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +8 -1
  180. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -7
  181. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -6
  182. package/src/View/Alert/Wizard/AlertWizard.js +17 -3
  183. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +4 -2
  184. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
  185. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.d.ts +5 -4
  186. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  187. package/src/View/Alert/Wizard/isValidAlertRules.d.ts +2 -3
  188. package/src/View/BulkUpdate/BulkUpdatePopup.js +1 -1
  189. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +2 -0
  190. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +17 -0
  191. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -16
  192. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +18 -2
  193. package/src/View/CellSummary/CellSummaryPopup.js +2 -2
  194. package/src/View/ColorPicker.d.ts +1 -1
  195. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  196. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  197. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.d.ts +14 -0
  198. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +82 -0
  199. package/src/View/Components/AdaptableObjectList/index.d.ts +1 -0
  200. package/src/View/Components/AdaptableObjectList/index.js +5 -0
  201. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  202. package/src/View/Components/Buttons/ButtonDelete.js +3 -2
  203. package/src/View/Components/Buttons/ButtonEdit.d.ts +1 -3
  204. package/src/View/Components/Buttons/ButtonEdit.js +4 -6
  205. package/src/View/Components/Buttons/ButtonShare.js +3 -2
  206. package/src/View/Components/Buttons/EntityListActionButtons.js +1 -1
  207. package/src/View/Components/Buttons/{SuspendToggleButton.d.ts → SuspendToggleButton/SuspendToggleButton.d.ts} +5 -3
  208. package/src/View/Components/Buttons/SuspendToggleButton/SuspendToggleButton.js +19 -0
  209. package/src/View/Components/Buttons/SuspendToggleButton/index.d.ts +1 -0
  210. package/src/View/Components/Buttons/SuspendToggleButton/index.js +4 -0
  211. package/src/View/Components/ExternalRenderer.d.ts +14 -0
  212. package/src/View/Components/ExternalRenderer.js +32 -0
  213. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -3
  214. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  215. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  216. package/src/View/Components/Panels/PanelWithImage.d.ts +4 -4
  217. package/src/View/Components/Panels/PanelWithImage.js +2 -2
  218. package/src/View/Components/Popups/AdaptableChart.js +1 -1
  219. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +20 -0
  220. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +119 -0
  221. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.d.ts +15 -0
  222. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +35 -0
  223. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +9 -0
  224. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +67 -0
  225. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.d.ts +6 -0
  226. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +9 -0
  227. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +13 -0
  228. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +63 -0
  229. package/src/View/Components/Popups/{PopupContext.d.ts → AdaptablePopup/PopupContext.d.ts} +0 -0
  230. package/src/View/Components/Popups/{PopupContext.js → AdaptablePopup/PopupContext.js} +0 -0
  231. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +10 -0
  232. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +22 -0
  233. package/src/View/Components/Popups/AdaptablePopup/TopBar.d.ts +7 -0
  234. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +29 -0
  235. package/src/View/Components/Popups/AdaptablePopup/Utilities.d.ts +15 -0
  236. package/src/View/Components/Popups/AdaptablePopup/Utilities.js +28 -0
  237. package/src/View/Components/Popups/AdaptablePopup/index.d.ts +1 -0
  238. package/src/View/Components/Popups/AdaptablePopup/index.js +5 -0
  239. package/src/View/Components/ToolPanel/ToolPanelPopup.js +4 -3
  240. package/src/View/Components/ValueSelector/index.js +4 -4
  241. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.d.ts +2 -2
  242. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +19 -5
  243. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +3 -4
  244. package/src/View/CustomSort/Wizard/CustomSortWizard.js +18 -3
  245. package/src/View/Dashboard/Dashboard.d.ts +0 -1
  246. package/src/View/Dashboard/Dashboard.js +21 -68
  247. package/src/View/Dashboard/DashboardPopup.d.ts +6 -2
  248. package/src/View/Dashboard/DashboardPopup.js +30 -8
  249. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +3 -4
  250. package/src/View/DataChangeHistory/DataChangeHistoryPopup.js +3 -3
  251. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +3 -3
  252. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +1 -2
  253. package/src/View/DataSource/Wizard/DataSourceWizard.js +17 -2
  254. package/src/View/Export/ReportExportDropdown.d.ts +5 -0
  255. package/src/View/Export/ReportExportDropdown.js +37 -0
  256. package/src/View/Export/Wizard/NewReportWizard.js +15 -2
  257. package/src/View/Export/Wizard/ReportNameWizardSection.js +2 -1
  258. package/src/View/Export/Wizard/ReportRowsWizardSection.js +2 -2
  259. package/src/View/FlashingCell/FlashingCellStyle.d.ts +7 -0
  260. package/src/View/FlashingCell/FlashingCellStyle.js +20 -0
  261. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.d.ts → FlashingCell/Wizard/FlashingCellDurationWizardSection.d.ts} +4 -4
  262. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertDurationWizardSection.js → FlashingCell/Wizard/FlashingCellDurationWizardSection.js} +6 -6
  263. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.d.ts → FlashingCell/Wizard/FlashingCellRulesWizardSection.d.ts} +3 -3
  264. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertRulesWizardSection.js → FlashingCell/Wizard/FlashingCellRulesWizardSection.js} +10 -10
  265. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.d.ts → FlashingCell/Wizard/FlashingCellScopeWizardSection.d.ts} +1 -2
  266. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertScopeWizardSection.js → FlashingCell/Wizard/FlashingCellScopeWizardSection.js} +1 -1
  267. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.d.ts +15 -0
  268. package/src/View/{Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.js → FlashingCell/Wizard/FlashingCellStyleWizardSection.js} +17 -16
  269. package/src/View/FlashingCell/Wizard/FlashingCellWizard.d.ts +6 -0
  270. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +99 -0
  271. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.d.ts +3 -0
  272. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +30 -0
  273. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +1 -0
  274. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +18 -14
  275. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +2 -2
  276. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -4
  277. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +17 -2
  278. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.d.ts +1 -0
  279. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -7
  280. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +18 -5
  281. package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -2
  282. package/src/View/GridInfo/GridInfoPopup.d.ts +2 -1
  283. package/src/View/GridInfo/GridInfoPopup.js +21 -16
  284. package/src/View/GridInfo/GridOptionsComponent.js +1 -1
  285. package/src/View/Layout/LayoutPopup.js +4 -6
  286. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +3 -1
  287. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -2
  288. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  289. package/src/View/PlusMinus/Wizard/PlusMinusWizard.d.ts +1 -2
  290. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +18 -4
  291. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +2 -2
  292. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +2 -2
  293. package/src/View/Query/Wizard/NamedQueryWizard.js +14 -2
  294. package/src/View/QuickSearch/QuickSearchPopup.js +2 -2
  295. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -2
  296. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +7 -8
  297. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +1 -1
  298. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +9 -9
  299. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.d.ts +5 -0
  300. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +59 -48
  301. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +9 -9
  302. package/src/View/Schedule/Wizard/ScheduleWizard.d.ts +1 -2
  303. package/src/View/Schedule/Wizard/ScheduleWizard.js +75 -2
  304. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -6
  305. package/src/View/Shortcut/Wizard/ShortcutWizard.d.ts +1 -2
  306. package/src/View/Shortcut/Wizard/ShortcutWizard.js +31 -4
  307. package/src/View/SmartEdit/SmartEditPopup.js +2 -2
  308. package/src/View/StateManagement/StateManagementPopup.js +16 -15
  309. package/src/View/SystemStatus/SystemStatusPopup.js +3 -3
  310. package/src/View/TeamSharing/TeamSharingPopup.js +2 -2
  311. package/src/View/Theme/ThemePopup.js +5 -7
  312. package/src/View/UIHelper.d.ts +3 -1
  313. package/src/View/UIHelper.js +35 -16
  314. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +5 -0
  315. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +2 -0
  316. package/src/View/Wizard/OnePageAdaptableWizard.js +10 -2
  317. package/src/agGrid/Adaptable.d.ts +14 -6
  318. package/src/agGrid/Adaptable.js +194 -57
  319. package/src/agGrid/agGridHelper.d.ts +1 -0
  320. package/src/agGrid/agGridHelper.js +14 -2
  321. package/src/components/ApplicationIcon.d.ts +5 -0
  322. package/src/components/ApplicationIcon.js +13 -0
  323. package/src/components/Dashboard/DashboardManager.js +1 -1
  324. package/src/components/Datepicker/index.d.ts +1 -1
  325. package/src/components/Dialog/index.d.ts +4 -1
  326. package/src/components/Dialog/index.js +10 -3
  327. package/src/components/DropdownButton/index.d.ts +1 -0
  328. package/src/components/DropdownButton/index.js +2 -2
  329. package/src/components/EllipsisContainer/index.js +1 -1
  330. package/src/components/EmptyContent/index.js +2 -1
  331. package/src/components/Input/index.d.ts +1 -1
  332. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  333. package/src/components/PopupWithFooter.d.ts +1 -1
  334. package/src/components/PopupWithFooter.js +2 -7
  335. package/src/components/StylePreview.d.ts +8 -0
  336. package/src/components/StylePreview.js +11 -0
  337. package/src/components/Tag/Tag.d.ts +3 -0
  338. package/src/components/Tag/Tag.js +11 -0
  339. package/src/components/Tag/index.d.ts +1 -0
  340. package/src/components/Tag/index.js +5 -0
  341. package/src/components/Textarea/index.d.ts +1 -1
  342. package/src/components/ToggleButton/index.d.ts +1 -0
  343. package/src/components/ToggleButton/index.js +8 -4
  344. package/src/components/WindowModal/WindowModal.d.ts +23 -0
  345. package/src/components/WindowModal/WindowModal.js +87 -0
  346. package/src/components/WindowModal/index.d.ts +1 -0
  347. package/src/components/WindowModal/index.js +4 -0
  348. package/src/components/icons/index.js +4 -0
  349. package/src/components/icons/menu.d.ts +3 -0
  350. package/src/components/icons/menu.js +7 -0
  351. package/src/components/icons/state-management.js +1 -1
  352. package/src/components/icons/tool-panel.d.ts +3 -0
  353. package/src/components/icons/tool-panel.js +7 -0
  354. package/src/components/utils/useDraggable.d.ts +3 -1
  355. package/src/components/utils/useDraggable.js +14 -2
  356. package/src/metamodel/adaptable.metamodel.d.ts +53 -32
  357. package/src/metamodel/adaptable.metamodel.js +216 -197
  358. package/src/types.d.ts +8 -6
  359. package/version.d.ts +1 -1
  360. package/version.js +1 -1
  361. package/src/Api/Events/FlashingAlertFired.d.ts +0 -11
  362. package/src/View/Alert/AlertPopup.d.ts +0 -42
  363. package/src/View/Alert/AlertPopup.js +0 -205
  364. package/src/View/Alert/FlashingAlertEntityRow.d.ts +0 -7
  365. package/src/View/Alert/FlashingAlertEntityRow.js +0 -22
  366. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertStyleWizardSection.d.ts +0 -10
  367. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.d.ts +0 -6
  368. package/src/View/Alert/Wizard/FlashingAlertWizard/FlashingAlertWizard.js +0 -89
  369. package/src/View/CalculatedColumn/CalculatedColumnEntityRow.d.ts +0 -9
  370. package/src/View/CalculatedColumn/CalculatedColumnEntityRow.js +0 -28
  371. package/src/View/CalculatedColumn/CalculatedColumnPopup.d.ts +0 -25
  372. package/src/View/CalculatedColumn/CalculatedColumnPopup.js +0 -117
  373. package/src/View/Components/Buttons/SuspendToggleButton.js +0 -17
  374. package/src/View/Components/Popups/AdaptablePopup.d.ts +0 -23
  375. package/src/View/Components/Popups/AdaptablePopup.js +0 -59
  376. package/src/View/ConditionalStyle/ConditionalStyleEntityRow.d.ts +0 -5
  377. package/src/View/ConditionalStyle/ConditionalStyleEntityRow.js +0 -26
  378. package/src/View/ConditionalStyle/ConditionalStylePopup.d.ts +0 -30
  379. package/src/View/ConditionalStyle/ConditionalStylePopup.js +0 -144
  380. package/src/View/CustomSort/CustomSortEntityRow.d.ts +0 -12
  381. package/src/View/CustomSort/CustomSortEntityRow.js +0 -32
  382. package/src/View/CustomSort/CustomSortPopup.d.ts +0 -27
  383. package/src/View/CustomSort/CustomSortPopup.js +0 -138
  384. package/src/View/DataSource/DataSourceEntityRow.d.ts +0 -12
  385. package/src/View/DataSource/DataSourceEntityRow.js +0 -29
  386. package/src/View/DataSource/DataSourcePopup.d.ts +0 -28
  387. package/src/View/DataSource/DataSourcePopup.js +0 -97
  388. package/src/View/Export/ExportPopup.d.ts +0 -34
  389. package/src/View/Export/ExportPopup.js +0 -139
  390. package/src/View/Export/ReportEntityRow.d.ts +0 -10
  391. package/src/View/Export/ReportEntityRow.js +0 -49
  392. package/src/View/Export/Wizard/ReportWizard.d.ts +0 -7
  393. package/src/View/Export/Wizard/ReportWizard.js +0 -50
  394. package/src/View/Filter/FilterEntityRow.d.ts +0 -12
  395. package/src/View/Filter/FilterEntityRow.js +0 -20
  396. package/src/View/Filter/FilterPopup.d.ts +0 -20
  397. package/src/View/Filter/FilterPopup.js +0 -50
  398. package/src/View/FormatColumn/FormatColumnEntityRow.d.ts +0 -9
  399. package/src/View/FormatColumn/FormatColumnEntityRow.js +0 -103
  400. package/src/View/FormatColumn/FormatColumnPopup.d.ts +0 -27
  401. package/src/View/FormatColumn/FormatColumnPopup.js +0 -133
  402. package/src/View/FreeTextColumn/FreeTextColumnEntityRow.d.ts +0 -5
  403. package/src/View/FreeTextColumn/FreeTextColumnEntityRow.js +0 -31
  404. package/src/View/FreeTextColumn/FreeTextColumnPopup.d.ts +0 -25
  405. package/src/View/FreeTextColumn/FreeTextColumnPopup.js +0 -118
  406. package/src/View/PlusMinus/PlusMinusEntityRow.d.ts +0 -9
  407. package/src/View/PlusMinus/PlusMinusEntityRow.js +0 -24
  408. package/src/View/PlusMinus/PlusMinusPopup.d.ts +0 -30
  409. package/src/View/PlusMinus/PlusMinusPopup.js +0 -124
  410. package/src/View/Query/NamedQueryEntityRow.d.ts +0 -8
  411. package/src/View/Query/NamedQueryEntityRow.js +0 -21
  412. package/src/View/Query/QueryPopup.d.ts +0 -28
  413. package/src/View/Query/QueryPopup.js +0 -114
  414. package/src/View/Schedule/ScheduleEntityRow.d.ts +0 -5
  415. package/src/View/Schedule/ScheduleEntityRow.js +0 -58
  416. package/src/View/Schedule/SchedulePopup.d.ts +0 -58
  417. package/src/View/Schedule/SchedulePopup.js +0 -317
  418. package/src/View/Shortcut/ShortcutEntityRow.d.ts +0 -17
  419. package/src/View/Shortcut/ShortcutEntityRow.js +0 -47
  420. package/src/View/Shortcut/ShortcutPopup.d.ts +0 -30
  421. package/src/View/Shortcut/ShortcutPopup.js +0 -121
@@ -1,9 +1,10 @@
1
1
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
2
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
4
+ import * as FilterRedux from '../Redux/ActionsReducers/FilterRedux';
4
5
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
6
  import { ColumnFilter } from '../PredefinedConfig/FilterState';
6
- import { IModule } from './Interface/IModule';
7
+ import { AdaptableObjectView, IModule } from './Interface/IModule';
7
8
  import { AdaptableApi } from '../Api/AdaptableApi';
8
9
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
9
10
  export declare class FilterModule extends AdaptableModuleBase implements IModule {
@@ -15,4 +16,10 @@ export declare class FilterModule extends AdaptableModuleBase implements IModule
15
16
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
16
17
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
17
18
  getTeamSharingAction(): TeamSharingImportInfo<ColumnFilter>;
19
+ toView(filter: ColumnFilter): AdaptableObjectView;
20
+ toViewAll(): AdaptableObjectView[];
21
+ getViewProperties(): {
22
+ getDeleteAction: (columnFilter: ColumnFilter) => FilterRedux.ColumnFilterClearAction;
23
+ emptyView: string;
24
+ };
18
25
  }
@@ -76,5 +76,32 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
76
76
  EditAction: FilterRedux.ColumnFilterEdit,
77
77
  };
78
78
  }
79
+ toView(filter) {
80
+ return {
81
+ items: [
82
+ {
83
+ name: 'Column',
84
+ values: [filter.ColumnId],
85
+ },
86
+ {
87
+ name: 'Filter',
88
+ values: [this.api.filterApi.columnFilterToString(filter)],
89
+ },
90
+ ],
91
+ abObject: filter,
92
+ };
93
+ }
94
+ toViewAll() {
95
+ return this.getModuleAdaptableObjects().map((filter) => this.toView(filter));
96
+ }
97
+ getViewProperties() {
98
+ return {
99
+ getDeleteAction: FilterRedux.ColumnFilterClear,
100
+ emptyView: `
101
+ There are currently no column filters applied.
102
+ Create column filters by using the filter dropdown in each column header.
103
+ `,
104
+ };
105
+ }
79
106
  }
80
107
  exports.FilterModule = FilterModule;
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { AdaptableApi } from '../Api/AdaptableApi';
3
+ import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
4
+ import { DataChangedInfo } from '../PredefinedConfig/Common/DataChangedInfo';
5
+ import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
6
+ import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
7
+ import * as FlashingCellRedux from '../Redux/ActionsReducers/FlashingCellRedux';
8
+ import { AdaptableModuleBase } from './AdaptableModuleBase';
9
+ import { AdaptableObjectView, IModule } from './Interface/IModule';
10
+ import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
11
+ import { FlashingCellDefinition } from '../PredefinedConfig/FlashingCellState';
12
+ export declare class FlashingCellModule extends AdaptableModuleBase implements IModule {
13
+ constructor(api: AdaptableApi);
14
+ getModuleAdaptableObjects(): AdaptableObject[];
15
+ getExplicitlyReferencedColumnIds(alertDefinition: FlashingCellDefinition): string[];
16
+ getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
17
+ addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
18
+ addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
19
+ protected handleDataSourceChanged(dataChangedInfo: DataChangedInfo): void;
20
+ private showFlashingCellsForDefinitions;
21
+ private getFlashingCellDefinitionsForDataChange;
22
+ private getBaseAlertDefinitionsForDataChange;
23
+ private isAlertPredicateTriggered;
24
+ getTeamSharingAction(): TeamSharingImportInfo<FlashingCellDefinition>;
25
+ toView(flashingCell: FlashingCellDefinition): AdaptableObjectView;
26
+ toViewAll(): AdaptableObjectView[];
27
+ getViewProperties(): {
28
+ getSuspendAction: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellRedux.FlashingCellDefinitionEditAction;
29
+ getUnSuspendAction: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellRedux.FlashingCellDefinitionEditAction;
30
+ getDeleteAction: (flashingCellDefinition: FlashingCellDefinition) => FlashingCellRedux.FlashingCellDefinitionDeleteAction;
31
+ getEditWizard: () => (props: import("../View/FlashingCell/Wizard/FlashingCellWizard").FlashingCellWizardProps) => JSX.Element;
32
+ };
33
+ }
@@ -0,0 +1,219 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FlashingCellModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const FlashingCellRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FlashingCellRedux"));
6
+ const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
7
+ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
8
+ const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
9
+ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
10
+ const AdaptableQuery_1 = require("../PredefinedConfig/Common/AdaptableQuery");
11
+ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
12
+ const getRuleViewItems_1 = require("./Utilities/getRuleViewItems");
13
+ const getFlashingCellDurationViewItems_1 = require("./Utilities/getFlashingCellDurationViewItems");
14
+ const getFlashingCellStyleViewItems_1 = require("./Utilities/getFlashingCellStyleViewItems");
15
+ const FlashingCellWizard_1 = require("../View/FlashingCell/Wizard/FlashingCellWizard");
16
+ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
17
+ constructor(api) {
18
+ super(ModuleConstants.FlashingCellModuleId, 'Flashing Cell', 'flashing-cell', 'FlashingAlert', 'Flash cells when they change', api);
19
+ this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
20
+ if (dataChangedInfo.trigger === 'undo') {
21
+ // do NOT handle reverted changes
22
+ return;
23
+ }
24
+ // TODO: think about flashing row value only
25
+ // - flash for the underlying small data changes, but the visual does not
26
+ if (this.api.internalApi.getAdaptableOptions().notificationsOptions
27
+ .dataChangeDetectionPolicy === 'formattedValue') {
28
+ const { oldValue, newValue } = dataChangedInfo;
29
+ const columnId = dataChangedInfo.column.columnId;
30
+ const oldFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, oldValue);
31
+ const newFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, newValue);
32
+ if (oldFormattedValue === newFormattedValue) {
33
+ // if the formattedValues are identical, then no alert is fired
34
+ return;
35
+ }
36
+ }
37
+ this.handleDataSourceChanged(dataChangedInfo);
38
+ });
39
+ }
40
+ getModuleAdaptableObjects() {
41
+ return this.api.flashingCellApi.getFlashingCellDefinitions();
42
+ }
43
+ getExplicitlyReferencedColumnIds(alertDefinition) {
44
+ const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
45
+ if (queryExpression) {
46
+ return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
47
+ }
48
+ else if (this.api.scopeApi.scopeHasColumns(alertDefinition.Scope)) {
49
+ return this.api.scopeApi
50
+ .getColumnsForScope(alertDefinition.Scope)
51
+ .map((adaptableColumn) => adaptableColumn.columnId);
52
+ }
53
+ return [];
54
+ }
55
+ getReferencedNamedQueryNames(alertDefinition) {
56
+ const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
57
+ if (!queryExpression) {
58
+ return [];
59
+ }
60
+ return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
61
+ }
62
+ addColumnMenuItems(column) {
63
+ if (column && this.isModuleEditable()) {
64
+ if (!this.api.columnApi.isCalculatedColumn(column.columnId)) {
65
+ const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
66
+ const flashingCellForCurrentColumn = flashingCellDefinitions.find((flashingCellDefinition) => {
67
+ return this.api.scopeApi.isColumnInScope(column, flashingCellDefinition.Scope);
68
+ });
69
+ if (flashingCellForCurrentColumn) {
70
+ return [
71
+ this.createColumnMenuItemReduxAction('Remove Flashing Cell', this.moduleInfo.Glyph, FlashingCellRedux.FlashingCellDefinitionDelete(flashingCellForCurrentColumn)),
72
+ ];
73
+ }
74
+ return [
75
+ this.createColumnMenuItemReduxAction('Add Flashing Cell', this.moduleInfo.Glyph, FlashingCellRedux.FlashingCellDefinitionAdd({
76
+ Scope: {
77
+ ColumnIds: [column.columnId],
78
+ },
79
+ Rule: {
80
+ Predicate: { PredicateId: 'Any' },
81
+ },
82
+ })),
83
+ ];
84
+ }
85
+ }
86
+ }
87
+ addContextMenuItems(menuContext) {
88
+ const items = [];
89
+ if (!menuContext.isRowGroupColumn && this.isModuleAvailable()) {
90
+ if (menuContext.adaptableColumn && menuContext.rowNode) {
91
+ const flashingCellForRow = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue);
92
+ const flashingCellForCell = this.api.internalApi.getAdaptableFlashingCellFor(menuContext.primaryKeyValue, menuContext.adaptableColumn.columnId);
93
+ if (flashingCellForRow && flashingCellForRow.flashTarget === 'row') {
94
+ items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Row', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForRow)));
95
+ }
96
+ else if (flashingCellForCell && flashingCellForCell.flashTarget === 'cell') {
97
+ items.push(this.createColumnMenuItemReduxAction('Clear Flashing Alert for Cell', this.moduleInfo.Glyph, SystemRedux.SystemFlashingCellDelete(flashingCellForCell)));
98
+ }
99
+ }
100
+ }
101
+ return items;
102
+ }
103
+ handleDataSourceChanged(dataChangedInfo) {
104
+ const flashingCellDefinitions = this.getFlashingCellDefinitionsForDataChange(dataChangedInfo);
105
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingCellDefinitions)) {
106
+ this.showFlashingCellsForDefinitions(dataChangedInfo, flashingCellDefinitions);
107
+ }
108
+ }
109
+ showFlashingCellsForDefinitions(dataChangedInfo, flashingCellDefinitions = []) {
110
+ const allColumnIds = this.api.columnApi.getColumns().map((c) => c.columnId);
111
+ const columnDataType = dataChangedInfo.column.dataType;
112
+ const numeric = columnDataType === 'Number';
113
+ const isComparableType = numeric || columnDataType === 'Date';
114
+ let up = false;
115
+ let down = false;
116
+ let direction = 'neutral';
117
+ if (isComparableType) {
118
+ const newValue = numeric ? Number(dataChangedInfo.newValue) : dataChangedInfo.newValue;
119
+ const oldValue = numeric ? Number(dataChangedInfo.oldValue) : dataChangedInfo.oldValue;
120
+ up = newValue > oldValue;
121
+ down = newValue < oldValue;
122
+ direction = up ? 'up' : down ? 'down' : 'neutral';
123
+ }
124
+ flashingCellDefinitions.forEach((flashingCellDefinition) => {
125
+ const flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
126
+ const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
127
+ if (flashTarget === 'row') {
128
+ allColumnIds.forEach((colId) => {
129
+ flashColumnIds[colId] = true;
130
+ });
131
+ }
132
+ const rowPrimaryKey = dataChangedInfo.primaryKeyValue;
133
+ this.api.flashingCellApi.showFlashingCell({
134
+ rowPrimaryKey,
135
+ flashingCellDefinition: flashingCellDefinition,
136
+ dataChangedInfo,
137
+ direction,
138
+ flashTarget,
139
+ flashColumnIds,
140
+ });
141
+ });
142
+ }
143
+ getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
144
+ return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent,
145
+ // reactive flashing alert definitions are excluded as they are handled separately (asynchronously)
146
+ this.api.flashingCellApi.getActiveNonReactiveFlashingCellDefinitions(), true);
147
+ }
148
+ getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
149
+ let relatedAlertDefinitions = definitions
150
+ .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
151
+ .filter((flashingCellDefinition) => !AdaptableQuery_1.isReactiveQuery(flashingCellDefinition.Rule));
152
+ let triggeredAlerts = [];
153
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
154
+ relatedAlertDefinitions.forEach((alertDefinition) => {
155
+ if (alertDefinition.Rule.BooleanExpression) {
156
+ let expression = alertDefinition.Rule.BooleanExpression;
157
+ let rowNode = dataChangedEvent.rowNode;
158
+ if (!rowNode) {
159
+ rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
160
+ }
161
+ const isValidExpression = this.api.queryLanguageApi.isValidBooleanExpression(expression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${expression}'`);
162
+ const isSatisfiedExpression = isValidExpression &&
163
+ this.api.internalApi
164
+ .getQueryLanguageService()
165
+ .evaluateBooleanExpression(expression, this.moduleInfo.ModuleName, rowNode);
166
+ if (isSatisfiedExpression) {
167
+ triggeredAlerts.push(alertDefinition);
168
+ }
169
+ }
170
+ else if (this.isAlertPredicateTriggered(alertDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
171
+ triggeredAlerts.push(alertDefinition);
172
+ }
173
+ });
174
+ }
175
+ return triggeredAlerts;
176
+ }
177
+ isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
178
+ return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
179
+ value: dataChangedEvent.newValue,
180
+ oldValue: dataChangedEvent.oldValue,
181
+ // TODO send real display value
182
+ displayValue: null,
183
+ node: dataChangedEvent.rowNode,
184
+ column: dataChangedEvent.column,
185
+ }, defaultNoPredicateReturn);
186
+ }
187
+ getTeamSharingAction() {
188
+ return {
189
+ ModuleEntities: this.api.flashingCellApi.getFlashingCellDefinitions(),
190
+ AddAction: FlashingCellRedux.FlashingCellDefinitionAdd,
191
+ EditAction: FlashingCellRedux.FlashingCellDefinitionEdit,
192
+ };
193
+ }
194
+ toView(flashingCell) {
195
+ return {
196
+ items: [
197
+ getScopeViewItems_1.getScopeViewItems(flashingCell.Scope),
198
+ getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api),
199
+ getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
200
+ getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
201
+ ],
202
+ abObject: flashingCell,
203
+ };
204
+ }
205
+ toViewAll() {
206
+ return this.api.flashingCellApi
207
+ .getFlashingCellDefinitions()
208
+ .map((flashingCell) => this.toView(flashingCell));
209
+ }
210
+ getViewProperties() {
211
+ return {
212
+ getSuspendAction: FlashingCellRedux.FlashingCellDefinitionSuspend,
213
+ getUnSuspendAction: FlashingCellRedux.FlashingCellDefinitionUnSuspend,
214
+ getDeleteAction: FlashingCellRedux.FlashingCellDefinitionDelete,
215
+ getEditWizard: () => FlashingCellWizard_1.FlashingCellWizard,
216
+ };
217
+ }
218
+ }
219
+ exports.FlashingCellModule = FlashingCellModule;
@@ -2,10 +2,12 @@ import { AdaptableModuleBase } from './AdaptableModuleBase';
2
2
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
3
3
  import { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
4
4
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
+ import * as FormatColumnRedux from '../Redux/ActionsReducers/FormatColumnRedux';
5
6
  import { FormatColumn } from '../PredefinedConfig/FormatColumnState';
6
- import { IModule } from './Interface/IModule';
7
+ import { AdaptableObjectView, IModule } from './Interface/IModule';
7
8
  import { AdaptableApi } from '../Api/AdaptableApi';
8
9
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
10
+ import { FormatColumnWizard } from '../View/FormatColumn/Wizard/FormatColumnWizard';
9
11
  export declare class FormatColumnModule extends AdaptableModuleBase implements IModule {
10
12
  constructor(api: AdaptableApi);
11
13
  getModuleAdaptableObjects(): AdaptableObject[];
@@ -15,4 +17,12 @@ export declare class FormatColumnModule extends AdaptableModuleBase implements I
15
17
  private getExistingFormatColumn;
16
18
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
17
19
  getTeamSharingAction(): TeamSharingImportInfo<FormatColumn>;
20
+ toView(formatColumn: FormatColumn): AdaptableObjectView;
21
+ toViewAll(): AdaptableObjectView[];
22
+ getViewProperties(): {
23
+ getDeleteAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnDeleteAction;
24
+ getSuspendAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnSuspendAction;
25
+ getUnSuspendAction: (formatColumn: FormatColumn) => FormatColumnRedux.FormatColumnSuspendAction;
26
+ getEditWizard(): typeof FormatColumnWizard;
27
+ };
18
28
  }
@@ -7,6 +7,11 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
8
8
  const FormatColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FormatColumnRedux"));
9
9
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
10
+ const FormatColumnWizard_1 = require("../View/FormatColumn/Wizard/FormatColumnWizard");
11
+ const getScopeViewItems_1 = require("./Utilities/getScopeViewItems");
12
+ const FormatColumnStyleWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnStyleWizardSection");
13
+ const FormatColumnFormatWizardSection_1 = require("../View/FormatColumn/Wizard/FormatColumnFormatWizardSection");
14
+ const getFormatColumnSettingsViewItems_1 = require("./Utilities/getFormatColumnSettingsViewItems");
10
15
  class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
11
16
  constructor(api) {
12
17
  super(ModuleConstants.FormatColumnModuleId, 'Format Column', 'format-column', 'FormatColumnPopup', 'Create a column style, display format or cell alignment', api);
@@ -209,5 +214,35 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
209
214
  EditAction: FormatColumnRedux.FormatColumnEdit,
210
215
  };
211
216
  }
217
+ toView(formatColumn) {
218
+ return {
219
+ abObject: formatColumn,
220
+ items: [
221
+ getScopeViewItems_1.getScopeViewItems(formatColumn.Scope),
222
+ {
223
+ name: 'Style',
224
+ view: () => FormatColumnStyleWizardSection_1.renderFormatColumnStyleSummary(formatColumn, this.api),
225
+ },
226
+ {
227
+ name: 'Display Format',
228
+ values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn)],
229
+ },
230
+ getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems(formatColumn),
231
+ ],
232
+ };
233
+ }
234
+ toViewAll() {
235
+ return this.getModuleAdaptableObjects().map((formatColumn) => this.toView(formatColumn));
236
+ }
237
+ getViewProperties() {
238
+ return {
239
+ getDeleteAction: FormatColumnRedux.FormatColumnDelete,
240
+ getSuspendAction: FormatColumnRedux.FormatColumnSuspend,
241
+ getUnSuspendAction: FormatColumnRedux.FormatColumnUnSuspend,
242
+ getEditWizard() {
243
+ return FormatColumnWizard_1.FormatColumnWizard;
244
+ },
245
+ };
246
+ }
212
247
  }
213
248
  exports.FormatColumnModule = FormatColumnModule;
@@ -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 { AdaptableMenuItem } from '../PredefinedConfig/Common/Menu';
5
+ import * as FreeTextColumnRedux from '../Redux/ActionsReducers/FreeTextColumnRedux';
4
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
7
  import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
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 FreeTextColumnModule extends AdaptableModuleBase implements IModule {
@@ -13,4 +15,10 @@ export declare class FreeTextColumnModule extends AdaptableModuleBase implements
13
15
  hasNamedQueryReferences(): boolean;
14
16
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
15
17
  getTeamSharingAction(): TeamSharingImportInfo<FreeTextColumn>;
18
+ toView(freeTextColumn: FreeTextColumn): AdaptableObjectView;
19
+ toViewAll(): AdaptableObjectView[];
20
+ getViewProperties(): {
21
+ getDeleteAction: (freeTextColumn: FreeTextColumn) => FreeTextColumnRedux.FreeTextColumnDeleteAction;
22
+ getEditWizard(): (props: import("../View/FreeTextColumn/Wizard/FreeTextColumnWizard").FreeTextColumnWizardProps) => JSX.Element;
23
+ };
16
24
  }
@@ -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 FreeTextColumnRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FreeTextColumnRedux"));
8
+ const FreeTextColumnWizard_1 = require("../View/FreeTextColumn/Wizard/FreeTextColumnWizard");
8
9
  class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
9
10
  constructor(api) {
10
11
  super(ModuleConstants.FreeTextColumnModuleId, 'Free Text Column', 'freetext-column', 'FreeTextColumnPopup', 'Dynamic column showing custom content (stored in state and not with grid data)', api);
@@ -43,5 +44,49 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
44
  EditAction: FreeTextColumnRedux.FreeTextColumnEdit,
44
45
  };
45
46
  }
47
+ toView(freeTextColumn) {
48
+ var _a;
49
+ return {
50
+ abObject: freeTextColumn,
51
+ items: [
52
+ {
53
+ name: 'Settings',
54
+ label: 'Column Id',
55
+ values: [freeTextColumn.ColumnId],
56
+ },
57
+ freeTextColumn.FriendlyName && {
58
+ name: 'Settings',
59
+ label: 'Column Name',
60
+ values: [freeTextColumn.FriendlyName],
61
+ },
62
+ {
63
+ name: 'Settings',
64
+ label: 'Data Type',
65
+ values: [(_a = freeTextColumn.DataType) !== null && _a !== void 0 ? _a : 'Not specified'],
66
+ },
67
+ freeTextColumn.DefaultValue !== undefined && {
68
+ name: 'Settings',
69
+ label: 'Default Value',
70
+ values: [freeTextColumn.DefaultValue],
71
+ },
72
+ freeTextColumn.TextEditor && {
73
+ name: 'Editor Type',
74
+ label: 'Editor',
75
+ values: [freeTextColumn.TextEditor],
76
+ },
77
+ ].filter(Boolean),
78
+ };
79
+ }
80
+ toViewAll() {
81
+ return this.getModuleAdaptableObjects().map((freeTextColumn) => this.toView(freeTextColumn));
82
+ }
83
+ getViewProperties() {
84
+ return {
85
+ getDeleteAction: FreeTextColumnRedux.FreeTextColumnDelete,
86
+ getEditWizard() {
87
+ return FreeTextColumnWizard_1.FreeTextColumnWizard;
88
+ },
89
+ };
90
+ }
46
91
  }
47
92
  exports.FreeTextColumnModule = FreeTextColumnModule;
@@ -13,13 +13,21 @@ class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
13
  }
14
14
  addColumnMenuItems(column) {
15
15
  if (this.isModuleAvailable()) {
16
+ const showGridSection = this.api.internalApi
17
+ .getEntitlementService()
18
+ .isGridInfoSectionVisible('GridSummary');
19
+ const showColumnInfoSection = this.api.internalApi
20
+ .getEntitlementService()
21
+ .isGridInfoSectionVisible('ColumnInfo');
16
22
  let selectMenuItems = [];
17
- selectMenuItems.push(this.createMainMenuItemShowPopup({
18
- Label: 'Grid',
19
- ComponentName: this.moduleInfo.Popup,
20
- Icon: 'align-justify',
21
- }));
22
- if (column) {
23
+ if (showGridSection) {
24
+ selectMenuItems.push(this.createMainMenuItemShowPopup({
25
+ Label: 'Grid',
26
+ ComponentName: this.moduleInfo.Popup,
27
+ Icon: 'align-justify',
28
+ }));
29
+ }
30
+ if (column && showColumnInfoSection) {
23
31
  selectMenuItems.push(this.createMainMenuItemShowPopup({
24
32
  Label: 'Column',
25
33
  ComponentName: this.moduleInfo.Popup,
@@ -30,48 +38,62 @@ class GridInfoModule extends AdaptableModuleBase_1.AdaptableModuleBase {
30
38
  },
31
39
  }));
32
40
  }
33
- return [
34
- {
35
- label: 'Show Info',
36
- isVisible: true,
37
- icon: this.moduleInfo.Glyph,
38
- subItems: selectMenuItems,
39
- },
40
- ];
41
+ if (showGridSection || showColumnInfoSection) {
42
+ return [
43
+ {
44
+ label: 'Show Info',
45
+ isVisible: true,
46
+ icon: this.moduleInfo.Glyph,
47
+ subItems: selectMenuItems,
48
+ },
49
+ ];
50
+ }
41
51
  }
42
52
  }
43
53
  addContextMenuItems(menuContext) {
44
54
  if (this.isModuleAvailable()) {
45
55
  let selectMenuItems = [];
56
+ const showGridSection = this.api.internalApi
57
+ .getEntitlementService()
58
+ .isGridInfoSectionVisible('GridSummary');
59
+ const showColumnInfoSection = this.api.internalApi
60
+ .getEntitlementService()
61
+ .isGridInfoSectionVisible('ColumnInfo');
46
62
  let gridPopUpParams = {
47
63
  source: 'ContextMenu',
48
64
  };
49
- selectMenuItems.push(this.createMainMenuItemShowPopup({
50
- Label: 'Grid',
51
- ComponentName: this.moduleInfo.Popup,
52
- Icon: 'align-justify',
53
- PopupParams: gridPopUpParams,
54
- }));
55
- if (!menuContext.isRowGroupColumn) {
56
- let columnPopUpParams = {
57
- source: 'ContextMenu',
58
- column: menuContext.adaptableColumn,
59
- };
65
+ if (showGridSection) {
60
66
  selectMenuItems.push(this.createMainMenuItemShowPopup({
61
- Label: 'Column',
67
+ Label: 'Grid',
62
68
  ComponentName: this.moduleInfo.Popup,
63
- Icon: 'column-chooser',
64
- PopupParams: columnPopUpParams,
69
+ Icon: 'align-justify',
70
+ PopupParams: gridPopUpParams,
65
71
  }));
66
72
  }
67
- return [
68
- {
69
- label: 'Show Info',
70
- isVisible: true,
71
- icon: this.moduleInfo.Glyph,
72
- subItems: selectMenuItems,
73
- },
74
- ];
73
+ if (showColumnInfoSection) {
74
+ if (!menuContext.isRowGroupColumn) {
75
+ let columnPopUpParams = {
76
+ source: 'ContextMenu',
77
+ column: menuContext.adaptableColumn,
78
+ };
79
+ selectMenuItems.push(this.createMainMenuItemShowPopup({
80
+ Label: 'Column',
81
+ ComponentName: this.moduleInfo.Popup,
82
+ Icon: 'column-chooser',
83
+ PopupParams: columnPopUpParams,
84
+ }));
85
+ }
86
+ }
87
+ if (showGridSection || showColumnInfoSection) {
88
+ return [
89
+ {
90
+ label: 'Show Info',
91
+ isVisible: true,
92
+ icon: this.moduleInfo.Glyph,
93
+ subItems: selectMenuItems,
94
+ },
95
+ ];
96
+ }
75
97
  }
76
98
  }
77
99
  }