@adaptabletools/adaptable 12.0.0-canary.3 → 12.0.0-canary.6

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 (441) hide show
  1. package/base.css +26 -0
  2. package/bundle.cjs.js +102 -99
  3. package/index.css +34 -0
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableOptions/ActionOptions.d.ts +181 -1
  8. package/src/AdaptableOptions/AdaptableOptions.d.ts +5 -0
  9. package/src/AdaptableOptions/ColumnOptions.d.ts +4 -0
  10. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +17 -2
  11. package/src/AdaptableOptions/EditOptions.d.ts +7 -80
  12. package/src/AdaptableOptions/FinancePluginOptions.d.ts +3 -3
  13. package/src/AdaptableOptions/LayoutOptions.d.ts +11 -6
  14. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +2 -0
  15. package/src/AdaptableOptions/StateOptions.d.ts +10 -0
  16. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -112
  17. package/src/Api/ActionApi.d.ts +24 -0
  18. package/src/Api/{Events/RowFormSubmitted.js → ActionApi.js} +0 -0
  19. package/src/Api/AdaptableApi.d.ts +5 -0
  20. package/src/Api/ConfigApi.d.ts +1 -1
  21. package/src/Api/EventApi.d.ts +9 -9
  22. package/src/Api/Events/ActionRowSubmitted.d.ts +58 -0
  23. package/src/Api/Events/ActionRowSubmitted.js +2 -0
  24. package/src/Api/GridApi.d.ts +0 -14
  25. package/src/Api/Implementation/ActionApiImpl.d.ts +8 -0
  26. package/src/Api/Implementation/ActionApiImpl.js +56 -0
  27. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
  28. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  29. package/src/Api/Implementation/AlertApiImpl.d.ts +2 -4
  30. package/src/Api/Implementation/AlertApiImpl.js +2 -3
  31. package/src/Api/Implementation/ApiBase.d.ts +13 -1
  32. package/src/Api/Implementation/ApiBase.js +10 -0
  33. package/src/Api/Implementation/ColumnApiImpl.js +2 -2
  34. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -4
  35. package/src/Api/Implementation/ConditionalStyleApiImpl.js +2 -3
  36. package/src/Api/Implementation/ConfigApiImpl.d.ts +1 -1
  37. package/src/Api/Implementation/CustomSortApiImpl.d.ts +2 -4
  38. package/src/Api/Implementation/CustomSortApiImpl.js +2 -3
  39. package/src/Api/Implementation/FlashingCellApiImpl.d.ts +2 -4
  40. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -3
  41. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +2 -4
  42. package/src/Api/Implementation/FormatColumnApiImpl.js +2 -3
  43. package/src/Api/Implementation/GridApiImpl.d.ts +0 -3
  44. package/src/Api/Implementation/GridApiImpl.js +0 -44
  45. package/src/Api/Implementation/InternalApiImpl.d.ts +1 -1
  46. package/src/Api/Implementation/InternalApiImpl.js +5 -4
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +0 -2
  48. package/src/Api/Implementation/LayoutApiImpl.js +0 -6
  49. package/src/Api/Implementation/PlusMinusApiImpl.d.ts +2 -4
  50. package/src/Api/Implementation/PlusMinusApiImpl.js +2 -3
  51. package/src/Api/Implementation/ScheduleApiImpl.d.ts +6 -16
  52. package/src/Api/Implementation/ScheduleApiImpl.js +10 -16
  53. package/src/Api/Implementation/ShortcutApiImpl.d.ts +2 -4
  54. package/src/Api/Implementation/ShortcutApiImpl.js +2 -3
  55. package/src/Api/Implementation/SmartEditApiImpl.d.ts +1 -1
  56. package/src/Api/Implementation/SmartEditApiImpl.js +2 -1
  57. package/src/Api/Implementation/StatusBarApiImpl.d.ts +4 -3
  58. package/src/Api/Implementation/StatusBarApiImpl.js +2 -2
  59. package/src/Api/Implementation/TeamSharingApiImpl.js +2 -1
  60. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -2
  61. package/src/Api/Implementation/UserInterfaceApiImpl.js +0 -4
  62. package/src/Api/InternalApi.d.ts +1 -1
  63. package/src/Api/LayoutApi.d.ts +1 -6
  64. package/src/Api/SmartEditApi.d.ts +1 -1
  65. package/src/Api/StatusBarApi.d.ts +10 -3
  66. package/src/Api/UserInterfaceApi.d.ts +1 -5
  67. package/src/PredefinedConfig/Common/AdaptableAlert.js +4 -2
  68. package/src/PredefinedConfig/Common/AdaptableColumn.js +2 -1
  69. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +1 -1
  70. package/src/PredefinedConfig/Common/AdaptableIcon.d.ts +24 -18
  71. package/src/PredefinedConfig/Common/AdaptablePredicate.d.ts +2 -4
  72. package/src/PredefinedConfig/Common/AdaptablePredicate.js +38 -36
  73. package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -1
  74. package/src/PredefinedConfig/Common/Menu.d.ts +3 -3
  75. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  76. package/src/PredefinedConfig/StatusBarState.d.ts +5 -2
  77. package/src/PredefinedConfig/Uuid.js +2 -1
  78. package/src/Redux/ActionsReducers/AlertRedux.js +16 -8
  79. package/src/Redux/ActionsReducers/ApplicationRedux.js +8 -4
  80. package/src/Redux/ActionsReducers/BulkUpdateRedux.js +6 -3
  81. package/src/Redux/ActionsReducers/CalculatedColumnRedux.js +10 -5
  82. package/src/Redux/ActionsReducers/CellSummaryRedux.js +2 -1
  83. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +14 -7
  84. package/src/Redux/ActionsReducers/CustomSortRedux.js +14 -7
  85. package/src/Redux/ActionsReducers/DashboardRedux.js +24 -12
  86. package/src/Redux/ActionsReducers/ExportRedux.js +16 -8
  87. package/src/Redux/ActionsReducers/FlashingCellRedux.js +16 -8
  88. package/src/Redux/ActionsReducers/FormatColumnRedux.js +14 -7
  89. package/src/Redux/ActionsReducers/FreeTextColumnRedux.js +14 -7
  90. package/src/Redux/ActionsReducers/GridRedux.js +38 -19
  91. package/src/Redux/ActionsReducers/LayoutRedux.js +30 -15
  92. package/src/Redux/ActionsReducers/PluginsRedux.js +4 -2
  93. package/src/Redux/ActionsReducers/PlusMinusRedux.js +16 -8
  94. package/src/Redux/ActionsReducers/PopupRedux.js +37 -19
  95. package/src/Redux/ActionsReducers/QueryRedux.js +12 -6
  96. package/src/Redux/ActionsReducers/QuickSearchRedux.js +8 -4
  97. package/src/Redux/ActionsReducers/ScheduleRedux.js +58 -29
  98. package/src/Redux/ActionsReducers/ShortcutRedux.js +14 -7
  99. package/src/Redux/ActionsReducers/SmartEditRedux.js +6 -3
  100. package/src/Redux/ActionsReducers/StatusBarRedux.js +10 -5
  101. package/src/Redux/ActionsReducers/SystemRedux.js +103 -51
  102. package/src/Redux/ActionsReducers/SystemStatusRedux.js +4 -2
  103. package/src/Redux/ActionsReducers/TeamSharingRedux.js +22 -11
  104. package/src/Redux/ActionsReducers/ThemeRedux.js +10 -5
  105. package/src/Redux/ActionsReducers/ToolPanelRedux.js +16 -8
  106. package/src/Redux/DeadRedux.js +16 -8
  107. package/src/Redux/Store/AdaptableReduxMerger.js +2 -1
  108. package/src/Redux/Store/AdaptableStore.js +7 -2
  109. package/src/Strategy/AlertModule.d.ts +2 -18
  110. package/src/Strategy/AlertModule.js +2 -1
  111. package/src/Strategy/ConditionalStyleModule.d.ts +2 -10
  112. package/src/Strategy/DashboardModule.js +3 -1
  113. package/src/Strategy/DataChangeHistoryModule.d.ts +2 -8
  114. package/src/Strategy/DataSetModule.d.ts +2 -13
  115. package/src/Strategy/ExportModule.d.ts +2 -13
  116. package/src/Strategy/ExportModule.js +1 -1
  117. package/src/Strategy/FilterModule.d.ts +2 -14
  118. package/src/Strategy/FilterModule.js +1 -1
  119. package/src/Strategy/FlashingCellModule.d.ts +2 -9
  120. package/src/Strategy/GridInfoModule.js +6 -2
  121. package/src/Strategy/Interface/IModule.d.ts +2 -1
  122. package/src/Strategy/LayoutModule.d.ts +3 -17
  123. package/src/Strategy/LayoutModule.js +57 -4
  124. package/src/Strategy/PlusMinusModule.d.ts +2 -9
  125. package/src/Strategy/QuickSearchModule.d.ts +2 -7
  126. package/src/Strategy/ScheduleModule.d.ts +2 -13
  127. package/src/Strategy/ShortcutModule.d.ts +2 -9
  128. package/src/Strategy/StatusBarModule.js +2 -2
  129. package/src/Strategy/SystemStatusModule.d.ts +2 -7
  130. package/src/Strategy/ThemeModule.d.ts +2 -8
  131. package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +2 -1
  132. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +2 -1
  133. package/src/Strategy/Utilities/getCustomSortColumnViewItems.js +2 -1
  134. package/src/Strategy/Utilities/getCustomSortSortOrderViewItems.js +2 -1
  135. package/src/Strategy/Utilities/getExportColumnsViewItems.js +2 -1
  136. package/src/Strategy/Utilities/getExportRowsViewItems.js +2 -1
  137. package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
  138. package/src/Strategy/Utilities/getFlashingCellDurationViewItems.js +2 -1
  139. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.d.ts +2 -6
  140. package/src/Strategy/Utilities/getFlashingCellStyleViewItems.js +2 -1
  141. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +2 -1
  142. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +2 -1
  143. package/src/Strategy/Utilities/getFormatColumnStyleViewItems.js +2 -1
  144. package/src/Strategy/Utilities/getObjectTagsViewItems.js +2 -1
  145. package/src/Strategy/Utilities/getRuleViewItems.js +2 -1
  146. package/src/Strategy/Utilities/getScopeViewItems.js +2 -1
  147. package/src/Strategy/Utilities/getShortcutSettingsViewItems.js +2 -1
  148. package/src/Strategy/Utilities/getStyleViewItems.js +2 -1
  149. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  150. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  151. package/src/Utilities/Constants/GeneralConstants.js +2 -1
  152. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +21 -13
  153. package/src/Utilities/ExpressionFunctions/dateUtils.js +2 -1
  154. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +20 -10
  155. package/src/Utilities/Extensions/TypeExtensions.d.ts +30 -0
  156. package/src/Utilities/Helpers/AdaptableHelper.d.ts +1 -3
  157. package/src/Utilities/Helpers/AdaptableHelper.js +6 -16
  158. package/src/Utilities/Helpers/DateHelper.d.ts +27 -0
  159. package/src/Utilities/Helpers/DateHelper.js +43 -6
  160. package/src/Utilities/Helpers/Helper.js +2 -1
  161. package/src/Utilities/Helpers/LoggingHelper.js +2 -1
  162. package/src/Utilities/Helpers/StyleHelper.js +8 -4
  163. package/src/Utilities/MenuItem.d.ts +4 -3
  164. package/src/Utilities/MenuItem.js +9 -3
  165. package/src/Utilities/ObjectFactory.js +1 -0
  166. package/src/Utilities/Services/Interface/IMetamodelService.d.ts +1 -0
  167. package/src/Utilities/Services/Interface/IRowEditService.d.ts +3 -3
  168. package/src/Utilities/Services/MetamodelService.d.ts +7 -1
  169. package/src/Utilities/Services/MetamodelService.js +82 -6
  170. package/src/Utilities/Services/ModuleService.js +3 -1
  171. package/src/Utilities/Services/RowEditService.d.ts +6 -6
  172. package/src/Utilities/Services/RowEditService.js +24 -25
  173. package/src/Utilities/isAdaptableObject.js +2 -1
  174. package/src/Utilities/isMacLike.js +2 -1
  175. package/src/Utilities/license/decode.js +1 -1
  176. package/src/Utilities/reorder.js +2 -1
  177. package/src/Utilities/runIfNotResolvedIn.js +2 -1
  178. package/src/Utilities/waitForCondition.d.ts +1 -1
  179. package/src/Utilities/waitForCondition.js +2 -1
  180. package/src/View/AdaptableContext.js +2 -1
  181. package/src/View/AdaptableView.js +2 -1
  182. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +12 -9
  183. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizardColumnsStep.js +2 -1
  184. package/src/View/AdaptableWizardView/Utils.js +2 -1
  185. package/src/View/AdaptableWizardView/Wizard.js +4 -2
  186. package/src/View/AdaptableWizardView/helper.js +6 -3
  187. package/src/View/Alert/ActiveAlertsPanel.js +2 -1
  188. package/src/View/Alert/AlertEmptyView.js +2 -1
  189. package/src/View/Alert/AlertStatusSubPanel.js +2 -1
  190. package/src/View/Alert/Utilities/getAlertButtonStyle.js +2 -1
  191. package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +4 -2
  192. package/src/View/Alert/Wizard/AlertButtonsEditor.js +2 -1
  193. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +6 -3
  194. package/src/View/Alert/Wizard/AlertRulesWizardSection.js +4 -2
  195. package/src/View/Alert/Wizard/AlertScopeWizardSection.js +2 -1
  196. package/src/View/Alert/Wizard/AlertWizard.js +2 -1
  197. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -1
  198. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +4 -2
  199. package/src/View/Alert/Wizard/isValidAlertRules.js +2 -1
  200. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +1 -1
  201. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.js +2 -1
  202. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +6 -3
  203. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +6 -3
  204. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -1
  205. package/src/View/CellSummary/CellSummaryPopover.js +2 -1
  206. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +2 -1
  207. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -1
  208. package/src/View/ColorPicker.d.ts +5 -1
  209. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  210. package/src/View/Components/AdaptableDateInput/index.js +11 -11
  211. package/src/View/Components/AdaptableInput/index.d.ts +2 -2
  212. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +4 -2
  213. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +4 -2
  214. package/src/View/Components/Buttons/ButtonClone.js +2 -1
  215. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  216. package/src/View/Components/Buttons/ButtonEdit.js +2 -1
  217. package/src/View/Components/Buttons/ButtonNew.js +2 -1
  218. package/src/View/Components/ColumnSelector/index.js +2 -1
  219. package/src/View/Components/EntityRulesEditor/index.js +6 -3
  220. package/src/View/Components/ExpressionWizard.js +2 -1
  221. package/src/View/Components/ExternalRenderer.js +2 -1
  222. package/src/View/Components/FilterForm/FilterForm.js +2 -1
  223. package/src/View/Components/FilterForm/ListBoxFilterForm.js +2 -1
  224. package/src/View/Components/FilterForm/ListBoxMenu.js +2 -2
  225. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -3
  226. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  227. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.js +2 -1
  228. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -2
  229. package/src/View/Components/ListBox/DualListBoxEditor.js +2 -1
  230. package/src/View/Components/ModuleValueSelector/index.js +2 -1
  231. package/src/View/Components/NewScopeComponent.js +6 -3
  232. package/src/View/Components/Panels/PanelFooter.js +2 -1
  233. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -429
  234. package/src/View/Components/Panels/PanelWithImage.js +2 -0
  235. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +2 -1
  236. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupBody.js +2 -1
  237. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -1
  238. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +2 -1
  239. package/src/View/Components/Popups/AdaptablePopup/CustomSettingsPanelView.js +2 -1
  240. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -5
  241. package/src/View/Components/Popups/AdaptablePopup/PopupContext.js +2 -1
  242. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
  243. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +6 -5
  244. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +2 -1
  245. package/src/View/Components/Popups/AdaptablePopupAlert.js +4 -4
  246. package/src/View/Components/Popups/AdaptablePopupPrompt.js +2 -1
  247. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +2 -1
  248. package/src/View/Components/Popups/AdaptableToaster.js +2 -1
  249. package/src/View/Components/Popups/FormPopups/FormPopups.js +4 -2
  250. package/src/View/Components/Popups/Utilities.js +8 -4
  251. package/src/View/Components/Popups/WindowPopups/WindowPopups.js +2 -1
  252. package/src/View/Components/Selectors/ColumnSelector.js +2 -1
  253. package/src/View/Components/TagValueSelector/index.js +4 -2
  254. package/src/View/Components/ToolPanel/AdaptableToolPanel.d.ts +1 -1
  255. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +5 -1
  256. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +2 -1
  257. package/src/View/Components/ToolPanel/ToolPanelPopup.d.ts +1 -1
  258. package/src/View/Components/ToolPanel/ToolPanelPopup.js +1 -1
  259. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +2 -1
  260. package/src/View/Components/WizardSummaryPage.js +2 -1
  261. package/src/View/ConditionalStyle/Wizard/ConditionalStyleScopeWizardSection.js +2 -1
  262. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +4 -2
  263. package/src/View/ConditionalStyle/Wizard/ConditionalStyleStyleWizardSection.js +2 -1
  264. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +2 -1
  265. package/src/View/CustomSort/Wizard/CustomSortColumnWizardSection.js +6 -3
  266. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +6 -3
  267. package/src/View/CustomSort/Wizard/CustomSortWizard.js +2 -1
  268. package/src/View/Dashboard/CustomDashboardButton.js +2 -1
  269. package/src/View/Dashboard/CustomToolbarWrapper.js +2 -1
  270. package/src/View/Dashboard/Dashboard.d.ts +1 -1
  271. package/src/View/Dashboard/Dashboard.js +4 -3
  272. package/src/View/Dashboard/DashboardPopup.js +1 -1
  273. package/src/View/Dashboard/ModuleToolbarWrapper.js +2 -1
  274. package/src/View/DataChangeHistory/DataChangeHistoryGrid.d.ts +7 -0
  275. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +6 -6
  276. package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +2 -1
  277. package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +2 -1
  278. package/src/View/DataChangeHistory/buildActionColumnButton.js +13 -9
  279. package/src/View/DataSet/DataSetSelector.js +2 -1
  280. package/src/View/DataSet/DataSetStatusPanelPopover.js +2 -1
  281. package/src/View/DataSet/DataSetViewPanel.d.ts +1 -1
  282. package/src/View/Export/ExportSelector.js +2 -1
  283. package/src/View/Export/ExportViewPanel.d.ts +1 -1
  284. package/src/View/Export/ReportExportDropdown.js +2 -1
  285. package/src/View/Export/Wizard/NewReportWizard.js +4 -2
  286. package/src/View/Export/Wizard/ReportColumnsWizardSection.js +6 -3
  287. package/src/View/Export/Wizard/ReportNameWizardSection.js +6 -3
  288. package/src/View/Export/Wizard/ReportRowsWizardSection.js +6 -3
  289. package/src/View/Filter/ActiveFiltersPanel.js +2 -1
  290. package/src/View/Filter/FilterStatusBarSubPanelPopover.js +2 -1
  291. package/src/View/Filter/FilterSummary.d.ts +1 -1
  292. package/src/View/Filter/FilterViewPanel.d.ts +1 -1
  293. package/src/View/FlashingCell/FlashingCellStyle.js +2 -1
  294. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +4 -2
  295. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +2 -1
  296. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +10 -5
  297. package/src/View/FlashingCell/Wizard/FlashingCellStyleWizardSection.js +6 -3
  298. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -1
  299. package/src/View/FlashingCell/Wizard/isValidFlashingCellRules.js +2 -1
  300. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +8 -4
  301. package/src/View/FormatColumn/Wizard/FormatColumnScopeWizardSection.js +4 -2
  302. package/src/View/FormatColumn/Wizard/FormatColumnSettingsWizardSection.js +4 -2
  303. package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +4 -2
  304. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +6 -3
  305. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +2 -1
  306. package/src/View/GridInfo/AdaptableObjectsSummary.js +2 -1
  307. package/src/View/GridInfo/AdaptableOptionsComponent.js +2 -1
  308. package/src/View/GridInfo/GridInfoPopup.js +6 -4
  309. package/src/View/KeyHint.js +2 -1
  310. package/src/View/Layout/EditCurrentLayoutButton.js +2 -1
  311. package/src/View/Layout/LayoutCloneButton.js +2 -1
  312. package/src/View/Layout/LayoutEditorStandalonePopup.js +2 -1
  313. package/src/View/Layout/LayoutPopup.d.ts +1 -1
  314. package/src/View/Layout/LayoutRadioSelector.js +2 -1
  315. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +2 -1
  316. package/src/View/Layout/LayoutViewPanel.d.ts +1 -1
  317. package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
  318. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +2 -1
  319. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +2 -1
  320. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +2 -1
  321. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +2 -1
  322. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +2 -1
  323. package/src/View/Layout/Wizard/LayoutEditor/reducer.js +4 -2
  324. package/src/View/Layout/Wizard/LayoutEditor/utils.js +2 -1
  325. package/src/View/License/LicenseWatermark.js +1 -1
  326. package/src/View/PlusMinus/Wizard/PlusMinusScopeWizardSection.js +2 -1
  327. package/src/View/PlusMinus/Wizard/PlusMinusSettingsWizardSection.js +6 -3
  328. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +2 -1
  329. package/src/View/Query/EditCurrentQueryButton.js +2 -1
  330. package/src/View/Query/ExpandedQueryPopup.js +2 -1
  331. package/src/View/Query/QueryViewPanel.d.ts +1 -1
  332. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +6 -3
  333. package/src/View/Query/Wizard/NamedQuerySettingsWizardSection.js +6 -3
  334. package/src/View/QuickSearch/QuickSearchStatusBarContent.js +2 -1
  335. package/src/View/QuickSearch/QuickSearchViewPanel.d.ts +1 -1
  336. package/src/View/QuickSearch/useQuickSearchDebounced.js +2 -1
  337. package/src/View/Schedule/Wizard/ScheduleScheduleSummary.js +2 -1
  338. package/src/View/Schedule/Wizard/ScheduleScheduleWizard.js +4 -2
  339. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsGlue42.js +2 -1
  340. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsIPushPull.js +2 -1
  341. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsOpenFin.js +2 -1
  342. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReminder.js +2 -1
  343. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsReport.js +2 -1
  344. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +4 -2
  345. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsWizard.js +2 -1
  346. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/isSettingsValid.js +2 -1
  347. package/src/View/Schedule/Wizard/ScheduleWizard.js +2 -1
  348. package/src/View/Shortcut/Wizard/ShortcutScopeWizardSection.js +2 -1
  349. package/src/View/Shortcut/Wizard/ShortcutSettingsWizard.js +6 -3
  350. package/src/View/Shortcut/Wizard/ShortcutWizard.js +2 -1
  351. package/src/View/SpecialColumnSettingsWizardStep.js +2 -1
  352. package/src/View/StateManagement/StateManagementPopup.js +2 -1
  353. package/src/View/StateManagement/StateManagementViewPanel.js +2 -1
  354. package/src/View/StateManagement/components/ClearButton.js +2 -1
  355. package/src/View/StateManagement/components/ExportDropdown.js +2 -1
  356. package/src/View/StateManagement/components/LoadButton.js +2 -1
  357. package/src/View/StateManagement/handleExportState.js +2 -1
  358. package/src/View/StatusBar/AdaptableStatusBar.js +2 -1
  359. package/src/View/StatusBar/StatusBarPanel.js +2 -1
  360. package/src/View/StatusBar/StatusBarPopup.js +5 -4
  361. package/src/View/SystemStatus/SystemStatusStatusBarContent.js +2 -1
  362. package/src/View/SystemStatus/SystemStatusViewPanel.d.ts +1 -1
  363. package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +2 -1
  364. package/src/View/Theme/ThemeStatusPanelPopover.js +2 -1
  365. package/src/View/UIHelper.d.ts +2 -0
  366. package/src/View/UIHelper.js +12 -11
  367. package/src/View/Wizard/AdaptableWizard.js +2 -1
  368. package/src/View/Wizard/ObjectTagsWizardSection.js +4 -2
  369. package/src/View/Wizard/OnePageAdaptableWizard.js +10 -5
  370. package/src/View/Wizard/OnePageWizards.js +8 -4
  371. package/src/View/Wizard/useKeyboardNavigation.js +2 -1
  372. package/src/View/renderWithAdaptableContext.js +2 -1
  373. package/src/agGrid/ActionColumnRenderer.d.ts +1 -1
  374. package/src/agGrid/ActionColumnRenderer.js +1 -1
  375. package/src/agGrid/Adaptable.js +31 -28
  376. package/src/agGrid/CheckboxRenderer.js +2 -1
  377. package/src/agGrid/FilterWrapper.js +2 -1
  378. package/src/agGrid/FloatingFilterWrapper.js +2 -1
  379. package/src/agGrid/PercentBarRenderer.js +2 -1
  380. package/src/agGrid/agGridHelper.js +3 -1
  381. package/src/agGrid/agGridMenuHelper.js +13 -10
  382. package/src/agGrid/createAgStatusPanelComponent.js +2 -1
  383. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +8 -5
  384. package/src/components/AdaptableIconComponent/index.d.ts +10 -0
  385. package/src/components/AdaptableIconComponent/index.js +40 -0
  386. package/src/components/CheckBox/index.js +2 -1
  387. package/src/components/CodeBlock/index.js +2 -1
  388. package/src/components/Dashboard/DashboardManager.js +1 -1
  389. package/src/components/Datepicker/DatepickerContext.js +2 -1
  390. package/src/components/Datepicker/index.d.ts +1 -1
  391. package/src/components/DragAndDropContext/ModuleManager.d.ts +1 -0
  392. package/src/components/DragAndDropContext/ModuleManager.js +5 -4
  393. package/src/components/DragAndDropContext/UnusedPanel.d.ts +3 -2
  394. package/src/components/DragAndDropContext/UnusedPanel.js +14 -12
  395. package/src/components/EllipsisContainer/index.js +4 -2
  396. package/src/components/ExpressionEditor/EditorContext.js +2 -1
  397. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +2 -1
  398. package/src/components/ExpressionEditor/NamedQueryContext.js +3 -1
  399. package/src/components/FileDroppable/index.js +2 -1
  400. package/src/components/FormLayout/index.js +2 -1
  401. package/src/components/Input/index.d.ts +1 -1
  402. package/src/components/List/ListGroupItem/index.d.ts +2 -4
  403. package/src/components/Loader/Loader.js +4 -2
  404. package/src/components/Logo/index.js +2 -1
  405. package/src/components/Modal/Backdrop.js +2 -1
  406. package/src/components/Modal/index.js +2 -1
  407. package/src/components/OverlayTrigger/Overlay.js +2 -1
  408. package/src/components/OverlayTrigger/index.js +2 -1
  409. package/src/components/OverlayTrigger/utils.js +6 -3
  410. package/src/components/PopupWithFooter.d.ts +1 -1
  411. package/src/components/ProgressIndicator/ProgressIndicator.js +2 -1
  412. package/src/components/Radio/index.js +4 -2
  413. package/src/components/ResizeObserver/getResizeObserverObject.js +2 -1
  414. package/src/components/ResizeObserver/index.js +6 -3
  415. package/src/components/SelectList.js +2 -1
  416. package/src/components/SelectableList/index.js +2 -1
  417. package/src/components/SimpleButton/index.d.ts +2 -1
  418. package/src/components/SimpleButton/index.js +19 -6
  419. package/src/components/StylePreview.js +2 -1
  420. package/src/components/Tabs/index.js +6 -3
  421. package/src/components/Textarea/index.d.ts +5 -1
  422. package/src/components/ToggleButton/index.js +2 -1
  423. package/src/components/WindowModal/WindowModal.js +2 -1
  424. package/src/components/WindowModal/useStacking.js +2 -1
  425. package/src/components/icons/DefaultIcon.js +2 -1
  426. package/src/components/icons/index.d.ts +3 -1
  427. package/src/components/icons/index.js +10 -2
  428. package/src/components/utils/useContainerScrollObserver/index.js +2 -1
  429. package/src/components/utils/useGlobalEvent.js +2 -1
  430. package/src/components/utils/useLatest.js +2 -1
  431. package/src/components/utils/useRerender.js +2 -1
  432. package/src/components/utils/uuid.js +2 -1
  433. package/src/metamodel/adaptable-metamodel-model.d.ts +1 -1
  434. package/src/metamodel/adaptable.metamodel.d.ts +219 -112
  435. package/src/metamodel/adaptable.metamodel.js +1 -12958
  436. package/src/types.d.ts +8 -5
  437. package/version.d.ts +1 -1
  438. package/version.js +1 -1
  439. package/src/Api/Events/RowFormSubmitted.d.ts +0 -34
  440. package/src/components/ApplicationIcon.d.ts +0 -6
  441. package/src/components/ApplicationIcon.js +0 -13
