1 | import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
2 | import { ControlValueAccessor } from '@angular/forms';
|
3 | import { Subscription } from 'rxjs';
|
4 | import { ControlValueAccessorModel } from './models';
|
5 | import { TimepickerActions } from './reducer/timepicker.actions';
|
6 | import { TimepickerStore } from './reducer/timepicker.store';
|
7 | import { TimepickerConfig } from './timepicker.config';
|
8 | import { TimeChangeSource, TimepickerComponentState, TimepickerControls } from './timepicker.models';
|
9 | import * as i0 from "@angular/core";
|
10 | export declare const TIMEPICKER_CONTROL_VALUE_ACCESSOR: ControlValueAccessorModel;
|
11 | export declare class TimepickerComponent implements ControlValueAccessor, TimepickerComponentState, TimepickerControls, OnChanges, OnDestroy {
|
12 | private _cd;
|
13 | private _store;
|
14 | private _timepickerActions;
|
15 |
|
16 | hourStep: number;
|
17 |
|
18 | minuteStep: number;
|
19 |
|
20 | secondsStep: number;
|
21 |
|
22 | readonlyInput: boolean;
|
23 |
|
24 | disabled: boolean;
|
25 |
|
26 | mousewheel: boolean;
|
27 |
|
28 | arrowkeys: boolean;
|
29 |
|
30 | showSpinners: boolean;
|
31 |
|
32 | showMeridian: boolean;
|
33 |
|
34 | showMinutes: boolean;
|
35 |
|
36 | showSeconds: boolean;
|
37 |
|
38 | meridians: string[];
|
39 |
|
40 | min?: Date;
|
41 |
|
42 | max?: Date;
|
43 |
|
44 | hoursPlaceholder: string;
|
45 |
|
46 | minutesPlaceholder: string;
|
47 |
|
48 | secondsPlaceholder: string;
|
49 |
|
50 | isValid: EventEmitter<boolean>;
|
51 |
|
52 | meridianChange: EventEmitter<string>;
|
53 | hours: string;
|
54 | minutes: string;
|
55 | seconds: string;
|
56 | meridian: string;
|
57 | invalidHours: boolean;
|
58 | invalidMinutes: boolean;
|
59 | invalidSeconds: boolean;
|
60 | labelHours: string;
|
61 | labelMinutes: string;
|
62 | labelSeconds: string;
|
63 | canIncrementHours: boolean;
|
64 | canIncrementMinutes: boolean;
|
65 | canIncrementSeconds: boolean;
|
66 | canDecrementHours: boolean;
|
67 | canDecrementMinutes: boolean;
|
68 | canDecrementSeconds: boolean;
|
69 | canToggleMeridian: boolean;
|
70 | onChange: Function;
|
71 | onTouched: Function;
|
72 | config: TimepickerConfig;
|
73 | timepickerSub?: Subscription;
|
74 | constructor(_config: TimepickerConfig, _cd: ChangeDetectorRef, _store: TimepickerStore, _timepickerActions: TimepickerActions);
|
75 | /** @deprecated - please use `isEditable` instead */
|
76 | get isSpinnersVisible(): boolean;
|
77 | get isEditable(): boolean;
|
78 | resetValidation(): void;
|
79 | isPM(): boolean;
|
80 | prevDef($event: Event): void;
|
81 | wheelSign($event: WheelEventInit): number;
|
82 | ngOnChanges(): void;
|
83 | changeHours(step: number, source?: TimeChangeSource): void;
|
84 | changeMinutes(step: number, source?: TimeChangeSource): void;
|
85 | changeSeconds(step: number, source?: TimeChangeSource): void;
|
86 | updateHours(target?: Partial<EventTarget> | null): void;
|
87 | updateMinutes(target: Partial<EventTarget> | null): void;
|
88 | updateSeconds(target: Partial<EventTarget> | null): void;
|
89 | isValidLimit(): boolean;
|
90 | isOneOfDatesIsEmpty(): boolean;
|
91 | _updateTime(): void;
|
92 | toggleMeridian(): void;
|
93 | /**
|
94 | * Write a new value to the element.
|
95 | */
|
96 | writeValue(obj?: string | Date): void;
|
97 | /**
|
98 | * Set the function to be called when the control receives a change event.
|
99 | */
|
100 | registerOnChange(fn: (_: any) => void): void;
|
101 | /**
|
102 | * Set the function to be called when the control receives a touch event.
|
103 | */
|
104 | registerOnTouched(fn: () => void): void;
|
105 | /**
|
106 | * This function is called when the control status changes to or from "disabled".
|
107 | * Depending on the value, it will enable or disable the appropriate DOM element.
|
108 | *
|
109 | * @param isDisabled
|
110 | */
|
111 | setDisabledState(isDisabled: boolean): void;
|
112 | ngOnDestroy(): void;
|
113 | private _renderTime;
|
114 | static ɵfac: i0.ɵɵFactoryDeclaration<TimepickerComponent, never>;
|
115 | static ɵcmp: i0.ɵɵComponentDeclaration<TimepickerComponent, "timepicker", never, { "hourStep": { "alias": "hourStep"; "required": false; }; "minuteStep": { "alias": "minuteStep"; "required": false; }; "secondsStep": { "alias": "secondsStep"; "required": false; }; "readonlyInput": { "alias": "readonlyInput"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "mousewheel": { "alias": "mousewheel"; "required": false; }; "arrowkeys": { "alias": "arrowkeys"; "required": false; }; "showSpinners": { "alias": "showSpinners"; "required": false; }; "showMeridian": { "alias": "showMeridian"; "required": false; }; "showMinutes": { "alias": "showMinutes"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "meridians": { "alias": "meridians"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "hoursPlaceholder": { "alias": "hoursPlaceholder"; "required": false; }; "minutesPlaceholder": { "alias": "minutesPlaceholder"; "required": false; }; "secondsPlaceholder": { "alias": "secondsPlaceholder"; "required": false; }; }, { "isValid": "isValid"; "meridianChange": "meridianChange"; }, never, never, false, never>;
|
116 | }
|