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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/base.css +22 -4
  2. package/bundle.cjs.js +111 -111
  3. package/index.css +26 -4
  4. package/package.json +1 -1
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +6 -1
  8. package/src/AdaptableOptions/ActionOptions.d.ts +1 -0
  9. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.js → ActionOptions.js} +0 -0
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +5 -0
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +3 -3
  12. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +5 -0
  13. package/src/AdaptableOptions/AlertOptions.d.ts +14 -1
  14. package/src/AdaptableOptions/ColumnOptions.d.ts +49 -0
  15. package/src/AdaptableOptions/{SmartEdit.js → ColumnOptions.js} +0 -0
  16. package/src/AdaptableOptions/DashboardOptions.d.ts +2 -7
  17. package/src/AdaptableOptions/DataChangeHistoryOptions.d.ts +19 -0
  18. package/src/AdaptableOptions/EditOptions.d.ts +92 -4
  19. package/src/AdaptableOptions/EntitlementOptions.d.ts +7 -1
  20. package/src/AdaptableOptions/ExportOptions.d.ts +5 -1
  21. package/src/AdaptableOptions/FilterOptions.d.ts +6 -1
  22. package/src/AdaptableOptions/FinancePluginOptions.d.ts +33 -3
  23. package/src/AdaptableOptions/GeneralOptions.d.ts +22 -23
  24. package/src/AdaptableOptions/{MasterDetailAgGridPluginOptions.d.ts → MasterDetailPluginOptions.d.ts} +2 -4
  25. package/src/{Api/DataSourceApi.js → AdaptableOptions/MasterDetailPluginOptions.js} +0 -0
  26. package/src/AdaptableOptions/SettingsPanelOptions.d.ts +3 -6
  27. package/src/AdaptableOptions/ToolPanelOptions.d.ts +2 -49
  28. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +81 -54
  29. package/src/Api/AdaptableApi.d.ts +6 -3
  30. package/src/Api/ColumnApi.d.ts +6 -3
  31. package/src/Api/ConditionalStyleApi.d.ts +10 -0
  32. package/src/Api/ConfigApi.d.ts +0 -12
  33. package/src/Api/DashboardApi.d.ts +6 -19
  34. package/src/Api/DataSetApi.d.ts +40 -0
  35. package/src/{PredefinedConfig/DataSourceState.js → Api/DataSetApi.js} +0 -0
  36. package/src/Api/EventApi.d.ts +18 -1
  37. package/src/Api/Events/DataSetChanged.d.ts +5 -0
  38. package/src/{PredefinedConfig/FilterState.js → Api/Events/DataSetChanged.js} +0 -0
  39. package/src/Api/Events/RowFormSubmitted.d.ts +19 -0
  40. package/src/Api/Events/RowFormSubmitted.js +2 -0
  41. package/src/Api/Events/SearchChanged.d.ts +3 -4
  42. package/src/Api/FilterApi.d.ts +1 -77
  43. package/src/Api/FinanceApi.d.ts +3 -2
  44. package/src/Api/FormatColumnApi.d.ts +28 -1
  45. package/src/Api/GridApi.d.ts +15 -1
  46. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -2
  47. package/src/Api/Implementation/AdaptableApiImpl.js +3 -3
  48. package/src/Api/Implementation/AlertApiImpl.js +5 -1
  49. package/src/Api/Implementation/ApiBase.d.ts +3 -0
  50. package/src/Api/Implementation/ApiBase.js +6 -0
  51. package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -2
  52. package/src/Api/Implementation/ColumnApiImpl.js +6 -3
  53. package/src/Api/Implementation/ConditionalStyleApiImpl.d.ts +2 -0
  54. package/src/Api/Implementation/ConditionalStyleApiImpl.js +8 -0
  55. package/src/Api/Implementation/ConfigApiImpl.d.ts +0 -4
  56. package/src/Api/Implementation/ConfigApiImpl.js +2 -24
  57. package/src/Api/Implementation/DashboardApiImpl.d.ts +3 -6
  58. package/src/Api/Implementation/DashboardApiImpl.js +5 -29
  59. package/src/Api/Implementation/DataSetApiImpl.d.ts +12 -0
  60. package/src/Api/Implementation/DataSetApiImpl.js +42 -0
  61. package/src/Api/Implementation/EventApiImpl.js +1 -0
  62. package/src/Api/Implementation/FilterApiImpl.d.ts +1 -16
  63. package/src/Api/Implementation/FilterApiImpl.js +5 -164
  64. package/src/Api/Implementation/FormatColumnApiImpl.d.ts +6 -0
  65. package/src/Api/Implementation/FormatColumnApiImpl.js +34 -0
  66. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  67. package/src/Api/Implementation/GridApiImpl.js +41 -1
  68. package/src/Api/Implementation/InternalApiImpl.d.ts +7 -2
  69. package/src/Api/Implementation/InternalApiImpl.js +51 -10
  70. package/src/Api/Implementation/LayoutApiImpl.d.ts +18 -1
  71. package/src/Api/Implementation/LayoutApiImpl.js +172 -0
  72. package/src/Api/Implementation/PredicateApiImpl.js +1 -1
  73. package/src/Api/Implementation/SmartEditApiImpl.d.ts +5 -2
  74. package/src/Api/Implementation/SmartEditApiImpl.js +9 -0
  75. package/src/Api/Implementation/TeamSharingApiImpl.d.ts +5 -3
  76. package/src/Api/Implementation/TeamSharingApiImpl.js +28 -10
  77. package/src/Api/Implementation/UserInterfaceApiImpl.d.ts +1 -1
  78. package/src/Api/Implementation/UserInterfaceApiImpl.js +7 -25
  79. package/src/Api/InternalApi.d.ts +6 -2
  80. package/src/Api/LayoutApi.d.ts +88 -1
  81. package/src/Api/SmartEditApi.d.ts +14 -3
  82. package/src/Api/TeamSharingApi.d.ts +18 -5
  83. package/src/Api/UserInterfaceApi.d.ts +4 -4
  84. package/src/PredefinedConfig/AdaptableState.d.ts +0 -4
  85. package/src/PredefinedConfig/CalculatedColumnState.d.ts +5 -0
  86. package/src/PredefinedConfig/Common/AdaptableButton.d.ts +3 -3
  87. package/src/PredefinedConfig/Common/AdaptableColumn.d.ts +5 -1
  88. package/src/PredefinedConfig/Common/AdaptableForm.d.ts +3 -2
  89. package/src/PredefinedConfig/Common/AdaptableFormat.d.ts +6 -3
  90. package/src/PredefinedConfig/Common/AdaptableObject.d.ts +2 -11
  91. package/src/PredefinedConfig/Common/AdaptablePredicate.js +35 -2
  92. package/src/PredefinedConfig/Common/BaseContext.d.ts +1 -1
  93. package/src/PredefinedConfig/{FilterState.d.ts → Common/ColumnFilter.d.ts} +2 -33
  94. package/src/PredefinedConfig/Common/ColumnFilter.js +2 -0
  95. package/src/PredefinedConfig/Common/Enums.d.ts +2 -2
  96. package/src/PredefinedConfig/Common/Enums.js +1 -1
  97. package/src/PredefinedConfig/Common/FDC3Context.d.ts +5 -1
  98. package/src/PredefinedConfig/Common/Types.d.ts +6 -5
  99. package/src/PredefinedConfig/Common/Types.js +2 -3
  100. package/src/PredefinedConfig/LayoutState.d.ts +5 -0
  101. package/src/PredefinedConfig/PredefinedConfig.d.ts +0 -10
  102. package/src/PredefinedConfig/StatusBarState.d.ts +1 -2
  103. package/src/PredefinedConfig/SystemState.d.ts +4 -2
  104. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +47 -0
  105. package/src/Redux/ActionsReducers/LayoutRedux.js +135 -1
  106. package/src/Redux/ActionsReducers/SystemRedux.d.ts +23 -1
  107. package/src/Redux/ActionsReducers/SystemRedux.js +39 -1
  108. package/src/Redux/Store/AdaptableStore.js +37 -39
  109. package/src/Strategy/AlertModule.d.ts +11 -0
  110. package/src/Strategy/AlertModule.js +14 -0
  111. package/src/Strategy/CellSummaryModule.d.ts +3 -0
  112. package/src/Strategy/CellSummaryModule.js +28 -14
  113. package/src/Strategy/DataSetModule.d.ts +25 -0
  114. package/src/Strategy/DataSetModule.js +65 -0
  115. package/src/Strategy/ExportModule.js +6 -1
  116. package/src/Strategy/FilterModule.d.ts +7 -11
  117. package/src/Strategy/FilterModule.js +24 -15
  118. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  119. package/src/Strategy/FlashingCellModule.js +2 -2
  120. package/src/Strategy/FormatColumnModule.js +1 -1
  121. package/src/Strategy/Interface/IModule.d.ts +3 -1
  122. package/src/Strategy/LayoutModule.js +24 -2
  123. package/src/Strategy/SmartEditModule.d.ts +1 -1
  124. package/src/Strategy/SmartEditModule.js +5 -6
  125. package/src/Strategy/StatusBarModule.js +1 -3
  126. package/src/Strategy/TeamSharingModule.js +1 -1
  127. package/src/Strategy/ToolPanelModule.js +1 -4
  128. package/src/Utilities/Constants/GeneralConstants.d.ts +6 -2
  129. package/src/Utilities/Constants/GeneralConstants.js +6 -2
  130. package/src/Utilities/Constants/ModuleConstants.d.ts +1 -1
  131. package/src/Utilities/Constants/ModuleConstants.js +2 -2
  132. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +22 -13
  133. package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -1
  134. package/src/Utilities/ExpressionFunctions/booleanExpressionFunctions.js +2 -4
  135. package/src/Utilities/Helpers/AdaptableHelper.js +4 -1
  136. package/src/Utilities/ObjectFactory.d.ts +3 -6
  137. package/src/Utilities/ObjectFactory.js +3 -7
  138. package/src/Utilities/Services/EntitlementService.js +7 -1
  139. package/src/Utilities/Services/Interface/IRowEditService.d.ts +8 -0
  140. package/src/Utilities/Services/Interface/IRowEditService.js +2 -0
  141. package/src/Utilities/Services/ModuleService.js +1 -1
  142. package/src/Utilities/Services/ReportService.js +2 -3
  143. package/src/Utilities/Services/RowEditService.d.ts +25 -0
  144. package/src/Utilities/Services/RowEditService.js +165 -0
  145. package/src/Utilities/Services/TeamSharingService.js +4 -4
  146. package/src/View/AdaptablePopover/index.d.ts +1 -0
  147. package/src/View/AdaptablePopover/index.js +5 -6
  148. package/src/View/AdaptableView.js +1 -1
  149. package/src/View/AdaptableViewFactory.js +2 -2
  150. package/src/View/Alert/ActiveAlertsPanel.d.ts +2 -0
  151. package/src/View/Alert/ActiveAlertsPanel.js +15 -0
  152. package/src/View/Alert/AlertStatusSubPanel.js +3 -8
  153. package/src/View/Alert/AlertViewPanel.js +2 -2
  154. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +1 -1
  155. package/src/View/BulkUpdate/BulkUpdateViewPanel.js +1 -1
  156. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +1 -1
  157. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -2
  158. package/src/View/CellSummary/CellSummaryDetails.js +2 -2
  159. package/src/View/CellSummary/CellSummaryPopover.d.ts +2 -4
  160. package/src/View/CellSummary/CellSummaryPopover.js +3 -6
  161. package/src/View/CellSummary/CellSummaryPopup.js +8 -0
  162. package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +1 -1
  163. package/src/View/CellSummary/CellSummaryStatusPanel.js +2 -2
  164. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -1
  165. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +18 -8
  166. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -2
  167. package/src/View/Components/ExternalRenderer.d.ts +3 -6
  168. package/src/View/Components/ExternalRenderer.js +5 -5
  169. package/src/View/Components/FilterForm/FilterForm.d.ts +5 -2
  170. package/src/View/Components/FilterForm/FilterForm.js +9 -7
  171. package/src/View/Components/FilterForm/ListBoxFilterForm.d.ts +4 -1
  172. package/src/View/Components/FilterForm/ListBoxFilterForm.js +7 -7
  173. package/src/View/Components/FilterForm/QuickFilterForm.d.ts +1 -1
  174. package/src/View/Components/FilterForm/QuickFilterForm.js +21 -7
  175. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  176. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +2 -0
  177. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +0 -2
  178. package/src/View/Components/Popups/AdaptablePopupAlert.js +13 -11
  179. package/src/View/Components/Popups/AdaptableToaster.js +29 -9
  180. package/src/View/Components/Popups/FormPopups/FormPopups.js +2 -2
  181. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +3 -2
  182. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +11 -9
  183. package/src/View/Dashboard/CustomDashboardButton.d.ts +11 -0
  184. package/src/View/Dashboard/CustomDashboardButton.js +47 -0
  185. package/src/View/Dashboard/CustomToolbarWrapper.d.ts +1 -0
  186. package/src/View/Dashboard/CustomToolbarWrapper.js +30 -11
  187. package/src/View/Dashboard/Dashboard.d.ts +1 -0
  188. package/src/View/Dashboard/Dashboard.js +8 -34
  189. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +19 -36
  190. package/src/View/DataChangeHistory/buildActionColumnButton.d.ts +3 -0
  191. package/src/View/DataChangeHistory/buildActionColumnButton.js +70 -0
  192. package/src/View/DataSet/DataSetSelector.d.ts +7 -0
  193. package/src/View/DataSet/DataSetSelector.js +18 -0
  194. package/src/View/DataSet/DataSetStatusPanelPopover.d.ts +2 -0
  195. package/src/View/DataSet/DataSetStatusPanelPopover.js +19 -0
  196. package/src/View/DataSet/DataSetViewPanel.d.ts +19 -0
  197. package/src/View/DataSet/DataSetViewPanel.js +58 -0
  198. package/src/View/Filter/ActiveFiltersPanel.js +1 -1
  199. package/src/View/Filter/FilterSummary.d.ts +5 -5
  200. package/src/View/Filter/FilterSummary.js +6 -5
  201. package/src/View/Filter/FilterViewPanel.d.ts +4 -4
  202. package/src/View/Filter/FilterViewPanel.js +11 -14
  203. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.d.ts +3 -2
  204. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +51 -22
  205. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  206. package/src/View/GridInfo/GridInfoPopup.js +1 -1
  207. package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +6 -24
  208. package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
  209. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +2 -1
  210. package/src/View/SmartEdit/SmartEditPopup.d.ts +1 -1
  211. package/src/View/SmartEdit/SmartEditPopup.js +3 -4
  212. package/src/View/SmartEdit/SmartEditViewPanel.d.ts +1 -1
  213. package/src/View/SmartEdit/SmartEditViewPanel.js +3 -4
  214. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  215. package/src/View/StatusBar/AdaptableStatusBar.js +1 -1
  216. package/src/View/StatusBar/StatusBarPanel.d.ts +1 -0
  217. package/src/View/StatusBar/StatusBarPanel.js +5 -4
  218. package/src/View/Theme/ThemeStatusPanelPopover.js +5 -25
  219. package/src/View/UIHelper.d.ts +4 -4
  220. package/src/View/UIHelper.js +4 -4
  221. package/src/agGrid/ActionColumnRenderer.d.ts +6 -1
  222. package/src/agGrid/ActionColumnRenderer.js +9 -6
  223. package/src/agGrid/Adaptable.d.ts +7 -2
  224. package/src/agGrid/Adaptable.js +217 -87
  225. package/src/agGrid/FilterWrapper.js +1 -1
  226. package/src/agGrid/agGridHelper.d.ts +6 -6
  227. package/src/agGrid/agGridHelper.js +34 -56
  228. package/src/agGrid/agGridMenuHelper.js +4 -1
  229. package/src/agGrid/rowEditIcons.d.ts +4 -0
  230. package/src/agGrid/rowEditIcons.js +9 -0
  231. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +9 -18
  232. package/src/components/Dashboard/DashboardToolbar.js +2 -2
  233. package/src/components/Datepicker/index.js +19 -18
  234. package/src/components/SelectList.d.ts +10 -0
  235. package/src/components/SelectList.js +9 -0
  236. package/src/components/WindowModal/WindowModal.d.ts +2 -0
  237. package/src/components/WindowModal/WindowModal.js +1 -1
  238. package/src/components/icons/{data-source.d.ts → data-set.d.ts} +0 -0
  239. package/src/components/icons/{data-source.js → data-set.js} +0 -0
  240. package/src/components/icons/index.js +2 -2
  241. package/src/metamodel/adaptable.metamodel.d.ts +242 -70
  242. package/src/metamodel/adaptable.metamodel.js +620 -376
  243. package/src/types.d.ts +19 -15
  244. package/version.d.ts +1 -1
  245. package/version.js +1 -1
  246. package/src/AdaptableOptions/SmartEdit.d.ts +0 -34
  247. package/src/Api/DataSourceApi.d.ts +0 -58
  248. package/src/Api/Implementation/DataSourceApiImpl.d.ts +0 -15
  249. package/src/Api/Implementation/DataSourceApiImpl.js +0 -51
  250. package/src/PredefinedConfig/DataSourceState.d.ts +0 -34
  251. package/src/Redux/ActionsReducers/DataSourceRedux.d.ts +0 -42
  252. package/src/Redux/ActionsReducers/DataSourceRedux.js +0 -76
  253. package/src/Redux/ActionsReducers/FilterRedux.d.ts +0 -70
  254. package/src/Redux/ActionsReducers/FilterRedux.js +0 -126
  255. package/src/Strategy/DataSourceModule.d.ts +0 -20
  256. package/src/Strategy/DataSourceModule.js +0 -56
  257. package/src/View/Components/Forms/AdaptableForm.d.ts +0 -6
  258. package/src/View/Components/Forms/AdaptableForm.js +0 -21
  259. package/src/View/DataSource/DataSourceViewPanel.d.ts +0 -19
  260. package/src/View/DataSource/DataSourceViewPanel.js +0 -69
  261. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.d.ts +0 -2
  262. package/src/View/DataSource/Wizard/DataSourceSettingsSummary.js +0 -17
  263. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.d.ts +0 -8
  264. package/src/View/DataSource/Wizard/DataSourceSettingsWizard.js +0 -42
  265. package/src/View/DataSource/Wizard/DataSourceWizard.d.ts +0 -8
  266. package/src/View/DataSource/Wizard/DataSourceWizard.js +0 -53
