@adaptabletools/adaptable 11.3.0 → 12.0.0-canary.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/base.css +568 -273
  2. package/bundle.cjs.js +114 -114
  3. package/index.css +642 -270
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +1 -0
  8. package/src/AdaptableInterfaces/IAdaptable.d.ts +4 -1
  9. package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
  10. package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
  13. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
  14. package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
  15. package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
  16. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
  17. package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
  18. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
  19. package/src/AdaptableOptions/EditOptions.d.ts +6 -7
  20. package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
  21. package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
  22. package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
  23. package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
  24. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
  25. package/src/{Api/DataSourceApi.js → AdaptableOptions/MasterDetailPluginOptions.js} +0 -0
  26. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
  27. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
  28. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +88 -57
  29. package/src/Api/AdaptableApi.d.ts +6 -3
  30. package/src/Api/ColumnApi.d.ts +9 -4
  31. package/src/Api/ConditionalStyleApi.d.ts +10 -0
  32. package/src/Api/ConfigApi.d.ts +0 -12
  33. package/src/Api/DashboardApi.d.ts +6 -19
  34. package/src/Api/DataSetApi.d.ts +40 -0
  35. package/src/{PredefinedConfig/DataSourceState.js → Api/DataSetApi.js} +0 -0
  36. package/src/Api/EventApi.d.ts +26 -1
  37. package/src/Api/Events/DataSetChanged.d.ts +5 -0
  38. package/src/{PredefinedConfig/FilterState.js → Api/Events/DataSetChanged.js} +0 -0
  39. package/src/Api/Events/SearchChanged.d.ts +4 -5
  40. package/src/Api/ExportApi.d.ts +2 -2
  41. package/src/Api/FilterApi.d.ts +28 -36
  42. package/src/Api/GridApi.d.ts +1 -1
  43. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  44. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  45. package/src/Api/Implementation/AlertApiImpl.js +5 -1
  46. package/src/Api/Implementation/ApiBase.d.ts +3 -0
  47. package/src/Api/Implementation/ApiBase.js +6 -0
  48. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
  49. package/src/Api/Implementation/ColumnApiImpl.js +17 -16
  50. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
  51. package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
  52. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  53. package/src/Api/Implementation/ConfigApiImpl.js +2 -24
  54. package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
  55. package/src/Api/Implementation/DashboardApiImpl.js +5 -29
  56. package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
  57. package/src/Api/Implementation/DataSetApiImpl.js +42 -0
  58. package/src/Api/Implementation/EventApiImpl.js +1 -0
  59. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
  60. package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
  61. package/src/Api/Implementation/FilterApiImpl.js +59 -72
  62. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -2
  63. package/src/Api/Implementation/GridApiImpl.d.ts +1 -1
  64. package/src/Api/Implementation/GridApiImpl.js +7 -3
  65. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -2
  66. package/src/Api/Implementation/InternalApiImpl.js +14 -3
  67. package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
  68. package/src/Api/Implementation/LayoutApiImpl.js +20 -0
  69. package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
  70. package/src/Api/Implementation/PredicateApiImpl.js +19 -1
  71. package/src/Api/Implementation/SmartEditApiImpl.d.ts +3 -1
  72. package/src/Api/Implementation/SmartEditApiImpl.js +6 -0
  73. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
  74. package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
  75. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  76. package/src/Api/Implementation/UserInterfaceApiImpl.js +4 -4
  77. package/src/Api/InternalApi.d.ts +3 -2
  78. package/src/Api/LayoutApi.d.ts +16 -0
  79. package/src/Api/PredicateApi.d.ts +7 -0
  80. package/src/Api/SmartEditApi.d.ts +8 -2
  81. package/src/Api/TeamSharingApi.d.ts +18 -5
  82. package/src/Api/UserInterfaceApi.d.ts +4 -4
  83. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  84. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
  85. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
  86. package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
  87. package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
  88. package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
  89. package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
  90. package/src/PredefinedConfig/Common/Enums.js +1 -1
  91. package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
  92. package/src/PredefinedConfig/Common/FormContext.js +2 -0
  93. package/src/PredefinedConfig/Common/Types.d.ts +6 -5
  94. package/src/PredefinedConfig/Common/Types.js +2 -3
  95. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  96. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  97. package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
  98. package/src/PredefinedConfig/SystemState.d.ts +3 -0
  99. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
  100. package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
  101. package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
  102. package/src/Redux/ActionsReducers/SystemRedux.d.ts +22 -0
  103. package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
  104. package/src/Redux/Store/AdaptableStore.js +37 -39
  105. package/src/Strategy/AdaptableModuleBase.js +1 -2
  106. package/src/Strategy/AlertModule.d.ts +11 -0
  107. package/src/Strategy/AlertModule.js +14 -0
  108. package/src/Strategy/BulkUpdateModule.js +3 -4
  109. package/src/Strategy/CellSummaryModule.d.ts +3 -0
  110. package/src/Strategy/CellSummaryModule.js +29 -16
  111. package/src/Strategy/DataSetModule.d.ts +25 -0
  112. package/src/Strategy/DataSetModule.js +65 -0
  113. package/src/Strategy/ExportModule.js +6 -1
  114. package/src/Strategy/FilterModule.d.ts +7 -11
  115. package/src/Strategy/FilterModule.js +26 -20
  116. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  117. package/src/Strategy/FlashingCellModule.js +2 -2
  118. package/src/Strategy/Interface/IModule.d.ts +3 -1
  119. package/src/Strategy/LayoutModule.js +25 -2
  120. package/src/Strategy/PlusMinusModule.js +1 -4
  121. package/src/Strategy/SmartEditModule.js +3 -3
  122. package/src/Strategy/StatusBarModule.js +1 -3
  123. package/src/Strategy/TeamSharingModule.js +1 -1
  124. package/src/Strategy/ToolPanelModule.js +1 -4
  125. package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
  126. package/src/Utilities/Constants/GeneralConstants.js +8 -2
  127. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
  128. package/src/Utilities/Constants/ModuleConstants.js +2 -2
  129. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +17 -15
  130. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  131. package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
  132. package/src/Utilities/ObjectFactory.d.ts +3 -6
  133. package/src/Utilities/ObjectFactory.js +3 -7
  134. package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
  135. package/src/Utilities/Services/EntitlementService.js +7 -1
  136. package/src/Utilities/Services/ModuleService.js +1 -1
  137. package/src/Utilities/Services/ReportService.js +2 -3
  138. package/src/Utilities/Services/RowEditService.d.ts +1 -0
  139. package/src/Utilities/Services/RowEditService.js +34 -2
  140. package/src/Utilities/Services/TeamSharingService.js +4 -4
  141. package/src/View/AdaptablePopover/index.d.ts +1 -0
  142. package/src/View/AdaptablePopover/index.js +5 -6
  143. package/src/View/AdaptableView.js +1 -1
  144. package/src/View/AdaptableViewFactory.js +2 -2
  145. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +8 -3
  146. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
  147. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
  148. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +18 -0
  149. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +87 -0
  150. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
  151. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +16 -0
  152. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
  153. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
  154. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
  155. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
  156. package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
  157. package/src/View/AdaptableWizardView/Utils.js +24 -0
  158. package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
  159. package/src/View/AdaptableWizardView/Wizard.js +98 -0
  160. package/src/View/AdaptableWizardView/index.d.ts +1 -22
  161. package/src/View/AdaptableWizardView/index.js +2 -103
  162. package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
  163. package/src/View/Alert/ActiveAlertsPanel.js +15 -0
  164. package/src/View/Alert/AlertStatusSubPanel.js +3 -8
  165. package/src/View/Alert/AlertViewPanel.js +2 -2
  166. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +1 -1
  167. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +3 -3
  168. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -1
  169. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +2 -2
  170. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
  171. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
  172. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +3 -4
  173. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +5 -6
  174. package/src/View/CellSummary/CellSummaryDetails.js +4 -4
  175. package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
  176. package/src/View/CellSummary/CellSummaryPopover.js +3 -6
  177. package/src/View/CellSummary/CellSummaryPopup.js +8 -0
  178. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
  179. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
  180. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  181. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
  182. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
  183. package/src/View/Components/ExternalRenderer.d.ts +3 -6
  184. package/src/View/Components/ExternalRenderer.js +5 -5
  185. package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
  186. package/src/View/Components/FilterForm/FilterForm.js +10 -8
  187. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
  188. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
  189. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  190. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
  191. package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
  192. package/src/View/Components/Popups/AdaptableToaster.js +29 -9
  193. package/src/View/Components/PreviewResultsPanel.js +3 -3
  194. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
  195. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
  196. package/src/View/Components/WizardSummaryPage.js +2 -2
  197. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
  198. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +1 -1
  199. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +1 -1
  200. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +1 -1
  201. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +2 -2
  202. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +1 -1
  203. package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
  204. package/src/View/Dashboard/CustomDashboardButton.js +47 -0
  205. package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
  206. package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
  207. package/src/View/Dashboard/Dashboard.d.ts +1 -0
  208. package/src/View/Dashboard/Dashboard.js +8 -34
  209. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
  210. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
  211. package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
  212. package/src/View/DataSet/DataSetSelector.d.ts +7 -0
  213. package/src/View/DataSet/DataSetSelector.js +18 -0
  214. package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
  215. package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
  216. package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
  217. package/src/View/DataSet/DataSetViewPanel.js +58 -0
  218. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +1 -1
  219. package/src/View/Export/Wizard/ReportNameWizardSection.js +1 -1
  220. package/src/View/Export/Wizard/ReportRowsWizardSection.js +1 -1
  221. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  222. package/src/View/Filter/FilterSummary.d.ts +5 -5
  223. package/src/View/Filter/FilterSummary.js +5 -4
  224. package/src/View/Filter/FilterViewPanel.d.ts +4 -4
  225. package/src/View/Filter/FilterViewPanel.js +10 -13
  226. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  227. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +1 -1
  228. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +1 -1
  229. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +1 -1
  230. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  231. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +1 -1
  232. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +1 -1
  233. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
  234. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +5 -6
  235. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  236. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  237. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
  238. package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
  239. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +1 -0
  240. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
  241. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +1 -1
  242. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +2 -2
  243. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +1 -1
  244. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +1 -1
  245. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +1 -1
  246. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +1 -1
  247. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +1 -1
  248. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +1 -1
  249. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +1 -1
  250. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +2 -2
  251. package/src/View/SmartEdit/SmartEditPopup.js +2 -2
  252. package/src/View/SmartEdit/SmartEditViewPanel.js +2 -2
  253. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  254. package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
  255. package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
  256. package/src/View/StatusBar/StatusBarPanel.js +5 -4
  257. package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
  258. package/src/View/UIHelper.d.ts +4 -4
  259. package/src/View/UIHelper.js +10 -10
  260. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -2
  261. package/src/View/Wizard/ObjectTagsWizardSection.js +1 -1
  262. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
  263. package/src/View/Wizard/OnePageAdaptableWizard.js +35 -169
  264. package/src/View/Wizard/OnePageWizards.d.ts +37 -0
  265. package/src/View/Wizard/OnePageWizards.js +187 -0
  266. package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
  267. package/src/agGrid/ActionColumnRenderer.js +3 -2
  268. package/src/agGrid/Adaptable.d.ts +4 -2
  269. package/src/agGrid/Adaptable.js +99 -58
  270. package/src/agGrid/FilterWrapper.js +1 -1
  271. package/src/agGrid/agGridHelper.d.ts +7 -8
  272. package/src/agGrid/agGridHelper.js +68 -86
  273. package/src/agGrid/agGridMenuHelper.js +4 -1
  274. package/src/agGrid/rowEditIcons.d.ts +1 -0
  275. package/src/agGrid/rowEditIcons.js +2 -1
  276. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +3 -2
  277. package/src/components/Dashboard/DashboardToolbar.js +2 -2
  278. package/src/components/InfiniteTable/index.js +1 -0
  279. package/src/components/List/GridList/index.js +1 -1
  280. package/src/components/SelectList.d.ts +10 -0
  281. package/src/components/SelectList.js +9 -0
  282. package/src/components/WindowModal/WindowModal.js +13 -7
  283. package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
  284. package/src/components/icons/add-row.js +7 -0
  285. package/src/components/icons/data-set.d.ts +3 -0
  286. package/src/components/icons/{data-source.js → data-set.js} +0 -0
  287. package/src/components/icons/index.js +4 -2
  288. package/src/metamodel/adaptable.metamodel.d.ts +163 -78
  289. package/src/metamodel/adaptable.metamodel.js +402 -322
  290. package/src/types.d.ts +16 -12
  291. package/version.d.ts +1 -1
  292. package/version.js +1 -1
  293. package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -10
  294. package/src/Api/DataSourceApi.d.ts +0 -58
  295. package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
  296. package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
  297. package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
  298. package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
  299. package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
  300. package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
  301. package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
  302. package/src/Strategy/DataSourceModule.d.ts +0 -20
  303. package/src/Strategy/DataSourceModule.js +0 -56
  304. package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
  305. package/src/View/DataSource/DataSourceViewPanel.js +0 -69
  306. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
  307. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
  308. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
  309. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
  310. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
  311. package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
