Update Component API properties (#7694)

This commit is contained in:
Charles Gagnon
2019-10-11 13:33:35 -07:00
committed by GitHub
parent 0d2a3bc2d7
commit 2623e7da88
2 changed files with 19 additions and 17 deletions

17
src/sql/azdata.d.ts vendored
View File

@@ -2592,7 +2592,7 @@ declare module 'azdata' {
removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean; removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean;
} }
export interface Component { export interface Component extends ComponentProperties {
readonly id: string; readonly id: string;
/** /**
@@ -2618,13 +2618,6 @@ declare module 'azdata' {
*/ */
updateCssStyles(cssStyles: { [key: string]: string }): Thenable<void>; updateCssStyles(cssStyles: { [key: string]: string }): Thenable<void>;
enabled: boolean;
/**
* Corresponds to the display CSS property for the element
*/
display: DisplayType;
/** /**
* Event fired to notify that the component's validity has changed * Event fired to notify that the component's validity has changed
*/ */
@@ -2995,6 +2988,14 @@ declare module 'azdata' {
* Without this the component will fail to correctly size itself * Without this the component will fail to correctly size itself
*/ */
position?: PositionType; position?: PositionType;
/**
* Whether the component is enabled in the DOM
*/
enabled?: boolean;
/**
* Corresponds to the display CSS property for the element
*/
display?: DisplayType;
/** /**
* Matches the CSS style key and its available values. * Matches the CSS style key and its available values.
*/ */

View File

@@ -143,7 +143,7 @@ declare module 'sqlops' {
removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean; removeFormItem(formComponent: FormComponent | FormComponentGroup): boolean;
} }
export interface Component { export interface Component extends ComponentProperties {
readonly id: string; readonly id: string;
/** /**
@@ -169,13 +169,6 @@ declare module 'sqlops' {
*/ */
updateCssStyles(cssStyles: { [key: string]: string }): Thenable<void>; updateCssStyles(cssStyles: { [key: string]: string }): Thenable<void>;
enabled: boolean;
/**
* Corresponds to the display CSS property for the element
*/
display: DisplayType;
/** /**
* Event fired to notify that the component's validity has changed * Event fired to notify that the component's validity has changed
*/ */
@@ -519,7 +512,15 @@ declare module 'sqlops' {
* set to 'absolute', with the parent FlexContainer having 'relative' position. * set to 'absolute', with the parent FlexContainer having 'relative' position.
* Without this the component will fail to correctly size itself * Without this the component will fail to correctly size itself
*/ */
position?: string; position?: PositionType;
/**
* Whether the component is enabled in the DOM
*/
enabled?: boolean;
/**
* Corresponds to the display CSS property for the element
*/
display?: DisplayType;
/** /**
* Matches the CSS style key and its available values. * Matches the CSS style key and its available values.
*/ */