@adaptabletools/adaptable 11.2.4-canary.0 → 12.0.0-canary.0

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 (266) hide show
  1. package/base.css +22 -4
  2. package/bundle.cjs.js +111 -111
  3. package/index.css +26 -4
  4. package/package.json +1 -1
  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/{MasterDetailAgGridPluginOptions.js → ActionOptions.js} +0 -0
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
  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/{SmartEdit.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 +92 -4
  19. package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
  20. package/src/AdaptableOptions/ExportOptions.d.ts +5 -1
  21. package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
  22. package/src/AdaptableOptions/FinancePluginOptions.d.ts +33 -3
  23. package/src/AdaptableOptions/GeneralOptions.d.ts +22 -23
  24. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
  25. package/src/{Api/DataSourceApi.js → AdaptableOptions/MasterDetailPluginOptions.js} +0 -0
  26. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
  27. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
  28. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +81 -54
  29. package/src/Api/AdaptableApi.d.ts +6 -3
  30. package/src/Api/ColumnApi.d.ts +6 -3
  31. package/src/Api/ConditionalStyleApi.d.ts +10 -0
  32. package/src/Api/ConfigApi.d.ts +0 -12
  33. package/src/Api/DashboardApi.d.ts +6 -19
  34. package/src/Api/DataSetApi.d.ts +40 -0
  35. package/src/{PredefinedConfig/DataSourceState.js → Api/DataSetApi.js} +0 -0
  36. package/src/Api/EventApi.d.ts +18 -1
  37. package/src/Api/Events/DataSetChanged.d.ts +5 -0
  38. package/src/{PredefinedConfig/FilterState.js → Api/Events/DataSetChanged.js} +0 -0
  39. package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
  40. package/src/Api/Events/RowFormSubmitted.js +2 -0
  41. package/src/Api/Events/SearchChanged.d.ts +3 -4
  42. package/src/Api/FilterApi.d.ts +1 -77
  43. package/src/Api/FinanceApi.d.ts +3 -2
  44. package/src/Api/FormatColumnApi.d.ts +28 -1
  45. package/src/Api/GridApi.d.ts +15 -1
  46. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  47. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  48. package/src/Api/Implementation/AlertApiImpl.js +5 -1
  49. package/src/Api/Implementation/ApiBase.d.ts +3 -0
  50. package/src/Api/Implementation/ApiBase.js +6 -0
  51. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -2
  52. package/src/Api/Implementation/ColumnApiImpl.js +6 -3
  53. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
  54. package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
  55. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  56. package/src/Api/Implementation/ConfigApiImpl.js +2 -24
  57. package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
  58. package/src/Api/Implementation/DashboardApiImpl.js +5 -29
  59. package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
  60. package/src/Api/Implementation/DataSetApiImpl.js +42 -0
  61. package/src/Api/Implementation/EventApiImpl.js +1 -0
  62. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -16
  63. package/src/Api/Implementation/FilterApiImpl.js +5 -164
  64. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -0
  65. package/src/Api/Implementation/FormatColumnApiImpl.js +34 -0
  66. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  67. package/src/Api/Implementation/GridApiImpl.js +41 -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 +18 -1
  71. package/src/Api/Implementation/LayoutApiImpl.js +172 -0
  72. package/src/Api/Implementation/PredicateApiImpl.js +1 -1
  73. package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
  74. package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
  75. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
  76. package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
  77. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  78. package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
  79. package/src/Api/InternalApi.d.ts +6 -2
  80. package/src/Api/LayoutApi.d.ts +88 -1
  81. package/src/Api/SmartEditApi.d.ts +14 -3
  82. package/src/Api/TeamSharingApi.d.ts +18 -5
  83. package/src/Api/UserInterfaceApi.d.ts +4 -4
  84. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  85. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
  86. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
  87. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
  88. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
  89. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +6 -3
  90. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
  91. package/src/PredefinedConfig/Common/AdaptablePredicate.js +35 -2
  92. package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
  93. package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
  94. package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
  95. package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
  96. package/src/PredefinedConfig/Common/Enums.js +1 -1
  97. package/src/PredefinedConfig/Common/FDC3Context.d.ts +5 -1
  98. package/src/PredefinedConfig/Common/Types.d.ts +6 -5
  99. package/src/PredefinedConfig/Common/Types.js +2 -3
  100. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  101. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  102. package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
  103. package/src/PredefinedConfig/SystemState.d.ts +4 -2
  104. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
  105. package/src/Redux/ActionsReducers/LayoutRedux.js +135 -1
  106. package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
  107. package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
  108. package/src/Redux/Store/AdaptableStore.js +37 -39
  109. package/src/Strategy/AlertModule.d.ts +11 -0
  110. package/src/Strategy/AlertModule.js +14 -0
  111. package/src/Strategy/CellSummaryModule.d.ts +3 -0
  112. package/src/Strategy/CellSummaryModule.js +28 -14
  113. package/src/Strategy/DataSetModule.d.ts +25 -0
  114. package/src/Strategy/DataSetModule.js +65 -0
  115. package/src/Strategy/ExportModule.js +6 -1
  116. package/src/Strategy/FilterModule.d.ts +7 -11
  117. package/src/Strategy/FilterModule.js +24 -15
  118. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  119. package/src/Strategy/FlashingCellModule.js +2 -2
  120. package/src/Strategy/FormatColumnModule.js +1 -1
  121. package/src/Strategy/Interface/IModule.d.ts +3 -1
  122. package/src/Strategy/LayoutModule.js +24 -2
  123. package/src/Strategy/SmartEditModule.d.ts +1 -1
  124. package/src/Strategy/SmartEditModule.js +5 -6
  125. package/src/Strategy/StatusBarModule.js +1 -3
  126. package/src/Strategy/TeamSharingModule.js +1 -1
  127. package/src/Strategy/ToolPanelModule.js +1 -4
  128. package/src/Utilities/Constants/GeneralConstants.d.ts +6 -2
  129. package/src/Utilities/Constants/GeneralConstants.js +6 -2
  130. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
  131. package/src/Utilities/Constants/ModuleConstants.js +2 -2
  132. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +22 -13
  133. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  134. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +2 -4
  135. package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
  136. package/src/Utilities/ObjectFactory.d.ts +3 -6
  137. package/src/Utilities/ObjectFactory.js +3 -7
  138. package/src/Utilities/Services/EntitlementService.js +7 -1
  139. package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
  140. package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
  141. package/src/Utilities/Services/ModuleService.js +1 -1
  142. package/src/Utilities/Services/ReportService.js +2 -3
  143. package/src/Utilities/Services/RowEditService.d.ts +25 -0
  144. package/src/Utilities/Services/RowEditService.js +165 -0
  145. package/src/Utilities/Services/TeamSharingService.js +4 -4
  146. package/src/View/AdaptablePopover/index.d.ts +1 -0
  147. package/src/View/AdaptablePopover/index.js +5 -6
  148. package/src/View/AdaptableView.js +1 -1
  149. package/src/View/AdaptableViewFactory.js +2 -2
  150. package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
  151. package/src/View/Alert/ActiveAlertsPanel.js +15 -0
  152. package/src/View/Alert/AlertStatusSubPanel.js +3 -8
  153. package/src/View/Alert/AlertViewPanel.js +2 -2
  154. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
  155. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
  156. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  157. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -2
  158. package/src/View/CellSummary/CellSummaryDetails.js +2 -2
  159. package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
  160. package/src/View/CellSummary/CellSummaryPopover.js +3 -6
  161. package/src/View/CellSummary/CellSummaryPopup.js +8 -0
  162. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
  163. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
  164. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  165. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
  166. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
  167. package/src/View/Components/ExternalRenderer.d.ts +3 -6
  168. package/src/View/Components/ExternalRenderer.js +5 -5
  169. package/src/View/Components/FilterForm/FilterForm.d.ts +5 -2
  170. package/src/View/Components/FilterForm/FilterForm.js +9 -7
  171. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  172. package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
  173. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
  174. package/src/View/Components/FilterForm/QuickFilterForm.js +21 -7
  175. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  176. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
  177. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
  178. package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
  179. package/src/View/Components/Popups/AdaptableToaster.js +29 -9
  180. package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
  181. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
  182. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
  183. package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
  184. package/src/View/Dashboard/CustomDashboardButton.js +47 -0
  185. package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
  186. package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
  187. package/src/View/Dashboard/Dashboard.d.ts +1 -0
  188. package/src/View/Dashboard/Dashboard.js +8 -34
  189. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
  190. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
  191. package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
  192. package/src/View/DataSet/DataSetSelector.d.ts +7 -0
  193. package/src/View/DataSet/DataSetSelector.js +18 -0
  194. package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
  195. package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
  196. package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
  197. package/src/View/DataSet/DataSetViewPanel.js +58 -0
  198. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  199. package/src/View/Filter/FilterSummary.d.ts +5 -5
  200. package/src/View/Filter/FilterSummary.js +6 -5
  201. package/src/View/Filter/FilterViewPanel.d.ts +4 -4
  202. package/src/View/Filter/FilterViewPanel.js +11 -14
  203. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +3 -2
  204. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +51 -22
  205. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  206. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  207. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
  208. package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
  209. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
  210. package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
  211. package/src/View/SmartEdit/SmartEditPopup.js +3 -4
  212. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
  213. package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
  214. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  215. package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
  216. package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
  217. package/src/View/StatusBar/StatusBarPanel.js +5 -4
  218. package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
  219. package/src/View/UIHelper.d.ts +4 -4
  220. package/src/View/UIHelper.js +4 -4
  221. package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
  222. package/src/agGrid/ActionColumnRenderer.js +9 -6
  223. package/src/agGrid/Adaptable.d.ts +7 -2
  224. package/src/agGrid/Adaptable.js +217 -87
  225. package/src/agGrid/FilterWrapper.js +1 -1
  226. package/src/agGrid/agGridHelper.d.ts +6 -6
  227. package/src/agGrid/agGridHelper.js +34 -56
  228. package/src/agGrid/agGridMenuHelper.js +4 -1
  229. package/src/agGrid/rowEditIcons.d.ts +4 -0
  230. package/src/agGrid/rowEditIcons.js +9 -0
  231. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
  232. package/src/components/Dashboard/DashboardToolbar.js +2 -2
  233. package/src/components/Datepicker/index.js +19 -18
  234. package/src/components/SelectList.d.ts +10 -0
  235. package/src/components/SelectList.js +9 -0
  236. package/src/components/WindowModal/WindowModal.d.ts +2 -0
  237. package/src/components/WindowModal/WindowModal.js +1 -1
  238. package/src/components/icons/{data-source.d.ts → data-set.d.ts} +0 -0
  239. package/src/components/icons/{data-source.js → data-set.js} +0 -0
  240. package/src/components/icons/index.js +2 -2
  241. package/src/metamodel/adaptable.metamodel.d.ts +242 -70
  242. package/src/metamodel/adaptable.metamodel.js +620 -376
  243. package/src/types.d.ts +19 -15
  244. package/version.d.ts +1 -1
  245. package/version.js +1 -1
  246. package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
  247. package/src/Api/DataSourceApi.d.ts +0 -58
  248. package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
  249. package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
  250. package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
  251. package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
  252. package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
  253. package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
  254. package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
  255. package/src/Strategy/DataSourceModule.d.ts +0 -20
  256. package/src/Strategy/DataSourceModule.js +0 -56
  257. package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
  258. package/src/View/Components/Forms/AdaptableForm.js +0 -21
  259. package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
  260. package/src/View/DataSource/DataSourceViewPanel.js +0 -69
  261. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
  262. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
  263. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
  264. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
  265. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
  266. package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
package/index.css CHANGED
@@ -2290,6 +2290,9 @@ template {
2290
2290
  --ab-cmp-adaptable-object-compact-list-item__background: var(--ab-color-defaultbackground);
2291
2291
  --ab-cmp-adaptable-object-compact-list-item__padding: var(--ab-space-1);
2292
2292
  --ab-cmp-adaptable-object-compact-list-item__margin-bottom: var(--ab-space-2);
2293
+ --ab-cmp-adaptable-object-compact-list__header__padding: var(--ab-space-2);
2294
+ --ab-cmp-adaptable-object-compact-list__header__margin-bottom: var(--ab-space-1);
2295
+ --ab-cmp-adaptable-object-compact-list__header__font-size: var(--ab-font-size-4);
2293
2296
  --ab-cmp-adaptable-object-compact-list-item-name__width: 80px;
2294
2297
  --ab-cmp-adaptable-object-compact-list-item-name__padding: var(--ab-space-1);
2295
2298
  --ab-cmp-adaptable-object-compact-list-item-name__margin-right: var(--ab-space-1);
@@ -2310,7 +2313,8 @@ template {
2310
2313
  --ab-cmp-adaptable-statusbar-sub-panel__padding: var(--ab-space-1) var(--ab-space-2);
2311
2314
  --ab-cmp-adaptable-statusbar-sub-panel-icon__background-color-hover: var(--ab-color-primary);
2312
2315
  --ab-cmp-adaptable-statusbar__color: var(--ab-color-text-on-primary);
2313
- --ab-cmp-adaptable-statusbar__font-weight: 400; }
2316
+ --ab-cmp-adaptable-statusbar__font-weight: 400;
2317
+ --ab-cmp-adaptable-statusbar__border: 1px solid var(--ab-color-primary); }
2314
2318
 
2315
2319
  .ab-Radio-input:focus + svg rect {
2316
2320
  stroke: var(--ab-color-accent);
@@ -3702,7 +3706,19 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3702
3706
 
3703
3707
  .ab-Adaptable-Object-Compact-List {
3704
3708
  padding: var(--ab-cmp-adaptable-object-compact-list__padding);
3705
- background: var(--ab-cmp-adaptable-object-compact-list__background); }
3709
+ background: var(--ab-cmp-adaptable-object-compact-list__background);
3710
+ max-height: 70vh; }
3711
+
3712
+ .ab-Adaptable-Object-Compact-List .ab-Adaptable-Object-Compact-List__Header {
3713
+ padding: var(--ab-cmp-adaptable-object-compact-list__header__padding);
3714
+ margin-bottom: var(--ab-cmp-adaptable-object-compact-list__header__margin-bottom); }
3715
+
3716
+ .ab-Adaptable-Object-Compact-List .ab-Adaptable-Object-Compact-List__Title {
3717
+ font-size: var(--ab-font-size-4); }
3718
+
3719
+ .ab-Adaptable-Object-Compact-List .ab-Adaptable-Object-Compact-List__Body {
3720
+ overflow: auto;
3721
+ height: 100%; }
3706
3722
 
3707
3723
  .ab-Adaptable-Object-Compact-List .ab-Adaptable-Object-Compact-List__Item {
3708
3724
  padding: var(--ab-cmp-adaptable-object-compact-list-item__padding);
@@ -3719,13 +3735,19 @@ html.ab--theme-dark .ab-ListBoxFilterForm--aggrid-style {
3719
3735
  font-size: var(--ab-cmp-adaptable-object-compact-list-item-name__font-size); }
3720
3736
 
3721
3737
  .ab-StatusBar {
3722
- display: flex; }
3738
+ display: flex;
3739
+ border-right: var(--ab-cmp-adaptable-statusbar__border);
3740
+ border-left: var(--ab-cmp-adaptable-statusbar__border); }
3723
3741
 
3724
3742
  .ab-StatusBar__SubPanel {
3725
3743
  padding: var(--ab-cmp-adaptable-statusbar-sub-panel__padding);
3726
3744
  border: 0;
3727
3745
  background: none;
3728
- font-weight: 400; }
3746
+ font-weight: 400;
3747
+ border-right: var(--ab-cmp-adaptable-statusbar__border); }
3748
+
3749
+ .ab-StatusBar__SubPanel:last-child {
3750
+ border-right: 0; }
3729
3751
 
