@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.9
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 +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +227 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +120 -36
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +121 -56
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +228 -108
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +204 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +209 -40
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -101
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1074 -460
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +76 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +555 -204
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +553 -198
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +344 -109
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +234 -99
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +88 -25
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +98 -23
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +101 -33
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/README.md +30 -6
- package/mat-tabs/styles/mat-tabs.css +188 -42
- package/overlay/README.md +9 -4
- package/package.json +31 -7
- package/paginator/README.md +8 -4
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +91 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +14 -2
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +100 -28
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +167 -60
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +157 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +140 -10
- package/types/cngx-ui-data-grid-accordion.d.ts +278 -39
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +605 -59
- package/types/cngx-ui-mat-accordion.d.ts +30 -1
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +250 -34
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +425 -136
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +88 -49
- package/types/cngx-ui-tabs.d.ts +6 -4
- package/types/cngx-ui-timeline.d.ts +35 -11
- package/types/cngx-ui-toc.d.ts +93 -16
- package/types/cngx-ui.d.ts +7 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cngx-ui-context-menu.mjs","sources":["../../../projects/ui/context-menu/context-menu-content.directive.ts","../../../projects/ui/context-menu/context-menu-panel.ts","../../../projects/ui/context-menu/context-menu.component.ts","../../../projects/ui/context-menu/context-menu-for.directive.ts","../../../projects/ui/context-menu/context-menu-item-submenu-facade.ts","../../../projects/ui/context-menu/menu-glyphs.ts","../../../projects/ui/context-menu/context-menu-item.component.ts","../../../projects/ui/context-menu/context-menu-divider.component.ts","../../../projects/ui/context-menu/context-menu-item-checkbox.component.ts","../../../projects/ui/context-menu/context-menu-item-radio.component.ts","../../../projects/ui/context-menu/public-api.ts","../../../projects/ui/context-menu/cngx-ui-context-menu.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Context handed to a `*cngxContextMenuContent` template. `$implicit` is the\n * per-open datum the trigger resolved for the target the menu opened over\n * (`null` while the menu is closed). Read it with `let-row`.\n *\n * @category ui/context-menu\n */\nexport interface CngxContextMenuContentContext<T = unknown> {\n /** The per-open datum, or `null` while the menu is closed. Usable as `let-row`. */\n readonly $implicit: T | null;\n}\n\n/**\n * Lazy content slot for {@link CngxContextMenu}. The template renders only\n * while the menu is open and receives the trigger's per-open datum as\n * `$implicit`, so one panel declaration serves every target of a delegated\n * trigger with row-correct content.\n *\n * ```html\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">\n * <ng-template cngxContextMenuContent let-row>\n * <cngx-context-menu-item (select)=\"edit(row)\">Edit {{ row.name }}</cngx-context-menu-item>\n * </ng-template>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/table/row-context-data</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-content.directive.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuFor\n */\n@Directive({\n selector: 'ng-template[cngxContextMenuContent]',\n exportAs: 'cngxContextMenuContent',\n standalone: true,\n})\nexport class CngxContextMenuContent<T = unknown> {\n /** The projected `<ng-template>`, rendered by the panel while open. */\n readonly templateRef = inject<TemplateRef<CngxContextMenuContentContext<T>>>(TemplateRef);\n\n /** Narrows `let-` bindings to {@link CngxContextMenuContentContext} under strict templates. */\n static ngTemplateContextGuard<T>(\n _dir: CngxContextMenuContent<T>,\n _ctx: unknown,\n ): _ctx is CngxContextMenuContentContext<T> {\n return true;\n }\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\nimport type { CngxContextMenuTriggerPopoverRef, CngxMenuHost } from '@cngx/common/interactive';\n\n/**\n * Structural contract a context-menu panel exposes to `CngxContextMenuFor`.\n * The trigger depends on this interface rather than the concrete\n * `CngxContextMenu` class so an ejected panel skin (decompose) or a future\n * second panel can satisfy the same seam - the `CngxMenuHost` precedent\n * (`CNGX_MENU_HOST`) applied to the panel surface.\n *\n * @category ui/context-menu\n */\nexport interface CngxContextMenuPanel<T = unknown> {\n /** Popover surface the trigger drives at pointer coordinates. */\n readonly popover: CngxContextMenuTriggerPopoverRef;\n /** Menu brain the popover wraps (`role=\"menu\"`, active-descendant registry). */\n readonly menuHost: CngxMenuHost;\n /** The per-open datum while visible, `null` once closed. */\n readonly context: Signal<T | null>;\n /** Store the per-open datum. Called by the trigger before the popover opens. */\n setContext(value: T | null): void;\n /**\n * @internal Open this panel as a nested submenu of a parent item: flank the\n * inline-end (`right-start` + the submenu flip chain), open non-exclusively so\n * the parent panel survives, and mirror the parent's per-open datum. Owns the\n * submenu placement policy so a projected item drives one seam instead of\n * reaching into the popover's override signals. Optional: an ejected panel\n * skin may omit it and drive its own popover directly.\n */\n openAsSubmenu?(context: T | null): void;\n /**\n * @internal Register the trigger core's keydown handler so the panel can\n * forward ArrowRight/ArrowLeft/Escape submenu routing to it. The core owns\n * that routing, but open moves focus into the panel (a sibling of the\n * trigger), so the panel - not the trigger host - is where those keys land.\n * `null` deregisters. Optional: an ejected panel skin may omit it, in which\n * case keyboard submenu routing is simply not wired.\n */\n setKeydownHandler?(handler: ((event: KeyboardEvent) => void) | null): void;\n /**\n * @internal Register the trigger core's activation handler. The panel\n * subscribes to its menu brain's `CngxActiveDescendant.activated` output and\n * invokes this on every activation, so pointer click and Enter/Space open a\n * submenu-parent deterministically off the `activated` event rather than a\n * forwarded keydown that races the AD's own listener. `null` deregisters.\n * Optional: an ejected panel skin may omit it.\n */\n setActivationHandler?(handler: (() => void) | null): void;\n /**\n * @internal Register the trigger core's push-only \"submenu opened\" handler.\n * A projected item calls {@link noteActiveSubmenuOpened} after its\n * `openAsSubmenu` terminal ran; the panel forwards to this handler so the\n * trigger's focus stack records an externally opened submenu (hover and\n * click already route through the stack and no-op here). `null`\n * deregisters. Optional: an ejected panel skin may omit it.\n */\n setSubmenuNoteHandler?(handler: (() => void) | null): void;\n /**\n * @internal Called by a projected item after its `openAsSubmenu` terminal\n * showed the submenu, so the trigger's focus stack records it when the open\n * did not come from the stack itself (programmatic opens; idempotent no-op\n * for hover/click). Routes to the handler registered via\n * {@link setSubmenuNoteHandler}; a no-op when none is wired.\n */\n noteActiveSubmenuOpened?(): void;\n}\n\n/**\n * @internal DI token the panel provides via `useExisting` so a projected\n * `CngxContextMenuItem` can read its enclosing panel's `context()` and mirror\n * it into a sibling-declared submenu. Not part of the public API - the child\n * talks to the panel through this structural seam rather than injecting the\n * concrete `CngxContextMenu` class (`CNGX_MENU_HOST` precedent).\n */\nexport const CNGX_CONTEXT_MENU_PANEL = new InjectionToken<CngxContextMenuPanel>(\n 'CNGX_CONTEXT_MENU_PANEL',\n);\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { CngxMenu, CNGX_SUBMENU_TRY_FALLBACKS } from '@cngx/common/interactive';\nimport { CngxPopover } from '@cngx/common/popover';\n\nimport { CngxContextMenuContent } from './context-menu-content.directive';\nimport { CNGX_CONTEXT_MENU_PANEL, type CngxContextMenuPanel } from './context-menu-panel';\n\n/**\n * Declarative context-menu panel. Stacks `CngxPopover` (the top-layer popup\n * surface) and `CngxMenu` (the `role=\"menu\"` keyboard + ARIA brain) as host\n * directives on its own element, so projected items and the lazy content\n * template resolve `CngxActiveDescendant` / `CNGX_MENU_HOST` against the panel\n * host's injector chain. Pair it with `[cngxContextMenuFor]` on a target.\n *\n * The brains live on the host - not inside an inner `[cngxMenu]` element -\n * because Angular resolves DI for projected and template content at the\n * declaration site, not the projection site; an inner menu directive would\n * be invisible to items rendered through `<ng-content>` or the content slot.\n * Construction mirrors `CngxPopoverPanel`.\n *\n * `context()` is derived, never synced: it reads the trigger's per-open datum\n * while the popover is visible and `null` once it closes - no manual reset on\n * dismiss (Pillar 1).\n *\n * ### Static menu\n * ```html\n * <div [cngxContextMenuFor]=\"menu\">Right-click me</div>\n * <cngx-context-menu #menu ariaLabel=\"Actions\">\n * <cngx-context-menu-item (select)=\"copy()\">Copy</cngx-context-menu-item>\n * <cngx-context-menu-item (select)=\"paste()\">Paste</cngx-context-menu-item>\n * </cngx-context-menu>\n * ```\n *\n * ### Per-row content\n * ```html\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">\n * <ng-template cngxContextMenuContent let-row>\n * <cngx-context-menu-item (select)=\"edit(row)\">Edit {{ row.name }}</cngx-context-menu-item>\n * </ng-template>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuContent, CngxMenu, CngxPopover\n */\n@Component({\n selector: 'cngx-context-menu',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenu',\n providers: [{ provide: CNGX_CONTEXT_MENU_PANEL, useExisting: CngxContextMenu }],\n host: {\n '(keydown)': 'handleKeydown($event)',\n },\n hostDirectives: [\n { directive: CngxPopover, inputs: ['offset', 'closeOnEscape'] },\n { directive: CngxMenu, inputs: ['label: ariaLabel'] },\n ],\n template: `\n @if (contentTemplate(); as content) {\n @if (popover.isVisible()) {\n <ng-container *ngTemplateOutlet=\"content.templateRef; context: { $implicit: context() }\" />\n }\n } @else {\n <ng-content />\n }\n `,\n styleUrl: './context-menu.component.css',\n})\nexport class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {\n /** The popover surface this panel drives. Consumed by the trigger core. */\n readonly popover = inject(CngxPopover, { self: true });\n /** The menu brain (`role=\"menu\"`, active-descendant registry). */\n readonly menuHost = inject(CngxMenu, { self: true });\n\n /** Per-open datum set by the trigger before `show()`. */\n private readonly datum = signal<T | null>(null);\n\n /**\n * The datum the menu opened over while visible, `null` once closed. Gated on\n * `popover.isVisible()` so the reset on dismiss is derived, not synced.\n */\n readonly context = computed<T | null>(() => (this.popover.isVisible() ? this.datum() : null));\n\n protected readonly contentTemplate = contentChild(CngxContextMenuContent);\n\n /**\n * @internal Store the per-open datum. Called by `CngxContextMenuFor` in the\n * `contextmenu` event path, before the popover opens.\n */\n setContext(value: T | null): void {\n this.datum.set(value);\n }\n\n /**\n * @internal Open this panel as a nested submenu of a parent item. Installs the\n * inline-end placement + flip chain, opens non-exclusively (the parent panel\n * survives), mirrors the parent's per-open datum, then shows. Owns the submenu\n * placement policy so `CngxContextMenuItem` drives one seam rather than\n * reaching into the popover's `@internal` override signals - the ejected item\n * skin stays off `CngxPopover` internals (decompose).\n */\n openAsSubmenu(context: T | null): void {\n this.popover.exclusiveOverride.set(false);\n this.popover.placementOverride.set('right-start');\n this.popover.positionTryFallbacksOverride.set(CNGX_SUBMENU_TRY_FALLBACKS);\n this.setContext(context);\n this.popover.show();\n }\n\n /** Keydown forwarder registered by the trigger; `null` while none is bound. */\n private keydownHandler: ((event: KeyboardEvent) => void) | null = null;\n /** Activation forwarder registered by the trigger; `null` while none bound. */\n private activationHandler: (() => void) | null = null;\n /** Push-only submenu-note forwarder registered by the trigger; `null` while none bound. */\n private submenuNoteHandler: (() => void) | null = null;\n\n constructor() {\n // Open moves focus into the menu container, so the container's\n // CngxActiveDescendant owns Enter/Space and a forwarded keydown reaches the\n // trigger core too late to open a submenu parent. Drive the open off the\n // deterministic `activated` event instead - it fires once, after the AD\n // decides, on both keyboard activation and pointer click.\n outputToObservable(this.menuHost.ad.activated)\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.activationHandler?.());\n }\n\n /**\n * @internal Register the trigger core's keydown handler. The core owns\n * submenu ArrowRight/ArrowLeft/Escape routing, but open moves focus into\n * this panel, so keydown lands here rather than on the trigger host.\n */\n setKeydownHandler(handler: ((event: KeyboardEvent) => void) | null): void {\n this.keydownHandler = handler;\n }\n\n /**\n * @internal Register the trigger core's activation handler, invoked on every\n * `CngxActiveDescendant.activated` (keyboard activation + pointer click) so a\n * submenu parent opens deterministically off the event rather than a racing\n * keydown.\n */\n setActivationHandler(handler: (() => void) | null): void {\n this.activationHandler = handler;\n }\n\n /** @internal Register the trigger core's push-only submenu-note handler. */\n setSubmenuNoteHandler(handler: (() => void) | null): void {\n this.submenuNoteHandler = handler;\n }\n\n /** @internal A projected item calls this after its openAsSubmenu terminal\n * ran, so the trigger's focus stack records an externally opened submenu\n * (idempotent no-op for stack-driven hover/click opens). */\n noteActiveSubmenuOpened(): void {\n this.submenuNoteHandler?.();\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n this.keydownHandler?.(event);\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n untracked,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport {\n CNGX_MENU_ANNOUNCER_FACTORY,\n CNGX_MENU_DISMISS_HANDLER_FACTORY,\n CNGX_MENU_FOCUS_STACK_FACTORY,\n CNGX_MENU_NAV_STRATEGY,\n connectSubmenuHoverToFocusStack,\n createContextMenuTriggerCore,\n injectMenuConfig,\n} from '@cngx/common/interactive';\n\nimport type { CngxContextMenuPanel } from './context-menu-panel';\n\n/**\n * Docks a {@link CngxContextMenu} onto a target element. Opens the panel at\n * pointer coordinates on `contextmenu` (right-click) or `Shift+F10`, feeding\n * the panel a per-open datum so one declaration serves many targets.\n *\n * Two ways to obtain the datum `T`:\n * - `[cngxContextMenuData]` - a fixed datum for this single target.\n * - `[cngxContextMenuResolve]` - a resolver run against the `contextmenu`\n * event, so a container (table, grid, treetable, virtualized list) keeps a\n * single trigger instance and derives the row from `event.target`. The\n * resolver wins when both are bound. A `null` resolver result leaves the\n * native context menu untouched (no `preventDefault`, no open).\n *\n * A thin shell over `createContextMenuTriggerCore` (shared with\n * `CngxContextMenuTrigger`): the core owns the preventDefault decision through\n * its `resolveOpen` seam, so the veto lives in one place and this directive\n * only feeds the resolver.\n *\n * ```html\n * <tr [cngxContextMenuFor]=\"menu\" [cngxContextMenuData]=\"row\" tabindex=\"0\"></tr>\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">…</cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-for.directive.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuTrigger\n */\n@Directive({\n selector: '[cngxContextMenuFor]',\n exportAs: 'cngxContextMenuFor',\n standalone: true,\n host: {\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'isOpen()',\n '(contextmenu)': 'handleContextMenu($event)',\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class CngxContextMenuFor<T = unknown> {\n /** Panel this trigger opens. Typed to the {@link CngxContextMenuPanel} seam. */\n readonly panel = input.required<CngxContextMenuPanel<T>>({ alias: 'cngxContextMenuFor' });\n\n /** Fixed datum handed to the panel for this single target. */\n readonly data = input<T | undefined>(undefined, { alias: 'cngxContextMenuData' });\n\n /**\n * Resolver run against the `contextmenu` event. Return the datum to open\n * with, or `null` to let the native menu show. Wins over `[cngxContextMenuData]`.\n */\n readonly resolve = input<((event: MouseEvent) => T | null) | undefined>(undefined, {\n alias: 'cngxContextMenuResolve',\n });\n\n /** Mirrors the panel popover's visibility. */\n readonly isOpen = computed<boolean>(() => this.panel().popover.isVisible());\n\n private readonly core = createContextMenuTriggerCore({\n menu: () => this.panel().menuHost,\n popover: () => this.panel().popover,\n hostElement: inject<ElementRef<HTMLElement>>(ElementRef).nativeElement,\n document: inject(DOCUMENT),\n menuConfig: injectMenuConfig(),\n dismissFactory: inject(CNGX_MENU_DISMISS_HANDLER_FACTORY),\n announcer: inject(CNGX_MENU_ANNOUNCER_FACTORY)(),\n nav: inject(CNGX_MENU_NAV_STRATEGY),\n direction: injectDirection(),\n focusStackFactory: inject(CNGX_MENU_FOCUS_STACK_FACTORY),\n resolveOpen: (event) => {\n const resolver = this.resolve();\n if (resolver) {\n const resolved = resolver(event);\n return resolved === null ? { open: false } : { open: true, context: resolved };\n }\n return { open: true, context: this.data() ?? null };\n },\n commitContext: (context) => this.panel().setContext(context as T | null),\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => this.core.destroy());\n effect(() => {\n const open = this.isOpen();\n untracked(() => this.core.syncOpenState(open));\n });\n // Hover routing: route submenu hover-intent edges through the core's\n // focus stack, same primitives as keyboard/click (see CngxMenuTrigger).\n connectSubmenuHoverToFocusStack({\n focusStack: this.core.focusStack,\n rootMenu: () => this.panel().menuHost,\n rootOpen: () => this.isOpen(),\n });\n // Open moves focus into the panel (a sibling of this trigger), so submenu\n // ArrowRight/ArrowLeft/Escape land on the panel. Forward the panel's\n // keydown into the core, which owns that routing. The panel also drives the\n // core's activation (open a submenu parent off `ad.activated`) and the\n // push-only note (stack-track a hover-opened submenu) through the same\n // register-a-handler seam.\n const forwardKeydown = (event: KeyboardEvent): void => this.core.handleKeydown(event);\n const openActiveSubmenu = (): void => this.core.openActiveSubmenu();\n const noteActiveSubmenuOpened = (): void => this.core.noteActiveSubmenuOpened();\n effect((onCleanup) => {\n const panel = this.panel();\n untracked(() => {\n panel.setKeydownHandler?.(forwardKeydown);\n panel.setActivationHandler?.(openActiveSubmenu);\n panel.setSubmenuNoteHandler?.(noteActiveSubmenuOpened);\n });\n // Clear the handlers on the panel this run registered - fires before the\n // next run (panel rebind) and on destroy, so a swapped-out panel never\n // keeps stale handlers pointing at this trigger's core.\n onCleanup(() => {\n panel.setKeydownHandler?.(null);\n panel.setActivationHandler?.(null);\n panel.setSubmenuNoteHandler?.(null);\n });\n });\n }\n\n protected handleContextMenu(event: MouseEvent): void {\n this.core.handleContextMenu(event);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n this.core.handleKeydown(event);\n }\n}\n","import type { CngxMenuSubmenuPopoverRef } from '@cngx/common/interactive';\n\nimport type { CngxContextMenu } from './context-menu.component';\n\n/**\n * Build the popover-facade adapter the submenu brain (`CngxMenuItemSubmenu`)\n * drives instead of a `[cngxMenuItemSubmenu]` popover input. Every member\n * delegates to the target panel's own `CngxPopover`, reading `target()` lazily\n * so the facade stays valid across `[submenu]` changes and inert (no visible,\n * empty id) while the target is unbound. `show()` delegates to the supplied\n * `open` routing rather than `popover.show()`, so opening goes through the\n * trigger's focus stack (Pillar 1) instead of bypassing it.\n *\n * Internal decompose glue, not a consumer contract - NOT exported from\n * `public-api.ts`. Extracting it keeps `CngxContextMenuItem`'s class body a\n * thin shell (reference_atomic_decompose rule 1).\n *\n * @category ui/context-menu\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-submenu-facade.ts\n * @since 0.1.0\n */\nexport function createContextMenuItemSubmenuFacade(\n target: () => CngxContextMenu<unknown> | undefined,\n open: () => void,\n): CngxMenuSubmenuPopoverRef {\n return {\n isVisible: () => target()?.popover.isVisible() ?? false,\n show: () => open(),\n hide: () => target()?.popover.hide(),\n anchorElement: { set: (el) => target()?.popover.anchorElement.set(el) },\n id: () => target()?.popover.id() ?? '',\n elementRef: {\n get nativeElement(): HTMLElement {\n return target()!.popover.elementRef.nativeElement;\n },\n },\n };\n}\n","/**\n * Default single-character glyphs for the context-menu item skin. Plain\n * `as const` (not `TemplateRef`, not a `Directive`) so the strings stay inline\n * at their `aria-hidden` call sites and tree-shake when unused. Consolidates\n * the trailing submenu caret and the checkbox / radio checked indicators into\n * one source, mirroring `CNGX_SELECT_GLYPHS`.\n *\n * Internal to this organism: not exported from `public-api.ts`, not a consumer\n * override surface (that tier stays deferred, menu-accepted-debt §2). Lives\n * here rather than in `@cngx/common/interactive` because the base menu\n * directives hardcode none of these glyphs, so the organism is the only\n * consumer today; hoisting to the brain lib waits for a second menu consumer.\n *\n * @internal\n */\nexport const CNGX_MENU_GLYPHS = {\n /** Trailing caret on an item that opens a submenu. */\n submenuCaret: '▸',\n /** Leading indicator on a checked `menuitemcheckbox`. */\n checkboxChecked: '✓',\n /** Leading indicator on a checked `menuitemradio`. */\n radioChecked: '●',\n} as const;\n\n/** Union of glyph keys. @internal */\nexport type CngxMenuGlyphKey = keyof typeof CNGX_MENU_GLYPHS;\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n inject,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { CngxActiveDescendant } from '@cngx/common/a11y';\nimport {\n CngxMenuItem,\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n CngxMenuItemSubmenu,\n CngxMenuItemSuffix,\n CNGX_MENU_SUBMENU_WIRING,\n type CngxMenuHost,\n type CngxMenuSubmenuPopoverRef,\n type CngxMenuSubmenuWiring,\n} from '@cngx/common/interactive';\n\nimport type { CngxContextMenu } from './context-menu.component';\nimport { createContextMenuItemSubmenuFacade } from './context-menu-item-submenu-facade';\nimport { CNGX_CONTEXT_MENU_PANEL } from './context-menu-panel';\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A single actionable context-menu item. Thin shell over `CngxMenuItem`: the\n * brain owns `role=\"menuitem\"`, the active-descendant registration, the\n * keyboard/pointer activation and the disabled semantics. Dual selector, so it\n * works both as an element and as an attribute on a native `<button>` (the\n * `button[mat-menu-item]` precedent).\n *\n * Emits `select` when this item is activated by click or Enter/Space. Give\n * each item a distinct `[value]` (forwarded to the brain) so pointer\n * activation targets the right row - matching the base `CngxMenuItem`\n * convention; a value-less item still works when it is the only item.\n *\n * ### Submenu\n * Bind `[submenu]` to a sibling `<cngx-context-menu>` to open a nested menu.\n * The `CngxMenuItemSubmenu` brain (a host directive here) is wired internally\n * through `CNGX_MENU_SUBMENU_WIRING`, so the consumer needs no `[exclusive]`\n * handgrip and no popover plumbing - just the sibling reference. The nested\n * panel opens non-exclusively (the parent stays open) and inherits the parent\n * panel's row context.\n *\n * ```html\n * <cngx-context-menu-item value=\"copy\" kbd=\"⌘C\" (select)=\"copy()\">Copy</cngx-context-menu-item>\n * <button cngxContextMenuItem value=\"delete\" [disabled]=\"locked()\" (select)=\"remove()\">Delete</button>\n *\n * <cngx-context-menu-item [submenu]=\"exportMenu\">Export</cngx-context-menu-item>\n * <cngx-context-menu #exportMenu ariaLabel=\"Export as\">\n * <cngx-context-menu-item (select)=\"export('pdf')\">PDF</cngx-context-menu-item>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuDivider, CngxMenuItem, CngxMenuItemSubmenu\n */\n@Component({\n selector: 'cngx-context-menu-item, button[cngxContextMenuItem]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd, CngxMenuItemSuffix],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItem',\n providers: [{ provide: CNGX_MENU_SUBMENU_WIRING, useExisting: CngxContextMenuItem }],\n hostDirectives: [\n { directive: CngxMenuItem, inputs: ['disabled', 'value'] },\n CngxMenuItemSubmenu,\n ],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n @if (submenu()) {\n <span cngxMenuItemSuffix>{{ caret }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItem implements CngxMenuSubmenuWiring {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). A convenience for single-character icons; suppressed when\n * the consumer projects a richer `[cngxMenuItemIcon]` marker (SVG / icon\n * component), which wins.\n */\n readonly icon = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n /**\n * Sibling `<cngx-context-menu>` opened as a nested submenu. When set, the\n * item renders a caret, gains `aria-haspopup=\"menu\"` (from the submenu\n * brain) and routes ArrowRight/ArrowLeft into the nested panel.\n */\n readonly submenu = input<CngxContextMenu<unknown>>();\n\n /** Fires when this item is activated by click or Enter/Space. */\n readonly select = output<void>();\n\n /** @internal Decorative caret rendered while `submenu` is set. RTL flip is\n * a CSS concern (`.cngx-menu-item__suffix` under `[dir='rtl']`), not a\n * swapped glyph. */\n protected readonly caret = CNGX_MENU_GLYPHS.submenuCaret;\n\n private readonly parentPanel = inject(CNGX_CONTEXT_MENU_PANEL, { optional: true });\n\n /**\n * Facade the submenu brain drives instead of a `[cngxMenuItemSubmenu]`\n * input. `show()` opens the target panel non-exclusively and mirrors the\n * parent panel's row context in first; every other member delegates to the\n * target's `CngxPopover`. Built once, reads `submenu()` lazily so it stays\n * valid across target changes. The adapter itself lives in\n * `createContextMenuItemSubmenuFacade` so this class stays a thin shell.\n */\n private readonly submenuPopoverFacade: CngxMenuSubmenuPopoverRef =\n createContextMenuItemSubmenuFacade(\n () => this.submenu(),\n () => this.openSubmenu(),\n );\n\n constructor() {\n const brain = inject(CngxMenuItem);\n const ad = inject(CngxActiveDescendant, { optional: true });\n if (!ad) {\n return;\n }\n // Activation flows through the surrounding CngxActiveDescendant (click and\n // keyboard both funnel into activateCurrent). Filter to this item's brain\n // id so only the activated row emits - the same identity CngxMenu uses. A\n // submenu parent never emits a leaf action: activating it opens the submenu\n // (the panel routes `activated` to the trigger core), so gate on\n // `!submenu()` to keep leaf `select` from firing on a parent.\n outputToObservable(ad.activated)\n .pipe(takeUntilDestroyed())\n .subscribe(() => {\n if (ad.activeId() === brain.id && !this.submenu()) {\n this.select.emit();\n }\n });\n }\n\n /** @internal `CngxMenuSubmenuWiring` - the nested panel's menu brain, or\n * `undefined` while no `[submenu]` is bound so the brain stays inert. */\n menu(): CngxMenuHost | undefined {\n return this.submenu()?.menuHost;\n }\n\n /** @internal `CngxMenuSubmenuWiring` - the popover facade the brain drives,\n * or `undefined` while no `[submenu]` is bound so the brain stays inert. */\n popover(): CngxMenuSubmenuPopoverRef | undefined {\n return this.submenu() ? this.submenuPopoverFacade : undefined;\n }\n\n private openSubmenu(): void {\n const target = this.submenu();\n if (!target) {\n return;\n }\n // Delegate the whole submenu-open policy - inline-end placement, flip chain,\n // non-exclusive open, parent-datum mirror - to the panel. The item drives\n // one seam instead of reaching into the popover's override signals, so an\n // ejected item skin never carries CngxPopover internals (decompose).\n target.openAsSubmenu(this.parentPanel?.context() ?? null);\n // openAsSubmenu is the terminal for every open path (hover, keyboard,\n // click all funnel here through the trigger's focus stack). The note is\n // the safety net for opens the stack did not perform itself\n // (programmatic openAsSubmenu); for stack-driven opens it is an\n // idempotent no-op. Push-only - it never re-enters the open path, so no\n // recursion; the stack stays the single source of the active chain\n // (Pillar 1).\n this.parentPanel?.noteActiveSubmenuOpened?.();\n }\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\nimport { CngxMenuSeparator } from '@cngx/common/interactive';\n\n/**\n * Non-interactive separator between context-menu item groups. Thin shell over\n * `CngxMenuSeparator` (`role=\"separator\"`, `aria-orientation=\"horizontal\"`),\n * skipped by active-descendant navigation and typeahead. Dual selector: use as\n * an element or as an attribute on a native `<hr>`.\n *\n * ```html\n * <cngx-context-menu-divider />\n * <hr cngxContextMenuDivider />\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-divider.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxMenuSeparator\n */\n@Component({\n selector: 'cngx-context-menu-divider, hr[cngxContextMenuDivider]',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuDivider',\n hostDirectives: [CngxMenuSeparator],\n template: '',\n})\nexport class CngxContextMenuDivider {}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n CngxMenuItemCheckbox,\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n} from '@cngx/common/interactive';\n\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A checkable context-menu item (`role=\"menuitemcheckbox\"`). Thin shell over\n * `CngxMenuItemCheckbox`: the brain owns the role, the active-descendant\n * registration, the toggle-on-activation semantics and the reactive\n * `aria-checked`. `checked` is a two-way model forwarded through the host\n * directive, so `[(checked)]` binds straight to consumer state.\n *\n * ```html\n * <cngx-context-menu-item-checkbox [(checked)]=\"wrap\">Word wrap</cngx-context-menu-item-checkbox>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-checkbox.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemRadio, CngxMenuItemCheckbox\n */\n@Component({\n selector: 'cngx-context-menu-item-checkbox, button[cngxContextMenuItemCheckbox]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItemCheckbox',\n host: { '[style.--cngx-context-menu-item-check-glyph]': 'checkGlyph' },\n hostDirectives: [\n {\n directive: CngxMenuItemCheckbox,\n inputs: ['disabled', 'value', 'checked', 'label'],\n outputs: ['checkedChange'],\n },\n ],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItemCheckbox {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). Suppressed when the consumer projects a richer\n * `[cngxMenuItemIcon]` marker. The checked-indicator gutter renders\n * independently of the icon, so a checked item stays visibly checked beside\n * a custom icon.\n */\n readonly icon = input<string>();\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n\n /** @internal Seeds the CSS `content` of the default checked indicator from\n * the shared glyph const (CSS-string quoted for `content:`). */\n protected readonly checkGlyph = `'${CNGX_MENU_GLYPHS.checkboxChecked}'`;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n CngxMenuItemRadio,\n} from '@cngx/common/interactive';\n\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A radio-style context-menu item (`role=\"menuitemradio\"`). Thin shell over\n * `CngxMenuItemRadio`: the brain owns the role, the active-descendant\n * registration and the reactive `aria-checked`. Mutual exclusion is scoped to\n * the enclosing `[cngxMenuGroup]` - the group owns the selected value, the\n * item forwards its `value`.\n *\n * ```html\n * <div cngxMenuGroup label=\"Density\" [(selectedValue)]=\"density\">\n * <cngx-context-menu-item-radio value=\"cozy\">Cozy</cngx-context-menu-item-radio>\n * <cngx-context-menu-item-radio value=\"compact\">Compact</cngx-context-menu-item-radio>\n * </div>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-radio.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxMenuItemRadio, CngxMenuGroup\n */\n@Component({\n selector: 'cngx-context-menu-item-radio, button[cngxContextMenuItemRadio]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItemRadio',\n host: { '[style.--cngx-context-menu-item-check-glyph]': 'checkGlyph' },\n hostDirectives: [{ directive: CngxMenuItemRadio, inputs: ['disabled', 'value', 'label'] }],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItemRadio {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). Suppressed when the consumer projects a richer\n * `[cngxMenuItemIcon]` marker. The checked-indicator gutter renders\n * independently of the icon, so a checked item stays visibly checked beside\n * a custom icon.\n */\n readonly icon = input<string>();\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n\n /** @internal Seeds the CSS `content` of the default checked indicator from\n * the shared glyph const (CSS-string quoted for `content:`). */\n protected readonly checkGlyph = `'${CNGX_MENU_GLYPHS.radioChecked}'`;\n}\n","/**\n * @module @cngx/ui/context-menu\n */\nexport { CngxContextMenu } from './context-menu.component';\nexport {\n CngxContextMenuContent,\n type CngxContextMenuContentContext,\n} from './context-menu-content.directive';\nexport { CngxContextMenuFor } from './context-menu-for.directive';\nexport type { CngxContextMenuPanel } from './context-menu-panel';\nexport { CngxContextMenuItem } from './context-menu-item.component';\nexport { CngxContextMenuDivider } from './context-menu-divider.component';\nexport { CngxContextMenuItemCheckbox } from './context-menu-item-checkbox.component';\nexport { CngxContextMenuItemRadio } from './context-menu-item-radio.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;AAcA;;;;;;;;;;;;;;;;;;;;;AAqBG;MAMU,sBAAsB,CAAA;;AAExB,IAAA,WAAW,GAAG,MAAM,CAAgD,WAAW,CAAC;;AAGzF,IAAA,OAAO,sBAAsB,CAC3B,IAA+B,EAC/B,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;IACb;uGAVW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,QAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;AC4BD;;;;;;AAMG;AACI,MAAM,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB,CAC1B;;AC3DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CG;MA2BU,eAAe,CAAA;;IAEjB,OAAO,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;IAE7C,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;AAGnC,IAAA,KAAK,GAAG,MAAM,CAAW,IAAI,4EAAC;AAE/C;;;AAGG;IACM,OAAO,GAAG,QAAQ,CAAW,OAAO,IAAI,CAAC,OAAO,CAAC,SAA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,CAAC,EAAE,CAAC,EAAA,QAAA,EAChF;;;;;;;;;AAST,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,k5EAAA,CAAA,EAAA;gRAmB+C,gBAAgB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC3ElE;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"cngx-ui-context-menu.mjs","sources":["../../../projects/ui/context-menu/context-menu-content.directive.ts","../../../projects/ui/context-menu/context-menu-panel.ts","../../../projects/ui/context-menu/context-menu.component.ts","../../../projects/ui/context-menu/context-menu-for.directive.ts","../../../projects/ui/context-menu/context-menu-item-submenu-facade.ts","../../../projects/ui/context-menu/menu-glyphs.ts","../../../projects/ui/context-menu/context-menu-item.component.ts","../../../projects/ui/context-menu/context-menu-divider.component.ts","../../../projects/ui/context-menu/context-menu-item-checkbox.component.ts","../../../projects/ui/context-menu/context-menu-item-radio.component.ts","../../../projects/ui/context-menu/public-api.ts","../../../projects/ui/context-menu/cngx-ui-context-menu.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Context handed to a `*cngxContextMenuContent` template. `$implicit` is the\n * per-open datum the trigger resolved for the target the menu opened over\n * (`null` while the menu is closed). Read it with `let-row`.\n *\n * @category ui/context-menu\n */\nexport interface CngxContextMenuContentContext<T = unknown> {\n /** The per-open datum, or `null` while the menu is closed. Usable as `let-row`. */\n readonly $implicit: T | null;\n}\n\n/**\n * Lazy content slot for {@link CngxContextMenu}. The template renders only\n * while the menu is open and receives the trigger's per-open datum as\n * `$implicit`, so one panel declaration serves every target of a delegated\n * trigger with row-correct content.\n *\n * ```html\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">\n * <ng-template cngxContextMenuContent let-row>\n * <cngx-context-menu-item (select)=\"edit(row)\">Edit {{ row.name }}</cngx-context-menu-item>\n * </ng-template>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/table/row-context-data</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-content.directive.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuFor\n */\n@Directive({\n selector: 'ng-template[cngxContextMenuContent]',\n exportAs: 'cngxContextMenuContent',\n standalone: true,\n})\nexport class CngxContextMenuContent<T = unknown> {\n /** The projected `<ng-template>`, rendered by the panel while open. */\n readonly templateRef = inject<TemplateRef<CngxContextMenuContentContext<T>>>(TemplateRef);\n\n /** Narrows `let-` bindings to {@link CngxContextMenuContentContext} under strict templates. */\n static ngTemplateContextGuard<T>(\n _dir: CngxContextMenuContent<T>,\n _ctx: unknown,\n ): _ctx is CngxContextMenuContentContext<T> {\n return true;\n }\n}\n","import { InjectionToken, type Signal } from '@angular/core';\n\nimport type { CngxContextMenuTriggerPopoverRef, CngxMenuHost } from '@cngx/common/interactive';\n\n/**\n * Structural contract a context-menu panel exposes to `CngxContextMenuFor`.\n * The trigger depends on this interface rather than the concrete\n * `CngxContextMenu` class so an ejected panel skin (decompose) or a future\n * second panel can satisfy the same seam - the `CngxMenuHost` precedent\n * (`CNGX_MENU_HOST`) applied to the panel surface.\n *\n * @category ui/context-menu\n */\nexport interface CngxContextMenuPanel<T = unknown> {\n /** Popover surface the trigger drives at pointer coordinates. */\n readonly popover: CngxContextMenuTriggerPopoverRef;\n /** Menu brain the popover wraps (`role=\"menu\"`, active-descendant registry). */\n readonly menuHost: CngxMenuHost;\n /** The per-open datum while visible, `null` once closed. */\n readonly context: Signal<T | null>;\n /** Store the per-open datum. Called by the trigger before the popover opens. */\n setContext(value: T | null): void;\n /**\n * @internal The trigger that owns the current open, `null` while unowned.\n * N triggers can dock one panel; only the opener may report\n * `aria-expanded=\"true\"`, forward keydown, and run its dismiss binding.\n * A direct open (`openAsSubmenu`, programmatic `popover.show()`) claims no\n * owner, so every docked trigger stays collapsed. Optional: an ejected\n * panel skin may omit it, in which case a docked trigger falls back to\n * mirroring plain popover visibility.\n */\n readonly openOwner?: Signal<unknown>;\n /**\n * @internal Claim the current open for `owner`. Called by the opening\n * trigger synchronously in its open gesture, before the popover shows, so\n * the handler registration that follows belongs to the opener even when\n * other triggers dock the same panel. A claim always marks a ROOT open -\n * the panel resets any sticky submenu policy a previous `openAsSubmenu`\n * installed. Optional alongside {@link openOwner}.\n */\n claimOpen?(owner: unknown): void;\n /**\n * @internal Release the open claim if `owner` still holds it. A trigger\n * calls this when the popover closes, when its panel binding swaps, and on\n * destroy; the owner guard keeps a stale release from clobbering a newer\n * claim. Optional alongside {@link openOwner}.\n */\n releaseOpen?(owner: unknown): void;\n /**\n * @internal Open this panel as a nested submenu of a parent item: flank the\n * inline-end (`right-start` + the submenu flip chain), open non-exclusively so\n * the parent panel survives, and mirror the parent's per-open datum. Owns the\n * submenu placement policy so a projected item drives one seam instead of\n * reaching into the popover's override signals. `parent` is the panel the\n * opening item sits in; the submenu forwards activation to it, so a\n * submenu parent at any depth opens by click or Enter through the root\n * trigger. Optional: an ejected panel skin may omit it and drive its own\n * popover directly.\n */\n openAsSubmenu?(context: T | null, parent?: CngxContextMenuPanel<T>): void;\n /**\n * @internal Register the trigger core's keydown handler so the panel can\n * forward ArrowRight/ArrowLeft/Escape submenu routing to it. The core owns\n * that routing, but open moves focus into the panel (a sibling of the\n * trigger), so the panel - not the trigger host - is where those keys land.\n * `null` deregisters. Optional: an ejected panel skin may omit it, in which\n * case keyboard submenu routing is simply not wired.\n */\n setKeydownHandler?(handler: ((event: KeyboardEvent) => void) | null): void;\n /**\n * @internal Register the trigger core's activation handler. The panel\n * subscribes to its menu brain's `CngxActiveDescendant.activated` output and\n * invokes this on every activation, so pointer click and Enter/Space open a\n * submenu-parent deterministically off the `activated` event rather than a\n * forwarded keydown that races the AD's own listener. `null` deregisters.\n * Optional: an ejected panel skin may omit it.\n */\n setActivationHandler?(handler: (() => void) | null): void;\n /**\n * @internal Run the activation routing for an `activated` event of this\n * panel or of a submenu opened from it: the trigger's activation handler\n * when this panel was opened by a trigger, else the parent panel's. Optional:\n * an ejected panel skin may omit it, in which case activation inside its\n * submenus is not routed.\n */\n handleActivated?(): void;\n /**\n * @internal Route a keydown of this panel or of a submenu opened from it:\n * the trigger's keydown handler when this panel was opened by a trigger,\n * else the parent panel's, so ArrowLeft / ArrowRight / Escape reach the\n * root trigger core from any depth. Optional alongside\n * {@link handleActivated}.\n */\n routeKeydown?(event: KeyboardEvent): void;\n /**\n * @internal Register the trigger core's push-only \"submenu opened\" handler.\n * A projected item calls {@link noteActiveSubmenuOpened} after its\n * `openAsSubmenu` terminal ran; the panel forwards to this handler so the\n * trigger's focus stack records an externally opened submenu (hover and\n * click already route through the stack and no-op here). `null`\n * deregisters. Optional: an ejected panel skin may omit it.\n */\n setSubmenuNoteHandler?(handler: (() => void) | null): void;\n /**\n * @internal Called by a projected item after its `openAsSubmenu` terminal\n * showed the submenu, so the trigger's focus stack records it when the open\n * did not come from the stack itself (programmatic opens; idempotent no-op\n * for hover/click). Routes to the handler registered via\n * {@link setSubmenuNoteHandler}; a no-op when none is wired.\n */\n noteActiveSubmenuOpened?(): void;\n}\n\n/**\n * @internal DI token the panel provides via `useExisting` so a projected\n * `CngxContextMenuItem` can read its enclosing panel's `context()` and mirror\n * it into a sibling-declared submenu. Not part of the public API - the child\n * talks to the panel through this structural seam rather than injecting the\n * concrete `CngxContextMenu` class (`CNGX_MENU_HOST` precedent).\n */\nexport const CNGX_CONTEXT_MENU_PANEL = new InjectionToken<CngxContextMenuPanel>(\n 'CNGX_CONTEXT_MENU_PANEL',\n);\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n linkedSignal,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { CngxMenu, CNGX_SUBMENU_TRY_FALLBACKS } from '@cngx/common/interactive';\nimport { CngxPopover } from '@cngx/common/popover';\n\nimport { CngxContextMenuContent } from './context-menu-content.directive';\nimport { CNGX_CONTEXT_MENU_PANEL, type CngxContextMenuPanel } from './context-menu-panel';\n\n/**\n * Declarative context-menu panel. Stacks `CngxPopover` (the top-layer popup\n * surface) and `CngxMenu` (the `role=\"menu\"` keyboard + ARIA brain) as host\n * directives on its own element, so projected items and the lazy content\n * template resolve `CngxActiveDescendant` / `CNGX_MENU_HOST` against the panel\n * host's injector chain. Pair it with `[cngxContextMenuFor]` on a target.\n *\n * The brains live on the host - not inside an inner `[cngxMenu]` element -\n * because Angular resolves DI for projected and template content at the\n * declaration site, not the projection site; an inner menu directive would\n * be invisible to items rendered through `<ng-content>` or the content slot.\n * Construction mirrors `CngxPopoverPanel`.\n *\n * `context()` is derived, never synced: it reads the trigger's per-open datum\n * while the popover is visible and `null` once it closes - no manual reset on\n * dismiss (Pillar 1).\n *\n * ### Static menu\n * ```html\n * <div [cngxContextMenuFor]=\"menu\">Right-click me</div>\n * <cngx-context-menu #menu ariaLabel=\"Actions\">\n * <cngx-context-menu-item (select)=\"copy()\">Copy</cngx-context-menu-item>\n * <cngx-context-menu-item (select)=\"paste()\">Paste</cngx-context-menu-item>\n * </cngx-context-menu>\n * ```\n *\n * ### Per-row content\n * ```html\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">\n * <ng-template cngxContextMenuContent let-row>\n * <cngx-context-menu-item (select)=\"edit(row)\">Edit {{ row.name }}</cngx-context-menu-item>\n * </ng-template>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenuFor, CngxContextMenuItem, CngxContextMenuContent, CngxMenu, CngxPopover\n * @slot cngxContextMenuContent Replaces the projected items with lazy content rendered only while the menu is open; gets the trigger's per-open datum as $implicit (let-row).\n */\n@Component({\n selector: 'cngx-context-menu',\n standalone: true,\n imports: [NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenu',\n providers: [{ provide: CNGX_CONTEXT_MENU_PANEL, useExisting: CngxContextMenu }],\n host: {\n '(keydown)': 'handleKeydown($event)',\n },\n hostDirectives: [\n { directive: CngxPopover, inputs: ['offset', 'closeOnEscape'] },\n { directive: CngxMenu, inputs: ['label: ariaLabel'] },\n ],\n template: `\n @if (contentTemplate(); as content) {\n @if (popover.isVisible()) {\n <ng-container *ngTemplateOutlet=\"content.templateRef; context: { $implicit: context() }\" />\n }\n } @else {\n <ng-content />\n }\n `,\n styleUrl: './context-menu.component.css',\n})\nexport class CngxContextMenu<T = unknown> implements CngxContextMenuPanel<T> {\n /** The popover surface this panel drives. Consumed by the trigger core. */\n readonly popover = inject(CngxPopover, { self: true });\n /** The menu brain (`role=\"menu\"`, active-descendant registry). */\n readonly menuHost = inject(CngxMenu, { self: true });\n\n /** Per-open datum set by the trigger before `show()`. */\n private readonly datum = signal<T | null>(null);\n\n /** Backing state for {@link openOwner}. */\n private readonly openOwnerState = signal<unknown>(null);\n\n /**\n * @internal The trigger that owns the current open, `null` while unowned.\n * Claimed by the opening `CngxContextMenuFor` before the popover shows;\n * direct opens (`openAsSubmenu`, programmatic `popover.show()`) leave it\n * `null`, so docked triggers keep `aria-expanded=\"false\"` for opens they\n * did not perform.\n */\n readonly openOwner = this.openOwnerState.asReadonly();\n\n /**\n * The datum the menu opened over while visible, `null` once closed. Gated on\n * `popover.isVisible()` so the reset on dismiss is derived, not synced.\n */\n readonly context = computed<T | null>(() => (this.popover.isVisible() ? this.datum() : null));\n\n protected readonly contentTemplate = contentChild(CngxContextMenuContent);\n\n /**\n * @internal Store the per-open datum. Called by `CngxContextMenuFor` in the\n * `contextmenu` event path, before the popover opens.\n */\n setContext(value: T | null): void {\n this.datum.set(value);\n }\n\n /** @internal Claim the current open for `owner`. See {@link CngxContextMenuPanel.claimOpen}. */\n claimOpen(owner: unknown): void {\n this.openOwnerState.set(owner);\n // A trigger open makes this a root: activation routes to the trigger,\n // never to the panel a previous openAsSubmenu came from.\n this.openedFrom.set(null);\n // A trigger claim is always a ROOT open: it must not inherit the sticky\n // submenu policy (non-exclusive, right-start + flip chain) a previous\n // openAsSubmenu installed on this panel. Clearing here - in the open\n // gesture, before show() - keeps the reset out of any effect;\n // openAsSubmenu re-installs the overrides right before its own show().\n this.popover.setExclusiveOverride(null);\n this.popover.setPlacementOverride(null);\n this.popover.setPositionTryFallbacksOverride(null);\n }\n\n /** @internal Release the open claim if `owner` still holds it. */\n releaseOpen(owner: unknown): void {\n if (this.openOwnerState() === owner) {\n this.openOwnerState.set(null);\n }\n }\n\n /**\n * @internal Open this panel as a nested submenu of a parent item. Installs the\n * inline-end placement + flip chain, opens non-exclusively (the parent panel\n * survives), mirrors the parent's per-open datum, then shows. Owns the submenu\n * placement policy so `CngxContextMenuItem` drives one seam rather than\n * reaching into the popover's `@internal` override setters - the ejected item\n * skin stays off `CngxPopover` internals (decompose).\n */\n openAsSubmenu(context: T | null, parent?: CngxContextMenuPanel<T>): void {\n this.popover.setExclusiveOverride(false);\n this.popover.setPlacementOverride('right-start');\n this.popover.setPositionTryFallbacksOverride(CNGX_SUBMENU_TRY_FALLBACKS);\n this.setContext(context);\n this.popover.show();\n // After show(): the link resets on every visibility edge, so it is set\n // once this open has flipped the popover visible.\n this.openedFrom.set(parent ?? null);\n }\n\n /** Keydown forwarder registered by the trigger; `null` while none is bound. */\n private keydownHandler: ((event: KeyboardEvent) => void) | null = null;\n /** Activation forwarder registered by the trigger; `null` while none bound. */\n private activationHandler: (() => void) | null = null;\n /** Push-only submenu-note forwarder registered by the trigger; `null` while none bound. */\n private submenuNoteHandler: (() => void) | null = null;\n /**\n * The panel whose item opened this one as a submenu, `null` for a trigger\n * open. Reset to `null` whenever this panel opens or closes, so a direct\n * reopen never routes to the parent of an earlier open. Activation, keydown\n * and the submenu note climb it to the root, whose trigger core resolves the\n * deepest open menu itself.\n */\n private readonly openedFrom = linkedSignal<boolean, CngxContextMenuPanel<T> | null>({\n source: () => this.popover.isVisible(),\n computation: () => null,\n });\n /**\n * Set while this panel routes an event up the parent chain. A chain that\n * leads back to a panel already routing is a submenu cycle; the event stops\n * there instead of recursing without end.\n */\n private routingUp = false;\n\n constructor() {\n // Open moves focus into the menu container, so the container's\n // CngxActiveDescendant owns Enter/Space and a forwarded keydown reaches the\n // trigger core too late to open a submenu parent. Drive the open off the\n // deterministic `activated` event instead - it fires once, after the AD\n // decides, on both keyboard activation and pointer click.\n outputToObservable(this.menuHost.ad.activated)\n .pipe(takeUntilDestroyed())\n .subscribe(() => this.handleActivated());\n }\n\n /** @internal Route an activation to the trigger, else up the parent chain. */\n handleActivated(): void {\n if (this.activationHandler) {\n this.activationHandler();\n return;\n }\n this.routeUp((parent) => parent.handleActivated?.());\n }\n\n /**\n * @internal Register the trigger core's keydown handler. The core owns\n * submenu ArrowRight/ArrowLeft/Escape routing, but open moves focus into\n * this panel, so keydown lands here rather than on the trigger host.\n */\n setKeydownHandler(handler: ((event: KeyboardEvent) => void) | null): void {\n this.keydownHandler = handler;\n }\n\n /**\n * @internal Register the trigger core's activation handler, invoked on every\n * `CngxActiveDescendant.activated` (keyboard activation + pointer click) so a\n * submenu parent opens deterministically off the event rather than a racing\n * keydown.\n */\n setActivationHandler(handler: (() => void) | null): void {\n this.activationHandler = handler;\n }\n\n /** @internal Register the trigger core's push-only submenu-note handler. */\n setSubmenuNoteHandler(handler: (() => void) | null): void {\n this.submenuNoteHandler = handler;\n }\n\n /** @internal A projected item calls this after its openAsSubmenu terminal\n * ran, so the trigger's focus stack records an externally opened submenu\n * (idempotent no-op for stack-driven hover/click opens). */\n noteActiveSubmenuOpened(): void {\n if (this.submenuNoteHandler) {\n this.submenuNoteHandler();\n return;\n }\n this.routeUp((parent) => parent.noteActiveSubmenuOpened?.());\n }\n\n /** @internal Route a keydown to the trigger, else up the parent chain. */\n routeKeydown(event: KeyboardEvent): void {\n if (this.keydownHandler) {\n this.keydownHandler(event);\n return;\n }\n this.routeUp((parent) => parent.routeKeydown?.(event));\n }\n\n private routeUp(forward: (parent: CngxContextMenuPanel<T>) => void): void {\n const parent = this.openedFrom();\n if (!parent || this.routingUp) {\n return;\n }\n this.routingUp = true;\n try {\n forward(parent);\n } finally {\n this.routingUp = false;\n }\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n this.routeKeydown(event);\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n computed,\n DestroyRef,\n Directive,\n effect,\n ElementRef,\n inject,\n input,\n untracked,\n} from '@angular/core';\nimport { injectDirection } from '@cngx/core';\n\nimport {\n CNGX_MENU_ANNOUNCER_FACTORY,\n CNGX_MENU_DISMISS_HANDLER_FACTORY,\n CNGX_MENU_FOCUS_STACK_FACTORY,\n CNGX_MENU_NAV_STRATEGY,\n connectSubmenuHoverToFocusStack,\n createContextMenuTriggerCore,\n injectMenuConfig,\n} from '@cngx/common/interactive';\n\nimport type { CngxContextMenuPanel } from './context-menu-panel';\n\n/**\n * Docks a {@link CngxContextMenu} onto a target element. Opens the panel at\n * pointer coordinates on `contextmenu` (right-click) or `Shift+F10`, feeding\n * the panel a per-open datum so one declaration serves many targets.\n *\n * Three ways to obtain the datum `T`:\n * - `[cngxContextMenuData]` - a fixed datum for this single target.\n * - `[cngxContextMenuResolve]` - a resolver run against the `contextmenu`\n * event, so a container (table, grid, treetable, virtualized list) keeps a\n * single trigger instance and derives the row from `event.target`. The\n * resolver wins when both are bound. A `null` resolver result leaves the\n * native context menu untouched (no `preventDefault`, no open).\n * - `[cngxContextMenuKeyboardResolve]` - the keyboard counterpart, run\n * against the `Shift+F10` keydown so a delegated container derives the\n * row from the focused element (`event.target`). Without it a keyboard\n * open commits `[cngxContextMenuData]` (or `null` in resolver-only mode).\n *\n * A thin shell over `createContextMenuTriggerCore` (shared with\n * `CngxContextMenuTrigger`): the core owns the preventDefault decision through\n * its `resolveOpen` seam, so the veto lives in one place and this directive\n * only feeds the resolver.\n *\n * Many triggers may dock the same panel. Each open claims ownership on the\n * panel, so only the opening trigger reports `aria-expanded=\"true\"`, forwards\n * the panel's keydown into its core, and runs its dismiss binding - sibling\n * triggers stay collapsed and inert for opens they did not perform.\n *\n * ```html\n * <tr [cngxContextMenuFor]=\"menu\" [cngxContextMenuData]=\"row\" tabindex=\"0\"></tr>\n * <cngx-context-menu #menu ariaLabel=\"Row actions\">…</cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/grid/delegated-resolver</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-for.directive.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuTrigger\n */\n@Directive({\n selector: '[cngxContextMenuFor]',\n exportAs: 'cngxContextMenuFor',\n standalone: true,\n host: {\n '[attr.aria-haspopup]': '\"menu\"',\n '[attr.aria-expanded]': 'isOpen()',\n '(contextmenu)': 'handleContextMenu($event)',\n '(keydown)': 'handleKeydown($event)',\n },\n})\nexport class CngxContextMenuFor<T = unknown> {\n /** Panel this trigger opens. Typed to the {@link CngxContextMenuPanel} seam. */\n readonly panel = input.required<CngxContextMenuPanel<T>>({ alias: 'cngxContextMenuFor' });\n\n /** Fixed datum handed to the panel for this single target. */\n readonly data = input<T | undefined>(undefined, { alias: 'cngxContextMenuData' });\n\n /**\n * Resolver run against the `contextmenu` event. Return the datum to open\n * with, or `null` to let the native menu show. Wins over `[cngxContextMenuData]`.\n * Keyboard opens (`Shift+F10`) carry no pointer event - they resolve via\n * `[cngxContextMenuKeyboardResolve]`, or fall back to the fixed datum.\n */\n readonly resolve = input<((event: MouseEvent) => T | null) | undefined>(undefined, {\n alias: 'cngxContextMenuResolve',\n });\n\n /**\n * Resolver run against the `Shift+F10` keydown. `event.target` is the\n * focused element inside this trigger's host, so a delegated container\n * (focusable rows, roving grid cells) derives the row for keyboard users\n * exactly like `[cngxContextMenuResolve]` does for pointer users. Return\n * `null` to skip the open (the browser's own Shift+F10 behaviour stays\n * untouched). Wins over `[cngxContextMenuData]` for keyboard opens.\n */\n readonly keyboardResolve = input<((event: KeyboardEvent) => T | null) | undefined>(undefined, {\n alias: 'cngxContextMenuKeyboardResolve',\n });\n\n /**\n * `true` while the panel is visible AND this trigger performed the open.\n * N triggers can dock one panel; each reports `aria-expanded` only for its\n * own opens (a shared panel opened by a sibling trigger, `openAsSubmenu`,\n * or a programmatic `popover.show()` leaves this trigger collapsed).\n * Panels without the ownership seam fall back to plain visibility.\n */\n readonly isOpen = computed<boolean>(() => {\n const panel = this.panel();\n if (!panel.popover.isVisible()) {\n return false;\n }\n return panel.openOwner ? panel.openOwner() === this : true;\n });\n\n private readonly core = createContextMenuTriggerCore({\n menu: () => this.panel().menuHost,\n popover: () => this.panel().popover,\n hostElement: inject<ElementRef<HTMLElement>>(ElementRef).nativeElement,\n document: inject(DOCUMENT),\n menuConfig: injectMenuConfig(),\n dismissFactory: inject(CNGX_MENU_DISMISS_HANDLER_FACTORY),\n announcer: inject(CNGX_MENU_ANNOUNCER_FACTORY)(),\n nav: inject(CNGX_MENU_NAV_STRATEGY),\n direction: injectDirection(),\n focusStackFactory: inject(CNGX_MENU_FOCUS_STACK_FACTORY),\n resolveOpen: (event) => {\n const resolver = this.resolve();\n if (resolver) {\n const resolved = resolver(event);\n return resolved === null ? { open: false } : { open: true, context: resolved };\n }\n return { open: true, context: this.data() ?? null };\n },\n commitContext: (context) => {\n // Runs exactly once per successful open (pointer AND Shift+F10), before\n // the popover shows - the claim must land here (not in an effect) so the\n // handler registration belongs to the opener when N triggers share a panel.\n this.claimPanel();\n this.panel().setContext(context as T | null);\n },\n resolveKeyboardOpen: (event) => {\n // Shift+F10 has no MouseEvent for the pointer resolver; the keyboard\n // resolver reads the focused element instead. Without one, commit the\n // fixed datum (null in resolver-only mode) rather than leaving whatever\n // an earlier right-click stored on the shared panel.\n const resolver = this.keyboardResolve();\n if (resolver) {\n const resolved = resolver(event);\n return resolved === null ? { open: false } : { open: true, context: resolved };\n }\n return { open: true, context: this.data() ?? null };\n },\n });\n\n /** Panel-forwarded seams, stable identities so registration is idempotent. */\n private readonly forwardKeydown = (event: KeyboardEvent): void => this.core.handleKeydown(event);\n private readonly forwardActivation = (): void => this.core.openActiveSubmenu();\n private readonly forwardSubmenuNote = (): void => this.core.noteActiveSubmenuOpened();\n\n /**\n * Claim the shared panel for this trigger's open: record ownership, then\n * register the keydown/activation/submenu-note forwarders. Registration\n * happens on open (not on construction), so the OPENING trigger owns the\n * handlers instead of whichever sibling was constructed last.\n */\n private claimPanel(): void {\n const panel = this.panel();\n panel.claimOpen?.(this);\n panel.setKeydownHandler?.(this.forwardKeydown);\n panel.setActivationHandler?.(this.forwardActivation);\n panel.setSubmenuNoteHandler?.(this.forwardSubmenuNote);\n }\n\n /**\n * Clear the panel's forwarders and release the claim - but only while this\n * trigger still owns the open (or the panel has no ownership seam). A stale\n * release must never clobber a sibling's newer claim.\n */\n private releasePanel(panel: CngxContextMenuPanel<T>): void {\n if (panel.openOwner && panel.openOwner() !== this) {\n return;\n }\n panel.setKeydownHandler?.(null);\n panel.setActivationHandler?.(null);\n panel.setSubmenuNoteHandler?.(null);\n panel.releaseOpen?.(this);\n }\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n destroyRef.onDestroy(() => this.core.destroy());\n effect(() => {\n const open = this.isOpen();\n untracked(() => {\n if (open) {\n this.core.syncOpenState(true);\n return;\n }\n if (this.panel().popover.isVisible()) {\n // Ownership handoff: a sibling trigger claimed the still-visible\n // panel. Stand down without restoring focus - the new owner's menu\n // holds focus and a restore would yank it away.\n this.core.standDown();\n } else {\n this.core.syncOpenState(false);\n }\n });\n });\n // Hover routing: route submenu hover-intent edges through the core's\n // focus stack, same primitives as keyboard/click (see CngxMenuTrigger).\n connectSubmenuHoverToFocusStack({\n focusStack: this.core.focusStack,\n rootMenu: () => this.panel().menuHost,\n rootOpen: () => this.isOpen(),\n });\n // Open moves focus into the panel (a sibling of this trigger), so submenu\n // ArrowRight/ArrowLeft/Escape land on the panel and are forwarded to the\n // core through the handlers claimPanel() registers per open. Release the\n // claim when the popover closes, so the next opener starts clean.\n effect(() => {\n const panel = this.panel();\n if (!panel.popover.isVisible()) {\n untracked(() => this.releasePanel(panel));\n }\n });\n // Release from a swapped-out panel (rebind) and on destroy, so a replaced\n // panel never keeps stale handlers pointing at this trigger's core.\n effect((onCleanup) => {\n const panel = this.panel();\n onCleanup(() => untracked(() => this.releasePanel(panel)));\n });\n }\n\n protected handleContextMenu(event: MouseEvent): void {\n this.core.handleContextMenu(event);\n }\n\n protected handleKeydown(event: KeyboardEvent): void {\n this.core.handleKeydown(event);\n }\n}\n","import type { CngxMenuSubmenuPopoverRef } from '@cngx/common/interactive';\n\nimport type { CngxContextMenu } from './context-menu.component';\n\n/**\n * Build the popover-facade adapter the submenu brain (`CngxMenuItemSubmenu`)\n * drives instead of a `[cngxMenuItemSubmenu]` popover input. Every member\n * delegates to the target panel's own `CngxPopover`, reading `target()` lazily\n * so the facade stays valid across `[submenu]` changes and inert (no visible,\n * empty id) while the target is unbound. `show()` delegates to the supplied\n * `open` routing rather than `popover.show()`, so opening goes through the\n * trigger's focus stack (Pillar 1) instead of bypassing it.\n *\n * Internal decompose glue, not a consumer contract - NOT exported from\n * `public-api.ts`. Extracting it keeps `CngxContextMenuItem`'s class body a\n * thin shell (reference_atomic_decompose rule 1).\n *\n * @category ui/context-menu\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-submenu-facade.ts\n * @since 0.1.0\n */\nexport function createContextMenuItemSubmenuFacade(\n target: () => CngxContextMenu<unknown> | undefined,\n open: () => void,\n): CngxMenuSubmenuPopoverRef {\n return {\n isVisible: () => target()?.popover.isVisible() ?? false,\n show: () => open(),\n hide: () => target()?.popover.hide(),\n setAnchorElement: (el) => target()?.popover.setAnchorElement(el),\n id: () => target()?.popover.id() ?? '',\n elementRef: {\n get nativeElement(): HTMLElement {\n return target()!.popover.elementRef.nativeElement;\n },\n },\n };\n}\n","/**\n * Default single-character glyphs for the context-menu item skin. Plain\n * `as const` (not `TemplateRef`, not a `Directive`) so the strings stay inline\n * at their `aria-hidden` call sites and tree-shake when unused. Consolidates\n * the trailing submenu caret and the checkbox / radio checked indicators into\n * one source, mirroring `CNGX_SELECT_GLYPHS`.\n *\n * Internal to this organism: not exported from `public-api.ts`, not a consumer\n * override surface (that tier stays deferred, menu-accepted-debt §2). Lives\n * here rather than in `@cngx/common/interactive` because the base menu\n * directives hardcode none of these glyphs, so the organism is the only\n * consumer today; hoisting to the brain lib waits for a second menu consumer.\n *\n * @internal\n */\nexport const CNGX_MENU_GLYPHS = {\n /** Trailing caret on an item that opens a submenu. */\n submenuCaret: '▸',\n /** Leading indicator on a checked `menuitemcheckbox`. */\n checkboxChecked: '✓',\n /** Leading indicator on a checked `menuitemradio`. */\n radioChecked: '●',\n} as const;\n\n/** Union of glyph keys. @internal */\nexport type CngxMenuGlyphKey = keyof typeof CNGX_MENU_GLYPHS;\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n inject,\n input,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { outputToObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { CngxActiveDescendant } from '@cngx/common/a11y';\nimport {\n CngxMenuItem,\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n CngxMenuItemSubmenu,\n CngxMenuItemSuffix,\n CNGX_MENU_SUBMENU_WIRING,\n type CngxMenuHost,\n type CngxMenuSubmenuPopoverRef,\n type CngxMenuSubmenuWiring,\n} from '@cngx/common/interactive';\n\nimport type { CngxContextMenu } from './context-menu.component';\nimport { createContextMenuItemSubmenuFacade } from './context-menu-item-submenu-facade';\nimport { CNGX_CONTEXT_MENU_PANEL } from './context-menu-panel';\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A single actionable context-menu item. Thin shell over `CngxMenuItem`: the\n * brain owns `role=\"menuitem\"`, the active-descendant registration, the\n * keyboard/pointer activation and the disabled semantics. Dual selector, so it\n * works both as an element and as an attribute on a native `<button>` (the\n * `button[mat-menu-item]` precedent).\n *\n * Emits `select` when this item is activated by click or Enter/Space. Give\n * each item a distinct `[value]` (forwarded to the brain) so pointer\n * activation targets the right row - matching the base `CngxMenuItem`\n * convention; a value-less item still works when it is the only item.\n *\n * ### Submenu\n * Bind `[submenu]` to a sibling `<cngx-context-menu>` to open a nested menu.\n * The `CngxMenuItemSubmenu` brain (a host directive here) is wired internally\n * through `CNGX_MENU_SUBMENU_WIRING`, so the consumer needs no `[exclusive]`\n * handgrip and no popover plumbing - just the sibling reference. The nested\n * panel opens non-exclusively (the parent stays open) and inherits the parent\n * panel's row context.\n *\n * ```html\n * <cngx-context-menu-item value=\"copy\" kbd=\"⌘C\" (select)=\"copy()\">Copy</cngx-context-menu-item>\n * <button cngxContextMenuItem value=\"delete\" [disabled]=\"locked()\" (select)=\"remove()\">Delete</button>\n *\n * <cngx-context-menu-item [submenu]=\"exportMenu\">Export</cngx-context-menu-item>\n * <cngx-context-menu #exportMenu ariaLabel=\"Export as\">\n * <cngx-context-menu-item (select)=\"export('pdf')\">PDF</cngx-context-menu-item>\n * </cngx-context-menu>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/submenu/nested-export-menu</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuDivider, CngxMenuItem, CngxMenuItemSubmenu\n */\n@Component({\n selector: 'cngx-context-menu-item, button[cngxContextMenuItem]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd, CngxMenuItemSuffix],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItem',\n providers: [{ provide: CNGX_MENU_SUBMENU_WIRING, useExisting: CngxContextMenuItem }],\n hostDirectives: [\n { directive: CngxMenuItem, inputs: ['disabled', 'value'] },\n CngxMenuItemSubmenu,\n ],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n @if (submenu()) {\n <span cngxMenuItemSuffix>{{ caret }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItem implements CngxMenuSubmenuWiring {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). A convenience for single-character icons; suppressed when\n * the consumer projects a richer `[cngxMenuItemIcon]` marker (SVG / icon\n * component), which wins.\n */\n readonly icon = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n /**\n * Sibling `<cngx-context-menu>` opened as a nested submenu. When set, the\n * item renders a caret, gains `aria-haspopup=\"menu\"` (from the submenu\n * brain) and routes ArrowRight/ArrowLeft into the nested panel.\n */\n readonly submenu = input<CngxContextMenu<unknown>>();\n\n /** Fires when this item is activated by click or Enter/Space. */\n readonly select = output<void>();\n\n /** @internal Decorative caret rendered while `submenu` is set. RTL flip is\n * a CSS concern (`.cngx-menu-item__suffix` under `[dir='rtl']`), not a\n * swapped glyph. */\n protected readonly caret = CNGX_MENU_GLYPHS.submenuCaret;\n\n private readonly parentPanel = inject(CNGX_CONTEXT_MENU_PANEL, { optional: true });\n\n /**\n * Facade the submenu brain drives instead of a `[cngxMenuItemSubmenu]`\n * input. `show()` opens the target panel non-exclusively and mirrors the\n * parent panel's row context in first; every other member delegates to the\n * target's `CngxPopover`. Built once, reads `submenu()` lazily so it stays\n * valid across target changes. The adapter itself lives in\n * `createContextMenuItemSubmenuFacade` so this class stays a thin shell.\n */\n private readonly submenuPopoverFacade: CngxMenuSubmenuPopoverRef =\n createContextMenuItemSubmenuFacade(\n () => this.submenu(),\n () => this.openSubmenu(),\n );\n\n constructor() {\n const brain = inject(CngxMenuItem);\n const ad = inject(CngxActiveDescendant, { optional: true });\n if (!ad) {\n return;\n }\n // Activation flows through the surrounding CngxActiveDescendant (click and\n // keyboard both funnel into activateCurrent). Filter to this item's brain\n // id so only the activated row emits - the same identity CngxMenu uses. A\n // submenu parent never emits a leaf action: activating it opens the submenu\n // (the panel routes `activated` to the trigger core), so gate on\n // `!submenu()` to keep leaf `select` from firing on a parent.\n outputToObservable(ad.activated)\n .pipe(takeUntilDestroyed())\n .subscribe(() => {\n if (ad.activeId() === brain.id && !this.submenu()) {\n this.select.emit();\n }\n });\n }\n\n /** @internal `CngxMenuSubmenuWiring` - the nested panel's menu brain, or\n * `undefined` while no `[submenu]` is bound so the brain stays inert. */\n menu(): CngxMenuHost | undefined {\n return this.submenu()?.menuHost;\n }\n\n /** @internal `CngxMenuSubmenuWiring` - the popover facade the brain drives,\n * or `undefined` while no `[submenu]` is bound so the brain stays inert. */\n popover(): CngxMenuSubmenuPopoverRef | undefined {\n return this.submenu() ? this.submenuPopoverFacade : undefined;\n }\n\n private openSubmenu(): void {\n const target = this.submenu();\n if (!target) {\n return;\n }\n // Delegate the whole submenu-open policy - inline-end placement, flip chain,\n // non-exclusive open, parent-datum mirror - to the panel. The item drives\n // one seam instead of reaching into the popover's override signals, so an\n // ejected item skin never carries CngxPopover internals (decompose).\n target.openAsSubmenu(this.parentPanel?.context() ?? null, this.parentPanel ?? undefined);\n // openAsSubmenu is the terminal for every open path (hover, keyboard,\n // click all funnel here through the trigger's focus stack). The note is\n // the safety net for opens the stack did not perform itself\n // (programmatic openAsSubmenu); for stack-driven opens it is an\n // idempotent no-op. Push-only - it never re-enters the open path, so no\n // recursion; the stack stays the single source of the active chain\n // (Pillar 1).\n this.parentPanel?.noteActiveSubmenuOpened?.();\n }\n}\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\nimport { CngxMenuSeparator } from '@cngx/common/interactive';\n\n/**\n * Non-interactive separator between context-menu item groups. Thin shell over\n * `CngxMenuSeparator` (`role=\"separator\"`, `aria-orientation=\"horizontal\"`),\n * skipped by active-descendant navigation and typeahead. Dual selector: use as\n * an element or as an attribute on a native `<hr>`.\n *\n * ```html\n * <cngx-context-menu-divider />\n * <hr cngxContextMenuDivider />\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/basic/static-items</example-url>\n * <example-url>http://localhost:4200/#/ui/context-menu/attribute-form/native-buttons</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-divider.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxMenuSeparator\n */\n@Component({\n selector: 'cngx-context-menu-divider, hr[cngxContextMenuDivider]',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuDivider',\n hostDirectives: [CngxMenuSeparator],\n template: '',\n})\nexport class CngxContextMenuDivider {}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n CngxMenuItemCheckbox,\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n} from '@cngx/common/interactive';\n\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A checkable context-menu item (`role=\"menuitemcheckbox\"`). Thin shell over\n * `CngxMenuItemCheckbox`: the brain owns the role, the active-descendant\n * registration, the toggle-on-activation semantics and the reactive\n * `aria-checked`. `checked` is a two-way model forwarded through the host\n * directive, so `[(checked)]` binds straight to consumer state.\n *\n * ```html\n * <cngx-context-menu-item-checkbox [(checked)]=\"wrap\">Word wrap</cngx-context-menu-item-checkbox>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-checkbox.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemRadio, CngxMenuItemCheckbox\n */\n@Component({\n selector: 'cngx-context-menu-item-checkbox, button[cngxContextMenuItemCheckbox]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItemCheckbox',\n host: { '[style.--cngx-context-menu-item-check-glyph]': 'checkGlyph' },\n hostDirectives: [\n {\n directive: CngxMenuItemCheckbox,\n inputs: ['disabled', 'value', 'checked', 'label'],\n outputs: ['checkedChange'],\n },\n ],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItemCheckbox {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). Suppressed when the consumer projects a richer\n * `[cngxMenuItemIcon]` marker. The checked-indicator gutter renders\n * independently of the icon, so a checked item stays visibly checked beside\n * a custom icon.\n */\n readonly icon = input<string>();\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n\n /** @internal Seeds the CSS `content` of the default checked indicator from\n * the shared glyph const (CSS-string quoted for `content:`). */\n protected readonly checkGlyph = `'${CNGX_MENU_GLYPHS.checkboxChecked}'`;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport {\n CngxMenuItemIcon,\n CngxMenuItemKbd,\n CngxMenuItemLabel,\n CngxMenuItemRadio,\n} from '@cngx/common/interactive';\n\nimport { CNGX_MENU_GLYPHS } from './menu-glyphs';\n\n/**\n * A radio-style context-menu item (`role=\"menuitemradio\"`). Thin shell over\n * `CngxMenuItemRadio`: the brain owns the role, the active-descendant\n * registration and the reactive `aria-checked`. Mutual exclusion is scoped to\n * the enclosing `[cngxMenuGroup]` - the group owns the selected value, the\n * item forwards its `value`.\n *\n * ```html\n * <div cngxMenuGroup label=\"Density\" [(selectedValue)]=\"density\">\n * <cngx-context-menu-item-radio value=\"cozy\">Cozy</cngx-context-menu-item-radio>\n * <cngx-context-menu-item-radio value=\"compact\">Compact</cngx-context-menu-item-radio>\n * </div>\n * ```\n *\n * <example-url>http://localhost:4200/#/ui/context-menu/selection/checkbox-radio-items</example-url>\n * @category ui/context-menu\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/context-menu/context-menu-item-radio.component.ts\n * @since 0.1.0\n * @relatedTo CngxContextMenu, CngxContextMenuItem, CngxContextMenuItemCheckbox, CngxMenuItemRadio, CngxMenuGroup\n */\n@Component({\n selector: 'cngx-context-menu-item-radio, button[cngxContextMenuItemRadio]',\n standalone: true,\n imports: [CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxContextMenuItemRadio',\n host: { '[style.--cngx-context-menu-item-check-glyph]': 'checkGlyph' },\n hostDirectives: [{ directive: CngxMenuItemRadio, inputs: ['disabled', 'value', 'label'] }],\n template: `\n <ng-content select=\"[cngxMenuItemIcon]\" />\n @if (!projectedIcon() && icon(); as glyph) {\n <span cngxMenuItemIcon>{{ glyph }}</span>\n }\n <span cngxMenuItemLabel><ng-content /></span>\n @if (kbd(); as shortcut) {\n <span cngxMenuItemKbd>{{ shortcut }}</span>\n }\n `,\n styleUrl: './context-menu-item.component.css',\n})\nexport class CngxContextMenuItemRadio {\n /**\n * Leading glyph shorthand rendered in the icon slot (decorative,\n * `aria-hidden`). Suppressed when the consumer projects a richer\n * `[cngxMenuItemIcon]` marker. The checked-indicator gutter renders\n * independently of the icon, so a checked item stays visibly checked beside\n * a custom icon.\n */\n readonly icon = input<string>();\n /** Keyboard-shortcut hint rendered in the kbd slot (decorative). */\n readonly kbd = input<string>();\n\n /**\n * A consumer-projected `[cngxMenuItemIcon]` marker, when present. Gates the\n * string `[icon]` shorthand off so the projected icon is the only one drawn.\n */\n protected readonly projectedIcon = contentChild(CngxMenuItemIcon);\n\n /** @internal Seeds the CSS `content` of the default checked indicator from\n * the shared glyph const (CSS-string quoted for `content:`). */\n protected readonly checkGlyph = `'${CNGX_MENU_GLYPHS.radioChecked}'`;\n}\n","/**\n * @module @cngx/ui/context-menu\n */\nexport { CngxContextMenu } from './context-menu.component';\nexport {\n CngxContextMenuContent,\n type CngxContextMenuContentContext,\n} from './context-menu-content.directive';\nexport { CngxContextMenuFor } from './context-menu-for.directive';\nexport { CNGX_CONTEXT_MENU_PANEL, type CngxContextMenuPanel } from './context-menu-panel';\nexport { CngxContextMenuItem } from './context-menu-item.component';\nexport { CngxContextMenuDivider } from './context-menu-divider.component';\nexport { CngxContextMenuItemCheckbox } from './context-menu-item-checkbox.component';\nexport { CngxContextMenuItemRadio } from './context-menu-item-radio.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;AAcA;;;;;;;;;;;;;;;;;;;;;AAqBG;MAMU,sBAAsB,CAAA;;AAExB,IAAA,WAAW,GAAG,MAAM,CAAgD,WAAW,CAAC;;AAGzF,IAAA,OAAO,sBAAsB,CAC3B,IAA+B,EAC/B,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;IACb;uGAVW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qCAAA,EAAA,QAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBALlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qCAAqC;AAC/C,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACyED;;;;;;AAMG;MACU,uBAAuB,GAAG,IAAI,cAAc,CACvD,yBAAyB;;ACtG3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CG;MA2BU,eAAe,CAAA;;IAEjB,OAAO,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,E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