import { OnInit, TemplateRef, ChangeDetectorRef, EventEmitter } from '@angular/core'; import { RhSelectItem, RhSafeAny, RhDynamicFormFieldDto } from 'rh-base/model'; import { RhSelectorDisplayMode } from './../../widgets.types'; import { ControlValueAccessor } from '@angular/forms'; import { NzSizeLDSType } from 'ng-zorro-antd/core/types'; import { NzSelectModeType } from 'ng-zorro-antd/select'; import * as i0 from "@angular/core"; /** 在ng-zorro-antd的selector基础上,添加了可全选功能 */ export declare class RhBaseSelectorComponent implements OnInit, ControlValueAccessor { private cdr; rhData: RhSelectItem[]; /** 字段配置数据 */ rhFieldData: RhDynamicFormFieldDto; rhSize: NzSizeLDSType; rhDisplayMode: RhSelectorDisplayMode; /** 是否是精确查询(精确查询会自动添加`$`符号) */ rhExactQuery: boolean; rhPlaceHolder: string; rhDisabled: boolean; rhLoading: boolean; rhDropdownMatchSelectWidth: boolean; rhDropdownRender: TemplateRef | null; /** 选择的Item发生变化 */ rhItemChange: EventEmitter; /** 选择模式:单选还是多选 */ rhMode: NzSelectModeType; rhFormType: 'edit' | 'query'; _value: string | string[] | null; _oldValue: string | string[] | null; /** 源数据,只用于select的双向绑定 */ originValue: string | string[] | null; get value(): string | string[] | null; set value(value: string | string[] | null); isCheckAll: boolean; isIndeterminate: boolean; onChange: (value: RhSafeAny) => void; onTouched: () => RhSafeAny; constructor(cdr: ChangeDetectorRef); getDisplayInfo(item: RhSelectItem): string; ngOnInit(): void; onModelChange(value: RhSafeAny): void; onSelectedChange(status: boolean): void; writeValue(obj: RhSafeAny): void; registerOnChange(fn: RhSafeAny): void; registerOnTouched(fn: RhSafeAny): void; setDisabledState?(isDisabled: boolean): void; private refreshCheckboxStatus; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }