angular-calendar
Version:
A calendar component for angular 15.0+ that can display events on a month, week or day view
51 lines (50 loc) • 2.07 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 <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</a> API to do all date formatting.
*
* You will need to include a <a href="https://github.com/andyearnshaw/Intl.js/">polyfill</a> for older browsers.
*/
export declare class CalendarNativeDateFormatter 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<CalendarNativeDateFormatter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarNativeDateFormatter>;
}