@adaptabletools/adaptable 11.0.0-canary.2 → 11.0.0-canary.6

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 (244) hide show
  1. package/agGrid.d.ts +1 -1
  2. package/agGrid.js +3 -3
  3. package/base.css +138 -68
  4. package/bundle.cjs.js +131 -127
  5. package/index.css +140 -68
  6. package/package.json +33 -33
  7. package/publishTimestamp.d.ts +1 -1
  8. package/publishTimestamp.js +1 -1
  9. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  10. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  11. package/src/AdaptableOptions/AdaptableOptions.d.ts +11 -2
  12. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  13. package/src/AdaptableOptions/AlertOptions.js +2 -0
  14. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  15. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  16. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  17. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  18. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +3 -7
  19. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  20. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  21. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  22. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  23. package/src/Api/AdaptableApi.d.ts +6 -0
  24. package/src/Api/AlertApi.d.ts +2 -3
  25. package/src/Api/ColumnApi.d.ts +0 -4
  26. package/src/Api/EventApi.d.ts +8 -3
  27. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  28. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  29. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  30. package/src/Api/GridApi.d.ts +5 -4
  31. package/src/Api/IPushPullApi.d.ts +1 -1
  32. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  33. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  34. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  35. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  36. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  37. package/src/Api/Implementation/ApiBase.js +3 -0
  38. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  39. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  40. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  41. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  42. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  43. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  44. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  45. package/src/Api/Implementation/GridApiImpl.js +4 -0
  46. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  47. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  48. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  49. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  50. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -1
  51. package/src/Api/Implementation/QueryLanguageApiImpl.js +6 -7
  52. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  53. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  54. package/src/Api/LayoutApi.d.ts +7 -0
  55. package/src/Api/OpenFinApi.d.ts +5 -0
  56. package/src/Api/PluginsApi.d.ts +29 -0
  57. package/src/Api/QueryLanguageApi.d.ts +10 -10
  58. package/src/Api/SettingsPanelApi.d.ts +17 -0
  59. package/src/Api/SettingsPanelApi.js +2 -0
  60. package/src/Api/UserInterfaceApi.d.ts +5 -2
  61. package/src/PredefinedConfig/AlertState.d.ts +4 -6
  62. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  63. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -4
  64. package/src/PredefinedConfig/Common/AdaptableQuery.js +3 -3
  65. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  66. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  67. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  68. package/src/PredefinedConfig/Common/Enums.js +0 -2
  69. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  70. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  71. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  72. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  73. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  74. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  75. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  76. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  77. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  78. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  79. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  80. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  81. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  82. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  83. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  84. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  85. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  86. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  87. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  88. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  89. package/src/Redux/Store/AdaptableStore.js +18 -6
  90. package/src/Strategy/AlertModule.js +14 -4
  91. package/src/Strategy/ConditionalStyleModule.js +4 -0
  92. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  93. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  94. package/src/Strategy/FlashingCellModule.js +34 -18
  95. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  96. package/src/Strategy/FreeTextColumnModule.js +10 -0
  97. package/src/Strategy/LayoutModule.js +1 -6
  98. package/src/Strategy/TeamSharingModule.js +1 -1
  99. package/src/Strategy/ToolPanelModule.js +5 -3
  100. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  101. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  102. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  103. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  104. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  105. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +8 -6
  106. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  107. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  108. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +7 -0
  109. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +42 -0
  110. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  111. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  112. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  113. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  114. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  115. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +36 -0
  116. package/src/Utilities/ExpressionFunctions/groupingMap.js +104 -0
  117. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  118. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  119. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  120. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  121. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  122. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  123. package/src/Utilities/ObjectFactory.js +5 -2
  124. package/src/Utilities/Services/AlertService.js +3 -3
  125. package/src/Utilities/Services/DataService.js +6 -1
  126. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +2 -2
  127. package/src/Utilities/Services/LicenseService.js +1 -1
  128. package/src/Utilities/Services/QueryLanguageService.d.ts +2 -2
  129. package/src/Utilities/Services/QueryLanguageService.js +21 -16
  130. package/src/Utilities/Services/ReportService.js +7 -3
  131. package/src/Utilities/Services/TeamSharingService.js +5 -3
  132. package/src/View/AdaptablePopover/index.js +6 -1
  133. package/src/View/AdaptableView.js +1 -1
  134. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  135. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  136. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  137. package/src/View/AdaptableWizardView/helper.js +5 -3
  138. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  139. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  140. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  141. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  142. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  143. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +3 -5
  144. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  145. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  146. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  147. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  148. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  149. package/src/View/Components/EntityRulesEditor/index.js +9 -9
  150. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  151. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  152. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  153. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  154. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  155. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  156. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  157. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  158. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  159. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  160. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  161. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  162. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  163. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  164. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  165. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  166. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  167. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  168. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  169. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  170. package/src/View/Components/ScopeComponent.js +4 -1
  171. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  172. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  173. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  174. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  175. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  176. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  177. package/src/View/Components/ValueSelector/index.js +5 -5
  178. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  179. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  180. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  181. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  182. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  183. package/src/View/CustomSort/Wizard/CustomSortWizard.js +17 -5
  184. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  185. package/src/View/Dashboard/Dashboard.js +5 -5
  186. package/src/View/Dashboard/DashboardPopup.js +8 -6
  187. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  188. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  189. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  190. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  191. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  192. package/src/View/Filter/FilterViewPanel.js +1 -3
  193. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  194. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  195. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  196. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +2 -2
  197. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  198. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +11 -6
  199. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  200. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  201. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  202. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  203. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  204. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  205. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  206. package/src/View/Query/QueryViewPanel.js +15 -10
  207. package/src/View/Query/Wizard/NamedQueryWizard.js +6 -4
  208. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  209. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  210. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  211. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  212. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  213. package/src/View/UIHelper.js +4 -1
  214. package/src/View/Wizard/AdaptableWizard.js +13 -4
  215. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  216. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  217. package/src/agGrid/Adaptable.d.ts +2 -5
  218. package/src/agGrid/Adaptable.js +127 -75
  219. package/src/agGrid/agGridHelper.js +3 -8
  220. package/src/agGrid/agGridMenuHelper.js +5 -9
  221. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  222. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  223. package/src/components/ApplicationIcon.d.ts +1 -0
  224. package/src/components/ApplicationIcon.js +2 -2
  225. package/src/components/Dashboard/Dashboard.js +4 -1
  226. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  227. package/src/components/Dashboard/DashboardManager.js +33 -27
  228. package/src/components/Dropdown/index.js +8 -1
  229. package/src/components/DropdownButton/renderItem.js +1 -1
  230. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  231. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  232. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  233. package/src/components/ExpressionEditor/index.d.ts +1 -1
  234. package/src/components/ExpressionEditor/index.js +12 -5
  235. package/src/components/FormLayout/index.js +1 -1
  236. package/src/components/OverlayTrigger/Overlay.js +1 -1
  237. package/src/components/SizedContainer/index.js +7 -1
  238. package/src/components/WindowModal/WindowModal.js +4 -1
  239. package/src/metamodel/adaptable.metamodel.d.ts +75 -24
  240. package/src/metamodel/adaptable.metamodel.js +223 -115
  241. package/src/types.d.ts +6 -3
  242. package/themes/dark.css +4 -4
  243. package/version.d.ts +1 -1
  244. package/version.js +1 -1
