forty-cdk 0.2.0 → 0.3.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.
- package/accordion/README.md +122 -0
- package/aspect-ratio/README.md +76 -0
- package/avatar/README.md +100 -0
- package/breadcrumbs/README.md +49 -0
- package/breakpoints/README.md +81 -0
- package/button/README.md +49 -0
- package/calendar/README.md +458 -0
- package/carousel/README.md +358 -0
- package/checkbox/README.md +146 -0
- package/combobox/README.md +535 -0
- package/context-menu/README.md +139 -0
- package/date-field/README.md +184 -0
- package/date-picker/README.md +338 -0
- package/dialog/README.md +388 -0
- package/disclosure/README.md +114 -0
- package/drag-drop/README.md +359 -0
- package/drawer/README.md +560 -0
- package/dropdown-menu/README.md +176 -0
- package/fesm2022/forty-cdk-accordion.mjs +348 -0
- package/fesm2022/forty-cdk-accordion.mjs.map +1 -0
- package/fesm2022/forty-cdk-aspect-ratio.mjs +74 -0
- package/fesm2022/forty-cdk-aspect-ratio.mjs.map +1 -0
- package/fesm2022/forty-cdk-avatar.mjs +308 -0
- package/fesm2022/forty-cdk-avatar.mjs.map +1 -0
- package/fesm2022/forty-cdk-breadcrumbs.mjs +125 -0
- package/fesm2022/forty-cdk-breadcrumbs.mjs.map +1 -0
- package/fesm2022/forty-cdk-breakpoints.mjs +117 -0
- package/fesm2022/forty-cdk-breakpoints.mjs.map +1 -0
- package/fesm2022/forty-cdk-button.mjs +134 -0
- package/fesm2022/forty-cdk-button.mjs.map +1 -0
- package/fesm2022/forty-cdk-calendar.mjs +2034 -0
- package/fesm2022/forty-cdk-calendar.mjs.map +1 -0
- package/fesm2022/forty-cdk-carousel.mjs +968 -0
- package/fesm2022/forty-cdk-carousel.mjs.map +1 -0
- package/fesm2022/forty-cdk-checkbox.mjs +226 -0
- package/fesm2022/forty-cdk-checkbox.mjs.map +1 -0
- package/fesm2022/forty-cdk-combobox.mjs +2596 -0
- package/fesm2022/forty-cdk-combobox.mjs.map +1 -0
- package/fesm2022/forty-cdk-context-menu.mjs +413 -0
- package/fesm2022/forty-cdk-context-menu.mjs.map +1 -0
- package/fesm2022/forty-cdk-core.mjs +9022 -0
- package/fesm2022/forty-cdk-core.mjs.map +1 -0
- package/fesm2022/forty-cdk-date-field.mjs +744 -0
- package/fesm2022/forty-cdk-date-field.mjs.map +1 -0
- package/fesm2022/forty-cdk-date-picker.mjs +1011 -0
- package/fesm2022/forty-cdk-date-picker.mjs.map +1 -0
- package/fesm2022/forty-cdk-dialog.mjs +707 -0
- package/fesm2022/forty-cdk-dialog.mjs.map +1 -0
- package/fesm2022/forty-cdk-disclosure.mjs +190 -0
- package/fesm2022/forty-cdk-disclosure.mjs.map +1 -0
- package/fesm2022/forty-cdk-drag-drop.mjs +1180 -0
- package/fesm2022/forty-cdk-drag-drop.mjs.map +1 -0
- package/fesm2022/forty-cdk-drawer.mjs +1641 -0
- package/fesm2022/forty-cdk-drawer.mjs.map +1 -0
- package/fesm2022/forty-cdk-dropdown-menu.mjs +350 -0
- package/fesm2022/forty-cdk-dropdown-menu.mjs.map +1 -0
- package/fesm2022/forty-cdk-field.mjs +425 -0
- package/fesm2022/forty-cdk-field.mjs.map +1 -0
- package/fesm2022/forty-cdk-fieldset.mjs +164 -0
- package/fesm2022/forty-cdk-fieldset.mjs.map +1 -0
- package/fesm2022/forty-cdk-file-upload.mjs +221 -0
- package/fesm2022/forty-cdk-file-upload.mjs.map +1 -0
- package/fesm2022/forty-cdk-hover-card.mjs +496 -0
- package/fesm2022/forty-cdk-hover-card.mjs.map +1 -0
- package/fesm2022/forty-cdk-input.mjs +274 -0
- package/fesm2022/forty-cdk-input.mjs.map +1 -0
- package/fesm2022/forty-cdk-internationalized-date.mjs +1 -1
- package/fesm2022/forty-cdk-internationalized-date.mjs.map +1 -1
- package/fesm2022/forty-cdk-listbox.mjs +1279 -0
- package/fesm2022/forty-cdk-listbox.mjs.map +1 -0
- package/fesm2022/forty-cdk-menu.mjs +1439 -0
- package/fesm2022/forty-cdk-menu.mjs.map +1 -0
- package/fesm2022/forty-cdk-menubar.mjs +787 -0
- package/fesm2022/forty-cdk-menubar.mjs.map +1 -0
- package/fesm2022/forty-cdk-meter.mjs +211 -0
- package/fesm2022/forty-cdk-meter.mjs.map +1 -0
- package/fesm2022/forty-cdk-navigation-menu.mjs +1145 -0
- package/fesm2022/forty-cdk-navigation-menu.mjs.map +1 -0
- package/fesm2022/forty-cdk-number-input.mjs +559 -0
- package/fesm2022/forty-cdk-number-input.mjs.map +1 -0
- package/fesm2022/forty-cdk-otp-input.mjs +527 -0
- package/fesm2022/forty-cdk-otp-input.mjs.map +1 -0
- package/fesm2022/forty-cdk-pagination.mjs +323 -0
- package/fesm2022/forty-cdk-pagination.mjs.map +1 -0
- package/fesm2022/forty-cdk-pane-resizer.mjs +297 -0
- package/fesm2022/forty-cdk-pane-resizer.mjs.map +1 -0
- package/fesm2022/forty-cdk-popover.mjs +698 -0
- package/fesm2022/forty-cdk-popover.mjs.map +1 -0
- package/fesm2022/forty-cdk-progress.mjs +226 -0
- package/fesm2022/forty-cdk-progress.mjs.map +1 -0
- package/fesm2022/forty-cdk-radio-group.mjs +378 -0
- package/fesm2022/forty-cdk-radio-group.mjs.map +1 -0
- package/fesm2022/forty-cdk-scroll-area.mjs +640 -0
- package/fesm2022/forty-cdk-scroll-area.mjs.map +1 -0
- package/fesm2022/forty-cdk-search.mjs +205 -0
- package/fesm2022/forty-cdk-search.mjs.map +1 -0
- package/fesm2022/forty-cdk-select.mjs +1661 -0
- package/fesm2022/forty-cdk-select.mjs.map +1 -0
- package/fesm2022/forty-cdk-separator.mjs +82 -0
- package/fesm2022/forty-cdk-separator.mjs.map +1 -0
- package/fesm2022/forty-cdk-signal-forms.mjs +97 -0
- package/fesm2022/forty-cdk-signal-forms.mjs.map +1 -0
- package/fesm2022/forty-cdk-slider.mjs +803 -0
- package/fesm2022/forty-cdk-slider.mjs.map +1 -0
- package/fesm2022/forty-cdk-stepper.mjs +886 -0
- package/fesm2022/forty-cdk-stepper.mjs.map +1 -0
- package/fesm2022/forty-cdk-switch.mjs +137 -0
- package/fesm2022/forty-cdk-switch.mjs.map +1 -0
- package/fesm2022/forty-cdk-table.mjs +1518 -0
- package/fesm2022/forty-cdk-table.mjs.map +1 -0
- package/fesm2022/forty-cdk-tabs.mjs +400 -0
- package/fesm2022/forty-cdk-tabs.mjs.map +1 -0
- package/fesm2022/forty-cdk-time-field.mjs +593 -0
- package/fesm2022/forty-cdk-time-field.mjs.map +1 -0
- package/fesm2022/forty-cdk-time-picker.mjs +1013 -0
- package/fesm2022/forty-cdk-time-picker.mjs.map +1 -0
- package/fesm2022/forty-cdk-toast.mjs +1153 -0
- package/fesm2022/forty-cdk-toast.mjs.map +1 -0
- package/fesm2022/forty-cdk-toggle.mjs +516 -0
- package/fesm2022/forty-cdk-toggle.mjs.map +1 -0
- package/fesm2022/forty-cdk-toolbar.mjs +374 -0
- package/fesm2022/forty-cdk-toolbar.mjs.map +1 -0
- package/fesm2022/forty-cdk-tooltip.mjs +672 -0
- package/fesm2022/forty-cdk-tooltip.mjs.map +1 -0
- package/fesm2022/forty-cdk-tree.mjs +2007 -0
- package/fesm2022/forty-cdk-tree.mjs.map +1 -0
- package/fesm2022/forty-cdk-virtualization.mjs +1 -1
- package/fesm2022/forty-cdk-virtualization.mjs.map +1 -1
- package/fesm2022/forty-cdk.mjs +0 -43310
- package/fesm2022/forty-cdk.mjs.map +1 -1
- package/field/README.md +97 -0
- package/fieldset/README.md +86 -0
- package/file-upload/README.md +73 -0
- package/hover-card/README.md +171 -0
- package/input/README.md +156 -0
- package/listbox/README.md +424 -0
- package/menu/README.md +181 -0
- package/menubar/README.md +140 -0
- package/meter/README.md +128 -0
- package/navigation-menu/README.md +253 -0
- package/number-input/README.md +171 -0
- package/otp-input/README.md +198 -0
- package/package.json +213 -1
- package/pagination/README.md +61 -0
- package/pane-resizer/README.md +136 -0
- package/popover/README.md +262 -0
- package/progress/README.md +115 -0
- package/radio-group/README.md +129 -0
- package/scroll-area/README.md +184 -0
- package/search/README.md +42 -0
- package/select/README.md +488 -0
- package/separator/README.md +84 -0
- package/signal-forms/README.md +72 -0
- package/slider/README.md +152 -0
- package/stepper/README.md +292 -0
- package/switch/README.md +116 -0
- package/table/README.md +769 -0
- package/tabs/README.md +130 -0
- package/time-field/README.md +157 -0
- package/time-picker/README.md +172 -0
- package/toast/README.md +398 -0
- package/toggle/README.md +224 -0
- package/toolbar/README.md +109 -0
- package/tooltip/README.md +274 -0
- package/tree/README.md +708 -0
- package/types/forty-cdk-accordion.d.ts +242 -0
- package/types/forty-cdk-aspect-ratio.d.ts +59 -0
- package/types/forty-cdk-avatar.d.ts +133 -0
- package/types/forty-cdk-breadcrumbs.d.ts +92 -0
- package/types/forty-cdk-breakpoints.d.ts +141 -0
- package/types/forty-cdk-button.d.ts +80 -0
- package/types/forty-cdk-calendar.d.ts +914 -0
- package/types/forty-cdk-carousel.d.ts +530 -0
- package/types/forty-cdk-checkbox.d.ts +141 -0
- package/types/forty-cdk-combobox.d.ts +1259 -0
- package/types/forty-cdk-context-menu.d.ts +313 -0
- package/types/forty-cdk-core.d.ts +5774 -0
- package/types/forty-cdk-date-field.d.ts +307 -0
- package/types/forty-cdk-date-picker.d.ts +622 -0
- package/types/forty-cdk-dialog.d.ts +546 -0
- package/types/forty-cdk-disclosure.d.ts +127 -0
- package/types/forty-cdk-drag-drop.d.ts +456 -0
- package/types/forty-cdk-drawer.d.ts +871 -0
- package/types/forty-cdk-dropdown-menu.d.ts +242 -0
- package/types/forty-cdk-field.d.ts +236 -0
- package/types/forty-cdk-fieldset.d.ts +119 -0
- package/types/forty-cdk-file-upload.d.ts +124 -0
- package/types/forty-cdk-hover-card.d.ts +320 -0
- package/types/forty-cdk-input.d.ts +169 -0
- package/types/forty-cdk-internationalized-date.d.ts +1 -1
- package/types/forty-cdk-listbox.d.ts +513 -0
- package/types/forty-cdk-menu.d.ts +629 -0
- package/types/forty-cdk-menubar.d.ts +451 -0
- package/types/forty-cdk-meter.d.ts +122 -0
- package/types/forty-cdk-navigation-menu.d.ts +514 -0
- package/types/forty-cdk-number-input.d.ts +319 -0
- package/types/forty-cdk-otp-input.d.ts +248 -0
- package/types/forty-cdk-pagination.d.ts +214 -0
- package/types/forty-cdk-pane-resizer.d.ts +145 -0
- package/types/forty-cdk-popover.d.ts +509 -0
- package/types/forty-cdk-progress.d.ts +143 -0
- package/types/forty-cdk-radio-group.d.ts +222 -0
- package/types/forty-cdk-scroll-area.d.ts +258 -0
- package/types/forty-cdk-search.d.ts +142 -0
- package/types/forty-cdk-select.d.ts +899 -0
- package/types/forty-cdk-separator.d.ts +59 -0
- package/types/forty-cdk-signal-forms.d.ts +58 -0
- package/types/forty-cdk-slider.d.ts +379 -0
- package/types/forty-cdk-stepper.d.ts +650 -0
- package/types/forty-cdk-switch.d.ts +87 -0
- package/types/forty-cdk-table.d.ts +723 -0
- package/types/forty-cdk-tabs.d.ts +235 -0
- package/types/forty-cdk-time-field.d.ts +307 -0
- package/types/forty-cdk-time-picker.d.ts +578 -0
- package/types/forty-cdk-toast.d.ts +598 -0
- package/types/forty-cdk-toggle.d.ts +310 -0
- package/types/forty-cdk-toolbar.d.ts +217 -0
- package/types/forty-cdk-tooltip.d.ts +436 -0
- package/types/forty-cdk-tree.d.ts +688 -0
- package/types/forty-cdk.d.ts +1 -19743
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forty-cdk-calendar.mjs","sources":["../../../projects/forty-cdk/calendar/src/calendar-bounds.ts","../../../projects/forty-cdk/calendar/src/calendar-context.ts","../../../projects/forty-cdk/calendar/src/build-month-matrix.ts","../../../projects/forty-cdk/calendar/src/calendar-keyboard.ts","../../../projects/forty-cdk/calendar/src/calendar-day-navigator.ts","../../../projects/forty-cdk/calendar/src/calendar-defaults.ts","../../../projects/forty-cdk/calendar/src/calendar-month-navigator.ts","../../../projects/forty-cdk/calendar/src/intended-day-cursor.ts","../../../projects/forty-cdk/calendar/src/calendar-navigation.ts","../../../projects/forty-cdk/calendar/src/calendar-range-selection.ts","../../../projects/forty-cdk/calendar/src/calendar-year-navigator.ts","../../../projects/forty-cdk/calendar/src/calendar.ts","../../../projects/forty-cdk/calendar/src/calendar-grid.ts","../../../projects/forty-cdk/calendar/src/calendar-grid-header.ts","../../../projects/forty-cdk/calendar/src/calendar-cell.ts","../../../projects/forty-cdk/calendar/src/calendar-heading.ts","../../../projects/forty-cdk/calendar/src/calendar-prev-button.ts","../../../projects/forty-cdk/calendar/src/calendar-next-button.ts","../../../projects/forty-cdk/calendar/src/calendar-month-grid.ts","../../../projects/forty-cdk/calendar/src/calendar-month-cell.ts","../../../projects/forty-cdk/calendar/src/calendar-year-grid.ts","../../../projects/forty-cdk/calendar/src/calendar-year-cell.ts","../../../projects/forty-cdk/calendar/src/calendar-view-trigger.ts","../../../projects/forty-cdk/calendar/src/calendar-month-select.ts","../../../projects/forty-cdk/calendar/src/calendar-year-select.ts","../../../projects/forty-cdk/calendar/src/native-date-adapter.ts","../../../projects/forty-cdk/calendar/src/forty-cdk-calendar.ts"],"sourcesContent":["import { computed, type Signal } from '@angular/core';\n\nimport { compareDateOf, type DateAdapter, clampToBounds } from 'forty-cdk/core';\n\n/**\n * The reactive `[min, max]` bounds surface a `ForCalendar` root supplies to its\n * {@link CalendarBounds}.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarBoundsHost<D> {\n /** The active date adapter. */\n readonly adapter: DateAdapter<D>;\n /** Minimum selectable date (inclusive), or `null`. */\n readonly min: Signal<D | null>;\n /** Maximum selectable date (inclusive), or `null`. */\n readonly max: Signal<D | null>;\n /** The visible month (first day), used by the prev / next-month predicates. */\n readonly visibleMonth: () => D;\n /** Per-date consumer predicate marking a date unavailable. */\n readonly isDateUnavailable: Signal<(date: D) => boolean>;\n /** Whether the whole calendar is disabled. */\n readonly disabled: Signal<boolean>;\n}\n\n/**\n * Owns every `[min, max]` bounds question a `ForCalendar` asks: whole-month /\n * whole-year out-of-bounds checks, the prev / next-month disabled predicates,\n * per-date availability, and the navigation clamp. Shared by the root and the\n * day / month / year sub-grids so the bounds math lives in one place.\n *\n * Constructed directly (`new CalendarBounds(host)`); it holds no injection\n * context, mirroring how `SegmentEditor` is lifted out of the date / time\n * fields.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarBounds<D> {\n readonly #host: CalendarBoundsHost<D>;\n\n /** Whether the previous-month button should be disabled (bounded by `min`). */\n readonly isPreviousMonthDisabled = computed(() => {\n const min = this.#host.min();\n if (min === null) {\n return false;\n }\n const adapter = this.#host.adapter;\n const previousMonthLastDay = adapter.addDays(this.#host.visibleMonth(), -1);\n return compareDateOf(adapter, previousMonthLastDay, min) < 0;\n });\n\n /** Whether the next-month button should be disabled (bounded by `max`). */\n readonly isNextMonthDisabled = computed(() => {\n const max = this.#host.max();\n if (max === null) {\n return false;\n }\n const adapter = this.#host.adapter;\n const nextMonthFirstDay = adapter.addMonths(this.#host.visibleMonth(), 1);\n return compareDateOf(adapter, nextMonthFirstDay, max) > 0;\n });\n\n constructor(host: CalendarBoundsHost<D>) {\n this.#host = host;\n }\n\n /** Whether every day of `month` (**1-12**) in `year` falls outside `[min, max]`. */\n isMonthOutOfBounds(year: number, month: number): boolean {\n const adapter = this.#host.adapter;\n const firstDay = adapter.createDate(year, month, 1);\n const lastDay = adapter.createDate(year, month, adapter.getDaysInMonth(firstDay));\n return this.#outOfBounds(firstDay, lastDay);\n }\n\n /** Whether every day of `year` falls outside `[min, max]`. */\n isYearDisabled(year: number): boolean {\n const adapter = this.#host.adapter;\n return this.#outOfBounds(adapter.createDate(year, 1, 1), adapter.createDate(year, 12, 31));\n }\n\n /** Whether `date` cannot be selected (`disabled`, out of `[min, max]`, or unavailable). */\n isUnavailable(date: D): boolean {\n if (this.#host.disabled()) {\n return true;\n }\n const adapter = this.#host.adapter;\n const min = this.#host.min();\n if (min !== null && compareDateOf(adapter, date, min) < 0) {\n return true;\n }\n const max = this.#host.max();\n if (max !== null && compareDateOf(adapter, date, max) > 0) {\n return true;\n }\n return this.#host.isDateUnavailable()(date);\n }\n\n /** Clamp `date` into `[min, max]`, returning the nearer bound when outside. */\n clamp(date: D): D {\n const adapter = this.#host.adapter;\n return clampToBounds(adapter, date, this.#host.min(), this.#host.max(), (a, b) =>\n compareDateOf(adapter, a, b),\n );\n }\n\n #outOfBounds(firstDay: D, lastDay: D): boolean {\n const adapter = this.#host.adapter;\n const min = this.#host.min();\n if (min !== null && compareDateOf(adapter, lastDay, min) < 0) {\n return true;\n }\n const max = this.#host.max();\n if (max !== null && compareDateOf(adapter, firstDay, max) > 0) {\n return true;\n }\n return false;\n }\n}\n","import { inject, InjectionToken, type Signal } from '@angular/core';\n\nimport { type DateAdapter, type WritingDirection } from 'forty-cdk/core';\n\n/** The active display mode of a `ForCalendar`. */\nexport type CalendarView = 'day' | 'month' | 'year';\n\n/**\n * An inclusive date range where `start <= end` (day-granular). Used by\n * `ForCalendar` and `ForDatePicker` in `selectionMode=\"range\"`.\n *\n * @typeParam D The adapter's date type.\n */\nexport interface CalendarDateRange<D> {\n /** Inclusive start of the range. */\n readonly start: D;\n /** Inclusive end of the range (`>= start`). */\n readonly end: D;\n}\n\n/** A selectable year in the year picker grid. */\nexport interface CalendarYearOption {\n /** The full year (e.g. `2026`). */\n readonly value: number;\n /** Whether the entire year falls outside `[min, max]`. */\n readonly disabled: boolean;\n}\n\n/** A row of three months in the month picker grid. */\nexport interface CalendarMonthRow {\n /** Stable key for `@for` tracking. */\n readonly key: string;\n /** The (up to three) month options in this row. */\n readonly months: readonly CalendarMonthOption[];\n}\n\n/** A row of three years in the year picker grid. */\nexport interface CalendarYearRow {\n /** Stable key for `@for` tracking. */\n readonly key: string;\n /** The (up to three) year options in this row. */\n readonly years: readonly CalendarYearOption[];\n}\n\n/**\n * Handle a `ForCalendarMonthCell` registers with the root so the root can move\n * DOM focus to the correct cell during keyboard navigation and view switches.\n */\nexport interface ForCalendarMonthCellHandle {\n /** The `role=\"gridcell\"` host element. */\n readonly host: HTMLElement;\n /** The month this cell represents, **1-12**. */\n readonly month: Signal<number>;\n}\n\n/**\n * Handle a `ForCalendarYearCell` registers with the root so the root can move\n * DOM focus to the correct cell during keyboard navigation and view switches.\n */\nexport interface ForCalendarYearCellHandle {\n /** The `role=\"gridcell\"` host element. */\n readonly host: HTMLElement;\n /** The year this cell represents. */\n readonly year: Signal<number>;\n}\n\n/** A selectable month in the visible year, for building a month dropdown. */\nexport interface CalendarMonthOption {\n /** Month number, **1-12**. */\n readonly value: number;\n /** Localized month name via the adapter (e.g. `\"June\"`). */\n readonly label: string;\n /** Whether the whole month falls outside `[min, max]`. */\n readonly disabled: boolean;\n}\n\n/** A weekday column header in the calendar grid. */\nexport interface CalendarWeekday {\n /** Stable key for `@for` tracking (the **0-6** weekday index as a string). */\n readonly key: string;\n /** Narrow label, e.g. `\"M\"`. */\n readonly narrow: string;\n /** Short label, e.g. `\"Mon\"`. */\n readonly short: string;\n /** Long label, e.g. `\"Monday\"`. */\n readonly long: string;\n}\n\n/** A single day cell in the calendar grid. */\nexport interface CalendarDayCell<D> {\n /** Stable key for `@for` tracking (`year-month-day`). */\n readonly key: string;\n /** The date this cell represents. Bind to `[date]` on `[forCalendarCell]`. */\n readonly date: D;\n /** Day-of-month label, e.g. `\"1\"`. The cell's visible content. */\n readonly label: string;\n /**\n * Full accessible date string for the cell, host-bound to `aria-label` by\n * `[forCalendarCell]`. Defaults to the localized full date (e.g.\n * `\"Monday, June 15, 2026\"`); outside-month padding days are suffixed so\n * assistive tech can tell them apart from the visible month. Customize the\n * format with `ForCalendar`'s `dateLabel` input.\n */\n readonly dateLabel: string;\n}\n\n/**\n * Formats the full accessible date string a calendar gridcell exposes as its\n * `aria-label`. Supplied to `ForCalendar`'s `dateLabel` input to override the\n * default localized full date.\n *\n * @typeParam D The adapter's date type.\n * @param date The cell's date.\n * @param context Formatting context: the active {@link DateAdapter} and whether\n * the date falls outside the visible month.\n */\nexport type CalendarDateLabelFormatter<D> = (\n date: D,\n context: { readonly adapter: DateAdapter<D>; readonly outsideMonth: boolean },\n) => string;\n\n/** A week row in the calendar grid. */\nexport interface CalendarWeek<D> {\n /** Stable key for `@for` tracking (the first day's `year-month-day`). */\n readonly key: string;\n /** The seven day cells of this week, starting at `firstDayOfWeek`. */\n readonly days: readonly CalendarDayCell<D>[];\n}\n\n/**\n * Handle a `ForCalendarCell` registers with the root so it can move DOM focus\n * to the cell matching a target date after the grid re-renders (e.g. when\n * keyboard navigation crosses a month boundary).\n */\nexport interface ForCalendarCellHandle<D> {\n /** The `role=\"gridcell\"` host element. */\n readonly host: HTMLElement;\n /** The date this cell represents. */\n readonly date: Signal<D>;\n}\n\n/**\n * Coordination contract owned by `ForCalendar` (the root). Grid, header,\n * cells, heading, and the navigation buttons all derive their state from it\n * and route selection / navigation through it.\n *\n * The token is typed over `unknown`; pieces pass their own `D` into the\n * `unknown`-typed methods (always assignable) and never need the concrete `D`\n * back out.\n *\n * @typeParam D The adapter's date type.\n */\nexport interface ForCalendarContext<D> {\n /** The active date adapter. */\n readonly adapter: DateAdapter<D>;\n /** Resolved writing direction (`'ltr'` / `'rtl'`); flips horizontal arrows. */\n readonly dir: Signal<WritingDirection>;\n /** Whether the whole calendar is disabled (no focus, no selection). */\n readonly disabled: Signal<boolean>;\n /** Whether the calendar is read-only (focusable, but selection is blocked). */\n readonly readonly: Signal<boolean>;\n\n /** Stable id of the heading element, used for the grid's `aria-labelledby`. */\n readonly headingId: Signal<string>;\n /** The visible month's accessible label, e.g. `\"June 2026\"`. */\n readonly visibleMonthLabel: Signal<string>;\n /** Weekday column headers for the visible month. */\n readonly weekDays: Signal<readonly CalendarWeekday[]>;\n /** Week rows of the visible month, including outside-month padding days. */\n readonly weeks: Signal<readonly CalendarWeek<D>[]>;\n\n /** Whether the previous-month button should be disabled (bounded by `min`). */\n readonly isPreviousMonthDisabled: Signal<boolean>;\n /** Whether the next-month button should be disabled (bounded by `max`). */\n readonly isNextMonthDisabled: Signal<boolean>;\n\n /** The visible month's full year (e.g. `2026`). */\n readonly visibleYear: Signal<number>;\n /** The visible month, **1-12**. */\n readonly visibleMonthNumber: Signal<number>;\n /** Twelve localized, bounds-aware month options for the visible year. */\n readonly monthOptions: Signal<readonly CalendarMonthOption[]>;\n\n /** Set the visible month to (`year`, `month`) without selecting. `month` is **1-12**. */\n goTo(year: number, month: number): void;\n /** Set the visible month within the current visible year. `month` is **1-12**. */\n goToMonth(month: number): void;\n /** Set the visible year, keeping the current visible month. */\n goToYear(year: number): void;\n /** Whether every day of `month` (**1-12**) in the visible year is out of `[min, max]`. */\n isMonthDisabled(month: number): boolean;\n /** Whether every day of `year` is out of `[min, max]`. */\n isYearDisabled(year: number): boolean;\n\n /** Active calendar view; `'day'` (default), `'month'`, or `'year'`. */\n readonly view: Signal<CalendarView>;\n /** Number of years the year picker shows as an aligned block. Default `12`. */\n readonly yearBlockSize: Signal<number>;\n /** Rows of the month picker grid (3 columns) for the visible year. */\n readonly monthRows: Signal<readonly CalendarMonthRow[]>;\n /** Rows of the year picker grid (3 columns) for the aligned block containing the visible year. */\n readonly yearRows: Signal<readonly CalendarYearRow[]>;\n /** Label for the active view shown on the view-trigger button. */\n readonly viewTriggerLabel: Signal<string>;\n /** Whether the prev button should be disabled for the active view. */\n readonly isPreviousDisabled: Signal<boolean>;\n /** Whether the next button should be disabled for the active view. */\n readonly isNextDisabled: Signal<boolean>;\n\n /** Cycle the view one step coarser: `day → month → year`, clamped at `'year'`. */\n cycleView(): void;\n /** Drill into a month (1-12): navigate to it and switch to day view. No-op when disabled/read-only/out of bounds. */\n selectMonth(month: number): void;\n /** Drill into a year: navigate to it and switch to month view. No-op when disabled/read-only/out of bounds. */\n selectYear(year: number): void;\n /** Page backward by one month / year / block depending on the active view. */\n pagePrevious(): void;\n /** Page forward by one month / year / block depending on the active view. */\n pageNext(): void;\n\n /** Whether `month` (1-12) in the visible year is the selected date's month. */\n isMonthSelected(month: number): boolean;\n /** Whether `month` (1-12) is today's month in the visible year. */\n isMonthToday(month: number): boolean;\n /** Whether `month` (1-12) is the roving-tabindex focused month. */\n isMonthFocused(month: number): boolean;\n\n /** Whether `year` is the selected date's year. */\n isYearSelected(year: number): boolean;\n /** Whether `year` is today's year. */\n isYearToday(year: number): boolean;\n /** Whether `year` is the roving-tabindex focused year. */\n isYearFocused(year: number): boolean;\n\n /** Handle a keydown originating on a month cell. */\n handleMonthCellKeydown(event: KeyboardEvent, month: number): void;\n /** Handle a keydown originating on a year cell. */\n handleYearCellKeydown(event: KeyboardEvent, year: number): void;\n\n registerMonthCell(handle: ForCalendarMonthCellHandle): void;\n unregisterMonthCell(handle: ForCalendarMonthCellHandle): void;\n registerYearCell(handle: ForCalendarYearCellHandle): void;\n unregisterYearCell(handle: ForCalendarYearCellHandle): void;\n\n /** Whether `date` is the currently selected value. */\n isSelected(date: D): boolean;\n /** Whether `date` is today. */\n isToday(date: D): boolean;\n /** Whether `date` is the roving-tabindex focused day. */\n isFocused(date: D): boolean;\n /** Whether `date` falls outside the visible month. */\n isOutsideMonth(date: D): boolean;\n /** Whether `date` cannot be selected (`disabled`, out of `min`/`max`, or unavailable). */\n isUnavailable(date: D): boolean;\n /** The full accessible date string for `date`'s gridcell (`aria-label`). */\n getDateLabel(date: D): string;\n\n /**\n * The active selection mode. `'single'` (default) keeps the existing\n * single-date behaviour; `'range'` enables the two-click anchor → commit flow.\n */\n readonly selectionMode: Signal<'single' | 'range'>;\n\n /**\n * Whether `date` is the start of the effective range (committed when idle,\n * preview when a selection is in progress).\n */\n isRangeStart(date: D): boolean;\n\n /**\n * Whether `date` is the end of the effective range (committed when idle,\n * preview when a selection is in progress).\n */\n isRangeEnd(date: D): boolean;\n\n /**\n * Whether `date` falls within the **committed** range, inclusive (idle state\n * only; mutually exclusive with `isRangePreview`).\n */\n isInRange(date: D): boolean;\n\n /**\n * Whether `date` falls within the **preview** band, inclusive (selecting\n * state only; mutually exclusive with `isInRange`).\n */\n isRangePreview(date: D): boolean;\n\n /**\n * Update the pointer-hovered date for the range preview. Ignored in\n * `selectionMode='single'`. Pass `null` on `pointerleave`.\n */\n setHovered(date: D | null): void;\n\n /** Select `date`, unless the calendar is disabled / read-only or the date is unavailable. */\n selectDate(date: D): void;\n /** Page the visible month by `delta` (signed month count). Keeps DOM focus on the caller. */\n pageMonths(delta: number): void;\n /** Resolve and apply a keydown originating on the cell for `fromDate`. */\n handleCellKeydown(event: KeyboardEvent, fromDate: D): void;\n /**\n * Move DOM focus to the roving cell (the gridcell matching the focused date).\n * Returns `false` when no matching cell is currently rendered.\n */\n focusActiveCell(): boolean;\n\n registerCell(handle: ForCalendarCellHandle<D>): void;\n unregisterCell(handle: ForCalendarCellHandle<D>): void;\n /** Adopts a consumer-set static `id` on the heading host into `headingId`. */\n adoptHeadingId(el: HTMLElement): void;\n}\n\n/** Injection token for {@link ForCalendarContext}, provided by `ForCalendar`. */\nexport const FOR_CALENDAR_CONTEXT = new InjectionToken<ForCalendarContext<unknown>>(\n 'FOR_CALENDAR_CONTEXT',\n);\n\n/**\n * Injects the nearest {@link ForCalendarContext}, throwing a descriptive\n * error when used outside a `[forCalendar]` element.\n *\n * @param piece Name of the calling directive, used in the error message.\n */\nexport function injectCalendarContext(piece: string): ForCalendarContext<unknown> {\n const ctx = inject(FOR_CALENDAR_CONTEXT, { optional: true });\n if (!ctx) {\n throw new Error(`[forty-cdk/calendar] ${piece} must be used inside a [forCalendar] element.`);\n }\n return ctx;\n}\n","import { type DateAdapter } from 'forty-cdk/core';\n\n/**\n * Builds the day grid for the month containing `monthAnchor`.\n *\n * Returns rows of 7 dates each, starting at `firstDayOfWeek`. Leading and\n * trailing days from the adjacent months are included so every row is full;\n * callers mark them with `data-outside-month`. The number of rows is the\n * minimum needed to cover the month (4-6), so there is no empty trailing week.\n *\n * Pure and adapter-driven: the same `(adapter, anchor, firstDayOfWeek)` always\n * yields the same matrix, and two adapters over the same calendar system\n * produce day-identical grids.\n *\n * @param adapter The date adapter to compute with.\n * @param monthAnchor Any date within the target month.\n * @param firstDayOfWeek First column's day of week, **0-6** (`0` = Sunday).\n */\nexport function buildMonthMatrix<D>(\n adapter: DateAdapter<D>,\n monthAnchor: D,\n firstDayOfWeek: number,\n): D[][] {\n const firstOfMonth = adapter.createDate(\n adapter.getYear(monthAnchor),\n adapter.getMonth(monthAnchor),\n 1,\n );\n const daysInMonth = adapter.getDaysInMonth(firstOfMonth);\n const leading = (adapter.getDayOfWeek(firstOfMonth) - firstDayOfWeek + 7) % 7;\n const numWeeks = Math.ceil((leading + daysInMonth) / 7);\n const gridStart = adapter.addDays(firstOfMonth, -leading);\n\n const weeks: D[][] = [];\n for (let week = 0; week < numWeeks; week++) {\n const row: D[] = [];\n for (let day = 0; day < 7; day++) {\n row.push(adapter.addDays(gridStart, week * 7 + day));\n }\n weeks.push(row);\n }\n return weeks;\n}\n","/**\n * The directional intents a calendar grid keyboard move can express. Each\n * sub-grid (day / month / year) maps these onto its own coordinate space —\n * dates for the day grid, a linear month index for the month grid, a year\n * number for the year grid — so the arrow / `Home` / `End` / `PageUp` /\n * `PageDown` dispatch lives in one place instead of three near-identical\n * `switch` statements.\n */\nexport interface CalendarGridMoves<T> {\n /** Move one column horizontally (signed: `-1` left, `1` right) before RTL mirroring. */\n horizontal(step: -1 | 1): T;\n /** Move one row vertically (signed: `-1` up, `1` down). */\n vertical(step: -1 | 1): T;\n /** Move to the first cell of the current line (`Home`). */\n lineStart(): T;\n /** Move to the last cell of the current line (`End`). */\n lineEnd(): T;\n /** Page backward (`PageUp`); `shiftKey` distinguishes the coarser step where it applies. */\n pageBackward(shiftKey: boolean): T;\n /** Page forward (`PageDown`); `shiftKey` distinguishes the coarser step where it applies. */\n pageForward(shiftKey: boolean): T;\n}\n\n/**\n * Resolve a calendar grid keydown into the target the move lands on, or `null`\n * when the key is not a navigation key. `rtl` mirrors the horizontal arrows.\n * Shared by all three sub-grids via their {@link CalendarGridMoves} mapping.\n */\nexport function resolveCalendarGridMove<T>(\n event: KeyboardEvent,\n rtl: boolean,\n moves: CalendarGridMoves<T>,\n): T | null {\n switch (event.key) {\n case 'ArrowLeft':\n return moves.horizontal(rtl ? 1 : -1);\n case 'ArrowRight':\n return moves.horizontal(rtl ? -1 : 1);\n case 'ArrowUp':\n return moves.vertical(-1);\n case 'ArrowDown':\n return moves.vertical(1);\n case 'Home':\n return moves.lineStart();\n case 'End':\n return moves.lineEnd();\n case 'PageUp':\n return moves.pageBackward(event.shiftKey);\n case 'PageDown':\n return moves.pageForward(event.shiftKey);\n default:\n return null;\n }\n}\n\n/** Whether a keydown is the activation key (`Enter` / `Space`) every sub-grid selects on. */\nexport function isCalendarActivationKey(event: KeyboardEvent): boolean {\n return event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar';\n}\n","import { computed } from '@angular/core';\n\nimport { Collection, type DateAdapter } from 'forty-cdk/core';\nimport { buildMonthMatrix } from './build-month-matrix';\nimport type { CalendarWeek, CalendarWeekday, ForCalendarCellHandle } from './calendar-context';\nimport { isCalendarActivationKey, resolveCalendarGridMove } from './calendar-keyboard';\nimport type { CalendarViewStrategy } from './calendar-sub-grid';\n\n/**\n * The day grid view's state machine (`view=\"day\"`): the 7-column date table.\n * Owns its cell registry, the rendered `weekDays` / `weeks` data, its\n * table-driven keyboard mover (the date-math counterpart to the month / year\n * movers), the start-of-week helper, and the per-view label / disabled / paging\n * / focus the root composes as a {@link CalendarViewStrategy}.\n *\n * Constructed directly by the root (`new CalendarDayNavigator(host)`); it holds\n * no injection context, mirroring how `SegmentEditor` is lifted out of the date\n * / time fields. The intended-day, clamp, and announce machinery stays a single\n * source of truth on the root, reached through {@link CalendarDayNavigatorHost}.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarDayNavigator<D> implements CalendarViewStrategy {\n readonly #host: CalendarDayNavigatorHost<D>;\n readonly #cells = new Collection<ForCalendarCellHandle<D>>();\n\n readonly #matrix = computed(() =>\n buildMonthMatrix(this.#host.adapter, this.#host.visibleMonth(), this.#host.firstDayOfWeek()),\n );\n\n /** Weekday column headers for the visible month, starting at `firstDayOfWeek`. */\n readonly weekDays = computed<readonly CalendarWeekday[]>(() => {\n const adapter = this.#host.adapter;\n const firstDay = this.#host.firstDayOfWeek();\n return this.#matrix()[0]!.map((date, index) => ({\n key: String((firstDay + index) % 7),\n narrow: adapter.format(date, { weekday: 'narrow' }),\n short: adapter.format(date, { weekday: 'short' }),\n long: adapter.format(date, { weekday: 'long' }),\n }));\n });\n\n /** Week rows of the visible month, including outside-month padding days. */\n readonly weeks = computed<readonly CalendarWeek<D>[]>(() => {\n const adapter = this.#host.adapter;\n return this.#matrix().map((row) => ({\n key: this.#dateKey(row[0]!),\n days: row.map((date) => ({\n key: this.#dateKey(date),\n date,\n label: String(adapter.getDate(date)),\n dateLabel: this.#host.getDateLabel(date),\n })),\n }));\n });\n\n constructor(host: CalendarDayNavigatorHost<D>) {\n this.#host = host;\n }\n\n triggerLabel(): string {\n return this.#host.visibleMonthLabel();\n }\n\n isPreviousDisabled(): boolean {\n return this.#host.isPreviousMonthDisabled();\n }\n\n isNextDisabled(): boolean {\n return this.#host.isNextMonthDisabled();\n }\n\n page(direction: -1 | 1): void {\n this.#host.pageMonths(direction);\n }\n\n focusActive(): boolean {\n return this.focusCell(this.#host.focusedDate());\n }\n\n handleKeydown(event: KeyboardEvent, fromDate: D): void {\n if (isCalendarActivationKey(event)) {\n event.preventDefault();\n this.#host.selectDate(fromDate);\n return;\n }\n const target = this.#resolveMove(event, fromDate);\n if (target === null) {\n return;\n }\n event.preventDefault();\n const isPaging = event.key === 'PageUp' || event.key === 'PageDown';\n this.#host.applyDayKeyMove(target, isPaging);\n }\n\n register(handle: ForCalendarCellHandle<D>): void {\n this.#cells.register(handle);\n }\n\n unregister(handle: ForCalendarCellHandle<D>): void {\n this.#cells.unregister(handle);\n }\n\n focusCell(target: D): boolean {\n const adapter = this.#host.adapter;\n const handle = this.#cells.items().find((cell) => adapter.isSameDay(cell.date(), target));\n if (!handle) {\n return false;\n }\n handle.host.focus();\n return true;\n }\n\n #resolveMove(event: KeyboardEvent, fromDate: D): D | null {\n const adapter = this.#host.adapter;\n return resolveCalendarGridMove<D>(event, this.#host.dir() === 'rtl', {\n horizontal: (step) => adapter.addDays(fromDate, step),\n vertical: (step) => adapter.addDays(fromDate, step * 7),\n lineStart: () => this.#startOfWeek(fromDate),\n lineEnd: () => adapter.addDays(this.#startOfWeek(fromDate), 6),\n pageBackward: (shiftKey) =>\n shiftKey ? adapter.addYears(fromDate, -1) : adapter.addMonths(fromDate, -1),\n pageForward: (shiftKey) =>\n shiftKey ? adapter.addYears(fromDate, 1) : adapter.addMonths(fromDate, 1),\n });\n }\n\n #startOfWeek(date: D): D {\n const adapter = this.#host.adapter;\n const offset = (adapter.getDayOfWeek(date) - this.#host.firstDayOfWeek() + 7) % 7;\n return adapter.addDays(date, -offset);\n }\n\n #dateKey(date: D): string {\n const adapter = this.#host.adapter;\n return `${adapter.getYear(date)}-${adapter.getMonth(date)}-${adapter.getDate(date)}`;\n }\n}\n\n/**\n * Root surface the {@link CalendarDayNavigator} reads / delegates to: the\n * adapter, direction, visible-month label / bounds, the resolved first day of\n * week, and the navigation primitives (`selectDate`, `pageMonths`, the combined\n * key-move applier) the day grid hands back to the root so the intended-day /\n * clamp / announce logic stays in one place.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarDayNavigatorHost<D> {\n /** The active date adapter. */\n readonly adapter: DateAdapter<D>;\n /** Resolved writing direction; `'rtl'` mirrors the horizontal arrows. */\n readonly dir: () => 'ltr' | 'rtl';\n /** The roving focused date (the day grid's tab stop). */\n readonly focusedDate: () => D;\n /** First day of the visible month, driving the rendered matrix. */\n readonly visibleMonth: () => D;\n /** The visible month's accessible label, e.g. `\"June 2026\"`. */\n readonly visibleMonthLabel: () => string;\n /** Resolved first day of the week (**0-6**). */\n readonly firstDayOfWeek: () => number;\n /** Whether the previous-month button should be disabled. */\n readonly isPreviousMonthDisabled: () => boolean;\n /** Whether the next-month button should be disabled. */\n readonly isNextMonthDisabled: () => boolean;\n /** The full accessible date string for `date`'s gridcell (`aria-label`). */\n getDateLabel(date: D): string;\n /** Select `date`, unless disabled / read-only / unavailable. */\n selectDate(date: D): void;\n /** Page the visible month by `delta`, keeping DOM focus on the caller. */\n pageMonths(delta: number): void;\n /**\n * Apply a resolved day keyboard move: a paging move re-applies the intended\n * day and clamps; a plain move records the new focus origin. Both move focus\n * and announce a month change.\n */\n applyDayKeyMove(target: D, isPaging: boolean): void;\n}\n","import { type Provider } from '@angular/core';\n\nimport { createDefaults } from 'forty-cdk/core';\n\n/**\n * Defaults inherited by descendant calendars in the surrounding injector\n * scope. Configure with `provideForCalendarDefaults` at the application root\n * or in any component's `providers`; partial overrides merge with the parent\n * scope.\n */\nexport interface ForCalendarDefaults {\n /**\n * First day of the week as a **0-6** index (`0` = Sunday, `1` = Monday, …).\n * When `null` (default), each calendar falls back to its adapter's\n * `getFirstDayOfWeek()`. A `ForCalendar`'s own `firstDayOfWeek` input always\n * wins over this scope default.\n */\n firstDayOfWeek: number | null;\n}\n\n/**\n * Library fallback for calendar defaults, read at the root injector when no\n * consumer has called `provideForCalendarDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_CALENDAR_FALLBACK_DEFAULTS: ForCalendarDefaults = {\n firstDayOfWeek: null,\n};\n\nconst { token, provideDefaults } = createDefaults<ForCalendarDefaults>(\n 'FOR_CALENDAR_DEFAULTS',\n FOR_CALENDAR_FALLBACK_DEFAULTS,\n);\n\n/** Token holding the resolved calendar defaults for the current scope. */\nexport const FOR_CALENDAR_DEFAULTS = token;\n\n/**\n * Configures forty-cdk calendar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n */\nexport function provideForCalendarDefaults(\n defaults: Partial<ForCalendarDefaults> = {},\n): Provider[] {\n return provideDefaults(defaults);\n}\n","import { Collection } from 'forty-cdk/core';\nimport type {\n CalendarMonthOption,\n CalendarMonthRow,\n ForCalendarMonthCellHandle,\n} from './calendar-context';\nimport { isCalendarActivationKey, resolveCalendarGridMove } from './calendar-keyboard';\nimport type { CalendarSubGridHost, CalendarViewStrategy } from './calendar-sub-grid';\n\nconst GRID_COLUMNS = 3;\n\n/**\n * The month picker view's state machine (`view=\"month\"`): a 3-column grid of the\n * twelve months of the visible year. Owns its cell registry, its `is*` quartet\n * (selected / today / focused / disabled), its table-driven keyboard mover, and\n * the per-view paging / focus the root composes as a {@link CalendarViewStrategy}.\n *\n * Constructed directly by the root (`new CalendarMonthNavigator(host, today)`);\n * it holds no injection context, mirroring how `SegmentEditor` is lifted out of\n * the date / time fields.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarMonthNavigator<D> implements CalendarViewStrategy {\n readonly #host: CalendarMonthNavigatorHost<D>;\n readonly #today: D;\n readonly #cells = new Collection<ForCalendarMonthCellHandle>();\n\n constructor(host: CalendarMonthNavigatorHost<D>, today: D) {\n this.#host = host;\n this.#today = today;\n }\n\n /** Twelve localized, bounds-aware month options for the visible year. */\n options(): readonly CalendarMonthOption[] {\n const adapter = this.#host.adapter;\n const year = this.#host.visibleYear();\n const options: CalendarMonthOption[] = [];\n for (let month = 1; month <= 12; month++) {\n options.push({\n value: month,\n label: adapter.format(adapter.createDate(year, month, 1), { month: 'long' }),\n disabled: this.#host.isMonthOutOfBounds(year, month),\n });\n }\n return options;\n }\n\n /** Rows of the month picker grid (3 columns) for the visible year. */\n rows(): readonly CalendarMonthRow[] {\n const options = this.options();\n const rows: CalendarMonthRow[] = [];\n for (let i = 0; i < options.length; i += GRID_COLUMNS) {\n rows.push({ key: `m-${i}`, months: options.slice(i, i + GRID_COLUMNS) });\n }\n return rows;\n }\n\n triggerLabel(): string {\n return String(this.#host.visibleYear());\n }\n\n isPreviousDisabled(): boolean {\n return this.#host.isYearDisabled(this.#host.visibleYear() - 1);\n }\n\n isNextDisabled(): boolean {\n return this.#host.isYearDisabled(this.#host.visibleYear() + 1);\n }\n\n page(direction: -1 | 1): void {\n this.#host.pageByYears(direction);\n }\n\n focusActive(): boolean {\n return this.focusCell(this.#host.visibleMonthNumber());\n }\n\n isSelected(month: number): boolean {\n const adapter = this.#host.adapter;\n const value = this.#host.value();\n return (\n value !== null &&\n adapter.getYear(value) === this.#host.visibleYear() &&\n adapter.getMonth(value) === month\n );\n }\n\n isToday(month: number): boolean {\n const adapter = this.#host.adapter;\n return (\n adapter.getYear(this.#today) === this.#host.visibleYear() &&\n adapter.getMonth(this.#today) === month\n );\n }\n\n isFocused(month: number): boolean {\n return month === this.#host.visibleMonthNumber();\n }\n\n handleKeydown(event: KeyboardEvent, fromMonth: number): void {\n if (isCalendarActivationKey(event)) {\n event.preventDefault();\n this.#host.selectMonth(fromMonth);\n return;\n }\n const target = this.#resolveMove(event, fromMonth);\n if (target === null) {\n return;\n }\n event.preventDefault();\n this.#host.setFocusedDate(this.#host.dateInMonth(target.year, target.month));\n this.#host.scheduleFocus(() => this.focusCell(this.#host.visibleMonthNumber()));\n }\n\n register(handle: ForCalendarMonthCellHandle): void {\n this.#cells.register(handle);\n }\n\n unregister(handle: ForCalendarMonthCellHandle): void {\n this.#cells.unregister(handle);\n }\n\n focusCell(month: number): boolean {\n const handle = this.#cells.items().find((cell) => cell.month() === month);\n if (!handle) {\n return false;\n }\n handle.host.focus();\n return true;\n }\n\n #resolveMove(event: KeyboardEvent, fromMonth: number): { year: number; month: number } | null {\n const year = this.#host.visibleYear();\n const base = year * 12 + (fromMonth - 1);\n const index = resolveCalendarGridMove<number>(event, this.#host.dir() === 'rtl', {\n horizontal: (step) => base + step,\n vertical: (step) => base + step * GRID_COLUMNS,\n lineStart: () => year * 12,\n lineEnd: () => year * 12 + 11,\n pageBackward: () => base - 12,\n pageForward: () => base + 12,\n });\n if (index === null) {\n return null;\n }\n return { year: Math.floor(index / 12), month: (index % 12) + 1 };\n }\n}\n\n/**\n * Root surface the {@link CalendarMonthNavigator} reads / delegates to beyond\n * {@link CalendarSubGridHost}: the selected value plus the navigation and focus\n * primitives the grid hands back to the root.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarMonthNavigatorHost<D> extends CalendarSubGridHost<D> {\n /** The selected value, or `null`. */\n readonly value: () => D | null;\n /** Whether every day of `month` (**1-12**) in `year` falls outside `[min, max]`. */\n isMonthOutOfBounds(year: number, month: number): boolean;\n /** Drill into a month (1-12): navigate to it and switch to day view. */\n selectMonth(month: number): void;\n /** Page the visible year by `step`, re-applying the intended day and clamping. */\n pageByYears(step: number): void;\n /** Set the roving focused date. */\n setFocusedDate(date: D): void;\n /** A date in (`year`, `month`) keeping the focused day clamped to the month length. */\n dateInMonth(year: number, month: number): D;\n /** Schedule `fn` to run after the next render (for post-re-render focus moves). */\n scheduleFocus(fn: () => void): void;\n}\n","import { type DateAdapter } from 'forty-cdk/core';\n\n/**\n * Tracks the day-of-month the user is conceptually navigating with so paging\n * across months restores the original day when landing on a longer month,\n * instead of cumulatively drifting back through a chain of short months.\n *\n * It also records the focused date each paging operation produced, letting the\n * root detect a focus that moved for any other reason (explicit day move,\n * selection, an external `value` write driving the `focusedDate` linkedSignal)\n * and reset the intended day to the new day — all without an `effect`.\n *\n * Constructed directly (`new IntendedDayCursor(adapter, seed)`); it holds no\n * injection context, mirroring how `SegmentEditor` is lifted out of the date /\n * time fields.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class IntendedDayCursor<D> {\n readonly #adapter: DateAdapter<D>;\n #intendedDay: number;\n #pagedFocus: D | null = null;\n\n constructor(adapter: DateAdapter<D>, seed: D) {\n this.#adapter = adapter;\n this.#intendedDay = adapter.getDate(seed);\n }\n\n /** Record `date` as the focus origin for a non-paging move and reset the intended day. */\n setFocusedDay(date: D): void {\n this.#intendedDay = this.#adapter.getDate(date);\n this.#pagedFocus = null;\n }\n\n /**\n * Re-sync the intended day to `focused`'s actual day unless the focus is still\n * where the last paging operation left it. Anything that moved the focus for\n * another reason resets the intended day so a fresh paging run starts from the\n * day the user can see.\n */\n sync(focused: D): void {\n if (this.#pagedFocus === null || !this.#adapter.isSameDay(this.#pagedFocus, focused)) {\n this.#intendedDay = this.#adapter.getDate(focused);\n }\n }\n\n /**\n * Re-derive `date` so its day-of-month matches the user's intended day,\n * clamped to the target month's length. Restores e.g. the 31st when a paging\n * chain lands back on a 31-day month, instead of carrying forward the day a\n * shorter intermediate month clamped it to.\n */\n apply(date: D): D {\n const adapter = this.#adapter;\n const daysInMonth = adapter.getDaysInMonth(date);\n const day = this.#intendedDay < daysInMonth ? this.#intendedDay : daysInMonth;\n return adapter.createDate(adapter.getYear(date), adapter.getMonth(date), day);\n }\n\n /** Mark `date` as the focused date the last paging operation produced. */\n markPaged(date: D): void {\n this.#pagedFocus = date;\n }\n}\n","import type { Signal, WritableSignal } from '@angular/core';\n\nimport { type DateAdapter } from 'forty-cdk/core';\nimport type { CalendarBounds } from './calendar-bounds';\nimport type { CalendarRangeSelection } from './calendar-range-selection';\nimport { IntendedDayCursor } from './intended-day-cursor';\n\n/**\n * The reactive root surface the {@link CalendarNavigation} engine reads from and\n * writes back into. The engine owns the focus-origin cursor and every move that\n * re-derives the focused date (selection, paging, direct go-to, keyboard moves);\n * the host supplies the writable focused date / value, the visible-month\n * derivations, the shared bounds / range collaborators, and the imperative\n * effects (announce, schedule a post-render focus move, move DOM focus to a day\n * cell).\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarNavigationHost<D> {\n /** The active date adapter. */\n readonly adapter: DateAdapter<D>;\n /** Whether the whole calendar is disabled. */\n readonly disabled: Signal<boolean>;\n /** Whether the calendar is read-only. */\n readonly readonly: Signal<boolean>;\n /** Whether range selection is active. */\n readonly selectionMode: Signal<'single' | 'range'>;\n /** The roving focused date (read + written). */\n readonly focusedDate: WritableSignal<D>;\n /** The selected value (read + written in single mode). */\n readonly value: WritableSignal<D | null>;\n /** First day of the visible month. */\n readonly visibleMonth: () => D;\n /** The visible month's accessible label. */\n readonly visibleMonthLabel: () => string;\n /** The visible month's full year. */\n readonly visibleYear: () => number;\n /** The visible month, **1-12**. */\n readonly visibleMonthNumber: () => number;\n /** The `[min, max]` bounds collaborator. */\n readonly bounds: CalendarBounds<D>;\n /** The range-selection collaborator. */\n readonly range: CalendarRangeSelection<D>;\n /** Announce `label` politely (used when a navigation crosses a month boundary). */\n announce(label: string): void;\n /** Schedule `fn` to run after the next render. */\n scheduleFocus(fn: () => void): void;\n /** Move DOM focus to the day cell matching `target`, after the next render. */\n focusDayCell(target: D): void;\n}\n\n/**\n * The shared navigation / selection engine for `ForCalendar`: it owns the\n * {@link IntendedDayCursor} and every focused-date move — single / range\n * selection, month / year paging, direct `goTo`, and the resolved day keyboard\n * move — keeping the intended-day, clamp, and announce machinery in one place\n * instead of scattered across the root and the sub-grids.\n *\n * Constructed directly (`new CalendarNavigation(host, seed)`); it holds no\n * injection context, mirroring how `SegmentEditor` is lifted out of the date /\n * time fields.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarNavigation<D> {\n readonly #host: CalendarNavigationHost<D>;\n readonly #cursor: IntendedDayCursor<D>;\n\n constructor(host: CalendarNavigationHost<D>, seed: D) {\n this.#host = host;\n this.#cursor = new IntendedDayCursor<D>(host.adapter, seed);\n }\n\n /** Select `date`, unless the calendar is disabled / read-only or the date is unavailable. */\n selectDate(date: D): void {\n if (this.#host.disabled() || this.#host.readonly() || this.#host.bounds.isUnavailable(date)) {\n return;\n }\n if (this.#host.selectionMode() === 'range') {\n if (this.#host.range.select(date)) {\n this.#cursor.setFocusedDay(date);\n this.#host.focusedDate.set(date);\n this.#host.focusDayCell(date);\n }\n return;\n }\n this.#cursor.setFocusedDay(date);\n this.#host.value.set(this.#withPreservedTime(date));\n this.#host.focusDayCell(date);\n }\n\n /** Page the visible month by `delta` (signed month count). Keeps DOM focus on the caller. */\n pageMonths(delta: number): void {\n if (this.#host.disabled()) {\n return;\n }\n this.#pageTo(this.#host.adapter.addMonths(this.#host.focusedDate(), delta));\n }\n\n /**\n * Page the visible year by `step` (signed) — the shared month / year-view\n * paging path. Reached only from the disabled-guarded `pagePrevious` /\n * `pageNext`, so it carries no guard of its own. Keeps DOM focus on the caller.\n */\n pageByYears(step: number): void {\n this.#pageTo(this.#host.adapter.addYears(this.#host.focusedDate(), step));\n }\n\n /**\n * Set the visible month to (`year`, `month`, **1-12**) without selecting,\n * re-applying the intended day, clamping, and announcing a month change. A\n * no-op while disabled.\n */\n goTo(year: number, month: number): void {\n if (this.#host.disabled()) {\n return;\n }\n this.#pageTo(this.#host.adapter.createDate(year, month, 1));\n }\n\n /** Apply a resolved day keyboard move: paging re-applies the intended day; a plain move records the origin. */\n applyDayKeyMove(target: D, isPaging: boolean): void {\n const previousMonth = this.#host.visibleMonth();\n let next: D;\n if (isPaging) {\n this.#cursor.sync(this.#host.focusedDate());\n next = this.#host.bounds.clamp(this.#cursor.apply(target));\n this.#cursor.markPaged(next);\n } else {\n next = target;\n this.#cursor.setFocusedDay(next);\n }\n this.#host.focusedDate.set(next);\n this.#host.focusDayCell(next);\n this.#announceMonthChange(previousMonth);\n }\n\n /** A date in (`year`, `month`) keeping the focused day clamped to the month length. */\n dateInMonth(year: number, month: number): D {\n const adapter = this.#host.adapter;\n const daysInMonth = adapter.getDaysInMonth(adapter.createDate(year, month, 1));\n const day = Math.min(adapter.getDate(this.#host.focusedDate()), daysInMonth);\n return adapter.createDate(year, month, day);\n }\n\n #pageTo(target: D): void {\n const previousMonth = this.#host.visibleMonth();\n this.#cursor.sync(this.#host.focusedDate());\n const next = this.#host.bounds.clamp(this.#cursor.apply(target));\n this.#host.focusedDate.set(next);\n this.#cursor.markPaged(next);\n this.#announceMonthChange(previousMonth);\n }\n\n #announceMonthChange(previousMonth: D): void {\n if (!this.#host.adapter.isSameDay(previousMonth, this.#host.visibleMonth())) {\n this.#host.announce(this.#host.visibleMonthLabel());\n }\n }\n\n #withPreservedTime(date: D): D {\n const adapter = this.#host.adapter;\n const current = this.#host.value();\n if (\n current === null ||\n adapter.supportsTime?.() !== true ||\n !adapter.getHours ||\n !adapter.getMinutes ||\n !adapter.getSeconds ||\n !adapter.setTime\n ) {\n return date;\n }\n return adapter.setTime(\n date,\n adapter.getHours(current),\n adapter.getMinutes(current),\n adapter.getSeconds(current),\n );\n }\n}\n","import { computed, signal, type Signal, type WritableSignal } from '@angular/core';\n\nimport { compareDateOf, type DateAdapter } from 'forty-cdk/core';\nimport type { CalendarDateRange } from './calendar-context';\n\n/**\n * The reactive surface a `ForCalendar` root supplies to its\n * {@link CalendarRangeSelection}. The range machine owns the anchor / hover /\n * effective-range state and the `isRange*` predicates; the host supplies the\n * adapter, the live focused date (the preview cursor when no pointer hover is\n * active), the committed range model, and the configured bounds.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarRangeHost<D> {\n /** The active date adapter. */\n readonly adapter: DateAdapter<D>;\n /** The roving focused date, used as the preview cursor on keyboard navigation. */\n readonly focusedDate: () => D;\n /** The committed range model (read for idle state, written on commit / clear). */\n readonly range: WritableSignal<CalendarDateRange<D> | null>;\n /** Whether range selection is active (`selectionMode === 'range'`). */\n readonly active: Signal<boolean>;\n /** Minimum inclusive day count for a committed range, or `null` for no minimum. */\n readonly minRangeLength: Signal<number | null>;\n /** Maximum inclusive day count for a committed range, or `null` for no maximum. */\n readonly maxRangeLength: Signal<number | null>;\n}\n\n/**\n * Owns the two-click anchor → commit range-selection state machine for\n * `ForCalendar` in `selectionMode=\"range\"`: the pending `anchor`, the pointer\n * `hovered` cursor, the derived `effectiveRange` (committed when idle, preview\n * while selecting), and the `isRangeStart` / `isRangeEnd` / `isInRange` /\n * `isRangePreview` predicates the day cells reflect as `data-*`.\n *\n * Constructed directly (`new CalendarRangeSelection(host)`); it holds no\n * injection context, mirroring how `SegmentEditor` is lifted out of the date /\n * time fields. The root keeps the focus orchestration around a click and only\n * delegates the range bookkeeping here.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarRangeSelection<D> {\n readonly #host: CalendarRangeHost<D>;\n readonly #anchor = signal<D | null>(null);\n readonly #hovered = signal<D | null>(null);\n\n readonly #effectiveRange = computed<{ start: D; end: D; preview: boolean } | null>(() => {\n const adapter = this.#host.adapter;\n const anchor = this.#anchor();\n if (anchor !== null) {\n const cursor = this.#hovered() ?? this.#host.focusedDate();\n const cmp = compareDateOf(adapter, cursor, anchor);\n const [start, end] = cmp < 0 ? [cursor, anchor] : [anchor, cursor];\n return { start, end, preview: true };\n }\n const committed = this.#host.range();\n return committed === null\n ? null\n : { start: committed.start, end: committed.end, preview: false };\n });\n\n constructor(host: CalendarRangeHost<D>) {\n this.#host = host;\n }\n\n isRangeStart(date: D): boolean {\n const er = this.#effectiveRange();\n return er !== null && this.#host.adapter.isSameDay(date, er.start);\n }\n\n isRangeEnd(date: D): boolean {\n const er = this.#effectiveRange();\n return er !== null && this.#host.adapter.isSameDay(date, er.end);\n }\n\n isInRange(date: D): boolean {\n const er = this.#effectiveRange();\n return er !== null && !er.preview && this.#withinInclusive(date, er);\n }\n\n isRangePreview(date: D): boolean {\n const er = this.#effectiveRange();\n return er !== null && er.preview && this.#withinInclusive(date, er);\n }\n\n /** Whether `date` is within the effective range, used by the day cell's `isSelected`. */\n contains(date: D): boolean {\n const er = this.#effectiveRange();\n return er !== null && !er.preview && this.#withinInclusive(date, er);\n }\n\n setHovered(date: D | null): void {\n if (!this.#host.active()) {\n return;\n }\n this.#hovered.set(date);\n }\n\n /**\n * Apply a click on `date` to the anchor → commit flow. Returns `true` when the\n * click moved the selection (so the root should move focus to `date`), `false`\n * when it was rejected by the min / max length guard (anchor preserved, no\n * focus move).\n */\n select(date: D): boolean {\n const adapter = this.#host.adapter;\n const anchor = this.#anchor();\n if (anchor === null) {\n this.#host.range.set(null);\n this.#anchor.set(date);\n } else if (compareDateOf(adapter, date, anchor) < 0) {\n this.#anchor.set(date);\n } else {\n if (!this.#rangeLengthSatisfied(anchor, date)) {\n return false;\n }\n this.#host.range.set({ start: anchor, end: date });\n this.#anchor.set(null);\n }\n return true;\n }\n\n #rangeLengthSatisfied(anchor: D, end: D): boolean {\n const adapter = this.#host.adapter;\n const minLen = this.#host.minRangeLength();\n const maxLen = this.#host.maxRangeLength();\n if (minLen === null && maxLen === null) {\n return true;\n }\n let len = 1;\n let cursor = anchor;\n while (compareDateOf(adapter, cursor, end) < 0) {\n cursor = adapter.addDays(cursor, 1);\n len++;\n if (maxLen !== null && len > maxLen) {\n return false;\n }\n }\n if (minLen !== null && len < minLen) {\n return false;\n }\n return true;\n }\n\n #withinInclusive(date: D, range: { start: D; end: D }): boolean {\n const adapter = this.#host.adapter;\n return (\n compareDateOf(adapter, date, range.start) >= 0 && compareDateOf(adapter, date, range.end) <= 0\n );\n }\n}\n","import { Collection } from 'forty-cdk/core';\nimport type {\n CalendarYearOption,\n CalendarYearRow,\n ForCalendarYearCellHandle,\n} from './calendar-context';\nimport { isCalendarActivationKey, resolveCalendarGridMove } from './calendar-keyboard';\nimport type { CalendarSubGridHost, CalendarViewStrategy } from './calendar-sub-grid';\n\nconst GRID_COLUMNS = 3;\n\n/**\n * The year picker view's state machine (`view=\"year\"`): a 3-column grid of an\n * aligned block of `yearBlockSize` years. Owns its cell registry, its `is*`\n * quartet (selected / today / focused / disabled), its table-driven keyboard\n * mover, and the per-view paging / focus the root composes as a\n * {@link CalendarViewStrategy}.\n *\n * Constructed directly by the root (`new CalendarYearNavigator(host, today)`);\n * it holds no injection context, mirroring how `SegmentEditor` is lifted out of\n * the date / time fields.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport class CalendarYearNavigator<D> implements CalendarViewStrategy {\n readonly #host: CalendarYearNavigatorHost<D>;\n readonly #today: D;\n readonly #cells = new Collection<ForCalendarYearCellHandle>();\n\n constructor(host: CalendarYearNavigatorHost<D>, today: D) {\n this.#host = host;\n this.#today = today;\n }\n\n /** Rows of the year picker grid (3 columns) for the aligned block containing the visible year. */\n rows(): readonly CalendarYearRow[] {\n const start = this.#host.yearBlockStart();\n const size = this.#host.yearBlockSize();\n const years: CalendarYearOption[] = [];\n for (let i = 0; i < size; i++) {\n const value = start + i;\n years.push({ value, disabled: this.#host.isYearDisabled(value) });\n }\n const rows: CalendarYearRow[] = [];\n for (let i = 0; i < years.length; i += GRID_COLUMNS) {\n rows.push({ key: `y-${i}`, years: years.slice(i, i + GRID_COLUMNS) });\n }\n return rows;\n }\n\n triggerLabel(): string {\n const start = this.#host.yearBlockStart();\n return `${start} – ${start + this.#host.yearBlockSize() - 1}`;\n }\n\n isPreviousDisabled(): boolean {\n return this.#host.isYearDisabled(this.#host.yearBlockStart() - 1);\n }\n\n isNextDisabled(): boolean {\n return this.#host.isYearDisabled(this.#host.yearBlockStart() + this.#host.yearBlockSize());\n }\n\n page(direction: -1 | 1): void {\n this.#host.pageByYears(direction * this.#host.yearBlockSize());\n }\n\n focusActive(): boolean {\n return this.focusCell(this.#host.visibleYear());\n }\n\n isSelected(year: number): boolean {\n const value = this.#host.value();\n return value !== null && this.#host.adapter.getYear(value) === year;\n }\n\n isToday(year: number): boolean {\n return this.#host.adapter.getYear(this.#today) === year;\n }\n\n isFocused(year: number): boolean {\n return year === this.#host.visibleYear();\n }\n\n handleKeydown(event: KeyboardEvent, fromYear: number): void {\n if (isCalendarActivationKey(event)) {\n event.preventDefault();\n this.#host.selectYear(fromYear);\n return;\n }\n const target = this.#resolveMove(event, fromYear);\n if (target === null) {\n return;\n }\n event.preventDefault();\n this.#host.setFocusedDate(this.#host.dateInMonth(target, this.#host.visibleMonthNumber()));\n this.#host.scheduleFocus(() => this.focusCell(this.#host.visibleYear()));\n }\n\n register(handle: ForCalendarYearCellHandle): void {\n this.#cells.register(handle);\n }\n\n unregister(handle: ForCalendarYearCellHandle): void {\n this.#cells.unregister(handle);\n }\n\n focusCell(year: number): boolean {\n const handle = this.#cells.items().find((cell) => cell.year() === year);\n if (!handle) {\n return false;\n }\n handle.host.focus();\n return true;\n }\n\n #resolveMove(event: KeyboardEvent, fromYear: number): number | null {\n const size = this.#host.yearBlockSize();\n const start = this.#host.yearBlockStart();\n return resolveCalendarGridMove<number>(event, this.#host.dir() === 'rtl', {\n horizontal: (step) => fromYear + step,\n vertical: (step) => fromYear + step * GRID_COLUMNS,\n lineStart: () => start,\n lineEnd: () => start + size - 1,\n pageBackward: () => fromYear - size,\n pageForward: () => fromYear + size,\n });\n }\n}\n\n/**\n * Root surface the {@link CalendarYearNavigator} reads / delegates to beyond\n * {@link CalendarSubGridHost}: the selected value plus the navigation and focus\n * primitives the grid hands back to the root.\n *\n * @typeParam D The adapter's immutable date type.\n */\nexport interface CalendarYearNavigatorHost<D> extends CalendarSubGridHost<D> {\n /** The selected value, or `null`. */\n readonly value: () => D | null;\n /** Drill into a year: navigate to it and switch to month view. */\n selectYear(year: number): void;\n /** Page the visible year by `step`, re-applying the intended day and clamping. */\n pageByYears(step: number): void;\n /** Set the roving focused date. */\n setFocusedDate(date: D): void;\n /** A date in (`year`, `month`) keeping the focused day clamped to the month length. */\n dateInMonth(year: number, month: number): D;\n /** Schedule `fn` to run after the next render (for post-re-render focus moves). */\n scheduleFocus(fn: () => void): void;\n}\n","import {\n afterNextRender,\n booleanAttribute,\n computed,\n Directive,\n effect,\n inject,\n Injector,\n input,\n linkedSignal,\n model,\n numberAttribute,\n signal,\n} from '@angular/core';\n\nimport {\n type DateAdapter,\n injectDateAdapter,\n adoptHostId,\n IdGenerator,\n LiveAnnouncer,\n type WritingDirection,\n injectTextDirection,\n} from 'forty-cdk/core';\nimport { CalendarBounds } from './calendar-bounds';\nimport {\n type CalendarDateLabelFormatter,\n type CalendarDateRange,\n type CalendarMonthOption,\n type CalendarMonthRow,\n type CalendarView,\n type CalendarYearRow,\n FOR_CALENDAR_CONTEXT,\n type ForCalendarCellHandle,\n type ForCalendarContext,\n type ForCalendarMonthCellHandle,\n type ForCalendarYearCellHandle,\n} from './calendar-context';\nimport { CalendarDayNavigator } from './calendar-day-navigator';\nimport { FOR_CALENDAR_DEFAULTS } from './calendar-defaults';\nimport { CalendarMonthNavigator } from './calendar-month-navigator';\nimport { CalendarNavigation } from './calendar-navigation';\nimport { CalendarRangeSelection } from './calendar-range-selection';\nimport type { CalendarSubGridHost, CalendarViewStrategy } from './calendar-sub-grid';\nimport { CalendarYearNavigator } from './calendar-year-navigator';\n\n/**\n * Headless implementation of a single-date calendar grid following the\n * [WAI-ARIA Grid pattern](https://www.w3.org/WAI/ARIA/apg/patterns/grid/), the\n * date table at the heart of the APG\n * [Date Picker Dialog](https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/)\n * example.\n *\n * `ForCalendar` is the root: it owns the selected value, the focused date, and\n * the visible month, and exposes them to the grid / header / cell / heading /\n * navigation pieces through `FOR_CALENDAR_CONTEXT`. All date math goes through\n * a pluggable {@link DateAdapter} (`provideInternationalizedDateAdapter()` or\n * `provideNativeDateAdapter()`), so the library hard-depends on no date\n * library.\n *\n * The grid uses roving tabindex: exactly one cell (the focused date) carries\n * `tabindex=\"0\"`. Arrow / `Home` / `End` / `PageUp` / `PageDown` /\n * `Shift+PageUp` / `Shift+PageDown` move the focused date, re-paging the grid\n * when crossing a month boundary; `Enter` / `Space` select.\n *\n * The day / month / year views are each backed by a sub-grid collaborator\n * ({@link CalendarDayNavigator} / {@link CalendarMonthNavigator} /\n * {@link CalendarYearNavigator}), and range selection by\n * {@link CalendarRangeSelection}; the root wires them together and exposes the\n * `[(value)]` / `[(view)]` / `[(range)]` models.\n *\n * `ForCalendar` is the grid widget, not a form value — it exposes `[(value)]`\n * as a `model<D | null>` in `selectionMode=\"single\"` (default), and\n * `[(range)]` as a `model<CalendarDateRange<D> | null>` in\n * `selectionMode=\"range\"`. The `FormValueControl<D>` contract arrives with the\n * follow-up `ForDatePicker` / `ForDateField`. See the primitive's README for a\n * complete styleless usage example.\n *\n * @typeParam D The adapter's immutable date type.\n */\n@Directive({\n selector: '[forCalendar]',\n exportAs: 'forCalendar',\n host: {\n '[attr.dir]': 'dir()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.data-readonly]': 'readonly() ? \"\" : null',\n '[attr.data-view]': 'view()',\n },\n providers: [{ provide: FOR_CALENDAR_CONTEXT, useExisting: ForCalendar }],\n})\nexport class ForCalendar<D> implements ForCalendarContext<D> {\n readonly #defaults = inject(FOR_CALENDAR_DEFAULTS);\n readonly #idGen = inject(IdGenerator);\n readonly #injector = inject(Injector);\n readonly #announcer = inject(LiveAnnouncer);\n\n /** The active date adapter, resolved from `FOR_DATE_ADAPTER`. */\n readonly adapter: DateAdapter<D> = injectDateAdapter<D>('ForCalendar');\n\n /**\n * Two-way bindable selected date, or `null`. The `model()` change emitter\n * (`(valueChange)`) fires only when the calendar itself updates the value\n * (cell activation), never on consumer writes via `[(value)]`.\n */\n readonly value = model<D | null>(null);\n\n /** Minimum selectable date (inclusive). Dates before it are unavailable. */\n readonly min = input<D | null>(null);\n\n /** Maximum selectable date (inclusive). Dates after it are unavailable. */\n readonly max = input<D | null>(null);\n\n /**\n * Per-date predicate marking a date as unavailable (present in the grid but\n * not selectable, reflected as `aria-disabled` / `data-disabled`).\n */\n readonly isDateUnavailable = input<(date: D) => boolean>(() => false);\n\n /**\n * Formats the full accessible date string each gridcell exposes as its\n * `aria-label` (the visible content stays the bare day number). Defaults to\n * the localized full date (e.g. `\"Monday, June 15, 2026\"`), with\n * outside-month padding days suffixed (`\" (outside month)\"`) so assistive\n * tech can tell them apart from the visible month. Override to localize that\n * suffix or change the format entirely.\n */\n readonly dateLabel = input<CalendarDateLabelFormatter<D>>((date, { adapter, outsideMonth }) => {\n const formatted = adapter.format(date, {\n weekday: 'long',\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n });\n return outsideMonth ? `${formatted} (outside month)` : formatted;\n });\n\n /** Disables the whole calendar: no focus movement, no selection. */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /** Makes the calendar read-only: dates stay focusable but selection is blocked. */\n readonly readonly = input(false, { transform: booleanAttribute });\n\n /**\n * Selection mode. `'single'` (default) keeps the single-date `[(value)]`\n * behaviour unchanged. `'range'` switches to the two-click anchor → commit\n * flow and exposes the result through `[(range)]`.\n */\n readonly selectionMode = input<'single' | 'range'>('single');\n\n /**\n * Active calendar view. `'day'` (default) shows the date grid; `'month'` and\n * `'year'` show the month / year picker grids. Two-way bindable; the `model()`\n * change emitter (`(viewChange)`) fires only when the calendar itself cycles\n * or drills the view, never on consumer writes via `[(view)]`.\n */\n readonly view = model<CalendarView>('day');\n\n /**\n * Number of years the year view shows, as an aligned block containing the\n * visible year. Default `12`.\n */\n readonly yearBlockSize = input(12, { transform: numberAttribute });\n\n /**\n * Two-way bindable committed date range, or `null`. Only used when\n * `selectionMode=\"range\"`. The `model()` change emitter (`(rangeChange)`)\n * fires only when the calendar internally commits or clears a range, never\n * on consumer writes via `[(range)]`.\n */\n readonly range = model<CalendarDateRange<D> | null>(null);\n\n /**\n * Minimum inclusive day count for a range selection. A click that would\n * commit a range shorter than this is a no-op (anchor is preserved).\n * `null` (default) means no minimum. Only honoured in `selectionMode=\"range\"`.\n */\n readonly minRangeLength = input<number | null>(null);\n\n /**\n * Maximum inclusive day count for a range selection. A click that would\n * commit a range longer than this is a no-op (anchor is preserved).\n * `null` (default) means no maximum. Only honoured in `selectionMode=\"range\"`.\n */\n readonly maxRangeLength = input<number | null>(null);\n\n /**\n * First day of the week as a **0-6** index (`0` = Sunday). When `null`\n * (default, overridable via `provideForCalendarDefaults`), the adapter's\n * `getFirstDayOfWeek()` is used.\n */\n readonly firstDayOfWeek = input<number | null>(this.#defaults.firstDayOfWeek);\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 * The resolved value is reflected to the host `dir` attribute and swaps the\n * `ArrowLeft` / `ArrowRight` semantics in RTL.\n */\n readonly _dirInput = input<WritingDirection | null>(null, { alias: 'dir' });\n readonly dir = injectTextDirection(this._dirInput);\n\n readonly #today = this.adapter.today();\n\n /** Internal focused date (the roving entry point), seeded from `value ?? range.start ?? today`. */\n readonly focusedDate = linkedSignal<D>(() => this.value() ?? this.range()?.start ?? this.#today);\n\n readonly #bounds = new CalendarBounds<D>({\n adapter: this.adapter,\n min: this.min,\n max: this.max,\n visibleMonth: () => this.visibleMonth(),\n isDateUnavailable: this.isDateUnavailable,\n disabled: this.disabled,\n });\n\n readonly #range = new CalendarRangeSelection<D>({\n adapter: this.adapter,\n focusedDate: this.focusedDate,\n range: this.range,\n active: computed(() => this.selectionMode() === 'range'),\n minRangeLength: this.minRangeLength,\n maxRangeLength: this.maxRangeLength,\n });\n\n readonly #nav = new CalendarNavigation<D>(\n {\n adapter: this.adapter,\n disabled: this.disabled,\n readonly: this.readonly,\n selectionMode: this.selectionMode,\n focusedDate: this.focusedDate,\n value: this.value,\n visibleMonth: () => this.visibleMonth(),\n visibleMonthLabel: () => this.visibleMonthLabel(),\n visibleYear: () => this.visibleYear(),\n visibleMonthNumber: () => this.visibleMonthNumber(),\n bounds: this.#bounds,\n range: this.#range,\n announce: (label) => this.#announcer.announce(label, 'polite'),\n scheduleFocus: (fn) => this.#scheduleFocus(fn),\n focusDayCell: (target) => this.#focusDayCell(target),\n },\n this.value() ?? this.range()?.start ?? this.#today,\n );\n\n readonly #dayNav = new CalendarDayNavigator<D>({\n ...this.#subGridHost(),\n visibleMonth: () => this.visibleMonth(),\n firstDayOfWeek: () => this.#resolvedFirstDayOfWeek(),\n getDateLabel: (date) => this.getDateLabel(date),\n selectDate: (date) => this.#nav.selectDate(date),\n pageMonths: (delta) => this.#nav.pageMonths(delta),\n applyDayKeyMove: (target, isPaging) => this.#nav.applyDayKeyMove(target, isPaging),\n });\n\n readonly #monthNav = new CalendarMonthNavigator<D>(\n {\n ...this.#subGridHost(),\n ...this.#pickerViewHost(),\n isMonthOutOfBounds: (year, month) => this.#bounds.isMonthOutOfBounds(year, month),\n selectMonth: (month) => this.selectMonth(month),\n },\n this.#today,\n );\n\n readonly #yearNav = new CalendarYearNavigator<D>(\n {\n ...this.#subGridHost(),\n ...this.#pickerViewHost(),\n selectYear: (year) => this.selectYear(year),\n },\n this.#today,\n );\n\n readonly #strategies: Record<CalendarView, CalendarViewStrategy> = {\n day: this.#dayNav,\n month: this.#monthNav,\n year: this.#yearNav,\n };\n\n #strategyFor(view: CalendarView): CalendarViewStrategy {\n return this.#strategies[view];\n }\n\n /** The reactive root surface shared by all three sub-grid navigators. */\n #subGridHost(): CalendarSubGridHost<D> {\n return {\n adapter: this.adapter,\n dir: this.dir,\n yearBlockSize: () => this.yearBlockSize(),\n yearBlockStart: () => this.#yearBlockStart(),\n visibleMonthLabel: () => this.visibleMonthLabel(),\n visibleYear: () => this.visibleYear(),\n visibleMonthNumber: () => this.visibleMonthNumber(),\n focusedDate: this.focusedDate,\n isPreviousMonthDisabled: this.#bounds.isPreviousMonthDisabled,\n isNextMonthDisabled: this.#bounds.isNextMonthDisabled,\n isYearDisabled: (year) => this.#bounds.isYearDisabled(year),\n };\n }\n\n /** The navigation / focus surface shared by the month and year picker navigators. */\n #pickerViewHost() {\n return {\n value: () => this.value(),\n pageByYears: (step: number) => this.#nav.pageByYears(step),\n setFocusedDate: (date: D) => this.focusedDate.set(date),\n dateInMonth: (year: number, month: number) => this.#nav.dateInMonth(year, month),\n scheduleFocus: (fn: () => void) => this.#scheduleFocus(fn),\n };\n }\n\n #viewSwitched = false;\n readonly #viewFocusEffect = effect(() => {\n const view = this.view();\n if (!this.#viewSwitched) {\n this.#viewSwitched = true;\n return;\n }\n afterNextRender(() => this.#strategyFor(view).focusActive(), { injector: this.#injector });\n });\n\n readonly #resolvedFirstDayOfWeek = computed(\n () => this.firstDayOfWeek() ?? this.adapter.getFirstDayOfWeek(),\n );\n\n /** First day of the visible month, derived from {@link focusedDate}. */\n readonly visibleMonth = computed(() => {\n const focused = this.focusedDate();\n return this.adapter.createDate(\n this.adapter.getYear(focused),\n this.adapter.getMonth(focused),\n 1,\n );\n });\n\n readonly #headingId = signal(this.#idGen.next('for-calendar-heading'));\n readonly headingId = this.#headingId.asReadonly();\n\n /**\n * Adopts a consumer-set static `id` on the `[forCalendarHeading]` host into\n * `headingId` (the grid's `aria-labelledby` resolves to it) instead of\n * letting the `[id]` host binding clobber it.\n */\n adoptHeadingId(el: HTMLElement): void {\n adoptHostId(el, this.#headingId);\n }\n\n readonly visibleMonthLabel = computed(() =>\n this.adapter.format(this.visibleMonth(), { month: 'long', year: 'numeric' }),\n );\n\n /** The visible month's full year (e.g. `2026`). */\n readonly visibleYear = computed(() => this.adapter.getYear(this.visibleMonth()));\n\n /** The visible month, **1-12**. */\n readonly visibleMonthNumber = computed(() => this.adapter.getMonth(this.visibleMonth()));\n\n /**\n * Twelve entries for the visible year — each a localized month name plus\n * whether the whole month falls outside `[min, max]`. Tracks {@link visibleYear}.\n * Build native `<select>` month dropdowns from it.\n */\n readonly monthOptions = computed<readonly CalendarMonthOption[]>(() => this.#monthNav.options());\n\n readonly #yearBlockStart = computed(() => {\n const size = this.yearBlockSize();\n return Math.floor(this.visibleYear() / size) * size;\n });\n\n /** Rows of the month picker grid (3 columns) for the visible year. */\n readonly monthRows = computed<readonly CalendarMonthRow[]>(() => this.#monthNav.rows());\n\n /** Rows of the year picker grid (3 columns) for the aligned block containing the visible year. */\n readonly yearRows = computed<readonly CalendarYearRow[]>(() => this.#yearNav.rows());\n\n /** Label for the view trigger / heading, reflecting the active view. */\n readonly viewTriggerLabel = computed(() => this.#strategyFor(this.view()).triggerLabel());\n\n readonly isPreviousDisabled = computed(() => this.#strategyFor(this.view()).isPreviousDisabled());\n\n readonly isNextDisabled = computed(() => this.#strategyFor(this.view()).isNextDisabled());\n\n /** Weekday column headers for the visible month, starting at `firstDayOfWeek`. */\n readonly weekDays = this.#dayNav.weekDays;\n\n /** Week rows of the visible month, including outside-month padding days. */\n readonly weeks = this.#dayNav.weeks;\n\n /** Whether the previous-month button should be disabled (bounded by `min`). */\n readonly isPreviousMonthDisabled = this.#bounds.isPreviousMonthDisabled;\n\n /** Whether the next-month button should be disabled (bounded by `max`). */\n readonly isNextMonthDisabled = this.#bounds.isNextMonthDisabled;\n\n /**\n * Whether every day of `month` (**1-12**) in the visible year falls outside\n * `[min, max]`. Use it to disable a month in a custom dropdown.\n */\n isMonthDisabled(month: number): boolean {\n return this.#bounds.isMonthOutOfBounds(this.visibleYear(), month);\n }\n\n /**\n * Whether every day of `year` falls outside `[min, max]`. Use it to disable a\n * year in a custom dropdown.\n */\n isYearDisabled(year: number): boolean {\n return this.#bounds.isYearDisabled(year);\n }\n\n isMonthSelected(month: number): boolean {\n return this.#monthNav.isSelected(month);\n }\n\n isMonthToday(month: number): boolean {\n return this.#monthNav.isToday(month);\n }\n\n isMonthFocused(month: number): boolean {\n return this.#monthNav.isFocused(month);\n }\n\n isYearSelected(year: number): boolean {\n return this.#yearNav.isSelected(year);\n }\n\n isYearToday(year: number): boolean {\n return this.#yearNav.isToday(year);\n }\n\n isYearFocused(year: number): boolean {\n return this.#yearNav.isFocused(year);\n }\n\n isSelected(date: D): boolean {\n if (this.selectionMode() === 'range') {\n return this.#range.contains(date);\n }\n const value = this.value();\n return value !== null && this.adapter.isSameDay(date, value);\n }\n\n isRangeStart(date: D): boolean {\n return this.#range.isRangeStart(date);\n }\n\n isRangeEnd(date: D): boolean {\n return this.#range.isRangeEnd(date);\n }\n\n isInRange(date: D): boolean {\n return this.#range.isInRange(date);\n }\n\n isRangePreview(date: D): boolean {\n return this.#range.isRangePreview(date);\n }\n\n setHovered(date: D | null): void {\n this.#range.setHovered(date);\n }\n\n isToday(date: D): boolean {\n return this.adapter.isSameDay(date, this.#today);\n }\n\n isFocused(date: D): boolean {\n return this.adapter.isSameDay(date, this.focusedDate());\n }\n\n isOutsideMonth(date: D): boolean {\n const visible = this.visibleMonth();\n return (\n this.adapter.getMonth(date) !== this.adapter.getMonth(visible) ||\n this.adapter.getYear(date) !== this.adapter.getYear(visible)\n );\n }\n\n isUnavailable(date: D): boolean {\n return this.#bounds.isUnavailable(date);\n }\n\n getDateLabel(date: D): string {\n return this.dateLabel()(date, {\n adapter: this.adapter,\n outsideMonth: this.isOutsideMonth(date),\n });\n }\n\n selectDate(date: D): void {\n this.#nav.selectDate(date);\n }\n\n pageMonths(delta: number): void {\n this.#nav.pageMonths(delta);\n }\n\n /**\n * Set the visible month to (`year`, `month`) without selecting a date.\n * `month` is **1-12**. Re-applies the user's intended day-of-month (clamped to\n * the target month's length), clamps the result into `[min, max]`, and\n * announces the new period politely when the visible month changes. Keeps DOM\n * focus on the caller — it does not move focus into the grid. A no-op while the\n * calendar is disabled.\n */\n goTo(year: number, month: number): void {\n this.#nav.goTo(year, month);\n }\n\n /** Set the visible month within the current visible year. `month` is **1-12**. */\n goToMonth(month: number): void {\n this.goTo(this.visibleYear(), month);\n }\n\n /** Set the visible year, keeping the current visible month. */\n goToYear(year: number): void {\n this.goTo(year, this.visibleMonthNumber());\n }\n\n handleCellKeydown(event: KeyboardEvent, fromDate: D): void {\n if (this.disabled()) {\n return;\n }\n this.#dayNav.handleKeydown(event, fromDate);\n }\n\n /**\n * Cycle the view one step coarser: `day → month → year`, clamped at `'year'`.\n * No-op when the whole calendar is disabled.\n */\n cycleView(): void {\n if (this.disabled()) {\n return;\n }\n const order: readonly CalendarView[] = ['day', 'month', 'year'];\n const next = order[order.indexOf(this.view()) + 1];\n if (next) {\n this.view.set(next);\n }\n }\n\n /**\n * Select a whole month (1-12): navigate to it within the current visible year\n * and switch the view to `'day'`. No-op when the calendar is disabled /\n * read-only or the month is out of `[min, max]`.\n */\n selectMonth(month: number): void {\n if (this.disabled() || this.readonly() || this.isMonthDisabled(month)) {\n return;\n }\n this.goToMonth(month);\n this.view.set('day');\n }\n\n /**\n * Select a whole year: navigate to it and switch the view to `'month'`. No-op\n * when the calendar is disabled / read-only or the year is out of `[min, max]`.\n */\n selectYear(year: number): void {\n if (this.disabled() || this.readonly() || this.isYearDisabled(year)) {\n return;\n }\n this.goToYear(year);\n this.view.set('month');\n }\n\n /** Page backward by one month / year / block depending on the active view. */\n pagePrevious(): void {\n this.#page(-1);\n }\n\n /** Page forward by one month / year / block depending on the active view. */\n pageNext(): void {\n this.#page(1);\n }\n\n #page(direction: -1 | 1): void {\n if (this.disabled()) {\n return;\n }\n this.#strategyFor(this.view()).page(direction);\n }\n\n /**\n * Move DOM focus to the roving cell — the gridcell carrying the tab stop,\n * i.e. the one matching {@link focusedDate} (day view) or the highlighted\n * month / year cell (month / year view). Returns `false` when no matching\n * cell is currently rendered, so an overlay host wrapping the calendar can\n * fall back to its own focus logic.\n */\n focusActiveCell(): boolean {\n return this.#strategyFor(this.view()).focusActive();\n }\n\n registerCell(handle: ForCalendarCellHandle<D>): void {\n this.#dayNav.register(handle);\n }\n\n unregisterCell(handle: ForCalendarCellHandle<D>): void {\n this.#dayNav.unregister(handle);\n }\n\n handleMonthCellKeydown(event: KeyboardEvent, fromMonth: number): void {\n if (this.disabled()) {\n return;\n }\n this.#monthNav.handleKeydown(event, fromMonth);\n }\n\n handleYearCellKeydown(event: KeyboardEvent, fromYear: number): void {\n if (this.disabled()) {\n return;\n }\n this.#yearNav.handleKeydown(event, fromYear);\n }\n\n registerMonthCell(handle: ForCalendarMonthCellHandle): void {\n this.#monthNav.register(handle);\n }\n\n unregisterMonthCell(handle: ForCalendarMonthCellHandle): void {\n this.#monthNav.unregister(handle);\n }\n\n registerYearCell(handle: ForCalendarYearCellHandle): void {\n this.#yearNav.register(handle);\n }\n\n unregisterYearCell(handle: ForCalendarYearCellHandle): void {\n this.#yearNav.unregister(handle);\n }\n\n #scheduleFocus(fn: () => void): void {\n afterNextRender(fn, { injector: this.#injector });\n }\n\n #focusDayCell(target: D): void {\n afterNextRender(() => this.#dayNav.focusCell(target), { injector: this.#injector });\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * The calendar's date table (`role=\"grid\"`). Apply on a `<table>`. Labelled by\n * the `[forCalendarHeading]` via `aria-labelledby`, and reflects `aria-disabled`\n * / `aria-readonly` from the root.\n *\n * Exposes the month's `weekDays()` (column headers) and `weeks()` (day rows)\n * for the consumer to iterate — bind `cell.date` to each `[forCalendarCell]`.\n */\n@Directive({\n selector: '[forCalendarGrid]',\n exportAs: 'forCalendarGrid',\n host: {\n role: 'grid',\n '[attr.aria-labelledby]': 'ctx.headingId()',\n '[attr.aria-disabled]': 'ctx.disabled() ? \"true\" : null',\n '[attr.aria-readonly]': 'ctx.readonly() ? \"true\" : null',\n },\n})\nexport class ForCalendarGrid {\n protected readonly ctx = injectCalendarContext('ForCalendarGrid');\n\n /** Weekday column headers for the visible month, starting at `firstDayOfWeek`. */\n readonly weekDays = this.ctx.weekDays;\n\n /** Week rows of the visible month, including outside-month padding days. */\n readonly weeks = this.ctx.weeks;\n}\n","import { Directive } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * Marks the calendar grid's header rowgroup. Apply on a `<thead>` holding a\n * single row of `<th scope=\"col\">` weekday headers.\n *\n * Reflects `role=\"rowgroup\"` so the weekday header is exposed as a distinct\n * rowgroup inside the `role=\"grid\"` table — assistive tech announces the\n * column headers as their own group rather than folding them into the day\n * rows. (A bare `<thead>` carries the implicit role, but the grid's explicit\n * `role=\"grid\"` suppresses the table's native row/rowgroup semantics, so the\n * header must restate it.)\n *\n * Also exposes `weekDays()` so the header row can be iterated from this piece,\n * as an alternative to reading it off `[forCalendarGrid]`.\n */\n@Directive({\n selector: '[forCalendarGridHeader]',\n exportAs: 'forCalendarGridHeader',\n host: {\n role: 'rowgroup',\n },\n})\nexport class ForCalendarGridHeader {\n protected readonly ctx = injectCalendarContext('ForCalendarGridHeader');\n\n /** Weekday column headers for the visible month, starting at `firstDayOfWeek`. */\n readonly weekDays = this.ctx.weekDays;\n}\n","import { computed, Directive, ElementRef, inject, input } from '@angular/core';\n\nimport { registerHandle } from 'forty-cdk/core';\nimport { type ForCalendarCellHandle, injectCalendarContext } from './calendar-context';\n\n/**\n * A single day cell (`role=\"gridcell\"`). Apply on the `<td>` for each day in\n * the grid and bind `[date]` to the cell's date from `weeks()`.\n *\n * Carries the roving tab stop (`tabindex=\"0\"` only on the focused date), the\n * full accessible date as `aria-label` (the bare day number stays the visible\n * content), `aria-selected` (always emitted), `aria-current=\"date\"` on today,\n * `aria-disabled` on unavailable dates, and the boolean `data-*` styling hooks\n * (`data-selected`, `data-today`, `data-highlighted`, `data-disabled`,\n * `data-outside-month`). In `selectionMode=\"range\"`, also emits\n * `data-range-start`, `data-range-end`, `data-in-range`, and\n * `data-range-preview` (all boolean present/absent). Click and `Enter` /\n * `Space` select; arrow / paging keys move the focused date.\n *\n * @typeParam D The adapter's date type (inferred from the bound `[date]`).\n */\n@Directive({\n selector: '[forCalendarCell]',\n exportAs: 'forCalendarCell',\n host: {\n role: 'gridcell',\n '[attr.tabindex]': 'focused() ? 0 : -1',\n '[attr.aria-label]': 'dateLabel()',\n '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n '[attr.aria-current]': 'isToday() ? \"date\" : null',\n '[attr.aria-disabled]': 'unavailable() ? \"true\" : null',\n '[attr.data-selected]': 'selected() ? \"\" : null',\n '[attr.data-today]': 'isToday() ? \"\" : null',\n '[attr.data-highlighted]': 'focused() ? \"\" : null',\n '[attr.data-disabled]': 'unavailable() ? \"\" : null',\n '[attr.data-outside-month]': 'outsideMonth() ? \"\" : null',\n '[attr.data-range-start]': 'rangeStart() ? \"\" : null',\n '[attr.data-range-end]': 'rangeEnd() ? \"\" : null',\n '[attr.data-in-range]': 'inRange() ? \"\" : null',\n '[attr.data-range-preview]': 'rangePreview() ? \"\" : null',\n '(click)': 'onClick()',\n '(keydown)': 'onKeyDown($event)',\n '(pointerenter)': 'ctx.setHovered(date())',\n '(pointerleave)': 'ctx.setHovered(null)',\n },\n})\nexport class ForCalendarCell<D> {\n protected readonly ctx = injectCalendarContext('ForCalendarCell');\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The date this cell represents. */\n readonly date = input.required<D>();\n\n protected readonly selected = computed(() => this.ctx.isSelected(this.date()));\n protected readonly isToday = computed(() => this.ctx.isToday(this.date()));\n protected readonly focused = computed(() => this.ctx.isFocused(this.date()));\n protected readonly unavailable = computed(() => this.ctx.isUnavailable(this.date()));\n protected readonly outsideMonth = computed(() => this.ctx.isOutsideMonth(this.date()));\n protected readonly dateLabel = computed(() => this.ctx.getDateLabel(this.date()));\n protected readonly rangeStart = computed(() => this.ctx.isRangeStart(this.date()));\n protected readonly rangeEnd = computed(() => this.ctx.isRangeEnd(this.date()));\n protected readonly inRange = computed(() => this.ctx.isInRange(this.date()));\n protected readonly rangePreview = computed(() => this.ctx.isRangePreview(this.date()));\n\n constructor() {\n const handle: ForCalendarCellHandle<unknown> = {\n host: this.#host.nativeElement,\n date: this.date,\n };\n registerHandle(\n handle,\n (h) => this.ctx.registerCell(h),\n (h) => this.ctx.unregisterCell(h),\n );\n }\n\n protected onClick(): void {\n this.ctx.selectDate(this.date());\n }\n\n protected onKeyDown(event: KeyboardEvent): void {\n this.ctx.handleCellKeydown(event, this.date());\n }\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * The month/year heading. Apply on a heading element (e.g. `<h2>`) and render\n * its `label()` as the content: `<h2 forCalendarHeading #h=\"forCalendarHeading\">{{ h.label() }}</h2>`.\n * The grid is `aria-labelledby` this element, so it names the visible period.\n *\n * It is **not** an `aria-live` region: paging the month announces the new\n * period through a dedicated off-screen live region owned by `[forCalendar]`,\n * so the grid's accessible name is re-read on demand without the heading\n * itself double-announcing on every render.\n */\n@Directive({\n selector: '[forCalendarHeading]',\n exportAs: 'forCalendarHeading',\n host: {\n '[id]': 'ctx.headingId()',\n },\n})\nexport class ForCalendarHeading {\n protected readonly ctx = injectCalendarContext('ForCalendarHeading');\n\n /** The visible month's accessible label, e.g. `\"June 2026\"`. */\n readonly label = this.ctx.visibleMonthLabel;\n\n constructor() {\n this.ctx.adoptHeadingId(inject<ElementRef<HTMLElement>>(ElementRef).nativeElement);\n }\n}\n","import { computed, Directive, input } from '@angular/core';\n\nimport { reflectDisabled } from 'forty-cdk/core';\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * Pages the calendar backward. In `day` view pages by one month; in `month` view\n * pages by one year; in `year` view pages by one block. Apply on a `<button>`.\n * Keeps DOM focus on itself while paging; the `aria-live` heading announces the\n * new period. Auto-disabled at the view's bound, or when the whole calendar is\n * disabled.\n *\n * Provide an accessible name via the `[ariaLabel]` input (e.g.\n * `[ariaLabel]=\"'Previous'\"`).\n */\n@Directive({\n selector: '[forCalendarPrevButton]',\n exportAs: 'forCalendarPrevButton',\n host: {\n type: 'button',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '(click)': 'ctx.pagePrevious()',\n },\n})\nexport class ForCalendarPrevButton {\n protected readonly ctx = injectCalendarContext('ForCalendarPrevButton');\n\n /** Accessible name for the button. A `null` (default) or empty value emits no attribute. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly disabled = computed(\n () => this.ctx.disabled() || this.ctx.isPreviousDisabled(),\n );\n\n constructor() {\n reflectDisabled(this.disabled);\n }\n}\n","import { computed, Directive, input } from '@angular/core';\n\nimport { reflectDisabled } from 'forty-cdk/core';\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * Pages the calendar forward. In `day` view pages by one month; in `month` view\n * pages by one year; in `year` view pages by one block. Apply on a `<button>`.\n * Keeps DOM focus on itself while paging; the `aria-live` heading announces the\n * new period. Auto-disabled at the view's bound, or when the whole calendar is\n * disabled.\n *\n * Provide an accessible name via the `[ariaLabel]` input (e.g.\n * `[ariaLabel]=\"'Next'\"`).\n */\n@Directive({\n selector: '[forCalendarNextButton]',\n exportAs: 'forCalendarNextButton',\n host: {\n type: 'button',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '(click)': 'ctx.pageNext()',\n },\n})\nexport class ForCalendarNextButton {\n protected readonly ctx = injectCalendarContext('ForCalendarNextButton');\n\n /** Accessible name for the button. A `null` (default) or empty value emits no attribute. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly disabled = computed(() => this.ctx.disabled() || this.ctx.isNextDisabled());\n\n constructor() {\n reflectDisabled(this.disabled);\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * The month picker grid (`role=\"grid\"`). Apply on a `<table>`. Labelled by the\n * `[forCalendarHeading]` via `aria-labelledby`. Exposes `rows()` — iterate\n * rows then cells, binding each cell's `month` to `[forCalendarMonthCell]`.\n *\n * Shows the 12 months of the visible year in 3-column rows. Used when\n * `view === 'month'`.\n */\n@Directive({\n selector: '[forCalendarMonthGrid]',\n exportAs: 'forCalendarMonthGrid',\n host: {\n role: 'grid',\n '[attr.aria-labelledby]': 'ctx.headingId()',\n '[attr.aria-disabled]': 'ctx.disabled() ? \"true\" : null',\n '[attr.aria-readonly]': 'ctx.readonly() ? \"true\" : null',\n '[attr.data-view]': '\"month\"',\n },\n})\nexport class ForCalendarMonthGrid {\n protected readonly ctx = injectCalendarContext('ForCalendarMonthGrid');\n\n /** Rows of the month picker grid (3 columns) for the visible year. */\n readonly rows = this.ctx.monthRows;\n}\n","import { computed, Directive, ElementRef, inject, input } from '@angular/core';\n\nimport { registerHandle } from 'forty-cdk/core';\nimport { type ForCalendarMonthCellHandle, injectCalendarContext } from './calendar-context';\n\n/**\n * A single month cell (`role=\"gridcell\"`) in the month picker grid. Apply on\n * the `<td>` for each month and bind `[month]` to the month number (1-12) from\n * `rows()`.\n *\n * Carries the roving tab stop (`tabindex=\"0\"` on the focused month), reflects\n * `aria-selected` (always emitted), `data-today`, `data-selected`,\n * `data-highlighted`, `data-disabled`. Click and `Enter` / `Space` drill down\n * to the day view for that month; arrow / paging keys move the roving cell.\n */\n@Directive({\n selector: '[forCalendarMonthCell]',\n exportAs: 'forCalendarMonthCell',\n host: {\n role: 'gridcell',\n '[attr.tabindex]': 'focused() ? 0 : -1',\n '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-selected]': 'selected() ? \"\" : null',\n '[attr.data-today]': 'today() ? \"\" : null',\n '[attr.data-highlighted]': 'focused() ? \"\" : null',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '(click)': 'ctx.selectMonth(month())',\n '(keydown)': 'ctx.handleMonthCellKeydown($event, month())',\n },\n})\nexport class ForCalendarMonthCell {\n protected readonly ctx = injectCalendarContext('ForCalendarMonthCell');\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The month this cell represents, **1-12**. */\n readonly month = input.required<number>();\n\n protected readonly selected = computed(() => this.ctx.isMonthSelected(this.month()));\n protected readonly today = computed(() => this.ctx.isMonthToday(this.month()));\n protected readonly focused = computed(() => this.ctx.isMonthFocused(this.month()));\n protected readonly disabled = computed(() => this.ctx.isMonthDisabled(this.month()));\n\n constructor() {\n const handle: ForCalendarMonthCellHandle = {\n host: this.#host.nativeElement,\n month: this.month,\n };\n registerHandle(\n handle,\n (h) => this.ctx.registerMonthCell(h),\n (h) => this.ctx.unregisterMonthCell(h),\n );\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * The year picker grid (`role=\"grid\"`). Apply on a `<table>`. Labelled by the\n * `[forCalendarHeading]` via `aria-labelledby`. Exposes `rows()` — iterate\n * rows then cells, binding each cell's `year` to `[forCalendarYearCell]`.\n *\n * Shows an aligned block of `yearBlockSize` years in 3-column rows. Used when\n * `view === 'year'`.\n */\n@Directive({\n selector: '[forCalendarYearGrid]',\n exportAs: 'forCalendarYearGrid',\n host: {\n role: 'grid',\n '[attr.aria-labelledby]': 'ctx.headingId()',\n '[attr.aria-disabled]': 'ctx.disabled() ? \"true\" : null',\n '[attr.aria-readonly]': 'ctx.readonly() ? \"true\" : null',\n '[attr.data-view]': '\"year\"',\n },\n})\nexport class ForCalendarYearGrid {\n protected readonly ctx = injectCalendarContext('ForCalendarYearGrid');\n\n /** Rows of the year picker grid (3 columns) for the aligned block containing the visible year. */\n readonly rows = this.ctx.yearRows;\n}\n","import { computed, Directive, ElementRef, inject, input } from '@angular/core';\n\nimport { registerHandle } from 'forty-cdk/core';\nimport { type ForCalendarYearCellHandle, injectCalendarContext } from './calendar-context';\n\n/**\n * A single year cell (`role=\"gridcell\"`) in the year picker grid. Apply on the\n * `<td>` for each year and bind `[year]` to the year number from `rows()`.\n *\n * Carries the roving tab stop (`tabindex=\"0\"` on the focused year), reflects\n * `aria-selected` (always emitted), `data-today`, `data-selected`,\n * `data-highlighted`, `data-disabled`. Click and `Enter` / `Space` drill down\n * to the month view for that year; arrow / paging keys move the roving cell.\n */\n@Directive({\n selector: '[forCalendarYearCell]',\n exportAs: 'forCalendarYearCell',\n host: {\n role: 'gridcell',\n '[attr.tabindex]': 'focused() ? 0 : -1',\n '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n '[attr.aria-disabled]': 'disabled() ? \"true\" : null',\n '[attr.data-selected]': 'selected() ? \"\" : null',\n '[attr.data-today]': 'today() ? \"\" : null',\n '[attr.data-highlighted]': 'focused() ? \"\" : null',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '(click)': 'ctx.selectYear(year())',\n '(keydown)': 'ctx.handleYearCellKeydown($event, year())',\n },\n})\nexport class ForCalendarYearCell {\n protected readonly ctx = injectCalendarContext('ForCalendarYearCell');\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The year this cell represents. */\n readonly year = input.required<number>();\n\n protected readonly selected = computed(() => this.ctx.isYearSelected(this.year()));\n protected readonly today = computed(() => this.ctx.isYearToday(this.year()));\n protected readonly focused = computed(() => this.ctx.isYearFocused(this.year()));\n protected readonly disabled = computed(() => this.ctx.isYearDisabled(this.year()));\n\n constructor() {\n const handle: ForCalendarYearCellHandle = {\n host: this.#host.nativeElement,\n year: this.year,\n };\n registerHandle(\n handle,\n (h) => this.ctx.registerYearCell(h),\n (h) => this.ctx.unregisterYearCell(h),\n );\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { reflectDisabled } from 'forty-cdk/core';\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * The view-cycle button in the calendar header. Apply on a `<button>`. Each\n * click advances the view one step coarser (`day → month → year`), clamped at\n * `'year'`. Reflects `data-view` so consumers can style it per view. Disabled\n * when the whole calendar is disabled.\n *\n * Bind the `label` signal to the button text to show the active view label\n * (e.g. `\"June 2026\"` in day view, `\"2026\"` in month view, `\"2024 – 2035\"` in\n * year view).\n */\n@Directive({\n selector: '[forCalendarViewTrigger]',\n exportAs: 'forCalendarViewTrigger',\n host: {\n type: 'button',\n '[attr.data-view]': 'ctx.view()',\n '[attr.aria-disabled]': 'ctx.disabled() ? \"true\" : null',\n '(click)': 'ctx.cycleView()',\n },\n})\nexport class ForCalendarViewTrigger {\n protected readonly ctx = injectCalendarContext('ForCalendarViewTrigger');\n\n /** Label for the active view, e.g. `\"June 2026\"` / `\"2026\"` / `\"2016 – 2027\"`. */\n readonly label = this.ctx.viewTriggerLabel;\n\n constructor() {\n reflectDisabled(this.ctx.disabled);\n }\n}\n","import { Directive } from '@angular/core';\n\nimport { injectCalendarContext } from './calendar-context';\n\n/**\n * Wires a native `<select>` to a `ForCalendar`'s month navigation. Apply on a\n * `<select>` element inside `[forCalendar]`: the directive keeps the select\n * showing the visible month and navigates the calendar when the user picks a\n * different one, without mutating the selected date.\n *\n * Render the `<option>` elements yourself from {@link options} so you keep full\n * control over their markup, labels, and any placeholder:\n *\n * ```html\n * <select forCalendarMonthSelect #m=\"forCalendarMonthSelect\">\n * @for (opt of m.options(); track opt.value) {\n * <option [value]=\"opt.value\" [disabled]=\"opt.disabled\">{{ opt.label }}</option>\n * }\n * </select>\n * ```\n */\n@Directive({\n selector: 'select[forCalendarMonthSelect]',\n exportAs: 'forCalendarMonthSelect',\n host: {\n '[value]': 'ctx.visibleMonthNumber()',\n '[disabled]': 'ctx.disabled()',\n '(change)': 'onChange($event)',\n },\n})\nexport class ForCalendarMonthSelect {\n protected readonly ctx = injectCalendarContext('ForCalendarMonthSelect');\n\n /** The twelve localized, bounds-aware month options for the visible year. */\n readonly options = this.ctx.monthOptions;\n\n protected onChange(event: Event): void {\n this.ctx.goToMonth(Number((event.target as HTMLSelectElement).value));\n }\n}\n","import { computed, Directive, input } from '@angular/core';\n\nimport { type CalendarYearOption, injectCalendarContext } from './calendar-context';\n\n/**\n * Wires a native `<select>` to a `ForCalendar`'s year navigation. Apply on a\n * `<select>` element inside `[forCalendar]`: the directive keeps the select\n * showing the visible year and navigates the calendar when the user picks a\n * different one, without mutating the selected date.\n *\n * Render the `<option>` elements yourself from {@link years} so you keep full\n * control over their markup:\n *\n * ```html\n * <select forCalendarYearSelect #y=\"forCalendarYearSelect\" [minYear]=\"1900\" [maxYear]=\"2100\">\n * @for (opt of y.years(); track opt.value) {\n * <option [value]=\"opt.value\" [disabled]=\"opt.disabled\">{{ opt.value }}</option>\n * }\n * </select>\n * ```\n */\n@Directive({\n selector: 'select[forCalendarYearSelect]',\n exportAs: 'forCalendarYearSelect',\n host: {\n '[value]': 'ctx.visibleYear()',\n '[disabled]': 'ctx.disabled()',\n '(change)': 'onChange($event)',\n },\n})\nexport class ForCalendarYearSelect {\n protected readonly ctx = injectCalendarContext('ForCalendarYearSelect');\n\n /**\n * Lowest year listed in {@link years}. Defaults to 100 years before the\n * current year when `null`.\n */\n readonly minYear = input<number | null>(null);\n\n /**\n * Highest year listed in {@link years}. Defaults to 10 years after the\n * current year when `null`.\n */\n readonly maxYear = input<number | null>(null);\n\n /**\n * The selectable years, from {@link minYear} to {@link maxYear} inclusive.\n * Each entry is `disabled` when the whole year falls outside the calendar's\n * `[min, max]`. The default window is anchored to the current year (not the\n * visible year), so navigating far away never drops the current year off the\n * list.\n */\n readonly years = computed<readonly CalendarYearOption[]>(() => {\n const currentYear = this.ctx.adapter.getYear(this.ctx.adapter.today());\n const min = this.minYear() ?? currentYear - 100;\n const max = this.maxYear() ?? currentYear + 10;\n const out: CalendarYearOption[] = [];\n for (let year = min; year <= max; year++) {\n out.push({ value: year, disabled: this.ctx.isYearDisabled(year) });\n }\n return out;\n });\n\n protected onChange(event: Event): void {\n this.ctx.goToYear(Number((event.target as HTMLSelectElement).value));\n }\n}\n","import { Injectable, type Provider } from '@angular/core';\n\nimport { type DateAdapter, FOR_DATE_ADAPTER } from 'forty-cdk/core';\n\nfunction daysInMonth(year: number, month: number): number {\n return new Date(year, month, 0).getDate();\n}\n\nfunction clampDay(year: number, month: number, day: number): Date {\n return new Date(year, month - 1, Math.min(day, daysInMonth(year, month)));\n}\n\n/**\n * Zero-dependency {@link DateAdapter} over the built-in `Date`. `today` and\n * `createDate` produce days at local midnight, and the calendar grid stays\n * day-granular. It is also **time-capable** — `Date` natively carries a\n * wall-clock time, so the optional `getHours` / `getMinutes` / `getSeconds` /\n * `setTime` accessors are implemented, letting `ForTimeField` use this adapter\n * directly. Consistently with that, `compare` orders by the full instant\n * (day *and* time), matching `InternationalizedDateTimeAdapter`, so a date-time\n * `minDate`/`maxDate` clamps identically on both.\n *\n * This is the fallback adapter. Prefer `provideInternationalizedDateAdapter()`\n * for correct date-math and locale-aware formatting (or\n * `provideInternationalizedDateTimeAdapter()` for a time-capable one); reach\n * for this one when adding a date library to the bundle is not worthwhile. Both\n * `Date` and the `@internationalized/date` adapters operate on the Gregorian\n * calendar today; non-Gregorian calendar systems are deferred to #354.\n */\n@Injectable()\nexport class NativeDateAdapter implements DateAdapter<Date> {\n /**\n * Today at local midnight in the runtime time zone. Subject to the\n * SSR/hydration caveat on {@link DateAdapter.today}.\n */\n today(): Date {\n const now = new Date();\n return new Date(now.getFullYear(), now.getMonth(), now.getDate());\n }\n\n createDate(year: number, month: number, day: number): Date {\n return clampDay(year, month, day);\n }\n\n getYear(date: Date): number {\n return date.getFullYear();\n }\n\n getMonth(date: Date): number {\n return date.getMonth() + 1;\n }\n\n getDate(date: Date): number {\n return date.getDate();\n }\n\n getDayOfWeek(date: Date): number {\n return date.getDay();\n }\n\n getDaysInMonth(date: Date): number {\n return daysInMonth(date.getFullYear(), date.getMonth() + 1);\n }\n\n getFirstDayOfWeek(): number {\n return 0;\n }\n\n addDays(date: Date, n: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate() + n);\n }\n\n addMonths(date: Date, n: number): Date {\n const total = date.getMonth() + n;\n const year = date.getFullYear() + Math.floor(total / 12);\n const month = ((total % 12) + 12) % 12;\n return clampDay(year, month + 1, date.getDate());\n }\n\n addYears(date: Date, n: number): Date {\n return clampDay(date.getFullYear() + n, date.getMonth() + 1, date.getDate());\n }\n\n compare(a: Date, b: Date): number {\n return a.getTime() - b.getTime();\n }\n\n isSameDay(a: Date, b: Date): boolean {\n return (\n a.getFullYear() === b.getFullYear() &&\n a.getMonth() === b.getMonth() &&\n a.getDate() === b.getDate()\n );\n }\n\n isValid(date: Date): boolean {\n return date instanceof Date && !Number.isNaN(date.getTime());\n }\n\n /**\n * Formats through the runtime's default locale. Subject to the SSR/hydration\n * caveat on {@link DateAdapter.format}.\n */\n format(date: Date, options: Intl.DateTimeFormatOptions): string {\n return new Intl.DateTimeFormat(undefined, options).format(date);\n }\n\n supportsTime(): boolean {\n return true;\n }\n\n getHours(date: Date): number {\n return date.getHours();\n }\n\n getMinutes(date: Date): number {\n return date.getMinutes();\n }\n\n getSeconds(date: Date): number {\n return date.getSeconds();\n }\n\n setTime(date: Date, hours: number, minutes: number, seconds: number): Date {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate(), hours, minutes, seconds);\n }\n}\n\n/**\n * Provides the zero-dependency {@link NativeDateAdapter} as the active\n * {@link DateAdapter}. Add to your application or component providers when\n * `ForCalendar` should operate on native `Date` values.\n *\n * @example\n * ```ts\n * bootstrapApplication(App, {\n * providers: [provideNativeDateAdapter()],\n * });\n * ```\n */\nexport function provideNativeDateAdapter(): Provider[] {\n return [{ provide: FOR_DATE_ADAPTER, useClass: NativeDateAdapter }];\n}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