angular-calendar
Version:
A calendar component for angular 15.0+ that can display events on a month, week or day view
68 lines (67 loc) • 2.41 kB
TypeScript
import { InjectionToken } from '@angular/core';
import { CalendarDateFormatterInterface, DateFormatterParams } from '../calendar-date-formatter/calendar-date-formatter.interface';
import { DateAdapter } from '../../../date-adapters/date-adapter';
import * as i0 from "@angular/core";
export declare const MOMENT: InjectionToken<string>;
/**
* This will use <a href="http://momentjs.com/" target="_blank">moment</a> to do all date formatting. To use this class:
*
* ```typescript
* import { CalendarDateFormatter, CalendarMomentDateFormatter, MOMENT } from 'angular-calendar';
* import moment from 'moment';
*
* // in your component
* provide: [{
* provide: MOMENT, useValue: moment
* }, {
* provide: CalendarDateFormatter, useClass: CalendarMomentDateFormatter
* }]
*
* ```
*/
export declare class CalendarMomentDateFormatter implements CalendarDateFormatterInterface {
protected moment: any;
protected dateAdapter: DateAdapter;
/**
* @hidden
*/
constructor(moment: any, 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<CalendarMomentDateFormatter, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CalendarMomentDateFormatter>;
}