@@ -5,7 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
6
  const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../Utilities/Extensions/ArrayExtensions"));
8
- const FilterRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/FilterRedux"));
8
+ const LayoutRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/LayoutRedux"));
9
+ const SystemRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/SystemRedux"));
9
10
  const LoggingHelper_1 = require("../Utilities/Helpers/LoggingHelper");
10
11
  const FilterStatusBarSubPanelPopover_1 = require("../View/Filter/FilterStatusBarSubPanelPopover");
11
12
  class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
@@ -13,7 +14,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
14
  super(ModuleConstants.FilterModuleId, 'Filter', 'column-filter', 'FilterPopup', 'Advanced filtering capability allows users to see precisely the data they want', api);
14
15
  }
15
16
  getModuleAdaptableObjects() {
16
- return this.api.filterApi.getAllColumnFilter();
17
+ return this.api.layoutApi.getAllColumnFilter();
17
18
  }
18
19
  getExplicitlyReferencedColumnIds(columnFilter) {
19
20
  return [columnFilter.ColumnId];
@@ -22,7 +23,10 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
23
  return false;
23
24
  }
24
25
  handleAdaptableReady() {
25
- const columnFilters = this.api.filterApi.getAllColumnFilter();
26
+ if (this.api.internalApi.getAdaptableOptions().filterOptions.showQuickFilter == false) {
27
+ this.api.filterApi.hideQuickFilterBar();
28
+ }
29
+ const columnFilters = this.api.layoutApi.getAllColumnFilter();
26
30
  columnFilters.forEach((cf) => {
27
31
  if (!this.api.columnApi.doesColumnExist(cf.ColumnId)) {
28
32
  LoggingHelper_1.LogAdaptableError('Column Filter contains missing column: ' + cf.ColumnId);
@@ -43,7 +47,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
43
47
  })
44
48
  : [menuContext.gridCell.primaryKeyValue];
45
49
  let clickFunction = () => {
46
- this.api.filterApi.createColumnFilterForCell(menuContext.adaptableColumn.columnId, pkValues);
50
+ this.api.layoutApi.createColumnFilterForCell(menuContext.adaptableColumn.columnId, pkValues);
47
51
  };
48
52
  menuItemClickFunction = this.createColumnMenuItemClickFunction(isMultiple ? 'Filter on Cell Values' : 'Filter on Cell Value', this.moduleInfo.Glyph, clickFunction);
49
53
  }
@@ -55,15 +59,17 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
55
59
  if (column && this.api.gridApi.isQuickFilterAvailable()) {
56
60
  const isFilterVisible = this.api.filterApi.isQuickFilterVisible();
57
61
  if (this.isModuleEditable() && this.api.columnApi.usesAdaptableQuickFilter(column.columnId)) {
58
- baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Quick Filter Bar' : 'Show Quick Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible ? FilterRedux.QuickFilterBarHide() : FilterRedux.QuickFilterBarShow()));
62
+ baseMenuItems.push(this.createColumnMenuItemReduxAction(isFilterVisible ? 'Hide Quick Filter Bar' : 'Show Quick Filter Bar', isFilterVisible ? 'unchecked' : 'check', isFilterVisible
63
+ ? SystemRedux.SystemQuickFilterBarHide()
64
+ : SystemRedux.SystemQuickFilterBarShow()));
59
65
  }