@@ -16,7 +16,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
16
16
  }
17
17
  getAdaptableFormByName(name) {
18
18
  var _a;
19
- const alertForms = this.getNotificationsOptions().alertForms || [];
19
+ const alertForms = this.getAlertOptions().alertForms || [];
20
20
  return (_a = alertForms.find((f) => f.name === name)) === null || _a === void 0 ? void 0 : _a.form;
21
21
  }
22
22
  getAlertDefinitions() {
@@ -57,7 +57,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
57
57
  }
58
58
  actions.forEach((action) => {
59
59
  var _a;
60
- const buttonOnClick = (_a = this.getNotificationsOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
60
+ const buttonOnClick = (_a = this.getAlertOptions().actionHandlers) === null || _a === void 0 ? void 0 : _a.find((x) => x.name === action);
61
61
  buttonOnClick === null || buttonOnClick === void 0 ? void 0 : buttonOnClick.handler(button, context);
62
62
  this.adaptable.api.alertApi.executeAlertAction(action, {
63
63
  alertDefinition: context.alert.alertDefinition,
@@ -79,10 +79,13 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
79
79
  switch (highhlightType) {
80
80
  case 'Error':
81
81
  backgroundColor = 'var(--ab-color-error)';
82
+ break;
82
83
  case 'Info':
83
84
  backgroundColor = 'var(--ab-color-info)';
85
+ break;
84
86
  case 'Success':
85
87
  backgroundColor = 'var(--ab-color-success)';
88
+ break;
86
89
  case 'Warning':
87
90
  backgroundColor = 'var(--ab-color-warn)';
88
91
  }
@@ -92,7 +95,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
92
95
  highlightStyle: {
93
96
  BackColor: backgroundColor,
94
97
  },
95
- timeout: this.getNotificationsOptions().cellHighlightDuration,
98
+ timeout: this.getAlertOptions().cellHighlightDuration,
96
99
  });
97
100
  return;
98
101
  }
@@ -132,9 +135,12 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
132
135
  // 3 things we always do with an alert are:
133
136
  // 1. Dispatch the Alert (so it appears in the toolbar)
134
137
  this.addUidToAdaptableObject(alertToShow);
135
- this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getNotificationsOptions().maxAlertsInStore));
138
+ this.dispatchAction(SystemRedux.SystemAlertAdd(alertToShow, this.getAlertOptions().maxAlertsInStore));
136
139
  // 2. Publish the Alert Fired Event
