@adaptabletools/adaptable 16.0.1-canary.0 → 16.0.1-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/bundle.cjs.js +162 -164
  2. package/package.json +1 -1
  3. package/publishTimestamp.d.ts +1 -1
  4. package/publishTimestamp.js +1 -1
  5. package/src/AdaptableInterfaces/IAdaptable.d.ts +2 -1
  6. package/src/AdaptableOptions/AdaptableOptions.d.ts +6 -1
  7. package/src/AdaptableOptions/CalendarOptions.d.ts +3 -3
  8. package/src/AdaptableOptions/CommentsOptions.d.ts +23 -0
  9. package/src/AdaptableOptions/Fdc3Options.d.ts +54 -47
  10. package/src/AdaptableOptions/FilterOptions.d.ts +7 -2
  11. package/src/AdaptableOptions/FinancePluginOptions.d.ts +2 -306
  12. package/src/AdaptableOptions/OpenFinPluginOptions.d.ts +0 -6
  13. package/src/AdaptableOptions/UserInterfaceOptions.d.ts +0 -17
  14. package/src/Api/CommentsApi.d.ts +6 -6
  15. package/src/Api/EventApi.d.ts +2 -14
  16. package/src/Api/GridApi.d.ts +13 -13
  17. package/src/Api/Implementation/ApiBase.d.ts +2 -0
  18. package/src/Api/Implementation/ApiBase.js +3 -0
  19. package/src/Api/Implementation/CalendarApiImpl.js +1 -2
  20. package/src/Api/Implementation/CommentsApiImpl.d.ts +3 -3
  21. package/src/Api/Implementation/CommentsApiImpl.js +3 -3
  22. package/src/Api/Implementation/GridApiImpl.js +2 -2
  23. package/src/Api/Implementation/OptionsApiImpl.d.ts +2 -1
  24. package/src/Api/Implementation/OptionsApiImpl.js +3 -0
  25. package/src/Api/Implementation/PluginsApiImpl.d.ts +0 -2
  26. package/src/Api/Implementation/PluginsApiImpl.js +0 -6
  27. package/src/Api/Internal/AdaptableInternalApi.js +1 -1
  28. package/src/Api/Internal/Fdc3InternalApi.js +2 -2
  29. package/src/Api/OptionsApi.d.ts +5 -1
  30. package/src/Api/PluginsApi.d.ts +0 -5
  31. package/src/PredefinedConfig/CommentsState.d.ts +30 -3
  32. package/src/PredefinedConfig/Common/Entitlement.d.ts +1 -1
  33. package/src/PredefinedConfig/Common/Fdc3Context.d.ts +6 -0
  34. package/src/PredefinedConfig/SystemState.d.ts +2 -2
  35. package/src/Redux/ActionsReducers/SystemRedux.d.ts +4 -4
  36. package/src/Strategy/CommentsModule.d.ts +2 -2
  37. package/src/Strategy/CommentsModule.js +11 -11
  38. package/src/Strategy/Fdc3Module.d.ts +0 -1
  39. package/src/Strategy/Fdc3Module.js +0 -3
  40. package/src/Utilities/Constants/GeneralConstants.d.ts +0 -1
  41. package/src/Utilities/Constants/GeneralConstants.js +2 -3
  42. package/src/Utilities/Defaults/DefaultAdaptableOptions.js +1 -1
  43. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/ConfigurationWizard.js +10 -7
  44. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.d.ts +1 -7
  45. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/FinanceForm.js +621 -268
  46. package/src/View/Comments/CommentPopup.js +5 -5
  47. package/src/agGrid/Adaptable.d.ts +2 -1
  48. package/src/agGrid/Adaptable.js +5 -1
  49. package/src/agGrid/attachAddaptableColumnTypes.js +1 -0
  50. package/src/metamodel/adaptable.metamodel.d.ts +41 -411
  51. package/src/metamodel/adaptable.metamodel.js +1 -1
  52. package/src/types.d.ts +4 -6
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. package/src/Api/FinanceApi.d.ts +0 -125
  56. package/src/PredefinedConfig/Common/FDC3Context_DEPR.d.ts +0 -246
  57. package/src/PredefinedConfig/Common/FDC3Context_DEPR.js +0 -2
  58. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.d.ts +0 -1
  59. package/src/View/AdaptableWizardView/AdaptableConfigurationDialog/FinanceForm/index.js +0 -5
  60. /package/src/{Api/FinanceApi.js → AdaptableOptions/CommentsOptions.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable",
3
- "version": "16.0.1-canary.0",
3
+ "version": "16.0.1-canary.1",
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",
@@ -1,2 +1,2 @@
1
- declare const _default: 1691780853920;
1
+ declare const _default: 1692167076689;
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = 1691780853920;
3
+ exports.default = 1692167076689;
@@ -156,7 +156,8 @@ export interface IAdaptable {
156
156
  jumpToColumn(columnId: string): void;
157
157
  jumpToCell(columnId: string, rowNode: IRowNode): void;
158
158
  getAgGridContainerElement(): HTMLElement | null;
159
- setDataSource(dataSource: any): void;
159
+ setInitialGridData(dataSource: any): void;
160
+ setGridData(dataSource: any): void;
160
161
  getGridData(): any[];
161
162
  getFilteredData(): any[];
162
163
  updateRows(dataRows: any[], dataUpdateConfig?: DataUpdateConfig): Promise<IRowNode[]>;
@@ -30,6 +30,7 @@ import { CalendarOptions } from './CalendarOptions';
30
30
  import { QuickSearchOptions } from './QuickSearchOptions';
31
31
  import { FormatColumnOptions } from './FormatColumnOptions';
32
32
  import { Fdc3Options } from './Fdc3Options';
33
+ import { CommentOptions } from './CommentsOptions';
33
34
  /**
34
35
  * Large group of options enabling developers to set up AdapTable at design time to fit precise requirements
35
36
  */
@@ -103,7 +104,7 @@ export interface AdaptableOptions<TData = any> {
103
104
  /**
104
105
  * Options for managing Holidays and Working Days
105
106
  */
106
- calendarOptions?: CalendarOptions<TData>;
107
+ calendarOptions?: CalendarOptions;
107
108
  /**
108
109
  * Options for adding custom Cell Summaries
109
110
  */
@@ -122,6 +123,10 @@ export interface AdaptableOptions<TData = any> {
122
123
  * Options for setting the 'Div' elements in which AdapTable, AG Grid, popups are placed
123
124
  */
124
125
  containerOptions?: ContainerOptions;
126
+ /**
127
+ * Options for managing AdapTable Comments
128
+ */
129
+ commentOptions?: CommentOptions;
125
130
  /**
126
131
  * Options for using Custom Sort
127
132
  */
@@ -2,10 +2,10 @@ import { BaseContext } from '../../types';
2
2
  /**
3
3
  * Options for managing Holidays and Working Days in AdapTable
4
4
  */
5
- export interface CalendarOptions<TData = any> {
5
+ export interface CalendarOptions {
6
6
  /**
7
- * Holidays - used to determine Working Days
7
+ * Holidays for current User
8
8
  * @defaultValue null
9
9
  */
10
- holidays?: string[] | ((baseContext: BaseContext) => string[] | undefined);
10
+ holidays?: Date[] | ((baseContext: BaseContext) => Date[] | undefined);
11
11
  }
@@ -0,0 +1,23 @@
1
+ import { BaseContext } from '../../types';
2
+ /**
3
+ * Options for managing AdapTable Comments
4
+ */
5
+ export interface CommentOptions<TData = any> {
6
+ /**
7
+ * Whether a cell can be commented on
8
+ */
9
+ isCellCommentable?: (context: CommmentableCellContext) => boolean;
10
+ }
11
+ /**
12
+ * Context used when determining if a Comment can be added to a Cell
13
+ */
14
+ export interface CommmentableCellContext extends BaseContext {
15
+ /**
16
+ * Value in Primary Key Column
17
+ */
18
+ primaryKeyValue: string;
19
+ /**
20
+ * Column where Comment will be displayed
21
+ */
22
+ columnId: string;
23
+ }
@@ -10,80 +10,74 @@ import { ButtonStyle } from '../PredefinedConfig/Common/ButtonStyle';
10
10
  */
11
11
  export interface Fdc3Options {
12
12
  /**
13
- * Enable FDC3 in AdapTable
14
- *
15
- * @defaultValue false
16
- */
17
- enableFdc3?: boolean;
18
- /**
19
- * Enable logging of message exchanges in the Console
13
+ * Enable logging of message exchanges to Console
20
14
  *
21
15
  * @defaultValue false
22
16
  */
23
17
  enableLogging?: boolean;
24
18
  /**
25
- * Maps the Context Type to the AdapTable Grid Data
19
+ * Maps Context Type to AdapTable Grid Data
26
20
  */
27
21
  gridDataContextMapping?: GridDataContextMapping;
28
22
  /**
29
- * Builds the Context Data (useful for postprocessing the Context Data mapped from the grid data)
23
+ * Builds Context Data (useful for postprocessing Context Data mapped from Grid data)
30
24
  */
31
25
  resolveContextData?: (context: ResolveContextDataContext) => Fdc3Context;
32
26
  /**
33
- * Configures the FDC3 standard Intents that AdaptTable will listen for and raise
27
+ * Configures FDC3 standard Intents that AdapTable will listen for and raise
34
28
  */
35
29
  intents?: {
36
30
  /**
37
- * Subscribe to the given standard Intent(s)
31
+ * Subscribe to given standard Intent(s)
38
32
  */
39
33
  listensFor?: Fdc3IntentType[];
40
34
  /**
41
- * Raises the given standard Intent(s) on various Grid Actions
35
+ * Raises given standard Intent(s) on various Grid Actions
42
36
  */
43
37
  raises?: {
44
38
  [K in Fdc3IntentType]?: RaiseIntentConfig<K>[];
45
39
  };
46
40
  };
47
41
  /**
48
- * Configures the FDC3 custom Intents that AdaptTable will listen for and raise
42
+ * Configures FDC3 custom Intents that AdapTable will listen for and raise
49
43
  */
50
44
  customIntents?: {
51
45
  /**
52
- * Subscribe to the given custom Intent(s)
46
+ * Subscribe to given custom Intent(s)
53
47
  */
54
48
  listensFor?: Fdc3CustomIntentType[];
55
49
  /**
56
- * Raises the given custom Intent(s) on various Grid Actions
50
+ * Raises given custom Intent(s) on various Grid Actions
57
51
  */
58
52
  raises?: {
59
53
  [K in Fdc3CustomIntentType]: RaiseIntentConfig[];
60
54
  };
61
55
  };
62
56
  /**
63
- * Configures the FDC3 standard Contexts that AdaptTable will listen for and broadcast
57
+ * Configures FDC3 standard Contexts that AdapTable will listen for and broadcast
64
58
  */
65
59
  contexts?: {
66
60
  /**
67
- * Subscribe to the given standard Context(s)
61
+ * Subscribe to given standard Context(s)
68
62
  */
69
63
  listensFor?: Fdc3ContextType[];
70
64
  /**
71
- * Broadcasts the given standard Context(s) on various Grid Actions
65
+ * Broadcasts given standard Context(s) on various Grid Actions
72
66
  */
73
67
  broadcasts?: {
74
68
  [K in Fdc3ContextType]?: BroadcastConfig;
75
69
  };
76
70
  };
77
71
  /**
78
- * Configures the FDC3 custom Contexts that AdaptTable will listen for and broadcast
72
+ * Configures FDC3 custom Contexts that AdapTable will listen for and broadcast
79
73
  */
80
74
  customContexts?: {
81
75
  /**
82
- * Subscribe to the given custom Context(s)
76
+ * Subscribe to given custom Context(s)
83
77
  */
84
78
  listensFor?: Fdc3CustomContextType[];
85
79
  /**
86
- * Broadcasts the given custom Context(s) on various Grid Actions
80
+ * Broadcasts given custom Context(s) on various Grid Actions
87
81
  */
88
82
  broadcasts?: {
89
83
  [K in Fdc3CustomContextType]?: BroadcastConfig;
@@ -98,49 +92,62 @@ export interface Fdc3Options {
98
92
  */
99
93
  handleContext?: (context: HandleFdc3Context) => void;
100
94
  /**
101
- * Customises the FDC3 Actions column
95
+ * Customises FDC3 Actions column
102
96
  */
103
- actionColumnDefaultConfiguration?: {
104
- /**
105
- * @defaultValue 'FDC3 Actions'
106
- */
107
- headerName?: string;
108
- /**
109
- * @defaultValue '200' (pixels)
110
- */
111
- width?: number;
112
- /**
113
- * @defaultValue true
114
- */
115
- resizable?: boolean;
116
- /**
117
- * @defaultValue true
118
- */
119
- movable?: boolean;
120
- };
97
+ actionColumnDefaultConfiguration?: ActionColumnDefaultConfiguration;
121
98
  }
122
99
  /**
123
- * Context used when resolving FDC3 Context Data
100
+ * Default configuration to use for an FDC3 ACtion Column
101
+ */
102
+ export interface ActionColumnDefaultConfiguration {
103
+ /**
104
+ * Column Id
105
+ * @defaultValue 'fdc3ActionColumn'
106
+ */
107
+ columnId?: string;
108
+ /**
109
+ * Column Header
110
+ * @defaultValue 'FDC3 Actions'
111
+ */
112
+ headerName?: string;
113
+ /**
114
+ * Column Width in pixels
115
+ * @defaultValue 200
116
+ */
117
+ width?: number;
118
+ /**
119
+ * If Column is resizable
120
+ * @defaultValue true
121
+ */
122
+ resizable?: boolean;
123
+ /**
124
+ * If Column is moveable
125
+ * @defaultValue true
126
+ */
127
+ movable?: boolean;
128
+ }
129
+ /**
130
+ * Used to build Context Data
124
131
  */
125
132
  export interface ResolveContextDataContext extends BaseContext {
126
133
  /**
127
- * The FDC3 Context Type
134
+ * FDC3 Context Type
128
135
  */
129
136
  contextType: Fdc3ContextType | Fdc3CustomContextType;
130
137
  /**
131
- * The FDC3 Context Data which has been mapped from the grid data based on the given configuration in `gridDataContextMapping`
138
+ * FDC3 Context Data which has been mapped from the grid data based on the given configuration in `gridDataContextMapping`
132
139
  */
133
140
  contextMappedFromGridData?: Fdc3Context;
134
141
  /**
135
- * The row node which is the source of the context data
142
+ * Row Node which is source of the context data
136
143
  */
137
144
  rowNode: IRowNode;
138
145
  /**
139
- * The row data which is the source of the context data
146
+ * Row data which is the source of the context data
140
147
  */
141
148
  rowData: any;
142
149
  /**
143
- * Primary key value of row
150
+ * Primary Key value of row
144
151
  */
145
152
  primaryKeyValue: any;
146
153
  }
@@ -158,7 +165,7 @@ export interface HandleFdc3Context extends BaseContext {
158
165
  metadata?: ContextMetadata;
159
166
  }
160
167
  /**
161
- * Context used when handling incoming FDC3 messages
168
+ * Context used when handling incoming FDC3 Intents
162
169
  */
163
170
  export interface HandleFdc3IntentContext extends HandleFdc3Context {
164
171
  /**
@@ -7,13 +7,13 @@ import { StrictExtract } from '../Utilities/Extensions/TypeExtensions';
7
7
  */
8
8
  export interface FilterOptions<TData = any> {
9
9
  /**
10
- * Hides the Dropdown in Quick Filter Bar for a given Column
10
+ * Hides Dropdown in Quick Filter Bar for a given Column
11
11
  *
12
12
  * @defaultValue undefined
13
13
  */
14
14
  hideQuickFilterDropdown?: (filterContext: FilterContext<TData>) => boolean;
15
15
  /**
16
- * Hides the Input in Quick Filter Bar for a given Column
16
+ * Hides Input in Quick Filter Bar for a given Column
17
17
  *
18
18
  * @defaultValue undefined
19
19
  */
@@ -155,6 +155,11 @@ export interface FilterOptions<TData = any> {
155
155
  * @noCodeItem
156
156
  */
157
157
  showQuickFilter?: boolean;
158
+ /**
159
+ * If Values filter should filter on datetime rather than date
160
+ * @defaultValue true
161
+ * @noCodeItem
162
+ */
158
163
  filterUsingTime?: boolean;
159
164
  /**
160
165
  * Display only currently filtered distinct values in Filter controls
@@ -1,310 +1,6 @@
1
- import { AdaptableApi, AdaptableIcon, ContextMenuContext, FDC3Context_DEPR, GridCell } from '../../types';
2
- import { CustomFDC3Context } from '../PredefinedConfig/Common/FDC3Context_DEPR';
3
1
  /**
4
- * Options required for when using the Finance plugin
2
+ * Removed in Version 16
3
+ * @deprecated - now provided in FDC3 Options
5
4
  */
6
5
  export interface FinancePluginOptions {
7
- /**
8
- * Columns to be defined as FDC3-related
9
- */
10
- fdc3Columns?: {
11
- /**
12
- * FDC3 Instruments
13
- */
14
- instrumentColumns?: InstrumentColumn[];
15
- /**
16
- * FDC3 Positions
17
- */
18
- positionColumns?: PositionColumn[];
19
- /**
20
- * FDC3 Contacts
21
- */
22
- contactColumns?: ContactColumn[];
23
- /**
24
- * FDC3 Countries
25
- */
26
- countryColumns?: CountryColumn[];
27
- /**
28
- * FDC3 Organizations
29
- */
30
- organizationColumns?: OrganizationColumn[];
31
- /**
32
- * Custom FDC3 Columns
33
- */
34
- customFDC3Columns?: CustomFDC3Column[];
35
- /**
36
- * Custom FDC3 Intents
37
- */
38
- customFDC3Intents?: CustomFDC3Intent_Depr[];
39
- };
40
- /**
41
- * Intents to which to subscribe.
42
- */
43
- availableFDC3Intents?: (FDC3Intent_Depr | CustomFDC3Intent_Depr)[];
44
- /**
45
- * Whether `FDC3MessageSent` Adaptable events should be automatically delegated to the FDC3 API (either via `fdc3.raiseIntent(...)` or `fdc3.broadcast(...)` )
46
- *
47
- * @defaultValue TRUE
48
- */
49
- autoHandleFDC3AdaptableMessages?: boolean;
50
- /**
51
- * Called when an intent from `availableIntents` is raised.
52
- */
53
- onFDC3Intent?: (intent: FDC3Intent_Depr | CustomFDC3Intent_Depr, context: FDC3Context_DEPR, adaptableApi: AdaptableApi) => void;
54
- /**
55
- * Called when a context changes.
56
- */
57
- onFDC3Context?: (context: FDC3Context_DEPR, adaptableApi: AdaptableApi) => void;
58
- }
59
- /**
60
- * An FDC3 Column - will raise FDC3 intents and broadcast FDC3 messages
61
- */
62
- export interface FDC3Column_Depr {
63
- /**
64
- * Id of Column defined as FDC3
65
- */
66
- columnId: string;
67
- /**
68
- * If provided, will supply `name` property in FDC3 message
69
- */
70
- nameColumnId?: string;
71
- /**
72
- * Should Column display a 'Broadcast' context menu item
73
- */
74
- showBroadcastContextMenu?: boolean;
75
- /**
76
- * Should Column display a 'Raise Intent for Context' context menu item
77
- */
78
- showRaiseIntentForContextMenu?: boolean;
79
- /**
80
- * Label to display in Broadcast Context Menu Item
81
- */
82
- broadcastContextMenuLabel?: string | ((broadcastFDC3MessageContext: ContextMenuContext) => string);
83
- /**
84
- * Label to display in RaiseIntentForContext Context Menu Item
85
- */
86
- raiseIntentForContextMenuLabel?: string | ((raiseFDC3IntentForContext: ContextMenuContext) => string);
87
- /**
88
- * FDC3 intents which the Column can raise
89
- */
90
- intents?: any[];
91
- /**
92
- * Label to display in Intent Context Menu Item
93
- */
94
- intentContextMenuLabel?: string | ((raiseFDC3IntentContext: RaiseFDC3IntentContext) => string);
95
- /**
96
- * Returns a custom icon to display in the Raise Intent Context Menu Item;
97
- */
98
- intentIcon?: (intent: FDC3Intent_Depr | CustomFDC3Intent_Depr) => AdaptableIcon;
99
- }
100
- /**
101
- * A Column which will be defined as an FDC3 Instrument
102
- */
103
- export interface InstrumentColumn extends FDC3Column_Depr {
104
- /**
105
- * Column which holds a ticker value as instrument data
106
- */
107
- tickerColumnId?: string;
108
- /**
109
- * Column which holds an ISIN value as instrument data
110
- */
111
- isinColumnId?: string;
112
- /**
113
- * Column which holds a CUSIP value as instrument data
114
- */
115
- cusipColumnId?: string;
116
- /**
117
- * Column which holds a SEDOL value as instrument data
118
- */
119
- sedolColumnId?: string;
120
- /**
121
- * Column which holds a Reuters Instrument Code value as instrument data
122
- */
123
- ricColumnId?: string;
124
- /**
125
- * Column which holds a Bloomberg Ticker value as instrument data
126
- */
127
- bbgColumnId?: string;
128
- /**
129
- * Column which holds a PERMID value as instrument data
130
- */
131
- permidColumnId?: string;
132
- /**
133
- * Column which holds a [FIGI](https://www.openfigi.com/about/figi) value as instrument data
134
- */
135
- figiColumnId?: string;
136
- /**
137
- * Instrument-related FDC3 Intents; can be: `ViewChart` `ViewQuote` `ViewNews` `ViewAnalysis` `ViewInstrument`
138
- */
139
- intents?: InstrumentIntents;
140
- }
141
- /**
142
- * All available Instrument Intents
143
- */
144
- export declare type InstrumentIntents = InstrumentIntent[];
145
- /**
146
- * FDC3 Intents available to an Instrument Column
147
- */
148
- export declare type InstrumentIntent = 'ViewChart' | 'ViewQuote' | 'ViewNews' | 'ViewAnalysis' | 'ViewInstrument';
149
- /**
150
- * A (Numeric) Column which will be defined as an FDC3 Position
151
- */
152
- export interface PositionColumn extends FDC3Column_Depr {
153
- /**
154
- * Column which contains the Instrument information of the FDC3 Message
155
- */
156
- instrumentColumnId: string;
157
- /**
158
- * Position-related FDC3 Intents; can be: `ViewChart` `ViewNews` `ViewAnalysis`
159
- */
160
- intents?: PositionIntents;
161
- }
162
- /**
163
- * All available Position Intents
164
- */
165
- export declare type PositionIntents = PositionIntent[];
166
- /**
167
- * FDC3 Intents available to a Position Column
168
- */
169
- export declare type PositionIntent = 'ViewChart' | 'ViewNews' | 'ViewAnalysis';
170
- /**
171
- * A (String) Column which will be defined as an FDC3 Contact
172
- * columnId and at least one other property is required
173
- */
174
- export interface ContactColumn extends FDC3Column_Depr {
175
- /**
176
- * Column which holds the email address of a Contact
177
- */
178
- emailColumnId?: string;
179
- /**
180
- * Column which holds an FDS_ID value a Contact
181
- */
182
- fds_idColumnId?: string;
183
- /**
184
- * Contact-related FDC3 Intents; can be: `StartCall` `StartChat` `ViewContact`
185
- */
186
- intents?: ContactIntents;
187
- }
188
- /**
189
- * All available Contact Intents
190
- */
191
- export declare type ContactIntents = ContactIntent[];
192
- /**
193
- * FDC3 Intents available to a Contact Column
194
- */
195
- export declare type ContactIntent = 'StartCall' | 'StartChat' | 'ViewContact';
196
- /**
197
- * A (String) Column which will be defined as an FDC3 Organization
198
- */
199
- export interface OrganizationColumn extends FDC3Column_Depr {
200
- /**
201
- * Column which contains the LEI
202
- */
203
- leiColumnId?: string;
204
- /**
205
- * Column which contains a PermId
206
- */
207
- permidColumnId?: string;
208
- /**
209
- * Column which contains an FDS_ID
210
- */
211
- fds_idColumnId?: string;
212
- /**
213
- * Organization-related FDC3 Intents; can be: `ViewNews` `ViewAnalysis`
214
- */
215
- intents?: OrganizationIntents;
216
- }
217
- /**
218
- * All available Organization Intents
219
- */
220
- export declare type OrganizationIntents = OrganizationIntent[];
221
- /**
222
- * FDC3 Intents available to an Organization Column
223
- */
224
- export declare type OrganizationIntent = 'ViewNews' | 'ViewAnalysis';
225
- /**
226
- * A (String) Column which will be defined as an FDC3 Country
227
- */
228
- export interface CountryColumn extends FDC3Column_Depr {
229
- /**
230
- * Column which contains the ISOALPHA2 Standard
231
- */
232
- isoalpha2ColumnId?: string;
233
- /**
234
- * Column which contains the ISOALPHA3 Standard
235
- */
236
- isoalpha3ColumnId?: string;
237
- /**
238
- * Country-related FDC3 Intents; can only be: `ViewChart`
239
- */
240
- intents?: CountryIntents;
241
- }
242
- /**
243
- * All available Country Intents
244
- */
245
- export declare type CountryIntents = CountryIntent[];
246
- /**
247
- * FDC3 Intents available to a Country Column
248
- */
249
- export declare type CountryIntent = 'ViewChart';
250
- /**
251
- * A Column which will be defined as Custom FDC3 (can be any datatype)
252
- */
253
- export interface CustomFDC3Column extends FDC3Column_Depr {
254
- /**
255
- * Custom FDC3 Intents available to the column
256
- */
257
- intents: CustomFDC3Intent_Depr[];
258
- /**
259
- * Function which creates FDC3 context for the current column and row
260
- */
261
- createContext: (gridCell: GridCell) => CustomFDC3Context;
262
- }
263
- /**
264
- * Full list of FDC3 Intents available - each FDC3 Column can use a subset
265
- */
266
- export declare type FDC3Intent_Depr = 'StartCall' | 'StartChat' | 'ViewAnalysis' | 'ViewChart' | 'ViewContact' | 'ViewInstrument' | 'ViewNews' | 'ViewQuote';
267
- /**
268
- * Custom FDC3 Intent - just a string value
269
- */
270
- export declare type CustomFDC3Intent_Depr = string;
271
- /**
272
- * Context passed into Raise FDC3 Intent functions (e.g. get label)
273
- */
274
- export interface RaiseFDC3IntentContext extends ContextMenuContext {
275
- /**
276
- * FDC3 Intent that was raised
277
- */
278
- intent: FDC3Intent_Depr | CustomFDC3Intent_Depr;
279
- }
280
- /**
281
- * Function that handles FDC3 Context
282
- */
283
- export declare type FDC3ContextHandler = (context: FDC3Context_DEPR) => void;
284
- /**
285
- * Defines a Desktop Agent which supports FDC3
286
- */
287
- export interface FDC3DesktopAgent {
288
- /**
289
- * Raises an Intent
290
- */
291
- raiseIntent: (intent: FDC3Intent_Depr, context: FDC3Context_DEPR) => void;
292
- /**
293
- * Broadcasts an FDC3 Message
294
- */
295
- broadcast: (context: FDC3Context_DEPR) => void;
296
- /**
297
- * Raises an FDC3 Intent for a given Context
298
- */
299
- raiseIntentForContext: (context: FDC3Context_DEPR) => void;
300
- /**
301
- * Adds an FDC3 Intent Listener
302
- */
303
- addIntentListener: (intent: FDC3Intent_Depr | CustomFDC3Intent_Depr, listener: (context: FDC3Context_DEPR) => void) => void;
304
- /**
305
- * Adds an FDC3 Context Listener
306
- */
307
- addContextListener: (contextType: string | null, handler: FDC3ContextHandler) => {
308
- unsubscribe: () => void;
309
- };
310
6
  }
@@ -1,5 +1,4 @@
1
1
  import { AdaptableAlert } from '../PredefinedConfig/Common/AdaptableAlert';
2
- import { AdaptableFDC3EventInfo } from '../PredefinedConfig/Common/FDC3Context_DEPR';
3
2
  /**
4
3
  * Options required for when using the OpenFin plugin
5
4
  */
@@ -44,9 +43,4 @@ export interface OpenFinPluginOptions {
44
43
  * Action to perform when a data change in Live Excel report triggers Prevent Edit Alert failure
45
44
  */
46
45
  onValidationFailureInExcel?: 'override' | 'show-notification' | 'show-undo-notification';
47
- /**
48
- * Useful when you also use the finance plugin configured with fdc3 related columns - values in cells such columns can be broadcasted to fdc3, and this function
49
- * will be called for broadcasting. It's your job to broadcast to the desired fdc3 channel
50
- */
51
- onFDC3MessageSent?: (eventInfo: AdaptableFDC3EventInfo) => void;
52
46
  }
@@ -110,10 +110,6 @@ export interface UserInterfaceOptions<TData = any> {
110
110
  * @defaultValue null
111
111
  */
112
112
  alternativeModuleNames?: AlternativeModuleName[];
113
- /**
114
- * Whether a cell can be commented on
115
- */
116
- isCellCommentable?: (context: CommmentableCellContext) => boolean;
117
113
  }
118
114
  /**
119
115
  * Base class for all Permitted Values related objects
@@ -210,19 +206,6 @@ export interface BulkUpdatePermittedValuesContext<TData = any> extends Permitted
210
206
  */
211
207
  gridCells: GridCell<TData>[];
212
208
  }
213
- /**
214
- * Context used when determining if a Comment can be added to a Cell
215
- */
216
- export interface CommmentableCellContext extends BaseContext {
217
- /**
218
- * Value in Primary Key Column
219
- */
220
- primaryKeyValue: string;
221
- /**
222
- * Column where Comment will be displayed
223
- */
224
- columnId: string;
225
- }
226
209
  /**
227
210
  * Sets of Tabs avilable in Grid Info Settings Panel
228
211
  */