package/src/types.d.ts CHANGED
@@ -10,29 +10,31 @@ export { AdaptablePlugin } from './AdaptableOptions/AdaptablePlugin';
10
10
  export type { ContainerOptions } from './AdaptableOptions/ContainerOptions';
11
11
  export type { FlashingCellOptions } from './AdaptableOptions/FlashingCellOptions';
12
12
  export type { TOAST_POSITIONS, NotificationsOptions, } from './AdaptableOptions/NotificationsOptions';
13
- export type { AlertOptions, ActionHandler, AlertForm, AlertButtonContext, } from './AdaptableOptions/AlertOptions';
13
+ export type { AlertOptions, ActionHandler, AlertForm, AlertButtonContext, AlertMessageContext, } from './AdaptableOptions/AlertOptions';
14
14
  export type { DashboardOptions, CustomToolbar, DashboardButtonContext, CustomToolbarButtonContext, } from './AdaptableOptions/DashboardOptions';
15
15
  export type { EditOptions, RowFormOptions, FormParamContext, FormFieldLabelContext, RowFormContext, CreateRowFormContext, EditRowFormContext, ValidationResult, SmartEditCustomOperation, SmartEditOperation, SmartEditOperationContext, } from './AdaptableOptions/EditOptions';
16
- export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, CustomReport, DataFormatType, ExportButtonContext, } from './AdaptableOptions/ExportOptions';
17
- export type { GeneralOptions, ColumnValuesComparer } from './AdaptableOptions/GeneralOptions';
16
+ export type { ExportOptions, SystemExportDestination, SystemExportDestinations, CustomDestination, CustomReport, DataFormatType, ExportFormContext, ReportContext, } from './AdaptableOptions/ExportOptions';
17
+ export type { GeneralOptions, ColumnValuesComparer, DataSet, DataSetFormContext, } from './AdaptableOptions/GeneralOptions';
18
18
  export type { Glue42PluginOptions } from './AdaptableOptions/Glue42PluginOptions';
