moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
28 lines (27 loc) • 974 B
TypeScript
import { EventEmitter, OnInit } from '@angular/core';
import { NgControl } from '@angular/forms';
import { AbstractFormControl } from '../../models/abstract-form-control';
import { ErrorMessage } from '../../models/error-message.interface';
/**
* TODO DOCUMENT NEED TO USE NGMODEL FOR REQUIRED TO WORK. Also test with reactive forms to see if still nec
*/
export declare class EmailComponent extends AbstractFormControl implements OnInit {
controlDir: NgControl;
label: string;
maxlength: string;
labelforId: string;
required: boolean;
value: string;
valueChange: EventEmitter<string>;
blur: EventEmitter<any>;
email: string;
_defaultErrMsg: ErrorMessage;
private _formatCriteria;
private _asciiPrintable;
constructor(controlDir: NgControl);
ngOnInit(): void;
onValueChange(value: any): void;
onBlur(event: any): void;
writeValue(value: any): void;
private validateSelf;
}