UNPKG

1.68 kBTypeScriptView Raw
1import { CalendarDateFormatterInterface, DateFormatterParams } from './calendar-date-formatter.interface';
2import { DateAdapter } from '../../date-adapters/date-adapter';
3/**
4 * This will use the angular date pipe to do all date formatting. It is the default date formatter used by the calendar.
5 */
6export declare class CalendarAngularDateFormatter implements CalendarDateFormatterInterface {
7 protected dateAdapter: DateAdapter;
8 constructor(dateAdapter: DateAdapter);
9 /**
10 * The month view header week day labels
11 */
12 monthViewColumnHeader({ date, locale }: DateFormatterParams): string;
13 /**
14 * The month view cell day number
15 */
16 monthViewDayNumber({ date, locale }: DateFormatterParams): string;
17 /**
18 * The month view title
19 */
20 monthViewTitle({ date, locale }: DateFormatterParams): string;
21 /**
22 * The week view header week day labels
23 */
24 weekViewColumnHeader({ date, locale }: DateFormatterParams): string;
25 /**
26 * The week view sub header day and month labels
27 */
28 weekViewColumnSubHeader({ date, locale, }: DateFormatterParams): string;
29 /**
30 * The week view title
31 */
32 weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }: DateFormatterParams): string;
33 /**
34 * The time formatting down the left hand side of the week view
35 */
36 weekViewHour({ date, locale }: DateFormatterParams): string;
37 /**
38 * The time formatting down the left hand side of the day view
39 */
40 dayViewHour({ date, locale }: DateFormatterParams): string;
41 /**
42 * The day view title
43 */
44 dayViewTitle({ date, locale }: DateFormatterParams): string;
45}