@i2analyze/notebook-sdk 1.4.0-dev.1 → 1.4.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gen/notebook-sdk-public.d.ts +122 -56
- package/lib/index.js +0 -1
- package/package.json +1 -1
|
@@ -120,7 +120,7 @@ export declare namespace app {
|
|
|
120
120
|
*/
|
|
121
121
|
runUntrackedMutations(mutationHandler: UntrackedMutationHandler, options?: ITransactionOptions): void;
|
|
122
122
|
/**
|
|
123
|
-
* Gets the
|
|
123
|
+
* Gets the identifiers of the system dialog actions.
|
|
124
124
|
* @i2since 1.4
|
|
125
125
|
*/
|
|
126
126
|
readonly systemActions: dialog.ISystemDialogActions;
|
|
@@ -1613,7 +1613,7 @@ export declare namespace commands {
|
|
|
1613
1613
|
*
|
|
1614
1614
|
* @remarks
|
|
1615
1615
|
* The category determines the section of the keyboard help dialog in which the command is displayed.
|
|
1616
|
-
* @i2since 1.
|
|
1616
|
+
* @i2since 1.4
|
|
1617
1617
|
*/
|
|
1618
1618
|
export type HelpCategory = 'discover' | 'select' | 'help' | 'view' | 'edit' | 'search' | 'manage';
|
|
1619
1619
|
/**
|
|
@@ -2131,19 +2131,28 @@ export declare namespace commands {
|
|
|
2131
2131
|
*/
|
|
2132
2132
|
readonly applicationRibbon: IApplicationRibbon;
|
|
2133
2133
|
/**
|
|
2134
|
-
* Gets the area that represents the
|
|
2134
|
+
* Gets the area that represents the pop-up menu for the chart surface.
|
|
2135
2135
|
*
|
|
2136
2136
|
* @remarks
|
|
2137
|
-
* The `
|
|
2137
|
+
* The `chartSurfacePopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2138
2138
|
* @i2since 1.4
|
|
2139
2139
|
*/
|
|
2140
2140
|
readonly chartSurfacePopupMenu: IActionArea<IChartSurfacePopupMenuSystemGroups, IMenuGroup>;
|
|
2141
2141
|
/**
|
|
2142
|
-
* Gets the area that represents the
|
|
2142
|
+
* Gets the area that represents the pop-up menu for chart items.
|
|
2143
|
+
*
|
|
2144
|
+
* @remarks
|
|
2145
|
+
* The `chartItemPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2146
|
+
* @i2since 1.4
|
|
2147
|
+
*/
|
|
2148
|
+
readonly chartItemPopupMenu: IActionArea<IChartItemPopupMenuSystemGroups, IMenuGroup>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Gets the area that represents the pop-up menu for chart items.
|
|
2143
2151
|
*
|
|
2144
2152
|
* @remarks
|
|
2145
2153
|
* The `chartPopupMenu` area supports only top-level groups, which correspond to sets of related actions that are separated by dividers in the menu.
|
|
2146
2154
|
* @i2since 1.0
|
|
2155
|
+
* @deprecated commands.ICommandApi.chartPopupMenu has been renamed to {@link commands.ICommandApi.chartItemPopupMenu}.
|
|
2147
2156
|
*/
|
|
2148
2157
|
readonly chartPopupMenu: IActionArea<IChartPopupMenuSystemGroups, IMenuGroup>;
|
|
2149
2158
|
/**
|
|
@@ -2293,6 +2302,21 @@ export declare namespace commands {
|
|
|
2293
2302
|
* @i2since 1.3
|
|
2294
2303
|
*/
|
|
2295
2304
|
readonly shareRecords: CommandId;
|
|
2305
|
+
/**
|
|
2306
|
+
* Gets the identifier of the system command that cuts the selected elements and copies them to the clipboard.
|
|
2307
|
+
* @i2since 1.4
|
|
2308
|
+
*/
|
|
2309
|
+
readonly cut: CommandId;
|
|
2310
|
+
/**
|
|
2311
|
+
* Gets the identifier of the system command that copies the selected elements to the clipboard.
|
|
2312
|
+
* @i2since 1.4
|
|
2313
|
+
*/
|
|
2314
|
+
readonly copy: CommandId;
|
|
2315
|
+
/**
|
|
2316
|
+
* Gets the identifier of the system command that pastes the contents of the clipboard.
|
|
2317
|
+
* @i2since 1.4
|
|
2318
|
+
*/
|
|
2319
|
+
readonly paste: CommandId;
|
|
2296
2320
|
}
|
|
2297
2321
|
/**
|
|
2298
2322
|
* A lookup table for the identifiers of the system action groups in the Home tab.
|
|
@@ -2324,10 +2348,37 @@ export declare namespace commands {
|
|
|
2324
2348
|
* @i2since 1.0
|
|
2325
2349
|
*/
|
|
2326
2350
|
readonly select: GroupId;
|
|
2351
|
+
/**
|
|
2352
|
+
* Gets the identifier of the system action group named "Clipboard".
|
|
2353
|
+
* @i2since 1.4
|
|
2354
|
+
*/
|
|
2355
|
+
readonly clipboard: GroupId;
|
|
2356
|
+
}
|
|
2357
|
+
/**
|
|
2358
|
+
* A lookup table for the identifiers of the system action groups in the chart item popup menu.
|
|
2359
|
+
* @i2since 1.4
|
|
2360
|
+
*/
|
|
2361
|
+
export interface IChartItemPopupMenuSystemGroups {
|
|
2362
|
+
/**
|
|
2363
|
+
* Gets the identifier of the system action group related to selection.
|
|
2364
|
+
* @i2since 1.2
|
|
2365
|
+
*/
|
|
2366
|
+
readonly select: GroupId;
|
|
2367
|
+
/**
|
|
2368
|
+
* Gets the identifier of the system action group related to discovery.
|
|
2369
|
+
* @i2since 1.0
|
|
2370
|
+
*/
|
|
2371
|
+
readonly discover: GroupId;
|
|
2372
|
+
/**
|
|
2373
|
+
* Gets the identifier of the system action group related to clipboard operations.
|
|
2374
|
+
* @i2since 1.4
|
|
2375
|
+
*/
|
|
2376
|
+
readonly clipboard: GroupId;
|
|
2327
2377
|
}
|
|
2328
2378
|
/**
|
|
2329
2379
|
* A lookup table for the identifiers of the system action groups in the chart popup menu.
|
|
2330
|
-
* @i2since 1.
|
|
2380
|
+
* @i2since 1.0
|
|
2381
|
+
* @deprecated commands.IChartPopupMenuSystemGroups has been renamed to {@link commands.IChartItemPopupMenuSystemGroups}.
|
|
2331
2382
|
*/
|
|
2332
2383
|
export interface IChartPopupMenuSystemGroups {
|
|
2333
2384
|
/**
|
|
@@ -2351,6 +2402,11 @@ export declare namespace commands {
|
|
|
2351
2402
|
* @i2since 1.4
|
|
2352
2403
|
*/
|
|
2353
2404
|
readonly select: GroupId;
|
|
2405
|
+
/**
|
|
2406
|
+
* Gets the identifier of the system action group related to clipboard operations.
|
|
2407
|
+
* @i2since 1.4
|
|
2408
|
+
*/
|
|
2409
|
+
readonly clipboard: GroupId;
|
|
2354
2410
|
}
|
|
2355
2411
|
}
|
|
2356
2412
|
|
|
@@ -2994,7 +3050,8 @@ export declare namespace data {
|
|
|
2994
3050
|
}
|
|
2995
3051
|
|
|
2996
3052
|
/**
|
|
2997
|
-
* The members of the `dialog` namespace enable you to
|
|
3053
|
+
* The members of the `dialog` namespace enable you to create and display dialog windows from your plug-ins
|
|
3054
|
+
* that are modal with respect to the whole i2 Notebook application.
|
|
2998
3055
|
*
|
|
2999
3056
|
* @public
|
|
3000
3057
|
* @i2since 1.4
|
|
@@ -3006,33 +3063,33 @@ export declare namespace dialog {
|
|
|
3006
3063
|
*/
|
|
3007
3064
|
export type DialogSize = 'small' | 'medium' | 'large';
|
|
3008
3065
|
/**
|
|
3009
|
-
* An identifier of dialog action.
|
|
3066
|
+
* An identifier of a dialog action.
|
|
3010
3067
|
* @i2since 1.4
|
|
3011
3068
|
*/
|
|
3012
3069
|
export type DialogActionId = string;
|
|
3013
3070
|
/**
|
|
3014
|
-
* A set of information
|
|
3071
|
+
* A set of information for creating or modifying a dialog action.
|
|
3015
3072
|
* @i2since 1.4
|
|
3016
3073
|
*/
|
|
3017
|
-
export interface
|
|
3074
|
+
export interface IDialogActionConfig {
|
|
3018
3075
|
/**
|
|
3019
|
-
* Indicates
|
|
3076
|
+
* Indicates whether the action is enabled.
|
|
3020
3077
|
* @i2since 1.4
|
|
3021
3078
|
*/
|
|
3022
|
-
enabled?: boolean;
|
|
3079
|
+
readonly enabled?: boolean;
|
|
3023
3080
|
/**
|
|
3024
|
-
* Gets the
|
|
3081
|
+
* Gets the label for the action.
|
|
3025
3082
|
* @i2since 1.4
|
|
3026
3083
|
*/
|
|
3027
|
-
label?: string;
|
|
3084
|
+
readonly label?: string;
|
|
3028
3085
|
}
|
|
3029
3086
|
/**
|
|
3030
|
-
*
|
|
3087
|
+
* An action for a dialog window.
|
|
3031
3088
|
* @i2since 1.4
|
|
3032
3089
|
*/
|
|
3033
|
-
export interface
|
|
3090
|
+
export interface IDialogAction extends IDialogActionConfig {
|
|
3034
3091
|
/**
|
|
3035
|
-
* Gets the identifier of the
|
|
3092
|
+
* Gets the identifier of the action.
|
|
3036
3093
|
* @i2since 1.4
|
|
3037
3094
|
*/
|
|
3038
3095
|
readonly id: DialogActionId;
|
|
@@ -3040,7 +3097,7 @@ export declare namespace dialog {
|
|
|
3040
3097
|
/**
|
|
3041
3098
|
* A set of information for creating a dialog.
|
|
3042
3099
|
*
|
|
3043
|
-
* @typeParam TInitialize - The type of data
|
|
3100
|
+
* @typeParam TInitialize - The type of the data that's used for populating the dialog when it's displayed.
|
|
3044
3101
|
* @i2since 1.4
|
|
3045
3102
|
*/
|
|
3046
3103
|
export interface IDialogConfig<TInitialize> {
|
|
@@ -3050,7 +3107,7 @@ export declare namespace dialog {
|
|
|
3050
3107
|
*/
|
|
3051
3108
|
readonly name: string;
|
|
3052
3109
|
/**
|
|
3053
|
-
* Gets the path to the content to host the dialog
|
|
3110
|
+
* Gets the path to the content to host in the dialog, relative to the plug-in entry point.
|
|
3054
3111
|
*
|
|
3055
3112
|
* @remarks
|
|
3056
3113
|
* For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
|
|
@@ -3063,65 +3120,66 @@ export declare namespace dialog {
|
|
|
3063
3120
|
*/
|
|
3064
3121
|
readonly size: DialogSize;
|
|
3065
3122
|
/**
|
|
3066
|
-
* Gets the
|
|
3123
|
+
* Gets the data for populating the dialog when it's first displayed.
|
|
3067
3124
|
*
|
|
3068
|
-
* @typeParam TInitialize - The type of data
|
|
3125
|
+
* @typeParam TInitialize - The type of the data that's used for populating the dialog.
|
|
3069
3126
|
* @i2since 1.4
|
|
3070
3127
|
*/
|
|
3071
3128
|
readonly initialValue?: TInitialize;
|
|
3072
3129
|
/**
|
|
3073
|
-
* Gets the
|
|
3130
|
+
* Gets the action buttons that appear at the bottom of the dialog, below the content.
|
|
3074
3131
|
*
|
|
3075
3132
|
* @i2since 1.4
|
|
3076
3133
|
*/
|
|
3077
|
-
readonly actions: (
|
|
3134
|
+
readonly actions: (DialogActionId | IDialogAction)[];
|
|
3078
3135
|
}
|
|
3079
3136
|
/**
|
|
3080
|
-
* A collection of methods and properties that allow plug-in
|
|
3137
|
+
* A collection of methods and properties that allow plug-in dialogs to interact with i2 Notebook.
|
|
3081
3138
|
*
|
|
3082
3139
|
* @i2since 1.4
|
|
3083
3140
|
*/
|
|
3084
3141
|
export interface IDialogApi extends app.IApplication {
|
|
3085
3142
|
/**
|
|
3086
|
-
* Updates the
|
|
3143
|
+
* Updates the label or the enabled state of the specified dialog action.
|
|
3087
3144
|
*
|
|
3088
|
-
* @param id -
|
|
3089
|
-
* @param
|
|
3145
|
+
* @param id - The identifier of the action to update.
|
|
3146
|
+
* @param config - The new configuration for the specified action.
|
|
3090
3147
|
* @i2since 1.4
|
|
3091
3148
|
*/
|
|
3092
|
-
updateAction(id: DialogActionId,
|
|
3149
|
+
updateAction(id: DialogActionId, config: IDialogActionConfig): void;
|
|
3093
3150
|
/**
|
|
3094
|
-
* Submits
|
|
3151
|
+
* Submits and closes the dialog.
|
|
3095
3152
|
*
|
|
3096
|
-
* @param value -
|
|
3097
|
-
* @typeParam TResult - The type of data
|
|
3153
|
+
* @param value - The value that's submitted when the dialog is closed.
|
|
3154
|
+
* @typeParam TResult - The type of the data that the dialog returns.
|
|
3098
3155
|
* @i2since 1.4
|
|
3099
3156
|
*/
|
|
3100
3157
|
submitAndClose<TResult>(value: TResult): void;
|
|
3101
3158
|
/**
|
|
3102
|
-
* Closes the dialog.
|
|
3159
|
+
* Closes the dialog without submitting it.
|
|
3103
3160
|
*
|
|
3104
3161
|
* @i2since 1.4
|
|
3105
3162
|
*/
|
|
3106
3163
|
close(): void;
|
|
3107
3164
|
/**
|
|
3108
|
-
* Gets the
|
|
3165
|
+
* Gets the data for populating the dialog when it's displayed.
|
|
3109
3166
|
*
|
|
3110
|
-
* @typeParam TInitialize - The type of data
|
|
3111
|
-
* @returns
|
|
3167
|
+
* @typeParam TInitialize - The type of the data for populating the dialog.
|
|
3168
|
+
* @returns See above.
|
|
3112
3169
|
* @i2since 1.4
|
|
3113
3170
|
*/
|
|
3114
|
-
|
|
3171
|
+
getInitialValue<TInitialize>(): TInitialize;
|
|
3115
3172
|
/**
|
|
3116
3173
|
* Adds a listener for events that might affect the dialog.
|
|
3117
3174
|
*
|
|
3118
3175
|
* @param type - The type of event to subscribe to.
|
|
3119
3176
|
* @param listener - A function to handle the event.
|
|
3177
|
+
* @param options - An object that controls the behavior of the listener.
|
|
3120
3178
|
* @typeParam K - The type of event to subscribe to.
|
|
3121
3179
|
* @returns A function that can be called to remove the listener.
|
|
3122
3180
|
* @i2since 1.4
|
|
3123
3181
|
*/
|
|
3124
|
-
addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K]): () => void;
|
|
3182
|
+
addEventListener<K extends keyof DialogEventMap>(type: K, listener: DialogEventMap[K], options?: DialogEventOptionsMap[K]): () => void;
|
|
3125
3183
|
/**
|
|
3126
3184
|
* Removes a listener for events that might affect the dialog.
|
|
3127
3185
|
*
|
|
@@ -3144,17 +3202,25 @@ export declare namespace dialog {
|
|
|
3144
3202
|
readonly action: DialogActionListener;
|
|
3145
3203
|
}
|
|
3146
3204
|
/**
|
|
3147
|
-
* A
|
|
3148
|
-
*
|
|
3149
|
-
|
|
3150
|
-
|
|
3205
|
+
* A mapping of dialog event types to their listener options types.
|
|
3206
|
+
* @i2since 1.4
|
|
3207
|
+
*/
|
|
3208
|
+
export interface DialogEventOptionsMap extends app.ApplicationEventOptionsMap {
|
|
3209
|
+
/**
|
|
3210
|
+
* Gets the type of the object that provides control over "action" event listeners.
|
|
3211
|
+
* @i2since 1.4
|
|
3212
|
+
*/
|
|
3213
|
+
readonly action: app.ITransactionOptions;
|
|
3214
|
+
}
|
|
3215
|
+
/**
|
|
3216
|
+
* A callback function that handles dialog action events.
|
|
3151
3217
|
*
|
|
3152
|
-
* @param actionId -
|
|
3218
|
+
* @param actionId - The identifier of the clicked button.
|
|
3153
3219
|
* @i2since 1.4
|
|
3154
3220
|
*/
|
|
3155
3221
|
export type DialogActionListener = (actionId: DialogActionId) => void;
|
|
3156
3222
|
/**
|
|
3157
|
-
* A lookup table for the
|
|
3223
|
+
* A lookup table for the identifiers of the standard dialog action.
|
|
3158
3224
|
* @i2since 1.4
|
|
3159
3225
|
*/
|
|
3160
3226
|
export interface ISystemDialogActions {
|
|
@@ -3162,17 +3228,17 @@ export declare namespace dialog {
|
|
|
3162
3228
|
* Gets the identifier of the "submit" action.
|
|
3163
3229
|
* @i2since 1.4
|
|
3164
3230
|
*/
|
|
3165
|
-
submit: DialogActionId;
|
|
3231
|
+
readonly submit: DialogActionId;
|
|
3166
3232
|
/**
|
|
3167
3233
|
* Gets the identifier of the "cancel" action.
|
|
3168
3234
|
* @i2since 1.4
|
|
3169
3235
|
*/
|
|
3170
|
-
cancel: DialogActionId;
|
|
3236
|
+
readonly cancel: DialogActionId;
|
|
3171
3237
|
/**
|
|
3172
3238
|
* Gets the identifier of the "close" action.
|
|
3173
3239
|
* @i2since 1.4
|
|
3174
3240
|
*/
|
|
3175
|
-
close: DialogActionId;
|
|
3241
|
+
readonly close: DialogActionId;
|
|
3176
3242
|
}
|
|
3177
3243
|
}
|
|
3178
3244
|
|
|
@@ -3255,11 +3321,11 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
3255
3321
|
*/
|
|
3256
3322
|
createToolView(config: toolview.IToolViewConfig): toolview.IToolView;
|
|
3257
3323
|
/**
|
|
3258
|
-
*
|
|
3324
|
+
* Creates and displays a modal dialog with the specified configuration.
|
|
3259
3325
|
*
|
|
3260
|
-
* @param config - The information
|
|
3261
|
-
* @typeParam TResult - The type of data
|
|
3262
|
-
* @typeParam TInitialize - The type of data to populate the dialog
|
|
3326
|
+
* @param config - The information for creating the dialog, including its size and its buttons.
|
|
3327
|
+
* @typeParam TResult - The type of the data that the dialog returns when it's submitted.
|
|
3328
|
+
* @typeParam TInitialize - The type of the data that's used to populate the dialog when it's displayed.
|
|
3263
3329
|
* @returns The value submitted from the dialog.
|
|
3264
3330
|
* @i2since 1.4
|
|
3265
3331
|
*/
|
|
@@ -4593,11 +4659,11 @@ export declare namespace toolview {
|
|
|
4593
4659
|
*/
|
|
4594
4660
|
removeEventListener<K extends keyof ToolViewApiEventMap>(type: K, listener: ToolViewApiEventMap[K]): void;
|
|
4595
4661
|
/**
|
|
4596
|
-
*
|
|
4662
|
+
* Creates and displays a modal dialog with the specified configuration.
|
|
4597
4663
|
*
|
|
4598
|
-
* @param config - The information
|
|
4599
|
-
* @typeParam TResult - The type of data
|
|
4600
|
-
* @typeParam TInitialize - The type of data
|
|
4664
|
+
* @param config - The information for creating the dialog, including its size and its buttons.
|
|
4665
|
+
* @typeParam TResult - The type of the data that the dialog returns when it's submitted.
|
|
4666
|
+
* @typeParam TInitialize - The type of the data that's used for populating the dialog when it's displayed.
|
|
4601
4667
|
* @returns The value submitted from the dialog.
|
|
4602
4668
|
* @i2since 1.4
|
|
4603
4669
|
*/
|
|
@@ -4638,7 +4704,7 @@ export declare namespace toolview {
|
|
|
4638
4704
|
* Gets the type of the object that provides control over "state" event listeners.
|
|
4639
4705
|
* @i2since 1.0
|
|
4640
4706
|
*/
|
|
4641
|
-
readonly state: app.
|
|
4707
|
+
readonly state: app.ISubscriptionOptions;
|
|
4642
4708
|
/**
|
|
4643
4709
|
* Gets the type of the object that provides control over "unload" event listeners.
|
|
4644
4710
|
* @i2since 1.0
|
|
@@ -4653,7 +4719,7 @@ export declare namespace toolview {
|
|
|
4653
4719
|
* Gets the type of the object that provides control over "minimized" event listeners.
|
|
4654
4720
|
* @i2since 1.2
|
|
4655
4721
|
*/
|
|
4656
|
-
readonly minimized: app.
|
|
4722
|
+
readonly minimized: app.ISubscriptionOptions;
|
|
4657
4723
|
}
|
|
4658
4724
|
/**
|
|
4659
4725
|
* A combined mapping of tool view and other event types to their listener types.
|
package/lib/index.js
CHANGED