import { EventEmitter, OnInit, TemplateRef, Injector } from '@angular/core'; import { IdService } from '@farris/ui-common'; import { NotifyService } from '@farris/ui-notify'; import { TreeNode, TreeTableComponent } from '@farris/ui-treetable'; import { DomService, SchemaService, DesignViewModelService, FormBasicService } from '@farris/designer-services'; import { ControlService } from '../../../../../../service/control.service'; import { FarrisDesignBaseComponent } from '@farris/designer-element'; export declare class SplitFormComponent implements OnInit { private domService; private notifyService; private schemaService; private formBasicService; private controlService; private dgVMService; private idService; private injector; /** 控件和schema的映射类,由设计器提供 */ schemaDOMMapping: any; /** 组件id */ componentId: string; /** 组件ref节点的父容器组件实例 */ componentParentContainerInstance: FarrisDesignBaseComponent; closeModal: EventEmitter; submitModal: EventEmitter; modalFooter: TemplateRef; bindFieldColTpl: TemplateRef; class: string; /** 卡片组件节点 */ componentNode: any; /** 卡片组件内的Form节点 */ compFormNode: any; /** 树表数据 */ treeData: TreeNode[]; /** 树表列配置 */ treeCols: any[]; /** 树表实例 */ treeTable: TreeTableComponent; movedViewModelFieldIds: any[]; movedControls: any[]; componentTitle: string; private localeService; searchFields: any[]; constructor(domService: DomService, notifyService: NotifyService, schemaService: SchemaService, formBasicService: FormBasicService, controlService: ControlService, dgVMService: DesignViewModelService, idService: IdService, injector: Injector); ngOnInit(): void; /** * 构件字段树表 * @returns 树表数据 */ private buildFieldTree; clickCancel(): void; clickConfirm(): void; /** * 字段搜索 */ searchField($event: any): void; private getSelectedControls; /** * 创建新的卡片组件 */ private addNewFormComponent; /** * 将组件相关节点插入DOM * @param componentBindingSourceContext 组件构造信息 * @param componentRefParentNode 组件引用节点的父节点 */ private insertComponent; /** * 组装卡片组件内容 */ private assembleFormCmpContents; /** * 移除当前组件中的控件 */ private removeControlsInComponent; /** * 拷贝控件涉及的命令 * @param newViewModel 新视图模型对象 */ private moveViewModelCommands; private createNewCommand; /** * 检查组件是否在滚动监听的区域内,若是,自动将当前分组面板设置为可监听的滚动项。 * @param targetComponentInstance 拖拽父组件实例 * @param sectionSchema 分组面板schema结构 */ private appendScrollSpyItem; }