@true-directive/grid
Version:
Angular Data Grid from Yopsilon.
54 lines (53 loc) • 1.67 kB
TypeScript
/**
* Copyright (c) 2018-2019 Aleksey Melnikov, True Directive Company.
* @link https://truedirective.com/
* @license MIT
*/
import { EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { InternationalizationService } from '../internationalization/internationalization.service';
/**
* Calendar component.
*/
export declare class CalendarComponent implements ControlValueAccessor {
private intl;
private cd;
private el;
private onChange;
private onTouched;
private _value;
mode: 'days' | 'months' | 'years';
days: any;
dateClick: EventEmitter<any>;
escape: EventEmitter<any>;
private calendarDateStart;
private calendarDateEnd;
value: any;
readonly valueTime: number;
readonly monthYear: any;
readonly today: Date;
registerOnChange(fn: (_: any) => void): void;
registerOnTouched(fn: () => void): void;
blur(): void;
writeValue(value: any): void;
setFocus(): void;
isCurrentMonth(d: any): boolean;
go(qty: number): void;
toggleMode(): void;
setMode(): void;
mousedown(e: any): void;
calendarDateClick(e: any, d: any): void;
dayNames: Array<string>;
weeks: Array<any>;
monthRows: Array<any>;
yearRows: Array<any>;
private createDayNames;
private createMonths;
private _minYear;
private _maxYear;
private createYears;
private createWeeks;
daysKeyDown(e: any): void;
ngOnInit(): void;
constructor(intl: InternationalizationService, cd: ChangeDetectorRef, el: ElementRef);
}