ngwr 15.0.1 → 15.2.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 (420) hide show
  1. package/anchor/styles/_index.scss +13 -2
  2. package/bits/aurora/styles/_rules.scss +11 -0
  3. package/bits/dot-grid/dot-grid.scss +1 -0
  4. package/bits/dot-grid/styles/_index.scss +8 -0
  5. package/bits/dot-grid/styles/_rules.scss +54 -0
  6. package/bits/iridescence/iridescence.scss +1 -0
  7. package/bits/iridescence/styles/_index.scss +8 -0
  8. package/bits/iridescence/styles/_rules.scss +72 -0
  9. package/bits/marquee/styles/_rules.scss +7 -3
  10. package/bits/ripple-grid/ripple-grid.scss +1 -0
  11. package/bits/ripple-grid/styles/_index.scss +8 -0
  12. package/bits/ripple-grid/styles/_rules.scss +63 -0
  13. package/bits/spotlight-card/styles/_rules.scss +7 -4
  14. package/bits/star-border/styles/_rules.scss +5 -2
  15. package/bits/threads/styles/_index.scss +8 -0
  16. package/bits/threads/styles/_rules.scss +76 -0
  17. package/bits/threads/threads.scss +1 -0
  18. package/bits/waves/styles/_rules.scss +8 -1
  19. package/charts/bar-chart/styles/_index.scss +607 -7
  20. package/charts/boxplot-chart/styles/_index.scss +297 -0
  21. package/charts/bullet-chart/styles/_index.scss +268 -0
  22. package/charts/calendar-heatmap/styles/_index.scss +25 -3
  23. package/charts/candlestick-chart/styles/_index.scss +307 -0
  24. package/charts/chart-legend/styles/_index.scss +143 -0
  25. package/charts/core/styles/_index.scss +30 -0
  26. package/charts/donut-chart/styles/_index.scss +39 -3
  27. package/charts/funnel-chart/styles/_index.scss +237 -0
  28. package/charts/gauge/styles/_index.scss +4 -2
  29. package/charts/heatmap-chart/styles/_index.scss +329 -0
  30. package/charts/line-chart/styles/_index.scss +141 -8
  31. package/charts/meter-group/styles/_index.scss +44 -13
  32. package/charts/radar-chart/styles/_index.scss +206 -0
  33. package/charts/scatter-chart/styles/_index.scss +245 -0
  34. package/charts/sparkline/styles/_index.scss +10 -1
  35. package/charts/treemap-chart/styles/_index.scss +215 -0
  36. package/charts/waterfall-chart/styles/_index.scss +321 -0
  37. package/collapse/styles/_index.scss +6 -1
  38. package/fesm2022/ngwr-affix.mjs +3 -3
  39. package/fesm2022/ngwr-alert.mjs +3 -3
  40. package/fesm2022/ngwr-anchor.mjs +3 -3
  41. package/fesm2022/ngwr-avatar.mjs +3 -3
  42. package/fesm2022/ngwr-back-top.mjs +3 -3
  43. package/fesm2022/ngwr-badge.mjs +6 -6
  44. package/fesm2022/ngwr-bits-aurora.mjs +30 -38
  45. package/fesm2022/ngwr-bits-aurora.mjs.map +1 -1
  46. package/fesm2022/ngwr-bits-blur-text.mjs +3 -3
  47. package/fesm2022/ngwr-bits-border-glow-testing.mjs.map +1 -1
  48. package/fesm2022/ngwr-bits-border-glow.mjs +11 -5
  49. package/fesm2022/ngwr-bits-border-glow.mjs.map +1 -1
  50. package/fesm2022/ngwr-bits-circular-text.mjs +3 -3
  51. package/fesm2022/ngwr-bits-click-spark.mjs +3 -3
  52. package/fesm2022/ngwr-bits-confetti.mjs +3 -3
  53. package/fesm2022/ngwr-bits-decrypt-text.mjs +3 -3
  54. package/fesm2022/ngwr-bits-dot-grid-testing.mjs +40 -0
  55. package/fesm2022/ngwr-bits-dot-grid-testing.mjs.map +1 -0
  56. package/fesm2022/ngwr-bits-dot-grid.mjs +482 -0
  57. package/fesm2022/ngwr-bits-dot-grid.mjs.map +1 -0
  58. package/fesm2022/ngwr-bits-falling-text.mjs +3 -3
  59. package/fesm2022/ngwr-bits-fuzzy-text.mjs +3 -3
  60. package/fesm2022/ngwr-bits-glitch-text.mjs +3 -3
  61. package/fesm2022/ngwr-bits-gradient-text.mjs +3 -3
  62. package/fesm2022/ngwr-bits-iridescence-testing.mjs +31 -0
  63. package/fesm2022/ngwr-bits-iridescence-testing.mjs.map +1 -0
  64. package/fesm2022/ngwr-bits-iridescence.mjs +591 -0
  65. package/fesm2022/ngwr-bits-iridescence.mjs.map +1 -0
  66. package/fesm2022/ngwr-bits-marquee-testing.mjs +1 -1
  67. package/fesm2022/ngwr-bits-marquee-testing.mjs.map +1 -1
  68. package/fesm2022/ngwr-bits-marquee.mjs +7 -7
  69. package/fesm2022/ngwr-bits-marquee.mjs.map +1 -1
  70. package/fesm2022/ngwr-bits-ripple-grid-testing.mjs +40 -0
  71. package/fesm2022/ngwr-bits-ripple-grid-testing.mjs.map +1 -0
  72. package/fesm2022/ngwr-bits-ripple-grid.mjs +805 -0
  73. package/fesm2022/ngwr-bits-ripple-grid.mjs.map +1 -0
  74. package/fesm2022/ngwr-bits-rotating-text.mjs +3 -3
  75. package/fesm2022/ngwr-bits-shiny-text.mjs +6 -6
  76. package/fesm2022/ngwr-bits-splash-cursor.mjs +3 -3
  77. package/fesm2022/ngwr-bits-split-text.mjs +3 -3
  78. package/fesm2022/ngwr-bits-spotlight-card-testing.mjs +1 -1
  79. package/fesm2022/ngwr-bits-spotlight-card-testing.mjs.map +1 -1
  80. package/fesm2022/ngwr-bits-spotlight-card.mjs +10 -10
  81. package/fesm2022/ngwr-bits-spotlight-card.mjs.map +1 -1
  82. package/fesm2022/ngwr-bits-star-border-testing.mjs +1 -1
  83. package/fesm2022/ngwr-bits-star-border-testing.mjs.map +1 -1
  84. package/fesm2022/ngwr-bits-star-border.mjs +7 -7
  85. package/fesm2022/ngwr-bits-star-border.mjs.map +1 -1
  86. package/fesm2022/ngwr-bits-threads-testing.mjs +41 -0
  87. package/fesm2022/ngwr-bits-threads-testing.mjs.map +1 -0
  88. package/fesm2022/ngwr-bits-threads.mjs +482 -0
  89. package/fesm2022/ngwr-bits-threads.mjs.map +1 -0
  90. package/fesm2022/ngwr-bits-tilt-card.mjs +6 -6
  91. package/fesm2022/ngwr-bits-typewriter.mjs +3 -3
  92. package/fesm2022/ngwr-bits-waves-testing.mjs.map +1 -1
  93. package/fesm2022/ngwr-bits-waves.mjs +60 -41
  94. package/fesm2022/ngwr-bits-waves.mjs.map +1 -1
  95. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  96. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  97. package/fesm2022/ngwr-burger.mjs +3 -3
  98. package/fesm2022/ngwr-button.mjs +6 -6
  99. package/fesm2022/ngwr-calendar.mjs +3 -3
  100. package/fesm2022/ngwr-card.mjs +9 -9
  101. package/fesm2022/ngwr-carousel.mjs +6 -6
  102. package/fesm2022/ngwr-cascader.mjs +5 -5
  103. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  104. package/fesm2022/ngwr-charts-bar-chart-testing.mjs +127 -3
  105. package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
  106. package/fesm2022/ngwr-charts-bar-chart.mjs +683 -49
  107. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  108. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +161 -0
  109. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -0
  110. package/fesm2022/ngwr-charts-boxplot-chart.mjs +517 -0
  111. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -0
  112. package/fesm2022/ngwr-charts-bullet-chart-testing.mjs +68 -0
  113. package/fesm2022/ngwr-charts-bullet-chart-testing.mjs.map +1 -0
  114. package/fesm2022/ngwr-charts-bullet-chart.mjs +459 -0
  115. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -0
  116. package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs +27 -0
  117. package/fesm2022/ngwr-charts-calendar-heatmap-testing.mjs.map +1 -1
  118. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +96 -17
  119. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  120. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +107 -0
  121. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -0
  122. package/fesm2022/ngwr-charts-candlestick-chart.mjs +508 -0
  123. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -0
  124. package/fesm2022/ngwr-charts-chart-legend-testing.mjs +126 -0
  125. package/fesm2022/ngwr-charts-chart-legend-testing.mjs.map +1 -0
  126. package/fesm2022/ngwr-charts-chart-legend.mjs +251 -0
  127. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -0
  128. package/fesm2022/ngwr-charts-core.mjs +383 -0
  129. package/fesm2022/ngwr-charts-core.mjs.map +1 -0
  130. package/fesm2022/ngwr-charts-donut-chart-testing.mjs +10 -1
  131. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  132. package/fesm2022/ngwr-charts-donut-chart.mjs +187 -31
  133. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  134. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +100 -0
  135. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -0
  136. package/fesm2022/ngwr-charts-funnel-chart.mjs +415 -0
  137. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -0
  138. package/fesm2022/ngwr-charts-gauge-testing.mjs +9 -3
  139. package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
  140. package/fesm2022/ngwr-charts-gauge.mjs +9 -15
  141. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  142. package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs +120 -0
  143. package/fesm2022/ngwr-charts-heatmap-chart-testing.mjs.map +1 -0
  144. package/fesm2022/ngwr-charts-heatmap-chart.mjs +519 -0
  145. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -0
  146. package/fesm2022/ngwr-charts-line-chart-testing.mjs +43 -1
  147. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  148. package/fesm2022/ngwr-charts-line-chart.mjs +436 -122
  149. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  150. package/fesm2022/ngwr-charts-meter-group-testing.mjs +14 -2
  151. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  152. package/fesm2022/ngwr-charts-meter-group.mjs +101 -32
  153. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  154. package/fesm2022/ngwr-charts-radar-chart-testing.mjs +98 -0
  155. package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -0
  156. package/fesm2022/ngwr-charts-radar-chart.mjs +720 -0
  157. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -0
  158. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +132 -0
  159. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -0
  160. package/fesm2022/ngwr-charts-scatter-chart.mjs +545 -0
  161. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -0
  162. package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
  163. package/fesm2022/ngwr-charts-sparkline.mjs +14 -16
  164. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  165. package/fesm2022/ngwr-charts-treemap-chart-testing.mjs +103 -0
  166. package/fesm2022/ngwr-charts-treemap-chart-testing.mjs.map +1 -0
  167. package/fesm2022/ngwr-charts-treemap-chart.mjs +535 -0
  168. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -0
  169. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +131 -0
  170. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -0
  171. package/fesm2022/ngwr-charts-waterfall-chart.mjs +462 -0
  172. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -0
  173. package/fesm2022/ngwr-checkbox.mjs +6 -6
  174. package/fesm2022/ngwr-clipboard.mjs +3 -3
  175. package/fesm2022/ngwr-collapse.mjs +9 -9
  176. package/fesm2022/ngwr-color-picker.mjs +6 -6
  177. package/fesm2022/ngwr-command-palette.mjs +3 -3
  178. package/fesm2022/ngwr-compare.mjs +3 -3
  179. package/fesm2022/ngwr-context-menu.mjs +12 -12
  180. package/fesm2022/ngwr-cookie.mjs +3 -3
  181. package/fesm2022/ngwr-counter.mjs +6 -6
  182. package/fesm2022/ngwr-date-picker.mjs +21 -21
  183. package/fesm2022/ngwr-date.mjs +6 -6
  184. package/fesm2022/ngwr-density.mjs +6 -6
  185. package/fesm2022/ngwr-descriptions.mjs +6 -6
  186. package/fesm2022/ngwr-dialog.mjs +15 -15
  187. package/fesm2022/ngwr-directives.mjs +12 -12
  188. package/fesm2022/ngwr-divider.mjs +3 -3
  189. package/fesm2022/ngwr-drawer.mjs +18 -18
  190. package/fesm2022/ngwr-dropdown.mjs +9 -9
  191. package/fesm2022/ngwr-editor.mjs +3 -3
  192. package/fesm2022/ngwr-empty.mjs +3 -3
  193. package/fesm2022/ngwr-event-calendar.mjs +6 -6
  194. package/fesm2022/ngwr-file-upload.mjs +3 -3
  195. package/fesm2022/ngwr-form.mjs +9 -9
  196. package/fesm2022/ngwr-graph.mjs +6 -6
  197. package/fesm2022/ngwr-hotkey.mjs +6 -6
  198. package/fesm2022/ngwr-i18n-ar.mjs +90 -4
  199. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  200. package/fesm2022/ngwr-i18n-cs.mjs +90 -4
  201. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  202. package/fesm2022/ngwr-i18n-de.mjs +90 -4
  203. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  204. package/fesm2022/ngwr-i18n-en.mjs +90 -4
  205. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  206. package/fesm2022/ngwr-i18n-es.mjs +90 -4
  207. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  208. package/fesm2022/ngwr-i18n-fr.mjs +90 -4
  209. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  210. package/fesm2022/ngwr-i18n-he.mjs +90 -4
  211. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  212. package/fesm2022/ngwr-i18n-hi.mjs +90 -4
  213. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  214. package/fesm2022/ngwr-i18n-id.mjs +90 -4
  215. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  216. package/fesm2022/ngwr-i18n-it.mjs +90 -4
  217. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  218. package/fesm2022/ngwr-i18n-ja.mjs +90 -4
  219. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  220. package/fesm2022/ngwr-i18n-ko.mjs +90 -4
  221. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  222. package/fesm2022/ngwr-i18n-nl.mjs +90 -4
  223. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  224. package/fesm2022/ngwr-i18n-pl.mjs +90 -4
  225. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  226. package/fesm2022/ngwr-i18n-pt.mjs +90 -4
  227. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  228. package/fesm2022/ngwr-i18n-ru.mjs +90 -4
  229. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  230. package/fesm2022/ngwr-i18n-sv.mjs +90 -4
  231. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  232. package/fesm2022/ngwr-i18n-tr.mjs +90 -4
  233. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  234. package/fesm2022/ngwr-i18n-uk.mjs +90 -4
  235. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  236. package/fesm2022/ngwr-i18n-vi.mjs +90 -4
  237. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  238. package/fesm2022/ngwr-i18n-zh-tw.mjs +90 -4
  239. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  240. package/fesm2022/ngwr-i18n-zh.mjs +90 -4
  241. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  242. package/fesm2022/ngwr-i18n.mjs +9 -9
  243. package/fesm2022/ngwr-icon.mjs +6 -6
  244. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  245. package/fesm2022/ngwr-input-number.mjs +3 -3
  246. package/fesm2022/ngwr-input-otp.mjs +3 -3
  247. package/fesm2022/ngwr-input.mjs +15 -15
  248. package/fesm2022/ngwr-keyboard.mjs +3 -3
  249. package/fesm2022/ngwr-knob.mjs +3 -3
  250. package/fesm2022/ngwr-layout.mjs +15 -15
  251. package/fesm2022/ngwr-lightbox.mjs +5 -5
  252. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  253. package/fesm2022/ngwr-list.mjs +8 -8
  254. package/fesm2022/ngwr-list.mjs.map +1 -1
  255. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  256. package/fesm2022/ngwr-mention.mjs +6 -6
  257. package/fesm2022/ngwr-meta.mjs +6 -6
  258. package/fesm2022/ngwr-overlay.mjs +6 -6
  259. package/fesm2022/ngwr-page-header.mjs +3 -3
  260. package/fesm2022/ngwr-pagination.mjs +3 -3
  261. package/fesm2022/ngwr-pipes.mjs +21 -21
  262. package/fesm2022/ngwr-platform.mjs +6 -6
  263. package/fesm2022/ngwr-popconfirm.mjs +6 -6
  264. package/fesm2022/ngwr-popover.mjs +43 -20
  265. package/fesm2022/ngwr-popover.mjs.map +1 -1
  266. package/fesm2022/ngwr-progress.mjs +3 -3
  267. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  268. package/fesm2022/ngwr-qr.mjs +4 -3
  269. package/fesm2022/ngwr-qr.mjs.map +1 -1
  270. package/fesm2022/ngwr-radio.mjs +6 -6
  271. package/fesm2022/ngwr-rating.mjs +3 -3
  272. package/fesm2022/ngwr-result.mjs +12 -12
  273. package/fesm2022/ngwr-schema-form.mjs +3 -3
  274. package/fesm2022/ngwr-scroll.mjs +3 -3
  275. package/fesm2022/ngwr-segmented.mjs +3 -3
  276. package/fesm2022/ngwr-select.mjs +12 -12
  277. package/fesm2022/ngwr-sidebar.mjs +3 -3
  278. package/fesm2022/ngwr-skeleton.mjs +3 -3
  279. package/fesm2022/ngwr-slider.mjs +3 -3
  280. package/fesm2022/ngwr-sortable-list.mjs +11 -11
  281. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  282. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  283. package/fesm2022/ngwr-spinner.mjs +3 -3
  284. package/fesm2022/ngwr-splitter.mjs +3 -3
  285. package/fesm2022/ngwr-statistic.mjs +9 -9
  286. package/fesm2022/ngwr-stepper.mjs +6 -6
  287. package/fesm2022/ngwr-storage.mjs +3 -3
  288. package/fesm2022/ngwr-switch.mjs +3 -3
  289. package/fesm2022/ngwr-table.mjs +18 -18
  290. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  291. package/fesm2022/ngwr-tabs.mjs +6 -6
  292. package/fesm2022/ngwr-textarea.mjs +3 -3
  293. package/fesm2022/ngwr-theme.mjs +3 -3
  294. package/fesm2022/ngwr-timeline.mjs +6 -6
  295. package/fesm2022/ngwr-toast-testing.mjs +2 -1
  296. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  297. package/fesm2022/ngwr-toast.mjs +34 -15
  298. package/fesm2022/ngwr-toast.mjs.map +1 -1
  299. package/fesm2022/ngwr-toolbar.mjs +3 -3
  300. package/fesm2022/ngwr-tour.mjs +6 -6
  301. package/fesm2022/ngwr-transfer.mjs +3 -3
  302. package/fesm2022/ngwr-tree.mjs +3 -3
  303. package/fesm2022/ngwr-typography.mjs +3 -3
  304. package/fesm2022/ngwr-utils.mjs +31 -1
  305. package/fesm2022/ngwr-utils.mjs.map +1 -1
  306. package/fesm2022/ngwr-version.mjs +1 -1
  307. package/fesm2022/ngwr-version.mjs.map +1 -1
  308. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  309. package/fesm2022/ngwr-window-testing.mjs +61 -5
  310. package/fesm2022/ngwr-window-testing.mjs.map +1 -1
  311. package/fesm2022/ngwr-window.mjs +1538 -895
  312. package/fesm2022/ngwr-window.mjs.map +1 -1
  313. package/fesm2022/ngwr.mjs.map +1 -1
  314. package/i18n/ar.json +84 -4
  315. package/i18n/cs.json +84 -4
  316. package/i18n/de.json +84 -4
  317. package/i18n/en.json +84 -4
  318. package/i18n/es.json +84 -4
  319. package/i18n/fr.json +84 -4
  320. package/i18n/he.json +84 -4
  321. package/i18n/hi.json +84 -4
  322. package/i18n/id.json +84 -4
  323. package/i18n/it.json +84 -4
  324. package/i18n/ja.json +84 -4
  325. package/i18n/ko.json +84 -4
  326. package/i18n/nl.json +84 -4
  327. package/i18n/pl.json +84 -4
  328. package/i18n/pt.json +84 -4
  329. package/i18n/ru.json +84 -4
  330. package/i18n/sv.json +84 -4
  331. package/i18n/tr.json +84 -4
  332. package/i18n/uk.json +84 -4
  333. package/i18n/vi.json +84 -4
  334. package/i18n/zh-TW.json +84 -4
  335. package/i18n/zh.json +84 -4
  336. package/llms-full.txt +266 -9
  337. package/llms.txt +30 -7
  338. package/mcp/api.js +69 -1
  339. package/mcp/catalog.js +10 -1
  340. package/mcp/server.js +15 -1
  341. package/mcp/tools.js +122 -26
  342. package/package.json +132 -1
  343. package/popover/styles/_index.scss +75 -7
  344. package/schematics/component-style/index.js +3 -0
  345. package/schematics/migrations/v15/index.js +3 -26
  346. package/schematics/ng-add/index.js +2 -2
  347. package/schematics/use/symbol-map.json +14 -0
  348. package/schematics/utility/global-styles.js +19 -4
  349. package/schematics/utility/v15-moves.js +55 -0
  350. package/skills/ngwr/SKILL.md +8 -2
  351. package/skills/ngwr/references/catalog.md +28 -0
  352. package/skills/ngwr/references/setup.md +5 -4
  353. package/theme/styles/_focus.scss +8 -0
  354. package/toast/styles/_index.scss +103 -12
  355. package/types/ngwr-bits-aurora.d.ts +11 -0
  356. package/types/ngwr-bits-border-glow-testing.d.ts +5 -6
  357. package/types/ngwr-bits-border-glow.d.ts +5 -1
  358. package/types/ngwr-bits-dot-grid-testing.d.ts +92 -0
  359. package/types/ngwr-bits-dot-grid.d.ts +158 -0
  360. package/types/ngwr-bits-iridescence-testing.d.ts +85 -0
  361. package/types/ngwr-bits-iridescence.d.ts +244 -0
  362. package/types/ngwr-bits-ripple-grid-testing.d.ts +96 -0
  363. package/types/ngwr-bits-ripple-grid.d.ts +294 -0
  364. package/types/ngwr-bits-splash-cursor.d.ts +0 -1
  365. package/types/ngwr-bits-spotlight-card-testing.d.ts +3 -1
  366. package/types/ngwr-bits-star-border-testing.d.ts +7 -7
  367. package/types/ngwr-bits-threads-testing.d.ts +97 -0
  368. package/types/ngwr-bits-threads.d.ts +216 -0
  369. package/types/ngwr-bits-waves-testing.d.ts +1 -1
  370. package/types/ngwr-bits-waves.d.ts +20 -3
  371. package/types/ngwr-charts-bar-chart-testing.d.ts +193 -14
  372. package/types/ngwr-charts-bar-chart.d.ts +546 -38
  373. package/types/ngwr-charts-boxplot-chart-testing.d.ts +165 -0
  374. package/types/ngwr-charts-boxplot-chart.d.ts +308 -0
  375. package/types/ngwr-charts-bullet-chart-testing.d.ts +99 -0
  376. package/types/ngwr-charts-bullet-chart.d.ts +262 -0
  377. package/types/ngwr-charts-calendar-heatmap-testing.d.ts +32 -1
  378. package/types/ngwr-charts-calendar-heatmap.d.ts +55 -6
  379. package/types/ngwr-charts-candlestick-chart-testing.d.ts +135 -0
  380. package/types/ngwr-charts-candlestick-chart.d.ts +361 -0
  381. package/types/ngwr-charts-chart-legend-testing.d.ts +84 -0
  382. package/types/ngwr-charts-chart-legend.d.ts +178 -0
  383. package/types/ngwr-charts-core.d.ts +391 -0
  384. package/types/ngwr-charts-donut-chart-testing.d.ts +28 -5
  385. package/types/ngwr-charts-donut-chart.d.ts +124 -12
  386. package/types/ngwr-charts-funnel-chart-testing.d.ts +130 -0
  387. package/types/ngwr-charts-funnel-chart.d.ts +296 -0
  388. package/types/ngwr-charts-gauge-testing.d.ts +5 -0
  389. package/types/ngwr-charts-gauge.d.ts +6 -4
  390. package/types/ngwr-charts-heatmap-chart-testing.d.ts +148 -0
  391. package/types/ngwr-charts-heatmap-chart.d.ts +359 -0
  392. package/types/ngwr-charts-line-chart-testing.d.ts +72 -11
  393. package/types/ngwr-charts-line-chart.d.ts +291 -67
  394. package/types/ngwr-charts-meter-group-testing.d.ts +16 -2
  395. package/types/ngwr-charts-meter-group.d.ts +71 -11
  396. package/types/ngwr-charts-radar-chart-testing.d.ts +162 -0
  397. package/types/ngwr-charts-radar-chart.d.ts +461 -0
  398. package/types/ngwr-charts-scatter-chart-testing.d.ts +147 -0
  399. package/types/ngwr-charts-scatter-chart.d.ts +396 -0
  400. package/types/ngwr-charts-sparkline-testing.d.ts +4 -1
  401. package/types/ngwr-charts-sparkline.d.ts +8 -6
  402. package/types/ngwr-charts-treemap-chart-testing.d.ts +131 -0
  403. package/types/ngwr-charts-treemap-chart.d.ts +295 -0
  404. package/types/ngwr-charts-waterfall-chart-testing.d.ts +149 -0
  405. package/types/ngwr-charts-waterfall-chart.d.ts +338 -0
  406. package/types/ngwr-color-picker.d.ts +0 -21
  407. package/types/ngwr-dropdown.d.ts +0 -52
  408. package/types/ngwr-editor.d.ts +2 -84
  409. package/types/ngwr-i18n.d.ts +0 -15
  410. package/types/ngwr-mention.d.ts +0 -13
  411. package/types/ngwr-popconfirm.d.ts +0 -33
  412. package/types/ngwr-popover.d.ts +29 -53
  413. package/types/ngwr-toast-testing.d.ts +6 -1
  414. package/types/ngwr-tour.d.ts +0 -2
  415. package/types/ngwr-utils.d.ts +49 -7
  416. package/types/ngwr-version.d.ts +1 -1
  417. package/types/ngwr-window-testing.d.ts +65 -7
  418. package/types/ngwr-window.d.ts +831 -207
  419. package/types/ngwr.d.ts +1 -0
  420. package/window/styles/_index.scss +528 -82
@@ -0,0 +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 chartAxis,\n chartColor,\n chartDash,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { useI18nText } from 'ngwr/i18n';\nimport { useChartTooltip } from 'ngwr/popover';\nimport { clamp, round } 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) ? clamp(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 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 ?? chartColor(index),\n dash: chartDash(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 `chartAxis` 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) => round(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 chartAxis(Number.NaN, Number.NaN);\n const peak = Math.max(...values);\n if (this.polar()) {\n return peak > 0 ? chartAxis(0, peak, { includeZero: true, tickCount: rings }) : chartAxis(Number.NaN, Number.NaN);\n }\n return chartAxis(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 = clamp((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,OAAO,MAAM;CACjB,IAAI,WAAW,OAAO;CACtB,MAAM,MAAM,KAAK,MAAM,KAAK,MAAM,GAAG,CAAC;CAItC,KAAK,IAAI,IAAI,MAAM,GAAG,KAAK,MAAM,GAAG,KAClC,KAAK,MAAM,YAAY,QAAQ;EAE7B,MA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AA,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"}
@@ -0,0 +1,132 @@
1
+ import { ComponentHarness, HarnessPredicate } from "@angular/cdk/testing";
2
+ import { WrChartLegendHarness } from "ngwr/charts/chart-legend/testing";
3
+ /**
4
+ * @license
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
8
+ */
9
+ var TableGroupHarness = class extends ComponentHarness {
10
+ static hostSelector = ".wr-chart-table tbody";
11
+ async read() {
12
+ const groupHeader = await this.locatorForOptional("th[scope=\"rowgroup\"]")();
13
+ const series = groupHeader ? await groupHeader.text() : "";
14
+ const rows = await this.locatorForAll(TableRowHarness)();
15
+ return Promise.all(rows.map((row) => row.read(series)));
16
+ }
17
+ };
18
+ var TableRowHarness = class extends ComponentHarness {
19
+ static hostSelector = "tr";
20
+ async read(series) {
21
+ const header = await this.locatorFor("th[scope=\"row\"]")();
22
+ const cells = await this.locatorForAll("td:not([rowspan])")();
23
+ return {
24
+ series,
25
+ header: await header.text(),
26
+ cells: await Promise.all(cells.map((cell) => cell.text()))
27
+ };
28
+ }
29
+ };
30
+ var PointHarness = class extends ComponentHarness {
31
+ static hostSelector = ".wr-scatter-chart__point";
32
+ shape = this.locatorForOptional(".wr-scatter-chart__marker");
33
+ async read() {
34
+ const point = await this.host();
35
+ const sizeRaw = await point.getAttribute("data-size");
36
+ const marker = await point.getAttribute("data-marker");
37
+ if (!marker) throw new Error("WrScatterChartHarness.getPoints(): a marker carries no data-marker, which names its shape.");
38
+ const shape = await this.shape();
39
+ return {
40
+ series: await numberAttribute(point, "data-series"),
41
+ x: await numberAttribute(point, "data-x"),
42
+ y: await numberAttribute(point, "data-y"),
43
+ size: sizeRaw === null ? null : await numberAttribute(point, "data-size"),
44
+ marker,
45
+ color: shape ? await shape.getAttribute("fill") : null,
46
+ radius: await numberAttribute(point, "data-radius"),
47
+ left: await numberAttribute(point, "x"),
48
+ top: await numberAttribute(point, "y")
49
+ };
50
+ }
51
+ };
52
+ async function numberAttribute(element, name) {
53
+ const raw = await element.getAttribute(name);
54
+ const value = raw === null ? NaN : Number.parseFloat(raw);
55
+ if (!Number.isFinite(value)) throw new Error(`WrScatterChartHarness.getPoints(): a marker carries ${name}="${raw ?? ""}", which the component writes as a finite number on every point it draws.`);
56
+ return value;
57
+ }
58
+ var WrScatterChartHarness = class WrScatterChartHarness extends ComponentHarness {
59
+ static hostSelector = "wr-scatter-chart";
60
+ static with(options = {}) {
61
+ return new HarnessPredicate(WrScatterChartHarness, options).addOption("ariaLabel", options.ariaLabel, (harness, label) => HarnessPredicate.stringMatches(harness.getAccessibleName(), label)).addOption("seriesLabel", options.seriesLabel, async (harness, label) => {
62
+ for (const series of await harness.getSeriesLabels()) if (await HarnessPredicate.stringMatches(series, label)) return true;
63
+ return false;
64
+ });
65
+ }
66
+ async getAccessibleName() {
67
+ return (await this.locatorFor(".wr-scatter-chart__plot")()).getAttribute("aria-label");
68
+ }
69
+ async hasLegend() {
70
+ return await this.locatorForOptional(".wr-scatter-chart__legend")() !== null;
71
+ }
72
+ async getSeriesLabels() {
73
+ const labels = await this.locatorForAll(".wr-scatter-chart__legend .wr-chart-legend__label")();
74
+ return Promise.all(labels.map((label) => label.text()));
75
+ }
76
+ async getLegendHarness() {
77
+ const legend = await this.locatorForOptional(WrChartLegendHarness)();
78
+ if (!legend) throw new Error("WrScatterChartHarness.getLegendHarness(): the chart draws no legend — `showLegend` is off or there are no series. Ask hasLegend() first.");
79
+ return legend;
80
+ }
81
+ async getPointCount() {
82
+ return (await this.locatorForAll(".wr-scatter-chart__point")()).length;
83
+ }
84
+ async getPoints() {
85
+ const points = await this.locatorForAll(PointHarness)();
86
+ return Promise.all(points.map((point) => point.read()));
87
+ }
88
+ async hasGrid() {
89
+ return await this.locatorForOptional(".wr-scatter-chart__grid-line")() !== null;
90
+ }
91
+ async getXTicks() {
92
+ const ticks = await this.locatorForAll(".wr-scatter-chart__x-tick")();
93
+ return Promise.all(ticks.map((tick) => tick.text()));
94
+ }
95
+ async getYTicks() {
96
+ const ticks = await this.locatorForAll(".wr-scatter-chart__y-tick")();
97
+ return Promise.all(ticks.map((tick) => tick.text()));
98
+ }
99
+ async getAxisTitles() {
100
+ const x = await this.locatorForOptional(".wr-scatter-chart__x-title")();
101
+ const y = await this.locatorForOptional(".wr-scatter-chart__y-title")();
102
+ return {
103
+ x: x ? await x.text() : null,
104
+ y: y ? await y.text() : null
105
+ };
106
+ }
107
+ async hasDataTable() {
108
+ return await this.locatorForOptional(".wr-chart-table")() !== null;
109
+ }
110
+ async getTableColumns() {
111
+ await this.assertDataTable("getTableColumns");
112
+ const headings = await this.locatorForAll(".wr-chart-table thead th[scope=\"col\"]")();
113
+ return Promise.all(headings.map((heading) => heading.text()));
114
+ }
115
+ async getTableRows() {
116
+ await this.assertDataTable("getTableRows");
117
+ const groups = await this.locatorForAll(TableGroupHarness)();
118
+ return (await Promise.all(groups.map((group) => group.read()))).flat();
119
+ }
120
+ async getPlotHeight() {
121
+ const style = await (await this.locatorFor(".wr-scatter-chart__plot")()).getAttribute("style");
122
+ const match = /height:\s*([\d.]+)px/.exec(style ?? "");
123
+ if (!match) throw new Error(`WrScatterChartHarness.getPlotHeight(): no inline height on .wr-scatter-chart__plot (style: "${style ?? ""}"). The component writes one unconditionally, so its absence is the bug rather than a zero.`);
124
+ return Number.parseFloat(match[1]);
125
+ }
126
+ async assertDataTable(method) {
127
+ if (!await this.hasDataTable()) throw new Error(`WrScatterChartHarness.${method}(): the chart renders no data table — \`dataTable\` is off. Ask hasDataTable() first.`);
128
+ }
129
+ };
130
+ export { WrScatterChartHarness };
131
+
132
+ //# sourceMappingURL=ngwr-charts-scatter-chart-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-charts-scatter-chart-testing.mjs","names":[],"sources":["../../../projects/lib/charts/scatter-chart/testing/wr-scatter-chart-harness.ts"],"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 { ComponentHarness, HarnessPredicate, type TestElement } from '@angular/cdk/testing';\n\nimport { WrChartLegendHarness } from 'ngwr/charts/chart-legend/testing';\n\nimport type {\n WrScatterChartAxisTitles,\n WrScatterChartHarnessFilters,\n WrScatterChartHarnessPoint,\n WrScatterChartTableRow,\n} from './types';\n\n/** One series' rows: its `<tbody>`, headed down its first column by the series' name. */\nclass TableGroupHarness extends ComponentHarness {\n static hostSelector = '.wr-chart-table tbody';\n\n async read(): Promise<WrScatterChartTableRow[]> {\n const groupHeader = await this.locatorForOptional('th[scope=\"rowgroup\"]')();\n const series = groupHeader ? await groupHeader.text() : '';\n const rows = await this.locatorForAll(TableRowHarness)();\n return Promise.all(rows.map(row => row.read(series)));\n }\n}\n\nclass TableRowHarness extends ComponentHarness {\n static hostSelector = 'tr';\n\n async read(series: string): Promise<WrScatterChartTableRow> {\n const header = await this.locatorFor('th[scope=\"row\"]')();\n // The group column of a group with no name is an empty `<td>` spanning its rows, and\n // it is no value of the point's.\n const cells = await this.locatorForAll('td:not([rowspan])')();\n return { series, header: await header.text(), cells: await Promise.all(cells.map(cell => cell.text())) };\n }\n}\n\n/** One marker: the nested `<svg>` the component placed, and the shape inside it. */\nclass PointHarness extends ComponentHarness {\n static hostSelector = '.wr-scatter-chart__point';\n\n private readonly shape = this.locatorForOptional('.wr-scatter-chart__marker');\n\n async read(): Promise<WrScatterChartHarnessPoint> {\n const point = await this.host();\n const sizeRaw = await point.getAttribute('data-size');\n const marker = await point.getAttribute('data-marker');\n if (!marker) {\n throw new Error('WrScatterChartHarness.getPoints(): a marker carries no data-marker, which names its shape.');\n }\n const shape = await this.shape();\n return {\n series: await numberAttribute(point, 'data-series'),\n x: await numberAttribute(point, 'data-x'),\n y: await numberAttribute(point, 'data-y'),\n size: sizeRaw === null ? null : await numberAttribute(point, 'data-size'),\n marker,\n color: shape ? await shape.getAttribute('fill') : null,\n radius: await numberAttribute(point, 'data-radius'),\n left: await numberAttribute(point, 'x'),\n top: await numberAttribute(point, 'y'),\n };\n }\n}\n\n/** A finite number off one attribute, or a sentence saying which one the marker lacks. */\nasync function numberAttribute(element: TestElement, name: string): Promise<number> {\n const raw = await element.getAttribute(name);\n const value = raw === null ? Number.NaN : Number.parseFloat(raw);\n if (!Number.isFinite(value)) {\n throw new Error(\n `WrScatterChartHarness.getPoints(): a marker carries ${name}=\"${raw ?? ''}\", which the component writes as a ` +\n 'finite number on every point it draws.'\n );\n }\n return value;\n}\n\n/**\n * Test harness for `<wr-scatter-chart>`.\n *\n * **Points are read off what the component WROTE, never off a layout.** jsdom lays\n * nothing out, so a measured position would read 0 for a working chart and a broken one\n * alike. Every marker is a nested `<svg>` the component places by percentage, and it\n * carries the point's values and shape in `data-*` attributes beside that placement —\n * so {@link getPoints} answers both questions a spec has: which point is this, and where\n * did the chart put it. A point at the right value and the wrong percentage is exactly\n * the defect worth catching. The marker's path `d` is not read: its numbers are a\n * rendering detail of each shape.\n *\n * **There is deliberately no hover method.** The tooltip opens on the point nearest the\n * pointer, measured against the drawing's box, which jsdom reports as 0×0 — so every\n * synthetic move resolves to nothing, and a `hoverPoint()` would answer \"no tooltip\" for\n * a working chart. A spec that needs the tooltip stubs the drawing's\n * `getBoundingClientRect` and dispatches the `mousemove` itself, as the component's own\n * spec does.\n *\n * @example\n * ```ts\n * const chart = await loader.getHarness(WrScatterChartHarness);\n *\n * expect(await chart.getPointCount()).toBe(6);\n * expect(await chart.getAxisTitles()).toEqual({ x: 'Price', y: 'Rating' });\n * expect((await chart.getPoints())[0]).toMatchObject({ x: 899, y: 4.1, marker: 'circle' });\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrScatterChartHarness extends ComponentHarness {\n static hostSelector = 'wr-scatter-chart';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrScatterChartHarnessFilters = {}): HarnessPredicate<WrScatterChartHarness> {\n return new HarnessPredicate(WrScatterChartHarness, options)\n .addOption('ariaLabel', options.ariaLabel, (harness, label) =>\n HarnessPredicate.stringMatches(harness.getAccessibleName(), label)\n )\n .addOption('seriesLabel', options.seriesLabel, async (harness, label) => {\n for (const series of await harness.getSeriesLabels()) {\n if (await HarnessPredicate.stringMatches(series, label)) return true;\n }\n return false;\n });\n }\n\n /** The plot's accessible name — the only name the drawing has. */\n async getAccessibleName(): Promise<string | null> {\n return (await this.locatorFor('.wr-scatter-chart__plot')()).getAttribute('aria-label');\n }\n\n /** Whether the legend is rendered (`showLegend`, and at least one series). */\n async hasLegend(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-scatter-chart__legend')()) !== null;\n }\n\n /** The series names from the legend, in order — hidden series included, since their rows stay. */\n async getSeriesLabels(): Promise<string[]> {\n const labels = await this.locatorForAll('.wr-scatter-chart__legend .wr-chart-legend__label')();\n return Promise.all(labels.map(label => label.text()));\n }\n\n /**\n * The legend, as a {@link WrChartLegendHarness}: each row's marker and hidden state\n * and, with `toggleableLegend`, the toggles that show and hide a series.\n *\n * Throws when the chart draws no legend (`showLegend` off, or no series) rather than\n * answering with an empty one: {@link hasLegend} is the question for that.\n */\n async getLegendHarness(): Promise<WrChartLegendHarness> {\n const legend = await this.locatorForOptional(WrChartLegendHarness)();\n if (!legend) {\n throw new Error(\n 'WrScatterChartHarness.getLegendHarness(): the chart draws no legend — `showLegend` is off or there are no ' +\n 'series. Ask hasLegend() first.'\n );\n }\n return legend;\n }\n\n /**\n * How many points were drawn: every point of every series shown whose `x` and `y` are\n * finite. A hidden series draws none, and keeps its legend row.\n */\n async getPointCount(): Promise<number> {\n return (await this.locatorForAll('.wr-scatter-chart__point')()).length;\n }\n\n /**\n * Every drawn point, in DRAWING order — largest first, then by series — with its values,\n * its marker and the percentages the component placed its centre at.\n *\n * Throws on a marker missing any of what the component writes on every one, rather than\n * answering with a `NaN` a spec could compare against.\n */\n async getPoints(): Promise<WrScatterChartHarnessPoint[]> {\n const points = await this.locatorForAll(PointHarness)();\n return Promise.all(points.map(point => point.read()));\n }\n\n /** Whether the gridlines are drawn (`showGrid`). */\n async hasGrid(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-scatter-chart__grid-line')()) !== null;\n }\n\n /** The x-axis tick labels, left to right; `[]` with `showGrid` off. */\n async getXTicks(): Promise<string[]> {\n const ticks = await this.locatorForAll('.wr-scatter-chart__x-tick')();\n return Promise.all(ticks.map(tick => tick.text()));\n }\n\n /** The y-axis tick labels, top to bottom; `[]` with `showGrid` off. */\n async getYTicks(): Promise<string[]> {\n const ticks = await this.locatorForAll('.wr-scatter-chart__y-tick')();\n return Promise.all(ticks.map(tick => tick.text()));\n }\n\n /**\n * The axes' names as drawn. The chart draws a name only when `xLabel` or `yLabel` is\n * given, so the catalog's fallbacks, which the tooltip and the data table use, never\n * appear here.\n */\n async getAxisTitles(): Promise<WrScatterChartAxisTitles> {\n const x = await this.locatorForOptional('.wr-scatter-chart__x-title')();\n const y = await this.locatorForOptional('.wr-scatter-chart__y-title')();\n return { x: x ? await x.text() : null, y: y ? await y.text() : null };\n }\n\n /** Whether the hidden data table is rendered (`dataTable`). */\n async hasDataTable(): Promise<boolean> {\n return (await this.locatorForOptional('.wr-chart-table')()) !== null;\n }\n\n /**\n * The data table's column headings: x, y, and size when a point shown has one.\n *\n * Throws when the chart renders no table (`dataTable` off), rather than answering with\n * no columns.\n */\n async getTableColumns(): Promise<string[]> {\n await this.assertDataTable('getTableColumns');\n const headings = await this.locatorForAll('.wr-chart-table thead th[scope=\"col\"]')();\n return Promise.all(headings.map(heading => heading.text()));\n }\n\n /**\n * The data table's rows, one per point shown, as a screen reader walks them: the\n * series' name over its group, the row header and the cells. Hidden series leave the\n * table.\n *\n * Throws when the chart renders no table (`dataTable` off), for the reason\n * {@link getTableColumns} gives.\n */\n async getTableRows(): Promise<WrScatterChartTableRow[]> {\n await this.assertDataTable('getTableRows');\n const groups = await this.locatorForAll(TableGroupHarness)();\n return (await Promise.all(groups.map(group => group.read()))).flat();\n }\n\n /**\n * The plot's height in pixels, read off the `style` ATTRIBUTE the component wrote,\n * not through `getCssValue()`, which answers from the laid-out box and so differs\n * between jsdom and a browser.\n */\n async getPlotHeight(): Promise<number> {\n const style = await (await this.locatorFor('.wr-scatter-chart__plot')()).getAttribute('style');\n const match = /height:\\s*([\\d.]+)px/.exec(style ?? '');\n if (!match) {\n throw new Error(\n `WrScatterChartHarness.getPlotHeight(): no inline height on .wr-scatter-chart__plot (style: \"${style ?? ''}\"). ` +\n 'The component writes one unconditionally, so its absence is the bug rather than a zero.'\n );\n }\n return Number.parseFloat(match[1]);\n }\n\n private async assertDataTable(method: string): Promise<void> {\n if (!(await this.hasDataTable())) {\n throw new Error(\n `WrScatterChartHarness.${method}(): the chart renders no data table — \\`dataTable\\` is off. Ask hasDataTable() first.`\n );\n }\n }\n}\n"],"mappings":";;;;;;;;AAmBA,IAAM,oBAAN,cAAgC,iBAAgB;CAC9C,OAAO,eAAe;CAEtB,MAAM,OAAI;EACR,MAAM,cAAc,MAAM,KAAK,mBAAmB,wBAAsB,CAAC,CAAA;EACzE,MAAM,SAAS,cAAc,MAAM,YAAY,KAAI,IAAK;EACxD,MAAM,OAAO,MAAM,KAAK,cAAc,eAAe,CAAC,CAAA;EACtD,OAAO,QAAQ,IAAI,KAAK,KAAI,QA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