@adaptabletools/adaptable 11.2.4 → 12.0.0-canary.1

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 (278) hide show
  1. package/base.css +568 -273
  2. package/bundle.cjs.js +120 -120
  3. package/index.css +642 -270
  4. package/package.json +2 -2
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
  8. package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
  9. package/src/AdaptableOptions/{FormatColumnOptions.js → ActionOptions.js} +0 -0
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -10
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
  13. package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
  14. package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
  15. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ColumnOptions.js} +0 -0
  16. package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
  17. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
  18. package/src/AdaptableOptions/EditOptions.d.ts +91 -4
  19. package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
  20. package/src/AdaptableOptions/ExportOptions.d.ts +9 -8
  21. package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
  22. package/src/AdaptableOptions/GeneralOptions.d.ts +25 -23
  23. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
  24. package/src/AdaptableOptions/{SmartEdit.js → MasterDetailPluginOptions.js} +0 -0
  25. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
  26. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
  27. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +95 -50
  28. package/src/Api/AdaptableApi.d.ts +6 -3
  29. package/src/Api/ColumnApi.d.ts +9 -4
  30. package/src/Api/ConditionalStyleApi.d.ts +10 -0
  31. package/src/Api/ConfigApi.d.ts +0 -12
  32. package/src/Api/DashboardApi.d.ts +6 -19
  33. package/src/Api/DataSetApi.d.ts +40 -0
  34. package/src/Api/{DataSourceApi.js → DataSetApi.js} +0 -0
  35. package/src/Api/EventApi.d.ts +29 -1
  36. package/src/Api/Events/DataSetChanged.d.ts +5 -0
  37. package/src/{PredefinedConfig/DataSourceState.js → Api/Events/DataSetChanged.js} +0 -0
  38. package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
  39. package/src/{PredefinedConfig/FilterState.js → Api/Events/RowFormSubmitted.js} +0 -0
  40. package/src/Api/Events/SearchChanged.d.ts +4 -5
  41. package/src/Api/ExportApi.d.ts +2 -2
  42. package/src/Api/FilterApi.d.ts +28 -36
  43. package/src/Api/FormatColumnApi.d.ts +6 -0
  44. package/src/Api/GridApi.d.ts +15 -1
  45. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  46. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  47. package/src/Api/Implementation/AlertApiImpl.js +5 -1
  48. package/src/Api/Implementation/ApiBase.d.ts +3 -0
  49. package/src/Api/Implementation/ApiBase.js +6 -0
  50. package/src/Api/Implementation/ColumnApiImpl.d.ts +4 -4
  51. package/src/Api/Implementation/ColumnApiImpl.js +17 -16
  52. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
  53. package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
  54. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  55. package/src/Api/Implementation/ConfigApiImpl.js +2 -24
  56. package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
  57. package/src/Api/Implementation/DashboardApiImpl.js +5 -29
  58. package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
  59. package/src/Api/Implementation/DataSetApiImpl.js +42 -0
  60. package/src/Api/Implementation/EventApiImpl.js +1 -0
  61. package/src/Api/Implementation/ExportApiImpl.d.ts +2 -2
  62. package/src/Api/Implementation/FilterApiImpl.d.ts +11 -11
  63. package/src/Api/Implementation/FilterApiImpl.js +59 -72
  64. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +1 -0
  65. package/src/Api/Implementation/FormatColumnApiImpl.js +7 -2
  66. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  67. package/src/Api/Implementation/GridApiImpl.js +45 -1
  68. package/src/Api/Implementation/InternalApiImpl.d.ts +7 -2
  69. package/src/Api/Implementation/InternalApiImpl.js +51 -10
  70. package/src/Api/Implementation/LayoutApiImpl.d.ts +3 -0
  71. package/src/Api/Implementation/LayoutApiImpl.js +20 -0
  72. package/src/Api/Implementation/PredicateApiImpl.d.ts +2 -0
  73. package/src/Api/Implementation/PredicateApiImpl.js +19 -1
  74. package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
  75. package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
  76. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
  77. package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
  78. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  79. package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
  80. package/src/Api/InternalApi.d.ts +6 -2
  81. package/src/Api/LayoutApi.d.ts +16 -0
  82. package/src/Api/PredicateApi.d.ts +7 -0
  83. package/src/Api/SmartEditApi.d.ts +14 -3
  84. package/src/Api/TeamSharingApi.d.ts +18 -5
  85. package/src/Api/UserInterfaceApi.d.ts +4 -4
  86. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  87. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
  88. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
  89. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
  90. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
  91. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +1 -3
  92. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
  93. package/src/PredefinedConfig/Common/AdaptablePredicate.js +18 -1
  94. package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
  95. package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
  96. package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
  97. package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
  98. package/src/PredefinedConfig/Common/Enums.js +1 -1
  99. package/src/PredefinedConfig/Common/FormContext.d.ts +8 -0
  100. package/src/PredefinedConfig/Common/FormContext.js +2 -0
  101. package/src/PredefinedConfig/Common/Types.d.ts +6 -5
  102. package/src/PredefinedConfig/Common/Types.js +2 -3
  103. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  104. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  105. package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
  106. package/src/PredefinedConfig/SystemState.d.ts +4 -2
  107. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
  108. package/src/Redux/ActionsReducers/LayoutRedux.js +134 -1
  109. package/src/Redux/ActionsReducers/PopupRedux.d.ts +3 -2
  110. package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
  111. package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
  112. package/src/Redux/Store/AdaptableStore.js +37 -39
  113. package/src/Strategy/AdaptableModuleBase.js +1 -2
  114. package/src/Strategy/AlertModule.d.ts +11 -0
  115. package/src/Strategy/AlertModule.js +14 -0
  116. package/src/Strategy/BulkUpdateModule.js +3 -4
  117. package/src/Strategy/CellSummaryModule.d.ts +3 -0
  118. package/src/Strategy/CellSummaryModule.js +29 -16
  119. package/src/Strategy/DataSetModule.d.ts +25 -0
  120. package/src/Strategy/DataSetModule.js +65 -0
  121. package/src/Strategy/ExportModule.js +6 -1
  122. package/src/Strategy/FilterModule.d.ts +7 -11
  123. package/src/Strategy/FilterModule.js +26 -20
  124. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  125. package/src/Strategy/FlashingCellModule.js +2 -2
  126. package/src/Strategy/Interface/IModule.d.ts +3 -1
  127. package/src/Strategy/LayoutModule.js +25 -2
  128. package/src/Strategy/PlusMinusModule.js +1 -4
  129. package/src/Strategy/SmartEditModule.d.ts +1 -1
  130. package/src/Strategy/SmartEditModule.js +7 -8
  131. package/src/Strategy/StatusBarModule.js +1 -3
  132. package/src/Strategy/TeamSharingModule.js +1 -1
  133. package/src/Strategy/ToolPanelModule.js +1 -4
  134. package/src/Utilities/Constants/GeneralConstants.d.ts +8 -2
  135. package/src/Utilities/Constants/GeneralConstants.js +8 -2
  136. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
  137. package/src/Utilities/Constants/ModuleConstants.js +2 -2
  138. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +24 -13
  139. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  140. package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
  141. package/src/Utilities/ObjectFactory.d.ts +3 -6
  142. package/src/Utilities/ObjectFactory.js +3 -7
  143. package/src/Utilities/Services/CalculatedColumnExpressionService.js +6 -7
  144. package/src/Utilities/Services/EntitlementService.js +7 -1
  145. package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
  146. package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
  147. package/src/Utilities/Services/ModuleService.js +1 -1
  148. package/src/Utilities/Services/ReportService.js +2 -3
  149. package/src/Utilities/Services/RowEditService.d.ts +26 -0
  150. package/src/Utilities/Services/RowEditService.js +197 -0
  151. package/src/Utilities/Services/TeamSharingService.js +4 -4
  152. package/src/View/AdaptablePopover/index.d.ts +1 -0
  153. package/src/View/AdaptablePopover/index.js +5 -6
  154. package/src/View/AdaptableView.js +1 -1
  155. package/src/View/AdaptableViewFactory.js +2 -2
  156. package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
  157. package/src/View/Alert/ActiveAlertsPanel.js +15 -0
  158. package/src/View/Alert/AlertStatusSubPanel.js +3 -8
  159. package/src/View/Alert/AlertViewPanel.js +2 -2
  160. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
  161. package/src/View/BulkUpdate/BulkUpdatePopup.js +2 -3
  162. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
  163. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +2 -3
  164. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +13 -7
  165. package/src/View/CellSummary/CellSummaryDetails.js +4 -4
  166. package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
  167. package/src/View/CellSummary/CellSummaryPopover.js +3 -6
  168. package/src/View/CellSummary/CellSummaryPopup.js +8 -0
  169. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
  170. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
  171. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  172. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
  173. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
  174. package/src/View/Components/ExternalRenderer.d.ts +3 -6
  175. package/src/View/Components/ExternalRenderer.js +5 -5
  176. package/src/View/Components/FilterForm/FilterForm.d.ts +1 -1
  177. package/src/View/Components/FilterForm/FilterForm.js +10 -8
  178. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
  179. package/src/View/Components/FilterForm/QuickFilterForm.js +5 -4
  180. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  181. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
  182. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
  183. package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
  184. package/src/View/Components/Popups/AdaptableToaster.js +29 -9
  185. package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
  186. package/src/View/Components/PreviewResultsPanel.js +3 -3
  187. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
  188. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
  189. package/src/View/Components/WizardSummaryPage.js +2 -2
  190. package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
  191. package/src/View/Dashboard/CustomDashboardButton.js +47 -0
  192. package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
  193. package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
  194. package/src/View/Dashboard/Dashboard.d.ts +1 -0
  195. package/src/View/Dashboard/Dashboard.js +8 -34
  196. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
  197. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
  198. package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
  199. package/src/View/DataSet/DataSetSelector.d.ts +7 -0
  200. package/src/View/DataSet/DataSetSelector.js +18 -0
  201. package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
  202. package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
  203. package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
  204. package/src/View/DataSet/DataSetViewPanel.js +58 -0
  205. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  206. package/src/View/Filter/FilterSummary.d.ts +5 -5
  207. package/src/View/Filter/FilterSummary.js +5 -4
  208. package/src/View/Filter/FilterViewPanel.d.ts +4 -4
  209. package/src/View/Filter/FilterViewPanel.js +10 -13
  210. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +5 -7
  211. package/src/View/FreeTextColumn/Wizard/FreeTextColumnSettingsWizardSection.js +4 -5
  212. package/src/View/GridInfo/ColumnInfoComponent.js +1 -1
  213. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  214. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
  215. package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
  216. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
  217. package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
  218. package/src/View/SmartEdit/SmartEditPopup.js +3 -4
  219. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
  220. package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
  221. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  222. package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
  223. package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
  224. package/src/View/StatusBar/StatusBarPanel.js +5 -4
  225. package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
  226. package/src/View/UIHelper.d.ts +4 -4
  227. package/src/View/UIHelper.js +10 -10
  228. package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
  229. package/src/agGrid/ActionColumnRenderer.js +9 -6
  230. package/src/agGrid/Adaptable.d.ts +7 -2
  231. package/src/agGrid/Adaptable.js +213 -69
  232. package/src/agGrid/FilterWrapper.js +1 -1
  233. package/src/agGrid/agGridHelper.d.ts +7 -8
  234. package/src/agGrid/agGridHelper.js +68 -86
  235. package/src/agGrid/agGridMenuHelper.js +4 -1
  236. package/src/agGrid/rowEditIcons.d.ts +5 -0
  237. package/src/agGrid/rowEditIcons.js +10 -0
  238. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
  239. package/src/components/Dashboard/DashboardToolbar.js +2 -2
  240. package/src/components/Datepicker/index.js +19 -18
  241. package/src/components/InfiniteTable/index.js +1 -0
  242. package/src/components/List/GridList/index.js +1 -1
  243. package/src/components/SelectList.d.ts +10 -0
  244. package/src/components/SelectList.js +9 -0
  245. package/src/components/WindowModal/WindowModal.d.ts +2 -0
  246. package/src/components/WindowModal/WindowModal.js +1 -1
  247. package/src/components/icons/{data-source.d.ts → add-row.d.ts} +0 -0
  248. package/src/components/icons/add-row.js +7 -0
  249. package/src/components/icons/data-set.d.ts +3 -0
  250. package/src/components/icons/{data-source.js → data-set.js} +0 -0
  251. package/src/components/icons/index.js +4 -2
  252. package/src/metamodel/adaptable.metamodel.d.ts +226 -69
  253. package/src/metamodel/adaptable.metamodel.js +532 -311
  254. package/src/types.d.ts +18 -13
  255. package/version.d.ts +1 -1
  256. package/version.js +1 -1
  257. package/src/AdaptableOptions/FormatColumnOptions.d.ts +0 -9
  258. package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
  259. package/src/Api/DataSourceApi.d.ts +0 -58
  260. package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
  261. package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
  262. package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
  263. package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
  264. package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
  265. package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
  266. package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
  267. package/src/Strategy/DataSourceModule.d.ts +0 -20
  268. package/src/Strategy/DataSourceModule.js +0 -56
  269. package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
  270. package/src/View/Components/Forms/AdaptableForm.js +0 -21
  271. package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
  272. package/src/View/DataSource/DataSourceViewPanel.js +0 -69
  273. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
  274. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
  275. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
  276. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
  277. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
  278. package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
