@cngx/ui 0.1.0-rc.5 → 0.1.0-rc.7

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.
Files changed (79) hide show
  1. package/README.md +112 -0
  2. package/a11y/README.md +81 -0
  3. package/context-menu/README.md +98 -0
  4. package/data-grid-accordion/README.md +27 -0
  5. package/feedback/README.md +2 -0
  6. package/fesm2022/cngx-ui-a11y.mjs +320 -0
  7. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  8. package/fesm2022/cngx-ui-accordion.mjs +19 -8
  9. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  10. package/fesm2022/cngx-ui-action-button.mjs +5 -2
  11. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  12. package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
  13. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
  15. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  16. package/fesm2022/cngx-ui-collection.mjs +15 -6
  17. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
  19. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-context-menu.mjs +742 -0
  21. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  22. package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
  23. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-feedback.mjs +97 -106
  25. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  26. package/fesm2022/cngx-ui-layout.mjs +18 -9
  27. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
  29. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
  31. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-paginator.mjs +18 -8
  33. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-sidenav.mjs +2 -2
  35. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-skeleton.mjs +20 -7
  37. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-speak.mjs +2 -2
  39. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-stat-card.mjs +618 -0
  41. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  42. package/fesm2022/cngx-ui-stepper.mjs +38 -19
  43. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-tabs.mjs +36 -19
  45. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-timeline.mjs +495 -0
  47. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  48. package/fesm2022/cngx-ui-toc.mjs +704 -0
  49. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  50. package/fesm2022/cngx-ui.mjs +2 -2
  51. package/fesm2022/cngx-ui.mjs.map +1 -1
  52. package/mat-accordion/README.md +1 -1
  53. package/mat-tabs/styles/mat-tabs.css +20 -17
  54. package/package.json +32 -1
  55. package/skeleton/README.md +2 -0
  56. package/stepper/README.md +2 -2
  57. package/timeline/README.md +350 -0
  58. package/toc/README.md +183 -0
  59. package/types/cngx-ui-a11y.d.ts +303 -0
  60. package/types/cngx-ui-accordion.d.ts +9 -4
  61. package/types/cngx-ui-action-button.d.ts +3 -0
  62. package/types/cngx-ui-breadcrumb.d.ts +5 -0
  63. package/types/cngx-ui-chart-panel.d.ts +278 -0
  64. package/types/cngx-ui-collection.d.ts +12 -3
  65. package/types/cngx-ui-command-palette.d.ts +451 -0
  66. package/types/cngx-ui-context-menu.d.ts +467 -0
  67. package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
  68. package/types/cngx-ui-feedback.d.ts +71 -18
  69. package/types/cngx-ui-layout.d.ts +8 -3
  70. package/types/cngx-ui-mat-accordion.d.ts +3 -3
  71. package/types/cngx-ui-mat-tabs.d.ts +11 -9
  72. package/types/cngx-ui-paginator.d.ts +13 -3
  73. package/types/cngx-ui-skeleton.d.ts +13 -1
  74. package/types/cngx-ui-stat-card.d.ts +327 -0
  75. package/types/cngx-ui-stepper.d.ts +18 -4
  76. package/types/cngx-ui-tabs.d.ts +20 -4
  77. package/types/cngx-ui-timeline.d.ts +479 -0
  78. package/types/cngx-ui-toc.d.ts +514 -0
  79. package/types/cngx-ui.d.ts +1 -1
@@ -0,0 +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,s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