import { RhBooleanPipe } from './../../../pipes/boolean.pipe'; import { RhSelectItemPipe } from './../../../pipes/select-item.pipe'; import { OnInit, SimpleChanges, EventEmitter, ElementRef, AfterViewInit } from '@angular/core'; import { RhSelectItem, RhSelectableDto, RhDynamicFieldType, RhDisplayMode, RhAppConfigDto } from 'rh-base/model'; import { RhAppConfigService } from 'rh-base/core'; import { DecimalPipe } from '@angular/common'; import { RhPreviewImageDto, RhPortType } from 'rh-base/model'; import * as i0 from "@angular/core"; export declare class DescriptionFieldComponent implements OnInit, AfterViewInit { private selectItemPipe; private decimalPipe; private boolPipe; appconfigSer: RhAppConfigService; /** 管道格式化 */ rhPipe: string; /** 设置使用数据源管道格式化 */ rhPipeDatas: RhSelectItem[]; /** 对应的description数据 */ rhData: RhSelectableDto & { oldValue: number | string; }; /** description字段名称 */ rhField: string; /** 默认值 */ rhDefaultValue: string; /** 显示模式 */ rhDisplayMode: RhDisplayMode; /** 是否省略 */ rhEllipsis: boolean; /** 省略状态显示文本长度 */ rhWidth: number; /** 图片模块键值 */ rhImageModuleKey: string; /** 当没有图片时,根据该文本生成图片 */ rhImageField: string; imgRef: ElementRef; /** * 输入控件类型 * @description 当输入控价类型是`array`时,必须指定`rhPort`/`rhController`/`rhInterface` */ rhType: RhDynamicFieldType; rhPort: RhPortType; rhController: string; rhInterface: string; rhOpenImage: EventEmitter; displayValue: string | number; imagelist: RhPreviewImageDto[]; get appconfig(): RhAppConfigDto; constructor(selectItemPipe: RhSelectItemPipe, decimalPipe: DecimalPipe, boolPipe: RhBooleanPipe, appconfigSer: RhAppConfigService); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): Promise; openImagePreview(index: number): void; /** */ private setDisplayValue; /** `selector`展示模式,默认为`2` * @description * `0`表示展示`Value`和`Text`; * `1`表示只展示`Value`; * `2`表示只展示`Text`; * `3`表示展示`Text`和`Value`; */ getDisplayNameByMode(mode: RhDisplayMode, name: string, value: string): string; /** 设置自定义显示模板 */ private setCustomizeData; /** 请求缩略图,如果获取失败,替换为默认图片 */ private getThumbImage; private setFnData; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }