@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
@@ -18,7 +18,7 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
18
18
  getReferencedNamedQueryNames(alertDefinition: FlashingCellDefinition): string[];
19
19
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
20
20
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
21
- protected handleDataSourceChanged(cellDataChangedInfo: CellDataChangedInfo): void;
21
+ protected handleCellDataChanged(cellDataChangedInfo: CellDataChangedInfo): void;
22
22
  private showFlashingCellsForDefinitions;
23
23
  private isFlashingTargetOnlyAggChange;
24
24
  private getFlashingCellDefinitionsForDataChange;
@@ -38,7 +38,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
38
38
  return;
39
39
  }
40
40
  }
41
- this.handleDataSourceChanged(cellDataChangedInfo);
41
+ this.handleCellDataChanged(cellDataChangedInfo);
42
42
  });
43
43
  }
44
44
  getModuleAdaptableObjects(config) {
@@ -104,7 +104,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
104
104
  }
105
105
  return items;
106
106
  }
107
- handleDataSourceChanged(cellDataChangedInfo) {
107
+ handleCellDataChanged(cellDataChangedInfo) {
108
108
  const flashingCellDefinitions = this.getFlashingCellDefinitionsForDataChange(cellDataChangedInfo);
109
109
  if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingCellDefinitions)) {
110
110
  this.showFlashingCellsForDefinitions(cellDataChangedInfo, flashingCellDefinitions);
@@ -29,7 +29,7 @@ export interface AdaptableObjectItemView {
29
29
  * Should match property in wizard.
30
30
  * Used to Link to wizard edit step.
31
31
  */
32
- name: string;
32
+ name?: string;
33
33
  /**
34
34
  * Custom name for the property name
35
35
  */
@@ -78,8 +78,10 @@ export interface AdaptableModuleView {
78
78
  actions?: AdaptableModuleViewAction[];
79
79
  onOpenEditPopup?: (abObject?: AdaptableObject) => void;
80
80
  getDeleteAction?: (abObject: AdaptableObject) => Redux.Action;
81
+ getCompactDeleteAction?: (abObject: AdaptableObject) => Redux.Action;
81
82
  getSuspendAction?: (abObject: AdaptableObject) => Redux.Action;
82
83
  getUnSuspendAction?: (abObject: AdaptableObject) => Redux.Action;
84
+ getDeleteAllAction?: () => Redux.Action;
83
85
  emptyView?: React.FunctionComponent<{
84
86
  module: IModule;
85
87
  }> | string;
@@ -21,7 +21,28 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  }
22
22
  });
23
23
  }
24
+ /*
25
+ // commenting this out as it doesnt make sense we dont know which filters should be applied to which layout
26
+ // for this we will jsut say they need to reapply them
27
+ updateOldConfig() {
28
+ // @ts-ignore ignore reading deprecated state
29
+ const oldColumnFilters = this.api.filterApi.getFilterState().ColumnFilters;
30
+ if (ArrayExtensions.IsNotNullOrEmpty(oldColumnFilters)) {
31
+ ConsoleLogWarning(
32
+ `DEPRECATED: The 'Filter.ColumnFilters' property is deprecated; use 'Layout.ColumnFilters' instead'!`
33
+ );
34
+
35
+ this.api.internalApi.clearColumnFilterState();
36
+ const currentLayout = this.api.layoutApi.getCurrentLayout();
37
+
38
+ if (ArrayExtensions.IsNullOrEmpty(currentLayout.ColumnFilters)) {
39
+ this.api.layoutApi.setColumnFilter(oldColumnFilters);
40
+ }
41
+ }
42
+ }
43
+ */
24
44
  getModuleAdaptableObjects() {
45
+ // ignore - triggering build
25
46
  return this.api.layoutApi.getAllLayout();
26
47
  }