19
19
  export type { IPushPullPluginOptions } from './AdaptableOptions/IPushPullPluginOptions';
20
20
  export type { LayoutOptions, LayoutViewOptions, LayoutTagOptions, LayoutAvailableContext, AutoGenerateTagsForLayoutsContext, LayoutAssociatedObject, } from './AdaptableOptions/LayoutOptions';
21
21
  export type { OpenFinPluginOptions } from './AdaptableOptions/OpenFinPluginOptions';
22
+ export type { MasterDetailPluginOptions } from './AdaptableOptions/MasterDetailPluginOptions';
22
23
  export type { FinancePluginOptions, WeightedAverageColumn, FDC3Column, InstrumentColumn, PositionColumn, CountryColumn, InstrumentIntent, InstrumentIntents, PositionIntent, PositionIntents, ContactIntent, ContactIntents, CountryIntent, CountryIntents, ContactColumn, OrganizationColumn, OrganizationIntent, OrganizationIntents, FDC3Intent, RaiseFDC3IntentContext, CustomFDC3Column, CustomFDC3Intent, } from './AdaptableOptions/FinancePluginOptions';
23
24
  export type { DateInputOptions } from './AdaptableOptions/DateInputOptions';
24
25
  export type { FilterOptions } from './AdaptableOptions/FilterOptions';
25
26
  export type { SearchOptions } from './AdaptableOptions/SearchOptions';
27
+ export type { ColumnOptions, ColumnFriendlyNameContext } from './AdaptableOptions/ColumnOptions';
26
28
  export type { AdaptablePersistStateFunction, AdaptableStateFunctionConfig, AdaptableLoadStateFunction, StateOptions, } from './AdaptableOptions/StateOptions';
27
29
  export type { AccessLevel, Entitlement } from './PredefinedConfig/Common/Entitlement';
28
30
  export type { FilterActionOnDataChange } from './PredefinedConfig/Common/FilterActionOnDataChange';
29
31
  export type { ConfigState } from './PredefinedConfig/ConfigState';
30
32
  export type { TeamSharingOptions } from './AdaptableOptions/TeamSharingOptions';
31
33
  export type { ToolPanelOptions, CustomToolPanel, ToolPanelButtonContext, CustomToolPanelButtonContext, } from './AdaptableOptions/ToolPanelOptions';
32
- export type { UserInterfaceOptions, CellValuesList, ActionColumnButtonContext, ActionColumn, ActionColumnSettings, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, } from './AdaptableOptions/UserInterfaceOptions';
34
+ export type { UserInterfaceOptions, CellValuesList, BasePermittedValues, PermittedValues, EditLookUpPermittedValues, FilterPermittedValues, CustomSortPermittedValues, BulkUpdatePermittedValues, EditLookUpContext, PermittedValuesContext, FilterPermittedValuesContext, BulkUpdatePermittedValuesContext, GridInfoSections, GridInfoSection, ObjectTagsContext, CustomDisplayFormatter, ActionColumnButtonContext, ActionColumn, ActionColumnSettings, ActionOptions, } from './AdaptableOptions/UserInterfaceOptions';
33
35
  export type { MenuOptions } from './AdaptableOptions/MenuOptions';
34
36
  export type { CustomSettingsPanel, SettingsPanelOptions, } from './AdaptableOptions/SettingsPanelOptions';
35
- export type { EntitlementOptions } from './AdaptableOptions/EntitlementOptions';
37
+ export type { EntitlementOptions, EntitlementContext } from './AdaptableOptions/EntitlementOptions';
36
38
  export type { ExpressionOptions, ModuleExpressionFunctions, AdaptableQLOptions, } from './AdaptableOptions/AdaptableQLOptions';