3730
3752
  .ab-StatusBar__SubPanel,
3731
3753
  .ab-StatusBar__SubPanel .ab-SimpleButton {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "11.2.4-canary.0",
3
+ "version": "12.0.0-canary.0",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1652955781582;
1
+ declare const _default: 1654532122066;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1652955781582;
3
+ exports.default = 1654532122066;
@@ -26,6 +26,7 @@ import { ITeamSharingService } from '../Utilities/Services/Interface/ITeamSharin
26
26
  import { AdaptableFrameworkComponent } from '../AdaptableOptions/AdaptableFrameworkComponent';
27
27
  import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelService';
28
28
  import { ColumnValuesComparer } from '../AdaptableOptions/GeneralOptions';
29
+ import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
29
30
  /**
30
31
  * The only interface for Adaptable
31
32
  *
@@ -48,6 +49,10 @@ export interface IAdaptable {
48
49
  * Avoid unnecessary store calls and rendering
49
50
  */
50
51
  isInitialised: boolean;
52
+ /**
53
+ * TRUE if the Adaptable custom tool panel (side-bar) is displayed
54
+ */
55
+ hasAdaptableToolPanel: boolean;
51
56
  /**
52
57
  * Set to true when adaptable is destroyed.
53
58
  */
@@ -67,6 +72,7 @@ export interface IAdaptable {
67
72
  AlertService: IAlertService;
68
73
  TeamSharingService: ITeamSharingService;
69
74
  MetamodelService: IMetamodelService;
75
+ RowEditService: IRowEditService;
70
76
  /**
71
77
  * INTERNAL ADAPTABLE EVENTS
72
78
  * These are not called externally - for that we use eventapi
@@ -139,7 +145,6 @@ export interface IAdaptable {
139
145
  autoSizeAllColumns(): void;
140
146
  updateColumnsIntoStore(): void;
141
147
  setColumnOrder(visibleColumnList: string[]): void;
142
- getUserDefinedHeaderName(columnId: string): string;
143
148
  getPrimaryKeyValueFromRowNode(rowNode: RowNode): any;
144
149
  getColumnValueDisplayValuePairList(columnId: string, visibleRowsOnly: boolean, onlyIncludeIds?: {
145
150
  [key: string]: boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -29,3 +29,8 @@ export declare type AngularFrameworkComponent<T = unknown> = {
29
29
  export declare type ReactFrameworkComponent = ({ adaptableApi, }: {
30
30
  adaptableApi: AdaptableApi;
31
31
  }) => ReactElement;
32
+ export interface CustomRenderContext {
33
+ visible: boolean;
34
+ element: HTMLDivElement;
35
+ adaptableApi: AdaptableApi;
36
+ }
@@ -9,7 +9,6 @@ import { AdaptablePlugin } from './AdaptablePlugin';
9
9
  import { SearchOptions } from './SearchOptions';
10
10
  import { ExportOptions } from './ExportOptions';
11
11
  import { TeamSharingOptions } from './TeamSharingOptions';
12
- import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
13
12
  import { MenuOptions } from './MenuOptions';
14
13
  import { EntitlementOptions } from './EntitlementOptions';
15
14
  import { NotificationsOptions } from './NotificationsOptions';
@@ -22,6 +21,7 @@ import { GridOptions, Module } from '@ag-grid-community/all-modules';
22
21
  import { FlashingCellOptions } from './FlashingCellOptions';
23
22
  import { AlertOptions } from './AlertOptions';
24
23
  import { AdaptableQLOptions } from './AdaptableQLOptions';
24
+ import { ColumnOptions } from './ColumnOptions';
25
25
  /**
26
26
  * 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
27
  */
@@ -96,9 +96,9 @@ export interface AdaptableOptions {
96
96
  */
97
97
  containerOptions?: ContainerOptions;
98
98
  /**
99
- * Predicate definitions provided by developers at Design-Time
99
+ * Options for managing Columns
100
100
  */
101
- customPredicateDefs?: AdaptablePredicateDef[];
101
+ columnOptions?: ColumnOptions;
102
102
  /**
103
103
  * Options related to managing the Dashboard in AdapTable
104
104
  *
@@ -1,4 +1,5 @@
1
1
  import { ExpressionFunctionMap } from '../parser/src/types';
2
+ import { AdaptablePredicateDef } from '../PredefinedConfig/Common/AdaptablePredicate';
2
3
  import { AdaptableModule, AdaptableQLModules } from '../PredefinedConfig/Common/Types';
3
4
  /**
4
5
  * Options for managing AdaptableQL - the Adaptable Query Lanaguage which evaluates Predicates and Expressions
@@ -23,6 +24,10 @@ export interface AdaptableQLOptions {
23
24
  *
24
25
  */
25
26
  expressionOptions?: ExpressionOptions;
27
+ /**
28
+ * Definitions for Custom provided Predicates
29
+ */
30
+ customPredicateDefs?: AdaptablePredicateDef[];
26
31
  }
27
32
  /**
28
33
  * Options for managing Expressions using AdapTableQL
@@ -52,7 +52,7 @@ export interface AlertOptions {
52
52
  /**
53
53
  * Function providing Message to display in Alert; if empty, AdapTable provides dynamically
54
54
  */
55
- alertMessageText?: (alertDefinition: AlertDefinition, cellDataChangedInfo?: CellDataChangedInfo) => string | undefined;
55
+ alertMessageText?: (alertMessageContext: AlertMessageContext) => string | undefined;
56
56
  }
57
57
  /**
58
58
  * Handles a Form Button Action
@@ -93,3 +93,16 @@ export interface AlertButtonContext extends BaseContext {
93
93
  */
94
94
  formData?: AdaptableFormData;
95
95
  }
