@ids-group-ltd/ids-design-system 0.14.3 → 0.14.5

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 (335) hide show
  1. package/CHANGELOG.md +279 -0
  2. package/components.md +16 -16
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +1 -1
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +1 -1
  8. package/docs/agent/charts/ds-funnel-chart.md +1 -1
  9. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  10. package/docs/agent/charts/ds-line-chart.md +1 -1
  11. package/docs/agent/charts/ds-pie-chart.md +3 -3
  12. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  13. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  14. package/docs/agent/charts/line-series-component.md +1 -1
  15. package/docs/agent/navigation/ds-breadcrumbs.md +1 -1
  16. package/docs/agent/overlays/ds-tooltip.md +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -131
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +16 -13
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +109 -105
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +190 -439
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -124
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -164
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +29 -84
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +55 -169
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -121
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +64 -96
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +163 -0
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -0
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -82
  186. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -571
  188. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +51 -85
  190. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  192. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  194. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  196. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  197. package/fesm2022/ids-group-ltd-ids-design-system.mjs +1 -0
  198. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  199. package/migrations/0.14.4.json +231 -0
  200. package/migrations/0.14.5.json +311 -0
  201. package/package.json +9 -1
  202. package/schematics/check-overrides/surface.json +30 -2
  203. package/styles/_breakpoints.scss +6 -23
  204. package/styles/_chart-data-table.scss +3 -11
  205. package/styles/_chart-frame.scss +14 -65
  206. package/styles/_chart-interactive.scss +8 -36
  207. package/styles/_chart-motion.scss +11 -39
  208. package/styles/_check-box.scss +7 -26
  209. package/styles/_check-mark.scss +7 -23
  210. package/styles/_chip-row.scss +3 -14
  211. package/styles/_clear-button.scss +2 -7
  212. package/styles/_control-label.scss +2 -13
  213. package/styles/_control-line.scss +2 -6
  214. package/styles/_dropdown-overlay.scss +8 -33
  215. package/styles/_ds-color.scss +9 -28
  216. package/styles/_field-box.scss +4 -16
  217. package/styles/_field-group-segment.scss +6 -6
  218. package/styles/_field-label.scss +3 -14
  219. package/styles/_field-state.scss +5 -10
  220. package/styles/_focus.scss +20 -60
  221. package/styles/_icon-base.scss +0 -2
  222. package/styles/_layout-utils.scss +0 -3
  223. package/styles/_link.scss +4 -18
  224. package/styles/_overlay-motion.scss +15 -38
  225. package/styles/_page-grid.scss +4 -29
  226. package/styles/_press.scss +5 -18
  227. package/styles/_reset.scss +1 -14
  228. package/styles/_scrollbar.scss +0 -2
  229. package/styles/_skeleton-shimmer.scss +3 -14
  230. package/styles/_status.scss +5 -13
  231. package/styles/_surface-motion.scss +7 -34
  232. package/styles/_table-controls.scss +3 -6
  233. package/styles/_text-clip.scss +2 -6
  234. package/styles/_theme-activation.scss +7 -20
  235. package/styles/_toast-overlay.scss +8 -3
  236. package/styles/_tokens-charts.scss +31 -90
  237. package/styles/_tokens.scss +115 -154
  238. package/styles/_typography.scss +6 -13
  239. package/styles/_visually-hidden.scss +2 -3
  240. package/styles/ds.scss +2 -10
  241. package/themes/_base-palette.scss +12 -35
  242. package/themes/_semantic.scss +29 -98
  243. package/themes/dark/_palette.scss +15 -29
  244. package/themes/dark/_theme.scss +14 -32
  245. package/themes/light/_palette.scss +2 -17
  246. package/themes/light/_theme.scss +1 -7
  247. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  248. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  249. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  250. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  251. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  252. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  253. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  254. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  255. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  256. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  257. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  258. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  259. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  260. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  261. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  262. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  263. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  264. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  265. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  266. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +31 -49
  267. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +165 -382
  268. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  269. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  270. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -125
  271. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  272. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  273. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  274. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  275. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  276. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  277. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  278. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  279. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  280. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  281. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +19 -83
  282. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  283. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  284. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  285. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +54 -163
  286. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  287. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  288. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  289. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  290. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  291. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  292. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  293. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  294. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  295. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  296. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  297. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  298. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  299. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  300. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +25 -94
  301. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  302. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  303. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  304. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  305. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  306. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  307. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  308. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +58 -0
  309. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  310. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  311. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  312. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  313. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  314. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  315. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  316. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  317. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  318. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  319. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  320. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  321. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  322. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  323. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  324. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  325. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  326. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  327. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  328. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  329. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -67
  330. package/types/ids-group-ltd-ids-design-system-components.d.ts +266 -410
  331. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -259
  332. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  333. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  334. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
  335. package/types/ids-group-ltd-ids-design-system.d.ts +1 -0
@@ -1,26 +1,21 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, numberAttribute, computed, booleanAttribute, inject, output, contentChild, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
- import { chartRenderGate, resolveChartDefaults, rovingMarks, chartDwell, markAt, largestRemainder, CHART_SERIES_COLORS, formatWholePercent, describeSeries } from '@ids-group-ltd/ids-design-system/components';
2
+ import { input, numberAttribute, computed, booleanAttribute, output, contentChild, signal, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
3
+ import { DsChartBase, chartRenderGate, rovingMarks, chartDwell, markAt, largestRemainder, CHART_SERIES_COLORS, formatWholePercent, describeSeries } from '@ids-group-ltd/ids-design-system/components';
4
4
  import { SkeletonComponent } from '@ids-group-ltd/ids-design-system/components/skeleton';
5
5
  import { IconComponent } from '@ids-group-ltd/ids-design-system/icons';
6
- import { DS_INTL } from '@ids-group-ltd/ids-design-system/core';
7
6
  import { chartActiveMark, ChartTooltipDirective } from '@ids-group-ltd/ids-design-system/components/chart-tooltip';
8
7
  import { ChartDataTableComponent } from '@ids-group-ltd/ids-design-system/components/chart-data-table';
9
8
 
10
9
  const FULL_TURN = Math.PI * 2;
11
10
  const FULL_TURN_EPSILON = 1e-9;
12
11
  const DEFAULT_INNER_RADIUS = 0.68;
13
- /** Valid over [0, 1): zero is a solid pie, and one would leave no ring to draw, so it falls back
14
- * along with every other unusable value. */
12
+ /** Valid over [0, 1); anything else falls back. */
15
13
  function holeFraction(innerRadius) {
16
14
  return Number.isFinite(innerRadius) && innerRadius >= 0 && innerRadius < 1
17
15
  ? round(innerRadius)
18
16
  : DEFAULT_INNER_RADIUS;
19
17
  }
20
- /** The slices a legend can carry, with everything past `limit` summed into one. The kept slices stay
21
- * in the order given — a ring is read against its legend top to bottom, so reordering by value
22
- * would move every other slice to make room for the grouping. The remainder takes the neutral
23
- * eighth palette slot, which is what that slot is for. */
18
+ /** The slices a legend can carry, with everything past `limit` summed into one that takes the neutral eighth palette slot. */
24
19
  function groupSmallest(slices, limit, otherLabel) {
25
20
  if (limit === null || !Number.isInteger(limit) || limit < 2) {
26
21
  return [...slices];
@@ -40,10 +35,7 @@ function groupSmallest(slices, limit, otherLabel) {
40
35
  { id: 'ds-pie-other', label: otherLabel, value: remainder, slot: 8 },
41
36
  ];
42
37
  }
43
- /** A ring is a part-to-whole picture, so anything that is not a positive share
44
- * becomes zero. Non-finite values go in the same pass: one NaN reaches every
45
- * other slice through the total, and a `d` attribute holding NaN draws nothing
46
- * at all rather than failing loudly. */
38
+ /** Anything that is not a positive share becomes zero; a NaN would reach every slice through the total and draw nothing, silently. */
47
39
  function positiveValues(values) {
48
40
  return values.map((value) => Number.isFinite(value) && value > 0 ? value : 0);
49
41
  }
@@ -78,14 +70,12 @@ function paletteIndex(slot, index, paletteLength) {
78
70
  }
79
71
  return index % paletteLength;
80
72
  }
81
- /** One `"x y"` pair for a path. Angles run clockwise from 12 o'clock, where a
82
- * reader expects a ring to start; SVG's y axis points down, so that is
83
- * (sin, -cos) rather than the (cos, sin) of the maths convention. */
73
+ /** One `"x y"` pair for a path. Angles run clockwise from 12 o'clock. */
84
74
  function ringPoint(centerX, centerY, radius, angle) {
85
75
  const { x, y } = ringCoords(centerX, centerY, radius, angle);
86
76
  return `${x} ${y}`;
87
77
  }
88
- /** The same point as numbers, for PLACING something rather than drawing a path. */
78
+ /** The same point as numbers. */
89
79
  function ringCoords(centerX, centerY, radius, angle) {
90
80
  return {
91
81
  x: round(centerX + radius * Math.sin(angle)),
@@ -128,12 +118,10 @@ function fullRingPath(centerX, centerY, outerRadius, innerRadius) {
128
118
  if (innerRadius <= 0) {
129
119
  return outer;
130
120
  }
131
- // The hole is cut by winding the inner circle the other way, which the default
132
- // nonzero fill rule then cancels against the outer one.
121
+ // The inner circle winds the other way so the nonzero fill rule cancels it against the outer one.
133
122
  return `${outer} ${circlePath(centerX, centerY, innerRadius, 0)}`;
134
123
  }
135
- /** A single arc of a full turn ends where it starts and SVG draws nothing for
136
- * it, so a closed circle is two half-turns. */
124
+ /** A closed circle is two half-turns: a single full-turn SVG arc draws nothing. */
137
125
  function circlePath(centerX, centerY, radius, sweepFlag) {
138
126
  const top = ringPoint(centerX, centerY, radius, 0);
139
127
  const bottom = ringPoint(centerX, centerY, radius, Math.PI);
@@ -147,103 +135,35 @@ function round(value) {
147
135
  const RING_VIEW_BOX_SIZE = 100;
148
136
  const RING_CENTER = RING_VIEW_BOX_SIZE / 2;
149
137
  const RING_OUTER_RADIUS = RING_VIEW_BOX_SIZE / 2;
150
- class PieChartComponent {
138
+ class PieChartComponent extends DsChartBase {
151
139
  renderReady = chartRenderGate();
152
- /** One slice per entry. A non-positive or non-finite value counts as zero — a ring is a
153
- * part-to-whole picture and has no way to draw a negative share. */
154
- data = input.required(...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
140
+ /** One slice per entry. A non-positive or non-finite value counts as zero. */
141
+ data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
155
142
  /** Printed inside the ring. Null prints the sum through `valueFormat`. */
156
143
  centerValue = input(null, ...(ngDevMode ? [{ debugName: "centerValue" }] : /* istanbul ignore next */ []));
157
144
  /** Caption under the centre value. */
158
145
  centerLabel = input(null, ...(ngDevMode ? [{ debugName: "centerLabel" }] : /* istanbul ignore next */ []));
159
- /** Logical placement, so a right-to-left page needs no second value. */
146
+ /** Legend placement, logical so it flips in right-to-left. */
160
147
  legend = input('end', ...(ngDevMode ? [{ debugName: "legend" }] : /* istanbul ignore next */ []));
161
- /** Longest legend to draw. Past it the smallest slices are summed into one, so a long tail does
162
- * not become a legend nobody reads. Off by default: grouping changes what the chart says, and
163
- * that is the consumer's call. Values below 2 are ignored — one slice is not a pie. */
148
+ /** Longest legend to draw; past it the smallest slices are summed into one. Values below 2 are ignored. */
164
149
  maxSlices = input(null, { ...(ngDevMode ? { debugName: "maxSlices" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
165
150
  /** Names the grouped slice. Unset falls back to `DS_INTL.chart.other`. */
166
151
  otherLabel = input(null, ...(ngDevMode ? [{ debugName: "otherLabel" }] : /* istanbul ignore next */ []));
167
152
  otherLabelResolved = computed(() => this.otherLabel() ?? this.intl().chart.other, ...(ngDevMode ? [{ debugName: "otherLabelResolved" }] : /* istanbul ignore next */ []));
168
- /** The hole, as a fraction of the outer radius. Zero draws a solid pie and takes the centre
169
- * content away with the hole that held it. */
153
+ /** The hole, as a fraction of the outer radius. Zero draws a solid pie without centre content. */
170
154
  innerRadius = input(DEFAULT_INNER_RADIUS, { ...(ngDevMode ? { debugName: "innerRadius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
171
- /** Whether the chart draws its own bordered, padded box. `'auto'`, the default, draws it;
172
- * `'none'` leaves the chart bare, for one placed inside a card the page has already drawn.
173
- * Unset falls back to `DS_CONFIG.chart.frame`, then `'auto'` — whether charts live inside cards
174
- * is one decision per app rather than per plot. */
175
- frame = input(null, ...(ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []));
176
- /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. Zero, the
177
- * default, takes it away at once: a panel that outlives the pointer sits over the plot the
178
- * reader has moved on to.
179
- *
180
- * Raise it only for a panel a reader has to REACH — one carrying a link, a figure, or anything
181
- * selectable — which is WCAG 1.4.13's hoverable clause. The panel is portaled to the body, so
182
- * crossing the gap to it at an ordinary pointer speed needs about 140. Unset falls back to
183
- * `DS_CONFIG.chart.tooltipLingerMs`, then 0. */
184
- tooltipLingerMs = input(null, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
185
- /** Printed above the plot as the chart's visible title, and reused as the annex table's
186
- * caption. */
187
- caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
188
- /** Accessible name. Generated from the data when omitted. */
189
- summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
190
155
  /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,
191
- * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so
192
- * `'none'` belongs only where the same data is already in a table on the page.
193
- * Unset falls back to `DS_CONFIG.chart.dataTable`, then `'none'`. */
156
+ * `'visible'` opens it, `'none'` renders none. Unset falls back to `DS_CONFIG.chart.dataTable`,
157
+ * then `'none'`. */
194
158
  dataTable = input(null, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
195
- /** Prints each slice's share of the ring — in the legend, on the tooltip and in the data table.
196
- * On by default, unlike every other chart, because a ring IS parts of one whole: the share is a
197
- * real quantity here whatever the data, not a claim the consumer has to make. Off drops all
198
- * three, for a ring whose slices are already labelled in percent. */
159
+ /** Prints each slice's share in the legend, the tooltip and the data table. */
199
160
  partOfWhole = input(true, { ...(ngDevMode ? { debugName: "partOfWhole" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
200
- /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
201
- * when the data lands. */
202
- loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
203
- /** Shown in place of the plot when `data` is empty. Unset falls back to
204
- * `DS_INTL.chart.empty`. */
205
- emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
206
- /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,
207
- * because "the request failed" and "there is nothing to show" read the same to a reader and
208
- * mean opposite things. */
209
- error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
210
- /** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
211
- errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
212
- /** Formats every value the chart prints, the annex table and the generated description
213
- * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
214
- * `LOCALE_ID`. */
215
- valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
216
- /** Holds the clicked mark and its tooltip in place, with a pin disc on it, until a second click,
217
- * Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
218
- * `true`. `sliceClicked` fires either way - pinning is a state, not a handler. */
219
- pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
220
- // Declared after every input it reads: it takes each signal off `this` when it runs.
221
- defaults = resolveChartDefaults(this);
222
- intl = inject(DS_INTL);
223
- frameResolved = this.defaults.frame;
224
161
  dataTableResolved = this.defaults.dataTable;
225
- emptyTextResolved = this.defaults.emptyText;
226
- errorTextResolved = this.defaults.errorText;
227
- valueFormatResolved = this.defaults.valueFormat;
228
- /** Turns on the click affordance — the pointer cursor and any hover tint.
229
- * The click output fires whether or not this is set, so a consumer that
230
- * binds the output and forgets the flag still receives every click. */
231
- interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
232
- /** The slice that was clicked, or activated with Enter or Space. Fires whether or not
233
- * `interactive` is set. */
162
+ /** The slice that was clicked or activated with Enter or Space. */
234
163
  sliceClicked = output();
235
- /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
236
- * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
237
- * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
238
- * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
239
- * and pays for it with the rest of the chart. */
164
+ /** Dims every other mark while one is hovered or focused. */
240
165
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
241
- /** Accepted for parity with the other four charts and deliberately without effect here: a ring
242
- * arrives as ONE object, because arcs share their edges and fading them one at a time lets the
243
- * background through every seam. There is nothing to stagger. */
244
- staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
245
- /** Whether a hovered or focused slice opens a tooltip. `'axis'` is not offered — a ring
246
- * has no axis to group readings under. */
166
+ /** Whether a hovered or focused slice opens a tooltip. */
247
167
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
248
168
  tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
249
169
  tooltipLingerResolved = this.defaults.tooltipLingerMs;
@@ -261,8 +181,7 @@ class PieChartComponent {
261
181
  }
262
182
  legendHighlight = signal(-1, ...(ngDevMode ? [{ debugName: "legendHighlight" }] : /* istanbul ignore next */ []));
263
183
  legendDwell = chartDwell(() => this.defaults.hoverDelayMs());
264
- /** A legend item stands for its arc, so it opens the arc's tooltip over the ARC and dims the
265
- * other slices — the same state hovering the arc itself produces. */
184
+ /** A legend item opens the arc's tooltip and dims the other slices, as hovering the arc does. */
266
185
  onLegendEnter(index, event) {
267
186
  this.legendDwell.schedule(index, () => this.legendHighlight.set(index), event);
268
187
  this.activeMark.enter(index, event, this.arcAt(event, index));
@@ -286,8 +205,7 @@ class PieChartComponent {
286
205
  return markAt(event.currentTarget.closest('.chart'), index, '.slice');
287
206
  }
288
207
  isDimmed(index) {
289
- // Naming a slice in the legend fades the rest whether or not `dimOthers` is set, the way every
290
- // chart legend singles out its series; `dimOthers` governs what a pointer over the ring does.
208
+ // The legend dims the rest whether or not `dimOthers` is set; `dimOthers` governs the ring only.
291
209
  const legendHighlight = this.legendHighlight();
292
210
  if (legendHighlight !== -1) {
293
211
  return legendHighlight !== index;
@@ -344,8 +262,7 @@ class PieChartComponent {
344
262
  const midRadius = (RING_OUTER_RADIUS + innerRadius) / 2;
345
263
  return data.map((slice, index) => ({
346
264
  slice,
347
- // Halfway along the arc and halfway through the ring: the one point that is inside a slice
348
- // whatever its sweep, which the bounding box of a curved wedge is not.
265
+ // Halfway along the arc and through the ring: inside the slice whatever its sweep.
349
266
  center: ringCoords(RING_CENTER, RING_CENTER, midRadius, (arcs[index].startAngle + arcs[index].endAngle) / 2),
350
267
  path: arcPath(RING_CENTER, RING_CENTER, RING_OUTER_RADIUS, innerRadius, arcs[index].startAngle, arcs[index].endAngle),
351
268
  color: CHART_SERIES_COLORS[paletteIndex(slice.slot, index, CHART_SERIES_COLORS.length)],
@@ -353,9 +270,7 @@ class PieChartComponent {
353
270
  formattedPercent: formatWholePercent(percents[index], this.defaults.locale),
354
271
  }));
355
272
  }, ...(ngDevMode ? [{ debugName: "slices" }] : /* istanbul ignore next */ []));
356
- /** The held slice's centre as a share of the ring box. The badge is HTML over the ring rather
357
- * than a `foreignObject` inside it: inside, the viewBox scale grows the badge with the ring and
358
- * the grid that centres the glyph does not lay out. */
273
+ /** The held slice's centre as a share of the ring box. The badge is HTML over the ring: inside a `foreignObject` the viewBox scale grows it and the centring grid does not lay out. */
359
274
  pinnedEntry = computed(() => {
360
275
  const entry = this.activeMark.pinned()
361
276
  ? this.slices()[this.activeMark.index()]
@@ -382,24 +297,20 @@ class PieChartComponent {
382
297
  : `${entry.slice.label}, ${entry.formattedValue}`;
383
298
  }
384
299
  onSliceKey(slice, event) {
385
- // Only the legend item's own key opens it: a key pressed on a control inside belongs to that
386
- // control.
300
+ // A key pressed on a control inside the item belongs to that control.
387
301
  if (!this.interactive() || event.target !== event.currentTarget) {
388
302
  return;
389
303
  }
390
304
  event.preventDefault();
391
305
  this.sliceClicked.emit(slice);
392
306
  }
393
- // Both focusable would double the tab order; the legend items already carry the route.
394
- // Without this the ring is unreachable at `legend="none"`.
307
+ // The legend items carry the tab route; the ring needs it only at `legend="none"`.
395
308
  ringCarriesTheRoute = computed(() => this.interactive() && this.legend() === 'none', ...(ngDevMode ? [{ debugName: "ringCarriesTheRoute" }] : /* istanbul ignore next */ []));
396
309
  isEmpty = computed(() => this.data().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
397
- /** Placeholder legend rows while loading. Follows the real slice count so the
398
- * chart does not resize when the data lands; falls back to three when `data`
399
- * is still empty. */
310
+ /** Placeholder legend rows while loading. */
400
311
  skeletonRows = computed(() => Array.from({ length: Math.max(this.data().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
401
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
402
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: PieChartComponent, isStandalone: true, selector: "ds-pie-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, centerValue: { classPropertyName: "centerValue", publicName: "centerValue", isSignal: true, isRequired: false, transformFunction: null }, centerLabel: { classPropertyName: "centerLabel", publicName: "centerLabel", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, maxSlices: { classPropertyName: "maxSlices", publicName: "maxSlices", isSignal: true, isRequired: false, transformFunction: null }, otherLabel: { classPropertyName: "otherLabel", publicName: "otherLabel", isSignal: true, isRequired: false, transformFunction: null }, innerRadius: { classPropertyName: "innerRadius", publicName: "innerRadius", isSignal: true, isRequired: false, transformFunction: null }, frame: { classPropertyName: "frame", publicName: "frame", isSignal: true, isRequired: false, transformFunction: null }, tooltipLingerMs: { classPropertyName: "tooltipLingerMs", publicName: "tooltipLingerMs", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, pinOnClick: { classPropertyName: "pinOnClick", publicName: "pinOnClick", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, dimOthers: { classPropertyName: "dimOthers", publicName: "dimOthers", isSignal: true, isRequired: false, transformFunction: null }, staggerMs: { classPropertyName: "staggerMs", publicName: "staggerMs", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sliceClicked: "sliceClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], ngImport: i0, template: "<figure\n class=\"pie-chart\"\n [style.--_pie-chart-hole-fraction]=\"hole()\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p\n class=\"empty-text is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n </div>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\"\n [class.legend-bottom]=\"legend() === 'bottom'\">\n <ds-skeleton circle\n width=\"var(--_pie-chart-size)\"\n height=\"var(--_pie-chart-size)\"\n [shimmer]=\"loading()\" />\n\n @if (legend() !== 'none') {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_pie-chart-legend-row-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p class=\"empty-text\">\n {{ emptyTextResolved() }}\n </p>\n </div>\n } @else {\n <div\n class=\"chart\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [class.legend-bottom]=\"legend() === 'bottom'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <div\n class=\"ring\"\n [class.ring-outline]=\"total() === 0\">\n <svg\n class=\"ring-svg\"\n [class.dims-others]=\"dimOthers()\"\n [attr.aria-hidden]=\"ringCarriesTheRoute() ? null : true\"\n [attr.viewBox]=\"viewBox\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <path\n class=\"slice\"\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 [class.focusable]=\"ringCarriesTheRoute()\"\n [attr.d]=\"entry.path\"\n [style.fill]=\"entry.color\"\n [attr.role]=\"ringCarriesTheRoute() ? 'button' : null\"\n [attr.tabindex]=\"\n ringCarriesTheRoute()\n ? index === roving.tabStop()\n ? 0\n : -1\n : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"\n ringCarriesTheRoute() ? entryLabel(entry) : null\n \"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index, '.ring-svg')\"\n (click)=\"onMarkClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n </path>\n }\n </svg>\n\n @if (hole() > 0) {\n <div class=\"center\">\n <span class=\"center-value\">\n {{ resolvedCenterValue() }}\n </span>\n\n @if (centerLabel()) {\n <span class=\"center-label\">\n {{ centerLabel() }}\n </span>\n }\n </div>\n }\n\n @if (pinnedEntry(); as entry) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"entry.center.x\"\n [style.top.%]=\"entry.center.y\">\n <ds-icon\n name=\"pin\"\n [size]=\"14\" />\n </span>\n }\n </div>\n\n @if (legend() !== 'none') {\n <ul class=\"legend\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <li\n class=\"legend-item\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\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 (pointerenter)=\"onLegendEnter(index, $event)\"\n (pointerleave)=\"onLegendLeave()\"\n (focus)=\"onLegendFocus(index, $event)\"\n (blur)=\"onLegendLeave()\"\n (keydown)=\"onMarkNavigation($event, index, '.legend')\"\n (click)=\"onLegendClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n <span\n class=\"swatch\"\n [style.background]=\"entry.color\">\n </span>\n\n <span class=\"legend-label\">\n {{ entry.slice.label }}\n </span>\n\n <span class=\"legend-value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (partOfWhole()) {\n <span class=\"legend-percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n </li>\n }\n </ul>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@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-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.ring-svg{transform-box:fill-box;transform-origin:center}.ring-svg{animation:ds-chart-ring-sweep var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.ring-svg{animation-delay:0ms}}.swatch{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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.swatch{animation-delay:0ms}}.swatch.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.center{animation:ds-chart-mark-rise 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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.center{animation-delay:0ms}}: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);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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.slice:focus{outline: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)}.pie-chart{--_pie-chart-size: var(--ds-pie-chart-size, 180px);--_pie-chart-gap: var(--ds-pie-chart-gap, var(--space-5));--_pie-chart-legend-row-gap: var(--ds-pie-chart-legend-row-gap, var(--space-2));--_pie-chart-legend-row-height: var(--ds-pie-chart-legend-row-height, 16px);--_pie-chart-swatch-size: var(--ds-pie-chart-swatch-size, 10px);--_pie-chart-legend-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_pie-chart-legend-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--_pie-chart-focus-color: var(--ds-pie-chart-focus-color, var(--focus-ring-color));--_pie-chart-focus-width: var(--ds-pie-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-width: var(--_pie-chart-focus-width);--_pie-chart-outline-width: var(--ds-pie-chart-outline-width, calc(var(--border-width-strong) + var(--border-width-default)));margin:0}.empty{display:flex;flex-direction:column;gap:var(--space-3);align-items:center}.empty-ring,.ring-outline{position:relative;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size);border:var(--_pie-chart-outline-width) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-ring:before,.ring-outline:before{content:\"\";position:absolute;inset:calc((100% - var(--_pie-chart-hole-fraction) * 100%) / 2);border:calc(var(--_pie-chart-hole-fraction) * var(--_pie-chart-outline-width)) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-text{margin:0;color:var(--text-secondary)}.chart,.skeleton{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-gap);align-items:center;justify-content:center}.chart.legend-bottom,.skeleton.legend-bottom{flex-direction:column}.ring{position:relative;flex:none;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size)}.ring-svg{display:block;inline-size:100%;block-size:100%}@media not (forced-colors:active){.slice.focusable:focus-visible{outline:none}}.slice.focusable:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.center{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;inline-size:max(56%,var(--_pie-chart-hole-fraction) * 70%);margin-inline:auto;overflow-wrap:anywhere;text-align:center;pointer-events:none}.center-value,.center-label{text-shadow:0 0 var(--space-1) var(--ds-chart-frame-bg-color),0 0 var(--space-0-5) var(--ds-chart-frame-bg-color)}.center-value{color:var(--text-primary);font-size:var(--font-size-h4);font-weight:700}.center-label{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend,.skeleton-legend{display:grid;row-gap:var(--_pie-chart-legend-row-gap);min-inline-size:0}.legend{margin:0;padding:0;list-style:none}.skeleton-legend{flex:1 1 auto}.legend-item{display:grid;grid-template-columns:auto 1fr auto auto;column-gap:var(--space-2);align-items:baseline}.legend-item{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.legend-item:hover,.legend-item:focus-visible,.legend-item:has(:focus-visible){background-color:var(--_pie-chart-legend-hover-bg-color)}.legend-item:hover .legend-label,.legend-item:focus-visible .legend-label,.legend-item:has(:focus-visible) .legend-label{color:var(--_pie-chart-legend-hover-text-color)}.legend-item.interactive,.legend-item.pins{cursor:pointer}.swatch{align-self:center;inline-size:var(--_pie-chart-swatch-size);block-size:var(--_pie-chart-swatch-size);border-radius:var(--radius-pill)}.legend-label{color:var(--text-secondary)}.legend-value{font-weight:700}.legend-percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend-bottom .legend{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-legend-row-gap) var(--space-4)}.legend-bottom .legend-item{display:flex;column-gap:var(--space-2)}.ring-svg .slice{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.ring-svg .slice.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.ring-svg.dims-others:not(:has(.slice.is-pinned)):has(.slice.is-active) .slice:not(.is-active),.ring-svg.dims-others:has(.slice.is-pinned) .slice:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.ring-svg .slice.interactive,.ring-svg .slice.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.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}.ring>.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
312
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PieChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
313
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: PieChartComponent, isStandalone: true, selector: "ds-pie-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, centerValue: { classPropertyName: "centerValue", publicName: "centerValue", isSignal: true, isRequired: false, transformFunction: null }, centerLabel: { classPropertyName: "centerLabel", publicName: "centerLabel", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, maxSlices: { classPropertyName: "maxSlices", publicName: "maxSlices", isSignal: true, isRequired: false, transformFunction: null }, otherLabel: { classPropertyName: "otherLabel", publicName: "otherLabel", isSignal: true, isRequired: false, transformFunction: null }, innerRadius: { classPropertyName: "innerRadius", publicName: "innerRadius", isSignal: true, isRequired: false, transformFunction: null }, dataTable: { classPropertyName: "dataTable", publicName: "dataTable", isSignal: true, isRequired: false, transformFunction: null }, partOfWhole: { classPropertyName: "partOfWhole", publicName: "partOfWhole", 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 } }, outputs: { sliceClicked: "sliceClicked" }, host: { properties: { "class.framed": "frameResolved() === 'auto'" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["dsChartTooltip"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<figure\n class=\"pie-chart\"\n [style.--_pie-chart-hole-fraction]=\"hole()\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p\n class=\"empty-text is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n </div>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\"\n [class.legend-bottom]=\"legend() === 'bottom'\">\n <ds-skeleton\n circle\n width=\"var(--_pie-chart-size)\"\n height=\"var(--_pie-chart-size)\"\n [shimmer]=\"loading()\" />\n\n @if (legend() !== 'none') {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton\n height=\"var(--_pie-chart-legend-row-height)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p class=\"empty-text\">\n {{ emptyTextResolved() }}\n </p>\n </div>\n } @else {\n <div\n class=\"chart\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [class.legend-bottom]=\"legend() === 'bottom'\"\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 <div\n class=\"ring\"\n [class.ring-outline]=\"total() === 0\">\n <svg\n class=\"ring-svg\"\n [class.dims-others]=\"dimOthers()\"\n [attr.aria-hidden]=\"ringCarriesTheRoute() ? null : true\"\n [attr.viewBox]=\"viewBox\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <path\n class=\"slice\"\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 [class.focusable]=\"ringCarriesTheRoute()\"\n [attr.d]=\"entry.path\"\n [style.fill]=\"entry.color\"\n [attr.role]=\"ringCarriesTheRoute() ? 'button' : null\"\n [attr.tabindex]=\"\n ringCarriesTheRoute()\n ? index === roving.tabStop()\n ? 0\n : -1\n : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"\n ringCarriesTheRoute() ? entryLabel(entry) : null\n \"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index, '.ring-svg')\"\n (click)=\"onMarkClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n </path>\n }\n </svg>\n\n @if (hole() > 0) {\n <div class=\"center\">\n <span class=\"center-value\">\n {{ resolvedCenterValue() }}\n </span>\n\n @if (centerLabel()) {\n <span class=\"center-label\">\n {{ centerLabel() }}\n </span>\n }\n </div>\n }\n\n @if (pinnedEntry(); as entry) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"entry.center.x\"\n [style.top.%]=\"entry.center.y\">\n <ds-icon\n name=\"pin\"\n [size]=\"14\" />\n </span>\n }\n </div>\n\n @if (legend() !== 'none') {\n <ul class=\"legend\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <li\n class=\"legend-item\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\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 (pointerenter)=\"onLegendEnter(index, $event)\"\n (pointerleave)=\"onLegendLeave()\"\n (focus)=\"onLegendFocus(index, $event)\"\n (blur)=\"onLegendLeave()\"\n (keydown)=\"onMarkNavigation($event, index, '.legend')\"\n (click)=\"onLegendClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n <span\n class=\"swatch\"\n [style.background]=\"entry.color\">\n </span>\n\n <span class=\"legend-label\">\n {{ entry.slice.label }}\n </span>\n\n <span class=\"legend-value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (partOfWhole()) {\n <span class=\"legend-percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n </li>\n }\n </ul>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: [":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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@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-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.ring-svg{transform-box:fill-box;transform-origin:center}.ring-svg{animation:ds-chart-ring-sweep var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.ring-svg{animation-delay:0ms}}.swatch{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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.swatch{animation-delay:0ms}}.swatch.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.center{animation:ds-chart-mark-rise 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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.center{animation-delay:0ms}}: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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.slice:focus{outline: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)}.pie-chart{--_pie-chart-size: var(--ds-pie-chart-size, 180px);--_pie-chart-gap: var(--ds-pie-chart-gap, var(--space-5));--_pie-chart-legend-row-gap: var(--ds-pie-chart-legend-row-gap, var(--space-2));--_pie-chart-legend-row-height: var(--ds-pie-chart-legend-row-height, 16px);--_pie-chart-swatch-size: var(--ds-pie-chart-swatch-size, 10px);--_pie-chart-legend-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_pie-chart-legend-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--_pie-chart-focus-color: var(--ds-pie-chart-focus-color, var(--focus-ring-color));--_pie-chart-focus-width: var(--ds-pie-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-width: var(--_pie-chart-focus-width);--_pie-chart-outline-width: var(--ds-pie-chart-outline-width, calc(var(--border-width-strong) + var(--border-width-default)));margin:0}.empty{display:flex;flex-direction:column;gap:var(--space-3);align-items:center}.empty-ring,.ring-outline{position:relative;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size);border:var(--_pie-chart-outline-width) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-ring:before,.ring-outline:before{content:\"\";position:absolute;inset:calc((100% - var(--_pie-chart-hole-fraction) * 100%) / 2);border:calc(var(--_pie-chart-hole-fraction) * var(--_pie-chart-outline-width)) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-text{margin:0;color:var(--text-secondary)}.chart,.skeleton{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-gap);align-items:center;justify-content:center}.chart.legend-bottom,.skeleton.legend-bottom{flex-direction:column}.ring{position:relative;flex:none;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size)}.ring-svg{display:block;inline-size:100%;block-size:100%}@media not (forced-colors:active){.slice.focusable:focus-visible{outline:none}}.slice.focusable:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}.center{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;inline-size:max(56%,var(--_pie-chart-hole-fraction) * 70%);margin-inline:auto;overflow-wrap:anywhere;text-align:center;pointer-events:none}.center-value,.center-label{text-shadow:0 0 var(--space-1) var(--ds-chart-bg-color),0 0 var(--space-0-5) var(--ds-chart-bg-color)}.center-value{color:var(--text-primary);font-size:var(--font-size-h4);font-weight:700}.center-label{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend,.skeleton-legend{display:grid;row-gap:var(--_pie-chart-legend-row-gap);min-inline-size:0}.legend{margin:0;padding:0;list-style:none}.skeleton-legend{flex:1 1 auto}.legend-item{display:grid;grid-template-columns:auto 1fr auto auto;column-gap:var(--space-2);align-items:baseline}.legend-item{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.legend-item:hover,.legend-item:focus-visible,.legend-item:has(:focus-visible){background-color:var(--_pie-chart-legend-hover-bg-color)}.legend-item:hover .legend-label,.legend-item:focus-visible .legend-label,.legend-item:has(:focus-visible) .legend-label{color:var(--_pie-chart-legend-hover-text-color)}.legend-item.interactive,.legend-item.pins{cursor:pointer}.swatch{align-self:center;inline-size:var(--_pie-chart-swatch-size);block-size:var(--_pie-chart-swatch-size);border-radius:var(--radius-pill)}.legend-label{color:var(--text-secondary)}.legend-value{font-weight:700}.legend-percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend-bottom .legend{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-legend-row-gap) var(--space-4)}.legend-bottom .legend-item{display:flex;column-gap:var(--space-2)}.ring-svg .slice{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.ring-svg .slice.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.ring-svg.dims-others:not(:has(.slice.is-pinned)):has(.slice.is-active) .slice:not(.is-active),.ring-svg.dims-others:has(.slice.is-pinned) .slice:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.ring-svg .slice.interactive,.ring-svg .slice.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.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}.ring>.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: SkeletonComponent, selector: "ds-skeleton", inputs: ["width", "height", "circle", "inline", "shimmer"] }, { kind: "directive", type: ChartTooltipDirective, selector: "[dsChartTooltip]", inputs: ["dsChartTooltip", "dsChartTooltipOrigin", "dsChartTooltipTemplate", "dsChartTooltipExtraGap", "dsChartTooltipPinned", "dsChartTooltipSwatches"] }, { kind: "component", type: IconComponent, selector: "ds-icon", inputs: ["name", "size", "stroke", "ariaLabel"] }, { kind: "component", type: ChartDataTableComponent, selector: "ds-chart-data-table", inputs: ["columns", "rows", "caption", "open", "rowHeader"], outputs: ["toggled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
403
314
  }
404
315
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PieChartComponent, decorators: [{
405
316
  type: Component,
@@ -408,8 +319,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
408
319
  ChartTooltipDirective,
409
320
  IconComponent,
410
321
  ChartDataTableComponent,
411
- ], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"pie-chart\"\n [style.--_pie-chart-hole-fraction]=\"hole()\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p\n class=\"empty-text is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n </div>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\"\n [class.legend-bottom]=\"legend() === 'bottom'\">\n <ds-skeleton circle\n width=\"var(--_pie-chart-size)\"\n height=\"var(--_pie-chart-size)\"\n [shimmer]=\"loading()\" />\n\n @if (legend() !== 'none') {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton height=\"var(--_pie-chart-legend-row-height)\" [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p class=\"empty-text\">\n {{ emptyTextResolved() }}\n </p>\n </div>\n } @else {\n <div\n class=\"chart\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [class.legend-bottom]=\"legend() === 'bottom'\"\n [attr.aria-label]=\"accessibleName()\"\n [dsChartTooltip]=\"tooltipContext()\"\n [dsChartTooltipPinned]=\"activeMark.pinned()\"\n [dsChartTooltipOrigin]=\"activeMark.origin()\"\n [dsChartTooltipTemplate]=\"tooltipTemplate() ?? null\">\n <div\n class=\"ring\"\n [class.ring-outline]=\"total() === 0\">\n <svg\n class=\"ring-svg\"\n [class.dims-others]=\"dimOthers()\"\n [attr.aria-hidden]=\"ringCarriesTheRoute() ? null : true\"\n [attr.viewBox]=\"viewBox\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <path\n class=\"slice\"\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 [class.focusable]=\"ringCarriesTheRoute()\"\n [attr.d]=\"entry.path\"\n [style.fill]=\"entry.color\"\n [attr.role]=\"ringCarriesTheRoute() ? 'button' : null\"\n [attr.tabindex]=\"\n ringCarriesTheRoute()\n ? index === roving.tabStop()\n ? 0\n : -1\n : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"\n ringCarriesTheRoute() ? entryLabel(entry) : null\n \"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index, '.ring-svg')\"\n (click)=\"onMarkClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n </path>\n }\n </svg>\n\n @if (hole() > 0) {\n <div class=\"center\">\n <span class=\"center-value\">\n {{ resolvedCenterValue() }}\n </span>\n\n @if (centerLabel()) {\n <span class=\"center-label\">\n {{ centerLabel() }}\n </span>\n }\n </div>\n }\n\n @if (pinnedEntry(); as entry) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"entry.center.x\"\n [style.top.%]=\"entry.center.y\">\n <ds-icon\n name=\"pin\"\n [size]=\"14\" />\n </span>\n }\n </div>\n\n @if (legend() !== 'none') {\n <ul class=\"legend\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <li\n class=\"legend-item\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\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 (pointerenter)=\"onLegendEnter(index, $event)\"\n (pointerleave)=\"onLegendLeave()\"\n (focus)=\"onLegendFocus(index, $event)\"\n (blur)=\"onLegendLeave()\"\n (keydown)=\"onMarkNavigation($event, index, '.legend')\"\n (click)=\"onLegendClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n <span\n class=\"swatch\"\n [style.background]=\"entry.color\">\n </span>\n\n <span class=\"legend-label\">\n {{ entry.slice.label }}\n </span>\n\n <span class=\"legend-value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (partOfWhole()) {\n <span class=\"legend-percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n </li>\n }\n </ul>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: ["@charset \"UTF-8\";: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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@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-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.ring-svg{transform-box:fill-box;transform-origin:center}.ring-svg{animation:ds-chart-ring-sweep var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.ring-svg{animation-delay:0ms}}.swatch{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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.swatch{animation-delay:0ms}}.swatch.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.center{animation:ds-chart-mark-rise 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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.center{animation-delay:0ms}}: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);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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.slice:focus{outline: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)}.pie-chart{--_pie-chart-size: var(--ds-pie-chart-size, 180px);--_pie-chart-gap: var(--ds-pie-chart-gap, var(--space-5));--_pie-chart-legend-row-gap: var(--ds-pie-chart-legend-row-gap, var(--space-2));--_pie-chart-legend-row-height: var(--ds-pie-chart-legend-row-height, 16px);--_pie-chart-swatch-size: var(--ds-pie-chart-swatch-size, 10px);--_pie-chart-legend-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_pie-chart-legend-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--_pie-chart-focus-color: var(--ds-pie-chart-focus-color, var(--focus-ring-color));--_pie-chart-focus-width: var(--ds-pie-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-width: var(--_pie-chart-focus-width);--_pie-chart-outline-width: var(--ds-pie-chart-outline-width, calc(var(--border-width-strong) + var(--border-width-default)));margin:0}.empty{display:flex;flex-direction:column;gap:var(--space-3);align-items:center}.empty-ring,.ring-outline{position:relative;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size);border:var(--_pie-chart-outline-width) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-ring:before,.ring-outline:before{content:\"\";position:absolute;inset:calc((100% - var(--_pie-chart-hole-fraction) * 100%) / 2);border:calc(var(--_pie-chart-hole-fraction) * var(--_pie-chart-outline-width)) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-text{margin:0;color:var(--text-secondary)}.chart,.skeleton{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-gap);align-items:center;justify-content:center}.chart.legend-bottom,.skeleton.legend-bottom{flex-direction:column}.ring{position:relative;flex:none;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size)}.ring-svg{display:block;inline-size:100%;block-size:100%}@media not (forced-colors:active){.slice.focusable:focus-visible{outline:none}}.slice.focusable:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color))}.center{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;inline-size:max(56%,var(--_pie-chart-hole-fraction) * 70%);margin-inline:auto;overflow-wrap:anywhere;text-align:center;pointer-events:none}.center-value,.center-label{text-shadow:0 0 var(--space-1) var(--ds-chart-frame-bg-color),0 0 var(--space-0-5) var(--ds-chart-frame-bg-color)}.center-value{color:var(--text-primary);font-size:var(--font-size-h4);font-weight:700}.center-label{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend,.skeleton-legend{display:grid;row-gap:var(--_pie-chart-legend-row-gap);min-inline-size:0}.legend{margin:0;padding:0;list-style:none}.skeleton-legend{flex:1 1 auto}.legend-item{display:grid;grid-template-columns:auto 1fr auto auto;column-gap:var(--space-2);align-items:baseline}.legend-item{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.legend-item:hover,.legend-item:focus-visible,.legend-item:has(:focus-visible){background-color:var(--_pie-chart-legend-hover-bg-color)}.legend-item:hover .legend-label,.legend-item:focus-visible .legend-label,.legend-item:has(:focus-visible) .legend-label{color:var(--_pie-chart-legend-hover-text-color)}.legend-item.interactive,.legend-item.pins{cursor:pointer}.swatch{align-self:center;inline-size:var(--_pie-chart-swatch-size);block-size:var(--_pie-chart-swatch-size);border-radius:var(--radius-pill)}.legend-label{color:var(--text-secondary)}.legend-value{font-weight:700}.legend-percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend-bottom .legend{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-legend-row-gap) var(--space-4)}.legend-bottom .legend-item{display:flex;column-gap:var(--space-2)}.ring-svg .slice{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.ring-svg .slice.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.ring-svg.dims-others:not(:has(.slice.is-pinned)):has(.slice.is-active) .slice:not(.is-active),.ring-svg.dims-others:has(.slice.is-pinned) .slice:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.ring-svg .slice.interactive,.ring-svg .slice.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}:host:has(.pin-reset) figure:not(:has(>figcaption)){padding-block-start:calc(var(--space-6) + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.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}.ring>.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"] }]
412
- }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], centerValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerValue", required: false }] }], centerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerLabel", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], maxSlices: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSlices", required: false }] }], otherLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherLabel", required: false }] }], innerRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "innerRadius", required: false }] }], frame: [{ type: i0.Input, args: [{ isSignal: true, alias: "frame", required: false }] }], tooltipLingerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipLingerMs", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], valueFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormat", required: false }] }], pinOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "pinOnClick", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], sliceClicked: [{ type: i0.Output, args: ["sliceClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], staggerMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "staggerMs", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }] } });
322
+ ], host: { '[class.framed]': "frameResolved() === 'auto'" }, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<figure\n class=\"pie-chart\"\n [style.--_pie-chart-hole-fraction]=\"hole()\">\n @if (activeMark.pinned()) {\n <button\n class=\"pin-reset\"\n type=\"button\"\n (click)=\"activeMark.release()\">\n {{ intl().chart.unpin }}\n </button>\n }\n\n @if (caption()) {\n <figcaption>\n {{ caption() }}\n </figcaption>\n }\n\n @if (error()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p\n class=\"empty-text is-error\"\n role=\"status\">\n {{ errorTextResolved() }}\n </p>\n </div>\n } @else if (loading() || !renderReady()) {\n <div\n class=\"skeleton\"\n aria-hidden=\"true\"\n [class.legend-bottom]=\"legend() === 'bottom'\">\n <ds-skeleton\n circle\n width=\"var(--_pie-chart-size)\"\n height=\"var(--_pie-chart-size)\"\n [shimmer]=\"loading()\" />\n\n @if (legend() !== 'none') {\n <div class=\"skeleton-legend\">\n @for (placeholder of skeletonRows(); track $index) {\n <ds-skeleton\n height=\"var(--_pie-chart-legend-row-height)\"\n [shimmer]=\"loading()\" />\n }\n </div>\n }\n </div>\n } @else if (isEmpty()) {\n <div class=\"empty\">\n <div\n class=\"empty-ring\"\n aria-hidden=\"true\">\n </div>\n\n <p class=\"empty-text\">\n {{ emptyTextResolved() }}\n </p>\n </div>\n } @else {\n <div\n class=\"chart\"\n [attr.role]=\"interactive() ? 'group' : 'img'\"\n [class.legend-bottom]=\"legend() === 'bottom'\"\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 <div\n class=\"ring\"\n [class.ring-outline]=\"total() === 0\">\n <svg\n class=\"ring-svg\"\n [class.dims-others]=\"dimOthers()\"\n [attr.aria-hidden]=\"ringCarriesTheRoute() ? null : true\"\n [attr.viewBox]=\"viewBox\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <path\n class=\"slice\"\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 [class.focusable]=\"ringCarriesTheRoute()\"\n [attr.d]=\"entry.path\"\n [style.fill]=\"entry.color\"\n [attr.role]=\"ringCarriesTheRoute() ? 'button' : null\"\n [attr.tabindex]=\"\n ringCarriesTheRoute()\n ? index === roving.tabStop()\n ? 0\n : -1\n : null\n \"\n [attr.data-mark-index]=\"index\"\n [attr.aria-label]=\"\n ringCarriesTheRoute() ? entryLabel(entry) : null\n \"\n (pointerenter)=\"activeMark.enter(index, $event)\"\n (pointerleave)=\"activeMark.leave()\"\n (focus)=\"onMarkFocus(index, $event)\"\n (blur)=\"activeMark.leave()\"\n (keydown)=\"onMarkNavigation($event, index, '.ring-svg')\"\n (click)=\"onMarkClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n </path>\n }\n </svg>\n\n @if (hole() > 0) {\n <div class=\"center\">\n <span class=\"center-value\">\n {{ resolvedCenterValue() }}\n </span>\n\n @if (centerLabel()) {\n <span class=\"center-label\">\n {{ centerLabel() }}\n </span>\n }\n </div>\n }\n\n @if (pinnedEntry(); as entry) {\n <span\n class=\"pin-marker\"\n [style.left.%]=\"entry.center.x\"\n [style.top.%]=\"entry.center.y\">\n <ds-icon\n name=\"pin\"\n [size]=\"14\" />\n </span>\n }\n </div>\n\n @if (legend() !== 'none') {\n <ul class=\"legend\">\n @for (entry of slices(); track entry.slice.id; let index = $index) {\n <li\n class=\"legend-item\"\n [class.interactive]=\"interactive()\"\n [class.pins]=\"defaults.pinOnClick()\"\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 (pointerenter)=\"onLegendEnter(index, $event)\"\n (pointerleave)=\"onLegendLeave()\"\n (focus)=\"onLegendFocus(index, $event)\"\n (blur)=\"onLegendLeave()\"\n (keydown)=\"onMarkNavigation($event, index, '.legend')\"\n (click)=\"onLegendClick(entry.slice, index, $event)\"\n (keydown.enter)=\"onSliceKey(entry.slice, $event)\"\n (keydown.space)=\"onSliceKey(entry.slice, $event)\">\n <span\n class=\"swatch\"\n [style.background]=\"entry.color\">\n </span>\n\n <span class=\"legend-label\">\n {{ entry.slice.label }}\n </span>\n\n <span class=\"legend-value\">\n {{ entry.formattedValue }}\n </span>\n\n @if (partOfWhole()) {\n <span class=\"legend-percent\">\n {{ entry.formattedPercent }}\n </span>\n }\n </li>\n }\n </ul>\n }\n </div>\n\n @if (dataTableResolved() !== 'none') {\n <ds-chart-data-table\n [columns]=\"dataTableColumns()\"\n [rows]=\"dataTableRows()\"\n [caption]=\"caption()\"\n [open]=\"dataTableResolved() === 'visible'\" />\n }\n }\n</figure>\n", styles: [":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)}@keyframes ds-focus-ring-in{0%{outline-color:transparent}}:root[data-focus=ring]{--ds-field-focus-shadow: var(--focus-ring);--ds-field-focus-shadow-error: var(--focus-ring-error)}:root[data-focus=edge]{--focus-ring-offset: 0px;--ds-field-focus-shadow: 0 0 0 var(--border-width-default) var(--primary);--ds-field-focus-shadow-error: 0 0 0 var(--border-width-default) var(--error)}[data-focus=inset]{--focus-ring-offset: calc(-1 * var(--focus-ring-width));--ds-field-focus-shadow: var(--focus-ring-inset);--ds-field-focus-shadow-error: var(--focus-ring-inset-error)}@media(forced-colors:active){:where(:focus-visible){outline:var(--focus-ring-width) solid CanvasText;outline-offset:var(--focus-ring-offset)}}@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-ring-sweep{0%{opacity:0;transform:rotate(-30deg) scale(.96)}}@keyframes ds-chart-line-draw{0%{stroke-dashoffset:1}}@keyframes ds-chart-mark-exit{to{opacity:0}}.ring-svg{transform-box:fill-box;transform-origin:center}.ring-svg{animation:ds-chart-ring-sweep var(--ds-motion-chart-mark-sweep-duration) var(--ds-motion-chart-mark-grow-easing) calc(var(--ds-motion-chart-mark-exit-duration) + 0ms + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.ring-svg{animation-delay:0ms}}.swatch{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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.swatch{animation-delay:0ms}}.swatch.mark-leave{animation:ds-chart-mark-exit var(--ds-motion-chart-mark-exit-duration) var(--ds-motion-chart-mark-exit-easing) both}.center{animation:ds-chart-mark-rise 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-sweep-duration) + var(--_chart-mark-stagger, 0ms)) backwards}@media(prefers-reduced-motion:reduce){.center{animation-delay:0ms}}: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}figcaption{margin-block-end:var(--space-3);color:var(--text-primary);font-weight:var(--font-weight-semibold);-webkit-user-select:text;user-select:text}.empty.is-error,.empty-text.is-error{color:var(--error)}@media not (forced-colors:active){.slice:focus{outline: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)}.pie-chart{--_pie-chart-size: var(--ds-pie-chart-size, 180px);--_pie-chart-gap: var(--ds-pie-chart-gap, var(--space-5));--_pie-chart-legend-row-gap: var(--ds-pie-chart-legend-row-gap, var(--space-2));--_pie-chart-legend-row-height: var(--ds-pie-chart-legend-row-height, 16px);--_pie-chart-swatch-size: var(--ds-pie-chart-swatch-size, 10px);--_pie-chart-legend-hover-bg-color: var(--ds-chart-legend-hover-bg-color, var(--surface-secondary));--_pie-chart-legend-hover-text-color: var(--ds-chart-legend-hover-text-color, var(--text-primary));--_pie-chart-focus-color: var(--ds-pie-chart-focus-color, var(--focus-ring-color));--_pie-chart-focus-width: var(--ds-pie-chart-focus-width, var(--focus-ring-width));--ds-chart-focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-color: var(--_pie-chart-focus-color);--focus-ring-width: var(--_pie-chart-focus-width);--_pie-chart-outline-width: var(--ds-pie-chart-outline-width, calc(var(--border-width-strong) + var(--border-width-default)));margin:0}.empty{display:flex;flex-direction:column;gap:var(--space-3);align-items:center}.empty-ring,.ring-outline{position:relative;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size);border:var(--_pie-chart-outline-width) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-ring:before,.ring-outline:before{content:\"\";position:absolute;inset:calc((100% - var(--_pie-chart-hole-fraction) * 100%) / 2);border:calc(var(--_pie-chart-hole-fraction) * var(--_pie-chart-outline-width)) solid var(--border-divider);border-radius:var(--radius-pill)}.empty-text{margin:0;color:var(--text-secondary)}.chart,.skeleton{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-gap);align-items:center;justify-content:center}.chart.legend-bottom,.skeleton.legend-bottom{flex-direction:column}.ring{position:relative;flex:none;inline-size:var(--_pie-chart-size);block-size:var(--_pie-chart-size)}.ring-svg{display:block;inline-size:100%;block-size:100%}@media not (forced-colors:active){.slice.focusable:focus-visible{outline:none}}.slice.focusable:focus-visible{stroke:var(--ds-chart-focus-ring-color);stroke-width:var(--focus-ring-width);paint-order:stroke;filter:drop-shadow(0 0 var(--focus-ring-width) var(--ds-chart-focus-halo-color, var(--ds-chart-bg-color)))}.center{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;inline-size:max(56%,var(--_pie-chart-hole-fraction) * 70%);margin-inline:auto;overflow-wrap:anywhere;text-align:center;pointer-events:none}.center-value,.center-label{text-shadow:0 0 var(--space-1) var(--ds-chart-bg-color),0 0 var(--space-0-5) var(--ds-chart-bg-color)}.center-value{color:var(--text-primary);font-size:var(--font-size-h4);font-weight:700}.center-label{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend,.skeleton-legend{display:grid;row-gap:var(--_pie-chart-legend-row-gap);min-inline-size:0}.legend{margin:0;padding:0;list-style:none}.skeleton-legend{flex:1 1 auto}.legend-item{display:grid;grid-template-columns:auto 1fr auto auto;column-gap:var(--space-2);align-items:baseline}.legend-item{margin:calc(-1 * var(--space-0-5)) calc(-1 * var(--space-1-5));padding:var(--space-0-5) var(--space-1-5);border-radius:var(--radius-sm);transition:background-color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),color var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing)}.legend-item:hover,.legend-item:focus-visible,.legend-item:has(:focus-visible){background-color:var(--_pie-chart-legend-hover-bg-color)}.legend-item:hover .legend-label,.legend-item:focus-visible .legend-label,.legend-item:has(:focus-visible) .legend-label{color:var(--_pie-chart-legend-hover-text-color)}.legend-item.interactive,.legend-item.pins{cursor:pointer}.swatch{align-self:center;inline-size:var(--_pie-chart-swatch-size);block-size:var(--_pie-chart-swatch-size);border-radius:var(--radius-pill)}.legend-label{color:var(--text-secondary)}.legend-value{font-weight:700}.legend-percent{color:var(--text-tertiary);font-size:var(--font-size-xs)}.legend-bottom .legend{display:flex;flex-wrap:wrap;gap:var(--_pie-chart-legend-row-gap) var(--space-4)}.legend-bottom .legend-item{display:flex;column-gap:var(--space-2)}.ring-svg .slice{transition:opacity var(--ds-motion-chart-state-duration) var(--ds-motion-chart-state-easing),fill var(--ds-motion-chart-mark-duration) var(--ds-motion-chart-mark-easing)}.ring-svg .slice.is-dimmed{opacity:var(--ds-chart-dim-opacity)}.ring-svg.dims-others:not(:has(.slice.is-pinned)):has(.slice.is-active) .slice:not(.is-active),.ring-svg.dims-others:has(.slice.is-pinned) .slice:not(.is-pinned){opacity:var(--ds-chart-dim-opacity)}.ring-svg .slice.interactive,.ring-svg .slice.pins{cursor:pointer}@media(forced-colors:active){.axis-line,.grid-line{stroke:CanvasText}.axis-label,.category-label{fill:CanvasText}:focus-visible{stroke:Highlight;filter:none}}:host{position:relative}:host(.framed){--_chart-pin-reset-inset: var(--ds-chart-frame-padding)}:host:has(.pin-reset) figure>figcaption{padding-inline-end:calc(5rem + var(--space-2))}.pin-reset{position:absolute;inset-block-start:var(--_chart-pin-reset-inset, 0);inset-inline-end:var(--_chart-pin-reset-inset, 0);z-index:1;display:inline-flex;align-items:center;gap:var(--space-1);block-size:var(--space-6);padding:0 var(--space-2-5);border:var(--border-width-default) solid var(--border-divider);border-radius:var(--radius-pill);background:var(--surface-default);color:var(--text-secondary);font-size:var(--font-size-xs);line-height:1;box-shadow:var(--shadow-1);cursor:pointer}.pin-reset:before{position:absolute;inset:50% auto auto 50%;inline-size:max(100%,var(--hit-comfy));block-size:var(--hit-comfy);transform:translate(-50%,-50%);content:\"\"}.pin-reset:hover{color:var(--text-primary);border-color:var(--border-strong)}.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}.ring>.pin-marker{position:absolute;transform:translate(-50%,-50%)}\n"] }]
323
+ }], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], centerValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerValue", required: false }] }], centerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "centerLabel", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], maxSlices: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSlices", required: false }] }], otherLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "otherLabel", required: false }] }], innerRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "innerRadius", required: false }] }], dataTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataTable", required: false }] }], partOfWhole: [{ type: i0.Input, args: [{ isSignal: true, alias: "partOfWhole", required: false }] }], sliceClicked: [{ type: i0.Output, args: ["sliceClicked"] }], dimOthers: [{ type: i0.Input, args: [{ isSignal: true, alias: "dimOthers", required: false }] }], tooltip: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltip", required: false }] }], tooltipTemplate: [{ type: i0.ContentChild, args: ['dsChartTooltip', { isSignal: true }] }] } });
413
324
 
414
325
  /**
415
326
  * Generated bundle index. Do not edit.