@i2analyze/notebook-sdk 1.10.0-dev.21 → 1.10.0-dev.22
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.
|
@@ -5016,9 +5016,36 @@ export declare namespace data {
|
|
|
5016
5016
|
export declare namespace dialog {
|
|
5017
5017
|
/**
|
|
5018
5018
|
* A size for a dialog window.
|
|
5019
|
+
*
|
|
5020
|
+
* @remarks
|
|
5021
|
+
* The `'xmedium'` size requires version 1.10 or later.
|
|
5019
5022
|
* @i2since 1.4
|
|
5020
5023
|
*/
|
|
5021
|
-
export type DialogSize = 'small' | 'medium' | 'large';
|
|
5024
|
+
export type DialogSize = 'small' | 'medium' | 'xmedium' | 'large';
|
|
5025
|
+
/**
|
|
5026
|
+
* Explicit dimensions for a dialog window, as CSS length strings.
|
|
5027
|
+
*
|
|
5028
|
+
* @remarks
|
|
5029
|
+
* Each axis is independent and is clamped to the `'large'` size (approximately the size of the
|
|
5030
|
+
* viewport): a larger value is reduced to it. An omitted axis uses the `'medium'` size for that
|
|
5031
|
+
* axis; it does not size the dialog to fit its content.
|
|
5032
|
+
*
|
|
5033
|
+
* Each value must be an unsigned number followed by one of the units `px`, `rem`, `em`, `vh`,
|
|
5034
|
+
* `vw`, or `%` (for example, `'600px'`, `'40rem'`, or `'75%'`).
|
|
5035
|
+
* @i2since 1.10
|
|
5036
|
+
*/
|
|
5037
|
+
export interface IDialogDimensions {
|
|
5038
|
+
/**
|
|
5039
|
+
* Gets the width of the dialog. Omit to use the `'medium'` width. Clamped to the `'large'` size.
|
|
5040
|
+
* @i2since 1.10
|
|
5041
|
+
*/
|
|
5042
|
+
readonly width?: string;
|
|
5043
|
+
/**
|
|
5044
|
+
* Gets the height of the dialog. Omit to use the `'medium'` height. Clamped to the `'large'` size.
|
|
5045
|
+
* @i2since 1.10
|
|
5046
|
+
*/
|
|
5047
|
+
readonly height?: string;
|
|
5048
|
+
}
|
|
5022
5049
|
/**
|
|
5023
5050
|
* An identifier of a dialog action.
|
|
5024
5051
|
* @i2since 1.4
|
|
@@ -5072,10 +5099,14 @@ export declare namespace dialog {
|
|
|
5072
5099
|
*/
|
|
5073
5100
|
readonly path: string;
|
|
5074
5101
|
/**
|
|
5075
|
-
* Gets the size of the dialog.
|
|
5102
|
+
* Gets the size of the dialog, either as a named preset or as explicit dimensions.
|
|
5103
|
+
*
|
|
5104
|
+
* @remarks
|
|
5105
|
+
* Explicit {@link dialog.IDialogDimensions | dimensions} and the `'xmedium'` preset require
|
|
5106
|
+
* version 1.10 or later.
|
|
5076
5107
|
* @i2since 1.4
|
|
5077
5108
|
*/
|
|
5078
|
-
readonly size: DialogSize;
|
|
5109
|
+
readonly size: DialogSize | IDialogDimensions;
|
|
5079
5110
|
/**
|
|
5080
5111
|
* Gets the data for populating the dialog when it's first displayed.
|
|
5081
5112
|
*
|