@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
@@ -0,0 +1,15 @@
1
+ export declare const getMiddlePosition: (size: {
2
+ width: number;
3
+ height: number;
4
+ }) => {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ export declare const getActionPanelSize: () => {
9
+ height: number;
10
+ width: number;
11
+ };
12
+ export declare const getSettingsPanelSize: () => {
13
+ height: number;
14
+ width: number;
15
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getSettingsPanelSize = exports.getActionPanelSize = exports.getMiddlePosition = void 0;
4
+ const Helper_1 = require("../../../../Utilities/Helpers/Helper");
5
+ exports.getMiddlePosition = (size) => {
6
+ const height = window.innerHeight;
7
+ const width = window.innerWidth;
8
+ return {
9
+ x: width / 2 - size.width / 2,
10
+ y: height / 2 - size.height / 2,
11
+ };
12
+ };
13
+ exports.getActionPanelSize = () => {
14
+ const height = window.innerHeight;
15
+ const width = window.innerWidth;
16
+ return {
17
+ height: Helper_1.clamp(600, 0, height * 0.9),
18
+ width: Helper_1.clamp(800, 0, width * 0.9),
19
+ };
20
+ };
21
+ exports.getSettingsPanelSize = () => {
22
+ const height = window.innerHeight;
23
+ const width = window.innerWidth;
24
+ return {
25
+ height: Helper_1.clamp(height * 0.9, 0, 800),
26
+ width: Helper_1.clamp(width * 0.9, 0, 800),
27
+ };
28
+ };
@@ -0,0 +1 @@
1
+ export { AdaptablePopup } from './AdaptablePopup';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdaptablePopup = void 0;
4
+ var AdaptablePopup_1 = require("./AdaptablePopup");
5
+ Object.defineProperty(exports, "AdaptablePopup", { enumerable: true, get: function () { return AdaptablePopup_1.AdaptablePopup; } });
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
7
  const ToolPanelRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ToolPanelRedux"));
8
- const PanelWithButton_1 = require("../../Components/Panels/PanelWithButton");
8
+ const PopupPanel_1 = require("../Popups/AdaptablePopup/PopupPanel");
9
9
  const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
10
10
  const Types_1 = require("../../../PredefinedConfig/Common/Types");
11
11
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../../Utilities/Extensions/ArrayExtensions"));
@@ -64,7 +64,7 @@ class ToolPanelPopupComponent extends React.Component {
64
64
  const selectedToolPanels = this.props.ToolPanelState.ToolPanels.map((toolPanelDefinition) => toolPanelDefinition.Name)
65
65
  // ensure that the visible state has only valid tool panels
66
66
  .filter((visibleToolPanel) => availableToolPanels.includes(visibleToolPanel));
67
- return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: "ToolPanel Configuration", bodyProps: { padding: 2, style: { display: 'flex', flexDirection: 'column' } }, glyphicon: this.props.moduleInfo.Glyph },
67
+ return (React.createElement(PopupPanel_1.PopupPanel, { headerText: "ToolPanel Configuration", glyphicon: this.props.moduleInfo.Glyph },
68
68
  React.createElement(Tabs_1.Tabs, { "data-name": 'toolPanelPopup-component', className: "ab-ToolPanelPopup", value: this.state.ToolPanelConfigView, style: { height: '100%' }, onValueChange: (value) => this.setState({ ToolPanelConfigView: value }) },
69
69
  React.createElement(Tabs_1.Tabs.Tab, { value: ToolPanelConfigView.ToolPanels },
70
70
  React.createElement(Radio_1.default, { margin: 0, value: ToolPanelConfigView.ToolPanels, checked: this.state.ToolPanelConfigView == ToolPanelConfigView.ToolPanels, tabIndex: -1 }, "Tool Panels")),
@@ -81,7 +81,8 @@ class ToolPanelPopupComponent extends React.Component {
81
81
  this.setState({ ToolPanelConfigView: ToolPanelConfigView });
82
82
  }
83
83
  onToolPanelToolPanelsChanged(selectedValues) {
84
- const currentSelectedToolPanelDefinitions = this.props.ToolPanelState.ToolPanels;
84
+ const currentSelectedToolPanelDefinitions = this.props
85
+ .ToolPanelState.ToolPanels;
85
86
  // try to return the pre-existing definition (to maintain the previous collapsed state)
86
87
  // otherwise select the new toolPanel with the default 'collapsed' state
87
88
  let newSelectedToolPanelDefinitions = selectedValues.map((selectedToolPanel) => {
@@ -12,6 +12,7 @@ const EllipsisContainer_1 = require("../../../components/EllipsisContainer");
12
12
  const SimpleButton_1 = tslib_1.__importDefault(require("../../../components/SimpleButton"));
13
13
  const Radio_1 = tslib_1.__importDefault(require("../../../components/Radio"));
14
14
  const reorder_1 = require("../../../Utilities/reorder");
15
+ const Tag_1 = require("../../../components/Tag");
15
16
  function useValuesMap({ options, value, toIdentifier, selectedMap, }) {
16
17
  const optionsMap = react_1.useMemo(() => {
17
18
  if (selectedMap) {
@@ -183,10 +184,10 @@ function ValueOptionsTags(props) {
183
184
  };
184
185
  const option = selectedMap.get(optionId);
185
186
  const label = option != null ? toLabel(option) : `${optionId}`;
186
- return (React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", backgroundColor: "primary", "data-name": "selected-option", "data-id": optionId, mt: allowWrap ? 1 : 0, mr: 1, padding: 1, className: "ab-ValueSelector__tag", style: { borderRadius: 'var(--ab__border-radius)', flex: 'none' }, onClick: (e) => {
187
+ return (React.createElement(Tag_1.Tag, { flexDirection: "row", alignItems: "center", "data-name": "selected-option", "data-id": optionId, mt: allowWrap ? 1 : 0, mr: 1, className: "ab-ValueSelector__tag", onClick: (e) => {
187
188
  var _a, _b, _c;
188
189
  (_c = (_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.focus) === null || _c === void 0 ? void 0 : _c.call(_b);
189
- } },
190
+ }, style: { flex: 'none' } },
190
191
  renderLabel ? renderLabel(label) : label,
191
192
  readOnly ? null : (React.createElement(SimpleButton_1.default, { icon: "clear", ml: 2, iconSize: 14, variant: "text", style: { border: 'none' }, onClick: clear }))));
192
193
  };
@@ -197,7 +198,6 @@ function ValueOptionsTags(props) {
197
198
  " ",
198
199
  remaining > 1 ? 'others' : 'other'));
199
200
  }, []);
200
- return (React.createElement(React.Fragment, null,
201
- React.createElement(EllipsisContainer_1.EllipsisContainer, { marginRight: 4, my: 1, allowWrap: allowWrap, count: value.length, direction: "horizontal", renderItem: renderOptionTag, renderEllipsis: renderEllipsis })));
201
+ return (React.createElement(EllipsisContainer_1.EllipsisContainer, { marginRight: 4, my: 1, allowWrap: allowWrap, count: value.length, direction: "horizontal", renderItem: renderOptionTag, renderEllipsis: renderEllipsis }));
202
202
  }
203
203
  exports.ValueOptionsTags = ValueOptionsTags;
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { AdaptableOnePageWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
3
3
  import { ConditionalStyle } from '../../../types';
4
4
  export interface ConditionalStyleWizardProps extends AdaptableOnePageWizardProps<ConditionalStyle> {
5
5
  }
6
- export declare function ConditionalStyleWizard(props: ConditionalStyleWizardProps): JSX.Element;
6
+ export declare const ConditionalStyleWizard: React.FunctionComponent<ConditionalStyleWizardProps>;
@@ -14,13 +14,18 @@ const DEFAULT_PREDICATE_ID_FOR_CONDITIONAL_STYLE_1 = require("./DEFAULT_PREDICAT
14
14
  const CheckBox_1 = require("../../../components/CheckBox");
15
15
  const NewScopeComponent_1 = require("../../Components/NewScopeComponent");
16
16
  const EntityRulesEditor_1 = require("../../Components/EntityRulesEditor");
17
- function ConditionalStyleWizard(props) {
17
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
18
+ const react_redux_1 = require("react-redux");
19
+ const ConditionalStyleRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/ConditionalStyleRedux"));
20
+ exports.ConditionalStyleWizard = (props) => {
18
21
  const [conditionalStyle, setConditionalStyle] = react_1.useState(() => {
19
22
  var _a;
20
23
  const DEFAULT_RULE = {
21
24
  BooleanExpression: '',
22
25
  };
23
- const conditionalStyle = Helper_1.cloneObject(props.data);
26
+ const conditionalStyle = props.data
27
+ ? Helper_1.cloneObject(props.data)
28
+ : ObjectFactory_1.default.CreateEmptyConditionalStyle();
24
29
  conditionalStyle.Scope = (_a = conditionalStyle.Scope) !== null && _a !== void 0 ? _a : { All: true };
25
30
  if (!conditionalStyle.Rule) {
26
31
  conditionalStyle.Rule = DEFAULT_RULE;
@@ -30,7 +35,17 @@ function ConditionalStyleWizard(props) {
30
35
  }
31
36
  return conditionalStyle;
32
37
  });
33
- return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { moduleInfo: props.moduleInfo, data: conditionalStyle, onHide: props.onCloseWizard, onFinish: props.onFinishWizard, sections: [
38
+ const dispatch = react_redux_1.useDispatch();
39
+ const handleFinish = () => {
40
+ if (props.data) {
41
+ dispatch(ConditionalStyleRedux.ConditionalStyleEdit(conditionalStyle));
42
+ }
43
+ else {
44
+ dispatch(ConditionalStyleRedux.ConditionalStyleAdd(conditionalStyle));
45
+ }
46
+ props.onCloseWizard();
47
+ };
48
+ return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: conditionalStyle, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
34
49
  {
35
50
  title: 'Style',
36
51
  details: 'Specify the Style to be applied conditionally',
@@ -74,5 +89,4 @@ function ConditionalStyleWizard(props) {
74
89
  title: 'Summary',
75
90
  },
76
91
  ] }));
77
- }
78
- exports.ConditionalStyleWizard = ConditionalStyleWizard;
92
+ };
@@ -4,16 +4,15 @@ exports.CustomSortColumnWizardSection = exports.isValidCustomSortColumn = export
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const rebass_1 = require("rebass");
7
- const CodeBlock_1 = require("../../../components/CodeBlock");
8
7
  const Tabs_1 = require("../../../components/Tabs");
8
+ const Tag_1 = require("../../../components/Tag");
9
9
  const ColumnSelector_1 = require("../../Components/ColumnSelector");
10
10
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
11
11
  exports.renderCustomSortColumn = (data) => {
12
12
  const { api } = OnePageAdaptableWizard_1.useOnePageWizardContext();
13
13
  return (React.createElement(rebass_1.Text, { pr: 2, py: 2, fontSize: 2 },
14
- "Custom sort column:",
15
- ' ',
16
- React.createElement(CodeBlock_1.CodeBlock, null, api.columnApi.getFriendlyNameFromColumnId(data.ColumnId))));
14
+ "Custom sort column: ",
15
+ React.createElement(Tag_1.Tag, null, api.columnApi.getFriendlyNameFromColumnId(data.ColumnId))));
17
16
  };
18
17
  exports.isValidCustomSortColumn = (data) => {
19
18
  if (!data.ColumnId) {
@@ -9,11 +9,26 @@ const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
9
9
  const Helper_1 = require("../../../Utilities/Helpers/Helper");
10
10
  const CustomSortColumnWizardSection_1 = require("./CustomSortColumnWizardSection");
11
11
  const CustomSortValuesWizardSection_1 = require("./CustomSortValuesWizardSection");
12
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
13
+ const react_redux_1 = require("react-redux");
14
+ const CustomSortRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/CustomSortRedux"));
12
15
  exports.CustomSortWizard = (props) => {
13
16
  const [customSort, setCustomSort] = react_1.useState(() => {
14
- return Helper_1.cloneObject(props.data);
17
+ return props.data
18
+ ? Helper_1.cloneObject(props.data)
19
+ : ObjectFactory_1.default.CreateEmptyCustomSort();
15
20
  });
16
- return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { moduleInfo: props.moduleInfo, sections: [
21
+ const dispatch = react_redux_1.useDispatch();
22
+ const handleFinish = () => {
23
+ if (props.data) {
24
+ dispatch(CustomSortRedux.CustomSortEdit(customSort));
25
+ }
26
+ else {
27
+ dispatch(CustomSortRedux.CustomSortAdd(customSort));
28
+ }
29
+ props.onFinishWizard(customSort);
30
+ };
31
+ return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: customSort, onFinish: handleFinish, onHide: props.onCloseWizard, sections: [
17
32
  {
18
33
  isValid: CustomSortColumnWizardSection_1.isValidCustomSortColumn,
19
34
  renderSummary: CustomSortColumnWizardSection_1.renderCustomSortColumn,
@@ -41,5 +56,5 @@ exports.CustomSortWizard = (props) => {
41
56
  React.createElement(OnePageAdaptableWizard_1.OnePageWizardSummary, null)));
42
57
  },
43
58
  },
44
- ], data: customSort, onHide: props.onCloseWizard, onFinish: props.onFinishWizard }));
59
+ ] }));
45
60
  };
@@ -17,7 +17,6 @@ interface DashboardComponentProps extends ModuleViewPopupProps<any> {
17
17
  onSetIsCollapsed: (IsCollapsed: boolean) => DashboardRedux.DashboardSetIsCollapsedAction;
18
18
  onSetIsFloating: (IsFloating: boolean) => DashboardRedux.DashboardSetIsFloatingAction;
19
19
  onSetIsInline: (IsInline: boolean) => DashboardRedux.DashboardSetIsInlineAction;
20
- onSetIsHidden: (IsHidden: boolean) => DashboardRedux.DashboardSetIsHiddenAction;
21
20
  onSetFloatingPosition: (FloatingPosition: AdaptableCoordinate) => DashboardRedux.DashboardSetFloatingPositionAction;
22
21
  onRunQuickSearch: (quickSearchText: string) => QuickSearchRedux.QuickSearchRunAction;
23
22
  onShowQuickSearchPopup: () => PopupRedux.PopupShowScreenAction;
@@ -22,8 +22,11 @@ const UIHelper_1 = tslib_1.__importDefault(require("../UIHelper"));
22
22
  const ModuleToolbarWrapper_1 = require("./ModuleToolbarWrapper");
23
23
  const CustomToolbarWrapper_1 = require("./CustomToolbarWrapper");
24
24
  const ModuleConstants_1 = require("../../Utilities/Constants/ModuleConstants");
25
+ const DefaultSettingsPanel_1 = require("../../Utilities/Defaults/DefaultSettingsPanel");
26
+ const ApplicationIcon_1 = require("../../components/ApplicationIcon");
25
27
  const DashboardComponent = (props) => {
26
28
  const [searchText, search] = useQuickSearchDebounced_1.useQuickSearchDebounced(props);
29
+ const dispatch = react_redux_1.useDispatch();
27
30
  const dashboardAccessLevel = props.api.internalApi
28
31
  .getEntitlementService()
29
32
  .getEntitlementAccessLevelForModule('Dashboard');
@@ -84,8 +87,7 @@ const DashboardComponent = (props) => {
84
87
  };
85
88
  const renderDashboardButtons = () => {
86
89
  var _a;
87
- let dashboardButtonsArray = (_a = props.api.dashboardApi
88
- .getCustomDashboardButtons()) === null || _a === void 0 ? void 0 : _a.filter((c) => c);
90
+ let dashboardButtonsArray = (_a = props.api.dashboardApi.getCustomDashboardButtons()) === null || _a === void 0 ? void 0 : _a.filter((c) => c);
89
91
  let customDashboardButtons = null;
90
92
  if (dashboardButtonsArray) {
91
93
  customDashboardButtons = dashboardButtonsArray.map((button) => {
@@ -121,73 +123,26 @@ const DashboardComponent = (props) => {
121
123
  return customDashboardButtons;
122
124
  };
123
125
  const renderDashboardIcon = (icon) => {
124
- if (!icon) {
125
- return null;
126
- }
127
- let width = icon.style && icon.style.width ? icon.style.width : 'var(--ab-cmp-simple-button__width)';
128
- let height = icon.style && icon.style.height ? icon.style.height : 'var(--ab-cmp-simple-button__height)';
129
- return (React.createElement("img", { className: "ab-Dashboard__application-icon", src: icon.src, style: { width: width, height: height } }));
126
+ return React.createElement(ApplicationIcon_1.ApplicationIcon, { icon: icon });
130
127
  };
128
+ const actionModuleMenuItems = react_redux_1.useSelector((state) => { var _a; return (_a = state === null || state === void 0 ? void 0 : state.Grid) === null || _a === void 0 ? void 0 : _a.ModuleDropdownMenuItems; })
129
+ .filter((menuItem) => menuItem.module !== 'General' && DefaultSettingsPanel_1.ACTION_POPUPS.includes(menuItem.module))
130
+ .map((menuItem) => ({
131
+ disabled: props.accessLevel == 'Hidden',
132
+ onClick: () => props.dispatch(menuItem.reduxAction),
133
+ icon: React.createElement(icons_1.Icon, { name: menuItem.icon }),
134
+ label: menuItem.label,
135
+ }));
131
136
  const renderModulesDropdown = () => {
132
137
  let moduleService = props.api.internalApi.getModuleService();
133
138
  let moduleInfo = moduleService.getModuleInfoByModule(ModuleConstants.DashboardModuleId);
134
- let allowedMenuItems = props.GridState.ModuleDropdownMenuItems.filter((x) => x.isVisible);
135
- // function menu items
136
- let menuItems = allowedMenuItems.map((menuItem) => {
137
- return {
138
- disabled: props.accessLevel == 'Hidden',
139
- onClick: () => props.dispatch(menuItem.reduxAction),
140
- icon: React.createElement(icons_1.Icon, { name: menuItem.icon }),
141
- label: menuItem.label,
142
- };
143
- });
144
- let dashboardOptions = props.api.internalApi.getAdaptableOptions().dashboardOptions;
145
- if (dashboardAccessLevel == 'Full' || dashboardAccessLevel == 'ReadOnly') {
146
- menuItems.unshift(dashboardAccessLevel == 'Full'
147
- ? {
148
- onClick: () => props.onShowDashboardPopup(),
149
- icon: React.createElement(icons_1.Icon, { name: "settings" }),
150
- label: 'Configure ' + moduleInfo.FriendlyName,
151
- }
152
- : null, props.DashboardState.IsFloating
153
- ? null
154
- : props.DashboardState.IsCollapsed
155
- ? {
156
- onClick: () => props.onSetIsCollapsed(false),
157
- icon: React.createElement(icons_1.Icon, { name: "expand" }),
158
- label: 'Expand ' + moduleInfo.FriendlyName,
159
- }
160
- : {
161
- onClick: () => props.onSetIsCollapsed(true),
162
- icon: React.createElement(icons_1.Icon, { name: "collapse" }),
163
- label: 'Collapse ' + moduleInfo.FriendlyName,
164
- }, props.DashboardState.IsFloating
165
- ? {
166
- onClick: () => props.onSetIsFloating(false),
167
- icon: React.createElement(icons_1.Icon, { name: "dock" }),
168
- label: 'Dock ' + moduleInfo.FriendlyName,
169
- }
170
- : dashboardOptions.canFloat && {
171
- onClick: () => props.onSetIsFloating(true),
172
- icon: React.createElement(icons_1.Icon, { name: "dock" }),
173
- label: 'Float ' + moduleInfo.FriendlyName,
174
- }, props.DashboardState.IsHidden
175
- ? {
176
- onClick: () => props.onSetIsHidden(false),
177
- icon: React.createElement(icons_1.Icon, { name: "show-column" }),
178
- label: 'Show ' + moduleInfo.FriendlyName,
179
- }
180
- : dashboardOptions.canFloat && {
181
- onClick: () => props.onSetIsHidden(true),
182
- icon: React.createElement(icons_1.Icon, { name: "hide-column" }),
183
- label: 'Hide ' + moduleInfo.FriendlyName,
184
- }, {
185
- separator: true,
186
- });
187
- }
188
- menuItems = menuItems.filter((x) => !!x);
189
- return (React.createElement(DropdownButton_1.default, { variant: "text", tone: "none", items: menuItems, className: "ab-DashboardToolbar__Home__functions", key: 'dropdown-functions', id: 'dropdown-functions' },
190
- React.createElement(icons_1.Icon, { name: 'home' })));
139
+ // JW 23/1/22: we should check the SettingsPanel entitlement here...
140
+ const handleOpenPopup = () => {
141
+ dispatch(PopupRedux.PopupShowScreen());
142
+ };
143
+ return (React.createElement(React.Fragment, null,
144
+ React.createElement(SimpleButton_1.default, { className: "ab-SettingsButton", onClick: handleOpenPopup, variant: "text", tone: "none", icon: "settings" }),
145
+ React.createElement(DropdownButton_1.default, { icon: "edit", variant: "text", tone: "none", items: actionModuleMenuItems, className: "ab-DashboardToolbar__Home__functions", key: 'dropdown-functions', id: 'dropdown-functions', showToggleIcon: false })));
191
146
  };
192
147
  const renderQuickSearch = () => {
193
148
  let moduleInfo = props.api.internalApi
@@ -219,7 +174,7 @@ const DashboardComponent = (props) => {
219
174
  }
220
175
  }, left: React.createElement(React.Fragment, null,
221
176
  renderDashboardIcon(props.api.internalApi.getAdaptableOptions().userInterfaceOptions.applicationIcon),
222
- dashboardOptions.showModulesDropdown && renderModulesDropdown()), right: React.createElement(React.Fragment, null,
177
+ dashboardOptions.showSettingsPanel && renderModulesDropdown()), right: React.createElement(React.Fragment, null,
223
178
  renderDashboardButtons(),
224
179
  renderModuleButtons(),
225
180
  shouldRenderQuickSearchHeader && renderQuickSearch()), onShowDashboardPopup: props.onShowDashboardPopup }, props.DashboardState.Tabs &&
@@ -239,8 +194,6 @@ function mapDispatchToProps(dispatch) {
239
194
  onSetActiveTabIndex: (ActiveTabIndex) => dispatch(DashboardRedux.DashboardSetActiveTabIndex(ActiveTabIndex)),
240
195
  onSetIsCollapsed: (IsCollapsed) => dispatch(DashboardRedux.DashboardSetIsCollapsed(IsCollapsed)),
241
196
  onSetIsFloating: (IsFloating) => dispatch(DashboardRedux.DashboardSetIsFloating(IsFloating)),
242
- onSetIsInline: (IsInline) => dispatch(DashboardRedux.DashboardSetIsInline(IsInline)),
243
- onSetIsHidden: (IsHidden) => dispatch(DashboardRedux.DashboardSetIsHidden(IsHidden)),
244
197
  onSetFloatingPosition: (FloatingPosition) => dispatch(DashboardRedux.DashboardSetFloatingPosition(FloatingPosition)),
245
198
  onRunQuickSearch: (newQuickSearchText) => dispatch(QuickSearchRedux.QuickSearchRun(newQuickSearchText)),
246
199
  onShowQuickSearchPopup: () => dispatch(PopupRedux.PopupShowScreen(ModuleConstants.QuickSearchModuleId, 'QuickSearchPopup')),
@@ -3,13 +3,17 @@ import * as DashboardRedux from '../../Redux/ActionsReducers/DashboardRedux';
3
3
  import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
4
4
  import { GridState } from '../../PredefinedConfig/GridState';
5
5
  import { DashboardState, DashboardTab } from '../../PredefinedConfig/DashboardState';
6
- import { Entitlement } from '../../PredefinedConfig/Common/Entitlement';
7
6
  interface DashboardPopupComponentProps extends ModuleViewPopupProps<DashboardPopupComponent> {
8
7
  DashboardState: DashboardState;
9
8
  GridState: GridState;
10
- Entitlements: Entitlement[];
9
+ IsCollapsed: boolean;
10
+ IsHidden: boolean;
11
+ IsFloating: boolean;
11
12
  onDashboardSetModuleButtons: (ModuleConstants: string[]) => DashboardRedux.DashboardSetModuleButtonsAction;
12
13
  onDashboardSetTabs: (Tabs: DashboardTab[]) => DashboardRedux.DashboardSetTabsAction;
14
+ onSetDashboardCollapsed: (isCollapsed: boolean) => DashboardRedux.DashboardSetIsCollapsedAction;
15
+ onSetDashboardFloating: (isFloating: boolean) => DashboardRedux.DashboardSetIsFloatingAction;
16
+ onSetDashboardHidden: (isHidden: boolean) => DashboardRedux.DashboardSetIsHiddenAction;
13
17
  }
14
18
  export declare enum DashboardConfigView {
15
19
  Toolbars = "Toolbars",
@@ -5,12 +5,14 @@ const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
7
  const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
8
- const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
8
+ const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
9
9
  const Radio_1 = tslib_1.__importDefault(require("../../components/Radio"));
10
10
  const rebass_1 = require("rebass");
11
11
  const Types_1 = require("../../PredefinedConfig/Common/Types");
12
12
  const DashboardManager_1 = tslib_1.__importDefault(require("../../components/Dashboard/DashboardManager"));
13
13
  const ModuleValueSelector_1 = require("../Components/ModuleValueSelector");
14
+ const CheckBox_1 = require("../../components/CheckBox");
15
+ const Panel_1 = tslib_1.__importDefault(require("../../components/Panel"));
14
16
  var DashboardConfigView;
15
17
  (function (DashboardConfigView) {
16
18
  DashboardConfigView["Toolbars"] = "Toolbars";
@@ -55,13 +57,27 @@ class DashboardPopupComponent extends React.Component {
55
57
  }
56
58
  });
57
59
  const allModuleButtons = this.props.GridState.ModuleDropdownMenuItems.map((x) => x.module);
58
- return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: { padding: 0, style: { display: 'flex', flexDirection: 'column' } }, glyphicon: this.props.moduleInfo.Glyph },
59
- React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, "data-name": "dashboard-configuration-select", style: { borderBottom: '1px solid var(--ab-color-primary)' } },
60
- React.createElement(Radio_1.default, { marginLeft: 3, value: DashboardConfigView.Toolbars, checked: this.state.DashboardConfigView == DashboardConfigView.Toolbars, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Module Toolbars"),
61
- React.createElement(Radio_1.default, { marginLeft: 3, value: DashboardConfigView.Buttons, checked: this.state.DashboardConfigView == DashboardConfigView.Buttons, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Module Buttons")),
62
- React.createElement(rebass_1.Box, { style: { overflow: 'auto', flex: 1 }, padding: 2 },
63
- this.state.DashboardConfigView == DashboardConfigView.Toolbars && (React.createElement(DashboardManager_1.default, { availableToolbars: [...systemToolbars, ...customToolbars], tabs: tabs, onTabsChange: this.props.onDashboardSetTabs, api: this.props.api })),
64
- this.state.DashboardConfigView == DashboardConfigView.Buttons && (React.createElement(ModuleValueSelector_1.ModuleValueSelector, { options: allModuleButtons, value: selectedModuleButtons, noSelectionLabel: 'No selected Module Button', xSelectedLabel: () => `Visible Module Buttons:`, onChange: (selectedValues) => this.props.onDashboardSetModuleButtons(selectedValues) })))));
60
+ const baseClassName = 'ab-Dashboard-Popup';
61
+ // const isDisabled = this.props.Entitlements
62
+ const dashboardAccessLevel = this.props.api.internalApi
63
+ .getEntitlementService()
64
+ .getEntitlementAccessLevelForModule('Dashboard');
65
+ const areDashboardSettingsEnabled = dashboardAccessLevel == 'Full' || dashboardAccessLevel == 'ReadOnly';
66
+ return (React.createElement(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph },
67
+ areDashboardSettingsEnabled && (React.createElement(Panel_1.default, { header: 'Dashboard Settings', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginLeft: 2, marginRight: 2 },
68
+ React.createElement(rebass_1.Flex, null,
69
+ React.createElement(CheckBox_1.CheckBox, { mr: 3, className: `${baseClassName}__Checkbox__collapsed-check`, checked: this.props.IsCollapsed, onChange: (checked) => this.props.onSetDashboardCollapsed(checked) }, "Collapse"),
70
+ ' ',
71
+ this.props.api.internalApi.getAdaptableOptions().dashboardOptions.canFloat && (React.createElement(CheckBox_1.CheckBox, { mr: 3, className: `${baseClassName}__Checkbox__collapsed-check`, checked: this.props.IsFloating, onChange: (checked) => this.props.onSetDashboardFloating(checked) }, "Float")),
72
+ ' ',
73
+ React.createElement(CheckBox_1.CheckBox, { className: `${baseClassName}__Checkbox__hidden-check`, checked: this.props.IsHidden, onChange: (checked) => this.props.onSetDashboardHidden(checked) }, "Hidden")))),
74
+ React.createElement(Panel_1.default, { header: 'Dashboard Contents', style: { height: 'auto' }, variant: "default", borderRadius: "none", marginTop: 4, marginLeft: 2, marginRight: 2 },
75
+ React.createElement(rebass_1.Flex, { flexDirection: "row", padding: 2, "data-name": "dashboard-configuration-select", style: { borderBottom: '1px solid var(--ab-color-primary)' } },
76
+ React.createElement(Radio_1.default, { marginLeft: 3, value: DashboardConfigView.Toolbars, checked: this.state.DashboardConfigView == DashboardConfigView.Toolbars, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Toolbars"),
77
+ React.createElement(Radio_1.default, { marginLeft: 3, value: DashboardConfigView.Buttons, checked: this.state.DashboardConfigView == DashboardConfigView.Buttons, onChange: (_, e) => this.onDashboardConfigViewChanged(e) }, "Buttons")),
78
+ React.createElement(rebass_1.Box, { className: `${baseClassName}__Module-Selector`, style: { overflow: 'auto', flex: 1 }, padding: 2 },
79
+ this.state.DashboardConfigView == DashboardConfigView.Toolbars && (React.createElement(DashboardManager_1.default, { availableToolbars: [...systemToolbars, ...customToolbars], tabs: tabs, onTabsChange: this.props.onDashboardSetTabs, api: this.props.api })),
80
+ this.state.DashboardConfigView == DashboardConfigView.Buttons && (React.createElement(ModuleValueSelector_1.ModuleValueSelector, { options: allModuleButtons, value: selectedModuleButtons, noSelectionLabel: 'No selected Module Button', xSelectedLabel: () => `Visible Module Buttons:`, onChange: (selectedValues) => this.props.onDashboardSetModuleButtons(selectedValues) }))))));
65
81
  }
66
82
  onDashboardConfigViewChanged(event) {
67
83
  let e = event.target;
@@ -73,12 +89,18 @@ function mapStateToProps(state, ownProps) {
73
89
  return {
74
90
  DashboardState: state.Dashboard,
75
91
  GridState: state.Grid,
92
+ IsCollapsed: state.Dashboard.IsCollapsed,
93
+ IsHidden: state.Dashboard.IsHidden,
94
+ IsFloating: state.Dashboard.IsFloating,
76
95
  };
77
96
  }
78
97
  function mapDispatchToProps(dispatch) {
79
98
  return {
80
99
  onDashboardSetModuleButtons: (moduleButtons) => dispatch(DashboardRedux.DashboardSetModuleButtons(moduleButtons)),
81
100
  onDashboardSetTabs: (Tabs) => dispatch(DashboardRedux.DashboardSetTabs(Tabs)),
101
+ onSetDashboardCollapsed: (isCollapsed) => dispatch(DashboardRedux.DashboardSetIsCollapsed(isCollapsed)),
102
+ onSetDashboardHidden: (isHidden) => dispatch(DashboardRedux.DashboardSetIsHidden(isHidden)),
103
+ onSetDashboardFloating: (isFloating) => dispatch(DashboardRedux.DashboardSetIsFloating(isFloating)),
82
104
  };
83
105
  }
84
106
  exports.DashboardPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DashboardPopupComponent);
@@ -64,7 +64,7 @@ exports.DataChangeHistoryGrid = (props) => {
64
64
  // 2. this UI will be reimplemented with Infinite Table anyway
65
65
  const addedRows = mapChangeHistoryRowData(addedChangeHistoryLogs, mainAdaptableInstance);
66
66
  const removedRows = mapChangeHistoryRowData(removedChangeHistoryLogs, mainAdaptableInstance);
67
- adaptableApi.internalApi.getAdaptableOptions().vendorGrid.api.applyTransactionAsync({
67
+ adaptableApi.internalApi.getAdaptableOptions().agGridOptions.api.applyTransactionAsync({
68
68
  add: addedRows,
69
69
  remove: removedRows,
70
70
  });
@@ -81,7 +81,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
81
81
  changeKey && onUndoChange(changeKey);
82
82
  };
83
83
  const options = {
84
- vendorGrid: Object.assign(Object.assign({}, gridOptions), { modules: [...all_modules_1.AllCommunityModules] }),
84
+ agGridOptions: Object.assign(Object.assign({}, gridOptions), { modules: [...all_modules_1.AllCommunityModules] }),
85
85
  primaryKey: 'primaryKey',
86
86
  licenseKey: mainAdaptableOptions.licenseKey,
87
87
  userName: `${mainAdaptableOptions.userName}`,
@@ -188,8 +188,7 @@ const buildAdaptableOptions = (mainAdaptableInstance, gridOptions, adaptableCont
188
188
  const layoutColumns = options.predefinedConfig.Layout.Layouts[0].Columns;
189
189
  if (layoutColumns.includes('undoActionColumn')) {
190
190
  // remove action column from layout
191
- options.predefinedConfig.Layout.Layouts[0].Columns =
192
- layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
191
+ options.predefinedConfig.Layout.Layouts[0].Columns = layoutColumns.filter((columnId) => columnId !== 'undoActionColumn');
193
192
  }
194
193
  }
195
194
  return options;
@@ -4,7 +4,7 @@ exports.DataChangeHistoryPopup = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
6
  const react_redux_1 = require("react-redux");
7
- const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
7
+ const PopupPanel_1 = require("../Components/Popups/AdaptablePopup/PopupPanel");
8
8
  const DataChangeHistoryGrid_1 = require("./DataChangeHistoryGrid");
9
9
  const SystemRedux_1 = require("../../Redux/ActionsReducers/SystemRedux");
10
10
  const rebass_1 = require("rebass");
@@ -56,7 +56,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
56
56
  const currentAgGridTheme = this.props.api.internalApi
57
57
  .getAdaptableInstance()
58
58
  .getAgGridCurrentThemeName();
59
- return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), border: "none", bodyProps: { padding: 0 } },
59
+ return (React.createElement(PopupPanel_1.PopupPanel, { headerText: this.props.moduleInfo.FriendlyName, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
60
60
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup", flexDirection: "column", style: { height: '100%' } },
61
61
  React.createElement(rebass_1.Flex, { style: {
62
62
  color: 'var(--ab-dashboard__color)',
@@ -67,7 +67,7 @@ class DataChangeHistoryPopupComponent extends React.Component {
67
67
  statusPanel)),
68
68
  React.createElement(rebass_1.Flex, { className: "ab-DataChangeHistoryPopup--grid", "data-name": 'data-change-history--grid', flex: 1, alignSelf: 'stretch', flexDirection: 'column' },
69
69
  React.createElement("div", { id: adaptableContainerId }),
70
- React.createElement("div", { id: agGridContainerId, className: currentAgGridTheme, style: { height: '100%', width: '1000px' } }),
70
+ React.createElement("div", { id: agGridContainerId, className: currentAgGridTheme, style: { height: '100%' } }),
71
71
  React.createElement(DataChangeHistoryGrid_1.DataChangeHistoryGrid, { adaptableContainerId: adaptableContainerId, agGridContainerId: agGridContainerId, changeHistoryLog: this.props.changeHistoryLog, onUndoChange: handleChangeUndo })))));
72
72
  }
73
73
  }
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataSourceSettingsSummary = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const React = tslib_1.__importStar(require("react"));
6
- const CodeBlock_1 = require("../../../components/CodeBlock");
6
+ const Tag_1 = require("../../../components/Tag");
7
7
  const OnePageAdaptableWizard_1 = require("../../Wizard/OnePageAdaptableWizard");
8
8
  exports.DataSourceSettingsSummary = () => {
9
9
  const { data: dataSource } = OnePageAdaptableWizard_1.useOnePageWizardContext();
10
10
  return (React.createElement(React.Fragment, null,
11
11
  React.createElement(OnePageAdaptableWizard_1.SummaryText, null,
12
12
  "Name: ",
13
- React.createElement(CodeBlock_1.CodeBlock, null, dataSource.Name || 'not specified')),
13
+ React.createElement(Tag_1.Tag, null, dataSource.Name || 'not specified')),
14
14
  React.createElement(OnePageAdaptableWizard_1.SummaryText, null,
15
15
  "Name: ",
16
- React.createElement(CodeBlock_1.CodeBlock, null, dataSource.Description || 'not specified'))));
16
+ React.createElement(Tag_1.Tag, null, dataSource.Description || 'not specified'))));
17
17
  };
@@ -1,9 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { AdaptableOnePageWizardProps } from '../../../View/Wizard/Interface/IAdaptableWizard';
3
3
  import { DataSource } from '../../../types';
4
- interface DataSourceWizardProps extends AdaptableOnePageWizardProps<DataSource> {
4
+ export interface DataSourceWizardProps extends AdaptableOnePageWizardProps<DataSource> {
5
5
  dataSources: DataSource[];
6
6
  isNew: boolean;
7
7
  }
8
8
  export declare const DataSourceWizard: React.FunctionComponent<DataSourceWizardProps>;
9
- export {};
@@ -7,9 +7,24 @@ const rebass_1 = require("rebass");
7
7
  const OnePageAdaptableWizard_1 = require("../../../View/Wizard/OnePageAdaptableWizard");
8
8
  const DataSourceSettingsWizard_1 = require("./DataSourceSettingsWizard");
9
9
  const DataSourceSettingsSummary_1 = require("./DataSourceSettingsSummary");
10
+ const ObjectFactory_1 = tslib_1.__importDefault(require("../../../Utilities/ObjectFactory"));
11
+ const react_redux_1 = require("react-redux");
12
+ const DataSourceRedux = tslib_1.__importStar(require("../../../Redux/ActionsReducers/DataSourceRedux"));
10
13
  exports.DataSourceWizard = (props) => {
11
- const [dataSource, setDataSource] = React.useState(props.data);
12
- return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { moduleInfo: props.moduleInfo, data: dataSource, onHide: props.onCloseWizard, onFinish: props.onFinishWizard, sections: [
14
+ const [dataSource, setDataSource] = React.useState(() => {
15
+ return props.data ? props.data : ObjectFactory_1.default.CreateEmptyDataSource();
16
+ });
17
+ const dispatch = react_redux_1.useDispatch();
18
+ const handleFinish = () => {
19
+ if (props.data) {
20
+ dispatch(DataSourceRedux.DataSourceEdit(dataSource));
21
+ }
22
+ else {
23
+ dispatch(DataSourceRedux.DataSourceAdd(dataSource));
24
+ }
25
+ props.onFinishWizard(dataSource);
26
+ };
27
+ return (React.createElement(OnePageAdaptableWizard_1.OnePageAdaptableWizard, { defaultCurrentSectionName: props.defaultCurrentSectionName, moduleInfo: props.moduleInfo, data: dataSource, onHide: props.onCloseWizard, onFinish: handleFinish, sections: [
13
28
  {
14
29
  title: 'Settings',
15
30
  isValid: (data) => DataSourceSettingsWizard_1.isSettingsValid(data, props.isNew, props.dataSources),
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import { Report } from '../../../types';
3
+ export declare const ReportExportDropdown: React.FunctionComponent<{
4
+ data: Report;
5
+ }>;