mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 01:25:36 -05:00
Add ModelView ImageComponent (#7106)
* Add ModelView ImageComponent * Remove duplicate property declarations * Fix sqlops too
This commit is contained in:
45
src/sql/azdata.d.ts
vendored
45
src/sql/azdata.d.ts
vendored
@@ -2471,6 +2471,7 @@ declare module 'azdata' {
|
||||
editor(): ComponentBuilder<EditorComponent>;
|
||||
diffeditor(): ComponentBuilder<DiffEditorComponent>;
|
||||
text(): ComponentBuilder<TextComponent>;
|
||||
image(): ComponentBuilder<ImageComponent>;
|
||||
button(): ComponentBuilder<ButtonComponent>;
|
||||
dropDown(): ComponentBuilder<DropDownComponent>;
|
||||
tree<T>(): ComponentBuilder<TreeComponent<T>>;
|
||||
@@ -3057,6 +3058,12 @@ declare module 'azdata' {
|
||||
CSSStyles?: { [key: string]: string };
|
||||
}
|
||||
|
||||
export interface ImageComponentProperties {
|
||||
src: string;
|
||||
alt?: string;
|
||||
height?: number | string;
|
||||
width?: number | string;
|
||||
}
|
||||
export interface LinkArea {
|
||||
text: string;
|
||||
url: string;
|
||||
@@ -3092,7 +3099,6 @@ declare module 'azdata' {
|
||||
export interface ListBoxProperties {
|
||||
selectedRow?: number;
|
||||
values?: string[];
|
||||
|
||||
}
|
||||
|
||||
export interface WebViewProperties extends ComponentProperties {
|
||||
@@ -3136,10 +3142,25 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface ButtonProperties extends ComponentProperties, ComponentWithIcon {
|
||||
/**
|
||||
* The label for the button
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
* Whether the button opens the file browser dialog
|
||||
*/
|
||||
isFile?: boolean;
|
||||
/**
|
||||
* The content of the currently selected file
|
||||
*/
|
||||
fileContent?: string;
|
||||
/**
|
||||
* The title for the button. This title will show when hovered over
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* The accessibility aria label for this component
|
||||
*/
|
||||
ariaLabel?: string;
|
||||
}
|
||||
|
||||
@@ -3182,9 +3203,10 @@ declare module 'azdata' {
|
||||
onDidClick: vscode.Event<any>;
|
||||
}
|
||||
|
||||
export interface ImageComponent extends Component, ImageComponentProperties {
|
||||
}
|
||||
|
||||
export interface HyperlinkComponent extends Component, HyperlinkComponentProperties {
|
||||
label: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface InputBoxComponent extends Component, InputBoxProperties {
|
||||
@@ -3205,8 +3227,6 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface DropDownComponent extends Component, DropDownProperties {
|
||||
value: string | CategoryValue;
|
||||
values: string[] | CategoryValue[];
|
||||
onValueChanged: vscode.Event<any>;
|
||||
}
|
||||
|
||||
@@ -3221,8 +3241,6 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface ListBoxComponent extends Component, ListBoxProperties {
|
||||
selectedRow?: number;
|
||||
values: string[];
|
||||
onRowSelected: vscode.Event<any>;
|
||||
}
|
||||
|
||||
@@ -3343,19 +3361,6 @@ declare module 'azdata' {
|
||||
}
|
||||
|
||||
export interface ButtonComponent extends Component, ButtonProperties {
|
||||
/**
|
||||
* The label for the button
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* The title for the button. This title will show when it hovers
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* Icon Path for the button.
|
||||
*/
|
||||
iconPath: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
|
||||
/**
|
||||
* An event called when the button is clicked
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user