import { AfterViewInit, ElementRef, EventEmitter, Injector, NgZone, OnDestroy, OnInit, TemplateRef } from '@angular/core'; import { DomService, FormCommandManagerService } from '@farris/designer-services'; import { LocaleService } from '@farris/ui-locale'; import { MessagerService } from '@farris/ui-messager'; import { ModalOptions } from '@farris/ui-modal'; import { NotifyService } from '@farris/ui-notify'; import { SystemPresetCommand, ToolBarItem } from '../../entity/command'; import { EditorParamsInterface } from './entity'; export declare class PresetFunEditorComponent implements OnInit, AfterViewInit, OnDestroy { private _ngZone; private msgService; private domSer; private notifySer; private injector; private loading; formCommandMgr: FormCommandManagerService; localeService: LocaleService; constructor(_ngZone: NgZone, msgService: MessagerService, domSer: DomService, notifySer: NotifyService, injector: Injector); closeModal: EventEmitter; submitModal: EventEmitter; value: Array; editorParams: EditorParamsInterface; modalFooter: TemplateRef; availabelListEle: ElementRef; currentListEle: ElementRef; emptyCont: ElementRef; propertyData: any; modalConfig: ModalOptions; availableFuns: Array; currentFuns: Array; checkedId: string; addedCmds: Array; /** 左侧可选按钮列表 */ sourceColumnsTreeData: []; /** * 属性面板相关 */ propertyConfig: any; /** * 新添加的按钮以及功能信息 * */ private preAddComds; children: (dataItem: any) => import("rxjs").Observable; hasChildren: (dataItem: any) => boolean; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; bindDelete(): void; /** * 检查已选按钮是否能够删除 */ private refreshCurrentFuns; private keyListener; initDrage(): void; /** * 新的按钮 * */ addFun(drageData: SystemPresetCommand, toolBarItemIndex?: number): void; /** * 选中按钮 */ checkBtPropertys(btItem: ToolBarItem): void; /** * 删除节点 * * */ removeItem(btItem: ToolBarItem, index: number, deepDel?: boolean, event?: MouseEvent): void; /** * 清除已选 */ clearAll(): void; /** * 取消 */ clickCancel(): void; /** * 确定 * TODO 这里有个优化的点,需要先检查命令是否存在,然后反向推按钮事件 */ clickConfirm(): Promise; }