@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
@@ -131,6 +131,8 @@ exports.PopupReducer = (state = initialState, action) => {
131
131
  Header: actionTyped.prompt.Header,
132
132
  Message: actionTyped.prompt.Msg,
133
133
  ConfirmAction: actionTyped.prompt.ConfirmAction,
134
+ ConfirmActionCreator: actionTyped.prompt.ConfirmActionCreator,
135
+ DefaultValue: actionTyped.prompt.DefaultValue,
134
136
  };
135
137
  return Object.assign({}, state, { PromptPopup: newPromptPopup });
136
138
  }
@@ -140,6 +142,8 @@ exports.PopupReducer = (state = initialState, action) => {
140
142
  Header: '',
141
143
  Message: '',
142
144
  ConfirmAction: null,
145
+ ConfirmActionCreator: null,
146
+ DefaultValue: '',
143
147
  };
144
148
  return Object.assign({}, state, { PromptPopup: newPromptPopup });
145
149
  }
@@ -167,7 +171,9 @@ exports.PopupReducer = (state = initialState, action) => {
167
171
  ConfirmationComment: null,
168
172
  MessageType: actionTyped.confirmation.MessageType,
169
173
  };
170
- return Object.assign({}, state, { ConfirmationPopup: newConfirmationPopup });
174
+ return Object.assign({}, state, {
175
+ ConfirmationPopup: newConfirmationPopup,
176
+ });
171
177
  }
172
178
  case exports.POPUP_CONFIRM_CONFIRMATION: {
173
179
  let actionTyped = action;
@@ -184,7 +190,9 @@ exports.PopupReducer = (state = initialState, action) => {
184
190
  ConfirmationComment: actionTyped.comment,
185
191
  MessageType: null,
186
192
  };
187
- return Object.assign({}, state, { ConfirmationPopup: newConfirmationPopup });
193
+ return Object.assign({}, state, {
194
+ ConfirmationPopup: newConfirmationPopup,
195
+ });
188
196
  }
189
197
  case exports.POPUP_CANCEL_CONFIRMATION: {
190
198
  //we dispatch the Action of CancelAction in the middelware in order to keep the reducer pure
@@ -200,7 +208,9 @@ exports.PopupReducer = (state = initialState, action) => {
200
208
  ConfirmationComment: null,
201
209
  MessageType: null,
202
210
  };
203
- return Object.assign({}, state, { ConfirmationPopup: newConfirmationPopup });
211
+ return Object.assign({}, state, {
212
+ ConfirmationPopup: newConfirmationPopup,
213
+ });
204
214
  }
205
215
  case exports.POPUP_SHOW_ALERT: {
206
216
  let showAlertAction = action;
@@ -40,7 +40,9 @@ exports.QuickSearchReducer = (state = initialState, action) => {
40
40
  QuickSearchText: action.quickSearchText,
41
41
  });
42
42
  case exports.QUICK_SEARCH_SET_STYLE:
43
- return Object.assign({}, state, { Style: action.style });
43
+ return Object.assign({}, state, {
44
+ Style: action.style,
45
+ });
44
46
  default:
45
47
  return state;
46
48
  }
@@ -1,6 +1,7 @@
1
1
  import * as Redux from 'redux';
2
2
  import { SystemState } from '../../PredefinedConfig/SystemState';
3
- import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
3
+ import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
4
+ import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
4
5
  import { PreviewInfo } from '../../Utilities/Interface/Preview';
5
6
  import { ExportCustomDestinationPopup, Report } from '../../PredefinedConfig/ExportState';
6
7
  import { BulkUpdateValidationResult } from '../../Strategy/Interface/IBulkUpdateModule';
@@ -11,14 +12,14 @@ import { CachedQuery } from '../../PredefinedConfig/QueryState';
11
12
  import { AdaptableFlashingCell } from '../../PredefinedConfig/Common/AdaptableFlashingCell';
12
13
  import { MathOperation, SummaryOperation } from '../../PredefinedConfig/Common/Enums';
13
14
  import { DataChangedInfo } from '../../PredefinedConfig/Common/DataChangedInfo';
14
- export declare const FLASHING_ALERT_ROW_KEY = "__ROW";
15
+ export declare const FLASHING_CELL_ROW_KEY = "__ROW";
15
16
  export declare const SYSTEM_ALERT_ADD = "SYSTEM_ALERT_ADD";
16
17
  export declare const SYSTEM_ALERT_DELETE = "SYSTEM_ALERT_DELETE";
17
18
  export declare const SYSTEM_ALERT_DELETE_ALL = "SYSTEM_ALERT_DELETE_ALL";
18
19
  export declare const SYSTEM_ALERT_REMOVE_HIGHLIGHT = "SYSTEM_ALERT_REMOVE_HIGHLIGHT";
