@tailng-ui/primitives 0.31.0 → 0.33.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.
@@ -0,0 +1,3085 @@
1
+ import { Injector, type OnInit, type Signal } from '@angular/core';
2
+ import type { TngDatepickerAttributeMap, TngDatepickerController, TngDatepickerOutputs } from './datepicker.types';
3
+ import * as i0 from "@angular/core";
4
+ type TngDatepickerControllerLike = TngDatepickerController<any>;
5
+ export type TngBoundDatepicker<TDate> = Readonly<{
6
+ outputs: Signal<TngDatepickerOutputs<TDate>>;
7
+ periodLabel: Signal<string>;
8
+ }>;
9
+ export declare function resolveTngDatepickerPeriodLabel<TDate>(controller: TngDatepickerController<TDate>, outputs: TngDatepickerOutputs<TDate>): string;
10
+ export declare function bindTngDatepicker<TDate>(controller: TngDatepickerController<TDate>): TngBoundDatepicker<TDate>;
11
+ declare abstract class TngDatepickerControllerPart implements OnInit {
12
+ protected readonly injector: Injector;
13
+ protected readonly ownerDocument: any;
14
+ protected readonly renderVersion: import("@angular/core").WritableSignal<number>;
15
+ abstract readonly controller: Signal<TngDatepickerControllerLike>;
16
+ ngOnInit(): void;
17
+ protected syncOverlayFocus(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerControllerPart, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerControllerPart, never, never, {}, {}, never, never, true, never>;
20
+ }
21
+ export declare class TngDatepickerHost extends TngDatepickerControllerPart {
22
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
23
+ clear: () => void;
24
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
25
+ commitInputText: () => boolean;
26
+ destroy: () => void;
27
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
28
+ getOutputs: () => Readonly<{
29
+ activeDate: any;
30
+ cells: readonly Readonly<{
31
+ active: boolean;
32
+ colIndex: number;
33
+ date: any;
34
+ disabled: boolean;
35
+ focusVisible: boolean;
36
+ hidden: boolean;
37
+ id: string;
38
+ inMonth: boolean;
39
+ inRange: boolean;
40
+ label: string;
41
+ rangeEnd: boolean;
42
+ rangeStart: boolean;
43
+ rowIndex: number;
44
+ selected: boolean;
45
+ tabindex: -1 | 0;
46
+ today: boolean;
47
+ }>[];
48
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
49
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
50
+ getGridAttributes: () => TngDatepickerAttributeMap;
51
+ getHostAttributes: () => TngDatepickerAttributeMap;
52
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
53
+ active: boolean;
54
+ date: any;
55
+ disabled: boolean;
56
+ focusVisible: boolean;
57
+ id: string;
58
+ index: number;
59
+ label: string;
60
+ selected: boolean;
61
+ tabindex: -1 | 0;
62
+ }>>) => TngDatepickerAttributeMap;
63
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
64
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
65
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
66
+ active: boolean;
67
+ date: any;
68
+ disabled: boolean;
69
+ focusVisible: boolean;
70
+ id: string;
71
+ label: string;
72
+ selected: boolean;
73
+ tabindex: -1 | 0;
74
+ year: number;
75
+ }>>) => TngDatepickerAttributeMap;
76
+ inputText: string;
77
+ labelMonthYear: string;
78
+ layout: Readonly<{
79
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
80
+ offsetX: number;
81
+ width: number;
82
+ }>;
83
+ monthOptions: readonly Readonly<{
84
+ active: boolean;
85
+ date: any;
86
+ disabled: boolean;
87
+ focusVisible: boolean;
88
+ id: string;
89
+ index: number;
90
+ label: string;
91
+ selected: boolean;
92
+ tabindex: -1 | 0;
93
+ }>[];
94
+ open: boolean;
95
+ validationError: string | null;
96
+ value: any;
97
+ view: import("./datepicker.types").TngCalendarView;
98
+ visibleMonth: any;
99
+ weekdayLabels: readonly string[];
100
+ yearOptions: readonly Readonly<{
101
+ active: boolean;
102
+ date: any;
103
+ disabled: boolean;
104
+ focusVisible: boolean;
105
+ id: string;
106
+ label: string;
107
+ selected: boolean;
108
+ tabindex: -1 | 0;
109
+ year: number;
110
+ }>[];
111
+ }>;
112
+ getState: () => Readonly<{
113
+ activeDate: any;
114
+ disabled: boolean;
115
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
116
+ inputText: string;
117
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
118
+ open: boolean;
119
+ validationError: string | null;
120
+ value: any;
121
+ view: import("./datepicker.types").TngCalendarView;
122
+ visibleMonth: any;
123
+ }>;
124
+ goToNextMonth: () => void;
125
+ goToPrevMonth: () => void;
126
+ handleCellClick: (date: any, options?: Readonly<{
127
+ shiftKey?: boolean;
128
+ }>) => void;
129
+ handleCellPointerEnter: (date: any) => void;
130
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
131
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
132
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
133
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
134
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
135
+ nextMonth: () => void;
136
+ nextYear: () => void;
137
+ open: () => void;
138
+ parseInputText: (text: string) => any;
139
+ prevMonth: () => void;
140
+ prevYear: () => void;
141
+ registerOverlay: (element: HTMLElement | null) => void;
142
+ registerTrigger: (element: HTMLElement | null) => void;
143
+ selectDate: (date: any, options?: Readonly<{
144
+ shiftKey?: boolean;
145
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
146
+ }>) => void;
147
+ selectMonth: (monthIndex: number) => void;
148
+ selectYear: (year: number) => void;
149
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
150
+ setConfig: (config: Partial<Readonly<{
151
+ adapter?: Readonly<{
152
+ addDays: (date: any, amount: number) => any;
153
+ addMonths: (date: any, amount: number) => any;
154
+ addYears: (date: any, amount: number) => any;
155
+ compare: (left: any, right: any) => -1 | 0 | 1;
156
+ createDate: (year: number, month: number, day: number) => any;
157
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
158
+ endOfMonth: (date: any) => any;
159
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
160
+ getDate: (date: any) => number;
161
+ getDay: (date: any) => number;
162
+ getMonth: (date: any) => number;
163
+ getYear: (date: any) => number;
164
+ isValid: (date: any) => boolean;
165
+ parse: (text: string, locale?: string) => any;
166
+ startOfMonth: (date: any) => any;
167
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
168
+ today: () => any;
169
+ }> | undefined;
170
+ allowDeselect?: boolean;
171
+ allowManualInput?: boolean;
172
+ ariaDescribedBy?: string | null;
173
+ ariaLabel?: string | null;
174
+ ariaLabelledBy?: string | null;
175
+ autoCommitView?: boolean;
176
+ closeOnEscape?: boolean;
177
+ closeOnOutsideClick?: boolean;
178
+ closeOnSelect?: boolean;
179
+ closeOthersOnOpen?: boolean;
180
+ defaultOpen?: boolean;
181
+ direction?: import("./datepicker.types").TngDatepickerDirection;
182
+ disableDate?: ((date: any) => boolean) | undefined;
183
+ disabled?: boolean;
184
+ enableMultipleRangeSelection?: boolean;
185
+ enableRangeSelection?: boolean;
186
+ enableTypeahead?: boolean;
187
+ fixedWeeks?: boolean;
188
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
189
+ id?: string;
190
+ initialView?: import("./datepicker.types").TngCalendarView;
191
+ locale?: string;
192
+ max?: any;
193
+ maxDate?: any;
194
+ maxSelections?: number | null;
195
+ min?: any;
196
+ minDate?: any;
197
+ onPartialInputCommit?: boolean;
198
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
199
+ overlayRuntime?: Readonly<{
200
+ clearLayers: () => void;
201
+ dispatchKeydown: (event: Readonly<Readonly<{
202
+ defaultPrevented?: boolean;
203
+ key: string;
204
+ preventDefault?: () => void;
205
+ }>>) => void;
206
+ dispatchPointerDown: (event: Readonly<Readonly<{
207
+ composedPath?: () => readonly unknown[];
208
+ defaultPrevented?: boolean;
209
+ preventDefault?: () => void;
210
+ target: unknown;
211
+ }>>) => void;
212
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
213
+ getLayerIds: () => readonly string[];
214
+ isTopLayer: (id: string) => boolean;
215
+ registerLayer: (layer: Readonly<{
216
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
217
+ dismissOnEscape?: boolean;
218
+ dismissOnOutsidePointer?: boolean;
219
+ id: string;
220
+ modal?: boolean;
221
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
222
+ priority?: number;
223
+ }>) => void;
224
+ unregisterLayer: (id: string) => void;
225
+ }> | null | undefined;
226
+ overlaySize?: number;
227
+ ownerDocument?: Document | null;
228
+ position?: import("./datepicker.types").TngDatepickerPosition;
229
+ preserveViewOnOpenClose?: boolean;
230
+ restoreFocus?: boolean;
231
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
232
+ showOutsideDays?: boolean;
233
+ skipDisabled?: boolean;
234
+ today?: any;
235
+ trapFocus?: boolean;
236
+ value?: any;
237
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
238
+ yearPageSize?: number;
239
+ }>>) => void;
240
+ setDisabled: (disabled: boolean) => void;
241
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
242
+ setInputText: (text: string) => void;
243
+ setOpen: (open: boolean) => void;
244
+ setState: (patch: Readonly<{
245
+ activeDate?: any;
246
+ disabled?: boolean;
247
+ inputText?: string;
248
+ value?: any;
249
+ view?: import("./datepicker.types").TngCalendarView;
250
+ visibleMonth?: any;
251
+ }>) => void;
252
+ setValue: (value: any) => void;
253
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
254
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
255
+ setVisibleYear: (year: number) => void;
256
+ showDaysPanel: () => void;
257
+ showMonthsPanel: () => void;
258
+ showYearsPanel: () => void;
259
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
260
+ toggleOpen: () => void;
261
+ }>>;
262
+ private readonly attributes;
263
+ protected get ariaDescribedby(): string | null;
264
+ protected get ariaLabel(): string | null;
265
+ protected get ariaLabelledby(): string | null;
266
+ protected get dataDisabled(): string | null;
267
+ protected get dataOpen(): string | null;
268
+ protected get dataSlot(): string | null;
269
+ protected get dataView(): string | null;
270
+ protected get dir(): string | null;
271
+ protected get role(): string | null;
272
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerHost, never>;
273
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerHost, "[tngDatepickerHost]", ["tngDatepickerHost"], { "controller": { "alias": "tngDatepickerHost"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
274
+ }
275
+ export declare class TngDatepickerInput extends TngDatepickerControllerPart {
276
+ private readonly inputElement;
277
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
278
+ clear: () => void;
279
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
280
+ commitInputText: () => boolean;
281
+ destroy: () => void;
282
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
283
+ getOutputs: () => Readonly<{
284
+ activeDate: any;
285
+ cells: readonly Readonly<{
286
+ active: boolean;
287
+ colIndex: number;
288
+ date: any;
289
+ disabled: boolean;
290
+ focusVisible: boolean;
291
+ hidden: boolean;
292
+ id: string;
293
+ inMonth: boolean;
294
+ inRange: boolean;
295
+ label: string;
296
+ rangeEnd: boolean;
297
+ rangeStart: boolean;
298
+ rowIndex: number;
299
+ selected: boolean;
300
+ tabindex: -1 | 0;
301
+ today: boolean;
302
+ }>[];
303
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
304
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
305
+ getGridAttributes: () => TngDatepickerAttributeMap;
306
+ getHostAttributes: () => TngDatepickerAttributeMap;
307
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
308
+ active: boolean;
309
+ date: any;
310
+ disabled: boolean;
311
+ focusVisible: boolean;
312
+ id: string;
313
+ index: number;
314
+ label: string;
315
+ selected: boolean;
316
+ tabindex: -1 | 0;
317
+ }>>) => TngDatepickerAttributeMap;
318
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
319
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
320
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
321
+ active: boolean;
322
+ date: any;
323
+ disabled: boolean;
324
+ focusVisible: boolean;
325
+ id: string;
326
+ label: string;
327
+ selected: boolean;
328
+ tabindex: -1 | 0;
329
+ year: number;
330
+ }>>) => TngDatepickerAttributeMap;
331
+ inputText: string;
332
+ labelMonthYear: string;
333
+ layout: Readonly<{
334
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
335
+ offsetX: number;
336
+ width: number;
337
+ }>;
338
+ monthOptions: readonly Readonly<{
339
+ active: boolean;
340
+ date: any;
341
+ disabled: boolean;
342
+ focusVisible: boolean;
343
+ id: string;
344
+ index: number;
345
+ label: string;
346
+ selected: boolean;
347
+ tabindex: -1 | 0;
348
+ }>[];
349
+ open: boolean;
350
+ validationError: string | null;
351
+ value: any;
352
+ view: import("./datepicker.types").TngCalendarView;
353
+ visibleMonth: any;
354
+ weekdayLabels: readonly string[];
355
+ yearOptions: readonly Readonly<{
356
+ active: boolean;
357
+ date: any;
358
+ disabled: boolean;
359
+ focusVisible: boolean;
360
+ id: string;
361
+ label: string;
362
+ selected: boolean;
363
+ tabindex: -1 | 0;
364
+ year: number;
365
+ }>[];
366
+ }>;
367
+ getState: () => Readonly<{
368
+ activeDate: any;
369
+ disabled: boolean;
370
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
371
+ inputText: string;
372
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
373
+ open: boolean;
374
+ validationError: string | null;
375
+ value: any;
376
+ view: import("./datepicker.types").TngCalendarView;
377
+ visibleMonth: any;
378
+ }>;
379
+ goToNextMonth: () => void;
380
+ goToPrevMonth: () => void;
381
+ handleCellClick: (date: any, options?: Readonly<{
382
+ shiftKey?: boolean;
383
+ }>) => void;
384
+ handleCellPointerEnter: (date: any) => void;
385
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
386
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
387
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
388
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
389
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
390
+ nextMonth: () => void;
391
+ nextYear: () => void;
392
+ open: () => void;
393
+ parseInputText: (text: string) => any;
394
+ prevMonth: () => void;
395
+ prevYear: () => void;
396
+ registerOverlay: (element: HTMLElement | null) => void;
397
+ registerTrigger: (element: HTMLElement | null) => void;
398
+ selectDate: (date: any, options?: Readonly<{
399
+ shiftKey?: boolean;
400
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
401
+ }>) => void;
402
+ selectMonth: (monthIndex: number) => void;
403
+ selectYear: (year: number) => void;
404
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
405
+ setConfig: (config: Partial<Readonly<{
406
+ adapter?: Readonly<{
407
+ addDays: (date: any, amount: number) => any;
408
+ addMonths: (date: any, amount: number) => any;
409
+ addYears: (date: any, amount: number) => any;
410
+ compare: (left: any, right: any) => -1 | 0 | 1;
411
+ createDate: (year: number, month: number, day: number) => any;
412
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
413
+ endOfMonth: (date: any) => any;
414
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
415
+ getDate: (date: any) => number;
416
+ getDay: (date: any) => number;
417
+ getMonth: (date: any) => number;
418
+ getYear: (date: any) => number;
419
+ isValid: (date: any) => boolean;
420
+ parse: (text: string, locale?: string) => any;
421
+ startOfMonth: (date: any) => any;
422
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
423
+ today: () => any;
424
+ }> | undefined;
425
+ allowDeselect?: boolean;
426
+ allowManualInput?: boolean;
427
+ ariaDescribedBy?: string | null;
428
+ ariaLabel?: string | null;
429
+ ariaLabelledBy?: string | null;
430
+ autoCommitView?: boolean;
431
+ closeOnEscape?: boolean;
432
+ closeOnOutsideClick?: boolean;
433
+ closeOnSelect?: boolean;
434
+ closeOthersOnOpen?: boolean;
435
+ defaultOpen?: boolean;
436
+ direction?: import("./datepicker.types").TngDatepickerDirection;
437
+ disableDate?: ((date: any) => boolean) | undefined;
438
+ disabled?: boolean;
439
+ enableMultipleRangeSelection?: boolean;
440
+ enableRangeSelection?: boolean;
441
+ enableTypeahead?: boolean;
442
+ fixedWeeks?: boolean;
443
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
444
+ id?: string;
445
+ initialView?: import("./datepicker.types").TngCalendarView;
446
+ locale?: string;
447
+ max?: any;
448
+ maxDate?: any;
449
+ maxSelections?: number | null;
450
+ min?: any;
451
+ minDate?: any;
452
+ onPartialInputCommit?: boolean;
453
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
454
+ overlayRuntime?: Readonly<{
455
+ clearLayers: () => void;
456
+ dispatchKeydown: (event: Readonly<Readonly<{
457
+ defaultPrevented?: boolean;
458
+ key: string;
459
+ preventDefault?: () => void;
460
+ }>>) => void;
461
+ dispatchPointerDown: (event: Readonly<Readonly<{
462
+ composedPath?: () => readonly unknown[];
463
+ defaultPrevented?: boolean;
464
+ preventDefault?: () => void;
465
+ target: unknown;
466
+ }>>) => void;
467
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
468
+ getLayerIds: () => readonly string[];
469
+ isTopLayer: (id: string) => boolean;
470
+ registerLayer: (layer: Readonly<{
471
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
472
+ dismissOnEscape?: boolean;
473
+ dismissOnOutsidePointer?: boolean;
474
+ id: string;
475
+ modal?: boolean;
476
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
477
+ priority?: number;
478
+ }>) => void;
479
+ unregisterLayer: (id: string) => void;
480
+ }> | null | undefined;
481
+ overlaySize?: number;
482
+ ownerDocument?: Document | null;
483
+ position?: import("./datepicker.types").TngDatepickerPosition;
484
+ preserveViewOnOpenClose?: boolean;
485
+ restoreFocus?: boolean;
486
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
487
+ showOutsideDays?: boolean;
488
+ skipDisabled?: boolean;
489
+ today?: any;
490
+ trapFocus?: boolean;
491
+ value?: any;
492
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
493
+ yearPageSize?: number;
494
+ }>>) => void;
495
+ setDisabled: (disabled: boolean) => void;
496
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
497
+ setInputText: (text: string) => void;
498
+ setOpen: (open: boolean) => void;
499
+ setState: (patch: Readonly<{
500
+ activeDate?: any;
501
+ disabled?: boolean;
502
+ inputText?: string;
503
+ value?: any;
504
+ view?: import("./datepicker.types").TngCalendarView;
505
+ visibleMonth?: any;
506
+ }>) => void;
507
+ setValue: (value: any) => void;
508
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
509
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
510
+ setVisibleYear: (year: number) => void;
511
+ showDaysPanel: () => void;
512
+ showMonthsPanel: () => void;
513
+ showYearsPanel: () => void;
514
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
515
+ toggleOpen: () => void;
516
+ }>>;
517
+ protected readonly dataSlot: "datepicker-input";
518
+ protected get valueProp(): string;
519
+ protected get ariaInvalid(): 'true' | null;
520
+ protected onBlur(): void;
521
+ protected onInput(): void;
522
+ protected onClick(): void;
523
+ protected onKeydown(event: KeyboardEvent): void;
524
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerInput, never>;
525
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerInput, "input[tngDatepickerInput]", ["tngDatepickerInput"], { "controller": { "alias": "tngDatepickerInput"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
526
+ }
527
+ export declare class TngDatepickerTrigger extends TngDatepickerControllerPart {
528
+ private readonly elementRef;
529
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
530
+ clear: () => void;
531
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
532
+ commitInputText: () => boolean;
533
+ destroy: () => void;
534
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
535
+ getOutputs: () => Readonly<{
536
+ activeDate: any;
537
+ cells: readonly Readonly<{
538
+ active: boolean;
539
+ colIndex: number;
540
+ date: any;
541
+ disabled: boolean;
542
+ focusVisible: boolean;
543
+ hidden: boolean;
544
+ id: string;
545
+ inMonth: boolean;
546
+ inRange: boolean;
547
+ label: string;
548
+ rangeEnd: boolean;
549
+ rangeStart: boolean;
550
+ rowIndex: number;
551
+ selected: boolean;
552
+ tabindex: -1 | 0;
553
+ today: boolean;
554
+ }>[];
555
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
556
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
557
+ getGridAttributes: () => TngDatepickerAttributeMap;
558
+ getHostAttributes: () => TngDatepickerAttributeMap;
559
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
560
+ active: boolean;
561
+ date: any;
562
+ disabled: boolean;
563
+ focusVisible: boolean;
564
+ id: string;
565
+ index: number;
566
+ label: string;
567
+ selected: boolean;
568
+ tabindex: -1 | 0;
569
+ }>>) => TngDatepickerAttributeMap;
570
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
571
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
572
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
573
+ active: boolean;
574
+ date: any;
575
+ disabled: boolean;
576
+ focusVisible: boolean;
577
+ id: string;
578
+ label: string;
579
+ selected: boolean;
580
+ tabindex: -1 | 0;
581
+ year: number;
582
+ }>>) => TngDatepickerAttributeMap;
583
+ inputText: string;
584
+ labelMonthYear: string;
585
+ layout: Readonly<{
586
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
587
+ offsetX: number;
588
+ width: number;
589
+ }>;
590
+ monthOptions: readonly Readonly<{
591
+ active: boolean;
592
+ date: any;
593
+ disabled: boolean;
594
+ focusVisible: boolean;
595
+ id: string;
596
+ index: number;
597
+ label: string;
598
+ selected: boolean;
599
+ tabindex: -1 | 0;
600
+ }>[];
601
+ open: boolean;
602
+ validationError: string | null;
603
+ value: any;
604
+ view: import("./datepicker.types").TngCalendarView;
605
+ visibleMonth: any;
606
+ weekdayLabels: readonly string[];
607
+ yearOptions: readonly Readonly<{
608
+ active: boolean;
609
+ date: any;
610
+ disabled: boolean;
611
+ focusVisible: boolean;
612
+ id: string;
613
+ label: string;
614
+ selected: boolean;
615
+ tabindex: -1 | 0;
616
+ year: number;
617
+ }>[];
618
+ }>;
619
+ getState: () => Readonly<{
620
+ activeDate: any;
621
+ disabled: boolean;
622
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
623
+ inputText: string;
624
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
625
+ open: boolean;
626
+ validationError: string | null;
627
+ value: any;
628
+ view: import("./datepicker.types").TngCalendarView;
629
+ visibleMonth: any;
630
+ }>;
631
+ goToNextMonth: () => void;
632
+ goToPrevMonth: () => void;
633
+ handleCellClick: (date: any, options?: Readonly<{
634
+ shiftKey?: boolean;
635
+ }>) => void;
636
+ handleCellPointerEnter: (date: any) => void;
637
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
638
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
639
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
640
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
641
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
642
+ nextMonth: () => void;
643
+ nextYear: () => void;
644
+ open: () => void;
645
+ parseInputText: (text: string) => any;
646
+ prevMonth: () => void;
647
+ prevYear: () => void;
648
+ registerOverlay: (element: HTMLElement | null) => void;
649
+ registerTrigger: (element: HTMLElement | null) => void;
650
+ selectDate: (date: any, options?: Readonly<{
651
+ shiftKey?: boolean;
652
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
653
+ }>) => void;
654
+ selectMonth: (monthIndex: number) => void;
655
+ selectYear: (year: number) => void;
656
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
657
+ setConfig: (config: Partial<Readonly<{
658
+ adapter?: Readonly<{
659
+ addDays: (date: any, amount: number) => any;
660
+ addMonths: (date: any, amount: number) => any;
661
+ addYears: (date: any, amount: number) => any;
662
+ compare: (left: any, right: any) => -1 | 0 | 1;
663
+ createDate: (year: number, month: number, day: number) => any;
664
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
665
+ endOfMonth: (date: any) => any;
666
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
667
+ getDate: (date: any) => number;
668
+ getDay: (date: any) => number;
669
+ getMonth: (date: any) => number;
670
+ getYear: (date: any) => number;
671
+ isValid: (date: any) => boolean;
672
+ parse: (text: string, locale?: string) => any;
673
+ startOfMonth: (date: any) => any;
674
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
675
+ today: () => any;
676
+ }> | undefined;
677
+ allowDeselect?: boolean;
678
+ allowManualInput?: boolean;
679
+ ariaDescribedBy?: string | null;
680
+ ariaLabel?: string | null;
681
+ ariaLabelledBy?: string | null;
682
+ autoCommitView?: boolean;
683
+ closeOnEscape?: boolean;
684
+ closeOnOutsideClick?: boolean;
685
+ closeOnSelect?: boolean;
686
+ closeOthersOnOpen?: boolean;
687
+ defaultOpen?: boolean;
688
+ direction?: import("./datepicker.types").TngDatepickerDirection;
689
+ disableDate?: ((date: any) => boolean) | undefined;
690
+ disabled?: boolean;
691
+ enableMultipleRangeSelection?: boolean;
692
+ enableRangeSelection?: boolean;
693
+ enableTypeahead?: boolean;
694
+ fixedWeeks?: boolean;
695
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
696
+ id?: string;
697
+ initialView?: import("./datepicker.types").TngCalendarView;
698
+ locale?: string;
699
+ max?: any;
700
+ maxDate?: any;
701
+ maxSelections?: number | null;
702
+ min?: any;
703
+ minDate?: any;
704
+ onPartialInputCommit?: boolean;
705
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
706
+ overlayRuntime?: Readonly<{
707
+ clearLayers: () => void;
708
+ dispatchKeydown: (event: Readonly<Readonly<{
709
+ defaultPrevented?: boolean;
710
+ key: string;
711
+ preventDefault?: () => void;
712
+ }>>) => void;
713
+ dispatchPointerDown: (event: Readonly<Readonly<{
714
+ composedPath?: () => readonly unknown[];
715
+ defaultPrevented?: boolean;
716
+ preventDefault?: () => void;
717
+ target: unknown;
718
+ }>>) => void;
719
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
720
+ getLayerIds: () => readonly string[];
721
+ isTopLayer: (id: string) => boolean;
722
+ registerLayer: (layer: Readonly<{
723
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
724
+ dismissOnEscape?: boolean;
725
+ dismissOnOutsidePointer?: boolean;
726
+ id: string;
727
+ modal?: boolean;
728
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
729
+ priority?: number;
730
+ }>) => void;
731
+ unregisterLayer: (id: string) => void;
732
+ }> | null | undefined;
733
+ overlaySize?: number;
734
+ ownerDocument?: Document | null;
735
+ position?: import("./datepicker.types").TngDatepickerPosition;
736
+ preserveViewOnOpenClose?: boolean;
737
+ restoreFocus?: boolean;
738
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
739
+ showOutsideDays?: boolean;
740
+ skipDisabled?: boolean;
741
+ today?: any;
742
+ trapFocus?: boolean;
743
+ value?: any;
744
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
745
+ yearPageSize?: number;
746
+ }>>) => void;
747
+ setDisabled: (disabled: boolean) => void;
748
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
749
+ setInputText: (text: string) => void;
750
+ setOpen: (open: boolean) => void;
751
+ setState: (patch: Readonly<{
752
+ activeDate?: any;
753
+ disabled?: boolean;
754
+ inputText?: string;
755
+ value?: any;
756
+ view?: import("./datepicker.types").TngCalendarView;
757
+ visibleMonth?: any;
758
+ }>) => void;
759
+ setValue: (value: any) => void;
760
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
761
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
762
+ setVisibleYear: (year: number) => void;
763
+ showDaysPanel: () => void;
764
+ showMonthsPanel: () => void;
765
+ showYearsPanel: () => void;
766
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
767
+ toggleOpen: () => void;
768
+ }>>;
769
+ ngOnInit(): void;
770
+ protected readonly dataSlot: "datepicker-trigger";
771
+ protected get ariaHaspopup(): string | null;
772
+ protected get ariaExpanded(): string | null;
773
+ protected get ariaControls(): string | null;
774
+ protected get dataOpen(): string | null;
775
+ protected onClick(): void;
776
+ protected onKeydown(event: KeyboardEvent): void;
777
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerTrigger, never>;
778
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerTrigger, "button[tngDatepickerTrigger]", ["tngDatepickerTrigger"], { "controller": { "alias": "tngDatepickerTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
779
+ }
780
+ export declare class TngDatepickerPrevButton extends TngDatepickerControllerPart {
781
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
782
+ clear: () => void;
783
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
784
+ commitInputText: () => boolean;
785
+ destroy: () => void;
786
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
787
+ getOutputs: () => Readonly<{
788
+ activeDate: any;
789
+ cells: readonly Readonly<{
790
+ active: boolean;
791
+ colIndex: number;
792
+ date: any;
793
+ disabled: boolean;
794
+ focusVisible: boolean;
795
+ hidden: boolean;
796
+ id: string;
797
+ inMonth: boolean;
798
+ inRange: boolean;
799
+ label: string;
800
+ rangeEnd: boolean;
801
+ rangeStart: boolean;
802
+ rowIndex: number;
803
+ selected: boolean;
804
+ tabindex: -1 | 0;
805
+ today: boolean;
806
+ }>[];
807
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
808
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
809
+ getGridAttributes: () => TngDatepickerAttributeMap;
810
+ getHostAttributes: () => TngDatepickerAttributeMap;
811
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
812
+ active: boolean;
813
+ date: any;
814
+ disabled: boolean;
815
+ focusVisible: boolean;
816
+ id: string;
817
+ index: number;
818
+ label: string;
819
+ selected: boolean;
820
+ tabindex: -1 | 0;
821
+ }>>) => TngDatepickerAttributeMap;
822
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
823
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
824
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
825
+ active: boolean;
826
+ date: any;
827
+ disabled: boolean;
828
+ focusVisible: boolean;
829
+ id: string;
830
+ label: string;
831
+ selected: boolean;
832
+ tabindex: -1 | 0;
833
+ year: number;
834
+ }>>) => TngDatepickerAttributeMap;
835
+ inputText: string;
836
+ labelMonthYear: string;
837
+ layout: Readonly<{
838
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
839
+ offsetX: number;
840
+ width: number;
841
+ }>;
842
+ monthOptions: readonly Readonly<{
843
+ active: boolean;
844
+ date: any;
845
+ disabled: boolean;
846
+ focusVisible: boolean;
847
+ id: string;
848
+ index: number;
849
+ label: string;
850
+ selected: boolean;
851
+ tabindex: -1 | 0;
852
+ }>[];
853
+ open: boolean;
854
+ validationError: string | null;
855
+ value: any;
856
+ view: import("./datepicker.types").TngCalendarView;
857
+ visibleMonth: any;
858
+ weekdayLabels: readonly string[];
859
+ yearOptions: readonly Readonly<{
860
+ active: boolean;
861
+ date: any;
862
+ disabled: boolean;
863
+ focusVisible: boolean;
864
+ id: string;
865
+ label: string;
866
+ selected: boolean;
867
+ tabindex: -1 | 0;
868
+ year: number;
869
+ }>[];
870
+ }>;
871
+ getState: () => Readonly<{
872
+ activeDate: any;
873
+ disabled: boolean;
874
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
875
+ inputText: string;
876
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
877
+ open: boolean;
878
+ validationError: string | null;
879
+ value: any;
880
+ view: import("./datepicker.types").TngCalendarView;
881
+ visibleMonth: any;
882
+ }>;
883
+ goToNextMonth: () => void;
884
+ goToPrevMonth: () => void;
885
+ handleCellClick: (date: any, options?: Readonly<{
886
+ shiftKey?: boolean;
887
+ }>) => void;
888
+ handleCellPointerEnter: (date: any) => void;
889
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
890
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
891
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
892
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
893
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
894
+ nextMonth: () => void;
895
+ nextYear: () => void;
896
+ open: () => void;
897
+ parseInputText: (text: string) => any;
898
+ prevMonth: () => void;
899
+ prevYear: () => void;
900
+ registerOverlay: (element: HTMLElement | null) => void;
901
+ registerTrigger: (element: HTMLElement | null) => void;
902
+ selectDate: (date: any, options?: Readonly<{
903
+ shiftKey?: boolean;
904
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
905
+ }>) => void;
906
+ selectMonth: (monthIndex: number) => void;
907
+ selectYear: (year: number) => void;
908
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
909
+ setConfig: (config: Partial<Readonly<{
910
+ adapter?: Readonly<{
911
+ addDays: (date: any, amount: number) => any;
912
+ addMonths: (date: any, amount: number) => any;
913
+ addYears: (date: any, amount: number) => any;
914
+ compare: (left: any, right: any) => -1 | 0 | 1;
915
+ createDate: (year: number, month: number, day: number) => any;
916
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
917
+ endOfMonth: (date: any) => any;
918
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
919
+ getDate: (date: any) => number;
920
+ getDay: (date: any) => number;
921
+ getMonth: (date: any) => number;
922
+ getYear: (date: any) => number;
923
+ isValid: (date: any) => boolean;
924
+ parse: (text: string, locale?: string) => any;
925
+ startOfMonth: (date: any) => any;
926
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
927
+ today: () => any;
928
+ }> | undefined;
929
+ allowDeselect?: boolean;
930
+ allowManualInput?: boolean;
931
+ ariaDescribedBy?: string | null;
932
+ ariaLabel?: string | null;
933
+ ariaLabelledBy?: string | null;
934
+ autoCommitView?: boolean;
935
+ closeOnEscape?: boolean;
936
+ closeOnOutsideClick?: boolean;
937
+ closeOnSelect?: boolean;
938
+ closeOthersOnOpen?: boolean;
939
+ defaultOpen?: boolean;
940
+ direction?: import("./datepicker.types").TngDatepickerDirection;
941
+ disableDate?: ((date: any) => boolean) | undefined;
942
+ disabled?: boolean;
943
+ enableMultipleRangeSelection?: boolean;
944
+ enableRangeSelection?: boolean;
945
+ enableTypeahead?: boolean;
946
+ fixedWeeks?: boolean;
947
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
948
+ id?: string;
949
+ initialView?: import("./datepicker.types").TngCalendarView;
950
+ locale?: string;
951
+ max?: any;
952
+ maxDate?: any;
953
+ maxSelections?: number | null;
954
+ min?: any;
955
+ minDate?: any;
956
+ onPartialInputCommit?: boolean;
957
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
958
+ overlayRuntime?: Readonly<{
959
+ clearLayers: () => void;
960
+ dispatchKeydown: (event: Readonly<Readonly<{
961
+ defaultPrevented?: boolean;
962
+ key: string;
963
+ preventDefault?: () => void;
964
+ }>>) => void;
965
+ dispatchPointerDown: (event: Readonly<Readonly<{
966
+ composedPath?: () => readonly unknown[];
967
+ defaultPrevented?: boolean;
968
+ preventDefault?: () => void;
969
+ target: unknown;
970
+ }>>) => void;
971
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
972
+ getLayerIds: () => readonly string[];
973
+ isTopLayer: (id: string) => boolean;
974
+ registerLayer: (layer: Readonly<{
975
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
976
+ dismissOnEscape?: boolean;
977
+ dismissOnOutsidePointer?: boolean;
978
+ id: string;
979
+ modal?: boolean;
980
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
981
+ priority?: number;
982
+ }>) => void;
983
+ unregisterLayer: (id: string) => void;
984
+ }> | null | undefined;
985
+ overlaySize?: number;
986
+ ownerDocument?: Document | null;
987
+ position?: import("./datepicker.types").TngDatepickerPosition;
988
+ preserveViewOnOpenClose?: boolean;
989
+ restoreFocus?: boolean;
990
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
991
+ showOutsideDays?: boolean;
992
+ skipDisabled?: boolean;
993
+ today?: any;
994
+ trapFocus?: boolean;
995
+ value?: any;
996
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
997
+ yearPageSize?: number;
998
+ }>>) => void;
999
+ setDisabled: (disabled: boolean) => void;
1000
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
1001
+ setInputText: (text: string) => void;
1002
+ setOpen: (open: boolean) => void;
1003
+ setState: (patch: Readonly<{
1004
+ activeDate?: any;
1005
+ disabled?: boolean;
1006
+ inputText?: string;
1007
+ value?: any;
1008
+ view?: import("./datepicker.types").TngCalendarView;
1009
+ visibleMonth?: any;
1010
+ }>) => void;
1011
+ setValue: (value: any) => void;
1012
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
1013
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
1014
+ setVisibleYear: (year: number) => void;
1015
+ showDaysPanel: () => void;
1016
+ showMonthsPanel: () => void;
1017
+ showYearsPanel: () => void;
1018
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
1019
+ toggleOpen: () => void;
1020
+ }>>;
1021
+ protected readonly dataSlot: "datepicker-nav-button";
1022
+ protected onClick(): void;
1023
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerPrevButton, never>;
1024
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerPrevButton, "button[tngDatepickerPrevButton]", ["tngDatepickerPrevButton"], { "controller": { "alias": "tngDatepickerPrevButton"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1025
+ }
1026
+ export declare class TngDatepickerNextButton extends TngDatepickerControllerPart {
1027
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
1028
+ clear: () => void;
1029
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
1030
+ commitInputText: () => boolean;
1031
+ destroy: () => void;
1032
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
1033
+ getOutputs: () => Readonly<{
1034
+ activeDate: any;
1035
+ cells: readonly Readonly<{
1036
+ active: boolean;
1037
+ colIndex: number;
1038
+ date: any;
1039
+ disabled: boolean;
1040
+ focusVisible: boolean;
1041
+ hidden: boolean;
1042
+ id: string;
1043
+ inMonth: boolean;
1044
+ inRange: boolean;
1045
+ label: string;
1046
+ rangeEnd: boolean;
1047
+ rangeStart: boolean;
1048
+ rowIndex: number;
1049
+ selected: boolean;
1050
+ tabindex: -1 | 0;
1051
+ today: boolean;
1052
+ }>[];
1053
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1054
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
1055
+ getGridAttributes: () => TngDatepickerAttributeMap;
1056
+ getHostAttributes: () => TngDatepickerAttributeMap;
1057
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
1058
+ active: boolean;
1059
+ date: any;
1060
+ disabled: boolean;
1061
+ focusVisible: boolean;
1062
+ id: string;
1063
+ index: number;
1064
+ label: string;
1065
+ selected: boolean;
1066
+ tabindex: -1 | 0;
1067
+ }>>) => TngDatepickerAttributeMap;
1068
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
1069
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
1070
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
1071
+ active: boolean;
1072
+ date: any;
1073
+ disabled: boolean;
1074
+ focusVisible: boolean;
1075
+ id: string;
1076
+ label: string;
1077
+ selected: boolean;
1078
+ tabindex: -1 | 0;
1079
+ year: number;
1080
+ }>>) => TngDatepickerAttributeMap;
1081
+ inputText: string;
1082
+ labelMonthYear: string;
1083
+ layout: Readonly<{
1084
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
1085
+ offsetX: number;
1086
+ width: number;
1087
+ }>;
1088
+ monthOptions: readonly Readonly<{
1089
+ active: boolean;
1090
+ date: any;
1091
+ disabled: boolean;
1092
+ focusVisible: boolean;
1093
+ id: string;
1094
+ index: number;
1095
+ label: string;
1096
+ selected: boolean;
1097
+ tabindex: -1 | 0;
1098
+ }>[];
1099
+ open: boolean;
1100
+ validationError: string | null;
1101
+ value: any;
1102
+ view: import("./datepicker.types").TngCalendarView;
1103
+ visibleMonth: any;
1104
+ weekdayLabels: readonly string[];
1105
+ yearOptions: readonly Readonly<{
1106
+ active: boolean;
1107
+ date: any;
1108
+ disabled: boolean;
1109
+ focusVisible: boolean;
1110
+ id: string;
1111
+ label: string;
1112
+ selected: boolean;
1113
+ tabindex: -1 | 0;
1114
+ year: number;
1115
+ }>[];
1116
+ }>;
1117
+ getState: () => Readonly<{
1118
+ activeDate: any;
1119
+ disabled: boolean;
1120
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1121
+ inputText: string;
1122
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
1123
+ open: boolean;
1124
+ validationError: string | null;
1125
+ value: any;
1126
+ view: import("./datepicker.types").TngCalendarView;
1127
+ visibleMonth: any;
1128
+ }>;
1129
+ goToNextMonth: () => void;
1130
+ goToPrevMonth: () => void;
1131
+ handleCellClick: (date: any, options?: Readonly<{
1132
+ shiftKey?: boolean;
1133
+ }>) => void;
1134
+ handleCellPointerEnter: (date: any) => void;
1135
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1136
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1137
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1138
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
1139
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1140
+ nextMonth: () => void;
1141
+ nextYear: () => void;
1142
+ open: () => void;
1143
+ parseInputText: (text: string) => any;
1144
+ prevMonth: () => void;
1145
+ prevYear: () => void;
1146
+ registerOverlay: (element: HTMLElement | null) => void;
1147
+ registerTrigger: (element: HTMLElement | null) => void;
1148
+ selectDate: (date: any, options?: Readonly<{
1149
+ shiftKey?: boolean;
1150
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
1151
+ }>) => void;
1152
+ selectMonth: (monthIndex: number) => void;
1153
+ selectYear: (year: number) => void;
1154
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
1155
+ setConfig: (config: Partial<Readonly<{
1156
+ adapter?: Readonly<{
1157
+ addDays: (date: any, amount: number) => any;
1158
+ addMonths: (date: any, amount: number) => any;
1159
+ addYears: (date: any, amount: number) => any;
1160
+ compare: (left: any, right: any) => -1 | 0 | 1;
1161
+ createDate: (year: number, month: number, day: number) => any;
1162
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
1163
+ endOfMonth: (date: any) => any;
1164
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
1165
+ getDate: (date: any) => number;
1166
+ getDay: (date: any) => number;
1167
+ getMonth: (date: any) => number;
1168
+ getYear: (date: any) => number;
1169
+ isValid: (date: any) => boolean;
1170
+ parse: (text: string, locale?: string) => any;
1171
+ startOfMonth: (date: any) => any;
1172
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
1173
+ today: () => any;
1174
+ }> | undefined;
1175
+ allowDeselect?: boolean;
1176
+ allowManualInput?: boolean;
1177
+ ariaDescribedBy?: string | null;
1178
+ ariaLabel?: string | null;
1179
+ ariaLabelledBy?: string | null;
1180
+ autoCommitView?: boolean;
1181
+ closeOnEscape?: boolean;
1182
+ closeOnOutsideClick?: boolean;
1183
+ closeOnSelect?: boolean;
1184
+ closeOthersOnOpen?: boolean;
1185
+ defaultOpen?: boolean;
1186
+ direction?: import("./datepicker.types").TngDatepickerDirection;
1187
+ disableDate?: ((date: any) => boolean) | undefined;
1188
+ disabled?: boolean;
1189
+ enableMultipleRangeSelection?: boolean;
1190
+ enableRangeSelection?: boolean;
1191
+ enableTypeahead?: boolean;
1192
+ fixedWeeks?: boolean;
1193
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
1194
+ id?: string;
1195
+ initialView?: import("./datepicker.types").TngCalendarView;
1196
+ locale?: string;
1197
+ max?: any;
1198
+ maxDate?: any;
1199
+ maxSelections?: number | null;
1200
+ min?: any;
1201
+ minDate?: any;
1202
+ onPartialInputCommit?: boolean;
1203
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
1204
+ overlayRuntime?: Readonly<{
1205
+ clearLayers: () => void;
1206
+ dispatchKeydown: (event: Readonly<Readonly<{
1207
+ defaultPrevented?: boolean;
1208
+ key: string;
1209
+ preventDefault?: () => void;
1210
+ }>>) => void;
1211
+ dispatchPointerDown: (event: Readonly<Readonly<{
1212
+ composedPath?: () => readonly unknown[];
1213
+ defaultPrevented?: boolean;
1214
+ preventDefault?: () => void;
1215
+ target: unknown;
1216
+ }>>) => void;
1217
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1218
+ getLayerIds: () => readonly string[];
1219
+ isTopLayer: (id: string) => boolean;
1220
+ registerLayer: (layer: Readonly<{
1221
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
1222
+ dismissOnEscape?: boolean;
1223
+ dismissOnOutsidePointer?: boolean;
1224
+ id: string;
1225
+ modal?: boolean;
1226
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1227
+ priority?: number;
1228
+ }>) => void;
1229
+ unregisterLayer: (id: string) => void;
1230
+ }> | null | undefined;
1231
+ overlaySize?: number;
1232
+ ownerDocument?: Document | null;
1233
+ position?: import("./datepicker.types").TngDatepickerPosition;
1234
+ preserveViewOnOpenClose?: boolean;
1235
+ restoreFocus?: boolean;
1236
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
1237
+ showOutsideDays?: boolean;
1238
+ skipDisabled?: boolean;
1239
+ today?: any;
1240
+ trapFocus?: boolean;
1241
+ value?: any;
1242
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
1243
+ yearPageSize?: number;
1244
+ }>>) => void;
1245
+ setDisabled: (disabled: boolean) => void;
1246
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
1247
+ setInputText: (text: string) => void;
1248
+ setOpen: (open: boolean) => void;
1249
+ setState: (patch: Readonly<{
1250
+ activeDate?: any;
1251
+ disabled?: boolean;
1252
+ inputText?: string;
1253
+ value?: any;
1254
+ view?: import("./datepicker.types").TngCalendarView;
1255
+ visibleMonth?: any;
1256
+ }>) => void;
1257
+ setValue: (value: any) => void;
1258
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
1259
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
1260
+ setVisibleYear: (year: number) => void;
1261
+ showDaysPanel: () => void;
1262
+ showMonthsPanel: () => void;
1263
+ showYearsPanel: () => void;
1264
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
1265
+ toggleOpen: () => void;
1266
+ }>>;
1267
+ protected readonly dataSlot: "datepicker-nav-button";
1268
+ protected onClick(): void;
1269
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerNextButton, never>;
1270
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerNextButton, "button[tngDatepickerNextButton]", ["tngDatepickerNextButton"], { "controller": { "alias": "tngDatepickerNextButton"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1271
+ }
1272
+ export declare class TngDatepickerPeriodButton extends TngDatepickerControllerPart {
1273
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
1274
+ clear: () => void;
1275
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
1276
+ commitInputText: () => boolean;
1277
+ destroy: () => void;
1278
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
1279
+ getOutputs: () => Readonly<{
1280
+ activeDate: any;
1281
+ cells: readonly Readonly<{
1282
+ active: boolean;
1283
+ colIndex: number;
1284
+ date: any;
1285
+ disabled: boolean;
1286
+ focusVisible: boolean;
1287
+ hidden: boolean;
1288
+ id: string;
1289
+ inMonth: boolean;
1290
+ inRange: boolean;
1291
+ label: string;
1292
+ rangeEnd: boolean;
1293
+ rangeStart: boolean;
1294
+ rowIndex: number;
1295
+ selected: boolean;
1296
+ tabindex: -1 | 0;
1297
+ today: boolean;
1298
+ }>[];
1299
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1300
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
1301
+ getGridAttributes: () => TngDatepickerAttributeMap;
1302
+ getHostAttributes: () => TngDatepickerAttributeMap;
1303
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
1304
+ active: boolean;
1305
+ date: any;
1306
+ disabled: boolean;
1307
+ focusVisible: boolean;
1308
+ id: string;
1309
+ index: number;
1310
+ label: string;
1311
+ selected: boolean;
1312
+ tabindex: -1 | 0;
1313
+ }>>) => TngDatepickerAttributeMap;
1314
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
1315
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
1316
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
1317
+ active: boolean;
1318
+ date: any;
1319
+ disabled: boolean;
1320
+ focusVisible: boolean;
1321
+ id: string;
1322
+ label: string;
1323
+ selected: boolean;
1324
+ tabindex: -1 | 0;
1325
+ year: number;
1326
+ }>>) => TngDatepickerAttributeMap;
1327
+ inputText: string;
1328
+ labelMonthYear: string;
1329
+ layout: Readonly<{
1330
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
1331
+ offsetX: number;
1332
+ width: number;
1333
+ }>;
1334
+ monthOptions: readonly Readonly<{
1335
+ active: boolean;
1336
+ date: any;
1337
+ disabled: boolean;
1338
+ focusVisible: boolean;
1339
+ id: string;
1340
+ index: number;
1341
+ label: string;
1342
+ selected: boolean;
1343
+ tabindex: -1 | 0;
1344
+ }>[];
1345
+ open: boolean;
1346
+ validationError: string | null;
1347
+ value: any;
1348
+ view: import("./datepicker.types").TngCalendarView;
1349
+ visibleMonth: any;
1350
+ weekdayLabels: readonly string[];
1351
+ yearOptions: readonly Readonly<{
1352
+ active: boolean;
1353
+ date: any;
1354
+ disabled: boolean;
1355
+ focusVisible: boolean;
1356
+ id: string;
1357
+ label: string;
1358
+ selected: boolean;
1359
+ tabindex: -1 | 0;
1360
+ year: number;
1361
+ }>[];
1362
+ }>;
1363
+ getState: () => Readonly<{
1364
+ activeDate: any;
1365
+ disabled: boolean;
1366
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1367
+ inputText: string;
1368
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
1369
+ open: boolean;
1370
+ validationError: string | null;
1371
+ value: any;
1372
+ view: import("./datepicker.types").TngCalendarView;
1373
+ visibleMonth: any;
1374
+ }>;
1375
+ goToNextMonth: () => void;
1376
+ goToPrevMonth: () => void;
1377
+ handleCellClick: (date: any, options?: Readonly<{
1378
+ shiftKey?: boolean;
1379
+ }>) => void;
1380
+ handleCellPointerEnter: (date: any) => void;
1381
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1382
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1383
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1384
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
1385
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1386
+ nextMonth: () => void;
1387
+ nextYear: () => void;
1388
+ open: () => void;
1389
+ parseInputText: (text: string) => any;
1390
+ prevMonth: () => void;
1391
+ prevYear: () => void;
1392
+ registerOverlay: (element: HTMLElement | null) => void;
1393
+ registerTrigger: (element: HTMLElement | null) => void;
1394
+ selectDate: (date: any, options?: Readonly<{
1395
+ shiftKey?: boolean;
1396
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
1397
+ }>) => void;
1398
+ selectMonth: (monthIndex: number) => void;
1399
+ selectYear: (year: number) => void;
1400
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
1401
+ setConfig: (config: Partial<Readonly<{
1402
+ adapter?: Readonly<{
1403
+ addDays: (date: any, amount: number) => any;
1404
+ addMonths: (date: any, amount: number) => any;
1405
+ addYears: (date: any, amount: number) => any;
1406
+ compare: (left: any, right: any) => -1 | 0 | 1;
1407
+ createDate: (year: number, month: number, day: number) => any;
1408
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
1409
+ endOfMonth: (date: any) => any;
1410
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
1411
+ getDate: (date: any) => number;
1412
+ getDay: (date: any) => number;
1413
+ getMonth: (date: any) => number;
1414
+ getYear: (date: any) => number;
1415
+ isValid: (date: any) => boolean;
1416
+ parse: (text: string, locale?: string) => any;
1417
+ startOfMonth: (date: any) => any;
1418
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
1419
+ today: () => any;
1420
+ }> | undefined;
1421
+ allowDeselect?: boolean;
1422
+ allowManualInput?: boolean;
1423
+ ariaDescribedBy?: string | null;
1424
+ ariaLabel?: string | null;
1425
+ ariaLabelledBy?: string | null;
1426
+ autoCommitView?: boolean;
1427
+ closeOnEscape?: boolean;
1428
+ closeOnOutsideClick?: boolean;
1429
+ closeOnSelect?: boolean;
1430
+ closeOthersOnOpen?: boolean;
1431
+ defaultOpen?: boolean;
1432
+ direction?: import("./datepicker.types").TngDatepickerDirection;
1433
+ disableDate?: ((date: any) => boolean) | undefined;
1434
+ disabled?: boolean;
1435
+ enableMultipleRangeSelection?: boolean;
1436
+ enableRangeSelection?: boolean;
1437
+ enableTypeahead?: boolean;
1438
+ fixedWeeks?: boolean;
1439
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
1440
+ id?: string;
1441
+ initialView?: import("./datepicker.types").TngCalendarView;
1442
+ locale?: string;
1443
+ max?: any;
1444
+ maxDate?: any;
1445
+ maxSelections?: number | null;
1446
+ min?: any;
1447
+ minDate?: any;
1448
+ onPartialInputCommit?: boolean;
1449
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
1450
+ overlayRuntime?: Readonly<{
1451
+ clearLayers: () => void;
1452
+ dispatchKeydown: (event: Readonly<Readonly<{
1453
+ defaultPrevented?: boolean;
1454
+ key: string;
1455
+ preventDefault?: () => void;
1456
+ }>>) => void;
1457
+ dispatchPointerDown: (event: Readonly<Readonly<{
1458
+ composedPath?: () => readonly unknown[];
1459
+ defaultPrevented?: boolean;
1460
+ preventDefault?: () => void;
1461
+ target: unknown;
1462
+ }>>) => void;
1463
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1464
+ getLayerIds: () => readonly string[];
1465
+ isTopLayer: (id: string) => boolean;
1466
+ registerLayer: (layer: Readonly<{
1467
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
1468
+ dismissOnEscape?: boolean;
1469
+ dismissOnOutsidePointer?: boolean;
1470
+ id: string;
1471
+ modal?: boolean;
1472
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1473
+ priority?: number;
1474
+ }>) => void;
1475
+ unregisterLayer: (id: string) => void;
1476
+ }> | null | undefined;
1477
+ overlaySize?: number;
1478
+ ownerDocument?: Document | null;
1479
+ position?: import("./datepicker.types").TngDatepickerPosition;
1480
+ preserveViewOnOpenClose?: boolean;
1481
+ restoreFocus?: boolean;
1482
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
1483
+ showOutsideDays?: boolean;
1484
+ skipDisabled?: boolean;
1485
+ today?: any;
1486
+ trapFocus?: boolean;
1487
+ value?: any;
1488
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
1489
+ yearPageSize?: number;
1490
+ }>>) => void;
1491
+ setDisabled: (disabled: boolean) => void;
1492
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
1493
+ setInputText: (text: string) => void;
1494
+ setOpen: (open: boolean) => void;
1495
+ setState: (patch: Readonly<{
1496
+ activeDate?: any;
1497
+ disabled?: boolean;
1498
+ inputText?: string;
1499
+ value?: any;
1500
+ view?: import("./datepicker.types").TngCalendarView;
1501
+ visibleMonth?: any;
1502
+ }>) => void;
1503
+ setValue: (value: any) => void;
1504
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
1505
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
1506
+ setVisibleYear: (year: number) => void;
1507
+ showDaysPanel: () => void;
1508
+ showMonthsPanel: () => void;
1509
+ showYearsPanel: () => void;
1510
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
1511
+ toggleOpen: () => void;
1512
+ }>>;
1513
+ protected readonly dataSlot: "datepicker-period-button";
1514
+ protected get dataInteractive(): string | null;
1515
+ protected onClick(): void;
1516
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerPeriodButton, never>;
1517
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerPeriodButton, "button[tngDatepickerPeriodButton]", ["tngDatepickerPeriodButton"], { "controller": { "alias": "tngDatepickerPeriodButton"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1518
+ }
1519
+ export declare class TngDatepickerDayGrid extends TngDatepickerControllerPart {
1520
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
1521
+ clear: () => void;
1522
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
1523
+ commitInputText: () => boolean;
1524
+ destroy: () => void;
1525
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
1526
+ getOutputs: () => Readonly<{
1527
+ activeDate: any;
1528
+ cells: readonly Readonly<{
1529
+ active: boolean;
1530
+ colIndex: number;
1531
+ date: any;
1532
+ disabled: boolean;
1533
+ focusVisible: boolean;
1534
+ hidden: boolean;
1535
+ id: string;
1536
+ inMonth: boolean;
1537
+ inRange: boolean;
1538
+ label: string;
1539
+ rangeEnd: boolean;
1540
+ rangeStart: boolean;
1541
+ rowIndex: number;
1542
+ selected: boolean;
1543
+ tabindex: -1 | 0;
1544
+ today: boolean;
1545
+ }>[];
1546
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1547
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
1548
+ getGridAttributes: () => TngDatepickerAttributeMap;
1549
+ getHostAttributes: () => TngDatepickerAttributeMap;
1550
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
1551
+ active: boolean;
1552
+ date: any;
1553
+ disabled: boolean;
1554
+ focusVisible: boolean;
1555
+ id: string;
1556
+ index: number;
1557
+ label: string;
1558
+ selected: boolean;
1559
+ tabindex: -1 | 0;
1560
+ }>>) => TngDatepickerAttributeMap;
1561
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
1562
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
1563
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
1564
+ active: boolean;
1565
+ date: any;
1566
+ disabled: boolean;
1567
+ focusVisible: boolean;
1568
+ id: string;
1569
+ label: string;
1570
+ selected: boolean;
1571
+ tabindex: -1 | 0;
1572
+ year: number;
1573
+ }>>) => TngDatepickerAttributeMap;
1574
+ inputText: string;
1575
+ labelMonthYear: string;
1576
+ layout: Readonly<{
1577
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
1578
+ offsetX: number;
1579
+ width: number;
1580
+ }>;
1581
+ monthOptions: readonly Readonly<{
1582
+ active: boolean;
1583
+ date: any;
1584
+ disabled: boolean;
1585
+ focusVisible: boolean;
1586
+ id: string;
1587
+ index: number;
1588
+ label: string;
1589
+ selected: boolean;
1590
+ tabindex: -1 | 0;
1591
+ }>[];
1592
+ open: boolean;
1593
+ validationError: string | null;
1594
+ value: any;
1595
+ view: import("./datepicker.types").TngCalendarView;
1596
+ visibleMonth: any;
1597
+ weekdayLabels: readonly string[];
1598
+ yearOptions: readonly Readonly<{
1599
+ active: boolean;
1600
+ date: any;
1601
+ disabled: boolean;
1602
+ focusVisible: boolean;
1603
+ id: string;
1604
+ label: string;
1605
+ selected: boolean;
1606
+ tabindex: -1 | 0;
1607
+ year: number;
1608
+ }>[];
1609
+ }>;
1610
+ getState: () => Readonly<{
1611
+ activeDate: any;
1612
+ disabled: boolean;
1613
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1614
+ inputText: string;
1615
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
1616
+ open: boolean;
1617
+ validationError: string | null;
1618
+ value: any;
1619
+ view: import("./datepicker.types").TngCalendarView;
1620
+ visibleMonth: any;
1621
+ }>;
1622
+ goToNextMonth: () => void;
1623
+ goToPrevMonth: () => void;
1624
+ handleCellClick: (date: any, options?: Readonly<{
1625
+ shiftKey?: boolean;
1626
+ }>) => void;
1627
+ handleCellPointerEnter: (date: any) => void;
1628
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1629
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1630
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1631
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
1632
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1633
+ nextMonth: () => void;
1634
+ nextYear: () => void;
1635
+ open: () => void;
1636
+ parseInputText: (text: string) => any;
1637
+ prevMonth: () => void;
1638
+ prevYear: () => void;
1639
+ registerOverlay: (element: HTMLElement | null) => void;
1640
+ registerTrigger: (element: HTMLElement | null) => void;
1641
+ selectDate: (date: any, options?: Readonly<{
1642
+ shiftKey?: boolean;
1643
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
1644
+ }>) => void;
1645
+ selectMonth: (monthIndex: number) => void;
1646
+ selectYear: (year: number) => void;
1647
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
1648
+ setConfig: (config: Partial<Readonly<{
1649
+ adapter?: Readonly<{
1650
+ addDays: (date: any, amount: number) => any;
1651
+ addMonths: (date: any, amount: number) => any;
1652
+ addYears: (date: any, amount: number) => any;
1653
+ compare: (left: any, right: any) => -1 | 0 | 1;
1654
+ createDate: (year: number, month: number, day: number) => any;
1655
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
1656
+ endOfMonth: (date: any) => any;
1657
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
1658
+ getDate: (date: any) => number;
1659
+ getDay: (date: any) => number;
1660
+ getMonth: (date: any) => number;
1661
+ getYear: (date: any) => number;
1662
+ isValid: (date: any) => boolean;
1663
+ parse: (text: string, locale?: string) => any;
1664
+ startOfMonth: (date: any) => any;
1665
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
1666
+ today: () => any;
1667
+ }> | undefined;
1668
+ allowDeselect?: boolean;
1669
+ allowManualInput?: boolean;
1670
+ ariaDescribedBy?: string | null;
1671
+ ariaLabel?: string | null;
1672
+ ariaLabelledBy?: string | null;
1673
+ autoCommitView?: boolean;
1674
+ closeOnEscape?: boolean;
1675
+ closeOnOutsideClick?: boolean;
1676
+ closeOnSelect?: boolean;
1677
+ closeOthersOnOpen?: boolean;
1678
+ defaultOpen?: boolean;
1679
+ direction?: import("./datepicker.types").TngDatepickerDirection;
1680
+ disableDate?: ((date: any) => boolean) | undefined;
1681
+ disabled?: boolean;
1682
+ enableMultipleRangeSelection?: boolean;
1683
+ enableRangeSelection?: boolean;
1684
+ enableTypeahead?: boolean;
1685
+ fixedWeeks?: boolean;
1686
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
1687
+ id?: string;
1688
+ initialView?: import("./datepicker.types").TngCalendarView;
1689
+ locale?: string;
1690
+ max?: any;
1691
+ maxDate?: any;
1692
+ maxSelections?: number | null;
1693
+ min?: any;
1694
+ minDate?: any;
1695
+ onPartialInputCommit?: boolean;
1696
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
1697
+ overlayRuntime?: Readonly<{
1698
+ clearLayers: () => void;
1699
+ dispatchKeydown: (event: Readonly<Readonly<{
1700
+ defaultPrevented?: boolean;
1701
+ key: string;
1702
+ preventDefault?: () => void;
1703
+ }>>) => void;
1704
+ dispatchPointerDown: (event: Readonly<Readonly<{
1705
+ composedPath?: () => readonly unknown[];
1706
+ defaultPrevented?: boolean;
1707
+ preventDefault?: () => void;
1708
+ target: unknown;
1709
+ }>>) => void;
1710
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1711
+ getLayerIds: () => readonly string[];
1712
+ isTopLayer: (id: string) => boolean;
1713
+ registerLayer: (layer: Readonly<{
1714
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
1715
+ dismissOnEscape?: boolean;
1716
+ dismissOnOutsidePointer?: boolean;
1717
+ id: string;
1718
+ modal?: boolean;
1719
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1720
+ priority?: number;
1721
+ }>) => void;
1722
+ unregisterLayer: (id: string) => void;
1723
+ }> | null | undefined;
1724
+ overlaySize?: number;
1725
+ ownerDocument?: Document | null;
1726
+ position?: import("./datepicker.types").TngDatepickerPosition;
1727
+ preserveViewOnOpenClose?: boolean;
1728
+ restoreFocus?: boolean;
1729
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
1730
+ showOutsideDays?: boolean;
1731
+ skipDisabled?: boolean;
1732
+ today?: any;
1733
+ trapFocus?: boolean;
1734
+ value?: any;
1735
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
1736
+ yearPageSize?: number;
1737
+ }>>) => void;
1738
+ setDisabled: (disabled: boolean) => void;
1739
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
1740
+ setInputText: (text: string) => void;
1741
+ setOpen: (open: boolean) => void;
1742
+ setState: (patch: Readonly<{
1743
+ activeDate?: any;
1744
+ disabled?: boolean;
1745
+ inputText?: string;
1746
+ value?: any;
1747
+ view?: import("./datepicker.types").TngCalendarView;
1748
+ visibleMonth?: any;
1749
+ }>) => void;
1750
+ setValue: (value: any) => void;
1751
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
1752
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
1753
+ setVisibleYear: (year: number) => void;
1754
+ showDaysPanel: () => void;
1755
+ showMonthsPanel: () => void;
1756
+ showYearsPanel: () => void;
1757
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
1758
+ toggleOpen: () => void;
1759
+ }>>;
1760
+ protected get dataSlot(): string | null;
1761
+ protected get id(): string | null;
1762
+ protected get role(): string | null;
1763
+ protected get ariaActiveDescendant(): string | null;
1764
+ protected get ariaLabelledby(): string | null;
1765
+ protected onKeydown(event: KeyboardEvent): void;
1766
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerDayGrid, never>;
1767
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerDayGrid, "[tngDatepickerDayGrid]", ["tngDatepickerDayGrid"], { "controller": { "alias": "tngDatepickerDayGrid"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1768
+ }
1769
+ export declare class TngDatepickerDayCell extends TngDatepickerControllerPart {
1770
+ private readonly dayGrid;
1771
+ readonly controller: Signal<Readonly<{
1772
+ clear: () => void;
1773
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
1774
+ commitInputText: () => boolean;
1775
+ destroy: () => void;
1776
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
1777
+ getOutputs: () => Readonly<{
1778
+ activeDate: any;
1779
+ cells: readonly Readonly<{
1780
+ active: boolean;
1781
+ colIndex: number;
1782
+ date: any;
1783
+ disabled: boolean;
1784
+ focusVisible: boolean;
1785
+ hidden: boolean;
1786
+ id: string;
1787
+ inMonth: boolean;
1788
+ inRange: boolean;
1789
+ label: string;
1790
+ rangeEnd: boolean;
1791
+ rangeStart: boolean;
1792
+ rowIndex: number;
1793
+ selected: boolean;
1794
+ tabindex: -1 | 0;
1795
+ today: boolean;
1796
+ }>[];
1797
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1798
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
1799
+ getGridAttributes: () => TngDatepickerAttributeMap;
1800
+ getHostAttributes: () => TngDatepickerAttributeMap;
1801
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
1802
+ active: boolean;
1803
+ date: any;
1804
+ disabled: boolean;
1805
+ focusVisible: boolean;
1806
+ id: string;
1807
+ index: number;
1808
+ label: string;
1809
+ selected: boolean;
1810
+ tabindex: -1 | 0;
1811
+ }>>) => TngDatepickerAttributeMap;
1812
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
1813
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
1814
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
1815
+ active: boolean;
1816
+ date: any;
1817
+ disabled: boolean;
1818
+ focusVisible: boolean;
1819
+ id: string;
1820
+ label: string;
1821
+ selected: boolean;
1822
+ tabindex: -1 | 0;
1823
+ year: number;
1824
+ }>>) => TngDatepickerAttributeMap;
1825
+ inputText: string;
1826
+ labelMonthYear: string;
1827
+ layout: Readonly<{
1828
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
1829
+ offsetX: number;
1830
+ width: number;
1831
+ }>;
1832
+ monthOptions: readonly Readonly<{
1833
+ active: boolean;
1834
+ date: any;
1835
+ disabled: boolean;
1836
+ focusVisible: boolean;
1837
+ id: string;
1838
+ index: number;
1839
+ label: string;
1840
+ selected: boolean;
1841
+ tabindex: -1 | 0;
1842
+ }>[];
1843
+ open: boolean;
1844
+ validationError: string | null;
1845
+ value: any;
1846
+ view: import("./datepicker.types").TngCalendarView;
1847
+ visibleMonth: any;
1848
+ weekdayLabels: readonly string[];
1849
+ yearOptions: readonly Readonly<{
1850
+ active: boolean;
1851
+ date: any;
1852
+ disabled: boolean;
1853
+ focusVisible: boolean;
1854
+ id: string;
1855
+ label: string;
1856
+ selected: boolean;
1857
+ tabindex: -1 | 0;
1858
+ year: number;
1859
+ }>[];
1860
+ }>;
1861
+ getState: () => Readonly<{
1862
+ activeDate: any;
1863
+ disabled: boolean;
1864
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
1865
+ inputText: string;
1866
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
1867
+ open: boolean;
1868
+ validationError: string | null;
1869
+ value: any;
1870
+ view: import("./datepicker.types").TngCalendarView;
1871
+ visibleMonth: any;
1872
+ }>;
1873
+ goToNextMonth: () => void;
1874
+ goToPrevMonth: () => void;
1875
+ handleCellClick: (date: any, options?: Readonly<{
1876
+ shiftKey?: boolean;
1877
+ }>) => void;
1878
+ handleCellPointerEnter: (date: any) => void;
1879
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1880
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1881
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1882
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
1883
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
1884
+ nextMonth: () => void;
1885
+ nextYear: () => void;
1886
+ open: () => void;
1887
+ parseInputText: (text: string) => any;
1888
+ prevMonth: () => void;
1889
+ prevYear: () => void;
1890
+ registerOverlay: (element: HTMLElement | null) => void;
1891
+ registerTrigger: (element: HTMLElement | null) => void;
1892
+ selectDate: (date: any, options?: Readonly<{
1893
+ shiftKey?: boolean;
1894
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
1895
+ }>) => void;
1896
+ selectMonth: (monthIndex: number) => void;
1897
+ selectYear: (year: number) => void;
1898
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
1899
+ setConfig: (config: Partial<Readonly<{
1900
+ adapter?: Readonly<{
1901
+ addDays: (date: any, amount: number) => any;
1902
+ addMonths: (date: any, amount: number) => any;
1903
+ addYears: (date: any, amount: number) => any;
1904
+ compare: (left: any, right: any) => -1 | 0 | 1;
1905
+ createDate: (year: number, month: number, day: number) => any;
1906
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
1907
+ endOfMonth: (date: any) => any;
1908
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
1909
+ getDate: (date: any) => number;
1910
+ getDay: (date: any) => number;
1911
+ getMonth: (date: any) => number;
1912
+ getYear: (date: any) => number;
1913
+ isValid: (date: any) => boolean;
1914
+ parse: (text: string, locale?: string) => any;
1915
+ startOfMonth: (date: any) => any;
1916
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
1917
+ today: () => any;
1918
+ }> | undefined;
1919
+ allowDeselect?: boolean;
1920
+ allowManualInput?: boolean;
1921
+ ariaDescribedBy?: string | null;
1922
+ ariaLabel?: string | null;
1923
+ ariaLabelledBy?: string | null;
1924
+ autoCommitView?: boolean;
1925
+ closeOnEscape?: boolean;
1926
+ closeOnOutsideClick?: boolean;
1927
+ closeOnSelect?: boolean;
1928
+ closeOthersOnOpen?: boolean;
1929
+ defaultOpen?: boolean;
1930
+ direction?: import("./datepicker.types").TngDatepickerDirection;
1931
+ disableDate?: ((date: any) => boolean) | undefined;
1932
+ disabled?: boolean;
1933
+ enableMultipleRangeSelection?: boolean;
1934
+ enableRangeSelection?: boolean;
1935
+ enableTypeahead?: boolean;
1936
+ fixedWeeks?: boolean;
1937
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
1938
+ id?: string;
1939
+ initialView?: import("./datepicker.types").TngCalendarView;
1940
+ locale?: string;
1941
+ max?: any;
1942
+ maxDate?: any;
1943
+ maxSelections?: number | null;
1944
+ min?: any;
1945
+ minDate?: any;
1946
+ onPartialInputCommit?: boolean;
1947
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
1948
+ overlayRuntime?: Readonly<{
1949
+ clearLayers: () => void;
1950
+ dispatchKeydown: (event: Readonly<Readonly<{
1951
+ defaultPrevented?: boolean;
1952
+ key: string;
1953
+ preventDefault?: () => void;
1954
+ }>>) => void;
1955
+ dispatchPointerDown: (event: Readonly<Readonly<{
1956
+ composedPath?: () => readonly unknown[];
1957
+ defaultPrevented?: boolean;
1958
+ preventDefault?: () => void;
1959
+ target: unknown;
1960
+ }>>) => void;
1961
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1962
+ getLayerIds: () => readonly string[];
1963
+ isTopLayer: (id: string) => boolean;
1964
+ registerLayer: (layer: Readonly<{
1965
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
1966
+ dismissOnEscape?: boolean;
1967
+ dismissOnOutsidePointer?: boolean;
1968
+ id: string;
1969
+ modal?: boolean;
1970
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
1971
+ priority?: number;
1972
+ }>) => void;
1973
+ unregisterLayer: (id: string) => void;
1974
+ }> | null | undefined;
1975
+ overlaySize?: number;
1976
+ ownerDocument?: Document | null;
1977
+ position?: import("./datepicker.types").TngDatepickerPosition;
1978
+ preserveViewOnOpenClose?: boolean;
1979
+ restoreFocus?: boolean;
1980
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
1981
+ showOutsideDays?: boolean;
1982
+ skipDisabled?: boolean;
1983
+ today?: any;
1984
+ trapFocus?: boolean;
1985
+ value?: any;
1986
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
1987
+ yearPageSize?: number;
1988
+ }>>) => void;
1989
+ setDisabled: (disabled: boolean) => void;
1990
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
1991
+ setInputText: (text: string) => void;
1992
+ setOpen: (open: boolean) => void;
1993
+ setState: (patch: Readonly<{
1994
+ activeDate?: any;
1995
+ disabled?: boolean;
1996
+ inputText?: string;
1997
+ value?: any;
1998
+ view?: import("./datepicker.types").TngCalendarView;
1999
+ visibleMonth?: any;
2000
+ }>) => void;
2001
+ setValue: (value: any) => void;
2002
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
2003
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
2004
+ setVisibleYear: (year: number) => void;
2005
+ showDaysPanel: () => void;
2006
+ showMonthsPanel: () => void;
2007
+ showYearsPanel: () => void;
2008
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
2009
+ toggleOpen: () => void;
2010
+ }>>;
2011
+ readonly cell: import("@angular/core").InputSignal<Readonly<Readonly<{
2012
+ active: boolean;
2013
+ colIndex: number;
2014
+ date: any;
2015
+ disabled: boolean;
2016
+ focusVisible: boolean;
2017
+ hidden: boolean;
2018
+ id: string;
2019
+ inMonth: boolean;
2020
+ inRange: boolean;
2021
+ label: string;
2022
+ rangeEnd: boolean;
2023
+ rangeStart: boolean;
2024
+ rowIndex: number;
2025
+ selected: boolean;
2026
+ tabindex: -1 | 0;
2027
+ today: boolean;
2028
+ }>>>;
2029
+ private readonly attributes;
2030
+ protected get id(): string | null;
2031
+ protected get role(): string | null;
2032
+ protected get tabindex(): string | null;
2033
+ protected get disabled(): boolean;
2034
+ protected get ariaCurrent(): string | null;
2035
+ protected get ariaDisabled(): string | null;
2036
+ protected get ariaSelected(): string | null;
2037
+ protected get dataActive(): string | null;
2038
+ protected get dataDisabled(): string | null;
2039
+ protected get dataFocusVisible(): string | null;
2040
+ protected get dataHidden(): string | null;
2041
+ protected get dataInMonth(): string | null;
2042
+ protected get dataInRange(): string | null;
2043
+ protected get dataRangeEnd(): string | null;
2044
+ protected get dataRangeStart(): string | null;
2045
+ protected get dataSelected(): string | null;
2046
+ protected get dataSlot(): string | null;
2047
+ protected onClick(event: MouseEvent): void;
2048
+ protected onPointerEnter(): void;
2049
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerDayCell, never>;
2050
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerDayCell, "button[tngDatepickerDayCell]", ["tngDatepickerDayCell"], { "cell": { "alias": "tngDatepickerDayCell"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2051
+ }
2052
+ export declare class TngDatepickerMonthGrid extends TngDatepickerControllerPart {
2053
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
2054
+ clear: () => void;
2055
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
2056
+ commitInputText: () => boolean;
2057
+ destroy: () => void;
2058
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
2059
+ getOutputs: () => Readonly<{
2060
+ activeDate: any;
2061
+ cells: readonly Readonly<{
2062
+ active: boolean;
2063
+ colIndex: number;
2064
+ date: any;
2065
+ disabled: boolean;
2066
+ focusVisible: boolean;
2067
+ hidden: boolean;
2068
+ id: string;
2069
+ inMonth: boolean;
2070
+ inRange: boolean;
2071
+ label: string;
2072
+ rangeEnd: boolean;
2073
+ rangeStart: boolean;
2074
+ rowIndex: number;
2075
+ selected: boolean;
2076
+ tabindex: -1 | 0;
2077
+ today: boolean;
2078
+ }>[];
2079
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2080
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
2081
+ getGridAttributes: () => TngDatepickerAttributeMap;
2082
+ getHostAttributes: () => TngDatepickerAttributeMap;
2083
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
2084
+ active: boolean;
2085
+ date: any;
2086
+ disabled: boolean;
2087
+ focusVisible: boolean;
2088
+ id: string;
2089
+ index: number;
2090
+ label: string;
2091
+ selected: boolean;
2092
+ tabindex: -1 | 0;
2093
+ }>>) => TngDatepickerAttributeMap;
2094
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
2095
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
2096
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
2097
+ active: boolean;
2098
+ date: any;
2099
+ disabled: boolean;
2100
+ focusVisible: boolean;
2101
+ id: string;
2102
+ label: string;
2103
+ selected: boolean;
2104
+ tabindex: -1 | 0;
2105
+ year: number;
2106
+ }>>) => TngDatepickerAttributeMap;
2107
+ inputText: string;
2108
+ labelMonthYear: string;
2109
+ layout: Readonly<{
2110
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
2111
+ offsetX: number;
2112
+ width: number;
2113
+ }>;
2114
+ monthOptions: readonly Readonly<{
2115
+ active: boolean;
2116
+ date: any;
2117
+ disabled: boolean;
2118
+ focusVisible: boolean;
2119
+ id: string;
2120
+ index: number;
2121
+ label: string;
2122
+ selected: boolean;
2123
+ tabindex: -1 | 0;
2124
+ }>[];
2125
+ open: boolean;
2126
+ validationError: string | null;
2127
+ value: any;
2128
+ view: import("./datepicker.types").TngCalendarView;
2129
+ visibleMonth: any;
2130
+ weekdayLabels: readonly string[];
2131
+ yearOptions: readonly Readonly<{
2132
+ active: boolean;
2133
+ date: any;
2134
+ disabled: boolean;
2135
+ focusVisible: boolean;
2136
+ id: string;
2137
+ label: string;
2138
+ selected: boolean;
2139
+ tabindex: -1 | 0;
2140
+ year: number;
2141
+ }>[];
2142
+ }>;
2143
+ getState: () => Readonly<{
2144
+ activeDate: any;
2145
+ disabled: boolean;
2146
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2147
+ inputText: string;
2148
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
2149
+ open: boolean;
2150
+ validationError: string | null;
2151
+ value: any;
2152
+ view: import("./datepicker.types").TngCalendarView;
2153
+ visibleMonth: any;
2154
+ }>;
2155
+ goToNextMonth: () => void;
2156
+ goToPrevMonth: () => void;
2157
+ handleCellClick: (date: any, options?: Readonly<{
2158
+ shiftKey?: boolean;
2159
+ }>) => void;
2160
+ handleCellPointerEnter: (date: any) => void;
2161
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2162
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2163
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2164
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
2165
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2166
+ nextMonth: () => void;
2167
+ nextYear: () => void;
2168
+ open: () => void;
2169
+ parseInputText: (text: string) => any;
2170
+ prevMonth: () => void;
2171
+ prevYear: () => void;
2172
+ registerOverlay: (element: HTMLElement | null) => void;
2173
+ registerTrigger: (element: HTMLElement | null) => void;
2174
+ selectDate: (date: any, options?: Readonly<{
2175
+ shiftKey?: boolean;
2176
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
2177
+ }>) => void;
2178
+ selectMonth: (monthIndex: number) => void;
2179
+ selectYear: (year: number) => void;
2180
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
2181
+ setConfig: (config: Partial<Readonly<{
2182
+ adapter?: Readonly<{
2183
+ addDays: (date: any, amount: number) => any;
2184
+ addMonths: (date: any, amount: number) => any;
2185
+ addYears: (date: any, amount: number) => any;
2186
+ compare: (left: any, right: any) => -1 | 0 | 1;
2187
+ createDate: (year: number, month: number, day: number) => any;
2188
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
2189
+ endOfMonth: (date: any) => any;
2190
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
2191
+ getDate: (date: any) => number;
2192
+ getDay: (date: any) => number;
2193
+ getMonth: (date: any) => number;
2194
+ getYear: (date: any) => number;
2195
+ isValid: (date: any) => boolean;
2196
+ parse: (text: string, locale?: string) => any;
2197
+ startOfMonth: (date: any) => any;
2198
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
2199
+ today: () => any;
2200
+ }> | undefined;
2201
+ allowDeselect?: boolean;
2202
+ allowManualInput?: boolean;
2203
+ ariaDescribedBy?: string | null;
2204
+ ariaLabel?: string | null;
2205
+ ariaLabelledBy?: string | null;
2206
+ autoCommitView?: boolean;
2207
+ closeOnEscape?: boolean;
2208
+ closeOnOutsideClick?: boolean;
2209
+ closeOnSelect?: boolean;
2210
+ closeOthersOnOpen?: boolean;
2211
+ defaultOpen?: boolean;
2212
+ direction?: import("./datepicker.types").TngDatepickerDirection;
2213
+ disableDate?: ((date: any) => boolean) | undefined;
2214
+ disabled?: boolean;
2215
+ enableMultipleRangeSelection?: boolean;
2216
+ enableRangeSelection?: boolean;
2217
+ enableTypeahead?: boolean;
2218
+ fixedWeeks?: boolean;
2219
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
2220
+ id?: string;
2221
+ initialView?: import("./datepicker.types").TngCalendarView;
2222
+ locale?: string;
2223
+ max?: any;
2224
+ maxDate?: any;
2225
+ maxSelections?: number | null;
2226
+ min?: any;
2227
+ minDate?: any;
2228
+ onPartialInputCommit?: boolean;
2229
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
2230
+ overlayRuntime?: Readonly<{
2231
+ clearLayers: () => void;
2232
+ dispatchKeydown: (event: Readonly<Readonly<{
2233
+ defaultPrevented?: boolean;
2234
+ key: string;
2235
+ preventDefault?: () => void;
2236
+ }>>) => void;
2237
+ dispatchPointerDown: (event: Readonly<Readonly<{
2238
+ composedPath?: () => readonly unknown[];
2239
+ defaultPrevented?: boolean;
2240
+ preventDefault?: () => void;
2241
+ target: unknown;
2242
+ }>>) => void;
2243
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2244
+ getLayerIds: () => readonly string[];
2245
+ isTopLayer: (id: string) => boolean;
2246
+ registerLayer: (layer: Readonly<{
2247
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
2248
+ dismissOnEscape?: boolean;
2249
+ dismissOnOutsidePointer?: boolean;
2250
+ id: string;
2251
+ modal?: boolean;
2252
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2253
+ priority?: number;
2254
+ }>) => void;
2255
+ unregisterLayer: (id: string) => void;
2256
+ }> | null | undefined;
2257
+ overlaySize?: number;
2258
+ ownerDocument?: Document | null;
2259
+ position?: import("./datepicker.types").TngDatepickerPosition;
2260
+ preserveViewOnOpenClose?: boolean;
2261
+ restoreFocus?: boolean;
2262
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
2263
+ showOutsideDays?: boolean;
2264
+ skipDisabled?: boolean;
2265
+ today?: any;
2266
+ trapFocus?: boolean;
2267
+ value?: any;
2268
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
2269
+ yearPageSize?: number;
2270
+ }>>) => void;
2271
+ setDisabled: (disabled: boolean) => void;
2272
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
2273
+ setInputText: (text: string) => void;
2274
+ setOpen: (open: boolean) => void;
2275
+ setState: (patch: Readonly<{
2276
+ activeDate?: any;
2277
+ disabled?: boolean;
2278
+ inputText?: string;
2279
+ value?: any;
2280
+ view?: import("./datepicker.types").TngCalendarView;
2281
+ visibleMonth?: any;
2282
+ }>) => void;
2283
+ setValue: (value: any) => void;
2284
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
2285
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
2286
+ setVisibleYear: (year: number) => void;
2287
+ showDaysPanel: () => void;
2288
+ showMonthsPanel: () => void;
2289
+ showYearsPanel: () => void;
2290
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
2291
+ toggleOpen: () => void;
2292
+ }>>;
2293
+ protected readonly dataSlot: "datepicker-grid";
2294
+ protected readonly role: "grid";
2295
+ protected onKeydown(event: KeyboardEvent): void;
2296
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerMonthGrid, never>;
2297
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerMonthGrid, "[tngDatepickerMonthGrid]", ["tngDatepickerMonthGrid"], { "controller": { "alias": "tngDatepickerMonthGrid"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2298
+ }
2299
+ export declare class TngDatepickerMonthOption extends TngDatepickerControllerPart {
2300
+ private readonly monthGrid;
2301
+ readonly controller: Signal<Readonly<{
2302
+ clear: () => void;
2303
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
2304
+ commitInputText: () => boolean;
2305
+ destroy: () => void;
2306
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
2307
+ getOutputs: () => Readonly<{
2308
+ activeDate: any;
2309
+ cells: readonly Readonly<{
2310
+ active: boolean;
2311
+ colIndex: number;
2312
+ date: any;
2313
+ disabled: boolean;
2314
+ focusVisible: boolean;
2315
+ hidden: boolean;
2316
+ id: string;
2317
+ inMonth: boolean;
2318
+ inRange: boolean;
2319
+ label: string;
2320
+ rangeEnd: boolean;
2321
+ rangeStart: boolean;
2322
+ rowIndex: number;
2323
+ selected: boolean;
2324
+ tabindex: -1 | 0;
2325
+ today: boolean;
2326
+ }>[];
2327
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2328
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
2329
+ getGridAttributes: () => TngDatepickerAttributeMap;
2330
+ getHostAttributes: () => TngDatepickerAttributeMap;
2331
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
2332
+ active: boolean;
2333
+ date: any;
2334
+ disabled: boolean;
2335
+ focusVisible: boolean;
2336
+ id: string;
2337
+ index: number;
2338
+ label: string;
2339
+ selected: boolean;
2340
+ tabindex: -1 | 0;
2341
+ }>>) => TngDatepickerAttributeMap;
2342
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
2343
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
2344
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
2345
+ active: boolean;
2346
+ date: any;
2347
+ disabled: boolean;
2348
+ focusVisible: boolean;
2349
+ id: string;
2350
+ label: string;
2351
+ selected: boolean;
2352
+ tabindex: -1 | 0;
2353
+ year: number;
2354
+ }>>) => TngDatepickerAttributeMap;
2355
+ inputText: string;
2356
+ labelMonthYear: string;
2357
+ layout: Readonly<{
2358
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
2359
+ offsetX: number;
2360
+ width: number;
2361
+ }>;
2362
+ monthOptions: readonly Readonly<{
2363
+ active: boolean;
2364
+ date: any;
2365
+ disabled: boolean;
2366
+ focusVisible: boolean;
2367
+ id: string;
2368
+ index: number;
2369
+ label: string;
2370
+ selected: boolean;
2371
+ tabindex: -1 | 0;
2372
+ }>[];
2373
+ open: boolean;
2374
+ validationError: string | null;
2375
+ value: any;
2376
+ view: import("./datepicker.types").TngCalendarView;
2377
+ visibleMonth: any;
2378
+ weekdayLabels: readonly string[];
2379
+ yearOptions: readonly Readonly<{
2380
+ active: boolean;
2381
+ date: any;
2382
+ disabled: boolean;
2383
+ focusVisible: boolean;
2384
+ id: string;
2385
+ label: string;
2386
+ selected: boolean;
2387
+ tabindex: -1 | 0;
2388
+ year: number;
2389
+ }>[];
2390
+ }>;
2391
+ getState: () => Readonly<{
2392
+ activeDate: any;
2393
+ disabled: boolean;
2394
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2395
+ inputText: string;
2396
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
2397
+ open: boolean;
2398
+ validationError: string | null;
2399
+ value: any;
2400
+ view: import("./datepicker.types").TngCalendarView;
2401
+ visibleMonth: any;
2402
+ }>;
2403
+ goToNextMonth: () => void;
2404
+ goToPrevMonth: () => void;
2405
+ handleCellClick: (date: any, options?: Readonly<{
2406
+ shiftKey?: boolean;
2407
+ }>) => void;
2408
+ handleCellPointerEnter: (date: any) => void;
2409
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2410
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2411
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2412
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
2413
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2414
+ nextMonth: () => void;
2415
+ nextYear: () => void;
2416
+ open: () => void;
2417
+ parseInputText: (text: string) => any;
2418
+ prevMonth: () => void;
2419
+ prevYear: () => void;
2420
+ registerOverlay: (element: HTMLElement | null) => void;
2421
+ registerTrigger: (element: HTMLElement | null) => void;
2422
+ selectDate: (date: any, options?: Readonly<{
2423
+ shiftKey?: boolean;
2424
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
2425
+ }>) => void;
2426
+ selectMonth: (monthIndex: number) => void;
2427
+ selectYear: (year: number) => void;
2428
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
2429
+ setConfig: (config: Partial<Readonly<{
2430
+ adapter?: Readonly<{
2431
+ addDays: (date: any, amount: number) => any;
2432
+ addMonths: (date: any, amount: number) => any;
2433
+ addYears: (date: any, amount: number) => any;
2434
+ compare: (left: any, right: any) => -1 | 0 | 1;
2435
+ createDate: (year: number, month: number, day: number) => any;
2436
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
2437
+ endOfMonth: (date: any) => any;
2438
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
2439
+ getDate: (date: any) => number;
2440
+ getDay: (date: any) => number;
2441
+ getMonth: (date: any) => number;
2442
+ getYear: (date: any) => number;
2443
+ isValid: (date: any) => boolean;
2444
+ parse: (text: string, locale?: string) => any;
2445
+ startOfMonth: (date: any) => any;
2446
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
2447
+ today: () => any;
2448
+ }> | undefined;
2449
+ allowDeselect?: boolean;
2450
+ allowManualInput?: boolean;
2451
+ ariaDescribedBy?: string | null;
2452
+ ariaLabel?: string | null;
2453
+ ariaLabelledBy?: string | null;
2454
+ autoCommitView?: boolean;
2455
+ closeOnEscape?: boolean;
2456
+ closeOnOutsideClick?: boolean;
2457
+ closeOnSelect?: boolean;
2458
+ closeOthersOnOpen?: boolean;
2459
+ defaultOpen?: boolean;
2460
+ direction?: import("./datepicker.types").TngDatepickerDirection;
2461
+ disableDate?: ((date: any) => boolean) | undefined;
2462
+ disabled?: boolean;
2463
+ enableMultipleRangeSelection?: boolean;
2464
+ enableRangeSelection?: boolean;
2465
+ enableTypeahead?: boolean;
2466
+ fixedWeeks?: boolean;
2467
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
2468
+ id?: string;
2469
+ initialView?: import("./datepicker.types").TngCalendarView;
2470
+ locale?: string;
2471
+ max?: any;
2472
+ maxDate?: any;
2473
+ maxSelections?: number | null;
2474
+ min?: any;
2475
+ minDate?: any;
2476
+ onPartialInputCommit?: boolean;
2477
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
2478
+ overlayRuntime?: Readonly<{
2479
+ clearLayers: () => void;
2480
+ dispatchKeydown: (event: Readonly<Readonly<{
2481
+ defaultPrevented?: boolean;
2482
+ key: string;
2483
+ preventDefault?: () => void;
2484
+ }>>) => void;
2485
+ dispatchPointerDown: (event: Readonly<Readonly<{
2486
+ composedPath?: () => readonly unknown[];
2487
+ defaultPrevented?: boolean;
2488
+ preventDefault?: () => void;
2489
+ target: unknown;
2490
+ }>>) => void;
2491
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2492
+ getLayerIds: () => readonly string[];
2493
+ isTopLayer: (id: string) => boolean;
2494
+ registerLayer: (layer: Readonly<{
2495
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
2496
+ dismissOnEscape?: boolean;
2497
+ dismissOnOutsidePointer?: boolean;
2498
+ id: string;
2499
+ modal?: boolean;
2500
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2501
+ priority?: number;
2502
+ }>) => void;
2503
+ unregisterLayer: (id: string) => void;
2504
+ }> | null | undefined;
2505
+ overlaySize?: number;
2506
+ ownerDocument?: Document | null;
2507
+ position?: import("./datepicker.types").TngDatepickerPosition;
2508
+ preserveViewOnOpenClose?: boolean;
2509
+ restoreFocus?: boolean;
2510
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
2511
+ showOutsideDays?: boolean;
2512
+ skipDisabled?: boolean;
2513
+ today?: any;
2514
+ trapFocus?: boolean;
2515
+ value?: any;
2516
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
2517
+ yearPageSize?: number;
2518
+ }>>) => void;
2519
+ setDisabled: (disabled: boolean) => void;
2520
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
2521
+ setInputText: (text: string) => void;
2522
+ setOpen: (open: boolean) => void;
2523
+ setState: (patch: Readonly<{
2524
+ activeDate?: any;
2525
+ disabled?: boolean;
2526
+ inputText?: string;
2527
+ value?: any;
2528
+ view?: import("./datepicker.types").TngCalendarView;
2529
+ visibleMonth?: any;
2530
+ }>) => void;
2531
+ setValue: (value: any) => void;
2532
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
2533
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
2534
+ setVisibleYear: (year: number) => void;
2535
+ showDaysPanel: () => void;
2536
+ showMonthsPanel: () => void;
2537
+ showYearsPanel: () => void;
2538
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
2539
+ toggleOpen: () => void;
2540
+ }>>;
2541
+ readonly option: import("@angular/core").InputSignal<Readonly<Readonly<{
2542
+ active: boolean;
2543
+ date: any;
2544
+ disabled: boolean;
2545
+ focusVisible: boolean;
2546
+ id: string;
2547
+ index: number;
2548
+ label: string;
2549
+ selected: boolean;
2550
+ tabindex: -1 | 0;
2551
+ }>>>;
2552
+ private readonly attributes;
2553
+ protected get id(): string | null;
2554
+ protected get role(): string | null;
2555
+ protected get tabindex(): string | null;
2556
+ protected get disabled(): boolean;
2557
+ protected get ariaDisabled(): string | null;
2558
+ protected get ariaSelected(): string | null;
2559
+ protected get dataActive(): string | null;
2560
+ protected get dataDisabled(): string | null;
2561
+ protected get dataFocusVisible(): string | null;
2562
+ protected get dataSelected(): string | null;
2563
+ protected get dataSlot(): string | null;
2564
+ protected onClick(): void;
2565
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerMonthOption, never>;
2566
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerMonthOption, "button[tngDatepickerMonthOption]", ["tngDatepickerMonthOption"], { "option": { "alias": "tngDatepickerMonthOption"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2567
+ }
2568
+ export declare class TngDatepickerYearGrid extends TngDatepickerControllerPart {
2569
+ readonly controller: import("@angular/core").InputSignal<Readonly<{
2570
+ clear: () => void;
2571
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
2572
+ commitInputText: () => boolean;
2573
+ destroy: () => void;
2574
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
2575
+ getOutputs: () => Readonly<{
2576
+ activeDate: any;
2577
+ cells: readonly Readonly<{
2578
+ active: boolean;
2579
+ colIndex: number;
2580
+ date: any;
2581
+ disabled: boolean;
2582
+ focusVisible: boolean;
2583
+ hidden: boolean;
2584
+ id: string;
2585
+ inMonth: boolean;
2586
+ inRange: boolean;
2587
+ label: string;
2588
+ rangeEnd: boolean;
2589
+ rangeStart: boolean;
2590
+ rowIndex: number;
2591
+ selected: boolean;
2592
+ tabindex: -1 | 0;
2593
+ today: boolean;
2594
+ }>[];
2595
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2596
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
2597
+ getGridAttributes: () => TngDatepickerAttributeMap;
2598
+ getHostAttributes: () => TngDatepickerAttributeMap;
2599
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
2600
+ active: boolean;
2601
+ date: any;
2602
+ disabled: boolean;
2603
+ focusVisible: boolean;
2604
+ id: string;
2605
+ index: number;
2606
+ label: string;
2607
+ selected: boolean;
2608
+ tabindex: -1 | 0;
2609
+ }>>) => TngDatepickerAttributeMap;
2610
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
2611
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
2612
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
2613
+ active: boolean;
2614
+ date: any;
2615
+ disabled: boolean;
2616
+ focusVisible: boolean;
2617
+ id: string;
2618
+ label: string;
2619
+ selected: boolean;
2620
+ tabindex: -1 | 0;
2621
+ year: number;
2622
+ }>>) => TngDatepickerAttributeMap;
2623
+ inputText: string;
2624
+ labelMonthYear: string;
2625
+ layout: Readonly<{
2626
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
2627
+ offsetX: number;
2628
+ width: number;
2629
+ }>;
2630
+ monthOptions: readonly Readonly<{
2631
+ active: boolean;
2632
+ date: any;
2633
+ disabled: boolean;
2634
+ focusVisible: boolean;
2635
+ id: string;
2636
+ index: number;
2637
+ label: string;
2638
+ selected: boolean;
2639
+ tabindex: -1 | 0;
2640
+ }>[];
2641
+ open: boolean;
2642
+ validationError: string | null;
2643
+ value: any;
2644
+ view: import("./datepicker.types").TngCalendarView;
2645
+ visibleMonth: any;
2646
+ weekdayLabels: readonly string[];
2647
+ yearOptions: readonly Readonly<{
2648
+ active: boolean;
2649
+ date: any;
2650
+ disabled: boolean;
2651
+ focusVisible: boolean;
2652
+ id: string;
2653
+ label: string;
2654
+ selected: boolean;
2655
+ tabindex: -1 | 0;
2656
+ year: number;
2657
+ }>[];
2658
+ }>;
2659
+ getState: () => Readonly<{
2660
+ activeDate: any;
2661
+ disabled: boolean;
2662
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2663
+ inputText: string;
2664
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
2665
+ open: boolean;
2666
+ validationError: string | null;
2667
+ value: any;
2668
+ view: import("./datepicker.types").TngCalendarView;
2669
+ visibleMonth: any;
2670
+ }>;
2671
+ goToNextMonth: () => void;
2672
+ goToPrevMonth: () => void;
2673
+ handleCellClick: (date: any, options?: Readonly<{
2674
+ shiftKey?: boolean;
2675
+ }>) => void;
2676
+ handleCellPointerEnter: (date: any) => void;
2677
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2678
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2679
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2680
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
2681
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2682
+ nextMonth: () => void;
2683
+ nextYear: () => void;
2684
+ open: () => void;
2685
+ parseInputText: (text: string) => any;
2686
+ prevMonth: () => void;
2687
+ prevYear: () => void;
2688
+ registerOverlay: (element: HTMLElement | null) => void;
2689
+ registerTrigger: (element: HTMLElement | null) => void;
2690
+ selectDate: (date: any, options?: Readonly<{
2691
+ shiftKey?: boolean;
2692
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
2693
+ }>) => void;
2694
+ selectMonth: (monthIndex: number) => void;
2695
+ selectYear: (year: number) => void;
2696
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
2697
+ setConfig: (config: Partial<Readonly<{
2698
+ adapter?: Readonly<{
2699
+ addDays: (date: any, amount: number) => any;
2700
+ addMonths: (date: any, amount: number) => any;
2701
+ addYears: (date: any, amount: number) => any;
2702
+ compare: (left: any, right: any) => -1 | 0 | 1;
2703
+ createDate: (year: number, month: number, day: number) => any;
2704
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
2705
+ endOfMonth: (date: any) => any;
2706
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
2707
+ getDate: (date: any) => number;
2708
+ getDay: (date: any) => number;
2709
+ getMonth: (date: any) => number;
2710
+ getYear: (date: any) => number;
2711
+ isValid: (date: any) => boolean;
2712
+ parse: (text: string, locale?: string) => any;
2713
+ startOfMonth: (date: any) => any;
2714
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
2715
+ today: () => any;
2716
+ }> | undefined;
2717
+ allowDeselect?: boolean;
2718
+ allowManualInput?: boolean;
2719
+ ariaDescribedBy?: string | null;
2720
+ ariaLabel?: string | null;
2721
+ ariaLabelledBy?: string | null;
2722
+ autoCommitView?: boolean;
2723
+ closeOnEscape?: boolean;
2724
+ closeOnOutsideClick?: boolean;
2725
+ closeOnSelect?: boolean;
2726
+ closeOthersOnOpen?: boolean;
2727
+ defaultOpen?: boolean;
2728
+ direction?: import("./datepicker.types").TngDatepickerDirection;
2729
+ disableDate?: ((date: any) => boolean) | undefined;
2730
+ disabled?: boolean;
2731
+ enableMultipleRangeSelection?: boolean;
2732
+ enableRangeSelection?: boolean;
2733
+ enableTypeahead?: boolean;
2734
+ fixedWeeks?: boolean;
2735
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
2736
+ id?: string;
2737
+ initialView?: import("./datepicker.types").TngCalendarView;
2738
+ locale?: string;
2739
+ max?: any;
2740
+ maxDate?: any;
2741
+ maxSelections?: number | null;
2742
+ min?: any;
2743
+ minDate?: any;
2744
+ onPartialInputCommit?: boolean;
2745
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
2746
+ overlayRuntime?: Readonly<{
2747
+ clearLayers: () => void;
2748
+ dispatchKeydown: (event: Readonly<Readonly<{
2749
+ defaultPrevented?: boolean;
2750
+ key: string;
2751
+ preventDefault?: () => void;
2752
+ }>>) => void;
2753
+ dispatchPointerDown: (event: Readonly<Readonly<{
2754
+ composedPath?: () => readonly unknown[];
2755
+ defaultPrevented?: boolean;
2756
+ preventDefault?: () => void;
2757
+ target: unknown;
2758
+ }>>) => void;
2759
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2760
+ getLayerIds: () => readonly string[];
2761
+ isTopLayer: (id: string) => boolean;
2762
+ registerLayer: (layer: Readonly<{
2763
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
2764
+ dismissOnEscape?: boolean;
2765
+ dismissOnOutsidePointer?: boolean;
2766
+ id: string;
2767
+ modal?: boolean;
2768
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
2769
+ priority?: number;
2770
+ }>) => void;
2771
+ unregisterLayer: (id: string) => void;
2772
+ }> | null | undefined;
2773
+ overlaySize?: number;
2774
+ ownerDocument?: Document | null;
2775
+ position?: import("./datepicker.types").TngDatepickerPosition;
2776
+ preserveViewOnOpenClose?: boolean;
2777
+ restoreFocus?: boolean;
2778
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
2779
+ showOutsideDays?: boolean;
2780
+ skipDisabled?: boolean;
2781
+ today?: any;
2782
+ trapFocus?: boolean;
2783
+ value?: any;
2784
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
2785
+ yearPageSize?: number;
2786
+ }>>) => void;
2787
+ setDisabled: (disabled: boolean) => void;
2788
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
2789
+ setInputText: (text: string) => void;
2790
+ setOpen: (open: boolean) => void;
2791
+ setState: (patch: Readonly<{
2792
+ activeDate?: any;
2793
+ disabled?: boolean;
2794
+ inputText?: string;
2795
+ value?: any;
2796
+ view?: import("./datepicker.types").TngCalendarView;
2797
+ visibleMonth?: any;
2798
+ }>) => void;
2799
+ setValue: (value: any) => void;
2800
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
2801
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
2802
+ setVisibleYear: (year: number) => void;
2803
+ showDaysPanel: () => void;
2804
+ showMonthsPanel: () => void;
2805
+ showYearsPanel: () => void;
2806
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
2807
+ toggleOpen: () => void;
2808
+ }>>;
2809
+ protected readonly dataSlot: "datepicker-grid";
2810
+ protected readonly role: "grid";
2811
+ protected onKeydown(event: KeyboardEvent): void;
2812
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerYearGrid, never>;
2813
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerYearGrid, "[tngDatepickerYearGrid]", ["tngDatepickerYearGrid"], { "controller": { "alias": "tngDatepickerYearGrid"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2814
+ }
2815
+ export declare class TngDatepickerYearOption extends TngDatepickerControllerPart {
2816
+ private readonly yearGrid;
2817
+ readonly controller: Signal<Readonly<{
2818
+ clear: () => void;
2819
+ close: (reason?: import("./datepicker.types").TngDatepickerCloseReason) => void;
2820
+ commitInputText: () => boolean;
2821
+ destroy: () => void;
2822
+ formatDate: (date: any, format?: import("./datepicker.types").TngDateFormatToken | string) => string;
2823
+ getOutputs: () => Readonly<{
2824
+ activeDate: any;
2825
+ cells: readonly Readonly<{
2826
+ active: boolean;
2827
+ colIndex: number;
2828
+ date: any;
2829
+ disabled: boolean;
2830
+ focusVisible: boolean;
2831
+ hidden: boolean;
2832
+ id: string;
2833
+ inMonth: boolean;
2834
+ inRange: boolean;
2835
+ label: string;
2836
+ rangeEnd: boolean;
2837
+ rangeStart: boolean;
2838
+ rowIndex: number;
2839
+ selected: boolean;
2840
+ tabindex: -1 | 0;
2841
+ today: boolean;
2842
+ }>[];
2843
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2844
+ getCellAttributes: (cellOrDate: any) => TngDatepickerAttributeMap;
2845
+ getGridAttributes: () => TngDatepickerAttributeMap;
2846
+ getHostAttributes: () => TngDatepickerAttributeMap;
2847
+ getMonthAttributes: (monthOrOption: number | Readonly<Readonly<{
2848
+ active: boolean;
2849
+ date: any;
2850
+ disabled: boolean;
2851
+ focusVisible: boolean;
2852
+ id: string;
2853
+ index: number;
2854
+ label: string;
2855
+ selected: boolean;
2856
+ tabindex: -1 | 0;
2857
+ }>>) => TngDatepickerAttributeMap;
2858
+ getOverlayAttributes: () => TngDatepickerAttributeMap;
2859
+ getTriggerAttributes: () => TngDatepickerAttributeMap;
2860
+ getYearAttributes: (yearOrOption: number | Readonly<Readonly<{
2861
+ active: boolean;
2862
+ date: any;
2863
+ disabled: boolean;
2864
+ focusVisible: boolean;
2865
+ id: string;
2866
+ label: string;
2867
+ selected: boolean;
2868
+ tabindex: -1 | 0;
2869
+ year: number;
2870
+ }>>) => TngDatepickerAttributeMap;
2871
+ inputText: string;
2872
+ labelMonthYear: string;
2873
+ layout: Readonly<{
2874
+ mode: import("./datepicker.types").TngDatepickerOverlayMode;
2875
+ offsetX: number;
2876
+ width: number;
2877
+ }>;
2878
+ monthOptions: readonly Readonly<{
2879
+ active: boolean;
2880
+ date: any;
2881
+ disabled: boolean;
2882
+ focusVisible: boolean;
2883
+ id: string;
2884
+ index: number;
2885
+ label: string;
2886
+ selected: boolean;
2887
+ tabindex: -1 | 0;
2888
+ }>[];
2889
+ open: boolean;
2890
+ validationError: string | null;
2891
+ value: any;
2892
+ view: import("./datepicker.types").TngCalendarView;
2893
+ visibleMonth: any;
2894
+ weekdayLabels: readonly string[];
2895
+ yearOptions: readonly Readonly<{
2896
+ active: boolean;
2897
+ date: any;
2898
+ disabled: boolean;
2899
+ focusVisible: boolean;
2900
+ id: string;
2901
+ label: string;
2902
+ selected: boolean;
2903
+ tabindex: -1 | 0;
2904
+ year: number;
2905
+ }>[];
2906
+ }>;
2907
+ getState: () => Readonly<{
2908
+ activeDate: any;
2909
+ disabled: boolean;
2910
+ focusedSection: import("./datepicker.types").TngDatepickerFocusedSection;
2911
+ inputText: string;
2912
+ lastCloseReason: import("./datepicker.types").TngDatepickerCloseReason | null;
2913
+ open: boolean;
2914
+ validationError: string | null;
2915
+ value: any;
2916
+ view: import("./datepicker.types").TngCalendarView;
2917
+ visibleMonth: any;
2918
+ }>;
2919
+ goToNextMonth: () => void;
2920
+ goToPrevMonth: () => void;
2921
+ handleCellClick: (date: any, options?: Readonly<{
2922
+ shiftKey?: boolean;
2923
+ }>) => void;
2924
+ handleCellPointerEnter: (date: any) => void;
2925
+ handleGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2926
+ handleMonthGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2927
+ handleOverlayKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2928
+ handleTriggerKeyDown: (event: Readonly<Pick<KeyboardEvent, "key" | "preventDefault">>) => void;
2929
+ handleYearGridKeyDown: (event: Readonly<Pick<KeyboardEvent, "altKey" | "ctrlKey" | "key" | "metaKey" | "preventDefault" | "shiftKey">>) => void;
2930
+ nextMonth: () => void;
2931
+ nextYear: () => void;
2932
+ open: () => void;
2933
+ parseInputText: (text: string) => any;
2934
+ prevMonth: () => void;
2935
+ prevYear: () => void;
2936
+ registerOverlay: (element: HTMLElement | null) => void;
2937
+ registerTrigger: (element: HTMLElement | null) => void;
2938
+ selectDate: (date: any, options?: Readonly<{
2939
+ shiftKey?: boolean;
2940
+ trigger?: import("./datepicker.types").TngDatepickerTrigger;
2941
+ }>) => void;
2942
+ selectMonth: (monthIndex: number) => void;
2943
+ selectYear: (year: number) => void;
2944
+ setActiveDate: (date: any, trigger?: import("./datepicker.types").TngDatepickerTrigger) => void;
2945
+ setConfig: (config: Partial<Readonly<{
2946
+ adapter?: Readonly<{
2947
+ addDays: (date: any, amount: number) => any;
2948
+ addMonths: (date: any, amount: number) => any;
2949
+ addYears: (date: any, amount: number) => any;
2950
+ compare: (left: any, right: any) => -1 | 0 | 1;
2951
+ createDate: (year: number, month: number, day: number) => any;
2952
+ deserialize?: ((value: unknown, locale?: string) => any) | undefined;
2953
+ endOfMonth: (date: any) => any;
2954
+ format: (date: any, format: import("./datepicker.types").TngDateFormatToken | string, locale?: string) => string;
2955
+ getDate: (date: any) => number;
2956
+ getDay: (date: any) => number;
2957
+ getMonth: (date: any) => number;
2958
+ getYear: (date: any) => number;
2959
+ isValid: (date: any) => boolean;
2960
+ parse: (text: string, locale?: string) => any;
2961
+ startOfMonth: (date: any) => any;
2962
+ startOfWeek: (date: any, weekStartsOn: import("./datepicker.types").TngWeekdayIndex) => any;
2963
+ today: () => any;
2964
+ }> | undefined;
2965
+ allowDeselect?: boolean;
2966
+ allowManualInput?: boolean;
2967
+ ariaDescribedBy?: string | null;
2968
+ ariaLabel?: string | null;
2969
+ ariaLabelledBy?: string | null;
2970
+ autoCommitView?: boolean;
2971
+ closeOnEscape?: boolean;
2972
+ closeOnOutsideClick?: boolean;
2973
+ closeOnSelect?: boolean;
2974
+ closeOthersOnOpen?: boolean;
2975
+ defaultOpen?: boolean;
2976
+ direction?: import("./datepicker.types").TngDatepickerDirection;
2977
+ disableDate?: ((date: any) => boolean) | undefined;
2978
+ disabled?: boolean;
2979
+ enableMultipleRangeSelection?: boolean;
2980
+ enableRangeSelection?: boolean;
2981
+ enableTypeahead?: boolean;
2982
+ fixedWeeks?: boolean;
2983
+ focusStrategy?: import("./datepicker.types").TngDatepickerFocusStrategy;
2984
+ id?: string;
2985
+ initialView?: import("./datepicker.types").TngCalendarView;
2986
+ locale?: string;
2987
+ max?: any;
2988
+ maxDate?: any;
2989
+ maxSelections?: number | null;
2990
+ min?: any;
2991
+ minDate?: any;
2992
+ onPartialInputCommit?: boolean;
2993
+ overlayMode?: import("./datepicker.types").TngDatepickerOverlayMode;
2994
+ overlayRuntime?: Readonly<{
2995
+ clearLayers: () => void;
2996
+ dispatchKeydown: (event: Readonly<Readonly<{
2997
+ defaultPrevented?: boolean;
2998
+ key: string;
2999
+ preventDefault?: () => void;
3000
+ }>>) => void;
3001
+ dispatchPointerDown: (event: Readonly<Readonly<{
3002
+ composedPath?: () => readonly unknown[];
3003
+ defaultPrevented?: boolean;
3004
+ preventDefault?: () => void;
3005
+ target: unknown;
3006
+ }>>) => void;
3007
+ dismissById: (id: string, reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
3008
+ getLayerIds: () => readonly string[];
3009
+ isTopLayer: (id: string) => boolean;
3010
+ registerLayer: (layer: Readonly<{
3011
+ containsTarget?: (target: unknown, path: readonly unknown[]) => boolean;
3012
+ dismissOnEscape?: boolean;
3013
+ dismissOnOutsidePointer?: boolean;
3014
+ id: string;
3015
+ modal?: boolean;
3016
+ onDismiss: (reason: import("@tailng-ui/cdk").TngOverlayDismissReason) => void;
3017
+ priority?: number;
3018
+ }>) => void;
3019
+ unregisterLayer: (id: string) => void;
3020
+ }> | null | undefined;
3021
+ overlaySize?: number;
3022
+ ownerDocument?: Document | null;
3023
+ position?: import("./datepicker.types").TngDatepickerPosition;
3024
+ preserveViewOnOpenClose?: boolean;
3025
+ restoreFocus?: boolean;
3026
+ selectionMode?: import("./datepicker.types").TngDatepickerSelectionMode;
3027
+ showOutsideDays?: boolean;
3028
+ skipDisabled?: boolean;
3029
+ today?: any;
3030
+ trapFocus?: boolean;
3031
+ value?: any;
3032
+ weekStartsOn?: import("./datepicker.types").TngWeekdayIndex;
3033
+ yearPageSize?: number;
3034
+ }>>) => void;
3035
+ setDisabled: (disabled: boolean) => void;
3036
+ setFocusedSection: (section: import("./datepicker.types").TngDatepickerFocusedSection) => void;
3037
+ setInputText: (text: string) => void;
3038
+ setOpen: (open: boolean) => void;
3039
+ setState: (patch: Readonly<{
3040
+ activeDate?: any;
3041
+ disabled?: boolean;
3042
+ inputText?: string;
3043
+ value?: any;
3044
+ view?: import("./datepicker.types").TngCalendarView;
3045
+ visibleMonth?: any;
3046
+ }>) => void;
3047
+ setValue: (value: any) => void;
3048
+ setView: (view: import("./datepicker.types").TngCalendarView) => void;
3049
+ setVisibleMonth: (valueOrYear: any, month?: number) => void;
3050
+ setVisibleYear: (year: number) => void;
3051
+ showDaysPanel: () => void;
3052
+ showMonthsPanel: () => void;
3053
+ showYearsPanel: () => void;
3054
+ subscribe: (listener: import("./datepicker.types").TngDatepickerListener<any>) => () => void;
3055
+ toggleOpen: () => void;
3056
+ }>>;
3057
+ readonly option: import("@angular/core").InputSignal<Readonly<Readonly<{
3058
+ active: boolean;
3059
+ date: any;
3060
+ disabled: boolean;
3061
+ focusVisible: boolean;
3062
+ id: string;
3063
+ label: string;
3064
+ selected: boolean;
3065
+ tabindex: -1 | 0;
3066
+ year: number;
3067
+ }>>>;
3068
+ private readonly attributes;
3069
+ protected get id(): string | null;
3070
+ protected get role(): string | null;
3071
+ protected get tabindex(): string | null;
3072
+ protected get disabled(): boolean;
3073
+ protected get ariaDisabled(): string | null;
3074
+ protected get ariaSelected(): string | null;
3075
+ protected get dataActive(): string | null;
3076
+ protected get dataDisabled(): string | null;
3077
+ protected get dataFocusVisible(): string | null;
3078
+ protected get dataSelected(): string | null;
3079
+ protected get dataSlot(): string | null;
3080
+ protected onClick(): void;
3081
+ static ɵfac: i0.ɵɵFactoryDeclaration<TngDatepickerYearOption, never>;
3082
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TngDatepickerYearOption, "button[tngDatepickerYearOption]", ["tngDatepickerYearOption"], { "option": { "alias": "tngDatepickerYearOption"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
3083
+ }
3084
+ export {};
3085
+ //# sourceMappingURL=tng-datepicker.parts.d.ts.map