cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
34 lines (33 loc) • 1.6 kB
TypeScript
import { DateAdapter } from '@angular/material/core';
import dayjs from 'dayjs';
import 'dayjs/locale/pt-br';
import * as i0 from "@angular/core";
export declare class DayjsDateAdapter extends DateAdapter<dayjs.Dayjs> {
locale: string;
constructor(locale: string);
getYear(date: dayjs.Dayjs): number;
getMonth(date: dayjs.Dayjs): number;
getDate(date: dayjs.Dayjs): number;
getDayOfWeek(date: dayjs.Dayjs): number;
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
getDateNames(): string[];
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
getYearName(date: dayjs.Dayjs): string;
getFirstDayOfWeek(): number;
getNumDaysInMonth(date: dayjs.Dayjs): number;
clone(date: dayjs.Dayjs): dayjs.Dayjs;
createDate(year: number, month: number, date: number): dayjs.Dayjs;
today(): dayjs.Dayjs;
parse(value: unknown, parseFormat: string | string[] | undefined): dayjs.Dayjs | null;
format(date: dayjs.Dayjs, displayFormat: string | undefined): string;
addCalendarYears(date: dayjs.Dayjs, years: number): dayjs.Dayjs;
addCalendarMonths(date: dayjs.Dayjs, months: number): dayjs.Dayjs;
addCalendarDays(date: dayjs.Dayjs, days: number): dayjs.Dayjs;
toIso8601(date: dayjs.Dayjs): string;
deserialize(value: unknown): dayjs.Dayjs | null;
isDateInstance(obj: unknown): boolean;
isValid(date: dayjs.Dayjs): boolean;
invalid(): dayjs.Dayjs;
static ɵfac: i0.ɵɵFactoryDeclaration<DayjsDateAdapter, [{ optional: true; }]>;
static ɵprov: i0.ɵɵInjectableDeclaration<DayjsDateAdapter>;
}