@adaptabletools/adaptable 12.0.0-canary.1 → 12.0.0-canary.4

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 (435) hide show
  1. package/base.css +41 -14
  2. package/bundle.cjs.js +156 -142
  3. package/index.css +49 -14
  4. package/package.json +3 -3
  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/AdaptableOptions/ActionOptions.d.ts +181 -1
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
  10. package/src/AdaptableOptions/AlertOptions.d.ts +5 -9
  11. package/src/AdaptableOptions/DashboardOptions.d.ts +1 -5
  12. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +17 -4
  13. package/src/AdaptableOptions/EditOptions.d.ts +2 -62
  14. package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
  15. package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
  16. package/src/AdaptableOptions/ToolPanelOptions.d.ts +1 -5
  17. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -112
  18. package/src/Api/ActionApi.d.ts +24 -0
  19. package/src/Api/{Events/RowFormSubmitted.js → ActionApi.js} +0 -0
  20. package/src/Api/AdaptableApi.d.ts +5 -0
  21. package/src/Api/AlertApi.d.ts +3 -3
  22. package/src/Api/ConfigApi.d.ts +1 -1
  23. package/src/Api/EventApi.d.ts +9 -9
  24. package/src/Api/Events/ActionRowSubmitted.d.ts +34 -0
  25. package/src/Api/Events/ActionRowSubmitted.js +2 -0
  26. package/src/Api/GridApi.d.ts +0 -14
  27. package/src/Api/Implementation/ActionApiImpl.d.ts +8 -0
  28. package/src/Api/Implementation/ActionApiImpl.js +56 -0
  29. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  30. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  31. package/src/Api/Implementation/AlertApiImpl.d.ts +3 -3
  32. package/src/Api/Implementation/ApiBase.d.ts +2 -1
  33. package/src/Api/Implementation/ApiBase.js +3 -0
  34. package/src/Api/Implementation/ColumnApiImpl.js +2 -2
  35. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  36. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -2
  37. package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
  38. package/src/Api/Implementation/GridApiImpl.js +0 -44
  39. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -3
  40. package/src/Api/Implementation/StatusBarApiImpl.d.ts +4 -3
  41. package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
  42. package/src/Api/Implementation/TeamSharingApiImpl.js +2 -1
  43. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -2
  44. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -4
  45. package/src/Api/StatusBarApi.d.ts +10 -3
  46. package/src/Api/UserInterfaceApi.d.ts +1 -5
  47. package/src/PredefinedConfig/AlertState.d.ts +4 -4
  48. package/src/PredefinedConfig/Common/AdaptableAlert.js +4 -2
  49. package/src/PredefinedConfig/Common/AdaptableColumn.js +2 -1
  50. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +1 -1
  51. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -18
  52. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -4
  53. package/src/PredefinedConfig/Common/AdaptablePredicate.js +33 -31
  54. package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -1
  55. package/src/PredefinedConfig/Common/FormContext.d.ts +3 -0
  56. package/src/PredefinedConfig/Common/Menu.d.ts +3 -3
  57. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  58. package/src/PredefinedConfig/StatusBarState.d.ts +5 -2
  59. package/src/PredefinedConfig/Uuid.js +2 -1
  60. package/src/Redux/ActionsReducers/AlertRedux.js +16 -8
  61. package/src/Redux/ActionsReducers/ApplicationRedux.js +8 -4
  62. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +6 -3
  63. package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +10 -5
  64. package/src/Redux/ActionsReducers/CellSummaryRedux.js +2 -1
  65. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +14 -7
  66. package/src/Redux/ActionsReducers/CustomSortRedux.js +14 -7
  67. package/src/Redux/ActionsReducers/DashboardRedux.js +24 -12
  68. package/src/Redux/ActionsReducers/ExportRedux.js +16 -8
  69. package/src/Redux/ActionsReducers/FlashingCellRedux.js +16 -8
  70. package/src/Redux/ActionsReducers/FormatColumnRedux.js +14 -7
  71. package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +14 -7
  72. package/src/Redux/ActionsReducers/GridRedux.js +38 -19
  73. package/src/Redux/ActionsReducers/LayoutRedux.js +30 -15
  74. package/src/Redux/ActionsReducers/PluginsRedux.js +4 -2
  75. package/src/Redux/ActionsReducers/PlusMinusRedux.js +16 -8
  76. package/src/Redux/ActionsReducers/PopupRedux.js +37 -19
  77. package/src/Redux/ActionsReducers/QueryRedux.js +12 -6
  78. package/src/Redux/ActionsReducers/QuickSearchRedux.js +8 -4
  79. package/src/Redux/ActionsReducers/ScheduleRedux.js +58 -29
  80. package/src/Redux/ActionsReducers/ShortcutRedux.js +14 -7
  81. package/src/Redux/ActionsReducers/SmartEditRedux.js +6 -3
  82. package/src/Redux/ActionsReducers/StatusBarRedux.js +10 -5
  83. package/src/Redux/ActionsReducers/SystemRedux.js +103 -51
  84. package/src/Redux/ActionsReducers/SystemStatusRedux.js +4 -2
  85. package/src/Redux/ActionsReducers/TeamSharingRedux.js +22 -11
  86. package/src/Redux/ActionsReducers/ThemeRedux.js +10 -5
  87. package/src/Redux/ActionsReducers/ToolPanelRedux.js +16 -8
  88. package/src/Redux/DeadRedux.js +16 -8
  89. package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
  90. package/src/Redux/Store/AdaptableStore.js +10 -2
  91. package/src/Strategy/AlertModule.d.ts +2 -18
  92. package/src/Strategy/AlertModule.js +2 -1
  93. package/src/Strategy/ConditionalStyleModule.d.ts +2 -10
  94. package/src/Strategy/DashboardModule.js +3 -1
  95. package/src/Strategy/DataChangeHistoryModule.d.ts +2 -8
  96. package/src/Strategy/DataSetModule.d.ts +2 -13
  97. package/src/Strategy/ExportModule.d.ts +2 -13
  98. package/src/Strategy/ExportModule.js +1 -1
  99. package/src/Strategy/FilterModule.d.ts +2 -14
  100. package/src/Strategy/FilterModule.js +1 -1
  101. package/src/Strategy/FlashingCellModule.d.ts +2 -9
  102. package/src/Strategy/GridInfoModule.js +6 -2
  103. package/src/Strategy/LayoutModule.d.ts +2 -17
  104. package/src/Strategy/LayoutModule.js +6 -3
  105. package/src/Strategy/PlusMinusModule.d.ts +2 -9
  106. package/src/Strategy/QuickSearchModule.d.ts +2 -7
  107. package/src/Strategy/ScheduleModule.d.ts +2 -13
  108. package/src/Strategy/ShortcutModule.d.ts +2 -9
  109. package/src/Strategy/StatusBarModule.js +2 -2
  110. package/src/Strategy/SystemStatusModule.d.ts +2 -7
  111. package/src/Strategy/ThemeModule.d.ts +2 -8
  112. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -1
  113. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +2 -1
  114. package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +2 -1
  115. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +2 -1
  116. package/src/Strategy/Utilities/getExportColumnsViewItems.js +2 -1
  117. package/src/Strategy/Utilities/getExportRowsViewItems.js +2 -1
  118. package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
  119. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +2 -1
  120. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +2 -6
  121. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +2 -1
  122. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +2 -1
  123. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +2 -1
  124. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +2 -1
  125. package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -1
  126. package/src/Strategy/Utilities/getRuleViewItems.js +2 -1
  127. package/src/Strategy/Utilities/getScopeViewItems.js +2 -1
  128. package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +2 -1
  129. package/src/Strategy/Utilities/getStyleViewItems.js +2 -1
  130. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  131. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +13 -13
  132. package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
  133. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
  134. package/src/Utilities/Helpers/AdaptableHelper.js +4 -3
  135. package/src/Utilities/Helpers/DateHelper.js +10 -5
  136. package/src/Utilities/Helpers/Helper.js +2 -1
  137. package/src/Utilities/Helpers/LoggingHelper.js +2 -1
  138. package/src/Utilities/Helpers/StyleHelper.js +8 -4
  139. package/src/Utilities/MenuItem.d.ts +4 -3
  140. package/src/Utilities/MenuItem.js +9 -3
  141. package/src/Utilities/ObjectFactory.js +1 -0
  142. package/src/Utilities/Services/Interface/IRowEditService.d.ts +3 -3
  143. package/src/Utilities/Services/ModuleService.js +3 -1
  144. package/src/Utilities/Services/RowEditService.d.ts +6 -6
  145. package/src/Utilities/Services/RowEditService.js +24 -25
  146. package/src/Utilities/isAdaptableObject.js +2 -1
  147. package/src/Utilities/isMacLike.js +2 -1
  148. package/src/Utilities/license/decode.js +1 -1
  149. package/src/Utilities/reorder.js +2 -1
  150. package/src/Utilities/runIfNotResolvedIn.js +2 -1
  151. package/src/Utilities/waitForCondition.d.ts +1 -1
  152. package/src/Utilities/waitForCondition.js +2 -1
  153. package/src/View/AdaptableContext.js +2 -1
  154. package/src/View/AdaptableView.js +2 -1
  155. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.d.ts +8 -3
  156. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +3 -2
  157. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +9 -2
  158. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.d.ts +30 -0
  159. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +88 -0
  160. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.d.ts +18 -0
  161. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +17 -0
  162. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.d.ts +2 -9
  163. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +2 -75
  164. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.d.ts +3 -1
  165. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/useSelection.js +9 -4
  166. package/src/View/AdaptableWizardView/Utils.d.ts +1 -0
  167. package/src/View/AdaptableWizardView/Utils.js +25 -0
  168. package/src/View/AdaptableWizardView/Wizard.d.ts +54 -0
  169. package/src/View/AdaptableWizardView/Wizard.js +100 -0
  170. package/src/View/AdaptableWizardView/helper.js +6 -3
  171. package/src/View/AdaptableWizardView/index.d.ts +1 -22
  172. package/src/View/AdaptableWizardView/index.js +2 -103
  173. package/src/View/Alert/ActiveAlertsPanel.js +2 -1
  174. package/src/View/Alert/AlertEmptyView.js +2 -1
  175. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  176. package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
  177. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +5 -3
  178. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +3 -3
  179. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
  180. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +8 -5
  181. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
  182. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
  183. package/src/View/Alert/Wizard/AlertWizard.js +2 -1
  184. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -2
  185. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +6 -4
  186. package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
  187. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  188. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
  189. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +7 -4
  190. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +7 -4
  191. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
  192. package/src/View/CellSummary/CellSummaryPopover.js +2 -1
  193. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
  194. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
  195. package/src/View/ColorPicker.d.ts +5 -1
  196. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  197. package/src/View/Components/AdaptableDateInput/index.js +10 -10
  198. package/src/View/Components/AdaptableInput/index.d.ts +2 -2
  199. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -2
  200. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -2
  201. package/src/View/Components/Buttons/ButtonClone.js +2 -1
  202. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  203. package/src/View/Components/Buttons/ButtonEdit.js +2 -1
  204. package/src/View/Components/Buttons/ButtonNew.js +2 -1
  205. package/src/View/Components/ColumnSelector/index.js +2 -1
  206. package/src/View/Components/EntityRulesEditor/index.js +6 -3
  207. package/src/View/Components/ExpressionWizard.js +2 -1
  208. package/src/View/Components/ExternalRenderer.js +2 -1
  209. package/src/View/Components/FilterForm/FilterForm.js +2 -1
  210. package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
  211. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  212. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -3
  213. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  214. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +2 -1
  215. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -2
  216. package/src/View/Components/ListBox/DualListBoxEditor.js +2 -1
  217. package/src/View/Components/ModuleValueSelector/index.js +2 -1
  218. package/src/View/Components/NewScopeComponent.js +6 -3
  219. package/src/View/Components/Panels/PanelFooter.js +2 -1
  220. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -429
  221. package/src/View/Components/Panels/PanelWithImage.js +2 -0
  222. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  223. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -1
  224. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -1
  225. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
  226. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -1
  227. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -5
  228. package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +2 -1
  229. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
  230. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -5
  231. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
  232. package/src/View/Components/Popups/AdaptablePopupAlert.js +4 -4
  233. package/src/View/Components/Popups/AdaptablePopupPrompt.js +2 -1
  234. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -1
  235. package/src/View/Components/Popups/AdaptableToaster.js +2 -1
  236. package/src/View/Components/Popups/FormPopups/FormPopups.js +4 -2
  237. package/src/View/Components/Popups/Utilities.js +8 -4
  238. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -1
  239. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  240. package/src/View/Components/TagValueSelector/index.js +4 -2
  241. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
  242. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -1
  243. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
  244. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
  245. package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
  246. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +2 -1
  247. package/src/View/Components/WizardSummaryPage.js +2 -1
  248. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +1 -1
  249. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +3 -2
  250. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +5 -3
  251. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +3 -2
  252. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
  253. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +8 -5
  254. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +7 -4
  255. package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
  256. package/src/View/Dashboard/CustomDashboardButton.js +2 -1
  257. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  258. package/src/View/Dashboard/Dashboard.d.ts +1 -1
  259. package/src/View/Dashboard/Dashboard.js +4 -3
  260. package/src/View/Dashboard/DashboardPopup.js +1 -1
  261. package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
  262. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
  263. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
  264. package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
  265. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
  266. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +2 -2
  267. package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
  268. package/src/View/DataSet/DataSetSelector.js +2 -1
  269. package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
  270. package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
  271. package/src/View/Export/ExportSelector.js +2 -1
  272. package/src/View/Export/ExportViewPanel.d.ts +1 -1
  273. package/src/View/Export/ReportExportDropdown.js +2 -1
  274. package/src/View/Export/Wizard/NewReportWizard.js +4 -2
  275. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +7 -4
  276. package/src/View/Export/Wizard/ReportNameWizardSection.js +7 -4
  277. package/src/View/Export/Wizard/ReportRowsWizardSection.js +7 -4
  278. package/src/View/Filter/ActiveFiltersPanel.js +2 -1
  279. package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
  280. package/src/View/Filter/FilterSummary.d.ts +1 -1
  281. package/src/View/Filter/FilterViewPanel.d.ts +1 -1
  282. package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
  283. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +6 -4
  284. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +3 -2
  285. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +11 -6
  286. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +7 -4
  287. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
  288. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
  289. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +9 -5
  290. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +5 -3
  291. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +5 -3
  292. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +5 -3
  293. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +7 -4
  294. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
  295. package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
  296. package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
  297. package/src/View/GridInfo/GridInfoPopup.js +5 -5
  298. package/src/View/KeyHint.js +2 -1
  299. package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
  300. package/src/View/Layout/LayoutCloneButton.js +2 -1
  301. package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
  302. package/src/View/Layout/LayoutPopup.d.ts +1 -1
  303. package/src/View/Layout/LayoutRadioSelector.js +2 -1
  304. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
  305. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  306. package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
  307. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
  308. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
  309. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
  310. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
  311. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
  312. package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
  313. package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
  314. package/src/View/License/LicenseWatermark.js +1 -1
  315. package/src/View/PlusMinus/Wizard/PlusMinusRuleWizardSection.js +2 -2
  316. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +3 -2
  317. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +8 -5
  318. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
  319. package/src/View/Query/EditCurrentQueryButton.js +2 -1
  320. package/src/View/Query/ExpandedQueryPopup.js +2 -1
  321. package/src/View/Query/QueryViewPanel.d.ts +1 -1
  322. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +7 -4
  323. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +7 -4
  324. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
  325. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
  326. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
  327. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +3 -2
  328. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +5 -3
  329. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
  330. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
  331. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
  332. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
  333. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
  334. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +5 -3
  335. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +3 -2
  336. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
  337. package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
  338. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +3 -2
  339. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +8 -5
  340. package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
  341. package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
  342. package/src/View/StateManagement/StateManagementPopup.js +2 -1
  343. package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
  344. package/src/View/StateManagement/components/ClearButton.js +2 -1
  345. package/src/View/StateManagement/components/ExportDropdown.js +2 -1
  346. package/src/View/StateManagement/components/LoadButton.js +2 -1
  347. package/src/View/StateManagement/handleExportState.js +2 -1
  348. package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
  349. package/src/View/StatusBar/StatusBarPanel.js +2 -1
  350. package/src/View/StatusBar/StatusBarPopup.js +5 -4
  351. package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
  352. package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
  353. package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
  354. package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
  355. package/src/View/UIHelper.d.ts +2 -0
  356. package/src/View/UIHelper.js +12 -11
  357. package/src/View/Wizard/AdaptableWizard.js +2 -1
  358. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -2
  359. package/src/View/Wizard/ObjectTagsWizardSection.js +5 -3
  360. package/src/View/Wizard/OnePageAdaptableWizard.d.ts +5 -6
  361. package/src/View/Wizard/OnePageAdaptableWizard.js +45 -174
  362. package/src/View/Wizard/OnePageWizards.d.ts +37 -0
  363. package/src/View/Wizard/OnePageWizards.js +191 -0
  364. package/src/View/Wizard/useKeyboardNavigation.d.ts +1 -1
  365. package/src/View/Wizard/useKeyboardNavigation.js +2 -1
  366. package/src/View/renderWithAdaptableContext.js +2 -1
  367. package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
  368. package/src/agGrid/ActionColumnRenderer.js +1 -1
  369. package/src/agGrid/Adaptable.js +28 -26
  370. package/src/agGrid/CheckboxRenderer.js +2 -1
  371. package/src/agGrid/FilterWrapper.js +2 -1
  372. package/src/agGrid/FloatingFilterWrapper.js +2 -1
  373. package/src/agGrid/PercentBarRenderer.js +2 -1
  374. package/src/agGrid/agGridHelper.js +3 -1
  375. package/src/agGrid/agGridMenuHelper.js +13 -10
  376. package/src/agGrid/createAgStatusPanelComponent.js +2 -1
  377. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +8 -5
  378. package/src/components/AdaptableIconComponent/index.d.ts +10 -0
  379. package/src/components/AdaptableIconComponent/index.js +40 -0
  380. package/src/components/CheckBox/index.js +2 -1
  381. package/src/components/CodeBlock/index.js +2 -1
  382. package/src/components/Dashboard/DashboardManager.js +1 -1
  383. package/src/components/Datepicker/Caption.js +1 -1
  384. package/src/components/Datepicker/DatepickerContext.js +2 -1
  385. package/src/components/Datepicker/index.d.ts +1 -1
  386. package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
  387. package/src/components/DragAndDropContext/ModuleManager.js +5 -4
  388. package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
  389. package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
  390. package/src/components/EllipsisContainer/index.js +4 -2
  391. package/src/components/ExpressionEditor/EditorContext.js +2 -1
  392. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
  393. package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
  394. package/src/components/FileDroppable/index.js +2 -1
  395. package/src/components/FormLayout/index.js +2 -1
  396. package/src/components/Input/index.d.ts +1 -1
  397. package/src/components/List/ListGroupItem/index.d.ts +2 -4
  398. package/src/components/Loader/Loader.js +4 -2
  399. package/src/components/Logo/index.js +2 -1
  400. package/src/components/Modal/Backdrop.js +2 -1
  401. package/src/components/Modal/index.js +2 -1
  402. package/src/components/OverlayTrigger/Overlay.js +2 -1
  403. package/src/components/OverlayTrigger/index.js +2 -1
  404. package/src/components/OverlayTrigger/utils.js +6 -3
  405. package/src/components/PopupWithFooter.d.ts +1 -1
  406. package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
  407. package/src/components/Radio/index.js +4 -2
  408. package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
  409. package/src/components/ResizeObserver/index.js +6 -3
  410. package/src/components/SelectList.js +2 -1
  411. package/src/components/SelectableList/index.js +2 -1
  412. package/src/components/SimpleButton/index.d.ts +2 -1
  413. package/src/components/SimpleButton/index.js +19 -6
  414. package/src/components/StylePreview.js +2 -1
  415. package/src/components/Tabs/index.js +6 -3
  416. package/src/components/Textarea/index.d.ts +5 -1
  417. package/src/components/ToggleButton/index.js +2 -1
  418. package/src/components/WindowModal/WindowModal.js +15 -8
  419. package/src/components/WindowModal/useStacking.js +2 -1
  420. package/src/components/icons/DefaultIcon.js +2 -1
  421. package/src/components/icons/index.d.ts +3 -1
  422. package/src/components/icons/index.js +10 -2
  423. package/src/components/utils/useContainerScrollObserver/index.js +2 -1
  424. package/src/components/utils/useGlobalEvent.js +2 -1
  425. package/src/components/utils/useLatest.js +2 -1
  426. package/src/components/utils/useRerender.js +2 -1
  427. package/src/components/utils/uuid.js +2 -1
  428. package/src/metamodel/adaptable.metamodel.d.ts +208 -90
  429. package/src/metamodel/adaptable.metamodel.js +263 -156
  430. package/src/types.d.ts +7 -5
  431. package/version.d.ts +1 -1
  432. package/version.js +1 -1
  433. package/src/Api/Events/RowFormSubmitted.d.ts +0 -19
  434. package/src/components/ApplicationIcon.d.ts +0 -6
  435. package/src/components/ApplicationIcon.js +0 -13
