@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,138 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomSortPopup = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const react_redux_1 = require("react-redux");
7
- const CustomSortRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/CustomSortRedux"));
8
- const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
9
- const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
10
- const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
11
- const Helper_1 = require("../../Utilities/Helpers/Helper");
12
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
13
- const CustomSortEntityRow_1 = require("./CustomSortEntityRow");
14
- const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
15
- const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
16
- const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
17
- const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
18
- const UIHelper_1 = require("../UIHelper");
19
- const rebass_1 = require("rebass");
20
- const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
21
- const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
22
- const CustomSortWizard_1 = require("./Wizard/CustomSortWizard");
23
- class CustomSortPopupComponent extends React.Component {
24
- constructor(props) {
25
- super(props);
26
- this.shouldClosePopupOnFinishWizard = false;
27
- this.onCloseWizard = () => {
28
- this.props.onClearPopupParams();
29
- this.setState({
30
- editedAdaptableObject: null,
31
- wizardStartIndex: 0,
32
- wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
33
- });
34
- if (this.shouldClosePopupOnFinishWizard) {
35
- this.props.onClosePopup();
36
- }
37
- };
38
- this.onFinishWizard = (customSort) => {
39
- if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
40
- this.props.onEditCustomSort(customSort);
41
- }
42
- else {
43
- this.props.onAddCustomSort(customSort);
44
- }
45
- this.setState({
46
- editedAdaptableObject: null,
47
- wizardStartIndex: 0,
48
- wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
49
- });
50
- };
51
- this.state = UIHelper_1.UIHelper.getEmptyConfigState();
52
- }
53
- componentDidMount() {
54
- if (this.props.popupParams) {
55
- if (this.props.popupParams.action && this.props.popupParams.column) {
56
- let columnId = this.props.popupParams.column.columnId;
57
- if (this.props.popupParams.action == 'New') {
58
- let newCustomSort = ObjectFactory_1.ObjectFactory.CreateEmptyCustomSort();
59
- newCustomSort.ColumnId = columnId;
60
- this.onNewFromColumn(newCustomSort);
61
- }
62
- if (this.props.popupParams.action == 'Edit') {
63
- let editCustomSort = this.props.CustomSorts.find((x) => x.ColumnId == columnId);
64
- this.onEdit(editCustomSort);
65
- }
66
- }
67
- this.shouldClosePopupOnFinishWizard =
68
- this.props.popupParams.source && this.props.popupParams.source == 'ColumnMenu';
69
- }
70
- }
71
- render() {
72
- var _a;
73
- const colItems = [
74
- { key: 'column', Content: 'Column', Size: 3 },
75
- { key: 'sort-order', Content: 'Sort Order', Size: 7 },
76
- { key: 'size', Content: '', Size: 2 },
77
- ];
78
- const customSorts = this.props.CustomSorts.map((customSort) => {
79
- let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(customSort, this.props.accessLevel);
80
- return (React.createElement(CustomSortEntityRow_1.CustomSortEntityRow, { colItems: colItems, api: this.props.api, adaptableObject: customSort, moduleInfo: this.props.moduleInfo, key: customSort.Uuid, onEdit: () => this.onEdit(customSort), teamSharingActivated: this.props.teamSharingActivated, onShare: (config) => this.props.onShare(customSort, config), onDeleteConfirm: CustomSortRedux.CustomSortDelete(customSort), column: this.props.api.columnApi.getColumnFromId(customSort.ColumnId), accessLevel: accessLevel, onSuspend: this.props.onSuspend, onUnSuspend: this.props.onUnSuspend }));
81
- });
82
- const columnSortComparers = (_a = this.props.api.internalApi
83
- .getAdaptableOptions()
84
- .generalOptions.customSortComparers) === null || _a === void 0 ? void 0 : _a.map((comparer, index) => {
85
- return (React.createElement(CustomSortEntityRow_1.CustomSortEntityRow, { colItems: colItems, api: this.props.api, adaptableObject: comparer, moduleInfo: this.props.moduleInfo, key: 'columnValuesComparer' + index, teamSharingActivated: this.props.teamSharingActivated, onShare: null, onEdit: null, onDeleteConfirm: null, scope: comparer.scope, accessLevel: 'ReadOnly' }));
86
- });
87
- let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create Custom Sort", accessLevel: this.props.accessLevel, style: {
88
- color: 'var(--ab-color-text-on-add)',
89
- fill: 'var(--ab-color-text-on-add)',
90
- background: 'var(--ab-color-action-add)',
91
- } }));
92
- return (React.createElement(rebass_1.Flex, { flex: 1, flexDirection: "column" },
93
- React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), button: newButton, bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph },
94
- customSorts.length > 0 || (columnSortComparers === null || columnSortComparers === void 0 ? void 0 : columnSortComparers.length) ? (React.createElement("div", null,
95
- customSorts.length > 0 && (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: customSorts })),
96
- (columnSortComparers === null || columnSortComparers === void 0 ? void 0 : columnSortComparers.length) > 0 && (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: columnSortComparers })))) : (React.createElement(EmptyContent_1.default, null, "Click 'New' to create a custom Sort Order for a selected Column.")),
97
- this.state.editedAdaptableObject && (React.createElement(CustomSortWizard_1.CustomSortWizard, { isNew: this.state.wizardStatus === EditableConfigEntityState_1.WizardStatus.New, configEntities: this.props.CustomSorts, moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard })))));
98
- }
99
- onEdit(customSort) {
100
- //so we dont mutate original object
101
- this.setState({
102
- editedAdaptableObject: Helper_1.Helper.cloneObject(customSort),
103
- wizardStartIndex: 1,
104
- wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
105
- });
106
- }
107
- onNew() {
108
- this.setState({
109
- editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyCustomSort(),
110
- wizardStartIndex: 0,
111
- wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
112
- });
113
- }
114
- onNewFromColumn(customsort) {
115
- let clonedObject = Helper_1.Helper.cloneObject(customsort);
116
- this.setState({
117
- editedAdaptableObject: clonedObject,
118
- wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
119
- wizardStartIndex: 1,
120
- });
121
- }
122
- }
123
- function mapStateToProps(state, ownProps) {
124
- return {
125
- CustomSorts: state.CustomSort.CustomSorts,
126
- };
127
- }
128
- function mapDispatchToProps(dispatch) {
129
- return {
130
- onAddCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortAdd(customSort)),
131
- onEditCustomSort: (customSort) => dispatch(CustomSortRedux.CustomSortEdit(customSort)),
132
- onClearPopupParams: () => dispatch(PopupRedux.PopupClearParam()),
133
- onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.CustomSortModuleId, config)),
134
- onSuspend: (customSort) => dispatch(CustomSortRedux.CustomSortSuspend(customSort)),
135
- onUnSuspend: (customSort) => dispatch(CustomSortRedux.CustomSortUnSuspend(customSort)),
136
- };
137
- }
138
- exports.CustomSortPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(CustomSortPopupComponent);
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
3
- import { DataSource } from '../../PredefinedConfig/DataSourceState';
4
- export interface DataSourceEntityRowProps extends SharedEntityRowProps<DataSourceEntityRow> {
5
- onChangeName: (DataSource: DataSource, Name: string) => void;
6
- onChangeDescription: (DataSource: DataSource, Description: string) => void;
7
- }
8
- export declare class DataSourceEntityRow extends React.Component<DataSourceEntityRowProps, {}> {
9
- render(): any;
10
- onDescriptionChange(event: React.FormEvent<any>): void;
11
- onNameChange(event: React.FormEvent<any>): void;
12
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataSourceEntityRow = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
7
- const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
8
- const EntityRowItem_1 = require("../Components/EntityRowItem");
9
- const Helper_1 = require("../../Utilities/Helpers/Helper");
10
- class DataSourceEntityRow extends React.Component {
11
- render() {
12
- let dataSource = this.props.adaptableObject;
13
- let colItems = Helper_1.cloneObject(this.props.colItems);
14
- // put in the ability to change name / description later...
15
- colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: dataSource.Name });
16
- colItems[1].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: dataSource.Description });
17
- colItems[2].Content = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { editClick: () => this.props.onEdit(dataSource), shareClick: (config) => this.props.onShare(config), showShare: this.props.teamSharingActivated, confirmDeleteAction: this.props.onDeleteConfirm, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
18
- return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems });
19
- }
20
- onDescriptionChange(event) {
21
- let e = event.target;
22
- this.props.onChangeDescription(this.props.adaptableObject, e.value);
23
- }
24
- onNameChange(event) {
25
- let e = event.target;
26
- this.props.onChangeName(this.props.adaptableObject, e.value);
27
- }
28
- }
29
- exports.DataSourceEntityRow = DataSourceEntityRow;
@@ -1,28 +0,0 @@
1
- import * as React from 'react';
2
- import * as DataSourceRedux from '../../Redux/ActionsReducers/DataSourceRedux';
3
- import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
4
- import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
5
- import { EditableConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
6
- import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
7
- import { DataSource } from '../../PredefinedConfig/DataSourceState';
8
- import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
9
- interface DataSourcePopupProps extends ModuleViewPopupProps<DataSourcePopupComponent> {
10
- onAddDataSource: (DataSource: DataSource) => DataSourceRedux.DataSourceAddAction;
11
- onEditDataSource: (DataSource: DataSource) => DataSourceRedux.DataSourceEditAction;
12
- onSelectDataSource: (DataSource: DataSource) => DataSourceRedux.DataSourceSelectAction;
13
- DataSources: Array<DataSource>;
14
- CurrentDataSource: string;
15
- onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
16
- }
17
- declare class DataSourcePopupComponent extends React.Component<DataSourcePopupProps, EditableConfigEntityState> {
18
- constructor(props: DataSourcePopupProps);
19
- render(): JSX.Element;
20
- onChangeName(dataSource: DataSource, name: string): void;
21
- onChangeDescription(dataSource: DataSource, description: string): void;
22
- onEdit(dataSource: DataSource): void;
23
- onNew: () => void;
24
- onCloseWizard: () => void;
25
- onFinishWizard: (dataSource: DataSource) => void;
26
- }
27
- export declare let DataSourcePopup: import("react-redux").ConnectedComponent<typeof DataSourcePopupComponent, Pick<React.ClassAttributes<DataSourcePopupComponent> & DataSourcePopupProps, never>>;
28
- export {};
@@ -1,97 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataSourcePopup = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const react_redux_1 = require("react-redux");
7
- const DataSourceRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DataSourceRedux"));
8
- const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
9
- const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
10
- const DataSourceEntityRow_1 = require("./DataSourceEntityRow");
11
- const DataSourceWizard_1 = require("./Wizard/DataSourceWizard");
12
- const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
13
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
14
- const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
15
- const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
16
- const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
17
- const UIHelper_1 = require("../UIHelper");
18
- const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
19
- const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
20
- class DataSourcePopupComponent extends React.Component {
21
- constructor(props) {
22
- super(props);
23
- this.onNew = () => {
24
- this.setState({
25
- editedAdaptableObject: ObjectFactory_1.ObjectFactory.CreateEmptyDataSource(),
26
- wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
27
- });
28
- };
29
- this.onCloseWizard = () => {
30
- this.props.onClearPopupParams();
31
- this.setState({
32
- editedAdaptableObject: null,
33
- wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
34
- });
35
- };
36
- this.onFinishWizard = (dataSource) => {
37
- if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
38
- this.props.onEditDataSource(dataSource);
39
- }
40
- else {
41
- this.props.onAddDataSource(dataSource);
42
- }
43
- this.setState({
44
- editedAdaptableObject: null,
45
- wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
46
- });
47
- };
48
- this.state = UIHelper_1.UIHelper.getEmptyConfigState();
49
- }
50
- render() {
51
- let colItems = [
52
- { Content: 'Name', Size: 5 },
53
- { Content: 'Description', Size: 5 },
54
- { Content: '', Size: 2 },
55
- ];
56
- let dataSources = this.props.DataSources.map((dataSource, index) => {
57
- let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(dataSource, this.props.accessLevel);
58
- return (React.createElement(DataSourceEntityRow_1.DataSourceEntityRow, { adaptableObject: dataSource, key: 'ns' + index, onEdit: () => this.onEdit(dataSource), colItems: colItems, moduleInfo: this.props.moduleInfo, api: this.props.api, onShare: (config) => this.props.onShare(dataSource, config), teamSharingActivated: this.props.teamSharingActivated, onDeleteConfirm: DataSourceRedux.DataSourceDelete(dataSource), onChangeName: (dataSource, name) => this.onChangeName(dataSource, name), onChangeDescription: (dataSource, description) => this.onChangeDescription(dataSource, description), accessLevel: accessLevel }));
59
- });
60
- let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: this.onNew, tooltip: "Create New DataSource", accessLevel: this.props.accessLevel, style: {
61
- color: 'var(--ab-color-text-on-add)',
62
- fill: 'var(--ab-color-text-on-add)',
63
- background: 'var(--ab-color-action-add)',
64
- } }));
65
- const dataSource = this.state.editedAdaptableObject;
66
- return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, button: newButton, bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed() },
67
- dataSources.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: dataSources })) : (React.createElement(EmptyContent_1.default, null, "Click 'New' to add a new DataSource.")),
68
- this.state.editedAdaptableObject != null && (React.createElement(DataSourceWizard_1.DataSourceWizard, { moduleInfo: this.props.moduleInfo, configEntities: [], data: dataSource, dataSources: this.props.DataSources, onCloseWizard: this.onCloseWizard, onFinishWizard: this.onFinishWizard, isNew: this.state.wizardStatus === EditableConfigEntityState_1.WizardStatus.New }))));
69
- }
70
- onChangeName(dataSource, name) {
71
- this.props.onEditDataSource(Object.assign(Object.assign({}, dataSource), { Name: name }));
72
- }
73
- onChangeDescription(dataSource, description) {
74
- this.props.onEditDataSource(Object.assign(Object.assign({}, dataSource), { Description: description }));
75
- }
76
- onEdit(dataSource) {
77
- this.setState({
78
- editedAdaptableObject: dataSource,
79
- wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
80
- });
81
- }
82
- }
83
- function mapStateToProps(state) {
84
- return {
85
- DataSources: state.DataSource.DataSources,
86
- CurrentDataSource: state.DataSource.CurrentDataSource,
87
- };
88
- }
89
- function mapDispatchToProps(dispatch) {
90
- return {
91
- onAddDataSource: (DataSource) => dispatch(DataSourceRedux.DataSourceAdd(DataSource)),
92
- onEditDataSource: (DataSource) => dispatch(DataSourceRedux.DataSourceEdit(DataSource)),
93
- onSelectDataSource: (DataSource) => dispatch(DataSourceRedux.DataSourceSelect(DataSource)),
94
- onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.DataSourceModuleId, config)),
95
- };
96
- }
97
- exports.DataSourcePopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(DataSourcePopupComponent);
@@ -1,34 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableObject } from '../../PredefinedConfig/Common/AdaptableObject';
3
- import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
4
- import { Report } from '../../PredefinedConfig/ExportState';
5
- import { NamedQuery } from '../../PredefinedConfig/QueryState';
6
- import * as ExportRedux from '../../Redux/ActionsReducers/ExportRedux';
7
- import * as QueryRedux from '../../Redux/ActionsReducers/QueryRedux';
8
- import * as TeamSharingRedux from '../../Redux/ActionsReducers/TeamSharingRedux';
9
- import { EditableExpressionConfigEntityState } from '../Components/SharedProps/EditableConfigEntityState';
10
- import { ModuleViewPopupProps } from '../Components/SharedProps/ModuleViewPopupProps';
11
- import { SharedEntityConfig } from '../../PredefinedConfig/TeamSharingState';
12
- interface ExportPopupProps extends ModuleViewPopupProps<ExportPopupComponent> {
13
- Reports: Report[];
14
- CurrentReport: string;
15
- onApplyExport: (report: Report, exportDestination: ExportDestination | string) => ExportRedux.ExportApplyAction;
16
- onAddReport: (report: Report) => ExportRedux.ReportAddAction;
17
- onEditReport: (report: Report) => ExportRedux.ReportEditAction;
18
- onAddNamedQuery: (namedQuery: NamedQuery) => QueryRedux.NamedQueryAddAction;
19
- onShare: (entity: AdaptableObject, config: SharedEntityConfig) => TeamSharingRedux.TeamSharingShareAction;
20
- }
21
- declare class ExportPopupComponent extends React.Component<ExportPopupProps, EditableExpressionConfigEntityState> {
22
- constructor(props: ExportPopupProps);
23
- shouldClosePopupOnFinishWizard: boolean;
24
- componentDidMount(): void;
25
- render(): JSX.Element;
26
- onCloseWizard(): void;
27
- onFinishWizard: (report: Report) => void;
28
- resetState(): void;
29
- onNew(): void;
30
- onEdit(ReportToEdit: Report): void;
31
- onApplyExport(report: Report, exportDestination: ExportDestination | string): void;
32
- }
33
- export declare let ExportPopup: import("react-redux").ConnectedComponent<typeof ExportPopupComponent, Pick<React.ClassAttributes<ExportPopupComponent> & ExportPopupProps, never>>;
34
- export {};
@@ -1,139 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExportPopup = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const react_redux_1 = require("react-redux");
7
- const EmptyContent_1 = tslib_1.__importDefault(require("../../components/EmptyContent"));
8
- const Uuid_1 = require("../../PredefinedConfig/Uuid");
9
- const ExportRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/ExportRedux"));
10
- const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
11
- const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
12
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
13
- const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
14
- const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
15
- const Helper_1 = require("../../Utilities/Helpers/Helper");
16
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
17
- const AdaptableObjectCollection_1 = require("../Components/AdaptableObjectCollection");
18
- const ButtonNew_1 = require("../Components/Buttons/ButtonNew");
19
- const PanelWithButton_1 = require("../Components/Panels/PanelWithButton");
20
- const EditableConfigEntityState_1 = require("../Components/SharedProps/EditableConfigEntityState");
21
- const UIHelper_1 = require("../UIHelper");
22
- const ReportEntityRow_1 = require("./ReportEntityRow");
23
- const NewReportWizard_1 = require("./Wizard/NewReportWizard");
24
- class ExportPopupComponent extends React.Component {
25
- constructor(props) {
26
- super(props);
27
- this.shouldClosePopupOnFinishWizard = false;
28
- this.onFinishWizard = (report) => {
29
- var _a;
30
- report = report !== null && report !== void 0 ? report : this.state.editedAdaptableObject;
31
- report.Uuid = (_a = report.Uuid) !== null && _a !== void 0 ? _a : Uuid_1.createUuid();
32
- if (this.state.wizardStatus == EditableConfigEntityState_1.WizardStatus.Edit) {
33
- this.props.onEditReport(report);
34
- }
35
- else {
36
- this.props.onAddReport(report);
37
- }
38
- this.resetState();
39
- };
40
- this.state = UIHelper_1.UIHelper.getEmptyConfigState();
41
- }
42
- componentDidMount() {
43
- if (this.props.popupParams) {
44
- if (this.props.popupParams.action) {
45
- if (this.props.popupParams.action == 'New') {
46
- this.onNew();
47
- }
48
- if (this.props.popupParams.action == 'Edit') {
49
- let selectedReport = this.props.Reports.find((a) => a.Name == this.props.CurrentReport);
50
- this.onEdit(selectedReport);
51
- }
52
- }
53
- this.shouldClosePopupOnFinishWizard =
54
- this.props.popupParams.source && this.props.popupParams.source == 'Toolbar';
55
- }
56
- }
57
- render() {
58
- let colItems = [
59
- { Content: 'Report', Size: 3 },
60
- { Content: 'Columns', Size: 3 },
61
- { Content: 'Query Details', Size: 3 },
62
- { Content: 'Export', Size: 1 },
63
- { Content: '', Size: 2 },
64
- ];
65
- let allReports = this.props.api.exportApi
66
- .getAvailableSystemReports()
67
- .map((s) => {
68
- return s;
69
- })
70
- .concat(this.props.Reports.map((r) => r.Name));
71
- let Reports = allReports.map((x, index) => {
72
- let report = this.props.api.exportApi.getReportByName(x);
73
- let accessLevel = AdaptableHelper_1.default.getAppropriateAccessLevel(report, this.props.accessLevel);
74
- return (React.createElement(ReportEntityRow_1.ReportEntityRow, { adaptableObject: report, key: report.Uuid, colItems: colItems, moduleInfo: this.props.moduleInfo, api: this.props.api, onShare: (description) => this.props.onShare(report, description), teamSharingActivated: this.props.teamSharingActivated, onExport: (exportDestination) => this.onApplyExport(report, exportDestination), onEdit: () => this.onEdit(report), onDeleteConfirm: ExportRedux.ReportDelete(report), accessLevel: accessLevel }));
75
- });
76
- let newButton = (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.onNew(), tooltip: "Create Report", accessLevel: this.props.accessLevel, style: {
77
- color: 'var(--ab-color-text-on-add)',
78
- fill: 'var(--ab-color-text-on-add)',
79
- background: 'var(--ab-color-action-add)',
80
- } }));
81
- return (React.createElement(PanelWithButton_1.PanelWithButton, { headerText: this.props.moduleInfo.FriendlyName, bodyProps: { padding: 0 }, glyphicon: this.props.moduleInfo.Glyph, infoLink: this.props.moduleInfo.HelpPage, infoLinkDisabled: !this.props.api.internalApi.isDocumentationLinksDisplayed(), button: newButton },
82
- Reports.length > 0 ? (React.createElement(AdaptableObjectCollection_1.AdaptableObjectCollection, { colItems: colItems, items: Reports, allowOverflow: true })) : (React.createElement(EmptyContent_1.default, null,
83
- React.createElement("p", null, "Click 'New' to create a new Report. A Report is named group of columns and Unique values."))),
84
- this.state.editedAdaptableObject && (React.createElement(NewReportWizard_1.NewReportWizard, { moduleInfo: this.props.moduleInfo, data: this.state.editedAdaptableObject, configEntities: this.props.Reports, onCloseWizard: () => this.onCloseWizard(), onFinishWizard: this.onFinishWizard }))));
85
- }
86
- onCloseWizard() {
87
- this.props.onClearPopupParams();
88
- this.resetState();
89
- if (this.shouldClosePopupOnFinishWizard) {
90
- this.props.onClosePopup();
91
- }
92
- }
93
- resetState() {
94
- this.setState({
95
- editedAdaptableObject: null,
96
- wizardStartIndex: 0,
97
- wizardStatus: EditableConfigEntityState_1.WizardStatus.None,
98
- newNamedQuery: GeneralConstants_1.EMPTY_STRING,
99
- });
100
- }
101
- onNew() {
102
- const editedAdaptableObject = ObjectFactory_1.ObjectFactory.CreateEmptyReport();
103
- // we want to do this here, as we need a way to differentiate in the wizard
104
- // if it's a new or existing report
105
- delete editedAdaptableObject.Uuid;
106
- this.setState({
107
- editedAdaptableObject,
108
- wizardStartIndex: 0,
109
- wizardStatus: EditableConfigEntityState_1.WizardStatus.New,
110
- });
111
- }
112
- onEdit(ReportToEdit) {
113
- let clonedReportToEdit = Helper_1.Helper.cloneObject(ReportToEdit);
114
- this.setState({
115
- editedAdaptableObject: clonedReportToEdit,
116
- wizardStartIndex: 0,
117
- wizardStatus: EditableConfigEntityState_1.WizardStatus.Edit,
118
- });
119
- }
120
- onApplyExport(report, exportDestination) {
121
- this.props.onApplyExport(report, exportDestination);
122
- }
123
- }
124
- function mapStateToProps(state) {
125
- return {
126
- Reports: state.Export.Reports,
127
- CurrentReport: state.Export.CurrentReport,
128
- };
129
- }
130
- function mapDispatchToProps(dispatch) {
131
- return {
132
- onApplyExport: (report, exportDestination) => dispatch(ExportRedux.ExportApply(report, exportDestination)),
133
- onAddReport: (report) => dispatch(ExportRedux.ReportAdd(report)),
134
- onEditReport: (report) => dispatch(ExportRedux.ReportEdit(report)),
135
- onAddNamedQuery: (namedQuery) => dispatch(QueryRedux.NamedQueryAdd(namedQuery)),
136
- onShare: (entity, config) => dispatch(TeamSharingRedux.TeamSharingShare(entity, ModuleConstants.ExportModuleId, config)),
137
- };
138
- }
139
- exports.ExportPopup = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(ExportPopupComponent);
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { ExportDestination } from '../../PredefinedConfig/Common/Enums';
3
- import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
4
- import { AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
5
- export interface ReportEntityRowProps extends SharedEntityRowProps<ReportEntityRow> {
6
- onExport: (exportDestination: ExportDestination | string, customDestinationData?: AdaptableFormData) => void;
7
- }
8
- export declare class ReportEntityRow extends React.Component<ReportEntityRowProps> {
9
- render(): JSX.Element;
10
- }
@@ -1,49 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportEntityRow = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
7
- const Enums_1 = require("../../PredefinedConfig/Common/Enums");
8
- const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
9
- const EntityRowItem_1 = require("../Components/EntityRowItem");
10
- const icons_1 = tslib_1.__importDefault(require("../../components/icons"));
11
- const DropdownButton_1 = tslib_1.__importDefault(require("../../components/DropdownButton"));
12
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
13
- const Helper_1 = require("../../Utilities/Helpers/Helper");
14
- const ExportIcon = icons_1.default.export;
15
- class ReportEntityRow extends React.Component {
16
- render() {
17
- let report = this.props.adaptableObject;
18
- const destinationItems = [
19
- ...this.props.api.exportApi.getAvailableExportDestinations().map((destination) => ({
20
- label: destination,
21
- onClick: () => this.props.onExport(destination),
22
- })),
23
- ...this.props.api.exportApi.getAllCustomDestination().map((destination) => ({
24
- label: destination.name,
25
- onClick: () => {
26
- this.props.onExport(destination.name);
27
- },
28
- })),
29
- ];
30
- if ((report === null || report === void 0 ? void 0 : report.Name) === GeneralConstants_1.VISUAL_DATA_REPORT) {
31
- destinationItems.forEach((item) => (item.disabled = item.label === Enums_1.ExportDestination.Excel ? false : true));
32
- }
33
- let colItems = Helper_1.cloneObject(this.props.colItems);
34
- colItems[0].Content = React.createElement(EntityRowItem_1.EntityRowItem, { Content: report.Name });
35
- colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.internalApi
36
- .getReportService()
37
- .GetReportColumnScopeShortDescription(report) }));
38
- colItems[2].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.internalApi
39
- .getReportService()
40
- .GetReportExpressionDescription(report, this.props.api.columnApi.getColumns()) }));
41
- let exportButton = (React.createElement(DropdownButton_1.default, { tooltip: "Export Report", variant: "text", items: destinationItems },
42
- React.createElement(ExportIcon, null)));
43
- colItems[3].Content = exportButton;
44
- let buttons = (React.createElement(EntityListActionButtons_1.EntityListActionButtons, { confirmDeleteAction: this.props.onDeleteConfirm, editClick: () => this.props.onEdit(report), overrideDisableEdit: report.ReportColumnScope == 'CustomColumns', showShare: this.props.teamSharingActivated, shareClick: (config) => this.props.onShare(config), entityType: "Report", accessLevel: this.props.accessLevel }));
45
- colItems[4].Content = buttons;
46
- return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems });
47
- }
48
- }
49
- exports.ReportEntityRow = ReportEntityRow;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { AdaptableObjectExpressionAdaptableWizardProps } from '../../Wizard/Interface/IAdaptableWizard';
3
- export interface ReportWizardProps extends AdaptableObjectExpressionAdaptableWizardProps<ReportWizard> {
4
- }
5
- export declare class ReportWizard extends React.Component<ReportWizardProps, {}> {
6
- render(): JSX.Element;
7
- }
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportWizard = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const AdaptableWizard_1 = require("../../Wizard/AdaptableWizard");
7
- const ReportScopeWizard_1 = require("./ReportScopeWizard");
8
- const ReportColumnTypeWizard_1 = require("./ReportColumnTypeWizard");
9
- const ReportSummaryWizard_1 = require("./ReportSummaryWizard");
10
- const ReportRowTypeWizard_1 = require("./ReportRowTypeWizard");
11
- const ExpressionWizard_1 = require("../../Components/ExpressionWizard");
12
- const ReportSettingsWizard_1 = require("./ReportSettingsWizard");
13
- class ReportWizard extends React.Component {
14
- render() {
15
- return (React.createElement("div", null,
16
- React.createElement(AdaptableWizard_1.AdaptableWizard, { moduleInfo: this.props.moduleInfo, modalContainer: this.props.modalContainer, api: this.props.api, steps: [
17
- {
18
- StepName: 'Columns',
19
- Index: 0,
20
- Element: (React.createElement(ReportColumnTypeWizard_1.ReportColumnTypeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
21
- },
22
- {
23
- StepName: 'Columns',
24
- Index: 1,
25
- Element: (React.createElement(ReportScopeWizard_1.ReportScopeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
26
- },
27
- {
28
- StepName: 'Rows',
29
- Index: 2,
30
- Element: (React.createElement(ReportRowTypeWizard_1.ReportRowTypeWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
31
- },
32
- {
33
- StepName: 'Rows',
34
- Index: 3,
35
- Element: (React.createElement(ExpressionWizard_1.ExpressionWizard, { api: this.props.api, onSetNewNamedQuery: this.props.onSetNewNamedQuery, moduleInfo: this.props.moduleInfo, callingModule: 'Export' })),
36
- },
37
- {
38
- StepName: 'Settings',
39
- Index: 4,
40
- Element: (React.createElement(ReportSettingsWizard_1.ReportSettingsWizard, { Reports: this.props.configEntities, api: this.props.api, moduleInfo: this.props.moduleInfo })),
41
- },
42
- {
43
- StepName: 'Summary',
44
- Index: 5,
45
- Element: (React.createElement(ReportSummaryWizard_1.ReportSummaryWizard, { api: this.props.api, moduleInfo: this.props.moduleInfo })),
46
- },
47
- ], data: this.props.editedAdaptableObject, stepStartIndex: this.props.wizardStartIndex, onHide: () => this.props.onCloseWizard(), onFinish: () => this.props.onFinishWizard(), canFinishWizard: () => this.props.canFinishWizard() })));
48
- }
49
- }
50
- exports.ReportWizard = ReportWizard;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { SharedEntityRowProps } from '../Components/SharedProps/ConfigEntityRowProps';
3
- import { ColumnFilter } from '../../PredefinedConfig/FilterState';
4
- import { AccessLevel } from '../../PredefinedConfig/Common/Entitlement';
5
- export interface FilterEntityRowProps<FilterEntityRow> extends SharedEntityRowProps<FilterEntityRow> {
6
- onClear: (columnFilter: ColumnFilter) => void;
7
- columnFilter: ColumnFilter;
8
- accessLevel: AccessLevel;
9
- }
10
- export declare class FilterEntityRow extends React.Component<FilterEntityRowProps<FilterEntityRow>, {}> {
11
- render(): any;
12
- }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterEntityRow = void 0;
4
- const tslib_1 = require("tslib");
5
- const React = tslib_1.__importStar(require("react"));
6
- const AdaptableObjectRow_1 = require("../Components/AdaptableObjectRow");
7
- const EntityRowItem_1 = require("../Components/EntityRowItem");
8
- const EntityListActionButtons_1 = require("../Components/Buttons/EntityListActionButtons");
9
- const Helper_1 = require("../../Utilities/Helpers/Helper");
10
- class FilterEntityRow extends React.Component {
11
- render() {
12
- let colItems = Helper_1.cloneObject(this.props.colItems);
13
- colItems[0].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.columnApi.getFriendlyNameFromColumnId(this.props.columnFilter.ColumnId) }));
14
- colItems[1].Content = (React.createElement(EntityRowItem_1.EntityRowItem, { Content: this.props.api.filterApi.columnFilterToString(this.props.columnFilter) }));
15
- colItems[2].Content = (React.createElement(React.Fragment, null,
16
- React.createElement(EntityListActionButtons_1.EntityListActionButtons, { confirmDeleteAction: this.props.onDeleteConfirm, overrideDisableDelete: this.props.columnFilter == null, showShare: this.props.teamSharingActivated, overrideDisableEdit: true, shareClick: (config) => this.props.onShare(config), entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel })));
17
- return React.createElement(AdaptableObjectRow_1.AdaptableObjectRow, { colItems: colItems, key: this.props.columnFilter.Uuid });
18
- }
19
- }
20
- exports.FilterEntityRow = FilterEntityRow;