@cngx/ui 0.1.0-rc.3 → 0.1.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/accordion/README.md +86 -0
  2. package/collection/README.md +167 -0
  3. package/data-grid-accordion/README.md +137 -0
  4. package/fesm2022/cngx-ui-accordion.mjs +853 -0
  5. package/fesm2022/cngx-ui-accordion.mjs.map +1 -0
  6. package/fesm2022/cngx-ui-action-button.mjs +2 -2
  7. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  8. package/fesm2022/cngx-ui-breadcrumb.mjs +1044 -0
  9. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -0
  10. package/fesm2022/cngx-ui-collection.mjs +645 -0
  11. package/fesm2022/cngx-ui-collection.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-data-grid-accordion.mjs +1135 -0
  13. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -0
  14. package/fesm2022/cngx-ui-empty-state.mjs +2 -2
  15. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-feedback.mjs +10 -10
  17. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-mat-accordion.mjs +229 -0
  19. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-paginator.mjs +324 -255
  21. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-sidenav.mjs +547 -65
  23. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-tabs.mjs +6 -6
  25. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  26. package/fesm2022/cngx-ui.mjs +1 -1
  27. package/mat-accordion/README.md +48 -0
  28. package/package.json +21 -1
  29. package/paginator/README.md +9 -6
  30. package/sidenav/README.md +89 -3
  31. package/types/cngx-ui-accordion.d.ts +801 -0
  32. package/types/cngx-ui-breadcrumb.d.ts +890 -0
  33. package/types/cngx-ui-collection.d.ts +396 -0
  34. package/types/cngx-ui-data-grid-accordion.d.ts +912 -0
  35. package/types/cngx-ui-mat-accordion.d.ts +63 -0
  36. package/types/cngx-ui-paginator.d.ts +258 -146
  37. package/types/cngx-ui-sidenav.d.ts +429 -21
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cngx-ui-accordion.mjs","sources":["../../../projects/ui/accordion/accordion-group.token.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","import { InjectionToken } from '@angular/core';\n\nimport type { CngxAccordionConfig } from './accordion.config';\n\n/**\n * Library defaults for the accordion configuration cascade. English by default\n * per `feedback_en_default_locale`; locale overrides ride the\n * `withAccordionLabels` feature. The `disabledReason` string is byte-identical\n * to the per-instance input default the item shipped before the cascade, so an\n * un-configured consumer sees no change.\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 disabledReason: 'This section is currently unavailable.',\n errorMessage: 'This section could not be loaded.',\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>('CNGX_ACCORDION_CONFIG', {\n providedIn: 'root',\n factory: () => CNGX_ACCORDION_DEFAULTS,\n});\n","import { inject } from '@angular/core';\n\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 * ```ts\n * export class CngxAccordionItem {\n * private readonly config = injectAccordionConfig();\n * readonly disabledReason = input<string>(this.config.disabledReason);\n * }\n * ```\n *\n * @category ui/accordion\n * @since 0.1.0\n */\nexport function injectAccordionConfig(): CngxAccordionConfig {\n return inject(CNGX_ACCORDION_CONFIG);\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 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 } 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 *\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 // Config cascade source. Declared first so the disabledReason input default\n // below can read the resolved value (field initialisers run top-to-bottom).\n private readonly config = injectAccordionConfig();\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 falls back to the app-wide config (English out of the box, overridden\n * via `withAccordionLabels`).\n */\n readonly disabledReason = input<string>(this.config.disabledReason);\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.\n */\n readonly errorMessage = input<string>(this.config.errorMessage);\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 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 IDREFs are always present in the DOM - the\n * subtitle span toggles `aria-hidden` by presence, the reason span toggles by\n * `disabled()`. Constant string: the ids never change, so no `computed()`.\n */\n protected readonly describedBy = `${this.subtitleId} ${this.reasonId}`;\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 /** 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(\n () => !this.expanded() && this.status() !== 'error',\n );\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 [id]=\"reasonId\" class=\"cngx-visually-hidden\" [attr.aria-hidden]=\"!disabled()\">\n @if (disabled()) {\n {{ disabledReason() }}\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: errorMessage() }\"\n />\n } @else {\n <span class=\"cngx-accordion-item__error-default\">{{ errorMessage() }}</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} 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: { readonly disabledReason?: string; readonly errorMessage?: string };\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;\n errorMessage?: 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. Scalars take the partial when present;\n * `templates` is a one-level spread so a partial that sets only some template\n * 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 disabledReason: partial.disabledReason ?? base.disabledReason,\n errorMessage: partial.errorMessage ?? base.errorMessage,\n headingLevel: partial.headingLevel ?? base.headingLevel,\n skin: partial.skin ?? base.skin,\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 { 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.\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;\n errorMessage?: 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 {\n CNGX_ACCORDION_GROUP,\n type CngxAccordionGroupContext,\n} 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 } from './config/inject-accordion-config';\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;;ACzBxB;;;;;;;;;;;;;;AAcG;AACI,MAAM,uBAAuB,GAAwB;AAC1D,IAAA,cAAc,EAAE,wCAAwC;AACxD,IAAA,YAAY,EAAE,mCAAmC;AACjD,IAAA,YAAY,EAAE,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;AAmBG;MACU,qBAAqB,GAAG,IAAI,cAAc,CAAsB,uBAAuB,EAAE;AACpG,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,uBAAuB;AACvC,CAAA;;AC3CD;;;;;;;;;;;;;;;;;AAiBG;SACa,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,qBAAqB,CAAC;AACtC;;ACVA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;MAoBU,kBAAkB,CAAA;;;IAGZ,MAAM,GAAG,qBAAqB,EAAE;AAEjD;;;;;;;;;AASG;AACM,IAAA,YAAY,GAAG,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,E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ngxActionButton {
251
251
  <span aria-live="polite" aria-atomic="true" class="cngx-action-button__sr-only">{{
252
252
  btn.announcement()
253
253
  }}</span>
