@slotted/angular 0.1.0-beta.16 → 0.1.0-beta.17
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/docs/dashboard-grid.json +6 -6
- package/docs/dashboard-grid.md +11 -5
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/layout-alignment.md +2 -2
- package/docs/guidelines/overviews.md +21 -1
- package/docs/page.json +2 -2
- package/docs/page.md +1 -1
- package/docs/skills/compose-screen/SKILL.md +10 -1
- package/docs/skills/review-screen/SKILL.md +22 -20
- package/docs/stat-card.json +7 -4
- package/docs/stat-card.md +4 -4
- package/fesm2022/slotted-angular-chart.mjs +6 -0
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +60 -18
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +26 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +37 -6
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-chart.d.ts +9 -9
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +27 -7
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-page.d.ts +7 -1
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +8 -3
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
|
@@ -38,6 +38,12 @@ function injectPageDefaults() {
|
|
|
38
38
|
|
|
39
39
|
/** The custom property the scroller carries for what sticks above the footer. */
|
|
40
40
|
const STICKY_BOTTOM_PROPERTY = '--slotted-page-sticky-bottom';
|
|
41
|
+
/**
|
|
42
|
+
* The custom property the scroller carries for its own visible height: a
|
|
43
|
+
* sticky element of the consumer's caps its height by it rather than by the
|
|
44
|
+
* viewport, which an inset canvas makes taller than the scroller.
|
|
45
|
+
*/
|
|
46
|
+
const SCROLLPORT_BLOCK_SIZE_PROPERTY = '--slotted-page-scrollport-block-size';
|
|
41
47
|
/**
|
|
42
48
|
* The inset lives on the body, so content written straight into the page is
|
|
43
49
|
* drawn against the viewport's edges and nothing else says why. A header is
|
|
@@ -142,15 +148,28 @@ class SlPage {
|
|
|
142
148
|
const bar = () => this.native.querySelector(':scope > [data-part="footer"]');
|
|
143
149
|
/* The property inherits, so every write invalidates style for everything
|
|
144
150
|
under the scroller: it is written only when the height changes. */
|
|
151
|
+
const write = (property, length) => {
|
|
152
|
+
const value = `${length}px`;
|
|
153
|
+
if (target.style.getPropertyValue(property) === value)
|
|
154
|
+
return;
|
|
155
|
+
target.style.setProperty(property, value);
|
|
156
|
+
};
|
|
157
|
+
/* Under `self` the page's own scroll part is what scrolls. */
|
|
158
|
+
const scroller = (this.resolvedScroll() === 'self'
|
|
159
|
+
? this.native.querySelector(':scope > [data-part="scroll"]')
|
|
160
|
+
: null) ?? target;
|
|
145
161
|
const publish = () => {
|
|
146
162
|
const height = this.resolvedScroll() === 'self' ? 0 : (bar()?.offsetHeight ?? 0);
|
|
147
|
-
|
|
148
|
-
if (target.style.getPropertyValue(STICKY_BOTTOM_PROPERTY) === value)
|
|
149
|
-
return;
|
|
150
|
-
target.style.setProperty(STICKY_BOTTOM_PROPERTY, value);
|
|
163
|
+
write(STICKY_BOTTOM_PROPERTY, height);
|
|
151
164
|
};
|
|
152
|
-
|
|
165
|
+
/* The scroller is read on a size report only, never while rendering:
|
|
166
|
+
the observer reports once as soon as it observes. */
|
|
167
|
+
const observer = new ResizeObserver(() => {
|
|
168
|
+
publish();
|
|
169
|
+
write(SCROLLPORT_BLOCK_SIZE_PROPERTY, scroller.clientHeight);
|
|
170
|
+
});
|
|
153
171
|
observer.observe(this.native);
|
|
172
|
+
observer.observe(scroller);
|
|
154
173
|
const footer = bar();
|
|
155
174
|
if (footer !== null)
|
|
156
175
|
observer.observe(footer);
|
|
@@ -158,6 +177,7 @@ class SlPage {
|
|
|
158
177
|
destroyRef.onDestroy(() => {
|
|
159
178
|
observer.disconnect();
|
|
160
179
|
target.style.removeProperty(STICKY_BOTTOM_PROPERTY);
|
|
180
|
+
target.style.removeProperty(SCROLLPORT_BLOCK_SIZE_PROPERTY);
|
|
161
181
|
});
|
|
162
182
|
});
|
|
163
183
|
}
|
|
@@ -279,5 +299,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
279
299
|
* Generated bundle index. Do not edit.
|
|
280
300
|
*/
|
|
281
301
|
|
|
282
|
-
export { PAGE_DEFAULTS, STICKY_BOTTOM_PROPERTY, SlPage, SlPageBody, SlPageFooter, injectPageDefaults, providePageDefaults };
|
|
302
|
+
export { PAGE_DEFAULTS, SCROLLPORT_BLOCK_SIZE_PROPERTY, STICKY_BOTTOM_PROPERTY, SlPage, SlPageBody, SlPageFooter, injectPageDefaults, providePageDefaults };
|
|
283
303
|
//# sourceMappingURL=slotted-angular-page.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-page.mjs","sources":["../../page/src/page-defaults.ts","../../page/src/page.ts","../../page/src/slotted-angular-page.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The width of the content column: the container's own sizes. */\nexport type PageWidth = 'measure' | 'content' | 'wide' | 'full' | 'bleed';\n\n/** The inset of the content column from the edge of the page: the container's own steps. */\nexport type PageInset = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Who scrolls. `ancestor` puts the page inside whatever scrolls and makes it\n * at least as tall as that, so the footer has a bottom to stick to. `self`\n * makes the page's own scroll part the scroller, with the footer below it.\n */\nexport type PageScroll = 'ancestor' | 'self';\n\n/** The ground: the sunken canvas of an application, or the plain surface of a document. */\nexport type PageGround = 'sunken' | 'surface';\n\n/** Whether the root is the document's `main` landmark. */\nexport type PageLandmark = 'main' | 'none';\n\nexport interface PageDefaults {\n ground: PageGround;\n inset: PageInset;\n landmark: PageLandmark;\n scroll: PageScroll;\n width: PageWidth;\n}\n\nconst FALLBACK: PageDefaults = {\n ground: 'sunken',\n inset: 6,\n landmark: 'main',\n scroll: 'ancestor',\n width: 'wide',\n};\n\nexport const PAGE_DEFAULTS = new InjectionToken<PageDefaults>('slotted page defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its pages are laid out — the measure, the\n * inset, who scrolls, the ground — rather than repeating the same inputs on\n * every route. A page that states any of them itself still wins. Its words\n * come from the language in force (`provideSlotted`).\n */\nexport function providePageDefaults(defaults: Partial<PageDefaults>) {\n return {\n provide: PAGE_DEFAULTS,\n useFactory: (): PageDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a page renders as here, before it states anything of its own. */\nexport function injectPageDefaults(): PageDefaults {\n return inject(PAGE_DEFAULTS);\n}\n","import { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { findScrollParent } from '@slotted/core/sticky-header';\nimport { SlContainer } from '@slotted/angular/container';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlHeadingLevel } from '@slotted/angular/typography';\nimport { pageMessages, type PageMessages, type PartialMessages } from '@slotted/core/i18n';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectPageDefaults } from './page-defaults';\nimport type { PageGround, PageInset, PageLandmark, PageScroll, PageWidth } from './page-defaults';\n\nexport type {\n PageDefaults,\n PageGround,\n PageInset,\n PageLandmark,\n PageScroll,\n PageWidth,\n} from './page-defaults';\n\n/** The custom property the scroller carries for what sticks above the footer. */\nexport const STICKY_BOTTOM_PROPERTY = '--slotted-page-sticky-bottom';\n\n/**\n * The inset lives on the body, so content written straight into the page is\n * drawn against the viewport's edges and nothing else says why. A header is\n * not that content — it carries its own inset — so it is the one child the\n * check passes over.\n */\nfunction warnWithoutBody(root: HTMLElement) {\n const scroll = root.querySelector(':scope > [data-part=\"scroll\"]');\n if (scroll === null) return;\n const content = [...scroll.children].filter(\n (child) => child.getAttribute('data-ui') !== 'page-header',\n );\n if (content.length === 0) return;\n if (content.some((child) => child.getAttribute('data-part') === 'body')) return;\n console.warn(\n 'slPage has content outside slPageBody. Content outside the body receives no inset: wrap it in an element carrying slPageBody.',\n );\n}\n\n/**\n * The column of a screen: who scrolls, how wide the content is, where the\n * footer stays, how much air the body has.\n *\n * **The header is a direct child of what scrolls.** There is no header part: a\n * `sticky` element never leaves the box that contains it, so a wrapper exactly\n * the header's height would pin nothing. The element carrying `slPageHeader`\n * is projected first into the scroll part, beside the body.\n *\n * **The footer is projected outside the scroll part** — below the scroller\n * under `self`, stuck to the bottom of the root under `ancestor` — which is\n * what content projection is for. It keeps its box through its exit on\n * `open`, so the bar slides out rather than vanishing.\n *\n * **The element is the consumer's.** `<main slPage>` is the main landmark and\n * the directive adds nothing; `<div slPage>` gets `role=\"main\"` unless\n * `landmark=\"none\"` says the document already has one.\n */\n@Component({\n selector: '[slPage]',\n standalone: true,\n exportAs: 'slPage',\n template: `<div data-part=\"scroll\" data-part-scroll=\"\">\n <ng-content select=\"[slPageHeader]\" />\n <ng-content />\n </div>\n <ng-content select=\"[slPageFooter]\" />`,\n styleUrl: '../../../styles/src/page/page.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'page',\n 'data-ui-page': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-width]': 'resolvedWidth()',\n '[attr.data-scroll]': 'resolvedScroll()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-fill]': \"fill() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n },\n})\nexport class SlPage {\n /** Defaults to the provider, then `wide`. */\n readonly width = input<PageWidth | undefined>(undefined);\n /** Defaults to the provider, then `6`. */\n readonly inset = input<PageInset | undefined>(undefined);\n /** Defaults to the provider, then `ancestor`. */\n readonly scroll = input<PageScroll | undefined>(undefined);\n /** Defaults to the provider, then `sunken`. */\n readonly ground = input<PageGround | undefined>(undefined);\n /** Defaults to the provider, then `main`. */\n readonly landmark = input<PageLandmark | undefined>(undefined);\n /**\n * Fills the height it was given: the body stops growing with its content and\n * the container inside it stretches to what is left. With `scroll=\"self\"`\n * nothing then scrolls outside the body, so the body's principal scroller —\n * not a form control, and at least half the body's height — is what\n * collapses the header: past 16 pixels down it snaps the area shut, and back\n * at its top it opens it again. From 600 pixels of the page's width up;\n * below it the page scrolls as it does without `fill`.\n */\n readonly fill = input(false, { transform: booleanAttribute });\n /** The body carries `aria-busy`; what stands in for the content is each family's own placeholder. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force: the footer's\n * accessible name (`footer`). A static `aria-label` on the footer still wins.\n */\n readonly messages = input<PartialMessages<PageMessages> | undefined>(undefined);\n\n private readonly defaults = injectPageDefaults();\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedInset = computed(() => this.inset() ?? this.defaults.inset);\n readonly resolvedScroll = computed(() => this.scroll() ?? this.defaults.scroll);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedLandmark = computed(() => this.landmark() ?? this.defaults.landmark);\n /** The family's words in the language in force, with this page's `messages` laid over them. */\n readonly t = injectMessages(pageMessages, this.messages);\n\n /** `role=\"main\"` only where the element is not already `main`, and only when asked. */\n protected readonly role = computed(() => {\n if (this.writtenRole !== null) return this.writtenRole;\n if (this.resolvedLandmark() !== 'main') return null;\n return this.native.tagName === 'MAIN' ? null : 'main';\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (isDevMode()) warnWithoutBody(this.native);\n if (typeof ResizeObserver === 'undefined') return;\n const target = findScrollParent(this.native) ?? this.native.ownerDocument.documentElement;\n const bar = () => this.native.querySelector<HTMLElement>(':scope > [data-part=\"footer\"]');\n /* The property inherits, so every write invalidates style for everything\n under the scroller: it is written only when the height changes. */\n const publish = () => {\n const height = this.resolvedScroll() === 'self' ? 0 : (bar()?.offsetHeight ?? 0);\n const value = `${height}px`;\n if (target.style.getPropertyValue(STICKY_BOTTOM_PROPERTY) === value) return;\n target.style.setProperty(STICKY_BOTTOM_PROPERTY, value);\n };\n const observer = new ResizeObserver(publish);\n observer.observe(this.native);\n const footer = bar();\n if (footer !== null) observer.observe(footer);\n publish();\n destroyRef.onDestroy(() => {\n observer.disconnect();\n target.style.removeProperty(STICKY_BOTTOM_PROPERTY);\n });\n });\n }\n}\n\n/**\n * The padded column: one container at the page's width and inset, and one\n * outline step deeper than the header — `slHeadingLevel` is a host directive,\n * so a section written directly in the body takes `h2`.\n */\n@Component({\n selector: '[slPageBody]',\n standalone: true,\n exportAs: 'slPageBody',\n imports: [SlContainer],\n hostDirectives: [SlHeadingLevel],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <ng-content />\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.aria-busy]': \"page?.loading() ? 'true' : null\",\n },\n})\nexport class SlPageBody {\n protected readonly page = inject(SlPage, { optional: true });\n}\n\n/**\n * The bar for the actions that finish the task. In the flow and never fixed:\n * it takes its own height, so the last line of content scrolls up to it\n * rather than under it. `open` keeps the element through its exit, so the bar\n * slides out rather than vanishing; the status reaches the DOM for the\n * stylesheet to transition on.\n */\n@Component({\n selector: '[slPageFooter]',\n standalone: true,\n exportAs: 'slPageFooter',\n imports: [SlContainer],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <div data-part=\"actions\" data-part-actions=\"\"><ng-content /></div>\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'footer',\n 'data-part-footer': '',\n '[attr.aria-label]': 'label()',\n '[attr.data-status]': 'status()',\n '[attr.hidden]': \"status() === 'unmounted' ? '' : null\",\n },\n})\nexport class SlPageFooter {\n /** Whether the bar is shown. `false` slides it out and hides it once it has left. */\n readonly open = input(true, { transform: booleanAttribute });\n\n protected readonly page = inject(SlPage, { optional: true });\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n protected readonly status = signal<PresenceStatus>('open');\n /** A footer outside a page still speaks the language in force. */\n private readonly own = injectMessages(pageMessages);\n\n protected readonly label = computed(\n () => this.written ?? (this.page === null ? this.own('footer') : this.page.t('footer')),\n );\n\n constructor() {\n const presence = createPresence({\n present: this.open(),\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.native);\n effect(() => presence.sync(this.open()));\n inject(DestroyRef).onDestroy(() => presence.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AA6BA,MAAM,QAAQ,GAAiB;AAC7B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,KAAK,EAAE,MAAM;CACd;MAEY,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;AAKG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,O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A,EAAA,UAAA,EAAA,aAAA,EAAA,sCAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAbb,CAAA;;AAEH,QAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAHG,WAAW,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAcV,YAAY,EAAA,UAAA,EAAA,CAAA;kBAlBxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;oBACxB,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,oBAAA,QAAQ,EAAE,CAAA;;AAEH,QAAA,CAAA;oBACP,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,IAAI,EAAE;AACJ,wBAAA,WAAW,EAAE,QAAQ;AACrB,wBAAA,kBAAkB,EAAE,EAAE;AACtB,wBAAA,mBAAmB,EAAE,SAAS;AAC9B,wBAAA,oBAAoB,EAAE,UAAU;AAChC,wBAAA,eAAe,EAAE,sCAAsC;AACxD,qBAAA;AACF,iBAAA;;;ACnOD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-page.mjs","sources":["../../page/src/page-defaults.ts","../../page/src/page.ts","../../page/src/slotted-angular-page.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\n/** The width of the content column: the container's own sizes. */\nexport type PageWidth = 'measure' | 'content' | 'wide' | 'full' | 'bleed';\n\n/** The inset of the content column from the edge of the page: the container's own steps. */\nexport type PageInset = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\n\n/**\n * Who scrolls. `ancestor` puts the page inside whatever scrolls and makes it\n * at least as tall as that, so the footer has a bottom to stick to. `self`\n * makes the page's own scroll part the scroller, with the footer below it.\n */\nexport type PageScroll = 'ancestor' | 'self';\n\n/** The ground: the sunken canvas of an application, or the plain surface of a document. */\nexport type PageGround = 'sunken' | 'surface';\n\n/** Whether the root is the document's `main` landmark. */\nexport type PageLandmark = 'main' | 'none';\n\nexport interface PageDefaults {\n ground: PageGround;\n inset: PageInset;\n landmark: PageLandmark;\n scroll: PageScroll;\n width: PageWidth;\n}\n\nconst FALLBACK: PageDefaults = {\n ground: 'sunken',\n inset: 6,\n landmark: 'main',\n scroll: 'ancestor',\n width: 'wide',\n};\n\nexport const PAGE_DEFAULTS = new InjectionToken<PageDefaults>('slotted page defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its pages are laid out — the measure, the\n * inset, who scrolls, the ground — rather than repeating the same inputs on\n * every route. A page that states any of them itself still wins. Its words\n * come from the language in force (`provideSlotted`).\n */\nexport function providePageDefaults(defaults: Partial<PageDefaults>) {\n return {\n provide: PAGE_DEFAULTS,\n useFactory: (): PageDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a page renders as here, before it states anything of its own. */\nexport function injectPageDefaults(): PageDefaults {\n return inject(PAGE_DEFAULTS);\n}\n","import { createPresence } from '@slotted/core/presence';\nimport type { PresenceStatus } from '@slotted/core/presence';\nimport { findScrollParent } from '@slotted/core/sticky-header';\nimport { SlContainer } from '@slotted/angular/container';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlHeadingLevel } from '@slotted/angular/typography';\nimport { pageMessages, type PageMessages, type PartialMessages } from '@slotted/core/i18n';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n isDevMode,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectPageDefaults } from './page-defaults';\nimport type { PageGround, PageInset, PageLandmark, PageScroll, PageWidth } from './page-defaults';\n\nexport type {\n PageDefaults,\n PageGround,\n PageInset,\n PageLandmark,\n PageScroll,\n PageWidth,\n} from './page-defaults';\n\n/** The custom property the scroller carries for what sticks above the footer. */\nexport const STICKY_BOTTOM_PROPERTY = '--slotted-page-sticky-bottom';\n\n/**\n * The custom property the scroller carries for its own visible height: a\n * sticky element of the consumer's caps its height by it rather than by the\n * viewport, which an inset canvas makes taller than the scroller.\n */\nexport const SCROLLPORT_BLOCK_SIZE_PROPERTY = '--slotted-page-scrollport-block-size';\n\n/**\n * The inset lives on the body, so content written straight into the page is\n * drawn against the viewport's edges and nothing else says why. A header is\n * not that content — it carries its own inset — so it is the one child the\n * check passes over.\n */\nfunction warnWithoutBody(root: HTMLElement) {\n const scroll = root.querySelector(':scope > [data-part=\"scroll\"]');\n if (scroll === null) return;\n const content = [...scroll.children].filter(\n (child) => child.getAttribute('data-ui') !== 'page-header',\n );\n if (content.length === 0) return;\n if (content.some((child) => child.getAttribute('data-part') === 'body')) return;\n console.warn(\n 'slPage has content outside slPageBody. Content outside the body receives no inset: wrap it in an element carrying slPageBody.',\n );\n}\n\n/**\n * The column of a screen: who scrolls, how wide the content is, where the\n * footer stays, how much air the body has.\n *\n * **The header is a direct child of what scrolls.** There is no header part: a\n * `sticky` element never leaves the box that contains it, so a wrapper exactly\n * the header's height would pin nothing. The element carrying `slPageHeader`\n * is projected first into the scroll part, beside the body.\n *\n * **The footer is projected outside the scroll part** — below the scroller\n * under `self`, stuck to the bottom of the root under `ancestor` — which is\n * what content projection is for. It keeps its box through its exit on\n * `open`, so the bar slides out rather than vanishing.\n *\n * **The element is the consumer's.** `<main slPage>` is the main landmark and\n * the directive adds nothing; `<div slPage>` gets `role=\"main\"` unless\n * `landmark=\"none\"` says the document already has one.\n */\n@Component({\n selector: '[slPage]',\n standalone: true,\n exportAs: 'slPage',\n template: `<div data-part=\"scroll\" data-part-scroll=\"\">\n <ng-content select=\"[slPageHeader]\" />\n <ng-content />\n </div>\n <ng-content select=\"[slPageFooter]\" />`,\n styleUrl: '../../../styles/src/page/page.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'page',\n 'data-ui-page': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.role]': 'role()',\n '[attr.data-width]': 'resolvedWidth()',\n '[attr.data-scroll]': 'resolvedScroll()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-fill]': \"fill() ? '' : null\",\n '[attr.data-loading]': \"loading() ? '' : null\",\n },\n})\nexport class SlPage {\n /** Defaults to the provider, then `wide`. */\n readonly width = input<PageWidth | undefined>(undefined);\n /** Defaults to the provider, then `6`. */\n readonly inset = input<PageInset | undefined>(undefined);\n /** Defaults to the provider, then `ancestor`. */\n readonly scroll = input<PageScroll | undefined>(undefined);\n /** Defaults to the provider, then `sunken`. */\n readonly ground = input<PageGround | undefined>(undefined);\n /** Defaults to the provider, then `main`. */\n readonly landmark = input<PageLandmark | undefined>(undefined);\n /**\n * Fills the height it was given: the body stops growing with its content and\n * the container inside it stretches to what is left. With `scroll=\"self\"`\n * nothing then scrolls outside the body, so the body's principal scroller —\n * not a form control, and at least half the body's height — is what\n * collapses the header: past 16 pixels down it snaps the area shut, and back\n * at its top it opens it again. From 600 pixels of the page's width up;\n * below it the page scrolls as it does without `fill`.\n */\n readonly fill = input(false, { transform: booleanAttribute });\n /** The body carries `aria-busy`; what stands in for the content is each family's own placeholder. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Words laid over the catalog of the language in force: the footer's\n * accessible name (`footer`). A static `aria-label` on the footer still wins.\n */\n readonly messages = input<PartialMessages<PageMessages> | undefined>(undefined);\n\n private readonly defaults = injectPageDefaults();\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n readonly resolvedWidth = computed(() => this.width() ?? this.defaults.width);\n readonly resolvedInset = computed(() => this.inset() ?? this.defaults.inset);\n readonly resolvedScroll = computed(() => this.scroll() ?? this.defaults.scroll);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedLandmark = computed(() => this.landmark() ?? this.defaults.landmark);\n /** The family's words in the language in force, with this page's `messages` laid over them. */\n readonly t = injectMessages(pageMessages, this.messages);\n\n /** `role=\"main\"` only where the element is not already `main`, and only when asked. */\n protected readonly role = computed(() => {\n if (this.writtenRole !== null) return this.writtenRole;\n if (this.resolvedLandmark() !== 'main') return null;\n return this.native.tagName === 'MAIN' ? null : 'main';\n });\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n if (isDevMode()) warnWithoutBody(this.native);\n if (typeof ResizeObserver === 'undefined') return;\n const target = findScrollParent(this.native) ?? this.native.ownerDocument.documentElement;\n const bar = () => this.native.querySelector<HTMLElement>(':scope > [data-part=\"footer\"]');\n /* The property inherits, so every write invalidates style for everything\n under the scroller: it is written only when the height changes. */\n const write = (property: string, length: number) => {\n const value = `${length}px`;\n if (target.style.getPropertyValue(property) === value) return;\n target.style.setProperty(property, value);\n };\n /* Under `self` the page's own scroll part is what scrolls. */\n const scroller =\n (this.resolvedScroll() === 'self'\n ? this.native.querySelector<HTMLElement>(':scope > [data-part=\"scroll\"]')\n : null) ?? target;\n const publish = () => {\n const height = this.resolvedScroll() === 'self' ? 0 : (bar()?.offsetHeight ?? 0);\n write(STICKY_BOTTOM_PROPERTY, height);\n };\n /* The scroller is read on a size report only, never while rendering:\n the observer reports once as soon as it observes. */\n const observer = new ResizeObserver(() => {\n publish();\n write(SCROLLPORT_BLOCK_SIZE_PROPERTY, scroller.clientHeight);\n });\n observer.observe(this.native);\n observer.observe(scroller);\n const footer = bar();\n if (footer !== null) observer.observe(footer);\n publish();\n destroyRef.onDestroy(() => {\n observer.disconnect();\n target.style.removeProperty(STICKY_BOTTOM_PROPERTY);\n target.style.removeProperty(SCROLLPORT_BLOCK_SIZE_PROPERTY);\n });\n });\n }\n}\n\n/**\n * The padded column: one container at the page's width and inset, and one\n * outline step deeper than the header — `slHeadingLevel` is a host directive,\n * so a section written directly in the body takes `h2`.\n */\n@Component({\n selector: '[slPageBody]',\n standalone: true,\n exportAs: 'slPageBody',\n imports: [SlContainer],\n hostDirectives: [SlHeadingLevel],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <ng-content />\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'body',\n 'data-part-body': '',\n '[attr.aria-busy]': \"page?.loading() ? 'true' : null\",\n },\n})\nexport class SlPageBody {\n protected readonly page = inject(SlPage, { optional: true });\n}\n\n/**\n * The bar for the actions that finish the task. In the flow and never fixed:\n * it takes its own height, so the last line of content scrolls up to it\n * rather than under it. `open` keeps the element through its exit, so the bar\n * slides out rather than vanishing; the status reaches the DOM for the\n * stylesheet to transition on.\n */\n@Component({\n selector: '[slPageFooter]',\n standalone: true,\n exportAs: 'slPageFooter',\n imports: [SlContainer],\n template: `<div slContainer [size]=\"page?.resolvedWidth()\" [inset]=\"page?.resolvedInset()\">\n <div data-part=\"actions\" data-part-actions=\"\"><ng-content /></div>\n </div>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'footer',\n 'data-part-footer': '',\n '[attr.aria-label]': 'label()',\n '[attr.data-status]': 'status()',\n '[attr.hidden]': \"status() === 'unmounted' ? '' : null\",\n },\n})\nexport class SlPageFooter {\n /** Whether the bar is shown. `false` slides it out and hides it once it has left. */\n readonly open = input(true, { transform: booleanAttribute });\n\n protected readonly page = inject(SlPage, { optional: true });\n private readonly written = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n protected readonly status = signal<PresenceStatus>('open');\n /** A footer outside a page still speaks the language in force. */\n private readonly own = injectMessages(pageMessages);\n\n protected readonly label = computed(\n () => this.written ?? (this.page === null ? this.own('footer') : this.page.t('footer')),\n );\n\n constructor() {\n const presence = createPresence({\n present: this.open(),\n skipInitialAnimation: true,\n onStatusChange: (next) => this.status.set(next),\n });\n presence.setNode(this.native);\n effect(() => presence.sync(this.open()));\n inject(DestroyRef).onDestroy(() => presence.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AA6BA,MAAM,QAAQ,GAAiB;AAC7B,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,QAAQ,EAAE,MAAM;AAChB,IAAA,MAAM,EAAE,UAAU;AAClB,IAAA,KAAK,EAAE,MAAM;CACd;MAEY,aAAa,GAAG,IAAI,cAAc,CAAe,uBAAuB,EAAE;AACrF,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;;AAKG;AACG,SAAU,mBAAmB,CAAC,QAA+B,EAAA;IACjE,OAAO;AACL,QAAA,OAAO,EAAE,aAAa;AACtB,QAAA,UAAU,EAAE,OAAqB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAC/D;AACH;AAEA;SACgB,kBAAkB,GAAA;AAChC,IAAA,OAAO,MAAM,CAAC,aAAa,CAAC;AAC9B;;ACtBA;AACO,MAAM,sBAAsB,GAAG;AAEtC;;;;AAIG;AACI,MAAM,8BAA8B,GAAG;AAE9C;;;;;AAKG;AACH,SAAS,eAAe,CAAC,IAAiB,EAAA;IACxC,MAAM,MAAM,GAAG,IAAI,CAAC,aA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AACF,iBAAA;;;ACzPD;;AAEG;;"}
|
|
@@ -5,6 +5,7 @@ import { statCardMessages } from '@slotted/core/i18n';
|
|
|
5
5
|
import { SlGlyph, SlIcon } from '@slotted/angular/icon';
|
|
6
6
|
import { SlSkeleton } from '@slotted/angular/skeleton';
|
|
7
7
|
import { SlVisuallyHidden } from '@slotted/angular/visually-hidden';
|
|
8
|
+
import { SPARKLINE_DEFAULTS_TOKEN } from '@slotted/angular/sparkline';
|
|
8
9
|
|
|
9
10
|
const STAT_CARD_DEFAULTS_TOKEN = new InjectionToken('slotted stat-card defaults', { providedIn: 'root', factory: () => ({}) });
|
|
10
11
|
/**
|
|
@@ -122,7 +123,7 @@ class SlStatCard {
|
|
|
122
123
|
labelledBy = computed(() => this.ownLabel !== null ? null : (this.ownLabelledBy ?? this.labelId), /* @ts-ignore */
|
|
123
124
|
...(ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []));
|
|
124
125
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlStatCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
125
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlStatCard, isStandalone: true, selector: "[slStatCard]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, goodWhen: { classPropertyName: "goodWhen", publicName: "goodWhen", isSignal: true, isRequired: false, transformFunction: null }, delta: { classPropertyName: "delta", publicName: "delta", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, formatOptions: { classPropertyName: "formatOptions", publicName: "formatOptions", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "stat-card", "data-ui-stat-card": "", "data-part": "root", "data-part-root": "", "role": "group" }, properties: { "attr.aria-labelledby": "labelledBy()", "attr.aria-busy": "loading() ? \"true\" : null", "attr.data-size": "resolvedSize()", "attr.data-fill": "resolvedFill()", "attr.data-layout": "resolvedLayout()", "attr.data-status": "status()", "attr.data-good-when": "resolvedGoodWhen()", "attr.data-tone": "resolvedTone() ?? null", "attr.data-loading": "loading() ? \"\" : null" } }, exportAs: ["slStatCard"], ngImport: i0, template: '<div data-part="body" data-part-body=""><ng-content /></div>', isInline: true, styles: ["@layer slotted.components{[data-ui-stat-card]{--_edge-width: var(--slotted-stat-card-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-stat-card-radius, var(--slotted-radius-lg, 8px));--_inset-block: var(--slotted-stat-card-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-stat-card-padding-inline, var(--slotted-space-6, 1rem));--_region-gap: var(--slotted-stat-card-region-gap, var(--slotted-space-3, .375rem));--_trend-gap: var(--slotted-stat-card-trend-gap, var(--slotted-space-6, 1rem));--_trend-size: var( --slotted-stat-card-trend-inline-size, calc(var(--slotted-space-12, 4rem) * 1.5) );--_surface: var(--slotted-stat-card-background, var(--slotted-surface-raised, Canvas));--_edge: var(--slotted-stat-card-border-color, var(--slotted-border-subtle, ButtonBorder));--_shadow: var(--slotted-stat-card-shadow, none);--_ink: var(--slotted-stat-card-color, var(--slotted-text, CanvasText));--_ink-muted: var(--slotted-stat-card-color-muted, var(--slotted-text-muted, GrayText));--_value-size: var(--slotted-stat-card-value-font-size, var(--slotted-font-size-3xl, 1.5rem));--_value-line: var(--slotted-stat-card-value-line-height, var(--slotted-line-height-3xl, 1.3));--_label-size: var(--slotted-stat-card-label-font-size, var(--slotted-font-size-sm, .8125rem));--_label-line: var(--slotted-stat-card-label-line-height, var(--slotted-line-height-sm, 1.45));--_delta-size: var(--slotted-stat-card-delta-font-size, var(--slotted-font-size-sm, .8125rem));--_prose-size: var(--slotted-stat-card-prose-font-size, var(--slotted-font-size-xs, .75rem));--_prose-line: var(--slotted-stat-card-prose-line-height, var(--slotted-line-height-xs, 1.4));--_indicator-size: var( --slotted-stat-card-indicator-size, var(--slotted-control-icon-size-sm, 14px) );--_value-size-narrow: var(--slotted-font-size-2xl, 1.25rem);--_value-line-narrow: var(--slotted-line-height-2xl, 1.4);--_tone-text: var(--_ink-muted);background-color:var(--_surface);border:none;border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_ink);container-name:stat-card;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:var( --slotted-stat-card-min-inline-size, calc(var(--slotted-space-12, 4rem) * 2.5) );padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:relative}[data-ui-stat-card]:before{border:var(--_edge-width) solid var(--_edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute}[data-ui-stat-card][data-size=sm]{--_inset-block: var(--slotted-stat-card-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-stat-card-padding-inline-sm, var(--slotted-space-5, .75rem));--_region-gap: var(--slotted-stat-card-region-gap-sm, var(--slotted-space-2, .25rem));--_trend-gap: var(--slotted-stat-card-trend-gap-sm, var(--slotted-space-5, .75rem));--_trend-size: var(--slotted-stat-card-trend-inline-size-sm, var(--slotted-space-12, 4rem));--_value-size: var( --slotted-stat-card-value-font-size-sm, var(--slotted-font-size-2xl, 1.25rem) );--_value-line: var( --slotted-stat-card-value-line-height-sm, var(--slotted-line-height-2xl, 1.4) );--_label-size: var( --slotted-stat-card-label-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_label-line: var( --slotted-stat-card-label-line-height-sm, var(--slotted-line-height-xs, 1.4) );--_delta-size: var( --slotted-stat-card-delta-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_value-size-narrow: var(--slotted-font-size-xl, 1.125rem);--_value-line-narrow: var(--slotted-line-height-xl, 1.45)}[data-ui-stat-card][data-size=lg]{--_inset-block: var(--slotted-stat-card-padding-block-lg, var(--slotted-space-8, 1.5rem));--_inset-inline: var(--slotted-stat-card-padding-inline-lg, var(--slotted-space-8, 1.5rem));--_region-gap: var(--slotted-stat-card-region-gap-lg, var(--slotted-space-4, .5rem));--_trend-gap: var(--slotted-stat-card-trend-gap-lg, var(--slotted-space-8, 1.5rem));--_trend-size: var( --slotted-stat-card-trend-inline-size-lg, calc(var(--slotted-space-12, 4rem) * 2) );--_value-size: var(--slotted-stat-card-value-font-size-lg, var(--slotted-font-size-4xl, 2rem));--_value-line: var( --slotted-stat-card-value-line-height-lg, var(--slotted-line-height-4xl, 1.2) );--_label-size: var( --slotted-stat-card-label-font-size-lg, var(--slotted-font-size-md, .875rem) );--_label-line: var( --slotted-stat-card-label-line-height-lg, var(--slotted-line-height-md, 1.5) );--_delta-size: var( --slotted-stat-card-delta-font-size-lg, var(--slotted-font-size-md, .875rem) );--_prose-size: var( --slotted-stat-card-prose-font-size-lg, var(--slotted-font-size-sm, .8125rem) );--_prose-line: var( --slotted-stat-card-prose-line-height-lg, var(--slotted-line-height-sm, 1.45) );--_indicator-size: var( --slotted-stat-card-indicator-size-lg, var(--slotted-control-icon-size-md, 16px) );--_value-size-narrow: var(--slotted-font-size-3xl, 1.5rem);--_value-line-narrow: var(--slotted-line-height-3xl, 1.3)}[data-ui-stat-card][data-fill=elevated]{--_shadow: var(--slotted-stat-card-shadow-elevated, var(--slotted-shadow-md))}[data-ui-stat-card][data-fill=subtle]{--_surface: var(--slotted-stat-card-background-subtle, var(--slotted-surface-sunken, Canvas))}[data-ui-stat-card][data-fill=plain]{--_surface: transparent;--_edge: transparent;--_shadow: none;--_inset-block: 0;--_inset-inline: 0;--_radius: var(--slotted-radius-none, 0px)}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{column-gap:var(--_trend-gap);display:grid;flex:1 1 auto;grid-template-areas:\"header header\" \"figure trend\" \"message message\";grid-template-columns:minmax(min-content,1fr) minmax(0,var(--_trend-size));grid-template-rows:auto minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_region-gap)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-body]{grid-template-areas:\"header\" \"figure\" \"trend\" \"message\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{contain:inline-size;grid-area:header}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-self:start;grid-area:figure;min-inline-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{--slotted-sparkline-ring-color: var(--_surface);align-self:center;container-name:stat-card-trend;container-type:inline-size;grid-area:trend;inline-size:100%;min-inline-size:0}}@container stat-card-trend (max-width: 39px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{visibility:hidden}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]{align-self:end;margin-block-start:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{contain:inline-size;grid-area:message}}@container stat-card (max-width: 219px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{grid-template-areas:\"header\" \"figure\" \"trend\" \"message\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:end;margin-block-start:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{font-size:var(--_value-size-narrow);line-height:var(--_value-line-narrow)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size-narrow) * var(--_value-line-narrow))}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;min-inline-size:0;row-gap:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-label]{color:var(--_ink-muted);flex:1 1 0%;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--_label-line);margin:0;min-inline-size:min(100%,10rem);overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-status]{display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-action]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);flex:none;font-size:var(--_label-size);line-height:var(--_label-line);margin-inline-start:auto}}@media(pointer:coarse){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)){position:relative}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)):before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;row-gap:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{contain:inline-size;flex:1 1 100%}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{align-items:baseline;color:var(--_ink);display:inline-flex;flex-wrap:wrap;gap:.15em;font-size:var(--_value-size);font-variant-numeric:proportional-nums;font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:var(--slotted-letter-spacing-tighter, -.03em);unicode-bidi:plaintext;line-height:var(--_value-line);margin:0;min-inline-size:0;overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-unit]{color:var(--_ink-muted);font-size:var(--_delta-size);font-weight:var(--slotted-font-weight-medium, 500);letter-spacing:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta]{align-items:center;color:var(--_tone-text);column-gap:var(--slotted-space-1, .125rem);display:inline-flex;font-size:var(--_delta-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-semibold, 600);line-height:1;unicode-bidi:plaintext;white-space:nowrap}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=neutral]{--_tone-text: var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=accent]{--_tone-text: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=secondary]{--_tone-text: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=success]{--_tone-text: var(--slotted-tone-success-text)}:scope [data-part-delta][data-tone=info]{--_tone-text: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=warning]{--_tone-text: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=danger]{--_tone-text: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-indicator]{--slotted-icon-size: var(--_indicator-size);display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-trend=down] [data-part-indicator]>[data-ui-icon]{rotate:x 180deg}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin-block-start:var(--_region-gap);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-period]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:center;display:flex}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=success] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-success-text)}:scope[data-tone=info] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=danger] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=warning] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=accent] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=secondary] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-fill=plain] [data-part-trend]{--slotted-sparkline-ring-color: var(--slotted-surface-raised, Canvas)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=error] [data-part-message]{color:var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=empty] [data-part-value],:scope[data-status=error] [data-part-value]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size) * var(--_value-line))}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size, var(--slotted-space-9, 2rem) )}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading][data-size=sm] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size-sm, var(--slotted-space-7, 1.25rem) )}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading][data-size=lg] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size-lg, var(--slotted-space-11, 3rem) )}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlStatCard, isStandalone: true, selector: "[slStatCard]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, goodWhen: { classPropertyName: "goodWhen", publicName: "goodWhen", isSignal: true, isRequired: false, transformFunction: null }, delta: { classPropertyName: "delta", publicName: "delta", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, formatOptions: { classPropertyName: "formatOptions", publicName: "formatOptions", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "stat-card", "data-ui-stat-card": "", "data-part": "root", "data-part-root": "", "role": "group" }, properties: { "attr.aria-labelledby": "labelledBy()", "attr.aria-busy": "loading() ? \"true\" : null", "attr.data-size": "resolvedSize()", "attr.data-fill": "resolvedFill()", "attr.data-layout": "resolvedLayout()", "attr.data-status": "status()", "attr.data-good-when": "resolvedGoodWhen()", "attr.data-tone": "resolvedTone() ?? null", "attr.data-loading": "loading() ? \"\" : null" } }, exportAs: ["slStatCard"], ngImport: i0, template: '<div data-part="body" data-part-body=""><ng-content /></div>', isInline: true, styles: ["@layer slotted.components{[data-ui-stat-card]{--_edge-width: var(--slotted-stat-card-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-stat-card-radius, var(--slotted-radius-lg, 8px));--_inset-block: var(--slotted-stat-card-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-stat-card-padding-inline, var(--slotted-space-6, 1rem));--_region-gap: var(--slotted-stat-card-region-gap, var(--slotted-space-3, .375rem));--_trend-gap: var(--slotted-stat-card-trend-gap, var(--slotted-space-6, 1rem));--_trend-size: var( --slotted-stat-card-trend-inline-size, calc(var(--slotted-space-12, 4rem) * 1.5) );--_trend-block: var(--slotted-stat-card-trend-block-size, var(--slotted-space-11, 3rem));--_trend-floor: var(--slotted-sparkline-block-size, var(--slotted-space-9, 2rem));--_surface: var(--slotted-stat-card-background, var(--slotted-surface-raised, Canvas));--_edge: var(--slotted-stat-card-border-color, var(--slotted-border-subtle, ButtonBorder));--_shadow: var(--slotted-stat-card-shadow, none);--_ink: var(--slotted-stat-card-color, var(--slotted-text, CanvasText));--_ink-muted: var(--slotted-stat-card-color-muted, var(--slotted-text-muted, GrayText));--_value-size: var(--slotted-stat-card-value-font-size, var(--slotted-font-size-3xl, 1.5rem));--_value-line: var(--slotted-stat-card-value-line-height, var(--slotted-line-height-3xl, 1.3));--_label-size: var(--slotted-stat-card-label-font-size, var(--slotted-font-size-sm, .8125rem));--_label-line: var(--slotted-stat-card-label-line-height, var(--slotted-line-height-sm, 1.45));--_delta-size: var(--slotted-stat-card-delta-font-size, var(--slotted-font-size-sm, .8125rem));--_prose-size: var(--slotted-stat-card-prose-font-size, var(--slotted-font-size-xs, .75rem));--_prose-line: var(--slotted-stat-card-prose-line-height, var(--slotted-line-height-xs, 1.4));--_indicator-size: var( --slotted-stat-card-indicator-size, var(--slotted-control-icon-size-sm, 14px) );--_value-size-narrow: var(--slotted-font-size-2xl, 1.25rem);--_value-line-narrow: var(--slotted-line-height-2xl, 1.4);--_tone-text: var(--_ink-muted);background-color:var(--_surface);border:none;border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_ink);container-name:stat-card;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:var( --slotted-stat-card-min-inline-size, calc(var(--slotted-space-12, 4rem) * 2.5) );padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:relative}[data-ui-stat-card]:before{border:var(--_edge-width) solid var(--_edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute}[data-ui-stat-card][data-size=sm]{--_inset-block: var(--slotted-stat-card-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-stat-card-padding-inline-sm, var(--slotted-space-5, .75rem));--_region-gap: var(--slotted-stat-card-region-gap-sm, var(--slotted-space-2, .25rem));--_trend-gap: var(--slotted-stat-card-trend-gap-sm, var(--slotted-space-5, .75rem));--_trend-size: var(--slotted-stat-card-trend-inline-size-sm, var(--slotted-space-12, 4rem));--_trend-block: var(--slotted-stat-card-trend-block-size-sm, var(--slotted-space-9, 2rem));--_trend-floor: var(--slotted-sparkline-block-size-sm, var(--slotted-space-7, 1.25rem));--_value-size: var( --slotted-stat-card-value-font-size-sm, var(--slotted-font-size-2xl, 1.25rem) );--_value-line: var( --slotted-stat-card-value-line-height-sm, var(--slotted-line-height-2xl, 1.4) );--_label-size: var( --slotted-stat-card-label-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_label-line: var( --slotted-stat-card-label-line-height-sm, var(--slotted-line-height-xs, 1.4) );--_delta-size: var( --slotted-stat-card-delta-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_value-size-narrow: var(--slotted-font-size-xl, 1.125rem);--_value-line-narrow: var(--slotted-line-height-xl, 1.45)}[data-ui-stat-card][data-size=lg]{--_inset-block: var(--slotted-stat-card-padding-block-lg, var(--slotted-space-8, 1.5rem));--_inset-inline: var(--slotted-stat-card-padding-inline-lg, var(--slotted-space-8, 1.5rem));--_region-gap: var(--slotted-stat-card-region-gap-lg, var(--slotted-space-4, .5rem));--_trend-gap: var(--slotted-stat-card-trend-gap-lg, var(--slotted-space-8, 1.5rem));--_trend-size: var( --slotted-stat-card-trend-inline-size-lg, calc(var(--slotted-space-12, 4rem) * 2) );--_trend-block: var(--slotted-stat-card-trend-block-size-lg, var(--slotted-space-12, 4rem));--_trend-floor: var(--slotted-sparkline-block-size-lg, var(--slotted-space-11, 3rem));--_value-size: var(--slotted-stat-card-value-font-size-lg, var(--slotted-font-size-4xl, 2rem));--_value-line: var( --slotted-stat-card-value-line-height-lg, var(--slotted-line-height-4xl, 1.2) );--_label-size: var( --slotted-stat-card-label-font-size-lg, var(--slotted-font-size-md, .875rem) );--_label-line: var( --slotted-stat-card-label-line-height-lg, var(--slotted-line-height-md, 1.5) );--_delta-size: var( --slotted-stat-card-delta-font-size-lg, var(--slotted-font-size-md, .875rem) );--_prose-size: var( --slotted-stat-card-prose-font-size-lg, var(--slotted-font-size-sm, .8125rem) );--_prose-line: var( --slotted-stat-card-prose-line-height-lg, var(--slotted-line-height-sm, 1.45) );--_indicator-size: var( --slotted-stat-card-indicator-size-lg, var(--slotted-control-icon-size-md, 16px) );--_value-size-narrow: var(--slotted-font-size-3xl, 1.5rem);--_value-line-narrow: var(--slotted-line-height-3xl, 1.3)}[data-ui-stat-card][data-fill=elevated]{--_shadow: var(--slotted-stat-card-shadow-elevated, var(--slotted-shadow-md))}[data-ui-stat-card][data-fill=subtle]{--_surface: var(--slotted-stat-card-background-subtle, var(--slotted-surface-sunken, Canvas))}[data-ui-stat-card][data-fill=plain]{--_surface: transparent;--_edge: transparent;--_shadow: none;--_inset-block: 0;--_inset-inline: 0;--_radius: var(--slotted-radius-none, 0px)}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{column-gap:var(--_trend-gap);display:grid;flex:1 1 auto;grid-template-areas:\"header header\" \"figure trend\" \"message message\";grid-template-columns:minmax(min-content,1fr) minmax(0,var(--_trend-size));grid-template-rows:auto minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_region-gap)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-body]{grid-template-areas:\"header\" \"figure\" \"message\" \"trend\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{contain:inline-size;grid-area:header}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-self:start;grid-area:figure;min-inline-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{--slotted-sparkline-ring-color: var(--_surface);align-self:stretch;container-name:stat-card-trend;container-type:inline-size;grid-area:trend;inline-size:100%;min-inline-size:0}}@container stat-card-trend (max-width: 39px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{visibility:hidden}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]{align-self:end;border-end-end-radius:calc(var(--_radius) - var(--_edge-width));border-end-start-radius:calc(var(--_radius) - var(--_edge-width));margin-block-end:calc(-1 * var(--_inset-block));margin-block-start:var(--slotted-space-2, .25rem);margin-inline:calc(-1 * var(--_inset-inline));overflow:clip;inline-size:auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]>*{block-size:var(--_trend-block);min-block-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{contain:inline-size;grid-area:message}}@container stat-card (max-width: 219px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{grid-template-areas:\"header\" \"figure\" \"message\" \"trend\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:end;border-end-end-radius:calc(var(--_radius) - var(--_edge-width));border-end-start-radius:calc(var(--_radius) - var(--_edge-width));margin-block-end:calc(-1 * var(--_inset-block));margin-block-start:var(--slotted-space-2, .25rem);margin-inline:calc(-1 * var(--_inset-inline));overflow:clip;inline-size:auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{block-size:var(--_trend-block);min-block-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{font-size:var(--_value-size-narrow);line-height:var(--_value-line-narrow)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size-narrow) * var(--_value-line-narrow))}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;min-inline-size:0;row-gap:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-label]{color:var(--_ink-muted);flex:1 1 0%;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--_label-line);margin:0;min-inline-size:min(100%,10rem);overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-status]{display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-action]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);flex:none;font-size:var(--_label-size);line-height:var(--_label-line);margin-inline-start:auto}}@media(pointer:coarse){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)){position:relative}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)):before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;row-gap:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{contain:inline-size;flex:1 1 100%}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{align-items:baseline;color:var(--_ink);display:inline-flex;flex-wrap:wrap;gap:.15em;font-size:var(--_value-size);font-variant-numeric:proportional-nums;font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:var(--slotted-letter-spacing-tighter, -.03em);unicode-bidi:plaintext;line-height:var(--_value-line);margin:0;min-inline-size:0;overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-unit]{color:var(--_ink-muted);font-size:var(--_delta-size);font-weight:var(--slotted-font-weight-medium, 500);letter-spacing:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta]{align-items:center;color:var(--_tone-text);column-gap:var(--slotted-space-1, .125rem);display:inline-flex;font-size:var(--_delta-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-semibold, 600);line-height:1;unicode-bidi:plaintext;white-space:nowrap}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=neutral]{--_tone-text: var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=accent]{--_tone-text: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=secondary]{--_tone-text: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=success]{--_tone-text: var(--slotted-tone-success-text)}:scope [data-part-delta][data-tone=info]{--_tone-text: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=warning]{--_tone-text: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=danger]{--_tone-text: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-indicator]{--slotted-icon-size: var(--_indicator-size);display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-trend=down] [data-part-indicator]>[data-ui-icon]{rotate:x 180deg}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin-block-start:var(--_region-gap);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-period]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{display:flex}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{block-size:auto;contain:size;min-block-size:var(--_trend-floor)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=success] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-success-text)}:scope[data-tone=info] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=danger] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=warning] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=accent] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=secondary] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-fill=plain] [data-part-trend]{--slotted-sparkline-ring-color: var(--slotted-surface-raised, Canvas)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=error] [data-part-message]{color:var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=empty] [data-part-value],:scope[data-status=error] [data-part-value]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size) * var(--_value-line))}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
126
127
|
}
|
|
127
128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlStatCard, decorators: [{
|
|
128
129
|
type: Component,
|
|
@@ -141,7 +142,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
141
142
|
'[attr.data-good-when]': 'resolvedGoodWhen()',
|
|
142
143
|
'[attr.data-tone]': 'resolvedTone() ?? null',
|
|
143
144
|
'[attr.data-loading]': 'loading() ? "" : null',
|
|
144
|
-
}, styles: ["@layer slotted.components{[data-ui-stat-card]{--_edge-width: var(--slotted-stat-card-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-stat-card-radius, var(--slotted-radius-lg, 8px));--_inset-block: var(--slotted-stat-card-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-stat-card-padding-inline, var(--slotted-space-6, 1rem));--_region-gap: var(--slotted-stat-card-region-gap, var(--slotted-space-3, .375rem));--_trend-gap: var(--slotted-stat-card-trend-gap, var(--slotted-space-6, 1rem));--_trend-size: var( --slotted-stat-card-trend-inline-size, calc(var(--slotted-space-12, 4rem) * 1.5) );--_surface: var(--slotted-stat-card-background, var(--slotted-surface-raised, Canvas));--_edge: var(--slotted-stat-card-border-color, var(--slotted-border-subtle, ButtonBorder));--_shadow: var(--slotted-stat-card-shadow, none);--_ink: var(--slotted-stat-card-color, var(--slotted-text, CanvasText));--_ink-muted: var(--slotted-stat-card-color-muted, var(--slotted-text-muted, GrayText));--_value-size: var(--slotted-stat-card-value-font-size, var(--slotted-font-size-3xl, 1.5rem));--_value-line: var(--slotted-stat-card-value-line-height, var(--slotted-line-height-3xl, 1.3));--_label-size: var(--slotted-stat-card-label-font-size, var(--slotted-font-size-sm, .8125rem));--_label-line: var(--slotted-stat-card-label-line-height, var(--slotted-line-height-sm, 1.45));--_delta-size: var(--slotted-stat-card-delta-font-size, var(--slotted-font-size-sm, .8125rem));--_prose-size: var(--slotted-stat-card-prose-font-size, var(--slotted-font-size-xs, .75rem));--_prose-line: var(--slotted-stat-card-prose-line-height, var(--slotted-line-height-xs, 1.4));--_indicator-size: var( --slotted-stat-card-indicator-size, var(--slotted-control-icon-size-sm, 14px) );--_value-size-narrow: var(--slotted-font-size-2xl, 1.25rem);--_value-line-narrow: var(--slotted-line-height-2xl, 1.4);--_tone-text: var(--_ink-muted);background-color:var(--_surface);border:none;border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_ink);container-name:stat-card;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:var( --slotted-stat-card-min-inline-size, calc(var(--slotted-space-12, 4rem) * 2.5) );padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:relative}[data-ui-stat-card]:before{border:var(--_edge-width) solid var(--_edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute}[data-ui-stat-card][data-size=sm]{--_inset-block: var(--slotted-stat-card-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-stat-card-padding-inline-sm, var(--slotted-space-5, .75rem));--_region-gap: var(--slotted-stat-card-region-gap-sm, var(--slotted-space-2, .25rem));--_trend-gap: var(--slotted-stat-card-trend-gap-sm, var(--slotted-space-5, .75rem));--_trend-size: var(--slotted-stat-card-trend-inline-size-sm, var(--slotted-space-12, 4rem));--_value-size: var( --slotted-stat-card-value-font-size-sm, var(--slotted-font-size-2xl, 1.25rem) );--_value-line: var( --slotted-stat-card-value-line-height-sm, var(--slotted-line-height-2xl, 1.4) );--_label-size: var( --slotted-stat-card-label-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_label-line: var( --slotted-stat-card-label-line-height-sm, var(--slotted-line-height-xs, 1.4) );--_delta-size: var( --slotted-stat-card-delta-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_value-size-narrow: var(--slotted-font-size-xl, 1.125rem);--_value-line-narrow: var(--slotted-line-height-xl, 1.45)}[data-ui-stat-card][data-size=lg]{--_inset-block: var(--slotted-stat-card-padding-block-lg, var(--slotted-space-8, 1.5rem));--_inset-inline: var(--slotted-stat-card-padding-inline-lg, var(--slotted-space-8, 1.5rem));--_region-gap: var(--slotted-stat-card-region-gap-lg, var(--slotted-space-4, .5rem));--_trend-gap: var(--slotted-stat-card-trend-gap-lg, var(--slotted-space-8, 1.5rem));--_trend-size: var( --slotted-stat-card-trend-inline-size-lg, calc(var(--slotted-space-12, 4rem) * 2) );--_value-size: var(--slotted-stat-card-value-font-size-lg, var(--slotted-font-size-4xl, 2rem));--_value-line: var( --slotted-stat-card-value-line-height-lg, var(--slotted-line-height-4xl, 1.2) );--_label-size: var( --slotted-stat-card-label-font-size-lg, var(--slotted-font-size-md, .875rem) );--_label-line: var( --slotted-stat-card-label-line-height-lg, var(--slotted-line-height-md, 1.5) );--_delta-size: var( --slotted-stat-card-delta-font-size-lg, var(--slotted-font-size-md, .875rem) );--_prose-size: var( --slotted-stat-card-prose-font-size-lg, var(--slotted-font-size-sm, .8125rem) );--_prose-line: var( --slotted-stat-card-prose-line-height-lg, var(--slotted-line-height-sm, 1.45) );--_indicator-size: var( --slotted-stat-card-indicator-size-lg, var(--slotted-control-icon-size-md, 16px) );--_value-size-narrow: var(--slotted-font-size-3xl, 1.5rem);--_value-line-narrow: var(--slotted-line-height-3xl, 1.3)}[data-ui-stat-card][data-fill=elevated]{--_shadow: var(--slotted-stat-card-shadow-elevated, var(--slotted-shadow-md))}[data-ui-stat-card][data-fill=subtle]{--_surface: var(--slotted-stat-card-background-subtle, var(--slotted-surface-sunken, Canvas))}[data-ui-stat-card][data-fill=plain]{--_surface: transparent;--_edge: transparent;--_shadow: none;--_inset-block: 0;--_inset-inline: 0;--_radius: var(--slotted-radius-none, 0px)}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{column-gap:var(--_trend-gap);display:grid;flex:1 1 auto;grid-template-areas:\"header header\" \"figure trend\" \"message message\";grid-template-columns:minmax(min-content,1fr) minmax(0,var(--_trend-size));grid-template-rows:auto minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_region-gap)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-body]{grid-template-areas:\"header\" \"figure\" \"trend\" \"message\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{contain:inline-size;grid-area:header}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-self:start;grid-area:figure;min-inline-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{--slotted-sparkline-ring-color: var(--_surface);align-self:center;container-name:stat-card-trend;container-type:inline-size;grid-area:trend;inline-size:100%;min-inline-size:0}}@container stat-card-trend (max-width: 39px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{visibility:hidden}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]{align-self:end;margin-block-start:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{contain:inline-size;grid-area:message}}@container stat-card (max-width: 219px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{grid-template-areas:\"header\" \"figure\" \"trend\" \"message\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:end;margin-block-start:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{font-size:var(--_value-size-narrow);line-height:var(--_value-line-narrow)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size-narrow) * var(--_value-line-narrow))}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;min-inline-size:0;row-gap:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-label]{color:var(--_ink-muted);flex:1 1 0%;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--_label-line);margin:0;min-inline-size:min(100%,10rem);overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-status]{display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-action]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);flex:none;font-size:var(--_label-size);line-height:var(--_label-line);margin-inline-start:auto}}@media(pointer:coarse){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)){position:relative}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)):before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;row-gap:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{contain:inline-size;flex:1 1 100%}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{align-items:baseline;color:var(--_ink);display:inline-flex;flex-wrap:wrap;gap:.15em;font-size:var(--_value-size);font-variant-numeric:proportional-nums;font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:var(--slotted-letter-spacing-tighter, -.03em);unicode-bidi:plaintext;line-height:var(--_value-line);margin:0;min-inline-size:0;overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-unit]{color:var(--_ink-muted);font-size:var(--_delta-size);font-weight:var(--slotted-font-weight-medium, 500);letter-spacing:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta]{align-items:center;color:var(--_tone-text);column-gap:var(--slotted-space-1, .125rem);display:inline-flex;font-size:var(--_delta-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-semibold, 600);line-height:1;unicode-bidi:plaintext;white-space:nowrap}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=neutral]{--_tone-text: var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=accent]{--_tone-text: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=secondary]{--_tone-text: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=success]{--_tone-text: var(--slotted-tone-success-text)}:scope [data-part-delta][data-tone=info]{--_tone-text: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=warning]{--_tone-text: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=danger]{--_tone-text: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-indicator]{--slotted-icon-size: var(--_indicator-size);display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-trend=down] [data-part-indicator]>[data-ui-icon]{rotate:x 180deg}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin-block-start:var(--_region-gap);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-period]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:center;display:flex}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=success] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-success-text)}:scope[data-tone=info] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=danger] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=warning] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=accent] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=secondary] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-fill=plain] [data-part-trend]{--slotted-sparkline-ring-color: var(--slotted-surface-raised, Canvas)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=error] [data-part-message]{color:var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=empty] [data-part-value],:scope[data-status=error] [data-part-value]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size) * var(--_value-line))}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size, var(--slotted-space-9, 2rem) )}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading][data-size=sm] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size-sm, var(--slotted-space-7, 1.25rem) )}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading][data-size=lg] [data-part-trend]{--slotted-skeleton-block-size: var( --slotted-sparkline-block-size-lg, var(--slotted-space-11, 3rem) )}}}\n"] }]
|
|
145
|
+
}, styles: ["@layer slotted.components{[data-ui-stat-card]{--_edge-width: var(--slotted-stat-card-border-width, var(--slotted-border-width-thin, 1px));--_radius: var(--slotted-stat-card-radius, var(--slotted-radius-lg, 8px));--_inset-block: var(--slotted-stat-card-padding-block, var(--slotted-space-6, 1rem));--_inset-inline: var(--slotted-stat-card-padding-inline, var(--slotted-space-6, 1rem));--_region-gap: var(--slotted-stat-card-region-gap, var(--slotted-space-3, .375rem));--_trend-gap: var(--slotted-stat-card-trend-gap, var(--slotted-space-6, 1rem));--_trend-size: var( --slotted-stat-card-trend-inline-size, calc(var(--slotted-space-12, 4rem) * 1.5) );--_trend-block: var(--slotted-stat-card-trend-block-size, var(--slotted-space-11, 3rem));--_trend-floor: var(--slotted-sparkline-block-size, var(--slotted-space-9, 2rem));--_surface: var(--slotted-stat-card-background, var(--slotted-surface-raised, Canvas));--_edge: var(--slotted-stat-card-border-color, var(--slotted-border-subtle, ButtonBorder));--_shadow: var(--slotted-stat-card-shadow, none);--_ink: var(--slotted-stat-card-color, var(--slotted-text, CanvasText));--_ink-muted: var(--slotted-stat-card-color-muted, var(--slotted-text-muted, GrayText));--_value-size: var(--slotted-stat-card-value-font-size, var(--slotted-font-size-3xl, 1.5rem));--_value-line: var(--slotted-stat-card-value-line-height, var(--slotted-line-height-3xl, 1.3));--_label-size: var(--slotted-stat-card-label-font-size, var(--slotted-font-size-sm, .8125rem));--_label-line: var(--slotted-stat-card-label-line-height, var(--slotted-line-height-sm, 1.45));--_delta-size: var(--slotted-stat-card-delta-font-size, var(--slotted-font-size-sm, .8125rem));--_prose-size: var(--slotted-stat-card-prose-font-size, var(--slotted-font-size-xs, .75rem));--_prose-line: var(--slotted-stat-card-prose-line-height, var(--slotted-line-height-xs, 1.4));--_indicator-size: var( --slotted-stat-card-indicator-size, var(--slotted-control-icon-size-sm, 14px) );--_value-size-narrow: var(--slotted-font-size-2xl, 1.25rem);--_value-line-narrow: var(--slotted-line-height-2xl, 1.4);--_tone-text: var(--_ink-muted);background-color:var(--_surface);border:none;border-radius:var(--_radius);box-shadow:var(--_shadow);box-sizing:border-box;color:var(--_ink);container-name:stat-card;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:var( --slotted-stat-card-min-inline-size, calc(var(--slotted-space-12, 4rem) * 2.5) );padding-block:var(--_inset-block);padding-inline:var(--_inset-inline);position:relative}[data-ui-stat-card]:before{border:var(--_edge-width) solid var(--_edge);border-radius:inherit;content:\"\";inset:0;pointer-events:none;position:absolute}[data-ui-stat-card][data-size=sm]{--_inset-block: var(--slotted-stat-card-padding-block-sm, var(--slotted-space-5, .75rem));--_inset-inline: var(--slotted-stat-card-padding-inline-sm, var(--slotted-space-5, .75rem));--_region-gap: var(--slotted-stat-card-region-gap-sm, var(--slotted-space-2, .25rem));--_trend-gap: var(--slotted-stat-card-trend-gap-sm, var(--slotted-space-5, .75rem));--_trend-size: var(--slotted-stat-card-trend-inline-size-sm, var(--slotted-space-12, 4rem));--_trend-block: var(--slotted-stat-card-trend-block-size-sm, var(--slotted-space-9, 2rem));--_trend-floor: var(--slotted-sparkline-block-size-sm, var(--slotted-space-7, 1.25rem));--_value-size: var( --slotted-stat-card-value-font-size-sm, var(--slotted-font-size-2xl, 1.25rem) );--_value-line: var( --slotted-stat-card-value-line-height-sm, var(--slotted-line-height-2xl, 1.4) );--_label-size: var( --slotted-stat-card-label-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_label-line: var( --slotted-stat-card-label-line-height-sm, var(--slotted-line-height-xs, 1.4) );--_delta-size: var( --slotted-stat-card-delta-font-size-sm, var(--slotted-font-size-xs, .75rem) );--_value-size-narrow: var(--slotted-font-size-xl, 1.125rem);--_value-line-narrow: var(--slotted-line-height-xl, 1.45)}[data-ui-stat-card][data-size=lg]{--_inset-block: var(--slotted-stat-card-padding-block-lg, var(--slotted-space-8, 1.5rem));--_inset-inline: var(--slotted-stat-card-padding-inline-lg, var(--slotted-space-8, 1.5rem));--_region-gap: var(--slotted-stat-card-region-gap-lg, var(--slotted-space-4, .5rem));--_trend-gap: var(--slotted-stat-card-trend-gap-lg, var(--slotted-space-8, 1.5rem));--_trend-size: var( --slotted-stat-card-trend-inline-size-lg, calc(var(--slotted-space-12, 4rem) * 2) );--_trend-block: var(--slotted-stat-card-trend-block-size-lg, var(--slotted-space-12, 4rem));--_trend-floor: var(--slotted-sparkline-block-size-lg, var(--slotted-space-11, 3rem));--_value-size: var(--slotted-stat-card-value-font-size-lg, var(--slotted-font-size-4xl, 2rem));--_value-line: var( --slotted-stat-card-value-line-height-lg, var(--slotted-line-height-4xl, 1.2) );--_label-size: var( --slotted-stat-card-label-font-size-lg, var(--slotted-font-size-md, .875rem) );--_label-line: var( --slotted-stat-card-label-line-height-lg, var(--slotted-line-height-md, 1.5) );--_delta-size: var( --slotted-stat-card-delta-font-size-lg, var(--slotted-font-size-md, .875rem) );--_prose-size: var( --slotted-stat-card-prose-font-size-lg, var(--slotted-font-size-sm, .8125rem) );--_prose-line: var( --slotted-stat-card-prose-line-height-lg, var(--slotted-line-height-sm, 1.45) );--_indicator-size: var( --slotted-stat-card-indicator-size-lg, var(--slotted-control-icon-size-md, 16px) );--_value-size-narrow: var(--slotted-font-size-3xl, 1.5rem);--_value-line-narrow: var(--slotted-line-height-3xl, 1.3)}[data-ui-stat-card][data-fill=elevated]{--_shadow: var(--slotted-stat-card-shadow-elevated, var(--slotted-shadow-md))}[data-ui-stat-card][data-fill=subtle]{--_surface: var(--slotted-stat-card-background-subtle, var(--slotted-surface-sunken, Canvas))}[data-ui-stat-card][data-fill=plain]{--_surface: transparent;--_edge: transparent;--_shadow: none;--_inset-block: 0;--_inset-inline: 0;--_radius: var(--slotted-radius-none, 0px)}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{column-gap:var(--_trend-gap);display:grid;flex:1 1 auto;grid-template-areas:\"header header\" \"figure trend\" \"message message\";grid-template-columns:minmax(min-content,1fr) minmax(0,var(--_trend-size));grid-template-rows:auto minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_region-gap)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-body]{grid-template-areas:\"header\" \"figure\" \"message\" \"trend\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{contain:inline-size;grid-area:header}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-self:start;grid-area:figure;min-inline-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{--slotted-sparkline-ring-color: var(--_surface);align-self:stretch;container-name:stat-card-trend;container-type:inline-size;grid-area:trend;inline-size:100%;min-inline-size:0}}@container stat-card-trend (max-width: 39px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{visibility:hidden}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]{align-self:end;border-end-end-radius:calc(var(--_radius) - var(--_edge-width));border-end-start-radius:calc(var(--_radius) - var(--_edge-width));margin-block-end:calc(-1 * var(--_inset-block));margin-block-start:var(--slotted-space-2, .25rem);margin-inline:calc(-1 * var(--_inset-inline));overflow:clip;inline-size:auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-layout=stacked] [data-part-trend]>*{block-size:var(--_trend-block);min-block-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{contain:inline-size;grid-area:message}}@container stat-card (max-width: 219px){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-body]{grid-template-areas:\"header\" \"figure\" \"message\" \"trend\";grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{align-self:end;border-end-end-radius:calc(var(--_radius) - var(--_edge-width));border-end-start-radius:calc(var(--_radius) - var(--_edge-width));margin-block-end:calc(-1 * var(--_inset-block));margin-block-start:var(--slotted-space-2, .25rem);margin-inline:calc(-1 * var(--_inset-inline));overflow:clip;inline-size:auto}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{block-size:var(--_trend-block);min-block-size:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{font-size:var(--_value-size-narrow);line-height:var(--_value-line-narrow)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size-narrow) * var(--_value-line-narrow))}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-header]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;min-inline-size:0;row-gap:var(--slotted-space-2, .25rem)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-label]{color:var(--_ink-muted);flex:1 1 0%;font-size:var(--_label-size);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--_label-line);margin:0;min-inline-size:min(100%,10rem);overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-status]{display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-action]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);flex:none;font-size:var(--_label-size);line-height:var(--_label-line);margin-inline-start:auto}}@media(pointer:coarse){@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)){position:relative}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope :is([data-part-action]:is(a,button),[data-part-action]>:is(a,button)):before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-figure]{align-items:baseline;column-gap:var(--slotted-space-3, .375rem);display:flex;flex-wrap:wrap;row-gap:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{contain:inline-size;flex:1 1 100%}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-value]{align-items:baseline;color:var(--_ink);display:inline-flex;flex-wrap:wrap;gap:.15em;font-size:var(--_value-size);font-variant-numeric:proportional-nums;font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:var(--slotted-letter-spacing-tighter, -.03em);unicode-bidi:plaintext;line-height:var(--_value-line);margin:0;min-inline-size:0;overflow-wrap:break-word}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-unit]{color:var(--_ink-muted);font-size:var(--_delta-size);font-weight:var(--slotted-font-weight-medium, 500);letter-spacing:0}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta]{align-items:center;color:var(--_tone-text);column-gap:var(--slotted-space-1, .125rem);display:inline-flex;font-size:var(--_delta-size);font-variant-numeric:tabular-nums;font-weight:var(--slotted-font-weight-semibold, 600);line-height:1;unicode-bidi:plaintext;white-space:nowrap}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=neutral]{--_tone-text: var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=accent]{--_tone-text: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=secondary]{--_tone-text: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=success]{--_tone-text: var(--slotted-tone-success-text)}:scope [data-part-delta][data-tone=info]{--_tone-text: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=warning]{--_tone-text: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-tone=danger]{--_tone-text: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-indicator]{--slotted-icon-size: var(--_indicator-size);display:inline-flex;flex:none}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-delta][data-trend=down] [data-part-indicator]>[data-ui-icon]{rotate:x 180deg}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-comparison]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin-block-start:var(--_region-gap);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-period]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]{display:flex}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-trend]>*{block-size:auto;contain:size;min-block-size:var(--_trend-floor)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=success] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-success-text)}:scope[data-tone=info] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-info-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=danger] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=warning] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-warning-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=accent] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-accent-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-tone=secondary] [data-part-trend]{--slotted-sparkline-color: var(--slotted-tone-secondary-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-fill=plain] [data-part-trend]{--slotted-sparkline-ring-color: var(--slotted-surface-raised, Canvas)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope [data-part-message]{color:var(--_ink-muted);font-size:var(--_prose-size);line-height:var(--_prose-line);margin:0;min-inline-size:0;overflow-wrap:anywhere}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=error] [data-part-message]{color:var(--slotted-tone-danger-text)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-status=empty] [data-part-value],:scope[data-status=error] [data-part-value]{color:var(--_ink-muted)}}@scope([data-ui-stat-card])to (:scope [data-ui]>*){:scope[data-loading] [data-part-value]{min-block-size:calc(var(--_value-size) * var(--_value-line))}}}\n"] }]
|
|
145
146
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], goodWhen: [{ type: i0.Input, args: [{ isSignal: true, alias: "goodWhen", required: false }] }], delta: [{ type: i0.Input, args: [{ isSignal: true, alias: "delta", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], formatOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatOptions", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }] } });
|
|
146
147
|
function optionalNumber(value) {
|
|
147
148
|
if (value === undefined || value === null || value === '')
|
|
@@ -377,16 +378,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
377
378
|
}]
|
|
378
379
|
}] });
|
|
379
380
|
/**
|
|
380
|
-
* Where a sparkline goes. The stylesheet hands it the card's tone
|
|
381
|
-
*
|
|
382
|
-
*
|
|
381
|
+
* Where a sparkline goes. The stylesheet hands it the card's tone, the card's
|
|
382
|
+
* ground and its box; while loading it holds a block in that box, so the card
|
|
383
|
+
* does not change size when the line arrives.
|
|
384
|
+
*
|
|
385
|
+
* A line here is smoothed and washed unless the application or the sparkline
|
|
386
|
+
* says otherwise: a card's trend is read as a shape, and twelve points joined
|
|
387
|
+
* by straight segments read as a jagged edge at this size. The provider is on
|
|
388
|
+
* the host, so the projected sparkline reads it.
|
|
383
389
|
*/
|
|
384
390
|
class SlStatCardTrend {
|
|
385
391
|
card = inject(SlStatCard);
|
|
386
392
|
shown = computed(() => this.card.loading() || this.card.status() === 'ready', /* @ts-ignore */
|
|
387
393
|
...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
|
|
388
394
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlStatCardTrend, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
389
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlStatCardTrend, isStandalone: true, selector: "[slStatCardTrend]", host: { attributes: { "data-part": "trend", "data-part-trend": "" }, properties: { "attr.hidden": "shown() ? null : \"\"" } },
|
|
395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlStatCardTrend, isStandalone: true, selector: "[slStatCardTrend]", host: { attributes: { "data-part": "trend", "data-part-trend": "" }, properties: { "attr.hidden": "shown() ? null : \"\"" } }, providers: [
|
|
396
|
+
{
|
|
397
|
+
provide: SPARKLINE_DEFAULTS_TOKEN,
|
|
398
|
+
useFactory: () => {
|
|
399
|
+
const inherited = inject(SPARKLINE_DEFAULTS_TOKEN, { skipSelf: true });
|
|
400
|
+
return {
|
|
401
|
+
...inherited,
|
|
402
|
+
area: inherited.area ?? true,
|
|
403
|
+
curve: inherited.curve ?? 'monotone',
|
|
404
|
+
};
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
], exportAs: ["slStatCardTrend"], ngImport: i0, template: `@if (card.loading()) {
|
|
390
408
|
<span slSkeleton shape="block"></span>
|
|
391
409
|
} @else {
|
|
392
410
|
<ng-content />
|
|
@@ -398,6 +416,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
398
416
|
selector: '[slStatCardTrend]',
|
|
399
417
|
standalone: true,
|
|
400
418
|
imports: [SlSkeleton],
|
|
419
|
+
providers: [
|
|
420
|
+
{
|
|
421
|
+
provide: SPARKLINE_DEFAULTS_TOKEN,
|
|
422
|
+
useFactory: () => {
|
|
423
|
+
const inherited = inject(SPARKLINE_DEFAULTS_TOKEN, { skipSelf: true });
|
|
424
|
+
return {
|
|
425
|
+
...inherited,
|
|
426
|
+
area: inherited.area ?? true,
|
|
427
|
+
curve: inherited.curve ?? 'monotone',
|
|
428
|
+
};
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
],
|
|
401
432
|
template: `@if (card.loading()) {
|
|
402
433
|
<span slSkeleton shape="block"></span>
|
|
403
434
|
} @else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-stat-card.mjs","sources":["../../stat-card/src/stat-card-defaults.ts","../../stat-card/src/stat-card.constants.ts","../../stat-card/src/stat-card.ts","../../stat-card/src/stat-card-delta.ts","../../stat-card/src/stat-card-parts.ts","../../stat-card/src/stat-card-value.ts","../../stat-card/src/slotted-angular-stat-card.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n StatCardFill,\n StatCardGoodWhen,\n StatCardLayout,\n StatCardSize,\n} from './stat-card.constants';\n\n/**\n * What every card in an application does before any of them states anything\n * of its own. `goodWhen` is here because a product usually has one answer —\n * a sales dashboard wants everything up, an operations one wants everything\n * down — and a card that disagrees says so.\n */\nexport interface StatCardDefaults {\n fill?: StatCardFill;\n formatOptions?: Intl.NumberFormatOptions;\n goodWhen?: StatCardGoodWhen;\n layout?: StatCardLayout;\n size?: StatCardSize;\n}\n\nexport const STAT_CARD_DEFAULTS_TOKEN = new InjectionToken<StatCardDefaults>(\n 'slotted stat-card defaults',\n { providedIn: 'root', factory: (): StatCardDefaults => ({}) },\n);\n\n/**\n * An explicit input is never overridden by the token. The words and the locale\n * come from the language in force (`provideSlotted`).\n */\nexport function provideStatCardDefaults(defaults: StatCardDefaults) {\n return { provide: STAT_CARD_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectStatCardDefaults(): StatCardDefaults {\n return inject(STAT_CARD_DEFAULTS_TOKEN);\n}\n","export type StatCardSize = 'sm' | 'md' | 'lg';\nexport type StatCardFill = 'outline' | 'elevated' | 'subtle' | 'plain';\nexport type StatCardLayout = 'inline' | 'stacked';\nexport type StatCardValueStatus = 'ready' | 'empty' | 'error';\nexport type StatCardGoodWhen = 'up' | 'down' | 'none';\nexport type StatCardTone =\n 'neutral' | 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\nexport type StatCardDirection = 'up' | 'down' | 'flat';\nexport type StatCardDeltaFormat = 'percent' | 'decimal';\n\n/** The direction of a change, from its sign. */\nexport function trendOf(value: number | undefined): StatCardDirection {\n if (value === undefined || Number.isNaN(value) || value === 0) return 'flat';\n return value > 0 ? 'up' : 'down';\n}\n\n/**\n * The tone of a change, from what the metric means and never from the sign:\n * a rise is good when up is good and bad when down is; a fall is the reverse;\n * a flat change, or a metric with no valence, is neutral.\n */\nexport function toneOf(trend: StatCardDirection, goodWhen: StatCardGoodWhen): StatCardTone {\n if (trend === 'flat' || goodWhen === 'none') return 'neutral';\n return (trend === 'up') === (goodWhen === 'up') ? 'success' : 'danger';\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n numberAttribute,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectLocale, injectMessages } from '@slotted/angular/i18n';\nimport { type PartialMessages, statCardMessages, type StatCardMessages } from '@slotted/core/i18n';\n\nimport { injectStatCardDefaults } from './stat-card-defaults';\nimport {\n toneOf,\n trendOf,\n type StatCardFill,\n type StatCardGoodWhen,\n type StatCardLayout,\n type StatCardSize,\n type StatCardTone,\n type StatCardValueStatus,\n} from './stat-card.constants';\n\nlet nextId = 0;\n\n/**\n * A metric with its name, its change and its trend, in a frame.\n *\n * The root holds the facts the parts read — which way is good, the change,\n * the status, whether it is loading — and derives the one thing two parts\n * have to agree on: the tone of the change, which the delta wears and the\n * trend hands to its sparkline. It is derived here, from `delta` and\n * `goodWhen`, so the first render already carries it.\n *\n * The root is a group named by its label, so a reader who lands on the\n * action inside it hears which metric it belongs to; an `aria-label` or\n * `aria-labelledby` the consumer wrote on the element wins. It carries\n * `aria-busy` while loading; the placeholders are `skeleton`s, and a\n * consumer who wants one announcement for a whole dashboard wraps it in a\n * `slSkeletonRegion`.\n */\n@Component({\n selector: '[slStatCard]',\n standalone: true,\n template: '<div data-part=\"body\" data-part-body=\"\"><ng-content /></div>',\n styleUrl: '../../../styles/src/stat-card/stat-card.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCard',\n host: {\n 'data-ui': 'stat-card',\n 'data-ui-stat-card': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'group',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-fill]': 'resolvedFill()',\n '[attr.data-layout]': 'resolvedLayout()',\n '[attr.data-status]': 'status()',\n '[attr.data-good-when]': 'resolvedGoodWhen()',\n '[attr.data-tone]': 'resolvedTone() ?? null',\n '[attr.data-loading]': 'loading() ? \"\" : null',\n },\n})\nexport class SlStatCard {\n readonly size = input<StatCardSize | undefined>(undefined);\n readonly fill = input<StatCardFill | undefined>(undefined);\n readonly layout = input<StatCardLayout | undefined>(undefined);\n /** Whether there is a value to show, and if not, why. */\n readonly status = input<StatCardValueStatus>('ready');\n /** The value is still on its way: every part stands in with a placeholder. */\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n /** Which way is good for this metric. The delta's tone is derived from it, never from the sign. */\n readonly goodWhen = input<StatCardGoodWhen | undefined>(undefined);\n /**\n * The change since the comparison period, as the first delta inside reads\n * it: a fraction for a percentage (`0.124` is +12.4%), or a number.\n */\n readonly delta = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** The tone the card hands to its trend. Unset, it is the delta's. */\n readonly tone = input<StatCardTone | undefined>(undefined);\n /** The locale numbers are written in; the language in force when absent. */\n readonly locale = input<string | undefined>(undefined);\n /** How the value, the delta and the comparison read numbers. */\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: what a\n * screen reader hears beside a change (`up`, `down`, `flat`, read before the\n * number because a sign is a glyph some readers skip) and what stands in for\n * a value that is not there (`empty`).\n */\n readonly messages = input<PartialMessages<StatCardMessages> | undefined>(undefined);\n\n private readonly defaults = injectStatCardDefaults();\n private readonly appLocale = injectLocale();\n private readonly ownLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly ownLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n /** The id the label takes, and the root is named by. */\n readonly labelId = `slotted-stat-card-label-${nextId++}`;\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size ?? 'md');\n readonly resolvedFill = computed(() => this.fill() ?? this.defaults.fill ?? 'outline');\n readonly resolvedLayout = computed(() => this.layout() ?? this.defaults.layout ?? 'inline');\n readonly resolvedGoodWhen = computed(() => this.goodWhen() ?? this.defaults.goodWhen ?? 'up');\n readonly resolvedLocale = computed(() => this.locale() ?? this.appLocale());\n readonly resolvedFormatOptions = computed(\n () => this.formatOptions() ?? this.defaults.formatOptions,\n );\n /** The family's words in the language in force, with this card's `messages` laid over them. */\n readonly t = injectMessages(statCardMessages, this.messages);\n readonly resolvedTone = computed<StatCardTone | undefined>(() => {\n const explicit = this.tone();\n if (explicit !== undefined) return explicit;\n const delta = this.delta();\n return delta === undefined ? undefined : toneOf(trendOf(delta), this.resolvedGoodWhen());\n });\n\n readonly labelledBy = computed(() =>\n this.ownLabel !== null ? null : (this.ownLabelledBy ?? this.labelId),\n );\n}\n\nexport function optionalNumber(value: unknown): number | undefined {\n if (value === undefined || value === null || value === '') return undefined;\n return numberAttribute(value);\n}\n\nexport function optionalBoolean(value: unknown): boolean | undefined {\n return value === undefined ? undefined : booleanAttribute(value);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\nimport { SlVisuallyHidden } from '@slotted/angular/visually-hidden';\n\nimport { SlStatCard, optionalNumber } from './stat-card';\nimport {\n toneOf,\n trendOf,\n type StatCardDeltaFormat,\n type StatCardGoodWhen,\n type StatCardTone,\n} from './stat-card.constants';\n\n/**\n * The change, with the mark that says which way and the word a screen reader\n * hears before the number. `value` is the root's `delta` unless the part\n * states its own, so a second delta on one card — month over month beside\n * year over year — is one more part with one more value.\n *\n * `percent` reads the value as a fraction, which is what a division gives;\n * the sign is always shown except on nought. The tone is derived from the\n * direction and from `goodWhen`, never from the sign, and an explicit `tone`\n * wins.\n */\n@Component({\n selector: '[slStatCardDelta]',\n standalone: true,\n imports: [SlGlyph, SlIcon, SlSkeleton, SlVisuallyHidden],\n /* One glyph for a rise and a fall, turned over by the sheet for a fall. */\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"3.5em\"></span>\n } @else {\n <span data-part=\"indicator\" data-part-indicator=\"\" aria-hidden=\"true\"\n ><span slIcon [directional]=\"trend() !== 'flat'\"\n ><svg slGlyph [name]=\"trend() === 'flat' ? 'minus' : 'trending-up'\"></svg></span></span\n ><span slVisuallyHidden>{{ card.t(trend()) }} </span>{{ formatted() }}<ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardDelta',\n host: {\n 'data-part': 'delta',\n 'data-part-delta': '',\n '[attr.data-trend]': 'card.loading() ? \"flat\" : trend()',\n '[attr.data-tone]': 'card.loading() ? \"neutral\" : resolvedTone()',\n '[attr.hidden]': 'shown() ? null : \"\"',\n },\n})\nexport class SlStatCardDelta {\n /** The change. Unset, the root's `delta`. */\n readonly value = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** `percent` reads the value as a fraction; `decimal` reads it as it is. */\n readonly format = input<StatCardDeltaFormat>('percent');\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n /** Unset, the root's. */\n readonly goodWhen = input<StatCardGoodWhen | undefined>(undefined);\n /** An explicit tone, which wins over the one derived from `goodWhen`. */\n readonly tone = input<StatCardTone | undefined>(undefined);\n\n protected readonly card = inject(SlStatCard);\n\n readonly change = computed(() => this.value() ?? this.card.delta());\n readonly trend = computed(() => trendOf(this.change()));\n readonly resolvedTone = computed(\n () => this.tone() ?? toneOf(this.trend(), this.goodWhen() ?? this.card.resolvedGoodWhen()),\n );\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n\n readonly formatted = computed(() => {\n const change = this.change();\n if (typeof change !== 'number') return '';\n return new Intl.NumberFormat(this.card.resolvedLocale(), {\n signDisplay: 'exceptZero',\n ...(this.format() === 'percent' ? { style: 'percent', maximumFractionDigits: 1 } : {}),\n ...this.card.resolvedFormatOptions(),\n ...this.formatOptions(),\n }).format(change);\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\n\nimport { SlStatCard } from './stat-card';\n\n/** The row with the name, a status beside it and an action at the end. */\n@Directive({\n selector: '[slStatCardHeader]',\n standalone: true,\n exportAs: 'slStatCardHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlStatCardHeader {}\n\n/**\n * The name of the metric. It is the element the root is named by, so it\n * carries the id the root points at; an `id` the consumer wrote wins, and\n * the root then names nothing, which is the consumer's decision to make.\n */\n@Directive({\n selector: '[slStatCardLabel]',\n standalone: true,\n exportAs: 'slStatCardLabel',\n host: { 'data-part': 'label', 'data-part-label': '', '[attr.id]': 'id' },\n})\nexport class SlStatCardLabel {\n private readonly card = inject(SlStatCard);\n private readonly ownId = inject(new HostAttributeToken('id'), { optional: true });\n readonly id = this.ownId ?? this.card.labelId;\n}\n\n/** A slot beside the name for a badge or a status indicator. */\n@Directive({\n selector: '[slStatCardStatus]',\n standalone: true,\n exportAs: 'slStatCardStatus',\n host: { 'data-part': 'status', 'data-part-status': '' },\n})\nexport class SlStatCardStatus {}\n\n/** The place at the end of the header for the consumer's link or button. */\n@Directive({\n selector: '[slStatCardAction]',\n standalone: true,\n exportAs: 'slStatCardAction',\n host: { 'data-part': 'action', 'data-part-action': '' },\n})\nexport class SlStatCardAction {}\n\n/** The value with its unit and its delta on one line, and the comparison under them. */\n@Directive({\n selector: '[slStatCardFigure]',\n standalone: true,\n exportAs: 'slStatCardFigure',\n host: { 'data-part': 'figure', 'data-part-figure': '' },\n})\nexport class SlStatCardFigure {}\n\n/** The unit, wherever the consumer puts it inside the value: `$` before, `%` after. */\n@Directive({\n selector: '[slStatCardUnit]',\n standalone: true,\n exportAs: 'slStatCardUnit',\n host: { 'data-part': 'unit', 'data-part-unit': '' },\n})\nexport class SlStatCardUnit {}\n\n@Directive({\n selector: '[slStatCardPeriod]',\n standalone: true,\n exportAs: 'slStatCardPeriod',\n host: { 'data-part': 'period', 'data-part-period': '' },\n})\nexport class SlStatCardPeriod {}\n\n/**\n * The prose under the figure: what the value was, and the period. Shown\n * only while there is a value to compare; a placeholder while loading.\n */\n@Component({\n selector: '[slStatCardComparison]',\n standalone: true,\n imports: [SlSkeleton],\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"10em\"></span>\n } @else {\n <ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardComparison',\n host: {\n 'data-part': 'comparison',\n 'data-part-comparison': '',\n '[attr.hidden]': 'shown() ? null : \"\"',\n },\n})\nexport class SlStatCardComparison {\n protected readonly card = inject(SlStatCard);\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n}\n\n/**\n * Where a sparkline goes. The stylesheet hands it the card's tone and the\n * card's ground; while loading it holds a block the sparkline's height, so\n * the card does not change size when the line arrives.\n */\n@Component({\n selector: '[slStatCardTrend]',\n standalone: true,\n imports: [SlSkeleton],\n template: `@if (card.loading()) {\n <span slSkeleton shape=\"block\"></span>\n } @else {\n <ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardTrend',\n host: { 'data-part': 'trend', 'data-part-trend': '', '[attr.hidden]': 'shown() ? null : \"\"' },\n})\nexport class SlStatCardTrend {\n protected readonly card = inject(SlStatCard);\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n}\n\n/** What is said in place of a value that is missing or failed. Shown only then. */\n@Directive({\n selector: '[slStatCardMessage]',\n standalone: true,\n exportAs: 'slStatCardMessage',\n host: { 'data-part': 'message', 'data-part-message': '', '[attr.hidden]': 'shown() ? null : \"\"' },\n})\nexport class SlStatCardMessage {\n private readonly card = inject(SlStatCard);\n readonly shown = computed(() => !this.card.loading() && this.card.status() !== 'ready');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { inject } from '@angular/core';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\n\nimport { SlStatCard } from './stat-card';\n\n/**\n * The number. A numeric `value` is formatted with the card's locale and\n * `formatOptions` — `notation: 'compact'` is how 12,900 becomes 12.9K — and\n * projected content is the consumer's own rendering, unit and all, after\n * it. A missing or failed value is the `empty` message, a dash; a loading\n * one is a placeholder five figures wide, on the value's own line.\n */\n@Component({\n selector: '[slStatCardValue]',\n standalone: true,\n imports: [SlSkeleton],\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"5ch\"></span>\n } @else if (card.status() !== 'ready') {\n {{ card.t('empty') }}\n } @else {\n {{ formatted() }}<ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardValue',\n host: { 'data-part': 'value', 'data-part-value': '' },\n})\nexport class SlStatCardValue {\n /** A number, formatted with the card's locale and `formatOptions`; the text otherwise. */\n readonly value = input<number | string | undefined>(undefined);\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n\n protected readonly card = inject(SlStatCard);\n\n readonly formatted = computed(() => {\n const value = this.value();\n if (typeof value !== 'number') return value ?? '';\n return new Intl.NumberFormat(\n this.card.resolvedLocale(),\n this.formatOptions() ?? this.card.resolvedFormatOptions(),\n ).format(value);\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAuBO,MAAM,wBAAwB,GAAG,IAAI,cAAc,CACxD,4BAA4B,EAC5B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAyB,EAAE,CAAC,EAAE;AAG/D;;;AAGG;AACG,SAAU,uBAAuB,CAAC,QAA0B,EAAA;IAChE,OAAO,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAClE;SAEgB,sBAAsB,GAAA;AACpC,IAAA,OAAO,MAAM,CAAC,wBAAwB,CAAC;AACzC;;AC5BA;AACM,SAAU,OAAO,CAAC,KAAyB,EAAA;AAC/C,IAAA,IAAI,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC;AAAE,QAAA,OAAO,MAAM;IAC5E,OAAO,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,MAAM;AAClC;AAEA;;;;AAIG;AACG,SAAU,MAAM,CAAC,KAAwB,EAAE,QAA0B,EAAA;AACzE,IAAA,IAAI,KAAK,KAAK,MAAM,IAAI,QAAQ,KAAK,MAAM;AAAE,QAAA,OAAO,SAAS;AAC7D,IAAA,OAAO,CAAC,KAAK,KAAK,IAAI,OAAO,QAAQ,KAAK,IAAI,CAAC,GAAG,SAAS,GAAG,QAAQ;AACxE;;ACEA,IAAI,MAAM,GAAG,CAAC;AAEd;;;;;;;;;;;;;;;AAeG;MA0BU,UAAU,CAAA;IACZ,IAAI,GAAG,KAAK,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A,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAaT,eAAe,EAAA,UAAA,EAAA,CAAA;kBAhB3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC7B,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,UAAU,CAAC;AACrB,oBAAA,QAAQ,EAAE,CAAA;;;;;;AAMN,KAAA,CAAA;oBACJ,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,iBAAiB,CAAC,IAAI;AACrC,oBAAA,QAAQ,EAAE,iBAAiB;oBAC3B,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,EAAE,EAAE;AACtD,iBAAA;;;AClCD;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-stat-card.mjs","sources":["../../stat-card/src/stat-card-defaults.ts","../../stat-card/src/stat-card.constants.ts","../../stat-card/src/stat-card.ts","../../stat-card/src/stat-card-delta.ts","../../stat-card/src/stat-card-parts.ts","../../stat-card/src/stat-card-value.ts","../../stat-card/src/slotted-angular-stat-card.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\n\nimport type {\n StatCardFill,\n StatCardGoodWhen,\n StatCardLayout,\n StatCardSize,\n} from './stat-card.constants';\n\n/**\n * What every card in an application does before any of them states anything\n * of its own. `goodWhen` is here because a product usually has one answer —\n * a sales dashboard wants everything up, an operations one wants everything\n * down — and a card that disagrees says so.\n */\nexport interface StatCardDefaults {\n fill?: StatCardFill;\n formatOptions?: Intl.NumberFormatOptions;\n goodWhen?: StatCardGoodWhen;\n layout?: StatCardLayout;\n size?: StatCardSize;\n}\n\nexport const STAT_CARD_DEFAULTS_TOKEN = new InjectionToken<StatCardDefaults>(\n 'slotted stat-card defaults',\n { providedIn: 'root', factory: (): StatCardDefaults => ({}) },\n);\n\n/**\n * An explicit input is never overridden by the token. The words and the locale\n * come from the language in force (`provideSlotted`).\n */\nexport function provideStatCardDefaults(defaults: StatCardDefaults) {\n return { provide: STAT_CARD_DEFAULTS_TOKEN, useValue: defaults };\n}\n\nexport function injectStatCardDefaults(): StatCardDefaults {\n return inject(STAT_CARD_DEFAULTS_TOKEN);\n}\n","export type StatCardSize = 'sm' | 'md' | 'lg';\nexport type StatCardFill = 'outline' | 'elevated' | 'subtle' | 'plain';\nexport type StatCardLayout = 'inline' | 'stacked';\nexport type StatCardValueStatus = 'ready' | 'empty' | 'error';\nexport type StatCardGoodWhen = 'up' | 'down' | 'none';\nexport type StatCardTone =\n 'neutral' | 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\nexport type StatCardDirection = 'up' | 'down' | 'flat';\nexport type StatCardDeltaFormat = 'percent' | 'decimal';\n\n/** The direction of a change, from its sign. */\nexport function trendOf(value: number | undefined): StatCardDirection {\n if (value === undefined || Number.isNaN(value) || value === 0) return 'flat';\n return value > 0 ? 'up' : 'down';\n}\n\n/**\n * The tone of a change, from what the metric means and never from the sign:\n * a rise is good when up is good and bad when down is; a fall is the reverse;\n * a flat change, or a metric with no valence, is neutral.\n */\nexport function toneOf(trend: StatCardDirection, goodWhen: StatCardGoodWhen): StatCardTone {\n if (trend === 'flat' || goodWhen === 'none') return 'neutral';\n return (trend === 'up') === (goodWhen === 'up') ? 'success' : 'danger';\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n HostAttributeToken,\n inject,\n input,\n numberAttribute,\n ViewEncapsulation,\n} from '@angular/core';\nimport { injectLocale, injectMessages } from '@slotted/angular/i18n';\nimport { type PartialMessages, statCardMessages, type StatCardMessages } from '@slotted/core/i18n';\n\nimport { injectStatCardDefaults } from './stat-card-defaults';\nimport {\n toneOf,\n trendOf,\n type StatCardFill,\n type StatCardGoodWhen,\n type StatCardLayout,\n type StatCardSize,\n type StatCardTone,\n type StatCardValueStatus,\n} from './stat-card.constants';\n\nlet nextId = 0;\n\n/**\n * A metric with its name, its change and its trend, in a frame.\n *\n * The root holds the facts the parts read — which way is good, the change,\n * the status, whether it is loading — and derives the one thing two parts\n * have to agree on: the tone of the change, which the delta wears and the\n * trend hands to its sparkline. It is derived here, from `delta` and\n * `goodWhen`, so the first render already carries it.\n *\n * The root is a group named by its label, so a reader who lands on the\n * action inside it hears which metric it belongs to; an `aria-label` or\n * `aria-labelledby` the consumer wrote on the element wins. It carries\n * `aria-busy` while loading; the placeholders are `skeleton`s, and a\n * consumer who wants one announcement for a whole dashboard wraps it in a\n * `slSkeletonRegion`.\n */\n@Component({\n selector: '[slStatCard]',\n standalone: true,\n template: '<div data-part=\"body\" data-part-body=\"\"><ng-content /></div>',\n styleUrl: '../../../styles/src/stat-card/stat-card.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCard',\n host: {\n 'data-ui': 'stat-card',\n 'data-ui-stat-card': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'group',\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-fill]': 'resolvedFill()',\n '[attr.data-layout]': 'resolvedLayout()',\n '[attr.data-status]': 'status()',\n '[attr.data-good-when]': 'resolvedGoodWhen()',\n '[attr.data-tone]': 'resolvedTone() ?? null',\n '[attr.data-loading]': 'loading() ? \"\" : null',\n },\n})\nexport class SlStatCard {\n readonly size = input<StatCardSize | undefined>(undefined);\n readonly fill = input<StatCardFill | undefined>(undefined);\n readonly layout = input<StatCardLayout | undefined>(undefined);\n /** Whether there is a value to show, and if not, why. */\n readonly status = input<StatCardValueStatus>('ready');\n /** The value is still on its way: every part stands in with a placeholder. */\n readonly loading = input<boolean, unknown>(false, { transform: booleanAttribute });\n /** Which way is good for this metric. The delta's tone is derived from it, never from the sign. */\n readonly goodWhen = input<StatCardGoodWhen | undefined>(undefined);\n /**\n * The change since the comparison period, as the first delta inside reads\n * it: a fraction for a percentage (`0.124` is +12.4%), or a number.\n */\n readonly delta = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** The tone the card hands to its trend. Unset, it is the delta's. */\n readonly tone = input<StatCardTone | undefined>(undefined);\n /** The locale numbers are written in; the language in force when absent. */\n readonly locale = input<string | undefined>(undefined);\n /** How the value, the delta and the comparison read numbers. */\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n /**\n * Words laid over the catalog of the language in force, key by key: what a\n * screen reader hears beside a change (`up`, `down`, `flat`, read before the\n * number because a sign is a glyph some readers skip) and what stands in for\n * a value that is not there (`empty`).\n */\n readonly messages = input<PartialMessages<StatCardMessages> | undefined>(undefined);\n\n private readonly defaults = injectStatCardDefaults();\n private readonly appLocale = injectLocale();\n private readonly ownLabel = inject(new HostAttributeToken('aria-label'), { optional: true });\n private readonly ownLabelledBy = inject(new HostAttributeToken('aria-labelledby'), {\n optional: true,\n });\n\n /** The id the label takes, and the root is named by. */\n readonly labelId = `slotted-stat-card-label-${nextId++}`;\n\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size ?? 'md');\n readonly resolvedFill = computed(() => this.fill() ?? this.defaults.fill ?? 'outline');\n readonly resolvedLayout = computed(() => this.layout() ?? this.defaults.layout ?? 'inline');\n readonly resolvedGoodWhen = computed(() => this.goodWhen() ?? this.defaults.goodWhen ?? 'up');\n readonly resolvedLocale = computed(() => this.locale() ?? this.appLocale());\n readonly resolvedFormatOptions = computed(\n () => this.formatOptions() ?? this.defaults.formatOptions,\n );\n /** The family's words in the language in force, with this card's `messages` laid over them. */\n readonly t = injectMessages(statCardMessages, this.messages);\n readonly resolvedTone = computed<StatCardTone | undefined>(() => {\n const explicit = this.tone();\n if (explicit !== undefined) return explicit;\n const delta = this.delta();\n return delta === undefined ? undefined : toneOf(trendOf(delta), this.resolvedGoodWhen());\n });\n\n readonly labelledBy = computed(() =>\n this.ownLabel !== null ? null : (this.ownLabelledBy ?? this.labelId),\n );\n}\n\nexport function optionalNumber(value: unknown): number | undefined {\n if (value === undefined || value === null || value === '') return undefined;\n return numberAttribute(value);\n}\n\nexport function optionalBoolean(value: unknown): boolean | undefined {\n return value === undefined ? undefined : booleanAttribute(value);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\nimport { SlVisuallyHidden } from '@slotted/angular/visually-hidden';\n\nimport { SlStatCard, optionalNumber } from './stat-card';\nimport {\n toneOf,\n trendOf,\n type StatCardDeltaFormat,\n type StatCardGoodWhen,\n type StatCardTone,\n} from './stat-card.constants';\n\n/**\n * The change, with the mark that says which way and the word a screen reader\n * hears before the number. `value` is the root's `delta` unless the part\n * states its own, so a second delta on one card — month over month beside\n * year over year — is one more part with one more value.\n *\n * `percent` reads the value as a fraction, which is what a division gives;\n * the sign is always shown except on nought. The tone is derived from the\n * direction and from `goodWhen`, never from the sign, and an explicit `tone`\n * wins.\n */\n@Component({\n selector: '[slStatCardDelta]',\n standalone: true,\n imports: [SlGlyph, SlIcon, SlSkeleton, SlVisuallyHidden],\n /* One glyph for a rise and a fall, turned over by the sheet for a fall. */\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"3.5em\"></span>\n } @else {\n <span data-part=\"indicator\" data-part-indicator=\"\" aria-hidden=\"true\"\n ><span slIcon [directional]=\"trend() !== 'flat'\"\n ><svg slGlyph [name]=\"trend() === 'flat' ? 'minus' : 'trending-up'\"></svg></span></span\n ><span slVisuallyHidden>{{ card.t(trend()) }} </span>{{ formatted() }}<ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardDelta',\n host: {\n 'data-part': 'delta',\n 'data-part-delta': '',\n '[attr.data-trend]': 'card.loading() ? \"flat\" : trend()',\n '[attr.data-tone]': 'card.loading() ? \"neutral\" : resolvedTone()',\n '[attr.hidden]': 'shown() ? null : \"\"',\n },\n})\nexport class SlStatCardDelta {\n /** The change. Unset, the root's `delta`. */\n readonly value = input<number | undefined, unknown>(undefined, { transform: optionalNumber });\n /** `percent` reads the value as a fraction; `decimal` reads it as it is. */\n readonly format = input<StatCardDeltaFormat>('percent');\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n /** Unset, the root's. */\n readonly goodWhen = input<StatCardGoodWhen | undefined>(undefined);\n /** An explicit tone, which wins over the one derived from `goodWhen`. */\n readonly tone = input<StatCardTone | undefined>(undefined);\n\n protected readonly card = inject(SlStatCard);\n\n readonly change = computed(() => this.value() ?? this.card.delta());\n readonly trend = computed(() => trendOf(this.change()));\n readonly resolvedTone = computed(\n () => this.tone() ?? toneOf(this.trend(), this.goodWhen() ?? this.card.resolvedGoodWhen()),\n );\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n\n readonly formatted = computed(() => {\n const change = this.change();\n if (typeof change !== 'number') return '';\n return new Intl.NumberFormat(this.card.resolvedLocale(), {\n signDisplay: 'exceptZero',\n ...(this.format() === 'percent' ? { style: 'percent', maximumFractionDigits: 1 } : {}),\n ...this.card.resolvedFormatOptions(),\n ...this.formatOptions(),\n }).format(change);\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\nimport { SPARKLINE_DEFAULTS_TOKEN } from '@slotted/angular/sparkline';\n\nimport { SlStatCard } from './stat-card';\n\n/** The row with the name, a status beside it and an action at the end. */\n@Directive({\n selector: '[slStatCardHeader]',\n standalone: true,\n exportAs: 'slStatCardHeader',\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlStatCardHeader {}\n\n/**\n * The name of the metric. It is the element the root is named by, so it\n * carries the id the root points at; an `id` the consumer wrote wins, and\n * the root then names nothing, which is the consumer's decision to make.\n */\n@Directive({\n selector: '[slStatCardLabel]',\n standalone: true,\n exportAs: 'slStatCardLabel',\n host: { 'data-part': 'label', 'data-part-label': '', '[attr.id]': 'id' },\n})\nexport class SlStatCardLabel {\n private readonly card = inject(SlStatCard);\n private readonly ownId = inject(new HostAttributeToken('id'), { optional: true });\n readonly id = this.ownId ?? this.card.labelId;\n}\n\n/** A slot beside the name for a badge or a status indicator. */\n@Directive({\n selector: '[slStatCardStatus]',\n standalone: true,\n exportAs: 'slStatCardStatus',\n host: { 'data-part': 'status', 'data-part-status': '' },\n})\nexport class SlStatCardStatus {}\n\n/** The place at the end of the header for the consumer's link or button. */\n@Directive({\n selector: '[slStatCardAction]',\n standalone: true,\n exportAs: 'slStatCardAction',\n host: { 'data-part': 'action', 'data-part-action': '' },\n})\nexport class SlStatCardAction {}\n\n/** The value with its unit and its delta on one line, and the comparison under them. */\n@Directive({\n selector: '[slStatCardFigure]',\n standalone: true,\n exportAs: 'slStatCardFigure',\n host: { 'data-part': 'figure', 'data-part-figure': '' },\n})\nexport class SlStatCardFigure {}\n\n/** The unit, wherever the consumer puts it inside the value: `$` before, `%` after. */\n@Directive({\n selector: '[slStatCardUnit]',\n standalone: true,\n exportAs: 'slStatCardUnit',\n host: { 'data-part': 'unit', 'data-part-unit': '' },\n})\nexport class SlStatCardUnit {}\n\n@Directive({\n selector: '[slStatCardPeriod]',\n standalone: true,\n exportAs: 'slStatCardPeriod',\n host: { 'data-part': 'period', 'data-part-period': '' },\n})\nexport class SlStatCardPeriod {}\n\n/**\n * The prose under the figure: what the value was, and the period. Shown\n * only while there is a value to compare; a placeholder while loading.\n */\n@Component({\n selector: '[slStatCardComparison]',\n standalone: true,\n imports: [SlSkeleton],\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"10em\"></span>\n } @else {\n <ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardComparison',\n host: {\n 'data-part': 'comparison',\n 'data-part-comparison': '',\n '[attr.hidden]': 'shown() ? null : \"\"',\n },\n})\nexport class SlStatCardComparison {\n protected readonly card = inject(SlStatCard);\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n}\n\n/**\n * Where a sparkline goes. The stylesheet hands it the card's tone, the card's\n * ground and its box; while loading it holds a block in that box, so the card\n * does not change size when the line arrives.\n *\n * A line here is smoothed and washed unless the application or the sparkline\n * says otherwise: a card's trend is read as a shape, and twelve points joined\n * by straight segments read as a jagged edge at this size. The provider is on\n * the host, so the projected sparkline reads it.\n */\n@Component({\n selector: '[slStatCardTrend]',\n standalone: true,\n imports: [SlSkeleton],\n providers: [\n {\n provide: SPARKLINE_DEFAULTS_TOKEN,\n useFactory: () => {\n const inherited = inject(SPARKLINE_DEFAULTS_TOKEN, { skipSelf: true });\n return {\n ...inherited,\n area: inherited.area ?? true,\n curve: inherited.curve ?? 'monotone',\n };\n },\n },\n ],\n template: `@if (card.loading()) {\n <span slSkeleton shape=\"block\"></span>\n } @else {\n <ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardTrend',\n host: { 'data-part': 'trend', 'data-part-trend': '', '[attr.hidden]': 'shown() ? null : \"\"' },\n})\nexport class SlStatCardTrend {\n protected readonly card = inject(SlStatCard);\n readonly shown = computed(() => this.card.loading() || this.card.status() === 'ready');\n}\n\n/** What is said in place of a value that is missing or failed. Shown only then. */\n@Directive({\n selector: '[slStatCardMessage]',\n standalone: true,\n exportAs: 'slStatCardMessage',\n host: { 'data-part': 'message', 'data-part-message': '', '[attr.hidden]': 'shown() ? null : \"\"' },\n})\nexport class SlStatCardMessage {\n private readonly card = inject(SlStatCard);\n readonly shown = computed(() => !this.card.loading() && this.card.status() !== 'ready');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { inject } from '@angular/core';\nimport { SlSkeleton } from '@slotted/angular/skeleton';\n\nimport { SlStatCard } from './stat-card';\n\n/**\n * The number. A numeric `value` is formatted with the card's locale and\n * `formatOptions` — `notation: 'compact'` is how 12,900 becomes 12.9K — and\n * projected content is the consumer's own rendering, unit and all, after\n * it. A missing or failed value is the `empty` message, a dash; a loading\n * one is a placeholder five figures wide, on the value's own line.\n */\n@Component({\n selector: '[slStatCardValue]',\n standalone: true,\n imports: [SlSkeleton],\n template: `@if (card.loading()) {\n <span slSkeleton inlineSize=\"5ch\"></span>\n } @else if (card.status() !== 'ready') {\n {{ card.t('empty') }}\n } @else {\n {{ formatted() }}<ng-content />\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n exportAs: 'slStatCardValue',\n host: { 'data-part': 'value', 'data-part-value': '' },\n})\nexport class SlStatCardValue {\n /** A number, formatted with the card's locale and `formatOptions`; the text otherwise. */\n readonly value = input<number | string | undefined>(undefined);\n readonly formatOptions = input<Intl.NumberFormatOptions | undefined>(undefined);\n\n protected readonly card = inject(SlStatCard);\n\n readonly formatted = computed(() => {\n const value = this.value();\n if (typeof value !== 'number') return value ?? '';\n return new Intl.NumberFormat(\n this.card.resolvedLocale(),\n this.formatOptions() ?? this.card.resolvedFormatOptions(),\n ).format(value);\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAuBO,MAAM,wBAAwB,GAAG,IAAI,cAAc,CACxD,4BAA4B,EAC5B,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAyB,EAAE,CAAC,EAAE;AAG/D;;;AAGG;AACG,SAAU,uBAAuB,CAAC,QAA0B,EAAA;IAChE,OAAO,EAAE,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAClE;SAEgB,sBAAsB,GAAA;AACpC,IAAA,OAAO,MAAM,CAAC,wBAAwB,CAAC;AACzC;;AC5BA;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