96
+ /**
97
+ * Context used for creating bespoke Alert messages
98
+ */
99
+ export interface AlertMessageContext {
100
+ /**
101
+ * Current Alert Definition
102
+ */
103
+ alertDefinition: AlertDefinition;
104
+ /**
105
+ * Data change that might have triggered the Alert
106
+ */
107
+ cellDataChangedInfo?: CellDataChangedInfo;
108
+ }
@@ -0,0 +1,49 @@
1
+ import { Column } from '@ag-grid-community/all-modules';
2
+ /**
3
+ * Options related to managing Columns in Adaptable.
4
+ */
5
+ export interface ColumnOptions {
6
+ /**
7
+ * Provide an alternative Friendly Name for a Column
8
+ */
9
+ columnFriendlyName?: (columnFriendlyNameContext: ColumnFriendlyNameContext) => string | undefined;
10
+ /**
11
+ * Optional list of Column Types - used primarily for Special Columns
12
+ */
13
+ columnTypes?: string[];
14
+ /**
15
+ * Show warning if AdapTable cannot find a column
16
+ *
17
+ * @defaultValue true
18
+ * @gridInfoItem
19
+ */
20
+ showMissingColumnsWarning?: boolean;
21
+ /**
22
+ * Order Grouped Column automatically, deriving from Adaptable State if available (CustomSort or Layout ColumnSort)
23
+ *
24
+ * The default group order will be derived from (in the specified priority): 1. an active CustomSort, 2. the defined ColDef Comparator, 3. current Layout ColumnSort or 4. alphanumerically
25
+ * @defaultValue true
26
+ * @gridInfoItem
27
+ */
28
+ autoOrderGroupedColumns?: boolean;
29
+ /**
30
+ * Automatically removes a column from the grid when it becomes Row Grouped
31
+ *
32
+ * @defaultValue false
33
+ * @gridInfoItem
34
+ */
35
+ hideColumnWhenGrouped?: boolean;
36
+ }
37
+ /**
38
+ * Context used when setting a Column Friendly Name
39
+ */
40
+ export interface ColumnFriendlyNameContext {
41
+ /**
42
+ * Id of the Column
43
+ */
44
+ colId: string;
45
+ /**
46
+ * AG Grid ColDef for the Column
47
+ */
48
+ agColumn: Column;
49
+ }
@@ -1,8 +1,7 @@
1
- import { AdaptableApi } from '../Api/AdaptableApi';
2
1
  import { AdaptableButton } from '../PredefinedConfig/Common/AdaptableButton';
3
2
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
4
3
  import { DashboardState } from '../PredefinedConfig/DashboardState';
5
- import { BaseContext } from '../types';
4
+ import { BaseContext, CustomRenderContext } from '../types';
6
5
  import { AdaptableFrameworkComponent } from './AdaptableFrameworkComponent';
7
6
  /**
8
7
  * Options related to the Dashboard in Adaptable.
@@ -63,11 +62,7 @@ export interface CustomToolbar extends AdaptableObject {
63
62
  /**
64
63
  * Function to provide custom content when NOT using a Framework wrapper
65
64
  */
66
- render?: ({ visible, node, adaptableApi, }: {
67
- visible: boolean;
68
- node: HTMLDivElement;
69
- adaptableApi: AdaptableApi;
70
- }) => string | null;
65
+ render?: (customRenderContext: CustomRenderContext) => string | null;
71
66
  /**
72
67
  * The Framework-specific (Angular or React) component to be rendered
73
68
  */
@@ -1,4 +1,19 @@
1
1
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
2
+ import { ActionColumnButtonContext, AdaptableButton } from '../types';
3
+ export declare type AdaptableDataChangeHistoryAction = 'undo';
4
+ export interface DataChangeHistoryContext extends ActionColumnButtonContext {
5
+ /**
6
+ * Helper function to undo the change.
7
+ */
8
+ undoDataChange: () => void;
9
+ /**
10
+ * If the change references a group node.
11
+ */
12
+ isGroupNode: boolean;
13
+ }
14
+ export interface DataChangeHistoryButton extends AdaptableButton<DataChangeHistoryContext> {
15
+ Action?: AdaptableDataChangeHistoryAction;
16
+ }
2
17
  /**
3
18
  * Options to manage the 'Data Change History Module', which provides an overview of all previous changes, giving the possibility to undo specific changes
4
19
  */
