ng-zorro-antd-yj
Version:
An enterprise-class UI components based on Ant Design and Angular
56 lines (55 loc) • 2 kB
TypeScript
import { CdkOverlayOrigin, ConnectionPositionPair } from '@angular/cdk/overlay';
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, Renderer2, TemplateRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { NzUpdateHostClassService as UpdateCls } from '../core/services/update-host-class.service';
export declare class NzTimePickerComponent implements ControlValueAccessor, OnInit, AfterViewInit {
private element;
private renderer;
private updateCls;
cdr: ChangeDetectorRef;
private _disabled;
private _value;
private _allowEmpty;
private _autoFocus;
private _onChange;
private _onTouched;
private _hideDisabledOptions;
isInit: boolean;
origin: CdkOverlayOrigin;
overlayPositions: ConnectionPositionPair[];
inputRef: ElementRef;
nzSize: string | null;
nzHourStep: number;
nzMinuteStep: number;
nzSecondStep: number;
nzClearText: string;
nzPopupClassName: string;
nzPlaceHolder: string;
nzAddOn: TemplateRef<void>;
nzDefaultOpenValue: Date;
nzDisabledHours: () => number[];
nzDisabledMinutes: (hour: number) => number[];
nzDisabledSeconds: (hour: number, minute: number) => number[];
nzFormat: string;
nzOpen: boolean;
readonly nzOpenChange: EventEmitter<boolean>;
nzHideDisabledOptions: boolean;
nzAllowEmpty: boolean;
nzAutoFocus: boolean;
nzDisabled: boolean | string;
value: Date | null;
open(): void;
close(): void;
updateAutoFocus(): void;
onClickClearBtn(): void;
private setClassMap;
focus(): void;
blur(): void;
constructor(element: ElementRef, renderer: Renderer2, updateCls: UpdateCls, cdr: ChangeDetectorRef);
ngOnInit(): void;
ngAfterViewInit(): void;
writeValue(time: Date | null): void;
registerOnChange(fn: (time: Date | null) => void): void;
registerOnTouched(fn: () => void): void;
setDisabledState(isDisabled: boolean): void;
}