@slotted/angular 0.1.0-beta.14 → 0.1.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/docs/calendar.json +19 -1
  2. package/docs/calendar.md +3 -1
  3. package/docs/dashboard-grid.json +26 -4
  4. package/docs/dashboard-grid.md +5 -2
  5. package/docs/drawer.examples.md +1 -1
  6. package/docs/drawer.json +18 -7
  7. package/docs/drawer.md +7 -6
  8. package/docs/link.json +16 -0
  9. package/docs/link.md +3 -1
  10. package/docs/list-item.json +10 -2
  11. package/docs/list-item.md +16 -13
  12. package/docs/markdown.json +7 -0
  13. package/docs/markdown.md +1 -0
  14. package/docs/message-scroller.json +1 -1
  15. package/docs/prompt-composer.json +9 -2
  16. package/docs/prompt-composer.md +3 -1
  17. package/fesm2022/slotted-angular-attachment.mjs +2 -2
  18. package/fesm2022/slotted-angular-attachment.mjs.map +1 -1
  19. package/fesm2022/slotted-angular-calendar.mjs +32 -11
  20. package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
  21. package/fesm2022/slotted-angular-chart.mjs +2 -2
  22. package/fesm2022/slotted-angular-chart.mjs.map +1 -1
  23. package/fesm2022/slotted-angular-dashboard-grid.mjs +124 -22
  24. package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
  25. package/fesm2022/slotted-angular-date-picker.mjs +1 -1
  26. package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
  27. package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
  28. package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
  29. package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
  30. package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
  31. package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
  32. package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
  33. package/fesm2022/slotted-angular-dialog.mjs +4 -4
  34. package/fesm2022/slotted-angular-dialog.mjs.map +1 -1
  35. package/fesm2022/slotted-angular-drawer.mjs +154 -194
  36. package/fesm2022/slotted-angular-drawer.mjs.map +1 -1
  37. package/fesm2022/slotted-angular-link.mjs +10 -3
  38. package/fesm2022/slotted-angular-link.mjs.map +1 -1
  39. package/fesm2022/slotted-angular-list-item.mjs +44 -7
  40. package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
  41. package/fesm2022/slotted-angular-markdown.mjs +28 -14
  42. package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
  43. package/fesm2022/slotted-angular-message.mjs +4 -4
  44. package/fesm2022/slotted-angular-message.mjs.map +1 -1
  45. package/fesm2022/slotted-angular-prompt-composer.mjs +77 -4
  46. package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
  47. package/fesm2022/slotted-angular-section.mjs +2 -2
  48. package/fesm2022/slotted-angular-section.mjs.map +1 -1
  49. package/fesm2022/slotted-angular-stat-card.mjs +2 -2
  50. package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
  51. package/fesm2022/slotted-angular-table.mjs +2 -2
  52. package/fesm2022/slotted-angular-table.mjs.map +1 -1
  53. package/package.json +3 -3
  54. package/types/slotted-angular-calendar.d.ts +15 -2
  55. package/types/slotted-angular-calendar.d.ts.map +1 -1
  56. package/types/slotted-angular-dashboard-grid.d.ts +42 -6
  57. package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
  58. package/types/slotted-angular-drawer.d.ts +14 -16
  59. package/types/slotted-angular-drawer.d.ts.map +1 -1
  60. package/types/slotted-angular-link.d.ts +8 -2
  61. package/types/slotted-angular-link.d.ts.map +1 -1
  62. package/types/slotted-angular-list-item.d.ts +4 -0
  63. package/types/slotted-angular-list-item.d.ts.map +1 -1
  64. package/types/slotted-angular-markdown.d.ts +6 -1
  65. package/types/slotted-angular-markdown.d.ts.map +1 -1
  66. package/types/slotted-angular-prompt-composer.d.ts +24 -1
  67. package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
@@ -148,7 +148,7 @@ class SlSection {
148
148
  });
149
149
  }
150
150
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, deps: [], target: i0.ɵɵFactoryTarget.Component });
151
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-ui-section": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlSection, isStandalone: true, selector: "[slSection]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null }, ground: { classPropertyName: "ground", publicName: "ground", isSignal: true, isRequired: false, transformFunction: null }, divider: { classPropertyName: "divider", publicName: "divider", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "section", "data-ui-section": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.id": "id()", "attr.aria-labelledby": "hasHeading() ? headingId() : null", "attr.data-size": "resolvedSize()", "attr.data-level": "resolvedLevel()", "attr.data-ground": "resolvedGround()", "attr.data-divider": "resolvedDivider() ? '' : null", "attr.data-sticky": "resolvedSticky() ? '' : null" } }, exportAs: ["slSection"], ngImport: i0, template: '<ng-content />', isInline: true, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
152
152
  }
153
153
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlSection, decorators: [{
154
154
  type: Component,
@@ -164,7 +164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
164
164
  '[attr.data-ground]': 'resolvedGround()',
165
165
  '[attr.data-divider]': "resolvedDivider() ? '' : null",
166
166
  '[attr.data-sticky]': "resolvedSticky() ? '' : null",
167
- }, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"] }]
167
+ }, styles: ["@layer slotted.components{[data-ui-section]{--_gap: var(--slotted-section-gap, var(--slotted-space-5, .75rem));--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-section-border, var(--slotted-border-subtle, ButtonBorder));--_heading-size: var(--slotted-section-heading-size-md, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-md, var(--slotted-font-size-md, .875rem) );--_subheading-line-height: var(--slotted-line-height-md, 1.5);--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));color:var(--_text);display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);gap:var(--_gap);min-inline-size:0;scroll-margin-block-start:var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-size=sm]{--_heading-size: var(--slotted-section-heading-size-sm, var(--slotted-font-size-xs, .75rem));--_heading-line-height: var(--slotted-line-height-xs, 1.4);--_subheading-size: var( --slotted-section-subheading-size-sm, var(--slotted-font-size-sm, .8125rem) );--_subheading-line-height: var(--slotted-line-height-sm, 1.45)}[data-ui-section][data-size=lg]{--_heading-size: var(--slotted-section-heading-size-lg, var(--slotted-font-size-sm, .8125rem));--_heading-line-height: var(--slotted-line-height-sm, 1.45);--_subheading-size: var( --slotted-section-subheading-size-lg, var(--slotted-font-size-lg, 1rem) );--_subheading-line-height: var(--slotted-line-height-lg, 1.5)}:is([data-ui-container],[data-part-body])>[data-ui-section]+[data-ui-section]{margin-block-start:var(--slotted-section-spacing, var(--slotted-space-9, 2rem))}[data-ui-section]>[data-part-body]>[data-ui-section]:not(:first-child){margin-block-start:var(--slotted-section-subsection-spacing, var(--slotted-space-7, 1.25rem))}[data-ui-section][data-ground=surface]{--_ground: var(--slotted-section-surface, var(--slotted-surface-raised, Canvas));--slotted-ground: var(--_ground);background-color:var(--_ground);border:var(--slotted-border-width-thin, 1px) solid var(--_rule);border-radius:var(--slotted-section-radius, var(--slotted-radius-lg, 8px));padding:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section]>[data-part-header]{align-items:baseline;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-section][data-divider]>[data-part-header]{border-block-end:var(--slotted-border-width-thin, 1px) solid var(--_rule);padding-block-end:var(--slotted-space-4, .5rem)}[data-ui-section][data-ground=surface][data-divider]>[data-part-header]{margin-inline:calc(-1 * var(--slotted-section-inset, var(--slotted-space-6, 1rem)));padding-inline:var(--slotted-section-inset, var(--slotted-space-6, 1rem))}[data-ui-section][data-sticky]>[data-part-header]{background-color:var(--slotted-section-header-background, var(--_ground));inset-block-start:var(--slotted-page-sticky-top, 0px);margin-block-start:calc(-1 * var(--slotted-space-4, .5rem));padding-block-start:var(--slotted-space-4, .5rem);position:sticky;z-index:var(--slotted-z-index-sticky, 100)}[data-ui-section][data-sticky]{--_above: var(--slotted-page-sticky-top, 0px)}[data-ui-section][data-sticky]>[data-part-body]{--slotted-page-sticky-top: calc(var(--_above) + var(--slotted-section-header-size, 0px));--slotted-table-sticky-offset: var(--slotted-page-sticky-top)}[data-ui-section]>[data-part-header]>[data-part-title]{align-items:baseline;display:grid;grid-column:1;grid-row:1 / span 3;grid-template-columns:minmax(min-content,max-content) 1fr;grid-template-rows:subgrid;min-inline-size:0}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-eyebrow]{color:var(--_muted);font-size:var(--slotted-font-size-xs, .75rem);grid-column:1 / -1;grid-row:1;margin-block-end:var(--slotted-space-1, .125rem);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.06em;line-height:var(--slotted-line-height-xs, 1.4);text-transform:uppercase}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_text);font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--_heading-size);font-weight:var(--slotted-font-weight-semibold, 600);letter-spacing:.08em;line-height:var(--_heading-line-height);text-transform:uppercase;grid-column:1;grid-row:2;margin:0;min-inline-size:0;overflow-wrap:break-word;text-wrap:pretty}[data-ui-section] [data-ui-section]>[data-part-header]>[data-part-title]>[data-part-heading]{color:var(--_muted);font-size:var(--_subheading-size);letter-spacing:normal;line-height:var(--_subheading-line-height);text-transform:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]{align-items:baseline;display:flex;flex-wrap:wrap;gap:var(--slotted-space-3, .375rem);grid-column:2;grid-row:2;justify-self:start;margin-inline-start:var(--slotted-space-4, .5rem)}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-tags]:empty{display:none}[data-ui-section]>[data-part-header]>[data-part-title]>[data-part-description]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);grid-column:1 / -1;grid-row:3;line-height:var(--slotted-line-height-sm, 1.45);margin:var(--slotted-space-1, .125rem) 0 0;max-inline-size:var(--slotted-section-description-measure, 70ch);text-wrap:pretty}[data-ui-section]>[data-part-header]>[data-part-actions]{--slotted-link-font-size: var(--slotted-font-size-sm, .8125rem);align-items:center;display:flex;gap:var(--slotted-control-gap-md, 8px);grid-column:2;grid-row:2;margin-inline-start:var(--slotted-space-6, 1rem)}[data-ui-section]>[data-part-header]>[data-part-actions]:empty{display:none}@container (inline-size < 20rem){[data-ui-section]>[data-part-header]>[data-part-actions]{grid-column:1 / -1;grid-row:4;justify-self:end;margin:var(--slotted-space-3, .375rem) 0 0}}[data-ui-section]>[data-part-body]{min-inline-size:0}}\n"] }]
168
168
  }], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }], ground: [{ type: i0.Input, args: [{ isSignal: true, alias: "ground", required: false }] }], divider: [{ type: i0.Input, args: [{ isSignal: true, alias: "divider", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }] } });
169
169
 
170
170
  const HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-section.mjs","sources":["../../section/src/section-defaults.ts","../../section/src/section.ts","../../section/src/section-parts.ts","../../section/src/slotted-angular-section.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the heading sits at, independent of its rank. */\nexport type SectionSize = 'sm' | 'md' | 'lg';\n\n/** The rank of the heading. `auto` takes the one the outline gives. */\nexport type SectionLevel = 'auto' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** The ground: nothing, or a surface with an edge and a radius and no shadow. */\nexport type SectionGround = 'none' | 'surface';\n\nexport interface SectionDefaults {\n divider: boolean;\n ground: SectionGround;\n size: SectionSize;\n sticky: boolean;\n}\n\nconst FALLBACK: SectionDefaults = {\n divider: false,\n ground: 'none',\n size: 'md',\n sticky: false,\n};\n\nexport const SECTION_DEFAULTS = new InjectionToken<SectionDefaults>('slotted section defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its sections separate — a rule, a surface,\n * the step of their headings — rather than repeating the same inputs on every\n * one. A section that states any of them itself still wins.\n */\nexport function provideSectionDefaults(defaults: Partial<SectionDefaults>) {\n return {\n provide: SECTION_DEFAULTS,\n useFactory: (): SectionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a section renders as here, before it states anything of its own. */\nexport function injectSectionDefaults(): SectionDefaults {\n return inject(SECTION_DEFAULTS);\n}\n\n/** Application-scoped, for the reason `field` records: the server and the client sequences must match. */\n@Injectable({ providedIn: 'root' })\nexport class SlSectionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-section-${this.count}`;\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { observeStuck } from '@slotted/core/sticky-header';\nimport type { HeadingLevelValue } from '@slotted/angular/typography';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectSectionDefaults, SlSectionIdFactory } from './section-defaults';\nimport type { SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\nexport type { SectionDefaults, SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\n/**\n * One unit of content inside a page: a header — eyebrow, heading,\n * description, actions — and a body one outline step deeper.\n *\n * **The rank is the outline's.** `typography` owns it: the heading takes the\n * rank `slHeadingLevel` gives — `h2` directly in a page body, one deeper\n * inside another section's body — unless `level` says otherwise. The element\n * is the consumer's: `<h2 slSectionHeading>` is a native heading and the\n * directive adds nothing to it; `<div slSectionHeading>` gets `role=\"heading\"`\n * and the level the section resolved.\n *\n * **A region only when it has a name.** The root is `aria-labelledby` its\n * heading once one is rendered, which makes the `section` a region landmark.\n *\n * **The hooks anchor navigation needs.** The root carries an `id`, the\n * consumer's own or a generated one, and a scroll margin the height of the\n * page's fixed chrome, so a hash link lands under the header.\n */\n/** The measured height of a sticky section's header, written on the root. */\nexport const HEADER_SIZE_PROPERTY = '--slotted-section-header-size';\n\n@Component({\n selector: '[slSection]',\n standalone: true,\n exportAs: 'slSection',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/section/section.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'section',\n 'data-ui-section': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': 'hasHeading() ? headingId() : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-level]': 'resolvedLevel()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-divider]': \"resolvedDivider() ? '' : null\",\n '[attr.data-sticky]': \"resolvedSticky() ? '' : null\",\n },\n})\nexport class SlSection {\n readonly size = input<SectionSize | undefined>(undefined);\n /** Defaults to `auto`: the rank the outline gives. */\n readonly level = input<SectionLevel | undefined>(undefined);\n readonly ground = input<SectionGround | undefined>(undefined);\n readonly divider = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n private readonly defaults = injectSectionDefaults();\n private readonly outline = inject(SlHeadingLevel, { optional: true });\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generated = inject(SlSectionIdFactory).next();\n\n /** Whether a heading is rendered, which is what makes the section a region. */\n readonly hasHeading = signal(false);\n /** The header element, handed over by `slSectionHeader`, so a sticky header can be measured. */\n readonly header = signal<HTMLElement | null>(null);\n\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n readonly id = computed(() => this.writtenId ?? this.generated);\n readonly headingId = computed(() => `${this.id()}-heading`);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedDivider = computed(() => (this.divider() ?? this.defaults.divider) === true);\n readonly resolvedSticky = computed(() => (this.sticky() ?? this.defaults.sticky) === true);\n readonly resolvedLevel = computed<HeadingLevelValue>(() => {\n const level = this.level();\n if (level === undefined || level === 'auto') return this.outline?.level ?? 1;\n return Number(level) as HeadingLevelValue;\n });\n\n constructor() {\n /**\n * A sticky header is chrome for what is under it: its height, measured,\n * goes on the root as `--slotted-section-header-size`, and the stylesheet\n * republishes `--slotted-page-sticky-top` for the body as page plus\n * header, so a table's column header or a nested section stops under this\n * header. Written on the element, so a resize costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n /* Rounded up: a fractional height rounded down leaves a hairline gap the rows show through. */\n const write = () =>\n this.native.style.setProperty(\n HEADER_SIZE_PROPERTY,\n `${Math.ceil(header.getBoundingClientRect().height || header.offsetHeight)}px`,\n );\n write();\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(write);\n sizes?.observe(header);\n onCleanup(() => {\n sizes?.disconnect();\n this.native.style.removeProperty(HEADER_SIZE_PROPERTY);\n });\n });\n\n /**\n * `data-stuck` on the header while content passes under it, so a theme\n * can paint the header's ground only then. Written on the element, so a\n * scroll costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n const stop = observeStuck(header, (stuck) => {\n if (stuck) header.setAttribute('data-stuck', '');\n else header.removeAttribute('data-stuck');\n });\n onCleanup(() => {\n stop();\n header.removeAttribute('data-stuck');\n });\n });\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { computed, Directive, ElementRef, inject, isDevMode } from '@angular/core';\nimport type { OnDestroy, OnInit } from '@angular/core';\n\nimport { SlSection } from './section';\n\nconst HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);\n\n/**\n * The row above the body: the title column and the actions. It hands the\n * root its element, so a sticky header's height reaches the stylesheet.\n */\n@Directive({\n selector: '[slSectionHeader]',\n standalone: true,\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlSectionHeader implements OnInit, OnDestroy {\n private readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n this.section.header.set(this.native);\n }\n\n ngOnDestroy() {\n if (this.section.header() === this.native) this.section.header.set(null);\n }\n}\n\n/** Eyebrow, heading, tags, description, in that order. */\n@Directive({\n selector: '[slSectionTitle]',\n standalone: true,\n host: { 'data-part': 'title', 'data-part-title': '' },\n})\nexport class SlSectionTitle {}\n\n/** A short overline above the heading — a count, a category. Structural, not status. */\n@Directive({\n selector: '[slSectionEyebrow]',\n standalone: true,\n host: { 'data-part': 'eyebrow', 'data-part-eyebrow': '' },\n})\nexport class SlSectionEyebrow {}\n\n/**\n * Badges or tags beside the heading — a count, a status — on its baseline.\n * Outside the heading, so they are not read into the region's name.\n */\n@Directive({\n selector: '[slSectionTags]',\n standalone: true,\n host: { 'data-part': 'tags', 'data-part-tags': '' },\n})\nexport class SlSectionTags {}\n\n/** A paragraph under the heading, in the muted text, with a measure. */\n@Directive({\n selector: '[slSectionDescription]',\n standalone: true,\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlSectionDescription implements OnInit {\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n if (isDevMode() && this.native.parentElement?.getAttribute('data-part') !== 'title') {\n console.warn(\n 'slSectionDescription is written outside slSectionTitle, so the stylesheet does not reach it and it renders unstyled. Move it inside slSectionTitle.',\n );\n }\n }\n}\n\n/** The end of the heading's row, on its baseline: a button, a toolbar, a link. */\n@Directive({\n selector: '[slSectionActions]',\n standalone: true,\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlSectionActions {}\n\n/**\n * The heading, at the rank the section resolved. Rendering it is what makes\n * the section a region: the root names it through `aria-labelledby`. The\n * element is the consumer's own — a native heading gets nothing added, and\n * anything else gets `role=\"heading\"` and `aria-level`.\n */\n@Directive({\n selector: '[slSectionHeading]',\n standalone: true,\n exportAs: 'slSectionHeading',\n host: {\n 'data-part': 'heading',\n 'data-part-heading': '',\n '[attr.id]': 'section.headingId()',\n '[attr.role]': 'ariaRole()',\n '[attr.aria-level]': 'ariaLevel()',\n },\n})\nexport class SlSectionHeading implements OnInit, OnDestroy {\n protected readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly isNativeHeading = HEADINGS.has(this.native.tagName);\n\n protected readonly ariaRole = computed(() => (this.isNativeHeading ? null : 'heading'));\n protected readonly ariaLevel = computed(() =>\n this.isNativeHeading ? null : this.section.resolvedLevel(),\n );\n\n ngOnInit() {\n this.section.hasHeading.set(true);\n }\n\n ngOnDestroy() {\n this.section.hasHeading.set(false);\n }\n}\n\n/** The content, one outline step deeper: `slHeadingLevel` is a host directive. */\n@Directive({\n selector: '[slSectionBody]',\n standalone: true,\n hostDirectives: [SlHeadingLevel],\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlSectionBody {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,QAAQ,GAAoB;AAChC,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,KAAK;CACd;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE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EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,MAAA,EAAA,gBAAA,EAAA,EAAA,EAAA,EAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;oBAChB,cAAc,EAAE,CAAC,cAAc,CAAC;oBAChC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE;AACpD,iBAAA;;;AC9HD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-section.mjs","sources":["../../section/src/section-defaults.ts","../../section/src/section.ts","../../section/src/section-parts.ts","../../section/src/slotted-angular-section.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** The type step the heading sits at, independent of its rank. */\nexport type SectionSize = 'sm' | 'md' | 'lg';\n\n/** The rank of the heading. `auto` takes the one the outline gives. */\nexport type SectionLevel = 'auto' | '1' | '2' | '3' | '4' | '5' | '6';\n\n/** The ground: nothing, or a surface with an edge and a radius and no shadow. */\nexport type SectionGround = 'none' | 'surface';\n\nexport interface SectionDefaults {\n divider: boolean;\n ground: SectionGround;\n size: SectionSize;\n sticky: boolean;\n}\n\nconst FALLBACK: SectionDefaults = {\n divider: false,\n ground: 'none',\n size: 'md',\n sticky: false,\n};\n\nexport const SECTION_DEFAULTS = new InjectionToken<SectionDefaults>('slotted section defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/**\n * An application decides once how its sections separate — a rule, a surface,\n * the step of their headings — rather than repeating the same inputs on every\n * one. A section that states any of them itself still wins.\n */\nexport function provideSectionDefaults(defaults: Partial<SectionDefaults>) {\n return {\n provide: SECTION_DEFAULTS,\n useFactory: (): SectionDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\n/** What a section renders as here, before it states anything of its own. */\nexport function injectSectionDefaults(): SectionDefaults {\n return inject(SECTION_DEFAULTS);\n}\n\n/** Application-scoped, for the reason `field` records: the server and the client sequences must match. */\n@Injectable({ providedIn: 'root' })\nexport class SlSectionIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-section-${this.count}`;\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { observeStuck } from '@slotted/core/sticky-header';\nimport type { HeadingLevelValue } from '@slotted/angular/typography';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n HostAttributeToken,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectSectionDefaults, SlSectionIdFactory } from './section-defaults';\nimport type { SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\nexport type { SectionDefaults, SectionGround, SectionLevel, SectionSize } from './section-defaults';\n\n/**\n * One unit of content inside a page: a header — eyebrow, heading,\n * description, actions — and a body one outline step deeper.\n *\n * **The rank is the outline's.** `typography` owns it: the heading takes the\n * rank `slHeadingLevel` gives — `h2` directly in a page body, one deeper\n * inside another section's body — unless `level` says otherwise. The element\n * is the consumer's: `<h2 slSectionHeading>` is a native heading and the\n * directive adds nothing to it; `<div slSectionHeading>` gets `role=\"heading\"`\n * and the level the section resolved.\n *\n * **A region only when it has a name.** The root is `aria-labelledby` its\n * heading once one is rendered, which makes the `section` a region landmark.\n *\n * **The hooks anchor navigation needs.** The root carries an `id`, the\n * consumer's own or a generated one, and a scroll margin the height of the\n * page's fixed chrome, so a hash link lands under the header.\n */\n/** The measured height of a sticky section's header, written on the root. */\nexport const HEADER_SIZE_PROPERTY = '--slotted-section-header-size';\n\n@Component({\n selector: '[slSection]',\n standalone: true,\n exportAs: 'slSection',\n template: '<ng-content />',\n styleUrl: '../../../styles/src/section/section.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'section',\n 'data-ui-section': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.id]': 'id()',\n '[attr.aria-labelledby]': 'hasHeading() ? headingId() : null',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-level]': 'resolvedLevel()',\n '[attr.data-ground]': 'resolvedGround()',\n '[attr.data-divider]': \"resolvedDivider() ? '' : null\",\n '[attr.data-sticky]': \"resolvedSticky() ? '' : null\",\n },\n})\nexport class SlSection {\n readonly size = input<SectionSize | undefined>(undefined);\n /** Defaults to `auto`: the rank the outline gives. */\n readonly level = input<SectionLevel | undefined>(undefined);\n readonly ground = input<SectionGround | undefined>(undefined);\n readonly divider = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n readonly sticky = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (state) => (state === undefined ? undefined : booleanAttribute(state)),\n });\n\n private readonly defaults = injectSectionDefaults();\n private readonly outline = inject(SlHeadingLevel, { optional: true });\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generated = inject(SlSectionIdFactory).next();\n\n /** Whether a heading is rendered, which is what makes the section a region. */\n readonly hasHeading = signal(false);\n /** The header element, handed over by `slSectionHeader`, so a sticky header can be measured. */\n readonly header = signal<HTMLElement | null>(null);\n\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n readonly id = computed(() => this.writtenId ?? this.generated);\n readonly headingId = computed(() => `${this.id()}-heading`);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n readonly resolvedGround = computed(() => this.ground() ?? this.defaults.ground);\n readonly resolvedDivider = computed(() => (this.divider() ?? this.defaults.divider) === true);\n readonly resolvedSticky = computed(() => (this.sticky() ?? this.defaults.sticky) === true);\n readonly resolvedLevel = computed<HeadingLevelValue>(() => {\n const level = this.level();\n if (level === undefined || level === 'auto') return this.outline?.level ?? 1;\n return Number(level) as HeadingLevelValue;\n });\n\n constructor() {\n /**\n * A sticky header is chrome for what is under it: its height, measured,\n * goes on the root as `--slotted-section-header-size`, and the stylesheet\n * republishes `--slotted-page-sticky-top` for the body as page plus\n * header, so a table's column header or a nested section stops under this\n * header. Written on the element, so a resize costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n /* Rounded up: a fractional height rounded down leaves a hairline gap the rows show through. */\n const write = () =>\n this.native.style.setProperty(\n HEADER_SIZE_PROPERTY,\n `${Math.ceil(header.getBoundingClientRect().height || header.offsetHeight)}px`,\n );\n write();\n const sizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(write);\n sizes?.observe(header);\n onCleanup(() => {\n sizes?.disconnect();\n this.native.style.removeProperty(HEADER_SIZE_PROPERTY);\n });\n });\n\n /**\n * `data-stuck` on the header while content passes under it, so a theme\n * can paint the header's ground only then. Written on the element, so a\n * scroll costs no change detection.\n */\n effect((onCleanup) => {\n const header = this.header();\n if (!this.resolvedSticky() || header === null) return;\n const stop = observeStuck(header, (stuck) => {\n if (stuck) header.setAttribute('data-stuck', '');\n else header.removeAttribute('data-stuck');\n });\n onCleanup(() => {\n stop();\n header.removeAttribute('data-stuck');\n });\n });\n }\n}\n","import { SlHeadingLevel } from '@slotted/angular/typography';\nimport { computed, Directive, ElementRef, inject, isDevMode } from '@angular/core';\nimport type { OnDestroy, OnInit } from '@angular/core';\n\nimport { SlSection } from './section';\n\nconst HEADINGS = new Set(['H1', 'H2', 'H3', 'H4', 'H5', 'H6']);\n\n/**\n * The row above the body: the title column and the actions. It hands the\n * root its element, so a sticky header's height reaches the stylesheet.\n */\n@Directive({\n selector: '[slSectionHeader]',\n standalone: true,\n host: { 'data-part': 'header', 'data-part-header': '' },\n})\nexport class SlSectionHeader implements OnInit, OnDestroy {\n private readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n this.section.header.set(this.native);\n }\n\n ngOnDestroy() {\n if (this.section.header() === this.native) this.section.header.set(null);\n }\n}\n\n/** Eyebrow, heading, tags, description, in that order. */\n@Directive({\n selector: '[slSectionTitle]',\n standalone: true,\n host: { 'data-part': 'title', 'data-part-title': '' },\n})\nexport class SlSectionTitle {}\n\n/** A short overline above the heading — a count, a category. Structural, not status. */\n@Directive({\n selector: '[slSectionEyebrow]',\n standalone: true,\n host: { 'data-part': 'eyebrow', 'data-part-eyebrow': '' },\n})\nexport class SlSectionEyebrow {}\n\n/**\n * Badges or tags beside the heading — a count, a status — on its baseline.\n * Outside the heading, so they are not read into the region's name.\n */\n@Directive({\n selector: '[slSectionTags]',\n standalone: true,\n host: { 'data-part': 'tags', 'data-part-tags': '' },\n})\nexport class SlSectionTags {}\n\n/** A paragraph under the heading, in the muted text, with a measure. */\n@Directive({\n selector: '[slSectionDescription]',\n standalone: true,\n host: { 'data-part': 'description', 'data-part-description': '' },\n})\nexport class SlSectionDescription implements OnInit {\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n\n ngOnInit() {\n if (isDevMode() && this.native.parentElement?.getAttribute('data-part') !== 'title') {\n console.warn(\n 'slSectionDescription is written outside slSectionTitle, so the stylesheet does not reach it and it renders unstyled. Move it inside slSectionTitle.',\n );\n }\n }\n}\n\n/** The end of the heading's row, on its baseline: a button, a toolbar, a link. */\n@Directive({\n selector: '[slSectionActions]',\n standalone: true,\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n})\nexport class SlSectionActions {}\n\n/**\n * The heading, at the rank the section resolved. Rendering it is what makes\n * the section a region: the root names it through `aria-labelledby`. The\n * element is the consumer's own — a native heading gets nothing added, and\n * anything else gets `role=\"heading\"` and `aria-level`.\n */\n@Directive({\n selector: '[slSectionHeading]',\n standalone: true,\n exportAs: 'slSectionHeading',\n host: {\n 'data-part': 'heading',\n 'data-part-heading': '',\n '[attr.id]': 'section.headingId()',\n '[attr.role]': 'ariaRole()',\n '[attr.aria-level]': 'ariaLevel()',\n },\n})\nexport class SlSectionHeading implements OnInit, OnDestroy {\n protected readonly section = inject(SlSection);\n private readonly native: HTMLElement = inject(ElementRef).nativeElement;\n private readonly isNativeHeading = HEADINGS.has(this.native.tagName);\n\n protected readonly ariaRole = computed(() => (this.isNativeHeading ? null : 'heading'));\n protected readonly ariaLevel = computed(() =>\n this.isNativeHeading ? null : this.section.resolvedLevel(),\n );\n\n ngOnInit() {\n this.section.hasHeading.set(true);\n }\n\n ngOnDestroy() {\n this.section.hasHeading.set(false);\n }\n}\n\n/** The content, one outline step deeper: `slHeadingLevel` is a host directive. */\n@Directive({\n selector: '[slSectionBody]',\n standalone: true,\n hostDirectives: [SlHeadingLevel],\n host: { 'data-part': 'body', 'data-part-body': '' },\n})\nexport class SlSectionBody {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAkBA,MAAM,QAAQ,GAAoB;AAChC,IAAA,OAAO,EAAE,KAAK;AACd,IAAA,MAAM,EAAE,MAAM;AACd,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,KAAK;CACd;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;;;;AAIG;AACG,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAClE;AACH;AAEA;SACgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC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,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,UAAU,EAAE,IAAI;oBAChB,cAAc,EAAE,CAAC,cAAc,CAAC;oBAChC,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,EAAE,EAAE;AACpD,iBAAA;;;AC9HD;;AAEG;;"}
@@ -122,7 +122,7 @@ class SlStatCard {
122
122
  labelledBy = computed(() => this.ownLabel !== null ? null : (this.ownLabelledBy ?? this.labelId), /* @ts-ignore */
123
123
  ...(ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []));
124
124
  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]{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 });
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
126
  }
127
127
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlStatCard, decorators: [{
128
128
  type: Component,
@@ -141,7 +141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
141
141
  '[attr.data-good-when]': 'resolvedGoodWhen()',
142
142
  '[attr.data-tone]': 'resolvedTone() ?? null',
143
143
  '[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]{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"] }]
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
145
  }], 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
146
  function optionalNumber(value) {
147
147
  if (value === undefined || value === null || value === '')
@@ -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,MA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AA,QAAA,EAZhB,CAAA;;;;;;AAMN,KAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAPM,UAAU,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,MAAA,EAAA,WAAA,EAAA,SAAA,EAAA,YAAA,EAAA,WAAA,CAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,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';\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,C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