ngx-bootstrap
Version:
Angular Bootstrap
1 lines • 5.14 kB
Source Map (JSON)
{"version":3,"file":"timepicker.component.d.ts","sources":["timepicker.component.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';\nimport { ControlValueAccessor } from '@angular/forms';\nimport { Subscription } from 'rxjs';\nimport { ControlValueAccessorModel } from './models';\nimport { TimepickerActions } from './reducer/timepicker.actions';\nimport { TimepickerStore } from './reducer/timepicker.store';\nimport { TimepickerConfig } from './timepicker.config';\nimport { TimeChangeSource, TimepickerComponentState, TimepickerControls } from './timepicker.models';\nexport declare const TIMEPICKER_CONTROL_VALUE_ACCESSOR: ControlValueAccessorModel;\nexport declare class TimepickerComponent implements ControlValueAccessor, TimepickerComponentState, TimepickerControls, OnChanges, OnDestroy {\n private _cd;\n private _store;\n private _timepickerActions;\n /** hours change step */\n hourStep: number;\n /** minutes change step */\n minuteStep: number;\n /** seconds change step */\n secondsStep: number;\n /** if true hours and minutes fields will be readonly */\n readonlyInput: boolean;\n /** if true hours and minutes fields will be disabled */\n disabled: boolean;\n /** if true scroll inside hours and minutes inputs will change time */\n mousewheel: boolean;\n /** if true the values of hours and minutes can be changed using the up/down arrow keys on the keyboard */\n arrowkeys: boolean;\n /** if true spinner arrows above and below the inputs will be shown */\n showSpinners: boolean;\n /** if true meridian button will be shown */\n showMeridian: boolean;\n /** show minutes in timepicker */\n showMinutes: boolean;\n /** show seconds in timepicker */\n showSeconds: boolean;\n /** meridian labels based on locale */\n meridians: string[];\n /** minimum time user can select */\n min?: Date;\n /** maximum time user can select */\n max?: Date;\n /** placeholder for hours field in timepicker */\n hoursPlaceholder: string;\n /** placeholder for minutes field in timepicker */\n minutesPlaceholder: string;\n /** placeholder for seconds field in timepicker */\n secondsPlaceholder: string;\n /** emits true if value is a valid date */\n isValid: EventEmitter<boolean>;\n hours: string;\n minutes: string;\n seconds: string;\n meridian: string;\n invalidHours: boolean;\n invalidMinutes: boolean;\n invalidSeconds: boolean;\n labelHours: string;\n labelMinutes: string;\n labelSeconds: string;\n canIncrementHours: boolean;\n canIncrementMinutes: boolean;\n canIncrementSeconds: boolean;\n canDecrementHours: boolean;\n canDecrementMinutes: boolean;\n canDecrementSeconds: boolean;\n canToggleMeridian: boolean;\n onChange: Function;\n onTouched: Function;\n timepickerSub: Subscription;\n constructor(_config: TimepickerConfig, _cd: ChangeDetectorRef, _store: TimepickerStore, _timepickerActions: TimepickerActions);\n /** @deprecated - please use `isEditable` instead */\n get isSpinnersVisible(): boolean;\n get isEditable(): boolean;\n resetValidation(): void;\n isPM(): boolean;\n prevDef($event: Event): void;\n wheelSign($event: WheelEventInit): number;\n ngOnChanges(): void;\n changeHours(step: number, source?: TimeChangeSource): void;\n changeMinutes(step: number, source?: TimeChangeSource): void;\n changeSeconds(step: number, source?: TimeChangeSource): void;\n updateHours(target?: Partial<EventTarget> | null): void;\n updateMinutes(target: Partial<EventTarget> | null): void;\n updateSeconds(target: Partial<EventTarget> | null): void;\n isValidLimit(): boolean;\n _updateTime(): void;\n toggleMeridian(): void;\n /**\n * Write a new value to the element.\n */\n writeValue(obj?: string | Date): void;\n /**\n * Set the function to be called when the control receives a change event.\n */\n registerOnChange(fn: (_: any) => void): void;\n /**\n * Set the function to be called when the control receives a touch event.\n */\n registerOnTouched(fn: () => void): void;\n /**\n * This function is called when the control status changes to or from \"disabled\".\n * Depending on the value, it will enable or disable the appropriate DOM element.\n *\n * @param isDisabled\n */\n setDisabledState(isDisabled: boolean): void;\n ngOnDestroy(): void;\n private _renderTime;\n}\n"]}