@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
@@ -8,20 +8,31 @@ const TeamSharingRedux_1 = require("../../Redux/ActionsReducers/TeamSharingRedux
8
8
  const TeamSharingRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/TeamSharingRedux"));
9
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
10
10
  class TeamSharingApiImpl extends ApiBase_1.ApiBase {
11
- getTeamSharingState() {
12
- return this.getAdaptableState().TeamSharing;
11
+ async getSharedEntities() {
12
+ if (!this.isTeamSharingActivated()) {
13
+ LoggingHelper_1.ConsoleLogWarning('Team Sharing is not Activated so Entities cannot be loaded');
14
+ return [];
15
+ }
16
+ return this.adaptable.adaptableOptions.teamSharingOptions.getSharedEntities(this.adaptable.adaptableOptions.adaptableId);
13
17
  }
14
- getSharedEntities() {
15
- return this.getAdaptableState().TeamSharing.SharedEntities;
18
+ async setSharedEntities(sharedEntities) {
19
+ if (!this.isTeamSharingActivated()) {
20
+ LoggingHelper_1.ConsoleLogWarning('Team Sharing is not Activated so Entities cannot be shared');
21
+ return false;
22
+ }
23
+ await this.adaptable.adaptableOptions.teamSharingOptions.setSharedEntities(this.adaptable.adaptableOptions.adaptableId, sharedEntities);
24
+ return true;
16
25
  }
17
- isTeamSharingActivated() {
26
+ isTeamSharingAvailable() {
27
+ var _a, _b, _c;
18
28
  return (!this.getAdaptableApi()
19
29
  .internalApi.getEntitlementService()
20
- .isModuleHiddenEntitlement(ModuleConstants.TeamSharingModuleId) &&
21
- this.adaptable.adaptableOptions.teamSharingOptions &&
22
- this.adaptable.adaptableOptions.teamSharingOptions.enableTeamSharing &&
23
- !!this.adaptable.adaptableOptions.teamSharingOptions.getSharedEntities &&
24
- !!this.adaptable.adaptableOptions.teamSharingOptions.setSharedEntities);
30
+ .isModuleHiddenEntitlement(ModuleConstants.TeamSharingModuleId) && ((_a = this.adaptable.adaptableOptions.teamSharingOptions) === null || _a === void 0 ? void 0 : _a.enableTeamSharing) &&
31
+ !!((_b = this.adaptable.adaptableOptions.teamSharingOptions) === null || _b === void 0 ? void 0 : _b.getSharedEntities) &&
32
+ !!((_c = this.adaptable.adaptableOptions.teamSharingOptions) === null || _c === void 0 ? void 0 : _c.setSharedEntities));
33
+ }
34
+ isTeamSharingActivated() {
35
+ return this.isTeamSharingAvailable();
25
36
  }
26
37
  hasTeamSharingFullRights() {
27
38
  return this.adaptable.api.internalApi
@@ -50,5 +61,12 @@ class TeamSharingApiImpl extends ApiBase_1.ApiBase {
50
61
  }
51
62
  this.dispatchAction(TeamSharingRedux.TeamSharingShare(entity, module, sharedEntityConfig));
52
63
  }
64
+ unshareEntity(entityId) {
65
+ if (!this.isTeamSharingActivated()) {
66
+ LoggingHelper_1.ConsoleLogWarning('Team Sharing is not Activated so Entities cannot be unshared');
67
+ return;
68
+ }
69
+ this.dispatchAction(TeamSharingRedux.TeamSharingRemoveItem(entityId));
70
+ }
53
71
  }
54
72
  exports.TeamSharingApiImpl = TeamSharingApiImpl;
@@ -24,6 +24,6 @@ export declare class UserInterfaceApiImpl extends ApiBase implements UserInterfa
24
24
  addContextMenuItem(userMenuItem: UserMenuItem<ContextMenuContext>): void;
25
25
  getEditableCellStyle(): AdaptableStyle | undefined;
26
26
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
27
- getAllActionColumn(): ActionColumn[];
28
27
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
28
+ getAllActionColumn(): ActionColumn[];
29
29
  }
@@ -134,25 +134,7 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
134
134
  if (!editLookUpItem || !gridCell || !gridCell.column) {
135
135
  return undefined;
136
136
  }
137
- let editLookUpValues = editLookUpItem.values;
138
- // first do the function then get hardcoded items
139
- if (editLookUpValues != null && typeof editLookUpValues === 'function') {
140
- const editLookUpContext = {
141
- adaptableApi: this.adaptable.api,
142
- column: gridCell.column,
143
- gridCell: gridCell,
144
- };
145
- return editLookUpValues(editLookUpContext);
146
- }
147
- else {
148
- let arr = editLookUpValues;
149
- if (arr && ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(arr)) {
150
- return arr;
151
- }
152
- }
153
- // if no hard-coded values or function provided then just get the distinct values for the column
154
- // this will use the columnapi method that first looks for permitted values and then distinct values
155
- return this.adaptable.api.columnApi.getDistinctDisplayValuesForColumn(gridCell.column.columnId);
137
+ return this.adaptable.api.internalApi.getEditLookUpValuesForColumn(editLookUpItem, gridCell.column, gridCell);
156
138
  }
157
139
  addColumnMenuItem(userMenuItem) {
158
140
  var _a;
@@ -168,14 +150,10 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
168
150
  getReadOnlyCellStyle() {
169
151
  return this.getUserInterfaceOptions().readOnlyCellStyle;
170
152
  }
171
- getAllActionColumn() {
172
- var _a;
173
- return (_a = this.getUserInterfaceOptions().actionColumns) !== null && _a !== void 0 ? _a : [];
174
- }
175
153
  getAdaptableObjectTags() {
176
- let objectTags = this.getUserInterfaceOptions().objectTags;
154
+ const objectTags = this.getUserInterfaceOptions().objectTags;
177
155
  if (objectTags != null && typeof objectTags === 'function') {
178
- return objectTags(this.getAdaptableApi());
156
+ return objectTags({ adaptableApi: this.adaptable.api });
179
157
  }
180
158
  else {
181
159
  let arr = objectTags;
@@ -184,5 +162,9 @@ class UserInterfaceApiImpl extends ApiBase_1.ApiBase {
184
162
  }
185
163
  }
186
164
  }
165
+ getAllActionColumn() {
166
+ var _a, _b;
167
+ return (_b = (_a = this.getUserInterfaceOptions().actionOptions) === null || _a === void 0 ? void 0 : _a.actionColumns) !== null && _b !== void 0 ? _b : [];
168
+ }
187
169
  }
188
170
  exports.UserInterfaceApiImpl = UserInterfaceApiImpl;
@@ -17,7 +17,7 @@ import { AdaptableOptions } from '../AdaptableOptions/AdaptableOptions';
17
17
  import { Layout } from '../PredefinedConfig/LayoutState';
18
18
  import { AdaptableAlert, AdaptableCellChangedAlert, AdaptableRowChangedAlert } from '../PredefinedConfig/Common/AdaptableAlert';
19
19
  import { IDataService } from '../Utilities/Services/Interface/IDataService';
20
- import { AdaptableMessageType, AlertDefinition, BaseContext, CellDataChangedInfo, LayoutAssociatedObject, SystemStatusMessageInfo } from '../types';
20
+ import { AdaptableIcon, AdaptableMessageType, AlertDefinition, BaseContext, CellDataChangedInfo, EditLookUpPermittedValues, LayoutAssociatedObject, SharedEntity, SystemStatusMessageInfo } from '../types';
21
21
  import { IEntitlementService } from '../Utilities/Services/Interface/IEntitlementService';
22
22
  import { AdaptableFlashingCell } from '../PredefinedConfig/Common/AdaptableFlashingCell';
23
23
  import { IQueryLanguageService } from '../Utilities/Services/Interface/IQueryLanguageService';
@@ -34,6 +34,7 @@ import { IMetamodelService } from '../Utilities/Services/Interface/IMetamodelSer
34
34
  import { RowNode } from '@ag-grid-community/all-modules';
35
35
  import { IModuleCollection } from '../Strategy/Interface/IModule';
36
36
  import { AdaptableObjectTag } from '../PredefinedConfig/Common/AdaptableObject';
37
+ import { IRowEditService } from '../Utilities/Services/Interface/IRowEditService';
37
38
  /**
38
39
  * This set of api methods is designed for **internal use of Adaptable** only.
39
40
  *
@@ -101,6 +102,7 @@ export interface InternalApi {
101
102
  getAlertService(): IAlertService;
102
103
  getTeamSharingService(): ITeamSharingService;
103
104
  getMetamodelService(): IMetamodelService;
105
+ getRowEditService(): IRowEditService;
104
106
  getModules(): IModuleCollection;
105
107
  getModuleFriendlyName(adaptableModule: AdaptableModule): string;
106
108
  runModuleInAdaptableQL(adaptableQLModule: AdaptableQLModule): boolean;
@@ -115,9 +117,10 @@ export interface InternalApi {
115
117
  getLabelForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
116
118
  getTooltipForButton(button: AdaptableButton<BaseContext>, context: BaseContext): string | undefined;
117
119
  getStyleForButton(button: AdaptableButton<BaseContext>, context: BaseContext): ButtonStyle | undefined;
120
+ getIconForButton(button: AdaptableButton<BaseContext>, context: BaseContext): AdaptableIcon | undefined;
118
121
  dispatchReduxAction(action: Action): void;
119
122
  waitForTeamSharingImportEnd(): Promise<boolean>;
120
- getUserDefinedHeaderName(columnId: string): string;
123
+ getLocalTeamSharingEntities(): SharedEntity[];
121
124
  createFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar' | string): void;
122
125
  destroyFrameworkComponent(containerDomNode: HTMLElement, frameworkComponent: AdaptableFrameworkComponent, componentType: 'toolPanel' | 'toolbar' | string): void;
123
126
  initializeDataChangeHistory(): void;
@@ -133,4 +136,5 @@ export interface InternalApi {
133
136
  showSettingsPanel(module: AdaptableModule, moduleParams?: ModuleParams): void;
134
137
  getLabelForTag(adaptableObjectTag: AdaptableObjectTag): string;
135
138
  getValueForTag(adaptableObjectTag: AdaptableObjectTag): string | number;
139
+ getEditLookUpValuesForColumn(editLookUpItem: EditLookUpPermittedValues, column: AdaptableColumn, gridCell?: GridCell): any[] | undefined;
136
140
  }
@@ -187,4 +187,20 @@ export interface LayoutApi {
187
187
  * @param adaptableObject object to check
188
188
  */
189
189
  isObjectAvailableInCurrentLayout(adaptableObject: LayoutAssociatedObject): boolean;
190
+ /**
191
+ * Removes a Column from the Current Layout
192
+ * @param columnId Column to remove
193
+ */
194
+ removeColumnFromCurrentLayout(columnId: string): void;
195
+ /**
196
+ * Removes a Column from all Layouts
197
+ * @param columnId Column to remove
198
+ */
199
+ removeColumnFromAllLayouts(columnId: string): void;
200
+ /**
201
+ * Removes a Column from a given Layout
202
+ * @param columnId Column to remove
203
+ * @param layoutName layout from which to remove Column
204
+ */
205
+ removeColumnFromLayout(columnId: string, layoutName: string): void;
190
206
  }
