{"version":3,"file":"forty-cdk-time-picker.mjs","sources":["../../../projects/forty-cdk/time-picker/src/build-time-slots.ts","../../../projects/forty-cdk/time-picker/src/time-picker-context.ts","../../../projects/forty-cdk/time-picker/src/time-picker-defaults.ts","../../../projects/forty-cdk/time-picker/src/time-picker.ts","../../../projects/forty-cdk/time-picker/src/time-picker-anchor.ts","../../../projects/forty-cdk/time-picker/src/time-picker-trigger.ts","../../../projects/forty-cdk/time-picker/src/time-picker-value.ts","../../../projects/forty-cdk/time-picker/src/time-picker-content.ts","../../../projects/forty-cdk/time-picker/src/time-picker-option.ts","../../../projects/forty-cdk/time-picker/src/time-picker-host-directive.ts","../../../projects/forty-cdk/time-picker/src/forty-cdk-time-picker.ts"],"sourcesContent":["import { type TimeCapableDateAdapter, secondsOfDay, timeSentinel } from 'forty-cdk/core';\n\n/** The time granularity at which the picker operates. */\nexport type TimePickerGranularity = 'hour' | 'minute' | 'second';\n\n/**\n * A single generated time slot in the listbox.\n *\n * @typeParam D The adapter's date-time type.\n */\nexport interface ForTimeSlot<D> {\n  /** Stable identifier for use as the `track` expression in `@for`. Value is `'slot-' + totalSeconds`. */\n  readonly id: string;\n  /**\n   * The date-time value this slot represents, anchored to a fixed DST-stable\n   * sentinel date. The consumer grafts this wall-clock time onto the real\n   * selected date at commit time.\n   */\n  readonly value: D;\n  /** Display label formatted via the active adapter and the resolved format options. */\n  readonly label: string;\n  /** Whether this slot is currently selected, compared at the configured granularity. */\n  readonly selected: boolean;\n  /** Whether this slot is disabled because its time-of-day falls outside `[minTime, maxTime]`. */\n  readonly disabled: boolean;\n}\n\n/**\n * Configuration bag for {@link buildTimeSlots}.\n *\n * @typeParam D The adapter's date-time type.\n */\nexport interface BuildTimeSlotsConfig<D> {\n  readonly adapter: TimeCapableDateAdapter<D>;\n  /** The currently committed value, or `null` when nothing is selected. */\n  readonly selected: D | null;\n  /** Lower bound (inclusive). Only the time-of-day component is considered. `null` = start-of-day. */\n  readonly minTime: D | null;\n  /** Upper bound (inclusive). Only the time-of-day component is considered. `null` = end-of-day. */\n  readonly maxTime: D | null;\n  /** Slot interval in whole minutes. Clamped to ≥ 1. */\n  readonly step: number;\n  readonly granularity: TimePickerGranularity;\n  /** `Intl.DateTimeFormat` options for the slot label. */\n  readonly formatOptions: Intl.DateTimeFormatOptions;\n  /** BCP 47 locale for the slot label; the runtime default when omitted. */\n  readonly locale?: string;\n}\n\nexport function timeOfDaySeconds<D>(\n  adapter: TimeCapableDateAdapter<D>,\n  d: D,\n  granularity: TimePickerGranularity,\n): number {\n  const h = adapter.getHours(d);\n  if (granularity === 'hour') {\n    return h * 3600;\n  }\n  if (granularity === 'minute') {\n    return h * 3600 + adapter.getMinutes(d) * 60;\n  }\n  return secondsOfDay(adapter, d);\n}\n\n/**\n * Generates the full-day slot list for a {@link ForTimePicker}.\n *\n * Slots span the full 24-hour day (00:00:00 up to but not past 24:00). Each slot's\n * `disabled` flag is `true` when its time-of-day falls outside `[minTime, maxTime]`\n * — slots are never omitted, following the WAI-ARIA option convention for disabled\n * items.\n *\n * Every slot value is anchored to a fixed DST-stable sentinel date so wall-clock\n * times never collide on a spring-forward day; the consumer grafts the picked\n * time onto the real selected date at commit.\n *\n * Pure function: no signals, no DOM, no side effects.\n */\nexport function buildTimeSlots<D>(config: BuildTimeSlotsConfig<D>): readonly ForTimeSlot<D>[] {\n  const { adapter, selected, minTime, maxTime, step, granularity, formatOptions, locale } = config;\n  const anchor = timeSentinel(adapter);\n  const stepSeconds = Math.max(1, Math.round(step)) * 60;\n  const minSec = minTime !== null ? timeOfDaySeconds(adapter, minTime, 'second') : null;\n  const maxSec = maxTime !== null ? timeOfDaySeconds(adapter, maxTime, 'second') : null;\n\n  const slots: ForTimeSlot<D>[] = [];\n  for (let t = 0; t < 86400; t += stepSeconds) {\n    const h = Math.floor(t / 3600);\n    const m = Math.floor((t % 3600) / 60);\n    const s = t % 60;\n    const value = adapter.setTime(anchor, h, m, s);\n    const label = adapter.format(value, formatOptions, locale);\n    const slotGranularSec = timeOfDaySeconds(adapter, value, granularity);\n    const slotFullSec = h * 3600 + m * 60 + s;\n    const isSelected =\n      selected !== null && slotGranularSec === timeOfDaySeconds(adapter, selected, granularity);\n    const disabled =\n      (minSec !== null && slotFullSec < minSec) || (maxSec !== null && slotFullSec > maxSec);\n    slots.push({ id: `slot-${t}`, value, label, selected: isSelected, disabled });\n  }\n  return slots;\n}\n","import { computed, inject, InjectionToken, type Signal } from '@angular/core';\n\nimport {\n  assertRootContext,\n  type CollectionHandle,\n  orphanContextError,\n  unresolvedRootError,\n  type WritingDirection,\n} from 'forty-cdk/core';\nimport {\n  type FloatingAlign,\n  type FloatingSide,\n  type ListboxOverlayContext,\n} from 'forty-cdk/core-overlay';\nimport type { ForTimeSlot, TimePickerGranularity } from './build-time-slots';\n\n/**\n * Why a time picker requested close.\n */\nexport type ForTimePickerCloseReason =\n  | 'escape'\n  | 'pointerDownOutside'\n  | 'focusOutside'\n  | 'select'\n  | 'tab'\n  | 'programmatic';\n\n/**\n * Where focus lands when the listbox opens.\n * `'selected'` snaps to the selected slot (or first enabled if none selected).\n */\nexport type ForTimePickerInitialFocus = 'first' | 'last' | 'selected';\n\n/**\n * Handle every `[forTimePickerOption]` registers with the root.\n */\nexport interface ForTimePickerOptionHandle extends CollectionHandle {\n  /**\n   * Narrowed from {@link CollectionHandle}'s `Node`: the root moves DOM focus\n   * onto the option.\n   */\n  readonly host: HTMLElement;\n  readonly value: Signal<unknown>;\n  readonly disabled: Signal<boolean>;\n}\n\n/**\n * The shared overlay-listbox coordination surface a `[forTimePicker]` exposes on\n * its context (`ctx.overlay`): trigger / anchor / content registries + ids,\n * DOM-focus navigation, the open / close machine, the initial-focus /\n * close-reason state, and the dismiss / auto-focus emit forwarders. Backed by\n * the shared `ListboxOverlayController`, so child directives read it here\n * instead of the root re-forwarding each member.\n */\nexport type ForTimePickerOverlayContext = ListboxOverlayContext<\n  ForTimePickerOptionHandle,\n  ForTimePickerInitialFocus,\n  ForTimePickerCloseReason\n>;\n\n/**\n * Coordination contract owned by `[forTimePicker]`. The shared overlay-listbox\n * surface (trigger / anchor / content registration, navigation, the open /\n * close machine, dismiss forwarders) is reached through\n * {@link ForTimePickerContext.overlay}.\n *\n * @typeParam D The adapter's date-time type.\n */\nexport interface ForTimePickerContext<D = unknown> {\n  /**\n   * The selected time, as a read-only signal. Mutate it through `activate` /\n   * `commitOnTab` or the root's `[(value)]` binding — a direct write would\n   * bypass the disabled / readonly guards and `markTouched`.\n   */\n  readonly value: Signal<D | null>;\n  /**\n   * Whether the listbox is open, as a read-only signal. Mutate it through\n   * `overlay.toggle` / `overlay.openOverlay` / `overlay.closeOverlay` or the root's\n   * `[(open)]` binding.\n   */\n  readonly open: Signal<boolean>;\n  readonly effectiveDisabled: Signal<boolean>;\n  readonly readonly: Signal<boolean>;\n  readonly required: Signal<boolean>;\n  readonly invalid: Signal<boolean>;\n  readonly pending: Signal<boolean>;\n  readonly modal: Signal<boolean>;\n  readonly dismissible: Signal<boolean>;\n  readonly returnFocus: Signal<boolean>;\n  readonly side: Signal<FloatingSide | undefined>;\n  readonly align: Signal<FloatingAlign | undefined>;\n  readonly sideOffset: Signal<number>;\n  readonly alignOffset: Signal<number>;\n  readonly avoidCollisions: Signal<boolean>;\n  readonly collisionPadding: Signal<number>;\n  readonly sticky: Signal<'partial' | 'always' | false>;\n  readonly hideWhenDetached: Signal<boolean>;\n  readonly clipUntilPositioned: Signal<boolean>;\n  readonly loop: Signal<boolean>;\n  readonly orientation: Signal<'horizontal' | 'vertical'>;\n  readonly dir: Signal<WritingDirection>;\n  readonly placeholder: Signal<string>;\n  readonly granularity: Signal<TimePickerGranularity>;\n  readonly formattedValue: Signal<string | null>;\n  readonly ariaLabel: Signal<string | null>;\n\n  /**\n   * The shared overlay-listbox coordination surface (trigger / anchor / content\n   * registration + ids, navigation, open / close machine, initial-focus /\n   * close-reason state, dismiss + auto-focus emit forwarders). Child directives\n   * read the overlay machinery here instead of the root re-forwarding each\n   * member; the value-specific behavior below stays on the context directly.\n   */\n  readonly overlay: ForTimePickerOverlayContext;\n\n  readonly slots: Signal<readonly ForTimeSlot<D>[]>;\n  isSelected(value: D): boolean;\n  activate(value: D): void;\n  focusSelectedOption(): boolean;\n  commitOnTab(value: D): void;\n  markTouched(): void;\n}\n\n/**\n * The time picker's pointer channel: the calls `[forTimePickerOption]` makes so\n * the slot under the cursor takes the highlight, and so the keyboard takes it\n * back when a slot is focused.\n *\n * **Not** part of {@link ForTimePickerContext} and never exported\n * from `public-api.ts` — a consumer styles the pointed-at slot off\n * `data-highlighted`, never by reporting a hover into the root.\n */\nexport interface TimePickerPieceContext {\n  /**\n   * Host element of the slot the pointer is over, `null` when the pointer is\n   * over none. Self-heals on read: a host that has left the registered set or\n   * become disabled is discounted, so the focused slot reclaims the highlight.\n   */\n  readonly pointerHighlightedOption: Signal<HTMLElement | null>;\n  /**\n   * Reported by `[forTimePickerOption]` on `pointermove` so the highlight\n   * follows the pointer. Never moves DOM focus and never selects; a move\n   * arriving inside the pointer-suppression window a programmatic scroll opened\n   * is ignored, or a scroll sliding a different slot under a stationary cursor\n   * would hand the highlight to whatever the user merely scrolled past.\n   *\n   * @param host The hovered slot's host element.\n   */\n  highlightFromPointer(host: HTMLElement): void;\n  /**\n   * Called by a slot when it takes DOM focus: drops any pointer highlight, so\n   * the keyboard channel owns the highlight again from the move that focused the\n   * slot.\n   */\n  notifyOptionFocus(): void;\n  /**\n   * Called by `[forTimePickerContent]` when the pointer leaves the listbox\n   * surface: drops any pointer highlight, so the focused slot reclaims it\n   * instead of a row staying decorated with the cursor elsewhere on the page.\n   * Crossing between two adjacent slots is not a leave, so the highlight never\n   * blinks off.\n   */\n  releasePointerHighlight(): void;\n}\n\n/**\n * The time picker's internal coordination surface: everything\n * {@link ForTimePickerContext} publishes plus the {@link TimePickerPieceContext}\n * calls.\n *\n * Never exported from `public-api.ts`. It is the type the pieces read\n * {@link FOR_TIME_PICKER_CONTEXT} at, so a consumer who injects that token gets\n * the read surface while `[forTimePickerOption]` gets the pointer channel.\n * `ForTimePicker` declares those members TS-`private`, which keeps them out of\n * the emitted `.d.ts` while `useExisting` still satisfies this contract at\n * runtime.\n */\nexport interface TimePickerContext<D = unknown>\n  extends ForTimePickerContext<D>, TimePickerPieceContext {}\n\n/**\n * DI token for the time picker's coordination surface, provided by\n * `[forTimePicker]`.\n *\n * Publicly typed as the read surface {@link ForTimePickerContext}, which is the\n * whole of what the token promises a consumer. The pieces read the same token at\n * an internal type that adds the pointer-highlight channel, so a wrapper\n * re-providing it must alias it to the root:\n * `{ provide: FOR_TIME_PICKER_CONTEXT, useExisting: MyTimePicker }`, where\n * `MyTimePicker` extends `ForTimePicker`. A value that merely satisfies the\n * declared type resolves too, and is rejected in dev mode by the first piece to\n * reach the channel.\n */\nexport const FOR_TIME_PICKER_CONTEXT = new InjectionToken<ForTimePickerContext>(\n  'FOR_TIME_PICKER_CONTEXT',\n);\n\nexport function injectTimePickerContext<D = unknown>(piece: string): TimePickerContext<D> {\n  const ctx = inject(FOR_TIME_PICKER_CONTEXT, { optional: true });\n  if (!ctx) {\n    throw orphanContextError({\n      code: 'FORCDK-TIME-PICKER-001',\n      piece,\n      root: '[forTimePicker]',\n      token: 'FOR_TIME_PICKER_CONTEXT',\n    });\n  }\n  const widened = ctx as unknown as TimePickerContext<D>;\n  assertRootContext({\n    entryPoint: 'time-picker',\n    token: 'FOR_TIME_PICKER_CONTEXT',\n    root: '[forTimePicker]',\n    piece,\n    probe: () => widened.highlightFromPointer,\n  });\n  return widened;\n}\n\nexport function injectTimePickerTriggerContext<D = unknown>(\n  explicitRoot: Signal<ForTimePickerContext<D> | ''>,\n): Signal<ForTimePickerContext<D>> {\n  const injected = inject(FOR_TIME_PICKER_CONTEXT, { optional: true });\n  return computed(() => {\n    const explicit = explicitRoot();\n    if (explicit !== '') {\n      return explicit;\n    }\n    if (injected) {\n      return injected as unknown as ForTimePickerContext<D>;\n    }\n    throw unresolvedRootError({\n      code: 'FORCDK-TIME-PICKER-002',\n      trigger: '[forTimePickerTrigger]',\n      root: '[forTimePicker]',\n      token: 'FOR_TIME_PICKER_CONTEXT',\n      exportAs: 'forTimePicker',\n    });\n  });\n}\n","import { type Provider } from '@angular/core';\n\nimport { createDefaults } from 'forty-cdk/core';\nimport {\n  type AnchoredPositioningSeedDefaults,\n  type FloatingAlign,\n  type FloatingSide,\n} from 'forty-cdk/core-overlay';\n\n/**\n * Defaults inherited by descendant time pickers in the surrounding injector\n * scope. Configure with `provideForTimePickerDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimePickerDefaults extends AnchoredPositioningSeedDefaults {\n  /**\n   * Side the listbox is anchored to for time pickers that don't override\n   * `side` locally. Library fallback `'bottom'`.\n   */\n  side: FloatingSide;\n  /**\n   * Alignment along the chosen `side` for time pickers that don't override\n   * `align` locally. Library fallback `'start'`.\n   */\n  align: FloatingAlign;\n  /**\n   * Distance (px) between the time picker trigger and the floating content\n   * along the resolved `side` axis.\n   */\n  sideOffset: number;\n  /**\n   * Padding (px) added to the viewport edges for collision-aware positioning.\n   * Higher values keep the floating content further from the edge when\n   * `flip` / `shift` runs.\n   */\n  collisionPadding: number;\n}\n\n/**\n * Library fallback for time picker defaults, read at the root injector when no\n * consumer has called `provideForTimePickerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TIME_PICKER_FALLBACK_DEFAULTS: ForTimePickerDefaults = {\n  side: 'bottom',\n  align: 'start',\n  sideOffset: 4,\n  collisionPadding: 8,\n};\n\nconst { token, provideDefaults } = createDefaults<ForTimePickerDefaults>(\n  'FOR_TIME_PICKER_DEFAULTS',\n  FOR_TIME_PICKER_FALLBACK_DEFAULTS,\n);\n\n/** Token holding the resolved time picker defaults for the current scope. */\nexport const FOR_TIME_PICKER_DEFAULTS = token;\n\n/**\n * Configures forty-cdk time picker defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n */\nexport function provideForTimePickerDefaults(\n  defaults: Partial<ForTimePickerDefaults> = {},\n): Provider[] {\n  return provideDefaults(defaults);\n}\n","import {\n  booleanAttribute,\n  computed,\n  Directive,\n  inject,\n  input,\n  model,\n  numberAttribute,\n  output,\n  signal,\n} from '@angular/core';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport {\n  assertTimeCapable,\n  createPointerSuppression,\n  formatFortyMessage,\n  injectDateAdapter,\n  type TimeCapableDateAdapter,\n  type WritingDirection,\n  injectHiddenInput,\n  type VetoableEvent,\n  type VetoableNativeEvent,\n  injectTextDirection,\n  FOR_TIME_VALUE_SOURCE,\n  serializeISOTime,\n  timeSentinel,\n  composeWithTime,\n} from 'forty-cdk/core';\nimport { AnchoredFormValueControlBase, ListboxOverlayController } from 'forty-cdk/core-overlay';\nimport {\n  buildTimeSlots,\n  timeOfDaySeconds,\n  type ForTimeSlot,\n  type TimePickerGranularity,\n} from './build-time-slots';\nimport {\n  FOR_TIME_PICKER_CONTEXT,\n  type ForTimePickerCloseReason,\n  type ForTimePickerContext,\n  type ForTimePickerInitialFocus,\n  type ForTimePickerOptionHandle,\n  type ForTimePickerOverlayContext,\n} from './time-picker-context';\nimport { FOR_TIME_PICKER_DEFAULTS } from './time-picker-defaults';\n\n/**\n * Root of the headless time picker, implementing the\n * [WAI-ARIA Listbox pattern](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/)\n * for a slot-based time selection. Generates a full-day list of time slots at\n * a configurable `step` (in minutes), displayed in a floating listbox.\n *\n * Implements `FormValueControl<D | null>` from `@angular/forms/signals` for\n * `[formField]` auto-wiring. Requires a time-capable adapter\n * (`provideNativeDateAdapter()` or `provideInternationalizedDateTimeAdapter()`).\n *\n * @typeParam D The adapter's immutable date-time type.\n */\n@Directive({\n  selector: '[forTimePicker]',\n  exportAs: 'forTimePicker',\n  host: {\n    '[attr.data-state]': 'open() ? \"open\" : \"closed\"',\n    '[attr.data-disabled]': 'effectiveDisabled() ? \"\" : null',\n    '[attr.data-readonly]': 'readonly() ? \"\" : null',\n    '[attr.dir]': 'dir()',\n  },\n  providers: [\n    { provide: FOR_TIME_PICKER_CONTEXT, useExisting: ForTimePicker },\n    { provide: FOR_TIME_VALUE_SOURCE, useExisting: ForTimePicker },\n  ],\n})\nexport class ForTimePicker<D>\n  extends AnchoredFormValueControlBase\n  implements FormValueControl<D | null>, ForTimePickerContext<D>\n{\n  protected readonly positioningDefaults = inject(FOR_TIME_PICKER_DEFAULTS);\n\n  /**\n   * The active, time-capable date adapter. Throws when the provided adapter is\n   * day-only.\n   */\n  readonly adapter: TimeCapableDateAdapter<D> = assertTimeCapable(\n    injectDateAdapter<D>('ForTimePicker', { scope: 'time-picker' }),\n    'ForTimePicker',\n    { scope: 'time-picker' },\n  );\n\n  /**\n   * Two-way bindable selected time, or `null`. Required by\n   * `FormValueControl<D | null>`. The `model()` change emitter\n   * (`(valueChange)`) fires only on internal selection changes, never on\n   * consumer writes via `[(value)]`.\n   */\n  readonly value = model<D | null>(null);\n\n  /**\n   * Two-way bindable. Whether the listbox is currently shown. The `model()`\n   * change emitter (`(openChange)`) fires only on internal transitions, never\n   * on consumer writes via `[(open)]`.\n   */\n  readonly open = model<boolean>(false);\n\n  /**\n   * Earliest selectable time-of-day (inclusive). Slots earlier in the day are\n   * disabled. Named `minTime` (not `min`) because `FormUiControl.min` is\n   * reserved for a numeric validator.\n   */\n  readonly minTime = input<D | null>(null);\n\n  /**\n   * Latest selectable time-of-day (inclusive). Slots later in the day are\n   * disabled. Named `maxTime` for the same reason as {@link minTime}.\n   */\n  readonly maxTime = input<D | null>(null);\n\n  /**\n   * Slot interval in whole minutes. Default `30`, clamped to ≥ 1. Use `60` for\n   * hourly slots, `15` for quarter-hour slots.\n   */\n  readonly step = input(30, { transform: numberAttribute });\n\n  /**\n   * Finest time unit compared when determining if a slot is selected.\n   * Default `'minute'`. Use `'second'` when the value carries seconds.\n   */\n  readonly granularity = input<TimePickerGranularity>('minute');\n\n  /**\n   * 12- or 24-hour cycle for slot label formatting. When `null` (default) it\n   * is derived from the runtime locale.\n   */\n  readonly hourCycle = input<12 | 24 | null>(null);\n\n  /**\n   * BCP 47 locale driving slot label formatting. Defaults to the runtime locale.\n   */\n  readonly locale = input<string | null>(null);\n\n  /**\n   * Close the listbox after a slot is selected. Default `true`.\n   */\n  readonly closeOnSelect = input(true, { transform: booleanAttribute });\n\n  /**\n   * When `true`, the listbox mounts as a trapped / inert / scroll-locked modal\n   * surface instead of the default anchored popover. Read once when the content\n   * mounts.\n   */\n  readonly modal = input(false, { transform: booleanAttribute });\n\n  /** When `true` (default), Escape, pointer-down outside, and focus outside close the listbox. */\n  readonly dismissible = input(true, { transform: booleanAttribute });\n\n  /** When `true` (default), focus returns to the trigger on close. */\n  readonly returnFocus = input(true, { transform: booleanAttribute });\n\n  /** Placeholder shown by `[forTimePickerValue]` when no time is selected. */\n  readonly placeholder = input<string>('');\n\n  /**\n   * `Intl.DateTimeFormat` options driving slot label formatting. When none of\n   * `hour` / `minute` / `second` are specified, sensible defaults are filled in\n   * automatically based on `granularity` and `hourCycle`.\n   */\n  readonly formatOptions = input<Intl.DateTimeFormatOptions>({});\n\n  /** Manual `aria-label` on `[forTimePickerContent]` when the trigger isn't a meaningful name. */\n  readonly ariaLabel = input<string | null>(null);\n\n  /** When `true` (default), keyboard navigation wraps at the ends of the option list. */\n  readonly loop = input(true, { transform: booleanAttribute });\n\n  /** Orientation of the listbox for keyboard navigation. Default `'vertical'`. */\n  readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n\n  /**\n   * Writing direction. When unset (default `null`), the inherited ambient\n   * direction is resolved from the nearest ancestor carrying a `dir` attribute\n   * (or `<html dir>`), defaulting to `'ltr'`. An explicit `[dir]` always wins.\n   */\n  readonly _dirInput = input<WritingDirection | null>(null, { alias: 'dir' });\n  readonly dir = injectTextDirection(this._dirInput);\n\n  /**\n   * Fires when the user presses Escape while this listbox is the topmost\n   * dismissible layer. Call `preventDefault()` on the veto to suppress the\n   * automatic close.\n   */\n  readonly escapeKeyDown = output<VetoableNativeEvent<KeyboardEvent>>();\n\n  /** Fires when a pointer goes down outside the listbox. Vetoable. */\n  readonly pointerDownOutside = output<VetoableNativeEvent<PointerEvent>>();\n\n  /** Fires when focus moves outside the listbox. Vetoable. */\n  readonly focusOutside = output<VetoableNativeEvent<FocusEvent>>();\n\n  /** Composite event: shares veto state with `pointerDownOutside` / `focusOutside`. */\n  readonly interactOutside = output<VetoableNativeEvent<PointerEvent | FocusEvent>>();\n\n  /**\n   * Fires just before the listbox sends focus to the selected slot (or first\n   * enabled) on open. Call `preventDefault()` on the veto to skip the focus\n   * move.\n   */\n  readonly autoFocusOnOpen = output<VetoableEvent>();\n\n  /**\n   * Fires just before focus returns to the trigger on close. Call\n   * `preventDefault()` on the veto to suppress the return-focus.\n   */\n  readonly autoFocusOnClose = output<VetoableEvent>();\n\n  readonly #pointerSuppression = createPointerSuppression();\n\n  readonly #pointerHost = signal<HTMLElement | null>(null);\n\n  /**\n   * Shared overlay-listbox state machine: option collection, trigger / anchor /\n   * content registries + ids, DOM-focus navigation, the open / close machine,\n   * the initial-focus / close-reason state, and the dismiss / auto-focus emit\n   * forwarders. The value-specific behaviour (`isSelected`, `activate`,\n   * `focusSelectedOption`, `commitOnTab`) stays in this root.\n   */\n  readonly #controller = new ListboxOverlayController<\n    ForTimePickerOptionHandle,\n    ForTimePickerInitialFocus,\n    ForTimePickerCloseReason\n  >({\n    idPrefix: 'for-time-picker',\n    multipleAnchorsError: formatFortyMessage({\n      code: 'FORCDK-TIME-PICKER-003',\n      message: 'A [forTimePicker] registered a second [forTimePickerAnchor]; only one is allowed.',\n      fix: 'Keep a single [forTimePickerAnchor] per [forTimePicker].',\n    }),\n    defaultInitialFocus: 'selected',\n    effectiveDisabled: this.effectiveDisabled,\n    setOpen: (open) => this.open.set(open),\n    isOpen: () => this.open(),\n    emit: {\n      escapeKeyDown: this.escapeKeyDown,\n      pointerDownOutside: this.pointerDownOutside,\n      focusOutside: this.focusOutside,\n      interactOutside: this.interactOutside,\n      autoFocusOnOpen: this.autoFocusOnOpen,\n      autoFocusOnClose: this.autoFocusOnClose,\n    },\n    loop: this.loop,\n    dismissible: this.dismissible,\n    escapeReason: 'escape',\n    programmaticReason: 'programmatic',\n    markTouched: () => this.markTouched(),\n    onNavigateFocus: () => this.#pointerSuppression.suppress(),\n  });\n\n  /**\n   * The shared overlay-listbox coordination surface (trigger / anchor / content\n   * registration + ids, DOM-focus navigation, the open / close machine, the\n   * initial-focus / close-reason state, and the dismiss + auto-focus emit\n   * forwarders). Exposed on the context so child directives read the overlay\n   * machinery here rather than through the root. The optional\n   * `[forTimePickerAnchor]` (reached via `overlay.anchor`) is preferred when\n   * registered, otherwise floating-ui falls back to the trigger.\n   */\n  readonly overlay: ForTimePickerOverlayContext = this.#controller;\n\n  private readonly pointerHighlightedOption = computed<HTMLElement | null>(() => {\n    const host = this.#pointerHost();\n    if (host === null) {\n      return null;\n    }\n    const handle = this.#controller.options().find((option) => option.host === host);\n    return handle && !handle.disabled() ? host : null;\n  });\n\n  readonly #sentinel = computed(() => timeSentinel(this.adapter));\n\n  readonly #effectiveFormatOptions = computed<Intl.DateTimeFormatOptions>(() => {\n    const options = this.formatOptions();\n    if (\n      options.hour !== undefined ||\n      options.minute !== undefined ||\n      options.second !== undefined\n    ) {\n      return options;\n    }\n    const cycle = this.hourCycle();\n    const granularity = this.granularity();\n    return {\n      ...options,\n      hour: 'numeric',\n      minute: '2-digit',\n      ...(granularity === 'second' ? { second: '2-digit' } : {}),\n      ...(cycle !== null ? { hour12: cycle === 12 } : {}),\n    };\n  });\n\n  /**\n   * The generated list of time slots for the full day. Each slot's `value` is\n   * anchored to a fixed DST-stable sentinel date; `activate` grafts the picked\n   * wall-clock onto the current `value()` date, so selecting a slot preserves\n   * the calendar date when used inside a date-time picker.\n   *\n   * Pure derivation — never written from inside an `effect()`.\n   */\n  readonly slots = computed<readonly ForTimeSlot<D>[]>(() => {\n    return buildTimeSlots({\n      adapter: this.adapter,\n      selected: this.value(),\n      minTime: this.minTime(),\n      maxTime: this.maxTime(),\n      step: this.step(),\n      granularity: this.granularity(),\n      formatOptions: this.#effectiveFormatOptions(),\n      locale: this.locale() ?? undefined,\n    });\n  });\n\n  /** Formatted display of the current value, or `null` when empty. */\n  readonly formattedValue = computed<string | null>(() => {\n    const v = this.value();\n    return v === null\n      ? null\n      : this.adapter.format(v, this.#effectiveFormatOptions(), this.locale() ?? undefined);\n  });\n\n  protected override fieldLabelledElement(): HTMLElement | null {\n    return this.#controller.trigger();\n  }\n\n  protected override fieldLabelledElementId(): string {\n    return this.#controller.triggerId();\n  }\n\n  /**\n   * Move focus to the trigger, implementing `FormValueControl.focus` from\n   * `@angular/forms/signals`. Without this override Signal Forms would focus the\n   * host `[forTimePicker]` wrapper — which carries no focusable role — so\n   * focus-on-error would silently go nowhere. No-op when disabled or before the\n   * trigger has registered.\n   */\n  override focus(options?: FocusOptions): void {\n    if (this.effectiveDisabled()) {\n      return;\n    }\n    this.#controller.trigger()?.focus(options);\n  }\n\n  constructor() {\n    super();\n    injectHiddenInput({\n      name: this.name,\n      values: computed(() => {\n        const current = this.value();\n        if (current === null) {\n          return [];\n        }\n        return [serializeISOTime(this.adapter, current, this.granularity())];\n      }),\n      disabled: this.effectiveDisabled,\n    });\n  }\n\n  #sameTimeOfDay(a: D, b: D): boolean {\n    const g = this.granularity();\n    return timeOfDaySeconds(this.adapter, a, g) === timeOfDaySeconds(this.adapter, b, g);\n  }\n\n  isSelected(v: D): boolean {\n    const current = this.value();\n    if (current === null) {\n      return false;\n    }\n    return this.#sameTimeOfDay(v, current);\n  }\n\n  activate(v: D): void {\n    if (this.effectiveDisabled() || this.readonly()) {\n      return;\n    }\n    this.value.set(composeWithTime(this.adapter, this.value() ?? this.#sentinel(), v));\n    if (this.closeOnSelect()) {\n      this.#controller.closeOverlay('select');\n    }\n  }\n\n  focusSelectedOption(): boolean {\n    const current = this.value();\n    if (current === null) {\n      return false;\n    }\n    const items = this.#controller.options();\n    const opt = items.find((o) => {\n      if (o.disabled()) {\n        return false;\n      }\n      const v = o.value() as D;\n      return this.#sameTimeOfDay(v, current);\n    });\n    if (opt) {\n      this.#pointerSuppression.suppress();\n      opt.host.focus();\n      return true;\n    }\n    return false;\n  }\n\n  private highlightFromPointer(host: HTMLElement): void {\n    if (this.#pointerSuppression.isSuppressed()) {\n      return;\n    }\n    this.#pointerHost.set(host);\n  }\n\n  private notifyOptionFocus(): void {\n    this.#pointerHost.set(null);\n  }\n\n  private releasePointerHighlight(): void {\n    this.#pointerHost.set(null);\n  }\n\n  commitOnTab(value: D): void {\n    if (this.effectiveDisabled()) {\n      return;\n    }\n    if (!this.readonly()) {\n      this.value.set(composeWithTime(this.adapter, this.value() ?? this.#sentinel(), value));\n    }\n    this.#controller.focusTrigger();\n    this.#controller.closeOverlay('tab');\n  }\n\n  override markTouched(): void {\n    super.markTouched();\n  }\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\n\nimport { registerHandle } from 'forty-cdk/core';\nimport { injectTimePickerContext } from './time-picker-context';\n\n/**\n * Optional positioning anchor. When present, `[forTimePickerContent]` is\n * positioned against this element instead of `[forTimePickerTrigger]` — useful\n * when the trigger lives inside a decorated field box (padding, prefix icon,\n * clear / chevron buttons) and the listbox should align to the visible field\n * rather than the inner button.\n *\n * Only positioning changes: the trigger still owns `aria-controls`,\n * `aria-expanded`, the click toggle, focus return on close, and its exemption\n * from outside-pointer dismissal. If no anchor is registered the listbox falls\n * back to anchoring against the trigger, so existing usages are unaffected.\n *\n * At most one `[forTimePickerAnchor]` may be registered per `[forTimePicker]`;\n * a second one throws.\n *\n * ```html\n * <div forTimePicker [(value)]=\"time\">\n *   <div forTimePickerAnchor class=\"field-box\">\n *     <icon />\n *     <button forTimePickerTrigger><span forTimePickerValue>…</span></button>\n *     <button class=\"clear\">×</button>\n *   </div>\n *   @if (open()) {\n *     <div forTimePickerContent>…</div>\n *   }\n * </div>\n * ```\n */\n@Directive({\n  selector: '[forTimePickerAnchor]',\n  exportAs: 'forTimePickerAnchor',\n})\nexport class ForTimePickerAnchor {\n  readonly #ctx = injectTimePickerContext('ForTimePickerAnchor');\n  readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n  constructor() {\n    registerHandle(\n      this.#host.nativeElement,\n      (el) => this.#ctx.overlay.registerAnchor(el),\n      (el) => this.#ctx.overlay.unregisterAnchor(el),\n    );\n  }\n}\n","import { computed, Directive, effect, ElementRef, inject, input } from '@angular/core';\n\nimport { hostButtonType, reflectDisabled } from 'forty-cdk/core';\nimport { type ForTimePickerContext, injectTimePickerTriggerContext } from './time-picker-context';\n\n/**\n * Combobox button that opens the time picker listbox. Apply on a `<button>` so\n * Space / Enter dispatch native click events that toggle via `(click)`.\n *\n * Wires APG select-only combobox attributes: `role=\"combobox\"`,\n * `aria-haspopup=\"listbox\"`, `aria-expanded`, and `aria-controls` pointing to\n * the listbox. The button is exempt from the listbox's dismissible layer so\n * clicks on it toggle without dismissal racing.\n *\n * Disabling: the native `disabled` attribute is the single reflection channel\n * — no `aria-disabled` is emitted, because on a real single-purpose `<button>`\n * trigger the native attribute already conveys the state to assistive\n * technology, and it is what suppresses activation here. The\n * `role=\"combobox\"` override does not change that: the HTML `disabled`\n * attribute maps to the unavailable state regardless of the ARIA role. It is\n * reflected non-destructively — the directive only removes the attribute when\n * it set it itself — and `data-disabled=\"\"` stays as the styling hook. The\n * remaining form-control state (`aria-readonly` / `aria-required` /\n * `aria-invalid` / `aria-busy`) is unaffected, and the read-only state carries\n * its own `data-readonly=\"\"` styling hook — `readonly` is not a valid attribute\n * of `<button>`, so a `data-*` channel is the only one available there.\n *\n * Keyboard:\n * - **Click / Enter / Space** — toggle (open focuses the selected slot, or first).\n * - **ArrowDown** — open + focus selected slot (or first).\n * - **ArrowUp** — open + focus selected slot (or last when none selected).\n */\n@Directive({\n  selector: '[forTimePickerTrigger]',\n  exportAs: 'forTimePickerTrigger',\n  host: {\n    '[attr.type]': 'buttonType()',\n    role: 'combobox',\n    '[id]': 'ctx().overlay.triggerId()',\n    '[attr.aria-haspopup]': '\"listbox\"',\n    '[attr.aria-expanded]': 'ctx().open() ? \"true\" : \"false\"',\n    '[attr.aria-controls]': 'ctx().open() ? ctx().overlay.contentId() : null',\n    '[attr.aria-readonly]': 'ctx().readonly() ? \"true\" : null',\n    '[attr.aria-required]': 'ctx().required() ? \"true\" : null',\n    '[attr.aria-invalid]': 'ctx().invalid() ? \"true\" : null',\n    '[attr.aria-busy]': 'ctx().pending() ? \"true\" : null',\n    '[attr.data-state]': 'ctx().open() ? \"open\" : \"closed\"',\n    '[attr.data-disabled]': 'ctx().effectiveDisabled() ? \"\" : null',\n    '[attr.data-readonly]': 'ctx().readonly() ? \"\" : null',\n    '(click)': 'onClick()',\n    '(keydown)': 'onKeyDown($event)',\n    '(focusout)': 'onFocusOut($event)',\n  },\n})\nexport class ForTimePickerTrigger<D = unknown> {\n  protected readonly buttonType = hostButtonType();\n\n  readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n  /**\n   * Optional explicit reference to the `[forTimePicker]` root, named after the\n   * selector `routerLink`-style. The bare valueless attribute keeps resolving\n   * the enclosing root via DI; pass the root explicitly\n   * (`[forTimePickerTrigger]=\"root\"`, with `#root=\"forTimePicker\"`) when the\n   * trigger is declared in an `ng-template` stamped inside the root.\n   */\n  readonly forTimePickerTrigger = input<ForTimePickerContext<D> | ''>('');\n\n  protected readonly ctx = injectTimePickerTriggerContext<D>(this.forTimePickerTrigger);\n\n  constructor() {\n    const el = this.#host.nativeElement;\n    effect((onCleanup) => {\n      const ctx = this.ctx();\n      ctx.overlay.registerTrigger(el);\n      onCleanup(() => ctx.overlay.unregisterTrigger(el));\n    });\n    reflectDisabled(computed(() => this.ctx().effectiveDisabled()));\n  }\n\n  protected onClick(): void {\n    this.ctx().overlay.toggle('selected');\n  }\n\n  protected onKeyDown(event: KeyboardEvent): void {\n    if (this.ctx().effectiveDisabled()) {\n      return;\n    }\n    if (event.key === 'ArrowDown') {\n      event.preventDefault();\n      this.ctx().overlay.openOverlay('selected');\n      return;\n    }\n    if (event.key === 'ArrowUp') {\n      event.preventDefault();\n      this.ctx().overlay.openOverlay(this.ctx().value() !== null ? 'selected' : 'last');\n    }\n  }\n\n  protected onFocusOut(event: FocusEvent): void {\n    const next = event.relatedTarget as HTMLElement | null;\n    if (next) {\n      const content = this.ctx().overlay.content();\n      if (content && content.contains(next)) {\n        return;\n      }\n      if (this.#host.nativeElement.contains(next)) {\n        return;\n      }\n    }\n    this.ctx().markTouched();\n  }\n}\n","import { computed, Directive, input } from '@angular/core';\n\nimport { injectTimePickerContext } from './time-picker-context';\n\n/**\n * Renders the currently selected time slot's label — or the configured\n * placeholder when nothing is selected — into its host element via\n * `textContent`. Apply on a `<span>` (or any inline element) inside\n * `[forTimePickerTrigger]`:\n *\n * ```html\n * <button forTimePickerTrigger>\n *   <span forTimePickerValue placeholder=\"Select a time…\"></span>\n * </button>\n * ```\n */\n@Directive({\n  selector: '[forTimePickerValue]',\n  exportAs: 'forTimePickerValue',\n  host: {\n    '[textContent]': 'displayText()',\n    '[attr.data-placeholder]': 'isPlaceholder() ? \"\" : null',\n  },\n})\nexport class ForTimePickerValue {\n  readonly #ctx = injectTimePickerContext('ForTimePickerValue');\n\n  /** Text shown when nothing is selected. Falls back to `[forTimePicker][placeholder]`. */\n  readonly placeholder = input<string>('');\n\n  protected readonly isPlaceholder = computed(() => this.#ctx.value() === null);\n\n  protected readonly displayText = computed(\n    () => this.#ctx.formattedValue() ?? (this.placeholder() || this.#ctx.placeholder()),\n  );\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\n\nimport { registerHandle, hostAriaLabel, hostLabelledBy } from 'forty-cdk/core';\nimport {\n  injectModalShell,\n  injectOverlayShell,\n  warnIfMountedWhileClosed,\n} from 'forty-cdk/core-overlay';\nimport { injectTimePickerContext } from './time-picker-context';\n\n/**\n * The listbox surface of the time picker. Carries `role=\"listbox\"`, is\n * portaled to `document.body`, and is positioned by `@floating-ui/dom`\n * against the trigger.\n *\n * Mount/unmount of the visible content is the consumer's responsibility —\n * wrap with `@if (open())` so `animate.enter` / `animate.leave` fire on the\n * natural mount cycle. While mounted it dismisses on Escape, pointer-down\n * outside or focus outside; the trigger element is exempt from outside-pointer\n * checks so trigger clicks toggle without dismissal racing.\n *\n * Initial focus is sent to the selected slot (`'selected'`), the first\n * enabled slot (`'first'`), or the last enabled slot (`'last'`) according to\n * the trigger's hint. On destroy, focus returns to the trigger when\n * `returnFocus` is true.\n *\n * In modal mode, modality is conveyed behaviorally — by the `inert` siblings\n * the shell applies — and reflected as `data-modal` for styling. `aria-modal`\n * is not emitted: `role=\"listbox\"` does not support it, so the\n * attribute would be an `aria-allowed-attr` violation that announces nothing.\n */\n@Directive({\n  selector: '[forTimePickerContent]',\n  exportAs: 'forTimePickerContent',\n  host: {\n    role: 'listbox',\n    tabindex: '-1',\n    '[id]': 'ctx.overlay.contentId()',\n    '[attr.aria-labelledby]': 'labelledBy()',\n    '[attr.aria-label]': 'resolvedAriaLabel()',\n    '[attr.aria-orientation]': 'ctx.orientation()',\n    '[attr.data-state]': 'ctx.open() ? \"open\" : \"closed\"',\n    '[attr.data-orientation]': 'ctx.orientation()',\n    '[attr.data-modal]': 'ctx.modal() ? \"\" : null',\n    '(pointerleave)': 'onPointerLeave()',\n  },\n})\nexport class ForTimePickerContent {\n  protected readonly ctx = injectTimePickerContext('ForTimePickerContent');\n  readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n  protected readonly resolvedAriaLabel = hostAriaLabel(() => this.ctx.ariaLabel());\n\n  protected readonly labelledBy = hostLabelledBy(() =>\n    this.resolvedAriaLabel() ? null : this.ctx.overlay.triggerId(),\n  );\n\n  constructor() {\n    const ctx = this.ctx;\n    registerHandle(\n      this.#host.nativeElement,\n      (el) => ctx.overlay.registerContent(el),\n      (el) => ctx.overlay.unregisterContent(el),\n    );\n\n    warnIfMountedWhileClosed({\n      primitive: 'time-picker',\n      piece: '[forTimePickerContent]',\n      condition: 'picker.open()',\n      open: ctx.open,\n    });\n\n    const focusInitial = (): boolean => {\n      const target = ctx.overlay.initialFocus();\n      if (target === 'selected') {\n        return ctx.focusSelectedOption() || ctx.overlay.focusFirstEnabledOption();\n      }\n      if (target === 'last') {\n        return ctx.overlay.focusLastEnabledOption();\n      }\n      return ctx.overlay.focusFirstEnabledOption();\n    };\n\n    if (ctx.modal()) {\n      injectModalShell({\n        modal: ctx.modal,\n        returnFocus: ctx.returnFocus,\n        initialFocus: {\n          move: focusInitial,\n          veto: () => ctx.overlay.emitAutoFocusOnOpen(),\n        },\n        autoFocusOnClose: () => (event) => {\n          if (ctx.overlay.emitAutoFocusOnClose()) {\n            event.preventDefault();\n          }\n        },\n        dismiss: {\n          dismissible: ctx.dismissible,\n          requestClose: (reason) => {\n            ctx.markTouched();\n            ctx.overlay.closeOverlay(reason);\n          },\n          emitEscapeKeyDown: (veto) => ctx.overlay.forwardEscapeKeyDown(veto),\n          emitPointerDownOutside: (veto) => ctx.overlay.emitPointerDownOutside(veto),\n          emitFocusOutside: (veto) => ctx.overlay.emitFocusOutside(veto),\n          emitInteractOutside: (veto) => ctx.overlay.emitInteractOutside(veto),\n        },\n      });\n      return;\n    }\n\n    injectOverlayShell({\n      positioner: {\n        kind: 'floating',\n        reference: ctx.overlay.anchor,\n        open: ctx.open,\n        side: ctx.side,\n        align: ctx.align,\n        sideOffset: ctx.sideOffset,\n        alignOffset: ctx.alignOffset,\n        avoidCollisions: ctx.avoidCollisions,\n        collisionPadding: ctx.collisionPadding,\n        sticky: ctx.sticky,\n        hideWhenDetached: ctx.hideWhenDetached,\n        clipUntilPositioned: ctx.clipUntilPositioned,\n      },\n      dismiss: {\n        dismissible: ctx.dismissible,\n        requestClose: (reason) => {\n          ctx.markTouched();\n          ctx.overlay.closeOverlay(reason);\n        },\n        emitEscapeKeyDown: (event) => ctx.overlay.emitEscapeKeyDown(event),\n        emitPointerDownOutside: (veto) => ctx.overlay.emitPointerDownOutside(veto),\n        emitFocusOutside: (veto) => ctx.overlay.emitFocusOutside(veto),\n        emitInteractOutside: (veto) => ctx.overlay.emitInteractOutside(veto),\n        exemptElements: () => {\n          const t = ctx.overlay.trigger();\n          return t ? [t] : [];\n        },\n      },\n      initialFocus: {\n        move: focusInitial,\n        veto: () => ctx.overlay.emitAutoFocusOnOpen(),\n      },\n      returnFocus: {\n        enabled: ctx.returnFocus,\n        target: () => ctx.overlay.trigger(),\n        veto: () => ctx.overlay.emitAutoFocusOnClose(),\n        skip: () => ctx.overlay.lastCloseReason() === 'tab',\n      },\n    });\n  }\n\n  protected onPointerLeave(): void {\n    this.ctx.releasePointerHighlight();\n  }\n}\n","import {\n  booleanAttribute,\n  computed,\n  Directive,\n  ElementRef,\n  inject,\n  input,\n  signal,\n} from '@angular/core';\n\nimport { registerHandle, hostId, resolveListNavigation } from 'forty-cdk/core';\nimport { injectTimePickerContext } from './time-picker-context';\n\n/**\n * One option inside a `[forTimePickerContent]`. Apply on a `<div>` (or any\n * non-button element) — the option handles Enter/Space activation itself in its\n * keydown handler because a `<div>` has no native keyboard click.\n *\n * @typeParam D The adapter's date-time type (inferred from `[value]`).\n *\n * Hovering an enabled slot hands it `data-highlighted`, so pointer and keyboard\n * feed one highlight and exactly one slot is ever decorated. Hover never moves\n * DOM focus and never selects — the pointer's own click activates — and moving\n * the pointer off `[forTimePickerContent]` hands the highlight back to the\n * focused slot.\n *\n * Keyboard while focused:\n * - **Enter / Space** — activate (select the slot).\n * - **ArrowDown / ArrowUp / Home / End** — move focus inside the listbox.\n * - **Tab / Shift+Tab** — commit the focused slot and let the browser advance\n *   focus to the next / previous focusable.\n * - **Escape** — routed through the content's keydown to close the listbox.\n */\n@Directive({\n  selector: '[forTimePickerOption]',\n  exportAs: 'forTimePickerOption',\n  host: {\n    role: 'option',\n    tabindex: '-1',\n    '[id]': 'id()',\n    '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n    '[attr.aria-disabled]': 'effectiveDisabled() ? \"true\" : null',\n    '[attr.data-state]': 'selected() ? \"checked\" : \"unchecked\"',\n    '[attr.data-disabled]': 'effectiveDisabled() ? \"\" : null',\n    '[attr.data-highlighted]': 'highlighted() ? \"\" : null',\n    '(click)': 'onClick()',\n    '(keydown)': 'onKeyDown($event)',\n    '(focus)': 'onFocus()',\n    '(blur)': 'onBlur()',\n    '(pointermove)': 'onPointerMove()',\n  },\n})\nexport class ForTimePickerOption<D = unknown> {\n  readonly #ctx = injectTimePickerContext<D>('ForTimePickerOption');\n  readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n  /**\n   * The date-time value this option represents. Provided by the parent\n   * `[forTimePicker]`'s `slots()` computed.\n   */\n  readonly value = input.required<D>();\n\n  /** When `true`, this option cannot be selected. */\n  readonly disabled = input(false, { transform: booleanAttribute });\n\n  readonly id = hostId('for-time-picker-option');\n\n  readonly selected = computed(\n    () => this.#ctx.value() !== null && this.#ctx.isSelected(this.value()),\n  );\n  readonly effectiveDisabled = computed(() => this.disabled() || this.#ctx.effectiveDisabled());\n\n  readonly #focused = signal(false);\n  /**\n   * True when this slot is the active candidate — the one the pointer is over,\n   * else the DOM-focused one. Reflected as `data-highlighted`.\n   */\n  readonly highlighted = computed(() => {\n    const pointed = this.#ctx.pointerHighlightedOption();\n    if (pointed !== null) {\n      return pointed === this.#host.nativeElement;\n    }\n    return this.#focused();\n  });\n\n  constructor() {\n    const handle = {\n      host: this.#host.nativeElement,\n      value: this.value,\n      disabled: this.effectiveDisabled,\n    };\n    registerHandle(\n      handle,\n      (h) => this.#ctx.overlay.registerOption(h),\n      (h) => this.#ctx.overlay.unregisterOption(h),\n    );\n  }\n\n  protected onClick(): void {\n    if (this.effectiveDisabled() || this.#ctx.readonly()) {\n      return;\n    }\n    this.#ctx.activate(this.value());\n  }\n\n  protected onFocus(): void {\n    this.#focused.set(true);\n    this.#ctx.notifyOptionFocus();\n    this.#host.nativeElement.scrollIntoView?.({ block: 'nearest' });\n  }\n\n  protected onBlur(): void {\n    this.#focused.set(false);\n  }\n\n  protected onPointerMove(): void {\n    if (this.effectiveDisabled()) {\n      return;\n    }\n    this.#ctx.highlightFromPointer(this.#host.nativeElement);\n  }\n\n  protected onKeyDown(event: KeyboardEvent): void {\n    if (this.effectiveDisabled()) {\n      return;\n    }\n\n    if (event.key === 'Enter' || event.key === ' ') {\n      event.preventDefault();\n      this.#ctx.activate(this.value());\n      return;\n    }\n\n    if (event.key === 'Tab') {\n      if (this.#ctx.modal()) {\n        return;\n      }\n      this.#ctx.commitOnTab(this.value());\n      return;\n    }\n\n    const action = resolveListNavigation(event, {\n      orientation: this.#ctx.orientation(),\n      dir: this.#ctx.dir(),\n    });\n    if (action) {\n      event.preventDefault();\n      this.#ctx.overlay.navigate(this.#host.nativeElement, action);\n    }\n  }\n}\n","/**\n * Exact public names of every `ForTimePicker` input, its models included.\n * Spread it into the `inputs` array of a `hostDirectives` entry so a wrapper\n * component re-exposes the primitive's full surface — the Signal Forms members\n * `[formField]` binds among them — without hand-maintaining the list. Always\n * spread into an inline object literal so the entry is statically analyzable.\n * An anti-drift spec fails when this list no longer matches the directive's\n * actual API.\n *\n * @example\n * ```ts\n * @Component({\n *   selector: 'div[myTimePicker]',\n *   template: '',\n *   hostDirectives: [\n *     {\n *       directive: ForTimePicker,\n *       inputs: [...FOR_TIME_PICKER_HOST_DIRECTIVE_INPUTS],\n *       outputs: [...FOR_TIME_PICKER_HOST_DIRECTIVE_OUTPUTS],\n *     },\n *   ],\n * })\n * export class MyTimePicker {}\n * ```\n */\nexport const FOR_TIME_PICKER_HOST_DIRECTIVE_INPUTS = [\n  'value',\n  'open',\n  'align',\n  'alignOffset',\n  'ariaLabel',\n  'avoidCollisions',\n  'clipUntilPositioned',\n  'closeOnSelect',\n  'collisionPadding',\n  'dir',\n  'dirty',\n  'disabled',\n  'dismissible',\n  'errors',\n  'formatOptions',\n  'granularity',\n  'hideWhenDetached',\n  'hourCycle',\n  'invalid',\n  'locale',\n  'loop',\n  'maxTime',\n  'minTime',\n  'modal',\n  'name',\n  'orientation',\n  'pending',\n  'placeholder',\n  'readonly',\n  'required',\n  'returnFocus',\n  'side',\n  'sideOffset',\n  'step',\n  'sticky',\n  'touched',\n] as const;\n\n/**\n * Exact public names of every `ForTimePicker` output, the Signal Forms `touch`\n * output included. Spread it into the `outputs` array of the same\n * `hostDirectives` entry as {@link FOR_TIME_PICKER_HOST_DIRECTIVE_INPUTS}.\n */\nexport const FOR_TIME_PICKER_HOST_DIRECTIVE_OUTPUTS = [\n  'valueChange',\n  'openChange',\n  'escapeKeyDown',\n  'pointerDownOutside',\n  'focusOutside',\n  'interactOutside',\n  'autoFocusOnOpen',\n  'autoFocusOnClose',\n  'touchedChange',\n  'touch',\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;SAiDgB,gBAAgB,CAC9B,OAAkC,EAClC,CAAI,EACJ,WAAkC,EAAA;IAElC,MAAM,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC7B,IAAA,IAAI,WAAW,KAAK,MAAM,EAAE;QAC1B,OAAO,CAAC,GAAG,IAAI;IACjB;AACA,IAAA,IAAI,WAAW,KAAK,QAAQ,EAAE;AAC5B,QAAA,OAAO,CAAC,GAAG,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE;IAC9C;AACA,IAAA,OAAO,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC;AACjC;AAEA;;;;;;;;;;;;;AAaG;AACG,SAAU,cAAc,CAAI,MAA+B,EAAA;AAC/D,IAAA,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,MAAM;AAChG,IAAA,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC;AACpC,IAAA,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI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