@@ -17,4 +32,8 @@ export interface DataChangeHistoryOptions {
17
32
  * @gridInfoItem
18
33
  */
19
34
  showDataChange?: (cellDataChangedInfo: CellDataChangedInfo) => boolean;
35
+ /**
36
+ * Action button definition. Can be used to implement undo functionality.
37
+ */
38
+ actionColumnButton?: DataChangeHistoryButton | DataChangeHistoryButton[];
20
39
  }
@@ -1,6 +1,8 @@
1
+ import { RowNode } from '@ag-grid-community/all-modules';
2
+ import { AdaptableButton, AdaptableColumn, AdaptableFormData, BaseContext, RowFormSubmittedInfo, RowFormType } from '../../types';
1
3
  import { CellDataChangedInfo } from '../PredefinedConfig/Common/CellDataChangedInfo';
4
+ import { MathOperation } from '../PredefinedConfig/Common/Enums';
2
5
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
3
- import { SmartEditCustomOperation } from './SmartEdit';
4
6
  /**
5
7
  * Options related to Editing in Adaptable.
6
8
  *
@@ -22,9 +24,14 @@ export interface EditOptions {
22
24
  * Function which checks if given Grid Cell is editable
23
25
  */
24
26
  isCellEditable?: (gridCell: GridCell) => boolean;
