@adaptabletools/adaptable 11.0.0-canary.3 → 11.0.0-canary.7

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 (267) hide show
  1. package/agGrid.d.ts +5 -4
  2. package/agGrid.js +9 -7
  3. package/base.css +135 -69
  4. package/bundle.cjs.js +104 -99
  5. package/index.css +136 -69
  6. package/package.json +3 -3
  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/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  11. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  12. package/src/AdaptableOptions/AdaptableOptions.d.ts +14 -7
  13. package/src/AdaptableOptions/{QueryLanguageOptions.d.ts → AdaptableQLOptions.d.ts} +34 -9
  14. package/src/AdaptableOptions/{QueryLanguageOptions.js → AdaptableQLOptions.js} +0 -0
  15. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  16. package/src/AdaptableOptions/AlertOptions.js +2 -0
  17. package/src/AdaptableOptions/ContainerOptions.d.ts +2 -2
  18. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  19. package/src/AdaptableOptions/GeneralOptions.d.ts +0 -7
  20. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  21. package/src/AdaptableOptions/SearchOptions.d.ts +0 -9
  22. package/src/AdaptableOptions/StateOptions.d.ts +9 -8
  23. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  24. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -2
  25. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +3 -3
  26. package/src/Api/AdaptableApi.d.ts +6 -0
  27. package/src/Api/AlertApi.d.ts +2 -3
  28. package/src/Api/CalculatedColumnApi.d.ts +2 -9
  29. package/src/Api/ColumnApi.d.ts +0 -4
  30. package/src/Api/EventApi.d.ts +8 -3
  31. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  32. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  33. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  34. package/src/Api/GridApi.d.ts +13 -2
  35. package/src/Api/IPushPullApi.d.ts +1 -1
  36. package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -1
  37. package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
  38. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  39. package/src/Api/Implementation/AlertApiImpl.js +19 -10
  40. package/src/Api/Implementation/ApiBase.d.ts +5 -2
  41. package/src/Api/Implementation/ApiBase.js +8 -2
  42. package/src/Api/Implementation/CalculatedColumnApiImpl.js +3 -4
  43. package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
  44. package/src/Api/Implementation/ColumnApiImpl.js +0 -5
  45. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  46. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  47. package/src/Api/Implementation/GridApiImpl.d.ts +4 -1
  48. package/src/Api/Implementation/GridApiImpl.js +27 -4
  49. package/src/Api/Implementation/InternalApiImpl.d.ts +2 -3
  50. package/src/Api/Implementation/InternalApiImpl.js +7 -6
  51. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  52. package/src/Api/Implementation/LayoutApiImpl.js +11 -0
  53. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  54. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +4 -1
  55. package/src/Api/Implementation/QueryLanguageApiImpl.js +20 -8
  56. package/src/Api/Implementation/SettingsPanelApiImpl.d.ts +7 -0
  57. package/src/Api/Implementation/SettingsPanelApiImpl.js +15 -0
  58. package/src/Api/InternalApi.d.ts +2 -3
  59. package/src/Api/LayoutApi.d.ts +7 -0
  60. package/src/Api/OpenFinApi.d.ts +5 -0
  61. package/src/Api/PluginsApi.d.ts +29 -0
  62. package/src/Api/QueryApi.d.ts +2 -2
  63. package/src/Api/QueryLanguageApi.d.ts +23 -10
  64. package/src/Api/SettingsPanelApi.d.ts +16 -0
  65. package/src/Api/SettingsPanelApi.js +2 -0
  66. package/src/Api/UserInterfaceApi.d.ts +5 -2
  67. package/src/PredefinedConfig/AlertState.d.ts +8 -6
  68. package/src/PredefinedConfig/CalculatedColumnState.d.ts +8 -4
  69. package/src/PredefinedConfig/Common/AdaptableQuery.d.ts +7 -5
  70. package/src/PredefinedConfig/Common/AdaptableQuery.js +2 -6
  71. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  72. package/src/PredefinedConfig/Common/Enums.d.ts +0 -1
  73. package/src/PredefinedConfig/Common/Enums.js +0 -2
  74. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  75. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  76. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  77. package/src/PredefinedConfig/Common/SpecialColumnSettings.d.ts +1 -1
  78. package/src/PredefinedConfig/Common/Types.d.ts +3 -1
  79. package/src/PredefinedConfig/Common/Types.js +1 -0
  80. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  81. package/src/PredefinedConfig/FlashingCellState.d.ts +3 -1
  82. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  83. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  84. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  85. package/src/PredefinedConfig/Selection/GridCellRange.d.ts +3 -1
  86. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  87. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  88. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  89. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  90. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  91. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  92. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  93. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  94. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  95. package/src/Redux/Store/AdaptableReduxMerger.js +1 -1
  96. package/src/Redux/Store/AdaptableStore.js +34 -8
  97. package/src/Strategy/AlertModule.js +16 -6
  98. package/src/Strategy/CalculatedColumnModule.js +4 -4
  99. package/src/Strategy/ChartingModule.d.ts +3 -3
  100. package/src/Strategy/ChartingModule.js +2 -2
  101. package/src/Strategy/ConditionalStyleModule.js +4 -0
  102. package/src/Strategy/FlashingCellModule.js +4 -4
  103. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  104. package/src/Strategy/FreeTextColumnModule.js +11 -0
  105. package/src/Strategy/LayoutModule.js +1 -6
  106. package/src/Strategy/{SetingsPanelModule.d.ts → SettingsPanelModule.d.ts} +0 -0
  107. package/src/Strategy/{SetingsPanelModule.js → SettingsPanelModule.js} +0 -0
  108. package/src/Strategy/ToolPanelModule.js +5 -3
  109. package/src/Strategy/Utilities/getAlertPreviewViewItems.js +1 -1
  110. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +2 -2
  111. package/src/Strategy/Utilities/getExpressionViewItems.js +2 -1
  112. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  113. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  114. package/src/Strategy/Utilities/getRuleViewItems.js +1 -3
  115. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +2 -1
  116. package/src/Utilities/Constants/DocumentationLinkConstants.js +3 -2
  117. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +23 -17
  118. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.d.ts → aggregatedBooleanExpressionFunctions.d.ts} +1 -1
  119. package/src/Utilities/ExpressionFunctions/{aggregationExpressionFunctions.js → aggregatedBooleanExpressionFunctions.js} +4 -4
  120. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +24 -0
  121. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +339 -0
  122. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  123. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  124. package/src/Utilities/ExpressionFunctions/deepMap.d.ts +35 -0
  125. package/src/Utilities/ExpressionFunctions/deepMap.js +283 -0
  126. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +2 -2
  127. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +8 -8
  128. package/src/Utilities/ExpressionFunctions/groupingMap.d.ts +35 -0
  129. package/src/Utilities/ExpressionFunctions/groupingMap.js +105 -0
  130. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -2
  131. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +33 -0
  132. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +154 -0
  133. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  134. package/src/Utilities/Helpers/AdaptableHelper.js +3 -1
  135. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  136. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  137. package/src/Utilities/ObjectFactory.js +1 -0
  138. package/src/Utilities/Services/AlertService.js +8 -4
  139. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +7 -3
  140. package/src/Utilities/Services/CalculatedColumnExpressionService.js +143 -18
  141. package/src/Utilities/Services/DataService.js +6 -1
  142. package/src/Utilities/Services/Interface/IAdaptableService.d.ts +1 -1
  143. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +6 -3
  144. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +9 -3
  145. package/src/Utilities/Services/LicenseService.js +1 -1
  146. package/src/Utilities/Services/QueryLanguageService.d.ts +11 -4
  147. package/src/Utilities/Services/QueryLanguageService.js +92 -28
  148. package/src/Utilities/Services/ReportService.js +6 -2
  149. package/src/Utilities/Services/TeamSharingService.js +5 -3
  150. package/src/View/AdaptablePopover/index.js +6 -1
  151. package/src/View/AdaptableView.js +1 -1
  152. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  153. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +10 -5
  154. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  155. package/src/View/AdaptableWizardView/helper.js +5 -3
  156. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  157. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  158. package/src/View/Alert/Wizard/AlertDisplayWizardSection.d.ts +1 -0
  159. package/src/View/Alert/Wizard/AlertDisplayWizardSection.js +2 -2
  160. package/src/View/Alert/Wizard/AlertWizard.js +2 -2
  161. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +2 -2
  162. package/src/View/Alert/Wizard/BaseAlertScopeWizardSection.js +3 -2
  163. package/src/View/Alert/Wizard/isValidAlertRules.js +3 -3
  164. package/src/View/CalculatedColumn/CalculatedColumnSharedEntity.js +3 -3
  165. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +2 -4
  166. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +43 -12
  167. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +1 -2
  168. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +2 -2
  169. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  170. package/src/View/ColorPicker.d.ts +1 -1
  171. package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
  172. package/src/View/Components/AdaptableInput/index.d.ts +1 -1
  173. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  174. package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
  175. package/src/View/Components/EntityRulesEditor/index.js +11 -12
  176. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  177. package/src/View/Components/FilterForm/QuickFilterForm.js +6 -5
  178. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  179. package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
  180. package/src/View/Components/Panels/PanelWithImage.d.ts +2 -2
  181. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  182. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -88
  183. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  184. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  185. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  186. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  187. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  188. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  189. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  190. package/src/View/Components/Popups/AdaptablePopupAlert.d.ts +1 -0
  191. package/src/View/Components/Popups/AdaptablePopupAlert.js +1 -1
  192. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  193. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  194. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  195. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  196. package/src/View/Components/ScopeComponent.js +4 -1
  197. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +5 -1
  198. package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -1
  199. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  200. package/src/View/Components/ValueSelector/index.js +1 -1
  201. package/src/View/ConditionalStyle/Wizard/ConditionalStyleRuleWizardSection.js +2 -2
  202. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  203. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  204. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +7 -0
  205. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  206. package/src/View/CustomSort/Wizard/CustomSortWizard.js +1 -1
  207. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  208. package/src/View/Dashboard/Dashboard.js +2 -3
  209. package/src/View/Dashboard/DashboardPopup.js +3 -1
  210. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  211. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  212. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  213. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  214. package/src/View/Filter/FilterViewPanel.js +1 -3
  215. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +2 -2
  216. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  217. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +1 -1
  218. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  219. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  220. package/src/View/Layout/Wizard/LayoutEditor/index.js +6 -2
  221. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  222. package/src/View/License/LicenseWatermark.js +1 -1
  223. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  224. package/src/View/Query/QueryViewPanel.js +3 -1
  225. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -3
  226. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  227. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  228. package/src/View/SpecialColumnSettingsWizardStep.js +1 -2
  229. package/src/View/UIHelper.js +4 -1
  230. package/src/View/Wizard/AdaptableWizard.js +12 -3
  231. package/src/View/Wizard/OnePageAdaptableWizard.js +5 -1
  232. package/src/agGrid/Adaptable.d.ts +3 -3
  233. package/src/agGrid/Adaptable.js +117 -77
  234. package/src/agGrid/agGridHelper.js +4 -9
  235. package/src/agGrid/agGridMenuHelper.js +4 -8
  236. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  237. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  238. package/src/components/AdaptableFormComponent/AdaptableFormComponent.d.ts +4 -2
  239. package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +4 -4
  240. package/src/components/ApplicationIcon.d.ts +1 -0
  241. package/src/components/ApplicationIcon.js +2 -2
  242. package/src/components/Dashboard/Dashboard.js +4 -1
  243. package/src/components/Datepicker/index.d.ts +1 -1
  244. package/src/components/Dropdown/index.js +8 -1
  245. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  246. package/src/components/ExpressionEditor/EditorInput.js +5 -2
  247. package/src/components/ExpressionEditor/EditorInputReactive.d.ts +1 -1
  248. package/src/components/ExpressionEditor/EditorInputReactive.js +4 -2
  249. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +5 -2
  250. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.d.ts +2 -0
  251. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +45 -0
  252. package/src/components/ExpressionEditor/editorButtonsReactive.js +8 -13
  253. package/src/components/ExpressionEditor/index.d.ts +2 -1
  254. package/src/components/ExpressionEditor/index.js +20 -6
  255. package/src/components/Input/index.d.ts +1 -1
  256. package/src/components/List/ListGroupItem/index.d.ts +1 -1
  257. package/src/components/Logo/index.js +8 -7
  258. package/src/components/PopupWithFooter.d.ts +1 -1
  259. package/src/components/SizedContainer/index.js +7 -1
  260. package/src/components/Textarea/index.d.ts +1 -1
  261. package/src/components/WindowModal/WindowModal.js +4 -1
  262. package/src/metamodel/adaptable.metamodel.d.ts +114 -59
  263. package/src/metamodel/adaptable.metamodel.js +373 -242
  264. package/src/types.d.ts +9 -6
  265. package/themes/dark.css +4 -4
  266. package/version.d.ts +1 -1
  267. package/version.js +1 -1
@@ -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
  }
@@ -45,7 +45,7 @@ export interface QueryApi {
45
45
  showExpandedQueryPopup(): void;
46
46
  /**
47
47
  * Set a Query as Current Query
48
- * @param query Query to set
48
+ * @param query - Query to set
49
49
  */
50
50
  setCurrentQuery(query: string): void;
51
51
  /**
@@ -53,7 +53,7 @@ export interface QueryApi {
53
53
  */
54
54
  clearCurrentQuery(): void;
55
55
  /**
56
- * Retuns the Current Query
56
+ * Returns the Current Query
57
57
  */
58
58
  getCurrentQuery(): string | undefined;
59
59
  }
@@ -1,5 +1,6 @@
1
1
  import { AdaptableModule } from '../PredefinedConfig/Common/Types';
2
2
  import { ExpressionFunctionMap } from '../types';
3
+ import { AdaptableQuery } from '../PredefinedConfig/Common/AdaptableQuery';
3
4
  /**
4
5
  * Manages AdapTableQL (Query Language)
5
6
  */
@@ -13,21 +14,28 @@ export interface QueryLanguageApi {
13
14
  isValidBooleanExpression(query: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
14
15
  /**
15
16
  * 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
17
+ * @param expression - ObservableExpression to check
18
+ * @param module - module specific query
19
+ * @param validationErrorMessage - optional validation error message; if provided, the error will be logged
19
20
  */
20
21
  isValidObservableExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
21
22
  /**
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
23
+ * Whether the given AggregatedBooleanExpression is valid
24
+ * @param expression - AggregatedBooleanExpression to check
25
+ * @param module - module specific query
26
+ * @param validationErrorMessage - optional validation error message; if provided, the error will be logged
27
+ */
28
+ isValidAggregatedBooleanExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
29
+ /**
30
+ * Whether the given AggregatedScalarExpression is valid
31
+ * @param expression - AggregatedScalarExpression to check
32
+ * @param module - module specific query
33
+ * @param validationErrorMessage - optional validation error message; if provided, the error will be logged
26
34
  */
27
- isValidAggregationExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
35
+ isValidAggregatedScalarExpression(expression: string, module: AdaptableModule, validationErrorMessage?: string): boolean;
28
36
  /**
29
- * Returns all Columns referenced in a Query
30
- * @param adaptableQuery Query to check
37
+ * Returns all Columns referenced in a QueryExpression
38
+ * @param expression - expression to check
31
39
  */
32
40
  getColumnsFromExpression(expression: string): string[];
33
41
  /**
@@ -43,4 +51,9 @@ export interface QueryLanguageApi {
43
51
  * @param expression expression to be run
44
52
  */
45
53
  getASTForExpression(expression: string): any;
54
+ /**
55
+ * Returns the Expression string of the given AdaptableQuery, which may be either a Boolean, an AggregatedBoolean, a Scalar, an AggregatedScalar or an ObservableExpression expression
56
+ * @param query - the AdaptableQuery
57
+ */
58
+ getAdaptableQueryExpression(query: Partial<AdaptableQuery>): string | undefined;
46
59
  }
@@ -0,0 +1,16 @@
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 and displays specified Module (if provided) or first available one
8
+ * @param moduleName name of Module to display
9
+ */
10
+ showSettingsPanel(moduleName?: AdaptableModule): void;
11
+ /**
12
+ * Opens Settings Panel with the Custom Settings Panel, provided by name, displayed
13
+ * @param name name of Custom Settings Panel to display
14
+ */
15
+ showCustomSettingsPanel(name: string): void;
16
+ }
@@ -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,11 @@ 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
+ }, AdaptableAlertQuery>;
64
+ /**
65
+ * Alert Query which may be either a Boolean, Observable or AggregatedBoolean Expression
66
+ */
67
+ export declare type AdaptableAlertQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableObservableQuery, AdaptableAggregatedBooleanQuery>>;
66
68
  export declare type AdaptableAlertAction = 'highlight-cell' | 'jump-to-cell' | 'jump-to-row' | 'jump-to-column' | 'suspend' | 'undo';
