@ids-group-ltd/ids-design-system 0.14.4 → 0.14.6-beta.0

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 (331) hide show
  1. package/CHANGELOG.md +176 -1
  2. package/components.md +15 -15
  3. package/docs/agent/INDEX.md +1 -1
  4. package/docs/agent/charts/ds-bar-chart.md +1 -1
  5. package/docs/agent/charts/ds-chart.md +1 -1
  6. package/docs/agent/charts/ds-column-chart.md +1 -1
  7. package/docs/agent/charts/ds-config.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/navigation/ds-breadcrumbs.md +1 -1
  15. package/docs/agent/overlays/ds-tooltip.md +2 -2
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +4 -6
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -3
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +58 -163
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +21 -34
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +34 -105
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +3 -3
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +22 -48
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +7 -7
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +6 -10
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +28 -130
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs +11 -29
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bar.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +10 -28
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +20 -13
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +3 -3
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +42 -69
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +15 -20
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +6 -7
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs +3 -10
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-data-table.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +12 -28
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +58 -112
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +182 -432
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +8 -12
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +8 -22
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +28 -123
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +45 -116
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs +4 -6
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-divider.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +7 -16
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +7 -8
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +3 -3
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +16 -45
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +10 -14
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +19 -41
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +48 -163
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +27 -85
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +17 -25
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +21 -41
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs +3 -6
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-layout.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +50 -166
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +7 -7
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +6 -11
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +19 -36
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +30 -57
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +37 -103
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +5 -6
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +9 -15
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs +1 -1
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-page-footer.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-page-header.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +8 -12
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +9 -24
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +32 -120
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +14 -24
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +15 -24
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs +9 -16
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-reserve-messages.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +27 -91
  125. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +16 -41
  127. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +8 -11
  129. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +18 -52
  131. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  132. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -7
  133. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  134. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +30 -49
  135. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  136. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +8 -12
  137. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  138. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +6 -7
  139. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  140. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs +29 -13
  141. package/fesm2022/ids-group-ltd-ids-design-system-components-sparkline.mjs.map +1 -1
  142. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs +3 -3
  143. package/fesm2022/ids-group-ltd-ids-design-system-components-spinner.mjs.map +1 -1
  144. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +8 -9
  145. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  146. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +5 -20
  147. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  148. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs +4 -4
  149. package/fesm2022/ids-group-ltd-ids-design-system-components-status-dot.mjs.map +1 -1
  150. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +3 -3
  151. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  152. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +5 -9
  153. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  154. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +11 -23
  155. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
  156. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +7 -16
  157. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -1
  158. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +9 -43
  159. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -1
  160. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +167 -353
  161. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  162. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +33 -86
  163. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  164. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +7 -7
  165. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  166. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +23 -47
  167. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  168. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +21 -49
  169. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  170. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +4 -4
  171. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  172. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +35 -63
  173. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  174. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -3
  175. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  176. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +38 -50
  177. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  178. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs +2 -2
  179. package/fesm2022/ids-group-ltd-ids-design-system-components-topbar.mjs.map +1 -1
  180. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +3 -5
  181. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  182. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +3 -3
  183. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  184. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +28 -85
  185. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  186. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +325 -579
  187. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  188. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +52 -85
  189. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  190. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +4 -21
  191. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  192. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs +4 -13
  193. package/fesm2022/ids-group-ltd-ids-design-system-overlay.mjs.map +1 -1
  194. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs +1 -2
  195. package/fesm2022/ids-group-ltd-ids-design-system-theme.mjs.map +1 -1
  196. package/migrations/0.14.5.json +311 -0
  197. package/migrations/0.14.6-beta.0.json +9 -0
  198. package/package.json +1 -1
  199. package/schematics/check-overrides/surface.json +20 -2
  200. package/styles/_breakpoints.scss +6 -23
  201. package/styles/_chart-data-table.scss +3 -11
  202. package/styles/_chart-frame.scss +14 -63
  203. package/styles/_chart-interactive.scss +8 -36
  204. package/styles/_chart-motion.scss +11 -39
  205. package/styles/_check-box.scss +7 -26
  206. package/styles/_check-mark.scss +7 -23
  207. package/styles/_chip-row.scss +3 -14
  208. package/styles/_clear-button.scss +2 -7
  209. package/styles/_control-label.scss +2 -13
  210. package/styles/_control-line.scss +2 -6
  211. package/styles/_dropdown-overlay.scss +8 -33
  212. package/styles/_ds-color.scss +9 -28
  213. package/styles/_field-box.scss +4 -16
  214. package/styles/_field-group-segment.scss +6 -6
  215. package/styles/_field-label.scss +3 -14
  216. package/styles/_field-state.scss +5 -10
  217. package/styles/_focus.scss +20 -60
  218. package/styles/_icon-base.scss +0 -2
  219. package/styles/_layout-utils.scss +0 -3
  220. package/styles/_link.scss +4 -18
  221. package/styles/_overlay-motion.scss +15 -38
  222. package/styles/_page-grid.scss +4 -29
  223. package/styles/_press.scss +5 -18
  224. package/styles/_reset.scss +1 -14
  225. package/styles/_scrollbar.scss +0 -2
  226. package/styles/_skeleton-shimmer.scss +3 -14
  227. package/styles/_status.scss +5 -13
  228. package/styles/_surface-motion.scss +7 -34
  229. package/styles/_table-controls.scss +3 -6
  230. package/styles/_text-clip.scss +2 -6
  231. package/styles/_theme-activation.scss +7 -20
  232. package/styles/_toast-overlay.scss +2 -6
  233. package/styles/_tokens-charts.scss +31 -90
  234. package/styles/_tokens.scss +111 -156
  235. package/styles/_typography.scss +6 -13
  236. package/styles/_visually-hidden.scss +2 -3
  237. package/styles/ds.scss +2 -10
  238. package/themes/_base-palette.scss +12 -35
  239. package/themes/_semantic.scss +29 -98
  240. package/themes/dark/_palette.scss +15 -29
  241. package/themes/dark/_theme.scss +14 -32
  242. package/themes/light/_palette.scss +2 -17
  243. package/themes/light/_theme.scss +1 -7
  244. package/types/ids-group-ltd-ids-design-system-components-accordion.d.ts +2 -6
  245. package/types/ids-group-ltd-ids-design-system-components-alert.d.ts +2 -3
  246. package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +45 -119
  247. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +19 -32
  248. package/types/ids-group-ltd-ids-design-system-components-autocomplete.d.ts +29 -92
  249. package/types/ids-group-ltd-ids-design-system-components-avatar-group.d.ts +1 -1
  250. package/types/ids-group-ltd-ids-design-system-components-avatar.d.ts +23 -46
  251. package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +5 -5
  252. package/types/ids-group-ltd-ids-design-system-components-banner.d.ts +4 -8
  253. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +27 -136
  254. package/types/ids-group-ltd-ids-design-system-components-bar.d.ts +13 -32
  255. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +6 -12
  256. package/types/ids-group-ltd-ids-design-system-components-breadcrumbs.d.ts +6 -9
  257. package/types/ids-group-ltd-ids-design-system-components-button-group.d.ts +1 -1
  258. package/types/ids-group-ltd-ids-design-system-components-button.d.ts +36 -55
  259. package/types/ids-group-ltd-ids-design-system-components-calendar-day.d.ts +13 -18
  260. package/types/ids-group-ltd-ids-design-system-components-card.d.ts +2 -2
  261. package/types/ids-group-ltd-ids-design-system-components-chart-data-table.d.ts +5 -11
  262. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +10 -26
  263. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +27 -49
  264. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +161 -385
  265. package/types/ids-group-ltd-ids-design-system-components-checkbox.d.ts +6 -10
  266. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +5 -14
  267. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +29 -124
  268. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +23 -70
  269. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +3 -3
  270. package/types/ids-group-ltd-ids-design-system-components-divider.d.ts +3 -7
  271. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +1 -3
  272. package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +6 -8
  273. package/types/ids-group-ltd-ids-design-system-components-empty-state.d.ts +1 -1
  274. package/types/ids-group-ltd-ids-design-system-components-field-group.d.ts +17 -50
  275. package/types/ids-group-ltd-ids-design-system-components-field-message.d.ts +8 -12
  276. package/types/ids-group-ltd-ids-design-system-components-filter-bar.d.ts +13 -28
  277. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +25 -113
  278. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +17 -85
  279. package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +15 -23
  280. package/types/ids-group-ltd-ids-design-system-components-input.d.ts +18 -37
  281. package/types/ids-group-ltd-ids-design-system-components-layout.d.ts +3 -3
  282. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +51 -160
  283. package/types/ids-group-ltd-ids-design-system-components-list.d.ts +3 -3
  284. package/types/ids-group-ltd-ids-design-system-components-loading-overlay.d.ts +4 -9
  285. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +13 -21
  286. package/types/ids-group-ltd-ids-design-system-components-modal.d.ts +15 -28
  287. package/types/ids-group-ltd-ids-design-system-components-multi-select.d.ts +27 -83
  288. package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +5 -6
  289. package/types/ids-group-ltd-ids-design-system-components-otp-input.d.ts +5 -7
  290. package/types/ids-group-ltd-ids-design-system-components-page-footer.d.ts +1 -1
  291. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +6 -10
  292. package/types/ids-group-ltd-ids-design-system-components-password-rules.d.ts +8 -22
  293. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +18 -102
  294. package/types/ids-group-ltd-ids-design-system-components-popover.d.ts +7 -11
  295. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +14 -25
  296. package/types/ids-group-ltd-ids-design-system-components-reserve-messages.d.ts +7 -12
  297. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +21 -96
  298. package/types/ids-group-ltd-ids-design-system-components-search.d.ts +12 -33
  299. package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +6 -7
  300. package/types/ids-group-ltd-ids-design-system-components-select.d.ts +12 -41
  301. package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +8 -15
  302. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +23 -40
  303. package/types/ids-group-ltd-ids-design-system-components-skeleton.d.ts +3 -5
  304. package/types/ids-group-ltd-ids-design-system-components-slider.d.ts +4 -4
  305. package/types/ids-group-ltd-ids-design-system-components-sparkline.d.ts +14 -10
  306. package/types/ids-group-ltd-ids-design-system-components-spinner.d.ts +1 -1
  307. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +6 -7
  308. package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +2 -15
  309. package/types/ids-group-ltd-ids-design-system-components-status-dot.d.ts +2 -2
  310. package/types/ids-group-ltd-ids-design-system-components-stepper.d.ts +4 -6
  311. package/types/ids-group-ltd-ids-design-system-components-switch.d.ts +5 -9
  312. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +3 -7
  313. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +4 -8
  314. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +9 -43
  315. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +160 -369
  316. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +21 -49
  317. package/types/ids-group-ltd-ids-design-system-components-tag.d.ts +5 -5
  318. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +17 -34
  319. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +17 -38
  320. package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +2 -2
  321. package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +20 -37
  322. package/types/ids-group-ltd-ids-design-system-components-toggle-button.d.ts +2 -3
  323. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +17 -36
  324. package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +2 -2
  325. package/types/ids-group-ltd-ids-design-system-components-w3w.d.ts +1 -1
  326. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +21 -70
  327. package/types/ids-group-ltd-ids-design-system-components.d.ts +262 -415
  328. package/types/ids-group-ltd-ids-design-system-core.d.ts +134 -260
  329. package/types/ids-group-ltd-ids-design-system-icons.d.ts +2 -24
  330. package/types/ids-group-ltd-ids-design-system-overlay.d.ts +4 -13
  331. package/types/ids-group-ltd-ids-design-system-theme.d.ts +4 -6
