@adaptabletools/adaptable 16.0.3-canary.0 → 16.0.3-canary.2
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 +177 -168
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/Fdc3Options.d.ts +68 -60
- package/src/Api/Fdc3Api.d.ts +14 -14
- package/src/Api/GridApi.d.ts +11 -1
- package/src/Api/Implementation/Fdc3ApiImpl.d.ts +13 -13
- package/src/Api/Implementation/Fdc3ApiImpl.js +2 -4
- package/src/Api/Implementation/GridApiImpl.d.ts +2 -0
- package/src/Api/Implementation/GridApiImpl.js +6 -0
- package/src/Api/Internal/Fdc3InternalApi.d.ts +16 -9
- package/src/Api/Internal/Fdc3InternalApi.js +85 -191
- package/src/PredefinedConfig/Common/Fdc3Context.d.ts +14 -6
- package/src/PredefinedConfig/Common/Fdc3Intent.d.ts +6 -2
- package/src/Strategy/Fdc3Module.d.ts +0 -1
- package/src/Strategy/Fdc3Module.js +10 -40
- package/src/Utilities/Services/Fdc3Service.d.ts +1 -0
- package/src/Utilities/Services/Fdc3Service.js +45 -24
- package/src/Utilities/Services/MetamodelService.js +2 -2
- package/src/metamodel/adaptable.metamodel.d.ts +17 -6
- package/src/metamodel/adaptable.metamodel.js +1 -1
- package/src/types.d.ts +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable",
|
|
3
|
-
"version": "16.0.3-canary.
|
|
3
|
+
"version": "16.0.3-canary.2",
|
|
4
4
|
"description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1692800382780;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChartContext, ChatInitSettingsContext, ContactContext, ContactListContext, CountryContext, CurrencyContext, EmailContext, Fdc3Context, Fdc3ContextType,
|
|
1
|
+
import { ChartContext, ChatInitSettingsContext, ContactContext, ContactListContext, CountryContext, CurrencyContext, EmailContext, Fdc3Context, Fdc3ContextType, InstrumentContext, InstrumentListContext, OrganizationContext, PortfolioContext, PositionContext, TimeRangeContext, ValuationContext } from '../PredefinedConfig/Common/Fdc3Context';
|
|
2
2
|
import { BaseContext } from '../PredefinedConfig/Common/BaseContext';
|
|
3
3
|
import { IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
import { Context, ContextMetadata, IntentResolution, IntentResult } from '@finos/fdc3';
|
|
5
|
-
import { CompatibleContext,
|
|
5
|
+
import { CompatibleContext, Fdc3IntentType, Fdc3StandardIntentType } from '../PredefinedConfig/Common/Fdc3Intent';
|
|
6
6
|
import { AdaptableIcon } from '../PredefinedConfig/Common/AdaptableIcon';
|
|
7
7
|
import { ButtonStyle } from '../PredefinedConfig/Common/ButtonStyle';
|
|
8
8
|
/**
|
|
@@ -28,69 +28,39 @@ export interface Fdc3Options {
|
|
|
28
28
|
*/
|
|
29
29
|
intents?: {
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Raises given standard Intent(s) on various Grid Actions
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
raises?: RaiseIntentConfiguration;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Subscribe to given standard Intent(s)
|
|
36
36
|
*/
|
|
37
|
-
|
|
38
|
-
[K in Fdc3IntentType]?: RaiseIntentConfig<K>[];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Configures FDC3 custom Intents that AdapTable will listen for and raise
|
|
43
|
-
*/
|
|
44
|
-
customIntents?: {
|
|
37
|
+
listensFor?: Fdc3IntentType[];
|
|
45
38
|
/**
|
|
46
|
-
*
|
|
39
|
+
* Handles incoming Intents (standard and custom)
|
|
47
40
|
*/
|
|
48
|
-
|
|
41
|
+
handleIntent?: (context: HandleFdc3IntentContext) => Promise<IntentResult> | void;
|
|
49
42
|
/**
|
|
50
|
-
*
|
|
43
|
+
* Handles the IntentResolution that a raised Intent might return
|
|
51
44
|
*/
|
|
52
|
-
|
|
53
|
-
[K in Fdc3CustomIntentType]: RaiseIntentConfig[];
|
|
54
|
-
};
|
|
45
|
+
handleIntentResolution?: (context: HandleFdc3IntentResolutionContext) => Promise<void>;
|
|
55
46
|
};
|
|
56
47
|
/**
|
|
57
48
|
* Configures FDC3 standard Contexts that AdapTable will listen for and broadcast
|
|
58
49
|
*/
|
|
59
50
|
contexts?: {
|
|
60
|
-
/**
|
|
61
|
-
* Subscribe to given standard Context(s)
|
|
62
|
-
*/
|
|
63
|
-
listensFor?: Fdc3ContextType[];
|
|
64
51
|
/**
|
|
65
52
|
* Broadcasts given standard Context(s) on various Grid Actions
|
|
66
53
|
*/
|
|
67
|
-
broadcasts?:
|
|
68
|
-
[K in Fdc3ContextType]?: BroadcastConfig;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Configures FDC3 custom Contexts that AdapTable will listen for and broadcast
|
|
73
|
-
*/
|
|
74
|
-
customContexts?: {
|
|
54
|
+
broadcasts?: BroadcastConfiguration;
|
|
75
55
|
/**
|
|
76
|
-
* Subscribe to given
|
|
56
|
+
* Subscribe to given standard Context(s)
|
|
77
57
|
*/
|
|
78
|
-
listensFor?:
|
|
58
|
+
listensFor?: Fdc3ContextType[];
|
|
79
59
|
/**
|
|
80
|
-
*
|
|
60
|
+
* Handles incoming Contexts (standard and custom)
|
|
81
61
|
*/
|
|
82
|
-
|
|
83
|
-
[K in Fdc3CustomContextType]?: BroadcastConfig;
|
|
84
|
-
};
|
|
62
|
+
handleContext?: (context: HandleFdc3Context) => void;
|
|
85
63
|
};
|
|
86
|
-
/**
|
|
87
|
-
* Handles incoming Intents (standard and custom)
|
|
88
|
-
*/
|
|
89
|
-
handleIntent?: (context: HandleFdc3IntentContext) => Promise<IntentResult> | void;
|
|
90
|
-
/**
|
|
91
|
-
* Handles incoming Contexts (standard and custom)
|
|
92
|
-
*/
|
|
93
|
-
handleContext?: (context: HandleFdc3Context) => void;
|
|
94
64
|
/**
|
|
95
65
|
* Customises FDC3 Actions column
|
|
96
66
|
*/
|
|
@@ -133,7 +103,7 @@ export interface ResolveContextDataContext extends BaseContext {
|
|
|
133
103
|
/**
|
|
134
104
|
* FDC3 Context Type
|
|
135
105
|
*/
|
|
136
|
-
contextType: Fdc3ContextType
|
|
106
|
+
contextType: Fdc3ContextType;
|
|
137
107
|
/**
|
|
138
108
|
* FDC3 Context Data which has been mapped from the grid data based on the given configuration in `gridDataContextMapping`
|
|
139
109
|
*/
|
|
@@ -171,8 +141,12 @@ export interface HandleFdc3IntentContext extends HandleFdc3Context {
|
|
|
171
141
|
/**
|
|
172
142
|
* The FDC3 Intent
|
|
173
143
|
*/
|
|
174
|
-
intent: Fdc3IntentType
|
|
144
|
+
intent: Fdc3IntentType;
|
|
175
145
|
}
|
|
146
|
+
export declare const ColumnRefTypePrefix = "_colId.";
|
|
147
|
+
export declare const FieldRefTypePrefix = "_field.";
|
|
148
|
+
export declare type GridDataRef = `_colId.${string}` | `_field.${string}`;
|
|
149
|
+
export declare type Fdc3ContentMapping<T> = PropertiesToGridRefs<Omit<T, 'type'>>;
|
|
176
150
|
/**
|
|
177
151
|
* Mapping of FDC3 Context Types to Grid Data/Columns
|
|
178
152
|
*/
|
|
@@ -195,14 +169,48 @@ export interface GridDataContextMapping {
|
|
|
195
169
|
[key: string]: Fdc3ContentMapping<Context>;
|
|
196
170
|
};
|
|
197
171
|
}
|
|
198
|
-
export
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
172
|
+
export interface RaiseIntentConfiguration {
|
|
173
|
+
StartCall?: RaiseIntentConfig<'StartCall'>[];
|
|
174
|
+
StartChat?: RaiseIntentConfig<'StartChat'>[];
|
|
175
|
+
StartEmail?: RaiseIntentConfig<'StartEmail'>[];
|
|
176
|
+
ViewAnalysis?: RaiseIntentConfig<'ViewAnalysis'>[];
|
|
177
|
+
ViewChart?: RaiseIntentConfig<'ViewChart'>[];
|
|
178
|
+
ViewContact?: RaiseIntentConfig<'ViewContact'>[];
|
|
179
|
+
ViewHoldings?: RaiseIntentConfig<'ViewHoldings'>[];
|
|
180
|
+
ViewInstrument?: RaiseIntentConfig<'ViewInstrument'>[];
|
|
181
|
+
ViewInteractions?: RaiseIntentConfig<'ViewInteractions'>[];
|
|
182
|
+
ViewNews?: RaiseIntentConfig<'ViewNews'>[];
|
|
183
|
+
ViewOrders?: RaiseIntentConfig<'ViewOrders'>[];
|
|
184
|
+
ViewProfile?: RaiseIntentConfig<'ViewProfile'>[];
|
|
185
|
+
ViewQuote?: RaiseIntentConfig<'ViewQuote'>[];
|
|
186
|
+
ViewResearch?: RaiseIntentConfig<'ViewResearch'>[];
|
|
187
|
+
custom?: {
|
|
188
|
+
[customIntent: string]: RaiseIntentConfig[];
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
export interface BroadcastConfiguration {
|
|
192
|
+
'fdc3.chart'?: BroadcastConfig;
|
|
193
|
+
'fdc3.chat.initSettings'?: BroadcastConfig;
|
|
194
|
+
'fdc3.contact'?: BroadcastConfig;
|
|
195
|
+
'fdc3.contactList'?: BroadcastConfig;
|
|
196
|
+
'fdc3.country'?: BroadcastConfig;
|
|
197
|
+
'fdc3.currency'?: BroadcastConfig;
|
|
198
|
+
'fdc3.email'?: BroadcastConfig;
|
|
199
|
+
'fdc3.instrument'?: BroadcastConfig;
|
|
200
|
+
'fdc3.instrumentList'?: BroadcastConfig;
|
|
201
|
+
'fdc3.organization'?: BroadcastConfig;
|
|
202
|
+
'fdc3.portfolio'?: BroadcastConfig;
|
|
203
|
+
'fdc3.position'?: BroadcastConfig;
|
|
204
|
+
'fdc3.timerange'?: BroadcastConfig;
|
|
205
|
+
'fdc3.valuation'?: BroadcastConfig;
|
|
206
|
+
custom?: {
|
|
207
|
+
[customContext: string]: BroadcastConfig;
|
|
208
|
+
};
|
|
209
|
+
}
|
|
202
210
|
/**
|
|
203
211
|
* Config used when raising an FDC3 Intent
|
|
204
212
|
*/
|
|
205
|
-
export interface RaiseIntentConfig<K extends
|
|
213
|
+
export interface RaiseIntentConfig<K extends Fdc3StandardIntentType = any> {
|
|
206
214
|
/**
|
|
207
215
|
* Key of Context being Raised
|
|
208
216
|
*/
|
|
@@ -227,9 +235,9 @@ export interface RaiseIntentConfig<K extends Fdc3IntentType = any> {
|
|
|
227
235
|
width?: number;
|
|
228
236
|
};
|
|
229
237
|
/**
|
|
230
|
-
* Handles
|
|
238
|
+
* Handles the IntentResolution for this specific raise intent configuration
|
|
231
239
|
*/
|
|
232
|
-
handleIntentResolution?: (context: HandleFdc3IntentResolutionContext) => Promise<
|
|
240
|
+
handleIntentResolution?: (context: HandleFdc3IntentResolutionContext) => Promise<void>;
|
|
233
241
|
}
|
|
234
242
|
/**
|
|
235
243
|
* Config used when broadcasting FDC3 Context
|
|
@@ -242,12 +250,12 @@ export interface BroadcastConfig {
|
|
|
242
250
|
columnIds: string[];
|
|
243
251
|
};
|
|
244
252
|
/**
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
* Definition of Action Button (to be put in default FDC3 Action Column)
|
|
254
|
+
*/
|
|
247
255
|
actionButton?: Fdc3AdaptableButton;
|
|
248
256
|
/**
|
|
249
|
-
|
|
250
|
-
|
|
257
|
+
* Custom FDC3 Action Column definition to broadcast the Context
|
|
258
|
+
*/
|
|
251
259
|
actionColumn?: {
|
|
252
260
|
columnId: string;
|
|
253
261
|
friendlyName?: string;
|
|
@@ -271,11 +279,11 @@ export interface Fdc3ButtonContext extends BaseContext {
|
|
|
271
279
|
/**
|
|
272
280
|
* The FDC3 Context
|
|
273
281
|
*/
|
|
274
|
-
context: Fdc3Context
|
|
282
|
+
context: Fdc3Context;
|
|
275
283
|
/**
|
|
276
284
|
* The FDC3 Intent
|
|
277
285
|
*/
|
|
278
|
-
intent?: Fdc3IntentType
|
|
286
|
+
intent?: Fdc3IntentType;
|
|
279
287
|
/**
|
|
280
288
|
* The row node which is the source of the context data
|
|
281
289
|
*/
|
package/src/Api/Fdc3Api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fdc3Context,
|
|
1
|
+
import { Fdc3Context, Fdc3StandardContextType, Fdc3ContextType } from '../PredefinedConfig/Common/Fdc3Context';
|
|
2
2
|
import { IRowNode } from '@ag-grid-community/core';
|
|
3
|
-
import { DesktopAgent, IntentResolution
|
|
4
|
-
import {
|
|
3
|
+
import { AppIdentifier, DesktopAgent, IntentResolution } from '@finos/fdc3';
|
|
4
|
+
import { Fdc3IntentType, Fdc3StandardIntentType } from '../PredefinedConfig/Common/Fdc3Intent';
|
|
5
5
|
/**
|
|
6
6
|
* Provides run-time access to AdapTable's FDC3 functionality
|
|
7
7
|
*/
|
|
@@ -14,30 +14,30 @@ export interface Fdc3Api {
|
|
|
14
14
|
* Returns the human-friendly label for the given Context Type
|
|
15
15
|
* @param contextType - The FDC3 Context Type
|
|
16
16
|
*/
|
|
17
|
-
getContextLabel(contextType: Fdc3ContextType
|
|
17
|
+
getContextLabel(contextType: Fdc3ContextType): string;
|
|
18
18
|
/**
|
|
19
19
|
* Builds FDC3 Context Data based on the given Context Type and Row Node
|
|
20
20
|
* @param contextType - The FDC3 Context Type
|
|
21
21
|
* @param rowNode - The Row Node
|
|
22
22
|
*/
|
|
23
|
-
buildContextDataFromRow(contextType: Fdc3ContextType
|
|
23
|
+
buildContextDataFromRow(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
24
24
|
/**
|
|
25
25
|
* Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
|
|
26
26
|
* @param contextType - The FDC3 Context Type
|
|
27
27
|
* @param primaryKeyValue - The Primary Key Value
|
|
28
28
|
*/
|
|
29
|
-
buildContextDataForPrimaryKey(contextType: Fdc3ContextType
|
|
29
|
+
buildContextDataForPrimaryKey(contextType: Fdc3ContextType, primaryKeyValue: string | number): Fdc3Context | undefined;
|
|
30
30
|
/**
|
|
31
31
|
* Returns the FDC3 Context Type for the given Intent
|
|
32
32
|
* @param intent - The FDC3 Intent
|
|
33
33
|
*/
|
|
34
|
-
getPossibleContextTypes(intent:
|
|
34
|
+
getPossibleContextTypes(intent: Fdc3StandardIntentType): Fdc3StandardContextType[];
|
|
35
35
|
/**
|
|
36
36
|
* Checks if the given Context Type is compatible with the given Intent
|
|
37
37
|
* @param contextType - The FDC3 Context Type
|
|
38
38
|
* @param intent - The FDC3 Intent
|
|
39
39
|
*/
|
|
40
|
-
isContextCompatibleWithIntent(contextType:
|
|
40
|
+
isContextCompatibleWithIntent(contextType: Fdc3StandardContextType, intent: Fdc3StandardIntentType): boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Raises an Intent with the given Context from the given Row Node
|
|
43
43
|
* @param rowNode - The Row Node
|
|
@@ -45,7 +45,7 @@ export interface Fdc3Api {
|
|
|
45
45
|
* @param contextType - The FDC3 Context Type
|
|
46
46
|
* @param appIdentifier - The App Identifier
|
|
47
47
|
*/
|
|
48
|
-
raiseIntentFromRow(rowNode: IRowNode, intent: Fdc3IntentType
|
|
48
|
+
raiseIntentFromRow(rowNode: IRowNode, intent: Fdc3IntentType, contextType: Fdc3ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
49
49
|
/**
|
|
50
50
|
* Raises an Intent with the given Context from the given Row Node with the given Primary Key Value
|
|
51
51
|
* @param primaryKeyValue - The Primary Key Value
|
|
@@ -53,33 +53,33 @@ export interface Fdc3Api {
|
|
|
53
53
|
* @param contextType - The FDC3 Context Type
|
|
54
54
|
* @param appIdentifier - The App Identifier
|
|
55
55
|
*/
|
|
56
|
-
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Fdc3IntentType
|
|
56
|
+
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Fdc3IntentType, contextType: Fdc3ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Finds and raises an Intent based on the given Context from the given Row Node
|
|
59
59
|
* @param rowNode - The Row Node
|
|
60
60
|
* @param contextType - The FDC3 Context Type
|
|
61
61
|
* @param appIdentifier - The App Identifier
|
|
62
62
|
*/
|
|
63
|
-
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: Fdc3ContextType
|
|
63
|
+
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: Fdc3ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
64
64
|
/**
|
|
65
65
|
* Finds and raises an Intent based on the given Context from the given Row Node with the given Primary Key Value
|
|
66
66
|
* @param primaryKeyValue - The Primary Key Value
|
|
67
67
|
* @param contextType - The FDC3 Context Type
|
|
68
68
|
* @param appIdentifier - The App Identifier
|
|
69
69
|
*/
|
|
70
|
-
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3ContextType
|
|
70
|
+
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* Broadcasts the given Context from the given Row Node
|
|
73
73
|
* @param rowNode - The Row Node
|
|
74
74
|
* @param contextType - The FDC3 Context Type
|
|
75
75
|
*/
|
|
76
|
-
broadcastFromRow(rowNode: IRowNode, contextType: Fdc3ContextType
|
|
76
|
+
broadcastFromRow(rowNode: IRowNode, contextType: Fdc3ContextType): Promise<void>;
|
|
77
77
|
/**
|
|
78
78
|
* Broadcasts the given Context from the given Row Node with the given Primary Key Value
|
|
79
79
|
* @param primaryKeyValue - The Primary Key Value
|
|
80
80
|
* @param contextType - The FDC3 Context Type
|
|
81
81
|
*/
|
|
82
|
-
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3ContextType
|
|
82
|
+
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3ContextType): Promise<void> | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* Checks if the given Context Type is a FDC3 standard Context Type
|
|
85
85
|
*/
|
package/src/Api/GridApi.d.ts
CHANGED
|
@@ -434,7 +434,17 @@ export interface GridApi {
|
|
|
434
434
|
*/
|
|
435
435
|
unHighlightAllRows(): void;
|
|
436
436
|
/**
|
|
437
|
-
* Refresh
|
|
437
|
+
* Refresh Column Values in AdapTable
|
|
438
|
+
* @param columnId - the ID of the Column to refresh
|
|
439
|
+
*/
|
|
440
|
+
refreshColumn(columnId: string): void;
|
|
441
|
+
/**
|
|
442
|
+
* Refresh Columns Values in AdapTable
|
|
443
|
+
* @param columnIds - the IDs of the Columns to refresh
|
|
444
|
+
*/
|
|
445
|
+
refreshColumns(columnIds: string[]): void;
|
|
446
|
+
/**
|
|
447
|
+
* Refresh Cell Values in AdapTable
|
|
438
448
|
* @param rowNodes agGrid RowNodes which contain cells to refresh
|
|
439
449
|
* @param columnIds ColumnIds which contain cells to refresh
|
|
440
450
|
*/
|
|
@@ -4,24 +4,24 @@ import { ApiBase } from './ApiBase';
|
|
|
4
4
|
import { Fdc3Api } from '../Fdc3Api';
|
|
5
5
|
import { Fdc3InternalApi } from '../Internal/Fdc3InternalApi';
|
|
6
6
|
import { IAdaptable } from '../../AdaptableInterfaces/IAdaptable';
|
|
7
|
-
import { Fdc3Context,
|
|
8
|
-
import {
|
|
7
|
+
import { Fdc3Context, Fdc3StandardContextType } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
8
|
+
import { Fdc3StandardIntentType } from '../../PredefinedConfig/Common/Fdc3Intent';
|
|
9
9
|
import { AppIdentifier } from '@finos/fdc3/dist/api/AppIdentifier';
|
|
10
10
|
export declare class Fdc3ApiImpl extends ApiBase implements Fdc3Api {
|
|
11
11
|
internalApi: Fdc3InternalApi;
|
|
12
12
|
constructor(adaptable: IAdaptable);
|
|
13
13
|
getDesktopAgent(): DesktopAgent;
|
|
14
|
-
buildContextDataFromRow(contextType:
|
|
15
|
-
buildContextDataForPrimaryKey(contextType:
|
|
16
|
-
getPossibleContextTypes(intent:
|
|
17
|
-
isContextCompatibleWithIntent(contextType:
|
|
18
|
-
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent:
|
|
19
|
-
raiseIntentFromRow(rowNode: IRowNode, intent:
|
|
20
|
-
raiseIntentForContextFromRow(rowNode: IRowNode, contextType:
|
|
21
|
-
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType:
|
|
22
|
-
broadcastFromRow(rowNode: IRowNode, contextType:
|
|
23
|
-
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType:
|
|
24
|
-
getContextLabel(contextType:
|
|
14
|
+
buildContextDataFromRow(contextType: Fdc3StandardContextType, rowNode: IRowNode): Fdc3Context;
|
|
15
|
+
buildContextDataForPrimaryKey(contextType: Fdc3StandardContextType, primaryKeyValue: string | number): Fdc3Context | undefined;
|
|
16
|
+
getPossibleContextTypes(intent: Fdc3StandardIntentType): Fdc3StandardContextType[];
|
|
17
|
+
isContextCompatibleWithIntent(contextType: Fdc3StandardContextType, intent: Fdc3StandardIntentType): boolean;
|
|
18
|
+
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Fdc3StandardIntentType, contextType: Fdc3StandardContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
19
|
+
raiseIntentFromRow(rowNode: IRowNode, intent: Fdc3StandardIntentType, contextType: Fdc3StandardContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
20
|
+
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: Fdc3StandardContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
|
|
21
|
+
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3StandardContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
|
|
22
|
+
broadcastFromRow(rowNode: IRowNode, contextType: Fdc3StandardContextType): Promise<void>;
|
|
23
|
+
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: Fdc3StandardContextType): Promise<void> | undefined;
|
|
24
|
+
getContextLabel(contextType: Fdc3StandardContextType): string;
|
|
25
25
|
isStandardContextType(contextType: string): boolean;
|
|
26
26
|
isStandardIntentType(intentType: string): boolean;
|
|
27
27
|
private getFdc3Service;
|
|
@@ -73,12 +73,10 @@ class Fdc3ApiImpl extends ApiBase_1.ApiBase {
|
|
|
73
73
|
return (_a = Fdc3Context_1.ContextLabels[contextType]) !== null && _a !== void 0 ? _a : contextType;
|
|
74
74
|
}
|
|
75
75
|
isStandardContextType(contextType) {
|
|
76
|
-
|
|
77
|
-
return Fdc3Context_1.StandardContextTypes.includes(contextType);
|
|
76
|
+
return this.internalApi.isStandardContextType(contextType);
|
|
78
77
|
}
|
|
79
78
|
isStandardIntentType(intentType) {
|
|
80
|
-
|
|
81
|
-
return Fdc3Intent_1.Fdc3StandardIntents.includes(intentType);
|
|
79
|
+
return this.internalApi.isStandardIntentType(intentType);
|
|
82
80
|
}
|
|
83
81
|
getFdc3Service() {
|
|
84
82
|
return this.adaptable.api.internalApi.getFdc3Service();
|
|
@@ -109,6 +109,8 @@ export declare class GridApiImpl extends ApiBase implements GridApi {
|
|
|
109
109
|
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
|
|
110
110
|
unHighlightAllRows(): void;
|
|
111
111
|
refreshCells(rowNodes: IRowNode[], columnIds: string[]): void;
|
|
112
|
+
refreshColumn(columnId: string): void;
|
|
113
|
+
refreshColumns(columnIds: string[]): void;
|
|
112
114
|
refreshRowByPrimaryKey(primaryKey: any): void;
|
|
113
115
|
refreshRowNode(rowNode: IRowNode): void;
|
|
114
116
|
refreshRowNodes(rowNodes: IRowNode[]): void;
|
|
@@ -455,6 +455,12 @@ class GridApiImpl extends ApiBase_1.ApiBase {
|
|
|
455
455
|
refreshCells(rowNodes, columnIds) {
|
|
456
456
|
this.adaptable.refreshCells(rowNodes, columnIds, true);
|
|
457
457
|
}
|
|
458
|
+
refreshColumn(columnId) {
|
|
459
|
+
this.adaptable.refreshCells(null, [columnId], true);
|
|
460
|
+
}
|
|
461
|
+
refreshColumns(columnIds) {
|
|
462
|
+
this.adaptable.refreshCells(null, columnIds, true);
|
|
463
|
+
}
|
|
458
464
|
refreshRowByPrimaryKey(primaryKey) {
|
|
459
465
|
const rowNode = this.getRowNodeForPrimaryKey(primaryKey);
|
|
460
466
|
this.refreshRowNode(rowNode);
|
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
import { ApiBase } from '../Implementation/ApiBase';
|
|
2
|
-
import {
|
|
2
|
+
import { Fdc3ContextType, Fdc3Context, Fdc3StandardContextType } from '../../PredefinedConfig/Common/Fdc3Context';
|
|
3
3
|
import { ColDef, IRowNode } from '@ag-grid-community/core';
|
|
4
4
|
import { AppIdentifier, Context, IntentResolution } from '@finos/fdc3';
|
|
5
|
+
import { BroadcastConfig, RaiseIntentConfig } from '../../AdaptableOptions/Fdc3Options';
|
|
6
|
+
import { Fdc3IntentType, Fdc3StandardIntentType } from '../../PredefinedConfig/Common/Fdc3Intent';
|
|
5
7
|
import { AdaptableButton } from '../../PredefinedConfig/Common/AdaptableButton';
|
|
6
8
|
import { ActionColumnContext } from '../../AdaptableOptions/ActionColumnOptions';
|
|
9
|
+
declare type WithContext<K> = K & {
|
|
10
|
+
contextType: Fdc3ContextType;
|
|
11
|
+
};
|
|
12
|
+
declare type WithIntent<K> = K & {
|
|
13
|
+
intentType: Fdc3IntentType;
|
|
14
|
+
};
|
|
7
15
|
export declare class Fdc3InternalApi extends ApiBase {
|
|
8
|
-
mapRowToContextData(contextType: Fdc3ContextType
|
|
9
|
-
/**
|
|
10
|
-
* Computes the context based on the given `Fdc3Options.gridDataContextMapping` and the given `IRowNode`.
|
|
11
|
-
*/
|
|
12
|
-
getMappedContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
16
|
+
mapRowToContextData(contextType: Fdc3ContextType, rowNode: IRowNode): Fdc3Context;
|
|
13
17
|
getFdc3ActionColDefs(): ColDef[];
|
|
14
18
|
getButtonsForFdc3MainActionColumn(): AdaptableButton<ActionColumnContext<any>>[];
|
|
15
19
|
getButtonsForFdc3StandaloneActionColumn(columnId: string): AdaptableButton<ActionColumnContext<any>>[];
|
|
16
20
|
isFdc3MainActionColumn(columnId: string): boolean;
|
|
17
21
|
isFdc3StandaloneActionColumn(columnId: string, columnType: string | string[]): boolean;
|
|
18
22
|
handleIntentResolution(intentResolution: IntentResolution, context: Context, raisedIntent: string, app?: AppIdentifier): void;
|
|
23
|
+
isStandardContextType(contextType: string): contextType is Fdc3StandardContextType;
|
|
24
|
+
isStandardIntentType(intentType: string): intentType is Fdc3StandardIntentType;
|
|
25
|
+
getAllRaiseIntentConfigs(): WithIntent<RaiseIntentConfig>[];
|
|
26
|
+
getAllBroadcastContextConfigs(): WithContext<BroadcastConfig>[];
|
|
27
|
+
private mapRowValueToContextData;
|
|
19
28
|
private isAtLeastOneActionButtonConfigured;
|
|
20
29
|
private getIntentConfigsWithActionButtons;
|
|
21
|
-
private getCustomIntentConfigsWithActionButtons;
|
|
22
30
|
private getContextConfigsWithActionButtons;
|
|
23
|
-
private getCustomContextConfigsWithActionButtons;
|
|
24
|
-
private mapRowValueToContextData;
|
|
25
31
|
private mapFdc3ButtonConfigToAdaptableButton;
|
|
26
32
|
private getDefaultFdc3ButtonLabel;
|
|
27
33
|
private getDefaultFdc3ButtonIcon;
|
|
28
34
|
private getDefaultFdc3ButtonStyle;
|
|
29
35
|
}
|
|
36
|
+
export {};
|