@cngx/ui 0.1.0-rc.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
|
@@ -4,18 +4,19 @@ import { CngxCard } from '@cngx/common/card';
|
|
|
4
4
|
import * as i1 from '@cngx/common/data';
|
|
5
5
|
import { CngxStatCoordinator, resolveAsyncView, CNGX_STAT } from '@cngx/common/data';
|
|
6
6
|
export { CNGX_STAT, CngxStatCaption, CngxStatDelta, CngxStatLabel, CngxStatValue } from '@cngx/common/data';
|
|
7
|
+
import { CngxIconSvg } from '@cngx/common/display';
|
|
7
8
|
import { CngxSkeleton } from '@cngx/common/layout';
|
|
8
9
|
import { createFilledOverrideMerge, injectLoadingConfig, createLatencyProbe, resolveLoadingTreatment, createOverrideMerge } from '@cngx/core/utils';
|
|
9
10
|
import { CngxEmptyState } from '@cngx/ui/empty-state';
|
|
10
11
|
import { CngxLoadingIndicator } from '@cngx/ui/feedback';
|
|
12
|
+
import { CNGX_ICON_ALERT, CNGX_ICON_EXCLAMATION } from '@cngx/utils';
|
|
11
13
|
import { createLanguageSection } from '@cngx/core/i18n';
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* The English stat-card section: the single source of the stat card's English
|
|
15
17
|
* copy. The `CNGX_STAT_CARD_CONFIG` labels default to it.
|
|
16
18
|
*
|
|
17
|
-
* @
|
|
18
|
-
* @since 0.1.0
|
|
19
|
+
* @since 0.3.0
|
|
19
20
|
* @relatedTo CNGX_STAT_CARD_CONFIG
|
|
20
21
|
*/
|
|
21
22
|
const CNGX_STAT_CARD_LANGUAGE_EN = {
|
|
@@ -60,9 +61,8 @@ const CNGX_STAT_CARD_DEFAULTS = {
|
|
|
60
61
|
* provide the token explicitly - `inject(CNGX_STAT_CARD_CONFIG)` always
|
|
61
62
|
* resolves.
|
|
62
63
|
*
|
|
63
|
-
* @category ui/stat-card
|
|
64
64
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/config/stat-card.config.defaults.ts
|
|
65
|
-
* @since 0.
|
|
65
|
+
* @since 0.3.0
|
|
66
66
|
* @relatedTo provideStatCardConfig, provideStatCardConfigAt, injectStatCardConfig
|
|
67
67
|
*/
|
|
68
68
|
const CNGX_STAT_CARD_CONFIG = new InjectionToken('CNGX_STAT_CARD_CONFIG', {
|
|
@@ -84,8 +84,7 @@ const CNGX_STAT_CARD_CONFIG = new InjectionToken('CNGX_STAT_CARD_CONFIG', {
|
|
|
84
84
|
* }
|
|
85
85
|
* ```
|
|
86
86
|
*
|
|
87
|
-
* @
|
|
88
|
-
* @since 0.1.0
|
|
87
|
+
* @since 0.3.0
|
|
89
88
|
*/
|
|
90
89
|
function injectStatCardConfig() {
|
|
91
90
|
return inject(CNGX_STAT_CARD_CONFIG);
|
|
@@ -98,8 +97,7 @@ function injectStatCardConfig() {
|
|
|
98
97
|
* in injection context; read it inside a `computed()`, a template or a
|
|
99
98
|
* handler, and untracked where it builds live-region text.
|
|
100
99
|
*
|
|
101
|
-
* @
|
|
102
|
-
* @since 0.1.0
|
|
100
|
+
* @since 0.3.0
|
|
103
101
|
*/
|
|
104
102
|
function injectStatCardAriaLabels() {
|
|
105
103
|
return createFilledOverrideMerge(injectStatCardSiteCopy(), injectStatCardConfig().ariaLabels);
|
|
@@ -137,20 +135,23 @@ const DEFAULT_SKELETON_SLOTS = ['label', 'value', 'caption'];
|
|
|
137
135
|
* </cngx-stat-card>
|
|
138
136
|
* ```
|
|
139
137
|
*
|
|
140
|
-
* @category ui/stat-card
|
|
141
|
-
* @docsKind primary
|
|
142
138
|
* @wcag AA
|
|
143
139
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card.component.ts
|
|
144
|
-
* @since 0.
|
|
140
|
+
* @since 0.3.0
|
|
145
141
|
* @relatedTo CngxStat, CngxStatCoordinator, CngxStatCardViz, CngxStatCardFooter, CngxCard
|
|
146
142
|
*
|
|
147
|
-
* <example-url
|
|
148
|
-
* <example-url
|
|
149
|
-
* <example-url
|
|
143
|
+
* <example-url>/#/ui/stat-card/basic/composed-kpi-tile</example-url>
|
|
144
|
+
* <example-url>/#/ui/stat-card/async/latency-aware-loading</example-url>
|
|
145
|
+
* <example-url>/#/ui/stat-card/async/error-and-refresh</example-url>
|
|
146
|
+
* @axis level organism
|
|
150
147
|
*/
|
|
151
148
|
class CngxStatCard {
|
|
152
149
|
/** @internal The shared slot-id brain, applied as a host directive. */
|
|
153
150
|
coordinator = inject(CngxStatCoordinator, { host: true });
|
|
151
|
+
/** @internal - projected over the empty-state's stock archive glyph. */
|
|
152
|
+
errorIcon = CNGX_ICON_ALERT;
|
|
153
|
+
/** @internal - mark inside the stale badge. */
|
|
154
|
+
staleIcon = CNGX_ICON_EXCLAMATION;
|
|
154
155
|
config = injectStatCardConfig();
|
|
155
156
|
ariaLabels = injectStatCardAriaLabels();
|
|
156
157
|
/**
|
|
@@ -345,21 +346,7 @@ class CngxStatCard {
|
|
|
345
346
|
<!-- The stock empty-state glyph is an archive box, which reads
|
|
346
347
|
"nothing here" rather than "this failed". Projecting into the
|
|
347
348
|
icon slot hides it. Decorative: the title carries the message. -->
|
|
348
|
-
<svg
|
|
349
|
-
cngxEmptyStateIcon
|
|
350
|
-
class="cngx-stat-card__error-icon"
|
|
351
|
-
aria-hidden="true"
|
|
352
|
-
viewBox="0 0 24 24"
|
|
353
|
-
fill="none"
|
|
354
|
-
stroke="currentColor"
|
|
355
|
-
stroke-width="1.5"
|
|
356
|
-
stroke-linecap="round"
|
|
357
|
-
stroke-linejoin="round"
|
|
358
|
-
>
|
|
359
|
-
<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" />
|
|
360
|
-
<path d="M12 9v4" />
|
|
361
|
-
<path d="M12 17h.01" />
|
|
362
|
-
</svg>
|
|
349
|
+
<svg cngxEmptyStateIcon class="cngx-stat-card__error-icon" [cngxIconSvg]="errorIcon"></svg>
|
|
363
350
|
</cngx-empty-state>
|
|
364
351
|
}
|
|
365
352
|
@case ('empty') {
|
|
@@ -385,18 +372,23 @@ class CngxStatCard {
|
|
|
385
372
|
<ng-content select="[cngxStatCardViz]" />
|
|
386
373
|
|
|
387
374
|
@if (activeView() === 'content+error') {
|
|
388
|
-
<p class="cngx-stat-card__stale">
|
|
375
|
+
<p class="cngx-stat-card__stale">
|
|
376
|
+
<span class="cngx-stat-card__stale-glyph" aria-hidden="true">
|
|
377
|
+
<svg [cngxIconSvg]="staleIcon"></svg>
|
|
378
|
+
</span>
|
|
379
|
+
{{ resolvedStaleText() }}
|
|
380
|
+
</p>
|
|
389
381
|
}
|
|
390
382
|
}
|
|
391
383
|
}
|
|
392
384
|
|
|
393
385
|
<ng-content select="[cngxStatCardFooter]" />
|
|
394
386
|
</cngx-card>
|
|
395
|
-
`, isInline: true, styles: ["@layer cngx.tokens{.cngx-stat-card{display:block;position:relative;--cngx-stat-card-gap: var(--cngx-space-sm, .5rem);--cngx-stat-card-row-gap: var(--cngx-space-xs, .25rem);--cngx-stat-card-viz-margin: var(--cngx-space-sm, .5rem);--cngx-stat-card-footer-padding: var(--cngx-space-xs, .25rem);--cngx-stat-card-refresh-inset: var(--cngx-space-sm, .5rem);--cngx-stat-card-body-min-height: 6rem}}@layer cngx.components{@scope(.cngx-stat-card){.cngx-stat-card__stat,.cngx-stat-card__spinner,.cngx-stat-card__error,.cngx-stat-card__empty{min-block-size:var(--cngx-stat-card-body-min-height)}.cngx-stat-card__stat{display:flex;flex-direction:column;justify-content:center;gap:var(--cngx-stat-card-gap)}.cngx-stat-card__row{display:flex;align-items:baseline;gap:var(--cngx-stat-card-row-gap);flex-wrap:wrap}.cngx-stat-card__viz{display:block;margin-block-start:var(--cngx-stat-card-viz-margin)}.cngx-stat-card__footer{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);padding-block-start:var(--cngx-stat-card-footer-padding);font-size:var(--cngx-stat-card-footer-size, .8125rem);color:var(--cngx-stat-card-footer-color, var(--cngx-color-text-muted, oklch(.5 .01 250)))}.cngx-stat-card__footer .cngx-card-timestamp{font-size:inherit;color:inherit}.cngx-stat-card__error.cngx-empty-state,.cngx-stat-card__empty.cngx-empty-state{--cngx-empty-padding: 0px;--cngx-empty-gap: var(--cngx-space-xs, .25rem);--cngx-empty-title-size: var(--cngx-stat-card-error-title-size, .9375rem);display:flex;flex-direction:column;justify-content:center;text-align:center}.cngx-stat-card__error.cngx-empty-state{color:var(--cngx-stat-card-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__error .cngx-empty-state__title{color:inherit}.cngx-stat-card__error-icon{
|
|
387
|
+
`, isInline: true, styles: ["@layer cngx.tokens{.cngx-stat-card{display:block;position:relative;--cngx-stat-card-gap: var(--cngx-space-sm, .5rem);--cngx-stat-card-row-gap: var(--cngx-space-xs, .25rem);--cngx-stat-card-viz-margin: var(--cngx-space-sm, .5rem);--cngx-stat-card-footer-padding: var(--cngx-space-xs, .25rem);--cngx-stat-card-refresh-inset: var(--cngx-space-sm, .5rem);--cngx-stat-card-body-min-height: 6rem}}@layer cngx.components{@scope(.cngx-stat-card){.cngx-stat-card__stat,.cngx-stat-card__spinner,.cngx-stat-card__error,.cngx-stat-card__empty{min-block-size:var(--cngx-stat-card-body-min-height)}.cngx-stat-card__stat{display:flex;flex-direction:column;justify-content:center;gap:var(--cngx-stat-card-gap)}.cngx-stat-card__row{display:flex;align-items:baseline;gap:var(--cngx-stat-card-row-gap);flex-wrap:wrap}.cngx-stat-card__viz{display:block;margin-block-start:var(--cngx-stat-card-viz-margin)}.cngx-stat-card__footer{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);padding-block-start:var(--cngx-stat-card-footer-padding);font-size:var(--cngx-stat-card-footer-size, .8125rem);color:var(--cngx-stat-card-footer-color, var(--cngx-color-text-muted, oklch(.5 .01 250)))}.cngx-stat-card__footer .cngx-card-timestamp{font-size:inherit;color:inherit}.cngx-stat-card__error.cngx-empty-state,.cngx-stat-card__empty.cngx-empty-state{--cngx-empty-padding: 0px;--cngx-empty-gap: var(--cngx-space-xs, .25rem);--cngx-empty-title-size: var(--cngx-stat-card-error-title-size, .9375rem);display:flex;flex-direction:column;justify-content:center;text-align:center}.cngx-stat-card__error.cngx-empty-state{color:var( --cngx-stat-card-error-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-stat-card__error .cngx-empty-state__title{color:inherit}.cngx-stat-card__error .cngx-stat-card__error-icon{--cngx-icon-svg-size: var(--cngx-stat-card-error-icon-size, 22px);--cngx-icon-svg-stroke-width: 1.5;vertical-align:baseline;color:var(--cngx-stat-card-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__refresh{position:absolute;inset-block-start:var(--cngx-stat-card-refresh-inset);inset-inline-end:var(--cngx-stat-card-refresh-inset);pointer-events:none}.cngx-stat-card__refresh .cngx-loading-indicator__spinner{--cngx-loading-indicator-size: var(--cngx-stat-card-refresh-size, 14px)}.cngx-stat-card__stale{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);margin:0;margin-block-start:var(--cngx-stat-card-row-gap);font-size:var(--cngx-stat-card-stale-size, .8125rem);color:var(--cngx-stat-card-stale-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__stale-glyph{flex:none;display:grid;place-items:center;inline-size:var(--cngx-stat-card-stale-glyph-size, 1rem);block-size:var(--cngx-stat-card-stale-glyph-size, 1rem);border-radius:50%;color:var(--cngx-stat-card-stale-glyph-color, var(--cngx-color-surface, oklch(1 0 0)));background:var(--cngx-stat-card-stale-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__stale-glyph>.cngx-icon-svg{--cngx-icon-svg-size: calc(var(--cngx-stat-card-stale-glyph-size, 1rem) * .54 * 24 / 17.5);display:block}.cngx-stat-card__spinner{display:flex;align-items:center;justify-content:center}.cngx-stat-card__skeleton-line{--cngx-stat-card-skeleton-base: var( --cngx-stat-card-skeleton-color, var(--cngx-skeleton-bg, var(--cngx-color-border, oklch(.88 .005 250))) );display:block;border-radius:var(--cngx-stat-card-skeleton-radius, var(--cngx-radius-sm, 6px));background:var(--cngx-stat-card-skeleton-base)}.cngx-stat-card__stat--skeleton.cngx-skeleton--shimmer .cngx-stat-card__skeleton-line{background-image:linear-gradient(90deg,var(--cngx-stat-card-skeleton-base) 0%,var( --cngx-skeleton-shimmer-color, color-mix(in oklch, var(--cngx-stat-card-skeleton-base), white 18%) ) 50%,var(--cngx-stat-card-skeleton-base) 100%);background-size:200% 100%;animation:cngx-stat-card-shimmer var(--cngx-skeleton-shimmer-duration, 1.5s) ease-in-out infinite}.cngx-stat-card__skeleton-line--label{inline-size:var(--cngx-stat-card-skeleton-label-width, 45%);block-size:1lh}.cngx-stat-card__skeleton-line--value{inline-size:var(--cngx-stat-card-skeleton-value-width, 55%);font-size:var(--cngx-metric-value-size, 1.75rem);line-height:1.2;block-size:1lh}.cngx-stat-card__skeleton-line--delta{inline-size:var(--cngx-stat-card-skeleton-delta-width, 3rem);block-size:1lh}.cngx-stat-card__skeleton-line--caption{inline-size:var(--cngx-stat-card-skeleton-caption-width, 65%);block-size:1lh}}}@keyframes cngx-stat-card-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}\n"], dependencies: [{ kind: "component", type: CngxCard, selector: "cngx-card", inputs: ["as", "href", "role", "ariaLabel", "selected", "selectable", "loading", "disabled", "disabledReason"], outputs: ["selectedChange", "clicked"] }, { kind: "component", type: CngxIconSvg, selector: "svg[cngxIconSvg]", inputs: ["cngxIconSvg"] }, { kind: "directive", type: CngxSkeleton, selector: "[cngxSkeleton]", inputs: ["cngxSkeleton", "shimmer", "count"], exportAs: ["cngxSkeleton"] }, { kind: "component", type: CngxLoadingIndicator, selector: "cngx-loading-indicator", inputs: ["state", "loading", "variant", "label", "delay", "minDwell"] }, { kind: "component", type: CngxEmptyState, selector: "cngx-empty-state", inputs: ["title", "description", "state"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
396
388
|
}
|
|
397
389
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: CngxStatCard, decorators: [{
|
|
398
390
|
type: Component,
|
|
399
|
-
args: [{ selector: 'cngx-stat-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CngxCard, CngxSkeleton, CngxLoadingIndicator, CngxEmptyState], hostDirectives: [CngxStatCoordinator], providers: [{ provide: CNGX_STAT, useExisting: CngxStatCoordinator }], host: {
|
|
391
|
+
args: [{ selector: 'cngx-stat-card', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CngxCard, CngxIconSvg, CngxSkeleton, CngxLoadingIndicator, CngxEmptyState], hostDirectives: [CngxStatCoordinator], providers: [{ provide: CNGX_STAT, useExisting: CngxStatCoordinator }], host: {
|
|
400
392
|
class: 'cngx-stat-card',
|
|
401
393
|
'[attr.aria-busy]': 'busy() || null',
|
|
402
394
|
'[class.cngx-stat-card--busy]': 'busy()',
|
|
@@ -465,21 +457,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
465
457
|
<!-- The stock empty-state glyph is an archive box, which reads
|
|
466
458
|
"nothing here" rather than "this failed". Projecting into the
|
|
467
459
|
icon slot hides it. Decorative: the title carries the message. -->
|
|
468
|
-
<svg
|
|
469
|
-
cngxEmptyStateIcon
|
|
470
|
-
class="cngx-stat-card__error-icon"
|
|
471
|
-
aria-hidden="true"
|
|
472
|
-
viewBox="0 0 24 24"
|
|
473
|
-
fill="none"
|
|
474
|
-
stroke="currentColor"
|
|
475
|
-
stroke-width="1.5"
|
|
476
|
-
stroke-linecap="round"
|
|
477
|
-
stroke-linejoin="round"
|
|
478
|
-
>
|
|
479
|
-
<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" />
|
|
480
|
-
<path d="M12 9v4" />
|
|
481
|
-
<path d="M12 17h.01" />
|
|
482
|
-
</svg>
|
|
460
|
+
<svg cngxEmptyStateIcon class="cngx-stat-card__error-icon" [cngxIconSvg]="errorIcon"></svg>
|
|
483
461
|
</cngx-empty-state>
|
|
484
462
|
}
|
|
485
463
|
@case ('empty') {
|
|
@@ -505,14 +483,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
505
483
|
<ng-content select="[cngxStatCardViz]" />
|
|
506
484
|
|
|
507
485
|
@if (activeView() === 'content+error') {
|
|
508
|
-
<p class="cngx-stat-card__stale">
|
|
486
|
+
<p class="cngx-stat-card__stale">
|
|
487
|
+
<span class="cngx-stat-card__stale-glyph" aria-hidden="true">
|
|
488
|
+
<svg [cngxIconSvg]="staleIcon"></svg>
|
|
489
|
+
</span>
|
|
490
|
+
{{ resolvedStaleText() }}
|
|
491
|
+
</p>
|
|
509
492
|
}
|
|
510
493
|
}
|
|
511
494
|
}
|
|
512
495
|
|
|
513
496
|
<ng-content select="[cngxStatCardFooter]" />
|
|
514
497
|
</cngx-card>
|
|
515
|
-
`, styles: ["@layer cngx.tokens{.cngx-stat-card{display:block;position:relative;--cngx-stat-card-gap: var(--cngx-space-sm, .5rem);--cngx-stat-card-row-gap: var(--cngx-space-xs, .25rem);--cngx-stat-card-viz-margin: var(--cngx-space-sm, .5rem);--cngx-stat-card-footer-padding: var(--cngx-space-xs, .25rem);--cngx-stat-card-refresh-inset: var(--cngx-space-sm, .5rem);--cngx-stat-card-body-min-height: 6rem}}@layer cngx.components{@scope(.cngx-stat-card){.cngx-stat-card__stat,.cngx-stat-card__spinner,.cngx-stat-card__error,.cngx-stat-card__empty{min-block-size:var(--cngx-stat-card-body-min-height)}.cngx-stat-card__stat{display:flex;flex-direction:column;justify-content:center;gap:var(--cngx-stat-card-gap)}.cngx-stat-card__row{display:flex;align-items:baseline;gap:var(--cngx-stat-card-row-gap);flex-wrap:wrap}.cngx-stat-card__viz{display:block;margin-block-start:var(--cngx-stat-card-viz-margin)}.cngx-stat-card__footer{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);padding-block-start:var(--cngx-stat-card-footer-padding);font-size:var(--cngx-stat-card-footer-size, .8125rem);color:var(--cngx-stat-card-footer-color, var(--cngx-color-text-muted, oklch(.5 .01 250)))}.cngx-stat-card__footer .cngx-card-timestamp{font-size:inherit;color:inherit}.cngx-stat-card__error.cngx-empty-state,.cngx-stat-card__empty.cngx-empty-state{--cngx-empty-padding: 0px;--cngx-empty-gap: var(--cngx-space-xs, .25rem);--cngx-empty-title-size: var(--cngx-stat-card-error-title-size, .9375rem);display:flex;flex-direction:column;justify-content:center;text-align:center}.cngx-stat-card__error.cngx-empty-state{color:var(--cngx-stat-card-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__error .cngx-empty-state__title{color:inherit}.cngx-stat-card__error-icon{
|
|
498
|
+
`, styles: ["@layer cngx.tokens{.cngx-stat-card{display:block;position:relative;--cngx-stat-card-gap: var(--cngx-space-sm, .5rem);--cngx-stat-card-row-gap: var(--cngx-space-xs, .25rem);--cngx-stat-card-viz-margin: var(--cngx-space-sm, .5rem);--cngx-stat-card-footer-padding: var(--cngx-space-xs, .25rem);--cngx-stat-card-refresh-inset: var(--cngx-space-sm, .5rem);--cngx-stat-card-body-min-height: 6rem}}@layer cngx.components{@scope(.cngx-stat-card){.cngx-stat-card__stat,.cngx-stat-card__spinner,.cngx-stat-card__error,.cngx-stat-card__empty{min-block-size:var(--cngx-stat-card-body-min-height)}.cngx-stat-card__stat{display:flex;flex-direction:column;justify-content:center;gap:var(--cngx-stat-card-gap)}.cngx-stat-card__row{display:flex;align-items:baseline;gap:var(--cngx-stat-card-row-gap);flex-wrap:wrap}.cngx-stat-card__viz{display:block;margin-block-start:var(--cngx-stat-card-viz-margin)}.cngx-stat-card__footer{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);padding-block-start:var(--cngx-stat-card-footer-padding);font-size:var(--cngx-stat-card-footer-size, .8125rem);color:var(--cngx-stat-card-footer-color, var(--cngx-color-text-muted, oklch(.5 .01 250)))}.cngx-stat-card__footer .cngx-card-timestamp{font-size:inherit;color:inherit}.cngx-stat-card__error.cngx-empty-state,.cngx-stat-card__empty.cngx-empty-state{--cngx-empty-padding: 0px;--cngx-empty-gap: var(--cngx-space-xs, .25rem);--cngx-empty-title-size: var(--cngx-stat-card-error-title-size, .9375rem);display:flex;flex-direction:column;justify-content:center;text-align:center}.cngx-stat-card__error.cngx-empty-state{color:var( --cngx-stat-card-error-color, var( --cngx-color-danger-text, oklch(from var(--cngx-color-danger, oklch(.6 .18 25)) .46 c h) ) )}.cngx-stat-card__error .cngx-empty-state__title{color:inherit}.cngx-stat-card__error .cngx-stat-card__error-icon{--cngx-icon-svg-size: var(--cngx-stat-card-error-icon-size, 22px);--cngx-icon-svg-stroke-width: 1.5;vertical-align:baseline;color:var(--cngx-stat-card-error-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__refresh{position:absolute;inset-block-start:var(--cngx-stat-card-refresh-inset);inset-inline-end:var(--cngx-stat-card-refresh-inset);pointer-events:none}.cngx-stat-card__refresh .cngx-loading-indicator__spinner{--cngx-loading-indicator-size: var(--cngx-stat-card-refresh-size, 14px)}.cngx-stat-card__stale{display:flex;align-items:center;gap:var(--cngx-stat-card-row-gap);margin:0;margin-block-start:var(--cngx-stat-card-row-gap);font-size:var(--cngx-stat-card-stale-size, .8125rem);color:var(--cngx-stat-card-stale-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__stale-glyph{flex:none;display:grid;place-items:center;inline-size:var(--cngx-stat-card-stale-glyph-size, 1rem);block-size:var(--cngx-stat-card-stale-glyph-size, 1rem);border-radius:50%;color:var(--cngx-stat-card-stale-glyph-color, var(--cngx-color-surface, oklch(1 0 0)));background:var(--cngx-stat-card-stale-color, var(--cngx-color-danger, oklch(.6 .18 25)))}.cngx-stat-card__stale-glyph>.cngx-icon-svg{--cngx-icon-svg-size: calc(var(--cngx-stat-card-stale-glyph-size, 1rem) * .54 * 24 / 17.5);display:block}.cngx-stat-card__spinner{display:flex;align-items:center;justify-content:center}.cngx-stat-card__skeleton-line{--cngx-stat-card-skeleton-base: var( --cngx-stat-card-skeleton-color, var(--cngx-skeleton-bg, var(--cngx-color-border, oklch(.88 .005 250))) );display:block;border-radius:var(--cngx-stat-card-skeleton-radius, var(--cngx-radius-sm, 6px));background:var(--cngx-stat-card-skeleton-base)}.cngx-stat-card__stat--skeleton.cngx-skeleton--shimmer .cngx-stat-card__skeleton-line{background-image:linear-gradient(90deg,var(--cngx-stat-card-skeleton-base) 0%,var( --cngx-skeleton-shimmer-color, color-mix(in oklch, var(--cngx-stat-card-skeleton-base), white 18%) ) 50%,var(--cngx-stat-card-skeleton-base) 100%);background-size:200% 100%;animation:cngx-stat-card-shimmer var(--cngx-skeleton-shimmer-duration, 1.5s) ease-in-out infinite}.cngx-stat-card__skeleton-line--label{inline-size:var(--cngx-stat-card-skeleton-label-width, 45%);block-size:1lh}.cngx-stat-card__skeleton-line--value{inline-size:var(--cngx-stat-card-skeleton-value-width, 55%);font-size:var(--cngx-metric-value-size, 1.75rem);line-height:1.2;block-size:1lh}.cngx-stat-card__skeleton-line--delta{inline-size:var(--cngx-stat-card-skeleton-delta-width, 3rem);block-size:1lh}.cngx-stat-card__skeleton-line--caption{inline-size:var(--cngx-stat-card-skeleton-caption-width, 65%);block-size:1lh}}}@keyframes cngx-stat-card-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}\n"] }]
|
|
516
499
|
}], propDecorators: { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], loadingTreatment: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTreatment", required: false }] }], busyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "busyLabel", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], errorDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorDescription", required: false }] }], staleText: [{ type: i0.Input, args: [{ isSignal: true, alias: "staleText", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], live: [{ type: i0.Input, args: [{ isSignal: true, alias: "live", required: false }] }] } });
|
|
517
500
|
|
|
518
501
|
/**
|
|
@@ -524,9 +507,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
524
507
|
* the viz stays decorative unless the projected preset carries its own
|
|
525
508
|
* accessible name.
|
|
526
509
|
*
|
|
527
|
-
* @category ui/stat-card
|
|
528
510
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts
|
|
529
|
-
* @since 0.
|
|
511
|
+
* @since 0.3.0
|
|
530
512
|
* @relatedTo CngxStatCard, CngxStatCardFooter
|
|
531
513
|
*/
|
|
532
514
|
class CngxStatCardViz {
|
|
@@ -545,9 +527,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
545
527
|
* Marks the footer row of a {@link CngxStatCard} - a timestamp, a drill-down
|
|
546
528
|
* link, a `cngx-tag` row. Rendered below the stat block and the viz slot.
|
|
547
529
|
*
|
|
548
|
-
* @category ui/stat-card
|
|
549
530
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts
|
|
550
|
-
* @since 0.
|
|
531
|
+
* @since 0.3.0
|
|
551
532
|
* @relatedTo CngxStatCard, CngxStatCardViz
|
|
552
533
|
*/
|
|
553
534
|
class CngxStatCardFooter {
|
|
@@ -614,8 +595,7 @@ function mergeConfig(base, partial) {
|
|
|
614
595
|
* });
|
|
615
596
|
* ```
|
|
616
597
|
*
|
|
617
|
-
* @
|
|
618
|
-
* @since 0.1.0
|
|
598
|
+
* @since 0.3.0
|
|
619
599
|
*/
|
|
620
600
|
function provideStatCardConfig(...features) {
|
|
621
601
|
// Empty-features: skip the override so the root factory's
|
|
@@ -650,8 +630,7 @@ function provideStatCardConfig(...features) {
|
|
|
650
630
|
* class LiveTiles {}
|
|
651
631
|
* ```
|
|
652
632
|
*
|
|
653
|
-
* @
|
|
654
|
-
* @since 0.1.0
|
|
633
|
+
* @since 0.3.0
|
|
655
634
|
*/
|
|
656
635
|
function provideStatCardConfigAt(...features) {
|
|
657
636
|
// Empty-features call: parent value flows through untouched. Skipping the
|
|
@@ -687,8 +666,7 @@ function provideStatCardConfigAt(...features) {
|
|
|
687
666
|
* );
|
|
688
667
|
* ```
|
|
689
668
|
*
|
|
690
|
-
* @
|
|
691
|
-
* @since 0.1.0
|
|
669
|
+
* @since 0.3.0
|
|
692
670
|
*/
|
|
693
671
|
function withStatCardAriaLabels(labels) {
|
|
694
672
|
return { kind: 'ariaLabels', payload: labels };
|
|
@@ -699,15 +677,14 @@ function withStatCardAriaLabels(labels) {
|
|
|
699
677
|
* observed; `'spinner'` and `'skeleton'` pin it app-wide. Per-instance
|
|
700
678
|
* `[loadingTreatment]` still wins.
|
|
701
679
|
*
|
|
702
|
-
* @
|
|
703
|
-
* @since 0.1.0
|
|
680
|
+
* @since 0.3.0
|
|
704
681
|
*/
|
|
705
682
|
function withStatCardLoadingTreatment(treatment) {
|
|
706
683
|
return { kind: 'loadingTreatment', payload: { loadingTreatment: treatment } };
|
|
707
684
|
}
|
|
708
685
|
|
|
709
686
|
/**
|
|
710
|
-
* @module
|
|
687
|
+
* @module `@cngx/ui/stat-card`
|
|
711
688
|
*/
|
|
712
689
|
|
|
713
690
|
/**
|
|
@@ -1 +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,qBAAqB,CAAC;AACtC;AAEA;;;;;;;;;;AAUG;SACa,wBAAwB,GAAA;IACtC,OAAO,yBAAyB,CAAC,sBAAsB,EAAE,EAAE,oBA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ACE,YAAA,OAAO,EAAE,qBAAqB;YAC9B,UAAU,EAAE,MAAK;AACf,gBAAA,MAAM,MAAM,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAChE,gBAAA,OAAO,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC;YACrC,CAAC;AACF,SAAA;KACF;AACH;;ACnJA;;;;;;;;;;;;;;;;;;AAkBG;AACG,SAAU,sBAAsB,CACpC,MAA+D,EAAA;IAE/D,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE;AAChD;AAEA;;;;;;;;AAQG;AACG,SAAU,4BAA4B,CAC1C,SAA+B,EAAA;AAE/B,IAAA,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAAE,gBAAgB,EAAE,SAAS,EAAE,EAAE;AAC/E;;AC5CA;;AAEG;;ACFH;;AAEG;;;;"}
|
|
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 * @since 0.3.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 * @since 0.3.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 * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/config/stat-card.config.defaults.ts\n * @since 0.3.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 * @since 0.3.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 * @since 0.3.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 { CngxIconSvg } from '@cngx/common/display';\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';\nimport { CNGX_ICON_ALERT, CNGX_ICON_EXCLAMATION } from '@cngx/utils';\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 * @wcag AA\n * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card.component.ts\n * @since 0.3.0\n * @relatedTo CngxStat, CngxStatCoordinator, CngxStatCardViz, CngxStatCardFooter, CngxCard\n *\n * <example-url>/#/ui/stat-card/basic/composed-kpi-tile</example-url>\n * <example-url>/#/ui/stat-card/async/latency-aware-loading</example-url>\n * <example-url>/#/ui/stat-card/async/error-and-refresh</example-url>\n * @axis level organism\n */\n@Component({\n selector: 'cngx-stat-card',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [CngxCard, CngxIconSvg, 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 cngxEmptyStateIcon class=\"cngx-stat-card__error-icon\" [cngxIconSvg]=\"errorIcon\"></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\">\n <span class=\"cngx-stat-card__stale-glyph\" aria-hidden=\"true\">\n <svg [cngxIconSvg]=\"staleIcon\"></svg>\n </span>\n {{ resolvedStaleText() }}\n </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 /** @internal - projected over the empty-state's stock archive glyph. */\n protected readonly errorIcon = CNGX_ICON_ALERT;\n\n /** @internal - mark inside the stale badge. */\n protected readonly staleIcon = CNGX_ICON_EXCLAMATION;\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 * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts\n * @since 0.3.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 * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stat-card/stat-card-slots.ts\n * @since 0.3.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 * @since 0.3.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 * @since 0.3.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 * @since 0.3.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 * @since 0.3.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 * @since 0.3.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 '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