yukit-web 0.10.5 → 0.10.7

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 (190) hide show
  1. package/fesm2022/yukit-web-chart.mjs +807 -552
  2. package/fesm2022/yukit-web-chart.mjs.map +1 -1
  3. package/fesm2022/yukit-web-helm-accordion.mjs +271 -100
  4. package/fesm2022/yukit-web-helm-accordion.mjs.map +1 -1
  5. package/fesm2022/yukit-web-helm-alert-dialog.mjs +675 -243
  6. package/fesm2022/yukit-web-helm-alert-dialog.mjs.map +1 -1
  7. package/fesm2022/yukit-web-helm-alert.mjs +199 -91
  8. package/fesm2022/yukit-web-helm-alert.mjs.map +1 -1
  9. package/fesm2022/yukit-web-helm-aspect-ratio.mjs +77 -43
  10. package/fesm2022/yukit-web-helm-aspect-ratio.mjs.map +1 -1
  11. package/fesm2022/yukit-web-helm-attachment.mjs +552 -205
  12. package/fesm2022/yukit-web-helm-attachment.mjs.map +1 -1
  13. package/fesm2022/yukit-web-helm-autocomplete.mjs +913 -288
  14. package/fesm2022/yukit-web-helm-autocomplete.mjs.map +1 -1
  15. package/fesm2022/yukit-web-helm-avatar.mjs +298 -137
  16. package/fesm2022/yukit-web-helm-avatar.mjs.map +1 -1
  17. package/fesm2022/yukit-web-helm-badge.mjs +78 -44
  18. package/fesm2022/yukit-web-helm-badge.mjs.map +1 -1
  19. package/fesm2022/yukit-web-helm-breadcrumb.mjs +466 -183
  20. package/fesm2022/yukit-web-helm-breadcrumb.mjs.map +1 -1
  21. package/fesm2022/yukit-web-helm-bubble.mjs +297 -118
  22. package/fesm2022/yukit-web-helm-bubble.mjs.map +1 -1
  23. package/fesm2022/yukit-web-helm-button-group.mjs +179 -83
  24. package/fesm2022/yukit-web-helm-button-group.mjs.map +1 -1
  25. package/fesm2022/yukit-web-helm-button.mjs +137 -67
  26. package/fesm2022/yukit-web-helm-button.mjs.map +1 -1
  27. package/fesm2022/yukit-web-helm-calendar.mjs +957 -230
  28. package/fesm2022/yukit-web-helm-calendar.mjs.map +1 -1
  29. package/fesm2022/yukit-web-helm-card.mjs +318 -136
  30. package/fesm2022/yukit-web-helm-card.mjs.map +1 -1
  31. package/fesm2022/yukit-web-helm-carousel.mjs +563 -233
  32. package/fesm2022/yukit-web-helm-carousel.mjs.map +1 -1
  33. package/fesm2022/yukit-web-helm-checkbox.mjs +367 -101
  34. package/fesm2022/yukit-web-helm-checkbox.mjs.map +1 -1
  35. package/fesm2022/yukit-web-helm-collapsible.mjs +155 -61
  36. package/fesm2022/yukit-web-helm-collapsible.mjs.map +1 -1
  37. package/fesm2022/yukit-web-helm-combobox.mjs +1572 -481
  38. package/fesm2022/yukit-web-helm-combobox.mjs.map +1 -1
  39. package/fesm2022/yukit-web-helm-command.mjs +752 -260
  40. package/fesm2022/yukit-web-helm-command.mjs.map +1 -1
  41. package/fesm2022/yukit-web-helm-context-menu.mjs +161 -63
  42. package/fesm2022/yukit-web-helm-context-menu.mjs.map +1 -1
  43. package/fesm2022/yukit-web-helm-date-picker.mjs +2322 -932
  44. package/fesm2022/yukit-web-helm-date-picker.mjs.map +1 -1
  45. package/fesm2022/yukit-web-helm-dialog.mjs +625 -240
  46. package/fesm2022/yukit-web-helm-dialog.mjs.map +1 -1
  47. package/fesm2022/yukit-web-helm-drawer.mjs +539 -222
  48. package/fesm2022/yukit-web-helm-drawer.mjs.map +1 -1
  49. package/fesm2022/yukit-web-helm-dropdown-menu.mjs +1295 -493
  50. package/fesm2022/yukit-web-helm-dropdown-menu.mjs.map +1 -1
  51. package/fesm2022/yukit-web-helm-empty.mjs +280 -121
  52. package/fesm2022/yukit-web-helm-empty.mjs.map +1 -1
  53. package/fesm2022/yukit-web-helm-field.mjs +670 -301
  54. package/fesm2022/yukit-web-helm-field.mjs.map +1 -1
  55. package/fesm2022/yukit-web-helm-hover-card.mjs +198 -99
  56. package/fesm2022/yukit-web-helm-hover-card.mjs.map +1 -1
  57. package/fesm2022/yukit-web-helm-input-group.mjs +357 -165
  58. package/fesm2022/yukit-web-helm-input-group.mjs.map +1 -1
  59. package/fesm2022/yukit-web-helm-input-otp.mjs +306 -114
  60. package/fesm2022/yukit-web-helm-input-otp.mjs.map +1 -1
  61. package/fesm2022/yukit-web-helm-input.mjs +62 -30
  62. package/fesm2022/yukit-web-helm-input.mjs.map +1 -1
  63. package/fesm2022/yukit-web-helm-item.mjs +545 -227
  64. package/fesm2022/yukit-web-helm-item.mjs.map +1 -1
  65. package/fesm2022/yukit-web-helm-kbd.mjs +85 -44
  66. package/fesm2022/yukit-web-helm-kbd.mjs.map +1 -1
  67. package/fesm2022/yukit-web-helm-label.mjs +60 -28
  68. package/fesm2022/yukit-web-helm-label.mjs.map +1 -1
  69. package/fesm2022/yukit-web-helm-marker.mjs +165 -74
  70. package/fesm2022/yukit-web-helm-marker.mjs.map +1 -1
  71. package/fesm2022/yukit-web-helm-menubar.mjs +207 -82
  72. package/fesm2022/yukit-web-helm-menubar.mjs.map +1 -1
  73. package/fesm2022/yukit-web-helm-message.mjs +277 -112
  74. package/fesm2022/yukit-web-helm-message.mjs.map +1 -1
  75. package/fesm2022/yukit-web-helm-native-select.mjs +363 -129
  76. package/fesm2022/yukit-web-helm-native-select.mjs.map +1 -1
  77. package/fesm2022/yukit-web-helm-navigation-menu.mjs +398 -166
  78. package/fesm2022/yukit-web-helm-navigation-menu.mjs.map +1 -1
  79. package/fesm2022/yukit-web-helm-pagination.mjs +1444 -460
  80. package/fesm2022/yukit-web-helm-pagination.mjs.map +1 -1
  81. package/fesm2022/yukit-web-helm-popover.mjs +358 -133
  82. package/fesm2022/yukit-web-helm-popover.mjs.map +1 -1
  83. package/fesm2022/yukit-web-helm-progress.mjs +126 -58
  84. package/fesm2022/yukit-web-helm-progress.mjs.map +1 -1
  85. package/fesm2022/yukit-web-helm-radio-group.mjs +420 -144
  86. package/fesm2022/yukit-web-helm-radio-group.mjs.map +1 -1
  87. package/fesm2022/yukit-web-helm-resizable.mjs +210 -91
  88. package/fesm2022/yukit-web-helm-resizable.mjs.map +1 -1
  89. package/fesm2022/yukit-web-helm-scroll-area.mjs +64 -34
  90. package/fesm2022/yukit-web-helm-scroll-area.mjs.map +1 -1
  91. package/fesm2022/yukit-web-helm-select.mjs +1059 -351
  92. package/fesm2022/yukit-web-helm-select.mjs.map +1 -1
  93. package/fesm2022/yukit-web-helm-separator.mjs +61 -31
  94. package/fesm2022/yukit-web-helm-separator.mjs.map +1 -1
  95. package/fesm2022/yukit-web-helm-sheet.mjs +590 -231
  96. package/fesm2022/yukit-web-helm-sheet.mjs.map +1 -1
  97. package/fesm2022/yukit-web-helm-sidebar.mjs +1781 -757
  98. package/fesm2022/yukit-web-helm-sidebar.mjs.map +1 -1
  99. package/fesm2022/yukit-web-helm-skeleton.mjs +45 -27
  100. package/fesm2022/yukit-web-helm-skeleton.mjs.map +1 -1
  101. package/fesm2022/yukit-web-helm-slider.mjs +139 -59
  102. package/fesm2022/yukit-web-helm-slider.mjs.map +1 -1
  103. package/fesm2022/yukit-web-helm-sonner.mjs +350 -62
  104. package/fesm2022/yukit-web-helm-sonner.mjs.map +1 -1
  105. package/fesm2022/yukit-web-helm-spinner.mjs +118 -44
  106. package/fesm2022/yukit-web-helm-spinner.mjs.map +1 -1
  107. package/fesm2022/yukit-web-helm-switch.mjs +326 -94
  108. package/fesm2022/yukit-web-helm-switch.mjs.map +1 -1
  109. package/fesm2022/yukit-web-helm-table.mjs +374 -177
  110. package/fesm2022/yukit-web-helm-table.mjs.map +1 -1
  111. package/fesm2022/yukit-web-helm-tabs.mjs +549 -173
  112. package/fesm2022/yukit-web-helm-tabs.mjs.map +1 -1
  113. package/fesm2022/yukit-web-helm-textarea.mjs +62 -30
  114. package/fesm2022/yukit-web-helm-textarea.mjs.map +1 -1
  115. package/fesm2022/yukit-web-helm-toggle-group.mjs +291 -89
  116. package/fesm2022/yukit-web-helm-toggle-group.mjs.map +1 -1
  117. package/fesm2022/yukit-web-helm-toggle.mjs +132 -57
  118. package/fesm2022/yukit-web-helm-toggle.mjs.map +1 -1
  119. package/fesm2022/yukit-web-helm-tooltip.mjs +84 -54
  120. package/fesm2022/yukit-web-helm-tooltip.mjs.map +1 -1
  121. package/fesm2022/yukit-web-helm-typography.mjs +461 -202
  122. package/fesm2022/yukit-web-helm-typography.mjs.map +1 -1
  123. package/fesm2022/yukit-web-helm-utils.mjs +131 -253
  124. package/fesm2022/yukit-web-helm-utils.mjs.map +1 -1
  125. package/fesm2022/yukit-web.mjs +24457 -9655
  126. package/fesm2022/yukit-web.mjs.map +1 -1
  127. package/package.json +9 -9
  128. package/types/yukit-web-chart.d.ts +184 -125
  129. package/types/yukit-web-helm-accordion.d.ts +49 -28
  130. package/types/yukit-web-helm-alert-dialog.d.ts +127 -73
  131. package/types/yukit-web-helm-alert.d.ts +30 -32
  132. package/types/yukit-web-helm-aspect-ratio.d.ts +17 -15
  133. package/types/yukit-web-helm-attachment.d.ts +97 -69
  134. package/types/yukit-web-helm-autocomplete.d.ts +205 -79
  135. package/types/yukit-web-helm-avatar.d.ts +44 -39
  136. package/types/yukit-web-helm-badge.d.ts +18 -17
  137. package/types/yukit-web-helm-breadcrumb.d.ts +69 -45
  138. package/types/yukit-web-helm-bubble.d.ts +54 -40
  139. package/types/yukit-web-helm-button-group.d.ts +29 -22
  140. package/types/yukit-web-helm-button.d.ts +41 -31
  141. package/types/yukit-web-helm-calendar.d.ts +157 -85
  142. package/types/yukit-web-helm-card.d.ts +38 -42
  143. package/types/yukit-web-helm-carousel.d.ts +105 -73
  144. package/types/yukit-web-helm-checkbox.d.ts +117 -58
  145. package/types/yukit-web-helm-collapsible.d.ts +34 -19
  146. package/types/yukit-web-helm-combobox.d.ts +355 -150
  147. package/types/yukit-web-helm-command.d.ts +140 -73
  148. package/types/yukit-web-helm-context-menu.d.ts +48 -27
  149. package/types/yukit-web-helm-date-picker.d.ts +852 -556
  150. package/types/yukit-web-helm-dialog.d.ts +106 -78
  151. package/types/yukit-web-helm-drawer.d.ts +90 -61
  152. package/types/yukit-web-helm-dropdown-menu.d.ts +278 -158
  153. package/types/yukit-web-helm-empty.d.ts +38 -42
  154. package/types/yukit-web-helm-field.d.ts +122 -91
  155. package/types/yukit-web-helm-hover-card.d.ts +39 -27
  156. package/types/yukit-web-helm-input-group.d.ts +63 -41
  157. package/types/yukit-web-helm-input-otp.d.ts +38 -35
  158. package/types/yukit-web-helm-input.d.ts +19 -12
  159. package/types/yukit-web-helm-item.d.ts +90 -82
  160. package/types/yukit-web-helm-kbd.d.ts +10 -15
  161. package/types/yukit-web-helm-label.d.ts +14 -11
  162. package/types/yukit-web-helm-marker.d.ts +26 -27
  163. package/types/yukit-web-helm-menubar.d.ts +61 -32
  164. package/types/yukit-web-helm-message.d.ts +34 -38
  165. package/types/yukit-web-helm-native-select.d.ts +102 -61
  166. package/types/yukit-web-helm-navigation-menu.d.ts +76 -42
  167. package/types/yukit-web-helm-pagination.d.ts +344 -166
  168. package/types/yukit-web-helm-popover.d.ts +62 -42
  169. package/types/yukit-web-helm-progress.d.ts +27 -20
  170. package/types/yukit-web-helm-radio-group.d.ts +121 -63
  171. package/types/yukit-web-helm-resizable.d.ts +46 -24
  172. package/types/yukit-web-helm-scroll-area.d.ts +6 -10
  173. package/types/yukit-web-helm-select.d.ts +231 -114
  174. package/types/yukit-web-helm-separator.d.ts +15 -12
  175. package/types/yukit-web-helm-sheet.d.ts +94 -65
  176. package/types/yukit-web-helm-sidebar.d.ts +322 -232
  177. package/types/yukit-web-helm-skeleton.d.ts +6 -10
  178. package/types/yukit-web-helm-slider.d.ts +33 -13
  179. package/types/yukit-web-helm-sonner.d.ts +112 -51
  180. package/types/yukit-web-helm-spinner.d.ts +24 -17
  181. package/types/yukit-web-helm-switch.d.ts +89 -51
  182. package/types/yukit-web-helm-table.d.ts +38 -42
  183. package/types/yukit-web-helm-tabs.d.ts +116 -60
  184. package/types/yukit-web-helm-textarea.d.ts +19 -12
  185. package/types/yukit-web-helm-toggle-group.d.ts +81 -32
  186. package/types/yukit-web-helm-toggle.d.ts +39 -21
  187. package/types/yukit-web-helm-tooltip.d.ts +21 -16
  188. package/types/yukit-web-helm-typography.d.ts +62 -77
  189. package/types/yukit-web-helm-utils.d.ts +8 -11
  190. package/types/yukit-web.d.ts +5092 -2351
