@i2analyze/notebook-sdk 1.4.0-dev.5 → 1.4.0-dev.7
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 +51 -48
- 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;
|
|
@@ -2402,6 +2402,11 @@ export declare namespace commands {
|
|
|
2402
2402
|
* @i2since 1.4
|
|
2403
2403
|
*/
|
|
2404
2404
|
readonly select: GroupId;
|
|
2405
|
+
/**
|
|
2406
|
+
* Gets the identifier of the system action group related to clipboard.
|
|
2407
|
+
* @i2since 1.4
|
|
2408
|
+
*/
|
|
2409
|
+
readonly clipboard: GroupId;
|
|
2405
2410
|
}
|
|
2406
2411
|
}
|
|
2407
2412
|
|
|
@@ -3045,7 +3050,8 @@ export declare namespace data {
|
|
|
3045
3050
|
}
|
|
3046
3051
|
|
|
3047
3052
|
/**
|
|
3048
|
-
* 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.
|
|
3049
3055
|
*
|
|
3050
3056
|
* @public
|
|
3051
3057
|
* @i2since 1.4
|
|
@@ -3057,33 +3063,33 @@ export declare namespace dialog {
|
|
|
3057
3063
|
*/
|
|
3058
3064
|
export type DialogSize = 'small' | 'medium' | 'large';
|
|
3059
3065
|
/**
|
|
3060
|
-
* An identifier of dialog action.
|
|
3066
|
+
* An identifier of a dialog action.
|
|
3061
3067
|
* @i2since 1.4
|
|
3062
3068
|
*/
|
|
3063
3069
|
export type DialogActionId = string;
|
|
3064
3070
|
/**
|
|
3065
|
-
* A set of information
|
|
3071
|
+
* A set of information for creating or modifying a dialog action.
|
|
3066
3072
|
* @i2since 1.4
|
|
3067
3073
|
*/
|
|
3068
|
-
export interface
|
|
3074
|
+
export interface IDialogActionConfig {
|
|
3069
3075
|
/**
|
|
3070
|
-
* Indicates
|
|
3076
|
+
* Indicates whether the action is enabled.
|
|
3071
3077
|
* @i2since 1.4
|
|
3072
3078
|
*/
|
|
3073
|
-
enabled?: boolean;
|
|
3079
|
+
readonly enabled?: boolean;
|
|
3074
3080
|
/**
|
|
3075
|
-
* Gets the
|
|
3081
|
+
* Gets the label for the action.
|
|
3076
3082
|
* @i2since 1.4
|
|
3077
3083
|
*/
|
|
3078
|
-
label?: string;
|
|
3084
|
+
readonly label?: string;
|
|
3079
3085
|
}
|
|
3080
3086
|
/**
|
|
3081
|
-
*
|
|
3087
|
+
* An action for a dialog window.
|
|
3082
3088
|
* @i2since 1.4
|
|
3083
3089
|
*/
|
|
3084
|
-
export interface
|
|
3090
|
+
export interface IDialogAction extends IDialogActionConfig {
|
|
3085
3091
|
/**
|
|
3086
|
-
* Gets the identifier of the
|
|
3092
|
+
* Gets the identifier of the action.
|
|
3087
3093
|
* @i2since 1.4
|
|
3088
3094
|
*/
|
|
3089
3095
|
readonly id: DialogActionId;
|
|
@@ -3091,7 +3097,7 @@ export declare namespace dialog {
|
|
|
3091
3097
|
/**
|
|
3092
3098
|
* A set of information for creating a dialog.
|
|
3093
3099
|
*
|
|
3094
|
-
* @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.
|
|
3095
3101
|
* @i2since 1.4
|
|
3096
3102
|
*/
|
|
3097
3103
|
export interface IDialogConfig<TInitialize> {
|
|
@@ -3101,7 +3107,7 @@ export declare namespace dialog {
|
|
|
3101
3107
|
*/
|
|
3102
3108
|
readonly name: string;
|
|
3103
3109
|
/**
|
|
3104
|
-
* 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.
|
|
3105
3111
|
*
|
|
3106
3112
|
* @remarks
|
|
3107
3113
|
* For example, if `path` is '`./`', then the server uses the folder that contains the entry point.
|
|
@@ -3114,55 +3120,55 @@ export declare namespace dialog {
|
|
|
3114
3120
|
*/
|
|
3115
3121
|
readonly size: DialogSize;
|
|
3116
3122
|
/**
|
|
3117
|
-
* Gets the
|
|
3123
|
+
* Gets the data for populating the dialog when it's first displayed.
|
|
3118
3124
|
*
|
|
3119
|
-
* @typeParam TInitialize - The type of data
|
|
3125
|
+
* @typeParam TInitialize - The type of the data that's used for populating the dialog.
|
|
3120
3126
|
* @i2since 1.4
|
|
3121
3127
|
*/
|
|
3122
3128
|
readonly initialValue?: TInitialize;
|
|
3123
3129
|
/**
|
|
3124
|
-
* Gets the
|
|
3130
|
+
* Gets the action buttons that appear at the bottom of the dialog, below the content.
|
|
3125
3131
|
*
|
|
3126
3132
|
* @i2since 1.4
|
|
3127
3133
|
*/
|
|
3128
|
-
readonly actions: (
|
|
3134
|
+
readonly actions: (DialogActionId | IDialogAction)[];
|
|
3129
3135
|
}
|
|
3130
3136
|
/**
|
|
3131
|
-
* 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.
|
|
3132
3138
|
*
|
|
3133
3139
|
* @i2since 1.4
|
|
3134
3140
|
*/
|
|
3135
3141
|
export interface IDialogApi extends app.IApplication {
|
|
3136
3142
|
/**
|
|
3137
|
-
* Updates the
|
|
3143
|
+
* Updates the label or the enabled state of the specified dialog action.
|
|
3138
3144
|
*
|
|
3139
|
-
* @param id -
|
|
3140
|
-
* @param
|
|
3145
|
+
* @param id - The identifier of the action to update.
|
|
3146
|
+
* @param config - The new configuration for the specified action.
|
|
3141
3147
|
* @i2since 1.4
|
|
3142
3148
|
*/
|
|
3143
|
-
updateAction(id: DialogActionId,
|
|
3149
|
+
updateAction(id: DialogActionId, config: IDialogActionConfig): void;
|
|
3144
3150
|
/**
|
|
3145
|
-
* Submits
|
|
3151
|
+
* Submits and closes the dialog.
|
|
3146
3152
|
*
|
|
3147
|
-
* @param value -
|
|
3148
|
-
* @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.
|
|
3149
3155
|
* @i2since 1.4
|
|
3150
3156
|
*/
|
|
3151
3157
|
submitAndClose<TResult>(value: TResult): void;
|
|
3152
3158
|
/**
|
|
3153
|
-
* Closes the dialog.
|
|
3159
|
+
* Closes the dialog without submitting it.
|
|
3154
3160
|
*
|
|
3155
3161
|
* @i2since 1.4
|
|
3156
3162
|
*/
|
|
3157
3163
|
close(): void;
|
|
3158
3164
|
/**
|
|
3159
|
-
* Gets the
|
|
3165
|
+
* Gets the data for populating the dialog when it's displayed.
|
|
3160
3166
|
*
|
|
3161
|
-
* @typeParam TInitialize - The type of data
|
|
3162
|
-
* @returns
|
|
3167
|
+
* @typeParam TInitialize - The type of the data for populating the dialog.
|
|
3168
|
+
* @returns See above.
|
|
3163
3169
|
* @i2since 1.4
|
|
3164
3170
|
*/
|
|
3165
|
-
|
|
3171
|
+
getInitialValue<TInitialize>(): TInitialize;
|
|
3166
3172
|
/**
|
|
3167
3173
|
* Adds a listener for events that might affect the dialog.
|
|
3168
3174
|
*
|
|
@@ -3207,17 +3213,14 @@ export declare namespace dialog {
|
|
|
3207
3213
|
readonly action: app.ITransactionOptions;
|
|
3208
3214
|
}
|
|
3209
3215
|
/**
|
|
3210
|
-
* A callback function that handles dialog action
|
|
3211
|
-
*
|
|
3212
|
-
* @remarks
|
|
3213
|
-
* Typically, this listener receieves an event after action button is clicked.
|
|
3216
|
+
* A callback function that handles dialog action events.
|
|
3214
3217
|
*
|
|
3215
|
-
* @param actionId -
|
|
3218
|
+
* @param actionId - The identifier of the clicked button.
|
|
3216
3219
|
* @i2since 1.4
|
|
3217
3220
|
*/
|
|
3218
3221
|
export type DialogActionListener = (actionId: DialogActionId) => void;
|
|
3219
3222
|
/**
|
|
3220
|
-
* A lookup table for the
|
|
3223
|
+
* A lookup table for the identifiers of the standard dialog action.
|
|
3221
3224
|
* @i2since 1.4
|
|
3222
3225
|
*/
|
|
3223
3226
|
export interface ISystemDialogActions {
|
|
@@ -3225,17 +3228,17 @@ export declare namespace dialog {
|
|
|
3225
3228
|
* Gets the identifier of the "submit" action.
|
|
3226
3229
|
* @i2since 1.4
|
|
3227
3230
|
*/
|
|
3228
|
-
submit: DialogActionId;
|
|
3231
|
+
readonly submit: DialogActionId;
|
|
3229
3232
|
/**
|
|
3230
3233
|
* Gets the identifier of the "cancel" action.
|
|
3231
3234
|
* @i2since 1.4
|
|
3232
3235
|
*/
|
|
3233
|
-
cancel: DialogActionId;
|
|
3236
|
+
readonly cancel: DialogActionId;
|
|
3234
3237
|
/**
|
|
3235
3238
|
* Gets the identifier of the "close" action.
|
|
3236
3239
|
* @i2since 1.4
|
|
3237
3240
|
*/
|
|
3238
|
-
close: DialogActionId;
|
|
3241
|
+
readonly close: DialogActionId;
|
|
3239
3242
|
}
|
|
3240
3243
|
}
|
|
3241
3244
|
|
|
@@ -3318,11 +3321,11 @@ export declare interface IEntryPointApi extends app.IApplication {
|
|
|
3318
3321
|
*/
|
|
3319
3322
|
createToolView(config: toolview.IToolViewConfig): toolview.IToolView;
|
|
3320
3323
|
/**
|
|
3321
|
-
*
|
|
3324
|
+
* Creates and displays a modal dialog with the specified configuration.
|
|
3322
3325
|
*
|
|
3323
|
-
* @param config - The information
|
|
3324
|
-
* @typeParam TResult - The type of data
|
|
3325
|
-
* @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.
|
|
3326
3329
|
* @returns The value submitted from the dialog.
|
|
3327
3330
|
* @i2since 1.4
|
|
3328
3331
|
*/
|
|
@@ -4656,11 +4659,11 @@ export declare namespace toolview {
|
|
|
4656
4659
|
*/
|
|
4657
4660
|
removeEventListener<K extends keyof ToolViewApiEventMap>(type: K, listener: ToolViewApiEventMap[K]): void;
|
|
4658
4661
|
/**
|
|
4659
|
-
*
|
|
4662
|
+
* Creates and displays a modal dialog with the specified configuration.
|
|
4660
4663
|
*
|
|
4661
|
-
* @param config - The information
|
|
4662
|
-
* @typeParam TResult - The type of data
|
|
4663
|
-
* @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.
|
|
4664
4667
|
* @returns The value submitted from the dialog.
|
|
4665
4668
|
* @i2since 1.4
|
|
4666
4669
|
*/
|
package/lib/index.js
CHANGED