@adaptabletools/adaptable 12.1.7 → 12.2.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 (237) hide show
  1. package/base.css +127 -71
  2. package/bundle.cjs.js +108 -108
  3. package/index.css +145 -83
  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 +1 -0
  8. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +44 -10
  9. package/src/AdaptableOptions/FilterOptions.d.ts +12 -0
  10. package/src/AdaptableOptions/FinancePluginOptions.d.ts +22 -1
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +10 -1
  12. package/src/AdaptableOptions/StateOptions.d.ts +25 -12
  13. package/src/Api/ColumnApi.d.ts +5 -0
  14. package/src/Api/ExportApi.d.ts +5 -0
  15. package/src/Api/FilterApi.d.ts +23 -0
  16. package/src/Api/GridApi.d.ts +1 -0
  17. package/src/Api/Implementation/AlertApiImpl.js +1 -2
  18. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  19. package/src/Api/Implementation/ColumnApiImpl.js +5 -0
  20. package/src/Api/Implementation/ExportApiImpl.d.ts +3 -1
  21. package/src/Api/Implementation/ExportApiImpl.js +19 -3
  22. package/src/Api/Implementation/FilterApiImpl.d.ts +5 -0
  23. package/src/Api/Implementation/FilterApiImpl.js +25 -2
  24. package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -2
  26. package/src/Api/Implementation/InternalApiImpl.js +34 -3
  27. package/src/Api/Implementation/PredicateApiImpl.js +4 -0
  28. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -0
  29. package/src/Api/Implementation/QueryLanguageApiImpl.js +14 -1
  30. package/src/Api/InternalApi.d.ts +6 -2
  31. package/src/Api/QueryLanguageApi.d.ts +5 -0
  32. package/src/PredefinedConfig/CalculatedColumnState.d.ts +2 -2
  33. package/src/PredefinedConfig/Common/AdaptablePredicate.js +16 -4
  34. package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -1
  35. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +6 -0
  36. package/src/PredefinedConfig/Common/AggregationColumns.js +4 -0
  37. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
  38. package/src/PredefinedConfig/Common/Enums.d.ts +0 -15
  39. package/src/PredefinedConfig/Common/Enums.js +1 -18
  40. package/src/PredefinedConfig/ExportState.d.ts +12 -4
  41. package/src/PredefinedConfig/LayoutState.d.ts +2 -1
  42. package/src/PredefinedConfig/PopupState.d.ts +1 -2
  43. package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
  44. package/src/Redux/ActionsReducers/AlertRedux.js +1 -1
  45. package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
  46. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +1 -1
  47. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
  48. package/src/Redux/ActionsReducers/CustomSortRedux.js +1 -1
  49. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +1 -1
  50. package/src/Redux/ActionsReducers/FlashingCellRedux.js +1 -1
  51. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
  52. package/src/Redux/ActionsReducers/FormatColumnRedux.js +1 -1
  53. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +28 -0
  54. package/src/Redux/ActionsReducers/LayoutRedux.js +80 -2
  55. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
  56. package/src/Redux/ActionsReducers/PlusMinusRedux.js +1 -1
  57. package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
  58. package/src/Redux/ActionsReducers/PopupRedux.js +1 -28
  59. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
  60. package/src/Redux/ActionsReducers/ScheduleRedux.js +5 -5
  61. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
  62. package/src/Redux/ActionsReducers/ShortcutRedux.js +1 -1
  63. package/src/Redux/Store/AdaptableStore.js +15 -6
  64. package/src/Strategy/AlertModule.d.ts +1 -0
  65. package/src/Strategy/AlertModule.js +20 -0
  66. package/src/Strategy/BulkUpdateModule.d.ts +1 -1
  67. package/src/Strategy/CalculatedColumnModule.js +3 -3
  68. package/src/Strategy/ExportModule.d.ts +0 -1
  69. package/src/Strategy/ExportModule.js +0 -16
  70. package/src/Strategy/FilterModule.js +6 -0
  71. package/src/Strategy/Interface/IModule.d.ts +4 -0
  72. package/src/Strategy/LayoutModule.js +20 -20
  73. package/src/Strategy/QueryModule.js +1 -1
  74. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +0 -13
  75. package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +16 -1
  76. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +15 -11
  77. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +3 -4
  78. package/src/Strategy/Utilities/getExpressionViewItems.js +3 -3
  79. package/src/Strategy/Utilities/getRuleViewItems.js +1 -1
  80. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  81. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  82. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -0
  83. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +12 -2
  84. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +30 -66
  85. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +22 -6
  86. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +423 -220
  87. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +7 -1
  88. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +25 -7
  89. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +0 -1
  90. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +6 -54
  91. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  92. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +31 -5
  93. package/src/Utilities/Interface/MessagePopups.d.ts +0 -4
  94. package/src/Utilities/ObjectFactory.d.ts +4 -2
  95. package/src/Utilities/ObjectFactory.js +16 -3
  96. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +25 -0
  97. package/src/Utilities/Services/AggregatedScalarLiveValue.js +103 -0
  98. package/src/Utilities/Services/AlertService.d.ts +0 -1
  99. package/src/Utilities/Services/AlertService.js +5 -17
  100. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +4 -4
  101. package/src/Utilities/Services/CalculatedColumnExpressionService.js +29 -154
  102. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
  103. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +8 -3
  104. package/src/Utilities/Services/QueryLanguageService.d.ts +8 -4
  105. package/src/Utilities/Services/QueryLanguageService.js +68 -25
  106. package/src/Utilities/Services/ReportService.js +48 -48
  107. package/src/View/AdaptableView.js +1 -2
  108. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
  109. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +10 -10
  110. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +3 -0
  111. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -0
  112. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +14 -15
  113. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
  114. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
  115. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +7 -0
  116. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +280 -0
  117. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.d.ts +1 -0
  118. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.js +5 -0
  119. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +1 -1
  120. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +4 -4
  121. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +2 -8
  122. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +1 -1
  123. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -3
  124. package/src/View/AdaptableWizardView/Wizard.js +2 -2
  125. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -1
  126. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -8
  127. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.d.ts +2 -0
  128. package/src/View/CalculatedColumn/Utilities/{getCalculatedColumnSettingTags.js → getCalculatedColumnSettingsTags.js} +3 -3
  129. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +10 -0
  130. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +80 -0
  131. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +24 -14
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -2
  133. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -52
  134. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  135. package/src/View/Components/AdaptableObjectCollection/index.d.ts +3 -4
  136. package/src/View/Components/AdaptableObjectCollection/index.js +7 -8
  137. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +42 -6
  138. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
  139. package/src/View/Components/AdaptableObjectRow/index.js +1 -4
  140. package/src/View/Components/EntityRulesEditor/index.js +28 -7
  141. package/src/View/Components/FilterForm/FilterForm.js +8 -4
  142. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -0
  143. package/src/View/Components/FilterForm/QuickFilterForm.js +19 -7
  144. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.d.ts +9 -0
  145. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +28 -0
  146. package/src/View/Components/PermittedValuesSelector/index.d.ts +1 -0
  147. package/src/View/Components/PermittedValuesSelector/index.js +5 -0
  148. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +2 -2
  149. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -0
  150. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
  151. package/src/View/Components/Popups/AdaptableToaster.js +2 -7
  152. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
  153. package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -4
  154. package/src/View/Components/ValueSelector/index.js +8 -19
  155. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  156. package/src/View/Dashboard/DashboardPopup.js +11 -10
  157. package/src/View/Export/ExportViewPanel.d.ts +1 -2
  158. package/src/View/Export/ExportViewPanel.js +4 -8
  159. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +1 -2
  160. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +11 -12
  161. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +1 -2
  162. package/src/View/Export/Wizard/ReportRowTypeWizard.js +12 -13
  163. package/src/View/Export/Wizard/ReportRowsWizardSection.js +4 -3
  164. package/src/View/Export/Wizard/ReportSettingsWizard.js +1 -2
  165. package/src/View/Filter/FilterViewPanel.js +21 -4
  166. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  167. package/src/View/GridInfo/AdaptableObjectsSummary.js +5 -3
  168. package/src/View/GridInfo/AdaptableOptionsComponent.js +1 -1
  169. package/src/View/GridInfo/GridInfoPopup.js +6 -7
  170. package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.d.ts +0 -0
  171. package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.js +0 -0
  172. package/src/View/Layout/Wizard/LayoutWizard.js +1 -0
  173. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +1 -0
  174. package/src/View/Layout/Wizard/sections/AggregationsSection.js +69 -8
  175. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  176. package/src/View/Query/QueryViewPanel.js +1 -1
  177. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -4
  178. package/src/View/StateManagement/StateManagementPopup.js +18 -19
  179. package/src/agGrid/Adaptable.d.ts +12 -3
  180. package/src/agGrid/Adaptable.js +264 -148
  181. package/src/agGrid/agGridHelper.d.ts +1 -0
  182. package/src/agGrid/agGridHelper.js +5 -3
  183. package/src/agGrid/agGridMenuHelper.d.ts +1 -0
  184. package/src/agGrid/agGridMenuHelper.js +4 -2
  185. package/src/agGrid/weightedAverage.d.ts +6 -0
  186. package/src/agGrid/weightedAverage.js +66 -0
  187. package/src/bundle-dependencies/bundles/react-toastify/index.js +1 -1
  188. package/src/components/DragAndDropContext/ModuleManager.js +3 -4
  189. package/src/components/DragAndDropContext/TabList.js +9 -30
  190. package/src/components/DragAndDropContext/UnusedPanel.js +1 -7
  191. package/src/components/DropdownButton/index.js +2 -2
  192. package/src/components/EmptyContent/index.js +2 -2
  193. package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -0
  194. package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
  195. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  196. package/src/components/ExpressionEditor/EditorInput.js +24 -4
  197. package/src/components/ExpressionEditor/{EditorInputReactive.d.ts → EditorInputWithWhereClause.d.ts} +3 -3
  198. package/src/components/ExpressionEditor/{EditorInputReactive.js → EditorInputWithWhereClause.js} +6 -5
  199. package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.d.ts +2 -0
  200. package/src/components/ExpressionEditor/{editorButtonsReactive.js → editorButtonsAggregatedBoolean.js} +22 -37
  201. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  202. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.d.ts +2 -0
  203. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +50 -0
  204. package/src/components/ExpressionEditor/editorButtonsObservable.d.ts +2 -0
  205. package/src/components/ExpressionEditor/editorButtonsObservable.js +40 -0
  206. package/src/components/ExpressionEditor/index.d.ts +1 -1
  207. package/src/components/ExpressionEditor/index.js +50 -19
  208. package/src/metamodel/adaptable.metamodel.d.ts +86 -5
  209. package/src/metamodel/adaptable.metamodel.js +1 -1
  210. package/src/parser/src/types.d.ts +14 -10
  211. package/src/types.d.ts +4 -4
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +0 -2
  215. package/src/View/Layout/LayoutEditorStandalonePopup.d.ts +0 -3
  216. package/src/View/Layout/LayoutEditorStandalonePopup.js +0 -78
  217. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.d.ts +0 -27
  218. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +0 -86
  219. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.d.ts +0 -16
  220. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +0 -89
  221. package/src/View/Layout/Wizard/LayoutEditor/PivotList.d.ts +0 -15
  222. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +0 -70
  223. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.d.ts +0 -15
  224. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +0 -70
  225. package/src/View/Layout/Wizard/LayoutEditor/droppableIds.d.ts +0 -7
  226. package/src/View/Layout/Wizard/LayoutEditor/droppableIds.js +0 -11
  227. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.d.ts +0 -6
  228. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +0 -26
  229. package/src/View/Layout/Wizard/LayoutEditor/index.d.ts +0 -9
  230. package/src/View/Layout/Wizard/LayoutEditor/index.js +0 -367
  231. package/src/View/Layout/Wizard/LayoutEditor/reducer.d.ts +0 -28
  232. package/src/View/Layout/Wizard/LayoutEditor/reducer.js +0 -46
  233. package/src/View/Layout/Wizard/LayoutEditor/utils.d.ts +0 -10
  234. package/src/View/Layout/Wizard/LayoutEditor/utils.js +0 -14
  235. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +0 -30
  236. package/src/View/Layout/Wizard/LayoutEditorWizard.js +0 -132
  237. package/src/components/ExpressionEditor/editorButtonsReactive.d.ts +0 -2
