import { FrameContext } from '@farris/devkit'; import { BsModalService, ModalOptions } from '@farris/ui-modal'; import { Injector, ComponentFactoryResolver, NgModuleFactoryLoader, ComponentRef, Type } from '@angular/core'; import { AifLocalePipe } from '../pipe/locale.pipe'; import { FormGetCreationRuleEntityExArgs } from '../form-args'; import { Observable } from 'rxjs'; import { ISlimCreationRuleEntityEx } from '@edp-aif/common-api'; import { IAifCreationRuleSelectorComponent, IAifSelectorComponent } from '../base'; export declare abstract class AbstractAifUiService { protected frameContext: FrameContext; protected modalService: BsModalService; protected injector: Injector; protected cfr: ComponentFactoryResolver; protected loader: NgModuleFactoryLoader; protected localeId: string; /** * 内置模态框配置 */ protected readonly defaultModalOptions: ModalOptions; protected aifLocalePipe: AifLocalePipe; constructor(frameContext: FrameContext, modalService: BsModalService, injector: Injector, cfr: ComponentFactoryResolver, loader: NgModuleFactoryLoader, localeId: string); protected openCreationRuleSelector(args: FormGetCreationRuleEntityExArgs, type: Type, modalOptions?: ModalOptions, customSelectorModuleUrl?: string): Observable; /** * 配置模态框按钮事件 * @param modalOptions * @param cmpR */ protected configModalButtons(modalOptions: ModalOptions, cmpR: ComponentRef): void; }