import { EntityBaseService, IEntity, IParams } from '@ibizstudio/api'; import { IDesignContext } from '../interface'; import { DataHistory } from '../utils/data-history'; import { SelectState } from '../utils/select-state'; import { IPSAppDEEditView, IPSAppDataEntity, IPSControl } from '@ibizstudio-ex/runtime'; /** * 设计界面控制器 * * @export * @class DesignController */ export declare abstract class DesignController { /** * 上下文内容 * * @type {IDesignContext} * @memberof DesignController */ ctx: IDesignContext; /** * 选中状态操作对象 * * @memberof DesignController */ readonly select: SelectState; /** * 历史记录操作对象 * * @memberof DesignController */ readonly history: DataHistory; /** * 模型初始化完毕 * * @author chitanda * @date 2021-04-14 15:04:48 */ modelInit: boolean; /** * 素材区快速搜索值 * */ materialSearch: string; /** * 视图副标题(部件名称) * */ subTitle: string; /** * 视图模型对象 * * @type {IPSAppDEEditView} */ viewModel: IPSAppDEEditView; /** * 子模型对象 * * @type {IPSControl} * @memberof DesignController */ itemModel: IPSControl; /** * 实体 * * @author chitanda * @date 2021-04-14 16:04:13 * @type {IPSAppDataEntity} */ entity: IPSAppDataEntity; /** * 主数据对象 * * @type {IEntity} * @memberof IPSAppDataEntity */ data: IEntity; /** * 项实体 * * @author chitanda * @date 2021-04-14 16:04:43 * @type {IPSAppDataEntity} */ itemEntity: IPSAppDataEntity; /** * 实体服务 * * @author chitanda * @date 2021-04-14 16:04:49 * @type {EntityBaseService} */ service: EntityBaseService; /** * 项实体服务 * * @author chitanda * @date 2021-04-14 16:04:34 * @type {EntityBaseService} */ itemService: EntityBaseService; /** * 项预览实体服务 * * @type {EntityBaseService} * @memberof DesignController */ previewService: EntityBaseService; /** * Creates an instance of DesignController. * @param {IDesignContext} ctx * @memberof DesignController */ constructor(ctx: IDesignContext); /** * 设置视图模型 * * @param {IPSAppDEEditView} viewModel * @memberof FormDesignController */ setViewModel(viewModel: IPSAppDEEditView): void; /** * 根据视图模型初始化参数 * * @author chitanda * @date 2021-04-14 15:04:51 * @param {IPSAppDEEditView} view * @return {*} {Promise} */ initModel(view: IPSAppDEEditView): Promise; /** * 根据视图模型初始化关联子实体参数 * * @protected * @param {IPSAppDEEditView} view * @memberof DesignController */ protected initChildModel(view: IPSAppDEEditView): Promise; /** * 数据加载 * * @param {IParams} [_params = {}] * @return {*} {Promise} * @memberof DesignController */ load(_params?: IParams): Promise; /** * 重新加载数据 * * @author chitanda * @date 2021-06-03 15:06:40 * @return {*} {Promise} */ reload(_params?: IParams): Promise; /** * 设置展示的主文本信息 * * @author chitanda * @date 2021-06-06 15:06:12 * @param {*} data */ setMainInfo(data: any): void; } //# sourceMappingURL=design-controller.d.ts.map