@4sh/ui-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +7 -0
  3. package/README.md +229 -0
  4. package/fesm2022/4sh-ui-kit-forms.mjs +501 -0
  5. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -0
  6. package/fesm2022/4sh-ui-kit-motion.mjs +155 -0
  7. package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -0
  8. package/fesm2022/4sh-ui-kit-overlay.mjs +61 -0
  9. package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -0
  10. package/fesm2022/4sh-ui-kit-theming.mjs +120 -0
  11. package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -0
  12. package/fesm2022/4sh-ui-kit-types.mjs +12 -0
  13. package/fesm2022/4sh-ui-kit-types.mjs.map +1 -0
  14. package/fesm2022/4sh-ui-kit-ui-accordion.mjs +244 -0
  15. package/fesm2022/4sh-ui-kit-ui-accordion.mjs.map +1 -0
  16. package/fesm2022/4sh-ui-kit-ui-alert.mjs +160 -0
  17. package/fesm2022/4sh-ui-kit-ui-alert.mjs.map +1 -0
  18. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs +926 -0
  19. package/fesm2022/4sh-ui-kit-ui-autocomplete.mjs.map +1 -0
  20. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs +34 -0
  21. package/fesm2022/4sh-ui-kit-ui-avatar-group.mjs.map +1 -0
  22. package/fesm2022/4sh-ui-kit-ui-avatar.mjs +122 -0
  23. package/fesm2022/4sh-ui-kit-ui-avatar.mjs.map +1 -0
  24. package/fesm2022/4sh-ui-kit-ui-badge.mjs +95 -0
  25. package/fesm2022/4sh-ui-kit-ui-badge.mjs.map +1 -0
  26. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs +190 -0
  27. package/fesm2022/4sh-ui-kit-ui-breadcrumb.mjs.map +1 -0
  28. package/fesm2022/4sh-ui-kit-ui-button-split.mjs +151 -0
  29. package/fesm2022/4sh-ui-kit-ui-button-split.mjs.map +1 -0
  30. package/fesm2022/4sh-ui-kit-ui-button.mjs +222 -0
  31. package/fesm2022/4sh-ui-kit-ui-button.mjs.map +1 -0
  32. package/fesm2022/4sh-ui-kit-ui-card.mjs +164 -0
  33. package/fesm2022/4sh-ui-kit-ui-card.mjs.map +1 -0
  34. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs +118 -0
  35. package/fesm2022/4sh-ui-kit-ui-checkbox.mjs.map +1 -0
  36. package/fesm2022/4sh-ui-kit-ui-chip.mjs +205 -0
  37. package/fesm2022/4sh-ui-kit-ui-chip.mjs.map +1 -0
  38. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs +219 -0
  39. package/fesm2022/4sh-ui-kit-ui-context-menu.mjs.map +1 -0
  40. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs +1508 -0
  41. package/fesm2022/4sh-ui-kit-ui-datepicker.mjs.map +1 -0
  42. package/fesm2022/4sh-ui-kit-ui-drawer.mjs +300 -0
  43. package/fesm2022/4sh-ui-kit-ui-drawer.mjs.map +1 -0
  44. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs +148 -0
  45. package/fesm2022/4sh-ui-kit-ui-empty-state.mjs.map +1 -0
  46. package/fesm2022/4sh-ui-kit-ui-field.mjs +102 -0
  47. package/fesm2022/4sh-ui-kit-ui-field.mjs.map +1 -0
  48. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs +568 -0
  49. package/fesm2022/4sh-ui-kit-ui-file-upload.mjs.map +1 -0
  50. package/fesm2022/4sh-ui-kit-ui-helper.mjs +85 -0
  51. package/fesm2022/4sh-ui-kit-ui-helper.mjs.map +1 -0
  52. package/fesm2022/4sh-ui-kit-ui-icon.mjs +98 -0
  53. package/fesm2022/4sh-ui-kit-ui-icon.mjs.map +1 -0
  54. package/fesm2022/4sh-ui-kit-ui-image.mjs +201 -0
  55. package/fesm2022/4sh-ui-kit-ui-image.mjs.map +1 -0
  56. package/fesm2022/4sh-ui-kit-ui-input-group.mjs +119 -0
  57. package/fesm2022/4sh-ui-kit-ui-input-group.mjs.map +1 -0
  58. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs +125 -0
  59. package/fesm2022/4sh-ui-kit-ui-input-mask.mjs.map +1 -0
  60. package/fesm2022/4sh-ui-kit-ui-input-number.mjs +234 -0
  61. package/fesm2022/4sh-ui-kit-ui-input-number.mjs.map +1 -0
  62. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs +288 -0
  63. package/fesm2022/4sh-ui-kit-ui-input-otp.mjs.map +1 -0
  64. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs +679 -0
  65. package/fesm2022/4sh-ui-kit-ui-input-tags.mjs.map +1 -0
  66. package/fesm2022/4sh-ui-kit-ui-input.mjs +121 -0
  67. package/fesm2022/4sh-ui-kit-ui-input.mjs.map +1 -0
  68. package/fesm2022/4sh-ui-kit-ui-label.mjs +61 -0
  69. package/fesm2022/4sh-ui-kit-ui-label.mjs.map +1 -0
  70. package/fesm2022/4sh-ui-kit-ui-link.mjs +147 -0
  71. package/fesm2022/4sh-ui-kit-ui-link.mjs.map +1 -0
  72. package/fesm2022/4sh-ui-kit-ui-menu.mjs +484 -0
  73. package/fesm2022/4sh-ui-kit-ui-menu.mjs.map +1 -0
  74. package/fesm2022/4sh-ui-kit-ui-modal.mjs +555 -0
  75. package/fesm2022/4sh-ui-kit-ui-modal.mjs.map +1 -0
  76. package/fesm2022/4sh-ui-kit-ui-nudger.mjs +168 -0
  77. package/fesm2022/4sh-ui-kit-ui-nudger.mjs.map +1 -0
  78. package/fesm2022/4sh-ui-kit-ui-paginator.mjs +245 -0
  79. package/fesm2022/4sh-ui-kit-ui-paginator.mjs.map +1 -0
  80. package/fesm2022/4sh-ui-kit-ui-popover.mjs +296 -0
  81. package/fesm2022/4sh-ui-kit-ui-popover.mjs.map +1 -0
  82. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs +124 -0
  83. package/fesm2022/4sh-ui-kit-ui-progress-bar.mjs.map +1 -0
  84. package/fesm2022/4sh-ui-kit-ui-radio.mjs +92 -0
  85. package/fesm2022/4sh-ui-kit-ui-radio.mjs.map +1 -0
  86. package/fesm2022/4sh-ui-kit-ui-rating.mjs +185 -0
  87. package/fesm2022/4sh-ui-kit-ui-rating.mjs.map +1 -0
  88. package/fesm2022/4sh-ui-kit-ui-read-only.mjs +146 -0
  89. package/fesm2022/4sh-ui-kit-ui-read-only.mjs.map +1 -0
  90. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs +386 -0
  91. package/fesm2022/4sh-ui-kit-ui-segment-control.mjs.map +1 -0
  92. package/fesm2022/4sh-ui-kit-ui-select.mjs +868 -0
  93. package/fesm2022/4sh-ui-kit-ui-select.mjs.map +1 -0
  94. package/fesm2022/4sh-ui-kit-ui-separator.mjs +77 -0
  95. package/fesm2022/4sh-ui-kit-ui-separator.mjs.map +1 -0
  96. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs +577 -0
  97. package/fesm2022/4sh-ui-kit-ui-sidebar.mjs.map +1 -0
  98. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs +81 -0
  99. package/fesm2022/4sh-ui-kit-ui-skeleton.mjs.map +1 -0
  100. package/fesm2022/4sh-ui-kit-ui-slider.mjs +340 -0
  101. package/fesm2022/4sh-ui-kit-ui-slider.mjs.map +1 -0
  102. package/fesm2022/4sh-ui-kit-ui-spinner.mjs +132 -0
  103. package/fesm2022/4sh-ui-kit-ui-spinner.mjs.map +1 -0
  104. package/fesm2022/4sh-ui-kit-ui-stepper.mjs +389 -0
  105. package/fesm2022/4sh-ui-kit-ui-stepper.mjs.map +1 -0
  106. package/fesm2022/4sh-ui-kit-ui-table.mjs +1406 -0
  107. package/fesm2022/4sh-ui-kit-ui-table.mjs.map +1 -0
  108. package/fesm2022/4sh-ui-kit-ui-tabs.mjs +503 -0
  109. package/fesm2022/4sh-ui-kit-ui-tabs.mjs.map +1 -0
  110. package/fesm2022/4sh-ui-kit-ui-tag.mjs +84 -0
  111. package/fesm2022/4sh-ui-kit-ui-tag.mjs.map +1 -0
  112. package/fesm2022/4sh-ui-kit-ui-textarea.mjs +119 -0
  113. package/fesm2022/4sh-ui-kit-ui-textarea.mjs.map +1 -0
  114. package/fesm2022/4sh-ui-kit-ui-toast.mjs +424 -0
  115. package/fesm2022/4sh-ui-kit-ui-toast.mjs.map +1 -0
  116. package/fesm2022/4sh-ui-kit-ui-toggle.mjs +120 -0
  117. package/fesm2022/4sh-ui-kit-ui-toggle.mjs.map +1 -0
  118. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs +445 -0
  119. package/fesm2022/4sh-ui-kit-ui-tooltip.mjs.map +1 -0
  120. package/fesm2022/4sh-ui-kit.mjs +16 -0
  121. package/fesm2022/4sh-ui-kit.mjs.map +1 -0
  122. package/package.json +287 -0
  123. package/styles/base/_base.scss +19 -0
  124. package/styles/base/_motion.scss +144 -0
  125. package/styles/base/_typography.scss +99 -0
  126. package/styles/generated/_tokens-breakpoint.scss +8 -0
  127. package/styles/generated/_tokens-metrics.scss +37 -0
  128. package/styles/generated/_tokens-primitives.scss +284 -0
  129. package/styles/generated/_tokens-responsive.scss +99 -0
  130. package/styles/generated/_tokens-semantics.scss +1274 -0
  131. package/styles/generated/_tokens-styles.scss +35 -0
  132. package/styles/generated/_tokens-transitions.scss +11 -0
  133. package/styles/generated/_tokens-typography.scss +14 -0
  134. package/styles/generated/_tokens.scss +10 -0
  135. package/styles/index.scss +25 -0
  136. package/styles/settings/_ui-config.scss +67 -0
  137. package/styles/utils/_functions.scss +67 -0
  138. package/styles/utils/_helpers.scss +129 -0
  139. package/styles/utils/_mixins.scss +186 -0
  140. package/styles/utils/_motion.scss +47 -0
  141. package/styles/utils/_overlay.scss +26 -0
  142. package/styles/utils.scss +15 -0
  143. package/styles.css +1 -0
  144. package/types/4sh-ui-kit-forms.d.ts +259 -0
  145. package/types/4sh-ui-kit-motion.d.ts +111 -0
  146. package/types/4sh-ui-kit-overlay.d.ts +31 -0
  147. package/types/4sh-ui-kit-theming.d.ts +54 -0
  148. package/types/4sh-ui-kit-types.d.ts +13 -0
  149. package/types/4sh-ui-kit-ui-accordion.d.ts +140 -0
  150. package/types/4sh-ui-kit-ui-alert.d.ts +89 -0
  151. package/types/4sh-ui-kit-ui-autocomplete.d.ts +411 -0
  152. package/types/4sh-ui-kit-ui-avatar-group.d.ts +17 -0
  153. package/types/4sh-ui-kit-ui-avatar.d.ts +55 -0
  154. package/types/4sh-ui-kit-ui-badge.d.ts +38 -0
  155. package/types/4sh-ui-kit-ui-breadcrumb.d.ts +131 -0
  156. package/types/4sh-ui-kit-ui-button-split.d.ts +102 -0
  157. package/types/4sh-ui-kit-ui-button.d.ts +91 -0
  158. package/types/4sh-ui-kit-ui-card.d.ts +102 -0
  159. package/types/4sh-ui-kit-ui-checkbox.d.ts +54 -0
  160. package/types/4sh-ui-kit-ui-chip.d.ts +114 -0
  161. package/types/4sh-ui-kit-ui-context-menu.d.ts +105 -0
  162. package/types/4sh-ui-kit-ui-datepicker.d.ts +539 -0
  163. package/types/4sh-ui-kit-ui-drawer.d.ts +147 -0
  164. package/types/4sh-ui-kit-ui-empty-state.d.ts +93 -0
  165. package/types/4sh-ui-kit-ui-field.d.ts +53 -0
  166. package/types/4sh-ui-kit-ui-file-upload.d.ts +268 -0
  167. package/types/4sh-ui-kit-ui-helper.d.ts +46 -0
  168. package/types/4sh-ui-kit-ui-icon.d.ts +69 -0
  169. package/types/4sh-ui-kit-ui-image.d.ts +88 -0
  170. package/types/4sh-ui-kit-ui-input-group.d.ts +54 -0
  171. package/types/4sh-ui-kit-ui-input-mask.d.ts +63 -0
  172. package/types/4sh-ui-kit-ui-input-number.d.ts +96 -0
  173. package/types/4sh-ui-kit-ui-input-otp.d.ts +130 -0
  174. package/types/4sh-ui-kit-ui-input-tags.d.ts +350 -0
  175. package/types/4sh-ui-kit-ui-input.d.ts +78 -0
  176. package/types/4sh-ui-kit-ui-label.d.ts +36 -0
  177. package/types/4sh-ui-kit-ui-link.d.ts +72 -0
  178. package/types/4sh-ui-kit-ui-menu.d.ts +235 -0
  179. package/types/4sh-ui-kit-ui-modal.d.ts +241 -0
  180. package/types/4sh-ui-kit-ui-nudger.d.ts +79 -0
  181. package/types/4sh-ui-kit-ui-paginator.d.ts +150 -0
  182. package/types/4sh-ui-kit-ui-popover.d.ts +125 -0
  183. package/types/4sh-ui-kit-ui-progress-bar.d.ts +82 -0
  184. package/types/4sh-ui-kit-ui-radio.d.ts +44 -0
  185. package/types/4sh-ui-kit-ui-rating.d.ts +90 -0
  186. package/types/4sh-ui-kit-ui-read-only.d.ts +70 -0
  187. package/types/4sh-ui-kit-ui-segment-control.d.ts +184 -0
  188. package/types/4sh-ui-kit-ui-select.d.ts +392 -0
  189. package/types/4sh-ui-kit-ui-separator.d.ts +43 -0
  190. package/types/4sh-ui-kit-ui-sidebar.d.ts +358 -0
  191. package/types/4sh-ui-kit-ui-skeleton.d.ts +52 -0
  192. package/types/4sh-ui-kit-ui-slider.d.ts +127 -0
  193. package/types/4sh-ui-kit-ui-spinner.d.ts +67 -0
  194. package/types/4sh-ui-kit-ui-stepper.d.ts +220 -0
  195. package/types/4sh-ui-kit-ui-table.d.ts +570 -0
  196. package/types/4sh-ui-kit-ui-tabs.d.ts +225 -0
  197. package/types/4sh-ui-kit-ui-tag.d.ts +46 -0
  198. package/types/4sh-ui-kit-ui-textarea.d.ts +61 -0
  199. package/types/4sh-ui-kit-ui-toast.d.ts +247 -0
  200. package/types/4sh-ui-kit-ui-toggle.d.ts +67 -0
  201. package/types/4sh-ui-kit-ui-tooltip.d.ts +167 -0
  202. package/types/4sh-ui-kit.d.ts +4 -0
@@ -0,0 +1,105 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { ElementRef, TemplateRef } from '@angular/core';
3
+ import { ConnectedPosition } from '@angular/cdk/overlay';
4
+ import { UiSubLevel } from '@4sh/ui-kit/types';
5
+ import { UiMenuItem, MenuSize, MenuSubmenuMode, UiMenuItemCommandEvent } from '@4sh/ui-kit/ui-menu';
6
+
7
+ /** Accepted shapes for the `target` input. */
8
+ type ContextMenuTarget = HTMLElement | ElementRef<HTMLElement> | null;
9
+ /**
10
+ * ui-context-menu — contextual menu opened with a right-click (or any
11
+ * `triggerEvent`), positioned at the pointer.
12
+ *
13
+ * Attach it to an element with `target` (template reference variable), or to
14
+ * the whole document with `global`. The panel is a {@link UiMenu} rendered in
15
+ * a CDK overlay anchored on the click coordinates: same declarative
16
+ * {@link UiMenuItem} model (nested submenus, `command`, `routerLink` / `url`),
17
+ * same keyboard navigation, same `navigation.*` tokens — compact density
18
+ * (`size="small"`) by default.
19
+ *
20
+ * Manual wiring is also possible through the public `show(event)` / `hide()` /
21
+ * `toggle(event)` methods.
22
+ *
23
+ * Customisation: `#item` and `#submenuheader` templates (forwarded to the
24
+ * embedded menu), `styleClass`, `level`, `size`.
25
+ */
26
+ declare class UiContextMenu {
27
+ /** Menu entries (see {@link UiMenuItem}). */
28
+ items: _angular_core.InputSignal<UiMenuItem[]>;
29
+ /** Element the context menu is attached to (template reference variable). */
30
+ target: _angular_core.InputSignal<ContextMenuTarget>;
31
+ /** Attach to the whole document instead of a specific `target`. */
32
+ global: _angular_core.InputSignalWithTransform<boolean, unknown>;
33
+ /** DOM event opening the menu on the target (right-click by default). */
34
+ triggerEvent: _angular_core.InputSignal<string>;
35
+ /** Accessible name of the menu list. */
36
+ ariaLabel: _angular_core.InputSignal<string | undefined>;
37
+ /** Extra class(es) applied to the panel (scoped custom styling). */
38
+ styleClass: _angular_core.InputSignal<string | undefined>;
39
+ /** Color family: `high` (default) or `low` navigation tokens. */
40
+ level: _angular_core.InputSignal<UiSubLevel>;
41
+ /** Density — compact by default (contextual action menus). */
42
+ size: _angular_core.InputSignal<MenuSize>;
43
+ /** Group rendering — cascading side panels by default (classic context menus). */
44
+ submenus: _angular_core.InputSignal<MenuSubmenuMode>;
45
+ /** Animate the menu entrance (reduced-motion always wins). */
46
+ motion: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
+ /** Emitted when the menu opens. */
48
+ opened: _angular_core.OutputEmitterRef<void>;
49
+ /** Emitted when the menu closes. */
50
+ closed: _angular_core.OutputEmitterRef<void>;
51
+ /** Emitted when a leaf item is clicked / keyboard-activated. */
52
+ itemClick: _angular_core.OutputEmitterRef<UiMenuItemCommandEvent>;
53
+ /** Custom menuitem content: `<ng-template #item let-item>` (forwarded to the menu). */
54
+ protected readonly itemTemplateContent: _angular_core.Signal<TemplateRef<unknown> | undefined>;
55
+ /** Custom group-header content: `<ng-template #submenuheader let-item>` (forwarded). */
56
+ protected readonly submenuHeaderTemplateContent: _angular_core.Signal<TemplateRef<unknown> | undefined>;
57
+ /** @ignore Embedded menu (roving focus entry point). */
58
+ private readonly menu;
59
+ /** @ignore */
60
+ private readonly doc;
61
+ /** @ignore Menu visibility. */
62
+ protected readonly open: _angular_core.WritableSignal<boolean>;
63
+ /** @ignore Viewport coordinates the overlay is anchored on (derived from `anchorPage`). */
64
+ protected readonly overlayPoint: _angular_core.WritableSignal<{
65
+ x: number;
66
+ y: number;
67
+ }>;
68
+ /** @ignore DOCUMENT coordinates of the anchor: the menu belongs to the content,
69
+ * not to the screen — it must follow the page when it scrolls. */
70
+ private anchorPage;
71
+ /** @ignore Below-right of the pointer, flipping on the viewport edges. */
72
+ protected readonly overlayPositions: ConnectedPosition[];
73
+ /** @ignore `_floating` gives the embedded panel its own viewport cap +
74
+ * internal scroll (a wrapper overflow would clip the panel's shadow). */
75
+ protected readonly menuClasses: _angular_core.Signal<string>;
76
+ /** @ignore */
77
+ private readonly resolvedTarget;
78
+ constructor();
79
+ /** Opens the menu at the event's pointer coordinates. */
80
+ show(event: MouseEvent): void;
81
+ /** Closes the menu. */
82
+ hide(): void;
83
+ /** Toggles the menu at the event's pointer coordinates. */
84
+ toggle(event: MouseEvent): void;
85
+ /** @ignore Trigger event on the target/document: hijack it and open at the pointer. */
86
+ private onTrigger;
87
+ /** @ignore A new pointer press outside every overlay closes the menu.
88
+ * Presses inside an overlay (menu panel, flyout side panels) are kept;
89
+ * a press on the attached zone closes then immediately reopens through
90
+ * the trigger handler (native repositioning behavior). */
91
+ private onDocumentPointerdown;
92
+ /** @ignore */
93
+ protected onEscape(event: Event): void;
94
+ /** @ignore Activation of a leaf item: re-emit and close. */
95
+ protected onItemClick(event: UiMenuItemCommandEvent): void;
96
+ /** @ignore Focus the menu's first entry once the overlay is rendered.
97
+ * The overlay attaches after change detection: retry over macrotasks
98
+ * (NOT rAF — it never fires in throttled/background tabs). */
99
+ private queueFocusFirst;
100
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiContextMenu, never>;
101
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiContextMenu, "ui-context-menu", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "global": { "alias": "global"; "required": false; "isSignal": true; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "level": { "alias": "level"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "submenus": { "alias": "submenus"; "required": false; "isSignal": true; }; "motion": { "alias": "motion"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; "itemClick": "itemClick"; }, ["itemTemplateContent", "submenuHeaderTemplateContent"], never, true, never>;
102
+ }
103
+
104
+ export { UiContextMenu };
105
+ export type { ContextMenuTarget };
@@ -0,0 +1,539 @@
1
+ import * as _angular_cdk_overlay from '@angular/cdk/overlay';
2
+ import * as _angular_core from '@angular/core';
3
+ import { TemplateRef } from '@angular/core';
4
+ import { BaseFormField } from '@4sh/ui-kit/forms';
5
+
6
+ type DatepickerHourFormat = '12' | '24';
7
+ /** Base picking granularity — also the drill-down levels of the panel. */
8
+ type DatepickerView = 'date' | 'month' | 'year';
9
+ /** Selection quantity. */
10
+ type DatepickerSelectionMode = 'single' | 'multiple' | 'range';
11
+ /**
12
+ * Shape of the value crossing the CVA boundary — see {@link DatepickerValue}. Mandatory
13
+ * (`input.required`, no default): the consumer must pick one explicitly rather than accidentally
14
+ * relying on a default that may not match its model's actual type.
15
+ *
16
+ * `'date'` matches a DTO round-tripped through `class-transformer` (`@Type(() => Date)`): the
17
+ * value stays a plain `Date` end to end, normalized to midnight when no time is shown. `'iso'`
18
+ * emits ISO `"yyyy-MM-dd"` strings instead — for consumers reading/writing the value directly
19
+ * against a backend `LocalDate` without going through a DTO layer that already handles the
20
+ * conversion.
21
+ */
22
+ type DatepickerValueType = 'date' | 'iso';
23
+ /**
24
+ * Model value. `writeValue` accepts `Date` **or** ISO string transparently (auto-detected,
25
+ * mixable in `multiple`/`range` arrays) — whatever the host app already has at hand. What gets
26
+ * **emitted** (`valueChange`, `dateSelect`, and so whatever lands in the `FormControl`) strictly
27
+ * follows {@link valueType}: always `Date` in `'date'` mode, always `string` in `'iso'` mode —
28
+ * never a silent mix, so the consumer's own model type stays predictable in either mode.
29
+ */
30
+ type DatepickerValue = Date | Date[] | string | string[] | null;
31
+ /** @ignore Internal calendar representation — the only shape `selectedDates`/`buildDay`/grid
32
+ * navigation ever see. `writeValue`/`commit` are the sole two conversion points to/from
33
+ * {@link DatepickerValue} (`Date` or ISO string depending on {@link DatepickerValueType}). */
34
+ type DatepickerDateValue = Date | Date[] | null;
35
+ /** A single day cell of the month grid. Also the `$implicit` context of the `#date` template. */
36
+ interface DatepickerDay {
37
+ date: Date;
38
+ day: number;
39
+ month: number;
40
+ year: number;
41
+ otherMonth: boolean;
42
+ today: boolean;
43
+ selected: boolean;
44
+ disabled: boolean;
45
+ rangeStart: boolean;
46
+ rangeEnd: boolean;
47
+ inRange: boolean;
48
+ ts: number;
49
+ /** Full date, locale-formatted (e.g. "8 juillet 2026") — the gridcell's `aria-label`. */
50
+ ariaLabel: string;
51
+ }
52
+ /** A month cell of the month-picker grid. */
53
+ interface DatepickerMonthCell {
54
+ index: number;
55
+ label: string;
56
+ selected: boolean;
57
+ disabled: boolean;
58
+ }
59
+ /** A year cell of the year-picker grid. */
60
+ interface DatepickerYearCell {
61
+ year: number;
62
+ selected: boolean;
63
+ disabled: boolean;
64
+ }
65
+ /** One rendered month panel (supports `numberOfMonths`). */
66
+ interface DatepickerMonthPanel {
67
+ monthDate: Date;
68
+ label: string;
69
+ weeks: DatepickerDay[][];
70
+ showPrev: boolean;
71
+ showNext: boolean;
72
+ }
73
+ /**
74
+ * ui-datepicker — headless date / month / year (and optional time) picker.
75
+ *
76
+ * A readonly {@link UiInput} trigger opens a token-styled panel in a CDK overlay
77
+ * (or renders inline). Supports single / multiple / range selection, drill-down
78
+ * views (day → month → year), `MonthPicker`/`YearPicker` modes (`view`), several
79
+ * months side-by-side (`numberOfMonths`), a time row, and roving keyboard focus.
80
+ *
81
+ * Value is `Date` or ISO `"yyyy-MM-dd"` string depending on the **required** `valueType` input (no
82
+ * default — the consumer must pick one), wired through `ControlValueAccessor` on
83
+ * {@link BaseFormField} (shared label / helper / level / validation / states). `writeValue`
84
+ * accepts either shape transparently; what gets **emitted** always follows `valueType` — see
85
+ * {@link DatepickerValueType}.
86
+ *
87
+ * Customisation: `panelStyleClass`, the `#date` cell template
88
+ * (`let-date let-selected="selected"`) and the `#buttonbar` template
89
+ * (`let-todayCallback let-clearCallback`), plus the local SCSS variables.
90
+ */
91
+ declare class UiDatepicker extends BaseFormField<DatepickerValue> {
92
+ /** Placeholder shown in the trigger when nothing is selected. */
93
+ placeholder: _angular_core.InputSignal<string | undefined>;
94
+ /** FontAwesome icon of the trigger's toggle button. */
95
+ icon: _angular_core.InputSignal<string>;
96
+ /** Show the trigger's calendar toggle button. */
97
+ showIcon: _angular_core.InputSignalWithTransform<boolean, unknown>;
98
+ /** Accessible name of the toggle button (a11y). */
99
+ iconAriaLabel: _angular_core.InputSignal<string>;
100
+ /** Show a clear (×) button in the trigger when a value is set. */
101
+ showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
102
+ /**
103
+ * Shape of the emitted value: `'date'` (a plain `Date` — matches a DTO round-tripped through
104
+ * `class-transformer`) or `'iso'` (ISO `"yyyy-MM-dd"` string, for a value read/written directly
105
+ * against a backend `LocalDate`). `writeValue` always accepts either shape regardless of this
106
+ * setting — it only governs what `valueChange`/`dateSelect` emit. **Required, no default**: the
107
+ * consumer must pick the one matching its own model's type rather than inherit a silent default.
108
+ */
109
+ valueType: _angular_core.InputSignal<DatepickerValueType>;
110
+ /** Selection quantity: `single` (default), `multiple` or `range`. */
111
+ selectionMode: _angular_core.InputSignal<DatepickerSelectionMode>;
112
+ /** Base picking granularity: `date` (default), `month` (MonthPicker) or `year` (YearPicker). */
113
+ view: _angular_core.InputSignal<DatepickerView>;
114
+ /** Number of month panels shown side-by-side (date view only). */
115
+ numberOfMonths: _angular_core.InputSignalWithTransform<number, unknown>;
116
+ /** Earliest selectable date (inclusive). `Date` or ISO `"yyyy-MM-dd"`. */
117
+ minDate: _angular_core.InputSignal<string | Date | null>;
118
+ /** Latest selectable date (inclusive). `Date` or ISO `"yyyy-MM-dd"`. */
119
+ maxDate: _angular_core.InputSignal<string | Date | null>;
120
+ /** Individual dates to disable. `Date` or ISO `"yyyy-MM-dd"`, mixable. */
121
+ disabledDates: _angular_core.InputSignal<(string | Date)[]>;
122
+ /** Week days to disable (0 = Sunday … 6 = Saturday). */
123
+ disabledDays: _angular_core.InputSignal<number[]>;
124
+ /** First day of the week (0 = Sunday … 6 = Saturday). Defaults to Monday. */
125
+ firstDayOfWeek: _angular_core.InputSignalWithTransform<number, unknown>;
126
+ /** BCP-47 locale for names and default formatting. Defaults to `LOCALE_ID`. */
127
+ locale: _angular_core.InputSignal<string | undefined>;
128
+ /** Custom display formatter for a single date (overrides the default `Intl` format). */
129
+ dateFormat: _angular_core.InputSignal<((date: Date) => string) | undefined>;
130
+ /**
131
+ * Allow typing the date directly in the trigger (single selection only).
132
+ * The typed text is parsed on blur / `Enter`; an unparsable value reverts to
133
+ * the previously displayed one. When enabled (and no custom `dateFormat`), the
134
+ * value is displayed in a numeric locale format so it round-trips with typing.
135
+ * Has no effect in `timeOnly` mode: the trigger stays read-only there.
136
+ */
137
+ allowInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
138
+ /**
139
+ * Custom parser for the typed text (symmetric with `dateFormat`). Return `null`
140
+ * to reject the input. When omitted, a locale-aware numeric parser is used.
141
+ */
142
+ parseDate: _angular_core.InputSignal<((value: string) => Date | null) | undefined>;
143
+ /** Enable the time selection row. */
144
+ showTime: _angular_core.InputSignalWithTransform<boolean, unknown>;
145
+ /** Time-only mode: hide the calendar, keep the time row. */
146
+ timeOnly: _angular_core.InputSignalWithTransform<boolean, unknown>;
147
+ /** 12h (AM/PM) or 24h clock. */
148
+ hourFormat: _angular_core.InputSignal<DatepickerHourFormat>;
149
+ /** Minute increment of the time stepper (buttons / arrow keys — typing stays exact). */
150
+ stepMinute: _angular_core.InputSignalWithTransform<number, unknown>;
151
+ /**
152
+ * Let the hours and minutes be typed directly in the time row (default).
153
+ */
154
+ editableTime: _angular_core.InputSignalWithTransform<boolean, unknown>;
155
+ /** Show the bottom button bar (Today / Clear) — or the `#buttonbar` template. */
156
+ showButtonBar: _angular_core.InputSignalWithTransform<boolean, unknown>;
157
+ /** Label of the default "Today" button. */
158
+ todayLabel: _angular_core.InputSignal<string>;
159
+ /** Label of the default "Clear" button. */
160
+ clearLabel: _angular_core.InputSignal<string>;
161
+ /** Accessible name of the calendar panel (fallback when no `label`/`ariaLabel`). */
162
+ panelAriaLabel: _angular_core.InputSignal<string>;
163
+ /** Accessible label of the previous-month/year navigation arrow. */
164
+ prevAriaLabel: _angular_core.InputSignal<string>;
165
+ /** Accessible label of the next-month/year navigation arrow. */
166
+ nextAriaLabel: _angular_core.InputSignal<string>;
167
+ /** Accessible name of the hours spinbutton. */
168
+ hoursAriaLabel: _angular_core.InputSignal<string>;
169
+ /** Accessible name of the minutes spinbutton. */
170
+ minutesAriaLabel: _angular_core.InputSignal<string>;
171
+ /** Accessible name of the AM/PM spinbutton. */
172
+ meridiemAriaLabel: _angular_core.InputSignal<string>;
173
+ /** Accessible label of the hours increment button. */
174
+ incrementHoursAriaLabel: _angular_core.InputSignal<string>;
175
+ /** Accessible label of the hours decrement button. */
176
+ decrementHoursAriaLabel: _angular_core.InputSignal<string>;
177
+ /** Accessible label of the minutes increment button. */
178
+ incrementMinutesAriaLabel: _angular_core.InputSignal<string>;
179
+ /** Accessible label of the minutes decrement button. */
180
+ decrementMinutesAriaLabel: _angular_core.InputSignal<string>;
181
+ /** Accessible label of the AM/PM toggle buttons. */
182
+ toggleMeridiemAriaLabel: _angular_core.InputSignal<string>;
183
+ /** Render the panel inline (no trigger, no overlay). */
184
+ inline: _angular_core.InputSignalWithTransform<boolean, unknown>;
185
+ /**
186
+ * Auto-flip the panel above the trigger when there isn't enough room below
187
+ * (default). Set `false` to lock it below the trigger regardless of space.
188
+ */
189
+ autoFlip: _angular_core.InputSignalWithTransform<boolean, unknown>;
190
+ /** Close after a complete selection (ignored when `showTime`). */
191
+ closeOnSelect: _angular_core.InputSignalWithTransform<boolean, unknown>;
192
+ /** Extra class(es) applied to the panel (scoped custom styling). */
193
+ panelStyleClass: _angular_core.InputSignal<string | undefined>;
194
+ /** Emitted whenever the value changes (selection, time, clear). */
195
+ valueChange: _angular_core.OutputEmitterRef<DatepickerValue>;
196
+ /** Emitted when a date/month/year is picked — always a single value (in `valueType`'s
197
+ * shape), even in `multiple`/`range` (it reports "which day was just clicked", not the model
198
+ * value, which is why it never becomes an array there). */
199
+ dateSelect: _angular_core.OutputEmitterRef<string | Date>;
200
+ /** Emitted when the displayed month changes. */
201
+ monthChange: _angular_core.OutputEmitterRef<{
202
+ month: number;
203
+ year: number;
204
+ }>;
205
+ /** Emitted when the panel opens. */
206
+ opened: _angular_core.OutputEmitterRef<void>;
207
+ /** Emitted when the panel closes. */
208
+ closed: _angular_core.OutputEmitterRef<void>;
209
+ /** Emitted when the value is cleared. */
210
+ cleared: _angular_core.OutputEmitterRef<void>;
211
+ /** Emitted when the trigger receives focus. */
212
+ inputFocus: _angular_core.OutputEmitterRef<FocusEvent>;
213
+ /** Emitted when the trigger loses focus. */
214
+ inputBlur: _angular_core.OutputEmitterRef<FocusEvent>;
215
+ /** Custom day-cell template: `<ng-template #date let-date let-selected="selected">`. */
216
+ protected readonly dateTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
217
+ /** Custom button-bar template: `<ng-template #buttonbar let-todayCallback let-clearCallback>`. */
218
+ protected readonly buttonBarTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
219
+ /** @ignore */
220
+ private readonly localeId;
221
+ /** @ignore */
222
+ private readonly triggerInput;
223
+ /** @ignore Trigger host (to anchor the overlay on the input box, not the helper). */
224
+ private readonly triggerRef;
225
+ /** @ignore Panel root element (overlay or inline) — used for roving day focus. */
226
+ private readonly panelEl;
227
+ /** @ignore */
228
+ protected readonly panelId: string;
229
+ /** @ignore */
230
+ protected readonly panelOpen: _angular_core.WritableSignal<boolean>;
231
+ /** @ignore Element the overlay is anchored to (the input box). */
232
+ protected readonly overlayOrigin: _angular_core.WritableSignal<Element | null>;
233
+ /** @ignore Month currently displayed. */
234
+ protected readonly viewDate: _angular_core.WritableSignal<Date>;
235
+ /** @ignore Active drill-down level; resets to `view()` when it changes. */
236
+ protected readonly currentView: _angular_core.WritableSignal<DatepickerView>;
237
+ /** @ignore Day cell owning the roving tabindex. */
238
+ protected readonly focusedDate: _angular_core.WritableSignal<Date>;
239
+ /** @ignore Month-picker cell (index 0–11) owning the roving tabindex. */
240
+ protected readonly focusedMonthIndex: _angular_core.WritableSignal<number>;
241
+ /** @ignore Year-picker cell (absolute year) owning the roving tabindex. */
242
+ protected readonly focusedYear: _angular_core.WritableSignal<number>;
243
+ /** @ignore Time components. */
244
+ protected readonly hours: _angular_core.WritableSignal<number>;
245
+ protected readonly minutes: _angular_core.WritableSignal<number>;
246
+ /** @ignore Raw text while the user edits the trigger (`allowInput`); `null` when not editing. */
247
+ protected readonly typedValue: _angular_core.WritableSignal<string | null>;
248
+ /** @ignore Date-based source of truth for all calendar/selection logic; `modelValue`
249
+ * (inherited) only ever carries the public value (`Date` or ISO string per `valueType`),
250
+ * written in lockstep. */
251
+ protected readonly internalValue: _angular_core.WritableSignal<DatepickerDateValue>;
252
+ /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */
253
+ protected readonly overlayPositions: _angular_core.Signal<_angular_cdk_overlay.ConnectedPosition[]>;
254
+ /** @ignore Bound (stable) callbacks exposed to the `#buttonbar` template. */
255
+ protected readonly todayCallback: (event?: Event) => void;
256
+ protected readonly clearCallback: (event?: Event) => void;
257
+ /** @ignore */
258
+ private readonly resolvedLocale;
259
+ /** @ignore `minDate`/`maxDate`/`disabledDates` normalized to `Date` (accept ISO strings too). */
260
+ private readonly resolvedMinDate;
261
+ private readonly resolvedMaxDate;
262
+ private readonly resolvedDisabledDates;
263
+ /**
264
+ * @ignore The trigger is not typeable: manual input off, not single, read-only, or
265
+ * `timeOnly` — free-form typing in time-only mode isn't implemented (no dedicated
266
+ * parser/formatter for a bare time string), so it's disabled outright here rather than
267
+ * silently mis-parsing.
268
+ */
269
+ protected readonly triggerReadonly: _angular_core.Signal<boolean>;
270
+ /**
271
+ * @ignore Placeholder shown in the typeable trigger. Falls back to a hint derived
272
+ * from the resolved locale's field order (e.g. `jj/mm/aaaa` in French, `mm/dd/yyyy`
273
+ * in en-US) so the field never advertises the wrong format.
274
+ */
275
+ protected readonly resolvedPlaceholder: _angular_core.Signal<string | undefined>;
276
+ /** @ignore Order of day/month/year for the resolved locale (drives numeric parsing). */
277
+ private readonly dateFieldOrder;
278
+ /** @ignore `dateFieldOrder`, minus `day` in month view — the fields actually typed. */
279
+ private readonly activeFields;
280
+ /**
281
+ * @ignore Dynamic mask (day/month/year widths in locale order, plus hour/minute — and AM/PM —
282
+ * widths when `showTime`) driving the auto-"/" (resp. ":") formatting of the typeable trigger.
283
+ * `null` disables it: `triggerReadonly` (covers `timeOnly` — see there), `view === 'year'`
284
+ * (free-form numeric field, out of scope), or a custom `parseDate` (a non-numeric format would
285
+ * make the auto-slash wrong). The `year` segment is deliberately left unbounded so the existing
286
+ * 2-digit shortcut (`normalizeYear`) keeps working — strict validation still happens at
287
+ * `finalizeParsed`. `defaultParse` already expects these trailing hour/minute digits (see its
288
+ * `nums.slice(fields.length)`) — this only keeps the auto-formatting mask in sync with it, so
289
+ * typed hour/minute digits aren't truncated by `autoFormatSegments` before they reach it.
290
+ */
291
+ private readonly typingSlots;
292
+ /** @ignore The panel is visible. */
293
+ protected readonly showPanel: _angular_core.Signal<boolean>;
294
+ /** @ignore Day grid shown (hidden in `timeOnly`). */
295
+ protected readonly showCalendar: _angular_core.Signal<boolean>;
296
+ /** @ignore Single-month layout enables the drill-down header + roving focus. */
297
+ protected readonly singleMonth: _angular_core.Signal<boolean>;
298
+ /** @ignore A value is currently set. */
299
+ protected readonly hasValue: _angular_core.Signal<boolean>;
300
+ /** @ignore The trigger's right action clears the value (instead of toggling the panel). */
301
+ protected readonly showClearButton: _angular_core.Signal<boolean>;
302
+ /** @ignore Right-side icon: clear (×) when clearable + set, else the calendar/clock toggle. */
303
+ protected readonly triggerIcon: _angular_core.Signal<string | undefined>;
304
+ /** @ignore Accessible name of the right action. */
305
+ protected readonly triggerIconAriaLabel: _angular_core.Signal<string>;
306
+ /** @ignore Flatten the internal (Date-based) value to a list of selected dates. */
307
+ private readonly selectedDates;
308
+ /** @ignore First selected date (for view seeding / time / display). */
309
+ private firstSelectedFrom;
310
+ /** @ignore Whether the value carries a time component (date+time ISO / non-midnight `Date`). */
311
+ private readonly hasTimeComponent;
312
+ /** @ignore Date → ISO string, date-only unless `showTime`/`timeOnly`. */
313
+ private toIsoValue;
314
+ /** @ignore ISO string → Date, `null` if malformed (never throws). */
315
+ private fromIsoValue;
316
+ /** @ignore Internal Date → the shape `valueType` commits to emitting: a fresh `Date`
317
+ * (normalized to midnight when no time is shown — never the original reference) in `'date'`
318
+ * mode, an ISO string in `'iso'` mode. The single point deciding the emitted type. */
319
+ private serializeValue;
320
+ /** @ignore A single incoming item, `Date` or ISO string, auto-detected — `writeValue` accepts
321
+ * either shape regardless of `valueType` (only the emitted side commits to one). Cloned when
322
+ * already a `Date` (never the caller's own reference) — symmetric with `serializeValue`,
323
+ * which never hands back the internal reference either; protects against the caller later
324
+ * mutating that `Date` in place and silently desyncing `internalValue`. */
325
+ private parseValue;
326
+ /** @ignore Internal Date(s) → public value, right before it reaches `modelValue`/the CVA.
327
+ * The cast is safe: `serializeValue` only branches on `valueType()`, constant across the
328
+ * `map`, so the array is always homogeneous (`Date[]` or `string[]`, never mixed). */
329
+ private toExternalValue;
330
+ /** @ignore Public value → internal Date(s), right as it enters via `writeValue`. Invalid
331
+ * entries are dropped rather than failing the whole value (a malformed item in a
332
+ * `multiple`/`range` array shouldn't wipe out the rest). */
333
+ private toInternalValue;
334
+ /** @ignore */
335
+ private formatDate;
336
+ /** @ignore Month-view display (numeric + round-trippable when the trigger is typeable). */
337
+ private formatMonth;
338
+ /** @ignore Value rendered in the trigger. */
339
+ protected readonly displayValue: _angular_core.Signal<string>;
340
+ /** @ignore Displayed decade start (year view). */
341
+ private readonly decadeStart;
342
+ /** @ignore Header label depends on the active view. */
343
+ protected readonly headerLabel: _angular_core.Signal<string>;
344
+ /** @ignore Short (visible) + full (aria-label) weekday names — without both, either the header
345
+ * stays `aria-hidden` or the short text alone leaves screen-reader users without column names. */
346
+ protected readonly weekDayNames: _angular_core.Signal<{
347
+ short: string;
348
+ full: string;
349
+ }[]>;
350
+ /** @ignore Full-date `aria-label` formatter for day gridcells (e.g. "8 juillet 2026"). */
351
+ private readonly dayAriaFormatter;
352
+ /** @ignore Month panels (1 or more) for the date view. */
353
+ protected readonly monthPanels: _angular_core.Signal<DatepickerMonthPanel[]>;
354
+ /** @ignore Month-picker grid (12 months of the displayed year). */
355
+ protected readonly months: _angular_core.Signal<DatepickerMonthCell[]>;
356
+ /** @ignore Year-picker grid (the displayed decade). */
357
+ protected readonly years: _angular_core.Signal<DatepickerYearCell[]>;
358
+ /** @ignore Hours as shown in the 12h stepper (1–12). */
359
+ protected readonly displayHours: _angular_core.Signal<number>;
360
+ /** @ignore */
361
+ protected readonly meridiem: _angular_core.Signal<"AM" | "PM">;
362
+ constructor();
363
+ writeValue(value: DatepickerValue): void;
364
+ open(): void;
365
+ close(focusTrigger?: boolean): void;
366
+ /** @ignore */
367
+ protected toggle(): void;
368
+ /** @ignore Right action: clear when clearable + set, otherwise toggle the panel.
369
+ * `stopPropagation` keeps the click from bubbling to the field (which opens it). */
370
+ protected onIconClick(event: MouseEvent): void;
371
+ /** @ignore */
372
+ protected onTriggerKeydown(event: KeyboardEvent): void;
373
+ /**
374
+ * @ignore Track the raw text as the user types; live-preview the open panel. When a typing
375
+ * mask applies (see `typingSlots`), auto-insert "/" as soon as a segment is complete (same
376
+ * pattern as a card-expiry field) and reposition the caret accordingly.
377
+ */
378
+ protected onTriggerInput(value: string): void;
379
+ /**
380
+ * @ignore Reflect a fully-typed date in the open panel (navigate + highlight)
381
+ * without reformatting the field, so the caret stays put while typing.
382
+ */
383
+ private previewTyped;
384
+ /** @ignore Parse the typed text on blur, then forward the blur. */
385
+ protected onTriggerBlur(event: FocusEvent): void;
386
+ /** @ignore Parse and apply the typed text; revert to the previous value if invalid. */
387
+ protected commitTyped(): void;
388
+ /**
389
+ * @ignore Custom parser when provided, otherwise the locale-aware numeric parser.
390
+ * `requireComplete` gates the default parser to fully-typed dates (custom
391
+ * parsers decide completeness themselves).
392
+ */
393
+ private parseTyped;
394
+ /**
395
+ * @ignore Locale-aware numeric parser (day/month/year order from `dateFieldOrder`).
396
+ * With `requireComplete`, returns `null` unless every component is present
397
+ * (and the year has 2 or ≥4 digits) — used for live preview to avoid jumps.
398
+ */
399
+ private defaultParse;
400
+ /** @ignore 2-digit years → 2000s. */
401
+ private normalizeYear;
402
+ /** @ignore Range/disabled check for a parsed value, granular to the base view. */
403
+ private isParsedDisabled;
404
+ /** @ignore Click the header title → drill up (date → month → year). Single-month only. */
405
+ protected onHeaderClick(): void;
406
+ /** @ignore Prev/next arrow — steps month / year / decade depending on the view. */
407
+ protected onPrev(): void;
408
+ protected onNext(): void;
409
+ /** @ignore */
410
+ private step;
411
+ /** @ignore */
412
+ protected changeMonth(delta: number): void;
413
+ /** @ignore Pick a day from the grid. */
414
+ protected selectDay(cell: DatepickerDay): void;
415
+ /** @ignore Month-picker / drill-down month selection. */
416
+ protected selectMonth(cell: DatepickerMonthCell): void;
417
+ /** @ignore Year-picker / drill-down year selection. */
418
+ protected selectYear(cell: DatepickerYearCell): void;
419
+ /** @ignore Apply the time signals to the value (single selection only). */
420
+ protected applyTime(): void;
421
+ /** @ignore Zero-padded labels for the steppers. */
422
+ protected readonly hoursLabel: _angular_core.Signal<string>;
423
+ protected readonly minutesLabel: _angular_core.Signal<string>;
424
+ /** @ignore Raw digits while a time field is being typed in; `null` when not editing. */
425
+ private readonly hoursDraft;
426
+ private readonly minutesDraft;
427
+ /** @ignore Text rendered in a time field: the draft while typing, the padded label otherwise. */
428
+ protected readonly hoursValue: _angular_core.Signal<string>;
429
+ protected readonly minutesValue: _angular_core.Signal<string>;
430
+ /** @ignore Accepted hours range (the 12h clock shows 1–12). */
431
+ protected readonly hourBounds: _angular_core.Signal<{
432
+ min: number;
433
+ max: number;
434
+ }>;
435
+ /** @ignore The hours/minutes fields accept typing. */
436
+ protected readonly timeEditable: _angular_core.Signal<boolean>;
437
+ /** @ignore The time steppers (chevrons + AM/PM toggle) accept interaction — unlike
438
+ * `timeEditable`, not gated on `editableTime` (the steppers stay usable in
439
+ * `StepperOnlyTime`-style configs; only `disabled`/`readonly` freeze them). */
440
+ protected readonly timeControlsEnabled: _angular_core.Signal<boolean>;
441
+ /** @ignore Step hours (wraps 0↔23; also flips meridiem across the 12h boundary). */
442
+ protected stepHours(dir: 1 | -1): void;
443
+ /** @ignore Step minutes by `stepMinute` (wraps 0↔59). */
444
+ protected stepMinutes(dir: 1 | -1): void;
445
+ /** @ignore */
446
+ protected toggleMeridiem(): void;
447
+ /**
448
+ * @ignore Typing in the hours field. The digits are held as a draft (so `0` can
449
+ * be the start of `09`) and committed as soon as they form a valid hour.
450
+ */
451
+ protected onHoursInput(event: Event): void;
452
+ /** @ignore Typing in the minutes field — exact value (`stepMinute` only drives the steppers). */
453
+ protected onMinutesInput(event: Event): void;
454
+ /**
455
+ * @ignore Keep a time field to at most 2 digits and reject what can never be in
456
+ * range (`33`, or `13` on a 12h clock) — the field reverts to `current`, so the
457
+ * keystroke is simply refused. Returns the accepted digits, or `null` if rejected.
458
+ */
459
+ private acceptTimeDigits;
460
+ /** @ignore 12h display hour (1–12) + the current meridiem → 24h hour. */
461
+ private to24;
462
+ /** @ignore Focusing a time field selects it, so typing replaces the value. */
463
+ protected onTimeFocus(event: FocusEvent): void;
464
+ /** @ignore Leaving a time field drops the draft: the zero-padded label comes back. */
465
+ protected onHoursBlur(): void;
466
+ /** @ignore */
467
+ protected onMinutesBlur(): void;
468
+ /** @ignore ARIA spinbutton keyboard: ↑/↓ step, PageUp/PageDown ±, Enter commits. */
469
+ protected onHourKeydown(event: KeyboardEvent): void;
470
+ /** @ignore */
471
+ protected onMinuteKeydown(event: KeyboardEvent): void;
472
+ /** @ignore */
473
+ protected onMeridiemKeydown(event: KeyboardEvent): void;
474
+ /** @ignore */
475
+ private pad;
476
+ /** @ignore */
477
+ protected selectToday(): void;
478
+ /** @ignore */
479
+ protected clear(): void;
480
+ /** @ignore */
481
+ protected onGridKeydown(event: KeyboardEvent): void;
482
+ /** @ignore The roving-focus cell. `otherMonth` cells are excluded so a date
483
+ * shown twice across adjacent panels (multi-month) yields a single tab stop. */
484
+ protected isFocusableDay(cell: DatepickerDay): boolean;
485
+ /**
486
+ * @ignore Shared arrow/Home/End math for a fixed-size, `columns`-wide grid (the month picker's
487
+ * 12 cells / 3 columns and the year picker's 10 cells / 2 columns) — the one piece of roving-
488
+ * focus logic actually common to all three grids; `PageUp`/`PageDown`/`Enter`/`Escape` differ
489
+ * per grid (paging semantics, selecting a month vs. a year) and stay in their own handler.
490
+ * Returns `null` for a key it doesn't handle.
491
+ */
492
+ private navigateGridIndex;
493
+ /** @ignore Month-picker grid: ←↑→↓/Home/End move within the 12 months (3 columns), PageUp/PageDown
494
+ * step the displayed year (Shift = ×10), Enter/Space picks the focused month. */
495
+ protected onMonthGridKeydown(event: KeyboardEvent): void;
496
+ /** @ignore Year-picker grid: ←↑→↓/Home/End move within the displayed decade (2 columns),
497
+ * PageUp/PageDown step by a decade (Shift = ×10 decades), Enter/Space picks the focused year. */
498
+ protected onYearGridKeydown(event: KeyboardEvent): void;
499
+ /** @ignore The month-picker roving-focus cell. */
500
+ protected isFocusableMonth(cell: DatepickerMonthCell): boolean;
501
+ /** @ignore The year-picker roving-focus cell. */
502
+ protected isFocusableYear(cell: DatepickerYearCell): boolean;
503
+ /** @ignore Shift the visible month window just enough to contain `date`. */
504
+ private ensureMonthVisible;
505
+ /** @ignore Sole "normal" write path: takes internal Date(s), serializes to the public ISO
506
+ * string(s) right here, before it ever reaches `modelValue`/the CVA. Callers keep passing
507
+ * `Date`/`Date[]`/`null` exactly as before — the ISO contract lives entirely in this method. */
508
+ private commit;
509
+ /** @ignore Build a day-cell descriptor with its selection/range flags. */
510
+ private buildDay;
511
+ /** @ignore 6×7 grid for a given month, incl. adjacent-month spill-over. */
512
+ private buildMonthWeeks;
513
+ /** @ignore */
514
+ private resolveOverlayOrigin;
515
+ /** @ignore Focus the roving-tabindex cell matching `selector`, once the DOM reflects the
516
+ * just-updated `focusedDate`/`focusedMonthIndex`/`focusedYear` signal. */
517
+ private queueCellFocus;
518
+ /** @ignore */
519
+ private queueDayFocus;
520
+ /** @ignore */
521
+ private queueMonthFocus;
522
+ /** @ignore */
523
+ private queueYearFocus;
524
+ /** @ignore */
525
+ private clampToRange;
526
+ /** @ignore */
527
+ private isDateDisabled;
528
+ /** @ignore Whole month out of [min, max]. */
529
+ private isMonthDisabled;
530
+ /** @ignore Whole year out of [min, max]. */
531
+ private isYearDisabled;
532
+ /** @ignore */
533
+ private capitalize;
534
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<UiDatepicker, never>;
535
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<UiDatepicker, "ui-datepicker", never, { "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "showIcon": { "alias": "showIcon"; "required": false; "isSignal": true; }; "iconAriaLabel": { "alias": "iconAriaLabel"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "valueType": { "alias": "valueType"; "required": true; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "numberOfMonths": { "alias": "numberOfMonths"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledDates": { "alias": "disabledDates"; "required": false; "isSignal": true; }; "disabledDays": { "alias": "disabledDays"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dateFormat": { "alias": "dateFormat"; "required": false; "isSignal": true; }; "allowInput": { "alias": "allowInput"; "required": false; "isSignal": true; }; "parseDate": { "alias": "parseDate"; "required": false; "isSignal": true; }; "showTime": { "alias": "showTime"; "required": false; "isSignal": true; }; "timeOnly": { "alias": "timeOnly"; "required": false; "isSignal": true; }; "hourFormat": { "alias": "hourFormat"; "required": false; "isSignal": true; }; "stepMinute": { "alias": "stepMinute"; "required": false; "isSignal": true; }; "editableTime": { "alias": "editableTime"; "required": false; "isSignal": true; }; "showButtonBar": { "alias": "showButtonBar"; "required": false; "isSignal": true; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "panelAriaLabel": { "alias": "panelAriaLabel"; "required": false; "isSignal": true; }; "prevAriaLabel": { "alias": "prevAriaLabel"; "required": false; "isSignal": true; }; "nextAriaLabel": { "alias": "nextAriaLabel"; "required": false; "isSignal": true; }; "hoursAriaLabel": { "alias": "hoursAriaLabel"; "required": false; "isSignal": true; }; "minutesAriaLabel": { "alias": "minutesAriaLabel"; "required": false; "isSignal": true; }; "meridiemAriaLabel": { "alias": "meridiemAriaLabel"; "required": false; "isSignal": true; }; "incrementHoursAriaLabel": { "alias": "incrementHoursAriaLabel"; "required": false; "isSignal": true; }; "decrementHoursAriaLabel": { "alias": "decrementHoursAriaLabel"; "required": false; "isSignal": true; }; "incrementMinutesAriaLabel": { "alias": "incrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "decrementMinutesAriaLabel": { "alias": "decrementMinutesAriaLabel"; "required": false; "isSignal": true; }; "toggleMeridiemAriaLabel": { "alias": "toggleMeridiemAriaLabel"; "required": false; "isSignal": true; }; "inline": { "alias": "inline"; "required": false; "isSignal": true; }; "autoFlip": { "alias": "autoFlip"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "panelStyleClass": { "alias": "panelStyleClass"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "dateSelect": "dateSelect"; "monthChange": "monthChange"; "opened": "opened"; "closed": "closed"; "cleared": "cleared"; "inputFocus": "inputFocus"; "inputBlur": "inputBlur"; }, ["dateTemplate", "buttonBarTemplate"], never, true, never>;
536
+ }
537
+
538
+ export { UiDatepicker };
539
+ export type { DatepickerDay, DatepickerHourFormat, DatepickerMonthCell, DatepickerMonthPanel, DatepickerSelectionMode, DatepickerValue, DatepickerValueType, DatepickerView, DatepickerYearCell };