mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
table designer new features (#18682)
* support graph tables * ignore script compare * ability to refresh view after edit * reserve focus after refresh view * primary key and default constraint * bug fixes * vbump sts * comments * update type * fix issue
This commit is contained in:
@@ -104,6 +104,7 @@ export interface DesignerState {
|
||||
|
||||
export const NameProperty = 'name';
|
||||
export const ScriptProperty = 'script';
|
||||
export const CanBeDeletedProperty = 'canBeDeleted';
|
||||
|
||||
export interface DesignerView {
|
||||
components?: DesignerDataPropertyInfo[]
|
||||
@@ -194,10 +195,19 @@ export interface DesignerTableProperties extends ComponentProperties {
|
||||
* The confirmation message to be displayed when user removes a row.
|
||||
*/
|
||||
removeRowConfirmationMessage?: string;
|
||||
/**
|
||||
* Whether to show the item detail in properties view. The default value is true.
|
||||
*/
|
||||
showItemDetailInPropertiesView?: boolean;
|
||||
/**
|
||||
* The label of the add new button. The default value is 'Add New'.
|
||||
*/
|
||||
labelForAddNewButton?: string;
|
||||
}
|
||||
|
||||
export interface DesignerTableComponentRowData {
|
||||
[key: string]: InputBoxProperties | CheckBoxProperties | DropDownProperties | DesignerTableProperties;
|
||||
[key: string]: InputBoxProperties | CheckBoxProperties | DropDownProperties | DesignerTableProperties | boolean;
|
||||
canBeDeleted?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -211,8 +221,11 @@ export interface DesignerEdit {
|
||||
type: DesignerEditType;
|
||||
path: DesignerPropertyPath;
|
||||
value?: any;
|
||||
source: DesignerUIArea;
|
||||
}
|
||||
|
||||
export type DesignerUIArea = 'PropertiesView' | 'ScriptView' | 'TopContentView' | 'TabsView';
|
||||
|
||||
export type DesignerPropertyPath = (string | number)[];
|
||||
export const DesignerRootObjectPath: DesignerPropertyPath = [];
|
||||
|
||||
@@ -220,6 +233,7 @@ export type DesignerValidationError = { message: string, propertyPath?: Designer
|
||||
|
||||
export interface DesignerEditResult {
|
||||
isValid: boolean;
|
||||
refreshView?: boolean;
|
||||
errors?: DesignerValidationError[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user