@@ -1,574 +1,870 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ValueProvider } from '@angular/core';
3
- import { BrnDateInput, BrnDatePickerTriggerBase, BrnDatePickerBase } from '@spartan-ng/brain/date-picker';
4
- import * as i1 from 'yukit-web/helm/input-group';
5
- import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
6
- import { ControlValueAccessor } from '@angular/forms';
7
- import { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';
8
- import { BrnOverlayState } from '@spartan-ng/brain/overlay';
9
- import * as _spartan_ng_brain_popover from '@spartan-ng/brain/popover';
10
- import { BrnPopover, BrnPopoverAlign } from '@spartan-ng/brain/popover';
11
- import * as i1$1 from '@spartan-ng/brain/field';
12
- import { ClassValue } from 'clsx';
13
-
14
- declare class HlmDateMultiInput<T> extends BrnDateInput<T[]> implements BrnDatePickerTriggerBase {
15
- private readonly _config;
16
- private readonly _fieldControl;
17
- private readonly _invalid;
18
- protected readonly _spartanInvalid: _angular_core.Signal<boolean | null | undefined>;
19
- protected readonly _dirty: _angular_core.Signal<boolean | null> | undefined;
20
- protected readonly _touched: _angular_core.Signal<boolean | null> | undefined;
21
- protected readonly _ariaInvalid: _angular_core.Signal<"true" | null>;
22
- /**
23
- * Parses input text into dates. Return `null` for invalid input - the
24
- * picker's dates are cleared while the text is preserved so the user can
25
- * fix it.
26
- *
27
- * Defaults to `parseDate` from `HlmDatePickerMultiConfig`.
28
- */
29
- readonly parseDate: _angular_core.InputSignal<(value: string) => T[] | null>;
30
- /**
31
- * Formats the current dates into the input/edit format shown while the
32
- * input is focused. On blur the picker's display format is restored.
33
- *
34
- * Defaults to `formatInputDates` from `HlmDatePickerMultiConfig`.
35
- */
36
- readonly formatInputDates: _angular_core.InputSignal<(dates: T[]) => string>;
37
- protected parseValue(value: string): T[] | null;
38
- protected formatInputValue(value: T[]): string;
39
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDateMultiInput<any>, never>;
40
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDateMultiInput<any>, "hlm-date-multi-input", never, { "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDates": { "alias": "formatInputDates"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
1
+ import { BrnDateInput, BrnDatePickerBase, BrnDatePickerTriggerBase } from "@spartan-ng/brain/date-picker";
2
+ import * as i0 from "@angular/core";
3
+ import { ValueProvider } from "@angular/core";
4
+ import * as i1$1 from "yukit-web/helm/input-group";
5
+ import { BooleanInput, NumberInput } from "@angular/cdk/coercion";
6
+ import { ControlValueAccessor } from "@angular/forms";
7
+ import { ChangeFn, TouchFn } from "@spartan-ng/brain/forms";
8
+ import { BrnOverlayState } from "@spartan-ng/brain/overlay";
9
+ import { BrnPopover, BrnPopoverAlign } from "@spartan-ng/brain/popover";
10
+ import * as i1 from "@spartan-ng/brain/field";
11
+ import { ClassValue } from "clsx";
12
+ export declare class HlmDateMultiInput<T> extends BrnDateInput<T[]> implements BrnDatePickerTriggerBase {
13
+ private readonly _config;
14
+ private readonly _fieldControl;
15
+ private readonly _invalid;
16
+ protected readonly _spartanInvalid: import("@angular/core").Signal<boolean | null | undefined>;
17
+ protected readonly _dirty: import("@angular/core").Signal<boolean | null> | undefined;
18
+ protected readonly _touched: import("@angular/core").Signal<boolean | null> | undefined;
19
+ protected readonly _ariaInvalid: import("@angular/core").Signal<"true" | null>;
20
+ /**
21
+ * Parses input text into dates. Return `null` for invalid input - the
22
+ * picker's dates are cleared while the text is preserved so the user can
23
+ * fix it.
24
+ *
25
+ * Defaults to `parseDate` from `HlmDatePickerMultiConfig`.
26
+ */
27
+ readonly parseDate: import("@angular/core").InputSignal<(value: string) => T[] | null>;
28
+ /**
29
+ * Formats the current dates into the input/edit format shown while the
30
+ * input is focused. On blur the picker's display format is restored.
31
+ *
32
+ * Defaults to `formatInputDates` from `HlmDatePickerMultiConfig`.
33
+ */
34
+ readonly formatInputDates: import("@angular/core").InputSignal<(dates: T[]) => string>;
35
+ protected parseValue(value: string): T[] | null;
36
+ protected formatInputValue(value: T[]): string;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDateMultiInput<any>, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDateMultiInput<any>, "hlm-date-multi-input", never, {
39
+ "parseDate": {
40
+ "alias": "parseDate";
41
+ "required": false;
42
+ "isSignal": true;
43
+ };
44
+ "formatInputDates": {
45
+ "alias": "formatInputDates";
46
+ "required": false;
47
+ "isSignal": true;
48
+ };
49
+ }, {}, never, never, true, [{
50
+ directive: typeof i1$1.HlmInputGroup;
51
+ inputs: {};
52
+ outputs: {};
53
+ }]>;
41
54
  }
42
-
43
- declare const HLM_DATE_PICKER_VALUE_ACCESSOR: {
44
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
45
- useExisting: _angular_core.Type<any>;
46
- multi: boolean;
55
+ export declare const HLM_DATE_PICKER_VALUE_ACCESSOR: {
56
+ provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
57
+ useExisting: import("@angular/core").Type<any>;
58
+ multi: boolean;
47
59
  };
48
- declare class HlmDatePicker<T> implements BrnDatePickerBase<T>, ControlValueAccessor {
49
- private readonly _config;
50
- readonly popover: _angular_core.Signal<BrnPopover>;
51
- private readonly _trigger;
52
- readonly align: _angular_core.InputSignal<BrnPopoverAlign>;
53
- /** Show dropdowns to navigate between months or years. */
54
- readonly captionLayout: _angular_core.InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
55
- /** The minimum date that can be selected. */
56
- readonly minDate: _angular_core.InputSignal<T | undefined>;
57
- /** The maximum date that can be selected. */
58
- readonly maxDate: _angular_core.InputSignal<T | undefined>;
59
- /** Determine if the date picker is disabled. */
60
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
61
- /** The selected value. */
62
- readonly date: _angular_core.InputSignal<T | undefined>;
63
- /** The date the calendar focuses on first open when no date is selected. */
64
- readonly defaultFocusedDate: _angular_core.InputSignal<T | undefined>;
65
- protected readonly _mutableDate: _angular_core.WritableSignal<T | undefined>;
66
- /** If true, the date picker will close when a date is selected. */
67
- readonly autoCloseOnSelect: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
68
- /** Defines how the date should be displayed in the UI. */
69
- readonly formatDate: _angular_core.InputSignal<(date: T) => string>;
70
- /** Defines how the date should be transformed before saving to model/form. */
71
- readonly transformDate: _angular_core.InputSignal<(date: T) => T>;
72
- protected readonly _popoverState: _angular_core.WritableSignal<BrnOverlayState | null>;
73
- protected readonly _disabled: _angular_core.WritableSignal<boolean>;
74
- /** @internal The disabled state as a readonly signal */
75
- readonly disabledState: _angular_core.Signal<boolean>;
76
- readonly formattedDate: _angular_core.Signal<string | undefined>;
77
- readonly dateChange: _angular_core.OutputEmitterRef<T | null>;
78
- readonly labelableId: _angular_core.Signal<string | undefined>;
79
- readonly hasDate: _angular_core.Signal<boolean>;
80
- /** @internal The current raw value, used by inputs to reformat on focus. */
81
- readonly value: _angular_core.Signal<NonNullable<T> | null>;
82
- protected _onChange?: ChangeFn<T | null>;
83
- protected _onTouched?: TouchFn;
84
- protected _onStateChange(state: BrnOverlayState): void;
85
- protected _handleChange(value: T | undefined): void;
86
- /**
87
- * Commit a date to the picker. Updates the internal model, notifies form
88
- * controls, and emits `dateChange`. Unlike `_handleChange`, this does not
89
- * close the popover - it's intended to be called from a text input that
90
- * is parsing user-entered values while typing.
91
- */
92
- updateDate(value: T | null): void;
93
- /** CONTROL VALUE ACCESSOR */
94
- writeValue(value: T | null): void;
95
- registerOnChange(fn: ChangeFn<T | null>): void;
96
- registerOnTouched(fn: TouchFn): void;
97
- touched(): void;
98
- setDisabledState(isDisabled: boolean): void;
99
- open(): void;
100
- close(): void;
101
- reset(): void;
102
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePicker<any>, never>;
103
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePicker<any>, "hlm-date-picker", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "transformDate": { "alias": "transformDate"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
60
+ export declare class HlmDatePicker<T> implements BrnDatePickerBase<T>, ControlValueAccessor {
61
+ private readonly _config;
62
+ readonly popover: import("@angular/core").Signal<BrnPopover>;
63
+ private readonly _trigger;
64
+ readonly align: import("@angular/core").InputSignal<BrnPopoverAlign>;
65
+ /** Show dropdowns to navigate between months or years. */
66
+ readonly captionLayout: import("@angular/core").InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
67
+ /** The minimum date that can be selected. */
68
+ readonly minDate: import("@angular/core").InputSignal<T | undefined>;
69
+ /** The maximum date that can be selected. */
70
+ readonly maxDate: import("@angular/core").InputSignal<T | undefined>;
71
+ /** Determine if the date picker is disabled. */
72
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
73
+ /** The selected value. */
74
+ readonly date: import("@angular/core").InputSignal<T | undefined>;
75
+ /** The date the calendar focuses on first open when no date is selected. */
76
+ readonly defaultFocusedDate: import("@angular/core").InputSignal<T | undefined>;
77
+ protected readonly _mutableDate: import("@angular/core").WritableSignal<T | undefined>;
78
+ /** If true, the date picker will close when a date is selected. */
79
+ readonly autoCloseOnSelect: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
80
+ /** Defines how the date should be displayed in the UI. */
81
+ readonly formatDate: import("@angular/core").InputSignal<(date: T) => string>;
82
+ /** Defines how the date should be transformed before saving to model/form. */
83
+ readonly transformDate: import("@angular/core").InputSignal<(date: T) => T>;
84
+ protected readonly _popoverState: import("@angular/core").WritableSignal<BrnOverlayState | null>;
85
+ protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
86
+ /** @internal The disabled state as a readonly signal */
87
+ readonly disabledState: import("@angular/core").Signal<boolean>;
88
+ readonly formattedDate: import("@angular/core").Signal<string | undefined>;
89
+ readonly dateChange: import("@angular/core").OutputEmitterRef<T | null>;
90
+ readonly labelableId: import("@angular/core").Signal<string | undefined>;
91
+ readonly hasDate: import("@angular/core").Signal<boolean>;
92
+ /** @internal The current raw value, used by inputs to reformat on focus. */
93
+ readonly value: import("@angular/core").Signal<NonNullable<T> | null>;
94
+ protected _onChange?: ChangeFn<T | null>;
95
+ protected _onTouched?: TouchFn;
96
+ protected _onStateChange(state: BrnOverlayState): void;
97
+ protected _handleChange(value: T | undefined): void;
98
+ /**
99
+ * Commit a date to the picker. Updates the internal model, notifies form
100
+ * controls, and emits `dateChange`. Unlike `_handleChange`, this does not
101
+ * close the popover - it's intended to be called from a text input that
102
+ * is parsing user-entered values while typing.
103
+ */
104
+ updateDate(value: T | null): void;
105
+ /** CONTROL VALUE ACCESSOR */
106
+ writeValue(value: T | null): void;
107
+ registerOnChange(fn: ChangeFn<T | null>): void;
108
+ registerOnTouched(fn: TouchFn): void;
109
+ touched(): void;
110
+ setDisabledState(isDisabled: boolean): void;
111
+ open(): void;
112
+ close(): void;
113
+ reset(): void;
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDatePicker<any>, never>;
115
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDatePicker<any>, "hlm-date-picker", never, {
116
+ "align": {
117
+ "alias": "align";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ "captionLayout": {
122
+ "alias": "captionLayout";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "minDate": {
127
+ "alias": "minDate";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "maxDate": {
132
+ "alias": "maxDate";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "disabled": {
137
+ "alias": "disabled";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "date": {
142
+ "alias": "date";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "defaultFocusedDate": {
147
+ "alias": "defaultFocusedDate";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ "autoCloseOnSelect": {
152
+ "alias": "autoCloseOnSelect";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ "formatDate": {
157
+ "alias": "formatDate";
158
+ "required": false;
159
+ "isSignal": true;
160
+ };
161
+ "transformDate": {
162
+ "alias": "transformDate";
163
+ "required": false;
164
+ "isSignal": true;
165
+ };
166
+ }, {
167
+ "dateChange": "dateChange";
168
+ }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{
169
+ directive: typeof i1.BrnFieldControl;
170
+ inputs: {};
171
+ outputs: {};
172
+ }]>;
104
173
  }
105
-
106
- declare class HlmDatePickerAnchor {
107
- private readonly _host;
108
- private readonly _brnOverlay;
109
- readonly hlmDatePickerAnchorForInput: _angular_core.InputSignal<BrnPopover | undefined>;
110
- readonly hlmDatePickerAnchorFor: _angular_core.WritableSignal<BrnPopover | undefined>;
111
- constructor();
112
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerAnchor, never>;
113
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HlmDatePickerAnchor, "[hlmDatePickerAnchor]", never, { "hlmDatePickerAnchorForInput": { "alias": "hlmDatePickerAnchorFor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
174
+ export declare class HlmDatePickerAnchor {
175
+ private readonly _host;
176
+ private readonly _brnOverlay;
177
+ readonly hlmDatePickerAnchorForInput: import("@angular/core").InputSignal<BrnPopover | undefined>;
178
+ readonly hlmDatePickerAnchorFor: import("@angular/core").WritableSignal<BrnPopover | undefined>;
179
+ constructor();
180
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDatePickerAnchor, never>;
181
+ static ɵdir: i0.ɵɵDirectiveDeclaration<HlmDatePickerAnchor, "[hlmDatePickerAnchor]", never, {
182
+ "hlmDatePickerAnchorForInput": {
183
+ "alias": "hlmDatePickerAnchorFor";
184
+ "required": false;
185
+ "isSignal": true;
186
+ };
187
+ }, {}, never, never, true, never>;
114
188
  }
115
-
116
- declare class HlmDatePickerInput<T> extends BrnDateInput<T> implements BrnDatePickerTriggerBase {
117
- private readonly _config;
118
- private readonly _fieldControl;
119
- private readonly _invalid;
120
- protected readonly _spartanInvalid: _angular_core.Signal<boolean | null | undefined>;
121
- protected readonly _dirty: _angular_core.Signal<boolean | null> | undefined;
122
- protected readonly _touched: _angular_core.Signal<boolean | null> | undefined;
123
- protected readonly _ariaInvalid: _angular_core.Signal<"true" | null>;
124
- /**
125
- * Parses input text into a date value. Return `null` for invalid
126
- * input - the picker's date is cleared while the text is preserved so
127
- * the user can fix it.
128
- *
129
- * Defaults to `parseDate` from `HlmDatePickerConfig`.
130
- */
131
- readonly parseDate: _angular_core.InputSignal<(value: string) => T | null>;
132
- /**
133
- * Formats the current date into the input/edit format shown while the
134
- * input is focused. On blur the picker's display format is restored.
135
- *
136
- * Defaults to `formatInputDate` from `HlmDatePickerConfig`.
137
- */
138
- readonly formatInputDate: _angular_core.InputSignal<(date: T) => string>;
139
- protected parseValue(value: string): T | null;
140
- protected formatInputValue(value: T): string;
141
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerInput<any>, never>;
142
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerInput<any>, "hlm-date-picker-input", never, { "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDate": { "alias": "formatInputDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
189
+ export declare class HlmDatePickerInput<T> extends BrnDateInput<T> implements BrnDatePickerTriggerBase {
190
+ private readonly _config;
191
+ private readonly _fieldControl;
192
+ private readonly _invalid;
193
+ protected readonly _spartanInvalid: import("@angular/core").Signal<boolean | null | undefined>;
194
+ protected readonly _dirty: import("@angular/core").Signal<boolean | null> | undefined;
195
+ protected readonly _touched: import("@angular/core").Signal<boolean | null> | undefined;
196
+ protected readonly _ariaInvalid: import("@angular/core").Signal<"true" | null>;
197
+ /**
198
+ * Parses input text into a date value. Return `null` for invalid
199
+ * input - the picker's date is cleared while the text is preserved so
200
+ * the user can fix it.
201
+ *
202
+ * Defaults to `parseDate` from `HlmDatePickerConfig`.
203
+ */
204
+ readonly parseDate: import("@angular/core").InputSignal<(value: string) => T | null>;
205
+ /**
206
+ * Formats the current date into the input/edit format shown while the
207
+ * input is focused. On blur the picker's display format is restored.
208
+ *
209
+ * Defaults to `formatInputDate` from `HlmDatePickerConfig`.
210
+ */
211
+ readonly formatInputDate: import("@angular/core").InputSignal<(date: T) => string>;
212
+ protected parseValue(value: string): T | null;
213
+ protected formatInputValue(value: T): string;
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDatePickerInput<any>, never>;
215
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDatePickerInput<any>, "hlm-date-picker-input", never, {
216
+ "parseDate": {
217
+ "alias": "parseDate";
218
+ "required": false;
219
+ "isSignal": true;
220
+ };
221
+ "formatInputDate": {
222
+ "alias": "formatInputDate";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ }, {}, never, never, true, [{
227
+ directive: typeof i1$1.HlmInputGroup;
228
+ inputs: {};
229
+ outputs: {};
230
+ }]>;
143
231
  }
144
-
145
- declare const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR: {
146
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
147
- useExisting: _angular_core.Type<any>;
148
- multi: boolean;
232
+ export declare const HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR: {
233
+ provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
234
+ useExisting: import("@angular/core").Type<any>;
235
+ multi: boolean;
149
236
  };
150
- declare class HlmDatePickerMulti<T> implements BrnDatePickerBase<T[]>, ControlValueAccessor {
151
- private readonly _config;
152
- readonly popover: _angular_core.Signal<BrnPopover>;
153
- private readonly _trigger;
154
- readonly align: _angular_core.InputSignal<BrnPopoverAlign>;
155
- /** Show dropdowns to navigate between months or years. */
156
- readonly captionLayout: _angular_core.InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
157
- /** The minimum date that can be selected.*/
158
- readonly minDate: _angular_core.InputSignal<T | undefined>;
159
- /** The maximum date that can be selected. */
160
- readonly maxDate: _angular_core.InputSignal<T | undefined>;
161
- /** The minimum selectable dates. */
162
- readonly minSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
163
- /** The maximum selectable dates. */
164
- readonly maxSelection: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
165
- /** Determine if the date picker is disabled. */
166
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
167
- /** The selected value. */
168
- readonly date: _angular_core.InputSignal<T[] | undefined>;
169
- protected readonly _mutableDate: _angular_core.WritableSignal<T[] | undefined>;
170
- /** If true, the date picker will close when the max selection of dates is reached. */
171
- readonly autoCloseOnMaxSelection: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
172
- /** Defines how the date should be displayed in the UI. */
173
- readonly formatDates: _angular_core.InputSignal<(date: T[]) => string>;
174
- /** Defines how the date should be transformed before saving to model/form. */
175
- readonly transformDates: _angular_core.InputSignal<(date: T[]) => T[]>;
176
- protected readonly _popoverState: _angular_core.WritableSignal<BrnOverlayState | null>;
177
- protected readonly _disabled: _angular_core.WritableSignal<boolean>;
178
- /** @internal The disabled state as a readonly signal */
179
- readonly disabledState: _angular_core.Signal<boolean>;
180
- readonly formattedDate: _angular_core.Signal<string | undefined>;
181
- readonly dateChange: _angular_core.OutputEmitterRef<T[]>;
182
- readonly labelableId: _angular_core.Signal<string | undefined>;
183
- readonly hasDate: _angular_core.Signal<boolean>;
184
- /** @internal The current raw value, used by inputs to reformat on focus. */
185
- readonly value: _angular_core.Signal<T[] | null>;
186
- protected _onChange?: ChangeFn<T[]>;
187
- protected _onTouched?: TouchFn;
188
- protected _onStateChange(state: BrnOverlayState): void;
189
- protected _handleChange(value: T[] | undefined): void;
190
- /**
191
- * Commit dates to the picker. Updates the internal model, notifies form
192
- * controls, and emits `dateChange`. Intended to be called from a text input
193
- * that parses user-entered values. Pass `null` to clear the selection.
194
- */
195
- updateDate(value: T[] | null): void;
196
- touched(): void;
197
- /** CONTROL VALUE ACCESSOR */
198
- writeValue(value: T[] | null): void;
199
- registerOnChange(fn: ChangeFn<T[]>): void;
200
- registerOnTouched(fn: TouchFn): void;
201
- setDisabledState(isDisabled: boolean): void;
202
- open(): void;
203
- close(): void;
204
- reset(): void;
205
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerMulti<any>, never>;
206
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerMulti<any>, "hlm-date-picker-multi", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minSelection": { "alias": "minSelection"; "required": false; "isSignal": true; }; "maxSelection": { "alias": "maxSelection"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "autoCloseOnMaxSelection": { "alias": "autoCloseOnMaxSelection"; "required": false; "isSignal": true; }; "formatDates": { "alias": "formatDates"; "required": false; "isSignal": true; }; "transformDates": { "alias": "transformDates"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
237
+ export declare class HlmDatePickerMulti<T> implements BrnDatePickerBase<T[]>, ControlValueAccessor {
238
+ private readonly _config;
239
+ readonly popover: import("@angular/core").Signal<BrnPopover>;
240
+ private readonly _trigger;
241
+ readonly align: import("@angular/core").InputSignal<BrnPopoverAlign>;
242
+ /** Show dropdowns to navigate between months or years. */
243
+ readonly captionLayout: import("@angular/core").InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
244
+ /** The minimum date that can be selected.*/
245
+ readonly minDate: import("@angular/core").InputSignal<T | undefined>;
246
+ /** The maximum date that can be selected. */
247
+ readonly maxDate: import("@angular/core").InputSignal<T | undefined>;
248
+ /** The minimum selectable dates. */
249
+ readonly minSelection: import("@angular/core").InputSignalWithTransform<number | undefined, NumberInput>;
250
+ /** The maximum selectable dates. */
251
+ readonly maxSelection: import("@angular/core").InputSignalWithTransform<number | undefined, NumberInput>;
252
+ /** Determine if the date picker is disabled. */
253
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
254
+ /** The selected value. */
255
+ readonly date: import("@angular/core").InputSignal<T[] | undefined>;
256
+ protected readonly _mutableDate: import("@angular/core").WritableSignal<T[] | undefined>;
257
+ /** If true, the date picker will close when the max selection of dates is reached. */
258
+ readonly autoCloseOnMaxSelection: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
259
+ /** Defines how the date should be displayed in the UI. */
260
+ readonly formatDates: import("@angular/core").InputSignal<(date: T[]) => string>;
261
+ /** Defines how the date should be transformed before saving to model/form. */
262
+ readonly transformDates: import("@angular/core").InputSignal<(date: T[]) => T[]>;
263
+ protected readonly _popoverState: import("@angular/core").WritableSignal<BrnOverlayState | null>;
264
+ protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
265
+ /** @internal The disabled state as a readonly signal */
266
+ readonly disabledState: import("@angular/core").Signal<boolean>;
267
+ readonly formattedDate: import("@angular/core").Signal<string | undefined>;
268
+ readonly dateChange: import("@angular/core").OutputEmitterRef<T[]>;
269
+ readonly labelableId: import("@angular/core").Signal<string | undefined>;
270
+ readonly hasDate: import("@angular/core").Signal<boolean>;
271
+ /** @internal The current raw value, used by inputs to reformat on focus. */
272
+ readonly value: import("@angular/core").Signal<T[] | null>;
273
+ protected _onChange?: ChangeFn<T[]>;
274
+ protected _onTouched?: TouchFn;
275
+ protected _onStateChange(state: BrnOverlayState): void;
276
+ protected _handleChange(value: T[] | undefined): void;
277
+ /**
278
+ * Commit dates to the picker. Updates the internal model, notifies form
279
+ * controls, and emits `dateChange`. Intended to be called from a text input
280
+ * that parses user-entered values. Pass `null` to clear the selection.
281
+ */
282
+ updateDate(value: T[] | null): void;
283
+ touched(): void;
284
+ /** CONTROL VALUE ACCESSOR */
285
+ writeValue(value: T[] | null): void;
286
+ registerOnChange(fn: ChangeFn<T[]>): void;
287
+ registerOnTouched(fn: TouchFn): void;
288
+ setDisabledState(isDisabled: boolean): void;
289
+ open(): void;
290
+ close(): void;
291
+ reset(): void;
292
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDatePickerMulti<any>, never>;
293
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDatePickerMulti<any>, "hlm-date-picker-multi", never, {
294
+ "align": {
295
+ "alias": "align";
296
+ "required": false;
297
+ "isSignal": true;
298
+ };
299
+ "captionLayout": {
300
+ "alias": "captionLayout";
301
+ "required": false;
302
+ "isSignal": true;
303
+ };
304
+ "minDate": {
305
+ "alias": "minDate";
306
+ "required": false;
307
+ "isSignal": true;
308
+ };
309
+ "maxDate": {
310
+ "alias": "maxDate";
311
+ "required": false;
312
+ "isSignal": true;
313
+ };
314
+ "minSelection": {
315
+ "alias": "minSelection";
316
+ "required": false;
317
+ "isSignal": true;
318
+ };
319
+ "maxSelection": {
320
+ "alias": "maxSelection";
321
+ "required": false;
322
+ "isSignal": true;
323
+ };
324
+ "disabled": {
325
+ "alias": "disabled";
326
+ "required": false;
327
+ "isSignal": true;
328
+ };
329
+ "date": {
330
+ "alias": "date";
331
+ "required": false;
332
+ "isSignal": true;
333
+ };
334
+ "autoCloseOnMaxSelection": {
335
+ "alias": "autoCloseOnMaxSelection";
336
+ "required": false;
337
+ "isSignal": true;
338
+ };
339
+ "formatDates": {
340
+ "alias": "formatDates";
341
+ "required": false;
342
+ "isSignal": true;
343
+ };
344
+ "transformDates": {
345
+ "alias": "transformDates";
346
+ "required": false;
347
+ "isSignal": true;
348
+ };
349
+ }, {
350
+ "dateChange": "dateChange";
351
+ }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{
352
+ directive: typeof i1.BrnFieldControl;
353
+ inputs: {};
354
+ outputs: {};
355
+ }]>;
207
356
  }
208
-
209
- declare class HlmDatePickerTrigger implements BrnDatePickerTriggerBase {
210
- private static _nextId;
211
- private readonly _fieldControl;
212
- private readonly _datePicker;
213
- private readonly _invalid;
214
- protected readonly _spartanInvalid: _angular_core.Signal<boolean | null | undefined>;
215
- protected readonly _dirty: _angular_core.Signal<boolean | null> | undefined;
216
- protected readonly _touched: _angular_core.Signal<boolean | null> | undefined;
217
- protected readonly _ariaInvalid: _angular_core.Signal<"true" | null>;
218
- readonly userClass: _angular_core.InputSignal<ClassValue>;
219
- protected readonly _computedClass: _angular_core.Signal<string>;
220
- protected readonly _isPlaceholder: _angular_core.Signal<boolean>;
221
- /** The id of the button that opens the date picker. */
222
- readonly buttonId: _angular_core.InputSignal<string>;
223
- /** @internal The id of the button that opens the date picker, used for labeling. */
224
- readonly triggerId: _angular_core.InputSignal<string>;
225
- /** Forces the invalid state visually, regardless of form control state. */
226
- readonly forceInvalid: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
227
- readonly variant: _angular_core.InputSignal<"default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined>;
228
- readonly showTrigger: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
229
- protected readonly _popover: _angular_core.Signal<_spartan_ng_brain_popover.BrnPopover>;
230
- protected readonly _disabled: _angular_core.Signal<boolean>;
231
- protected readonly _formattedDate: _angular_core.Signal<string | undefined>;
232
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDatePickerTrigger, never>;
233
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDatePickerTrigger, "hlm-date-picker-trigger", never, { "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "buttonId": { "alias": "buttonId"; "required": false; "isSignal": true; }; "forceInvalid": { "alias": "forceInvalid"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "showTrigger": { "alias": "showTrigger"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
357
+ export declare class HlmDatePickerTrigger implements BrnDatePickerTriggerBase {
358
+ private static _nextId;
359
+ private readonly _fieldControl;
360
+ private readonly _datePicker;
361
+ private readonly _invalid;
362
+ protected readonly _spartanInvalid: import("@angular/core").Signal<boolean | null | undefined>;
363
+ protected readonly _dirty: import("@angular/core").Signal<boolean | null> | undefined;
364
+ protected readonly _touched: import("@angular/core").Signal<boolean | null> | undefined;
365
+ protected readonly _ariaInvalid: import("@angular/core").Signal<"true" | null>;
366
+ readonly userClass: import("@angular/core").InputSignal<ClassValue>;
367
+ protected readonly _computedClass: import("@angular/core").Signal<string>;
368
+ protected readonly _isPlaceholder: import("@angular/core").Signal<boolean>;
369
+ /** The id of the button that opens the date picker. */
370
+ readonly buttonId: import("@angular/core").InputSignal<string>;
371
+ /** @internal The id of the button that opens the date picker, used for labeling. */
372
+ readonly triggerId: import("@angular/core").InputSignal<string>;
373
+ /** Forces the invalid state visually, regardless of form control state. */
374
+ readonly forceInvalid: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
375
+ readonly variant: import("@angular/core").InputSignal<"default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined>;
376
+ readonly showTrigger: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
377
+ protected readonly _popover: import("@angular/core").Signal<import("@spartan-ng/brain/popover").BrnPopover>;
378
+ protected readonly _disabled: import("@angular/core").Signal<boolean>;
379
+ protected readonly _formattedDate: import("@angular/core").Signal<string | undefined>;
380
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDatePickerTrigger, never>;
381
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDatePickerTrigger, "hlm-date-picker-trigger", never, {
382
+ "userClass": {
383
+ "alias": "class";
384
+ "required": false;
385
+ "isSignal": true;
386
+ };
387
+ "buttonId": {
388
+ "alias": "buttonId";
389
+ "required": false;
390
+ "isSignal": true;
391
+ };
392
+ "forceInvalid": {
393
+ "alias": "forceInvalid";
394
+ "required": false;
395
+ "isSignal": true;
396
+ };
397
+ "variant": {
398
+ "alias": "variant";
399
+ "required": false;
400
+ "isSignal": true;
401
+ };
402
+ "showTrigger": {
403
+ "alias": "showTrigger";
404
+ "required": false;
405
+ "isSignal": true;
406
+ };
407
+ }, {}, never, ["*"], true, never>;
234
408
  }
235
-
236
- declare class HlmDateRangeInput<T> extends BrnDateInput<[T, T]> implements BrnDatePickerTriggerBase {
237
- private readonly _config;
238
- private readonly _fieldControl;
239
- private readonly _invalid;
240
- protected readonly _spartanInvalid: _angular_core.Signal<boolean | null | undefined>;
241
- protected readonly _dirty: _angular_core.Signal<boolean | null> | undefined;
242
- protected readonly _touched: _angular_core.Signal<boolean | null> | undefined;
243
- protected readonly _ariaInvalid: _angular_core.Signal<"true" | null>;
244
- /**
245
- * Parses input text into a date range. Return `null` for invalid
246
- * input - the picker's range is cleared while the text is preserved so
247
- * the user can fix it.
248
- *
249
- * Defaults to `parseDate` from `HlmDateRangePickerConfig`.
250
- */
251
- readonly parseDate: _angular_core.InputSignal<(value: string) => [T, T] | null>;
252
- /**
253
- * Formats the current range into the input/edit format shown while the
254
- * input is focused. On blur the picker's display format is restored.
255
- *
256
- * Defaults to `formatInputDates` from `HlmDateRangePickerConfig`.
257
- */
258
- readonly formatInputDates: _angular_core.InputSignal<(dates: [T | null, T | null]) => string>;
259
- protected parseValue(value: string): [T, T] | null;
260
- protected formatInputValue(value: [T, T]): string;
261
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDateRangeInput<any>, never>;
262
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDateRangeInput<any>, "hlm-date-range-input", never, { "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDates": { "alias": "formatInputDates"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
409
+ export declare class HlmDateRangeInput<T> extends BrnDateInput<[T, T]> implements BrnDatePickerTriggerBase {
410
+ private readonly _config;
411
+ private readonly _fieldControl;
412
+ private readonly _invalid;
413
+ protected readonly _spartanInvalid: import("@angular/core").Signal<boolean | null | undefined>;
414
+ protected readonly _dirty: import("@angular/core").Signal<boolean | null> | undefined;
415
+ protected readonly _touched: import("@angular/core").Signal<boolean | null> | undefined;
416
+ protected readonly _ariaInvalid: import("@angular/core").Signal<"true" | null>;
417
+ /**
418
+ * Parses input text into a date range. Return `null` for invalid
419
+ * input - the picker's range is cleared while the text is preserved so
420
+ * the user can fix it.
421
+ *
422
+ * Defaults to `parseDate` from `HlmDateRangePickerConfig`.
423
+ */
424
+ readonly parseDate: import("@angular/core").InputSignal<(value: string) => [T, T] | null>;
425
+ /**
426
+ * Formats the current range into the input/edit format shown while the
427
+ * input is focused. On blur the picker's display format is restored.
428
+ *
429
+ * Defaults to `formatInputDates` from `HlmDateRangePickerConfig`.
430
+ */
431
+ readonly formatInputDates: import("@angular/core").InputSignal<(dates: [T | null, T | null]) => string>;
432
+ protected parseValue(value: string): [T, T] | null;
433
+ protected formatInputValue(value: [T, T]): string;
434
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDateRangeInput<any>, never>;
435
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDateRangeInput<any>, "hlm-date-range-input", never, {
436
+ "parseDate": {
437
+ "alias": "parseDate";
438
+ "required": false;
439
+ "isSignal": true;
440
+ };
441
+ "formatInputDates": {
442
+ "alias": "formatInputDates";
443
+ "required": false;
444
+ "isSignal": true;
445
+ };
446
+ }, {}, never, never, true, [{
447
+ directive: typeof i1$1.HlmInputGroup;
448
+ inputs: {};
449
+ outputs: {};
450
+ }]>;
263
451
  }
264
-
265
- declare const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR: {
266
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
267
- useExisting: _angular_core.Type<any>;
268
- multi: boolean;
452
+ export declare const HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR: {
453
+ provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
454
+ useExisting: import("@angular/core").Type<any>;
455
+ multi: boolean;
269
456
  };
270
- declare class HlmDateRangePicker<T> implements BrnDatePickerBase<[T, T]>, ControlValueAccessor {
271
- private readonly _config;
272
- readonly popover: _angular_core.Signal<BrnPopover>;
273
- private readonly _trigger;
274
- readonly align: _angular_core.InputSignal<BrnPopoverAlign>;
275
- /** Show dropdowns to navigate between months or years. */
276
- readonly captionLayout: _angular_core.InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
277
- /** The minimum date that can be selected.*/
278
- readonly minDate: _angular_core.InputSignal<T | undefined>;
279
- /** The maximum date that can be selected. */
280
- readonly maxDate: _angular_core.InputSignal<T | undefined>;
281
- /** Determine if the date picker is disabled. */
282
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
283
- /** The selected value. */
284
- readonly date: _angular_core.InputSignal<[T, T] | undefined>;
285
- protected readonly _mutableDate: _angular_core.WritableSignal<[T, T] | undefined>;
286
- protected readonly _start: _angular_core.WritableSignal<T | undefined>;
287
- protected readonly _end: _angular_core.WritableSignal<T | undefined>;
288
- /** If true, the date picker will close when the end date is selected */
289
- readonly autoCloseOnEndSelection: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
290
- /** Defines how the date should be displayed in the UI. */
291
- readonly formatDates: _angular_core.InputSignal<(dates: [T | null, T | null]) => string>;
292
- /** Defines how the date should be transformed before saving to model/form. */
293
- readonly transformDates: _angular_core.InputSignal<(date: [T, T]) => [T, T]>;
294
- protected readonly _popoverState: _angular_core.WritableSignal<BrnOverlayState | null>;
295
- protected readonly _disabled: _angular_core.WritableSignal<boolean>;
296
- /** @internal The disabled state as a readonly signal */
297
- readonly disabledState: _angular_core.Signal<boolean>;
298
- readonly formattedDate: _angular_core.Signal<string | undefined>;
299
- readonly dateChange: _angular_core.OutputEmitterRef<[T, T] | null>;
300
- readonly labelableId: _angular_core.Signal<string | undefined>;
301
- readonly hasDate: _angular_core.Signal<boolean>;
302
- /** @internal The current raw value, used by inputs to reformat on focus. */
303
- readonly value: _angular_core.Signal<[T, T] | null>;
304
- protected _onChange?: ChangeFn<[T, T] | null>;
305
- protected _onTouched?: TouchFn;
306
- protected _onStateChange(state: BrnOverlayState): void;
307
- protected _handleStartDayChange(value: T | undefined): void;
308
- protected _handleEndDateChange(value: T | undefined): void;
309
- /**
310
- * Commit a range to the picker. Updates the internal model, notifies form
311
- * controls, and emits `dateChange`. Intended to be called from a text input
312
- * that parses user-entered values. Pass `null` to clear the range.
313
- */
314
- updateDate(value: [T, T] | null): void;
315
- touched(): void;
316
- /** CONTROL VALUE ACCESSOR */
317
- writeValue(value: [T, T] | null): void;
318
- registerOnChange(fn: ChangeFn<[T, T] | null>): void;
319
- registerOnTouched(fn: TouchFn): void;
320
- setDisabledState(isDisabled: boolean): void;
321
- open(): void;
322
- close(): void;
323
- reset(): void;
324
- protected _onClose(): void;
325
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmDateRangePicker<any>, never>;
326
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmDateRangePicker<any>, "hlm-date-range-picker", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "captionLayout": { "alias": "captionLayout"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "autoCloseOnEndSelection": { "alias": "autoCloseOnEndSelection"; "required": false; "isSignal": true; }; "formatDates": { "alias": "formatDates"; "required": false; "isSignal": true; }; "transformDates": { "alias": "transformDates"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
457
+ export declare class HlmDateRangePicker<T> implements BrnDatePickerBase<[T, T]>, ControlValueAccessor {
458
+ private readonly _config;
459
+ readonly popover: import("@angular/core").Signal<BrnPopover>;
460
+ private readonly _trigger;
461
+ readonly align: import("@angular/core").InputSignal<BrnPopoverAlign>;
462
+ /** Show dropdowns to navigate between months or years. */
463
+ readonly captionLayout: import("@angular/core").InputSignal<"dropdown" | "label" | "dropdown-months" | "dropdown-years">;
464
+ /** The minimum date that can be selected.*/
465
+ readonly minDate: import("@angular/core").InputSignal<T | undefined>;
466
+ /** The maximum date that can be selected. */
467
+ readonly maxDate: import("@angular/core").InputSignal<T | undefined>;
468
+ /** Determine if the date picker is disabled. */
469
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
470
+ /** The selected value. */
471
+ readonly date: import("@angular/core").InputSignal<[T, T] | undefined>;
472
+ protected readonly _mutableDate: import("@angular/core").WritableSignal<[T, T] | undefined>;
473
+ protected readonly _start: import("@angular/core").WritableSignal<T | undefined>;
474
+ protected readonly _end: import("@angular/core").WritableSignal<T | undefined>;
475
+ /** If true, the date picker will close when the end date is selected */
476
+ readonly autoCloseOnEndSelection: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
477
+ /** Defines how the date should be displayed in the UI. */
478
+ readonly formatDates: import("@angular/core").InputSignal<(dates: [T | null, T | null]) => string>;
479
+ /** Defines how the date should be transformed before saving to model/form. */
480
+ readonly transformDates: import("@angular/core").InputSignal<(date: [T, T]) => [T, T]>;
481
+ protected readonly _popoverState: import("@angular/core").WritableSignal<BrnOverlayState | null>;
482
+ protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
483
+ /** @internal The disabled state as a readonly signal */
484
+ readonly disabledState: import("@angular/core").Signal<boolean>;
485
+ readonly formattedDate: import("@angular/core").Signal<string | undefined>;
486
+ readonly dateChange: import("@angular/core").OutputEmitterRef<[T, T] | null>;
487
+ readonly labelableId: import("@angular/core").Signal<string | undefined>;
488
+ readonly hasDate: import("@angular/core").Signal<boolean>;
489
+ /** @internal The current raw value, used by inputs to reformat on focus. */
490
+ readonly value: import("@angular/core").Signal<[T, T] | null>;
491
+ protected _onChange?: ChangeFn<[T, T] | null>;
492
+ protected _onTouched?: TouchFn;
493
+ protected _onStateChange(state: BrnOverlayState): void;
494
+ protected _handleStartDayChange(value: T | undefined): void;
495
+ protected _handleEndDateChange(value: T | undefined): void;
496
+ /**
497
+ * Commit a range to the picker. Updates the internal model, notifies form
498
+ * controls, and emits `dateChange`. Intended to be called from a text input
499
+ * that parses user-entered values. Pass `null` to clear the range.
500
+ */
501
+ updateDate(value: [T, T] | null): void;
502
+ touched(): void;
503
+ /** CONTROL VALUE ACCESSOR */
504
+ writeValue(value: [T, T] | null): void;
505
+ registerOnChange(fn: ChangeFn<[T, T] | null>): void;
506
+ registerOnTouched(fn: TouchFn): void;
507
+ setDisabledState(isDisabled: boolean): void;
508
+ open(): void;
509
+ close(): void;
510
+ reset(): void;
511
+ protected _onClose(): void;
512
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmDateRangePicker<any>, never>;
513
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmDateRangePicker<any>, "hlm-date-range-picker", never, {
514
+ "align": {
515
+ "alias": "align";
516
+ "required": false;
517
+ "isSignal": true;
518
+ };
519
+ "captionLayout": {
520
+ "alias": "captionLayout";
521
+ "required": false;
522
+ "isSignal": true;
523
+ };
524
+ "minDate": {
525
+ "alias": "minDate";
526
+ "required": false;
527
+ "isSignal": true;
528
+ };
529
+ "maxDate": {
530
+ "alias": "maxDate";
531
+ "required": false;
532
+ "isSignal": true;
533
+ };
534
+ "disabled": {
535
+ "alias": "disabled";
536
+ "required": false;
537
+ "isSignal": true;
538
+ };
539
+ "date": {
540
+ "alias": "date";
541
+ "required": false;
542
+ "isSignal": true;
543
+ };
544
+ "autoCloseOnEndSelection": {
545
+ "alias": "autoCloseOnEndSelection";
546
+ "required": false;
547
+ "isSignal": true;
548
+ };
549
+ "formatDates": {
550
+ "alias": "formatDates";
551
+ "required": false;
552
+ "isSignal": true;
553
+ };
554
+ "transformDates": {
555
+ "alias": "transformDates";
556
+ "required": false;
557
+ "isSignal": true;
558
+ };
559
+ }, {
560
+ "dateChange": "dateChange";
561
+ }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{
562
+ directive: typeof i1.BrnFieldControl;
563
+ inputs: {};
564
+ outputs: {};
565
+ }]>;
327
566
  }
328
-
329
- declare class HlmMonthYearInput<T> extends BrnDateInput<T> implements BrnDatePickerTriggerBase {
330
- private readonly _config;
331
- private readonly _fieldControl;
332
- private readonly _invalid;
333
- protected readonly _spartanInvalid: _angular_core.Signal<boolean | null | undefined>;
334
- protected readonly _dirty: _angular_core.Signal<boolean | null> | undefined;
335
- protected readonly _touched: _angular_core.Signal<boolean | null> | undefined;
336
- protected readonly _ariaInvalid: _angular_core.Signal<"true" | null>;
337
- /**
338
- * Parses input text into a date value. Return `null` for invalid
339
- * input - the picker's date is cleared while the text is preserved so
340
- * the user can fix it.
341
- *
342
- * Defaults to `parseDate` from `HlmMonthYearPickerConfig`.
343
- */
344
- readonly parseDate: _angular_core.InputSignal<(value: string) => T | null>;
345
- /**
346
- * Formats the current date into the input/edit format shown while the
347
- * input is focused. On blur the picker's display format is restored.
348
- *
349
- * Defaults to `formatInputDate` from `HlmMonthYearPickerConfig`.
350
- */
351
- readonly formatInputDate: _angular_core.InputSignal<(date: T) => string>;
352
- protected parseValue(value: string): T | null;
353
- protected formatInputValue(value: T): string;
354
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmMonthYearInput<any>, never>;
355
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmMonthYearInput<any>, "hlm-month-year-input", never, { "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "formatInputDate": { "alias": "formatInputDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HlmInputGroup; inputs: {}; outputs: {}; }]>;
567
+ export declare class HlmMonthYearInput<T> extends BrnDateInput<T> implements BrnDatePickerTriggerBase {
568
+ private readonly _config;
569
+ private readonly _fieldControl;
570
+ private readonly _invalid;
571
+ protected readonly _spartanInvalid: import("@angular/core").Signal<boolean | null | undefined>;
572
+ protected readonly _dirty: import("@angular/core").Signal<boolean | null> | undefined;
573
+ protected readonly _touched: import("@angular/core").Signal<boolean | null> | undefined;
574
+ protected readonly _ariaInvalid: import("@angular/core").Signal<"true" | null>;
575
+ /**
576
+ * Parses input text into a date value. Return `null` for invalid
577
+ * input - the picker's date is cleared while the text is preserved so
578
+ * the user can fix it.
579
+ *
580
+ * Defaults to `parseDate` from `HlmMonthYearPickerConfig`.
581
+ */
582
+ readonly parseDate: import("@angular/core").InputSignal<(value: string) => T | null>;
583
+ /**
584
+ * Formats the current date into the input/edit format shown while the
585
+ * input is focused. On blur the picker's display format is restored.
586
+ *
587
+ * Defaults to `formatInputDate` from `HlmMonthYearPickerConfig`.
588
+ */
589
+ readonly formatInputDate: import("@angular/core").InputSignal<(date: T) => string>;
590
+ protected parseValue(value: string): T | null;
591
+ protected formatInputValue(value: T): string;
592
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmMonthYearInput<any>, never>;
593
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmMonthYearInput<any>, "hlm-month-year-input", never, {
594
+ "parseDate": {
595
+ "alias": "parseDate";
596
+ "required": false;
597
+ "isSignal": true;
598
+ };
599
+ "formatInputDate": {
600
+ "alias": "formatInputDate";
601
+ "required": false;
602
+ "isSignal": true;
603
+ };
604
+ }, {}, never, never, true, [{
605
+ directive: typeof i1$1.HlmInputGroup;
606
+ inputs: {};
607
+ outputs: {};
608
+ }]>;
356
609
  }
357
-
358
- declare const HLM_MONTH_YEAR_PICKER_VALUE_ACCESSOR: {
359
- provide: _angular_core.InjectionToken<readonly ControlValueAccessor[]>;
360
- useExisting: _angular_core.Type<any>;
361
- multi: boolean;
610
+ export declare const HLM_MONTH_YEAR_PICKER_VALUE_ACCESSOR: {
611
+ provide: import("@angular/core").InjectionToken<readonly ControlValueAccessor[]>;
612
+ useExisting: import("@angular/core").Type<any>;
613
+ multi: boolean;
362
614
  };
363
- declare class HlmMonthYearPicker<T> implements BrnDatePickerBase<T>, ControlValueAccessor {
364
- private readonly _config;
365
- readonly popover: _angular_core.Signal<BrnPopover>;
366
- private readonly _trigger;
367
- readonly align: _angular_core.InputSignal<BrnPopoverAlign>;
368
- /** The minimum date that can be selected.*/
369
- readonly minDate: _angular_core.InputSignal<T | undefined>;
370
- /** The maximum date that can be selected. */
371
- readonly maxDate: _angular_core.InputSignal<T | undefined>;
372
- /** Determine if the date picker is disabled. */
373
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
374
- /** The selected value. */
375
- readonly date: _angular_core.InputSignal<T | undefined>;
376
- /** The date the calendar focuses on first open when no date is selected. */
377
- readonly defaultFocusedDate: _angular_core.InputSignal<T | undefined>;
378
- protected readonly _mutableDate: _angular_core.WritableSignal<T | undefined>;
379
- /** If true, the date picker will close when a date is selected. */
380
- readonly autoCloseOnSelect: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
381
- /** Defines how the date should be displayed in the UI. */
382
- readonly formatDate: _angular_core.InputSignal<(date: T) => string>;
383
- /** Defines how the date should be transformed before saving to model/form. */
384
- readonly transformDate: _angular_core.InputSignal<(date: T) => T>;
385
- protected readonly _popoverState: _angular_core.WritableSignal<BrnOverlayState | null>;
386
- protected readonly _disabled: _angular_core.WritableSignal<boolean>;
387
- /** @internal The disabled state as a readonly signal */
388
- readonly disabledState: _angular_core.Signal<boolean>;
389
- readonly formattedDate: _angular_core.Signal<string | undefined>;
390
- readonly dateChange: _angular_core.OutputEmitterRef<T | null>;
391
- readonly labelableId: _angular_core.Signal<string | undefined>;
392
- readonly hasDate: _angular_core.Signal<boolean>;
393
- /** @internal The current raw value, used by inputs to reformat on focus. */
394
- readonly value: _angular_core.Signal<NonNullable<T> | null>;
395
- protected _onChange?: ChangeFn<T | null>;
396
- protected _onTouched?: TouchFn;
397
- protected _onStateChange(state: BrnOverlayState): void;
398
- protected _handleChange(value: T | undefined): void;
399
- /**
400
- * Commit a date to the picker. Updates the internal model, notifies form
401
- * controls, and emits `dateChange`. Unlike `_handleChange`, this does not
402
- * close the popover - it's intended to be called from a text input that
403
- * is parsing user-entered values while typing.
404
- */
405
- updateDate(value: T | null): void;
406
- /** CONTROL VALUE ACCESSOR */
407
- writeValue(value: T | null): void;
408
- registerOnChange(fn: ChangeFn<T | null>): void;
409
- registerOnTouched(fn: TouchFn): void;
410
- touched(): void;
411
- setDisabledState(isDisabled: boolean): void;
412
- open(): void;
413
- close(): void;
414
- reset(): void;
415
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<HlmMonthYearPicker<any>, never>;
416
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<HlmMonthYearPicker<any>, "hlm-month-year-picker", never, { "align": { "alias": "align"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "defaultFocusedDate": { "alias": "defaultFocusedDate"; "required": false; "isSignal": true; }; "autoCloseOnSelect": { "alias": "autoCloseOnSelect"; "required": false; "isSignal": true; }; "formatDate": { "alias": "formatDate"; "required": false; "isSignal": true; }; "transformDate": { "alias": "transformDate"; "required": false; "isSignal": true; }; }, { "dateChange": "dateChange"; }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{ directive: typeof i1$1.BrnFieldControl; inputs: {}; outputs: {}; }]>;
615
+ export declare class HlmMonthYearPicker<T> implements BrnDatePickerBase<T>, ControlValueAccessor {
616
+ private readonly _config;
617
+ readonly popover: import("@angular/core").Signal<BrnPopover>;
618
+ private readonly _trigger;
619
+ readonly align: import("@angular/core").InputSignal<BrnPopoverAlign>;
620
+ /** The minimum date that can be selected.*/
621
+ readonly minDate: import("@angular/core").InputSignal<T | undefined>;
622
+ /** The maximum date that can be selected. */
623
+ readonly maxDate: import("@angular/core").InputSignal<T | undefined>;
624
+ /** Determine if the date picker is disabled. */
625
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
626
+ /** The selected value. */
627
+ readonly date: import("@angular/core").InputSignal<T | undefined>;
628
+ /** The date the calendar focuses on first open when no date is selected. */
629
+ readonly defaultFocusedDate: import("@angular/core").InputSignal<T | undefined>;
630
+ protected readonly _mutableDate: import("@angular/core").WritableSignal<T | undefined>;
631
+ /** If true, the date picker will close when a date is selected. */
632
+ readonly autoCloseOnSelect: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
633
+ /** Defines how the date should be displayed in the UI. */
634
+ readonly formatDate: import("@angular/core").InputSignal<(date: T) => string>;
635
+ /** Defines how the date should be transformed before saving to model/form. */
636
+ readonly transformDate: import("@angular/core").InputSignal<(date: T) => T>;
637
+ protected readonly _popoverState: import("@angular/core").WritableSignal<BrnOverlayState | null>;
638
+ protected readonly _disabled: import("@angular/core").WritableSignal<boolean>;
639
+ /** @internal The disabled state as a readonly signal */
640
+ readonly disabledState: import("@angular/core").Signal<boolean>;
641
+ readonly formattedDate: import("@angular/core").Signal<string | undefined>;
642
+ readonly dateChange: import("@angular/core").OutputEmitterRef<T | null>;
643
+ readonly labelableId: import("@angular/core").Signal<string | undefined>;
644
+ readonly hasDate: import("@angular/core").Signal<boolean>;
645
+ /** @internal The current raw value, used by inputs to reformat on focus. */
646
+ readonly value: import("@angular/core").Signal<NonNullable<T> | null>;
647
+ protected _onChange?: ChangeFn<T | null>;
648
+ protected _onTouched?: TouchFn;
649
+ protected _onStateChange(state: BrnOverlayState): void;
650
+ protected _handleChange(value: T | undefined): void;
651
+ /**
652
+ * Commit a date to the picker. Updates the internal model, notifies form
653
+ * controls, and emits `dateChange`. Unlike `_handleChange`, this does not
654
+ * close the popover - it's intended to be called from a text input that
655
+ * is parsing user-entered values while typing.
656
+ */
657
+ updateDate(value: T | null): void;
658
+ /** CONTROL VALUE ACCESSOR */
659
+ writeValue(value: T | null): void;
660
+ registerOnChange(fn: ChangeFn<T | null>): void;
661
+ registerOnTouched(fn: TouchFn): void;
662
+ touched(): void;
663
+ setDisabledState(isDisabled: boolean): void;
664
+ open(): void;
665
+ close(): void;
666
+ reset(): void;
667
+ static ɵfac: i0.ɵɵFactoryDeclaration<HlmMonthYearPicker<any>, never>;
668
+ static ɵcmp: i0.ɵɵComponentDeclaration<HlmMonthYearPicker<any>, "hlm-month-year-picker", never, {
669
+ "align": {
670
+ "alias": "align";
671
+ "required": false;
672
+ "isSignal": true;
673
+ };
674
+ "minDate": {
675
+ "alias": "minDate";
676
+ "required": false;
677
+ "isSignal": true;
678
+ };
679
+ "maxDate": {
680
+ "alias": "maxDate";
681
+ "required": false;
682
+ "isSignal": true;
683
+ };
684
+ "disabled": {
685
+ "alias": "disabled";
686
+ "required": false;
687
+ "isSignal": true;
688
+ };
689
+ "date": {
690
+ "alias": "date";
691
+ "required": false;
692
+ "isSignal": true;
693
+ };
694
+ "defaultFocusedDate": {
695
+ "alias": "defaultFocusedDate";
696
+ "required": false;
697
+ "isSignal": true;
698
+ };
699
+ "autoCloseOnSelect": {
700
+ "alias": "autoCloseOnSelect";
701
+ "required": false;
702
+ "isSignal": true;
703
+ };
704
+ "formatDate": {
705
+ "alias": "formatDate";
706
+ "required": false;
707
+ "isSignal": true;
708
+ };
709
+ "transformDate": {
710
+ "alias": "transformDate";
711
+ "required": false;
712
+ "isSignal": true;
713
+ };
714
+ }, {
715
+ "dateChange": "dateChange";
716
+ }, ["_trigger"], ["*", "[hlmDatePickerHeader]", "[hlmDatePickerFooter]"], true, [{
717
+ directive: typeof i1.BrnFieldControl;
718
+ inputs: {};
719
+ outputs: {};
720
+ }]>;
417
721
  }
418
-
419
- interface HlmDatePickerMultiConfig<T> {
420
- /**
421
- * If true, the date picker will close when the max selection of dates is reached.
422
- */
423
- autoCloseOnMaxSelection: boolean;
424
- /**
425
- * Defines how the date should be displayed in the UI.
426
- *
427
- * @param dates
428
- * @returns formatted date
429
- */
430
- formatDates: (dates: T[]) => string;
431
- /**
432
- * Defines how the dates should be displayed while the input is focused,
433
- * i.e. the format the user is expected to type in.
434
- *
435
- * @param dates
436
- * @returns formatted dates in the input/edit format
437
- */
438
- formatInputDates: (dates: T[]) => string;
439
- /**
440
- * Defines how the date should be transformed before saving to model/form.
441
- *
442
- * @param dates
443
- * @returns transformed date
444
- */
445
- transformDates: (dates: T[]) => T[];
446
- /**
447
- * Parse a user-entered string into a date.
448
- *
449
- * @param value the raw string from the input
450
- * @returns the parsed date, or `null` when the value can't be parsed
451
- */
452
- parseDate: (value: string) => T[] | null;
722
+ export interface HlmDatePickerMultiConfig<T> {
723
+ /**
724
+ * If true, the date picker will close when the max selection of dates is reached.
725
+ */
726
+ autoCloseOnMaxSelection: boolean;
727
+ /**
728
+ * Defines how the date should be displayed in the UI.
729
+ *
730
+ * @param dates
731
+ * @returns formatted date
732
+ */
733
+ formatDates: (dates: T[]) => string;
734
+ /**
735
+ * Defines how the dates should be displayed while the input is focused,
736
+ * i.e. the format the user is expected to type in.
737
+ *
738
+ * @param dates
739
+ * @returns formatted dates in the input/edit format
740
+ */
741
+ formatInputDates: (dates: T[]) => string;
742
+ /**
743
+ * Defines how the date should be transformed before saving to model/form.
744
+ *
745
+ * @param dates
746
+ * @returns transformed date
747
+ */
748
+ transformDates: (dates: T[]) => T[];
749
+ /**
750
+ * Parse a user-entered string into a date.
751
+ *
752
+ * @param value the raw string from the input
753
+ * @returns the parsed date, or `null` when the value can't be parsed
754
+ */
755
+ parseDate: (value: string) => T[] | null;
453
756
  }
454
- declare function provideHlmDatePickerMultiConfig<T>(config: Partial<HlmDatePickerMultiConfig<T>>): ValueProvider;
455
- declare function injectHlmDatePickerMultiConfig<T>(): HlmDatePickerMultiConfig<T>;
456
-
457
- interface HlmDatePickerConfig<T> {
458
- /**
459
- * If true, the date picker will close when a date is selected.
460
- */
461
- autoCloseOnSelect: boolean;
462
- /**
463
- * Defines how the date should be displayed in the UI.
464
- *
465
- * @param date
466
- * @returns formatted date
467
- */
468
- formatDate: (date: T) => string;
469
- /**
470
- * Defines how the date should be displayed while the input is focused,
471
- * i.e. the format the user is expected to type in.
472
- *
473
- * @param date
474
- * @returns formatted date in the input/edit format
475
- */
476
- formatInputDate: (date: T) => string;
477
- /**
478
- * Defines how the date should be transformed before saving to model/form.
479
- *
480
- * @param date
481
- * @returns transformed date
482
- */
483
- transformDate: (date: T) => T;
484
- /**
485
- * Parse a user-entered string into a date.
486
- *
487
- * @param value the raw string from the input
488
- * @returns the parsed date, or `null` when the value can't be parsed
489
- */
490
- parseDate: (value: string) => T | null;
757
+ export declare function provideHlmDatePickerMultiConfig<T>(config: Partial<HlmDatePickerMultiConfig<T>>): ValueProvider;
758
+ export declare function injectHlmDatePickerMultiConfig<T>(): HlmDatePickerMultiConfig<T>;
759
+ export interface HlmDatePickerConfig<T> {
760
+ /**
761
+ * If true, the date picker will close when a date is selected.
762
+ */
763
+ autoCloseOnSelect: boolean;
764
+ /**
765
+ * Defines how the date should be displayed in the UI.
766
+ *
767
+ * @param date
768
+ * @returns formatted date
769
+ */
770
+ formatDate: (date: T) => string;
771
+ /**
772
+ * Defines how the date should be displayed while the input is focused,
773
+ * i.e. the format the user is expected to type in.
774
+ *
775
+ * @param date
776
+ * @returns formatted date in the input/edit format
777
+ */
778
+ formatInputDate: (date: T) => string;
779
+ /**
780
+ * Defines how the date should be transformed before saving to model/form.
781
+ *
782
+ * @param date
783
+ * @returns transformed date
784
+ */
785
+ transformDate: (date: T) => T;
786
+ /**
787
+ * Parse a user-entered string into a date.
788
+ *
789
+ * @param value the raw string from the input
790
+ * @returns the parsed date, or `null` when the value can't be parsed
791
+ */
792
+ parseDate: (value: string) => T | null;
491
793
  }
492
- declare function provideHlmDatePickerConfig<T>(config: Partial<HlmDatePickerConfig<T>>): ValueProvider;
493
- declare function injectHlmDatePickerConfig<T>(): HlmDatePickerConfig<T>;
494
-
495
- interface HlmDateRangePickerConfig<T> {
496
- /**
497
- * If true, the date picker will close when the max selection of dates is reached.
498
- */
499
- autoCloseOnEndSelection: boolean;
500
- /**
501
- * Defines how the date should be displayed in the UI.
502
- *
503
- * @param dates
504
- * @returns formatted date
505
- */
506
- formatDates: (dates: [T | null, T | null]) => string;
507
- /**
508
- * Defines how the range should be displayed while the input is focused,
509
- * i.e. the format the user is expected to type in.
510
- *
511
- * @param dates
512
- * @returns formatted range in the input/edit format
513
- */
514
- formatInputDates: (dates: [T | null, T | null]) => string;
515
- /**
516
- * Defines how the date should be transformed before saving to model/form.
517
- *
518
- * @param dates
519
- * @returns transformed date
520
- */
521
- transformDates: (dates: [T, T]) => [T, T];
522
- /**
523
- * Parse a user-entered string into a date range.
524
- *
525
- * @param value the raw string from the input
526
- * @returns the parsed range, or `null` when the value can't be parsed
527
- */
528
- parseDate: (value: string) => [T, T] | null;
794
+ export declare function provideHlmDatePickerConfig<T>(config: Partial<HlmDatePickerConfig<T>>): ValueProvider;
795
+ export declare function injectHlmDatePickerConfig<T>(): HlmDatePickerConfig<T>;
796
+ export interface HlmDateRangePickerConfig<T> {
797
+ /**
798
+ * If true, the date picker will close when the max selection of dates is reached.
799
+ */
800
+ autoCloseOnEndSelection: boolean;
801
+ /**
802
+ * Defines how the date should be displayed in the UI.
803
+ *
804
+ * @param dates
805
+ * @returns formatted date
806
+ */
807
+ formatDates: (dates: [T | null, T | null]) => string;
808
+ /**
809
+ * Defines how the range should be displayed while the input is focused,
810
+ * i.e. the format the user is expected to type in.
811
+ *
812
+ * @param dates
813
+ * @returns formatted range in the input/edit format
814
+ */
815
+ formatInputDates: (dates: [T | null, T | null]) => string;
816
+ /**
817
+ * Defines how the date should be transformed before saving to model/form.
818
+ *
819
+ * @param dates
820
+ * @returns transformed date
821
+ */
822
+ transformDates: (dates: [T, T]) => [T, T];
823
+ /**
824
+ * Parse a user-entered string into a date range.
825
+ *
826
+ * @param value the raw string from the input
827
+ * @returns the parsed range, or `null` when the value can't be parsed
828
+ */
829
+ parseDate: (value: string) => [T, T] | null;
529
830
  }
530
- declare function provideHlmDateRangePickerConfig<T>(config: Partial<HlmDateRangePickerConfig<T>>): ValueProvider;
531
- declare function injectHlmDateRangePickerConfig<T>(): HlmDateRangePickerConfig<T>;
532
-
533
- interface HlmMonthYearPickerConfig<T> {
534
- /**
535
- * If true, the date picker will close when a date is selected.
536
- */
537
- autoCloseOnSelect: boolean;
538
- /**
539
- * Defines how the date should be displayed in the UI.
540
- *
541
- * @param date
542
- * @returns formatted date
543
- */
544
- formatDate: (date: T) => string;
545
- /**
546
- * Defines how the date should be displayed while the input is focused,
547
- * i.e. the format the user is expected to type in.
548
- *
549
- * @param date
550
- * @returns formatted date in the input/edit format
551
- */
552
- formatInputDate: (date: T) => string;
553
- /**
554
- * Defines how the date should be transformed before saving to model/form.
555
- *
556
- * @param date
557
- * @returns transformed date
558
- */
559
- transformDate: (date: T) => T;
560
- /**
561
- * Parse a user-entered string into a date.
562
- *
563
- * @param value the raw string from the input
564
- * @returns the parsed date, or `null` when the value can't be parsed
565
- */
566
- parseDate: (value: string) => T | null;
831
+ export declare function provideHlmDateRangePickerConfig<T>(config: Partial<HlmDateRangePickerConfig<T>>): ValueProvider;
832
+ export declare function injectHlmDateRangePickerConfig<T>(): HlmDateRangePickerConfig<T>;
833
+ export interface HlmMonthYearPickerConfig<T> {
834
+ /**
835
+ * If true, the date picker will close when a date is selected.
836
+ */
837
+ autoCloseOnSelect: boolean;
838
+ /**
839
+ * Defines how the date should be displayed in the UI.
840
+ *
841
+ * @param date
842
+ * @returns formatted date
843
+ */
844
+ formatDate: (date: T) => string;
845
+ /**
846
+ * Defines how the date should be displayed while the input is focused,
847
+ * i.e. the format the user is expected to type in.
848
+ *
849
+ * @param date
850
+ * @returns formatted date in the input/edit format
851
+ */
852
+ formatInputDate: (date: T) => string;
853
+ /**
854
+ * Defines how the date should be transformed before saving to model/form.
855
+ *
856
+ * @param date
857
+ * @returns transformed date
858
+ */
859
+ transformDate: (date: T) => T;
860
+ /**
861
+ * Parse a user-entered string into a date.
862
+ *
863
+ * @param value the raw string from the input
864
+ * @returns the parsed date, or `null` when the value can't be parsed
865
+ */
866
+ parseDate: (value: string) => T | null;
567
867
  }
568
- declare function provideHlmMonthYearPickerConfig<T>(config: Partial<HlmMonthYearPickerConfig<T>>): ValueProvider;
569
- declare function injectHlmMonthYearPickerConfig<T>(): HlmMonthYearPickerConfig<T>;
570
-
571
- declare const HlmDatePickerImports: readonly [typeof HlmDatePicker, typeof HlmDatePickerAnchor, typeof HlmDatePickerInput, typeof HlmDatePickerMulti, typeof HlmDateMultiInput, typeof HlmDateRangeInput, typeof HlmDateRangePicker, typeof HlmDatePickerTrigger, typeof HlmMonthYearPicker, typeof HlmMonthYearInput];
572
-
573
- export { HLM_DATE_PICKER_MUTLI_VALUE_ACCESSOR, HLM_DATE_PICKER_VALUE_ACCESSOR, HLM_DATE_RANGE_PICKER_VALUE_ACCESSOR, HLM_MONTH_YEAR_PICKER_VALUE_ACCESSOR, HlmDateMultiInput, HlmDatePicker, HlmDatePickerAnchor, HlmDatePickerImports, HlmDatePickerInput, HlmDatePickerMulti, HlmDatePickerTrigger, HlmDateRangeInput, HlmDateRangePicker, HlmMonthYearInput, HlmMonthYearPicker, injectHlmDatePickerConfig, injectHlmDatePickerMultiConfig, injectHlmDateRangePickerConfig, injectHlmMonthYearPickerConfig, provideHlmDatePickerConfig, provideHlmDatePickerMultiConfig, provideHlmDateRangePickerConfig, provideHlmMonthYearPickerConfig };
574
- export type { HlmDatePickerConfig, HlmDatePickerMultiConfig, HlmDateRangePickerConfig, HlmMonthYearPickerConfig };
868
+ export declare function provideHlmMonthYearPickerConfig<T>(config: Partial<HlmMonthYearPickerConfig<T>>): ValueProvider;
869
+ export declare function injectHlmMonthYearPickerConfig<T>(): HlmMonthYearPickerConfig<T>;
870
+ export declare const HlmDatePickerImports: readonly [typeof HlmDatePicker, typeof HlmDatePickerAnchor, typeof HlmDatePickerInput, typeof HlmDatePickerMulti, typeof HlmDateMultiInput, typeof HlmDateRangeInput, typeof HlmDateRangePicker, typeof HlmDatePickerTrigger, typeof HlmMonthYearPicker, typeof HlmMonthYearInput];