137
- const alertFiredInfo = { adaptableApi: this.adaptable.api, alert: alertToShow };
140
+ const alertFiredInfo = {
141
+ adaptableApi: this.adaptable.api,
142
+ alert: alertToShow,
143
+ };
138
144
  const results = await this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
139
145
  const showPopup = results.reduce((endResult, aResult) => {
140
146
  return endResult && aResult !== false;
@@ -175,7 +181,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
175
181
  this.adaptable.api.gridApi.refreshCells([alertNode], [dataChangedInfo.column.columnId]);
176
182
  setTimeout(() => {
177
183
  this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
178
- }, this.adaptable.adaptableOptions.notificationsOptions.cellHighlightDuration);
184
+ }, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
179
185
  }
180
186
  }
181
187
  if (alertProperties.HighlightRow && dataChangedInfo) {
@@ -187,7 +193,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
187
193
  this.adaptable.api.gridApi.refreshRowNode(alertNode);
188
194
  setTimeout(() => {
189
195
  this.dispatchAction(SystemRedux.SystemAlertRemoveHighlight(alertToShow));
190
- }, this.adaptable.adaptableOptions.notificationsOptions.cellHighlightDuration);
196
+ }, this.adaptable.adaptableOptions.alertOptions.cellHighlightDuration);
191
197
  }
192
198
  }
193
199
  if (alertProperties.LogToConsole) {
@@ -196,7 +202,10 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
196
202
  }
197
203
  }
198
204
  publishAlertFiredEvent(alertToFire) {
199
- const alertFiredInfo = { adaptableApi: this.adaptable.api, alert: alertToFire };
205
+ const alertFiredInfo = {
206
+ adaptableApi: this.adaptable.api,
207
+ alert: alertToFire,
208
+ };
200
209
  this.adaptable.api.eventApi.emit('AlertFired', alertFiredInfo);
201
210
  }
202
211
  displayMessageAlertPopup(alertToDisplayAsPopup) {
@@ -242,7 +251,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
242
251
  }
