1 | import { DateAdapter } from '@angular/material/core';
|
2 | import * as i0 from '@angular/core';
|
3 | import { InjectionToken } from '@angular/core';
|
4 | import { MatDateFormats } from '@angular/material/core';
|
5 | import { Moment } from 'moment';
|
6 | import { Provider } from '@angular/core';
|
7 |
|
8 |
|
9 | export declare const MAT_MOMENT_DATE_ADAPTER_OPTIONS: InjectionToken<MatMomentDateAdapterOptions>;
|
10 |
|
11 |
|
12 | export declare function MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY(): MatMomentDateAdapterOptions;
|
13 |
|
14 | export declare const MAT_MOMENT_DATE_FORMATS: MatDateFormats;
|
15 |
|
16 |
|
17 | export declare interface MatMomentDateAdapterOptions {
|
18 | |
19 |
|
20 |
|
21 |
|
22 | strict?: boolean;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | useUtc?: boolean;
|
29 | }
|
30 |
|
31 | export declare class MatMomentDateModule {
|
32 | static ɵfac: i0.ɵɵFactoryDeclaration<MatMomentDateModule, never>;
|
33 | static ɵmod: i0.ɵɵNgModuleDeclaration<MatMomentDateModule, never, never, never>;
|
34 | static ɵinj: i0.ɵɵInjectorDeclaration<MatMomentDateModule>;
|
35 | }
|
36 |
|
37 |
|
38 | export declare class MomentDateAdapter extends DateAdapter<Moment> {
|
39 | private _options;
|
40 | private _localeData;
|
41 | constructor(...args: unknown[]);
|
42 | setLocale(locale: string): void;
|
43 | getYear(date: Moment): number;
|
44 | getMonth(date: Moment): number;
|
45 | getDate(date: Moment): number;
|
46 | getDayOfWeek(date: Moment): number;
|
47 | getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
48 | getDateNames(): string[];
|
49 | getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
50 | getYearName(date: Moment): string;
|
51 | getFirstDayOfWeek(): number;
|
52 | getNumDaysInMonth(date: Moment): number;
|
53 | clone(date: Moment): Moment;
|
54 | createDate(year: number, month: number, date: number): Moment;
|
55 | today(): Moment;
|
56 | parse(value: any, parseFormat: string | string[]): Moment | null;
|
57 | format(date: Moment, displayFormat: string): string;
|
58 | addCalendarYears(date: Moment, years: number): Moment;
|
59 | addCalendarMonths(date: Moment, months: number): Moment;
|
60 | addCalendarDays(date: Moment, days: number): Moment;
|
61 | toIso8601(date: Moment): string;
|
62 | /**
|
63 | * Returns the given value if given a valid Moment or null. Deserializes valid ISO 8601 strings
|
64 | * (https:
|
65 | * string into null. Returns an invalid date for all other values.
|
66 | */
|
67 | deserialize(value: any): Moment | null;
|
68 | isDateInstance(obj: any): boolean;
|
69 | isValid(date: Moment): boolean;
|
70 | invalid(): Moment;
|
71 | setTime(target: Moment, hours: number, minutes: number, seconds: number): Moment;
|
72 | getHours(date: Moment): number;
|
73 | getMinutes(date: Moment): number;
|
74 | getSeconds(date: Moment): number;
|
75 | parseTime(value: any, parseFormat: string | string[]): Moment | null;
|
76 | addSeconds(date: Moment, amount: number): Moment;
|
77 |
|
78 | private _createMoment;
|
79 | static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateAdapter, never>;
|
80 | static ɵprov: i0.ɵɵInjectableDeclaration<MomentDateAdapter>;
|
81 | }
|
82 |
|
83 | export declare class MomentDateModule {
|
84 | static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateModule, never>;
|
85 | static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateModule, never, never, never>;
|
86 | static ɵinj: i0.ɵɵInjectorDeclaration<MomentDateModule>;
|
87 | }
|
88 |
|
89 | export declare function provideMomentDateAdapter(formats?: MatDateFormats, options?: MatMomentDateAdapterOptions): Provider[];
|
90 |
|
91 | export { }
|
92 |
|
\ | No newline at end of file |