@@ -1,4 +1,6 @@
1
+ import { AdaptableColumnDataType } from '../../types';
1
2
  import { AdaptablePredicateDef, AdaptablePredicate, PredicateDefHandlerParams, ModuleScope } from '../PredefinedConfig/Common/AdaptablePredicate';
3
+ import { SystemFilterPredicateId } from '../types';
2
4
  /**
3
5
  * Functions which manage the Predicate object in AdapTable
4
6
  */
@@ -52,4 +54,9 @@ export interface PredicateApi {
52
54
  * @param defaultReturn Whether to return the default
53
55
  */
54
56
  handlePredicate(predicate: AdaptablePredicate | undefined, params: Omit<PredicateDefHandlerParams, 'api' | 'inputs'>, defaultReturn: boolean): boolean;
57
+ /**
58
+ * Gets the correct Equality-type System Predicate for a particular DataType
59
+ * @param dataType DataType of Column
60
+ */
61
+ getEqualityPredicateForDataType(dataType: AdaptableColumnDataType): SystemFilterPredicateId;
55
62
  }
@@ -1,14 +1,21 @@
1
- import { SmartEditOperation } from '../AdaptableOptions/SmartEdit';
1
+ import { SmartEditOperation } from '../AdaptableOptions/EditOptions';
2
+ import { MathOperation } from '../PredefinedConfig/Common/Enums';
2
3
  import { GridCell } from '../PredefinedConfig/Selection/GridCell';