@@ -2,11 +2,10 @@ import { AdaptableIcon } from '../PredefinedConfig/Common/AdaptableIcon';
2
2
  import { DateInputOptions } from './DateInputOptions';
3
3
  import { AdaptableScope } from '../PredefinedConfig/Common/AdaptableScope';
4
4
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
5
- import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
6
- import { RowNode } from '@ag-grid-community/all-modules';
7
5
  import { AdaptableObject, AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
8
6
  import { AdaptableStyle } from '../PredefinedConfig/Common/AdaptableStyle';
9
- import { AdaptableApi, BaseContext, GridCell } from '../../types';
7
+ import { AdaptableButton, BaseContext, GridCell } from '../../types';
8
+ import { RowNode } from '@ag-grid-community/all-modules';
10
9
  /**
11
10
  * Options for managing the User Interface of AdapTable
12
11
  */
@@ -52,10 +51,6 @@ export interface UserInterfaceOptions {
52
51
  * Colours to display in Colour Picker (in place of AdapTable's default set); can be hardcoded list or function
53
52
  */
54
53
  colorPalette?: string[] | ((currentTheme: string) => string[]);
55
- /**
56
- * Columns which contain an AdapTable Button - used for performing Actions
57
- */
58
- actionColumns?: ActionColumn[];
59
54
  /**
60
55
  * Style to set for editable cells
61
56
  */
@@ -73,12 +68,7 @@ export interface UserInterfaceOptions {
73
68
  /**
74
69
  * Optional list of AdaptableObjectTags that can be associated with AdaptableObjects
75
70
  */
76
- objectTags?: AdaptableObjectTag[] | ((adaptableApi: AdaptableApi) => AdaptableObjectTag[]);
77
- /**
78
- * Optional list of Column Types - used primarily for special columns
79
- *
80
- */
81
- columnTypes?: string[];
71
+ objectTags?: AdaptableObjectTag[] | ((context: ObjectTagsContext) => AdaptableObjectTag[]);
82
72
  /**
83
73
  * Provide links to AdapTable documentation (in Module popups and Expression Editor)
84
74
  *
@@ -99,56 +89,54 @@ export interface UserInterfaceOptions {
99
89
  * @gridInfoItem
100
90
  */
101
91
  showAdapTableVersion?: boolean;
102
- }
103
- export interface BasePermittedValues {
104
92
  /**
105
- * Scope where Values will appear (Mandatory property)
93
+ * Custom Formatters to use in the Format Column Module
106
94
  */
107
- scope: AdaptableScope;
108
- }
109
- /**
110
- * Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)
111
- */
112
- export interface PermittedValues extends BasePermittedValues {
95
+ customDisplayFormatters?: CustomDisplayFormatter[];
113
96
  /**
114
- * Values to display: either hardcoded list or a function
97
+ * Options for creating Action Columns and Buttons
115
98
  */
116
- values?: any[] | ((context: PermittedValuesContext) => any[]);
117
- }
118
- /**
119
- * Used to define permitted values for inline column editor
120
- */
121
- export interface EditLookUpPermittedValues extends BasePermittedValues {
122
- values?: any[] | ((context: EditLookUpContext) => any[]);
99
+ actionOptions?: ActionOptions;
123
100
  }
124
101
  /**
125
- * Used to define values inside the floating filter and floating filter (quick filter)
102
+ * Options related to Action Columns and Buttons in Adaptable.
126
103
  */
127
- export interface FilterPermittedValues extends BasePermittedValues {
104
+ export interface ActionOptions {
128
105
  /**
129
- * Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
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
+ *
130
124
  * @defaultValue false
131
125
  */
132
- suppressFilterSearchBar?: boolean;
133
- values: (context: FilterPermittedValuesContext) => any[] | Promise<any[]>;
134
- }
135
- /**
136
- * Custom column values for custom sort.
137
- */
138
- export interface CustomSortPermittedValues extends BasePermittedValues {
139
- values: (context: PermittedValuesContext) => any[] | Promise<any[]>;
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;
140
133
  }
141
134
  /**
142
- * User to define permitted values when updating cells via bulk update
135
+ * The context for the SetPrimaryKeyValueContext function
143
136
  */
144
- export interface BulkUpdatePermittedValues extends BasePermittedValues {
145
- values: (context: BulkUpdatePermittedValuesContext) => any[] | Promise<any[]>;
137
+ export interface SetPrimaryKeyValueContext extends BaseContext {
138
+ rowData: any;
146
139
  }
147
- /**
148
- * Use PermittedValues instead
149
- * @deprecated use PermittedValues instead
150
- */
151
- export declare type CellValuesList = PermittedValues;
152
140
  /**
153
141
  * A Special Column that wraps an AdapTable Button
154
142
  */
@@ -215,6 +203,55 @@ export interface ActionColumnSettings {
215
203
  */
216
204
  suppressMovable?: boolean;
217
205
  }
206
+ export interface BasePermittedValues {
207
+ /**
208
+ * Scope where Values will appear (Mandatory property)
209
+ */
210
+ scope: AdaptableScope;
211
+ }
212
+ /**
213
+ * Permitted/possible values, when column values can be selected (e.g. sort, bulk-update)
214
+ */
215
+ export interface PermittedValues extends BasePermittedValues {
216
+ /**
217
+ * Values to display: either hardcoded list or a function
218
+ */
219
+ values?: any[] | ((context: PermittedValuesContext) => any[]);
220
+ }
221
+ /**
222
+ * Used to define permitted values for inline column editor
223
+ */
224
+ export interface EditLookUpPermittedValues extends BasePermittedValues {
225
+ values?: any[] | ((context: EditLookUpContext) => any[]);
226
+ }
227
+ /**
228
+ * Used to define values inside the floating filter and floating filter (quick filter)
229
+ */
230
+ export interface FilterPermittedValues extends BasePermittedValues {
231
+ /**
232
+ * Prevents AdapTable from filtering the list of values client-side; When true, values is called each time the search bar is changed
233
+ * @defaultValue false
234
+ */
235
+ suppressFilterSearchBar?: boolean;
236
+ values: (context: FilterPermittedValuesContext) => any[] | Promise<any[]>;
237
+ }
238
+ /**
239
+ * Custom column values for custom sort.
240
+ */
241
+ export interface CustomSortPermittedValues extends BasePermittedValues {
242
+ values: (context: PermittedValuesContext) => any[] | Promise<any[]>;
243
+ }
244
+ /**
245
+ * User to define permitted values when updating cells via bulk update
246
+ */
247
+ export interface BulkUpdatePermittedValues extends BasePermittedValues {
248
+ values: (context: BulkUpdatePermittedValuesContext) => any[] | Promise<any[]>;
249
+ }
250
+ /**
251
+ * Use PermittedValues instead
252
+ * @deprecated use PermittedValues instead
253
+ */
254
+ export declare type CellValuesList = PermittedValues;
218
255
  export interface EditLookUpContext extends BaseContext {
219
256
  /**
220
257
  * Column displaying the Edit LookUp
@@ -223,7 +260,7 @@ export interface EditLookUpContext extends BaseContext {
223
260
  /**
224
261
  * Cell being edited
225
262
  */
226
- gridCell: GridCell;
263
+ gridCell?: GridCell;
227
264
  }
228
265
  export interface PermittedValuesContext extends BaseContext {
229
266
  /**
@@ -253,3 +290,11 @@ export interface BulkUpdatePermittedValuesContext extends BaseContext {
253
290
  }
254
291
  export declare type GridInfoSections = GridInfoSection[];
255
292
  export declare type GridInfoSection = 'GridSummary' | 'AdaptableOptions' | 'ColumnInfo' | 'AdaptableObjectsSummary';
293
+ export interface ObjectTagsContext extends BaseContext {
294
+ }
295
+ export declare type CustomDisplayFormatter = {
296
+ id: string;
297
+ label?: string;
298
+ handler: (value: any) => any;
299
+ scope: AdaptableScope;
300
+ };
@@ -8,7 +8,7 @@ import { ConditionalStyleApi } from './ConditionalStyleApi';
8
8
  import { CustomSortApi } from './CustomSortApi';
9
9
  import { DashboardApi } from './DashboardApi';
10
10
  import { ToolPanelApi } from './ToolPanelApi';
11
- import { DataSourceApi } from './DataSourceApi';
11
+ import { DataSetApi } from './DataSetApi';
12
12
  import { EventApi } from './EventApi';
13
13
  import { ExportApi } from './ExportApi';
14
14
  import { FormatColumnApi } from './FormatColumnApi';
@@ -89,9 +89,9 @@ export interface AdaptableApi {
89
89
  **/
90
90
  dataChangeHistoryApi: DataChangeHistoryApi;
91
91
  /**
92
- * Provides access to the Data Source Module
92
+ * Provides access to Data Sets
93
93
  */
94
- dataSourceApi: DataSourceApi;
94
+ dataSetApi: DataSetApi;
95
95
  /**
96
96
  * Used for listenning / subscribing to the various Events published by AdapTable
97
97
  */
@@ -209,6 +209,9 @@ export interface AdaptableApi {
209
209
  unmount: boolean;
210
210
  destroyApi?: boolean;
211
211
  }) => void;
212
+ /**
213
+ * Whether the Adaptable instance has been destroyed
214
+ */
212
215
  isDestroyed: () => boolean;
213
216
  /**
214
217
  * Cleanup method that only cleans up this api instance (clears event listeners and sets every property to null), but does not destroy the Adaptable instance.
@@ -1,5 +1,4 @@
1
- import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
- import { DataType } from '../PredefinedConfig/Common/Enums';
1
+ import { AdaptableColumn, AdaptableColumnDataType } from '../PredefinedConfig/Common/AdaptableColumn';
3
2
  import { Column, RowNode } from '@ag-grid-community/all-modules';
4
3
  import { GridCell } from '../../types';
5
4
  /**
@@ -59,7 +58,7 @@ export interface ColumnApi {
59
58
  * Returns all Columns that have given DataType
60
59
  * @param dataType the DataType of the Columns to retrieve
61
60
  */
62
- getColumnsOfType(dataType: DataType): AdaptableColumn[];
61
+ getColumnsOfType(dataType: AdaptableColumnDataType): AdaptableColumn[];
63
62
  /**
64
63
  * Selects (highlights) a Column
65
64
  * @param columnId Column to select
@@ -157,7 +156,7 @@ export interface ColumnApi {
157
156
  * Returns Data Type for a Column
158
157
  * @param columnId Column to check
159
158
  */
160
- getColumnDataTypeFromColumnId(columnId: string): 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown' | undefined;
159
+ getColumnDataTypeFromColumnId(columnId: string): AdaptableColumnDataType | undefined;
161
160
  /**
162
161
  * Retrieves Friendly Name for a given Column
163
162
  * @param columnId ColumnId to check
@@ -294,4 +293,10 @@ export interface ColumnApi {
294
293
  * @param expression Expression to Lookup
295
294
  */
296
295
  isColumnReferencedInExpression(columnId: string, expression: string): boolean;
296
+ /**
297
+ * Checks if a column is a ActionRowButton column (see UserInterfaceOptions.ActionOptions)
298
+ *
299
+ * @param columnId Column to Check
300
+ */
301
+ isActionRowButtonColumn(columnId: string): boolean;
297
302
  }
@@ -77,6 +77,16 @@ export interface ConditionalStyleApi {
77
77
  * @returns conditional styles
78
78
  */
79
79
  editConditionalStyles(conditionalStyles: ConditionalStyle[]): ConditionalStyle[];
80
+ /**
81
+ * Deletes a Conditional Style
82
+ * @param conditionalStyle Conditional Style to delete
83
+ */
84
+ deleteConditionalStyle(conditionalStyle: ConditionalStyle): void;
85
+ /**
86
+ * Deletes Conditional Styles
87
+ * @param conditionalStyles Conditional Styles to delete
88
+ */
89
+ deleteConditionalStyles(conditionalStyles: ConditionalStyle[]): void;
80
90
  /**
81
91
  * Adds new Conditional Style to State
82
92
  * @param conditionalStyle Conditional Style to add
@@ -4,7 +4,6 @@ import { QuickSearchState } from '../PredefinedConfig/QuickSearchState';
4
4
  import { LayoutState } from '../PredefinedConfig/LayoutState';
5
5
  import { FormatColumnState } from '../PredefinedConfig/FormatColumnState';
6
6
  import { ExportState } from '../PredefinedConfig/ExportState';
7
- import { DataSourceState } from '../PredefinedConfig/DataSourceState';
8
7
  import { DashboardState } from '../PredefinedConfig/DashboardState';
9
8
  import { CustomSortState } from '../PredefinedConfig/CustomSortState';
10
9
  import { ConditionalStyleState } from '../PredefinedConfig/ConditionalStyleState';
@@ -15,7 +14,6 @@ import { PlusMinusState } from '../PredefinedConfig/PlusMinusState';
15
14
  import { ApplicationState } from '../PredefinedConfig/ApplicationState';
16
15
  import { AdaptablePersistentState, AdaptableState } from '../PredefinedConfig/AdaptableState';
17
16
  import { FreeTextColumnState } from '../PredefinedConfig/FreeTextColumnState';
18
- import { FilterState } from '../PredefinedConfig/FilterState';
19
17
  import { ToolPanelState } from '../PredefinedConfig/ToolPanelState';
20
18
  import { AdaptableStateKey, AdaptableModule } from '../PredefinedConfig/Common/Types';
21
19
  import { AdaptableSearchState, PredefinedConfig, ScheduleState } from '../types';
@@ -133,21 +131,11 @@ export interface ConfigApi {
133
131
  * @param returnJson return as JSON rather than object
134
132
  */
135
133
  getDashboardState(returnJson: boolean): DashboardState;
136
- /**
137
- * Returns Data Source section of Adaptable State
138
- * @param returnJson return as JSON rather than object
139
- */
140
- getDataSourceState(returnJson: boolean): DataSourceState;
141
134
  /**
142
135
  * Returns Export section of Adaptable State
143
136
  * @param returnJson return as JSON rather than object
144
137
  */
145
138
  getExportState(returnJson: boolean): ExportState;
146
- /**
147
- * Returns Filter section of Adaptable State
148
- * @param returnJson return as JSON rather than object
149
- */
150
- getFilterState(returnJson: boolean): FilterState;
151
139
  /**
152
140
  * Returns Formt Column section of Adaptable State
153
141
  * @param returnJson return as JSON rather than object
@@ -2,7 +2,7 @@ import { DashboardState, DashboardTab } from '../PredefinedConfig/DashboardState
2
2
  import { AdaptableModuleButtons, AdaptableDashboardToolbars, AdaptableDashboardToolbar } from '../PredefinedConfig/Common/Types';
3
3
  import { DashboardChangedInfo } from './Events/DashboardChanged';
4
4
  import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
5
- import { CustomToolbar, CustomToolbarButtonContext, DashboardButtonContext } from '../AdaptableOptions/DashboardOptions';
5
+ import { CustomToolbar, DashboardButtonContext } from '../AdaptableOptions/DashboardOptions';
6
6
  /**
7
7
  * Functions relating to the AdapTable Dashboard.
8
8
  */
@@ -18,7 +18,7 @@ export interface DashboardApi {
18
18
  /**
19
19
  * Retrieves all Custom Buttons
20
20
  */
21
- getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[] | undefined;
21
+ getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
22
22
  /**
23
23
  * Retrieves first Custom Button with given Label
24
24
  * @param buttonLabel the label of the Custom Button to retrieve
@@ -49,23 +49,6 @@ export interface DashboardApi {
49
49
  * @param customToolbarName the name of the Custom Toolbar
50
50
  */
51
51
  getCustomToolbarByName(customToolbarName: string): CustomToolbar;
52
- /**
53
- * Replaces Toolbar Buttons in Custom Toolbar with the new set
54
- * @param customToolbarName name of the Custom Toolbar
55
- * @param buttons Toolbar Buttons to add
56
- */
57
- setCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
58
- /**
59
- * Adds Toolbar Buttons to current collection in Custom Toolbar
60
- * @param customToolbarName name of the Custom Toolbar
61
- * @param buttons Toolbar Buttons to add
62
- */
63
- addCustomToolbarButtons(customToolbarName: string, buttons: AdaptableButton<CustomToolbarButtonContext>[]): void;
64
- /**
65
- * Clears all Toolbar Buttons from Custom Toolbar
66
- * @param customToolbarName the name of the Custom Toolbar
67
- */
68
- clearCustomToolbarButtons(customToolbarName: string): void;
69
52
  /**
70
53
  * Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)
71
54
  */
@@ -74,6 +57,10 @@ export interface DashboardApi {
74
57
  * Expands Dashboard so Toolbars in Active Tab are fully visible
75
58
  */
76
59
  expandDashboard(): void;
60
+ /**
61
+ * Refreshes the entire Dashboard section, including Toolbars and Buttons; this is particularly relevant for AdapTable built-in elements, as framework components are dependent on the framework specific change detection mechanisms
62
+ */
63
+ refreshDashboard(): void;
77
64
  /**
78
65
  * Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location
79
66
  */
@@ -0,0 +1,40 @@
1
+ import { DataSet } from '../types';
2
+ /**
3
+ * Provides run-time access to Data Sets
4
+ */
5
+ export interface DataSetApi {
6
+ /**
7
+ * Retrieves the Data Sets from General Options
8
+ * @returns data Sets
9
+ */
10
+ getAllDataSets(): DataSet[];
11
+ /**
12
+ * Retrieves the currently applied Data Set
13
+ * @returns data Set
14
+ */
15
+ getCurrentDataSet(): DataSet | undefined;
16
+ /**
17
+ * Retreives Data Set from State with given name
18
+ * @param dataSetName name of Data Set to retrieve
19
+ * @returns data Set
20
+ */
21
+ getDataSetByName(dataSetName: string): DataSet;
22
+ /**
23
+ * Makes given Data Set current
24
+ * @param dataSetName Name of Data Set to apply
25
+ */
26
+ setDataSet(dataSetName: string): void;
27
+ /**
28
+ * Clears currently selected Data Set
29
+ */
30
+ clearCurrentDataSet(): void;
31
+ /**
32
+ * Opens Settings Panel with Data Set section selected and visible
33
+ */
34
+ showDataSetPopup(): void;
35
+ /**
36
+ * Fire the DataSet Changed Event
37
+ * @param dataSet Data Set which has changed
38
+ */
39
+ fireDataSetChangeEvent(dataSet: DataSet): void;
40
+ }
File without changes
@@ -14,6 +14,8 @@ import { AdaptableStateChangedInfo } from './Events/AdaptableStateChanged';
14
14
  import { FlashingCellDisplayedInfo } from './Events/FlashingCellDisplayed';
15
15
  import { GridDataChangedInfo } from './Events/GridDataChanged';
16
16
  import { TeamSharingEntityChangedInfo } from './Events/TeamSharingEntityChanged';
17
+ import { RowFormSubmittedInfo } from './Events/RowFormSubmitted';
18
+ import { DataSetChangedInfo } from './Events/DataSetChanged';
17
19
  /**
18
20
  * Responsible for publishing the many Events that AdapTable fires
19
21
  */
@@ -193,6 +195,32 @@ export interface EventApi {
193
195
  * Unsubscribe from LiveDataChanged
194
196
  */
195
197
  off(eventName: 'LiveDataChanged', callback: (liveDataChangedInfo: LiveDataChangedInfo) => void): void;
198
+ /**
199
+ * Event fired when a Row Form is submitted
200
+ *
201
+ * @param eventName RowFormSubmitted
202
+ * @param callback RowFormSubmittedInfo
203
+ */
204
+ on(eventName: 'RowFormSubmitted', callback: (rowEditedFormInfo: RowFormSubmittedInfo) => void): () => void;
205
+ /**
206
+ * Unsubscribe from RowFormSubmitted
207
+ * @param eventName RowFormSubmitted
208
+ * @param callback
209
+ */
210
+ off(eventName: 'RowFormSubmitted', callback: (rowEditedFormInfo: RowFormSubmittedInfo) => void): void;
211
+ /**
212
+ * Event fired when a DataSet is changed
213
+ *
214
+ * @param eventName DataSetChanged
215
+ * @param callback DataSetChangedInfo
216
+ */
217
+ on(eventName: 'DataSetChanged', callback: (dataSetChangedInfo: DataSetChangedInfo) => void): () => void;
218
+ /**
219
+ * Unsubscribe from DataSetChanged
220
+ * @param eventName DataSetChanged
221
+ * @param callback
222
+ */
223
+ off(eventName: 'DataSetChanged', callback: (dataSetChangedInfo: DataSetChangedInfo) => void): void;
196
224
  /**
197
225
  * Fired when Adaptable is up and running - has no arguments.
198
226
  * @param eventName - AdaptableReady
@@ -224,6 +252,6 @@ export interface EventApi {
224
252
  emitSync(eventName: 'DashboardChanged', data?: any): any[];
225
253
  emitSync(eventName: 'FlashingCellDisplayed', data?: any): any[];
226
254
  emitSync(eventName: 'AdaptableDestroy'): any[];
227
- emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent', data?: any): Promise<any>;
255
+ emit(eventName: 'AdaptableReady' | 'AlertFired' | 'CheckboxColumnClicked' | 'CustomToolbarConfigured' | 'AdaptableStateChanged' | 'DashboardChanged' | 'CellChanged' | 'GridDataChanged' | 'LayoutChanged' | 'LiveDataChanged' | 'SearchChanged' | 'SelectionChanged' | 'SystemStatusMessageDisplayed' | 'TeamSharingEntityChanged' | 'ThemeChanged' | 'FDC3MessageSent' | 'RowFormSubmitted' | 'DataSetChanged', data?: any): Promise<any>;
228
256
  destroy(): void;
229
257
  }
@@ -0,0 +1,5 @@
1
+ import { DataSet } from '../../types';
2
+ import { BaseEventInfo } from './BaseEventInfo';
3
+ export interface DataSetChangedInfo extends BaseEventInfo {
4
+ dataSet: DataSet;
5
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseEventInfo } from './BaseEventInfo';
2
+ import { AdaptableFormData } from '../../PredefinedConfig/Common/AdaptableForm';
3
+ import { RowNode } from '@ag-grid-community/all-modules';
4
+ export declare type RowFormSubmittedInfo = CreatedRowFormInfo | EditedRowFormInfo | DeletedRowFormInfo;
5
+ export declare type RowFormType = 'rowCreated' | 'rowEdited' | 'rowDeleted';
6
+ export interface CreatedRowFormInfo extends BaseEventInfo {
7
+ type: 'rowCreated';
8
+ formData: AdaptableFormData;
9
+ clonedRowNode?: RowNode;
10
+ }
11
+ export interface EditedRowFormInfo extends BaseEventInfo {
12
+ type: 'rowEdited';
13
+ formData: AdaptableFormData;
14
+ rowNode: RowNode;
15
+ }
16
+ export interface DeletedRowFormInfo extends BaseEventInfo {
17
+ type: 'rowDeleted';
18
+ rowNode: RowNode;
19
+ }
@@ -1,8 +1,7 @@
1
- import { DataSource } from '../../PredefinedConfig/DataSourceState';
2
1
  import { CustomSort } from '../../PredefinedConfig/CustomSortState';
3
2
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
4
- import { ColumnFilter } from '../../PredefinedConfig/FilterState';
5
3
  import { BaseEventInfo } from './BaseEventInfo';
4
+ import { ColumnFilter, DataSet } from '../../types';
6
5
  /**
7
6
  * EventInfo returned by SearchChanged event; includes full AdapTable search and sort info plus the event's trigger
8
7
  */
@@ -10,7 +9,7 @@ export interface SearchChangedInfo extends BaseEventInfo {
10
9
  /**
11
10
  * What search-related change caused the event to fire
12
11
  */
13
- searchChangedTrigger: 'DataSource' | 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
12
+ searchChangedTrigger: 'CurrentQuery' | 'Filter' | 'DataChange' | 'Sort';
14
13
  /**
15
14
  * Current searches and filters in the Grid
16
15
  */
@@ -25,9 +24,9 @@ export interface SearchChangedInfo extends BaseEventInfo {
25
24
  */
26
25
  export interface AdaptableSearchState {
27
26
  /**
28
- * Current Data Source (if one selected)
27
+ * Current DataSet (if one selected)
29
28
  */
30
- dataSource: DataSource | undefined;
29
+ dataSet: DataSet | undefined;
31
30
  /**
32
31
  * Current Query
33
32
  */
@@ -1,7 +1,7 @@
1
1
  import { AdaptableForm } from '../PredefinedConfig/Common/AdaptableForm';
2
2
  import { ExportState, Report, ReportData, ReportSchedule, SystemReportNames } from '../PredefinedConfig/ExportState';
3
3
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
4
- import { CustomDestination, ExportButtonContext } from '../AdaptableOptions/ExportOptions';
4
+ import { CustomDestination, ExportFormContext } from '../AdaptableOptions/ExportOptions';
5
5
  import { ExportDestination } from '../PredefinedConfig/Common/Enums';
6
6
  /**
7
7
  * Provides run-time access to the Export Module and Report state
@@ -122,7 +122,7 @@ export interface ExportApi {
122
122
  * Form Data entered by the User in the UI for a Custom Destination
123
123
  * @param destination Custom Destination for which to get Form Def
124
124
  */
125
- getExportDestinationForm(destinationName: string): AdaptableForm<ExportButtonContext> | undefined;
125
+ getExportDestinationForm(destinationName: string): AdaptableForm<ExportFormContext> | undefined;
126
126
  /**
127
127
  * Whether given data change affects given report
128
128
  * @param cellDataChangedInfo data change to check
@@ -1,15 +1,10 @@
1
- import { FilterState, ColumnFilter, SystemFilterPredicateIds } from '../PredefinedConfig/FilterState';
2
- import { AdaptableColumn } from '../types';
1
+ import { AdaptableColumn, ColumnFilter, GridCell, SystemFilterPredicateIds } from '../types';
3
2
  import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
4
3
  import { RowNode } from '@ag-grid-community/all-modules';
5
4
  /**
6
5
  * Provides run-time access to Filter section of Adaptable State.
7
6
  */
8
7
  export interface FilterApi {
9
- /**
10
- * Retrieves Filter section from Adaptable State
11
- */
12
- getFilterState(): FilterState;
13
8
  /**
14
9
  * Returns Predicate Definition for given Column and Quick Filter shortcut
15
10
  * @param shortcut Quick Filter shortcut to lookup
@@ -31,16 +26,26 @@ export interface FilterApi {
31
26
  */
32
27
  getAllSystemFilterIds(): SystemFilterPredicateIds;
33
28
  /**
34
- * Retrieves all the Column Filters in the Column Filter State (of Predefined Config)
35
- * @returns column filters
29
+ * Makes Quick Filter Bar appear
36
30
  */
37
- getAllColumnFilter(): ColumnFilter[];
31
+ showQuickFilterBar(): void;
32
+ /**
33
+ * Hides Quick Filter bar
34
+ */
35
+ hideQuickFilterBar(): void;
38
36
  /**
39
- * Retrieves ColumnFilter by Id
40
- * @param id column filter id
41
- * @returns column filter
37
+ * Whether Quick Filter is available for use
38
+ */
39
+ isQuickFilterAvailable(): boolean;
40
+ /**
41
+ * Whether Quick Filter Form is currently visible
42
+ */
43
+ isQuickFilterVisible(): boolean;
44
+ /**
45
+ * Retrieves all the Column Filters in the Column Filter State (of Predefined Config)
46
+ * @returns column filters
42
47
  */
43
- getColumnFilterById(id: ColumnFilter['Uuid']): ColumnFilter;
48
+ getColumnFilters(): ColumnFilter[];
44
49
  /**
45
50
  * Sets Column Filters - will replace filters for existing column and leave other column filters in place
46
51
  * @param columnFilters Column Filters to set
@@ -63,9 +68,9 @@ export interface FilterApi {
63
68
  */
64
69
  clearColumnFilterByColumns(columns: string[]): void;
65
70
  /**
66
- * Clears all Column Filters in State
71
+ * Clears all Column Filters in the Current Layout
67
72
  */
68
- clearAllColumnFilter(): void;
73
+ clearColumnFilters(): void;
69
74
  /**
70
75
  * Clears existing Column Filters and then sets the new ones
71
76
  * @param columnFilters Column Filters to set
@@ -78,12 +83,15 @@ export interface FilterApi {
78
83
  */
79
84
  getAllColumnFilterForColumn(columnId: string): ColumnFilter[];
80
85
  /**
81
- * Creates new Column Filter on given Column using Primary Key values
82
- * @param columnId ColumnId to use
83
- * @param primarykeyValues Primary Key Values to use
84
- * @returns column filter
86
+ * Creates an Equality Filter based on given Grid Cells
87
+ * @param gridCells cells to create Filter for
88
+ */
89
+ createValuesColumnFilterForCells(gridCells: GridCell[]): ColumnFilter | null;
90
+ /**
91
+ * Creates an Equality Filter based on given Grid Cell
92
+ * @param gridCell cell to create Filter for
85
93
  */
86
- createColumnFilterForCell(columnId: string, primarykeyValues: any[]): ColumnFilter | null;
94
+ createEqualityColumnFilterForCell(gridCell: GridCell): ColumnFilter | null;
87
95
  /**
88
96
  * Retrieves description of given Column Filter
89
97
  * @param columnFilter Column Filter to use
@@ -100,20 +108,4 @@ export interface FilterApi {
100
108
  * @param node Row Node to evaluate
101
109
  */
102
110
  evaluateColumnFilter(columnFilter: ColumnFilter, node: RowNode): boolean;
103
- /**
104
- * Makes Quick Filter Bar appear
105
- */
106
- showQuickFilterBar(): void;
107
- /**
108
- * Hides Quick Filter bar
109
- */
110
- hideQuickFilterBar(): void;
111
- /**
112
- * Whether Quick Filter is available for use
113
- */
114
- isQuickFilterAvailable(): boolean;
115
- /**
116
- * Whether Quick Filter Form is currently visible
117
- */
118
- isQuickFilterVisible(): boolean;
119
111
  }