UNPKG

@dhutaryan/ngx-mat-timepicker

Version:

Angular timepicker to add time which is based on material design and Angular material.

37 lines (36 loc) 1.76 kB
import { OnInit, OnDestroy, NgZone, ElementRef, ChangeDetectorRef } from '@angular/core'; import { TimeAdapter } from './adapter'; import { MatTimeFaceBase } from './time-face-base'; import { MatTimepickerIntl } from './timepicker-intl'; import { TimepickerOrientation } from './orientation'; import * as i0 from "@angular/core"; export type MatDialView = 'hours' | 'minutes'; export declare class MatClockDials<T> extends MatTimeFaceBase<T> implements OnInit, OnDestroy { _intl: MatTimepickerIntl; private _ngZone; private _elementRef; private _cdr; /** Layout orientation. */ orientation: TimepickerOrientation; /** Whether the timepicker UI is in touch mode. */ touchUi: boolean; isHoursView: boolean; /** Specifies the view of clock dial. */ private readonly _view; private _viewSubscription; constructor(_intl: MatTimepickerIntl, _timeAdapter: TimeAdapter<T>, _ngZone: NgZone, _elementRef: ElementRef, _cdr: ChangeDetectorRef); ngOnInit(): void; ngOnDestroy(): void; /** Changes clock dial view. */ onViewChange(event: Event, view: MatDialView): void; focusActiveCell(): void; _withZeroPrefix(value: number): string; _onMinuteSelected(minute: number): void; /** Handles hour selection. */ _onHourChanged({ hour, changeView, }: { hour: number; changeView?: boolean; }): void; static ɵfac: i0.ɵɵFactoryDeclaration<MatClockDials<any>, [null, { optional: true; }, null, null, null]>; static ɵcmp: i0.ɵɵComponentDeclaration<MatClockDials<any>, "mat-clock-dials", ["matClockDials"], { "orientation": { "alias": "orientation"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; }, {}, never, never, true, never>; }