@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,12 +2,12 @@
2
2
  import { AdaptableModuleBase } from './AdaptableModuleBase';
3
3
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
4
4
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
5
- import * as FilterRedux from '../Redux/ActionsReducers/FilterRedux';
5
+ import * as LayoutRedux from '../Redux/ActionsReducers/LayoutRedux';
6
6
  import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
7
- import { ColumnFilter } from '../PredefinedConfig/FilterState';
8
- import { AdaptableObjectView, IModule } from './Interface/IModule';
7
+ import { AdaptableObjectCompactView, AdaptableObjectView, IModule } from './Interface/IModule';
9
8
  import { AdaptableApi } from '../Api/AdaptableApi';
10
9
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
10
+ import { ColumnFilter } from '../types';
11
11
  export declare class FilterModule extends AdaptableModuleBase implements IModule {
12
12
  constructor(api: AdaptableApi);
13
13
  getModuleAdaptableObjects(): AdaptableObject[];
@@ -17,17 +17,13 @@ export declare class FilterModule extends AdaptableModuleBase implements IModule
17
17
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
18
18
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
19
19
  getTeamSharingAction(): TeamSharingImportInfo<ColumnFilter>;
20
- toViewCompact(filter: ColumnFilter): {
21
- item: {
22
- name: string;
23
- values: string[];
24
- };
25
- abObject: ColumnFilter;
26
- };
20
+ toViewCompact(filter: ColumnFilter): AdaptableObjectCompactView;
27
21
  toView(filter: ColumnFilter): AdaptableObjectView;
28
22
  toViewAll(): AdaptableObjectView[];
29
23
  getViewProperties(): {
30
- getDeleteAction: (columnFilter: ColumnFilter) => FilterRedux.ColumnFilterClearAction;
24
+ getDeleteAction: (columnFilter: ColumnFilter) => LayoutRedux.LayoutFilterClearAction;
25
+ getCompactDeleteAction: (columnFilter: ColumnFilter) => LayoutRedux.LayoutFilterClearAction;
26
+ getDeleteAllAction: () => LayoutRedux.LayoutFilterClearAllAction;
31
27
  emptyView: string;
32
28
  getStatusBarPanelProps(): {
33
29
  content: string;
@@ -5,7 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
8
- const FilterRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FilterRedux"));
8
+ const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
9
+ const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
9
10
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
10
11
  const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
11
12
  class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
@@ -13,7 +14,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
14
  super(ModuleConstants.FilterModuleId, 'Filter', 'column-filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
14
15
  }
15
16
  getModuleAdaptableObjects() {
16
- return this.api.filterApi.getAllColumnFilter();
17
+ return this.api.filterApi.getColumnFilters();
17
18
  }
18
19
  getExplicitlyReferencedColumnIds(columnFilter) {
19
20
  return [columnFilter.ColumnId];
@@ -22,7 +23,10 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
23
  return false;
23
24
  }
24
25
  handleAdaptableReady() {
25
- const columnFilters = this.api.filterApi.getAllColumnFilter();
26
+ if (this.api.internalApi.getAdaptableOptions().filterOptions.showQuickFilter == false) {
27
+ this.api.filterApi.hideQuickFilterBar();
28
+ }
29
+ const columnFilters = this.api.filterApi.getColumnFilters();
26
30
  columnFilters.forEach((cf) => {
27
31
  if (!this.api.columnApi.doesColumnExist(cf.ColumnId)) {
28
32
  LoggingHelper_1.LogAdaptableError('Column Filter contains missing column: ' + cf.ColumnId);
@@ -37,14 +41,13 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
37
41
  menuContext.isSingleSelectedColumn &&
38
42
  menuContext.gridCell != null) {
39
43
  let isMultiple = menuContext.selectedCellInfo.gridCells.length > 1;
40
- let pkValues = isMultiple
41
- ? this.api.gridApi.getSelectedCellInfo().gridCells.map((gc) => {
42
- return gc.primaryKeyValue;
43
- })
44
- : [menuContext.gridCell.primaryKeyValue];
45
- let clickFunction = () => {
46
- this.api.filterApi.createColumnFilterForCell(menuContext.adaptableColumn.columnId, pkValues);
47
- };
44
+ let clickFunction = isMultiple
45
+ ? () => {
46
+ this.api.filterApi.createValuesColumnFilterForCells(menuContext.selectedCellInfo.gridCells);
47
+ }
48
+ : () => {
49
+ this.api.filterApi.createEqualityColumnFilterForCell(menuContext.selectedCellInfo.gridCells[0]);
50
+ };
48
51
  menuItemClickFunction = this.createColumnMenuItemClickFunction(isMultiple ? 'Filter on Cell Values' : 'Filter on Cell Value', this.moduleInfo.Glyph, clickFunction);
49
52
  }
50
53
  }
@@ -55,15 +58,17 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
55
58
  if (column && this.api.gridApi.isQuickFilterAvailable()) {
56
59
  const isFilterVisible = this.api.filterApi.isQuickFilterVisible();
57
60
  if (this.isModuleEditable() && this.api.columnApi.usesAdaptableQuickFilter(column.columnId)) {
58
- baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Quick Filter Bar' : 'Show Quick Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible ? FilterRedux.QuickFilterBarHide() : FilterRedux.QuickFilterBarShow()));
61
+ baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Quick Filter Bar' : 'Show Quick Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible
62
+ ? SystemRedux.SystemQuickFilterBarHide()
63
+ : SystemRedux.SystemQuickFilterBarShow()));
59
64
  }
60
65
  }
61
66
  if (column && this.canCreateColumnMenuItem(column, 'ReadOnly', 'filter')) {
62
67
  let existingColumnFilter = this.api.filterApi
63
- .getAllColumnFilter()
68
+ .getColumnFilters()
64
69
  .find((x) => x.ColumnId == column.columnId);
65
70
  if (existingColumnFilter) {
66
- baseMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', this.moduleInfo.Glyph, FilterRedux.ColumnFilterClear(existingColumnFilter)));
71
+ baseMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', this.moduleInfo.Glyph, LayoutRedux.LayoutColumnFilterClear(existingColumnFilter)));
67
72
  }
68
73
  }
69
74
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(baseMenuItems)) {
@@ -72,15 +77,14 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
72
77
  }