4
+ import { SmartEditCustomOperation } from '../types';
3
5
  /**
4
6
  * Provides run-time access to the Smart Edit Module
5
7
  **/
6
8
  export interface SmartEditApi {
7
9
  /**
8
- * Sets Smart Edit operation: ('Add','Subtract','Multiply','Divide'
10
+ * Sets (shipped) Smart Edit Operation: 'Add','Subtract','Multiply','Divide'
9
11
  * @param operation operation to run
10
12
  */
11
- setSmartEditOperation(operation: SmartEditOperation): void;
13
+ setSmartEditOperation(operation: MathOperation): void;
14
+ /**
15
+ * Sets current Smart Edit Operation to a Custom Operation
16
+ * @param customOperationName name of Custom Smart Edit Operation
17
+ */
18
+ setCustomSmartEditOperation(customOperationName: string): void;
12
19
  /**
13
20
  * Gets current Smart Edit Operation
14
21
  */
@@ -31,4 +38,8 @@ export interface SmartEditApi {
31
38
  * @param gridCells Cells to apply the Smart Edit
32
39
  */
33
40
  applySmartEdit(gridCells: GridCell[]): void;
41
+ /**
42
+ * Retrieves an Smart Edit Custom Operations (provided in Edit Options)
43
+ */
44
+ getSmartEditCustomOperations(): SmartEditCustomOperation[] | undefined;
34
45
  }
@@ -1,22 +1,30 @@
1
1
  import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
2
2
  import { SharedEntity } from '../PredefinedConfig/TeamSharingState';
3
- import { AdaptableModule, SharedEntityConfig, TeamSharingState } from '../types';
3
+ import { AdaptableModule, SharedEntityConfig } from '../types';
4
4
  /**
5
5
  * Provides run-time access to Team Sharing Module and associated state
6
6
  */
7
7
  export interface TeamSharingApi {
8
8
  /**
9
- * Retrieves Team Sharing section of State
9
+ * Retrieves all shared entities which are currently shared. It is an asynchronous operation as it leverages the `TeamSharingOptions.getSharedEntities(...)` method.
10
10
  */
11
- getTeamSharingState(): TeamSharingState;
11
+ getSharedEntities(): Promise<SharedEntity[]>;
12
12
  /**
13
- * Retrieves all Shared Entities in Team Sharing State
13
+ * Sets the shared entities which are currently shared. It is an asynchronous operation as it leverages the `TeamSharingOptions.setSharedEntities(...)` method.
14
+ * @param sharedEntities the shared entities
15
+ * @return either TRUE if the shared entities were successfully set or FALSE if the shared entities were not set
14
16
  */
15
- getSharedEntities(): SharedEntity[];
17
+ setSharedEntities(sharedEntities: SharedEntity[]): Promise<boolean>;
16
18
  /**
17
19
  * Whether Team Sharing is Activated
20
+ *
21
+ * @deprecated use `Adaptable.isTeamSharingAvailable()` instead
18
22
  */
19
23
  isTeamSharingActivated(): boolean;
24
+ /**
25
+ * Whether Team Sharing is Available to use
26
+ */
27
+ isTeamSharingAvailable(): boolean;
20
28
  /**
21
29
  * Whether current user has full Team Sharing rights (for creating & updating shared items)
22
30
  */
@@ -41,4 +49,9 @@ export interface TeamSharingApi {
41
49
  * @param sharedEntityConfig Config info about the Sharing Actions
42
50
  */
43
51
  shareEntity(entity: AdaptableObject, module: AdaptableModule, sharedEntityConfig: SharedEntityConfig): void;
52
+ /**
53
+ * Removes an Adaptable Object from the Team Share.
54
+ * @param entityId the ID of the AdaptableObject to be removed from Team Share
55
+ */
56
+ unshareEntity(entityId: string): void;
44
57
  }
@@ -70,12 +70,12 @@ export interface UserInterfaceApi {
70
70
  * Returns Style set for ReadOnly cells
71
71
  */
72
72
  getReadOnlyCellStyle(): AdaptableStyle | undefined;
73
- /**
74
- * Retrieves any Action Columns (provided in User Interface Options)
75
- */
76
- getAllActionColumn(): ActionColumn[];
77
73
  /**
78
74
  * Retrieves any Object Tags (provided in User Interface Options)
79
75
  */
80
76
  getAdaptableObjectTags(): AdaptableObjectTag[] | undefined;
77
+ /**
78
+ * Retrieves any Action Columns (provided in User Interface Options)
79
+ */
80
+ getAllActionColumn(): ActionColumn[];
81
81
  }
@@ -6,7 +6,6 @@ import { CalculatedColumnState } from './CalculatedColumnState';
6
6
  import { ConditionalStyleState } from './ConditionalStyleState';
7
7
  import { CustomSortState } from './CustomSortState';
8
8
  import { DashboardState } from './DashboardState';
9
- import { DataSourceState } from './DataSourceState';
10
9
  import { ExportState } from './ExportState';
11
10
  import { FormatColumnState } from './FormatColumnState';
12
11
  import { FreeTextColumnState } from './FreeTextColumnState';
@@ -18,7 +17,6 @@ import { ShortcutState } from './ShortcutState';
18
17
  import { TeamSharingState } from './TeamSharingState';
19
18
  import { ThemeState } from './ThemeState';
20
19
  import { ConfigState } from './ConfigState';
21
- import { FilterState } from './FilterState';
22
20
  import { ApplicationState } from './ApplicationState';
23
21
  import { ToolPanelState } from './ToolPanelState';
24
22
  import { QueryState } from './QueryState';
@@ -41,9 +39,7 @@ export interface AdaptablePersistentState {
41
39
  ConditionalStyle: ConditionalStyleState;
42
40
  CustomSort: CustomSortState;
43
41
  Dashboard: DashboardState;
44
- DataSource: DataSourceState;
45
42
  Export: ExportState;
46
- Filter: FilterState;
47
43
  FormatColumn: FormatColumnState;
48
44
  FreeTextColumn: FreeTextColumnState;
49
45
  Layout: LayoutState;
@@ -46,6 +46,11 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
46
46
  * @defaultValue false
47
47
  */
48
48
  ShowToolTip?: boolean;
49
+ /**
50
+ * If true, the Calculated Column Expression will NOT be evaluated and the value is loaded from the row data property with the same name as the ColumnId
51
+ * @defaultValue false
52
+ */
53
+ ExternallyEvaluatedExpression?: boolean;
49
54
  }
50
55
  /**
51
56
  * Calculated Column Query which may be a Scalar or an AggregatedScalar Expression
@@ -11,13 +11,13 @@ export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends Adapt
11
11
  */
12
12
  label?: string | ((button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => string);
13
13
  /**
14
- * Style for Button - can be object or function thats provides a `Style` object
14
+ * Style for Button - can be object or function that provides a `ButtonStyle` object
15
15
  */
16
16
  buttonStyle?: ButtonStyle | ((button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => ButtonStyle);
17
17
  /**
18
- * Icon to display, requires string for URL, other props are optional
18
+ * Icon for Button - can be object or function that provides a `AdaptableIcon` object
19
19
  */
20
- icon?: AdaptableIcon;
20
+ icon?: AdaptableIcon | ((button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => AdaptableIcon);
21
21
  /**
22
22
  * Tooltip for Button - can be string or function that provides string
23
23
  */
@@ -1,4 +1,8 @@
1
1
  import { AdaptableObject } from './AdaptableObject';
2
+ /**
3
+ * Type of data stored in an Adaptable Column
4
+ */
5
+ export declare type AdaptableColumnDataType = 'String' | 'Number' | 'Boolean' | 'Date' | 'Object' | 'Unknown';
2
6
  /**
3
7
  * Base class for Adaptable Column containing most important properties
4
8
  */
@@ -14,7 +18,7 @@ export interface AdaptableColumnBase extends AdaptableObject {
14
18
  /**
15
19
  * DataType of the column
16
20
  */
17
- dataType: 'String' | 'Number' | 'NumberArray' | 'Boolean' | 'Date' | 'Object' | 'Unknown';
21
+ dataType: AdaptableColumnDataType;
18
22
  }
19
23
  export declare const isValidOrderForColumnGroups: ({ oldColumns, newColumns, }: {
20
24
  oldColumns: AdaptableColumn[];
@@ -36,13 +36,13 @@ export interface AdaptableFormField {
36
36
  */
37
37
  name: string;
38
38
  /**
39
- * Label to display in in the Field
39
+ * Label to display in the Field
40
40
  */
41
41
  label: string;
42
42
  /**
43
43
  * Field Type: text, date, number, checkbox, select, textOutput
44
44
  */
45
- fieldType: 'text' | 'select' | 'date' | 'number' | 'checkbox' | 'textOutput';
45
+ fieldType: AdaptableFormFieldType;
46
46
  /**
47
47
  * Field Default Value - can be of type string, boolean, number
48
48
  */
@@ -55,4 +55,5 @@ export interface AdaptableFormField {
55
55
  label: string;
56
56
  }[];
57
57
  }
58
+ export declare type AdaptableFormFieldType = 'text' | 'select' | 'date' | 'number' | 'checkbox' | 'textOutput';
58
59
  export declare function getDefaultAdaptableFormData<T extends BaseContext = BaseContext>(formDef?: AdaptableForm<T>): Record<string, any>;
@@ -12,9 +12,7 @@ export declare type AdaptableFormat = {
12
12
  Options: StringFormatterOptions;
13
13
  };
14
14
  export interface BaseFormatterOptions {
15
- CustomDisplayFormats?: {
16
- Id: string;
17
- }[];
15
+ CustomDisplayFormats?: string[];
18
16
  }
19
17
  /**
20
18
  * Formatter Options for Numeric Columns
@@ -21,15 +21,6 @@ export interface AdaptableObject {
21
21
  Tags?: AdaptableObjectTag[];
22
22
  }
23
23
  /**
24
- * Object Tag - defined as a label and a value
24
+ * AdaptableObjectTag Object Tague - currently supporting only plain string values, but open for future extensions, if ever needed.
25
25
  */
26
- export declare type AdaptableObjectTag = string | {
27
- /**
28
- * Label for the Tag
29
- */
30
- label: string;
31
- /**
32
- * Value for the Tag - string or number
33
- */
34
- value: string | number;
35
- };
26
+ export declare type AdaptableObjectTag = string;
@@ -53,7 +53,24 @@ exports.SystemPredicateDefs = [
53
53
  icon: { text: '!IN' },
54
54
  columnScope: { DataTypes: ['String', 'Number', 'Date'] },
55
55
  moduleScope: ['filter'],
56
- handler: ({ displayValue, inputs }) => inputs.length === 0 || !inputs.includes(displayValue),
56
+ handler: ({ inputs, column, value }) => {
57
+ // basically negation of IN
58
+ if (inputs.length === 0) {
59
+ return true;
60
+ }
61
+ if (column.dataType === 'Date') {
62
+ return inputs.some((input) => {
63
+ return !isSameDay_1.default(input, value);
64
+ });
65
+ }
66
+ if (column.dataType === 'Number') {
67
+ return !inputs.includes(value);
68
+ }
69
+ if (column.dataType === 'String') {
70
+ return !inputs.includes(value);
71
+ }
72
+ return true;
73
+ },
57
74
  toString: ({ inputs }) => `Exclude (${inputs.join(', ')})`,
58
75
  },
59
76
  {
@@ -1,6 +1,6 @@
1
1
  import { AdaptableApi } from '../../types';
2
2
  /**
3
- * Base Context object used in many functions provided by AdapTable
3
+ * Base Context used in many functions provided by developers and invoked as needed by AdapTable
4
4
  */
5
5
  export interface BaseContext {
6
6
  /**
@@ -1,36 +1,5 @@
1
- import { ConfigState } from './ConfigState';
2
- import { AdaptableApi, AdaptableColumn } from '../types';
3
- import { AdaptableObject } from './Common/AdaptableObject';
4
- import { AdaptablePredicate } from './Common/AdaptablePredicate';
5
- import { TypeHint } from './Common/Types';
6
- /**
7
- * Predefined Configuration for Filters
8
- */
9
- export interface FilterState extends ConfigState {
10
- /**
11
- * Collection of Column Filters
12
- */
13
- ColumnFilters?: ColumnFilter[];
14
- /**
15
- * Whether to display Quick Filter Bar between Column Header and the Grid
16
- * @defaultValue true
17
- */
18
- IsQuickFilterVisible?: boolean;
19
- }
20
- export interface FilterPredicateInput {
21
- type: 'number' | 'text' | 'date';
22
- defaultValue?: any;
23
- }
24
- export interface FilterPredicateHandler {
25
- (params: FilterPredicateParams): boolean;
26
- }
27
- export interface FilterPredicateParams {
28
- value: any;
29
- displayValue: string;
30
- inputs: any[];
31
- column: AdaptableColumn;
32
- api: AdaptableApi;
33
- }
1
+ import { AdaptableObject, AdaptablePredicate } from '../../types';
2
+ import { TypeHint } from './Types';
34
3
  /**
35
4
  * Defines a Filter applied on a Column using a Predicate
36
5
  */
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,8 +4,8 @@ export declare enum DataType {
4
4
  Boolean = "Boolean",
5
5
  Date = "Date",
6
6
  Object = "Object",
7
- All = "All",
8
- Unknown = "Unknown"
7
+ Unknown = "Unknown",
8
+ All = "All"
9
9
  }
10
10
  export declare enum MathOperation {
11
11
  Add = "Add",
@@ -9,8 +9,8 @@ var DataType;
9
9
  DataType["Boolean"] = "Boolean";
10
10
  DataType["Date"] = "Date";
11
11
  DataType["Object"] = "Object";
12
- DataType["All"] = "All";
13
12
  DataType["Unknown"] = "Unknown";
13
+ DataType["All"] = "All";
14
14
  })(DataType = exports.DataType || (exports.DataType = {}));
15
15
  var MathOperation;
16
16
  (function (MathOperation) {
@@ -0,0 +1,8 @@
1
+ import { AdaptableFormData } from '../../types';
2
+ import { BaseContext } from './BaseContext';
3
+ export interface FormContext extends BaseContext {
4
+ /**
5
+ * Adaptable Form Data
6
+ */
7
+ formData: AdaptableFormData;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,9 +6,9 @@ export declare type AdaptableDashboardToolbars = AdaptableDashboardToolbar[];
6
6
  /**
7
7
  * List of all the Toolbars that Adaptable provides
8
8
  */
9
- export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
9
+ export declare type AdaptableDashboardToolbar = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
10
10
  export declare const ALL_TOOLBARS: AdaptableDashboardToolbar[];
11
- export declare type AdaptableStatusBarPanel = 'CellSummary' | 'Alert' | 'GridInfo' | 'Dashboard' | 'ToolPanel' | 'StatusBar' | 'StateManagement' | 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'SystemStatus' | 'DataChangeHistory' | 'TeamSharing' | 'Theme' | 'BulkUpdate' | 'SettingsPanel' | 'SmartEdit';
11
+ export declare type AdaptableStatusBarPanel = 'CellSummary' | 'Alert' | 'GridInfo' | 'Dashboard' | 'ToolPanel' | 'StatusBar' | 'StateManagement' | 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'SystemStatus' | 'DataChangeHistory' | 'TeamSharing' | 'Theme' | 'BulkUpdate' | 'SettingsPanel' | 'SmartEdit';
12
12
  export declare const ALL_STATUS_SUB_PANELS: AdaptableStatusBarPanel[];
13
13
  export declare type AdaptableToolPanels = AdaptableToolPanel[];
14
14
  export declare type AdaptableToolPanel = 'Alert' | 'BulkUpdate' | 'CellSummary' | 'Dashboard' | 'DataChangeHistory' | 'Export' | 'Filter' | 'IPushPull' | 'Layout' | 'OpenFin' | 'Query' | 'QuickSearch' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'Theme';
@@ -22,16 +22,17 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
22
22
  /**
23
23
  * List of all the Module buttons Adaptable provides - each Module has a popup for which this is a shortcut button
24
24
  */
25
- export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
25
+ export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
26
26
  export declare type AdaptableStateKeys = AdaptableStateKey[];
27
27
  export declare type AdaptableStateKey = keyof AdaptablePersistentState | 'OpenFin' | 'Glue42' | 'IPushPull';
28
28
  /**
29
29
  * Modules provided by AdapTable, subject to Entitlements and usually have Predefined Config
30
30
  */
31
- export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
32
- export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
31
+ export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
32
+ export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSet' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'StatusBar' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
33
33
  export declare type TypeHint<Base, Literals> = (Base & {
34
34
  __subType?: true;
35
35
  }) | Literals;
36
36
  export declare type AdaptableQLModules = AdaptableQLModule[];
37
37
  export declare type AdaptableQLModule = 'Filter' | 'Query';
38
+ export declare type AdaptableColumnType = 'abColDefBoolean' | 'abColDefDate' | 'abColDefNumber' | 'abColDefString' | 'abColDefObject' | 'abColDefCustom' | 'abSpecialColumn';
@@ -9,7 +9,7 @@ exports.ALL_TOOLBARS = [
9
9
  'BulkUpdate',
10
10
  'CellSummary',
11
11
  'DataChangeHistory',
12
- 'DataSource',
12
+ 'DataSet',
13
13
  'Export',
14
14
  'Filter',
15
15
  'Glue42',
@@ -32,7 +32,7 @@ exports.ALL_STATUS_SUB_PANELS = [
32
32
  'CustomSort',
33
33
  'Dashboard',
34
34
  'DataChangeHistory',
35
- 'DataSource',
35
+ 'DataSet',
36
36
  'Export',
37
37
  'Filter',
38
38
  'FlashingCell',
@@ -72,4 +72,3 @@ exports.ALL_TOOL_PANELS = [
72
72
  'SystemStatus',
73
73
  'Theme',
74
74
  ];
75
- // | 'QuickSearch'
@@ -1,6 +1,7 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  import { AdaptableObject } from './Common/AdaptableObject';
3
3
  import { ColumnSort } from './Common/ColumnSort';
4
+ import { ColumnFilter } from '../types';
4
5
  /**
5
6
  * Predefined Configuration for the Layout Module
6
7
  */
@@ -36,6 +37,10 @@ export interface Layout extends AdaptableObject {
36
37
  * Sorting to apply in the Layout
37
38
  */
38
39
  ColumnSorts?: ColumnSort[];
40
+ /**
41
+ * Collection of Column Filters.
42
+ */
43
+ ColumnFilters?: ColumnFilter[];
39
44
  /**
40
45
  * Columns which are row-grouped when the Layout is applied
41
46
  */