243
252
  getAlertDescription(alertDefinition, dataChangedInfo) {
244
253
  var _a;
245
- const alertMessageFunction = (_a = this.adaptable.adaptableOptions.notificationsOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
254
+ const alertMessageFunction = (_a = this.adaptable.adaptableOptions.alertOptions) === null || _a === void 0 ? void 0 : _a.alertMessageText;
246
255
  if (alertMessageFunction) {
247
256
  const returnText = alertMessageFunction(alertDefinition, dataChangedInfo);
248
257
  if (returnText) {
@@ -260,7 +269,7 @@ class AlertApiImpl extends ApiBase_1.ApiBase {
260
269
  var _a, _b;
261
270
  let ruleDescription = alert.Rule.Predicate
262
271
  ? this.adaptable.api.predicateApi.predicateToString(alert.Rule.Predicate)
263
- : (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.AggregationExpression;
272
+ : (_b = (_a = alert.Rule.BooleanExpression) !== null && _a !== void 0 ? _a : alert.Rule.ObservableExpression) !== null && _b !== void 0 ? _b : alert.Rule.AggregatedBooleanExpression;
264
273
  return ruleDescription;
265
274
  }
266
275
  }
@@ -12,6 +12,7 @@ import { NotificationsOptions } from '../../AdaptableOptions/NotificationsOption
12
12
  import { ToolPanelOptions } from '../../AdaptableOptions/ToolPanelOptions';
13
13
  import { ModuleParams } from '../../View/Components/SharedProps/ModuleViewPopupProps';
14
14
  import { QueryLanguageOptions } from '../../AdaptableOptions/QueryLanguageOptions';
15
+ import { AlertOptions } from '../../AdaptableOptions/AlertOptions';
15
16
  export declare abstract class ApiBase {
16
17
  protected adaptable: IAdaptable;
17
18
  /**
@@ -46,6 +47,7 @@ export declare abstract class ApiBase {
46
47
  protected getOptions(): AdaptableOptions;
47
48
  protected getContainerOptions(): ContainerOptions;
48
49
  protected getNotificationsOptions(): NotificationsOptions;
50
+ protected getAlertOptions(): AlertOptions;
49
51
  protected getDashboardOptions(): DashboardOptions;
50
52
  protected getEditOptions(): EditOptions;
51
53
  protected getExportOptions(): ExportOptions;
@@ -77,6 +77,9 @@ class ApiBase {
77
77
  getNotificationsOptions() {
78
78
  return this.getOptions().notificationsOptions;
79
79
  }
80
+ getAlertOptions() {
81
+ return this.getOptions().alertOptions;
82
+ }
80
83
  getDashboardOptions() {
81
84
  return this.getOptions().dashboardOptions;
82
85
  }
@@ -42,7 +42,6 @@ export declare class ColumnApiImpl extends ApiBase implements ColumnApi {
42
42
  getColumnFromFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;
43
43
  getColumnsOfType(dataType: DataType): AdaptableColumn[];
44
44
  getNumericColumns(): AdaptableColumn[];
45
- getNumericArrayColumns(): AdaptableColumn[];
46
45
  getStringColumns(): AdaptableColumn[];
47
46
  getDateColumns(): AdaptableColumn[];
48
47
  getBooleanColumns(): AdaptableColumn[];
@@ -224,8 +224,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
224
224
  return this.getDateColumns();
225
225
  case Enums_1.DataType.Number:
226
226
  return this.getNumericColumns();
227
- case Enums_1.DataType.NumberArray:
228
- return this.getNumericArrayColumns();
229
227
  case Enums_1.DataType.String:
230
228
  return this.getStringColumns();
231
229
  default:
@@ -235,9 +233,6 @@ class ColumnApiImpl extends ApiBase_1.ApiBase {
235
233
  getNumericColumns() {
236
234
  return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.Number);
237
235
  }
238
- getNumericArrayColumns() {
239
- return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.NumberArray);
240
- }
241
236
  getStringColumns() {
242
237
  return this.getColumns().filter((c) => c.dataType == Enums_1.DataType.String);
243
238
  }
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
5
5
  const DashboardRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/DashboardRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
8
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
8
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
9
9
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
10
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
11
11
  const react_dom_1 = tslib_1.__importDefault(require("react-dom"));
@@ -45,10 +45,8 @@ class FlashingCellApiImpl extends ApiBase_1.ApiBase {
45
45
  return this.getFlashingCellDefinitions().filter((fc) => !fc.IsSuspended);
46
46
  }
47
47
  getFlashingCellFlashTarget(flashingCellDefinition) {
48
- const flashTarget = flashingCellDefinition.FlashTarget === 'cell' || !flashingCellDefinition.FlashTarget
49
- ? 'cell'
50
- : 'row';
51
- return flashTarget;
48
+ var _a;
49
+ return (_a = flashingCellDefinition.FlashTarget) !== null && _a !== void 0 ? _a : 'cell';
52
50
  }
53
51
  showFlashingCell(flashingCellToShow) {
54
52
  this.addUidToAdaptableObject(flashingCellToShow);
@@ -13,11 +13,6 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
13
13
  }): FreeTextColumn;
14
14
  addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
15
15
  addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
16
- createFreeTextColumn({ columnName, columnId, defaultValue, }: {
17
- columnId: string;
18
- columnName?: string;
19
- defaultValue: string;
20
- }): FreeTextColumn;
21
16
  deleteFreeTextColumn(columnId: string): void;
22
17
  showFreeTextColumnPopup(): void;
23
18
  getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
@@ -4,7 +4,6 @@ exports.FreeTextColumnApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
8
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
@@ -67,14 +66,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
67
66
  this.dispatchAction(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
68
67
  }
69
68
  }
70
- createFreeTextColumn({ columnName, columnId, defaultValue = null, }) {
71
- let freeTextColumn = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(this.adaptable.api.internalApi.getAdaptableOptions().filterOptions
72
- .enableFilterOnSpecialColumns);
73
- freeTextColumn.ColumnId = columnId;
74
- freeTextColumn.FriendlyName = columnName || columnId;
75
- freeTextColumn.DefaultValue = defaultValue;
76
- return this.addFreeTextColumn(freeTextColumn);
77
- }
78
69
  deleteFreeTextColumn(columnId) {
79
70
  let freeTextColumn = this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId == columnId);
80
71
  if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
@@ -7,7 +7,8 @@ import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
7
7
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
10
- import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
+ import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
11
+ import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
12
13
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
14
  export declare class GridApiImpl extends ApiBase implements GridApi {
@@ -16,10 +17,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
16
17
  getGridData(): any[];
17
18
  getFilteredData(): any[];
18
19
  loadGridData(dataSource: any): void;
19
- updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
- addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
+ updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
+ addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
22
  undoCellEdit(dataChangedInfo: DataChangedInfo): boolean;
22
- deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
23
+ deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
23
24
  setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
24
25
  setCellsValue(gridCells: {
25
26
  columnId: any;
@@ -25,10 +25,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
25
25
  async updateGridData(dataRows, dataUpdateConfig) {
26
26
  const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
27
27
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
28
+ return rowNodes;
28
29
  }
29
30
  async addGridData(dataRows, dataUpdateConfig) {
30
31
  const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
31
32
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
33
+ return rowNodes;
32
34
  }
33
35
  undoCellEdit(dataChangedInfo) {
34
36
  // for the reason of this hacky solution see the comments in DataService
@@ -40,7 +42,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
40
42
  if (this.checkArrayExists(dataRows)) {
41
43
  const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
42
44
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
45
+ return rowNodes;
43
46
  }
47
+ return [];
44
48
  }
45
49
  setCellValue(columnId, newValue, primaryKeyValue) {
46
50
  const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
@@ -25,7 +25,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
25
25
  let adaptableAlertForm;
26
26
  let isActionForm = false;
27
27
  if (typeof alertForm === 'string') {
28
- const alertForms = this.getNotificationsOptions().alertForms || [];
28
+ const alertForms = this.getAlertOptions().alertForms || [];
29
29
  adaptableAlertForm = (_a = alertForms.find((f) => f.name === alertForm)) === null || _a === void 0 ? void 0 : _a.form;
30
30
  }
31
31
  else {
@@ -68,7 +68,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
68
68
  const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
69
69
  const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
70
70
  if (!columnId) {
71
- return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_ALERT_ROW_KEY]);
71
+ return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
72
72
  }
73
73
  return toFlashingAlert(forPrimaryKey[columnId]);
74
74
  }
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { LayoutApi } from '../LayoutApi';
3
3
  import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
4
+ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
4
5
  export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
5
6
  getLayoutState(): LayoutState;
6
7
  shouldAutoSaveLayout: (layout?: Layout) => boolean;
@@ -27,6 +28,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
27
28
  getLayoutDescription(layout: Layout): string;
28
29
  private getColumnSort;
29
30
  createDefaultLayoutIfNeeded(): Layout | null;
31
+ showChangeColumnCaption(column: AdaptableColumn): void;
30
32
  showLayoutPopup(): void;
31
33
  isCurrentLayoutReadOnly(): boolean;
32
34
  }
@@ -10,10 +10,12 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
10
10
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
11
11
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
12
12
  const Uuid_1 = require("../../PredefinedConfig/Uuid");
13
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
13
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
14
14
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
15
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
16
16
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
17
+ const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
18
+ const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
17
19
  class LayoutApiImpl extends ApiBase_1.ApiBase {
18
20
  constructor() {
19
21
  super(...arguments);
@@ -229,6 +231,15 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
229
231
  }
230
232
  }
231
233
  }
234
+ showChangeColumnCaption(column) {
235
+ this.dispatchAction(PopupRedux_1.PopupShowPrompt({
236
+ Header: `Change caption for '${column.friendlyName}'`,
237
+ Msg: '',
238
+ DefaultValue: column.friendlyName,
239
+ ConfirmActionCreator: (inputText) => inputText !== column.friendlyName &&
240
+ LayoutRedux_1.LayoutSetColumnCaption(this.getCurrentLayoutName(), column.columnId, inputText),
241
+ }));
242
+ }
232
243
  showLayoutPopup() {
233
244
  this.showModulePopup(ModuleConstants.LayoutModuleId);
234
245
  }
@@ -25,7 +25,10 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
25
25
  // check that there is no other existing named query with the same name
26
26
  const duplicate = this.getAllNamedQuery().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
27
27
  if (duplicate) {
28
- return { valid: false, message: 'A Named Query already exists with that name' };
28
+ return {
29
+ valid: false,
30
+ message: 'A Named Query already exists with that name',
31
+ };
29
32
  }
30
33
  return { valid: true, message: '' };
31
34
  }
@@ -5,7 +5,7 @@ import { ExpressionFunctionMap } from '../../types';
5
5
  export declare class QueryLanguageApiImpl extends ApiBase implements QueryLanguageApi {
6
6
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
7
7
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
8
- isValidAggregationExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
8
+ isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
9
9
  getASTForExpression(query: string): any;
10
10
  getColumnsFromExpression(expression: string): string[];
11
11
  getQueryableColumnIds(): string[] | undefined;
@@ -8,7 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
8
8
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
9
9
  class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
10
10
  isValidBooleanExpression(query, module, validationErrorMessage) {
11
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
11
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
12
12
  .getQueryLanguageService()
13
13
  .validateBoolean(query, module, { force: true });
14
14
  if (!isValid && validationErrorMessage) {
@@ -17,7 +17,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
17
17
  return isValid;
18
18
  }
19
19
  isValidObservableExpression(expression, module, validationErrorMessage) {
20
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
20
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
21
21
  .getQueryLanguageService()
22
22
  .validateObservable(expression, module);
23
23
  if (!isValid && validationErrorMessage) {
@@ -25,10 +25,10 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
25
25
  }
26
26
  return isValid;
27
27
  }
28
- isValidAggregationExpression(expression, module, validationErrorMessage) {
29
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
28
+ isValidAggregatedBooleanExpression(expression, module, validationErrorMessage) {
29
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
30
30
  .getQueryLanguageService()
31
- .validateAggregation(expression, module);
31
+ .validateAggregatedBoolean(expression, module);
32
32
  if (!isValid && validationErrorMessage) {
33
33
  LoggingHelper_1.LogAdaptableWarning(`${validationErrorMessage} :: ${errorMessage}`);
34
34
  }
@@ -51,8 +51,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
51
51
  }
52
52
  }
53
53
  getQueryableColumnIds() {
54
- let queryableColumns = this.getQueryLanguageOptions()
55
- .queryableColumns;
54
+ let queryableColumns = this.getQueryLanguageOptions().queryableColumns;
56
55
  if (!queryableColumns) {
57
56
  return undefined;
58
57
  }
@@ -0,0 +1,7 @@
1
+ import { SettingsPanelApi } from '../SettingsPanelApi';
2
+ import { ApiBase } from './ApiBase';
3
+ import { AdaptableModule } from '../../../types';
4
+ export declare class SettingsPanelApiImpl extends ApiBase implements SettingsPanelApi {
5
+ showSettingsPanel(moduleName?: AdaptableModule): void;
6
+ showCustomSettingsPanel(name: string): void;
7
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettingsPanelApiImpl = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const ApiBase_1 = require("./ApiBase");
6
+ const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
7
+ class SettingsPanelApiImpl extends ApiBase_1.ApiBase {
8
+ showSettingsPanel(moduleName) {
9
+ this.dispatchAction(PopupRedux.PopupShowScreen(moduleName));
10
+ }
11
+ showCustomSettingsPanel(name) {
12
+ this.dispatchAction(PopupRedux.PopupShowScreen('CustomSettingsPanelModule', name));
13
+ }
14
+ }
15
+ exports.SettingsPanelApiImpl = SettingsPanelApiImpl;
@@ -1,3 +1,4 @@
1
+ import { AdaptableColumn } from '../../types';
1
2
  import { LayoutState, Layout } from '../PredefinedConfig/LayoutState';
2
3
  /**
3
4
  * Provides run-time access to the Layout Module and associated state
@@ -128,4 +129,10 @@ export interface LayoutApi {
128
129
  */
129
130
  setColumnCaption(columnId: string, caption: string): void;
130
131
  isCurrentLayoutReadOnly(): boolean;
132
+ /**
133
+ * Opens change column caption popup
134
+ *
135
+ * @param column AdaptableColumn
136
+ */
137
+ showChangeColumnCaption(column: AdaptableColumn): void;
131
138
  }
@@ -2,6 +2,7 @@ import { OpenFinState, OpenFinReport, OpenFinSchedule } from '../PredefinedConfi
2
2
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
3
3
  import { OpenFinPluginOptions } from '../AdaptableOptions/OpenFinPluginOptions';
4
4
  import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
5
+ import { AlertOptions } from '../AdaptableOptions/AlertOptions';
5
6
  /**
6
7
  * Provides run-time access to the OpenFin Plugin
7
8
  */
@@ -44,6 +45,10 @@ export interface OpenFinApi {
44
45
  * Gets the Notification section from Adaptable Options
45
46
  */
46
47
  getNotificationsOptions(): NotificationsOptions;
48
+ /**
49
+ * Gets the Alert section from Adaptable Options
50
+ */
51
+ getAlertOptions(): AlertOptions;
47
52
  /**
48
53
  * Retrieves all Schedules that send data to Excel via OpenFin
49
54
  */
@@ -7,12 +7,41 @@ import { FinanceApi } from './FinanceApi';
7
7
  * API methods dealing with AdapTable plugins
8
8
  */
9
9
  export interface PluginsApi {
10
+ /**
11
+ * Retrieves the Plugin State (internal only)
12
+ */
10
13
  getPluginsState(): PluginsState;
14
+ /**
15
+ * Gets the State for a given Plugin
16
+ * @param pluginId plugin state to retrieve
17
+ */
11
18
  getPluginState(pluginId: string): any;
19
+ /**
20
+ * Registers a Plugin (internal method)
21
+ * @param pluginId Plugin to register
22
+ * @param initialPluginState any state the Plugin requires
23
+ */
12
24
  registerPlugin(pluginId: string, initialPluginState: any): void;
25
+ /**
26
+ * Sets the initial state for a given plugin (internal method)
27
+ * @param pluginId Plugin to set state for
28
+ * @param pluginState State to set
29
+ */
13
30
  setPluginState(pluginId: string, pluginState: any): void;
31
+ /**
32
+ * Returns ipushpull API class in Adaptable API
33
+ */
14
34
  getipushpullPluginApi(): IPushPullApi;
35
+ /**
36
+ * Returns Glue42 API class in Adaptable API
37
+ */
15
38
  getGlue42PluginApi(): Glue42Api;
39
+ /**
40
+ * Returns OpenFin API class in Adaptable API
41
+ */
16
42
  getOpenFinPluginApi(): OpenFinApi;
43
+ /**
44
+ * Returns Finance API class in Adaptable API
45
+ */
17
46
  getFinancePluginApi(): FinanceApi;
18
47
  }
@@ -13,21 +13,21 @@ export interface QueryLanguageApi {
13
13
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
14
14
  /**
15
15
  * Whether the given ObservableExpression is valid
16
- * @param query query to Check
17
- * @param module module specific query
18
- * @param validationErrorMessage optional validation error message; if provided, the error will be logged
16
+ * @param expression - ObservableExpression to check
17
+ * @param module - module specific query
18
+ * @param validationErrorMessage - optional validation error message; if provided, the error will be logged
19
19
  */
20
20
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
21
21
  /**
22
- * Whether the given AggregationExpression is valid
23
- * @param query query to Check
24
- * @param module module specific query
25
- * @param validationErrorMessage optional validation error message; if provided, the error will be logged
22
+ * Whether the given AggregatedBooleanExpression is valid
23
+ * @param expression - AggregatedBooleanExpression to check
24
+ * @param module - module specific query
25
+ * @param validationErrorMessage - optional validation error message; if provided, the error will be logged
26
26
  */
27
- isValidAggregationExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
27
+ isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
28
28
  /**
29
- * Returns all Columns referenced in a Query
30
- * @param adaptableQuery Query to check
29
+ * Returns all Columns referenced in a QueryExpression
30
+ * @param expression - expression to check
31
31
  */
32
32
  getColumnsFromExpression(expression: string): string[];
33
33
  /**
@@ -0,0 +1,17 @@
1
+ import { AdaptableModule } from '../../types';
2
+ /**
3
+ * Provides run-time access to the Settings Panel
4
+ **/
5
+ export interface SettingsPanelApi {
6
+ /**
7
+ * Opens settings panel to specified module,
8
+ * when not specified it opens the first available module
9
+ * @param moduleName module name
10
+ */
11
+ showSettingsPanel(moduleName?: AdaptableModule): void;
12
+ /**
13
+ * Opens a the settings panel to the custom module
14
+ * @param name name of the custom settings panel
15
+ */
16
+ showCustomSettingsPanel(name: string): void;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,13 +25,16 @@ export interface UserInterfaceApi {
25
25
  */
26
26
  getPermittedValuesForColumn(column: AdaptableColumn): any[];
27
27
  /**
28
- * Retrieves Permitted values for filtering by column values in Floating Filter and dropdown Filter.
28
+ * Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar
29
29
  */
30
30
  getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
31
31
  /**
32
- * Retrieves Permitted values for Custom sort.
32
+ * Retrieves Permitted values for Custom Sort Module
33
33
  */
34
34
  getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
35
+ /**
36
+ * Retrieves Permitted values for Bulk Update Module
37
+ */
35
38
  getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
36
39
  /**
37
40
  * Retrieves `editLookUpItems` property from User Interface Options
@@ -8,19 +8,17 @@ import { AdaptableButton, ButtonContext } from './Common/AdaptableButton';
8
8
  import { SuspendableObject } from './Common/SuspendableObject';
9
9
  import { AdaptableStyle } from './Common/AdaptableStyle';
10
10
  import { XOR } from '../Utilities/Extensions/TypeExtensions';
11
- import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
11
+ import { AdaptableAggregatedBooleanQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
12
12
  import { ButtonStyle } from './Common/ButtonStyle';
13
- import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
13
+ import { AlertButtonContext } from '../types';
14
14
  /**
15
15
  * Predefined Configuration for Alert Module
16
16
  */
17
17
  export interface AlertState extends ConfigState {
18
18
  /**
19
19
  * Alert Definitions - will trigger Alerts when rule is met
20
- * @defaultValue null
21
20
  */
22
21
  AlertDefinitions?: AlertDefinition[];
23
- FlashingAlertDefinitions?: any[];
24
22
  }
25
23
  /**
26
24
  * The Alert Definition object used in the Alert function
@@ -62,7 +60,7 @@ export interface AlertDefinitionPredicate extends AdaptablePredicate {
62
60
  */
63
61
  export declare type AlertRule = XOR<{
64
62
  Predicate: AlertDefinitionPredicate;
65
- }, XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregationQuery>>>;
63
+ }, XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>>;
66
64
  export declare type AdaptableAlertAction = 'highlight-cell' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
67
65
  /**
68
66
  * Defines a button that appears in an Alert Form
@@ -116,7 +114,7 @@ export interface AlertProperties {
116
114
  LogToConsole?: boolean;
117
115
  /**
118
116
  * Automatically prevent any cell edit which triggered the Alert (i.e. validation)
119
- * @default false
117
+ * @defaultValue false
120
118
  */
121
119
  PreventEdit?: boolean;
122
120
  }
@@ -8,7 +8,6 @@ import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
8
8
  export interface CalculatedColumnState extends ConfigState {
9
9
  /**
10
10
  * Collection of Calculated Columns
11
- * @defaultValue empty
12
11
  */
13
12
  CalculatedColumns?: CalculatedColumn[];
14
13
  }