UNPKG

4.03 kBTypeScriptView Raw
1import { ComponentFactoryResolver, EventEmitter, OnInit, Type } from '@angular/core';
2import { Observable } from 'rxjs';
3import { NbBooleanInput } from '../helpers';
4import { NbPositionBuilderService } from '../cdk/overlay/overlay-position';
5import { NbTriggerStrategyBuilderService } from '../cdk/overlay/overlay-trigger';
6import { NbOverlayService } from '../cdk/overlay/overlay-service';
7import { NbCalendarTimeModelService } from '../calendar-kit/services/calendar-time-model.service';
8import { NbDateService } from '../calendar-kit/services/date.service';
9import { NbCalendarWithTimeComponent } from './calendar-with-time.component';
10import { NbBasePickerComponent } from './datepicker.component';
11import * as i0 from "@angular/core";
12/**
13 * The DateTimePicker component itself.
14 * Provides a proxy to `NbCalendarWithTimeComponent` options as well as custom picker options.
15 */
16export declare class NbDateTimePickerComponent<D> extends NbBasePickerComponent<D, D, NbCalendarWithTimeComponent<D>> implements OnInit {
17 protected calendarWithTimeModelService: NbCalendarTimeModelService<D>;
18 protected pickerClass: Type<NbCalendarWithTimeComponent<D>>;
19 get value(): any;
20 set value(date: any);
21 /**
22 * Defines minutes step when we use fill time format.
23 * If set to 20, it will be: '12:00, 12:20: 12:40, 13:00...'
24 * */
25 step: number;
26 title: string;
27 applyButtonText: string;
28 currentTimeButtonText: string;
29 showCurrentTimeButton: boolean;
30 /**
31 * Defines 12 hours format like '07:00 PM'.
32 * */
33 get twelveHoursFormat(): boolean;
34 set twelveHoursFormat(value: boolean);
35 _twelveHoursFormat: boolean;
36 static ngAcceptInputType_twelveHoursFormat: NbBooleanInput;
37 /**
38 * Defines should show am/pm label if twelveHoursFormat enabled.
39 * */
40 get showAmPmLabel(): boolean;
41 set showAmPmLabel(value: boolean);
42 protected _showAmPmLabel: boolean;
43 static ngAcceptInputType_showAmPmLabel: NbBooleanInput;
44 /**
45 * Show seconds in timepicker.
46 * Ignored when singleColumn is true.
47 * */
48 get withSeconds(): boolean;
49 set withSeconds(value: boolean);
50 _withSeconds: boolean;
51 static ngAcceptInputType_withSeconds: NbBooleanInput;
52 /**
53 * Show timepicker values in one column with 60 minutes step by default.
54 * */
55 get singleColumn(): boolean;
56 set singleColumn(value: boolean);
57 _singleColumn: boolean;
58 static ngAcceptInputType_singleColumn: NbBooleanInput;
59 /**
60 * Emits date with time when selected.
61 * */
62 get dateTimeChange(): EventEmitter<D>;
63 constructor(document: any, positionBuilder: NbPositionBuilderService, triggerStrategyBuilder: NbTriggerStrategyBuilderService, overlay: NbOverlayService, cfr: ComponentFactoryResolver, dateService: NbDateService<D>, dateServiceOptions: any, calendarWithTimeModelService: NbCalendarTimeModelService<D>);
64 ngOnInit(): void;
65 protected patchWithInputs(): void;
66 protected get pickerValueChange(): Observable<any>;
67 protected writeQueue(): void;
68 protected buildTimeFormat(): string;
69 static ɵfac: i0.ɵɵFactoryDeclaration<NbDateTimePickerComponent<any>, [null, null, null, null, null, null, { optional: true; }, null]>;
70 static ɵcmp: i0.ɵɵComponentDeclaration<NbDateTimePickerComponent<any>, "nb-date-timepicker", never, { "step": { "alias": "step"; "required": false; }; "title": { "alias": "title"; "required": false; }; "applyButtonText": { "alias": "applyButtonText"; "required": false; }; "currentTimeButtonText": { "alias": "currentTimeButtonText"; "required": false; }; "showCurrentTimeButton": { "alias": "showCurrentTimeButton"; "required": false; }; "twelveHoursFormat": { "alias": "twelveHoursFormat"; "required": false; }; "showAmPmLabel": { "alias": "showAmPmLabel"; "required": false; }; "withSeconds": { "alias": "withSeconds"; "required": false; }; "singleColumn": { "alias": "singleColumn"; "required": false; }; }, { "dateTimeChange": "dateTimeChange"; }, never, never, false, never>;
71}