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