37
39
  export type { DataChangeHistoryOptions } from './AdaptableOptions/DataChangeHistoryOptions';
38
40
  export type { AdaptableApi } from './Api/AdaptableApi';
@@ -46,7 +48,7 @@ export type { ConditionalStyleApi } from './Api/ConditionalStyleApi';
46
48
  export type { ConfigApi } from './Api/ConfigApi';
47
49
  export type { CustomSortApi } from './Api/CustomSortApi';
48
50
  export type { DashboardApi } from './Api/DashboardApi';
49
- export type { DataSourceApi } from './Api/DataSourceApi';
51
+ export type { DataSetApi } from './Api/DataSetApi';
50
52
  export type { DataChangeHistoryApi } from './Api/DataChangeHistoryApi';
51
53
  export type { ExportApi } from './Api/ExportApi';
52
54
  export type { FilterApi } from './Api/FilterApi';
@@ -88,8 +90,9 @@ export type { LayoutChangedInfo } from './Api/Events/LayoutChanged';
88
90
  export type { CheckboxColumnClickedInfo } from './Api/Events/ChexboxColumnClicked';
89
91
  export type { CustomToolbarConfiguredInfo } from './Api/Events/CustomToolbarConfigured';
90
92
  export type { LiveDataChangedInfo, LiveReport } from './Api/Events/LiveDataChanged';
91
- export type { RowFormSubmittedInfo, RowFormType } from './Api/Events/RowFormSubmitted';
93
+ export type { RowFormSubmittedInfo, RowFormType, CreatedRowFormInfo, EditedRowFormInfo, DeletedRowFormInfo, } from './Api/Events/RowFormSubmitted';
92
94
  export type { AdaptableSearchState, AdaptableSortState, SearchChangedInfo, } from './Api/Events/SearchChanged';
95
+ export type { DataSetChangedInfo } from './Api/Events/DataSetChanged';
93
96
  export type { SelectionChangedInfo } from './Api/Events/SelectionChanged';
94
97
  export type { ThemeChangedInfo } from './Api/Events/ThemeChanged';
95
98
  export type { DashboardChangedInfo } from './Api/Events/DashboardChanged';
@@ -103,7 +106,7 @@ export type { CellSummmary, CellSummaryOperation, CellSummaryOperationContext, }
103
106
  export type { FlashingCellDefinition, FlashingCellState, } from './PredefinedConfig/FlashingCellState';
104
107
  export type { AdaptableAlert, AdaptableAlertType, AdaptableGenericAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert, AdaptableAlertBase, } from './PredefinedConfig/Common/AdaptableAlert';
105
108
  export type { AdaptableFlashingCell } from './PredefinedConfig/Common/AdaptableFlashingCell';
106
- export type { AdaptableColumn, AdaptableColumnBase, } from './PredefinedConfig/Common/AdaptableColumn';
109
+ export type { AdaptableColumn, AdaptableColumnBase, AdaptableColumnDataType, } from './PredefinedConfig/Common/AdaptableColumn';
107
110
  export type { AdaptableComparerFunction } from './PredefinedConfig/Common/AdaptableComparerFunction';
108
111
  export type { SystemStatusMessageInfo } from './PredefinedConfig/Common/SystemStatusMessageInfo';
109
112
  export type { AlternativeModuleName } from './PredefinedConfig/Common/AlternativeModuleName';
@@ -128,17 +131,18 @@ export type { AdaptableFormData, AdaptableForm, AdaptableFormField, AdaptableFor
128
131
  export type { AdaptableButton } from './PredefinedConfig/Common/AdaptableButton';
129
132
  export type { AdaptableMenuItem, UserMenuItem, ColumnMenuContext, ContextMenuContext, } from './PredefinedConfig/Common/Menu';
130
133
  export type { BaseContext } from './PredefinedConfig/Common/BaseContext';
134
+ export type { FormContext } from './PredefinedConfig/Common/FormContext';
131
135
  export type { Schedule } from './PredefinedConfig/Common/Schedule';
132
136
  export type { ButtonStyle } from './PredefinedConfig/Common/ButtonStyle';
133
- export type { AdaptableModule, AdaptableToolPanel, AdaptableQLModule, AdaptableSettingsPanel, AdaptableDashboardToolbar, AdaptableStatusBarPanel, } from './PredefinedConfig/Common/Types';
137
+ export type { AdaptableModule, AdaptableToolPanel, AdaptableQLModule, AdaptableSettingsPanel, AdaptableDashboardToolbar, AdaptableStatusBarPanel, AdaptableColumnType, } from './PredefinedConfig/Common/Types';
134
138
  export type { ConditionalStyle, ConditionalStyleRule, ConditionalStyleState, } from './PredefinedConfig/ConditionalStyleState';
135
139
  export type { CustomSort, CustomSortState } from './PredefinedConfig/CustomSortState';
136
140
  export type { DashboardState, DashboardTab, AdaptableCoordinate, } from './PredefinedConfig/DashboardState';
137
- export type { DataSource, DataSourceState } from './PredefinedConfig/DataSourceState';
138
141
  export type { ExportState, Report, ReportData, ReportSchedule, SystemReportName, SystemReportNames, } from './PredefinedConfig/ExportState';
139
- export type { ColumnFilter, ColumnFilterPredicate, FilterPredicateHandler, FilterPredicateInput, FilterPredicateParams, FilterState, } from './PredefinedConfig/FilterState';
142
+ export type { ColumnFilter, ColumnFilterPredicate, SystemFilterPredicateIds, SystemFilterPredicateId, } from './PredefinedConfig/Common/ColumnFilter';
140
143
  export type { FormatColumn, ColumnStyle, PercentBarStyle, GradientStyle, CellColorRange, ColumnComparison, CellTextOptions, CellTextOption, FormatColumnState, } from './PredefinedConfig/FormatColumnState';
141
144
  export type { FreeTextColumn, FreeTextColumnState, FreeTextStoredValue, FreeTextColumnSettings, } from './PredefinedConfig/FreeTextColumnState';
145
+ export type { StatusBarState, AdaptableStatusBar } from './PredefinedConfig/StatusBarState';
142
146
  export type { Glue42Report, Glue42Schedule, Glue42State } from './PredefinedConfig/Glue42State';
143
147
  export type { IPushPullDomain, IPushPullReport, IPushPullSchedule, IPushPullState, } from './PredefinedConfig/IPushPullState';
144
148
  export type { Layout, LayoutState } from './PredefinedConfig/LayoutState';
@@ -157,4 +161,4 @@ export type { Shortcut, ShortcutState, ShortcutScopeDataType, } from './Predefin
157
161
  export type { SharedEntity, TeamSharingImportInfo, TeamSharingState, SharedEntityType, SharedEntityConfig, } from './PredefinedConfig/TeamSharingState';
158
162
  export type { AdaptableTheme, ThemeState } from './PredefinedConfig/ThemeState';
159
163
  export type { ToolPanelState, AdaptableToolPanelDefinition, ToolPanelVisibilityMode, } from './PredefinedConfig/ToolPanelState';
160
- export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, } from './AdaptableOptions/AdaptableFrameworkComponent';
164
+ export type { AdaptableFrameworkComponent, AngularFrameworkComponent, ReactFrameworkComponent, CustomRenderContext, } from './AdaptableOptions/AdaptableFrameworkComponent';
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "11.3.0";
1
+ declare const _default: "12.0.0-canary.2";
2
2
  export default _default;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '11.3.0'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
