@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +112 -1
- package/a11y/README.md +87 -0
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/context-menu/README.md +98 -0
- package/data-grid-accordion/README.md +103 -2
- package/feedback/README.md +42 -0
- package/fesm2022/cngx-ui-a11y.mjs +452 -0
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
- package/fesm2022/cngx-ui-accordion.mjs +116 -38
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +115 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
- package/fesm2022/cngx-ui-collection.mjs +207 -66
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
- package/fesm2022/cngx-ui-context-menu.mjs +857 -0
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1095 -521
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +18 -9
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +501 -182
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +22 -21
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +718 -0
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
- package/fesm2022/cngx-ui-stepper.mjs +217 -76
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +40 -19
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +548 -0
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
- package/fesm2022/cngx-ui-toc.mjs +748 -0
- package/fesm2022/cngx-ui-toc.mjs.map +1 -0
- package/fesm2022/cngx-ui.mjs +16 -21
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-accordion/README.md +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +29 -27
- package/overlay/README.md +9 -4
- package/package.json +32 -1
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/skeleton/README.md +2 -0
- package/speak/README.md +3 -2
- package/stepper/README.md +15 -3
- package/timeline/README.md +350 -0
- package/toc/README.md +186 -0
- package/types/cngx-ui-a11y.d.ts +394 -0
- package/types/cngx-ui-accordion.d.ts +100 -30
- package/types/cngx-ui-action-button.d.ts +47 -3
- package/types/cngx-ui-breadcrumb.d.ts +159 -58
- package/types/cngx-ui-chart-panel.d.ts +382 -0
- package/types/cngx-ui-collection.d.ts +159 -58
- package/types/cngx-ui-command-palette.d.ts +565 -0
- package/types/cngx-ui-context-menu.d.ts +559 -0
- package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +664 -73
- package/types/cngx-ui-layout.d.ts +8 -3
- package/types/cngx-ui-mat-accordion.d.ts +32 -4
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +218 -23
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +416 -132
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +18 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +411 -0
- package/types/cngx-ui-stepper.d.ts +81 -29
- package/types/cngx-ui-tabs.d.ts +22 -6
- package/types/cngx-ui-timeline.d.ts +495 -0
- package/types/cngx-ui-toc.d.ts +581 -0
- package/types/cngx-ui.d.ts +8 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cngx-ui-stat-card.mjs","sources":["../../../projects/ui/stat-card/i18n/stat-card-language-section.ts","../../../projects/ui/stat-card/i18n/stat-card-i18n.ts","../../../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":["/**\n * The stat-card section of a {@link CngxLanguagePack}: the state copy of\n * `CngxStatCard`. It feeds the `ariaLabels` of `CNGX_STAT_CARD_CONFIG`; a key\n * set through `withStatCardAriaLabels` or a bound copy input still wins.\n *\n * @category ui/stat-card/i18n\n * @since 0.1.0\n * @relatedTo CNGX_STAT_CARD_CONFIG, withStatCardAriaLabels\n */\nexport interface CngxStatCardLanguageSection {\n /** Accessible name announced while the tile is loading. */\n readonly busy: string;\n /** Headline of the error state shown when the first load failed. */\n readonly errorFallback: string;\n /** Note shown below stale numbers when a refresh failed. */\n readonly staleFallback: string;\n /** Headline of the empty state shown when a load settled with no data. */\n readonly emptyFallback: string;\n}\n\n/**\n * The English stat-card section: the single source of the stat card's English\n * copy. The `CNGX_STAT_CARD_CONFIG` labels default to it.\n *\n * @category ui/stat-card/i18n\n * @since 0.1.0\n * @relatedTo CNGX_STAT_CARD_CONFIG\n */\nexport const CNGX_STAT_CARD_LANGUAGE_EN: CngxStatCardLanguageSection = {\n busy: 'Loading',\n errorFallback: 'Could not load',\n staleFallback: 'Showing last known value',\n emptyFallback: 'No data',\n};\n\ndeclare module '@cngx/core/i18n' {\n interface CngxLanguagePack {\n readonly statCard: CngxStatCardLanguageSection;\n }\n}\n","import { createLanguageSection } from '@cngx/core/i18n';\n\nimport { CNGX_STAT_CARD_LANGUAGE_EN } from './stat-card-language-section';\n\n/**\n * @internal The stat-card section of the active pack over the English section,\n * shared app-wide. Consumers override copy through `withStatCardAriaLabels`.\n */\nexport const injectStatCardSiteCopy = createLanguageSection('statCard', CNGX_STAT_CARD_LANGUAGE_EN);\n","import { InjectionToken } from '@angular/core';\n\nimport type { CngxStatCardConfig } from './stat-card.config';\n\n/**\n * Library defaults for the stat-card configuration cascade. Carries no copy:\n * the `ariaLabels` defaults are the `statCard` section of the language pack;\n * single keys ride the `withStatCardAriaLabels` feature.\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 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, type Signal } from '@angular/core';\nimport { createFilledOverrideMerge } from '@cngx/core/utils';\n\nimport { injectStatCardSiteCopy } from '../i18n/stat-card-i18n';\nimport type { CngxStatCardConfig, CngxStatCardResolvedAriaLabels } 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\n/**\n * The resolved strings of the stat-card config in scope, every key the config\n * leaves unset (also a key an override sets to `undefined`) filled from the\n * `statCard` section of the active pack, as a Signal that follows a runtime\n * language switch. Runs\n * in injection context; read it inside a `computed()`, a template or a\n * handler, and untracked where it builds live-region text.\n *\n * @category ui/stat-card\n * @since 0.1.0\n */\nexport function injectStatCardAriaLabels(): Signal<CngxStatCardResolvedAriaLabels> {\n return createFilledOverrideMerge(injectStatCardSiteCopy(), injectStatCardConfig().ariaLabels);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n untracked,\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 { injectStatCardAriaLabels, 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]=\"resolvedBusyLabel()\"\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]=\"resolvedBusyLabel()\" />\n </div>\n }\n }\n @case ('error') {\n <cngx-empty-state\n class=\"cngx-stat-card__error\"\n [title]=\"resolvedErrorText()\"\n [description]=\"resolvedErrorDescription()\"\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 @case ('empty') {\n <!-- A settle with no data is its own message, not blank metric\n slots pretending to be a figure. -->\n <cngx-empty-state class=\"cngx-stat-card__empty\" [title]=\"resolvedEmptyText()\" />\n }\n @case ('none') {\n <!-- Idle first load: nothing was asked for yet, so the tile shows\n nothing - projected slots over absent data would read as a\n real (blank) figure. -->\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\">{{ resolvedStaleText() }}</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 private readonly ariaLabels = injectStatCardAriaLabels();\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 /**\n * Accessible label announced while the card is loading. Unbound\n * (`undefined`), each copy input falls back to the config cascade and the\n * `statCard` section of the language pack.\n */\n readonly busyLabel = input<string | undefined>(undefined);\n\n /** Headline of the error state shown instead of the stat when the first load failed. */\n readonly errorText = input<string | undefined>(undefined);\n\n /** Supporting detail under {@link errorText}. Omitted when unset. */\n readonly errorDescription = input<string | undefined>(undefined);\n\n /** Note appended below the stat when a refresh failed but stale data is still shown. */\n readonly staleText = input<string | undefined>(undefined);\n\n /** Headline of the empty state shown when a load settled with no data. */\n readonly emptyText = input<string | undefined>(undefined);\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 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 /**\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 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 * @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 const showsStat = view === 'content' || view === 'content+error';\n return showsStat ? this.coordinator.labelledBy() : null;\n });\n\n /**\n * @internal Which body the card renders. Delegates to the shared\n * `resolveAsyncView` lookup table so the tile cannot drift from every other\n * async surface. Without a bound `[state]` the card always shows its content.\n */\n protected readonly activeView = computed(() => {\n const s = this.state();\n if (!s) {\n return 'content' as const;\n }\n const view = resolveAsyncView(s.status(), s.isFirstLoad(), s.isEmpty());\n // A non-first-load busy phase over an empty tile resolves to content in\n // the lookup table - blank metric slots posing as a figure. A load with\n // nothing on screen is a load (same correction the timeline applies).\n if (view === 'content' && s.isEmpty() && s.isBusy()) {\n return 'skeleton' as const;\n }\n return view;\n });\n\n protected readonly resolvedBusyLabel = computed(() => {\n this.trackPhase();\n return this.busyLabel() ?? untracked(() => this.ariaLabels().busy);\n });\n protected readonly resolvedErrorText = computed(() => {\n this.trackPhase();\n return this.errorText() ?? untracked(() => this.ariaLabels().errorFallback);\n });\n protected readonly resolvedErrorDescription = computed(() => {\n this.trackPhase();\n return this.errorDescription() ?? untracked(() => this.ariaLabels().errorDescription);\n });\n protected readonly resolvedStaleText = computed(() => {\n this.trackPhase();\n return this.staleText() ?? untracked(() => this.ariaLabels().staleFallback);\n });\n protected readonly resolvedEmptyText = computed(() => {\n this.trackPhase();\n return this.emptyText() ?? untracked(() => this.ariaLabels().emptyFallback);\n });\n\n /**\n * Keys the untracked cascade reads above on the view and busy phase, read\n * straight from the signals the template polls (so a phase that returns to an\n * earlier value still re-reads). The whole card can be a live region, so a\n * language switch must not re-render its text; the next view or busy change\n * speaks the new language. A bound input stays tracked.\n */\n private trackPhase(): void {\n this.activeView();\n this.busy();\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 type Signal,\n} from '@angular/core';\nimport { createOverrideMerge } from '@cngx/core/utils';\n\nimport type { CngxStatCardAriaLabels, CngxStatCardConfig } from './stat-card.config';\nimport { CNGX_STAT_CARD_CONFIG, CNGX_STAT_CARD_DEFAULTS } from './stat-card.config.defaults';\n\nconst NO_ARIA_LABELS: CngxStatCardAriaLabels = {};\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: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>;\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 = createOverrideMerge(out.ariaLabels ?? NO_ARIA_LABELS, 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: createOverrideMerge(base.ariaLabels ?? NO_ARIA_LABELS, 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 { Signal } from '@angular/core';\nimport type { CngxLoadingTreatment } from '@cngx/core/utils';\n\nimport type { CngxStatCardAriaLabels } 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 * The defaults come from the `statCard` section of the language pack (English\n * without one); this overrides single keys on top of it. Pass a\n * `Signal` to switch the language at runtime; a tile with a live region speaks\n * the new language with its next state change.\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: CngxStatCardAriaLabels | Signal<CngxStatCardAriaLabels>,\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 {\n type CngxStatCardAriaLabels,\n type CngxStatCardConfig,\n type CngxStatCardResolvedAriaLabels,\n} 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 { injectStatCardAriaLabels, injectStatCardConfig } from './config/inject-stat-card-config';\nexport {\n CNGX_STAT_CARD_LANGUAGE_EN,\n type CngxStatCardLanguageSection,\n} from './i18n/stat-card-language-section';\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":";;;;;;;;;;;;AAoBA;;;;;;;AAOG;AACI,MAAM,0BAA0B,GAAgC;AACrE,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,aAAa,EAAE,gBAAgB;AAC/B,IAAA,aAAa,EAAE,0BAA0B;AACzC,IAAA,aAAa,EAAE,SAAS;;;AC5B1B;;;AAGG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CAAC,UAAU,EAAE,0BAA0B,CAAC;;ACJnG;;;;;;;;;;;;AAYG;AACI,MAAM,uBAAuB,GAAuB;AACzD,IAAA,gBAAgB,EAAE,MAAM;CACzB;AAED;;;;;;;;;;;;;;;;;AAiBG;MACU,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB;AACE,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,uBAAuB;AACvC,CAAA;;ACrCH;;;;;;;;;;;;;;;;AAgBG;SACa,oBAAoB,GAAA;AAClC,IAAA,OAAO,MAAM,CAAC,qBA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