@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
@@ -13,11 +13,6 @@ export declare class FreeTextColumnApiImpl extends ApiBase implements FreeTextCo
13
13
  }): FreeTextColumn;
14
14
  addEditFreeTextColumnStoredValue(freeTextColumn: FreeTextColumn, storedValue: FreeTextStoredValue): FreeTextColumn;
15
15
  addStoredValuesToFreeTextColumn(columnId: string, storedValues: FreeTextStoredValue[], replaceAction: 'All' | 'Conflicting' | 'None'): void;
16
- createFreeTextColumn({ columnName, columnId, defaultValue, }: {
17
- columnId: string;
18
- columnName?: string;
19
- defaultValue: string;
20
- }): FreeTextColumn;
21
16
  deleteFreeTextColumn(columnId: string): void;
22
17
  showFreeTextColumnPopup(): void;
23
18
  getFreeTextColumnValueFromRowNode(freeTextColumn: FreeTextColumn, rowNode: RowNode): any;
@@ -4,7 +4,6 @@ exports.FreeTextColumnApiImpl = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const FreeTextColumnRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/FreeTextColumnRedux"));
6
6
  const ApiBase_1 = require("./ApiBase");
7
- const ObjectFactory_1 = require("../../Utilities/ObjectFactory");
8
7
  const ModuleConstants = tslib_1.__importStar(require("../../Utilities/Constants/ModuleConstants"));
9
8
  const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Extensions/ArrayExtensions"));
10
9
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
@@ -67,14 +66,6 @@ class FreeTextColumnApiImpl extends ApiBase_1.ApiBase {
67
66
  this.dispatchAction(FreeTextColumnRedux.FreeTextColumnEdit(freeTextColumn));
68
67
  }
69
68
  }
70
- createFreeTextColumn({ columnName, columnId, defaultValue = null, }) {
71
- let freeTextColumn = ObjectFactory_1.ObjectFactory.CreateEmptyFreeTextColumn(this.adaptable.api.internalApi.getAdaptableOptions().filterOptions
72
- .enableFilterOnSpecialColumns);
73
- freeTextColumn.ColumnId = columnId;
74
- freeTextColumn.FriendlyName = columnName || columnId;
75
- freeTextColumn.DefaultValue = defaultValue;
76
- return this.addFreeTextColumn(freeTextColumn);
77
- }
78
69
  deleteFreeTextColumn(columnId) {
79
70
  let freeTextColumn = this.getAllFreeTextColumn().find((ftc) => ftc.ColumnId == columnId);
80
71
  if (this.checkItemExists(freeTextColumn, columnId, ModuleConstants.FreeTextColumnModuleId)) {
@@ -7,7 +7,8 @@ import { GridCell } from '../../PredefinedConfig/Selection/GridCell';
7
7
  import { ColumnSort } from '../../PredefinedConfig/Common/ColumnSort';
8
8
  import { DataUpdateConfig } from '../../PredefinedConfig/Common/DataUpdateConfig';
9
9
  import { DataChangedInfo, AccessLevel, AdaptableModule } from '../../types';
10
- import { CellHighlightInfo, RowHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
10
+ import { CellHighlightInfo } from '../../PredefinedConfig/Common/CellHighlightInfo';
11
+ import { RowHighlightInfo } from '../../PredefinedConfig/Common/RowHighlightInfo';
11
12
  import { GridOptions, RowNode } from '@ag-grid-community/all-modules';
12
13
  import { GridCellRange } from '../../PredefinedConfig/Selection/GridCellRange';
13
14
  export declare class GridApiImpl extends ApiBase implements GridApi {
@@ -16,10 +17,10 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
16
17
  getGridData(): any[];
17
18
  getFilteredData(): any[];
18
19
  loadGridData(dataSource: any): void;
19
- updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
- addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
20
+ updateGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
+ addGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
21
22
  undoCellEdit(dataChangedInfo: DataChangedInfo): boolean;
22
- deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<void>;
23
+ deleteGridData(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<RowNode[]>;
23
24
  setCellValue(columnId: string, newValue: any, primaryKeyValue: any): void;
24
25
  setCellsValue(gridCells: {
25
26
  columnId: any;
@@ -25,10 +25,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
25
25
  async updateGridData(dataRows, dataUpdateConfig) {
26
26
  const rowNodes = await this.adaptable.updateRows(dataRows, dataUpdateConfig);
27
27
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Edit');
28
+ return rowNodes;
28
29
  }
29
30
  async addGridData(dataRows, dataUpdateConfig) {
30
31
  const rowNodes = await this.adaptable.addRows(dataRows, dataUpdateConfig);
31
32
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Add');
33
+ return rowNodes;
32
34
  }
33
35
  undoCellEdit(dataChangedInfo) {
34
36
  // for the reason of this hacky solution see the comments in DataService
@@ -40,7 +42,9 @@ class GridApiImpl extends ApiBase_1.ApiBase {
40
42
  if (this.checkArrayExists(dataRows)) {
41
43
  const rowNodes = await this.adaptable.deleteRows(dataRows, dataUpdateConfig);
42
44
  this.fireGridDataChangedEvent(dataRows, rowNodes, 'Delete');
45
+ return rowNodes;
43
46
  }
47
+ return [];
44
48
  }
45
49
  setCellValue(columnId, newValue, primaryKeyValue) {
46
50
  const abColumn = this.adaptable.api.columnApi.getColumnFromId(columnId);
@@ -25,7 +25,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
25
25
  let adaptableAlertForm;
26
26
  let isActionForm = false;
27
27
  if (typeof alertForm === 'string') {
28
- const alertForms = this.getNotificationsOptions().alertForms || [];
28
+ const alertForms = this.getAlertOptions().alertForms || [];
29
29
  adaptableAlertForm = (_a = alertForms.find((f) => f.name === alertForm)) === null || _a === void 0 ? void 0 : _a.form;
30
30
  }
31
31
  else {
@@ -68,7 +68,7 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
68
68
  const forPrimaryKey = (_a = AdaptableFlashingAlerts[primaryKey]) !== null && _a !== void 0 ? _a : {};
69
69
  const toFlashingAlert = (uuid) => { var _a; return uuid ? (_a = AdaptableFlashingAlertsMap[uuid]) !== null && _a !== void 0 ? _a : null : null; };
70
70
  if (!columnId) {
71
- return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_ALERT_ROW_KEY]);
71
+ return toFlashingAlert(forPrimaryKey[SystemRedux_1.FLASHING_CELL_ROW_KEY]);
72
72
  }
73
73
  return toFlashingAlert(forPrimaryKey[columnId]);
74
74
  }
@@ -1,6 +1,7 @@
1
1
  import { ApiBase } from './ApiBase';
2
2
  import { LayoutApi } from '../LayoutApi';
3
3
  import { LayoutState, Layout } from '../../PredefinedConfig/LayoutState';
4
+ import { AdaptableColumn } from '../../PredefinedConfig/Common/AdaptableColumn';
4
5
  export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
5
6
  getLayoutState(): LayoutState;
6
7
  shouldAutoSaveLayout: (layout?: Layout) => boolean;
@@ -27,6 +28,7 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
27
28
  getLayoutDescription(layout: Layout): string;
28
29
  private getColumnSort;
29
30
  createDefaultLayoutIfNeeded(): Layout | null;
31
+ showChangeColumnCaption(column: AdaptableColumn): void;
30
32
  showLayoutPopup(): void;
31
33
  isCurrentLayoutReadOnly(): boolean;
32
34
  }
@@ -10,10 +10,12 @@ const ObjectFactory_1 = tslib_1.__importDefault(require("../../Utilities/ObjectF
10
10
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
11
11
  const Helper_1 = tslib_1.__importDefault(require("../../Utilities/Helpers/Helper"));
12
12
  const Uuid_1 = require("../../PredefinedConfig/Uuid");
13
- const isEqual_1 = tslib_1.__importDefault(require("lodash-es/isEqual"));
13
+ const isEqual_1 = tslib_1.__importDefault(require("lodash/isEqual"));
14
14
  const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
15
15
  const Enums_1 = require("../../PredefinedConfig/Common/Enums");
16
16
  const ArrayExtensions_1 = require("../../Utilities/Extensions/ArrayExtensions");
17
+ const PopupRedux_1 = require("../../Redux/ActionsReducers/PopupRedux");
18
+ const LayoutRedux_1 = require("../../Redux/ActionsReducers/LayoutRedux");
17
19
  class LayoutApiImpl extends ApiBase_1.ApiBase {
18
20
  constructor() {
19
21
  super(...arguments);
@@ -229,6 +231,15 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
229
231
  }
230
232
  }
231
233
  }
234
+ showChangeColumnCaption(column) {
235
+ this.dispatchAction(PopupRedux_1.PopupShowPrompt({
236
+ Header: `Change caption for '${column.friendlyName}'`,
237
+ Msg: '',
238
+ DefaultValue: column.friendlyName,
239
+ ConfirmActionCreator: (inputText) => inputText !== column.friendlyName &&
240
+ LayoutRedux_1.LayoutSetColumnCaption(this.getCurrentLayoutName(), column.columnId, inputText),
241
+ }));
242
+ }
232
243
  showLayoutPopup() {
233
244
  this.showModulePopup(ModuleConstants.LayoutModuleId);
234
245
  }
@@ -25,7 +25,10 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
25
25
  // check that there is no other existing named query with the same name
26
26
  const duplicate = this.getAllNamedQuery().find((q) => q.Name === namedQuery.Name && q.Uuid !== namedQuery.Uuid);
27
27
  if (duplicate) {
28
- return { valid: false, message: 'A Named Query already exists with that name' };
28
+ return {
29
+ valid: false,
30
+ message: 'A Named Query already exists with that name',
31
+ };
29
32
  }
30
33
  return { valid: true, message: '' };
31
34
  }
@@ -8,7 +8,7 @@ const ArrayExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exten
8
8
  const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
9
9
  class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
10
10
  isValidBooleanExpression(query, module, validationErrorMessage) {
11
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
11
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
12
12
  .getQueryLanguageService()
13
13
  .validateBoolean(query, module, { force: true });
14
14
  if (!isValid && validationErrorMessage) {
@@ -17,7 +17,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
17
17
  return isValid;
18
18
  }
19
19
  isValidObservableExpression(expression, module, validationErrorMessage) {
20
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
20
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
21
21
  .getQueryLanguageService()
22
22
  .validateObservable(expression, module);
23
23
  if (!isValid && validationErrorMessage) {
@@ -26,7 +26,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
26
26
  return isValid;
27
27
  }
28
28
  isValidAggregationExpression(expression, module, validationErrorMessage) {
29
- const { isValid, errorMessage, } = this.adaptable.api.internalApi
29
+ const { isValid, errorMessage } = this.adaptable.api.internalApi
30
30
  .getQueryLanguageService()
31
31
  .validateAggregation(expression, module);
32
32
  if (!isValid && validationErrorMessage) {
@@ -51,8 +51,7 @@ class QueryLanguageApiImpl extends ApiBase_1.ApiBase {
51
51
  }
52
52
  }
53
53
  getQueryableColumnIds() {
54
- let queryableColumns = this.getQueryLanguageOptions()
55
- .queryableColumns;
54
+ let queryableColumns = this.getQueryLanguageOptions().queryableColumns;
56
55
  if (!queryableColumns) {
57
56
  return undefined;
58
57
  }
@@ -1,3 +1,4 @@
1
+ import { AdaptableColumn } from '../../types';
1
2
  import { LayoutState, Layout } from '../PredefinedConfig/LayoutState';
2
3
  /**
3
4
  * Provides run-time access to the Layout Module and associated state
@@ -128,4 +129,10 @@ export interface LayoutApi {
128
129
  */
129
130
  setColumnCaption(columnId: string, caption: string): void;
130
131
  isCurrentLayoutReadOnly(): boolean;
132
+ /**
133
+ * Opens change column caption popup
134
+ *
135
+ * @param column AdaptableColumn
136
+ */
137
+ showChangeColumnCaption(column: AdaptableColumn): void;
131
138
  }
@@ -2,6 +2,7 @@ import { OpenFinState, OpenFinReport, OpenFinSchedule } from '../PredefinedConfi
2
2
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
3
3
  import { OpenFinPluginOptions } from '../AdaptableOptions/OpenFinPluginOptions';
4
4
  import { NotificationsOptions } from '../AdaptableOptions/NotificationsOptions';
5
+ import { AlertOptions } from '../AdaptableOptions/AlertOptions';
5
6
  /**
6
7
  * Provides run-time access to the OpenFin Plugin
7
8
  */
@@ -44,6 +45,10 @@ export interface OpenFinApi {
44
45
  * Gets the Notification section from Adaptable Options
45
46
  */
46
47
  getNotificationsOptions(): NotificationsOptions;
48
+ /**
49
+ * Gets the Alert section from Adaptable Options
50
+ */
51
+ getAlertOptions(): AlertOptions;
47
52
  /**
48
53
  * Retrieves all Schedules that send data to Excel via OpenFin
49
54
  */
@@ -7,12 +7,41 @@ import { FinanceApi } from './FinanceApi';
7
7
  * API methods dealing with AdapTable plugins
8
8
  */
9
9
  export interface PluginsApi {
10
+ /**
11
+ * Retrieves the Plugin State (internal only)
12
+ */
10
13
  getPluginsState(): PluginsState;
14
+ /**
15
+ * Gets the State for a given Plugin
16
+ * @param pluginId plugin state to retrieve
17
+ */
11
18
  getPluginState(pluginId: string): any;
19
+ /**
20
+ * Registers a Plugin (internal method)
21
+ * @param pluginId Plugin to register
22
+ * @param initialPluginState any state the Plugin requires
23
+ */
12
24
  registerPlugin(pluginId: string, initialPluginState: any): void;
25
+ /**
26
+ * Sets the initial state for a given plugin (internal method)
27
+ * @param pluginId Plugin to set state for
28
+ * @param pluginState State to set
29
+ */
13
30
  setPluginState(pluginId: string, pluginState: any): void;
31
+ /**
32
+ * Returns ipushpull API class in Adaptable API
33
+ */
14
34
  getipushpullPluginApi(): IPushPullApi;
35
+ /**
36
+ * Returns Glue42 API class in Adaptable API
37
+ */
15
38
  getGlue42PluginApi(): Glue42Api;
39
+ /**
40
+ * Returns OpenFin API class in Adaptable API
41
+ */
16
42
  getOpenFinPluginApi(): OpenFinApi;
43
+ /**
44
+ * Returns Finance API class in Adaptable API
45
+ */
17
46
  getFinancePluginApi(): FinanceApi;
18
47
  }
@@ -25,13 +25,16 @@ export interface UserInterfaceApi {
25
25
  */
26
26
  getPermittedValuesForColumn(column: AdaptableColumn): any[];
27
27
  /**
28
- * Retrieves Permitted values for filtering by column values in Floating Filter and dropdown Filter.
28
+ * Retrieves Permitted values for filtering by column values in Floating Filter and Quick Filter Bar
29
29
  */
30
30
  getFilterPermittedValuesForColumn(column: AdaptableColumn): FilterPermittedValues | undefined;
31
31
  /**
32
- * Retrieves Permitted values for Custom sort.
32
+ * Retrieves Permitted values for Custom Sort Module
33
33
  */
34
34
  getCustomSortPermittedValuesForColumn(column: AdaptableColumn): CustomSortPermittedValues | undefined;
35
+ /**
36
+ * Retrieves Permitted values for Bulk Update Module
37
+ */
35
38
  getBulkUpdatePermittedValuesForColumn(column: AdaptableColumn): BulkUpdatePermittedValues | undefined;
36
39
  /**
37
40
  * Retrieves `editLookUpItems` property from User Interface Options
@@ -10,17 +10,15 @@ import { AdaptableStyle } from './Common/AdaptableStyle';
10
10
  import { XOR } from '../Utilities/Extensions/TypeExtensions';
11
11
  import { AdaptableAggregationQuery, AdaptableBooleanQuery, AdaptableObservableQuery } from './Common/AdaptableQuery';
12
12
  import { ButtonStyle } from './Common/ButtonStyle';
13
- import { AlertButtonContext } from '../AdaptableOptions/NotificationsOptions';
13
+ import { AlertButtonContext } from '../types';
14
14
  /**
15
15
  * Predefined Configuration for Alert Module
16
16
  */
17
17
  export interface AlertState extends ConfigState {
18
18
  /**
19
19
  * Alert Definitions - will trigger Alerts when rule is met
20
- * @defaultValue null
21
20
  */
22
21
  AlertDefinitions?: AlertDefinition[];
23
- FlashingAlertDefinitions?: any[];
24
22
  }
25
23
  /**
26
24
  * The Alert Definition object used in the Alert function
@@ -116,7 +114,7 @@ export interface AlertProperties {
116
114
  LogToConsole?: boolean;
117
115
  /**
118
116
  * Automatically prevent any cell edit which triggered the Alert (i.e. validation)
119
- * @default false
117
+ * @defaultValue false
120
118
  */
121
119
  PreventEdit?: boolean;
122
120
  }
@@ -8,7 +8,6 @@ import { SpecialColumnSettings } from './Common/SpecialColumnSettings';
8
8
  export interface CalculatedColumnState extends ConfigState {
9
9
  /**
10
10
  * Collection of Calculated Columns
11
- * @defaultValue empty
12
11
  */
13
12
  CalculatedColumns?: CalculatedColumn[];
14
13
  }
@@ -15,19 +15,8 @@ export interface CellHighlightInfo {
15
15
  * Time after which Cell should be unhilighted
16
16
  */
17
17
  timeout?: number;
18
- highlightStyle: AdaptableStyle;
19
- }
20
- export interface RowHighlightInfo {
21
- /**
22
- * Primary key value for the row to be highlighted
23
- */
24
- primaryKeyValue: any;
25
- /**
26
- * Timeout after which the highlight is removed
27
- */
28
- timeout?: number;
29
18
  /**
30
- * Highlight style
19
+ * Adaptable Style to use in the Cell Highlight
31
20
  */
32
21
  highlightStyle: AdaptableStyle;
33
22
  }
@@ -35,7 +35,7 @@ export interface DataChangedInfo {
35
35
  /**
36
36
  * What triggered the change - user, background change or a reverted change?
37
37
  */
38
- trigger?: 'edit' | 'tick' | 'undo';
38
+ trigger?: 'edit' | 'tick' | 'undo' | 'aggChange';
39
39
  }
40
40
  export interface DataChangedScope {
41
41
  wholeRow: boolean;
@@ -22,7 +22,7 @@ export interface FDC3Context {
22
22
  [key: string]: string | undefined;
23
23
  };
24
24
  /**
25
- * @hidden
25
+ * @internal
26
26
  * Custom properties and metadata. This can be extended in specific context object.
27
27
  */
28
28
  [key: string]: unknown;
@@ -32,23 +32,15 @@ export interface FDC3Context {
32
32
  */
33
33
  export interface InstrumentContext extends FDC3Context {
34
34
  /**
35
- * The context type is always 'instrument'.
35
+ * Context type is always 'instrument'
36
36
  */
37
37
  type: 'instrument';
38
38
  /**
39
- * Free text name of the instrument.
39
+ * Free text name of instrument
40
40
  */
41
41
  name: string;
42
42
  /**
43
- * The instrument data. Can contain some or all of:
44
- * * `ticker`: a ticker
45
- * * `ISIN`: [ISIN](https://www.isin.org/isin/)
46
- * * `CUSIP`: [CUSIP](https://www.cusip.com/cusip/index.htm)
47
- * * `SEDOL`: [SEDOL](https://www.londonstockexchange.com/products-and-services/reference-data/sedol-master-file/sedol-master-file.htm)
48
- * * `RIC`: [Reuters Instrument Code (RIC)](https://en.wikipedia.org/wiki/Reuters_Instrument_Code)
49
- * * `BBG`: [Bloomberg Ticker](https://www.bloomberg.com/professional/product/market-data/)
50
- * * `PERMID`: [PERMID](https://permid.org/)
51
- * * `FIGI`: [FIGI](https://www.openfigi.com/about/figi)
43
+ * The instrument data
52
44
  */
53
45
  id: {
54
46
  [key: string]: string;
@@ -0,0 +1,15 @@
1
+ import { AdaptableStyle } from '../../../types';
2
+ export interface RowHighlightInfo {
3
+ /**
4
+ * Primary key value for the row to be highlighted
5
+ */
6
+ primaryKeyValue: any;
7
+ /**
8
+ * Timeout after which the highlight is removed
9
+ */
10
+ timeout?: number;
11
+ /**
12
+ * Highlight style
13
+ */
14
+ highlightStyle: AdaptableStyle;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -22,7 +22,7 @@ export declare type AdaptableModuleButtons = AdaptableModuleButton[];
22
22
  export declare type AdaptableModuleButton = 'Alert' | 'FlashingCell' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme';
23
23
  export declare type AdaptableStateKeys = AdaptableStateKey[];
24
24
  export declare type AdaptableStateKey = 'Alert' | 'FlashingCell' | 'Application' | 'CalculatedColumn' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataSource' | 'Export' | 'Filter' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'Theme' | 'ToolPanel';
25
- export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
25
+ export declare type AdaptableModule = 'Alert' | 'BulkUpdate' | 'CalculatedColumn' | 'CellSummary' | 'Charting' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'Glue42' | 'GridInfo' | 'IPushPull' | 'Layout' | 'OpenFin' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'SettingsPanel' | 'Shortcut' | 'SmartEdit' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel' | 'CustomSettingsPanelModule';
26
26
  export declare type AdaptableSettingsPanel = 'Alert' | 'CalculatedColumn' | 'ConditionalStyle' | 'CustomSort' | 'Dashboard' | 'DataChangeHistory' | 'DataSource' | 'Export' | 'Filter' | 'FlashingCell' | 'FormatColumn' | 'FreeTextColumn' | 'GridInfo' | 'Layout' | 'PlusMinus' | 'Query' | 'QuickSearch' | 'Schedule' | 'Shortcut' | 'StateManagement' | 'SystemStatus' | 'TeamSharing' | 'Theme' | 'ToolPanel';
27
27
  export declare type TypeHint<Base, Literals> = (Base & {
28
28
  __subType?: true;
@@ -6,7 +6,6 @@ import { SuspendableObject } from './Common/SuspendableObject';
6
6
  export interface CustomSortState extends ConfigState {
7
7
  /**
8
8
  * Collection of Custom Sort objects.
9
- * @defaultValue []
10
9
  */
11
10
  CustomSorts?: CustomSort[];
12
11
  }
@@ -20,10 +20,13 @@ export declare type FlashingCellRule = XOR<{
20
20
  export interface FlashingCellState extends ConfigState {
21
21
  /**
22
22
  * Flashing Cell Definitions - will colour cells/rows when rule is met
23
- * @defaultValue null
24
23
  */
25
24
  FlashingCellDefinitions?: FlashingCellDefinition[];
26
25
  }
26
+ /**
27
+ * What should flash? row, cell or aggregated cell
28
+ */
29
+ export declare type FlashTargetTypes = 'row' | 'cell' | 'aggFuncCell';
27
30
  /**
28
31
  * The Flashing Cell Definition
29
32
  */
@@ -40,7 +43,7 @@ export interface FlashingCellDefinition extends SuspendableObject {
40
43
  * Should a cell or whole row flash
41
44
  * @defaultValue 'cell'
42
45
  */
43
- FlashTarget?: 'row' | 'cell';
46
+ FlashTarget?: FlashTargetTypes | FlashTargetTypes[];
44
47
  /**
45
48
  * Style for 'Down' value changes
46
49
  * @defaultValue Red BackColour
@@ -39,7 +39,7 @@ export interface FreeTextColumn extends AdaptableObject {
39
39
  * Whether Column is String, Number, Boolean or Date
40
40
  * @defaultValue 'String'
41
41
  */
42
- DataType?: 'String' | 'Number' | 'Boolean' | 'Date';
42
+ DataType: 'String' | 'Number' | 'Boolean' | 'Date';
43
43
  /**
44
44
  * Additional optional properties for Column (e.g. filterable, resizable)
45
45
  */
@@ -7,12 +7,10 @@ import { ColumnSort } from './Common/ColumnSort';
7
7
  export interface LayoutState extends ConfigState {
8
8
  /**
9
9
  * Layout which will be loaded when AdapTable starts - must match `Name` property in Layout
10
- * @defaultValue ''
11
10
  */
12
11
  CurrentLayout?: string;
13
12
  /**
14
13
  * Collection of Layout objects - listed in Layout toolbar and Tool Panel
15
- * @defaultValue null
16
14
  */
17
15
  Layouts?: Layout[];
18
16
  }
@@ -23,7 +23,7 @@ import { QueryState } from './QueryState';
23
23
  */
24
24
  export interface PredefinedConfig {
25
25
  /**
26
- * Supplies a collection of *Alert Definition* objects which will fire when their definition is triggered, and where Alerts are displayed
26
+ * Collection of `AlertDefinitions` which will fire Alerts when the rule is met
27
27
  */
28
28
  Alert?: AlertState;
29
29
  /**
@@ -58,6 +58,10 @@ export interface PredefinedConfig {
58
58
  * Stores Filters in AdapTable - both System and Column (predicate) Filters
59
59
  */
60
60
  Filter?: FilterState;
61
+ /***
62
+ * Objects which define which cells flash in response to data changes
63
+ */
64
+ FlashingCell?: FlashingCellState;
61
65
  /**
62
66
  * Supplies a collection of *FormatColumn* objects that will style an entire column in a single way (and not subject to a rule like with Conditional Style).
63
67
  */
@@ -98,5 +102,4 @@ export interface PredefinedConfig {
98
102
  * Sets the order and visibility of the Tool Panel controls in the AdapTable ToolPanel (on right of grid)
99
103
  */
100
104
  ToolPanel?: ToolPanelState;
101
- FlashingCell?: FlashingCellState;
102
105
  }
@@ -6,7 +6,8 @@ import type { IPushPullState, IPushPullReport, IPushPullDomain } from './IPushPu
6
6
  import { Glue42State, Glue42Report } from './Glue42State';
7
7
  import { OpenFinState, OpenFinReport } from './OpenFinState';
8
8
  import { AdaptableAlert } from './Common/AdaptableAlert';
9
- import { CellHighlightInfo, RowHighlightInfo } from './Common/CellHighlightInfo';
9
+ import { CellHighlightInfo } from './Common/CellHighlightInfo';
10
+ import { RowHighlightInfo } from './Common/RowHighlightInfo';
10
11
  import { SystemStatusMessageInfo } from './Common/SystemStatusMessageInfo';
11
12
  import { CachedQuery } from './QueryState';
12
13
  import { AdaptableFlashingCell } from './Common/AdaptableFlashingCell';
@@ -37,19 +37,25 @@ exports.ApplicationReducer = (state = initialState, action) => {
37
37
  const actionTypedAdd = action;
38
38
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
39
39
  applicationDataEntries.push(actionTypedAdd.applicationDataEntry);
40
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
40
+ return Object.assign({}, state, {
41
+ ApplicationDataEntries: applicationDataEntries,
42
+ });
41
43
  case exports.APPLICATION_DATA_ENTRY_EDIT:
42
44
  const actionTypedUpdate = action;
43
45
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
44
46
  index = applicationDataEntries.findIndex((fe) => fe.Key == actionTypedUpdate.applicationDataEntry.Key);
45
47
  applicationDataEntries[index] = actionTypedUpdate.applicationDataEntry;
46
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
48
+ return Object.assign({}, state, {
49
+ ApplicationDataEntries: applicationDataEntries,
50
+ });
47
51
  case exports.APPLICATION_DATA_ENTRY_DELETE:
48
52
  const actionTypedDelete = action;
49
53
  applicationDataEntries = [].concat(state.ApplicationDataEntries);
50
54
  index = applicationDataEntries.findIndex((a) => a.Key == actionTypedDelete.applicationDataEntry.Key);
51
55
  applicationDataEntries.splice(index, 1);
52
- return Object.assign({}, state, { ApplicationDataEntries: applicationDataEntries });
56
+ return Object.assign({}, state, {
57
+ ApplicationDataEntries: applicationDataEntries,
58
+ });
53
59
  default:
54
60
  return state;
55
61
  }
@@ -64,28 +64,24 @@ exports.FlashingCellReducer = (state = initialState, action) => {
64
64
  let flashingCellDefinitions;
65
65
  switch (action.type) {
66
66
  case exports.FLASHING_ALERT_DEFINITION_SET: {
67
- const actionFlashingCellDefinition = action
68
- .flashingCellDefinitions;
67
+ const actionFlashingCellDefinition = action.flashingCellDefinitions;
69
68
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: actionFlashingCellDefinition });
70
69
  }
71
70
  case exports.FLASHING_ALERT_DEFINITION_ADD: {
72
- const actionFlashingCellDefinition = action
73
- .flashingCellDefinition;
71
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
74
72
  AdaptableHelper_1.default.addUuidAndSource(actionFlashingCellDefinition);
75
73
  flashingCellDefinitions = [].concat(state.FlashingCellDefinitions);
76
74
  flashingCellDefinitions.push(actionFlashingCellDefinition);
77
75
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: flashingCellDefinitions });
78
76
  }
79
77
  case exports.FLASHING_ALERT_DEFINITION_EDIT: {
80
- const actionFlashingCellDefinition = action
81
- .flashingCellDefinition;
78
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
82
79
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.map((abObject) => abObject.Uuid === actionFlashingCellDefinition.Uuid
83
80
  ? actionFlashingCellDefinition
84
81
  : abObject) });
85
82
  }
86
83
  case exports.FLASHING_ALERT_DEFINITION_DELETE: {
87
- const actionFlashingCellDefinition = action
88
- .flashingCellDefinition;
84
+ const actionFlashingCellDefinition = action.flashingCellDefinition;
89
85
  return Object.assign(Object.assign({}, state), { FlashingCellDefinitions: state.FlashingCellDefinitions.filter((abObject) => abObject.Uuid !== actionFlashingCellDefinition.Uuid) });
90
86
  }
91
87
  case exports.FLASHING_ALERT_DEFINITION_SUSPEND: {
@@ -177,7 +177,9 @@ exports.GridReducer = (state = initialState, action) => {
177
177
  const removeColumn = action.column;
178
178
  return Object.assign(Object.assign({}, state), { Columns: state.Columns.filter((abObject) => abObject.Uuid !== removeColumn.Uuid) });
179
179
  case exports.GRID_SET_SORT:
180
- return Object.assign({}, state, { ColumnSorts: action.columnSorts });
180
+ return Object.assign({}, state, {
181
+ ColumnSorts: action.columnSorts,
182
+ });
181
183
  case exports.GRID_CLEAR_SORT:
182
184
  return Object.assign({}, state, { ColumnSorts: undefined });
183
185
  case exports.GRID_SET_SELECTED_CELLS: