nxt-pick-datetime 22.0.0 → 22.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1200 +1,1621 @@
1
- import * as _angular_core from '@angular/core';
2
- import { InjectionToken, Signal, OutputEmitterRef, OnInit, OnDestroy, AfterContentInit, ElementRef } from '@angular/core';
3
- import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
4
- import * as nxt_pick_datetime from 'nxt-pick-datetime';
5
- import { ScrollStrategy } from '@angular/cdk/overlay';
6
-
7
- declare abstract class DateTimeAdapter<T> {
8
- /** The locale to use for all dates */
9
- protected readonly locale: _angular_core.WritableSignal<any>;
10
- /** total milliseconds in a day */
11
- protected readonly millisecondsInDay = 86400000;
12
- /** total milliseconds in a minute */
13
- protected readonly milliseondsInMinute = 60000;
14
- /**
15
- * Get the year of the given date
16
- */
17
- abstract getYear(date?: T): number;
18
- /**
19
- * Get the month of the given date
20
- * 0 -- January
21
- * 11 -- December
22
- * */
23
- abstract getMonth(date?: T): number;
24
- /**
25
- * Get the day of the week of the given date
26
- * 0 -- Sunday
27
- * 6 -- Saturday
28
- * */
29
- abstract getDay(date?: T): number;
30
- /**
31
- * Get the day num of the given date
32
- */
33
- abstract getDate(date?: T): number;
34
- /**
35
- * Get the hours of the given date
36
- */
37
- abstract getHours(date?: T): number;
38
- /**
39
- * Get the minutes of the given date
40
- */
41
- abstract getMinutes(date?: T): number;
42
- /**
43
- * Get the seconds of the given date
44
- */
45
- abstract getSeconds(date?: T): number;
46
- /**
47
- * Get the milliseconds timestamp of the given date
48
- */
49
- abstract getTime(date?: T): number;
50
- /**
51
- * Gets the number of days in the month of the given date.
52
- */
53
- abstract getNumDaysInMonth(date?: T): number;
54
- /**
55
- * Get the number of calendar days between the given dates.
56
- * If dateLeft is before dateRight, it would return positive value
57
- * If dateLeft is after dateRight, it would return negative value
58
- */
59
- abstract differenceInCalendarDays(dateLeft?: T, dateRight?: T): number | undefined;
60
- /**
61
- * Gets the name for the year of the given date.
62
- */
63
- abstract getYearName(date?: T): string;
64
- /**
65
- * Get a list of month names
66
- */
67
- abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
68
- /**
69
- * Get a list of week names
70
- */
71
- abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
72
- /**
73
- * Gets a list of names for the dates of the month.
74
- */
75
- abstract getDateNames(): string[];
76
- /**
77
- * Return a Date object as a string, using the ISO standard
78
- */
79
- abstract toIso8601(date: T): string;
80
- /**
81
- * Check if the give dates are equal
82
- */
83
- abstract isEqual(dateLeft?: T, dateRight?: T): boolean;
84
- /**
85
- * Check if the give dates are the same day
86
- */
87
- abstract isSameDay(dateLeft?: T, dateRight?: T): boolean;
88
- /**
89
- * Checks whether the given date is valid.
90
- */
91
- abstract isValid(date?: T): boolean;
92
- /**
93
- * Gets date instance that is not valid.
94
- */
95
- abstract invalid(): T;
96
- /**
97
- * Checks whether the given object is considered a date instance by this DateTimeAdapter.
98
- */
99
- abstract isDateInstance(obj: any): boolean;
100
- /**
101
- * Add the specified number of years to the given date
102
- */
103
- abstract addCalendarYears(date: T | undefined, amount: number): T;
104
- /**
105
- * Add the specified number of months to the given date
106
- */
107
- abstract addCalendarMonths(date: T | undefined, amount: number): T;
108
- /**
109
- * Add the specified number of days to the given date
110
- */
111
- abstract addCalendarDays(date: T | undefined, amount: number): T;
112
- /**
113
- * Set the hours to the given date.
114
- */
115
- abstract setHours(date: T | undefined, amount: number): T;
116
- /**
117
- * Set the minutes to the given date.
118
- */
119
- abstract setMinutes(date: T | undefined, amount: number): T;
120
- /**
121
- * Set the seconds to the given date.
122
- */
123
- abstract setSeconds(date: T | undefined, amount: number): T;
124
- /**
125
- * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
126
- * month and date.
127
- */
128
- abstract createDate(year: number, month: number, date: number): T;
129
- abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
130
- /**
131
- * Clone the given date
132
- */
133
- abstract clone(date?: T): T;
134
- /**
135
- * Get a new moment
136
- * */
137
- abstract now(): T;
138
- /**
139
- * Formats a date as a string according to the given format.
140
- */
141
- abstract format(date: T | undefined, displayFormat: any): string;
142
- /**
143
- * Parse a user-provided value to a Date Object
144
- */
145
- abstract parse(value: any, parseFormat: any): T | undefined;
146
- /**
147
- * Compare two given dates
148
- * 1 if the first date is after the second,
149
- * -1 if the first date is before the second
150
- * 0 if dates are equal.
151
- * */
152
- compare(first?: T, second?: T): number;
153
- /**
154
- * Check if two given dates are in the same year
155
- * 1 if the first date's year is after the second,
156
- * -1 if the first date's year is before the second
157
- * 0 if two given dates are in the same year
158
- * */
159
- compareYear(first?: T, second?: T): number;
160
- /**
161
- * Attempts to deserialize a value to a valid date object. This is different from parsing in that
162
- * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
163
- * string). The default implementation does not allow any deserialization, it simply checks that
164
- * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
165
- * method on all of it's `input` properties that accept dates. It is therefore possible to
166
- * support passing values from your backend directly to these properties by overriding this method
167
- * to also deserialize the format used by your backend.
168
- */
169
- deserialize(value: any): T | undefined;
170
- /**
171
- * Sets the locale used for all dates.
172
- */
173
- setLocale(locale: any): void;
174
- /**
175
- * Clamp the given date between min and max dates.
176
- */
177
- clampDate(date: T, min?: T, max?: T): T;
1
+ import * as i0 from "@angular/core";
2
+ import { AfterContentInit, ElementRef, InjectionToken, OnDestroy, OnInit, OutputEmitterRef, Signal } from "@angular/core";
3
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from "@angular/forms";
4
+ import { ScrollStrategy } from "@angular/cdk/overlay";
5
+ export declare abstract class DateTimeAdapter<T> {
6
+ /** The locale to use for all dates */
7
+ protected readonly locale: import("@angular/core").WritableSignal<any>;
8
+ /** total milliseconds in a day */
9
+ protected readonly millisecondsInDay = 86400000;
10
+ /** total milliseconds in a minute */
11
+ protected readonly milliseondsInMinute = 60000;
12
+ /**
13
+ * Get the year of the given date
14
+ */
15
+ abstract getYear(date?: T): number;
16
+ /**
17
+ * Get the month of the given date
18
+ * 0 -- January
19
+ * 11 -- December
20
+ * */
21
+ abstract getMonth(date?: T): number;
22
+ /**
23
+ * Get the day of the week of the given date
24
+ * 0 -- Sunday
25
+ * 6 -- Saturday
26
+ * */
27
+ abstract getDay(date?: T): number;
28
+ /**
29
+ * Get the day num of the given date
30
+ */
31
+ abstract getDate(date?: T): number;
32
+ /**
33
+ * Get the hours of the given date
34
+ */
35
+ abstract getHours(date?: T): number;
36
+ /**
37
+ * Get the minutes of the given date
38
+ */
39
+ abstract getMinutes(date?: T): number;
40
+ /**
41
+ * Get the seconds of the given date
42
+ */
43
+ abstract getSeconds(date?: T): number;
44
+ /**
45
+ * Get the milliseconds timestamp of the given date
46
+ */
47
+ abstract getTime(date?: T): number;
48
+ /**
49
+ * Gets the number of days in the month of the given date.
50
+ */
51
+ abstract getNumDaysInMonth(date?: T): number;
52
+ /**
53
+ * Get the number of calendar days between the given dates.
54
+ * If dateLeft is before dateRight, it would return positive value
55
+ * If dateLeft is after dateRight, it would return negative value
56
+ */
57
+ abstract differenceInCalendarDays(dateLeft?: T, dateRight?: T): number | undefined;
58
+ /**
59
+ * Gets the name for the year of the given date.
60
+ */
61
+ abstract getYearName(date?: T): string;
62
+ /**
63
+ * Get a list of month names
64
+ */
65
+ abstract getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
66
+ /**
67
+ * Get a list of week names
68
+ */
69
+ abstract getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
70
+ /**
71
+ * Gets a list of names for the dates of the month.
72
+ */
73
+ abstract getDateNames(): string[];
74
+ /**
75
+ * Return a Date object as a string, using the ISO standard
76
+ */
77
+ abstract toIso8601(date: T): string;
78
+ /**
79
+ * Check if the give dates are equal
80
+ */
81
+ abstract isEqual(dateLeft?: T, dateRight?: T): boolean;
82
+ /**
83
+ * Check if the give dates are the same day
84
+ */
85
+ abstract isSameDay(dateLeft?: T, dateRight?: T): boolean;
86
+ /**
87
+ * Checks whether the given date is valid.
88
+ */
89
+ abstract isValid(date?: T): boolean;
90
+ /**
91
+ * Gets date instance that is not valid.
92
+ */
93
+ abstract invalid(): T;
94
+ /**
95
+ * Checks whether the given object is considered a date instance by this DateTimeAdapter.
96
+ */
97
+ abstract isDateInstance(obj: any): boolean;
98
+ /**
99
+ * Add the specified number of years to the given date
100
+ */
101
+ abstract addCalendarYears(date: T | undefined, amount: number): T;
102
+ /**
103
+ * Add the specified number of months to the given date
104
+ */
105
+ abstract addCalendarMonths(date: T | undefined, amount: number): T;
106
+ /**
107
+ * Add the specified number of days to the given date
108
+ */
109
+ abstract addCalendarDays(date: T | undefined, amount: number): T;
110
+ /**
111
+ * Set the hours to the given date.
112
+ */
113
+ abstract setHours(date: T | undefined, amount: number): T;
114
+ /**
115
+ * Set the minutes to the given date.
116
+ */
117
+ abstract setMinutes(date: T | undefined, amount: number): T;
118
+ /**
119
+ * Set the seconds to the given date.
120
+ */
121
+ abstract setSeconds(date: T | undefined, amount: number): T;
122
+ /**
123
+ * Creates a date with the given year, month, date, hour, minute and second. Does not allow over/under-flow of the
124
+ * month and date.
125
+ */
126
+ abstract createDate(year: number, month: number, date: number): T;
127
+ abstract createDate(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): T;
128
+ /**
129
+ * Clone the given date
130
+ */
131
+ abstract clone(date?: T): T;
132
+ /**
133
+ * Get a new moment
134
+ * */
135
+ abstract now(): T;
136
+ /**
137
+ * Formats a date as a string according to the given format.
138
+ */
139
+ abstract format(date: T | undefined, displayFormat: any): string;
140
+ /**
141
+ * Parse a user-provided value to a Date Object
142
+ */
143
+ abstract parse(value: any, parseFormat: any): T | undefined;
144
+ /**
145
+ * Compare two given dates
146
+ * 1 if the first date is after the second,
147
+ * -1 if the first date is before the second
148
+ * 0 if dates are equal.
149
+ * */
150
+ compare(first?: T, second?: T): number;
151
+ /**
152
+ * Check if two given dates are in the same year
153
+ * 1 if the first date's year is after the second,
154
+ * -1 if the first date's year is before the second
155
+ * 0 if two given dates are in the same year
156
+ * */
157
+ compareYear(first?: T, second?: T): number;
158
+ /**
159
+ * Attempts to deserialize a value to a valid date object. This is different from parsing in that
160
+ * deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
161
+ * string). The default implementation does not allow any deserialization, it simply checks that
162
+ * the given value is already a valid date object or null. The `<mat-datepicker>` will call this
163
+ * method on all of it's `input` properties that accept dates. It is therefore possible to
164
+ * support passing values from your backend directly to these properties by overriding this method
165
+ * to also deserialize the format used by your backend.
166
+ */
167
+ deserialize(value: any): T | undefined;
168
+ /**
169
+ * Sets the locale used for all dates.
170
+ */
171
+ setLocale(locale: any): void;
172
+ /**
173
+ * Clamp the given date between min and max dates.
174
+ */
175
+ clampDate(date: T, min?: T, max?: T): T;
178
176
  }
179
-
180
- interface DateTimeFormats {
181
- parseInput: any;
182
- fullPickerInput: any;
183
- datePickerInput: any;
184
- timePickerInput: any;
185
- monthYearLabel: any;
186
- dateA11yLabel: any;
187
- monthYearA11yLabel: any;
177
+ export interface DateTimeFormats {
178
+ parseInput: any;
179
+ fullPickerInput: any;
180
+ datePickerInput: any;
181
+ timePickerInput: any;
182
+ monthYearLabel: any;
183
+ dateA11yLabel: any;
184
+ monthYearA11yLabel: any;
188
185
  }
189
186
  /** InjectionToken for date time picker that can be used to override default format */
190
- declare const NXT_DATE_TIME_FORMATS: InjectionToken<DateTimeFormats>;
191
-
192
- type PickerType = 'both' | 'calendar' | 'timer';
193
- type PickerMode = 'popup' | 'dialog' | 'inline';
194
- type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
195
- type RenderItem = 'year' | 'month' | 'date';
196
- type ViewType = 'month' | 'year' | 'multi-years';
197
- type DateFilter<T> = (date?: T, forRender?: RenderItem) => boolean;
187
+ export declare const NXT_DATE_TIME_FORMATS: InjectionToken<DateTimeFormats>;
188
+ export type PickerType = 'both' | 'calendar' | 'timer';
189
+ export type PickerMode = 'popup' | 'dialog' | 'inline';
190
+ export type SelectMode = 'single' | 'range' | 'rangeFrom' | 'rangeTo';
191
+ export type RenderItem = 'year' | 'month' | 'date';
192
+ export type ViewType = 'month' | 'year' | 'multi-years';
193
+ export type DateFilter<T> = (date?: T, forRender?: RenderItem) => boolean;
198
194
  declare abstract class DateTimeDirective<T> {
199
- protected readonly dateTimeAdapter: DateTimeAdapter<T>;
200
- protected readonly dateTimeFormats: DateTimeFormats;
201
- /**
202
- * When true, shows a timer to configure the seconds value
203
- */
204
- readonly showSecondsTimer: _angular_core.InputSignal<boolean>;
205
- /**
206
- * When true, the timer will be in 12-hour format mode
207
- */
208
- readonly hour12Timer: _angular_core.InputSignal<boolean>;
209
- /**
210
- * The view that the calendar should start on
211
- */
212
- readonly startView: _angular_core.InputSignal<ViewType>;
213
- /**
214
- * Hours to change per step
215
- */
216
- readonly stepHour: _angular_core.InputSignal<number>;
217
- /**
218
- * Minutes to change per step
219
- */
220
- readonly stepMinute: _angular_core.InputSignal<number>;
221
- /**
222
- * Seconds to change per step
223
- */
224
- readonly stepSecond: _angular_core.InputSignal<number>;
225
- /**
226
- * Set the first day of week
227
- *
228
- * Valid values are from 0 [Sunday] to 6 [Saturday]
229
- */
230
- readonly firstDayOfWeek: _angular_core.InputSignal<number>;
231
- /**
232
- * If true, don't show dates from preious / next month on the calendar month view
233
- */
234
- readonly hideOtherMonths: _angular_core.InputSignal<boolean>;
235
- readonly id: string;
236
- abstract selected: Signal<T | undefined>;
237
- abstract selecteds: Signal<Array<T | undefined>>;
238
- abstract dateTimeFilter: Signal<DateFilter<T> | undefined>;
239
- abstract max: Signal<T | undefined>;
240
- abstract min: Signal<T | undefined>;
241
- abstract selectMode: Signal<SelectMode | undefined>;
242
- abstract startAt: Signal<T | undefined>;
243
- abstract isOpen: Signal<boolean>;
244
- abstract pickerMode: Signal<PickerMode>;
245
- abstract pickerType: Signal<PickerType>;
246
- abstract isInSingleMode: Signal<boolean>;
247
- abstract isInRangeMode: Signal<boolean>;
248
- abstract disabled: Signal<boolean>;
249
- abstract select(date: T | Array<T | undefined>): void;
250
- abstract yearSelected: OutputEmitterRef<T>;
251
- abstract monthSelected: OutputEmitterRef<T>;
252
- abstract selectYear(normalizedYear: T): void;
253
- abstract selectMonth(normalizedMonth: T): void;
254
- readonly formatString: Signal<any>;
255
- /**
256
- * Date Time Checker to check if the give dateTime is selectable
257
- */
258
- readonly dateTimeChecker: _angular_core.WritableSignal<(dateTime: T | undefined) => boolean>;
259
- protected getValidDate(obj: any): T | undefined;
260
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeDirective<any>, never>;
261
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DateTimeDirective<any>, never, never, { "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; "isSignal": true; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; "isSignal": true; }; "startView": { "alias": "startView"; "required": false; "isSignal": true; }; "stepHour": { "alias": "stepHour"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "stepSecond": { "alias": "stepSecond"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
195
+ protected readonly dateTimeAdapter: DateTimeAdapter<T>;
196
+ protected readonly dateTimeFormats: DateTimeFormats;
197
+ /**
198
+ * When true, shows a timer to configure the seconds value
199
+ */
200
+ readonly showSecondsTimer: import("@angular/core").InputSignal<boolean>;
201
+ /**
202
+ * When true, the timer will be in 12-hour format mode
203
+ */
204
+ readonly hour12Timer: import("@angular/core").InputSignal<boolean>;
205
+ /**
206
+ * The view that the calendar should start on
207
+ */
208
+ readonly startView: import("@angular/core").InputSignal<ViewType>;
209
+ /**
210
+ * Hours to change per step
211
+ */
212
+ readonly stepHour: import("@angular/core").InputSignal<number>;
213
+ /**
214
+ * Minutes to change per step
215
+ */
216
+ readonly stepMinute: import("@angular/core").InputSignal<number>;
217
+ /**
218
+ * Seconds to change per step
219
+ */
220
+ readonly stepSecond: import("@angular/core").InputSignal<number>;
221
+ /**
222
+ * Set the first day of week
223
+ *
224
+ * Valid values are from 0 [Sunday] to 6 [Saturday]
225
+ */
226
+ readonly firstDayOfWeek: import("@angular/core").InputSignal<number>;
227
+ /**
228
+ * If true, don't show dates from preious / next month on the calendar month view
229
+ */
230
+ readonly hideOtherMonths: import("@angular/core").InputSignal<boolean>;
231
+ readonly id: string;
232
+ abstract selected: Signal<T | undefined>;
233
+ abstract selecteds: Signal<Array<T | undefined>>;
234
+ abstract dateTimeFilter: Signal<DateFilter<T> | undefined>;
235
+ abstract max: Signal<T | undefined>;
236
+ abstract min: Signal<T | undefined>;
237
+ abstract selectMode: Signal<SelectMode | undefined>;
238
+ abstract startAt: Signal<T | undefined>;
239
+ abstract isOpen: Signal<boolean>;
240
+ abstract pickerMode: Signal<PickerMode>;
241
+ abstract pickerType: Signal<PickerType>;
242
+ abstract isInSingleMode: Signal<boolean>;
243
+ abstract isInRangeMode: Signal<boolean>;
244
+ abstract disabled: Signal<boolean>;
245
+ abstract select(date: T | Array<T | undefined>): void;
246
+ abstract yearSelected: OutputEmitterRef<T>;
247
+ abstract monthSelected: OutputEmitterRef<T>;
248
+ abstract selectYear(normalizedYear: T): void;
249
+ abstract selectMonth(normalizedMonth: T): void;
250
+ readonly formatString: Signal<any>;
251
+ /**
252
+ * Date Time Checker to check if the give dateTime is selectable
253
+ */
254
+ readonly dateTimeChecker: import("@angular/core").WritableSignal<(dateTime?: T) => boolean>;
255
+ protected getValidDate(obj: any): T | undefined;
256
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeDirective<any>, never>;
257
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeDirective<any>, never, never, {
258
+ "showSecondsTimer": {
259
+ "alias": "showSecondsTimer";
260
+ "required": false;
261
+ "isSignal": true;
262
+ };
263
+ "hour12Timer": {
264
+ "alias": "hour12Timer";
265
+ "required": false;
266
+ "isSignal": true;
267
+ };
268
+ "startView": {
269
+ "alias": "startView";
270
+ "required": false;
271
+ "isSignal": true;
272
+ };
273
+ "stepHour": {
274
+ "alias": "stepHour";
275
+ "required": false;
276
+ "isSignal": true;
277
+ };
278
+ "stepMinute": {
279
+ "alias": "stepMinute";
280
+ "required": false;
281
+ "isSignal": true;
282
+ };
283
+ "stepSecond": {
284
+ "alias": "stepSecond";
285
+ "required": false;
286
+ "isSignal": true;
287
+ };
288
+ "firstDayOfWeek": {
289
+ "alias": "firstDayOfWeek";
290
+ "required": false;
291
+ "isSignal": true;
292
+ };
293
+ "hideOtherMonths": {
294
+ "alias": "hideOtherMonths";
295
+ "required": false;
296
+ "isSignal": true;
297
+ };
298
+ }, {}, never, never, true, never>;
262
299
  }
263
-
264
300
  declare class CalendarCell {
265
- value: number;
266
- displayValue: string;
267
- ariaLabel: string;
268
- enabled: boolean;
269
- out: boolean;
270
- cellClass: string;
271
- constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, out?: boolean, cellClass?: string);
301
+ value: number;
302
+ displayValue: string;
303
+ ariaLabel: string;
304
+ enabled: boolean;
305
+ out: boolean;
306
+ cellClass: string;
307
+ constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean, out?: boolean, cellClass?: string);
272
308
  }
273
-
274
- declare class MonthViewComponent<T> {
275
- private readonly dateTimeAdapter;
276
- private readonly dateTimeFormats;
277
- /**
278
- * Whether to hide dates in other months at the start or end of the current month
279
- */
280
- readonly hideOtherMonths: _angular_core.InputSignal<boolean>;
281
- private _firstDayOfWeek;
282
- /**
283
- * Define the first day of a week
284
- * Sunday: 0 ~ Saturday: 6
285
- */
286
- readonly firstDayOfWeek: _angular_core.InputSignalWithTransform<number, number>;
287
- /**
288
- * The select mode of the picker;
289
- */
290
- readonly selectMode: _angular_core.InputSignal<SelectMode>;
291
- /** The currently selected date */
292
- readonly selected: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
293
- readonly selecteds: _angular_core.InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
294
- readonly pickerMoment: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
295
- /**
296
- * A function used to filter which dates are selectable
297
- */
298
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
299
- /** The minimum selectable date */
300
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
301
- /** The maximum selectable date */
302
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
303
- readonly weekdays: _angular_core.Signal<{
304
- long: string;
305
- short: string;
306
- narrow: string;
307
- }[]>;
308
- readonly _daysData: _angular_core.Signal<{
309
- days: CalendarCell[][];
310
- todayDate: number | undefined;
311
- firstRowOffset: number;
312
- } | undefined>;
313
- private _days?;
314
- readonly days: _angular_core.Signal<CalendarCell[][] | undefined>;
315
- readonly activeCell: _angular_core.Signal<number | undefined>;
316
- readonly isInSingleMode: _angular_core.Signal<boolean>;
317
- readonly isInRangeMode: _angular_core.Signal<boolean>;
318
- private firstDateOfMonth;
319
- private _todayDate?;
320
- /**
321
- * The date of the month that today falls on.
322
- */
323
- readonly todayDate: _angular_core.Signal<number | undefined>;
324
- private _selectedDates?;
325
- /**
326
- * An array to hold all selectedDates' value
327
- * the value is the day number in current month
328
- */
329
- readonly selectedDates: _angular_core.Signal<(number | undefined)[] | undefined>;
330
- private _firstRowOffset;
331
- readonly firstRowOffset: _angular_core.Signal<number>;
332
- /**
333
- * Callback to invoke when a new date is selected
334
- */
335
- readonly selectedChange: _angular_core.OutputEmitterRef<T | undefined>;
336
- /**
337
- * Callback to invoke when any date is selected.
338
- */
339
- readonly userSelection: _angular_core.OutputEmitterRef<void>;
340
- /** Emits when any date is activated */
341
- readonly pickerMomentChange: _angular_core.OutputEmitterRef<T>;
342
- /** The body of calendar table */
343
- private readonly calendarBodyElm;
344
- /**
345
- * Handle a calendarCell selected
346
- */
347
- selectCalendarCell(cell: CalendarCell): void;
348
- /**
349
- * Handle a new date selected
350
- */
351
- private selectDate;
352
- /**
353
- * Handle keydown event on calendar body
354
- */
355
- handleCalendarKeydown(event: KeyboardEvent): void;
356
- /**
357
- * Creates CalendarCell for days.
358
- */
359
- private createDateCell;
360
- /**
361
- * Check if the date is valid
362
- */
363
- private isDateEnabled;
364
- /**
365
- * Get a valid date object
366
- */
367
- private getValidDate;
368
- /**
369
- * Check if the give dates are defined and in the same month
370
- */
371
- isSameMonth(dateLeft?: T, dateRight?: T): boolean;
372
- private focusActiveCell;
373
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MonthViewComponent<any>, never>;
374
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MonthViewComponent<any>, "nxt-date-time-month-view", never, { "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selecteds": { "alias": "selecteds"; "required": false; "isSignal": true; }; "pickerMoment": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "selectedChange": "selectedChange"; "userSelection": "userSelection"; "pickerMomentChange": "pickerMomentChange"; }, never, never, true, never>;
309
+ export declare class MonthViewComponent<T> {
310
+ private readonly dateTimeAdapter;
311
+ private readonly dateTimeFormats;
312
+ /**
313
+ * Whether to hide dates in other months at the start or end of the current month
314
+ */
315
+ readonly hideOtherMonths: import("@angular/core").InputSignal<boolean>;
316
+ private _firstDayOfWeek;
317
+ /**
318
+ * Define the first day of a week
319
+ * Sunday: 0 ~ Saturday: 6
320
+ */
321
+ readonly firstDayOfWeek: import("@angular/core").InputSignalWithTransform<number, number>;
322
+ /**
323
+ * The select mode of the picker;
324
+ */
325
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode>;
326
+ /** The currently selected date */
327
+ readonly selected: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
328
+ readonly selecteds: import("@angular/core").InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
329
+ readonly pickerMoment: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
330
+ /**
331
+ * A function used to filter which dates are selectable
332
+ */
333
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
334
+ /** The minimum selectable date */
335
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
336
+ /** The maximum selectable date */
337
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
338
+ readonly weekdays: import("@angular/core").Signal<{
339
+ long: string;
340
+ short: string;
341
+ narrow: string;
342
+ }[]>;
343
+ readonly _daysData: import("@angular/core").Signal<{
344
+ days: CalendarCell[][];
345
+ todayDate: number | undefined;
346
+ firstRowOffset: number;
347
+ } | undefined>;
348
+ private _days?;
349
+ readonly days: import("@angular/core").Signal<CalendarCell[][] | undefined>;
350
+ readonly activeCell: import("@angular/core").Signal<number | undefined>;
351
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
352
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
353
+ private firstDateOfMonth;
354
+ private _todayDate?;
355
+ /**
356
+ * The date of the month that today falls on.
357
+ */
358
+ readonly todayDate: import("@angular/core").Signal<number | undefined>;
359
+ private _selectedDates?;
360
+ /**
361
+ * An array to hold all selectedDates' value
362
+ * the value is the day number in current month
363
+ */
364
+ readonly selectedDates: import("@angular/core").Signal<(number | undefined)[] | undefined>;
365
+ private _firstRowOffset;
366
+ readonly firstRowOffset: import("@angular/core").Signal<number>;
367
+ /**
368
+ * Callback to invoke when a new date is selected
369
+ */
370
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<T | undefined>;
371
+ /**
372
+ * Callback to invoke when any date is selected.
373
+ */
374
+ readonly userSelection: import("@angular/core").OutputEmitterRef<void>;
375
+ /** Emits when any date is activated */
376
+ readonly pickerMomentChange: import("@angular/core").OutputEmitterRef<T>;
377
+ /** The body of calendar table */
378
+ private readonly calendarBodyElm;
379
+ /**
380
+ * Handle a calendarCell selected
381
+ */
382
+ selectCalendarCell(cell: CalendarCell): void;
383
+ /**
384
+ * Handle a new date selected
385
+ */
386
+ private selectDate;
387
+ /**
388
+ * Handle keydown event on calendar body
389
+ */
390
+ handleCalendarKeydown(event: KeyboardEvent): void;
391
+ /**
392
+ * Creates CalendarCell for days.
393
+ */
394
+ private createDateCell;
395
+ /**
396
+ * Check if the date is valid
397
+ */
398
+ private isDateEnabled;
399
+ /**
400
+ * Get a valid date object
401
+ */
402
+ private getValidDate;
403
+ /**
404
+ * Check if the give dates are defined and in the same month
405
+ */
406
+ isSameMonth(dateLeft?: T, dateRight?: T): boolean;
407
+ private focusActiveCell;
408
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonthViewComponent<any>, never>;
409
+ static ɵcmp: i0.ɵɵComponentDeclaration<MonthViewComponent<any>, "nxt-date-time-month-view", never, {
410
+ "hideOtherMonths": {
411
+ "alias": "hideOtherMonths";
412
+ "required": false;
413
+ "isSignal": true;
414
+ };
415
+ "firstDayOfWeek": {
416
+ "alias": "firstDayOfWeek";
417
+ "required": false;
418
+ "isSignal": true;
419
+ };
420
+ "selectMode": {
421
+ "alias": "selectMode";
422
+ "required": false;
423
+ "isSignal": true;
424
+ };
425
+ "selected": {
426
+ "alias": "selected";
427
+ "required": false;
428
+ "isSignal": true;
429
+ };
430
+ "selecteds": {
431
+ "alias": "selecteds";
432
+ "required": false;
433
+ "isSignal": true;
434
+ };
435
+ "pickerMoment": {
436
+ "alias": "pickerMoment";
437
+ "required": false;
438
+ "isSignal": true;
439
+ };
440
+ "dateTimeFilter": {
441
+ "alias": "dateTimeFilter";
442
+ "required": false;
443
+ "isSignal": true;
444
+ };
445
+ "min": {
446
+ "alias": "min";
447
+ "required": false;
448
+ "isSignal": true;
449
+ };
450
+ "max": {
451
+ "alias": "max";
452
+ "required": false;
453
+ "isSignal": true;
454
+ };
455
+ }, {
456
+ "selectedChange": "selectedChange";
457
+ "userSelection": "userSelection";
458
+ "pickerMomentChange": "pickerMomentChange";
459
+ }, never, never, true, never>;
375
460
  }
376
-
377
- declare class MultiYearViewComponent<T> {
378
- private readonly pickerIntl;
379
- private readonly dateTimeAdapter;
380
- /**
381
- * The select mode of the picker;
382
- */
383
- readonly selectMode: _angular_core.InputSignal<SelectMode>;
384
- /** The currently selected date */
385
- readonly selected: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
386
- readonly selecteds: _angular_core.InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
387
- /** Settable signal for pickerMoment */
388
- readonly _pickerMomentInput: _angular_core.InputSignal<T | undefined>;
389
- private readonly _pickerMoment;
390
- readonly pickerMoment: _angular_core.Signal<T>;
391
- /**
392
- * A function used to filter which dates are selectable
393
- */
394
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
395
- /** The minimum selectable date */
396
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
397
- /** The maximum selectable date */
398
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
399
- private readonly yearsData;
400
- readonly years: _angular_core.Signal<CalendarCell[][]>;
401
- readonly todayYear: _angular_core.Signal<number>;
402
- readonly isInSingleMode: _angular_core.Signal<boolean>;
403
- readonly isInRangeMode: _angular_core.Signal<boolean>;
404
- readonly selectedYears: _angular_core.Signal<(number | undefined)[]>;
405
- readonly activeCell: _angular_core.Signal<number | undefined>;
406
- readonly tableHeader: _angular_core.Signal<string | undefined>;
407
- readonly prevButtonLabel: _angular_core.Signal<string>;
408
- readonly nextButtonLabel: _angular_core.Signal<string>;
409
- /**
410
- * Callback to invoke when a new month is selected
411
- */
412
- readonly change: _angular_core.OutputEmitterRef<T>;
413
- /**
414
- * Emits the selected year
415
- *
416
- * This doesn't imply a change on the selected date.
417
- */
418
- readonly yearSelected: _angular_core.OutputEmitterRef<T>;
419
- /** Emits when any date is activated */
420
- readonly pickerMomentChange: _angular_core.OutputEmitterRef<T>;
421
- /** Emits when use keyboard enter to select a calendar cell */
422
- readonly keyboardEnter: _angular_core.OutputEmitterRef<void>;
423
- /** The body of calendar table */
424
- private readonly calendarBodyElm;
425
- /**
426
- * Handle a calendarCell selected
427
- */
428
- selectCalendarCell(cell: CalendarCell): void;
429
- private selectYear;
430
- /**
431
- * Generate the previous year list
432
- */
433
- prevYearList(event: any): void;
434
- /**
435
- * Generate the next year list
436
- */
437
- nextYearList(event: any): void;
438
- /** Whether the previous period button is enabled */
439
- previousEnabled(): boolean;
440
- /** Whether the next period button is enabled */
441
- nextEnabled(): boolean;
442
- handleCalendarKeydown(event: KeyboardEvent): void;
443
- /**
444
- * Creates an CalendarCell for the given year.
445
- */
446
- private createYearCell;
447
- /** Whether the given year is enabled */
448
- private isYearEnabled;
449
- private isSameYearList;
450
- /**
451
- * Get a valid date object
452
- */
453
- private getValidDate;
454
- private focusActiveCell;
455
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiYearViewComponent<any>, never>;
456
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MultiYearViewComponent<any>, "nxt-date-time-multi-year-view", never, { "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selecteds": { "alias": "selecteds"; "required": false; "isSignal": true; }; "_pickerMomentInput": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "change": "change"; "yearSelected": "yearSelected"; "pickerMomentChange": "pickerMomentChange"; "keyboardEnter": "keyboardEnter"; }, never, never, true, never>;
461
+ export declare class MultiYearViewComponent<T> {
462
+ private readonly pickerIntl;
463
+ private readonly dateTimeAdapter;
464
+ /**
465
+ * The select mode of the picker;
466
+ */
467
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode>;
468
+ /** The currently selected date */
469
+ readonly selected: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
470
+ readonly selecteds: import("@angular/core").InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
471
+ /** Settable signal for pickerMoment */
472
+ readonly _pickerMomentInput: import("@angular/core").InputSignal<T | undefined>;
473
+ private readonly _pickerMoment;
474
+ readonly pickerMoment: import("@angular/core").Signal<T>;
475
+ /**
476
+ * A function used to filter which dates are selectable
477
+ */
478
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
479
+ /** The minimum selectable date */
480
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
481
+ /** The maximum selectable date */
482
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
483
+ private readonly yearsData;
484
+ readonly years: import("@angular/core").Signal<CalendarCell[][]>;
485
+ readonly todayYear: import("@angular/core").Signal<number>;
486
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
487
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
488
+ readonly selectedYears: import("@angular/core").Signal<(number | undefined)[]>;
489
+ readonly activeCell: import("@angular/core").Signal<number | undefined>;
490
+ readonly tableHeader: import("@angular/core").Signal<string | undefined>;
491
+ readonly prevButtonLabel: import("@angular/core").Signal<string>;
492
+ readonly nextButtonLabel: import("@angular/core").Signal<string>;
493
+ /**
494
+ * Callback to invoke when a new month is selected
495
+ */
496
+ readonly change: import("@angular/core").OutputEmitterRef<T>;
497
+ /**
498
+ * Emits the selected year
499
+ *
500
+ * This doesn't imply a change on the selected date.
501
+ */
502
+ readonly yearSelected: import("@angular/core").OutputEmitterRef<T>;
503
+ /** Emits when any date is activated */
504
+ readonly pickerMomentChange: import("@angular/core").OutputEmitterRef<T>;
505
+ /** Emits when use keyboard enter to select a calendar cell */
506
+ readonly keyboardEnter: import("@angular/core").OutputEmitterRef<void>;
507
+ /** The body of calendar table */
508
+ private readonly calendarBodyElm;
509
+ /**
510
+ * Handle a calendarCell selected
511
+ */
512
+ selectCalendarCell(cell: CalendarCell): void;
513
+ private selectYear;
514
+ /**
515
+ * Generate the previous year list
516
+ */
517
+ prevYearList(event: any): void;
518
+ /**
519
+ * Generate the next year list
520
+ */
521
+ nextYearList(event: any): void;
522
+ /** Whether the previous period button is enabled */
523
+ previousEnabled(): boolean;
524
+ /** Whether the next period button is enabled */
525
+ nextEnabled(): boolean;
526
+ handleCalendarKeydown(event: KeyboardEvent): void;
527
+ /**
528
+ * Creates an CalendarCell for the given year.
529
+ */
530
+ private createYearCell;
531
+ /** Whether the given year is enabled */
532
+ private isYearEnabled;
533
+ private isSameYearList;
534
+ /**
535
+ * Get a valid date object
536
+ */
537
+ private getValidDate;
538
+ private focusActiveCell;
539
+ static ɵfac: i0.ɵɵFactoryDeclaration<MultiYearViewComponent<any>, never>;
540
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultiYearViewComponent<any>, "nxt-date-time-multi-year-view", never, {
541
+ "selectMode": {
542
+ "alias": "selectMode";
543
+ "required": false;
544
+ "isSignal": true;
545
+ };
546
+ "selected": {
547
+ "alias": "selected";
548
+ "required": false;
549
+ "isSignal": true;
550
+ };
551
+ "selecteds": {
552
+ "alias": "selecteds";
553
+ "required": false;
554
+ "isSignal": true;
555
+ };
556
+ "_pickerMomentInput": {
557
+ "alias": "pickerMoment";
558
+ "required": false;
559
+ "isSignal": true;
560
+ };
561
+ "dateTimeFilter": {
562
+ "alias": "dateTimeFilter";
563
+ "required": false;
564
+ "isSignal": true;
565
+ };
566
+ "min": {
567
+ "alias": "min";
568
+ "required": false;
569
+ "isSignal": true;
570
+ };
571
+ "max": {
572
+ "alias": "max";
573
+ "required": false;
574
+ "isSignal": true;
575
+ };
576
+ }, {
577
+ "change": "change";
578
+ "yearSelected": "yearSelected";
579
+ "pickerMomentChange": "pickerMomentChange";
580
+ "keyboardEnter": "keyboardEnter";
581
+ }, never, never, true, never>;
457
582
  }
458
-
459
- declare class YearViewComponent<T> {
460
- private readonly dateTimeAdapter;
461
- private readonly dateTimeFormats;
462
- /**
463
- * The select mode of the picker;
464
- */
465
- readonly selectMode: _angular_core.InputSignal<SelectMode>;
466
- /** The currently selected date */
467
- readonly selected: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
468
- readonly selecteds: _angular_core.InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
469
- readonly pickerMoment: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
470
- /**
471
- * A function used to filter which dates are selectable
472
- */
473
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
474
- /** The minimum selectable date */
475
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
476
- /** The maximum selectable date */
477
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
478
- private readonly monthNames;
479
- private readonly monthsData;
480
- private _months?;
481
- readonly months: _angular_core.Signal<CalendarCell[][] | undefined>;
482
- readonly activeCell: _angular_core.Signal<number | undefined>;
483
- readonly isInSingleMode: _angular_core.Signal<boolean>;
484
- readonly isInRangeMode: _angular_core.Signal<boolean>;
485
- private _todayMonth?;
486
- readonly todayMonth: _angular_core.Signal<number | undefined>;
487
- /**
488
- * An array to hold all selectedDates' month value
489
- * the value is the month number in current year
490
- */
491
- readonly selectedMonths: _angular_core.Signal<(number | undefined)[]>;
492
- /**
493
- * Callback to invoke when a new month is selected
494
- */
495
- readonly change: _angular_core.OutputEmitterRef<T>;
496
- /**
497
- * Emits the selected year
498
- *
499
- * This doesn't imply a change on the selected date.
500
- */
501
- readonly monthSelected: _angular_core.OutputEmitterRef<T>;
502
- /** Emits when any date is activated */
503
- readonly pickerMomentChange: _angular_core.OutputEmitterRef<T>;
504
- /** Emits when use keyboard enter to select a calendar cell */
505
- readonly keyboardEnter: _angular_core.OutputEmitterRef<void>;
506
- /** The body of calendar table */
507
- private readonly calendarBodyElm;
508
- /**
509
- * Handle a calendarCell selected
510
- */
511
- selectCalendarCell(cell: CalendarCell): void;
512
- /**
513
- * Handle a new month selected
514
- */
515
- private selectMonth;
516
- /**
517
- * Handle keydown event on calendar body
518
- */
519
- handleCalendarKeydown(event: KeyboardEvent): void;
520
- /**
521
- * Creates an CalendarCell for the given month.
522
- */
523
- private createMonthCell;
524
- /**
525
- * Check if the given month is enable
526
- */
527
- private isMonthEnabled;
528
- /**
529
- * Gets the month in this year that the given Date falls on.
530
- * Returns undefined if the given Date is in another year.
531
- */
532
- private getMonthInCurrentYear;
533
- /**
534
- * Check the given dates are in the same year
535
- */
536
- private hasSameYear;
537
- /**
538
- * Get a valid date object
539
- */
540
- private getValidDate;
541
- private focusActiveCell;
542
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<YearViewComponent<any>, never>;
543
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<YearViewComponent<any>, "nxt-date-time-year-view", never, { "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selecteds": { "alias": "selecteds"; "required": false; "isSignal": true; }; "pickerMoment": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "change": "change"; "monthSelected": "monthSelected"; "pickerMomentChange": "pickerMomentChange"; "keyboardEnter": "keyboardEnter"; }, never, never, true, never>;
583
+ export declare class YearViewComponent<T> {
584
+ private readonly dateTimeAdapter;
585
+ private readonly dateTimeFormats;
586
+ /**
587
+ * The select mode of the picker;
588
+ */
589
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode>;
590
+ /** The currently selected date */
591
+ readonly selected: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
592
+ readonly selecteds: import("@angular/core").InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
593
+ readonly pickerMoment: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
594
+ /**
595
+ * A function used to filter which dates are selectable
596
+ */
597
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
598
+ /** The minimum selectable date */
599
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
600
+ /** The maximum selectable date */
601
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
602
+ private readonly monthNames;
603
+ private readonly monthsData;
604
+ private _months?;
605
+ readonly months: import("@angular/core").Signal<CalendarCell[][] | undefined>;
606
+ readonly activeCell: import("@angular/core").Signal<number | undefined>;
607
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
608
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
609
+ private _todayMonth?;
610
+ readonly todayMonth: import("@angular/core").Signal<number | undefined>;
611
+ /**
612
+ * An array to hold all selectedDates' month value
613
+ * the value is the month number in current year
614
+ */
615
+ readonly selectedMonths: import("@angular/core").Signal<(number | undefined)[]>;
616
+ /**
617
+ * Callback to invoke when a new month is selected
618
+ */
619
+ readonly change: import("@angular/core").OutputEmitterRef<T>;
620
+ /**
621
+ * Emits the selected year
622
+ *
623
+ * This doesn't imply a change on the selected date.
624
+ */
625
+ readonly monthSelected: import("@angular/core").OutputEmitterRef<T>;
626
+ /** Emits when any date is activated */
627
+ readonly pickerMomentChange: import("@angular/core").OutputEmitterRef<T>;
628
+ /** Emits when use keyboard enter to select a calendar cell */
629
+ readonly keyboardEnter: import("@angular/core").OutputEmitterRef<void>;
630
+ /** The body of calendar table */
631
+ private readonly calendarBodyElm;
632
+ /**
633
+ * Handle a calendarCell selected
634
+ */
635
+ selectCalendarCell(cell: CalendarCell): void;
636
+ /**
637
+ * Handle a new month selected
638
+ */
639
+ private selectMonth;
640
+ /**
641
+ * Handle keydown event on calendar body
642
+ */
643
+ handleCalendarKeydown(event: KeyboardEvent): void;
644
+ /**
645
+ * Creates an CalendarCell for the given month.
646
+ */
647
+ private createMonthCell;
648
+ /**
649
+ * Check if the given month is enable
650
+ */
651
+ private isMonthEnabled;
652
+ /**
653
+ * Gets the month in this year that the given Date falls on.
654
+ * Returns undefined if the given Date is in another year.
655
+ */
656
+ private getMonthInCurrentYear;
657
+ /**
658
+ * Check the given dates are in the same year
659
+ */
660
+ private hasSameYear;
661
+ /**
662
+ * Get a valid date object
663
+ */
664
+ private getValidDate;
665
+ private focusActiveCell;
666
+ static ɵfac: i0.ɵɵFactoryDeclaration<YearViewComponent<any>, never>;
667
+ static ɵcmp: i0.ɵɵComponentDeclaration<YearViewComponent<any>, "nxt-date-time-year-view", never, {
668
+ "selectMode": {
669
+ "alias": "selectMode";
670
+ "required": false;
671
+ "isSignal": true;
672
+ };
673
+ "selected": {
674
+ "alias": "selected";
675
+ "required": false;
676
+ "isSignal": true;
677
+ };
678
+ "selecteds": {
679
+ "alias": "selecteds";
680
+ "required": false;
681
+ "isSignal": true;
682
+ };
683
+ "pickerMoment": {
684
+ "alias": "pickerMoment";
685
+ "required": false;
686
+ "isSignal": true;
687
+ };
688
+ "dateTimeFilter": {
689
+ "alias": "dateTimeFilter";
690
+ "required": false;
691
+ "isSignal": true;
692
+ };
693
+ "min": {
694
+ "alias": "min";
695
+ "required": false;
696
+ "isSignal": true;
697
+ };
698
+ "max": {
699
+ "alias": "max";
700
+ "required": false;
701
+ "isSignal": true;
702
+ };
703
+ }, {
704
+ "change": "change";
705
+ "monthSelected": "monthSelected";
706
+ "pickerMomentChange": "pickerMomentChange";
707
+ "keyboardEnter": "keyboardEnter";
708
+ }, never, never, true, never>;
544
709
  }
545
-
546
- declare class CalendarComponent<T> {
547
- private readonly elmRef;
548
- private readonly pickerIntl;
549
- private readonly ngZone;
550
- private readonly injector;
551
- private readonly destroyRef;
552
- private readonly dateTimeAdapter;
553
- private readonly dateTimeFormats;
554
- /**
555
- * Date filter for the month and year view
556
- */
557
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
558
- /**
559
- * Set the first day of week
560
- */
561
- readonly firstDayOfWeek: _angular_core.InputSignal<number>;
562
- /** The minimum selectable date */
563
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
564
- /** The maximum selectable date */
565
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
566
- /** The current picker moment */
567
- readonly _pickerMomentInput: _angular_core.InputSignal<T | undefined>;
568
- /** Settable signal for pickerMoment */
569
- private readonly _pickerMoment;
570
- readonly pickerMoment: _angular_core.Signal<T>;
571
- readonly selectMode: _angular_core.InputSignal<SelectMode | undefined>;
572
- /** The currently selected moment */
573
- readonly selected: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
574
- readonly selecteds: _angular_core.InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
575
- /**
576
- * The view that the calendar should start in
577
- */
578
- readonly startView: _angular_core.InputSignal<"year" | "month" | "multi-years">;
579
- /**
580
- * Whether to hide dates in other months at the start or end of the current month
581
- */
582
- readonly hideOtherMonths: _angular_core.InputSignal<boolean>;
583
- /** Emits when the currently picker moment changes */
584
- readonly pickerMomentChange: _angular_core.OutputEmitterRef<T>;
585
- /** Emits when the currently selected date changes */
586
- readonly selectedChange: _angular_core.OutputEmitterRef<T | undefined>;
587
- /** Emits when any date is selected */
588
- readonly userSelection: _angular_core.OutputEmitterRef<void>;
589
- /**
590
- * Emits the selected year
591
- *
592
- * This doesn't imply a change on the selected date.
593
- */
594
- readonly yearSelected: _angular_core.OutputEmitterRef<T>;
595
- /**
596
- * Emits the selected month
597
- *
598
- * This doesn't imply a change on the selected date.
599
- */
600
- readonly monthSelected: _angular_core.OutputEmitterRef<T>;
601
- readonly periodButtonText: _angular_core.Signal<string>;
602
- readonly periodButtonLabel: _angular_core.Signal<string>;
603
- readonly prevButtonLabel: _angular_core.Signal<string | undefined>;
604
- readonly nextButtonLabel: _angular_core.Signal<string | undefined>;
605
- readonly currentView: _angular_core.WritableSignal<"year" | "month" | "multi-years">;
606
- readonly isInSingleMode: _angular_core.Signal<boolean>;
607
- readonly isInRangeMode: _angular_core.Signal<boolean>;
608
- readonly showControlArrows: _angular_core.Signal<boolean>;
609
- readonly isMonthView: _angular_core.Signal<boolean>;
610
- /**
611
- * Date filter for the month and year view
612
- */
613
- dateTimeFilterForViews: (date?: T) => boolean;
614
- constructor();
615
- /**
616
- * Toggle between month view and year view
617
- */
618
- toggleViews(): void;
619
- /**
620
- * Handles user clicks on the previous button.
621
- */
622
- previousClicked(): void;
623
- /**
624
- * Handles user clicks on the next button.
625
- */
626
- nextClicked(): void;
627
- dateSelected(date?: T): void;
628
- /**
629
- * Change the pickerMoment value and switch to a specific view
630
- */
631
- goToDateInView(date: T, view: 'month' | 'year' | 'multi-years'): void;
632
- /**
633
- * Change the pickerMoment value
634
- */
635
- handlePickerMomentChange(date: T): void;
636
- userSelected(): void;
637
- /**
638
- * Whether the previous period button is enabled.
639
- */
640
- prevButtonEnabled(): boolean;
641
- /**
642
- * Whether the next period button is enabled.
643
- */
644
- nextButtonEnabled(): boolean;
645
- /**
646
- * Focus to the host element
647
- */
648
- focusActiveCell(): void;
649
- selectYearInMultiYearView(normalizedYear: T): void;
650
- selectMonthInYearView(normalizedMonth: T): void;
651
- /**
652
- * Whether the two dates represent the same view in the current view mode (month or year).
653
- */
654
- private isSameView;
655
- /**
656
- * Get a valid date object
657
- */
658
- private getValidDate;
659
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CalendarComponent<any>, never>;
660
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CalendarComponent<any>, "nxt-date-time-calendar", never, { "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "_pickerMomentInput": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selecteds": { "alias": "selecteds"; "required": false; "isSignal": true; }; "startView": { "alias": "startView"; "required": false; "isSignal": true; }; "hideOtherMonths": { "alias": "hideOtherMonths"; "required": false; "isSignal": true; }; }, { "pickerMomentChange": "pickerMomentChange"; "selectedChange": "selectedChange"; "userSelection": "userSelection"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never, true, never>;
710
+ export declare class CalendarComponent<T> {
711
+ private readonly elmRef;
712
+ private readonly pickerIntl;
713
+ private readonly ngZone;
714
+ private readonly injector;
715
+ private readonly destroyRef;
716
+ private readonly dateTimeAdapter;
717
+ private readonly dateTimeFormats;
718
+ /**
719
+ * Date filter for the month and year view
720
+ */
721
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
722
+ /**
723
+ * Set the first day of week
724
+ */
725
+ readonly firstDayOfWeek: import("@angular/core").InputSignal<number>;
726
+ /** The minimum selectable date */
727
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
728
+ /** The maximum selectable date */
729
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
730
+ /** The current picker moment */
731
+ readonly _pickerMomentInput: import("@angular/core").InputSignal<T | undefined>;
732
+ /** Settable signal for pickerMoment */
733
+ private readonly _pickerMoment;
734
+ readonly pickerMoment: import("@angular/core").Signal<T>;
735
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode | undefined>;
736
+ /** The currently selected moment */
737
+ readonly selected: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
738
+ readonly selecteds: import("@angular/core").InputSignalWithTransform<(T | undefined)[], (T | undefined)[]>;
739
+ /**
740
+ * The view that the calendar should start in
741
+ */
742
+ readonly startView: import("@angular/core").InputSignal<"year" | "month" | "multi-years">;
743
+ /**
744
+ * Whether to hide dates in other months at the start or end of the current month
745
+ */
746
+ readonly hideOtherMonths: import("@angular/core").InputSignal<boolean>;
747
+ /** Emits when the currently picker moment changes */
748
+ readonly pickerMomentChange: import("@angular/core").OutputEmitterRef<T>;
749
+ /** Emits when the currently selected date changes */
750
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<T | undefined>;
751
+ /** Emits when any date is selected */
752
+ readonly userSelection: import("@angular/core").OutputEmitterRef<void>;
753
+ /**
754
+ * Emits the selected year
755
+ *
756
+ * This doesn't imply a change on the selected date.
757
+ */
758
+ readonly yearSelected: import("@angular/core").OutputEmitterRef<T>;
759
+ /**
760
+ * Emits the selected month
761
+ *
762
+ * This doesn't imply a change on the selected date.
763
+ */
764
+ readonly monthSelected: import("@angular/core").OutputEmitterRef<T>;
765
+ readonly periodButtonText: import("@angular/core").Signal<string>;
766
+ readonly periodButtonLabel: import("@angular/core").Signal<string>;
767
+ readonly prevButtonLabel: import("@angular/core").Signal<string | undefined>;
768
+ readonly nextButtonLabel: import("@angular/core").Signal<string | undefined>;
769
+ readonly currentView: import("@angular/core").WritableSignal<"year" | "month" | "multi-years">;
770
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
771
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
772
+ readonly showControlArrows: import("@angular/core").Signal<boolean>;
773
+ readonly isMonthView: import("@angular/core").Signal<boolean>;
774
+ /**
775
+ * Date filter for the month and year view
776
+ */
777
+ dateTimeFilterForViews: (date?: T) => boolean;
778
+ constructor();
779
+ /**
780
+ * Toggle between month view and year view
781
+ */
782
+ toggleViews(): void;
783
+ /**
784
+ * Handles user clicks on the previous button.
785
+ */
786
+ previousClicked(): void;
787
+ /**
788
+ * Handles user clicks on the next button.
789
+ */
790
+ nextClicked(): void;
791
+ dateSelected(date?: T): void;
792
+ /**
793
+ * Change the pickerMoment value and switch to a specific view
794
+ */
795
+ goToDateInView(date: T, view: 'month' | 'year' | 'multi-years'): void;
796
+ /**
797
+ * Change the pickerMoment value
798
+ */
799
+ handlePickerMomentChange(date: T): void;
800
+ userSelected(): void;
801
+ /**
802
+ * Whether the previous period button is enabled.
803
+ */
804
+ prevButtonEnabled(): boolean;
805
+ /**
806
+ * Whether the next period button is enabled.
807
+ */
808
+ nextButtonEnabled(): boolean;
809
+ /**
810
+ * Focus to the host element
811
+ */
812
+ focusActiveCell(): void;
813
+ selectYearInMultiYearView(normalizedYear: T): void;
814
+ selectMonthInYearView(normalizedMonth: T): void;
815
+ /**
816
+ * Whether the two dates represent the same view in the current view mode (month or year).
817
+ */
818
+ private isSameView;
819
+ /**
820
+ * Get a valid date object
821
+ */
822
+ private getValidDate;
823
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent<any>, never>;
824
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent<any>, "nxt-date-time-calendar", never, {
825
+ "dateTimeFilter": {
826
+ "alias": "dateTimeFilter";
827
+ "required": false;
828
+ "isSignal": true;
829
+ };
830
+ "firstDayOfWeek": {
831
+ "alias": "firstDayOfWeek";
832
+ "required": false;
833
+ "isSignal": true;
834
+ };
835
+ "min": {
836
+ "alias": "min";
837
+ "required": false;
838
+ "isSignal": true;
839
+ };
840
+ "max": {
841
+ "alias": "max";
842
+ "required": false;
843
+ "isSignal": true;
844
+ };
845
+ "_pickerMomentInput": {
846
+ "alias": "pickerMoment";
847
+ "required": false;
848
+ "isSignal": true;
849
+ };
850
+ "selectMode": {
851
+ "alias": "selectMode";
852
+ "required": false;
853
+ "isSignal": true;
854
+ };
855
+ "selected": {
856
+ "alias": "selected";
857
+ "required": false;
858
+ "isSignal": true;
859
+ };
860
+ "selecteds": {
861
+ "alias": "selecteds";
862
+ "required": false;
863
+ "isSignal": true;
864
+ };
865
+ "startView": {
866
+ "alias": "startView";
867
+ "required": false;
868
+ "isSignal": true;
869
+ };
870
+ "hideOtherMonths": {
871
+ "alias": "hideOtherMonths";
872
+ "required": false;
873
+ "isSignal": true;
874
+ };
875
+ }, {
876
+ "pickerMomentChange": "pickerMomentChange";
877
+ "selectedChange": "selectedChange";
878
+ "userSelection": "userSelection";
879
+ "yearSelected": "yearSelected";
880
+ "monthSelected": "monthSelected";
881
+ }, never, never, true, never>;
661
882
  }
662
-
663
- declare class DateTimeInlineComponent<T> extends DateTimeDirective<T> implements OnInit, ControlValueAccessor {
664
- private readonly container;
665
- /**
666
- * Set the type of the dateTime picker
667
- *
668
- * - `'both'` - show both calendar and timer
669
- * - `'calendar'` - show only calendar
670
- * - `'timer'` - show only timer
671
- */
672
- readonly pickerType: _angular_core.InputSignal<PickerType>;
673
- /** Whether the date time picker should be disabled */
674
- readonly _disabled: _angular_core.InputSignal<boolean>;
675
- readonly disabled: _angular_core.WritableSignal<boolean>;
676
- /**
677
- * The picker select mode
678
- *
679
- * - `'single'` - select a single date
680
- * - `'range'` - select a range [from, to]
681
- * - `'rangeFrom'` - an open range with a fixed start date
682
- * - `'rangeTo'` - an open range with a fixed end date
683
- */
684
- readonly selectMode: _angular_core.InputSignal<SelectMode>;
685
- readonly _valueInput: _angular_core.InputSignal<T | undefined>;
686
- private readonly _value;
687
- readonly value: _angular_core.Signal<T | undefined>;
688
- readonly _valuesInput: _angular_core.InputSignal<(T | undefined)[] | undefined>;
689
- private readonly _values;
690
- readonly values: _angular_core.Signal<(T | undefined)[]>;
691
- /**
692
- * The date to show when picker opens
693
- *
694
- * Defaults to selected date (if available) or current date.
695
- */
696
- readonly _startAt: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
697
- readonly startAt: _angular_core.Signal<T | undefined>;
698
- /** A function to filter available date & time */
699
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
700
- /** The minimum valid date */
701
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
702
- /** The maximum valid date */
703
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
704
- /**
705
- * Emits selected year in multi-year view
706
- *
707
- * This doesn't imply a change on the selected date.
708
- */
709
- readonly yearSelected: _angular_core.OutputEmitterRef<T>;
710
- /**
711
- * Emits selected month in year view
712
- *
713
- * This doesn't imply a change on the selected date.
714
- */
715
- readonly monthSelected: _angular_core.OutputEmitterRef<T>;
716
- readonly selected: _angular_core.WritableSignal<T | undefined>;
717
- readonly selecteds: _angular_core.WritableSignal<(T | undefined)[]>;
718
- readonly isOpen: _angular_core.Signal<boolean>;
719
- readonly pickerMode: _angular_core.Signal<PickerMode>;
720
- readonly isInSingleMode: _angular_core.Signal<boolean>;
721
- readonly isInRangeMode: _angular_core.Signal<boolean>;
722
- private onModelChange?;
723
- private onModelTouched?;
724
- ngOnInit(): void;
725
- writeValue(value: any): void;
726
- registerOnChange(fn: any): void;
727
- registerOnTouched(fn: any): void;
728
- setDisabledState(isDisabled: boolean): void;
729
- select(date: T[] | T): void;
730
- /**
731
- * Emits the selected year in multi-year view
732
- */
733
- selectYear(normalizedYear: T): void;
734
- /**
735
- * Emits selected month in year view
736
- */
737
- selectMonth(normalizedMonth: T): void;
738
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeInlineComponent<any>, never>;
739
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimeInlineComponent<any>, "nxt-date-time-inline", never, { "pickerType": { "alias": "pickerType"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "_valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "_valuesInput": { "alias": "values"; "required": false; "isSignal": true; }; "_startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; }, never, never, true, never>;
883
+ export declare class DateTimeInlineComponent<T> extends DateTimeDirective<T> implements OnInit, ControlValueAccessor {
884
+ private readonly container;
885
+ /**
886
+ * Set the type of the dateTime picker
887
+ *
888
+ * - `'both'` - show both calendar and timer
889
+ * - `'calendar'` - show only calendar
890
+ * - `'timer'` - show only timer
891
+ */
892
+ readonly pickerType: import("@angular/core").InputSignal<PickerType>;
893
+ /** Whether the date time picker should be disabled */
894
+ readonly _disabled: import("@angular/core").InputSignal<boolean>;
895
+ readonly disabled: import("@angular/core").WritableSignal<boolean>;
896
+ /**
897
+ * The picker select mode
898
+ *
899
+ * - `'single'` - select a single date
900
+ * - `'range'` - select a range [from, to]
901
+ * - `'rangeFrom'` - an open range with a fixed start date
902
+ * - `'rangeTo'` - an open range with a fixed end date
903
+ */
904
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode>;
905
+ readonly _valueInput: import("@angular/core").InputSignal<T | undefined>;
906
+ private readonly _value;
907
+ readonly value: import("@angular/core").Signal<T | undefined>;
908
+ readonly _valuesInput: import("@angular/core").InputSignal<(T | undefined)[] | undefined>;
909
+ private readonly _values;
910
+ readonly values: import("@angular/core").Signal<(T | undefined)[]>;
911
+ /**
912
+ * The date to show when picker opens
913
+ *
914
+ * Defaults to selected date (if available) or current date.
915
+ */
916
+ readonly _startAt: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
917
+ readonly startAt: import("@angular/core").Signal<T | undefined>;
918
+ /** A function to filter available date & time */
919
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
920
+ /** The minimum valid date */
921
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
922
+ /** The maximum valid date */
923
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
924
+ /**
925
+ * Emits selected year in multi-year view
926
+ *
927
+ * This doesn't imply a change on the selected date.
928
+ */
929
+ readonly yearSelected: import("@angular/core").OutputEmitterRef<T>;
930
+ /**
931
+ * Emits selected month in year view
932
+ *
933
+ * This doesn't imply a change on the selected date.
934
+ */
935
+ readonly monthSelected: import("@angular/core").OutputEmitterRef<T>;
936
+ readonly selected: import("@angular/core").WritableSignal<T | undefined>;
937
+ readonly selecteds: import("@angular/core").WritableSignal<(T | undefined)[]>;
938
+ readonly isOpen: import("@angular/core").Signal<boolean>;
939
+ readonly pickerMode: import("@angular/core").Signal<PickerMode>;
940
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
941
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
942
+ private onModelChange?;
943
+ private onModelTouched?;
944
+ ngOnInit(): void;
945
+ writeValue(value: any): void;
946
+ registerOnChange(fn: any): void;
947
+ registerOnTouched(fn: any): void;
948
+ setDisabledState(isDisabled: boolean): void;
949
+ select(date: T[] | T): void;
950
+ /**
951
+ * Emits the selected year in multi-year view
952
+ */
953
+ selectYear(normalizedYear: T): void;
954
+ /**
955
+ * Emits selected month in year view
956
+ */
957
+ selectMonth(normalizedMonth: T): void;
958
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInlineComponent<any>, never>;
959
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInlineComponent<any>, "nxt-date-time-inline", never, {
960
+ "pickerType": {
961
+ "alias": "pickerType";
962
+ "required": false;
963
+ "isSignal": true;
964
+ };
965
+ "_disabled": {
966
+ "alias": "disabled";
967
+ "required": false;
968
+ "isSignal": true;
969
+ };
970
+ "selectMode": {
971
+ "alias": "selectMode";
972
+ "required": false;
973
+ "isSignal": true;
974
+ };
975
+ "_valueInput": {
976
+ "alias": "value";
977
+ "required": false;
978
+ "isSignal": true;
979
+ };
980
+ "_valuesInput": {
981
+ "alias": "values";
982
+ "required": false;
983
+ "isSignal": true;
984
+ };
985
+ "_startAt": {
986
+ "alias": "startAt";
987
+ "required": false;
988
+ "isSignal": true;
989
+ };
990
+ "dateTimeFilter": {
991
+ "alias": "dateTimeFilter";
992
+ "required": false;
993
+ "isSignal": true;
994
+ };
995
+ "min": {
996
+ "alias": "min";
997
+ "required": false;
998
+ "isSignal": true;
999
+ };
1000
+ "max": {
1001
+ "alias": "max";
1002
+ "required": false;
1003
+ "isSignal": true;
1004
+ };
1005
+ }, {
1006
+ "yearSelected": "yearSelected";
1007
+ "monthSelected": "monthSelected";
1008
+ }, never, never, true, never>;
740
1009
  }
741
-
742
- declare class DateTimeComponent<T> extends DateTimeDirective<T> implements OnDestroy {
743
- private readonly overlay;
744
- private readonly viewContainerRef;
745
- private readonly dialogService;
746
- private readonly injector;
747
- private readonly destroyRef;
748
- private readonly defaultScrollStrategy;
749
- private readonly document;
750
- /** Custom class for the picker backdrop */
751
- readonly backdropClass: _angular_core.InputSignal<string | string[] | undefined>;
752
- /** Custom class for the picker overlay pane */
753
- readonly panelClass: _angular_core.InputSignal<string | string[] | undefined>;
754
- /**
755
- * The date to show when picker opens
756
- *
757
- * Defaults to selected date (if available) or current date.
758
- */
759
- readonly _startAt: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
760
- readonly startAt: _angular_core.Signal<T | undefined>;
761
- /**
762
- * Set the type of the dateTime picker
763
- *
764
- * - `'both'` - show both calendar and timer
765
- * - `'calendar'` - show only calendar
766
- * - `'timer'` - show only timer
767
- */
768
- readonly pickerType: _angular_core.InputSignal<PickerType>;
769
- /**
770
- * The style the picker would open as
771
- *
772
- * - `'popup'` - display picker attached to the trigger element
773
- * - `'dialog'` - display picker as a dialog
774
- */
775
- readonly pickerMode: _angular_core.InputSignalWithTransform<PickerMode, PickerMode>;
776
- /** Whether the date time picker should be disabled */
777
- readonly _disabled: _angular_core.InputSignal<boolean | undefined>;
778
- readonly disabled: _angular_core.WritableSignal<boolean>;
779
- /** Whether the calendar is open */
780
- readonly _isOpen: _angular_core.InputSignal<boolean>;
781
- readonly isOpen: _angular_core.WritableSignal<boolean>;
782
- /**
783
- * The scroll strategy when the picker is open (see [CDK documentation](https://material.angular.io/cdk/overlay/overview#scroll-strategies))
784
- */
785
- readonly scrollStrategy: _angular_core.InputSignal<ScrollStrategy | undefined>;
786
- /**
787
- * Callback when the picker is opened
788
- */
789
- readonly afterPickerOpened: _angular_core.OutputEmitterRef<void>;
790
- /**
791
- * Callback when the picker is closed
792
- */
793
- readonly afterPickerClosed: _angular_core.OutputEmitterRef<void>;
794
- /**
795
- * Emits selected year in multi-year view
796
- *
797
- * This doesn't imply a change on the selected date.
798
- */
799
- readonly yearSelected: _angular_core.OutputEmitterRef<T>;
800
- /**
801
- * Emits selected month in year view
802
- *
803
- * This doesn't imply a change on the selected date.
804
- */
805
- readonly monthSelected: _angular_core.OutputEmitterRef<T>;
806
- /**
807
- * Emits when picker open state changes
808
- */
809
- readonly isOpenChange: _angular_core.OutputEmitterRef<boolean>;
810
- /**
811
- * Emit when the selected value has been confirmed
812
- */
813
- readonly confirmSelectedChange: _angular_core.OutputEmitterRef<T | (T | undefined)[]>;
814
- /**
815
- * Emits when the date time picker is disabled
816
- */
817
- readonly disabledChange: _angular_core.OutputEmitterRef<boolean>;
818
- private pickerContainerPortal?;
819
- private pickerContainer?;
820
- private popupRef?;
821
- private dialogRef?;
822
- private hidePickerStreamSub?;
823
- private confirmSelectedStreamSub?;
824
- private pickerOpenedStreamSub?;
825
- /** The element that was focused before the date time picker was isOpen */
826
- private focusedElementBeforeOpen?;
827
- private readonly _dtInput;
828
- readonly dtInput: _angular_core.Signal<DateTimeInputDirective<T> | undefined>;
829
- private readonly valueChange;
830
- readonly selected: _angular_core.WritableSignal<T | undefined>;
831
- readonly selecteds: _angular_core.WritableSignal<(T | undefined)[]>;
832
- /** The minimum selectable date */
833
- readonly min: _angular_core.Signal<T | undefined>;
834
- /** The maximum selectable date */
835
- readonly max: _angular_core.Signal<T | undefined>;
836
- readonly dateTimeFilter: _angular_core.Signal<nxt_pick_datetime.DateFilter<T> | undefined>;
837
- readonly selectMode: _angular_core.Signal<nxt_pick_datetime.SelectMode | undefined>;
838
- readonly isInSingleMode: _angular_core.Signal<boolean>;
839
- readonly isInRangeMode: _angular_core.Signal<boolean>;
840
- constructor();
841
- ngOnDestroy(): void;
842
- registerInput(inputDirective: DateTimeInputDirective<T>): void;
843
- open(event?: PointerEvent): void;
844
- /**
845
- * Selects the given date
846
- */
847
- select(date: T[] | T): void;
848
- /**
849
- * Emits the selected year in multi-year view
850
- */
851
- selectYear(normalizedYear: T): void;
852
- /**
853
- * Emits selected month in year view
854
- */
855
- selectMonth(normalizedMonth: T): void;
856
- /**
857
- * Hide the picker
858
- */
859
- close(): void;
860
- /**
861
- * Confirm the selected value
862
- */
863
- confirmSelect(_event?: any): void;
864
- /**
865
- * Open the picker as a dialog
866
- */
867
- private openAsDialog;
868
- /**
869
- * Open the picker as popup
870
- */
871
- private openAsPopup;
872
- private createPopup;
873
- /**
874
- * Create the popup PositionStrategy.
875
- */
876
- private createPopupPositionStrategy;
877
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeComponent<any>, never>;
878
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimeComponent<any>, "nxt-date-time", never, { "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "_startAt": { "alias": "startAt"; "required": false; "isSignal": true; }; "pickerType": { "alias": "pickerType"; "required": false; "isSignal": true; }; "pickerMode": { "alias": "pickerMode"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "_isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; "isSignal": true; }; }, { "afterPickerOpened": "open"; "afterPickerClosed": "close"; "yearSelected": "yearSelected"; "monthSelected": "monthSelected"; "isOpenChange": "isOpenChange"; "confirmSelectedChange": "confirmSelectedChange"; "disabledChange": "disabledChange"; }, never, never, true, never>;
1010
+ export declare class DateTimeComponent<T> extends DateTimeDirective<T> implements OnDestroy {
1011
+ private readonly overlay;
1012
+ private readonly viewContainerRef;
1013
+ private readonly dialogService;
1014
+ private readonly injector;
1015
+ private readonly destroyRef;
1016
+ private readonly defaultScrollStrategy;
1017
+ private readonly document;
1018
+ /** Custom class for the picker backdrop */
1019
+ readonly backdropClass: import("@angular/core").InputSignal<string | string[] | undefined>;
1020
+ /** Custom class for the picker overlay pane */
1021
+ readonly panelClass: import("@angular/core").InputSignal<string | string[] | undefined>;
1022
+ /**
1023
+ * The date to show when picker opens
1024
+ *
1025
+ * Defaults to selected date (if available) or current date.
1026
+ */
1027
+ readonly _startAt: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1028
+ readonly startAt: import("@angular/core").Signal<T | undefined>;
1029
+ /**
1030
+ * Set the type of the dateTime picker
1031
+ *
1032
+ * - `'both'` - show both calendar and timer
1033
+ * - `'calendar'` - show only calendar
1034
+ * - `'timer'` - show only timer
1035
+ */
1036
+ readonly pickerType: import("@angular/core").InputSignal<PickerType>;
1037
+ /**
1038
+ * The style the picker would open as
1039
+ *
1040
+ * - `'popup'` - display picker attached to the trigger element
1041
+ * - `'dialog'` - display picker as a dialog
1042
+ */
1043
+ readonly pickerMode: import("@angular/core").InputSignalWithTransform<PickerMode, PickerMode>;
1044
+ /** Whether the date time picker should be disabled */
1045
+ readonly _disabled: import("@angular/core").InputSignal<boolean | undefined>;
1046
+ readonly disabled: import("@angular/core").WritableSignal<boolean>;
1047
+ /** Whether the calendar is open */
1048
+ readonly _isOpen: import("@angular/core").InputSignal<boolean>;
1049
+ readonly isOpen: import("@angular/core").WritableSignal<boolean>;
1050
+ /**
1051
+ * The scroll strategy when the picker is open (see [CDK documentation](https://material.angular.io/cdk/overlay/overview#scroll-strategies))
1052
+ */
1053
+ readonly scrollStrategy: import("@angular/core").InputSignal<ScrollStrategy | undefined>;
1054
+ /**
1055
+ * Callback when the picker is opened
1056
+ */
1057
+ readonly afterPickerOpened: import("@angular/core").OutputEmitterRef<void>;
1058
+ /**
1059
+ * Callback when the picker is closed
1060
+ */
1061
+ readonly afterPickerClosed: import("@angular/core").OutputEmitterRef<void>;
1062
+ /**
1063
+ * Emits selected year in multi-year view
1064
+ *
1065
+ * This doesn't imply a change on the selected date.
1066
+ */
1067
+ readonly yearSelected: import("@angular/core").OutputEmitterRef<T>;
1068
+ /**
1069
+ * Emits selected month in year view
1070
+ *
1071
+ * This doesn't imply a change on the selected date.
1072
+ */
1073
+ readonly monthSelected: import("@angular/core").OutputEmitterRef<T>;
1074
+ /**
1075
+ * Emits when picker open state changes
1076
+ */
1077
+ readonly isOpenChange: import("@angular/core").OutputEmitterRef<boolean>;
1078
+ /**
1079
+ * Emit when the selected value has been confirmed
1080
+ */
1081
+ readonly confirmSelectedChange: import("@angular/core").OutputEmitterRef<T | (T | undefined)[]>;
1082
+ /**
1083
+ * Emits when the date time picker is disabled
1084
+ */
1085
+ readonly disabledChange: import("@angular/core").OutputEmitterRef<boolean>;
1086
+ private pickerContainerPortal?;
1087
+ private pickerContainer?;
1088
+ private popupRef?;
1089
+ private dialogRef?;
1090
+ private hidePickerStreamSub?;
1091
+ private confirmSelectedStreamSub?;
1092
+ private pickerOpenedStreamSub?;
1093
+ /** The element that was focused before the date time picker was isOpen */
1094
+ private focusedElementBeforeOpen?;
1095
+ private readonly _dtInput;
1096
+ readonly dtInput: import("@angular/core").Signal<DateTimeInputDirective<T> | undefined>;
1097
+ private readonly valueChange;
1098
+ readonly selected: import("@angular/core").WritableSignal<T | undefined>;
1099
+ readonly selecteds: import("@angular/core").WritableSignal<(T | undefined)[]>;
1100
+ /** The minimum selectable date */
1101
+ readonly min: import("@angular/core").Signal<T | undefined>;
1102
+ /** The maximum selectable date */
1103
+ readonly max: import("@angular/core").Signal<T | undefined>;
1104
+ readonly dateTimeFilter: import("@angular/core").Signal<import("nxt-pick-datetime").DateFilter<T> | undefined>;
1105
+ readonly selectMode: import("@angular/core").Signal<import("nxt-pick-datetime").SelectMode | undefined>;
1106
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
1107
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
1108
+ constructor();
1109
+ ngOnDestroy(): void;
1110
+ registerInput(inputDirective: DateTimeInputDirective<T>): void;
1111
+ open(event?: PointerEvent): void;
1112
+ /**
1113
+ * Selects the given date
1114
+ */
1115
+ select(date: T[] | T): void;
1116
+ /**
1117
+ * Emits the selected year in multi-year view
1118
+ */
1119
+ selectYear(normalizedYear: T): void;
1120
+ /**
1121
+ * Emits selected month in year view
1122
+ */
1123
+ selectMonth(normalizedMonth: T): void;
1124
+ /**
1125
+ * Hide the picker
1126
+ */
1127
+ close(): void;
1128
+ /**
1129
+ * Confirm the selected value
1130
+ */
1131
+ confirmSelect(_event?: any): void;
1132
+ /**
1133
+ * Open the picker as a dialog
1134
+ */
1135
+ private openAsDialog;
1136
+ /**
1137
+ * Open the picker as popup
1138
+ */
1139
+ private openAsPopup;
1140
+ private createPopup;
1141
+ /**
1142
+ * Create the popup PositionStrategy.
1143
+ */
1144
+ private createPopupPositionStrategy;
1145
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeComponent<any>, never>;
1146
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeComponent<any>, "nxt-date-time", never, {
1147
+ "backdropClass": {
1148
+ "alias": "backdropClass";
1149
+ "required": false;
1150
+ "isSignal": true;
1151
+ };
1152
+ "panelClass": {
1153
+ "alias": "panelClass";
1154
+ "required": false;
1155
+ "isSignal": true;
1156
+ };
1157
+ "_startAt": {
1158
+ "alias": "startAt";
1159
+ "required": false;
1160
+ "isSignal": true;
1161
+ };
1162
+ "pickerType": {
1163
+ "alias": "pickerType";
1164
+ "required": false;
1165
+ "isSignal": true;
1166
+ };
1167
+ "pickerMode": {
1168
+ "alias": "pickerMode";
1169
+ "required": false;
1170
+ "isSignal": true;
1171
+ };
1172
+ "_disabled": {
1173
+ "alias": "disabled";
1174
+ "required": false;
1175
+ "isSignal": true;
1176
+ };
1177
+ "_isOpen": {
1178
+ "alias": "isOpen";
1179
+ "required": false;
1180
+ "isSignal": true;
1181
+ };
1182
+ "scrollStrategy": {
1183
+ "alias": "scrollStrategy";
1184
+ "required": false;
1185
+ "isSignal": true;
1186
+ };
1187
+ }, {
1188
+ "afterPickerOpened": "open";
1189
+ "afterPickerClosed": "close";
1190
+ "yearSelected": "yearSelected";
1191
+ "monthSelected": "monthSelected";
1192
+ "isOpenChange": "isOpenChange";
1193
+ "confirmSelectedChange": "confirmSelectedChange";
1194
+ "disabledChange": "disabledChange";
1195
+ }, never, never, true, never>;
879
1196
  }
880
-
881
- interface DateTimeInputEvent<T> {
882
- source: DateTimeInputDirective<T>;
883
- value?: T | Array<T | undefined>;
884
- input: HTMLInputElement;
1197
+ export interface DateTimeInputEvent<T> {
1198
+ source: DateTimeInputDirective<T>;
1199
+ value?: T | Array<T | undefined>;
1200
+ input: HTMLInputElement;
885
1201
  }
886
- declare class DateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
887
- private readonly elmRef;
888
- private readonly renderer;
889
- private readonly dateTimeAdapter;
890
- private readonly dateTimeFormats;
891
- /**
892
- * The date & time picker this input is associated with
893
- */
894
- readonly dateTime: _angular_core.InputSignal<DateTimeComponent<T> | undefined>;
895
- /**
896
- * A function to filter available date & time
897
- */
898
- readonly dateTimeFilter: _angular_core.InputSignal<DateFilter<T> | undefined>;
899
- /** Whether the date & time picker input is disabled */
900
- readonly _disabled: _angular_core.InputSignal<boolean>;
901
- readonly disabled: _angular_core.WritableSignal<boolean>;
902
- /** The minimum valid date */
903
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
904
- /** The maximum valid date */
905
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
906
- /**
907
- * The picker select mode
908
- *
909
- * - `'single'` - select a single date
910
- * - `'range'` - select a range [from, to]
911
- * - `'rangeFrom'` - an open range with a fixed start date
912
- * - `'rangeTo'` - an open range with a fixed end date
913
- */
914
- readonly selectMode: _angular_core.InputSignal<SelectMode>;
915
- /**
916
- * The character to separate the 'from' and 'to' in input value
917
- */
918
- readonly rangeSeparator: _angular_core.InputSignal<string>;
919
- readonly _valueInput: _angular_core.InputSignal<T | undefined>;
920
- private readonly _value;
921
- private readonly valueValidity;
922
- private readonly parsedValue;
923
- readonly value: _angular_core.Signal<T | undefined>;
924
- readonly _valuesInput: _angular_core.InputSignal<(T | undefined)[]>;
925
- private readonly _values;
926
- private readonly valuesValidity;
927
- private readonly parsedValues;
928
- readonly values: _angular_core.Signal<(T | undefined)[]>;
929
- private readonly nativeElementValue;
930
- /**
931
- * Callback to invoke when `change` event is fired on this `<input>`
932
- */
933
- readonly dateTimeChange: _angular_core.OutputEmitterRef<DateTimeInputEvent<T>>;
934
- /**
935
- * Callback to invoke when an `input` event is fired on this `<input>`.
936
- */
937
- readonly dateTimeInput: _angular_core.OutputEmitterRef<DateTimeInputEvent<T>>;
938
- get elementRef(): ElementRef<HTMLInputElement>;
939
- readonly isInSingleMode: _angular_core.Signal<boolean>;
940
- readonly isInRangeMode: _angular_core.Signal<boolean>;
941
- /** The date-time-picker that this input is associated with */
942
- readonly dtPicker: _angular_core.WritableSignal<DateTimeComponent<T> | undefined>;
943
- private dtPickerSub?;
944
- private readonly lastValueValid;
945
- private onModelChange?;
946
- private onModelTouched?;
947
- private validatorOnChange?;
948
- /** The form control validator for whether the input parses */
949
- private readonly parseValidator;
950
- /** The form control validator for the min date */
951
- private readonly minValidator;
952
- /** The form control validator for the max date */
953
- private readonly maxValidator;
954
- /** The form control validator for the date filter */
955
- private readonly filterValidator;
956
- /**
957
- * The form control validator for the range.
958
- * Check whether the 'before' value is before the 'to' value
959
- */
960
- private readonly rangeValidator;
961
- /** The combined form control validator for this input */
962
- private readonly validator;
963
- /** Emits when the value changes (either due to user input or programmatic change) */
964
- readonly valueChange: _angular_core.OutputEmitterRef<T | (T | undefined)[] | undefined>;
965
- /** Emits when the disabled state has changed */
966
- readonly disabledChange: _angular_core.OutputEmitterRef<boolean>;
967
- /** @internal */
968
- readonly inputAriaOwns: _angular_core.Signal<string | undefined>;
969
- /** @internal */
970
- readonly minIso8601: _angular_core.Signal<string | undefined>;
971
- /** @internal */
972
- readonly maxIso8601: _angular_core.Signal<string | undefined>;
973
- constructor();
974
- ngOnInit(): void;
975
- ngAfterContentInit(): void;
976
- ngOnDestroy(): void;
977
- writeValue(value: any): void;
978
- registerOnChange(fn: any): void;
979
- registerOnTouched(fn: any): void;
980
- setDisabledState(isDisabled: boolean): void;
981
- validate(c: AbstractControl): ValidationErrors | null;
982
- registerOnValidatorChange(fn: () => void): void;
983
- /**
984
- * Open the picker when user hold alt + ArrowDown
985
- */
986
- handleKeydownOnHost(event: KeyboardEvent): void;
987
- handleBlurOnHost(_event: Event): void;
988
- handleInputOnHost(event: any): void;
989
- handleChangeOnHost(_event: any): void;
990
- /**
991
- * Set the native input property 'value'
992
- */
993
- /**
994
- * Convert a given obj to a valid date object
995
- */
996
- private getValidDate;
997
- /**
998
- * Convert a time string to a date-time string
999
- * When pickerType is 'timer', the value in the picker's input is a time string.
1000
- * The dateTimeAdapter parse fn could not parse a time string to a Date Object.
1001
- * Therefore we need this fn to convert a time string to a date-time string.
1002
- */
1003
- private convertTimeStringToDateTimeString;
1004
- /**
1005
- * Handle input change in single mode
1006
- */
1007
- private changeInputInSingleMode;
1008
- /**
1009
- * Handle input change in rangeFrom or rangeTo mode
1010
- */
1011
- private changeInputInRangeFromToMode;
1012
- /**
1013
- * Handle input change in range mode
1014
- */
1015
- private changeInputInRangeMode;
1016
- /**
1017
- * Check if the two value is the same
1018
- */
1019
- private isSameValue;
1020
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeInputDirective<any>, never>;
1021
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DateTimeInputDirective<any>, "input[nxtDateTime]", ["nxtDateTimeInput"], { "dateTime": { "alias": "nxtDateTime"; "required": false; "isSignal": true; }; "dateTimeFilter": { "alias": "dateTimeFilter"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "selectMode": { "alias": "selectMode"; "required": false; "isSignal": true; }; "rangeSeparator": { "alias": "rangeSeparator"; "required": false; "isSignal": true; }; "_valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "_valuesInput": { "alias": "values"; "required": false; "isSignal": true; }; }, { "dateTimeChange": "dateTimeChange"; "dateTimeInput": "dateTimeInput"; "valueChange": "valueChange"; "disabledChange": "disabledChange"; }, never, never, true, never>;
1202
+ export declare class DateTimeInputDirective<T> implements OnInit, AfterContentInit, OnDestroy, ControlValueAccessor, Validator {
1203
+ private readonly elmRef;
1204
+ private readonly renderer;
1205
+ private readonly dateTimeAdapter;
1206
+ private readonly dateTimeFormats;
1207
+ /**
1208
+ * The date & time picker this input is associated with
1209
+ */
1210
+ readonly dateTime: import("@angular/core").InputSignal<DateTimeComponent<T> | undefined>;
1211
+ /**
1212
+ * A function to filter available date & time
1213
+ */
1214
+ readonly dateTimeFilter: import("@angular/core").InputSignal<DateFilter<T> | undefined>;
1215
+ /** Whether the date & time picker input is disabled */
1216
+ readonly _disabled: import("@angular/core").InputSignal<boolean>;
1217
+ readonly disabled: import("@angular/core").WritableSignal<boolean>;
1218
+ /** The minimum valid date */
1219
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1220
+ /** The maximum valid date */
1221
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1222
+ /**
1223
+ * The picker select mode
1224
+ *
1225
+ * - `'single'` - select a single date
1226
+ * - `'range'` - select a range [from, to]
1227
+ * - `'rangeFrom'` - an open range with a fixed start date
1228
+ * - `'rangeTo'` - an open range with a fixed end date
1229
+ */
1230
+ readonly selectMode: import("@angular/core").InputSignal<SelectMode>;
1231
+ /**
1232
+ * The character to separate the 'from' and 'to' in input value
1233
+ */
1234
+ readonly rangeSeparator: import("@angular/core").InputSignal<string>;
1235
+ readonly _valueInput: import("@angular/core").InputSignal<T | undefined>;
1236
+ private readonly _value;
1237
+ private readonly valueValidity;
1238
+ private readonly parsedValue;
1239
+ readonly value: import("@angular/core").Signal<T | undefined>;
1240
+ readonly _valuesInput: import("@angular/core").InputSignal<(T | undefined)[]>;
1241
+ private readonly _values;
1242
+ private readonly valuesValidity;
1243
+ private readonly parsedValues;
1244
+ readonly values: import("@angular/core").Signal<(T | undefined)[]>;
1245
+ private readonly nativeElementValue;
1246
+ /**
1247
+ * Callback to invoke when `change` event is fired on this `<input>`
1248
+ */
1249
+ readonly dateTimeChange: import("@angular/core").OutputEmitterRef<DateTimeInputEvent<T>>;
1250
+ /**
1251
+ * Callback to invoke when an `input` event is fired on this `<input>`.
1252
+ */
1253
+ readonly dateTimeInput: import("@angular/core").OutputEmitterRef<DateTimeInputEvent<T>>;
1254
+ get elementRef(): ElementRef<HTMLInputElement>;
1255
+ readonly isInSingleMode: import("@angular/core").Signal<boolean>;
1256
+ readonly isInRangeMode: import("@angular/core").Signal<boolean>;
1257
+ /** The date-time-picker that this input is associated with */
1258
+ readonly dtPicker: import("@angular/core").WritableSignal<DateTimeComponent<T> | undefined>;
1259
+ private dtPickerSub?;
1260
+ private readonly lastValueValid;
1261
+ private onModelChange?;
1262
+ private onModelTouched?;
1263
+ private validatorOnChange?;
1264
+ /** The form control validator for whether the input parses */
1265
+ private readonly parseValidator;
1266
+ /** The form control validator for the min date */
1267
+ private readonly minValidator;
1268
+ /** The form control validator for the max date */
1269
+ private readonly maxValidator;
1270
+ /** The form control validator for the date filter */
1271
+ private readonly filterValidator;
1272
+ /**
1273
+ * The form control validator for the range.
1274
+ * Check whether the 'before' value is before the 'to' value
1275
+ */
1276
+ private readonly rangeValidator;
1277
+ /** The combined form control validator for this input */
1278
+ private readonly validator;
1279
+ /** Emits when the value changes (either due to user input or programmatic change) */
1280
+ readonly valueChange: import("@angular/core").OutputEmitterRef<T | (T | undefined)[] | undefined>;
1281
+ /** Emits when the disabled state has changed */
1282
+ readonly disabledChange: import("@angular/core").OutputEmitterRef<boolean>;
1283
+ /** @internal */
1284
+ readonly inputAriaOwns: import("@angular/core").Signal<string | undefined>;
1285
+ /** @internal */
1286
+ readonly minIso8601: import("@angular/core").Signal<string | undefined>;
1287
+ /** @internal */
1288
+ readonly maxIso8601: import("@angular/core").Signal<string | undefined>;
1289
+ constructor();
1290
+ ngOnInit(): void;
1291
+ ngAfterContentInit(): void;
1292
+ ngOnDestroy(): void;
1293
+ writeValue(value: any): void;
1294
+ registerOnChange(fn: any): void;
1295
+ registerOnTouched(fn: any): void;
1296
+ setDisabledState(isDisabled: boolean): void;
1297
+ validate(c: AbstractControl): ValidationErrors | null;
1298
+ registerOnValidatorChange(fn: () => void): void;
1299
+ /**
1300
+ * Open the picker when user hold alt + ArrowDown
1301
+ */
1302
+ handleKeydownOnHost(event: KeyboardEvent): void;
1303
+ handleBlurOnHost(_event: Event): void;
1304
+ handleInputOnHost(event: any): void;
1305
+ handleChangeOnHost(_event: any): void;
1306
+ /**
1307
+ * Set the native input property 'value'
1308
+ */
1309
+ /**
1310
+ * Convert a given obj to a valid date object
1311
+ */
1312
+ private getValidDate;
1313
+ /**
1314
+ * Convert a time string to a date-time string
1315
+ * When pickerType is 'timer', the value in the picker's input is a time string.
1316
+ * The dateTimeAdapter parse fn could not parse a time string to a Date Object.
1317
+ * Therefore we need this fn to convert a time string to a date-time string.
1318
+ */
1319
+ private convertTimeStringToDateTimeString;
1320
+ /**
1321
+ * Handle input change in single mode
1322
+ */
1323
+ private changeInputInSingleMode;
1324
+ /**
1325
+ * Handle input change in rangeFrom or rangeTo mode
1326
+ */
1327
+ private changeInputInRangeFromToMode;
1328
+ /**
1329
+ * Handle input change in range mode
1330
+ */
1331
+ private changeInputInRangeMode;
1332
+ /**
1333
+ * Check if the two value is the same
1334
+ */
1335
+ private isSameValue;
1336
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputDirective<any>, never>;
1337
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeInputDirective<any>, "input[nxtDateTime]", ["nxtDateTimeInput"], {
1338
+ "dateTime": {
1339
+ "alias": "nxtDateTime";
1340
+ "required": false;
1341
+ "isSignal": true;
1342
+ };
1343
+ "dateTimeFilter": {
1344
+ "alias": "dateTimeFilter";
1345
+ "required": false;
1346
+ "isSignal": true;
1347
+ };
1348
+ "_disabled": {
1349
+ "alias": "disabled";
1350
+ "required": false;
1351
+ "isSignal": true;
1352
+ };
1353
+ "min": {
1354
+ "alias": "min";
1355
+ "required": false;
1356
+ "isSignal": true;
1357
+ };
1358
+ "max": {
1359
+ "alias": "max";
1360
+ "required": false;
1361
+ "isSignal": true;
1362
+ };
1363
+ "selectMode": {
1364
+ "alias": "selectMode";
1365
+ "required": false;
1366
+ "isSignal": true;
1367
+ };
1368
+ "rangeSeparator": {
1369
+ "alias": "rangeSeparator";
1370
+ "required": false;
1371
+ "isSignal": true;
1372
+ };
1373
+ "_valueInput": {
1374
+ "alias": "value";
1375
+ "required": false;
1376
+ "isSignal": true;
1377
+ };
1378
+ "_valuesInput": {
1379
+ "alias": "values";
1380
+ "required": false;
1381
+ "isSignal": true;
1382
+ };
1383
+ }, {
1384
+ "dateTimeChange": "dateTimeChange";
1385
+ "dateTimeInput": "dateTimeInput";
1386
+ "valueChange": "valueChange";
1387
+ "disabledChange": "disabledChange";
1388
+ }, never, never, true, never>;
1022
1389
  }
1023
-
1024
- declare class DateTimeIntl {
1025
- /** A label for the up second button (used by screen readers). */
1026
- readonly upSecondLabel: _angular_core.WritableSignal<string>;
1027
- /** A label for the down second button (used by screen readers). */
1028
- readonly downSecondLabel: _angular_core.WritableSignal<string>;
1029
- /** A label for the up minute button (used by screen readers). */
1030
- readonly upMinuteLabel: _angular_core.WritableSignal<string>;
1031
- /** A label for the down minute button (used by screen readers). */
1032
- readonly downMinuteLabel: _angular_core.WritableSignal<string>;
1033
- /** A label for the up hour button (used by screen readers). */
1034
- readonly upHourLabel: _angular_core.WritableSignal<string>;
1035
- /** A label for the down hour button (used by screen readers). */
1036
- readonly downHourLabel: _angular_core.WritableSignal<string>;
1037
- /** A label for the previous month button (used by screen readers) */
1038
- readonly prevMonthLabel: _angular_core.WritableSignal<string>;
1039
- /** A label for the next month button (used by screen readers) */
1040
- readonly nextMonthLabel: _angular_core.WritableSignal<string>;
1041
- /** A label for the previous year button (used by screen readers) */
1042
- readonly prevYearLabel: _angular_core.WritableSignal<string>;
1043
- /** A label for the next year button (used by screen readers) */
1044
- readonly nextYearLabel: _angular_core.WritableSignal<string>;
1045
- /** A label for the previous multi-year button (used by screen readers) */
1046
- readonly prevMultiYearLabel: _angular_core.WritableSignal<string>;
1047
- /** A label for the next multi-year button (used by screen readers) */
1048
- readonly nextMultiYearLabel: _angular_core.WritableSignal<string>;
1049
- /** A label for the 'switch to month view' button (used by screen readers) */
1050
- readonly switchToMonthViewLabel: _angular_core.WritableSignal<string>;
1051
- /** A label for the 'switch to year view' button (used by screen readers) */
1052
- readonly switchToMultiYearViewLabel: _angular_core.WritableSignal<string>;
1053
- /** A label for the cancel button */
1054
- readonly cancelBtnLabel: _angular_core.WritableSignal<string>;
1055
- /** A label for the set button */
1056
- readonly setBtnLabel: _angular_core.WritableSignal<string>;
1057
- /** A label for the range 'from' in picker info */
1058
- readonly rangeFromLabel: _angular_core.WritableSignal<string>;
1059
- /** A label for the range 'to' in picker info */
1060
- readonly rangeToLabel: _angular_core.WritableSignal<string>;
1061
- /** A label for the hour12 button (AM) */
1062
- readonly hour12AMLabel: _angular_core.WritableSignal<string>;
1063
- /** A label for the hour12 button (PM) */
1064
- readonly hour12PMLabel: _angular_core.WritableSignal<string>;
1065
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeIntl, never>;
1066
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<DateTimeIntl>;
1390
+ export declare class DateTimeIntl {
1391
+ /** A label for the up second button (used by screen readers). */
1392
+ readonly upSecondLabel: import("@angular/core").WritableSignal<string>;
1393
+ /** A label for the down second button (used by screen readers). */
1394
+ readonly downSecondLabel: import("@angular/core").WritableSignal<string>;
1395
+ /** A label for the up minute button (used by screen readers). */
1396
+ readonly upMinuteLabel: import("@angular/core").WritableSignal<string>;
1397
+ /** A label for the down minute button (used by screen readers). */
1398
+ readonly downMinuteLabel: import("@angular/core").WritableSignal<string>;
1399
+ /** A label for the up hour button (used by screen readers). */
1400
+ readonly upHourLabel: import("@angular/core").WritableSignal<string>;
1401
+ /** A label for the down hour button (used by screen readers). */
1402
+ readonly downHourLabel: import("@angular/core").WritableSignal<string>;
1403
+ /** A label for the previous month button (used by screen readers) */
1404
+ readonly prevMonthLabel: import("@angular/core").WritableSignal<string>;
1405
+ /** A label for the next month button (used by screen readers) */
1406
+ readonly nextMonthLabel: import("@angular/core").WritableSignal<string>;
1407
+ /** A label for the previous year button (used by screen readers) */
1408
+ readonly prevYearLabel: import("@angular/core").WritableSignal<string>;
1409
+ /** A label for the next year button (used by screen readers) */
1410
+ readonly nextYearLabel: import("@angular/core").WritableSignal<string>;
1411
+ /** A label for the previous multi-year button (used by screen readers) */
1412
+ readonly prevMultiYearLabel: import("@angular/core").WritableSignal<string>;
1413
+ /** A label for the next multi-year button (used by screen readers) */
1414
+ readonly nextMultiYearLabel: import("@angular/core").WritableSignal<string>;
1415
+ /** A label for the 'switch to month view' button (used by screen readers) */
1416
+ readonly switchToMonthViewLabel: import("@angular/core").WritableSignal<string>;
1417
+ /** A label for the 'switch to year view' button (used by screen readers) */
1418
+ readonly switchToMultiYearViewLabel: import("@angular/core").WritableSignal<string>;
1419
+ /** A label for the cancel button */
1420
+ readonly cancelBtnLabel: import("@angular/core").WritableSignal<string>;
1421
+ /** A label for the set button */
1422
+ readonly setBtnLabel: import("@angular/core").WritableSignal<string>;
1423
+ /** A label for the range 'from' in picker info */
1424
+ readonly rangeFromLabel: import("@angular/core").WritableSignal<string>;
1425
+ /** A label for the range 'to' in picker info */
1426
+ readonly rangeToLabel: import("@angular/core").WritableSignal<string>;
1427
+ /** A label for the hour12 button (AM) */
1428
+ readonly hour12AMLabel: import("@angular/core").WritableSignal<string>;
1429
+ /** A label for the hour12 button (PM) */
1430
+ readonly hour12PMLabel: import("@angular/core").WritableSignal<string>;
1431
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeIntl, never>;
1432
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
1067
1433
  }
1068
-
1069
- declare class DateTimeTriggerDirective<T> {
1070
- readonly dtPicker: _angular_core.InputSignal<DateTimeComponent<T> | undefined>;
1071
- /** Use the event to calculate origin when opening in dialog mode */
1072
- readonly dialogOrigin: _angular_core.InputSignal<boolean>;
1073
- readonly _disabled: _angular_core.InputSignal<boolean | undefined>;
1074
- readonly disabled: _angular_core.Signal<boolean>;
1075
- handleClickOnHost(event: PointerEvent): void;
1076
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
1077
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, { "dtPicker": { "alias": "nxtDateTimeTrigger"; "required": false; "isSignal": true; }; "dialogOrigin": { "alias": "dialogOrigin"; "required": false; "isSignal": true; }; "_disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1434
+ export declare class DateTimeTriggerDirective<T> {
1435
+ readonly dtPicker: import("@angular/core").InputSignal<DateTimeComponent<T> | undefined>;
1436
+ /** Use the event to calculate origin when opening in dialog mode */
1437
+ readonly dialogOrigin: import("@angular/core").InputSignal<boolean>;
1438
+ readonly _disabled: import("@angular/core").InputSignal<boolean | undefined>;
1439
+ readonly disabled: import("@angular/core").Signal<boolean>;
1440
+ handleClickOnHost(event: PointerEvent): void;
1441
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeTriggerDirective<any>, never>;
1442
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateTimeTriggerDirective<any>, "[nxtDateTimeTrigger]", never, {
1443
+ "dtPicker": {
1444
+ "alias": "nxtDateTimeTrigger";
1445
+ "required": false;
1446
+ "isSignal": true;
1447
+ };
1448
+ "dialogOrigin": {
1449
+ "alias": "dialogOrigin";
1450
+ "required": false;
1451
+ "isSignal": true;
1452
+ };
1453
+ "_disabled": {
1454
+ "alias": "disabled";
1455
+ "required": false;
1456
+ "isSignal": true;
1457
+ };
1458
+ }, {}, never, never, true, never>;
1078
1459
  }
1079
-
1080
- declare class TimerComponent<T> {
1081
- private readonly ngZone;
1082
- private readonly injector;
1083
- private readonly destroyRef;
1084
- private readonly elmRef;
1085
- private readonly pickerIntl;
1086
- private readonly dateTimeAdapter;
1087
- /** The current picker moment */
1088
- readonly pickerMoment: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
1089
- /** The minimum selectable date time */
1090
- readonly min: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
1091
- /** The maximum selectable date time */
1092
- readonly max: _angular_core.InputSignalWithTransform<T | undefined, T | undefined>;
1093
- /**
1094
- * Whether to show the second's timer
1095
- */
1096
- readonly showSecondsTimer: _angular_core.InputSignal<boolean>;
1097
- /**
1098
- * Whether the timer is in hour12 format
1099
- */
1100
- readonly hour12Timer: _angular_core.InputSignal<boolean>;
1101
- /**
1102
- * Hours to change per step
1103
- */
1104
- readonly stepHour: _angular_core.InputSignal<number>;
1105
- /**
1106
- * Minutes to change per step
1107
- */
1108
- readonly stepMinute: _angular_core.InputSignal<number>;
1109
- /**
1110
- * Seconds to change per step
1111
- */
1112
- readonly stepSecond: _angular_core.InputSignal<number>;
1113
- readonly hourValue: _angular_core.Signal<number>;
1114
- private readonly hoursWithPM;
1115
- private _isPM;
1116
- private readonly isPM;
1117
- /**
1118
- * The value would be displayed in hourBox.
1119
- * We need this because the value displayed in hourBox it not
1120
- * the same as the hourValue when the timer is in hour12Timer mode.
1121
- */
1122
- readonly hourBoxValue: _angular_core.Signal<number>;
1123
- readonly minuteValue: _angular_core.Signal<number>;
1124
- readonly secondValue: _angular_core.Signal<number>;
1125
- readonly upHourButtonLabel: _angular_core.Signal<string>;
1126
- readonly downHourButtonLabel: _angular_core.Signal<string>;
1127
- readonly upMinuteButtonLabel: _angular_core.Signal<string>;
1128
- readonly downMinuteButtonLabel: _angular_core.Signal<string>;
1129
- readonly upSecondButtonLabel: _angular_core.Signal<string>;
1130
- readonly downSecondButtonLabel: _angular_core.Signal<string>;
1131
- readonly hour12ButtonLabel: _angular_core.Signal<string>;
1132
- readonly selectedChange: _angular_core.OutputEmitterRef<T>;
1133
- /**
1134
- * Focus to the host element
1135
- */
1136
- focus(): void;
1137
- /**
1138
- * Set the hour value via typing into timer box input
1139
- * We need this to handle the hour value when the timer is in hour12 mode
1140
- */
1141
- setHourValueViaInput(hours: number): void;
1142
- setHourValue(hours: number): void;
1143
- setMinuteValue(minutes: number): void;
1144
- setSecondValue(seconds: number): void;
1145
- setMeridiem(event: any): void;
1146
- /**
1147
- * Check if the up hour button is enabled
1148
- */
1149
- readonly upHourEnabled: _angular_core.Signal<boolean>;
1150
- /**
1151
- * Check if the down hour button is enabled
1152
- */
1153
- readonly downHourEnabled: _angular_core.Signal<boolean>;
1154
- /**
1155
- * Check if the up minute button is enabled
1156
- */
1157
- readonly upMinuteEnabled: _angular_core.Signal<boolean>;
1158
- /**
1159
- * Check if the down minute button is enabled
1160
- */
1161
- readonly downMinuteEnabled: _angular_core.Signal<boolean>;
1162
- /**
1163
- * Check if the up second button is enabled
1164
- */
1165
- readonly upSecondEnabled: _angular_core.Signal<boolean>;
1166
- /**
1167
- * Check if the down second button is enabled
1168
- */
1169
- readonly downSecondEnabled: _angular_core.Signal<boolean>;
1170
- /**
1171
- * PickerMoment's hour value +/- certain amount and compare it to the give date
1172
- * 1 is after the comparedDate
1173
- * -1 is before the comparedDate
1174
- * 0 is equal the comparedDate
1175
- */
1176
- private compareHours;
1177
- /**
1178
- * PickerMoment's minute value +/- certain amount and compare it to the give date
1179
- * 1 is after the comparedDate
1180
- * -1 is before the comparedDate
1181
- * 0 is equal the comparedDate
1182
- */
1183
- private compareMinutes;
1184
- /**
1185
- * PickerMoment's second value +/- certain amount and compare it to the give date
1186
- * 1 is after the comparedDate
1187
- * -1 is before the comparedDate
1188
- * 0 is equal the comparedDate
1189
- */
1190
- private compareSeconds;
1191
- /**
1192
- * Get a valid date object
1193
- */
1194
- private getValidDate;
1195
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimerComponent<any>, never>;
1196
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimerComponent<any>, "nxt-date-time-timer", never, { "pickerMoment": { "alias": "pickerMoment"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "showSecondsTimer": { "alias": "showSecondsTimer"; "required": false; "isSignal": true; }; "hour12Timer": { "alias": "hour12Timer"; "required": false; "isSignal": true; }; "stepHour": { "alias": "stepHour"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "stepSecond": { "alias": "stepSecond"; "required": false; "isSignal": true; }; }, { "selectedChange": "selectedChange"; }, never, never, true, never>;
1460
+ export declare class TimerComponent<T> {
1461
+ private readonly ngZone;
1462
+ private readonly injector;
1463
+ private readonly destroyRef;
1464
+ private readonly elmRef;
1465
+ private readonly pickerIntl;
1466
+ private readonly dateTimeAdapter;
1467
+ /** The current picker moment */
1468
+ readonly pickerMoment: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1469
+ /** The minimum selectable date time */
1470
+ readonly min: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1471
+ /** The maximum selectable date time */
1472
+ readonly max: import("@angular/core").InputSignalWithTransform<T | undefined, T | undefined>;
1473
+ /**
1474
+ * Whether to show the second's timer
1475
+ */
1476
+ readonly showSecondsTimer: import("@angular/core").InputSignal<boolean>;
1477
+ /**
1478
+ * Whether the timer is in hour12 format
1479
+ */
1480
+ readonly hour12Timer: import("@angular/core").InputSignal<boolean>;
1481
+ /**
1482
+ * Hours to change per step
1483
+ */
1484
+ readonly stepHour: import("@angular/core").InputSignal<number>;
1485
+ /**
1486
+ * Minutes to change per step
1487
+ */
1488
+ readonly stepMinute: import("@angular/core").InputSignal<number>;
1489
+ /**
1490
+ * Seconds to change per step
1491
+ */
1492
+ readonly stepSecond: import("@angular/core").InputSignal<number>;
1493
+ readonly hourValue: import("@angular/core").Signal<number>;
1494
+ private readonly hoursWithPM;
1495
+ private _isPM;
1496
+ private readonly isPM;
1497
+ /**
1498
+ * The value would be displayed in hourBox.
1499
+ * We need this because the value displayed in hourBox it not
1500
+ * the same as the hourValue when the timer is in hour12Timer mode.
1501
+ */
1502
+ readonly hourBoxValue: import("@angular/core").Signal<number>;
1503
+ readonly minuteValue: import("@angular/core").Signal<number>;
1504
+ readonly secondValue: import("@angular/core").Signal<number>;
1505
+ readonly upHourButtonLabel: import("@angular/core").Signal<string>;
1506
+ readonly downHourButtonLabel: import("@angular/core").Signal<string>;
1507
+ readonly upMinuteButtonLabel: import("@angular/core").Signal<string>;
1508
+ readonly downMinuteButtonLabel: import("@angular/core").Signal<string>;
1509
+ readonly upSecondButtonLabel: import("@angular/core").Signal<string>;
1510
+ readonly downSecondButtonLabel: import("@angular/core").Signal<string>;
1511
+ readonly hour12ButtonLabel: import("@angular/core").Signal<string>;
1512
+ readonly selectedChange: import("@angular/core").OutputEmitterRef<T>;
1513
+ /**
1514
+ * Focus to the host element
1515
+ */
1516
+ focus(): void;
1517
+ /**
1518
+ * Set the hour value via typing into timer box input
1519
+ * We need this to handle the hour value when the timer is in hour12 mode
1520
+ */
1521
+ setHourValueViaInput(hours: number): void;
1522
+ setHourValue(hours: number): void;
1523
+ setMinuteValue(minutes: number): void;
1524
+ setSecondValue(seconds: number): void;
1525
+ setMeridiem(event: any): void;
1526
+ /**
1527
+ * Check if the up hour button is enabled
1528
+ */
1529
+ readonly upHourEnabled: import("@angular/core").Signal<boolean>;
1530
+ /**
1531
+ * Check if the down hour button is enabled
1532
+ */
1533
+ readonly downHourEnabled: import("@angular/core").Signal<boolean>;
1534
+ /**
1535
+ * Check if the up minute button is enabled
1536
+ */
1537
+ readonly upMinuteEnabled: import("@angular/core").Signal<boolean>;
1538
+ /**
1539
+ * Check if the down minute button is enabled
1540
+ */
1541
+ readonly downMinuteEnabled: import("@angular/core").Signal<boolean>;
1542
+ /**
1543
+ * Check if the up second button is enabled
1544
+ */
1545
+ readonly upSecondEnabled: import("@angular/core").Signal<boolean>;
1546
+ /**
1547
+ * Check if the down second button is enabled
1548
+ */
1549
+ readonly downSecondEnabled: import("@angular/core").Signal<boolean>;
1550
+ /**
1551
+ * PickerMoment's hour value +/- certain amount and compare it to the give date
1552
+ * 1 is after the comparedDate
1553
+ * -1 is before the comparedDate
1554
+ * 0 is equal the comparedDate
1555
+ */
1556
+ private compareHours;
1557
+ /**
1558
+ * PickerMoment's minute value +/- certain amount and compare it to the give date
1559
+ * 1 is after the comparedDate
1560
+ * -1 is before the comparedDate
1561
+ * 0 is equal the comparedDate
1562
+ */
1563
+ private compareMinutes;
1564
+ /**
1565
+ * PickerMoment's second value +/- certain amount and compare it to the give date
1566
+ * 1 is after the comparedDate
1567
+ * -1 is before the comparedDate
1568
+ * 0 is equal the comparedDate
1569
+ */
1570
+ private compareSeconds;
1571
+ /**
1572
+ * Get a valid date object
1573
+ */
1574
+ private getValidDate;
1575
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimerComponent<any>, never>;
1576
+ static ɵcmp: i0.ɵɵComponentDeclaration<TimerComponent<any>, "nxt-date-time-timer", never, {
1577
+ "pickerMoment": {
1578
+ "alias": "pickerMoment";
1579
+ "required": false;
1580
+ "isSignal": true;
1581
+ };
1582
+ "min": {
1583
+ "alias": "min";
1584
+ "required": false;
1585
+ "isSignal": true;
1586
+ };
1587
+ "max": {
1588
+ "alias": "max";
1589
+ "required": false;
1590
+ "isSignal": true;
1591
+ };
1592
+ "showSecondsTimer": {
1593
+ "alias": "showSecondsTimer";
1594
+ "required": false;
1595
+ "isSignal": true;
1596
+ };
1597
+ "hour12Timer": {
1598
+ "alias": "hour12Timer";
1599
+ "required": false;
1600
+ "isSignal": true;
1601
+ };
1602
+ "stepHour": {
1603
+ "alias": "stepHour";
1604
+ "required": false;
1605
+ "isSignal": true;
1606
+ };
1607
+ "stepMinute": {
1608
+ "alias": "stepMinute";
1609
+ "required": false;
1610
+ "isSignal": true;
1611
+ };
1612
+ "stepSecond": {
1613
+ "alias": "stepSecond";
1614
+ "required": false;
1615
+ "isSignal": true;
1616
+ };
1617
+ }, {
1618
+ "selectedChange": "selectedChange";
1619
+ }, never, never, true, never>;
1197
1620
  }
1198
-
1199
- export { CalendarComponent, DateTimeAdapter, DateTimeComponent, DateTimeInlineComponent, DateTimeInputDirective, DateTimeIntl, DateTimeTriggerDirective, MonthViewComponent, MultiYearViewComponent, NXT_DATE_TIME_FORMATS, TimerComponent, YearViewComponent };
1200
- export type { DateFilter, DateTimeFormats, DateTimeInputEvent, PickerMode, PickerType, RenderItem, SelectMode, ViewType };
1621
+ export {};