mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
accessible radio card (#8514)
* accessible radio card group * set radio card group width * address comments * address comments 2 * fix the profile card not being focused issue
This commit is contained in:
36
src/sql/azdata.proposed.d.ts
vendored
36
src/sql/azdata.proposed.d.ts
vendored
@@ -124,6 +124,42 @@ declare module 'azdata' {
|
||||
OssRdbms = 2
|
||||
}
|
||||
|
||||
export interface ModelBuilder {
|
||||
radioCardGroup(): ComponentBuilder<RadioCardGroupComponent>;
|
||||
}
|
||||
|
||||
export interface RadioCard {
|
||||
id: string;
|
||||
label: string;
|
||||
descriptions?: RadioCardDescription[];
|
||||
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
}
|
||||
|
||||
export interface RadioCardDescription {
|
||||
ariaLabel: string;
|
||||
labelHeader: string;
|
||||
contents: RadioCardLabelValuePair[];
|
||||
valueHeader?: string;
|
||||
}
|
||||
|
||||
export interface RadioCardLabelValuePair {
|
||||
label: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface RadioCardGroupComponentProperties extends ComponentProperties, TitledComponentProperties {
|
||||
cards: RadioCard[];
|
||||
cardWidth: string;
|
||||
cardHeight: string;
|
||||
iconWidth?: string;
|
||||
iconHeight?: string;
|
||||
selectedCardId?: string;
|
||||
}
|
||||
|
||||
export interface RadioCardGroupComponent extends Component, RadioCardGroupComponentProperties {
|
||||
onSelectionChanged: vscode.Event<any>;
|
||||
}
|
||||
|
||||
export interface DeclarativeTableProperties extends ComponentProperties {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user