forty-cdk 0.43.0 → 0.45.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 +16 -3
- package/combobox/README.md +15 -4
- package/disclosure/README.md +15 -3
- package/fesm2022/forty-cdk-accordion.mjs +64 -17
- package/fesm2022/forty-cdk-accordion.mjs.map +1 -1
- package/fesm2022/forty-cdk-combobox.mjs +2 -2
- package/fesm2022/forty-cdk-combobox.mjs.map +1 -1
- package/fesm2022/forty-cdk-core.mjs +191 -44
- package/fesm2022/forty-cdk-core.mjs.map +1 -1
- package/fesm2022/forty-cdk-defaults.mjs.map +1 -1
- package/fesm2022/forty-cdk-disclosure.mjs +69 -15
- package/fesm2022/forty-cdk-disclosure.mjs.map +1 -1
- package/fesm2022/forty-cdk-drag-drop.mjs +1 -1
- package/fesm2022/forty-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/forty-cdk-listbox.mjs +2 -3
- package/fesm2022/forty-cdk-listbox.mjs.map +1 -1
- package/fesm2022/forty-cdk-number-input.mjs +1 -1
- package/fesm2022/forty-cdk-number-input.mjs.map +1 -1
- package/fesm2022/forty-cdk-otp-input.mjs +1 -2
- package/fesm2022/forty-cdk-otp-input.mjs.map +1 -1
- package/fesm2022/forty-cdk-table.mjs +49 -7
- package/fesm2022/forty-cdk-table.mjs.map +1 -1
- package/fesm2022/forty-cdk-tree.mjs +2 -3
- package/fesm2022/forty-cdk-tree.mjs.map +1 -1
- package/package.json +1 -1
- package/radio-group/README.md +2 -2
- package/table/README.md +2 -0
- package/toggle/README.md +2 -2
- package/types/forty-cdk-accordion.d.ts +27 -4
- package/types/forty-cdk-combobox.d.ts +6 -6
- package/types/forty-cdk-core.d.ts +45 -2
- package/types/forty-cdk-defaults.d.ts +4 -3
- package/types/forty-cdk-disclosure.d.ts +37 -4
- package/types/forty-cdk-table.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forty-cdk-defaults.mjs","names":[],"sources":["../../../projects/forty-cdk/defaults/src/defaults.ts","../../../projects/forty-cdk/defaults/src/avatar-defaults.ts","../../../projects/forty-cdk/defaults/src/breadcrumbs-defaults.ts","../../../projects/forty-cdk/defaults/src/breakpoints-defaults.ts","../../../projects/forty-cdk/defaults/src/calendar-defaults.ts","../../../projects/forty-cdk/defaults/src/carousel-defaults.ts","../../../projects/forty-cdk/defaults/src/combobox-defaults.ts","../../../projects/forty-cdk/defaults/src/context-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/date-field-defaults.ts","../../../projects/forty-cdk/defaults/src/date-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/date-range-field-defaults.ts","../../../projects/forty-cdk/defaults/src/date-range-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/dialog-defaults.ts","../../../projects/forty-cdk/defaults/src/drag-drop-defaults.ts","../../../projects/forty-cdk/defaults/src/drawer-defaults.ts","../../../projects/forty-cdk/defaults/src/dropdown-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/skip-delay.ts","../../../projects/forty-cdk/defaults/src/hover-card-defaults.ts","../../../projects/forty-cdk/defaults/src/listbox-defaults.ts","../../../projects/forty-cdk/defaults/src/menu-defaults.ts","../../../projects/forty-cdk/defaults/src/menubar-defaults.ts","../../../projects/forty-cdk/defaults/src/navigation-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/number-input-defaults.ts","../../../projects/forty-cdk/defaults/src/pagination-defaults.ts","../../../projects/forty-cdk/defaults/src/popover-defaults.ts","../../../projects/forty-cdk/defaults/src/progress-defaults.ts","../../../projects/forty-cdk/defaults/src/radio-group-defaults.ts","../../../projects/forty-cdk/defaults/src/scroll-area-defaults.ts","../../../projects/forty-cdk/defaults/src/search-defaults.ts","../../../projects/forty-cdk/defaults/src/select-defaults.ts","../../../projects/forty-cdk/defaults/src/slider-defaults.ts","../../../projects/forty-cdk/defaults/src/stepper-defaults.ts","../../../projects/forty-cdk/defaults/src/tabs-defaults.ts","../../../projects/forty-cdk/defaults/src/time-field-defaults.ts","../../../projects/forty-cdk/defaults/src/time-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/time-range-field-defaults.ts","../../../projects/forty-cdk/defaults/src/toast-defaults.ts","../../../projects/forty-cdk/defaults/src/toggle-defaults.ts","../../../projects/forty-cdk/defaults/src/toolbar-defaults.ts","../../../projects/forty-cdk/defaults/src/tooltip-defaults.ts","../../../projects/forty-cdk/defaults/src/tree-defaults.ts"],"sourcesContent":["import { type InjectionToken, Optional, type Provider, SkipSelf } from '@angular/core';\n\n/**\n * Builds the providers of a `provideFor<X>Defaults(overrides)` call. Every\n * defaults pair in the library routes its provider through this one merge, so\n * the inheritance semantics stay identical everywhere — the convention is\n * documented in `CLAUDE.md` under \"Defaults providers\".\n *\n * Each pair declares its own token as a top-level\n * `new InjectionToken<D>(name, { providedIn: 'root', factory: () => fallback })`,\n * the one shape bundlers drop when it is unused. A helper call returning the\n * token would be kept as a side effect, so importing any one pair from\n * `forty-cdk/defaults` would keep all of them.\n *\n * - Reads the parent value of the same token via\n * `[[new SkipSelf(), new Optional(), TOKEN]]` so each call inherits\n * ancestor scopes.\n * - Per key, the value present-and-not-`undefined` in `overrides` wins, else\n * the parent's value (when not `undefined`), else the library `fallback`.\n * Only `undefined` is treated as \"key omitted\" — a deliberate `null` (or any\n * other defined value) in `overrides` or `parent` is a real override and is\n * kept. The parent's already-merged value beats the library fallback, which\n * means a component-level `provideFor<X>Defaults({ a: 1 })` overlaid on an\n * app-level `provideFor<X>Defaults({ a: 0, b: 2 })` resolves to\n * `{ a: 1, b: 2 }` — partial overrides only touch the keys they list.\n * - `overrides` may instead be a function returning them. It is called inside\n * the provider factory, so it can `inject()`, once per injector that\n * resolves the token.\n * - A key listed in `recordKeys` holds a per-part record (`segmentLabels`,\n * `placeholder`) and merges one level deeper: per entry, the same\n * overrides-over-parent-over-fallback order applies, so a scope overriding\n * one entry keeps every entry an ancestor scope set.\n * - Returns a `Provider[]` so callers can spread additional providers\n * (e.g. a per-scope coordinator class) into the same array.\n *\n * @param token The pair's token, whose root factory returns `fallback`.\n * @param fallback Library defaults, merged under every scope. Returned by\n * reference at the root, so don't mutate it.\n * @param overrides The scope's partial overrides, or a factory building them.\n * @param recordKeys Keys whose values are records merged entry by entry.\n */\nexport function provideDefaults<D extends object>(\n token: InjectionToken<D>,\n fallback: D,\n overrides: Partial<D> | (() => Partial<D>) = {},\n recordKeys: readonly (keyof D)[] = [],\n): Provider[] {\n return [\n {\n provide: token,\n useFactory: (parent: D | null): D =>\n mergeDefaults(\n typeof overrides === 'function' ? (overrides as () => Partial<D>)() : overrides,\n parent,\n fallback,\n recordKeys,\n ),\n deps: [[new SkipSelf(), new Optional(), token]],\n },\n ];\n}\n\nfunction mergeDefaults<D extends object>(\n overrides: Partial<D>,\n parent: D | null,\n fallback: D,\n recordKeys: readonly (keyof D)[],\n): D {\n const result = { ...fallback } as D;\n // Parent already merged its own overrides over the fallback, so it wins\n // over the library fallback for any key it owns.\n if (parent) {\n for (const key of Object.keys(parent) as (keyof D)[]) {\n const value = parent[key];\n if (value !== undefined) {\n result[key] = recordKeys.includes(key)\n ? (mergeRecord(result[key], value) as D[keyof D])\n : value;\n }\n }\n }\n // Overrides win over both parent and fallback for the keys they list.\n for (const key of Object.keys(overrides) as (keyof D)[]) {\n const value = overrides[key] as D[keyof D] | undefined;\n if (value !== undefined) {\n result[key] = recordKeys.includes(key)\n ? (mergeRecord(result[key], value) as D[keyof D])\n : value;\n }\n }\n return result;\n}\n\nfunction mergeRecord(base: unknown, layer: unknown): Record<string, unknown> {\n const merged: Record<string, unknown> = { ...(base as object) };\n for (const [entry, value] of Object.entries(layer as object)) {\n if (value !== undefined) {\n merged[entry] = value;\n }\n }\n return merged;\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant avatars in the surrounding injector\n * scope. Configure with `provideForAvatarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForAvatarDefaults {\n /**\n * Milliseconds to defer the fallback for fast loads, avoiding a brief\n * \"initials → image\" flicker. Set to `0` to show immediately during\n * `idle` / `loading`, or to e.g. `500` to skip rendering during quick\n * cached loads. `error` always shows the fallback immediately.\n */\n fallbackDelayMs: number;\n}\n\n/**\n * Library fallback for avatar defaults, read at the root injector when no\n * consumer has called `provideForAvatarDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_AVATAR_FALLBACK_DEFAULTS: ForAvatarDefaults = {\n fallbackDelayMs: 0,\n};\n\n/** Token holding the resolved avatar defaults for the current scope. */\nexport const FOR_AVATAR_DEFAULTS = new InjectionToken<ForAvatarDefaults>('FOR_AVATAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_AVATAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk avatar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForAvatarDefaults(\n defaults: Partial<ForAvatarDefaults> | (() => Partial<ForAvatarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_AVATAR_DEFAULTS, FOR_AVATAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant breadcrumb trails in the surrounding\n * injector scope. Configure with `provideForBreadcrumbsDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForBreadcrumbsDefaults {\n /**\n * Accessible name for the breadcrumb `navigation` landmark, for trails that\n * don't set `[ariaLabel]` locally. Localize it here to translate every\n * breadcrumb landmark in the scope.\n */\n label: LocalizableText;\n}\n\n/**\n * Library fallback for breadcrumbs defaults, read at the root injector when no\n * consumer has called `provideForBreadcrumbsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_BREADCRUMBS_FALLBACK_DEFAULTS: ForBreadcrumbsDefaults = {\n label: 'Breadcrumb',\n};\n\n/** Token holding the resolved breadcrumbs defaults for the current scope. */\nexport const FOR_BREADCRUMBS_DEFAULTS = new InjectionToken<ForBreadcrumbsDefaults>(\n 'FOR_BREADCRUMBS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_BREADCRUMBS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk breadcrumbs defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForBreadcrumbsDefaults(\n defaults: Partial<ForBreadcrumbsDefaults> | (() => Partial<ForBreadcrumbsDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_BREADCRUMBS_DEFAULTS, FOR_BREADCRUMBS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * A breakpoint map: each named breakpoint paired with its `min-width`\n * threshold in CSS pixels. Names are arbitrary — `injectBreakpoints` derives\n * its query methods (`up`, `down`, `between`, `only`) from whatever keys this\n * map declares, sorted ascending by threshold.\n */\nexport type BreakpointMap = Record<string, number>;\n\n/**\n * The default breakpoint map, mirroring Tailwind CSS's `sm`–`2xl` scale. Used\n * as the library fallback when no `provideForBreakpointsDefaults` is in scope,\n * and the source of the typed breakpoint names when the consumer has not\n * augmented `BreakpointRegistry` from `forty-cdk/breakpoints`.\n */\nexport const forBreakpointsTailwind = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const satisfies BreakpointMap;\n\n/** The breakpoint names from the default Tailwind scale. */\nexport type TailwindBreakpointName = keyof typeof forBreakpointsTailwind;\n\n/** Resolved shape stored against {@link FOR_BREAKPOINTS_DEFAULTS}. */\nexport interface ForBreakpointsDefaults {\n /** The active breakpoint map for the current injector scope. */\n breakpoints: BreakpointMap;\n}\n\n/**\n * Library fallback for breakpoints defaults, read at the root injector when no\n * consumer has called `provideForBreakpointsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_BREAKPOINTS_FALLBACK_DEFAULTS: ForBreakpointsDefaults = {\n breakpoints: forBreakpointsTailwind,\n};\n\n/**\n * Token holding the resolved breakpoint map for the current injector scope.\n * The library always provides a fully-populated value (the Tailwind fallback\n * at the root, or the map from the nearest `provideForBreakpointsDefaults`).\n */\nexport const FOR_BREAKPOINTS_DEFAULTS = new InjectionToken<ForBreakpointsDefaults>(\n 'FOR_BREAKPOINTS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_BREAKPOINTS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures the breakpoint map for this injector scope so `injectBreakpoints`\n * can be called with no arguments. Provide it once in your application config:\n *\n * ```ts\n * providers: [\n * provideForBreakpointsDefaults({ mobile: 0, tablet: 640, laptop: 1024, desktop: 1280 }),\n * ]\n * ```\n *\n * Providing it again on a component injector replaces the map for that subtree\n * only (the nearest scope wins; the map is replaced wholesale, never merged\n * key-by-key). Omit it entirely to use {@link forBreakpointsTailwind}.\n *\n * Pass a function instead of a map to build it where `inject()` is available;\n * it runs once per injector that resolves the defaults.\n */\nexport function provideForBreakpointsDefaults(\n breakpoints: BreakpointMap | (() => BreakpointMap),\n): Provider[] {\n return provideDefaults(\n FOR_BREAKPOINTS_DEFAULTS,\n FOR_BREAKPOINTS_FALLBACK_DEFAULTS,\n typeof breakpoints === 'function' ? () => ({ breakpoints: breakpoints() }) : { breakpoints },\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\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 * Builds the accessible date of an outside-month padding day from the\n * formatted full date (default `\"<date> (outside month)\"`), so assistive tech\n * can tell it apart from the visible month. Used by the default `dateLabel`\n * formatter; a `ForCalendar` bound to its own `[dateLabel]` ignores it.\n */\n outsideMonthLabel: (formattedDate: string) => string;\n /**\n * Builds the polite announcement made when a range calendar sets its anchor,\n * from the anchor date formatted as day, month and year (default\n * `\"Start date <date>. Choose the end date.\"`).\n */\n rangeStartAnnouncement: (formattedStart: string) => string;\n /**\n * Builds the polite announcement made when a range calendar commits a range,\n * from its start and end dates formatted as day, month and year (default\n * `\"Selected <start> to <end>.\"`).\n */\n rangeSelectedAnnouncement: (formattedStart: string, formattedEnd: string) => string;\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 outsideMonthLabel: (formattedDate) => `${formattedDate} (outside month)`,\n rangeStartAnnouncement: (formattedStart) => `Start date ${formattedStart}. Choose the end date.`,\n rangeSelectedAnnouncement: (formattedStart, formattedEnd) =>\n `Selected ${formattedStart} to ${formattedEnd}.`,\n};\n\n/** Token holding the resolved calendar defaults for the current scope. */\nexport const FOR_CALENDAR_DEFAULTS = new InjectionToken<ForCalendarDefaults>(\n 'FOR_CALENDAR_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CALENDAR_FALLBACK_DEFAULTS,\n },\n);\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 *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForCalendarDefaults(\n defaults: Partial<ForCalendarDefaults> | (() => Partial<ForCalendarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CALENDAR_DEFAULTS, FOR_CALENDAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/** Alignment of the active slide within the viewport. */\nexport type CarouselAlign = 'start' | 'center' | 'end';\n\n/**\n * Defaults inherited by descendant carousels in the surrounding injector scope.\n * Configure with `provideForCarouselDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForCarouselDefaults {\n /**\n * Whether index wrap-around is enabled. When `true`, `next` past the last\n * slide wraps to index 0 and `prev` before index 0 wraps to the last slide.\n */\n loop: boolean;\n /**\n * Alignment of the active slide within the viewport. `'start'` (default):\n * the active slide's leading edge aligns with the viewport's leading edge.\n * `'center'` / `'end'` offset accordingly.\n */\n align: CarouselAlign;\n /**\n * Number of slides visible simultaneously in the viewport. Slide width is\n * set to `100% / slidesPerView` by the consumer's CSS.\n */\n slidesPerView: number;\n /**\n * When `true` (and the carousel is not looping), clamps the track offset so the\n * trailing slides align flush to the viewport's trailing edge instead of\n * overscrolling into empty space when `slidesPerView > 1`. The indicator/slide\n * mapping is unchanged — only the visual offset is contained. Default `false`.\n */\n containScroll: boolean;\n /** Whether the carousel auto-rotates on mount (when not under reduced-motion). Default `false`. */\n autoplay: boolean;\n /** Milliseconds between automatic slide advances. Default `5000`. */\n autoplayInterval: number;\n /**\n * Builds the default positional `aria-label` for each slide (`\"N of M\"`).\n * Override to localize centrally. `position` is the 1-based slide index and\n * `total` is the slide count. A per-slide `ariaLabel` still takes precedence.\n */\n slideLabel: (position: number, total: number) => string;\n /**\n * Builds the default `aria-label` for each indicator dot (`\"Go to slide N\"`).\n * Override to localize centrally. `position` is the 1-based slide index. A\n * per-indicator `ariaLabel` still takes precedence.\n */\n indicatorLabel: (position: number) => string;\n /**\n * Accessible name for `[forCarouselRotationControl]` while rotation is\n * **stopped** (activating the control starts it), for controls that don't set\n * `[startLabel]` locally. Localize it here to translate every carousel\n * rotation control in the scope.\n */\n rotationStartLabel: LocalizableText;\n /**\n * Accessible name for `[forCarouselRotationControl]` while rotation is\n * **playing** (activating the control stops it), for controls that don't set\n * `[stopLabel]` locally. Localize it here to translate every carousel\n * rotation control in the scope.\n */\n rotationStopLabel: LocalizableText;\n /**\n * `aria-roledescription` of the carousel root, spoken in place of its\n * `group` role. Localize it here to translate every carousel in the scope;\n * an empty string drops the attribute.\n */\n roleDescription: LocalizableText;\n /**\n * `aria-roledescription` of each `[forCarouselSlide]`, spoken in place of\n * its `group` role. Localize it here to translate every slide in the scope;\n * an empty string drops the attribute.\n */\n slideRoleDescription: LocalizableText;\n}\n\n/**\n * Library fallback for carousel defaults, read at the root injector when no\n * consumer has called `provideForCarouselDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_CAROUSEL_FALLBACK_DEFAULTS: ForCarouselDefaults = {\n loop: false,\n align: 'start',\n slidesPerView: 1,\n containScroll: false,\n autoplay: false,\n autoplayInterval: 5000,\n slideLabel: (position, total) => `${position} of ${total}`,\n indicatorLabel: (position) => `Go to slide ${position}`,\n rotationStartLabel: 'Start automatic slide show',\n rotationStopLabel: 'Stop automatic slide show',\n roleDescription: 'carousel',\n slideRoleDescription: 'slide',\n};\n\n/** Token holding the resolved carousel defaults for the current scope. */\nexport const FOR_CAROUSEL_DEFAULTS = new InjectionToken<ForCarouselDefaults>(\n 'FOR_CAROUSEL_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CAROUSEL_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk carousel defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForCarouselDefaults(\n defaults: Partial<ForCarouselDefaults> | (() => Partial<ForCarouselDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CAROUSEL_DEFAULTS, FOR_CAROUSEL_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\nimport type { FloatingAlign, FloatingSide } from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Where the editable anatomy's highlight lands when the listbox opens from focus, click,\n * ArrowDown / ArrowUp or `openOverlay()` without an argument. `'first'` highlights the first\n * enabled option (ArrowUp: the last). `'selected'` highlights the committed selection, falling\n * back to the first enabled option (ArrowUp: the last) when there is none. Opening from a typed\n * query always highlights the first match.\n */\nexport type ForComboboxOpenHighlight = 'first' | 'selected';\n\n/**\n * Defaults inherited by descendant comboboxes in the surrounding injector\n * scope. Configure with `provideForComboboxDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForComboboxDefaults {\n /**\n * Side the listbox is anchored to for comboboxes that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for comboboxes that don't override\n * `align` locally. Library fallback `'start'`. `start` and `end` resolve\n * against the writing direction, so `'start'` anchors the listbox to the\n * input's leading edge in both LTR and RTL.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the combobox input/trigger and the floating\n * content along the resolved `side` axis, for comboboxes that don't\n * override `sideOffset` locally.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning, for comboboxes that don't override `collisionPadding`\n * locally. Higher values keep the floating content further from the edge\n * when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Where the editable anatomy's highlight lands on open, for comboboxes that\n * don't set `openHighlight` locally. Library fallback `'first'`.\n */\n openHighlight: ForComboboxOpenHighlight;\n /**\n * Whether a single-select editable combobox restores the selected option's\n * label into `query` when its listbox closes without a pick, for comboboxes\n * that don't set `restoreQueryOnClose` locally. Library fallback `false`.\n */\n restoreQueryOnClose: boolean;\n /**\n * Accessible name for the chevron button (`[forComboboxToggle]`), for toggles\n * that don't set `[ariaLabel]` locally. Localize it here to translate every\n * combobox toggle in the scope.\n */\n toggleAriaLabel: LocalizableText;\n /**\n * Accessible name for the multi-mode chips cluster (`[forComboboxChips]`,\n * `role=\"group\"`), for chip clusters that don't set `[ariaLabel]` locally.\n * Localize it here to translate every combobox chip group in the scope.\n */\n chipsAriaLabel: LocalizableText;\n /**\n * Accessible name for the clear button (`[forComboboxClear]`), for clear\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every combobox clear button in the scope.\n */\n clearAriaLabel: LocalizableText;\n /**\n * Builds the `aria-label` for a chip's remove button\n * (`[forComboboxChipRemove]`) from the chip's resolved option label.\n * Override it here to translate every combobox chip remove button in the\n * scope — the name is computed per chip, so the piece exposes no\n * per-instance `[ariaLabel]` input.\n */\n chipRemoveLabel: (label: string) => string;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for combobox defaults, read at the root injector when no\n * consumer has called `provideForComboboxDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_COMBOBOX_FALLBACK_DEFAULTS: ForComboboxDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n openHighlight: 'first',\n restoreQueryOnClose: false,\n toggleAriaLabel: 'Show options',\n chipsAriaLabel: 'Selected items',\n clearAriaLabel: 'Clear',\n chipRemoveLabel: (label) => `Remove ${label}`,\n loop: true,\n};\n\n/** Token holding the resolved combobox defaults for the current scope. */\nexport const FOR_COMBOBOX_DEFAULTS = new InjectionToken<ForComboboxDefaults>(\n 'FOR_COMBOBOX_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_COMBOBOX_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk combobox defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForComboboxDefaults(\n defaults: Partial<ForComboboxDefaults> | (() => Partial<ForComboboxDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_COMBOBOX_DEFAULTS, FOR_COMBOBOX_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant context menus in the surrounding\n * injector scope. Configure with `provideForContextMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForContextMenuDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the menu is anchored to, relative to the virtual anchor at the\n * pointer, for context menus that don't override `side` locally. Library\n * fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for context menus that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the virtual anchor (pointer position) and the\n * floating content along the resolved `side` axis. Defaults to `0`\n * since context menus open at the cursor.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for context menu defaults, read at the root injector when no\n * consumer has called `provideForContextMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_CONTEXT_MENU_FALLBACK_DEFAULTS: ForContextMenuDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 0,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved context-menu defaults for the current scope. */\nexport const FOR_CONTEXT_MENU_DEFAULTS = new InjectionToken<ForContextMenuDefaults>(\n 'FOR_CONTEXT_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CONTEXT_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk context-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForContextMenuDefaults(\n defaults: Partial<ForContextMenuDefaults> | (() => Partial<ForContextMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CONTEXT_MENU_DEFAULTS, FOR_CONTEXT_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, SegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForDateFieldSegmentLabels = Partial<Record<SegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forDateField]` controls in the\n * surrounding injector scope. Configure with `provideForDateFieldDefaults` at\n * the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDateFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForDateFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`dd` / `mm` / `yyyy` / `hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<SegmentType, LocalizableText>>;\n /**\n * 12- or 24-hour cycle for fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForDateFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_DATE_FIELD_SEGMENT_LABELS: Readonly<Record<SegmentType, string>> = {\n day: 'day',\n month: 'month',\n year: 'year',\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for date-field defaults, read at the root injector when no\n * consumer has called `provideForDateFieldDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DATE_FIELD_FALLBACK_DEFAULTS: ForDateFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_DATE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n hourCycle: null,\n};\n\n/** Token holding the resolved date-field defaults for the current scope. */\nexport const FOR_DATE_FIELD_DEFAULTS = new InjectionToken<ForDateFieldDefaults>(\n 'FOR_DATE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-field defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateFieldDefaults(\n defaults: Partial<ForDateFieldDefaults> | (() => Partial<ForDateFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DATE_FIELD_DEFAULTS, FOR_DATE_FIELD_FALLBACK_DEFAULTS, defaults, [\n 'segmentLabels',\n 'placeholder',\n ]);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant date pickers in the surrounding injector\n * scope. Configure with `provideForDatePickerDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDatePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the surface is anchored to for pickers that don't override `side`\n * locally. Ignored in `modal` mode. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for pickers that don't override `align`\n * locally. Ignored in `modal` mode. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the trigger and the floating surface along the\n * resolved `side` axis. Ignored in `modal`\n * mode (the dialog is centered, not anchored).\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the surface further from the edge when `flip` / `shift`\n * runs.\n */\n collisionPadding: number;\n /**\n * 12- or 24-hour cycle for pickers that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library fallback for date-picker defaults, read at the root injector when no\n * consumer has called `provideForDatePickerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DATE_PICKER_FALLBACK_DEFAULTS: ForDatePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 8,\n collisionPadding: 8,\n hourCycle: null,\n};\n\n/** Token holding the resolved date-picker defaults for the current scope. */\nexport const FOR_DATE_PICKER_DEFAULTS = new InjectionToken<ForDatePickerDefaults>(\n 'FOR_DATE_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-picker defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDatePickerDefaults(\n defaults: Partial<ForDatePickerDefaults> | (() => Partial<ForDatePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DATE_PICKER_DEFAULTS, FOR_DATE_PICKER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, SegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForDateRangeFieldSegmentLabels = Partial<Record<SegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forDateRangeField]` controls in the\n * surrounding injector scope. Configure with `provideForDateRangeFieldDefaults`\n * at the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDateRangeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForDateRangeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`dd` / `mm` / `yyyy` / `hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<SegmentType, LocalizableText>>;\n /**\n * Accessible name announced (via `aria-label`) for the start endpoint group,\n * used when `[forDateRangeFieldStart]` has no explicit `ariaLabel`.\n */\n startAriaLabel: LocalizableText;\n /**\n * Accessible name announced (via `aria-label`) for the end endpoint group,\n * used when `[forDateRangeFieldEnd]` has no explicit `ariaLabel`.\n */\n endAriaLabel: LocalizableText;\n /**\n * 12- or 24-hour cycle for range fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForDateRangeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_DATE_RANGE_FIELD_SEGMENT_LABELS: Readonly<Record<SegmentType, string>> = {\n day: 'day',\n month: 'month',\n year: 'year',\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for date-range-field defaults, read at the root injector when\n * no consumer has called `provideForDateRangeFieldDefaults`. Exported for the\n * shared defaults contract spec; not re-exported from the primitive's public\n * entry.\n */\nexport const FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS: ForDateRangeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_DATE_RANGE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n startAriaLabel: 'Start date',\n endAriaLabel: 'End date',\n hourCycle: null,\n};\n\n/** Token holding the resolved date-range-field defaults for the current scope. */\nexport const FOR_DATE_RANGE_FIELD_DEFAULTS = new InjectionToken<ForDateRangeFieldDefaults>(\n 'FOR_DATE_RANGE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-range-field defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateRangeFieldDefaults(\n defaults: Partial<ForDateRangeFieldDefaults> | (() => Partial<ForDateRangeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_DATE_RANGE_FIELD_DEFAULTS,\n FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS,\n defaults,\n ['segmentLabels', 'placeholder'],\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant date range pickers in the surrounding\n * injector scope. Configure with `provideForDateRangePickerDefaults` either at\n * the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForDateRangePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the surface is anchored to for pickers that don't override `side`\n * locally. Ignored in `modal` mode. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for pickers that don't override `align`\n * locally. Ignored in `modal` mode. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the trigger and the floating surface along the\n * resolved `side` axis. Ignored in `modal` mode (the dialog is centered, not\n * anchored).\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the surface further from the edge when `flip` / `shift`\n * runs.\n */\n collisionPadding: number;\n}\n\n/**\n * Library fallback for date-range-picker defaults, read at the root injector\n * when no consumer has called `provideForDateRangePickerDefaults`. Exported for\n * the shared defaults contract spec; not re-exported from the primitive's\n * public entry.\n */\nexport const FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS: ForDateRangePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 8,\n collisionPadding: 8,\n};\n\n/** Token holding the resolved date-range-picker defaults for the current scope. */\nexport const FOR_DATE_RANGE_PICKER_DEFAULTS = new InjectionToken<ForDateRangePickerDefaults>(\n 'FOR_DATE_RANGE_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-range-picker defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateRangePickerDefaults(\n defaults: Partial<ForDateRangePickerDefaults> | (() => Partial<ForDateRangePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_DATE_RANGE_PICKER_DEFAULTS,\n FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS,\n defaults,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by dialogs in the surrounding injector scope. Configure\n * with `provideForDialogDefaults`. A key named after a `[forDialog]` input\n * (`modal`, `dismissible`, `returnFocus`, `initialFocus`) seeds that input, so\n * a bound value still wins; the `animate*` keys apply to\n * `ForDialogManager.open()` only.\n *\n * **Scope caveat (declarative vs. programmatic).** Declarative `[forDialog]`\n * instances read this token from their own injector, so a scoped\n * `provideForDialogDefaults` (a lazy route, a component `providers`) reaches\n * every dialog rendered under that scope. `ForDialogManager` is\n * `providedIn: 'root'` and resolves the token **once, from the root injector**,\n * so by default only application-root `provideForDialogDefaults` affects\n * `ForDialogManager.open()` — a scoped override does not. To honor a caller's\n * scope, pass its injector on the `open()` config\n * (`open(Cmp, { injector: inject(Injector) })`): the manager then resolves\n * these defaults from that injector. Either way, a per-`open()` config value\n * always wins. This asymmetry is shared with `ForDrawerDefaults`.\n */\nexport interface ForDialogDefaults {\n /**\n * Default `true`. Sets `aria-modal`, locks body scroll, traps focus, inerts siblings and returns\n * focus on close.\n */\n modal: boolean;\n /** Default `true`. Whether Escape / backdrop / outside close the dialog. */\n dismissible: boolean;\n /**\n * Default `true`. Restore focus to the previously focused element on close. Modal mode only: a\n * non-modal surface never moves focus on close.\n */\n returnFocus: boolean;\n /** Default `'first'`. Where to send focus on mount. */\n initialFocus: 'first' | 'container';\n /**\n * CSS class applied (via `animate.enter`) to the programmatic overlay host\n * when it mounts, so it plays an enter animation. The class lands on the\n * `[forDialog]` host that also carries the consumer `class`. No default.\n */\n animateEnter?: string;\n /**\n * CSS class applied to the programmatic overlay host when `close()` is\n * called, kept on the still-mounted host until its CSS animations finish so\n * an exit transition plays before teardown. No default (close is immediate).\n */\n animateLeave?: string;\n /**\n * CSS class applied to the portaled `[forDialogBackdrop]` when `close()` is\n * called, so the backdrop plays an exit animation in lockstep with the\n * host. Needed because a backdrop declared inside the opened component plays\n * its `animate.enter` on mount but cannot run its template `animate.leave` —\n * Angular does not process leave animations across the `ngComponentOutlet`\n * boundary the manager mounts the component through. No default.\n */\n backdropAnimateLeave?: string;\n}\n\n/**\n * Library fallback for dialog defaults, read at the root injector when no\n * consumer has called `provideForDialogDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DIALOG_FALLBACK_DEFAULTS: ForDialogDefaults = {\n modal: true,\n dismissible: true,\n returnFocus: true,\n initialFocus: 'first',\n};\n\n/** Token holding the resolved dialog defaults for the current scope. */\nexport const FOR_DIALOG_DEFAULTS = new InjectionToken<ForDialogDefaults>('FOR_DIALOG_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_DIALOG_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk dialog defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Declarative `[forDialog]` reads the nearest scope; `ForDialogManager.open()`\n * (root-provided) only sees an application-root configuration unless the caller\n * passes its `injector` on the `open()` config — see the scope caveat on\n * {@link ForDialogDefaults}.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDialogDefaults(\n defaults: Partial<ForDialogDefaults> | (() => Partial<ForDialogDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DIALOG_DEFAULTS, FOR_DIALOG_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/** The list a positional drag announcement describes. */\nexport interface ForDragDropAnnouncementContext {\n /** The list's accessible name from its `aria-labelledby` / `aria-label`, or `''` when it has none. */\n readonly list: string;\n /** Whether the list is not the one the item was lifted from. */\n readonly transfer: boolean;\n}\n\n/**\n * Defaults inherited by descendant drag-drop lists and reorder coordinators in\n * the surrounding injector scope. Configure with `provideForDragDropDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n *\n * The three positional announcement builders share one contract: `label` is the\n * dragged item's name (its `[textValue]`, else its `aria-labelledby` /\n * `aria-label`, else its text), `index` is the 1-based position being\n * announced, and `total` is the number of **valid drop positions** in the list\n * the announcement describes — never a bare item count. For a reorder inside\n * one list that is its item count (the item is re-inserted among the existing\n * ones); for a transfer into a connected list it is one more than the target's\n * item count, because the append gap past the last item is also a valid\n * position. `index` therefore never exceeds `total`, and an empty transfer\n * target announces `1 of 1` rather than `1 of 0`. `context` names that list\n * and says whether it is a transfer target.\n */\nexport interface ForDragDropDefaults {\n /**\n * `aria-roledescription` applied to each draggable item while it can be lifted;\n * an item that cannot be lifted emits none. Empty string disables the attribute.\n */\n itemRoleDescription: LocalizableText;\n /**\n * Announcement when an item is lifted. `index` / `total` describe the source\n * list, per the positional contract above.\n */\n announceLift: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /**\n * Announcement when the drop target position changes. `index` / `total`\n * describe the target list (the list under the resolved drop position, which\n * may be a connected list), per the positional contract above.\n */\n announceMove: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /**\n * Announcement on a committed drop. `index` / `total` describe the destination\n * list, per the positional contract above.\n */\n announceDrop: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /** Announcement when a drag is cancelled. */\n announceCancel: (label: string) => string;\n /** Distance in px from a scroll edge that arms auto-scroll during a pointer drag. */\n autoScrollEdgeSize: number;\n /** Maximum scroll delta in px applied per animation frame while auto-scrolling. */\n autoScrollMaxSpeed: number;\n /**\n * Whether a keydown on a focused item lifts it into a keyboard reorder in\n * `[forListboxReorder]`, `[forTreeNodeDrag]` and `[forTableRowReorder]` (grid\n * mode). The default accepts `Shift+Enter`, which no operating system\n * reserves, and `Ctrl+Space` / `Cmd+Space`, which macOS and most IMEs claim\n * before the page sees them. A keydown that belongs to an IME composition\n * never lifts, whatever this returns.\n */\n liftKey: (event: KeyboardEvent) => boolean;\n}\n\n/**\n * Library fallback for drag-drop defaults, read at the root injector when no\n * consumer has called `provideForDragDropDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DRAG_DROP_FALLBACK_DEFAULTS: ForDragDropDefaults = {\n itemRoleDescription: 'sortable',\n announceLift: (label, index, total) => `${label}, lifted. ${index} of ${total}.`,\n announceMove: (label, index, total, context) =>\n context.transfer\n ? `${label}, moved to ${context.list || 'another list'}, position ${index} of ${total}.`\n : `${label}, moved to position ${index} of ${total}.`,\n announceDrop: (label, index, total, context) =>\n context.transfer\n ? `${label}, dropped in ${context.list || 'another list'}, position ${index} of ${total}.`\n : `${label}, dropped at position ${index} of ${total}.`,\n announceCancel: (label) => `${label}, movement cancelled.`,\n autoScrollEdgeSize: 50,\n autoScrollMaxSpeed: 16,\n liftKey: (event) =>\n (event.key === 'Enter' &&\n event.shiftKey &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey) ||\n (event.key === ' ' && (event.ctrlKey || event.metaKey)),\n};\n\n/** Token holding the resolved drag-drop defaults for the current scope. */\nexport const FOR_DRAG_DROP_DEFAULTS = new InjectionToken<ForDragDropDefaults>(\n 'FOR_DRAG_DROP_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DRAG_DROP_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk drag-drop defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDragDropDefaults(\n defaults: Partial<ForDragDropDefaults> | (() => Partial<ForDragDropDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DRAG_DROP_DEFAULTS, FOR_DRAG_DROP_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { ForDrawerSide } from 'forty-cdk/core-overlay';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant drawers in the surrounding injector\n * scope. Configure with `provideForDrawerDefaults`. A key named after a\n * `[forDrawer]` input seeds that input, so a bound value still wins; the\n * `scale*` and `nested*` keys tune the scale-background and nested-drawer\n * transforms of declarative and manager-opened drawers alike, and the\n * `animate*` keys apply to `ForDrawerManager.open()` only.\n *\n * **Scope caveat (declarative vs. programmatic).** Declarative `[forDrawer]`\n * instances read this token from their own injector, so a scoped\n * `provideForDrawerDefaults` (a lazy route, a component `providers`) reaches\n * every drawer rendered under that scope. `ForDrawerManager` is\n * `providedIn: 'root'` and resolves the token **once, from the root injector**,\n * so by default only application-root `provideForDrawerDefaults` affects\n * `ForDrawerManager.open()` — a scoped override does not. To honor a caller's\n * scope, pass its injector on the `open()` config\n * (`open(Cmp, { injector: inject(Injector) })`): the manager then resolves\n * these defaults from that injector. Either way, a per-`open()` config value\n * always wins.\n */\nexport interface ForDrawerDefaults {\n /** Default `'bottom'`. */\n side: ForDrawerSide;\n /** Default `true`. Modal locks scroll, traps focus, applies `aria-modal`. */\n modal: boolean;\n /** Default `true`. Whether dismiss interactions (Escape, backdrop, swipe) close. */\n dismissible: boolean;\n /**\n * Default `true`. Pointer drag gesture toward the anchored edge dismisses;\n * snap dragging stays live when `false`.\n */\n swipeToDismiss: boolean;\n /**\n * Default `0.25`. Fraction past which a release dismisses instead of\n * snapping back: of the full dimension without snap points, of the lowest\n * snap's extent with them.\n */\n closeThreshold: number;\n /** Default `'first'`. Where to send focus on mount. */\n initialFocus: 'first' | 'container';\n /**\n * Default `true`. Restore focus to the previously focused element on close. Modal mode only: a\n * non-modal surface never moves focus on close.\n */\n returnFocus: boolean;\n /**\n * Default `false`. When `true` the swipe gesture only arms on the\n * registered `[forDrawerHandle]` element instead of the whole surface.\n */\n handleOnly: boolean;\n /**\n * Default `false`. When `true`, an open drawer asks\n * `[forDrawerWrapper]` to scale + translate behind it (the \"scale\n * background\" effect). Suppressed under\n * `prefers-reduced-motion: reduce`.\n */\n scaleBackground: boolean;\n /**\n * Default `true`. When `scaleBackground` is active, paints the body\n * with `scaleBackgroundColor` so the sliver of viewport between the\n * scaled wrapper and the screen edge does not show through.\n */\n setBackgroundColorOnScale: boolean;\n /** Default `0.95`. Scale factor applied to the wrapper. */\n scaleAmount: number;\n /**\n * Default `14`. Vertical translation (in CSS pixels) added to\n * `env(safe-area-inset-top)` while the wrapper is scaled.\n */\n scaleTranslateYpx: number;\n /** Default `8`. Border radius applied to the wrapper while scaled. */\n scaleBorderRadiusPx: number;\n /**\n * Default `'black'`. Body background colour applied while\n * `setBackgroundColorOnScale` is active.\n */\n scaleBackgroundColor: string;\n /**\n * Default `0.93`. Scale factor applied to a parent drawer while a\n * nested child drawer is active. Composes with the wrapper-level\n * `scaleBackground` effect when both opt in. Suppressed under\n * `prefers-reduced-motion: reduce`.\n */\n nestedScaleAmount: number;\n /**\n * Default `8`. Pixels of additional translation applied to a parent\n * drawer while a nested child is active, in the direction *away* from\n * the parent's anchored edge (so a `bottom` drawer slides up by this\n * amount when its child opens).\n */\n nestedTranslateYpx: number;\n /**\n * CSS class applied (via `animate.enter`) to the programmatic overlay host\n * when it mounts, so it plays an enter animation. The class lands on the\n * `[forDrawer]` host that also carries the consumer `class`. No default.\n */\n animateEnter?: string;\n /**\n * CSS class applied to the programmatic overlay host when `close()` is\n * called, kept on the still-mounted host until its CSS animations finish so\n * an exit transition plays before teardown. No default (close is immediate).\n */\n animateLeave?: string;\n /**\n * CSS class applied to the portaled `[forDrawerBackdrop]` when `close()` is\n * called, so the backdrop plays an exit animation in lockstep with the\n * host. Needed because a backdrop declared inside the opened component plays\n * its `animate.enter` on mount but cannot run its template `animate.leave` —\n * Angular does not process leave animations across the `ngComponentOutlet`\n * boundary the manager mounts the component through. No default.\n */\n backdropAnimateLeave?: string;\n}\n\n/**\n * Library fallback for drawer defaults, read at the root injector when no\n * consumer has called `provideForDrawerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DRAWER_FALLBACK_DEFAULTS: ForDrawerDefaults = {\n side: 'bottom',\n modal: true,\n dismissible: true,\n swipeToDismiss: true,\n closeThreshold: 0.25,\n initialFocus: 'first',\n returnFocus: true,\n handleOnly: false,\n scaleBackground: false,\n setBackgroundColorOnScale: true,\n scaleAmount: 0.95,\n scaleTranslateYpx: 14,\n scaleBorderRadiusPx: 8,\n scaleBackgroundColor: 'black',\n nestedScaleAmount: 0.93,\n nestedTranslateYpx: 8,\n};\n\n/** Token holding the resolved drawer defaults for the current scope. */\nexport const FOR_DRAWER_DEFAULTS = new InjectionToken<ForDrawerDefaults>('FOR_DRAWER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_DRAWER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk drawer defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Declarative `[forDrawer]` reads the nearest scope; `ForDrawerManager.open()`\n * (root-provided) only sees an application-root configuration unless the caller\n * passes its `injector` on the `open()` config — see the scope caveat on\n * {@link ForDrawerDefaults}.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDrawerDefaults(\n defaults: Partial<ForDrawerDefaults> | (() => Partial<ForDrawerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DRAWER_DEFAULTS, FOR_DRAWER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant dropdown menus in the surrounding\n * injector scope. Configure with `provideForDropdownMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForDropdownMenuDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the menu is anchored to for dropdowns that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for dropdowns that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the dropdown trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for dropdown menu defaults, read at the root injector when no\n * consumer has called `provideForDropdownMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS: ForDropdownMenuDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved dropdown-menu defaults for the current scope. */\nexport const FOR_DROPDOWN_MENU_DEFAULTS = new InjectionToken<ForDropdownMenuDefaults>(\n 'FOR_DROPDOWN_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk dropdown-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDropdownMenuDefaults(\n defaults: Partial<ForDropdownMenuDefaults> | (() => Partial<ForDropdownMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DROPDOWN_MENU_DEFAULTS, FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import {\n DestroyRef,\n inject,\n InjectionToken,\n type Provider,\n signal,\n type Signal,\n type Type,\n} from '@angular/core';\n\n/**\n * Skip-delay window handle returned by {@link createSkipDelayWindow}.\n */\nexport interface SkipDelayWindow {\n /** True while the window is open, meaning the next open should be instant. */\n readonly active: Signal<boolean>;\n /** Opens the window, replacing any window already pending. */\n start(): void;\n /** Closes the window immediately and drops any pending timer. */\n cancel(): void;\n}\n\n/**\n * A skip-delay window: `active` reads `true` from `start()` until `duration()`\n * milliseconds later (clamped to `>= 0`), or until `cancel()`.\n *\n * `duration` is read each time the window starts, so it may be a signal. The\n * window owns no DI and no teardown: cancel it when its owner is destroyed,\n * e.g. `inject(DestroyRef).onDestroy(() => window.cancel())`.\n */\nexport function createSkipDelayWindow(duration: () => number): SkipDelayWindow {\n const active = signal(false);\n let timer: ReturnType<typeof setTimeout> | null = null;\n\n function cancel(): void {\n if (timer !== null) {\n clearTimeout(timer);\n timer = null;\n }\n active.set(false);\n }\n\n function start(): void {\n cancel();\n active.set(true);\n timer = setTimeout(\n () => {\n timer = null;\n active.set(false);\n },\n Math.max(0, duration()),\n );\n }\n\n return { active: active.asReadonly(), start, cancel };\n}\n\n/**\n * Resolved window duration the {@link SkipDelayCoordinator} reads from its\n * primitive's defaults scope.\n */\nexport interface SkipDelayCoordinatorDefaults {\n /** Resolved skip-delay window (ms) for primitives in this scope. */\n skipDelayDuration: number;\n}\n\n/**\n * The hover timing keys of a primitive's defaults. Setting any of them in a\n * scoped `provideFor<Primitive>Defaults` call starts a new skip-delay window\n * unless the call says otherwise.\n */\nexport interface SkipDelayScopeDefaults extends SkipDelayCoordinatorDefaults {\n /** Resolved default open delay (ms) for primitives in this scope. */\n openDelay: number;\n /** Resolved default close delay (ms) for primitives in this scope. */\n closeDelay: number;\n}\n\n/**\n * Whether a defaults scope joins its parent's skip-delay window (`'inherit'`)\n * or starts its own (`'own'`).\n */\nexport type SkipDelayScope = 'inherit' | 'own';\n\n/**\n * Per-injector-scope skip-delay window shared by Tooltip and Hover-card.\n *\n * Wraps the shared `createSkipDelayWindow` timer core and adds a `DestroyRef`\n * hook that closes the window with the scope. Subclassed once per primitive so\n * each keeps its own DI token (and therefore its own independent skip-delay\n * scope); `[forNavigationMenu]` reuses the same timer core directly, per\n * instance, because its window is not shared across an injector scope. The\n * open and close delays are not part of it: primitives read them from their\n * own defaults token, so a scope can change them while sharing its parent's\n * window.\n *\n * Satisfies the shared hover-intent scheduler's coordinator contract\n * structurally, so the scheduler consumes it directly.\n */\nexport abstract class SkipDelayCoordinator {\n /** Resolved skip-delay window (ms) for the scope that owns this window. */\n readonly skipDelayDuration: number;\n\n readonly #window = createSkipDelayWindow(() => this.skipDelayDuration);\n\n /** True while a peer in this scope just closed and the next open is instant. */\n readonly skipDelay = this.#window.active;\n\n constructor(defaults: SkipDelayCoordinatorDefaults) {\n this.skipDelayDuration = defaults.skipDelayDuration;\n inject(DestroyRef).onDestroy(() => this.cancelSkipDelay());\n }\n\n /** Opens the skip-delay window. Called by primitives when they finish closing. */\n startSkipDelay(): void {\n this.#window.start();\n }\n\n /** Cancels any pending skip-delay window. */\n cancelSkipDelay(): void {\n this.#window.cancel();\n }\n}\n\n/**\n * Builds the providers of a scoped `provideFor<Primitive>Defaults` call for a\n * primitive with a skip-delay window: the merged defaults plus the scope's\n * coordinator.\n *\n * The coordinator is a new window when `scope` is `'own'`, or when `scope`\n * is omitted and the overrides set `openDelay`, `closeDelay` or\n * `skipDelayDuration`. Otherwise it is the parent scope's coordinator, so a\n * scope that only changes placement keeps sharing its parent's window. A\n * scope with no parent coordinator always gets a new one.\n *\n * The overrides are resolved once per injector and read by both providers, so\n * a factory form runs once, and inside an injection context, as\n * `provideDefaults` documents.\n */\nexport function provideSkipDelayScope<D extends SkipDelayScopeDefaults>(\n coordinator: Type<SkipDelayCoordinator>,\n provideDefaults: (overrides: () => Partial<D>) => Provider[],\n defaults: Partial<D> | (() => Partial<D>),\n scope: SkipDelayScope | undefined,\n): Provider[] {\n const overrides = new InjectionToken<Partial<D>>('SKIP_DELAY_SCOPE_OVERRIDES');\n const resolveOverrides = typeof defaults === 'function' ? defaults : (): Partial<D> => defaults;\n return [\n { provide: overrides, useFactory: resolveOverrides },\n ...provideDefaults(() => inject(overrides)),\n {\n provide: coordinator,\n useFactory: (): SkipDelayCoordinator => {\n const parent = ownsSkipDelayWindow(inject(overrides), scope)\n ? null\n : inject(coordinator, { skipSelf: true, optional: true });\n return parent ?? new coordinator();\n },\n },\n ];\n}\n\nfunction ownsSkipDelayWindow(\n overrides: Partial<SkipDelayScopeDefaults>,\n scope: SkipDelayScope | undefined,\n): boolean {\n if (scope !== undefined) {\n return scope === 'own';\n }\n return (\n overrides.openDelay !== undefined ||\n overrides.closeDelay !== undefined ||\n overrides.skipDelayDuration !== undefined\n );\n}\n","import { inject, Injectable, InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\nimport { SkipDelayCoordinator, provideSkipDelayScope } from './skip-delay';\n\n/**\n * Defaults inherited by descendant hover-cards in the surrounding injector\n * scope. Configure with `provideForHoverCardDefaults` at the app root or in\n * any component's `providers`.\n */\nexport interface ForHoverCardDefaults extends AnchoredPositioningSeedDefaults {\n /** Open delay (ms) for cards that don't override `openDelay` locally. */\n openDelay: number;\n /** Close delay (ms) for cards that don't override `closeDelay` locally. */\n closeDelay: number;\n /**\n * Window (ms) after a peer card in this scope closes during which the\n * next open is instant — useful for adjacent profile cards in a list,\n * so cursor movement doesn't feel sluggish.\n */\n skipDelayDuration: number;\n /**\n * Side the card is anchored to for cards that don't override `side`\n * locally. Library fallback `'top'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for cards that don't override `align`\n * locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and card along the main axis for cards that\n * don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for cards that don't override `collisionPadding` locally.\n * Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forHoverCardArrow]` element that far from the\n * edges of the content, for cards that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n}\n\n/**\n * Library fallback for hover-card defaults, read at the root injector when no\n * consumer has called `provideForHoverCardDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_HOVER_CARD_FALLBACK_DEFAULTS: ForHoverCardDefaults = {\n openDelay: 700,\n closeDelay: 300,\n skipDelayDuration: 300,\n side: 'top',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n};\n\n/** Token holding the resolved hover-card defaults for the current scope. */\nexport const FOR_HOVER_CARD_DEFAULTS = new InjectionToken<ForHoverCardDefaults>(\n 'FOR_HOVER_CARD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_HOVER_CARD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * The skip-delay window of a hover-card scope: right after a card in the scope\n * closes, the next one opens without its open delay for `skipDelayDuration`\n * ms. `provideForHoverCardDefaults` decides whether a scope starts its own\n * window or shares its parent's; no tooltip scope ever shares it.\n */\n@Injectable({ providedIn: 'root' })\nexport class HoverCardCoordinator extends SkipDelayCoordinator {\n constructor() {\n super(inject(FOR_HOVER_CARD_DEFAULTS));\n }\n}\n\n/** Options for a `provideForHoverCardDefaults` call. */\nexport interface HoverCardDefaultsOptions {\n /**\n * Whether the scope shares its parent's skip-delay window (`'inherit'`) or\n * starts its own (`'own'`). When omitted, a call that sets `openDelay`,\n * `closeDelay` or `skipDelayDuration` starts its own and any other call\n * shares its parent's. A scope that shares its parent's window keeps the\n * parent's `skipDelayDuration` for it; its own `openDelay` and `closeDelay`\n * apply either way.\n */\n skipDelayScope?: 'inherit' | 'own';\n}\n\n/**\n * Configures forty-cdk hover-card defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root). Peer cards that share a skip-delay window\n * open instantly right after one of them closes; see\n * `HoverCardDefaultsOptions.skipDelayScope` for when a call starts a new\n * window.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForHoverCardDefaults(\n defaults: Partial<ForHoverCardDefaults> | (() => Partial<ForHoverCardDefaults>) = {},\n options: HoverCardDefaultsOptions = {},\n): Provider[] {\n return provideSkipDelayScope(\n HoverCardCoordinator,\n (overrides) =>\n provideDefaults(FOR_HOVER_CARD_DEFAULTS, FOR_HOVER_CARD_FALLBACK_DEFAULTS, overrides),\n defaults,\n options.skipDelayScope,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant listboxes in the surrounding injector\n * scope. Configure with `provideForListboxDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForListboxDefaults {\n /**\n * Single-mode only: when `true`, a keyboard focus move (arrow navigation\n * or a typeahead match) also selects the focused option. APG calls this optional and recommends caution —\n * leave `false` unless the UX truly benefits from selection following\n * focus. A virtualized listbox (`[forListboxVirtualized]` with `totalCount`\n * set) does not inherit it.\n */\n selectionFollowsFocus: boolean;\n /**\n * `[forListboxReorder]` announcement when an option is lifted for reorder.\n * `index` and `total` are 1-based. Override to localize.\n */\n reorderAnnounceLift: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement when the reorder drop position changes.\n * `index` and `total` are 1-based. Override to localize.\n */\n reorderAnnounceMove: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement on a committed reorder drop. `index` and\n * `total` are 1-based. Override to localize.\n */\n reorderAnnounceDrop: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement when a reorder is cancelled. Override to\n * localize.\n */\n reorderAnnounceCancel: (label: string) => string;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for listbox defaults, read at the root injector when no\n * consumer has called `provideForListboxDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n *\n * The reorder formatters mirror the lift / move / drop / cancel cadence the\n * drag-drop and tree coordinators use, so a consumer hears consistent reorder\n * announcements across primitives. Defining them inside the listbox's own\n * defaults (rather than importing `FOR_DRAG_DROP_DEFAULTS`) keeps\n * `[forListboxReorder]` from pulling in the drag-drop primitive.\n */\nexport const FOR_LISTBOX_FALLBACK_DEFAULTS: ForListboxDefaults = {\n selectionFollowsFocus: false,\n reorderAnnounceLift: (label, index, total) => `${label}, lifted. ${index} of ${total}.`,\n reorderAnnounceMove: (label, index, total) => `${label}, moved to position ${index} of ${total}.`,\n reorderAnnounceDrop: (label, index, total) =>\n `${label}, dropped at position ${index} of ${total}.`,\n reorderAnnounceCancel: (label) => `${label}, movement cancelled.`,\n loop: true,\n};\n\n/** Token holding the resolved listbox defaults for the current scope. */\nexport const FOR_LISTBOX_DEFAULTS = new InjectionToken<ForListboxDefaults>('FOR_LISTBOX_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_LISTBOX_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk listbox defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForListboxDefaults(\n defaults: Partial<ForListboxDefaults> | (() => Partial<ForListboxDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_LISTBOX_DEFAULTS, FOR_LISTBOX_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant menus in the surrounding injector\n * scope. Configure with `provideForMenuDefaults` at the app root or in any\n * component's `providers`.\n *\n * They tune the pointer-driven submenu interaction — hovering a\n * `[forMenuSubTrigger]` opens its submenu after `subMenuOpenDelay`, and\n * leaving it (without travelling into the submenu through the pointer-grace\n * \"safe triangle\") closes it after `subMenuCloseDelay` — and the floating-ui\n * placement offsets and collision fallback (`sideOffset` / `collisionPadding` /\n * `fallbackAxisSideDirection`) of both `[forMenuSub]` and the `[forMenu]` root,\n * so they read them from a provider like `[forDropdownMenu]` /\n * `[forContextMenu]` do instead of hardcoding them.\n * Click / Enter / Space / ArrowRight semantics are unaffected by these values.\n */\nexport interface ForMenuDefaults {\n /**\n * Side the menu is anchored to, for both `[forMenuSub]` and the `[forMenu]`\n * root. `null` (the library fallback) keeps each root's own: `'bottom'` for\n * `[forMenu]`, and the writing-direction side for `[forMenuSub]` (`'right'`\n * in LTR, `'left'` in RTL, so a submenu opens away from its parent). Set a\n * value here to pin both roots in the scope to one side.\n */\n side: FloatingSide | null;\n /**\n * Alignment along the chosen `side`, for both `[forMenuSub]` and the\n * `[forMenu]` root. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Delay (ms) before a hovered `[forMenuSubTrigger]` opens its submenu.\n * A short intent delay avoids opening every submenu the pointer merely\n * passes over. Default `100`.\n */\n subMenuOpenDelay: number;\n /**\n * Delay (ms) before a submenu closes once the pointer has left both the\n * sub-trigger and the submenu content (and is not inside the pointer-grace\n * region). Default `100`.\n */\n subMenuCloseDelay: number;\n /**\n * Lifetime (ms) of the pointer-grace \"safe triangle\" armed when the pointer\n * leaves the sub-trigger toward the open submenu. While the pointer stays\n * inside the triangle the close is held off; the window caps how long that\n * hold lasts if the pointer lingers without reaching the content. Default\n * `300`.\n */\n subMenuPointerGraceDuration: number;\n /**\n * Distance (px) between the anchor and the menu content along the resolved\n * `side` axis, for both `[forMenuSub]` and the `[forMenu]` root. Default `0` —\n * a submenu sits flush against its parent item, and a shared menu sits flush\n * against whichever opener fired, which is what a pointer-anchored open wants.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning\n * of `[forMenuSub]` and the `[forMenu]` root. Higher values keep the menu\n * further from the edge when `flip` / `shift` runs. Default `8`.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow, for both `[forMenuSub]` and the\n * `[forMenu]` root. `'none'` (default) keeps only the opposite same-axis\n * placement; `'start'` / `'end'` let a submenu clipped on a narrow viewport\n * drop to a vertical side. Only consulted when `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for menu defaults, read at the root injector when no\n * consumer has called `provideForMenuDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_MENU_FALLBACK_DEFAULTS: ForMenuDefaults = {\n side: null,\n align: 'start',\n subMenuOpenDelay: 100,\n subMenuCloseDelay: 100,\n subMenuPointerGraceDuration: 300,\n sideOffset: 0,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved menu defaults for the current scope. */\nexport const FOR_MENU_DEFAULTS = new InjectionToken<ForMenuDefaults>('FOR_MENU_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_MENU_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk menu defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForMenuDefaults(\n defaults: Partial<ForMenuDefaults> | (() => Partial<ForMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_MENU_DEFAULTS, FOR_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant menubars in the surrounding injector\n * scope. Configure with `provideForMenubarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForMenubarDefaults {\n /**\n * Side a menubar trigger's menu is anchored to, for triggers that don't\n * override `side` locally. `null` (the library fallback) follows the bar's\n * layout: `'bottom'` on a horizontal bar, and on a vertical one the side\n * away from the bar (`'right'` in LTR, `'left'` in RTL). A value set here\n * pins every bar in the scope to that side, whatever its layout.\n */\n side: FloatingSide | null;\n /**\n * Alignment along the chosen `side`, for triggers that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between a menubar trigger and its floating menu along the\n * resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the open menu further from the edge when `flip` /\n * `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled trigger.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for menubar defaults, read at the root injector when no\n * consumer has called `provideForMenubarDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_MENUBAR_FALLBACK_DEFAULTS: ForMenubarDefaults = {\n side: null,\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved menubar defaults for the current scope. */\nexport const FOR_MENUBAR_DEFAULTS = new InjectionToken<ForMenubarDefaults>('FOR_MENUBAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_MENUBAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk menubar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForMenubarDefaults(\n defaults: Partial<ForMenubarDefaults> | (() => Partial<ForMenubarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_MENUBAR_DEFAULTS, FOR_MENUBAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant navigation menus in the surrounding\n * injector scope. Configure with `provideForNavigationMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForNavigationMenuDefaults {\n /** ms before a hover opens an item. */\n openDelay: number;\n /** ms before an item closes after hover leaves. */\n closeDelay: number;\n /**\n * ms after a peer item closed during which the next open is instant.\n * Keeps fluid hover-across-triggers feeling responsive.\n */\n skipDelayDuration: number;\n /**\n * Whether arrow navigation wraps past the first / last enabled trigger.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for navigation menu defaults, read at the root injector when no\n * consumer has called `provideForNavigationMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS: ForNavigationMenuDefaults = {\n openDelay: 200,\n closeDelay: 150,\n skipDelayDuration: 300,\n loop: true,\n};\n\n/** Token holding the resolved navigation-menu defaults for the current scope. */\nexport const FOR_NAVIGATION_MENU_DEFAULTS = new InjectionToken<ForNavigationMenuDefaults>(\n 'FOR_NAVIGATION_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk navigation-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForNavigationMenuDefaults(\n defaults: Partial<ForNavigationMenuDefaults> | (() => Partial<ForNavigationMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_NAVIGATION_MENU_DEFAULTS,\n FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS,\n defaults,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant `[forNumberInput]` controls in the\n * surrounding injector scope. Configure with `provideForNumberInputDefaults`\n * either at the application root or in any component's `providers` array;\n * partial overrides merge with the parent scope.\n */\nexport interface ForNumberInputDefaults {\n /**\n * Multiplier applied to `step` for `PageUp` / `PageDown`. Defaults to `10`,\n * so a step of `1` pages by `10`.\n */\n stepMultiplier: number;\n}\n\n/**\n * Library fallback for number-input defaults, read at the root injector when no\n * consumer has called `provideForNumberInputDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_NUMBER_INPUT_FALLBACK_DEFAULTS: ForNumberInputDefaults = {\n stepMultiplier: 10,\n};\n\n/** Token holding the resolved number-input defaults for the current scope. */\nexport const FOR_NUMBER_INPUT_DEFAULTS = new InjectionToken<ForNumberInputDefaults>(\n 'FOR_NUMBER_INPUT_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_NUMBER_INPUT_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk number-input defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForNumberInputDefaults(\n defaults: Partial<ForNumberInputDefaults> | (() => Partial<ForNumberInputDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_NUMBER_INPUT_DEFAULTS, FOR_NUMBER_INPUT_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant paginations in the surrounding injector\n * scope. Configure with `provideForPaginationDefaults` at the application root\n * or in any component's `providers`; partial overrides merge with the parent.\n */\nexport interface ForPaginationDefaults {\n /** Pages shown on each side of the current page before collapsing to an ellipsis. */\n siblingCount: number;\n /** Pages always shown at each end (first/last). */\n boundaryCount: number;\n}\n\n/**\n * Library fallback for pagination defaults, read at the root injector when no\n * consumer has called `provideForPaginationDefaults`. Exported for the shared\n * defaults-contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_PAGINATION_FALLBACK_DEFAULTS: ForPaginationDefaults = {\n siblingCount: 1,\n boundaryCount: 1,\n};\n\n/** Token holding the resolved pagination defaults for the current scope. */\nexport const FOR_PAGINATION_DEFAULTS = new InjectionToken<ForPaginationDefaults>(\n 'FOR_PAGINATION_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_PAGINATION_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk pagination defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForPaginationDefaults(\n defaults: Partial<ForPaginationDefaults> | (() => Partial<ForPaginationDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_PAGINATION_DEFAULTS, FOR_PAGINATION_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant popovers in the surrounding injector\n * scope. Configure with `provideForPopoverDefaults` at the app root or in\n * any component's `providers`; partial overrides merge with the parent scope.\n */\nexport interface ForPopoverDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the popover is anchored to for popovers that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for popovers that don't override\n * `align` locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and content along the main axis for popovers\n * that don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for popovers that don't override `collisionPadding` locally.\n * Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forPopoverArrow]` element that far from the\n * edges of the content, for popovers that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n}\n\n/**\n * Library fallback for popover defaults, read at the root injector when no\n * consumer has called `provideForPopoverDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_POPOVER_FALLBACK_DEFAULTS: ForPopoverDefaults = {\n side: 'bottom',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n};\n\n/** Token holding the resolved popover defaults for the current scope. */\nexport const FOR_POPOVER_DEFAULTS = new InjectionToken<ForPopoverDefaults>('FOR_POPOVER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_POPOVER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk popover defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForPopoverDefaults(\n defaults: Partial<ForPopoverDefaults> | (() => Partial<ForPopoverDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_POPOVER_DEFAULTS, FOR_POPOVER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant progress bars in the surrounding injector\n * scope. Configure with `provideForProgressDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForProgressDefaults {\n /**\n * Whether to announce completion (or the label) once via `aria-live` on\n * the loading→complete transition. Opt-in — useful on flows where the\n * user explicitly waits for completion (uploads, submissions).\n */\n announceCompletion: boolean;\n /**\n * String announced via `aria-live` on the loading→complete transition when\n * no `aria-valuetext` is available. A screen reader verbalizes it, so\n * override it per scope to localize the announcement; defaults to the\n * English `'Complete'`.\n */\n completeAnnouncement: LocalizableText;\n}\n\n/**\n * Library fallback for progress defaults, read at the root injector when no\n * consumer has called `provideForProgressDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_PROGRESS_FALLBACK_DEFAULTS: ForProgressDefaults = {\n announceCompletion: false,\n completeAnnouncement: 'Complete',\n};\n\n/** Token holding the resolved progress defaults for the current scope. */\nexport const FOR_PROGRESS_DEFAULTS = new InjectionToken<ForProgressDefaults>(\n 'FOR_PROGRESS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_PROGRESS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk progress defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForProgressDefaults(\n defaults: Partial<ForProgressDefaults> | (() => Partial<ForProgressDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_PROGRESS_DEFAULTS, FOR_PROGRESS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant radio groups in the surrounding injector\n * scope. Configure with `provideForRadioGroupDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForRadioGroupDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * radio. Matches the WAI-ARIA Radio Group APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for radio group defaults, read at the root injector when no\n * consumer has called `provideForRadioGroupDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_RADIO_GROUP_FALLBACK_DEFAULTS: ForRadioGroupDefaults = {\n loop: true,\n};\n\n/** Token holding the resolved radio-group defaults for the current scope. */\nexport const FOR_RADIO_GROUP_DEFAULTS = new InjectionToken<ForRadioGroupDefaults>(\n 'FOR_RADIO_GROUP_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_RADIO_GROUP_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk radio-group defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForRadioGroupDefaults(\n defaults: Partial<ForRadioGroupDefaults> | (() => Partial<ForRadioGroupDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_RADIO_GROUP_DEFAULTS, FOR_RADIO_GROUP_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * What a primary-button press on bare scrollbar track does:\n * - `'page'` — step one page toward the press and auto-repeat while held,\n * stopping when the thumb reaches the pointer (platform default).\n * - `'jump'` — centre the thumb on the press point, then scrub while held.\n * - `'none'` — the library ignores track presses entirely.\n */\nexport type ForScrollAreaTrackPress = 'none' | 'page' | 'jump';\n\n/**\n * Defaults inherited by descendant scroll areas in the surrounding injector\n * scope. Configure with `provideForScrollAreaDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForScrollAreaDefaults {\n /**\n * Milliseconds after the most recent scroll before the synthetic\n * scrollbars fade. Applies when `type` is `'scroll'` or `'hover'`.\n */\n scrollHideDelay: number;\n\n /**\n * What a primary-button press on bare scrollbar track does: page toward the\n * press (with auto-repeat while held), jump the thumb to the press point, or\n * nothing at all.\n */\n trackPress: ForScrollAreaTrackPress;\n\n /**\n * Milliseconds a held `trackPress=\"page\"` gesture waits before the first\n * auto-repeat page step.\n */\n trackPressRepeatDelay: number;\n\n /**\n * Milliseconds between auto-repeat page steps of a held `trackPress=\"page\"`\n * gesture, after `trackPressRepeatDelay` has elapsed.\n */\n trackPressRepeatInterval: number;\n}\n\n/**\n * Library fallback for scroll area defaults, read at the root injector when no\n * consumer has called `provideForScrollAreaDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SCROLL_AREA_FALLBACK_DEFAULTS: ForScrollAreaDefaults = {\n scrollHideDelay: 600,\n trackPress: 'page',\n trackPressRepeatDelay: 300,\n trackPressRepeatInterval: 50,\n};\n\n/** Token holding the resolved scroll-area defaults for the current scope. */\nexport const FOR_SCROLL_AREA_DEFAULTS = new InjectionToken<ForScrollAreaDefaults>(\n 'FOR_SCROLL_AREA_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_SCROLL_AREA_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk scroll-area defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForScrollAreaDefaults(\n defaults: Partial<ForScrollAreaDefaults> | (() => Partial<ForScrollAreaDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SCROLL_AREA_DEFAULTS, FOR_SCROLL_AREA_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant search fields in the surrounding injector\n * scope. Configure with `provideForSearchDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForSearchDefaults {\n /**\n * Accessible name for the clear button (`[forSearchClear]`), for clear\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every search clear button in the scope.\n */\n clearAriaLabel: LocalizableText;\n}\n\n/**\n * Library fallback for search defaults, read at the root injector when no\n * consumer has called `provideForSearchDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SEARCH_FALLBACK_DEFAULTS: ForSearchDefaults = {\n clearAriaLabel: 'Clear',\n};\n\n/** Token holding the resolved search defaults for the current scope. */\nexport const FOR_SEARCH_DEFAULTS = new InjectionToken<ForSearchDefaults>('FOR_SEARCH_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SEARCH_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk search defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSearchDefaults(\n defaults: Partial<ForSearchDefaults> | (() => Partial<ForSearchDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SEARCH_DEFAULTS, FOR_SEARCH_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant selects in the surrounding injector\n * scope. Configure with `provideForSelectDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForSelectDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the listbox is anchored to for selects that don't override `side`\n * locally. Ignored under `position=\"item-aligned\"`. Library fallback\n * `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for selects that don't override `align`\n * locally. Ignored under `position=\"item-aligned\"`. Library fallback\n * `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the select trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n /**\n * Single-mode only: when `true`, a keyboard focus move (arrow navigation or a\n * typeahead match) also selects the focused option while the listbox is open.\n * APG calls this optional and recommends caution. A virtualized select\n * (`[forSelectVirtualized]` with `totalCount` set) does not inherit it.\n */\n selectionFollowsFocus: boolean;\n}\n\n/**\n * Library fallback for select defaults, read at the root injector when no\n * consumer has called `provideForSelectDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SELECT_FALLBACK_DEFAULTS: ForSelectDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n loop: true,\n selectionFollowsFocus: false,\n};\n\n/** Token holding the resolved select defaults for the current scope. */\nexport const FOR_SELECT_DEFAULTS = new InjectionToken<ForSelectDefaults>('FOR_SELECT_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SELECT_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk select defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSelectDefaults(\n defaults: Partial<ForSelectDefaults> | (() => Partial<ForSelectDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SELECT_DEFAULTS, FOR_SELECT_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant sliders in the surrounding injector\n * scope. Configure with `provideForSliderDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForSliderDefaults {\n /**\n * Multiplier applied to `step` for `PageUp` / `PageDown`. Defaults to `10`,\n * so a step of `1` pages by `10`.\n */\n stepMultiplier: number;\n}\n\n/**\n * Library fallback for slider defaults, read at the root injector when no\n * consumer has called `provideForSliderDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SLIDER_FALLBACK_DEFAULTS: ForSliderDefaults = {\n stepMultiplier: 10,\n};\n\n/** Token holding the resolved slider defaults for the current scope. */\nexport const FOR_SLIDER_DEFAULTS = new InjectionToken<ForSliderDefaults>('FOR_SLIDER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SLIDER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk slider defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSliderDefaults(\n defaults: Partial<ForSliderDefaults> | (() => Partial<ForSliderDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SLIDER_DEFAULTS, FOR_SLIDER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/** Activation timing for interactive-mode arrow navigation. */\nexport type StepperActivationMode = 'automatic' | 'manual';\n\n/**\n * Defaults inherited by descendant steppers in the surrounding injector scope.\n * Configure with `provideForStepperDefaults` either at the application root or\n * in any component's `providers` array; partial overrides merge with the parent\n * scope.\n */\nexport interface ForStepperDefaults {\n /**\n * `'manual'` (default): arrow navigation only moves focus; the user must\n * press Space / Enter to activate. Recommended for wizards where step\n * activation often triggers validation. `'automatic'`: arrow navigation moves\n * focus AND selects the step.\n */\n activationMode: StepperActivationMode;\n /**\n * Whether arrow navigation wraps around past the first / last trigger.\n */\n loop: boolean;\n /**\n * Builds the `aria-valuetext` for `[forStepperProgress]` on the `'index'`\n * basis (default `\"Step N of M\"`). Override to localize centrally. `current`\n * is the 1-based current step and `total` is the step count.\n */\n stepValueText: (current: number, total: number) => string;\n /**\n * Builds the `aria-valuetext` for `[forStepperProgress]` on the `'completed'`\n * basis (default `\"P% complete\"`). Override to localize centrally. `percent`\n * is the whole-number completion percent in `[0, 100]`.\n */\n progressValueText: (percent: number) => string;\n}\n\n/**\n * Library fallback for stepper defaults, read at the root injector when no\n * consumer has called `provideForStepperDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_STEPPER_FALLBACK_DEFAULTS: ForStepperDefaults = {\n activationMode: 'manual',\n loop: true,\n stepValueText: (current, total) => `Step ${current} of ${total}`,\n progressValueText: (percent) => `${percent}% complete`,\n};\n\n/** Token holding the resolved stepper defaults for the current scope. */\nexport const FOR_STEPPER_DEFAULTS = new InjectionToken<ForStepperDefaults>('FOR_STEPPER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_STEPPER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk stepper defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForStepperDefaults(\n defaults: Partial<ForStepperDefaults> | (() => Partial<ForStepperDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_STEPPER_DEFAULTS, FOR_STEPPER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\nexport type TabsActivationMode = 'automatic' | 'manual';\n\n/**\n * Defaults inherited by descendant tabs in the surrounding injector scope.\n * Configure with `provideForTabsDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForTabsDefaults {\n /**\n * `'automatic'` (default): arrow navigation moves focus AND selects the\n * new tab. Use when panel content is cheap to render. `'manual'`: arrow\n * navigation only moves focus; the user must press Space / Enter to\n * activate. Use when panel content is expensive.\n */\n activationMode: TabsActivationMode;\n /**\n * Whether arrow navigation wraps around past the first / last trigger.\n * Matches the WAI-ARIA Tabs APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for tabs defaults, read at the root injector when no\n * consumer has called `provideForTabsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TABS_FALLBACK_DEFAULTS: ForTabsDefaults = {\n activationMode: 'automatic',\n loop: true,\n};\n\n/** Token holding the resolved tabs defaults for the current scope. */\nexport const FOR_TABS_DEFAULTS = new InjectionToken<ForTabsDefaults>('FOR_TABS_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TABS_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk tabs defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTabsDefaults(\n defaults: Partial<ForTabsDefaults> | (() => Partial<ForTabsDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TABS_DEFAULTS, FOR_TABS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, TimeSegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForTimeFieldSegmentLabels = Partial<Record<TimeSegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forTimeField]` controls in the\n * surrounding injector scope. Configure with `provideForTimeFieldDefaults` at\n * the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForTimeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<TimeSegmentType, LocalizableText>>;\n /**\n * 12- or 24-hour cycle for fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForTimeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_TIME_FIELD_SEGMENT_LABELS: Readonly<Record<TimeSegmentType, string>> = {\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for time-field defaults, read at the root injector when no\n * consumer has called `provideForTimeFieldDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TIME_FIELD_FALLBACK_DEFAULTS: ForTimeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_TIME_FIELD_SEGMENT_LABELS,\n placeholder: {},\n hourCycle: null,\n};\n\n/** Token holding the resolved time-field defaults for the current scope. */\nexport const FOR_TIME_FIELD_DEFAULTS = new InjectionToken<ForTimeFieldDefaults>(\n 'FOR_TIME_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time-field defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimeFieldDefaults(\n defaults: Partial<ForTimeFieldDefaults> | (() => Partial<ForTimeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TIME_FIELD_DEFAULTS, FOR_TIME_FIELD_FALLBACK_DEFAULTS, defaults, [\n 'segmentLabels',\n 'placeholder',\n ]);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant time pickers in the surrounding injector\n * scope. Configure with `provideForTimePickerDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the listbox is anchored to for time pickers that don't override\n * `side` locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for time pickers that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the time picker trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the floating content further from the edge when\n * `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * 12- or 24-hour cycle for pickers that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for time picker defaults, read at the root injector when no\n * consumer has called `provideForTimePickerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TIME_PICKER_FALLBACK_DEFAULTS: ForTimePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n hourCycle: null,\n loop: true,\n};\n\n/** Token holding the resolved time picker defaults for the current scope. */\nexport const FOR_TIME_PICKER_DEFAULTS = new InjectionToken<ForTimePickerDefaults>(\n 'FOR_TIME_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time picker defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimePickerDefaults(\n defaults: Partial<ForTimePickerDefaults> | (() => Partial<ForTimePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TIME_PICKER_DEFAULTS, FOR_TIME_PICKER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, TimeSegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForTimeRangeFieldSegmentLabels = Partial<Record<TimeSegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forTimeRangeField]` controls in the\n * surrounding injector scope. Configure with `provideForTimeRangeFieldDefaults`\n * at the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimeRangeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForTimeRangeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<TimeSegmentType, LocalizableText>>;\n /**\n * Accessible name announced (via `aria-label`) for the start endpoint group,\n * used when `[forTimeRangeFieldStart]` has no explicit `ariaLabel`.\n */\n startAriaLabel: LocalizableText;\n /**\n * Accessible name announced (via `aria-label`) for the end endpoint group,\n * used when `[forTimeRangeFieldEnd]` has no explicit `ariaLabel`.\n */\n endAriaLabel: LocalizableText;\n /**\n * 12- or 24-hour cycle for range fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForTimeRangeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_TIME_RANGE_FIELD_SEGMENT_LABELS: Readonly<Record<TimeSegmentType, string>> = {\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for time-range-field defaults, read at the root injector when\n * no consumer has called `provideForTimeRangeFieldDefaults`. Exported for the\n * shared defaults contract spec; not re-exported from the primitive's public\n * entry.\n */\nexport const FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS: ForTimeRangeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_TIME_RANGE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n startAriaLabel: 'Start time',\n endAriaLabel: 'End time',\n hourCycle: null,\n};\n\n/** Token holding the resolved time-range-field defaults for the current scope. */\nexport const FOR_TIME_RANGE_FIELD_DEFAULTS = new InjectionToken<ForTimeRangeFieldDefaults>(\n 'FOR_TIME_RANGE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time-range-field defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimeRangeFieldDefaults(\n defaults: Partial<ForTimeRangeFieldDefaults> | (() => Partial<ForTimeRangeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_TIME_RANGE_FIELD_DEFAULTS,\n FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS,\n defaults,\n ['segmentLabels', 'placeholder'],\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Motion applied to the toasts a mutation of the stack pushes to a new\n * position. Set it on `[forToastViewport]` via `[stackShift]`, or per scope\n * with `provideForToastDefaults({ stackShift })`. The glide is played on\n * `translate`, leaving `transform` to the consumer.\n *\n * `animate.enter` / `animate.leave` cover the row that mounts or unmounts;\n * this covers its siblings, which reflow to their new spot in a single frame\n * with no property of their own for CSS to transition.\n */\nexport interface ForToastStackShift {\n /** Duration in ms of the glide to the new position. Must be greater than `0`. */\n duration: number;\n /** Easing of the glide, as a CSS easing function. Defaults to `'linear'`. */\n easing?: string;\n}\n\n/**\n * Defaults inherited by toasts in the surrounding injector scope. Provide via\n * `provideForToastDefaults({ duration: 4000, hotkey: 'F6' })` in your app\n * config to override library defaults; the token always resolves to a\n * fully-populated value, so every key is required here and the provider takes\n * a `Partial`.\n */\nexport interface ForToastDefaults {\n /** Default `5000`. How long a toast stays up before auto-dismissing, in ms. */\n duration: number;\n /** Default `'F6'`. Key that moves focus to the first rendered toast. */\n hotkey: string;\n /** Default `Infinity`. How many toasts one viewport renders at a time. */\n maxVisible: number;\n /**\n * Accessible name for the viewport region (`[forToastViewport]`,\n * `role=\"region\"`), for viewports that don't set `[ariaLabel]` locally.\n * Localize it here to translate every toast viewport in the scope.\n */\n viewportAriaLabel: LocalizableText;\n /**\n * Accessible name for the close button (`[forToastClose]`), for close\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every toast close button in the scope.\n */\n closeAriaLabel: LocalizableText;\n /**\n * How toast viewports in this scope behave over an open modal `ForDialog` /\n * `ForDrawer`. Default `'peer'`.\n *\n * - `'peer'` — the viewport host-binds `data-for-modal-exempt`, so an open\n * modal leaves it out of the inert pass and never treats a click on a\n * toast as `pointerDownOutside`. A confirmation / error toast stays\n * interactive over the modal and clicking it does not dismiss the modal.\n * - `'inert'` — the viewport drops the marker, so the modal inerts it like\n * any other background sibling and a click on a toast dismisses the modal.\n * Use it for low-priority / system toasts that should sit behind a\n * critical dialog rather than steal attention from it.\n */\n overModal: 'peer' | 'inert';\n /**\n * Default `null`. Motion applied to the toasts a mutation of the stack\n * pushes to a new position, for viewports that don't set `[stackShift]`\n * locally. `null` keeps the reflow synchronous; a bare number is shorthand\n * for `{ duration }`.\n */\n stackShift: ForToastStackShift | number | null;\n}\n\n/**\n * Library fallback for toast defaults, read at the root injector when no\n * consumer has called `provideForToastDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOAST_FALLBACK_DEFAULTS: ForToastDefaults = {\n duration: 5000,\n hotkey: 'F6',\n maxVisible: Infinity,\n viewportAriaLabel: 'Notifications',\n closeAriaLabel: 'Close',\n overModal: 'peer',\n stackShift: null,\n};\n\n/**\n * Token holding the resolved toast defaults for the current injector scope.\n * The library always provides a fully-populated value (the fallback at the\n * root, or the merged result of the nearest `provideForToastDefaults`).\n */\nexport const FOR_TOAST_DEFAULTS = new InjectionToken<ForToastDefaults>('FOR_TOAST_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOAST_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toast defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToastDefaults(\n defaults: Partial<ForToastDefaults> | (() => Partial<ForToastDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOAST_DEFAULTS, FOR_TOAST_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant toggle groups in the surrounding injector\n * scope. Configure with `provideForToggleDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForToggleDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * toggle-group item. Mirrors `ForRadioGroup`'s `loop` default.\n */\n loop: boolean;\n /**\n * Whether a single-mode toggle group lets the user clear its selection by\n * pressing the pressed item. Multi-mode groups ignore it.\n */\n deselectable: boolean;\n}\n\n/**\n * Library fallback for toggle defaults, read at the root injector when no\n * consumer has called `provideForToggleDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOGGLE_FALLBACK_DEFAULTS: ForToggleDefaults = {\n loop: true,\n deselectable: true,\n};\n\n/** Token holding the resolved toggle defaults for the current scope. */\nexport const FOR_TOGGLE_DEFAULTS = new InjectionToken<ForToggleDefaults>('FOR_TOGGLE_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOGGLE_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toggle defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToggleDefaults(\n defaults: Partial<ForToggleDefaults> | (() => Partial<ForToggleDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOGGLE_DEFAULTS, FOR_TOGGLE_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant toolbars in the surrounding injector\n * scope. Configure with `provideForToolbarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForToolbarDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * item. Matches the WAI-ARIA Toolbar APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for toolbar defaults, read at the root injector when no\n * consumer has called `provideForToolbarDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOOLBAR_FALLBACK_DEFAULTS: ForToolbarDefaults = {\n loop: true,\n};\n\n/** Token holding the resolved toolbar defaults for the current scope. */\nexport const FOR_TOOLBAR_DEFAULTS = new InjectionToken<ForToolbarDefaults>('FOR_TOOLBAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOOLBAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toolbar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToolbarDefaults(\n defaults: Partial<ForToolbarDefaults> | (() => Partial<ForToolbarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOOLBAR_DEFAULTS, FOR_TOOLBAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { inject, Injectable, InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\nimport { SkipDelayCoordinator, provideSkipDelayScope } from './skip-delay';\n\n/**\n * Defaults that descendant tooltips inherit from their injector scope.\n * Configure with `provideForTooltipDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForTooltipDefaults extends AnchoredPositioningSeedDefaults {\n /** Open delay (ms) for tooltips that don't override `openDelay` locally. */\n openDelay: number;\n /** Close delay (ms) for tooltips that don't override `closeDelay` locally. */\n closeDelay: number;\n /**\n * Window (ms) after a peer tooltip in this scope closes during which\n * the next open is instant — keeps toolbar-style tooltips from feeling\n * sluggish on cursor movement between targets.\n */\n skipDelayDuration: number;\n /**\n * Side the tooltip is anchored to for tooltips that don't override\n * `side` locally. Library fallback `'top'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for tooltips that don't override\n * `align` locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and content along the main axis for tooltips\n * that don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for tooltips that don't override `collisionPadding`\n * locally. Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forTooltipArrow]` element that far from the\n * edges of the content, for tooltips that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n /**\n * Whether tooltips show only when the trigger's own text is truncated\n * (`scrollWidth > clientWidth`), for tooltips that don't override\n * `showOnOverflow` locally. Library fallback `false`.\n */\n showOnOverflow: boolean;\n /**\n * Whether the pointer may move into the content without dismissing the\n * tooltip, for tooltips that don't override `hoverableContent` locally.\n * Library fallback `true`, which satisfies the WCAG 2.1 SC 1.4.13\n * \"Hoverable\" requirement by default; opt out per scope with\n * `provideForTooltipDefaults({ hoverableContent: false })`.\n */\n hoverableContent: boolean;\n}\n\n/**\n * Library fallback for tooltip defaults, read at the root injector when no\n * consumer has called `provideForTooltipDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOOLTIP_FALLBACK_DEFAULTS: ForTooltipDefaults = {\n openDelay: 700,\n closeDelay: 300,\n skipDelayDuration: 300,\n side: 'top',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n showOnOverflow: false,\n hoverableContent: true,\n};\n\n/** Token holding the resolved tooltip defaults for the current scope. */\nexport const FOR_TOOLTIP_DEFAULTS = new InjectionToken<ForTooltipDefaults>('FOR_TOOLTIP_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOOLTIP_FALLBACK_DEFAULTS,\n});\n\n/**\n * The skip-delay window of a tooltip scope: right after a tooltip in the scope\n * closes, the next one opens without its open delay for `skipDelayDuration`\n * ms. `provideForTooltipDefaults` decides whether a scope starts its own\n * window or shares its parent's; no hover-card scope ever shares it.\n */\n@Injectable({ providedIn: 'root' })\nexport class TooltipCoordinator extends SkipDelayCoordinator {\n constructor() {\n super(inject(FOR_TOOLTIP_DEFAULTS));\n }\n}\n\n/** Options for a `provideForTooltipDefaults` call. */\nexport interface TooltipDefaultsOptions {\n /**\n * Whether the scope shares its parent's skip-delay window (`'inherit'`) or\n * starts its own (`'own'`). When omitted, a call that sets `openDelay`,\n * `closeDelay` or `skipDelayDuration` starts its own and any other call\n * shares its parent's. A scope that shares its parent's window keeps the\n * parent's `skipDelayDuration` for it; its own `openDelay` and `closeDelay`\n * apply either way.\n */\n skipDelayScope?: 'inherit' | 'own';\n}\n\n/**\n * Configures forty-cdk tooltip defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root). Peer tooltips that share a skip-delay window\n * open instantly right after one of them closes; tooltips in scopes with\n * different windows don't. See `TooltipDefaultsOptions.skipDelayScope` for\n * when a call starts a new window.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n *\n * @example\n * ```ts\n * // application-level\n * bootstrapApplication(App, {\n * providers: [provideForTooltipDefaults({ openDelay: 500 })],\n * });\n *\n * // component-level override (e.g. a toolbar with its own cadence and window)\n * @Component({\n * providers: [provideForTooltipDefaults({ skipDelayDuration: 100 })],\n * ...\n * })\n * class Toolbar {}\n *\n * // placement-only override, still sharing the application's window\n * @Component({\n * providers: [provideForTooltipDefaults({ side: 'right' })],\n * ...\n * })\n * class Sidebar {}\n * ```\n */\nexport function provideForTooltipDefaults(\n defaults: Partial<ForTooltipDefaults> | (() => Partial<ForTooltipDefaults>) = {},\n options: TooltipDefaultsOptions = {},\n): Provider[] {\n return provideSkipDelayScope(\n TooltipCoordinator,\n (overrides) => provideDefaults(FOR_TOOLTIP_DEFAULTS, FOR_TOOLTIP_FALLBACK_DEFAULTS, overrides),\n defaults,\n options.skipDelayScope,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant trees in the surrounding injector scope.\n * Configure with `provideForTreeDefaults` either at the application root or in\n * any component's `providers` array; partial overrides merge with the parent\n * scope.\n */\nexport interface ForTreeDefaults {\n /**\n * Single-mode only: when `true`, every keyboard focus move (arrow\n * navigation, entering a child, leaving to the parent, a typeahead match)\n * also selects the focused node. A tree with `multiple` or\n * `selectionMode=\"checkbox\"` ignores it, so a scope default never replaces\n * its checked set, and a virtualized tree (`[forTreeVirtualized]` with\n * `totalCount` set) does not inherit it. APG calls this optional and recommends\n * caution — leave `false` unless the UX truly benefits from selection following focus.\n */\n selectionFollowsFocus: boolean;\n /**\n * `[forTreeNodeDrag]` announcement when a node is picked up for drag\n * (assertive). Override to localize.\n */\n dragAnnounceLift: (label: string) => string;\n /**\n * `[forTreeNodeDrag]` announcement on each intermediate move while a node is\n * lifted (polite). `position` / `total` are 1-based; `parentLabel` is `null`\n * at the root, so the consumer phrases the root-vs-parent distinction in\n * their own language. `total` is `null` for a drop into a collapsed parent,\n * whose children are not rendered and cannot be counted. Override to localize.\n */\n dragAnnounceMove: (\n label: string,\n parentLabel: string | null,\n position: number,\n total: number | null,\n ) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a node is committed to its new\n * position (assertive). `position` / `total` are 1-based; `parentLabel` is\n * `null` at the root, and `total` is `null` for a drop into a collapsed\n * parent. Override to localize.\n */\n dragAnnounceDrop: (\n label: string,\n parentLabel: string | null,\n position: number,\n total: number | null,\n ) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a lift is cancelled and the node\n * returns to its origin (assertive). Override to localize.\n */\n dragAnnounceCancel: (label: string) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a `canDrop` veto rejects the\n * attempted drop (assertive). Override to localize.\n */\n dragAnnounceInvalid: (label: string) => string;\n}\n\n/**\n * Library fallback for tree defaults, read at the root injector when no\n * consumer has called `provideForTreeDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n *\n * The drag announcement formatters mirror the lift / move / drop / cancel\n * cadence the drag-drop and listbox coordinators use, so a consumer hears\n * consistent reorder announcements across primitives. Defining them inside the\n * tree's own defaults (rather than importing `FOR_DRAG_DROP_DEFAULTS` /\n * `FOR_LISTBOX_DEFAULTS`) keeps `[forTreeNodeDrag]` from pulling in those\n * primitives.\n */\nexport const FOR_TREE_FALLBACK_DEFAULTS: ForTreeDefaults = {\n selectionFollowsFocus: false,\n dragAnnounceLift: (label) =>\n `Picked up ${label}. Use arrow keys to move, Space to drop, Escape to cancel.`,\n dragAnnounceMove: (label, parentLabel, position, total) => {\n const parentPart = parentLabel ? `under ${parentLabel}, ` : 'at root, ';\n const totalPart = total === null ? '' : ` of ${total}`;\n return `${label}: ${parentPart}position ${position}${totalPart}.`;\n },\n dragAnnounceDrop: (label, parentLabel, position, total) => {\n const parentPart = parentLabel ? `under ${parentLabel}, ` : 'at root, ';\n const totalPart = total === null ? '' : ` of ${total}`;\n return `Dropped ${label} ${parentPart}position ${position}${totalPart}.`;\n },\n dragAnnounceCancel: (label) => `Cancelled. ${label} returned to its original position.`,\n dragAnnounceInvalid: (label) => `Cannot drop ${label} here.`,\n};\n\n/** Token holding the resolved tree defaults for the current scope. */\nexport const FOR_TREE_DEFAULTS = new InjectionToken<ForTreeDefaults>('FOR_TREE_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TREE_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk tree defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTreeDefaults(\n defaults: Partial<ForTreeDefaults> | (() => Partial<ForTreeDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TREE_DEFAULTS, FOR_TREE_FALLBACK_DEFAULTS, defaults);\n}\n"],"mappings":";;AAyCA,SAAgB,gBACd,OACA,UACA,YAA6C,CAAA,GAC7C,aAAmC,CAAA,GAAE;CAErC,OAAO,CACL;EACE,SAAS;EACT,aAAa,WACX,cACE,OAAO,cAAc,aAAc,UAA8B,IAAK,WACtE,QACA,UACA,UAAU;EAEd,MAAM,CAAC;GAAC,IAAI,SAAQ;GAAI,IAAI,SAAQ;GAAI;EAAK,CAAC;CAC/C,CACF;AACH;AAEA,SAAS,cACP,WACA,QACA,UACA,YAAgC;CAEhC,MAAM,SAAS,EAAE,GAAG,SAAQ;CAG5B,IAAI,QACF,KAAK,MAAM,OAAO,OAAO,KAAK,MAAM,GAAkB;EACpD,MAAM,QAAQ,OAAO;EACrB,IAAI,UAAU,QACZ,OAAO,OAAO,WAAW,SAAS,GAAG,IAChC,YAAY,OAAO,MAAM,KAAK,IAC/B;CAER;CAGF,KAAK,MAAM,OAAO,OAAO,KAAK,SAAS,GAAkB;EACvD,MAAM,QAAQ,UAAU;EACxB,IAAI,UAAU,QACZ,OAAO,OAAO,WAAW,SAAS,GAAG,IAChC,YAAY,OAAO,MAAM,KAAK,IAC/B;CAER;CACA,OAAO;AACT;AAEA,SAAS,YAA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;;;;AAsDlC,SAAgB,0BACd,WAA8E,CAAA,GAC9E,UAAkC,CAAA,GAAE;CAEpC,OAAO,sBACL,qBACC,cAAc,gBAAgB,sBAAsB,+BAA+B,SAAS,GAC7F,UACA,QAAQ,cAAc;AAE1B;AC5FA,MAAa,6BAA8C;CACzD,uBAAuB;CACvB,mBAAmB,UACjB,aAAa,MAAK;CACpB,mBAAmB,OAAO,aAAa,UAAU,UAAS;EAGxD,OAAO,GAAG,MAAK,IAFI,cAAc,SAAS,YAAW,MAAO,YAE9B,WAAY,WADxB,UAAU,OAAO,KAAK,OAAO,QACe;CAChE;CACA,mBAAmB,OAAO,aAAa,UAAU,UAAS;EAGxD,OAAO,WAAW,MAAK,GAFJ,cAAc,SAAS,YAAW,MAAO,YAEvB,WAAY,WAD/B,UAAU,OAAO,KAAK,OAAO,QACsB;CACvE;CACA,qBAAqB,UAAU,cAAc,MAAK;CAClD,sBAAsB,UAAU,eAAe,MAAK;AACrD;AAGD,MAAa,oBAAoB,IAAI,eAAgC,qBAAqB;CACxF,YAAY;CACZ,eAAe;AAChB,CAAA;AAWD,SAAgB,uBACd,WAAwE,CAAA,GAAE;CAE1E,OAAO,gBAAgB,mBAAmB,4BAA4B,QAAQ;AAChF"}
|
|
1
|
+
{"version":3,"file":"forty-cdk-defaults.mjs","names":[],"sources":["../../../projects/forty-cdk/defaults/src/defaults.ts","../../../projects/forty-cdk/defaults/src/avatar-defaults.ts","../../../projects/forty-cdk/defaults/src/breadcrumbs-defaults.ts","../../../projects/forty-cdk/defaults/src/breakpoints-defaults.ts","../../../projects/forty-cdk/defaults/src/calendar-defaults.ts","../../../projects/forty-cdk/defaults/src/carousel-defaults.ts","../../../projects/forty-cdk/defaults/src/combobox-defaults.ts","../../../projects/forty-cdk/defaults/src/context-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/date-field-defaults.ts","../../../projects/forty-cdk/defaults/src/date-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/date-range-field-defaults.ts","../../../projects/forty-cdk/defaults/src/date-range-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/dialog-defaults.ts","../../../projects/forty-cdk/defaults/src/drag-drop-defaults.ts","../../../projects/forty-cdk/defaults/src/drawer-defaults.ts","../../../projects/forty-cdk/defaults/src/dropdown-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/skip-delay.ts","../../../projects/forty-cdk/defaults/src/hover-card-defaults.ts","../../../projects/forty-cdk/defaults/src/listbox-defaults.ts","../../../projects/forty-cdk/defaults/src/menu-defaults.ts","../../../projects/forty-cdk/defaults/src/menubar-defaults.ts","../../../projects/forty-cdk/defaults/src/navigation-menu-defaults.ts","../../../projects/forty-cdk/defaults/src/number-input-defaults.ts","../../../projects/forty-cdk/defaults/src/pagination-defaults.ts","../../../projects/forty-cdk/defaults/src/popover-defaults.ts","../../../projects/forty-cdk/defaults/src/progress-defaults.ts","../../../projects/forty-cdk/defaults/src/radio-group-defaults.ts","../../../projects/forty-cdk/defaults/src/scroll-area-defaults.ts","../../../projects/forty-cdk/defaults/src/search-defaults.ts","../../../projects/forty-cdk/defaults/src/select-defaults.ts","../../../projects/forty-cdk/defaults/src/slider-defaults.ts","../../../projects/forty-cdk/defaults/src/stepper-defaults.ts","../../../projects/forty-cdk/defaults/src/tabs-defaults.ts","../../../projects/forty-cdk/defaults/src/time-field-defaults.ts","../../../projects/forty-cdk/defaults/src/time-picker-defaults.ts","../../../projects/forty-cdk/defaults/src/time-range-field-defaults.ts","../../../projects/forty-cdk/defaults/src/toast-defaults.ts","../../../projects/forty-cdk/defaults/src/toggle-defaults.ts","../../../projects/forty-cdk/defaults/src/toolbar-defaults.ts","../../../projects/forty-cdk/defaults/src/tooltip-defaults.ts","../../../projects/forty-cdk/defaults/src/tree-defaults.ts"],"sourcesContent":["import { type InjectionToken, Optional, type Provider, SkipSelf } from '@angular/core';\n\n/**\n * Builds the providers of a `provideFor<X>Defaults(overrides)` call. Every\n * defaults pair in the library routes its provider through this one merge, so\n * the inheritance semantics stay identical everywhere — the convention is\n * documented in `CLAUDE.md` under \"Defaults providers\".\n *\n * Each pair declares its own token as a top-level\n * `new InjectionToken<D>(name, { providedIn: 'root', factory: () => fallback })`,\n * the one shape bundlers drop when it is unused. A helper call returning the\n * token would be kept as a side effect, so importing any one pair from\n * `forty-cdk/defaults` would keep all of them.\n *\n * - Reads the parent value of the same token via\n * `[[new SkipSelf(), new Optional(), TOKEN]]` so each call inherits\n * ancestor scopes.\n * - Per key, the value present-and-not-`undefined` in `overrides` wins, else\n * the parent's value (when not `undefined`), else the library `fallback`.\n * Only `undefined` is treated as \"key omitted\" — a deliberate `null` (or any\n * other defined value) in `overrides` or `parent` is a real override and is\n * kept. The parent's already-merged value beats the library fallback, which\n * means a component-level `provideFor<X>Defaults({ a: 1 })` overlaid on an\n * app-level `provideFor<X>Defaults({ a: 0, b: 2 })` resolves to\n * `{ a: 1, b: 2 }` — partial overrides only touch the keys they list.\n * - `overrides` may instead be a function returning them. It is called inside\n * the provider factory, so it can `inject()`, once per injector that\n * resolves the token.\n * - A key listed in `recordKeys` holds a per-part record (`segmentLabels`,\n * `placeholder`) and merges one level deeper: per entry, the same\n * overrides-over-parent-over-fallback order applies, so a scope overriding\n * one entry keeps every entry an ancestor scope set.\n * - Returns a `Provider[]` so callers can spread additional providers\n * (e.g. a per-scope coordinator class) into the same array.\n *\n * @param token The pair's token, whose root factory returns `fallback`.\n * @param fallback Library defaults, merged under every scope. Returned by\n * reference at the root, so don't mutate it.\n * @param overrides The scope's partial overrides, or a factory building them.\n * @param recordKeys Keys whose values are records merged entry by entry.\n */\nexport function provideDefaults<D extends object>(\n token: InjectionToken<D>,\n fallback: D,\n overrides: Partial<D> | (() => Partial<D>) = {},\n recordKeys: readonly (keyof D)[] = [],\n): Provider[] {\n return [\n {\n provide: token,\n useFactory: (parent: D | null): D =>\n mergeDefaults(\n typeof overrides === 'function' ? (overrides as () => Partial<D>)() : overrides,\n parent,\n fallback,\n recordKeys,\n ),\n deps: [[new SkipSelf(), new Optional(), token]],\n },\n ];\n}\n\nfunction mergeDefaults<D extends object>(\n overrides: Partial<D>,\n parent: D | null,\n fallback: D,\n recordKeys: readonly (keyof D)[],\n): D {\n const result = { ...fallback } as D;\n // Parent already merged its own overrides over the fallback, so it wins\n // over the library fallback for any key it owns.\n if (parent) {\n for (const key of Object.keys(parent) as (keyof D)[]) {\n const value = parent[key];\n if (value !== undefined) {\n result[key] = recordKeys.includes(key)\n ? (mergeRecord(result[key], value) as D[keyof D])\n : value;\n }\n }\n }\n // Overrides win over both parent and fallback for the keys they list.\n for (const key of Object.keys(overrides) as (keyof D)[]) {\n const value = overrides[key] as D[keyof D] | undefined;\n if (value !== undefined) {\n result[key] = recordKeys.includes(key)\n ? (mergeRecord(result[key], value) as D[keyof D])\n : value;\n }\n }\n return result;\n}\n\nfunction mergeRecord(base: unknown, layer: unknown): Record<string, unknown> {\n const merged: Record<string, unknown> = { ...(base as object) };\n for (const [entry, value] of Object.entries(layer as object)) {\n if (value !== undefined) {\n merged[entry] = value;\n }\n }\n return merged;\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant avatars in the surrounding injector\n * scope. Configure with `provideForAvatarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForAvatarDefaults {\n /**\n * Milliseconds to defer the fallback for fast loads, avoiding a brief\n * \"initials → image\" flicker. Set to `0` to show immediately during\n * `idle` / `loading`, or to e.g. `500` to skip rendering during quick\n * cached loads. `error` always shows the fallback immediately.\n */\n fallbackDelayMs: number;\n}\n\n/**\n * Library fallback for avatar defaults, read at the root injector when no\n * consumer has called `provideForAvatarDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_AVATAR_FALLBACK_DEFAULTS: ForAvatarDefaults = {\n fallbackDelayMs: 0,\n};\n\n/** Token holding the resolved avatar defaults for the current scope. */\nexport const FOR_AVATAR_DEFAULTS = new InjectionToken<ForAvatarDefaults>('FOR_AVATAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_AVATAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk avatar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForAvatarDefaults(\n defaults: Partial<ForAvatarDefaults> | (() => Partial<ForAvatarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_AVATAR_DEFAULTS, FOR_AVATAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant breadcrumb trails in the surrounding\n * injector scope. Configure with `provideForBreadcrumbsDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForBreadcrumbsDefaults {\n /**\n * Accessible name for the breadcrumb `navigation` landmark, for trails that\n * don't set `[ariaLabel]` locally. Localize it here to translate every\n * breadcrumb landmark in the scope.\n */\n label: LocalizableText;\n}\n\n/**\n * Library fallback for breadcrumbs defaults, read at the root injector when no\n * consumer has called `provideForBreadcrumbsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_BREADCRUMBS_FALLBACK_DEFAULTS: ForBreadcrumbsDefaults = {\n label: 'Breadcrumb',\n};\n\n/** Token holding the resolved breadcrumbs defaults for the current scope. */\nexport const FOR_BREADCRUMBS_DEFAULTS = new InjectionToken<ForBreadcrumbsDefaults>(\n 'FOR_BREADCRUMBS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_BREADCRUMBS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk breadcrumbs defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForBreadcrumbsDefaults(\n defaults: Partial<ForBreadcrumbsDefaults> | (() => Partial<ForBreadcrumbsDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_BREADCRUMBS_DEFAULTS, FOR_BREADCRUMBS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * A breakpoint map: each named breakpoint paired with its `min-width`\n * threshold in CSS pixels. Names are arbitrary — `injectBreakpoints` derives\n * its query methods (`up`, `down`, `between`, `only`) from whatever keys this\n * map declares, sorted ascending by threshold.\n */\nexport type BreakpointMap = Record<string, number>;\n\n/**\n * The default breakpoint map, mirroring Tailwind CSS's `sm`–`2xl` scale. Used\n * as the library fallback when no `provideForBreakpointsDefaults` is in scope,\n * and the source of the typed breakpoint names when the consumer has not\n * augmented `BreakpointRegistry` from `forty-cdk/breakpoints`.\n */\nexport const forBreakpointsTailwind = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const satisfies BreakpointMap;\n\n/** The breakpoint names from the default Tailwind scale. */\nexport type TailwindBreakpointName = keyof typeof forBreakpointsTailwind;\n\n/** Resolved shape stored against {@link FOR_BREAKPOINTS_DEFAULTS}. */\nexport interface ForBreakpointsDefaults {\n /** The active breakpoint map for the current injector scope. */\n breakpoints: BreakpointMap;\n}\n\n/**\n * Library fallback for breakpoints defaults, read at the root injector when no\n * consumer has called `provideForBreakpointsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_BREAKPOINTS_FALLBACK_DEFAULTS: ForBreakpointsDefaults = {\n breakpoints: forBreakpointsTailwind,\n};\n\n/**\n * Token holding the resolved breakpoint map for the current injector scope.\n * The library always provides a fully-populated value (the Tailwind fallback\n * at the root, or the map from the nearest `provideForBreakpointsDefaults`).\n */\nexport const FOR_BREAKPOINTS_DEFAULTS = new InjectionToken<ForBreakpointsDefaults>(\n 'FOR_BREAKPOINTS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_BREAKPOINTS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures the breakpoint map for this injector scope so `injectBreakpoints`\n * can be called with no arguments. Provide it once in your application config:\n *\n * ```ts\n * providers: [\n * provideForBreakpointsDefaults({ mobile: 0, tablet: 640, laptop: 1024, desktop: 1280 }),\n * ]\n * ```\n *\n * Providing it again on a component injector replaces the map for that subtree\n * only (the nearest scope wins; the map is replaced wholesale, never merged\n * key-by-key). Omit it entirely to use {@link forBreakpointsTailwind}.\n *\n * Pass a function instead of a map to build it where `inject()` is available;\n * it runs once per injector that resolves the defaults.\n */\nexport function provideForBreakpointsDefaults(\n breakpoints: BreakpointMap | (() => BreakpointMap),\n): Provider[] {\n return provideDefaults(\n FOR_BREAKPOINTS_DEFAULTS,\n FOR_BREAKPOINTS_FALLBACK_DEFAULTS,\n typeof breakpoints === 'function' ? () => ({ breakpoints: breakpoints() }) : { breakpoints },\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\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 * Builds the accessible date of an outside-month padding day from the\n * formatted full date (default `\"<date> (outside month)\"`), so assistive tech\n * can tell it apart from the visible month. Used by the default `dateLabel`\n * formatter; a `ForCalendar` bound to its own `[dateLabel]` ignores it.\n */\n outsideMonthLabel: (formattedDate: string) => string;\n /**\n * Builds the polite announcement made when a range calendar sets its anchor,\n * from the anchor date formatted as day, month and year (default\n * `\"Start date <date>. Choose the end date.\"`).\n */\n rangeStartAnnouncement: (formattedStart: string) => string;\n /**\n * Builds the polite announcement made when a range calendar commits a range,\n * from its start and end dates formatted as day, month and year (default\n * `\"Selected <start> to <end>.\"`).\n */\n rangeSelectedAnnouncement: (formattedStart: string, formattedEnd: string) => string;\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 outsideMonthLabel: (formattedDate) => `${formattedDate} (outside month)`,\n rangeStartAnnouncement: (formattedStart) => `Start date ${formattedStart}. Choose the end date.`,\n rangeSelectedAnnouncement: (formattedStart, formattedEnd) =>\n `Selected ${formattedStart} to ${formattedEnd}.`,\n};\n\n/** Token holding the resolved calendar defaults for the current scope. */\nexport const FOR_CALENDAR_DEFAULTS = new InjectionToken<ForCalendarDefaults>(\n 'FOR_CALENDAR_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CALENDAR_FALLBACK_DEFAULTS,\n },\n);\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 *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForCalendarDefaults(\n defaults: Partial<ForCalendarDefaults> | (() => Partial<ForCalendarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CALENDAR_DEFAULTS, FOR_CALENDAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/** Alignment of the active slide within the viewport. */\nexport type CarouselAlign = 'start' | 'center' | 'end';\n\n/**\n * Defaults inherited by descendant carousels in the surrounding injector scope.\n * Configure with `provideForCarouselDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForCarouselDefaults {\n /**\n * Whether index wrap-around is enabled. When `true`, `next` past the last\n * slide wraps to index 0 and `prev` before index 0 wraps to the last slide.\n */\n loop: boolean;\n /**\n * Alignment of the active slide within the viewport. `'start'` (default):\n * the active slide's leading edge aligns with the viewport's leading edge.\n * `'center'` / `'end'` offset accordingly.\n */\n align: CarouselAlign;\n /**\n * Number of slides visible simultaneously in the viewport. Slide width is\n * set to `100% / slidesPerView` by the consumer's CSS.\n */\n slidesPerView: number;\n /**\n * When `true` (and the carousel is not looping), clamps the track offset so the\n * trailing slides align flush to the viewport's trailing edge instead of\n * overscrolling into empty space when `slidesPerView > 1`. The indicator/slide\n * mapping is unchanged — only the visual offset is contained. Default `false`.\n */\n containScroll: boolean;\n /** Whether the carousel auto-rotates on mount (when not under reduced-motion). Default `false`. */\n autoplay: boolean;\n /** Milliseconds between automatic slide advances. Default `5000`. */\n autoplayInterval: number;\n /**\n * Builds the default positional `aria-label` for each slide (`\"N of M\"`).\n * Override to localize centrally. `position` is the 1-based slide index and\n * `total` is the slide count. A per-slide `ariaLabel` still takes precedence.\n */\n slideLabel: (position: number, total: number) => string;\n /**\n * Builds the default `aria-label` for each indicator dot (`\"Go to slide N\"`).\n * Override to localize centrally. `position` is the 1-based slide index. A\n * per-indicator `ariaLabel` still takes precedence.\n */\n indicatorLabel: (position: number) => string;\n /**\n * Accessible name for `[forCarouselRotationControl]` while rotation is\n * **stopped** (activating the control starts it), for controls that don't set\n * `[startLabel]` locally. Localize it here to translate every carousel\n * rotation control in the scope.\n */\n rotationStartLabel: LocalizableText;\n /**\n * Accessible name for `[forCarouselRotationControl]` while rotation is\n * **playing** (activating the control stops it), for controls that don't set\n * `[stopLabel]` locally. Localize it here to translate every carousel\n * rotation control in the scope.\n */\n rotationStopLabel: LocalizableText;\n /**\n * `aria-roledescription` of the carousel root, spoken in place of its\n * `group` role. Localize it here to translate every carousel in the scope;\n * an empty string drops the attribute.\n */\n roleDescription: LocalizableText;\n /**\n * `aria-roledescription` of each `[forCarouselSlide]`, spoken in place of\n * its `group` role. Localize it here to translate every slide in the scope;\n * an empty string drops the attribute.\n */\n slideRoleDescription: LocalizableText;\n}\n\n/**\n * Library fallback for carousel defaults, read at the root injector when no\n * consumer has called `provideForCarouselDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_CAROUSEL_FALLBACK_DEFAULTS: ForCarouselDefaults = {\n loop: false,\n align: 'start',\n slidesPerView: 1,\n containScroll: false,\n autoplay: false,\n autoplayInterval: 5000,\n slideLabel: (position, total) => `${position} of ${total}`,\n indicatorLabel: (position) => `Go to slide ${position}`,\n rotationStartLabel: 'Start automatic slide show',\n rotationStopLabel: 'Stop automatic slide show',\n roleDescription: 'carousel',\n slideRoleDescription: 'slide',\n};\n\n/** Token holding the resolved carousel defaults for the current scope. */\nexport const FOR_CAROUSEL_DEFAULTS = new InjectionToken<ForCarouselDefaults>(\n 'FOR_CAROUSEL_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CAROUSEL_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk carousel defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForCarouselDefaults(\n defaults: Partial<ForCarouselDefaults> | (() => Partial<ForCarouselDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CAROUSEL_DEFAULTS, FOR_CAROUSEL_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\nimport type { FloatingAlign, FloatingSide } from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Where the editable anatomy's highlight lands when the listbox opens from focus, click,\n * ArrowDown / ArrowUp or `openOverlay()` without an argument. `'first'` highlights the first\n * enabled option (ArrowUp: the last). `'selected'` highlights the committed selection, falling\n * back to the first enabled option (ArrowUp: the last) when there is none. Opening from a typed\n * query always highlights the first match.\n */\nexport type ForComboboxOpenHighlight = 'first' | 'selected';\n\n/**\n * Defaults inherited by descendant comboboxes in the surrounding injector\n * scope. Configure with `provideForComboboxDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForComboboxDefaults {\n /**\n * Side the listbox is anchored to for comboboxes that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for comboboxes that don't override\n * `align` locally. Library fallback `'start'`. `start` and `end` resolve\n * against the writing direction, so `'start'` anchors the listbox to the\n * input's leading edge in both LTR and RTL.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the combobox input/trigger and the floating\n * content along the resolved `side` axis, for comboboxes that don't\n * override `sideOffset` locally.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning, for comboboxes that don't override `collisionPadding`\n * locally. Higher values keep the floating content further from the edge\n * when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Where the editable anatomy's highlight lands on open, for comboboxes that\n * don't set `openHighlight` locally. Library fallback `'first'`.\n */\n openHighlight: ForComboboxOpenHighlight;\n /**\n * Whether an editable combobox rewrites `query` when its listbox closes without\n * a pick (the selected label in single mode, `''` in multi mode), for\n * comboboxes that don't set `restoreQueryOnClose` locally. Library fallback\n * `false`.\n */\n restoreQueryOnClose: boolean;\n /**\n * Accessible name for the chevron button (`[forComboboxToggle]`), for toggles\n * that don't set `[ariaLabel]` locally. Localize it here to translate every\n * combobox toggle in the scope.\n */\n toggleAriaLabel: LocalizableText;\n /**\n * Accessible name for the multi-mode chips cluster (`[forComboboxChips]`,\n * `role=\"group\"`), for chip clusters that don't set `[ariaLabel]` locally.\n * Localize it here to translate every combobox chip group in the scope.\n */\n chipsAriaLabel: LocalizableText;\n /**\n * Accessible name for the clear button (`[forComboboxClear]`), for clear\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every combobox clear button in the scope.\n */\n clearAriaLabel: LocalizableText;\n /**\n * Builds the `aria-label` for a chip's remove button\n * (`[forComboboxChipRemove]`) from the chip's resolved option label.\n * Override it here to translate every combobox chip remove button in the\n * scope — the name is computed per chip, so the piece exposes no\n * per-instance `[ariaLabel]` input.\n */\n chipRemoveLabel: (label: string) => string;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for combobox defaults, read at the root injector when no\n * consumer has called `provideForComboboxDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_COMBOBOX_FALLBACK_DEFAULTS: ForComboboxDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n openHighlight: 'first',\n restoreQueryOnClose: false,\n toggleAriaLabel: 'Show options',\n chipsAriaLabel: 'Selected items',\n clearAriaLabel: 'Clear',\n chipRemoveLabel: (label) => `Remove ${label}`,\n loop: true,\n};\n\n/** Token holding the resolved combobox defaults for the current scope. */\nexport const FOR_COMBOBOX_DEFAULTS = new InjectionToken<ForComboboxDefaults>(\n 'FOR_COMBOBOX_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_COMBOBOX_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk combobox defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForComboboxDefaults(\n defaults: Partial<ForComboboxDefaults> | (() => Partial<ForComboboxDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_COMBOBOX_DEFAULTS, FOR_COMBOBOX_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant context menus in the surrounding\n * injector scope. Configure with `provideForContextMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForContextMenuDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the menu is anchored to, relative to the virtual anchor at the\n * pointer, for context menus that don't override `side` locally. Library\n * fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for context menus that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the virtual anchor (pointer position) and the\n * floating content along the resolved `side` axis. Defaults to `0`\n * since context menus open at the cursor.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for context menu defaults, read at the root injector when no\n * consumer has called `provideForContextMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_CONTEXT_MENU_FALLBACK_DEFAULTS: ForContextMenuDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 0,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved context-menu defaults for the current scope. */\nexport const FOR_CONTEXT_MENU_DEFAULTS = new InjectionToken<ForContextMenuDefaults>(\n 'FOR_CONTEXT_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_CONTEXT_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk context-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForContextMenuDefaults(\n defaults: Partial<ForContextMenuDefaults> | (() => Partial<ForContextMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_CONTEXT_MENU_DEFAULTS, FOR_CONTEXT_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, SegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForDateFieldSegmentLabels = Partial<Record<SegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forDateField]` controls in the\n * surrounding injector scope. Configure with `provideForDateFieldDefaults` at\n * the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDateFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForDateFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`dd` / `mm` / `yyyy` / `hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<SegmentType, LocalizableText>>;\n /**\n * 12- or 24-hour cycle for fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForDateFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_DATE_FIELD_SEGMENT_LABELS: Readonly<Record<SegmentType, string>> = {\n day: 'day',\n month: 'month',\n year: 'year',\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for date-field defaults, read at the root injector when no\n * consumer has called `provideForDateFieldDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DATE_FIELD_FALLBACK_DEFAULTS: ForDateFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_DATE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n hourCycle: null,\n};\n\n/** Token holding the resolved date-field defaults for the current scope. */\nexport const FOR_DATE_FIELD_DEFAULTS = new InjectionToken<ForDateFieldDefaults>(\n 'FOR_DATE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-field defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateFieldDefaults(\n defaults: Partial<ForDateFieldDefaults> | (() => Partial<ForDateFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DATE_FIELD_DEFAULTS, FOR_DATE_FIELD_FALLBACK_DEFAULTS, defaults, [\n 'segmentLabels',\n 'placeholder',\n ]);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant date pickers in the surrounding injector\n * scope. Configure with `provideForDatePickerDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDatePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the surface is anchored to for pickers that don't override `side`\n * locally. Ignored in `modal` mode. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for pickers that don't override `align`\n * locally. Ignored in `modal` mode. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the trigger and the floating surface along the\n * resolved `side` axis. Ignored in `modal`\n * mode (the dialog is centered, not anchored).\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the surface further from the edge when `flip` / `shift`\n * runs.\n */\n collisionPadding: number;\n /**\n * 12- or 24-hour cycle for pickers that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library fallback for date-picker defaults, read at the root injector when no\n * consumer has called `provideForDatePickerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DATE_PICKER_FALLBACK_DEFAULTS: ForDatePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 8,\n collisionPadding: 8,\n hourCycle: null,\n};\n\n/** Token holding the resolved date-picker defaults for the current scope. */\nexport const FOR_DATE_PICKER_DEFAULTS = new InjectionToken<ForDatePickerDefaults>(\n 'FOR_DATE_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-picker defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDatePickerDefaults(\n defaults: Partial<ForDatePickerDefaults> | (() => Partial<ForDatePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DATE_PICKER_DEFAULTS, FOR_DATE_PICKER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, SegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForDateRangeFieldSegmentLabels = Partial<Record<SegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forDateRangeField]` controls in the\n * surrounding injector scope. Configure with `provideForDateRangeFieldDefaults`\n * at the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForDateRangeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForDateRangeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`dd` / `mm` / `yyyy` / `hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<SegmentType, LocalizableText>>;\n /**\n * Accessible name announced (via `aria-label`) for the start endpoint group,\n * used when `[forDateRangeFieldStart]` has no explicit `ariaLabel`.\n */\n startAriaLabel: LocalizableText;\n /**\n * Accessible name announced (via `aria-label`) for the end endpoint group,\n * used when `[forDateRangeFieldEnd]` has no explicit `ariaLabel`.\n */\n endAriaLabel: LocalizableText;\n /**\n * 12- or 24-hour cycle for range fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForDateRangeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_DATE_RANGE_FIELD_SEGMENT_LABELS: Readonly<Record<SegmentType, string>> = {\n day: 'day',\n month: 'month',\n year: 'year',\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for date-range-field defaults, read at the root injector when\n * no consumer has called `provideForDateRangeFieldDefaults`. Exported for the\n * shared defaults contract spec; not re-exported from the primitive's public\n * entry.\n */\nexport const FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS: ForDateRangeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_DATE_RANGE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n startAriaLabel: 'Start date',\n endAriaLabel: 'End date',\n hourCycle: null,\n};\n\n/** Token holding the resolved date-range-field defaults for the current scope. */\nexport const FOR_DATE_RANGE_FIELD_DEFAULTS = new InjectionToken<ForDateRangeFieldDefaults>(\n 'FOR_DATE_RANGE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-range-field defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateRangeFieldDefaults(\n defaults: Partial<ForDateRangeFieldDefaults> | (() => Partial<ForDateRangeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_DATE_RANGE_FIELD_DEFAULTS,\n FOR_DATE_RANGE_FIELD_FALLBACK_DEFAULTS,\n defaults,\n ['segmentLabels', 'placeholder'],\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant date range pickers in the surrounding\n * injector scope. Configure with `provideForDateRangePickerDefaults` either at\n * the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForDateRangePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the surface is anchored to for pickers that don't override `side`\n * locally. Ignored in `modal` mode. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for pickers that don't override `align`\n * locally. Ignored in `modal` mode. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the trigger and the floating surface along the\n * resolved `side` axis. Ignored in `modal` mode (the dialog is centered, not\n * anchored).\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the surface further from the edge when `flip` / `shift`\n * runs.\n */\n collisionPadding: number;\n}\n\n/**\n * Library fallback for date-range-picker defaults, read at the root injector\n * when no consumer has called `provideForDateRangePickerDefaults`. Exported for\n * the shared defaults contract spec; not re-exported from the primitive's\n * public entry.\n */\nexport const FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS: ForDateRangePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 8,\n collisionPadding: 8,\n};\n\n/** Token holding the resolved date-range-picker defaults for the current scope. */\nexport const FOR_DATE_RANGE_PICKER_DEFAULTS = new InjectionToken<ForDateRangePickerDefaults>(\n 'FOR_DATE_RANGE_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk date-range-picker defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDateRangePickerDefaults(\n defaults: Partial<ForDateRangePickerDefaults> | (() => Partial<ForDateRangePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_DATE_RANGE_PICKER_DEFAULTS,\n FOR_DATE_RANGE_PICKER_FALLBACK_DEFAULTS,\n defaults,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by dialogs in the surrounding injector scope. Configure\n * with `provideForDialogDefaults`. A key named after a `[forDialog]` input\n * (`modal`, `dismissible`, `returnFocus`, `initialFocus`) seeds that input, so\n * a bound value still wins; the `animate*` keys apply to\n * `ForDialogManager.open()` only.\n *\n * **Scope caveat (declarative vs. programmatic).** Declarative `[forDialog]`\n * instances read this token from their own injector, so a scoped\n * `provideForDialogDefaults` (a lazy route, a component `providers`) reaches\n * every dialog rendered under that scope. `ForDialogManager` is\n * `providedIn: 'root'` and resolves the token **once, from the root injector**,\n * so by default only application-root `provideForDialogDefaults` affects\n * `ForDialogManager.open()` — a scoped override does not. To honor a caller's\n * scope, pass its injector on the `open()` config\n * (`open(Cmp, { injector: inject(Injector) })`): the manager then resolves\n * these defaults from that injector. Either way, a per-`open()` config value\n * always wins. This asymmetry is shared with `ForDrawerDefaults`.\n */\nexport interface ForDialogDefaults {\n /**\n * Default `true`. Sets `aria-modal`, locks body scroll, traps focus, inerts siblings and returns\n * focus on close.\n */\n modal: boolean;\n /** Default `true`. Whether Escape / backdrop / outside close the dialog. */\n dismissible: boolean;\n /**\n * Default `true`. Restore focus to the previously focused element on close. Modal mode only: a\n * non-modal surface never moves focus on close.\n */\n returnFocus: boolean;\n /** Default `'first'`. Where to send focus on mount. */\n initialFocus: 'first' | 'container';\n /**\n * CSS class applied (via `animate.enter`) to the programmatic overlay host\n * when it mounts, so it plays an enter animation. The class lands on the\n * `[forDialog]` host that also carries the consumer `class`. No default.\n */\n animateEnter?: string;\n /**\n * CSS class applied to the programmatic overlay host when `close()` is\n * called, kept on the still-mounted host until its CSS animations finish so\n * an exit transition plays before teardown. No default (close is immediate).\n */\n animateLeave?: string;\n /**\n * CSS class applied to the portaled `[forDialogBackdrop]` when `close()` is\n * called, so the backdrop plays an exit animation in lockstep with the\n * host. Needed because a backdrop declared inside the opened component plays\n * its `animate.enter` on mount but cannot run its template `animate.leave` —\n * Angular does not process leave animations across the `ngComponentOutlet`\n * boundary the manager mounts the component through. No default.\n */\n backdropAnimateLeave?: string;\n}\n\n/**\n * Library fallback for dialog defaults, read at the root injector when no\n * consumer has called `provideForDialogDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DIALOG_FALLBACK_DEFAULTS: ForDialogDefaults = {\n modal: true,\n dismissible: true,\n returnFocus: true,\n initialFocus: 'first',\n};\n\n/** Token holding the resolved dialog defaults for the current scope. */\nexport const FOR_DIALOG_DEFAULTS = new InjectionToken<ForDialogDefaults>('FOR_DIALOG_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_DIALOG_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk dialog defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Declarative `[forDialog]` reads the nearest scope; `ForDialogManager.open()`\n * (root-provided) only sees an application-root configuration unless the caller\n * passes its `injector` on the `open()` config — see the scope caveat on\n * {@link ForDialogDefaults}.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDialogDefaults(\n defaults: Partial<ForDialogDefaults> | (() => Partial<ForDialogDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DIALOG_DEFAULTS, FOR_DIALOG_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/** The list a positional drag announcement describes. */\nexport interface ForDragDropAnnouncementContext {\n /** The list's accessible name from its `aria-labelledby` / `aria-label`, or `''` when it has none. */\n readonly list: string;\n /** Whether the list is not the one the item was lifted from. */\n readonly transfer: boolean;\n}\n\n/**\n * Defaults inherited by descendant drag-drop lists and reorder coordinators in\n * the surrounding injector scope. Configure with `provideForDragDropDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n *\n * The three positional announcement builders share one contract: `label` is the\n * dragged item's name (its `[textValue]`, else its `aria-labelledby` /\n * `aria-label`, else its text), `index` is the 1-based position being\n * announced, and `total` is the number of **valid drop positions** in the list\n * the announcement describes — never a bare item count. For a reorder inside\n * one list that is its item count (the item is re-inserted among the existing\n * ones); for a transfer into a connected list it is one more than the target's\n * item count, because the append gap past the last item is also a valid\n * position. `index` therefore never exceeds `total`, and an empty transfer\n * target announces `1 of 1` rather than `1 of 0`. `context` names that list\n * and says whether it is a transfer target.\n */\nexport interface ForDragDropDefaults {\n /**\n * `aria-roledescription` applied to each draggable item while it can be lifted;\n * an item that cannot be lifted emits none. Empty string disables the attribute.\n */\n itemRoleDescription: LocalizableText;\n /**\n * Announcement when an item is lifted. `index` / `total` describe the source\n * list, per the positional contract above.\n */\n announceLift: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /**\n * Announcement when the drop target position changes. `index` / `total`\n * describe the target list (the list under the resolved drop position, which\n * may be a connected list), per the positional contract above.\n */\n announceMove: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /**\n * Announcement on a committed drop. `index` / `total` describe the destination\n * list, per the positional contract above.\n */\n announceDrop: (\n label: string,\n index: number,\n total: number,\n context: ForDragDropAnnouncementContext,\n ) => string;\n /** Announcement when a drag is cancelled. */\n announceCancel: (label: string) => string;\n /** Distance in px from a scroll edge that arms auto-scroll during a pointer drag. */\n autoScrollEdgeSize: number;\n /** Maximum scroll delta in px applied per animation frame while auto-scrolling. */\n autoScrollMaxSpeed: number;\n /**\n * Whether a keydown on a focused item lifts it into a keyboard reorder in\n * `[forListboxReorder]`, `[forTreeNodeDrag]` and `[forTableRowReorder]` (grid\n * mode). The default accepts `Shift+Enter`, which no operating system\n * reserves, and `Ctrl+Space` / `Cmd+Space`, which macOS and most IMEs claim\n * before the page sees them. A keydown that belongs to an IME composition\n * never lifts, whatever this returns.\n */\n liftKey: (event: KeyboardEvent) => boolean;\n}\n\n/**\n * Library fallback for drag-drop defaults, read at the root injector when no\n * consumer has called `provideForDragDropDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DRAG_DROP_FALLBACK_DEFAULTS: ForDragDropDefaults = {\n itemRoleDescription: 'sortable',\n announceLift: (label, index, total) => `${label}, lifted. ${index} of ${total}.`,\n announceMove: (label, index, total, context) =>\n context.transfer\n ? `${label}, moved to ${context.list || 'another list'}, position ${index} of ${total}.`\n : `${label}, moved to position ${index} of ${total}.`,\n announceDrop: (label, index, total, context) =>\n context.transfer\n ? `${label}, dropped in ${context.list || 'another list'}, position ${index} of ${total}.`\n : `${label}, dropped at position ${index} of ${total}.`,\n announceCancel: (label) => `${label}, movement cancelled.`,\n autoScrollEdgeSize: 50,\n autoScrollMaxSpeed: 16,\n liftKey: (event) =>\n (event.key === 'Enter' &&\n event.shiftKey &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey) ||\n (event.key === ' ' && (event.ctrlKey || event.metaKey)),\n};\n\n/** Token holding the resolved drag-drop defaults for the current scope. */\nexport const FOR_DRAG_DROP_DEFAULTS = new InjectionToken<ForDragDropDefaults>(\n 'FOR_DRAG_DROP_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DRAG_DROP_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk drag-drop defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDragDropDefaults(\n defaults: Partial<ForDragDropDefaults> | (() => Partial<ForDragDropDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DRAG_DROP_DEFAULTS, FOR_DRAG_DROP_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { ForDrawerSide } from 'forty-cdk/core-overlay';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant drawers in the surrounding injector\n * scope. Configure with `provideForDrawerDefaults`. A key named after a\n * `[forDrawer]` input seeds that input, so a bound value still wins; the\n * `scale*` and `nested*` keys tune the scale-background and nested-drawer\n * transforms of declarative and manager-opened drawers alike, and the\n * `animate*` keys apply to `ForDrawerManager.open()` only.\n *\n * **Scope caveat (declarative vs. programmatic).** Declarative `[forDrawer]`\n * instances read this token from their own injector, so a scoped\n * `provideForDrawerDefaults` (a lazy route, a component `providers`) reaches\n * every drawer rendered under that scope. `ForDrawerManager` is\n * `providedIn: 'root'` and resolves the token **once, from the root injector**,\n * so by default only application-root `provideForDrawerDefaults` affects\n * `ForDrawerManager.open()` — a scoped override does not. To honor a caller's\n * scope, pass its injector on the `open()` config\n * (`open(Cmp, { injector: inject(Injector) })`): the manager then resolves\n * these defaults from that injector. Either way, a per-`open()` config value\n * always wins.\n */\nexport interface ForDrawerDefaults {\n /** Default `'bottom'`. */\n side: ForDrawerSide;\n /** Default `true`. Modal locks scroll, traps focus, applies `aria-modal`. */\n modal: boolean;\n /** Default `true`. Whether dismiss interactions (Escape, backdrop, swipe) close. */\n dismissible: boolean;\n /**\n * Default `true`. Pointer drag gesture toward the anchored edge dismisses;\n * snap dragging stays live when `false`.\n */\n swipeToDismiss: boolean;\n /**\n * Default `0.25`. Fraction past which a release dismisses instead of\n * snapping back: of the full dimension without snap points, of the lowest\n * snap's extent with them.\n */\n closeThreshold: number;\n /** Default `'first'`. Where to send focus on mount. */\n initialFocus: 'first' | 'container';\n /**\n * Default `true`. Restore focus to the previously focused element on close. Modal mode only: a\n * non-modal surface never moves focus on close.\n */\n returnFocus: boolean;\n /**\n * Default `false`. When `true` the swipe gesture only arms on the\n * registered `[forDrawerHandle]` element instead of the whole surface.\n */\n handleOnly: boolean;\n /**\n * Default `false`. When `true`, an open drawer asks\n * `[forDrawerWrapper]` to scale + translate behind it (the \"scale\n * background\" effect). Suppressed under\n * `prefers-reduced-motion: reduce`.\n */\n scaleBackground: boolean;\n /**\n * Default `true`. When `scaleBackground` is active, paints the body\n * with `scaleBackgroundColor` so the sliver of viewport between the\n * scaled wrapper and the screen edge does not show through.\n */\n setBackgroundColorOnScale: boolean;\n /** Default `0.95`. Scale factor applied to the wrapper. */\n scaleAmount: number;\n /**\n * Default `14`. Vertical translation (in CSS pixels) added to\n * `env(safe-area-inset-top)` while the wrapper is scaled.\n */\n scaleTranslateYpx: number;\n /** Default `8`. Border radius applied to the wrapper while scaled. */\n scaleBorderRadiusPx: number;\n /**\n * Default `'black'`. Body background colour applied while\n * `setBackgroundColorOnScale` is active.\n */\n scaleBackgroundColor: string;\n /**\n * Default `0.93`. Scale factor applied to a parent drawer while a\n * nested child drawer is active. Composes with the wrapper-level\n * `scaleBackground` effect when both opt in. Suppressed under\n * `prefers-reduced-motion: reduce`.\n */\n nestedScaleAmount: number;\n /**\n * Default `8`. Pixels of additional translation applied to a parent\n * drawer while a nested child is active, in the direction *away* from\n * the parent's anchored edge (so a `bottom` drawer slides up by this\n * amount when its child opens).\n */\n nestedTranslateYpx: number;\n /**\n * CSS class applied (via `animate.enter`) to the programmatic overlay host\n * when it mounts, so it plays an enter animation. The class lands on the\n * `[forDrawer]` host that also carries the consumer `class`. No default.\n */\n animateEnter?: string;\n /**\n * CSS class applied to the programmatic overlay host when `close()` is\n * called, kept on the still-mounted host until its CSS animations finish so\n * an exit transition plays before teardown. No default (close is immediate).\n */\n animateLeave?: string;\n /**\n * CSS class applied to the portaled `[forDrawerBackdrop]` when `close()` is\n * called, so the backdrop plays an exit animation in lockstep with the\n * host. Needed because a backdrop declared inside the opened component plays\n * its `animate.enter` on mount but cannot run its template `animate.leave` —\n * Angular does not process leave animations across the `ngComponentOutlet`\n * boundary the manager mounts the component through. No default.\n */\n backdropAnimateLeave?: string;\n}\n\n/**\n * Library fallback for drawer defaults, read at the root injector when no\n * consumer has called `provideForDrawerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DRAWER_FALLBACK_DEFAULTS: ForDrawerDefaults = {\n side: 'bottom',\n modal: true,\n dismissible: true,\n swipeToDismiss: true,\n closeThreshold: 0.25,\n initialFocus: 'first',\n returnFocus: true,\n handleOnly: false,\n scaleBackground: false,\n setBackgroundColorOnScale: true,\n scaleAmount: 0.95,\n scaleTranslateYpx: 14,\n scaleBorderRadiusPx: 8,\n scaleBackgroundColor: 'black',\n nestedScaleAmount: 0.93,\n nestedTranslateYpx: 8,\n};\n\n/** Token holding the resolved drawer defaults for the current scope. */\nexport const FOR_DRAWER_DEFAULTS = new InjectionToken<ForDrawerDefaults>('FOR_DRAWER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_DRAWER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk drawer defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Declarative `[forDrawer]` reads the nearest scope; `ForDrawerManager.open()`\n * (root-provided) only sees an application-root configuration unless the caller\n * passes its `injector` on the `open()` config — see the scope caveat on\n * {@link ForDrawerDefaults}.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDrawerDefaults(\n defaults: Partial<ForDrawerDefaults> | (() => Partial<ForDrawerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DRAWER_DEFAULTS, FOR_DRAWER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant dropdown menus in the surrounding\n * injector scope. Configure with `provideForDropdownMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForDropdownMenuDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the menu is anchored to for dropdowns that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for dropdowns that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the dropdown trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for dropdown menu defaults, read at the root injector when no\n * consumer has called `provideForDropdownMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS: ForDropdownMenuDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved dropdown-menu defaults for the current scope. */\nexport const FOR_DROPDOWN_MENU_DEFAULTS = new InjectionToken<ForDropdownMenuDefaults>(\n 'FOR_DROPDOWN_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk dropdown-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForDropdownMenuDefaults(\n defaults: Partial<ForDropdownMenuDefaults> | (() => Partial<ForDropdownMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_DROPDOWN_MENU_DEFAULTS, FOR_DROPDOWN_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import {\n DestroyRef,\n inject,\n InjectionToken,\n type Provider,\n signal,\n type Signal,\n type Type,\n} from '@angular/core';\n\n/**\n * Skip-delay window handle returned by {@link createSkipDelayWindow}.\n */\nexport interface SkipDelayWindow {\n /** True while the window is open, meaning the next open should be instant. */\n readonly active: Signal<boolean>;\n /** Opens the window, replacing any window already pending. */\n start(): void;\n /** Closes the window immediately and drops any pending timer. */\n cancel(): void;\n}\n\n/**\n * A skip-delay window: `active` reads `true` from `start()` until `duration()`\n * milliseconds later (clamped to `>= 0`), or until `cancel()`.\n *\n * `duration` is read each time the window starts, so it may be a signal. The\n * window owns no DI and no teardown: cancel it when its owner is destroyed,\n * e.g. `inject(DestroyRef).onDestroy(() => window.cancel())`.\n */\nexport function createSkipDelayWindow(duration: () => number): SkipDelayWindow {\n const active = signal(false);\n let timer: ReturnType<typeof setTimeout> | null = null;\n\n function cancel(): void {\n if (timer !== null) {\n clearTimeout(timer);\n timer = null;\n }\n active.set(false);\n }\n\n function start(): void {\n cancel();\n active.set(true);\n timer = setTimeout(\n () => {\n timer = null;\n active.set(false);\n },\n Math.max(0, duration()),\n );\n }\n\n return { active: active.asReadonly(), start, cancel };\n}\n\n/**\n * Resolved window duration the {@link SkipDelayCoordinator} reads from its\n * primitive's defaults scope.\n */\nexport interface SkipDelayCoordinatorDefaults {\n /** Resolved skip-delay window (ms) for primitives in this scope. */\n skipDelayDuration: number;\n}\n\n/**\n * The hover timing keys of a primitive's defaults. Setting any of them in a\n * scoped `provideFor<Primitive>Defaults` call starts a new skip-delay window\n * unless the call says otherwise.\n */\nexport interface SkipDelayScopeDefaults extends SkipDelayCoordinatorDefaults {\n /** Resolved default open delay (ms) for primitives in this scope. */\n openDelay: number;\n /** Resolved default close delay (ms) for primitives in this scope. */\n closeDelay: number;\n}\n\n/**\n * Whether a defaults scope joins its parent's skip-delay window (`'inherit'`)\n * or starts its own (`'own'`).\n */\nexport type SkipDelayScope = 'inherit' | 'own';\n\n/**\n * Per-injector-scope skip-delay window shared by Tooltip and Hover-card.\n *\n * Wraps the shared `createSkipDelayWindow` timer core and adds a `DestroyRef`\n * hook that closes the window with the scope. Subclassed once per primitive so\n * each keeps its own DI token (and therefore its own independent skip-delay\n * scope); `[forNavigationMenu]` reuses the same timer core directly, per\n * instance, because its window is not shared across an injector scope. The\n * open and close delays are not part of it: primitives read them from their\n * own defaults token, so a scope can change them while sharing its parent's\n * window.\n *\n * Satisfies the shared hover-intent scheduler's coordinator contract\n * structurally, so the scheduler consumes it directly.\n */\nexport abstract class SkipDelayCoordinator {\n /** Resolved skip-delay window (ms) for the scope that owns this window. */\n readonly skipDelayDuration: number;\n\n readonly #window = createSkipDelayWindow(() => this.skipDelayDuration);\n\n /** True while a peer in this scope just closed and the next open is instant. */\n readonly skipDelay = this.#window.active;\n\n constructor(defaults: SkipDelayCoordinatorDefaults) {\n this.skipDelayDuration = defaults.skipDelayDuration;\n inject(DestroyRef).onDestroy(() => this.cancelSkipDelay());\n }\n\n /** Opens the skip-delay window. Called by primitives when they finish closing. */\n startSkipDelay(): void {\n this.#window.start();\n }\n\n /** Cancels any pending skip-delay window. */\n cancelSkipDelay(): void {\n this.#window.cancel();\n }\n}\n\n/**\n * Builds the providers of a scoped `provideFor<Primitive>Defaults` call for a\n * primitive with a skip-delay window: the merged defaults plus the scope's\n * coordinator.\n *\n * The coordinator is a new window when `scope` is `'own'`, or when `scope`\n * is omitted and the overrides set `openDelay`, `closeDelay` or\n * `skipDelayDuration`. Otherwise it is the parent scope's coordinator, so a\n * scope that only changes placement keeps sharing its parent's window. A\n * scope with no parent coordinator always gets a new one.\n *\n * The overrides are resolved once per injector and read by both providers, so\n * a factory form runs once, and inside an injection context, as\n * `provideDefaults` documents.\n */\nexport function provideSkipDelayScope<D extends SkipDelayScopeDefaults>(\n coordinator: Type<SkipDelayCoordinator>,\n provideDefaults: (overrides: () => Partial<D>) => Provider[],\n defaults: Partial<D> | (() => Partial<D>),\n scope: SkipDelayScope | undefined,\n): Provider[] {\n const overrides = new InjectionToken<Partial<D>>('SKIP_DELAY_SCOPE_OVERRIDES');\n const resolveOverrides = typeof defaults === 'function' ? defaults : (): Partial<D> => defaults;\n return [\n { provide: overrides, useFactory: resolveOverrides },\n ...provideDefaults(() => inject(overrides)),\n {\n provide: coordinator,\n useFactory: (): SkipDelayCoordinator => {\n const parent = ownsSkipDelayWindow(inject(overrides), scope)\n ? null\n : inject(coordinator, { skipSelf: true, optional: true });\n return parent ?? new coordinator();\n },\n },\n ];\n}\n\nfunction ownsSkipDelayWindow(\n overrides: Partial<SkipDelayScopeDefaults>,\n scope: SkipDelayScope | undefined,\n): boolean {\n if (scope !== undefined) {\n return scope === 'own';\n }\n return (\n overrides.openDelay !== undefined ||\n overrides.closeDelay !== undefined ||\n overrides.skipDelayDuration !== undefined\n );\n}\n","import { inject, Injectable, InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\nimport { SkipDelayCoordinator, provideSkipDelayScope } from './skip-delay';\n\n/**\n * Defaults inherited by descendant hover-cards in the surrounding injector\n * scope. Configure with `provideForHoverCardDefaults` at the app root or in\n * any component's `providers`.\n */\nexport interface ForHoverCardDefaults extends AnchoredPositioningSeedDefaults {\n /** Open delay (ms) for cards that don't override `openDelay` locally. */\n openDelay: number;\n /** Close delay (ms) for cards that don't override `closeDelay` locally. */\n closeDelay: number;\n /**\n * Window (ms) after a peer card in this scope closes during which the\n * next open is instant — useful for adjacent profile cards in a list,\n * so cursor movement doesn't feel sluggish.\n */\n skipDelayDuration: number;\n /**\n * Side the card is anchored to for cards that don't override `side`\n * locally. Library fallback `'top'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for cards that don't override `align`\n * locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and card along the main axis for cards that\n * don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for cards that don't override `collisionPadding` locally.\n * Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forHoverCardArrow]` element that far from the\n * edges of the content, for cards that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n}\n\n/**\n * Library fallback for hover-card defaults, read at the root injector when no\n * consumer has called `provideForHoverCardDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_HOVER_CARD_FALLBACK_DEFAULTS: ForHoverCardDefaults = {\n openDelay: 700,\n closeDelay: 300,\n skipDelayDuration: 300,\n side: 'top',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n};\n\n/** Token holding the resolved hover-card defaults for the current scope. */\nexport const FOR_HOVER_CARD_DEFAULTS = new InjectionToken<ForHoverCardDefaults>(\n 'FOR_HOVER_CARD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_HOVER_CARD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * The skip-delay window of a hover-card scope: right after a card in the scope\n * closes, the next one opens without its open delay for `skipDelayDuration`\n * ms. `provideForHoverCardDefaults` decides whether a scope starts its own\n * window or shares its parent's; no tooltip scope ever shares it.\n */\n@Injectable({ providedIn: 'root' })\nexport class HoverCardCoordinator extends SkipDelayCoordinator {\n constructor() {\n super(inject(FOR_HOVER_CARD_DEFAULTS));\n }\n}\n\n/** Options for a `provideForHoverCardDefaults` call. */\nexport interface HoverCardDefaultsOptions {\n /**\n * Whether the scope shares its parent's skip-delay window (`'inherit'`) or\n * starts its own (`'own'`). When omitted, a call that sets `openDelay`,\n * `closeDelay` or `skipDelayDuration` starts its own and any other call\n * shares its parent's. A scope that shares its parent's window keeps the\n * parent's `skipDelayDuration` for it; its own `openDelay` and `closeDelay`\n * apply either way.\n */\n skipDelayScope?: 'inherit' | 'own';\n}\n\n/**\n * Configures forty-cdk hover-card defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root). Peer cards that share a skip-delay window\n * open instantly right after one of them closes; see\n * `HoverCardDefaultsOptions.skipDelayScope` for when a call starts a new\n * window.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForHoverCardDefaults(\n defaults: Partial<ForHoverCardDefaults> | (() => Partial<ForHoverCardDefaults>) = {},\n options: HoverCardDefaultsOptions = {},\n): Provider[] {\n return provideSkipDelayScope(\n HoverCardCoordinator,\n (overrides) =>\n provideDefaults(FOR_HOVER_CARD_DEFAULTS, FOR_HOVER_CARD_FALLBACK_DEFAULTS, overrides),\n defaults,\n options.skipDelayScope,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant listboxes in the surrounding injector\n * scope. Configure with `provideForListboxDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForListboxDefaults {\n /**\n * Single-mode only: when `true`, a keyboard focus move (arrow navigation\n * or a typeahead match) also selects the focused option. APG calls this optional and recommends caution —\n * leave `false` unless the UX truly benefits from selection following\n * focus. A virtualized listbox (`[forListboxVirtualized]` with `totalCount`\n * set) does not inherit it.\n */\n selectionFollowsFocus: boolean;\n /**\n * `[forListboxReorder]` announcement when an option is lifted for reorder.\n * `index` and `total` are 1-based. Override to localize.\n */\n reorderAnnounceLift: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement when the reorder drop position changes.\n * `index` and `total` are 1-based. Override to localize.\n */\n reorderAnnounceMove: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement on a committed reorder drop. `index` and\n * `total` are 1-based. Override to localize.\n */\n reorderAnnounceDrop: (label: string, index: number, total: number) => string;\n /**\n * `[forListboxReorder]` announcement when a reorder is cancelled. Override to\n * localize.\n */\n reorderAnnounceCancel: (label: string) => string;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for listbox defaults, read at the root injector when no\n * consumer has called `provideForListboxDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n *\n * The reorder formatters mirror the lift / move / drop / cancel cadence the\n * drag-drop and tree coordinators use, so a consumer hears consistent reorder\n * announcements across primitives. Defining them inside the listbox's own\n * defaults (rather than importing `FOR_DRAG_DROP_DEFAULTS`) keeps\n * `[forListboxReorder]` from pulling in the drag-drop primitive.\n */\nexport const FOR_LISTBOX_FALLBACK_DEFAULTS: ForListboxDefaults = {\n selectionFollowsFocus: false,\n reorderAnnounceLift: (label, index, total) => `${label}, lifted. ${index} of ${total}.`,\n reorderAnnounceMove: (label, index, total) => `${label}, moved to position ${index} of ${total}.`,\n reorderAnnounceDrop: (label, index, total) =>\n `${label}, dropped at position ${index} of ${total}.`,\n reorderAnnounceCancel: (label) => `${label}, movement cancelled.`,\n loop: true,\n};\n\n/** Token holding the resolved listbox defaults for the current scope. */\nexport const FOR_LISTBOX_DEFAULTS = new InjectionToken<ForListboxDefaults>('FOR_LISTBOX_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_LISTBOX_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk listbox defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForListboxDefaults(\n defaults: Partial<ForListboxDefaults> | (() => Partial<ForListboxDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_LISTBOX_DEFAULTS, FOR_LISTBOX_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant menus in the surrounding injector\n * scope. Configure with `provideForMenuDefaults` at the app root or in any\n * component's `providers`.\n *\n * They tune the pointer-driven submenu interaction — hovering a\n * `[forMenuSubTrigger]` opens its submenu after `subMenuOpenDelay`, and\n * leaving it (without travelling into the submenu through the pointer-grace\n * \"safe triangle\") closes it after `subMenuCloseDelay` — and the floating-ui\n * placement offsets and collision fallback (`sideOffset` / `collisionPadding` /\n * `fallbackAxisSideDirection`) of both `[forMenuSub]` and the `[forMenu]` root,\n * so they read them from a provider like `[forDropdownMenu]` /\n * `[forContextMenu]` do instead of hardcoding them.\n * Click / Enter / Space / ArrowRight semantics are unaffected by these values.\n */\nexport interface ForMenuDefaults {\n /**\n * Side the menu is anchored to, for both `[forMenuSub]` and the `[forMenu]`\n * root. `null` (the library fallback) keeps each root's own: `'bottom'` for\n * `[forMenu]`, and the writing-direction side for `[forMenuSub]` (`'right'`\n * in LTR, `'left'` in RTL, so a submenu opens away from its parent). Set a\n * value here to pin both roots in the scope to one side.\n */\n side: FloatingSide | null;\n /**\n * Alignment along the chosen `side`, for both `[forMenuSub]` and the\n * `[forMenu]` root. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Delay (ms) before a hovered `[forMenuSubTrigger]` opens its submenu.\n * A short intent delay avoids opening every submenu the pointer merely\n * passes over. Default `100`.\n */\n subMenuOpenDelay: number;\n /**\n * Delay (ms) before a submenu closes once the pointer has left both the\n * sub-trigger and the submenu content (and is not inside the pointer-grace\n * region). Default `100`.\n */\n subMenuCloseDelay: number;\n /**\n * Lifetime (ms) of the pointer-grace \"safe triangle\" armed when the pointer\n * leaves the sub-trigger toward the open submenu. While the pointer stays\n * inside the triangle the close is held off; the window caps how long that\n * hold lasts if the pointer lingers without reaching the content. Default\n * `300`.\n */\n subMenuPointerGraceDuration: number;\n /**\n * Distance (px) between the anchor and the menu content along the resolved\n * `side` axis, for both `[forMenuSub]` and the `[forMenu]` root. Default `0` —\n * a submenu sits flush against its parent item, and a shared menu sits flush\n * against whichever opener fired, which is what a pointer-anchored open wants.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning\n * of `[forMenuSub]` and the `[forMenu]` root. Higher values keep the menu\n * further from the edge when `flip` / `shift` runs. Default `8`.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow, for both `[forMenuSub]` and the\n * `[forMenu]` root. `'none'` (default) keeps only the opposite same-axis\n * placement; `'start'` / `'end'` let a submenu clipped on a narrow viewport\n * drop to a vertical side. Only consulted when `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled item.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for menu defaults, read at the root injector when no\n * consumer has called `provideForMenuDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_MENU_FALLBACK_DEFAULTS: ForMenuDefaults = {\n side: null,\n align: 'start',\n subMenuOpenDelay: 100,\n subMenuCloseDelay: 100,\n subMenuPointerGraceDuration: 300,\n sideOffset: 0,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved menu defaults for the current scope. */\nexport const FOR_MENU_DEFAULTS = new InjectionToken<ForMenuDefaults>('FOR_MENU_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_MENU_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk menu defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForMenuDefaults(\n defaults: Partial<ForMenuDefaults> | (() => Partial<ForMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_MENU_DEFAULTS, FOR_MENU_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n FloatingAlign,\n FloatingFallbackAxisSideDirection,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant menubars in the surrounding injector\n * scope. Configure with `provideForMenubarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForMenubarDefaults {\n /**\n * Side a menubar trigger's menu is anchored to, for triggers that don't\n * override `side` locally. `null` (the library fallback) follows the bar's\n * layout: `'bottom'` on a horizontal bar, and on a vertical one the side\n * away from the bar (`'right'` in LTR, `'left'` in RTL). A value set here\n * pins every bar in the scope to that side, whatever its layout.\n */\n side: FloatingSide | null;\n /**\n * Alignment along the chosen `side`, for triggers that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between a menubar trigger and its floating menu along the\n * resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the open menu further from the edge when `flip` /\n * `shift` runs.\n */\n collisionPadding: number;\n /**\n * Direction `flip` falls back to on the perpendicular axis when both sides\n * of the preferred axis overflow. `'none'` (default) keeps only the opposite\n * same-axis placement; `'start'` / `'end'` let a menu clipped on a narrow\n * viewport drop to a perpendicular side. Only consulted when\n * `avoidCollisions` is on.\n */\n fallbackAxisSideDirection: FloatingFallbackAxisSideDirection;\n /**\n * Whether arrow navigation wraps past the first / last enabled trigger.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for menubar defaults, read at the root injector when no\n * consumer has called `provideForMenubarDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_MENUBAR_FALLBACK_DEFAULTS: ForMenubarDefaults = {\n side: null,\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n fallbackAxisSideDirection: 'none',\n loop: true,\n};\n\n/** Token holding the resolved menubar defaults for the current scope. */\nexport const FOR_MENUBAR_DEFAULTS = new InjectionToken<ForMenubarDefaults>('FOR_MENUBAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_MENUBAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk menubar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForMenubarDefaults(\n defaults: Partial<ForMenubarDefaults> | (() => Partial<ForMenubarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_MENUBAR_DEFAULTS, FOR_MENUBAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant navigation menus in the surrounding\n * injector scope. Configure with `provideForNavigationMenuDefaults` either\n * at the application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForNavigationMenuDefaults {\n /** ms before a hover opens an item. */\n openDelay: number;\n /** ms before an item closes after hover leaves. */\n closeDelay: number;\n /**\n * ms after a peer item closed during which the next open is instant.\n * Keeps fluid hover-across-triggers feeling responsive.\n */\n skipDelayDuration: number;\n /**\n * Whether arrow navigation wraps past the first / last enabled trigger.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for navigation menu defaults, read at the root injector when no\n * consumer has called `provideForNavigationMenuDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS: ForNavigationMenuDefaults = {\n openDelay: 200,\n closeDelay: 150,\n skipDelayDuration: 300,\n loop: true,\n};\n\n/** Token holding the resolved navigation-menu defaults for the current scope. */\nexport const FOR_NAVIGATION_MENU_DEFAULTS = new InjectionToken<ForNavigationMenuDefaults>(\n 'FOR_NAVIGATION_MENU_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk navigation-menu defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForNavigationMenuDefaults(\n defaults: Partial<ForNavigationMenuDefaults> | (() => Partial<ForNavigationMenuDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_NAVIGATION_MENU_DEFAULTS,\n FOR_NAVIGATION_MENU_FALLBACK_DEFAULTS,\n defaults,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant `[forNumberInput]` controls in the\n * surrounding injector scope. Configure with `provideForNumberInputDefaults`\n * either at the application root or in any component's `providers` array;\n * partial overrides merge with the parent scope.\n */\nexport interface ForNumberInputDefaults {\n /**\n * Multiplier applied to `step` for `PageUp` / `PageDown`. Defaults to `10`,\n * so a step of `1` pages by `10`.\n */\n stepMultiplier: number;\n}\n\n/**\n * Library fallback for number-input defaults, read at the root injector when no\n * consumer has called `provideForNumberInputDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_NUMBER_INPUT_FALLBACK_DEFAULTS: ForNumberInputDefaults = {\n stepMultiplier: 10,\n};\n\n/** Token holding the resolved number-input defaults for the current scope. */\nexport const FOR_NUMBER_INPUT_DEFAULTS = new InjectionToken<ForNumberInputDefaults>(\n 'FOR_NUMBER_INPUT_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_NUMBER_INPUT_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk number-input defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForNumberInputDefaults(\n defaults: Partial<ForNumberInputDefaults> | (() => Partial<ForNumberInputDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_NUMBER_INPUT_DEFAULTS, FOR_NUMBER_INPUT_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant paginations in the surrounding injector\n * scope. Configure with `provideForPaginationDefaults` at the application root\n * or in any component's `providers`; partial overrides merge with the parent.\n */\nexport interface ForPaginationDefaults {\n /** Pages shown on each side of the current page before collapsing to an ellipsis. */\n siblingCount: number;\n /** Pages always shown at each end (first/last). */\n boundaryCount: number;\n}\n\n/**\n * Library fallback for pagination defaults, read at the root injector when no\n * consumer has called `provideForPaginationDefaults`. Exported for the shared\n * defaults-contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_PAGINATION_FALLBACK_DEFAULTS: ForPaginationDefaults = {\n siblingCount: 1,\n boundaryCount: 1,\n};\n\n/** Token holding the resolved pagination defaults for the current scope. */\nexport const FOR_PAGINATION_DEFAULTS = new InjectionToken<ForPaginationDefaults>(\n 'FOR_PAGINATION_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_PAGINATION_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk pagination defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForPaginationDefaults(\n defaults: Partial<ForPaginationDefaults> | (() => Partial<ForPaginationDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_PAGINATION_DEFAULTS, FOR_PAGINATION_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant popovers in the surrounding injector\n * scope. Configure with `provideForPopoverDefaults` at the app root or in\n * any component's `providers`; partial overrides merge with the parent scope.\n */\nexport interface ForPopoverDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the popover is anchored to for popovers that don't override `side`\n * locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for popovers that don't override\n * `align` locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and content along the main axis for popovers\n * that don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for popovers that don't override `collisionPadding` locally.\n * Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forPopoverArrow]` element that far from the\n * edges of the content, for popovers that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n}\n\n/**\n * Library fallback for popover defaults, read at the root injector when no\n * consumer has called `provideForPopoverDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_POPOVER_FALLBACK_DEFAULTS: ForPopoverDefaults = {\n side: 'bottom',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n};\n\n/** Token holding the resolved popover defaults for the current scope. */\nexport const FOR_POPOVER_DEFAULTS = new InjectionToken<ForPopoverDefaults>('FOR_POPOVER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_POPOVER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk popover defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForPopoverDefaults(\n defaults: Partial<ForPopoverDefaults> | (() => Partial<ForPopoverDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_POPOVER_DEFAULTS, FOR_POPOVER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant progress bars in the surrounding injector\n * scope. Configure with `provideForProgressDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForProgressDefaults {\n /**\n * Whether to announce completion (or the label) once via `aria-live` on\n * the loading→complete transition. Opt-in — useful on flows where the\n * user explicitly waits for completion (uploads, submissions).\n */\n announceCompletion: boolean;\n /**\n * String announced via `aria-live` on the loading→complete transition when\n * no `aria-valuetext` is available. A screen reader verbalizes it, so\n * override it per scope to localize the announcement; defaults to the\n * English `'Complete'`.\n */\n completeAnnouncement: LocalizableText;\n}\n\n/**\n * Library fallback for progress defaults, read at the root injector when no\n * consumer has called `provideForProgressDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_PROGRESS_FALLBACK_DEFAULTS: ForProgressDefaults = {\n announceCompletion: false,\n completeAnnouncement: 'Complete',\n};\n\n/** Token holding the resolved progress defaults for the current scope. */\nexport const FOR_PROGRESS_DEFAULTS = new InjectionToken<ForProgressDefaults>(\n 'FOR_PROGRESS_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_PROGRESS_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk progress defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForProgressDefaults(\n defaults: Partial<ForProgressDefaults> | (() => Partial<ForProgressDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_PROGRESS_DEFAULTS, FOR_PROGRESS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant radio groups in the surrounding injector\n * scope. Configure with `provideForRadioGroupDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForRadioGroupDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * radio. Matches the WAI-ARIA Radio Group APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for radio group defaults, read at the root injector when no\n * consumer has called `provideForRadioGroupDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_RADIO_GROUP_FALLBACK_DEFAULTS: ForRadioGroupDefaults = {\n loop: true,\n};\n\n/** Token holding the resolved radio-group defaults for the current scope. */\nexport const FOR_RADIO_GROUP_DEFAULTS = new InjectionToken<ForRadioGroupDefaults>(\n 'FOR_RADIO_GROUP_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_RADIO_GROUP_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk radio-group defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForRadioGroupDefaults(\n defaults: Partial<ForRadioGroupDefaults> | (() => Partial<ForRadioGroupDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_RADIO_GROUP_DEFAULTS, FOR_RADIO_GROUP_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * What a primary-button press on bare scrollbar track does:\n * - `'page'` — step one page toward the press and auto-repeat while held,\n * stopping when the thumb reaches the pointer (platform default).\n * - `'jump'` — centre the thumb on the press point, then scrub while held.\n * - `'none'` — the library ignores track presses entirely.\n */\nexport type ForScrollAreaTrackPress = 'none' | 'page' | 'jump';\n\n/**\n * Defaults inherited by descendant scroll areas in the surrounding injector\n * scope. Configure with `provideForScrollAreaDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForScrollAreaDefaults {\n /**\n * Milliseconds after the most recent scroll before the synthetic\n * scrollbars fade. Applies when `type` is `'scroll'` or `'hover'`.\n */\n scrollHideDelay: number;\n\n /**\n * What a primary-button press on bare scrollbar track does: page toward the\n * press (with auto-repeat while held), jump the thumb to the press point, or\n * nothing at all.\n */\n trackPress: ForScrollAreaTrackPress;\n\n /**\n * Milliseconds a held `trackPress=\"page\"` gesture waits before the first\n * auto-repeat page step.\n */\n trackPressRepeatDelay: number;\n\n /**\n * Milliseconds between auto-repeat page steps of a held `trackPress=\"page\"`\n * gesture, after `trackPressRepeatDelay` has elapsed.\n */\n trackPressRepeatInterval: number;\n}\n\n/**\n * Library fallback for scroll area defaults, read at the root injector when no\n * consumer has called `provideForScrollAreaDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SCROLL_AREA_FALLBACK_DEFAULTS: ForScrollAreaDefaults = {\n scrollHideDelay: 600,\n trackPress: 'page',\n trackPressRepeatDelay: 300,\n trackPressRepeatInterval: 50,\n};\n\n/** Token holding the resolved scroll-area defaults for the current scope. */\nexport const FOR_SCROLL_AREA_DEFAULTS = new InjectionToken<ForScrollAreaDefaults>(\n 'FOR_SCROLL_AREA_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_SCROLL_AREA_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk scroll-area defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForScrollAreaDefaults(\n defaults: Partial<ForScrollAreaDefaults> | (() => Partial<ForScrollAreaDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SCROLL_AREA_DEFAULTS, FOR_SCROLL_AREA_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant search fields in the surrounding injector\n * scope. Configure with `provideForSearchDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForSearchDefaults {\n /**\n * Accessible name for the clear button (`[forSearchClear]`), for clear\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every search clear button in the scope.\n */\n clearAriaLabel: LocalizableText;\n}\n\n/**\n * Library fallback for search defaults, read at the root injector when no\n * consumer has called `provideForSearchDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SEARCH_FALLBACK_DEFAULTS: ForSearchDefaults = {\n clearAriaLabel: 'Clear',\n};\n\n/** Token holding the resolved search defaults for the current scope. */\nexport const FOR_SEARCH_DEFAULTS = new InjectionToken<ForSearchDefaults>('FOR_SEARCH_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SEARCH_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk search defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSearchDefaults(\n defaults: Partial<ForSearchDefaults> | (() => Partial<ForSearchDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SEARCH_DEFAULTS, FOR_SEARCH_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant selects in the surrounding injector\n * scope. Configure with `provideForSelectDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForSelectDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the listbox is anchored to for selects that don't override `side`\n * locally. Ignored under `position=\"item-aligned\"`. Library fallback\n * `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for selects that don't override `align`\n * locally. Ignored under `position=\"item-aligned\"`. Library fallback\n * `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the select trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware\n * positioning. Higher values keep the floating content further from\n * the edge when `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n /**\n * Single-mode only: when `true`, a keyboard focus move (arrow navigation or a\n * typeahead match) also selects the focused option while the listbox is open.\n * APG calls this optional and recommends caution. A virtualized select\n * (`[forSelectVirtualized]` with `totalCount` set) does not inherit it.\n */\n selectionFollowsFocus: boolean;\n}\n\n/**\n * Library fallback for select defaults, read at the root injector when no\n * consumer has called `provideForSelectDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SELECT_FALLBACK_DEFAULTS: ForSelectDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n loop: true,\n selectionFollowsFocus: false,\n};\n\n/** Token holding the resolved select defaults for the current scope. */\nexport const FOR_SELECT_DEFAULTS = new InjectionToken<ForSelectDefaults>('FOR_SELECT_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SELECT_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk select defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSelectDefaults(\n defaults: Partial<ForSelectDefaults> | (() => Partial<ForSelectDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SELECT_DEFAULTS, FOR_SELECT_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant sliders in the surrounding injector\n * scope. Configure with `provideForSliderDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForSliderDefaults {\n /**\n * Multiplier applied to `step` for `PageUp` / `PageDown`. Defaults to `10`,\n * so a step of `1` pages by `10`.\n */\n stepMultiplier: number;\n}\n\n/**\n * Library fallback for slider defaults, read at the root injector when no\n * consumer has called `provideForSliderDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_SLIDER_FALLBACK_DEFAULTS: ForSliderDefaults = {\n stepMultiplier: 10,\n};\n\n/** Token holding the resolved slider defaults for the current scope. */\nexport const FOR_SLIDER_DEFAULTS = new InjectionToken<ForSliderDefaults>('FOR_SLIDER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_SLIDER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk slider defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForSliderDefaults(\n defaults: Partial<ForSliderDefaults> | (() => Partial<ForSliderDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_SLIDER_DEFAULTS, FOR_SLIDER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/** Activation timing for interactive-mode arrow navigation. */\nexport type StepperActivationMode = 'automatic' | 'manual';\n\n/**\n * Defaults inherited by descendant steppers in the surrounding injector scope.\n * Configure with `provideForStepperDefaults` either at the application root or\n * in any component's `providers` array; partial overrides merge with the parent\n * scope.\n */\nexport interface ForStepperDefaults {\n /**\n * `'manual'` (default): arrow navigation only moves focus; the user must\n * press Space / Enter to activate. Recommended for wizards where step\n * activation often triggers validation. `'automatic'`: arrow navigation moves\n * focus AND selects the step.\n */\n activationMode: StepperActivationMode;\n /**\n * Whether arrow navigation wraps around past the first / last trigger.\n */\n loop: boolean;\n /**\n * Builds the `aria-valuetext` for `[forStepperProgress]` on the `'index'`\n * basis (default `\"Step N of M\"`). Override to localize centrally. `current`\n * is the 1-based current step and `total` is the step count.\n */\n stepValueText: (current: number, total: number) => string;\n /**\n * Builds the `aria-valuetext` for `[forStepperProgress]` on the `'completed'`\n * basis (default `\"P% complete\"`). Override to localize centrally. `percent`\n * is the whole-number completion percent in `[0, 100]`.\n */\n progressValueText: (percent: number) => string;\n}\n\n/**\n * Library fallback for stepper defaults, read at the root injector when no\n * consumer has called `provideForStepperDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_STEPPER_FALLBACK_DEFAULTS: ForStepperDefaults = {\n activationMode: 'manual',\n loop: true,\n stepValueText: (current, total) => `Step ${current} of ${total}`,\n progressValueText: (percent) => `${percent}% complete`,\n};\n\n/** Token holding the resolved stepper defaults for the current scope. */\nexport const FOR_STEPPER_DEFAULTS = new InjectionToken<ForStepperDefaults>('FOR_STEPPER_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_STEPPER_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk stepper defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForStepperDefaults(\n defaults: Partial<ForStepperDefaults> | (() => Partial<ForStepperDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_STEPPER_DEFAULTS, FOR_STEPPER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\nexport type TabsActivationMode = 'automatic' | 'manual';\n\n/**\n * Defaults inherited by descendant tabs in the surrounding injector scope.\n * Configure with `provideForTabsDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForTabsDefaults {\n /**\n * `'automatic'` (default): arrow navigation moves focus AND selects the\n * new tab. Use when panel content is cheap to render. `'manual'`: arrow\n * navigation only moves focus; the user must press Space / Enter to\n * activate. Use when panel content is expensive.\n */\n activationMode: TabsActivationMode;\n /**\n * Whether arrow navigation wraps around past the first / last trigger.\n * Matches the WAI-ARIA Tabs APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for tabs defaults, read at the root injector when no\n * consumer has called `provideForTabsDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TABS_FALLBACK_DEFAULTS: ForTabsDefaults = {\n activationMode: 'automatic',\n loop: true,\n};\n\n/** Token holding the resolved tabs defaults for the current scope. */\nexport const FOR_TABS_DEFAULTS = new InjectionToken<ForTabsDefaults>('FOR_TABS_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TABS_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk tabs defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTabsDefaults(\n defaults: Partial<ForTabsDefaults> | (() => Partial<ForTabsDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TABS_DEFAULTS, FOR_TABS_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, TimeSegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForTimeFieldSegmentLabels = Partial<Record<TimeSegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forTimeField]` controls in the\n * surrounding injector scope. Configure with `provideForTimeFieldDefaults` at\n * the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForTimeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<TimeSegmentType, LocalizableText>>;\n /**\n * 12- or 24-hour cycle for fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForTimeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_TIME_FIELD_SEGMENT_LABELS: Readonly<Record<TimeSegmentType, string>> = {\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for time-field defaults, read at the root injector when no\n * consumer has called `provideForTimeFieldDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TIME_FIELD_FALLBACK_DEFAULTS: ForTimeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_TIME_FIELD_SEGMENT_LABELS,\n placeholder: {},\n hourCycle: null,\n};\n\n/** Token holding the resolved time-field defaults for the current scope. */\nexport const FOR_TIME_FIELD_DEFAULTS = new InjectionToken<ForTimeFieldDefaults>(\n 'FOR_TIME_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time-field defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimeFieldDefaults(\n defaults: Partial<ForTimeFieldDefaults> | (() => Partial<ForTimeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TIME_FIELD_DEFAULTS, FOR_TIME_FIELD_FALLBACK_DEFAULTS, defaults, [\n 'segmentLabels',\n 'placeholder',\n ]);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant time pickers in the surrounding injector\n * scope. Configure with `provideForTimePickerDefaults` either at the\n * application root or in any component's `providers` array; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimePickerDefaults extends AnchoredPositioningSeedDefaults {\n /**\n * Side the listbox is anchored to for time pickers that don't override\n * `side` locally. Library fallback `'bottom'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for time pickers that don't override\n * `align` locally. Library fallback `'start'`.\n */\n align: FloatingAlign;\n /**\n * Distance (px) between the time picker trigger and the floating content\n * along the resolved `side` axis.\n */\n sideOffset: number;\n /**\n * Padding (px) added to the viewport edges for collision-aware positioning.\n * Higher values keep the floating content further from the edge when\n * `flip` / `shift` runs.\n */\n collisionPadding: number;\n /**\n * 12- or 24-hour cycle for pickers that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n /**\n * Whether arrow navigation wraps past the first / last enabled option.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for time picker defaults, read at the root injector when no\n * consumer has called `provideForTimePickerDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TIME_PICKER_FALLBACK_DEFAULTS: ForTimePickerDefaults = {\n side: 'bottom',\n align: 'start',\n sideOffset: 4,\n collisionPadding: 8,\n hourCycle: null,\n loop: true,\n};\n\n/** Token holding the resolved time picker defaults for the current scope. */\nexport const FOR_TIME_PICKER_DEFAULTS = new InjectionToken<ForTimePickerDefaults>(\n 'FOR_TIME_PICKER_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_PICKER_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time picker defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library defaults\n * at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimePickerDefaults(\n defaults: Partial<ForTimePickerDefaults> | (() => Partial<ForTimePickerDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TIME_PICKER_DEFAULTS, FOR_TIME_PICKER_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText, TimeSegmentType } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Accessible name announced for each editable segment, keyed by its part type.\n * Override individually (or wholesale) for localization; any key left unset\n * keeps the parent scope's label, else the library default for that part — so\n * overriding just `dayPeriod` keeps the labels for the rest.\n */\nexport type ForTimeRangeFieldSegmentLabels = Partial<Record<TimeSegmentType, LocalizableText>>;\n\n/**\n * Defaults inherited by descendant `[forTimeRangeField]` controls in the\n * surrounding injector scope. Configure with `provideForTimeRangeFieldDefaults`\n * at the application root or in any component's `providers`; partial overrides\n * merge with the parent scope.\n */\nexport interface ForTimeRangeFieldDefaults {\n /**\n * Accessible value announced (via `aria-valuetext`) for an empty editable\n * segment, so screen readers report the segment's empty state instead of\n * silence. Override for localization.\n */\n emptySegmentText: LocalizableText;\n /**\n * Accessible names announced for each editable segment (via `aria-label`),\n * keyed by part type, used when a segment has no explicit `ariaLabel`. The\n * AM/PM `dayPeriod` defaults to `'AM/PM'` instead of leaking the raw token.\n * Override for localization; a nested scope merges this record entry by\n * entry with its parent's, and keys no scope sets keep the library default.\n */\n segmentLabels: ForTimeRangeFieldSegmentLabels;\n /**\n * Placeholder each empty editable segment shows, keyed by part type, for\n * fields whose `[placeholder]` doesn't name that part. A nested scope merges\n * this record entry by entry with its parent's, and parts no scope names fall\n * back to a letter-repeat default (`hh` / `mm` / `ss` / `--`).\n */\n placeholder: Partial<Record<TimeSegmentType, LocalizableText>>;\n /**\n * Accessible name announced (via `aria-label`) for the start endpoint group,\n * used when `[forTimeRangeFieldStart]` has no explicit `ariaLabel`.\n */\n startAriaLabel: LocalizableText;\n /**\n * Accessible name announced (via `aria-label`) for the end endpoint group,\n * used when `[forTimeRangeFieldEnd]` has no explicit `ariaLabel`.\n */\n endAriaLabel: LocalizableText;\n /**\n * 12- or 24-hour cycle for range fields that don't bind `[hourCycle]`. Library\n * fallback `null`, which derives the cycle from the locale.\n */\n hourCycle: 12 | 24 | null;\n}\n\n/**\n * Library default accessible name for each editable segment. Used when neither\n * the segment's explicit `ariaLabel` nor a `provideForTimeRangeFieldDefaults`\n * override supplies one for that part.\n */\nexport const DEFAULT_TIME_RANGE_FIELD_SEGMENT_LABELS: Readonly<Record<TimeSegmentType, string>> = {\n hour: 'hour',\n minute: 'minute',\n second: 'second',\n dayPeriod: 'AM/PM',\n};\n\n/**\n * Library fallback for time-range-field defaults, read at the root injector when\n * no consumer has called `provideForTimeRangeFieldDefaults`. Exported for the\n * shared defaults contract spec; not re-exported from the primitive's public\n * entry.\n */\nexport const FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS: ForTimeRangeFieldDefaults = {\n emptySegmentText: 'Empty',\n segmentLabels: DEFAULT_TIME_RANGE_FIELD_SEGMENT_LABELS,\n placeholder: {},\n startAriaLabel: 'Start time',\n endAriaLabel: 'End time',\n hourCycle: null,\n};\n\n/** Token holding the resolved time-range-field defaults for the current scope. */\nexport const FOR_TIME_RANGE_FIELD_DEFAULTS = new InjectionToken<ForTimeRangeFieldDefaults>(\n 'FOR_TIME_RANGE_FIELD_DEFAULTS',\n {\n providedIn: 'root',\n factory: () => FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS,\n },\n);\n\n/**\n * Configures forty-cdk time-range-field defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTimeRangeFieldDefaults(\n defaults: Partial<ForTimeRangeFieldDefaults> | (() => Partial<ForTimeRangeFieldDefaults>) = {},\n): Provider[] {\n return provideDefaults(\n FOR_TIME_RANGE_FIELD_DEFAULTS,\n FOR_TIME_RANGE_FIELD_FALLBACK_DEFAULTS,\n defaults,\n ['segmentLabels', 'placeholder'],\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport type { LocalizableText } from 'forty-cdk/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Motion applied to the toasts a mutation of the stack pushes to a new\n * position. Set it on `[forToastViewport]` via `[stackShift]`, or per scope\n * with `provideForToastDefaults({ stackShift })`. The glide is played on\n * `translate`, leaving `transform` to the consumer.\n *\n * `animate.enter` / `animate.leave` cover the row that mounts or unmounts;\n * this covers its siblings, which reflow to their new spot in a single frame\n * with no property of their own for CSS to transition.\n */\nexport interface ForToastStackShift {\n /** Duration in ms of the glide to the new position. Must be greater than `0`. */\n duration: number;\n /** Easing of the glide, as a CSS easing function. Defaults to `'linear'`. */\n easing?: string;\n}\n\n/**\n * Defaults inherited by toasts in the surrounding injector scope. Provide via\n * `provideForToastDefaults({ duration: 4000, hotkey: 'F6' })` in your app\n * config to override library defaults; the token always resolves to a\n * fully-populated value, so every key is required here and the provider takes\n * a `Partial`.\n */\nexport interface ForToastDefaults {\n /** Default `5000`. How long a toast stays up before auto-dismissing, in ms. */\n duration: number;\n /** Default `'F6'`. Key that moves focus to the first rendered toast. */\n hotkey: string;\n /** Default `Infinity`. How many toasts one viewport renders at a time. */\n maxVisible: number;\n /**\n * Accessible name for the viewport region (`[forToastViewport]`,\n * `role=\"region\"`), for viewports that don't set `[ariaLabel]` locally.\n * Localize it here to translate every toast viewport in the scope.\n */\n viewportAriaLabel: LocalizableText;\n /**\n * Accessible name for the close button (`[forToastClose]`), for close\n * buttons that don't set `[ariaLabel]` locally. Localize it here to\n * translate every toast close button in the scope.\n */\n closeAriaLabel: LocalizableText;\n /**\n * How toast viewports in this scope behave over an open modal `ForDialog` /\n * `ForDrawer`. Default `'peer'`.\n *\n * - `'peer'` — the viewport host-binds `data-for-modal-exempt`, so an open\n * modal leaves it out of the inert pass and never treats a click on a\n * toast as `pointerDownOutside`. A confirmation / error toast stays\n * interactive over the modal and clicking it does not dismiss the modal.\n * - `'inert'` — the viewport drops the marker, so the modal inerts it like\n * any other background sibling and a click on a toast dismisses the modal.\n * Use it for low-priority / system toasts that should sit behind a\n * critical dialog rather than steal attention from it.\n */\n overModal: 'peer' | 'inert';\n /**\n * Default `null`. Motion applied to the toasts a mutation of the stack\n * pushes to a new position, for viewports that don't set `[stackShift]`\n * locally. `null` keeps the reflow synchronous; a bare number is shorthand\n * for `{ duration }`.\n */\n stackShift: ForToastStackShift | number | null;\n}\n\n/**\n * Library fallback for toast defaults, read at the root injector when no\n * consumer has called `provideForToastDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOAST_FALLBACK_DEFAULTS: ForToastDefaults = {\n duration: 5000,\n hotkey: 'F6',\n maxVisible: Infinity,\n viewportAriaLabel: 'Notifications',\n closeAriaLabel: 'Close',\n overModal: 'peer',\n stackShift: null,\n};\n\n/**\n * Token holding the resolved toast defaults for the current injector scope.\n * The library always provides a fully-populated value (the fallback at the\n * root, or the merged result of the nearest `provideForToastDefaults`).\n */\nexport const FOR_TOAST_DEFAULTS = new InjectionToken<ForToastDefaults>('FOR_TOAST_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOAST_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toast defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToastDefaults(\n defaults: Partial<ForToastDefaults> | (() => Partial<ForToastDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOAST_DEFAULTS, FOR_TOAST_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant toggle groups in the surrounding injector\n * scope. Configure with `provideForToggleDefaults` either at the application\n * root or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForToggleDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * toggle-group item. Mirrors `ForRadioGroup`'s `loop` default.\n */\n loop: boolean;\n /**\n * Whether a single-mode toggle group lets the user clear its selection by\n * pressing the pressed item. Multi-mode groups ignore it.\n */\n deselectable: boolean;\n}\n\n/**\n * Library fallback for toggle defaults, read at the root injector when no\n * consumer has called `provideForToggleDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOGGLE_FALLBACK_DEFAULTS: ForToggleDefaults = {\n loop: true,\n deselectable: true,\n};\n\n/** Token holding the resolved toggle defaults for the current scope. */\nexport const FOR_TOGGLE_DEFAULTS = new InjectionToken<ForToggleDefaults>('FOR_TOGGLE_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOGGLE_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toggle defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToggleDefaults(\n defaults: Partial<ForToggleDefaults> | (() => Partial<ForToggleDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOGGLE_DEFAULTS, FOR_TOGGLE_FALLBACK_DEFAULTS, defaults);\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant toolbars in the surrounding injector\n * scope. Configure with `provideForToolbarDefaults` either at the\n * application root or in any component's `providers` array; partial\n * overrides merge with the parent scope.\n */\nexport interface ForToolbarDefaults {\n /**\n * Whether arrow navigation wraps around past the first / last enabled\n * item. Matches the WAI-ARIA Toolbar APG default.\n */\n loop: boolean;\n}\n\n/**\n * Library fallback for toolbar defaults, read at the root injector when no\n * consumer has called `provideForToolbarDefaults`. Exported for the shared defaults\n * contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOOLBAR_FALLBACK_DEFAULTS: ForToolbarDefaults = {\n loop: true,\n};\n\n/** Token holding the resolved toolbar defaults for the current scope. */\nexport const FOR_TOOLBAR_DEFAULTS = new InjectionToken<ForToolbarDefaults>('FOR_TOOLBAR_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOOLBAR_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk toolbar defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForToolbarDefaults(\n defaults: Partial<ForToolbarDefaults> | (() => Partial<ForToolbarDefaults>) = {},\n): Provider[] {\n return provideDefaults(FOR_TOOLBAR_DEFAULTS, FOR_TOOLBAR_FALLBACK_DEFAULTS, defaults);\n}\n","import { inject, Injectable, InjectionToken, type Provider } from '@angular/core';\n\nimport type {\n AnchoredPositioningSeedDefaults,\n FloatingAlign,\n FloatingSide,\n} from 'forty-cdk/core-anchored';\n\nimport { provideDefaults } from './defaults';\nimport { SkipDelayCoordinator, provideSkipDelayScope } from './skip-delay';\n\n/**\n * Defaults that descendant tooltips inherit from their injector scope.\n * Configure with `provideForTooltipDefaults` either at the application root\n * or in any component's `providers` array; partial overrides merge with\n * the parent scope.\n */\nexport interface ForTooltipDefaults extends AnchoredPositioningSeedDefaults {\n /** Open delay (ms) for tooltips that don't override `openDelay` locally. */\n openDelay: number;\n /** Close delay (ms) for tooltips that don't override `closeDelay` locally. */\n closeDelay: number;\n /**\n * Window (ms) after a peer tooltip in this scope closes during which\n * the next open is instant — keeps toolbar-style tooltips from feeling\n * sluggish on cursor movement between targets.\n */\n skipDelayDuration: number;\n /**\n * Side the tooltip is anchored to for tooltips that don't override\n * `side` locally. Library fallback `'top'`.\n */\n side: FloatingSide;\n /**\n * Alignment along the chosen `side` for tooltips that don't override\n * `align` locally. Library fallback `'center'`.\n */\n align: FloatingAlign;\n /**\n * Gap (px) between trigger and content along the main axis for tooltips\n * that don't override `sideOffset` locally.\n * Library fallback `8`.\n */\n sideOffset: number;\n /**\n * Padding (px) applied uniformly to the `flip`, `shift`, and `size`\n * middlewares for tooltips that don't override `collisionPadding`\n * locally. Library fallback `8`.\n */\n collisionPadding: number;\n /**\n * Padding (px) keeping the `[forTooltipArrow]` element that far from the\n * edges of the content, for tooltips that don't override `arrowPadding`\n * locally. Only consulted when an arrow is registered — floating-ui installs\n * the `arrow` middleware only then. Library fallback `0`.\n */\n arrowPadding: number;\n /**\n * Whether tooltips show only when the trigger's own text is truncated\n * (`scrollWidth > clientWidth`), for tooltips that don't override\n * `showOnOverflow` locally. Library fallback `false`.\n */\n showOnOverflow: boolean;\n /**\n * Whether the pointer may move into the content without dismissing the\n * tooltip, for tooltips that don't override `hoverableContent` locally.\n * Library fallback `true`, which satisfies the WCAG 2.1 SC 1.4.13\n * \"Hoverable\" requirement by default; opt out per scope with\n * `provideForTooltipDefaults({ hoverableContent: false })`.\n */\n hoverableContent: boolean;\n}\n\n/**\n * Library fallback for tooltip defaults, read at the root injector when no\n * consumer has called `provideForTooltipDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n */\nexport const FOR_TOOLTIP_FALLBACK_DEFAULTS: ForTooltipDefaults = {\n openDelay: 700,\n closeDelay: 300,\n skipDelayDuration: 300,\n side: 'top',\n align: 'center',\n sideOffset: 8,\n collisionPadding: 8,\n arrowPadding: 0,\n showOnOverflow: false,\n hoverableContent: true,\n};\n\n/** Token holding the resolved tooltip defaults for the current scope. */\nexport const FOR_TOOLTIP_DEFAULTS = new InjectionToken<ForTooltipDefaults>('FOR_TOOLTIP_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TOOLTIP_FALLBACK_DEFAULTS,\n});\n\n/**\n * The skip-delay window of a tooltip scope: right after a tooltip in the scope\n * closes, the next one opens without its open delay for `skipDelayDuration`\n * ms. `provideForTooltipDefaults` decides whether a scope starts its own\n * window or shares its parent's; no hover-card scope ever shares it.\n */\n@Injectable({ providedIn: 'root' })\nexport class TooltipCoordinator extends SkipDelayCoordinator {\n constructor() {\n super(inject(FOR_TOOLTIP_DEFAULTS));\n }\n}\n\n/** Options for a `provideForTooltipDefaults` call. */\nexport interface TooltipDefaultsOptions {\n /**\n * Whether the scope shares its parent's skip-delay window (`'inherit'`) or\n * starts its own (`'own'`). When omitted, a call that sets `openDelay`,\n * `closeDelay` or `skipDelayDuration` starts its own and any other call\n * shares its parent's. A scope that shares its parent's window keeps the\n * parent's `skipDelayDuration` for it; its own `openDelay` and `closeDelay`\n * apply either way.\n */\n skipDelayScope?: 'inherit' | 'own';\n}\n\n/**\n * Configures forty-cdk tooltip defaults for this injector scope.\n * Partial overrides inherit unspecified keys from the parent scope (or\n * library defaults at the root). Peer tooltips that share a skip-delay window\n * open instantly right after one of them closes; tooltips in scopes with\n * different windows don't. See `TooltipDefaultsOptions.skipDelayScope` for\n * when a call starts a new window.\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n *\n * @example\n * ```ts\n * // application-level\n * bootstrapApplication(App, {\n * providers: [provideForTooltipDefaults({ openDelay: 500 })],\n * });\n *\n * // component-level override (e.g. a toolbar with its own cadence and window)\n * @Component({\n * providers: [provideForTooltipDefaults({ skipDelayDuration: 100 })],\n * ...\n * })\n * class Toolbar {}\n *\n * // placement-only override, still sharing the application's window\n * @Component({\n * providers: [provideForTooltipDefaults({ side: 'right' })],\n * ...\n * })\n * class Sidebar {}\n * ```\n */\nexport function provideForTooltipDefaults(\n defaults: Partial<ForTooltipDefaults> | (() => Partial<ForTooltipDefaults>) = {},\n options: TooltipDefaultsOptions = {},\n): Provider[] {\n return provideSkipDelayScope(\n TooltipCoordinator,\n (overrides) => provideDefaults(FOR_TOOLTIP_DEFAULTS, FOR_TOOLTIP_FALLBACK_DEFAULTS, overrides),\n defaults,\n options.skipDelayScope,\n );\n}\n","import { InjectionToken, type Provider } from '@angular/core';\n\nimport { provideDefaults } from './defaults';\n\n/**\n * Defaults inherited by descendant trees in the surrounding injector scope.\n * Configure with `provideForTreeDefaults` either at the application root or in\n * any component's `providers` array; partial overrides merge with the parent\n * scope.\n */\nexport interface ForTreeDefaults {\n /**\n * Single-mode only: when `true`, every keyboard focus move (arrow\n * navigation, entering a child, leaving to the parent, a typeahead match)\n * also selects the focused node. A tree with `multiple` or\n * `selectionMode=\"checkbox\"` ignores it, so a scope default never replaces\n * its checked set, and a virtualized tree (`[forTreeVirtualized]` with\n * `totalCount` set) does not inherit it. APG calls this optional and recommends\n * caution — leave `false` unless the UX truly benefits from selection following focus.\n */\n selectionFollowsFocus: boolean;\n /**\n * `[forTreeNodeDrag]` announcement when a node is picked up for drag\n * (assertive). Override to localize.\n */\n dragAnnounceLift: (label: string) => string;\n /**\n * `[forTreeNodeDrag]` announcement on each intermediate move while a node is\n * lifted (polite). `position` / `total` are 1-based; `parentLabel` is `null`\n * at the root, so the consumer phrases the root-vs-parent distinction in\n * their own language. `total` is `null` for a drop into a collapsed parent,\n * whose children are not rendered and cannot be counted. Override to localize.\n */\n dragAnnounceMove: (\n label: string,\n parentLabel: string | null,\n position: number,\n total: number | null,\n ) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a node is committed to its new\n * position (assertive). `position` / `total` are 1-based; `parentLabel` is\n * `null` at the root, and `total` is `null` for a drop into a collapsed\n * parent. Override to localize.\n */\n dragAnnounceDrop: (\n label: string,\n parentLabel: string | null,\n position: number,\n total: number | null,\n ) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a lift is cancelled and the node\n * returns to its origin (assertive). Override to localize.\n */\n dragAnnounceCancel: (label: string) => string;\n /**\n * `[forTreeNodeDrag]` announcement when a `canDrop` veto rejects the\n * attempted drop (assertive). Override to localize.\n */\n dragAnnounceInvalid: (label: string) => string;\n}\n\n/**\n * Library fallback for tree defaults, read at the root injector when no\n * consumer has called `provideForTreeDefaults`. Exported for the shared\n * defaults contract spec; not re-exported from the primitive's public entry.\n *\n * The drag announcement formatters mirror the lift / move / drop / cancel\n * cadence the drag-drop and listbox coordinators use, so a consumer hears\n * consistent reorder announcements across primitives. Defining them inside the\n * tree's own defaults (rather than importing `FOR_DRAG_DROP_DEFAULTS` /\n * `FOR_LISTBOX_DEFAULTS`) keeps `[forTreeNodeDrag]` from pulling in those\n * primitives.\n */\nexport const FOR_TREE_FALLBACK_DEFAULTS: ForTreeDefaults = {\n selectionFollowsFocus: false,\n dragAnnounceLift: (label) =>\n `Picked up ${label}. Use arrow keys to move, Space to drop, Escape to cancel.`,\n dragAnnounceMove: (label, parentLabel, position, total) => {\n const parentPart = parentLabel ? `under ${parentLabel}, ` : 'at root, ';\n const totalPart = total === null ? '' : ` of ${total}`;\n return `${label}: ${parentPart}position ${position}${totalPart}.`;\n },\n dragAnnounceDrop: (label, parentLabel, position, total) => {\n const parentPart = parentLabel ? `under ${parentLabel}, ` : 'at root, ';\n const totalPart = total === null ? '' : ` of ${total}`;\n return `Dropped ${label} ${parentPart}position ${position}${totalPart}.`;\n },\n dragAnnounceCancel: (label) => `Cancelled. ${label} returned to its original position.`,\n dragAnnounceInvalid: (label) => `Cannot drop ${label} here.`,\n};\n\n/** Token holding the resolved tree defaults for the current scope. */\nexport const FOR_TREE_DEFAULTS = new InjectionToken<ForTreeDefaults>('FOR_TREE_DEFAULTS', {\n providedIn: 'root',\n factory: () => FOR_TREE_FALLBACK_DEFAULTS,\n});\n\n/**\n * Configures forty-cdk tree defaults for this injector scope. Partial\n * overrides inherit unspecified keys from the parent scope (or library\n * defaults at the root).\n *\n * Pass a function instead of an object to build the overrides where\n * `inject()` is available; it runs once per injector that resolves the\n * defaults.\n */\nexport function provideForTreeDefaults(\n defaults: Partial<ForTreeDefaults> | (() => Partial<ForTreeDefaults>) =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