import { RhSelectorDisplayMode } from './../../../widgets/widgets.types'; import { RhSelectItem, RhSafeAny } from 'rh-base/model'; import { RhControlValueAccessorComponent } from './../../../widgets/base/control-value-accessor/control-value-accessor.component'; import { RhApiUrlsService } from 'rh-base/core'; import { OnInit, ChangeDetectorRef, EventEmitter } from '@angular/core'; import { NzSelectModeType, NzSelectSizeType } from 'ng-zorro-antd/select'; import * as i0 from "@angular/core"; /** `out`: 外部传入数据源; * `interface`:使用普通接口获取`; * `paramter`: 使用参数配置接口配置数据源; * `business`: 使用业务接口配置数据源` */ type ISelectItemSelectorSourceType = 'out' | 'interface' | 'parameter' | 'business'; /** * `out`: 外部传入数据源,必须配置`rhDataset`; * * `interface`:使用接口获取,必须设置`rhPort`,`rhController`和`rhInterfaceName`; * * `paramter`: 使用参数配置接口配置数据源,必须配置`rhModuleKey`,`rhGroupKey`,`rhParameterKey`; * * `business`: 使用业务接口配置数据源,必须传入`rhBusinessKey` */ export declare class RhSelectItemSelectorComponent extends RhControlValueAccessorComponent implements OnInit { apiUrl: RhApiUrlsService; /** 获取数据源方式 */ rhSourceType: ISelectItemSelectorSourceType; rhDataset: RhSelectItem[]; /** 外部传入的数据处理函数 */ rhDataHandler: (datas: RhSelectItem[]) => RhSelectItem[]; rhDataLoading: boolean; rhDisabled: boolean; rhPlaceholder: string; /** 选择模式:单选还是多选 */ rhMode: NzSelectModeType; rhSize: NzSelectSizeType; rhDisplayMode: RhSelectorDisplayMode; rhInterfaceType: 'post' | 'get'; rhPort: number; rhController: string; rhInterfaceName: string; rhInterfaceInput: Record; rhModuleKey: string; rhGroupKey: string; rhParameterKey: string; rhBusinessKey: string; rhItemChange: EventEmitter; dataset: RhSelectItem[]; constructor(cdk: ChangeDetectorRef, apiUrl: RhApiUrlsService); ngOnInit(): void; onModelChange(value: string): void; onOpenChange(): void; onItemChange(item: RhSelectItem): void; getDatas(): void; private getInterfaceDatas; private getParameterDatas; private getBusinessDatas; private datasourceHander; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};