27
48
  getExplicitlyReferencedColumnIds(layout) {
@@ -152,11 +173,13 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
152
173
  if (columns.length >
153
174
  maxColumnsToDisplay + 1 /* +1 is to show tag only beginning with 2, 'other 2' */) {
154
175
  const extraColumns = columns.length - maxColumnsToDisplay;
155
- const firstNColumns = columns.slice(0, maxColumnsToDisplay);
176
+ const firstNColumns = columns
177
+ .slice(0, maxColumnsToDisplay)
178
+ .map((column) => columnIdToFriendlyName(column));
156
179
  columns = [...firstNColumns, `and other ${extraColumns}`];
157
180
  }
158
181
  else {
159
- columns = columns.map((column) => this.api.columnApi.getFriendlyNameFromColumnId(column));
182
+ columns = columns.map((column) => columnIdToFriendlyName(column));
160
183
  }
161
184
  return {
162
185
  items: [
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlusMinusModule = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const Enums_1 = require("../PredefinedConfig/Common/Enums");
6
5
  const PlusMinusRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/PlusMinusRedux"));
7
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
8
7
  const ArrayExtensions_1 = require("../Utilities/Extensions/ArrayExtensions");
@@ -91,9 +90,7 @@ class PlusMinusModule extends AdaptableModuleBase_1.AdaptableModuleBase {
91
90
  let failedPreventEdits = [];
92
91
  let side = direction == 'up' ? 1 : -1;
93
92
  cellsToUpdate.forEach((gridCell) => {
94
- if (gridCell.column &&
95
- gridCell.column.dataType == Enums_1.DataType.Number &&
96
- !gridCell.column.readOnly) {
93
+ if (gridCell.column && gridCell.column.dataType == 'Number' && !gridCell.column.readOnly) {
97
94
  let foundRule;
98
95
  let replacementGridCell;
99
96
  plusMinusNudges.forEach((pmr) => {
@@ -6,7 +6,7 @@ import { GridCell } from '../PredefinedConfig/Selection/GridCell';
6
6
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
7
7
  import { AdaptableApi } from '../Api/AdaptableApi';
8
8
  import { AccessLevel } from '../PredefinedConfig/Common/Entitlement';
9
- import { SmartEditOperation } from '../AdaptableOptions/SmartEdit';
9
+ import { SmartEditOperation } from '../AdaptableOptions/EditOptions';
10
10
  export declare class SmartEditModule extends AdaptableModuleBase implements ISmartEditModule {
11
11
  constructor(api: AdaptableApi);
12
12
  getViewAccessLevel(): AccessLevel;
@@ -23,7 +23,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
23
23
  let menuItemShowPopup = undefined;
24
24
  if (!menuContext.isRowGroupColumn && this.isModuleEditable()) {
25
25
  if (menuContext.adaptableColumn &&
26
- menuContext.adaptableColumn.dataType == Enums_1.DataType.Number &&
26
+ menuContext.adaptableColumn.dataType == 'Number' &&
27
27
  !menuContext.adaptableColumn.readOnly &&
28
28
  menuContext.isSelectedCell &&
29
29
  menuContext.isSingleSelectedColumn &&
@@ -78,7 +78,7 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
78
78
  }
79
79
  let column = selectedCellInfo.columns[0];
80
80
  if (column) {
81
- if (column.dataType != Enums_1.DataType.Number) {
81
+ if (column.dataType != 'Number') {
82
82
  return {
83
83
  Alert: {
84
84
  alertType: 'generic',
@@ -123,13 +123,12 @@ class SmartEditModule extends AdaptableModuleBase_1.AdaptableModuleBase {
123
123
  selectedCellInfo.gridCells.forEach((selectedCell) => {
124
124
  let newValue;
125
125
  if (typeof smartEditOperation === 'object') {
126
- newValue = smartEditOperation.Operation({
127
- smartEditValue,
128
- column,
129
- adaptableApi: this.api,
126
+ const context = {
127
+ smartEditValue: smartEditValue,
130
128
  currentCell: selectedCell,
131
- value: selectedCell.rawValue,
132
- });
129
+ adaptableApi: this.api,
130
+ };
131
+ newValue = smartEditOperation.operation(context);
133
132
  }
134
133
  else {
135
134
  switch (smartEditOperation) {
@@ -30,9 +30,7 @@ class StatusBarModule extends AdaptableModuleBase_1.AdaptableModuleBase {
30
30
  this.api.statusBarApi.setStatusPanels(newStatusPanelsState);
31
31
  }
32
32
  isModuleAvailable() {
33
- return false;
34
- // TODO: replace with this like when we release Status Bar properly
35
- // return super.isModuleAvailable() && this.api.statusBarApi.getAgGridStatusPanels().length > 0;
33
+ return super.isModuleAvailable() && this.api.statusBarApi.getAgGridStatusPanels().length > 0;
36
34
  }
37
35
  }
38
36
  exports.StatusBarModule = StatusBarModule;
@@ -49,7 +49,7 @@ class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
49
49
  return;
50
50
  }
51
51
  // check if the changed adaptable object is active in TeamSharing
52
- const activeSharedEntity = this.api.teamSharingApi.getTeamSharingState().ActiveSharedEntityMap[changedAdaptableObject.Uuid];
52
+ const activeSharedEntity = this.api.internalApi.getState().TeamSharing.ActiveSharedEntityMap[changedAdaptableObject.Uuid];
53
53
  if (!activeSharedEntity) {
54
54
  return;
55
55
  }
@@ -15,10 +15,7 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
15
  if (!super.isModuleAvailable()) {
16
16
  return false;
17
17
  }
18
- const toolPanelOptions = this.api.internalApi.getAdaptableOptions().toolPanelOptions;
19
- return (toolPanelOptions &&
20
- toolPanelOptions.showAdaptableToolPanel &&
21
- toolPanelOptions.showAdaptableToolPanel == true);
18
+ return this.api.internalApi.getAdaptableInstance().hasAdaptableToolPanel;
22
19
  }
23
20
  updateOldConfig() {
24
21
  const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
@@ -1,6 +1,7 @@
1
1
  import { SummaryOperation } from '../../PredefinedConfig/Common/Enums';
2
2
  import { AdaptableTheme } from '../../PredefinedConfig/ThemeState';
3
3
  import { AdaptableMessageType } from '../../PredefinedConfig/Common/AdaptableMessageType';
4
+ import { AdaptableColumnType } from '../../PredefinedConfig/Common/Types';
4
5
  export declare const AUTOGENERATED_PK_COLUMN: string;
5
6
  export declare const MISSING_COLUMN: string;
6
7
  export declare const DEFAULT_LAYOUT: string;
@@ -9,6 +10,10 @@ export declare const DARK_THEME: string;
9
10
  export declare const USER_NAME: string;
10
11
  export declare const ADAPTABLE_ID: string;
11
12
  export declare const ADAPTABLE: string;
13
+ export declare const ADAPTABLE_TOOLPANEL_ID: string;
14
+ export declare const ADAPTABLE_TOOLPANEL_COMPONENT: string;
15
+ export declare const AGGRID_TOOLPANEL_FILTERS: string;
16
+ export declare const AGGRID_TOOLPANEL_COLUMNS: string;
12
17
  export declare const MENU_PREFIX: string;
13
18
  export declare const READ_ONLY_STYLE: string;
14
19
  export declare const ALL_COLUMN_VALUES: string;
@@ -17,10 +22,12 @@ export declare const FILTER_NEVER: 'Always' | 'Never' | 'Throttle';
17
22
  export declare const FILTER_THROTTLE: 'Always' | 'Never' | 'Throttle';
18
23
  export declare const EMPTY_STRING: string;
19
24
  export declare const EMPTY_ARRAY: any[];
20
- export declare const AB_SPECIAL_COLUMN = "abSpecialColumn";
25
+ export declare const AB_SPECIAL_COLUMN: AdaptableColumnType;
21
26
  export declare const HALF_SECOND: number;
22
27
  export declare const AG_GRID_GROUPED_COLUMN: string;
23
28
  export declare const AG_GRID_PIVOT_COLUMN: string;
29
+ export declare const ADAPTABLE_ROW_ACTION_BUTTONS = "adaptableRowActionButtons";
30
+ export declare const ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = "(ActionRowButtons)";
24
31
  export declare const SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE: number;
25
32
  export declare const QUICK_SEARCH_DEFAULT_BACK_COLOR: string;
26
33
  export declare const QUICK_SEARCH_DEFAULT_FORE_COLOR: string;
@@ -40,7 +47,6 @@ export declare const ALERT_DEFAULT_SHOW_POPUP: boolean;
40
47
  */
41
48
  export declare const SUMMARY_OPERATION_STATE_PROPERTY: string;
42
49
  export declare const CURRENT_LAYOUT_STATE_PROPERTY: string;
43
- export declare const CURRENT_DATA_SOURCE_STATE_PROPERTY: string;
44
50
  export declare const CURRENT_REPORT_STATE_PROPERTY: string;
45
51
  export declare const FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY: string;
46
52
  export declare const FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
3
+ exports.THEME_STYLE = exports.SELECTED_ROWS_REPORT = exports.SELECTED_CELLS_REPORT = exports.CURRENT_DATA_REPORT = exports.ALL_DATA_REPORT = exports.VISUAL_DATA_REPORT = exports.SYSTEM_THEMES = exports.SMART_EDIT_MATH_OPERATION_STATE_PROPERTY = exports.SMART_EDIT_VALUE_STATE_PROPERTY = exports.QUICK_SEARCH_STYLE_STATE_PROPERTY = exports.QUICK_SEARCH_TEXT_STATE_PROPERTY = exports.CURRENT_THEME_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DURATION_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = exports.CURRENT_REPORT_STATE_PROPERTY = exports.CURRENT_LAYOUT_STATE_PROPERTY = exports.SUMMARY_OPERATION_STATE_PROPERTY = exports.ALERT_DEFAULT_SHOW_POPUP = exports.ALERT_DEFAULT_MESSAGE_TYPE = exports.PLUS_MINUS_DEFAULT_NUDGE_VALUE = exports.DEFAULT_LIVE_REPORT_THROTTLE_TIME = exports.THEME_DEFAULT_CURRENT_THEME = exports.SYSTEM_DEFAULT_SYSTEM_STATUS_TYPE = exports.CELL_SUMMARY_DEFAULT_OPERATION = exports.QUICK_SEARCH_DEBOUNCE_TIME = exports.QUICK_SEARCH_DEFAULT_FORE_COLOR = exports.QUICK_SEARCH_DEFAULT_BACK_COLOR = exports.SYSTEM_STATUS_DEFAULT_MAX_MESSAGES_IN_STORE = exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = exports.ADAPTABLE_ROW_ACTION_BUTTONS = exports.AG_GRID_PIVOT_COLUMN = exports.AG_GRID_GROUPED_COLUMN = exports.HALF_SECOND = exports.AB_SPECIAL_COLUMN = exports.EMPTY_ARRAY = exports.EMPTY_STRING = exports.FILTER_THROTTLE = exports.FILTER_NEVER = exports.FILTER_ALWAYS = exports.ALL_COLUMN_VALUES = exports.READ_ONLY_STYLE = exports.MENU_PREFIX = exports.AGGRID_TOOLPANEL_COLUMNS = exports.AGGRID_TOOLPANEL_FILTERS = exports.ADAPTABLE_TOOLPANEL_COMPONENT = exports.ADAPTABLE_TOOLPANEL_ID = exports.ADAPTABLE = exports.ADAPTABLE_ID = exports.USER_NAME = exports.DARK_THEME = exports.LIGHT_THEME = exports.DEFAULT_LAYOUT = exports.MISSING_COLUMN = exports.AUTOGENERATED_PK_COLUMN = void 0;
4
4
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
5
5
  const UIHelper_1 = require("../../View/UIHelper");
6
6
  exports.AUTOGENERATED_PK_COLUMN = '__ADAPTABLE_PK__';
@@ -11,6 +11,11 @@ exports.DARK_THEME = 'dark';
11
11
  exports.USER_NAME = 'anonymous';
12
12
  exports.ADAPTABLE_ID = 'adaptable_id';
13
13
  exports.ADAPTABLE = 'AdapTable';
14
+ exports.ADAPTABLE_TOOLPANEL_ID = 'adaptable';
15
+ exports.ADAPTABLE_TOOLPANEL_COMPONENT = 'AdaptableToolPanel';
16
+ // from https://www.ag-grid.com/javascript-data-grid/side-bar/#string-configuration
17
+ exports.AGGRID_TOOLPANEL_FILTERS = 'filters';
18
+ exports.AGGRID_TOOLPANEL_COLUMNS = 'columns';
14
19
  exports.MENU_PREFIX = 'ab_';
15
20
  exports.READ_ONLY_STYLE = 'ab_readonly';
16
21
  exports.ALL_COLUMN_VALUES = 'ALL_COLUMN_VALUES';
@@ -23,6 +28,8 @@ exports.AB_SPECIAL_COLUMN = 'abSpecialColumn';
23
28
  exports.HALF_SECOND = 500;
24
29
  exports.AG_GRID_GROUPED_COLUMN = 'ag-Grid-AutoColumn';
25
30
  exports.AG_GRID_PIVOT_COLUMN = 'pivot_';
31
+ exports.ADAPTABLE_ROW_ACTION_BUTTONS = 'adaptableRowActionButtons';
32
+ exports.ADAPTABLE_ROW_ACTION_BUTTONS_FRIENDLY_NAME = '(ActionRowButtons)';
26
33
  /*
27
34
  Redux / State Defaults
28
35
  Try to put all our Redux / State defaults here and ONLY reference from here - avoid magic numbers / strings.
@@ -54,7 +61,6 @@ exports.ALERT_DEFAULT_SHOW_POPUP = true;
54
61
  */
55
62
  exports.SUMMARY_OPERATION_STATE_PROPERTY = 'SummaryOperation';
56
63
  exports.CURRENT_LAYOUT_STATE_PROPERTY = 'CurrentLayout';
57
- exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = 'CurrentDataSource';
58
64
  exports.CURRENT_REPORT_STATE_PROPERTY = 'CurrentReport';
59
65
  exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = 'DefaultUpColor';
60
66
  exports.FLASHING_CELL_DEFAULT_DOWN_COLOR_STATE_PROPERTY = 'DefautDownColor';
@@ -9,7 +9,7 @@ export declare const ConditionalStyleModuleId: ModuleConstants;
9
9
  export declare const CustomSortModuleId: ModuleConstants;
10
10
  export declare const DashboardModuleId: ModuleConstants;
11
11
  export declare const DataChangeHistoryModuleId: ModuleConstants;
12
- export declare const DataSourceModuleId: ModuleConstants;
12
+ export declare const DataSetModuleId: ModuleConstants;
13
13
  export declare const ExportModuleId: ModuleConstants;
14
14
  export declare const FilterModuleId: ModuleConstants;
15
15
  export declare const FormatColumnModuleId: ModuleConstants;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusBarModuleId = exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSourceModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
3
+ exports.StatusBarModuleId = exports.SettingsPanelModuleId = exports.ToolPanelModuleId = exports.ThemeModuleId = exports.TeamSharingModuleId = exports.SystemStatusModuleId = exports.StateManagementModuleId = exports.SmartEditModuleId = exports.ShortcutModuleId = exports.ScheduleModuleId = exports.QuickSearchModuleId = exports.QueryModuleId = exports.PlusMinusModuleId = exports.OpenFinModuleId = exports.LayoutModuleId = exports.IPushPullModuleId = exports.GridInfoModuleId = exports.Glue42ModuleId = exports.FreeTextColumnModuleId = exports.FormatColumnModuleId = exports.FilterModuleId = exports.ExportModuleId = exports.DataSetModuleId = exports.DataChangeHistoryModuleId = exports.DashboardModuleId = exports.CustomSortModuleId = exports.ConditionalStyleModuleId = exports.ChartingModuleId = exports.CellSummaryModuleId = exports.CalculatedColumnModuleId = exports.BulkUpdateModuleId = exports.FlashingCellModuleId = exports.AlertModuleId = void 0;
4
4
  exports.AlertModuleId = 'Alert';
5
5
  exports.FlashingCellModuleId = 'FlashingCell';
6
6
  exports.BulkUpdateModuleId = 'BulkUpdate';
@@ -11,7 +11,7 @@ exports.ConditionalStyleModuleId = 'ConditionalStyle';
11
11
  exports.CustomSortModuleId = 'CustomSort';
12
12
  exports.DashboardModuleId = 'Dashboard';
13
13
  exports.DataChangeHistoryModuleId = 'DataChangeHistory';
14
- exports.DataSourceModuleId = 'DataSource';
14
+ exports.DataSetModuleId = 'DataSet';
15
15
  exports.ExportModuleId = 'Export';
16
16
  exports.FilterModuleId = 'Filter';
17
17
  exports.FormatColumnModuleId = 'FormatColumn';
@@ -58,6 +58,7 @@ exports.DefaultAdaptableOptions = {
58
58
  adaptableQLOptions: {
59
59
  caseSensitiveTextComparisons: false,
60
60
  externallyEvaluatedModules: [],
61
+ customPredicateDefs: [],
61
62
  expressionOptions: {
62
63
  defaultBooleanFunctions: booleanExpressionFunctions_1.booleanExpressionFunctions,
63
64
  defaultScalarFunctions: scalarExpressionFunctions_1.scalarExpressionFunctions,
@@ -78,6 +79,12 @@ exports.DefaultAdaptableOptions = {
78
79
  systemStatusContainer: undefined,
79
80
  alertContainer: undefined,
80
81
  },
82
+ columnOptions: {
83
+ columnTypes: GeneralConstants_1.EMPTY_ARRAY,
84
+ showMissingColumnsWarning: true,
85
+ autoOrderGroupedColumns: true,
86
+ hideColumnWhenGrouped: false,
87
+ },
81
88
  dashboardOptions: {
82
89
  canFloat: true,
83
90
  showQuickSearchInHeader: true,
@@ -89,6 +96,13 @@ exports.DefaultAdaptableOptions = {
89
96
  validateOnServer: undefined,
90
97
  displayServerValidationMessages: true,
91
98
  isCellEditable: undefined,
99
+ rowFormOptions: {
100
+ formTitle: undefined,
101
+ formDescription: undefined,
102
+ formFieldLabel: undefined,
103
+ formButtons: undefined,
104
+ onFormSubmit: undefined,
105
+ },
92
106
  },
93
107
  entitlementOptions: {
94
108
  defaultAccessLevel: 'Full',
@@ -117,10 +131,8 @@ exports.DefaultAdaptableOptions = {
117
131
  generalOptions: {
118
132
  hideEmptyGroupRows: false,
119
133
  showMissingPrimaryKeyAlert: false,
120
- showMissingColumnsWarning: true,
134
+ dataSets: GeneralConstants_1.EMPTY_ARRAY,
121
135
  showGroupingTotalsAsHeader: false,
122
- hideColumnWhenGrouped: false,
123
- autoOrderGroupedColumns: true,
124
136
  alternativeModuleNames: undefined,
125
137
  currentCalendar: 'United Kingdom',
126
138
  cellSummaryOperations: undefined,
@@ -178,6 +190,7 @@ exports.DefaultAdaptableOptions = {
178
190
  enableFilterOnSpecialColumns: true,
179
191
  maxFilterValuesToDisplay: 2000,
180
192
  systemFilters: AdaptablePredicate_1.SystemFilterPredicateIds,
193
+ showQuickFilter: true,
181
194
  },
182
195
  searchOptions: {
183
196
  excludeColumnFromQuickSearch: undefined,
@@ -210,35 +223,33 @@ exports.DefaultAdaptableOptions = {
210
223
  showOutsideDays: true,
211
224
  datepickerButtons: ['close', 'today'],
212
225
  },
226
+ actionOptions: {
227
+ actionColumns: undefined,
228
+ actionRowButtons: undefined,
229
+ actionRowButtonsPosition: 'pinnedLeft',
230
+ autoHandleActionRowButtons: false,
231
+ setPrimaryKeyValue: undefined,
232
+ },
213
233
  colorPalette: UIHelper_1.default.getDefaultColors(),
214
234
  editableCellStyle: undefined,
215
235
  readOnlyCellStyle: undefined,
216
236
  styleClassNames: GeneralConstants_1.EMPTY_ARRAY,
217
- columnTypes: GeneralConstants_1.EMPTY_ARRAY,
218
237
  permittedValues: undefined,
219
238
  editLookUpItems: undefined,
220
- actionColumns: undefined,
239
+ customDisplayFormatters: undefined,
221
240
  showDocumentationLinks: true,
222
241
  gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo'],
223
242
  showAdapTableVersion: true,
224
243
  },
225
244
  toolPanelOptions: {
226
- showAdaptableToolPanel: true,
227
- adaptableToolPanelTitle: GeneralConstants.ADAPTABLE,
228
245
  showToolPanelsDropdown: true,
229
246
  customButtons: undefined,
230
247
  customToolPanels: undefined,
231
- iconKey: 'menu',
232
- width: UIHelper_1.default.getAdaptableToolPanelWidth(),
233
- minWidth: UIHelper_1.default.getAdaptableToolPanelWidth(),
234
- maxWidth: undefined,
235
- toolPanelOrder: ['filters', 'columns', 'adaptable'],
236
248
  },
237
249
  dataChangeHistoryOptions: {
238
250
  activeByDefault: false,
239
251
  showDataChange: undefined,
240
252
  },
241
- customPredicateDefs: [],
242
253
  settingsPanelOptions: {
243
254
  popupType: 'window',
244
255
  title: 'Settings Panel',
@@ -20,7 +20,7 @@ exports.DEFAULT_NAVIGATION_ITEMS = [
20
20
  'CalculatedColumn',
21
21
  'ConditionalStyle',
22
22
  'CustomSort',
23
- 'DataSource',
23
+ 'DataSet',
24
24
  'Export',
25
25
  'Filter',
26
26
  'FlashingCell',
@@ -12,6 +12,7 @@ function assignAdaptableOptions(adaptableOptions) {
12
12
  const returnedAdaptableOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions, adaptableOptions);
13
13
  returnedAdaptableOptions.adaptableStateKey = (_a = returnedAdaptableOptions.adaptableStateKey) !== null && _a !== void 0 ? _a : returnedAdaptableOptions.adaptableId;
14
14
  returnedAdaptableOptions.adaptableQLOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions, adaptableOptions.adaptableQLOptions);
15
+ returnedAdaptableOptions.columnOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.columnOptions, adaptableOptions.columnOptions);
15
16
  returnedAdaptableOptions.adaptableQLOptions.expressionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.adaptableQLOptions.expressionOptions, returnedAdaptableOptions.adaptableQLOptions.expressionOptions);
16
17
  returnedAdaptableOptions.layoutOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.layoutOptions, adaptableOptions.layoutOptions);
17
18
  returnedAdaptableOptions.notificationsOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.notificationsOptions, adaptableOptions.notificationsOptions);
@@ -20,11 +21,13 @@ function assignAdaptableOptions(adaptableOptions) {
20
21
  returnedAdaptableOptions.entitlementOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.entitlementOptions, adaptableOptions.entitlementOptions);
21
22
  returnedAdaptableOptions.dashboardOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.dashboardOptions, adaptableOptions.dashboardOptions);
22
23
  returnedAdaptableOptions.editOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions, adaptableOptions.editOptions);
24
+ returnedAdaptableOptions.editOptions.rowFormOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.editOptions.rowFormOptions, returnedAdaptableOptions.editOptions.rowFormOptions);
23
25
  returnedAdaptableOptions.containerOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.containerOptions, adaptableOptions.containerOptions);
24
26
  returnedAdaptableOptions.generalOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.generalOptions, adaptableOptions.generalOptions);
25
27
  returnedAdaptableOptions.searchOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.searchOptions, adaptableOptions.searchOptions);
26
28
  returnedAdaptableOptions.filterOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.filterOptions, adaptableOptions.filterOptions);
27
29
  returnedAdaptableOptions.userInterfaceOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions, adaptableOptions.userInterfaceOptions);
30
+ returnedAdaptableOptions.userInterfaceOptions.actionOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.actionOptions, returnedAdaptableOptions.userInterfaceOptions.actionOptions);
28
31
  returnedAdaptableOptions.userInterfaceOptions.dateInputOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.userInterfaceOptions.dateInputOptions, returnedAdaptableOptions.userInterfaceOptions.dateInputOptions);
29
32
  returnedAdaptableOptions.menuOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.menuOptions, adaptableOptions.menuOptions);
30
33
  returnedAdaptableOptions.stateOptions = Object.assign({}, DefaultAdaptableOptions_1.DefaultAdaptableOptions.stateOptions, adaptableOptions.stateOptions);
@@ -66,7 +69,7 @@ function checkValidPrimaryKey(adaptable) {
66
69
  adaptable.api.alertApi.showAlertError('No Primary Key', errorMessage);
67
70
  }
68
71
  else {
69
- if (adaptable.adaptableOptions.generalOptions.showMissingColumnsWarning == true) {
72
+ if (adaptable.adaptableOptions.columnOptions.showMissingColumnsWarning == true) {
70
73
  LoggingHelper_1.ConsoleLogError(errorMessage);
71
74
  }
72
75
  }
@@ -1,6 +1,5 @@
1
1
  import { ScheduleType } from '../PredefinedConfig/Common/Enums';
2
2
  import { CustomSort } from '../PredefinedConfig/CustomSortState';
3
- import { DataSource } from '../PredefinedConfig/DataSourceState';
4
3
  import { CalculatedColumn } from '../PredefinedConfig/CalculatedColumnState';
5
4
  import { PlusMinusNudge } from '../PredefinedConfig/PlusMinusState';
6
5
  import { AlertDefinition, AlertProperties } from '../PredefinedConfig/AlertState';
@@ -19,17 +18,15 @@ import { IPushPullReport } from '../PredefinedConfig/SystemState';
19
18
  import { IPushPullSchedule } from '../PredefinedConfig/IPushPullState';
20
19
  import { OpenFinSchedule, OpenFinReport } from '../PredefinedConfig/OpenFinState';
21
20
  import { NamedQuery } from '../PredefinedConfig/QueryState';
22
- import { ColumnFilter, SystemFilterPredicateId } from '../PredefinedConfig/FilterState';
23
21
  import { ReminderSchedule } from '../PredefinedConfig/ScheduleState';
24
22
  import { AdaptableCellChangedAlert, AdaptableGenericAlert, AdaptableRowChangedAlert } from '../PredefinedConfig/Common/AdaptableAlert';
25
23
  import { AdaptableMessageType } from '../PredefinedConfig/Common/AdaptableMessageType';
26
24
  import { SystemStatusMessageInfo } from '../PredefinedConfig/Common/SystemStatusMessageInfo';
27
25
  import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
28
26
  import { CellSummmary } from '../PredefinedConfig/Common/CellSummary';
29
- import { FlashingCellDefinition, GridDataChangedInfo } from '../types';
27
+ import { ColumnFilter, FlashingCellDefinition, GridDataChangedInfo, SystemFilterPredicateId } from '../types';
30
28
  import { ToastOptions } from 'react-toastify';
31
29
  export declare function CreateEmptyCustomSort(): CustomSort;
32
- export declare function CreateEmptyDataSource(): DataSource;
33
30
  export declare function CreateEmptyCalculatedColumn(isFilterable: boolean): CalculatedColumn;
34
31
  export declare function CreateEmptyNamedQuery(expression?: string): NamedQuery;
35
32
  export declare function CreateEmptyPlusMinusNudge(): PlusMinusNudge;
@@ -64,12 +61,12 @@ export declare function CreateEmptyStyle(): AdaptableStyle;
64
61
  export declare function CreateSystemStatusMessageInfo(message: string, type: AdaptableMessageType, furtherInfo?: string): SystemStatusMessageInfo;
65
62
  export declare function CreateEmptyCellSummmary(): CellSummmary;
66
63
  export declare function CreateColumnFilter(ColumnId: string, PredicateId: SystemFilterPredicateId, Inputs: any[]): ColumnFilter;
67
- export declare function CreateToastOptions(notificationsOptions: NotificationsOptions, { onClose }?: {
64
+ export declare function CreateToastOptions(notificationsOptions: NotificationsOptions, { onClose, containerId }: {
68
65
  onClose?: VoidFunction;
66
+ containerId: string;
69
67
  }): ToastOptions;
70
68
  export declare const ObjectFactory: {
71
69
  CreateEmptyCustomSort: typeof CreateEmptyCustomSort;
72
- CreateEmptyDataSource: typeof CreateEmptyDataSource;
73
70
  CreateEmptyCalculatedColumn: typeof CreateEmptyCalculatedColumn;
74
71
  CreateEmptyNamedQuery: typeof CreateEmptyNamedQuery;
75
72
  CreateEmptyPlusMinusNudge: typeof CreateEmptyPlusMinusNudge;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyDataSource = exports.CreateEmptyCustomSort = void 0;
3
+ exports.ObjectFactory = exports.CreateToastOptions = exports.CreateColumnFilter = exports.CreateEmptyCellSummmary = exports.CreateSystemStatusMessageInfo = exports.CreateEmptyStyle = exports.CreateEmptyLayout = exports.CreateEmptyFreeTextColumn = exports.CreateEmptyFormatColumn = exports.CreateEmptyConditionalStyle = exports.CreateEmptyShortcut = exports.CreateEmptySchedule = exports.CreateReportSchedule = exports.CreateGlue42Schedule = exports.CreateIPushPullSchedule = exports.CreateEmptyOpenFinSchedule = exports.CreateEmptyGlue42Schedule = exports.CreateEmptyIPushPullSchedule = exports.CreateEmptyOpenFinReport = exports.CreateEmptyGlue42Report = exports.CreateEmptyIPushPullReport = exports.CreateEmptyReportSchedule = exports.CreateEmptyReminderSchedule = exports.CreateEmptyBaseSchedule = exports.CreateEmptyReport = exports.CreateInternalAlertDefinitionForMessages = exports.CreateEmptyFlashingCellDefinition = exports.CreateEmptyAlertDefinition = exports.CreateRowChangedAlert = exports.CreateCellChangedAlert = exports.CreateGenericAlert = exports.CreateEmptyPlusMinusNudge = exports.CreateEmptyNamedQuery = exports.CreateEmptyCalculatedColumn = exports.CreateEmptyCustomSort = void 0;
4
4
  const Enums_1 = require("../PredefinedConfig/Common/Enums");
5
5
  const GeneralConstants_1 = require("./Constants/GeneralConstants");
6
6
  const Uuid_1 = require("../PredefinedConfig/Uuid");
@@ -9,10 +9,6 @@ function CreateEmptyCustomSort() {
9
9
  return { Uuid: Uuid_1.createUuid(), ColumnId: GeneralConstants_1.EMPTY_STRING, SortedValues: [] };
10
10
  }
11
11
  exports.CreateEmptyCustomSort = CreateEmptyCustomSort;
12
- function CreateEmptyDataSource() {
13
- return { Uuid: Uuid_1.createUuid(), Name: GeneralConstants_1.EMPTY_STRING, Description: GeneralConstants_1.EMPTY_STRING };
14
- }
15
- exports.CreateEmptyDataSource = CreateEmptyDataSource;
16
12
  function CreateEmptyCalculatedColumn(isFilterable) {
17
13
  return {
18
14
  Uuid: Uuid_1.createUuid(),
@@ -359,7 +355,7 @@ function CreateColumnFilter(ColumnId, PredicateId, Inputs) {
359
355
  };
360
356
  }
361
357
  exports.CreateColumnFilter = CreateColumnFilter;
362
- function CreateToastOptions(notificationsOptions, { onClose } = {}) {
358
+ function CreateToastOptions(notificationsOptions, { onClose, containerId }) {
363
359
  const adaptableToastPosition = notificationsOptions.position;
364
360
  const position = getToastPosition(adaptableToastPosition);
365
361
  const duration = notificationsOptions.duration;
@@ -369,6 +365,7 @@ function CreateToastOptions(notificationsOptions, { onClose } = {}) {
369
365
  const isDraggable = notificationsOptions.isDraggable;
370
366
  const transition = getToastTransition(notificationsOptions.transition);
371
367
  const toastProps = {
368
+ containerId,
372
369
  position,
373
370
  autoClose: duration == 'always' ? false : duration,
374
371
  hideProgressBar: !showProgressBar,
@@ -412,7 +409,6 @@ function getToastTransition(transition) {
412
409
  }
413
410
  exports.ObjectFactory = {
414
411
  CreateEmptyCustomSort,
415
- CreateEmptyDataSource,
416
412
  CreateEmptyCalculatedColumn,
417
413
  CreateEmptyNamedQuery,
418
414
  CreateEmptyPlusMinusNudge,
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CalculatedColumnExpressionService = void 0;
4
- const Enums_1 = require("../../PredefinedConfig/Common/Enums");
5
4
  const LoggingHelper_1 = require("../Helpers/LoggingHelper");
6
5
  const ModuleConstants_1 = require("../Constants/ModuleConstants");
7
6
  const scalarAggregationHelper_1 = require("../ExpressionFunctions/scalarAggregationHelper");
@@ -42,28 +41,28 @@ class CalculatedColumnExpressionService {
42
41
  // currently AggregatedScalarExpression support only numerical values
43
42
  // TODO AFL try to derive the type from the aggregatedColumn?
44
43
  // we definitely don't want to aggregate everything only to get the data type
45
- return Enums_1.DataType.Number;
44
+ return 'Number';
46
45
  }
47
46
  let firstRowNode = this.adaptableApi.gridApi.getFirstRowNode();
48
47
  let firstRowValue = this.adaptableApi.internalApi
49
48
  .getQueryLanguageService()
50
49
  .evaluateScalarExpression(calculatedColumnQuery.ScalarExpression, ModuleConstants_1.CalculatedColumnModuleId, firstRowNode);
51
50
  if (firstRowValue instanceof Date) {
52
- return Enums_1.DataType.Date;
51
+ return 'Date';
53
52
  }
54
53
  if (typeof firstRowValue === 'boolean') {
55
- return Enums_1.DataType.Boolean;
54
+ return 'Boolean';
56
55
  }
57
56
  if (typeof firstRowValue === 'string') {
58
- return Enums_1.DataType.String;
57
+ return 'String';
59
58
  }
60
59
  if (typeof firstRowValue === 'number') {
61
- return Enums_1.DataType.Number;
60
+ return 'Number';
62
61
  }
63
62
  }
64
63
  catch (e) {
65
64
  LoggingHelper_1.LogAdaptableWarning(`Invalid CalculatedColumn expression ${this.adaptableApi.queryLanguageApi.getAdaptableQueryExpression(calculatedColumnQuery)} :: ${e}`);
66
- return Enums_1.DataType.Number;
65
+ return 'Number';
67
66
  }
68
67
  }
69
68
  isCalculatedColumnQueryValid(calculatedColumnQuery) {
@@ -33,7 +33,13 @@ class EntitlementService {
33
33
  const moduleEntitlements = entitlementOptions.moduleEntitlements;
34
34
  if (moduleEntitlements) {
35
35
  if (typeof moduleEntitlements === 'function') {
36
- const dynamicModuleEntitlement = moduleEntitlements(adaptableModule, adaptableOptions.userName, adaptableOptions.adaptableId, defaultAccessLevel);
36
+ const entitlementContext = {
37
+ adaptableModule,
38
+ userName: adaptableOptions.userName,
39
+ adaptableId: adaptableOptions.adaptableId,
40
+ defaultAccessLevel,
41
+ };
42
+ const dynamicModuleEntitlement = moduleEntitlements(entitlementContext);
37
43
  return dynamicModuleEntitlement !== null && dynamicModuleEntitlement !== void 0 ? dynamicModuleEntitlement : defaultAccessLevel;
38
44
  }
39
45
  else {
@@ -0,0 +1,8 @@
1
+ import { RowNode } from '@ag-grid-community/all-modules';
2
+ import { IAdaptableService } from './IAdaptableService';
3
+ import { AdaptableForm } from '../../../PredefinedConfig/Common/AdaptableForm';
4
+ import { CreateRowFormContext, EditRowFormContext } from '../../../AdaptableOptions/EditOptions';
5
+ export interface IRowEditService extends IAdaptableService {
6
+ buildRowEditForm(rowNode: RowNode): AdaptableForm<EditRowFormContext>;
7
+ buildRowCreateForm(clonedRowNode?: RowNode): AdaptableForm<CreateRowFormContext>;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -93,7 +93,7 @@ class ModuleService {
93
93
  return learnUrl + 'handbook-sorting';
94
94
  case 'Dashboard':
95
95
  return learnUrl + 'ui-dashboard';
96
- case 'DataSource':
96
+ case 'DataSet':
97
97
  return learnUrl + 'handbook-data-sources';
98
98
  case 'DataChangeHistory':
99
99
  return learnUrl + 'handbook-monitoring#data-change-history';