UNPKG

1.84 kBTypeScriptView Raw
1import { CalendarDateFormatterInterface, DateFormatterParams } from './calendar-date-formatter.interface';
2import { DateAdapter } from '../../date-adapters/date-adapter';
3/**
4 * This will use <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</a> API to do all date formatting.
5 *
6 * You will need to include a <a href="https://github.com/andyearnshaw/Intl.js/">polyfill</a> for older browsers.
7 */
8export declare class CalendarNativeDateFormatter implements CalendarDateFormatterInterface {
9 protected dateAdapter: DateAdapter;
10 constructor(dateAdapter: DateAdapter);
11 /**
12 * The month view header week day labels
13 */
14 monthViewColumnHeader({ date, locale }: DateFormatterParams): string;
15 /**
16 * The month view cell day number
17 */
18 monthViewDayNumber({ date, locale }: DateFormatterParams): string;
19 /**
20 * The month view title
21 */
22 monthViewTitle({ date, locale }: DateFormatterParams): string;
23 /**
24 * The week view header week day labels
25 */
26 weekViewColumnHeader({ date, locale }: DateFormatterParams): string;
27 /**
28 * The week view sub header day and month labels
29 */
30 weekViewColumnSubHeader({ date, locale, }: DateFormatterParams): string;
31 /**
32 * The week view title
33 */
34 weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }: DateFormatterParams): string;
35 /**
36 * The time formatting down the left hand side of the week view
37 */
38 weekViewHour({ date, locale }: DateFormatterParams): string;
39 /**
40 * The time formatting down the left hand side of the day view
41 */
42 dayViewHour({ date, locale }: DateFormatterParams): string;
43 /**
44 * The day view title
45 */
46 dayViewTitle({ date, locale }: DateFormatterParams): string;
47}