@@ -21,8 +21,8 @@ class ReportService {
21
21
  return {
22
22
  Uuid: Uuid_1.createUuid(),
23
23
  Name: GeneralConstants_1.VISUAL_DATA_REPORT,
24
- ReportColumnScope: Enums_1.ReportColumnScope.VisibleColumns,
25
- ReportRowScope: Enums_1.ReportRowScope.VisibleRows,
24
+ ReportColumnScope: 'VisibleColumns',
25
+ ReportRowScope: 'VisibleRows',
26
26
  Query: undefined,
27
27
  IsReadOnly: true,
28
28
  };
@@ -30,8 +30,8 @@ class ReportService {
30
30
  return {
31
31
  Uuid: Uuid_1.createUuid(),
32
32
  Name: GeneralConstants_1.ALL_DATA_REPORT,
33
- ReportColumnScope: Enums_1.ReportColumnScope.AllColumns,
34
- ReportRowScope: Enums_1.ReportRowScope.AllRows,
33
+ ReportColumnScope: 'AllColumns',
34
+ ReportRowScope: 'AllRows',
35
35
  Query: undefined,
36
36
  IsReadOnly: true,
37
37
  };
@@ -39,8 +39,8 @@ class ReportService {
39
39
  return {
40
40
  Uuid: Uuid_1.createUuid(),
41
41
  Name: GeneralConstants_1.CURRENT_DATA_REPORT,
42
- ReportColumnScope: Enums_1.ReportColumnScope.VisibleColumns,
43
- ReportRowScope: Enums_1.ReportRowScope.VisibleRows,
42
+ ReportColumnScope: 'VisibleColumns',
43
+ ReportRowScope: 'VisibleRows',
44
44
  Query: undefined,
45
45
  IsReadOnly: true,
46
46
  };
@@ -48,8 +48,8 @@ class ReportService {
48
48
  return {
49
49
  Uuid: Uuid_1.createUuid(),
50
50
  Name: GeneralConstants_1.SELECTED_CELLS_REPORT,
51
- ReportColumnScope: Enums_1.ReportColumnScope.SelectedColumns,
52
- ReportRowScope: Enums_1.ReportRowScope.SelectedCellRows,
51
+ ReportColumnScope: 'SelectedColumns',
52
+ ReportRowScope: 'SelectedCellRows',
53
53
  Query: undefined,
54
54
  IsReadOnly: true,
55
55
  };
@@ -57,8 +57,8 @@ class ReportService {
57
57
  return {
58
58
  Uuid: Uuid_1.createUuid(),
59
59
  Name: GeneralConstants_1.SELECTED_ROWS_REPORT,
60
- ReportColumnScope: Enums_1.ReportColumnScope.VisibleColumns,
61
- ReportRowScope: Enums_1.ReportRowScope.SelectedRows,
60
+ ReportColumnScope: 'VisibleColumns',
61
+ ReportRowScope: 'SelectedRows',
62
62
  Query: undefined,
63
63
  IsReadOnly: true,
64
64
  };
@@ -91,38 +91,42 @@ class ReportService {
91
91
  }
92
92
  GetReportColumnScopeShortDescription(report) {
93
93
  var _a, _b;
94
+ if (this.adaptableApi.exportApi.isCustomReport(report)) {
95
+ return ['[Custom Columns]'];
96
+ }
94
97
  switch (report.ReportColumnScope) {
95
- case Enums_1.ReportColumnScope.AllColumns:
98
+ case 'AllColumns':
96
99
  return ['[All Columns]'];
97
- case Enums_1.ReportColumnScope.VisibleColumns:
100
+ case 'VisibleColumns':
98
101
  return ['[Visible Columns]'];
99
- case Enums_1.ReportColumnScope.SelectedColumns:
102
+ case 'SelectedColumns':
100
103
  return ['[Selected Columns]'];
101
- case Enums_1.ReportColumnScope.ScopeColumns:
104
+ case 'ScopeColumns':
102
105
  if ('ColumnIds' in (report === null || report === void 0 ? void 0 : report.Scope)) {
103
106
  return (_b = (_a = report.Scope.ColumnIds).map) === null || _b === void 0 ? void 0 : _b.call(_a, (columnId) => { var _a; return (_a = this.adaptableApi.columnApi.getFriendlyNameFromColumnId(columnId)) !== null && _a !== void 0 ? _a : columnId; });
104
107
  }
105
108
  return ['[Bespoke Columns]'];
106
- case Enums_1.ReportColumnScope.CustomColumns:
107
- return ['[Custom Columns]'];
108
109
  }
109
110
  }
110
111
  GetReportColumnScopeLongDescription(report) {
112
+ if (this.adaptableApi.exportApi.isCustomReport(report)) {
113
+ return '[Custom Columns]';
114
+ }
111
115
  switch (report.ReportColumnScope) {
112
- case Enums_1.ReportColumnScope.AllColumns:
116
+ case 'AllColumns':
113
117
  return '[All Columns]';
114
- case Enums_1.ReportColumnScope.VisibleColumns:
118
+ case 'VisibleColumns':
115
119
  return '[Visible Columns]';
116
- case Enums_1.ReportColumnScope.SelectedColumns:
120
+ case 'SelectedColumns':
117
121
  return '[Selected Columns]';
118
- case Enums_1.ReportColumnScope.ScopeColumns:
122
+ case 'ScopeColumns':
119
123
  return this.adaptableApi.scopeApi.getScopeDescription(report.Scope);
120
- case Enums_1.ReportColumnScope.CustomColumns:
121
- return '[Custom Columns]';
122
124
  }
123
125
  }
124
126
  GetReportExpressionDescription(report, cols) {
125
- var _a;
127
+ if (this.adaptableApi.exportApi.isCustomReport(report)) {
128
+ return '[Custom Data]';
129
+ }
126
130
  if (this.IsSystemReport(report.Name)) {
127
131
  if (report.Name == GeneralConstants_1.ALL_DATA_REPORT) {
128
132
  return '[All Data]';
@@ -142,38 +146,39 @@ class ReportService {
142
146
  }
143
147
  else {
144
148
  switch (report.ReportRowScope) {
145
- case Enums_1.ReportRowScope.AllRows:
149
+ case 'AllRows':
146
150
  return '[All Rows]';
147
- case Enums_1.ReportRowScope.VisibleRows:
151
+ case 'VisibleRows':
148
152
  return '[Visible Rows]';
149
- case Enums_1.ReportRowScope.SelectedRows:
153
+ case 'SelectedRows':
150
154
  return '[Selected Rows]';
151
- case Enums_1.ReportRowScope.ExpressionRows:
152
- return (_a = report.Query) === null || _a === void 0 ? void 0 : _a.BooleanExpression;
153
- case Enums_1.ReportRowScope.CustomRows:
154
- return '[Custom Rows]';
155
+ case 'ExpressionRows':
156
+ return this.adaptableApi.internalApi.getAdaptableQueryExpressionText(report.Query);
155
157
  }
156
158
  }
157
159
  }
158
160
  GetReportColumnsForReport(report, includePrimaryKey = false) {
159
161
  let reportColumns = [];
160
162
  let gridColumns = this.adaptableApi.columnApi.getColumns();
163
+ if (this.adaptableApi.exportApi.isCustomReport(report)) {
164
+ return reportColumns;
165
+ }
161
166
  // first get the cols depending on the Column Scope
162
167
  switch (report.ReportColumnScope) {
163
- case Enums_1.ReportColumnScope.AllColumns:
168
+ case 'AllColumns':
164
169
  reportColumns = gridColumns;
165
170
  break;
166
- case Enums_1.ReportColumnScope.VisibleColumns:
171
+ case 'VisibleColumns':
167
172
  reportColumns = gridColumns.filter((c) => c.visible);
168
173
  break;
169
- case Enums_1.ReportColumnScope.SelectedColumns:
174
+ case 'SelectedColumns':
170
175
  // we extract the selected columns from the grid columns to preserve the grid column order
171
176
  const selectedColumnIds = this.adaptableApi.gridApi
172
177
  .getSelectedCellInfo()
173
178
  .columns.map((column) => column.columnId);
174
179
  reportColumns = gridColumns.filter((gridColumn) => selectedColumnIds.includes(gridColumn.columnId));
175
180
  break;
176
- case Enums_1.ReportColumnScope.ScopeColumns:
181
+ case 'ScopeColumns':
177
182
  if ('ColumnIds' in report.Scope) {
178
183
  reportColumns = report.Scope.ColumnIds.map((columnId) => this.adaptableApi.columnApi.getColumnFromId(columnId)).filter((c) => c);
179
184
  }
@@ -181,9 +186,6 @@ class ReportService {
181
186
  reportColumns = this.adaptableApi.scopeApi.getColumnsForScope(report.Scope);
182
187
  }
183
188
  break;
184
- case Enums_1.ReportColumnScope.CustomColumns:
185
- // nothing required if custom coluns
186
- break;
187
189
  }
188
190
  if (includePrimaryKey) {
189
191
  const pkColumn = reportColumns.find((column) => column.columnId === this.adaptableApi.internalApi.getAdaptableOptions().primaryKey);
@@ -202,14 +204,16 @@ class ReportService {
202
204
  friendlyName: column.friendlyName,
203
205
  dataType: column.dataType,
204
206
  }));
205
- if (ArrayExtensions_1.default.IsNullOrEmpty(columns) &&
206
- report.ReportRowScope !== Enums_1.ReportRowScope.CustomRows) {
207
+ if (this.adaptableApi.exportApi.isCustomReport(report)) {
208
+ return this.adaptableApi.exportApi.runCustomReport(report.Name);
209
+ }
210
+ if (ArrayExtensions_1.default.IsNullOrEmpty(columns)) {
207
211
  return { columns: [], rows: [] };
208
212
  }
209
213
  const data = { columns, rows: [] };
210
214
  const columnIds = columns.map((column) => column.columnId);
211
215
  switch (report.ReportRowScope) {
212
- case Enums_1.ReportRowScope.AllRows:
216
+ case 'AllRows':
213
217
  this.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
214
218
  // skip row groups
215
219
  if (!rowNode.group) {
@@ -217,7 +221,7 @@ class ReportService {
217
221
  }
218
222
  });
219
223
  break;
220
- case Enums_1.ReportRowScope.VisibleRows:
224
+ case 'VisibleRows':
221
225
  this.adaptableApi.internalApi.forAllVisibleRowNodesDo((rowNode) => {
222
226
  // skip row groups
223
227
  if (!rowNode.group) {
@@ -225,7 +229,7 @@ class ReportService {
225
229
  }
226
230
  });
227
231
  break;
228
- case Enums_1.ReportRowScope.ExpressionRows:
232
+ case 'ExpressionRows':
229
233
  this.adaptableApi.internalApi.forAllRowNodesDo((rowNode) => {
230
234
  var _a;
231
235
  if (this.adaptableApi.internalApi
@@ -235,7 +239,7 @@ class ReportService {
235
239
  }
236
240
  });
237
241
  break;
238
- case Enums_1.ReportRowScope.SelectedCellRows:
242
+ case 'SelectedCellRows':
239
243
  const selectedCellInfo = this.adaptableApi.gridApi.getSelectedCellInfo();
240
244
  const { gridCells: GridCells } = selectedCellInfo;
241
245
  let selectedCellsByPrimaryKey = groupBy_1.default(GridCells, 'primaryKeyValue');
@@ -255,7 +259,7 @@ class ReportService {
255
259
  }
256
260
  });
257
261
  break;
258
- case Enums_1.ReportRowScope.SelectedRows:
262
+ case 'SelectedRows':
259
263
  const selectedRowInfo = this.adaptableApi.gridApi.getSelectedRowInfo();
260
264
  const selectedGridRowPrimaryKeys = (_b = (_a = selectedRowInfo === null || selectedRowInfo === void 0 ? void 0 : selectedRowInfo.gridRows) === null || _a === void 0 ? void 0 : _a.filter((gr) => gr.rowInfo.isGroup == false).map((gridRow) => gridRow.primaryKeyValue)) !== null && _b !== void 0 ? _b : [];
261
265
  if (selectedGridRowPrimaryKeys.length) {
@@ -267,10 +271,6 @@ class ReportService {
267
271
  });
268
272
  }
269
273
  break;
270
- case Enums_1.ReportRowScope.CustomRows:
271
- const reportData = this.adaptableApi.exportApi.runCustomReport(report.Name);
272
- return reportData;
273
- // break;
274
274
  }
275
275
  return data;
276
276
  }
@@ -25,7 +25,7 @@ class AdaptableView extends React.Component {
25
25
  this.props.AdaptableApi.internalApi.getModuleService().isModuleAvailable('Dashboard') && (React.createElement(Dashboard_1.Dashboard, { api: this.props.AdaptableApi })),
26
26
  React.createElement(AdaptableLoadingScreen_1.AdaptableLoadingScreen, { onClose: this.props.onCloseLoadingPopup, showLoadingScreen: this.props.PopupState.LoadingPopup.ShowLoadingPopup }),
27
27
  this.props.PopupState.PromptPopup.ShowPromptPopup && (React.createElement(AdaptablePopupPrompt_1.AdaptablePopupPrompt, { message: this.props.PopupState.PromptPopup.Message, header: this.props.PopupState.PromptPopup.Header, onClose: this.props.onClosePromptPopup, onConfirm: this.props.onConfirmPromptPopup, onConfirmActionCreator: this.props.PopupState.PromptPopup.ConfirmActionCreator, defaultValue: this.props.PopupState.PromptPopup.DefaultValue })),
28
- React.createElement(AdaptablePopupConfirmation_1.AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi }),
28
+ Boolean(this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup) && (React.createElement(AdaptablePopupConfirmation_1.AdaptablePopupConfirmation, { header: this.props.PopupState.ConfirmationPopup.Header, messsage: this.props.PopupState.ConfirmationPopup.Msg, showPopup: this.props.PopupState.ConfirmationPopup.ShowConfirmationPopup, cancelButtonText: this.props.PopupState.ConfirmationPopup.CancelButtonText, confirmButtonText: this.props.PopupState.ConfirmationPopup.ConfirmButtonText, onCancel: this.props.onCancelConfirmationPopup, onConfirm: this.props.onConfirmConfirmationPopup, showInputBox: this.props.PopupState.ConfirmationPopup.ShowInputBox, messageType: this.props.PopupState.ConfirmationPopup.MessageType, api: this.props.AdaptableApi })),
29
29
  Boolean(this.props.PopupState.ScreenPopup.ShowScreenPopup) && (React.createElement(AdaptablePopup_1.AdaptablePopup, { componentName: this.props.PopupState.ScreenPopup.ComponentName, componentModule: this.props.PopupState.ScreenPopup.ComponentModule, onHide: this.props.onCloseScreenPopup, api: this.props.AdaptableApi, onClearParams: () => this.props.onClearPopupParams(), moduleParams: this.props.PopupState.ScreenPopup.Params, moduleProps: this.props.PopupState.ScreenPopup.PopupProps })),
30
30
  React.createElement(Toastify_1.ToastContainer
31
31
  // we NEEEEED!!!! this containerId, otherwise, toastify will have memory leaks when the adaptable
@@ -50,7 +50,6 @@ function mapStateToProps(state, ownProps) {
50
50
  function mapDispatchToProps(dispatch) {
51
51
  return {
52
52
  onCloseScreenPopup: () => dispatch(PopupRedux.PopupHideScreen()),
53
- onCloseAlertPopup: () => dispatch(PopupRedux.PopupHideAlert()),
54
53
  onClosePromptPopup: () => dispatch(PopupRedux.PopupHidePrompt()),
55
54
  onConfirmPromptPopup: (inputText) => dispatch(PopupRedux.PopupConfirmPrompt(inputText)),
56
55
  onConfirmConfirmationPopup: (comment) => dispatch(PopupRedux.PopupConfirmConfirmation(comment)),
@@ -2,7 +2,7 @@
2
2
  import { AdaptableOptions } from '../../../types';
3
3
  interface AdaptableOptionsFormOptions {
4
4
  adaptableOptions: AdaptableOptions;
5
- onChangeadaptableOptions: (adaptableOptions: AdaptableOptions) => void;
5
+ onChangeadAptableOptions: (adaptableOptions: AdaptableOptions) => void;
6
6
  }
7
7
  declare const AdaptableOptionsForm: (props: AdaptableOptionsFormOptions) => JSX.Element;
8
8
  export default AdaptableOptionsForm;
@@ -21,7 +21,7 @@ const AdaptableOptionsForm = (props) => {
21
21
  React.createElement(FormLayout_1.FormRow, { label: "Adaptable ID" },
22
22
  React.createElement(Input_1.default, { value: (_b = (_a = props === null || props === void 0 ? void 0 : props.adaptableOptions) === null || _a === void 0 ? void 0 : _a.adaptableId) !== null && _b !== void 0 ? _b : null, onChange: (event) => {
23
23
  var _a;
24
- props.onChangeadaptableOptions(Object.assign(Object.assign({}, abOptions), { adaptableId: (_a = event.target.value) !== null && _a !== void 0 ? _a : '' }));
24
+ props.onChangeadAptableOptions(Object.assign(Object.assign({}, abOptions), { adaptableId: (_a = event.target.value) !== null && _a !== void 0 ? _a : '' }));
25
25
  }, style: { minWidth: '20rem' } }))),
26
26
  React.createElement(HelpBlock_1.default, null, "General Options"),
27
27
  React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
@@ -30,7 +30,7 @@ const AdaptableOptionsForm = (props) => {
30
30
  abOptions = Object.assign({}, abOptions);
31
31
  abOptions.generalOptions = Object.assign({}, abOptions.generalOptions);
32
32
  abOptions.generalOptions.showMissingPrimaryKeyAlert = showMissingPrimaryKeyWarning;
33
- props.onChangeadaptableOptions(abOptions);
33
+ props.onChangeadAptableOptions(abOptions);
34
34
  } }))),
35
35
  React.createElement(HelpBlock_1.default, null, "Layout Options"),
36
36
  React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
@@ -39,7 +39,7 @@ const AdaptableOptionsForm = (props) => {
39
39
  abOptions = Object.assign({}, abOptions);
40
40
  abOptions.layoutOptions = Object.assign({}, abOptions.layoutOptions);
41
41
  abOptions.layoutOptions.autoSaveLayouts = autoSaveLayouts;
42
- props.onChangeadaptableOptions(abOptions);
42
+ props.onChangeadAptableOptions(abOptions);
43
43
  } }))),
44
44
  React.createElement(HelpBlock_1.default, null, "Search Options"),
45
45
  React.createElement(FormLayout_1.default, { margin: 2, columns: [{ name: 'children' }, { name: 'label', style: { textAlign: 'start' } }] },
@@ -49,42 +49,42 @@ const AdaptableOptionsForm = (props) => {
49
49
  abOptions.adaptableQLOptions = Object.assign({}, abOptions.adaptableQLOptions);
50
50
  abOptions.adaptableQLOptions.caseSensitiveTextComparisons =
51
51
  caseSensitiveTextComparisons;
52
- props.onChangeadaptableOptions(abOptions);
52
+ props.onChangeadAptableOptions(abOptions);
53
53
  } })),
54
54
  React.createElement(FormLayout_1.FormRow, { label: "Use AG Grid Filter Form Style" },
55
55
  React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.useAgGridFilterFormStyle, onChange: (useAgGridFilterFormStyle) => {
56
56
  abOptions = Object.assign({}, abOptions);
57
57
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
58
58
  abOptions.filterOptions.useAgGridFilterFormStyle = useAgGridFilterFormStyle;
59
- props.onChangeadaptableOptions(abOptions);
59
+ props.onChangeadAptableOptions(abOptions);
60
60
  } })),
61
61
  React.createElement(FormLayout_1.FormRow, { label: "Use Adaptable Quick Filter" },
62
62
  React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.useAdaptableQuickFilter == true, onChange: (useAdaptableQuickFilter) => {
63
63
  abOptions = Object.assign({}, abOptions);
64
64
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
65
65
  abOptions.filterOptions.useAdaptableQuickFilter = useAdaptableQuickFilter;
66
- props.onChangeadaptableOptions(abOptions);
66
+ props.onChangeadAptableOptions(abOptions);
67
67
  } })),
68
68
  React.createElement(FormLayout_1.FormRow, { label: "Use Adaptable Filter Form" },
69
69
  React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.useAdaptableFilterForm == true, onChange: (useAdaptableFilterForm) => {
70
70
  abOptions = Object.assign({}, abOptions);
71
71
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
72
72
  abOptions.filterOptions.useAdaptableFilterForm = useAdaptableFilterForm;
73
- props.onChangeadaptableOptions(abOptions);
73
+ props.onChangeadAptableOptions(abOptions);
74
74
  } })),