254
- `, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-action-btn-transition{syntax: \"*\"; inherits: false; initial-value: .2s ease;}@property --cngx-action-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-action-btn-padding{syntax: \"*\"; inherits: false; initial-value: 8px 16px;}@property --cngx-action-btn-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.87 0 0);}@property --cngx-action-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-action-btn-succeeded-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .04 145);}@property --cngx-action-btn-succeeded-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-succeeded-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-failed-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .025 25);}@property --cngx-action-btn-failed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-failed-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-ghost-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .04);}@property --cngx-action-btn-primary-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-primary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-action-btn-secondary-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-secondary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-secondary-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .005 290);}@property --cngx-action-btn-ghost-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.34 .005 290);}}@layer cngx.components{.cngx-action-button{cursor:pointer;border:1px solid var(--cngx-action-btn-border, var(--cngx-color-border, oklch(.87 0 0)));border-radius:var(--cngx-action-btn-radius, 6px);padding:var(--cngx-action-btn-padding, 8px 16px);font:inherit;background:var(--cngx-action-btn-bg, transparent);color:inherit;transition:background-color var(--cngx-action-btn-transition, .2s ease),color var(--cngx-action-btn-transition, .2s ease),border-color var(--cngx-action-btn-transition, .2s ease),opacity var(--cngx-action-btn-transition, .2s ease)}.cngx-action-button--primary{background:var(--cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)));color:var(--cngx-action-btn-primary-color, oklch(1 0 0));border-color:var( --cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)) )}.cngx-action-button--secondary{background:var(--cngx-action-btn-secondary-bg, transparent);color:var(--cngx-action-btn-secondary-color, var(--cngx-color-primary, oklch(.55 .15 250)));border-color:var( --cngx-action-btn-secondary-border, var(--cngx-color-border, oklch(.55 .005 290)) )}.cngx-action-button--ghost{background:transparent;color:var(--cngx-action-btn-ghost-color, var(--cngx-color-text, oklch(.34 .005 290)));border-color:transparent}.cngx-action-button--ghost:hover{background:var(--cngx-action-btn-ghost-hover-bg, oklch(0 0 0 / .04))}.cngx-action-button__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxAsyncClick, selector: "[cngxAsyncClick]", inputs: ["cngxAsyncClick", "feedbackDuration", "enabled", "succeededAnnouncement", "failedAnnouncement"], exportAs: ["cngxAsyncClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
254
+ `, isInline: true, styles: ["@layer cngx.tokens{@property --cngx-action-btn-transition{syntax: \"*\"; inherits: false; initial-value: .2s ease;}@property --cngx-action-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-action-btn-padding{syntax: \"*\"; inherits: false; initial-value: 8px 16px;}@property --cngx-action-btn-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.87 0 0);}@property --cngx-action-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-action-btn-succeeded-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .04 145);}@property --cngx-action-btn-succeeded-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-succeeded-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-failed-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .025 25);}@property --cngx-action-btn-failed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-failed-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-ghost-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .04);}@property --cngx-action-btn-primary-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-primary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-action-btn-secondary-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-secondary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-secondary-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .005 290);}@property --cngx-action-btn-ghost-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.34 .005 290);}}@layer cngx.components{.cngx-action-button{--cngx-action-btn-padding: var(--cngx-space-sm) var(--cngx-space-md);cursor:pointer;border:1px solid var(--cngx-action-btn-border, var(--cngx-color-border, oklch(.87 0 0)));border-radius:var(--cngx-action-btn-radius, 6px);padding:var(--cngx-action-btn-padding, 8px 16px);font:inherit;background:var(--cngx-action-btn-bg, transparent);color:inherit;transition:background-color var(--cngx-action-btn-transition, .2s ease),color var(--cngx-action-btn-transition, .2s ease),border-color var(--cngx-action-btn-transition, .2s ease),opacity var(--cngx-action-btn-transition, .2s ease)}.cngx-action-button--primary{background:var(--cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)));color:var(--cngx-action-btn-primary-color, oklch(1 0 0));border-color:var( --cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)) )}.cngx-action-button--secondary{background:var(--cngx-action-btn-secondary-bg, transparent);color:var(--cngx-action-btn-secondary-color, var(--cngx-color-primary, oklch(.55 .15 250)));border-color:var( --cngx-action-btn-secondary-border, var(--cngx-color-border, oklch(.55 .005 290)) )}.cngx-action-button--ghost{background:transparent;color:var(--cngx-action-btn-ghost-color, var(--cngx-color-text, oklch(.34 .005 290)));border-color:transparent}.cngx-action-button--ghost:hover{background:var(--cngx-action-btn-ghost-hover-bg, oklch(0 0 0 / .04))}.cngx-action-button__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: CngxAsyncClick, selector: "[cngxAsyncClick]", inputs: ["cngxAsyncClick", "feedbackDuration", "enabled", "succeededAnnouncement", "failedAnnouncement"], exportAs: ["cngxAsyncClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
255
255
  }
