import { OnInit, EventEmitter, SimpleChange, Injector, ComponentFactoryResolver } from '@angular/core'; import { BsModalService } from '@farris/ui-modal'; import { IdService } from '@farris/ui-common'; import { NotifyService } from '@farris/ui-notify'; import { FormBasicService, SchemaService } from '@farris/designer-services'; export declare class CommandSourceComponent implements OnInit { private modalService; private idService; private notifySer; private formBasicService; private schemaService; injector: Injector; private resolver; /** 中文或英文环境标识 */ localeId: string; /** 当前显示的是第几个事件*/ i: number; /** 入参 */ initialData: any; /** 原层级结构数据 */ originalData: any; /** 判断是否为新引入的方法 */ newImport: boolean; /** 新增的内置构件列表 */ addInternalCommandList: any; /** 外层传入数据 */ outerLayerValue: any; /** 判断是否为:点击“导入此方法”后,绑定了新增值 */ exist: number; /** 接收是否显示「可选择方法」功能 */ haveBoundCommand: boolean; /** 新增方法列表值变化事件 */ addInternalCommandListChanged: EventEmitter; /** 新引入值变化事件 */ newImportChanged: EventEmitter; /** 传出用户选择绑定的方法 */ currentCommandChanged: EventEmitter; /** 传出数据变化 */ originalDataChanged: EventEmitter; /** 用户点击了方法来源的关闭按钮 */ clickClose: EventEmitter; /** 判断是否为:点击“导入此方法”后,绑定了新增值*/ existChanged: EventEmitter; /** 判断是否有新增方法*/ newFucChanged: EventEmitter; /** 用户点击的命令 */ selectedCommand: any; runtimeCustom: boolean; newFuncEvents: any; eventEditorLocale: { 'zh-CHS': { eventsEditor: { createInteractions: string; importControllers: string; addNewMethods: string; savedMethods: string; cancel: string; methodNotExist: string; methodDeleted: string; finish: string; targetComponent: string; allBound: string; noBoundEvents: string; controllerExist: string; chooseSelect: string; methodMoved: string; methodAbandonedAndRebound: string; methodAbandoned: string; sureOfSavedMethods: string; cancelOfSavedMethods: string; tips: string; }; }; 'zh-CHT': { eventsEditor: { createInteractions: string; importControllers: string; addNewMethods: string; savedMethods: string; cancel: string; methodNotExist: string; methodDeleted: string; finish: string; targetComponent: string; allBound: string; noBoundEvents: string; controllerExist: string; chooseSelect: string; /** 判断是否为:点击“导入此方法”后,绑定了新增值 */ methodMoved: string; methodAbandonedAndRebound: string; methodAbandoned: string; sureOfSavedMethods: string; cancelOfSavedMethods: string; tips: string; }; }; en: { eventsEditor: { createInteractions: string; importControllers: string; addNewMethods: string; savedMethods: string; cancel: string; methodNotExist: string; methodDeleted: string; finish: string; targetComponent: string; allBound: string; noBoundEvents: string; controllerExist: string; chooseSelect: string; methodMoved: string; methodAbandonedAndRebound: string; methodAbandoned: string; sureOfSavedMethods: string; cancelOfSavedMethods: string; tips: string; }; }; }; constructor(modalService: BsModalService, idService: IdService, notifySer: NotifyService, formBasicService: FormBasicService, schemaService: SchemaService, injector: Injector, resolver: ComponentFactoryResolver); ngOnInit(): void; ngOnChanges(changes: SimpleChange): void; /** 原始数据值变化事件 */ onOriginalDataChanged(value: any): void; /** 方法绑定-遍历判断当前的方法是否被其他事件绑定,若已绑定,则及时更新最新值; */ iterateBoundEvents(currentCommand: any): void; /** 方法去重*/ getUniqueCommand(): void; /** 方法绑定-替换用户选择绑定的变量 */ onCurrentCommandChanged(currentCommand: any): void; /** 「引入控制器」-若引入的方法未被选用,则删除该控制器 */ saveInternals(currentCommand: any): void; /** 「引入控制器」-弹窗显示 */ openMetadataSelector(): void; /** 「引入控制器」-方法绑定*/ importNewCommand(data: any): void; /** 「编写新方法」-跳转至代码编辑器 */ generateNewFunc(): void; /** 「已有方法」-弹窗显示 */ showBoundEvents(): void; /** 「已有方法」-选择方法 */ setSelectedCommand(selectedCommand: any): void; /** 「取消」-关闭浮层 */ closeCurrentCommandModal(): void; }