UNPKG

fundamental-ngx

Version:

SAP Fiori Fundamentals, implemented in Angular

82 lines (81 loc) 2.76 kB
import { EventEmitter, OnChanges } from '@angular/core'; import { TimeObject } from './time-object'; import { ControlValueAccessor } from '@angular/forms'; export declare class TimeComponent implements OnChanges, ControlValueAccessor { /** @Input When set to true, uses the 24 hour clock (hours ranging from 0 to 23) * and does not display a period control. */ meridian: boolean; /** @Input When set to false, does not set the input field to invalid state on invalid entry. */ validate: boolean; /** @Input Disables the component. */ disabled: boolean; /** @Input When set to false, hides the buttons that increment and decrement the corresponding input. */ spinners: boolean; /** @Input When set to false, hides the input for seconds. */ displaySeconds: boolean; /** * @Input An object that contains three integer properties: 'hour' (ranging from 0 to 23), * 'minute' (ranging from 0 to 59), and 'second' (ranging from 0 to 59). This is the model the component consumes. Example: * * ```json * { hour: 12, minute: 0, second: 0 } * ``` * */ time: TimeObject; /** @hidden */ isDateTimePicker: boolean; /** @hidden */ focusArrowLeft: EventEmitter<any>; /** @hidden */ period: string; /** @hidden */ oldPeriod: string; /** @hidden */ periodInvalid: boolean; /** @hidden */ displayedHour: number; /** @hidden */ setDisplayedHour(): void; /** @hidden */ onChange: (time: TimeObject) => void; /** @hidden */ onTouched: () => void; /** @hidden */ displayedHourChanged(): void; /** @hidden */ inputBlur(inputType: any): void; /** @hidden */ ngOnChanges(): void; /** Increases the hour value by one. */ increaseHour(): void; /** Decreases the hour value by one. */ decreaseHour(): void; /** Increases the minute value by one. */ increaseMinute(): void; /** Decreases the minute value by one. */ decreaseMinute(): void; /** Increases the second value by one. */ increaseSecond(): void; /** Decreases the second value by one. */ decreaseSecond(): void; /** Toggles the period (am/pm). */ togglePeriod(): void; /** @hidden */ hourModelChange(): void; /** @hidden */ minuteModelChange(): void; /** @hidden */ secondModelChange(): void; /** @hidden */ periodModelChange(): void; /** @hidden */ registerOnChange(fn: (time: TimeObject) => void): void; /** @hidden */ registerOnTouched(fn: any): void; /** @hidden */ setDisabledState(isDisabled: boolean): void; /** @hidden */ writeValue(time: TimeObject): void; /** @hidden */ lastButtonKeydown(event: any): void; }