73
78
  getTeamSharingAction() {
74
79
  return {
75
- ModuleEntities: this.api.filterApi.getAllColumnFilter(),
76
- AddAction: FilterRedux.ColumnFilterAdd,
77
- EditAction: FilterRedux.ColumnFilterEdit,
80
+ ModuleEntities: this.api.filterApi.getColumnFilters(),
81
+ AddAction: LayoutRedux.LayoutColumnFilterAdd,
82
+ EditAction: LayoutRedux.LayoutColumnFilterEdit,
78
83
  };
79
84
  }
80
85
  toViewCompact(filter) {
81
86
  return {
82
87
  item: {
83
- name: this.api.columnApi.getFriendlyNameFromColumnId(filter.ColumnId),
84
88
  values: [this.api.filterApi.columnFilterToString(filter)],
85
89
  },
86
90
  abObject: filter,
@@ -107,7 +111,9 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
107
111
  getViewProperties() {
108
112
  const api = this.api;
109
113
  return {
110
- getDeleteAction: FilterRedux.ColumnFilterClear,
114
+ getDeleteAction: LayoutRedux.LayoutColumnFilterClear,
115
+ getCompactDeleteAction: LayoutRedux.LayoutColumnFilterClear,
116
+ getDeleteAllAction: LayoutRedux.LayoutColumnFilterClearAll,
111
117
  emptyView: `
112
118
  There are currently no column filters applied. \n
113
119
 
@@ -115,7 +121,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
115
121
  `,
116
122
  getStatusBarPanelProps() {
117
123
  let text;
118
- const filters = api.filterApi.getAllColumnFilter();
124
+ const filters = api.filterApi.getColumnFilters();
119
125
  if (filters.length === 0) {
120
126
  text = '0 Filters';
121
127
  }
@@ -18,7 +18,7 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
18
18
  getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
19
19
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
20
20
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
21
- protected handleDataSourceChanged(cellDataChangedInfo: CellDataChangedInfo): void;
21
+ protected handleCellDataChanged(cellDataChangedInfo: CellDataChangedInfo): void;
22
22
  private showFlashingCellsForDefinitions;
23
23
  private isFlashingTargetOnlyAggChange;
24
24
  private getFlashingCellDefinitionsForDataChange;
@@ -38,7 +38,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
38
  return;
39
39
  }
40
40
  }
41
- this.handleDataSourceChanged(cellDataChangedInfo);
41
+ this.handleCellDataChanged(cellDataChangedInfo);
42
42
  });
43
43
  }