75
75
  React.createElement(FormLayout_1.FormRow, { label: "Indicate Filtered Columns" },
76
76
  React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.indicateFilteredColumns, onChange: (indicateFilteredColumns) => {
77
77
  abOptions = Object.assign({}, abOptions);
78
78
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
79
79
  abOptions.filterOptions.indicateFilteredColumns = indicateFilteredColumns;
80
- props.onChangeadaptableOptions(abOptions);
80
+ props.onChangeadAptableOptions(abOptions);
81
81
  } })),
82
82
  React.createElement(FormLayout_1.FormRow, { label: "Auto Apply Filter" },
83
83
  React.createElement(CheckBox_1.CheckBox, { checked: filterOptions.autoApplyFilter, onChange: (autoApplyFilter) => {
84
84
  abOptions = Object.assign({}, abOptions);
85
85
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
86
86
  abOptions.filterOptions.autoApplyFilter = autoApplyFilter;
87
- props.onChangeadaptableOptions(abOptions);
87
+ props.onChangeadAptableOptions(abOptions);
88
88
  } }))),
89
89
  React.createElement(rebass_1.Flex, { flexDirection: "row", alignItems: "center", margin: 2 },
90
90
  React.createElement(rebass_1.Text, { style: { flex: 3 }, marginRight: 2 }, "Max Column Value Items To Display"),
@@ -95,7 +95,7 @@ const AdaptableOptionsForm = (props) => {
95
95
  abOptions = Object.assign({}, abOptions);
96
96
  abOptions.filterOptions = Object.assign({}, abOptions.filterOptions);
97
97
  abOptions.filterOptions.maxFilterValuesToDisplay = maxColumnValueItemsDisplayed;
98
- props.onChangeadaptableOptions(abOptions);
98
+ props.onChangeadAptableOptions(abOptions);
99
99
  }, value: filterOptions.maxFilterValuesToDisplay, marginRight: 3 })))));
100
100
  };
101
101
  exports.default = AdaptableOptionsForm;
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { BoxProps } from 'rebass';
3
+ export declare const NocodeWizardFormBox: React.FunctionComponent<BoxProps>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NocodeWizardFormBox = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const React = tslib_1.__importStar(require("react"));
6
+ const rebass_1 = require("rebass");
7
+ const join_1 = tslib_1.__importDefault(require("../../../../components/utils/join"));
8
+ const NocodeWizardFormBox = (props) => (React.createElement(rebass_1.Box, Object.assign({}, props, { padding: 2, mb: 2, className: join_1.default('ab-NocodeWizardFormBox', props.className) })));
9
+ exports.NocodeWizardFormBox = NocodeWizardFormBox;
@@ -11,7 +11,9 @@ const GridOptionsForm_1 = tslib_1.__importDefault(require("./GridOptionsForm"));
11
11
  const AdaptableOptionsForm_1 = tslib_1.__importDefault(require("./AdaptableOptionsForm"));
12
12
  const EntitlementsForm_1 = tslib_1.__importDefault(require("./EntitlementsForm"));
13
13
  const UiOptionsForm_1 = require("./UIOptions/UiOptionsForm");
14
+ const FinanceForm_1 = require("./FinanceForm");
14
15
  const ConfigurationWizard = (props) => {
16
+ var _a, _b;
15
17
  const [isPrimaryKeySelected, setIsValid] = React.useState(true);
16
18
  const [adaptableOptions, setAdaptableOptions] = react_1.useState(() => {
17
19
  var _a;
@@ -58,6 +60,8 @@ const ConfigurationWizard = (props) => {
58
60
  return newSelectedColumns;
59
61
  });
60
62
  }, []);
