Table Designer - Save Changes feature and Editor related features (#17335)

* table designer add/remove row support

* save changes and editor support

* address comments

* fix build error

* including missing change

* lower case request name
This commit is contained in:
Alan Ren
2021-10-11 15:09:25 -07:00
committed by GitHub
parent e5f50499ce
commit ce4459a7b2
23 changed files with 495 additions and 90 deletions

View File

@@ -3,7 +3,14 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event } from 'vs/base/common/event';
export interface DesignerComponentInput {
/**
* The event that is triggerd when the designer state changes.
*/
readonly onStateChange: Event<DesignerState>;
/**
* Gets the object type display name.
*/
@@ -24,6 +31,27 @@ export interface DesignerComponentInput {
* @param edit the information about the edit.
*/
processEdit(edit: DesignerEdit): Promise<DesignerEditResult>;
/**
* A boolean value indicating whether the current state is valid.
*/
readonly valid: boolean;
/**
* A boolean value indicating whether the current state is dirty.
*/
readonly dirty: boolean;
/**
* A boolean value indicating whether the changes are being saved.
*/
readonly saving: boolean;
}
export interface DesignerState {
valid: boolean;
dirty: boolean;
saving: boolean;
}
export const NameProperty = 'name';
@@ -115,7 +143,7 @@ export enum DesignerEditType {
export interface DesignerEdit {
type: DesignerEditType;
property: DesignerEditIdentifier;
value: any;
value?: any;
}
export type DesignerEditIdentifier = string | { parentProperty: string, index: number, property: string };