67
69
  /**
68
70
  * Defines a button that appears in an Alert Form
@@ -116,7 +118,7 @@ export interface AlertProperties {
116
118
  LogToConsole?: boolean;
117
119
  /**
118
120
  * Automatically prevent any cell edit which triggered the Alert (i.e. validation)
119
- * @default false
121
+ * @defaultValue false
120
122
  */
121
123
  PreventEdit?: boolean;
122
124
  }
@@ -1,14 +1,14 @@
1
1
  import { ConfigState } from './ConfigState';
2
2
  import { AdaptableObject } from './Common/AdaptableObject';
3
- import { AdaptableScalarQuery } from './Common/AdaptableQuery';
3
+ import { AdaptableAggregatedScalarQuery, AdaptableScalarQuery } from './Common/AdaptableQuery';
4
4
  import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
5
+ import { XOR } from '../Utilities/Extensions/TypeExtensions';
5
6
  /**
6
7
  * Predefined Configuration for Calculated Column Module
7
8
  **/
8
9
  export interface CalculatedColumnState extends ConfigState {
9
10
  /**
10
11
  * Collection of Calculated Columns
11
- * @defaultValue empty
12
12
  */
13
13
  CalculatedColumns?: CalculatedColumn[];
14
14
  }
@@ -29,9 +29,9 @@ export interface CalculatedColumn extends AdaptableObject {
29
29
  */
30
30
  CalculatedColumnSettings?: CalculatedColumnSettings;
31
31
  /**
32
- * Scalar Expression used by AdapTableQL to evaluate Column's value
32
+ * Scalar/AggregatedScalar Query used by AdapTableQL to evaluate Column's value
33
33
  */
34
- Query?: AdaptableScalarQuery;
34
+ Query?: AdaptableCalculatedColumnQuery;
35
35
  }
