UNPKG

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