mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
EditDoc (#834)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -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>>
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user