import * as i0 from '@angular/core'; import { OnInit, OnDestroy, AfterViewInit, EventEmitter } from '@angular/core'; import * as i4 from '@yelon/form'; import { SFSchema, SFComponent, SFSchemaEnumType } from '@yelon/form'; import * as i7 from 'ng-zorro-antd/tree'; import { NzTreeNode, NzFormatEmitEvent } from 'ng-zorro-antd/tree'; import { Observable } from 'rxjs'; import * as i1 from 'ng-zorro-antd/spin'; import * as i2 from 'ng-zorro-antd/card'; import * as i3 from '@angular/common'; import * as i5 from 'ng-zorro-antd/icon'; import * as i6 from 'ng-zorro-antd/empty'; interface YunzaiDeptTree { children: YunzaiDeptTree[]; icon: string; key: string; title: string; value: string; } interface YunzaiDeptTreeProps { multiple?: boolean; wrap?: boolean; expand?: boolean; types?: YUNZAI_DEPT_TYPES[]; grade?: boolean; gradeId?: string; class?: boolean; historyClass?: boolean; data?: YunzaiDeptTree[]; } interface YunzaiDeptTreeState { loading: boolean; schema: SFSchema; data: YunzaiDeptTree[]; dataBackup: YunzaiDeptTree[]; expandKeys: string[]; } declare enum YUNZAI_DEPT_TYPES { DEPT = 2, CLASS = "class" } declare class YunzaiDeptTreeComponent implements OnInit, OnDestroy, AfterViewInit { sf: SFComponent; props?: YunzaiDeptTreeProps; readonly onQueryComplete: EventEmitter; readonly onSelect: EventEmitter; private readonly deptTreeService; private readonly gradeService; private $destroy; state: YunzaiDeptTreeState; get data(): YunzaiDeptTree[]; set data(depts: YunzaiDeptTree[]); get nodes(): NzTreeNode[]; get isMultiple(): boolean; get includeClass(): boolean; get includeClassHistory(): boolean; get includeGrade(): boolean; get deptTypes(): YUNZAI_DEPT_TYPES[]; get isWrapped(): boolean; get isExpanded(): boolean; get gradeId(): string | undefined; ngOnInit(): void; ngAfterViewInit(): void; setupSchema(): void; hookFormChange(): void; mapDeptTree(tree: NzTreeNode[]): void; recursionSearch(search: string, depts: YunzaiDeptTree[]): YunzaiDeptTree[]; activeNode(data: NzFormatEmitEvent): void; query(): void; load(): void; unload(): void; open(data: NzTreeNode | NzFormatEmitEvent): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare function generateSchema(ic: boolean, ich: boolean, gra: boolean, data?: Observable): SFSchema; declare class YunzaiDeptTreeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class YunzaiDeptTreeService { private readonly http; /** * @param includeClass include class * @param history include history class */ tree(includeClass: boolean, history: boolean): Observable; /** * @param includeClass include class * @param history include history class * @param types dept types */ tree(includeClass: boolean, history: boolean, types?: YUNZAI_DEPT_TYPES[]): Observable; /** * @param includeClass include class * @param history include history class * @param types dept types * @param gradeId gradeId */ tree(includeClass: boolean, history: boolean, types?: YUNZAI_DEPT_TYPES[], gradeId?: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { YUNZAI_DEPT_TYPES, YunzaiDeptTreeComponent, YunzaiDeptTreeModule, YunzaiDeptTreeService, generateSchema }; export type { YunzaiDeptTree, YunzaiDeptTreeProps, YunzaiDeptTreeState };