44
44
  getModuleAdaptableObjects(config) {
@@ -104,7 +104,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
104
104
  }
105
105
  return items;
106
106
  }
107
- handleDataSourceChanged(cellDataChangedInfo) {
107
+ handleCellDataChanged(cellDataChangedInfo) {
108
108
  const flashingCellDefinitions = this.getFlashingCellDefinitionsForDataChange(cellDataChangedInfo);
109
109
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingCellDefinitions)) {
110
110
  this.showFlashingCellsForDefinitions(cellDataChangedInfo, flashingCellDefinitions);
@@ -29,7 +29,7 @@ export interface AdaptableObjectItemView {
29
29
  * Should match property in wizard.
30
30
  * Used to Link to wizard edit step.
31
31
  */
32
- name: string;
32
+ name?: string;
33
33
  /**
34
34
  * Custom name for the property name
35
35
  */
@@ -78,8 +78,10 @@ export interface AdaptableModuleView {
78
78
  actions?: AdaptableModuleViewAction[];
79
79
  onOpenEditPopup?: (abObject?: AdaptableObject) => void;
80
80
  getDeleteAction?: (abObject: AdaptableObject) => Redux.Action;
81
+ getCompactDeleteAction?: (abObject: AdaptableObject) => Redux.Action;
81
82
  getSuspendAction?: (abObject: AdaptableObject) => Redux.Action;
82
83
  getUnSuspendAction?: (abObject: AdaptableObject) => Redux.Action;
84
+ getDeleteAllAction?: () => Redux.Action;
83
85
  emptyView?: React.FunctionComponent<{
84
86
  module: IModule;
85
87
  }> | string;
@@ -21,7 +21,28 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  }
22
22
  });
23
23
  }
24
+ /*
25
+ // commenting this out as it doesnt make sense we dont know which filters should be applied to which layout
26
+ // for this we will jsut say they need to reapply them
27
+ updateOldConfig() {
28
+ // @ts-ignore ignore reading deprecated state
29
+ const oldColumnFilters = this.api.filterApi.getFilterState().ColumnFilters;
30
+ if (ArrayExtensions.IsNotNullOrEmpty(oldColumnFilters)) {
31
+ ConsoleLogWarning(
32
+ `DEPRECATED: The 'Filter.ColumnFilters' property is deprecated; use 'Layout.ColumnFilters' instead'!`
33
+ );
34
+
35
+ this.api.internalApi.clearColumnFilterState();
36
+ const currentLayout = this.api.layoutApi.getCurrentLayout();
37
+
38
+ if (ArrayExtensions.IsNullOrEmpty(currentLayout.ColumnFilters)) {
39
+ this.api.layoutApi.setColumnFilter(oldColumnFilters);
40
+ }
41
+ }
42
+ }
43
+ */
24
44
  getModuleAdaptableObjects() {
45
+ // ignore - triggering build
25
46
  return this.api.layoutApi.getAllLayout();
26
47
  }