3
+ exports.default = '12.0.0-canary.2'; // PLEASE DONT UPDATE THIS!!! - will be updated at build time with the correct version
@@ -1,10 +0,0 @@
1
- import { AdaptableScope } from '../../types';
2
- export declare type CustomDisplayFormatter = {
3
- id: string;
4
- label?: string;
5
- handler: (value: any) => any;
6
- scope: AdaptableScope;
7
- };
8
- export interface FormatColumnOptions {
9
- customDisplayFormatters?: CustomDisplayFormatter[];
10
- }
@@ -1,58 +0,0 @@
1
- import { DataSourceState, DataSource } from '../PredefinedConfig/DataSourceState';
2
- /**
3
- * Provides run-time access to Data Source Module
4
- */
5
- export interface DataSourceApi {
6
- /**
7
- * Retrieves Data Source section from Adaptable State
8
- */
9
- getDataSourceState(): DataSourceState;
10
- /**
11
- * Retrieves all Data Sources in the Adaptable State
12
- * @returns data sources
13
- */
14
- getAllDataSource(): DataSource[];
15
- /**
16
- * Retrieves Data Source by id
17
- * @param id Data Source id
18
- * @returns data source
19
- */
20
- getDataSourceById(id: DataSource['Uuid']): DataSource;
21
- /**
22
- * Retrieves the currently applied Data Source
23
- * @returns data source
24
- */
25
- getCurrentDataSource(): DataSource | undefined;
26
- /**
27
- * Retrives Data Source from State with given name
28
- * @param dataSourceName name of Data Source to retrieve
29
- * @returns data source
30
- */
31
- getDataSourceByName(dataSourceName: string): DataSource;
32
- /**
33
- * Makes given DataSource current
34
- * @param dataSource Data Source (already in State) to apply
35
- */
36
- setDataSource(dataSource: string): void;
37
- /**
38
- * Creates a DataSource from a given name and description
39
- * @param dataSourceName Name of Data Source to create
40
- * @param dataSourceDescription Description of Data Source to create
41
- * @returns data source
42
- */
43
- createDataSource(dataSourceName: string, dataSourceDescription: string): DataSource;
44
- /**
45
- * Adds new DataSource to State
46
- * @param dataSource Data Source to add
47
- * @returns data source
48
- */
49
- addDataSource(dataSource: DataSource): DataSource;
50
- /**
51
- * Clears currently selected DataSource
52
- */
53
- clearDataSource(): void;
54
- /**
55
- * Opens Settings Panel with Data Source section selected and visible
56
- */
57
- showDataSourcePopup(): void;
58
- }
@@ -1,15 +0,0 @@
1
- import { ApiBase } from './ApiBase';
2
- import { DataSourceApi } from '../DataSourceApi';
3
- import { DataSourceState, DataSource } from '../../PredefinedConfig/DataSourceState';
4
- export declare class DataSourceApiImpl extends ApiBase implements DataSourceApi {
5
- getDataSourceState(): DataSourceState;
6
- getAllDataSource(): DataSource[];
7
- getDataSourceById(id: DataSource['Uuid']): DataSource;
8
- getCurrentDataSource(): DataSource | undefined;
9
- getDataSourceByName(dataSourceName: string): DataSource | undefined;
10
- setDataSource(dataSourceName: string): void;
11
- createDataSource(dataSourceName: string, dataSourceDescription: string): DataSource;
12
- addDataSource(dataSource: DataSource): DataSource;
13
- clearDataSource(): void;
14
- showDataSourcePopup(): void;
15
- }
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataSourceApiImpl = void 0;
4
- const tslib_1 = require("tslib");
5
- const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
6
- const DataSourceRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DataSourceRedux"));
7
- const ApiBase_1 = require("./ApiBase");
8
- class DataSourceApiImpl extends ApiBase_1.ApiBase {
9
- getDataSourceState() {
10
- return this.getAdaptableState().DataSource;
11
- }
12
- getAllDataSource() {
13
- return this.getDataSourceState().DataSources;
14
- }
15
- getDataSourceById(id) {
16
- var _a;
17
- return (_a = this.getAllDataSource()) === null || _a === void 0 ? void 0 : _a.find((dataSource) => (dataSource === null || dataSource === void 0 ? void 0 : dataSource.Uuid) === id);
18
- }
19
- getCurrentDataSource() {
20
- let currentDataSourceName = this.getDataSourceState().CurrentDataSource;
21
- return this.getDataSourceByName(currentDataSourceName);
22
- }
23
- getDataSourceByName(dataSourceName) {
24
- return this.getAllDataSource().find((a) => a.Name == dataSourceName);
25
- }
26
- setDataSource(dataSourceName) {
27
- const dataSource = this.getDataSourceByName(dataSourceName);
28
- if (this.checkItemExists(dataSource, dataSourceName, 'Data Source')) {
29
- this.dispatchAction(DataSourceRedux.DataSourceSelect(dataSource));
30
- }
31
- }
32
- createDataSource(dataSourceName, dataSourceDescription) {
33
- let dataSource = {
34
- Name: dataSourceName,
35
- Description: dataSourceDescription,
36
- };
37
- return this.addDataSource(dataSource);
38
- }
39
- addDataSource(dataSource) {
40
- this.addUidToAdaptableObject(dataSource);
41
- this.dispatchAction(DataSourceRedux.DataSourceAdd(dataSource));
42
- return this.getDataSourceById(dataSource.Uuid);
43
- }
44
- clearDataSource() {
45
- this.dispatchAction(DataSourceRedux.DataSourceSelect(null));
46
- }
47
- showDataSourcePopup() {
48
- this.showModulePopup(ModuleConstants.DataSourceModuleId);
49
- }
50
- }
51
- exports.DataSourceApiImpl = DataSourceApiImpl;
@@ -1,34 +0,0 @@
1
- import { ConfigState } from './ConfigState';
2
- import { AdaptableObject } from './Common/AdaptableObject';
3
- import { AdaptableForm } from './Common/AdaptableForm';
4
- import { BaseContext } from '../types';
5
- /**
6
- * Predefined Configuration for Data Source Module
7
- */
8
- export interface DataSourceState extends ConfigState {
9
- /**
10
- * Collection of available Data Sources
11
- */
12
- DataSources?: DataSource[];
13
- /**
14
- * Name of the currently selected Data Source
15
- */
16
- CurrentDataSource?: string;
17
- }
18
- /**
19
- * Defines a Data Source object - used in Data Source function
20
- */
21
- export interface DataSource extends AdaptableObject {
22
- /**
23
- * Name of Data Source
24
- */
25
- Name: string;
26
- /**
27
- * Describes the Data Source
28
- */
29
- Description: string;
30
- /**
31
- * Params for DataSource pops up a form
32
- */
33
- Form?: AdaptableForm<BaseContext>;
34
- }
@@ -1,42 +0,0 @@
1
- import { DataSourceState, DataSource } from '../../PredefinedConfig/DataSourceState';
2
- import * as Redux from 'redux';
3
- /**
4
- * @ReduxAction A Data Source has been selected
5
- */
6
- export declare const DATA_SOURCE_SELECT = "DATA_SOURCE_SELECT";
7
- /**
8
- * @ReduxAction A Data Source has been added
9
- */
10
- export declare const DATA_SOURCE_ADD = "DATA_SOURCE_ADD";
11
- /**
12
- * @ReduxAction A Data Source has been edited
13
- */
14
- export declare const DATA_SOURCE_EDIT = "DATA_SOURCE_EDIT";
15
- /**
16
- * @ReduxAction A Data Source has been deleted
17
- */
18
- export declare const DATA_SOURCE_DELETE = "DATA_SOURCE_DELETE";
19
- /**
20
- * @ReduxAction Data Source Module is ready
21
- */
22
- export declare const DATA_SOURCE_READY = "DATA_SOURCE_READY";
23
- export interface DataSourceAction extends Redux.Action {
24
- dataSource: DataSource;
25
- }
26
- export interface DataSourceAddAction extends DataSourceAction {
27
- }
28
- export interface DataSourceEditAction extends DataSourceAction {
29
- }
30
- export interface DataSourceDeleteAction extends DataSourceAction {
31
- }
32
- export interface DataSourceSelectAction extends DataSourceAction {
33
- }
34
- export interface DataSourceReadyAction extends Redux.Action {
35
- dataSourceState: DataSourceState;
36
- }
37
- export declare const DataSourceSelect: (dataSource: DataSource) => DataSourceSelectAction;
38
- export declare const DataSourceAdd: (dataSource: DataSource) => DataSourceAddAction;
39
- export declare const DataSourceEdit: (dataSource: DataSource) => DataSourceEditAction;
40
- export declare const DataSourceDelete: (dataSource: DataSource) => DataSourceDeleteAction;
41
- export declare const DataSourceReady: (dataSourceState: DataSourceState) => DataSourceReadyAction;
42
- export declare const DataSourceReducer: Redux.Reducer<DataSourceState>;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DataSourceReducer = exports.DataSourceReady = exports.DataSourceDelete = exports.DataSourceEdit = exports.DataSourceAdd = exports.DataSourceSelect = exports.DATA_SOURCE_READY = exports.DATA_SOURCE_DELETE = exports.DATA_SOURCE_EDIT = exports.DATA_SOURCE_ADD = exports.DATA_SOURCE_SELECT = void 0;
4
- const tslib_1 = require("tslib");
5
- const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
- const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
7
- /**
8
- * @ReduxAction A Data Source has been selected
9
- */
10
- exports.DATA_SOURCE_SELECT = 'DATA_SOURCE_SELECT';
11
- /**
12
- * @ReduxAction A Data Source has been added
13
- */
14
- exports.DATA_SOURCE_ADD = 'DATA_SOURCE_ADD';
15
- /**
16
- * @ReduxAction A Data Source has been edited
17
- */
18
- exports.DATA_SOURCE_EDIT = 'DATA_SOURCE_EDIT';
19
- /**
20
- * @ReduxAction A Data Source has been deleted
21
- */
22
- exports.DATA_SOURCE_DELETE = 'DATA_SOURCE_DELETE';
23
- /**
24
- * @ReduxAction Data Source Module is ready
25
- */
26
- exports.DATA_SOURCE_READY = 'DATA_SOURCE_READY';
27
- exports.DataSourceSelect = (dataSource) => ({
28
- type: exports.DATA_SOURCE_SELECT,
29
- dataSource,
30
- });
31
- exports.DataSourceAdd = (dataSource) => ({
32
- type: exports.DATA_SOURCE_ADD,
33
- dataSource,
34
- });
35
- exports.DataSourceEdit = (dataSource) => ({
36
- type: exports.DATA_SOURCE_EDIT,
37
- dataSource,
38
- });
39
- exports.DataSourceDelete = (dataSource) => ({
40
- type: exports.DATA_SOURCE_DELETE,
41
- dataSource,
42
- });
43
- exports.DataSourceReady = (dataSourceState) => ({
44
- type: exports.DATA_SOURCE_READY,
45
- dataSourceState,
46
- });
47
- const initialState = {
48
- DataSources: GeneralConstants_1.EMPTY_ARRAY,
49
- CurrentDataSource: GeneralConstants_1.EMPTY_STRING,
50
- };
51
- exports.DataSourceReducer = (state = initialState, action) => {
52
- let dataSources;
53
- switch (action.type) {
54
- case exports.DATA_SOURCE_SELECT:
55
- return Object.assign({}, state, {
56
- CurrentDataSource: action.dataSource.Name,
57
- });
58
- case exports.DATA_SOURCE_ADD: {
59
- const actionDataSource = action.dataSource;
60
- AdaptableHelper_1.default.addUuidAndSource(actionDataSource);
61
- dataSources = [].concat(state.DataSources);
62
- dataSources.push(actionDataSource);
63
- return Object.assign(Object.assign({}, state), { DataSources: dataSources });
64
- }
65
- case exports.DATA_SOURCE_EDIT: {
66
- const actionDataSource = action.dataSource;
67
- return Object.assign(Object.assign({}, state), { DataSources: state.DataSources.map((abObject) => abObject.Uuid === actionDataSource.Uuid ? actionDataSource : abObject) });
68
- }
69
- case exports.DATA_SOURCE_DELETE: {
70
- const actionDataSource = action.dataSource;
71
- return Object.assign(Object.assign({}, state), { DataSources: state.DataSources.filter((abObject) => abObject.Uuid !== actionDataSource.Uuid) });
72
- }
73
- default:
74
- return state;
75
- }
76
- };
@@ -1,70 +0,0 @@
1
- import { FilterState, ColumnFilter } from '../../PredefinedConfig/FilterState';
2
- import * as Redux from 'redux';
3
- /**
4
- * @ReduxAction A Column Filter has been added
5
- */
6
- export declare const COLUMN_FILTER_ADD = "COLUMN_FILTER_ADD";
7
- /**
8
- * @ReduxAction A Column Filter has been edited
9
- */
10
- export declare const COLUMN_FILTER_EDIT = "COLUMN_FILTER_EDIT";
11
- /**
12
- * @ReduxAction Column Filters have been set
13
- */
14
- export declare const COLUMN_FILTER_SET = "COLUMN_FILTER_SET";
15
- /**
16
- * @ReduxAction All Column Filters have been cleared
17
- */
18
- export declare const COLUMN_FILTER_CLEAR_ALL = "COLUMN_FILTER_CLEAR_ALL";
19
- /**
20
- * @ReduxAction A Column Filter has been cleared
21
- */
22
- export declare const COLUMN_FILTER_CLEAR = "COLUMN_FILTER_CLEAR";
23
- /**
24
- * @ReduxAction Quick Filter Bar has been made visible
25
- */
26
- export declare const QUICK_FILTER_BAR_SHOW = "QUICK_FILTER_BAR_SHOW";
27
- /**
28
- * @ReduxAction Quick Filter Bar has been hidden
29
- */
30
- export declare const QUICK_FILTER_BAR_HIDE = "QUICK_FILTER_BAR_HIDE";
31
- /**
32
- * @ReduxAction The Filter Form has been hidden
33
- */
34
- export declare const FILTER_FORM_HIDE = "FILTER_FORM_HIDE";
35
- /**
36
- * @ReduxAction Filter Module is ready
37
- */
38
- export declare const FILTER_READY = "FILTER_READY";
39
- export interface ColumnFilterAction extends Redux.Action {
40
- columnFilter: ColumnFilter;
41
- }
42
- export interface ColumnFilterAddAction extends ColumnFilterAction {
43
- }
44
- export interface ColumnFilterEditAction extends ColumnFilterAction {
45
- }
46
- export interface ColumnFilterSetAction extends ColumnFilterAction {
47
- }
48
- export interface ColumnFilterClearAction extends ColumnFilterAction {
49
- }
50
- export interface ColumnFilterClearAllAction extends Redux.Action {
51
- }
52
- export interface QuickFilterBarShowAction extends Redux.Action {
53
- }
54
- export interface QuickFilterBarHideAction extends Redux.Action {
55
- }
56
- export interface FilterFormHideAction extends Redux.Action {
57
- }
58
- export interface FilterReadyAction extends Redux.Action {
59
- filterState: FilterState;
60
- }
61
- export declare const ColumnFilterAdd: (columnFilter: ColumnFilter) => ColumnFilterAddAction;
62
- export declare const ColumnFilterEdit: (columnFilter: ColumnFilter) => ColumnFilterEditAction;
63
- export declare const ColumnFilterSet: (columnFilter: ColumnFilter) => ColumnFilterSetAction;
64
- export declare const ColumnFilterClearAll: () => ColumnFilterClearAllAction;
65
- export declare const ColumnFilterClear: (columnFilter: ColumnFilter) => ColumnFilterClearAction;
66
- export declare const QuickFilterBarShow: () => QuickFilterBarShowAction;
67
- export declare const QuickFilterBarHide: () => QuickFilterBarHideAction;
68
- export declare const FilterFormHide: () => FilterFormHideAction;
69
- export declare const FilterReady: (filterState: FilterState) => FilterReadyAction;
70
- export declare const FilterReducer: Redux.Reducer<FilterState>;
@@ -1,126 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterReducer = exports.FilterReady = exports.FilterFormHide = exports.QuickFilterBarHide = exports.QuickFilterBarShow = exports.ColumnFilterClear = exports.ColumnFilterClearAll = exports.ColumnFilterSet = exports.ColumnFilterEdit = exports.ColumnFilterAdd = exports.FILTER_READY = exports.FILTER_FORM_HIDE = exports.QUICK_FILTER_BAR_HIDE = exports.QUICK_FILTER_BAR_SHOW = exports.COLUMN_FILTER_CLEAR = exports.COLUMN_FILTER_CLEAR_ALL = exports.COLUMN_FILTER_SET = exports.COLUMN_FILTER_EDIT = exports.COLUMN_FILTER_ADD = void 0;
4
- const tslib_1 = require("tslib");
5
- const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
6
- /**
7
- * @ReduxAction A Column Filter has been added
8
- */
9
- exports.COLUMN_FILTER_ADD = 'COLUMN_FILTER_ADD';
10
- /**
11
- * @ReduxAction A Column Filter has been edited
12
- */
13
- exports.COLUMN_FILTER_EDIT = 'COLUMN_FILTER_EDIT';
14
- /**
15
- * @ReduxAction Column Filters have been set
16
- */
17
- exports.COLUMN_FILTER_SET = 'COLUMN_FILTER_SET';
18
- /**
19
- * @ReduxAction All Column Filters have been cleared
20
- */
21
- exports.COLUMN_FILTER_CLEAR_ALL = 'COLUMN_FILTER_CLEAR_ALL';
22
- /**
23
- * @ReduxAction A Column Filter has been cleared
24
- */
25
- exports.COLUMN_FILTER_CLEAR = 'COLUMN_FILTER_CLEAR';
26
- /**
27
- * @ReduxAction Quick Filter Bar has been made visible
28
- */
29
- exports.QUICK_FILTER_BAR_SHOW = 'QUICK_FILTER_BAR_SHOW';
30
- /**
31
- * @ReduxAction Quick Filter Bar has been hidden
32
- */
33
- exports.QUICK_FILTER_BAR_HIDE = 'QUICK_FILTER_BAR_HIDE';
34
- /**
35
- * @ReduxAction The Filter Form has been hidden
36
- */
37
- exports.FILTER_FORM_HIDE = 'FILTER_FORM_HIDE';
38
- /**
39
- * @ReduxAction Filter Module is ready
40
- */
41
- exports.FILTER_READY = 'FILTER_READY';
42
- // Column Filter Methods
43
- exports.ColumnFilterAdd = (columnFilter) => ({
44
- type: exports.COLUMN_FILTER_ADD,
45
- columnFilter,
46
- });
47
- exports.ColumnFilterEdit = (columnFilter) => ({
48
- type: exports.COLUMN_FILTER_EDIT,
49
- columnFilter,
50
- });
51
- exports.ColumnFilterSet = (columnFilter) => ({
52
- type: exports.COLUMN_FILTER_SET,
53
- columnFilter,
54
- });
55
- exports.ColumnFilterClearAll = () => ({
56
- type: exports.COLUMN_FILTER_CLEAR_ALL,
57
- });
58
- exports.ColumnFilterClear = (columnFilter) => ({
59
- type: exports.COLUMN_FILTER_CLEAR,
60
- columnFilter,
61
- });
62
- // Filter Form and Quick Filter Bar
63
- exports.QuickFilterBarShow = () => ({
64
- type: exports.QUICK_FILTER_BAR_SHOW,
65
- });
66
- exports.QuickFilterBarHide = () => ({
67
- type: exports.QUICK_FILTER_BAR_HIDE,
68
- });
69
- exports.FilterFormHide = () => ({
70
- type: exports.FILTER_FORM_HIDE,
71
- });
72
- exports.FilterReady = (filterState) => ({
73
- type: exports.FILTER_READY,
74
- filterState,
75
- });
76
- const initialState = {
77
- ColumnFilters: [],
78
- IsQuickFilterVisible: true,
79
- };
80
- exports.FilterReducer = (state = initialState, action) => {
81
- let columnFilters;
82
- switch (action.type) {
83
- case exports.COLUMN_FILTER_SET: {
84
- const columnFilterAction = action.columnFilter;
85
- AdaptableHelper_1.default.addUuidAndSource(columnFilterAction);
86
- columnFilters = [].concat(state.ColumnFilters);
87
- columnFilters = columnFilters
88
- .filter((colFilter) => {
89
- return colFilter.ColumnId !== columnFilterAction.ColumnId;
90
- })
91
- .concat(columnFilterAction);
92
- return Object.assign(Object.assign({}, state), { ColumnFilters: columnFilters });
93
- }
94
- case exports.COLUMN_FILTER_ADD: {
95
- const columnFilterAction = action.columnFilter;
96
- AdaptableHelper_1.default.addUuidAndSource(columnFilterAction);
97
- columnFilters = [].concat(state.ColumnFilters);
98
- columnFilters.push(columnFilterAction);
99
- return Object.assign(Object.assign({}, state), { ColumnFilters: columnFilters });
100
- }
101
- case exports.COLUMN_FILTER_EDIT: {
102
- const columnFilterAction = action.columnFilter;
103
- return Object.assign(Object.assign({}, state), { ColumnFilters: state.ColumnFilters.map((abObject) => abObject.Uuid === columnFilterAction.Uuid ? columnFilterAction : abObject) });
104
- }
105
- case exports.COLUMN_FILTER_CLEAR_ALL: {
106
- return Object.assign({}, state, { ColumnFilters: [] });
107
- }
108
- case exports.COLUMN_FILTER_CLEAR: {
109
- const actionTypedDelete = action;
110
- columnFilters = [].concat(state.ColumnFilters);
111
- const index = actionTypedDelete.columnFilter
112
- ? columnFilters.findIndex((i) => i.Uuid == actionTypedDelete.columnFilter.Uuid)
113
- : -1;
114
- if (index != -1) {
115
- columnFilters.splice(index, 1);
116
- }
117
- return Object.assign({}, state, { ColumnFilters: columnFilters });
118
- }
119
- case exports.QUICK_FILTER_BAR_SHOW:
120
- return Object.assign({}, state, { IsQuickFilterVisible: true });
121
- case exports.QUICK_FILTER_BAR_HIDE:
122
- return Object.assign({}, state, { IsQuickFilterVisible: false });
123
- default:
124
- return state;
125
- }
126
- };
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { AdaptableModuleBase } from './AdaptableModuleBase';
3
- import * as DataSourceRedux from '../Redux/ActionsReducers/DataSourceRedux';
4
- import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
5
- import { DataSource } from '../PredefinedConfig/DataSourceState';
6
- import { AdaptableObjectView, IModule } from './Interface/IModule';
7
- import { AdaptableApi } from '../Api/AdaptableApi';
8
- import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
9
- export declare class DataSourceModule extends AdaptableModuleBase implements IModule {
10
- constructor(api: AdaptableApi);
11
- getModuleAdaptableObjects(): AdaptableObject[];
12
- hasNamedQueryReferences(): boolean;
13
- getTeamSharingAction(): TeamSharingImportInfo<DataSource>;
14
- toView(dataSource: DataSource): AdaptableObjectView;
15
- toViewAll(): AdaptableObjectView[];
16
- getViewProperties(): {
17
- getDeleteAction: (dataSource: DataSource) => DataSourceRedux.DataSourceDeleteAction;
18
- getEditWizard: () => import("react").FunctionComponent<import("../View/DataSource/Wizard/DataSourceWizard").DataSourceWizardProps>;
19
- };
20
- }