UNPKG

moh-common-lib

Version:

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

33 lines (32 loc) 1.16 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'; export declare const BRITISH_COLUMBIA = "BC"; export interface ProvinceList { provinceCode: string; description: string; country: string; } export declare const PROVINCE_LIST: ProvinceList[]; export declare function getProvinceDescription(provinceCode: string): string; export declare class ProvinceComponent extends AbstractFormControl implements OnInit { controlDir: NgControl; label: string; provinceList: ProvinceList[]; labelforId: string; required: boolean; placeholder: string; maxlength: string; useDropDownList: boolean; value: string; valueChange: EventEmitter<string>; blur: EventEmitter<any>; province: string; _defaultErrMsg: ErrorMessage; constructor(controlDir: NgControl); ngOnInit(): void; onValueChange(value: any): void; onBlur(event: any): void; writeValue(value: any): void; }