@cngx/ui 0.1.0-rc.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cngx-ui-accordion.mjs","sources":["../../../projects/ui/accordion/accordion-group.token.ts","../../../projects/ui/accordion/i18n/accordion-language-section.ts","../../../projects/ui/accordion/i18n/accordion-i18n.ts","../../../projects/ui/accordion/config/accordion.config.defaults.ts","../../../projects/ui/accordion/config/inject-accordion-config.ts","../../../projects/ui/accordion/accordion-group.component.ts","../../../projects/ui/accordion/accordion-item-busy.directive.ts","../../../projects/ui/accordion/accordion-item-content.directive.ts","../../../projects/ui/accordion/accordion-item-error.directive.ts","../../../projects/ui/accordion/accordion-item-icon.directive.ts","../../../projects/ui/accordion/accordion-item-subtitle.directive.ts","../../../projects/ui/accordion/accordion-item.component.ts","../../../projects/ui/accordion/accordion-item.component.html","../../../projects/ui/accordion/accordion-item-title.directive.ts","../../../projects/ui/accordion/accordion-item-leading.directive.ts","../../../projects/ui/accordion/accordion-item-meta.directive.ts","../../../projects/ui/accordion/config/provide-accordion-config.ts","../../../projects/ui/accordion/config/features.ts","../../../projects/ui/accordion/public-api.ts","../../../projects/ui/accordion/cngx-ui-accordion.ts"],"sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * UI-local context a {@link CngxAccordionGroup} exposes so each\n * `CngxAccordionItem` reads the shared heading level without injecting the\n * concrete group class (cyclic type, blocks Atomic Decompose). Kept separate\n * from the headless `CNGX_ACCORDION` brain contract, which stays\n * skin-agnostic - heading semantics are a skin concern.\n *\n * @category ui/accordion\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionGroup, CngxAccordionItem\n */\nexport interface CngxAccordionGroupContext {\n /** Heading level (2-6) every item's `role=\"heading\"` wrapper reflects via `aria-level`. */\n readonly headingLevel: Signal<number>;\n}\n\n/**\n * DI token for the {@link CngxAccordionGroupContext}. {@link CngxAccordionGroup}\n * provides it via `useExisting`; each `CngxAccordionItem` injects it.\n *\n * @category ui/accordion\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionGroup, CngxAccordionItem\n */\nexport const CNGX_ACCORDION_GROUP = new InjectionToken<CngxAccordionGroupContext>(\n 'CNGX_ACCORDION_GROUP',\n);\n","/**\n * The accordion section of a {@link CngxLanguagePack}: the copy\n * `CngxAccordionItem` speaks on its own behalf. It feeds the copy keys of\n * `CNGX_ACCORDION_CONFIG`; a key set through `withAccordionLabels` or a bound\n * `[disabledReason]` / `[errorMessage]` still wins.\n *\n * @category ui/accordion/i18n\n * @since 0.1.0\n * @relatedTo CNGX_ACCORDION_CONFIG, withAccordionLabels\n */\nexport interface CngxAccordionLanguageSection {\n /** Reason announced when an item is disabled. */\n readonly disabledReason: string;\n /** Announced through `role=\"alert\"` when an item's state is error. */\n readonly errorMessage: string;\n}\n\n/**\n * The English accordion section: the single source of the accordion's English\n * copy. The `CNGX_ACCORDION_CONFIG` copy keys default to it.\n *\n * @category ui/accordion/i18n\n * @since 0.1.0\n * @relatedTo CNGX_ACCORDION_CONFIG\n */\nexport const CNGX_ACCORDION_LANGUAGE_EN: CngxAccordionLanguageSection = {\n disabledReason: 'This section is currently unavailable.',\n errorMessage: 'This section could not be loaded.',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly accordion: CngxAccordionLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_ACCORDION_LANGUAGE_EN } from './accordion-language-section';\n\n/**\n * @internal The accordion section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withAccordionLabels`.\n */\nexport const injectAccordionSiteCopy = createLanguageSection(\n 'accordion',\n CNGX_ACCORDION_LANGUAGE_EN,\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxAccordionConfig } from './accordion.config';\n\n/**\n * Library defaults for the accordion configuration cascade. Carries no copy:\n * the `disabledReason` / `errorMessage` defaults are the `accordion` section of\n * the language pack; single keys ride the `withAccordionLabels` feature.\n *\n * Exported for intra-lib consumers (`provideAccordionConfig` merges with this\n * base) but **NOT** re-exported from `public-api.ts` - downstream consumers\n * reach the defaults via `inject(CNGX_ACCORDION_CONFIG)` so\n * `provideAccordionConfig` / `provideAccordionConfigAt` overrides take\n * precedence.\n *\n * @internal\n */\nexport const CNGX_ACCORDION_DEFAULTS: CngxAccordionConfig = {\n headingLevel: 3,\n};\n\n/**\n * App-wide configuration cascade for the accordion organism. Resolves in\n * priority order:\n *\n * 1. Per-instance Input binding.\n * 2. `provideAccordionConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideAccordionConfig(...)` at the application root.\n * 4. Library defaults (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_ACCORDION_CONFIG)` always\n * resolves. Consumers who want overrides call `provideAccordionConfig(...)` in\n * `bootstrapApplication` providers (root cascade) or\n * `provideAccordionConfigAt(...)` in a component's `viewProviders` (sub-tree\n * cascade).\n *\n * @category ui/accordion\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/config/accordion.config.defaults.ts\n * @since 0.1.0\n */\nexport const CNGX_ACCORDION_CONFIG = new InjectionToken<CngxAccordionConfig>(\n 'CNGX_ACCORDION_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_ACCORDION_DEFAULTS,\n },\n);\n","import { computed, inject, isSignal, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\nimport { recordEqual } from '@cngx/utils';\n\nimport { injectAccordionSiteCopy } from '../i18n/accordion-i18n';\nimport type { CngxAccordionLanguageSection } from '../i18n/accordion-language-section';\nimport type { CngxAccordionConfig } from './accordion.config';\nimport { CNGX_ACCORDION_CONFIG } from './accordion.config.defaults';\n\n/**\n * Convenience accessor for the accordion configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideAccordionConfigAt` -> `provideAccordionConfig` -> library\n * defaults). Equivalent to `inject(CNGX_ACCORDION_CONFIG)` - the helper exists\n * so consumers don't import the token directly. Mirrors `injectBreadcrumbConfig`\n * in `@cngx/ui/breadcrumb`.\n *\n * The copy keys `disabledReason` and `errorMessage` hold overrides only; read\n * the resolved copy (overrides over the language pack) through\n * {@link injectAccordionLabels}.\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function injectAccordionConfig(): CngxAccordionConfig {\n return inject(CNGX_ACCORDION_CONFIG);\n}\n\nconst valueOf = <T>(source: T | Signal<T>): T => (isSignal(source) ? source() : source);\n\nconst CONFIG_COPY = new WeakMap<\n CngxAccordionConfig,\n Signal<Partial<CngxAccordionLanguageSection>>\n>();\n\n/**\n * The copy keys a config sets, each unwrapped, as one Signal. Memoized per\n * config object so every item under one cascade shares it.\n *\n * @internal\n */\nfunction accordionConfigCopy(\n config: CngxAccordionConfig,\n): Signal<Partial<CngxAccordionLanguageSection>> {\n let copy = CONFIG_COPY.get(config);\n if (!copy) {\n copy = computed(\n () => ({\n disabledReason: valueOf(config.disabledReason),\n errorMessage: valueOf(config.errorMessage),\n }),\n { equal: recordEqual },\n );\n CONFIG_COPY.set(config, copy);\n }\n return copy;\n}\n\n/**\n * The accordion copy in scope - `disabledReason` and `errorMessage` - as a\n * Signal that follows a runtime language switch. A key the config sets wins;\n * a key it leaves unset, `null` or `undefined` reads the `accordion` section\n * of the active pack (English without one). Runs in injection context; read it\n * inside a `computed()`, a template or a handler, and untracked where it\n * builds live-region text.\n *\n * ```ts\n * export class MyAccordionReason {\n * private readonly copy = injectAccordionLabels();\n * protected readonly reason = computed(() => this.copy().disabledReason);\n * }\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function injectAccordionLabels(): Signal<CngxAccordionLanguageSection> {\n return createFilledOverrideMerge(\n injectAccordionSiteCopy(),\n accordionConfigCopy(injectAccordionConfig()),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { coerceNumberProperty } from '@cngx/core/utils';\nimport { CngxAccordion } from '@cngx/common/interactive';\n\nimport { CNGX_ACCORDION_GROUP, type CngxAccordionGroupContext } from './accordion-group.token';\nimport type { CngxAccordionSkin } from './config/accordion.config';\nimport { injectAccordionConfig } from './config/inject-accordion-config';\n\n/**\n * Accordion organism shell. Hosts the headless {@link CngxAccordion} brain via\n * `hostDirectives` - so `CNGX_ACCORDION` and the registration keyboard-nav come\n * with it - forwards `[multi]` and the controlled `[(openIds)]` model, and adds\n * `[headingLevel]`. Projects its\n * `CngxAccordionItem` children through a single `<ng-content />`; the group\n * owns no rendering beyond providing {@link CNGX_ACCORDION_GROUP} so items read\n * the shared heading level.\n *\n * ```html\n * <cngx-accordion-group [multi]=\"false\" [headingLevel]=\"3\">\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Section A</span>\n * Body A\n * </cngx-accordion-item>\n * </cngx-accordion-group>\n * ```\n *\n * @category ui/accordion\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.component.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordion, createAccordionKeyboardNav\n *\n * <example-url>http://localhost:4200/#/ui/accordion/single-open/basic</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/multi-open/independent</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/controlled-open/initial-open</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/config/app-wide-labels</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/skins/editorial</example-url>\n */\n@Component({\n selector: 'cngx-accordion-group',\n exportAs: 'cngxAccordionGroup',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n // Skin CSS lives after the base so the unlayered `[data-skin]` @scope rules\n // win the root-level ties by source order (mirrors the tabs skin split).\n styleUrls: ['./accordion-group.component.css', './accordion-skins.css'],\n hostDirectives: [\n { directive: CngxAccordion, inputs: ['multi', 'openIds'], outputs: ['openIdsChange'] },\n ],\n providers: [{ provide: CNGX_ACCORDION_GROUP, useExisting: CngxAccordionGroup }],\n template: '<ng-content />',\n host: {\n class: 'cngx-accordion-group',\n '[attr.data-skin]': 'resolvedSkin() ?? null',\n },\n})\nexport class CngxAccordionGroup implements CngxAccordionGroupContext {\n // Config cascade source. Declared first so the headingLevel input default and\n // its coerce fallback below can read the resolved value.\n private readonly config = injectAccordionConfig();\n\n /**\n * Heading level (2-6) every item's `role=\"heading\"` wrapper reflects via\n * `aria-level`. Resolves `input ?? CNGX_ACCORDION_CONFIG.headingLevel ?? 3`:\n * an unbound `[headingLevel]` falls back to the app-wide config default\n * (overridden via `withDefaultHeadingLevel`). Clamped into the valid ARIA\n * range so a stray `0`/`9` - from a binding OR the config default - can never\n * emit an invalid `aria-level`. The default is clamped explicitly because\n * Angular runs `transform` only on bound values, not the initial default.\n * Coerced from string via `coerceNumberProperty` for template attribute binding.\n */\n readonly headingLevel = input(clampHeadingLevel(this.config.headingLevel), {\n transform: (value: number | string) => clampHeadingLevel(value, this.config.headingLevel),\n });\n\n /**\n * Visual skin reflected onto the `[data-skin]` host attribute. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.skin`: an unbound `[skin]` falls back to the\n * app-wide config default (`withAccordionSkin`); unset on both leaves the base\n * flat look. The skin only redirects CSS - structure, slots, ARIA, and\n * keyboard behaviour are identical across skins. Mirrors the tabs/stepper\n * `[skin]` cascade.\n */\n readonly skin = input<CngxAccordionSkin | undefined>(undefined);\n\n /** `[skin]` input over the config default. `null` host binding when unset. */\n protected readonly resolvedSkin = computed<CngxAccordionSkin | undefined>(\n () => this.skin() ?? this.config.skin,\n );\n}\n\n/**\n * Coerce a bound value to a number (via `coerceNumberProperty`, falling back to\n * `fallback`) and clamp it into the ARIA heading-level range 2-6.\n */\nfunction clampHeadingLevel(value: number | string, fallback = 3): number {\n return Math.min(6, Math.max(2, coerceNumberProperty(value, fallback)));\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\n\n/**\n * Structural slot for a {@link CngxAccordionItem}'s busy state. The item renders\n * it inside the region while the item's `[state]` is `loading` (a first-load\n * skeleton that replaces the body) or `refreshing` (a subtle overlay with the\n * body kept mounted). Absent, the item falls back to its CSS skeleton default.\n *\n * The region already carries `aria-busy` as a `computed()`, so the busy visual\n * is decorative (`aria-hidden`); assistive tech learns the busy state from\n * `aria-busy`, not from this template. The template receives a\n * {@link CngxAccordionItemStateContext} whose `$implicit` is the current status\n * (`loading` / `refreshing`), so one override can distinguish the two.\n *\n * ```html\n * <cngx-accordion-item [state]=\"report.status()\">\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemBusy let-status><my-skeleton [dim]=\"status === 'refreshing'\" /></ng-template>\n * <ng-template cngxAccordionItemContent>{{ report.data() }}</ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-busy.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemError\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemBusy]',\n exportAs: 'cngxAccordionItemBusy',\n standalone: true,\n})\nexport class CngxAccordionItemBusy {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemBusy,\n ctx: unknown,\n ): ctx is CngxAccordionItemStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Structural slot marking a {@link CngxAccordionItem}'s region body as lazy.\n * The item renders it via `ngTemplateOutlet` only after the region has first\n * opened (a `hasOpened` `linkedSignal`), then keeps it alive. Without this\n * directive the item projects its body eagerly through the default slot; with\n * it, the body is absent from the DOM until first expansion.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemContent>\n * <expensive-report />\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-content.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemTitle\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemContent]',\n exportAs: 'cngxAccordionItemContent',\n standalone: true,\n})\nexport class CngxAccordionItemContent {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\n\n/**\n * Structural slot for a {@link CngxAccordionItem}'s error state. The item renders\n * it inside the region, in a `role=\"alert\"` container, when the item's `[state]`\n * is `error` - so the error body is announced to assistive tech the moment it\n * appears. Absent, the item renders a minimal CSS error affordance; the\n * announced message is this slot's responsibility (author it with the error\n * text, e.g. a retry action).\n *\n * The template receives a {@link CngxAccordionItemStateContext} whose `message`\n * is the resolved error string, so the override can render the announced text\n * (and a retry) without re-deriving it.\n *\n * ```html\n * <cngx-accordion-item [state]=\"report.status()\">\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemError let-message=\"message\">\n * {{ message }} <button type=\"button\" (click)=\"retry()\">Retry</button>\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-error.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemBusy\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemError]',\n exportAs: 'cngxAccordionItemError',\n standalone: true,\n})\nexport class CngxAccordionItemError {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemError,\n ctx: unknown,\n ): ctx is CngxAccordionItemStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Template context for {@link CngxAccordionItemIcon}: `$implicit` is the item's\n * current expanded state, so the override can render an open/closed glyph.\n *\n * @category ui/accordion\n */\nexport interface CngxAccordionItemIconContext {\n readonly $implicit: boolean;\n}\n\n/**\n * Structural slot overriding a {@link CngxAccordionItem}'s chevron. The item\n * renders it in the header's icon position with the expanded state as\n * `$implicit`; absent, the item falls back to its CSS chevron default (no hard\n * `CngxIcon` dependency).\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Filters</span>\n * <ng-template cngxAccordionItemIcon let-expanded>\n * <my-icon [name]=\"expanded ? 'minus' : 'plus'\" />\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-icon.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemContent\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemIcon]',\n exportAs: 'cngxAccordionItemIcon',\n standalone: true,\n})\nexport class CngxAccordionItemIcon {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemIconContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemIcon,\n ctx: unknown,\n ): ctx is CngxAccordionItemIconContext {\n return true;\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-subtitle marker for a {@link CngxAccordionItem}. Put it on the\n * secondary line that sits below the title inside the header button. The item\n * projects it under the title but keeps it OUT of the button's accessible name\n * (the name is pinned to the title via `aria-labelledby`); the subtitle is\n * instead announced through the button's `aria-describedby`, so an informative\n * subtitle is not lost to assistive tech while the name stays title-only.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Billing</span>\n * <span cngxAccordionItemSubtitle>Invoices and payment methods</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-subtitle.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemTitle\n */\n@Directive({\n selector: '[cngxAccordionItemSubtitle]',\n exportAs: 'cngxAccordionItemSubtitle',\n standalone: true,\n})\nexport class CngxAccordionItemSubtitle {}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid, type AsyncStatus, type CngxAsyncState } from '@cngx/core/utils';\nimport { CNGX_ACCORDION, CngxAccordionPanel } from '@cngx/common/interactive';\n\nimport type { CngxAccordionSeverity } from './config/accordion.config';\nimport { CNGX_ACCORDION_GROUP } from './accordion-group.token';\nimport { CngxAccordionItemBusy } from './accordion-item-busy.directive';\nimport { CngxAccordionItemContent } from './accordion-item-content.directive';\nimport { CngxAccordionItemError } from './accordion-item-error.directive';\nimport { CngxAccordionItemIcon } from './accordion-item-icon.directive';\nimport { CngxAccordionItemSubtitle } from './accordion-item-subtitle.directive';\nimport { injectAccordionConfig, injectAccordionLabels } from './config/inject-accordion-config';\n\n/**\n * Accordion item organism. Renders the APG-correct trio a headless consumer\n * otherwise hand-wires: a `role=\"heading\"` wrapper carrying the group's\n * `aria-level`, a `cngxAccordionPanel` header `<button>`, and a\n * `role=\"region\"` named back at the header via `aria-labelledby`. Expansion is\n * derived from the coordinator (Pillar 1); the header self-wires keyboard nav\n * through the registration brain, so arrow keys rove across items even though\n * each header lives in its own component view.\n *\n * A disabled item renders a visually-hidden reason element with a stable id\n * that `aria-describedby` always points at (IDREF never dangles); only the\n * element's `aria-hidden` and text toggle with `disabled()`.\n *\n * @category ui/accordion\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item.component.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionGroup, CngxAccordionPanel\n * @slot cngxAccordionItemIcon Replaces the item's expand/collapse chevron.\n * @slot cngxAccordionItemContent The panel body, rendered lazily when the item opens.\n * @slot cngxAccordionItemBusy Rendered over the item while its content loads.\n * @slot cngxAccordionItemError Rendered when the item's content failed to load.\n *\n * <example-url>http://localhost:4200/#/ui/accordion/async-panel/lazy-fetch</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/disabled-lazy/disabled-and-lazy</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/custom-chevron/icon-slot</example-url>\n * <example-url>http://localhost:4200/#/ui/accordion/panel-content/table</example-url>\n */\n@Component({\n selector: 'cngx-accordion-item',\n exportAs: 'cngxAccordionItem',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxAccordionPanel, NgTemplateOutlet],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.css',\n host: {\n class: 'cngx-accordion-item',\n '[attr.data-expanded]': \"expanded() ? '' : null\",\n '[attr.data-severity]': 'severity() ?? null',\n },\n})\nexport class CngxAccordionItem {\n private readonly config = injectAccordionConfig();\n private readonly copy = injectAccordionLabels();\n\n /**\n * Disabled item: the header reports `tabindex=\"-1\"` + `aria-disabled=\"true\"`,\n * is skipped by roving, and its click never expands. The reason text is\n * announced through {@link disabledReason} via `aria-describedby`.\n */\n readonly disabled = input<boolean>(false);\n /**\n * Semantic severity reflected onto the `[data-severity]` host attribute for\n * skins that render it (the `severity-spine` skin fills its colour column from\n * the matching `--cngx-color-danger` / `-warning` / `-info` token). Mirrors the\n * group's `[skin]` -> `[data-skin]` cascade; purely visual, no ARIA impact.\n */\n readonly severity = input<CngxAccordionSeverity | undefined>(undefined);\n /**\n * Reason announced to assistive tech when the item is disabled, bound through\n * the always-present `aria-describedby` reason element. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.disabledReason ?? EN default`: an unbound\n * input (`undefined`) falls back to the app-wide config (English out of the\n * box, overridden via `withAccordionLabels`) and follows a language switch.\n */\n readonly disabledReason = input<string | undefined>(undefined);\n /**\n * Message announced through a `role=\"alert\"` when `[state]` is error and no\n * `*cngxAccordionItemError` slot is provided. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.errorMessage ?? EN default`, mirroring\n * {@link disabledReason}: a spoken default so the error state is never silent\n * to assistive tech. The error slot, when present, wins over this string. An\n * unbound input reads `undefined`.\n */\n readonly errorMessage = input<string | undefined>(undefined);\n /**\n * Stable id this item registers under in the coordinator's open-set. Defaults\n * to a generated id; bind `[panelId]` to a stable consumer value to address\n * the panel through the group's `[(openIds)]` model - seed it open on load or\n * drive expansion from router/SSR state. Mirrors `CngxTab.id` / `CngxStep.id`.\n */\n readonly panelId = input<string>(nextUid('cngx-accordion-panel-'));\n /**\n * The panel's async lifecycle, communicated to assistive tech. Accepts a raw\n * {@link AsyncStatus} or a {@link CngxAsyncState} the consumer already owns -\n * the item reads only the status discriminator, never the payload, so it stays\n * non-generic. A pure data input (the item injects no `CNGX_STATEFUL`), so no\n * empty-string transform: a bare string status must survive untouched. The\n * consumer wires the fetch; the item only communicates the state it is handed.\n */\n readonly state = input<AsyncStatus | CngxAsyncState<unknown> | undefined>(undefined);\n\n private readonly accordion = inject(CNGX_ACCORDION);\n protected readonly group = inject(CNGX_ACCORDION_GROUP);\n\n protected readonly regionId = nextUid('cngx-accordion-region-');\n protected readonly headerId = nextUid('cngx-accordion-header-');\n protected readonly titleId = nextUid('cngx-accordion-title-');\n protected readonly subtitleId = nextUid('cngx-accordion-subtitle-');\n protected readonly reasonId = nextUid('cngx-accordion-reason-');\n\n /** The disabled reason: the bound input, else the cascade default. */\n protected readonly resolvedDisabledReason = computed(\n () => this.disabledReason() ?? this.copy().disabledReason,\n );\n /**\n * The button's `aria-describedby`: subtitle first (an informative secondary\n * line the title-only name-pin would otherwise hide from AT), then the\n * disabled-reason element. Both target spans stay in the DOM; each ID\n * reference is emitted only while its description applies - accname 1.2\n * §2A traverses a directly-referenced node even when it is hidden, so\n * `aria-hidden` alone would not suppress a dangling reference.\n */\n protected readonly describedBy = computed(() => {\n const ids = [\n this.subtitleSlot() ? this.subtitleId : null,\n this.disabled() && this.resolvedDisabledReason() ? this.reasonId : null,\n ].filter((id): id is string => id !== null);\n return ids.length > 0 ? ids.join(' ') : null;\n });\n\n /** Lazy region-body slot; absent means the body projects eagerly through the default slot. */\n protected readonly contentSlot = contentChild(CngxAccordionItemContent);\n /**\n * Subtitle presence, so the always-present subtitle IDREF wrapper toggles its\n * `aria-hidden` by projection: hidden (empty) when unbound, announced through\n * `aria-describedby` when a subtitle is projected.\n */\n protected readonly subtitleSlot = contentChild(CngxAccordionItemSubtitle);\n /** Chevron override slot; absent means the CSS chevron default renders. */\n protected readonly iconSlot = contentChild(CngxAccordionItemIcon);\n /** Busy-state slot; absent means the CSS skeleton default renders. */\n protected readonly busySlot = contentChild(CngxAccordionItemBusy);\n /** Error-state slot; absent means the CSS error affordance default renders. */\n protected readonly errorSlot = contentChild(CngxAccordionItemError);\n /**\n * Resolved chevron template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemIcon` -> app-wide `CNGX_ACCORDION_CONFIG.templates.icon`\n * -> `null` (the CSS chevron default renders).\n */\n protected readonly iconTemplate = computed(\n () => this.iconSlot()?.templateRef ?? this.config.templates?.icon ?? null,\n );\n /**\n * Resolved busy template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemBusy` -> `CNGX_ACCORDION_CONFIG.templates.busySpinner` ->\n * `null` (the CSS skeleton default renders).\n */\n protected readonly busyTemplate = computed(\n () => this.busySlot()?.templateRef ?? this.config.templates?.busySpinner ?? null,\n );\n /**\n * Resolved error template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemError` -> `CNGX_ACCORDION_CONFIG.templates.error` ->\n * `null` (the CSS error affordance default renders).\n */\n protected readonly errorTemplate = computed(\n () => this.errorSlot()?.templateRef ?? this.config.templates?.error ?? null,\n );\n\n /**\n * Panel async status, normalised to an {@link AsyncStatus} from either the raw\n * enum or a {@link CngxAsyncState} object form (reads its `status()` signal).\n * A primitive, so `Object.is` dedupes - no `equal` needed. The object form's\n * status signal IS tracked, so a consumer state machine drives this directly.\n */\n protected readonly status = computed<AsyncStatus | undefined>(() => {\n const state = this.state();\n if (state == null) {\n return undefined;\n }\n return typeof state === 'string' ? state : state.status();\n });\n /**\n * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|\n * pending) so the string and object input forms agree. Boolean, no `equal`.\n */\n protected readonly busy = computed(() => {\n const status = this.status();\n return status === 'loading' || status === 'refreshing' || status === 'pending';\n });\n /**\n * Text of the `role=\"alert\"`. A bound `[errorMessage]` is tracked; the cascade\n * default is read untracked and re-read on a status change, so a language\n * switch does not re-announce a shown error - the next error speaks the new\n * language.\n */\n protected readonly resolvedErrorMessage = computed(() => {\n const own = this.errorMessage();\n this.status();\n return own ?? untracked(() => this.copy().errorMessage);\n });\n\n /** Whether this item's region is open, derived from the coordinator's open-set. */\n protected readonly expanded = computed(() => this.accordion.isOpen(this.panelId()));\n\n /**\n * Region visibility. Hidden while collapsed, EXCEPT in the error state: an\n * errored item un-hides its region so the `role=\"alert\"` mounts into the live\n * a11y tree and is announced even when the item was never opened (Pillar 2 -\n * an error is never silenced by a collapsed panel).\n */\n protected readonly regionHidden = computed(() => !this.expanded() && this.status() !== 'error');\n\n /**\n * Keep-alive latch for lazy content: `false` until the region first opens,\n * then `true` forever. Derived history (Pillar 1) - a `linkedSignal`\n * accumulating onto its own previous value, never an effect that writes a\n * signal. Boolean, so `Object.is` keeps a stable reference once latched.\n */\n protected readonly hasOpened = linkedSignal<boolean, boolean>({\n source: this.expanded,\n computation: (open, prev) => open || (prev?.value ?? false),\n });\n}\n","<div role=\"heading\" [attr.aria-level]=\"group.headingLevel()\" class=\"cngx-accordion-item__heading\">\n <span class=\"cngx-accordion-item__leading\" aria-hidden=\"true\">\n <ng-content select=\"[cngxAccordionItemLeading]\" />\n </span>\n <button\n type=\"button\"\n cngxAccordionPanel\n class=\"cngx-accordion-item__header\"\n [panelId]=\"panelId()\"\n [controls]=\"regionId\"\n [disabled]=\"disabled()\"\n [id]=\"headerId\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-describedby]=\"describedBy()\"\n >\n <span class=\"cngx-accordion-item__text\">\n <span class=\"cngx-accordion-item__title\" [id]=\"titleId\">\n <ng-content select=\"[cngxAccordionItemTitle]\" />\n </span>\n <span\n class=\"cngx-accordion-item__subtitle\"\n [id]=\"subtitleId\"\n [attr.aria-hidden]=\"subtitleSlot() ? null : 'true'\"\n >\n <ng-content select=\"[cngxAccordionItemSubtitle]\" />\n </span>\n </span>\n <span class=\"cngx-accordion-item__chevron-slot\" aria-hidden=\"true\">\n @if (iconTemplate(); as icon) {\n <ng-container\n [ngTemplateOutlet]=\"icon\"\n [ngTemplateOutletContext]=\"{ $implicit: expanded() }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__chevron\"></span>\n }\n </span>\n </button>\n <span class=\"cngx-accordion-item__meta\">\n <ng-content select=\"[cngxAccordionItemMeta]\" />\n </span>\n</div>\n\n<span\n [id]=\"reasonId\"\n class=\"cngx-visually-hidden\"\n [attr.aria-hidden]=\"disabled() && resolvedDisabledReason() ? null : 'true'\"\n>\n @if (disabled()) {\n {{ resolvedDisabledReason() }}\n }\n</span>\n\n<div\n role=\"region\"\n class=\"cngx-accordion-item__region\"\n [id]=\"regionId\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [hidden]=\"regionHidden()\"\n>\n @switch (status()) {\n @case ('error') {\n <div class=\"cngx-accordion-item__error\" role=\"alert\">\n @if (errorTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'error', message: resolvedErrorMessage() }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__error-default\">{{ resolvedErrorMessage() }}</span>\n }\n </div>\n }\n @case ('loading') {\n <div class=\"cngx-accordion-item__busy\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'loading', message: '' }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__skeleton\"></span>\n }\n </div>\n }\n @default {\n @if (contentSlot(); as content) {\n @if (hasOpened()) {\n <ng-container [ngTemplateOutlet]=\"content.templateRef\" />\n }\n } @else {\n <ng-content />\n }\n @if (status() === 'refreshing') {\n <div class=\"cngx-accordion-item__refreshing\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'refreshing', message: '' }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__refresh-indicator\"></span>\n }\n </div>\n }\n }\n }\n</div>\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-title marker for a {@link CngxAccordionItem}. Put it on the element\n * that names the section; the item projects it into the header button via\n * `<ng-content select=\"[cngxAccordionItemTitle]\">`, so the title becomes the\n * header's accessible name.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Billing</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-title.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem\n */\n@Directive({\n selector: '[cngxAccordionItemTitle]',\n exportAs: 'cngxAccordionItemTitle',\n standalone: true,\n})\nexport class CngxAccordionItemTitle {}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-leading marker for a {@link CngxAccordionItem}. Put it on the\n * decorative cell that opens the heading row - an index number, an icon tile, a\n * category tag, a timeline rail-node, a severity spine. The item renders it as a\n * sibling of the header button (not inside it) and wraps it `aria-hidden`, since\n * leading content is presentational: it never names the section and must not\n * leak into the button's accessible name.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemLeading>01</span>\n * <span cngxAccordionItemTitle>Overview</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-leading.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemMeta\n */\n@Directive({\n selector: '[cngxAccordionItemLeading]',\n exportAs: 'cngxAccordionItemLeading',\n standalone: true,\n})\nexport class CngxAccordionItemLeading {}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected trailing-meta marker for a {@link CngxAccordionItem}. Put it on the\n * facts that trail the title - a timestamp, a status badge, an SLA chip, an\n * amount. The item renders it as a sibling of the header button (not inside it),\n * so interactive meta content (a link, a remove-button) stays valid HTML instead\n * of nesting a control inside a button. Meta is real content, not `aria-hidden`:\n * it is excluded from the button's accessible name only by the name-pin to the\n * title, so screen-reader users still reach it in reading order.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Deployment</span>\n * <span cngxAccordionItemMeta><cngx-badge>Failed</cngx-badge></span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @category ui/accordion\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-meta.directive.ts\n * @since 0.1.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemLeading\n */\n@Directive({\n selector: '[cngxAccordionItemMeta]',\n exportAs: 'cngxAccordionItemMeta',\n standalone: true,\n})\nexport class CngxAccordionItemMeta {}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\n\nimport type { CngxAccordionConfig, CngxAccordionSkin } from './accordion.config';\nimport { CNGX_ACCORDION_CONFIG, CNGX_ACCORDION_DEFAULTS } from './accordion.config.defaults';\n\n/**\n * Discriminated-union shape returned by `withAccordionLabels` /\n * `withDefaultHeadingLevel`. The reducer in `provideAccordionConfig` /\n * `provideAccordionConfigAt` matches on `kind` and writes `payload` onto the\n * corresponding config key. Mirrors `CngxBreadcrumbConfigFeature` from\n * `@cngx/ui/breadcrumb` so the consumer's mental model is one across feature\n * areas.\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport type CngxAccordionConfigFeature =\n | {\n readonly kind: 'labels';\n readonly payload: {\n readonly disabledReason?: string | Signal<string>;\n readonly errorMessage?: string | Signal<string>;\n };\n }\n | { readonly kind: 'headingLevel'; readonly payload: { readonly headingLevel: number } }\n | { readonly kind: 'skin'; readonly payload: { readonly skin: CngxAccordionSkin } }\n | { readonly kind: 'templates'; readonly payload: NonNullable<CngxAccordionConfig['templates']> };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins per\n * key. `templates` is spread-merged so partial template overrides compose.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxAccordionConfigFeature[],\n): Partial<CngxAccordionConfig> {\n const out: {\n disabledReason?: string | Signal<string>;\n errorMessage?: string | Signal<string>;\n headingLevel?: number;\n skin?: CngxAccordionSkin;\n templates?: NonNullable<CngxAccordionConfig['templates']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'labels':\n if (f.payload.disabledReason !== undefined) {\n out.disabledReason = f.payload.disabledReason;\n }\n if (f.payload.errorMessage !== undefined) {\n out.errorMessage = f.payload.errorMessage;\n }\n break;\n case 'headingLevel':\n out.headingLevel = f.payload.headingLevel;\n break;\n case 'skin':\n out.skin = f.payload.skin;\n break;\n case 'templates':\n out.templates = { ...out.templates, ...f.payload };\n break;\n }\n }\n return out;\n}\n\n/**\n * Merges a partial config onto a base. Every key `reduceFeatures` set wins\n * (it never sets one to `undefined`), a copy key `Signal` passes through as a\n * value; `templates` is a one-level spread so a partial that sets only some\n * template keys keeps the base's other keys.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxAccordionConfig,\n partial: Partial<CngxAccordionConfig>,\n): CngxAccordionConfig {\n return {\n ...base,\n ...partial,\n templates: { ...base.templates, ...partial.templates },\n };\n}\n\n/**\n * Application-root configuration cascade for the accordion. Pass any\n * combination of `withAccordionLabels` / `withDefaultHeadingLevel` features in\n * `bootstrapApplication`'s providers array.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance Input binding.\n * 2. `provideAccordionConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideAccordionConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_ACCORDION_DEFAULTS`).\n *\n * The provider merges supplied features with the library defaults so consumers\n * only declare keys they want to override.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideAccordionConfig(\n * withAccordionLabels({ disabledReason: 'Dieser Abschnitt ist gesperrt.' }),\n * withDefaultHeadingLevel(2),\n * withAccordionSkin('categorized'),\n * ),\n * ],\n * });\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function provideAccordionConfig(\n ...features: CngxAccordionConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_ACCORDION_DEFAULTS reference flows through untouched. A fresh merge\n // would allocate identical content under a new reference and bust downstream\n // identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_ACCORDION_CONFIG,\n useValue: mergeConfig(CNGX_ACCORDION_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the accordion. Pass any\n * combination of feature factories in a parent component's `viewProviders`\n * array.\n *\n * Unlike `provideAccordionConfig` (root-only), `provideAccordionConfigAt`\n * injects the parent injector's `CNGX_ACCORDION_CONFIG` value (resolves through\n * the priority chain - root provider, library defaults, or another\n * `provideAccordionConfigAt` further up) and merges the supplied features on\n * top. Descendant accordion instances see the merged config; sibling sub-trees\n * keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * provideAccordionConfigAt(withAccordionLabels({ disabledReason: 'Locked.' })),\n * ],\n * template: '<cngx-accordion-group>...</cngx-accordion-group>',\n * })\n * class Section {}\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function provideAccordionConfigAt(\n ...features: CngxAccordionConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_ACCORDION_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_ACCORDION_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxAccordionConfig, CngxAccordionSkin } from './accordion.config';\nimport type { CngxAccordionConfigFeature } from './provide-accordion-config';\n\n/**\n * Override the accordion's locale-sensitive announced strings - `disabledReason`\n * (spoken when an item is disabled) and `errorMessage` (spoken via `role=\"alert\"`\n * when an item's `[state]` is error and no error slot is given). Pass either or\n * both. Per-instance `[disabledReason]` / `[errorMessage]` still win over the\n * cascade; this only sets the fallback. Pass a `Signal` for either string to\n * switch the language at runtime.\n *\n * ```ts\n * provideAccordionConfig(\n * withAccordionLabels({\n * disabledReason: 'This section is locked.',\n * errorMessage: 'This section failed to load.',\n * }),\n * );\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function withAccordionLabels(payload: {\n disabledReason?: string | Signal<string>;\n errorMessage?: string | Signal<string>;\n}): CngxAccordionConfigFeature {\n return { kind: 'labels', payload };\n}\n\n/**\n * Override the default heading level (`aria-level`) a `CngxAccordionGroup`\n * applies when `[headingLevel]` is not bound. Per-instance `[headingLevel]`\n * still wins; the group clamps the resolved value into the ARIA 2-6 range.\n *\n * ```ts\n * provideAccordionConfig(withDefaultHeadingLevel(2));\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function withDefaultHeadingLevel(headingLevel: number): CngxAccordionConfigFeature {\n return { kind: 'headingLevel', payload: { headingLevel } };\n}\n\n/**\n * Set the app-wide default visual skin for `<cngx-accordion-group>`. Unset by\n * default (the base flat look). Per-instance `[skin]` Input still wins; this\n * moves the cascade default. Structure, slots, ARIA, and keyboard behaviour are\n * identical across skins - only the `[data-skin]` host attribute changes the\n * CSS. Typed class-sugar, not a mode flag.\n *\n * ```ts\n * provideAccordionConfig(withAccordionSkin('categorized'));\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function withAccordionSkin(skin: CngxAccordionSkin): CngxAccordionConfigFeature {\n return { kind: 'skin', payload: { skin } };\n}\n\n/**\n * Set app-wide slot templates - the config tier of the slot cascade\n * (`*cngxAccordionItemXxx` per-instance -> this -> CSS default). Three slots\n * carry a config tier: `icon` (chevron; `$implicit` is the item's expanded\n * state), `busySpinner` (loading/refreshing visual), and `error` (error\n * affordance). Hand a `TemplateRef` per key here and every item renders it\n * unless a per-instance slot overrides it. Partial payloads compose - repeated\n * calls merge per key.\n *\n * ```ts\n * provideAccordionConfig(\n * withAccordionTemplates({ icon: myChevronTpl, busySpinner: mySpinnerTpl }),\n * );\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function withAccordionTemplates(\n payload: NonNullable<CngxAccordionConfig['templates']>,\n): CngxAccordionConfigFeature {\n return { kind: 'templates', payload };\n}\n","/**\n * @module @cngx/ui/accordion\n */\nexport { CngxAccordionGroup } from './accordion-group.component';\nexport { CNGX_ACCORDION_GROUP, type CngxAccordionGroupContext } from './accordion-group.token';\nexport { CngxAccordionItem } from './accordion-item.component';\nexport { CngxAccordionItemTitle } from './accordion-item-title.directive';\nexport { CngxAccordionItemSubtitle } from './accordion-item-subtitle.directive';\nexport { CngxAccordionItemLeading } from './accordion-item-leading.directive';\nexport { CngxAccordionItemMeta } from './accordion-item-meta.directive';\nexport { CngxAccordionItemContent } from './accordion-item-content.directive';\nexport { CngxAccordionItemBusy } from './accordion-item-busy.directive';\nexport { CngxAccordionItemError } from './accordion-item-error.directive';\nexport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\nexport {\n CngxAccordionItemIcon,\n type CngxAccordionItemIconContext,\n} from './accordion-item-icon.directive';\nexport type {\n CngxAccordionConfig,\n CngxAccordionSeverity,\n CngxAccordionSkin,\n} from './config/accordion.config';\nexport { CNGX_ACCORDION_CONFIG } from './config/accordion.config.defaults';\nexport {\n provideAccordionConfig,\n provideAccordionConfigAt,\n type CngxAccordionConfigFeature,\n} from './config/provide-accordion-config';\nexport {\n withAccordionLabels,\n withDefaultHeadingLevel,\n withAccordionSkin,\n withAccordionTemplates,\n} from './config/features';\nexport { injectAccordionConfig, injectAccordionLabels } from './config/inject-accordion-config';\nexport {\n CNGX_ACCORDION_LANGUAGE_EN,\n type CngxAccordionLanguageSection,\n} from './i18n/accordion-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAmBA;;;;;;;;AAQG;MACU,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;ACZxB;;;;;;;AAOG;AACI,MAAM,0BAA0B,GAAiC;AACtE,IAAA,cAAc,EAAE,wCAAwC;AACxD,IAAA,YAAY,EAAE,mCAAmC;;;ACvBnD;;;AAGG;AACI,MAAM,uBAAuB,GAAG,qBAAqB,CAC1D,WAAW,EACX,0BAA0B,CAC3B;;ACPD;;;;;;;;;;;;AAYG;AACI,MAAM,uBAAuB,GAAwB;AAC1D,IAAA,YAAY,EAAE,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;AAmBG;MACU,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,uBAAuB;AACvC,CAAA;;ACrCH;;;;;;;;;;;;;;AAcG;SACa,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,qBAAqB,CAAC;AACtC;AAEA,MAAM,OAAO,GAAG,CAAI,MAAqB,MAAS,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;AAEvF,MAAM,WAAW,GAAG,IAAI,OAAO,EAG5B;AAEH;;;;;AAKG;AACH,SAAS,mBAAmB,CAC1B,MAA2B,EAAA;IAE3B,IAAI,IAAI,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAA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AA;AACF,KAAA,CAAC;AACJ;AAEA;;;;;;;;;;;;;;;;;;;;;;;;AAwBG;AACG,SAAU,wBAAwB,CACtC,GAAG,QAAsC,EAAA;;;AAIzC,IAAA,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;AACzB,QAAA,OAAO,EAAE;IACX;AACA,IAAA,MAAM,OAAO,GAAG,cAAc,CAAC,QAAQ,CAAC;IACxC,OAAO;AACL,QAAA;AACE,YAAA,OAAO,EAAE,qBAAqB;YAC9B,UAAU,EAAE,MAAK;AACf,gBAAA,MAAM,MAAM,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChE,gBAAA,OAAO,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;YACrC,CAAC;AACF,SAAA;KACF;AACH;;ACnLA;;;;;;;;;;;;;;;;;;;AAmBG;AACG,SAAU,mBAAmB,CAAC,OAGnC,EAAA;AACC,IAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE;AACpC;AAEA;;;;;;;;;;;AAWG;AACG,SAAU,uBAAuB,CAAC,YAAoB,EAAA;IAC1D,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,YAAY,EAAE,EAAE;AAC5D;AAEA;;;;;;;;;;;;;AAaG;AACG,SAAU,iBAAiB,CAAC,IAAuB,EAAA;IACvD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE;AAC5C;AAEA;;;;;;;;;;;;;;;;;AAiBG;AACG,SAAU,sBAAsB,CACpC,OAAsD,EAAA;AAEtD,IAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE;AACvC;;ACxFA;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"cngx-ui-accordion.mjs","sources":["../../../projects/ui/accordion/accordion-group.token.ts","../../../projects/ui/accordion/i18n/accordion-language-section.ts","../../../projects/ui/accordion/i18n/accordion-i18n.ts","../../../projects/ui/accordion/config/accordion.config.defaults.ts","../../../projects/ui/accordion/config/inject-accordion-config.ts","../../../projects/ui/accordion/accordion-group.component.ts","../../../projects/ui/accordion/accordion-item-busy.directive.ts","../../../projects/ui/accordion/accordion-item-content.directive.ts","../../../projects/ui/accordion/accordion-item-error.directive.ts","../../../projects/ui/accordion/accordion-item-icon.directive.ts","../../../projects/ui/accordion/accordion-item-subtitle.directive.ts","../../../projects/ui/accordion/accordion-item.component.ts","../../../projects/ui/accordion/accordion-item.component.html","../../../projects/ui/accordion/accordion-item-title.directive.ts","../../../projects/ui/accordion/accordion-item-leading.directive.ts","../../../projects/ui/accordion/accordion-item-meta.directive.ts","../../../projects/ui/accordion/config/provide-accordion-config.ts","../../../projects/ui/accordion/config/features.ts","../../../projects/ui/accordion/public-api.ts","../../../projects/ui/accordion/cngx-ui-accordion.ts"],"sourcesContent":["import { InjectionToken, type Signal } from '@angular/core';\n\n/**\n * UI-local context a {@link CngxAccordionGroup} exposes so each\n * `CngxAccordionItem` reads the shared heading level without injecting the\n * concrete group class (cyclic type, blocks Atomic Decompose). Kept separate\n * from the headless `CNGX_ACCORDION` brain contract, which stays\n * skin-agnostic - heading semantics are a skin concern.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionGroup, CngxAccordionItem\n */\nexport interface CngxAccordionGroupContext {\n /** Heading level (2-6) every item's `role=\"heading\"` wrapper reflects via `aria-level`. */\n readonly headingLevel: Signal<number>;\n}\n\n/**\n * DI token for the {@link CngxAccordionGroupContext}. {@link CngxAccordionGroup}\n * provides it via `useExisting`; each `CngxAccordionItem` injects it.\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.token.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionGroup, CngxAccordionItem\n */\nexport const CNGX_ACCORDION_GROUP = new InjectionToken<CngxAccordionGroupContext>(\n 'CNGX_ACCORDION_GROUP',\n);\n","/**\n * The accordion section of a {@link CngxLanguagePack}: the copy\n * `CngxAccordionItem` speaks on its own behalf. It feeds the copy keys of\n * `CNGX_ACCORDION_CONFIG`; a key set through `withAccordionLabels` or a bound\n * `[disabledReason]` / `[errorMessage]` still wins.\n *\n * @since 0.3.0\n * @relatedTo CNGX_ACCORDION_CONFIG, withAccordionLabels\n */\nexport interface CngxAccordionLanguageSection {\n /** Reason announced when an item is disabled. */\n readonly disabledReason: string;\n /** Announced through `role=\"alert\"` when an item's state is error. */\n readonly errorMessage: string;\n}\n\n/**\n * The English accordion section: the single source of the accordion's English\n * copy. The `CNGX_ACCORDION_CONFIG` copy keys default to it.\n *\n * @since 0.3.0\n * @relatedTo CNGX_ACCORDION_CONFIG\n */\nexport const CNGX_ACCORDION_LANGUAGE_EN: CngxAccordionLanguageSection = {\n disabledReason: 'This section is currently unavailable.',\n errorMessage: 'This section could not be loaded.',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly accordion: CngxAccordionLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_ACCORDION_LANGUAGE_EN } from './accordion-language-section';\n\n/**\n * @internal The accordion section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withAccordionLabels`.\n */\nexport const injectAccordionSiteCopy = createLanguageSection(\n 'accordion',\n CNGX_ACCORDION_LANGUAGE_EN,\n);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxAccordionConfig } from './accordion.config';\n\n/**\n * Library defaults for the accordion configuration cascade. Carries no copy:\n * the `disabledReason` / `errorMessage` defaults are the `accordion` section of\n * the language pack; single keys ride the `withAccordionLabels` feature.\n *\n * Exported for intra-lib consumers (`provideAccordionConfig` merges with this\n * base) but **NOT** re-exported from `public-api.ts` - downstream consumers\n * reach the defaults via `inject(CNGX_ACCORDION_CONFIG)` so\n * `provideAccordionConfig` / `provideAccordionConfigAt` overrides take\n * precedence.\n *\n * @internal\n */\nexport const CNGX_ACCORDION_DEFAULTS: CngxAccordionConfig = {\n headingLevel: 3,\n};\n\n/**\n * App-wide configuration cascade for the accordion organism. Resolves in\n * priority order:\n *\n * 1. Per-instance Input binding.\n * 2. `provideAccordionConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideAccordionConfig(...)` at the application root.\n * 4. Library defaults (this token's `factory`).\n *\n * `providedIn: 'root'` with a default factory means consumers never need to\n * provide the token explicitly - `inject(CNGX_ACCORDION_CONFIG)` always\n * resolves. Consumers who want overrides call `provideAccordionConfig(...)` in\n * `bootstrapApplication` providers (root cascade) or\n * `provideAccordionConfigAt(...)` in a component's `viewProviders` (sub-tree\n * cascade).\n *\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/config/accordion.config.defaults.ts\n * @since 0.3.0\n */\nexport const CNGX_ACCORDION_CONFIG = new InjectionToken<CngxAccordionConfig>(\n 'CNGX_ACCORDION_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_ACCORDION_DEFAULTS,\n },\n);\n","import { computed, inject, isSignal, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\nimport { recordEqual } from '@cngx/utils';\n\nimport { injectAccordionSiteCopy } from '../i18n/accordion-i18n';\nimport type { CngxAccordionLanguageSection } from '../i18n/accordion-language-section';\nimport type { CngxAccordionConfig } from './accordion.config';\nimport { CNGX_ACCORDION_CONFIG } from './accordion.config.defaults';\n\n/**\n * Convenience accessor for the accordion configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideAccordionConfigAt` -> `provideAccordionConfig` -> library\n * defaults). Equivalent to `inject(CNGX_ACCORDION_CONFIG)` - the helper exists\n * so consumers don't import the token directly. Mirrors `injectBreadcrumbConfig`\n * in `@cngx/ui/breadcrumb`.\n *\n * The copy keys `disabledReason` and `errorMessage` hold overrides only; read\n * the resolved copy (overrides over the language pack) through\n * {@link injectAccordionLabels}.\n *\n * @since 0.3.0\n */\nexport function injectAccordionConfig(): CngxAccordionConfig {\n return inject(CNGX_ACCORDION_CONFIG);\n}\n\nconst valueOf = <T>(source: T | Signal<T>): T => (isSignal(source) ? source() : source);\n\nconst CONFIG_COPY = new WeakMap<\n CngxAccordionConfig,\n Signal<Partial<CngxAccordionLanguageSection>>\n>();\n\n/**\n * The copy keys a config sets, each unwrapped, as one Signal. Memoized per\n * config object so every item under one cascade shares it.\n *\n * @internal\n */\nfunction accordionConfigCopy(\n config: CngxAccordionConfig,\n): Signal<Partial<CngxAccordionLanguageSection>> {\n let copy = CONFIG_COPY.get(config);\n if (!copy) {\n copy = computed(\n () => ({\n disabledReason: valueOf(config.disabledReason),\n errorMessage: valueOf(config.errorMessage),\n }),\n { equal: recordEqual },\n );\n CONFIG_COPY.set(config, copy);\n }\n return copy;\n}\n\n/**\n * The accordion copy in scope - `disabledReason` and `errorMessage` - as a\n * Signal that follows a runtime language switch. A key the config sets wins;\n * a key it leaves unset, `null` or `undefined` reads the `accordion` section\n * of the active pack (English without one). Runs in injection context; read it\n * inside a `computed()`, a template or a handler, and untracked where it\n * builds live-region text.\n *\n * ```ts\n * export class MyAccordionReason {\n * private readonly copy = injectAccordionLabels();\n * protected readonly reason = computed(() => this.copy().disabledReason);\n * }\n * ```\n *\n * @since 0.3.0\n */\nexport function injectAccordionLabels(): Signal<CngxAccordionLanguageSection> {\n return createFilledOverrideMerge(\n injectAccordionSiteCopy(),\n accordionConfigCopy(injectAccordionConfig()),\n );\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { coerceNumberProperty } from '@cngx/core/utils';\nimport { CngxAccordion } from '@cngx/common/interactive';\n\nimport { CNGX_ACCORDION_GROUP, type CngxAccordionGroupContext } from './accordion-group.token';\nimport type { CngxAccordionSkin } from './config/accordion.config';\nimport { injectAccordionConfig } from './config/inject-accordion-config';\n\n/**\n * Accordion organism shell. Hosts the headless {@link CngxAccordion} brain via\n * `hostDirectives` - so `CNGX_ACCORDION` and the registration keyboard-nav come\n * with it - forwards `[multi]` and the controlled `[(openIds)]` model, and adds\n * `[headingLevel]`. Projects its\n * `CngxAccordionItem` children through a single `<ng-content />`; the group\n * owns no rendering beyond providing {@link CNGX_ACCORDION_GROUP} so items read\n * the shared heading level.\n *\n * ```html\n * <cngx-accordion-group [multi]=\"false\" [headingLevel]=\"3\">\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Section A</span>\n * Body A\n * </cngx-accordion-item>\n * </cngx-accordion-group>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-group.component.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordion, createAccordionKeyboardNav\n *\n * <example-url>/#/ui/accordion/single-open/basic</example-url>\n * <example-url>/#/ui/accordion/multi-open/independent</example-url>\n * <example-url>/#/ui/accordion/controlled-open/initial-open</example-url>\n * <example-url>/#/ui/accordion/config/app-wide-labels</example-url>\n * <example-url>/#/ui/accordion/skins/bento</example-url>\n * <example-url>/#/ui/accordion/skins/categorized</example-url>\n * <example-url>/#/ui/accordion/skins/editorial</example-url>\n * <example-url>/#/ui/accordion/skins/lux</example-url>\n * <example-url>/#/ui/accordion/skins/plus-minus</example-url>\n * <example-url>/#/ui/accordion/skins/primary-frame</example-url>\n * <example-url>/#/ui/accordion/skins/section-bands</example-url>\n * <example-url>/#/ui/accordion/skins/severity-spine</example-url>\n * <example-url>/#/ui/accordion/skins/timeline</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-accordion-group',\n exportAs: 'cngxAccordionGroup',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n // Skin CSS lives after the base so the unlayered `[data-skin]` @scope rules\n // win the root-level ties by source order (mirrors the tabs skin split).\n styleUrls: ['./accordion-group.component.css', './accordion-skins.css'],\n hostDirectives: [\n { directive: CngxAccordion, inputs: ['multi', 'openIds'], outputs: ['openIdsChange'] },\n ],\n providers: [{ provide: CNGX_ACCORDION_GROUP, useExisting: CngxAccordionGroup }],\n template: '<ng-content />',\n host: {\n class: 'cngx-accordion-group',\n '[attr.data-skin]': 'resolvedSkin() ?? null',\n },\n})\nexport class CngxAccordionGroup implements CngxAccordionGroupContext {\n // Config cascade source. Declared first so the headingLevel input default and\n // its coerce fallback below can read the resolved value.\n private readonly config = injectAccordionConfig();\n\n /**\n * Heading level (2-6) every item's `role=\"heading\"` wrapper reflects via\n * `aria-level`. Resolves `input ?? CNGX_ACCORDION_CONFIG.headingLevel ?? 3`:\n * an unbound `[headingLevel]` falls back to the app-wide config default\n * (overridden via `withDefaultHeadingLevel`). Clamped into the valid ARIA\n * range so a stray `0`/`9` - from a binding OR the config default - can never\n * emit an invalid `aria-level`. The default is clamped explicitly because\n * Angular runs `transform` only on bound values, not the initial default.\n * Coerced from string via `coerceNumberProperty` for template attribute binding.\n */\n readonly headingLevel = input(clampHeadingLevel(this.config.headingLevel), {\n transform: (value: number | string) => clampHeadingLevel(value, this.config.headingLevel),\n });\n\n /**\n * Visual skin reflected onto the `[data-skin]` host attribute. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.skin`: an unbound `[skin]` falls back to the\n * app-wide config default (`withAccordionSkin`); unset on both leaves the base\n * flat look. The skin only redirects CSS - structure, slots, ARIA, and\n * keyboard behaviour are identical across skins. Mirrors the tabs/stepper\n * `[skin]` cascade.\n */\n readonly skin = input<CngxAccordionSkin | undefined>(undefined);\n\n /** `[skin]` input over the config default. `null` host binding when unset. */\n protected readonly resolvedSkin = computed<CngxAccordionSkin | undefined>(\n () => this.skin() ?? this.config.skin,\n );\n}\n\n/**\n * Coerce a bound value to a number (via `coerceNumberProperty`, falling back to\n * `fallback`) and clamp it into the ARIA heading-level range 2-6.\n */\nfunction clampHeadingLevel(value: number | string, fallback = 3): number {\n return Math.min(6, Math.max(2, coerceNumberProperty(value, fallback)));\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\n\n/**\n * Structural slot for a {@link CngxAccordionItem}'s busy state. The item renders\n * it inside the region while the item's `[state]` is `loading` (a first-load\n * skeleton that replaces the body) or `refreshing` (a subtle overlay with the\n * body kept mounted). Absent, the item falls back to its CSS skeleton default.\n *\n * The region already carries `aria-busy` as a `computed()`, so the busy visual\n * is decorative (`aria-hidden`); assistive tech learns the busy state from\n * `aria-busy`, not from this template. The template receives a\n * {@link CngxAccordionItemStateContext} whose `$implicit` is the current status\n * (`loading` / `refreshing`), so one override can distinguish the two.\n *\n * ```html\n * <cngx-accordion-item [state]=\"report.status()\">\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemBusy let-status><my-skeleton [dim]=\"status === 'refreshing'\" /></ng-template>\n * <ng-template cngxAccordionItemContent>{{ report.data() }}</ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-busy.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemError\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemBusy]',\n exportAs: 'cngxAccordionItemBusy',\n standalone: true,\n})\nexport class CngxAccordionItemBusy {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemBusy,\n ctx: unknown,\n ): ctx is CngxAccordionItemStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Structural slot marking a {@link CngxAccordionItem}'s region body as lazy.\n * The item renders it via `ngTemplateOutlet` only after the region has first\n * opened (a `hasOpened` `linkedSignal`), then keeps it alive. Without this\n * directive the item projects its body eagerly through the default slot; with\n * it, the body is absent from the DOM until first expansion.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemContent>\n * <expensive-report />\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-content.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemTitle\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemContent]',\n exportAs: 'cngxAccordionItemContent',\n standalone: true,\n})\nexport class CngxAccordionItemContent {\n readonly templateRef = inject(TemplateRef<unknown>);\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\nimport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\n\n/**\n * Structural slot for a {@link CngxAccordionItem}'s error state. The item renders\n * it inside the region, in a `role=\"alert\"` container, when the item's `[state]`\n * is `error` - so the error body is announced to assistive tech the moment it\n * appears. Absent, the item renders a minimal CSS error affordance; the\n * announced message is this slot's responsibility (author it with the error\n * text, e.g. a retry action).\n *\n * The template receives a {@link CngxAccordionItemStateContext} whose `message`\n * is the resolved error string, so the override can render the announced text\n * (and a retry) without re-deriving it.\n *\n * ```html\n * <cngx-accordion-item [state]=\"report.status()\">\n * <span cngxAccordionItemTitle>Report</span>\n * <ng-template cngxAccordionItemError let-message=\"message\">\n * {{ message }} <button type=\"button\" (click)=\"retry()\">Retry</button>\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-error.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemBusy\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemError]',\n exportAs: 'cngxAccordionItemError',\n standalone: true,\n})\nexport class CngxAccordionItemError {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemStateContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemError,\n ctx: unknown,\n ): ctx is CngxAccordionItemStateContext {\n return true;\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Template context for {@link CngxAccordionItemIcon}: `$implicit` is the item's\n * current expanded state, so the override can render an open/closed glyph.\n */\nexport interface CngxAccordionItemIconContext {\n readonly $implicit: boolean;\n}\n\n/**\n * Structural slot overriding a {@link CngxAccordionItem}'s chevron. The item\n * renders it in the header's icon position with the expanded state as\n * `$implicit`; absent, the item falls back to its CSS chevron default (no hard\n * `CngxIcon` dependency).\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Filters</span>\n * <ng-template cngxAccordionItemIcon let-expanded>\n * <my-icon [name]=\"expanded ? 'minus' : 'plus'\" />\n * </ng-template>\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-icon.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemContent\n */\n@Directive({\n selector: 'ng-template[cngxAccordionItemIcon]',\n exportAs: 'cngxAccordionItemIcon',\n standalone: true,\n})\nexport class CngxAccordionItemIcon {\n readonly templateRef = inject(TemplateRef<CngxAccordionItemIconContext>);\n\n static ngTemplateContextGuard(\n _dir: CngxAccordionItemIcon,\n ctx: unknown,\n ): ctx is CngxAccordionItemIconContext {\n return true;\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-subtitle marker for a {@link CngxAccordionItem}. Put it on the\n * secondary line that sits below the title inside the header button. The item\n * projects it under the title but keeps it OUT of the button's accessible name\n * (the name is pinned to the title via `aria-labelledby`); the subtitle is\n * instead announced through the button's `aria-describedby`, so an informative\n * subtitle is not lost to assistive tech while the name stays title-only.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Billing</span>\n * <span cngxAccordionItemSubtitle>Invoices and payment methods</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-subtitle.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemTitle\n */\n@Directive({\n selector: '[cngxAccordionItemSubtitle]',\n exportAs: 'cngxAccordionItemSubtitle',\n standalone: true,\n})\nexport class CngxAccordionItemSubtitle {}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n linkedSignal,\n untracked,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { nextUid, type AsyncStatus, type CngxAsyncState } from '@cngx/core/utils';\nimport { CngxRuntimeError } from '@cngx/utils';\nimport { CNGX_ACCORDION, CngxAccordionPanel } from '@cngx/common/interactive';\n\nimport type { CngxAccordionSeverity } from './config/accordion.config';\nimport { CNGX_ACCORDION_GROUP, type CngxAccordionGroupContext } from './accordion-group.token';\nimport { CngxAccordionItemBusy } from './accordion-item-busy.directive';\nimport { CngxAccordionItemContent } from './accordion-item-content.directive';\nimport { CngxAccordionItemError } from './accordion-item-error.directive';\nimport { CngxAccordionItemIcon } from './accordion-item-icon.directive';\nimport { CngxAccordionItemSubtitle } from './accordion-item-subtitle.directive';\nimport { injectAccordionConfig, injectAccordionLabels } from './config/inject-accordion-config';\n\n/**\n * Accordion item organism. Renders the APG-correct trio a headless consumer\n * otherwise hand-wires: a `role=\"heading\"` wrapper carrying the group's\n * `aria-level`, a `cngxAccordionPanel` header `<button>`, and a\n * `role=\"region\"` named back at the header via `aria-labelledby`. Expansion is\n * derived from the coordinator (Pillar 1); the header self-wires keyboard nav\n * through the registration brain, so arrow keys rove across items even though\n * each header lives in its own component view.\n *\n * A disabled item renders a visually-hidden reason element with a stable id\n * that `aria-describedby` always points at (IDREF never dangles); only the\n * element's `aria-hidden` and text toggle with `disabled()`.\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item.component.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionGroup, CngxAccordionPanel\n * @slot cngxAccordionItemIcon Replaces the item's expand/collapse chevron.\n * @slot cngxAccordionItemContent The panel body, rendered lazily when the item opens.\n * @slot cngxAccordionItemBusy Rendered over the item while its content loads.\n * @slot cngxAccordionItemError Rendered when the item's content failed to load.\n *\n * <example-url>/#/ui/accordion/async-panel/lazy-fetch</example-url>\n * <example-url>/#/ui/accordion/disabled-lazy/disabled-and-lazy</example-url>\n * <example-url>/#/ui/accordion/custom-chevron/icon-slot</example-url>\n * <example-url>/#/ui/accordion/panel-content/table</example-url>\n */\n@Component({\n selector: 'cngx-accordion-item',\n exportAs: 'cngxAccordionItem',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxAccordionPanel, NgTemplateOutlet],\n templateUrl: './accordion-item.component.html',\n styleUrl: './accordion-item.component.css',\n host: {\n class: 'cngx-accordion-item',\n '[attr.data-expanded]': \"expanded() ? '' : null\",\n '[attr.data-severity]': 'severity() ?? null',\n },\n})\nexport class CngxAccordionItem {\n private readonly config = injectAccordionConfig();\n private readonly copy = injectAccordionLabels();\n\n /**\n * Disabled item: the header reports `tabindex=\"-1\"` + `aria-disabled=\"true\"`,\n * is skipped by roving, and its click never expands. The reason text is\n * announced through {@link disabledReason} via `aria-describedby`.\n */\n readonly disabled = input<boolean>(false);\n /**\n * Semantic severity reflected onto the `[data-severity]` host attribute for\n * skins that render it (the `severity-spine` skin fills its colour column from\n * the matching `--cngx-color-danger` / `-warning` / `-info` token). Mirrors the\n * group's `[skin]` -> `[data-skin]` cascade; purely visual, no ARIA impact.\n */\n readonly severity = input<CngxAccordionSeverity | undefined>(undefined);\n /**\n * Reason announced to assistive tech when the item is disabled, bound through\n * the always-present `aria-describedby` reason element. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.disabledReason ?? EN default`: an unbound\n * input (`undefined`) falls back to the app-wide config (English out of the\n * box, overridden via `withAccordionLabels`) and follows a language switch.\n */\n readonly disabledReason = input<string | undefined>(undefined);\n /**\n * Message announced through a `role=\"alert\"` when `[state]` is error and no\n * `*cngxAccordionItemError` slot is provided. Resolves\n * `input ?? CNGX_ACCORDION_CONFIG.errorMessage ?? EN default`, mirroring\n * {@link disabledReason}: a spoken default so the error state is never silent\n * to assistive tech. The error slot, when present, wins over this string. An\n * unbound input reads `undefined`.\n */\n readonly errorMessage = input<string | undefined>(undefined);\n /**\n * Stable id this item registers under in the coordinator's open-set. Defaults\n * to a generated id; bind `[panelId]` to a stable consumer value to address\n * the panel through the group's `[(openIds)]` model - seed it open on load or\n * drive expansion from router/SSR state. Mirrors `CngxTab.id` / `CngxStep.id`.\n */\n readonly panelId = input<string>(nextUid('cngx-accordion-panel-'));\n /**\n * The panel's async lifecycle, communicated to assistive tech. Accepts a raw\n * {@link AsyncStatus} or a {@link CngxAsyncState} the consumer already owns -\n * the item reads only the status discriminator, never the payload, so it stays\n * non-generic. A pure data input (the item injects no `CNGX_STATEFUL`), so no\n * empty-string transform: a bare string status must survive untouched. The\n * consumer wires the fetch; the item only communicates the state it is handed.\n */\n readonly state = input<AsyncStatus | CngxAsyncState<unknown> | undefined>(undefined);\n\n protected readonly group = injectAccordionGroup();\n private readonly accordion = inject(CNGX_ACCORDION);\n\n protected readonly regionId = nextUid('cngx-accordion-region-');\n protected readonly headerId = nextUid('cngx-accordion-header-');\n protected readonly titleId = nextUid('cngx-accordion-title-');\n protected readonly subtitleId = nextUid('cngx-accordion-subtitle-');\n protected readonly reasonId = nextUid('cngx-accordion-reason-');\n\n /** The disabled reason: the bound input, else the cascade default. */\n protected readonly resolvedDisabledReason = computed(\n () => this.disabledReason() ?? this.copy().disabledReason,\n );\n /**\n * The button's `aria-describedby`: subtitle first (an informative secondary\n * line the title-only name-pin would otherwise hide from AT), then the\n * disabled-reason element. Both target spans stay in the DOM; each ID\n * reference is emitted only while its description applies - accname 1.2\n * §2A traverses a directly-referenced node even when it is hidden, so\n * `aria-hidden` alone would not suppress a dangling reference.\n */\n protected readonly describedBy = computed(() => {\n const ids = [\n this.subtitleSlot() ? this.subtitleId : null,\n this.disabled() && this.resolvedDisabledReason() ? this.reasonId : null,\n ].filter((id): id is string => id !== null);\n return ids.length > 0 ? ids.join(' ') : null;\n });\n\n /** Lazy region-body slot; absent means the body projects eagerly through the default slot. */\n protected readonly contentSlot = contentChild(CngxAccordionItemContent);\n /**\n * Subtitle presence, so the always-present subtitle IDREF wrapper toggles its\n * `aria-hidden` by projection: hidden (empty) when unbound, announced through\n * `aria-describedby` when a subtitle is projected.\n */\n protected readonly subtitleSlot = contentChild(CngxAccordionItemSubtitle);\n /** Chevron override slot; absent means the CSS chevron default renders. */\n protected readonly iconSlot = contentChild(CngxAccordionItemIcon);\n /** Busy-state slot; absent means the CSS skeleton default renders. */\n protected readonly busySlot = contentChild(CngxAccordionItemBusy);\n /** Error-state slot; absent means the CSS error affordance default renders. */\n protected readonly errorSlot = contentChild(CngxAccordionItemError);\n /**\n * Resolved chevron template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemIcon` -> app-wide `CNGX_ACCORDION_CONFIG.templates.icon`\n * -> `null` (the CSS chevron default renders).\n */\n protected readonly iconTemplate = computed(\n () => this.iconSlot()?.templateRef ?? this.config.templates?.icon ?? null,\n );\n /**\n * Resolved busy template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemBusy` -> `CNGX_ACCORDION_CONFIG.templates.busySpinner` ->\n * `null` (the CSS skeleton default renders).\n */\n protected readonly busyTemplate = computed(\n () => this.busySlot()?.templateRef ?? this.config.templates?.busySpinner ?? null,\n );\n /**\n * Resolved error template through the three-stage slot cascade: per-instance\n * `*cngxAccordionItemError` -> `CNGX_ACCORDION_CONFIG.templates.error` ->\n * `null` (the CSS error affordance default renders).\n */\n protected readonly errorTemplate = computed(\n () => this.errorSlot()?.templateRef ?? this.config.templates?.error ?? null,\n );\n\n /**\n * Panel async status, normalised to an {@link AsyncStatus} from either the raw\n * enum or a {@link CngxAsyncState} object form (reads its `status()` signal).\n * A primitive, so `Object.is` dedupes - no `equal` needed. The object form's\n * status signal IS tracked, so a consumer state machine drives this directly.\n */\n protected readonly status = computed<AsyncStatus | undefined>(() => {\n const state = this.state();\n if (state == null) {\n return undefined;\n }\n return typeof state === 'string' ? state : state.status();\n });\n /**\n * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|\n * pending) so the string and object input forms agree. Boolean, no `equal`.\n */\n protected readonly busy = computed(() => {\n const status = this.status();\n return status === 'loading' || status === 'refreshing' || status === 'pending';\n });\n /**\n * Text of the `role=\"alert\"`. A bound `[errorMessage]` is tracked; the cascade\n * default is read untracked and re-read on a status change, so a language\n * switch does not re-announce a shown error - the next error speaks the new\n * language.\n */\n protected readonly resolvedErrorMessage = computed(() => {\n const own = this.errorMessage();\n this.status();\n return own ?? untracked(() => this.copy().errorMessage);\n });\n\n /** Whether this item's region is open, derived from the coordinator's open-set. */\n protected readonly expanded = computed(() => this.accordion.isOpen(this.panelId()));\n\n /**\n * Region visibility. Hidden while collapsed, EXCEPT in the error state: an\n * errored item un-hides its region so the `role=\"alert\"` mounts into the live\n * a11y tree and is announced even when the item was never opened (Pillar 2 -\n * an error is never silenced by a collapsed panel).\n */\n protected readonly regionHidden = computed(() => !this.expanded() && this.status() !== 'error');\n\n /**\n * Keep-alive latch for lazy content: `false` until the region first opens,\n * then `true` forever. Derived history (Pillar 1) - a `linkedSignal`\n * accumulating onto its own previous value, never an effect that writes a\n * signal. Boolean, so `Object.is` keeps a stable reference once latched.\n */\n protected readonly hasOpened = linkedSignal<boolean, boolean>({\n source: this.expanded,\n computation: (open, prev) => open || (prev?.value ?? false),\n });\n}\n\nfunction injectAccordionGroup(): CngxAccordionGroupContext {\n const group = inject(CNGX_ACCORDION_GROUP, { optional: true });\n if (!group) {\n throw new CngxRuntimeError(\n 'CNGX3019',\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n '[cngx-accordion-item] must be placed inside <cngx-accordion-group>.',\n );\n }\n return group;\n}\n","<div role=\"heading\" [attr.aria-level]=\"group.headingLevel()\" class=\"cngx-accordion-item__heading\">\n <span class=\"cngx-accordion-item__leading\" aria-hidden=\"true\">\n <ng-content select=\"[cngxAccordionItemLeading]\" />\n </span>\n <button\n type=\"button\"\n cngxAccordionPanel\n class=\"cngx-accordion-item__header\"\n [panelId]=\"panelId()\"\n [controls]=\"regionId\"\n [disabled]=\"disabled()\"\n [id]=\"headerId\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-describedby]=\"describedBy()\"\n >\n <span class=\"cngx-accordion-item__text\">\n <span class=\"cngx-accordion-item__title\" [id]=\"titleId\">\n <ng-content select=\"[cngxAccordionItemTitle]\" />\n </span>\n <span\n class=\"cngx-accordion-item__subtitle\"\n [id]=\"subtitleId\"\n [attr.aria-hidden]=\"subtitleSlot() ? null : 'true'\"\n >\n <ng-content select=\"[cngxAccordionItemSubtitle]\" />\n </span>\n </span>\n <span class=\"cngx-accordion-item__chevron-slot\" aria-hidden=\"true\">\n @if (iconTemplate(); as icon) {\n <ng-container\n [ngTemplateOutlet]=\"icon\"\n [ngTemplateOutletContext]=\"{ $implicit: expanded() }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__chevron\"></span>\n }\n </span>\n </button>\n <span class=\"cngx-accordion-item__meta\">\n <ng-content select=\"[cngxAccordionItemMeta]\" />\n </span>\n</div>\n\n<span\n [id]=\"reasonId\"\n class=\"cngx-visually-hidden\"\n [attr.aria-hidden]=\"disabled() && resolvedDisabledReason() ? null : 'true'\"\n>\n @if (disabled()) {\n {{ resolvedDisabledReason() }}\n }\n</span>\n\n<div\n role=\"region\"\n class=\"cngx-accordion-item__region\"\n [id]=\"regionId\"\n [attr.aria-labelledby]=\"titleId\"\n [attr.aria-busy]=\"busy() ? 'true' : null\"\n [hidden]=\"regionHidden()\"\n>\n @switch (status()) {\n @case ('error') {\n <div class=\"cngx-accordion-item__error\" role=\"alert\">\n @if (errorTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'error', message: resolvedErrorMessage() }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__error-default\">{{ resolvedErrorMessage() }}</span>\n }\n </div>\n }\n @case ('loading') {\n <div class=\"cngx-accordion-item__busy\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'loading', message: '' }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__skeleton\"></span>\n }\n </div>\n }\n @default {\n @if (contentSlot(); as content) {\n @if (hasOpened()) {\n <ng-container [ngTemplateOutlet]=\"content.templateRef\" />\n }\n } @else {\n <ng-content />\n }\n @if (status() === 'refreshing') {\n <div class=\"cngx-accordion-item__refreshing\" aria-hidden=\"true\">\n @if (busyTemplate(); as tpl) {\n <ng-container\n [ngTemplateOutlet]=\"tpl\"\n [ngTemplateOutletContext]=\"{ $implicit: 'refreshing', message: '' }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__refresh-indicator\"></span>\n }\n </div>\n }\n }\n }\n</div>\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-title marker for a {@link CngxAccordionItem}. Put it on the element\n * that names the section; the item projects it into the header button via\n * `<ng-content select=\"[cngxAccordionItemTitle]\">`, so the title becomes the\n * header's accessible name.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Billing</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-title.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem\n */\n@Directive({\n selector: '[cngxAccordionItemTitle]',\n exportAs: 'cngxAccordionItemTitle',\n standalone: true,\n})\nexport class CngxAccordionItemTitle {}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected-leading marker for a {@link CngxAccordionItem}. Put it on the\n * decorative cell that opens the heading row - an index number, an icon tile, a\n * category tag, a timeline rail-node, a severity spine. The item renders it as a\n * sibling of the header button (not inside it) and wraps it `aria-hidden`, since\n * leading content is presentational: it never names the section and must not\n * leak into the button's accessible name.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemLeading>01</span>\n * <span cngxAccordionItemTitle>Overview</span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-leading.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemMeta\n */\n@Directive({\n selector: '[cngxAccordionItemLeading]',\n exportAs: 'cngxAccordionItemLeading',\n standalone: true,\n})\nexport class CngxAccordionItemLeading {}\n","import { Directive } from '@angular/core';\n\n/**\n * Projected trailing-meta marker for a {@link CngxAccordionItem}. Put it on the\n * facts that trail the title - a timestamp, a status badge, an SLA chip, an\n * amount. The item renders it as a sibling of the header button (not inside it),\n * so interactive meta content (a link, a remove-button) stays valid HTML instead\n * of nesting a control inside a button. Meta is real content, not `aria-hidden`:\n * it is excluded from the button's accessible name only by the name-pin to the\n * title, so screen-reader users still reach it in reading order.\n *\n * ```html\n * <cngx-accordion-item>\n * <span cngxAccordionItemTitle>Deployment</span>\n * <span cngxAccordionItemMeta><cngx-badge>Failed</cngx-badge></span>\n * Body…\n * </cngx-accordion-item>\n * ```\n *\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/accordion/accordion-item-meta.directive.ts\n * @since 0.3.0\n * @relatedTo CngxAccordionItem, CngxAccordionItemLeading\n */\n@Directive({\n selector: '[cngxAccordionItemMeta]',\n exportAs: 'cngxAccordionItemMeta',\n standalone: true,\n})\nexport class CngxAccordionItemMeta {}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n type Signal,\n} from '@angular/core';\n\nimport type { CngxAccordionConfig, CngxAccordionSkin } from './accordion.config';\nimport { CNGX_ACCORDION_CONFIG, CNGX_ACCORDION_DEFAULTS } from './accordion.config.defaults';\n\n/**\n * Discriminated-union shape returned by `withAccordionLabels` /\n * `withDefaultHeadingLevel`. The reducer in `provideAccordionConfig` /\n * `provideAccordionConfigAt` matches on `kind` and writes `payload` onto the\n * corresponding config key. Mirrors `CngxBreadcrumbConfigFeature` from\n * `@cngx/ui/breadcrumb` so the consumer's mental model is one across feature\n * areas.\n *\n * @since 0.3.0\n */\nexport type CngxAccordionConfigFeature =\n | {\n readonly kind: 'labels';\n readonly payload: {\n readonly disabledReason?: string | Signal<string>;\n readonly errorMessage?: string | Signal<string>;\n };\n }\n | { readonly kind: 'headingLevel'; readonly payload: { readonly headingLevel: number } }\n | { readonly kind: 'skin'; readonly payload: { readonly skin: CngxAccordionSkin } }\n | { readonly kind: 'templates'; readonly payload: NonNullable<CngxAccordionConfig['templates']> };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins per\n * key. `templates` is spread-merged so partial template overrides compose.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxAccordionConfigFeature[],\n): Partial<CngxAccordionConfig> {\n const out: {\n disabledReason?: string | Signal<string>;\n errorMessage?: string | Signal<string>;\n headingLevel?: number;\n skin?: CngxAccordionSkin;\n templates?: NonNullable<CngxAccordionConfig['templates']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'labels':\n if (f.payload.disabledReason !== undefined) {\n out.disabledReason = f.payload.disabledReason;\n }\n if (f.payload.errorMessage !== undefined) {\n out.errorMessage = f.payload.errorMessage;\n }\n break;\n case 'headingLevel':\n out.headingLevel = f.payload.headingLevel;\n break;\n case 'skin':\n out.skin = f.payload.skin;\n break;\n case 'templates':\n out.templates = { ...out.templates, ...f.payload };\n break;\n }\n }\n return out;\n}\n\n/**\n * Merges a partial config onto a base. Every key `reduceFeatures` set wins\n * (it never sets one to `undefined`), a copy key `Signal` passes through as a\n * value; `templates` is a one-level spread so a partial that sets only some\n * template keys keeps the base's other keys.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxAccordionConfig,\n partial: Partial<CngxAccordionConfig>,\n): CngxAccordionConfig {\n return {\n ...base,\n ...partial,\n templates: { ...base.templates, ...partial.templates },\n };\n}\n\n/**\n * Application-root configuration cascade for the accordion. Pass any\n * combination of `withAccordionLabels` / `withDefaultHeadingLevel` features in\n * `bootstrapApplication`'s providers array.\n *\n * Resolution priority (high -> low):\n * 1. Per-instance Input binding.\n * 2. `provideAccordionConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideAccordionConfig(...)` at the application root.\n * 4. Library defaults (`CNGX_ACCORDION_DEFAULTS`).\n *\n * The provider merges supplied features with the library defaults so consumers\n * only declare keys they want to override.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideAccordionConfig(\n * withAccordionLabels({ disabledReason: 'Dieser Abschnitt ist gesperrt.' }),\n * withDefaultHeadingLevel(2),\n * withAccordionSkin('categorized'),\n * ),\n * ],\n * });\n * ```\n *\n * @since 0.3.0\n */\nexport function provideAccordionConfig(\n ...features: CngxAccordionConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_ACCORDION_DEFAULTS reference flows through untouched. A fresh merge\n // would allocate identical content under a new reference and bust downstream\n // identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_ACCORDION_CONFIG,\n useValue: mergeConfig(CNGX_ACCORDION_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the accordion. Pass any\n * combination of feature factories in a parent component's `viewProviders`\n * array.\n *\n * Unlike `provideAccordionConfig` (root-only), `provideAccordionConfigAt`\n * injects the parent injector's `CNGX_ACCORDION_CONFIG` value (resolves through\n * the priority chain - root provider, library defaults, or another\n * `provideAccordionConfigAt` further up) and merges the supplied features on\n * top. Descendant accordion instances see the merged config; sibling sub-trees\n * keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [\n * provideAccordionConfigAt(withAccordionLabels({ disabledReason: 'Locked.' })),\n * ],\n * template: '<cngx-accordion-group>...</cngx-accordion-group>',\n * })\n * class Section {}\n * ```\n *\n * @since 0.3.0\n */\nexport function provideAccordionConfigAt(\n ...features: CngxAccordionConfigFeature[]\n): Provider[] {\n // Empty-features call: parent value flows through untouched. Skipping the\n // factory preserves reference identity through the sub-tree.\n if (features.length === 0) {\n return [];\n }\n const partial = reduceFeatures(features);\n return [\n {\n provide: CNGX_ACCORDION_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_ACCORDION_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { Signal } from '@angular/core';\n\nimport type { CngxAccordionConfig, CngxAccordionSkin } from './accordion.config';\nimport type { CngxAccordionConfigFeature } from './provide-accordion-config';\n\n/**\n * Override the accordion's locale-sensitive announced strings - `disabledReason`\n * (spoken when an item is disabled) and `errorMessage` (spoken via `role=\"alert\"`\n * when an item's `[state]` is error and no error slot is given). Pass either or\n * both. Per-instance `[disabledReason]` / `[errorMessage]` still win over the\n * cascade; this only sets the fallback. Pass a `Signal` for either string to\n * switch the language at runtime.\n *\n * ```ts\n * provideAccordionConfig(\n * withAccordionLabels({\n * disabledReason: 'This section is locked.',\n * errorMessage: 'This section failed to load.',\n * }),\n * );\n * ```\n *\n * @since 0.3.0\n */\nexport function withAccordionLabels(payload: {\n disabledReason?: string | Signal<string>;\n errorMessage?: string | Signal<string>;\n}): CngxAccordionConfigFeature {\n return { kind: 'labels', payload };\n}\n\n/**\n * Override the default heading level (`aria-level`) a `CngxAccordionGroup`\n * applies when `[headingLevel]` is not bound. Per-instance `[headingLevel]`\n * still wins; the group clamps the resolved value into the ARIA 2-6 range.\n *\n * ```ts\n * provideAccordionConfig(withDefaultHeadingLevel(2));\n * ```\n *\n * @since 0.3.0\n */\nexport function withDefaultHeadingLevel(headingLevel: number): CngxAccordionConfigFeature {\n return { kind: 'headingLevel', payload: { headingLevel } };\n}\n\n/**\n * Set the app-wide default visual skin for `<cngx-accordion-group>`. Unset by\n * default (the base flat look). Per-instance `[skin]` Input still wins; this\n * moves the cascade default. Structure, slots, ARIA, and keyboard behaviour are\n * identical across skins - only the `[data-skin]` host attribute changes the\n * CSS. Typed class-sugar, not a mode flag.\n *\n * ```ts\n * provideAccordionConfig(withAccordionSkin('categorized'));\n * ```\n *\n * @since 0.3.0\n */\nexport function withAccordionSkin(skin: CngxAccordionSkin): CngxAccordionConfigFeature {\n return { kind: 'skin', payload: { skin } };\n}\n\n/**\n * Set app-wide slot templates - the config tier of the slot cascade\n * (`*cngxAccordionItemXxx` per-instance -> this -> CSS default). Three slots\n * carry a config tier: `icon` (chevron; `$implicit` is the item's expanded\n * state), `busySpinner` (loading/refreshing visual), and `error` (error\n * affordance). Hand a `TemplateRef` per key here and every item renders it\n * unless a per-instance slot overrides it. Partial payloads compose - repeated\n * calls merge per key.\n *\n * ```ts\n * provideAccordionConfig(\n * withAccordionTemplates({ icon: myChevronTpl, busySpinner: mySpinnerTpl }),\n * );\n * ```\n *\n * @since 0.3.0\n */\nexport function withAccordionTemplates(\n payload: NonNullable<CngxAccordionConfig['templates']>,\n): CngxAccordionConfigFeature {\n return { kind: 'templates', payload };\n}\n","/**\n * @module `@cngx/ui/accordion`\n */\nexport { CngxAccordionGroup } from './accordion-group.component';\nexport { CNGX_ACCORDION_GROUP, type CngxAccordionGroupContext } from './accordion-group.token';\nexport { CngxAccordionItem } from './accordion-item.component';\nexport { CngxAccordionItemTitle } from './accordion-item-title.directive';\nexport { CngxAccordionItemSubtitle } from './accordion-item-subtitle.directive';\nexport { CngxAccordionItemLeading } from './accordion-item-leading.directive';\nexport { CngxAccordionItemMeta } from './accordion-item-meta.directive';\nexport { CngxAccordionItemContent } from './accordion-item-content.directive';\nexport { CngxAccordionItemBusy } from './accordion-item-busy.directive';\nexport { CngxAccordionItemError } from './accordion-item-error.directive';\nexport type { CngxAccordionItemStateContext } from './accordion-item-state-context';\nexport {\n CngxAccordionItemIcon,\n type CngxAccordionItemIconContext,\n} from './accordion-item-icon.directive';\nexport type {\n CngxAccordionConfig,\n CngxAccordionSeverity,\n CngxAccordionSkin,\n} from './config/accordion.config';\nexport { CNGX_ACCORDION_CONFIG } from './config/accordion.config.defaults';\nexport {\n provideAccordionConfig,\n provideAccordionConfigAt,\n type CngxAccordionConfigFeature,\n} from './config/provide-accordion-config';\nexport {\n withAccordionLabels,\n withDefaultHeadingLevel,\n withAccordionSkin,\n withAccordionTemplates,\n} from './config/features';\nexport { injectAccordionConfig, injectAccordionLabels } from './config/inject-accordion-config';\nexport {\n CNGX_ACCORDION_LANGUAGE_EN,\n type CngxAccordionLanguageSection,\n} from './i18n/accordion-language-section';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAkBA;;;;;;;AAOG;MACU,oBAAoB,GAAG,IAAI,cAAc,CACpD,sBAAsB;;ACXxB;;;;;;AAMG;AACI,MAAM,0BAA0B,GAAiC;AACtE,IAAA,cAAc,EAAE,wCAAwC;AACxD,IAAA,YAAY,EAAE,mCAAmC;;;ACrBnD;;;AAGG;AACI,MAAM,uBAAuB,GAAG,qBAAqB,CAC1D,WAAW,EACX,0BAA0B,CAC3B;;ACPD;;;;;;;;;;;;AAYG;AACI,MAAM,uBAAuB,GAAwB;AAC1D,IAAA,YAAY,EAAE,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;AAkBG;MACU,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,uBAAuB;AACvC,CAAA;;ACpCH;;;;;;;;;;;;;AAaG;SACa,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,qBAAqB,CAAC;AACtC;AAEA,MAAM,OAAO,GAAG,CAAI,MAAqB,MAAS,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;AAEvF,MAAM,WAAW,GAAG,IAAI,OAAO,EAG5B;AAEH;;;;;AAKG;AACH,SAAS,mBAAmB,CAC1B,M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