Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov
2022-01-18 11:21:32 +01:00
committed by GitHub
parent 3d21b2de1e
commit b56f3bba7c
37 changed files with 576 additions and 650 deletions
+9 -2
View File
@@ -40,6 +40,13 @@ export interface ObjectEditor extends Class<Doc> {
editor: AnyComponent
}
/**
* @public
*/
export interface ObjectEditorHeader extends Class<Doc> {
editor: AnyComponent
}
/**
* @public
*/
@@ -60,7 +67,6 @@ export interface ViewletDescriptor extends Doc, UXObject {
export interface Viewlet extends Doc {
attachTo: Ref<Class<Space>>
descriptor: Ref<ViewletDescriptor>
open: AnyComponent
options?: FindOptions<Doc>
config: any
}
@@ -75,7 +81,7 @@ export interface Action extends Doc, UXObject {
/**
* @public
*/
export interface ActionTarget<T extends Doc=Doc> extends Doc {
export interface ActionTarget<T extends Doc = Doc> extends Doc {
target: Ref<Class<T>>
action: Ref<Action>
@@ -141,6 +147,7 @@ const view = plugin(viewId, {
AttributeEditor: '' as Ref<Mixin<AttributeEditor>>,
AttributePresenter: '' as Ref<Mixin<AttributePresenter>>,
ObjectEditor: '' as Ref<Mixin<ObjectEditor>>,
ObjectEditorHeader: '' as Ref<Mixin<ObjectEditorHeader>>,
ObjectValidator: '' as Ref<Mixin<ObjectValidator>>,
ObjectFactory: '' as Ref<Mixin<ObjectFactory>>
},