package/index.css CHANGED
@@ -1177,7 +1177,7 @@ template {
1177
1177
  padding: 0 !important;
1178
1178
  overflow: hidden !important;
1179
1179
  clip: rect(1px, 1px, 1px, 1px) !important;
1180
- border: 0 !important
1180
+ border: 0 !important;
1181
1181
  }
1182
1182
 
1183
1183
  /* Buttons */
@@ -1201,22 +1201,23 @@ template {
1201
1201
  border: 2px solid transparent;
1202
1202
  }
1203
1203
 
1204
- .rdp-button[disabled] {
1204
+ .rdp-button[aria-disabled='true'] {
1205
1205
  opacity: 0.25;
1206
+ pointer-events: none;
1206
1207
  }
1207
1208
 
1208
- .rdp-button:not([disabled]) {
1209
+ .rdp-button:not([aria-disabled='true']) {
1209
1210
  cursor: pointer;
1210
1211
  }
1211
1212
 
1212
- .rdp-button:focus:not([disabled]),
1213
- .rdp-button:active:not([disabled]) {
1213
+ .rdp-button:focus,
1214
+ .rdp-button:active {
1214
1215
  color: inherit;
1215
1216
  border: var(--rdp-outline);
1216
1217
  background-color: var(--rdp-background-color);
1217
1218
  }
1218
1219
 
1219
- .rdp-button:hover:not([disabled]) {
1220
+ .rdp-button:hover:not([aria-disabled='true']) {
1220
1221
  background-color: var(--rdp-background-color);
1221
1222
  }
1222
1223
 
@@ -1347,8 +1348,8 @@ template {
1347
1348
  color: unset;
1348
1349
  }
1349
1350
 
1350
- .rdp-dropdown:focus:not([disabled])+.rdp-caption_label,
1351
- .rdp-dropdown:active:not([disabled])+.rdp-caption_label {
1351
+ .rdp-dropdown:focus:not([disabled]) + .rdp-caption_label,
1352
+ .rdp-dropdown:active:not([disabled]) + .rdp-caption_label {
1352
1353
  border: var(--rdp-outline);
1353
1354
  border-radius: 6px;
1354
1355
  background-color: var(--rdp-background-color);
@@ -1382,7 +1383,7 @@ template {
1382
1383
  border: 0;
1383
1384
  }
1384
1385
 
1385
- .rdp-foot {
1386
+ .rdp-tfoot {
1386
1387
  margin: 0.5em;
1387
1388
  }
1388
1389
 
@@ -1417,15 +1418,15 @@ template {
1417
1418
  font-weight: bold;
1418
1419
  }
1419
1420
 
1420
- .rdp-day_selected:not([disabled]),
1421
- .rdp-day_selected:focus:not([disabled]),
1422
- .rdp-day_selected:active:not([disabled]),
1423
- .rdp-day_selected:hover:not([disabled]) {
1421
+ .rdp-day_selected:not([aria-disabled='true']),
1422
+ .rdp-day_selected:focus:not([aria-disabled='true']),
1423
+ .rdp-day_selected:active:not([aria-disabled='true']),
1424
+ .rdp-day_selected:hover:not([aria-disabled='true']) {
1424
1425
  color: white;
1425
1426
  background-color: var(--rdp-accent-color);
1426
1427
  }
1427
1428
 
1428
- .rdp-day_selected:focus:not([disabled]) {
1429
+ .rdp-day_selected:focus:not([aria-disabled='true']) {
1429
1430
  border: var(--rdp-outline-selected);
1430
1431
  }
1431
1432
 
@@ -2451,6 +2452,11 @@ template {
2451
2452
  --ab-cmp-progress-indicator__background: var(--ab-color-primary);
2452
2453
  --ab-cmp-progress-indicator__color: var(--ab-color-text-on-primary); }
2453
2454
 
2455
+ :root {
2456
+ --ab-cmp-icon__fill: var(--ab-icon-fill);
2457
+ --ab-cmp-icon__height: 17px;
2458
+ --ab-cmp-icon__width: 17px; }
2459
+
2454
2460
  :root {
2455
2461
  --ab-cmp-wizard__padding: var(--ab-space-5);
2456
2462
  --ab-cmp-wizard__margin: var(--ab-space-1);
@@ -4107,6 +4113,29 @@ button.ab-StatusBar__SubPanel:hover {
4107
4113
  background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
4108
4114
  cursor: pointer; }
4109
4115
 
4116
+ .ab-StatusBar {
4117
+ display: flex;
4118
+ border-right: var(--ab-cmp-adaptable-statusbar__border);
4119
+ border-left: var(--ab-cmp-adaptable-statusbar__border); }
4120
+
4121
+ .ab-StatusBar__SubPanel {
4122
+ padding: var(--ab-cmp-adaptable-statusbar-sub-panel__padding);
4123
+ border: 0;
4124
+ background: none;
4125
+ font-weight: 400;
4126
+ border-right: var(--ab-cmp-adaptable-statusbar__border); }
4127
+
4128
+ .ab-StatusBar__SubPanel:last-child {
4129
+ border-right: 0; }
4130
+
4131
+ .ab-StatusBar__SubPanel,
4132
+ .ab-StatusBar__SubPanel .ab-SimpleButton {
4133
+ color: var(--ab-cmp-adaptable-statusbar__color); }
4134
+
4135
+ button.ab-StatusBar__SubPanel:hover {
4136
+ background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
4137
+ cursor: pointer; }
4138
+
4110
4139
  .ab-alert--error {
4111
4140
  background: var(--ab-color-error); }
4112
4141
 
@@ -4160,6 +4189,12 @@ button.ab-StatusBar__SubPanel:hover {
4160
4189
  .ab-ActionColumn > button.ab-SimpleButton {
4161
4190
  height: 100%; }
4162
4191
 
4192
+ .adaptableRowActionButtons.ag-cell {
4193
+ padding: 0; }
4194
+
4195
+ .adaptableRowActionButtons.ag-cell .ab-ActionColumn {
4196
+ column-gap: 0; }
4197
+
4163
4198
  .Toastify__toast-container {
4164
4199
  border-style: none;
4165
4200
  border-width: 0px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "12.0.0-canary.1",
3
+ "version": "12.0.0-canary.4",
4
4
  "description": "Powerful data-agnostic HTML5 datagrid add-on that sits on top of an underlying grid component and provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
5
  "keywords": [
6
6
  "web-components",
@@ -31,7 +31,7 @@
31
31
  "main": "agGrid.js",
32
32
  "typings": "types.d.ts",
33
33
  "dependencies": {
34
- "@infinite-table/infinite-react": "0.3.10",
34
+ "@infinite-table/infinite-react": "0.3.12",
35
35
  "date-fns": "2.22.1",
36
36
  "debug": "^4.3.1",
37
37
  "isomorphic-fetch": "^2.2.1",
@@ -41,7 +41,7 @@
41
41
  "re-resizable": "^6.9.1",
42
42
  "react": "^16.8.0 || ^17.0.0",
43
43
  "react-beautiful-dnd": "13.1.0",
44
- "react-day-picker": "8.0.0-beta.38",
44
+ "react-day-picker": "8.0.6",
45
45
  "react-dom": "^16.8.0 || ^17.0.0",
46
46
  "react-redux": "7.2.4",
47
47
  "react-remove-scroll": "2.4.2",
@@ -1,2 +1,2 @@
1
- declare const _default: 1654683345204;
1
+ declare const _default: 1655156262671;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1654683345204;
3
+ exports.default = 1655156262671;
@@ -16,6 +16,7 @@ export interface AdaptableNoCodeWizardOptions {
16
16
  helpText?: React.ReactNode;
17
17
  fileContentsToJSON?: (str: string) => Promise<any> | any;
18
18
  readFile?: (file: File) => Promise<any>;
19
+ skipToWizard?: boolean;
19
20
  loadingMessage?: React.ReactNode;
20
21
  prepareData?: (data: any, file?: File) => {
21
22
  columns: string[];
@@ -1 +1,181 @@
1
- export {};
1
+ import { RowNode } from '@ag-grid-community/all-modules';
2
+ import { ActionRowSubmittedInfo, ActionRowType, AdaptableButton, AdaptableColumn, AdaptableObject, BaseContext, FormContext } from '../types';
3
+ /**
4
+ * Options related to Action Columns and Buttons in Adaptable.
5
+ */
6
+ export interface ActionOptions {
7
+ /**
8
+ * Columns which contain an AdapTable Button - used for performing Actions
9
+ */
10
+ actionColumns?: ActionColumn[];
11
+ /**
12
+ * Action buttons to display for each row.
13
+ *
14
+ * @defaultValue undefined
15
+ */
16
+ actionRowButtons?: ('clone' | 'create' | 'edit' | 'delete')[];
17
+ /**
18
+ * Position of supplied Action Buttons
19
+ *
20
+ * @defaultValue 'pinnedLeft'
21
+ */
22
+ actionRowButtonsPosition?: 'pinnedLeft' | 'pinnedRight';
23
+ /**
24
+ * If set to true, the Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
25
+ *
26
+ * @defaultValue false
27
+ */
28
+ autoHandleActionRowButtons?: boolean;
29
+ /**
30
+ * Function which is called when auto-handling the 'create' Action Row Button. The returned row value should have a valid(unique) primary key value.
31
+ *
32
+ * @defaultValue undefined
33
+ */
34
+ setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
35
+ /**
36
+ * Options for managing the Form which the Action Row displays
37
+ */
38
+ actionRowFormOptions?: ActionRowFormOptions;
39
+ }
40
+ /**
41
+ * The context for the SetPrimaryKeyValueContext function
42
+ */
43
+ export interface SetPrimaryKeyValueContext extends BaseContext {
44
+ rowData: any;
45
+ }
46
+ /**
47
+ * A Special Column that wraps an AdapTable Button
48
+ */
49
+ export interface ActionColumn extends AdaptableObject {
50
+ /**
51
+ * Mandatory 'Id'; if no value set for `FriendlyName`, this will also be Column name
52
+ */
53
+ columnId: string;
54
+ /**
55
+ * How Column appears in Column Header, Menus; if no value set, `ColumnId` is used
56
+ */
57
+ friendlyName?: string;
58
+ /**
59
+ * Button (or list of buttons) to display in the Column
60
+ */
61
+ actionColumnButton: AdaptableButton<ActionColumnContext> | AdaptableButton<ActionColumnContext>[];
62
+ /**
63
+ * Shows Action Column also in grouped rows
64
+ */
65
+ includeGroupedRows?: boolean;
66
+ /**
67
+ * Additional optional properties for Column (e.g. filterable, resizable)
68
+ */
69
+ actionColumnSettings?: ActionColumnSettings;
70
+ }
71
+ /**
72
+ * Context required by functions when using an Action Column Button
73
+ */
74
+ export interface ActionColumnContext extends BaseContext {
75
+ /**
76
+ * Action Column in question
77
+ */
78
+ actionColumn: ActionColumn;
79
+ /**
80
+ * Primary Key Value in current row
81
+ */
82
+ primaryKeyValue: any;
83
+ /**
84
+ * Current AG Grid Row Node
85
+ */
86
+ rowNode: RowNode;
87
+ }
88
+ /**
89
+ * Set of optional properties that define an Action Columns behaviour
90
+ */
91
+ export interface ActionColumnSettings {
92
+ /**
93
+ * Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid
94
+ */
95
+ width?: number;
96
+ /**
97
+ * Whether Column can be resized (by dragging column header edges)
98
+ * @defaultValue true
99
+ */
100
+ resizable?: boolean;
101
+ /**
102
+ * Whether no menu should be shown for this Column header.
103
+ * @defaultValue false
104
+ */
105
+ suppressMenu?: boolean;
106
+ /**
107
+ * Whether if this Column should be movable via dragging
108
+ * @defaultValue false
109
+ */
110
+ suppressMovable?: boolean;
111
+ }
112
+ /**
113
+ * Options for editing (create/update/delete) row entries in the grid
114
+ */
115
+ export interface ActionRowFormOptions {
116
+ /**
117
+ * Custom form title provider
118
+ * @defaultValue 'Create New Row'/'Edit Row'
119
+ */
120
+ formTitle?: string | ((context: ActionRowParamContext) => string);
121
+ /**
122
+ * Custom form description provider
123
+ * @defaultValue undefined
124
+ */
125
+ formDescription?: string | ((context: ActionRowParamContext) => string);
126
+ /**
127
+ * Custom form field label provider
128
+ * @defaultValue undefined
129
+ */
130
+ formFieldLabel?: (context: FormFieldLabelContext) => string;
131
+ /**
132
+ * Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'ActionRowSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
133
+ */
134
+ formButtons?: AdaptableButton<FormContext>[];
135
+ /**
136
+ * Function which is invoked when the form in an Action Row is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!
137
+ *
138
+ * @param actionRowSubmittedInfo the form submitted info
139
+ * @defaultValue undefined
140
+ */
141
+ onFormSubmit?: (actionRowSubmittedInfo: ActionRowSubmittedInfo) => void;
142
+ }
143
+ /**
144
+ * Context passed into a Row Form - can be `CreateActionRowContext` or `EditActionRowContext`
145
+ */
146
+ export declare type ActionRowContext = CreateActionRowContext | EditActionRowContext;
147
+ /**
148
+ * Context used in a Create Row Form
149
+ */
150
+ export interface CreateActionRowContext extends FormContext {
151
+ /**
152
+ * Type of the Context
153
+ */
154
+ type: Extract<ActionRowType, 'rowCreated'>;
155
+ /**
156
+ * The RowNode being cloned
157
+ */
158
+ clonedRowNode?: RowNode;
159
+ }
160
+ /**
161
+ * Context used in an Edit Row Form
162
+ */
163
+ export interface EditActionRowContext extends FormContext {
164
+ /**
165
+ * Type of the Context
166
+ */
167
+ type: Extract<ActionRowType, 'rowEdited'>;
168
+ /**
169
+ * The RowNode being edited
170
+ */
171
+ rowNode: RowNode;
172
+ }
173
+ export interface ActionRowParamContext extends BaseContext {
174
+ type: Extract<ActionRowType, 'rowEdited' | 'rowCreated'>;
175
+ rowNode?: RowNode;
176
+ }
177
+ export interface FormFieldLabelContext extends BaseContext {
178
+ type: Extract<ActionRowType, 'rowEdited' | 'rowCreated'>;
179
+ column: AdaptableColumn;
180
+ rowNode?: RowNode;
181
+ }
@@ -22,6 +22,7 @@ import { FlashingCellOptions } from './FlashingCellOptions';
22
22
  import { AlertOptions } from './AlertOptions';
23
23
  import { AdaptableQLOptions } from './AdaptableQLOptions';
24
24
  import { ColumnOptions } from './ColumnOptions';
25
+ import { ActionOptions } from './ActionOptions';
25
26
  /**
26
27
  * Group of property options enabling developers to set up AdapTable at design time to fit precise requirements - provides AG Grid, Predefined Config and other information required to ensure a full, rich user experience
27
28
  */
@@ -81,6 +82,10 @@ export interface AdaptableOptions {
81
82
  * @gridInfoItem
82
83
  */
83
84
  userName?: string;
85
+ /**
86
+ * Options for managing Action Columns and Action Rows
87
+ */
88
+ actionOptions?: ActionOptions;
84
89
  /**
85
90
  * Options for managing AdapTableQL
86
91
  */
@@ -1,7 +1,7 @@
1
- import { BaseContext } from '../../types';
1
+ import { FormContext } from '../../types';
2
2
  import { AlertButton, AlertDefinition } from '../PredefinedConfig/AlertState';
3
3
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
4
- import { AdaptableForm, AdaptableFormData } from '../PredefinedConfig/Common/AdaptableForm';
4
+ import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
5
5
  import { CellDataChangedInfo } from '../types';
6
6
  /**
7
7
  * Options related to Alerts in Adaptable.
@@ -65,7 +65,7 @@ export declare type ActionHandler = {
65
65
  /**
66
66
  * Handler function to call when the Button is clicked
67
67
  */
68
- handler: (button: AlertButton<AlertButtonContext>, context: AlertButtonContext) => void;
68
+ handler: (button: AlertButton<AlertFormContext>, context: AlertFormContext) => void;
69
69
  };
70
70
  /**
71
71
  * Form to show in an Alert
@@ -78,20 +78,16 @@ export declare type AlertForm = {
78
78
  /**
79
79
  * The Form to display in the Alert
80
80
  */
81
- form: AdaptableForm<AlertButtonContext>;
81
+ form: AdaptableForm<AlertFormContext>;
82
82
  };
83
83
  /**
84
84
  * Context required by functions when using an Alert Button
85
85
  */
86
- export interface AlertButtonContext extends BaseContext {
86
+ export interface AlertFormContext extends FormContext {
87
87
  /**
88
88
  * Alert that has been triggered
89
89
  */
90
90
  alert: AdaptableAlert;
91
- /**
92
- * Data in the Alert Form
93
- */
94
- formData?: AdaptableFormData;
95
91
  }
96
92
  /**
97
93
  * Context used for creating bespoke Alert messages
@@ -80,13 +80,9 @@ export interface DashboardButtonContext extends BaseContext {
80
80
  /**
81
81
  * Context required by functions when using a Custom Toolbar Button
82
82
  */
83
- export interface CustomToolbarButtonContext extends BaseContext {
83
+ export interface CustomToolbarButtonContext extends DashboardButtonContext {
84
84
  /**
85
85
  * Custom Toolbar which hosts the Button
86
86
  */
87
87
  customToolbar: CustomToolbar;
88
- /**
89
- * Current Dashboard State
90
- */
91
- dashboardState: DashboardState;
92
88
  }
@@ -1,7 +1,13 @@
1
1
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
2
- import { ActionColumnButtonContext, AdaptableButton } from '../types';
2
+ import { ActionColumnContext, AdaptableButton } from '../types';
3
+ /**
4
+ * Built in `undo` data change action
5
+ */
3
6
  export declare type AdaptableDataChangeHistoryAction = 'undo';
4
- export interface DataChangeHistoryContext extends ActionColumnButtonContext {
7
+ /**
8
+ * The context for the DataChangeHistoryButton
9
+ */
10
+ export interface DataChangeHistoryContext extends ActionColumnContext {
5
11
  /**
6
12
  * Helper function to undo the change.
7
13
  */
@@ -10,9 +16,16 @@ export interface DataChangeHistoryContext extends ActionColumnButtonContext {
10
16
  * If the change references a group node.
11
17
  */
12
18
  isGroupNode: boolean;
19
+ /**
20
+ * The initial data change
21
+ */
22
+ dataChangedInfo: CellDataChangedInfo;
13
23
  }
24
+ /**
25
+ * A custom AdaptableButton which provides a build in `undo` action
26
+ */
14
27
  export interface DataChangeHistoryButton extends AdaptableButton<DataChangeHistoryContext> {
15
- Action?: AdaptableDataChangeHistoryAction;
28
+ action?: AdaptableDataChangeHistoryAction;
16
29
  }
17
30
  /**
18
31
  * Options to manage the 'Data Change History Module', which provides an overview of all previous changes, giving the possibility to undo specific changes
@@ -35,5 +48,5 @@ export interface DataChangeHistoryOptions {
35
48
  /**
36
49
  * Action button definition. Can be used to implement undo functionality.
37
50
  */
38
- actionColumnButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
51
+ changeHistoryButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
39
52
  }
@@ -1,13 +1,9 @@
1
- import { RowNode } from '@ag-grid-community/all-modules';
2
- import { AdaptableButton, AdaptableColumn, BaseContext, RowFormSubmittedInfo, RowFormType } from '../../types';
3
- import { FormContext } from '../PredefinedConfig/Common/FormContext';
1
+ import { BaseContext } from '../../types';
4
2
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
5
3
  import { MathOperation } from '../PredefinedConfig/Common/Enums';
6
4
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
7
5
  /**
8
- * Options related to Editing in Adaptable.
9
- *
10
- * Allows users to provide Adaptable with Server Validation that works in conjunction with Client (aka Cell) Validation
6
+ * Options related to Editing in Adaptable - includes Server Validation, Smart Edit Operations and Row Forms
11
7
  */
12
8
  export interface EditOptions {
13
9
  /**
@@ -29,10 +25,6 @@ export interface EditOptions {
29
25
  * Custom Operations to use in Smart Edit
30
26
  */
31
27
  smartEditCustomOperations?: SmartEditCustomOperation[];
32
- /**
33
- * Options for editing (create/update/delete) row entries in the grid.
34
- */
35
- rowFormOptions?: RowFormOptions;
36
28
  }
37
29
  /**
38
30
  * Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
@@ -74,55 +66,3 @@ export interface SmartEditOperationContext extends BaseContext {
74
66
  */
75
67
  currentCell: GridCell;
76
68
  }
77
- /**
78
- * Options for editing (create/update/delete) row entries in the grid
79
- */
80
- export interface RowFormOptions {
81
- /**
82
- * Custom form title provider
83
- *
84
- * @defaultValue 'Create New Row'/'Edit Row'
85
- */
86
- formTitle?: string | ((context: FormParamContext) => string);
87
- /**
88
- * Custom form description provider
89
- *
90
- * @defaultValue undefined
91
- */
92
- formDescription?: string | ((context: FormParamContext) => string);
93
- /**
94
- * Custom form field label provider
95
- *
96
- * @defaultValue undefined
97
- */
98
- formFieldLabel?: (context: FormFieldLabelContext) => string;
99
- /**
100
- * Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'RowFormSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
101
- */
102
- formButtons?: AdaptableButton<RowFormContext>[];
103
- /**
104
- * Function which is invoked when a row form is submitted via a standard button (provided by AdapTable). This is not invoked when custom form buttons are provided!
105
- *
106
- * @param rowFormSubmittedInfo the form submitted info
107
- * @defaultValue undefined
108
- */
109
- onFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void;
110
- }
111
- export declare type RowFormContext = CreateRowFormContext | EditRowFormContext;
112
- export interface CreateRowFormContext extends FormContext {
113
- type: Extract<RowFormType, 'rowCreated'>;
114
- clonedRowNode?: RowNode;
115
- }
116
- export interface EditRowFormContext extends FormContext {
117
- type: Extract<RowFormType, 'rowEdited'>;
118
- rowNode: RowNode;
119
- }
120
- export interface FormParamContext extends BaseContext {
121
- type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
122
- rowNode?: RowNode;
123
- }
124
- export interface FormFieldLabelContext extends BaseContext {
125
- type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
126
- column: AdaptableColumn;
127
- rowNode?: RowNode;
128
- }
@@ -1,4 +1,4 @@
1
- import { ContextMenuContext, GridCell } from '../../types';
1
+ import { AdaptableIcon, ContextMenuContext, GridCell } from '../../types';
2
2
  import { CustomFDC3Context } from '../PredefinedConfig/Common/FDC3Context';
3
3
  /**
4
4
  * Options required for when using the Finance plugin
@@ -84,9 +84,9 @@ export interface FDC3Column {
84
84
  */
85
85
  intentContextMenuLabel?: string | ((raiseFDC3IntentContext: RaiseFDC3IntentContext) => string);
86
86
  /**
87
- * Returns the icon to display in the Raise Intent Context Menu Item
87
+ * Returns a custom icon to display in the Raise Intent Context Menu Item;
88
88
  */
89
- getIconForIntent?: (intent: FDC3Intent | CustomFDC3Intent) => any;
89
+ getIconForIntent?: (intent: FDC3Intent | CustomFDC3Intent) => AdaptableIcon;
90
90
  }
91
91
  /**
92
92
  * A Column which will be defined as an FDC3 Instrument
@@ -91,5 +91,12 @@ export interface DataSet extends AdaptableObject {
91
91
  */
92
92
  form?: AdaptableForm<DataSetFormContext>;
93
93
  }
94
+ /**
95
+ * Used when a DataSet displays a Form
96
+ */
94
97
  export interface DataSetFormContext extends FormContext {
98
+ /**
99
+ * The DataSet which triggered the Form
100
+ */
101
+ dataSet: DataSet;
95
102
  }
@@ -57,13 +57,9 @@ export interface ToolPanelButtonContext extends BaseContext {
57
57
  */
58
58
  toolPanelState: ToolPanelState;
59
59
  }
60
- export interface CustomToolPanelButtonContext extends BaseContext {
60
+ export interface CustomToolPanelButtonContext extends ToolPanelButtonContext {
61
61
  /**
62
62
  *The Custom ToolPanel which contains the button
63
63
  */
64
64
  customToolPanel: CustomToolPanel;
65
- /**
66
- * Current ToolPanel State
67
- */
68
- toolPanelState: ToolPanelState;
69
65
  }