angular-calendar
Version:
A calendar component for angular 15.0+ that can display events on a month, week or day view
49 lines (48 loc) • 1.91 kB
TypeScript
import { CalendarDateFormatterInterface, DateFormatterParams } from '../calendar-date-formatter/calendar-date-formatter.interface';
import { DateAdapter } from '../../../date-adapters/date-adapter';
import * as i0 from "@angular/core";
/**
* This will use the angular date pipe to do all date formatting. It is the default date formatter used by the calendar.
*/
export declare class CalendarAngularDateFormatter implements CalendarDateFormatterInterface {
protected dateAdapter: DateAdapter;
constructor(dateAdapter: DateAdapter);
/**
* The month view header week day labels
*/
monthViewColumnHeader({ date, locale }: DateFormatterParams): string;
/**
* The month view cell day number
*/
monthViewDayNumber({ date, locale }: DateFormatterParams): string;
/**
* The month view title
*/
monthViewTitle({ date, locale }: DateFormatterParams): string;
/**
* The week view header week day labels
*/
weekViewColumnHeader({ date, locale }: DateFormatterParams): string;
/**
* The week view sub header day and month labels
*/
weekViewColumnSubHeader({ date, locale, }: DateFormatterParams): string;
/**
* The week view title
*/
weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }: DateFormatterParams): string;
/**
* The time formatting down the left hand side of the week view
*/
weekViewHour({ date, locale }: DateFormatterParams): string;
/**
* The time formatting down the left hand side of the day view
*/
dayViewHour({ date, locale }: DateFormatterParams): string;
/**
* The day view title
*/
dayViewTitle({ date, locale }: DateFormatterParams): string;
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarAngularDateFormatter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarAngularDateFormatter>;
}