19
- export declare const SYSTEM_FLASHING_ALERT_ADD = "SYSTEM_FLASHING_ALERT_ADD";
20
- export declare const SYSTEM_FLASHING_ALERT_DELETE = "SYSTEM_FLASHING_ALERT_DELETE";
21
- export declare const SYSTEM_FLASHING_ALERT_DELETE_ALL = "SYSTEM_FLASHING_ALERT_DELETE_ALL";
20
+ export declare const SYSTEM_FLASHING_CELL_ADD = "SYSTEM_FLASHING_CELL_ADD";
21
+ export declare const SYSTEM_FLASHING_CELL_DELETE = "SYSTEM_FLASHING_CELL_DELETE";
22
+ export declare const SYSTEM_FLASHING_CELL_DELETE_ALL = "SYSTEM_FLASHING_CELL_DELETE_ALL";
22
23
  export declare const SYSTEM_STATUS_MESSAGE_INFO_ADD = "SYSTEM_STATUS_MESSAGE_INFO_ADD";
23
24
  export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE = "SYSTEM_STATUS_MESSAGE_INFO_DELETE";
24
25
  export declare const SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = "SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_ALERT_DELETE_ALL = exports.SYSTEM_FLASHING_ALERT_DELETE = exports.SYSTEM_FLASHING_ALERT_ADD = exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_ALERT_ROW_KEY = void 0;
3
+ exports.SystemReducer = exports.getSystemExportCustomDestinationPopups = exports.SystemSettingsPanelSet = exports.SystemExportCustomDestinationPopupHide = exports.SystemExportCustomDestinationPopupShow = exports.SystemDataChangeHistoryResume = exports.SystemDataChangeHistorySuspend = exports.SystemDataChangeHistoryDisable = exports.SystemDataChangeHistoryEnable = exports.SystemDataChangeHistoryUndo = exports.SystemDataChangeHistoryAdd = exports.SystemLicenseDisablePersistence = exports.SystemLicenseShowWatermark = exports.SystemProgressIndicatorHide = exports.SystemProgressIndicatorShow = exports.SystemCellSummaryChangeOperation = exports.SystemCachedQueryAdd = exports.SetLastAppliedShortcut = exports.SetNewColumnListOrder = exports.BulkUpdateChangeValue = exports.BulkUpdateSetPreview = exports.BulkUpdateSetValidSelection = exports.BulkUpdateCheckCellSelection = exports.SmartEditSetPreview = exports.SmartEditSetValidSelection = exports.SmartEditCheckCellSelection = exports.SmartEditChangeOperation = exports.SmartEditChangeValue = exports.SystemStatusMessageInfoDeleteAll = exports.SystemStatusMessageInfoDelete = exports.SystemStatusMessageInfoAdd = exports.SystemFlashingCellDeleteAll = exports.SystemFlashingCellDelete = exports.SystemFlashingCellAdd = exports.SystemAlertRemoveHighlight = exports.SystemAlertDeleteAll = exports.SystemAlertDelete = exports.SystemAlertAdd = exports.SystemHighlightRowDeleteAll = exports.SystemHighlightRowDelete = exports.SystemHighlightRowAdd = exports.SystemHighlightCellDeleteAll = exports.SystemHighlightCellDelete = exports.SystemHighlightCellAdd = exports.SYSTEM_SETTINGS_PANEL_SET = exports.SYSTEM_DATA_CHANGE_HISTORY_RESUME = exports.SYSTEM_DATA_CHANGE_HISTORY_SUSPEND = exports.SYSTEM_DATA_CHANGE_HISTORY_DISABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_ENABLE = exports.SYSTEM_DATA_CHANGE_HISTORY_UNDO = exports.SYSTEM_DATA_CHANGE_HISTORY_ADD = exports.SYSTEM_LICENSE_DISABLE_PERSISTENCE = exports.SYSTEM_LICENSE_SHOW_WATERMARK = exports.SYSTEM_PROGRESS_INDICATOR_HIDE = exports.SYSTEM_PROGRESS_INDICATOR_SHOW = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_HIDE = exports.SYSTEM_EXPORT_CUSTOM_DESTINATION_POPUP_SHOW = exports.SYSTEM_CELL_SUMMARY_CHANGE_OPERATION = exports.SYSTEM_CACHED_QUERY_ADD = exports.SYSTEM_SET_LAST_APPLIED_SHORTCUT = exports.SYSTEM_SET_NEW_COLUMN_LIST_ORDER = exports.SYSTEM_HIGHLIGHT_ROW_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_ROW_DELETE = exports.SYSTEM_HIGHLIGHT_ROW_ADD = exports.SYSTEM_HIGHLIGHT_CELL_DELETE_ALL = exports.SYSTEM_HIGHLIGHT_CELL_DELETE = exports.SYSTEM_HIGHLIGHT_CELL_ADD = exports.SYSTEM_BULK_UPDATE_CHANGE_VALUE = exports.SYSTEM_BULK_UPDATE_SET_PREVIEW = exports.SYSTEM_BULK_UPDATE_SET_VALID_SELECTION = exports.SYSTEM_BULK_UPDATE_CHECK_CELL_SELECTION = exports.SYSTEM_SMART_EDIT_CHANGE_OPERATION = exports.SYSTEM_SMART_EDIT_CHANGE_VALUE = exports.SYSTEM_SMARTEDIT_SET_PREVIEW = exports.SYSTEM_SMARTEDIT_SET_VALID_SELECTION = exports.SYSTEM_SMARTEDIT_FETCH_PREVIEW = exports.SYSTEM_SMARTEDIT_CHECK_CELL_SELECTION = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL = exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = exports.SYSTEM_FLASHING_CELL_DELETE_ALL = exports.SYSTEM_FLASHING_CELL_DELETE = exports.SYSTEM_FLASHING_CELL_ADD = exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = exports.SYSTEM_ALERT_DELETE_ALL = exports.SYSTEM_ALERT_DELETE = exports.SYSTEM_ALERT_ADD = exports.FLASHING_CELL_ROW_KEY = void 0;
4
4
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
5
5
  const Helper_1 = require("../../Utilities/Helpers/Helper");
