@adaptabletools/adaptable 16.0.1-canary.1 → 16.0.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.
- package/bundle.cjs.js +6 -6
- package/package.json +1 -1
- package/publishTimestamp.d.ts +1 -1
- package/publishTimestamp.js +1 -1
- package/src/AdaptableOptions/AdaptablePlugin.js +2 -0
- package/src/AdaptableOptions/Fdc3Options.d.ts +16 -7
- package/src/PredefinedConfig/CommentsState.d.ts +3 -0
- package/src/Utilities/Services/ModuleService.js +1 -1
- package/src/agGrid/Adaptable.d.ts +1 -1
- package/src/agGrid/Adaptable.js +3 -1
- package/src/metamodel/adaptable.metamodel.d.ts +31 -0
- package/src/metamodel/adaptable.metamodel.js +1 -1
- 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.1
|
|
3
|
+
"version": "16.0.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",
|
package/publishTimestamp.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: 1692249290030;
|
|
2
2
|
export default _default;
|
package/publishTimestamp.js
CHANGED
|
@@ -25,6 +25,8 @@ class AdaptablePlugin {
|
|
|
25
25
|
return !!this.values[name];
|
|
26
26
|
}
|
|
27
27
|
// plugin lifecycle methods, executed in this exact order
|
|
28
|
+
// wondering if this is better?
|
|
29
|
+
// beforeInit(adaptableOptions: AdaptableOptions, gridOptions: GridOptions): void {}
|
|
28
30
|
beforeInit(adaptableOptions) { }
|
|
29
31
|
afterInitOptions(adaptable, adaptableOptions) { }
|
|
30
32
|
afterInitApi(adaptable, api) { }
|
|
@@ -10,7 +10,7 @@ import { ButtonStyle } from '../PredefinedConfig/Common/ButtonStyle';
|
|
|
10
10
|
*/
|
|
11
11
|
export interface Fdc3Options {
|
|
12
12
|
/**
|
|
13
|
-
* Enable logging
|
|
13
|
+
* Enable logging message exchanges to Console
|
|
14
14
|
*
|
|
15
15
|
* @defaultValue false
|
|
16
16
|
*/
|
|
@@ -196,6 +196,9 @@ export declare const ColumnRefTypePrefix = "_colId.";
|
|
|
196
196
|
export declare const FieldRefTypePrefix = "_field.";
|
|
197
197
|
export declare type GridDataRef = `_colId.${string}` | `_field.${string}`;
|
|
198
198
|
export declare type Fdc3ContentMapping<T> = PropertiesToGridRefs<Omit<T, 'type'>>;
|
|
199
|
+
/**
|
|
200
|
+
* Config used when raising an FDC3 Intent
|
|
201
|
+
*/
|
|
199
202
|
export interface RaiseIntentConfig<K extends Fdc3IntentType = any> {
|
|
200
203
|
contextType: CompatibleContext<K>;
|
|
201
204
|
contextMenu?: {
|
|
@@ -210,6 +213,9 @@ export interface RaiseIntentConfig<K extends Fdc3IntentType = any> {
|
|
|
210
213
|
};
|
|
211
214
|
handleIntentResolution?: (context: HandleFdc3IntentResolutionContext) => Promise<IntentResult>;
|
|
212
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Config used when broadcasting FDC3 Context
|
|
218
|
+
*/
|
|
213
219
|
export interface BroadcastConfig {
|
|
214
220
|
contextMenu?: {
|
|
215
221
|
columnIds: string[];
|
|
@@ -256,33 +262,36 @@ export interface Fdc3ButtonContext extends BaseContext {
|
|
|
256
262
|
*/
|
|
257
263
|
primaryKeyValue: any;
|
|
258
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Button used in FDC3 Action Columns
|
|
267
|
+
*/
|
|
259
268
|
export interface Fdc3AdaptableButton {
|
|
260
269
|
/**
|
|
261
270
|
* Unique id for the button
|
|
262
271
|
*/
|
|
263
272
|
id: string;
|
|
264
273
|
/**
|
|
265
|
-
*
|
|
274
|
+
* Button's Icon; can be object or function that provides `AdaptableIcon` object
|
|
266
275
|
*/
|
|
267
276
|
icon?: '_defaultFdc3' | AdaptableIcon | ((button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => AdaptableIcon);
|
|
268
277
|
/**
|
|
269
|
-
*
|
|
278
|
+
* Button' Label; can be string or function that provides string
|
|
270
279
|
*/
|
|
271
280
|
label?: '_defaultFdc3' | string | ((button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => string);
|
|
272
281
|
/**
|
|
273
|
-
*
|
|
282
|
+
* Button's Tooltip; can be string or function that provides string
|
|
274
283
|
*/
|
|
275
284
|
tooltip?: '_defaultFdc3' | string | ((button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => string);
|
|
276
285
|
/**
|
|
277
|
-
*
|
|
286
|
+
* Button's Style; can be object or function that provides `ButtonStyle` object
|
|
278
287
|
*/
|
|
279
288
|
buttonStyle?: ButtonStyle | ((button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => ButtonStyle);
|
|
280
289
|
/**
|
|
281
|
-
* Function
|
|
290
|
+
* Function to disable / enable button based on evaluation result
|
|
282
291
|
*/
|
|
283
292
|
disabled?: (button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => boolean;
|
|
284
293
|
/**
|
|
285
|
-
* Function
|
|
294
|
+
* Function to hide the Button
|
|
286
295
|
*/
|
|
287
296
|
hidden?: (button: Fdc3AdaptableButton, context: Fdc3ButtonContext) => boolean;
|
|
288
297
|
}
|
|
@@ -31,6 +31,9 @@ export interface AdaptableComment extends AdaptableObject {
|
|
|
31
31
|
*/
|
|
32
32
|
AdaptableId: string;
|
|
33
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Collection of Cell Comments
|
|
36
|
+
*/
|
|
34
37
|
export declare type AdaptableComments = AdaptableComment[];
|
|
35
38
|
/**
|
|
36
39
|
* Predefined Configuration for Comments Module
|
|
@@ -100,7 +100,7 @@ class ModuleService {
|
|
|
100
100
|
case 'Filter':
|
|
101
101
|
return learnUrl + 'handbook-filtering';
|
|
102
102
|
case 'FlashingCell':
|
|
103
|
-
return learnUrl + 'handbook-cell
|
|
103
|
+
return learnUrl + 'handbook-flashing-cell';
|
|
104
104
|
case 'FormatColumn':
|
|
105
105
|
return learnUrl + 'handbook-column-formatting';
|
|
106
106
|
case 'FreeTextColumn':
|
|
@@ -120,7 +120,7 @@ export declare class Adaptable implements IAdaptable {
|
|
|
120
120
|
* Initializer for Adaptable
|
|
121
121
|
*
|
|
122
122
|
* @param adaptableOptions the AdaptableOptions
|
|
123
|
-
* @param
|
|
123
|
+
* @param agGridConfig AG Grid
|
|
124
124
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
125
125
|
*/
|
|
126
126
|
static init(adaptableOptions: AdaptableOptions, agGridConfig: AgGridConfig): Promise<AdaptableApi>;
|
package/src/agGrid/Adaptable.js
CHANGED
|
@@ -280,7 +280,7 @@ class Adaptable {
|
|
|
280
280
|
* Initializer for Adaptable
|
|
281
281
|
*
|
|
282
282
|
* @param adaptableOptions the AdaptableOptions
|
|
283
|
-
* @param
|
|
283
|
+
* @param agGridConfig AG Grid
|
|
284
284
|
* @returns a Promise containing the AdaptableAPI object in order to enable run-time access to Adaptable's properties and functions
|
|
285
285
|
*/
|
|
286
286
|
static init(adaptableOptions, agGridConfig) {
|
|
@@ -308,8 +308,10 @@ class Adaptable {
|
|
|
308
308
|
promise =
|
|
309
309
|
promise && promise.then
|
|
310
310
|
? promise.then(() => {
|
|
311
|
+
// JW: perhaps?: return plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
|
|
311
312
|
return plugin.beforeInit(adaptableOptions);
|
|
312
313
|
})
|
|
314
|
+
// JW: perhaps? : plugin.beforeInit(adaptableOptions, runtimeConfig.gridOptions);
|
|
313
315
|
: plugin.beforeInit(adaptableOptions);
|
|
314
316
|
}
|
|
315
317
|
// instead of
|
|
@@ -334,6 +334,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
334
334
|
desc: string;
|
|
335
335
|
}[];
|
|
336
336
|
};
|
|
337
|
+
AdaptableComments: {
|
|
338
|
+
name: string;
|
|
339
|
+
kind: string;
|
|
340
|
+
desc: string;
|
|
341
|
+
};
|
|
337
342
|
AdaptableComparerFunction: {
|
|
338
343
|
name: string;
|
|
339
344
|
kind: string;
|
|
@@ -1278,6 +1283,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
1278
1283
|
ref: string;
|
|
1279
1284
|
}[];
|
|
1280
1285
|
};
|
|
1286
|
+
BroadcastConfig: {
|
|
1287
|
+
name: string;
|
|
1288
|
+
kind: string;
|
|
1289
|
+
desc: string;
|
|
1290
|
+
};
|
|
1281
1291
|
BulkUpdatePermittedValues: {
|
|
1282
1292
|
name: string;
|
|
1283
1293
|
kind: string;
|
|
@@ -2609,6 +2619,22 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
2609
2619
|
desc: string;
|
|
2610
2620
|
}[];
|
|
2611
2621
|
};
|
|
2622
|
+
Fdc3AdaptableButton: {
|
|
2623
|
+
name: string;
|
|
2624
|
+
kind: string;
|
|
2625
|
+
desc: string;
|
|
2626
|
+
props: ({
|
|
2627
|
+
name: string;
|
|
2628
|
+
kind: string;
|
|
2629
|
+
desc: string;
|
|
2630
|
+
isOpt: boolean;
|
|
2631
|
+
} | {
|
|
2632
|
+
name: string;
|
|
2633
|
+
kind: string;
|
|
2634
|
+
desc: string;
|
|
2635
|
+
isOpt?: undefined;
|
|
2636
|
+
})[];
|
|
2637
|
+
};
|
|
2612
2638
|
Fdc3ButtonContext: {
|
|
2613
2639
|
name: string;
|
|
2614
2640
|
kind: string;
|
|
@@ -3881,6 +3907,11 @@ export declare const ADAPTABLE_METAMODEL: {
|
|
|
3881
3907
|
ref: string;
|
|
3882
3908
|
})[];
|
|
3883
3909
|
};
|
|
3910
|
+
RaiseIntentConfig: {
|
|
3911
|
+
name: string;
|
|
3912
|
+
kind: string;
|
|
3913
|
+
desc: string;
|
|
3914
|
+
};
|
|
3884
3915
|
RangeValueType: {
|
|
3885
3916
|
name: string;
|
|
3886
3917
|
kind: string;
|