60
66
  }
61
67
  if (column && this.canCreateColumnMenuItem(column, 'ReadOnly', 'filter')) {
62
- let existingColumnFilter = this.api.filterApi
68
+ let existingColumnFilter = this.api.layoutApi
63
69
  .getAllColumnFilter()
64
70
  .find((x) => x.ColumnId == column.columnId);
65
71
  if (existingColumnFilter) {
66
- baseMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', this.moduleInfo.Glyph, FilterRedux.ColumnFilterClear(existingColumnFilter)));
72
+ baseMenuItems.push(this.createColumnMenuItemReduxAction('Clear Filter', this.moduleInfo.Glyph, LayoutRedux.LayoutColumnFilterClear(existingColumnFilter)));
67
73
  }
68
74
  }
69
75
  if (ArrayExtensions_1.default.IsNotNullOrEmpty(baseMenuItems)) {
@@ -72,16 +78,17 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
72
78
  }
73
79
  getTeamSharingAction() {
74
80
  return {
75
- ModuleEntities: this.api.filterApi.getAllColumnFilter(),
76
- AddAction: FilterRedux.ColumnFilterAdd,
77
- EditAction: FilterRedux.ColumnFilterEdit,
81
+ ModuleEntities: this.api.layoutApi.getAllColumnFilter(),
82
+ AddAction: LayoutRedux.LayoutColumnFilterAdd,
83
+ EditAction: LayoutRedux.LayoutColumnFilterEdit,
78
84
  };
79
85
  }