256
256
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxActionButton, decorators: [{
257
257
  type: Component,
@@ -308,7 +308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
308
308
  <span aria-live="polite" aria-atomic="true" class="cngx-action-button__sr-only">{{
309
309
  btn.announcement()
310
310
  }}</span>
311
- `, styles: ["@layer cngx.tokens{@property --cngx-action-btn-transition{syntax: \"*\"; inherits: false; initial-value: .2s ease;}@property --cngx-action-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-action-btn-padding{syntax: \"*\"; inherits: false; initial-value: 8px 16px;}@property --cngx-action-btn-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.87 0 0);}@property --cngx-action-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-action-btn-succeeded-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .04 145);}@property --cngx-action-btn-succeeded-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-succeeded-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-failed-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .025 25);}@property --cngx-action-btn-failed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-failed-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-ghost-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .04);}@property --cngx-action-btn-primary-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-primary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-action-btn-secondary-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-secondary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-secondary-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .005 290);}@property --cngx-action-btn-ghost-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.34 .005 290);}}@layer cngx.components{.cngx-action-button{cursor:pointer;border:1px solid var(--cngx-action-btn-border, var(--cngx-color-border, oklch(.87 0 0)));border-radius:var(--cngx-action-btn-radius, 6px);padding:var(--cngx-action-btn-padding, 8px 16px);font:inherit;background:var(--cngx-action-btn-bg, transparent);color:inherit;transition:background-color var(--cngx-action-btn-transition, .2s ease),color var(--cngx-action-btn-transition, .2s ease),border-color var(--cngx-action-btn-transition, .2s ease),opacity var(--cngx-action-btn-transition, .2s ease)}.cngx-action-button--primary{background:var(--cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)));color:var(--cngx-action-btn-primary-color, oklch(1 0 0));border-color:var( --cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)) )}.cngx-action-button--secondary{background:var(--cngx-action-btn-secondary-bg, transparent);color:var(--cngx-action-btn-secondary-color, var(--cngx-color-primary, oklch(.55 .15 250)));border-color:var( --cngx-action-btn-secondary-border, var(--cngx-color-border, oklch(.55 .005 290)) )}.cngx-action-button--ghost{background:transparent;color:var(--cngx-action-btn-ghost-color, var(--cngx-color-text, oklch(.34 .005 290)));border-color:transparent}.cngx-action-button--ghost:hover{background:var(--cngx-action-btn-ghost-hover-bg, oklch(0 0 0 / .04))}.cngx-action-button__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
311
+ `, styles: ["@layer cngx.tokens{@property --cngx-action-btn-transition{syntax: \"*\"; inherits: false; initial-value: .2s ease;}@property --cngx-action-btn-radius{syntax: \"<length>\"; inherits: false; initial-value: 6px;}@property --cngx-action-btn-padding{syntax: \"*\"; inherits: false; initial-value: 8px 16px;}@property --cngx-action-btn-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.87 0 0);}@property --cngx-action-btn-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-pending-opacity{syntax: \"<number>\"; inherits: false; initial-value: .7;}@property --cngx-action-btn-succeeded-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .04 145);}@property --cngx-action-btn-succeeded-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-succeeded-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.5 .15 145);}@property --cngx-action-btn-failed-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.95 .025 25);}@property --cngx-action-btn-failed-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-failed-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.45 .15 25);}@property --cngx-action-btn-ghost-hover-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(0 0 0 / .04);}@property --cngx-action-btn-primary-bg{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-primary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(1 0 0);}@property --cngx-action-btn-secondary-bg{syntax: \"<color>\"; inherits: false; initial-value: transparent;}@property --cngx-action-btn-secondary-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.55 .15 250);}@property --cngx-action-btn-secondary-border{syntax: \"<color>\"; inherits: false; initial-value: oklch(.55 .005 290);}@property --cngx-action-btn-ghost-color{syntax: \"<color>\"; inherits: true; initial-value: oklch(.34 .005 290);}}@layer cngx.components{.cngx-action-button{--cngx-action-btn-padding: var(--cngx-space-sm) var(--cngx-space-md);cursor:pointer;border:1px solid var(--cngx-action-btn-border, var(--cngx-color-border, oklch(.87 0 0)));border-radius:var(--cngx-action-btn-radius, 6px);padding:var(--cngx-action-btn-padding, 8px 16px);font:inherit;background:var(--cngx-action-btn-bg, transparent);color:inherit;transition:background-color var(--cngx-action-btn-transition, .2s ease),color var(--cngx-action-btn-transition, .2s ease),border-color var(--cngx-action-btn-transition, .2s ease),opacity var(--cngx-action-btn-transition, .2s ease)}.cngx-action-button--primary{background:var(--cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)));color:var(--cngx-action-btn-primary-color, oklch(1 0 0));border-color:var( --cngx-action-btn-primary-bg, var(--cngx-color-primary, oklch(.55 .15 250)) )}.cngx-action-button--secondary{background:var(--cngx-action-btn-secondary-bg, transparent);color:var(--cngx-action-btn-secondary-color, var(--cngx-color-primary, oklch(.55 .15 250)));border-color:var( --cngx-action-btn-secondary-border, var(--cngx-color-border, oklch(.55 .005 290)) )}.cngx-action-button--ghost{background:transparent;color:var(--cngx-action-btn-ghost-color, var(--cngx-color-text, oklch(.34 .005 290)));border-color:transparent}.cngx-action-button--ghost:hover{background:var(--cngx-action-btn-ghost-hover-bg, oklch(0 0 0 / .04))}.cngx-action-button__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}}\n"] }]
312
312
  }], ctorParameters: () => [], propDecorators: { action: [{ type: i0.Input, args: [{ isSignal: true, alias: "action", required: true }] }], feedbackDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "feedbackDuration", required: false }] }], enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "enabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], succeededAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "succeededAnnouncement", required: false }] }], failedAnnouncement: [{ type: i0.Input, args: [{ isSignal: true, alias: "failedAnnouncement", required: false }] }], pendingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "pendingLabel", required: false }] }], succeededLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "succeededLabel", required: false }] }], failedLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "failedLabel", required: false }] }], externalState: [{ type: i0.Input, args: [{ isSignal: true, alias: "externalState", required: false }] }], toastSuccess: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastSuccess", required: false }] }], toastError: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastError", required: false }] }], toastErrorDetail: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastErrorDetail", required: false }] }], toastSuccessDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastSuccessDuration", required: false }] }], toastErrorDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "toastErrorDuration", required: false }] }], asyncClick: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CngxAsyncClick), { isSignal: true }] }], pendingTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxPending), { isSignal: true }] }], succeededTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxSucceeded), { isSignal: true }] }], failedTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CngxFailed), { isSignal: true }] }] } });
