@cngx/ui 0.1.0-rc.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cngx-ui-tabs.mjs","sources":["../../../projects/ui/tabs/tab-group.component.ts","../../../projects/ui/tabs/tab-group.component.html","../../../projects/ui/tabs/tab-nav.component.ts","../../../projects/ui/tabs/tab-nav.component.html","../../../projects/ui/tabs/tab-overflow.component.ts","../../../projects/ui/tabs/tab-overflow.component.html","../../../projects/ui/tabs/public-api.ts","../../../projects/ui/tabs/cngx-ui-tabs.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n contentChild,\n contentChildren,\n ElementRef,\n inject,\n Injector,\n input,\n isDevMode,\n linkedSignal,\n signal,\n type Signal,\n type TemplateRef,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport { CNGX_FOCUSABLE_SELECTOR, CngxFocusRestore, CngxLiveRegion } from '@cngx/common/a11y';\nimport {\n CNGX_DIRECTIVE_BY_ID_MAP_FACTORY,\n CNGX_ORGANISM_SCROLL_SYNC_FACTORY,\n CNGX_TABS_GLYPHS,\n CNGX_TAB_GROUP_HOST,\n CNGX_TAB_PANEL_HOST,\n CngxTab,\n CngxTabAddIcon,\n CngxTabBusySpinner,\n CngxTabCloseIcon,\n CngxTabErrorBadge,\n CngxTabGroupPresenter,\n CngxTabIcon,\n CngxTabRejectionIcon,\n createTabDismissals,\n createTabGroupAnnouncements,\n createTabGroupTemplateBindings,\n createTabKeyboardNav,\n createTabsHostAttrs,\n injectTabsConfig,\n injectTabsI18n,\n type CngxTabBusySpinnerContext,\n type CngxTabDismissals,\n type CngxTabKeyboardNav,\n type CngxTabErrorBadgeContext,\n type CngxTabGroupAnnouncements,\n type CngxTabGroupTemplateBindings,\n type CngxTabHandle,\n type CngxTabAlign,\n type CngxTabIconContext,\n type CngxTabIconLayout,\n type CngxTabPanelHost,\n type CngxTabRejectionIconContext,\n type CngxTabsHostAttrs,\n type CngxTabsPanelMode,\n type CngxTabsSkin,\n} from '@cngx/common/tabs';\n\n/**\n * CNGX tab-group organism. \\\n * Thin shell over {@link CngxTabGroupPresenter}\n * and `CngxFocusRestore` via `hostDirectives`. The APG tablist keyboard\n * model (automatic activation: arrow keys move focus AND select; Home/End\n * jump to first/last; the active tab is the lone tab stop) lives in\n * {@link createTabKeyboardNav}, deriving the roving stop from the\n * presenter's `activeId` rather than a competing index. Material variant\n * lives at `[cngxMatTabs]` in `@cngx/ui/mat-tabs`.\n *\n * All ARIA attrs are signal-driven - never one-shot bindings.\n * `CngxLiveRegion` is mounted as a child `<span>` rather than a\n * host directive: its `role=\"status\"` would clobber the wrapper's\n * `role=\"group\"` landmark.\n *\n * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts\n * @playground Overflow \"More\" menu under resize ./examples/overflow-resize/overflow-resize.component.ts\n * @playground Async commit-action (optimistic / pessimistic) ./examples/async-commit/async-commit.component.ts\n * @playground Dismissable + addable tabs ./examples/dynamic-tabs/dynamic-tabs.component.ts\n * @playground Data-driven tabs via HTTP (Material) ./examples/http-commit/http-commit-material.component.ts\n * @playground Data-driven tabs via HTTP (default theme) ./examples/http-commit/http-commit-plain.component.ts\n * @playground Form error aggregation ./examples/form-errors/form-errors.component.ts\n * @playground Routed tabs with a CanDeactivate guard ./examples/routed-outlet/routed-outlet.component.ts\n * @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.\n *\n * @category ui/tabs\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts\n * @since 0.1.0\n * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore\n * @slot cngxTabIcon Replaces a tab's leading icon; gets the tab.\n * @slot cngxTabAddIcon Replaces the glyph on the add-tab control.\n * @slot cngxTabCloseIcon Replaces the glyph on a tab's close control.\n * @slot cngxTabErrorBadge Marks a tab whose panel holds validation errors.\n * @slot cngxTabBusySpinner Rendered on a tab while its switch commits.\n * @slot cngxTabRejectionIcon Marks a tab whose switch was refused.\n * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/contained</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/line</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/vertical-skins</example-url>\n */\n@Component({\n selector: 'cngx-tab-group',\n exportAs: 'cngxTabGroup',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, CngxLiveRegion],\n styleUrls: ['../../common/tabs/styles/tabs-base.css', './tab-group.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxTabGroupPresenter,\n inputs: ['activeIndex', 'orientation', 'loop', 'commitAction', 'commitMode'],\n outputs: ['activeIndexChange', 'tabClose', 'tabAdd'],\n },\n { directive: CngxFocusRestore },\n ],\n providers: [{ provide: CNGX_TAB_PANEL_HOST, useExisting: CngxTabGroup }],\n templateUrl: './tab-group.component.html',\n host: {\n class: 'cngx-tab-group',\n role: 'group',\n '[attr.aria-roledescription]': 'announcements.tabsRoleDescription()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.data-skin]': 'hostAttrs.resolvedSkin()',\n '[attr.data-icon-layout]': 'hostAttrs.resolvedIconLayout()',\n '[attr.data-panel-mode]': 'hostAttrs.resolvedPanelMode()',\n '[attr.data-fitted]': \"hostAttrs.resolvedFitted() ? '' : null\",\n '[attr.data-tab-align]': 'hostAttrs.resolvedTabAlign()',\n '[attr.aria-label]': 'announcements.resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[class.cngx-tabs]': 'true',\n },\n})\nexport class CngxTabGroup implements CngxTabPanelHost {\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /**\n * Visual skin. Cascade `input ?? config ?? 'line'`, resolved by\n * {@link hostAttrs} and reflected onto `[data-skin]`. The skin is a\n * pure CSS concern - structure, slots, ARIA, and keyboard behaviour\n * are identical across all values. Public (consumer-facing input,\n * like `ariaLabel`); the resolved value, not the raw input, is what\n * the host binding reads.\n */\n readonly skin = input<CngxTabsSkin | undefined>(undefined);\n /**\n * Icon layout. Cascade `input ?? config ?? 'start'`, reflected onto\n * `[data-icon-layout]`. Orthogonal to skin and orientation.\n */\n readonly iconLayout = input<CngxTabIconLayout | undefined>(undefined);\n /**\n * Panel render strategy. Cascade `input ?? config ?? 'eager'`,\n * reflected onto `[data-panel-mode]`. `'eager'` (default) renders every\n * panel's content up front (byte-identical to before this input\n * existed); `'lazy'` keep-alives content after first activation;\n * `'lazy-destroy'` renders only the active panel's content. The panel\n * `<div>` always stays in the DOM regardless.\n */\n readonly panelMode = input<CngxTabsPanelMode | undefined>(undefined);\n /** Stretch tabs to fill the strip width (horizontal only); reflects `[data-fitted]`. Cascade `input ?? config ?? false`. */\n readonly fitted = input<boolean | undefined>(undefined);\n /** Tab-cluster alignment when not fitted (horizontal only); reflects `[data-tab-align]`. Cascade `input ?? config ?? 'start'`. */\n readonly tabAlign = input<CngxTabAlign | undefined>(undefined);\n /**\n * Whether tabs render a close affordance. Cascade\n * `input ?? config ?? false`. A per-`CngxTab` `[closable]` override\n * wins over this group default. When on, each closable tab gets a\n * close button (and Delete on the focused tab closes it); the\n * `(tabClose)` output fires with the tab id and index for the\n * consumer to remove from its data.\n */\n readonly closable = input<boolean | undefined>(undefined);\n /**\n * Whether the group renders an add-tab button after the strip. Cascade\n * `input ?? config ?? false`. When on, the `(tabAdd)` output fires for\n * the consumer to append a tab to its data.\n */\n readonly addable = input<boolean | undefined>(undefined);\n\n protected readonly presenter = inject(CNGX_TAB_GROUP_HOST);\n protected readonly i18n = injectTabsI18n();\n protected readonly config = injectTabsConfig();\n /** Default-glyph table for the template's fallback spans. */\n protected readonly glyphs = CNGX_TABS_GLYPHS;\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly injector = inject(Injector);\n private readonly tabDirectives = contentChildren(CngxTab, {\n descendants: true,\n });\n\n /**\n * Per-instance skin slots. Resolved via 3-stage cascade in {@link templates}:\n * `*cngxTab*` directive > `CNGX_TABS_CONFIG.templates.<key>` > built-in.\n * AOT (NG8110) requires `contentChild()` to be a direct field initialiser\n * on the variant - cascade resolution is delegated to the factory.\n */\n private readonly errorBadgeSlot = contentChild(CngxTabErrorBadge);\n private readonly rejectionIconSlot = contentChild(CngxTabRejectionIcon);\n private readonly busySpinnerSlot = contentChild(CngxTabBusySpinner);\n private readonly iconSlot = contentChild(CngxTabIcon);\n private readonly closeIconSlot = contentChild(CngxTabCloseIcon);\n private readonly addIconSlot = contentChild(CngxTabAddIcon);\n\n /**\n * Dismissable / addable affordance surface (close + add resolution,\n * close interaction, focus restoration). Level-2 helper keeps the\n * cascade + handlers off the organism class (LOC guard).\n */\n protected readonly dismiss: CngxTabDismissals = createTabDismissals({\n host: this.presenter,\n config: this.config,\n i18n: this.i18n,\n closable: this.closable,\n addable: this.addable,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n\n /**\n * APG tablist keyboard model (automatic activation). Owns arrow / Home /\n * End resolution, the `host.select()` activation, and focus movement;\n * derives each tab's roving `tabindex` from the presenter's `activeId`\n * (single source of truth). Level-2 helper keeps the keyboard logic off\n * the organism class (LOC guard).\n */\n protected readonly keyboard: CngxTabKeyboardNav = createTabKeyboardNav({\n host: this.presenter,\n hostElement: this.hostElement,\n direction: injectDirection(),\n injector: this.injector,\n });\n\n /**\n * AT-announcement bundle from `@cngx/common/tabs/announcements/`.\n * Owns role descriptions, resolved aria-label, live-region phrasing,\n * and the prior-active-index `linkedSignal` driving the success-arm\n * direction prefix.\n */\n protected readonly announcements: CngxTabGroupAnnouncements = createTabGroupAnnouncements({\n presenter: this.presenter,\n i18n: this.i18n,\n config: this.config,\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n closedAnnouncement: this.dismiss.closedAnnouncement,\n });\n\n /**\n * Resolved skin / icon-layout cascade (`input ?? config ?? default`),\n * read by the `[data-skin]` / `[data-icon-layout]` host bindings. The\n * Level-2 helper keeps the cascade off the organism class (LOC guard).\n */\n protected readonly hostAttrs: CngxTabsHostAttrs = createTabsHostAttrs({\n skin: this.skin,\n iconLayout: this.iconLayout,\n panelMode: this.panelMode,\n fitted: this.fitted,\n tabAlign: this.tabAlign,\n config: this.config,\n });\n\n /**\n * Whether the active panel contains a natively-focusable descendant.\n * Resolved by a post-render DOM probe (the only way to know - the\n * panel content is consumer-projected). Drives {@link panelTabindex}:\n * a panel with no focusable child earns one tab stop so keyboard users\n * can still reach its content (APG tabpanel pattern); a panel that\n * already has reachable content does not (no redundant stop). Boolean\n * with default `Object.is`, so a stable probe never re-triggers CD.\n */\n private readonly activePanelHasFocusable = signal(false);\n\n constructor() {\n // Self-healing scroll loop: activeId change -> scrollIntoView ->\n // overflow IO sees new visibility -> More dropdown self-trims.\n // Policy is swappable via CNGX_ORGANISM_SCROLL_SYNC_FACTORY.\n inject(CNGX_ORGANISM_SCROLL_SYNC_FACTORY)({\n activeId: this.presenter.activeId,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n\n // APG tabpanel focus probe. afterRenderEffect re-runs after render\n // whenever its tracked dep (the active panel id) changes - i.e. on\n // every tab switch, which is when the active panel (always rendered\n // in every panelMode) gets its current content. Reading the DOM is\n // the only way to know whether the consumer-projected content is\n // focusable. The boolean set is not read inside the effect, so it\n // never re-triggers itself, and its default Object.is equality makes\n // a stable probe a no-op. Scope: content that mutates inside the\n // already-active panel without a tab switch (late async content) is\n // not re-probed - an accepted heuristic limit, not a correctness bug.\n afterRenderEffect(() => {\n // Tracked: re-probe when the active panel changes.\n this.presenter.activeId();\n const panel = this.hostElement.querySelector<HTMLElement>('.cngx-tabs__panel:not([hidden])');\n this.activePanelHasFocusable.set(panel?.querySelector(CNGX_FOCUSABLE_SELECTOR) != null);\n });\n\n if (isDevMode()) {\n // One-shot post-mount check: icon-only hides the label, so a\n // missing *cngxTabIcon template leaves the tab visually empty.\n // afterNextRender runs once, off the reactive graph.\n afterNextRender(() => {\n if (this.hostAttrs.resolvedIconLayout() === 'only' && !this.iconSlot()) {\n console.warn(\n \"[cngx-tab-group] iconLayout='only' but no *cngxTabIcon template \" +\n 'is provided - tabs render no icon and the label is visually ' +\n \"hidden. Provide an <ng-template cngxTabIcon> or use 'start' / 'end' / 'top'.\",\n );\n }\n });\n }\n }\n\n // Map<id, CngxTab> for O(1) labelTemplateFor / contentTemplateFor.\n // Structural equal on id-set + directive identity prevents cascade\n // on shape-stable contentChildren re-emissions.\n private readonly tabDirectiveById = inject(CNGX_DIRECTIVE_BY_ID_MAP_FACTORY)({\n source: this.tabDirectives,\n });\n\n /**\n * Resolved 3-stage cascade for `errorBadge`, `rejectionIcon`,\n * `busySpinner`, `icon`. `null` -> render built-in default (or, for\n * `icon`, render nothing).\n */\n protected readonly templates: CngxTabGroupTemplateBindings = createTabGroupTemplateBindings({\n errorBadgeSlot: this.errorBadgeSlot,\n rejectionIconSlot: this.rejectionIconSlot,\n busySpinnerSlot: this.busySpinnerSlot,\n iconSlot: this.iconSlot,\n closeIconSlot: this.closeIconSlot,\n addIconSlot: this.addIconSlot,\n config: this.config,\n });\n\n readonly tabs: Signal<readonly CngxTabHandle[]> = this.presenter.tabs;\n readonly activeIndex: Signal<number> = this.presenter.activeIndex;\n readonly activeId: Signal<string | null> = this.presenter.activeId;\n readonly orientation: Signal<'horizontal' | 'vertical'> = this.presenter.orientation;\n\n protected isSelected(tab: CngxTabHandle): boolean {\n return tab.id === this.activeId();\n }\n\n protected isTabBusy(tab: CngxTabHandle): boolean {\n if (this.presenter.commitState.status() !== 'pending') {\n return false;\n }\n const intended = this.presenter.intendedIndex();\n if (intended === undefined) {\n return false;\n }\n return this.tabs()[intended]?.id === tab.id;\n }\n\n protected tabHeaderId(tab: CngxTabHandle): string {\n return `${tab.id}-header`;\n }\n\n protected tabPanelId(tab: CngxTabHandle): string {\n return `${tab.id}-panel`;\n }\n\n /**\n * APG tabpanel `tabindex`: `0` only when the selected panel has no\n * focusable descendant (so its content is keyboard-reachable from the\n * tablist), else `null` - never a redundant tab stop. Inactive panels\n * are `null` (they are `[hidden]`).\n */\n protected panelTabindex(tab: CngxTabHandle): 0 | null {\n return this.isSelected(tab) && !this.activePanelHasFocusable() ? 0 : null;\n }\n\n /**\n * Keep-alive set for `panelMode='lazy'`: the ids of every tab that has\n * ever been activated. Derived history (Pillar 1) - a `linkedSignal`\n * accumulating onto its own previous value as `activeId` moves, NOT an\n * `effect` that writes a set. The structural `equal` (size + membership)\n * means re-activating an already-seen tab returns an equal set, so the\n * reference is stable and downstream `shouldRenderContent` reads do not\n * churn. Unbounded by design: `lazy` trades retention (every visited\n * panel's content stays alive for the directive's life) for keep-alive;\n * the set is bounded by tab count, and `lazy-destroy` is the bounded\n * alternative when retention is unwanted.\n */\n private readonly seenIds = linkedSignal<string | null, ReadonlySet<string>>({\n source: () => this.presenter.activeId(),\n computation: (id, prev) => {\n const next = new Set(prev?.value ?? []);\n if (id != null) {\n next.add(id);\n }\n return next;\n },\n equal: (a, b) => a.size === b.size && [...a].every((x) => b.has(x)),\n });\n\n /**\n * Whether a tab's panel content should be rendered now. The panel\n * `<div>` is always in the DOM (the `aria-controls` target); only its\n * inner content is gated. `eager` is byte-identical to the original\n * behaviour (everything rendered, visibility toggled via `[hidden]`).\n */\n protected shouldRenderContent(tab: CngxTabHandle): boolean {\n switch (this.hostAttrs.resolvedPanelMode()) {\n case 'lazy':\n return this.seenIds().has(tab.id);\n case 'lazy-destroy':\n return this.isSelected(tab);\n default:\n return true;\n }\n }\n\n protected tabDescriptorId(tab: CngxTabHandle): string {\n return `${tab.id}-desc`;\n }\n\n /**\n * `aria-describedby` for a tab header: the descriptor id while the\n * status phrase (error state) is non-empty, else `null`. The sr-only\n * descriptor span stays in the DOM; only the reference is gated -\n * accname 1.2 §2A traverses a directly-referenced node even when it\n * is empty or hidden.\n */\n protected tabDescribedBy(tab: CngxTabHandle): string | null {\n return this.announcements.statusPhrase(tab) ? this.tabDescriptorId(tab) : null;\n }\n\n /**\n * `true` when the tab is in error - the folded `hasError` (direct\n * `[error]` flag OR the aggregator's reveal-gated `shouldShow()`), so\n * a direct-error tab lights the badge without an aggregator while\n * deferred-reveal aggregators stay silent until revealed.\n */\n protected showErrorBadge(tab: CngxTabHandle): boolean {\n return tab.hasError();\n }\n\n /**\n * Context for `*cngxTabIcon`. Allocates fresh per CD - `active` is\n * reactive (selection), and `*ngTemplateOutlet` only re-evaluates\n * `let-*` bindings when the context reference changes (`Object.is`\n * input-diff); a `WeakMap`-cached object with a mutated `active`\n * would leave consumer bindings stale. Same pattern as\n * {@link busySpinnerContextFor}.\n */\n protected iconContextFor(tab: CngxTabHandle, index: number): CngxTabIconContext {\n return { tab, active: this.isSelected(tab), index };\n }\n\n /**\n * Stable per-tab `*cngxTabErrorBadge` context cache. Context is\n * `{ tab }` only (no reactive fields), so a `WeakMap` keeps the\n * reference stable and lets `*ngTemplateOutlet`'s `Object.is`\n * input-diff short-circuit the embedded-view rebind.\n */\n private readonly errorBadgeContextCache = new WeakMap<CngxTabHandle, CngxTabErrorBadgeContext>();\n\n /** `WeakMap`-cached context for `*cngxTabErrorBadge`. Stable ref per tab. */\n protected errorBadgeContextFor(tab: CngxTabHandle): CngxTabErrorBadgeContext {\n let ctx = this.errorBadgeContextCache.get(tab);\n if (!ctx) {\n ctx = { tab };\n this.errorBadgeContextCache.set(tab, ctx);\n }\n return ctx;\n }\n\n /**\n * Context for `*cngxTabBusySpinner`. Allocates fresh per CD -\n * `intendedIndex` is reactive, and `*ngTemplateOutlet` only\n * re-evaluates `let-*` bindings when the context reference changes\n * (`Object.is` input-diff); a cached mutated object would leave\n * consumer bindings stale. `intendedIndex` is non-undefined by gate\n * - `isTabBusy(tab)` returning `true` requires it.\n */\n protected busySpinnerContextFor(tab: CngxTabHandle): CngxTabBusySpinnerContext {\n return { tab, intendedIndex: this.presenter.intendedIndex() ?? -1 };\n }\n\n /**\n * Context for `*cngxTabRejectionIcon`. `originLabel` matches the\n * `liveAnnouncement` priority chain so visual + SR phrasing align.\n * Allocates fresh per CD for the same reason as\n * {@link busySpinnerContextFor}.\n */\n protected rejectionIconContextFor(failedIndex: number): CngxTabRejectionIconContext {\n const originIdx = this.presenter.originIndexDuringCommit();\n const originLabel =\n originIdx !== undefined ? this.presenter.tabs()[originIdx]?.label() : undefined;\n return { failedIndex, originLabel };\n }\n\n protected handleHeaderClick(tab: CngxTabHandle): void {\n if (tab.disabled()) {\n return;\n }\n const idx = this.tabs().findIndex((t) => t.id === tab.id);\n if (idx >= 0) {\n this.presenter.select(idx);\n }\n }\n\n /**\n * Roving `tabindex` for a tab button: `0` for the active tab, `-1` for\n * the rest, so the tablist is a single tab stop (APG) and `Tab` lands\n * on the active tab. Derived in {@link keyboard} from `activeId`.\n */\n protected tabTabindex(tab: CngxTabHandle): 0 | -1 {\n return this.keyboard.tabTabindex(tab);\n }\n\n /**\n * Single `(keydown)` entry for a tab button: APG navigation\n * (arrows / Home / End, automatic activation) first, then Delete-to-close\n * when navigation did not consume the event.\n */\n protected handleTabKeydown(tab: CngxTabHandle, event: KeyboardEvent): void {\n this.keyboard.handleKeydown(event);\n if (event.defaultPrevented) {\n return;\n }\n this.dismiss.handleTabKeydown(tab, event);\n }\n\n // CngxTabPanelHost contract - presenter owns clamping, disabled-skip,\n // commit-action gating.\n selectById(id: string): void {\n this.presenter.selectById(id);\n }\n\n /**\n * Clear the presenter's `lastFailedIndex` rejection flag - exposed\n * so template-ref consumers (`#tg=\"cngxTabGroup\"`) can dismiss the\n * decoration without injecting the host token.\n */\n clearLastFailed(): void {\n this.presenter.clearLastFailed();\n }\n\n labelTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;\n }\n\n subLabelTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.subLabelTemplate()?.templateRef ?? null;\n }\n\n contentTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;\n }\n}\n","<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n <div class=\"cngx-tabs__tab-wrapper\" role=\"presentation\">\n <button\n type=\"button\"\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n [class.cngx-tabs__tab--closable]=\"dismiss.isTabClosable(tab)\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.tabindex]=\"tabTabindex(tab)\"\n [attr.aria-label]=\"announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescribedBy(tab)\"\n [attr.aria-keyshortcuts]=\"dismiss.isTabClosable(tab) ? 'Delete' : null\"\n (click)=\"handleHeaderClick(tab)\"\n (keydown)=\"handleTabKeydown(tab, $event)\"\n >\n @let iconTpl = templates.icon();\n @if (iconTpl) {\n <span class=\"cngx-tabs__icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"iconTpl; context: iconContextFor(tab, i)\"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-tabs__text\">\n <span class=\"cngx-tabs__label\">\n @let labelTpl = labelTemplateFor(tab.id);\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\">\n @if (subLabelTpl) {\n <ng-container *ngTemplateOutlet=\"subLabelTpl\"></ng-container>\n } @else {\n {{ tab.subLabel() }}\n }\n </span>\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\">{{\n glyphs.errorBadge\n }}</span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__rejection-icon\" aria-hidden=\"true\">{{\n glyphs.rejectionIcon\n }}</span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n @if (dismiss.isTabClosable(tab)) {\n <button\n type=\"button\"\n class=\"cngx-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismiss.closeButtonLabel(tab)\"\n (click)=\"dismiss.handleClose(tab, $event)\"\n >\n @let closeIconTpl = templates.closeIcon();\n @if (closeIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"closeIconTpl; context: dismiss.closeIconContextFor(tab)\"\n ></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.closeIcon }}</span>\n }\n </button>\n }\n </div>\n }\n</div>\n@if (dismiss.resolvedAddable()) {\n <button\n type=\"button\"\n class=\"cngx-tabs__add\"\n data-tab-add\n [attr.aria-label]=\"i18n().addTab\"\n (click)=\"dismiss.handleAdd()\"\n >\n @let addIconTpl = templates.addIcon();\n @if (addIconTpl) {\n <ng-container *ngTemplateOutlet=\"addIconTpl\"></ng-container>\n } @else {\n <span aria-hidden=\"true\">{{ glyphs.addIcon }}</span>\n }\n </button>\n}\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [attr.tabindex]=\"panelTabindex(tab)\"\n [hidden]=\"!isSelected(tab)\"\n >\n @if (shouldRenderContent(tab)) {\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n","import {\n ChangeDetectionStrategy,\n Component,\n Injector,\n ViewEncapsulation,\n computed,\n inject,\n input,\n type Signal,\n} from '@angular/core';\n\nimport { CngxLiveRegion } from '@cngx/common/a11y';\nimport {\n CNGX_TAB_GROUP_HOST,\n CNGX_TAB_NAV_HOST,\n CngxTabGroupPresenter,\n createTabNavAnnouncement,\n injectTabsConfig,\n type CngxTabsSkin,\n} from '@cngx/common/tabs';\n\n/**\n * CNGX tab-nav organism. \\\n * A `role=\"navigation\"` landmark that wraps consumer-authored\n * `<a cngxTabLink routerLink>` anchors into a tab bar. Native parallel of\n * `[cngxMatTabNav]` in `@cngx/ui/mat-tabs`, and the link-driven sibling of\n * the programmatic `<cngx-tab-group>` tablist: a navigation of natively\n * focusable links is a different WAI-ARIA pattern than an automatic-\n * activation tablist, so it is a separate organism, not a skin flag.\n *\n * Thin shell over {@link CngxTabGroupPresenter} via `hostDirectives` - the\n * registry, `activeIndex`, and `activeId` come from the same brain the\n * tablist organism and the Material bridge compose. There is no keyboard\n * model and no commit gating: links are natural `Tab` stops, `Enter`\n * activates the `routerLink`, and the router runs `CanDeactivate` natively.\n * Add `[cngxTabsRouteSync]` to drive the active link from the route - it\n * reflects `NavigationEnd` onto `activeIndex`; its commit-action stays\n * dormant because nothing here calls `presenter.select()`.\n *\n * `CngxLiveRegion` is mounted as a child `<span>` rather than a host\n * directive: its `role=\"status\"` would clobber the host's `role=\"navigation\"`\n * landmark. Its content is the active link's label (Pillar 2 - the active\n * change is announced).\n *\n * ```html\n * <cngx-tab-nav cngxTabsRouteSync aria-label=\"Sections\">\n * <a cngxTabLink id=\"overview\" routerLink=\"overview\">Overview</a>\n * <a cngxTabLink id=\"profile\" routerLink=\"profile\">Profile</a>\n * </cngx-tab-nav>\n * <router-outlet></router-outlet>\n * ```\n *\n * @playground Native router tabs with a CanDeactivate guard ./examples/routed-nav/routed-nav.component.ts\n * @see {@link CngxTabGroup} for the programmatic tablist organism.\n *\n * @category ui/tabs\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-nav.component.ts\n * @since 0.1.0\n * @relatedTo CngxTabLink, CngxTabsRouteSync, CngxTabGroup, CngxMatTabNav\n */\n@Component({\n selector: 'cngx-tab-nav',\n exportAs: 'cngxTabNav',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CngxLiveRegion],\n // Presence-only marker: it tells a stacked [cngxTabsRouteSync] that its\n // links own subtrees, so the URL match is prefix rather than suffix.\n providers: [{ provide: CNGX_TAB_NAV_HOST, useValue: true }],\n styleUrls: ['../../common/tabs/styles/tabs-base.css', './tab-nav.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxTabGroupPresenter,\n inputs: ['activeIndex', 'orientation'],\n outputs: ['activeIndexChange'],\n },\n ],\n templateUrl: './tab-nav.component.html',\n host: {\n class: 'cngx-tab-nav',\n role: 'navigation',\n '[attr.data-skin]': 'resolvedSkin()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n },\n})\nexport class CngxTabNav {\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /**\n * Visual skin. Cascade `input ?? config ?? 'line'`, reflected onto\n * `[data-skin]`. Resolved inline (single axis) rather than via\n * `createTabsHostAttrs`: that helper resolves five tablist axes the nav\n * does not use, so pulling it here would fabricate dead inputs - inline\n * resolution is Komposition statt Konfiguration (Pillar 3).\n */\n readonly skin = input<CngxTabsSkin | undefined>(undefined);\n\n protected readonly presenter = inject(CNGX_TAB_GROUP_HOST);\n private readonly config = injectTabsConfig();\n\n protected readonly resolvedSkin: Signal<CngxTabsSkin> = computed(\n () => this.skin() ?? this.config.skin ?? 'line',\n );\n\n /**\n * Polite live-region content. The brain stays linked from\n * `@cngx/common/tabs`, so a decomposed skin keeps receiving fixes to\n * the mount-window gate and the change detection instead of carrying a\n * frozen copy.\n */\n protected readonly liveAnnouncement: Signal<string> = createTabNavAnnouncement({\n presenter: this.presenter,\n injector: inject(Injector),\n }).liveAnnouncement;\n}\n","<ng-content></ng-content>\n<span class=\"cngx-tab-nav__live-region cngx-sr-only\" cngxLiveRegion>{{ liveAnnouncement() }}</span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n isDevMode,\n linkedSignal,\n untracked,\n viewChild,\n} from '@angular/core';\n\nimport { CngxActiveDescendant } from '@cngx/common/a11y';\nimport { CngxClickOutside } from '@cngx/common/interactive';\nimport { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';\nimport {\n CNGX_DOM_ANCHOR_RETRY_FACTORY,\n CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY,\n CNGX_TAB_PANEL_HOST,\n CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY,\n CngxTabOverflowItem,\n CngxTabOverflowTrigger,\n createTabOverflowTemplateBindings,\n injectTabsConfig,\n injectTabsI18n,\n tabOverflowOptionId,\n type CngxDomAnchorRetryHandle,\n type CngxTabHandle,\n type CngxTabPanelHost,\n} from '@cngx/common/tabs';\n\n/**\n * Structural equal for `hiddenTabs` - same ids in same order.\n *\n * @internal\n */\nfunction tabIdListEqual(a: readonly CngxTabHandle[], b: readonly CngxTabHandle[]): boolean {\n if (a === b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i].id !== b[i].id) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Auto-open keys for the trigger button (APG combobox).\n *\n * @internal\n */\nconst NAV_OPEN_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End']);\n\n/**\n * Structural equal for `visibilityState`. Without this, the\n * `update((prev) => new Map(prev))` cycle in `handleIntersections`\n * cascades into `hiddenTabs` on every IO fire even when no tab\n * actually flipped visibility.\n *\n * @internal\n */\nfunction mapBoolEqual(a: ReadonlyMap<string, boolean>, b: ReadonlyMap<string, boolean>): boolean {\n if (a === b) {\n return true;\n }\n if (a.size !== b.size) {\n return false;\n }\n for (const [key, value] of a) {\n if (b.get(key) !== value) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Opt-in overflow indicator for `<cngx-tab-group>`. Surfaces clipped\n * tab buttons through a \"More\" `CngxPopover` dropdown. Talks to the\n * organism only via {@link CNGX_TAB_PANEL_HOST}.\n *\n * Visibility is tracked through a native `IntersectionObserver`\n * rooted on the parent strip - `CngxIntersectionObserver` doesn't\n * fit (single-element scope, can't reach sibling `viewChildren`).\n * `threshold: 0` - only fully-clipped tabs surface. Combined with\n * the organism's `scrollIntoView` effect this forms the self-healing\n * loop: pick hidden tab -> strip scrolls -> IO fires -> `hiddenTabs`\n * self-trims.\n *\n * @playground Overflow showcase ./examples/overflow-showcase/overflow-showcase.component.ts\n *\n * @category ui/tabs\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts\n * @since 0.1.0\n * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant\n * @slot cngxTabOverflowTrigger Replaces the control that opens the overflow menu.\n * @slot cngxTabOverflowItem Replaces a row in the overflow menu; gets the tab.\n * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>\n * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>\n */\n@Component({\n selector: 'cngx-tab-overflow',\n exportAs: 'cngxTabOverflow',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgTemplateOutlet,\n CngxActiveDescendant,\n CngxClickOutside,\n CngxPopover,\n CngxPopoverTrigger,\n ],\n templateUrl: './tab-overflow.component.html',\n styleUrls: ['./tab-overflow.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class.cngx-tab-overflow]': 'true',\n },\n})\nexport class CngxTabOverflow {\n // Projected via <ng-content>, so DI walks up to the parent's injector.\n // `{ host: true }` would scope to the molecule and miss the provider.\n protected readonly panelHost: CngxTabPanelHost = inject(CNGX_TAB_PANEL_HOST);\n protected readonly i18n = injectTabsI18n();\n protected readonly popover = viewChild.required(CngxPopover);\n private readonly adRef = viewChild.required(CngxActiveDescendant);\n\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n // DOM-resolution strategy. Default factory targets the cngx-native\n // strip selectors; Material/custom variants swap via providers.\n private readonly adapter = inject(CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY)();\n\n // tab id -> visibility. `undefined` = not yet observed (treat as\n // visible - prevents More-button flash on first render).\n // `linkedSignal` prunes stale ids when the tabs list changes;\n // observer re-attach lives in the effect below. `mapBoolEqual`\n // suppresses identity-only re-emissions from the IO callback.\n private readonly visibilityState = linkedSignal<\n readonly CngxTabHandle[],\n ReadonlyMap<string, boolean>\n >({\n source: () => this.panelHost.tabs(),\n computation: (tabs, prev) => {\n if (!prev) {\n return new Map();\n }\n const liveIds = new Set(tabs.map((t) => t.id));\n const next = new Map<string, boolean>();\n for (const [id, vis] of prev.value) {\n if (liveIds.has(id)) {\n next.set(id, vis);\n }\n }\n return next;\n },\n equal: mapBoolEqual,\n });\n\n protected readonly hiddenTabs = computed<readonly CngxTabHandle[]>(\n () => {\n const visMap = this.visibilityState();\n return this.panelHost.tabs().filter((t) => visMap.get(t.id) === false);\n },\n { equal: tabIdListEqual },\n );\n\n protected readonly hasHiddenTabs = computed(() => this.hiddenTabs().length > 0, {\n equal: Object.is,\n });\n\n // Counter projected into trigger label + aria-label. Explicit\n // computed isolates `Object.is` distinct-gate from `hiddenTabs`\n // identity churn - prevents flicker on length-equal re-emissions.\n protected readonly hiddenCount = computed(() => this.hiddenTabs().length);\n\n // ARIA menu-button pattern: <button aria-haspopup=\"menu\"> + popover\n // role=\"menu\". Quick-jump navigation (selectById is not a value\n // commit), so menu/menuitem is correct - listbox/option implies\n // persistent aria-selected. WAI-ARIA 1.2 §combobox forbids\n // aria-haspopup=\"menu\", so combobox is deliberately not used.\n protected readonly adItemId = tabOverflowOptionId;\n\n // Read first - TS field-init order; downstream fields snapshot off this.\n private readonly tabsConfig = injectTabsConfig();\n\n // 3-stage cascade: directive > config.templates.overflow* > built-in.\n // `contentChild` must be a field-direct initializer (Angular AOT).\n private readonly triggerSlot = contentChild(CngxTabOverflowTrigger);\n private readonly itemSlot = contentChild(CngxTabOverflowItem);\n protected readonly templates = createTabOverflowTemplateBindings({\n triggerSlot: this.triggerSlot,\n itemSlot: this.itemSlot,\n config: this.tabsConfig,\n hiddenCount: this.hiddenCount,\n hiddenTabs: this.hiddenTabs,\n pickTab: (tab) => this.pickTab(tab),\n tabs: this.panelHost.tabs,\n i18n: this.i18n,\n });\n\n private observer: IntersectionObserver | null = null;\n // Variant-agnostic target -> id lookup. cngx-native uses\n // `${id}-header`, Material `mat-tab-group-N-label-M`.\n private readonly targetToHandleId = new WeakMap<HTMLElement, string>();\n\n // IO-debounce knobs - see `CngxTabsConfig.overflowStabilizeMs` /\n // `.overflowMaxDeferMs` for semantics. Captured once at construction.\n private readonly stabilizeMs = this.tabsConfig.overflowStabilizeMs ?? 100;\n private readonly maxDeferMs = this.tabsConfig.overflowMaxDeferMs ?? 250;\n private stabilizeHandle: ReturnType<typeof setTimeout> | null = null;\n private pendingEntries: IntersectionObserverEntry[] = [];\n // performance.now() of the first entry since the last commit; null\n // between commits. Drives the max-defer cap.\n private firstPendingAt: number | null = null;\n\n // rAF-scheduled IO attach retry. `display: none` toggles do NOT\n // recover - unmount/remount is required to re-arm. Policy swap\n // via CNGX_DOM_ANCHOR_RETRY_FACTORY.\n private readonly attachRetry: CngxDomAnchorRetryHandle = inject(CNGX_DOM_ANCHOR_RETRY_FACTORY)({\n attempt: () => {\n const root = this.resolveStrip();\n if (!root) {\n return null;\n }\n // threshold: 0 - any visible pixel = \"in the strip\". Drives\n // the self-healing loop with the organism's scrollIntoView.\n this.observer = new IntersectionObserver((entries) => this.handleIntersections(entries), {\n root,\n threshold: 0,\n });\n this.observeCurrentTabs();\n return true;\n },\n maxAttempts: 60,\n schedule: (cb) => {\n const handle = requestAnimationFrame(cb);\n return () => cancelAnimationFrame(handle);\n },\n onGiveUp: () => {\n if (isDevMode()) {\n console.warn(\n '[CngxTabOverflow] Strip wrapper not found after 60 attach ' +\n 'attempts; the More popover will not surface clipped tabs. ' +\n 'Verify the molecule is projected inside <cngx-tab-group> ' +\n 'via its <ng-content> slot.',\n );\n }\n },\n });\n\n constructor() {\n afterNextRender(() => this.attachRetry.start());\n\n // Re-observe on tab-list change. Stale-id pruning is derived in\n // `visibilityState`'s linkedSignal source.\n effect(() => {\n this.panelHost.tabs();\n untracked(() => {\n if (!this.observer) {\n return;\n }\n this.observer.disconnect();\n this.observeCurrentTabs();\n });\n });\n\n inject(CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY)(this.popover, this.adRef);\n\n this.destroyRef.onDestroy(() => {\n this.attachRetry.cancel();\n if (this.stabilizeHandle !== null) {\n clearTimeout(this.stabilizeHandle);\n this.stabilizeHandle = null;\n }\n this.firstPendingAt = null;\n this.pendingEntries.length = 0;\n this.observer?.disconnect();\n this.observer = null;\n });\n }\n\n protected pickTab(tab: CngxTabHandle): void {\n this.panelHost.selectById(tab.id);\n this.popover().hide();\n }\n\n /** AD `(activated)` - Enter / Space on a highlighted option picks. */\n protected handleAdActivated(value: unknown): void {\n const tab = value as CngxTabHandle;\n if (tab?.id) {\n this.pickTab(tab);\n }\n }\n\n /**\n * Auto-opens popover on nav-key when collapsed. AD's host listener\n * fires first, so `activeIndex` is already set when this runs.\n * No-op while open - AD owns navigation.\n */\n protected handleTriggerKeydown(event: KeyboardEvent): void {\n if (this.popover().isVisible() || !this.hasHiddenTabs()) {\n return;\n }\n if (NAV_OPEN_KEYS.has(event.key)) {\n this.popover().show();\n }\n }\n\n private observeCurrentTabs(): void {\n if (!this.observer) {\n return;\n }\n const root = this.resolveStrip();\n if (!root) {\n return;\n }\n const tabs = this.panelHost.tabs();\n for (let idx = 0; idx < tabs.length; idx++) {\n const button = this.adapter.resolveTabButton(tabs[idx], root, idx);\n if (button) {\n this.targetToHandleId.set(button, tabs[idx].id);\n this.observer.observe(button);\n }\n }\n }\n\n private handleIntersections(entries: IntersectionObserverEntry[]): void {\n // Buffer entries; signal write deferred to commitPendingVisibility\n // once IO settles for stabilizeMs (capped by maxDeferMs).\n for (const entry of entries) {\n this.pendingEntries.push(entry);\n }\n const now = performance.now();\n this.firstPendingAt ??= now;\n if (this.stabilizeHandle !== null) {\n clearTimeout(this.stabilizeHandle);\n }\n // Wait min(stabilizeMs, remaining max-defer). Math.max(0, …)\n // guards a negative remaining after a long task.\n const elapsed = now - this.firstPendingAt;\n const maxDeferRemaining = this.maxDeferMs - elapsed;\n const wait = Math.max(0, Math.min(this.stabilizeMs, maxDeferRemaining));\n this.stabilizeHandle = setTimeout(() => this.commitPendingVisibility(), wait);\n }\n\n private commitPendingVisibility(): void {\n this.stabilizeHandle = null;\n this.firstPendingAt = null;\n const entries = this.pendingEntries;\n if (entries.length === 0) {\n return;\n }\n this.pendingEntries = [];\n this.visibilityState.update((prev) => {\n const next = new Map(prev);\n for (const entry of entries) {\n const target = entry.target as HTMLElement;\n const tabId = this.targetToHandleId.get(target);\n if (tabId === undefined) {\n // Stale registration during disconnect/observeCurrentTabs\n // churn - skip rather than mis-key.\n continue;\n }\n // threshold: 0 - partially-clipped stays visible; only\n // fully-clipped surfaces as hidden.\n next.set(tabId, entry.isIntersecting);\n }\n return next;\n });\n }\n\n /**\n * IO-root resolution via the injected adapter. Returns `null`\n * before the molecule is anchored - the rAF retry loop re-polls.\n */\n private resolveStrip(): HTMLElement | null {\n return this.adapter.resolveStripRoot(this.panelHost, this.hostElement);\n }\n}\n","<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n().moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n().moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n panelClass=\"cngx-tab-overflow__panel-surface\"\n [attr.aria-label]=\"i18n().moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface - selecting an item triggers `selectById`,\n not a value commit - so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ templates.itemLabel(tab) }}\n }\n </li>\n }\n </ul>\n</div>\n","/**\n * @module @cngx/ui/tabs\n */\nexport { CngxTabGroup } from './tab-group.component';\nexport { CngxTabNav } from './tab-nav.component';\nexport { CngxTabOverflow } from './tab-overflow.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AA4DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CG;MAmCU,YAAY,CAAA;IACd,SAAS,GAAG,KAAK,CAAqB,SAAS,iFAAI,KAAK,EAAE,YAAY,EAAA,CAAG;IACzE,cAAc,GAAG,KAAK,CAAqB,SAAS,sFAAI,KAAK,EAAE,iBAAiB,EAAA,CAAG;AAE5F;;;;;;;AAOG;AACM,IAAA,IAAI,GAAG,KAAK,CAA2B,SAAS,2EAAC;AAC1D;;;AAGG;AACM,IAAA,UAAU,GAAG,KAAK,CAAgC,SAAS,iFAAC;AACrE;;;;;;;AAOG;AACM,IAAA,SAAS,GAAG,KAAK,CAAgC,SAAS,gFAAC;;AAE3D,IAAA,MAAM,GAAG,KAAK,CAAsB,SAAS,6EAAC;;AAE9C,IAAA,QAAQ,GAAG,KAAK,CAA2B,SAAS,+EAAC;AAC9D;;;;;;;AAOG;AACM,IAAA,QAAQ,GAAG,KAAK,CAAsB,SAAS,+EAAC;AACzD;;;;AAIG;AACM,IAAA,OAAO,GAAG,KAAK,CA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,qBAAA,EAAA,QAAA,EAAA,+kFAAA,EAAA,MAAA,EAAA,CAAA,yvHAAA,CAAA,EAAA;AAO+C,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,OAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,WAAW,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACf,oBAAoB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAiEpB,sBAAsB,0FACzB,mBAAmB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7M9D;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"cngx-ui-tabs.mjs","sources":["../../../projects/ui/tabs/tab-group-dev-checks.ts","../../../projects/ui/tabs/tab-group.component.ts","../../../projects/ui/tabs/tab-group.component.html","../../../projects/ui/tabs/tab-nav.component.ts","../../../projects/ui/tabs/tab-nav.component.html","../../../projects/ui/tabs/tab-overflow.component.ts","../../../projects/ui/tabs/tab-overflow.component.html","../../../projects/ui/tabs/public-api.ts","../../../projects/ui/tabs/cngx-ui-tabs.ts"],"sourcesContent":["import { afterNextRender, type Signal, type TemplateRef } from '@angular/core';\nimport type { CngxTabHandle, CngxTabIconContext, CngxTabIconLayout } from '@cngx/common/tabs';\nimport { cngxDevWarn } from '@cngx/utils';\n\n/** @internal */\nexport interface CngxTabGroupDevCheckOptions {\n readonly iconLayout: Signal<CngxTabIconLayout>;\n readonly iconTemplate: Signal<TemplateRef<CngxTabIconContext> | null>;\n readonly tabs: Signal<readonly CngxTabHandle[]>;\n readonly hasLabelTemplate: (id: string) => boolean;\n readonly host: HTMLElement;\n}\n\n/**\n * One-shot post-mount checks of `<cngx-tab-group>`: CNGX3011 (icon-only\n * layout without an icon template) and CNGX3025 (a tab without a `[label]`\n * string). Runs once in an `afterNextRender`, off the reactive graph; must be\n * called in an injection context. The caller guards the call with `ngDevMode`\n * as well, so the production build drops the call and this module with it.\n *\n * @internal\n */\nexport function installTabGroupDevChecks(opts: CngxTabGroupDevCheckOptions): void {\n if (!(typeof ngDevMode !== 'undefined' && ngDevMode)) {\n return;\n }\n afterNextRender(() => {\n // Icon-only hides the label, so a missing *cngxTabIcon template leaves\n // the tab visually empty.\n if (opts.iconLayout() === 'only' && !opts.iconTemplate()) {\n cngxDevWarn(\n 'CNGX3011',\n \"[cngx-tab-group] iconLayout='only' but no *cngxTabIcon template \" +\n 'is provided - tabs render no icon and the label is visually ' +\n \"hidden. Provide an <ng-template cngxTabIcon> or use 'start' / 'end' / 'top'.\",\n opts.host,\n );\n }\n const unlabeled = unlabeledTabPositions(opts);\n if (unlabeled.length > 0) {\n cngxDevWarn(\n 'CNGX3025',\n `[cngx-tab-group] tab(s) without a [label] string at position ${unlabeled.join(', ')}. ` +\n 'Announcements, the close button and the overflow list call such a tab \"Tab N\". ' +\n 'Bind [label] on every cngxTab, also when a *cngxTabLabel template renders it.',\n opts.host,\n );\n }\n });\n}\n\n// The announcements, the close button and the overflow row need a label\n// string; a *cngxTabLabel template only names the tab button.\nfunction unlabeledTabPositions(opts: CngxTabGroupDevCheckOptions): string[] {\n return opts.tabs().flatMap((tab, i) => {\n if (tab.label()) {\n return [];\n }\n const source = opts.hasLabelTemplate(tab.id)\n ? 'named by its *cngxTabLabel template'\n : 'no name source';\n return [`${i + 1} (${source})`];\n });\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n contentChild,\n contentChildren,\n ElementRef,\n inject,\n Injector,\n input,\n linkedSignal,\n signal,\n type Signal,\n type TemplateRef,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport { CNGX_FOCUSABLE_SELECTOR, CngxFocusRestore, CngxLiveRegion } from '@cngx/common/a11y';\nimport { CngxIconSvg } from '@cngx/common/display';\nimport {\n CNGX_DIRECTIVE_BY_ID_MAP_FACTORY,\n CNGX_ORGANISM_SCROLL_SYNC_FACTORY,\n CNGX_TAB_GROUP_HOST,\n CNGX_TAB_PANEL_HOST,\n CngxTab,\n CngxTabAddIcon,\n CngxTabBusySpinner,\n CngxTabCloseIcon,\n CngxTabErrorBadge,\n CngxTabGroupPresenter,\n CngxTabIcon,\n CngxTabRejectionIcon,\n createTabDismissals,\n createTabGroupAnnouncements,\n createTabGroupTemplateBindings,\n createTabKeyboardNav,\n createTabsHostAttrs,\n injectTabsConfig,\n injectTabsI18n,\n type CngxTabBusySpinnerContext,\n type CngxTabDismissals,\n type CngxTabKeyboardNav,\n type CngxTabErrorBadgeContext,\n type CngxTabGroupAnnouncements,\n type CngxTabGroupTemplateBindings,\n type CngxTabHandle,\n type CngxTabAlign,\n type CngxTabIconContext,\n type CngxTabIconLayout,\n type CngxTabPanelHost,\n type CngxTabRejectionIconContext,\n type CngxTabsHostAttrs,\n type CngxTabsPanelMode,\n type CngxTabsSkin,\n} from '@cngx/common/tabs';\nimport { CNGX_ICON_ALERT, CNGX_ICON_BAN, CNGX_ICON_PLUS, CNGX_ICON_X } from '@cngx/utils';\n\nimport { installTabGroupDevChecks } from './tab-group-dev-checks';\n\n/**\n * CNGX tab-group organism. \\\n * Thin shell over {@link CngxTabGroupPresenter}\n * and `CngxFocusRestore` via `hostDirectives`. The APG tablist keyboard\n * model (automatic activation: arrow keys move focus AND select; Home/End\n * jump to first/last; the active tab is the lone tab stop) lives in\n * {@link createTabKeyboardNav}, deriving the roving stop from the\n * presenter's `activeId` rather than a competing index. Material variant\n * lives at `[cngxMatTabs]` in `@cngx/ui/mat-tabs`.\n *\n * All ARIA attrs are signal-driven - never one-shot bindings.\n * `CngxLiveRegion` is mounted as a child `<span>` rather than a\n * host directive: its `role=\"status\"` would clobber the wrapper's\n * `role=\"group\"` landmark.\n *\n * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts\n * @playground Overflow \"More\" menu under resize ./examples/overflow-resize/overflow-resize.component.ts\n * @playground Async commit-action (optimistic / pessimistic) ./examples/async-commit/async-commit.component.ts\n * @playground Dismissable + addable tabs ./examples/dynamic-tabs/dynamic-tabs.component.ts\n * @playground Data-driven tabs via HTTP (Material) ./examples/http-commit/http-commit-material.component.ts\n * @playground Data-driven tabs via HTTP (default theme) ./examples/http-commit/http-commit-plain.component.ts\n * @playground Form error aggregation ./examples/form-errors/form-errors.component.ts\n * @playground Routed tabs with a CanDeactivate guard ./examples/routed-outlet/routed-outlet.component.ts\n * @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts\n * @since 0.3.0\n * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore\n * @slot cngxTabIcon Replaces a tab's leading icon; gets the tab.\n * @slot cngxTabAddIcon Replaces the glyph on the add-tab control.\n * @slot cngxTabCloseIcon Replaces the glyph on a tab's close control.\n * @slot cngxTabErrorBadge Marks a tab whose panel holds validation errors.\n * @slot cngxTabBusySpinner Rendered on a tab while its switch commits.\n * @slot cngxTabRejectionIcon Marks a tab whose switch was refused.\n * <example-url>/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>\n * <example-url>/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>\n * <example-url>/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>\n * <example-url>/#/ui/tabs/tab-skins/contained</example-url>\n * <example-url>/#/ui/tabs/tab-skins/line</example-url>\n * <example-url>/#/ui/tabs/tab-skins/pill</example-url>\n * <example-url>/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>\n * <example-url>/#/ui/tabs/tab-skins/vertical-skins</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-tab-group',\n exportAs: 'cngxTabGroup',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [NgTemplateOutlet, CngxIconSvg, CngxLiveRegion],\n styleUrls: ['../../common/tabs/styles/tabs-base.css', './tab-group.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxTabGroupPresenter,\n inputs: ['activeIndex', 'orientation', 'loop', 'commitAction', 'commitMode'],\n outputs: ['activeIndexChange', 'tabClose', 'tabAdd'],\n },\n { directive: CngxFocusRestore },\n ],\n providers: [{ provide: CNGX_TAB_PANEL_HOST, useExisting: CngxTabGroup }],\n templateUrl: './tab-group.component.html',\n host: {\n class: 'cngx-tab-group',\n role: 'group',\n '[attr.aria-roledescription]': 'announcements.tabsRoleDescription()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.data-skin]': 'hostAttrs.resolvedSkin()',\n '[attr.data-icon-layout]': 'hostAttrs.resolvedIconLayout()',\n '[attr.data-panel-mode]': 'hostAttrs.resolvedPanelMode()',\n '[attr.data-fitted]': \"hostAttrs.resolvedFitted() ? '' : null\",\n '[attr.data-tab-align]': 'hostAttrs.resolvedTabAlign()',\n '[attr.aria-label]': 'announcements.resolvedAriaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n '[class.cngx-tabs]': 'true',\n },\n})\nexport class CngxTabGroup implements CngxTabPanelHost {\n /**\n * Accessible name of the tab group host, bound as `[aria-label]`. When unset it falls back to the\n * `tabsLabel` i18n copy, which names the group by default. It is dropped while a non-empty\n * `[aria-labelledby]` is set.\n */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n /**\n * Id reference of the element that names the tab group host, bound as `[aria-labelledby]`. A non-empty\n * value suppresses the host `aria-label`, including the i18n fallback. Unset by default.\n */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /**\n * Visual skin. Cascade `input ?? config ?? 'line'`, resolved by\n * {@link hostAttrs} and reflected onto `[data-skin]`. The skin is a\n * pure CSS concern - structure, slots, ARIA, and keyboard behaviour\n * are identical across all values. Public (consumer-facing input,\n * like `ariaLabel`); the resolved value, not the raw input, is what\n * the host binding reads.\n */\n readonly skin = input<CngxTabsSkin | undefined>(undefined);\n /**\n * Icon layout. Cascade `input ?? config ?? 'start'`, reflected onto\n * `[data-icon-layout]`. Orthogonal to skin and orientation.\n */\n readonly iconLayout = input<CngxTabIconLayout | undefined>(undefined);\n /**\n * Panel render strategy. Cascade `input ?? config ?? 'eager'`,\n * reflected onto `[data-panel-mode]`. `'eager'` (default) renders every\n * panel's content up front (byte-identical to before this input\n * existed); `'lazy'` keep-alives content after first activation;\n * `'lazy-destroy'` renders only the active panel's content. The panel\n * `<div>` always stays in the DOM regardless.\n */\n readonly panelMode = input<CngxTabsPanelMode | undefined>(undefined);\n /** Stretch tabs to fill the strip width (horizontal only); reflects `[data-fitted]`. Cascade `input ?? config ?? false`. */\n readonly fitted = input<boolean | undefined>(undefined);\n /** Tab-cluster alignment when not fitted (horizontal only); reflects `[data-tab-align]`. Cascade `input ?? config ?? 'start'`. */\n readonly tabAlign = input<CngxTabAlign | undefined>(undefined);\n /**\n * Whether tabs render a close affordance. Cascade\n * `input ?? config ?? false`. A per-`CngxTab` `[closable]` override\n * wins over this group default. When on, each closable tab gets a\n * close button (and Delete on the focused tab closes it); the\n * `(tabClose)` output fires with the tab id and index for the\n * consumer to remove from its data.\n */\n readonly closable = input<boolean | undefined>(undefined);\n /**\n * Whether the group renders an add-tab button after the strip. Cascade\n * `input ?? config ?? false`. When on, the `(tabAdd)` output fires for\n * the consumer to append a tab to its data.\n */\n readonly addable = input<boolean | undefined>(undefined);\n\n protected readonly presenter = inject(CNGX_TAB_GROUP_HOST);\n protected readonly i18n = injectTabsI18n();\n protected readonly config = injectTabsConfig();\n /** Default icons for the template's fallback spans. */\n protected readonly alertIcon = CNGX_ICON_ALERT;\n protected readonly banIcon = CNGX_ICON_BAN;\n protected readonly closeIcon = CNGX_ICON_X;\n protected readonly addIcon = CNGX_ICON_PLUS;\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly injector = inject(Injector);\n private readonly tabDirectives = contentChildren(CngxTab, {\n descendants: true,\n });\n\n /**\n * Per-instance skin slots. Resolved via 3-stage cascade in {@link templates}:\n * `*cngxTab*` directive > `CNGX_TABS_CONFIG.templates.<key>` > built-in.\n * AOT (NG8110) requires `contentChild()` to be a direct field initialiser\n * on the variant - cascade resolution is delegated to the factory.\n */\n private readonly errorBadgeSlot = contentChild(CngxTabErrorBadge);\n private readonly rejectionIconSlot = contentChild(CngxTabRejectionIcon);\n private readonly busySpinnerSlot = contentChild(CngxTabBusySpinner);\n private readonly iconSlot = contentChild(CngxTabIcon);\n private readonly closeIconSlot = contentChild(CngxTabCloseIcon);\n private readonly addIconSlot = contentChild(CngxTabAddIcon);\n\n /**\n * Dismissable / addable affordance surface (close + add resolution,\n * close interaction, focus restoration). Level-2 helper keeps the\n * cascade + handlers off the organism class (LOC guard).\n */\n protected readonly dismiss: CngxTabDismissals = createTabDismissals({\n host: this.presenter,\n config: this.config,\n i18n: this.i18n,\n closable: this.closable,\n addable: this.addable,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n\n /**\n * APG tablist keyboard model (automatic activation). Owns arrow / Home /\n * End resolution, the `host.select()` activation, and focus movement;\n * derives each tab's roving `tabindex` from the presenter's `activeId`\n * (single source of truth). Level-2 helper keeps the keyboard logic off\n * the organism class (LOC guard).\n */\n protected readonly keyboard: CngxTabKeyboardNav = createTabKeyboardNav({\n host: this.presenter,\n hostElement: this.hostElement,\n direction: injectDirection(),\n injector: this.injector,\n });\n\n /**\n * AT-announcement bundle from `@cngx/common/tabs/announcements/`.\n * Owns role descriptions, resolved aria-label, live-region phrasing,\n * and the prior-active-index `linkedSignal` driving the success-arm\n * direction prefix.\n */\n protected readonly announcements: CngxTabGroupAnnouncements = createTabGroupAnnouncements({\n presenter: this.presenter,\n i18n: this.i18n,\n config: this.config,\n ariaLabel: this.ariaLabel,\n ariaLabelledBy: this.ariaLabelledBy,\n closedAnnouncement: this.dismiss.closedAnnouncement,\n });\n\n /**\n * Resolved skin / icon-layout cascade (`input ?? config ?? default`),\n * read by the `[data-skin]` / `[data-icon-layout]` host bindings. The\n * Level-2 helper keeps the cascade off the organism class (LOC guard).\n */\n protected readonly hostAttrs: CngxTabsHostAttrs = createTabsHostAttrs({\n skin: this.skin,\n iconLayout: this.iconLayout,\n panelMode: this.panelMode,\n fitted: this.fitted,\n tabAlign: this.tabAlign,\n config: this.config,\n });\n\n /**\n * Whether the active panel contains a natively-focusable descendant.\n * Resolved by a post-render DOM probe (the only way to know - the\n * panel content is consumer-projected). Drives {@link panelTabindex}:\n * a panel with no focusable child earns one tab stop so keyboard users\n * can still reach its content (APG tabpanel pattern); a panel that\n * already has reachable content does not (no redundant stop). Boolean\n * with default `Object.is`, so a stable probe never re-triggers CD.\n */\n private readonly activePanelHasFocusable = signal(false);\n\n constructor() {\n // Self-healing scroll loop: activeId change -> scrollIntoView ->\n // overflow IO sees new visibility -> More dropdown self-trims.\n // Policy is swappable via CNGX_ORGANISM_SCROLL_SYNC_FACTORY.\n inject(CNGX_ORGANISM_SCROLL_SYNC_FACTORY)({\n activeId: this.presenter.activeId,\n hostElement: this.hostElement,\n injector: this.injector,\n });\n\n // APG tabpanel focus probe. afterRenderEffect re-runs after render\n // whenever its tracked dep (the active panel id) changes - i.e. on\n // every tab switch, which is when the active panel (always rendered\n // in every panelMode) gets its current content. Reading the DOM is\n // the only way to know whether the consumer-projected content is\n // focusable. The boolean set is not read inside the effect, so it\n // never re-triggers itself, and its default Object.is equality makes\n // a stable probe a no-op. Scope: content that mutates inside the\n // already-active panel without a tab switch (late async content) is\n // not re-probed - an accepted heuristic limit, not a correctness bug.\n afterRenderEffect(() => {\n // Tracked: re-probe when the active panel changes.\n this.presenter.activeId();\n const panel = this.hostElement.querySelector<HTMLElement>('.cngx-tabs__panel:not([hidden])');\n this.activePanelHasFocusable.set(panel?.querySelector(CNGX_FOCUSABLE_SELECTOR) != null);\n });\n\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n installTabGroupDevChecks({\n iconLayout: this.hostAttrs.resolvedIconLayout,\n iconTemplate: this.templates.icon,\n tabs: this.presenter.tabs,\n hasLabelTemplate: (id) => this.labelTemplateFor(id) !== null,\n host: this.hostElement,\n });\n }\n }\n\n // Map<id, CngxTab> for O(1) labelTemplateFor / contentTemplateFor.\n // Structural equal on id-set + directive identity prevents cascade\n // on shape-stable contentChildren re-emissions.\n private readonly tabDirectiveById = inject(CNGX_DIRECTIVE_BY_ID_MAP_FACTORY)({\n source: this.tabDirectives,\n });\n\n /**\n * Resolved 3-stage cascade for `errorBadge`, `rejectionIcon`,\n * `busySpinner`, `icon`. `null` -> render built-in default (or, for\n * `icon`, render nothing).\n */\n protected readonly templates: CngxTabGroupTemplateBindings = createTabGroupTemplateBindings({\n errorBadgeSlot: this.errorBadgeSlot,\n rejectionIconSlot: this.rejectionIconSlot,\n busySpinnerSlot: this.busySpinnerSlot,\n iconSlot: this.iconSlot,\n closeIconSlot: this.closeIconSlot,\n addIconSlot: this.addIconSlot,\n config: this.config,\n });\n\n readonly tabs: Signal<readonly CngxTabHandle[]> = this.presenter.tabs;\n readonly activeIndex: Signal<number> = this.presenter.activeIndex;\n readonly activeId: Signal<string | null> = this.presenter.activeId;\n readonly orientation: Signal<'horizontal' | 'vertical'> = this.presenter.orientation;\n\n protected isSelected(tab: CngxTabHandle): boolean {\n return tab.id === this.activeId();\n }\n\n protected isTabBusy(tab: CngxTabHandle): boolean {\n if (this.presenter.commitState.status() !== 'pending') {\n return false;\n }\n const intended = this.presenter.intendedIndex();\n if (intended === undefined) {\n return false;\n }\n return this.tabs()[intended]?.id === tab.id;\n }\n\n protected tabHeaderId(tab: CngxTabHandle): string {\n return `${tab.id}-header`;\n }\n\n protected tabPanelId(tab: CngxTabHandle): string {\n return `${tab.id}-panel`;\n }\n\n /**\n * APG tabpanel `tabindex`: `0` only when the selected panel has no\n * focusable descendant (so its content is keyboard-reachable from the\n * tablist), else `null` - never a redundant tab stop. Inactive panels\n * are `null` (they are `[hidden]`).\n */\n protected panelTabindex(tab: CngxTabHandle): 0 | null {\n return this.isSelected(tab) && !this.activePanelHasFocusable() ? 0 : null;\n }\n\n /**\n * Keep-alive set for `panelMode='lazy'`: the ids of every tab that has\n * ever been activated. Derived history (Pillar 1) - a `linkedSignal`\n * accumulating onto its own previous value as `activeId` moves, NOT an\n * `effect` that writes a set. The structural `equal` (size + membership)\n * means re-activating an already-seen tab returns an equal set, so the\n * reference is stable and downstream `shouldRenderContent` reads do not\n * churn. Unbounded by design: `lazy` trades retention (every visited\n * panel's content stays alive for the directive's life) for keep-alive;\n * the set is bounded by tab count, and `lazy-destroy` is the bounded\n * alternative when retention is unwanted.\n */\n private readonly seenIds = linkedSignal<string | null, ReadonlySet<string>>({\n source: () => this.presenter.activeId(),\n computation: (id, prev) => {\n const next = new Set(prev?.value ?? []);\n if (id != null) {\n next.add(id);\n }\n return next;\n },\n equal: (a, b) => a.size === b.size && [...a].every((x) => b.has(x)),\n });\n\n /**\n * Whether a tab's panel content should be rendered now. The panel\n * `<div>` is always in the DOM (the `aria-controls` target); only its\n * inner content is gated. `eager` is byte-identical to the original\n * behaviour (everything rendered, visibility toggled via `[hidden]`).\n */\n protected shouldRenderContent(tab: CngxTabHandle): boolean {\n switch (this.hostAttrs.resolvedPanelMode()) {\n case 'lazy':\n return this.seenIds().has(tab.id);\n case 'lazy-destroy':\n return this.isSelected(tab);\n default:\n return true;\n }\n }\n\n protected tabDescriptorId(tab: CngxTabHandle): string {\n return `${tab.id}-desc`;\n }\n\n /**\n * `aria-describedby` for a tab header: the descriptor id while the\n * status phrase (error state) is non-empty, else `null`. The sr-only\n * descriptor span stays in the DOM; only the reference is gated -\n * accname 1.2 §2A traverses a directly-referenced node even when it\n * is empty or hidden.\n */\n protected tabDescribedBy(tab: CngxTabHandle): string | null {\n return this.announcements.statusPhrase(tab) ? this.tabDescriptorId(tab) : null;\n }\n\n /**\n * `true` when the tab is in error - the folded `hasError` (direct\n * `[error]` flag OR the aggregator's reveal-gated `shouldShow()`), so\n * a direct-error tab lights the badge without an aggregator while\n * deferred-reveal aggregators stay silent until revealed.\n */\n protected showErrorBadge(tab: CngxTabHandle): boolean {\n return tab.hasError();\n }\n\n /**\n * Context for `*cngxTabIcon`. Allocates fresh per CD - `active` is\n * reactive (selection), and `*ngTemplateOutlet` only re-evaluates\n * `let-*` bindings when the context reference changes (`Object.is`\n * input-diff); a `WeakMap`-cached object with a mutated `active`\n * would leave consumer bindings stale. Same pattern as\n * {@link busySpinnerContextFor}.\n */\n protected iconContextFor(tab: CngxTabHandle, index: number): CngxTabIconContext {\n return { tab, active: this.isSelected(tab), index };\n }\n\n /**\n * Stable per-tab `*cngxTabErrorBadge` context cache. Context is\n * `{ tab }` only (no reactive fields), so a `WeakMap` keeps the\n * reference stable and lets `*ngTemplateOutlet`'s `Object.is`\n * input-diff short-circuit the embedded-view rebind.\n */\n private readonly errorBadgeContextCache = new WeakMap<CngxTabHandle, CngxTabErrorBadgeContext>();\n\n /** `WeakMap`-cached context for `*cngxTabErrorBadge`. Stable ref per tab. */\n protected errorBadgeContextFor(tab: CngxTabHandle): CngxTabErrorBadgeContext {\n let ctx = this.errorBadgeContextCache.get(tab);\n if (!ctx) {\n ctx = { tab };\n this.errorBadgeContextCache.set(tab, ctx);\n }\n return ctx;\n }\n\n /**\n * Context for `*cngxTabBusySpinner`. Allocates fresh per CD -\n * `intendedIndex` is reactive, and `*ngTemplateOutlet` only\n * re-evaluates `let-*` bindings when the context reference changes\n * (`Object.is` input-diff); a cached mutated object would leave\n * consumer bindings stale. `intendedIndex` is non-undefined by gate\n * - `isTabBusy(tab)` returning `true` requires it.\n */\n protected busySpinnerContextFor(tab: CngxTabHandle): CngxTabBusySpinnerContext {\n return { tab, intendedIndex: this.presenter.intendedIndex() ?? -1 };\n }\n\n /**\n * Context for `*cngxTabRejectionIcon`. `originLabel` matches the\n * `liveAnnouncement` priority chain so visual + SR phrasing align;\n * `reason` is the kind of the outcome that set the marker (a refusal\n * or a failure). Allocates fresh per CD for the same reason as\n * {@link busySpinnerContextFor}.\n */\n protected rejectionIconContextFor(failedIndex: number): CngxTabRejectionIconContext {\n const originIdx = this.presenter.originIndexDuringCommit();\n const originLabel =\n originIdx !== undefined ? this.presenter.tabs()[originIdx]?.label() : undefined;\n const reason = this.presenter.lastOutcome()?.kind === 'refused' ? 'refused' : 'failed';\n return { failedIndex, originLabel, reason };\n }\n\n protected handleHeaderClick(tab: CngxTabHandle): void {\n if (tab.disabled()) {\n return;\n }\n const idx = this.tabs().findIndex((t) => t.id === tab.id);\n if (idx >= 0) {\n this.presenter.select(idx);\n }\n }\n\n /**\n * Roving `tabindex` for a tab button: `0` for the active tab, `-1` for\n * the rest, so the tablist is a single tab stop (APG) and `Tab` lands\n * on the active tab. Derived in {@link keyboard} from `activeId`.\n */\n protected tabTabindex(tab: CngxTabHandle): 0 | -1 {\n return this.keyboard.tabTabindex(tab);\n }\n\n /**\n * Single `(keydown)` entry for a tab button: APG navigation\n * (arrows / Home / End, automatic activation) first, then Delete-to-close\n * when navigation did not consume the event.\n */\n protected handleTabKeydown(tab: CngxTabHandle, event: KeyboardEvent): void {\n this.keyboard.handleKeydown(event);\n if (event.defaultPrevented) {\n return;\n }\n this.dismiss.handleTabKeydown(tab, event);\n }\n\n // CngxTabPanelHost contract - presenter owns clamping, disabled-skip,\n // commit-action gating.\n /**\n * Activates the tab registered under the given id. `CngxTabPanelHost` contract method, called by the\n * overflow menu when a hidden tab is picked. An unknown id is ignored; otherwise it goes through the\n * presenter `select`, which does nothing for the active or a disabled tab and defers to `commitAction`\n * when one is set.\n */\n selectById(id: string): void {\n this.presenter.selectById(id);\n }\n\n /**\n * Clear the presenter's `lastFailedIndex` rejection flag - exposed\n * so template-ref consumers (`#tg=\"cngxTabGroup\"`) can dismiss the\n * decoration without injecting the host token.\n */\n clearLastFailed(): void {\n this.presenter.clearLastFailed();\n }\n\n /**\n * Returns the `*cngxTabLabel` template of the tab with the given id, or `null` when the id is unknown\n * or the tab has no label slot. `CngxTabPanelHost` contract method: the tab group template calls it per\n * tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.\n */\n labelTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.labelTemplate()?.templateRef ?? null;\n }\n\n /**\n * @internal\n */\n subLabelTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.subLabelTemplate()?.templateRef ?? null;\n }\n\n /**\n * Returns the `*cngxTabContent` template of the tab with the given id, or `null` when the id is unknown\n * or the tab has no content slot. `CngxTabPanelHost` contract method: the tab group template calls it per\n * tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.\n */\n contentTemplateFor(id: string): TemplateRef<unknown> | null {\n return this.tabDirectiveById().get(id)?.contentTemplate()?.templateRef ?? null;\n }\n}\n","<div class=\"cngx-tabs__strip-wrapper\">\n@let failedIdx = presenter.lastFailedIndex();\n<!-- Kind behind the rejection marker ('refused' | 'failed'): the data-reason hook and the default glyph. -->\n@let rejectionKind = presenter.lastOutcome()?.kind;\n<div\n class=\"cngx-tabs__strip\"\n role=\"tablist\"\n [attr.aria-orientation]=\"presenter.orientation()\"\n>\n @for (tab of tabs(); track tab.id; let i = $index) {\n @let labelTpl = labelTemplateFor(tab.id);\n @let subLabelTpl = subLabelTemplateFor(tab.id);\n @let labelledBy = announcements.tabLabelledBy(tab, !!labelTpl, !!subLabelTpl);\n <div class=\"cngx-tabs__tab-wrapper\" role=\"presentation\">\n <button\n type=\"button\"\n class=\"cngx-tabs__tab\"\n [class.cngx-tab--rejected]=\"failedIdx === i\"\n [attr.data-reason]=\"failedIdx === i ? rejectionKind : null\"\n [class.cngx-tabs__tab--closable]=\"dismiss.isTabClosable(tab)\"\n role=\"tab\"\n [id]=\"tabHeaderId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.tabindex]=\"tabTabindex(tab)\"\n [attr.aria-label]=\"labelledBy ? null : announcements.tabAriaLabel(tab, i + 1)\"\n [attr.aria-labelledby]=\"labelledBy\"\n [attr.aria-selected]=\"isSelected(tab) ? 'true' : 'false'\"\n [attr.aria-controls]=\"tabPanelId(tab)\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : null\"\n [attr.aria-busy]=\"isTabBusy(tab) ? 'true' : null\"\n [attr.aria-describedby]=\"tabDescribedBy(tab)\"\n [attr.aria-keyshortcuts]=\"dismiss.isTabClosable(tab) ? 'Delete' : null\"\n (click)=\"handleHeaderClick(tab)\"\n (keydown)=\"handleTabKeydown(tab, $event)\"\n >\n @let iconTpl = templates.icon();\n @if (iconTpl) {\n <span class=\"cngx-tabs__icon\" aria-hidden=\"true\">\n <ng-container\n *ngTemplateOutlet=\"iconTpl; context: iconContextFor(tab, i)\"\n ></ng-container>\n </span>\n }\n <span class=\"cngx-tabs__text\">\n <span class=\"cngx-tabs__label\" [id]=\"announcements.tabLabelId(tab)\">\n @if (labelTpl) {\n <ng-container *ngTemplateOutlet=\"labelTpl\"></ng-container>\n } @else {\n {{ tab.label() }}\n }\n </span>\n @if (subLabelTpl || tab.subLabel()) {\n <span class=\"cngx-tabs__sublabel\" [id]=\"announcements.tabSubLabelId(tab)\">\n @if (subLabelTpl) {\n <ng-container *ngTemplateOutlet=\"subLabelTpl\"></ng-container>\n } @else {\n {{ tab.subLabel() }}\n }\n </span>\n }\n </span>\n @if (showErrorBadge(tab)) {\n @let errorBadgeTpl = templates.errorBadge();\n @if (errorBadgeTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n errorBadgeTpl;\n context: errorBadgeContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__badge\" aria-hidden=\"true\"\n ><svg [cngxIconSvg]=\"alertIcon\"></svg\n ></span>\n }\n }\n @if (failedIdx === i) {\n @let rejectionIconTpl = templates.rejectionIcon();\n @if (rejectionIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n rejectionIconTpl;\n context: rejectionIconContextFor(i)\n \"\n ></ng-container>\n } @else {\n <span\n class=\"cngx-tabs__rejection-icon\"\n aria-hidden=\"true\"\n [attr.data-reason]=\"rejectionKind\"\n ><svg [cngxIconSvg]=\"rejectionKind === 'refused' ? banIcon : alertIcon\"></svg></span>\n }\n }\n @if (isTabBusy(tab)) {\n @let busySpinnerTpl = templates.busySpinner();\n @if (busySpinnerTpl) {\n <ng-container\n *ngTemplateOutlet=\"\n busySpinnerTpl;\n context: busySpinnerContextFor(tab)\n \"\n ></ng-container>\n } @else {\n <span class=\"cngx-tabs__busy-spinner\" aria-hidden=\"true\"></span>\n }\n }\n <span class=\"cngx-sr-only\" [id]=\"tabDescriptorId(tab)\">{{\n announcements.statusPhrase(tab)\n }}</span>\n </button>\n @if (dismiss.isTabClosable(tab)) {\n <button\n type=\"button\"\n class=\"cngx-tabs__close\"\n tabindex=\"-1\"\n [attr.aria-label]=\"dismiss.closeButtonLabel(tab)\"\n (click)=\"dismiss.handleClose(tab, $event)\"\n >\n @let closeIconTpl = templates.closeIcon();\n @if (closeIconTpl) {\n <ng-container\n *ngTemplateOutlet=\"closeIconTpl; context: dismiss.closeIconContextFor(tab)\"\n ></ng-container>\n } @else {\n <span aria-hidden=\"true\"><svg [cngxIconSvg]=\"closeIcon\"></svg></span>\n }\n </button>\n }\n </div>\n }\n</div>\n@if (dismiss.resolvedAddable()) {\n <button\n type=\"button\"\n class=\"cngx-tabs__add\"\n data-tab-add\n [attr.aria-label]=\"i18n().addTab\"\n (click)=\"dismiss.handleAdd()\"\n >\n @let addIconTpl = templates.addIcon();\n @if (addIconTpl) {\n <ng-container *ngTemplateOutlet=\"addIconTpl\"></ng-container>\n } @else {\n <span aria-hidden=\"true\"><svg [cngxIconSvg]=\"addIcon\"></svg></span>\n }\n </button>\n}\n<ng-content select=\"cngx-tab-overflow\"></ng-content>\n</div>\n\n<div class=\"cngx-tabs__panels\">\n @for (tab of tabs(); track tab.id) {\n <div\n class=\"cngx-tabs__panel\"\n role=\"tabpanel\"\n [id]=\"tabPanelId(tab)\"\n [attr.aria-labelledby]=\"tabHeaderId(tab)\"\n [attr.aria-roledescription]=\"announcements.tabPanelRoleDescription()\"\n [attr.tabindex]=\"panelTabindex(tab)\"\n [hidden]=\"!isSelected(tab)\"\n >\n @if (shouldRenderContent(tab)) {\n @let contentTpl = contentTemplateFor(tab.id);\n @if (contentTpl) {\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n }\n }\n </div>\n }\n</div>\n\n<span class=\"cngx-tabs__live-region cngx-sr-only\" cngxLiveRegion>{{\n announcements.liveAnnouncement()\n}}</span>\n\n<!--\n Generic slot for opt-in skin sub-components other than the\n overflow molecule (which projects into the strip-wrapper via the\n named `select=\"cngx-tab-overflow\"` slot above). Projected content\n sees `CNGX_TAB_PANEL_HOST` via the organism's provider, so\n molecules inject the contract without reaching for the concrete\n `CngxTabGroup` class.\n-->\n<ng-content></ng-content>\n","import {\n ChangeDetectionStrategy,\n Component,\n Injector,\n ViewEncapsulation,\n computed,\n inject,\n input,\n type Signal,\n} from '@angular/core';\n\nimport { CngxLiveRegion } from '@cngx/common/a11y';\nimport {\n CNGX_TAB_GROUP_HOST,\n CNGX_TAB_NAV_HOST,\n CngxTabGroupPresenter,\n createTabNavAnnouncement,\n injectTabsConfig,\n type CngxTabsSkin,\n} from '@cngx/common/tabs';\n\n/**\n * CNGX tab-nav organism. \\\n * A `role=\"navigation\"` landmark that wraps consumer-authored\n * `<a cngxTabLink routerLink>` anchors into a tab bar. Native parallel of\n * `[cngxMatTabNav]` in `@cngx/ui/mat-tabs`, and the link-driven sibling of\n * the programmatic `<cngx-tab-group>` tablist: a navigation of natively\n * focusable links is a different WAI-ARIA pattern than an automatic-\n * activation tablist, so it is a separate organism, not a skin flag.\n *\n * Thin shell over {@link CngxTabGroupPresenter} via `hostDirectives` - the\n * registry, `activeIndex`, and `activeId` come from the same brain the\n * tablist organism and the Material bridge compose. There is no keyboard\n * model and no commit gating: links are natural `Tab` stops, `Enter`\n * activates the `routerLink`, and the router runs `CanDeactivate` natively.\n * Add `[cngxTabsRouteSync]` to drive the active link from the route - it\n * reflects `NavigationEnd` onto `activeIndex`; its commit-action stays\n * dormant because nothing here calls `presenter.select()`.\n *\n * `CngxLiveRegion` is mounted as a child `<span>` rather than a host\n * directive: its `role=\"status\"` would clobber the host's `role=\"navigation\"`\n * landmark. Its content is the active link's label (Pillar 2 - the active\n * change is announced).\n *\n * ```html\n * <cngx-tab-nav cngxTabsRouteSync aria-label=\"Sections\">\n * <a cngxTabLink id=\"overview\" routerLink=\"overview\">Overview</a>\n * <a cngxTabLink id=\"profile\" routerLink=\"profile\">Profile</a>\n * </cngx-tab-nav>\n * <router-outlet></router-outlet>\n * ```\n *\n * @playground Native router tabs with a CanDeactivate guard ./examples/routed-nav/routed-nav.component.ts\n * @see {@link CngxTabGroup} for the programmatic tablist organism.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-nav.component.ts\n * @since 0.3.0\n * @relatedTo CngxTabLink, CngxTabsRouteSync, CngxTabGroup, CngxMatTabNav\n * @axis level organism\n */\n@Component({\n selector: 'cngx-tab-nav',\n exportAs: 'cngxTabNav',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CngxLiveRegion],\n // Presence-only marker: it tells a stacked [cngxTabsRouteSync] that its\n // links own subtrees, so the URL match is prefix rather than suffix.\n providers: [{ provide: CNGX_TAB_NAV_HOST, useValue: true }],\n styleUrls: ['../../common/tabs/styles/tabs-base.css', './tab-nav.component.css'],\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [\n {\n directive: CngxTabGroupPresenter,\n inputs: ['activeIndex', 'orientation'],\n outputs: ['activeIndexChange'],\n },\n ],\n templateUrl: './tab-nav.component.html',\n host: {\n class: 'cngx-tab-nav',\n role: 'navigation',\n '[attr.data-skin]': 'resolvedSkin()',\n '[attr.data-orientation]': 'presenter.orientation()',\n '[attr.aria-orientation]': 'presenter.orientation()',\n '[attr.aria-label]': 'ariaLabel()',\n '[attr.aria-labelledby]': 'ariaLabelledBy()',\n },\n})\nexport class CngxTabNav {\n /**\n * Accessible name of the navigation host, bound straight to `[attr.aria-label]` through the\n * `[aria-label]` alias. There is no config or i18n fallback: unset renders no attribute, and it stays\n * set next to `[aria-labelledby]`.\n */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' });\n /**\n * Id reference of the element that names the navigation host, bound straight to\n * `[attr.aria-labelledby]` through the `[aria-labelledby]` alias. It does not clear `[aria-label]`;\n * unset renders no attribute.\n */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' });\n\n /**\n * Visual skin. Cascade `input ?? config ?? 'line'`, reflected onto\n * `[data-skin]`. Resolved inline (single axis) rather than via\n * `createTabsHostAttrs`: that helper resolves five tablist axes the nav\n * does not use, so pulling it here would fabricate dead inputs - inline\n * resolution is Komposition statt Konfiguration (Pillar 3).\n */\n readonly skin = input<CngxTabsSkin | undefined>(undefined);\n\n protected readonly presenter = inject(CNGX_TAB_GROUP_HOST);\n private readonly config = injectTabsConfig();\n\n protected readonly resolvedSkin: Signal<CngxTabsSkin> = computed(\n () => this.skin() ?? this.config.skin ?? 'line',\n );\n\n /**\n * Polite live-region content. The brain stays linked from\n * `@cngx/common/tabs`, so a decomposed skin keeps receiving fixes to\n * the mount-window gate and the change detection instead of carrying a\n * frozen copy.\n */\n protected readonly liveAnnouncement: Signal<string> = createTabNavAnnouncement({\n presenter: this.presenter,\n injector: inject(Injector),\n }).liveAnnouncement;\n}\n","<ng-content></ng-content>\n<span class=\"cngx-tab-nav__live-region cngx-sr-only\" cngxLiveRegion>{{ liveAnnouncement() }}</span>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n contentChild,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n linkedSignal,\n untracked,\n viewChild,\n} from '@angular/core';\n\nimport { CngxActiveDescendant } from '@cngx/common/a11y';\nimport { CngxClickOutside } from '@cngx/common/interactive';\nimport { CngxPopover, CngxPopoverTrigger } from '@cngx/common/popover';\nimport {\n CNGX_DOM_ANCHOR_RETRY_FACTORY,\n CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY,\n CNGX_TAB_PANEL_HOST,\n CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY,\n CngxTabOverflowItem,\n CngxTabOverflowTrigger,\n createTabOverflowTemplateBindings,\n injectTabsConfig,\n injectTabsI18n,\n tabOverflowOptionId,\n type CngxDomAnchorRetryHandle,\n type CngxTabHandle,\n type CngxTabPanelHost,\n} from '@cngx/common/tabs';\nimport { CngxRuntimeError, cngxDevWarn } from '@cngx/utils';\n\n/**\n * Structural equal for `hiddenTabs` - same ids in same order.\n *\n * @internal\n */\nfunction tabIdListEqual(a: readonly CngxTabHandle[], b: readonly CngxTabHandle[]): boolean {\n if (a === b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i].id !== b[i].id) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Auto-open keys for the trigger button (APG combobox).\n *\n * @internal\n */\nconst NAV_OPEN_KEYS = new Set(['ArrowDown', 'ArrowUp', 'Home', 'End']);\n\n/**\n * Structural equal for `visibilityState`. Without this, the\n * `update((prev) => new Map(prev))` cycle in `handleIntersections`\n * cascades into `hiddenTabs` on every IO fire even when no tab\n * actually flipped visibility.\n *\n * @internal\n */\nfunction mapBoolEqual(a: ReadonlyMap<string, boolean>, b: ReadonlyMap<string, boolean>): boolean {\n if (a === b) {\n return true;\n }\n if (a.size !== b.size) {\n return false;\n }\n for (const [key, value] of a) {\n if (b.get(key) !== value) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Opt-in overflow indicator for `<cngx-tab-group>`. Surfaces clipped\n * tab buttons through a \"More\" `CngxPopover` dropdown. Talks to the\n * organism only via {@link CNGX_TAB_PANEL_HOST}.\n *\n * Visibility is tracked through a native `IntersectionObserver`\n * rooted on the parent strip - `CngxIntersectionObserver` doesn't\n * fit (single-element scope, can't reach sibling `viewChildren`).\n * `threshold: 0` - only fully-clipped tabs surface. Combined with\n * the organism's `scrollIntoView` effect this forms the self-healing\n * loop: pick hidden tab -> strip scrolls -> IO fires -> `hiddenTabs`\n * self-trims.\n *\n * @playground Overflow showcase ./examples/overflow-showcase/overflow-showcase.component.ts\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts\n * @since 0.3.0\n * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant\n * @slot cngxTabOverflowTrigger Replaces the control that opens the overflow menu.\n * @slot cngxTabOverflowItem Replaces a row in the overflow menu; gets the tab.\n * <example-url>/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>\n * <example-url>/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>\n * <example-url>/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-tab-overflow',\n exportAs: 'cngxTabOverflow',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n NgTemplateOutlet,\n CngxActiveDescendant,\n CngxClickOutside,\n CngxPopover,\n CngxPopoverTrigger,\n ],\n templateUrl: './tab-overflow.component.html',\n styleUrls: ['./tab-overflow.component.css'],\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class.cngx-tab-overflow]': 'true',\n },\n})\nexport class CngxTabOverflow {\n // Projected via <ng-content>, so DI walks up to the parent's injector.\n // `{ host: true }` would scope to the molecule and miss the provider.\n protected readonly panelHost: CngxTabPanelHost = injectTabPanelHost();\n protected readonly i18n = injectTabsI18n();\n protected readonly popover = viewChild.required(CngxPopover);\n private readonly adRef = viewChild.required(CngxActiveDescendant);\n\n private readonly hostElement: HTMLElement =\n inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly destroyRef = inject(DestroyRef);\n\n // DOM-resolution strategy. Default factory targets the cngx-native\n // strip selectors; Material/custom variants swap via providers.\n private readonly adapter = inject(CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY)();\n\n // tab id -> visibility. `undefined` = not yet observed (treat as\n // visible - prevents More-button flash on first render).\n // `linkedSignal` prunes stale ids when the tabs list changes;\n // observer re-attach lives in the effect below. `mapBoolEqual`\n // suppresses identity-only re-emissions from the IO callback.\n private readonly visibilityState = linkedSignal<\n readonly CngxTabHandle[],\n ReadonlyMap<string, boolean>\n >({\n source: () => this.panelHost.tabs(),\n computation: (tabs, prev) => {\n if (!prev) {\n return new Map();\n }\n const liveIds = new Set(tabs.map((t) => t.id));\n const next = new Map<string, boolean>();\n for (const [id, vis] of prev.value) {\n if (liveIds.has(id)) {\n next.set(id, vis);\n }\n }\n return next;\n },\n equal: mapBoolEqual,\n });\n\n protected readonly hiddenTabs = computed<readonly CngxTabHandle[]>(\n () => {\n const visMap = this.visibilityState();\n return this.panelHost.tabs().filter((t) => visMap.get(t.id) === false);\n },\n { equal: tabIdListEqual },\n );\n\n protected readonly hasHiddenTabs = computed(() => this.hiddenTabs().length > 0, {\n equal: Object.is,\n });\n\n // Counter projected into trigger label + aria-label. Explicit\n // computed isolates `Object.is` distinct-gate from `hiddenTabs`\n // identity churn - prevents flicker on length-equal re-emissions.\n protected readonly hiddenCount = computed(() => this.hiddenTabs().length);\n\n // ARIA menu-button pattern: <button aria-haspopup=\"menu\"> + popover\n // role=\"menu\". Quick-jump navigation (selectById is not a value\n // commit), so menu/menuitem is correct - listbox/option implies\n // persistent aria-selected. WAI-ARIA 1.2 §combobox forbids\n // aria-haspopup=\"menu\", so combobox is deliberately not used.\n protected readonly adItemId = tabOverflowOptionId;\n\n // Read first - TS field-init order; downstream fields snapshot off this.\n private readonly tabsConfig = injectTabsConfig();\n\n // 3-stage cascade: directive > config.templates.overflow* > built-in.\n // `contentChild` must be a field-direct initializer (Angular AOT).\n private readonly triggerSlot = contentChild(CngxTabOverflowTrigger);\n private readonly itemSlot = contentChild(CngxTabOverflowItem);\n protected readonly templates = createTabOverflowTemplateBindings({\n triggerSlot: this.triggerSlot,\n itemSlot: this.itemSlot,\n config: this.tabsConfig,\n hiddenCount: this.hiddenCount,\n hiddenTabs: this.hiddenTabs,\n pickTab: (tab) => this.pickTab(tab),\n tabs: this.panelHost.tabs,\n i18n: this.i18n,\n });\n\n private observer: IntersectionObserver | null = null;\n // Variant-agnostic target -> id lookup. cngx-native uses\n // `${id}-header`, Material `mat-tab-group-N-label-M`.\n private readonly targetToHandleId = new WeakMap<HTMLElement, string>();\n\n // IO-debounce knobs - see `CngxTabsConfig.overflowStabilizeMs` /\n // `.overflowMaxDeferMs` for semantics. Captured once at construction.\n private readonly stabilizeMs = this.tabsConfig.overflowStabilizeMs ?? 100;\n private readonly maxDeferMs = this.tabsConfig.overflowMaxDeferMs ?? 250;\n private stabilizeHandle: ReturnType<typeof setTimeout> | null = null;\n private pendingEntries: IntersectionObserverEntry[] = [];\n // performance.now() of the first entry since the last commit; null\n // between commits. Drives the max-defer cap.\n private firstPendingAt: number | null = null;\n\n // rAF-scheduled IO attach retry. `display: none` toggles do NOT\n // recover - unmount/remount is required to re-arm. Policy swap\n // via CNGX_DOM_ANCHOR_RETRY_FACTORY.\n private readonly attachRetry: CngxDomAnchorRetryHandle = inject(CNGX_DOM_ANCHOR_RETRY_FACTORY)({\n attempt: () => {\n const root = this.resolveStrip();\n if (!root) {\n return null;\n }\n // threshold: 0 - any visible pixel = \"in the strip\". Drives\n // the self-healing loop with the organism's scrollIntoView.\n this.observer = new IntersectionObserver((entries) => this.handleIntersections(entries), {\n root,\n threshold: 0,\n });\n this.observeCurrentTabs();\n return true;\n },\n maxAttempts: 60,\n schedule: (cb) => {\n const handle = requestAnimationFrame(cb);\n return () => cancelAnimationFrame(handle);\n },\n onGiveUp: () => {\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n cngxDevWarn(\n 'CNGX3012',\n '[cngx-tab-overflow] strip wrapper not found after 60 attach ' +\n 'attempts; the More popover will not surface clipped tabs. ' +\n 'Verify the molecule sits inside the tab strip it watches: a direct ' +\n 'child of <cngx-tab-group>, or the one [cngxMatTabs] places in the Material header.',\n );\n }\n },\n });\n\n constructor() {\n afterNextRender(() => this.attachRetry.start());\n\n // Re-observe on tab-list change. Stale-id pruning is derived in\n // `visibilityState`'s linkedSignal source.\n effect(() => {\n this.panelHost.tabs();\n untracked(() => {\n if (!this.observer) {\n return;\n }\n this.observer.disconnect();\n this.observeCurrentTabs();\n });\n });\n\n inject(CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY)(this.popover, this.adRef);\n\n this.destroyRef.onDestroy(() => {\n this.attachRetry.cancel();\n if (this.stabilizeHandle !== null) {\n clearTimeout(this.stabilizeHandle);\n this.stabilizeHandle = null;\n }\n this.firstPendingAt = null;\n this.pendingEntries.length = 0;\n this.observer?.disconnect();\n this.observer = null;\n });\n }\n\n protected pickTab(tab: CngxTabHandle): void {\n this.panelHost.selectById(tab.id);\n this.popover().hide();\n }\n\n /** AD `(activated)` - Enter / Space on a highlighted option picks. */\n protected handleAdActivated(value: unknown): void {\n const tab = value as CngxTabHandle;\n if (tab?.id) {\n this.pickTab(tab);\n }\n }\n\n /**\n * Auto-opens popover on nav-key when collapsed. AD's host listener\n * fires first, so `activeIndex` is already set when this runs.\n * No-op while open - AD owns navigation.\n */\n protected handleTriggerKeydown(event: KeyboardEvent): void {\n if (this.popover().isVisible() || !this.hasHiddenTabs()) {\n return;\n }\n if (NAV_OPEN_KEYS.has(event.key)) {\n this.popover().show();\n }\n }\n\n private observeCurrentTabs(): void {\n if (!this.observer) {\n return;\n }\n const root = this.resolveStrip();\n if (!root) {\n return;\n }\n const tabs = this.panelHost.tabs();\n for (let idx = 0; idx < tabs.length; idx++) {\n const button = this.adapter.resolveTabButton(tabs[idx], root, idx);\n if (button) {\n this.targetToHandleId.set(button, tabs[idx].id);\n this.observer.observe(button);\n }\n }\n }\n\n private handleIntersections(entries: IntersectionObserverEntry[]): void {\n // Buffer entries; signal write deferred to commitPendingVisibility\n // once IO settles for stabilizeMs (capped by maxDeferMs).\n for (const entry of entries) {\n this.pendingEntries.push(entry);\n }\n const now = performance.now();\n this.firstPendingAt ??= now;\n if (this.stabilizeHandle !== null) {\n clearTimeout(this.stabilizeHandle);\n }\n // Wait min(stabilizeMs, remaining max-defer). Math.max(0, …)\n // guards a negative remaining after a long task.\n const elapsed = now - this.firstPendingAt;\n const maxDeferRemaining = this.maxDeferMs - elapsed;\n const wait = Math.max(0, Math.min(this.stabilizeMs, maxDeferRemaining));\n this.stabilizeHandle = setTimeout(() => this.commitPendingVisibility(), wait);\n }\n\n private commitPendingVisibility(): void {\n this.stabilizeHandle = null;\n this.firstPendingAt = null;\n const entries = this.pendingEntries;\n if (entries.length === 0) {\n return;\n }\n this.pendingEntries = [];\n this.visibilityState.update((prev) => {\n const next = new Map(prev);\n for (const entry of entries) {\n const target = entry.target as HTMLElement;\n const tabId = this.targetToHandleId.get(target);\n if (tabId === undefined) {\n // Stale registration during disconnect/observeCurrentTabs\n // churn - skip rather than mis-key.\n continue;\n }\n // threshold: 0 - partially-clipped stays visible; only\n // fully-clipped surfaces as hidden.\n next.set(tabId, entry.isIntersecting);\n }\n return next;\n });\n }\n\n /**\n * IO-root resolution via the injected adapter. Returns `null`\n * before the molecule is anchored - the rAF retry loop re-polls.\n */\n private resolveStrip(): HTMLElement | null {\n return this.adapter.resolveStripRoot(this.panelHost, this.hostElement);\n }\n}\n\n/**\n * Inject the {@link CNGX_TAB_PANEL_HOST} of the surrounding tab group for\n * {@link CngxTabOverflow}. Throws a `CngxRuntimeError` with code `CNGX3023`\n * when no tab group is above it, in development and production alike.\n *\n * @internal\n */\nfunction injectTabPanelHost(): CngxTabPanelHost {\n const host = inject(CNGX_TAB_PANEL_HOST, { optional: true });\n if (!host) {\n throw new CngxRuntimeError(\n 'CNGX3023',\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n '[cngx-tab-overflow] must be placed inside <cngx-tab-group> or <mat-tab-group cngxMatTabs>.',\n );\n }\n return host;\n}\n","<button\n type=\"button\"\n class=\"cngx-tab-overflow__trigger\"\n cngxActiveDescendant\n #ad=\"cngxActiveDescendant\"\n [items]=\"templates.adItems()\"\n [cngxPopoverTrigger]=\"overflowPopover\"\n [haspopup]=\"'menu'\"\n [hidden]=\"!hasHiddenTabs()\"\n [attr.aria-label]=\"i18n().moreTabsLabel(hiddenCount())\"\n (activated)=\"handleAdActivated($event)\"\n (keydown)=\"handleTriggerKeydown($event)\"\n (click)=\"overflowPopover.toggle()\"\n>\n @let triggerTpl = templates.triggerTemplate();\n @if (triggerTpl) {\n <ng-container\n *ngTemplateOutlet=\"triggerTpl; context: templates.triggerContext()\"\n />\n } @else {\n {{ i18n().moreTabsLabel(hiddenCount()) }}\n }\n</button>\n\n<div\n cngxPopover\n #overflowPopover=\"cngxPopover\"\n cngxClickOutside\n [eventType]=\"'click'\"\n [enabled]=\"overflowPopover.isVisible()\"\n (clickOutside)=\"overflowPopover.hide()\"\n role=\"menu\"\n class=\"cngx-tab-overflow__panel\"\n placement=\"bottom-end\"\n [attr.aria-label]=\"i18n().moreTabsLabel(hiddenCount())\"\n>\n <!--\n `role=\"presentation\"` flattens the <ul> away from the\n accessibility tree so each <li role=\"menuitem\"> is exposed as a\n direct child of the role=\"menu\" landmark on the popover surface.\n Each item carries a stable id derived from the tab handle id;\n CngxActiveDescendant on the trigger steers `aria-activedescendant`\n at one of these ids while the user navigates with\n ArrowUp/Down/Home/End/typeahead. The popover is a quick-jump\n navigation surface - selecting an item triggers `selectById`,\n not a value commit - so menu/menuitem is the spec-correct pattern\n (listbox/option carries `aria-selected` semantics that do not\n apply to a transient navigation popup).\n -->\n <ul class=\"cngx-tab-overflow__list\" role=\"presentation\">\n @for (tab of hiddenTabs(); track tab.id; let i = $index) {\n <li\n role=\"menuitem\"\n class=\"cngx-tab-overflow__item\"\n [class.cngx-tab-overflow__item--active]=\"ad.activeId() === adItemId(tab)\"\n [id]=\"adItemId(tab)\"\n [attr.data-tab-id]=\"tab.id\"\n [attr.aria-disabled]=\"tab.disabled() ? 'true' : 'false'\"\n (click)=\"!tab.disabled() && pickTab(tab)\"\n >\n @let itemTpl = templates.itemTemplate();\n @if (itemTpl) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl; context: templates.buildItemContext(tab, i)\"\n />\n } @else {\n {{ templates.itemLabel(tab) }}\n }\n </li>\n }\n </ul>\n</div>\n","/**\n * @module `@cngx/ui/tabs`\n */\nexport { CngxTabGroup } from './tab-group.component';\nexport { CngxTabNav } from './tab-nav.component';\nexport { CngxTabOverflow } from './tab-overflow.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAaA;;;;;;;;AAQG;AACG,SAAU,wBAAwB,CAAC,IAAiC,EAAA;IACxE,IAAI,EAAE,OAAO,SAAS,KAAK,WAAW,IAAI,SAAS,CAAC,EAAE;QACpD;IACF;IACA,eAAe,CAAC,MAAK;;;AAGnB,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE;YACxD,WAAW,CACT,UAAU,EACV,kEAAkE;gBAChE,8DAA8D;AAC9D,gBAAA,8EAA8E,EAChF,IAAI,CAAC,IAAI,CACV;QACH;AACA,QAAA,MAAM,SAAS,GAAG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