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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +112 -0
  2. package/a11y/README.md +81 -0
  3. package/context-menu/README.md +98 -0
  4. package/data-grid-accordion/README.md +27 -0
  5. package/feedback/README.md +2 -0
  6. package/fesm2022/cngx-ui-a11y.mjs +320 -0
  7. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  8. package/fesm2022/cngx-ui-accordion.mjs +19 -8
  9. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  10. package/fesm2022/cngx-ui-action-button.mjs +5 -2
  11. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  12. package/fesm2022/cngx-ui-breadcrumb.mjs +11 -6
  13. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-chart-panel.mjs +429 -0
  15. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  16. package/fesm2022/cngx-ui-collection.mjs +15 -6
  17. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-command-palette.mjs +1005 -0
  19. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-context-menu.mjs +742 -0
  21. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  22. package/fesm2022/cngx-ui-data-grid-accordion.mjs +90 -20
  23. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  24. package/fesm2022/cngx-ui-feedback.mjs +97 -106
  25. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  26. package/fesm2022/cngx-ui-layout.mjs +18 -9
  27. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-mat-accordion.mjs +9 -9
  29. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-mat-tabs.mjs +64 -70
  31. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-paginator.mjs +18 -8
  33. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-sidenav.mjs +2 -2
  35. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-skeleton.mjs +20 -7
  37. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-speak.mjs +2 -2
  39. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-stat-card.mjs +618 -0
  41. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  42. package/fesm2022/cngx-ui-stepper.mjs +38 -19
  43. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-tabs.mjs +36 -19
  45. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-timeline.mjs +495 -0
  47. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  48. package/fesm2022/cngx-ui-toc.mjs +704 -0
  49. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  50. package/fesm2022/cngx-ui.mjs +2 -2
  51. package/fesm2022/cngx-ui.mjs.map +1 -1
  52. package/mat-accordion/README.md +1 -1
  53. package/mat-tabs/styles/mat-tabs.css +20 -17
  54. package/package.json +32 -1
  55. package/skeleton/README.md +2 -0
  56. package/stepper/README.md +2 -2
  57. package/timeline/README.md +350 -0
  58. package/toc/README.md +183 -0
  59. package/types/cngx-ui-a11y.d.ts +303 -0
  60. package/types/cngx-ui-accordion.d.ts +9 -4
  61. package/types/cngx-ui-action-button.d.ts +3 -0
  62. package/types/cngx-ui-breadcrumb.d.ts +5 -0
  63. package/types/cngx-ui-chart-panel.d.ts +278 -0
  64. package/types/cngx-ui-collection.d.ts +12 -3
  65. package/types/cngx-ui-command-palette.d.ts +451 -0
  66. package/types/cngx-ui-context-menu.d.ts +467 -0
  67. package/types/cngx-ui-data-grid-accordion.d.ts +72 -15
  68. package/types/cngx-ui-feedback.d.ts +71 -18
  69. package/types/cngx-ui-layout.d.ts +8 -3
  70. package/types/cngx-ui-mat-accordion.d.ts +3 -3
  71. package/types/cngx-ui-mat-tabs.d.ts +11 -9
  72. package/types/cngx-ui-paginator.d.ts +13 -3
  73. package/types/cngx-ui-skeleton.d.ts +13 -1
  74. package/types/cngx-ui-stat-card.d.ts +327 -0
  75. package/types/cngx-ui-stepper.d.ts +18 -4
  76. package/types/cngx-ui-tabs.d.ts +20 -4
  77. package/types/cngx-ui-timeline.d.ts +479 -0
  78. package/types/cngx-ui-toc.d.ts +514 -0
  79. package/types/cngx-ui.d.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cngx-ui-stat-card.mjs","sources":["../../../projects/ui/stat-card/config/stat-card.config.defaults.ts","../../../projects/ui/stat-card/config/inject-stat-card-config.ts","../../../projects/ui/stat-card/stat-card.component.ts","../../../projects/ui/stat-card/stat-card-slots.ts","../../../projects/ui/stat-card/config/provide-stat-card-config.ts","../../../projects/ui/stat-card/config/features.ts","../../../projects/ui/stat-card/public-api.ts","../../../projects/ui/stat-card/cngx-ui-stat-card.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nimport type { CngxStatCardConfig } from './stat-card.config';\n\n/**\n * Library defaults for the stat-card configuration cascade. English by\n * default; locale overrides ride the `withStatCardAriaLabels` feature. The\n * values are byte-identical to the per-instance input defaults the component\n * shipped before the cascade, so an un-configured consumer sees no change.\n *\n * Exported for intra-lib consumers (`provideStatCardConfig` deep-merges with\n * this base) but **NOT** re-exported from `public-api.ts` - downstream\n * consumers reach the defaults via `inject(CNGX_STAT_CARD_CONFIG)` so\n * `provideStatCardConfig` / `provideStatCardConfigAt` overrides take\n * precedence.\n *\n * @internal\n */\nexport const CNGX_STAT_CARD_DEFAULTS: CngxStatCardConfig = {\n ariaLabels: {\n busy: 'Loading',\n errorFallback: 'Could not load',\n staleFallback: 'Showing last known value',\n },\n loadingTreatment: 'auto',\n};\n\n/**\n * App-wide configuration cascade for the stat-card. Resolves in priority\n * order:\n *\n * 1. Per-instance Input binding.\n * 2. `provideStatCardConfigAt(...)` in a parent component's `viewProviders`.\n * 3. `provideStatCardConfig(...)` 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_STAT_CARD_CONFIG)` always\n * resolves.\n *\n * @category ui/stat-card\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/config/stat-card.config.defaults.ts\n * @since 0.1.0\n * @relatedTo provideStatCardConfig, provideStatCardConfigAt, injectStatCardConfig\n */\nexport const CNGX_STAT_CARD_CONFIG = new InjectionToken<CngxStatCardConfig>(\n 'CNGX_STAT_CARD_CONFIG',\n {\n providedIn: 'root',\n factory: () => CNGX_STAT_CARD_DEFAULTS,\n },\n);\n","import { inject } from '@angular/core';\n\nimport type { CngxStatCardConfig } from './stat-card.config';\nimport { CNGX_STAT_CARD_CONFIG } from './stat-card.config.defaults';\n\n/**\n * Convenience accessor for the stat-card configuration cascade. Runs in\n * injection context; resolves through the priority chain (per-instance Input\n * -> `provideStatCardConfigAt` -> `provideStatCardConfig` -> library\n * defaults). Equivalent to `inject(CNGX_STAT_CARD_CONFIG)` - the helper exists\n * so consumers don't import the token directly.\n *\n * ```ts\n * export class CngxStatCard {\n * private readonly cfg = injectStatCardConfig();\n * readonly errorText = input<string>(this.cfg.ariaLabels?.errorFallback ?? 'Could not load');\n * }\n * ```\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function injectStatCardConfig(): CngxStatCardConfig {\n return inject(CNGX_STAT_CARD_CONFIG);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CngxCard } from '@cngx/common/card';\nimport {\n CNGX_STAT,\n CngxStatCoordinator,\n resolveAsyncView,\n type CngxStatSlotKind,\n} from '@cngx/common/data';\nimport { CngxSkeleton } from '@cngx/common/layout';\nimport {\n createLatencyProbe,\n injectLoadingConfig,\n resolveLoadingTreatment,\n type CngxAsyncState,\n type CngxLoadingTreatment,\n} from '@cngx/core/utils';\nimport { CngxEmptyState } from '@cngx/ui/empty-state';\nimport { CngxLoadingIndicator } from '@cngx/ui/feedback';\n\nimport { injectStatCardConfig } from './config/inject-stat-card-config';\n\n/** Placeholder shape for a card whose consumer projected no stat slots at all. */\nconst DEFAULT_SKELETON_SLOTS: readonly CngxStatSlotKind[] = ['label', 'value', 'caption'];\n\n/**\n * Card-framed KPI tile: one `<cngx-stat-card>` renders a complete dashboard\n * metric - card surface, coordinated stat slots, an inline visualisation, a\n * footer, and the async view switch - from a single `[state]`.\n *\n * The stat slots are the existing `cngxStatLabel` / `cngxStatValue` /\n * `cngxStatDelta` / `cngxStatCaption` atoms from `@cngx/common/data`, not\n * copies. They resolve `CNGX_STAT` against their declaration site, so the card\n * hosts the same {@link CngxStatCoordinator} brain `CngxStat` hosts and\n * re-points the token at it - the shape `CngxIncrementalList` uses for\n * `CNGX_PAGINATOR_HOST`. A screen reader therefore reads the tile as one\n * phrase, not four fragments (Pillar 2).\n *\n * The view switch is a pure `computed()` off `[state]` via `resolveAsyncView`\n * (Pillar 1) - there is no second state machine and no boolean fallback inputs.\n *\n * Like `cngx-chart`, the card does **not** provide `CNGX_STATEFUL`: the\n * consumer already holds the state object it bound, so transition bridges take\n * it directly, e.g. `<cngx-toast-on [state]=\"revenue\" />`.\n *\n * ```html\n * <cngx-stat-card [state]=\"revenue\">\n * <span cngxStatLabel>Revenue</span>\n * <cngx-metric cngxStatValue [value]=\"1.2\" unit=\"M EUR\" />\n * <cngx-delta cngxStatDelta [value]=\"5.3\" />\n * <span cngxStatCaption>vs. last quarter</span>\n * <cngx-sparkline cngxStatCardViz [data]=\"trend()\" />\n * </cngx-stat-card>\n * ```\n *\n * @category ui/stat-card\n * @docsKind primary\n * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card.component.ts\n * @since 0.1.0\n * @relatedTo CngxStat, CngxStatCoordinator, CngxStatCardViz, CngxStatCardFooter, CngxCard\n *\n * <example-url>http://localhost:4200/#/ui/stat-card/basic/composed-kpi-tile</example-url>\n * <example-url>http://localhost:4200/#/ui/stat-card/async/latency-aware-loading</example-url>\n * <example-url>http://localhost:4200/#/ui/stat-card/async/error-and-refresh</example-url>\n */\n@Component({\n selector: 'cngx-stat-card',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxCard, CngxSkeleton, CngxLoadingIndicator, CngxEmptyState],\n hostDirectives: [CngxStatCoordinator],\n providers: [{ provide: CNGX_STAT, useExisting: CngxStatCoordinator }],\n host: {\n class: 'cngx-stat-card',\n '[attr.aria-busy]': 'busy() || null',\n '[class.cngx-stat-card--busy]': 'busy()',\n },\n template: `\n <cngx-card\n [attr.aria-labelledby]=\"cardLabelledBy()\"\n [attr.aria-live]=\"live() === 'off' ? null : live()\"\n >\n <!-- A refresh over existing content would otherwise be invisible: the view\n stays 'content' and only aria-busy flips, which says nothing to a\n sighted user. The indicator is absolutely placed and the figure only\n dims, so the tile never reflows while refreshing - a dashboard grid\n would otherwise twitch on every poll. It carries the loading config's\n show-delay and min-dwell, so a fast refresh never flashes. -->\n @if (showRefreshIndicator()) {\n <cngx-loading-indicator\n class=\"cngx-stat-card__refresh\"\n [loading]=\"true\"\n variant=\"spinner\"\n [label]=\"busyLabel()\"\n />\n }\n\n @switch (activeView()) {\n @case ('skeleton') {\n @if (resolvedTreatment() === 'skeleton') {\n <!-- Same container and same row structure as the content branch, so\n each bar sits exactly where its text will, and the swap to\n content does not resize the tile. -->\n <div\n class=\"cngx-stat-card__stat cngx-stat-card__stat--skeleton\"\n [cngxSkeleton]=\"true\"\n aria-hidden=\"true\"\n >\n @if (skeletonSlots().includes('label')) {\n <span class=\"cngx-stat-card__skeleton-line cngx-stat-card__skeleton-line--label\">\n </span>\n }\n <div class=\"cngx-stat-card__row\">\n @if (skeletonSlots().includes('value')) {\n <span class=\"cngx-stat-card__skeleton-line cngx-stat-card__skeleton-line--value\">\n </span>\n }\n @if (skeletonSlots().includes('delta')) {\n <span class=\"cngx-stat-card__skeleton-line cngx-stat-card__skeleton-line--delta\">\n </span>\n }\n </div>\n @if (skeletonSlots().includes('caption')) {\n <span class=\"cngx-stat-card__skeleton-line cngx-stat-card__skeleton-line--caption\">\n </span>\n }\n </div>\n } @else {\n <div class=\"cngx-stat-card__spinner\">\n <cngx-loading-indicator [loading]=\"true\" variant=\"spinner\" [label]=\"busyLabel()\" />\n </div>\n }\n }\n @case ('error') {\n <cngx-empty-state\n class=\"cngx-stat-card__error\"\n [title]=\"errorText()\"\n [description]=\"errorDescription()\"\n >\n <!-- The stock empty-state glyph is an archive box, which reads\n \"nothing here\" rather than \"this failed\". Projecting into the\n icon slot hides it. Decorative: the title carries the message. -->\n <svg\n cngxEmptyStateIcon\n class=\"cngx-stat-card__error-icon\"\n aria-hidden=\"true\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n </svg>\n </cngx-empty-state>\n }\n @default {\n <div class=\"cngx-stat-card__stat\">\n <ng-content select=\"[cngxStatLabel]\" />\n <div class=\"cngx-stat-card__row\">\n <ng-content select=\"[cngxStatValue]\" />\n <ng-content select=\"[cngxStatDelta]\" />\n </div>\n <ng-content select=\"[cngxStatCaption]\" />\n </div>\n\n <ng-content select=\"[cngxStatCardViz]\" />\n\n @if (activeView() === 'content+error') {\n <p class=\"cngx-stat-card__stale\">{{ staleText() }}</p>\n }\n }\n }\n\n <ng-content select=\"[cngxStatCardFooter]\" />\n </cngx-card>\n `,\n styleUrls: ['./stat-card.component.css'],\n})\nexport class CngxStatCard {\n /** @internal The shared slot-id brain, applied as a host directive. */\n protected readonly coordinator = inject(CngxStatCoordinator, { host: true });\n\n private readonly config = injectStatCardConfig();\n\n /**\n * The tile's async envelope. Every view decision derives from it; there are\n * no discrete `loading` / `error` boolean fallbacks. Optional per the\n * bridge-input rule, so `[state]` may be bound conditionally.\n */\n readonly state = input<CngxAsyncState<unknown> | undefined, CngxAsyncState<unknown> | '' | undefined>(\n undefined,\n { transform: (v) => (typeof v === 'string' ? undefined : v) },\n );\n\n /**\n * What the card shows while it loads. `'auto'` (default) picks from the\n * latency the tile itself observed: a tile whose last load was quick shows a\n * spinner blip, one whose last load dragged shows a skeleton. `'spinner'` and\n * `'skeleton'` pin the choice.\n */\n readonly loadingTreatment = input<CngxLoadingTreatment>(this.config.loadingTreatment ?? 'auto');\n\n /** Accessible label announced while the card is loading. */\n readonly busyLabel = input<string>(this.config.ariaLabels?.busy ?? 'Loading');\n\n /** Headline of the error state shown instead of the stat when the first load failed. */\n readonly errorText = input<string>(this.config.ariaLabels?.errorFallback ?? 'Could not load');\n\n /** Supporting detail under {@link errorText}. Omitted when unset. */\n readonly errorDescription = input<string | undefined>(\n this.config.ariaLabels?.errorDescription,\n );\n\n /** Note appended below the stat when a refresh failed but stale data is still shown. */\n readonly staleText = input<string>(\n this.config.ariaLabels?.staleFallback ?? 'Showing last known value',\n );\n\n /**\n * Politeness of the tile's live region. `off` (default) for a static KPI;\n * `polite` for a tile that refreshes on a timer, so the new figure is\n * announced instead of changing silently. Mirrors `CngxStat.live`.\n */\n readonly live = input<'off' | 'polite' | 'assertive'>('off');\n\n /** @internal Whether any operation is running. Drives `aria-busy` (Pillar 2). */\n protected readonly busy = computed(() => this.state()?.isBusy() ?? false);\n\n /**\n * @internal A refresh over content the user can still read. The skeleton and\n * spinner branches already carry their own busy signal, so the bar would be\n * redundant there.\n */\n /**\n * @internal Which bars the placeholder draws. Mirrors the slots the consumer\n * actually projected, so a tile without a delta gets no delta bar. Falls back\n * to the common label / value / caption shape when nothing has registered -\n * a card with no stat slots at all still needs a plausible placeholder.\n */\n protected readonly skeletonSlots = computed<readonly CngxStatSlotKind[]>(() => {\n const present = this.coordinator.presentKinds();\n return present.length > 0 ? present : DEFAULT_SKELETON_SLOTS;\n });\n\n protected readonly showRefreshIndicator = computed(\n () => this.busy() && this.activeView() !== 'skeleton',\n );\n\n private readonly loadingConfig = injectLoadingConfig();\n\n /**\n * Measures how long this tile's own busy windows last. The measurement is a\n * wall-clock sample the probe writes from an effect; the selection below stays\n * a pure `computed()`, so nothing in the reactive graph writes state.\n */\n private readonly probe = createLatencyProbe(() => this.busy());\n\n /**\n * Spinner or skeleton for the current load, from the observed latency and the\n * cascaded cutoff. Never a hardcoded millisecond threshold - the cutoff always\n * comes from `CNGX_LOADING_CONFIG`, so one `provideLoadingConfig(...)` retunes\n * every tile in the app.\n */\n protected readonly resolvedTreatment = computed(() =>\n resolveLoadingTreatment(\n this.loadingTreatment(),\n this.probe.lastDuration(),\n this.loadingConfig.spinnerVsSkeletonCutoff,\n ),\n );\n\n /**\n * Which body the card renders. Delegates to the shared `resolveAsyncView`\n * lookup table so the tile cannot drift from every other async surface.\n * Without a bound `[state]` the card always shows its content.\n */\n /**\n * @internal The card element carries the accessible name, so the tile is one\n * named region instead of an unnamed `article` wrapped around a named group.\n * Null while the stat is not rendered: the slot ids live inside the content\n * branch, and pointing at ids that are out of the DOM reads as unnamed anyway.\n */\n protected readonly cardLabelledBy = computed(() => {\n const view = this.activeView();\n return view === 'skeleton' || view === 'error' ? null : this.coordinator.labelledBy();\n });\n\n protected readonly activeView = computed(() => {\n const s = this.state();\n if (!s) {\n return 'content' as const;\n }\n return resolveAsyncView(s.status(), s.isFirstLoad(), s.isEmpty());\n });\n}\n","import { Directive } from '@angular/core';\n\n/**\n * Marks the inline visualisation of a {@link CngxStatCard} - a `cngx-sparkline`,\n * `cngx-mini-area`, `cngx-deviation-bar`, or any other compact chart preset.\n *\n * Rendered beside the stat block and outside its `aria-labelledby` chain: the\n * accessible name stays the numbers a screen reader can actually read, while\n * the viz stays decorative unless the projected preset carries its own\n * accessible name.\n *\n * @category ui/stat-card\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts\n * @since 0.1.0\n * @relatedTo CngxStatCard, CngxStatCardFooter\n */\n@Directive({\n selector: '[cngxStatCardViz]',\n standalone: true,\n host: { class: 'cngx-stat-card__viz' },\n})\nexport class CngxStatCardViz {}\n\n/**\n * Marks the footer row of a {@link CngxStatCard} - a timestamp, a drill-down\n * link, a `cngx-tag` row. Rendered below the stat block and the viz slot.\n *\n * @category ui/stat-card\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts\n * @since 0.1.0\n * @relatedTo CngxStatCard, CngxStatCardViz\n */\n@Directive({\n selector: '[cngxStatCardFooter]',\n standalone: true,\n host: { class: 'cngx-stat-card__footer' },\n})\nexport class CngxStatCardFooter {}\n","import {\n inject,\n makeEnvironmentProviders,\n type EnvironmentProviders,\n type Provider,\n} from '@angular/core';\n\nimport type { CngxStatCardConfig } from './stat-card.config';\nimport { CNGX_STAT_CARD_CONFIG, CNGX_STAT_CARD_DEFAULTS } from './stat-card.config.defaults';\n\n/**\n * Discriminated-union shape returned by the stat-card config features -\n * `withStatCardAriaLabels` and `withStatCardLoadingTreatment`. The reducer in\n * `provideStatCardConfig` / `provideStatCardConfigAt` matches on `kind` and\n * merges `payload` into the corresponding config sub-tree. Mirrors\n * `CngxBreadcrumbConfigFeature` so the consumer's mental model is one across\n * feature areas.\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport type CngxStatCardConfigFeature =\n | {\n readonly kind: 'ariaLabels';\n readonly payload: NonNullable<CngxStatCardConfig['ariaLabels']>;\n }\n | {\n readonly kind: 'loadingTreatment';\n readonly payload: { readonly loadingTreatment: NonNullable<CngxStatCardConfig['loadingTreatment']> };\n };\n\n/**\n * Reduces a list of feature objects into a partial config - last write wins\n * per sub-tree. Inner objects are spread-merged so partial overrides compose\n * cleanly with prior writes.\n *\n * @internal\n */\nfunction reduceFeatures(\n features: readonly CngxStatCardConfigFeature[],\n): Partial<CngxStatCardConfig> {\n const out: {\n ariaLabels?: NonNullable<CngxStatCardConfig['ariaLabels']>;\n loadingTreatment?: NonNullable<CngxStatCardConfig['loadingTreatment']>;\n } = {};\n for (const f of features) {\n switch (f.kind) {\n case 'ariaLabels':\n out.ariaLabels = { ...out.ariaLabels, ...f.payload };\n break;\n case 'loadingTreatment':\n out.loadingTreatment = f.payload.loadingTreatment;\n break;\n }\n }\n return out;\n}\n\n/**\n * Two-level deep merge: the nested `ariaLabels` sub-tree is spread-merged so a\n * partial fills in missing keys without nuking the rest; the flat top-level\n * scalar `loadingTreatment` takes the partial when present, else the base.\n *\n * @internal\n */\nfunction mergeConfig(\n base: CngxStatCardConfig,\n partial: Partial<CngxStatCardConfig>,\n): CngxStatCardConfig {\n return {\n ariaLabels: { ...base.ariaLabels, ...partial.ariaLabels },\n loadingTreatment: partial.loadingTreatment ?? base.loadingTreatment,\n };\n}\n\n/**\n * Application-root configuration cascade for the stat-card. Pass any\n * combination of `withStatCardAriaLabels` and `withStatCardLoadingTreatment`\n * in `bootstrapApplication`'s providers array.\n *\n * ```ts\n * bootstrapApplication(AppComponent, {\n * providers: [\n * provideStatCardConfig(\n * withStatCardAriaLabels({ errorFallback: 'Kennzahl nicht verfügbar' }),\n * withStatCardLoadingTreatment('skeleton'),\n * ),\n * ],\n * });\n * ```\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function provideStatCardConfig(\n ...features: CngxStatCardConfigFeature[]\n): EnvironmentProviders {\n // Empty-features: skip the override so the root factory's\n // CNGX_STAT_CARD_DEFAULTS reference flows through untouched. A fresh\n // mergeConfig(...) would allocate identical content under a new reference\n // and bust downstream identity comparisons.\n if (features.length === 0) {\n return makeEnvironmentProviders([]);\n }\n const partial = reduceFeatures(features);\n return makeEnvironmentProviders([\n {\n provide: CNGX_STAT_CARD_CONFIG,\n useValue: mergeConfig(CNGX_STAT_CARD_DEFAULTS, partial),\n },\n ]);\n}\n\n/**\n * Component-scoped configuration cascade for the stat-card. Pass any\n * combination of feature factories in a parent component's `viewProviders`.\n *\n * Unlike `provideStatCardConfig` (root-only), this injects the parent\n * injector's `CNGX_STAT_CARD_CONFIG` value and deep-merges the supplied\n * features on top. Descendant tiles see the merged config; sibling sub-trees\n * keep the inherited value untouched.\n *\n * ```ts\n * @Component({\n * viewProviders: [provideStatCardConfigAt(withStatCardLoadingTreatment('spinner'))],\n * template: '<cngx-stat-card [state]=\"s\" />',\n * })\n * class LiveTiles {}\n * ```\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function provideStatCardConfigAt(...features: CngxStatCardConfigFeature[]): 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_STAT_CARD_CONFIG,\n useFactory: () => {\n const parent = inject(CNGX_STAT_CARD_CONFIG, { skipSelf: true });\n return mergeConfig(parent, partial);\n },\n },\n ];\n}\n","import type { CngxLoadingTreatment } from '@cngx/core/utils';\n\nimport type { CngxStatCardConfig } from './stat-card.config';\nimport type { CngxStatCardConfigFeature } from './provide-stat-card-config';\n\n/**\n * Override the stat-card's string fallbacks - the busy announcement, the\n * first-load error message, and the stale-data note. Per-instance\n * `[busyLabel]` / `[errorText]` / `[staleText]` bindings still win.\n *\n * Library defaults are English; this is the hook a localised app uses.\n *\n * ```ts\n * provideStatCardConfig(\n * withStatCardAriaLabels({ busy: 'Lädt', errorFallback: 'Nicht verfügbar' }),\n * );\n * ```\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function withStatCardAriaLabels(\n labels: NonNullable<CngxStatCardConfig['ariaLabels']>,\n): CngxStatCardConfigFeature {\n return { kind: 'ariaLabels', payload: labels };\n}\n\n/**\n * Move the cascade default for what a tile renders while it loads. `'auto'`\n * (the library default) picks spinner vs skeleton from the latency the tile\n * observed; `'spinner'` and `'skeleton'` pin it app-wide. Per-instance\n * `[loadingTreatment]` still wins.\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function withStatCardLoadingTreatment(\n treatment: CngxLoadingTreatment,\n): CngxStatCardConfigFeature {\n return { kind: 'loadingTreatment', payload: { loadingTreatment: treatment } };\n}\n","/**\n * @module @cngx/ui/stat-card\n */\n\nexport { CngxStatCard } from './stat-card.component';\nexport { CngxStatCardViz, CngxStatCardFooter } from './stat-card-slots';\nexport { type CngxStatCardConfig } from './config/stat-card.config';\nexport { CNGX_STAT_CARD_CONFIG } from './config/stat-card.config.defaults';\nexport {\n provideStatCardConfig,\n provideStatCardConfigAt,\n type CngxStatCardConfigFeature,\n} from './config/provide-stat-card-config';\nexport { withStatCardAriaLabels, withStatCardLoadingTreatment } from './config/features';\nexport { injectStatCardConfig } from './config/inject-stat-card-config';\n\n// The four coordinated stat slots are the existing atoms from @cngx/common/data,\n// re-exported for a local import surface. A slot projected into the card injects\n// the same CNGX_STAT the card provides - one token, one shape, no new contract.\nexport {\n CngxStatLabel,\n CngxStatValue,\n CngxStatDelta,\n CngxStatCaption,\n CNGX_STAT,\n type CngxStatRegistry,\n} from '@cngx/common/data';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAIA;;;;;;;;;;;;;AAaG;AACI,MAAM,uBAAuB,GAAuB;AACzD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,SAAS;AACf,QAAA,aAAa,EAAE,gBAAgB;AAC/B,QAAA,aAAa,EAAE,0BAA0B;AAC1C,KAAA;AACD,IAAA,gBAAgB,EAAE,MAAM;CACzB;AAED;;;;;;;;;;;;;;;;;AAiBG;MACU,qBAAqB,GA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