@4sh/ui-kit 0.15.0 → 0.16.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 (30) hide show
  1. package/README.fr.md +8 -0
  2. package/README.md +8 -0
  3. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +69 -22
  4. package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
  5. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +13 -4
  6. package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
  7. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +12 -4
  8. package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
  9. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +19 -8
  10. package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
  11. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs +30 -9
  12. package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
  13. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +8 -3
  14. package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
  15. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +10 -4
  16. package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
  17. package/fesm2022/4sh-ui-kit-forms.mjs +46 -2
  18. package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
  19. package/mcp/data/component-api.json +14 -0
  20. package/mcp/data/text-search-docs.json +29 -9
  21. package/mcp/package.json +1 -1
  22. package/package.json +1 -1
  23. package/styles/utils/_mixins.scss +11 -0
  24. package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +16 -3
  25. package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +2 -0
  26. package/types/4sh-ui-kit-forms-ui-input-number.d.ts +4 -1
  27. package/types/4sh-ui-kit-forms-ui-input-otp.d.ts +5 -1
  28. package/types/4sh-ui-kit-forms-ui-input.d.ts +2 -0
  29. package/types/4sh-ui-kit-forms-ui-textarea.d.ts +2 -0
  30. package/types/4sh-ui-kit-forms.d.ts +25 -1