36
36
  /**
37
37
  * Set of optional properties that define a Calculated Column's behaviour
@@ -47,3 +47,7 @@ export interface CalculatedColumnSettings extends SpecialColumnSettings {
47
47
  */
48
48
  ShowToolTip?: boolean;
49
49
  }
50
+ /**
51
+ * Calculated Column Query which may be a Scalar or an AggregatedScalar Expression
52
+ */
53
+ export declare type AdaptableCalculatedColumnQuery = XOR<AdaptableScalarQuery, AdaptableAggregatedScalarQuery>;
@@ -8,12 +8,14 @@ export interface AdaptableScalarQuery {
8
8
  export interface AdaptableObservableQuery {
9
9
  ObservableExpression: string;
10
10
  }
11
- export interface AdaptableAggregationQuery {
12
- AggregationExpression: string;
11
+ export interface AdaptableAggregatedBooleanQuery {
12
+ AggregatedBooleanExpression: string;
13
+ }
14
+ export interface AdaptableAggregatedScalarQuery {
15
+ AggregatedScalarExpression: string;
13
16
  }
14
17
  /**
15
- * An AdaptableQuery can be either a Boolean, Scalar, Observable or Aggregation expression
18
+ * An AdaptableQuery can be either a Boolean, Scalar, Observable, AggregatedBoolean, or AggregatedScalar expression
16
19
  */
17
- export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery, AdaptableAggregationQuery>>>;
18
- export declare const getAdaptableQueryExpression: (query: Partial<AdaptableQuery>) => string | undefined;
20
+ export declare type AdaptableQuery = XOR<AdaptableBooleanQuery, XOR<AdaptableScalarQuery, XOR<AdaptableObservableQuery, XOR<AdaptableAggregatedBooleanQuery, AdaptableAggregatedScalarQuery>>>>;
19
21
  export declare const isReactiveQuery: (query: Partial<AdaptableQuery>) => boolean;
@@ -1,10 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isReactiveQuery = exports.getAdaptableQueryExpression = void 0;
4
- exports.getAdaptableQueryExpression = (query) => {
5
- var _a, _b, _c;
6
- return ((_c = (_b = (_a = query.BooleanExpression) !== null && _a !== void 0 ? _a : query.ScalarExpression) !== null && _b !== void 0 ? _b : query.ObservableExpression) !== null && _c !== void 0 ? _c : query.AggregationExpression);
7
- };
3
+ exports.isReactiveQuery = void 0;
8
4
  exports.isReactiveQuery = (query) => {
9
- return !!query.ObservableExpression || !!query.AggregationExpression;
5
+ return !!query.ObservableExpression || !!query.AggregatedBooleanExpression;
10
6
  };
@@ -15,19 +15,8 @@ export interface CellHighlightInfo {
15
15
  * Time after which Cell should be unhilighted
16
16
  */
17
17
  timeout?: number;
18
- highlightStyle: AdaptableStyle;
19
- }
20
- export interface RowHighlightInfo {
21
- /**
22
- * Primary key value for the row to be highlighted
23
- */
24
- primaryKeyValue: any;
25
- /**
26
- * Timeout after which the highlight is removed
27
- */
28
- timeout?: number;
29
18
  /**
30
- * Highlight style
19
+ * Adaptable Style to use in the Cell Highlight
31
20
  */
32
21
  highlightStyle: AdaptableStyle;
33
22
  }
@@ -1,7 +1,6 @@
1
1
  export declare enum DataType {
2
2
  String = "String",
3
3
  Number = "Number",
4
- NumberArray = "NumberArray",
5
4
  Boolean = "Boolean",
6
5
  Date = "Date",
7
6
  Object = "Object",
@@ -6,8 +6,6 @@ var DataType;
6
6
  (function (DataType) {
7
7
  DataType["String"] = "String";
8
8
  DataType["Number"] = "Number";
9
- // FIXME AFL keep it or extend it to support https://www.ag-grid.com/javascript-data-grid/sparklines-data/ ?
10
- DataType["NumberArray"] = "NumberArray";
11
9
  DataType["Boolean"] = "Boolean";
12
10
  DataType["Date"] = "Date";
13
11
  DataType["Object"] = "Object";
@@ -22,7 +22,7 @@ export interface FDC3Context {
22
22
  [key: string]: string | undefined;
23
23
  };
24
24
  /**
25
- * @hidden
25
+ * @internal
26
26
  * Custom properties and metadata. This can be extended in specific context object.
27
27
  */
28
28
  [key: string]: unknown;
@@ -32,23 +32,15 @@ export interface FDC3Context {
32
32
  */
33
33
  export interface InstrumentContext extends FDC3Context {
34
34
  /**
35
- * The context type is always 'instrument'.
35
+ * Context type is always 'instrument'
36
36
  */
37
37
  type: 'instrument';
38
38
  /**
39
- * Free text name of the instrument.
39
+ * Free text name of instrument
40
40
  */
41
41
  name: string;
42
42
  /**
43
- * The instrument data. Can contain some or all of:
44
- * * `ticker`: a ticker
45
- * * `ISIN`: [ISIN](https://www.isin.org/isin/)
46
- * * `CUSIP`: [CUSIP](https://www.cusip.com/cusip/index.htm)
47
- * * `SEDOL`: [SEDOL](https://www.londonstockexchange.com/products-and-services/reference-data/sedol-master-file/sedol-master-file.htm)
48
- * * `RIC`: [Reuters Instrument Code (RIC)](https://en.wikipedia.org/wiki/Reuters_Instrument_Code)
49
- * * `BBG`: [Bloomberg Ticker](https://www.bloomberg.com/professional/product/market-data/)
50
- * * `PERMID`: [PERMID](https://permid.org/)
51
- * * `FIGI`: [FIGI](https://www.openfigi.com/about/figi)
43
+ * The instrument data
52
44
  */
53
45
  id: {
54
46
  [key: string]: string;
@@ -0,0 +1,15 @@
1
+ import { AdaptableStyle } from '../../../types';
2
+ export interface RowHighlightInfo {
3
+ /**
4
+ * Primary key value for the row to be highlighted
5
+ */
6
+ primaryKeyValue: any;
7
+ /**
8
+ * Timeout after which the highlight is removed
9
+ */
10
+ timeout?: number;
11
+ /**
12
+ * Highlight style
13
+ */
14
+ highlightStyle: AdaptableStyle;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Base Settings for SpecialColumns
2
+ * Base Settings for Calculated Columns and FreeText Columns
3
3
  */
4
4
  export interface SpecialColumnSettings {
5
5
  /**
@@ -22,8 +22,10 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
22
22
  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';
23
23
  export declare type AdaptableStateKeys = AdaptableStateKey[];
24
24
  export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
25
- 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' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
25
+ 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' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'CustomSettingsPanelModule';
26
26
  export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
27
27
  export declare type TypeHint<Base, Literals> = (Base & {
28
28
  __subType?: true;
29
29
  }) | Literals;
30
+ export declare type AdaptableQLModules = AdaptableQLModule[];
31
+ export declare type AdaptableQLModule = 'Filter' | 'Query';
@@ -41,3 +41,4 @@ exports.ALL_TOOL_PANELS = [
41
41
  'SystemStatus',
42
42
  'Theme',
43
43
  ];
44
+ // | 'QuickSearch'
@@ -6,7 +6,6 @@ import { SuspendableObject } from './Common/SuspendableObject';
6
6
  export interface CustomSortState extends ConfigState {
7
7
  /**
8
8
  * Collection of Custom Sort objects.
9
- * @defaultValue []
10
9
  */
11
10
  CustomSorts?: CustomSort[];
12
11
  }
@@ -20,10 +20,12 @@ export declare type FlashingCellRule = XOR<{
20
20
  export interface FlashingCellState extends ConfigState {
21
21
  /**
22
22
  * Flashing Cell Definitions - will colour cells/rows when rule is met
23
- * @defaultValue null
24
23
  */
25
24
  FlashingCellDefinitions?: FlashingCellDefinition[];
26
25
  }
26
+ /**
27
+ * What should flash? row, cell or aggregated cell
28
+ */
27
29
  export declare type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
28
30
  /**
29
31
  * The Flashing Cell Definition
@@ -39,7 +39,7 @@ export interface FreeTextColumn extends AdaptableObject {
39
39
  * Whether Column is String, Number, Boolean or Date
40
40
  * @defaultValue 'String'
41
41
  */
42
- DataType?: 'String' | 'Number' | 'Boolean' | 'Date';
42
+ DataType: 'String' | 'Number' | 'Boolean' | 'Date';
43
43
  /**
44
44
  * Additional optional properties for Column (e.g. filterable, resizable)
45
45
  */
@@ -7,12 +7,10 @@ import { ColumnSort } from './Common/ColumnSort';
7
7
  export interface LayoutState extends ConfigState {
8
8
  /**
9
9
  * Layout which will be loaded when AdapTable starts - must match `Name` property in Layout
10
- * @defaultValue ''
11
10
  */
12
11
  CurrentLayout?: string;
13
12
  /**
14
13
  * Collection of Layout objects - listed in Layout toolbar and Tool Panel
15
- * @defaultValue null
16
14
  */
17
15
  Layouts?: Layout[];
18
16
  }
@@ -23,7 +23,7 @@ import { QueryState } from './QueryState';
23
23
  */
24
24
  export interface PredefinedConfig {
25
25
  /**
26
- * Supplies a collection of *Alert Definition* objects which will fire when their definition is triggered, and where Alerts are displayed
26
+ * Collection of `AlertDefinitions` which will fire Alerts when the rule is met
27
27
  */
28
28
  Alert?: AlertState;
29
29
  /**
@@ -58,6 +58,10 @@ export interface PredefinedConfig {
58
58
  * Stores Filters in AdapTable - both System and Column (predicate) Filters
59
59
  */
60
60
  Filter?: FilterState;
61
+ /***
62
+ * Objects which define which cells flash in response to data changes
63
+ */
64
+ FlashingCell?: FlashingCellState;
61
65
  /**
62
66
  * Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).
63
67
  */
@@ -98,5 +102,4 @@ export interface PredefinedConfig {
98
102
  * Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
99
103
  */
100
104
  ToolPanel?: ToolPanelState;
101
- FlashingCell?: FlashingCellState;
102
105
  }
@@ -1,5 +1,7 @@
1
1
  export interface GridCellRange {
2
2
  columnIds: string[];
3
- primaryKeyValueStart: any;
3
+ primaryKeyValueStart?: any;
4
4
  primaryKeyValueEnd?: any;
5
+ rowIndexStart?: any;
6
+ rowIndexEnd?: any;
5
7
  }
@@ -6,7 +6,8 @@ import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPu
6
6
  import { Glue42State, Glue42Report } from './Glue42State';
7
7
  import { OpenFinState, OpenFinReport } from './OpenFinState';
8
8
  import { AdaptableAlert } from './Common/AdaptableAlert';
9
- import { CellHighlightInfo, RowHighlightInfo } from './Common/CellHighlightInfo';
9
+ import { CellHighlightInfo } from './Common/CellHighlightInfo';
10
+ import { RowHighlightInfo } from './Common/RowHighlightInfo';
10
11
  import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
11
12
  import { CachedQuery } from './QueryState';
12
13
  import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
@@ -37,19 +37,25 @@ exports.ApplicationReducer = (state = initialState, action) => {
37
37
  const actionTypedAdd = action;
38
38
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
39
39
  applicationDataEntries.push(actionTypedAdd.applicationDataEntry);
40
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
40
+ return Object.assign({}, state, {
41
+ ApplicationDataEntries: applicationDataEntries,
42
+ });
41
43
  case exports.APPLICATION_DATA_ENTRY_EDIT:
42
44
  const actionTypedUpdate = action;
43
45
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
44
46
  index = applicationDataEntries.findIndex((fe) => fe.Key == actionTypedUpdate.applicationDataEntry.Key);
45
47
  applicationDataEntries[index] = actionTypedUpdate.applicationDataEntry;
46
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
48
+ return Object.assign({}, state, {
49
+ ApplicationDataEntries: applicationDataEntries,
50
+ });
47
51
  case exports.APPLICATION_DATA_ENTRY_DELETE:
48
52
  const actionTypedDelete = action;
49
53
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
50
54
  index = applicationDataEntries.findIndex((a) => a.Key == actionTypedDelete.applicationDataEntry.Key);
51
55
  applicationDataEntries.splice(index, 1);
52
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
56
+ return Object.assign({}, state, {
57
+ ApplicationDataEntries: applicationDataEntries,
58
+ });
53
59
  default:
54
60
  return state;
55
61
  }
@@ -64,28 +64,24 @@ exports.FlashingCellReducer = (state = initialState, action) => {
64
64
  let flashingCellDefinitions;
65
65
  switch (action.type) {
66
66
  case exports.FLASHING_ALERT_DEFINITION_SET: {
67
- const actionFlashingCellDefinition = action
68
- .flashingCellDefinitions;
67
+ const actionFlashingCellDefinition = action.flashingCellDefinitions;
69
68
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
70
69
  }
71
70
  case exports.FLASHING_ALERT_DEFINITION_ADD: {
72
- const actionFlashingCellDefinition = action
73
- .flashingCellDefinition;
71
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
74
72
  AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
75
73
  flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
76
74
  flashingCellDefinitions.push(actionFlashingCellDefinition);
77
75
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
78
76
  }
79
77
  case exports.FLASHING_ALERT_DEFINITION_EDIT: {
80
- const actionFlashingCellDefinition = action
81
- .flashingCellDefinition;
78
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
82
79
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
83
80
  ? actionFlashingCellDefinition
84
81
  : abObject) });
85
82
  }
86
83
  case exports.FLASHING_ALERT_DEFINITION_DELETE: {
87
- const actionFlashingCellDefinition = action
88
- .flashingCellDefinition;
84
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
89
85
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
90
86
  }
91
87
  case exports.FLASHING_ALERT_DEFINITION_SUSPEND: {
@@ -177,7 +177,9 @@ exports.GridReducer = (state = initialState, action) => {
177
177
  const removeColumn = action.column;
178
178
  return Object.assign(Object.assign({}, state), { Columns: state.Columns.filter((abObject) => abObject.Uuid !== removeColumn.Uuid) });
179
179
  case exports.GRID_SET_SORT:
180
- return Object.assign({}, state, { ColumnSorts: action.columnSorts });
180
+ return Object.assign({}, state, {
181
+ ColumnSorts: action.columnSorts,
182
+ });
181
183
  case exports.GRID_CLEAR_SORT:
182
184
  return Object.assign({}, state, { ColumnSorts: undefined });
183
185
  case exports.GRID_SET_SELECTED_CELLS: