table designer validation support (#18438)

* table designer validation

* vbump sts
This commit is contained in:
Alan Ren
2022-02-17 13:07:19 -08:00
committed by GitHub
parent e66192cbfd
commit 28ab7372d2
11 changed files with 186 additions and 72 deletions

View File

@@ -43,6 +43,11 @@ export interface DesignerComponentInput {
*/
readonly viewModel: DesignerViewModel;
/**
* Gets the validation errors.
*/
readonly validationErrors: DesignerValidationError[] | undefined;
/**
* Start initilizing the designer input object.
*/
@@ -210,9 +215,11 @@ export interface DesignerEdit {
export type DesignerEditPath = (string | number)[];
export const DesignerRootObjectPath: DesignerEditPath = [];
export type DesignerValidationError = { message: string, property?: DesignerEditPath };
export interface DesignerEditResult {
isValid: boolean;
errors?: { message: string, property?: DesignerEditPath }[];
errors?: DesignerValidationError[];
}
export interface DesignerTextEditor {