UNPKG

cocori-ng

Version:

Cocori-ng is an Angular full of great components & utilites based on Material

36 lines (35 loc) 1.73 kB
import { UntypedFormControl, ValidationErrors, ValidatorFn } from '@angular/forms'; import * as i0 from "@angular/core"; export interface ValidtionError { key: string; value?: any; message?: string; } export declare class ValidatorsService { getValidationErrorMessage(error: ValidtionError): any; static require(control: UntypedFormControl): ValidationErrors; static emailValidator(control: UntypedFormControl): ValidationErrors; static dateValidator(control: UntypedFormControl): ValidationErrors; static telephoneValidator(control: UntypedFormControl): any; static codepostalValidator(control: UntypedFormControl): any; /** VALIDATEURS DATES */ /** * La date à valider est au format UTC : 1982-11-06T00:00:00Z */ /** * La date à valider est au format UTC : 1982-11-06T15:15:15Z * invalideDateHeure */ /** / VALIDATEURS DATES */ static regexValidator(regle: string, formatRegexEnClair: string): ValidatorFn; static numeroSinistreValidator(control: UntypedFormControl): any; static caseACocherRequireValidator(control: UntypedFormControl): any; static dateAvantUneAutre(champDateAvant: string, champDateAprès: string): any; static luhnValidator(control: UntypedFormControl): any; static identiqueValidator(controle: string, controleConfirme: string): any; static êtreMajeurValidateur(control: UntypedFormControl): any; static entierValidateur(control: UntypedFormControl): any; static auMoinsUnChampDoitEtreRequisValidateur(): any; static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorsService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ValidatorsService>; }