import { KeyValue } from '@angular/common'; import { EventEmitter } from '@angular/core'; import { FormGroup, FormBuilder } from '@angular/forms'; import { OnInit } from '@angular/core'; import { RhFieldSourceType, RhDynamicFieldBaseDto, RhDynamicInterfaceDto, RhSelectItem, RhSelectItemT, IRhParaConfiguration, customizeDataType, RhSelectableDto, RhDevInterfaceConfigDto, WithNil } from 'rh-base/model'; import { RhBaseDynamicService } from '../../base-dynamic.service'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import * as i0 from "@angular/core"; export declare class FieldDatasourceConfigComponent implements OnInit { private fb; private operator; rhData: RhDynamicFieldBaseDto; rhDataChange: EventEmitter; rhClose: EventEmitter; rhType: RhFieldSourceType; /** 手动录入的数据源 */ dataset: RhSelectItem[]; /** 手动输入的url */ targetUrl: string; /** 接口数据预览,考虑是否需要存到数据库 */ sampleDataset: RhSelectItem[]; typeinForm: FormGroup; typeinDto: RhSelectItem; fieldSourceTypeDataset: RhSelectItemT[]; interfaceInfo: WithNil; frontInterfaceInfo: RhDynamicInterfaceDto | IRhParaConfiguration; isShowTestModal: boolean; selectedInterfaceTypeinIndex: number; /** 通过设置业务类型设置 */ businessType: string; defaultMappedDataset: (KeyValue & { Text: string; select?: boolean | undefined; })[]; ValueIsNumber: boolean; TextIsNumber: boolean; constructor(fb: FormBuilder, operator: RhBaseDynamicService); ngOnInit(): void; createTypeinForm(dto: RhSelectItem): void; drop(event: CdkDragDrop): void; deleteTypeinData(item: RhSelectItem): void; onClose(): void; onSelectInterface(item: RhDevInterfaceConfigDto): void; onSelectParaConfig(para: IRhParaConfiguration): void; onSetBusinessType(type: string): void; onSaveTargetUrl(url: string): void; onSelectDefaultBusiness(item: KeyValue & RhSelectableDto): void; onInterfaceEditSelectedIndexChange(index: number): void; saveDatas(): void; submitTypeinForm(event: Event): void; resetTypeinForm(event: Event | null): void; /** 测试接口 */ testInterface(): void; closeTestModal(): void; openTestModal(): void; private getInterfaceInfo; changeValueType(): void; changeTextType(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }