UNPKG

3.19 kBTypeScriptView Raw
1import { AfterViewInit, ChangeDetectorRef, OnInit } from '@angular/core';
2import { NbCalendarComponent } from '../calendar/calendar.component';
3import { NbSelectedTimePayload } from '../timepicker/model';
4import { NbDateService } from '../calendar-kit/services/date.service';
5import { NbCalendarTimeModelService } from '../calendar-kit/services/calendar-time-model.service';
6import { NbPortalOutletDirective } from '../cdk/overlay/mapping';
7import { NbTimePickerComponent } from '../timepicker/timepicker.component';
8import * as i0 from "@angular/core";
9export declare class NbCalendarWithTimeComponent<D> extends NbCalendarComponent<D> implements OnInit, AfterViewInit {
10 protected dateService: NbDateService<D>;
11 cd: ChangeDetectorRef;
12 protected calendarTimeModelService: NbCalendarTimeModelService<D>;
13 /**
14 * Defines selected date.
15 * */
16 visibleDate: D;
17 /**
18 * Defines 12 hours format like '07:00 PM'.
19 * */
20 twelveHoursFormat: boolean;
21 /**
22 * Defines should show am/pm label if twelveHoursFormat enabled.
23 * */
24 showAmPmLabel: boolean;
25 /**
26 * Show seconds in timepicker.
27 * Ignored when singleColumn is true.
28 * */
29 withSeconds: boolean;
30 /**
31 * Show timepicker values in one column with 60 minutes step by default.
32 * */
33 singleColumn: boolean;
34 /**
35 * Defines minutes step when we use fill time format.
36 * If set to 20, it will be: '12:00, 12:20: 12:40, 13:00...'
37 * */
38 step: number;
39 /**
40 * Defines time format.
41 * */
42 timeFormat: string;
43 /**
44 * Defines text over the timepicker.
45 * */
46 title: string;
47 applyButtonText: string;
48 currentTimeButtonText: string;
49 showCurrentTimeButton: boolean;
50 portalOutlet: NbPortalOutletDirective;
51 timepicker: NbTimePickerComponent<D>;
52 constructor(dateService: NbDateService<D>, cd: ChangeDetectorRef, calendarTimeModelService: NbCalendarTimeModelService<D>);
53 ngOnInit(): void;
54 ngAfterViewInit(): void;
55 onDateValueChange(date: D): void;
56 onTimeChange(selectedTime: NbSelectedTimePayload<D>): void;
57 saveValue(): void;
58 saveCurrentTime(): void;
59 showSeconds(): boolean;
60 isLarge(): boolean;
61 static ɵfac: i0.ɵɵFactoryDeclaration<NbCalendarWithTimeComponent<any>, never>;
62 static ɵcmp: i0.ɵɵComponentDeclaration<NbCalendarWithTimeComponent<any>, "nb-calendar-with-time", never, { "visibleDate": { "alias": "visibleDate"; "required": false; }; "twelveHoursFormat": { "alias": "twelveHoursFormat"; "required": false; }; "showAmPmLabel": { "alias": "showAmPmLabel"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "singleColumn": { "alias": "singleColumn"; "required": false; }; "step": { "alias": "step"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "title": { "alias": "title"; "required": false; }; "applyButtonText": { "alias": "applyButtonText"; "required": false; }; "currentTimeButtonText": { "alias": "currentTimeButtonText"; "required": false; }; "showCurrentTimeButton": { "alias": "showCurrentTimeButton"; "required": false; }; }, {}, never, never, false, never>;
63}