1 | import { NgbDate } from './ngb-date';
|
2 | import { NgbDateStruct } from './ngb-date-struct';
|
3 | import { DatepickerViewModel, NgbDayTemplateData, NgbMarkDisabled } from './datepicker-view-model';
|
4 | import { Observable } from 'rxjs';
|
5 | import { TranslationWidth } from '@angular/common';
|
6 | import * as i0 from "@angular/core";
|
7 | export type DatepickerServiceInputs = Partial<{
|
8 | dayTemplateData: NgbDayTemplateData;
|
9 | displayMonths: number;
|
10 | disabled: boolean;
|
11 | firstDayOfWeek: number;
|
12 | focusVisible: boolean;
|
13 | markDisabled: NgbMarkDisabled;
|
14 | maxDate: NgbDate | null;
|
15 | minDate: NgbDate | null;
|
16 | navigation: 'select' | 'arrows' | 'none';
|
17 | outsideDays: 'visible' | 'collapsed' | 'hidden';
|
18 | weekdays: TranslationWidth | boolean;
|
19 | }>;
|
20 | export declare class NgbDatepickerService {
|
21 | private _VALIDATORS;
|
22 | private _calendar;
|
23 | private _i18n;
|
24 | private _model$;
|
25 | private _dateSelect$;
|
26 | private _state;
|
27 | get model$(): Observable<DatepickerViewModel>;
|
28 | get dateSelect$(): Observable<NgbDate>;
|
29 | set(options: DatepickerServiceInputs): void;
|
30 | focus(date?: NgbDate | null): void;
|
31 | focusSelect(): void;
|
32 | open(date?: NgbDate | null): void;
|
33 | select(date?: NgbDate | null, options?: {
|
34 | emitEvent?: boolean;
|
35 | }): void;
|
36 | toValidDate(date?: NgbDateStruct | null, defaultValue?: NgbDate | null): NgbDate | null;
|
37 | getMonth(struct: NgbDateStruct): import("./datepicker-view-model").MonthViewModel;
|
38 | private _nextState;
|
39 | private _patchContexts;
|
40 | private _updateState;
|
41 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbDatepickerService, never>;
|
42 | static ɵprov: i0.ɵɵInjectableDeclaration<NgbDatepickerService>;
|
43 | }
|