63
+ const financePlugin = (_b = (_a = adaptableOptions.plugins) === null || _a === void 0 ? void 0 : _a.find) === null || _b === void 0 ? void 0 : _b.call(_a, (plugin) => plugin.pluginId === 'finance');
64
+ console.log({ adaptableOptions });
61
65
  let sections = [
62
66
  {
63
67
  title: 'Columns',
@@ -68,38 +72,33 @@ const ConfigurationWizard = (props) => {
68
72
  }
69
73
  return true;
70
74
  },
71
- render: () => (React.createElement(ConfigurationWizardColumnsStep_1.ConfigurationWizardColumnsStep, { adaptableOptions: adaptableOptions, setPrimaryKeyIsNotSelected: handlePrimaryKeyColumnIsNotSelected, onChange: (newAdaptableOptions) => {
72
- setAdaptableOptions(newAdaptableOptions);
73
- }, selectedColumns: selectedColumns, onSelectionChange: handleColumnSelectionChange, onColumnChange: handleColumnsChange, columnsHandle: columnsHandle })),
75
+ render: () => (React.createElement(ConfigurationWizardColumnsStep_1.ConfigurationWizardColumnsStep, { adaptableOptions: adaptableOptions, setPrimaryKeyIsNotSelected: handlePrimaryKeyColumnIsNotSelected, onChange: setAdaptableOptions, selectedColumns: selectedColumns, onSelectionChange: handleColumnSelectionChange, onColumnChange: handleColumnsChange, columnsHandle: columnsHandle })),
74
76
  },