package/index.css CHANGED
@@ -2452,6 +2452,11 @@ template {
2452
2452
  --ab-cmp-progress-indicator__background: var(--ab-color-primary);
2453
2453
  --ab-cmp-progress-indicator__color: var(--ab-color-text-on-primary); }
2454
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
+
2455
2460
  :root {
2456
2461
  --ab-cmp-wizard__padding: var(--ab-space-5);
2457
2462
  --ab-cmp-wizard__margin: var(--ab-space-1);
@@ -4108,6 +4113,29 @@ button.ab-StatusBar__SubPanel:hover {
4108
4113
  background-color: var(--ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover);
4109
4114
  cursor: pointer; }
4110
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
+
4111
4139
  .ab-alert--error {
4112
4140
  background: var(--ab-color-error); }
4113
4141
 
@@ -4161,6 +4189,12 @@ button.ab-StatusBar__SubPanel:hover {
4161
4189
  .ab-ActionColumn > button.ab-SimpleButton {
4162
4190
  height: 100%; }
4163
4191
 
4192
+ .adaptableRowActionButtons.ag-cell {
4193
+ padding: 0; }
4194
+
4195
+ .adaptableRowActionButtons.ag-cell .ab-ActionColumn {
4196
+ column-gap: 0; }
4197
+
4164
4198
  .Toastify__toast-container {
4165
4199
  border-style: none;
4166
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.3",
3
+ "version": "12.0.0-canary.6",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1654758749447;
1
+ declare const _default: 1655383572755;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1654758749447;
3
+ exports.default = 1655383572755;
@@ -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
  */
@@ -5,10 +5,14 @@ import { Column } from '@ag-grid-community/all-modules';
5
5
  export interface ColumnOptions {
6
6
  /**
7
7
  * Provide an alternative Friendly Name for a Column
8
+ *
9
+ * @defaultValue undefined
8
10
  */
9
11
  columnFriendlyName?: (columnFriendlyNameContext: ColumnFriendlyNameContext) => string | undefined;
10
12
  /**
11
13
  * Optional list of Column Types - used primarily for Special Columns
14
+ *
15
+ * @defaultValue []
12
16
  */
13
17
  columnTypes?: string[];
14
18
  /**
@@ -1,6 +1,12 @@
1
1
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
2
2
  import { ActionColumnContext, AdaptableButton } from '../types';
3
+ /**
4
+ * Built in `undo` data change action
5
+ */
3
6
  export declare type AdaptableDataChangeHistoryAction = 'undo';
7
+ /**
8
+ * The context for the DataChangeHistoryButton
9
+ */
4
10
  export interface DataChangeHistoryContext extends ActionColumnContext {
5
11
  /**
6
12
  * Helper function to undo the change.
@@ -10,9 +16,16 @@ export interface DataChangeHistoryContext extends ActionColumnContext {
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
@@ -34,6 +47,8 @@ export interface DataChangeHistoryOptions {
34
47
  showDataChange?: (cellDataChangedInfo: CellDataChangedInfo) => boolean;
35
48
  /**
36
49
  * Action button definition. Can be used to implement undo functionality.
50
+ *
51
+ * @defaultValue undefined
37
52
  */
38
- actionColumnButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
53
+ changeHistoryButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
39
54
  }
@@ -1,6 +1,4 @@
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';
@@ -10,6 +8,8 @@ import { GridCell } from '../PredefinedConfig/Selection/GridCell';
10
8
  export interface EditOptions {
11
9
  /**
12
10
  * Function to validate on Server Adaptable data edits
11
+ *
12
+ * @defaultValue undefined
13
13
  */
14
14
  validateOnServer?: (cellDataChangedInfo: CellDataChangedInfo) => Promise<ValidationResult>;
15
15
  /**
@@ -21,16 +21,16 @@ export interface EditOptions {
21
21
  displayServerValidationMessages?: boolean;
22
22
  /**
23
23
  * Function which checks if given Grid Cell is editable
24
+ *
25
+ * @defaultValue undefined
24
26
  */
25
27
  isCellEditable?: (gridCell: GridCell) => boolean;
26
28
  /**
27
29
  * Custom Operations to use in Smart Edit
30
+ *
31
+ * @defaultValue undefined
28
32
  */
29
33
  smartEditCustomOperations?: SmartEditCustomOperation[];
30
- /**
31
- * Options for editing (create/update/delete) row entries in the grid.
32
- */
33
- rowFormOptions?: RowFormOptions;
34
34
  }
35
35
  /**
36
36
  * Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
@@ -72,76 +72,3 @@ export interface SmartEditOperationContext extends BaseContext {
72
72
  */
73
73
  currentCell: GridCell;
74
74
  }
75
- /**
76
- * Options for editing (create/update/delete) row entries in the grid
77
- */
78
- export interface RowFormOptions {
79
- /**
80
- * Custom form title provider
81
- *
82
- * @defaultValue 'Create New Row'/'Edit Row'
83
- */
84
- formTitle?: string | ((context: FormParamContext) => string);
85
- /**
86
- * Custom form description provider
87
- *
88
- * @defaultValue undefined
89
- */
90
- formDescription?: string | ((context: FormParamContext) => string);
91
- /**
92
- * Custom form field label provider
93
- *
94
- * @defaultValue undefined
95
- */
96
- formFieldLabel?: (context: FormFieldLabelContext) => string;
97
- /**
98
- * Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'RowFormSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
99
- */
100
- formButtons?: AdaptableButton<RowFormContext>[];
101
- /**
102
- * 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!
103
- *
104
- * @param rowFormSubmittedInfo the form submitted info
105
- * @defaultValue undefined
106
- */
107
- onFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void;
108
- }
109
- /**
110
- * Context passed into a Row Form - can be `CreateRowFormContext` or `EditRowFormContext`
111
- */
112
- export declare type RowFormContext = CreateRowFormContext | EditRowFormContext;
113
- /**
114
- * Context used in a Create Row Form
115
- */
116
- export interface CreateRowFormContext extends FormContext {
117
- /**
118
- * Type of the Context
119
- */
120
- type: Extract<RowFormType, 'rowCreated'>;
121
- /**
122
- * The RowNode being cloned
123
- */
124
- clonedRowNode?: RowNode;
125
- }
126
- /**
127
- * Context used in an Edit Row Form
128
- */
129
- export interface EditRowFormContext extends FormContext {
130
- /**
131
- * Type of the Context
132
- */
133
- type: Extract<RowFormType, 'rowEdited'>;
134
- /**
135
- * The RowNode being edited
136
- */
137
- rowNode: RowNode;
138
- }
139
- export interface FormParamContext extends BaseContext {
140
- type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
141
- rowNode?: RowNode;
142
- }
143
- export interface FormFieldLabelContext extends BaseContext {
144
- type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
145
- column: AdaptableColumn;
146
- rowNode?: RowNode;
147
- }
@@ -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
@@ -67,18 +67,23 @@ export interface LayoutOptions {
67
67
  }
68
68
  export interface LayoutTagOptions {
69
69
  /**
70
- * Automatically generate an Object Tag for each Layout
70
+ * Automatically generate an AdaptableObjectTag for each Layout
71
+ *
72
+ * @defaultValue false
71
73
  */
72
74
  autoGenerateTagsForLayouts?: boolean | ((context: AutoGenerateTagsForLayoutsContext) => AdaptableObjectTag[]);
73
75
  /**
74
- * Checks if the provided Adaptable Object is available in the given Layout
76
+ * Automatically assumes that any `LayoutAssociatedObject` is available in the current Layout if it has a tag with the Layouts name (or no tags at all)
77
+ *
78
+ * @defaultValue false
75
79
  */
76
- isObjectAvailableInLayout?: (context: LayoutAvailableContext) => boolean;
80
+ autoCheckTagsForLayouts?: boolean;
77
81
  /**
78
- * Automatically checks if Adaptable Objects Tags are available in current Layout
79
- * @defaultValue false
82
+ * Checks if the provided Adaptable Object is available in the given Layout
83
+ *
84
+ * @defaultValue undefined
80
85
  */
81
- autoCheckTagsForLayouts?: boolean;
86
+ isObjectAvailableInLayout?: (context: LayoutAvailableContext) => boolean;
82
87
  }
83
88
  /**
84
89
  * Customize how Layouts are displayed in Settings Panel
@@ -29,6 +29,8 @@ export interface SettingsPanelOptions {
29
29
  alwaysShowInToolPanel?: boolean;
30
30
  /**
31
31
  * Ordered items to display at side of Settings Panel
32
+ *
33
+ * @defaultValue all available AdapTable modules
32
34
  */
33
35
  navigation?: {
34
36
  items?: (AdaptableSettingsPanel | string | '-')[];
@@ -5,22 +5,32 @@ import { AdaptableState } from '../PredefinedConfig/AdaptableState';
5
5
  export interface StateOptions {
6
6
  /**
7
7
  * Allows the customization of state persistence
8
+ *
9
+ * @defaultValue persists state to local storage
8
10
  */
9
11
  persistState?: AdaptablePersistStateFunction;
10
12
  /**
11
13
  * Allows the customization of Adaptable State loading
14
+ *
15
+ * @defaultValue loads state from local storage
12
16
  */
13
17
  loadState?: AdaptableLoadStateFunction;
14
18
  /**
15
19
  * Allows the customization of the Adaptable State that is going to be persisted
20
+ *
21
+ * @defaultValue undefined
16
22
  */
17
23
  saveState?: AdaptableSaveStateFunction;
18
24
  /**
19
25
  * Allows hooking into Adaptable State hydration
26
+ *
27
+ * @defaultValue undefined
20
28
  */
21
29
  applyState?: (state: any) => any;
22
30
  /**
23
31
  * Allows clearing of remote Adaptable State
32
+ *
33
+ * @defaultValue undefined
24
34
  */
25
35
  clearState?: AdaptableClearStateFunction;
26
36
  /**
@@ -2,10 +2,9 @@ import { AdaptableIcon } from '../PredefinedConfig/Common/AdaptableIcon';
2
2
  import { DateInputOptions } from './DateInputOptions';
3
3
  import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
4
4
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
5
- import { AdaptableObject, AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
5
+ import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
6
6
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
7
- import { AdaptableButton, BaseContext, GridCell } from '../../types';
8
- import { RowNode } from '@ag-grid-community/all-modules';
7
+ import { BaseContext, GridCell } from '../../types';
9
8
  /**
10
9
  * Options for managing the User Interface of AdapTable
11
10
  */
@@ -93,115 +92,6 @@ export interface UserInterfaceOptions {
93
92
  * Custom Formatters to use in the Format Column Module
94
93
  */
95
94
  customDisplayFormatters?: CustomDisplayFormatter[];
96
- /**
97
- * Options for creating Action Columns and Buttons
98
- */
99
- actionOptions?: ActionOptions;
100
- }
101
- /**
102
- * Options related to Action Columns and Buttons in Adaptable.
103
- */
104
- export interface ActionOptions {
105
- /**
106
- * Columns which contain an AdapTable Button - used for performing Actions
107
- */
108
- actionColumns?: ActionColumn[];
109
- /**
110
- * Action buttons to display for each row.
111
- *
112
- * @defaultValue undefined
113
- */
114
- actionRowButtons?: ('clone' | 'create' | 'edit' | 'delete')[];
115
- /**
116
- * Position of supplied Action Buttons
117
- *
118
- * @defaultValue 'pinnedLeft'
119
- */
120
- actionRowButtonsPosition?: 'pinnedLeft' | 'pinnedRight';
121
- /**
122
- * If set to true, the Action Row Buttons will be handled by AdapTable and the grid data model will be automatically updated with the created/edited/deleted rows
123
- *
124
- * @defaultValue false
125
- */
126
- autoHandleActionRowButtons?: boolean;
127
- /**
128
- * Function which is called when auto-handling the 'create' Action Row Button. The returned row value should have a valid(unique) primary key value.
129
- *
130
- * @defaultValue undefined
131
- */
132
- setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext) => any;
133
- }
134
- /**
135
- * The context for the SetPrimaryKeyValueContext function
136
- */
137
- export interface SetPrimaryKeyValueContext extends BaseContext {
138
- rowData: any;
139
- }
140
- /**
141
- * A Special Column that wraps an AdapTable Button
142
- */
143
- export interface ActionColumn extends AdaptableObject {
144
- /**
145
- * Mandatory 'Id'; if no value set for `FriendlyName`, this will also be Column name
146
- */
147
- columnId: string;
148
- /**
149
- * How Column appears in Column Header, Menus; if no value set, `ColumnId` is used
150
- */
151
- friendlyName?: string;
152
- /**
153
- * Button (or list of buttons) to display in the Column
154
- */
155
- actionColumnButton: AdaptableButton<ActionColumnContext> | AdaptableButton<ActionColumnContext>[];
156
- /**
157
- * Shows Action Column also in grouped rows
158
- */
159
- includeGroupedRows?: boolean;
160
- /**
161
- * Additional optional properties for Column (e.g. filterable, resizable)
162
- */
163
- actionColumnSettings?: ActionColumnSettings;
164
- }
165
- /**
166
- * Context required by functions when using an Action Column Button
167
- */
168
- export interface ActionColumnContext extends BaseContext {
169
- /**
170
- * Action Column in question
171
- */
172
- actionColumn: ActionColumn;
173
- /**
174
- * Primary Key Value in current row
175
- */
176
- primaryKeyValue: any;
177
- /**
178
- * Current AG Grid Row Node
179
- */
180
- rowNode: RowNode;
181
- }
182
- /**
183
- * Set of optional properties that define an Action Columns behaviour
184
- */
185
- export interface ActionColumnSettings {
186
- /**
187
- * Preferred width (in pixels) for Column; if unset, calculated dynamically by AG Grid
188
- */
189
- width?: number;
190
- /**
191
- * Whether Column can be resized (by dragging column header edges)
192
- * @defaultValue true
193
- */
194
- resizable?: boolean;
195
- /**
196
- * Whether no menu should be shown for this Column header.
197
- * @defaultValue false
198
- */
199
- suppressMenu?: boolean;
200
- /**
201
- * Whether if this Column should be movable via dragging
202
- * @defaultValue false
203
- */
204
- suppressMovable?: boolean;
205
95
  }
206
96
  export interface BasePermittedValues {
207
97
  /**