ngwr 16.2.0 → 16.3.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 (398) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/color-picker/styles/_index.scss +21 -0
  5. package/date-picker/styles/_index.scss +19 -0
  6. package/dropdown/styles/_index.scss +13 -19
  7. package/fesm2022/ngwr-affix.mjs +3 -3
  8. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  9. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  10. package/fesm2022/ngwr-alert.mjs +3 -3
  11. package/fesm2022/ngwr-anchor.mjs +17 -6
  12. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  13. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  14. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  15. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  16. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  17. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  18. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  19. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  20. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  21. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  22. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  23. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  25. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  26. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  27. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  28. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  29. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  30. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  31. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  32. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  33. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  34. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  35. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  36. package/fesm2022/ngwr-avatar.mjs +3 -3
  37. package/fesm2022/ngwr-back-top.mjs +3 -3
  38. package/fesm2022/ngwr-badge.mjs +129 -11
  39. package/fesm2022/ngwr-badge.mjs.map +1 -1
  40. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  42. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  43. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  45. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  46. package/fesm2022/ngwr-burger.mjs +3 -3
  47. package/fesm2022/ngwr-button.mjs +6 -6
  48. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  49. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-calendar.mjs +500 -73
  51. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  52. package/fesm2022/ngwr-card.mjs +9 -9
  53. package/fesm2022/ngwr-carousel.mjs +6 -6
  54. package/fesm2022/ngwr-cascader.mjs +37 -16
  55. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  57. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  61. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  63. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-core.mjs +3 -3
  65. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  66. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  68. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  69. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  70. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  71. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  73. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  75. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  79. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  83. package/fesm2022/ngwr-checkbox.mjs +6 -6
  84. package/fesm2022/ngwr-clipboard.mjs +3 -3
  85. package/fesm2022/ngwr-collapse.mjs +9 -9
  86. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  87. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-color-picker.mjs +153 -37
  89. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  90. package/fesm2022/ngwr-command-palette.mjs +3 -3
  91. package/fesm2022/ngwr-comment.mjs +10 -6
  92. package/fesm2022/ngwr-comment.mjs.map +1 -1
  93. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  94. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  95. package/fesm2022/ngwr-compare.mjs +3 -3
  96. package/fesm2022/ngwr-context-menu.mjs +12 -12
  97. package/fesm2022/ngwr-cookie.mjs +3 -3
  98. package/fesm2022/ngwr-copy-value.mjs +3 -3
  99. package/fesm2022/ngwr-counter.mjs +6 -6
  100. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +342 -69
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  105. package/fesm2022/ngwr-date.mjs +59 -8
  106. package/fesm2022/ngwr-date.mjs.map +1 -1
  107. package/fesm2022/ngwr-density.mjs +6 -6
  108. package/fesm2022/ngwr-descriptions.mjs +6 -6
  109. package/fesm2022/ngwr-dialog.mjs +18 -18
  110. package/fesm2022/ngwr-directives.mjs +15 -15
  111. package/fesm2022/ngwr-divider.mjs +3 -3
  112. package/fesm2022/ngwr-drawer.mjs +51 -29
  113. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  114. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  115. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  116. package/fesm2022/ngwr-dropdown.mjs +52 -95
  117. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  118. package/fesm2022/ngwr-editor.mjs +4 -3
  119. package/fesm2022/ngwr-editor.mjs.map +1 -1
  120. package/fesm2022/ngwr-empty.mjs +3 -3
  121. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  122. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  123. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  124. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  125. package/fesm2022/ngwr-file-upload.mjs +274 -15
  126. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  127. package/fesm2022/ngwr-form.mjs +9 -9
  128. package/fesm2022/ngwr-form.mjs.map +1 -1
  129. package/fesm2022/ngwr-graph-testing.mjs +3 -0
  130. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  131. package/fesm2022/ngwr-graph.mjs +102 -42
  132. package/fesm2022/ngwr-graph.mjs.map +1 -1
  133. package/fesm2022/ngwr-hotkey.mjs +6 -6
  134. package/fesm2022/ngwr-i18n-ar.mjs +19 -4
  135. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  136. package/fesm2022/ngwr-i18n-cs.mjs +19 -4
  137. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-de.mjs +19 -4
  139. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-en.mjs +19 -4
  141. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-es.mjs +19 -4
  143. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-fr.mjs +19 -4
  145. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-he.mjs +19 -4
  147. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-hi.mjs +19 -4
  149. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-id.mjs +19 -4
  151. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-it.mjs +19 -4
  153. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-ja.mjs +19 -4
  155. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-ko.mjs +19 -4
  157. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-nl.mjs +19 -4
  159. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-pl.mjs +19 -4
  161. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-pt.mjs +19 -4
  163. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-ru.mjs +19 -4
  165. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-sv.mjs +19 -4
  167. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-tr.mjs +19 -4
  169. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-uk.mjs +19 -4
  171. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-vi.mjs +19 -4
  173. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
  175. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-zh.mjs +19 -4
  177. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n.mjs +9 -9
  179. package/fesm2022/ngwr-icon.mjs +6 -6
  180. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  181. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  182. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  183. package/fesm2022/ngwr-input-number.mjs +68 -7
  184. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  185. package/fesm2022/ngwr-input-otp.mjs +23 -3
  186. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  187. package/fesm2022/ngwr-input-testing.mjs +24 -1
  188. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  189. package/fesm2022/ngwr-input.mjs +152 -36
  190. package/fesm2022/ngwr-input.mjs.map +1 -1
  191. package/fesm2022/ngwr-keyboard.mjs +3 -3
  192. package/fesm2022/ngwr-knob.mjs +3 -3
  193. package/fesm2022/ngwr-layout.mjs +15 -15
  194. package/fesm2022/ngwr-lightbox.mjs +8 -8
  195. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  196. package/fesm2022/ngwr-list.mjs +8 -8
  197. package/fesm2022/ngwr-list.mjs.map +1 -1
  198. package/fesm2022/ngwr-load-state.mjs +15 -15
  199. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  200. package/fesm2022/ngwr-mention.mjs +6 -6
  201. package/fesm2022/ngwr-meta.mjs +6 -6
  202. package/fesm2022/ngwr-overlay.mjs +175 -13
  203. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  204. package/fesm2022/ngwr-page-header.mjs +3 -3
  205. package/fesm2022/ngwr-pagination.mjs +5 -3
  206. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  207. package/fesm2022/ngwr-pipes.mjs +31 -29
  208. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  209. package/fesm2022/ngwr-platform.mjs +9 -9
  210. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  211. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  212. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  213. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  214. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  215. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  216. package/fesm2022/ngwr-popover.mjs +58 -156
  217. package/fesm2022/ngwr-popover.mjs.map +1 -1
  218. package/fesm2022/ngwr-progress.mjs +50 -9
  219. package/fesm2022/ngwr-progress.mjs.map +1 -1
  220. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  221. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  222. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  223. package/fesm2022/ngwr-qr.mjs +3 -3
  224. package/fesm2022/ngwr-radio.mjs +6 -6
  225. package/fesm2022/ngwr-rating.mjs +3 -3
  226. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  227. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  228. package/fesm2022/ngwr-resizable.mjs +3 -3
  229. package/fesm2022/ngwr-result.mjs +12 -12
  230. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  231. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  232. package/fesm2022/ngwr-schema-form.mjs +415 -19
  233. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  234. package/fesm2022/ngwr-scroll.mjs +3 -3
  235. package/fesm2022/ngwr-segmented.mjs +3 -3
  236. package/fesm2022/ngwr-select-testing.mjs +19 -0
  237. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-select.mjs +263 -83
  239. package/fesm2022/ngwr-select.mjs.map +1 -1
  240. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  241. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  242. package/fesm2022/ngwr-sidebar.mjs +3 -3
  243. package/fesm2022/ngwr-skeleton.mjs +3 -3
  244. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  245. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  246. package/fesm2022/ngwr-slider.mjs +21 -3
  247. package/fesm2022/ngwr-slider.mjs.map +1 -1
  248. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  249. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  250. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  251. package/fesm2022/ngwr-spinner.mjs +3 -3
  252. package/fesm2022/ngwr-splitter.mjs +3 -3
  253. package/fesm2022/ngwr-statistic.mjs +9 -9
  254. package/fesm2022/ngwr-stepper.mjs +42 -11
  255. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  256. package/fesm2022/ngwr-storage.mjs +3 -3
  257. package/fesm2022/ngwr-switch.mjs +3 -3
  258. package/fesm2022/ngwr-table-testing.mjs +88 -2
  259. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  260. package/fesm2022/ngwr-table.mjs +891 -74
  261. package/fesm2022/ngwr-table.mjs.map +1 -1
  262. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  263. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  264. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-tabs.mjs +15 -10
  266. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  267. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  268. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  269. package/fesm2022/ngwr-textarea.mjs +128 -16
  270. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  271. package/fesm2022/ngwr-theme.mjs +3 -3
  272. package/fesm2022/ngwr-timeline.mjs +6 -6
  273. package/fesm2022/ngwr-toast.mjs +40 -19
  274. package/fesm2022/ngwr-toast.mjs.map +1 -1
  275. package/fesm2022/ngwr-toolbar.mjs +3 -3
  276. package/fesm2022/ngwr-tour.mjs +6 -6
  277. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  278. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  279. package/fesm2022/ngwr-transfer.mjs +24 -5
  280. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  281. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  282. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tree.mjs +966 -78
  284. package/fesm2022/ngwr-tree.mjs.map +1 -1
  285. package/fesm2022/ngwr-typography.mjs +3 -3
  286. package/fesm2022/ngwr-utils-router.mjs +3 -3
  287. package/fesm2022/ngwr-utils.mjs +34 -1
  288. package/fesm2022/ngwr-utils.mjs.map +1 -1
  289. package/fesm2022/ngwr-version.mjs +1 -1
  290. package/fesm2022/ngwr-version.mjs.map +1 -1
  291. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  292. package/fesm2022/ngwr-window.mjs +33 -22
  293. package/fesm2022/ngwr-window.mjs.map +1 -1
  294. package/file-upload/styles/_index.scss +156 -0
  295. package/i18n/ar.json +21 -4
  296. package/i18n/cs.json +21 -4
  297. package/i18n/de.json +21 -4
  298. package/i18n/en.json +21 -4
  299. package/i18n/es.json +21 -4
  300. package/i18n/fr.json +21 -4
  301. package/i18n/he.json +21 -4
  302. package/i18n/hi.json +21 -4
  303. package/i18n/id.json +21 -4
  304. package/i18n/it.json +21 -4
  305. package/i18n/ja.json +21 -4
  306. package/i18n/ko.json +21 -4
  307. package/i18n/nl.json +21 -4
  308. package/i18n/pl.json +21 -4
  309. package/i18n/pt.json +21 -4
  310. package/i18n/ru.json +21 -4
  311. package/i18n/sv.json +21 -4
  312. package/i18n/tr.json +21 -4
  313. package/i18n/uk.json +21 -4
  314. package/i18n/vi.json +21 -4
  315. package/i18n/zh-TW.json +21 -4
  316. package/i18n/zh.json +21 -4
  317. package/input/styles/_index.scss +68 -1
  318. package/input-otp/styles/_index.scss +14 -0
  319. package/llms-full.txt +52 -20
  320. package/overlay/styles/_arrow.scss +4 -4
  321. package/package.json +33 -1
  322. package/popconfirm/styles/_index.scss +3 -11
  323. package/progress/styles/_index.scss +32 -0
  324. package/schema-form/styles/_index.scss +78 -0
  325. package/schematics/use/rule.js +2 -0
  326. package/schematics/use/symbol-map.json +4 -0
  327. package/select/styles/_index.scss +114 -22
  328. package/skills/ngwr/SKILL.md +1 -1
  329. package/skills/ngwr/references/catalog.md +9 -1
  330. package/slider/styles/_index.scss +22 -0
  331. package/table/styles/_index.scss +167 -3
  332. package/textarea/styles/_index.scss +80 -0
  333. package/theme/styles/_focus.scss +5 -0
  334. package/theme/styles/_motion.scss +5 -0
  335. package/transfer/styles/_index.scss +84 -0
  336. package/tree/styles/_index.scss +138 -5
  337. package/types/ngwr-alert-testing.d.ts +88 -0
  338. package/types/ngwr-badge.d.ts +72 -2
  339. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  340. package/types/ngwr-burger-testing.d.ts +51 -0
  341. package/types/ngwr-calendar-testing.d.ts +18 -6
  342. package/types/ngwr-calendar.d.ts +272 -22
  343. package/types/ngwr-cascader.d.ts +10 -1
  344. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  345. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  346. package/types/ngwr-charts-line-chart.d.ts +7 -4
  347. package/types/ngwr-color-picker-testing.d.ts +15 -4
  348. package/types/ngwr-color-picker.d.ts +76 -6
  349. package/types/ngwr-compare-testing.d.ts +72 -0
  350. package/types/ngwr-date-picker-testing.d.ts +23 -8
  351. package/types/ngwr-date-picker.d.ts +100 -9
  352. package/types/ngwr-date.d.ts +71 -1
  353. package/types/ngwr-drawer.d.ts +9 -0
  354. package/types/ngwr-dropdown-testing.d.ts +20 -0
  355. package/types/ngwr-dropdown.d.ts +24 -6
  356. package/types/ngwr-event-calendar.d.ts +66 -8
  357. package/types/ngwr-file-upload-testing.d.ts +31 -2
  358. package/types/ngwr-file-upload.d.ts +148 -1
  359. package/types/ngwr-form.d.ts +47 -3
  360. package/types/ngwr-graph-testing.d.ts +8 -3
  361. package/types/ngwr-graph.d.ts +147 -7
  362. package/types/ngwr-input-number-testing.d.ts +10 -0
  363. package/types/ngwr-input-number.d.ts +30 -1
  364. package/types/ngwr-input-otp.d.ts +10 -0
  365. package/types/ngwr-input-testing.d.ts +30 -0
  366. package/types/ngwr-input.d.ts +54 -3
  367. package/types/ngwr-overlay.d.ts +84 -5
  368. package/types/ngwr-pipes.d.ts +2 -1
  369. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  370. package/types/ngwr-popconfirm.d.ts +28 -3
  371. package/types/ngwr-popover-testing.d.ts +19 -2
  372. package/types/ngwr-popover.d.ts +22 -2
  373. package/types/ngwr-progress.d.ts +29 -1
  374. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  375. package/types/ngwr-resizable-testing.d.ts +116 -0
  376. package/types/ngwr-schema-form-testing.d.ts +260 -0
  377. package/types/ngwr-schema-form.d.ts +76 -6
  378. package/types/ngwr-select-testing.d.ts +20 -0
  379. package/types/ngwr-select.d.ts +112 -11
  380. package/types/ngwr-sidebar-testing.d.ts +176 -0
  381. package/types/ngwr-slider-testing.d.ts +3 -1
  382. package/types/ngwr-slider.d.ts +21 -1
  383. package/types/ngwr-sortable-list.d.ts +6 -0
  384. package/types/ngwr-stepper.d.ts +20 -11
  385. package/types/ngwr-table-testing.d.ts +70 -6
  386. package/types/ngwr-table.d.ts +480 -50
  387. package/types/ngwr-tabs-testing.d.ts +14 -17
  388. package/types/ngwr-tabs.d.ts +6 -0
  389. package/types/ngwr-textarea-testing.d.ts +10 -0
  390. package/types/ngwr-textarea.d.ts +48 -2
  391. package/types/ngwr-toast.d.ts +8 -1
  392. package/types/ngwr-transfer-testing.d.ts +3 -0
  393. package/types/ngwr-transfer.d.ts +24 -1
  394. package/types/ngwr-tree-testing.d.ts +65 -1
  395. package/types/ngwr-tree.d.ts +333 -12
  396. package/types/ngwr-utils.d.ts +28 -0
  397. package/types/ngwr-version.d.ts +1 -1
  398. package/types/ngwr-window.d.ts +7 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-charts-meter-group.mjs","names":[],"sources":["../../../projects/lib/charts/meter-group/meter-group.ts","../../../projects/lib/charts/meter-group/meter-group.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Component, type ElementRef, ViewEncapsulation, computed, input, model, viewChildren } from '@angular/core';\n\nimport { WR_CHART_LEGEND_BLOCK, WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport { wrChartColor, useChartNumbers } from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrMeterSegment } from './types';\n\n/**\n * Stacked-segment progress bar. Visualises a breakdown of a total —\n * disk usage, budget, vote share, etc. Each segment contributes a slice\n * proportional to its `value` relative to the sum of the segments shown (or the\n * explicit `max`).\n *\n * @example\n * ```html\n * <wr-meter-group\n * [segments]=\"[\n * { label: 'Used', value: 60 },\n * { label: 'Reserved', value: 25, color: 'var(--wr-color-warning)' }\n * ]\"\n * [max]=\"100\"\n * />\n * ```\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with\n * `toggleableLegend` its rows show and hide their segments through `hiddenSegments`.\n *\n * @see https://ngwr.dev/charts/meter-group\n */\n@Component({\n selector: 'wr-meter-group',\n templateUrl: './meter-group.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-meter-group' },\n imports: [WrChartLegend],\n // The legend's rows keep the classes this chart drew before it drew them through\n // `WrChartLegend`: `.wr-meter-group__legend-item`, `__swatch`, `__legend-label` and\n // `__legend-value`.\n viewProviders: [{ provide: WR_CHART_LEGEND_BLOCK, useValue: 'wr-meter-group' }],\n})\nexport class WrMeterGroup {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/meter-group');\n }\n\n /** Accessible name — the role needs one. Falls back to `meterGroup.label`. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'meterGroup.label', 'Meter');\n\n /**\n * The parts of the bar, in order. Each segment is drawn as its share of `max` when\n * set, else of the sum of the segments shown, so they need not add up to anything in\n * particular.\n */\n readonly segments = input<readonly WrMeterSegment[]>([]);\n\n /** Explicit total, a capacity the segments fill. `0` (default) uses the sum of the segments shown. @default 0 */\n readonly max = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Show the labelled legend under the bar. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /** Show each segment's value in the legend, next to its label. @default true */\n readonly showValues = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Make each legend row a toggle button that shows and hides its segment, through\n * `hiddenSegments`. A row is a `<button aria-pressed>`, pressed while its segment is\n * shown, so the legend becomes one tab stop per segment. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `segments` of the segments that are hidden. Positions rather than\n * labels, since two segments may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSegments)]`.\n *\n * A hidden segment is left out of the bar and out of the sum. With no `max`, the\n * segments still shown share the whole bar between them, each at its share of their\n * own total, as `wr-donut-chart`'s slices do: the bar is the whole of what it draws.\n * An explicit `max` is a capacity rather than a sum, so it stays, and the hidden\n * segment's share becomes empty track. Either way the bar announces the total of the\n * segments shown (`aria-valuenow`, `aria-valuetext`), since that is what it draws, and\n * the tooltip cannot open on a segment that is not drawn. The legend keeps the hidden\n * segment's row, struck through and with its own value, so it can be shown again; the\n * row says \"hidden\" to a screen reader as well, through `aria-pressed` on a toggle and\n * a visually hidden word otherwise. A position past the end of `segments` is kept and\n * ignored.\n */\n readonly hiddenSegments = model<readonly number[]>([]);\n\n /**\n * Show a tooltip with the segment's label and value on hover. It replaces the\n * band's `title`, which is written only while this is off — or the browser would\n * open a second copy a moment later. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Writes every value in the legend and the tooltip, and the total the bar announces\n * as `aria-valuetext`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.\n * `aria-valuenow` stays a number.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** Each value as the legend, the tooltip and the bar print it: never compact, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly sliceEls = viewChildren<ElementRef<HTMLElement>>('slice');\n\n /**\n * A segment's contribution, floored at `0` and with anything non-finite read\n * as `0`. One `NaN` used to poison the whole bar: the sum is `NaN` as soon as\n * one value is, so the total fell back to `1` and every OTHER segment was\n * asked for a width of `value * 100`%, while `aria-valuenow` announced `NaN`.\n */\n private static amount(raw: number): number {\n return Number.isFinite(raw) ? Math.max(0, raw) : 0;\n }\n\n private readonly hidden = computed(() => new Set(this.hiddenSegments()));\n\n /** What the segments still shown add up to (see `hiddenSegments`). */\n private readonly shownSum = computed(() => {\n const hidden = this.hidden();\n return this.segments().reduce((acc, s, i) => acc + (hidden.has(i) ? 0 : WrMeterGroup.amount(s.value)), 0);\n });\n\n protected readonly resolvedMax = computed(() => {\n const explicit = this.max();\n if (explicit > 0) return explicit;\n const sum = this.shownSum();\n return sum > 0 ? sum : 1;\n });\n\n /**\n * Sum of the segments, for `aria-valuenow`. `role=\"progressbar\"` without it\n * announces no value at all, so the bar was invisible to assistive tech.\n *\n * Capped at the total, because segments summing past an explicit `max` used\n * to announce a value outside the range they were announced against.\n */\n protected readonly totalValue = computed(() => Math.min(this.resolvedMax(), this.shownSum()));\n\n /**\n * The total as the bar announces it — `aria-valuetext`, written the way the legend\n * writes each figure — so a `valueFormat` that adds a unit reaches a screen reader\n * too, rather than a bare percentage of `aria-valuemax`. The gauge does the same.\n */\n protected readonly totalText = computed(() => this.numbers.value(this.totalValue()));\n\n protected readonly slices = computed(() => {\n const hidden = this.hidden();\n const max = this.resolvedMax();\n return this.segments().map((segment, i) => ({\n index: i,\n label: segment.label,\n // The legend keeps a negative value visible — it is data the caller gave\n // us — but not a non-finite one, which reads as the literal text `NaN`.\n text: this.numbers.value(Number.isFinite(segment.value) ? segment.value : 0),\n color: segment.color ?? wrChartColor(i),\n hidden: hidden.has(i),\n percent: hidden.has(i) ? 0 : (WrMeterGroup.amount(segment.value) / max) * 100,\n }));\n });\n\n /**\n * The bands drawn, in order: every segment but the hidden ones. A hidden band is left\n * out rather than drawn at zero width, since a zero band still lays its gap over the\n * boundary and would leave a double one.\n */\n protected readonly bands = computed(() => this.slices().filter(slice => !slice.hidden));\n\n /** The legend's rows: every segment, hidden ones included, with its value unless `showValues` is off. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() => {\n const values = this.showValues();\n return this.slices().map(({ label, color, text }) => ({ label, color, value: values ? text : null }));\n });\n\n /**\n * One tooltip for the whole bar, pointing at the hovered band, with the value as\n * the legend prints it. Asked by the segment's own position, and the drawn bands are\n * only the shown ones, so the band is found among them by that position.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index => {\n const slice = this.slices()[index];\n if (!slice || slice.hidden) return null;\n const el = this.sliceEls()[this.bands().indexOf(slice)]?.nativeElement;\n if (!el) return null;\n return { datum: { label: slice.label, value: slice.text, color: slice.color }, anchor: el };\n });\n}\n","<div\n class=\"wr-meter-group__bar\"\n role=\"progressbar\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"resolvedMax()\"\n [attr.aria-valuenow]=\"totalValue()\"\n [attr.aria-valuetext]=\"totalText()\"\n>\n <!-- Only the shown segments draw a band; each keeps its segment's own position, which\n is what the tooltip looks it up by. `data-label` is what the harness reads a band's\n label from; the `title` it used to read is only written while the tooltip is off. -->\n @for (slice of bands(); track slice.index) {\n <span\n #slice\n class=\"wr-meter-group__slice\"\n [attr.title]=\"tooltip() ? null : slice.label\"\n [attr.data-label]=\"slice.label\"\n [style.width.%]=\"slice.percent\"\n [style.background]=\"slice.color\"\n (mouseenter)=\"tip.enter(slice.index)\"\n (mouseleave)=\"tip.leave($event)\"\n ></span>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul\n wr-chart-legend\n class=\"wr-meter-group__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSegments\"\n ></ul>\n}\n"],"mappings":";;;;;;;;;;;;;;AAmDA,IAAa,eAAb,MAAa,aAAY;CACvB,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,oBAAoB;CACvF;CAGS,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BA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-charts-meter-group.mjs","names":[],"sources":["../../../projects/lib/charts/meter-group/meter-group.ts","../../../projects/lib/charts/meter-group/meter-group.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { Component, type ElementRef, ViewEncapsulation, computed, input, model, viewChildren } from '@angular/core';\n\nimport { WR_CHART_LEGEND_BLOCK, WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport { wrChartColor, useChartNumbers } from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrMeterSegment } from './types';\n\n/**\n * Stacked-segment progress bar. Visualises a breakdown of a total —\n * disk usage, budget, vote share, etc. Each segment contributes a slice\n * proportional to its `value` relative to the sum of the segments shown (or the\n * explicit `max`).\n *\n * @example\n * ```html\n * <wr-meter-group\n * [segments]=\"[\n * { label: 'Used', value: 60 },\n * { label: 'Reserved', value: 25, color: 'var(--wr-color-warning)' }\n * ]\"\n * [max]=\"100\"\n * />\n * ```\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with\n * `toggleableLegend` its rows show and hide their segments through `hiddenSegments`.\n *\n * @see https://ngwr.dev/charts/meter-group\n */\n@Component({\n selector: 'wr-meter-group',\n templateUrl: './meter-group.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-meter-group' },\n imports: [WrChartLegend],\n // The legend's rows keep the classes this chart drew before it drew them through\n // `WrChartLegend`: `.wr-meter-group__legend-item`, `__swatch`, `__legend-label` and\n // `__legend-value`.\n viewProviders: [{ provide: WR_CHART_LEGEND_BLOCK, useValue: 'wr-meter-group' }],\n})\nexport class WrMeterGroup {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/meter-group');\n }\n\n /** Accessible name — the role needs one. Falls back to `meterGroup.label`. */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'meterGroup.label', 'Meter');\n\n /**\n * The parts of the bar, in order. Each segment is drawn as its share of `max` when\n * set, else of the sum of the segments shown, so they need not add up to anything in\n * particular.\n */\n readonly segments = input<readonly WrMeterSegment[]>([]);\n\n /** Explicit total, a capacity the segments fill. `0` (default) uses the sum of the segments shown. @default 0 */\n readonly max = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /** Show the labelled legend under the bar. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /** Show each segment's value in the legend, next to its label. @default true */\n readonly showValues = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Make each legend row a toggle button that shows and hides its segment, through\n * `hiddenSegments`. A row is a `<button aria-pressed>`, pressed while its segment is\n * shown, so the legend becomes one tab stop per segment. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `segments` of the segments that are hidden. Positions rather than\n * labels, since two segments may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSegments)]`.\n *\n * A hidden segment is left out of the bar and out of the sum. With no `max`, the\n * segments still shown share the whole bar between them, each at its share of their\n * own total, as `wr-donut-chart`'s slices do: the bar is the whole of what it draws.\n * An explicit `max` is a capacity rather than a sum, so it stays, and the hidden\n * segment's share becomes empty track. Either way the bar announces the total of the\n * segments shown (`aria-valuenow`, `aria-valuetext`), since that is what it draws, and\n * the tooltip cannot open on a segment that is not drawn. The legend keeps the hidden\n * segment's row, struck through and with its own value, so it can be shown again; the\n * row says \"hidden\" to a screen reader as well, through `aria-pressed` on a toggle and\n * a visually hidden word otherwise. A position past the end of `segments` is kept and\n * ignored.\n */\n readonly hiddenSegments = model<readonly number[]>([]);\n\n /**\n * Show a tooltip with the segment's label and value on hover. It replaces the\n * band's `title`, which is written only while this is off — or the browser would\n * open a second copy a moment later. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Writes every value in the legend and the tooltip, and the total the bar announces\n * as `aria-valuetext`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.\n * `aria-valuenow` stays a number.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /** Each value as the legend, the tooltip and the bar print it: never compact, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly sliceEls = viewChildren<ElementRef<HTMLElement>>('slice');\n\n /**\n * A segment's contribution, floored at `0` and with anything non-finite read\n * as `0`. One `NaN` used to poison the whole bar: the sum is `NaN` as soon as\n * one value is, so the total fell back to `1` and every OTHER segment was\n * asked for a width of `value * 100`%, while `aria-valuenow` announced `NaN`.\n */\n private static amount(raw: number): number {\n return Number.isFinite(raw) ? Math.max(0, raw) : 0;\n }\n\n private readonly hidden = computed(() => new Set(this.hiddenSegments()));\n\n /** What the segments still shown add up to (see `hiddenSegments`). */\n private readonly shownSum = computed(() => {\n const hidden = this.hidden();\n return this.segments().reduce((acc, s, i) => acc + (hidden.has(i) ? 0 : WrMeterGroup.amount(s.value)), 0);\n });\n\n protected readonly resolvedMax = computed(() => {\n const explicit = this.max();\n if (explicit > 0) return explicit;\n const sum = this.shownSum();\n return sum > 0 ? sum : 1;\n });\n\n /**\n * Sum of the segments, for `aria-valuenow`. `role=\"progressbar\"` without it\n * announces no value at all, so the bar was invisible to assistive tech.\n *\n * Capped at the total, because segments summing past an explicit `max` used\n * to announce a value outside the range they were announced against.\n */\n protected readonly totalValue = computed(() => Math.min(this.resolvedMax(), this.shownSum()));\n\n /**\n * The total as the bar announces it — `aria-valuetext`, written the way the legend\n * writes each figure — so a `valueFormat` that adds a unit reaches a screen reader\n * too, rather than a bare percentage of `aria-valuemax`. The gauge does the same.\n */\n protected readonly totalText = computed(() => this.numbers.value(this.totalValue()));\n\n protected readonly slices = computed(() => {\n const hidden = this.hidden();\n const max = this.resolvedMax();\n return this.segments().map((segment, i) => ({\n index: i,\n label: segment.label,\n // The legend keeps a negative value visible — it is data the caller gave\n // us — but not a non-finite one, which reads as the literal text `NaN`.\n text: this.numbers.value(Number.isFinite(segment.value) ? segment.value : 0),\n color: segment.color ?? wrChartColor(i),\n hidden: hidden.has(i),\n percent: hidden.has(i) ? 0 : (WrMeterGroup.amount(segment.value) / max) * 100,\n }));\n });\n\n /**\n * The bands drawn, in order: every segment but the hidden ones. A hidden band is left\n * out rather than drawn at zero width, since a zero band still lays its gap over the\n * boundary and would leave a double one.\n */\n protected readonly bands = computed(() => this.slices().filter(slice => !slice.hidden));\n\n /** The legend's rows: every segment, hidden ones included, with its value unless `showValues` is off. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() => {\n const values = this.showValues();\n return this.slices().map(({ label, color, text }) => ({ label, color, value: values ? text : null }));\n });\n\n /**\n * One tooltip for the whole bar, pointing at the hovered band, with the value as\n * the legend prints it. Asked by the segment's own position, and the drawn bands are\n * only the shown ones, so the band is found among them by that position.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index => {\n const slice = this.slices()[index];\n if (!slice || slice.hidden) return null;\n const el = this.sliceEls()[this.bands().indexOf(slice)]?.nativeElement;\n if (!el) return null;\n return { datum: { label: slice.label, value: slice.text, color: slice.color }, anchor: el };\n });\n}\n","<div\n class=\"wr-meter-group__bar\"\n role=\"progressbar\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"resolvedMax()\"\n [attr.aria-valuenow]=\"totalValue()\"\n [attr.aria-valuetext]=\"totalText()\"\n>\n <!-- Only the shown segments draw a band; each keeps its segment's own position, which\n is what the tooltip looks it up by. `data-label` is what the harness reads a band's\n label from; the `title` it used to read is only written while the tooltip is off. -->\n @for (slice of bands(); track slice.index) {\n <span\n #slice\n class=\"wr-meter-group__slice\"\n [attr.title]=\"tooltip() ? null : slice.label\"\n [attr.data-label]=\"slice.label\"\n [style.width.%]=\"slice.percent\"\n [style.background]=\"slice.color\"\n (mouseenter)=\"tip.enter(slice.index)\"\n (mouseleave)=\"tip.leave($event)\"\n ></span>\n }\n</div>\n\n@if (showLegend() && slices().length > 0) {\n <ul\n wr-chart-legend\n class=\"wr-meter-group__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSegments\"\n ></ul>\n}\n"],"mappings":";;;;;;;;;;;;;;AAmDA,IAAa,eAAb,MAAa,aAAY;CACvB,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,oBAAoB;CACvF;CAGS,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CAE5B,oBAAoB,YAAY,KAAK,WAAW,oBAAoB,OAAO;CAOrF,WAAW,MAAiC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAG/C,MAAM,MAAM,GAAC;EAAA,GAAA,YAAA,EAAA,WAAA,MAAA,+BAAA,CAAA;EAAI,YAAY,MAAuB,KAAK,IAAI,GAAG,qBAAqB,GAAG,CAAC,CAAC;CAAC,CAAA;CAG3F,aAAa,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAG3D,aAAa,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAO3D,mBAAmB,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,mBAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAmBlE,iBAAiB,MAAyB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAO7C,UAAU,MAAM,MAAI;EAA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AAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,sBAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -395,7 +395,7 @@ var WrRadarChart = class WrRadarChart {
395
395
  }
396
396
  static ɵfac = i0.ɵɵngDeclareFactory({
397
397
  minVersion: "12.0.0",
398
- version: "22.2.5",
398
+ version: "22.2.6",
399
399
  ngImport: i0,
400
400
  type: WrRadarChart,
401
401
  deps: [],
@@ -403,7 +403,7 @@ var WrRadarChart = class WrRadarChart {
403
403
  });
404
404
  static ɵcmp = i0.ɵɵngDeclareComponent({
405
405
  minVersion: "17.0.0",
406
- version: "22.2.5",
406
+ version: "22.2.6",
407
407
  type: WrRadarChart,
408
408
  isStandalone: true,
409
409
  selector: "wr-radar-chart",
@@ -546,7 +546,8 @@ var WrRadarChart = class WrRadarChart {
546
546
  "items",
547
547
  "toggleable",
548
548
  "hiddenSeries",
549
- "ariaLabel"
549
+ "ariaLabel",
550
+ "hiddenLabel"
550
551
  ],
551
552
  outputs: ["hiddenSeriesChange", "toggled"]
552
553
  }, {
@@ -560,7 +561,7 @@ var WrRadarChart = class WrRadarChart {
560
561
  };
561
562
  i0.ɵɵngDeclareClassMetadata({
562
563
  minVersion: "12.0.0",
563
- version: "22.2.5",
564
+ version: "22.2.6",
564
565
  ngImport: i0,
565
566
  type: WrRadarChart,
566
567
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-charts-radar-chart.mjs","names":[],"sources":["../../../projects/lib/charts/radar-chart/radar-chart.ts","../../../projects/lib/charts/radar-chart/radar-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport { WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport {\n type WrChartAxis,\n WrChartTable,\n type WrChartTableData,\n wrChartAxis,\n wrChartColor,\n wrChartDash,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { wrClamp, wrRound, wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrRadarSeries, WrRadarVariant } from './types';\n\n/** The drawing's centre, in its 100 × 100 viewBox. */\nconst CENTRE = 50;\n\n/** The outer ring's radius, in the same units: the drawing's box is the outer ring's. */\nconst RADIUS = 50;\n\n/**\n * How far past the outer ring the pointer may stray and still read an axis, as a share\n * of the radius: the dots on the outer ring overhang it.\n */\nconst REACH = 1.1;\n\n/**\n * A ring value's line box in CSS pixels — `--wr-text-xs-leading`, which\n * `--wr-radar-chart-label-line-height` defaults to — until a browser has laid one out to\n * measure.\n */\nconst LABEL_LINE = 16;\n\n/** The nice-number ladder's mantissas: the steps a fitted scale snaps to, times a power of ten. */\nconst LADDER = [1, 2, 2.5, 5];\n\n/**\n * The ring step for an outer ring fixed at `max`: of the steps on the nice-number ladder\n * that divide `max` into a whole number of rings from 1 to 10, the one whose count is\n * nearest `rings`, and the fewer rings on a tie. A rating out of 5 gets a ring per point,\n * a score out of 100 a ring per 25. Only a `max` no step on the ladder divides — an outer\n * ring of 37 — is cut into `rings` equal parts.\n */\nfunction fixedStep(max: number, rings: number): number {\n let best = max / rings;\n let distance = Number.POSITIVE_INFINITY;\n const top = Math.floor(Math.log10(max));\n // From the finest step to the coarsest, so a tie lands on the fewer rings. A step from\n // a tenth of `max` up to `max` gives 10 rings down to 1; one either side is room for\n // `log10` landing off by one at a power of ten.\n for (let e = top - 2; e <= top + 1; e++) {\n for (const mantissa of LADDER) {\n // Divided rather than multiplied below one, so 0.1 is the literal and not 1 × 10⁻¹.\n const step = e >= 0 ? mantissa * 10 ** e : mantissa / 10 ** -e;\n const count = Math.round(max / step);\n if (count < 1 || count > 10 || Math.abs(count * step - max) > max * 1e-9) continue;\n const off = Math.abs(count - rings);\n if (off > distance) continue;\n best = step;\n distance = off;\n }\n }\n return best;\n}\n\n/** A point in the viewBox. */\ninterface Point {\n readonly x: number;\n readonly y: number;\n}\n\n/** One axis: its name, its angle from three o'clock, clockwise, and the unit vector it runs along. */\ninterface Axis {\n readonly label: string;\n readonly angle: number;\n readonly cos: number;\n readonly sin: number;\n}\n\n/** A coordinate as a path writes it. */\nconst fixed = (value: number): string => value.toFixed(2);\n\n/** A number for an inline style, to four decimals with `-0` folded to `0`, so the style stays short. */\nconst short = (value: number): number => Math.round(value * 1e4) / 1e4 || 0;\n\nconst at = (point: Point): string => `${fixed(point.x)} ${fixed(point.y)}`;\n\nconst along = (axis: Axis, r: number): Point => ({ x: CENTRE + r * axis.cos, y: CENTRE + r * axis.sin });\n\n/** The point `r` out from the centre at `angle`, clockwise from three o'clock. */\nconst toward = (angle: number, r: number): Point => ({\n x: CENTRE + r * Math.cos(angle),\n y: CENTRE + r * Math.sin(angle),\n});\n\n/**\n * A polar-area series' outline: the silhouette of its wedges, walked once round. Each\n * wedge is an arc of its own radius across its slice — `half` either side of its axis —\n * and the step from one wedge to the next is a straight run along the edge they share.\n * A wedge with no area (`null` or `0`) is the centre, so the walk dips to it there and\n * draws no arc: a missing value invents nothing, and its neighbours keep their edges.\n *\n * One closed path rather than a closed wedge per value, because two wedges side by side\n * share an edge: stroked twice, at two different dash phases, the dashes fill each\n * other's gaps and the edge reads solid, which is the one channel besides hue that tells\n * two series apart. The fill is the same path, which is every wedge's area at once.\n *\n * With three axes or more a slice spans 120° at most, so every arc is the small one, and\n * it sweeps clockwise as the axes run.\n */\nfunction silhouette(axes: readonly Axis[], half: number, radii: readonly (number | null)[]): string {\n const commands: string[] = [];\n let last = '';\n const to = (point: Point): void => {\n const next = at(point);\n if (next !== last) commands.push(`${commands.length === 0 ? 'M' : 'L'} ${next}`);\n last = next;\n };\n radii.forEach((radius, a) => {\n const r = radius ?? 0;\n to(toward(axes[a].angle - half, r));\n if (r <= 0) return;\n last = at(toward(axes[a].angle + half, r));\n commands.push(`A ${fixed(r)} ${fixed(r)} 0 0 1 ${last}`);\n });\n return `${commands.join(' ')} Z`;\n}\n\n/** A ring with no polygon to follow — fewer than three axes — as a circle: two arcs, since one arc back to its start draws nothing. */\nconst circle = (r: number): string =>\n `M ${fixed(CENTRE - r)} ${CENTRE} A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE + r)} ${CENTRE} ` +\n `A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE - r)} ${CENTRE} Z`;\n\n/**\n * A series' outline: closed through every axis when it has a value on each, and open\n * across every missing one otherwise — one subpath per unbroken run, walked once round\n * from the first gap, so a run that wraps past the last axis to the first is one stroke.\n * A run of one point repeats it, since a subpath of a single `M` is not stroked at all and\n * the value would vanish with `showDots` off; the round cap paints it as a dot.\n */\nfunction outline(points: readonly (Point | null)[]): string {\n const gap = points.indexOf(null);\n if (gap === -1) return `M ${points.map(p => at(p!)).join(' L ')} Z`;\n\n const commands: string[] = [];\n let run: Point[] = [];\n const flush = (): void => {\n if (run.length === 1) commands.push(`M ${at(run[0])} L ${at(run[0])}`);\n else if (run.length > 1) commands.push(`M ${run.map(at).join(' L ')}`);\n run = [];\n };\n for (let k = 1; k <= points.length; k++) {\n const point = points[(gap + k) % points.length];\n if (point === null) flush();\n else run.push(point);\n }\n flush();\n return commands.join(' ');\n}\n\n/**\n * Radar chart: several series over the same axes, each a polygon on a polar grid — or,\n * with `variant=\"polar-area\"`, a wedge per axis whose area is the value. For comparing a\n * few profiles — products, players, releases — across the same handful of measures.\n * SVG-only — no external dependency.\n *\n * @example\n * ```html\n * <wr-radar-chart\n * [axes]=\"['Speed', 'Power', 'Range', 'Comfort', 'Price']\"\n * [series]=\"[\n * { label: 'Model A', data: [80, 65, 70, 90, 55] },\n * { label: 'Model B', data: [60, 85, 75, 60, 80] }\n * ]\"\n * [max]=\"100\"\n * />\n * ```\n *\n * **The geometry.** The first axis points to twelve o'clock and the rest follow\n * clockwise, evenly spaced. The scale runs from the centre to the outer ring and\n * includes zero, its rings on readable steps (`max` and `rings`), and every series is a\n * polygon in its colour and its own dash: the default palette's colours sit within\n * about 1.06:1 of each other in luminance, so a dash is what tells two outlines apart\n * without hue, the line chart's remedy. The fills sit under every outline.\n *\n * **A missing value is a gap, never a guess.** A `null`, a value that is not a finite\n * number, or one a shorter `data` does not reach, breaks the outline on either side of\n * its axis and the series is drawn OPEN and UNFILLED: closing the polygon across the gap\n * would draw a reading the data never took, and filling an open outline means closing it.\n *\n * **`variant=\"polar-area\"` draws wedges instead of polygons.** Each axis owns an equal\n * slice of the circle, centred on it, and each series draws one wedge per value there,\n * the series overlaid with their fills translucent and their outlines in their own\n * dashes — one outline round each series' wedges, so the edge two wedges share is\n * stroked once and its dash survives. The value is the wedge's AREA: every wedge has the\n * same angle, so its area grows with the square of its radius, and the radius is the\n * square ROOT of the value's share of the scale — twice the value is twice the ink, where\n * a radius proportional to the value would paint four times as much. The rings are\n * circles, labelled with values, and they bunch towards the outside for the same reason,\n * so a ring value that would sit closer than a line to the one outside it is left out\n * and its ring still drawn. The scale starts at zero: a wedge grows from the centre, so\n * a negative value has no area and sits at the centre, and the tooltip and the data\n * table keep its figure. A missing value is a missing wedge, and every other wedge of\n * the series is drawn and filled, since each stands on its own value. The spokes run\n * between the wedges rather than through them.\n *\n * **Labels are HTML beside the drawing**, so they keep their size at any `size`: the axis\n * names sit outside the outer ring, in a gutter round the drawing, each aligned away from\n * the centre and ellipsised past the room it has — the tooltip and the data table carry\n * the whole name. The ring values sit beside the first axis and are `aria-hidden`, as an\n * axis' ticks are on every chart here. The drawing keeps its clockwise order under RTL,\n * as every SVG chart here keeps its own — the HTML layouts (bar, bullet, treemap) are the\n * ones that mirror — and the labels follow the drawing.\n *\n * **What a screen reader gets.** The drawing is one named `role=\"img\"` — on the `<svg>`\n * itself, as on the donut, since WebKit drops the whole subtree of an `img` wrapper and\n * the axis names are real text beside it. The numbers are in text only in the tooltip,\n * which is pointer only, and in the data table `dataTable` renders: say them in\n * `ariaLabel`, or turn the table on. No part of the chart is a tab stop, unless\n * `toggleableLegend` makes the legend rows buttons.\n *\n * With fewer than three axes there is no polygon to draw: the chart draws the grid\n * alone and says so in dev mode.\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with\n * `toggleableLegend` its rows show and hide their series through `hiddenSeries`.\n *\n * @see https://ngwr.dev/charts/radar-chart\n */\n@Component({\n selector: 'wr-radar-chart',\n templateUrl: './radar-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-radar-chart',\n '[class.wr-radar-chart--polygon]': '!polar()',\n '[class.wr-radar-chart--polar-area]': 'polar()',\n },\n imports: [WrChartLegend, WrChartTable],\n})\nexport class WrRadarChart {\n /**\n * The axes' names, clockwise from twelve o'clock. A series takes one value per axis,\n * in this order. Three at least: with fewer the chart draws the grid and no series.\n */\n readonly axes = input<readonly string[]>([]);\n\n /**\n * One polygon per series. A series with no `color` takes the next entry from the\n * chart's palette, and each takes the next dash, the first one solid.\n */\n readonly series = input<readonly WrRadarSeries[]>([]);\n\n /**\n * How the series are drawn. `'polygon'` joins each series' values into a polygon, one\n * vertex per axis. `'polar-area'` gives each axis an equal-angle wedge per series whose\n * AREA is the value — the radius grows with the square root of the value, so the ink\n * a wedge paints is proportional to what it stands for — with the series overlaid. The\n * legend, the toggle, the tooltip and the data table are the same in both.\n * @default 'polygon'\n */\n readonly variant = input<WrRadarVariant>('polygon');\n\n /**\n * Accessible name of the drawing. The shapes carry no text and the legend has the\n * series names only, so this is where to say what the chart shows — or turn on\n * `dataTable`. Falls back to `radarChart.label`, or to `radarChart.polarAreaLabel` in\n * the polar-area variant, which is also the data table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly polygonAriaLabel = useI18nText(this.ariaLabel, 'radarChart.label', 'Radar chart');\n\n private readonly polarAreaAriaLabel = useI18nText(this.ariaLabel, 'radarChart.polarAreaLabel', 'Polar area chart');\n\n protected readonly resolvedAriaLabel = computed(() =>\n this.polar() ? this.polarAreaAriaLabel() : this.polygonAriaLabel()\n );\n\n /**\n * The value of the outer ring. `0` fits the scale to the series shown, on a readable\n * step and including zero; a value above `0` fixes it, from zero at the centre — a score\n * out of 100, a rating out of 5 — with its rings on a readable step that divides it (see\n * `rings`). A value outside a fixed scale is drawn on its edge, and the tooltip and the\n * data table still give its own figure. @default 0\n */\n readonly max = input(0, {\n transform: (v: unknown): number => {\n const value = coerceNumberProperty(v, 0);\n return Number.isFinite(value) ? Math.max(0, value) : 0;\n },\n });\n\n /**\n * About how many rings the grid draws between the centre and the outer ring, each on a\n * readable step — 1, 2, 2.5 or 5 times a power of ten. A fitted scale aims for this many\n * and rounds its step up onto that ladder. A fixed `max` takes the step that divides it into the count\n * nearest this one, the fewer on a tie, so a rating out of 5 gets a ring per point and a\n * score out of 100 a ring per 25; only a `max` that no such step divides, such as 37,\n * is cut into exactly this many equal rings. Whole numbers from 1 to 10. @default 4\n */\n readonly rings = input(4, {\n transform: (v: unknown): number => {\n const value = Math.round(coerceNumberProperty(v, 4));\n return Number.isFinite(value) ? wrClamp(value, 1, 10) : 4;\n },\n });\n\n /**\n * The drawing's diameter in CSS pixels, at least 120. The axis names sit in a gutter\n * round it, so the chart is wider than this by the gutter on either side; in a narrower\n * container the drawing shrinks to fit. @default 280\n */\n readonly size = input(280, {\n transform: (v: unknown): number => {\n const value = coerceNumberProperty(v, 280);\n return Number.isFinite(value) ? Math.max(120, value) : 280;\n },\n });\n\n /** Show the rings, the spokes and the ring values. The axis names stay. @default true */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /** Show the legend under the chart. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Make each legend row a toggle button that shows and hides its series, through\n * `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is\n * shown, so the legend becomes one tab stop per series. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `series` of the series that are hidden. Positions rather than\n * labels, since two series may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSeries)]`.\n *\n * A hidden series is left out of everything that reads its values: it draws no\n * polygon and no dots, it has no row in the tooltip and no column in the data table,\n * and a fitted scale is fitted to the series still shown. The axes do not change, since\n * they belong to the chart rather than to one series. The legend keeps the hidden\n * series' row, struck through, so it can be shown again; the row says \"hidden\" to a\n * screen reader as well. A position past the end of `series` is kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /**\n * Show a dot at every value: on the polygon's vertex, or in the polar-area variant on\n * the middle of the wedge's arc, where the value reads against the rings. @default true\n */\n readonly showDots = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Fill each closed polygon with its colour, faintly (`--wr-radar-chart-area-opacity`),\n * under every outline — the name the line chart and the sparkline give the same fill. A\n * series with a missing value is never filled, whatever this says: its outline is open.\n * In the polar-area variant every wedge is filled, since the outline round them always\n * closes, and a missing value is a missing wedge. @default true\n */\n readonly showArea = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Show a tooltip for the axis nearest the pointer: its name, and every series' value\n * on it; an axis no series shown has a value on opens none. Pointer only — the data\n * table is where the same numbers are for a keyboard or a screen reader. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Writes every number the chart shows: the ring values, the tooltip and the data\n * table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ring values\n * (`1.2K`) unless the full numbers are shorter.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per axis, headed by its name, and a column per series shown, every value written the\n * way the tooltip writes it. A missing value is an empty cell.\n *\n * The drawing is one named `role=\"img\"`, which hides everything inside it, so without\n * the table the numbers are nowhere a screen reader can walk. It is rendered beside the\n * drawing, clipped to nothing: it takes no room, draws nothing and holds no tab stop.\n * A hidden series leaves it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /** The ring values' compact ticks and the exact figures, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly svg = viewChild<ElementRef<SVGSVGElement>>('svg');\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * The drawing's laid-out width and a ring value's line box, both in CSS pixels, once a\n * browser has measured them: the drawing shrinks below `size` in a narrow container, and\n * how close two ring values may sit is a question of pixels, not of the viewBox.\n */\n private readonly measured = signal<{ readonly width: number; readonly line: number } | null>(null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/radar-chart');\n const destroyRef = inject(DestroyRef);\n // Measured after render, so the server and the first paint assume `size` and a 16px\n // line, and nothing here touches the DOM before a browser has one.\n afterNextRender(() => {\n const svg = this.svg()?.nativeElement;\n if (!svg || typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => {\n const width = entry.contentRect.width;\n // A hidden chart measures nothing; keep the last reading rather than thin to it.\n if (width <= 0) return;\n const label = this.host.nativeElement.querySelector('.wr-radar-chart__ring-label');\n // No value laid out — `showGrid` off — measures 0: keep the line already known.\n const height = label?.getBoundingClientRect().height ?? 0;\n const last = this.measured();\n const line = height > 0 ? height : (last?.line ?? LABEL_LINE);\n if (last?.width === width && last.line === line) return;\n this.measured.set({ width, line });\n });\n observer.observe(svg);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n\n // A radar of two axes is a line and one of one a point, so neither can hold a\n // polygon; the chart draws the grid and nothing else, which on screen looks like\n // data that failed to load rather than a refusal.\n if (isDevMode()) {\n let warned: number | null = null;\n effect(() => {\n const count = this.axes().length;\n if (count >= 3 || this.series().length === 0 || warned === count) return;\n warned = count;\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n `[NGWR] <wr-radar-chart>: a radar needs at least three axes to draw a series, and it was given ${count}. ` +\n 'It draws the grid alone.'\n );\n });\n }\n }\n\n /** Every axis, clockwise from twelve o'clock: the drawing's y runs downwards, so a growing angle turns clockwise. */\n private readonly axisGeometry = computed<readonly Axis[]>(() => {\n const axes = this.axes();\n return axes.map((label, i) => {\n const angle = -Math.PI / 2 + (i * 2 * Math.PI) / axes.length;\n return { label, angle, cos: Math.cos(angle), sin: Math.sin(angle) };\n });\n });\n\n /** Whether the series are wedges rather than polygons. Anything but `'polar-area'` is the polygon. */\n protected readonly polar = computed(() => this.variant() === 'polar-area');\n\n /**\n * Whether there are axes enough for a polygon: three make the smallest one. The\n * polar-area variant keeps the same floor, so the two draw the same data.\n */\n private readonly drawable = computed(() => this.axes().length >= 3);\n\n /**\n * Every series, resolved: its palette colour, its dash, and one value per axis with\n * `null` where it is missing. Hidden ones included, since the legend lists them.\n */\n private readonly resolvedSeries = computed(() => {\n const count = this.axes().length;\n return this.series().map((s, index) => ({\n index,\n label: s.label,\n color: s.color ?? wrChartColor(index),\n dash: wrChartDash(index),\n values: Array.from({ length: count }, (_, a): number | null => {\n const value = s.data[a];\n return typeof value === 'number' && Number.isFinite(value) ? value : null;\n }),\n }));\n });\n\n /** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */\n private readonly visibleSeries = computed(() => {\n const hidden = new Set(this.hiddenSeries());\n return this.resolvedSeries().filter(s => !hidden.has(s.index));\n });\n\n /**\n * The scale from the centre to the outer ring. A fixed `max` runs from zero, its rings\n * on the readable step that divides it (`fixedStep`). Otherwise it is `wrChartAxis` over\n * the series shown, including zero: the centre is zero unless a value is negative, and\n * then the scale's own minimum, which a radar shows as a smaller polygon rather than as\n * anything below a baseline — readable, and worth a fixed `max` where negative values\n * are the norm. The polar-area variant always starts at zero, since a wedge grows from\n * the centre: it is fitted to the largest value alone, and a negative value has no area.\n * With nothing to fit — or, for wedges, nothing above zero — it is the empty 0 to 1 frame.\n */\n private readonly scale = computed<WrChartAxis>(() => {\n const explicit = this.max();\n const rings = this.rings();\n if (explicit > 0) {\n const step = fixedStep(explicit, rings);\n const count = Math.round(explicit / step);\n const ticks = Array.from({ length: count + 1 }, (_, i) => wrRound(explicit - i * step, 6));\n return { min: 0, max: explicit, step, ticks };\n }\n const values = this.visibleSeries().flatMap(s => s.values.filter((v): v is number => v !== null));\n if (values.length === 0) return wrChartAxis(Number.NaN, Number.NaN);\n const peak = Math.max(...values);\n if (this.polar()) {\n return peak > 0\n ? wrChartAxis(0, peak, { includeZero: true, tickCount: rings })\n : wrChartAxis(Number.NaN, Number.NaN);\n }\n return wrChartAxis(Math.min(...values), peak, { includeZero: true, tickCount: rings });\n });\n\n /**\n * How far from the centre a value sits, in the viewBox, held to the scale: in proportion\n * to the value's share of the scale for a polygon, and to its square root for a wedge, so\n * a wedge's area — which grows with the square of its radius — is in proportion to the\n * value. The rings go through here too, so a ring labelled 25 out of 100 sits at half\n * the radius in the polar-area variant and a wedge reaching it has a quarter of the\n * outer ring's area.\n */\n private radius(value: number): number {\n const { min, max } = this.scale();\n const share = wrClamp((value - min) / (max - min), 0, 1);\n return RADIUS * (this.polar() ? Math.sqrt(share) : share);\n }\n\n /**\n * The shapes, one per series shown that has at least one value: its outline, whether\n * that outline is closed, and the point at each axis (`null` where the value is missing).\n * Nothing at all with fewer than three axes.\n *\n * A polygon is closed only with a value on every axis. In the polar-area variant the\n * outline is the silhouette of the series' wedges, which always closes, and the point\n * at an axis is the middle of that wedge's arc — where its dot goes and its value reads\n * against the rings.\n */\n protected readonly shapes = computed(() => {\n if (!this.drawable()) return [];\n const axes = this.axisGeometry();\n const polar = this.polar();\n const half = Math.PI / axes.length;\n return this.visibleSeries().flatMap(s => {\n const radii = s.values.map(v => (v === null ? null : this.radius(v)));\n const points = radii.map((r, a) => (r === null ? null : along(axes[a], r)));\n if (points.every(p => p === null)) return [];\n return [\n {\n index: s.index,\n color: s.color,\n dash: s.dash,\n points,\n closed: polar || points.every(p => p !== null),\n d: polar ? silhouette(axes, half, radii) : outline(points),\n },\n ];\n });\n });\n\n /**\n * The rings, from the outer one in: a polygon through every axis, or a circle while\n * there are fewer than three axes to follow — and always a circle in the polar-area\n * variant, whose wedges end in arcs. The centre is the scale's minimum and gets no ring.\n */\n protected readonly ringPaths = computed(() => {\n const { min, ticks } = this.scale();\n const axes = this.axisGeometry();\n const polygon = axes.length >= 3 && !this.polar();\n return ticks\n .filter(tick => tick > min)\n .map(tick => {\n const r = this.radius(tick);\n return polygon ? `M ${axes.map(axis => at(along(axis, r))).join(' L ')} Z` : circle(r);\n });\n });\n\n /**\n * A spoke per axis, from the centre to the outer ring: along the axis for a polygon,\n * and on the edge between two wedges in the polar-area variant, where a spoke through\n * the middle of a wedge would cut its area in two.\n */\n protected readonly spokes = computed(() => {\n const axes = this.axisGeometry();\n if (!this.polar()) return axes.map(axis => along(axis, RADIUS));\n const half = Math.PI / axes.length;\n return axes.map(axis => toward(axis.angle - half, RADIUS));\n });\n\n /**\n * The ring values, from the outer ring in, each with the height of its ring as a\n * percentage of the drawing, where the first axis crosses it. Decided for the whole\n * scale, as an axis' ticks are (`useChartNumbers().ticks`).\n *\n * In the polar-area variant the rings sit at square-root radii, which bunch towards the\n * outer ring, so a value closer than one line to the last one kept is left out, walking\n * inwards from the outer ring — whose value always stays — while its ring is still\n * drawn. The distance is in pixels of the drawing as laid out (`measured`), or of `size`\n * until a browser has measured it. The polygon's rings are evenly spaced, and `rings`\n * is how a host spaces them.\n */\n protected readonly ringLabels = computed(() => {\n const { min, ticks, step } = this.scale();\n const texts = this.numbers.ticks(ticks, step);\n const labels = ticks.flatMap((tick, i) => {\n if (tick <= min) return [];\n const r = this.radius(tick);\n return [{ text: texts[i], r, y: short(CENTRE - r) }];\n });\n if (!this.polar()) return labels;\n const { width, line } = this.measured() ?? { width: this.size(), line: LABEL_LINE };\n // One line, in the viewBox's units: the drawing is 100 of them wide.\n const room = (line / width) * 100;\n let kept = Number.POSITIVE_INFINITY;\n return labels.filter(label => {\n // A hair under a line still counts as one, so rounding never drops a value that fits.\n if (kept - label.r < room - 1e-6) return false;\n kept = label.r;\n return true;\n });\n });\n\n /**\n * Each axis name with the end of its spoke as percentages of the drawing (`x`, `y`) and\n * the direction it points (`cos`, `sin`): the stylesheet moves the label out from the\n * end along that direction and aligns it away from the centre — a name at three o'clock\n * starts at the spoke, one at twelve is centred over it.\n */\n protected readonly axisLabels = computed(() =>\n this.axisGeometry().map(axis => ({\n label: axis.label,\n x: short(CENTRE + RADIUS * axis.cos),\n y: short(CENTRE + RADIUS * axis.sin),\n cos: short(axis.cos),\n sin: short(axis.sin),\n }))\n );\n\n /** The legend's rows: every series, hidden ones included, keyed by its own dash. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() =>\n this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash }))\n );\n\n /**\n * The figures for `dataTable`: the drawing's name as the caption, a column per series\n * shown and a row per axis. Each cell is the series' own value, even where a fixed scale\n * draws it on the edge, written as the tooltip writes it, and empty where it is missing.\n * With every series hidden there is nothing to tabulate, and no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const series = this.visibleSeries();\n const rows =\n series.length === 0\n ? []\n : this.axes().map((axis, a) => ({\n header: axis,\n cells: series.map(s => {\n const value = s.values[a];\n return value === null ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: series.map(s => s.label), groups: [{ rows }] };\n });\n\n /**\n * One tooltip for the whole chart, for the axis nearest the pointer: the axis' name as\n * its heading and a row per series shown with a value there. It points at the end of\n * the axis, on the side the axis faces — above for one in the top quarter, beside it\n * for the two at three and nine o'clock — so the chip sits outside the web, over the\n * axis' own name, which it repeats in full.\n *\n * The axis is chosen by POSITION, anywhere over the web: by angle, the nearest axis to\n * the pointer — in the polar-area variant, the axis whose wedges the pointer is over. So\n * the helper is told which axis any spot reads, and a pointer moving round the chart\n * scrubs from axis to axis.\n */\n protected readonly tip = useChartTooltip(\n this.tooltip,\n index => {\n const axis = this.axisGeometry()[index];\n const svg = this.svg()?.nativeElement;\n if (!this.drawable() || !axis || !svg) return null;\n const box = svg.getBoundingClientRect();\n const { cos, sin } = axis;\n // The drawing's y runs downwards, so a positive sine is the lower half.\n const side = Math.abs(cos) > Math.abs(sin) ? (cos > 0 ? 'right' : 'left') : sin > 0 ? 'bottom' : 'top';\n const rows = this.visibleSeries().flatMap(s => {\n const value = s.values[index];\n return value === null ? [] : [{ label: s.label, value: this.numbers.value(value), color: s.color }];\n });\n // An axis no series shown has a value on — every series hidden, or every one missing\n // there — has nothing to say but its own name, which is already on screen.\n if (rows.length === 0) return null;\n return {\n datum: { label: axis.label, value: '', rows },\n anchor: {\n x: box.left + ((CENTRE + RADIUS * cos) / 100) * box.width,\n y: box.top + ((CENTRE + RADIUS * sin) / 100) * box.height,\n },\n side,\n };\n },\n (x, y) => this.axisAt(x, y)\n );\n\n /**\n * What the open tooltip marks on the drawing: its axis' spoke, and a ring round every\n * series' value on it.\n */\n protected readonly hover = computed(() => {\n const index = this.tip.active();\n const axis = index === null ? undefined : this.axisGeometry()[index];\n if (index === null || !axis || !this.drawable()) return null;\n const points = this.shapes().flatMap(s => {\n const point = s.points[index];\n return point ? [{ index: s.index, color: s.color, d: this.dotPath(point) }] : [];\n });\n // No crosshair without a value on it to mark, as there is no chip.\n if (points.length === 0) return null;\n return { end: along(axis, RADIUS), points };\n });\n\n /**\n * The axis under the pointer, heard on the drawing. A MOUSE event, as every chart's is:\n * a tap fires the compatibility `mousemove` and no `pointermove`. Off the web — the\n * drawing's corners, outside the outer ring and its dots — the tooltip lets go.\n */\n protected onPointerMove(event: MouseEvent): void {\n const index = this.axisAt(event.clientX, event.clientY);\n if (index === null) this.tip.leave(event);\n else this.tip.enter(index);\n }\n\n /** A zero-length line at a point, which a round cap paints as a dot of the stroke's width. */\n protected dotPath(point: Point): string {\n return `M ${at(point)} h 0`;\n }\n\n /**\n * The axis nearest a viewport point by angle, measured from the drawing's centre, or\n * `null` past the outer ring (with room for its dots), with nothing drawn, with no box\n * laid out to measure, or on an axis no series shown has a value on — so the tooltip\n * lets go there as it does off the web.\n */\n private axisAt(clientX: number, clientY: number): number | null {\n const count = this.axes().length;\n const svg = this.svg()?.nativeElement;\n if (!this.drawable() || !svg) return null;\n const box = svg.getBoundingClientRect();\n if (box.width <= 0 || box.height <= 0) return null;\n const dx = clientX - (box.left + box.width / 2);\n const dy = clientY - (box.top + box.height / 2);\n if (Math.hypot(dx, dy) > (Math.min(box.width, box.height) / 2) * REACH) return null;\n // Clockwise from twelve o'clock, in [0, 2π).\n const turn = (Math.atan2(dy, dx) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI);\n const index = Math.round(turn / ((2 * Math.PI) / count)) % count;\n return this.visibleSeries().some(s => s.values[index] !== null) ? index : null;\n }\n}\n\nexport type { WrRadarSeries, WrRadarVariant } from './types';\n","@let hovered = hover();\n<!-- The drawing, with the axis names in a gutter round it. The surface is as wide as the\n drawing; the gutter is its padding, and both label layers cover the drawing exactly,\n so a percentage of either is a percentage of the drawing. -->\n<div class=\"wr-radar-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper: `img` is a children-presentational\n role, and WebKit drops the whole subtree of one, which would take the axis names\n beside the drawing down with it. -->\n <svg\n #svg\n class=\"wr-radar-chart__svg\"\n viewBox=\"0 0 100 100\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showGrid()) {\n @for (d of ringPaths(); track $index) {\n <path class=\"wr-radar-chart__ring\" [attr.d]=\"d\" fill=\"none\" vector-effect=\"non-scaling-stroke\" />\n }\n @for (end of spokes(); track $index) {\n <line\n class=\"wr-radar-chart__spoke\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"end.x\"\n [attr.y2]=\"end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n <!-- Every fill under every outline, so the outlines and their dashes stay on top\n wherever two series overlap. An open outline is never filled: filling it would\n close it across a value the series does not have. A polar-area outline is the\n silhouette of the series' wedges, which always closes, so it always fills. -->\n @if (showArea()) {\n @for (s of shapes(); track s.index) {\n @if (s.closed) {\n <path class=\"wr-radar-chart__area\" [attr.d]=\"s.d\" [attr.fill]=\"s.color\" stroke=\"none\" />\n }\n }\n }\n <!-- By position, not by label: two series may share one. -->\n @for (s of shapes(); track s.index) {\n <path\n class=\"wr-radar-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n @if (showDots()) {\n @for (s of shapes(); track s.index) {\n @for (point of s.points; track $index) {\n <!-- A missing value gets no dot. A dot is a zero-length line with a round cap and\n a non-scaling stroke, so it stays a circle of the same pixels at any size. -->\n @if (point) {\n <path\n class=\"wr-radar-chart__dot\"\n [attr.d]=\"dotPath(point)\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n }\n }\n\n @if (hovered) {\n <line\n class=\"wr-radar-chart__crosshair\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"hovered.end.x\"\n [attr.y2]=\"hovered.end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A ring of the series' colour round a surface-coloured centre, drawn the way a dot\n is and for the same reason. -->\n @for (p of hovered.points; track p.index) {\n <path\n class=\"wr-radar-chart__hover-dot\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-radar-chart__hover-dot-center\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n\n @if (showGrid() && ringLabels().length > 0) {\n <!-- Hidden, as an axis' ticks are on every chart: the drawing's name is what is\n announced, and the figures are in the data table. -->\n <div class=\"wr-radar-chart__ring-labels\" aria-hidden=\"true\">\n @for (ring of ringLabels(); track $index) {\n <span class=\"wr-radar-chart__ring-label\" [style.--wr-radar-chart-y]=\"ring.y\">{{ ring.text }}</span>\n }\n </div>\n }\n\n @if (axisLabels().length > 0) {\n <!-- Real text beside the drawing, as the line chart's x labels are: each hands the\n stylesheet the end of its spoke and the way it points. -->\n <div class=\"wr-radar-chart__axis-labels\">\n @for (axis of axisLabels(); track $index) {\n <span\n class=\"wr-radar-chart__axis-label\"\n [style.--wr-radar-chart-x]=\"axis.x\"\n [style.--wr-radar-chart-y]=\"axis.y\"\n [style.--wr-radar-chart-cos]=\"axis.cos\"\n [style.--wr-radar-chart-sin]=\"axis.sin\"\n >{{ axis.label }}</span\n >\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n\n@if (showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, as the outline is drawn. Rows are\n tracked by position, so two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-radar-ch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,kBAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,cAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,oBAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,KAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAK,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"ngwr-charts-radar-chart.mjs","names":[],"sources":["../../../projects/lib/charts/radar-chart/radar-chart.ts","../../../projects/lib/charts/radar-chart/radar-chart.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport { WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport {\n type WrChartAxis,\n WrChartTable,\n type WrChartTableData,\n wrChartAxis,\n wrChartColor,\n wrChartDash,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { wrClamp, wrRound, wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrRadarSeries, WrRadarVariant } from './types';\n\n/** The drawing's centre, in its 100 × 100 viewBox. */\nconst CENTRE = 50;\n\n/** The outer ring's radius, in the same units: the drawing's box is the outer ring's. */\nconst RADIUS = 50;\n\n/**\n * How far past the outer ring the pointer may stray and still read an axis, as a share\n * of the radius: the dots on the outer ring overhang it.\n */\nconst REACH = 1.1;\n\n/**\n * A ring value's line box in CSS pixels — `--wr-text-xs-leading`, which\n * `--wr-radar-chart-label-line-height` defaults to — until a browser has laid one out to\n * measure.\n */\nconst LABEL_LINE = 16;\n\n/** The nice-number ladder's mantissas: the steps a fitted scale snaps to, times a power of ten. */\nconst LADDER = [1, 2, 2.5, 5];\n\n/**\n * The ring step for an outer ring fixed at `max`: of the steps on the nice-number ladder\n * that divide `max` into a whole number of rings from 1 to 10, the one whose count is\n * nearest `rings`, and the fewer rings on a tie. A rating out of 5 gets a ring per point,\n * a score out of 100 a ring per 25. Only a `max` no step on the ladder divides — an outer\n * ring of 37 — is cut into `rings` equal parts.\n */\nfunction fixedStep(max: number, rings: number): number {\n let best = max / rings;\n let distance = Number.POSITIVE_INFINITY;\n const top = Math.floor(Math.log10(max));\n // From the finest step to the coarsest, so a tie lands on the fewer rings. A step from\n // a tenth of `max` up to `max` gives 10 rings down to 1; one either side is room for\n // `log10` landing off by one at a power of ten.\n for (let e = top - 2; e <= top + 1; e++) {\n for (const mantissa of LADDER) {\n // Divided rather than multiplied below one, so 0.1 is the literal and not 1 × 10⁻¹.\n const step = e >= 0 ? mantissa * 10 ** e : mantissa / 10 ** -e;\n const count = Math.round(max / step);\n if (count < 1 || count > 10 || Math.abs(count * step - max) > max * 1e-9) continue;\n const off = Math.abs(count - rings);\n if (off > distance) continue;\n best = step;\n distance = off;\n }\n }\n return best;\n}\n\n/** A point in the viewBox. */\ninterface Point {\n readonly x: number;\n readonly y: number;\n}\n\n/** One axis: its name, its angle from three o'clock, clockwise, and the unit vector it runs along. */\ninterface Axis {\n readonly label: string;\n readonly angle: number;\n readonly cos: number;\n readonly sin: number;\n}\n\n/** A coordinate as a path writes it. */\nconst fixed = (value: number): string => value.toFixed(2);\n\n/** A number for an inline style, to four decimals with `-0` folded to `0`, so the style stays short. */\nconst short = (value: number): number => Math.round(value * 1e4) / 1e4 || 0;\n\nconst at = (point: Point): string => `${fixed(point.x)} ${fixed(point.y)}`;\n\nconst along = (axis: Axis, r: number): Point => ({ x: CENTRE + r * axis.cos, y: CENTRE + r * axis.sin });\n\n/** The point `r` out from the centre at `angle`, clockwise from three o'clock. */\nconst toward = (angle: number, r: number): Point => ({\n x: CENTRE + r * Math.cos(angle),\n y: CENTRE + r * Math.sin(angle),\n});\n\n/**\n * A polar-area series' outline: the silhouette of its wedges, walked once round. Each\n * wedge is an arc of its own radius across its slice — `half` either side of its axis —\n * and the step from one wedge to the next is a straight run along the edge they share.\n * A wedge with no area (`null` or `0`) is the centre, so the walk dips to it there and\n * draws no arc: a missing value invents nothing, and its neighbours keep their edges.\n *\n * One closed path rather than a closed wedge per value, because two wedges side by side\n * share an edge: stroked twice, at two different dash phases, the dashes fill each\n * other's gaps and the edge reads solid, which is the one channel besides hue that tells\n * two series apart. The fill is the same path, which is every wedge's area at once.\n *\n * With three axes or more a slice spans 120° at most, so every arc is the small one, and\n * it sweeps clockwise as the axes run.\n */\nfunction silhouette(axes: readonly Axis[], half: number, radii: readonly (number | null)[]): string {\n const commands: string[] = [];\n let last = '';\n const to = (point: Point): void => {\n const next = at(point);\n if (next !== last) commands.push(`${commands.length === 0 ? 'M' : 'L'} ${next}`);\n last = next;\n };\n radii.forEach((radius, a) => {\n const r = radius ?? 0;\n to(toward(axes[a].angle - half, r));\n if (r <= 0) return;\n last = at(toward(axes[a].angle + half, r));\n commands.push(`A ${fixed(r)} ${fixed(r)} 0 0 1 ${last}`);\n });\n return `${commands.join(' ')} Z`;\n}\n\n/** A ring with no polygon to follow — fewer than three axes — as a circle: two arcs, since one arc back to its start draws nothing. */\nconst circle = (r: number): string =>\n `M ${fixed(CENTRE - r)} ${CENTRE} A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE + r)} ${CENTRE} ` +\n `A ${fixed(r)} ${fixed(r)} 0 1 0 ${fixed(CENTRE - r)} ${CENTRE} Z`;\n\n/**\n * A series' outline: closed through every axis when it has a value on each, and open\n * across every missing one otherwise — one subpath per unbroken run, walked once round\n * from the first gap, so a run that wraps past the last axis to the first is one stroke.\n * A run of one point repeats it, since a subpath of a single `M` is not stroked at all and\n * the value would vanish with `showDots` off; the round cap paints it as a dot.\n */\nfunction outline(points: readonly (Point | null)[]): string {\n const gap = points.indexOf(null);\n if (gap === -1) return `M ${points.map(p => at(p!)).join(' L ')} Z`;\n\n const commands: string[] = [];\n let run: Point[] = [];\n const flush = (): void => {\n if (run.length === 1) commands.push(`M ${at(run[0])} L ${at(run[0])}`);\n else if (run.length > 1) commands.push(`M ${run.map(at).join(' L ')}`);\n run = [];\n };\n for (let k = 1; k <= points.length; k++) {\n const point = points[(gap + k) % points.length];\n if (point === null) flush();\n else run.push(point);\n }\n flush();\n return commands.join(' ');\n}\n\n/**\n * Radar chart: several series over the same axes, each a polygon on a polar grid — or,\n * with `variant=\"polar-area\"`, a wedge per axis whose area is the value. For comparing a\n * few profiles — products, players, releases — across the same handful of measures.\n * SVG-only — no external dependency.\n *\n * @example\n * ```html\n * <wr-radar-chart\n * [axes]=\"['Speed', 'Power', 'Range', 'Comfort', 'Price']\"\n * [series]=\"[\n * { label: 'Model A', data: [80, 65, 70, 90, 55] },\n * { label: 'Model B', data: [60, 85, 75, 60, 80] }\n * ]\"\n * [max]=\"100\"\n * />\n * ```\n *\n * **The geometry.** The first axis points to twelve o'clock and the rest follow\n * clockwise, evenly spaced. The scale runs from the centre to the outer ring and\n * includes zero, its rings on readable steps (`max` and `rings`), and every series is a\n * polygon in its colour and its own dash: the default palette's colours sit within\n * about 1.06:1 of each other in luminance, so a dash is what tells two outlines apart\n * without hue, the line chart's remedy. The fills sit under every outline.\n *\n * **A missing value is a gap, never a guess.** A `null`, a value that is not a finite\n * number, or one a shorter `data` does not reach, breaks the outline on either side of\n * its axis and the series is drawn OPEN and UNFILLED: closing the polygon across the gap\n * would draw a reading the data never took, and filling an open outline means closing it.\n *\n * **`variant=\"polar-area\"` draws wedges instead of polygons.** Each axis owns an equal\n * slice of the circle, centred on it, and each series draws one wedge per value there,\n * the series overlaid with their fills translucent and their outlines in their own\n * dashes — one outline round each series' wedges, so the edge two wedges share is\n * stroked once and its dash survives. The value is the wedge's AREA: every wedge has the\n * same angle, so its area grows with the square of its radius, and the radius is the\n * square ROOT of the value's share of the scale — twice the value is twice the ink, where\n * a radius proportional to the value would paint four times as much. The rings are\n * circles, labelled with values, and they bunch towards the outside for the same reason,\n * so a ring value that would sit closer than a line to the one outside it is left out\n * and its ring still drawn. The scale starts at zero: a wedge grows from the centre, so\n * a negative value has no area and sits at the centre, and the tooltip and the data\n * table keep its figure. A missing value is a missing wedge, and every other wedge of\n * the series is drawn and filled, since each stands on its own value. The spokes run\n * between the wedges rather than through them.\n *\n * **Labels are HTML beside the drawing**, so they keep their size at any `size`: the axis\n * names sit outside the outer ring, in a gutter round the drawing, each aligned away from\n * the centre and ellipsised past the room it has — the tooltip and the data table carry\n * the whole name. The ring values sit beside the first axis and are `aria-hidden`, as an\n * axis' ticks are on every chart here. The drawing keeps its clockwise order under RTL,\n * as every SVG chart here keeps its own — the HTML layouts (bar, bullet, treemap) are the\n * ones that mirror — and the labels follow the drawing.\n *\n * **What a screen reader gets.** The drawing is one named `role=\"img\"` — on the `<svg>`\n * itself, as on the donut, since WebKit drops the whole subtree of an `img` wrapper and\n * the axis names are real text beside it. The numbers are in text only in the tooltip,\n * which is pointer only, and in the data table `dataTable` renders: say them in\n * `ariaLabel`, or turn the table on. No part of the chart is a tab stop, unless\n * `toggleableLegend` makes the legend rows buttons.\n *\n * With fewer than three axes there is no polygon to draw: the chart draws the grid\n * alone and says so in dev mode.\n *\n * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with\n * `toggleableLegend` its rows show and hide their series through `hiddenSeries`.\n *\n * @see https://ngwr.dev/charts/radar-chart\n */\n@Component({\n selector: 'wr-radar-chart',\n templateUrl: './radar-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-radar-chart',\n '[class.wr-radar-chart--polygon]': '!polar()',\n '[class.wr-radar-chart--polar-area]': 'polar()',\n },\n imports: [WrChartLegend, WrChartTable],\n})\nexport class WrRadarChart {\n /**\n * The axes' names, clockwise from twelve o'clock. A series takes one value per axis,\n * in this order. Three at least: with fewer the chart draws the grid and no series.\n */\n readonly axes = input<readonly string[]>([]);\n\n /**\n * One polygon per series. A series with no `color` takes the next entry from the\n * chart's palette, and each takes the next dash, the first one solid.\n */\n readonly series = input<readonly WrRadarSeries[]>([]);\n\n /**\n * How the series are drawn. `'polygon'` joins each series' values into a polygon, one\n * vertex per axis. `'polar-area'` gives each axis an equal-angle wedge per series whose\n * AREA is the value — the radius grows with the square root of the value, so the ink\n * a wedge paints is proportional to what it stands for — with the series overlaid. The\n * legend, the toggle, the tooltip and the data table are the same in both.\n * @default 'polygon'\n */\n readonly variant = input<WrRadarVariant>('polygon');\n\n /**\n * Accessible name of the drawing. The shapes carry no text and the legend has the\n * series names only, so this is where to say what the chart shows — or turn on\n * `dataTable`. Falls back to `radarChart.label`, or to `radarChart.polarAreaLabel` in\n * the polar-area variant, which is also the data table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n private readonly polygonAriaLabel = useI18nText(this.ariaLabel, 'radarChart.label', 'Radar chart');\n\n private readonly polarAreaAriaLabel = useI18nText(this.ariaLabel, 'radarChart.polarAreaLabel', 'Polar area chart');\n\n protected readonly resolvedAriaLabel = computed(() =>\n this.polar() ? this.polarAreaAriaLabel() : this.polygonAriaLabel()\n );\n\n /**\n * The value of the outer ring. `0` fits the scale to the series shown, on a readable\n * step and including zero; a value above `0` fixes it, from zero at the centre — a score\n * out of 100, a rating out of 5 — with its rings on a readable step that divides it (see\n * `rings`). A value outside a fixed scale is drawn on its edge, and the tooltip and the\n * data table still give its own figure. @default 0\n */\n readonly max = input(0, {\n transform: (v: unknown): number => {\n const value = coerceNumberProperty(v, 0);\n return Number.isFinite(value) ? Math.max(0, value) : 0;\n },\n });\n\n /**\n * About how many rings the grid draws between the centre and the outer ring, each on a\n * readable step — 1, 2, 2.5 or 5 times a power of ten. A fitted scale aims for this many\n * and rounds its step up onto that ladder. A fixed `max` takes the step that divides it into the count\n * nearest this one, the fewer on a tie, so a rating out of 5 gets a ring per point and a\n * score out of 100 a ring per 25; only a `max` that no such step divides, such as 37,\n * is cut into exactly this many equal rings. Whole numbers from 1 to 10. @default 4\n */\n readonly rings = input(4, {\n transform: (v: unknown): number => {\n const value = Math.round(coerceNumberProperty(v, 4));\n return Number.isFinite(value) ? wrClamp(value, 1, 10) : 4;\n },\n });\n\n /**\n * The drawing's diameter in CSS pixels, at least 120. The axis names sit in a gutter\n * round it, so the chart is wider than this by the gutter on either side; in a narrower\n * container the drawing shrinks to fit. @default 280\n */\n readonly size = input(280, {\n transform: (v: unknown): number => {\n const value = coerceNumberProperty(v, 280);\n return Number.isFinite(value) ? Math.max(120, value) : 280;\n },\n });\n\n /** Show the rings, the spokes and the ring values. The axis names stay. @default true */\n readonly showGrid = input(true, { transform: coerceBooleanProperty });\n\n /** Show the legend under the chart. @default true */\n readonly showLegend = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Make each legend row a toggle button that shows and hides its series, through\n * `hiddenSeries`. A row is a `<button aria-pressed>`, pressed while its series is\n * shown, so the legend becomes one tab stop per series. @default false\n */\n readonly toggleableLegend = input(false, { transform: coerceBooleanProperty });\n\n /**\n * The positions in `series` of the series that are hidden. Positions rather than\n * labels, since two series may share a label. A toggleable legend writes it, and a\n * host may bind it with or without one: `[(hiddenSeries)]`.\n *\n * A hidden series is left out of everything that reads its values: it draws no\n * polygon and no dots, it has no row in the tooltip and no column in the data table,\n * and a fitted scale is fitted to the series still shown. The axes do not change, since\n * they belong to the chart rather than to one series. The legend keeps the hidden\n * series' row, struck through, so it can be shown again; the row says \"hidden\" to a\n * screen reader as well. A position past the end of `series` is kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /**\n * Show a dot at every value: on the polygon's vertex, or in the polar-area variant on\n * the middle of the wedge's arc, where the value reads against the rings. @default true\n */\n readonly showDots = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Fill each closed polygon with its colour, faintly (`--wr-radar-chart-area-opacity`),\n * under every outline — the name the line chart and the sparkline give the same fill. A\n * series with a missing value is never filled, whatever this says: its outline is open.\n * In the polar-area variant every wedge is filled, since the outline round them always\n * closes, and a missing value is a missing wedge. @default true\n */\n readonly showArea = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Show a tooltip for the axis nearest the pointer: its name, and every series' value\n * on it; an axis no series shown has a value on opens none. Pointer only — the data\n * table is where the same numbers are for a keyboard or a screen reader. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Writes every number the chart shows: the ring values, the tooltip and the data\n * table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with compact ring values\n * (`1.2K`) unless the full numbers are shorter.\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per axis, headed by its name, and a column per series shown, every value written the\n * way the tooltip writes it. A missing value is an empty cell.\n *\n * The drawing is one named `role=\"img\"`, which hides everything inside it, so without\n * the table the numbers are nowhere a screen reader can walk. It is rendered beside the\n * drawing, clipped to nothing: it takes no room, draws nothing and holds no tab stop.\n * A hidden series leaves it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /** The ring values' compact ticks and the exact figures, in `LOCALE_ID` unless `valueFormat` is given. */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly svg = viewChild<ElementRef<SVGSVGElement>>('svg');\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * The drawing's laid-out width and a ring value's line box, both in CSS pixels, once a\n * browser has measured them: the drawing shrinks below `size` in a narrow container, and\n * how close two ring values may sit is a question of pixels, not of the viewBox.\n */\n private readonly measured = signal<{ readonly width: number; readonly line: number } | null>(null);\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/radar-chart');\n const destroyRef = inject(DestroyRef);\n // Measured after render, so the server and the first paint assume `size` and a 16px\n // line, and nothing here touches the DOM before a browser has one.\n afterNextRender(() => {\n const svg = this.svg()?.nativeElement;\n if (!svg || typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) => {\n const width = entry.contentRect.width;\n // A hidden chart measures nothing; keep the last reading rather than thin to it.\n if (width <= 0) return;\n const label = this.host.nativeElement.querySelector('.wr-radar-chart__ring-label');\n // No value laid out — `showGrid` off — measures 0: keep the line already known.\n const height = label?.getBoundingClientRect().height ?? 0;\n const last = this.measured();\n const line = height > 0 ? height : (last?.line ?? LABEL_LINE);\n if (last?.width === width && last.line === line) return;\n this.measured.set({ width, line });\n });\n observer.observe(svg);\n destroyRef.onDestroy(() => observer.disconnect());\n });\n\n // A radar of two axes is a line and one of one a point, so neither can hold a\n // polygon; the chart draws the grid and nothing else, which on screen looks like\n // data that failed to load rather than a refusal.\n if (isDevMode()) {\n let warned: number | null = null;\n effect(() => {\n const count = this.axes().length;\n if (count >= 3 || this.series().length === 0 || warned === count) return;\n warned = count;\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n `[NGWR] <wr-radar-chart>: a radar needs at least three axes to draw a series, and it was given ${count}. ` +\n 'It draws the grid alone.'\n );\n });\n }\n }\n\n /** Every axis, clockwise from twelve o'clock: the drawing's y runs downwards, so a growing angle turns clockwise. */\n private readonly axisGeometry = computed<readonly Axis[]>(() => {\n const axes = this.axes();\n return axes.map((label, i) => {\n const angle = -Math.PI / 2 + (i * 2 * Math.PI) / axes.length;\n return { label, angle, cos: Math.cos(angle), sin: Math.sin(angle) };\n });\n });\n\n /** Whether the series are wedges rather than polygons. Anything but `'polar-area'` is the polygon. */\n protected readonly polar = computed(() => this.variant() === 'polar-area');\n\n /**\n * Whether there are axes enough for a polygon: three make the smallest one. The\n * polar-area variant keeps the same floor, so the two draw the same data.\n */\n private readonly drawable = computed(() => this.axes().length >= 3);\n\n /**\n * Every series, resolved: its palette colour, its dash, and one value per axis with\n * `null` where it is missing. Hidden ones included, since the legend lists them.\n */\n private readonly resolvedSeries = computed(() => {\n const count = this.axes().length;\n return this.series().map((s, index) => ({\n index,\n label: s.label,\n color: s.color ?? wrChartColor(index),\n dash: wrChartDash(index),\n values: Array.from({ length: count }, (_, a): number | null => {\n const value = s.data[a];\n return typeof value === 'number' && Number.isFinite(value) ? value : null;\n }),\n }));\n });\n\n /** The series drawn, read and fitted to: every one `hiddenSeries` does not name. */\n private readonly visibleSeries = computed(() => {\n const hidden = new Set(this.hiddenSeries());\n return this.resolvedSeries().filter(s => !hidden.has(s.index));\n });\n\n /**\n * The scale from the centre to the outer ring. A fixed `max` runs from zero, its rings\n * on the readable step that divides it (`fixedStep`). Otherwise it is `wrChartAxis` over\n * the series shown, including zero: the centre is zero unless a value is negative, and\n * then the scale's own minimum, which a radar shows as a smaller polygon rather than as\n * anything below a baseline — readable, and worth a fixed `max` where negative values\n * are the norm. The polar-area variant always starts at zero, since a wedge grows from\n * the centre: it is fitted to the largest value alone, and a negative value has no area.\n * With nothing to fit — or, for wedges, nothing above zero — it is the empty 0 to 1 frame.\n */\n private readonly scale = computed<WrChartAxis>(() => {\n const explicit = this.max();\n const rings = this.rings();\n if (explicit > 0) {\n const step = fixedStep(explicit, rings);\n const count = Math.round(explicit / step);\n const ticks = Array.from({ length: count + 1 }, (_, i) => wrRound(explicit - i * step, 6));\n return { min: 0, max: explicit, step, ticks };\n }\n const values = this.visibleSeries().flatMap(s => s.values.filter((v): v is number => v !== null));\n if (values.length === 0) return wrChartAxis(Number.NaN, Number.NaN);\n const peak = Math.max(...values);\n if (this.polar()) {\n return peak > 0\n ? wrChartAxis(0, peak, { includeZero: true, tickCount: rings })\n : wrChartAxis(Number.NaN, Number.NaN);\n }\n return wrChartAxis(Math.min(...values), peak, { includeZero: true, tickCount: rings });\n });\n\n /**\n * How far from the centre a value sits, in the viewBox, held to the scale: in proportion\n * to the value's share of the scale for a polygon, and to its square root for a wedge, so\n * a wedge's area — which grows with the square of its radius — is in proportion to the\n * value. The rings go through here too, so a ring labelled 25 out of 100 sits at half\n * the radius in the polar-area variant and a wedge reaching it has a quarter of the\n * outer ring's area.\n */\n private radius(value: number): number {\n const { min, max } = this.scale();\n const share = wrClamp((value - min) / (max - min), 0, 1);\n return RADIUS * (this.polar() ? Math.sqrt(share) : share);\n }\n\n /**\n * The shapes, one per series shown that has at least one value: its outline, whether\n * that outline is closed, and the point at each axis (`null` where the value is missing).\n * Nothing at all with fewer than three axes.\n *\n * A polygon is closed only with a value on every axis. In the polar-area variant the\n * outline is the silhouette of the series' wedges, which always closes, and the point\n * at an axis is the middle of that wedge's arc — where its dot goes and its value reads\n * against the rings.\n */\n protected readonly shapes = computed(() => {\n if (!this.drawable()) return [];\n const axes = this.axisGeometry();\n const polar = this.polar();\n const half = Math.PI / axes.length;\n return this.visibleSeries().flatMap(s => {\n const radii = s.values.map(v => (v === null ? null : this.radius(v)));\n const points = radii.map((r, a) => (r === null ? null : along(axes[a], r)));\n if (points.every(p => p === null)) return [];\n return [\n {\n index: s.index,\n color: s.color,\n dash: s.dash,\n points,\n closed: polar || points.every(p => p !== null),\n d: polar ? silhouette(axes, half, radii) : outline(points),\n },\n ];\n });\n });\n\n /**\n * The rings, from the outer one in: a polygon through every axis, or a circle while\n * there are fewer than three axes to follow — and always a circle in the polar-area\n * variant, whose wedges end in arcs. The centre is the scale's minimum and gets no ring.\n */\n protected readonly ringPaths = computed(() => {\n const { min, ticks } = this.scale();\n const axes = this.axisGeometry();\n const polygon = axes.length >= 3 && !this.polar();\n return ticks\n .filter(tick => tick > min)\n .map(tick => {\n const r = this.radius(tick);\n return polygon ? `M ${axes.map(axis => at(along(axis, r))).join(' L ')} Z` : circle(r);\n });\n });\n\n /**\n * A spoke per axis, from the centre to the outer ring: along the axis for a polygon,\n * and on the edge between two wedges in the polar-area variant, where a spoke through\n * the middle of a wedge would cut its area in two.\n */\n protected readonly spokes = computed(() => {\n const axes = this.axisGeometry();\n if (!this.polar()) return axes.map(axis => along(axis, RADIUS));\n const half = Math.PI / axes.length;\n return axes.map(axis => toward(axis.angle - half, RADIUS));\n });\n\n /**\n * The ring values, from the outer ring in, each with the height of its ring as a\n * percentage of the drawing, where the first axis crosses it. Decided for the whole\n * scale, as an axis' ticks are (`useChartNumbers().ticks`).\n *\n * In the polar-area variant the rings sit at square-root radii, which bunch towards the\n * outer ring, so a value closer than one line to the last one kept is left out, walking\n * inwards from the outer ring — whose value always stays — while its ring is still\n * drawn. The distance is in pixels of the drawing as laid out (`measured`), or of `size`\n * until a browser has measured it. The polygon's rings are evenly spaced, and `rings`\n * is how a host spaces them.\n */\n protected readonly ringLabels = computed(() => {\n const { min, ticks, step } = this.scale();\n const texts = this.numbers.ticks(ticks, step);\n const labels = ticks.flatMap((tick, i) => {\n if (tick <= min) return [];\n const r = this.radius(tick);\n return [{ text: texts[i], r, y: short(CENTRE - r) }];\n });\n if (!this.polar()) return labels;\n const { width, line } = this.measured() ?? { width: this.size(), line: LABEL_LINE };\n // One line, in the viewBox's units: the drawing is 100 of them wide.\n const room = (line / width) * 100;\n let kept = Number.POSITIVE_INFINITY;\n return labels.filter(label => {\n // A hair under a line still counts as one, so rounding never drops a value that fits.\n if (kept - label.r < room - 1e-6) return false;\n kept = label.r;\n return true;\n });\n });\n\n /**\n * Each axis name with the end of its spoke as percentages of the drawing (`x`, `y`) and\n * the direction it points (`cos`, `sin`): the stylesheet moves the label out from the\n * end along that direction and aligns it away from the centre — a name at three o'clock\n * starts at the spoke, one at twelve is centred over it.\n */\n protected readonly axisLabels = computed(() =>\n this.axisGeometry().map(axis => ({\n label: axis.label,\n x: short(CENTRE + RADIUS * axis.cos),\n y: short(CENTRE + RADIUS * axis.sin),\n cos: short(axis.cos),\n sin: short(axis.sin),\n }))\n );\n\n /** The legend's rows: every series, hidden ones included, keyed by its own dash. */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() =>\n this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash }))\n );\n\n /**\n * The figures for `dataTable`: the drawing's name as the caption, a column per series\n * shown and a row per axis. Each cell is the series' own value, even where a fixed scale\n * draws it on the edge, written as the tooltip writes it, and empty where it is missing.\n * With every series hidden there is nothing to tabulate, and no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const series = this.visibleSeries();\n const rows =\n series.length === 0\n ? []\n : this.axes().map((axis, a) => ({\n header: axis,\n cells: series.map(s => {\n const value = s.values[a];\n return value === null ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: series.map(s => s.label), groups: [{ rows }] };\n });\n\n /**\n * One tooltip for the whole chart, for the axis nearest the pointer: the axis' name as\n * its heading and a row per series shown with a value there. It points at the end of\n * the axis, on the side the axis faces — above for one in the top quarter, beside it\n * for the two at three and nine o'clock — so the chip sits outside the web, over the\n * axis' own name, which it repeats in full.\n *\n * The axis is chosen by POSITION, anywhere over the web: by angle, the nearest axis to\n * the pointer — in the polar-area variant, the axis whose wedges the pointer is over. So\n * the helper is told which axis any spot reads, and a pointer moving round the chart\n * scrubs from axis to axis.\n */\n protected readonly tip = useChartTooltip(\n this.tooltip,\n index => {\n const axis = this.axisGeometry()[index];\n const svg = this.svg()?.nativeElement;\n if (!this.drawable() || !axis || !svg) return null;\n const box = svg.getBoundingClientRect();\n const { cos, sin } = axis;\n // The drawing's y runs downwards, so a positive sine is the lower half.\n const side = Math.abs(cos) > Math.abs(sin) ? (cos > 0 ? 'right' : 'left') : sin > 0 ? 'bottom' : 'top';\n const rows = this.visibleSeries().flatMap(s => {\n const value = s.values[index];\n return value === null ? [] : [{ label: s.label, value: this.numbers.value(value), color: s.color }];\n });\n // An axis no series shown has a value on — every series hidden, or every one missing\n // there — has nothing to say but its own name, which is already on screen.\n if (rows.length === 0) return null;\n return {\n datum: { label: axis.label, value: '', rows },\n anchor: {\n x: box.left + ((CENTRE + RADIUS * cos) / 100) * box.width,\n y: box.top + ((CENTRE + RADIUS * sin) / 100) * box.height,\n },\n side,\n };\n },\n (x, y) => this.axisAt(x, y)\n );\n\n /**\n * What the open tooltip marks on the drawing: its axis' spoke, and a ring round every\n * series' value on it.\n */\n protected readonly hover = computed(() => {\n const index = this.tip.active();\n const axis = index === null ? undefined : this.axisGeometry()[index];\n if (index === null || !axis || !this.drawable()) return null;\n const points = this.shapes().flatMap(s => {\n const point = s.points[index];\n return point ? [{ index: s.index, color: s.color, d: this.dotPath(point) }] : [];\n });\n // No crosshair without a value on it to mark, as there is no chip.\n if (points.length === 0) return null;\n return { end: along(axis, RADIUS), points };\n });\n\n /**\n * The axis under the pointer, heard on the drawing. A MOUSE event, as every chart's is:\n * a tap fires the compatibility `mousemove` and no `pointermove`. Off the web — the\n * drawing's corners, outside the outer ring and its dots — the tooltip lets go.\n */\n protected onPointerMove(event: MouseEvent): void {\n const index = this.axisAt(event.clientX, event.clientY);\n if (index === null) this.tip.leave(event);\n else this.tip.enter(index);\n }\n\n /** A zero-length line at a point, which a round cap paints as a dot of the stroke's width. */\n protected dotPath(point: Point): string {\n return `M ${at(point)} h 0`;\n }\n\n /**\n * The axis nearest a viewport point by angle, measured from the drawing's centre, or\n * `null` past the outer ring (with room for its dots), with nothing drawn, with no box\n * laid out to measure, or on an axis no series shown has a value on — so the tooltip\n * lets go there as it does off the web.\n */\n private axisAt(clientX: number, clientY: number): number | null {\n const count = this.axes().length;\n const svg = this.svg()?.nativeElement;\n if (!this.drawable() || !svg) return null;\n const box = svg.getBoundingClientRect();\n if (box.width <= 0 || box.height <= 0) return null;\n const dx = clientX - (box.left + box.width / 2);\n const dy = clientY - (box.top + box.height / 2);\n if (Math.hypot(dx, dy) > (Math.min(box.width, box.height) / 2) * REACH) return null;\n // Clockwise from twelve o'clock, in [0, 2π).\n const turn = (Math.atan2(dy, dx) + Math.PI / 2 + 2 * Math.PI) % (2 * Math.PI);\n const index = Math.round(turn / ((2 * Math.PI) / count)) % count;\n return this.visibleSeries().some(s => s.values[index] !== null) ? index : null;\n }\n}\n\nexport type { WrRadarSeries, WrRadarVariant } from './types';\n","@let hovered = hover();\n<!-- The drawing, with the axis names in a gutter round it. The surface is as wide as the\n drawing; the gutter is its padding, and both label layers cover the drawing exactly,\n so a percentage of either is a percentage of the drawing. -->\n<div class=\"wr-radar-chart__surface\" [style.width.px]=\"size()\">\n <!-- The name sits on the DRAWING, not on this wrapper: `img` is a children-presentational\n role, and WebKit drops the whole subtree of one, which would take the axis names\n beside the drawing down with it. -->\n <svg\n #svg\n class=\"wr-radar-chart__svg\"\n viewBox=\"0 0 100 100\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n (mousemove)=\"onPointerMove($event)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showGrid()) {\n @for (d of ringPaths(); track $index) {\n <path class=\"wr-radar-chart__ring\" [attr.d]=\"d\" fill=\"none\" vector-effect=\"non-scaling-stroke\" />\n }\n @for (end of spokes(); track $index) {\n <line\n class=\"wr-radar-chart__spoke\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"end.x\"\n [attr.y2]=\"end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n\n <!-- Every fill under every outline, so the outlines and their dashes stay on top\n wherever two series overlap. An open outline is never filled: filling it would\n close it across a value the series does not have. A polar-area outline is the\n silhouette of the series' wedges, which always closes, so it always fills. -->\n @if (showArea()) {\n @for (s of shapes(); track s.index) {\n @if (s.closed) {\n <path class=\"wr-radar-chart__area\" [attr.d]=\"s.d\" [attr.fill]=\"s.color\" stroke=\"none\" />\n }\n }\n }\n <!-- By position, not by label: two series may share one. -->\n @for (s of shapes(); track s.index) {\n <path\n class=\"wr-radar-chart__line\"\n [attr.d]=\"s.d\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n [attr.stroke-dasharray]=\"s.dash || null\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n @if (showDots()) {\n @for (s of shapes(); track s.index) {\n @for (point of s.points; track $index) {\n <!-- A missing value gets no dot. A dot is a zero-length line with a round cap and\n a non-scaling stroke, so it stays a circle of the same pixels at any size. -->\n @if (point) {\n <path\n class=\"wr-radar-chart__dot\"\n [attr.d]=\"dotPath(point)\"\n fill=\"none\"\n [attr.stroke]=\"s.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n }\n }\n\n @if (hovered) {\n <line\n class=\"wr-radar-chart__crosshair\"\n x1=\"50\"\n y1=\"50\"\n [attr.x2]=\"hovered.end.x\"\n [attr.y2]=\"hovered.end.y\"\n vector-effect=\"non-scaling-stroke\"\n />\n <!-- A ring of the series' colour round a surface-coloured centre, drawn the way a dot\n is and for the same reason. -->\n @for (p of hovered.points; track p.index) {\n <path\n class=\"wr-radar-chart__hover-dot\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n [attr.stroke]=\"p.color\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n <path\n class=\"wr-radar-chart__hover-dot-center\"\n [attr.d]=\"p.d\"\n fill=\"none\"\n stroke-linecap=\"round\"\n vector-effect=\"non-scaling-stroke\"\n />\n }\n }\n </svg>\n\n @if (showGrid() && ringLabels().length > 0) {\n <!-- Hidden, as an axis' ticks are on every chart: the drawing's name is what is\n announced, and the figures are in the data table. -->\n <div class=\"wr-radar-chart__ring-labels\" aria-hidden=\"true\">\n @for (ring of ringLabels(); track $index) {\n <span class=\"wr-radar-chart__ring-label\" [style.--wr-radar-chart-y]=\"ring.y\">{{ ring.text }}</span>\n }\n </div>\n }\n\n @if (axisLabels().length > 0) {\n <!-- Real text beside the drawing, as the line chart's x labels are: each hands the\n stylesheet the end of its spoke and the way it points. -->\n <div class=\"wr-radar-chart__axis-labels\">\n @for (axis of axisLabels(); track $index) {\n <span\n class=\"wr-radar-chart__axis-label\"\n [style.--wr-radar-chart-x]=\"axis.x\"\n [style.--wr-radar-chart-y]=\"axis.y\"\n [style.--wr-radar-chart-cos]=\"axis.cos\"\n [style.--wr-radar-chart-sin]=\"axis.sin\"\n >{{ axis.label }}</span\n >\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n\n@if (showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, as the outline is drawn. Rows are\n tracked by position, so two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-radar-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [(hiddenSeries)]=\"hiddenSeries\"\n ></ul>\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,MAAM,SAAS;AAGf,MAAM,SAAS;AAMf,MAAM,QAAQ;AAOd,MAAM,aAAa;AAGnB,MAAM,SAAS;CAAC;CAAG;CAAG;CAAK;AAAC;AAS5B,SAAS,UAAU,KAAa,OAAa;CAC3C,IAAI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AAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,KAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,OAAK,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -251,7 +251,7 @@ var WrScatterChart = class WrScatterChart {
251
251
  }
252
252
  static ɵfac = i0.ɵɵngDeclareFactory({
253
253
  minVersion: "12.0.0",
254
- version: "22.2.5",
254
+ version: "22.2.6",
255
255
  ngImport: i0,
256
256
  type: WrScatterChart,
257
257
  deps: [],
@@ -259,7 +259,7 @@ var WrScatterChart = class WrScatterChart {
259
259
  });
260
260
  static ɵcmp = i0.ɵɵngDeclareComponent({
261
261
  minVersion: "17.0.0",
262
- version: "22.2.5",
262
+ version: "22.2.6",
263
263
  type: WrScatterChart,
264
264
  isStandalone: true,
265
265
  selector: "wr-scatter-chart",
@@ -389,7 +389,8 @@ var WrScatterChart = class WrScatterChart {
389
389
  "items",
390
390
  "toggleable",
391
391
  "hiddenSeries",
392
- "ariaLabel"
392
+ "ariaLabel",
393
+ "hiddenLabel"
393
394
  ],
394
395
  outputs: ["hiddenSeriesChange", "toggled"]
395
396
  }, {
@@ -403,7 +404,7 @@ var WrScatterChart = class WrScatterChart {
403
404
  };
404
405
  i0.ɵɵngDeclareClassMetadata({
405
406
  minVersion: "12.0.0",
406
- version: "22.2.5",
407
+ version: "22.2.6",
407
408
  ngImport: i0,
408
409
  type: WrScatterChart,
409
410
  decorators: [{