75
77
  {
76
78
  title: 'Adaptable Options',
77
79
  details: 'Configure Adaptable Options',
78
80
  isValid: () => (adaptableOptions.adaptableId ? true : 'Adaptable ID is required'),
79
- render: () => (React.createElement(AdaptableOptionsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadaptableOptions: (abOptions) => {
80
- setAdaptableOptions(abOptions);
81
- } })),
81
+ render: () => (React.createElement(AdaptableOptionsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
82
82
  },
83
83
  {
84
84
  title: 'Grid Options',
85
85
  details: 'Configure AG Grid Options',
86
- render: () => (React.createElement(GridOptionsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadaptableOptions: (abOptions) => {
87
- setAdaptableOptions(abOptions);
88
- } })),
86
+ render: () => (React.createElement(GridOptionsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
89
87
  },
90
88
  {
91
89
  title: 'UI Elements',
92
90
  details: 'Configure UI Elements',
93
- render: () => (React.createElement(UiOptionsForm_1.UIElementsForm, { adaptableOptions: adaptableOptions, onChangeadaptableOptions: (abOptions) => {
94
- setAdaptableOptions(abOptions);
95
- } })),
91
+ render: () => (React.createElement(UiOptionsForm_1.UIElementsForm, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
96
92
  },
97
93
  {
98
94
  title: 'Entitlements',
99
95
  details: 'Configure Entitlements',
100
- render: () => (React.createElement(EntitlementsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadaptableOptions: (abOptions) => {
101
- setAdaptableOptions(abOptions);
102
- } })),
96
+ render: () => (React.createElement(EntitlementsForm_1.default, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
97
+ },
98
+ financePlugin && {
99
+ title: 'Finance',
100
+ details: 'Finance Options',
101
+ render: () => (React.createElement(FinanceForm_1.FinanceForm, { adaptableOptions: adaptableOptions, onChangeadAptableOptions: setAdaptableOptions })),
103
102
  },
104
103
  ];
105
104
  if (props.startSections) {
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { AdaptableOptions } from '../../../types';
3
3
  interface EntitlementsFormOptions {
4
4
  adaptableOptions: AdaptableOptions;
5
- onChangeadaptableOptions: (adaptableOptions: AdaptableOptions) => void;
5
+ onChangeadAptableOptions: (adaptableOptions: AdaptableOptions) => void;
6
6
  }
7
7
  declare const EntitlementsForm: React.FunctionComponent<EntitlementsFormOptions>;
8
8
  export default EntitlementsForm;
@@ -71,7 +71,7 @@ const EntitlementsListForm = (props) => {
71
71
  { adaptableModule: module, accessLevel: accessLevel },
72
72
  ];
73
73
  }
74
- props.onChangeadaptableOptions(Object.assign(Object.assign({}, abOptions), { entitlementOptions: Object.assign(Object.assign({}, abOptions.entitlementOptions), { moduleEntitlements: newEntitlements }) }));
74
+ props.onChangeadAptableOptions(Object.assign(Object.assign({}, abOptions), { entitlementOptions: Object.assign(Object.assign({}, abOptions.entitlementOptions), { moduleEntitlements: newEntitlements }) }));
75
75
  }, [abOptions === null || abOptions === void 0 ? void 0 : abOptions.entitlementOptions]);
76
76
  const items = ALL_ENTITLEMENTS_MODULES.map((module) => {
77
77
  const cItems = colItems.map((item) => (Object.assign({}, item)));
@@ -140,7 +140,7 @@ const DefaultEntitlementForm = (props) => {
140
140
  return React.createElement(HelpBlock_1.default, { mb: 2 }, "Default Entitlement is controlled by a custom function");
141
141
  }
142
142
  const handleDefaultEntitlementChange = React.useCallback((accessLevel) => {
143
- props.onChangeadaptableOptions(Object.assign(Object.assign({}, abOptions), { entitlementOptions: Object.assign(Object.assign({}, abOptions.entitlementOptions), { defaultAccessLevel: accessLevel }) }));
143
+ props.onChangeadAptableOptions(Object.assign(Object.assign({}, abOptions), { entitlementOptions: Object.assign(Object.assign({}, abOptions.entitlementOptions), { defaultAccessLevel: accessLevel }) }));
144
144
  }, [(_b = abOptions === null || abOptions === void 0 ? void 0 : abOptions.entitlementOptions) === null || _b === void 0 ? void 0 : _b.defaultAccessLevel]);
145
145
  return (React.createElement(FormLayout_1.default, { mb: 2 },
146
146
  React.createElement(FormLayout_1.FormRow, { label: "Default Entitlement:" },
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { AdaptableOptions } from '../../../../types';
3
+ export interface FinanceFormProps {
4
+ adaptableOptions: AdaptableOptions;
5
+ onChangeadAptableOptions: (adaptableOptions: AdaptableOptions) => void;
6
+ }
7
+ export declare const FinanceForm: React.FunctionComponent<FinanceFormProps>;