@adaptabletools/adaptable 11.1.7 → 11.1.10
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.
- package/base.css +16 -0
- package/bundle.cjs.js +106 -106
- package/index.css +20 -0
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -1
- package/src/AdaptableOptions/AdaptableOptions.d.ts +1 -1
- package/src/AdaptableOptions/AlertOptions.d.ts +9 -2
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +57 -16
- package/src/AdaptableOptions/GeneralOptions.d.ts +7 -0
- package/src/AdaptableOptions/UserInterfaceOptions.d.ts +7 -0
- package/src/Api/AdaptableApi.d.ts +5 -0
- package/src/Api/CellSummaryApi.d.ts +8 -0
- package/src/Api/ColumnApi.d.ts +6 -1
- package/src/Api/ConfigApi.d.ts +8 -2
- package/src/Api/Implementation/AdaptableApiImpl.d.ts +2 -0
- package/src/Api/Implementation/AdaptableApiImpl.js +2 -0
- package/src/Api/Implementation/AlertApiImpl.js +32 -15
- package/src/Api/Implementation/CellSummaryApiImpl.d.ts +2 -0
- package/src/Api/Implementation/CellSummaryApiImpl.js +34 -0
- package/src/Api/Implementation/ColumnApiImpl.d.ts +2 -1
- package/src/Api/Implementation/ColumnApiImpl.js +7 -3
- package/src/Api/Implementation/ConfigApiImpl.d.ts +2 -2
- package/src/Api/Implementation/ConfigApiImpl.js +8 -29
- package/src/Api/Implementation/GridApiImpl.js +0 -4
- package/src/Api/Implementation/InternalApiImpl.d.ts +2 -1
- package/src/Api/Implementation/InternalApiImpl.js +29 -7
- package/src/Api/Implementation/LayoutApiImpl.d.ts +5 -4
- package/src/Api/Implementation/LayoutApiImpl.js +13 -7
- package/src/Api/Implementation/QueryApiImpl.d.ts +1 -0
- package/src/Api/Implementation/QueryApiImpl.js +12 -0
- package/src/Api/Implementation/StatusBarApiImpl.d.ts +8 -0
- package/src/Api/Implementation/StatusBarApiImpl.js +17 -0
- package/src/Api/InternalApi.d.ts +2 -1
- package/src/Api/LayoutApi.d.ts +16 -9
- package/src/Api/QueryApi.d.ts +6 -0
- package/src/Api/StatusBarApi.d.ts +10 -0
- package/src/Api/StatusBarApi.js +2 -0
- package/src/PredefinedConfig/AdaptableState.d.ts +20 -8
- package/src/PredefinedConfig/Common/FDC3Context.d.ts +61 -29
- package/src/PredefinedConfig/Common/Types.d.ts +6 -3
- package/src/PredefinedConfig/Common/Types.js +32 -1
- package/src/PredefinedConfig/FlashingCellState.d.ts +1 -1
- package/src/PredefinedConfig/FormatColumnState.d.ts +1 -1
- package/src/PredefinedConfig/GridState.d.ts +1 -1
- package/src/PredefinedConfig/PredefinedConfig.d.ts +5 -0
- package/src/PredefinedConfig/StatusBarState.d.ts +27 -0
- package/src/PredefinedConfig/StatusBarState.js +7 -0
- package/src/PredefinedConfig/ToolPanelState.d.ts +1 -1
- package/src/Redux/ActionsReducers/GridRedux.d.ts +2 -2
- package/src/Redux/ActionsReducers/GridRedux.js +4 -4
- package/src/Redux/ActionsReducers/StatusBarRedux.d.ts +22 -0
- package/src/Redux/ActionsReducers/StatusBarRedux.js +31 -0
- package/src/Redux/ActionsReducers/SystemRedux.d.ts +8 -3
- package/src/Redux/ActionsReducers/SystemRedux.js +22 -5
- package/src/Redux/Store/AdaptableReduxMerger.js +2 -2
- package/src/Redux/Store/AdaptableStore.js +24 -10
- package/src/Strategy/AlertModule.d.ts +3 -0
- package/src/Strategy/AlertModule.js +6 -0
- package/src/Strategy/CellSummaryModule.d.ts +6 -0
- package/src/Strategy/CellSummaryModule.js +14 -0
- package/src/Strategy/DataChangeHistoryModule.d.ts +7 -0
- package/src/Strategy/DataChangeHistoryModule.js +11 -0
- package/src/Strategy/ExportModule.d.ts +1 -0
- package/src/Strategy/ExportModule.js +1 -0
- package/src/Strategy/FilterModule.d.ts +6 -0
- package/src/Strategy/FilterModule.js +21 -0
- package/src/Strategy/Interface/IModule.d.ts +21 -10
- package/src/Strategy/LayoutModule.d.ts +7 -0
- package/src/Strategy/LayoutModule.js +14 -1
- package/src/Strategy/QueryModule.d.ts +8 -0
- package/src/Strategy/QueryModule.js +18 -0
- package/src/Strategy/QuickSearchModule.d.ts +6 -0
- package/src/Strategy/QuickSearchModule.js +10 -0
- package/src/Strategy/StatusBarModule.d.ts +8 -0
- package/src/Strategy/StatusBarModule.js +39 -0
- package/src/Strategy/SystemStatusModule.d.ts +6 -0
- package/src/Strategy/SystemStatusModule.js +10 -0
- package/src/Strategy/ThemeModule.d.ts +7 -0
- package/src/Strategy/ThemeModule.js +12 -0
- package/src/Strategy/Utilities/getAlertBehaviourViewItems.js +1 -1
- package/src/Utilities/Constants/GeneralConstants.d.ts +1 -0
- package/src/Utilities/Constants/GeneralConstants.js +2 -1
- package/src/Utilities/Constants/ModuleConstants.d.ts +1 -0
- package/src/Utilities/Constants/ModuleConstants.js +2 -1
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +4 -1
- package/src/Utilities/Defaults/DefaultSettingsPanel.js +1 -0
- package/src/Utilities/Services/ModuleService.js +6 -6
- package/src/View/AdaptablePopover/index.d.ts +1 -0
- package/src/View/AdaptablePopover/index.js +5 -2
- package/src/View/AdaptableViewFactory.js +2 -2
- package/src/View/Alert/AlertStatusSubPanel.d.ts +2 -0
- package/src/View/Alert/AlertStatusSubPanel.js +56 -0
- package/src/View/Alert/AlertViewPanel.js +6 -7
- package/src/View/Alert/AlertsPanel.d.ts +1 -1
- package/src/View/Alert/AlertsPanel.js +2 -1
- package/src/View/Alert/Utilities/getAlertButtonStyle.d.ts +5 -0
- package/src/View/Alert/Utilities/getAlertButtonStyle.js +15 -0
- package/src/View/Alert/Wizard/AlertBehaviourWizardSection.js +18 -7
- package/src/View/Alert/Wizard/AlertButtonsEditor.js +1 -8
- package/src/View/Alert/Wizard/AlertWizard.js +3 -2
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusBarSubPanelPopover.js +15 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.d.ts +2 -0
- package/src/View/CellSummary/CellSummaryStatusPanel.js +36 -0
- package/src/View/CellSummary/CellSummaryViewPanel.js +2 -20
- package/src/View/ColorPicker.d.ts +1 -1
- package/src/View/Components/AdaptableDateInput/index.d.ts +1 -1
- package/src/View/Components/AdaptableInput/index.d.ts +1 -1
- package/src/View/Components/Buttons/ButtonDelete.d.ts +1 -1
- package/src/View/Components/FilterForm/getDefaultColumnFilterPredicate.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.d.ts +1 -1
- package/src/View/Components/Forms/AdaptableFormControlTextClear.js +1 -1
- package/src/View/Components/Panels/PanelWithImage.d.ts +6 -6
- package/src/View/Components/Popups/AdaptablePopup/AdaptablePopupModuleView.js +5 -4
- package/src/View/Components/Popups/AdaptablePopup/useMenuItems.js +1 -1
- package/src/View/Components/RangesComponent.js +6 -2
- package/src/View/Components/StyleComponent.js +18 -6
- package/src/View/Components/ToolPanel/AdaptableToolPanel.js +1 -1
- package/src/View/Components/ToolPanel/ToolPanelPopup.js +3 -3
- package/src/View/Dashboard/DashboardPopup.js +2 -2
- package/src/View/DataChangeHistory/DataChangeHistoryGrid.js +5 -13
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.d.ts +2 -0
- package/src/View/DataChangeHistory/DataChangeHistoryStatusBarContent.js +9 -0
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.d.ts +4 -16
- package/src/View/DataChangeHistory/DataChangeHistoryViewPanel.js +32 -40
- package/src/View/Filter/ActiveFiltersPanel.d.ts +0 -2
- package/src/View/Filter/FilterStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Filter/FilterStatusBarSubPanelPopover.js +18 -0
- package/src/View/Filter/FilterViewPanel.js +1 -1
- package/src/View/FormatColumn/Wizard/FormatColumnStyleWizardSection.js +1 -1
- package/src/View/GridInfo/GridInfoPopup.js +4 -1
- package/src/View/Layout/EditCurrentLayoutButton.d.ts +2 -0
- package/src/View/Layout/EditCurrentLayoutButton.js +14 -0
- package/src/View/Layout/LayoutPopup.d.ts +1 -1
- package/src/View/Layout/LayoutPopup.js +3 -3
- package/src/View/Layout/LayoutRadioSelector.d.ts +1 -0
- package/src/View/Layout/LayoutRadioSelector.js +2 -2
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.d.ts +2 -0
- package/src/View/Layout/LayoutStatusBarSubPanelPopover.js +29 -0
- package/src/View/Layout/Wizard/LayoutEditor/ColumnLabels.js +2 -1
- package/src/View/Layout/Wizard/LayoutEditor/index.js +1 -1
- package/src/View/Layout/Wizard/LayoutEditorWizard.js +2 -1
- package/src/View/Query/EditCurrentQueryButton.d.ts +2 -0
- package/src/View/Query/EditCurrentQueryButton.js +15 -0
- package/src/View/Query/QueryViewPanel.d.ts +0 -1
- package/src/View/Query/QueryViewPanel.js +2 -11
- package/src/View/QuickSearch/QuickSearchPopup.js +1 -1
- package/src/View/QuickSearch/QuickSearchStatusBarContent.d.ts +2 -0
- package/src/View/QuickSearch/QuickSearchStatusBarContent.js +16 -0
- package/src/View/StateManagement/StateManagementPopup.js +9 -7
- package/src/View/StateManagement/StateManagementViewPanel.js +1 -2
- package/src/View/StateManagement/components/ExportDropdown.d.ts +1 -1
- package/src/View/StateManagement/components/ExportDropdown.js +3 -7
- package/src/View/StateManagement/handleExportState.d.ts +1 -1
- package/src/View/StatusBar/AdaptableStatusBar.d.ts +3 -0
- package/src/View/StatusBar/AdaptableStatusBar.js +44 -0
- package/src/View/StatusBar/StatusBarPanel.d.ts +42 -0
- package/src/View/StatusBar/StatusBarPanel.js +45 -0
- package/src/View/StatusBar/StatusBarPopup.d.ts +3 -0
- package/src/View/StatusBar/StatusBarPopup.js +43 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.d.ts +2 -0
- package/src/View/SystemStatus/SystemStatusStatusBarContent.js +15 -0
- package/src/View/SystemStatus/SystemStatusViewPanel.js +3 -7
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.d.ts +5 -0
- package/src/View/SystemStatus/Utilities/getStatusItemStyle.js +16 -0
- package/src/View/Theme/ThemeStatusPanelPopover.d.ts +2 -0
- package/src/View/Theme/ThemeStatusPanelPopover.js +36 -0
- package/src/agGrid/Adaptable.d.ts +2 -0
- package/src/agGrid/Adaptable.js +30 -3
- package/src/agGrid/agGridHelper.js +2 -0
- package/src/agGrid/agGridMenuHelper.js +2 -2
- package/src/agGrid/createAgStatusPanelComponent.d.ts +21 -0
- package/src/agGrid/createAgStatusPanelComponent.js +31 -0
- package/src/components/AdaptableFormComponent/AdaptableFormComponent.js +1 -1
- package/src/components/Dashboard/DashboardManager.js +9 -162
- package/src/components/Datepicker/index.d.ts +1 -1
- package/src/components/DragAndDropContext/DragAndDropContext.d.ts +7 -0
- package/src/components/DragAndDropContext/DragAndDropContext.js +14 -0
- package/src/components/DragAndDropContext/ModuleManager.d.ts +17 -0
- package/src/components/DragAndDropContext/ModuleManager.js +81 -0
- package/src/components/DragAndDropContext/TabList.d.ts +29 -0
- package/src/components/DragAndDropContext/TabList.js +72 -0
- package/src/components/DragAndDropContext/UnusedPanel.d.ts +6 -0
- package/src/components/DragAndDropContext/UnusedPanel.js +46 -0
- package/src/components/DragAndDropContext/types.d.ts +8 -0
- package/src/components/DragAndDropContext/types.js +2 -0
- package/src/components/FormLayout/index.d.ts +1 -0
- package/src/components/Input/index.d.ts +1 -1
- package/src/components/List/ListGroupItem/index.d.ts +1 -1
- package/src/components/PopupWithFooter.d.ts +1 -1
- package/src/components/SimpleButton/index.js +3 -0
- package/src/components/Textarea/index.d.ts +1 -1
- package/src/components/icons/DefaultIcon.d.ts +2 -1
- package/src/components/icons/DefaultIcon.js +2 -2
- package/src/components/icons/index.js +2 -0
- package/src/components/icons/statusbar.d.ts +3 -0
- package/src/components/icons/statusbar.js +8 -0
- package/src/metamodel/adaptable.metamodel.d.ts +236 -0
- package/src/metamodel/adaptable.metamodel.js +466 -47
- package/src/types.d.ts +5 -4
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -71,39 +71,15 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
71
71
|
getAllState() {
|
|
72
72
|
return this.getAdaptableState();
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
'Alert',
|
|
78
|
-
'Application',
|
|
79
|
-
'CalculatedColumn',
|
|
80
|
-
'ConditionalStyle',
|
|
81
|
-
'CustomSort',
|
|
82
|
-
'Dashboard',
|
|
83
|
-
'DataSource',
|
|
84
|
-
'Entitlement',
|
|
85
|
-
'Export',
|
|
86
|
-
'Filter',
|
|
87
|
-
'FormatColumn',
|
|
88
|
-
'FreeTextColumn',
|
|
89
|
-
'Layout',
|
|
90
|
-
'PlusMinus',
|
|
91
|
-
'Query',
|
|
92
|
-
'QuickSearch',
|
|
93
|
-
'Shortcut',
|
|
94
|
-
'Theme',
|
|
95
|
-
'ToolPanel',
|
|
96
|
-
];
|
|
74
|
+
getPersistedState() {
|
|
75
|
+
// no assertion should be required here as soon as we make order in our state typings
|
|
76
|
+
return this.adaptable.adaptableStore.getCurrentStorageState();
|
|
97
77
|
}
|
|
98
78
|
getAllUserState() {
|
|
99
|
-
|
|
100
|
-
const allState = this.getAllState();
|
|
101
|
-
return userStateKeys.map((k) => allState[k]);
|
|
79
|
+
return Object.values(this.getPersistedState());
|
|
102
80
|
}
|
|
103
81
|
loadUserState(state) {
|
|
104
|
-
|
|
105
|
-
const userState = Object.keys(state).reduce((xs, x) => (userStateKeys.indexOf(x) !== -1 ? Object.assign(Object.assign({}, xs), { [x]: state[x] }) : xs), {});
|
|
106
|
-
this.dispatchAction(AdaptableStore_1.LoadState(userState));
|
|
82
|
+
this.dispatchAction(AdaptableStore_1.LoadState(state));
|
|
107
83
|
}
|
|
108
84
|
getAdaptableSearchState() {
|
|
109
85
|
const currentQuery = this.adaptable.api.queryApi.getCurrentQuery();
|
|
@@ -374,6 +350,9 @@ class ConfigApiImpl extends ApiBase_1.ApiBase {
|
|
|
374
350
|
case 'ToolPanel':
|
|
375
351
|
this.dispatchAction(ToolPanelRedux.ToolPanelReady(this.getToolPanelState()));
|
|
376
352
|
break;
|
|
353
|
+
case 'StatusBar':
|
|
354
|
+
this.dispatchAction(ToolPanelRedux.ToolPanelReady(this.getToolPanelState()));
|
|
355
|
+
break;
|
|
377
356
|
}
|
|
378
357
|
}
|
|
379
358
|
}
|
|
@@ -58,10 +58,6 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
58
58
|
LoggingHelper_1.LogAdaptableWarning(`setCellValue() - rowNode not found for primaryKeyValue: ${primaryKeyValue}`);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
if (!this.adaptable.isCellEditable(rowNode, this.adaptable.getAgGridColumnForColumnId(columnId))) {
|
|
62
|
-
LoggingHelper_1.LogAdaptableInfo(`setCellValue() - cell is not editable (primaryKeyValue: ${primaryKeyValue},columnId: ${columnId},value: ${newValue})`);
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
61
|
this.adaptable.setDataValue(newValue, abColumn, primaryKeyValue, rowNode);
|
|
66
62
|
}
|
|
67
63
|
setCellsValue(gridCells) {
|
|
@@ -60,7 +60,7 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
60
60
|
hidePopupScreen(): void;
|
|
61
61
|
hidePopupAlert(): void;
|
|
62
62
|
setColumns(columns: AdaptableColumn[]): void;
|
|
63
|
-
|
|
63
|
+
setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
64
64
|
setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
65
65
|
setSelectedCells(selectedCellInfo: SelectedCellInfo): void;
|
|
66
66
|
setSelectedRows(selectedRowInfo: SelectedRowInfo): void;
|
|
@@ -120,5 +120,6 @@ export declare class InternalApiImpl extends ApiBase implements InternalApi {
|
|
|
120
120
|
isTextComparisonCaseSensitive(): boolean;
|
|
121
121
|
executeWithProgressIndicator(label: string, executeFn: () => void): void;
|
|
122
122
|
hideProgressIndicator(): void;
|
|
123
|
+
getCorrectEnglishVariant(wordToSpell: string): string;
|
|
123
124
|
dispatchReduxAction(action: Action): void;
|
|
124
125
|
}
|
|
@@ -80,13 +80,27 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
getAdaptableAlertWithHighlightRow(rowNode) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var _a;
|
|
86
|
-
if ((
|
|
87
|
-
|
|
83
|
+
let alertWithRowHighlight;
|
|
84
|
+
alertWithRowHighlight = this.getAdaptableRowChangedAlerts().find((alert) => {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
if ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) {
|
|
87
|
+
if ((_b = alert.gridDataChangedInfo) === null || _b === void 0 ? void 0 : _b.rowNodes.map((rowNode) => rowNode.id).includes(rowNode.id)) {
|
|
88
|
+
return alert;
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
});
|
|
92
|
+
if (alertWithRowHighlight) {
|
|
93
|
+
return alertWithRowHighlight;
|
|
94
|
+
}
|
|
95
|
+
alertWithRowHighlight = this.getAdaptableCellChangedAlerts().find((alert) => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
if ((_a = alert.alertDefinition.AlertProperties) === null || _a === void 0 ? void 0 : _a.HighlightRow) {
|
|
98
|
+
if (((_b = alert.cellDataChangedInfo) === null || _b === void 0 ? void 0 : _b.rowNode.id) == rowNode.id) {
|
|
99
|
+
return alert;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
return alertWithRowHighlight;
|
|
90
104
|
}
|
|
91
105
|
isAlertDefinitionForAddedRowChangeEvent(alertDefinition) {
|
|
92
106
|
var _a, _b;
|
|
@@ -137,8 +151,8 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
137
151
|
setColumns(columns) {
|
|
138
152
|
this.dispatchAction(GridRedux.GridSetColumns(columns));
|
|
139
153
|
}
|
|
140
|
-
|
|
141
|
-
this.dispatchAction(GridRedux.
|
|
154
|
+
setSettingPanelModuleMenuItems(menuItems) {
|
|
155
|
+
this.dispatchAction(GridRedux.SetSettingPanelModuleMenuItems(menuItems));
|
|
142
156
|
}
|
|
143
157
|
setModuleButtonMenuItems(menuItems) {
|
|
144
158
|
this.dispatchAction(GridRedux.SetModuleButtonMenuItems(menuItems));
|
|
@@ -443,6 +457,14 @@ class InternalApiImpl extends ApiBase_1.ApiBase {
|
|
|
443
457
|
hideProgressIndicator() {
|
|
444
458
|
this.dispatchReduxAction(SystemRedux_1.SystemProgressIndicatorHide());
|
|
445
459
|
}
|
|
460
|
+
getCorrectEnglishVariant(wordToSpell) {
|
|
461
|
+
if (wordToSpell.includes('our')) {
|
|
462
|
+
return this.getGeneralOptions().englishVariant == 'GB'
|
|
463
|
+
? wordToSpell
|
|
464
|
+
: wordToSpell.replace('our', 'or');
|
|
465
|
+
}
|
|
466
|
+
return wordToSpell;
|
|
467
|
+
}
|
|
446
468
|
// General way to get to store from inside Adaptable...
|
|
447
469
|
dispatchReduxAction(action) {
|
|
448
470
|
this.dispatchAction(action);
|
|
@@ -20,12 +20,13 @@ export declare class LayoutApiImpl extends ApiBase implements LayoutApi {
|
|
|
20
20
|
getLayoutById(id: Layout['Uuid']): Layout;
|
|
21
21
|
saveCurrentLayout(): void;
|
|
22
22
|
doesLayoutExist(layout: Layout): boolean;
|
|
23
|
-
createAndSetLayout(layoutToCreate: Layout): Layout;
|
|
24
|
-
createLayout(layoutToCreate: Layout): Layout |
|
|
25
|
-
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
26
|
-
cloneLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
23
|
+
createAndSetLayout(layoutToCreate: Layout): Layout | false;
|
|
24
|
+
createLayout(layoutToCreate: Layout): Layout | false;
|
|
25
|
+
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
26
|
+
cloneLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
27
27
|
setColumnCaption(columnId: string, caption: string): void;
|
|
28
28
|
saveLayout(layoutToSave: Layout): void;
|
|
29
|
+
createOrUpdateLayout(layout: Layout): void;
|
|
29
30
|
areLayoutsEqual(layout1: Layout, layout2: Layout): boolean;
|
|
30
31
|
getLayoutDescription(layout: Layout): string;
|
|
31
32
|
private getColumnSort;
|
|
@@ -121,7 +121,7 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
121
121
|
createLayout(layoutToCreate) {
|
|
122
122
|
if (this.doesLayoutExist(layoutToCreate)) {
|
|
123
123
|
LoggingHelper_1.LogAdaptableError("Cannot create layout with the Name: '" + layoutToCreate.Name + "' as it already exists");
|
|
124
|
-
return;
|
|
124
|
+
return false;
|
|
125
125
|
}
|
|
126
126
|
const newLayout = ObjectFactory_1.default.CreateEmptyLayout(Object.assign({}, layoutToCreate));
|
|
127
127
|
this.addUidToAdaptableObject(newLayout);
|
|
@@ -129,18 +129,16 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
129
129
|
return newLayout;
|
|
130
130
|
}
|
|
131
131
|
cloneAndSetLayout(layoutToClone, layoutName) {
|
|
132
|
-
if (!this.doesLayoutExist(layoutToClone)) {
|
|
133
|
-
LoggingHelper_1.LogAdaptableError("Cannot clone layout with Name: '" + layoutName + "' as other Layout does not exist");
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
132
|
const newLayout = this.cloneLayout(layoutToClone, layoutName);
|
|
137
|
-
|
|
133
|
+
if (newLayout) {
|
|
134
|
+
this.setLayout(layoutName);
|
|
135
|
+
}
|
|
138
136
|
return newLayout;
|
|
139
137
|
}
|
|
140
138
|
cloneLayout(layoutToClone, layoutName) {
|
|
141
139
|
if (!this.doesLayoutExist(layoutToClone)) {
|
|
142
140
|
LoggingHelper_1.LogAdaptableError("Cannot clone layout with Name: '" + layoutName + "' as other Layout does not exist");
|
|
143
|
-
return;
|
|
141
|
+
return false;
|
|
144
142
|
}
|
|
145
143
|
const newLayout = Helper_1.default.cloneObject(layoutToClone);
|
|
146
144
|
newLayout.Uuid = Uuid_1.createUuid();
|
|
@@ -165,6 +163,14 @@ class LayoutApiImpl extends ApiBase_1.ApiBase {
|
|
|
165
163
|
this.dispatchAction(LayoutRedux.LayoutSave(layoutToSave));
|
|
166
164
|
}
|
|
167
165
|
}
|
|
166
|
+
createOrUpdateLayout(layout) {
|
|
167
|
+
if (!this.doesLayoutExist(layout)) {
|
|
168
|
+
this.createLayout(layout);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.dispatchAction(LayoutRedux.LayoutSave(layout));
|
|
172
|
+
}
|
|
173
|
+
}
|
|
168
174
|
areLayoutsEqual(layout1, layout2) {
|
|
169
175
|
if (!layout1 && !layout2) {
|
|
170
176
|
return true;
|
|
@@ -16,4 +16,5 @@ export declare class QueryApiImpl extends ApiBase implements QueryApi {
|
|
|
16
16
|
getCurrentQuery(): string | undefined;
|
|
17
17
|
getReferencedNamedQueryNames(expression?: string): string[];
|
|
18
18
|
getNamedQueryModuleReferences(namedQueryName: string): string[];
|
|
19
|
+
expandCurrentQuery(query?: string): void;
|
|
19
20
|
}
|
|
@@ -8,6 +8,7 @@ const StringExtensions_1 = require("../../Utilities/Extensions/StringExtensions"
|
|
|
8
8
|
const QueryRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/QueryRedux"));
|
|
9
9
|
const PopupRedux = tslib_1.__importStar(require("../../Redux/ActionsReducers/PopupRedux"));
|
|
10
10
|
const LoggingHelper_1 = require("../../Utilities/Helpers/LoggingHelper");
|
|
11
|
+
const windowFactory_1 = require("../../View/Components/Popups/WindowPopups/windowFactory");
|
|
11
12
|
class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
12
13
|
getQueryState() {
|
|
13
14
|
return this.getAdaptableState().Query;
|
|
@@ -76,5 +77,16 @@ class QueryApiImpl extends ApiBase_1.ApiBase {
|
|
|
76
77
|
});
|
|
77
78
|
return references;
|
|
78
79
|
}
|
|
80
|
+
expandCurrentQuery(query) {
|
|
81
|
+
const preparedQuery = query !== null && query !== void 0 ? query : this.getCurrentQuery();
|
|
82
|
+
this.adaptable.api.internalApi.dispatchReduxAction(PopupRedux.PopupShowWindow({
|
|
83
|
+
Id: windowFactory_1.WINDOW_QUERY_EDITOR,
|
|
84
|
+
Title: 'Current Query',
|
|
85
|
+
Icon: 'query',
|
|
86
|
+
PopupProps: {
|
|
87
|
+
value: preparedQuery,
|
|
88
|
+
},
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
79
91
|
}
|
|
80
92
|
exports.QueryApiImpl = QueryApiImpl;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AdaptableStatusBar } from '../../PredefinedConfig/StatusBarState';
|
|
2
|
+
import { StatusBarApi } from '../StatusBarApi';
|
|
3
|
+
import { ApiBase } from './ApiBase';
|
|
4
|
+
export declare class StatusBarApiImpl extends ApiBase implements StatusBarApi {
|
|
5
|
+
getStatusPanels(): AdaptableStatusBar[];
|
|
6
|
+
getAgGridStatusPanels(): import("@ag-grid-community/core").StatusPanelDef[];
|
|
7
|
+
setStatusPanels(statusPanels: AdaptableStatusBar[]): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StatusBarApiImpl = void 0;
|
|
4
|
+
const StatusBarRedux_1 = require("../../Redux/ActionsReducers/StatusBarRedux");
|
|
5
|
+
const ApiBase_1 = require("./ApiBase");
|
|
6
|
+
class StatusBarApiImpl extends ApiBase_1.ApiBase {
|
|
7
|
+
getStatusPanels() {
|
|
8
|
+
return StatusBarRedux_1.getStatusPanelsSelector(this.getAdaptableState());
|
|
9
|
+
}
|
|
10
|
+
getAgGridStatusPanels() {
|
|
11
|
+
return this.adaptable.getAgGridStatusPanels();
|
|
12
|
+
}
|
|
13
|
+
setStatusPanels(statusPanels) {
|
|
14
|
+
this.getAdaptableApi().internalApi.dispatchReduxAction(StatusBarRedux_1.StatusBarSetPanels(statusPanels));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.StatusBarApiImpl = StatusBarApiImpl;
|
package/src/Api/InternalApi.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface InternalApi {
|
|
|
65
65
|
hidePopupScreen(): void;
|
|
66
66
|
hidePopupAlert(): void;
|
|
67
67
|
setColumns(columns: AdaptableColumn[]): void;
|
|
68
|
-
|
|
68
|
+
setSettingPanelModuleMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
69
69
|
setModuleButtonMenuItems(menuItems: AdaptableMenuItem[]): void;
|
|
70
70
|
setSelectedCells(selectedCellInfo: SelectedCellInfo): void;
|
|
71
71
|
setSelectedRows(selectedRowInfo: SelectedRowInfo): void;
|
|
@@ -123,4 +123,5 @@ export interface InternalApi {
|
|
|
123
123
|
isTextComparisonCaseSensitive(): boolean;
|
|
124
124
|
executeWithProgressIndicator(label: string, executeFn: () => unknown): void;
|
|
125
125
|
hideProgressIndicator(): void;
|
|
126
|
+
getCorrectEnglishVariant(wordToSpell: string): string;
|
|
126
127
|
}
|
package/src/Api/LayoutApi.d.ts
CHANGED
|
@@ -65,36 +65,43 @@ export interface LayoutApi {
|
|
|
65
65
|
*/
|
|
66
66
|
saveCurrentLayout(): void;
|
|
67
67
|
/**
|
|
68
|
-
* Saves given Layout into Adaptable State
|
|
68
|
+
* Saves given Layout into Adaptable State (creates new Layout if it doesn't exist)
|
|
69
69
|
* @param layoutToSave the Layout to save
|
|
70
|
+
*
|
|
71
|
+
* @deprecated use {@link createOrUpdateLayout} instead
|
|
70
72
|
*/
|
|
71
73
|
saveLayout(layoutToSave: Layout): void;
|
|
74
|
+
/**
|
|
75
|
+
* Creates new Layout into Adaptable State or updates an existing Layout (with same name or id)
|
|
76
|
+
* @param layout the Layout to create or update
|
|
77
|
+
*/
|
|
78
|
+
createOrUpdateLayout(layout: Layout): void;
|
|
72
79
|
/**
|
|
73
80
|
* Creates new Layout in the state
|
|
74
81
|
* @param layoutToCreate Layout to create
|
|
75
|
-
* @returns
|
|
82
|
+
* @returns created Layout object or `false` if Layout with the same name/Uuid already exists
|
|
76
83
|
*/
|
|
77
|
-
createLayout(layoutToCreate: Layout): Layout |
|
|
84
|
+
createLayout(layoutToCreate: Layout): Layout | false;
|
|
78
85
|
/**
|
|
79
86
|
* Creates new Layout in the state and then loads it into Grid
|
|
80
87
|
* @param layoutToCreate Layout to create
|
|
81
|
-
* @returns
|
|
88
|
+
* @returns created Layout object or `false` if creation failed
|
|
82
89
|
*/
|
|
83
|
-
createAndSetLayout(layoutToCreate: Layout): Layout;
|
|
90
|
+
createAndSetLayout(layoutToCreate: Layout): Layout | false;
|
|
84
91
|
/**
|
|
85
92
|
* Creates new Layout based on given Layout but with name provided
|
|
86
93
|
* @param layoutToClone Layout to clone
|
|
87
94
|
* @param layoutName name to use for new Layout
|
|
88
|
-
* @returns
|
|
95
|
+
* @returns created Layout object or `false` if creation failed
|
|
89
96
|
*/
|
|
90
|
-
cloneLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
97
|
+
cloneLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
91
98
|
/**
|
|
92
99
|
* Creates new Layout based on given Layout but with name provided and then loads it into Grid
|
|
93
100
|
* @param layoutToClone Layout to clone
|
|
94
101
|
* @param layoutName name to use for new Layout
|
|
95
|
-
* @returns
|
|
102
|
+
* @returns created Layout object or `false` if creation failed
|
|
96
103
|
*/
|
|
97
|
-
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout;
|
|
104
|
+
cloneAndSetLayout(layoutToClone: Layout, layoutName: string): Layout | false;
|
|
98
105
|
/**
|
|
99
106
|
* Checks whether this Layout exists in the Adaptable State (by comparing Uuid property)
|
|
100
107
|
* @param layout Layout to check
|
package/src/Api/QueryApi.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GridOptions } from '@ag-grid-community/all-modules';
|
|
2
|
+
import { AdaptableStatusBar } from '../PredefinedConfig/StatusBarState';
|
|
3
|
+
export interface StatusBarApi {
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves the current AG Grid Status Bar Panels
|
|
6
|
+
*/
|
|
7
|
+
getAgGridStatusPanels: () => GridOptions['statusBar']['statusPanels'];
|
|
8
|
+
getStatusPanels: () => AdaptableStatusBar[];
|
|
9
|
+
setStatusPanels: (statusPanels: AdaptableStatusBar[]) => void;
|
|
10
|
+
}
|
|
@@ -23,17 +23,17 @@ import { ApplicationState } from './ApplicationState';
|
|
|
23
23
|
import { ToolPanelState } from './ToolPanelState';
|
|
24
24
|
import { QueryState } from './QueryState';
|
|
25
25
|
import { FlashingCellState } from './FlashingCellState';
|
|
26
|
+
import { StatusBarState } from './StatusBarState';
|
|
26
27
|
/**
|
|
27
|
-
* The main state object
|
|
28
|
+
* The main state object of Adaptable
|
|
28
29
|
*/
|
|
29
|
-
export interface AdaptableState {
|
|
30
|
+
export interface AdaptableState extends AdaptablePersistentState, AdaptableTransientState {
|
|
30
31
|
[s: string]: ConfigState;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The state object of Adaptable which is persisted
|
|
35
|
+
*/
|
|
36
|
+
export interface AdaptablePersistentState {
|
|
37
37
|
Application: ApplicationState;
|
|
38
38
|
Alert: AlertState;
|
|
39
39
|
FlashingCell: FlashingCellState;
|
|
@@ -52,7 +52,19 @@ export interface AdaptableState {
|
|
|
52
52
|
QuickSearch: QuickSearchState;
|
|
53
53
|
Schedule: ScheduleState;
|
|
54
54
|
Shortcut: ShortcutState;
|
|
55
|
+
StatusBar: StatusBarState;
|
|
55
56
|
TeamSharing: TeamSharingState;
|
|
56
57
|
Theme: ThemeState;
|
|
57
58
|
ToolPanel: ToolPanelState;
|
|
58
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The state which is available in the internal Redux store but never persisted
|
|
62
|
+
*/
|
|
63
|
+
export interface AdaptableTransientState {
|
|
64
|
+
Popup: PopupState;
|
|
65
|
+
Grid: GridState;
|
|
66
|
+
System: SystemState;
|
|
67
|
+
Plugins: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -8,17 +8,15 @@ import { FDC3Intent } from '../../types';
|
|
|
8
8
|
*/
|
|
9
9
|
export interface FDC3Context {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* This is used to refer to the accepted context(s) when declaring intents. See [[AppDirIntent]].
|
|
11
|
+
* Type of context that uniquely identifies it, e.g. "instrument"; used to refer to the accepted context(s) when declaring intents
|
|
13
12
|
*/
|
|
14
|
-
type:
|
|
13
|
+
type: ContextType;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
17
|
-
* Implementors of context may choose to make the name mandatory.
|
|
15
|
+
* Name of the context data (optional) - a text string that describes the data being sent
|
|
18
16
|
*/
|
|
19
17
|
name?: string;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* Optional map of any equivalent identifiers for the context type, e.g. ISIN, CUSIP, etc. for Instrument
|
|
22
20
|
*/
|
|
23
21
|
id?: {
|
|
24
22
|
[key: string]: string | undefined;
|
|
@@ -30,19 +28,19 @@ export interface FDC3Context {
|
|
|
30
28
|
[key: string]: unknown;
|
|
31
29
|
}
|
|
32
30
|
/**
|
|
33
|
-
*
|
|
31
|
+
* FDC3 Context to define a financial Instrument
|
|
34
32
|
*/
|
|
35
33
|
export interface InstrumentContext extends FDC3Context {
|
|
36
34
|
/**
|
|
37
|
-
* Context type is always
|
|
35
|
+
* Context type is always `instrument`
|
|
38
36
|
*/
|
|
39
37
|
type: 'instrument';
|
|
40
38
|
/**
|
|
41
|
-
* Free text name of
|
|
39
|
+
* Free text name of the Instrument
|
|
42
40
|
*/
|
|
43
41
|
name?: string;
|
|
44
42
|
/**
|
|
45
|
-
*
|
|
43
|
+
* Instrument data: ticker, ISIN, CUSIP, SEDOL, RIC, BBG, PERMID, FIGI
|
|
46
44
|
*/
|
|
47
45
|
id?: {
|
|
48
46
|
[key: string]: string;
|
|
@@ -57,13 +55,16 @@ export interface InstrumentContext extends FDC3Context {
|
|
|
57
55
|
FIGI?: string;
|
|
58
56
|
};
|
|
59
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* FDC3 Context to define an array of financial Instruments
|
|
60
|
+
*/
|
|
60
61
|
export interface InstrumentListContext extends FDC3Context {
|
|
61
62
|
/**
|
|
62
|
-
* Context type is always
|
|
63
|
+
* Context type is always `instrumentList`
|
|
63
64
|
*/
|
|
64
65
|
type: 'instrumentList';
|
|
65
66
|
/**
|
|
66
|
-
* Free text name of
|
|
67
|
+
* Free text name of list of Instruments (not set by AdapTable)
|
|
67
68
|
*/
|
|
68
69
|
name?: string;
|
|
69
70
|
/**
|
|
@@ -76,13 +77,16 @@ export interface InstrumentListContext extends FDC3Context {
|
|
|
76
77
|
instruments?: InstrumentContext[];
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
+
* FDC3 Context to define a financial Position (requires an Instrument)
|
|
80
81
|
*/
|
|
81
82
|
export interface PositionContext extends FDC3Context {
|
|
82
83
|
/**
|
|
83
|
-
* Context type is always
|
|
84
|
+
* Context type is always `position`
|
|
84
85
|
*/
|
|
85
86
|
type: 'position';
|
|
87
|
+
/**
|
|
88
|
+
* The `InstrumentContext` of the relevant Instrument
|
|
89
|
+
*/
|
|
86
90
|
instrument: InstrumentContext;
|
|
87
91
|
/**
|
|
88
92
|
* Free text name of Position
|
|
@@ -93,13 +97,16 @@ export interface PositionContext extends FDC3Context {
|
|
|
93
97
|
*/
|
|
94
98
|
id?: any;
|
|
95
99
|
/**
|
|
96
|
-
* Holding in the Position
|
|
100
|
+
* Holding in the Position (mandatory)
|
|
97
101
|
*/
|
|
98
102
|
holding: number;
|
|
99
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* FDC3 Context to define a financial Portfolio (array of Positions)
|
|
106
|
+
*/
|
|
100
107
|
export interface PortfolioContext extends FDC3Context {
|
|
101
108
|
/**
|
|
102
|
-
* Context type is always
|
|
109
|
+
* Context type is always `portfolio`
|
|
103
110
|
*/
|
|
104
111
|
type: 'portfolio';
|
|
105
112
|
/**
|
|
@@ -115,17 +122,20 @@ export interface PortfolioContext extends FDC3Context {
|
|
|
115
122
|
*/
|
|
116
123
|
positions?: PositionContext[];
|
|
117
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* FDC3 Context to define a Contact
|
|
127
|
+
*/
|
|
118
128
|
export interface ContactContext extends FDC3Context {
|
|
119
129
|
/**
|
|
120
|
-
* Context type is always
|
|
130
|
+
* Context type is always `contact`
|
|
121
131
|
*/
|
|
122
132
|
type: 'contact';
|
|
123
133
|
/**
|
|
124
|
-
* Free text name of
|
|
134
|
+
* Free text name of Contact
|
|
125
135
|
*/
|
|
126
136
|
name?: string;
|
|
127
137
|
/**
|
|
128
|
-
* The
|
|
138
|
+
* The Contact data: email, FDS_ID
|
|
129
139
|
*/
|
|
130
140
|
id?: {
|
|
131
141
|
[key: string]: string;
|
|
@@ -134,13 +144,16 @@ export interface ContactContext extends FDC3Context {
|
|
|
134
144
|
FDS_ID?: string;
|
|
135
145
|
};
|
|
136
146
|
}
|
|
147
|
+
/**
|
|
148
|
+
* FDC3 Context to define a list of Contacts
|
|
149
|
+
*/
|
|
137
150
|
export interface ContactListContext extends FDC3Context {
|
|
138
151
|
/**
|
|
139
|
-
* Context type is always
|
|
152
|
+
* Context type is always `contactList`
|
|
140
153
|
*/
|
|
141
154
|
type: 'contactList';
|
|
142
155
|
/**
|
|
143
|
-
* Free text name of
|
|
156
|
+
* Free text name of Contact list
|
|
144
157
|
*/
|
|
145
158
|
name?: string;
|
|
146
159
|
/**
|
|
@@ -148,21 +161,24 @@ export interface ContactListContext extends FDC3Context {
|
|
|
148
161
|
*/
|
|
149
162
|
id?: any;
|
|
150
163
|
/**
|
|
151
|
-
* The
|
|
164
|
+
* The array of Contacts
|
|
152
165
|
*/
|
|
153
166
|
contacts?: ContactContext[];
|
|
154
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* FDC3 Context to define an Organization
|
|
170
|
+
*/
|
|
155
171
|
export interface OrganizationContext extends FDC3Context {
|
|
156
172
|
/**
|
|
157
|
-
* Context type is always
|
|
173
|
+
* Context type is always `organization`
|
|
158
174
|
*/
|
|
159
175
|
type: 'organization';
|
|
160
176
|
/**
|
|
161
|
-
* Free text name of
|
|
177
|
+
* Free text name of Organization
|
|
162
178
|
*/
|
|
163
179
|
name?: string;
|
|
164
180
|
/**
|
|
165
|
-
* The
|
|
181
|
+
* The Organization data: LEI, PERMID, FDS_ID
|
|
166
182
|
*/
|
|
167
183
|
id?: {
|
|
168
184
|
[key: string]: string;
|
|
@@ -172,17 +188,20 @@ export interface OrganizationContext extends FDC3Context {
|
|
|
172
188
|
FDS_ID?: string;
|
|
173
189
|
};
|
|
174
190
|
}
|
|
191
|
+
/**
|
|
192
|
+
* FDC3 Context to define a Country
|
|
193
|
+
*/
|
|
175
194
|
export interface CountryContext extends FDC3Context {
|
|
176
195
|
/**
|
|
177
|
-
* Context type is always
|
|
196
|
+
* Context type is always `country`
|
|
178
197
|
*/
|
|
179
198
|
type: 'country';
|
|
180
199
|
/**
|
|
181
|
-
* Free text name of
|
|
200
|
+
* Free text name of Country
|
|
182
201
|
*/
|
|
183
202
|
name?: string;
|
|
184
203
|
/**
|
|
185
|
-
* The
|
|
204
|
+
* The Country data: ISOALPHA2, ISOALPHA3
|
|
186
205
|
*/
|
|
187
206
|
id?: {
|
|
188
207
|
[key: string]: string;
|
|
@@ -191,8 +210,21 @@ export interface CountryContext extends FDC3Context {
|
|
|
191
210
|
ISOALPHA3?: string;
|
|
192
211
|
};
|
|
193
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* EventInfo returned by `FDC3MessageSent` event
|
|
215
|
+
*/
|
|
194
216
|
export interface AdaptableFDC3EventInfo extends BaseEventInfo {
|
|
195
|
-
|
|
217
|
+
/**
|
|
218
|
+
* Type of Event: `RaiseIntent` or `BroadcastMessage`
|
|
219
|
+
*/
|
|
220
|
+
eventType: 'RaiseIntent' | 'BroadcastMessage';
|
|
221
|
+
/**
|
|
222
|
+
* The FDC3 Intent which caused Event to fire (if type is `RaiseIntent`)
|
|
223
|
+
*/
|
|
196
224
|
intent?: FDC3Intent;
|
|
225
|
+
/**
|
|
226
|
+
* Full FDC3 Context for the object related to the event
|
|
227
|
+
*/
|
|
197
228
|
context: FDC3Context;
|
|
198
229
|
}
|
|
230
|
+
export declare type ContextType = 'instrument' | 'instrumentList' | 'position' | 'portfolio' | 'contact' | 'contactList' | 'organization' | 'country';
|