UNPKG

ng-phone

Version:

Avoids UnhandledPromiseRejectionWarning and PromiseRejectionHandledWarning

31 lines (30 loc) 1.28 kB
import { ElementRef } from '@angular/core'; import { ValidatorFn, FormBuilder, FormGroup } from '@angular/forms'; import { PhoneNumberUtil } from 'google-libphonenumber'; import * as i0 from "@angular/core"; export declare class NgPhoneComponent { private ele; private formBuilder; enablePlaceholder: any; customPlaceholder: any; maxLength: any; phoneNumberUtil: PhoneNumberUtil; selectedCountryISO: any; placeHolderValue: any; enablePlaceholderValue: any; maxLengths: number; shown: boolean; countries: any; form: FormGroup; showError: boolean; constructor(ele: ElementRef, formBuilder: FormBuilder); ngOnChanges(objectProperty: any): void; PhoneNumberValidator(): ValidatorFn; onChange(event: any): void; show(): void; search(e: any): void; onClick(e: any): void; submit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NgPhoneComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgPhoneComponent, "ng-phoneCode", never, { "enablePlaceholder": { "alias": "enablePlaceholder"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, {}, never, never, false, never>; }