UNPKG

moh-common-lib

Version:

A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).

34 lines (33 loc) 1.11 kB
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'; /** * This component reports the following errors. * required * invalid * duplicate * * These messages can be changed by updated messages using the errorMessages interface * Ex. { required: 'This field is required', invalid: '{label} is invalid' } */ export declare class SinComponent extends AbstractFormControl implements OnInit { controlDir: NgControl; _defaultErrMsg: ErrorMessage; sin: string; mask: any; label: string; maxlength: string; placeholder: string; labelforId: string; value: string; valueChange: EventEmitter<string>; blur: EventEmitter<any>; constructor(controlDir: NgControl); ngOnInit(): void; onValueChange(value: any): void; onBlur(event: any): void; writeValue(value: any): void; private validateSelf; private validateSin; }