@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,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.agGridHelper = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const Enums_1 = require("../PredefinedConfig/Common/Enums");
6
5
  const Uuid_1 = require("../PredefinedConfig/Uuid");
7
6
  const AlertModule_1 = require("../Strategy/AlertModule");
8
7
  const BulkUpdateModule_1 = require("../Strategy/BulkUpdateModule");
@@ -11,7 +10,7 @@ const CellSummaryModule_1 = require("../Strategy/CellSummaryModule");
11
10
  const ConditionalStyleModule_1 = require("../Strategy/ConditionalStyleModule");
12
11
  const CustomSortModule_1 = require("../Strategy/CustomSortModule");
13
12
  const DashboardModule_1 = require("../Strategy/DashboardModule");
14
- const DataSourceModule_1 = require("../Strategy/DataSourceModule");
13
+ const DataSetModule_1 = require("../Strategy/DataSetModule");
15
14
  const ExportModule_1 = require("../Strategy/ExportModule");
16
15
  const FilterModule_1 = require("../Strategy/FilterModule");
17
16
  const FormatColumnModule_1 = require("../Strategy/FormatColumnModule");
@@ -41,6 +40,9 @@ const ChartingModule_1 = require("../Strategy/ChartingModule");
41
40
  const PercentBarRenderer_1 = require("./PercentBarRenderer");
42
41
  const Helper_1 = require("../Utilities/Helpers/Helper");
43
42
  const StatusBarModule_1 = require("../Strategy/StatusBarModule");
43
+ const GeneralConstants = tslib_1.__importStar(require("../Utilities/Constants/GeneralConstants"));
44
+ const UIHelper_1 = tslib_1.__importDefault(require("../View/UIHelper"));
45
+ const GeneralConstants_1 = require("../Utilities/Constants/GeneralConstants");
44
46
  const tinycolor = require('tinycolor2');
45
47
  /**
46
48
  * Adaptable AG Grid implementation is getting really big and unwieldy
@@ -79,7 +81,7 @@ class agGridHelper {
79
81
  modules.set(ModuleConstants.ConditionalStyleModuleId, new ConditionalStyleModule_1.ConditionalStyleModule(api));
80
82
  modules.set(ModuleConstants.CustomSortModuleId, new CustomSortModule_1.CustomSortModule(api));
81
83
  modules.set(ModuleConstants.DataChangeHistoryModuleId, new DataChangeHistoryModule_1.DataChangeHistoryModule(api));
82
- modules.set(ModuleConstants.DataSourceModuleId, new DataSourceModule_1.DataSourceModule(api));
84
+ modules.set(ModuleConstants.DataSetModuleId, new DataSetModule_1.DataSetModule(api));
83
85
  modules.set(ModuleConstants.ExportModuleId, new ExportModule_1.ExportModule(api));
84
86
  modules.set(ModuleConstants.FilterModuleId, new FilterModule_1.FilterModule(api));
85
87
  modules.set(ModuleConstants.FormatColumnModuleId, new FormatColumnModule_1.FormatColumnModule(api));
@@ -155,7 +157,13 @@ class agGridHelper {
155
157
  createAdaptableColumnFromAgGridColumn(agGridColumn, colsToGroups) {
156
158
  const colId = agGridColumn.getColId();
157
159
  const colDef = agGridColumn.getColDef();
158
- const FriendlyName = this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
160
+ const isActionRowButtonColumn = this.adaptable.api.columnApi.isActionRowButtonColumn(colId);
161
+ const columnFriendlyName = this.adaptable.adaptableOptions.columnOptions.columnFriendlyName;
162
+ const customFriendlyName = typeof columnFriendlyName === 'function'
163
+ ? columnFriendlyName({ colId: colId, agColumn: agGridColumn })
164
+ : null;
165
+ const FriendlyName = (customFriendlyName !== null && customFriendlyName !== void 0 ? customFriendlyName : isActionRowButtonColumn) ? GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME
166
+ : this.gridOptions.columnApi.getDisplayNameForColumn(agGridColumn, 'header');
159
167
  if (!this.initialAgGridColDefs[colId]) {
160
168
  this.initialAgGridColDefs[colId] = Object.assign({}, agGridColumn.getUserProvidedColDef());
161
169
  }
@@ -203,55 +211,26 @@ class agGridHelper {
203
211
  }
204
212
  return abColumn;
205
213
  }
206
- createAdaptableSideBarDefs(showFilterPanel, showColumnsPanel) {
207
- const toolPanelDef = [];
208
- if (showFilterPanel) {
209
- const filterToolPanel = {
210
- id: 'filters',
211
- labelDefault: 'Filters',
212
- labelKey: 'filters',
213
- iconKey: 'filter',
214
- toolPanel: 'agFiltersToolPanel',
215
- };
216
- toolPanelDef.push(filterToolPanel);
217
- }
218
- if (showColumnsPanel) {
219
- const columnsToolPanel = {
220
- id: 'columns',
221
- labelDefault: 'Columns',
222
- labelKey: 'columns',
223
- iconKey: 'columns',
224
- toolPanel: 'agColumnsToolPanel',
225
- };
226
- toolPanelDef.push(columnsToolPanel);
227
- }
228
- toolPanelDef.push(this.createAdaptableToolPanel());
229
- this.orderToolPanels(toolPanelDef);
230
- const abSideBarDef = {
231
- toolPanels: toolPanelDef,
232
- defaultToolPanel: '',
233
- };
234
- return abSideBarDef;
235
- }
236
- createAdaptableToolPanel() {
214
+ buildAdaptableToolPanelDef() {
237
215
  return {
238
- id: 'adaptable',
239
- toolPanel: 'AdaptableToolPanel',
240
- labelDefault: this.adaptable.adaptableOptions.toolPanelOptions.adaptableToolPanelTitle,
216
+ id: GeneralConstants.ADAPTABLE_TOOLPANEL_ID,
217
+ toolPanel: GeneralConstants.ADAPTABLE_TOOLPANEL_COMPONENT,
218
+ labelDefault: GeneralConstants.ADAPTABLE,
241
219
  labelKey: 'adaptable',
242
- iconKey: this.adaptable.adaptableOptions.toolPanelOptions.iconKey,
243
- width: this.adaptable.adaptableOptions.toolPanelOptions.width,
244
- minWidth: this.adaptable.adaptableOptions.toolPanelOptions.minWidth,
245
- maxWidth: this.adaptable.adaptableOptions.toolPanelOptions.maxWidth,
220
+ iconKey: 'menu',
221
+ width: UIHelper_1.default.getAdaptableToolPanelWidth(),
222
+ minWidth: UIHelper_1.default.getAdaptableToolPanelWidth(),
246
223
  };
247
224
  }
248
- orderToolPanels(toolPanelDefs) {
249
- const customOrder = this.adaptable.adaptableOptions.toolPanelOptions.toolPanelOrder;
250
- toolPanelDefs.sort(function (left, right) {
251
- const leftOperand = typeof left === 'string' ? left : left.id;
252
- const rightOperand = typeof right === 'string' ? right : right.id;
253
- return customOrder.indexOf(leftOperand) - customOrder.indexOf(rightOperand);
254
- });
225
+ isSideBarDefObject(sidebarDef) {
226
+ var _a;
227
+ return Array.isArray((_a = sidebarDef) === null || _a === void 0 ? void 0 : _a.toolPanels);
228
+ }
229
+ mapToolPanelDefs(toolPanelDefs = []) {
230
+ // if it's an alias for the adaptable tool panel, map it to a ToolPanelDef, otherwise return it as it is
231
+ return toolPanelDefs.map((toolPanelDef) => toolPanelDef === GeneralConstants.ADAPTABLE_TOOLPANEL_ID
232
+ ? this.buildAdaptableToolPanelDef()
233
+ : toolPanelDef);
255
234
  }
256
235
  // This method reselects cells - only IF they are in a single column
257
236
  // Might be able to change that later
@@ -328,6 +307,9 @@ class agGridHelper {
328
307
  if (!colDef) {
329
308
  return false;
330
309
  }
310
+ if (colDef.colId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
311
+ return false;
312
+ }
331
313
  const queryableColumns = this.adaptable.api.queryLanguageApi.getQueryableColumnIds();
332
314
  if (ArrayExtensions_1.ArrayExtensions.IsNull(queryableColumns)) {
333
315
  return true;
@@ -390,12 +372,12 @@ class agGridHelper {
390
372
  // Some columns can have no ID or Title. we return string as a consequence but it needs testing
391
373
  if (!column) {
392
374
  LoggingHelper_1.LogAdaptableWarning('column is undefined returning String for Type');
393
- return Enums_1.DataType.String;
375
+ return 'String';
394
376
  }
395
- let dataType = Enums_1.DataType.Unknown;
377
+ let dataType = 'Unknown';
396
378
  // get the column type if already in store (and not unknown)
397
379
  const existingColumn = this.adaptable.api.columnApi.getColumnFromId(column.getId(), logWarning);
398
- if (existingColumn && existingColumn.dataType != Enums_1.DataType.Unknown) {
380
+ if (existingColumn && existingColumn.dataType != 'Unknown') {
399
381
  return existingColumn.dataType;
400
382
  }
401
383
  // check for column type
@@ -403,58 +385,58 @@ class agGridHelper {
403
385
  if (colType) {
404
386
  if (Array.isArray(colType)) {
405
387
  colType.forEach((c) => {
406
- if (dataType == Enums_1.DataType.Unknown) {
407
- dataType = this.getabColDefValue(c);
388
+ if (dataType == 'Unknown') {
389
+ dataType = this.getAbColDefValue(c);
408
390
  }
409
391
  });
410
392
  }
411
393
  else {
412
- dataType = this.getabColDefValue(colType);
394
+ dataType = this.getAbColDefValue(colType);
413
395
  }
414
- if (dataType != Enums_1.DataType.Unknown) {
396
+ if (dataType != 'Unknown') {
415
397
  return dataType;
416
398
  }
417
399
  }
418
400
  const model = this.gridOptions.api.getModel();
419
401
  if (model == null) {
420
402
  LoggingHelper_1.LogAdaptableWarning(`No model so returning type "Unknown" for Column: "${column.getColId()}"`);
421
- return Enums_1.DataType.Unknown;
403
+ return 'Unknown';
422
404
  }
423
405
  let row = model.getRow(0);
424
406
  if (row == null) {
425
407
  // possible that there will be no data.
426
408
  LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
427
- return Enums_1.DataType.Unknown;
409
+ return 'Unknown';
428
410
  }
429
411
  // if it's a group we need the content of the group
430
412
  if (row.group) {
431
413
  const childNodes = row.childrenAfterGroup;
432
414
  if (ArrayExtensions_1.ArrayExtensions.IsNullOrEmpty(childNodes)) {
433
415
  LoggingHelper_1.LogAdaptableWarning(`No data in grid so returning type "Unknown" for Column: "${column.getColId()}"`);
434
- return Enums_1.DataType.Unknown;
416
+ return 'Unknown';
435
417
  }
436
418
  row = childNodes[0];
437
419
  }
438
420
  const value = this.gridOptions.api.getValue(column, row);
439
421
  if (value instanceof Date) {
440
- dataType = Enums_1.DataType.Date;
422
+ dataType = 'Date';
441
423
  }
442
424
  else if (Array.isArray(value) && value.length && typeof value[0] === 'number') {
443
- dataType = Enums_1.DataType.Unknown;
425
+ dataType = 'Unknown';
444
426
  }
445
427
  else {
446
428
  switch (typeof value) {
447
429
  case 'string':
448
- dataType = Enums_1.DataType.String;
430
+ dataType = 'String';
449
431
  break;
450
432
  case 'number':
451
- dataType = Enums_1.DataType.Number;
433
+ dataType = 'Number';
452
434
  break;
453
435
  case 'boolean':
454
- dataType = Enums_1.DataType.Boolean;
436
+ dataType = 'Boolean';
455
437
  break;
456
438
  case 'object':
457
- dataType = Enums_1.DataType.Object;
439
+ dataType = 'Object';
458
440
  break;
459
441
  default:
460
442
  break;
@@ -463,65 +445,65 @@ class agGridHelper {
463
445
  LoggingHelper_1.LogAdaptableWarning(`No defined type for column '${column.getColId()}'. Defaulting to type of first value: ${dataType}`);
464
446
  return dataType;
465
447
  }
466
- getabColDefValue(colType) {
448
+ getAbColDefValue(colType) {
467
449
  if (colType == 'numericColumn') {
468
- return Enums_1.DataType.Number;
450
+ return 'Number';
469
451
  }
470
452
  if (colType.startsWith('abColDef')) {
471
- switch (colType) {
453
+ const abColType = colType;
454
+ switch (abColType) {
472
455
  case 'abColDefNumber':
473
- return Enums_1.DataType.Number;
456
+ return 'Number';
474
457
  case 'abColDefString':
475
- return Enums_1.DataType.String;
458
+ return 'String';
476
459
  case 'abColDefBoolean':
477
- return Enums_1.DataType.Boolean;
460
+ return 'Boolean';
478
461
  case 'abColDefDate':
479
- return Enums_1.DataType.Date;
462
+ return 'Date';
480
463
  case 'abColDefObject':
481
- return Enums_1.DataType.Object;
464
+ return 'Object';
482
465
  default:
483
- return Enums_1.DataType.Unknown;
466
+ return 'Unknown';
484
467
  }
485
468
  }
486
- return Enums_1.DataType.Unknown;
469
+ return 'Unknown';
487
470
  }
488
471
  getAgGridDataType(dataType) {
489
472
  if (!dataType) {
490
473
  return 'abColDefString';
491
474
  }
492
475
  switch (dataType) {
493
- case Enums_1.DataType.Boolean:
476
+ case 'Boolean':
494
477
  return 'abColDefBoolean';
495
- case Enums_1.DataType.Date:
478
+ case 'Date':
496
479
  return 'abColDefDate';
497
- case Enums_1.DataType.Number:
480
+ case 'Number':
498
481
  return 'abColDefNumber';
499
- case Enums_1.DataType.Object:
482
+ case 'Object':
500
483
  return 'abColDefObject';
501
- case Enums_1.DataType.String:
484
+ case 'String':
502
485
  return 'abColDefString';
503
- case Enums_1.DataType.All:
504
- case Enums_1.DataType.Unknown:
486
+ default:
505
487
  return 'abColDefCustom';
506
488
  }
507
489
  }
508
490
  checkShouldClearExistingFiltersOrSearches() {
509
491
  // if they have selected to clear column filters on startup then do it
510
492
  if (this.adaptable.adaptableOptions.filterOptions.clearFiltersOnStartUp) {
511
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getAllColumnFilter())) {
493
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.filterApi.getColumnFilters())) {
512
494
  LoggingHelper_1.LogAdaptableWarning('Clearing existing Column Filters as "clearFiltersOnStartUp" is true');
513
- this.adaptable.api.filterApi.clearAllColumnFilter();
495
+ this.adaptable.api.filterApi.clearColumnFilters();
514
496
  }
515
497
  }
516
498
  // if they have selected to clear searches on startup then do it
517
499
  if (this.adaptable.adaptableOptions.searchOptions.clearSearchesOnStartUp) {
518
500
  if (StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.quickSearchApi.getQuickSearchState().QuickSearchText) ||
519
501
  StringExtensions_1.StringExtensions.IsNotNullOrEmpty(this.adaptable.api.queryApi.getCurrentQuery()) ||
520
- ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.dataSourceApi.getAllDataSource())) {
502
+ ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(this.adaptable.api.dataSetApi.getAllDataSets())) {
521
503
  LoggingHelper_1.LogAdaptableWarning('Clearing existing Searches as "clearSearchesOnStartUp" is true');
522
504
  this.adaptable.api.quickSearchApi.clearQuickSearch();
523
505
  this.adaptable.api.queryApi.clearCurrentQuery();
524
- this.adaptable.api.dataSourceApi.clearDataSource();
506
+ this.adaptable.api.dataSetApi.clearCurrentDataSet();
525
507
  }
526
508
  }
527
509
  }
@@ -52,6 +52,9 @@ class agGridMenuHelper {
52
52
  }));
53
53
  }
54
54
  buildContextMenu(params, originalgetContextMenuItems) {
55
+ // we do this in order to refresh the internal state of selected cells (technically query the AG Grid cellRanges)
56
+ // (right-click selected the current cell, but this was not reflected in the internal state of the selected cells)
57
+ this.adaptable.setSelectedCells();
55
58
  let agGridContextMenuItems = [];
56
59
  let adaptableContextMenuItems = [];
57
60
  let userContextMenuItems = [];
@@ -240,7 +243,7 @@ class agGridMenuHelper {
240
243
  isSingleSelectedColumn = ArrayExtensions_1.ArrayExtensions.CorrectLength(selectedCellInfo.columns, 1);
241
244
  }
242
245
  }
243
- let selectedRowInfo = this.adaptable.setSelectedRows();
246
+ let selectedRowInfo = this.adaptable.api.gridApi.getSelectedRowInfo();
244
247
  return {
245
248
  isSelectedCell: isSelectedCell,
246
249
  gridCell: clickedCell,
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ export declare const rowAddIcon: JSX.Element;
2
3
  export declare const rowEditIcon: JSX.Element;
3
4
  export declare const rowCloneIcon: JSX.Element;
4
5
  export declare const rowDeleteIcon: JSX.Element;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = void 0;
3
+ exports.rowDeleteIcon = exports.rowCloneIcon = exports.rowEditIcon = exports.rowAddIcon = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const icons_1 = require("../components/icons");
6
6
  const React = tslib_1.__importStar(require("react"));
7
+ exports.rowAddIcon = React.createElement(icons_1.Icon, { name: "add-row" });
7
8
  exports.rowEditIcon = React.createElement(icons_1.Icon, { name: "edit" });
8
9
  exports.rowCloneIcon = React.createElement(icons_1.Icon, { name: "clone" });
9
10
  exports.rowDeleteIcon = React.createElement(icons_1.Icon, { name: "delete" });
@@ -19,14 +19,15 @@ function AdaptableFormComponentButtons({ formDef, onClick, defaultTone, disabled
19
19
  width: 15,
20
20
  },
21
21
  };
22
- const iconProps = button.icon && Object.assign({}, defaultIconProps, button.icon);
22
+ const buttonIcon = api.internalApi.getIconForButton(button, context);
23
+ const iconProps = buttonIcon && Object.assign({}, defaultIconProps, buttonIcon);
23
24
  let buttonStyle = api.internalApi.getStyleForButton(button, context ? context : { adaptableApi: api });
24
25
  let buttonLabel = api.internalApi.getLabelForButton(button, context ? context : { adaptableApi: api });
25
26
  let buttonTooltip = api.internalApi.getTooltipForButton(button, context ? context : { adaptableApi: api });
26
27
  return (React.createElement(SimpleButton_1.default, { autoFocus: focusFirstButton && index === 0, disabled: disabledButtons[index], key: index, tooltip: buttonTooltip, tone: (_a = buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.tone) !== null && _a !== void 0 ? _a : defaultTone, variant: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.variant, "data-text": buttonLabel, className: buttonStyle === null || buttonStyle === void 0 ? void 0 : buttonStyle.className, marginLeft: index ? 2 : 0, onClick: () => {
27
28
  onClick(button);
28
29
  } },
29
- button.icon ? React.createElement("img", Object.assign({}, iconProps)) : null,
30
+ buttonIcon ? React.createElement("img", Object.assign({}, iconProps)) : null,
30
31
  buttonLabel));
31
32
  })));
32
33
  }
@@ -11,8 +11,8 @@ function DashboardToolbar(props) {
11
11
  React.createElement("div", { className: "ab-Dashboard__toolbar-content" }, props.children),
12
12
  React.createElement(rebass_1.Flex, { className: "ab-Dashboard__toolbar-title", flexDirection: "row", alignItems: "center" },
13
13
  React.createElement("span", null, props.title),
14
- props.showConfigure && (React.createElement(SimpleButton_1.default, { icon: "build", variant: "text", tone: "none", "data-name": "configure", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Configure ${props.title}`, onClick: () => props.onConfigure() })),
14
+ props.showConfigure && (React.createElement(SimpleButton_1.default, { icon: "build", variant: "text", tone: "none", "data-name": "configure", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Configure ${props.title} Toolbar`, onClick: () => props.onConfigure() })),
15
15
  ' ',
16
- props.showClose && (React.createElement(SimpleButton_1.default, { style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "clear", variant: "text", tone: "none", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Close ${props.title}`, onClick: () => props.onClose() })))));
16
+ props.showClose && (React.createElement(SimpleButton_1.default, { style: { alignSelf: 'flex-end' }, disabled: props.accessLevel == 'ReadOnly', "data-name": "close", icon: "clear", variant: "text", tone: "none", iconSize: 16, marginLeft: 1, tooltip: props.tooltip || `Close ${props.title} Toolbar`, onClick: () => props.onClose() })))));
17
17
  }
18
18
  exports.DashboardToolbar = DashboardToolbar;
@@ -11,3 +11,4 @@ defaultProps.licenseKey = env_1.default.INFINITE_TABLE_LICENSE_KEY;
11
11
  defaultProps.sortable = false;
12
12
  defaultProps.rowHeight = '--ab-grid-row-height';
13
13
  defaultProps.draggableColumns = false;
14
+ defaultProps.keyboardNavigation = false;
@@ -6,7 +6,7 @@ const InfiniteTable_1 = require("../../../components/InfiniteTable");
6
6
  const join_1 = tslib_1.__importDefault(require("../../utils/join"));
7
7
  const baseClassName = 'ab-GridList';
8
8
  const columnsMap = new Map([
9
- ['item', { field: 'item', header: null, flex: 1 }],
9
+ ['item', { field: 'item', header: null, defaultFlex: 1 }],
10
10
  ]);
11
11
  const GridList = (props) => {
12
12
  var _a;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export interface SelectListOption {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export interface SelectListProps {
7
+ options: SelectListOption[];
8
+ onChange: (option: SelectListOption) => void;
9
+ }
10
+ export declare const SelectList: React.FunctionComponent<SelectListProps>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectList = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const SimpleButton_1 = tslib_1.__importDefault(require("./SimpleButton"));
7
+ exports.SelectList = (props) => {
8
+ return (React.createElement(React.Fragment, null, props.options.map((option) => (React.createElement(SimpleButton_1.default, { p: 2, width: '100%', variant: "text", onClick: () => props.onChange(option), key: option.label }, option.label)))));
9
+ };
@@ -20,6 +20,7 @@ const ensurePortalElement = () => {
20
20
  portalElement.classList.add('ab-cmp-modal-window');
21
21
  document.body.appendChild(portalElement);
22
22
  };
23
+ const normalizeTopLeft = (position) => (position < 0 ? 0 : position);
23
24
  const getResizePositionDelta = (direction, delta) => {
24
25
  const positionDelta = { x: 0, y: 0 };
25
26
  const left = -delta.width;
@@ -41,21 +42,26 @@ const getResizePositionDelta = (direction, delta) => {
41
42
  return null;
42
43
  };
43
44
  exports.WindowModal = (props) => {
45
+ var _a, _b;
44
46
  ensurePortalElement();
45
47
  const positionDeltaRef = React.useRef(null);
46
- const positionRef = React.useRef(props.position);
48
+ const normalizedPosition = {
49
+ x: normalizeTopLeft((_a = props.position) === null || _a === void 0 ? void 0 : _a.x),
50
+ y: normalizeTopLeft((_b = props.position) === null || _b === void 0 ? void 0 : _b.y),
51
+ };
52
+ const positionRef = React.useRef(normalizedPosition);
47
53
  const stacking = useStacking_1.useStacking();
48
54
  /**
49
55
  * This is needed because the function called in onDrop is saved when
50
56
  * it gets attached to the DOM element event handler.
51
57
  * This handler changes only when the underlying node changes.
52
58
  */
53
- positionRef.current = props.position;
59
+ positionRef.current = normalizedPosition;
54
60
  const style = {
55
61
  zIndex: stacking.zIndex,
56
62
  position: 'absolute',
57
- left: props.position.x,
58
- top: props.position.y,
63
+ left: normalizedPosition.x,
64
+ top: normalizedPosition.y,
59
65
  };
60
66
  const handleDrop = (dx, dy) => {
61
67
  const newPosition = {
@@ -72,11 +78,11 @@ exports.WindowModal = (props) => {
72
78
  onDrop: handleDrop,
73
79
  });
74
80
  const handleResizeStop = (event, direction, elementRef, delta) => {
75
- let newPosition = props.position;
81
+ let newPosition = normalizedPosition;
76
82
  if (positionDeltaRef.current) {
77
83
  newPosition = {
78
- x: props.position.x + positionDeltaRef.current.x,
79
- y: props.position.y + positionDeltaRef.current.y,
84
+ x: normalizedPosition.x + positionDeltaRef.current.x,
85
+ y: normalizedPosition.y + positionDeltaRef.current.y,
80
86
  };
81
87
  positionDeltaRef.current = null;
82
88
  applyTransform(0, 0);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const React = tslib_1.__importStar(require("react"));
5
+ const DefaultIcon_1 = tslib_1.__importDefault(require("./DefaultIcon"));
6
+ exports.default = (props) => (React.createElement(DefaultIcon_1.default, Object.assign({}, props),
7
+ React.createElement("path", { d: "M11 18H13V15H16V13H13V10H11V13H8V15H11ZM18 22H6Q5.175 22 4.588 21.413Q4 20.825 4 20V4Q4 3.175 4.588 2.587Q5.175 2 6 2H14L20 8V20Q20 20.825 19.413 21.413Q18.825 22 18 22ZM13 9V4H6Q6 4 6 4Q6 4 6 4V20Q6 20 6 20Q6 20 6 20H18Q18 20 18 20Q18 20 18 20V9ZM6 4V9V4V9V20Q6 20 6 20Q6 20 6 20Q6 20 6 20Q6 20 6 20V4Q6 4 6 4Q6 4 6 4Z" })));
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -56,7 +56,7 @@ const column_filter_1 = tslib_1.__importDefault(require("./column-filter"));
56
56
  const column_info_1 = tslib_1.__importDefault(require("./column-info"));
57
57
  const custom_sort_1 = tslib_1.__importDefault(require("./custom-sort"));
58
58
  const system_status_1 = tslib_1.__importDefault(require("./system-status"));
59
- const data_source_1 = tslib_1.__importDefault(require("./data-source"));
59
+ const data_set_1 = tslib_1.__importDefault(require("./data-set"));
60
60
  const flashing_cell_1 = tslib_1.__importDefault(require("./flashing-cell"));
61
61
  const edit_1 = tslib_1.__importDefault(require("./edit"));
62
62
  const equation_1 = tslib_1.__importDefault(require("./equation"));
@@ -132,6 +132,7 @@ const regex_1 = tslib_1.__importDefault(require("./regex"));
132
132
  const track_changes_1 = tslib_1.__importDefault(require("./track-changes"));
133
133
  const menu_1 = tslib_1.__importDefault(require("./menu"));
134
134
  const statusbar_1 = tslib_1.__importDefault(require("./statusbar"));
135
+ const add_row_1 = tslib_1.__importDefault(require("./add-row"));
135
136
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
136
137
  const quote_1 = tslib_1.__importDefault(require("./quote"));
137
138
  const news_1 = tslib_1.__importDefault(require("./news"));
@@ -153,7 +154,7 @@ const allIcons = {
153
154
  call: call_1.default,
154
155
  instrument: instrument_1.default,
155
156
  news: news_1.default,
156
- 'data-source': data_source_1.default,
157
+ 'data-set': data_set_1.default,
157
158
  export: export_1.default,
158
159
  campaign: campaign_1.default,
159
160
  broadcast: campaign_1.default,
@@ -285,6 +286,7 @@ const allIcons = {
285
286
  'track-changes': track_changes_1.default,
286
287
  menu: menu_1.default,
287
288
  statusbar: statusbar_1.default,
289
+ 'add-row': add_row_1.default,
288
290
  };
289
291
  Object.keys(allIcons).forEach((name) => {
290
292
  const ReactCmp = allIcons[name];