sdk-textbox
Version:
Simple to use (Angular) textbox for controlling input while typing.
48 lines (47 loc) • 1.9 kB
TypeScript
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
import { DatePipe } from '@angular/common';
import * as i0 from "@angular/core";
export declare class CalendarComponent implements OnInit {
private datePipe;
date: string;
show: boolean;
height: string;
width: string;
fontSize: string;
setDateEvent: EventEmitter<any>;
/**************************************************************************
* Component Variables
**************************************************************************/
calendar: ElementRef | undefined;
yearText: ElementRef | undefined;
showCalendar: boolean;
showMonths: boolean;
showYears: boolean;
calendarHtml: string;
year: number;
month: string;
monthNumber: number;
dayNumber: number;
months: string[];
days: string[];
calDays: any;
private newData;
constructor(datePipe: DatePipe);
ngOnInit(): void;
ngOnChanges(): void;
setDate(date: string): void;
getToday(): void;
getMonth(): void;
setMonth(month: any): void;
getYear(): void;
setYear(): void;
onKeyDown(event: any): void;
/**************************************************************************
* Protected Methods
**************************************************************************/
private setCalendar;
private getTotalDays;
private setStyle;
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "calendar", never, { "date": { "alias": "date"; "required": false; }; "show": { "alias": "show"; "required": false; }; "height": { "alias": "height"; "required": false; }; "width": { "alias": "width"; "required": false; }; "fontSize": { "alias": "fontSize"; "required": false; }; }, { "setDateEvent": "setDateEvent"; }, never, never, true, never>;
}