@ids-group-ltd/ids-design-system 0.15.0 → 0.15.2

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 (189) hide show
  1. package/CHANGELOG.md +496 -0
  2. package/components.md +69 -38
  3. package/docs/agent/INDEX.md +3 -3
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +2 -1
  7. package/docs/agent/charts/ds-heatmap-chart.md +2 -1
  8. package/docs/agent/charts/ds-line-chart.md +3 -3
  9. package/docs/agent/charts/ds-pie-chart.md +3 -2
  10. package/docs/agent/charts/ds-scatter-chart.md +2 -1
  11. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  12. package/docs/agent/charts/line-series-component.md +1 -1
  13. package/docs/agent/feedback/ds-alert.md +1 -0
  14. package/docs/agent/feedback/ds-banner.md +1 -0
  15. package/docs/agent/feedback/ds-toast.md +2 -0
  16. package/docs/agent/forms/ds-autocomplete.md +1 -1
  17. package/docs/agent/forms/ds-button.md +1 -0
  18. package/docs/agent/forms/ds-checkbox.md +1 -1
  19. package/docs/agent/forms/ds-color-picker.md +1 -1
  20. package/docs/agent/forms/ds-date-picker.md +1 -1
  21. package/docs/agent/forms/ds-icon-button.md +1 -1
  22. package/docs/agent/forms/ds-input.md +1 -1
  23. package/docs/agent/forms/ds-multi-select.md +1 -1
  24. package/docs/agent/forms/ds-otp-input.md +1 -1
  25. package/docs/agent/forms/ds-radio-group.md +1 -1
  26. package/docs/agent/forms/ds-segmented.md +1 -1
  27. package/docs/agent/forms/ds-select.md +1 -1
  28. package/docs/agent/forms/ds-slider.md +1 -1
  29. package/docs/agent/forms/ds-switch.md +1 -1
  30. package/docs/agent/forms/ds-textarea.md +1 -1
  31. package/docs/agent/forms/ds-time-picker.md +1 -1
  32. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  33. package/docs/agent/foundations/global-helper-classes.md +1 -1
  34. package/docs/agent/foundations/tokens.md +1 -1
  35. package/docs/agent/navigation/ds-pagination.md +2 -1
  36. package/docs/agent/overlays/ds-definition-term.md +1 -1
  37. package/docs/agent/overlays/ds-info-hint.md +21 -2
  38. package/docs/agent/overlays/ds-tooltip-panel.md +1 -1
  39. package/docs/agent/overlays/ds-tooltip.md +1 -1
  40. package/docs/agent/tables/ds-table-columns.md +2 -0
  41. package/docs/agent/tables/ds-table.md +3 -2
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +6 -3
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +10 -4
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -3
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +8 -9
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +7 -17
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +694 -77
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +2190 -1234
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +10 -5
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +15 -5
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +44 -5
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +22 -6
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +44 -5
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +4 -18
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +49 -20
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +5 -4
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +76 -10
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +11 -7
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +33 -44
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +50 -5
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -4
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +10 -5
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +14 -6
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +102 -27
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +5 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +11 -6
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +123 -23
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +10 -5
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +10 -4
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs +55 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-show-dirty.mjs.map +1 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +10 -5
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +3 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +10 -5
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +32 -14
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +2 -2
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +17 -0
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +259 -21
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +15 -5
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +24 -7
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +17 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +32 -12
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +10 -6
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +238 -67
  129. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +9 -2
  131. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  133. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  134. package/migrations/0.15.0.json +43 -12
  135. package/migrations/0.15.1.json +745 -0
  136. package/migrations/0.15.2.json +164 -0
  137. package/migrations/0.3.0.json +16 -9
  138. package/package.json +9 -1
  139. package/schematics/check-overrides/surface.json +48 -1
  140. package/stylelint/deprecated-tokens.json +7 -0
  141. package/styles/_chart-frame.scss +14 -0
  142. package/styles/_chart-interactive.scss +26 -1
  143. package/styles/_chart-motion.scss +47 -8
  144. package/styles/_link.scss +30 -12
  145. package/styles/_tokens.scss +3 -0
  146. package/themes/README.md +55 -0
  147. package/themes/_semantic.scss +6 -7
  148. package/themes/dark/_theme.scss +7 -7
  149. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +1 -1
  150. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +2 -0
  151. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +1 -1
  152. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +5 -4
  153. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +4 -4
  154. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +51 -7
  155. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +201 -28
  156. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +2 -0
  157. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +2 -0
  158. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +27 -2
  159. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +3 -1
  160. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +19 -2
  161. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +0 -3
  162. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +21 -8
  163. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +3 -2
  164. package/types/ids-group-ltd-ids-design-system-components-info-hint.d.ts +13 -4
  165. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +2 -0
  166. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +13 -7
  167. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +6 -0
  168. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +2 -0
  169. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +2 -0
  170. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +5 -3
  171. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +24 -7
  172. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +2 -1
  173. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +2 -0
  174. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +39 -7
  175. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +2 -0
  176. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +2 -0
  177. package/types/ids-group-ltd-ids-design-system-components-show-dirty.d.ts +29 -0
  178. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +2 -0
  179. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +2 -0
  180. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +2 -0
  181. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +51 -11
  182. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +2 -0
  183. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -1
  184. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +2 -0
  185. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +8 -6
  186. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +4 -1
  187. package/types/ids-group-ltd-ids-design-system-components.d.ts +110 -34
  188. package/types/ids-group-ltd-ids-design-system-core.d.ts +44 -12
  189. package/types/ids-group-ltd-ids-design-system.d.ts +3 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ids-group-ltd-ids-design-system-components-funnel-chart.mjs","sources":["../../../src/lib/components/funnel-chart/funnel-chart.math.ts","../../../src/lib/components/funnel-chart/funnel-chart.component.ts","../../../src/lib/components/funnel-chart/funnel-chart.component.html","../../../src/lib/components/funnel-chart/ids-group-ltd-ids-design-system-components-funnel-chart.ts"],"sourcesContent":["import type { FunnelChartShape } from './funnel-chart.types';\n\n/** Bottom width of the fixed silhouette, as a fraction of the full width; the tail carries a label. */\nexport const FUNNEL_TAIL_WIDTH = 0.38;\n\n/** Ramp step for one stage, spread across the whole ramp rather than its first `rampedCount` entries. */\nexport function rampPosition(\n index: number,\n rampedCount: number,\n rampLength: number,\n): number {\n if (rampLength <= 0 || rampedCount <= 1) {\n return 0;\n }\n const position = Math.round((index / (rampedCount - 1)) * (rampLength - 1));\n\n return Math.min(Math.max(position, 0), rampLength - 1);\n}\n\nexport const FUNNEL_VIEW_BOX_WIDTH = 100;\n\nexport const FUNNEL_VIEW_BOX_HEIGHT = 100;\n\n/** One inter-stage gap as a share of a stage's depth. */\nconst FUNNEL_STAGE_GAP_SHARE = 0.14;\n\nexport interface FunnelStageGeometry {\n /** Fraction of the full width at the stage's top edge, 0..1. */\n readonly topWidth: number;\n readonly bottomWidth: number;\n /** Fraction of the total depth at the stage's top edge, 0..1. */\n readonly top: number;\n readonly bottom: number;\n}\n\n/** Every value as a finite, non-negative number: a negative mirrors a stage about its centre line, and\n * `NaN` in an SVG attribute drops the whole shape silently. */\nexport function sanitizeValues(values: readonly number[]): number[] {\n return values.map((value) =>\n Number.isFinite(value) ? Math.max(value, 0) : 0,\n );\n}\n\nfunction clampFraction(value: number): number {\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(Math.max(value, 0), 1);\n}\n\nfunction widthAtDepth(depth: number, tailWidth: number): number {\n return 1 - (1 - tailWidth) * clampFraction(depth);\n}\n\nfunction largestValue(values: readonly number[]): number {\n return values.reduce(\n (largest, value) => (value > largest ? value : largest),\n 0,\n );\n}\n\n/** The depth at which `areaShare` of the silhouette's area lies above: the quadratic root of\n * `t - (1 - tail) * t² / 2 = areaShare * (1 + tail) / 2`, always real. */\nexport function depthForAreaShare(\n areaShare: number,\n tailWidth: number,\n): number {\n const share = clampFraction(areaShare);\n const tail = clampFraction(tailWidth);\n const narrowing = 1 - tail;\n // A rectangle: area is linear in depth and the quadratic degenerates to 0/0.\n if (narrowing <= 0) {\n return share;\n }\n const discriminant = Math.max(1 - narrowing * share * (1 + tail), 0);\n\n return clampFraction((1 - Math.sqrt(discriminant)) / narrowing);\n}\n\nfunction evenDepths(count: number): number[] {\n return Array.from({ length: count + 1 }, (_, index) => index / count);\n}\n\nfunction boundaryDepths(\n values: readonly number[],\n shape: FunnelChartShape,\n tailWidth: number,\n): number[] {\n const count = values.length;\n if (shape !== 'area') {\n return evenDepths(count);\n }\n const total = values.reduce((sum, value) => sum + value, 0);\n if (!Number.isFinite(total) || total <= 0) {\n return evenDepths(count);\n }\n const depths: number[] = [];\n let consumed = 0;\n for (let index = 0; index <= count; index += 1) {\n depths.push(depthForAreaShare(consumed / total, tailWidth));\n if (index < count) {\n consumed += values[index];\n }\n }\n\n return depths;\n}\n\nfunction boundaryWidths(\n values: readonly number[],\n shape: FunnelChartShape,\n depths: readonly number[],\n tailWidth: number,\n): number[] {\n if (shape !== 'width') {\n return depths.map((depth) => widthAtDepth(depth, tailWidth));\n }\n const count = values.length;\n const largest = largestValue(values);\n if (!Number.isFinite(largest) || largest <= 0) {\n return depths.map(() => 0);\n }\n\n // The last boundary repeats the last value: no following stage to taper towards.\n return Array.from({ length: count + 1 }, (_, index) =>\n clampFraction(values[Math.min(index, count - 1)] / largest),\n );\n}\n\n/** One trapezoid per stage, in fractions of the full width and of the total depth. `'taper'` and\n * `'area'` share one silhouette and differ in boundary depths: even for `'taper'`, area-proportional\n * for `'area'`. `'width'` reads every boundary off the values. */\nexport function funnelGeometry(\n values: readonly number[],\n shape: FunnelChartShape,\n tailWidth: number = FUNNEL_TAIL_WIDTH,\n): FunnelStageGeometry[] {\n const safeValues = sanitizeValues(values);\n if (safeValues.length === 0) {\n return [];\n }\n const tail = Number.isFinite(tailWidth)\n ? clampFraction(tailWidth)\n : FUNNEL_TAIL_WIDTH;\n const depths = boundaryDepths(safeValues, shape, tail);\n const widths = boundaryWidths(safeValues, shape, depths, tail);\n\n return safeValues.map((_, index) => ({\n top: depths[index],\n bottom: depths[index + 1],\n topWidth: widths[index],\n bottomWidth: widths[index + 1],\n }));\n}\n\n/** The fall from `previousValue` to `value`, as a fraction of `previousValue`. Null for a zero or\n * non-finite predecessor; negative where the stage grew. */\nexport function stageDrop(previousValue: number, value: number): number | null {\n if (!Number.isFinite(previousValue) || !Number.isFinite(value)) {\n return null;\n }\n if (previousValue <= 0) {\n return null;\n }\n\n return (previousValue - value) / previousValue;\n}\n\n/** The drop into each stage. The first entry is null, not zero: `0%` would claim nobody fell away. */\nexport function stageDrops(values: readonly number[]): (number | null)[] {\n return values.map((value, index) =>\n index === 0 ? null : stageDrop(values[index - 1], value),\n );\n}\n\nexport function stageGapUnits(\n stageCount: number,\n viewBoxHeight: number,\n): number {\n if (\n !Number.isFinite(stageCount) ||\n !Number.isFinite(viewBoxHeight) ||\n stageCount <= 0\n ) {\n return 0;\n }\n\n return (FUNNEL_STAGE_GAP_SHARE * viewBoxHeight) / stageCount;\n}\n\nfunction roundCoordinate(value: number): number {\n return Math.round(value * 1000) / 1000;\n}\n\n/** The stage's four corners as an SVG `points` value, or an empty string when any input is\n * non-finite (`NaN` in the attribute drops the shape silently). */\nexport function stagePolygonPoints(\n geometry: FunnelStageGeometry,\n viewBoxWidth: number,\n viewBoxHeight: number,\n gapUnits: number,\n): string {\n const inputs = [\n geometry.topWidth,\n geometry.bottomWidth,\n geometry.top,\n geometry.bottom,\n viewBoxWidth,\n viewBoxHeight,\n gapUnits,\n ];\n if (inputs.some((input) => !Number.isFinite(input))) {\n return '';\n }\n const halfGap = Math.max(gapUnits, 0) / 2;\n const bandTop = clampFraction(geometry.top) * viewBoxHeight;\n const bandBottom = clampFraction(geometry.bottom) * viewBoxHeight;\n const bandDepth = bandBottom - bandTop;\n let top = bandTop + halfGap;\n let bottom = bandBottom - halfGap;\n if (bandDepth <= 0) {\n top = bandTop;\n bottom = bandTop;\n } else if (bottom - top < halfGap) {\n // A band shallower than its gap keeps half a gap of depth about its middle so it stays visible.\n const middle = Math.min(\n Math.max((bandTop + bandBottom) / 2, halfGap / 2),\n viewBoxHeight - halfGap / 2,\n );\n top = middle - halfGap / 2;\n bottom = middle + halfGap / 2;\n }\n const horizontalCentre = viewBoxWidth / 2;\n const topWidth = clampFraction(geometry.topWidth);\n const bottomWidth = clampFraction(geometry.bottomWidth);\n // Boundary widths at the inset depths would draw a fir tree; the silhouette is linear, so interpolate.\n const widthAt = (depth: number) =>\n bandDepth > 0\n ? topWidth +\n (bottomWidth - topWidth) * clampFraction((depth - bandTop) / bandDepth)\n : (topWidth + bottomWidth) / 2;\n const halfTopWidth = (widthAt(top) * viewBoxWidth) / 2;\n const halfBottomWidth = (widthAt(bottom) * viewBoxWidth) / 2;\n\n return [\n `${roundCoordinate(horizontalCentre - halfTopWidth)},${roundCoordinate(top)}`,\n `${roundCoordinate(horizontalCentre + halfTopWidth)},${roundCoordinate(top)}`,\n `${roundCoordinate(horizontalCentre + halfBottomWidth)},${roundCoordinate(bottom)}`,\n `${roundCoordinate(horizontalCentre - halfBottomWidth)},${roundCoordinate(bottom)}`,\n ].join(' ');\n}\n\n/** The middle of a band, for placing a marker inside it.\n *\n * @internal */\nexport function stageCenter(\n geometry: FunnelStageGeometry,\n viewBoxWidth: number,\n viewBoxHeight: number,\n): { x: number; y: number } {\n const top = clampFraction(geometry.top) * viewBoxHeight;\n const bottom = clampFraction(geometry.bottom) * viewBoxHeight;\n\n return { x: viewBoxWidth / 2, y: (top + bottom) / 2 };\n}\n","import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n numberAttribute,\n output,\n signal,\n} from '@angular/core';\nimport {\n CHART_RAMP_COLORS,\n chartColors,\n chartDwell,\n describeSeries,\n formatPercent,\n markAt,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n CHART_SKELETON_COUNT,\n DsChartBase,\n skeletonFunnelClips,\n skeletonMarkCount,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataTable } from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n ChartStatesComponent,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n FUNNEL_VIEW_BOX_HEIGHT,\n FUNNEL_VIEW_BOX_WIDTH,\n funnelGeometry,\n rampPosition,\n stageDrops,\n stageCenter,\n stageGapUnits,\n stagePolygonPoints,\n} from './funnel-chart.math';\nimport type {\n FunnelChartDrop,\n FunnelChartShape,\n FunnelChartStage,\n} from './funnel-chart.types';\n\nfunction formatDrop(\n fraction: number | null,\n count: number | null,\n mode: FunnelChartDrop,\n format: (value: number) => string,\n locale: string,\n): string {\n if (mode === 'none' || fraction === null) {\n return '—';\n }\n\n return mode === 'absolute' && count !== null\n ? `−${format(Math.abs(count))}`\n : formatPercent(fraction, 1, locale);\n}\n\n@Component({\n selector: 'ds-funnel-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartTooltipDirective,\n ChartStatesComponent,\n IconComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './funnel-chart.component.html',\n styleUrl: './funnel-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FunnelChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** Drawn in the order given; stages are never sorted, since their order is the meaning. */\n readonly data = input<readonly FunnelChartStage[]>([]);\n\n /** What the silhouette encodes. `'area'` (default) makes each stage's area proportional to its\n * value. `'width'` reads widths straight off the values, which collapses the tail of a steep\n * funnel. `'taper'` encodes nothing: the shape is fixed. */\n readonly shape = input<FunnelChartShape>('area');\n\n /** The value, percent and drop table printed under the funnel. While on, `dataTable` is not rendered. */\n readonly showTable = input(true, { transform: booleanAttribute });\n\n /** The label-and-value disclosure. Ignored while `showTable` is on. Unset falls back to\n * `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** What the Drop column reports: `'relative'` (default) the share that leaked at this stage,\n * `'absolute'` the count, `'none'` no column. */\n readonly drop = input<FunnelChartDrop>('relative');\n\n /** How many stages the loading skeleton draws before the data is known. */\n readonly skeletonCount = input(CHART_SKELETON_COUNT, {\n transform: (raw: unknown) => numberAttribute(raw, CHART_SKELETON_COUNT),\n });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The stage clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly stageClicked = output<FunnelChartStage>();\n\n /** Dims every OTHER mark while one is hovered or focused. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one stage's entrance and the next, top to bottom; `0` turns it off. The\n * step narrows to keep the spread within 260ms. */\n readonly staggerMs = input(60, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.stages().length, this.staggerMs())}ms`;\n }\n\n /** Whether a hovered or focused stage opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(\n () => this.tooltipLingerResolved(),\n () => this.defaults.hoverDelayMs(),\n );\n\n /** Badge position as a percentage of the shape's box, not viewBox units: the svg is\n * `preserveAspectRatio=\"none\"` and stretches horizontally. */\n protected readonly pinnedCenter = computed(() => {\n const entry = this.stages()[this.activeMark.index()];\n if (!this.activeMark.pinned() || !entry) {\n return null;\n }\n\n return {\n xPercent: (entry.center.x / FUNNEL_VIEW_BOX_WIDTH) * 100,\n yPercent: (entry.center.y / FUNNEL_VIEW_BOX_HEIGHT) * 100,\n };\n });\n\n protected onMarkClick(\n payload: FunnelChartStage,\n index: number,\n event: Event,\n ): void {\n this.stageClicked.emit(payload);\n if (this.defaults.pinOnClick()) {\n this.activeMark.pin(index, event);\n }\n }\n protected readonly roving = rovingMarks(() => this.stages().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event);\n }\n\n private readonly rowHighlight = signal(-1);\n private readonly rowDwell = chartDwell(() => this.defaults.hoverDelayMs());\n\n protected onRowEnter(index: number, event: Event): void {\n this.rowDwell.schedule(index, () => this.rowHighlight.set(index), event);\n this.activeMark.enter(\n index,\n event,\n markAt(\n (event.currentTarget as Element).closest('figure'),\n index,\n '.stage',\n ),\n );\n }\n\n protected onRowLeave(): void {\n this.rowDwell.cancel();\n this.rowHighlight.set(-1);\n this.activeMark.leave();\n }\n\n protected isDimmed(index: number): boolean {\n const rowHighlight = this.rowHighlight();\n if (rowHighlight !== -1) {\n return rowHighlight !== index;\n }\n\n return (\n this.dimOthers() &&\n this.activeMark.index() !== -1 &&\n this.activeMark.index() !== index\n );\n }\n\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('svg'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.stages()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.stage.label,\n value: entry.stage.value,\n formatted: `${entry.formattedValue} · ${entry.formattedPercent}`,\n color: entry.color,\n detail:\n entry.formattedDrop === '—'\n ? ''\n : this.intl().chart.fellAway(entry.formattedDrop),\n },\n ],\n };\n },\n );\n\n protected readonly viewBox = `0 0 ${FUNNEL_VIEW_BOX_WIDTH} ${FUNNEL_VIEW_BOX_HEIGHT}`;\n\n /** Gap between two bands, painted as a transparent stroke on each so the gap still answers the pointer. */\n protected readonly hitGapUnits = computed(() =>\n stageGapUnits(this.data().length, FUNNEL_VIEW_BOX_HEIGHT),\n );\n\n protected readonly tableRows = computed<readonly ChartDataRow[]>(() =>\n this.stages().map((entry) => ({\n key: entry.stage.id,\n cells: [entry.stage.label, entry.formattedValue],\n })),\n );\n\n protected readonly stages = computed(() => {\n const data = this.data();\n const values = data.map((stage) => stage.value);\n const geometry = funnelGeometry(values, this.shape());\n const drops = stageDrops(values);\n const gapUnits = stageGapUnits(data.length, FUNNEL_VIEW_BOX_HEIGHT);\n const format = (value: number) =>\n this.valueFormatResolved()(value, 'tooltip');\n // A share of the funnel's mouth, not of the column total: the stages are nested subsets.\n const firstValue = values.length ? values[0] : 0;\n const lastIndex = data.length - 1;\n\n return data.map((stage, index) => {\n const drop = drops[index];\n\n return {\n stage,\n // A polygon has no centre, and its bounding box centre drifts outside a steeply tapered band.\n center: stageCenter(\n geometry[index],\n FUNNEL_VIEW_BOX_WIDTH,\n FUNNEL_VIEW_BOX_HEIGHT,\n ),\n points: stagePolygonPoints(\n geometry[index],\n FUNNEL_VIEW_BOX_WIDTH,\n FUNNEL_VIEW_BOX_HEIGHT,\n gapUnits,\n ),\n formattedValue: format(stage.value),\n formattedPercent: formatPercent(\n stage.value,\n firstValue,\n this.defaults.locale,\n ),\n formattedDrop: formatDrop(\n drop,\n index > 0 ? values[index - 1] - stage.value : null,\n this.drop(),\n format,\n this.defaults.locale,\n ),\n color:\n index === lastIndex\n ? chartColors.seriesAccent\n : CHART_RAMP_COLORS[\n rampPosition(index, lastIndex, CHART_RAMP_COLORS.length)\n ],\n };\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n this.data().map((stage) => ({\n label: stage.label,\n value: stage.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.showTable() || this.dataTableResolved() !== 'none',\n ),\n );\n\n protected entryLabel(entry: {\n stage: FunnelChartStage;\n formattedValue: string;\n }): string {\n return `${entry.stage.label}, ${entry.formattedValue}`;\n }\n\n protected onStageKey(stage: FunnelChartStage, event: Event): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.stageClicked.emit(stage);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n protected readonly showDataTable = computed(\n () => this.dataTableResolved() !== 'none' && !this.showTable(),\n );\n\n protected readonly chartHeight = computed(\n () =>\n `calc(var(--_funnel-chart-stage-height) * ${Math.max(this.data().length, 1)})`,\n );\n\n /** The stage table's columns: stage, value, share, and the drop when it is shown. */\n protected readonly skeletonColumns = computed(() =>\n Array.from({ length: this.drop() === 'none' ? 3 : 4 }),\n );\n\n /** Equal stages narrowing by the same step, the funnel's shape before its numbers. */\n protected readonly skeletonStages = computed(() =>\n skeletonFunnelClips(\n skeletonMarkCount(this.data().length, this.skeletonCount()),\n ),\n );\n}\n","<figure\n class=\"funnel-chart\"\n dsChartStates\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"showDataTable()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <div class=\"skeleton-stages\">\n @for (clip of skeletonStages(); track $index) {\n <ds-skeleton\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [style.clip-path]=\"clip\"\n [shimmer]=\"loading()\" />\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <thead>\n <tr>\n @for (column of skeletonColumns(); track $index) {\n <th>\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (clip of skeletonStages(); track $index) {\n <tr>\n <th scope=\"row\">\n <ds-skeleton\n inline\n circle\n class=\"swatch\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns().slice(1); track $index) {\n <td>\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-12)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [class.is-dimmed]=\"isDimmed(index)\"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;AACO,MAAM,iBAAiB,GAAG,IAAI;AAErC;SACgB,YAAY,CAC1B,KAAa,EACb,WAAmB,EACnB,UAAkB,EAAA;IAElB,IAAI,UAAU,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,EAAE;AACvC,QAAA,OAAO,CAAC;IACV;IACA,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,WAAW,GAAG,CAAC,CAAC,KAAK,UAAU,GAAG,CAAC,CAAC,CAAC;AAE3E,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAA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3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEzJtB;;AAEG;;;;"}
1
+ {"version":3,"file":"ids-group-ltd-ids-design-system-components-funnel-chart.mjs","sources":["../../../src/lib/components/funnel-chart/funnel-chart.math.ts","../../../src/lib/components/funnel-chart/funnel-chart.component.ts","../../../src/lib/components/funnel-chart/funnel-chart.component.html","../../../src/lib/components/funnel-chart/ids-group-ltd-ids-design-system-components-funnel-chart.ts"],"sourcesContent":["import type { FunnelChartShape } from './funnel-chart.types';\n\n/** Bottom width of the fixed silhouette, as a fraction of the full width; the tail carries a label. */\nexport const FUNNEL_TAIL_WIDTH = 0.38;\n\n/** Ramp step for one stage, spread across the whole ramp rather than its first `rampedCount` entries. */\nexport function rampPosition(\n index: number,\n rampedCount: number,\n rampLength: number,\n): number {\n if (rampLength <= 0 || rampedCount <= 1) {\n return 0;\n }\n const position = Math.round((index / (rampedCount - 1)) * (rampLength - 1));\n\n return Math.min(Math.max(position, 0), rampLength - 1);\n}\n\nexport const FUNNEL_VIEW_BOX_WIDTH = 100;\n\nexport const FUNNEL_VIEW_BOX_HEIGHT = 100;\n\n/** One inter-stage gap as a share of a stage's depth. */\nconst FUNNEL_STAGE_GAP_SHARE = 0.14;\n\nexport interface FunnelStageGeometry {\n /** Fraction of the full width at the stage's top edge, 0..1. */\n readonly topWidth: number;\n readonly bottomWidth: number;\n /** Fraction of the total depth at the stage's top edge, 0..1. */\n readonly top: number;\n readonly bottom: number;\n}\n\n/** Every value as a finite, non-negative number: a negative mirrors a stage about its centre line, and\n * `NaN` in an SVG attribute drops the whole shape silently. */\nexport function sanitizeValues(values: readonly number[]): number[] {\n return values.map((value) =>\n Number.isFinite(value) ? Math.max(value, 0) : 0,\n );\n}\n\nfunction clampFraction(value: number): number {\n if (!Number.isFinite(value)) {\n return 0;\n }\n\n return Math.min(Math.max(value, 0), 1);\n}\n\nfunction widthAtDepth(depth: number, tailWidth: number): number {\n return 1 - (1 - tailWidth) * clampFraction(depth);\n}\n\nfunction largestValue(values: readonly number[]): number {\n return values.reduce(\n (largest, value) => (value > largest ? value : largest),\n 0,\n );\n}\n\n/** The depth at which `areaShare` of the silhouette's area lies above: the quadratic root of\n * `t - (1 - tail) * t² / 2 = areaShare * (1 + tail) / 2`, always real. */\nexport function depthForAreaShare(\n areaShare: number,\n tailWidth: number,\n): number {\n const share = clampFraction(areaShare);\n const tail = clampFraction(tailWidth);\n const narrowing = 1 - tail;\n // A rectangle: area is linear in depth and the quadratic degenerates to 0/0.\n if (narrowing <= 0) {\n return share;\n }\n const discriminant = Math.max(1 - narrowing * share * (1 + tail), 0);\n\n return clampFraction((1 - Math.sqrt(discriminant)) / narrowing);\n}\n\nfunction evenDepths(count: number): number[] {\n return Array.from({ length: count + 1 }, (_, index) => index / count);\n}\n\nfunction boundaryDepths(\n values: readonly number[],\n shape: FunnelChartShape,\n tailWidth: number,\n): number[] {\n const count = values.length;\n if (shape !== 'area') {\n return evenDepths(count);\n }\n const total = values.reduce((sum, value) => sum + value, 0);\n if (!Number.isFinite(total) || total <= 0) {\n return evenDepths(count);\n }\n const depths: number[] = [];\n let consumed = 0;\n for (let index = 0; index <= count; index += 1) {\n depths.push(depthForAreaShare(consumed / total, tailWidth));\n if (index < count) {\n consumed += values[index];\n }\n }\n\n return depths;\n}\n\nfunction boundaryWidths(\n values: readonly number[],\n shape: FunnelChartShape,\n depths: readonly number[],\n tailWidth: number,\n): number[] {\n if (shape !== 'width') {\n return depths.map((depth) => widthAtDepth(depth, tailWidth));\n }\n const count = values.length;\n const largest = largestValue(values);\n if (!Number.isFinite(largest) || largest <= 0) {\n return depths.map(() => 0);\n }\n\n // The last boundary repeats the last value: no following stage to taper towards.\n return Array.from({ length: count + 1 }, (_, index) =>\n clampFraction(values[Math.min(index, count - 1)] / largest),\n );\n}\n\n/** One trapezoid per stage, in fractions of the full width and of the total depth. `'taper'` and\n * `'area'` share one silhouette and differ in boundary depths: even for `'taper'`, area-proportional\n * for `'area'`. `'width'` reads every boundary off the values. */\nexport function funnelGeometry(\n values: readonly number[],\n shape: FunnelChartShape,\n tailWidth: number = FUNNEL_TAIL_WIDTH,\n): FunnelStageGeometry[] {\n const safeValues = sanitizeValues(values);\n if (safeValues.length === 0) {\n return [];\n }\n const tail = Number.isFinite(tailWidth)\n ? clampFraction(tailWidth)\n : FUNNEL_TAIL_WIDTH;\n const depths = boundaryDepths(safeValues, shape, tail);\n const widths = boundaryWidths(safeValues, shape, depths, tail);\n\n return safeValues.map((_, index) => ({\n top: depths[index],\n bottom: depths[index + 1],\n topWidth: widths[index],\n bottomWidth: widths[index + 1],\n }));\n}\n\n/** The fall from `previousValue` to `value`, as a fraction of `previousValue`. Null for a zero or\n * non-finite predecessor; negative where the stage grew. */\nexport function stageDrop(previousValue: number, value: number): number | null {\n if (!Number.isFinite(previousValue) || !Number.isFinite(value)) {\n return null;\n }\n if (previousValue <= 0) {\n return null;\n }\n\n return (previousValue - value) / previousValue;\n}\n\n/** The drop into each stage. The first entry is null, not zero: `0%` would claim nobody fell away. */\nexport function stageDrops(values: readonly number[]): (number | null)[] {\n return values.map((value, index) =>\n index === 0 ? null : stageDrop(values[index - 1], value),\n );\n}\n\nexport function stageGapUnits(\n stageCount: number,\n viewBoxHeight: number,\n): number {\n if (\n !Number.isFinite(stageCount) ||\n !Number.isFinite(viewBoxHeight) ||\n stageCount <= 0\n ) {\n return 0;\n }\n\n return (FUNNEL_STAGE_GAP_SHARE * viewBoxHeight) / stageCount;\n}\n\nfunction roundCoordinate(value: number): number {\n return Math.round(value * 1000) / 1000;\n}\n\n/** The stage's four corners as an SVG `points` value, or an empty string when any input is\n * non-finite (`NaN` in the attribute drops the shape silently). */\nexport function stagePolygonPoints(\n geometry: FunnelStageGeometry,\n viewBoxWidth: number,\n viewBoxHeight: number,\n gapUnits: number,\n): string {\n const inputs = [\n geometry.topWidth,\n geometry.bottomWidth,\n geometry.top,\n geometry.bottom,\n viewBoxWidth,\n viewBoxHeight,\n gapUnits,\n ];\n if (inputs.some((input) => !Number.isFinite(input))) {\n return '';\n }\n const halfGap = Math.max(gapUnits, 0) / 2;\n const bandTop = clampFraction(geometry.top) * viewBoxHeight;\n const bandBottom = clampFraction(geometry.bottom) * viewBoxHeight;\n const bandDepth = bandBottom - bandTop;\n let top = bandTop + halfGap;\n let bottom = bandBottom - halfGap;\n if (bandDepth <= 0) {\n top = bandTop;\n bottom = bandTop;\n } else if (bottom - top < halfGap) {\n // A band shallower than its gap keeps half a gap of depth about its middle so it stays visible.\n const middle = Math.min(\n Math.max((bandTop + bandBottom) / 2, halfGap / 2),\n viewBoxHeight - halfGap / 2,\n );\n top = middle - halfGap / 2;\n bottom = middle + halfGap / 2;\n }\n const horizontalCentre = viewBoxWidth / 2;\n const topWidth = clampFraction(geometry.topWidth);\n const bottomWidth = clampFraction(geometry.bottomWidth);\n // Boundary widths at the inset depths would draw a fir tree; the silhouette is linear, so interpolate.\n const widthAt = (depth: number) =>\n bandDepth > 0\n ? topWidth +\n (bottomWidth - topWidth) * clampFraction((depth - bandTop) / bandDepth)\n : (topWidth + bottomWidth) / 2;\n const halfTopWidth = (widthAt(top) * viewBoxWidth) / 2;\n const halfBottomWidth = (widthAt(bottom) * viewBoxWidth) / 2;\n\n return [\n `${roundCoordinate(horizontalCentre - halfTopWidth)},${roundCoordinate(top)}`,\n `${roundCoordinate(horizontalCentre + halfTopWidth)},${roundCoordinate(top)}`,\n `${roundCoordinate(horizontalCentre + halfBottomWidth)},${roundCoordinate(bottom)}`,\n `${roundCoordinate(horizontalCentre - halfBottomWidth)},${roundCoordinate(bottom)}`,\n ].join(' ');\n}\n\n/** The middle of a band, for placing a marker inside it.\n *\n * @internal */\nexport function stageCenter(\n geometry: FunnelStageGeometry,\n viewBoxWidth: number,\n viewBoxHeight: number,\n): { x: number; y: number } {\n const top = clampFraction(geometry.top) * viewBoxHeight;\n const bottom = clampFraction(geometry.bottom) * viewBoxHeight;\n\n return { x: viewBoxWidth / 2, y: (top + bottom) / 2 };\n}\n","import type {\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger,\n} from '@ids-group-ltd/ids-design-system/components';\nimport {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChild,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport {\n CHART_RAMP_COLORS,\n chartColors,\n describeSeries,\n formatPercent,\n markAt,\n rovingMarks,\n leaveMark,\n staggerDelay,\n chartRenderGate,\n CHART_SKELETON_COUNT,\n DsChartBase,\n skeletonFunnelClips,\n skeletonMarkCount,\n} from '@ids-group-ltd/ids-design-system/components';\nimport { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';\nimport { IconComponent } from '@ids-group-ltd/ids-design-system/icons';\nimport { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataRow } from '@ids-group-ltd/ids-design-system/components/chart-data-table';\nimport type { ChartDataTable } from '@ids-group-ltd/ids-design-system/core';\nimport {\n ChartTooltipDirective,\n ChartStatesComponent,\n chartActiveMark,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport type {\n ChartItemTooltipTrigger,\n ChartTooltipContext,\n} from '@ids-group-ltd/ids-design-system/components/chart-tooltip';\nimport {\n FUNNEL_VIEW_BOX_HEIGHT,\n FUNNEL_VIEW_BOX_WIDTH,\n funnelGeometry,\n rampPosition,\n stageDrops,\n stageCenter,\n stageGapUnits,\n stagePolygonPoints,\n} from './funnel-chart.math';\nimport type {\n FunnelChartDrop,\n FunnelChartShape,\n FunnelChartStage,\n} from './funnel-chart.types';\n\nfunction formatDrop(\n fraction: number | null,\n count: number | null,\n mode: FunnelChartDrop,\n format: (value: number) => string,\n locale: string,\n): string {\n if (mode === 'none' || fraction === null) {\n return '—';\n }\n\n return mode === 'absolute' && count !== null\n ? `−${format(Math.abs(count))}`\n : formatPercent(fraction, 1, locale);\n}\n\n@Component({\n selector: 'ds-funnel-chart',\n standalone: true,\n imports: [\n SkeletonComponent,\n ChartTooltipDirective,\n ChartStatesComponent,\n IconComponent,\n ChartDataTableComponent,\n ],\n templateUrl: './funnel-chart.component.html',\n styleUrl: './funnel-chart.component.scss',\n host: { '[class.framed]': \"frameResolved() === 'auto'\" },\n encapsulation: ViewEncapsulation.Emulated,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FunnelChartComponent\n extends DsChartBase\n implements\n ChartDimmable,\n ChartStaggered,\n ChartWithDataTable,\n ChartWithTooltipTrigger\n{\n protected readonly renderReady = chartRenderGate();\n\n protected readonly leaveMark = leaveMark;\n\n /** Drawn in the order given; stages are never sorted, since their order is the meaning. */\n readonly data = input<readonly FunnelChartStage[]>([]);\n\n /** What the silhouette encodes. `'area'` (default) makes each stage's area proportional to its\n * value. `'width'` reads widths straight off the values, which collapses the tail of a steep\n * funnel. `'taper'` encodes nothing: the shape is fixed. */\n readonly shape = input<FunnelChartShape>('area');\n\n /** The value, percent and drop table printed under the funnel. While on, `dataTable` is not rendered. */\n readonly showTable = input(true, { transform: booleanAttribute });\n\n /** The label-and-value disclosure. Ignored while `showTable` is on. Unset falls back to\n * `DS_CONFIG.chart.dataTable`, then `'none'`. */\n readonly dataTable = input<ChartDataTable | null>(null);\n /** What the Drop column reports: `'relative'` (default) the share that leaked at this stage,\n * `'absolute'` the count, `'none'` no column. */\n readonly drop = input<FunnelChartDrop>('relative');\n\n /** How many stages the loading skeleton draws before the data is known. */\n readonly skeletonCount = input(CHART_SKELETON_COUNT, {\n transform: (raw: unknown) => numberAttribute(raw, CHART_SKELETON_COUNT),\n });\n\n readonly dataTableResolved = this.defaults.dataTable;\n\n /** The stage clicked or activated with Enter or Space, whether or not `interactive` is set. */\n readonly stageClicked = output<FunnelChartStage>();\n\n /** Dims every OTHER mark while one is hovered or focused. */\n readonly dimOthers = input(false, { transform: booleanAttribute });\n\n /** Milliseconds between one stage's entrance and the next, top to bottom; `0` turns it off. The\n * step narrows to keep the spread within 260ms. */\n readonly staggerMs = input(60, { transform: numberAttribute });\n\n protected markStagger(index: number): string {\n return `${staggerDelay(index, this.stages().length, this.staggerMs())}ms`;\n }\n\n /** Whether a hovered or focused stage opens a tooltip. */\n readonly tooltip = input<ChartItemTooltipTrigger>('item');\n\n protected readonly tooltipTemplate =\n contentChild<TemplateRef<{ $implicit: ChartTooltipContext }>>(\n 'dsChartTooltip',\n );\n\n private readonly tooltipLingerResolved = this.defaults.tooltipLingerMs;\n\n protected readonly activeMark = chartActiveMark(\n () => this.tooltipLingerResolved(),\n () => this.defaults.hoverDelayMs(),\n );\n\n /** Badge position as a percentage of the shape's box, not viewBox units: the svg is\n * `preserveAspectRatio=\"none\"` and stretches horizontally. */\n protected readonly pinnedCenter = computed(() => {\n const entry = this.stages()[this.activeMark.index()];\n if (!this.activeMark.pinned() || !entry) {\n return null;\n }\n\n return {\n xPercent: (entry.center.x / FUNNEL_VIEW_BOX_WIDTH) * 100,\n yPercent: (entry.center.y / FUNNEL_VIEW_BOX_HEIGHT) * 100,\n };\n });\n\n protected onMarkClick(\n payload: FunnelChartStage,\n index: number,\n event: Event,\n ): void {\n this.stageClicked.emit(payload);\n if (this.defaults.pinOnClick()) {\n this.activeMark.pin(index, event);\n }\n }\n protected readonly roving = rovingMarks(() => this.stages().length);\n\n protected onMarkFocus(index: number, event: FocusEvent): void {\n this.roving.focus(index);\n this.activeMark.enter(index, event);\n }\n\n protected onRowEnter(index: number, event: Event): void {\n this.activeMark.enter(\n index,\n event,\n markAt(\n (event.currentTarget as Element).closest('figure'),\n index,\n '.stage',\n ),\n );\n }\n\n protected onRowLeave(): void {\n this.activeMark.leave();\n }\n\n protected onMarkNavigation(event: KeyboardEvent, index: number): void {\n this.roving.navigate(\n event,\n index,\n (event.currentTarget as Element).closest('svg'),\n );\n }\n\n protected readonly tooltipContext = computed<ChartTooltipContext | null>(\n () => {\n const entry = this.stages()[this.activeMark.index()];\n if (this.tooltip() === 'none' || !entry) {\n return null;\n }\n\n return {\n category: '',\n entries: [\n {\n label: entry.stage.label,\n value: entry.stage.value,\n formatted: `${entry.formattedValue} · ${entry.formattedPercent}`,\n color: entry.color,\n detail:\n entry.formattedDrop === '—'\n ? ''\n : this.intl().chart.fellAway(entry.formattedDrop),\n },\n ],\n };\n },\n );\n\n protected readonly viewBox = `0 0 ${FUNNEL_VIEW_BOX_WIDTH} ${FUNNEL_VIEW_BOX_HEIGHT}`;\n\n /** Gap between two bands, painted as a transparent stroke on each so the gap still answers the pointer. */\n protected readonly hitGapUnits = computed(() =>\n stageGapUnits(this.data().length, FUNNEL_VIEW_BOX_HEIGHT),\n );\n\n protected readonly tableRows = computed<readonly ChartDataRow[]>(() =>\n this.stages().map((entry) => ({\n key: entry.stage.id,\n cells: [entry.stage.label, entry.formattedValue],\n })),\n );\n\n protected readonly stages = computed(() => {\n const data = this.data();\n const values = data.map((stage) => stage.value);\n const geometry = funnelGeometry(values, this.shape());\n const drops = stageDrops(values);\n const gapUnits = stageGapUnits(data.length, FUNNEL_VIEW_BOX_HEIGHT);\n const format = (value: number) =>\n this.valueFormatResolved()(value, 'tooltip');\n // A share of the funnel's mouth, not of the column total: the stages are nested subsets.\n const firstValue = values.length ? values[0] : 0;\n const lastIndex = data.length - 1;\n\n return data.map((stage, index) => {\n const drop = drops[index];\n\n return {\n stage,\n // A polygon has no centre, and its bounding box centre drifts outside a steeply tapered band.\n center: stageCenter(\n geometry[index],\n FUNNEL_VIEW_BOX_WIDTH,\n FUNNEL_VIEW_BOX_HEIGHT,\n ),\n points: stagePolygonPoints(\n geometry[index],\n FUNNEL_VIEW_BOX_WIDTH,\n FUNNEL_VIEW_BOX_HEIGHT,\n gapUnits,\n ),\n formattedValue: format(stage.value),\n formattedPercent: formatPercent(\n stage.value,\n firstValue,\n this.defaults.locale,\n ),\n formattedDrop: formatDrop(\n drop,\n index > 0 ? values[index - 1] - stage.value : null,\n this.drop(),\n format,\n this.defaults.locale,\n ),\n color:\n index === lastIndex\n ? chartColors.seriesAccent\n : CHART_RAMP_COLORS[\n rampPosition(index, lastIndex, CHART_RAMP_COLORS.length)\n ],\n };\n });\n });\n\n protected readonly accessibleName = computed(\n () =>\n this.summary() ??\n describeSeries(\n this.intl().chart,\n this.caption() ?? this.intl().chart.title,\n this.data().map((stage) => ({\n label: stage.label,\n value: stage.value,\n })),\n (value) => this.valueFormatResolved()(value, 'tooltip'),\n this.showTable() || this.dataTableResolved() !== 'none',\n ),\n );\n\n protected entryLabel(entry: {\n stage: FunnelChartStage;\n formattedValue: string;\n }): string {\n return `${entry.stage.label}, ${entry.formattedValue}`;\n }\n\n protected onStageKey(stage: FunnelChartStage, event: Event): void {\n if (!this.interactive() || event.target !== event.currentTarget) {\n return;\n }\n event.preventDefault();\n this.stageClicked.emit(stage);\n }\n\n protected readonly isEmpty = computed(() => this.data().length === 0);\n\n protected readonly showDataTable = computed(\n () => this.dataTableResolved() !== 'none' && !this.showTable(),\n );\n\n protected readonly chartHeight = computed(\n () =>\n `calc(var(--_funnel-chart-stage-height) * ${Math.max(this.data().length, 1)})`,\n );\n\n /** The stage table's columns: stage, value, share, and the drop when it is shown. */\n protected readonly skeletonColumns = computed(() =>\n Array.from({ length: this.drop() === 'none' ? 3 : 4 }),\n );\n\n /** Equal stages narrowing by the same step, the funnel's shape before its numbers. */\n protected readonly skeletonStages = computed(() =>\n skeletonFunnelClips(\n skeletonMarkCount(this.data().length, this.skeletonCount()),\n ),\n );\n}\n","<figure\n class=\"funnel-chart\"\n dsChartStates\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"showDataTable() ? dataTableResolved() : 'none'\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <div class=\"skeleton-stages\">\n @for (clip of skeletonStages(); track $index) {\n <ds-skeleton\n data-morph=\"mark\"\n height=\"calc(var(--_funnel-chart-stage-height) - var(--_funnel-chart-stage-gap))\"\n [style.clip-path]=\"clip\"\n [shimmer]=\"loading()\" />\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <thead>\n <tr>\n @for (column of skeletonColumns(); track $index) {\n <th>\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (clip of skeletonStages(); track $index) {\n <tr>\n <th scope=\"row\">\n <ds-skeleton\n inline\n circle\n class=\"swatch\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-24)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns().slice(1); track $index) {\n <td>\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-12)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"shape\"\n [class.dims-others]=\"dimOthers()\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <svg\n preserveAspectRatio=\"none\"\n [attr.aria-hidden]=\"interactive() ? null : true\"\n [attr.viewBox]=\"viewBox\"\n [style.block-size]=\"chartHeight()\">\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <polygon\n class=\"stage\"\n data-morph=\"mark\"\n [attr.stroke-width]=\"hitGapUnits()\"\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"\n activeMark.pinned() && activeMark.index() === index\n \"\n [attr.points]=\"entry.points\"\n [attr.fill]=\"entry.color\"\n [attr.role]=\"interactive() ? 'button' : null\"\n [attr.tabindex]=\"\n interactive() ? (index === roving.tabStop() ? 0 : -1) : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"interactive() ? entryLabel(entry) : null\"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index)\"\n (click)=\"onMarkClick(entry.stage, index, $event)\"\n (keydown.enter)=\"onStageKey(entry.stage, $event)\"\n (keydown.space)=\"onStageKey(entry.stage, $event)\">\n </polygon>\n }\n </svg>\n\n @if (pinnedCenter(); as center) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"center.xPercent\"\n [style.top.%]=\"center.yPercent\">\n <ds-icon\n name=\"pin\"\n [size]=\"13\" />\n </span>\n }\n </div>\n\n @if (showTable()) {\n <table class=\"stage-table\">\n <caption class=\"visually-hidden\">\n {{\n intl().chart.funnelCaption\n }}\n </caption>\n\n <thead>\n <tr>\n <th scope=\"col\">\n {{ intl().chart.stageColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.valueColumn }}\n </th>\n\n <th scope=\"col\">\n {{ intl().chart.percentColumn }}\n </th>\n\n @if (drop() !== 'none') {\n <th scope=\"col\">\n {{ intl().chart.dropColumn }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of stages(); track entry.stage.id; let index = $index) {\n <tr\n [style.--_chart-mark-stagger]=\"markStagger(index)\"\n (pointerenter)=\"onRowEnter(index, $event)\"\n (pointerleave)=\"onRowLeave()\">\n <th scope=\"row\">\n <span\n class=\"swatch\"\n aria-hidden=\"true\"\n [style.background]=\"entry.color\">\n </span>\n\n {{ entry.stage.label }}\n </th>\n\n <td>\n {{ entry.formattedValue }}\n </td>\n\n <td>\n {{ entry.formattedPercent }}\n </td>\n\n @if (drop() !== 'none') {\n <td>\n {{ entry.formattedDrop }}\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (showDataTable()) {\n <ds-chart-data-table\n [columns]=\"[intl().chart.labelColumn, intl().chart.valueColumn]\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;AACO,MAAM,iBAAiB,GAAG,IAAI;AAErC;SACgB,YAAY,CAC1B,KAAa,EACb,WAAmB,EACnB,UAAkB,EAAA;IAElB,IAAI,UAAU,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,EAAE;AACvC,QAAA,OAAO,CAAC;IACV;IACA,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,WAAW,GAAG,CAAC,CAAC,KAAK,UAAU,GAAG,CAAC,CAAC,CAAC;AAE3E,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,GAAG,CAAC,CAAC;AACxD;AAEO,MAAM,qBAAqB,GAAG,GAAG;AAEjC,MAAM,sBAAsB,GAAG,GAAG;AAEzC;AACA,MAAM,sBAAsB,GAAG,IAAI;AAWnC;AACgE;AAC1D,SAAU,cAAc,CAAC,MAAyB,EAAA;AACtD,IAAA,OAAO,MAAM,CAAC,GAAG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iB;wBACjB,qBAAqB;wBACrB,oBAAoB;wBACpB,aAAa;wBACb,uBAAuB;AACxB,qBAAA,EAAA,IAAA,EAGK,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,EAAA,aAAA,EACzC,iBAAiB,CAAC,QAAQ,EAAA,eAAA,EACxB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,0hNAAA,EAAA,MAAA,EAAA,CAAA,y+PAAA,CAAA,EAAA;u+BA0D3C,gBAAgB,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvJtB;;AAEG;;;;"}
@@ -1,10 +1,10 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, numberAttribute, booleanAttribute, computed, output, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { DsChartBase, chartRenderGate, staggerDelay, chartDwell, CHART_HEAT_COLORS } from '@ids-group-ltd/ids-design-system/components';
2
+ import { input, numberAttribute, booleanAttribute, output, signal, inject, ElementRef, effect, computed, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { DsChartBase, chartRenderGate, leaveMark, staggerDelay, dwellHighlight, dimmedBy, chartDelay, CHART_HEAT_COLORS } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
5
5
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
6
6
  import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
7
- import { chartActiveMark, ChartTooltipDirective, ChartStatesComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
7
+ import { chartActiveMark, ChartPlacedDirective, ChartTooltipDirective, ChartStatesComponent } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
8
8
 
9
9
  /** The reading's step on a ramp of `stepCount` colours, or `null` where there is no reading.
10
10
  *
@@ -35,6 +35,7 @@ function heatmapDomain(rows) {
35
35
  /** A matrix of readings, coloured by magnitude. Every cell names its reading to assistive tech and the annex table is always present. */
36
36
  class HeatmapChartComponent extends DsChartBase {
37
37
  renderReady = chartRenderGate();
38
+ leaveMark = leaveMark;
38
39
  /** The column headings, left to right; a row longer than this loses its tail. */
39
40
  columns = input([], ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
40
41
  /** One entry per row, one reading per column; a `null` reading is drawn as the surface. */
@@ -46,31 +47,58 @@ class HeatmapChartComponent extends DsChartBase {
46
47
  max = input(null, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
47
48
  /** Prints each cell's reading inside it. */
48
49
  showValues = input(false, { ...(ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
50
+ /** Marks the hovered or focused cell's reading on the colour scale. */
51
+ showScaleMarker = input(true, { ...(ngDevMode ? { debugName: "showScaleMarker" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
49
52
  /** Fades every cell but the one under the pointer. */
50
53
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
51
54
  /** Whether a hovered or focused cell opens a tooltip. */
52
55
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
53
- /** Milliseconds between one column's entrance and the next; `0` turns it off. The spread is capped at 260ms. */
56
+ /** Milliseconds between one diagonal's entrance and the next, from the top-left cell; `0` turns
57
+ * it off. The spread is capped at 260ms. */
54
58
  staggerMs = input(40, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
55
- // The stylesheet multiplies this by the column index.
56
- columnStagger = computed(() => `${staggerDelay(1, this.columns().length, this.staggerMs())}ms`, ...(ngDevMode ? [{ debugName: "columnStagger" }] : /* istanbul ignore next */ []));
59
+ cellStagger(rowIndex, columnIndex) {
60
+ const diagonals = this.data().length + this.columns().length - 1;
61
+ return `${staggerDelay(rowIndex + columnIndex, diagonals, this.staggerMs())}ms`;
62
+ }
57
63
  /** The clicked cell, with its row and column. Never fires for an unmeasured cell. */
58
64
  cellClicked = output();
59
65
  activeMark = chartActiveMark(() => this.defaults.tooltipLingerMs(), () => this.defaults.hoverDelayMs());
60
- /** The ramp step under the pointer on the scale; every cell outside it fades. */
66
+ /** The ramp step under the pointer on the scale; its cells brighten, and under `dimOthers` the rest fade. */
61
67
  highlightedStep = signal(null, ...(ngDevMode ? [{ debugName: "highlightedStep" }] : /* istanbul ignore next */ []));
62
- stepDwell = chartDwell(() => this.defaults.hoverDelayMs());
63
- onStepEnter(step, event) {
64
- this.stepDwell.schedule(step, () => this.highlightedStep.set(step), event);
65
- }
66
- onStepLeave() {
67
- this.stepDwell.cancel();
68
- this.highlightedStep.set(null);
69
- }
68
+ stepHighlight = dwellHighlight(this.highlightedStep, () => this.defaults.hoverDelayMs());
70
69
  isCellDimmed(cell) {
71
- const step = this.highlightedStep();
72
- return step !== null && cell.step !== step;
70
+ return dimmedBy(this.dimOthers(), this.highlightedStep(), cell.step);
73
71
  }
72
+ host = inject(ElementRef);
73
+ scaleMarkerIndex = signal(-1, ...(ngDevMode ? [{ debugName: "scaleMarkerIndex" }] : /* istanbul ignore next */ []));
74
+ // The marker moves once the pointer rests on a cell, so a sweep across the grid leaves it still.
75
+ settleScaleMarker = effect((onCleanup) => {
76
+ const index = this.activeMark.index();
77
+ if (index === -1) {
78
+ this.scaleMarkerIndex.set(-1);
79
+ return;
80
+ }
81
+ const delay = chartDelay(this.host.nativeElement, 'scale-marker');
82
+ if (delay <= 0) {
83
+ this.scaleMarkerIndex.set(index);
84
+ return;
85
+ }
86
+ const timer = setTimeout(() => this.scaleMarkerIndex.set(index), delay);
87
+ onCleanup(() => clearTimeout(timer));
88
+ }, ...(ngDevMode ? [{ debugName: "settleScaleMarker" }] : /* istanbul ignore next */ []));
89
+ /** Where the settled cell's reading sits along the scale, as a percentage of the ramp. */
90
+ scaleMarker = computed(() => {
91
+ const cell = this.flatCells()[this.scaleMarkerIndex()];
92
+ if (!this.showScaleMarker() || !cell || cell.value === null) {
93
+ return null;
94
+ }
95
+ const { min, max } = this.domain();
96
+ const share = max > min ? (cell.value - min) / (max - min) : 0.5;
97
+ return {
98
+ offset: Math.min(Math.max(share, 0), 1) * 100,
99
+ label: this.valueFormatResolved()(cell.value, 'tick'),
100
+ };
101
+ }, ...(ngDevMode ? [{ debugName: "scaleMarker" }] : /* istanbul ignore next */ []));
74
102
  onCellPress(cell, index, event) {
75
103
  // Enter and Space click the native button with `detail` 0; keys must not pin.
76
104
  const fromKeyboard = event instanceof MouseEvent && event.detail === 0;
@@ -185,11 +213,12 @@ class HeatmapChartComponent extends DsChartBase {
185
213
  });
186
214
  }
187
215
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HeatmapChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
188
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HeatmapChartComponent, isStandalone: true, selector: "ds-heatmap-chart", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cellClicked: "cellClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, exportAs: ["dsHeatmapChart"], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"heatmap-chart\"\n dsChartStates\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"true\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <table class=\"grid\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of skeletonColumns(); track $index) {\n <th class=\"column-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-5)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of skeletonRows(); track $index) {\n <tr>\n <th class=\"row-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns(); track $index) {\n <td class=\"cell-slot\">\n <ds-skeleton\n class=\"cell\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"scale\">\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-4)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-32)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </div>\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"grid-scroll\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <table\n class=\"grid\"\n [class.dims-others]=\"dimOthers()\"\n [style.--_heatmap-chart-column-stagger]=\"columnStagger()\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of columns(); track column) {\n <th\n class=\"column-label\"\n scope=\"col\">\n {{ column }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of rows(); track entry.key; let rowIndex = $index) {\n <tr>\n <th\n class=\"row-label\"\n scope=\"row\">\n {{ entry.row.label }}\n </th>\n\n @for (cell of entry.cells; track cell.key) {\n @let index = cellIndex(rowIndex, cell.columnIndex);\n @let pins = defaults.pinOnClick() && cell.value !== null;\n @let pinned = activeMark.pinned() && activeMark.index() === index;\n\n <td\n class=\"cell-slot\"\n [attr.data-mark-index]=\"index\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (click)=\"onCellPress(cell, index, $event)\">\n @if (interactive() && cell.value !== null) {\n <button\n class=\"cell interactive\"\n type=\"button\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\"\n (click)=\"onCellClick(entry, cell, rowIndex)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (focus)=\"activeMark.enter(index, $event)\"\n (blur)=\"activeMark.leave()\">\n @if (showValues()) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </button>\n } @else {\n <span\n class=\"cell\"\n role=\"img\"\n [class.is-missing]=\"cell.value === null\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\">\n @if (showValues() && cell.value !== null) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </span>\n }\n\n @if (pinned) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <div class=\"scale\">\n <span class=\"scale-label\">\n {{ scaleMinLabel() }}\n </span>\n\n <span\n class=\"scale-ramp\"\n aria-hidden=\"true\">\n @for (step of scaleSteps(); track step; let stepIndex = $index) {\n <span\n class=\"scale-step\"\n [style.background]=\"step\"\n (pointerenter)=\"onStepEnter(stepIndex, $event)\"\n (pointerleave)=\"onStepLeave()\">\n </span>\n }\n </span>\n\n <span class=\"scale-label\">\n {{ scaleMaxLabel() }}\n </span>\n </div>\n\n <!-- Always present: colour is the only channel carrying magnitude on the grid. -->\n <ds-chart-data-table\n rowHeader\n [columns]=\"tableColumns()\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\" />\n</ng-template>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_heatmap-chart-focus-color: var(--ds-heatmap-chart-focus-color, var(--focus-ring-color));--_heatmap-chart-focus-width: var(--ds-heatmap-chart-focus-width, var(--focus-ring-width))}:host{inline-size:fit-content;max-inline-size:100%}.heatmap-chart{--_chart-message-height: calc(4 * var(--_heatmap-chart-cell-size));--_heatmap-chart-cell-size: var(--ds-heatmap-chart-cell-size, 34px);--_heatmap-chart-cell-gap: var(--ds-heatmap-chart-cell-gap, 2px);--_heatmap-chart-cell-radius: var(--ds-heatmap-chart-cell-radius, var(--ds-radius-control));--_heatmap-chart-label-color: var(--ds-heatmap-chart-label-color, var(--ds-chart-axis-label-color));--_heatmap-chart-label-font-size: var(--ds-heatmap-chart-label-font-size, var(--ds-chart-axis-font-size));--_heatmap-chart-missing-color: var(--ds-heatmap-chart-missing-color, var(--surface-secondary));--ds-chart-focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-width: var(--_heatmap-chart-focus-width);margin:0}.skeleton .skeleton-text{border-radius:var(--radius-pill)}.grid-scroll{overflow-x:auto}.grid .cell{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.grid .cell.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.grid.dims-others:not(:has(.cell.is-pinned)):has(.cell.is-active) .cell:not(.is-active),.grid.dims-others:has(.cell.is-pinned) .cell:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.grid{border-collapse:separate;border-spacing:var(--_heatmap-chart-cell-gap)}.column-label,.row-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-regular);white-space:nowrap}.column-label{text-align:center}.row-label{text-align:end;padding-inline-end:var(--space-2)}.cell-slot{position:relative;padding:0}.cell-slot>.pin-marker{position:absolute;inset:0;margin:auto}.cell{position:relative;display:grid;place-items:center;inline-size:var(--_heatmap-chart-cell-size);block-size:var(--_heatmap-chart-cell-size);border:0;border-radius:var(--_heatmap-chart-cell-radius);padding:0}.cell:before{position:absolute;inset:calc(var(--_heatmap-chart-cell-gap) / -2);content:\"\"}.cell{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell{animation-delay:0ms}}.cell.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-value{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell-value{animation-delay:0ms}}.cell-slot:nth-child(3){--_chart-mark-stagger: calc(1 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(4){--_chart-mark-stagger: calc(2 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(5){--_chart-mark-stagger: calc(3 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(6){--_chart-mark-stagger: calc(4 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(7){--_chart-mark-stagger: calc(5 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(8){--_chart-mark-stagger: calc(6 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(9){--_chart-mark-stagger: calc(7 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(10){--_chart-mark-stagger: calc(8 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(11){--_chart-mark-stagger: calc(9 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(12){--_chart-mark-stagger: calc(10 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(13){--_chart-mark-stagger: calc(11 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(14){--_chart-mark-stagger: calc(12 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(15){--_chart-mark-stagger: calc(13 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(16){--_chart-mark-stagger: calc(14 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(17){--_chart-mark-stagger: calc(15 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(18){--_chart-mark-stagger: calc(16 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(19){--_chart-mark-stagger: calc(17 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(20){--_chart-mark-stagger: calc(18 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(21){--_chart-mark-stagger: calc(19 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(22){--_chart-mark-stagger: calc(20 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(23){--_chart-mark-stagger: calc(21 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(24){--_chart-mark-stagger: calc(22 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(25){--_chart-mark-stagger: calc(23 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(26){--_chart-mark-stagger: calc(24 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(27){--_chart-mark-stagger: calc(25 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(28){--_chart-mark-stagger: calc(26 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(29){--_chart-mark-stagger: calc(27 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(30){--_chart-mark-stagger: calc(28 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(31){--_chart-mark-stagger: calc(29 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(32){--_chart-mark-stagger: calc(30 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(33){--_chart-mark-stagger: calc(31 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(34){--_chart-mark-stagger: calc(32 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(35){--_chart-mark-stagger: calc(33 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(36){--_chart-mark-stagger: calc(34 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(37){--_chart-mark-stagger: calc(35 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(38){--_chart-mark-stagger: calc(36 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(39){--_chart-mark-stagger: calc(37 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(40){--_chart-mark-stagger: calc(38 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(41){--_chart-mark-stagger: calc(39 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(42){--_chart-mark-stagger: calc(40 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(43){--_chart-mark-stagger: calc(41 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(44){--_chart-mark-stagger: calc(42 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(45){--_chart-mark-stagger: calc(43 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(46){--_chart-mark-stagger: calc(44 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(47){--_chart-mark-stagger: calc(45 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(48){--_chart-mark-stagger: calc(46 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(49){--_chart-mark-stagger: calc(47 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(50){--_chart-mark-stagger: calc(48 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(51){--_chart-mark-stagger: calc(49 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(52){--_chart-mark-stagger: calc(50 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(53){--_chart-mark-stagger: calc(51 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(54){--_chart-mark-stagger: calc(52 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(55){--_chart-mark-stagger: calc(53 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(56){--_chart-mark-stagger: calc(54 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(57){--_chart-mark-stagger: calc(55 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(58){--_chart-mark-stagger: calc(56 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(59){--_chart-mark-stagger: calc(57 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(60){--_chart-mark-stagger: calc(58 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(61){--_chart-mark-stagger: calc(59 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(n+62){--_chart-mark-stagger: calc(60 * var(--_heatmap-chart-column-stagger, 0ms))}.cell.is-missing{background:var(--_heatmap-chart-missing-color)}.cell-value{font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);color:#fff;mix-blend-mode:difference}.cell.interactive,.cell.pins{cursor:pointer}.cell.interactive:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.scale{display:flex;align-items:center;gap:var(--space-2);margin-block-start:var(--space-3)}.scale-ramp{display:flex}.scale-step{inline-size:var(--space-4);block-size:var(--space-2);transition:transform var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.scale-step:hover{transform:scaleY(1.75)}.scale-step:first-child{border-start-start-radius:var(--ds-radius-control);border-end-start-radius:var(--ds-radius-control)}.scale-step:last-child{border-start-end-radius:var(--ds-radius-control);border-end-end-radius:var(--ds-radius-control)}.scale-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size)}\n"], dependencies: [{ kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message"], outputs: ["release"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
216
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: HeatmapChartComponent, isStandalone: true, selector: "ds-heatmap-chart", inputs: { columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, showValues: { classPropertyName: "showValues", publicName: "showValues", isSignal: true, isRequired: false, transformFunction: null }, showScaleMarker: { classPropertyName: "showScaleMarker", publicName: "showScaleMarker", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cellClicked: "cellClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, exportAs: ["dsHeatmapChart"], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"heatmap-chart\"\n dsChartStates\n dataTable=\"toggle\"\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <table class=\"grid\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of skeletonColumns(); track $index) {\n <th class=\"column-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-5)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of skeletonRows(); track $index; let rowIndex = $index) {\n <tr>\n <th class=\"row-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns(); track $index) {\n <td class=\"cell-slot\">\n <ds-skeleton\n class=\"cell\"\n data-morph=\"mark\"\n [attr.data-morph-key]=\"rowIndex + ':' + $index\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"scale\">\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-4)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-32)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </div>\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"grid-scroll\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <table\n class=\"grid\"\n [class.dims-others]=\"dimOthers()\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of columns(); track column) {\n <th\n class=\"column-label\"\n scope=\"col\">\n {{ column }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of rows(); track entry.key; let rowIndex = $index) {\n <tr (animate.leave)=\"leaveMark($event)\">\n <th\n class=\"row-label\"\n scope=\"row\">\n {{ entry.row.label }}\n </th>\n\n @for (cell of entry.cells; track cell.key) {\n @let index = cellIndex(rowIndex, cell.columnIndex);\n @let pins = defaults.pinOnClick() && cell.value !== null;\n @let pinned = activeMark.pinned() && activeMark.index() === index;\n\n <td\n class=\"cell-slot\"\n [attr.data-mark-index]=\"index\"\n [style.--_chart-mark-stagger]=\"\n cellStagger(rowIndex, cell.columnIndex)\n \"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (click)=\"onCellPress(cell, index, $event)\">\n @if (interactive() && cell.value !== null) {\n <button\n class=\"cell interactive\"\n data-morph=\"mark\"\n type=\"button\"\n [attr.data-morph-key]=\"rowIndex + ':' + cell.columnIndex\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-highlighted]=\"\n cell.step !== null && highlightedStep() === cell.step\n \"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\"\n (click)=\"onCellClick(entry, cell, rowIndex)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (focus)=\"activeMark.enter(index, $event)\"\n (blur)=\"activeMark.leave()\">\n @if (showValues()) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </button>\n } @else {\n <span\n class=\"cell\"\n role=\"img\"\n data-morph=\"mark\"\n [attr.data-morph-key]=\"rowIndex + ':' + cell.columnIndex\"\n [class.is-missing]=\"cell.value === null\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-highlighted]=\"\n cell.step !== null && highlightedStep() === cell.step\n \"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\">\n @if (showValues() && cell.value !== null) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </span>\n }\n\n @if (pinned) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <div class=\"scale\">\n <span class=\"scale-label\">\n {{ scaleMinLabel() }}\n </span>\n\n <span\n class=\"scale-ramp\"\n aria-hidden=\"true\">\n @for (step of scaleSteps(); track step; let stepIndex = $index) {\n <span\n class=\"scale-step\"\n [style.background]=\"step\"\n (pointerenter)=\"stepHighlight.enter(stepIndex, $event)\"\n (pointerleave)=\"stepHighlight.leave()\">\n </span>\n }\n\n @if (scaleMarker(); as marker) {\n <span\n class=\"scale-marker\"\n dsChartPlaced\n [style.inset-inline-start.%]=\"marker.offset\">\n {{ marker.label }}\n </span>\n }\n </span>\n\n <span class=\"scale-label\">\n {{ scaleMaxLabel() }}\n </span>\n </div>\n\n <!-- Always present: colour is the only channel carrying magnitude on the grid. -->\n <ds-chart-data-table\n rowHeader\n [columns]=\"tableColumns()\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\" />\n</ng-template>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_heatmap-chart-focus-color: var(--ds-heatmap-chart-focus-color, var(--focus-ring-color));--_heatmap-chart-focus-width: var(--ds-heatmap-chart-focus-width, var(--focus-ring-width))}:host{inline-size:fit-content;max-inline-size:100%}.heatmap-chart{--_chart-message-height: calc(4 * var(--_heatmap-chart-cell-size));--_heatmap-chart-cell-size: var(--ds-heatmap-chart-cell-size, 34px);--_heatmap-chart-cell-gap: var(--ds-heatmap-chart-cell-gap, 2px);--_heatmap-chart-cell-radius: var(--ds-heatmap-chart-cell-radius, var(--ds-radius-control));--_heatmap-chart-label-color: var(--ds-heatmap-chart-label-color, var(--ds-chart-axis-label-color));--_heatmap-chart-label-font-size: var(--ds-heatmap-chart-label-font-size, var(--ds-chart-axis-font-size));--_heatmap-chart-missing-color: var(--ds-heatmap-chart-missing-color, var(--surface-secondary));--ds-chart-focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-width: var(--_heatmap-chart-focus-width);margin:0}.skeleton .skeleton-text{border-radius:var(--radius-pill)}.grid-scroll{overflow-x:auto}.grid .cell{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),filter var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.grid .cell.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.grid.dims-others:not(:has(.cell.is-pinned)):has(.cell.is-active) .cell:not(.is-active),.grid.dims-others:has(.cell.is-pinned) .cell:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.grid{border-collapse:separate;border-spacing:var(--_heatmap-chart-cell-gap)}.column-label,.row-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-regular);white-space:nowrap}.column-label{text-align:center}.row-label{text-align:end;padding-inline-end:var(--space-2)}.cell-slot{position:relative;padding:0}.cell-slot>.pin-marker{animation:ds-chart-pin-pop var(--ds-motion-chart-mark-duration) var(--ease-spring) backwards}.cell-slot>.pin-marker{position:absolute;inset:0;margin:auto}.cell{position:relative;display:grid;place-items:center;inline-size:var(--_heatmap-chart-cell-size);block-size:var(--_heatmap-chart-cell-size);border:0;border-radius:var(--_heatmap-chart-cell-radius);padding:0}.cell:before{position:absolute;inset:calc(var(--_heatmap-chart-cell-gap) / -2);content:\"\"}.cell{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell{animation-delay:0ms}}.cell.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.grid tbody>tr.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-slot.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-value{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell-value{animation-delay:0ms}}.cell.is-active,.cell.is-highlighted{filter:brightness(1.12) saturate(1.1)}.cell.is-missing{background:var(--_heatmap-chart-missing-color)}.cell-value{font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);color:#fff;mix-blend-mode:difference}.cell.interactive,.cell.pins{cursor:pointer}.cell.interactive:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.scale{display:flex;align-items:center;gap:var(--space-2);margin-block-start:var(--space-6)}.scale-ramp{position:relative;display:flex}.scale-marker{position:absolute;inset-block-end:calc(100% + var(--space-1));translate:-50% 0;color:var(--text-primary);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-bold);line-height:1;white-space:nowrap;pointer-events:none}.scale-marker:dir(rtl){translate:50% 0}.scale-marker:after{position:absolute;inset-block-start:100%;inset-inline:0;inline-size:fit-content;margin-inline:auto;border:var(--space-1) solid transparent;border-block-end-width:0;border-block-start-color:currentcolor;content:\"\"}.scale-marker.placed{transition:inset-inline-start var(--ds-motion-chart-tooltip-move-duration) var(--ds-motion-chart-tooltip-move-easing)}.scale-step{inline-size:var(--space-4);block-size:var(--space-2);transition:transform var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.scale-step:hover{transform:scaleY(1.75)}.scale-step:first-child{border-start-start-radius:var(--ds-radius-control);border-end-start-radius:var(--ds-radius-control)}.scale-step:last-child{border-start-end-radius:var(--ds-radius-control);border-end-end-radius:var(--ds-radius-control)}.scale-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size)}\n"], dependencies: [{ kind: "directive", type: ChartPlacedDirective, selector: "[dsChartPlaced]" }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: ChartStatesComponent, selector: "figure[dsChartStates]", inputs: ["unpin", "pinned", "caption", "error", "errorText", "pending", "dataTable", "shimmer", "reloading", "empty", "emptyText", "messageAxes", "skeleton", "body", "message", "morphGrowth"], outputs: ["release"] }, { kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
189
217
  }
190
218
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: HeatmapChartComponent, decorators: [{
191
219
  type: Component,
192
220
  args: [{ selector: 'ds-heatmap-chart', standalone: true, exportAs: 'dsHeatmapChart', imports: [
221
+ ChartPlacedDirective,
193
222
  ChartTooltipDirective,
194
223
  ChartStatesComponent,
195
224
  SkeletonComponent,
@@ -197,8 +226,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
197
226
  IconComponent,
198
227
  ], host: {
199
228
  '[class.framed]': "frameResolved() === 'auto'",
200
- }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"heatmap-chart\"\n dsChartStates\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [dataTable]=\"true\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <table class=\"grid\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of skeletonColumns(); track $index) {\n <th class=\"column-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-5)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of skeletonRows(); track $index) {\n <tr>\n <th class=\"row-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns(); track $index) {\n <td class=\"cell-slot\">\n <ds-skeleton\n class=\"cell\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"scale\">\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-4)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-32)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </div>\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"grid-scroll\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <table\n class=\"grid\"\n [class.dims-others]=\"dimOthers()\"\n [style.--_heatmap-chart-column-stagger]=\"columnStagger()\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of columns(); track column) {\n <th\n class=\"column-label\"\n scope=\"col\">\n {{ column }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of rows(); track entry.key; let rowIndex = $index) {\n <tr>\n <th\n class=\"row-label\"\n scope=\"row\">\n {{ entry.row.label }}\n </th>\n\n @for (cell of entry.cells; track cell.key) {\n @let index = cellIndex(rowIndex, cell.columnIndex);\n @let pins = defaults.pinOnClick() && cell.value !== null;\n @let pinned = activeMark.pinned() && activeMark.index() === index;\n\n <td\n class=\"cell-slot\"\n [attr.data-mark-index]=\"index\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (click)=\"onCellPress(cell, index, $event)\">\n @if (interactive() && cell.value !== null) {\n <button\n class=\"cell interactive\"\n type=\"button\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\"\n (click)=\"onCellClick(entry, cell, rowIndex)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (focus)=\"activeMark.enter(index, $event)\"\n (blur)=\"activeMark.leave()\">\n @if (showValues()) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </button>\n } @else {\n <span\n class=\"cell\"\n role=\"img\"\n [class.is-missing]=\"cell.value === null\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\">\n @if (showValues() && cell.value !== null) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </span>\n }\n\n @if (pinned) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <div class=\"scale\">\n <span class=\"scale-label\">\n {{ scaleMinLabel() }}\n </span>\n\n <span\n class=\"scale-ramp\"\n aria-hidden=\"true\">\n @for (step of scaleSteps(); track step; let stepIndex = $index) {\n <span\n class=\"scale-step\"\n [style.background]=\"step\"\n (pointerenter)=\"onStepEnter(stepIndex, $event)\"\n (pointerleave)=\"onStepLeave()\">\n </span>\n }\n </span>\n\n <span class=\"scale-label\">\n {{ scaleMaxLabel() }}\n </span>\n </div>\n\n <!-- Always present: colour is the only channel carrying magnitude on the grid. -->\n <ds-chart-data-table\n rowHeader\n [columns]=\"tableColumns()\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\" />\n</ng-template>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-rise{0%{opacity:0;transform:translateY(var(--_chart-rise-distance, 4px))}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_heatmap-chart-focus-color: var(--ds-heatmap-chart-focus-color, var(--focus-ring-color));--_heatmap-chart-focus-width: var(--ds-heatmap-chart-focus-width, var(--focus-ring-width))}:host{inline-size:fit-content;max-inline-size:100%}.heatmap-chart{--_chart-message-height: calc(4 * var(--_heatmap-chart-cell-size));--_heatmap-chart-cell-size: var(--ds-heatmap-chart-cell-size, 34px);--_heatmap-chart-cell-gap: var(--ds-heatmap-chart-cell-gap, 2px);--_heatmap-chart-cell-radius: var(--ds-heatmap-chart-cell-radius, var(--ds-radius-control));--_heatmap-chart-label-color: var(--ds-heatmap-chart-label-color, var(--ds-chart-axis-label-color));--_heatmap-chart-label-font-size: var(--ds-heatmap-chart-label-font-size, var(--ds-chart-axis-font-size));--_heatmap-chart-missing-color: var(--ds-heatmap-chart-missing-color, var(--surface-secondary));--ds-chart-focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-width: var(--_heatmap-chart-focus-width);margin:0}.skeleton .skeleton-text{border-radius:var(--radius-pill)}.grid-scroll{overflow-x:auto}.grid .cell{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.grid .cell.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.grid.dims-others:not(:has(.cell.is-pinned)):has(.cell.is-active) .cell:not(.is-active),.grid.dims-others:has(.cell.is-pinned) .cell:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.grid{border-collapse:separate;border-spacing:var(--_heatmap-chart-cell-gap)}.column-label,.row-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-regular);white-space:nowrap}.column-label{text-align:center}.row-label{text-align:end;padding-inline-end:var(--space-2)}.cell-slot{position:relative;padding:0}.cell-slot>.pin-marker{position:absolute;inset:0;margin:auto}.cell{position:relative;display:grid;place-items:center;inline-size:var(--_heatmap-chart-cell-size);block-size:var(--_heatmap-chart-cell-size);border:0;border-radius:var(--_heatmap-chart-cell-radius);padding:0}.cell:before{position:absolute;inset:calc(var(--_heatmap-chart-cell-gap) / -2);content:\"\"}.cell{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell{animation-delay:0ms}}.cell.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-value{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell-value{animation-delay:0ms}}.cell-slot:nth-child(3){--_chart-mark-stagger: calc(1 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(4){--_chart-mark-stagger: calc(2 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(5){--_chart-mark-stagger: calc(3 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(6){--_chart-mark-stagger: calc(4 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(7){--_chart-mark-stagger: calc(5 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(8){--_chart-mark-stagger: calc(6 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(9){--_chart-mark-stagger: calc(7 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(10){--_chart-mark-stagger: calc(8 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(11){--_chart-mark-stagger: calc(9 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(12){--_chart-mark-stagger: calc(10 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(13){--_chart-mark-stagger: calc(11 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(14){--_chart-mark-stagger: calc(12 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(15){--_chart-mark-stagger: calc(13 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(16){--_chart-mark-stagger: calc(14 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(17){--_chart-mark-stagger: calc(15 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(18){--_chart-mark-stagger: calc(16 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(19){--_chart-mark-stagger: calc(17 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(20){--_chart-mark-stagger: calc(18 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(21){--_chart-mark-stagger: calc(19 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(22){--_chart-mark-stagger: calc(20 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(23){--_chart-mark-stagger: calc(21 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(24){--_chart-mark-stagger: calc(22 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(25){--_chart-mark-stagger: calc(23 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(26){--_chart-mark-stagger: calc(24 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(27){--_chart-mark-stagger: calc(25 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(28){--_chart-mark-stagger: calc(26 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(29){--_chart-mark-stagger: calc(27 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(30){--_chart-mark-stagger: calc(28 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(31){--_chart-mark-stagger: calc(29 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(32){--_chart-mark-stagger: calc(30 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(33){--_chart-mark-stagger: calc(31 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(34){--_chart-mark-stagger: calc(32 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(35){--_chart-mark-stagger: calc(33 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(36){--_chart-mark-stagger: calc(34 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(37){--_chart-mark-stagger: calc(35 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(38){--_chart-mark-stagger: calc(36 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(39){--_chart-mark-stagger: calc(37 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(40){--_chart-mark-stagger: calc(38 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(41){--_chart-mark-stagger: calc(39 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(42){--_chart-mark-stagger: calc(40 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(43){--_chart-mark-stagger: calc(41 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(44){--_chart-mark-stagger: calc(42 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(45){--_chart-mark-stagger: calc(43 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(46){--_chart-mark-stagger: calc(44 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(47){--_chart-mark-stagger: calc(45 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(48){--_chart-mark-stagger: calc(46 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(49){--_chart-mark-stagger: calc(47 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(50){--_chart-mark-stagger: calc(48 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(51){--_chart-mark-stagger: calc(49 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(52){--_chart-mark-stagger: calc(50 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(53){--_chart-mark-stagger: calc(51 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(54){--_chart-mark-stagger: calc(52 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(55){--_chart-mark-stagger: calc(53 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(56){--_chart-mark-stagger: calc(54 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(57){--_chart-mark-stagger: calc(55 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(58){--_chart-mark-stagger: calc(56 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(59){--_chart-mark-stagger: calc(57 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(60){--_chart-mark-stagger: calc(58 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(61){--_chart-mark-stagger: calc(59 * var(--_heatmap-chart-column-stagger, 0ms))}.cell-slot:nth-child(n+62){--_chart-mark-stagger: calc(60 * var(--_heatmap-chart-column-stagger, 0ms))}.cell.is-missing{background:var(--_heatmap-chart-missing-color)}.cell-value{font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);color:#fff;mix-blend-mode:difference}.cell.interactive,.cell.pins{cursor:pointer}.cell.interactive:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.scale{display:flex;align-items:center;gap:var(--space-2);margin-block-start:var(--space-3)}.scale-ramp{display:flex}.scale-step{inline-size:var(--space-4);block-size:var(--space-2);transition:transform var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.scale-step:hover{transform:scaleY(1.75)}.scale-step:first-child{border-start-start-radius:var(--ds-radius-control);border-end-start-radius:var(--ds-radius-control)}.scale-step:last-child{border-start-end-radius:var(--ds-radius-control);border-end-end-radius:var(--ds-radius-control)}.scale-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size)}\n"] }]
201
- }], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], cellClicked: [{ type: i0.Output, args: ["cellClicked"] }] } });
229
+ }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"heatmap-chart\"\n dsChartStates\n dataTable=\"toggle\"\n [pinned]=\"activeMark.pinned()\"\n [caption]=\"caption()\"\n [error]=\"error()\"\n [errorText]=\"errorTextResolved()\"\n [pending]=\"(loading() && isEmpty()) || !renderReady()\"\n [reloading]=\"loading()\"\n [shimmer]=\"loading()\"\n [empty]=\"isEmpty()\"\n [emptyText]=\"emptyTextResolved()\"\n [skeleton]=\"skeleton\"\n [body]=\"body\"\n (release)=\"activeMark.release()\">\n</figure>\n\n<ng-template #skeleton>\n <div\n class=\"skeleton\"\n aria-hidden=\"true\">\n <table class=\"grid\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of skeletonColumns(); track $index) {\n <th class=\"column-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-5)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (row of skeletonRows(); track $index; let rowIndex = $index) {\n <tr>\n <th class=\"row-label\">\n <ds-skeleton\n inline\n class=\"skeleton-text\"\n width=\"var(--space-10)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </th>\n\n @for (column of skeletonColumns(); track $index) {\n <td class=\"cell-slot\">\n <ds-skeleton\n class=\"cell\"\n data-morph=\"mark\"\n [attr.data-morph-key]=\"rowIndex + ':' + $index\"\n [shimmer]=\"loading()\" />\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n\n <div class=\"scale\">\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-4)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-32)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n\n <ds-skeleton\n class=\"skeleton-text\"\n width=\"var(--space-6)\"\n height=\"var(--space-2)\"\n [shimmer]=\"loading()\" />\n </div>\n </div>\n</ng-template>\n\n<ng-template #body>\n <div\n class=\"grid-scroll\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipSwatches]=\"defaults.tooltipSwatches()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\">\n <table\n class=\"grid\"\n [class.dims-others]=\"dimOthers()\">\n <thead>\n <tr>\n <td class=\"corner\"></td>\n\n @for (column of columns(); track column) {\n <th\n class=\"column-label\"\n scope=\"col\">\n {{ column }}\n </th>\n }\n </tr>\n </thead>\n\n <tbody>\n @for (entry of rows(); track entry.key; let rowIndex = $index) {\n <tr (animate.leave)=\"leaveMark($event)\">\n <th\n class=\"row-label\"\n scope=\"row\">\n {{ entry.row.label }}\n </th>\n\n @for (cell of entry.cells; track cell.key) {\n @let index = cellIndex(rowIndex, cell.columnIndex);\n @let pins = defaults.pinOnClick() && cell.value !== null;\n @let pinned = activeMark.pinned() && activeMark.index() === index;\n\n <td\n class=\"cell-slot\"\n [attr.data-mark-index]=\"index\"\n [style.--_chart-mark-stagger]=\"\n cellStagger(rowIndex, cell.columnIndex)\n \"\n (animate.leave)=\"leaveMark($event)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (click)=\"onCellPress(cell, index, $event)\">\n @if (interactive() && cell.value !== null) {\n <button\n class=\"cell interactive\"\n data-morph=\"mark\"\n type=\"button\"\n [attr.data-morph-key]=\"rowIndex + ':' + cell.columnIndex\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-highlighted]=\"\n cell.step !== null && highlightedStep() === cell.step\n \"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\"\n (click)=\"onCellClick(entry, cell, rowIndex)\"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (focus)=\"activeMark.enter(index, $event)\"\n (blur)=\"activeMark.leave()\">\n @if (showValues()) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </button>\n } @else {\n <span\n class=\"cell\"\n role=\"img\"\n data-morph=\"mark\"\n [attr.data-morph-key]=\"rowIndex + ':' + cell.columnIndex\"\n [class.is-missing]=\"cell.value === null\"\n [class.pins]=\"pins\"\n [class.is-active]=\"activeMark.index() === index\"\n [class.is-pinned]=\"pinned\"\n [class.is-highlighted]=\"\n cell.step !== null && highlightedStep() === cell.step\n \"\n [class.is-dimmed]=\"isCellDimmed(cell)\"\n [style.background]=\"cell.color\"\n [attr.aria-label]=\"cell.accessibleName\">\n @if (showValues() && cell.value !== null) {\n <span class=\"cell-value\">\n {{ cell.formattedValue }}\n </span>\n }\n </span>\n }\n\n @if (pinned) {\n <ds-icon\n class=\"pin-marker\"\n name=\"pin\"\n [size]=\"14\" />\n }\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n\n <div class=\"scale\">\n <span class=\"scale-label\">\n {{ scaleMinLabel() }}\n </span>\n\n <span\n class=\"scale-ramp\"\n aria-hidden=\"true\">\n @for (step of scaleSteps(); track step; let stepIndex = $index) {\n <span\n class=\"scale-step\"\n [style.background]=\"step\"\n (pointerenter)=\"stepHighlight.enter(stepIndex, $event)\"\n (pointerleave)=\"stepHighlight.leave()\">\n </span>\n }\n\n @if (scaleMarker(); as marker) {\n <span\n class=\"scale-marker\"\n dsChartPlaced\n [style.inset-inline-start.%]=\"marker.offset\">\n {{ marker.label }}\n </span>\n }\n </span>\n\n <span class=\"scale-label\">\n {{ scaleMaxLabel() }}\n </span>\n </div>\n\n <!-- Always present: colour is the only channel carrying magnitude on the grid. -->\n <ds-chart-data-table\n rowHeader\n [columns]=\"tableColumns()\"\n [rows]=\"tableRows()\"\n [caption]=\"caption()\" />\n</ng-template>\n", styles: ["@keyframes ds-chart-mark-grow-y{0%{transform:scaleY(0)}}@keyframes ds-chart-mark-grow-x{0%{transform:scaleX(0)}}@keyframes ds-chart-mark-fade-in{0%{opacity:0}}@keyframes ds-chart-mark-settle{0%{opacity:0;transform:scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}@keyframes ds-chart-pin-pop{0%{scale:.4;opacity:0}}@layer ds-component-base{:host{box-sizing:border-box;interpolate-size:allow-keywords}*,*:before,*:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}h1,h2,h3,h4,h5,h6{margin:0}:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard);border-radius:var(--focus-ring-radius)}@media(forced-colors:active){:host(:where(:focus-visible)),:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}}:host{display:block;-webkit-user-select:none;user-select:none}:host(.framed){padding:var(--ds-chart-frame-padding);background:var(--ds-chart-frame-bg-color, var(--ds-chart-bg-color));border:var(--ds-chart-frame-border-width) solid var(--ds-chart-frame-border-color);border-radius:var(--ds-chart-frame-radius)}.data-table,.stage-table{-webkit-user-select:text;user-select:text}.empty-text.is-error{color:var(--error)}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}.pin-marker{display:grid;place-items:center;inline-size:var(--ds-chart-pin-size, 22px);block-size:var(--ds-chart-pin-size, 22px);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-primary);box-shadow:var(--shadow-1);pointer-events:none}.data-table{--_chart-data-table-marker: var(--space-1);margin-block-start:var(--space-4);color:var(--text-secondary);font-size:var(--font-size-s)}.data-table>summary{display:inline-flex;align-items:center;gap:var(--space-1);padding-block:var(--space-1);color:var(--text-tertiary);font-size:var(--font-size-xs);cursor:pointer;list-style:none}.data-table>summary::-webkit-details-marker{display:none}.data-table>summary:before{content:\"\";inline-size:0;block-size:0;border-block-start:var(--_chart-data-table-marker) solid transparent;border-block-end:var(--_chart-data-table-marker) solid transparent;border-inline-start:calc(var(--_chart-data-table-marker) * 1.25) solid currentcolor;transition:transform var(--duration-fast) var(--ease-standard)}@media(prefers-reduced-motion:reduce){.data-table>summary:before{transition:none}}.data-table[open]>summary:before{transform:rotate(90deg)}.data-table>summary{border-radius:var(--radius-sm)}.data-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.data-table table{inline-size:100%;margin-block-start:var(--space-2);border-collapse:collapse;font-variant-numeric:tabular-nums}.data-table th,.data-table td{padding-block:var(--space-2);border-block-end:var(--border-width-default) solid var(--ds-chart-grid-line-color);text-align:end}.data-table thead th{color:var(--text-tertiary);font-size:var(--font-size-xs);font-weight:600}.data-table th:first-child,.data-table td:first-child{text-align:start}.data-table td+td{padding-inline-start:var(--space-3)}:host{--_heatmap-chart-focus-color: var(--ds-heatmap-chart-focus-color, var(--focus-ring-color));--_heatmap-chart-focus-width: var(--ds-heatmap-chart-focus-width, var(--focus-ring-width))}:host{inline-size:fit-content;max-inline-size:100%}.heatmap-chart{--_chart-message-height: calc(4 * var(--_heatmap-chart-cell-size));--_heatmap-chart-cell-size: var(--ds-heatmap-chart-cell-size, 34px);--_heatmap-chart-cell-gap: var(--ds-heatmap-chart-cell-gap, 2px);--_heatmap-chart-cell-radius: var(--ds-heatmap-chart-cell-radius, var(--ds-radius-control));--_heatmap-chart-label-color: var(--ds-heatmap-chart-label-color, var(--ds-chart-axis-label-color));--_heatmap-chart-label-font-size: var(--ds-heatmap-chart-label-font-size, var(--ds-chart-axis-font-size));--_heatmap-chart-missing-color: var(--ds-heatmap-chart-missing-color, var(--surface-secondary));--ds-chart-focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-color: var(--_heatmap-chart-focus-color);--focus-ring-width: var(--_heatmap-chart-focus-width);margin:0}.skeleton .skeleton-text{border-radius:var(--radius-pill)}.grid-scroll{overflow-x:auto}.grid .cell{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),background var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing),filter var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.grid .cell.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.grid.dims-others:not(:has(.cell.is-pinned)):has(.cell.is-active) .cell:not(.is-active),.grid.dims-others:has(.cell.is-pinned) .cell:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.grid{border-collapse:separate;border-spacing:var(--_heatmap-chart-cell-gap)}.column-label,.row-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-regular);white-space:nowrap}.column-label{text-align:center}.row-label{text-align:end;padding-inline-end:var(--space-2)}.cell-slot{position:relative;padding:0}.cell-slot>.pin-marker{animation:ds-chart-pin-pop var(--ds-motion-chart-mark-duration) var(--ease-spring) backwards}.cell-slot>.pin-marker{position:absolute;inset:0;margin:auto}.cell{position:relative;display:grid;place-items:center;inline-size:var(--_heatmap-chart-cell-size);block-size:var(--_heatmap-chart-cell-size);border:0;border-radius:var(--_heatmap-chart-cell-radius);padding:0}.cell:before{position:absolute;inset:calc(var(--_heatmap-chart-cell-gap) / -2);content:\"\"}.cell{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-enter-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell{animation-delay:0ms}}.cell.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.grid tbody>tr.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-slot.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.cell-value{animation:ds-chart-mark-fade-in var(--ds-motion-chart-mark-detail-duration) var(--ds-motion-chart-mark-enter-easing) calc(var(--ds-motion-chart-mark-exit-duration) + var(--ds-motion-chart-mark-enter-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.cell-value{animation-delay:0ms}}.cell.is-active,.cell.is-highlighted{filter:brightness(1.12) saturate(1.1)}.cell.is-missing{background:var(--_heatmap-chart-missing-color)}.cell-value{font-size:var(--font-size-xs);font-weight:var(--font-weight-bold);color:#fff;mix-blend-mode:difference}.cell.interactive,.cell.pins{cursor:pointer}.cell.interactive:focus-visible{outline:var(--focus-ring-width) solid var(--focus-ring-color);outline-offset:var(--focus-ring-offset);animation:ds-focus-ring-in var(--duration-fast) var(--ease-standard)}.scale{display:flex;align-items:center;gap:var(--space-2);margin-block-start:var(--space-6)}.scale-ramp{position:relative;display:flex}.scale-marker{position:absolute;inset-block-end:calc(100% + var(--space-1));translate:-50% 0;color:var(--text-primary);font-size:var(--_heatmap-chart-label-font-size);font-weight:var(--font-weight-bold);line-height:1;white-space:nowrap;pointer-events:none}.scale-marker:dir(rtl){translate:50% 0}.scale-marker:after{position:absolute;inset-block-start:100%;inset-inline:0;inline-size:fit-content;margin-inline:auto;border:var(--space-1) solid transparent;border-block-end-width:0;border-block-start-color:currentcolor;content:\"\"}.scale-marker.placed{transition:inset-inline-start var(--ds-motion-chart-tooltip-move-duration) var(--ds-motion-chart-tooltip-move-easing)}.scale-step{inline-size:var(--space-4);block-size:var(--space-2);transition:transform var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.scale-step:hover{transform:scaleY(1.75)}.scale-step:first-child{border-start-start-radius:var(--ds-radius-control);border-end-start-radius:var(--ds-radius-control)}.scale-step:last-child{border-start-end-radius:var(--ds-radius-control);border-end-end-radius:var(--ds-radius-control)}.scale-label{color:var(--_heatmap-chart-label-color);font-size:var(--_heatmap-chart-label-font-size)}\n"] }]
230
+ }], propDecorators: { columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], showValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValues", required: false }] }], showScaleMarker: [{ type: i0.Input, args: [{ isSignal: true, alias: "showScaleMarker", required: false }] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], cellClicked: [{ type: i0.Output, args: ["cellClicked"] }] } });
202
231
 
203
232
  /**
204
233
  * Generated bundle index. Do not edit.