313
313
 
314
314
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"cngx-ui-action-button.mjs","sources":["../../../projects/ui/action-button/action-button.ts","../../../projects/ui/action-button/public-api.ts","../../../projects/ui/action-button/cngx-ui-action-button.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n CngxAsyncClick,\n CngxFailed,\n CngxPending,\n CngxSucceeded,\n reflectAsyncDisplayStatus,\n type AsyncAction,\n} from '@cngx/common/interactive';\nimport {\n buildAsyncStateView,\n createTransitionTracker,\n type CngxAsyncState,\n} from '@cngx/core/utils';\nimport { CngxToastOn, CngxToaster } from '@cngx/ui/feedback';\n\n/**\n * Visual variant for the action button - maps to a CSS class.\n *\n * @category ui/action-button\n */\nexport type ActionButtonVariant = 'primary' | 'secondary' | 'ghost';\n\n/**\n * Action button organism with built-in status communication.\n *\n * Coordinates between the `CngxAsyncClick` atom (mechanism, ARIA, lifecycle)\n * and the consumer (intent, styling, labels). Provides template projection\n * for pending/succeeded/failed states and an `aria-live` region for screen\n * reader announcements.\n *\n * Uses `display: contents` - the host produces no DOM box. The inner `<button>`\n * carries the `[cngxAsyncClick]` directive directly.\n *\n * For full control, use `[cngxAsyncClick]` directly on any element instead.\n *\n * ### Minimal (covers 80% of cases)\n * ```html\n * <cngx-action-button [action]=\"save\">Save</cngx-action-button>\n * ```\n *\n * ### With string labels\n * ```html\n * <cngx-action-button [action]=\"save\"\n * pendingLabel=\"Saving...\" succeededLabel=\"Saved!\" failedLabel=\"Failed\">\n * Save\n * </cngx-action-button>\n * ```\n *\n * ### With template slots\n * ```html\n * <cngx-action-button [action]=\"save\">\n * Save Draft\n * <ng-template cngxPending><mat-spinner diameter=\"18\" /> Saving...</ng-template>\n * <ng-template cngxSucceeded>Saved!</ng-template>\n * <ng-template cngxFailed let-err>{{ err }} - retry?</ng-template>\n * </cngx-action-button>\n * ```\n *\n * ### With toast feedback\n * ```html\n * <cngx-action-button [action]=\"save\" toastSuccess=\"Saved\" toastError=\"Save failed\">\n * Save\n * </cngx-action-button>\n * ```\n *\n * @category ui/action-button\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/action-button/action-button.ts\n * @since 0.1.0\n * @relatedTo CngxAsyncClick, CngxPending, CngxSucceeded, CngxFailed, CngxToaster\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>\n */\n@Component({\n selector: 'cngx-action-button',\n standalone: true,\n imports: [NgTemplateOutlet, CngxAsyncClick],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxActionButton',\n host: {\n style: 'display: contents',\n },\n template: `\n <ng-template #idle><ng-content /></ng-template>\n\n <button\n [type]=\"type()\"\n [cngxAsyncClick]=\"action()\"\n #btn=\"cngxAsyncClick\"\n [feedbackDuration]=\"feedbackDuration()\"\n [enabled]=\"enabled()\"\n [succeededAnnouncement]=\"succeededAnnouncement() ?? succeededLabel() ?? 'Action succeeded'\"\n [failedAnnouncement]=\"failedAnnouncement() ?? failedLabel() ?? 'Action failed'\"\n [class]=\"'cngx-action-button cngx-action-button--' + variant()\"\n >\n @switch (effectiveStatus()) {\n @case ('pending') {\n @if (pendingTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef\" />\n } @else if (pendingLabel()) {\n {{ pendingLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @case ('success') {\n @if (succeededTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef\" />\n } @else if (succeededLabel()) {\n {{ succeededLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @case ('error') {\n @if (failedTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl.templateRef; context: { $implicit: effectiveError() }\"\n />\n } @else if (failedLabel()) {\n {{ failedLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @default {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n </button>\n <span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-action-button__sr-only\">{{\n btn.announcement()\n }}</span>\n `,\n styleUrls: ['./action-button.css'],\n})\nexport class CngxActionButton {\n private readonly toaster = inject(CngxToaster, { optional: true });\n private readonly externalToastOn = inject(CngxToastOn, { self: true, optional: true });\n\n /** The async action to execute on click. */\n readonly action = input.required<AsyncAction>();\n\n /** Duration in ms to show success/error feedback. Passed through to `cngxAsyncClick`. */\n readonly feedbackDuration = input<number>(2000);\n\n /** When `false`, clicks are ignored. Passed through to `cngxAsyncClick`. */\n readonly enabled = input<boolean>(true);\n\n /** Button type attribute. Defaults to `'button'` to prevent accidental form submits. */\n readonly type = input<'button' | 'submit' | 'reset'>('button');\n\n /** Visual variant - sets CSS class `cngx-action-button--{variant}`. */\n readonly variant = input<ActionButtonVariant>('primary');\n\n /** SR announcement on success. Falls back to `succeededLabel`, then `'Action succeeded'`. */\n readonly succeededAnnouncement = input<string | undefined>(undefined);\n\n /** SR announcement on failure. Falls back to `failedLabel`, then `'Action failed'`. */\n readonly failedAnnouncement = input<string | undefined>(undefined);\n\n /** Fallback text while pending (when no `cngxPending` template is projected). */\n readonly pendingLabel = input<string | undefined>(undefined);\n\n /** Fallback text after success (when no `cngxSucceeded` template is projected). */\n readonly succeededLabel = input<string | undefined>(undefined);\n\n /** Fallback text after failure (when no `cngxFailed` template is projected). */\n readonly failedLabel = input<string | undefined>(undefined);\n\n /**\n * Bind an external async state to derive visual status from.\n * When set, the button's status display follows `externalState.status()`.\n */\n readonly externalState = input<CngxAsyncState<unknown> | undefined>(undefined);\n\n /**\n * Toast message on success. Requires `CngxToaster` (via `provideFeedback(withToasts())`\n * or `provideToasts()`). Silently ignored when toaster is not provided.\n *\n * `toastSuccessDuration` should be >= `feedbackDuration` to avoid rapid re-fire\n * on repeated clicks that floods the SR announcement queue.\n */\n readonly toastSuccess = input<string | undefined>(undefined);\n\n /** Toast message on error. */\n readonly toastError = input<string | undefined>(undefined);\n\n /** Include the error detail message in the error toast body. */\n readonly toastErrorDetail = input<boolean>(false);\n\n /** Duration for success toasts in ms. */\n readonly toastSuccessDuration = input<number>(3000);\n\n /** Duration for error toasts - `'persistent'` means manual dismiss only. */\n readonly toastErrorDuration = input<number | 'persistent'>('persistent');\n\n /** @internal - inner CngxAsyncClick directive instance. Non-required to allow safe pre-view-init reads. */\n private readonly asyncClick = viewChild(CngxAsyncClick);\n\n /**\n * @internal - effective status: reflects external `[externalState]` if\n * bound (through the shared `CngxAsyncStatus` reflection - one home for\n * the state→display-bucket mapping), otherwise reads the inner\n * `CngxAsyncClick` directive.\n */\n protected readonly effectiveStatus = computed(() => {\n const ext = this.externalState();\n if (ext) {\n return reflectAsyncDisplayStatus(ext);\n }\n // Guard against pre-view-init reads of `state` from consumers.\n const click = this.asyncClick();\n return click ? click.status() : ('idle' as const);\n });\n\n /** @internal - effective error value from external state or inner directive. */\n protected readonly effectiveError = computed(() => {\n const ext = this.externalState();\n if (ext) {\n return ext.error();\n }\n const click = this.asyncClick();\n return click ? click.error() : undefined;\n });\n\n private readonly lastUpdatedState = signal<Date | undefined>(undefined);\n\n /**\n * Full `CngxAsyncState` view of this button's effective lifecycle.\n *\n * Reflects the external state when `[externalState]` is bound,\n * otherwise the inner `CngxAsyncClick` directive's state.\n *\n * Bind to any state consumer: `<cngx-alert [state]=\"btn.state\" />`.\n */\n readonly state: CngxAsyncState<unknown> = buildAsyncStateView<unknown>({\n status: this.effectiveStatus,\n data: computed(() => undefined),\n error: this.effectiveError,\n lastUpdated: this.lastUpdatedState.asReadonly(),\n });\n\n /** @internal */\n protected readonly pendingTpl = contentChild(CngxPending);\n /** @internal */\n protected readonly succeededTpl = contentChild(CngxSucceeded);\n /** @internal */\n protected readonly failedTpl = contentChild(CngxFailed);\n\n constructor() {\n // Double-toast guard, consumer placed [cngxToastOn] on the same element.\n if (\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n this.externalToastOn &&\n (this.toastSuccess() || this.toastError())\n ) {\n console.warn(\n 'CngxActionButton: [toastSuccess]/[toastError] inputs and [cngxToastOn] ' +\n 'on the same element will fire duplicate toasts. Use one or the other.',\n );\n }\n\n const tracker = createTransitionTracker(() => this.effectiveStatus());\n\n effect(() => {\n const status = tracker.current();\n const previous = tracker.previous();\n\n if (status === previous) {\n return;\n }\n\n if (status === 'success') {\n // Producer write for the buildAsyncStateView `lastUpdated` slot (no other\n // source feeds it) - state production, not derived-state sync. This is the\n // sanctioned signal-write-in-effect class, same as the async-state-view pattern.\n this.lastUpdatedState.set(new Date());\n const msg = this.toastSuccess();\n if (msg && this.toaster) {\n this.toaster.show({\n message: msg,\n severity: 'success',\n duration: this.toastSuccessDuration(),\n });\n }\n }\n\n if (status === 'error') {\n const msg = this.toastError();\n if (msg && this.toaster) {\n const err = this.effectiveError();\n const detail =\n this.toastErrorDetail() && err != null\n ? err instanceof Error\n ? err.message\n : typeof err === 'string'\n ? err\n : undefined\n : undefined;\n this.toaster.show({\n message: detail ? `${msg}: ${detail}` : msg,\n severity: 'error',\n duration: this.toastErrorDuration(),\n });\n }\n }\n });\n }\n}\n","/**\n * @module @cngx/ui/action-button\n */\n\nexport { CngxActionButton, type ActionButtonVariant } from './action-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAmCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDG;MAiEU,gBAAgB,CAAA;IACV,OAAO,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACjD,IAAA,eAAe,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;AAG7E,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,4EAAe;;AAGtC,IAAA,gBAAgB,GAAG,KAAK,CAAS,IAAI,uFAAC;;AAGtC,IAAA,OAAO,GAAG,KAAK,CAAU,IAAI,8EAAC;;AAG9B,IAAA,IAAI,GAAG,KAAK,CAAgC,QAAQ,2EAAC;;AAGrD,IAAA,OAAO,GAAG,KAAK,CAAsB,SAAS,8EAAC;;AAG/C,IAAA,qBAAqB,GAAG,KAAK,CAAqB,SAAS,4FAAC;;AAG5D,IAAA,kBAAkB,GAAG,KAAK,CAAqB,SAAS,yFAAC;;AAGzD,IAAA,YAAY,GAAG,KAAK,CAAqB,SAAS,mFAAC;;AAGnD,IAAA,cAAc,GAAG,KAAK,CAAqB,SAAS,qFAAC;;AAGrD,IAAA,WAAW,GAA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AA,EAAA,kBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,oBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,cAAc,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MA8CT,WAAW,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAET,aAAa,2FAEhB,UAAU,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACxQxD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"cngx-ui-action-button.mjs","sources":["../../../projects/ui/action-button/action-button.ts","../../../projects/ui/action-button/public-api.ts","../../../projects/ui/action-button/cngx-ui-action-button.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n signal,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n CngxAsyncClick,\n CngxFailed,\n CngxPending,\n CngxSucceeded,\n reflectAsyncDisplayStatus,\n type AsyncAction,\n} from '@cngx/common/interactive';\nimport {\n buildAsyncStateView,\n createTransitionTracker,\n type CngxAsyncState,\n} from '@cngx/core/utils';\nimport { CngxToastOn, CngxToaster } from '@cngx/ui/feedback';\n\n/**\n * Visual variant for the action button - maps to a CSS class.\n *\n * @category ui/action-button\n */\nexport type ActionButtonVariant = 'primary' | 'secondary' | 'ghost';\n\n/**\n * Action button organism with built-in status communication.\n *\n * Coordinates between the `CngxAsyncClick` atom (mechanism, ARIA, lifecycle)\n * and the consumer (intent, styling, labels). Provides template projection\n * for pending/succeeded/failed states and an `aria-live` region for screen\n * reader announcements.\n *\n * Uses `display: contents` - the host produces no DOM box. The inner `<button>`\n * carries the `[cngxAsyncClick]` directive directly.\n *\n * For full control, use `[cngxAsyncClick]` directly on any element instead.\n *\n * ### Minimal (covers 80% of cases)\n * ```html\n * <cngx-action-button [action]=\"save\">Save</cngx-action-button>\n * ```\n *\n * ### With string labels\n * ```html\n * <cngx-action-button [action]=\"save\"\n * pendingLabel=\"Saving...\" succeededLabel=\"Saved!\" failedLabel=\"Failed\">\n * Save\n * </cngx-action-button>\n * ```\n *\n * ### With template slots\n * ```html\n * <cngx-action-button [action]=\"save\">\n * Save Draft\n * <ng-template cngxPending><mat-spinner diameter=\"18\" /> Saving...</ng-template>\n * <ng-template cngxSucceeded>Saved!</ng-template>\n * <ng-template cngxFailed let-err>{{ err }} - retry?</ng-template>\n * </cngx-action-button>\n * ```\n *\n * ### With toast feedback\n * ```html\n * <cngx-action-button [action]=\"save\" toastSuccess=\"Saved\" toastError=\"Save failed\">\n * Save\n * </cngx-action-button>\n * ```\n *\n * @category ui/action-button\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/action-button/action-button.ts\n * @since 0.1.0\n * @relatedTo CngxAsyncClick, CngxPending, CngxSucceeded, CngxFailed, CngxToaster\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>\n * <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>\n */\n@Component({\n selector: 'cngx-action-button',\n standalone: true,\n imports: [NgTemplateOutlet, CngxAsyncClick],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'cngxActionButton',\n host: {\n style: 'display: contents',\n },\n template: `\n <ng-template #idle><ng-content /></ng-template>\n\n <button\n [type]=\"type()\"\n [cngxAsyncClick]=\"action()\"\n #btn=\"cngxAsyncClick\"\n [feedbackDuration]=\"feedbackDuration()\"\n [enabled]=\"enabled()\"\n [succeededAnnouncement]=\"succeededAnnouncement() ?? succeededLabel() ?? 'Action succeeded'\"\n [failedAnnouncement]=\"failedAnnouncement() ?? failedLabel() ?? 'Action failed'\"\n [class]=\"'cngx-action-button cngx-action-button--' + variant()\"\n >\n @switch (effectiveStatus()) {\n @case ('pending') {\n @if (pendingTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef\" />\n } @else if (pendingLabel()) {\n {{ pendingLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @case ('success') {\n @if (succeededTpl(); as tpl) {\n <ng-container *ngTemplateOutlet=\"tpl.templateRef\" />\n } @else if (succeededLabel()) {\n {{ succeededLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @case ('error') {\n @if (failedTpl(); as tpl) {\n <ng-container\n *ngTemplateOutlet=\"tpl.templateRef; context: { $implicit: effectiveError() }\"\n />\n } @else if (failedLabel()) {\n {{ failedLabel() }}\n } @else {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n @default {\n <ng-container *ngTemplateOutlet=\"idle\" />\n }\n }\n </button>\n <span aria-live=\"polite\" aria-atomic=\"true\" class=\"cngx-action-button__sr-only\">{{\n btn.announcement()\n }}</span>\n `,\n styleUrls: ['./action-button.css'],\n})\nexport class CngxActionButton {\n private readonly toaster = inject(CngxToaster, { optional: true });\n private readonly externalToastOn = inject(CngxToastOn, { self: true, optional: true });\n\n /** The async action to execute on click. */\n readonly action = input.required<AsyncAction>();\n\n /** Duration in ms to show success/error feedback. Passed through to `cngxAsyncClick`. */\n readonly feedbackDuration = input<number>(2000);\n\n /** When `false`, clicks are ignored. Passed through to `cngxAsyncClick`. */\n readonly enabled = input<boolean>(true);\n\n /** Button type attribute. Defaults to `'button'` to prevent accidental form submits. */\n readonly type = input<'button' | 'submit' | 'reset'>('button');\n\n /** Visual variant - sets CSS class `cngx-action-button--{variant}`. */\n readonly variant = input<ActionButtonVariant>('primary');\n\n /** SR announcement on success. Falls back to `succeededLabel`, then `'Action succeeded'`. */\n readonly succeededAnnouncement = input<string | undefined>(undefined);\n\n /** SR announcement on failure. Falls back to `failedLabel`, then `'Action failed'`. */\n readonly failedAnnouncement = input<string | undefined>(undefined);\n\n /** Fallback text while pending (when no `cngxPending` template is projected). */\n readonly pendingLabel = input<string | undefined>(undefined);\n\n /** Fallback text after success (when no `cngxSucceeded` template is projected). */\n readonly succeededLabel = input<string | undefined>(undefined);\n\n /** Fallback text after failure (when no `cngxFailed` template is projected). */\n readonly failedLabel = input<string | undefined>(undefined);\n\n /**\n * Bind an external async state to derive visual status from.\n * When set, the button's status display follows `externalState.status()`.\n */\n readonly externalState = input<CngxAsyncState<unknown> | undefined>(undefined);\n\n /**\n * Toast message on success. Requires `CngxToaster` (via `provideFeedback(withToasts())`\n * or `provideToasts()`). Silently ignored when toaster is not provided.\n *\n * `toastSuccessDuration` should be >= `feedbackDuration` to avoid rapid re-fire\n * on repeated clicks that floods the SR announcement queue.\n */\n readonly toastSuccess = input<string | undefined>(undefined);\n\n /** Toast message on error. */\n readonly toastError = input<string | undefined>(undefined);\n\n /** Include the error detail message in the error toast body. */\n readonly toastErrorDetail = input<boolean>(false);\n\n /** Duration for success toasts in ms. */\n readonly toastSuccessDuration = input<number>(3000);\n\n /** Duration for error toasts - `'persistent'` means manual dismiss only. */\n readonly toastErrorDuration = input<number | 'persistent'>('persistent');\n\n /** @internal - inner CngxAsyncClick directive instance. Non-required to allow safe pre-view-init reads. */\n private readonly asyncClick = viewChild(CngxAsyncClick);\n\n /**\n * @internal - effective status: reflects external `[externalState]` if\n * bound (through the shared `CngxAsyncStatus` reflection - one home for\n * the state→display-bucket mapping), otherwise reads the inner\n * `CngxAsyncClick` directive.\n */\n protected readonly effectiveStatus = computed(() => {\n const ext = this.externalState();\n if (ext) {\n return reflectAsyncDisplayStatus(ext);\n }\n // Guard against pre-view-init reads of `state` from consumers.\n const click = this.asyncClick();\n return click ? click.status() : ('idle' as const);\n });\n\n /** @internal - effective error value from external state or inner directive. */\n protected readonly effectiveError = computed(() => {\n const ext = this.externalState();\n if (ext) {\n return ext.error();\n }\n const click = this.asyncClick();\n return click ? click.error() : undefined;\n });\n\n private readonly lastUpdatedState = signal<Date | undefined>(undefined);\n\n /**\n * Full `CngxAsyncState` view of this button's effective lifecycle.\n *\n * Reflects the external state when `[externalState]` is bound,\n * otherwise the inner `CngxAsyncClick` directive's state.\n *\n * Bind to any state consumer: `<cngx-alert [state]=\"btn.state\" />`.\n */\n readonly state: CngxAsyncState<unknown> = buildAsyncStateView<unknown>({\n status: this.effectiveStatus,\n data: computed(() => undefined),\n error: this.effectiveError,\n lastUpdated: this.lastUpdatedState.asReadonly(),\n });\n\n /** @internal */\n protected readonly pendingTpl = contentChild(CngxPending);\n /** @internal */\n protected readonly succeededTpl = contentChild(CngxSucceeded);\n /** @internal */\n protected readonly failedTpl = contentChild(CngxFailed);\n\n constructor() {\n // Double-toast guard, consumer placed [cngxToastOn] on the same element.\n if (\n typeof ngDevMode !== 'undefined' &&\n ngDevMode &&\n this.externalToastOn &&\n (this.toastSuccess() || this.toastError())\n ) {\n console.warn(\n 'CngxActionButton: [toastSuccess]/[toastError] inputs and [cngxToastOn] ' +\n 'on the same element will fire duplicate toasts. Use one or the other.',\n );\n }\n\n const tracker = createTransitionTracker(() => this.effectiveStatus());\n\n effect(() => {\n const status = tracker.current();\n const previous = tracker.previous();\n\n if (status === previous) {\n return;\n }\n\n if (status === 'success') {\n // Producer write for the buildAsyncStateView `lastUpdated` slot (no other\n // source feeds it) - state production, not derived-state sync. This is the\n // sanctioned signal-write-in-effect class, same as the async-state-view pattern.\n this.lastUpdatedState.set(new Date());\n const msg = this.toastSuccess();\n if (msg && this.toaster) {\n this.toaster.show({\n message: msg,\n severity: 'success',\n duration: this.toastSuccessDuration(),\n });\n }\n }\n\n if (status === 'error') {\n const msg = this.toastError();\n if (msg && this.toaster) {\n const err = this.effectiveError();\n const detail =\n this.toastErrorDetail() && err != null\n ? err instanceof Error\n ? err.message\n : typeof err === 'string'\n ? err\n : undefined\n : undefined;\n this.toaster.show({\n message: detail ? `${msg}: ${detail}` : msg,\n severity: 'error',\n duration: this.toastErrorDuration(),\n });\n }\n }\n });\n }\n}\n","/**\n * @module @cngx/ui/action-button\n */\n\nexport { CngxActionButton, type ActionButtonVariant } from './action-button';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAmCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDG;MAiEU,gBAAgB,CAAA;IACV,OAAO,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACjD,IAAA,eAAe,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;AAG7E,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,4EAAe;;AAGtC,IAAA,gBAAgB,GAAG,KAAK,CAAS,IAAI,uFAAC;;AAGtC,IAA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