6
6
  /*
@@ -8,16 +8,16 @@ Bit of a mixed bag of actions but essentially its those that are related to Stra
8
8
  This allows us to keep the other reducers pure in terms of everything persists
9
9
  Not sure if its a good idea or not and perhaps we need 2 stores but I think its better than it was...
10
10
  */
11
- exports.FLASHING_ALERT_ROW_KEY = '__ROW';
11
+ exports.FLASHING_CELL_ROW_KEY = '__ROW';
12
12
  // Alerts
13
13
  exports.SYSTEM_ALERT_ADD = 'SYSTEM_ALERT_ADD';
14
14
  exports.SYSTEM_ALERT_DELETE = 'SYSTEM_ALERT_DELETE';
15
15
  exports.SYSTEM_ALERT_DELETE_ALL = 'SYSTEM_ALERT_DELETE_ALL';
16
16
  exports.SYSTEM_ALERT_REMOVE_HIGHLIGHT = 'SYSTEM_ALERT_REMOVE_HIGHLIGHT';
17
17
  // Flashing Alerts
18
- exports.SYSTEM_FLASHING_ALERT_ADD = 'SYSTEM_FLASHING_ALERT_ADD';
19
- exports.SYSTEM_FLASHING_ALERT_DELETE = 'SYSTEM_FLASHING_ALERT_DELETE';
20
- exports.SYSTEM_FLASHING_ALERT_DELETE_ALL = 'SYSTEM_FLASHING_ALERT_DELETE_ALL';
18
+ exports.SYSTEM_FLASHING_CELL_ADD = 'SYSTEM_FLASHING_CELL_ADD';
19
+ exports.SYSTEM_FLASHING_CELL_DELETE = 'SYSTEM_FLASHING_CELL_DELETE';
20
+ exports.SYSTEM_FLASHING_CELL_DELETE_ALL = 'SYSTEM_FLASHING_CELL_DELETE_ALL';
21
21
  // Status Message
22
22
  exports.SYSTEM_STATUS_MESSAGE_INFO_ADD = 'SYSTEM_STATUS_MESSAGE_INFO_ADD';
23
23
  exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE = 'SYSTEM_STATUS_MESSAGE_INFO_DELETE';
@@ -113,15 +113,15 @@ exports.SystemAlertRemoveHighlight = (alert) => ({
113
113
  alert: alert,
114
114
  });
115
115
  exports.SystemFlashingCellAdd = (flashingCell) => ({
116
- type: exports.SYSTEM_FLASHING_ALERT_ADD,
116
+ type: exports.SYSTEM_FLASHING_CELL_ADD,
117
117
  flashingCell: flashingCell,
118
118
  });
119
119
  exports.SystemFlashingCellDelete = (flashingCell) => ({
120
- type: exports.SYSTEM_FLASHING_ALERT_DELETE,
120
+ type: exports.SYSTEM_FLASHING_CELL_DELETE,
121
121
  flashingCell: flashingCell,
122
122
  });
123
123
  exports.SystemFlashingCellDeleteAll = (flashingCells) => ({
124
- type: exports.SYSTEM_FLASHING_ALERT_DELETE_ALL,
124
+ type: exports.SYSTEM_FLASHING_CELL_DELETE_ALL,
125
125
  flashingCells: flashingCells,
126
126
  });
127
127
  exports.SystemStatusMessageInfoAdd = (SystemStatusMessageInfo, MaxSystemStatusMessagesInStore) => ({
@@ -305,14 +305,14 @@ exports.SystemReducer = (state = initialState, action) => {
305
305
  return abObject;
306
306
  }) });
307
307
  }