80
86
  toViewCompact(filter) {
81
87
  return {
82
88
  item: {
83
- name: this.api.columnApi.getFriendlyNameFromColumnId(filter.ColumnId),
84
- values: [this.api.filterApi.columnFilterToString(filter)],
89
+ // we dont really need the name here - is there way to return a single vlaue that takes up the whole line?
90
+ // name: this.api.columnApi.getFriendlyNameFromColumnId(filter.ColumnId),
91
+ values: [this.api.layoutApi.columnFilterToString(filter)],
85
92
  },
86
93
  abObject: filter,
87
94
  };
@@ -95,7 +102,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
95
102
  },
96
103
  {
97
104
  name: 'Filter',
98
- values: [this.api.filterApi.columnFilterToString(filter)],
105
+ values: [this.api.layoutApi.columnFilterToString(filter)],
99
106
  },
100
107
  ],
101
108
  abObject: filter,
@@ -107,7 +114,9 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
107
114
  getViewProperties() {
108
115
  const api = this.api;
109
116
  return {
110
- getDeleteAction: FilterRedux.ColumnFilterClear,
117
+ getDeleteAction: LayoutRedux.LayoutColumnFilterClear,
118
+ getCompactDeleteAction: LayoutRedux.LayoutColumnFilterClear,
119
+ getDeleteAllAction: LayoutRedux.LayoutColumnFilterClearAll,
111
120
  emptyView: `
112
121
  There are currently no column filters applied. \n
113
122
 
@@ -115,7 +124,7 @@ class FilterModule extends AdaptableModuleBase_1.AdaptableModuleBase {
115
124
  `,
116
125
  getStatusBarPanelProps() {
117
126
  let text;
118
- const filters = api.filterApi.getAllColumnFilter();
127
+ const filters = api.layoutApi.getAllColumnFilter();
119
128
  if (filters.length === 0) {
120
129
  text = '0 Filters';
121
130
  }
@@ -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);
@@ -247,7 +247,7 @@ class FormatColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
247
247
  },
248
248
  {
249
249
  name: 'Display Format',
250
- values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn)],
250
+ values: [FormatColumnFormatWizardSection_1.getFormatColumnFormatSummaryValue(formatColumn, this.api.formatColumnApi)],
251
251
  },
