@adaptabletools/adaptable 12.1.7 → 12.2.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/base.css +127 -71
  2. package/bundle.cjs.js +108 -108
  3. package/index.css +145 -83
  4. package/package.json +1 -1
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/IAdaptable.d.ts +1 -0
  8. package/src/AdaptableOptions/AdaptableQLOptions.d.ts +44 -10
  9. package/src/AdaptableOptions/FilterOptions.d.ts +12 -0
  10. package/src/AdaptableOptions/FinancePluginOptions.d.ts +22 -1
  11. package/src/AdaptableOptions/LayoutOptions.d.ts +10 -1
  12. package/src/AdaptableOptions/StateOptions.d.ts +25 -12
  13. package/src/Api/ColumnApi.d.ts +5 -0
  14. package/src/Api/ExportApi.d.ts +5 -0
  15. package/src/Api/FilterApi.d.ts +23 -0
  16. package/src/Api/GridApi.d.ts +1 -0
  17. package/src/Api/Implementation/AlertApiImpl.js +1 -2
  18. package/src/Api/Implementation/ColumnApiImpl.d.ts +1 -0
  19. package/src/Api/Implementation/ColumnApiImpl.js +5 -0
  20. package/src/Api/Implementation/ExportApiImpl.d.ts +3 -1
  21. package/src/Api/Implementation/ExportApiImpl.js +19 -3
  22. package/src/Api/Implementation/FilterApiImpl.d.ts +5 -0
  23. package/src/Api/Implementation/FilterApiImpl.js +25 -2
  24. package/src/Api/Implementation/GridApiImpl.d.ts +1 -0
  25. package/src/Api/Implementation/InternalApiImpl.d.ts +3 -2
  26. package/src/Api/Implementation/InternalApiImpl.js +34 -3
  27. package/src/Api/Implementation/PredicateApiImpl.js +4 -0
  28. package/src/Api/Implementation/QueryLanguageApiImpl.d.ts +1 -0
  29. package/src/Api/Implementation/QueryLanguageApiImpl.js +14 -1
  30. package/src/Api/InternalApi.d.ts +6 -2
  31. package/src/Api/QueryLanguageApi.d.ts +5 -0
  32. package/src/PredefinedConfig/CalculatedColumnState.d.ts +2 -2
  33. package/src/PredefinedConfig/Common/AdaptablePredicate.js +16 -4
  34. package/src/PredefinedConfig/Common/AdaptableQuery.js +1 -1
  35. package/src/PredefinedConfig/Common/AggregationColumns.d.ts +6 -0
  36. package/src/PredefinedConfig/Common/AggregationColumns.js +4 -0
  37. package/src/PredefinedConfig/Common/ColumnFilter.d.ts +2 -2
  38. package/src/PredefinedConfig/Common/Enums.d.ts +0 -15
  39. package/src/PredefinedConfig/Common/Enums.js +1 -18
  40. package/src/PredefinedConfig/ExportState.d.ts +12 -4
  41. package/src/PredefinedConfig/LayoutState.d.ts +2 -1
  42. package/src/PredefinedConfig/PopupState.d.ts +1 -2
  43. package/src/Redux/ActionsReducers/AlertRedux.d.ts +1 -1
  44. package/src/Redux/ActionsReducers/AlertRedux.js +1 -1
  45. package/src/Redux/ActionsReducers/ConditionalStyleRedux.d.ts +1 -1
  46. package/src/Redux/ActionsReducers/ConditionalStyleRedux.js +1 -1
  47. package/src/Redux/ActionsReducers/CustomSortRedux.d.ts +1 -1
  48. package/src/Redux/ActionsReducers/CustomSortRedux.js +1 -1
  49. package/src/Redux/ActionsReducers/FlashingCellRedux.d.ts +1 -1
  50. package/src/Redux/ActionsReducers/FlashingCellRedux.js +1 -1
  51. package/src/Redux/ActionsReducers/FormatColumnRedux.d.ts +1 -1
  52. package/src/Redux/ActionsReducers/FormatColumnRedux.js +1 -1
  53. package/src/Redux/ActionsReducers/LayoutRedux.d.ts +28 -0
  54. package/src/Redux/ActionsReducers/LayoutRedux.js +80 -2
  55. package/src/Redux/ActionsReducers/PlusMinusRedux.d.ts +1 -1
  56. package/src/Redux/ActionsReducers/PlusMinusRedux.js +1 -1
  57. package/src/Redux/ActionsReducers/PopupRedux.d.ts +0 -2
  58. package/src/Redux/ActionsReducers/PopupRedux.js +1 -28
  59. package/src/Redux/ActionsReducers/ScheduleRedux.d.ts +5 -5
  60. package/src/Redux/ActionsReducers/ScheduleRedux.js +5 -5
  61. package/src/Redux/ActionsReducers/ShortcutRedux.d.ts +1 -1
  62. package/src/Redux/ActionsReducers/ShortcutRedux.js +1 -1
  63. package/src/Redux/Store/AdaptableStore.js +15 -6
  64. package/src/Strategy/AlertModule.d.ts +1 -0
  65. package/src/Strategy/AlertModule.js +20 -0
  66. package/src/Strategy/BulkUpdateModule.d.ts +1 -1
  67. package/src/Strategy/CalculatedColumnModule.js +3 -3
  68. package/src/Strategy/ExportModule.d.ts +0 -1
  69. package/src/Strategy/ExportModule.js +0 -16
  70. package/src/Strategy/FilterModule.js +6 -0
  71. package/src/Strategy/Interface/IModule.d.ts +4 -0
  72. package/src/Strategy/LayoutModule.js +20 -20
  73. package/src/Strategy/QueryModule.js +1 -1
  74. package/src/Strategy/Utilities/Export/getExportRowsViewItems.js +0 -13
  75. package/src/Strategy/Utilities/FormatColumn/getFormatColumnStyleViewItems.js +16 -1
  76. package/src/Strategy/Utilities/Layout/getLayoutFilterViewItems.js +15 -11
  77. package/src/Strategy/Utilities/getExpressionViewItems.d.ts +3 -4
  78. package/src/Strategy/Utilities/getExpressionViewItems.js +3 -3
  79. package/src/Strategy/Utilities/getRuleViewItems.js +1 -1
  80. package/src/Utilities/Constants/DocumentationLinkConstants.d.ts +1 -0
  81. package/src/Utilities/Constants/DocumentationLinkConstants.js +2 -1
  82. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +3 -0
  83. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.d.ts +12 -2
  84. package/src/Utilities/ExpressionFunctions/aggregatedBooleanExpressionFunctions.js +30 -66
  85. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.d.ts +22 -6
  86. package/src/Utilities/ExpressionFunctions/aggregatedScalarExpressionFunctions.js +423 -220
  87. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.d.ts +7 -1
  88. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +25 -7
  89. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.d.ts +0 -1
  90. package/src/Utilities/ExpressionFunctions/scalarAggregationHelper.js +6 -54
  91. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.d.ts +1 -1
  92. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +31 -5
  93. package/src/Utilities/Interface/MessagePopups.d.ts +0 -4
  94. package/src/Utilities/ObjectFactory.d.ts +4 -2
  95. package/src/Utilities/ObjectFactory.js +16 -3
  96. package/src/Utilities/Services/AggregatedScalarLiveValue.d.ts +25 -0
  97. package/src/Utilities/Services/AggregatedScalarLiveValue.js +103 -0
  98. package/src/Utilities/Services/AlertService.d.ts +0 -1
  99. package/src/Utilities/Services/AlertService.js +5 -17
  100. package/src/Utilities/Services/CalculatedColumnExpressionService.d.ts +4 -4
  101. package/src/Utilities/Services/CalculatedColumnExpressionService.js +29 -154
  102. package/src/Utilities/Services/Interface/ICalculatedColumnExpressionService.d.ts +2 -2
  103. package/src/Utilities/Services/Interface/IQueryLanguageService.d.ts +8 -3
  104. package/src/Utilities/Services/QueryLanguageService.d.ts +8 -4
  105. package/src/Utilities/Services/QueryLanguageService.js +68 -25
  106. package/src/Utilities/Services/ReportService.js +48 -48
  107. package/src/View/AdaptableView.js +1 -2
  108. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.d.ts +1 -1
  109. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/AdaptableOptionsForm.js +10 -10
  110. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.d.ts +3 -0
  111. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/Components/FormBox.js +9 -0
  112. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +14 -15
  113. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.d.ts +1 -1
  114. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/EntitlementsForm.js +2 -2
  115. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +7 -0
  116. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +280 -0
  117. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.d.ts +1 -0
  118. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.js +5 -0
  119. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.d.ts +1 -1
  120. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/GridOptionsForm.js +4 -4
  121. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UIOptionsStatusbarForm.js +2 -8
  122. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.d.ts +1 -1
  123. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/UIOptions/UiOptionsForm.js +3 -3
  124. package/src/View/AdaptableWizardView/Wizard.js +2 -2
  125. package/src/View/CalculatedColumn/CalculatedColumnSummary.d.ts +0 -1
  126. package/src/View/CalculatedColumn/CalculatedColumnSummary.js +1 -8
  127. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingsTags.d.ts +2 -0
  128. package/src/View/CalculatedColumn/Utilities/{getCalculatedColumnSettingTags.js → getCalculatedColumnSettingsTags.js} +3 -3
  129. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.d.ts +10 -0
  130. package/src/View/CalculatedColumn/Wizard/CalculatedColumnDefinitionWizardSection.js +80 -0
  131. package/src/View/CalculatedColumn/Wizard/CalculatedColumnExpressionWizardSection.js +24 -14
  132. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.d.ts +1 -2
  133. package/src/View/CalculatedColumn/Wizard/CalculatedColumnSettingsWizardSection.js +9 -52
  134. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +17 -6
  135. package/src/View/Components/AdaptableObjectCollection/index.d.ts +3 -4
  136. package/src/View/Components/AdaptableObjectCollection/index.js +7 -8
  137. package/src/View/Components/AdaptableObjectList/AdaptableObjectCompactList.js +42 -6
  138. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +1 -1
  139. package/src/View/Components/AdaptableObjectRow/index.js +1 -4
  140. package/src/View/Components/EntityRulesEditor/index.js +28 -7
  141. package/src/View/Components/FilterForm/FilterForm.js +8 -4
  142. package/src/View/Components/FilterForm/ListBoxFilterForm.js +1 -0
  143. package/src/View/Components/FilterForm/QuickFilterForm.js +19 -7
  144. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.d.ts +9 -0
  145. package/src/View/Components/PermittedValuesSelector/PermitedValuesSelector.js +28 -0
  146. package/src/View/Components/PermittedValuesSelector/index.d.ts +1 -0
  147. package/src/View/Components/PermittedValuesSelector/index.js +5 -0
  148. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +2 -2
  149. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.d.ts +1 -0
  150. package/src/View/Components/Popups/AdaptablePopup/PopupPanel.js +2 -1
  151. package/src/View/Components/Popups/AdaptableToaster.js +2 -7
  152. package/src/View/Components/Popups/WindowPopups/windowFactory.d.ts +0 -1
  153. package/src/View/Components/Popups/WindowPopups/windowFactory.js +1 -4
  154. package/src/View/Components/ValueSelector/index.js +8 -19
  155. package/src/View/CustomSort/CustomSortSummary.js +1 -1
  156. package/src/View/Dashboard/DashboardPopup.js +11 -10
  157. package/src/View/Export/ExportViewPanel.d.ts +1 -2
  158. package/src/View/Export/ExportViewPanel.js +4 -8
  159. package/src/View/Export/Wizard/ReportColumnTypeWizard.d.ts +1 -2
  160. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +11 -12
  161. package/src/View/Export/Wizard/ReportRowTypeWizard.d.ts +1 -2
  162. package/src/View/Export/Wizard/ReportRowTypeWizard.js +12 -13
  163. package/src/View/Export/Wizard/ReportRowsWizardSection.js +4 -3
  164. package/src/View/Export/Wizard/ReportSettingsWizard.js +1 -2
  165. package/src/View/Filter/FilterViewPanel.js +21 -4
  166. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +1 -1
  167. package/src/View/GridInfo/AdaptableObjectsSummary.js +5 -3
  168. package/src/View/GridInfo/AdaptableOptionsComponent.js +1 -1
  169. package/src/View/GridInfo/GridInfoPopup.js +6 -7
  170. package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.d.ts +0 -0
  171. package/src/View/Layout/Wizard/{LayoutEditor → Components}/ColumnLabels.js +0 -0
  172. package/src/View/Layout/Wizard/LayoutWizard.js +1 -0
  173. package/src/View/Layout/Wizard/sections/AggregationsSection.d.ts +1 -0
  174. package/src/View/Layout/Wizard/sections/AggregationsSection.js +69 -8
  175. package/src/View/Layout/Wizard/sections/ColumnsSection.js +1 -1
  176. package/src/View/Query/QueryViewPanel.js +1 -1
  177. package/src/View/Query/Wizard/NamedQueryExpressionWizardSection.js +3 -4
  178. package/src/View/StateManagement/StateManagementPopup.js +18 -19
  179. package/src/agGrid/Adaptable.d.ts +12 -3
  180. package/src/agGrid/Adaptable.js +264 -148
  181. package/src/agGrid/agGridHelper.d.ts +1 -0
  182. package/src/agGrid/agGridHelper.js +5 -3
  183. package/src/agGrid/agGridMenuHelper.d.ts +1 -0
  184. package/src/agGrid/agGridMenuHelper.js +4 -2
  185. package/src/agGrid/weightedAverage.d.ts +6 -0
  186. package/src/agGrid/weightedAverage.js +66 -0
  187. package/src/bundle-dependencies/bundles/react-toastify/index.js +1 -1
  188. package/src/components/DragAndDropContext/ModuleManager.js +3 -4
  189. package/src/components/DragAndDropContext/TabList.js +9 -30
  190. package/src/components/DragAndDropContext/UnusedPanel.js +1 -7
  191. package/src/components/DropdownButton/index.js +2 -2
  192. package/src/components/EmptyContent/index.js +2 -2
  193. package/src/components/ExpressionEditor/BaseEditorInput.d.ts +1 -0
  194. package/src/components/ExpressionEditor/BaseEditorInput.js +3 -3
  195. package/src/components/ExpressionEditor/EditorInput.d.ts +1 -1
  196. package/src/components/ExpressionEditor/EditorInput.js +24 -4
  197. package/src/components/ExpressionEditor/{EditorInputReactive.d.ts → EditorInputWithWhereClause.d.ts} +3 -3
  198. package/src/components/ExpressionEditor/{EditorInputReactive.js → EditorInputWithWhereClause.js} +6 -5
  199. package/src/components/ExpressionEditor/editorButtonsAggregatedBoolean.d.ts +2 -0
  200. package/src/components/ExpressionEditor/{editorButtonsReactive.js → editorButtonsAggregatedBoolean.js} +22 -37
  201. package/src/components/ExpressionEditor/editorButtonsAggregatedScalar.js +5 -10
  202. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.d.ts +2 -0
  203. package/src/components/ExpressionEditor/editorButtonsCumulativeAggregatedScalar.js +50 -0
  204. package/src/components/ExpressionEditor/editorButtonsObservable.d.ts +2 -0
  205. package/src/components/ExpressionEditor/editorButtonsObservable.js +40 -0
  206. package/src/components/ExpressionEditor/index.d.ts +1 -1
  207. package/src/components/ExpressionEditor/index.js +50 -19
  208. package/src/metamodel/adaptable.metamodel.d.ts +86 -5
  209. package/src/metamodel/adaptable.metamodel.js +1 -1
  210. package/src/parser/src/types.d.ts +14 -10
  211. package/src/types.d.ts +4 -4
  212. package/version.d.ts +1 -1
  213. package/version.js +1 -1
  214. package/src/View/CalculatedColumn/Utilities/getCalculatedColumnSettingTags.d.ts +0 -2
  215. package/src/View/Layout/LayoutEditorStandalonePopup.d.ts +0 -3
  216. package/src/View/Layout/LayoutEditorStandalonePopup.js +0 -78
  217. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.d.ts +0 -27
  218. package/src/View/Layout/Wizard/LayoutEditor/ColumnList.js +0 -86
  219. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.d.ts +0 -16
  220. package/src/View/Layout/Wizard/LayoutEditor/ColumnSortList.js +0 -89
  221. package/src/View/Layout/Wizard/LayoutEditor/PivotList.d.ts +0 -15
  222. package/src/View/Layout/Wizard/LayoutEditor/PivotList.js +0 -70
  223. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.d.ts +0 -15
  224. package/src/View/Layout/Wizard/LayoutEditor/RowGroupsList.js +0 -70
  225. package/src/View/Layout/Wizard/LayoutEditor/droppableIds.d.ts +0 -7
  226. package/src/View/Layout/Wizard/LayoutEditor/droppableIds.js +0 -11
  227. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.d.ts +0 -6
  228. package/src/View/Layout/Wizard/LayoutEditor/getItemStyle.js +0 -26
  229. package/src/View/Layout/Wizard/LayoutEditor/index.d.ts +0 -9
  230. package/src/View/Layout/Wizard/LayoutEditor/index.js +0 -367
  231. package/src/View/Layout/Wizard/LayoutEditor/reducer.d.ts +0 -28
  232. package/src/View/Layout/Wizard/LayoutEditor/reducer.js +0 -46
  233. package/src/View/Layout/Wizard/LayoutEditor/utils.d.ts +0 -10
  234. package/src/View/Layout/Wizard/LayoutEditor/utils.js +0 -14
  235. package/src/View/Layout/Wizard/LayoutEditorWizard.d.ts +0 -30
  236. package/src/View/Layout/Wizard/LayoutEditorWizard.js +0 -132
  237. package/src/components/ExpressionEditor/editorButtonsReactive.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { ScreenPopup, AlertPopup, ConfirmationPopup, PromptPopup, LoadingPopup, WindowPopup, FormPopup } from '../Utilities/Interface/MessagePopups';
1
+ import { ScreenPopup, ConfirmationPopup, PromptPopup, LoadingPopup, WindowPopup, FormPopup } from '../Utilities/Interface/MessagePopups';
2
2
  import { InternalState } from './InternalState';
3
3
  /**
4
4
  * Internal state to manage open popups - NOT persisted by Redux
@@ -7,7 +7,6 @@ export interface PopupState extends InternalState {
7
7
  ScreenPopup: ScreenPopup;
8
8
  WindowPopup: WindowPopup;
9
9
  FormPopup: FormPopup;
10
- AlertPopup: AlertPopup;
11
10
  ConfirmationPopup: ConfirmationPopup;
12
11
  PromptPopup: PromptPopup;
13
12
  LoadingPopup: LoadingPopup;
@@ -17,7 +17,7 @@ export declare const ALERT_DEFINITION_DELETE = "ALERT_DEFINITION_DELETE";
17
17
  */
18
18
  export declare const ALERT_DEFINITION_SUSPEND = "ALERT_DEFINITION_SUSPEND";
19
19
  /**
20
- * @ReduxAction Alert Definition is un-suspended, or activated
20
+ * @ReduxAction Alert Definition is unsuspended, or activated
21
21
  */
22
22
  export declare const ALERT_DEFINITION_UNSUSPEND = "ALERT_DEFINITION_UNSUSPEND";
23
23
  export declare const ALERT_CLEAR_FLASHING_CELLS = "ALERT_CLEAR_FLASHING_CELLS";
@@ -22,7 +22,7 @@ exports.ALERT_DEFINITION_DELETE = 'ALERT_DEFINITION_DELETE';
22
22
  */
23
23
  exports.ALERT_DEFINITION_SUSPEND = 'ALERT_DEFINITION_SUSPEND';
24
24
  /**
25
- * @ReduxAction Alert Definition is un-suspended, or activated
25
+ * @ReduxAction Alert Definition is unsuspended, or activated
26
26
  */
27
27
  exports.ALERT_DEFINITION_UNSUSPEND = 'ALERT_DEFINITION_UNSUSPEND';
28
28
  exports.ALERT_CLEAR_FLASHING_CELLS = 'ALERT_CLEAR_FLASHING_CELLS';
@@ -21,7 +21,7 @@ export declare const CONDITIONAL_STYLE_READY = "CONDITIONAL_STYLE_READY";
21
21
  */
22
22
  export declare const CONDITIONAL_STYLE_SUSPEND = "CONDITIONAL_STYLE_SUSPEND";
23
23
  /**
24
- * @ReduxAction Conditional Style is un-suspended, or activated
24
+ * @ReduxAction Conditional Style is unsuspended, or activated
25
25
  */
26
26
  export declare const CONDITIONAL_STYLE_UNSUSPEND = "CONDITIONAL_STYLE_UNSUSPEND";
27
27
  export interface ConditionalStyleAction extends Redux.Action {
@@ -26,7 +26,7 @@ exports.CONDITIONAL_STYLE_READY = 'CONDITIONAL_STYLE_READY';
26
26
  */
27
27
  exports.CONDITIONAL_STYLE_SUSPEND = 'CONDITIONAL_STYLE_SUSPEND';
28
28
  /**
29
- * @ReduxAction Conditional Style is un-suspended, or activated
29
+ * @ReduxAction Conditional Style is unsuspended, or activated
30
30
  */
31
31
  exports.CONDITIONAL_STYLE_UNSUSPEND = 'CONDITIONAL_STYLE_UNSUSPEND';
32
32
  const ConditionalStyleAdd = (conditionalStyle) => ({
@@ -17,7 +17,7 @@ export declare const CUSTOM_SORT_DELETE = "CUSTOM_SORT_DELETE";
17
17
  */
18
18
  export declare const CUSTOM_SORT_SUSPEND = "CUSTOM_SORT_SUSPEND";
19
19
  /**
20
- * @ReduxAction A Custom Sort has been un-suspended (activated)
20
+ * @ReduxAction A Custom Sort has been unsuspended (activated)
21
21
  */
22
22
  export declare const CUSTOM_SORT_UNSUSPEND = "CUSTOM_SORT_UNSUSPEND";
23
23
  /**
@@ -22,7 +22,7 @@ exports.CUSTOM_SORT_DELETE = 'CUSTOM_SORT_DELETE';
22
22
  */
23
23
  exports.CUSTOM_SORT_SUSPEND = 'CUSTOM_SORT_SUSPEND';
24
24
  /**
25
- * @ReduxAction A Custom Sort has been un-suspended (activated)
25
+ * @ReduxAction A Custom Sort has been unsuspended (activated)
26
26
  */
27
27
  exports.CUSTOM_SORT_UNSUSPEND = 'CUSTOM_SORT_UNSUSPEND';
28
28
  /**
@@ -18,7 +18,7 @@ export declare const FLASHING_CELL_DEFINITION_DELETE = "FLASHING_CELL_DEFINITION
18
18
  */
19
19
  export declare const FLASHING_CELL_DEFINITION_SUSPEND = "FLASHING_CELL_DEFINITION_SUSPEND";
20
20
  /**
21
- * @ReduxAction Flashing Cell Definition is un-suspended, or activated
21
+ * @ReduxAction Flashing Cell Definition is unsuspended, or activated
22
22
  */
23
23
  export declare const FLASHING_CELL_DEFINITION_UNSUSPEND = "FLASHING_CELL_DEFINITION_UNSUSPEND";
24
24
  /**
@@ -21,7 +21,7 @@ exports.FLASHING_CELL_DEFINITION_DELETE = 'FLASHING_CELL_DEFINITION_DELETE';
21
21
  */
22
22
  exports.FLASHING_CELL_DEFINITION_SUSPEND = 'FLASHING_CELL_DEFINITION_SUSPEND';
23
23
  /**
24
- * @ReduxAction Flashing Cell Definition is un-suspended, or activated
24
+ * @ReduxAction Flashing Cell Definition is unsuspended, or activated
25
25
  */
26
26
  exports.FLASHING_CELL_DEFINITION_UNSUSPEND = 'FLASHING_CELL_DEFINITION_UNSUSPEND';
27
27
  /**
@@ -21,7 +21,7 @@ export declare const FORMAT_COLUMN_READY = "FORMAT_COLUMN_READY";
21
21
  */
22
22
  export declare const FORMAT_COLUMN_SUSPEND = "FORMAT_COLUMN_SUSPEND";
23
23
  /**
24
- * @ReduxAction FormatColumn Module is un-suspended, or activated
24
+ * @ReduxAction FormatColumn Module is unsuspended, or activated
25
25
  */
26
26
  export declare const FORMAT_COLUMN_UNSUSPEND = "FORMAT_COLUMN_UNSUSPEND";
27
27
  export interface FormatColumnAction extends Redux.Action {
@@ -26,7 +26,7 @@ exports.FORMAT_COLUMN_READY = 'FORMAT_COLUMN_READY';
26
26
  */
27
27
  exports.FORMAT_COLUMN_SUSPEND = 'FORMAT_COLUMN_SUSPEND';
28
28
  /**
29
- * @ReduxAction FormatColumn Module is un-suspended, or activated
29
+ * @ReduxAction FormatColumn Module is unsuspended, or activated
30
30
  */
31
31
  exports.FORMAT_COLUMN_UNSUSPEND = 'FORMAT_COLUMN_UNSUSPEND';
32
32
  const FormatColumnAdd = (formatColumn) => ({
@@ -46,6 +46,22 @@ export declare const LAYOUT_COLUMN_FILTER_CLEAR_ALL = "LAYOUT_COLUMN_FILTER_CLEA
46
46
  * @ReduxAction A Column Filter has been cleared
47
47
  */
48
48
  export declare const LAYOUT_COLUMN_FILTER_CLEAR = "LAYOUT_COLUMN_FILTER_CLEAR";
49
+ /**
50
+ * @ReduxAction Filter is suspended
51
+ */
52
+ export declare const LAYOUT_COLUMN_FILTER_SUSPEND = "LAYOUT_COLUMN_FILTER_SUSPEND";
53
+ /**
54
+ * @ReduxAction Filter is un-suspended, or activated
55
+ */
56
+ export declare const LAYOUT_COLUMN_FILTER_UNSUSPEND = "LAYOUT_COLUMN_FILTER_UNSUSPEND";
57
+ /**
58
+ * @ReduxAction Filter is suspended
59
+ */
60
+ export declare const LAYOUT_COLUMN_FILTER_SUSPEND_ALL = "LAYOUT_COLUMN_FILTER_SUSPEND_ALL";
61
+ /**
62
+ * @ReduxAction Filter is un-suspended, or activated
63
+ */
64
+ export declare const LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = "LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL";
49
65
  export interface LayoutColumnFilterAction extends Redux.Action {
50
66
  columnFilter: ColumnFilter;
51
67
  }
@@ -59,11 +75,23 @@ export interface LayoutColumnFilterClearAction extends LayoutColumnFilterAction
59
75
  }
60
76
  export interface LayoutColumnFilterClearAllAction extends Redux.Action {
61
77
  }
78
+ export interface LayoutColumnFilterSuspendAction extends LayoutColumnFilterAction {
79
+ }
80
+ export interface LayoutColumnFilterSuspendAllAction extends Redux.Action {
81
+ }
82
+ export interface LayoutColumnFilterUnSuspendAction extends LayoutColumnFilterAction {
83
+ }
84
+ export interface LayoutColumnFilterUnSuspendAllAction extends Redux.Action {
85
+ }
62
86
  export declare const LayoutColumnFilterAdd: (columnFilter: ColumnFilter) => LayoutColumnFilterAddAction;
63
87
  export declare const LayoutColumnFilterEdit: (columnFilter: ColumnFilter) => LayoutColumnFilterEditAction;
64
88
  export declare const LayoutColumnFilterSet: (columnFilter: ColumnFilter) => LayoutColumnFilterSetAction;
65
89
  export declare const LayoutColumnFilterClearAll: () => LayoutColumnFilterClearAllAction;
66
90
  export declare const LayoutColumnFilterClear: (columnFilter: ColumnFilter) => LayoutColumnFilterClearAction;
91
+ export declare const LayoutColumnFilterSuspend: (columnFilter: ColumnFilter) => LayoutColumnFilterSuspendAction;
92
+ export declare const LayoutColumnFilterUnSuspend: (columnFilter: ColumnFilter) => LayoutColumnFilterUnSuspendAction;
93
+ export declare const LayoutColumnFilterSuspendAll: () => LayoutColumnFilterSuspendAllAction;
94
+ export declare const LayoutColumnFilterUnSuspendAll: () => LayoutColumnFilterUnSuspendAllAction;
67
95
  /**
68
96
  * @ReduxAction A new caption / header has been set for a Column in the Layout
69
97
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutSelect = exports.LayoutRemoveColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
3
+ exports.LayoutReducer = exports.getColumnFilterSelector = exports.LayoutReady = exports.LayoutSelect = exports.LayoutRemoveColumn = exports.LayoutSetColumnCaption = exports.LayoutSave = exports.LayoutDelete = exports.LayoutAdd = exports.LAYOUT_READY = exports.LAYOUT_SET_COLUMN_CAPTION = exports.LayoutColumnFilterUnSuspendAll = exports.LayoutColumnFilterSuspendAll = exports.LayoutColumnFilterUnSuspend = exports.LayoutColumnFilterSuspend = exports.LayoutColumnFilterClear = exports.LayoutColumnFilterClearAll = exports.LayoutColumnFilterSet = exports.LayoutColumnFilterEdit = exports.LayoutColumnFilterAdd = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL = exports.LAYOUT_COLUMN_FILTER_UNSUSPEND = exports.LAYOUT_COLUMN_FILTER_SUSPEND = exports.LAYOUT_COLUMN_FILTER_CLEAR = exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = exports.LAYOUT_COLUMN_FILTER_SET = exports.LAYOUT_COLUMN_FILTER_EDIT = exports.LAYOUT_COLUMN_FILTER_ADD = exports.LAYOUT_REMOVE_COLUMN = exports.LAYOUT_SAVE = exports.LAYOUT_SELECT = exports.LAYOUT_DELETE = exports.LAYOUT_EDIT = exports.LAYOUT_ADD = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
6
6
  const AdaptableHelper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/AdaptableHelper"));
@@ -48,6 +48,22 @@ exports.LAYOUT_COLUMN_FILTER_CLEAR_ALL = 'LAYOUT_COLUMN_FILTER_CLEAR_ALL';
48
48
  * @ReduxAction A Column Filter has been cleared
49
49
  */
50
50
  exports.LAYOUT_COLUMN_FILTER_CLEAR = 'LAYOUT_COLUMN_FILTER_CLEAR';
51
+ /**
52
+ * @ReduxAction Filter is suspended
53
+ */
54
+ exports.LAYOUT_COLUMN_FILTER_SUSPEND = 'LAYOUT_COLUMN_FILTER_SUSPEND';
55
+ /**
56
+ * @ReduxAction Filter is un-suspended, or activated
57
+ */
58
+ exports.LAYOUT_COLUMN_FILTER_UNSUSPEND = 'LAYOUT_COLUMN_FILTER_UNSUSPEND';
59
+ /**
60
+ * @ReduxAction Filter is suspended
61
+ */
62
+ exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL = 'LAYOUT_COLUMN_FILTER_SUSPEND_ALL';
63
+ /**
64
+ * @ReduxAction Filter is un-suspended, or activated
65
+ */
66
+ exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL = 'LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL';
51
67
  // Column Filter Methods
52
68
  const LayoutColumnFilterAdd = (columnFilter) => ({
53
69
  type: exports.LAYOUT_COLUMN_FILTER_ADD,
@@ -73,6 +89,24 @@ const LayoutColumnFilterClear = (columnFilter) => ({
73
89
  columnFilter,
74
90
  });
75
91
  exports.LayoutColumnFilterClear = LayoutColumnFilterClear;
92
+ const LayoutColumnFilterSuspend = (columnFilter) => ({
93
+ type: exports.LAYOUT_COLUMN_FILTER_SUSPEND,
94
+ columnFilter,
95
+ });
96
+ exports.LayoutColumnFilterSuspend = LayoutColumnFilterSuspend;
97
+ const LayoutColumnFilterUnSuspend = (columnFilter) => ({
98
+ type: exports.LAYOUT_COLUMN_FILTER_UNSUSPEND,
99
+ columnFilter,
100
+ });
101
+ exports.LayoutColumnFilterUnSuspend = LayoutColumnFilterUnSuspend;
102
+ const LayoutColumnFilterSuspendAll = () => ({
103
+ type: exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL,
104
+ });
105
+ exports.LayoutColumnFilterSuspendAll = LayoutColumnFilterSuspendAll;
106
+ const LayoutColumnFilterUnSuspendAll = () => ({
107
+ type: exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL,
108
+ });
109
+ exports.LayoutColumnFilterUnSuspendAll = LayoutColumnFilterUnSuspendAll;
76
110
  /**
77
111
  * @ReduxAction A new caption / header has been set for a Column in the Layout
78
112
  */
@@ -133,7 +167,7 @@ const initialState = {
133
167
  Layouts: GeneralConstants_1.EMPTY_ARRAY,
134
168
  };
135
169
  const LayoutReducer = (state = initialState, action) => {
136
- var _a, _b, _c, _d;
170
+ var _a, _b, _c, _d, _e, _f, _g, _h;
137
171
  let layouts;
138
172
  const currentLayout = state.Layouts.find((layout) => layout.Name === state.CurrentLayout);
139
173
  switch (action.type) {
@@ -256,6 +290,50 @@ const LayoutReducer = (state = initialState, action) => {
256
290
  });
257
291
  return Object.assign(Object.assign({}, state), { Layouts });
258
292
  }
293
+ case exports.LAYOUT_COLUMN_FILTER_SUSPEND: {
294
+ const actionTypedSuspend = action;
295
+ const columnFilters = ((_e = currentLayout.ColumnFilters) !== null && _e !== void 0 ? _e : []).map((abObject) => abObject.Uuid === actionTypedSuspend.columnFilter.Uuid
296
+ ? Object.assign(Object.assign({}, abObject), { IsSuspended: true }) : abObject);
297
+ const Layouts = state.Layouts.map((layout) => {
298
+ if (layout.Name === currentLayout.Name) {
299
+ return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
300
+ }
301
+ return layout;
302
+ });
303
+ return Object.assign(Object.assign({}, state), { Layouts });
304
+ }
305
+ case exports.LAYOUT_COLUMN_FILTER_UNSUSPEND: {
306
+ const actionTypedSuspend = action;
307
+ const columnFilters = ((_f = currentLayout.ColumnFilters) !== null && _f !== void 0 ? _f : []).map((abObject) => abObject.Uuid === actionTypedSuspend.columnFilter.Uuid
308
+ ? Object.assign(Object.assign({}, abObject), { IsSuspended: false }) : abObject);
309
+ const Layouts = state.Layouts.map((layout) => {
310
+ if (layout.Name === currentLayout.Name) {
311
+ return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
312
+ }
313
+ return layout;
314
+ });
315
+ return Object.assign(Object.assign({}, state), { Layouts });
316
+ }
317
+ case exports.LAYOUT_COLUMN_FILTER_SUSPEND_ALL: {
318
+ const columnFilters = ((_g = currentLayout.ColumnFilters) !== null && _g !== void 0 ? _g : []).map((abObject) => (Object.assign(Object.assign({}, abObject), { IsSuspended: true })));
319
+ const Layouts = state.Layouts.map((layout) => {
320
+ if (layout.Name === currentLayout.Name) {
321
+ return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
322
+ }
323
+ return layout;
324
+ });
325
+ return Object.assign(Object.assign({}, state), { Layouts });
326
+ }
327
+ case exports.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
328
+ const columnFilters = ((_h = currentLayout.ColumnFilters) !== null && _h !== void 0 ? _h : []).map((abObject) => (Object.assign(Object.assign({}, abObject), { IsSuspended: false })));
329
+ const Layouts = state.Layouts.map((layout) => {
330
+ if (layout.Name === currentLayout.Name) {
331
+ return Object.assign(Object.assign({}, layout), { ColumnFilters: columnFilters });
332
+ }
333
+ return layout;
334
+ });
335
+ return Object.assign(Object.assign({}, state), { Layouts });
336
+ }
259
337
  default:
260
338
  return state;
261
339
  }
@@ -22,7 +22,7 @@ export declare const PLUS_MINUS_RULE_DELETE = "PLUS_MINUS_RULE_DELETE";
22
22
  */
23
23
  export declare const PLUS_MINUS_RULE_SUSPEND = "PLUS_MINUS_RULE_SUSPEND";
24
24
  /**
25
- * @ReduxAction A Plus Minus Rule has been un-suspended
25
+ * @ReduxAction A Plus Minus Rule has been unsuspended
26
26
  */
27
27
  export declare const PLUS_MINUS_RULE_UNSUSPEND = "PLUS_MINUS_RULE_UNSUSPEND";
28
28
  /**
@@ -26,7 +26,7 @@ exports.PLUS_MINUS_RULE_DELETE = 'PLUS_MINUS_RULE_DELETE';
26
26
  */
27
27
  exports.PLUS_MINUS_RULE_SUSPEND = 'PLUS_MINUS_RULE_SUSPEND';
28
28
  /**
29
- * @ReduxAction A Plus Minus Rule has been un-suspended
29
+ * @ReduxAction A Plus Minus Rule has been unsuspended
30
30
  */
31
31
  exports.PLUS_MINUS_RULE_UNSUSPEND = 'PLUS_MINUS_RULE_UNSUSPEND';
32
32
  /**
@@ -11,7 +11,6 @@ export declare const POPUP_HIDE_SCREEN = "POPUP_HIDE_SCREEN";
11
11
  export declare const POPUP_SHOW_LOADING = "POPUP_SHOW_LOADING";
12
12
  export declare const POPUP_HIDE_LOADING = "POPUP_HIDE_LOADING";
13
13
  export declare const POPUP_SHOW_ALERT = "POPUP_SHOW_ALERT";
14
- export declare const POPUP_HIDE_ALERT = "POPUP_HIDE_ALERT";
15
14
  export declare const POPUP_SHOW_PROMPT = "POPUP_SHOW_PROMPT";
16
15
  export declare const POPUP_HIDE_PROMPT = "POPUP_HIDE_PROMPT";
17
16
  export declare const POPUP_CONFIRM_PROMPT = "POPUP_CONFIRM_PROMPT";
@@ -96,7 +95,6 @@ export declare const PopupShowForm: (config: {
96
95
  }) => PopupShowFormAction;
97
96
  export declare const PopupHideForm: (id: string) => PopupHideFormAction;
98
97
  export declare const PopupShowAlert: (alert: AdaptableAlert) => PopupShowAlertAction;
99
- export declare const PopupHideAlert: () => PopupHideAlertAction;
100
98
  export declare const PopupShowLoading: () => PopupShowLoadingAction;
101
99
  export declare const PopupHideLoading: () => PopupHideLoadingAction;
102
100
  export declare const PopupShowPrompt: (prompt: UIPrompt) => PopupShowPromptAction;
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PopupReducer = exports.PopupClearParam = exports.PopupCancelConfirmation = exports.PopupConfirmConfirmation = exports.PopupShowConfirmation = exports.PopupConfirmPrompt = exports.PopupHidePrompt = exports.PopupShowPrompt = exports.PopupHideLoading = exports.PopupShowLoading = exports.PopupHideAlert = exports.PopupShowAlert = exports.PopupHideForm = exports.PopupShowForm = exports.PopupHideWindow = exports.PopupShowWindow = exports.PopupHideScreen = exports.PopupShowScreen = exports.POPUP_HIDE_FORM = exports.POPUP_SHOW_FORM = exports.POPUP_HIDE_WINDOW = exports.POPUP_SHOW_WINDOW = exports.POPUP_CLEAR_PARAM = exports.POPUP_CANCEL_CONFIRMATION = exports.POPUP_CONFIRM_CONFIRMATION = exports.POPUP_SHOW_CONFIRMATION = exports.POPUP_CONFIRM_PROMPT = exports.POPUP_HIDE_PROMPT = exports.POPUP_SHOW_PROMPT = exports.POPUP_HIDE_ALERT = exports.POPUP_SHOW_ALERT = exports.POPUP_HIDE_LOADING = exports.POPUP_SHOW_LOADING = exports.POPUP_HIDE_SCREEN = exports.POPUP_SHOW_SCREEN = void 0;
3
+ exports.PopupReducer = exports.PopupClearParam = exports.PopupCancelConfirmation = exports.PopupConfirmConfirmation = exports.PopupShowConfirmation = exports.PopupConfirmPrompt = exports.PopupHidePrompt = exports.PopupShowPrompt = exports.PopupHideLoading = exports.PopupShowLoading = exports.PopupShowAlert = exports.PopupHideForm = exports.PopupShowForm = exports.PopupHideWindow = exports.PopupShowWindow = exports.PopupHideScreen = exports.PopupShowScreen = exports.POPUP_HIDE_FORM = exports.POPUP_SHOW_FORM = exports.POPUP_HIDE_WINDOW = exports.POPUP_SHOW_WINDOW = exports.POPUP_CLEAR_PARAM = exports.POPUP_CANCEL_CONFIRMATION = exports.POPUP_CONFIRM_CONFIRMATION = exports.POPUP_SHOW_CONFIRMATION = exports.POPUP_CONFIRM_PROMPT = exports.POPUP_HIDE_PROMPT = exports.POPUP_SHOW_PROMPT = exports.POPUP_SHOW_ALERT = exports.POPUP_HIDE_LOADING = exports.POPUP_SHOW_LOADING = exports.POPUP_HIDE_SCREEN = exports.POPUP_SHOW_SCREEN = void 0;
4
4
  exports.POPUP_SHOW_SCREEN = 'POPUP_SHOW_SCREEN';
5
5
  exports.POPUP_HIDE_SCREEN = 'POPUP_HIDE_SCREEN';
6
6
  exports.POPUP_SHOW_LOADING = 'POPUP_SHOW_LOADING';
7
7
  exports.POPUP_HIDE_LOADING = 'POPUP_HIDE_LOADING';
8
8
  exports.POPUP_SHOW_ALERT = 'POPUP_SHOW_ALERT';
9
- exports.POPUP_HIDE_ALERT = 'POPUP_HIDE_ALERT';
10
9
  exports.POPUP_SHOW_PROMPT = 'POPUP_SHOW_PROMPT';
11
10
  exports.POPUP_HIDE_PROMPT = 'POPUP_HIDE_PROMPT';
12
11
  exports.POPUP_CONFIRM_PROMPT = 'POPUP_CONFIRM_PROMPT';
@@ -63,10 +62,6 @@ const PopupShowAlert = (alert) => {
63
62
  };
64
63
  };
65
64
  exports.PopupShowAlert = PopupShowAlert;
66
- const PopupHideAlert = () => ({
67
- type: exports.POPUP_HIDE_ALERT,
68
- });
69
- exports.PopupHideAlert = PopupHideAlert;
70
65
  const PopupShowLoading = () => ({
71
66
  type: exports.POPUP_SHOW_LOADING,
72
67
  });
@@ -75,12 +70,6 @@ const PopupHideLoading = () => ({
75
70
  type: exports.POPUP_HIDE_LOADING,
76
71
  });
77
72
  exports.PopupHideLoading = PopupHideLoading;
78
- //export const PopupShowGridInfo = (): PopupShowGridInfoAction => ({
79
- // type: POPUP_SHOW_GRID_INFO,
80
- //});
81
- //export const PopupHideGridInfo = (): PopupHideGridInfoAction => ({
82
- // type: POPUP_HIDE_GRID_INFO,
83
- //});
84
73
  const PopupShowPrompt = (prompt) => ({
85
74
  type: exports.POPUP_SHOW_PROMPT,
86
75
  prompt: prompt,
@@ -123,9 +112,6 @@ const initialState = {
123
112
  LoadingPopup: {
124
113
  ShowLoadingPopup: true,
125
114
  },
126
- AlertPopup: {
127
- Alert: null,
128
- },
129
115
  ConfirmationPopup: {
130
116
  ShowConfirmationPopup: false,
131
117
  Msg: '',
@@ -261,19 +247,6 @@ const PopupReducer = (state = initialState, action) => {
261
247
  ConfirmationPopup: newConfirmationPopup,
262
248
  });
263
249
  }
264
- case exports.POPUP_SHOW_ALERT: {
265
- let showAlertAction = action;
266
- let newAlertPopup = {
267
- Alert: showAlertAction.alert,
268
- };
269
- return Object.assign({}, state, { AlertPopup: newAlertPopup });
270
- }
271
- case exports.POPUP_HIDE_ALERT: {
272
- let newAlertPopup = {
273
- Alert: null,
274
- };
275
- return Object.assign({}, state, { AlertPopup: newAlertPopup });
276
- }
277
250
  case exports.POPUP_SHOW_LOADING: {
278
251
  let newLoadingPopup = { ShowLoadingPopup: true };
279
252
  return Object.assign({}, state, { LoadingPopup: newLoadingPopup });
@@ -27,7 +27,7 @@ export declare const REPORT_SCHEDULE_DELETE = "REPORT_SCHEDULE_DELETE";
27
27
  */
28
28
  export declare const REPORT_SCHEDULE_SUSPEND = "REPORT_SCHEDULE_SUSPEND";
29
29
  /**
30
- * @ReduxAction A Report Schedule has been un-suspended or activated
30
+ * @ReduxAction A Report Schedule has been unsuspended or activated
31
31
  */
32
32
  export declare const REPORT_SCHEDULE_UNSUSPEND = "REPORT_SCHEDULE_UNSUSPEND";
33
33
  /**
@@ -47,7 +47,7 @@ export declare const REMINDER_SCHEDULE_DELETE = "REMINDER_SCHEDULE_DELETE";
47
47
  */
48
48
  export declare const REMINDER_SCHEDULE_SUSPEND = "REMINDER_SCHEDULE_SUSPEND";
49
49
  /**
50
- * @ReduxAction A Reminder Schedule has been un-suspended or activated
50
+ * @ReduxAction A Reminder Schedule has been unsuspended or activated
51
51
  */
52
52
  export declare const REMINDER_SCHEDULE_UNSUSPEND = "REMINDER_SCHEDULE_UNSUSPEND";
53
53
  /**
@@ -67,7 +67,7 @@ export declare const IPUSHPULL_SCHEDULE_DELETE = "IPUSHPULL_SCHEDULE_DELETE";
67
67
  */
68
68
  export declare const IPUSHPULL_SCHEDULE_SUSPEND = "IPUSHPULL_SCHEDULE_SUSPEND";
69
69
  /**
70
- * @ReduxAction An ipushpull Schedule has been un-suspended or activated
70
+ * @ReduxAction An ipushpull Schedule has been unsuspended or activated
71
71
  */
72
72
  export declare const IPUSHPULL_SCHEDULE_UNSUSPEND = "IPUSHPULL_SCHEDULE_UNSUSPEND";
73
73
  /**
@@ -87,7 +87,7 @@ export declare const GLUE42_SCHEDULE_DELETE = "GLUE42_SCHEDULE_DELETE";
87
87
  */
88
88
  export declare const GLUE42_SCHEDULE_SUSPEND = "GLUE42_SCHEDULE_SUSPEND";
89
89
  /**
90
- * @ReduxAction A Glue42 Schedule has been un-suspended or activated
90
+ * @ReduxAction A Glue42 Schedule has been unsuspended or activated
91
91
  */
92
92
  export declare const GLUE42_SCHEDULE_UNSUSPEND = "GLUE42_SCHEDULE_UNSUSPEND";
93
93
  /**
@@ -107,7 +107,7 @@ export declare const OPENFIN_SCHEDULE_DELETE = "OPENFIN_SCHEDULE_DELETE";
107
107
  */
108
108
  export declare const OPENFIN_SCHEDULE_SUSPEND = "OPENFIN_SCHEDULE_SUSPEND";
109
109
  /**
110
- * @ReduxAction An OpenFin Schedule has been un-suspended or activated
110
+ * @ReduxAction An OpenFin Schedule has been unsuspended or activated
111
111
  */
112
112
  export declare const OPENFIN_SCHEDULE_UNSUSPEND = "OPENFIN_SCHEDULE_UNSUSPEND";
113
113
  /**
@@ -27,7 +27,7 @@ exports.REPORT_SCHEDULE_DELETE = 'REPORT_SCHEDULE_DELETE';
27
27
  */
28
28
  exports.REPORT_SCHEDULE_SUSPEND = 'REPORT_SCHEDULE_SUSPEND';
29
29
  /**
30
- * @ReduxAction A Report Schedule has been un-suspended or activated
30
+ * @ReduxAction A Report Schedule has been unsuspended or activated
31
31
  */
32
32
  exports.REPORT_SCHEDULE_UNSUSPEND = 'REPORT_SCHEDULE_UNSUSPEND';
33
33
  /**
@@ -47,7 +47,7 @@ exports.REMINDER_SCHEDULE_DELETE = 'REMINDER_SCHEDULE_DELETE';
47
47
  */
48
48
  exports.REMINDER_SCHEDULE_SUSPEND = 'REMINDER_SCHEDULE_SUSPEND';
49
49
  /**
50
- * @ReduxAction A Reminder Schedule has been un-suspended or activated
50
+ * @ReduxAction A Reminder Schedule has been unsuspended or activated
51
51
  */
52
52
  exports.REMINDER_SCHEDULE_UNSUSPEND = 'REMINDER_SCHEDULE_UNSUSPEND';
53
53
  /**
@@ -67,7 +67,7 @@ exports.IPUSHPULL_SCHEDULE_DELETE = 'IPUSHPULL_SCHEDULE_DELETE';
67
67
  */
68
68
  exports.IPUSHPULL_SCHEDULE_SUSPEND = 'IPUSHPULL_SCHEDULE_SUSPEND';
69
69
  /**
70
- * @ReduxAction An ipushpull Schedule has been un-suspended or activated
70
+ * @ReduxAction An ipushpull Schedule has been unsuspended or activated
71
71
  */
72
72
  exports.IPUSHPULL_SCHEDULE_UNSUSPEND = 'IPUSHPULL_SCHEDULE_UNSUSPEND';
73
73
  /**
@@ -87,7 +87,7 @@ exports.GLUE42_SCHEDULE_DELETE = 'GLUE42_SCHEDULE_DELETE';
87
87
  */
88
88
  exports.GLUE42_SCHEDULE_SUSPEND = 'GLUE42_SCHEDULE_SUSPEND';
89
89
  /**
90
- * @ReduxAction A Glue42 Schedule has been un-suspended or activated
90
+ * @ReduxAction A Glue42 Schedule has been unsuspended or activated
91
91
  */
92
92
  exports.GLUE42_SCHEDULE_UNSUSPEND = 'GLUE42_SCHEDULE_UNSUSPEND';
93
93
  /**
@@ -107,7 +107,7 @@ exports.OPENFIN_SCHEDULE_DELETE = 'OPENFIN_SCHEDULE_DELETE';
107
107
  */
108
108
  exports.OPENFIN_SCHEDULE_SUSPEND = 'OPENFIN_SCHEDULE_SUSPEND';
109
109
  /**
110
- * @ReduxAction An OpenFin Schedule has been un-suspended or activated
110
+ * @ReduxAction An OpenFin Schedule has been unsuspended or activated
111
111
  */
112
112
  exports.OPENFIN_SCHEDULE_UNSUSPEND = 'OPENFIN_SCHEDULE_UNSUSPEND';
113
113
  /**
@@ -17,7 +17,7 @@ export declare const SHORTCUT_DELETE = "SHORTCUT_DELETE";
17
17
  */
18
18
  export declare const SHORTCUT_SUSPEND = "SHORTCUT_SUSPEND";
19
19
  /**
20
- * @ReduxAction A Shortcut has been un-suspended or activated
20
+ * @ReduxAction A Shortcut has been unsuspended or activated
21
21
  */
22
22
  export declare const SHORTCUT_UNSUSPEND = "SHORTCUT_UNSUSPEND";
23
23
  /**
@@ -22,7 +22,7 @@ exports.SHORTCUT_DELETE = 'SHORTCUT_DELETE';
22
22
  */
23
23
  exports.SHORTCUT_SUSPEND = 'SHORTCUT_SUSPEND';
24
24
  /**
25
- * @ReduxAction A Shortcut has been un-suspended or activated
25
+ * @ReduxAction A Shortcut has been unsuspended or activated
26
26
  */
27
27
  exports.SHORTCUT_UNSUSPEND = 'SHORTCUT_UNSUSPEND';
28
28
  /**
@@ -575,7 +575,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
575
575
  aggregatedCalculatedColumns.forEach((calculatedColumn) => {
576
576
  adaptable.api.internalApi
577
577
  .getCalculatedColumnExpressionService()
578
- .createAggregatedScalarCalculatedColumn(calculatedColumn);
578
+ .createAggregatedScalarLiveValue(calculatedColumn);
579
579
  });
580
580
  // refresh calculated columns
581
581
  const aggCalculatedColumnIds = aggregatedCalculatedColumns.map((calculatedColumn) => calculatedColumn.ColumnId);
@@ -596,7 +596,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
596
596
  returnAction.type === CalculatedColumnRedux.CALCULATED_COLUMN_EDIT) {
597
597
  adaptable.api.internalApi
598
598
  .getCalculatedColumnExpressionService()
599
- .createAggregatedScalarCalculatedColumn(returnAction.calculatedColumn);
599
+ .createAggregatedScalarLiveValue(returnAction.calculatedColumn);
600
600
  }
601
601
  adaptable.updateColDefsForSpecialColumns();
602
602
  return returnAction;
@@ -621,7 +621,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
621
621
  const returnAction = next(actionTyped);
622
622
  adaptable.api.internalApi
623
623
  .getCalculatedColumnExpressionService()
624
- .destroyAggregatedScalarCalculatedColumn(returnAction.calculatedColumn);
624
+ .destroyAggregatedScalarLiveValue(returnAction.calculatedColumn);
625
625
  adaptable.updateColDefsForSpecialColumns();
626
626
  return returnAction;
627
627
  }
@@ -721,7 +721,11 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
721
721
  case LayoutRedux.LAYOUT_COLUMN_FILTER_EDIT:
722
722
  case LayoutRedux.LAYOUT_COLUMN_FILTER_SET:
723
723
  case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR:
724
- case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL: {
724
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_CLEAR_ALL:
725
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND:
726
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_SUSPEND_ALL:
727
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND:
728
+ case LayoutRedux.LAYOUT_COLUMN_FILTER_UNSUSPEND_ALL: {
725
729
  let returnAction;
726
730
  // needs to be called before 'next' so previous and next column filters are known
727
731
  const shouldTriggerGridFiltering = adaptable.api.filterApi.shouldNewColumnFilterTriggerGridFiltering(action);
@@ -868,6 +872,8 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
868
872
  case LayoutRedux.LAYOUT_SET_COLUMN_CAPTION:
869
873
  case LayoutRedux.LAYOUT_SELECT: {
870
874
  const oldLayoutState = middlewareAPI.getState().Layout;
875
+ // this must be called before 'next(action)'
876
+ const previousLayout = adaptable.api.layoutApi.getCurrentLayout();
871
877
  let returnAction = next(action);
872
878
  const newLayoutState = middlewareAPI.getState().Layout;
873
879
  adaptable.api.layoutApi.fireLayoutChangedEvent(action.type, oldLayoutState, newLayoutState);
@@ -906,9 +912,12 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
906
912
  }
907
913
  // when changing current layout via the api, the layout should update
908
914
  if (returnAction.type == LayoutRedux.LAYOUT_SAVE) {
909
- const currentLayout = adaptable.api.layoutApi.getCurrentLayout();
910
915
  const savingLayout = returnAction.layout;
911
- if (currentLayout.Name === savingLayout.Name) {
916
+ if (previousLayout.Name === savingLayout.Name &&
917
+ previousLayout !== savingLayout &&
918
+ // objects may have changed, but have the same contents
919
+ // this prevents pivot layout from infinite set-layout
920
+ !adaptable.api.layoutApi.areLayoutsEqual(previousLayout, savingLayout)) {
912
921
  adaptable.setLayout(savingLayout);
913
922
  }
914
923
  }
@@ -22,6 +22,7 @@ export declare class AlertModule extends AdaptableModuleBase implements IModule
22
22
  private getAlertDefinitionsForCellDataChange;
23
23
  private getAlertDefinitionsForGridDataChange;
24
24
  private getBaseAlertDefinitionsForDataChange;
25
+ private isAggregationAlertTriggered;
25
26
  private isAlertPredicateTriggered;
26
27
  private isAlertDefinitionForRowChangeEvent;
27
28
  getTeamSharingAction(): TeamSharingImportInfo<AlertDefinition>;
@@ -18,6 +18,7 @@ const AlertEmptyView_1 = require("../View/Alert/AlertEmptyView");
18
18
  const AlertStatusSubPanel_1 = require("../View/Alert/AlertStatusSubPanel");
19
19
  const getObjectTagsViewItems_1 = require("./Utilities/getObjectTagsViewItems");
20
20
  const ActiveAlertsPanelItemLabel_1 = require("../View/Alert/ActiveAlertsPanelItemLabel");
21
+ const ModuleConstants_1 = require("../Utilities/Constants/ModuleConstants");
21
22
  class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
22
23
  constructor(api) {
23
24
  super(ModuleConstants.AlertModuleId, ModuleConstants.AlertModuleFriendlyName, 'alert', 'AlertPopup', 'Get notified when things happen in Adaptable that you need to know about', api);
@@ -215,6 +216,14 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
215
216
  triggeredAlerts.push(alertDefinition);
216
217
  }
217
218
  }
219
+ else if (alertDefinition.Rule.AggregatedBooleanExpression) {
220
+ const isValidExpression = this.api.queryLanguageApi.isValidAggregatedBooleanExpression(alertDefinition.Rule.AggregatedBooleanExpression, this.moduleInfo.ModuleName, `Invalid Alert boolean expression '${alertDefinition.Rule.AggregatedBooleanExpression}'`);
221
+ const isSatisfiedExpression = isValidExpression &&
222
+ this.isAggregationAlertTriggered(alertDefinition, dataChangedEvent);
223
+ if (isSatisfiedExpression) {
224
+ triggeredAlerts.push(alertDefinition);
225
+ }
226
+ }
218
227
  else {
219
228
  if (!this.isAlertDefinitionForRowChangeEvent(alertDefinition) &&
220
229
  this.isAlertPredicateTriggered(alertDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
@@ -225,6 +234,17 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
225
234
  }
226
235
  return triggeredAlerts;
227
236
  }
237
+ isAggregationAlertTriggered(alertDefinition, dataChangedEvent) {
238
+ const changedColumn = dataChangedEvent.column.columnId;
239
+ const aggregationColumns = this.api.queryLanguageApi.getColumnsFromExpression(alertDefinition.Rule.AggregatedBooleanExpression);
240
+ if (!aggregationColumns.includes(changedColumn)) {
241
+ return false;
242
+ }
243
+ const aggregatedBooleanValue = this.api.internalApi
244
+ .getQueryLanguageService()
245
+ .computeAggregatedBooleanValue(alertDefinition.Rule.AggregatedBooleanExpression, ModuleConstants_1.AlertModuleId);
246
+ return aggregatedBooleanValue;
247
+ }
228
248
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
229
249
  return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
230
250
  value: dataChangedEvent.newValue,
@@ -1,5 +1,5 @@
1
1
  import { AdaptableModuleBase } from './AdaptableModuleBase';
2
- import { IBulkUpdateModule, BulkUpdateValidationResult } from './Interface/IBulkUpdateModule';
2
+ import { BulkUpdateValidationResult, IBulkUpdateModule } from './Interface/IBulkUpdateModule';
3
3
  import { PreviewInfo } from '../Utilities/Interface/Preview';
4
4
  import { AdaptableMenuItem, ContextMenuContext } from '../PredefinedConfig/Common/Menu';
5
5
  import { AccessLevel, AdaptableApi } from '../types';