ngwr 16.2.0 → 16.4.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 (418) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/carousel/styles/_index.scss +53 -1
  4. package/cascader/styles/_rules.scss +7 -0
  5. package/color-picker/styles/_index.scss +21 -0
  6. package/date-picker/styles/_index.scss +19 -0
  7. package/dropdown/styles/_index.scss +13 -19
  8. package/fesm2022/ngwr-affix.mjs +3 -3
  9. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  10. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  11. package/fesm2022/ngwr-alert.mjs +3 -3
  12. package/fesm2022/ngwr-anchor.mjs +17 -6
  13. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  14. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  15. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  16. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  17. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  18. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  19. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  20. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  21. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  22. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  23. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  25. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  26. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  27. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  28. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  29. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  30. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  31. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  32. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  33. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  34. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  35. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  36. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  37. package/fesm2022/ngwr-avatar.mjs +3 -3
  38. package/fesm2022/ngwr-back-top.mjs +3 -3
  39. package/fesm2022/ngwr-badge.mjs +129 -11
  40. package/fesm2022/ngwr-badge.mjs.map +1 -1
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  42. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  43. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  44. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  45. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  46. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  47. package/fesm2022/ngwr-burger.mjs +3 -3
  48. package/fesm2022/ngwr-button.mjs +6 -6
  49. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  50. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  51. package/fesm2022/ngwr-calendar.mjs +500 -73
  52. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  53. package/fesm2022/ngwr-card.mjs +9 -9
  54. package/fesm2022/ngwr-carousel-testing.mjs +24 -1
  55. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-carousel.mjs +73 -10
  57. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  58. package/fesm2022/ngwr-cascader.mjs +45 -37
  59. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  60. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  61. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  62. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  63. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  64. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  65. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  66. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  67. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  68. package/fesm2022/ngwr-charts-core.mjs +3 -3
  69. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  70. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  71. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  72. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  73. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  74. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  75. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  77. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  79. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  81. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  83. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  85. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  86. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  87. package/fesm2022/ngwr-checkbox.mjs +6 -6
  88. package/fesm2022/ngwr-clipboard.mjs +3 -3
  89. package/fesm2022/ngwr-collapse.mjs +9 -9
  90. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  91. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  92. package/fesm2022/ngwr-color-picker.mjs +153 -37
  93. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  94. package/fesm2022/ngwr-command-palette.mjs +3 -3
  95. package/fesm2022/ngwr-comment.mjs +10 -6
  96. package/fesm2022/ngwr-comment.mjs.map +1 -1
  97. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  98. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  99. package/fesm2022/ngwr-compare.mjs +3 -3
  100. package/fesm2022/ngwr-context-menu.mjs +28 -13
  101. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  102. package/fesm2022/ngwr-cookie.mjs +3 -3
  103. package/fesm2022/ngwr-copy-value.mjs +3 -3
  104. package/fesm2022/ngwr-counter.mjs +6 -6
  105. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  106. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  107. package/fesm2022/ngwr-date-picker.mjs +342 -69
  108. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  109. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  110. package/fesm2022/ngwr-date.mjs +59 -8
  111. package/fesm2022/ngwr-date.mjs.map +1 -1
  112. package/fesm2022/ngwr-density.mjs +6 -6
  113. package/fesm2022/ngwr-descriptions.mjs +6 -6
  114. package/fesm2022/ngwr-dialog.mjs +18 -18
  115. package/fesm2022/ngwr-directives.mjs +15 -15
  116. package/fesm2022/ngwr-divider.mjs +3 -3
  117. package/fesm2022/ngwr-drawer.mjs +51 -29
  118. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  119. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  120. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  121. package/fesm2022/ngwr-dropdown.mjs +70 -99
  122. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  123. package/fesm2022/ngwr-editor.mjs +4 -3
  124. package/fesm2022/ngwr-editor.mjs.map +1 -1
  125. package/fesm2022/ngwr-empty.mjs +3 -3
  126. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  127. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  128. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  129. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  130. package/fesm2022/ngwr-file-upload.mjs +279 -16
  131. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  132. package/fesm2022/ngwr-form.mjs +9 -9
  133. package/fesm2022/ngwr-form.mjs.map +1 -1
  134. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  135. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  136. package/fesm2022/ngwr-graph.mjs +664 -43
  137. package/fesm2022/ngwr-graph.mjs.map +1 -1
  138. package/fesm2022/ngwr-hotkey.mjs +6 -6
  139. package/fesm2022/ngwr-i18n-ar.mjs +27 -8
  140. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-cs.mjs +27 -8
  142. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-de.mjs +27 -8
  144. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-en.mjs +27 -8
  146. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-es.mjs +27 -8
  148. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-fr.mjs +27 -8
  150. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-he.mjs +27 -8
  152. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-hi.mjs +27 -8
  154. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-id.mjs +27 -8
  156. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-it.mjs +27 -8
  158. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-ja.mjs +27 -8
  160. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-ko.mjs +27 -8
  162. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-nl.mjs +27 -8
  164. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-pl.mjs +27 -8
  166. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-pt.mjs +27 -8
  168. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-ru.mjs +27 -8
  170. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-sv.mjs +27 -8
  172. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-tr.mjs +27 -8
  174. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-uk.mjs +27 -8
  176. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-vi.mjs +27 -8
  178. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-zh-tw.mjs +27 -8
  180. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-zh.mjs +27 -8
  182. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n.mjs +9 -9
  184. package/fesm2022/ngwr-icon.mjs +6 -6
  185. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  186. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  187. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  188. package/fesm2022/ngwr-input-number.mjs +68 -7
  189. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  190. package/fesm2022/ngwr-input-otp.mjs +23 -3
  191. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  192. package/fesm2022/ngwr-input-testing.mjs +24 -1
  193. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  194. package/fesm2022/ngwr-input.mjs +152 -36
  195. package/fesm2022/ngwr-input.mjs.map +1 -1
  196. package/fesm2022/ngwr-keyboard.mjs +3 -3
  197. package/fesm2022/ngwr-knob.mjs +3 -3
  198. package/fesm2022/ngwr-layout.mjs +15 -15
  199. package/fesm2022/ngwr-lightbox.mjs +8 -8
  200. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  201. package/fesm2022/ngwr-list.mjs +8 -8
  202. package/fesm2022/ngwr-list.mjs.map +1 -1
  203. package/fesm2022/ngwr-load-state.mjs +15 -15
  204. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  205. package/fesm2022/ngwr-mention.mjs +6 -6
  206. package/fesm2022/ngwr-meta.mjs +6 -6
  207. package/fesm2022/ngwr-overlay.mjs +175 -13
  208. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  209. package/fesm2022/ngwr-page-header.mjs +3 -3
  210. package/fesm2022/ngwr-pagination.mjs +6 -3
  211. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  212. package/fesm2022/ngwr-pipes.mjs +31 -29
  213. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  214. package/fesm2022/ngwr-platform.mjs +9 -9
  215. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  216. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  217. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  218. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  219. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  220. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  221. package/fesm2022/ngwr-popover.mjs +58 -156
  222. package/fesm2022/ngwr-popover.mjs.map +1 -1
  223. package/fesm2022/ngwr-progress.mjs +50 -9
  224. package/fesm2022/ngwr-progress.mjs.map +1 -1
  225. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  226. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  227. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  228. package/fesm2022/ngwr-qr.mjs +3 -3
  229. package/fesm2022/ngwr-radio.mjs +6 -6
  230. package/fesm2022/ngwr-rating.mjs +3 -3
  231. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  232. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  233. package/fesm2022/ngwr-resizable.mjs +3 -3
  234. package/fesm2022/ngwr-result.mjs +12 -12
  235. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  236. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  237. package/fesm2022/ngwr-schema-form.mjs +416 -19
  238. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  239. package/fesm2022/ngwr-scroll.mjs +3 -3
  240. package/fesm2022/ngwr-segmented.mjs +3 -3
  241. package/fesm2022/ngwr-select-testing.mjs +19 -0
  242. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  243. package/fesm2022/ngwr-select.mjs +361 -84
  244. package/fesm2022/ngwr-select.mjs.map +1 -1
  245. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  246. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  247. package/fesm2022/ngwr-sidebar.mjs +3 -3
  248. package/fesm2022/ngwr-skeleton.mjs +3 -3
  249. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  250. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  251. package/fesm2022/ngwr-slider.mjs +21 -3
  252. package/fesm2022/ngwr-slider.mjs.map +1 -1
  253. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  254. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  255. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  256. package/fesm2022/ngwr-spinner.mjs +3 -3
  257. package/fesm2022/ngwr-splitter.mjs +3 -3
  258. package/fesm2022/ngwr-statistic.mjs +9 -9
  259. package/fesm2022/ngwr-stepper.mjs +42 -11
  260. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  261. package/fesm2022/ngwr-storage.mjs +3 -3
  262. package/fesm2022/ngwr-switch.mjs +3 -3
  263. package/fesm2022/ngwr-table-testing.mjs +157 -3
  264. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-table.mjs +1051 -74
  266. package/fesm2022/ngwr-table.mjs.map +1 -1
  267. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  268. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  269. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  270. package/fesm2022/ngwr-tabs.mjs +15 -10
  271. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  272. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  273. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  274. package/fesm2022/ngwr-textarea.mjs +128 -16
  275. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  276. package/fesm2022/ngwr-theme.mjs +3 -3
  277. package/fesm2022/ngwr-timeline.mjs +6 -6
  278. package/fesm2022/ngwr-toast.mjs +40 -19
  279. package/fesm2022/ngwr-toast.mjs.map +1 -1
  280. package/fesm2022/ngwr-toolbar.mjs +3 -3
  281. package/fesm2022/ngwr-tour-testing.mjs +13 -1
  282. package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tour.mjs +19 -15
  284. package/fesm2022/ngwr-tour.mjs.map +1 -1
  285. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  286. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  287. package/fesm2022/ngwr-transfer.mjs +24 -5
  288. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  289. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  290. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  291. package/fesm2022/ngwr-tree.mjs +978 -79
  292. package/fesm2022/ngwr-tree.mjs.map +1 -1
  293. package/fesm2022/ngwr-typography.mjs +3 -3
  294. package/fesm2022/ngwr-utils-router.mjs +3 -3
  295. package/fesm2022/ngwr-utils.mjs +97 -1
  296. package/fesm2022/ngwr-utils.mjs.map +1 -1
  297. package/fesm2022/ngwr-version.mjs +1 -1
  298. package/fesm2022/ngwr-version.mjs.map +1 -1
  299. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  300. package/fesm2022/ngwr-window.mjs +33 -22
  301. package/fesm2022/ngwr-window.mjs.map +1 -1
  302. package/file-upload/styles/_index.scss +156 -0
  303. package/graph/styles/_index.scss +87 -0
  304. package/i18n/ar.json +29 -8
  305. package/i18n/cs.json +29 -8
  306. package/i18n/de.json +29 -8
  307. package/i18n/en.json +29 -8
  308. package/i18n/es.json +29 -8
  309. package/i18n/fr.json +29 -8
  310. package/i18n/he.json +29 -8
  311. package/i18n/hi.json +29 -8
  312. package/i18n/id.json +29 -8
  313. package/i18n/it.json +29 -8
  314. package/i18n/ja.json +29 -8
  315. package/i18n/ko.json +29 -8
  316. package/i18n/nl.json +29 -8
  317. package/i18n/pl.json +29 -8
  318. package/i18n/pt.json +29 -8
  319. package/i18n/ru.json +29 -8
  320. package/i18n/sv.json +29 -8
  321. package/i18n/tr.json +29 -8
  322. package/i18n/uk.json +29 -8
  323. package/i18n/vi.json +29 -8
  324. package/i18n/zh-TW.json +29 -8
  325. package/i18n/zh.json +29 -8
  326. package/input/styles/_index.scss +68 -1
  327. package/input-otp/styles/_index.scss +14 -0
  328. package/llms-full.txt +53 -21
  329. package/llms.txt +57 -24
  330. package/overlay/styles/_arrow.scss +4 -4
  331. package/package.json +33 -1
  332. package/popconfirm/styles/_index.scss +3 -11
  333. package/progress/styles/_index.scss +32 -0
  334. package/schema-form/styles/_index.scss +78 -0
  335. package/schematics/collection.json +5 -0
  336. package/schematics/eject/index.js +158 -0
  337. package/schematics/eject/schema.js +8 -0
  338. package/schematics/eject/schema.json +24 -0
  339. package/schematics/eject/source.js +295 -0
  340. package/schematics/use/rule.js +2 -0
  341. package/schematics/use/symbol-map.json +5 -0
  342. package/select/styles/_index.scss +127 -22
  343. package/skills/ngwr/SKILL.md +31 -4
  344. package/skills/ngwr/references/catalog.md +9 -1
  345. package/slider/styles/_index.scss +22 -0
  346. package/table/styles/_index.scss +191 -3
  347. package/textarea/styles/_index.scss +80 -0
  348. package/theme/styles/_focus.scss +16 -1
  349. package/theme/styles/_motion.scss +5 -0
  350. package/transfer/styles/_index.scss +84 -0
  351. package/tree/styles/_index.scss +138 -5
  352. package/types/ngwr-alert-testing.d.ts +88 -0
  353. package/types/ngwr-badge.d.ts +72 -2
  354. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  355. package/types/ngwr-burger-testing.d.ts +51 -0
  356. package/types/ngwr-calendar-testing.d.ts +18 -6
  357. package/types/ngwr-calendar.d.ts +272 -22
  358. package/types/ngwr-carousel-testing.d.ts +27 -6
  359. package/types/ngwr-carousel.d.ts +42 -6
  360. package/types/ngwr-cascader.d.ts +13 -6
  361. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  362. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  363. package/types/ngwr-charts-line-chart.d.ts +7 -4
  364. package/types/ngwr-color-picker-testing.d.ts +15 -4
  365. package/types/ngwr-color-picker.d.ts +76 -6
  366. package/types/ngwr-compare-testing.d.ts +72 -0
  367. package/types/ngwr-context-menu.d.ts +2 -0
  368. package/types/ngwr-date-picker-testing.d.ts +23 -8
  369. package/types/ngwr-date-picker.d.ts +100 -9
  370. package/types/ngwr-date.d.ts +71 -1
  371. package/types/ngwr-drawer.d.ts +9 -0
  372. package/types/ngwr-dropdown-testing.d.ts +20 -0
  373. package/types/ngwr-dropdown.d.ts +26 -6
  374. package/types/ngwr-event-calendar.d.ts +66 -8
  375. package/types/ngwr-file-upload-testing.d.ts +31 -2
  376. package/types/ngwr-file-upload.d.ts +156 -3
  377. package/types/ngwr-form.d.ts +47 -3
  378. package/types/ngwr-graph-testing.d.ts +36 -3
  379. package/types/ngwr-graph.d.ts +309 -13
  380. package/types/ngwr-input-number-testing.d.ts +10 -0
  381. package/types/ngwr-input-number.d.ts +30 -1
  382. package/types/ngwr-input-otp.d.ts +10 -0
  383. package/types/ngwr-input-testing.d.ts +30 -0
  384. package/types/ngwr-input.d.ts +54 -3
  385. package/types/ngwr-overlay.d.ts +84 -5
  386. package/types/ngwr-pipes.d.ts +2 -1
  387. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  388. package/types/ngwr-popconfirm.d.ts +28 -3
  389. package/types/ngwr-popover-testing.d.ts +19 -2
  390. package/types/ngwr-popover.d.ts +22 -2
  391. package/types/ngwr-progress.d.ts +29 -1
  392. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  393. package/types/ngwr-resizable-testing.d.ts +116 -0
  394. package/types/ngwr-schema-form-testing.d.ts +260 -0
  395. package/types/ngwr-schema-form.d.ts +76 -6
  396. package/types/ngwr-select-testing.d.ts +20 -0
  397. package/types/ngwr-select.d.ts +149 -11
  398. package/types/ngwr-sidebar-testing.d.ts +176 -0
  399. package/types/ngwr-slider-testing.d.ts +3 -1
  400. package/types/ngwr-slider.d.ts +21 -1
  401. package/types/ngwr-sortable-list.d.ts +6 -0
  402. package/types/ngwr-stepper.d.ts +20 -11
  403. package/types/ngwr-table-testing.d.ts +122 -7
  404. package/types/ngwr-table.d.ts +572 -50
  405. package/types/ngwr-tabs-testing.d.ts +14 -17
  406. package/types/ngwr-tabs.d.ts +6 -0
  407. package/types/ngwr-textarea-testing.d.ts +10 -0
  408. package/types/ngwr-textarea.d.ts +48 -2
  409. package/types/ngwr-toast.d.ts +8 -1
  410. package/types/ngwr-tour-testing.d.ts +10 -0
  411. package/types/ngwr-tour.d.ts +11 -2
  412. package/types/ngwr-transfer-testing.d.ts +3 -0
  413. package/types/ngwr-transfer.d.ts +24 -1
  414. package/types/ngwr-tree-testing.d.ts +65 -1
  415. package/types/ngwr-tree.d.ts +335 -12
  416. package/types/ngwr-utils.d.ts +107 -1
  417. package/types/ngwr-version.d.ts +1 -1
  418. package/types/ngwr-window.d.ts +7 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-charts-bar-chart.mjs","names":[],"sources":["../../../projects/lib/charts/bar-chart/bar-chart.ts","../../../projects/lib/charts/bar-chart/bar-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 type ElementRef,\n LOCALE_ID,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n viewChildren,\n} from '@angular/core';\n\nimport { WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport {\n WrChartTable,\n type WrChartMarkerShape,\n type WrChartTableData,\n wrChartColor,\n wrChartDash,\n wrChartMarker,\n wrChartMarkerExtent,\n wrChartMarkerPath,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { wrReadI18nText, useI18nFormatter, useI18nText } from 'ngwr/i18n';\nimport { type WrChartTooltipRow, type WrChartTooltipTarget, useChartTooltip } from 'ngwr/popover';\nimport { wrClamp, wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrBarChartDatum, WrBarLine, WrBarOrientation, WrBarSeries } from './types';\n\n/** A share of the value axis for an inline style: four decimals, `-0` folded to `0`. */\nconst short = (value: number): number => Math.round(value * 1e4) / 1e4 || 0;\n\n/** A share as a percentage of a line's box, to two decimals, `-0` folded to `0`. */\nconst percent = (share: number): number => Math.round(share * 1e4) / 100 || 0;\n\n/**\n * How large a line's point is, in px: the radius of the circle every marker shape has\n * the area of. A step up from the line chart's 3px dot, since a point here sits on a bar\n * rather than on the page and keeps a ring of the surface round it.\n */\nconst POINT_RADIUS = 4;\n\n/** One series' bar in one category, as `series` draws it. */\ninterface SeriesBar {\n /** The series' position in `series`, which is what the bar is tracked by. */\n readonly series: number;\n readonly color: string;\n /** The outline's `stroke-dasharray`, `''` for a solid one. */\n readonly dash: string;\n /** Where the bar starts along the value axis, as a share of it from its minimum. */\n readonly start: number;\n /** How much of the value axis the bar covers. */\n readonly size: number;\n /** The series' name and its own value: the bar's accessible name. */\n readonly name: string;\n}\n\n/** A value printed past the end of a bar, or of a pile of them. */\ninterface EndLabel {\n readonly text: string;\n /** Where the end is along the value axis, as a share of it from its minimum. */\n readonly at: number;\n /** Whether the bar grows towards the axis' minimum, so the value goes past that end. */\n readonly below: boolean;\n /**\n * What the printed value announces: a pile's total, \"Total: 20\", under `stacked`, where\n * no bar's own name carries it. `null` past a single bar, whose name already does.\n */\n readonly name: string | null;\n}\n\n/**\n * One lane of a category: the strip one bar runs along. Grouped, a lane per series\n * shown, side by side; stacked, one lane holding every series' bar.\n */\ninterface Lane {\n readonly key: number;\n readonly bars: readonly SeriesBar[];\n readonly ends: readonly EndLabel[];\n}\n\n/** One category drawn from `series`: its name and its lanes. */\ninterface Category {\n readonly label: string;\n readonly lanes: readonly Lane[];\n}\n\n/**\n * Where something of a line sits in the line's own box, as percentages of it: `x` from\n * its left edge, `y` from its top. The box runs from the middle of the first category to\n * the middle of the last, so the categories are evenly spaced along it.\n */\ninterface LinePosition {\n readonly x: number;\n readonly y: number;\n}\n\n/** One point of a line: a category with a value. */\ninterface LinePoint extends LinePosition {\n /** The category's position, which is what the point is tracked by. */\n readonly category: number;\n /** The category's name and the line's value there: the point's accessible name. */\n readonly name: string;\n}\n\n/** One straight run of a line, between the points of two neighbouring categories. */\ninterface LineSegment {\n readonly from: LinePosition;\n readonly to: LinePosition;\n}\n\n/** One line of `lines`, as the chart draws it. */\ninterface LineLayer {\n /** The line's position in `lines`, which is what it is tracked by. */\n readonly index: number;\n readonly label: string;\n readonly color: string;\n /** The line's `stroke-dasharray`, `''` for a solid one. */\n readonly dash: string;\n readonly marker: WrChartMarkerShape;\n /** The marker's path, drawn about its point. */\n readonly d: string;\n /** How many categories the line's box spans, which the stylesheet sizes the box from. */\n readonly count: number;\n readonly segments: readonly LineSegment[];\n readonly points: readonly LinePoint[];\n}\n\n/**\n * Bar chart. Pass `[data]` for one series — each datum becomes a bar — or `[series]`\n * with `[categories]` for several, drawn side by side or, with `stacked`, piled on each\n * other. Vertical by default; `orientation=\"horizontal\"` lays the bars along the inline\n * axis with the category names in a gutter beside them. Axis-free: the values are\n * printed at the bars. No external dependency.\n *\n * @example\n * ```html\n * <wr-bar-chart [data]=\"[\n * { label: 'Mon', value: 12 },\n * { label: 'Tue', value: 18, color: 'var(--wr-color-success)' },\n * { label: 'Wed', value: 9 }\n * ]\" />\n *\n * <wr-bar-chart\n * [categories]=\"['Q1', 'Q2', 'Q3', 'Q4']\"\n * [series]=\"[\n * { label: 'North', data: [12, 18, 9, 22] },\n * { label: 'South', data: [8, 11, 14, 10] }\n * ]\"\n * stacked\n * />\n * ```\n *\n * **Several series.** Every category gets a bar per series shown, in series order —\n * or, with `stacked`, one pile, positive values up from zero and negative ones down\n * from it, each sign on its own, as `wr-line-chart` stacks. A negative value draws\n * below the zero line, which `series` draws wherever zero falls. Each series takes its\n * colour and its own dash: the bar's body is a tint of the colour and its outline the\n * colour itself, in the series' dash, the first one solid. The default palette's\n * colours sit within about 1.06:1 of each other in luminance, so the dash is what tells\n * two series apart without hue, and the legend keys each series by the same dash.\n *\n * **`data` is unchanged**: one series, a bar per datum, a negative value drawn as an\n * empty bar with its number still printed — except beside `lines`, whose axis can reach\n * below zero: there a negative value is drawn down from zero, as `series` draws it. With\n * both set, `series` wins, and dev mode says so.\n *\n * **Lines over the bars.** `lines` draws a line per entry through the middle of each\n * category, with a point at every value, on the bars' own value axis: a fitted axis is\n * fitted to the bars and the lines together, so a line above every bar raises the top\n * and one below zero brings the zero line up, `data` bars included — and a negative\n * `data` bar draws down from it. It works with\n * `data` and with `series`, grouped or stacked, and lying down, where the lines run down\n * the rows. A line takes the next palette colour after the bars', its own dash, the\n * first one solid, and its own marker shape, the first a circle; the legend keys each\n * by both, the tooltip gives its value, and the data table a column. A line never\n * stacks, and prints no value at its points: the tooltip and each point's name carry it.\n * The track keeps room at each end of the value axis for the largest marker, so a point\n * at either end is not cut off by the chart's box.\n *\n * **What a screen reader gets.** The plot is a named `role=\"group\"`. With `data`, each\n * bar is a `role=\"img\"` named by its label and its value. With `series`, each category\n * is a `role=\"group\"` named by the category, and each bar in it a `role=\"img\"` named by\n * its series and its own value; under `stacked`, each pile's printed total is a\n * `role=\"img\"` too, \"Total: 20\", since no bar's name carries it. Each of `lines` is a\n * `role=\"group\"` named by the line, after the bars, and each of its points a\n * `role=\"img\"` named by its category and the line's value there. No part of the chart is\n * a tab stop, unless\n * `toggleableLegend` makes the legend rows buttons. `dataTable` adds the same figures as\n * a table, for a reader who wants to move cell by cell.\n *\n * @see https://ngwr.dev/charts/bar-chart\n */\n@Component({\n selector: 'wr-bar-chart',\n templateUrl: './bar-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-bar-chart',\n '[class.wr-bar-chart--horizontal]': 'horizontal()',\n '[class.wr-bar-chart--series]': 'seriesMode()',\n '[class.wr-bar-chart--stacked]': 'seriesMode() && stacked()',\n '[class.wr-bar-chart--combo]': 'hasLines()',\n // How far the largest of `lines`' markers reaches along the value axis: the room the\n // stylesheet keeps at each end of the track, so a point there stays in the chart's box.\n '[style.--wr-bar-chart-reach]': 'hasLines() ? lineReach() : null',\n // How many categories share the track: standing up, the gaps between them are held to\n // a share of the track by it, so a long list keeps its bars rather than gaps alone.\n '[style.--wr-bar-chart-categories]': 'categoryTotal() || null',\n },\n imports: [WrChartLegend, WrChartTable],\n})\nexport class WrBarChart {\n /**\n * The bars, left to right. One series: a datum with no `color` of its own\n * takes the chart's `color`, so by default every bar comes out the same.\n * A negative value draws an empty bar with its number printed — or, beside `lines`,\n * a bar down from zero. A value that is not a finite number is MISSING: an empty bar\n * with no number printed, named by its label alone, an empty cell in the data table.\n * Ignored while `series` has entries.\n */\n readonly data = input<readonly WrBarChartDatum[]>([]);\n\n /**\n * Several series over the same categories: one bar per series in every category,\n * side by side, or piled up with `stacked`. A series with no `color` takes the next\n * entry from the chart's palette, and each takes the next dash for its outline, the\n * first one solid. Wins over `data` while it has entries.\n */\n readonly series = input<readonly WrBarSeries[]>([]);\n\n /**\n * The categories' names for `series`, in order: a series takes one value per\n * category. A category past the end of this list, which a longer series reaches, is\n * named by its position, counting from 1, in `LOCALE_ID`'s digits. Not read with\n * `data`, whose datums carry their own labels.\n */\n readonly categories = input<readonly string[]>([]);\n\n /**\n * Lines drawn over the bars, through the middle of each category, with a point at\n * every value: a target, a rate, a running average beside the figures it describes.\n * Each takes one value per category, on the bars' own value axis, and a fitted axis is\n * fitted to the bars and the lines together. Works with `data` and with `series`,\n * grouped or stacked, standing up or lying down, where the lines run down the rows.\n *\n * A line with no `color` takes the palette's next colour after the bars' — past the\n * last series, or the palette's second beside `data` — and each takes the next dash and\n * the next marker shape, the first solid with a circle, so two lines differ without\n * hue. The legend lists every line after the series, keyed by its dash and its marker;\n * the tooltip gives each line's value in the category; the data table a column per line\n * after the series' columns, or after the bars'. A missing value breaks the line, and a\n * lone value between two missing ones is a point with no line. Lines never stack, and\n * print no value: the tooltip and each point's name carry it.\n *\n * Beside `data`, a negative bar draws down from zero rather than as an empty bar, since\n * the lines' axis can reach below zero and an empty bar there would read as zero. The\n * track keeps room at each end of the value axis for the largest marker, ring included,\n * so a point on either end is not cut off.\n */\n readonly lines = input<readonly WrBarLine[]>([]);\n\n /**\n * Pile each category's bars on each other, in series order, so the end of the pile\n * reads the total. Positive values pile up from zero and negative ones down from it,\n * each sign on its own, so no bar crosses another. A missing value adds nothing.\n * Each bar's accessible name, the tooltip and the data table keep each series' own\n * value; the value printed past a pile (`showValues`) is the pile's total, one for\n * each sign the category has, and announces itself as \"Total: 20\" (`barChart.total`).\n * `series` only. @default false\n */\n readonly stacked = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Which way the bars run. `horizontal` lays them along the inline axis, one row per\n * category, with the names in a gutter at inline start as wide as the longest (up to\n * `--wr-bar-chart-label-max-width`, then ellipsised). Under RTL the gutter is on the\n * right and the bars grow leftwards. Lying down, `height` is the least the plot takes:\n * the rows share it, but each bar's row keeps at least `--wr-bar-chart-row-min-size`\n * (one line of the value's text), so a long list of categories or series grows the\n * chart rather than thinning its bars to nothing. @default 'vertical'\n */\n readonly orientation = input<WrBarOrientation>('vertical');\n\n /**\n * Accessible name of the chart. Falls back to `barChart.label`, then `'Bar chart'`.\n * Also the data table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'barChart.label', 'Bar chart');\n\n /**\n * The word a stacked pile's printed total announces itself by, \"Total: 20\". From the\n * catalog only, as the legend's \"hidden\" is: one word an app rewords once there.\n */\n private readonly totalText = wrReadI18nText('barChart.total', 'Total');\n\n /**\n * The data table's heading for the column of `data`'s bars, which have no series name\n * of their own. From the catalog only, as the total's word is.\n */\n private readonly valueText = wrReadI18nText('barChart.value', 'Value');\n\n /**\n * How a bar, a point and a pile's total name themselves: a label and a figure, \"Mon: 12\",\n * from the catalog, so a language that joins the two another way can.\n */\n private readonly datumText = useI18nFormatter('barChart.datum', '{{label}}: {{value}}');\n\n /** A category with no name of its own, by its position from 1 in the reader's own digits. */\n private readonly ordinals = new Intl.NumberFormat(inject(LOCALE_ID));\n\n /** Default bar colour when a datum has none. `data` only. @default 'var(--wr-color-primary)' */\n readonly color = input<string>('var(--wr-color-primary)');\n\n /**\n * Show value labels at each bar, past its end: above a bar standing up, beyond its end\n * lying down — below (or before) a negative `series` bar, and the pile's total for each\n * sign with `stacked`. A value too wide for a `series` bar standing up is left out\n * rather than cut, since a cut number reads as another one; the tooltip and each bar's\n * name carry it whole. @default true\n */\n readonly showValues = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Pixel height of the chart area. With `orientation=\"horizontal\"` it is the least the\n * plot takes: each bar's row keeps at least `--wr-bar-chart-row-min-size`, so rows that\n * need more grow the plot past it. @default 200\n */\n readonly height = input(200, { transform: (v: unknown): number => Math.max(40, coerceNumberProperty(v, 200)) });\n\n /**\n * Explicit max value. `0` = auto. With `series` it fixes the positive end of the axis;\n * the negative end is still fitted to the data. A value past it is drawn to the edge,\n * and its name, the tooltip and the data table still give its own figure. @default 0\n */\n readonly max = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /**\n * Show a tooltip with the bar's label and value on hover — with `series`, the\n * category's name and a row per series shown. Pointer only — the accessible names\n * already carry every value. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /** Show the legend above the chart. With `series`, or beside `lines`, which it then lists. @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` — or its line, through `hiddenLines`. A row is a\n * `<button aria-pressed>`, pressed while its series is shown, so the legend becomes one\n * tab stop per row. With `series`, or beside `lines`. @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 bars\n * and leaves its lane, so the others widen; it leaves the stack, the tooltip and the\n * data table; and a fitted axis is fitted to the series still shown. The categories do\n * not change, since they belong to the chart rather than to one series. The legend\n * keeps the hidden series' row, struck through, so it can be shown again. A position\n * past the end of `series` is kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /**\n * The positions in `lines` of the lines that are hidden, as `hiddenSeries` holds the\n * series': a toggleable legend writes it, and a host may bind it with or without one,\n * `[(hiddenLines)]`. A hidden line draws nothing and leaves the tooltip and the data\n * table, and a fitted axis is fitted to what is still shown. The legend keeps its row,\n * struck through. A position past the end of `lines` is kept and ignored.\n */\n readonly hiddenLines = model<readonly number[]>([]);\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per category, headed by its name, and a column per series shown — or, with `data`,\n * one column for the bars, headed \"Value\" (`barChart.value`) — then one per line shown,\n * every value written the way the tooltip writes it. A missing value is an empty cell,\n * and a stacked chart's table keeps each series' own values.\n *\n * Each bar's accessible name already carries its value; the table is for a reader\n * who wants to move cell by cell. It is rendered beside the plot, clipped to nothing:\n * it takes no room, draws nothing and holds no tab stop. A hidden series or line leaves\n * it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Writes every number the chart shows: the labels at the bars, the tooltip and\n * each bar's accessible name. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with\n * compact labels from a thousand up (`1.2K`, `3.4M`).\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /**\n * The chart's number writers: `value` for the tooltip and each bar's accessible\n * name, the whole figure; `label` above the bar, compact from a thousand up, where a\n * column is too narrow for `1,234,567`, and exactly as `value` writes it below —\n * compact rounding would print 12.5 as `13`, and below a thousand there is nothing to\n * abbreviate.\n */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly barEls = viewChildren<ElementRef<HTMLElement>>('barEl');\n\n private readonly categoryEls = viewChildren<ElementRef<HTMLElement>>('categoryEl');\n\n /** Every point of every line, in the order {@link lineLayers} lists them. */\n private readonly pointEls = viewChildren<ElementRef<SVGSVGElement>>('pointEl');\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/bar-chart');\n // Two inputs that each describe the whole chart: drawing one and silently dropping\n // the other looks like data that failed to load.\n if (isDevMode()) {\n let warned = false;\n effect(() => {\n if (warned || this.data().length === 0 || this.series().length === 0) return;\n warned = true;\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n '[NGWR] <wr-bar-chart>: both `data` and `series` are set. The chart draws `series` and ignores `data`; ' +\n 'pass one of them.'\n );\n });\n }\n }\n\n /** Whether the chart draws `series` rather than `data`. */\n protected readonly seriesMode = computed(() => this.series().length > 0);\n\n protected readonly horizontal = computed(() => this.orientation() === 'horizontal');\n\n /**\n * Whether the chart has `lines` to draw, shown or hidden. Beside `data` it moves the\n * bars into the layout `series` uses, whose track the lines are drawn over; hiding\n * every line keeps that layout, so a legend toggle never reflows the bars.\n */\n protected readonly hasLines = computed(() => this.lines().length > 0);\n\n /**\n * A datum's value, with anything non-finite read as `0` for the geometry.\n *\n * One `NaN` used to take out the whole chart rather than its own bar:\n * `Math.max(...values)` is `NaN` as soon as one value is, so the scale fell\n * back to `1` and every OTHER bar was asked for a height of `value * 100`%.\n * The bad bar also printed the literal text `NaN` above itself. It is not a zero\n * either, so nothing a reader meets prints one for it (see `bars`).\n */\n private static value(raw: number): number {\n return Number.isFinite(raw) ? raw : 0;\n }\n\n /** A label and a figure, as a name: \"Mon: 12\". */\n private name(label: string, value: number): string {\n return this.datumText({ label, value: this.numbers.value(value) });\n }\n\n /** How many categories the chart draws, whichever input it draws. */\n protected readonly categoryTotal = computed(() => (this.seriesMode() ? this.categoryCount() : this.data().length));\n\n /**\n * The value axis for `data`, from `lo` to `hi`: from zero to the tallest bar, or to\n * `max` when one is given. Beside `lines` it is stretched to every line value shown and\n * to every bar below zero — which then draws down from zero, as a `series` bar does,\n * rather than as an empty bar that would read as zero on an axis reaching below it — so\n * either lifts the zero line the bars stand on. With nothing to scale it runs from 0\n * to 1.\n */\n private readonly dataScale = computed(() => {\n const data = this.data();\n // Whether `lines` are set, shown or not: hiding every line keeps the layout, and with\n // it a negative bar's place below zero.\n const combo = this.hasLines();\n let lo = 0;\n let hi = 0;\n for (const d of data) {\n const value = WrBarChart.value(d.value);\n hi = Math.max(hi, value);\n if (combo) lo = Math.min(lo, value);\n }\n for (const line of this.visibleLines()) {\n for (let c = 0; c < data.length; c++) {\n const v = line.data[c];\n if (v === null || v === undefined) continue;\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n }\n }\n const explicit = this.max();\n if (explicit > 0) hi = explicit;\n if (hi - lo <= 0) hi = 1;\n return { lo, hi };\n });\n\n protected readonly bars = computed(() => {\n const { lo, hi } = this.dataScale();\n // Zero is the axis minimum until a line or, beside lines, a bar goes below it; the bars\n // stand on it, and a bar's share is of the whole axis, so it can reach no further than\n // the top. Beside `lines` a negative bar hangs from zero down to its value; without\n // them it is an empty bar on zero.\n const combo = this.hasLines();\n const floor = this.at(0);\n const zero = this.zero();\n return this.data().map(d => {\n const value = WrBarChart.value(d.value);\n // A missing value is drawn as the empty bar a zero is, and printed as nothing.\n const missing = !Number.isFinite(d.value);\n const text = missing ? '' : this.numbers.value(value);\n const below = combo && value < 0;\n const share = below ? Math.min(floor, -value / (hi - lo)) : Math.min(1 - floor, Math.max(0, value) / (hi - lo));\n return {\n label: d.label,\n value,\n /** Whether the datum's value is not a finite number: no figure is printed, named or tabled for it. */\n missing,\n /** The label printed above the bar. */\n display: missing ? '' : this.numbers.label(value),\n /** The whole figure, for the tooltip. */\n text,\n color: d.color ?? this.color(),\n /**\n * The bar's share of the plot, from 0 to 1, written as its `flex-grow` — see\n * the stylesheet for why a grow factor and not a `height` percentage.\n */\n share,\n /** Whether the bar hangs below zero, beside `lines`: its value is printed past its lower end. */\n below,\n /**\n * Where the bar starts along the value axis, from its minimum: zero, or the bar's\n * own end for one below it. Beside `lines`, the share the spacer under it takes.\n */\n start: below ? short(zero - share) : zero,\n /** Where the bar ends along the value axis, from its minimum: what the value printed past it is placed by. */\n at: below ? short(zero - share) : zero + share,\n /**\n * The bar's accessible name. The label and the value sit in separate\n * rows, so a screen reader read every number and then every label with\n * nothing tying the two together — and with `showValues` off the\n * numbers were not in the accessible tree at all. A missing value is the\n * label alone.\n */\n name: missing ? d.label : this.name(d.label, value),\n };\n });\n });\n\n /**\n * Every series, resolved: its palette colour, its dash, and its data with `null` at\n * every missing value. Hidden ones included, since the legend lists them.\n */\n private readonly resolvedSeries = computed(() =>\n this.series().map((s, index) => ({\n index,\n label: s.label,\n color: s.color ?? wrChartColor(index),\n dash: wrChartDash(index),\n data: s.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\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 * Every line, resolved: its colour — the palette's next after the bars' — its dash, its\n * marker, and its data with `null` at every missing value. Hidden ones included, since\n * the legend lists them.\n */\n private readonly resolvedLines = computed(() => {\n // Past the series' colours, or past the one `data` paints its bars in by default.\n const offset = this.seriesMode() ? this.series().length : 1;\n return this.lines().map((line, index) => ({\n index,\n label: line.label,\n color: line.color ?? wrChartColor(offset + index),\n dash: wrChartDash(index),\n marker: wrChartMarker(index),\n data: line.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\n }));\n });\n\n /** The lines drawn, read and fitted to: every one `hiddenLines` does not name. */\n private readonly visibleLines = computed(() => {\n const hidden = new Set(this.hiddenLines());\n return this.resolvedLines().filter(line => !hidden.has(line.index));\n });\n\n /** How many categories `series` has: as many as are named, or as the longest series reaches. */\n private readonly categoryCount = computed(() =>\n this.resolvedSeries().reduce((count, s) => Math.max(count, s.data.length), this.categories().length)\n );\n\n /**\n * The value axis for `series`, from `lo` (zero or below) to `hi` (above zero): the\n * extremes of the series shown, or of their piles under `stacked`, and of the lines\n * shown, so the longest bar or the farthest point reaches the end of the plot, as it\n * does with `data`. A positive `max` fixes `hi`. With nothing to scale it runs from 0\n * to 1.\n */\n private readonly seriesScale = computed(() => {\n const series = this.visibleSeries();\n const lines = this.visibleLines();\n const stacked = this.stacked();\n let lo = 0;\n let hi = 0;\n for (let c = 0; c < this.categoryCount(); c++) {\n let up = 0;\n let down = 0;\n for (const s of series) {\n const v = s.data[c];\n if (v === null || v === undefined) continue;\n if (!stacked) {\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n } else if (v < 0) down += v;\n else up += v;\n }\n lo = Math.min(lo, down);\n hi = Math.max(hi, up);\n // A line shares the axis, and never stacks.\n for (const line of lines) {\n const v = line.data[c];\n if (v === null || v === undefined) continue;\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n }\n }\n const explicit = this.max();\n if (explicit > 0) hi = explicit;\n if (hi - lo <= 0) hi = 1;\n return { lo, hi };\n });\n\n /** The value axis the chart draws on: `series`' or `data`'s. */\n private readonly scale = computed(() => (this.seriesMode() ? this.seriesScale() : this.dataScale()));\n\n /** A value's place along the value axis, as a share of it from its minimum, held to the axis. */\n private at(value: number): number {\n const { lo, hi } = this.scale();\n return wrClamp((value - lo) / (hi - lo), 0, 1);\n }\n\n /**\n * Every category `series` draws, with its lanes: grouped, a lane per series shown, a\n * missing value leaving its lane empty so the bars beside it keep their places;\n * stacked, one lane holding each series' bar on the pile of the ones before it on the\n * same side of zero. With `showValues`, a lane also carries the values printed past\n * its ends: each bar's own, or each pile's total.\n */\n protected readonly seriesCategories = computed<readonly Category[]>(() => {\n if (!this.seriesMode()) return [];\n const series = this.visibleSeries();\n const labels = this.categories();\n const values = this.showValues();\n const zero = this.at(0);\n const name = (label: string, value: number): string => this.name(label, value);\n\n return Array.from({ length: this.categoryCount() }, (_, c): Category => {\n const label = labels[c] ?? this.ordinals.format(c + 1);\n if (!this.stacked()) {\n const lanes = series.map((s): Lane => {\n const v = s.data[c];\n if (v === null || v === undefined) return { key: s.index, bars: [], ends: [] };\n const end = this.at(v);\n const bar = {\n series: s.index,\n color: s.color,\n dash: s.dash,\n start: short(Math.min(zero, end)),\n size: short(Math.abs(end - zero)),\n name: name(s.label, v),\n };\n return {\n key: s.index,\n bars: [bar],\n ends: values ? [{ text: this.numbers.label(v), at: short(end), below: v < 0, name: null }] : [],\n };\n });\n return { label, lanes };\n }\n\n let up = 0;\n let down = 0;\n let rises = false;\n let falls = false;\n const bars = series.flatMap((s): SeriesBar[] => {\n const v = s.data[c];\n if (v === null || v === undefined) return [];\n const base = v < 0 ? down : up;\n const top = base + v;\n if (v < 0) {\n down = top;\n falls = true;\n } else {\n up = top;\n rises = true;\n }\n const from = this.at(base);\n const to = this.at(top);\n return [\n {\n series: s.index,\n color: s.color,\n dash: s.dash,\n start: short(Math.min(from, to)),\n size: short(Math.abs(to - from)),\n name: name(s.label, v),\n },\n ];\n });\n // A pile's total is printed, and no bar's own name carries it, so the printed value\n // announces itself — with the whole figure, as a bar's name does.\n const total = (value: number, below: boolean): EndLabel => ({\n text: this.numbers.label(value),\n at: short(this.at(value)),\n below,\n name: name(this.totalText(), value),\n });\n const ends: EndLabel[] = [];\n if (values && rises) ends.push(total(up, false));\n if (values && falls) ends.push(total(down, true));\n return { label, lanes: [{ key: 0, bars, ends }] };\n });\n });\n\n /** The category names, in order, whichever input the chart draws. */\n protected readonly categoryLabels = computed(() =>\n this.seriesMode() ? this.seriesCategories().map(c => c.label) : this.data().map(d => d.label)\n );\n\n /**\n * Where zero is along the value axis, as a share of it: the baseline. `data` goes below\n * zero only where one of `lines` does.\n */\n protected readonly zero = computed(() => short(this.at(0)));\n\n /**\n * The values printed past the bars, sorted by the end they go past: the room the plot\n * keeps beyond each end of the axis is a hidden copy of these, so it is exactly as\n * large as the largest, in the value's own font. Each text once.\n */\n protected readonly rooms = computed(() => {\n if (!this.showValues()) return { max: [], min: [] };\n if (!this.seriesMode()) {\n const bars = this.bars();\n return {\n max: [...new Set(bars.filter(b => !b.below && !b.missing).map(b => b.display))],\n min: [...new Set(bars.filter(b => b.below && !b.missing).map(b => b.display))],\n };\n }\n const ends = this.seriesCategories().flatMap(c => c.lanes.flatMap(lane => lane.ends));\n return {\n max: [...new Set(ends.filter(e => !e.below).map(e => e.text))],\n min: [...new Set(ends.filter(e => e.below).map(e => e.text))],\n };\n });\n\n /**\n * Every line shown, as the chart draws it: its segments and its points, placed in the\n * line's own box. The box runs from the middle of the first category to the middle of\n * the last (the stylesheet sizes it from `count`), so category `c` of `n` is `c / (n − 1)`\n * of the way along it — or its middle, with one category. Across the box is the value\n * axis: up from the bottom standing up, along from inline start lying down, where the\n * stylesheet mirrors the box under RTL as the bars mirror.\n */\n protected readonly lineLayers = computed<readonly LineLayer[]>(() => {\n const count = this.seriesMode() ? this.categoryCount() : this.data().length;\n if (count === 0) return [];\n const labels = this.categoryLabels();\n const horizontal = this.horizontal();\n const along = (c: number): number => (count === 1 ? 50 : percent(c / (count - 1)));\n const place = (c: number, value: number): LinePosition => {\n const at = this.at(value);\n return horizontal ? { x: percent(at), y: along(c) } : { x: along(c), y: percent(1 - at) };\n };\n\n return this.visibleLines().map((line): LineLayer => {\n const segments: LineSegment[] = [];\n const points: LinePoint[] = [];\n let previous: LinePosition | null = null;\n for (let c = 0; c < count; c++) {\n const value = line.data[c];\n if (value === null || value === undefined) {\n // A missing value breaks the line: the next point starts a new run.\n previous = null;\n continue;\n }\n const position = place(c, value);\n if (previous) segments.push({ from: previous, to: position });\n points.push({ ...position, category: c, name: this.name(labels[c] ?? this.ordinals.format(c + 1), value) });\n previous = position;\n }\n return {\n index: line.index,\n label: line.label,\n color: line.color,\n dash: line.dash,\n marker: line.marker,\n d: wrChartMarkerPath(line.marker, POINT_RADIUS),\n count,\n segments,\n points,\n };\n });\n });\n\n /**\n * How far the largest of `lines`' markers reaches past its point along the value axis,\n * in px, before its ring: up or down standing up, sideways lying down. By SHAPE, not\n * radius — a triangle's point stands 1.56 times its radius off its centre. Every line\n * counts, hidden ones included, so a legend toggle never reflows the bars. The\n * stylesheet adds the ring and keeps that much room at each end of the track.\n */\n protected readonly lineReach = computed(() => {\n const horizontal = this.horizontal();\n let reach = 0;\n for (const line of this.resolvedLines()) {\n const extent = wrChartMarkerExtent(line.marker, POINT_RADIUS);\n reach = Math.max(reach, horizontal ? extent.side : Math.max(extent.top, extent.bottom));\n }\n return Math.round(reach * 1000) / 1000;\n });\n\n /**\n * The legend's rows: every series, keyed by its own dash, then every line, keyed by its\n * dash and its marker — hidden ones included.\n */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() => [\n ...this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash })),\n ...this.resolvedLines().map(({ label, color, dash, marker }) => ({ label, color, dash, marker })),\n ]);\n\n /**\n * The legend's hidden rows. Its rows are the series and then the lines, so a hidden\n * line is its position in `lines` past the series' count. A position `hiddenSeries`\n * keeps past the end of `series` is not handed over beside lines, where it would name\n * a line; without lines `hiddenSeries` goes through as it is.\n */\n protected readonly legendHidden = computed<readonly number[]>(() => {\n const hiddenSeries = this.hiddenSeries();\n if (!this.hasLines()) return hiddenSeries;\n const offset = this.resolvedSeries().length;\n return [...hiddenSeries.filter(i => i < offset), ...this.hiddenLines().map(i => offset + i)];\n });\n\n /** A toggle on the legend, split back into `hiddenSeries` and `hiddenLines`. Writes only the one that moved. */\n protected onLegendHidden(next: readonly number[]): void {\n if (!this.hasLines()) {\n this.hiddenSeries.set(next);\n return;\n }\n const offset = this.resolvedSeries().length;\n const ascending = (a: number, b: number): number => a - b;\n const series = [...next.filter(i => i < offset), ...this.hiddenSeries().filter(i => i >= offset)].sort(ascending);\n const lines = next.filter(i => i >= offset).map(i => i - offset);\n const same = (a: readonly number[], b: readonly number[]): boolean =>\n a.length === b.length && a.every((value, i) => value === b[i]);\n if (!same(series, this.hiddenSeries())) this.hiddenSeries.set(series);\n if (!same(lines, this.hiddenLines())) this.hiddenLines.set(lines);\n }\n\n /**\n * The figures for `dataTable`: the chart's name as the caption, a column per series\n * shown — or, with `data`, one for the bars, headed by `barChart.value` — then per line\n * shown, and a row per category. Each cell is the series' own value, stacked or not,\n * written as the tooltip writes it, and empty where it is missing; a bar's is the figure\n * its name gives. With every series and line hidden there is nothing to tabulate, and\n * no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const bars = this.seriesMode()\n ? this.visibleSeries()\n : [{ label: this.valueText(), data: this.data().map(d => (Number.isFinite(d.value) ? d.value : null)) }];\n const columns = [...bars, ...this.visibleLines()];\n const labels = this.categoryLabels();\n const rows =\n columns.length === 0\n ? []\n : labels.map((header, c) => ({\n header,\n cells: columns.map(column => {\n const value = column.data[c];\n return value === null || value === undefined ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: columns.map(column => column.label), groups: [{ rows }] };\n });\n\n /**\n * One tooltip for the whole chart, with the whole figure — the label above the bar\n * may be compact, and the tooltip is where a reader goes for the exact one.\n *\n * With `data` it points at the top edge of the BAR — above it, below it when there is\n * no room — rather than at the column, which is the full height of the plot and\n * would put the chip above every bar alike. A bar with nothing to draw (zero, or a\n * negative value without `lines`) keeps its 1px floor on the baseline, so its chip\n * points there; a missing value opens none, unless a line has a value in its category.\n * The bar is the anchor element itself, so an open chip follows it through the\n * height transition a data change starts.\n *\n * With `series` it is one chip per category: the category's name and a row per series\n * shown with a value there, pointing at the top of the box round the category's bars.\n * A category no series shown has a value in opens none.\n *\n * Each line shown with a value in the category adds a row after the bars', and the box\n * the chip points at takes in the line's point too, so the chip covers neither. Beside\n * `data`, the chip keeps the bar's label and value as its heading, over the lines' rows.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index =>\n this.seriesMode() ? this.categoryTip(index) : this.barTip(index)\n );\n\n private barTip(index: number): WrChartTooltipTarget | null {\n const bar = this.bars()[index];\n const anchor = this.barEls()[index]?.nativeElement;\n if (!bar || !anchor) return null;\n const rows = this.lineRows(index);\n // A missing value has nothing to say but its label, which is already under the bar.\n if (rows.length === 0)\n return bar.missing ? null : { datum: { label: bar.label, value: bar.text, color: bar.color }, anchor };\n return {\n datum: { label: bar.label, value: bar.text, color: bar.color, rows },\n anchor: WrBarChart.around([anchor.getBoundingClientRect(), ...this.pointBoxes(index)]),\n };\n }\n\n /** A row per line shown with a value in category `index`, after the bars' rows. */\n private lineRows(index: number): WrChartTooltipRow[] {\n return this.visibleLines().flatMap(line => {\n const value = line.data[index];\n return value === null || value === undefined\n ? []\n : [{ label: line.label, value: this.numbers.value(value), color: line.color }];\n });\n }\n\n /** The box round each line's point in category `index`: the marker, not the 1px viewport it is drawn from. */\n private pointBoxes(index: number): DOMRect[] {\n const categories = this.lineLayers().flatMap(line => line.points.map(point => point.category));\n return this.pointEls().flatMap((el, i) => {\n const marker = el.nativeElement.firstElementChild;\n return categories[i] === index && marker ? [marker.getBoundingClientRect()] : [];\n });\n }\n\n /** The box round several, as a tooltip anchor. */\n private static around(boxes: readonly DOMRect[]): { x: number; y: number; width: number; height: number } {\n const left = Math.min(...boxes.map(box => box.left));\n const top = Math.min(...boxes.map(box => box.top));\n const right = Math.max(...boxes.map(box => box.right));\n const bottom = Math.max(...boxes.map(box => box.bottom));\n return { x: left, y: top, width: right - left, height: bottom - top };\n }\n\n private categoryTip(index: number): WrChartTooltipTarget | null {\n const category = this.seriesCategories()[index];\n const element = this.categoryEls()[index]?.nativeElement;\n if (!category || !element) return null;\n const rows = [\n ...this.visibleSeries().flatMap(s => {\n const value = s.data[index];\n return value === null || value === undefined\n ? []\n : [{ label: s.label, value: this.numbers.value(value), color: s.color }];\n }),\n ...this.lineRows(index),\n ];\n if (rows.length === 0) return null;\n // The box round the bars the category draws and its lines' points, so the chip points\n // at the end of the longest of them rather than at the top of the plot.\n const boxes = [\n ...[...element.querySelectorAll('.wr-bar-chart__series-bar')].map(bar => bar.getBoundingClientRect()),\n ...this.pointBoxes(index),\n ];\n if (boxes.length === 0) return null;\n return { datum: { label: category.label, value: '', rows }, anchor: WrBarChart.around(boxes) };\n }\n}\n\nexport type { WrBarChartDatum, WrBarLine, WrBarOrientation, WrBarSeries } from './types';\n","@let isSeries = seriesMode();\n@let isHorizontal = horizontal();\n@let isCombo = hasLines();\n@if ((isSeries || isCombo) && showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, the one its bars' outlines are\n drawn in, and each line by its dash and its marker. Rows are tracked by position, so\n two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-bar-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [hiddenSeries]=\"legendHidden()\"\n (hiddenSeriesChange)=\"onLegendHidden($event)\"\n ></ul>\n}\n\n@if (!isSeries && !isHorizontal && !isCombo) {\n <!-- A named `group`, not an `img`: `img` is a children-presentational role, so the\n bars' own `img` names inside it are dropped by a user agent that follows the spec —\n WebKit drops exactly such a subtree, which is why the donut moved its `img` off the\n wrapper. -->\n <div class=\"wr-bar-chart__plot\" role=\"group\" [attr.aria-label]=\"resolvedAriaLabel()\" [style.height.px]=\"height()\">\n @for (bar of bars(); track $index) {\n <div\n class=\"wr-bar-chart__column\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showValues() && !bar.missing) {\n <span class=\"wr-bar-chart__value\">{{ bar.display }}</span>\n }\n <div #barEl class=\"wr-bar-chart__bar\" [style.flex-grow]=\"bar.share\" [style.background]=\"bar.color\"></div>\n </div>\n }\n </div>\n <!-- Named on the column above, so the visible label row is decoration here. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (bar of bars(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ bar.label }}</span>\n }\n </div>\n} @else {\n <!-- The layout `series`, `orientation=\"horizontal\"` and `lines` share: the plot is a grid\n of the track the bars run along, a room past each end of it for the values printed\n there, and — sideways — the gutter of category names. Still a named `group`, for the\n reason the vertical `data` plot gives. Sideways, `height` is a floor rather than a\n height: each row keeps room for a line of text, so many rows grow the plot. -->\n <div\n class=\"wr-bar-chart__plot\"\n role=\"group\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"isHorizontal ? null : height()\"\n [style.min-height.px]=\"isHorizontal ? height() : null\"\n >\n @if (isHorizontal) {\n <!-- In the plot, so the rows share its gap with the track; decoration, as under the\n vertical bars: each row's group or image is named. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (label of categoryLabels(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ label }}</span>\n }\n </div>\n }\n @if (showValues()) {\n <!-- Hidden copies of the values printed past each end of the axis, stacked in one\n cell: each room is as large as the largest of them, in the value's own font, so\n a value past the longest bar has exactly the space it needs. Tracked by position:\n they are measuring copies, and live data changes every text at once. -->\n <div class=\"wr-bar-chart__room wr-bar-chart__room--max\" aria-hidden=\"true\">\n @for (text of rooms().max; track $index) {\n <span class=\"wr-bar-chart__value\">{{ text }}</span>\n }\n </div>\n <div class=\"wr-bar-chart__room wr-bar-chart__room--min\" aria-hidden=\"true\">\n @for (text of rooms().min; track $index) {\n <span class=\"wr-bar-chart__value\">{{ text }}</span>\n }\n </div>\n }\n <div class=\"wr-bar-chart__track\" [style.--wr-bar-chart-zero]=\"zero()\">\n @if (isSeries) {\n @for (category of seriesCategories(); track $index) {\n <div\n #categoryEl\n class=\"wr-bar-chart__category\"\n role=\"group\"\n [attr.aria-label]=\"category.label\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @for (lane of category.lanes; track lane.key) {\n <div class=\"wr-bar-chart__lane\">\n <!-- By position, not by label: two series may share one. Each bar hands the\n stylesheet where it starts and how much of the axis it covers. -->\n @for (bar of lane.bars; track bar.series) {\n <div\n class=\"wr-bar-chart__series-bar\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n [style.--wr-bar-chart-color]=\"bar.color\"\n [style.--wr-bar-chart-start]=\"bar.start\"\n [style.--wr-bar-chart-size]=\"bar.size\"\n >\n <!-- The outline, in the series' colour and its own dash: what tells two\n series apart without hue, and what the legend's key draws. Sized in\n pixels, so a dash is the same length on every bar. -->\n <svg class=\"wr-bar-chart__edge\" aria-hidden=\"true\" focusable=\"false\">\n <rect\n width=\"100%\"\n height=\"100%\"\n fill=\"none\"\n [attr.stroke]=\"bar.color\"\n [attr.stroke-dasharray]=\"bar.dash || null\"\n />\n </svg>\n </div>\n }\n @for (end of lane.ends; track $index) {\n <!-- Past one bar, hidden: the bar's own name carries its value. Past a pile,\n an image named \"Total: 20\": no bar's name carries the total, and a\n reader should not have to add the names up. -->\n <span\n class=\"wr-bar-chart__value\"\n [class.wr-bar-chart__value--below]=\"end.below\"\n [style.--wr-bar-chart-at]=\"end.at\"\n [attr.role]=\"end.name ? 'img' : null\"\n [attr.aria-label]=\"end.name\"\n [attr.aria-hidden]=\"end.name ? null : 'true'\"\n >{{ end.text }}</span\n >\n }\n </div>\n }\n </div>\n }\n } @else {\n @for (bar of bars(); track $index) {\n <!-- Beside `lines`, the column also hands the stylesheet where its bar starts: on\n zero, or at its own end for a bar hanging below it. -->\n <div\n class=\"wr-bar-chart__column\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n [style.--wr-bar-chart-start]=\"isCombo ? bar.start : null\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showValues() && !bar.missing) {\n <span\n class=\"wr-bar-chart__value\"\n [class.wr-bar-chart__value--below]=\"bar.below\"\n [style.--wr-bar-chart-at]=\"bar.at\"\n >{{ bar.display }}</span\n >\n }\n <div\n #barEl\n class=\"wr-bar-chart__bar\"\n [class.wr-bar-chart__bar--below]=\"bar.below\"\n [style.flex-grow]=\"bar.share\"\n [style.background]=\"bar.color\"\n ></div>\n </div>\n }\n }\n <!-- After the bars, so it is drawn over them where zero runs through the plot. -->\n <div class=\"wr-bar-chart__baseline\"></div>\n @for (line of lineLayers(); track line.index) {\n <!-- Over the bars and the baseline, and out of the pointer's way, so hovering a\n point still opens its category's tooltip. Each line is a group named by the\n line, holding a named image per point; its runs are decoration. The box runs\n from the middle of the first category to the middle of the last, which the\n stylesheet works out from `count`, and every position in it is a percentage,\n so nothing stretches: a dash and a marker keep their size at any width. -->\n <svg\n class=\"wr-bar-chart__line\"\n role=\"group\"\n focusable=\"false\"\n [attr.aria-label]=\"line.label\"\n [style.--wr-bar-chart-count]=\"line.count\"\n >\n @for (segment of line.segments; track $index) {\n <line\n class=\"wr-bar-chart__line-segment\"\n [attr.x1]=\"`${segment.from.x}%`\"\n [attr.y1]=\"`${segment.from.y}%`\"\n [attr.x2]=\"`${segment.to.x}%`\"\n [attr.y2]=\"`${segment.to.y}%`\"\n [attr.stroke]=\"line.color\"\n [attr.stroke-dasharray]=\"line.dash || null\"\n />\n }\n @for (point of line.points; track point.category) {\n <!-- A nested `<svg>` placed by percentage with its marker drawn about its origin\n in px, as the scatter chart places its points: one pixel of viewport, and\n `overflow` lets the marker reach outside it. -->\n <svg\n #pointEl\n class=\"wr-bar-chart__point\"\n role=\"img\"\n width=\"1\"\n height=\"1\"\n overflow=\"visible\"\n [attr.aria-label]=\"point.name\"\n [attr.x]=\"`${point.x}%`\"\n [attr.y]=\"`${point.y}%`\"\n [attr.data-marker]=\"line.marker\"\n >\n <path [attr.d]=\"line.d\" [attr.fill]=\"line.color\" />\n </svg>\n }\n </svg>\n }\n </div>\n </div>\n @if (!isHorizontal) {\n <!-- Named on each category's group above, so the visible label row is decoration. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (label of categoryLabels(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ label }}</span>\n }\n </div>\n }\n}\n\n@if (dataTable() && (isSeries || bars().length > 0)) {\n <!-- The figures for a screen reader who wants to move cell by cell. Clipped to nothing\n by its own stylesheet, so it takes no room and draws nothing. With `data`, one\n column for the bars, then one per line. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,MAAM,SAAS,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI,OAAO;AAG1E,MAAM,WAAW,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI,OAAO;AAO5E,MAAM,eAAe;AA4KrB,IAAa,aAAb,MAAa,WAAU;CASZ,OAAO,MAAkC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAQ5C,SAAS,MAA8B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAQ1C,aAAa,MAAyB,CAAA,GAAG,GAAA,YAAA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CAAA;EAAA,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,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,mBAAA;EAAA,CAAA;EAAA,WAAA,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,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEF,cAAY,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAGb,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"ngwr-charts-bar-chart.mjs","names":[],"sources":["../../../projects/lib/charts/bar-chart/bar-chart.ts","../../../projects/lib/charts/bar-chart/bar-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 type ElementRef,\n LOCALE_ID,\n ViewEncapsulation,\n computed,\n effect,\n inject,\n input,\n isDevMode,\n model,\n viewChildren,\n} from '@angular/core';\n\nimport { WrChartLegend, type WrChartLegendItem } from 'ngwr/charts/chart-legend';\nimport {\n WrChartTable,\n type WrChartMarkerShape,\n type WrChartTableData,\n wrChartColor,\n wrChartDash,\n wrChartMarker,\n wrChartMarkerExtent,\n wrChartMarkerPath,\n useChartNumbers,\n} from 'ngwr/charts/core';\nimport { wrReadI18nText, useI18nFormatter, useI18nText } from 'ngwr/i18n';\nimport { type WrChartTooltipRow, type WrChartTooltipTarget, useChartTooltip } from 'ngwr/popover';\nimport { wrClamp, wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrBarChartDatum, WrBarLine, WrBarOrientation, WrBarSeries } from './types';\n\n/** A share of the value axis for an inline style: four decimals, `-0` folded to `0`. */\nconst short = (value: number): number => Math.round(value * 1e4) / 1e4 || 0;\n\n/** A share as a percentage of a line's box, to two decimals, `-0` folded to `0`. */\nconst percent = (share: number): number => Math.round(share * 1e4) / 100 || 0;\n\n/**\n * How large a line's point is, in px: the radius of the circle every marker shape has\n * the area of. A step up from the line chart's 3px dot, since a point here sits on a bar\n * rather than on the page and keeps a ring of the surface round it.\n */\nconst POINT_RADIUS = 4;\n\n/** One series' bar in one category, as `series` draws it. */\ninterface SeriesBar {\n /** The series' position in `series`, which is what the bar is tracked by. */\n readonly series: number;\n readonly color: string;\n /** The outline's `stroke-dasharray`, `''` for a solid one. */\n readonly dash: string;\n /** Where the bar starts along the value axis, as a share of it from its minimum. */\n readonly start: number;\n /** How much of the value axis the bar covers. */\n readonly size: number;\n /** The series' name and its own value: the bar's accessible name. */\n readonly name: string;\n}\n\n/** A value printed past the end of a bar, or of a pile of them. */\ninterface EndLabel {\n readonly text: string;\n /** Where the end is along the value axis, as a share of it from its minimum. */\n readonly at: number;\n /** Whether the bar grows towards the axis' minimum, so the value goes past that end. */\n readonly below: boolean;\n /**\n * What the printed value announces: a pile's total, \"Total: 20\", under `stacked`, where\n * no bar's own name carries it. `null` past a single bar, whose name already does.\n */\n readonly name: string | null;\n}\n\n/**\n * One lane of a category: the strip one bar runs along. Grouped, a lane per series\n * shown, side by side; stacked, one lane holding every series' bar.\n */\ninterface Lane {\n readonly key: number;\n readonly bars: readonly SeriesBar[];\n readonly ends: readonly EndLabel[];\n}\n\n/** One category drawn from `series`: its name and its lanes. */\ninterface Category {\n readonly label: string;\n readonly lanes: readonly Lane[];\n}\n\n/**\n * Where something of a line sits in the line's own box, as percentages of it: `x` from\n * its left edge, `y` from its top. The box runs from the middle of the first category to\n * the middle of the last, so the categories are evenly spaced along it.\n */\ninterface LinePosition {\n readonly x: number;\n readonly y: number;\n}\n\n/** One point of a line: a category with a value. */\ninterface LinePoint extends LinePosition {\n /** The category's position, which is what the point is tracked by. */\n readonly category: number;\n /** The category's name and the line's value there: the point's accessible name. */\n readonly name: string;\n}\n\n/** One straight run of a line, between the points of two neighbouring categories. */\ninterface LineSegment {\n readonly from: LinePosition;\n readonly to: LinePosition;\n}\n\n/** One line of `lines`, as the chart draws it. */\ninterface LineLayer {\n /** The line's position in `lines`, which is what it is tracked by. */\n readonly index: number;\n readonly label: string;\n readonly color: string;\n /** The line's `stroke-dasharray`, `''` for a solid one. */\n readonly dash: string;\n readonly marker: WrChartMarkerShape;\n /** The marker's path, drawn about its point. */\n readonly d: string;\n /** How many categories the line's box spans, which the stylesheet sizes the box from. */\n readonly count: number;\n readonly segments: readonly LineSegment[];\n readonly points: readonly LinePoint[];\n}\n\n/**\n * Bar chart. Pass `[data]` for one series — each datum becomes a bar — or `[series]`\n * with `[categories]` for several, drawn side by side or, with `stacked`, piled on each\n * other. Vertical by default; `orientation=\"horizontal\"` lays the bars along the inline\n * axis with the category names in a gutter beside them. Axis-free: the values are\n * printed at the bars. No external dependency.\n *\n * @example\n * ```html\n * <wr-bar-chart [data]=\"[\n * { label: 'Mon', value: 12 },\n * { label: 'Tue', value: 18, color: 'var(--wr-color-success)' },\n * { label: 'Wed', value: 9 }\n * ]\" />\n *\n * <wr-bar-chart\n * [categories]=\"['Q1', 'Q2', 'Q3', 'Q4']\"\n * [series]=\"[\n * { label: 'North', data: [12, 18, 9, 22] },\n * { label: 'South', data: [8, 11, 14, 10] }\n * ]\"\n * stacked\n * />\n * ```\n *\n * **Several series.** Every category gets a bar per series shown, in series order —\n * or, with `stacked`, one pile, positive values up from zero and negative ones down\n * from it, each sign on its own, as `wr-line-chart` stacks. A negative value draws\n * below the zero line, which `series` draws wherever zero falls. Each series takes its\n * colour and its own dash: the bar's body is a tint of the colour and its outline the\n * colour itself, in the series' dash, the first one solid. The default palette's\n * colours sit within about 1.06:1 of each other in luminance, so the dash is what tells\n * two series apart without hue, and the legend keys each series by the same dash.\n *\n * **`data` is unchanged**: one series, a bar per datum, a negative value drawn as an\n * empty bar with its number still printed — except beside `lines`, whose axis can reach\n * below zero: there a negative value is drawn down from zero, as `series` draws it. With\n * both set, `series` wins, and dev mode says so.\n *\n * **Lines over the bars.** `lines` draws a line per entry through the middle of each\n * category, with a point at every value, on the bars' own value axis: a fitted axis is\n * fitted to the bars and the lines together, so a line above every bar raises the top\n * and one below zero brings the zero line up, `data` bars included — and a negative\n * `data` bar draws down from it. It works with\n * `data` and with `series`, grouped or stacked, and lying down, where the lines run down\n * the rows. A line takes the next palette colour after the bars', its own dash, the\n * first one solid, and its own marker shape, the first a circle; the legend keys each\n * by both, the tooltip gives its value, and the data table a column. A line never\n * stacks, and prints no value at its points: the tooltip and each point's name carry it.\n * The track keeps room at each end of the value axis for the largest marker, so a point\n * at either end is not cut off by the chart's box.\n *\n * **What a screen reader gets.** The plot is a named `role=\"group\"`. With `data`, each\n * bar is a `role=\"img\"` named by its label and its value. With `series`, each category\n * is a `role=\"group\"` named by the category, and each bar in it a `role=\"img\"` named by\n * its series and its own value; under `stacked`, each pile's printed total is a\n * `role=\"img\"` too, \"Total: 20\", since no bar's name carries it. Each of `lines` is a\n * `role=\"group\"` named by the line, after the bars, and each of its points a\n * `role=\"img\"` named by its category and the line's value there. No part of the chart is\n * a tab stop, unless\n * `toggleableLegend` makes the legend rows buttons. `dataTable` adds the same figures as\n * a table, for a reader who wants to move cell by cell.\n *\n * @see https://ngwr.dev/charts/bar-chart\n */\n@Component({\n selector: 'wr-bar-chart',\n templateUrl: './bar-chart.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-bar-chart',\n '[class.wr-bar-chart--horizontal]': 'horizontal()',\n '[class.wr-bar-chart--series]': 'seriesMode()',\n '[class.wr-bar-chart--stacked]': 'seriesMode() && stacked()',\n '[class.wr-bar-chart--combo]': 'hasLines()',\n // How far the largest of `lines`' markers reaches along the value axis: the room the\n // stylesheet keeps at each end of the track, so a point there stays in the chart's box.\n '[style.--wr-bar-chart-reach]': 'hasLines() ? lineReach() : null',\n // How many categories share the track: standing up, the gaps between them are held to\n // a share of the track by it, so a long list keeps its bars rather than gaps alone.\n '[style.--wr-bar-chart-categories]': 'categoryTotal() || null',\n },\n imports: [WrChartLegend, WrChartTable],\n})\nexport class WrBarChart {\n /**\n * The bars, left to right. One series: a datum with no `color` of its own\n * takes the chart's `color`, so by default every bar comes out the same.\n * A negative value draws an empty bar with its number printed — or, beside `lines`,\n * a bar down from zero. A value that is not a finite number is MISSING: an empty bar\n * with no number printed, named by its label alone, an empty cell in the data table.\n * Ignored while `series` has entries.\n */\n readonly data = input<readonly WrBarChartDatum[]>([]);\n\n /**\n * Several series over the same categories: one bar per series in every category,\n * side by side, or piled up with `stacked`. A series with no `color` takes the next\n * entry from the chart's palette, and each takes the next dash for its outline, the\n * first one solid. Wins over `data` while it has entries.\n */\n readonly series = input<readonly WrBarSeries[]>([]);\n\n /**\n * The categories' names for `series`, in order: a series takes one value per\n * category. A category past the end of this list, which a longer series reaches, is\n * named by its position, counting from 1, in `LOCALE_ID`'s digits. Not read with\n * `data`, whose datums carry their own labels.\n */\n readonly categories = input<readonly string[]>([]);\n\n /**\n * Lines drawn over the bars, through the middle of each category, with a point at\n * every value: a target, a rate, a running average beside the figures it describes.\n * Each takes one value per category, on the bars' own value axis, and a fitted axis is\n * fitted to the bars and the lines together. Works with `data` and with `series`,\n * grouped or stacked, standing up or lying down, where the lines run down the rows.\n *\n * A line with no `color` takes the palette's next colour after the bars' — past the\n * last series, or the palette's second beside `data` — and each takes the next dash and\n * the next marker shape, the first solid with a circle, so two lines differ without\n * hue. The legend lists every line after the series, keyed by its dash and its marker;\n * the tooltip gives each line's value in the category; the data table a column per line\n * after the series' columns, or after the bars'. A missing value breaks the line, and a\n * lone value between two missing ones is a point with no line. Lines never stack, and\n * print no value: the tooltip and each point's name carry it.\n *\n * Beside `data`, a negative bar draws down from zero rather than as an empty bar, since\n * the lines' axis can reach below zero and an empty bar there would read as zero. The\n * track keeps room at each end of the value axis for the largest marker, ring included,\n * so a point on either end is not cut off.\n */\n readonly lines = input<readonly WrBarLine[]>([]);\n\n /**\n * Pile each category's bars on each other, in series order, so the end of the pile\n * reads the total. Positive values pile up from zero and negative ones down from it,\n * each sign on its own, so no bar crosses another. A missing value adds nothing.\n * Each bar's accessible name, the tooltip and the data table keep each series' own\n * value; the value printed past a pile (`showValues`) is the pile's total, one for\n * each sign the category has, and announces itself as \"Total: 20\" (`barChart.total`).\n * `series` only. @default false\n */\n readonly stacked = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Which way the bars run. `horizontal` lays them along the inline axis, one row per\n * category, with the names in a gutter at inline start as wide as the longest (up to\n * `--wr-bar-chart-label-max-width`, then ellipsised). Under RTL the gutter is on the\n * right and the bars grow leftwards. Lying down, `height` is the least the plot takes:\n * the rows share it, but each bar's row keeps at least `--wr-bar-chart-row-min-size`\n * (one line of the value's text), so a long list of categories or series grows the\n * chart rather than thinning its bars to nothing. @default 'vertical'\n */\n readonly orientation = input<WrBarOrientation>('vertical');\n\n /**\n * Accessible name of the chart. Falls back to `barChart.label`, then `'Bar chart'`.\n * Also the data table's caption.\n */\n readonly ariaLabel = input<string | null>(null);\n\n protected readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'barChart.label', 'Bar chart');\n\n /**\n * The word a stacked pile's printed total announces itself by, \"Total: 20\". From the\n * catalog only, as the legend's \"hidden\" is: one word an app rewords once there.\n */\n private readonly totalText = wrReadI18nText('barChart.total', 'Total');\n\n /**\n * The data table's heading for the column of `data`'s bars, which have no series name\n * of their own. From the catalog only, as the total's word is.\n */\n private readonly valueText = wrReadI18nText('barChart.value', 'Value');\n\n /**\n * How a bar, a point and a pile's total name themselves: a label and a figure, \"Mon: 12\",\n * from the catalog, so a language that joins the two another way can.\n */\n private readonly datumText = useI18nFormatter('barChart.datum', '{{label}}: {{value}}');\n\n /** A category with no name of its own, by its position from 1 in the reader's own digits. */\n private readonly ordinals = new Intl.NumberFormat(inject(LOCALE_ID));\n\n /** Default bar colour when a datum has none. `data` only. @default 'var(--wr-color-primary)' */\n readonly color = input<string>('var(--wr-color-primary)');\n\n /**\n * Show value labels at each bar, past its end: above a bar standing up, beyond its end\n * lying down — below (or before) a negative `series` bar, and the pile's total for each\n * sign with `stacked`. A value too wide for a `series` bar standing up is left out\n * rather than cut, since a cut number reads as another one; the tooltip and each bar's\n * name carry it whole. @default true\n */\n readonly showValues = input(true, { transform: coerceBooleanProperty });\n\n /**\n * Pixel height of the chart area. With `orientation=\"horizontal\"` it is the least the\n * plot takes: each bar's row keeps at least `--wr-bar-chart-row-min-size`, so rows that\n * need more grow the plot past it. @default 200\n */\n readonly height = input(200, { transform: (v: unknown): number => Math.max(40, coerceNumberProperty(v, 200)) });\n\n /**\n * Explicit max value. `0` = auto. With `series` it fixes the positive end of the axis;\n * the negative end is still fitted to the data. A value past it is drawn to the edge,\n * and its name, the tooltip and the data table still give its own figure. @default 0\n */\n readonly max = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n /**\n * Show a tooltip with the bar's label and value on hover — with `series`, the\n * category's name and a row per series shown. Pointer only — the accessible names\n * already carry every value. @default true\n */\n readonly tooltip = input(true, { transform: coerceBooleanProperty });\n\n /** Show the legend above the chart. With `series`, or beside `lines`, which it then lists. @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` — or its line, through `hiddenLines`. A row is a\n * `<button aria-pressed>`, pressed while its series is shown, so the legend becomes one\n * tab stop per row. With `series`, or beside `lines`. @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 bars\n * and leaves its lane, so the others widen; it leaves the stack, the tooltip and the\n * data table; and a fitted axis is fitted to the series still shown. The categories do\n * not change, since they belong to the chart rather than to one series. The legend\n * keeps the hidden series' row, struck through, so it can be shown again. A position\n * past the end of `series` is kept and ignored.\n */\n readonly hiddenSeries = model<readonly number[]>([]);\n\n /**\n * The positions in `lines` of the lines that are hidden, as `hiddenSeries` holds the\n * series': a toggleable legend writes it, and a host may bind it with or without one,\n * `[(hiddenLines)]`. A hidden line draws nothing and leaves the tooltip and the data\n * table, and a fitted axis is fitted to what is still shown. The legend keeps its row,\n * struck through. A position past the end of `lines` is kept and ignored.\n */\n readonly hiddenLines = model<readonly number[]>([]);\n\n /**\n * Render the chart's figures as a table that only assistive technology reaches: a row\n * per category, headed by its name, and a column per series shown — or, with `data`,\n * one column for the bars, headed \"Value\" (`barChart.value`) — then one per line shown,\n * every value written the way the tooltip writes it. A missing value is an empty cell,\n * and a stacked chart's table keeps each series' own values.\n *\n * Each bar's accessible name already carries its value; the table is for a reader\n * who wants to move cell by cell. It is rendered beside the plot, clipped to nothing:\n * it takes no room, draws nothing and holds no tab stop. A hidden series or line leaves\n * it. @default false\n */\n readonly dataTable = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Writes every number the chart shows: the labels at the bars, the tooltip and\n * each bar's accessible name. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, with\n * compact labels from a thousand up (`1.2K`, `3.4M`).\n */\n readonly valueFormat = input<((value: number) => string) | null>(null);\n\n /**\n * The chart's number writers: `value` for the tooltip and each bar's accessible\n * name, the whole figure; `label` above the bar, compact from a thousand up, where a\n * column is too narrow for `1,234,567`, and exactly as `value` writes it below —\n * compact rounding would print 12.5 as `13`, and below a thousand there is nothing to\n * abbreviate.\n */\n private readonly numbers = useChartNumbers(this.valueFormat);\n\n private readonly barEls = viewChildren<ElementRef<HTMLElement>>('barEl');\n\n private readonly categoryEls = viewChildren<ElementRef<HTMLElement>>('categoryEl');\n\n /** Every point of every line, in the order {@link lineLayers} lists them. */\n private readonly pointEls = viewChildren<ElementRef<SVGSVGElement>>('pointEl');\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('charts/bar-chart');\n // Two inputs that each describe the whole chart: drawing one and silently dropping\n // the other looks like data that failed to load.\n if (isDevMode()) {\n let warned = false;\n effect(() => {\n if (warned || this.data().length === 0 || this.series().length === 0) return;\n warned = true;\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n '[NGWR] <wr-bar-chart>: both `data` and `series` are set. The chart draws `series` and ignores `data`; ' +\n 'pass one of them.'\n );\n });\n }\n }\n\n /** Whether the chart draws `series` rather than `data`. */\n protected readonly seriesMode = computed(() => this.series().length > 0);\n\n protected readonly horizontal = computed(() => this.orientation() === 'horizontal');\n\n /**\n * Whether the chart has `lines` to draw, shown or hidden. Beside `data` it moves the\n * bars into the layout `series` uses, whose track the lines are drawn over; hiding\n * every line keeps that layout, so a legend toggle never reflows the bars.\n */\n protected readonly hasLines = computed(() => this.lines().length > 0);\n\n /**\n * A datum's value, with anything non-finite read as `0` for the geometry.\n *\n * One `NaN` used to take out the whole chart rather than its own bar:\n * `Math.max(...values)` is `NaN` as soon as one value is, so the scale fell\n * back to `1` and every OTHER bar was asked for a height of `value * 100`%.\n * The bad bar also printed the literal text `NaN` above itself. It is not a zero\n * either, so nothing a reader meets prints one for it (see `bars`).\n */\n private static value(raw: number): number {\n return Number.isFinite(raw) ? raw : 0;\n }\n\n /** A label and a figure, as a name: \"Mon: 12\". */\n private name(label: string, value: number): string {\n return this.datumText({ label, value: this.numbers.value(value) });\n }\n\n /** How many categories the chart draws, whichever input it draws. */\n protected readonly categoryTotal = computed(() => (this.seriesMode() ? this.categoryCount() : this.data().length));\n\n /**\n * The value axis for `data`, from `lo` to `hi`: from zero to the tallest bar, or to\n * `max` when one is given. Beside `lines` it is stretched to every line value shown and\n * to every bar below zero — which then draws down from zero, as a `series` bar does,\n * rather than as an empty bar that would read as zero on an axis reaching below it — so\n * either lifts the zero line the bars stand on. With nothing to scale it runs from 0\n * to 1.\n */\n private readonly dataScale = computed(() => {\n const data = this.data();\n // Whether `lines` are set, shown or not: hiding every line keeps the layout, and with\n // it a negative bar's place below zero.\n const combo = this.hasLines();\n let lo = 0;\n let hi = 0;\n for (const d of data) {\n const value = WrBarChart.value(d.value);\n hi = Math.max(hi, value);\n if (combo) lo = Math.min(lo, value);\n }\n for (const line of this.visibleLines()) {\n for (let c = 0; c < data.length; c++) {\n const v = line.data[c];\n if (v === null || v === undefined) continue;\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n }\n }\n const explicit = this.max();\n if (explicit > 0) hi = explicit;\n if (hi - lo <= 0) hi = 1;\n return { lo, hi };\n });\n\n protected readonly bars = computed(() => {\n const { lo, hi } = this.dataScale();\n // Zero is the axis minimum until a line or, beside lines, a bar goes below it; the bars\n // stand on it, and a bar's share is of the whole axis, so it can reach no further than\n // the top. Beside `lines` a negative bar hangs from zero down to its value; without\n // them it is an empty bar on zero.\n const combo = this.hasLines();\n const floor = this.at(0);\n const zero = this.zero();\n return this.data().map(d => {\n const value = WrBarChart.value(d.value);\n // A missing value is drawn as the empty bar a zero is, and printed as nothing.\n const missing = !Number.isFinite(d.value);\n const text = missing ? '' : this.numbers.value(value);\n const below = combo && value < 0;\n const share = below ? Math.min(floor, -value / (hi - lo)) : Math.min(1 - floor, Math.max(0, value) / (hi - lo));\n return {\n label: d.label,\n value,\n /** Whether the datum's value is not a finite number: no figure is printed, named or tabled for it. */\n missing,\n /** The label printed above the bar. */\n display: missing ? '' : this.numbers.label(value),\n /** The whole figure, for the tooltip. */\n text,\n color: d.color ?? this.color(),\n /**\n * The bar's share of the plot, from 0 to 1, written as its `flex-grow` — see\n * the stylesheet for why a grow factor and not a `height` percentage.\n */\n share,\n /** Whether the bar hangs below zero, beside `lines`: its value is printed past its lower end. */\n below,\n /**\n * Where the bar starts along the value axis, from its minimum: zero, or the bar's\n * own end for one below it. Beside `lines`, the share the spacer under it takes.\n */\n start: below ? short(zero - share) : zero,\n /** Where the bar ends along the value axis, from its minimum: what the value printed past it is placed by. */\n at: below ? short(zero - share) : zero + share,\n /**\n * The bar's accessible name. The label and the value sit in separate\n * rows, so a screen reader read every number and then every label with\n * nothing tying the two together — and with `showValues` off the\n * numbers were not in the accessible tree at all. A missing value is the\n * label alone.\n */\n name: missing ? d.label : this.name(d.label, value),\n };\n });\n });\n\n /**\n * Every series, resolved: its palette colour, its dash, and its data with `null` at\n * every missing value. Hidden ones included, since the legend lists them.\n */\n private readonly resolvedSeries = computed(() =>\n this.series().map((s, index) => ({\n index,\n label: s.label,\n color: s.color ?? wrChartColor(index),\n dash: wrChartDash(index),\n data: s.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\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 * Every line, resolved: its colour — the palette's next after the bars' — its dash, its\n * marker, and its data with `null` at every missing value. Hidden ones included, since\n * the legend lists them.\n */\n private readonly resolvedLines = computed(() => {\n // Past the series' colours, or past the one `data` paints its bars in by default.\n const offset = this.seriesMode() ? this.series().length : 1;\n return this.lines().map((line, index) => ({\n index,\n label: line.label,\n color: line.color ?? wrChartColor(offset + index),\n dash: wrChartDash(index),\n marker: wrChartMarker(index),\n data: line.data.map(v => (typeof v === 'number' && Number.isFinite(v) ? v : null)),\n }));\n });\n\n /** The lines drawn, read and fitted to: every one `hiddenLines` does not name. */\n private readonly visibleLines = computed(() => {\n const hidden = new Set(this.hiddenLines());\n return this.resolvedLines().filter(line => !hidden.has(line.index));\n });\n\n /** How many categories `series` has: as many as are named, or as the longest series reaches. */\n private readonly categoryCount = computed(() =>\n this.resolvedSeries().reduce((count, s) => Math.max(count, s.data.length), this.categories().length)\n );\n\n /**\n * The value axis for `series`, from `lo` (zero or below) to `hi` (above zero): the\n * extremes of the series shown, or of their piles under `stacked`, and of the lines\n * shown, so the longest bar or the farthest point reaches the end of the plot, as it\n * does with `data`. A positive `max` fixes `hi`. With nothing to scale it runs from 0\n * to 1.\n */\n private readonly seriesScale = computed(() => {\n const series = this.visibleSeries();\n const lines = this.visibleLines();\n const stacked = this.stacked();\n let lo = 0;\n let hi = 0;\n for (let c = 0; c < this.categoryCount(); c++) {\n let up = 0;\n let down = 0;\n for (const s of series) {\n const v = s.data[c];\n if (v === null || v === undefined) continue;\n if (!stacked) {\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n } else if (v < 0) down += v;\n else up += v;\n }\n lo = Math.min(lo, down);\n hi = Math.max(hi, up);\n // A line shares the axis, and never stacks.\n for (const line of lines) {\n const v = line.data[c];\n if (v === null || v === undefined) continue;\n lo = Math.min(lo, v);\n hi = Math.max(hi, v);\n }\n }\n const explicit = this.max();\n if (explicit > 0) hi = explicit;\n if (hi - lo <= 0) hi = 1;\n return { lo, hi };\n });\n\n /** The value axis the chart draws on: `series`' or `data`'s. */\n private readonly scale = computed(() => (this.seriesMode() ? this.seriesScale() : this.dataScale()));\n\n /** A value's place along the value axis, as a share of it from its minimum, held to the axis. */\n private at(value: number): number {\n const { lo, hi } = this.scale();\n return wrClamp((value - lo) / (hi - lo), 0, 1);\n }\n\n /**\n * Every category `series` draws, with its lanes: grouped, a lane per series shown, a\n * missing value leaving its lane empty so the bars beside it keep their places;\n * stacked, one lane holding each series' bar on the pile of the ones before it on the\n * same side of zero. With `showValues`, a lane also carries the values printed past\n * its ends: each bar's own, or each pile's total.\n */\n protected readonly seriesCategories = computed<readonly Category[]>(() => {\n if (!this.seriesMode()) return [];\n const series = this.visibleSeries();\n const labels = this.categories();\n const values = this.showValues();\n const zero = this.at(0);\n const name = (label: string, value: number): string => this.name(label, value);\n\n return Array.from({ length: this.categoryCount() }, (_, c): Category => {\n const label = labels[c] ?? this.ordinals.format(c + 1);\n if (!this.stacked()) {\n const lanes = series.map((s): Lane => {\n const v = s.data[c];\n if (v === null || v === undefined) return { key: s.index, bars: [], ends: [] };\n const end = this.at(v);\n const bar = {\n series: s.index,\n color: s.color,\n dash: s.dash,\n start: short(Math.min(zero, end)),\n size: short(Math.abs(end - zero)),\n name: name(s.label, v),\n };\n return {\n key: s.index,\n bars: [bar],\n ends: values ? [{ text: this.numbers.label(v), at: short(end), below: v < 0, name: null }] : [],\n };\n });\n return { label, lanes };\n }\n\n let up = 0;\n let down = 0;\n let rises = false;\n let falls = false;\n const bars = series.flatMap((s): SeriesBar[] => {\n const v = s.data[c];\n if (v === null || v === undefined) return [];\n const base = v < 0 ? down : up;\n const top = base + v;\n if (v < 0) {\n down = top;\n falls = true;\n } else {\n up = top;\n rises = true;\n }\n const from = this.at(base);\n const to = this.at(top);\n return [\n {\n series: s.index,\n color: s.color,\n dash: s.dash,\n start: short(Math.min(from, to)),\n size: short(Math.abs(to - from)),\n name: name(s.label, v),\n },\n ];\n });\n // A pile's total is printed, and no bar's own name carries it, so the printed value\n // announces itself — with the whole figure, as a bar's name does.\n const total = (value: number, below: boolean): EndLabel => ({\n text: this.numbers.label(value),\n at: short(this.at(value)),\n below,\n name: name(this.totalText(), value),\n });\n const ends: EndLabel[] = [];\n if (values && rises) ends.push(total(up, false));\n if (values && falls) ends.push(total(down, true));\n return { label, lanes: [{ key: 0, bars, ends }] };\n });\n });\n\n /** The category names, in order, whichever input the chart draws. */\n protected readonly categoryLabels = computed(() =>\n this.seriesMode() ? this.seriesCategories().map(c => c.label) : this.data().map(d => d.label)\n );\n\n /**\n * Where zero is along the value axis, as a share of it: the baseline. `data` goes below\n * zero only where one of `lines` does.\n */\n protected readonly zero = computed(() => short(this.at(0)));\n\n /**\n * The values printed past the bars, sorted by the end they go past: the room the plot\n * keeps beyond each end of the axis is a hidden copy of these, so it is exactly as\n * large as the largest, in the value's own font. Each text once.\n */\n protected readonly rooms = computed(() => {\n if (!this.showValues()) return { max: [], min: [] };\n if (!this.seriesMode()) {\n const bars = this.bars();\n return {\n max: [...new Set(bars.filter(b => !b.below && !b.missing).map(b => b.display))],\n min: [...new Set(bars.filter(b => b.below && !b.missing).map(b => b.display))],\n };\n }\n const ends = this.seriesCategories().flatMap(c => c.lanes.flatMap(lane => lane.ends));\n return {\n max: [...new Set(ends.filter(e => !e.below).map(e => e.text))],\n min: [...new Set(ends.filter(e => e.below).map(e => e.text))],\n };\n });\n\n /**\n * Every line shown, as the chart draws it: its segments and its points, placed in the\n * line's own box. The box runs from the middle of the first category to the middle of\n * the last (the stylesheet sizes it from `count`), so category `c` of `n` is `c / (n − 1)`\n * of the way along it — or its middle, with one category. Across the box is the value\n * axis: up from the bottom standing up, along from inline start lying down, where the\n * stylesheet mirrors the box under RTL as the bars mirror.\n */\n protected readonly lineLayers = computed<readonly LineLayer[]>(() => {\n const count = this.seriesMode() ? this.categoryCount() : this.data().length;\n if (count === 0) return [];\n const labels = this.categoryLabels();\n const horizontal = this.horizontal();\n const along = (c: number): number => (count === 1 ? 50 : percent(c / (count - 1)));\n const place = (c: number, value: number): LinePosition => {\n const at = this.at(value);\n return horizontal ? { x: percent(at), y: along(c) } : { x: along(c), y: percent(1 - at) };\n };\n\n return this.visibleLines().map((line): LineLayer => {\n const segments: LineSegment[] = [];\n const points: LinePoint[] = [];\n let previous: LinePosition | null = null;\n for (let c = 0; c < count; c++) {\n const value = line.data[c];\n if (value === null || value === undefined) {\n // A missing value breaks the line: the next point starts a new run.\n previous = null;\n continue;\n }\n const position = place(c, value);\n if (previous) segments.push({ from: previous, to: position });\n points.push({ ...position, category: c, name: this.name(labels[c] ?? this.ordinals.format(c + 1), value) });\n previous = position;\n }\n return {\n index: line.index,\n label: line.label,\n color: line.color,\n dash: line.dash,\n marker: line.marker,\n d: wrChartMarkerPath(line.marker, POINT_RADIUS),\n count,\n segments,\n points,\n };\n });\n });\n\n /**\n * How far the largest of `lines`' markers reaches past its point along the value axis,\n * in px, before its ring: up or down standing up, sideways lying down. By SHAPE, not\n * radius — a triangle's point stands 1.56 times its radius off its centre. Every line\n * counts, hidden ones included, so a legend toggle never reflows the bars. The\n * stylesheet adds the ring and keeps that much room at each end of the track.\n */\n protected readonly lineReach = computed(() => {\n const horizontal = this.horizontal();\n let reach = 0;\n for (const line of this.resolvedLines()) {\n const extent = wrChartMarkerExtent(line.marker, POINT_RADIUS);\n reach = Math.max(reach, horizontal ? extent.side : Math.max(extent.top, extent.bottom));\n }\n return Math.round(reach * 1000) / 1000;\n });\n\n /**\n * The legend's rows: every series, keyed by its own dash, then every line, keyed by its\n * dash and its marker — hidden ones included.\n */\n protected readonly legendItems = computed<readonly WrChartLegendItem[]>(() => [\n ...this.resolvedSeries().map(({ label, color, dash }) => ({ label, color, dash })),\n ...this.resolvedLines().map(({ label, color, dash, marker }) => ({ label, color, dash, marker })),\n ]);\n\n /**\n * The legend's hidden rows. Its rows are the series and then the lines, so a hidden\n * line is its position in `lines` past the series' count. A position `hiddenSeries`\n * keeps past the end of `series` is not handed over beside lines, where it would name\n * a line; without lines `hiddenSeries` goes through as it is.\n */\n protected readonly legendHidden = computed<readonly number[]>(() => {\n const hiddenSeries = this.hiddenSeries();\n if (!this.hasLines()) return hiddenSeries;\n const offset = this.resolvedSeries().length;\n return [...hiddenSeries.filter(i => i < offset), ...this.hiddenLines().map(i => offset + i)];\n });\n\n /** A toggle on the legend, split back into `hiddenSeries` and `hiddenLines`. Writes only the one that moved. */\n protected onLegendHidden(next: readonly number[]): void {\n if (!this.hasLines()) {\n this.hiddenSeries.set(next);\n return;\n }\n const offset = this.resolvedSeries().length;\n const ascending = (a: number, b: number): number => a - b;\n const series = [...next.filter(i => i < offset), ...this.hiddenSeries().filter(i => i >= offset)].sort(ascending);\n const lines = next.filter(i => i >= offset).map(i => i - offset);\n const same = (a: readonly number[], b: readonly number[]): boolean =>\n a.length === b.length && a.every((value, i) => value === b[i]);\n if (!same(series, this.hiddenSeries())) this.hiddenSeries.set(series);\n if (!same(lines, this.hiddenLines())) this.hiddenLines.set(lines);\n }\n\n /**\n * The figures for `dataTable`: the chart's name as the caption, a column per series\n * shown — or, with `data`, one for the bars, headed by `barChart.value` — then per line\n * shown, and a row per category. Each cell is the series' own value, stacked or not,\n * written as the tooltip writes it, and empty where it is missing; a bar's is the figure\n * its name gives. With every series and line hidden there is nothing to tabulate, and\n * no rows.\n */\n protected readonly tableData = computed<WrChartTableData>(() => {\n const bars = this.seriesMode()\n ? this.visibleSeries()\n : [{ label: this.valueText(), data: this.data().map(d => (Number.isFinite(d.value) ? d.value : null)) }];\n const columns = [...bars, ...this.visibleLines()];\n const labels = this.categoryLabels();\n const rows =\n columns.length === 0\n ? []\n : labels.map((header, c) => ({\n header,\n cells: columns.map(column => {\n const value = column.data[c];\n return value === null || value === undefined ? '' : this.numbers.value(value);\n }),\n }));\n return { caption: this.resolvedAriaLabel(), columns: columns.map(column => column.label), groups: [{ rows }] };\n });\n\n /**\n * One tooltip for the whole chart, with the whole figure — the label above the bar\n * may be compact, and the tooltip is where a reader goes for the exact one.\n *\n * With `data` it points at the top edge of the BAR — above it, below it when there is\n * no room — rather than at the column, which is the full height of the plot and\n * would put the chip above every bar alike. A bar with nothing to draw (zero, or a\n * negative value without `lines`) keeps its 1px floor on the baseline, so its chip\n * points there; a missing value opens none, unless a line has a value in its category.\n * The bar is the anchor element itself, so an open chip follows it through the\n * height transition a data change starts.\n *\n * With `series` it is one chip per category: the category's name and a row per series\n * shown with a value there, pointing at the top of the box round the category's bars.\n * A category no series shown has a value in opens none.\n *\n * Each line shown with a value in the category adds a row after the bars', and the box\n * the chip points at takes in the line's point too, so the chip covers neither. Beside\n * `data`, the chip keeps the bar's label and value as its heading, over the lines' rows.\n */\n protected readonly tip = useChartTooltip(this.tooltip, index =>\n this.seriesMode() ? this.categoryTip(index) : this.barTip(index)\n );\n\n private barTip(index: number): WrChartTooltipTarget | null {\n const bar = this.bars()[index];\n const anchor = this.barEls()[index]?.nativeElement;\n if (!bar || !anchor) return null;\n const rows = this.lineRows(index);\n // A missing value has nothing to say but its label, which is already under the bar.\n if (rows.length === 0)\n return bar.missing ? null : { datum: { label: bar.label, value: bar.text, color: bar.color }, anchor };\n return {\n datum: { label: bar.label, value: bar.text, color: bar.color, rows },\n anchor: WrBarChart.around([anchor.getBoundingClientRect(), ...this.pointBoxes(index)]),\n };\n }\n\n /** A row per line shown with a value in category `index`, after the bars' rows. */\n private lineRows(index: number): WrChartTooltipRow[] {\n return this.visibleLines().flatMap(line => {\n const value = line.data[index];\n return value === null || value === undefined\n ? []\n : [{ label: line.label, value: this.numbers.value(value), color: line.color }];\n });\n }\n\n /** The box round each line's point in category `index`: the marker, not the 1px viewport it is drawn from. */\n private pointBoxes(index: number): DOMRect[] {\n const categories = this.lineLayers().flatMap(line => line.points.map(point => point.category));\n return this.pointEls().flatMap((el, i) => {\n const marker = el.nativeElement.firstElementChild;\n return categories[i] === index && marker ? [marker.getBoundingClientRect()] : [];\n });\n }\n\n /** The box round several, as a tooltip anchor. */\n private static around(boxes: readonly DOMRect[]): { x: number; y: number; width: number; height: number } {\n const left = Math.min(...boxes.map(box => box.left));\n const top = Math.min(...boxes.map(box => box.top));\n const right = Math.max(...boxes.map(box => box.right));\n const bottom = Math.max(...boxes.map(box => box.bottom));\n return { x: left, y: top, width: right - left, height: bottom - top };\n }\n\n private categoryTip(index: number): WrChartTooltipTarget | null {\n const category = this.seriesCategories()[index];\n const element = this.categoryEls()[index]?.nativeElement;\n if (!category || !element) return null;\n const rows = [\n ...this.visibleSeries().flatMap(s => {\n const value = s.data[index];\n return value === null || value === undefined\n ? []\n : [{ label: s.label, value: this.numbers.value(value), color: s.color }];\n }),\n ...this.lineRows(index),\n ];\n if (rows.length === 0) return null;\n // The box round the bars the category draws and its lines' points, so the chip points\n // at the end of the longest of them rather than at the top of the plot.\n const boxes = [\n ...[...element.querySelectorAll('.wr-bar-chart__series-bar')].map(bar => bar.getBoundingClientRect()),\n ...this.pointBoxes(index),\n ];\n if (boxes.length === 0) return null;\n return { datum: { label: category.label, value: '', rows }, anchor: WrBarChart.around(boxes) };\n }\n}\n\nexport type { WrBarChartDatum, WrBarLine, WrBarOrientation, WrBarSeries } from './types';\n","@let isSeries = seriesMode();\n@let isHorizontal = horizontal();\n@let isCombo = hasLines();\n@if ((isSeries || isCombo) && showLegend() && legendItems().length > 0) {\n <!-- Every row keys its series by the series' own dash, the one its bars' outlines are\n drawn in, and each line by its dash and its marker. Rows are tracked by position, so\n two series that share a label are two rows. -->\n <ul\n wr-chart-legend\n class=\"wr-bar-chart__legend\"\n [items]=\"legendItems()\"\n [toggleable]=\"toggleableLegend()\"\n [hiddenSeries]=\"legendHidden()\"\n (hiddenSeriesChange)=\"onLegendHidden($event)\"\n ></ul>\n}\n\n@if (!isSeries && !isHorizontal && !isCombo) {\n <!-- A named `group`, not an `img`: `img` is a children-presentational role, so the\n bars' own `img` names inside it are dropped by a user agent that follows the spec —\n WebKit drops exactly such a subtree, which is why the donut moved its `img` off the\n wrapper. -->\n <div class=\"wr-bar-chart__plot\" role=\"group\" [attr.aria-label]=\"resolvedAriaLabel()\" [style.height.px]=\"height()\">\n @for (bar of bars(); track $index) {\n <div\n class=\"wr-bar-chart__column\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showValues() && !bar.missing) {\n <span class=\"wr-bar-chart__value\">{{ bar.display }}</span>\n }\n <div #barEl class=\"wr-bar-chart__bar\" [style.flex-grow]=\"bar.share\" [style.background]=\"bar.color\"></div>\n </div>\n }\n </div>\n <!-- Named on the column above, so the visible label row is decoration here. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (bar of bars(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ bar.label }}</span>\n }\n </div>\n} @else {\n <!-- The layout `series`, `orientation=\"horizontal\"` and `lines` share: the plot is a grid\n of the track the bars run along, a room past each end of it for the values printed\n there, and — sideways — the gutter of category names. Still a named `group`, for the\n reason the vertical `data` plot gives. Sideways, `height` is a floor rather than a\n height: each row keeps room for a line of text, so many rows grow the plot. -->\n <div\n class=\"wr-bar-chart__plot\"\n role=\"group\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"isHorizontal ? null : height()\"\n [style.min-height.px]=\"isHorizontal ? height() : null\"\n >\n @if (isHorizontal) {\n <!-- In the plot, so the rows share its gap with the track; decoration, as under the\n vertical bars: each row's group or image is named. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (label of categoryLabels(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ label }}</span>\n }\n </div>\n }\n @if (showValues()) {\n <!-- Hidden copies of the values printed past each end of the axis, stacked in one\n cell: each room is as large as the largest of them, in the value's own font, so\n a value past the longest bar has exactly the space it needs. Tracked by position:\n they are measuring copies, and live data changes every text at once. -->\n <div class=\"wr-bar-chart__room wr-bar-chart__room--max\" aria-hidden=\"true\">\n @for (text of rooms().max; track $index) {\n <span class=\"wr-bar-chart__value\">{{ text }}</span>\n }\n </div>\n <div class=\"wr-bar-chart__room wr-bar-chart__room--min\" aria-hidden=\"true\">\n @for (text of rooms().min; track $index) {\n <span class=\"wr-bar-chart__value\">{{ text }}</span>\n }\n </div>\n }\n <div class=\"wr-bar-chart__track\" [style.--wr-bar-chart-zero]=\"zero()\">\n @if (isSeries) {\n @for (category of seriesCategories(); track $index) {\n <div\n #categoryEl\n class=\"wr-bar-chart__category\"\n role=\"group\"\n [attr.aria-label]=\"category.label\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @for (lane of category.lanes; track lane.key) {\n <div class=\"wr-bar-chart__lane\">\n <!-- By position, not by label: two series may share one. Each bar hands the\n stylesheet where it starts and how much of the axis it covers. -->\n @for (bar of lane.bars; track bar.series) {\n <div\n class=\"wr-bar-chart__series-bar\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n [style.--wr-bar-chart-color]=\"bar.color\"\n [style.--wr-bar-chart-start]=\"bar.start\"\n [style.--wr-bar-chart-size]=\"bar.size\"\n >\n <!-- The outline, in the series' colour and its own dash: what tells two\n series apart without hue, and what the legend's key draws. Sized in\n pixels, so a dash is the same length on every bar. -->\n <svg class=\"wr-bar-chart__edge\" aria-hidden=\"true\" focusable=\"false\">\n <rect\n width=\"100%\"\n height=\"100%\"\n fill=\"none\"\n [attr.stroke]=\"bar.color\"\n [attr.stroke-dasharray]=\"bar.dash || null\"\n />\n </svg>\n </div>\n }\n @for (end of lane.ends; track $index) {\n <!-- Past one bar, hidden: the bar's own name carries its value. Past a pile,\n an image named \"Total: 20\": no bar's name carries the total, and a\n reader should not have to add the names up. -->\n <span\n class=\"wr-bar-chart__value\"\n [class.wr-bar-chart__value--below]=\"end.below\"\n [style.--wr-bar-chart-at]=\"end.at\"\n [attr.role]=\"end.name ? 'img' : null\"\n [attr.aria-label]=\"end.name\"\n [attr.aria-hidden]=\"end.name ? null : 'true'\"\n >{{ end.text }}</span\n >\n }\n </div>\n }\n </div>\n }\n } @else {\n @for (bar of bars(); track $index) {\n <!-- Beside `lines`, the column also hands the stylesheet where its bar starts: on\n zero, or at its own end for a bar hanging below it. -->\n <div\n class=\"wr-bar-chart__column\"\n role=\"img\"\n [attr.aria-label]=\"bar.name\"\n [style.--wr-bar-chart-start]=\"isCombo ? bar.start : null\"\n (mouseenter)=\"tip.enter($index)\"\n (mouseleave)=\"tip.leave($event)\"\n >\n @if (showValues() && !bar.missing) {\n <span\n class=\"wr-bar-chart__value\"\n [class.wr-bar-chart__value--below]=\"bar.below\"\n [style.--wr-bar-chart-at]=\"bar.at\"\n >{{ bar.display }}</span\n >\n }\n <div\n #barEl\n class=\"wr-bar-chart__bar\"\n [class.wr-bar-chart__bar--below]=\"bar.below\"\n [style.flex-grow]=\"bar.share\"\n [style.background]=\"bar.color\"\n ></div>\n </div>\n }\n }\n <!-- After the bars, so it is drawn over them where zero runs through the plot. -->\n <div class=\"wr-bar-chart__baseline\"></div>\n @for (line of lineLayers(); track line.index) {\n <!-- Over the bars and the baseline, and out of the pointer's way, so hovering a\n point still opens its category's tooltip. Each line is a group named by the\n line, holding a named image per point; its runs are decoration. The box runs\n from the middle of the first category to the middle of the last, which the\n stylesheet works out from `count`, and every position in it is a percentage,\n so nothing stretches: a dash and a marker keep their size at any width. -->\n <svg\n class=\"wr-bar-chart__line\"\n role=\"group\"\n focusable=\"false\"\n [attr.aria-label]=\"line.label\"\n [style.--wr-bar-chart-count]=\"line.count\"\n >\n @for (segment of line.segments; track $index) {\n <line\n class=\"wr-bar-chart__line-segment\"\n [attr.x1]=\"`${segment.from.x}%`\"\n [attr.y1]=\"`${segment.from.y}%`\"\n [attr.x2]=\"`${segment.to.x}%`\"\n [attr.y2]=\"`${segment.to.y}%`\"\n [attr.stroke]=\"line.color\"\n [attr.stroke-dasharray]=\"line.dash || null\"\n />\n }\n @for (point of line.points; track point.category) {\n <!-- A nested `<svg>` placed by percentage with its marker drawn about its origin\n in px, as the scatter chart places its points: one pixel of viewport, and\n `overflow` lets the marker reach outside it. -->\n <svg\n #pointEl\n class=\"wr-bar-chart__point\"\n role=\"img\"\n width=\"1\"\n height=\"1\"\n overflow=\"visible\"\n [attr.aria-label]=\"point.name\"\n [attr.x]=\"`${point.x}%`\"\n [attr.y]=\"`${point.y}%`\"\n [attr.data-marker]=\"line.marker\"\n >\n <path [attr.d]=\"line.d\" [attr.fill]=\"line.color\" />\n </svg>\n }\n </svg>\n }\n </div>\n </div>\n @if (!isHorizontal) {\n <!-- Named on each category's group above, so the visible label row is decoration. -->\n <div class=\"wr-bar-chart__labels\" aria-hidden=\"true\">\n @for (label of categoryLabels(); track $index) {\n <span class=\"wr-bar-chart__label\">{{ label }}</span>\n }\n </div>\n }\n}\n\n@if (dataTable() && (isSeries || bars().length > 0)) {\n <!-- The figures for a screen reader who wants to move cell by cell. Clipped to nothing\n by its own stylesheet, so it takes no room and draws nothing. With `data`, one\n column for the bars, then one per line. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"],"mappings":";;;;;;;;;;;;;;AAyCA,MAAM,SAAS,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI,OAAO;AAG1E,MAAM,WAAW,UAA0B,KAAK,MAAM,QAAQ,GAAG,IAAI,OAAO;AAO5E,MAAM,eAAe;AA4KrB,IAAa,aAAb,MAAa,WAAU;CASZ,OAAO,MAAkC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;CAQ5C,SAAS,MAA8B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,SAAA,CAAA,+BAAA,CAAA,CAAA;CAQ1C,aAAa,MAAyB,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAuBzC,QAAQ,MAA4B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAWvC,UAAU,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,UAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAWzD,cAAc,MAAwB,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAMjD,YAAY,MA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;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,GAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,mBAAA;EAAA,CAAA;EAAA,WAAA,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,QAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,SAAO,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAEF,cAAY,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAGb,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
@@ -309,7 +309,7 @@ var WrBoxplotChart = class WrBoxplotChart {
309
309
  }
310
310
  static ɵfac = i0.ɵɵngDeclareFactory({
311
311
  minVersion: "12.0.0",
312
- version: "22.2.5",
312
+ version: "22.2.6",
313
313
  ngImport: i0,
314
314
  type: WrBoxplotChart,
315
315
  deps: [],
@@ -317,7 +317,7 @@ var WrBoxplotChart = class WrBoxplotChart {
317
317
  });
318
318
  static ɵcmp = i0.ɵɵngDeclareComponent({
319
319
  minVersion: "17.0.0",
320
- version: "22.2.5",
320
+ version: "22.2.6",
321
321
  type: WrBoxplotChart,
322
322
  isStandalone: true,
323
323
  selector: "wr-boxplot-chart",
@@ -413,7 +413,7 @@ var WrBoxplotChart = class WrBoxplotChart {
413
413
  };
414
414
  i0.ɵɵngDeclareClassMetadata({
415
415
  minVersion: "12.0.0",
416
- version: "22.2.5",
416
+ version: "22.2.6",
417
417
  ngImport: i0,
418
418
  type: WrBoxplotChart,
419
419
  decorators: [{
@@ -250,7 +250,7 @@ var WrBulletChart = class WrBulletChart {
250
250
  });
251
251
  static ɵfac = i0.ɵɵngDeclareFactory({
252
252
  minVersion: "12.0.0",
253
- version: "22.2.5",
253
+ version: "22.2.6",
254
254
  ngImport: i0,
255
255
  type: WrBulletChart,
256
256
  deps: [],
@@ -258,7 +258,7 @@ var WrBulletChart = class WrBulletChart {
258
258
  });
259
259
  static ɵcmp = i0.ɵɵngDeclareComponent({
260
260
  minVersion: "17.0.0",
261
- version: "22.2.5",
261
+ version: "22.2.6",
262
262
  type: WrBulletChart,
263
263
  isStandalone: true,
264
264
  selector: "wr-bullet-chart",
@@ -352,7 +352,7 @@ var WrBulletChart = class WrBulletChart {
352
352
  };
353
353
  i0.ɵɵngDeclareClassMetadata({
354
354
  minVersion: "12.0.0",
355
- version: "22.2.5",
355
+ version: "22.2.6",
356
356
  ngImport: i0,
357
357
  type: WrBulletChart,
358
358
  decorators: [{
@@ -221,7 +221,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
221
221
  }
222
222
  static ɵfac = i0.ɵɵngDeclareFactory({
223
223
  minVersion: "12.0.0",
224
- version: "22.2.5",
224
+ version: "22.2.6",
225
225
  ngImport: i0,
226
226
  type: WrCalendarHeatmap,
227
227
  deps: [],
@@ -229,7 +229,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
229
229
  });
230
230
  static ɵcmp = i0.ɵɵngDeclareComponent({
231
231
  minVersion: "17.0.0",
232
- version: "22.2.5",
232
+ version: "22.2.6",
233
233
  type: WrCalendarHeatmap,
234
234
  isStandalone: true,
235
235
  selector: "wr-calendar-heatmap",
@@ -349,7 +349,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
349
349
  };
350
350
  i0.ɵɵngDeclareClassMetadata({
351
351
  minVersion: "12.0.0",
352
- version: "22.2.5",
352
+ version: "22.2.6",
353
353
  ngImport: i0,
354
354
  type: WrCalendarHeatmap,
355
355
  decorators: [{
@@ -267,7 +267,7 @@ var WrCandlestickChart = class WrCandlestickChart {
267
267
  }
268
268
  static ɵfac = i0.ɵɵngDeclareFactory({
269
269
  minVersion: "12.0.0",
270
- version: "22.2.5",
270
+ version: "22.2.6",
271
271
  ngImport: i0,
272
272
  type: WrCandlestickChart,
273
273
  deps: [],
@@ -275,7 +275,7 @@ var WrCandlestickChart = class WrCandlestickChart {
275
275
  });
276
276
  static ɵcmp = i0.ɵɵngDeclareComponent({
277
277
  minVersion: "17.0.0",
278
- version: "22.2.5",
278
+ version: "22.2.6",
279
279
  type: WrCandlestickChart,
280
280
  isStandalone: true,
281
281
  selector: "wr-candlestick-chart",
@@ -394,7 +394,7 @@ var WrCandlestickChart = class WrCandlestickChart {
394
394
  };
395
395
  i0.ɵɵngDeclareClassMetadata({
396
396
  minVersion: "12.0.0",
397
- version: "22.2.5",
397
+ version: "22.2.6",
398
398
  ngImport: i0,
399
399
  type: WrCandlestickChart,
400
400
  decorators: [{