@@ -1 +1 @@
1
- {"version":3,"file":"4sh-ui-kit-forms-ui-datepicker.mjs","sources":["../../../projects/ui-kit/forms/ui-datepicker/src/lib/ui-datepicker.ts","../../../projects/ui-kit/forms/ui-datepicker/src/lib/ui-datepicker.html","../../../projects/ui-kit/forms/ui-datepicker/src/public-api.ts","../../../projects/ui-kit/forms/ui-datepicker/src/4sh-ui-kit-forms-ui-datepicker.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n linkedSignal,\n LOCALE_ID,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { dropdownOverlayPositions } from '@4sh/ui-kit/forms';\nimport { CdkTrapFocus, FocusMonitor } from '@angular/cdk/a11y';\nimport { BaseFormField } from '@4sh/ui-kit/forms';\nimport {\n autoFormatSegments,\n buildMaskSlots,\n caretForMask,\n extractMaskData,\n MaskBounds,\n MaskSlot,\n} from '@4sh/ui-kit/forms';\nimport { UiInput, UiInputIconContext } from '@4sh/ui-kit/forms/ui-input';\nimport { UiButton } from '@4sh/ui-kit/actions/ui-button';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport {\n addDays,\n addMonths,\n finalizeParsed,\n firstOfMonth,\n isSameDay,\n normalizeDateInput,\n parseIsoDate,\n parseIsoDateTime,\n startOfDay,\n toIsoDate,\n toIsoDateTime,\n} from '@4sh/ui-kit/forms';\n\nexport type DatepickerHourFormat = '12' | '24';\n/** Base picking granularity — also the drill-down levels of the panel. */\nexport type DatepickerView = 'date' | 'month' | 'year';\n/** Selection quantity. */\nexport type DatepickerSelectionMode = 'single' | 'multiple' | 'range';\n/** @ignore Whether the focus roves into the grid on open: always from the calendar toggle,\n * only on a non-typeable field otherwise, never when the focus itself did the opening. */\ntype DatepickerOpenOrigin = 'icon' | 'field' | 'focus';\n/**\n * Shape of the value crossing the CVA boundary — see {@link DatepickerValue}. Mandatory\n * (`input.required`, no default): the consumer must pick one explicitly rather than accidentally\n * relying on a default that may not match its model's actual type.\n *\n * `'date'` matches a DTO round-tripped through `class-transformer` (`@Type(() => Date)`): the\n * value stays a plain `Date` end to end, normalized to midnight when no time is shown. `'iso'`\n * emits ISO `\"yyyy-MM-dd\"` strings instead — for consumers reading/writing the value directly\n * against a backend `LocalDate` without going through a DTO layer that already handles the\n * conversion.\n */\nexport type DatepickerValueType = 'date' | 'iso';\n/**\n * Model value. `writeValue` accepts `Date` **or** ISO string transparently (auto-detected,\n * mixable in `multiple`/`range` arrays) — whatever the host app already has at hand. What gets\n * **emitted** (`valueChange`, `dateSelect`, and so whatever lands in the `FormControl`) strictly\n * follows {@link valueType}: always `Date` in `'date'` mode, always `string` in `'iso'` mode —\n * never a silent mix, so the consumer's own model type stays predictable in either mode.\n */\nexport type DatepickerValue = Date | Date[] | string | string[] | null;\n/** @ignore Internal calendar representation — the only shape `selectedDates`/`buildDay`/grid\n * navigation ever see. `writeValue`/`commit` are the sole two conversion points to/from\n * {@link DatepickerValue} (`Date` or ISO string depending on {@link DatepickerValueType}). */\ntype DatepickerDateValue = Date | Date[] | null;\n\n/** A single day cell of the month grid. Also the `$implicit` context of the `#date` template. */\nexport interface DatepickerDay {\n date: Date;\n day: number;\n month: number;\n year: number;\n otherMonth: boolean;\n today: boolean;\n selected: boolean;\n disabled: boolean;\n rangeStart: boolean;\n rangeEnd: boolean;\n inRange: boolean;\n ts: number;\n /** Full date, locale-formatted (e.g. \"8 juillet 2026\") — the gridcell's `aria-label`. */\n ariaLabel: string;\n}\n\n/** A month cell of the month-picker grid. */\nexport interface DatepickerMonthCell {\n index: number;\n label: string;\n selected: boolean;\n disabled: boolean;\n}\n\n/** A year cell of the year-picker grid. */\nexport interface DatepickerYearCell {\n year: number;\n selected: boolean;\n disabled: boolean;\n}\n\n/** One rendered month panel (supports `numberOfMonths`). */\nexport interface DatepickerMonthPanel {\n monthDate: Date;\n label: string;\n weeks: DatepickerDay[][];\n showPrev: boolean;\n showNext: boolean;\n}\n\nlet nextPanelUid = 0;\n\n/** Typed `range` separator (FSHSP-118: `\"jj/mm/aaaa - jj/mm/aaaa\"`) — placeholder, live mask,\n * and `parseTypedMulti` splitting. A plain hyphen, distinct from the DISPLAYED en dash below —\n * reusing this one for display used to silently change the look of every non-typing consumer. */\nconst RANGE_SEPARATOR = ' - ';\n/** Displayed (committed) `range` separator — unchanged since before typed entry existed. */\nconst RANGE_DISPLAY_SEPARATOR = ' – ';\n/** Typed/displayed `multiple` separator (`\"jj/mm/aaaa, jj/mm/aaaa, ...\"`) — one separator for both. */\nconst MULTIPLE_SEPARATOR = ', ';\n\n/** @ignore One field of a numeric date, in the order the resolved format writes them. */\ntype DateField = 'day' | 'month' | 'year';\n\n/** Illustrative date the auto placeholder and the field-order probe are both derived from\n * (22 Nov 2023): day, month and year are pairwise distinct, so each one is identifiable in a\n * formatter's own output. A fresh instance per call — a consumer's `dateFormat` receives it,\n * and a shared one could be mutated in place. */\nfunction probeDate(): Date {\n return new Date(2023, 10, 22);\n}\n/** First index at which any of `tokens` occurs in `text` (`-1` if none) — probes a formatter's\n * output for one {@link probeDate} component, most specific token first. */\nfunction firstIndexOf(text: string, tokens: readonly string[]): number {\n for (const token of tokens) {\n const i = text.indexOf(token);\n if (i !== -1) return i;\n }\n return -1;\n}\n\n/** Splits a flat cell list into rows of `size` (month/year pickers need `role=\"row\"` wrappers). */\nfunction chunk<T>(items: readonly T[], size: number): T[][] {\n const rows: T[][] = [];\n for (let i = 0; i < items.length; i += size) rows.push(items.slice(i, i + size));\n return rows;\n}\n\n/**\n * ui-datepicker — headless date / month / year (and optional time) picker.\n *\n * A readonly {@link UiInput} trigger opens a token-styled panel in a CDK overlay\n * (or renders inline). Supports single / multiple / range selection, drill-down\n * views (day → month → year), `MonthPicker`/`YearPicker` modes (`view`), several\n * months side-by-side (`numberOfMonths`), a time row, and roving keyboard focus.\n *\n * Value is `Date` or ISO `\"yyyy-MM-dd\"` string depending on the **required** `valueType` input (no\n * default — the consumer must pick one), wired through `ControlValueAccessor` on\n * {@link BaseFormField} (shared label / helper / level / validation / states). `writeValue`\n * accepts either shape transparently; what gets **emitted** always follows `valueType` — see\n * {@link DatepickerValueType}.\n *\n * Customisation: `panelStyleClass`, the `#date` cell template\n * (`let-date let-selected=\"selected\"`) and the `#buttonbar` template\n * (`let-todayCallback let-clearCallback`), plus the local SCSS variables.\n */\n@Component({\n selector: 'ui-datepicker',\n imports: [NgTemplateOutlet, OverlayModule, CdkTrapFocus, UiInput, UiButton, UiIcon],\n templateUrl: './ui-datepicker.html',\n styleUrl: './ui-datepicker.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiDatepicker), multi: true },\n ],\n})\nexport class UiDatepicker extends BaseFormField<DatepickerValue> {\n /** Placeholder shown in the trigger when nothing is selected. */\n placeholder = input<string>();\n /** FontAwesome icon of the trigger's toggle button. */\n icon = input<string>('calendar');\n /** Show the trigger's calendar toggle button. */\n showIcon = input(true, { transform: booleanAttribute });\n /** Accessible name of the toggle button (a11y). */\n iconAriaLabel = input<string>('Ouvrir le calendrier');\n /**\n * Show a clear (×) button in the trigger when a value is set. **Default `true`** (FSHSP-118):\n * only takes effect when `showIcon` is `false` — the calendar/clock toggle otherwise always\n * wins the trigger's single icon slot, so the panel stays reachable by click even once a value\n * is set. With `showIcon` at its own default (`true`), clearing goes through the keyboard\n * (`allowInput`, itself `true` by default) instead: select the text and delete it.\n */\n showClear = input(true, { transform: booleanAttribute });\n\n /**\n * Shape of the emitted value: `'date'` (a plain `Date` — matches a DTO round-tripped through\n * `class-transformer`) or `'iso'` (ISO `\"yyyy-MM-dd\"` string, for a value read/written directly\n * against a backend `LocalDate`). `writeValue` always accepts either shape regardless of this\n * setting — it only governs what `valueChange`/`dateSelect` emit. **Required, no default**: the\n * consumer must pick the one matching its own model's type rather than inherit a silent default.\n */\n valueType = input.required<DatepickerValueType>();\n /** Selection quantity: `single` (default), `multiple` or `range`. */\n selectionMode = input<DatepickerSelectionMode>('single');\n /** Base picking granularity: `date` (default), `month` (MonthPicker) or `year` (YearPicker). */\n view = input<DatepickerView>('date');\n /** Number of month panels shown side-by-side (date view only). */\n numberOfMonths = input<number, unknown>(1, { transform: numberAttribute });\n\n /** Earliest selectable date (inclusive). `Date` or ISO `\"yyyy-MM-dd\"`. */\n minDate = input<Date | string | null>(null);\n /** Latest selectable date (inclusive). `Date` or ISO `\"yyyy-MM-dd\"`. */\n maxDate = input<Date | string | null>(null);\n /** Individual dates to disable. `Date` or ISO `\"yyyy-MM-dd\"`, mixable. */\n disabledDates = input<(Date | string)[]>([]);\n /** Week days to disable (0 = Sunday … 6 = Saturday). */\n disabledDays = input<number[]>([]);\n\n /** First day of the week (0 = Sunday … 6 = Saturday). Defaults to Monday. */\n firstDayOfWeek = input<number, unknown>(1, { transform: numberAttribute });\n /** BCP-47 locale for names and default formatting. Defaults to `LOCALE_ID`. */\n locale = input<string>();\n /**\n * Custom display formatter for a single date (overrides the default `Intl` format) — also\n * used, unchanged, as the time formatter in `timeOnly` mode.\n *\n * With `allowInput` and no `parseDate`, the typed text is read back in the day/month/year\n * order **this formatter writes** (probed from its own output, whatever locale it uses\n * internally), not the resolved locale's — so entry and display always agree. A non-numeric\n * format (e.g. `\"22 novembre 2023\"`) can't be probed: pair it with a matching `parseDate`.\n */\n dateFormat = input<(date: Date) => string>();\n\n /**\n * Allow typing the date directly in the trigger. **Default `true`** (FSHSP-118): a calendar\n * grid alone forces a screen-reader user through ~30 cells to pick a date, when typing it is\n * far faster — set `false` to force the grid-only path instead. The typed text is parsed on\n * blur / `Enter`; an unparsable value reverts to the previously displayed one. When enabled\n * (and no custom `dateFormat`), the value is displayed in a numeric locale format so it\n * round-trips with typing.\n *\n * `single` gets the full experience: a live auto-\"/\" mask while constructing a date from an\n * empty field (see `typingSlots`), free-form text editing otherwise — no live reformatting,\n * parsed on blur/Enter. \"Otherwise\" covers both a value that already exists and an edit made\n * inside the text being typed rather than at its tail: editing a segment in place, e.g. just\n * the month, never shifts what follows (FSHSP-118, FSHSP-179).\n *\n * `range`/`multiple` are typeable too (FSHSP-118), but always as plain text — no live mask,\n * only parsed on blur/Enter: `\"jj/mm/aaaa - jj/mm/aaaa\"` for `range` (exactly two dates,\n * reordered chronologically if typed backwards), `\"jj/mm/aaaa, jj/mm/aaaa, ...\"` for `multiple`\n * (any count, duplicates collapsed) — see `parseTypedMulti`. The grid keeps working exactly as\n * before either way; typing is a complement, not a replacement.\n *\n * A typeable field is a text field first: **a click in it no longer opens the panel**\n * (FSHSP-180) — the calendar icon, `↓` and the keyboard do. `allowInput=\"false\"` (or\n * `readonly`/`timeOnly`) restores the click-to-open, the field being the affordance there; so\n * does `showIcon=\"false\"`, which leaves no icon to click. See `onTriggerClick`.\n *\n * Has no effect in `timeOnly` mode: the trigger stays read-only there (no parser/formatter for\n * a bare time string).\n */\n allowInput = input(true, { transform: booleanAttribute });\n /**\n * Custom parser for the typed text (symmetric with `dateFormat`). Return `null`\n * to reject the input. When omitted, a locale-aware numeric parser is used.\n */\n parseDate = input<(value: string) => Date | null>();\n\n /** Enable the time selection row. */\n showTime = input(false, { transform: booleanAttribute });\n /** Time-only mode: hide the calendar, keep the time row. */\n timeOnly = input(false, { transform: booleanAttribute });\n /** 12h (AM/PM) or 24h clock. */\n hourFormat = input<DatepickerHourFormat>('24');\n /** Minute increment of the time stepper (buttons / arrow keys — typing stays exact). */\n stepMinute = input<number, unknown>(1, { transform: numberAttribute });\n /**\n * Let the hours and minutes be typed directly in the time row (default).\n */\n editableTime = input(true, { transform: booleanAttribute });\n\n /** Show the bottom button bar (Today / Clear) — or the `#buttonbar` template. */\n showButtonBar = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Label of the default \"Today\" button. */\n todayLabel = input<string>(\"Aujourd'hui\");\n /** Label of the default \"Clear\" button. */\n clearLabel = input<string>('Effacer');\n\n /**\n * Accessible hint announcing the expected typed format, chained onto the trigger's\n * `aria-describedby` (alongside the helper/error message, never replacing it) whenever it's\n * typeable (FSHSP-118): the `placeholder` alone is unreliable across screen readers, and it\n * disappears the moment the user starts typing. Defaults to a sentence built from the resolved\n * placeholder (e.g. \"Format attendu : jj/mm/aaaa\"); pass an explicit string to override it, or\n * `''` to omit it.\n */\n formatHintLabel = input<string>();\n\n /** Accessible name of the calendar panel (fallback when no `label`/`ariaLabel`). */\n panelAriaLabel = input<string>('Calendrier');\n /** Accessible label of the previous-month/year navigation arrow. */\n prevAriaLabel = input<string>('Précédent');\n /** Accessible label of the next-month/year navigation arrow. */\n nextAriaLabel = input<string>('Suivant');\n /** Accessible name of the hours spinbutton. */\n hoursAriaLabel = input<string>('Heures');\n /** Accessible name of the minutes spinbutton. */\n minutesAriaLabel = input<string>('Minutes');\n /** Accessible name of the AM/PM spinbutton. */\n meridiemAriaLabel = input<string>('AM/PM');\n /** Accessible label of the hours increment button. */\n incrementHoursAriaLabel = input<string>('Augmenter les heures');\n /** Accessible label of the hours decrement button. */\n decrementHoursAriaLabel = input<string>('Diminuer les heures');\n /** Accessible label of the minutes increment button. */\n incrementMinutesAriaLabel = input<string>('Augmenter les minutes');\n /** Accessible label of the minutes decrement button. */\n decrementMinutesAriaLabel = input<string>('Diminuer les minutes');\n /** Accessible label of the AM/PM toggle buttons. */\n toggleMeridiemAriaLabel = input<string>('Changer AM/PM');\n\n /** Render the panel inline (no trigger, no overlay). */\n inline = input(false, { transform: booleanAttribute });\n /**\n * Open the panel as soon as the trigger takes focus, pointer *or* keyboard, never a\n * programmatic focus.\n */\n showOnFocus = input(false, { transform: booleanAttribute });\n /**\n * Auto-flip the panel above the trigger when there isn't enough room below\n * (default). Set `false` to lock it below the trigger regardless of space.\n */\n autoFlip = input(true, { transform: booleanAttribute });\n /** Close after a complete selection (ignored when `showTime`). */\n closeOnSelect = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n panelStyleClass = input<string>();\n /** Native autocomplete, forwarded to the trigger. */\n autocomplete = input<string>();\n\n /** Emitted whenever the value changes (selection, time, clear). */\n valueChange = output<DatepickerValue>();\n /** Emitted when a date/month/year is picked — always a single value (in `valueType`'s\n * shape), even in `multiple`/`range` (it reports \"which day was just clicked\", not the model\n * value, which is why it never becomes an array there). */\n dateSelect = output<Date | string>();\n /** Emitted when the displayed month changes. */\n monthChange = output<{ month: number; year: number }>();\n /** Emitted when the panel opens. */\n opened = output<void>();\n /** Emitted when the panel closes. */\n closed = output<void>();\n /** Emitted when the value is cleared. */\n cleared = output<void>();\n /** Emitted when the trigger receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the trigger loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom day-cell template: `<ng-template #date let-date let-selected=\"selected\">`. */\n protected readonly dateTemplate = contentChild<TemplateRef<unknown>>('date');\n /** Custom button-bar template: `<ng-template #buttonbar let-todayCallback let-clearCallback>`. */\n protected readonly buttonBarTemplate = contentChild<TemplateRef<unknown>>('buttonbar');\n /** Custom trigger-icon template: `<ng-template #icon let-name let-size=\"size\">`. */\n private readonly iconTemplate = contentChild<TemplateRef<UiInputIconContext>>('icon');\n\n /** @ignore */\n private readonly localeId = inject(LOCALE_ID);\n /** @ignore Focus origin of the trigger, for `showOnFocus`. The CDK is the only thing that can\n * tell a user-initiated focus from a programmatic one (`autofocus`, a host app calling\n * `focus()`), which must not pop a calendar the user never asked for. */\n private readonly focusMonitor = inject(FocusMonitor);\n /** @ignore Only used to detach the overlay *synchronously* on `Tab`, see `onTriggerKeydown`. */\n private readonly cdr = inject(ChangeDetectorRef);\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Element the current press started on, see `onOutsideClick`. */\n private pressOrigin: Node | null = null;\n /** @ignore */\n private readonly triggerInput = viewChild<UiInput>('trigger');\n /** @ignore Trigger host (to anchor the overlay on the input box, not the helper). */\n private readonly triggerRef = viewChild<UiInput, ElementRef<HTMLElement>>('trigger', {\n read: ElementRef,\n });\n /** @ignore Panel root element (overlay or inline) — used for roving day focus. */\n private readonly panelEl = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Trigger wrapper (field + label + format hint). A non-modal panel has no backdrop,\n * so outside-click dismissal has to know what \"inside the trigger\" means. */\n private readonly triggerWrapperEl = viewChild<ElementRef<HTMLElement>>('triggerWrapper');\n\n /** @ignore */\n protected readonly panelId = `ui-datepicker-panel-${nextPanelUid++}`;\n /** @ignore */\n protected readonly panelOpen = signal(false);\n /** @ignore Panel opened without taking the focus (`showOnFocus`): plain popup instead of the\n * usual modal dialog — see {@link DatepickerOpenOrigin}. */\n protected readonly nonModal = signal(false);\n /** @ignore Set while we hand the focus back to the trigger ourselves (`close`), so the\n * returning focus never re-opens the panel that just closed. `focus()` dispatches\n * synchronously, so a plain flag is enough, no timer to leak. */\n private suppressFocusOpen = false;\n /** @ignore Element the overlay is anchored to (the input box). */\n protected readonly overlayOrigin = signal<Element | null>(null);\n /** @ignore Month currently displayed. */\n protected readonly viewDate = signal<Date>(startOfDay(new Date()));\n /** @ignore Active drill-down level; resets to `view()` when it changes. */\n protected readonly currentView = linkedSignal<DatepickerView>(() => this.view());\n /** @ignore Day cell owning the roving tabindex. */\n protected readonly focusedDate = signal<Date>(startOfDay(new Date()));\n /** @ignore Month-picker cell (index 0–11) owning the roving tabindex. */\n protected readonly focusedMonthIndex = signal<number>(new Date().getMonth());\n /** @ignore Year-picker cell (absolute year) owning the roving tabindex. */\n protected readonly focusedYear = signal<number>(new Date().getFullYear());\n /** @ignore Time components. */\n protected readonly hours = signal(0);\n protected readonly minutes = signal(0);\n /** @ignore Raw text while the user edits the trigger (`allowInput`); `null` when not editing. */\n protected readonly typedValue = signal<string | null>(null);\n /** @ignore Live mask given up on for the rest of the current entry, because the user edited\n * inside the text instead of appending at its tail (see `onTriggerInput`/`typingSlots`).\n * Lifted by any commit, and as soon as the field reads empty. */\n private readonly maskSuspended = signal(false);\n /** @ignore Date-based source of truth for all calendar/selection logic; `modelValue`\n * (inherited) only ever carries the public value (`Date` or ISO string per `valueType`),\n * written in lockstep. */\n protected readonly internalValue = signal<DatepickerDateValue>(null);\n\n /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */\n protected readonly overlayPositions = computed(() => dropdownOverlayPositions(this.autoFlip()));\n /** @ignore Gutter kept with the viewport edges, matching the one `$panel-max-width`\n * reserves; with `cdkConnectedOverlayPush` it keeps the panel fully on screen. */\n protected readonly overlayViewportMargin = 12;\n\n /** @ignore Bound (stable) callbacks exposed to the `#buttonbar` template. */\n protected readonly todayCallback = (event?: Event): void => {\n event?.stopPropagation?.();\n this.selectToday();\n };\n protected readonly clearCallback = (event?: Event): void => {\n event?.stopPropagation?.();\n this.clear();\n };\n\n /** @ignore */\n private readonly resolvedLocale = computed(() => this.locale() ?? this.localeId);\n /** @ignore `minDate`/`maxDate`/`disabledDates` normalized to `Date` (accept ISO strings too). */\n private readonly resolvedMinDate = computed(() => normalizeDateInput(this.minDate()));\n private readonly resolvedMaxDate = computed(() => normalizeDateInput(this.maxDate()));\n private readonly resolvedDisabledDates = computed(() =>\n (this.disabledDates() ?? []).map(normalizeDateInput).filter((d): d is Date => d !== null),\n );\n /** @ignore Not typeable: manual input off, read-only, or `timeOnly` (no bare-time parser).\n * `range`/`multiple` ARE typeable (FSHSP-118) — see `parseTypedMulti`/`typingSlots`. */\n protected readonly triggerReadonly = computed(\n () => this.readonly() || !this.allowInput() || this.timeOnly(),\n );\n /** @ignore Single-date placeholder token (e.g. `jj/mm/aaaa`) — the building block\n * `resolvedPlaceholder` composes for `range`/`multiple`. With a custom `dateFormat`, the\n * locale's numeric token would be flatly wrong (it describes a format nothing actually\n * produces or accepts) — showing that custom formatter's own output for an illustrative date\n * instead at least matches what the field really expects. */\n private readonly singleDatePlaceholder = computed(() => {\n const custom = this.dateFormat();\n if (custom) return custom(probeDate());\n const fr = this.resolvedLocale().toLowerCase().startsWith('fr');\n const token = { day: fr ? 'jj' : 'dd', month: 'mm', year: fr ? 'aaaa' : 'yyyy' };\n const view = this.view();\n if (view === 'year') return token.year;\n const opts: Intl.DateTimeFormatOptions =\n view === 'month'\n ? { month: '2-digit', year: 'numeric' }\n : { day: '2-digit', month: '2-digit', year: 'numeric' };\n return new Intl.DateTimeFormat(this.resolvedLocale(), opts)\n .formatToParts(probeDate())\n .map((p) =>\n p.type === 'day'\n ? token.day\n : p.type === 'month'\n ? token.month\n : p.type === 'year'\n ? token.year\n : p.value,\n )\n .join('');\n });\n /**\n * @ignore Placeholder shown in the typeable trigger. Falls back to a hint derived from the\n * resolved locale's field order (e.g. `jj/mm/aaaa` in French, `mm/dd/yyyy` in en-US) — or, with\n * a custom `dateFormat`, from that formatter's own output for an illustrative date (see\n * `singleDatePlaceholder`), since the locale-numeric token would describe a format nothing\n * actually produces or accepts — so the field never advertises the wrong format. Composed into\n * `\"jj/mm/aaaa - jj/mm/aaaa\"` (`range`) or `\"jj/mm/aaaa, ...\"` (`multiple`), matching\n * `RANGE_SEPARATOR`/`MULTIPLE_SEPARATOR` (see `parseTypedMulti`).\n */\n protected readonly resolvedPlaceholder = computed(() => {\n const explicit = this.placeholder();\n // Keep the consumer's placeholder, and don't auto-hint on a read-only trigger.\n if (explicit || this.triggerReadonly()) return explicit;\n const single = this.singleDatePlaceholder();\n const mode = this.selectionMode();\n if (mode === 'range') return `${single}${RANGE_SEPARATOR}${single}`;\n if (mode === 'multiple') return `${single}${MULTIPLE_SEPARATOR}...`;\n return single;\n });\n /**\n * @ignore Format hint text, or `null` when there's nothing to announce: the trigger isn't\n * typeable, or `formatHintLabel` was explicitly set to `''` to opt out.\n */\n protected readonly resolvedFormatHint = computed(() => {\n if (this.triggerReadonly()) return null;\n const explicit = this.formatHintLabel();\n if (explicit === '') return null;\n return explicit || `Format attendu : ${this.resolvedPlaceholder()}`;\n });\n /** @ignore Stable id for the hint element `resolvedFormatHint` renders into. */\n protected readonly formatHintId = computed(() => `${this.resolvedId()}-format-hint`);\n\n /**\n * @ignore Field order a custom `dateFormat` actually writes, probed from its own output for\n * {@link probeDate}. `null` when there is no custom formatter, or when its output isn't\n * numeric enough to tell (e.g. `\"22 novembre 2023\"`) — the locale order stands then.\n *\n * The default parser and the live mask have to read the text back in the order the field\n * displays it, and a `dateFormat` is free to use a locale of its own: an `fr-FR` formatter\n * under an `en-US` `LOCALE_ID` displayed `\"08/07/2026\"` but parsed it month-first, so\n * finishing the entry silently swapped day and month (FSHSP-179).\n */\n private readonly customFormatFieldOrder = computed<DateField[] | null>(() => {\n const custom = this.dateFormat();\n if (!custom) return null;\n const out = custom(probeDate());\n // 4-digit year probed before the 2-digit one: `\"23\"` also occurs inside `\"2023\"` (\"20|23\"),\n // at an offset that isn't where the year starts.\n const probed: [DateField, number][] = [\n ['day', firstIndexOf(out, ['22'])],\n ['month', firstIndexOf(out, ['11'])],\n ['year', firstIndexOf(out, ['2023', '23'])],\n ];\n if (probed.some(([, i]) => i === -1)) return null;\n if (new Set(probed.map(([, i]) => i)).size !== probed.length) return null;\n return probed.sort((a, b) => a[1] - b[1]).map(([field]) => field);\n });\n /** @ignore Order of day/month/year driving numeric parsing, the live mask and the auto\n * placeholder: what a custom `dateFormat` writes when that can be probed\n * ({@link customFormatFieldOrder}), the resolved locale's own order otherwise. */\n private readonly dateFieldOrder = computed<DateField[]>(() => {\n const fromFormat = this.customFormatFieldOrder();\n if (fromFormat) return fromFormat;\n const parts = new Intl.DateTimeFormat(this.resolvedLocale(), {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n }).formatToParts(probeDate());\n const order = parts\n .map((p) => p.type)\n .filter((t): t is DateField => t === 'day' || t === 'month' || t === 'year');\n return order.length === 3 ? order : ['day', 'month', 'year'];\n });\n /** @ignore `dateFieldOrder`, minus `day` in month view — the fields actually typed. */\n private readonly activeFields = computed<DateField[]>(() =>\n this.dateFieldOrder().filter((f) => (this.view() === 'month' ? f !== 'day' : true)),\n );\n /**\n * @ignore Dynamic mask (day/month/year widths, `+` time if `showTime`, `+` a second date for\n * `range`) driving the auto-\"/\"/\":\"/\" - \" formatting of the typeable trigger. `null` disables\n * it: `triggerReadonly`, `view === 'year'` (free-form field), a custom `parseDate` (non-numeric\n * format), `hasValue()`, or `multiple` (unbounded date count, no fixed template fits — plain\n * text on blur/Enter instead, see `parseTypedMulti`).\n *\n * `hasValue()`: re-deriving the mask from the raw digit stream only works for *constructing* a\n * value from nothing, not editing one in place (day/month re-validate arbitrary residual digits\n * after any edit — see `onTriggerInput`). So it's off once a value exists — plain text instead,\n * parsed on blur/Enter — and re-arms the moment the field reads empty (`onTriggerInput` commits\n * the clear right there, not just on blur, so `hasValue()` actually flips before the next key).\n *\n * `maskSuspended()`: the same limitation, hit before any value exists — an edit made *inside*\n * the text being typed rather than at its tail (see `onTriggerInput`).\n */\n private readonly typingSlots = computed<MaskSlot[] | null>(() => {\n const mode = this.selectionMode();\n if (\n this.triggerReadonly() ||\n this.view() === 'year' ||\n this.parseDate() ||\n this.hasValue() ||\n this.maskSuspended() ||\n (mode !== 'single' && mode !== 'range')\n )\n return null;\n const widths = { day: '99', month: '99', year: '9999' } as const;\n const bounds: Record<DateField, MaskBounds | null> = {\n day: { min: 1, max: 31 },\n month: { min: 1, max: 12 },\n year: null,\n };\n const fields = this.activeFields();\n let mask = fields.map((f) => widths[f]).join('/');\n const segmentBounds: (MaskBounds | null)[] = fields.map((f) => bounds[f]);\n\n if (mode === 'single' && this.showTime() && this.view() === 'date') {\n mask += this.hourFormat() === '12' ? ' 99:99 aa' : ' 99:99';\n segmentBounds.push(this.hourFormat() === '12' ? { min: 1, max: 12 } : { min: 0, max: 23 }, {\n min: 0,\n max: 59,\n });\n }\n if (mode === 'range') {\n // Second date, same widths/bounds, joined by the literal typing separator — no `showTime`\n // support here (typed `range` is always `startOfDay`, see `parseTypedMulti`).\n mask += RANGE_SEPARATOR + fields.map((f) => widths[f]).join('/');\n segmentBounds.push(...fields.map((f) => bounds[f]));\n }\n return buildMaskSlots(mask, segmentBounds);\n });\n /** @ignore The panel is visible. */\n protected readonly showPanel = computed(() => this.inline() || this.panelOpen());\n /** @ignore Day grid shown (hidden in `timeOnly`). */\n protected readonly showCalendar = computed(() => !this.timeOnly());\n /** @ignore Single-month layout enables the drill-down header + roving focus. */\n protected readonly singleMonth = computed(() => Math.max(1, this.numberOfMonths()) === 1);\n\n /** @ignore A value is currently set. */\n protected readonly hasValue = computed(() => this.selectedDates().length > 0);\n /**\n * @ignore A `range` whose two ends are both picked. Between the first and the second click\n * the start is selected but there is no zone yet: the grid must then show its chip alone,\n * never a half band running off toward an end that does not exist.\n */\n protected readonly rangeComplete = computed(() => {\n if (this.selectionMode() !== 'range') return false;\n const [start, end] = this.selectedDates();\n return !!start && !!end;\n });\n /**\n * @ignore The trigger's right action clears the value (instead of toggling the panel). Gated\n * on `!showIcon()` (FSHSP-118): the calendar/clock toggle always wins the trigger's single icon\n * slot when it's shown, so there's always a click target to reopen the panel and pick a\n * different date directly — the cross only replaces it in configs that hid it (`showIcon`\n * false), where it's the sole remaining affordance to empty the field without a keyboard.\n */\n protected readonly showClearButton = computed(\n () =>\n this.showClear() &&\n this.hasValue() &&\n !this.isDisabled() &&\n !this.readonly() &&\n !this.showIcon(),\n );\n /** @ignore Right-side icon: clear (×) when clearable + set + no calendar toggle to show\n * (see `showClearButton`), else the calendar/clock toggle. */\n protected readonly triggerIcon = computed(() => {\n if (this.showClearButton()) return 'xmark';\n if (!this.showIcon()) return undefined;\n // Default to a clock in time-only mode (unless a custom icon was provided).\n return this.timeOnly() && this.icon() === 'calendar' ? 'clock' : this.icon();\n });\n /** @ignore Accessible name of the right action. */\n protected readonly triggerIconAriaLabel = computed(() =>\n this.showClearButton() ? this.clearLabel() : this.iconAriaLabel(),\n );\n /** @ignore Forwarded to the trigger only when an icon zone is rendered — `showIcon=\"false\"` stays icon-less. */\n protected readonly triggerIconTemplate = computed(() =>\n this.triggerIcon() ? this.iconTemplate() : undefined,\n );\n\n // --- Selection helpers ----------------------------------------------\n\n /** @ignore Flatten the internal (Date-based) value to a list of selected dates. */\n private readonly selectedDates = computed<Date[]>(() => {\n const v = this.internalValue();\n if (!v) return [];\n return (Array.isArray(v) ? v : [v]).filter((d): d is Date => d instanceof Date);\n });\n /** @ignore First selected date (for view seeding / time / display). */\n private firstSelectedFrom(value: DatepickerDateValue): Date | null {\n if (!value) return null;\n const arr = Array.isArray(value) ? value : [value];\n return arr.find((d) => d instanceof Date) ?? null;\n }\n\n // --- Value conversion (the ONLY boundary between the public `Date`/ISO contract\n // and the internal Date-based calendar logic) --------------------------------\n\n /** @ignore Whether the value carries a time component (date+time ISO / non-midnight `Date`). */\n private readonly hasTimeComponent = computed(() => this.showTime() || this.timeOnly());\n /** @ignore Date → ISO string, date-only unless `showTime`/`timeOnly`. */\n private toIsoValue(d: Date): string {\n return this.hasTimeComponent() ? toIsoDateTime(d) : toIsoDate(d);\n }\n /** @ignore ISO string → Date, `null` if malformed (never throws). */\n private fromIsoValue(s: string): Date | null {\n return this.hasTimeComponent() ? parseIsoDateTime(s) : parseIsoDate(s);\n }\n /** @ignore Internal Date → the shape `valueType` commits to emitting: a fresh `Date`\n * (normalized to midnight when no time is shown — never the original reference) in `'date'`\n * mode, an ISO string in `'iso'` mode. The single point deciding the emitted type. */\n private serializeValue(d: Date): Date | string {\n if (this.valueType() === 'iso') return this.toIsoValue(d);\n return this.hasTimeComponent() ? new Date(d) : startOfDay(d);\n }\n /** @ignore A single incoming item, `Date` or ISO string, auto-detected — `writeValue` accepts\n * either shape regardless of `valueType` (only the emitted side commits to one). Cloned when\n * already a `Date` (never the caller's own reference) — symmetric with `serializeValue`,\n * which never hands back the internal reference either; protects against the caller later\n * mutating that `Date` in place and silently desyncing `internalValue`. */\n private parseValue(v: Date | string): Date | null {\n return v instanceof Date ? new Date(v) : this.fromIsoValue(v);\n }\n /** @ignore Internal Date(s) → public value, right before it reaches `modelValue`/the CVA.\n * The cast is safe: `serializeValue` only branches on `valueType()`, constant across the\n * `map`, so the array is always homogeneous (`Date[]` or `string[]`, never mixed). */\n private toExternalValue(value: DatepickerDateValue): DatepickerValue {\n if (!value) return null;\n if (Array.isArray(value)) return value.map((d) => this.serializeValue(d)) as Date[] | string[];\n return this.serializeValue(value);\n }\n /** @ignore Public value → internal Date(s), right as it enters via `writeValue`. Invalid\n * entries are dropped rather than failing the whole value (a malformed item in a\n * `multiple`/`range` array shouldn't wipe out the rest). */\n private toInternalValue(value: DatepickerValue): DatepickerDateValue {\n if (!value) return null;\n if (Array.isArray(value)) {\n const parsed = value.map((v) => this.parseValue(v)).filter((d): d is Date => d !== null);\n return parsed.length ? parsed : null;\n }\n return this.parseValue(value);\n }\n\n // --- Display ---------------------------------------------------------\n\n /** @ignore */\n private formatDate(date: Date): string {\n const custom = this.dateFormat();\n if (custom) return custom(date);\n // Typeable trigger → numeric format that round-trips with the default parser.\n if (this.allowInput()) {\n const opts: Intl.DateTimeFormatOptions = {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n };\n if (this.showTime()) {\n opts.hour = '2-digit';\n opts.minute = '2-digit';\n }\n return new Intl.DateTimeFormat(this.resolvedLocale(), opts).format(date);\n }\n const options: Intl.DateTimeFormatOptions = this.showTime()\n ? { dateStyle: 'medium', timeStyle: 'short' }\n : { dateStyle: 'medium' };\n return new Intl.DateTimeFormat(this.resolvedLocale(), options).format(date);\n }\n\n /** @ignore `timeOnly` display — respects `hourFormat` (never the locale's own AM/PM-vs-24h\n * default) and `dateFormat` when provided (symmetric with `formatDate`/`formatMonth`, used\n * here as a time formatter). */\n private formatTime(date: Date): string {\n const custom = this.dateFormat();\n if (custom) return custom(date);\n return new Intl.DateTimeFormat(this.resolvedLocale(), {\n hour: '2-digit',\n minute: '2-digit',\n hour12: this.hourFormat() === '12',\n }).format(date);\n }\n\n /** @ignore Month-view display (numeric + round-trippable when the trigger is typeable). */\n private formatMonth(date: Date): string {\n if (this.allowInput() && !this.dateFormat()) {\n const yearFirst = this.dateFieldOrder().filter((f) => f !== 'day')[0] === 'year';\n const mm = this.pad(date.getMonth() + 1);\n const yyyy = String(date.getFullYear());\n return yearFirst ? `${yyyy}/${mm}` : `${mm}/${yyyy}`;\n }\n return this.capitalize(\n new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' }).format(\n date,\n ),\n );\n }\n\n /** @ignore Value rendered in the trigger. */\n protected override readonly displayValue = computed(() => {\n // While editing, mirror the raw text so the input keeps what the user types.\n const typed = this.typedValue();\n if (typed !== null) return typed;\n\n const dates = this.selectedDates();\n if (!dates.length) return '';\n const base = this.view();\n if (base === 'month') return this.formatMonth(dates[0]);\n if (base === 'year') return String(dates[0].getFullYear());\n\n if (this.timeOnly()) {\n return this.formatTime(dates[0]);\n }\n const mode = this.selectionMode();\n if (mode === 'multiple') return dates.map((d) => this.formatDate(d)).join(MULTIPLE_SEPARATOR);\n if (mode === 'range') return dates.map((d) => this.formatDate(d)).join(RANGE_DISPLAY_SEPARATOR);\n return this.formatDate(dates[0]);\n });\n\n // --- Header ----------------------------------------------------------\n\n /** @ignore Displayed decade start (year view). */\n private readonly decadeStart = computed(\n () => Math.floor(this.viewDate().getFullYear() / 10) * 10,\n );\n\n /** @ignore Header label depends on the active view. */\n protected readonly headerLabel = computed(() => {\n const v = this.currentView();\n if (v === 'year') return `${this.decadeStart()} - ${this.decadeStart() + 9}`;\n if (v === 'month') return String(this.viewDate().getFullYear());\n return this.capitalize(\n new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' }).format(\n this.viewDate(),\n ),\n );\n });\n\n // --- Weekday headers -------------------------------------------------\n\n /** @ignore Short (visible) + full (aria-label) weekday names — without both, either the header\n * stays `aria-hidden` or the short text alone leaves screen-reader users without column names. */\n protected readonly weekDayNames = computed<{ short: string; full: string }[]>(() => {\n const shortFmt = new Intl.DateTimeFormat(this.resolvedLocale(), { weekday: 'short' });\n const longFmt = new Intl.DateTimeFormat(this.resolvedLocale(), { weekday: 'long' });\n const sunday = new Date(2023, 0, 1); // getDay() === 0\n const first = this.firstDayOfWeek();\n return Array.from({ length: 7 }, (_, k) => {\n const d = addDays(sunday, (first + k) % 7);\n return {\n short: this.capitalize(shortFmt.format(d)),\n full: this.capitalize(longFmt.format(d)),\n };\n });\n });\n /** @ignore Full-date `aria-label` formatter for day gridcells (e.g. \"8 juillet 2026\"). */\n private readonly dayAriaFormatter = computed(\n () =>\n new Intl.DateTimeFormat(this.resolvedLocale(), {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n }),\n );\n\n // --- Grids -----------------------------------------------------------\n\n /** @ignore Month panels (1 or more) for the date view. */\n protected readonly monthPanels = computed<DatepickerMonthPanel[]>(() => {\n const count = Math.max(1, this.numberOfMonths());\n const start = firstOfMonth(this.viewDate());\n const fmt = new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' });\n return Array.from({ length: count }, (_, i) => {\n const monthDate = addMonths(start, i);\n return {\n monthDate,\n label: this.capitalize(fmt.format(monthDate)),\n weeks: this.buildMonthWeeks(monthDate),\n showPrev: i === 0,\n showNext: i === count - 1,\n };\n });\n });\n\n /** @ignore Month-picker grid (12 months of the displayed year). */\n protected readonly months = computed<DatepickerMonthCell[]>(() => {\n const fmt = new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'short' });\n const year = this.viewDate().getFullYear();\n const sel = this.selectedDates();\n return Array.from({ length: 12 }, (_, i) => ({\n index: i,\n label: this.capitalize(fmt.format(new Date(year, i, 1))),\n selected: sel.some((d) => d.getFullYear() === year && d.getMonth() === i),\n disabled: this.isMonthDisabled(year, i),\n }));\n });\n\n /** @ignore Year-picker grid (the displayed decade). */\n protected readonly years = computed<DatepickerYearCell[]>(() => {\n const start = this.decadeStart();\n const sel = this.selectedDates();\n return Array.from({ length: 10 }, (_, i) => {\n const year = start + i;\n return {\n year,\n selected: sel.some((d) => d.getFullYear() === year),\n disabled: this.isYearDisabled(year),\n };\n });\n });\n\n /** @ignore Month/year cells chunked into the rows the CSS actually renders (3 and 2 columns,\n * see `.ui-datepicker-picker._month` / `._year`). A `role=\"grid\"` requires its `gridcell`s to\n * sit inside a `role=\"row\"`; without it the whole grid is invalid ARIA and screen readers get\n * no row structure to walk. Keep the chunk sizes in step with the SCSS column counts. */\n protected readonly monthRows = computed<DatepickerMonthCell[][]>(() => chunk(this.months(), 3));\n /** @ignore Year-picker rows — 2 columns, see `.ui-datepicker-picker._year`. */\n protected readonly yearRows = computed<DatepickerYearCell[][]>(() => chunk(this.years(), 2));\n\n /** @ignore Hours as shown in the 12h stepper (1–12). */\n protected readonly displayHours = computed(() => {\n if (this.hourFormat() === '24') return this.hours();\n const h = this.hours() % 12;\n return h === 0 ? 12 : h;\n });\n /** @ignore */\n protected readonly meridiem = computed<'AM' | 'PM'>(() => (this.hours() < 12 ? 'AM' : 'PM'));\n\n constructor() {\n super();\n\n // Never carry an open panel over to the next page (the field can live in\n // an app shell that survives the navigation).\n closeOnNavigation(() => this.close(false));\n\n // `showOnFocus`: open on a user-initiated focus of the trigger. Driven straight off the\n // FocusMonitor stream rather than the field's own `(focus)`, the origin has to be known\n // before deciding, and this way there is no listener-ordering question to get wrong.\n effect((onCleanup) => {\n const el = this.triggerInput()?.nativeInputElement();\n if (!el) return;\n const sub = this.focusMonitor.monitor(el).subscribe((origin) => {\n // `null` = blur. `'program'` = not a user gesture. And `suppressFocusOpen` covers the\n // focus WE give back on close, which the monitor still attributes to whatever gesture\n // triggered that close ('keyboard' for Escape, 'mouse' for a day click).\n if (!origin || origin === 'program' || this.suppressFocusOpen) return;\n if (this.showOnFocus()) this.openFrom('focus');\n });\n onCleanup(() => {\n sub.unsubscribe();\n this.focusMonitor.stopMonitoring(el);\n });\n });\n\n // A press is dismissive only from where it STARTED. Released elsewhere, the browser\n // dispatches the click on the common ancestor of both targets, which the overlay reports as\n // an outside click: pressing in the field, with the panel opening under the cursor, would\n // close it again on release. Listening for the whole lifetime and not just while open is\n // what makes that very press catchable, since it precedes the opening.\n effect((onCleanup) => {\n if (this.inline()) return;\n const record = (event: Event) => (this.pressOrigin = event.target as Node | null);\n this.doc.addEventListener('pointerdown', record, true);\n onCleanup(() => {\n this.doc.removeEventListener('pointerdown', record, true);\n this.pressOrigin = null;\n });\n });\n\n // Keep time signals in sync with the (first) value.\n effect(() => {\n const first = this.firstSelectedFrom(this.internalValue() ?? null);\n untracked(() => {\n if (first) {\n this.hours.set(first.getHours());\n this.minutes.set(first.getMinutes());\n }\n });\n });\n }\n\n override writeValue(value: DatepickerValue): void {\n this.typedValue.set(null);\n this.hoursDraft.set(null);\n this.minutesDraft.set(null);\n const internal = this.toInternalValue(value ?? null);\n this.internalValue.set(internal);\n this.modelValue.set(value ?? undefined);\n const first = this.firstSelectedFrom(internal);\n if (first) {\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n this.focusedMonthIndex.set(first.getMonth());\n this.focusedYear.set(first.getFullYear());\n }\n }\n\n // --- Panel open/close ------------------------------------------------\n\n /**\n * @param viaIcon Whether this open was specifically triggered by the calendar icon (vs.\n * clicking the field itself, or a keyboard shortcut) — see the rove-into-grid comment below.\n */\n open(viaIcon = false): void {\n this.openFrom(viaIcon ? 'icon' : 'field');\n }\n\n /** @ignore Real implementation of {@link open}, keyed on the full {@link DatepickerOpenOrigin}\n * (the public `open()` only ever expresses two of the three). */\n private openFrom(origin: DatepickerOpenOrigin): void {\n if (this.inline() || this.isDisabled() || this.readonly() || this.panelOpen()) return;\n const base = this.firstSelectedFrom(this.internalValue() ?? null) ?? startOfDay(new Date());\n this.viewDate.set(firstOfMonth(base));\n this.currentView.set(this.view());\n this.focusedDate.set(this.clampToRange(startOfDay(base)));\n this.focusedMonthIndex.set(base.getMonth());\n this.focusedYear.set(base.getFullYear());\n this.overlayOrigin.set(this.resolveOverlayOrigin());\n // Before `panelOpen`: the overlay reads `hasBackdrop` when it attaches, not after.\n // `showOnFocus` makes the panel a popup whichever way it was opened, so the field never\n // gets two different behaviours depending on how it got there.\n this.nonModal.set(origin === 'focus' || this.showOnFocus());\n this.panelOpen.set(true);\n this.opened.emit();\n // Keep focus in the input whenever it's typeable; only rove into the grid when it isn't\n // (`triggerReadonly`) or when opened via the icon specifically (`viaIcon` — \"I want the\n // grid\"). Used to key off `selectionMode() !== 'single'` instead, which broke once `range`\n // got its own live mask: back then the field's own click ALSO called `open()` (now gated,\n // see `onTriggerClick`), so roving on every non-`single` mode stole focus back out of the\n // field the moment you clicked it to type.\n // Never on `'focus'`: moving the focus as a *consequence* of focusing the field is a WCAG\n // 3.2.1 change of context. `↓` is how the user asks for the grid there.\n if (\n origin !== 'focus' &&\n this.showCalendar() &&\n (this.triggerReadonly() || origin === 'icon')\n ) {\n if (this.currentView() === 'date') this.queueDayFocus();\n else if (this.currentView() === 'month') this.queueMonthFocus();\n else this.queueYearFocus();\n }\n }\n\n close(focusTrigger = true): void {\n if (!this.panelOpen()) return;\n this.panelOpen.set(false);\n this.emitTouch();\n this.closed.emit();\n if (focusTrigger) {\n // Guard the whole (synchronous) focus dispatch: with `showOnFocus` the returning focus\n // would otherwise re-open the panel we are closing, on Escape and on every selection.\n this.suppressFocusOpen = true;\n this.triggerInput()?.focus();\n this.suppressFocusOpen = false;\n }\n }\n\n /** @ignore */\n protected toggle(viaIcon = false): void {\n this.panelOpen() ? this.close() : this.open(viaIcon);\n }\n\n /** @ignore Right action: clear when clearable + set, otherwise toggle the panel (via the icon —\n * see `open`'s `viaIcon`). `stopPropagation` keeps the click from bubbling to the field (which\n * would otherwise also call `open()`, without `viaIcon`, right behind this one). */\n protected onIconClick(event: MouseEvent): void {\n event.stopPropagation();\n if (this.showClearButton()) this.clear();\n else this.toggle(true);\n }\n\n /**\n * @ignore Whether a click on the trigger opens the panel. It does when the field isn't\n * typeable (`triggerReadonly`: the field then *is* the button), and when `showIcon` is off\n * (no calendar toggle left — without this, nothing would open the panel with a mouse).\n *\n * On a typeable field it does NOT (FSHSP-180). The panel is an overlay with a permanent\n * backdrop, so an open panel swallows every further click on the field: the first click\n * placed the caret, the next one lost focus without moving it — correcting a single segment\n * with the mouse was impossible. Opening also live-commits the typed text through\n * `previewTyped`, which disarms the auto-\"/\" mask mid-entry (see `typingSlots`). The icon,\n * `↓` and typing are unaffected.\n */\n private readonly openOnTriggerClick = computed(\n () => this.triggerReadonly() || !this.showIcon() || this.showOnFocus(),\n );\n\n /** @ignore Click anywhere on the trigger (label, field or format hint — they share the wrapper). */\n protected onTriggerClick(): void {\n if (!this.openOnTriggerClick()) return;\n // The click may have landed on the label or the format hint, leaving focus outside the\n // wrapper — `Escape`/`↓` are bound there, so they'd be dead while the panel is open. A click\n // on the field itself is already focused by then, so this never moves the caret.\n if (!this.triggerReadonly()) this.triggerInput()?.focus();\n // Same origin as the focus that (usually) just opened it, so a click never upgrades a\n // non-modal panel into a modal one mid-interaction.\n this.openFrom('field');\n }\n\n /** @ignore Keys typed anywhere in the trigger wrapper. */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n // The overlay sits after the trigger in the DOM, so an open panel would capture the\n // tabulation. Closing it late is worse: the focus lands in a panel that detaches under it,\n // hence the synchronous refresh. The grid is entered with `↓`, per the APG combobox pattern.\n if (\n event.key === 'Tab' &&\n this.nonModal() &&\n this.panelOpen() &&\n this.tabLeavesTrigger(event)\n ) {\n this.close(false);\n this.cdr.detectChanges();\n return;\n }\n // The wrapper also catches keys pressed on the trigger's own action button. It is a native\n // `<button>`: `Enter` and `Space` must reach it. Only `Escape` stays ours.\n const inputEl = this.triggerInput()?.nativeInputElement();\n if (inputEl && event.target !== inputEl) {\n this.handleEscape(event);\n return;\n }\n // `Alt+↑` closes from either flavour of trigger.\n if (event.key === 'ArrowUp' && event.altKey) {\n event.preventDefault();\n this.close();\n return;\n }\n // Typeable trigger: let printable keys through, only intercept nav/commit.\n if (!this.triggerReadonly()) {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open();\n this.queueDayFocus();\n } else if (event.key === 'Enter') {\n event.preventDefault();\n this.commitTyped();\n if (this.panelOpen() && this.closeOnSelect() && !this.showTime()) this.close(false);\n } else {\n this.handleEscape(event);\n }\n return;\n }\n if (event.key === 'ArrowDown' || event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.open();\n } else {\n this.handleEscape(event);\n }\n }\n\n /** @ignore `Escape` is consumed only when it really closes the panel. A closed one lets it\n * bubble, so a parent dialog stays reachable by the same key. */\n private handleEscape(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.panelOpen()) return;\n event.preventDefault();\n event.stopPropagation();\n this.close();\n }\n\n /**\n * @ignore Track the raw text as the user types; live-preview the open panel. When a typing\n * mask applies (see `typingSlots`), auto-insert \"/\" as soon as a segment is complete (same\n * pattern as a card-expiry field) and reposition the caret accordingly.\n */\n protected onTriggerInput(value: string): void {\n if (this.triggerReadonly()) return;\n const slots = this.typingSlots();\n if (!slots) {\n this.typedValue.set(value);\n // The mask is off because a value already exists, or an in-place edit suspended it (see\n // `typingSlots`) — but the field was just emptied by hand, with no blur/Enter to go through\n // `commitTyped`'s own clear. Commit it right here instead of waiting for a commit that may\n // never come: `hasValue()` flips to `false` for real and the suspension lifts, so\n // `typingSlots()` re-arms the mask on the very next keystroke, for whatever fresh date\n // comes next (FSHSP-118).\n if (!value.trim()) {\n this.maskSuspended.set(false);\n if (this.hasValue()) this.clear();\n }\n if (this.panelOpen()) this.previewTyped();\n return;\n }\n const el = this.triggerInput()?.nativeInputElement();\n const caret = el?.selectionStart ?? value.length;\n // Number of data characters located BEFORE the caret (stable anchor, same trick as ui-input-mask).\n const dataBeforeCaret = extractMaskData(value.slice(0, caret)).length;\n const newData = extractMaskData(value);\n // Editing INSIDE the text (data still sits after the caret) rather than appending at its\n // tail: the mask can only re-derive the whole field from one flat digit stream, so re-running\n // it here re-slices every following segment by however much this edit grew or shrank —\n // replacing the month \"07\" with a single \"1\" turned \"08/07/2026\" into \"08/12/026\", the year\n // silently losing a digit (FSHSP-179). Give the mask up for the rest of the entry instead —\n // exactly what `allowInput` already promises once a value exists: plain text, parsed on\n // blur/Enter. For the rest of the entry, not just this keystroke: the digits still to come\n // belong to the segment being fixed, and re-arming under the caret would shift them again.\n if (dataBeforeCaret < newData.length) {\n this.maskSuspended.set(true);\n this.typedValue.set(value);\n if (this.panelOpen()) this.previewTyped();\n return;\n }\n // A deletion (Backspace/Delete/selection-clear) leaves only ALREADY-valid digits behind —\n // re-running the bounds check against them (meant to reject a just-typed invalid leading\n // digit, e.g. \"8\" can't start a 1-31 day) can instead skip a still-valid residual one and\n // misalign every segment after it (FSHSP-118: only the year, which carries no bound, always\n // survived editing untouched). Comparing data lengths (not `event.inputType`, unavailable\n // here) distinguishes typing/pasting (grows or holds, still bounds-checked) from deleting\n // (shrinks, bounds-checked only up to the final blur/Enter parse — see `finalizeParsed`).\n // Baseline is `displayValue()` (what's actually shown before this edit — typed text OR a\n // calendar-committed date, `typedValue` alone would miss the latter), read before any\n // signal write below still reflects the state.\n const enforceBounds = newData.length >= extractMaskData(this.displayValue()).length;\n const { text, tokenIndices, dataEnd } = autoFormatSegments(slots, newData, { enforceBounds });\n this.typedValue.set(text);\n if (el) {\n el.value = text;\n // A deletion (!enforceBounds) whose caret sat at/past all remaining data (editing at the\n // tail, by far the common case — see `enforceBounds` above) always lands on `dataEnd`,\n // never on `caretForMask`'s result: that function answers \"where's the next slot to type\n // INTO\", which for a just-emptied segment is the position right after its\n // eagerly-auto-inserted trailing separator — landing there makes the very next Backspace\n // delete that decorative separator (silently re-inserted next render) instead of the\n // segment's last digit, so deleting looks stuck one keystroke short forever (FSHSP-118).\n // A mid-string deletion (more data still sits after the caret) falls back to the normal\n // computation unchanged — still an approximation (see the class doc), just not this trap.\n const atTail = dataBeforeCaret >= newData.length;\n const pos =\n !enforceBounds && atTail ? dataEnd : caretForMask(tokenIndices, dataBeforeCaret, dataEnd);\n el.setSelectionRange(pos, pos);\n }\n if (this.panelOpen()) this.previewTyped();\n }\n\n /** @ignore Whether `text` already has its time portion too, when `showTime` requires one.\n * `previewTyped` needs this: without it, `hasValue()` (and the mask) flipped off the moment\n * day/month/year were typed, before a single time digit — the next digit then glued onto the\n * year with no mask to insert \"HH:MM\" (FSHSP-118). `commitTyped` doesn't use this: a date typed\n * and blurred without a time is still a legitimate commit (time defaults to the steppers). */\n private hasCompleteTimeIfNeeded(text: string): boolean {\n if (!this.showTime() || this.view() !== 'date') return true;\n const groups = text.match(/\\d+/g) ?? [];\n return groups.length >= this.activeFields().length + 2;\n }\n\n /**\n * @ignore Reflect a fully-typed date (or `range`/`multiple` set) in the open panel\n * (navigate + highlight) without reformatting the field, so the caret stays put while typing.\n */\n private previewTyped(): void {\n const raw = this.typedValue();\n if (raw === null || !raw.trim()) return;\n if (this.selectionMode() === 'single' && !this.hasCompleteTimeIfNeeded(raw.trim())) return;\n const picked = this.parseTypedValue(raw.trim(), true);\n if (!picked) return;\n const first = Array.isArray(picked) ? picked[0] : picked;\n // Update the model (drives the selected-day highlight + live value) but keep\n // `typedValue` so `displayValue` still returns the raw text (no caret jump).\n this.internalValue.set(picked);\n const external = this.toExternalValue(picked);\n this.modelValue.set(external ?? undefined);\n this.emitChange(external);\n this.valueChange.emit(external);\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n }\n\n /** @ignore Parse the typed text on blur, then forward the blur. */\n protected onTriggerBlur(event: FocusEvent): void {\n this.commitTyped();\n const next = event.relatedTarget as Node | null;\n if (!this.panelContains(next)) this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /**\n * @ignore Focus leaving the trigger altogether. A non-modal panel has neither backdrop nor\n * focus trap, so tabbing on to the next field is a dismissal that nothing else would perform\n */\n protected onTriggerFocusOut(event: FocusEvent): void {\n if (!this.nonModal() || !this.panelOpen()) return;\n const next = event.relatedTarget as Node | null;\n if (this.panelContains(next) || this.triggerContains(next)) return;\n this.close(false);\n }\n\n /** @ignore Focus leaving a non-modal panel altogether (`Tab` out of the grid) — same\n * dismissal as {@link onTriggerBlur}, from the other side. */\n protected onPanelFocusOut(event: FocusEvent): void {\n if (this.inline() || !this.nonModal() || !this.panelOpen()) return;\n const next = event.relatedTarget as Node | null;\n if (!next) return;\n if (this.panelContains(next) || this.triggerContains(next)) return;\n this.close(false);\n }\n\n /** @ignore Pointer landing outside the overlay. A non-modal panel leaves the trigger live\n * underneath, and a press there must place the caret, not dismiss the panel it would then\n * immediately re-open. */\n protected onOutsideClick(event: MouseEvent): void {\n const origin = this.pressOrigin ?? (event.target as Node | null);\n if (this.triggerContains(origin) || this.panelContains(origin)) return;\n this.close(false);\n }\n\n /** @ignore Whether this `Tab` walks out of the trigger, rather than between the field and its\n * own action button (at most two stops, so an exact list beats any heuristic). */\n private tabLeavesTrigger(event: KeyboardEvent): boolean {\n const wrapper = this.triggerWrapperEl()?.nativeElement;\n if (!wrapper) return true;\n const stops = Array.from(\n wrapper.querySelectorAll<HTMLElement>('input:not([disabled]), button:not([disabled])'),\n ).filter((el) => el.tabIndex >= 0);\n const index = stops.indexOf(event.target as HTMLElement);\n if (index === -1) return true;\n return event.shiftKey ? index === 0 : index === stops.length - 1;\n }\n\n /** @ignore Pressing the panel's own chrome must not pull the focus out of the field: a\n * non-modal panel would be dismissed by its own focusout. Its controls keep the default. */\n protected onPanelMousedown(event: MouseEvent): void {\n if (!this.nonModal()) return;\n if ((event.target as HTMLElement | null)?.closest('button, input')) return;\n event.preventDefault();\n }\n\n /** @ignore */\n private panelContains(node: Node | null): boolean {\n return !!node && !!this.panelEl()?.nativeElement.contains(node);\n }\n\n /** @ignore */\n private triggerContains(node: Node | null): boolean {\n return !!node && !!this.triggerWrapperEl()?.nativeElement.contains(node);\n }\n\n /** @ignore Parse and apply the typed text (single date, or `range`/`multiple` set — see\n * `parseTypedValue`); revert to the previous value if invalid. */\n protected commitTyped(): void {\n if (this.triggerReadonly()) return;\n const raw = this.typedValue();\n if (raw === null) return; // untouched\n // Parsed, cleared or reverted, this commit ends the current entry: re-arm the live mask for\n // the next one (`commit` does it too, for the paths that go through it).\n this.maskSuspended.set(false);\n const text = raw.trim();\n if (!text) {\n this.typedValue.set(null);\n if (this.hasValue()) this.clear();\n return;\n }\n const picked = this.parseTypedValue(text, true);\n if (picked) {\n this.commit(picked); // clears typedValue and reformats\n const first = Array.isArray(picked) ? picked[0] : picked;\n // `dateSelect` reports \"which single day was just picked\" — no such thing for a typed\n // range/list committed all at once, so it's single-mode only (matches its `Date | string`\n // output type, which couldn't carry an array anyway).\n if (!Array.isArray(picked)) this.dateSelect.emit(this.serializeValue(picked));\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n } else {\n this.typedValue.set(null); // revert: displayValue reformats the current value\n }\n }\n\n /**\n * @ignore Custom parser when provided, otherwise the locale-aware numeric parser.\n * `requireComplete` gates the default parser to fully-typed dates (custom\n * parsers decide completeness themselves).\n */\n private parseTyped(text: string, requireComplete = false): Date | null {\n const custom = this.parseDate();\n return custom ? custom(text) : this.defaultParse(text, requireComplete);\n }\n\n /**\n * @ignore Parses typed text into whatever shape the current `selectionMode` commits: a single\n * `Date` for `single`, a `Date[]` for `range`/`multiple` (see `parseTypedMulti`). `null` means\n * \"not a complete, enabled value for this mode\" — the caller reverts.\n */\n private parseTypedValue(text: string, requireComplete: boolean): Date | Date[] | null {\n if (this.selectionMode() === 'single') {\n const parsed = this.parseTyped(text, requireComplete);\n return parsed && !this.isParsedDisabled(parsed) ? parsed : null;\n }\n return this.parseTypedMulti(text, requireComplete);\n }\n\n /** @ignore `range`/`multiple` typed entry (FSHSP-118): splits via `splitTypedSegments`, parses\n * each part with `parseTyped` (a custom `parseDate` applies per part, like `dateFormat` does\n * per date on display). `range` needs exactly 2 parts, reordered chronologically; `multiple`\n * takes any count, deduped. One bad/disabled part fails the whole thing. Always `startOfDay` —\n * no `showTime` support here. */\n private parseTypedMulti(text: string, requireComplete: boolean): Date[] | null {\n const mode = this.selectionMode();\n const sep = mode === 'range' ? RANGE_SEPARATOR : MULTIPLE_SEPARATOR;\n const parts = this.splitTypedSegments(text, sep);\n if (mode === 'range' && parts.length !== 2) return null;\n if (mode === 'multiple' && parts.length < 1) return null;\n const parsed = parts.map((p) => this.parseTyped(p, requireComplete));\n if (parsed.some((d) => d === null || this.isParsedDisabled(d))) return null;\n const dates = (parsed as Date[]).map(startOfDay);\n if (mode === 'range') return dates.sort((a, b) => a.getTime() - b.getTime());\n return dates.filter((d, i) => dates.findIndex((o) => isSameDay(o, d)) === i);\n }\n\n /** @ignore Splits typed `range`/`multiple` text into per-date segments (FSHSP-118). A plain\n * `text.split(sep)` breaks when a date's own formatted text contains `sep` (e.g. a `\", \"`\n * `dateFormat` in `multiple`, or an ISO dash in `range`) — instead, a `sep` occurrence is only\n * accepted as a boundary once the text before it already parses as a complete date. */\n private splitTypedSegments(text: string, sep: string): string[] {\n const segments: string[] = [];\n let rest = text.trim();\n while (rest.length) {\n let boundary = -1;\n let searchFrom = 0;\n for (;;) {\n const idx = rest.indexOf(sep, searchFrom);\n if (idx === -1) break;\n if (this.parseTyped(rest.slice(0, idx), true)) {\n boundary = idx;\n break;\n }\n searchFrom = idx + 1;\n }\n if (boundary === -1) {\n segments.push(rest.trim());\n break;\n }\n segments.push(rest.slice(0, boundary).trim());\n rest = rest.slice(boundary + sep.length).trim();\n }\n return segments.filter((s) => s.length > 0);\n }\n\n /**\n * @ignore Locale-aware numeric parser (day/month/year order from `dateFieldOrder`).\n * With `requireComplete`, returns `null` unless every component is present\n * (and the year has 2 or ≥4 digits) — used for live preview to avoid jumps.\n */\n private defaultParse(text: string, requireComplete = false): Date | null {\n const groups = text.match(/\\d+/g) ?? [];\n const nums = groups.map(Number);\n if (!nums.length) return null;\n const view = this.view();\n if (view === 'year') {\n if (requireComplete && (groups[0]?.length ?? 0) < 4) return null;\n return finalizeParsed(this.normalizeYear(nums[0]), 0, 1, 0, 0);\n }\n\n const fields = this.activeFields();\n if (requireComplete) {\n if (groups.length < fields.length) return null;\n const yearLen = groups[fields.indexOf('year')]?.length ?? 0;\n if (yearLen !== 2 && yearLen < 4) return null;\n }\n let day = 1;\n let month = 0;\n let year = this.viewDate().getFullYear();\n fields.forEach((field, i) => {\n const n = nums[i];\n if (n === undefined) return;\n if (field === 'day') day = n;\n else if (field === 'month') month = n - 1;\n else year = this.normalizeYear(n);\n });\n\n let h = this.hours();\n let min = this.minutes();\n if (this.showTime() && view === 'date') {\n const t = nums.slice(fields.length);\n if (t.length >= 1) h = t[0];\n if (t.length >= 2) min = t[1];\n if (this.hourFormat() === '12') {\n if (/p/i.test(text) && h < 12) h += 12;\n if (/a/i.test(text) && h === 12) h = 0;\n }\n }\n return finalizeParsed(year, month, view === 'month' ? 1 : day, h, min);\n }\n\n /** @ignore 2-digit years → 2000s. */\n private normalizeYear(y: number): number {\n return y < 100 ? 2000 + y : y;\n }\n\n /** @ignore Range/disabled check for a parsed value, granular to the base view. */\n private isParsedDisabled(date: Date): boolean {\n const v = this.view();\n if (v === 'year') return this.isYearDisabled(date.getFullYear());\n if (v === 'month') return this.isMonthDisabled(date.getFullYear(), date.getMonth());\n return this.isDateDisabled(startOfDay(date));\n }\n\n // --- Header interactions --------------------------------------------\n\n /** @ignore Click the header title → drill up (date → month → year). Single-month only. */\n protected onHeaderClick(): void {\n if (!this.singleMonth()) return;\n const v = this.currentView();\n if (v === 'date') {\n this.focusedMonthIndex.set(this.viewDate().getMonth());\n this.currentView.set('month');\n } else if (v === 'month') {\n this.focusedYear.set(this.viewDate().getFullYear());\n this.currentView.set('year');\n // Last level up: the title turns `disabled` here, so the focus it was holding is about to\n // be dropped on `<body>` and the grid that just appeared would answer no arrow key. Hand\n // it to the roving year cell, as the drill-down transitions do.\n this.queueYearFocus();\n }\n }\n\n /** @ignore Prev/next arrow — steps month / year / decade depending on the view. */\n protected onPrev(): void {\n this.step(-1);\n }\n protected onNext(): void {\n this.step(1);\n }\n /** @ignore */\n private step(dir: 1 | -1): void {\n const v = this.currentView();\n if (v === 'date') this.changeMonth(dir);\n else if (v === 'month')\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir, this.viewDate().getMonth(), 1),\n );\n else\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir * 10, this.viewDate().getMonth(), 1),\n );\n }\n /** @ignore */\n protected changeMonth(delta: number): void {\n const next = addMonths(this.viewDate(), delta);\n this.viewDate.set(next);\n this.monthChange.emit({ month: next.getMonth(), year: next.getFullYear() });\n }\n\n // --- Selection -------------------------------------------------------\n\n /** @ignore Pick a day from the grid. */\n protected selectDay(cell: DatepickerDay): void {\n if (cell.disabled || this.isDisabled() || this.readonly()) return;\n const picked = new Date(cell.date);\n if (this.showTime()) picked.setHours(this.hours(), this.minutes(), 0, 0);\n\n const mode = this.selectionMode();\n let value: DatepickerDateValue;\n let complete = true;\n if (mode === 'multiple') {\n const arr = [...this.selectedDates()];\n const idx = arr.findIndex((d) => isSameDay(d, picked));\n if (idx >= 0) arr.splice(idx, 1);\n else arr.push(picked);\n value = arr;\n complete = false; // multiple never auto-closes\n } else if (mode === 'range') {\n const arr = this.selectedDates();\n if (arr.length !== 1) {\n value = [picked];\n complete = false;\n } else {\n value = picked < startOfDay(arr[0]) ? [picked] : [arr[0], picked];\n complete = Array.isArray(value) && value.length === 2;\n }\n } else {\n value = picked;\n }\n\n this.commit(value);\n this.dateSelect.emit(this.serializeValue(picked));\n this.viewDate.set(firstOfMonth(picked));\n this.focusedDate.set(startOfDay(picked));\n if (this.closeOnSelect() && !this.showTime() && !this.inline() && complete) this.close();\n }\n\n /** @ignore Month-picker / drill-down month selection. */\n protected selectMonth(cell: DatepickerMonthCell): void {\n if (cell.disabled) return;\n const d = new Date(this.viewDate().getFullYear(), cell.index, 1);\n this.viewDate.set(d);\n if (this.view() === 'month') {\n this.commit(d);\n this.dateSelect.emit(this.serializeValue(d));\n if (this.closeOnSelect() && !this.showTime() && !this.inline()) this.close();\n } else {\n this.currentView.set('date');\n this.focusedDate.set(this.clampToRange(startOfDay(d)));\n this.queueDayFocus();\n }\n }\n\n /** @ignore Year-picker / drill-down year selection. */\n protected selectYear(cell: DatepickerYearCell): void {\n if (cell.disabled) return;\n const d = new Date(cell.year, this.view() === 'year' ? 0 : this.viewDate().getMonth(), 1);\n this.viewDate.set(d);\n if (this.view() === 'year') {\n this.commit(d);\n this.dateSelect.emit(this.serializeValue(d));\n if (this.closeOnSelect() && !this.showTime() && !this.inline()) this.close();\n } else {\n this.currentView.set('month');\n this.focusedMonthIndex.set(d.getMonth());\n this.queueMonthFocus();\n }\n }\n\n /** @ignore Apply the time signals to the value (single selection only). */\n protected applyTime(): void {\n if (this.selectionMode() !== 'single') return;\n const base =\n this.firstSelectedFrom(this.internalValue() ?? null) ??\n startOfDay(this.timeOnly() ? new Date() : this.viewDate());\n const next = new Date(base);\n next.setHours(this.hours(), this.minutes(), 0, 0);\n this.commit(next);\n }\n\n /** @ignore Zero-padded labels for the steppers. */\n protected readonly hoursLabel = computed(() =>\n this.pad(this.hourFormat() === '12' ? this.displayHours() : this.hours()),\n );\n protected readonly minutesLabel = computed(() => this.pad(this.minutes()));\n\n /** @ignore Raw digits while a time field is being typed in; `null` when not editing. */\n private readonly hoursDraft = signal<string | null>(null);\n private readonly minutesDraft = signal<string | null>(null);\n /** @ignore Text rendered in a time field: the draft while typing, the padded label otherwise. */\n protected readonly hoursValue = computed(() => this.hoursDraft() ?? this.hoursLabel());\n protected readonly minutesValue = computed(() => this.minutesDraft() ?? this.minutesLabel());\n /** @ignore Accepted hours range (the 12h clock shows 1–12). */\n protected readonly hourBounds = computed(() =>\n this.hourFormat() === '12' ? { min: 1, max: 12 } : { min: 0, max: 23 },\n );\n /** @ignore The hours/minutes fields accept typing. */\n protected readonly timeEditable = computed(\n () => this.editableTime() && !this.isDisabled() && !this.readonly(),\n );\n /** @ignore The time steppers (chevrons + AM/PM toggle) accept interaction — unlike\n * `timeEditable`, not gated on `editableTime` (the steppers stay usable in\n * `StepperOnlyTime`-style configs; only `disabled`/`readonly` freeze them). */\n protected readonly timeControlsEnabled = computed(() => !this.isDisabled() && !this.readonly());\n\n /** @ignore Step hours (wraps 0↔23; also flips meridiem across the 12h boundary). */\n protected stepHours(dir: 1 | -1): void {\n if (!this.timeControlsEnabled()) return;\n this.hoursDraft.set(null);\n this.hours.set((((this.hours() + dir) % 24) + 24) % 24);\n this.applyTime();\n }\n /** @ignore Step minutes by `stepMinute` (wraps 0↔59). */\n protected stepMinutes(dir: 1 | -1): void {\n if (!this.timeControlsEnabled()) return;\n this.minutesDraft.set(null);\n const step = Math.max(1, this.stepMinute());\n this.minutes.set((((this.minutes() + dir * step) % 60) + 60) % 60);\n this.applyTime();\n }\n /** @ignore */\n protected toggleMeridiem(): void {\n if (!this.timeControlsEnabled()) return;\n this.hoursDraft.set(null);\n this.hours.set((this.hours() + 12) % 24);\n this.applyTime();\n }\n\n /**\n * @ignore Typing in the hours field. The digits are held as a draft (so `0` can\n * be the start of `09`) and committed as soon as they form a valid hour.\n */\n protected onHoursInput(event: Event): void {\n if (!this.timeEditable()) return; // read-only fields never emit natively — belt and braces\n const { min, max } = this.hourBounds();\n const digits = this.acceptTimeDigits(event, this.hoursValue(), max);\n if (digits === null) return;\n this.hoursDraft.set(digits);\n const n = Number(digits);\n if (!digits || n < min || n > max) return; // not an hour yet (e.g. `0` on a 12h clock)\n this.hours.set(this.hourFormat() === '12' ? this.to24(n) : n);\n this.applyTime();\n }\n\n /** @ignore Typing in the minutes field — exact value (`stepMinute` only drives the steppers). */\n protected onMinutesInput(event: Event): void {\n if (!this.timeEditable()) return;\n const digits = this.acceptTimeDigits(event, this.minutesValue(), 59);\n if (digits === null || !digits) return;\n this.minutesDraft.set(digits);\n this.minutes.set(Number(digits));\n this.applyTime();\n }\n\n /**\n * @ignore Keep a time field to at most 2 digits and reject what can never be in\n * range (`33`, or `13` on a 12h clock) — the field reverts to `current`, so the\n * keystroke is simply refused. Returns the accepted digits, or `null` if rejected.\n */\n private acceptTimeDigits(event: Event, current: string, max: number): string | null {\n const el = event.target as HTMLInputElement;\n const digits = el.value.replace(/\\D/g, '').slice(0, 2);\n const accepted = !digits || Number(digits) <= max;\n const text = accepted ? digits : current;\n // `[value]` is a no-op whenever the bound text is unchanged → write the DOM here.\n if (el.value !== text) {\n el.value = text;\n el.setSelectionRange(text.length, text.length);\n }\n return accepted ? digits : null;\n }\n\n /** @ignore 12h display hour (1–12) + the current meridiem → 24h hour. */\n private to24(displayed: number): number {\n return (displayed % 12) + (this.meridiem() === 'PM' ? 12 : 0);\n }\n\n /** @ignore Focusing a time field selects it, so typing replaces the value. */\n protected onTimeFocus(event: FocusEvent): void {\n (event.target as HTMLInputElement).select();\n }\n\n /** @ignore Leaving a time field drops the draft: the zero-padded label comes back. */\n protected onHoursBlur(): void {\n this.hoursDraft.set(null);\n }\n /** @ignore */\n protected onMinutesBlur(): void {\n this.minutesDraft.set(null);\n }\n\n /** @ignore ARIA spinbutton keyboard: ↑/↓ step, PageUp/PageDown ±, Enter commits. */\n protected onHourKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp' || event.key === 'PageUp') {\n event.preventDefault();\n this.stepHours(1);\n } else if (event.key === 'ArrowDown' || event.key === 'PageDown') {\n event.preventDefault();\n this.stepHours(-1);\n } else if (event.key === 'Enter') {\n event.preventDefault(); // commit in place, never submit the surrounding form\n this.hoursDraft.set(null);\n }\n }\n /** @ignore */\n protected onMinuteKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp' || event.key === 'PageUp') {\n event.preventDefault();\n this.stepMinutes(1);\n } else if (event.key === 'ArrowDown' || event.key === 'PageDown') {\n event.preventDefault();\n this.stepMinutes(-1);\n } else if (event.key === 'Enter') {\n event.preventDefault();\n this.minutesDraft.set(null);\n }\n }\n /** @ignore */\n protected onMeridiemKeydown(event: KeyboardEvent): void {\n if (!this.timeControlsEnabled()) return;\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.toggleMeridiem();\n }\n }\n\n /** @ignore */\n private pad(n: number): string {\n return String(n).padStart(2, '0');\n }\n\n /** @ignore */\n protected selectToday(): void {\n const today = startOfDay(new Date());\n if (this.isDateDisabled(today)) return;\n if (this.showTime()) today.setHours(this.hours(), this.minutes(), 0, 0);\n this.commit(this.selectionMode() === 'single' ? today : [today]);\n this.dateSelect.emit(this.serializeValue(today));\n this.viewDate.set(firstOfMonth(today));\n this.focusedDate.set(today);\n if (\n this.closeOnSelect() &&\n !this.showTime() &&\n !this.inline() &&\n this.selectionMode() !== 'multiple'\n )\n this.close();\n }\n\n /** @ignore */\n protected clear(): void {\n this.commit(null);\n this.cleared.emit();\n }\n\n // --- Grid keyboard navigation (roving focus, date view) ---------------\n\n /** @ignore */\n protected onGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedDate();\n let next: Date | null;\n switch (event.key) {\n case 'ArrowLeft':\n next = addDays(current, -1);\n break;\n case 'ArrowRight':\n next = addDays(current, 1);\n break;\n case 'ArrowUp':\n next = addDays(current, -7);\n break;\n case 'ArrowDown':\n next = addDays(current, 7);\n break;\n case 'Home':\n next = addDays(current, -((current.getDay() - this.firstDayOfWeek() + 7) % 7));\n break;\n case 'End':\n next = addDays(current, 6 - ((current.getDay() - this.firstDayOfWeek() + 7) % 7));\n break;\n case 'PageUp':\n next = addMonths(current, event.shiftKey ? -12 : -1);\n break;\n case 'PageDown':\n next = addMonths(current, event.shiftKey ? 12 : 1);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.selectDay(this.buildDay(startOfDay(current), this.viewDate()));\n return;\n case 'Escape':\n this.handleEscape(event);\n return;\n default:\n return;\n }\n event.preventDefault();\n if (!next) return;\n this.focusedDate.set(startOfDay(next));\n this.ensureMonthVisible(next);\n this.queueDayFocus();\n }\n\n /** @ignore The roving-focus cell. `otherMonth` cells are excluded so a date\n * shown twice across adjacent panels (multi-month) yields a single tab stop. */\n protected isFocusableDay(cell: DatepickerDay): boolean {\n return !cell.otherMonth && isSameDay(cell.date, this.focusedDate());\n }\n\n // --- Grid keyboard navigation (roving focus, month/year pickers) -------\n\n /**\n * @ignore Shared arrow/Home/End math for a fixed-size, `columns`-wide grid (the month picker's\n * 12 cells / 3 columns and the year picker's 10 cells / 2 columns) — the one piece of roving-\n * focus logic actually common to all three grids; `PageUp`/`PageDown`/`Enter`/`Escape` differ\n * per grid (paging semantics, selecting a month vs. a year) and stay in their own handler.\n * Returns `null` for a key it doesn't handle.\n */\n private navigateGridIndex(\n key: string,\n current: number,\n columns: number,\n count: number,\n ): number | null {\n switch (key) {\n case 'ArrowLeft':\n return Math.max(0, current - 1);\n case 'ArrowRight':\n return Math.min(count - 1, current + 1);\n case 'ArrowUp':\n return current - columns >= 0 ? current - columns : current;\n case 'ArrowDown':\n return current + columns < count ? current + columns : current;\n case 'Home':\n return Math.floor(current / columns) * columns;\n case 'End':\n return Math.min(count - 1, Math.floor(current / columns) * columns + columns - 1);\n default:\n return null;\n }\n }\n\n /** @ignore Month-picker grid: ←↑→↓/Home/End move within the 12 months (3 columns), PageUp/PageDown\n * step the displayed year (Shift = ×10), Enter/Space picks the focused month. */\n protected onMonthGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedMonthIndex();\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.selectMonth(this.months()[current]);\n return;\n }\n if (event.key === 'Escape') {\n this.handleEscape(event);\n return;\n }\n if (event.key === 'PageUp' || event.key === 'PageDown') {\n event.preventDefault();\n const dir = event.key === 'PageUp' ? -1 : 1;\n const years = event.shiftKey ? 10 : 1;\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir * years, this.viewDate().getMonth(), 1),\n );\n this.queueMonthFocus();\n return;\n }\n const next = this.navigateGridIndex(event.key, current, 3, 12);\n if (next === null) return;\n event.preventDefault();\n this.focusedMonthIndex.set(next);\n this.queueMonthFocus();\n }\n\n /** @ignore Year-picker grid: ←↑→↓/Home/End move within the displayed decade (2 columns),\n * PageUp/PageDown step by a decade (Shift = ×10 decades), Enter/Space picks the focused year. */\n protected onYearGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedYear();\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.selectYear(this.years()[current - this.decadeStart()]);\n return;\n }\n if (event.key === 'Escape') {\n this.handleEscape(event);\n return;\n }\n if (event.key === 'PageUp' || event.key === 'PageDown') {\n event.preventDefault();\n const dir = event.key === 'PageUp' ? -1 : 1;\n const delta = (event.shiftKey ? 100 : 10) * dir;\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + delta, this.viewDate().getMonth(), 1),\n );\n this.focusedYear.set(current + delta);\n this.queueYearFocus();\n return;\n }\n const idx = this.navigateGridIndex(event.key, current - this.decadeStart(), 2, 10);\n if (idx === null) return;\n event.preventDefault();\n this.focusedYear.set(this.decadeStart() + idx);\n this.queueYearFocus();\n }\n\n /** @ignore The month-picker roving-focus cell. */\n protected isFocusableMonth(cell: DatepickerMonthCell): boolean {\n return cell.index === this.focusedMonthIndex();\n }\n\n /** @ignore The year-picker roving-focus cell. */\n protected isFocusableYear(cell: DatepickerYearCell): boolean {\n return cell.year === this.focusedYear();\n }\n\n /** @ignore Shift the visible month window just enough to contain `date`. */\n private ensureMonthVisible(date: Date): void {\n const count = Math.max(1, this.numberOfMonths());\n const start = firstOfMonth(this.viewDate());\n const end = addMonths(start, count - 1);\n const month = firstOfMonth(date);\n if (month < start) this.viewDate.set(month);\n else if (month > end) this.viewDate.set(addMonths(month, 1 - count));\n }\n\n // --- Internals -------------------------------------------------------\n\n /** @ignore Sole \"normal\" write path: takes internal Date(s), serializes to the public ISO\n * string(s) right here, before it ever reaches `modelValue`/the CVA. Callers keep passing\n * `Date`/`Date[]`/`null` exactly as before — the ISO contract lives entirely in this method. */\n private commit(value: DatepickerDateValue): void {\n this.typedValue.set(null); // any committed value re-formats the trigger\n this.maskSuspended.set(false); // …and re-arms the live mask (see `typingSlots`)\n this.internalValue.set(value ?? null);\n const external = this.toExternalValue(value ?? null);\n this.modelValue.set(external ?? undefined);\n this.emitChange(external);\n this.valueChange.emit(external);\n }\n\n /** @ignore Build a day-cell descriptor with its selection/range flags. */\n private buildDay(date: Date, viewMonth: Date): DatepickerDay {\n const today = startOfDay(new Date());\n const mode = this.selectionMode();\n const sel = this.selectedDates();\n let selected = false;\n let rangeStart = false;\n let rangeEnd = false;\n let inRange = false;\n if (mode === 'range') {\n const [s, e] = sel;\n if (s && isSameDay(date, s)) {\n rangeStart = true;\n selected = true;\n }\n if (e && isSameDay(date, e)) {\n rangeEnd = true;\n selected = true;\n }\n if (s && e && date > startOfDay(s) && date < startOfDay(e)) inRange = true;\n } else {\n selected = sel.some((d) => isSameDay(d, date));\n }\n return {\n date,\n day: date.getDate(),\n month: date.getMonth(),\n year: date.getFullYear(),\n otherMonth: date.getMonth() !== viewMonth.getMonth(),\n today: isSameDay(date, today),\n selected,\n disabled: this.isDateDisabled(date),\n ariaLabel: this.dayAriaFormatter().format(date),\n rangeStart,\n rangeEnd,\n inRange,\n ts: date.getTime(),\n };\n }\n\n /** @ignore 6×7 grid for a given month, incl. adjacent-month spill-over. */\n private buildMonthWeeks(monthDate: Date): DatepickerDay[][] {\n const first = firstOfMonth(monthDate);\n const offset = (first.getDay() - this.firstDayOfWeek() + 7) % 7;\n const gridStart = addDays(first, -offset);\n return Array.from({ length: 6 }, (_, w) =>\n Array.from({ length: 7 }, (_, d) => this.buildDay(addDays(gridStart, w * 7 + d), monthDate)),\n );\n }\n\n /** @ignore */\n private resolveOverlayOrigin(): Element | null {\n const host = this.triggerRef()?.nativeElement;\n // Anchor on the bordered input box so a helper message below doesn't push the panel down.\n return host?.querySelector('.ui-field-box') ?? host ?? null;\n }\n\n /** @ignore Focus the roving-tabindex cell matching `selector`, once the DOM reflects the\n * just-updated `focusedDate`/`focusedMonthIndex`/`focusedYear` signal. */\n private queueCellFocus(selector: string): void {\n if (typeof requestAnimationFrame === 'undefined') return;\n requestAnimationFrame(() => {\n this.panelEl()?.nativeElement.querySelector<HTMLElement>(selector)?.focus();\n });\n }\n /** @ignore */\n private queueDayFocus(): void {\n this.queueCellFocus('.ui-datepicker-day._focusable');\n }\n /** @ignore */\n private queueMonthFocus(): void {\n this.queueCellFocus('.ui-datepicker-picker._month .ui-datepicker-cell._focusable');\n }\n /** @ignore */\n private queueYearFocus(): void {\n this.queueCellFocus('.ui-datepicker-picker._year .ui-datepicker-cell._focusable');\n }\n\n /** @ignore */\n private clampToRange(date: Date): Date {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && date < startOfDay(min)) return startOfDay(min);\n if (max && date > startOfDay(max)) return startOfDay(max);\n return date;\n }\n\n /** @ignore */\n private isDateDisabled(date: Date): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && date < startOfDay(min)) return true;\n if (max && date > startOfDay(max)) return true;\n if ((this.disabledDays() ?? []).includes(date.getDay())) return true;\n return this.resolvedDisabledDates().some((d) => isSameDay(d, date));\n }\n\n /** @ignore Whole month out of [min, max]. */\n private isMonthDisabled(year: number, month: number): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && new Date(year, month + 1, 0) < startOfDay(min)) return true;\n if (max && new Date(year, month, 1) > startOfDay(max)) return true;\n return false;\n }\n\n /** @ignore Whole year out of [min, max]. */\n private isYearDisabled(year: number): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && year < min.getFullYear()) return true;\n if (max && year > max.getFullYear()) return true;\n return false;\n }\n\n /** @ignore */\n private capitalize(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n }\n}\n","<!-- Calendar panel: shared between inline render and the CDK overlay. -->\n<ng-template #calendarTpl>\n <div\n #panel\n class=\"ui-datepicker-panel\"\n [class]=\"panelStyleClass()\"\n [class._inline]=\"inline()\"\n [class._range-complete]=\"rangeComplete()\"\n [attr.id]=\"panelId\"\n role=\"dialog\"\n [attr.aria-modal]=\"inline() || nonModal() ? null : 'true'\"\n [cdkTrapFocus]=\"!inline() && !nonModal()\"\n [attr.aria-label]=\"label() || ariaLabel() || panelAriaLabel()\"\n (focusout)=\"onPanelFocusOut($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (showCalendar()) {\n <!-- Shared header (single-month): prev / title (drill-up) / next.\n Multi-month puts the arrows + titles in each panel's own header. -->\n @if (singleMonth()) {\n <div class=\"ui-datepicker-header\">\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n class=\"ui-datepicker-title _button\"\n aria-live=\"polite\"\n [disabled]=\"currentView() === 'year'\"\n (click)=\"onHeaderClick()\"\n >\n {{ headerLabel() }}\n </button>\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n </div>\n }\n\n <!-- YEAR view -->\n @if (currentView() === 'year') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _year\" role=\"grid\" (keydown)=\"onYearGridKeydown($event)\">\n @for (row of yearRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (y of row; track y.year) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"y.selected\"\n [class._focusable]=\"isFocusableYear(y)\"\n [disabled]=\"y.disabled\"\n [attr.tabindex]=\"isFocusableYear(y) ? 0 : -1\"\n [attr.aria-selected]=\"y.selected\"\n (click)=\"selectYear(y)\"\n >\n {{ y.year }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- MONTH view -->\n @else if (currentView() === 'month') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _month\" role=\"grid\" (keydown)=\"onMonthGridKeydown($event)\">\n @for (row of monthRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (m of row; track m.index) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"m.selected\"\n [class._focusable]=\"isFocusableMonth(m)\"\n [disabled]=\"m.disabled\"\n [attr.tabindex]=\"isFocusableMonth(m) ? 0 : -1\"\n [attr.aria-selected]=\"m.selected\"\n (click)=\"selectMonth(m)\"\n >\n {{ m.label }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- DATE view (one or several month panels) -->\n @else {\n <!-- Calendar grid: keyboard delegated to the container, focus lives on\n the gridcell buttons (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-months\" (keydown)=\"onGridKeydown($event)\">\n @for (mp of monthPanels(); track mp.monthDate.getTime()) {\n <div class=\"ui-datepicker-month\">\n @if (!singleMonth()) {\n <!-- Per-panel header: prev on the first panel, next on the last, title centered. -->\n <div class=\"ui-datepicker-subheader\">\n @if (mp.showPrev) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-datepicker-title\" aria-live=\"polite\">{{ mp.label }}</span>\n @if (mp.showNext) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n </div>\n }\n\n <div class=\"ui-datepicker-grid\" role=\"grid\">\n <div class=\"ui-datepicker-weekdays\" role=\"row\">\n @for (wd of weekDayNames(); track $index) {\n <span\n class=\"ui-datepicker-weekday\"\n role=\"columnheader\"\n [attr.aria-label]=\"wd.full\"\n >{{ wd.short }}</span\n >\n }\n </div>\n @for (week of mp.weeks; track $index) {\n <div class=\"ui-datepicker-week\" role=\"row\">\n @for (cell of week; track cell.ts) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-day\"\n [class._selected]=\"cell.selected\"\n [class._today]=\"cell.today && !cell.selected\"\n [class._other-month]=\"cell.otherMonth\"\n [class._range-start]=\"cell.rangeStart\"\n [class._range-end]=\"cell.rangeEnd\"\n [class._in-range]=\"cell.inRange\"\n [class._focusable]=\"isFocusableDay(cell)\"\n [disabled]=\"cell.disabled\"\n [attr.tabindex]=\"isFocusableDay(cell) ? 0 : -1\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.aria-current]=\"cell.today ? 'date' : null\"\n [attr.aria-label]=\"cell.ariaLabel\"\n (click)=\"selectDay(cell)\"\n >\n @if (dateTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: cell, selected: cell.selected }\"\n />\n } @else {\n {{ cell.day }}\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n }\n\n <!-- Time selection — vertical steppers (ARIA spinbutton pattern) -->\n @if (showTime()) {\n <div class=\"ui-datepicker-time\">\n <!-- Hours -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementHoursAriaLabel()\"\n (click)=\"stepHours(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"hoursAriaLabel()\"\n [attr.aria-valuenow]=\"hourFormat() === '12' ? displayHours() : hours()\"\n [attr.aria-valuemin]=\"hourBounds().min\"\n [attr.aria-valuemax]=\"hourBounds().max\"\n [attr.aria-valuetext]=\"hoursLabel()\"\n [value]=\"hoursValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onHoursInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onHoursBlur()\"\n (keydown)=\"onHourKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementHoursAriaLabel()\"\n (click)=\"stepHours(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n\n <!-- Minutes -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"minutesAriaLabel()\"\n [attr.aria-valuenow]=\"minutes()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"59\"\n [attr.aria-valuetext]=\"minutesLabel()\"\n [value]=\"minutesValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onMinutesInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onMinutesBlur()\"\n (keydown)=\"onMinuteKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <!-- Meridiem (12h) -->\n @if (hourFormat() === '12') {\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <span\n class=\"ui-datepicker-time-value\"\n role=\"spinbutton\"\n [attr.tabindex]=\"timeControlsEnabled() ? 0 : -1\"\n [attr.aria-label]=\"meridiemAriaLabel()\"\n [attr.aria-valuetext]=\"meridiem()\"\n [attr.aria-disabled]=\"!timeControlsEnabled() || null\"\n (keydown)=\"onMeridiemKeydown($event)\"\n (click)=\"toggleMeridiem()\"\n >\n {{ meridiem() }}\n </span>\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n }\n </div>\n }\n\n <!-- Button bar (custom template or default) -->\n @if (showButtonBar() || buttonBarTemplate()) {\n <div class=\"ui-datepicker-buttonbar\">\n @if (buttonBarTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: todayCallback,\n todayCallback: todayCallback,\n clearCallback: clearCallback,\n }\"\n />\n } @else {\n <ui-button\n size=\"small\"\n level=\"low\"\n [label]=\"todayLabel()\"\n (buttonClick)=\"selectToday()\"\n />\n <ui-button size=\"small\" level=\"low\" [label]=\"clearLabel()\" (buttonClick)=\"clear()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n} @else {\n <!-- Trigger: composed field. The icon opens the panel; a click on the field itself only does\n so when the field isn't typeable (see `onTriggerClick`). -->\n <!-- Convenience wrapper: focus and keyboard are carried by the inner ui-input. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #triggerWrapper\n class=\"ui-datepicker-trigger\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (focusout)=\"onTriggerFocusOut($event)\"\n >\n <ui-input\n #trigger\n [label]=\"label()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"triggerReadonly()\"\n [invalid]=\"isInvalid()\"\n [name]=\"name() ?? ''\"\n [inputId]=\"resolvedId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaDescribedBy]=\"resolvedFormatHint() ? formatHintId() : undefined\"\n [tabindex]=\"tabindex()\"\n [value]=\"displayValue()\"\n [autocomplete]=\"autocomplete()\"\n [iconRight]=\"triggerIcon()\"\n [iconRightTemplate]=\"triggerIconTemplate()\"\n [iconRightAriaLabel]=\"triggerIconAriaLabel()\"\n ariaHasPopup=\"dialog\"\n [ariaExpanded]=\"panelOpen()\"\n [ariaControls]=\"panelOpen() ? panelId : undefined\"\n (iconRightClick)=\"onIconClick($event)\"\n (valueChange)=\"onTriggerInput($event)\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"onTriggerBlur($event)\"\n />\n @if (resolvedFormatHint(); as hint) {\n <span [id]=\"formatHintId()\" class=\"ui-datepicker-format-hint\">{{ hint }}</span>\n }\n </div>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayViewportMargin]=\"overlayViewportMargin\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayHasBackdrop]=\"!nonModal()\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n </ng-template>\n}\n","/*\n * Public API Surface of ui-kit/ui-datepicker\n */\n\nexport * from './lib/ui-datepicker';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AA+HA,IAAI,YAAY,GAAG,CAAC;AAEpB;;AAEkG;AAClG,MAAM,eAAe,GAAG,KAAK;AAC7B;AACA,MAAM,uBAAuB,GAAG,KAAK;AACrC;AACA,MAAM,kBAAkB,GAAG,IAAI;AAK/B;;;AAGkD;AAClD,SAAS,SAAS,GAAA;IAChB,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAA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U,CAAC,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE;AACzF,qBAAA,EAAA,QAAA,EAAA,sshBAAA,EAAA,MAAA,EAAA,CAAA,y+kBAAA,CAAA,EAAA;8mKA4LoE,MAAM,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAED,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAEP,MAAM,sEAejC,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAEc,SAAS,EAAA,EAAA,GAAE;AACnF,4BAAA,IAAI,EAAE,UAAU;yBACjB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAE6D,OAAO,0EAGE,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtZzF;;AAEG;;ACFH;;AAEG;;"}
1
+ {"version":3,"file":"4sh-ui-kit-forms-ui-datepicker.mjs","sources":["../../../projects/ui-kit/forms/ui-datepicker/src/lib/ui-datepicker.ts","../../../projects/ui-kit/forms/ui-datepicker/src/lib/ui-datepicker.html","../../../projects/ui-kit/forms/ui-datepicker/src/public-api.ts","../../../projects/ui-kit/forms/ui-datepicker/src/4sh-ui-kit-forms-ui-datepicker.ts"],"sourcesContent":["import {\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n computed,\n contentChild,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n linkedSignal,\n LOCALE_ID,\n numberAttribute,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { dropdownOverlayPositions } from '@4sh/ui-kit/forms';\nimport { CdkTrapFocus, FocusMonitor } from '@angular/cdk/a11y';\nimport { BaseFormField, hasFocus } from '@4sh/ui-kit/forms';\nimport {\n autoFormatSegments,\n buildMaskSlots,\n caretForMask,\n extractMaskData,\n MaskBounds,\n MaskSlot,\n} from '@4sh/ui-kit/forms';\nimport { UiInput, UiInputIconContext } from '@4sh/ui-kit/forms/ui-input';\nimport { UiButton } from '@4sh/ui-kit/actions/ui-button';\nimport { UiIcon } from '@4sh/ui-kit/base/ui-icon';\nimport { closeOnNavigation } from '@4sh/ui-kit/overlay';\nimport {\n addDays,\n addMonths,\n finalizeParsed,\n firstOfMonth,\n isSameDay,\n normalizeDateInput,\n parseIsoDate,\n parseIsoDateTime,\n startOfDay,\n toIsoDate,\n toIsoDateTime,\n} from '@4sh/ui-kit/forms';\n\nexport type DatepickerHourFormat = '12' | '24';\n/** Base picking granularity — also the drill-down levels of the panel. */\nexport type DatepickerView = 'date' | 'month' | 'year';\n/** Selection quantity. */\nexport type DatepickerSelectionMode = 'single' | 'multiple' | 'range';\n/** @ignore Whether the focus roves into the grid on open: always from the calendar toggle,\n * only on a non-typeable field otherwise, never when the focus itself did the opening. */\ntype DatepickerOpenOrigin = 'icon' | 'field' | 'focus';\n/**\n * Shape of the value crossing the CVA boundary — see {@link DatepickerValue}. Mandatory\n * (`input.required`, no default): the consumer must pick one explicitly rather than accidentally\n * relying on a default that may not match its model's actual type.\n *\n * `'date'` matches a DTO round-tripped through `class-transformer` (`@Type(() => Date)`): the\n * value stays a plain `Date` end to end, normalized to midnight when no time is shown. `'iso'`\n * emits ISO `\"yyyy-MM-dd\"` strings instead — for consumers reading/writing the value directly\n * against a backend `LocalDate` without going through a DTO layer that already handles the\n * conversion.\n */\nexport type DatepickerValueType = 'date' | 'iso';\n/**\n * Model value. `writeValue` accepts `Date` **or** ISO string transparently (auto-detected,\n * mixable in `multiple`/`range` arrays) — whatever the host app already has at hand. What gets\n * **emitted** (`valueChange`, `dateSelect`, and so whatever lands in the `FormControl`) strictly\n * follows {@link valueType}: always `Date` in `'date'` mode, always `string` in `'iso'` mode —\n * never a silent mix, so the consumer's own model type stays predictable in either mode.\n */\nexport type DatepickerValue = Date | Date[] | string | string[] | null;\n/** @ignore Internal calendar representation — the only shape `selectedDates`/`buildDay`/grid\n * navigation ever see. `writeValue`/`commit` are the sole two conversion points to/from\n * {@link DatepickerValue} (`Date` or ISO string depending on {@link DatepickerValueType}). */\ntype DatepickerDateValue = Date | Date[] | null;\n\n/** A single day cell of the month grid. Also the `$implicit` context of the `#date` template. */\nexport interface DatepickerDay {\n date: Date;\n day: number;\n month: number;\n year: number;\n otherMonth: boolean;\n today: boolean;\n selected: boolean;\n disabled: boolean;\n rangeStart: boolean;\n rangeEnd: boolean;\n inRange: boolean;\n ts: number;\n /** Full date, locale-formatted (e.g. \"8 juillet 2026\") — the gridcell's `aria-label`. */\n ariaLabel: string;\n}\n\n/** A month cell of the month-picker grid. */\nexport interface DatepickerMonthCell {\n index: number;\n label: string;\n selected: boolean;\n disabled: boolean;\n}\n\n/** A year cell of the year-picker grid. */\nexport interface DatepickerYearCell {\n year: number;\n selected: boolean;\n disabled: boolean;\n}\n\n/** One rendered month panel (supports `numberOfMonths`). */\nexport interface DatepickerMonthPanel {\n monthDate: Date;\n label: string;\n weeks: DatepickerDay[][];\n showPrev: boolean;\n showNext: boolean;\n}\n\nlet nextPanelUid = 0;\n\n/** Typed `range` separator (FSHSP-118: `\"jj/mm/aaaa - jj/mm/aaaa\"`) — placeholder, live mask,\n * and `parseTypedMulti` splitting. A plain hyphen, distinct from the DISPLAYED en dash below —\n * reusing this one for display used to silently change the look of every non-typing consumer. */\nconst RANGE_SEPARATOR = ' - ';\n/** Displayed (committed) `range` separator — unchanged since before typed entry existed. */\nconst RANGE_DISPLAY_SEPARATOR = ' – ';\n/** Typed/displayed `multiple` separator (`\"jj/mm/aaaa, jj/mm/aaaa, ...\"`) — one separator for both. */\nconst MULTIPLE_SEPARATOR = ', ';\n\n/** @ignore One field of a numeric date, in the order the resolved format writes them. */\ntype DateField = 'day' | 'month' | 'year';\n\n/** Illustrative date the auto placeholder and the field-order probe are both derived from\n * (22 Nov 2023): day, month and year are pairwise distinct, so each one is identifiable in a\n * formatter's own output. A fresh instance per call — a consumer's `dateFormat` receives it,\n * and a shared one could be mutated in place. */\nfunction probeDate(): Date {\n return new Date(2023, 10, 22);\n}\n/** First index at which any of `tokens` occurs in `text` (`-1` if none) — probes a formatter's\n * output for one {@link probeDate} component, most specific token first. */\nfunction firstIndexOf(text: string, tokens: readonly string[]): number {\n for (const token of tokens) {\n const i = text.indexOf(token);\n if (i !== -1) return i;\n }\n return -1;\n}\n\n/** Splits a flat cell list into rows of `size` (month/year pickers need `role=\"row\"` wrappers). */\nfunction chunk<T>(items: readonly T[], size: number): T[][] {\n const rows: T[][] = [];\n for (let i = 0; i < items.length; i += size) rows.push(items.slice(i, i + size));\n return rows;\n}\n\n/**\n * ui-datepicker — headless date / month / year (and optional time) picker.\n *\n * A readonly {@link UiInput} trigger opens a token-styled panel in a CDK overlay\n * (or renders inline). Supports single / multiple / range selection, drill-down\n * views (day → month → year), `MonthPicker`/`YearPicker` modes (`view`), several\n * months side-by-side (`numberOfMonths`), a time row, and roving keyboard focus.\n *\n * Value is `Date` or ISO `\"yyyy-MM-dd\"` string depending on the **required** `valueType` input (no\n * default — the consumer must pick one), wired through `ControlValueAccessor` on\n * {@link BaseFormField} (shared label / helper / level / validation / states). `writeValue`\n * accepts either shape transparently; what gets **emitted** always follows `valueType` — see\n * {@link DatepickerValueType}.\n *\n * Customisation: `panelStyleClass`, the `#date` cell template\n * (`let-date let-selected=\"selected\"`) and the `#buttonbar` template\n * (`let-todayCallback let-clearCallback`), plus the local SCSS variables.\n */\n@Component({\n selector: 'ui-datepicker',\n imports: [NgTemplateOutlet, OverlayModule, CdkTrapFocus, UiInput, UiButton, UiIcon],\n templateUrl: './ui-datepicker.html',\n styleUrl: './ui-datepicker.scss',\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => UiDatepicker), multi: true },\n ],\n})\nexport class UiDatepicker extends BaseFormField<DatepickerValue> {\n /** Placeholder shown in the trigger when nothing is selected. */\n placeholder = input<string>();\n /** FontAwesome icon of the trigger's toggle button. */\n icon = input<string>('calendar');\n /** Show the trigger's calendar toggle button. */\n showIcon = input(true, { transform: booleanAttribute });\n /** Accessible name of the toggle button (a11y). */\n iconAriaLabel = input<string>('Ouvrir le calendrier');\n /**\n * Show a clear (×) button in the trigger when a value is set. **Default `true`** (FSHSP-118):\n * only takes effect when `showIcon` is `false` — the calendar/clock toggle otherwise always\n * wins the trigger's single icon slot, so the panel stays reachable by click even once a value\n * is set. With `showIcon` at its own default (`true`), clearing goes through the keyboard\n * (`allowInput`, itself `true` by default) instead: select the text and delete it.\n */\n showClear = input(true, { transform: booleanAttribute });\n\n /**\n * Shape of the emitted value: `'date'` (a plain `Date` — matches a DTO round-tripped through\n * `class-transformer`) or `'iso'` (ISO `\"yyyy-MM-dd\"` string, for a value read/written directly\n * against a backend `LocalDate`). `writeValue` always accepts either shape regardless of this\n * setting — it only governs what `valueChange`/`dateSelect` emit. **Required, no default**: the\n * consumer must pick the one matching its own model's type rather than inherit a silent default.\n */\n valueType = input.required<DatepickerValueType>();\n /** Selection quantity: `single` (default), `multiple` or `range`. */\n selectionMode = input<DatepickerSelectionMode>('single');\n /** Base picking granularity: `date` (default), `month` (MonthPicker) or `year` (YearPicker). */\n view = input<DatepickerView>('date');\n /** Number of month panels shown side-by-side (date view only). */\n numberOfMonths = input<number, unknown>(1, { transform: numberAttribute });\n\n /** Earliest selectable date (inclusive). `Date` or ISO `\"yyyy-MM-dd\"`. */\n minDate = input<Date | string | null>(null);\n /** Latest selectable date (inclusive). `Date` or ISO `\"yyyy-MM-dd\"`. */\n maxDate = input<Date | string | null>(null);\n /** Individual dates to disable. `Date` or ISO `\"yyyy-MM-dd\"`, mixable. */\n disabledDates = input<(Date | string)[]>([]);\n /** Week days to disable (0 = Sunday … 6 = Saturday). */\n disabledDays = input<number[]>([]);\n\n /** First day of the week (0 = Sunday … 6 = Saturday). Defaults to Monday. */\n firstDayOfWeek = input<number, unknown>(1, { transform: numberAttribute });\n /** BCP-47 locale for names and default formatting. Defaults to `LOCALE_ID`. */\n locale = input<string>();\n /**\n * Custom display formatter for a single date (overrides the default `Intl` format) — also\n * used, unchanged, as the time formatter in `timeOnly` mode.\n *\n * With `allowInput` and no `parseDate`, the typed text is read back in the day/month/year\n * order **this formatter writes** (probed from its own output, whatever locale it uses\n * internally), not the resolved locale's — so entry and display always agree. A non-numeric\n * format (e.g. `\"22 novembre 2023\"`) can't be probed: pair it with a matching `parseDate`.\n */\n dateFormat = input<(date: Date) => string>();\n\n /**\n * Allow typing the date directly in the trigger. **Default `true`** (FSHSP-118): a calendar\n * grid alone forces a screen-reader user through ~30 cells to pick a date, when typing it is\n * far faster — set `false` to force the grid-only path instead. The typed text is parsed on\n * blur / `Enter`; an unparsable value reverts to the previously displayed one. When enabled\n * (and no custom `dateFormat`), the value is displayed in a numeric locale format so it\n * round-trips with typing.\n *\n * `single` gets the full experience: a live auto-\"/\" mask while constructing a date from an\n * empty field (see `typingSlots`), free-form text editing otherwise — no live reformatting,\n * parsed on blur/Enter. \"Otherwise\" covers both a value that already exists and an edit made\n * inside the text being typed rather than at its tail: editing a segment in place, e.g. just\n * the month, never shifts what follows (FSHSP-118, FSHSP-179).\n *\n * `range`/`multiple` are typeable too (FSHSP-118), but always as plain text — no live mask,\n * only parsed on blur/Enter: `\"jj/mm/aaaa - jj/mm/aaaa\"` for `range` (exactly two dates,\n * reordered chronologically if typed backwards), `\"jj/mm/aaaa, jj/mm/aaaa, ...\"` for `multiple`\n * (any count, duplicates collapsed) — see `parseTypedMulti`. The grid keeps working exactly as\n * before either way; typing is a complement, not a replacement.\n *\n * A typeable field is a text field first: **a click in it no longer opens the panel**\n * (FSHSP-180) — the calendar icon, `↓` and the keyboard do. `allowInput=\"false\"` (or\n * `readonly`/`timeOnly`) restores the click-to-open, the field being the affordance there; so\n * does `showIcon=\"false\"`, which leaves no icon to click. See `onTriggerClick`.\n *\n * Has no effect in `timeOnly` mode: the trigger stays read-only there (no parser/formatter for\n * a bare time string).\n */\n allowInput = input(true, { transform: booleanAttribute });\n /**\n * Custom parser for the typed text (symmetric with `dateFormat`). Return `null`\n * to reject the input. When omitted, a locale-aware numeric parser is used.\n */\n parseDate = input<(value: string) => Date | null>();\n\n /** Enable the time selection row. */\n showTime = input(false, { transform: booleanAttribute });\n /** Time-only mode: hide the calendar, keep the time row. */\n timeOnly = input(false, { transform: booleanAttribute });\n /** 12h (AM/PM) or 24h clock. */\n hourFormat = input<DatepickerHourFormat>('24');\n /** Minute increment of the time stepper (buttons / arrow keys — typing stays exact). */\n stepMinute = input<number, unknown>(1, { transform: numberAttribute });\n /**\n * Let the hours and minutes be typed directly in the time row (default).\n */\n editableTime = input(true, { transform: booleanAttribute });\n\n /** Show the bottom button bar (Today / Clear) — or the `#buttonbar` template. */\n showButtonBar = input(false, { transform: booleanAttribute });\n /** Ripple Effect */\n ripple = input(true, { transform: booleanAttribute });\n /** Label of the default \"Today\" button. */\n todayLabel = input<string>(\"Aujourd'hui\");\n /** Label of the default \"Clear\" button. */\n clearLabel = input<string>('Effacer');\n\n /**\n * Accessible hint announcing the expected typed format, chained onto the trigger's\n * `aria-describedby` (alongside the helper/error message, never replacing it) whenever it's\n * typeable (FSHSP-118): the `placeholder` alone is unreliable across screen readers, and it\n * disappears the moment the user starts typing. Defaults to a sentence built from the resolved\n * placeholder (e.g. \"Format attendu : jj/mm/aaaa\"); pass an explicit string to override it, or\n * `''` to omit it.\n */\n formatHintLabel = input<string>();\n\n /** Accessible name of the calendar panel (fallback when no `label`/`ariaLabel`). */\n panelAriaLabel = input<string>('Calendrier');\n /** Accessible label of the previous-month/year navigation arrow. */\n prevAriaLabel = input<string>('Précédent');\n /** Accessible label of the next-month/year navigation arrow. */\n nextAriaLabel = input<string>('Suivant');\n /** Accessible name of the hours spinbutton. */\n hoursAriaLabel = input<string>('Heures');\n /** Accessible name of the minutes spinbutton. */\n minutesAriaLabel = input<string>('Minutes');\n /** Accessible name of the AM/PM spinbutton. */\n meridiemAriaLabel = input<string>('AM/PM');\n /** Accessible label of the hours increment button. */\n incrementHoursAriaLabel = input<string>('Augmenter les heures');\n /** Accessible label of the hours decrement button. */\n decrementHoursAriaLabel = input<string>('Diminuer les heures');\n /** Accessible label of the minutes increment button. */\n incrementMinutesAriaLabel = input<string>('Augmenter les minutes');\n /** Accessible label of the minutes decrement button. */\n decrementMinutesAriaLabel = input<string>('Diminuer les minutes');\n /** Accessible label of the AM/PM toggle buttons. */\n toggleMeridiemAriaLabel = input<string>('Changer AM/PM');\n\n /** Render the panel inline (no trigger, no overlay). */\n inline = input(false, { transform: booleanAttribute });\n /**\n * Open the panel as soon as the trigger takes focus, pointer *or* keyboard, never a\n * programmatic focus.\n */\n showOnFocus = input(false, { transform: booleanAttribute });\n /**\n * Auto-flip the panel above the trigger when there isn't enough room below\n * (default). Set `false` to lock it below the trigger regardless of space.\n */\n autoFlip = input(true, { transform: booleanAttribute });\n /** Close after a complete selection (ignored when `showTime`). */\n closeOnSelect = input(true, { transform: booleanAttribute });\n /** Extra class(es) applied to the panel (scoped custom styling). */\n panelStyleClass = input<string>();\n /** Native autocomplete, forwarded to the trigger. */\n autocomplete = input<string>();\n\n /** Emitted whenever the value changes (selection, time, clear). */\n valueChange = output<DatepickerValue>();\n /** Emitted when a date/month/year is picked — always a single value (in `valueType`'s\n * shape), even in `multiple`/`range` (it reports \"which day was just clicked\", not the model\n * value, which is why it never becomes an array there). */\n dateSelect = output<Date | string>();\n /** Emitted when the displayed month changes. */\n monthChange = output<{ month: number; year: number }>();\n /** Emitted when the panel opens. */\n opened = output<void>();\n /** Emitted when the panel closes. */\n closed = output<void>();\n /** Emitted when the value is cleared. */\n cleared = output<void>();\n /** Emitted when the trigger receives focus. */\n inputFocus = output<FocusEvent>();\n /** Emitted when the trigger loses focus. */\n inputBlur = output<FocusEvent>();\n\n /** Custom day-cell template: `<ng-template #date let-date let-selected=\"selected\">`. */\n protected readonly dateTemplate = contentChild<TemplateRef<unknown>>('date');\n /** Custom button-bar template: `<ng-template #buttonbar let-todayCallback let-clearCallback>`. */\n protected readonly buttonBarTemplate = contentChild<TemplateRef<unknown>>('buttonbar');\n /** Custom trigger-icon template: `<ng-template #icon let-name let-size=\"size\">`. */\n private readonly iconTemplate = contentChild<TemplateRef<UiInputIconContext>>('icon');\n\n /** @ignore */\n private readonly localeId = inject(LOCALE_ID);\n /** @ignore Focus origin of the trigger, for `showOnFocus`. The CDK is the only thing that can\n * tell a user-initiated focus from a programmatic one (`autofocus`, a host app calling\n * `focus()`), which must not pop a calendar the user never asked for. */\n private readonly focusMonitor = inject(FocusMonitor);\n /** @ignore Only used to detach the overlay *synchronously* on `Tab`, see `onTriggerKeydown`. */\n private readonly cdr = inject(ChangeDetectorRef);\n /** @ignore */\n private readonly doc = inject(DOCUMENT);\n /** @ignore Element the current press started on, see `onOutsideClick`. */\n private pressOrigin: Node | null = null;\n /** @ignore */\n private readonly triggerInput = viewChild<UiInput>('trigger');\n /** @ignore Trigger host (to anchor the overlay on the input box, not the helper). */\n private readonly triggerRef = viewChild<UiInput, ElementRef<HTMLElement>>('trigger', {\n read: ElementRef,\n });\n /** @ignore Panel root element (overlay or inline) — used for roving day focus. */\n private readonly panelEl = viewChild<ElementRef<HTMLElement>>('panel');\n /** @ignore Trigger wrapper (field + label + format hint). A non-modal panel has no backdrop,\n * so outside-click dismissal has to know what \"inside the trigger\" means. */\n private readonly triggerWrapperEl = viewChild<ElementRef<HTMLElement>>('triggerWrapper');\n\n /** @ignore */\n protected readonly panelId = `ui-datepicker-panel-${nextPanelUid++}`;\n /** @ignore */\n protected readonly panelOpen = signal(false);\n /** @ignore Panel opened without taking the focus (`showOnFocus`): plain popup instead of the\n * usual modal dialog — see {@link DatepickerOpenOrigin}. */\n protected readonly nonModal = signal(false);\n /** @ignore Set while we hand the focus back to the trigger ourselves (`close`), so the\n * returning focus never re-opens the panel that just closed. `focus()` dispatches\n * synchronously, so a plain flag is enough, no timer to leak. */\n private suppressFocusOpen = false;\n /** @ignore Element the overlay is anchored to (the input box). */\n protected readonly overlayOrigin = signal<Element | null>(null);\n /** @ignore Month currently displayed. */\n protected readonly viewDate = signal<Date>(startOfDay(new Date()));\n /** @ignore Active drill-down level; resets to `view()` when it changes. */\n protected readonly currentView = linkedSignal<DatepickerView>(() => this.view());\n /** @ignore Day cell owning the roving tabindex. */\n protected readonly focusedDate = signal<Date>(startOfDay(new Date()));\n /** @ignore Month-picker cell (index 0–11) owning the roving tabindex. */\n protected readonly focusedMonthIndex = signal<number>(new Date().getMonth());\n /** @ignore Year-picker cell (absolute year) owning the roving tabindex. */\n protected readonly focusedYear = signal<number>(new Date().getFullYear());\n /** @ignore Time components. */\n protected readonly hours = signal(0);\n protected readonly minutes = signal(0);\n /** @ignore Raw text while the user edits the trigger (`allowInput`); `null` when not editing. */\n protected readonly typedValue = signal<string | null>(null);\n /** @ignore Live mask given up on for the rest of the current entry, because the user edited\n * inside the text instead of appending at its tail (see `onTriggerInput`/`typingSlots`).\n * Lifted by any commit, and as soon as the field reads empty. */\n private readonly maskSuspended = signal(false);\n /** @ignore Date-based source of truth for all calendar/selection logic; `modelValue`\n * (inherited) only ever carries the public value (`Date` or ISO string per `valueType`),\n * written in lockstep. */\n protected readonly internalValue = signal<DatepickerDateValue>(null);\n\n /** @ignore Below the trigger, flipping above when `autoFlip` and space is lacking. */\n protected readonly overlayPositions = computed(() => dropdownOverlayPositions(this.autoFlip()));\n /** @ignore Gutter kept with the viewport edges, matching the one `$panel-max-width`\n * reserves; with `cdkConnectedOverlayPush` it keeps the panel fully on screen. */\n protected readonly overlayViewportMargin = 12;\n\n /** @ignore Bound (stable) callbacks exposed to the `#buttonbar` template. */\n protected readonly todayCallback = (event?: Event): void => {\n event?.stopPropagation?.();\n this.selectToday();\n };\n protected readonly clearCallback = (event?: Event): void => {\n event?.stopPropagation?.();\n this.clear();\n };\n\n /** @ignore */\n private readonly resolvedLocale = computed(() => this.locale() ?? this.localeId);\n /** @ignore `minDate`/`maxDate`/`disabledDates` normalized to `Date` (accept ISO strings too). */\n private readonly resolvedMinDate = computed(() => normalizeDateInput(this.minDate()));\n private readonly resolvedMaxDate = computed(() => normalizeDateInput(this.maxDate()));\n private readonly resolvedDisabledDates = computed(() =>\n (this.disabledDates() ?? []).map(normalizeDateInput).filter((d): d is Date => d !== null),\n );\n /** @ignore Not typeable: manual input off, read-only, or `timeOnly` (no bare-time parser).\n * `range`/`multiple` ARE typeable (FSHSP-118) — see `parseTypedMulti`/`typingSlots`. */\n protected readonly triggerReadonly = computed(\n () => this.readonly() || !this.allowInput() || this.timeOnly(),\n );\n /** @ignore Single-date placeholder token (e.g. `jj/mm/aaaa`) — the building block\n * `resolvedPlaceholder` composes for `range`/`multiple`. With a custom `dateFormat`, the\n * locale's numeric token would be flatly wrong (it describes a format nothing actually\n * produces or accepts) — showing that custom formatter's own output for an illustrative date\n * instead at least matches what the field really expects. */\n private readonly singleDatePlaceholder = computed(() => {\n const custom = this.dateFormat();\n if (custom) return custom(probeDate());\n const fr = this.resolvedLocale().toLowerCase().startsWith('fr');\n const token = { day: fr ? 'jj' : 'dd', month: 'mm', year: fr ? 'aaaa' : 'yyyy' };\n const view = this.view();\n if (view === 'year') return token.year;\n const opts: Intl.DateTimeFormatOptions =\n view === 'month'\n ? { month: '2-digit', year: 'numeric' }\n : { day: '2-digit', month: '2-digit', year: 'numeric' };\n return new Intl.DateTimeFormat(this.resolvedLocale(), opts)\n .formatToParts(probeDate())\n .map((p) =>\n p.type === 'day'\n ? token.day\n : p.type === 'month'\n ? token.month\n : p.type === 'year'\n ? token.year\n : p.value,\n )\n .join('');\n });\n /**\n * @ignore Placeholder shown in the typeable trigger. Falls back to a hint derived from the\n * resolved locale's field order (e.g. `jj/mm/aaaa` in French, `mm/dd/yyyy` in en-US) — or, with\n * a custom `dateFormat`, from that formatter's own output for an illustrative date (see\n * `singleDatePlaceholder`), since the locale-numeric token would describe a format nothing\n * actually produces or accepts — so the field never advertises the wrong format. Composed into\n * `\"jj/mm/aaaa - jj/mm/aaaa\"` (`range`) or `\"jj/mm/aaaa, ...\"` (`multiple`), matching\n * `RANGE_SEPARATOR`/`MULTIPLE_SEPARATOR` (see `parseTypedMulti`).\n */\n protected readonly resolvedPlaceholder = computed(() => {\n const explicit = this.placeholder();\n // Keep the consumer's placeholder, and don't auto-hint on a read-only trigger.\n if (explicit || this.triggerReadonly()) return explicit;\n const single = this.singleDatePlaceholder();\n const mode = this.selectionMode();\n if (mode === 'range') return `${single}${RANGE_SEPARATOR}${single}`;\n if (mode === 'multiple') return `${single}${MULTIPLE_SEPARATOR}...`;\n return single;\n });\n /**\n * @ignore Format hint text, or `null` when there's nothing to announce: the trigger isn't\n * typeable, or `formatHintLabel` was explicitly set to `''` to opt out.\n */\n protected readonly resolvedFormatHint = computed(() => {\n if (this.triggerReadonly()) return null;\n const explicit = this.formatHintLabel();\n if (explicit === '') return null;\n return explicit || `Format attendu : ${this.resolvedPlaceholder()}`;\n });\n /** @ignore Stable id for the hint element `resolvedFormatHint` renders into. */\n protected readonly formatHintId = computed(() => `${this.resolvedId()}-format-hint`);\n\n /**\n * @ignore Field order a custom `dateFormat` actually writes, probed from its own output for\n * {@link probeDate}. `null` when there is no custom formatter, or when its output isn't\n * numeric enough to tell (e.g. `\"22 novembre 2023\"`) — the locale order stands then.\n *\n * The default parser and the live mask have to read the text back in the order the field\n * displays it, and a `dateFormat` is free to use a locale of its own: an `fr-FR` formatter\n * under an `en-US` `LOCALE_ID` displayed `\"08/07/2026\"` but parsed it month-first, so\n * finishing the entry silently swapped day and month (FSHSP-179).\n */\n private readonly customFormatFieldOrder = computed<DateField[] | null>(() => {\n const custom = this.dateFormat();\n if (!custom) return null;\n const out = custom(probeDate());\n // 4-digit year probed before the 2-digit one: `\"23\"` also occurs inside `\"2023\"` (\"20|23\"),\n // at an offset that isn't where the year starts.\n const probed: [DateField, number][] = [\n ['day', firstIndexOf(out, ['22'])],\n ['month', firstIndexOf(out, ['11'])],\n ['year', firstIndexOf(out, ['2023', '23'])],\n ];\n if (probed.some(([, i]) => i === -1)) return null;\n if (new Set(probed.map(([, i]) => i)).size !== probed.length) return null;\n return probed.sort((a, b) => a[1] - b[1]).map(([field]) => field);\n });\n /** @ignore Order of day/month/year driving numeric parsing, the live mask and the auto\n * placeholder: what a custom `dateFormat` writes when that can be probed\n * ({@link customFormatFieldOrder}), the resolved locale's own order otherwise. */\n private readonly dateFieldOrder = computed<DateField[]>(() => {\n const fromFormat = this.customFormatFieldOrder();\n if (fromFormat) return fromFormat;\n const parts = new Intl.DateTimeFormat(this.resolvedLocale(), {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n }).formatToParts(probeDate());\n const order = parts\n .map((p) => p.type)\n .filter((t): t is DateField => t === 'day' || t === 'month' || t === 'year');\n return order.length === 3 ? order : ['day', 'month', 'year'];\n });\n /** @ignore `dateFieldOrder`, minus `day` in month view — the fields actually typed. */\n private readonly activeFields = computed<DateField[]>(() =>\n this.dateFieldOrder().filter((f) => (this.view() === 'month' ? f !== 'day' : true)),\n );\n /**\n * @ignore Dynamic mask (day/month/year widths, `+` time if `showTime`, `+` a second date for\n * `range`) driving the auto-\"/\"/\":\"/\" - \" formatting of the typeable trigger. `null` disables\n * it: `triggerReadonly`, `view === 'year'` (free-form field), a custom `parseDate` (non-numeric\n * format), `hasValue()`, or `multiple` (unbounded date count, no fixed template fits — plain\n * text on blur/Enter instead, see `parseTypedMulti`).\n *\n * `hasValue()`: re-deriving the mask from the raw digit stream only works for *constructing* a\n * value from nothing, not editing one in place (day/month re-validate arbitrary residual digits\n * after any edit — see `onTriggerInput`). So it's off once a value exists — plain text instead,\n * parsed on blur/Enter — and re-arms the moment the field reads empty (`onTriggerInput` commits\n * the clear right there, not just on blur, so `hasValue()` actually flips before the next key).\n *\n * `maskSuspended()`: the same limitation, hit before any value exists — an edit made *inside*\n * the text being typed rather than at its tail (see `onTriggerInput`).\n */\n private readonly typingSlots = computed<MaskSlot[] | null>(() => {\n const mode = this.selectionMode();\n if (\n this.triggerReadonly() ||\n this.view() === 'year' ||\n this.parseDate() ||\n this.hasValue() ||\n this.maskSuspended() ||\n (mode !== 'single' && mode !== 'range')\n )\n return null;\n const widths = { day: '99', month: '99', year: '9999' } as const;\n const bounds: Record<DateField, MaskBounds | null> = {\n day: { min: 1, max: 31 },\n month: { min: 1, max: 12 },\n year: null,\n };\n const fields = this.activeFields();\n let mask = fields.map((f) => widths[f]).join('/');\n const segmentBounds: (MaskBounds | null)[] = fields.map((f) => bounds[f]);\n\n if (mode === 'single' && this.showTime() && this.view() === 'date') {\n mask += this.hourFormat() === '12' ? ' 99:99 aa' : ' 99:99';\n segmentBounds.push(this.hourFormat() === '12' ? { min: 1, max: 12 } : { min: 0, max: 23 }, {\n min: 0,\n max: 59,\n });\n }\n if (mode === 'range') {\n // Second date, same widths/bounds, joined by the literal typing separator — no `showTime`\n // support here (typed `range` is always `startOfDay`, see `parseTypedMulti`).\n mask += RANGE_SEPARATOR + fields.map((f) => widths[f]).join('/');\n segmentBounds.push(...fields.map((f) => bounds[f]));\n }\n return buildMaskSlots(mask, segmentBounds);\n });\n /** @ignore The panel is visible. */\n protected readonly showPanel = computed(() => this.inline() || this.panelOpen());\n /** @ignore Day grid shown (hidden in `timeOnly`). */\n protected readonly showCalendar = computed(() => !this.timeOnly());\n /** @ignore Single-month layout enables the drill-down header + roving focus. */\n protected readonly singleMonth = computed(() => Math.max(1, this.numberOfMonths()) === 1);\n\n /** @ignore A value is currently set. */\n protected readonly hasValue = computed(() => this.selectedDates().length > 0);\n /**\n * @ignore A `range` whose two ends are both picked. Between the first and the second click\n * the start is selected but there is no zone yet: the grid must then show its chip alone,\n * never a half band running off toward an end that does not exist.\n */\n protected readonly rangeComplete = computed(() => {\n if (this.selectionMode() !== 'range') return false;\n const [start, end] = this.selectedDates();\n return !!start && !!end;\n });\n /**\n * @ignore The trigger's right action clears the value (instead of toggling the panel). Gated\n * on `!showIcon()` (FSHSP-118): the calendar/clock toggle always wins the trigger's single icon\n * slot when it's shown, so there's always a click target to reopen the panel and pick a\n * different date directly — the cross only replaces it in configs that hid it (`showIcon`\n * false), where it's the sole remaining affordance to empty the field without a keyboard.\n */\n protected readonly showClearButton = computed(\n () =>\n this.showClear() &&\n this.hasValue() &&\n !this.isDisabled() &&\n !this.readonly() &&\n !this.showIcon(),\n );\n /** @ignore Right-side icon: clear (×) when clearable + set + no calendar toggle to show\n * (see `showClearButton`), else the calendar/clock toggle. */\n protected readonly triggerIcon = computed(() => {\n if (this.showClearButton()) return 'xmark';\n if (!this.showIcon()) return undefined;\n // Default to a clock in time-only mode (unless a custom icon was provided).\n return this.timeOnly() && this.icon() === 'calendar' ? 'clock' : this.icon();\n });\n /** @ignore Accessible name of the right action. */\n protected readonly triggerIconAriaLabel = computed(() =>\n this.showClearButton() ? this.clearLabel() : this.iconAriaLabel(),\n );\n /** @ignore Forwarded to the trigger only when an icon zone is rendered — `showIcon=\"false\"` stays icon-less. */\n protected readonly triggerIconTemplate = computed(() =>\n this.triggerIcon() ? this.iconTemplate() : undefined,\n );\n\n // --- Selection helpers ----------------------------------------------\n\n /** @ignore Flatten the internal (Date-based) value to a list of selected dates. */\n private readonly selectedDates = computed<Date[]>(() => {\n const v = this.internalValue();\n if (!v) return [];\n return (Array.isArray(v) ? v : [v]).filter((d): d is Date => d instanceof Date);\n });\n /** @ignore First selected date (for view seeding / time / display). */\n private firstSelectedFrom(value: DatepickerDateValue): Date | null {\n if (!value) return null;\n const arr = Array.isArray(value) ? value : [value];\n return arr.find((d) => d instanceof Date) ?? null;\n }\n\n // --- Value conversion (the ONLY boundary between the public `Date`/ISO contract\n // and the internal Date-based calendar logic) --------------------------------\n\n /** @ignore Whether the value carries a time component (date+time ISO / non-midnight `Date`). */\n private readonly hasTimeComponent = computed(() => this.showTime() || this.timeOnly());\n /** @ignore Date → ISO string, date-only unless `showTime`/`timeOnly`. */\n private toIsoValue(d: Date): string {\n return this.hasTimeComponent() ? toIsoDateTime(d) : toIsoDate(d);\n }\n /** @ignore ISO string → Date, `null` if malformed (never throws). */\n private fromIsoValue(s: string): Date | null {\n return this.hasTimeComponent() ? parseIsoDateTime(s) : parseIsoDate(s);\n }\n /** @ignore Internal Date → the shape `valueType` commits to emitting: a fresh `Date`\n * (normalized to midnight when no time is shown — never the original reference) in `'date'`\n * mode, an ISO string in `'iso'` mode. The single point deciding the emitted type. */\n private serializeValue(d: Date): Date | string {\n if (this.valueType() === 'iso') return this.toIsoValue(d);\n return this.hasTimeComponent() ? new Date(d) : startOfDay(d);\n }\n /** @ignore A single incoming item, `Date` or ISO string, auto-detected — `writeValue` accepts\n * either shape regardless of `valueType` (only the emitted side commits to one). Cloned when\n * already a `Date` (never the caller's own reference) — symmetric with `serializeValue`,\n * which never hands back the internal reference either; protects against the caller later\n * mutating that `Date` in place and silently desyncing `internalValue`. */\n private parseValue(v: Date | string): Date | null {\n return v instanceof Date ? new Date(v) : this.fromIsoValue(v);\n }\n /** @ignore Internal Date(s) → public value, right before it reaches `modelValue`/the CVA.\n * The cast is safe: `serializeValue` only branches on `valueType()`, constant across the\n * `map`, so the array is always homogeneous (`Date[]` or `string[]`, never mixed). */\n private toExternalValue(value: DatepickerDateValue): DatepickerValue {\n if (!value) return null;\n if (Array.isArray(value)) return value.map((d) => this.serializeValue(d)) as Date[] | string[];\n return this.serializeValue(value);\n }\n /** @ignore Public value → internal Date(s), right as it enters via `writeValue`. Invalid\n * entries are dropped rather than failing the whole value (a malformed item in a\n * `multiple`/`range` array shouldn't wipe out the rest). */\n private toInternalValue(value: DatepickerValue): DatepickerDateValue {\n if (!value) return null;\n if (Array.isArray(value)) {\n const parsed = value.map((v) => this.parseValue(v)).filter((d): d is Date => d !== null);\n return parsed.length ? parsed : null;\n }\n return this.parseValue(value);\n }\n\n // --- Display ---------------------------------------------------------\n\n /** @ignore */\n private formatDate(date: Date): string {\n const custom = this.dateFormat();\n if (custom) return custom(date);\n // Typeable trigger → numeric format that round-trips with the default parser.\n if (this.allowInput()) {\n const opts: Intl.DateTimeFormatOptions = {\n day: '2-digit',\n month: '2-digit',\n year: 'numeric',\n };\n if (this.showTime()) {\n opts.hour = '2-digit';\n opts.minute = '2-digit';\n }\n return new Intl.DateTimeFormat(this.resolvedLocale(), opts).format(date);\n }\n const options: Intl.DateTimeFormatOptions = this.showTime()\n ? { dateStyle: 'medium', timeStyle: 'short' }\n : { dateStyle: 'medium' };\n return new Intl.DateTimeFormat(this.resolvedLocale(), options).format(date);\n }\n\n /** @ignore `timeOnly` display — respects `hourFormat` (never the locale's own AM/PM-vs-24h\n * default) and `dateFormat` when provided (symmetric with `formatDate`/`formatMonth`, used\n * here as a time formatter). */\n private formatTime(date: Date): string {\n const custom = this.dateFormat();\n if (custom) return custom(date);\n return new Intl.DateTimeFormat(this.resolvedLocale(), {\n hour: '2-digit',\n minute: '2-digit',\n hour12: this.hourFormat() === '12',\n }).format(date);\n }\n\n /** @ignore Month-view display (numeric + round-trippable when the trigger is typeable). */\n private formatMonth(date: Date): string {\n if (this.allowInput() && !this.dateFormat()) {\n const yearFirst = this.dateFieldOrder().filter((f) => f !== 'day')[0] === 'year';\n const mm = this.pad(date.getMonth() + 1);\n const yyyy = String(date.getFullYear());\n return yearFirst ? `${yyyy}/${mm}` : `${mm}/${yyyy}`;\n }\n return this.capitalize(\n new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' }).format(\n date,\n ),\n );\n }\n\n /** @ignore Value rendered in the trigger. */\n protected override readonly displayValue = computed(() => {\n // While editing, mirror the raw text so the input keeps what the user types.\n const typed = this.typedValue();\n if (typed !== null) return typed;\n\n const dates = this.selectedDates();\n if (!dates.length) return '';\n const base = this.view();\n if (base === 'month') return this.formatMonth(dates[0]);\n if (base === 'year') return String(dates[0].getFullYear());\n\n if (this.timeOnly()) {\n return this.formatTime(dates[0]);\n }\n const mode = this.selectionMode();\n if (mode === 'multiple') return dates.map((d) => this.formatDate(d)).join(MULTIPLE_SEPARATOR);\n if (mode === 'range') return dates.map((d) => this.formatDate(d)).join(RANGE_DISPLAY_SEPARATOR);\n return this.formatDate(dates[0]);\n });\n\n // --- Header ----------------------------------------------------------\n\n /** @ignore Displayed decade start (year view). */\n private readonly decadeStart = computed(\n () => Math.floor(this.viewDate().getFullYear() / 10) * 10,\n );\n\n /** @ignore Header label depends on the active view. */\n protected readonly headerLabel = computed(() => {\n const v = this.currentView();\n if (v === 'year') return `${this.decadeStart()} - ${this.decadeStart() + 9}`;\n if (v === 'month') return String(this.viewDate().getFullYear());\n return this.capitalize(\n new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' }).format(\n this.viewDate(),\n ),\n );\n });\n\n // --- Weekday headers -------------------------------------------------\n\n /** @ignore Short (visible) + full (aria-label) weekday names — without both, either the header\n * stays `aria-hidden` or the short text alone leaves screen-reader users without column names. */\n protected readonly weekDayNames = computed<{ short: string; full: string }[]>(() => {\n const shortFmt = new Intl.DateTimeFormat(this.resolvedLocale(), { weekday: 'short' });\n const longFmt = new Intl.DateTimeFormat(this.resolvedLocale(), { weekday: 'long' });\n const sunday = new Date(2023, 0, 1); // getDay() === 0\n const first = this.firstDayOfWeek();\n return Array.from({ length: 7 }, (_, k) => {\n const d = addDays(sunday, (first + k) % 7);\n return {\n short: this.capitalize(shortFmt.format(d)),\n full: this.capitalize(longFmt.format(d)),\n };\n });\n });\n /** @ignore Full-date `aria-label` formatter for day gridcells (e.g. \"8 juillet 2026\"). */\n private readonly dayAriaFormatter = computed(\n () =>\n new Intl.DateTimeFormat(this.resolvedLocale(), {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n }),\n );\n\n // --- Grids -----------------------------------------------------------\n\n /** @ignore Month panels (1 or more) for the date view. */\n protected readonly monthPanels = computed<DatepickerMonthPanel[]>(() => {\n const count = Math.max(1, this.numberOfMonths());\n const start = firstOfMonth(this.viewDate());\n const fmt = new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'long', year: 'numeric' });\n return Array.from({ length: count }, (_, i) => {\n const monthDate = addMonths(start, i);\n return {\n monthDate,\n label: this.capitalize(fmt.format(monthDate)),\n weeks: this.buildMonthWeeks(monthDate),\n showPrev: i === 0,\n showNext: i === count - 1,\n };\n });\n });\n\n /** @ignore Month-picker grid (12 months of the displayed year). */\n protected readonly months = computed<DatepickerMonthCell[]>(() => {\n const fmt = new Intl.DateTimeFormat(this.resolvedLocale(), { month: 'short' });\n const year = this.viewDate().getFullYear();\n const sel = this.selectedDates();\n return Array.from({ length: 12 }, (_, i) => ({\n index: i,\n label: this.capitalize(fmt.format(new Date(year, i, 1))),\n selected: sel.some((d) => d.getFullYear() === year && d.getMonth() === i),\n disabled: this.isMonthDisabled(year, i),\n }));\n });\n\n /** @ignore Year-picker grid (the displayed decade). */\n protected readonly years = computed<DatepickerYearCell[]>(() => {\n const start = this.decadeStart();\n const sel = this.selectedDates();\n return Array.from({ length: 10 }, (_, i) => {\n const year = start + i;\n return {\n year,\n selected: sel.some((d) => d.getFullYear() === year),\n disabled: this.isYearDisabled(year),\n };\n });\n });\n\n /** @ignore Month/year cells chunked into the rows the CSS actually renders (3 and 2 columns,\n * see `.ui-datepicker-picker._month` / `._year`). A `role=\"grid\"` requires its `gridcell`s to\n * sit inside a `role=\"row\"`; without it the whole grid is invalid ARIA and screen readers get\n * no row structure to walk. Keep the chunk sizes in step with the SCSS column counts. */\n protected readonly monthRows = computed<DatepickerMonthCell[][]>(() => chunk(this.months(), 3));\n /** @ignore Year-picker rows — 2 columns, see `.ui-datepicker-picker._year`. */\n protected readonly yearRows = computed<DatepickerYearCell[][]>(() => chunk(this.years(), 2));\n\n /** @ignore Hours as shown in the 12h stepper (1–12). */\n protected readonly displayHours = computed(() => {\n if (this.hourFormat() === '24') return this.hours();\n const h = this.hours() % 12;\n return h === 0 ? 12 : h;\n });\n /** @ignore */\n protected readonly meridiem = computed<'AM' | 'PM'>(() => (this.hours() < 12 ? 'AM' : 'PM'));\n\n constructor() {\n super();\n\n // Never carry an open panel over to the next page (the field can live in\n // an app shell that survives the navigation).\n closeOnNavigation(() => this.close(false));\n\n // `showOnFocus`: open on a user-initiated focus of the trigger. Driven straight off the\n // FocusMonitor stream rather than the field's own `(focus)`, the origin has to be known\n // before deciding, and this way there is no listener-ordering question to get wrong.\n effect((onCleanup) => {\n const el = this.triggerInput()?.nativeInputElement();\n if (!el) return;\n const sub = this.focusMonitor.monitor(el).subscribe((origin) => {\n // `null` = blur. `'program'` = not a user gesture. And `suppressFocusOpen` covers the\n // focus WE give back on close, which the monitor still attributes to whatever gesture\n // triggered that close ('keyboard' for Escape, 'mouse' for a day click). A focus event on\n // a field without focus is the one Chrome sends along with its autofill.\n if (!origin || origin === 'program' || this.suppressFocusOpen || !hasFocus(el)) return;\n if (this.showOnFocus()) this.openFrom('focus');\n });\n onCleanup(() => {\n sub.unsubscribe();\n this.focusMonitor.stopMonitoring(el);\n });\n });\n\n // A press is dismissive only from where it STARTED. Released elsewhere, the browser\n // dispatches the click on the common ancestor of both targets, which the overlay reports as\n // an outside click: pressing in the field, with the panel opening under the cursor, would\n // close it again on release. Listening for the whole lifetime and not just while open is\n // what makes that very press catchable, since it precedes the opening.\n effect((onCleanup) => {\n if (this.inline()) return;\n const record = (event: Event) => (this.pressOrigin = event.target as Node | null);\n this.doc.addEventListener('pointerdown', record, true);\n onCleanup(() => {\n this.doc.removeEventListener('pointerdown', record, true);\n this.pressOrigin = null;\n });\n });\n\n // Keep time signals in sync with the (first) value.\n effect(() => {\n const first = this.firstSelectedFrom(this.internalValue() ?? null);\n untracked(() => {\n if (first) {\n this.hours.set(first.getHours());\n this.minutes.set(first.getMinutes());\n }\n });\n });\n }\n\n override writeValue(value: DatepickerValue): void {\n this.typedValue.set(null);\n this.hoursDraft.set(null);\n this.minutesDraft.set(null);\n const internal = this.toInternalValue(value ?? null);\n this.internalValue.set(internal);\n this.modelValue.set(value ?? undefined);\n const first = this.firstSelectedFrom(internal);\n if (first) {\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n this.focusedMonthIndex.set(first.getMonth());\n this.focusedYear.set(first.getFullYear());\n }\n }\n\n // --- Panel open/close ------------------------------------------------\n\n /**\n * @param viaIcon Whether this open was specifically triggered by the calendar icon (vs.\n * clicking the field itself, or a keyboard shortcut) — see the rove-into-grid comment below.\n */\n open(viaIcon = false): void {\n this.openFrom(viaIcon ? 'icon' : 'field');\n }\n\n /** @ignore Real implementation of {@link open}, keyed on the full {@link DatepickerOpenOrigin}\n * (the public `open()` only ever expresses two of the three). */\n private openFrom(origin: DatepickerOpenOrigin): void {\n if (this.inline() || this.isDisabled() || this.readonly() || this.panelOpen()) return;\n const base = this.firstSelectedFrom(this.internalValue() ?? null) ?? startOfDay(new Date());\n this.viewDate.set(firstOfMonth(base));\n this.currentView.set(this.view());\n this.focusedDate.set(this.clampToRange(startOfDay(base)));\n this.focusedMonthIndex.set(base.getMonth());\n this.focusedYear.set(base.getFullYear());\n this.overlayOrigin.set(this.resolveOverlayOrigin());\n // Before `panelOpen`: the overlay reads `hasBackdrop` when it attaches, not after.\n // `showOnFocus` makes the panel a popup whichever way it was opened, so the field never\n // gets two different behaviours depending on how it got there.\n this.nonModal.set(origin === 'focus' || this.showOnFocus());\n this.panelOpen.set(true);\n this.opened.emit();\n // Keep focus in the input whenever it's typeable; only rove into the grid when it isn't\n // (`triggerReadonly`) or when opened via the icon specifically (`viaIcon` — \"I want the\n // grid\"). Used to key off `selectionMode() !== 'single'` instead, which broke once `range`\n // got its own live mask: back then the field's own click ALSO called `open()` (now gated,\n // see `onTriggerClick`), so roving on every non-`single` mode stole focus back out of the\n // field the moment you clicked it to type.\n // Never on `'focus'`: moving the focus as a *consequence* of focusing the field is a WCAG\n // 3.2.1 change of context. `↓` is how the user asks for the grid there.\n if (\n origin !== 'focus' &&\n this.showCalendar() &&\n (this.triggerReadonly() || origin === 'icon')\n ) {\n if (this.currentView() === 'date') this.queueDayFocus();\n else if (this.currentView() === 'month') this.queueMonthFocus();\n else this.queueYearFocus();\n }\n }\n\n close(focusTrigger = true): void {\n if (!this.panelOpen()) return;\n this.panelOpen.set(false);\n this.emitTouch();\n this.closed.emit();\n if (focusTrigger) {\n // Guard the whole (synchronous) focus dispatch: with `showOnFocus` the returning focus\n // would otherwise re-open the panel we are closing, on Escape and on every selection.\n this.suppressFocusOpen = true;\n this.triggerInput()?.focus();\n this.suppressFocusOpen = false;\n }\n }\n\n /** @ignore */\n protected toggle(viaIcon = false): void {\n this.panelOpen() ? this.close() : this.open(viaIcon);\n }\n\n /** @ignore Right action: clear when clearable + set, otherwise toggle the panel (via the icon —\n * see `open`'s `viaIcon`). `stopPropagation` keeps the click from bubbling to the field (which\n * would otherwise also call `open()`, without `viaIcon`, right behind this one). */\n protected onIconClick(event: MouseEvent): void {\n event.stopPropagation();\n if (this.showClearButton()) this.clear();\n else this.toggle(true);\n }\n\n /**\n * @ignore Whether a click on the trigger opens the panel. It does when the field isn't\n * typeable (`triggerReadonly`: the field then *is* the button), and when `showIcon` is off\n * (no calendar toggle left — without this, nothing would open the panel with a mouse).\n *\n * On a typeable field it does NOT (FSHSP-180). The panel is an overlay with a permanent\n * backdrop, so an open panel swallows every further click on the field: the first click\n * placed the caret, the next one lost focus without moving it — correcting a single segment\n * with the mouse was impossible. Opening also live-commits the typed text through\n * `previewTyped`, which disarms the auto-\"/\" mask mid-entry (see `typingSlots`). The icon,\n * `↓` and typing are unaffected.\n */\n private readonly openOnTriggerClick = computed(\n () => this.triggerReadonly() || !this.showIcon() || this.showOnFocus(),\n );\n\n /** @ignore Click anywhere on the trigger (label, field or format hint — they share the wrapper). */\n protected onTriggerClick(): void {\n if (!this.openOnTriggerClick()) return;\n // The click may have landed on the label or the format hint, leaving focus outside the\n // wrapper — `Escape`/`↓` are bound there, so they'd be dead while the panel is open. A click\n // on the field itself is already focused by then, so this never moves the caret.\n if (!this.triggerReadonly()) this.triggerInput()?.focus();\n // Same origin as the focus that (usually) just opened it, so a click never upgrades a\n // non-modal panel into a modal one mid-interaction.\n this.openFrom('field');\n }\n\n /** @ignore Keys typed anywhere in the trigger wrapper. */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n // The overlay sits after the trigger in the DOM, so an open panel would capture the\n // tabulation. Closing it late is worse: the focus lands in a panel that detaches under it,\n // hence the synchronous refresh. The grid is entered with `↓`, per the APG combobox pattern.\n if (\n event.key === 'Tab' &&\n this.nonModal() &&\n this.panelOpen() &&\n this.tabLeavesTrigger(event)\n ) {\n this.close(false);\n this.cdr.detectChanges();\n return;\n }\n // The wrapper also catches keys pressed on the trigger's own action button. It is a native\n // `<button>`: `Enter` and `Space` must reach it. Only `Escape` stays ours.\n const inputEl = this.triggerInput()?.nativeInputElement();\n if (inputEl && event.target !== inputEl) {\n this.handleEscape(event);\n return;\n }\n // `Alt+↑` closes from either flavour of trigger.\n if (event.key === 'ArrowUp' && event.altKey) {\n event.preventDefault();\n this.close();\n return;\n }\n // Typeable trigger: let printable keys through, only intercept nav/commit.\n if (!this.triggerReadonly()) {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open();\n this.queueDayFocus();\n } else if (event.key === 'Enter') {\n event.preventDefault();\n this.commitTyped();\n if (this.panelOpen() && this.closeOnSelect() && !this.showTime()) this.close(false);\n } else {\n this.handleEscape(event);\n }\n return;\n }\n if (event.key === 'ArrowDown' || event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.open();\n } else {\n this.handleEscape(event);\n }\n }\n\n /** @ignore `Escape` is consumed only when it really closes the panel. A closed one lets it\n * bubble, so a parent dialog stays reachable by the same key. */\n private handleEscape(event: KeyboardEvent): void {\n if (event.key !== 'Escape' || !this.panelOpen()) return;\n event.preventDefault();\n event.stopPropagation();\n this.close();\n }\n\n /**\n * @ignore Track the raw text as the user types; live-preview the open panel. When a typing\n * mask applies (see `typingSlots`), auto-insert \"/\" as soon as a segment is complete (same\n * pattern as a card-expiry field) and reposition the caret accordingly.\n */\n protected onTriggerInput(value: string): void {\n if (this.triggerReadonly()) return;\n const el = this.triggerInput()?.nativeInputElement();\n // Written by the browser without focus: no blur/Enter will follow to commit it.\n if (el && !hasFocus(el)) {\n this.typedValue.set(value);\n this.commitTyped();\n // A reverted fill renders the same text as before it, which the binding would skip.\n el.value = this.displayValue();\n return;\n }\n const slots = this.typingSlots();\n if (!slots) {\n this.typedValue.set(value);\n // The mask is off because a value already exists, or an in-place edit suspended it (see\n // `typingSlots`) — but the field was just emptied by hand, with no blur/Enter to go through\n // `commitTyped`'s own clear. Commit it right here instead of waiting for a commit that may\n // never come: `hasValue()` flips to `false` for real and the suspension lifts, so\n // `typingSlots()` re-arms the mask on the very next keystroke, for whatever fresh date\n // comes next (FSHSP-118).\n if (!value.trim()) {\n this.maskSuspended.set(false);\n if (this.hasValue()) this.clear();\n }\n if (this.panelOpen()) this.previewTyped();\n return;\n }\n const caret = el?.selectionStart ?? value.length;\n // Number of data characters located BEFORE the caret (stable anchor, same trick as ui-input-mask).\n const dataBeforeCaret = extractMaskData(value.slice(0, caret)).length;\n const newData = extractMaskData(value);\n // Editing INSIDE the text (data still sits after the caret) rather than appending at its\n // tail: the mask can only re-derive the whole field from one flat digit stream, so re-running\n // it here re-slices every following segment by however much this edit grew or shrank —\n // replacing the month \"07\" with a single \"1\" turned \"08/07/2026\" into \"08/12/026\", the year\n // silently losing a digit (FSHSP-179). Give the mask up for the rest of the entry instead —\n // exactly what `allowInput` already promises once a value exists: plain text, parsed on\n // blur/Enter. For the rest of the entry, not just this keystroke: the digits still to come\n // belong to the segment being fixed, and re-arming under the caret would shift them again.\n if (dataBeforeCaret < newData.length) {\n this.maskSuspended.set(true);\n this.typedValue.set(value);\n if (this.panelOpen()) this.previewTyped();\n return;\n }\n // A deletion (Backspace/Delete/selection-clear) leaves only ALREADY-valid digits behind —\n // re-running the bounds check against them (meant to reject a just-typed invalid leading\n // digit, e.g. \"8\" can't start a 1-31 day) can instead skip a still-valid residual one and\n // misalign every segment after it (FSHSP-118: only the year, which carries no bound, always\n // survived editing untouched). Comparing data lengths (not `event.inputType`, unavailable\n // here) distinguishes typing/pasting (grows or holds, still bounds-checked) from deleting\n // (shrinks, bounds-checked only up to the final blur/Enter parse — see `finalizeParsed`).\n // Baseline is `displayValue()` (what's actually shown before this edit — typed text OR a\n // calendar-committed date, `typedValue` alone would miss the latter), read before any\n // signal write below still reflects the state.\n const enforceBounds = newData.length >= extractMaskData(this.displayValue()).length;\n const { text, tokenIndices, dataEnd } = autoFormatSegments(slots, newData, { enforceBounds });\n this.typedValue.set(text);\n if (el) {\n el.value = text;\n // A deletion (!enforceBounds) whose caret sat at/past all remaining data (editing at the\n // tail, by far the common case — see `enforceBounds` above) always lands on `dataEnd`,\n // never on `caretForMask`'s result: that function answers \"where's the next slot to type\n // INTO\", which for a just-emptied segment is the position right after its\n // eagerly-auto-inserted trailing separator — landing there makes the very next Backspace\n // delete that decorative separator (silently re-inserted next render) instead of the\n // segment's last digit, so deleting looks stuck one keystroke short forever (FSHSP-118).\n // A mid-string deletion (more data still sits after the caret) falls back to the normal\n // computation unchanged — still an approximation (see the class doc), just not this trap.\n const atTail = dataBeforeCaret >= newData.length;\n const pos =\n !enforceBounds && atTail ? dataEnd : caretForMask(tokenIndices, dataBeforeCaret, dataEnd);\n el.setSelectionRange(pos, pos);\n }\n if (this.panelOpen()) this.previewTyped();\n }\n\n /** @ignore Whether `text` already has its time portion too, when `showTime` requires one.\n * `previewTyped` needs this: without it, `hasValue()` (and the mask) flipped off the moment\n * day/month/year were typed, before a single time digit — the next digit then glued onto the\n * year with no mask to insert \"HH:MM\" (FSHSP-118). `commitTyped` doesn't use this: a date typed\n * and blurred without a time is still a legitimate commit (time defaults to the steppers). */\n private hasCompleteTimeIfNeeded(text: string): boolean {\n if (!this.showTime() || this.view() !== 'date') return true;\n const groups = text.match(/\\d+/g) ?? [];\n return groups.length >= this.activeFields().length + 2;\n }\n\n /**\n * @ignore Reflect a fully-typed date (or `range`/`multiple` set) in the open panel\n * (navigate + highlight) without reformatting the field, so the caret stays put while typing.\n */\n private previewTyped(): void {\n const raw = this.typedValue();\n if (raw === null || !raw.trim()) return;\n if (this.selectionMode() === 'single' && !this.hasCompleteTimeIfNeeded(raw.trim())) return;\n const picked = this.parseTypedValue(raw.trim(), true);\n if (!picked) return;\n const first = Array.isArray(picked) ? picked[0] : picked;\n // Update the model (drives the selected-day highlight + live value) but keep\n // `typedValue` so `displayValue` still returns the raw text (no caret jump).\n this.internalValue.set(picked);\n const external = this.toExternalValue(picked);\n this.modelValue.set(external ?? undefined);\n this.emitChange(external);\n this.valueChange.emit(external);\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n }\n\n /** @ignore Parse the typed text on blur, then forward the blur. */\n protected onTriggerBlur(event: FocusEvent): void {\n this.commitTyped();\n const next = event.relatedTarget as Node | null;\n if (!this.panelContains(next)) this.emitTouch();\n this.inputBlur.emit(event);\n }\n\n /**\n * @ignore Focus leaving the trigger altogether. A non-modal panel has neither backdrop nor\n * focus trap, so tabbing on to the next field is a dismissal that nothing else would perform\n */\n protected onTriggerFocusOut(event: FocusEvent): void {\n if (!this.nonModal() || !this.panelOpen()) return;\n const next = event.relatedTarget as Node | null;\n if (this.panelContains(next) || this.triggerContains(next)) return;\n this.close(false);\n }\n\n /** @ignore Focus leaving a non-modal panel altogether (`Tab` out of the grid) — same\n * dismissal as {@link onTriggerBlur}, from the other side. */\n protected onPanelFocusOut(event: FocusEvent): void {\n if (this.inline() || !this.nonModal() || !this.panelOpen()) return;\n const next = event.relatedTarget as Node | null;\n if (!next) return;\n if (this.panelContains(next) || this.triggerContains(next)) return;\n this.close(false);\n }\n\n /** @ignore Pointer landing outside the overlay. A non-modal panel leaves the trigger live\n * underneath, and a press there must place the caret, not dismiss the panel it would then\n * immediately re-open. */\n protected onOutsideClick(event: MouseEvent): void {\n const origin = this.pressOrigin ?? (event.target as Node | null);\n if (this.triggerContains(origin) || this.panelContains(origin)) return;\n this.close(false);\n }\n\n /** @ignore Whether this `Tab` walks out of the trigger, rather than between the field and its\n * own action button (at most two stops, so an exact list beats any heuristic). */\n private tabLeavesTrigger(event: KeyboardEvent): boolean {\n const wrapper = this.triggerWrapperEl()?.nativeElement;\n if (!wrapper) return true;\n const stops = Array.from(\n wrapper.querySelectorAll<HTMLElement>('input:not([disabled]), button:not([disabled])'),\n ).filter((el) => el.tabIndex >= 0);\n const index = stops.indexOf(event.target as HTMLElement);\n if (index === -1) return true;\n return event.shiftKey ? index === 0 : index === stops.length - 1;\n }\n\n /** @ignore Pressing the panel's own chrome must not pull the focus out of the field: a\n * non-modal panel would be dismissed by its own focusout. Its controls keep the default. */\n protected onPanelMousedown(event: MouseEvent): void {\n if (!this.nonModal()) return;\n if ((event.target as HTMLElement | null)?.closest('button, input')) return;\n event.preventDefault();\n }\n\n /** @ignore */\n private panelContains(node: Node | null): boolean {\n return !!node && !!this.panelEl()?.nativeElement.contains(node);\n }\n\n /** @ignore */\n private triggerContains(node: Node | null): boolean {\n return !!node && !!this.triggerWrapperEl()?.nativeElement.contains(node);\n }\n\n /** @ignore Parse and apply the typed text (single date, or `range`/`multiple` set — see\n * `parseTypedValue`); revert to the previous value if invalid. */\n protected commitTyped(): void {\n if (this.triggerReadonly()) return;\n const raw = this.typedValue();\n if (raw === null) return; // untouched\n // Parsed, cleared or reverted, this commit ends the current entry: re-arm the live mask for\n // the next one (`commit` does it too, for the paths that go through it).\n this.maskSuspended.set(false);\n const text = raw.trim();\n if (!text) {\n this.typedValue.set(null);\n if (this.hasValue()) this.clear();\n return;\n }\n const picked = this.parseTypedValue(text, true);\n if (picked) {\n this.commit(picked); // clears typedValue and reformats\n const first = Array.isArray(picked) ? picked[0] : picked;\n // `dateSelect` reports \"which single day was just picked\" — no such thing for a typed\n // range/list committed all at once, so it's single-mode only (matches its `Date | string`\n // output type, which couldn't carry an array anyway).\n if (!Array.isArray(picked)) this.dateSelect.emit(this.serializeValue(picked));\n this.viewDate.set(firstOfMonth(first));\n this.focusedDate.set(startOfDay(first));\n } else {\n this.typedValue.set(null); // revert: displayValue reformats the current value\n }\n }\n\n /**\n * @ignore Custom parser when provided, otherwise the locale-aware numeric parser.\n * `requireComplete` gates the default parser to fully-typed dates (custom\n * parsers decide completeness themselves).\n */\n private parseTyped(text: string, requireComplete = false): Date | null {\n const custom = this.parseDate();\n return custom ? custom(text) : this.defaultParse(text, requireComplete);\n }\n\n /**\n * @ignore Parses typed text into whatever shape the current `selectionMode` commits: a single\n * `Date` for `single`, a `Date[]` for `range`/`multiple` (see `parseTypedMulti`). `null` means\n * \"not a complete, enabled value for this mode\" — the caller reverts.\n */\n private parseTypedValue(text: string, requireComplete: boolean): Date | Date[] | null {\n if (this.selectionMode() === 'single') {\n const parsed = this.parseTyped(text, requireComplete);\n return parsed && !this.isParsedDisabled(parsed) ? parsed : null;\n }\n return this.parseTypedMulti(text, requireComplete);\n }\n\n /** @ignore `range`/`multiple` typed entry (FSHSP-118): splits via `splitTypedSegments`, parses\n * each part with `parseTyped` (a custom `parseDate` applies per part, like `dateFormat` does\n * per date on display). `range` needs exactly 2 parts, reordered chronologically; `multiple`\n * takes any count, deduped. One bad/disabled part fails the whole thing. Always `startOfDay` —\n * no `showTime` support here. */\n private parseTypedMulti(text: string, requireComplete: boolean): Date[] | null {\n const mode = this.selectionMode();\n const sep = mode === 'range' ? RANGE_SEPARATOR : MULTIPLE_SEPARATOR;\n const parts = this.splitTypedSegments(text, sep);\n if (mode === 'range' && parts.length !== 2) return null;\n if (mode === 'multiple' && parts.length < 1) return null;\n const parsed = parts.map((p) => this.parseTyped(p, requireComplete));\n if (parsed.some((d) => d === null || this.isParsedDisabled(d))) return null;\n const dates = (parsed as Date[]).map(startOfDay);\n if (mode === 'range') return dates.sort((a, b) => a.getTime() - b.getTime());\n return dates.filter((d, i) => dates.findIndex((o) => isSameDay(o, d)) === i);\n }\n\n /** @ignore Splits typed `range`/`multiple` text into per-date segments (FSHSP-118). A plain\n * `text.split(sep)` breaks when a date's own formatted text contains `sep` (e.g. a `\", \"`\n * `dateFormat` in `multiple`, or an ISO dash in `range`) — instead, a `sep` occurrence is only\n * accepted as a boundary once the text before it already parses as a complete date. */\n private splitTypedSegments(text: string, sep: string): string[] {\n const segments: string[] = [];\n let rest = text.trim();\n while (rest.length) {\n let boundary = -1;\n let searchFrom = 0;\n for (;;) {\n const idx = rest.indexOf(sep, searchFrom);\n if (idx === -1) break;\n if (this.parseTyped(rest.slice(0, idx), true)) {\n boundary = idx;\n break;\n }\n searchFrom = idx + 1;\n }\n if (boundary === -1) {\n segments.push(rest.trim());\n break;\n }\n segments.push(rest.slice(0, boundary).trim());\n rest = rest.slice(boundary + sep.length).trim();\n }\n return segments.filter((s) => s.length > 0);\n }\n\n /**\n * @ignore Locale-aware numeric parser (day/month/year order from `dateFieldOrder`).\n * With `requireComplete`, returns `null` unless every component is present\n * (and the year has 2 or ≥4 digits) — used for live preview to avoid jumps.\n */\n private defaultParse(text: string, requireComplete = false): Date | null {\n const groups = text.match(/\\d+/g) ?? [];\n const nums = groups.map(Number);\n if (!nums.length) return null;\n const view = this.view();\n if (view === 'year') {\n if (requireComplete && (groups[0]?.length ?? 0) < 4) return null;\n return finalizeParsed(this.normalizeYear(nums[0]), 0, 1, 0, 0);\n }\n\n const fields = this.activeFields();\n if (requireComplete) {\n if (groups.length < fields.length) return null;\n const yearLen = groups[fields.indexOf('year')]?.length ?? 0;\n if (yearLen !== 2 && yearLen < 4) return null;\n }\n let day = 1;\n let month = 0;\n let year = this.viewDate().getFullYear();\n fields.forEach((field, i) => {\n const n = nums[i];\n if (n === undefined) return;\n if (field === 'day') day = n;\n else if (field === 'month') month = n - 1;\n else year = this.normalizeYear(n);\n });\n\n let h = this.hours();\n let min = this.minutes();\n if (this.showTime() && view === 'date') {\n const t = nums.slice(fields.length);\n if (t.length >= 1) h = t[0];\n if (t.length >= 2) min = t[1];\n if (this.hourFormat() === '12') {\n if (/p/i.test(text) && h < 12) h += 12;\n if (/a/i.test(text) && h === 12) h = 0;\n }\n }\n return finalizeParsed(year, month, view === 'month' ? 1 : day, h, min);\n }\n\n /** @ignore 2-digit years → 2000s. */\n private normalizeYear(y: number): number {\n return y < 100 ? 2000 + y : y;\n }\n\n /** @ignore Range/disabled check for a parsed value, granular to the base view. */\n private isParsedDisabled(date: Date): boolean {\n const v = this.view();\n if (v === 'year') return this.isYearDisabled(date.getFullYear());\n if (v === 'month') return this.isMonthDisabled(date.getFullYear(), date.getMonth());\n return this.isDateDisabled(startOfDay(date));\n }\n\n // --- Header interactions --------------------------------------------\n\n /** @ignore Click the header title → drill up (date → month → year). Single-month only. */\n protected onHeaderClick(): void {\n if (!this.singleMonth()) return;\n const v = this.currentView();\n if (v === 'date') {\n this.focusedMonthIndex.set(this.viewDate().getMonth());\n this.currentView.set('month');\n } else if (v === 'month') {\n this.focusedYear.set(this.viewDate().getFullYear());\n this.currentView.set('year');\n // Last level up: the title turns `disabled` here, so the focus it was holding is about to\n // be dropped on `<body>` and the grid that just appeared would answer no arrow key. Hand\n // it to the roving year cell, as the drill-down transitions do.\n this.queueYearFocus();\n }\n }\n\n /** @ignore Prev/next arrow — steps month / year / decade depending on the view. */\n protected onPrev(): void {\n this.step(-1);\n }\n protected onNext(): void {\n this.step(1);\n }\n /** @ignore */\n private step(dir: 1 | -1): void {\n const v = this.currentView();\n if (v === 'date') this.changeMonth(dir);\n else if (v === 'month')\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir, this.viewDate().getMonth(), 1),\n );\n else\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir * 10, this.viewDate().getMonth(), 1),\n );\n }\n /** @ignore */\n protected changeMonth(delta: number): void {\n const next = addMonths(this.viewDate(), delta);\n this.viewDate.set(next);\n this.monthChange.emit({ month: next.getMonth(), year: next.getFullYear() });\n }\n\n // --- Selection -------------------------------------------------------\n\n /** @ignore Pick a day from the grid. */\n protected selectDay(cell: DatepickerDay): void {\n if (cell.disabled || this.isDisabled() || this.readonly()) return;\n const picked = new Date(cell.date);\n if (this.showTime()) picked.setHours(this.hours(), this.minutes(), 0, 0);\n\n const mode = this.selectionMode();\n let value: DatepickerDateValue;\n let complete = true;\n if (mode === 'multiple') {\n const arr = [...this.selectedDates()];\n const idx = arr.findIndex((d) => isSameDay(d, picked));\n if (idx >= 0) arr.splice(idx, 1);\n else arr.push(picked);\n value = arr;\n complete = false; // multiple never auto-closes\n } else if (mode === 'range') {\n const arr = this.selectedDates();\n if (arr.length !== 1) {\n value = [picked];\n complete = false;\n } else {\n value = picked < startOfDay(arr[0]) ? [picked] : [arr[0], picked];\n complete = Array.isArray(value) && value.length === 2;\n }\n } else {\n value = picked;\n }\n\n this.commit(value);\n this.dateSelect.emit(this.serializeValue(picked));\n this.viewDate.set(firstOfMonth(picked));\n this.focusedDate.set(startOfDay(picked));\n if (this.closeOnSelect() && !this.showTime() && !this.inline() && complete) this.close();\n }\n\n /** @ignore Month-picker / drill-down month selection. */\n protected selectMonth(cell: DatepickerMonthCell): void {\n if (cell.disabled) return;\n const d = new Date(this.viewDate().getFullYear(), cell.index, 1);\n this.viewDate.set(d);\n if (this.view() === 'month') {\n this.commit(d);\n this.dateSelect.emit(this.serializeValue(d));\n if (this.closeOnSelect() && !this.showTime() && !this.inline()) this.close();\n } else {\n this.currentView.set('date');\n this.focusedDate.set(this.clampToRange(startOfDay(d)));\n this.queueDayFocus();\n }\n }\n\n /** @ignore Year-picker / drill-down year selection. */\n protected selectYear(cell: DatepickerYearCell): void {\n if (cell.disabled) return;\n const d = new Date(cell.year, this.view() === 'year' ? 0 : this.viewDate().getMonth(), 1);\n this.viewDate.set(d);\n if (this.view() === 'year') {\n this.commit(d);\n this.dateSelect.emit(this.serializeValue(d));\n if (this.closeOnSelect() && !this.showTime() && !this.inline()) this.close();\n } else {\n this.currentView.set('month');\n this.focusedMonthIndex.set(d.getMonth());\n this.queueMonthFocus();\n }\n }\n\n /** @ignore Apply the time signals to the value (single selection only). */\n protected applyTime(): void {\n if (this.selectionMode() !== 'single') return;\n const base =\n this.firstSelectedFrom(this.internalValue() ?? null) ??\n startOfDay(this.timeOnly() ? new Date() : this.viewDate());\n const next = new Date(base);\n next.setHours(this.hours(), this.minutes(), 0, 0);\n this.commit(next);\n }\n\n /** @ignore Zero-padded labels for the steppers. */\n protected readonly hoursLabel = computed(() =>\n this.pad(this.hourFormat() === '12' ? this.displayHours() : this.hours()),\n );\n protected readonly minutesLabel = computed(() => this.pad(this.minutes()));\n\n /** @ignore Raw digits while a time field is being typed in; `null` when not editing. */\n private readonly hoursDraft = signal<string | null>(null);\n private readonly minutesDraft = signal<string | null>(null);\n /** @ignore Text rendered in a time field: the draft while typing, the padded label otherwise. */\n protected readonly hoursValue = computed(() => this.hoursDraft() ?? this.hoursLabel());\n protected readonly minutesValue = computed(() => this.minutesDraft() ?? this.minutesLabel());\n /** @ignore Accepted hours range (the 12h clock shows 1–12). */\n protected readonly hourBounds = computed(() =>\n this.hourFormat() === '12' ? { min: 1, max: 12 } : { min: 0, max: 23 },\n );\n /** @ignore The hours/minutes fields accept typing. */\n protected readonly timeEditable = computed(\n () => this.editableTime() && !this.isDisabled() && !this.readonly(),\n );\n /** @ignore The time steppers (chevrons + AM/PM toggle) accept interaction — unlike\n * `timeEditable`, not gated on `editableTime` (the steppers stay usable in\n * `StepperOnlyTime`-style configs; only `disabled`/`readonly` freeze them). */\n protected readonly timeControlsEnabled = computed(() => !this.isDisabled() && !this.readonly());\n\n /** @ignore Step hours (wraps 0↔23; also flips meridiem across the 12h boundary). */\n protected stepHours(dir: 1 | -1): void {\n if (!this.timeControlsEnabled()) return;\n this.hoursDraft.set(null);\n this.hours.set((((this.hours() + dir) % 24) + 24) % 24);\n this.applyTime();\n }\n /** @ignore Step minutes by `stepMinute` (wraps 0↔59). */\n protected stepMinutes(dir: 1 | -1): void {\n if (!this.timeControlsEnabled()) return;\n this.minutesDraft.set(null);\n const step = Math.max(1, this.stepMinute());\n this.minutes.set((((this.minutes() + dir * step) % 60) + 60) % 60);\n this.applyTime();\n }\n /** @ignore */\n protected toggleMeridiem(): void {\n if (!this.timeControlsEnabled()) return;\n this.hoursDraft.set(null);\n this.hours.set((this.hours() + 12) % 24);\n this.applyTime();\n }\n\n /**\n * @ignore Typing in the hours field. The digits are held as a draft (so `0` can\n * be the start of `09`) and committed as soon as they form a valid hour.\n */\n protected onHoursInput(event: Event): void {\n if (!this.timeEditable()) return; // read-only fields never emit natively — belt and braces\n const { min, max } = this.hourBounds();\n const digits = this.acceptTimeDigits(event, this.hoursValue(), max);\n if (digits === null) return;\n this.hoursDraft.set(digits);\n const n = Number(digits);\n if (!digits || n < min || n > max) return; // not an hour yet (e.g. `0` on a 12h clock)\n this.hours.set(this.hourFormat() === '12' ? this.to24(n) : n);\n this.applyTime();\n }\n\n /** @ignore Typing in the minutes field — exact value (`stepMinute` only drives the steppers). */\n protected onMinutesInput(event: Event): void {\n if (!this.timeEditable()) return;\n const digits = this.acceptTimeDigits(event, this.minutesValue(), 59);\n if (digits === null || !digits) return;\n this.minutesDraft.set(digits);\n this.minutes.set(Number(digits));\n this.applyTime();\n }\n\n /**\n * @ignore Keep a time field to at most 2 digits and reject what can never be in\n * range (`33`, or `13` on a 12h clock) — the field reverts to `current`, so the\n * keystroke is simply refused. Returns the accepted digits, or `null` if rejected.\n */\n private acceptTimeDigits(event: Event, current: string, max: number): string | null {\n const el = event.target as HTMLInputElement;\n const digits = el.value.replace(/\\D/g, '').slice(0, 2);\n const accepted = !digits || Number(digits) <= max;\n const text = accepted ? digits : current;\n // `[value]` is a no-op whenever the bound text is unchanged → write the DOM here.\n if (el.value !== text) {\n el.value = text;\n el.setSelectionRange(text.length, text.length);\n }\n return accepted ? digits : null;\n }\n\n /** @ignore 12h display hour (1–12) + the current meridiem → 24h hour. */\n private to24(displayed: number): number {\n return (displayed % 12) + (this.meridiem() === 'PM' ? 12 : 0);\n }\n\n /** @ignore Focusing a time field selects it, so typing replaces the value. */\n protected onTimeFocus(event: FocusEvent): void {\n (event.target as HTMLInputElement).select();\n }\n\n /** @ignore Leaving a time field drops the draft: the zero-padded label comes back. */\n protected onHoursBlur(): void {\n this.hoursDraft.set(null);\n }\n /** @ignore */\n protected onMinutesBlur(): void {\n this.minutesDraft.set(null);\n }\n\n /** @ignore ARIA spinbutton keyboard: ↑/↓ step, PageUp/PageDown ±, Enter commits. */\n protected onHourKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp' || event.key === 'PageUp') {\n event.preventDefault();\n this.stepHours(1);\n } else if (event.key === 'ArrowDown' || event.key === 'PageDown') {\n event.preventDefault();\n this.stepHours(-1);\n } else if (event.key === 'Enter') {\n event.preventDefault(); // commit in place, never submit the surrounding form\n this.hoursDraft.set(null);\n }\n }\n /** @ignore */\n protected onMinuteKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowUp' || event.key === 'PageUp') {\n event.preventDefault();\n this.stepMinutes(1);\n } else if (event.key === 'ArrowDown' || event.key === 'PageDown') {\n event.preventDefault();\n this.stepMinutes(-1);\n } else if (event.key === 'Enter') {\n event.preventDefault();\n this.minutesDraft.set(null);\n }\n }\n /** @ignore */\n protected onMeridiemKeydown(event: KeyboardEvent): void {\n if (!this.timeControlsEnabled()) return;\n if (event.key === 'ArrowUp' || event.key === 'ArrowDown') {\n event.preventDefault();\n this.toggleMeridiem();\n }\n }\n\n /** @ignore */\n private pad(n: number): string {\n return String(n).padStart(2, '0');\n }\n\n /** @ignore */\n protected selectToday(): void {\n const today = startOfDay(new Date());\n if (this.isDateDisabled(today)) return;\n if (this.showTime()) today.setHours(this.hours(), this.minutes(), 0, 0);\n this.commit(this.selectionMode() === 'single' ? today : [today]);\n this.dateSelect.emit(this.serializeValue(today));\n this.viewDate.set(firstOfMonth(today));\n this.focusedDate.set(today);\n if (\n this.closeOnSelect() &&\n !this.showTime() &&\n !this.inline() &&\n this.selectionMode() !== 'multiple'\n )\n this.close();\n }\n\n /** @ignore */\n protected clear(): void {\n this.commit(null);\n this.cleared.emit();\n }\n\n // --- Grid keyboard navigation (roving focus, date view) ---------------\n\n /** @ignore */\n protected onGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedDate();\n let next: Date | null;\n switch (event.key) {\n case 'ArrowLeft':\n next = addDays(current, -1);\n break;\n case 'ArrowRight':\n next = addDays(current, 1);\n break;\n case 'ArrowUp':\n next = addDays(current, -7);\n break;\n case 'ArrowDown':\n next = addDays(current, 7);\n break;\n case 'Home':\n next = addDays(current, -((current.getDay() - this.firstDayOfWeek() + 7) % 7));\n break;\n case 'End':\n next = addDays(current, 6 - ((current.getDay() - this.firstDayOfWeek() + 7) % 7));\n break;\n case 'PageUp':\n next = addMonths(current, event.shiftKey ? -12 : -1);\n break;\n case 'PageDown':\n next = addMonths(current, event.shiftKey ? 12 : 1);\n break;\n case 'Enter':\n case ' ':\n event.preventDefault();\n this.selectDay(this.buildDay(startOfDay(current), this.viewDate()));\n return;\n case 'Escape':\n this.handleEscape(event);\n return;\n default:\n return;\n }\n event.preventDefault();\n if (!next) return;\n this.focusedDate.set(startOfDay(next));\n this.ensureMonthVisible(next);\n this.queueDayFocus();\n }\n\n /** @ignore The roving-focus cell. `otherMonth` cells are excluded so a date\n * shown twice across adjacent panels (multi-month) yields a single tab stop. */\n protected isFocusableDay(cell: DatepickerDay): boolean {\n return !cell.otherMonth && isSameDay(cell.date, this.focusedDate());\n }\n\n // --- Grid keyboard navigation (roving focus, month/year pickers) -------\n\n /**\n * @ignore Shared arrow/Home/End math for a fixed-size, `columns`-wide grid (the month picker's\n * 12 cells / 3 columns and the year picker's 10 cells / 2 columns) — the one piece of roving-\n * focus logic actually common to all three grids; `PageUp`/`PageDown`/`Enter`/`Escape` differ\n * per grid (paging semantics, selecting a month vs. a year) and stay in their own handler.\n * Returns `null` for a key it doesn't handle.\n */\n private navigateGridIndex(\n key: string,\n current: number,\n columns: number,\n count: number,\n ): number | null {\n switch (key) {\n case 'ArrowLeft':\n return Math.max(0, current - 1);\n case 'ArrowRight':\n return Math.min(count - 1, current + 1);\n case 'ArrowUp':\n return current - columns >= 0 ? current - columns : current;\n case 'ArrowDown':\n return current + columns < count ? current + columns : current;\n case 'Home':\n return Math.floor(current / columns) * columns;\n case 'End':\n return Math.min(count - 1, Math.floor(current / columns) * columns + columns - 1);\n default:\n return null;\n }\n }\n\n /** @ignore Month-picker grid: ←↑→↓/Home/End move within the 12 months (3 columns), PageUp/PageDown\n * step the displayed year (Shift = ×10), Enter/Space picks the focused month. */\n protected onMonthGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedMonthIndex();\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.selectMonth(this.months()[current]);\n return;\n }\n if (event.key === 'Escape') {\n this.handleEscape(event);\n return;\n }\n if (event.key === 'PageUp' || event.key === 'PageDown') {\n event.preventDefault();\n const dir = event.key === 'PageUp' ? -1 : 1;\n const years = event.shiftKey ? 10 : 1;\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + dir * years, this.viewDate().getMonth(), 1),\n );\n this.queueMonthFocus();\n return;\n }\n const next = this.navigateGridIndex(event.key, current, 3, 12);\n if (next === null) return;\n event.preventDefault();\n this.focusedMonthIndex.set(next);\n this.queueMonthFocus();\n }\n\n /** @ignore Year-picker grid: ←↑→↓/Home/End move within the displayed decade (2 columns),\n * PageUp/PageDown step by a decade (Shift = ×10 decades), Enter/Space picks the focused year. */\n protected onYearGridKeydown(event: KeyboardEvent): void {\n const current = this.focusedYear();\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.selectYear(this.years()[current - this.decadeStart()]);\n return;\n }\n if (event.key === 'Escape') {\n this.handleEscape(event);\n return;\n }\n if (event.key === 'PageUp' || event.key === 'PageDown') {\n event.preventDefault();\n const dir = event.key === 'PageUp' ? -1 : 1;\n const delta = (event.shiftKey ? 100 : 10) * dir;\n this.viewDate.set(\n new Date(this.viewDate().getFullYear() + delta, this.viewDate().getMonth(), 1),\n );\n this.focusedYear.set(current + delta);\n this.queueYearFocus();\n return;\n }\n const idx = this.navigateGridIndex(event.key, current - this.decadeStart(), 2, 10);\n if (idx === null) return;\n event.preventDefault();\n this.focusedYear.set(this.decadeStart() + idx);\n this.queueYearFocus();\n }\n\n /** @ignore The month-picker roving-focus cell. */\n protected isFocusableMonth(cell: DatepickerMonthCell): boolean {\n return cell.index === this.focusedMonthIndex();\n }\n\n /** @ignore The year-picker roving-focus cell. */\n protected isFocusableYear(cell: DatepickerYearCell): boolean {\n return cell.year === this.focusedYear();\n }\n\n /** @ignore Shift the visible month window just enough to contain `date`. */\n private ensureMonthVisible(date: Date): void {\n const count = Math.max(1, this.numberOfMonths());\n const start = firstOfMonth(this.viewDate());\n const end = addMonths(start, count - 1);\n const month = firstOfMonth(date);\n if (month < start) this.viewDate.set(month);\n else if (month > end) this.viewDate.set(addMonths(month, 1 - count));\n }\n\n // --- Internals -------------------------------------------------------\n\n /** @ignore Sole \"normal\" write path: takes internal Date(s), serializes to the public ISO\n * string(s) right here, before it ever reaches `modelValue`/the CVA. Callers keep passing\n * `Date`/`Date[]`/`null` exactly as before — the ISO contract lives entirely in this method. */\n private commit(value: DatepickerDateValue): void {\n this.typedValue.set(null); // any committed value re-formats the trigger\n this.maskSuspended.set(false); // …and re-arms the live mask (see `typingSlots`)\n this.internalValue.set(value ?? null);\n const external = this.toExternalValue(value ?? null);\n this.modelValue.set(external ?? undefined);\n this.emitChange(external);\n this.valueChange.emit(external);\n }\n\n /** @ignore Build a day-cell descriptor with its selection/range flags. */\n private buildDay(date: Date, viewMonth: Date): DatepickerDay {\n const today = startOfDay(new Date());\n const mode = this.selectionMode();\n const sel = this.selectedDates();\n let selected = false;\n let rangeStart = false;\n let rangeEnd = false;\n let inRange = false;\n if (mode === 'range') {\n const [s, e] = sel;\n if (s && isSameDay(date, s)) {\n rangeStart = true;\n selected = true;\n }\n if (e && isSameDay(date, e)) {\n rangeEnd = true;\n selected = true;\n }\n if (s && e && date > startOfDay(s) && date < startOfDay(e)) inRange = true;\n } else {\n selected = sel.some((d) => isSameDay(d, date));\n }\n return {\n date,\n day: date.getDate(),\n month: date.getMonth(),\n year: date.getFullYear(),\n otherMonth: date.getMonth() !== viewMonth.getMonth(),\n today: isSameDay(date, today),\n selected,\n disabled: this.isDateDisabled(date),\n ariaLabel: this.dayAriaFormatter().format(date),\n rangeStart,\n rangeEnd,\n inRange,\n ts: date.getTime(),\n };\n }\n\n /** @ignore 6×7 grid for a given month, incl. adjacent-month spill-over. */\n private buildMonthWeeks(monthDate: Date): DatepickerDay[][] {\n const first = firstOfMonth(monthDate);\n const offset = (first.getDay() - this.firstDayOfWeek() + 7) % 7;\n const gridStart = addDays(first, -offset);\n return Array.from({ length: 6 }, (_, w) =>\n Array.from({ length: 7 }, (_, d) => this.buildDay(addDays(gridStart, w * 7 + d), monthDate)),\n );\n }\n\n /** @ignore */\n private resolveOverlayOrigin(): Element | null {\n const host = this.triggerRef()?.nativeElement;\n // Anchor on the bordered input box so a helper message below doesn't push the panel down.\n return host?.querySelector('.ui-field-box') ?? host ?? null;\n }\n\n /** @ignore Focus the roving-tabindex cell matching `selector`, once the DOM reflects the\n * just-updated `focusedDate`/`focusedMonthIndex`/`focusedYear` signal. */\n private queueCellFocus(selector: string): void {\n if (typeof requestAnimationFrame === 'undefined') return;\n requestAnimationFrame(() => {\n this.panelEl()?.nativeElement.querySelector<HTMLElement>(selector)?.focus();\n });\n }\n /** @ignore */\n private queueDayFocus(): void {\n this.queueCellFocus('.ui-datepicker-day._focusable');\n }\n /** @ignore */\n private queueMonthFocus(): void {\n this.queueCellFocus('.ui-datepicker-picker._month .ui-datepicker-cell._focusable');\n }\n /** @ignore */\n private queueYearFocus(): void {\n this.queueCellFocus('.ui-datepicker-picker._year .ui-datepicker-cell._focusable');\n }\n\n /** @ignore */\n private clampToRange(date: Date): Date {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && date < startOfDay(min)) return startOfDay(min);\n if (max && date > startOfDay(max)) return startOfDay(max);\n return date;\n }\n\n /** @ignore */\n private isDateDisabled(date: Date): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && date < startOfDay(min)) return true;\n if (max && date > startOfDay(max)) return true;\n if ((this.disabledDays() ?? []).includes(date.getDay())) return true;\n return this.resolvedDisabledDates().some((d) => isSameDay(d, date));\n }\n\n /** @ignore Whole month out of [min, max]. */\n private isMonthDisabled(year: number, month: number): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && new Date(year, month + 1, 0) < startOfDay(min)) return true;\n if (max && new Date(year, month, 1) > startOfDay(max)) return true;\n return false;\n }\n\n /** @ignore Whole year out of [min, max]. */\n private isYearDisabled(year: number): boolean {\n const min = this.resolvedMinDate();\n const max = this.resolvedMaxDate();\n if (min && year < min.getFullYear()) return true;\n if (max && year > max.getFullYear()) return true;\n return false;\n }\n\n /** @ignore */\n private capitalize(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n }\n}\n","<!-- Calendar panel: shared between inline render and the CDK overlay. -->\n<ng-template #calendarTpl>\n <div\n #panel\n class=\"ui-datepicker-panel\"\n [class]=\"panelStyleClass()\"\n [class._inline]=\"inline()\"\n [class._range-complete]=\"rangeComplete()\"\n [attr.id]=\"panelId\"\n role=\"dialog\"\n [attr.aria-modal]=\"inline() || nonModal() ? null : 'true'\"\n [cdkTrapFocus]=\"!inline() && !nonModal()\"\n [attr.aria-label]=\"label() || ariaLabel() || panelAriaLabel()\"\n (focusout)=\"onPanelFocusOut($event)\"\n (mousedown)=\"onPanelMousedown($event)\"\n >\n @if (showCalendar()) {\n <!-- Shared header (single-month): prev / title (drill-up) / next.\n Multi-month puts the arrows + titles in each panel's own header. -->\n @if (singleMonth()) {\n <div class=\"ui-datepicker-header\">\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n <button\n type=\"button\"\n class=\"ui-datepicker-title _button\"\n aria-live=\"polite\"\n [disabled]=\"currentView() === 'year'\"\n (click)=\"onHeaderClick()\"\n >\n {{ headerLabel() }}\n </button>\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n </div>\n }\n\n <!-- YEAR view -->\n @if (currentView() === 'year') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _year\" role=\"grid\" (keydown)=\"onYearGridKeydown($event)\">\n @for (row of yearRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (y of row; track y.year) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"y.selected\"\n [class._focusable]=\"isFocusableYear(y)\"\n [disabled]=\"y.disabled\"\n [attr.tabindex]=\"isFocusableYear(y) ? 0 : -1\"\n [attr.aria-selected]=\"y.selected\"\n (click)=\"selectYear(y)\"\n >\n {{ y.year }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- MONTH view -->\n @else if (currentView() === 'month') {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-picker _month\" role=\"grid\" (keydown)=\"onMonthGridKeydown($event)\">\n @for (row of monthRows(); track $index) {\n <div class=\"ui-datepicker-picker-row\" role=\"row\">\n @for (m of row; track m.index) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-cell\"\n [class._selected]=\"m.selected\"\n [class._focusable]=\"isFocusableMonth(m)\"\n [disabled]=\"m.disabled\"\n [attr.tabindex]=\"isFocusableMonth(m) ? 0 : -1\"\n [attr.aria-selected]=\"m.selected\"\n (click)=\"selectMonth(m)\"\n >\n {{ m.label }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n <!-- DATE view (one or several month panels) -->\n @else {\n <!-- Calendar grid: keyboard delegated to the container, focus lives on\n the gridcell buttons (roving tabindex). -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ui-datepicker-months\" (keydown)=\"onGridKeydown($event)\">\n @for (mp of monthPanels(); track mp.monthDate.getTime()) {\n <div class=\"ui-datepicker-month\">\n @if (!singleMonth()) {\n <!-- Per-panel header: prev on the first panel, next on the last, title centered. -->\n <div class=\"ui-datepicker-subheader\">\n @if (mp.showPrev) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"prevAriaLabel()\"\n (click)=\"onPrev()\"\n >\n <ui-icon name=\"chevron-left\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n <span class=\"ui-datepicker-title\" aria-live=\"polite\">{{ mp.label }}</span>\n @if (mp.showNext) {\n <button\n type=\"button\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-nav\"\n [attr.aria-label]=\"nextAriaLabel()\"\n (click)=\"onNext()\"\n >\n <ui-icon name=\"chevron-right\" size=\"sm\" />\n </button>\n } @else {\n <span class=\"ui-datepicker-nav-spacer\" aria-hidden=\"true\"></span>\n }\n </div>\n }\n\n <div class=\"ui-datepicker-grid\" role=\"grid\">\n <div class=\"ui-datepicker-weekdays\" role=\"row\">\n @for (wd of weekDayNames(); track $index) {\n <span\n class=\"ui-datepicker-weekday\"\n role=\"columnheader\"\n [attr.aria-label]=\"wd.full\"\n >{{ wd.short }}</span\n >\n }\n </div>\n @for (week of mp.weeks; track $index) {\n <div class=\"ui-datepicker-week\" role=\"row\">\n @for (cell of week; track cell.ts) {\n <button\n type=\"button\"\n role=\"gridcell\"\n [attr.data-ripple]=\"ripple() ? 'on' : 'off'\"\n class=\"ui-datepicker-day\"\n [class._selected]=\"cell.selected\"\n [class._today]=\"cell.today && !cell.selected\"\n [class._other-month]=\"cell.otherMonth\"\n [class._range-start]=\"cell.rangeStart\"\n [class._range-end]=\"cell.rangeEnd\"\n [class._in-range]=\"cell.inRange\"\n [class._focusable]=\"isFocusableDay(cell)\"\n [disabled]=\"cell.disabled\"\n [attr.tabindex]=\"isFocusableDay(cell) ? 0 : -1\"\n [attr.aria-selected]=\"cell.selected\"\n [attr.aria-current]=\"cell.today ? 'date' : null\"\n [attr.aria-label]=\"cell.ariaLabel\"\n (click)=\"selectDay(cell)\"\n >\n @if (dateTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: cell, selected: cell.selected }\"\n />\n } @else {\n {{ cell.day }}\n }\n </button>\n }\n </div>\n }\n </div>\n </div>\n }\n </div>\n }\n }\n\n <!-- Time selection — vertical steppers (ARIA spinbutton pattern) -->\n @if (showTime()) {\n <div class=\"ui-datepicker-time\">\n <!-- Hours -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementHoursAriaLabel()\"\n (click)=\"stepHours(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"hoursAriaLabel()\"\n [attr.aria-valuenow]=\"hourFormat() === '12' ? displayHours() : hours()\"\n [attr.aria-valuemin]=\"hourBounds().min\"\n [attr.aria-valuemax]=\"hourBounds().max\"\n [attr.aria-valuetext]=\"hoursLabel()\"\n [value]=\"hoursValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onHoursInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onHoursBlur()\"\n (keydown)=\"onHourKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementHoursAriaLabel()\"\n (click)=\"stepHours(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n\n <!-- Minutes -->\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"incrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(1)\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <input\n class=\"ui-datepicker-time-value\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n maxlength=\"2\"\n role=\"spinbutton\"\n [attr.aria-label]=\"minutesAriaLabel()\"\n [attr.aria-valuenow]=\"minutes()\"\n aria-valuemin=\"0\"\n aria-valuemax=\"59\"\n [attr.aria-valuetext]=\"minutesLabel()\"\n [value]=\"minutesValue()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"!timeEditable()\"\n (input)=\"onMinutesInput($event)\"\n (focus)=\"onTimeFocus($event)\"\n (blur)=\"onMinutesBlur()\"\n (keydown)=\"onMinuteKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"decrementMinutesAriaLabel()\"\n (click)=\"stepMinutes(-1)\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n\n <!-- Meridiem (12h) -->\n @if (hourFormat() === '12') {\n <span class=\"ui-datepicker-time-colon\" aria-hidden=\"true\">:</span>\n <div class=\"ui-datepicker-time-unit\">\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-up\" size=\"sm\" />\n </button>\n <span\n class=\"ui-datepicker-time-value\"\n role=\"spinbutton\"\n [attr.tabindex]=\"timeControlsEnabled() ? 0 : -1\"\n [attr.aria-label]=\"meridiemAriaLabel()\"\n [attr.aria-valuetext]=\"meridiem()\"\n [attr.aria-disabled]=\"!timeControlsEnabled() || null\"\n (keydown)=\"onMeridiemKeydown($event)\"\n (click)=\"toggleMeridiem()\"\n >\n {{ meridiem() }}\n </span>\n <button\n type=\"button\"\n class=\"ui-datepicker-time-btn\"\n tabindex=\"-1\"\n [disabled]=\"!timeControlsEnabled()\"\n [attr.aria-label]=\"toggleMeridiemAriaLabel()\"\n (click)=\"toggleMeridiem()\"\n >\n <ui-icon name=\"chevron-down\" size=\"sm\" />\n </button>\n </div>\n }\n </div>\n }\n\n <!-- Button bar (custom template or default) -->\n @if (showButtonBar() || buttonBarTemplate()) {\n <div class=\"ui-datepicker-buttonbar\">\n @if (buttonBarTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{\n $implicit: todayCallback,\n todayCallback: todayCallback,\n clearCallback: clearCallback,\n }\"\n />\n } @else {\n <ui-button\n size=\"small\"\n level=\"low\"\n [label]=\"todayLabel()\"\n (buttonClick)=\"selectToday()\"\n />\n <ui-button size=\"small\" level=\"low\" [label]=\"clearLabel()\" (buttonClick)=\"clear()\" />\n }\n </div>\n }\n </div>\n</ng-template>\n\n@if (inline()) {\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n} @else {\n <!-- Trigger: composed field. The icon opens the panel; a click on the field itself only does\n so when the field isn't typeable (see `onTriggerClick`). -->\n <!-- Convenience wrapper: focus and keyboard are carried by the inner ui-input. -->\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -->\n <div\n #triggerWrapper\n class=\"ui-datepicker-trigger\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKeydown($event)\"\n (focusout)=\"onTriggerFocusOut($event)\"\n >\n <ui-input\n #trigger\n [label]=\"label()\"\n [helperText]=\"helperText()\"\n [errorText]=\"errorText()\"\n [showMessageIcon]=\"showMessageIcon()\"\n [messageIcon]=\"messageIcon()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [size]=\"size()\"\n [level]=\"effectiveLevel()\"\n [floatLabel]=\"floatLabel()\"\n [required]=\"required()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"triggerReadonly()\"\n [invalid]=\"isInvalid()\"\n [name]=\"name() ?? ''\"\n [inputId]=\"resolvedId()\"\n [ariaLabel]=\"ariaLabel()\"\n [ariaLabelledBy]=\"ariaLabelledBy()\"\n [ariaDescribedBy]=\"resolvedFormatHint() ? formatHintId() : undefined\"\n [tabindex]=\"tabindex()\"\n [value]=\"displayValue()\"\n [autocomplete]=\"autocomplete()\"\n [iconRight]=\"triggerIcon()\"\n [iconRightTemplate]=\"triggerIconTemplate()\"\n [iconRightAriaLabel]=\"triggerIconAriaLabel()\"\n ariaHasPopup=\"dialog\"\n [ariaExpanded]=\"panelOpen()\"\n [ariaControls]=\"panelOpen() ? panelId : undefined\"\n (iconRightClick)=\"onIconClick($event)\"\n (valueChange)=\"onTriggerInput($event)\"\n (inputFocus)=\"inputFocus.emit($event)\"\n (inputBlur)=\"onTriggerBlur($event)\"\n />\n @if (resolvedFormatHint(); as hint) {\n <span [id]=\"formatHintId()\" class=\"ui-datepicker-format-hint\">{{ hint }}</span>\n }\n </div>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"overlayOrigin()!\"\n [cdkConnectedOverlayOpen]=\"panelOpen()\"\n [cdkConnectedOverlayPositions]=\"overlayPositions()\"\n [cdkConnectedOverlayViewportMargin]=\"overlayViewportMargin\"\n [cdkConnectedOverlayPush]=\"true\"\n [cdkConnectedOverlayHasBackdrop]=\"!nonModal()\"\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n (backdropClick)=\"close(false)\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close(false)\"\n >\n <ng-container [ngTemplateOutlet]=\"calendarTpl\" />\n </ng-template>\n}\n","/*\n * Public API Surface of ui-kit/ui-datepicker\n */\n\nexport * from './lib/ui-datepicker';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AA+HA,IAAI,YAAY,GAAG,CAAC;AAEpB;;AAEkG;AAClG,MAAM,eAAe,GAAG,KAAK;AAC7B;AACA,MAAM,uBAAuB,GAAG,KAAK;AACrC;AACA,MAAM,kBAAkB,GAAG,IAAI;AAK/B;;;AAGkD;AAClD,SAAS,SAAS,GAAA;IAChB,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC;AAC/B;AACA;AAC6E;AAC7E,SAAS,YAAY,CAAC,IAAY,EAAE,MAAyB,EAAA;AAC3D,IAAA,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QAC7B,IAAI,CAAC,KAAK,CAAC,CAAC;AAAE,YAAA,OAAO,CAAC;IACxB;IACA,OAAO,CAAC,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