252
252
  getFormatColumnSettingsViewItems_1.getFormatColumnSettingsViewItems(formatColumn),
253
253
  getObjectTagsViewItems_1.getObjectTagsViewItems(formatColumn, this.api),
@@ -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,6 +21,26 @@ 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() {
25
45
  return this.api.layoutApi.getAllLayout();
26
46
  }
@@ -154,10 +174,12 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
154
174
  const extraColumns = columns.length - maxColumnsToDisplay;
155
175
  const firstNColumns = columns
156
176
  .slice(0, maxColumnsToDisplay)
157
- .map((colId) => columnIdToFriendlyName(colId));
177
+ .map((column) => columnIdToFriendlyName(column));
158
178
  columns = [...firstNColumns, `and other ${extraColumns}`];
159
179
  }
160
- columns = columns.map((column) => this.api.columnApi.getFriendlyNameFromColumnId(column));
180
+ else {
181
+ columns = columns.map((column) => columnIdToFriendlyName(column));
182
+ }
161
183
  return {
162
184
  items: [
163
185
  {
@@ -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;
@@ -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,7 +22,7 @@ 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;
@@ -40,7 +45,6 @@ export declare const ALERT_DEFAULT_SHOW_POPUP: boolean;
40
45
  */
41
46
  export declare const SUMMARY_OPERATION_STATE_PROPERTY: string;
42
47
  export declare const CURRENT_LAYOUT_STATE_PROPERTY: string;
43
- export declare const CURRENT_DATA_SOURCE_STATE_PROPERTY: string;
44
48
  export declare const CURRENT_REPORT_STATE_PROPERTY: string;
45
49
  export declare const FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY: string;
46
50
  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.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';
@@ -54,7 +59,6 @@ exports.ALERT_DEFAULT_SHOW_POPUP = true;
54
59
  */
55
60
  exports.SUMMARY_OPERATION_STATE_PROPERTY = 'SummaryOperation';
56
61
  exports.CURRENT_LAYOUT_STATE_PROPERTY = 'CurrentLayout';
57
- exports.CURRENT_DATA_SOURCE_STATE_PROPERTY = 'CurrentDataSource';
58
62
  exports.CURRENT_REPORT_STATE_PROPERTY = 'CurrentReport';
59
63
  exports.FLASHING_CELL_DEFAULT_UP_COLOR_STATE_PROPERTY = 'DefaultUpColor';
60
64
  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,31 @@ 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
+ },
213
231
  colorPalette: UIHelper_1.default.getDefaultColors(),
214
232
  editableCellStyle: undefined,
215
233
  readOnlyCellStyle: undefined,
216
234
  styleClassNames: GeneralConstants_1.EMPTY_ARRAY,
217
- columnTypes: GeneralConstants_1.EMPTY_ARRAY,
218
235
  permittedValues: undefined,
219
236
  editLookUpItems: undefined,
220
- actionColumns: undefined,
237
+ customDisplayFormatters: undefined,
221
238
  showDocumentationLinks: true,
222
239
  gridInfoSections: ['GridSummary', 'AdaptableOptions', 'ColumnInfo'],
223
240
  showAdapTableVersion: true,
224
241
  },
225
242
  toolPanelOptions: {
226
- showAdaptableToolPanel: true,
227
- adaptableToolPanelTitle: GeneralConstants.ADAPTABLE,
228
243
  showToolPanelsDropdown: true,
229
244
  customButtons: undefined,
230
245
  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
246
  },
237
247
  dataChangeHistoryOptions: {
238
248
  activeByDefault: false,
239
249
  showDataChange: undefined,
240
250
  },
241
- customPredicateDefs: [],
242
251
  settingsPanelOptions: {
243
252
  popupType: 'window',
244
253
  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',
@@ -226,10 +226,8 @@ exports.booleanExpressionFunctions = {
226
226
  var _a;
227
227
  const searchTerm = expressionFunctionUtils_1.getStringValue(context, String(args[0]));
228
228
  return (_a = context.api) === null || _a === void 0 ? void 0 : _a.columnApi.getColumns().some((column) => {
229
- var _a, _b;
230
- const value = column.dataType === 'Date'
231
- ? // for Date columns use the display value, as we do a textual comparison
232
- (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getDisplayValueFromRowNode(context.node, column.columnId) : (_b = context.api) === null || _b === void 0 ? void 0 : _b.gridApi.getNormalisedValueFromRowNode(context.node, column.columnId);
229
+ var _a;
230
+ const value = (_a = context.api) === null || _a === void 0 ? void 0 : _a.gridApi.getDisplayValueFromRowNode(context.node, column.columnId);
233
231
  const columnValue = expressionFunctionUtils_1.getStringValue(context, String(value));
234
232
  return columnValue.indexOf(searchTerm) !== -1;
235
233
  });
@@ -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,