27
48
  getExplicitlyReferencedColumnIds(layout) {
@@ -152,11 +173,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
152
173
  if (columns.length >
153
174
  maxColumnsToDisplay + 1 /* +1 is to show tag only beginning with 2, 'other 2' */) {
154
175
  const extraColumns = columns.length - maxColumnsToDisplay;
155
- const firstNColumns = columns.slice(0, maxColumnsToDisplay);
176
+ const firstNColumns = columns
177
+ .slice(0, maxColumnsToDisplay)
178
+ .map((column) => columnIdToFriendlyName(column));
156
179
  columns = [...firstNColumns, `and other ${extraColumns}`];
157
180
  }
158
181
  else {
159
- columns = columns.map((column) => this.api.columnApi.getFriendlyNameFromColumnId(column));
182
+ columns = columns.map((column) => columnIdToFriendlyName(column));
160
183
  }
161
184
  return {
162
185
  items: [
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlusMinusModule = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const Enums_1 = require("../PredefinedConfig/Common/Enums");
6
5
  const PlusMinusRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PlusMinusRedux"));
7
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
8
7
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
@@ -91,9 +90,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
91
90
  let failedPreventEdits = [];
92
91
  let side = direction == 'up' ? 1 : -1;
93
92
  cellsToUpdate.forEach((gridCell) => {
94
- if (gridCell.column &&
95
- gridCell.column.dataType == Enums_1.DataType.Number &&
96
- !gridCell.column.readOnly) {
93
+ if (gridCell.column && gridCell.column.dataType == 'Number' && !gridCell.column.readOnly) {
97
94
  let foundRule;
98
95
  let replacementGridCell;
99
96
  plusMinusNudges.forEach((pmr) => {
@@ -23,7 +23,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  let menuItemShowPopup = undefined;
24
24
  if (!menuContext.isRowGroupColumn && this.isModuleEditable()) {
25
25
  if (menuContext.adaptableColumn &&
26
- menuContext.adaptableColumn.dataType == Enums_1.DataType.Number &&
26
+ menuContext.adaptableColumn.dataType == 'Number' &&
27
27
  !menuContext.adaptableColumn.readOnly &&
28
28
  menuContext.isSelectedCell &&
29
29
  menuContext.isSingleSelectedColumn &&
@@ -78,7 +78,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
78
78
  }
79
79
  let column = selectedCellInfo.columns[0];
80
80
  if (column) {
81
- if (column.dataType != Enums_1.DataType.Number) {
81
+ if (column.dataType != 'Number') {
82
82
  return {
83
83
  Alert: {
84
84
  alertType: 'generic',
@@ -128,7 +128,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
128
128
  currentCell: selectedCell,
129
129
  adaptableApi: this.api,
130
130
  };
131
- newValue = smartEditOperation.Operation(context);
131
+ newValue = smartEditOperation.operation(context);
132
132
  }
133
133
  else {
134
134
  switch (smartEditOperation) {
@@ -30,9 +30,7 @@ class StatusBarModule extends AdaptableModuleBase_1.AdaptableModuleBase {
30
30
  this.api.statusBarApi.setStatusPanels(newStatusPanelsState);
31
31
  }
32
32
  isModuleAvailable() {
33
- return false;
34
- // TODO: replace with this like when we release Status Bar properly
35
- // return super.isModuleAvailable() && this.api.statusBarApi.getAgGridStatusPanels().length > 0;
33
+ return super.isModuleAvailable() && this.api.statusBarApi.getAgGridStatusPanels().length > 0;
36
34
  }
37
35
  }
38
36
  exports.StatusBarModule = StatusBarModule;
@@ -49,7 +49,7 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
49
49
  return;
50
50
  }
51
51
  // check if the changed adaptable object is active in TeamSharing
52
- const activeSharedEntity = this.api.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap[changedAdaptableObject.Uuid];
52
+ const activeSharedEntity = this.api.internalApi.getState().TeamSharing.ActiveSharedEntityMap[changedAdaptableObject.Uuid];
53
53
  if (!activeSharedEntity) {
54
54
  return;
55
55
  }
@@ -15,10 +15,7 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
15
  if (!super.isModuleAvailable()) {
16
16
  return false;
17
17
  }
18
- const toolPanelOptions = this.api.internalApi.getAdaptableOptions().toolPanelOptions;
19
- return (toolPanelOptions &&
20
- toolPanelOptions.showAdaptableToolPanel &&
21
- toolPanelOptions.showAdaptableToolPanel == true);
18
+ return this.api.internalApi.getAdaptableInstance().hasAdaptableToolPanel;
22
19
  }
23
20
  updateOldConfig() {
24
21
  const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
@@ -1,6 +1,7 @@
1
1
  import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
2
2
  import { AdaptableTheme } from '../../PredefinedConfig/ThemeState';
3
3
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
4
+ import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
4
5
  export declare const AUTOGENERATED_PK_COLUMN: string;
5
6
  export declare const MISSING_COLUMN: string;
6
7
  export declare const DEFAULT_LAYOUT: string;
@@ -9,6 +10,10 @@ export declare const DARK_THEME: string;
9
10
  export declare const USER_NAME: string;
10
11
  export declare const ADAPTABLE_ID: string;
11
12
  export declare const ADAPTABLE: string;
13
+ export declare const ADAPTABLE_TOOLPANEL_ID: string;
14
+ export declare const ADAPTABLE_TOOLPANEL_COMPONENT: string;
15
+ export declare const AGGRID_TOOLPANEL_FILTERS: string;
16
+ export declare const AGGRID_TOOLPANEL_COLUMNS: string;
12
17
  export declare const MENU_PREFIX: string;
13
18
  export declare const READ_ONLY_STYLE: string;
14
19
  export declare const ALL_COLUMN_VALUES: string;
@@ -17,10 +22,12 @@ export declare const FILTER_NEVER: 'Always' | 'Never' | 'Throttle';
17
22
  export declare const FILTER_THROTTLE: 'Always' | 'Never' | 'Throttle';
18
23
  export declare const EMPTY_STRING: string;
19
24
  export declare const EMPTY_ARRAY: any[];
20
- export declare const AB_SPECIAL_COLUMN = "abSpecialColumn";
25
+ export declare const AB_SPECIAL_COLUMN: AdaptableColumnType;
21
26
  export declare const HALF_SECOND: number;
22
27
  export declare const AG_GRID_GROUPED_COLUMN: string;
23
28
  export declare const AG_GRID_PIVOT_COLUMN: string;
29
+ export declare const ADAPTABLE_ROW_ACTION_BUTTONS = "adaptableRowActionButtons";
30
+ export declare const ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = "(ActionRowButtons)";
24
31
  export declare const SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE: number;
25
32
  export declare const QUICK_SEARCH_DEFAULT_BACK_COLOR: string;
26
33
  export declare const QUICK_SEARCH_DEFAULT_FORE_COLOR: string;
@@ -40,7 +47,6 @@ export declare const ALERT_DEFAULT_SHOW_POPUP: boolean;
40
47
  */
41
48
  export declare const SUMMARY_OPERATION_STATE_PROPERTY: string;
42
49
  export declare const CURRENT_LAYOUT_STATE_PROPERTY: string;
43
- export declare const CURRENT_DATA_SOURCE_STATE_PROPERTY: string;
44
50
  export declare const CURRENT_REPORT_STATE_PROPERTY: string;
45
51
  export declare const FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY: string;
46
52
  export declare const FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
3
+ exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
4
4
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
5
5
  const UIHelper_1 = require("../../View/UIHelper");
6
6
  exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
@@ -11,6 +11,11 @@ exports.DARK_THEME = 'dark';
11
11
  exports.USER_NAME = 'anonymous';
12
12
  exports.ADAPTABLE_ID = 'adaptable_id';
13
13
  exports.ADAPTABLE = 'AdapTable';
14
+ exports.ADAPTABLE_TOOLPANEL_ID = 'adaptable';
15
+ exports.ADAPTABLE_TOOLPANEL_COMPONENT = 'AdaptableToolPanel';
16
+ // from https://www.ag-grid.com/javascript-data-grid/side-bar/#string-configuration
17
+ exports.AGGRID_TOOLPANEL_FILTERS = 'filters';
18
+ exports.AGGRID_TOOLPANEL_COLUMNS = 'columns';
14
19
  exports.MENU_PREFIX = 'ab_';
15
20
  exports.READ_ONLY_STYLE = 'ab_readonly';
16
21
  exports.ALL_COLUMN_VALUES = 'ALL_COLUMN_VALUES';
@@ -23,6 +28,8 @@ exports.AB_SPECIAL_COLUMN = 'abSpecialColumn';
23
28
  exports.HALF_SECOND = 500;
24
29
  exports.AG_GRID_GROUPED_COLUMN = 'ag-Grid-AutoColumn';
25
30
  exports.AG_GRID_PIVOT_COLUMN = 'pivot_';
31
+ exports.ADAPTABLE_ROW_ACTION_BUTTONS = 'adaptableRowActionButtons';
32
+ exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = '(ActionRowButtons)';
26
33
  /*
27
34
  Redux / State Defaults
28
35
  Try to put all our Redux / State defaults here and ONLY reference from here - avoid magic numbers / strings.
@@ -54,7 +61,6 @@ exports.ALERT_DEFAULT_SHOW_POPUP = true;
54
61
  */
55
62
  exports.SUMMARY_OPERATION_STATE_PROPERTY = 'SummaryOperation';
56
63
  exports.CURRENT_LAYOUT_STATE_PROPERTY = 'CurrentLayout';
57
- exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = 'CurrentDataSource';
58
64
  exports.CURRENT_REPORT_STATE_PROPERTY = 'CurrentReport';
59
65
  exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = 'DefaultUpColor';
60
66
  exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = 'DefautDownColor';
@@ -9,7 +9,7 @@ export declare const ConditionalStyleModuleId: ModuleConstants;
9
9
  export declare const CustomSortModuleId: ModuleConstants;
10
10
  export declare const DashboardModuleId: ModuleConstants;
11
11
  export declare const DataChangeHistoryModuleId: ModuleConstants;
12
- export declare const DataSourceModuleId: ModuleConstants;
12
+ export declare const DataSetModuleId: ModuleConstants;
13
13
  export declare const ExportModuleId: ModuleConstants;
14
14
  export declare const FilterModuleId: ModuleConstants;
15
15
  export declare const FormatColumnModuleId: ModuleConstants;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusBarModuleId = exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
3
+ exports.StatusBarModuleId = exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSetModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
4
4
  exports.AlertModuleId = 'Alert';
5
5
  exports.FlashingCellModuleId = 'FlashingCell';
6
6
  exports.BulkUpdateModuleId = 'BulkUpdate';
@@ -11,7 +11,7 @@ exports.ConditionalStyleModuleId = 'ConditionalStyle';
11
11
  exports.CustomSortModuleId = 'CustomSort';
12
12
  exports.DashboardModuleId = 'Dashboard';
13
13
  exports.DataChangeHistoryModuleId = 'DataChangeHistory';
14
- exports.DataSourceModuleId = 'DataSource';
14
+ exports.DataSetModuleId = 'DataSet';
15
15
  exports.ExportModuleId = 'Export';
16
16
  exports.FilterModuleId = 'Filter';
17
17
  exports.FormatColumnModuleId = 'FormatColumn';
@@ -58,6 +58,7 @@ exports.DefaultAdaptableOptions = {
58
58
  adaptableQLOptions: {
59
59
  caseSensitiveTextComparisons: false,
60
60
  externallyEvaluatedModules: [],
61
+ customPredicateDefs: [],
61
62
  expressionOptions: {
62
63
  defaultBooleanFunctions: booleanExpressionFunctions_1.booleanExpressionFunctions,
63
64
  defaultScalarFunctions: scalarExpressionFunctions_1.scalarExpressionFunctions,
@@ -78,6 +79,12 @@ exports.DefaultAdaptableOptions = {
78
79
  systemStatusContainer: undefined,
79
80
  alertContainer: undefined,
80
81
  },
82
+ columnOptions: {
83
+ columnTypes: GeneralConstants_1.EMPTY_ARRAY,
84
+ showMissingColumnsWarning: true,
85
+ autoOrderGroupedColumns: true,
86
+ hideColumnWhenGrouped: false,
87
+ },
81
88
  dashboardOptions: {
82
89
  canFloat: true,
83
90
  showQuickSearchInHeader: true,
@@ -124,10 +131,8 @@ exports.DefaultAdaptableOptions = {
124
131
  generalOptions: {
125
132
  hideEmptyGroupRows: false,
126
133
  showMissingPrimaryKeyAlert: false,
127
- showMissingColumnsWarning: true,
134
+ dataSets: GeneralConstants_1.EMPTY_ARRAY,
128
135
  showGroupingTotalsAsHeader: false,
129
- hideColumnWhenGrouped: false,
130
- autoOrderGroupedColumns: true,
131
136
  alternativeModuleNames: undefined,
132
137
  currentCalendar: 'United Kingdom',
133
138
  cellSummaryOperations: undefined,
@@ -185,6 +190,7 @@ exports.DefaultAdaptableOptions = {
185
190
  enableFilterOnSpecialColumns: true,
186
191
  maxFilterValuesToDisplay: 2000,
187
192
  systemFilters: AdaptablePredicate_1.SystemFilterPredicateIds,
193
+ showQuickFilter: true,
188
194
  },
189
195
  searchOptions: {
190
196
  excludeColumnFromQuickSearch: undefined,
@@ -217,37 +223,33 @@ exports.DefaultAdaptableOptions = {
217
223
  showOutsideDays: true,
218
224
  datepickerButtons: ['close', 'today'],
219
225
  },
226
+ actionOptions: {
227
+ actionColumns: undefined,
228
+ actionRowButtons: undefined,
229
+ actionRowButtonsPosition: 'pinnedLeft',
230
+ autoHandleActionRowButtons: false,
231
+ setPrimaryKeyValue: undefined,
232
+ },
220
233
  colorPalette: UIHelper_1.default.getDefaultColors(),
221
234
  editableCellStyle: undefined,
222
235
  readOnlyCellStyle: undefined,
223
236
  styleClassNames: GeneralConstants_1.EMPTY_ARRAY,
224
- columnTypes: GeneralConstants_1.EMPTY_ARRAY,
225
237
  permittedValues: undefined,
226
238
  editLookUpItems: undefined,
227
- actionColumns: undefined,
239
+ customDisplayFormatters: undefined,
228
240
  showDocumentationLinks: true,
229
241
  gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo'],
230
242
  showAdapTableVersion: true,
231
- rowActionButtons: undefined,
232
- rowActionButtonsPosition: 'pinnedLeft',
233
243
  },
234
244
  toolPanelOptions: {
235
- showAdaptableToolPanel: true,
236
- adaptableToolPanelTitle: GeneralConstants.ADAPTABLE,
237
245
  showToolPanelsDropdown: true,
238
246
  customButtons: undefined,
239
247
  customToolPanels: undefined,
240
- iconKey: 'menu',
241
- width: UIHelper_1.default.getAdaptableToolPanelWidth(),
242
- minWidth: UIHelper_1.default.getAdaptableToolPanelWidth(),
243
- maxWidth: undefined,
244
- toolPanelOrder: ['filters', 'columns', 'adaptable'],
245
248
  },
246
249
  dataChangeHistoryOptions: {
247
250
  activeByDefault: false,
248
251
  showDataChange: undefined,
249
252
  },
250
- customPredicateDefs: [],
251
253
  settingsPanelOptions: {
252
254
  popupType: 'window',
253
255
  title: 'Settings Panel',
@@ -20,7 +20,7 @@ exports.DEFAULT_NAVIGATION_ITEMS = [
20
20
  'CalculatedColumn',
21
21
  'ConditionalStyle',
22
22
  'CustomSort',
23
- 'DataSource',
23
+ 'DataSet',
24
24
  'Export',
25
25
  'Filter',
26
26
  'FlashingCell',
@@ -12,6 +12,7 @@ function assignAdaptableOptions(adaptableOptions) {
12
12
  const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions, adaptableOptions);
13
13
  returnedAdaptableOptions.adaptableStateKey = (_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
14
14
  returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
15
+ returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
15
16
  returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
16
17
  returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
17
18
  returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
@@ -26,6 +27,7 @@ function assignAdaptableOptions(adaptableOptions) {
26
27
  returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
27
28
  returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
28
29
  returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
30
+ returnedAdaptableOptions.userInterfaceOptions.actionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.actionOptions, returnedAdaptableOptions.userInterfaceOptions.actionOptions);
29
31
  returnedAdaptableOptions.userInterfaceOptions.dateInputOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.dateInputOptions, returnedAdaptableOptions.userInterfaceOptions.dateInputOptions);
30
32
  returnedAdaptableOptions.menuOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.menuOptions, adaptableOptions.menuOptions);
31
33
  returnedAdaptableOptions.stateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.stateOptions, adaptableOptions.stateOptions);
@@ -67,7 +69,7 @@ function checkValidPrimaryKey(adaptable) {
67
69
  adaptable.api.alertApi.showAlertError('No Primary Key', errorMessage);
68
70
  }
69
71
  else {
70
- if (adaptable.adaptableOptions.generalOptions.showMissingColumnsWarning == true) {
72
+ if (adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning == true) {
71
73
  LoggingHelper_1.ConsoleLogError(errorMessage);
72
74
  }
73
75
  }
@@ -1,6 +1,5 @@
1
1
  import { ScheduleType } from '../PredefinedConfig/Common/Enums';
2
2
  import { CustomSort } from '../PredefinedConfig/CustomSortState';
3
- import { DataSource } from '../PredefinedConfig/DataSourceState';
4
3
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
5
4
  import { PlusMinusNudge } from '../PredefinedConfig/PlusMinusState';
6
5
  import { AlertDefinition, AlertProperties } from '../PredefinedConfig/AlertState';
@@ -19,17 +18,15 @@ import { IPushPullReport } from '../PredefinedConfig/SystemState';
19
18
  import { IPushPullSchedule } from '../PredefinedConfig/IPushPullState';
20
19
  import { OpenFinSchedule, OpenFinReport } from '../PredefinedConfig/OpenFinState';
21
20
  import { NamedQuery } from '../PredefinedConfig/QueryState';
22
- import { ColumnFilter, SystemFilterPredicateId } from '../PredefinedConfig/FilterState';
23
21
  import { ReminderSchedule } from '../PredefinedConfig/ScheduleState';
24
22
  import { AdaptableCellChangedAlert, AdaptableGenericAlert, AdaptableRowChangedAlert } from '../PredefinedConfig/Common/AdaptableAlert';
25
23
  import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
26
24
  import { SystemStatusMessageInfo } from '../PredefinedConfig/Common/SystemStatusMessageInfo';
27
25
  import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
28
26
  import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
29
- import { FlashingCellDefinition, GridDataChangedInfo } from '../types';
27
+ import { ColumnFilter, FlashingCellDefinition, GridDataChangedInfo, SystemFilterPredicateId } from '../types';
30
28
  import { ToastOptions } from 'react-toastify';
31
29
  export declare function CreateEmptyCustomSort(): CustomSort;
32
- export declare function CreateEmptyDataSource(): DataSource;
33
30
  export declare function CreateEmptyCalculatedColumn(isFilterable: boolean): CalculatedColumn;
34
31
  export declare function CreateEmptyNamedQuery(expression?: string): NamedQuery;
35
32
  export declare function CreateEmptyPlusMinusNudge(): PlusMinusNudge;
@@ -64,12 +61,12 @@ export declare function CreateEmptyStyle(): AdaptableStyle;
64
61
  export declare function CreateSystemStatusMessageInfo(message: string, type: AdaptableMessageType, furtherInfo?: string): SystemStatusMessageInfo;
65
62
  export declare function CreateEmptyCellSummmary(): CellSummmary;
66
63
  export declare function CreateColumnFilter(ColumnId: string, PredicateId: SystemFilterPredicateId, Inputs: any[]): ColumnFilter;
67
- export declare function CreateToastOptions(notificationsOptions: NotificationsOptions, { onClose }?: {
64
+ export declare function CreateToastOptions(notificationsOptions: NotificationsOptions, { onClose, containerId }: {
68
65
  onClose?: VoidFunction;
66
+ containerId: string;
69
67
  }): ToastOptions;
70
68
  export declare const ObjectFactory: {
71
69
  CreateEmptyCustomSort: typeof CreateEmptyCustomSort;
72
- CreateEmptyDataSource: typeof CreateEmptyDataSource;
73
70
  CreateEmptyCalculatedColumn: typeof CreateEmptyCalculatedColumn;
74
71
  CreateEmptyNamedQuery: typeof CreateEmptyNamedQuery;
75
72
  CreateEmptyPlusMinusNudge: typeof CreateEmptyPlusMinusNudge;