ngx-nic-parser
Version:
A calculator of Date of birth and gender using NIC in SriLanka using Angular
28 lines (27 loc) • 1.4 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { FormGroup } from "@angular/forms";
import { BirthMonthAndDate } from "./birth-month-and-date";
import { Response } from "./response";
import * as i0 from "@angular/core";
export declare class NgxNicParserComponent implements OnInit {
id: string;
title: string;
requiredMessage: string;
patternErrorMessage: string;
placeholder: string;
clearNICNumber: string;
checkDob: EventEmitter<Response>;
nicForm: FormGroup;
get nicNumber(): any;
ngOnInit(): void;
nicParser(): void;
getBirthYear($nicNumber: any): number;
getBirthMonthAndDate($dayText: number): any;
setBirthMonthAndDate(day: any, monthName: string, monthNumber: number): BirthMonthAndDate;
getNumberOfDatesToDob($nicNumber: any): number;
getGender($numberOfDays: number): "Female" | "Male";
isLeapYear(): number[];
getWeekDay($year: number, $month: number, $day: number): string;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxNicParserComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NgxNicParserComponent, "ngx-nic-parser", never, { "id": "id"; "title": "title"; "requiredMessage": "requiredMessage"; "patternErrorMessage": "patternErrorMessage"; "placeholder": "placeholder"; "clearNICNumber": "clearNICNumber"; }, { "checkDob": "checkDob"; }, never, never>;
}