import { FormGroup } from '@angular/forms'; import { CustomValidator } from '../../validators/custom.validators'; import { CoreCommonService } from './common.service'; export declare class CoreDynamicFormService { private customValidator; private coreCommonService; constructor(customValidator: CustomValidator, coreCommonService: CoreCommonService); /** * This method will convert controls to form group * @param controls - controls */ toFormGroup(controls?: Array, ...scopes: any): Promise; /** * get validators list * @param fieldObj - field details */ private getValidatorsList; /** * This method will check the regex of field value * @param field - field details */ private regexCheck; /** * This method will check for mandatory flag * @param field - field */ private mandatoryCheck; /** * This method will check for min length * @param field - field */ private minLengthCheck; /** * This method will check for max length * @param field - field */ private maxLengthCheck; /** * This method will check for min value * @param field - field */ private minValueCheck; /** * This method will check for max value * @param field - field */ private maxValueCheck; /** * This method will add form level validators */ private addFormLevelValidators; /** * This method will validate data and time * @param formGroup - form group * @param field - field */ private dateTimeValidator; /** * This method will set validator for date time * @param formGroup - form group * @param field - field * @param supportingParams - params */ private setDateTimePickerValidator; /** * This method will set min date in date picker */ private setMinDateValidator; /** * This method will set max date for datepicker */ private setMaxDateValidator; }