UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

41 lines (40 loc) 1.46 kB
import { DefaultControlValueAccessor } from './../common/default-control-value-accessor'; import { EventEmitter, ElementRef, OnChanges, OnInit } from '@angular/core'; import * as calendarConst from './asi-calendar-constants'; export declare class AsiCalendarComponent extends DefaultControlValueAccessor implements OnChanges, OnInit { private platformId; relativeTo: ElementRef; minDate: Date; maxDate: Date; minYear: number; maxYear: number; private _disableDayOfWeek; /** allow you to disable day of week exemple [disableDayOfWeek]="[1, 2]"" while disabled monday and tusday */ disableDayOfWeek: any; onDatePicked: EventEmitter<Date>; days: Array<calendarConst.Day>; months: Array<calendarConst.Month>; years: Array<number>; selectedMonth: calendarConst.Month; selectedYear: number; selectedDay: calendarConst.DayItem; dayOfMonths: Array<calendarConst.DayItem>; open: boolean; constructor(platformId: any); ngOnInit(): void; private isFr(); ngOnChanges(): void; initYears(): void; onDropdownClose(): void; openCalendar(): void; closeCalendar(): void; onDaySelected(dayItem: calendarConst.DayItem): void; onMonthSelected(): void; onYearSelected(): void; calculDays(): void; private manageDisabledDate(); writeValue(value: Date): void; initToDate(value: Date): void; goNextMonth(): void; goPreviousMonth(): void; }