@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
@@ -2,11 +2,10 @@ import { AdaptableIcon } from '../PredefinedConfig/Common/AdaptableIcon';
2
2
  import { DateInputOptions } from './DateInputOptions';
3
3
  import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
4
4
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
5
- import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
6
- import { RowNode } from '@ag-grid-community/all-modules';
7
5
  import { AdaptableObject, AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
8
6
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
9
- import { BaseContext, GridCell } from '../../types';
7
+ import { AdaptableButton, BaseContext, GridCell } from '../../types';
8
+ import { RowNode } from '@ag-grid-community/all-modules';
10
9
  /**
11
10
  * Options for managing the User Interface of AdapTable
12
11
  */
@@ -52,10 +51,6 @@ export interface UserInterfaceOptions {
52
51
  * Colours to display in Colour Picker (in place of AdapTable's default set); can be hardcoded list or function
53
52
  */
54
53
  colorPalette?: string[] | ((currentTheme: string) => string[]);
55
- /**
56
- * Columns which contain an AdapTable Button - used for performing Actions
57
- */
58
- actionColumns?: ActionColumn[];
59
54
  /**
60
55
  * Style to set for editable cells
61
56
  */
@@ -74,11 +69,6 @@ export interface UserInterfaceOptions {
74
69
  * Optional list of AdaptableObjectTags that can be associated with AdaptableObjects
75
70
  */
76
71
  objectTags?: AdaptableObjectTag[] | ((context: ObjectTagsContext) => AdaptableObjectTag[]);
77
- /**
78
- * Optional list of Column Types - used primarily for special columns
79
- *
80
- */
81
- columnTypes?: string[];
82
72
  /**
83
73
  * Provide links to AdapTable documentation (in Module popups and Expression Editor)
84
74
  *
@@ -99,68 +89,54 @@ export interface UserInterfaceOptions {
99
89
  * @gridInfoItem
100
90
  */
101
91
  showAdapTableVersion?: boolean;
92
+ /**
93
+ * Custom Formatters to use in the Format Column Module
94
+ */
95
+ customDisplayFormatters?: CustomDisplayFormatter[];
96
+ /**
97
+ * Options for creating Action Columns and Buttons
98
+ */
99
+ actionOptions?: ActionOptions;
100
+ }
101
+ /**
102
+ * Options related to Action Columns and Buttons in Adaptable.
103
+ */
104
+ export interface ActionOptions {
105
+ /**
106
+ * Columns which contain an AdapTable Button - used for performing Actions
107
+ */
108
+ actionColumns?: ActionColumn[];
102
109
  /**
103
110
  * Action buttons to display for each row.
104
111
  *
105
112
  * @defaultValue undefined
106
113
  */
107
- rowActionButtons?: ('clone' | 'edit' | 'delete')[];
114
+ actionRowButtons?: ('clone' | 'create' | 'edit' | 'delete')[];
108
115
  /**
109
- * Position of the action buttons
116
+ * Position of supplied Action Buttons
110
117
  *
111
118
  * @defaultValue 'pinnedLeft'
112
119
  */
113
- rowActionButtonsPosition?: 'pinnedLeft' | 'pinnedRight';
114
- }
115
- export interface BasePermittedValues {
116
- /**
117
- * Scope where Values will appear (Mandatory property)
118
- */
119
- scope: AdaptableScope;
120
- }
121
- /**
122
- * Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)
123
- */
124
- export interface PermittedValues extends BasePermittedValues {
120
+ actionRowButtonsPosition?: 'pinnedLeft' | 'pinnedRight';
125
121
  /**
126
- * Values to display: either hardcoded list or a function
122
+ * If set to true, the Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
123
+ *
124
+ * @defaultValue false
127
125
  */
128
- values?: any[] | ((context: PermittedValuesContext) => any[]);
129
- }
130
- /**
131
- * Used to define permitted values for inline column editor
132
- */
133
- export interface EditLookUpPermittedValues extends BasePermittedValues {
134
- values?: any[] | ((context: EditLookUpContext) => any[]);
135
- }
136
- /**
137
- * Used to define values inside the floating filter and floating filter (quick filter)
138
- */
139
- export interface FilterPermittedValues extends BasePermittedValues {
126
+ autoHandleActionRowButtons?: boolean;
140
127
  /**
141
- * Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
142
- * @defaultValue false
128
+ * Function which is called when auto-handling the 'create' Action Row Button. The returned row value should have a valid(unique) primary key value.
129
+ *
130
+ * @defaultValue undefined
143
131
  */
144
- suppressFilterSearchBar?: boolean;
145
- values: (context: FilterPermittedValuesContext) => any[] | Promise<any[]>;
146
- }
147
- /**
148
- * Custom column values for custom sort.
149
- */
150
- export interface CustomSortPermittedValues extends BasePermittedValues {
151
- values: (context: PermittedValuesContext) => any[] | Promise<any[]>;
132
+ setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
152
133
  }
153
134
  /**
154
- * User to define permitted values when updating cells via bulk update
135
+ * The context for the SetPrimaryKeyValueContext function
155
136
  */
156
- export interface BulkUpdatePermittedValues extends BasePermittedValues {
157
- values: (context: BulkUpdatePermittedValuesContext) => any[] | Promise<any[]>;
137
+ export interface SetPrimaryKeyValueContext extends BaseContext {
138
+ rowData: any;
158
139
  }
159
- /**
160
- * Use PermittedValues instead
161
- * @deprecated use PermittedValues instead
162
- */
163
- export declare type CellValuesList = PermittedValues;
164
140
  /**
165
141
  * A Special Column that wraps an AdapTable Button
166
142
  */
@@ -227,6 +203,55 @@ export interface ActionColumnSettings {
227
203
  */
228
204
  suppressMovable?: boolean;
229
205
  }
206
+ export interface BasePermittedValues {
207
+ /**
208
+ * Scope where Values will appear (Mandatory property)
209
+ */
210
+ scope: AdaptableScope;
211
+ }
212
+ /**
213
+ * Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)
214
+ */
215
+ export interface PermittedValues extends BasePermittedValues {
216
+ /**
217
+ * Values to display: either hardcoded list or a function
218
+ */
219
+ values?: any[] | ((context: PermittedValuesContext) => any[]);
220
+ }
221
+ /**
222
+ * Used to define permitted values for inline column editor
223
+ */
224
+ export interface EditLookUpPermittedValues extends BasePermittedValues {
225
+ values?: any[] | ((context: EditLookUpContext) => any[]);
226
+ }
227
+ /**
228
+ * Used to define values inside the floating filter and floating filter (quick filter)
229
+ */
230
+ export interface FilterPermittedValues extends BasePermittedValues {
231
+ /**
232
+ * Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
233
+ * @defaultValue false
234
+ */
235
+ suppressFilterSearchBar?: boolean;
236
+ values: (context: FilterPermittedValuesContext) => any[] | Promise<any[]>;
237
+ }
238
+ /**
239
+ * Custom column values for custom sort.
240
+ */
241
+ export interface CustomSortPermittedValues extends BasePermittedValues {
242
+ values: (context: PermittedValuesContext) => any[] | Promise<any[]>;
243
+ }
244
+ /**
245
+ * User to define permitted values when updating cells via bulk update
246
+ */
247
+ export interface BulkUpdatePermittedValues extends BasePermittedValues {
248
+ values: (context: BulkUpdatePermittedValuesContext) => any[] | Promise<any[]>;
249
+ }
250
+ /**
251
+ * Use PermittedValues instead
252
+ * @deprecated use PermittedValues instead
253
+ */
254
+ export declare type CellValuesList = PermittedValues;
230
255
  export interface EditLookUpContext extends BaseContext {
231
256
  /**
232
257
  * Column displaying the Edit LookUp
@@ -267,3 +292,9 @@ export declare type GridInfoSections = GridInfoSection[];
267
292
  export declare type GridInfoSection = 'GridSummary' | 'AdaptableOptions' | 'ColumnInfo' | 'AdaptableObjectsSummary';
268
293
  export interface ObjectTagsContext extends BaseContext {
269
294
  }
295
+ export declare type CustomDisplayFormatter = {
296
+ id: string;
297
+ label?: string;
298
+ handler: (value: any) => any;
299
+ scope: AdaptableScope;
300
+ };
@@ -8,7 +8,7 @@ import { ConditionalStyleApi } from './ConditionalStyleApi';
8
8
  import { CustomSortApi } from './CustomSortApi';
9
9
  import { DashboardApi } from './DashboardApi';
10
10
  import { ToolPanelApi } from './ToolPanelApi';
11
- import { DataSourceApi } from './DataSourceApi';
11
+ import { DataSetApi } from './DataSetApi';
12
12
  import { EventApi } from './EventApi';
13
13
  import { ExportApi } from './ExportApi';
14
14
  import { FormatColumnApi } from './FormatColumnApi';
@@ -89,9 +89,9 @@ export interface AdaptableApi {
89
89
  **/
90
90
  dataChangeHistoryApi: DataChangeHistoryApi;
91
91
  /**
92
- * Provides access to the Data Source Module
92
+ * Provides access to Data Sets
93
93
  */
94
- dataSourceApi: DataSourceApi;
94
+ dataSetApi: DataSetApi;
95
95
  /**
96
96
  * Used for listenning / subscribing to the various Events published by AdapTable
97
97
  */
@@ -209,6 +209,9 @@ export interface AdaptableApi {
209
209
  unmount: boolean;
210
210
  destroyApi?: boolean;
211
211
  }) => void;
212
+ /**
213
+ * Whether the Adaptable instance has been destroyed
214
+ */
212
215
  isDestroyed: () => boolean;
213
216
  /**
214
217
  * Cleanup method that only cleans up this api instance (clears event listeners and sets every property to null), but does not destroy the Adaptable instance.
@@ -1,5 +1,4 @@
1
- import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
- import { DataType } from '../PredefinedConfig/Common/Enums';
1
+ import { AdaptableColumn, AdaptableColumnDataType } from '../PredefinedConfig/Common/AdaptableColumn';
3
2
  import { Column, RowNode } from '@ag-grid-community/all-modules';
4
3
  import { GridCell } from '../../types';
5
4
  /**
@@ -59,7 +58,7 @@ export interface ColumnApi {
59
58
  * Returns all Columns that have given DataType
60
59
  * @param dataType the DataType of the Columns to retrieve
61
60
  */
62
- getColumnsOfType(dataType: DataType): AdaptableColumn[];
61
+ getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
63
62
  /**
64
63
  * Selects (highlights) a Column
65
64
  * @param columnId Column to select
@@ -157,7 +156,7 @@ export interface ColumnApi {
157
156
  * Returns Data Type for a Column
158
157
  * @param columnId Column to check
159
158
  */
160
- getColumnDataTypeFromColumnId(columnId: string): 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown' | undefined;
159
+ getColumnDataTypeFromColumnId(columnId: string): AdaptableColumnDataType | undefined;
161
160
  /**
162
161
  * Retrieves Friendly Name for a given Column
163
162
  * @param columnId ColumnId to check
@@ -294,4 +293,10 @@ export interface ColumnApi {
294
293
  * @param expression Expression to Lookup
295
294
  */
296
295
  isColumnReferencedInExpression(columnId: string, expression: string): boolean;
296
+ /**
297
+ * Checks if a column is a ActionRowButton column (see UserInterfaceOptions.ActionOptions)
298
+ *
299
+ * @param columnId Column to Check
300
+ */
301
+ isActionRowButtonColumn(columnId: string): boolean;
297
302
  }
@@ -77,6 +77,16 @@ export interface ConditionalStyleApi {
77
77
  * @returns conditional styles
78
78
  */
79
79
  editConditionalStyles(conditionalStyles: ConditionalStyle[]): ConditionalStyle[];
80
+ /**
81
+ * Deletes a Conditional Style
82
+ * @param conditionalStyle Conditional Style to delete
83
+ */
84
+ deleteConditionalStyle(conditionalStyle: ConditionalStyle): void;
85
+ /**
86
+ * Deletes Conditional Styles
87
+ * @param conditionalStyles Conditional Styles to delete
88
+ */
89
+ deleteConditionalStyles(conditionalStyles: ConditionalStyle[]): void;
80
90
  /**
81
91
  * Adds new Conditional Style to State
82
92
  * @param conditionalStyle Conditional Style to add
@@ -4,7 +4,6 @@ import { QuickSearchState } from '../PredefinedConfig/QuickSearchState';
4
4
  import { LayoutState } from '../PredefinedConfig/LayoutState';
5
5
  import { FormatColumnState } from '../PredefinedConfig/FormatColumnState';
6
6
  import { ExportState } from '../PredefinedConfig/ExportState';
7
- import { DataSourceState } from '../PredefinedConfig/DataSourceState';
8
7
  import { DashboardState } from '../PredefinedConfig/DashboardState';
9
8
  import { CustomSortState } from '../PredefinedConfig/CustomSortState';
10
9
  import { ConditionalStyleState } from '../PredefinedConfig/ConditionalStyleState';
@@ -15,7 +14,6 @@ import { PlusMinusState } from '../PredefinedConfig/PlusMinusState';
15
14
  import { ApplicationState } from '../PredefinedConfig/ApplicationState';
16
15
  import { AdaptablePersistentState, AdaptableState } from '../PredefinedConfig/AdaptableState';
17
16
  import { FreeTextColumnState } from '../PredefinedConfig/FreeTextColumnState';
18
- import { FilterState } from '../PredefinedConfig/FilterState';
19
17
  import { ToolPanelState } from '../PredefinedConfig/ToolPanelState';
20
18
  import { AdaptableStateKey, AdaptableModule } from '../PredefinedConfig/Common/Types';
21
19
  import { AdaptableSearchState, PredefinedConfig, ScheduleState } from '../types';
@@ -133,21 +131,11 @@ export interface ConfigApi {
133
131
  * @param returnJson return as JSON rather than object
134
132
  */
135
133
  getDashboardState(returnJson: boolean): DashboardState;
136
- /**
137
- * Returns Data Source section of Adaptable State
138
- * @param returnJson return as JSON rather than object
139
- */
140
- getDataSourceState(returnJson: boolean): DataSourceState;
141
134
  /**
142
135
  * Returns Export section of Adaptable State
143
136
  * @param returnJson return as JSON rather than object
144
137
  */
145
138
  getExportState(returnJson: boolean): ExportState;
146
- /**
147
- * Returns Filter section of Adaptable State
148
- * @param returnJson return as JSON rather than object
149
- */
150
- getFilterState(returnJson: boolean): FilterState;
151
139
  /**
152
140
  * Returns Formt Column section of Adaptable State
153
141
  * @param returnJson return as JSON rather than object
@@ -2,7 +2,7 @@ import { DashboardState, DashboardTab } from '../PredefinedConfig/DashboardState
2
2
  import { AdaptableModuleButtons, AdaptableDashboardToolbars, AdaptableDashboardToolbar } from '../PredefinedConfig/Common/Types';
3
3
  import { DashboardChangedInfo } from './Events/DashboardChanged';
4
4
  import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
5
- import { CustomToolbar, CustomToolbarButtonContext, DashboardButtonContext } from '../AdaptableOptions/DashboardOptions';
5
+ import { CustomToolbar, DashboardButtonContext } from '../AdaptableOptions/DashboardOptions';
6
6
  /**
7
7
  * Functions relating to the AdapTable Dashboard.
8
8
  */
@@ -18,7 +18,7 @@ export interface DashboardApi {
18
18
  /**
19
19
  * Retrieves all Custom Buttons
20
20
  */
21
- getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[] | undefined;
21
+ getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
22
22
  /**
23
23
  * Retrieves first Custom Button with given Label
24
24
  * @param buttonLabel the label of the Custom Button to retrieve
@@ -49,23 +49,6 @@ export interface DashboardApi {
49
49
  * @param customToolbarName the name of the Custom Toolbar
50
50
  */
51
51
  getCustomToolbarByName(customToolbarName: string): CustomToolbar;
52
- /**
53
- * Replaces Toolbar Buttons in Custom Toolbar with the new set
54
- * @param customToolbarName name of the Custom Toolbar
55
- * @param buttons Toolbar Buttons to add
56
- */
57
- setCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
58
- /**
59
- * Adds Toolbar Buttons to current collection in Custom Toolbar
60
- * @param customToolbarName name of the Custom Toolbar
61
- * @param buttons Toolbar Buttons to add
62
- */
63
- addCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
64
- /**
65
- * Clears all Toolbar Buttons from Custom Toolbar
66
- * @param customToolbarName the name of the Custom Toolbar
67
- */
68
- clearCustomToolbarButtons(customToolbarName: string): void;
69
52
  /**
70
53
  * Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)
71
54
  */
@@ -74,6 +57,10 @@ export interface DashboardApi {
74
57
  * Expands Dashboard so Toolbars in Active Tab are fully visible
75
58
  */
76
59
  expandDashboard(): void;
60
+ /**
61
+ * Refreshes the entire Dashboard section, including Toolbars and Buttons; this is particularly relevant for AdapTable built-in elements, as framework components are dependent on the framework specific change detection mechanisms
62
+ */
63
+ refreshDashboard(): void;
77
64
  /**
78
65
  * Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location
79
66
  */
@@ -0,0 +1,40 @@
1
+ import { DataSet } from '../types';
2
+ /**
3
+ * Provides run-time access to Data Sets
4
+ */
5
+ export interface DataSetApi {
6
+ /**
7
+ * Retrieves the Data Sets from General Options
8
+ * @returns data Sets
9
+ */
10
+ getAllDataSets(): DataSet[];
11
+ /**
12
+ * Retrieves the currently applied Data Set
13
+ * @returns data Set
14
+ */
15
+ getCurrentDataSet(): DataSet | undefined;
16
+ /**
17
+ * Retreives Data Set from State with given name
18
+ * @param dataSetName name of Data Set to retrieve
19
+ * @returns data Set
20
+ */
21
+ getDataSetByName(dataSetName: string): DataSet;
22
+ /**
23
+ * Makes given Data Set current
24
+ * @param dataSetName Name of Data Set to apply
25
+ */
26
+ setDataSet(dataSetName: string): void;
27
+ /**
28
+ * Clears currently selected Data Set
29
+ */
30
+ clearCurrentDataSet(): void;
31
+ /**
32
+ * Opens Settings Panel with Data Set section selected and visible
33
+ */
34
+ showDataSetPopup(): void;
35
+ /**
36
+ * Fire the DataSet Changed Event
37
+ * @param dataSet Data Set which has changed
38
+ */
39
+ fireDataSetChangeEvent(dataSet: DataSet): void;
40
+ }
@@ -15,6 +15,7 @@ import { FlashingCellDisplayedInfo } from './Events/FlashingCellDisplayed';
15
15
  import { GridDataChangedInfo } from './Events/GridDataChanged';
16
16
  import { TeamSharingEntityChangedInfo } from './Events/TeamSharingEntityChanged';
17
17
  import { RowFormSubmittedInfo } from './Events/RowFormSubmitted';
18
+ import { DataSetChangedInfo } from './Events/DataSetChanged';
18
19
  /**
19
20
  * Responsible for publishing the many Events that AdapTable fires
20
21
  */
@@ -194,8 +195,32 @@ export interface EventApi {
194
195
  * Unsubscribe from LiveDataChanged
195
196
  */
196
197
  off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
198
+ /**
199
+ * Event fired when a Row Form is submitted
200
+ *
201
+ * @param eventName RowFormSubmitted
202
+ * @param callback RowFormSubmittedInfo
203
+ */
197
204
  on(eventName: 'RowFormSubmitted', callback: (rowEditedFormInfo: RowFormSubmittedInfo) => void): () => void;
205
+ /**
206
+ * Unsubscribe from RowFormSubmitted
207
+ * @param eventName RowFormSubmitted
208
+ * @param callback
209
+ */
198
210
  off(eventName: 'RowFormSubmitted', callback: (rowEditedFormInfo: RowFormSubmittedInfo) => void): void;
211
+ /**
212
+ * Event fired when a DataSet is changed
213
+ *
214
+ * @param eventName DataSetChanged
215
+ * @param callback DataSetChangedInfo
216
+ */
217
+ on(eventName: 'DataSetChanged', callback: (dataSetChangedInfo: DataSetChangedInfo) => void): () => void;
218
+ /**
219
+ * Unsubscribe from DataSetChanged
220
+ * @param eventName DataSetChanged
221
+ * @param callback
222
+ */
223
+ off(eventName: 'DataSetChanged', callback: (dataSetChangedInfo: DataSetChangedInfo) => void): void;
199
224
  /**
200
225
  * Fired when Adaptable is up and running - has no arguments.
201
226
  * @param eventName - AdaptableReady
@@ -227,6 +252,6 @@ export interface EventApi {
227
252
  emitSync(eventName: 'DashboardChanged', data?: any): any[];
228
253
  emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
229
254
  emitSync(eventName: 'AdaptableDestroy'): any[];
230
- emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent' | 'RowFormSubmitted', data?: any): Promise<any>;
255
+ emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent' | 'RowFormSubmitted' | 'DataSetChanged', data?: any): Promise<any>;
231
256
  destroy(): void;
232
257
  }
@@ -0,0 +1,5 @@
1
+ import { DataSet } from '../../types';
2
+ import { BaseEventInfo } from './BaseEventInfo';
3
+ export interface DataSetChangedInfo extends BaseEventInfo {
4
+ dataSet: DataSet;
5
+ }
@@ -1,8 +1,7 @@
1
- import { DataSource } from '../../PredefinedConfig/DataSourceState';
2
1
  import { CustomSort } from '../../PredefinedConfig/CustomSortState';
3
2
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
4
- import { ColumnFilter } from '../../PredefinedConfig/FilterState';
5
3
  import { BaseEventInfo } from './BaseEventInfo';
4
+ import { ColumnFilter, DataSet } from '../../types';
6
5
  /**
7
6
  * EventInfo returned by SearchChanged event; includes full AdapTable search and sort info plus the event's trigger
8
7
  */
@@ -10,7 +9,7 @@ export interface SearchChangedInfo extends BaseEventInfo {
10
9
  /**
11
10
  * What search-related change caused the event to fire
12
11
  */
13
- searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
12
+ searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
14
13
  /**
15
14
  * Current searches and filters in the Grid
16
15
  */
@@ -25,9 +24,9 @@ export interface SearchChangedInfo extends BaseEventInfo {
25
24
  */
26
25
  export interface AdaptableSearchState {
27
26
  /**
28
- * Current Data Source (if one selected)
27
+ * Current DataSet (if one selected)
29
28
  */
30
- dataSource: DataSource | undefined;
29
+ dataSet: DataSet | undefined;
31
30
  /**
32
31
  * Current Query
33
32
  */
@@ -1,7 +1,7 @@
1
1
  import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
2
2
  import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../PredefinedConfig/ExportState';
3
3
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
4
- import { CustomDestination, ExportButtonContext } from '../AdaptableOptions/ExportOptions';
4
+ import { CustomDestination, ExportFormContext } from '../AdaptableOptions/ExportOptions';
5
5
  import { ExportDestination } from '../PredefinedConfig/Common/Enums';
6
6
  /**
7
7
  * Provides run-time access to the Export Module and Report state
@@ -122,7 +122,7 @@ export interface ExportApi {
122
122
  * Form Data entered by the User in the UI for a Custom Destination
123
123
  * @param destination Custom Destination for which to get Form Def
124
124
  */
125
- getExportDestinationForm(destinationName: string): AdaptableForm<ExportButtonContext> | undefined;
125
+ getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
126
126
  /**
127
127
  * Whether given data change affects given report
128
128
  * @param cellDataChangedInfo data change to check
@@ -1,15 +1,10 @@
1
- import { FilterState, ColumnFilter, SystemFilterPredicateIds } from '../PredefinedConfig/FilterState';
2
- import { AdaptableColumn } from '../types';
1
+ import { AdaptableColumn, ColumnFilter, GridCell, SystemFilterPredicateIds } from '../types';
3
2
  import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
4
3
  import { RowNode } from '@ag-grid-community/all-modules';
5
4
  /**
6
5
  * Provides run-time access to Filter section of Adaptable State.
7
6
  */
8
7
  export interface FilterApi {
9
- /**
10
- * Retrieves Filter section from Adaptable State
11
- */
12
- getFilterState(): FilterState;
13
8
  /**
14
9
  * Returns Predicate Definition for given Column and Quick Filter shortcut
15
10
  * @param shortcut Quick Filter shortcut to lookup
@@ -31,16 +26,26 @@ export interface FilterApi {
31
26
  */
32
27
  getAllSystemFilterIds(): SystemFilterPredicateIds;
33
28
  /**
34
- * Retrieves all the Column Filters in the Column Filter State (of Predefined Config)
35
- * @returns column filters
29
+ * Makes Quick Filter Bar appear
36
30
  */
37
- getAllColumnFilter(): ColumnFilter[];
31
+ showQuickFilterBar(): void;
32
+ /**
33
+ * Hides Quick Filter bar
34
+ */
35
+ hideQuickFilterBar(): void;
38
36
  /**
39
- * Retrieves ColumnFilter by Id
40
- * @param id column filter id
41
- * @returns column filter
37
+ * Whether Quick Filter is available for use
38
+ */
39
+ isQuickFilterAvailable(): boolean;
40
+ /**
41
+ * Whether Quick Filter Form is currently visible
42
+ */
43
+ isQuickFilterVisible(): boolean;
44
+ /**
45
+ * Retrieves all the Column Filters in the Column Filter State (of Predefined Config)
46
+ * @returns column filters
42
47
  */
43
- getColumnFilterById(id: ColumnFilter['Uuid']): ColumnFilter;
48
+ getColumnFilters(): ColumnFilter[];
44
49
  /**
45
50
  * Sets Column Filters - will replace filters for existing column and leave other column filters in place
46
51
  * @param columnFilters Column Filters to set
@@ -63,9 +68,9 @@ export interface FilterApi {
63
68
  */
64
69
  clearColumnFilterByColumns(columns: string[]): void;
65
70
  /**
66
- * Clears all Column Filters in State
71
+ * Clears all Column Filters in the Current Layout
67
72
  */
68
- clearAllColumnFilter(): void;
73
+ clearColumnFilters(): void;
69
74
  /**
70
75
  * Clears existing Column Filters and then sets the new ones
71
76
  * @param columnFilters Column Filters to set
@@ -78,12 +83,15 @@ export interface FilterApi {
78
83
  */
79
84
  getAllColumnFilterForColumn(columnId: string): ColumnFilter[];
80
85
  /**
81
- * Creates new Column Filter on given Column using Primary Key values
82
- * @param columnId ColumnId to use
83
- * @param primarykeyValues Primary Key Values to use
84
- * @returns column filter
86
+ * Creates an Equality Filter based on given Grid Cells
87
+ * @param gridCells cells to create Filter for
88
+ */
89
+ createValuesColumnFilterForCells(gridCells: GridCell[]): ColumnFilter | null;
90
+ /**
91
+ * Creates an Equality Filter based on given Grid Cell
92
+ * @param gridCell cell to create Filter for
85
93
  */
86
- createColumnFilterForCell(columnId: string, primarykeyValues: any[]): ColumnFilter | null;
94
+ createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
87
95
  /**
88
96
  * Retrieves description of given Column Filter
89
97
  * @param columnFilter Column Filter to use
@@ -100,20 +108,4 @@ export interface FilterApi {
100
108
  * @param node Row Node to evaluate
101
109
  */
102
110
  evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
103
- /**
104
- * Makes Quick Filter Bar appear
105
- */
106
- showQuickFilterBar(): void;
107
- /**
108
- * Hides Quick Filter bar
109
- */
110
- hideQuickFilterBar(): void;
111
- /**
112
- * Whether Quick Filter is available for use
113
- */
114
- isQuickFilterAvailable(): boolean;
115
- /**
116
- * Whether Quick Filter Form is currently visible
117
- */
118
- isQuickFilterVisible(): boolean;
119
111
  }
@@ -333,7 +333,7 @@ export interface GridApi {
333
333
  /**
334
334
  * Fires Search Changed Event - typically used to enable server searching and filtering
335
335
  */
336
- fireSearchChangedEvent(searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
336
+ fireSearchChangedEvent(searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort', searchAtDate?: Date): void;
337
337
  /**
338
338
  * Fires Cell Changed Changed Event - when any data in AG Grid's dataset has changed
339
339
  */
@@ -9,7 +9,7 @@ import { ConfigApi } from '../ConfigApi';
9
9
  import { CustomSortApi } from '../CustomSortApi';
10
10
  import { DashboardApi } from '../DashboardApi';
11
11
  import { ToolPanelApi } from '../ToolPanelApi';
12
- import { DataSourceApi } from '../DataSourceApi';
12
+ import { DataSetApi } from '../DataSetApi';
13
13
  import { EventApi } from '../EventApi';
14
14
  import { PluginsApi } from '../PluginsApi';
15
15
  import { ExportApi } from '../ExportApi';
@@ -52,7 +52,7 @@ export declare class AdaptableApiImpl implements AdaptableApi {
52
52
  configApi: ConfigApi;
53
53
  customSortApi: CustomSortApi;
54
54
  dashboardApi: DashboardApi;
55
- dataSourceApi: DataSourceApi;
55
+ dataSetApi: DataSetApi;
56
56
  eventApi: EventApi;
57
57
  exportApi: ExportApi;
58
58
  formatColumnApi: FormatColumnApi;