@clr/angular
Version:
Angular components for Clarity
41 lines (40 loc) • 1.63 kB
TypeScript
import { EventEmitter } from '@angular/core';
import { ClrCommonStringsService } from '../../utils/i18n/common-strings.service';
import { DayViewModel } from './model/day-view.model';
import { DayModel } from './model/day.model';
import { DateNavigationService } from './providers/date-navigation.service';
import * as i0 from "@angular/core";
export declare class ClrDay {
private _dateNavigationService;
private commonStrings;
onSelectDay: EventEmitter<DayModel>;
private _dayView;
constructor(_dateNavigationService: DateNavigationService, commonStrings: ClrCommonStringsService);
/**
* DayViewModel input which is used to build the Day View.
*/
get dayView(): DayViewModel;
set dayView(day: DayViewModel);
get dayString(): string;
get isRangeStartDay(): boolean;
get isRangeEndDay(): boolean;
/**
* Calls the DateNavigationService to update the hovered day value of the calendar
*/
hoverListener(): void;
/**
* Updates the focusedDay in the DateNavigationService when the ClrDay is focused.
*/
onDayViewFocus(): void;
/**
* Updates the selectedDay when the ClrDay is selected and closes the datepicker popover.
*/
selectDay(): void;
/**
* Applicable only to date range picker
* Compares whether the day is in between the start and end date range
*/
isInRange(): boolean;
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDay, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ClrDay, "clr-day", never, { "dayView": "clrDayView"; }, { "onSelectDay": "selectDay"; }, never, never, false, never>;
}