@@ -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,102 +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
- /** Whether the tooltip draws a colour dot beside each reading. Unset falls back to
177
- * `DS_CONFIG.chart.tooltipSwatches`, then draws them for up to four readings. */
178
- tooltipSwatches = input(null, { ...(ngDevMode ? { debugName: "tooltipSwatches" } : /* istanbul ignore next */ {}), transform: (value) => value == null ? null : booleanAttribute(value) });
179
- /** How long the tooltip stays after the pointer leaves the mark, in milliseconds. The default,
180
- * 500, lets the pointer cross to the next mark and find the same panel, which glides there
181
- * instead of closing and opening again. Zero takes it away at once. Unset falls back to
182
- * `DS_CONFIG.chart.tooltipLingerMs`, then 500. */
183
- tooltipLingerMs = input(null, { ...(ngDevMode ? { debugName: "tooltipLingerMs" } : /* istanbul ignore next */ {}), transform: (raw) => (raw == null ? null : numberAttribute(raw)) });
184
- /** Printed above the plot as the chart's visible title, and reused as the annex table's
185
- * caption. */
186
- caption = input(null, ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
187
- /** Accessible name. Generated from the data when omitted. */
188
- summary = input(null, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
189
155
  /** The label-and-value table under the plot: `'toggle'` puts it behind a disclosure,
190
- * `'visible'` opens it, `'none'` renders none. It is the non-visual route to the numbers, so
191
- * `'none'` belongs only where the same data is already in a table on the page.
192
- * 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'`. */
193
158
  dataTable = input(null, ...(ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []));
194
- /** Prints each slice's share of the ring — in the legend, on the tooltip and in the data table.
195
- * On by default, unlike every other chart, because a ring IS parts of one whole: the share is a
196
- * real quantity here whatever the data, not a claim the consumer has to make. Off drops all
197
- * 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. */
198
160
  partOfWhole = input(true, { ...(ngDevMode ? { debugName: "partOfWhole" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
199
- /** Draws skeleton marks in place of the data, at the same count, so the chart does not resize
200
- * when the data lands. */
201
- loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
202
- /** Shown in place of the plot when `data` is empty. Unset falls back to
203
- * `DS_INTL.chart.empty`. */
204
- emptyText = input(null, ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
205
- /** Shows `errorText` in place of the plot. Separate from `loading` and from an empty `data`,
206
- * because "the request failed" and "there is nothing to show" read the same to a reader and
207
- * mean opposite things. */
208
- error = input(false, { ...(ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
209
- /** The message the error state prints. Unset falls back to `DS_INTL.chart.error`. */
210
- errorText = input(null, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
211
- /** Formats every value the chart prints, the annex table and the generated description
212
- * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
213
- * `LOCALE_ID`. */
214
- valueFormat = input(null, ...(ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []));
215
- /** Holds the clicked mark and its tooltip in place, with a pin disc on it, until a second click,
216
- * Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
217
- * `true`. `sliceClicked` fires either way - pinning is a state, not a handler. */
218
- pinOnClick = input(null, { ...(ngDevMode ? { debugName: "pinOnClick" } : /* istanbul ignore next */ {}), transform: (value) => (value == null ? null : booleanAttribute(value)) });
219
- // Declared after every input it reads: it takes each signal off `this` when it runs.
220
- defaults = resolveChartDefaults(this);
221
- intl = inject(DS_INTL);
222
- frameResolved = this.defaults.frame;
223
161
  dataTableResolved = this.defaults.dataTable;
224
- emptyTextResolved = this.defaults.emptyText;
225
- errorTextResolved = this.defaults.errorText;
226
- valueFormatResolved = this.defaults.valueFormat;
227
- /** Turns on the click affordance — the pointer cursor and any hover tint.
228
- * The click output fires whether or not this is set, so a consumer that
229
- * binds the output and forgets the flag still receives every click. */
230
- interactive = input(false, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
231
- /** The slice that was clicked, or activated with Enter or Space. Fires whether or not
232
- * `interactive` is set. */
162
+ /** The slice that was clicked or activated with Enter or Space. */
233
163
  sliceClicked = output();
234
- /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
235
- * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
236
- * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
237
- * opacity to 2.1 at `--ds-chart-dim-opacity`'s default 0.3 — so it buys loudness for one mark
238
- * and pays for it with the rest of the chart. */
164
+ /** Dims every other mark while one is hovered or focused. */
239
165
  dimOthers = input(false, { ...(ngDevMode ? { debugName: "dimOthers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
240
- /** Accepted for parity with the other four charts and deliberately without effect here: a ring
241
- * arrives as ONE object, because arcs share their edges and fading them one at a time lets the
242
- * background through every seam. There is nothing to stagger. */
243
- staggerMs = input(0, { ...(ngDevMode ? { debugName: "staggerMs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
244
- /** Whether a hovered or focused slice opens a tooltip. `'axis'` is not offered — a ring
245
- * has no axis to group readings under. */
166
+ /** Whether a hovered or focused slice opens a tooltip. */
246
167
  tooltip = input('item', ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
247
168
  tooltipTemplate = contentChild('dsChartTooltip', ...(ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []));
248
169
  tooltipLingerResolved = this.defaults.tooltipLingerMs;
@@ -260,8 +181,7 @@ class PieChartComponent {
260
181
  }
261
182
  legendHighlight = signal(-1, ...(ngDevMode ? [{ debugName: "legendHighlight" }] : /* istanbul ignore next */ []));
262
183
  legendDwell = chartDwell(() => this.defaults.hoverDelayMs());
263
- /** A legend item stands for its arc, so it opens the arc's tooltip over the ARC and dims the
264
- * 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. */
265
185
  onLegendEnter(index, event) {
266
186
  this.legendDwell.schedule(index, () => this.legendHighlight.set(index), event);
267
187
  this.activeMark.enter(index, event, this.arcAt(event, index));
@@ -285,8 +205,7 @@ class PieChartComponent {
285
205
  return markAt(event.currentTarget.closest('.chart'), index, '.slice');
286
206
  }
287
207
  isDimmed(index) {
288
- // Naming a slice in the legend fades the rest whether or not `dimOthers` is set, the way every
289
- // 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.
290
209
  const legendHighlight = this.legendHighlight();
291
210
  if (legendHighlight !== -1) {
292
211
  return legendHighlight !== index;
@@ -343,8 +262,7 @@ class PieChartComponent {
343
262
  const midRadius = (RING_OUTER_RADIUS + innerRadius) / 2;
344
263
  return data.map((slice, index) => ({
345
264
  slice,
346
- // Halfway along the arc and halfway through the ring: the one point that is inside a slice
347
- // 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.
348
266
  center: ringCoords(RING_CENTER, RING_CENTER, midRadius, (arcs[index].startAngle + arcs[index].endAngle) / 2),
349
267
  path: arcPath(RING_CENTER, RING_CENTER, RING_OUTER_RADIUS, innerRadius, arcs[index].startAngle, arcs[index].endAngle),
350
268
  color: CHART_SERIES_COLORS[paletteIndex(slice.slot, index, CHART_SERIES_COLORS.length)],
@@ -352,9 +270,7 @@ class PieChartComponent {
352
270
  formattedPercent: formatWholePercent(percents[index], this.defaults.locale),
353
271
  }));
354
272
  }, ...(ngDevMode ? [{ debugName: "slices" }] : /* istanbul ignore next */ []));
355
- /** The held slice's centre as a share of the ring box. The badge is HTML over the ring rather
356
- * than a `foreignObject` inside it: inside, the viewBox scale grows the badge with the ring and
357
- * 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. */
358
274
  pinnedEntry = computed(() => {
359
275
  const entry = this.activeMark.pinned()
360
276
  ? this.slices()[this.activeMark.index()]
@@ -381,24 +297,20 @@ class PieChartComponent {
381
297
  : `${entry.slice.label}, ${entry.formattedValue}`;
382
298
  }
383
299
  onSliceKey(slice, event) {
384
- // Only the legend item's own key opens it: a key pressed on a control inside belongs to that
385
- // control.
300
+ // A key pressed on a control inside the item belongs to that control.
386
301
  if (!this.interactive() || event.target !== event.currentTarget) {
387
302
  return;
388
303
  }
389
304
  event.preventDefault();
390
305
  this.sliceClicked.emit(slice);
391
306
  }
392
- // Both focusable would double the tab order; the legend items already carry the route.
393
- // 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"`.
394
308
  ringCarriesTheRoute = computed(() => this.interactive() && this.legend() === 'none', ...(ngDevMode ? [{ debugName: "ringCarriesTheRoute" }] : /* istanbul ignore next */ []));
395
309
  isEmpty = computed(() => this.data().length === 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
396
- /** Placeholder legend rows while loading. Follows the real slice count so the
397
- * chart does not resize when the data lands; falls back to three when `data`
398
- * is still empty. */
310
+ /** Placeholder legend rows while loading. */
399
311
  skeletonRows = computed(() => Array.from({ length: Math.max(this.data().length, 3) }), ...(ngDevMode ? [{ debugName: "skeletonRows" }] : /* istanbul ignore next */ []));
400
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PieChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
401
- 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 }, tooltipSwatches: { classPropertyName: "tooltipSwatches", publicName: "tooltipSwatches", 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\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: ["@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))}.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 });
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 });
402
314
  }
403
315
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PieChartComponent, decorators: [{
404
316
  type: Component,
@@ -407,8 +319,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
407
319
  ChartTooltipDirective,
408
320
  IconComponent,
409
321
  ChartDataTableComponent,
410
- ], 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: ["@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))}.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"] }]
411
- }], 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 }] }], tooltipSwatches: [{ type: i0.Input, args: [{ isSignal: true, alias: "tooltipSwatches", 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 }] }] } });
412
324
 
413
325
  /**
414
326
  * Generated bundle index. Do not edit.