@forgeroute/ui 0.5.31 → 0.5.33

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 (48) hide show
  1. package/fesm2022/forgeroute-ui-address-input.mjs +10 -2
  2. package/fesm2022/forgeroute-ui-address-input.mjs.map +1 -1
  3. package/fesm2022/forgeroute-ui-conversations.mjs +1 -0
  4. package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -1
  5. package/fesm2022/forgeroute-ui-core.mjs +22 -2
  6. package/fesm2022/forgeroute-ui-core.mjs.map +1 -1
  7. package/fesm2022/forgeroute-ui-data-table-core.mjs +21 -7
  8. package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
  9. package/fesm2022/forgeroute-ui-editor.mjs +1 -0
  10. package/fesm2022/forgeroute-ui-editor.mjs.map +1 -1
  11. package/fesm2022/forgeroute-ui-form-row.mjs +54 -18
  12. package/fesm2022/forgeroute-ui-form-row.mjs.map +1 -1
  13. package/fesm2022/forgeroute-ui-form-section.mjs +32 -4
  14. package/fesm2022/forgeroute-ui-form-section.mjs.map +1 -1
  15. package/fesm2022/forgeroute-ui-kpi-card.mjs +20 -4
  16. package/fesm2022/forgeroute-ui-kpi-card.mjs.map +1 -1
  17. package/fesm2022/forgeroute-ui-list-item.mjs +2 -2
  18. package/fesm2022/forgeroute-ui-list-item.mjs.map +1 -1
  19. package/fesm2022/forgeroute-ui-map.mjs +10 -2
  20. package/fesm2022/forgeroute-ui-map.mjs.map +1 -1
  21. package/fesm2022/forgeroute-ui-messaging.mjs +31 -6
  22. package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
  23. package/fesm2022/forgeroute-ui-notification-bell.mjs +1 -0
  24. package/fesm2022/forgeroute-ui-notification-bell.mjs.map +1 -1
  25. package/fesm2022/forgeroute-ui-offline.mjs +1 -0
  26. package/fesm2022/forgeroute-ui-offline.mjs.map +1 -1
  27. package/fesm2022/forgeroute-ui-payments.mjs +29 -5
  28. package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
  29. package/fesm2022/forgeroute-ui-phone-number-picker.mjs +1 -0
  30. package/fesm2022/forgeroute-ui-phone-number-picker.mjs.map +1 -1
  31. package/fesm2022/forgeroute-ui-quickbooks.mjs +11 -2
  32. package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
  33. package/fesm2022/forgeroute-ui-share-menu.mjs +46 -15
  34. package/fesm2022/forgeroute-ui-share-menu.mjs.map +1 -1
  35. package/fesm2022/forgeroute-ui-square.mjs +1 -0
  36. package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
  37. package/fesm2022/forgeroute-ui-stripe.mjs +22 -4
  38. package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
  39. package/fesm2022/forgeroute-ui-table-types.mjs.map +1 -1
  40. package/package.json +1 -1
  41. package/types/forgeroute-ui-core.d.ts +9 -2
  42. package/types/forgeroute-ui-data-table-core.d.ts +5 -0
  43. package/types/forgeroute-ui-form-row.d.ts +14 -0
  44. package/types/forgeroute-ui-form-section.d.ts +8 -1
  45. package/types/forgeroute-ui-kpi-card.d.ts +7 -0
  46. package/types/forgeroute-ui-list-item.d.ts +1 -1
  47. package/types/forgeroute-ui-share-menu.d.ts +20 -11
  48. package/types/forgeroute-ui-table-types.d.ts +7 -0
@@ -3,6 +3,8 @@ import { ChangeDetectionStrategy, Component, Directive, ViewEncapsulation, compu
3
3
  var FormRowComponent = class FormRowComponent {
4
4
  constructor() {
5
5
  this.cols = input(2, ...ngDevMode ? [{ debugName: "cols" }] : /* istanbul ignore next */ []);
6
+ this.autoLast = input(false, ...ngDevMode ? [{ debugName: "autoLast" }] : /* istanbul ignore next */ []);
7
+ this.align = input("stretch", ...ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []);
6
8
  }
7
9
  static {
8
10
  this.ɵfac = i0.ɵɵngDeclareFactory({
@@ -21,17 +23,33 @@ var FormRowComponent = class FormRowComponent {
21
23
  type: FormRowComponent,
22
24
  isStandalone: true,
23
25
  selector: "ui-form-row",
24
- inputs: { cols: {
25
- classPropertyName: "cols",
26
- publicName: "cols",
27
- isSignal: true,
28
- isRequired: false,
29
- transformFunction: null
30
- } },
26
+ inputs: {
27
+ cols: {
28
+ classPropertyName: "cols",
29
+ publicName: "cols",
30
+ isSignal: true,
31
+ isRequired: false,
32
+ transformFunction: null
33
+ },
34
+ autoLast: {
35
+ classPropertyName: "autoLast",
36
+ publicName: "autoLast",
37
+ isSignal: true,
38
+ isRequired: false,
39
+ transformFunction: null
40
+ },
41
+ align: {
42
+ classPropertyName: "align",
43
+ publicName: "align",
44
+ isSignal: true,
45
+ isRequired: false,
46
+ transformFunction: null
47
+ }
48
+ },
31
49
  ngImport: i0,
32
- template: `<div class="fr-row" [class.fr-row--4]="cols() === 4" [style.--fr-cols]="cols()"><ng-content /></div>`,
50
+ template: `<div class="fr-row" [class.fr-row--4]="cols() === 4" [class.fr-row--auto-last]="autoLast()" [class.fr-row--end]="align() === 'end'" [style.--fr-cols]="cols()" [style.--fr-before]="cols() - 1"><ng-content /></div>`,
33
51
  isInline: true,
34
- styles: ["ui-form-row{display:block}.fr-row{display:grid;grid-template-columns:repeat(var(--fr-cols, 2),1fr);gap:12px}.fr-row>.ui-span-2{grid-column:span 2}.fr-row>.ui-span-3{grid-column:span 3}.fr-row>.ui-span-all{grid-column:1 / -1}@media(max-width:768px){.fr-row--4{grid-template-columns:repeat(2,1fr)}.fr-row--4>.ui-span-3{grid-column:1 / -1}}@media(max-width:480px){.fr-row{grid-template-columns:1fr}.fr-row>.ui-span-2,.fr-row>.ui-span-3,.fr-row>.ui-span-all{grid-column:1 / -1}}\n"],
52
+ styles: ["ui-form-row{display:block}.fr-row{display:grid;grid-template-columns:repeat(var(--fr-cols, 2),1fr);gap:12px}.fr-row--auto-last{grid-template-columns:repeat(var(--fr-before, 1),1fr) auto}.fr-row--end{align-items:end}.fr-row>.ui-span-2{grid-column:span 2}.fr-row>.ui-span-3{grid-column:span 3}.fr-row>.ui-span-all{grid-column:1 / -1}@media(max-width:768px){.fr-row--4{grid-template-columns:repeat(2,1fr)}.fr-row--4>.ui-span-3{grid-column:1 / -1}}@media(max-width:480px){.fr-row{grid-template-columns:1fr}.fr-row>.ui-span-2,.fr-row>.ui-span-3,.fr-row>.ui-span-all{grid-column:1 / -1}}\n"],
35
53
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
36
54
  encapsulation: i0.ViewEncapsulation.None
37
55
  });
@@ -49,18 +67,36 @@ i0.ɵɵngDeclareClassMetadata({
49
67
  standalone: true,
50
68
  changeDetection: ChangeDetectionStrategy.OnPush,
51
69
  encapsulation: ViewEncapsulation.None,
52
- template: `<div class="fr-row" [class.fr-row--4]="cols() === 4" [style.--fr-cols]="cols()"><ng-content /></div>`,
53
- styles: ["ui-form-row{display:block}.fr-row{display:grid;grid-template-columns:repeat(var(--fr-cols, 2),1fr);gap:12px}.fr-row>.ui-span-2{grid-column:span 2}.fr-row>.ui-span-3{grid-column:span 3}.fr-row>.ui-span-all{grid-column:1 / -1}@media(max-width:768px){.fr-row--4{grid-template-columns:repeat(2,1fr)}.fr-row--4>.ui-span-3{grid-column:1 / -1}}@media(max-width:480px){.fr-row{grid-template-columns:1fr}.fr-row>.ui-span-2,.fr-row>.ui-span-3,.fr-row>.ui-span-all{grid-column:1 / -1}}\n"]
70
+ template: `<div class="fr-row" [class.fr-row--4]="cols() === 4" [class.fr-row--auto-last]="autoLast()" [class.fr-row--end]="align() === 'end'" [style.--fr-cols]="cols()" [style.--fr-before]="cols() - 1"><ng-content /></div>`,
71
+ styles: ["ui-form-row{display:block}.fr-row{display:grid;grid-template-columns:repeat(var(--fr-cols, 2),1fr);gap:12px}.fr-row--auto-last{grid-template-columns:repeat(var(--fr-before, 1),1fr) auto}.fr-row--end{align-items:end}.fr-row>.ui-span-2{grid-column:span 2}.fr-row>.ui-span-3{grid-column:span 3}.fr-row>.ui-span-all{grid-column:1 / -1}@media(max-width:768px){.fr-row--4{grid-template-columns:repeat(2,1fr)}.fr-row--4>.ui-span-3{grid-column:1 / -1}}@media(max-width:480px){.fr-row{grid-template-columns:1fr}.fr-row>.ui-span-2,.fr-row>.ui-span-3,.fr-row>.ui-span-all{grid-column:1 / -1}}\n"]
54
72
  }]
55
73
  }],
56
- propDecorators: { cols: [{
57
- type: i0.Input,
58
- args: [{
59
- isSignal: true,
60
- alias: "cols",
61
- required: false
74
+ propDecorators: {
75
+ cols: [{
76
+ type: i0.Input,
77
+ args: [{
78
+ isSignal: true,
79
+ alias: "cols",
80
+ required: false
81
+ }]
82
+ }],
83
+ autoLast: [{
84
+ type: i0.Input,
85
+ args: [{
86
+ isSignal: true,
87
+ alias: "autoLast",
88
+ required: false
89
+ }]
90
+ }],
91
+ align: [{
92
+ type: i0.Input,
93
+ args: [{
94
+ isSignal: true,
95
+ alias: "align",
96
+ required: false
97
+ }]
62
98
  }]
63
- }] }
99
+ }
64
100
  });
65
101
  var FormColSpanDirective = class FormColSpanDirective {
66
102
  constructor() {
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-form-row.mjs","names":[],"sources":["../../../projects/forgeroute-ui/form-row/src/lib/form-row/form-row.component.ts","../../../projects/forgeroute-ui/form-row/src/lib/form-row/form-col-span.directive.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ui-form-row',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `<div class=\"fr-row\" [class.fr-row--4]=\"cols() === 4\" [style.--fr-cols]=\"cols()\"><ng-content /></div>`,\n styles: [`\n ui-form-row { display: block; }\n\n .fr-row {\n display: grid;\n grid-template-columns: repeat(var(--fr-cols, 2), 1fr);\n gap: 12px;\n }\n\n /* Column spanning for a direct child: class ui-span-2 / ui-span-3 / ui-span-all (or the uiColSpan directive). Use ui-span-all for\n \"the whole row\"; a numeric span wider than the row columns would add implicit columns, so keep it within the cols input. */\n .fr-row > .ui-span-2 { grid-column: span 2; }\n .fr-row > .ui-span-3 { grid-column: span 3; }\n .fr-row > .ui-span-all { grid-column: 1 / -1; }\n\n /* 4 columns: two columns on tablets and small laptops (the 3-column row keeps its single breakpoint at 480px). */\n @media (max-width: 768px) {\n .fr-row--4 { grid-template-columns: repeat(2, 1fr); }\n .fr-row--4 > .ui-span-3 { grid-column: 1 / -1; }\n }\n\n @media (max-width: 480px) {\n .fr-row { grid-template-columns: 1fr; }\n /* One column on a phone: a span must not create extra implicit columns. */\n .fr-row > .ui-span-2,\n .fr-row > .ui-span-3,\n .fr-row > .ui-span-all { grid-column: 1 / -1; }\n }\n `],\n})\nexport class FormRowComponent {\n readonly cols = input<1 | 2 | 3 | 4>(2);\n}\n","import { Directive, computed, input } from '@angular/core';\n\n/**\n * Lets a direct child of `ui-form-row` span several columns: `<ui-text-input uiColSpan=\"2\" .../>` (2 or 3 columns) or\n * `uiColSpan=\"all\"` (every column). It only adds the class `ui-span-2` / `ui-span-3` / `ui-span-all`, which `ui-form-row` styles, so a\n * plain `class=\"ui-span-2\"` on the child works too without importing this directive. On a phone (<= 480px) the row is one column and the\n * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).\n */\n@Directive({\n selector: '[uiColSpan]',\n standalone: true,\n host: { '[class]': '_class()' },\n})\nexport class FormColSpanDirective {\n readonly uiColSpan = input<2 | 3 | 'all' | '2' | '3' | ''>('');\n protected readonly _class = computed(() => {\n const v = String(this.uiColSpan());\n return v === '2' || v === '3' || v === 'all' ? `ui-span-${v}` : '';\n });\n}\n"],"mappings":";;AAsCA,IAAa,mBAAb,MAAa,iBAAgB;CApC7B,cAAA;EAqCW,KAAA,OAAO,MAAqB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CACxC;CAFY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAgB,MAAA,CAAA;GA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WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,WAAA,EAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EALhC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,YAAY;GACZ,MAAM,EAAE,WAAW,WAAU;EAC9B,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-form-row.mjs","names":[],"sources":["../../../projects/forgeroute-ui/form-row/src/lib/form-row/form-row.component.ts","../../../projects/forgeroute-ui/form-row/src/lib/form-row/form-col-span.directive.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'ui-form-row',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n template: `<div class=\"fr-row\" [class.fr-row--4]=\"cols() === 4\" [class.fr-row--auto-last]=\"autoLast()\" [class.fr-row--end]=\"align() === 'end'\" [style.--fr-cols]=\"cols()\" [style.--fr-before]=\"cols() - 1\"><ng-content /></div>`,\n styles: [`\n ui-form-row { display: block; }\n\n .fr-row {\n display: grid;\n grid-template-columns: repeat(var(--fr-cols, 2), 1fr);\n gap: 12px;\n }\n\n /* autoLast: the last child keeps its own width and every other column shares the rest (an input with its action button beside it). */\n .fr-row--auto-last { grid-template-columns: repeat(var(--fr-before, 1), 1fr) auto; }\n /* align=\"end\": children sit on the bottom of the row, so a button lines up with the input that has a label above it. */\n .fr-row--end { align-items: end; }\n\n /* Column spanning for a direct child: class ui-span-2 / ui-span-3 / ui-span-all (or the uiColSpan directive). Use ui-span-all for\n \"the whole row\"; a numeric span wider than the row columns would add implicit columns, so keep it within the cols input. */\n .fr-row > .ui-span-2 { grid-column: span 2; }\n .fr-row > .ui-span-3 { grid-column: span 3; }\n .fr-row > .ui-span-all { grid-column: 1 / -1; }\n\n /* 4 columns: two columns on tablets and small laptops (the 3-column row keeps its single breakpoint at 480px). */\n @media (max-width: 768px) {\n .fr-row--4 { grid-template-columns: repeat(2, 1fr); }\n .fr-row--4 > .ui-span-3 { grid-column: 1 / -1; }\n }\n\n @media (max-width: 480px) {\n .fr-row { grid-template-columns: 1fr; }\n /* One column on a phone: a span must not create extra implicit columns. */\n .fr-row > .ui-span-2,\n .fr-row > .ui-span-3,\n .fr-row > .ui-span-all { grid-column: 1 / -1; }\n }\n `],\n})\nexport class FormRowComponent {\n readonly cols = input<1 | 2 | 3 | 4>(2);\n /** true = the last child is as wide as its content and the other columns share the rest (e.g. `<ui-text-input>` + `<ui-button>`); stacks on a phone like every row. */\n readonly autoLast = input(false);\n /** 'end' aligns the children to the bottom of the row (default 'stretch'). */\n readonly align = input<'stretch' | 'end'>('stretch');\n}\n","import { Directive, computed, input } from '@angular/core';\n\n/**\n * Lets a direct child of `ui-form-row` span several columns: `<ui-text-input uiColSpan=\"2\" .../>` (2 or 3 columns) or\n * `uiColSpan=\"all\"` (every column). It only adds the class `ui-span-2` / `ui-span-3` / `ui-span-all`, which `ui-form-row` styles, so a\n * plain `class=\"ui-span-2\"` on the child works too without importing this directive. On a phone (<= 480px) the row is one column and the\n * child simply takes the full width. Keep a numeric span within the row's `cols` (use `all` for the whole row).\n */\n@Directive({\n selector: '[uiColSpan]',\n standalone: true,\n host: { '[class]': '_class()' },\n})\nexport class FormColSpanDirective {\n readonly uiColSpan = input<2 | 3 | 'all' | '2' | '3' | ''>('');\n protected readonly _class = computed(() => {\n const v = String(this.uiColSpan());\n return v === '2' || v === '3' || v === 'all' ? `ui-span-${v}` : '';\n });\n}\n"],"mappings":";;AA2CA,IAAa,mBAAb,MAAa,iBAAgB;CAzC7B,cAAA;EA0CW,KAAA,OAAO,MAAqB,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA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A,CAAA,+BAAA,CAAA,CAAA;EAC3C,KAAA,SAAS,eAAc;GACxC,MAAM,IAAI,OAAO,KAAK,UAAS,CAAE;GACjC,OAAO,MAAM,OAAO,MAAM,OAAO,MAAM,QAAQ,WAAW,MAAM;EAClE,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CACH;CANY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA,EAAA,WAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA,EAAA;GAAA,MAAA,EAAA,YAAA,EAAA,SAAA,WAAA,EAAA;GAAA,UAAA;EAAA,CAAA;CAAA;;AAApB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EALhC,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,YAAY;GACZ,MAAM,EAAE,WAAW,WAAU;EAC9B,CAAA"}
@@ -4,6 +4,7 @@ var FormSectionComponent = class FormSectionComponent {
4
4
  constructor() {
5
5
  this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
6
6
  this.divider = input(false, ...ngDevMode ? [{ debugName: "divider" }] : /* istanbul ignore next */ []);
7
+ this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
7
8
  }
8
9
  static {
9
10
  this.ɵfac = i0.ɵɵngDeclareFactory({
@@ -36,16 +37,29 @@ var FormSectionComponent = class FormSectionComponent {
36
37
  isSignal: true,
37
38
  isRequired: false,
38
39
  transformFunction: null
40
+ },
41
+ hint: {
42
+ classPropertyName: "hint",
43
+ publicName: "hint",
44
+ isSignal: true,
45
+ isRequired: false,
46
+ transformFunction: null
39
47
  }
40
48
  },
41
49
  ngImport: i0,
42
50
  template: `
43
51
  @if (divider()) { <div class="fs-divider"></div> }
44
- @if (label()) { <p class="fs-label">{{ label() }}</p> }
52
+ @if (label()) {
53
+ <div class="fs-head" [class.fs-head--hinted]="!!hint()">
54
+ <p class="fs-label">{{ label() }}</p>
55
+ <div class="fs-action"><ng-content select="[section-action]" /></div>
56
+ </div>
57
+ }
58
+ @if (hint()) { <p class="fs-hint" [class.fs-hint--bare]="!label()">{{ hint() }}</p> }
45
59
  <div class="fs-fields"><ng-content /></div>
46
60
  `,
47
61
  isInline: true,
48
- styles: [":host{display:block}.fs-divider{height:1px;background:#f1f5f9;margin:8px -24px 16px}.fs-label{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:0 0 12px}.fs-fields{display:flex;flex-direction:column;gap:14px}\n"],
62
+ styles: [":host{display:block}.fs-divider{height:1px;background:#f1f5f9;margin:8px -24px 16px}.fs-label{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:0}.fs-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.fs-action{display:flex;align-items:center;gap:8px;flex-shrink:0}.fs-action:empty{display:none}.fs-head--hinted{margin-bottom:0}.fs-hint{font-size:.75rem;line-height:1.4;color:#64748b;margin:0 0 12px}.fs-hint--bare{margin-top:0}.fs-fields{display:flex;flex-direction:column;gap:14px}\n"],
49
63
  changeDetection: i0.ChangeDetectionStrategy.OnPush
50
64
  });
51
65
  }
@@ -63,10 +77,16 @@ i0.ɵɵngDeclareClassMetadata({
63
77
  changeDetection: ChangeDetectionStrategy.OnPush,
64
78
  template: `
65
79
  @if (divider()) { <div class="fs-divider"></div> }
66
- @if (label()) { <p class="fs-label">{{ label() }}</p> }
80
+ @if (label()) {
81
+ <div class="fs-head" [class.fs-head--hinted]="!!hint()">
82
+ <p class="fs-label">{{ label() }}</p>
83
+ <div class="fs-action"><ng-content select="[section-action]" /></div>
84
+ </div>
85
+ }
86
+ @if (hint()) { <p class="fs-hint" [class.fs-hint--bare]="!label()">{{ hint() }}</p> }
67
87
  <div class="fs-fields"><ng-content /></div>
68
88
  `,
69
- styles: [":host{display:block}.fs-divider{height:1px;background:#f1f5f9;margin:8px -24px 16px}.fs-label{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:0 0 12px}.fs-fields{display:flex;flex-direction:column;gap:14px}\n"]
89
+ styles: [":host{display:block}.fs-divider{height:1px;background:#f1f5f9;margin:8px -24px 16px}.fs-label{font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin:0}.fs-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.fs-action{display:flex;align-items:center;gap:8px;flex-shrink:0}.fs-action:empty{display:none}.fs-head--hinted{margin-bottom:0}.fs-hint{font-size:.75rem;line-height:1.4;color:#64748b;margin:0 0 12px}.fs-hint--bare{margin-top:0}.fs-fields{display:flex;flex-direction:column;gap:14px}\n"]
70
90
  }]
71
91
  }],
72
92
  propDecorators: {
@@ -85,6 +105,14 @@ i0.ɵɵngDeclareClassMetadata({
85
105
  alias: "divider",
86
106
  required: false
87
107
  }]
108
+ }],
109
+ hint: [{
110
+ type: i0.Input,
111
+ args: [{
112
+ isSignal: true,
113
+ alias: "hint",
114
+ required: false
115
+ }]
88
116
  }]
89
117
  }
90
118
  });
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-form-section.mjs","names":[],"sources":["../../../projects/forgeroute-ui/form-section/src/lib/form-section/form-section.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n@Component({\n selector: 'ui-form-section',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (divider()) { <div class=\"fs-divider\"></div> }\n @if (label()) { <p class=\"fs-label\">{{ label() }}</p> }\n <div class=\"fs-fields\"><ng-content /></div>\n `,\n styles: [`\n :host { display: block; }\n\n .fs-divider {\n height: 1px;\n background: #f1f5f9;\n margin: 8px -24px 16px;\n }\n\n .fs-label {\n font-size: 0.6875rem;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: #64748b;\n margin: 0 0 12px;\n }\n\n .fs-fields {\n display: flex;\n flex-direction: column;\n gap: 14px;\n }\n `],\n})\nexport class FormSectionComponent {\n readonly label = input('');\n readonly divider = input(false);\n}\n"],"mappings":";;AAoCA,IAAa,uBAAb,MAAa,qBAAoB;CAlCjC,cAAA;EAmCW,KAAA,QAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACnB,KAAA,UAAU,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAChC;CAHY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,UAAA;GAAA,UA9BrB;;;;;GAIT,UAAA;GAAA,QAAA,CAAA,wQAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AA0BU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EAlChC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,YACf;GAAI,iBACC,wBAAwB;GAAM,UACrC;;;;;GAIT,QAAA,CAAA,wQAAA;EAAA,CAAA"}
1
+ {"version":3,"file":"forgeroute-ui-form-section.mjs","names":[],"sources":["../../../projects/forgeroute-ui/form-section/src/lib/form-section/form-section.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, input } from '@angular/core';\n\n@Component({\n selector: 'ui-form-section',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (divider()) { <div class=\"fs-divider\"></div> }\n @if (label()) {\n <div class=\"fs-head\" [class.fs-head--hinted]=\"!!hint()\">\n <p class=\"fs-label\">{{ label() }}</p>\n <div class=\"fs-action\"><ng-content select=\"[section-action]\" /></div>\n </div>\n }\n @if (hint()) { <p class=\"fs-hint\" [class.fs-hint--bare]=\"!label()\">{{ hint() }}</p> }\n <div class=\"fs-fields\"><ng-content /></div>\n `,\n styles: [`\n :host { display: block; }\n\n .fs-divider {\n height: 1px;\n background: #f1f5f9;\n margin: 8px -24px 16px;\n }\n\n .fs-label {\n font-size: 0.6875rem;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n color: #64748b;\n margin: 0;\n }\n\n /* The heading row: the label at the start and, optionally, a [section-action] (a button) at the end; the 12px below it belongs to the row. */\n .fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }\n .fs-action { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }\n .fs-action:empty { display: none; }\n /* A heading followed by a hint: the hint sits directly under the heading (no space between), then the same 12px as an unhinted label. */\n .fs-head--hinted { margin-bottom: 0; }\n .fs-hint {\n font-size: 0.75rem;\n line-height: 1.4;\n color: #64748b;\n margin: 0 0 12px;\n }\n .fs-hint--bare { margin-top: 0; }\n\n .fs-fields {\n display: flex;\n flex-direction: column;\n gap: 14px;\n }\n `],\n})\nexport class FormSectionComponent {\n readonly label = input('');\n readonly divider = input(false);\n /** Directions for the section (what to do here), shown in small grey text directly under the heading. */\n readonly hint = input('');\n}\n"],"mappings":";;AAwDA,IAAa,uBAAb,MAAa,qBAAoB;CAtDjC,cAAA;EAuDW,KAAA,QAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACnB,KAAA,UAAU,MAAM,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAEtB,KAAA,OAAU,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAC7B;CALY;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAoB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAApB;EAAA,KAAA,OAAA,GAAA,qBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,MAAA;GAAoB,cAAA;GAAA,UAAA;GAAA,QAAA;IAAA,OAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,SAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;IAAA,MAAA;KAAA,mBAAA;KAAA,YAAA;KAAA,UAAA;KAAA,YAAA;KAAA,mBAAA;IAAA;GAAA;GAAA,UAAA;GAAA,UAlDrB;;;;;;;;;;;GAUT,UAAA;GAAA,QAAA,CAAA,qkBAAA;GAAA,iBAAA,GAAA,wBAAA;EAAA,CAAA;CAAA;;AAwCU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAoB,YAAA,CAAA;EAtDhC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAiB,YACf;GAAI,iBACC,wBAAwB;GAAM,UACrC;;;;;;;;;;;GAUT,QAAA,CAAA,qkBAAA;EAAA,CAAA"}
@@ -13,6 +13,7 @@ var KpiCardComponent = class KpiCardComponent {
13
13
  this.subtitle = input("", ...ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []);
14
14
  this.icon = input("", ...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
15
15
  this.color = input("slate", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
16
+ this.size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
16
17
  this.highlight = input(false, ...ngDevMode ? [{ debugName: "highlight" }] : /* istanbul ignore next */ []);
17
18
  this.clickable = input(false, ...ngDevMode ? [{ debugName: "clickable" }] : /* istanbul ignore next */ []);
18
19
  this.valueColor = input("default", ...ngDevMode ? [{ debugName: "valueColor" }] : /* istanbul ignore next */ []);
@@ -94,6 +95,13 @@ var KpiCardComponent = class KpiCardComponent {
94
95
  isRequired: false,
95
96
  transformFunction: null
96
97
  },
98
+ size: {
99
+ classPropertyName: "size",
100
+ publicName: "size",
101
+ isSignal: true,
102
+ isRequired: false,
103
+ transformFunction: null
104
+ },
97
105
  highlight: {
98
106
  classPropertyName: "highlight",
99
107
  publicName: "highlight",
@@ -199,7 +207,7 @@ var KpiCardComponent = class KpiCardComponent {
199
207
  },
200
208
  ngImport: i0,
201
209
  template: `
202
- <div class="kpi-card" [class.highlight]="highlight()" [class.clickable]="clickable()" [class.ring-corner]="hasProgress() && !!iconSvg()" [style.background]="background() || null">
210
+ <div class="kpi-card" [class.kpi-sm]="size() === 'sm'" [class.highlight]="highlight()" [class.clickable]="clickable()" [class.ring-corner]="hasProgress() && !!iconSvg()" [style.background]="background() || null">
203
211
  @if (iconSvg()) {
204
212
  <div [class]="'kpi-icon ' + color() + '-icon'" aria-hidden="true" [innerHTML]="iconSvg()"></div>
205
213
  }
@@ -234,7 +242,7 @@ var KpiCardComponent = class KpiCardComponent {
234
242
  </div>
235
243
  `,
236
244
  isInline: true,
237
- styles: [":host{display:block;height:100%}.kpi-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px;min-width:0;height:100%;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}:host(:focus){outline:none}:host(:focus-visible) .kpi-card{outline:2px solid #3b82f6;outline-offset:2px}.kpi-card.clickable{cursor:pointer}.kpi-card.clickable:hover{border-color:#93c5fd;box-shadow:0 2px 8px #3b82f614}.kpi-card.clickable:hover .kpi-arrow{color:#3b82f6;transform:translateY(-50%) translate(2px)}.kpi-arrow{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:#94a3b8;transition:color .15s ease,transform .15s ease}.kpi-icon{flex-shrink:0;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.green-icon{background:#dcfce7;color:#16a34a}.blue-icon{background:#dbeafe;color:#2563eb}.amber-icon{background:#fef3c7;color:#d97706}.orange-icon{background:#ffedd5;color:#c2410c}.red-icon{background:#fee2e2;color:#dc2626}.slate-icon{background:#f1f5f9;color:#475569}.kpi-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:36px;margin-bottom:4px}.kpi-ring{flex-shrink:0}.kpi-card.ring-corner .kpi-top{display:contents}.kpi-card.ring-corner .kpi-ring{position:absolute;top:12px;right:12px}.kpi-value{font-size:1.5rem;font-weight:700;color:#111827;line-height:1.1}.kpi-value.green-value{color:#16a34a}.kpi-value.blue-value{color:#3b82f6}.kpi-value.red-value{color:#dc2626}.kpi-subtitle{font-size:.75rem;color:#64748b;margin-top:2px}.kpi-value--loading{display:flex;align-items:center;height:1.65rem}.kpi-bar{display:block;width:60%;max-width:8rem;height:1.1rem;border-radius:6px;background:#e2e8f0;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-subtitle--loading{align-self:flex-start;max-width:100%;border-radius:4px;background:#e2e8f0;color:transparent;-webkit-user-select:none;user-select:none;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-loading-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes kpi-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.kpi-bar,.kpi-subtitle--loading{animation:none}}\n"],
245
+ styles: [":host{display:block;height:100%}.kpi-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px;min-width:0;height:100%;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.kpi-card.kpi-sm{padding:10px 12px;gap:2px}.kpi-card.kpi-sm .kpi-icon{width:28px;height:28px;border-radius:6px;margin-bottom:4px}.kpi-card.kpi-sm .kpi-label{font-size:.6875rem}.kpi-card.kpi-sm .kpi-value{font-size:1.125rem}.kpi-card.kpi-sm .kpi-subtitle{font-size:.6875rem;margin-top:0}.kpi-card.kpi-sm .kpi-value--loading{height:1.25rem}.kpi-card.kpi-sm .kpi-top{min-height:28px;margin-bottom:2px}.kpi-card.kpi-sm.ring-corner .kpi-ring{top:8px;right:8px}:host(:focus){outline:none}:host(:focus-visible) .kpi-card{outline:2px solid #3b82f6;outline-offset:2px}.kpi-card.clickable{cursor:pointer}.kpi-card.clickable:hover{border-color:#93c5fd;box-shadow:0 2px 8px #3b82f614}.kpi-card.clickable:hover .kpi-arrow{color:#3b82f6;transform:translateY(-50%) translate(2px)}.kpi-arrow{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:#94a3b8;transition:color .15s ease,transform .15s ease}.kpi-icon{flex-shrink:0;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.green-icon{background:#dcfce7;color:#16a34a}.blue-icon{background:#dbeafe;color:#2563eb}.amber-icon{background:#fef3c7;color:#d97706}.orange-icon{background:#ffedd5;color:#c2410c}.red-icon{background:#fee2e2;color:#dc2626}.slate-icon{background:#f1f5f9;color:#475569}.kpi-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:36px;margin-bottom:4px}.kpi-ring{flex-shrink:0}.kpi-card.ring-corner .kpi-top{display:contents}.kpi-card.ring-corner .kpi-ring{position:absolute;top:12px;right:12px}.kpi-value{font-size:1.5rem;font-weight:700;color:#111827;line-height:1.1}.kpi-value.green-value{color:#16a34a}.kpi-value.blue-value{color:#3b82f6}.kpi-value.red-value{color:#dc2626}.kpi-subtitle{font-size:.75rem;color:#64748b;margin-top:2px}.kpi-value--loading{display:flex;align-items:center;height:1.65rem}.kpi-bar{display:block;width:60%;max-width:8rem;height:1.1rem;border-radius:6px;background:#e2e8f0;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-subtitle--loading{align-self:flex-start;max-width:100%;border-radius:4px;background:#e2e8f0;color:transparent;-webkit-user-select:none;user-select:none;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-loading-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes kpi-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.kpi-bar,.kpi-subtitle--loading{animation:none}}\n"],
238
246
  dependencies: [{
239
247
  kind: "component",
240
248
  type: ProgressRingComponent,
@@ -276,7 +284,7 @@ i0.ɵɵngDeclareClassMetadata({
276
284
  "(keydown.space)": "onActivateKey($event)"
277
285
  },
278
286
  template: `
279
- <div class="kpi-card" [class.highlight]="highlight()" [class.clickable]="clickable()" [class.ring-corner]="hasProgress() && !!iconSvg()" [style.background]="background() || null">
287
+ <div class="kpi-card" [class.kpi-sm]="size() === 'sm'" [class.highlight]="highlight()" [class.clickable]="clickable()" [class.ring-corner]="hasProgress() && !!iconSvg()" [style.background]="background() || null">
280
288
  @if (iconSvg()) {
281
289
  <div [class]="'kpi-icon ' + color() + '-icon'" aria-hidden="true" [innerHTML]="iconSvg()"></div>
282
290
  }
@@ -310,7 +318,7 @@ i0.ɵɵngDeclareClassMetadata({
310
318
  }
311
319
  </div>
312
320
  `,
313
- styles: [":host{display:block;height:100%}.kpi-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px;min-width:0;height:100%;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}:host(:focus){outline:none}:host(:focus-visible) .kpi-card{outline:2px solid #3b82f6;outline-offset:2px}.kpi-card.clickable{cursor:pointer}.kpi-card.clickable:hover{border-color:#93c5fd;box-shadow:0 2px 8px #3b82f614}.kpi-card.clickable:hover .kpi-arrow{color:#3b82f6;transform:translateY(-50%) translate(2px)}.kpi-arrow{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:#94a3b8;transition:color .15s ease,transform .15s ease}.kpi-icon{flex-shrink:0;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.green-icon{background:#dcfce7;color:#16a34a}.blue-icon{background:#dbeafe;color:#2563eb}.amber-icon{background:#fef3c7;color:#d97706}.orange-icon{background:#ffedd5;color:#c2410c}.red-icon{background:#fee2e2;color:#dc2626}.slate-icon{background:#f1f5f9;color:#475569}.kpi-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:36px;margin-bottom:4px}.kpi-ring{flex-shrink:0}.kpi-card.ring-corner .kpi-top{display:contents}.kpi-card.ring-corner .kpi-ring{position:absolute;top:12px;right:12px}.kpi-value{font-size:1.5rem;font-weight:700;color:#111827;line-height:1.1}.kpi-value.green-value{color:#16a34a}.kpi-value.blue-value{color:#3b82f6}.kpi-value.red-value{color:#dc2626}.kpi-subtitle{font-size:.75rem;color:#64748b;margin-top:2px}.kpi-value--loading{display:flex;align-items:center;height:1.65rem}.kpi-bar{display:block;width:60%;max-width:8rem;height:1.1rem;border-radius:6px;background:#e2e8f0;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-subtitle--loading{align-self:flex-start;max-width:100%;border-radius:4px;background:#e2e8f0;color:transparent;-webkit-user-select:none;user-select:none;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-loading-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes kpi-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.kpi-bar,.kpi-subtitle--loading{animation:none}}\n"]
321
+ styles: [":host{display:block;height:100%}.kpi-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:4px;min-width:0;height:100%;box-sizing:border-box;transition:border-color .15s ease,box-shadow .15s ease}.kpi-card.kpi-sm{padding:10px 12px;gap:2px}.kpi-card.kpi-sm .kpi-icon{width:28px;height:28px;border-radius:6px;margin-bottom:4px}.kpi-card.kpi-sm .kpi-label{font-size:.6875rem}.kpi-card.kpi-sm .kpi-value{font-size:1.125rem}.kpi-card.kpi-sm .kpi-subtitle{font-size:.6875rem;margin-top:0}.kpi-card.kpi-sm .kpi-value--loading{height:1.25rem}.kpi-card.kpi-sm .kpi-top{min-height:28px;margin-bottom:2px}.kpi-card.kpi-sm.ring-corner .kpi-ring{top:8px;right:8px}:host(:focus){outline:none}:host(:focus-visible) .kpi-card{outline:2px solid #3b82f6;outline-offset:2px}.kpi-card.clickable{cursor:pointer}.kpi-card.clickable:hover{border-color:#93c5fd;box-shadow:0 2px 8px #3b82f614}.kpi-card.clickable:hover .kpi-arrow{color:#3b82f6;transform:translateY(-50%) translate(2px)}.kpi-arrow{position:absolute;top:50%;right:16px;transform:translateY(-50%);color:#94a3b8;transition:color .15s ease,transform .15s ease}.kpi-icon{flex-shrink:0;width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}.green-icon{background:#dcfce7;color:#16a34a}.blue-icon{background:#dbeafe;color:#2563eb}.amber-icon{background:#fef3c7;color:#d97706}.orange-icon{background:#ffedd5;color:#c2410c}.red-icon{background:#fee2e2;color:#dc2626}.slate-icon{background:#f1f5f9;color:#475569}.kpi-label{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:36px;margin-bottom:4px}.kpi-ring{flex-shrink:0}.kpi-card.ring-corner .kpi-top{display:contents}.kpi-card.ring-corner .kpi-ring{position:absolute;top:12px;right:12px}.kpi-value{font-size:1.5rem;font-weight:700;color:#111827;line-height:1.1}.kpi-value.green-value{color:#16a34a}.kpi-value.blue-value{color:#3b82f6}.kpi-value.red-value{color:#dc2626}.kpi-subtitle{font-size:.75rem;color:#64748b;margin-top:2px}.kpi-value--loading{display:flex;align-items:center;height:1.65rem}.kpi-bar{display:block;width:60%;max-width:8rem;height:1.1rem;border-radius:6px;background:#e2e8f0;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-subtitle--loading{align-self:flex-start;max-width:100%;border-radius:4px;background:#e2e8f0;color:transparent;-webkit-user-select:none;user-select:none;animation:kpi-pulse 1.4s ease-in-out infinite}.kpi-loading-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes kpi-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){.kpi-bar,.kpi-subtitle--loading{animation:none}}\n"]
314
322
  }]
315
323
  }],
316
324
  propDecorators: {
@@ -354,6 +362,14 @@ i0.ɵɵngDeclareClassMetadata({
354
362
  required: false
355
363
  }]
356
364
  }],
365
+ size: [{
366
+ type: i0.Input,
367
+ args: [{
368
+ isSignal: true,
369
+ alias: "size",
370
+ required: false
371
+ }]
372
+ }],
357
373
  highlight: [{
358
374
  type: i0.Input,
359
375
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"forgeroute-ui-kpi-card.mjs","names":[],"sources":["../../../projects/forgeroute-ui/kpi-card/src/lib/kpi-card/kpi-card.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, computed, inject, input } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ProgressRingComponent, ProgressRingVariant } from '@forgeroute/ui/progress-ring';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport type KpiCardColor = 'green' | 'blue' | 'amber' | 'orange' | 'red' | 'slate';\n/** Colour of the big value: `default` (dark slate), `green`, `blue`, or `red` (for figures that need attention: overdue, outstanding, failed). */\nexport type KpiCardValueColor = 'default' | 'green' | 'blue' | 'red';\n\n/**\n * Compact KPI summary card: optional icon, uppercase label, large value, optional subtitle.\n * Set `clickable` to show a hover state + chevron (bind `(click)` on the host). A clickable card is a keyboard button:\n * role=\"button\", focusable (tabindex 0, visible focus ring), and Enter / Space fire the host's (click). Give it an\n * accessible name with [attr.aria-label] when the label alone isn't enough (e.g. \"Net Commission: $12.5K — show details\").\n *\n * Optional background: `background=\"#fef2f2\"` fills the card with any CSS colour (default white), e.g. a soft red for money going out; the\n * text keeps its own colours, so pick a light shade.\n *\n * Optional ring (top-right corner, level with the icon when the card has one — no extra height; beside the label otherwise): `[progress]=\"67\"` (+ `progressMax`, `progressVariant`, `progressSize`) draws a ui-progress-ring beside the label; extra lines\n * (a pace badge, a projection…) go in an element with the `kpi-footer` attribute.\n *\n * <ui-kpi-card label=\"Deals Closed\" [value]=\"'' + deals\" subtitle=\"Year to Date\" icon=\"check-circle\" color=\"blue\" />\n * <ui-kpi-card label=\"Net Commission\" [value]=\"net\" icon=\"dollar\" color=\"green\" [highlight]=\"true\"\n * [clickable]=\"true\" (click)=\"openDetails()\" />\n */\n@Component({\n selector: 'ui-kpi-card',\n standalone: true,\n imports: [ProgressRingComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.role]': 'clickable() ? \"button\" : null',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n '[attr.tabindex]': 'clickable() ? 0 : null',\n '(keydown.enter)': 'onActivateKey($event)',\n '(keydown.space)': 'onActivateKey($event)',\n },\n template: `\n <div class=\"kpi-card\" [class.highlight]=\"highlight()\" [class.clickable]=\"clickable()\" [class.ring-corner]=\"hasProgress() && !!iconSvg()\" [style.background]=\"background() || null\">\n @if (iconSvg()) {\n <div [class]=\"'kpi-icon ' + color() + '-icon'\" aria-hidden=\"true\" [innerHTML]=\"iconSvg()\"></div>\n }\n @if (hasProgress()) {\n <div class=\"kpi-top\">\n <span class=\"kpi-label\" data-testid=\"kpi-label\">{{ label() }}</span>\n <ui-progress-ring class=\"kpi-ring\" [attr.aria-hidden]=\"loading() ? 'true' : null\" [value]=\"progress()!\" [max]=\"progressMax()\" [size]=\"progressSize()\" [strokeWidth]=\"progressStrokeWidth()\"\n [variant]=\"progressVariant()\" [ariaLabel]=\"progressAriaLabel() || labels.t('kpiCard.progress', { label: label() })\" [valueText]=\"progressValueText()\" />\n </div>\n } @else {\n <span class=\"kpi-label\" data-testid=\"kpi-label\">{{ label() }}</span>\n }\n @if (loading()) {\n <span class=\"kpi-value kpi-value--loading\" aria-hidden=\"true\" data-testid=\"kpi-value-placeholder\"><span class=\"kpi-bar\"></span></span>\n <span class=\"kpi-loading-text\">{{ loadingLabel() }}</span>\n @if (subtitle()) {\n <span class=\"kpi-subtitle kpi-subtitle--loading\" aria-hidden=\"true\" data-testid=\"kpi-subtitle-placeholder\">{{ subtitle() }}</span>\n }\n } @else {\n <span class=\"kpi-value\" data-testid=\"kpi-value\"\n [class.green-value]=\"highlight() || valueColor() === 'green'\"\n [class.blue-value]=\"valueColor() === 'blue'\"\n [class.red-value]=\"valueColor() === 'red'\">{{ value() }}</span>\n @if (subtitle()) {\n <span class=\"kpi-subtitle\">{{ subtitle() }}</span>\n }\n }\n <ng-content select=\"[kpi-footer]\" />\n @if (clickable()) {\n <svg class=\"kpi-arrow\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"9 18 15 12 9 6\"/></svg>\n }\n </div>\n `,\n styles: [`\n :host { display: block; height: 100%; }\n .kpi-card {\n position: relative;\n background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;\n padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;\n height: 100%; box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n }\n :host(:focus) { outline: none; }\n :host(:focus-visible) .kpi-card { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .kpi-card.clickable { cursor: pointer; }\n .kpi-card.clickable:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.08); }\n .kpi-card.clickable:hover .kpi-arrow { color: #3b82f6; transform: translateY(-50%) translateX(2px); }\n .kpi-arrow {\n position: absolute; top: 50%; right: 16px; transform: translateY(-50%);\n color: #94a3b8; transition: color 150ms ease, transform 150ms ease;\n }\n .kpi-icon {\n flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 8px;\n }\n .green-icon { background: #dcfce7; color: #16a34a; }\n .blue-icon { background: #dbeafe; color: #2563eb; }\n .amber-icon { background: #fef3c7; color: #d97706; }\n .orange-icon { background: #ffedd5; color: #c2410c; }\n .red-icon { background: #fee2e2; color: #dc2626; }\n .slate-icon { background: #f1f5f9; color: #475569; }\n .kpi-label {\n font-size: 0.75rem; font-weight: 600; color: #64748b;\n text-transform: uppercase; letter-spacing: 0.04em;\n }\n .kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 4px; }\n .kpi-ring { flex-shrink: 0; }\n /* Icon + ring: the ring sits in the card's top-right corner, level with the icon, so the ring adds no height (the label row is just the label). */\n .kpi-card.ring-corner .kpi-top { display: contents; }\n .kpi-card.ring-corner .kpi-ring { position: absolute; top: 12px; right: 12px; }\n .kpi-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.1; }\n .kpi-value.green-value { color: #16a34a; }\n .kpi-value.blue-value { color: #3b82f6; }\n .kpi-value.red-value { color: #dc2626; }\n .kpi-subtitle { font-size: 0.75rem; color: #64748b; margin-top: 2px; } /* slate-500: AA contrast on white */\n /* loading: the value / subtitle are replaced by grey placeholders of the SAME box (value line = 1.5rem x 1.1 line-height; the subtitle\n placeholder is the subtitle's own text made transparent), so the card keeps its size while loading. */\n .kpi-value--loading { display: flex; align-items: center; height: 1.65rem; }\n .kpi-bar { display: block; width: 60%; max-width: 8rem; height: 1.1rem; border-radius: 6px; background: #e2e8f0; animation: kpi-pulse 1.4s ease-in-out infinite; }\n .kpi-subtitle--loading {\n align-self: flex-start; max-width: 100%; border-radius: 4px; background: #e2e8f0; color: transparent;\n -webkit-user-select: none; user-select: none; animation: kpi-pulse 1.4s ease-in-out infinite;\n }\n /* \"Loading\" for assistive tech, visually hidden (the placeholders above are aria-hidden). */\n .kpi-loading-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @keyframes kpi-pulse { 50% { opacity: 0.55; } }\n @media (prefers-reduced-motion: reduce) {\n .kpi-bar, .kpi-subtitle--loading { animation: none; }\n }\n `],\n})\nexport class KpiCardComponent {\n protected readonly labels = inject(UiLabelsService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly label = input('');\n readonly value = input('');\n readonly subtitle = input('');\n /** Built-in icon name (see KPI_ICONS keys), e.g. 'dollar', 'users', 'check-circle'. */\n readonly icon = input('');\n readonly color = input<KpiCardColor>('slate');\n readonly highlight = input(false);\n readonly clickable = input(false);\n readonly valueColor = input<KpiCardValueColor>('default');\n /**\n * (library source 2026-11-04, not yet published) While true the value (and the subtitle, when one is set) are replaced by grey\n * placeholders and the card is `aria-busy=\"true\"`; assistive tech reads the label followed by the `loadingLabel` text\n * (visually hidden), never the stale value or subtitle. The card keeps its size: the value placeholder has the value line's box and the\n * subtitle placeholder is the subtitle's own (transparent) text, so pass the subtitle you will show while loading to keep the height\n * identical. The progress ring (when there is one) stays visible but is hidden from assistive tech (`aria-hidden=\"true\"` on it) while loading, since its\n * value belongs to the data that is being replaced. Default false = unchanged. Everything else (icon, ring, `kpi-footer` slot, `clickable`, colours) is unaffected.\n */\n readonly loading = input(false);\n /** What assistive tech hears instead of the value while `loading` (default 'Loading'). */\n readonly loadingLabelInput = input<string | null>(null, { alias: 'loadingLabel' });\n readonly loadingLabel = computed(() => this.loadingLabelInput() ?? this.labels.t('kpiCard.loadingLabel'));\n /** Card background as any CSS colour (`#fef2f2`, `var(--surface)` …). Empty (default) = white. The text colours do not change, so use a light shade. */\n readonly background = input('');\n\n // ── Optional progress ring (top right, next to the label) — omit `progress` and the card is unchanged ──\n /** Completed amount shown as a `ui-progress-ring` beside the label. `null` (default) = no ring. */\n readonly progress = input<number | null>(null);\n /** Total for `progress` (default 100, so `progress` is a percentage). */\n readonly progressMax = input(100);\n /** Ring diameter in px. */\n readonly progressSize = input(58);\n readonly progressStrokeWidth = input(5);\n /** Fixed ring color; leave it out and the color follows completion (red / amber / blue / green). */\n readonly progressVariant = input<ProgressRingVariant | null | undefined>(null);\n /** Accessible name of the ring; default \"<label> progress\". */\n readonly progressAriaLabel = input('');\n /** Human reading of the ring for assistive tech, e.g. \"$200K of $300K\". */\n readonly progressValueText = input('');\n protected readonly hasProgress = computed(() => this.progress() !== null && this.progress() !== undefined);\n\n /** Enter / Space on a clickable card act like a click (Space would otherwise scroll the page). */\n protected onActivateKey(event: Event) {\n if (!this.clickable()) return;\n event.preventDefault();\n this.host.nativeElement.click();\n }\n\n protected readonly iconSvg = computed((): SafeHtml | null => {\n const svg = KPI_ICONS[this.icon()];\n return svg ? this.sanitizer.bypassSecurityTrustHtml(svg) : null;\n });\n}\n\n// Static, library-owned SVG markup only — never user input.\nconst KPI_ICONS: Record<string, string> = {\n 'shield-check': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/><path d=\"m9 12 2 2 4-4\"/></svg>',\n 'clock': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/></svg>',\n 'alert-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"/><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"/></svg>',\n 'alert-triangle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"/></svg>',\n 'check-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/><polyline points=\"22 4 12 14.01 9 11.01\"/></svg>',\n 'users': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/></svg>',\n 'user': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/></svg>',\n 'send': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"13\"/><polygon points=\"22 2 15 22 11 13 2 9 22 2\"/></svg>',\n 'inbox': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"22 12 16 12 14 15 10 15 8 12 2 12\"/><path d=\"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\"/></svg>',\n 'mail': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\"/><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\"/></svg>',\n 'message': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/></svg>',\n 'play': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"5 3 19 12 5 21 5 3\"/></svg>',\n 'eye': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>',\n 'percent': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"19\" y1=\"5\" x2=\"5\" y2=\"19\"/><circle cx=\"6.5\" cy=\"6.5\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"17.5\" r=\"2.5\"/></svg>',\n 'dollar': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"1\" x2=\"12\" y2=\"23\"/><path d=\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\"/></svg>',\n 'phone': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"/></svg>',\n 'file': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><polyline points=\"14 2 14 8 20 8\"/><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/></svg>',\n 'target': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><circle cx=\"12\" cy=\"12\" r=\"6\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/></svg>',\n 'trending-up': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"23 6 13.5 15.5 8.5 10.5 1 18\"/><polyline points=\"17 6 23 6 23 12\"/></svg>',\n 'x-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"/><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"/></svg>',\n 'video': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"5\" width=\"14\" height=\"14\" rx=\"2\"/><path d=\"m16 10 6-3.5v11L16 14\"/></svg>',\n 'calendar': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\"/><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"/><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"/><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"/></svg>',\n 'activity': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"22 12 18 12 15 21 9 3 6 12 2 12\"/></svg>',\n};\n"],"mappings":";;;;;AAmIA,IAAa,mBAAb,MAAa,iBAAgB;CA1G7B,cAAA;EA2GqB,KAAA,SAAS,OAAO,eAAe;EACjC,KAAA,YAAY,OAAO,YAAY;EAC/B,KAAA,OAAY,OAAgC,UAAU;EAE9D,KAAA,QAAa,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,QAAa,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,WAAa,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEtB,KAAA,OAAa,MAAM,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EACtB,KAAA,QAAa,MAAoB,SAAQ,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i-card/src/lib/kpi-card/kpi-card.component.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ElementRef, computed, inject, input } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { ProgressRingComponent, ProgressRingVariant } from '@forgeroute/ui/progress-ring';\nimport { UiLabelsService } from '@forgeroute/ui/core';\n\nexport type KpiCardColor = 'green' | 'blue' | 'amber' | 'orange' | 'red' | 'slate';\n/** Colour of the big value: `default` (dark slate), `green`, `blue`, or `red` (for figures that need attention: overdue, outstanding, failed). */\nexport type KpiCardValueColor = 'default' | 'green' | 'blue' | 'red';\n\n/**\n * Compact KPI summary card: optional icon, uppercase label, large value, optional subtitle.\n * Set `clickable` to show a hover state + chevron (bind `(click)` on the host). A clickable card is a keyboard button:\n * role=\"button\", focusable (tabindex 0, visible focus ring), and Enter / Space fire the host's (click). Give it an\n * accessible name with [attr.aria-label] when the label alone isn't enough (e.g. \"Net Commission: $12.5K — show details\").\n *\n * Optional background: `background=\"#fef2f2\"` fills the card with any CSS colour (default white), e.g. a soft red for money going out; the\n * text keeps its own colours, so pick a light shade.\n *\n * Optional ring (top-right corner, level with the icon when the card has one — no extra height; beside the label otherwise): `[progress]=\"67\"` (+ `progressMax`, `progressVariant`, `progressSize`) draws a ui-progress-ring beside the label; extra lines\n * (a pace badge, a projection…) go in an element with the `kpi-footer` attribute.\n *\n * <ui-kpi-card label=\"Deals Closed\" [value]=\"'' + deals\" subtitle=\"Year to Date\" icon=\"check-circle\" color=\"blue\" />\n * <ui-kpi-card label=\"Net Commission\" [value]=\"net\" icon=\"dollar\" color=\"green\" [highlight]=\"true\"\n * [clickable]=\"true\" (click)=\"openDetails()\" />\n */\n@Component({\n selector: 'ui-kpi-card',\n standalone: true,\n imports: [ProgressRingComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.role]': 'clickable() ? \"button\" : null',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n '[attr.tabindex]': 'clickable() ? 0 : null',\n '(keydown.enter)': 'onActivateKey($event)',\n '(keydown.space)': 'onActivateKey($event)',\n },\n template: `\n <div class=\"kpi-card\" [class.kpi-sm]=\"size() === 'sm'\" [class.highlight]=\"highlight()\" [class.clickable]=\"clickable()\" [class.ring-corner]=\"hasProgress() && !!iconSvg()\" [style.background]=\"background() || null\">\n @if (iconSvg()) {\n <div [class]=\"'kpi-icon ' + color() + '-icon'\" aria-hidden=\"true\" [innerHTML]=\"iconSvg()\"></div>\n }\n @if (hasProgress()) {\n <div class=\"kpi-top\">\n <span class=\"kpi-label\" data-testid=\"kpi-label\">{{ label() }}</span>\n <ui-progress-ring class=\"kpi-ring\" [attr.aria-hidden]=\"loading() ? 'true' : null\" [value]=\"progress()!\" [max]=\"progressMax()\" [size]=\"progressSize()\" [strokeWidth]=\"progressStrokeWidth()\"\n [variant]=\"progressVariant()\" [ariaLabel]=\"progressAriaLabel() || labels.t('kpiCard.progress', { label: label() })\" [valueText]=\"progressValueText()\" />\n </div>\n } @else {\n <span class=\"kpi-label\" data-testid=\"kpi-label\">{{ label() }}</span>\n }\n @if (loading()) {\n <span class=\"kpi-value kpi-value--loading\" aria-hidden=\"true\" data-testid=\"kpi-value-placeholder\"><span class=\"kpi-bar\"></span></span>\n <span class=\"kpi-loading-text\">{{ loadingLabel() }}</span>\n @if (subtitle()) {\n <span class=\"kpi-subtitle kpi-subtitle--loading\" aria-hidden=\"true\" data-testid=\"kpi-subtitle-placeholder\">{{ subtitle() }}</span>\n }\n } @else {\n <span class=\"kpi-value\" data-testid=\"kpi-value\"\n [class.green-value]=\"highlight() || valueColor() === 'green'\"\n [class.blue-value]=\"valueColor() === 'blue'\"\n [class.red-value]=\"valueColor() === 'red'\">{{ value() }}</span>\n @if (subtitle()) {\n <span class=\"kpi-subtitle\">{{ subtitle() }}</span>\n }\n }\n <ng-content select=\"[kpi-footer]\" />\n @if (clickable()) {\n <svg class=\"kpi-arrow\" width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><polyline points=\"9 18 15 12 9 6\"/></svg>\n }\n </div>\n `,\n styles: [`\n :host { display: block; height: 100%; }\n .kpi-card {\n position: relative;\n background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;\n padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;\n height: 100%; box-sizing: border-box;\n transition: border-color 150ms ease, box-shadow 150ms ease;\n }\n /* size=\"sm\": for narrow containers (side panels, dense summaries) - less padding, a 28px icon beside less air, a 1.125rem value. Nothing changes for the default size. */\n .kpi-card.kpi-sm { padding: 10px 12px; gap: 2px; }\n .kpi-card.kpi-sm .kpi-icon { width: 28px; height: 28px; border-radius: 6px; margin-bottom: 4px; }\n .kpi-card.kpi-sm .kpi-label { font-size: 0.6875rem; }\n .kpi-card.kpi-sm .kpi-value { font-size: 1.125rem; }\n .kpi-card.kpi-sm .kpi-subtitle { font-size: 0.6875rem; margin-top: 0; }\n .kpi-card.kpi-sm .kpi-value--loading { height: 1.25rem; }\n .kpi-card.kpi-sm .kpi-top { min-height: 28px; margin-bottom: 2px; }\n .kpi-card.kpi-sm.ring-corner .kpi-ring { top: 8px; right: 8px; }\n :host(:focus) { outline: none; }\n :host(:focus-visible) .kpi-card { outline: 2px solid #3b82f6; outline-offset: 2px; }\n .kpi-card.clickable { cursor: pointer; }\n .kpi-card.clickable:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(59,130,246,0.08); }\n .kpi-card.clickable:hover .kpi-arrow { color: #3b82f6; transform: translateY(-50%) translateX(2px); }\n .kpi-arrow {\n position: absolute; top: 50%; right: 16px; transform: translateY(-50%);\n color: #94a3b8; transition: color 150ms ease, transform 150ms ease;\n }\n .kpi-icon {\n flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 8px;\n }\n .green-icon { background: #dcfce7; color: #16a34a; }\n .blue-icon { background: #dbeafe; color: #2563eb; }\n .amber-icon { background: #fef3c7; color: #d97706; }\n .orange-icon { background: #ffedd5; color: #c2410c; }\n .red-icon { background: #fee2e2; color: #dc2626; }\n .slate-icon { background: #f1f5f9; color: #475569; }\n .kpi-label {\n font-size: 0.75rem; font-weight: 600; color: #64748b;\n text-transform: uppercase; letter-spacing: 0.04em;\n }\n .kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 4px; }\n .kpi-ring { flex-shrink: 0; }\n /* Icon + ring: the ring sits in the card's top-right corner, level with the icon, so the ring adds no height (the label row is just the label). */\n .kpi-card.ring-corner .kpi-top { display: contents; }\n .kpi-card.ring-corner .kpi-ring { position: absolute; top: 12px; right: 12px; }\n .kpi-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1.1; }\n .kpi-value.green-value { color: #16a34a; }\n .kpi-value.blue-value { color: #3b82f6; }\n .kpi-value.red-value { color: #dc2626; }\n .kpi-subtitle { font-size: 0.75rem; color: #64748b; margin-top: 2px; } /* slate-500: AA contrast on white */\n /* loading: the value / subtitle are replaced by grey placeholders of the SAME box (value line = 1.5rem x 1.1 line-height; the subtitle\n placeholder is the subtitle's own text made transparent), so the card keeps its size while loading. */\n .kpi-value--loading { display: flex; align-items: center; height: 1.65rem; }\n .kpi-bar { display: block; width: 60%; max-width: 8rem; height: 1.1rem; border-radius: 6px; background: #e2e8f0; animation: kpi-pulse 1.4s ease-in-out infinite; }\n .kpi-subtitle--loading {\n align-self: flex-start; max-width: 100%; border-radius: 4px; background: #e2e8f0; color: transparent;\n -webkit-user-select: none; user-select: none; animation: kpi-pulse 1.4s ease-in-out infinite;\n }\n /* \"Loading\" for assistive tech, visually hidden (the placeholders above are aria-hidden). */\n .kpi-loading-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }\n @keyframes kpi-pulse { 50% { opacity: 0.55; } }\n @media (prefers-reduced-motion: reduce) {\n .kpi-bar, .kpi-subtitle--loading { animation: none; }\n }\n `],\n})\nexport class KpiCardComponent {\n protected readonly labels = inject(UiLabelsService);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly label = input('');\n readonly value = input('');\n readonly subtitle = input('');\n /** Built-in icon name (see KPI_ICONS keys), e.g. 'dollar', 'users', 'check-circle'. */\n readonly icon = input('');\n readonly color = input<KpiCardColor>('slate');\n /** `'sm'` = the compact card for narrow containers (side panels): tighter padding, smaller icon, label and value. Default `'md'` is unchanged. */\n readonly size = input<'md' | 'sm'>('md');\n readonly highlight = input(false);\n readonly clickable = input(false);\n readonly valueColor = input<KpiCardValueColor>('default');\n /**\n * (library source 2026-11-04, not yet published) While true the value (and the subtitle, when one is set) are replaced by grey\n * placeholders and the card is `aria-busy=\"true\"`; assistive tech reads the label followed by the `loadingLabel` text\n * (visually hidden), never the stale value or subtitle. The card keeps its size: the value placeholder has the value line's box and the\n * subtitle placeholder is the subtitle's own (transparent) text, so pass the subtitle you will show while loading to keep the height\n * identical. The progress ring (when there is one) stays visible but is hidden from assistive tech (`aria-hidden=\"true\"` on it) while loading, since its\n * value belongs to the data that is being replaced. Default false = unchanged. Everything else (icon, ring, `kpi-footer` slot, `clickable`, colours) is unaffected.\n */\n readonly loading = input(false);\n /** What assistive tech hears instead of the value while `loading` (default 'Loading'). */\n readonly loadingLabelInput = input<string | null>(null, { alias: 'loadingLabel' });\n readonly loadingLabel = computed(() => this.loadingLabelInput() ?? this.labels.t('kpiCard.loadingLabel'));\n /** Card background as any CSS colour (`#fef2f2`, `var(--surface)` …). Empty (default) = white. The text colours do not change, so use a light shade. */\n readonly background = input('');\n\n // ── Optional progress ring (top right, next to the label) — omit `progress` and the card is unchanged ──\n /** Completed amount shown as a `ui-progress-ring` beside the label. `null` (default) = no ring. */\n readonly progress = input<number | null>(null);\n /** Total for `progress` (default 100, so `progress` is a percentage). */\n readonly progressMax = input(100);\n /** Ring diameter in px. */\n readonly progressSize = input(58);\n readonly progressStrokeWidth = input(5);\n /** Fixed ring color; leave it out and the color follows completion (red / amber / blue / green). */\n readonly progressVariant = input<ProgressRingVariant | null | undefined>(null);\n /** Accessible name of the ring; default \"<label> progress\". */\n readonly progressAriaLabel = input('');\n /** Human reading of the ring for assistive tech, e.g. \"$200K of $300K\". */\n readonly progressValueText = input('');\n protected readonly hasProgress = computed(() => this.progress() !== null && this.progress() !== undefined);\n\n /** Enter / Space on a clickable card act like a click (Space would otherwise scroll the page). */\n protected onActivateKey(event: Event) {\n if (!this.clickable()) return;\n event.preventDefault();\n this.host.nativeElement.click();\n }\n\n protected readonly iconSvg = computed((): SafeHtml | null => {\n const svg = KPI_ICONS[this.icon()];\n return svg ? this.sanitizer.bypassSecurityTrustHtml(svg) : null;\n });\n}\n\n// Static, library-owned SVG markup only — never user input.\nconst KPI_ICONS: Record<string, string> = {\n 'shield-check': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/><path d=\"m9 12 2 2 4-4\"/></svg>',\n 'clock': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><polyline points=\"12 6 12 12 16 14\"/></svg>',\n 'alert-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"12\" y1=\"8\" x2=\"12\" y2=\"12\"/><line x1=\"12\" y1=\"16\" x2=\"12.01\" y2=\"16\"/></svg>',\n 'alert-triangle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z\"/><line x1=\"12\" y1=\"9\" x2=\"12\" y2=\"13\"/><line x1=\"12\" y1=\"17\" x2=\"12.01\" y2=\"17\"/></svg>',\n 'check-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 11.08V12a10 10 0 1 1-5.93-9.14\"/><polyline points=\"22 4 12 14.01 9 11.01\"/></svg>',\n 'users': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\"/><circle cx=\"9\" cy=\"7\" r=\"4\"/><path d=\"M23 21v-2a4 4 0 0 0-3-3.87\"/><path d=\"M16 3.13a4 4 0 0 1 0 7.75\"/></svg>',\n 'user': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2\"/><circle cx=\"12\" cy=\"7\" r=\"4\"/></svg>',\n 'send': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"22\" y1=\"2\" x2=\"11\" y2=\"13\"/><polygon points=\"22 2 15 22 11 13 2 9 22 2\"/></svg>',\n 'inbox': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"22 12 16 12 14 15 10 15 8 12 2 12\"/><path d=\"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z\"/></svg>',\n 'mail': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"4\" width=\"20\" height=\"16\" rx=\"2\"/><path d=\"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7\"/></svg>',\n 'message': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z\"/></svg>',\n 'play': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polygon points=\"5 3 19 12 5 21 5 3\"/></svg>',\n 'eye': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>',\n 'percent': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"19\" y1=\"5\" x2=\"5\" y2=\"19\"/><circle cx=\"6.5\" cy=\"6.5\" r=\"2.5\"/><circle cx=\"17.5\" cy=\"17.5\" r=\"2.5\"/></svg>',\n 'dollar': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"1\" x2=\"12\" y2=\"23\"/><path d=\"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6\"/></svg>',\n 'phone': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"/></svg>',\n 'file': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"/><polyline points=\"14 2 14 8 20 8\"/><line x1=\"16\" y1=\"13\" x2=\"8\" y2=\"13\"/><line x1=\"16\" y1=\"17\" x2=\"8\" y2=\"17\"/></svg>',\n 'target': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><circle cx=\"12\" cy=\"12\" r=\"6\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/></svg>',\n 'trending-up': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"23 6 13.5 15.5 8.5 10.5 1 18\"/><polyline points=\"17 6 23 6 23 12\"/></svg>',\n 'x-circle': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\"/><line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\"/></svg>',\n 'video': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"2\" y=\"5\" width=\"14\" height=\"14\" rx=\"2\"/><path d=\"m16 10 6-3.5v11L16 14\"/></svg>',\n 'calendar': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"18\" rx=\"2\"/><line x1=\"16\" y1=\"2\" x2=\"16\" y2=\"6\"/><line x1=\"8\" y1=\"2\" x2=\"8\" y2=\"6\"/><line x1=\"3\" y1=\"10\" x2=\"21\" y2=\"10\"/></svg>',\n 'activity': '<svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"22 12 18 12 15 21 9 3 6 12 2 12\"/></svg>',\n};\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AAwB;GAAM,MACzC;IACJ,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;GACpB;GAAA,UACS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCT,QAAA,CAAA,0zFAAA;EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkIH,MAAM,YAAoC;CACxC,gBAAgB;CAChB,SAAS;CACT,gBAAgB;CAChB,kBAAkB;CAClB,gBAAgB;CAChB,SAAS;CACT,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,OAAO;CACP,WAAW;CACX,UAAU;CACV,SAAS;CACT,QAAQ;CACR,UAAU;CACV,eAAe;CACf,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,YAAY;AACb"}
@@ -331,7 +331,7 @@ var ListItemComponent = class ListItemComponent {
331
331
  </div>
332
332
  `,
333
333
  isInline: true,
334
- styles: ["ui-list-item{display:block}ui-list-item.li-bordered{border:1px solid var(--border, #e2e8f0);border-radius:12px;overflow:hidden;background:var(--surface, #fff);box-shadow:0 1px 2px #0f172a0a;margin-bottom:8px;transition:border-color .15s ease,box-shadow .15s ease}ui-list-item.li-bordered:last-child{margin-bottom:0}ui-list-item.li-bordered:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a12}@media(prefers-reduced-motion:reduce){ui-list-item.li-bordered{transition:none}}.li-row{display:flex;align-items:flex-start;gap:14px;padding:12px 16px;border-bottom:1px solid var(--border, #e2e8f0);transition:background .12s}.li-row:last-child{border-bottom:none}.li-row:hover{background:var(--surface-hover, #f8fafc)}ui-list-item.li-bordered .li-row{border-bottom:none;padding:14px 16px}.li-row.li-row--highlighted{background:#f0fdf4}.li-row.li-row--highlighted:hover{background:#dcfce7}.li-row.li-row--static:hover{background:transparent}.li-row.li-row--static.li-row--highlighted,.li-row.li-row--static.li-row--highlighted:hover{background:#f0fdf4}.li-row.li-row--pressable{cursor:pointer}.li-row.li-row--pressable:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:-2px}.li-body.li-body--static{cursor:default}.li-row [list-item-action],.li-row [li-action]{flex-shrink:0;align-self:center}.li-row>[list-item-end]{flex:0 0 auto;align-self:center}.li-row>[list-item-image]{flex:0 0 auto;align-self:center}.li-row.li-row--disabled,.li-row.li-row--disabled:hover{opacity:.72;cursor:not-allowed;background-color:var(--surface-muted, #f8fafc);background-image:repeating-linear-gradient(135deg,transparent 0,transparent 6px,rgba(100,116,139,.1) 6px,rgba(100,116,139,.1) 12px)}.li-row.li-row--disabled .li-body,.li-row.li-row--disabled .li-input,.li-row.li-row--disabled.li-row--pressable{cursor:not-allowed}ui-list-item.li-disabled.li-bordered,ui-list-item.li-disabled.li-bordered:hover{border-style:dashed;box-shadow:none}.li-row.li-row--busy,.li-row.li-row--busy .li-body{cursor:progress}.li-spinner{flex:0 0 auto;align-self:center;box-sizing:border-box;width:16px;height:16px;border:2px solid rgba(100,116,139,.3);border-top-color:var(--text-secondary, #475569);border-radius:50%;animation:li-spin .6s linear infinite}@keyframes li-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.li-spinner{animation-duration:2s}}.li-input{margin-top:3px;flex-shrink:0;accent-color:#16a34a;width:1rem;height:1rem;cursor:pointer}.li-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}.li-icon--slate{background:#f1f5f9;color:#475569}.li-icon--amber{background:#fef3c7;color:#b45309}.li-icon--orange{background:#ffedd5;color:#c2410c}.li-icon--red{background:#fee2e2;color:#b91c1c}.li-icon--blue{background:#dbeafe;color:#1d4ed8}.li-icon--green{background:#dcfce7;color:#15803d}.li-icon--purple{background:#f3e8ff;color:#7e22ce}.li-icon--teal{background:#ccfbf1;color:#0f766e}.li-body{flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;gap:6px}.li-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.li-title{font-size:.9375rem;font-weight:600;line-height:1.4;letter-spacing:-.005em;color:var(--text-primary, #0f172a)}.li-row--wrap .li-title{min-width:0;word-break:break-word;overflow-wrap:anywhere}.li-details{display:flex;flex-direction:column;gap:3px;font-size:.8125rem;line-height:1.4;color:var(--text-secondary, #64748b)}.li-detail{display:flex;align-items:center;gap:6px;min-width:0}.li-detail-icon{flex:0 0 auto;color:#94a3b8}.li-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#f1f5f9;border-radius:4px;padding:1px 4px}.li-detail--warning,.li-detail--warning .li-detail-icon{color:#b45309}.li-detail--danger,.li-detail--danger .li-detail-icon{color:#b91c1c}.li-row--wrap .li-detail-text{min-width:0;word-break:break-word;overflow-wrap:anywhere}\n"],
334
+ styles: ["ui-list-item{display:block}ui-list-item.li-bordered{border:1px solid var(--border, #e2e8f0);border-radius:12px;overflow:hidden;background:var(--surface, #fff);box-shadow:0 1px 2px #0f172a0a;margin-bottom:8px;transition:border-color .15s ease,box-shadow .15s ease}ui-list-item.li-bordered:last-child{margin-bottom:0}ui-list-item.li-bordered:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a12}@media(prefers-reduced-motion:reduce){ui-list-item.li-bordered{transition:none}}.li-row{display:flex;align-items:flex-start;gap:14px;padding:12px 16px;border-bottom:1px solid var(--border, #e2e8f0);transition:background .12s}.li-row:last-child{border-bottom:none}.li-row:hover{background:var(--surface-hover, #f8fafc)}ui-list-item.li-bordered .li-row{border-bottom:none;padding:14px 16px}.li-row.li-row--highlighted{background:#f0fdf4}.li-row.li-row--highlighted:hover{background:#dcfce7}.li-row.li-row--static:hover{background:transparent}.li-row.li-row--static.li-row--highlighted,.li-row.li-row--static.li-row--highlighted:hover{background:#f0fdf4}.li-row.li-row--pressable{cursor:pointer}.li-row.li-row--pressable:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:-2px}.li-body.li-body--static{cursor:default}.li-row [list-item-action],.li-row [li-action]{flex-shrink:0;align-self:flex-start}.li-row>[list-item-end]{flex:0 0 auto;align-self:flex-start}.li-row>[list-item-image]{flex:0 0 auto;align-self:center}.li-row.li-row--disabled,.li-row.li-row--disabled:hover{opacity:.72;cursor:not-allowed;background-color:var(--surface-muted, #f8fafc);background-image:repeating-linear-gradient(135deg,transparent 0,transparent 6px,rgba(100,116,139,.1) 6px,rgba(100,116,139,.1) 12px)}.li-row.li-row--disabled .li-body,.li-row.li-row--disabled .li-input,.li-row.li-row--disabled.li-row--pressable{cursor:not-allowed}ui-list-item.li-disabled.li-bordered,ui-list-item.li-disabled.li-bordered:hover{border-style:dashed;box-shadow:none}.li-row.li-row--busy,.li-row.li-row--busy .li-body{cursor:progress}.li-spinner{flex:0 0 auto;align-self:center;box-sizing:border-box;width:16px;height:16px;border:2px solid rgba(100,116,139,.3);border-top-color:var(--text-secondary, #475569);border-radius:50%;animation:li-spin .6s linear infinite}@keyframes li-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.li-spinner{animation-duration:2s}}.li-input{margin-top:3px;flex-shrink:0;accent-color:#16a34a;width:1rem;height:1rem;cursor:pointer}.li-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}.li-icon--slate{background:#f1f5f9;color:#475569}.li-icon--amber{background:#fef3c7;color:#b45309}.li-icon--orange{background:#ffedd5;color:#c2410c}.li-icon--red{background:#fee2e2;color:#b91c1c}.li-icon--blue{background:#dbeafe;color:#1d4ed8}.li-icon--green{background:#dcfce7;color:#15803d}.li-icon--purple{background:#f3e8ff;color:#7e22ce}.li-icon--teal{background:#ccfbf1;color:#0f766e}.li-body{flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;gap:6px}.li-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.li-title{font-size:.9375rem;font-weight:600;line-height:1.4;letter-spacing:-.005em;color:var(--text-primary, #0f172a)}.li-row--wrap .li-title{min-width:0;word-break:break-word;overflow-wrap:anywhere}.li-details{display:flex;flex-direction:column;gap:3px;font-size:.8125rem;line-height:1.4;color:var(--text-secondary, #64748b)}.li-detail{display:flex;align-items:center;gap:6px;min-width:0}.li-detail-icon{flex:0 0 auto;color:#94a3b8}.li-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#f1f5f9;border-radius:4px;padding:1px 4px}.li-detail--warning,.li-detail--warning .li-detail-icon{color:#b45309}.li-detail--danger,.li-detail--danger .li-detail-icon{color:#b91c1c}.li-row--wrap .li-detail-text{min-width:0;word-break:break-word;overflow-wrap:anywhere}\n"],
335
335
  dependencies: [{
336
336
  kind: "component",
337
337
  type: BadgeComponent,
@@ -461,7 +461,7 @@ i0.ɵɵngDeclareClassMetadata({
461
461
 
462
462
  </div>
463
463
  `,
464
- styles: ["ui-list-item{display:block}ui-list-item.li-bordered{border:1px solid var(--border, #e2e8f0);border-radius:12px;overflow:hidden;background:var(--surface, #fff);box-shadow:0 1px 2px #0f172a0a;margin-bottom:8px;transition:border-color .15s ease,box-shadow .15s ease}ui-list-item.li-bordered:last-child{margin-bottom:0}ui-list-item.li-bordered:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a12}@media(prefers-reduced-motion:reduce){ui-list-item.li-bordered{transition:none}}.li-row{display:flex;align-items:flex-start;gap:14px;padding:12px 16px;border-bottom:1px solid var(--border, #e2e8f0);transition:background .12s}.li-row:last-child{border-bottom:none}.li-row:hover{background:var(--surface-hover, #f8fafc)}ui-list-item.li-bordered .li-row{border-bottom:none;padding:14px 16px}.li-row.li-row--highlighted{background:#f0fdf4}.li-row.li-row--highlighted:hover{background:#dcfce7}.li-row.li-row--static:hover{background:transparent}.li-row.li-row--static.li-row--highlighted,.li-row.li-row--static.li-row--highlighted:hover{background:#f0fdf4}.li-row.li-row--pressable{cursor:pointer}.li-row.li-row--pressable:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:-2px}.li-body.li-body--static{cursor:default}.li-row [list-item-action],.li-row [li-action]{flex-shrink:0;align-self:center}.li-row>[list-item-end]{flex:0 0 auto;align-self:center}.li-row>[list-item-image]{flex:0 0 auto;align-self:center}.li-row.li-row--disabled,.li-row.li-row--disabled:hover{opacity:.72;cursor:not-allowed;background-color:var(--surface-muted, #f8fafc);background-image:repeating-linear-gradient(135deg,transparent 0,transparent 6px,rgba(100,116,139,.1) 6px,rgba(100,116,139,.1) 12px)}.li-row.li-row--disabled .li-body,.li-row.li-row--disabled .li-input,.li-row.li-row--disabled.li-row--pressable{cursor:not-allowed}ui-list-item.li-disabled.li-bordered,ui-list-item.li-disabled.li-bordered:hover{border-style:dashed;box-shadow:none}.li-row.li-row--busy,.li-row.li-row--busy .li-body{cursor:progress}.li-spinner{flex:0 0 auto;align-self:center;box-sizing:border-box;width:16px;height:16px;border:2px solid rgba(100,116,139,.3);border-top-color:var(--text-secondary, #475569);border-radius:50%;animation:li-spin .6s linear infinite}@keyframes li-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.li-spinner{animation-duration:2s}}.li-input{margin-top:3px;flex-shrink:0;accent-color:#16a34a;width:1rem;height:1rem;cursor:pointer}.li-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}.li-icon--slate{background:#f1f5f9;color:#475569}.li-icon--amber{background:#fef3c7;color:#b45309}.li-icon--orange{background:#ffedd5;color:#c2410c}.li-icon--red{background:#fee2e2;color:#b91c1c}.li-icon--blue{background:#dbeafe;color:#1d4ed8}.li-icon--green{background:#dcfce7;color:#15803d}.li-icon--purple{background:#f3e8ff;color:#7e22ce}.li-icon--teal{background:#ccfbf1;color:#0f766e}.li-body{flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;gap:6px}.li-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.li-title{font-size:.9375rem;font-weight:600;line-height:1.4;letter-spacing:-.005em;color:var(--text-primary, #0f172a)}.li-row--wrap .li-title{min-width:0;word-break:break-word;overflow-wrap:anywhere}.li-details{display:flex;flex-direction:column;gap:3px;font-size:.8125rem;line-height:1.4;color:var(--text-secondary, #64748b)}.li-detail{display:flex;align-items:center;gap:6px;min-width:0}.li-detail-icon{flex:0 0 auto;color:#94a3b8}.li-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#f1f5f9;border-radius:4px;padding:1px 4px}.li-detail--warning,.li-detail--warning .li-detail-icon{color:#b45309}.li-detail--danger,.li-detail--danger .li-detail-icon{color:#b91c1c}.li-row--wrap .li-detail-text{min-width:0;word-break:break-word;overflow-wrap:anywhere}\n"]
464
+ styles: ["ui-list-item{display:block}ui-list-item.li-bordered{border:1px solid var(--border, #e2e8f0);border-radius:12px;overflow:hidden;background:var(--surface, #fff);box-shadow:0 1px 2px #0f172a0a;margin-bottom:8px;transition:border-color .15s ease,box-shadow .15s ease}ui-list-item.li-bordered:last-child{margin-bottom:0}ui-list-item.li-bordered:hover{border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a12}@media(prefers-reduced-motion:reduce){ui-list-item.li-bordered{transition:none}}.li-row{display:flex;align-items:flex-start;gap:14px;padding:12px 16px;border-bottom:1px solid var(--border, #e2e8f0);transition:background .12s}.li-row:last-child{border-bottom:none}.li-row:hover{background:var(--surface-hover, #f8fafc)}ui-list-item.li-bordered .li-row{border-bottom:none;padding:14px 16px}.li-row.li-row--highlighted{background:#f0fdf4}.li-row.li-row--highlighted:hover{background:#dcfce7}.li-row.li-row--static:hover{background:transparent}.li-row.li-row--static.li-row--highlighted,.li-row.li-row--static.li-row--highlighted:hover{background:#f0fdf4}.li-row.li-row--pressable{cursor:pointer}.li-row.li-row--pressable:focus-visible{outline:2px solid var(--primary, #2563eb);outline-offset:-2px}.li-body.li-body--static{cursor:default}.li-row [list-item-action],.li-row [li-action]{flex-shrink:0;align-self:flex-start}.li-row>[list-item-end]{flex:0 0 auto;align-self:flex-start}.li-row>[list-item-image]{flex:0 0 auto;align-self:center}.li-row.li-row--disabled,.li-row.li-row--disabled:hover{opacity:.72;cursor:not-allowed;background-color:var(--surface-muted, #f8fafc);background-image:repeating-linear-gradient(135deg,transparent 0,transparent 6px,rgba(100,116,139,.1) 6px,rgba(100,116,139,.1) 12px)}.li-row.li-row--disabled .li-body,.li-row.li-row--disabled .li-input,.li-row.li-row--disabled.li-row--pressable{cursor:not-allowed}ui-list-item.li-disabled.li-bordered,ui-list-item.li-disabled.li-bordered:hover{border-style:dashed;box-shadow:none}.li-row.li-row--busy,.li-row.li-row--busy .li-body{cursor:progress}.li-spinner{flex:0 0 auto;align-self:center;box-sizing:border-box;width:16px;height:16px;border:2px solid rgba(100,116,139,.3);border-top-color:var(--text-secondary, #475569);border-radius:50%;animation:li-spin .6s linear infinite}@keyframes li-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.li-spinner{animation-duration:2s}}.li-input{margin-top:3px;flex-shrink:0;accent-color:#16a34a;width:1rem;height:1rem;cursor:pointer}.li-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px}.li-icon--slate{background:#f1f5f9;color:#475569}.li-icon--amber{background:#fef3c7;color:#b45309}.li-icon--orange{background:#ffedd5;color:#c2410c}.li-icon--red{background:#fee2e2;color:#b91c1c}.li-icon--blue{background:#dbeafe;color:#1d4ed8}.li-icon--green{background:#dcfce7;color:#15803d}.li-icon--purple{background:#f3e8ff;color:#7e22ce}.li-icon--teal{background:#ccfbf1;color:#0f766e}.li-body{flex:1;min-width:0;cursor:pointer;display:flex;flex-direction:column;gap:6px}.li-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.li-title{font-size:.9375rem;font-weight:600;line-height:1.4;letter-spacing:-.005em;color:var(--text-primary, #0f172a)}.li-row--wrap .li-title{min-width:0;word-break:break-word;overflow-wrap:anywhere}.li-details{display:flex;flex-direction:column;gap:3px;font-size:.8125rem;line-height:1.4;color:var(--text-secondary, #64748b)}.li-detail{display:flex;align-items:center;gap:6px;min-width:0}.li-detail-icon{flex:0 0 auto;color:#94a3b8}.li-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:#f1f5f9;border-radius:4px;padding:1px 4px}.li-detail--warning,.li-detail--warning .li-detail-icon{color:#b45309}.li-detail--danger,.li-detail--danger .li-detail-icon{color:#b91c1c}.li-row--wrap .li-detail-text{min-width:0;word-break:break-word;overflow-wrap:anywhere}\n"]
465
465
  }]
466
466
  }],
467
467
  propDecorators: {