UNPKG

2.04 kBTypeScriptView Raw
1import { CalendarDateFormatterInterface, DateFormatterParams } from './calendar-date-formatter.interface';
2import { DateAdapter } from '../../date-adapters/date-adapter';
3import * as i0 from "@angular/core";
4/**
5 * 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.
6 *
7 * You will need to include a <a href="https://github.com/andyearnshaw/Intl.js/">polyfill</a> for older browsers.
8 */
9export declare class CalendarNativeDateFormatter implements CalendarDateFormatterInterface {
10 protected dateAdapter: DateAdapter;
11 constructor(dateAdapter: DateAdapter);
12 /**
13 * The month view header week day labels
14 */
15 monthViewColumnHeader({ date, locale }: DateFormatterParams): string;
16 /**
17 * The month view cell day number
18 */
19 monthViewDayNumber({ date, locale }: DateFormatterParams): string;
20 /**
21 * The month view title
22 */
23 monthViewTitle({ date, locale }: DateFormatterParams): string;
24 /**
25 * The week view header week day labels
26 */
27 weekViewColumnHeader({ date, locale }: DateFormatterParams): string;
28 /**
29 * The week view sub header day and month labels
30 */
31 weekViewColumnSubHeader({ date, locale, }: DateFormatterParams): string;
32 /**
33 * The week view title
34 */
35 weekViewTitle({ date, locale, weekStartsOn, excludeDays, daysInWeek, }: DateFormatterParams): string;
36 /**
37 * The time formatting down the left hand side of the week view
38 */
39 weekViewHour({ date, locale }: DateFormatterParams): string;
40 /**
41 * The time formatting down the left hand side of the day view
42 */
43 dayViewHour({ date, locale }: DateFormatterParams): string;
44 /**
45 * The day view title
46 */
47 dayViewTitle({ date, locale }: DateFormatterParams): string;
48 static ɵfac: i0.ɵɵFactoryDeclaration<CalendarNativeDateFormatter, never>;
49 static ɵprov: i0.ɵɵInjectableDeclaration<CalendarNativeDateFormatter>;
50}