@adaptabletools/adaptable 16.0.0-canary.4 → 16.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.
- package/bundle.cjs.js +181 -181
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/Fdc3Options.d.ts +148 -19
- package/src/AdaptableOptions/FinancePluginOptions.d.ts +19 -19
- package/src/Api/ColumnApi.d.ts +0 -5
- package/src/Api/Fdc3Api.d.ts +19 -11
- package/src/Api/FinanceApi.d.ts +2 -2
- package/src/Api/Implementation/ColumnApiImpl.d.ts +0 -1
- package/src/Api/Implementation/ColumnApiImpl.js +0 -3
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +2 -0
- package/src/Api/Implementation/Fdc3ApiImpl.js +8 -0
- package/src/Api/Internal/ActionRowInternalApi.js +1 -1
- package/src/Api/Internal/AdaptableInternalApi.d.ts +6 -1
- package/src/Api/Internal/AdaptableInternalApi.js +43 -0
- package/src/Api/Internal/ColumnInternalApi.d.ts +1 -0
- package/src/Api/Internal/ColumnInternalApi.js +4 -0
- package/src/Api/Internal/Fdc3InternalApi.d.ts +19 -3
- package/src/Api/Internal/Fdc3InternalApi.js +372 -2
- package/src/PredefinedConfig/Common/AdaptableButton.d.ts +1 -1
- package/src/PredefinedConfig/Common/FDC3Context_DEPR.d.ts +3 -3
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +2 -0
- package/src/PredefinedConfig/Common/Fdc3Context.js +6 -5
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +20 -17
- package/src/PredefinedConfig/Common/Fdc3Intent.js +45 -13
- package/src/PredefinedConfig/Common/Types.d.ts +1 -1
- package/src/Strategy/Fdc3Module.js +25 -5
- package/src/Utilities/Constants/GeneralConstants.d.ts +4 -0
- package/src/Utilities/Constants/GeneralConstants.js +6 -2
- package/src/Utilities/Defaults/DefaultAdaptableOptions.js +6 -0
- package/src/Utilities/Helpers/AdaptableHelper.js +3 -2
- package/src/Utilities/Services/Fdc3Service.js +9 -4
- package/src/View/Layout/Wizard/sections/Utilities.js +1 -1
- package/src/agGrid/ActionColumnRenderer.js +2 -31
- package/src/agGrid/Adaptable.js +1 -4
- package/src/agGrid/agGridHelper.js +5 -2
- package/src/metamodel/adaptable.metamodel.d.ts +116 -3
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +4 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -12,6 +12,7 @@ const StringExtensions_1 = tslib_1.__importDefault(require("../../Utilities/Exte
|
|
|
12
12
|
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
13
13
|
const waitForCondition_1 = require("../../Utilities/waitForCondition");
|
|
14
14
|
const Icon_1 = require("../../components/Icon");
|
|
15
|
+
const uuid_1 = require("../../components/utils/uuid");
|
|
15
16
|
class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
16
17
|
getSystemState() {
|
|
17
18
|
return this.getAdaptableState().System;
|
|
@@ -453,5 +454,47 @@ class AdaptableInternalApi extends ApiBase_1.ApiBase {
|
|
|
453
454
|
userName: this.getAdaptableApi().optionsApi.getUserName(),
|
|
454
455
|
};
|
|
455
456
|
}
|
|
457
|
+
getActionButtonsAndActionColumn(colDef) {
|
|
458
|
+
var _a;
|
|
459
|
+
let actionColumn;
|
|
460
|
+
if (colDef.colId == GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS) {
|
|
461
|
+
const actionButtons = this.adaptable.getActionRowButtonDefs();
|
|
462
|
+
actionColumn = {
|
|
463
|
+
columnId: GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS,
|
|
464
|
+
actionColumnButton: actionButtons,
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
if (!actionColumn && this.getFdc3Api().internalApi.isFdc3MainActionColumn(colDef.colId)) {
|
|
468
|
+
const actionButtons = this.getFdc3Api().internalApi.getButtonsForFdc3MainActionColumn();
|
|
469
|
+
actionColumn = {
|
|
470
|
+
columnId: GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN,
|
|
471
|
+
actionColumnButton: actionButtons,
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
if (!actionColumn &&
|
|
475
|
+
this.getFdc3Api().internalApi.isFdc3StandaloneActionColumn(colDef.colId, colDef.type)) {
|
|
476
|
+
const actionButtons = this.getFdc3Api().internalApi.getButtonsForFdc3StandaloneActionColumn(colDef.colId);
|
|
477
|
+
actionColumn = {
|
|
478
|
+
columnId: colDef.colId,
|
|
479
|
+
actionColumnButton: actionButtons,
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
if (!actionColumn) {
|
|
483
|
+
actionColumn = (_a = this.adaptable.api.actionColumnApi
|
|
484
|
+
.getActionColumns()) === null || _a === void 0 ? void 0 : _a.find((ac) => ac.columnId == colDef.colId);
|
|
485
|
+
}
|
|
486
|
+
if (!(actionColumn === null || actionColumn === void 0 ? void 0 : actionColumn.actionColumnButton)) {
|
|
487
|
+
return {
|
|
488
|
+
actionButtons: [],
|
|
489
|
+
actionColumn,
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
let actionButtons = Array.isArray(actionColumn.actionColumnButton)
|
|
493
|
+
? actionColumn.actionColumnButton
|
|
494
|
+
: [actionColumn.actionColumnButton];
|
|
495
|
+
// actionButtons don't have IDs, so we need to generate them to be used later as a react component key
|
|
496
|
+
actionButtons = actionButtons.map((actionButton) => (Object.assign(Object.assign({}, actionButton), { Uuid: (0, uuid_1.createUuid)() })));
|
|
497
|
+
return { actionButtons, actionColumn };
|
|
498
|
+
}
|
|
456
499
|
}
|
|
457
500
|
exports.AdaptableInternalApi = AdaptableInternalApi;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ColumnInternalApi = void 0;
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
5
6
|
class ColumnInternalApi extends ApiBase_1.ApiBase {
|
|
6
7
|
/**
|
|
7
8
|
* Retrieves 'ColumnType' property for a given Column
|
|
@@ -63,5 +64,8 @@ class ColumnInternalApi extends ApiBase_1.ApiBase {
|
|
|
63
64
|
}
|
|
64
65
|
return true;
|
|
65
66
|
}
|
|
67
|
+
isActionRowButtonColumn(columnId) {
|
|
68
|
+
return columnId === GeneralConstants_1.ADAPTABLE_ROW_ACTION_BUTTONS;
|
|
69
|
+
}
|
|
66
70
|
}
|
|
67
71
|
exports.ColumnInternalApi = ColumnInternalApi;
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import { Fdc3Context, Fdc3ContextType } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
3
|
-
import { IRowNode } from '@ag-grid-community/core';
|
|
2
|
+
import { Fdc3Context, Fdc3ContextType, Fdc3CustomContextType } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
3
|
+
import { ColDef, IRowNode } from '@ag-grid-community/core';
|
|
4
|
+
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
5
|
+
import { ActionColumnContext } from '../../AdaptableOptions/ActionColumnOptions';
|
|
4
6
|
export declare class Fdc3InternalApi extends ApiBase {
|
|
5
|
-
mapRowToContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
7
|
+
mapRowToContextData(contextType: Fdc3ContextType | Fdc3CustomContextType, rowNode: IRowNode): Fdc3Context;
|
|
6
8
|
/**
|
|
7
9
|
* Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
|
|
8
10
|
*/
|
|
9
11
|
getMappedContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
12
|
+
getFdc3ActionColDefs(): ColDef[];
|
|
13
|
+
getButtonsForFdc3MainActionColumn(): AdaptableButton<ActionColumnContext<any>>[];
|
|
14
|
+
getButtonsForFdc3StandaloneActionColumn(columnId: string): AdaptableButton<ActionColumnContext<any>>[];
|
|
15
|
+
isFdc3MainActionColumn(columnId: string): boolean;
|
|
16
|
+
isFdc3StandaloneActionColumn(columnId: string, columnType: string | string[]): boolean;
|
|
17
|
+
private isAtLeastOneActionButtonConfigured;
|
|
18
|
+
private getIntentConfigsWithActionButtons;
|
|
19
|
+
private getCustomIntentConfigsWithActionButtons;
|
|
20
|
+
private getContextConfigsWithActionButtons;
|
|
21
|
+
private getCustomContextConfigsWithActionButtons;
|
|
10
22
|
private mapRowValueToContextData;
|
|
23
|
+
private mapFdc3ButtonConfigToAdaptableButton;
|
|
24
|
+
private getDefaultFdc3ButtonLabel;
|
|
25
|
+
private getDefaultFdc3ButtonIcon;
|
|
26
|
+
private getDefaultFdc3ButtonStyle;
|
|
11
27
|
}
|
|
@@ -4,14 +4,19 @@ exports.Fdc3InternalApi = void 0;
|
|
|
4
4
|
const ApiBase_1 = require("../Implementation/ApiBase");
|
|
5
5
|
const fdc3_1 = require("@finos/fdc3");
|
|
6
6
|
const Fdc3Options_1 = require("../../AdaptableOptions/Fdc3Options");
|
|
7
|
+
const GeneralConstants_1 = require("../../Utilities/Constants/GeneralConstants");
|
|
8
|
+
const ActionColumnRenderer_1 = require("../../agGrid/ActionColumnRenderer");
|
|
7
9
|
class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
8
10
|
mapRowToContextData(contextType, rowNode) {
|
|
9
|
-
const contextMappedFromGridData = this.
|
|
11
|
+
const contextMappedFromGridData = this.getFdc3Api().isStandardContextType(contextType)
|
|
12
|
+
? // @ts-ignore
|
|
13
|
+
this.getMappedContextData(contextType, rowNode)
|
|
14
|
+
: { type: contextType };
|
|
10
15
|
const resolveContextDataFn = this.getFdc3Options().resolveContextData;
|
|
11
16
|
if (typeof resolveContextDataFn === 'function') {
|
|
12
17
|
return resolveContextDataFn(Object.assign(Object.assign({}, this.getAdaptableApi().internalApi.buildBaseContext()), { contextType,
|
|
13
18
|
contextMappedFromGridData,
|
|
14
|
-
rowNode, rowData: rowNode.data }));
|
|
19
|
+
rowNode, rowData: rowNode.data, primaryKeyValue: this.getGridApi().getPrimaryKeyValueForRowNode(rowNode) }));
|
|
15
20
|
}
|
|
16
21
|
else {
|
|
17
22
|
return contextMappedFromGridData;
|
|
@@ -32,6 +37,272 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
32
37
|
const mappedData = this.mapRowValueToContextData(rowNode, contextMapping);
|
|
33
38
|
return Object.assign({ type: contextType }, mappedData);
|
|
34
39
|
}
|
|
40
|
+
getFdc3ActionColDefs() {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
const actionColDefs = [];
|
|
43
|
+
if (this.isAtLeastOneActionButtonConfigured()) {
|
|
44
|
+
const actionColumnConfig = this.getFdc3Options().actionColumnDefaultConfiguration;
|
|
45
|
+
actionColDefs.push({
|
|
46
|
+
colId: GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN,
|
|
47
|
+
headerName: actionColumnConfig.headerName,
|
|
48
|
+
hide: false,
|
|
49
|
+
lockVisible: true,
|
|
50
|
+
suppressColumnsToolPanel: true,
|
|
51
|
+
suppressFiltersToolPanel: true,
|
|
52
|
+
editable: false,
|
|
53
|
+
width: actionColumnConfig.width,
|
|
54
|
+
resizable: actionColumnConfig.resizable,
|
|
55
|
+
suppressMenu: true,
|
|
56
|
+
suppressMovable: !actionColumnConfig.movable,
|
|
57
|
+
filter: false,
|
|
58
|
+
sortable: false,
|
|
59
|
+
enableRowGroup: false,
|
|
60
|
+
cellRenderer: this.adaptable.variant === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
|
|
61
|
+
type: [GeneralConstants_1.AB_SPECIAL_COLUMN, GeneralConstants_1.AB_FDC3_COLUMN, 'abColDefObject'],
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const buildColDef = (actionColumnConfig) => {
|
|
65
|
+
return {
|
|
66
|
+
colId: actionColumnConfig.columnId,
|
|
67
|
+
headerName: actionColumnConfig.friendlyName,
|
|
68
|
+
hide: false,
|
|
69
|
+
lockVisible: true,
|
|
70
|
+
suppressColumnsToolPanel: true,
|
|
71
|
+
suppressFiltersToolPanel: true,
|
|
72
|
+
editable: false,
|
|
73
|
+
width: actionColumnConfig.defaultWidth,
|
|
74
|
+
resizable: true,
|
|
75
|
+
suppressMenu: true,
|
|
76
|
+
suppressMovable: false,
|
|
77
|
+
filter: false,
|
|
78
|
+
sortable: false,
|
|
79
|
+
enableRowGroup: false,
|
|
80
|
+
cellRenderer: this.adaptable.variant === 'react' ? ActionColumnRenderer_1.ReactActionColumnRenderer : ActionColumnRenderer_1.ActionColumnRenderer,
|
|
81
|
+
type: [GeneralConstants_1.AB_SPECIAL_COLUMN, GeneralConstants_1.AB_FDC3_COLUMN, 'abColDefObject'],
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
const raiseIntents = ((_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.raises) || {};
|
|
85
|
+
Object.keys(raiseIntents).forEach((intent) => {
|
|
86
|
+
const intentConfigs = raiseIntents[intent];
|
|
87
|
+
intentConfigs.forEach((intentConfig) => {
|
|
88
|
+
if (!intentConfig.actionColumn) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const intendActionColumnConfig = intentConfig.actionColumn;
|
|
92
|
+
actionColDefs.push(buildColDef(intendActionColumnConfig));
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
const raiseCustomIntents = ((_b = this.getFdc3Options().customIntents) === null || _b === void 0 ? void 0 : _b.raises) || {};
|
|
96
|
+
Object.keys(raiseCustomIntents).forEach((intent) => {
|
|
97
|
+
const intentConfigs = raiseCustomIntents[intent];
|
|
98
|
+
intentConfigs.forEach((intentConfig) => {
|
|
99
|
+
if (!intentConfig.actionColumn) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const intendActionColumnConfig = intentConfig.actionColumn;
|
|
103
|
+
actionColDefs.push(buildColDef(intendActionColumnConfig));
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
const broadcastContexts = ((_c = this.getFdc3Options().contexts) === null || _c === void 0 ? void 0 : _c.broadcasts) || {};
|
|
107
|
+
Object.keys(broadcastContexts).forEach((contextType) => {
|
|
108
|
+
const contextConfig = broadcastContexts[contextType];
|
|
109
|
+
if (!contextConfig.actionColumn) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const contextActionColumnConfig = contextConfig.actionColumn;
|
|
113
|
+
actionColDefs.push(buildColDef(contextActionColumnConfig));
|
|
114
|
+
});
|
|
115
|
+
const broadcastCustomContexts = ((_d = this.getFdc3Options().customContexts) === null || _d === void 0 ? void 0 : _d.broadcasts) || {};
|
|
116
|
+
Object.keys(broadcastCustomContexts).forEach((contextType) => {
|
|
117
|
+
const contextConfig = broadcastCustomContexts[contextType];
|
|
118
|
+
if (!contextConfig.actionColumn) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const contextActionColumnConfig = contextConfig.actionColumn;
|
|
122
|
+
actionColDefs.push(buildColDef(contextActionColumnConfig));
|
|
123
|
+
});
|
|
124
|
+
return actionColDefs;
|
|
125
|
+
}
|
|
126
|
+
getButtonsForFdc3MainActionColumn() {
|
|
127
|
+
const buttons = [];
|
|
128
|
+
const intentButtonConfigs = this.getIntentConfigsWithActionButtons();
|
|
129
|
+
Object.keys(intentButtonConfigs).forEach((intent) => {
|
|
130
|
+
const intentConfigs = intentButtonConfigs[intent];
|
|
131
|
+
intentConfigs.forEach((intentConfig) => {
|
|
132
|
+
if (!intentConfig.actionButton) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const intendActionButtonConfig = intentConfig.actionButton;
|
|
136
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(intendActionButtonConfig, {
|
|
137
|
+
action: 'raiseIntent',
|
|
138
|
+
intent,
|
|
139
|
+
contextType: intentConfig.contextType,
|
|
140
|
+
}));
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
const intentCustomButtonConfigs = this.getCustomIntentConfigsWithActionButtons();
|
|
144
|
+
Object.keys(intentCustomButtonConfigs).forEach((intent) => {
|
|
145
|
+
const intentConfigs = intentCustomButtonConfigs[intent];
|
|
146
|
+
intentConfigs.forEach((intentConfig) => {
|
|
147
|
+
if (!intentConfig.actionButton) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const intendActionButtonConfig = intentConfig.actionButton;
|
|
151
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(intendActionButtonConfig, {
|
|
152
|
+
action: 'raiseIntent',
|
|
153
|
+
intent,
|
|
154
|
+
contextType: intentConfig.contextType,
|
|
155
|
+
}));
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
const broadcastButtonConfigs = this.getContextConfigsWithActionButtons();
|
|
159
|
+
Object.keys(broadcastButtonConfigs).forEach((contextType) => {
|
|
160
|
+
const contextConfig = broadcastButtonConfigs[contextType];
|
|
161
|
+
if (!contextConfig.actionButton) {
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
const contextActionButtonConfig = contextConfig.actionButton;
|
|
165
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(contextActionButtonConfig, {
|
|
166
|
+
action: 'broadcastContext',
|
|
167
|
+
contextType,
|
|
168
|
+
}));
|
|
169
|
+
});
|
|
170
|
+
const broadcastCustomButtonConfigs = this.getCustomContextConfigsWithActionButtons();
|
|
171
|
+
Object.keys(broadcastCustomButtonConfigs).forEach((contextType) => {
|
|
172
|
+
const contextConfig = broadcastCustomButtonConfigs[contextType];
|
|
173
|
+
if (!contextConfig.actionButton) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
const contextActionButtonConfig = contextConfig.actionButton;
|
|
177
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(contextActionButtonConfig, {
|
|
178
|
+
action: 'broadcastContext',
|
|
179
|
+
contextType,
|
|
180
|
+
}));
|
|
181
|
+
});
|
|
182
|
+
return buttons;
|
|
183
|
+
}
|
|
184
|
+
getButtonsForFdc3StandaloneActionColumn(columnId) {
|
|
185
|
+
var _a, _b, _c, _d;
|
|
186
|
+
const buttons = [];
|
|
187
|
+
// standard intents
|
|
188
|
+
const intentButtonConfigs = ((_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.raises) || {};
|
|
189
|
+
Object.keys(intentButtonConfigs).forEach((intent) => {
|
|
190
|
+
const intentConfigs = intentButtonConfigs[intent];
|
|
191
|
+
intentConfigs.forEach((intentConfig) => {
|
|
192
|
+
var _a;
|
|
193
|
+
if (((_a = intentConfig.actionColumn) === null || _a === void 0 ? void 0 : _a.columnId) === columnId) {
|
|
194
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(intentConfig.actionColumn.button, {
|
|
195
|
+
action: 'raiseIntent',
|
|
196
|
+
intent,
|
|
197
|
+
contextType: intentConfig.contextType,
|
|
198
|
+
}));
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
// standard contexts
|
|
203
|
+
const broadcastButtonConfigs = ((_b = this.getFdc3Options().contexts) === null || _b === void 0 ? void 0 : _b.broadcasts) || {};
|
|
204
|
+
Object.keys(broadcastButtonConfigs).forEach((contextType) => {
|
|
205
|
+
var _a;
|
|
206
|
+
const contextConfig = broadcastButtonConfigs[contextType];
|
|
207
|
+
if (((_a = contextConfig.actionColumn) === null || _a === void 0 ? void 0 : _a.columnId) === columnId) {
|
|
208
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(contextConfig.actionColumn.button, {
|
|
209
|
+
action: 'broadcastContext',
|
|
210
|
+
contextType,
|
|
211
|
+
}));
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
// custom intents
|
|
215
|
+
const intentCustomButtonConfigs = ((_c = this.getFdc3Options().customIntents) === null || _c === void 0 ? void 0 : _c.raises) || {};
|
|
216
|
+
Object.keys(intentCustomButtonConfigs).forEach((intent) => {
|
|
217
|
+
const intentConfigs = intentCustomButtonConfigs[intent];
|
|
218
|
+
intentConfigs.forEach((intentConfig) => {
|
|
219
|
+
var _a;
|
|
220
|
+
if (((_a = intentConfig.actionColumn) === null || _a === void 0 ? void 0 : _a.columnId) === columnId) {
|
|
221
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(intentConfig.actionColumn.button, {
|
|
222
|
+
action: 'raiseIntent',
|
|
223
|
+
intent,
|
|
224
|
+
contextType: intentConfig.contextType,
|
|
225
|
+
}));
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
// custom contexts
|
|
230
|
+
const broadcastCustomButtonConfigs = ((_d = this.getFdc3Options().customContexts) === null || _d === void 0 ? void 0 : _d.broadcasts) || {};
|
|
231
|
+
Object.keys(broadcastCustomButtonConfigs).forEach((contextType) => {
|
|
232
|
+
var _a;
|
|
233
|
+
const contextConfig = broadcastCustomButtonConfigs[contextType];
|
|
234
|
+
if (((_a = contextConfig.actionColumn) === null || _a === void 0 ? void 0 : _a.columnId) === columnId) {
|
|
235
|
+
buttons.push(this.mapFdc3ButtonConfigToAdaptableButton(contextConfig.actionColumn.button, {
|
|
236
|
+
action: 'broadcastContext',
|
|
237
|
+
contextType,
|
|
238
|
+
}));
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
return buttons;
|
|
242
|
+
}
|
|
243
|
+
isFdc3MainActionColumn(columnId) {
|
|
244
|
+
return columnId === GeneralConstants_1.ADAPTABLE_FDC3_ACTION_COLUMN;
|
|
245
|
+
}
|
|
246
|
+
isFdc3StandaloneActionColumn(columnId, columnType) {
|
|
247
|
+
const types = typeof columnType === 'string' ? [columnType] : columnType;
|
|
248
|
+
return types.includes(GeneralConstants_1.AB_FDC3_COLUMN) && !this.isFdc3MainActionColumn(columnId);
|
|
249
|
+
}
|
|
250
|
+
isAtLeastOneActionButtonConfigured() {
|
|
251
|
+
return (!!Object.keys(this.getIntentConfigsWithActionButtons()).length ||
|
|
252
|
+
!!Object.keys(this.getContextConfigsWithActionButtons()).length ||
|
|
253
|
+
!!Object.keys(this.getCustomIntentConfigsWithActionButtons()).length ||
|
|
254
|
+
!!Object.keys(this.getCustomContextConfigsWithActionButtons()).length);
|
|
255
|
+
}
|
|
256
|
+
getIntentConfigsWithActionButtons() {
|
|
257
|
+
var _a;
|
|
258
|
+
let result = {};
|
|
259
|
+
const raiseIntents = ((_a = this.getFdc3Options().intents) === null || _a === void 0 ? void 0 : _a.raises) || {};
|
|
260
|
+
Object.keys(raiseIntents).forEach((intent) => {
|
|
261
|
+
const intentConfigs = raiseIntents[intent];
|
|
262
|
+
if (intentConfigs.some((intentConfig) => intentConfig.actionButton)) {
|
|
263
|
+
// @ts-ignore
|
|
264
|
+
result[intent] = raiseIntents[intent];
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
getCustomIntentConfigsWithActionButtons() {
|
|
270
|
+
var _a;
|
|
271
|
+
let result = {};
|
|
272
|
+
const raiseIntents = ((_a = this.getFdc3Options().customIntents) === null || _a === void 0 ? void 0 : _a.raises) || {};
|
|
273
|
+
Object.keys(raiseIntents).forEach((intent) => {
|
|
274
|
+
const intentConfigs = raiseIntents[intent];
|
|
275
|
+
if (intentConfigs.some((intentConfig) => intentConfig.actionButton)) {
|
|
276
|
+
// @ts-ignore
|
|
277
|
+
result[intent] = raiseIntents[intent];
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
return result;
|
|
281
|
+
}
|
|
282
|
+
getContextConfigsWithActionButtons() {
|
|
283
|
+
var _a;
|
|
284
|
+
let result = {};
|
|
285
|
+
const broadcastContexts = ((_a = this.getFdc3Options().contexts) === null || _a === void 0 ? void 0 : _a.broadcasts) || {};
|
|
286
|
+
Object.keys(broadcastContexts).forEach((contextType) => {
|
|
287
|
+
const contextConfig = broadcastContexts[contextType];
|
|
288
|
+
if (contextConfig.actionButton) {
|
|
289
|
+
result[contextType] = contextConfig;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
getCustomContextConfigsWithActionButtons() {
|
|
295
|
+
var _a;
|
|
296
|
+
let result = {};
|
|
297
|
+
const broadcastContexts = ((_a = this.getFdc3Options().customContexts) === null || _a === void 0 ? void 0 : _a.broadcasts) || {};
|
|
298
|
+
Object.keys(broadcastContexts).forEach((contextType) => {
|
|
299
|
+
const contextConfig = broadcastContexts[contextType];
|
|
300
|
+
if (contextConfig.actionButton) {
|
|
301
|
+
result[contextType] = contextConfig;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
35
306
|
mapRowValueToContextData(rowNode, contextMapping = {}) {
|
|
36
307
|
// recursively map the row node values to the context data
|
|
37
308
|
const mapContext = (obj) => {
|
|
@@ -68,5 +339,104 @@ class Fdc3InternalApi extends ApiBase_1.ApiBase {
|
|
|
68
339
|
};
|
|
69
340
|
return mapContext(contextMapping);
|
|
70
341
|
}
|
|
342
|
+
mapFdc3ButtonConfigToAdaptableButton(fdc3AdaptableButton, fdcInfo) {
|
|
343
|
+
const buildFdc3Context = (context) => {
|
|
344
|
+
return {
|
|
345
|
+
context: this.mapRowToContextData(fdcInfo.contextType, context.rowNode),
|
|
346
|
+
intent: fdcInfo.action === 'raiseIntent' ? fdcInfo.intent : null,
|
|
347
|
+
rowNode: context.rowNode,
|
|
348
|
+
rowData: context.data,
|
|
349
|
+
adaptableId: context.adaptableId,
|
|
350
|
+
primaryKeyValue: context.primaryKeyValue,
|
|
351
|
+
userName: context.userName,
|
|
352
|
+
adaptableApi: context.adaptableApi,
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
return {
|
|
356
|
+
onClick: (_button, context) => {
|
|
357
|
+
if (fdcInfo.action === 'raiseIntent') {
|
|
358
|
+
this.getFdc3Api().raiseIntentFromRow(context.rowNode, fdcInfo.intent, fdcInfo.contextType);
|
|
359
|
+
}
|
|
360
|
+
if (fdcInfo.action === 'broadcastContext') {
|
|
361
|
+
this.getFdc3Api().broadcastFromRow(context.rowNode, fdcInfo.contextType);
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
label: (_button, context) => {
|
|
365
|
+
const fdc3Label = fdc3AdaptableButton.label;
|
|
366
|
+
if (typeof fdc3Label === 'function') {
|
|
367
|
+
return fdc3Label(fdc3AdaptableButton, buildFdc3Context(context));
|
|
368
|
+
}
|
|
369
|
+
if (fdc3Label === '_defaultFdc3') {
|
|
370
|
+
return this.getDefaultFdc3ButtonLabel(fdcInfo);
|
|
371
|
+
}
|
|
372
|
+
return fdc3Label;
|
|
373
|
+
},
|
|
374
|
+
icon: (_button, context) => {
|
|
375
|
+
const fdc3Icon = fdc3AdaptableButton.icon;
|
|
376
|
+
if (typeof fdc3Icon === 'function') {
|
|
377
|
+
return fdc3Icon(fdc3AdaptableButton, buildFdc3Context(context));
|
|
378
|
+
}
|
|
379
|
+
if (fdc3Icon === '_defaultFdc3') {
|
|
380
|
+
return this.getDefaultFdc3ButtonIcon(fdcInfo);
|
|
381
|
+
}
|
|
382
|
+
return fdc3Icon;
|
|
383
|
+
},
|
|
384
|
+
buttonStyle: (_button, context) => {
|
|
385
|
+
const fdc3ButtonStyle = fdc3AdaptableButton.buttonStyle;
|
|
386
|
+
if (fdc3ButtonStyle == undefined) {
|
|
387
|
+
return this.getDefaultFdc3ButtonStyle(fdcInfo);
|
|
388
|
+
}
|
|
389
|
+
if (typeof fdc3ButtonStyle === 'function') {
|
|
390
|
+
return fdc3ButtonStyle(fdc3AdaptableButton, buildFdc3Context(context));
|
|
391
|
+
}
|
|
392
|
+
return fdc3ButtonStyle;
|
|
393
|
+
},
|
|
394
|
+
tooltip: (_button, context) => {
|
|
395
|
+
const fdc3Tooltip = fdc3AdaptableButton.tooltip;
|
|
396
|
+
if (typeof fdc3Tooltip === 'function') {
|
|
397
|
+
return fdc3Tooltip(fdc3AdaptableButton, buildFdc3Context(context));
|
|
398
|
+
}
|
|
399
|
+
if (fdc3Tooltip === '_defaultFdc3') {
|
|
400
|
+
return this.getDefaultFdc3ButtonLabel(fdcInfo);
|
|
401
|
+
}
|
|
402
|
+
return fdc3Tooltip;
|
|
403
|
+
},
|
|
404
|
+
disabled: (_button, context) => {
|
|
405
|
+
const fdc3Disabled = fdc3AdaptableButton.disabled;
|
|
406
|
+
if (typeof fdc3Disabled === 'function') {
|
|
407
|
+
return fdc3Disabled(fdc3AdaptableButton, buildFdc3Context(context));
|
|
408
|
+
}
|
|
409
|
+
return fdc3Disabled;
|
|
410
|
+
},
|
|
411
|
+
hidden: (_button, context) => {
|
|
412
|
+
const fdc3Hidden = fdc3AdaptableButton.hidden;
|
|
413
|
+
if (typeof fdc3Hidden === 'function') {
|
|
414
|
+
return fdc3Hidden(fdc3AdaptableButton, buildFdc3Context(context));
|
|
415
|
+
}
|
|
416
|
+
return fdc3Hidden;
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
getDefaultFdc3ButtonLabel(fdc3Info) {
|
|
421
|
+
if (fdc3Info.action === 'raiseIntent') {
|
|
422
|
+
return `Raise ${fdc3Info.intent}`;
|
|
423
|
+
}
|
|
424
|
+
if (fdc3Info.action === 'broadcastContext') {
|
|
425
|
+
return `Broadcast ${this.getFdc3Api().getContextLabel(fdc3Info.contextType)}`;
|
|
426
|
+
}
|
|
427
|
+
return '';
|
|
428
|
+
}
|
|
429
|
+
getDefaultFdc3ButtonIcon(fdc3Info) {
|
|
430
|
+
// TODO AFL: extends with intend&context specific icons
|
|
431
|
+
return {
|
|
432
|
+
name: 'fdc3',
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
getDefaultFdc3ButtonStyle(fdcInfo) {
|
|
436
|
+
return {
|
|
437
|
+
variant: 'outlined',
|
|
438
|
+
tone: 'neutral',
|
|
439
|
+
};
|
|
440
|
+
}
|
|
71
441
|
}
|
|
72
442
|
exports.Fdc3InternalApi = Fdc3InternalApi;
|
|
@@ -31,7 +31,7 @@ export interface AdaptableButton<CONTEXT_TYPE extends BaseContext> extends Adapt
|
|
|
31
31
|
*/
|
|
32
32
|
onClick?: (button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => void;
|
|
33
33
|
/**
|
|
34
|
-
*Function which sets whether Button is hidden
|
|
34
|
+
* Function which sets whether Button is hidden
|
|
35
35
|
*/
|
|
36
36
|
hidden?: (button: AdaptableButton<CONTEXT_TYPE>, context: CONTEXT_TYPE) => boolean;
|
|
37
37
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomFDC3Intent_Depr } from '../../AdaptableOptions/FinancePluginOptions';
|
|
2
2
|
import { BaseEventInfo } from '../../Api/Events/BaseEventInfo';
|
|
3
|
-
import {
|
|
3
|
+
import { FDC3Intent_Depr } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* General-purpose context type, as defined by [FDC3](https://fdc3.finos.org/docs/1.0/context-intro).
|
|
6
6
|
* A context object is a well-understood datum that is streamable between FDC3 participants. As a result
|
|
@@ -224,7 +224,7 @@ export interface AdaptableFDC3EventInfo extends BaseEventInfo {
|
|
|
224
224
|
/**
|
|
225
225
|
* The FDC3 Intent which caused Event to fire (if type is `RaiseIntent`)
|
|
226
226
|
*/
|
|
227
|
-
intent?:
|
|
227
|
+
intent?: FDC3Intent_Depr | CustomFDC3Intent_Depr;
|
|
228
228
|
/**
|
|
229
229
|
* Full FDC3 Context for the object related to the event
|
|
230
230
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Chart, ChatInitSettings, Contact, ContactList, Context, Country, Currency, Email, Instrument, InstrumentList, Nothing, Organization, Portfolio, Position, TimeRange, Valuation, ContextTypes } from '@finos/fdc3';
|
|
2
2
|
export declare type Fdc3ContextType = ChartContextType | ChatInitSettingsContextType | ContactContextType | ContactListContextType | CountryContextType | CurrencyContextType | EmailContextType | InstrumentContextType | InstrumentListContextType | OrganizationContextType | PortfolioContextType | PositionContextType | TimeRangeContextType | ValuationContextType | NothingContextType;
|
|
3
|
+
export declare type Fdc3CustomContextType = string;
|
|
3
4
|
export declare const ChartContextKey = "fdc3.chart";
|
|
4
5
|
export declare type ChartContextType = typeof ChartContextKey;
|
|
5
6
|
export declare const ChatInitSettingsContextKey = "fdc3.chat.initSettings";
|
|
@@ -51,3 +52,4 @@ export declare type TimeRangeContext = TypedFdc3Context<TimeRange, ContextTypes.
|
|
|
51
52
|
export declare type ValuationContext = TypedFdc3Context<Valuation, ContextTypes.Valuation>;
|
|
52
53
|
export declare type NothingContext = TypedFdc3Context<Nothing, ContextTypes.Nothing>;
|
|
53
54
|
export declare const ContextLabels: Record<Fdc3ContextType, string>;
|
|
55
|
+
export declare const StandardContextTypes: Fdc3ContextType[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContextLabels = exports.NothingContextKey = exports.ValuationContextKey = exports.TimeRangeContextKey = exports.PositionContextKey = exports.PortfolioContextKey = exports.OrganizationContextKey = exports.InstrumentListContextKey = exports.InstrumentContextKey = exports.EmailContextKey = exports.CurrencyContextKey = exports.CountryContextKey = exports.ContactListContextKey = exports.ContactContextKey = exports.ChatInitSettingsContextKey = exports.ChartContextKey = void 0;
|
|
3
|
+
exports.StandardContextTypes = exports.ContextLabels = exports.NothingContextKey = exports.ValuationContextKey = exports.TimeRangeContextKey = exports.PositionContextKey = exports.PortfolioContextKey = exports.OrganizationContextKey = exports.InstrumentListContextKey = exports.InstrumentContextKey = exports.EmailContextKey = exports.CurrencyContextKey = exports.CountryContextKey = exports.ContactListContextKey = exports.ContactContextKey = exports.ChatInitSettingsContextKey = exports.ChartContextKey = void 0;
|
|
4
4
|
exports.ChartContextKey = 'fdc3.chart';
|
|
5
5
|
exports.ChatInitSettingsContextKey = 'fdc3.chat.initSettings';
|
|
6
6
|
exports.ContactContextKey = 'fdc3.contact';
|
|
@@ -18,18 +18,19 @@ exports.ValuationContextKey = 'fdc3.valuation';
|
|
|
18
18
|
exports.NothingContextKey = 'fdc3.nothing';
|
|
19
19
|
exports.ContextLabels = {
|
|
20
20
|
[exports.ChartContextKey]: 'Chart',
|
|
21
|
-
[exports.ChatInitSettingsContextKey]: '
|
|
21
|
+
[exports.ChatInitSettingsContextKey]: 'ChatInitSettings',
|
|
22
22
|
[exports.ContactContextKey]: 'Contact',
|
|
23
|
-
[exports.ContactListContextKey]: '
|
|
23
|
+
[exports.ContactListContextKey]: 'ContactList',
|
|
24
24
|
[exports.CountryContextKey]: 'Country',
|
|
25
25
|
[exports.CurrencyContextKey]: 'Currency',
|
|
26
26
|
[exports.EmailContextKey]: 'Email',
|
|
27
27
|
[exports.InstrumentContextKey]: 'Instrument',
|
|
28
|
-
[exports.InstrumentListContextKey]: '
|
|
28
|
+
[exports.InstrumentListContextKey]: 'InstrumentList',
|
|
29
29
|
[exports.OrganizationContextKey]: 'Organization',
|
|
30
30
|
[exports.PortfolioContextKey]: 'Portfolio',
|
|
31
31
|
[exports.PositionContextKey]: 'Position',
|
|
32
|
-
[exports.TimeRangeContextKey]: '
|
|
32
|
+
[exports.TimeRangeContextKey]: 'TimeRange',
|
|
33
33
|
[exports.ValuationContextKey]: 'Valuation',
|
|
34
34
|
[exports.NothingContextKey]: 'Nothing',
|
|
35
35
|
};
|
|
36
|
+
exports.StandardContextTypes = Object.keys(exports.ContextLabels);
|
|
@@ -14,55 +14,58 @@ export declare const ViewQuoteIntent = "ViewQuote";
|
|
|
14
14
|
export declare const ViewResearchIntent = "ViewResearch";
|
|
15
15
|
export declare const Fdc3IntentConfiguration: {
|
|
16
16
|
readonly StartCall: {
|
|
17
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList"];
|
|
17
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.nothing"];
|
|
18
18
|
};
|
|
19
19
|
readonly StartChat: {
|
|
20
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.chat.initSettings"];
|
|
20
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.contactList", "fdc3.chat.initSettings", "fdc3.nothing"];
|
|
21
21
|
};
|
|
22
22
|
readonly StartEmail: {
|
|
23
23
|
readonly contexts: readonly ["fdc3.email"];
|
|
24
24
|
};
|
|
25
25
|
readonly ViewAnalysis: {
|
|
26
|
-
readonly contexts: readonly ["fdc3.instrument", "fdc3.organization", "fdc3.portfolio"];
|
|
26
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.organization", "fdc3.portfolio", "fdc3.nothing"];
|
|
27
27
|
};
|
|
28
28
|
readonly ViewChart: {
|
|
29
|
-
readonly contexts: readonly ["fdc3.chart", "fdc3.instrument", "fdc3.organization", "fdc3.portfolio", "fdc3.position"];
|
|
29
|
+
readonly contexts: readonly ["fdc3.chart", "fdc3.instrument", "fdc3.organization", "fdc3.portfolio", "fdc3.position", "fdc3.nothing"];
|
|
30
30
|
};
|
|
31
31
|
readonly ViewContact: {
|
|
32
|
-
readonly contexts: readonly ["fdc3.contact"];
|
|
32
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.nothing"];
|
|
33
33
|
};
|
|
34
34
|
readonly ViewHoldings: {
|
|
35
|
-
readonly contexts: readonly ["fdc3.instrument", "fdc3.instrumentList", "fdc3.organization"];
|
|
35
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.nothing"];
|
|
36
36
|
};
|
|
37
37
|
readonly ViewInstrument: {
|
|
38
|
-
readonly contexts: readonly ["fdc3.instrument"];
|
|
38
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.nothing"];
|
|
39
39
|
};
|
|
40
40
|
readonly ViewInteractions: {
|
|
41
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
41
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization", "fdc3.nothing"];
|
|
42
42
|
};
|
|
43
43
|
readonly ViewNews: {
|
|
44
|
-
readonly contexts: readonly ["fdc3.country", "fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.portfolio"];
|
|
44
|
+
readonly contexts: readonly ["fdc3.country", "fdc3.instrument", "fdc3.instrumentList", "fdc3.organization", "fdc3.portfolio", "fdc3.nothing"];
|
|
45
45
|
};
|
|
46
46
|
readonly ViewOrders: {
|
|
47
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
47
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization", "fdc3.nothing"];
|
|
48
48
|
};
|
|
49
49
|
readonly ViewProfile: {
|
|
50
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.organization"];
|
|
50
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.organization", "fdc3.nothing"];
|
|
51
51
|
};
|
|
52
52
|
readonly ViewQuote: {
|
|
53
|
-
readonly contexts: readonly ["fdc3.instrument"];
|
|
53
|
+
readonly contexts: readonly ["fdc3.instrument", "fdc3.nothing"];
|
|
54
54
|
};
|
|
55
55
|
readonly ViewResearch: {
|
|
56
|
-
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization"];
|
|
56
|
+
readonly contexts: readonly ["fdc3.contact", "fdc3.instrumentList", "fdc3.organization", "fdc3.nothing"];
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
declare const
|
|
59
|
+
export declare const Fdc3StandardIntents: ("StartCall" | "StartChat" | "StartEmail" | "ViewAnalysis" | "ViewChart" | "ViewContact" | "ViewHoldings" | "ViewInstrument" | "ViewInteractions" | "ViewNews" | "ViewOrders" | "ViewProfile" | "ViewQuote" | "ViewResearch")[];
|
|
60
60
|
/**
|
|
61
|
-
* All FDC3 intents
|
|
61
|
+
* All FDC3 standard intents
|
|
62
62
|
*/
|
|
63
|
-
export declare type Fdc3IntentType = typeof
|
|
63
|
+
export declare type Fdc3IntentType = typeof Fdc3StandardIntents[number];
|
|
64
|
+
/**
|
|
65
|
+
* Custom FDC3 intent
|
|
66
|
+
*/
|
|
67
|
+
export declare type Fdc3CustomIntentType = string;
|
|
64
68
|
/**
|
|
65
69
|
* Valid context for a given FDC3 intent
|
|
66
70
|
*/
|
|
67
71
|
export declare type CompatibleContext<F extends Fdc3IntentType> = typeof Fdc3IntentConfiguration[F]['contexts'][number];
|
|
68
|
-
export {};
|