308
- case exports.SYSTEM_FLASHING_ALERT_ADD: {
308
+ case exports.SYSTEM_FLASHING_CELL_ADD: {
309
309
  const { flashingCell: FlashingCell } = action;
310
310
  const { rowPrimaryKey } = FlashingCell;
311
311
  const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
312
312
  AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
313
313
  const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
314
314
  if (FlashingCell.flashTarget === 'row') {
315
- secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
315
+ secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
316
316
  }
317
317
  secondaryIds.forEach((COL_ID) => {
318
318
  AdaptableFlashingCells[rowPrimaryKey][COL_ID] = FlashingCell.Uuid;
@@ -324,7 +324,7 @@ exports.SystemReducer = (state = initialState, action) => {
324
324
  AdaptableFlashingCellsMap: AdaptableFlashingCellsMap,
325
325
  });
326
326
  }
327
- case exports.SYSTEM_FLASHING_ALERT_DELETE: {
327
+ case exports.SYSTEM_FLASHING_CELL_DELETE: {
328
328
  const { flashingCell: FlashingCell } = action;
329
329
  const { rowPrimaryKey } = FlashingCell;
330
330
  const AdaptableFlashingCells = Object.assign({}, state.AdaptableFlashingCells);
@@ -332,7 +332,7 @@ exports.SystemReducer = (state = initialState, action) => {
332
332
  AdaptableFlashingCells[rowPrimaryKey] = Object.assign({}, AdaptableFlashingCells[rowPrimaryKey]);
333
333
  const secondaryIds = Object.keys(FlashingCell.flashColumnIds);
334
334
  if (FlashingCell.flashTarget === 'row') {
335
- secondaryIds.push(exports.FLASHING_ALERT_ROW_KEY);
335
+ secondaryIds.push(exports.FLASHING_CELL_ROW_KEY);
336
336
  }
337
337
  secondaryIds.forEach((COL_ID) => {
338
338
  if (AdaptableFlashingCells[rowPrimaryKey][COL_ID] === FlashingCell.Uuid) {
@@ -345,7 +345,7 @@ exports.SystemReducer = (state = initialState, action) => {
345
345
  delete AdaptableFlashingCellsMap[FlashingCell.Uuid];
346
346
  return Object.assign(Object.assign({}, state), { AdaptableFlashingCells: AdaptableFlashingCells, AdaptableFlashingCellsMap: AdaptableFlashingCellsMap });
347
347
  }
348
- case exports.SYSTEM_FLASHING_ALERT_DELETE_ALL: {
348
+ case exports.SYSTEM_FLASHING_CELL_DELETE_ALL: {
349
349
  return Object.assign({}, state, {
350
350
  AdaptableFlashingCells: {},
351
351
  AdaptableFlashingCellsMap: {},
@@ -400,7 +400,9 @@ exports.SystemReducer = (state = initialState, action) => {
400
400
  systemStatusMessages.splice(0, 1);
401
401
  }
402
402
  systemStatusMessages.push(actionTypedAdd.systemStatusMessageInfo);
403
- return Object.assign({}, state, { SystemStatusMessages: systemStatusMessages });
403
+ return Object.assign({}, state, {
404
+ SystemStatusMessages: systemStatusMessages,
405
+ });
404
406
  }
405
407
  case exports.SYSTEM_STATUS_MESSAGE_INFO_DELETE_ALL: {
406
408
  return Object.assign({}, state, { SystemStatusMessages: [] });
@@ -50,7 +50,9 @@ exports.ThemeReducer = (state = initialState, action) => {
50
50
  UserThemes: action.UserThemes,
51
51
  });
52
52
  case exports.THEME_SELECT:
53
- return Object.assign({}, state, { CurrentTheme: action.Theme });
53
+ return Object.assign({}, state, {
54
+ CurrentTheme: action.Theme,
55
+ });
54
56
  default:
55
57
  return state;
56
58
  }
@@ -64,7 +64,7 @@ function MergeStateFunction(oldState, newState) {
64
64
  }
65
65
  // any Module in config that doesn't exist in state will be added
66
66
  for (const configModuleName in config) {
67
- (_a = state[configModuleName]) !== null && _a !== void 0 ? _a : (state[configModuleName] = config[configModuleName]);
67
+ state[configModuleName] = (_a = state[configModuleName]) !== null && _a !== void 0 ? _a : config[configModuleName];
68
68
  }
69
69
  // any Module in state that has an older revision then the config will be replaced
70
70
  for (const stateModuleName in state) {
@@ -182,6 +182,7 @@ class AdaptableStore {
182
182
  // If the user has remote storage set then we use Remote Engine, otherwise we use Local Enginge
183
183
  // not sure we can do this as we need to be backwardly compatible with existing users so need to stick with adaptable id (which should be unique)
184
184
  // const localStorageKey = 'adaptable-adaptable-state-' + adaptable.adaptableOptions.primaryKey;
185
+ const predefinedConfig = adaptable.adaptableOptions.predefinedConfig;
185
186
  storageEngine = AdaptableReduxLocalStorageEngine_1.createEngine({
186
187
  adaptableId: adaptable.adaptableOptions.adaptableId,
187
188
  adaptableStateKey: adaptable.adaptableOptions.adaptableStateKey,
@@ -316,9 +317,9 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
316
317
  /*******************
317
318
  * FLASHING ALERT ACTIONS
318
319
  *******************/
319
- case SystemRedux.SYSTEM_FLASHING_ALERT_ADD:
320
- case SystemRedux.SYSTEM_FLASHING_ALERT_DELETE: {
321
- const { flashingCell: FlashingCell, } = action;
320
+ case SystemRedux.SYSTEM_FLASHING_CELL_ADD:
321
+ case SystemRedux.SYSTEM_FLASHING_CELL_DELETE: {
322
+ const { flashingCell: FlashingCell } = action;
322
323
  const { dataChangedInfo } = FlashingCell;
323
324
  let ret = next(action);
324
325
  if (dataChangedInfo) {
@@ -495,6 +496,21 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
495
496
  /*******************
496
497
  * SPECIAL COLUMN ACTIONS
497
498
  *******************/
499
+ case CalculatedColumnRedux.CALCULATED_COLUMN_READY: {
500
+ // create aggregated scalar columns at grid startup
501
+ const aggregatedCalculatedColumns = adaptable.api.calculatedColumnApi
502
+ .getAllCalculatedColumn()
503
+ .filter((calculatedColumn) => { var _a; return (_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.AggregatedScalarExpression; });
504
+ aggregatedCalculatedColumns.forEach((calculatedColumn) => {
505
+ adaptable.api.internalApi
506
+ .getCalculatedColumnExpressionService()
507
+ .createAggregatedScalarCalculatedColumn(calculatedColumn);
508
+ });
509
+ // refresh calcualted columns
510
+ const aggCalculatedColumnIds = aggregatedCalculatedColumns.map((calculatedColumn) => calculatedColumn.ColumnId);
511
+ adaptable.refreshCells(null, aggCalculatedColumnIds, true);
512
+ return;
513
+ }
498
514
  /**
499
515
  * Use Case: We have added / edited / deleted a Special Column (i.e. one not in initial ColumnDefs)
500
516
  * Action: We update the Special ColumnDefs
@@ -503,7 +519,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
503
519
  case FreeTextColumnRedux.FREE_TEXT_COLUMN_EDIT:
504
520
  case CalculatedColumnRedux.CALCULATED_COLUMN_ADD:
505
521
  case CalculatedColumnRedux.CALCULATED_COLUMN_EDIT: {
506
- const returnAction = next(action);
522
+ const actionTyped = action;
523
+ const returnAction = next(actionTyped);
524
+ if (returnAction.type === CalculatedColumnRedux.CALCULATED_COLUMN_ADD ||
525
+ returnAction.type === CalculatedColumnRedux.CALCULATED_COLUMN_EDIT) {
526
+ adaptable.api.internalApi
527
+ .getCalculatedColumnExpressionService()
528
+ .createAggregatedScalarCalculatedColumn(returnAction.calculatedColumn);
529
+ }
507
530
  adaptable.updateColDefsForSpecialColumns();
508
531
  return returnAction;
509
532
  }
@@ -523,7 +546,10 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
523
546
  }));
524
547
  return;
525
548
  }
526
- const returnAction = next(action);
549
+ const returnAction = next(actionTyped);
550
+ adaptable.api.internalApi
551
+ .getCalculatedColumnExpressionService()
552
+ .destroyAggregatedScalarCalculatedColumn(returnAction.calculatedColumn);
527
553
  adaptable.updateColDefsForSpecialColumns();
528
554
  return returnAction;
529
555
  }
@@ -1086,7 +1112,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1086
1112
  case TeamSharingRedux.TEAMSHARING_IMPORT_ITEM: {
1087
1113
  let returnAction = next(action);
1088
1114
  const actionTyped = action;
1089
- const [importStepActions, needsOverwriteConfirmation,] = adaptable.api.internalApi
1115
+ const [importStepActions, needsOverwriteConfirmation] = adaptable.api.internalApi
1090
1116
  .getTeamSharingService()
1091
1117
  .buildSharedEntityImportActions(actionTyped.SharedEntity);
1092
1118
  const processImportAction = TeamSharingRedux.TeamSharingProcessImport(importStepActions);
@@ -1159,14 +1185,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1159
1185
  .getSharedEntities(adaptableId)
1160
1186
  .then((sharedEntities) => {
1161
1187
  // check if remote server has a newer revision
1162
- const [localRevision, remoteRevision,] = adaptable.api.internalApi
1188
+ const [localRevision, remoteRevision] = adaptable.api.internalApi
1163
1189
  .getTeamSharingService()
1164
1190
  .getSharedEntityLocalAndRemoteRevisions(ChangedAdaptableObject.Uuid, sharedEntities);
1165
1191
  if (remoteRevision > localRevision) {
1166
1192
  // if remote has a newer version, we will NOT overwrite it
1167
1193
  return;
1168
1194
  }
1169
- const [updatedSharedEntities, newActiveEntities,] = adaptable.api.internalApi
1195
+ const [updatedSharedEntities, newActiveEntities] = adaptable.api.internalApi
1170
1196
  .getTeamSharingService()
1171
1197
  .updateActiveSharedEntity(ChangedAdaptableObject, UserName, sharedEntities);
1172
1198
  middlewareAPI.dispatch(TeamSharingRedux.TeamSharingLinkItem(...newActiveEntities));
@@ -20,11 +20,11 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
20
20
  super(ModuleConstants.AlertModuleId, 'Alert', 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
21
21
  this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
22
22
  if (dataChangedInfo.trigger === 'undo' || dataChangedInfo.trigger === 'aggChange') {
23
- // do NOT handle reverted changes
23
+ // do NOT handle reverted or aggregated changes
24
24
  return;
25
25
  }
26
- if (this.api.internalApi.getAdaptableOptions().notificationsOptions
27
- .dataChangeDetectionPolicy === 'formattedValue') {
26
+ if (this.api.internalApi.getAdaptableOptions().alertOptions.dataChangeDetectionPolicy ===
27
+ 'formattedValue') {
28
28
  const { oldValue, newValue } = dataChangedInfo;
29
29
  const columnId = dataChangedInfo.column.columnId;
30
30
  const oldFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, oldValue);
@@ -44,7 +44,7 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
44
44
  return this.api.alertApi.getAlertDefinitions();
45
45
  }
46
46
  getExplicitlyReferencedColumnIds(alertDefinition) {
47
- const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
47
+ const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
48
48
  if (queryExpression) {
49
49
  return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
50
50
  }
@@ -56,15 +56,17 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
56
56
  return [];
57
57
  }
58
58
  getReferencedNamedQueryNames(alertDefinition) {
59
- const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
59
+ const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
60
60
  if (!queryExpression) {
61
61
  return [];
62
62
  }
63
63
  return this.api.queryApi.getReferencedNamedQueryNames(queryExpression);
64
64
  }
65
65
  updateOldConfig() {
66
+ var _a;
66
67
  // 1. Make all (new) Flashing Alerts have a Predicate if none exists
67
- const flashingAlertDefinitions = this.api.alertApi.getAlertState().FlashingAlertDefinitions;
68
+ const alertState = this.api.alertApi.getAlertState();
69
+ const flashingAlertDefinitions = alertState.FlashingAlertDefinitions;
68
70
  const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
69
71
  if (ArrayExtensions_1.ArrayExtensions.IsEmpty(flashingCellDefinitions) &&
70
72
  ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
@@ -72,6 +74,14 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
72
74
  // TODO: state does not clear
73
75
  this.api.internalApi.clearFlashingCellState();
74
76
  }
77
+ //migrate alert definitions with `AggregationExpression` (now `AggregatedBooleanExpression`)
78
+ (_a = alertState.AlertDefinitions) === null || _a === void 0 ? void 0 : _a.forEach((alertDefinition) => {
79
+ // @ts-ignore
80
+ const obsoleteAggregationExpression = alertDefinition.Rule['AggregationExpression'];
81
+ if (obsoleteAggregationExpression) {
82
+ alertDefinition.Rule.AggregatedBooleanExpression = obsoleteAggregationExpression;
83
+ }
84
+ });
75
85
  }
76
86
  addContextMenuItems(menuContext) {
77
87
  const items = [];
@@ -33,12 +33,12 @@ class CalculatedColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
33
33
  this.api.calculatedColumnApi.editCalculatedColumns(oldCalculatedColumns);
34
34
  }
35
35
  getExplicitlyReferencedColumnIds(calculatedColumn) {
36
- var _a, _b;
37
- return ((_b = this.api.queryLanguageApi.getColumnsFromExpression((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression)) !== null && _b !== void 0 ? _b : []);
36
+ var _a;
37
+ return ((_a = this.api.queryLanguageApi.getColumnsFromExpression(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
38
38
  }
39
39
  getReferencedNamedQueryNames(calculatedColumn) {
40
- var _a, _b;
41
- return ((_b = this.api.queryApi.getReferencedNamedQueryNames((_a = calculatedColumn.Query) === null || _a === void 0 ? void 0 : _a.ScalarExpression)) !== null && _b !== void 0 ? _b : []);
40
+ var _a;
41
+ return ((_a = this.api.queryApi.getReferencedNamedQueryNames(this.api.queryLanguageApi.getAdaptableQueryExpression(calculatedColumn.Query))) !== null && _a !== void 0 ? _a : []);
42
42
  }
43
43
  addColumnMenuItems(column) {
44
44
  if (column && this.isModuleEditable()) {
@@ -1,6 +1,6 @@
1
- import { AdaptableModuleBase } from '@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase';
2
- import { IModule } from '@adaptabletools/adaptable/src/Strategy/Interface/IModule';
3
- import { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';
1
+ import { IModule } from './Interface/IModule';
2
+ import { AdaptableModuleBase } from './AdaptableModuleBase';
3
+ import { AdaptableApi } from '../Api/AdaptableApi';
4
4
  export declare class ChartingModule extends AdaptableModuleBase implements IModule {
5
5
  constructor(api: AdaptableApi);
6
6
  isModuleAvailable(): boolean;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChartingModule = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const AdaptableModuleBase_1 = require("@adaptabletools/adaptable/src/Strategy/AdaptableModuleBase");
6
- const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/src/Utilities/Constants/ModuleConstants"));
5
+ const AdaptableModuleBase_1 = require("./AdaptableModuleBase");
6
+ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/ModuleConstants"));
7
7
  class ChartingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
8
8
  constructor(api) {
9
9
  super(ModuleConstants.ChartingModuleId, 'Charts', 'chart', 'ChartPopup', 'Create Charts in order to see Adaptable Data visually', api);
@@ -191,6 +191,10 @@ class ConditionalStyleModule extends AdaptableModuleBase_1.AdaptableModuleBase {
191
191
  getScopeViewItems_1.getScopeViewItems(conditionalStyle.Scope),
192
192
  getStyleViewItems_1.getStyleViewItems(),
193
193
  getRuleViewItems_1.getRuleViewItems(conditionalStyle.Rule, this.api),
194
+ {
195
+ name: 'Settings',
196
+ values: [`Include grouped rows: ${conditionalStyle.IncludeGroupedRows ? 'Yes' : 'No'}`],
197
+ },
194
198
  ],
195
199
  abObject: conditionalStyle,
196
200
  };
@@ -24,8 +24,8 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
24
24
  }
25
25
  // TODO: think about flashing row value only
26
26
  // - flash for the underlying small data changes, but the visual does not
27
- if (this.api.internalApi.getAdaptableOptions().notificationsOptions
28
- .dataChangeDetectionPolicy === 'formattedValue') {
27
+ if (this.api.internalApi.getAdaptableOptions().alertOptions.dataChangeDetectionPolicy ===
28
+ 'formattedValue') {
29
29
  const { oldValue, newValue } = dataChangedInfo;
30
30
  const columnId = dataChangedInfo.column.columnId;
31
31
  const oldFormattedValue = this.api.gridApi.getFormattedValueFromRawValue(columnId, oldValue);
@@ -42,7 +42,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
42
42
  return this.api.flashingCellApi.getFlashingCellDefinitions();
43
43
  }
44
44
  getExplicitlyReferencedColumnIds(alertDefinition) {
45
- const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
45
+ const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
46
46
  if (queryExpression) {
47
47
  return this.api.queryLanguageApi.getColumnsFromExpression(queryExpression);
48
48
  }
@@ -54,7 +54,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
54
54
  return [];
55
55
  }
56
56
  getReferencedNamedQueryNames(alertDefinition) {
57
- const queryExpression = AdaptableQuery_1.getAdaptableQueryExpression(alertDefinition.Rule);
57
+ const queryExpression = this.api.queryLanguageApi.getAdaptableQueryExpression(alertDefinition.Rule);
58
58
  if (!queryExpression) {
59
59
  return [];
60
60
  }
@@ -7,12 +7,12 @@ import { TeamSharingImportInfo } from '../PredefinedConfig/TeamSharingState';
7
7
  import { FreeTextColumn } from '../PredefinedConfig/FreeTextColumnState';
8
8
  import { AdaptableObjectView, IModule } from './Interface/IModule';
9
9
  import { AdaptableApi } from '../Api/AdaptableApi';
10
- import { AdaptableObject } from '../PredefinedConfig/Common/AdaptableObject';
11
10
  export declare class FreeTextColumnModule extends AdaptableModuleBase implements IModule {
12
11
  constructor(api: AdaptableApi);
13
12
  isModuleAvailable(): boolean;
14
- getModuleAdaptableObjects(): AdaptableObject[];
13
+ getModuleAdaptableObjects(): FreeTextColumn[];
15
14
  hasNamedQueryReferences(): boolean;
15
+ updateOldConfig(): void;
16
16
  addColumnMenuItems(column: AdaptableColumn): AdaptableMenuItem[] | undefined;
17
17
  getTeamSharingAction(): TeamSharingImportInfo<FreeTextColumn>;
18
18
  toView(freeTextColumn: FreeTextColumn): AdaptableObjectView;
@@ -21,6 +21,17 @@ class FreeTextColumnModule extends AdaptableModuleBase_1.AdaptableModuleBase {
21
21
  hasNamedQueryReferences() {
22
22
  return false;
23
23
  }
24
+ updateOldConfig() {
25
+ // make sure all default to type string
26
+ const allFreeTextColumns = this.getModuleAdaptableObjects();
27
+ for (const freeTextColumn of allFreeTextColumns) {
28
+ if (!freeTextColumn.DataType) {
29
+ const updatedFreeTextColumn = Object.assign(Object.assign({}, freeTextColumn), { DataType: 'String' });
30
+ // FIXME AFL add api method to edit multiple columns in one run
31
+ this.api.freeTextColumnApi.editFreeTextColumn(updatedFreeTextColumn);
32
+ }
33
+ }
34
+ }
24
35
  addColumnMenuItems(column) {
25
36
  if (column && this.isModuleEditable()) {
26
37
  if (this.api.freeTextColumnApi
@@ -48,12 +48,7 @@ class LayoutModule extends AdaptableModuleBase_1.AdaptableModuleBase {
48
48
  }
49
49
  if (column) {
50
50
  if (!isReadOnlyLayout) {
51
- returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Change Caption', 'edit', () => {
52
- let newname = prompt('Enter a new Caption for the Column');
53
- if (newname) {
54
- this.api.layoutApi.setColumnCaption(column.columnId, newname);
55
- }
56
- }));
51
+ returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Change Caption', 'edit', () => this.api.layoutApi.showChangeColumnCaption(column)));
57
52
  }
58
53
  if (column.hideable) {
59
54
  returnColumnMenuItems.push(this.createColumnMenuItemClickFunction('Hide Column', 'hide-column', () => {
@@ -15,8 +15,7 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
15
15
  if (!super.isModuleAvailable()) {
16
16
  return false;
17
17
  }
18
- const toolPanelOptions = this.api.internalApi.getAdaptableOptions()
19
- .toolPanelOptions;
18
+ const toolPanelOptions = this.api.internalApi.getAdaptableOptions().toolPanelOptions;
20
19
  return (toolPanelOptions &&
21
20
  toolPanelOptions.showAdaptableToolPanel &&
22
21
  toolPanelOptions.showAdaptableToolPanel == true);
@@ -25,7 +24,10 @@ class ToolPanelModule extends AdaptableModuleBase_1.AdaptableModuleBase {
25
24
  const deprecatedToolPanelConfigs = this.api.toolPanelApi.getToolPanelState().VisibleToolPanels;
26
25
  if (deprecatedToolPanelConfigs === null || deprecatedToolPanelConfigs === void 0 ? void 0 : deprecatedToolPanelConfigs.length) {
27
26
  LoggingHelper_1.LogAdaptableWarning(`Updating Obsolete VisibleToolPanels Config for ToolPanelState: [${deprecatedToolPanelConfigs}]`);
28
- const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({ Name: toolPanel, State: 'collapsed' }));
27
+ const migratedToolPanelConfigs = deprecatedToolPanelConfigs.map((toolPanel) => ({
28
+ Name: toolPanel,
29
+ State: 'collapsed',
30
+ }));
29
31
  this.api.internalApi.dispatchReduxAction(ToolPanelRedux_1.ToolPanelSetToolPanels(migratedToolPanelConfigs));
30
32
  }
31
33
  else if (!this.api.toolPanelApi.getToolPanelState().ToolPanels) {
@@ -13,7 +13,7 @@ exports.getAlertPreviewViewItems = (alert, api) => {
13
13
  if (!((_a = alert === null || alert === void 0 ? void 0 : alert.AlertProperties) === null || _a === void 0 ? void 0 : _a.DisplayNotification)) {
14
14
  return React.createElement(Tag_1.Tag, null, alert.MessageType);
15
15
  }
16
- return React.createElement(AlertDisplayWizardSection_1.AlertPreview, { style: { maxWidth: 400 }, mt: 2, api: api, alertDefinition: alert });
16
+ return (React.createElement(AlertDisplayWizardSection_1.AlertPreview, { focusFirstButton: false, style: { maxWidth: 400 }, mt: 2, api: api, alertDefinition: alert }));
17
17
  },
18
18
  };
19
19
  };
@@ -1,5 +1,5 @@
1
- import { AdaptableScalarQuery } from '../../PredefinedConfig/Common/AdaptableQuery';
2
- export declare const getExpressionViewItems: (query: AdaptableScalarQuery) => {
1
+ import { AdaptableCalculatedColumnQuery } from '../../PredefinedConfig/CalculatedColumnState';
2
+ export declare const getExpressionViewItems: (query: AdaptableCalculatedColumnQuery) => {
3
3
  name: string;
4
4
  values: string[];
5
5
  };
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getExpressionViewItems = void 0;
4
4
  exports.getExpressionViewItems = (query) => {
5
+ var _a;
5
6
  return {
6
7
  name: 'Expression',
7
- values: [query === null || query === void 0 ? void 0 : query.ScalarExpression],
8
+ values: [(_a = query === null || query === void 0 ? void 0 : query.ScalarExpression) !== null && _a !== void 0 ? _a : query === null || query === void 0 ? void 0 : query.AggregatedScalarExpression],
8
9
  };
9
10
  };
@@ -6,7 +6,7 @@ exports.getFormatColumnSettingsViewItems = (calculatedColumn) => {
6
6
  const values = [
7
7
  `Cell alignment: ${(_a = calculatedColumn.CellAlignment) !== null && _a !== void 0 ? _a : 'default'}`,
8
8
  calculatedColumn.HeaderName && `Header name: ${calculatedColumn.HeaderName}`,
9
- `Include grouped rows: ${calculatedColumn.IncludeGroupedRows ? 'yes' : 'no'}`,
9
+ `Include grouped rows: ${calculatedColumn.IncludeGroupedRows ? 'Yes' : 'No'}`,
10
10
  ].filter(Boolean);
11
11
  return {
12
12
  name: 'Settings',
@@ -1,6 +1,5 @@
1
1
  import { AdaptableApi } from '../../../types';
2
2
  export declare const getRuleViewItems: (rule: any, api: AdaptableApi) => {
3
3
  name: string;
4
- label: string;
5
4
  values: string[];
6
5
  };
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuleViewItems = void 0;
4
- const AdaptableQuery_1 = require("../../PredefinedConfig/Common/AdaptableQuery");
5
4
  exports.getRuleViewItems = (rule, api) => {
6
5
  return {
7
6
  name: 'Condition',
8
- label: 'Condition',
9
7
  values: [
10
8
  rule.Predicate
11
9
  ? api.predicateApi.predicateToString(rule.Predicate)
12
- : AdaptableQuery_1.getAdaptableQueryExpression(rule),
10
+ : api.queryLanguageApi.getAdaptableQueryExpression(rule),
13
11
  ],
14
12
  };
15
13
  };
@@ -3,7 +3,8 @@ export declare const ExpressionEditorDocsLink: string;
3
3
  export declare const BooleanQueryDocsLink: string;
4
4
  export declare const ScalarQueryDocsLink: string;
5
5
  export declare const ObservableQueryDocsLink: string;
6
- export declare const AggregationQueryDocsLink: string;
6
+ export declare const AggregatedBooleanQueryDocsLink: string;
7
+ export declare const AggregatedScalarQueryDocsLink: string;
7
8
  export declare const PredicateDocsLink: string;
8
9
  export declare const PrimaryKeyDocsLink: string;
9
10
  export declare const LicenseDocsLink: string;