25
- smartEdit?: {
26
- customOperations?: SmartEditCustomOperation[];
27
- };
27
+ /**
28
+ * Custom Operations to use in Smart Edit
29
+ */
30
+ smartEditCustomOperations?: SmartEditCustomOperation[];
31
+ /**
32
+ * Options for editing (create/update/delete) row entries in the grid.
33
+ */
34
+ rowFormOptions?: RowFormOptions;
28
35
  }
29
36
  /**
30
37
  * Used for Server Validation ie. after an edit has been made in Adaptable which should be checked on the Server
@@ -39,3 +46,84 @@ export interface ValidationResult {
39
46
  */
40
47
  NewValue?: any;
41
48
  }
49
+ /**
50
+ * Custom Operation used in Smart Edit Module
51
+ */
52
+ export declare type SmartEditCustomOperation = {
53
+ /**
54
+ * Name of the Custom Operation (as appears in AdapTable UI)
55
+ */
56
+ name: string;
57
+ /**
58
+ * Custom Operation function - returns a number
59
+ */
60
+ operation: (context: SmartEditOperationContext) => number;
61
+ };
62
+ export declare type SmartEditOperation = SmartEditCustomOperation | MathOperation;
63
+ /**
64
+ * Context used in Custom Smart Edit Operations
65
+ */
66
+ export interface SmartEditOperationContext extends BaseContext {
67
+ /**
68
+ * Smart Edit value
69
+ */
70
+ smartEditValue: number;
71
+ /**
72
+ * Current selected grid cell - contains column, row and cell value information
73
+ */
74
+ currentCell: GridCell;
75
+ }
76
+ /**
77
+ * Options for editing (create/update/delete) row entries in the grid
78
+ */
79
+ export interface RowFormOptions {
80
+ /**
81
+ * Custom form title provider
82
+ *
83
+ * @defaultValue 'Create New Row'/'Edit Row'
84
+ */
85
+ formTitle?: string | ((context: FormParamContext) => string);
86
+ /**
87
+ * Custom form description provider
88
+ *
89
+ * @defaultValue undefined
90
+ */
91
+ formDescription?: string | ((context: FormParamContext) => string);
92
+ /**
93
+ * Custom form field label provider
94
+ *
95
+ * @defaultValue undefined
96
+ */
97
+ formFieldLabel?: (context: FormFieldLabelContext) => string;
98
+ /**
99
+ * Custom form buttons provider. If provided, the custom implementation is responsible for firing the 'RowFormSubmitted' and/or invoking the 'onFormSubmit' callback (if necessary).
100
+ */
101
+ formButtons?: AdaptableButton<RowFormContext>[];
102
+ /**
103
+ * 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!
104
+ *
105
+ * @param rowFormSubmittedInfo the form submitted info
106
+ * @defaultValue undefined
107
+ */
108
+ onFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo) => void;
109
+ }
110
+ export declare type RowFormContext = CreateRowFormContext | EditRowFormContext;
111
+ export interface CreateRowFormContext extends BaseContext {
112
+ type: Extract<RowFormType, 'rowCreated'>;
113
+ formData: AdaptableFormData;
114
+ clonedRowNode?: RowNode;
115
+ }
116
+ export interface EditRowFormContext extends BaseContext {
117
+ type: Extract<RowFormType, 'rowEdited'>;
118
+ formData: AdaptableFormData;
119
+ rowNode: RowNode;
120
+ }
121
+ export interface FormParamContext extends BaseContext {
122
+ type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
123
+ rowNode?: RowNode;
124
+ }
125
+ export interface FormFieldLabelContext extends BaseContext {
126
+ type: Extract<RowFormType, 'rowEdited' | 'rowCreated'>;
127
+ column: AdaptableColumn;
128
+ rowNode?: RowNode;
129
+ }
@@ -9,7 +9,7 @@ export interface EntitlementOptions {
9
9
  *
10
10
  * @gridInfoItem
11
11
  */
12
- moduleEntitlements?: Entitlement[] | ((adaptableModule: AdaptableModule, userName: string, adaptableId: string, defaultAccessLevel: AccessLevel) => AccessLevel | undefined);
12
+ moduleEntitlements?: Entitlement[] | ((entitlementContext: EntitlementContext) => AccessLevel | undefined);
13
13
  /**
14
14
  * AccessLevel to use when an Entitlement is not explicitly set; can be hardcoded value or a function to invoke
15
15
  *
@@ -18,3 +18,9 @@ export interface EntitlementOptions {
18
18
  */
19
19
  defaultAccessLevel?: AccessLevel | ((userName: string, adaptableId: string) => AccessLevel);
20
20
  }
21
+ export interface EntitlementContext {
22
+ adaptableModule: AdaptableModule;
23
+ userName: string;
24
+ adaptableId: string;
25
+ defaultAccessLevel: AccessLevel;
26
+ }
@@ -81,7 +81,7 @@ export interface CustomDestination {
81
81
  /**
82
82
  * Function invoked when export is applied (used if no form is supplied)
83
83
  */
84
- onExport?: (report: Report, reportData: ReportData) => void;
84
+ onExport?: (reportContext: ReportContext) => void;
85
85
  }
86
86
  /**
87
87
  * Context required by functions when using an Export Button
@@ -106,3 +106,7 @@ export interface ExportButtonContext extends BaseContext {
106
106
  }
107
107
  export declare type SystemExportDestinations = SystemExportDestination[];
108
108
  export declare type SystemExportDestination = 'Excel' | 'CSV' | 'Clipboard' | 'JSON';
109
+ export interface ReportContext extends BaseContext {
110
+ report: Report;
111
+ reportData: ReportData;
112
+ }
@@ -1,6 +1,6 @@
1
1
  import { AdaptableColumn } from '../PredefinedConfig/Common/AdaptableColumn';
2
2
  import { FilterActionOnDataChange } from '../PredefinedConfig/Common/FilterActionOnDataChange';
3
- import { SystemFilterPredicateId, SystemFilterPredicateIds } from '../PredefinedConfig/FilterState';
3
+ import { SystemFilterPredicateId, SystemFilterPredicateIds } from '../../types';
4
4
  import { StrictExtract } from '../Utilities/Extensions/TypeExtensions';
5
5
  /**
6
6
  * Options for managing Filtering in AdapTable
@@ -145,4 +145,9 @@ export interface FilterOptions {
145
145
  * Which Adaptable System Filter Predicates are available
146
146
  */
147
147
  systemFilters?: SystemFilterPredicateIds;
148
+ /**
149
+ * Whether to display Quick Filter Bar between Column Header and the Grid (provided its been setup)
150
+ * @defaultValue true
151
+ */
152
+ showQuickFilter?: boolean;
148
153
  }
@@ -1,4 +1,5 @@
1
- import { ContextMenuContext } from '../../types';
1
+ import { ContextMenuContext, GridCell } from '../../types';
2
+ import { CustomFDC3Context } from '../PredefinedConfig/Common/FDC3Context';
2
3
  /**
3
4
  * Options required for when using the Finance plugin
4
5
  */
@@ -27,6 +28,14 @@ export interface FinancePluginOptions {
27
28
  * FDC3 Organizations
28
29
  */
29
30
  organizationColumns?: OrganizationColumn[];
31
+ /**
32
+ * Custom FDC3 Columns
33
+ */
34
+ customFDC3Columns?: CustomFDC3Column[];
35
+ /**
36
+ * Custom FDC3 Intents
37
+ */
38
+ customFDC3Intents?: CustomFDC3Intent[];
30
39
  };
31
40
  /**
32
41
  * Columns to use a Weighted Average aggregation
@@ -69,11 +78,15 @@ export interface FDC3Column {
69
78
  /**
70
79
  * FDC3 intents which the Column can raise
71
80
  */
72
- intents?: any;
81
+ intents?: any[];
73
82
  /**
74
83
  * Label to display in Intent Context Menu Item
75
84
  */
76
85
  intentContextMenuLabel?: string | ((raiseFDC3IntentContext: RaiseFDC3IntentContext) => string);
86
+ /**
87
+ * Returns the icon to display in the Raise Intent Context Menu Item
88
+ */
89
+ getIconForIntent?: (intent: FDC3Intent | CustomFDC3Intent) => any;
77
90
  }
78
91
  /**
79
92
  * A Column which will be defined as an FDC3 Instrument
@@ -222,10 +235,27 @@ export declare type CountryIntents = CountryIntent[];
222
235
  * FDC3 Intents available to a Country Column
223
236
  */
224
237
  export declare type CountryIntent = 'ViewChart';
238
+ /**
239
+ * A Column which will be defined as Custom FDC3 (can be any datatype)
240
+ */
241
+ export interface CustomFDC3Column extends FDC3Column {
242
+ /**
243
+ * Custom FDC3 Intents available to the column
244
+ */
245
+ intents: CustomFDC3Intent[];
246
+ /**
247
+ * Function which creates FDC3 context for the current column and row
248
+ */
249
+ createContext: (gridCell: GridCell) => CustomFDC3Context;
250
+ }
225
251
  /**
226
252
  * Full list of FDC3 Intents available - each FDC3 Column can use a subset
227
253
  */
228
254
  export declare type FDC3Intent = 'StartCall' | 'StartChat' | 'ViewAnalysis' | 'ViewChart' | 'ViewContact' | 'ViewInstrument' | 'ViewNews' | 'ViewQuote';
255
+ /**
256
+ * Custom FDC3 Intent - just a string value
257
+ */
258
+ export declare type CustomFDC3Intent = string;
229
259
  /**
230
260
  * Context passed into Raise FDC3 Intent functions (e.g. get label)
231
261
  */
@@ -233,5 +263,5 @@ export interface RaiseFDC3IntentContext extends ContextMenuContext {
233
263
  /**
234
264
  * FDC3 Intent that was raised
235
265
  */
236
- intent: FDC3Intent;
266
+ intent: FDC3Intent | CustomFDC3Intent;
237
267
  }
@@ -1,4 +1,4 @@
1
- import { AdaptableScope } from '../../types';
1
+ import { AdaptableForm, AdaptableObject, AdaptableScope, BaseContext } from '../../types';
2
2
  import { AdaptableComparerFunction } from '../PredefinedConfig/Common/AdaptableComparerFunction';
3
3
  import { AlternativeModuleName } from '../PredefinedConfig/Common/AlternativeModuleName';
4
4
  import { CellSummaryOperation } from '../PredefinedConfig/Common/CellSummary';
@@ -20,13 +20,6 @@ export interface GeneralOptions {
20
20
  * @deprecated starting with Adaptable v10
21
21
  */
22
22
  hideEmptyGroupRows?: boolean;
23
- /**
24
- * Show warning if AdapTable cannot find a column
25
- *
26
- * @defaultValue true
27
- * @gridInfoItem
28
- */
29
- showMissingColumnsWarning?: boolean;
30
23
  /**
31
24
  * Show aggregated totals row at top of Grid when row grouping
32
25
  *
@@ -34,21 +27,6 @@ export interface GeneralOptions {
34
27
  * @gridInfoItem
35
28
  */
36
29
  showGroupingTotalsAsHeader?: boolean;
37
- /**
38
- * Order Grouped Column automatically, deriving from Adaptable State if available (CustomSort or Layout ColumnSort)
39
- *
40
- * The default group order will be derived from (in the specified priority): 1. an active CustomSort, 2. the defined ColDef Comparator, 3. current Layout ColumnSort or 4. alphanumerically
41
- * @defaultValue true
42
- * @gridInfoItem
43
- */
44
- autoOrderGroupedColumns?: boolean;
45
- /**
46
- * Automatically removes a column from the grid when it becomes Row Grouped
47
- *
48
- * @defaultValue false
49
- * @gridInfoItem
50
- */
51
- hideColumnWhenGrouped?: boolean;
52
30
  /**
53
31
  * Alternative names to use for Adaptable Modules in toolbars and menus
54
32
  *
@@ -77,6 +55,10 @@ export interface GeneralOptions {
77
55
  * CustomSort column comparer functions
78
56
  */
79
57
  customSortComparers?: ColumnValuesComparer[];
58
+ /**
59
+ * Collection of Data Sets to provide Data to AdapTable
60
+ */
61
+ dataSets?: DataSet[];
80
62
  }
81
63
  /**
82
64
  * Comparer object for Column Values - used for custom sorting
@@ -91,3 +73,20 @@ export interface ColumnValuesComparer {
91
73
  */
92
74
  comparer: AdaptableComparerFunction;
93
75
  }
76
+ /**
77
+ * Defines a Data Set object that can provide data to AdapTable
78
+ */
79
+ export interface DataSet extends AdaptableObject {
80
+ /**
81
+ * Name of Data Set
82
+ */
83
+ name: string;
84
+ /**
85
+ * Describes the Data Set
86
+ */
87
+ description: string;
88
+ /**
89
+ * Params for Data Set popup form
90
+ */
91
+ form?: AdaptableForm<BaseContext>;
92
+ }
@@ -1,10 +1,8 @@
1
1
  import { AdaptableOptions, AdaptableApi } from '../types';
2
2
  /**
3
- * Plugin Options used when creating a Master / Detail grid
4
- *
5
- * Passed into the plugin as the only argument.
3
+ * Plugin Options used when creating a Master / Detail grid - passed into the plugin as the only argument.
6
4
  */
7
- export interface MasterDetailAgGridPluginOptions {
5
+ export interface MasterDetailPluginOptions {
8
6
  /**
9
7
  * `AdaptableOptions` object to use for child Data Grids; **all** will share the same behaviour and State
10
8
  */
@@ -1,5 +1,6 @@
1
- import { AdaptableApi, AdaptableFrameworkComponent, AdaptableIcon } from '../../types';
1
+ import { AdaptableFrameworkComponent, AdaptableIcon } from '../../types';
2
2
  import { AdaptableSettingsPanel } from '../PredefinedConfig/Common/Types';
3
+ import { CustomRenderContext } from './AdaptableFrameworkComponent';
3
4
  export interface SettingsPanelOptions {
4
5
  /**
5
6
  * Title for the Settings Panel
@@ -76,11 +77,7 @@ export interface CustomSettingsPanel {
76
77
  /**
77
78
  * Function to provide bespoke content when NOT using a Framework wrapper
78
79
  */
79
- render?: ({ visible, node, adaptableApi, }: {
80
- visible: boolean;
81
- node: HTMLDivElement;
82
- adaptableApi: AdaptableApi;
83
- }) => string | null;
80
+ render?: (customRenderContext: CustomRenderContext) => string | null;
84
81
  /**
85
82
  * Framework-specific (Angular or React) component to be rendered
86
83
  */