import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core'; import { PropertyEntity } from '@farris/ide-property-panel'; import { LocaleService } from '@farris/ui-locale'; import { MessagerService } from '@farris/ui-messager'; import { NotifyService } from '@farris/ui-notify'; export declare class FieldStyleConfigComponent implements OnInit { private msgService; private notifyService; private cd; private localeService; valueChanged: EventEmitter; private _elementConfig; /** 列表列数据 */ private gridFieldData; elementConfig: PropertyEntity; styleTypes: any[]; styleType: string; numberPrecision: number; numberFormats: any[]; standardNumberFormats: any[]; numberFormat: any; dateFormats: any[]; standardDateFormats: any[]; dateFormat: any; standardDatetimeFormats: any[]; selectedIconType: any; iconTypes: any[]; standardIconTypes2: any[]; /** 是否显示枚举配置的确定按钮:切换为新的图标集或者需要清除原图标集时显示按钮。若之前没有配置过图标集且没有切换新图标集,则不显示按钮。 */ showEnumIconOkBtn: boolean; /** * 某一系列图标包含的图标 */ iconClassEnums: Array<{ id: string; class: string; }>; /** 枚举数据 */ enumData: Array<{ value: string; name: string; iconClass: string; disabled: false; }>; /** 图标id:枚举值 */ iconEnumMapping: {}; /** 数字类格式化分类 */ numberTypes: any[]; /** 当前数字类格式化分类 */ numberType: string; /** 数字百分数模板 */ numberPercentageTmpl: string; constructor(msgService: MessagerService, notifyService: NotifyService, cd: ChangeDetectorRef, localeService: LocaleService); ngOnInit(): void; private initNumberTypes; private initStandardIconTypes2; private initStandardNumberFormats; private initStandardDateFormats; init(): void; private checkAndInitNumberType; private initNumberFormat; private initDateFormat; private initDatetimeFormat; private initEnumFormat; onNumberPrecisionChanged(): void; /** * 切换图标集 */ onIconTypeChanged(): void; /** * 变更图标的枚举数据 */ changeIconClassEnums(): void; sumbitStyle(): void; private submitNumberPercentageFormatStyle; private submitFormatStyle; /** * 校验是否有选中的枚举值 */ private getSelectedIconEnum; private submitIconTemplateStyle; /** * 枚举图标配置,切换为自定义,将清除原模板配置 */ private clearEnumTemplate; }