@adaptabletools/adaptable 11.0.0-canary.1 → 11.0.0-canary.5

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 (210) hide show
  1. package/base.css +138 -68
  2. package/bundle.cjs.js +97 -93
  3. package/index.css +140 -68
  4. package/package.json +33 -33
  5. package/publishTimestamp.d.ts +1 -1
  6. package/publishTimestamp.js +1 -1
  7. package/src/AdaptableInterfaces/AdaptableNoCodeWizard.d.ts +7 -5
  8. package/src/AdaptableOptions/AdaptableFrameworkComponent.d.ts +1 -3
  9. package/src/AdaptableOptions/AdaptableOptions.d.ts +10 -1
  10. package/src/AdaptableOptions/AlertOptions.d.ts +82 -0
  11. package/src/AdaptableOptions/AlertOptions.js +2 -0
  12. package/src/AdaptableOptions/ContainerOptions.d.ts +1 -1
  13. package/src/AdaptableOptions/EntitlementOptions.d.ts +1 -1
  14. package/src/AdaptableOptions/FilterOptions.d.ts +1 -1
  15. package/src/AdaptableOptions/NotificationsOptions.d.ts +1 -78
  16. package/src/AdaptableOptions/QueryLanguageOptions.d.ts +0 -4
  17. package/src/AdaptableOptions/StateOptions.d.ts +2 -1
  18. package/src/AdaptableOptions/TeamSharingOptions.d.ts +2 -2
  19. package/src/AdaptableOptions/ToolPanelOptions.d.ts +0 -3
  20. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +2 -2
  21. package/src/Api/AdaptableApi.d.ts +1 -0
  22. package/src/Api/AlertApi.d.ts +2 -3
  23. package/src/Api/EventApi.d.ts +8 -3
  24. package/src/Api/Events/GridDataChanged.d.ts +4 -2
  25. package/src/Api/Events/SystemStatusMessageDisplayed.d.ts +1 -1
  26. package/src/Api/FreeTextColumnApi.d.ts +0 -12
  27. package/src/Api/GridApi.d.ts +5 -4
  28. package/src/Api/IPushPullApi.d.ts +1 -1
  29. package/src/Api/Implementation/AlertApiImpl.d.ts +1 -2
  30. package/src/Api/Implementation/AlertApiImpl.js +15 -9
  31. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  32. package/src/Api/Implementation/ApiBase.js +3 -0
  33. package/src/Api/Implementation/DashboardApiImpl.js +1 -1
  34. package/src/Api/Implementation/FlashingCellApiImpl.js +2 -4
  35. package/src/Api/Implementation/FreeTextColumnApiImpl.d.ts +0 -5
  36. package/src/Api/Implementation/FreeTextColumnApiImpl.js +0 -9
  37. package/src/Api/Implementation/GridApiImpl.d.ts +5 -4
  38. package/src/Api/Implementation/GridApiImpl.js +4 -0
  39. package/src/Api/Implementation/InternalApiImpl.js +2 -2
  40. package/src/Api/Implementation/LayoutApiImpl.d.ts +2 -0
  41. package/src/Api/Implementation/LayoutApiImpl.js +12 -1
  42. package/src/Api/Implementation/QueryApiImpl.js +4 -1
  43. package/src/Api/Implementation/QueryLanguageApiImpl.js +4 -5
  44. package/src/Api/LayoutApi.d.ts +7 -0
  45. package/src/Api/OpenFinApi.d.ts +5 -0
  46. package/src/Api/PluginsApi.d.ts +29 -0
  47. package/src/Api/UserInterfaceApi.d.ts +5 -2
  48. package/src/PredefinedConfig/AlertState.d.ts +2 -4
  49. package/src/PredefinedConfig/CalculatedColumnState.d.ts +0 -1
  50. package/src/PredefinedConfig/Common/CellHighlightInfo.d.ts +1 -12
  51. package/src/PredefinedConfig/Common/DataChangedInfo.d.ts +1 -1
  52. package/src/PredefinedConfig/Common/FDC3Context.d.ts +4 -12
  53. package/src/PredefinedConfig/Common/RowHighlightInfo.d.ts +15 -0
  54. package/src/PredefinedConfig/Common/RowHighlightInfo.js +2 -0
  55. package/src/PredefinedConfig/Common/Types.d.ts +1 -1
  56. package/src/PredefinedConfig/CustomSortState.d.ts +0 -1
  57. package/src/PredefinedConfig/FlashingCellState.d.ts +5 -2
  58. package/src/PredefinedConfig/FreeTextColumnState.d.ts +1 -1
  59. package/src/PredefinedConfig/LayoutState.d.ts +0 -2
  60. package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -2
  61. package/src/PredefinedConfig/SystemState.d.ts +2 -1
  62. package/src/Redux/ActionsReducers/ApplicationRedux.js +9 -3
  63. package/src/Redux/ActionsReducers/FlashingCellRedux.js +4 -8
  64. package/src/Redux/ActionsReducers/GridRedux.js +3 -1
  65. package/src/Redux/ActionsReducers/PopupRedux.js +13 -3
  66. package/src/Redux/ActionsReducers/QuickSearchRedux.js +3 -1
  67. package/src/Redux/ActionsReducers/SystemRedux.d.ts +6 -5
  68. package/src/Redux/ActionsReducers/SystemRedux.js +16 -14
  69. package/src/Redux/ActionsReducers/ThemeRedux.js +3 -1
  70. package/src/Redux/Store/AdaptableReduxLocalStorageEngine.js +1 -1
  71. package/src/Redux/Store/AdaptableReduxMerger.js +5 -5
  72. package/src/Redux/Store/AdaptableStore.js +18 -6
  73. package/src/Strategy/AlertModule.js +5 -4
  74. package/src/Strategy/ConditionalStyleModule.js +4 -0
  75. package/src/Strategy/DataChangeHistoryModule.js +1 -1
  76. package/src/Strategy/FlashingCellModule.d.ts +1 -1
  77. package/src/Strategy/FlashingCellModule.js +34 -18
  78. package/src/Strategy/FreeTextColumnModule.d.ts +2 -2
  79. package/src/Strategy/FreeTextColumnModule.js +10 -0
  80. package/src/Strategy/LayoutModule.js +1 -6
  81. package/src/Strategy/TeamSharingModule.js +1 -1
  82. package/src/Strategy/ToolPanelModule.js +5 -3
  83. package/src/Strategy/Utilities/getFlashingTargetViewItems.d.ts +1 -1
  84. package/src/Strategy/Utilities/getFlashingTargetViewItems.js +3 -1
  85. package/src/Strategy/Utilities/getFormatColumnSettingsViewItems.js +1 -1
  86. package/src/Strategy/Utilities/getRuleViewItems.d.ts +0 -1
  87. package/src/Strategy/Utilities/getRuleViewItems.js +0 -1
  88. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -4
  89. package/src/Utilities/ExpressionFunctions/aggregationExpressionFunctions.js +1 -1
  90. package/src/Utilities/ExpressionFunctions/dateUtils.d.ts +1 -0
  91. package/src/Utilities/ExpressionFunctions/dateUtils.js +13 -0
  92. package/src/Utilities/ExpressionFunctions/expressionFunctionUtils.js +1 -1
  93. package/src/Utilities/ExpressionFunctions/observableExpressionFunctions.js +2 -3
  94. package/src/Utilities/ExpressionFunctions/scalarExpressionFunctions.js +13 -4
  95. package/src/Utilities/Extensions/StringExtensions.js +1 -1
  96. package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
  97. package/src/Utilities/Helpers/CalendarHelper.js +220 -55
  98. package/src/Utilities/Interface/MessagePopups.d.ts +6 -2
  99. package/src/Utilities/ObjectFactory.js +5 -2
  100. package/src/Utilities/Services/DataService.js +6 -1
  101. package/src/Utilities/Services/LicenseService.js +1 -1
  102. package/src/Utilities/Services/QueryLanguageService.js +16 -11
  103. package/src/Utilities/Services/ReportService.js +7 -3
  104. package/src/Utilities/Services/TeamSharingService.js +5 -3
  105. package/src/View/AdaptablePopover/index.js +6 -1
  106. package/src/View/AdaptableView.js +1 -1
  107. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ColumnsList.js +5 -1
  108. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationForm.js +5 -2
  109. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/index.js +4 -1
  110. package/src/View/AdaptableWizardView/helper.js +3 -1
  111. package/src/View/Alert/Wizard/AlertButtonsEditor.d.ts +1 -1
  112. package/src/View/Alert/Wizard/AlertButtonsEditor.js +5 -1
  113. package/src/View/Alert/Wizard/AlertRulesWizardSection.d.ts +1 -1
  114. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.d.ts +2 -3
  115. package/src/View/Alert/Wizard/BaseAlertRulesWizardSection.js +1 -3
  116. package/src/View/CalculatedColumn/Wizard/CalculatedColumnWizard.js +15 -4
  117. package/src/View/CellSummary/CellSummaryViewPanel.js +1 -2
  118. package/src/View/Components/AdaptableObjectList/AdaptableObjectList.js +5 -2
  119. package/src/View/Components/FilterForm/FilterForm.js +0 -2
  120. package/src/View/Components/FilterForm/QuickFilterForm.js +8 -7
  121. package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
  122. package/src/View/Components/ModuleValueSelector/index.js +1 -1
  123. package/src/View/Components/Panels/PanelWithImage.d.ts +1 -1
  124. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.d.ts +0 -3
  125. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopup.js +45 -87
  126. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.d.ts +11 -0
  127. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupDialog.js +78 -0
  128. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.d.ts +3 -1
  129. package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +19 -6
  130. package/src/View/Components/Popups/AdaptablePopup/Navigation.d.ts +1 -3
  131. package/src/View/Components/Popups/AdaptablePopup/Navigation.js +5 -13
  132. package/src/View/Components/Popups/AdaptablePopup/TopBar.js +5 -4
  133. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.d.ts +2 -0
  134. package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +44 -0
  135. package/src/View/Components/Popups/AdaptablePopupConfirmation.js +3 -1
  136. package/src/View/Components/Popups/AdaptablePopupPrompt.d.ts +5 -12
  137. package/src/View/Components/Popups/AdaptablePopupPrompt.js +38 -37
  138. package/src/View/Components/Popups/AdaptablePopupTeamSharing.js +4 -1
  139. package/src/View/Components/ScopeComponent.js +4 -1
  140. package/src/View/Components/SharedProps/ModuleViewPopupProps.d.ts +1 -1
  141. package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
  142. package/src/View/Components/ToolPanel/CustomToolPanelContent.js +6 -2
  143. package/src/View/Components/ToolPanel/ToolPanelPopup.js +7 -5
  144. package/src/View/Components/ToolPanel/ToolPanelWrapper.js +1 -1
  145. package/src/View/Components/ValueSelector/index.d.ts +2 -1
  146. package/src/View/Components/ValueSelector/index.js +5 -5
  147. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.d.ts +8 -0
  148. package/src/View/ConditionalStyle/Wizard/ConditionalStyleSettingsWizardSettings.js +27 -0
  149. package/src/View/ConditionalStyle/Wizard/ConditionalStyleWizard.js +17 -5
  150. package/src/View/CustomSort/Wizard/CustomSortValuesWizardSection.js +3 -1
  151. package/src/View/CustomSort/Wizard/CustomSortWizard.js +16 -4
  152. package/src/View/Dashboard/CustomToolbarWrapper.js +5 -1
  153. package/src/View/Dashboard/Dashboard.js +5 -5
  154. package/src/View/Dashboard/DashboardPopup.js +8 -6
  155. package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +2 -1
  156. package/src/View/Export/Wizard/NewReportWizard.js +13 -3
  157. package/src/View/Export/Wizard/ReportColumnTypeWizard.js +3 -1
  158. package/src/View/Export/Wizard/ReportRowTypeWizard.js +3 -1
  159. package/src/View/Filter/FilterViewPanel.d.ts +1 -4
  160. package/src/View/Filter/FilterViewPanel.js +1 -3
  161. package/src/View/FlashingCell/Wizard/FlashingCellRulesWizardSection.js +17 -26
  162. package/src/View/FlashingCell/Wizard/FlashingCellScopeWizardSection.js +19 -2
  163. package/src/View/FlashingCell/Wizard/FlashingCellSettingsWizardSection.js +20 -5
  164. package/src/View/FlashingCell/Wizard/FlashingCellWizard.js +1 -1
  165. package/src/View/FormatColumn/Wizard/FormatColumnFormatWizardSection.js +2 -2
  166. package/src/View/FormatColumn/Wizard/FormatColumnWizard.js +10 -5
  167. package/src/View/FreeTextColumn/FreeTextColumnSummary.js +1 -2
  168. package/src/View/FreeTextColumn/Wizard/FreeTextColumnWizard.js +12 -5
  169. package/src/View/GridInfo/AdaptableOptionsComponent.js +4 -1
  170. package/src/View/Layout/Wizard/LayoutEditor/index.js +5 -1
  171. package/src/View/Layout/Wizard/LayoutEditorWizard.js +7 -1
  172. package/src/View/PlusMinus/Wizard/PlusMinusWizard.js +8 -2
  173. package/src/View/Query/ExpandedQueryPopup.js +9 -2
  174. package/src/View/Query/QueryViewPanel.js +15 -10
  175. package/src/View/Query/Wizard/NamedQueryWizard.js +3 -1
  176. package/src/View/QuickSearch/QuickSearchPopup.js +3 -3
  177. package/src/View/QuickSearch/useQuickSearchDebounced.js +1 -1
  178. package/src/View/Schedule/Wizard/ScheduleSettingsWizard/ScheduleSettingsSummary.js +12 -2
  179. package/src/View/Schedule/Wizard/ScheduleWizard.js +14 -14
  180. package/src/View/SpecialColumnSettingsWizardStep.js +1 -1
  181. package/src/View/UIHelper.js +4 -1
  182. package/src/View/Wizard/AdaptableWizard.js +13 -4
  183. package/src/View/Wizard/Interface/IAdaptableWizard.d.ts +2 -0
  184. package/src/View/Wizard/OnePageAdaptableWizard.js +6 -2
  185. package/src/agGrid/Adaptable.d.ts +2 -5
  186. package/src/agGrid/Adaptable.js +126 -73
  187. package/src/agGrid/agGridHelper.js +2 -3
  188. package/src/agGrid/agGridMenuHelper.js +5 -9
  189. package/src/agGrid/editors/AdaptableDateEditor/index.js +1 -1
  190. package/src/agGrid/editors/AdaptableNumberEditor/index.js +1 -1
  191. package/src/components/ApplicationIcon.d.ts +1 -0
  192. package/src/components/ApplicationIcon.js +2 -2
  193. package/src/components/Dashboard/Dashboard.js +4 -1
  194. package/src/components/Dashboard/DashboardManager.d.ts +5 -3
  195. package/src/components/Dashboard/DashboardManager.js +33 -27
  196. package/src/components/Dropdown/index.js +8 -1
  197. package/src/components/DropdownButton/renderItem.js +1 -1
  198. package/src/components/ExpressionEditor/EditorInputReactive.js +3 -1
  199. package/src/components/ExpressionEditor/ExpressionFunctionDocumentation.js +4 -1
  200. package/src/components/ExpressionEditor/index.js +9 -2
  201. package/src/components/FormLayout/index.js +1 -1
  202. package/src/components/OverlayTrigger/Overlay.js +1 -1
  203. package/src/components/SizedContainer/index.js +7 -1
  204. package/src/components/WindowModal/WindowModal.js +4 -1
  205. package/src/metamodel/adaptable.metamodel.d.ts +64 -24
  206. package/src/metamodel/adaptable.metamodel.js +187 -99
  207. package/src/types.d.ts +4 -2
  208. package/themes/dark.css +4 -4
  209. package/version.d.ts +1 -1
  210. 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
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createEngine = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const isomorphic_fetch_1 = tslib_1.__importDefault(require("isomorphic-fetch"));
6
- const debounce_1 = tslib_1.__importDefault(require("lodash-es/debounce"));
6
+ const debounce_1 = tslib_1.__importDefault(require("lodash/debounce"));
7
7
  const AdaptableReduxMerger_1 = require("./AdaptableReduxMerger");
8
8
  const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions");
9
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mergeReducer = exports.MergeState = exports.MergeStateFunction = exports.AddStateSource = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const mergeWith_1 = tslib_1.__importDefault(require("lodash-es/mergeWith"));
6
- const merge_1 = tslib_1.__importDefault(require("lodash-es/merge"));
7
- const isArray_1 = tslib_1.__importDefault(require("lodash-es/isArray"));
8
- const extend_1 = tslib_1.__importDefault(require("lodash-es/extend"));
9
- const isObject_1 = tslib_1.__importDefault(require("lodash-es/isObject"));
5
+ const mergeWith_1 = tslib_1.__importDefault(require("lodash/mergeWith"));
6
+ const merge_1 = tslib_1.__importDefault(require("lodash/merge"));
7
+ const isArray_1 = tslib_1.__importDefault(require("lodash/isArray"));
8
+ const extend_1 = tslib_1.__importDefault(require("lodash/extend"));
9
+ const isObject_1 = tslib_1.__importDefault(require("lodash/isObject"));
10
10
  const isAdaptableObject_1 = require("../../Utilities/isAdaptableObject");
11
11
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
12
12
  function customizer(objValue, srcValue) {
@@ -160,6 +160,17 @@ class AdaptableStore {
160
160
  case exports.LOAD_STATE:
161
161
  const { State } = action;
162
162
  Object.keys(State).forEach((key) => {
163
+ // this check should be removed in version 12 !!!
164
+ if (key === 'Chart') {
165
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable Charts Plugin is deprecated! AG Grid built-in charts are fully supported & integrated in AdapTable.
166
+
167
+ Please contact 'support@adaptabletools.com' if you require any charting features that are not currently available.`);
168
+ }
169
+ if (key === 'SparklineColumn') {
170
+ LoggingHelper_1.ConsoleLogWarning(`DEPRECATED: AdapTable SparklineColumn is deprecated! AG Grid built-in Sparklines are fully supported & integrated in AdapTable.
171
+
172
+ Please contact 'support@adaptabletools.com' if you require any sparklines features that are not currently available.`);
173
+ }
163
174
  state[key] = State[key];
164
175
  });
165
176
  break;
@@ -171,6 +182,7 @@ class AdaptableStore {
171
182
  // If the user has remote storage set then we use Remote Engine, otherwise we use Local Enginge
172
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)
173
184
  // const localStorageKey = 'adaptable-adaptable-state-' + adaptable.adaptableOptions.primaryKey;
185
+ const predefinedConfig = adaptable.adaptableOptions.predefinedConfig;
174
186
  storageEngine = AdaptableReduxLocalStorageEngine_1.createEngine({
175
187
  adaptableId: adaptable.adaptableOptions.adaptableId,
176
188
  adaptableStateKey: adaptable.adaptableOptions.adaptableStateKey,
@@ -305,9 +317,9 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
305
317
  /*******************
306
318
  * FLASHING ALERT ACTIONS
307
319
  *******************/
308
- case SystemRedux.SYSTEM_FLASHING_ALERT_ADD:
309
- case SystemRedux.SYSTEM_FLASHING_ALERT_DELETE: {
310
- const { flashingCell: FlashingCell, } = action;
320
+ case SystemRedux.SYSTEM_FLASHING_CELL_ADD:
321
+ case SystemRedux.SYSTEM_FLASHING_CELL_DELETE: {
322
+ const { flashingCell: FlashingCell } = action;
311
323
  const { dataChangedInfo } = FlashingCell;
312
324
  let ret = next(action);
313
325
  if (dataChangedInfo) {
@@ -1075,7 +1087,7 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1075
1087
  case TeamSharingRedux.TEAMSHARING_IMPORT_ITEM: {
1076
1088
  let returnAction = next(action);
1077
1089
  const actionTyped = action;
1078
- const [importStepActions, needsOverwriteConfirmation,] = adaptable.api.internalApi
1090
+ const [importStepActions, needsOverwriteConfirmation] = adaptable.api.internalApi
1079
1091
  .getTeamSharingService()
1080
1092
  .buildSharedEntityImportActions(actionTyped.SharedEntity);
1081
1093
  const processImportAction = TeamSharingRedux.TeamSharingProcessImport(importStepActions);
@@ -1148,14 +1160,14 @@ const adaptableMiddleware = (adaptable) => function (middlewareAPI) {
1148
1160
  .getSharedEntities(adaptableId)
1149
1161
  .then((sharedEntities) => {
1150
1162
  // check if remote server has a newer revision
1151
- const [localRevision, remoteRevision,] = adaptable.api.internalApi
1163
+ const [localRevision, remoteRevision] = adaptable.api.internalApi
1152
1164
  .getTeamSharingService()
1153
1165
  .getSharedEntityLocalAndRemoteRevisions(ChangedAdaptableObject.Uuid, sharedEntities);
1154
1166
  if (remoteRevision > localRevision) {
1155
1167
  // if remote has a newer version, we will NOT overwrite it
1156
1168
  return;
1157
1169
  }
1158
- const [updatedSharedEntities, newActiveEntities,] = adaptable.api.internalApi
1170
+ const [updatedSharedEntities, newActiveEntities] = adaptable.api.internalApi
1159
1171
  .getTeamSharingService()
1160
1172
  .updateActiveSharedEntity(ChangedAdaptableObject, UserName, sharedEntities);
1161
1173
  middlewareAPI.dispatch(TeamSharingRedux.TeamSharingLinkItem(...newActiveEntities));
@@ -19,12 +19,12 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
19
19
  constructor(api) {
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
- if (dataChangedInfo.trigger === 'undo') {
22
+ if (dataChangedInfo.trigger === 'undo' || dataChangedInfo.trigger === 'aggChange') {
23
23
  // do NOT handle reverted 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);
@@ -64,7 +64,8 @@ class AlertModule extends AdaptableModuleBase_1.AdaptableModuleBase {
64
64
  }
65
65
  updateOldConfig() {
66
66
  // 1. Make all (new) Flashing Alerts have a Predicate if none exists
67
- const flashingAlertDefinitions = this.api.alertApi.getAlertState().FlashingAlertDefinitions;
67
+ const alertState = this.api.alertApi.getAlertState();
68
+ const flashingAlertDefinitions = alertState.FlashingAlertDefinitions;
68
69
  const flashingCellDefinitions = this.api.flashingCellApi.getFlashingCellDefinitions();
69
70
  if (ArrayExtensions_1.ArrayExtensions.IsEmpty(flashingCellDefinitions) &&
70
71
  ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(flashingAlertDefinitions)) {
@@ -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
  };
@@ -9,7 +9,7 @@ class DataChangeHistoryModule extends AdaptableModuleBase_1.AdaptableModuleBase
9
9
  constructor(api) {
10
10
  super(ModuleConstants.DataChangeHistoryModuleId, 'Data Changes', 'track-changes', 'DataChangeHistoryPopup', 'Provides an overview of all previous changes, giving the possibility to undo specific changes', api);
11
11
  this.api.internalApi.getDataService().on('DataChanged', (dataChangedInfo) => {
12
- if (dataChangedInfo.trigger !== 'undo') {
12
+ if (dataChangedInfo.trigger !== 'undo' && dataChangedInfo.trigger !== 'aggChange') {
13
13
  if (this.shouldLogDataChange(dataChangedInfo)) {
14
14
  this.api.internalApi.dispatchReduxAction(SystemRedux_1.SystemDataChangeHistoryAdd(dataChangedInfo));
15
15
  }
@@ -18,8 +18,8 @@ export declare class FlashingCellModule extends AdaptableModuleBase implements I
18
18
  addContextMenuItems(menuContext: ContextMenuContext): AdaptableMenuItem[] | undefined;
19
19
  protected handleDataSourceChanged(dataChangedInfo: DataChangedInfo): void;
20
20
  private showFlashingCellsForDefinitions;
21
+ private isFlashingTargetOnlyAggChange;
21
22
  private getFlashingCellDefinitionsForDataChange;
22
- private getBaseAlertDefinitionsForDataChange;
23
23
  private isAlertPredicateTriggered;
24
24
  getTeamSharingAction(): TeamSharingImportInfo<FlashingCellDefinition>;
25
25
  toView(flashingCell: FlashingCellDefinition): AdaptableObjectView;
@@ -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);
@@ -123,9 +123,13 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
123
123
  direction = up ? 'up' : down ? 'down' : 'neutral';
124
124
  }
125
125
  flashingCellDefinitions.forEach((flashingCellDefinition) => {
126
- const flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
126
+ var _a;
127
+ let flashTarget = this.api.flashingCellApi.getFlashingCellFlashTarget(flashingCellDefinition);
127
128
  const flashColumnIds = { [dataChangedInfo.column.columnId]: true };
128
- if (flashTarget === 'row') {
129
+ /**
130
+ * When flashing a row, all columns in that row are marked to flash.
131
+ */
132
+ if (flashTarget === 'row' || ((_a = flashTarget === null || flashTarget === void 0 ? void 0 : flashTarget.includes) === null || _a === void 0 ? void 0 : _a.call(flashTarget, 'row'))) {
129
133
  allColumnIds.forEach((colId) => {
130
134
  flashColumnIds[colId] = true;
131
135
  });
@@ -141,18 +145,30 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
141
145
  });
142
146
  });
143
147
  }
144
- getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
145
- return this.getBaseAlertDefinitionsForDataChange(dataChangedEvent, this.api.flashingCellApi.getActiveFlashingCellDefinitions(), true);
148
+ isFlashingTargetOnlyAggChange(flashingCellDefinition) {
149
+ if (flashingCellDefinition.FlashTarget === 'aggFuncCell') {
150
+ return true;
151
+ }
152
+ return (Array.isArray(flashingCellDefinition.FlashTarget) &&
153
+ flashingCellDefinition.FlashTarget.length === 1 &&
154
+ flashingCellDefinition.FlashTarget.includes('aggFuncCell'));
146
155
  }
147
- getBaseAlertDefinitionsForDataChange(dataChangedEvent, definitions, defaultNoPredicateReturn = false) {
148
- let relatedAlertDefinitions = definitions
156
+ getFlashingCellDefinitionsForDataChange(dataChangedEvent) {
157
+ const definitions = this.api.flashingCellApi.getActiveFlashingCellDefinitions();
158
+ const defaultNoPredicateReturn = false;
159
+ let relatedFlashingCellsDefinitions = definitions
149
160
  .filter((v) => this.api.scopeApi.isColumnInScope(dataChangedEvent.column, v.Scope))
150
161
  .filter((flashingCellDefinition) => !AdaptableQuery_1.isReactiveQuery(flashingCellDefinition.Rule));
151
- let triggeredAlerts = [];
152
- if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedAlertDefinitions)) {
153
- relatedAlertDefinitions.forEach((alertDefinition) => {
154
- if (alertDefinition.Rule.BooleanExpression) {
155
- let expression = alertDefinition.Rule.BooleanExpression;
162
+ let triggeredFlashingCells = [];
163
+ if (ArrayExtensions_1.ArrayExtensions.IsNotNullOrEmpty(relatedFlashingCellsDefinitions)) {
164
+ relatedFlashingCellsDefinitions.forEach((flashingCellDefinition) => {
165
+ // for aggregation the data-change needs to be aggChange
166
+ if (dataChangedEvent.trigger !== 'aggChange' &&
167
+ this.isFlashingTargetOnlyAggChange(flashingCellDefinition)) {
168
+ return;
169
+ }
170
+ if (flashingCellDefinition.Rule.BooleanExpression) {
171
+ let expression = flashingCellDefinition.Rule.BooleanExpression;
156
172
  let rowNode = dataChangedEvent.rowNode;
157
173
  if (!rowNode) {
158
174
  rowNode = this.api.gridApi.getRowNodeForPrimaryKey(dataChangedEvent.primaryKeyValue);
@@ -163,15 +179,15 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
163
179
  .getQueryLanguageService()
164
180
  .evaluateBooleanExpression(expression, this.moduleInfo.ModuleName, rowNode);
165
181
  if (isSatisfiedExpression) {
166
- triggeredAlerts.push(alertDefinition);
182
+ triggeredFlashingCells.push(flashingCellDefinition);
167
183
  }
168
184
  }
169
- else if (this.isAlertPredicateTriggered(alertDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
170
- triggeredAlerts.push(alertDefinition);
185
+ else if (this.isAlertPredicateTriggered(flashingCellDefinition, dataChangedEvent, defaultNoPredicateReturn)) {
186
+ triggeredFlashingCells.push(flashingCellDefinition);
171
187
  }
172
188
  });
173
189
  }
174
- return triggeredAlerts;
190
+ return triggeredFlashingCells;
175
191
  }
176
192
  isAlertPredicateTriggered(alert, dataChangedEvent, defaultNoPredicateReturn = false) {
177
193
  return this.api.predicateApi.handlePredicate(alert.Rule.Predicate, {
@@ -194,7 +210,7 @@ class FlashingCellModule extends AdaptableModuleBase_1.AdaptableModuleBase {
194
210
  return {
195
211
  items: [
196
212
  Object.assign(Object.assign({}, getScopeViewItems_1.getScopeViewItems(flashingCell.Scope)), { label: 'Trigger' }),
197
- getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api),
213
+ Object.assign(Object.assign({}, getRuleViewItems_1.getRuleViewItems(flashingCell.Rule, this.api)), { label: 'Rule', name: 'Rule' }),
198
214
  getFlashingCellDurationViewItems_1.getFlashingCellDurationViewItems(flashingCell),
199
215
  getFlashingTargetViewItems_1.getFlashingTargetViewItems(flashingCell),
200
216
  getFlashingCellStyleViewItems_1.getFlashingCellStyleViewItems(),
@@ -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,16 @@ 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
+ this.api.freeTextColumnApi.editFreeTextColumn(updatedFreeTextColumn);
31
+ }
32
+ }
33
+ }
24
34
  addColumnMenuItems(column) {
25
35
  if (column && this.isModuleEditable()) {
26
36
  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', () => {
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("../Utilities/Constants/Mod
7
7
  const isAdaptableObject_1 = require("../Utilities/isAdaptableObject");
8
8
  const TeamSharingRedux_1 = require("../Redux/ActionsReducers/TeamSharingRedux");
9
9
  const TeamSharingRedux = tslib_1.__importStar(require("../Redux/ActionsReducers/TeamSharingRedux"));
10
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
10
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
11
11
  const LayoutRedux_1 = require("../Redux/ActionsReducers/LayoutRedux");
12
12
  class TeamSharingModule extends AdaptableModuleBase_1.AdaptableModuleBase {
13
13
  constructor(api) {
@@ -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) {
@@ -1,5 +1,5 @@
1
1
  import { FlashingCellDefinition } from '../../../types';
2
2
  export declare const getFlashingTargetViewItems: (flashingCell: FlashingCellDefinition) => {
3
3
  name: string;
4
- values: ("cell" | "row")[];
4
+ values: import("../../PredefinedConfig/FlashingCellState").FlashTargetTypes[];
5
5
  };
@@ -4,6 +4,8 @@ exports.getFlashingTargetViewItems = void 0;
4
4
  exports.getFlashingTargetViewItems = (flashingCell) => {
5
5
  return {
6
6
  name: 'Target',
7
- values: [flashingCell.FlashTarget],
7
+ values: Array.isArray(flashingCell.FlashTarget)
8
+ ? flashingCell.FlashTarget
9
+ : [flashingCell.FlashTarget],
8
10
  };
9
11
  };
@@ -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
  };
@@ -5,7 +5,6 @@ const AdaptableQuery_1 = require("../../PredefinedConfig/Common/AdaptableQuery")
5
5
  exports.getRuleViewItems = (rule, api) => {
6
6
  return {
7
7
  name: 'Condition',
8
- label: 'Condition',
9
8
  values: [
10
9
  rule.Predicate
11
10
  ? api.predicateApi.predicateToString(rule.Predicate)
@@ -19,20 +19,22 @@ exports.DefaultAdaptableOptions = {
19
19
  autogeneratePrimaryKey: false,
20
20
  userName: GeneralConstants.USER_NAME,
21
21
  predefinedConfig: undefined,
22
- notificationsOptions: {
22
+ alertOptions: {
23
23
  alertForms: undefined,
24
24
  maxAlertsInStore: 20,
25
+ cellHighlightDuration: 3000,
26
+ dataChangeDetectionPolicy: 'rawValue',
27
+ actionHandlers: undefined,
28
+ },
29
+ notificationsOptions: {
25
30
  maxNotifications: 3,
26
31
  position: 'BottomRight',
27
32
  duration: 3000,
28
- cellHighlightDuration: 3000,
29
- dataChangeDetectionPolicy: 'rawValue',
30
33
  showProgressBar: false,
31
34
  closeWhenClicked: false,
32
35
  pauseWhenHovering: false,
33
36
  isDraggable: false,
34
37
  transition: 'Slide',
35
- actionHandlers: undefined,
36
38
  showApplicationIcon: false,
37
39
  showSystemStatusMessageNotifications: false,
38
40
  maxSystemMessagesInStore: 100,