import { DesignerEnvType, FormSchemaEntityFieldType } from '@farris/designer-services'; /** * 提供schema字段和DOM控件属性的映射 */ export declare class SchemaDOMMapping { /** * <字段类型,可配置的控件类型列表>的映射 */ static fieldControlTypeMapping: { String: ({ key: string; value: string; supportedEnvType?: undefined; } | { key: string; value: string; supportedEnvType: DesignerEnvType; })[]; Text: ({ key: string; value: string; supportedEnvType?: undefined; } | { key: string; value: string; supportedEnvType: DesignerEnvType; })[]; Decimal: { key: string; value: string; }[]; Integer: { key: string; value: string; }[]; Number: { key: string; value: string; }[]; BigNumber: { key: string; value: string; }[]; Date: { key: string; value: string; }[]; DateTime: { key: string; value: string; }[]; Boolean: { key: string; value: string; }[]; Enum: { key: string; value: string; }[]; Object: { key: string; value: string; }[]; EmployeeSelector: { key: string; value: string; }[]; AdminOrganizationSelector: { key: string; value: string; }[]; }; /** * 提供字段名称和DOM控件标题的映射 * @param controlType 控件类型 */ static getControlName(controlType: any): string; /** * 提供schema字段基础属性和DOM控件属性的映射 * @param control 控件元数据 */ static mappingDomPropAndSchemaProp(control: any): any[]; /** * 将字段类型 映射为表单表格列上的类型dataType * @param fieldType 字段类型 */ static mapMDataType2GridFieldType(fieldType: FormSchemaEntityFieldType): string; /** * 根据字段类型获取可用的控件类型 * @param fieldType 字段类型 * @param multiLanguage 是否多语 * @param cmpType 控件所在的组件类型 * @param envType 设计器运行环境 */ static getEditorTypesByMDataType(fieldType: string, multiLanguage: boolean, cmpType: string, envType: string): any[]; /** * 根据变量类型获取控件编辑器类型 */ static getEditorTypeByVariableType(type: string): string; }