mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Adding wizard and dialog footer loading spinner (#21230)
* Adding wizard and dialog loading * Moving apis to proposed * fixing namespace * Only firing event when the value changes * Only firing when value is changed * Adding loading complete message to dialog and wizard * Registering listeners and making a new base interface for loading components * Fixing api comment * Renaming prop to loadingCompleted * old loading icon
This commit is contained in:
26
src/sql/azdata.proposed.d.ts
vendored
26
src/sql/azdata.proposed.d.ts
vendored
@@ -134,6 +134,24 @@ declare module 'azdata' {
|
||||
}
|
||||
}
|
||||
|
||||
export interface LoadingComponentBase {
|
||||
/**
|
||||
* When true, the component will display a loading spinner.
|
||||
*/
|
||||
loading?: boolean;
|
||||
|
||||
/**
|
||||
* This sets the alert text which gets announced when the loading spinner is shown.
|
||||
*/
|
||||
loadingText?: string;
|
||||
|
||||
/**
|
||||
* The text to display while loading is set to false. Will also be announced through screen readers
|
||||
* once loading is completed.
|
||||
*/
|
||||
loadingCompletedText?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column information of a data set.
|
||||
*/
|
||||
@@ -1702,4 +1720,12 @@ declare module 'azdata' {
|
||||
*/
|
||||
objectType?: string;
|
||||
}
|
||||
|
||||
export namespace window {
|
||||
export interface Wizard extends LoadingComponentBase {
|
||||
}
|
||||
|
||||
export interface Dialog extends LoadingComponentBase {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user