ngwr 16.5.0 → 16.7.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 (450) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/back-top/styles/_index.scss +6 -0
  3. package/breadcrumbs/styles/_rules.scss +34 -0
  4. package/button/styles/_index.scss +45 -2
  5. package/cascader/styles/_rules.scss +7 -0
  6. package/charts/chart-legend/styles/_index.scss +1 -9
  7. package/copy-value/styles/_index.scss +4 -0
  8. package/counter/styles/_index.scss +1 -8
  9. package/date-picker/styles/_index.scss +15 -9
  10. package/dialog/styles/_index.scss +37 -0
  11. package/dropdown/styles/_index.scss +17 -0
  12. package/editor/styles/_index.scss +1 -8
  13. package/event-calendar/styles/_index.scss +2 -6
  14. package/fesm2022/ngwr-affix.mjs +4 -4
  15. package/fesm2022/ngwr-affix.mjs.map +1 -1
  16. package/fesm2022/ngwr-alert.mjs +3 -3
  17. package/fesm2022/ngwr-anchor.mjs +12 -5
  18. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  20. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  22. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  24. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  26. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  28. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  30. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  32. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  34. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  36. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  38. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  40. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  42. package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  44. package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  46. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  48. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  50. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  52. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  54. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  56. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  58. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  60. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  61. package/fesm2022/ngwr-animations-tilt.mjs +23 -16
  62. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  63. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  64. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  65. package/fesm2022/ngwr-avatar.mjs +171 -6
  66. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  67. package/fesm2022/ngwr-back-top.mjs +3 -3
  68. package/fesm2022/ngwr-badge.mjs +6 -6
  69. package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
  70. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  71. package/fesm2022/ngwr-burger.mjs +3 -3
  72. package/fesm2022/ngwr-button.mjs +38 -9
  73. package/fesm2022/ngwr-button.mjs.map +1 -1
  74. package/fesm2022/ngwr-calendar.mjs +3 -3
  75. package/fesm2022/ngwr-card.mjs +9 -9
  76. package/fesm2022/ngwr-carousel.mjs +14 -8
  77. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  78. package/fesm2022/ngwr-cascader.mjs +27 -7
  79. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  81. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  83. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  84. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  86. package/fesm2022/ngwr-charts-core.mjs +18 -11
  87. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  89. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  90. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  91. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  92. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  93. package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
  94. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  96. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  97. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  98. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  99. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  100. package/fesm2022/ngwr-checkbox.mjs +9 -8
  101. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  102. package/fesm2022/ngwr-clipboard.mjs +3 -3
  103. package/fesm2022/ngwr-collapse.mjs +9 -9
  104. package/fesm2022/ngwr-color-picker.mjs +27 -7
  105. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  106. package/fesm2022/ngwr-command-palette.mjs +3 -3
  107. package/fesm2022/ngwr-comment.mjs +7 -6
  108. package/fesm2022/ngwr-comment.mjs.map +1 -1
  109. package/fesm2022/ngwr-compare.mjs +3 -3
  110. package/fesm2022/ngwr-context-menu.mjs +16 -17
  111. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  112. package/fesm2022/ngwr-cookie.mjs +3 -3
  113. package/fesm2022/ngwr-copy-value.mjs +3 -3
  114. package/fesm2022/ngwr-counter.mjs +6 -6
  115. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  116. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  117. package/fesm2022/ngwr-date-picker.mjs +151 -54
  118. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  119. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  120. package/fesm2022/ngwr-date.mjs +40 -16
  121. package/fesm2022/ngwr-date.mjs.map +1 -1
  122. package/fesm2022/ngwr-density.mjs +6 -6
  123. package/fesm2022/ngwr-descriptions.mjs +6 -6
  124. package/fesm2022/ngwr-dialog.mjs +35 -24
  125. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  126. package/fesm2022/ngwr-directives.mjs +189 -23
  127. package/fesm2022/ngwr-directives.mjs.map +1 -1
  128. package/fesm2022/ngwr-divider.mjs +3 -3
  129. package/fesm2022/ngwr-drawer.mjs +18 -18
  130. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  131. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  132. package/fesm2022/ngwr-dropdown.mjs +59 -16
  133. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  134. package/fesm2022/ngwr-editor.mjs +6 -5
  135. package/fesm2022/ngwr-editor.mjs.map +1 -1
  136. package/fesm2022/ngwr-empty.mjs +3 -3
  137. package/fesm2022/ngwr-event-calendar.mjs +27 -15
  138. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  139. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  140. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  141. package/fesm2022/ngwr-file-upload.mjs +68 -13
  142. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  143. package/fesm2022/ngwr-form.mjs +181 -12
  144. package/fesm2022/ngwr-form.mjs.map +1 -1
  145. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  146. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  147. package/fesm2022/ngwr-graph.mjs +100 -11
  148. package/fesm2022/ngwr-graph.mjs.map +1 -1
  149. package/fesm2022/ngwr-hotkey.mjs +6 -6
  150. package/fesm2022/ngwr-i18n-ar.mjs +21 -2
  151. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-cs.mjs +21 -2
  153. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-de.mjs +21 -2
  155. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-en.mjs +21 -2
  157. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-es.mjs +21 -2
  159. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-fr.mjs +21 -2
  161. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-he.mjs +21 -2
  163. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-hi.mjs +21 -2
  165. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-id.mjs +21 -2
  167. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-it.mjs +21 -2
  169. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-ja.mjs +21 -2
  171. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  173. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  174. package/fesm2022/ngwr-i18n-ko.mjs +21 -2
  175. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-nl.mjs +21 -2
  177. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-pl.mjs +21 -2
  179. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-pt.mjs +21 -2
  181. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-ru.mjs +21 -2
  183. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-sv.mjs +21 -2
  185. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-tr.mjs +21 -2
  187. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-uk.mjs +21 -2
  189. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-vi.mjs +21 -2
  191. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
  193. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-zh.mjs +21 -2
  195. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n.mjs +91 -20
  197. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  198. package/fesm2022/ngwr-icon.mjs +6 -6
  199. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  200. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  201. package/fesm2022/ngwr-input-number.mjs +27 -4
  202. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  203. package/fesm2022/ngwr-input-otp.mjs +5 -5
  204. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  205. package/fesm2022/ngwr-input.mjs +25 -17
  206. package/fesm2022/ngwr-input.mjs.map +1 -1
  207. package/fesm2022/ngwr-keyboard.mjs +3 -3
  208. package/fesm2022/ngwr-knob.mjs +3 -3
  209. package/fesm2022/ngwr-layout.mjs +15 -15
  210. package/fesm2022/ngwr-layout.mjs.map +1 -1
  211. package/fesm2022/ngwr-lightbox.mjs +8 -8
  212. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  213. package/fesm2022/ngwr-list.mjs +9 -9
  214. package/fesm2022/ngwr-list.mjs.map +1 -1
  215. package/fesm2022/ngwr-load-state.mjs +16 -15
  216. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  217. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  218. package/fesm2022/ngwr-loading-bar.mjs +8 -8
  219. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  220. package/fesm2022/ngwr-mention.mjs +14 -6
  221. package/fesm2022/ngwr-mention.mjs.map +1 -1
  222. package/fesm2022/ngwr-meta.mjs +15 -12
  223. package/fesm2022/ngwr-meta.mjs.map +1 -1
  224. package/fesm2022/ngwr-overlay.mjs +9 -9
  225. package/fesm2022/ngwr-page-header.mjs +24 -3
  226. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  227. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  228. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  229. package/fesm2022/ngwr-pagination.mjs +34 -5
  230. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  231. package/fesm2022/ngwr-pipes.mjs +35 -28
  232. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  233. package/fesm2022/ngwr-platform.mjs +9 -9
  234. package/fesm2022/ngwr-popconfirm.mjs +9 -7
  235. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  236. package/fesm2022/ngwr-popover.mjs +162 -18
  237. package/fesm2022/ngwr-popover.mjs.map +1 -1
  238. package/fesm2022/ngwr-progress.mjs +75 -10
  239. package/fesm2022/ngwr-progress.mjs.map +1 -1
  240. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  241. package/fesm2022/ngwr-qr.mjs +9 -5
  242. package/fesm2022/ngwr-qr.mjs.map +1 -1
  243. package/fesm2022/ngwr-radio.mjs +77 -11
  244. package/fesm2022/ngwr-radio.mjs.map +1 -1
  245. package/fesm2022/ngwr-rating.mjs +3 -3
  246. package/fesm2022/ngwr-resizable.mjs +3 -3
  247. package/fesm2022/ngwr-result.mjs +12 -12
  248. package/fesm2022/ngwr-schema-form.mjs +20 -7
  249. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  250. package/fesm2022/ngwr-scroll.mjs +233 -10
  251. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  252. package/fesm2022/ngwr-segmented.mjs +23 -3
  253. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  254. package/fesm2022/ngwr-select.mjs +106 -26
  255. package/fesm2022/ngwr-select.mjs.map +1 -1
  256. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  257. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  258. package/fesm2022/ngwr-sidebar.mjs +66 -11
  259. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  260. package/fesm2022/ngwr-skeleton.mjs +3 -3
  261. package/fesm2022/ngwr-slider.mjs +3 -3
  262. package/fesm2022/ngwr-sortable-list.mjs +27 -15
  263. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  264. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  265. package/fesm2022/ngwr-spinner.mjs +3 -3
  266. package/fesm2022/ngwr-splitter.mjs +3 -3
  267. package/fesm2022/ngwr-statistic.mjs +9 -9
  268. package/fesm2022/ngwr-stepper.mjs +6 -6
  269. package/fesm2022/ngwr-storage.mjs +4 -4
  270. package/fesm2022/ngwr-storage.mjs.map +1 -1
  271. package/fesm2022/ngwr-switch.mjs +5 -5
  272. package/fesm2022/ngwr-switch.mjs.map +1 -1
  273. package/fesm2022/ngwr-table-router.mjs +89 -0
  274. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  275. package/fesm2022/ngwr-table-testing.mjs +5 -0
  276. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  277. package/fesm2022/ngwr-table.mjs +307 -47
  278. package/fesm2022/ngwr-table.mjs.map +1 -1
  279. package/fesm2022/ngwr-tabs-router.mjs +9 -5
  280. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  281. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  282. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tabs.mjs +60 -10
  284. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  285. package/fesm2022/ngwr-textarea.mjs +5 -5
  286. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  287. package/fesm2022/ngwr-theme.mjs +3 -3
  288. package/fesm2022/ngwr-timeline.mjs +6 -6
  289. package/fesm2022/ngwr-toast.mjs +43 -15
  290. package/fesm2022/ngwr-toast.mjs.map +1 -1
  291. package/fesm2022/ngwr-toolbar.mjs +3 -3
  292. package/fesm2022/ngwr-tour.mjs +9 -8
  293. package/fesm2022/ngwr-tour.mjs.map +1 -1
  294. package/fesm2022/ngwr-transfer.mjs +4 -3
  295. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  296. package/fesm2022/ngwr-tree.mjs +3 -3
  297. package/fesm2022/ngwr-typography.mjs +23 -3
  298. package/fesm2022/ngwr-typography.mjs.map +1 -1
  299. package/fesm2022/ngwr-utils-router.mjs +3 -3
  300. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  301. package/fesm2022/ngwr-utils.mjs +74 -4
  302. package/fesm2022/ngwr-utils.mjs.map +1 -1
  303. package/fesm2022/ngwr-validators.mjs +33 -1
  304. package/fesm2022/ngwr-validators.mjs.map +1 -1
  305. package/fesm2022/ngwr-version.mjs +1 -1
  306. package/fesm2022/ngwr-version.mjs.map +1 -1
  307. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  308. package/fesm2022/ngwr-window.mjs +18 -13
  309. package/fesm2022/ngwr-window.mjs.map +1 -1
  310. package/file-upload/styles/_index.scss +16 -0
  311. package/form/styles/_index.scss +37 -0
  312. package/graph/styles/_index.scss +49 -9
  313. package/i18n/ar.json +19 -2
  314. package/i18n/cs.json +19 -2
  315. package/i18n/de.json +19 -2
  316. package/i18n/en.json +19 -2
  317. package/i18n/es.json +19 -2
  318. package/i18n/fr.json +19 -2
  319. package/i18n/he.json +19 -2
  320. package/i18n/hi.json +19 -2
  321. package/i18n/id.json +19 -2
  322. package/i18n/it.json +19 -2
  323. package/i18n/ja.json +19 -2
  324. package/i18n/kk.json +567 -0
  325. package/i18n/ko.json +19 -2
  326. package/i18n/nl.json +19 -2
  327. package/i18n/pl.json +19 -2
  328. package/i18n/pt.json +19 -2
  329. package/i18n/ru.json +19 -2
  330. package/i18n/sv.json +19 -2
  331. package/i18n/tr.json +19 -2
  332. package/i18n/uk.json +19 -2
  333. package/i18n/vi.json +19 -2
  334. package/i18n/zh-TW.json +19 -2
  335. package/i18n/zh.json +19 -2
  336. package/image-cropper/styles/_index.scss +1 -9
  337. package/input-number/styles/_index.scss +7 -0
  338. package/layout/styles/_index.scss +13 -1
  339. package/llms-full.txt +37 -26
  340. package/llms.txt +4 -1
  341. package/loading-bar/styles/_rules.scss +6 -0
  342. package/package.json +16 -8
  343. package/page-header/styles/_index.scss +18 -0
  344. package/pagination/styles/_index.scss +6 -0
  345. package/popover/styles/_index.scss +9 -0
  346. package/progress/styles/_index.scss +64 -0
  347. package/schematics/use/symbol-map.json +7 -0
  348. package/segmented/styles/_index.scss +7 -0
  349. package/select/styles/_index.scss +7 -0
  350. package/sidebar/styles/_index.scss +64 -6
  351. package/skills/ngwr/SKILL.md +7 -6
  352. package/skills/ngwr/references/catalog.md +7 -5
  353. package/sortable-list/styles/_rules.scss +1 -9
  354. package/speed-dial/styles/_index.scss +6 -0
  355. package/stepper/styles/_index.scss +1 -9
  356. package/table/styles/_index.scss +168 -30
  357. package/tabs/styles/_index.scss +9 -0
  358. package/theme/_index.scss +12 -1
  359. package/theme/styles/_colors.scss +11 -0
  360. package/theme/styles/_contrast.scss +6 -0
  361. package/theme/styles/_focus.scss +3 -1
  362. package/theme/styles/_index.scss +1 -0
  363. package/theme/styles/_mixins.scss +45 -0
  364. package/theme/styles/_print.scss +17 -0
  365. package/toast/styles/_index.scss +7 -0
  366. package/tour/styles/_index.scss +9 -0
  367. package/tree/styles/_index.scss +1 -9
  368. package/types/ngwr-anchor.d.ts +3 -0
  369. package/types/ngwr-animations-aurora.d.ts +6 -0
  370. package/types/ngwr-animations-blur-reveal.d.ts +6 -0
  371. package/types/ngwr-animations-click-sparks.d.ts +6 -0
  372. package/types/ngwr-animations-confetti.d.ts +6 -0
  373. package/types/ngwr-animations-decode.d.ts +6 -0
  374. package/types/ngwr-animations-destruct.d.ts +6 -0
  375. package/types/ngwr-animations-dot-grid.d.ts +6 -0
  376. package/types/ngwr-animations-falling-letters.d.ts +6 -0
  377. package/types/ngwr-animations-flow-lines.d.ts +6 -0
  378. package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
  379. package/types/ngwr-animations-glitch.d.ts +6 -0
  380. package/types/ngwr-animations-glow-border.d.ts +6 -0
  381. package/types/ngwr-animations-gradient-flow.d.ts +6 -0
  382. package/types/ngwr-animations-marquee.d.ts +6 -0
  383. package/types/ngwr-animations-orbit.d.ts +6 -0
  384. package/types/ngwr-animations-reveal.d.ts +6 -0
  385. package/types/ngwr-animations-ripple-grid.d.ts +6 -0
  386. package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
  387. package/types/ngwr-animations-shimmer.d.ts +6 -0
  388. package/types/ngwr-animations-spotlight.d.ts +6 -0
  389. package/types/ngwr-animations-thread-lines.d.ts +6 -0
  390. package/types/ngwr-animations-tilt.d.ts +10 -0
  391. package/types/ngwr-animations-typewriter.d.ts +6 -0
  392. package/types/ngwr-avatar.d.ts +39 -0
  393. package/types/ngwr-breadcrumbs.d.ts +25 -0
  394. package/types/ngwr-button.d.ts +35 -3
  395. package/types/ngwr-carousel.d.ts +2 -0
  396. package/types/ngwr-cascader.d.ts +7 -0
  397. package/types/ngwr-charts-core.d.ts +16 -0
  398. package/types/ngwr-charts-meter-group.d.ts +2 -0
  399. package/types/ngwr-checkbox.d.ts +1 -0
  400. package/types/ngwr-color-picker.d.ts +1 -0
  401. package/types/ngwr-context-menu.d.ts +1 -1
  402. package/types/ngwr-date-picker-testing.d.ts +22 -0
  403. package/types/ngwr-date-picker.d.ts +97 -17
  404. package/types/ngwr-date.d.ts +51 -0
  405. package/types/ngwr-dialog.d.ts +39 -8
  406. package/types/ngwr-directives.d.ts +57 -4
  407. package/types/ngwr-drawer.d.ts +1 -1
  408. package/types/ngwr-dropdown-testing.d.ts +8 -1
  409. package/types/ngwr-dropdown.d.ts +30 -1
  410. package/types/ngwr-event-calendar.d.ts +4 -0
  411. package/types/ngwr-file-upload-testing.d.ts +10 -0
  412. package/types/ngwr-file-upload.d.ts +55 -1
  413. package/types/ngwr-form.d.ts +87 -1
  414. package/types/ngwr-graph-testing.d.ts +28 -1
  415. package/types/ngwr-graph.d.ts +53 -3
  416. package/types/ngwr-i18n-kk.d.ts +3 -0
  417. package/types/ngwr-i18n.d.ts +65 -5
  418. package/types/ngwr-image-cropper.d.ts +6 -0
  419. package/types/ngwr-input-number.d.ts +8 -0
  420. package/types/ngwr-input.d.ts +7 -0
  421. package/types/ngwr-layout.d.ts +1 -1
  422. package/types/ngwr-loading-bar-router.d.ts +6 -0
  423. package/types/ngwr-page-header.d.ts +23 -1
  424. package/types/ngwr-pagination-testing.d.ts +8 -0
  425. package/types/ngwr-pagination.d.ts +16 -0
  426. package/types/ngwr-popconfirm.d.ts +1 -1
  427. package/types/ngwr-popover.d.ts +67 -4
  428. package/types/ngwr-progress.d.ts +63 -1
  429. package/types/ngwr-radio.d.ts +47 -5
  430. package/types/ngwr-scroll.d.ts +86 -0
  431. package/types/ngwr-segmented.d.ts +7 -0
  432. package/types/ngwr-select.d.ts +88 -25
  433. package/types/ngwr-sidebar-testing.d.ts +21 -7
  434. package/types/ngwr-sidebar.d.ts +66 -4
  435. package/types/ngwr-sortable-list.d.ts +20 -7
  436. package/types/ngwr-table-router.d.ts +49 -0
  437. package/types/ngwr-table-testing.d.ts +7 -0
  438. package/types/ngwr-table.d.ts +241 -10
  439. package/types/ngwr-tabs-router.d.ts +7 -1
  440. package/types/ngwr-tabs-testing.d.ts +5 -1
  441. package/types/ngwr-tabs.d.ts +34 -1
  442. package/types/ngwr-toast.d.ts +11 -0
  443. package/types/ngwr-tour.d.ts +0 -1
  444. package/types/ngwr-typography.d.ts +7 -0
  445. package/types/ngwr-utils-router.d.ts +6 -0
  446. package/types/ngwr-utils.d.ts +69 -2
  447. package/types/ngwr-validators.d.ts +49 -1
  448. package/types/ngwr-version.d.ts +1 -1
  449. package/typography/styles/_index.scss +4 -0
  450. package/window/styles/_index.scss +1 -9
@@ -412,7 +412,7 @@ var WrBoxplotChart = class WrBoxplotChart {
412
412
  }
413
413
  static ɵfac = i0.ɵɵngDeclareFactory({
414
414
  minVersion: "12.0.0",
415
- version: "22.2.6",
415
+ version: "22.3.0",
416
416
  ngImport: i0,
417
417
  type: WrBoxplotChart,
418
418
  deps: [],
@@ -420,7 +420,7 @@ var WrBoxplotChart = class WrBoxplotChart {
420
420
  });
421
421
  static ɵcmp = i0.ɵɵngDeclareComponent({
422
422
  minVersion: "17.0.0",
423
- version: "22.2.6",
423
+ version: "22.3.0",
424
424
  type: WrBoxplotChart,
425
425
  isStandalone: true,
426
426
  selector: "wr-boxplot-chart",
@@ -560,7 +560,7 @@ var WrBoxplotChart = class WrBoxplotChart {
560
560
  };
561
561
  i0.ɵɵngDeclareClassMetadata({
562
562
  minVersion: "12.0.0",
563
- version: "22.2.6",
563
+ version: "22.3.0",
564
564
  ngImport: i0,
565
565
  type: WrBoxplotChart,
566
566
  decorators: [{
@@ -268,7 +268,7 @@ var WrBulletChart = class WrBulletChart {
268
268
  });
269
269
  static ɵfac = i0.ɵɵngDeclareFactory({
270
270
  minVersion: "12.0.0",
271
- version: "22.2.6",
271
+ version: "22.3.0",
272
272
  ngImport: i0,
273
273
  type: WrBulletChart,
274
274
  deps: [],
@@ -276,7 +276,7 @@ var WrBulletChart = class WrBulletChart {
276
276
  });
277
277
  static ɵcmp = i0.ɵɵngDeclareComponent({
278
278
  minVersion: "17.0.0",
279
- version: "22.2.6",
279
+ version: "22.3.0",
280
280
  type: WrBulletChart,
281
281
  isStandalone: true,
282
282
  selector: "wr-bullet-chart",
@@ -411,7 +411,7 @@ var WrBulletChart = class WrBulletChart {
411
411
  };
412
412
  i0.ɵɵngDeclareClassMetadata({
413
413
  minVersion: "12.0.0",
414
- version: "22.2.6",
414
+ version: "22.3.0",
415
415
  ngImport: i0,
416
416
  type: WrBulletChart,
417
417
  decorators: [{
@@ -306,7 +306,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
306
306
  }
307
307
  static ɵfac = i0.ɵɵngDeclareFactory({
308
308
  minVersion: "12.0.0",
309
- version: "22.2.6",
309
+ version: "22.3.0",
310
310
  ngImport: i0,
311
311
  type: WrCalendarHeatmap,
312
312
  deps: [],
@@ -314,7 +314,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
314
314
  });
315
315
  static ɵcmp = i0.ɵɵngDeclareComponent({
316
316
  minVersion: "17.0.0",
317
- version: "22.2.6",
317
+ version: "22.3.0",
318
318
  type: WrCalendarHeatmap,
319
319
  isStandalone: true,
320
320
  selector: "wr-calendar-heatmap",
@@ -507,7 +507,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
507
507
  };
508
508
  i0.ɵɵngDeclareClassMetadata({
509
509
  minVersion: "12.0.0",
510
- version: "22.2.6",
510
+ version: "22.3.0",
511
511
  ngImport: i0,
512
512
  type: WrCalendarHeatmap,
513
513
  decorators: [{
@@ -385,7 +385,7 @@ var WrCandlestickChart = class WrCandlestickChart {
385
385
  }
386
386
  static ɵfac = i0.ɵɵngDeclareFactory({
387
387
  minVersion: "12.0.0",
388
- version: "22.2.6",
388
+ version: "22.3.0",
389
389
  ngImport: i0,
390
390
  type: WrCandlestickChart,
391
391
  deps: [],
@@ -393,7 +393,7 @@ var WrCandlestickChart = class WrCandlestickChart {
393
393
  });
394
394
  static ɵcmp = i0.ɵɵngDeclareComponent({
395
395
  minVersion: "17.0.0",
396
- version: "22.2.6",
396
+ version: "22.3.0",
397
397
  type: WrCandlestickChart,
398
398
  isStandalone: true,
399
399
  selector: "wr-candlestick-chart",
@@ -575,7 +575,7 @@ var WrCandlestickChart = class WrCandlestickChart {
575
575
  };
576
576
  i0.ɵɵngDeclareClassMetadata({
577
577
  minVersion: "12.0.0",
578
- version: "22.2.6",
578
+ version: "22.3.0",
579
579
  ngImport: i0,
580
580
  type: WrCandlestickChart,
581
581
  decorators: [{
@@ -18,7 +18,7 @@ var WrChartLegendPart = class WrChartLegendPart {
18
18
  wrChartLegendPart = input("", ...ngDevMode ? [{ debugName: "wrChartLegendPart" }] : /* istanbul ignore next */ []);
19
19
  static ɵfac = i0.ɵɵngDeclareFactory({
20
20
  minVersion: "12.0.0",
21
- version: "22.2.6",
21
+ version: "22.3.0",
22
22
  ngImport: i0,
23
23
  type: WrChartLegendPart,
24
24
  deps: [],
@@ -26,7 +26,7 @@ var WrChartLegendPart = class WrChartLegendPart {
26
26
  });
27
27
  static ɵdir = i0.ɵɵngDeclareDirective({
28
28
  minVersion: "17.1.0",
29
- version: "22.2.6",
29
+ version: "22.3.0",
30
30
  type: WrChartLegendPart,
31
31
  isStandalone: true,
32
32
  selector: "[wrChartLegendPart]",
@@ -43,7 +43,7 @@ var WrChartLegendPart = class WrChartLegendPart {
43
43
  };
44
44
  i0.ɵɵngDeclareClassMetadata({
45
45
  minVersion: "12.0.0",
46
- version: "22.2.6",
46
+ version: "22.3.0",
47
47
  ngImport: i0,
48
48
  type: WrChartLegendPart,
49
49
  decorators: [{
@@ -134,7 +134,7 @@ var WrChartLegend = class WrChartLegend {
134
134
  }
135
135
  static ɵfac = i0.ɵɵngDeclareFactory({
136
136
  minVersion: "12.0.0",
137
- version: "22.2.6",
137
+ version: "22.3.0",
138
138
  ngImport: i0,
139
139
  type: WrChartLegend,
140
140
  deps: [],
@@ -142,7 +142,7 @@ var WrChartLegend = class WrChartLegend {
142
142
  });
143
143
  static ɵcmp = i0.ɵɵngDeclareComponent({
144
144
  minVersion: "17.0.0",
145
- version: "22.2.6",
145
+ version: "22.3.0",
146
146
  type: WrChartLegend,
147
147
  isStandalone: true,
148
148
  selector: "ul[wr-chart-legend]",
@@ -229,7 +229,7 @@ var WrChartLegend = class WrChartLegend {
229
229
  };
230
230
  i0.ɵɵngDeclareClassMetadata({
231
231
  minVersion: "12.0.0",
232
- version: "22.2.6",
232
+ version: "22.3.0",
233
233
  ngImport: i0,
234
234
  type: WrChartLegend,
235
235
  decorators: [{
@@ -336,7 +336,7 @@ var WrChartScale = class WrChartScale {
336
336
  }, ...ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []);
337
337
  static ɵfac = i0.ɵɵngDeclareFactory({
338
338
  minVersion: "12.0.0",
339
- version: "22.2.6",
339
+ version: "22.3.0",
340
340
  ngImport: i0,
341
341
  type: WrChartScale,
342
342
  deps: [],
@@ -344,7 +344,7 @@ var WrChartScale = class WrChartScale {
344
344
  });
345
345
  static ɵcmp = i0.ɵɵngDeclareComponent({
346
346
  minVersion: "17.0.0",
347
- version: "22.2.6",
347
+ version: "22.3.0",
348
348
  type: WrChartScale,
349
349
  isStandalone: true,
350
350
  selector: "wr-chart-scale",
@@ -408,7 +408,7 @@ var WrChartScale = class WrChartScale {
408
408
  };
409
409
  i0.ɵɵngDeclareClassMetadata({
410
410
  minVersion: "12.0.0",
411
- version: "22.2.6",
411
+ version: "22.3.0",
412
412
  ngImport: i0,
413
413
  type: WrChartScale,
414
414
  decorators: [{
@@ -72,12 +72,19 @@ function wrChartAxis(min, max, options = {}) {
72
72
  if (options.symmetric && lo === hi) return centredAxis(lo);
73
73
  const count = options.tickCount !== void 0 && options.tickCount >= 1 ? Math.round(options.tickCount) : TICK_COUNT;
74
74
  const step = niceStep((hi - lo || Math.abs(hi) || 1) / count);
75
- let bottom = Math.floor(lo / step) * step;
76
- let top = Math.ceil(hi / step) * step;
77
- if (top === dataHi) top += step;
78
- if (options.symmetric && bottom === dataLo) bottom -= step;
79
- const gaps = Math.round((top - bottom) / step);
75
+ const snap = (value) => {
76
+ const q = value / step;
77
+ return Math.abs(q - Math.round(q)) <= 1e-9 * Math.max(1, Math.abs(q)) ? Math.round(q) : q;
78
+ };
79
+ const near = (a, b) => Math.abs(a - b) <= step * 1e-9;
80
+ let bottomStep = Math.floor(snap(lo));
81
+ let topStep = Math.ceil(snap(hi));
82
+ if (near(topStep * step, dataHi)) topStep += 1;
83
+ if (options.symmetric && near(bottomStep * step, dataLo)) bottomStep -= 1;
84
+ const bottom = bottomStep * step;
85
+ const top = topStep * step;
80
86
  const digits = tickDigits(step);
87
+ const gaps = Math.round((top - bottom) / step);
81
88
  const ticks = [];
82
89
  for (let i = 0; i <= gaps; i++) ticks.push(wrRound(top - i * step, digits));
83
90
  return {
@@ -118,7 +125,7 @@ var WrChartState = class WrChartState {
118
125
  label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
119
126
  static ɵfac = i0.ɵɵngDeclareFactory({
120
127
  minVersion: "12.0.0",
121
- version: "22.2.6",
128
+ version: "22.3.0",
122
129
  ngImport: i0,
123
130
  type: WrChartState,
124
131
  deps: [],
@@ -126,7 +133,7 @@ var WrChartState = class WrChartState {
126
133
  });
127
134
  static ɵcmp = i0.ɵɵngDeclareComponent({
128
135
  minVersion: "17.0.0",
129
- version: "22.2.6",
136
+ version: "22.3.0",
130
137
  type: WrChartState,
131
138
  isStandalone: true,
132
139
  selector: "wr-chart-state",
@@ -162,7 +169,7 @@ var WrChartState = class WrChartState {
162
169
  };
163
170
  i0.ɵɵngDeclareClassMetadata({
164
171
  minVersion: "12.0.0",
165
- version: "22.2.6",
172
+ version: "22.3.0",
166
173
  ngImport: i0,
167
174
  type: WrChartState,
168
175
  decorators: [{
@@ -210,7 +217,7 @@ var WrChartTable = class WrChartTable {
210
217
  hasGroupHeaders = computed(() => this.data().groups.some((group) => !!group.header), ...ngDevMode ? [{ debugName: "hasGroupHeaders" }] : /* istanbul ignore next */ []);
211
218
  static ɵfac = i0.ɵɵngDeclareFactory({
212
219
  minVersion: "12.0.0",
213
- version: "22.2.6",
220
+ version: "22.3.0",
214
221
  ngImport: i0,
215
222
  type: WrChartTable,
216
223
  deps: [],
@@ -218,7 +225,7 @@ var WrChartTable = class WrChartTable {
218
225
  });
219
226
  static ɵcmp = i0.ɵɵngDeclareComponent({
220
227
  minVersion: "17.0.0",
221
- version: "22.2.6",
228
+ version: "22.3.0",
222
229
  type: WrChartTable,
223
230
  isStandalone: true,
224
231
  selector: "wr-chart-table",
@@ -237,7 +244,7 @@ var WrChartTable = class WrChartTable {
237
244
  };
238
245
  i0.ɵɵngDeclareClassMetadata({
239
246
  minVersion: "12.0.0",
240
- version: "22.2.6",
247
+ version: "22.3.0",
241
248
  ngImport: i0,
242
249
  type: WrChartTable,
243
250
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-charts-core.mjs","names":[],"sources":["../../../projects/lib/charts/core/axis.ts","../../../projects/lib/charts/core/chart-state.ts","../../../projects/lib/charts/core/chart-state.html","../../../projects/lib/charts/core/chart-table.ts","../../../projects/lib/charts/core/chart-table.html","../../../projects/lib/charts/core/interaction.ts","../../../projects/lib/charts/core/labels.ts","../../../projects/lib/charts/core/palette.ts","../../../projects/lib/charts/core/markers.ts","../../../projects/lib/charts/core/numbers.ts","../../../projects/lib/charts/core/round.ts","../../../projects/lib/charts/core/public-api.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { wrRound } from 'ngwr/utils';\n\nimport type { WrChartAxis, WrChartAxisOptions } from './types';\n\n/** How many gaps an axis aims for by default. Five labels, four gaps. */\nconst TICK_COUNT = 4;\n\n/** The axis drawn when there is no data to fit: 0 to 1 in quarters, the line chart's empty frame. */\nconst EMPTY: WrChartAxis = { min: 0, max: 1, step: 0.25, ticks: [1, 0.75, 0.5, 0.25, 0] };\n\n/** The rungs of the {@link niceStep} ladder within one decade, from the top: 1, 0.5, 0.25 and 0.2 of it. */\nconst LADDER = [1, 0.5, 0.25, 0.2] as const;\n\n/**\n * How many fraction digits a tick on an axis stepping by `step` is rounded to: two past\n * the step's own leading digit, and never fewer than six or more than fifteen.\n *\n * It was a fixed six, which cannot write a tick finer than a millionth: an axis stepping\n * by 2.5e-7 — a micro-priced asset — came back as five ticks of `0.000013` and\n * `0.000012`, one stepping by 5e-10 as five zeros, and one stepping by 2.5e-6 put two of\n * its gridlines at the wrong height. Every tick is a whole multiple of the step, whose\n * last digit is at most one place past its leading one (2.5, and 0.25 on the\n * centred axis' ladder, two), so two past the leading digit writes every tick exactly.\n * The floor of six keeps every axis that was already exact bit for bit what it was,\n * and keeps a step no rung divides — a third, centred — at the six it always had.\n */\nfunction tickDigits(step: number): number {\n return Math.min(15, Math.max(6, Math.ceil(-Math.log10(step)) + 2));\n}\n\n/**\n * The `symmetric` axis for data with no span: the value in the MIDDLE, as a tick of\n * its own, with one step either side.\n *\n * Snapped outward, a flat range keeps its value inside the frame but not at its\n * centre: a lone 120 lands on an axis from 100 to 150, two fifths of the way up. The\n * step here is the largest rung of the same ladder that is at most a quarter of the\n * value and divides it exactly, so all three ticks are round: 100 / 120 / 140,\n * 4 / 5 / 6, 1234 / 1234.5 / 1235. Zero has no magnitude to take a quarter of, and\n * reads −1 / 0 / 1; a value no rung divides within twelve decades takes a quarter\n * of itself.\n */\nfunction centredAxis(value: number): WrChartAxis {\n const magnitude = Math.abs(value);\n let step = magnitude === 0 ? 1 : magnitude / 4;\n if (magnitude > 0) {\n const top = Math.ceil(Math.log10(magnitude / 4));\n search: for (let exponent = top; exponent > top - 12; exponent--) {\n for (const rung of LADDER) {\n const candidate = rung * 10 ** exponent;\n if (candidate > magnitude / 4) continue;\n const ratio = value / candidate;\n if (Math.abs(ratio - Math.round(ratio)) < 1e-9) {\n step = candidate;\n break search;\n }\n }\n }\n }\n const digits = tickDigits(step);\n return {\n min: value - step,\n max: value + step,\n step,\n ticks: [wrRound(value + step, digits), value, wrRound(value - step, digits)],\n };\n}\n\n/**\n * The smallest 1 / 2 / 2.5 / 5 × 10ⁿ at or above `raw` — the conventional\n * nice-number ladder every plotting library uses to pick an axis step.\n *\n * `2.5` earns its place on the small end: without it a span that wants a step\n * of 2.1 jumps to 5 and the axis loses half its labels.\n */\nexport function niceStep(raw: number): number {\n if (!Number.isFinite(raw) || raw <= 0) return 1;\n const magnitude = 10 ** Math.floor(Math.log10(raw));\n const normalised = raw / magnitude;\n const nice = normalised <= 1 ? 1 : normalised <= 2 ? 2 : normalised <= 2.5 ? 2.5 : normalised <= 5 ? 5 : 10;\n return nice * magnitude;\n}\n\n/**\n * A value axis for data running from `min` to `max`, SNAPPED to a readable step —\n * and the snapping is the point.\n *\n * The line chart's axis used to be \"the data's max plus 10%, divided into four\",\n * which lands on a round number almost never: seven integers between 3 and 35 gave\n * an axis reading 38.2 / 28.7 / 19.1 / 9.6 / 0. A chart's axis is the one part of it\n * a reader is supposed to do arithmetic against.\n *\n * So the step is rounded UP to the nearest 1, 2, 2.5 or 5 times a power of ten —\n * the conventional nice-number ladder — and the bounds are then snapped outward to\n * whole multiples of it. The same 3..35 reads 0 / 10 / 20 / 30 / 40. Snapping\n * outward replaces the old 10% padding, and where the peak still lands exactly on\n * the top it is lifted a step, since a line that ends on the frame reads as clipped.\n * `symmetric` does the same at the bottom.\n *\n * A flat range has no span to divide, so it is given its own magnitude as one (or 1,\n * at zero). With `symmetric` it is centred instead: the value is the middle of three\n * ticks, a round step on either side, whatever `tickCount` asks for. Non-finite\n * bounds, the `Math.min()` / `Math.max()` of no data, give the empty frame from 0 to\n * 1. Bounds handed in the wrong order are swapped.\n *\n * The line chart's own rule, which floors its axis at zero and never lifts it to\n * zero from below, is `wrChartAxis(Math.min(0, min), max)`: an all-negative series\n * keeps an axis that ends just above its peak. `includeZero` is the other reading,\n * zero inside the range on either side, which an area needs for its baseline.\n *\n * @internal\n */\nexport function wrChartAxis(min: number, max: number, options: WrChartAxisOptions = {}): WrChartAxis {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return EMPTY;\n const dataLo = Math.min(min, max);\n const dataHi = Math.max(min, max);\n const lo = options.includeZero ? Math.min(0, dataLo) : dataLo;\n const hi = options.includeZero ? Math.max(0, dataHi) : dataHi;\n // A scale with no baseline has no reason to put a lone value anywhere but the middle.\n if (options.symmetric && lo === hi) return centredAxis(lo);\n\n const count = options.tickCount !== undefined && options.tickCount >= 1 ? Math.round(options.tickCount) : TICK_COUNT;\n // A flat series has no span to divide, so give it one rather than a zero step.\n const span = hi - lo || Math.abs(hi) || 1;\n const step = niceStep(span / count);\n let bottom = Math.floor(lo / step) * step;\n let top = Math.ceil(hi / step) * step;\n // The data's peak sitting exactly on the frame reads as clipped, so lift the\n // ceiling by one step when the snap did not already do it. Measured against the\n // DATA, so a zero that only `includeZero` put at the top is not lifted: nothing\n // sits on it. `symmetric` holds the bottom to the same rule.\n if (top === dataHi) top += step;\n if (options.symmetric && bottom === dataLo) bottom -= step;\n\n // Floating-point: 0.1 + 0.2 walks past an exact bound, so count in integers and\n // multiply, and stop on the count rather than on `value >= min`.\n const gaps = Math.round((top - bottom) / step);\n const digits = tickDigits(step);\n const ticks: number[] = [];\n for (let i = 0; i <= gaps; i++) ticks.push(wrRound(top - i * step, digits));\n return { min: bottom, max: top, step, ticks };\n}\n","/**\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 { Component, type Signal, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\n\n/**\n * What a chart shows in place of its marks.\n *\n * @internal\n */\nexport type WrChartStateKind = 'empty' | 'loading' | 'error';\n\n/**\n * The state a chart is in, with the message it shows for it.\n *\n * @internal\n */\nexport interface WrChartStateView {\n readonly kind: WrChartStateKind;\n readonly label: string;\n}\n\n/**\n * The inputs a chart hands {@link useChartState}.\n *\n * @internal\n */\nexport interface WrChartStateOptions {\n /** The chart's `loading` input. */\n readonly loading: Signal<boolean>;\n /** The chart's `error` input. */\n readonly error: Signal<boolean>;\n /** Whether the chart has nothing to draw. */\n readonly empty: Signal<boolean>;\n /** The chart's `emptyLabel`, `loadingLabel` and `errorLabel` inputs: `null` takes the catalog's. */\n readonly emptyLabel: Signal<string | null>;\n readonly loadingLabel: Signal<string | null>;\n readonly errorLabel: Signal<string | null>;\n}\n\n/**\n * The state a chart shows instead of its marks, or `null` while it draws them: loading\n * first, then a failed load, then no data. Each message is the chart's own `*Label`\n * input, then the catalog's `chart.loading` / `chart.error` / `chart.empty`, then\n * English. Call in an injection context.\n *\n * One rule for every chart, so a dashboard whose requests are in flight reads the same\n * in every tile, and a chart with no data is a framed \"No data\" rather than a blank box\n * of whatever height its markup collapses to.\n *\n * @internal\n */\nexport function useChartState(options: WrChartStateOptions): Signal<WrChartStateView | null> {\n const loading = useI18nText(options.loadingLabel, 'chart.loading', 'Loading…');\n const error = useI18nText(options.errorLabel, 'chart.error', 'Could not load');\n const empty = useI18nText(options.emptyLabel, 'chart.empty', 'No data');\n return computed<WrChartStateView | null>(() => {\n if (options.loading()) return { kind: 'loading', label: loading() };\n if (options.error()) return { kind: 'error', label: error() };\n if (options.empty()) return { kind: 'empty', label: empty() };\n return null;\n });\n}\n\n/**\n * The message a chart shows in place of its marks, centred over the frame it keeps.\n *\n * A live region: `role=\"status\"`, so a screen reader hears \"Loading…\" when a chart\n * starts a request and \"No data\" when it comes back with none, without the chart taking\n * focus. A failed load is `role=\"alert\"`, which interrupts, since it is the one of the\n * three a reader has to act on. The chart renders it inside the box its marks are drawn\n * in, which it positions; the grid and the axis under it stay.\n *\n * @example\n * ```html\n * @if (state(); as shown) {\n * <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n * }\n * ```\n *\n * @internal\n */\n@Component({\n selector: 'wr-chart-state',\n templateUrl: './chart-state.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-chart-state',\n '[class.wr-chart-state--empty]': \"kind() === 'empty'\",\n '[class.wr-chart-state--loading]': \"kind() === 'loading'\",\n '[class.wr-chart-state--error]': \"kind() === 'error'\",\n '[attr.role]': \"kind() === 'error' ? 'alert' : 'status'\",\n },\n})\nexport class WrChartState {\n /** Which of the three states this is. */\n readonly kind = input.required<WrChartStateKind>();\n\n /** The message, already translated. */\n readonly label = input.required<string>();\n}\n","<span class=\"wr-chart-state__plate\">\n @if (kind() === 'loading') {\n <!-- Decoration: the word beside it carries the state. -->\n <span class=\"wr-chart-state__spinner\" aria-hidden=\"true\"></span>\n }\n <span class=\"wr-chart-state__label\">{{ label() }}</span>\n</span>\n","/**\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 { Component, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport type { WrChartTableData } from './types';\n\n/**\n * The figures a chart draws, as a table that only assistive technology reaches.\n *\n * A chart's drawing is one named `role=\"img\"`, and `img` makes everything inside it\n * presentational: the name is announced and the numbers are nowhere a screen reader\n * can walk. This renders them as a real `<table>` — a caption, column headers, row\n * headers, and a `<tbody>` per group headed by a `<th scope=\"rowgroup\">` down its rows\n * — so a reader can move cell by cell and hear each value with its row and column.\n *\n * **Beside the image, never inside it.** Inside, `img` would hide it with the rest of\n * the drawing. A chart renders `<wr-chart-table>` as a sibling of the element that\n * carries `role=\"img\"`, and only while its `dataTable` input asks for it. **The chart's\n * host has to be positioned** (`position: relative`): the table is out of flow, and\n * against a static host it resolves to an ancestor outside the chart and keeps its place\n * in an unpositioned scroller's content, which grew one page by 1600px of blank scroll.\n *\n * **Hidden by clipping, not by `display` or `hidden`**, which would take it out of the\n * accessibility tree as well: the host is clipped to nothing and taken out of flow, so\n * it costs the chart no layout and still reads in full. The table inside keeps its own\n * layout, because a `<table>` will not shrink to a clip box of its own — it grows to\n * fit its cells whatever its width says. Nothing in it is focusable, so no tab stop\n * lands on something that cannot be seen.\n *\n * No ids: the headers are tied to their cells by `scope`, which needs none, and an id\n * minted on the server would not match the client's.\n *\n * @example\n * ```html\n * <div class=\"wr-line-chart__plot\" role=\"img\" [attr.aria-label]=\"label()\">…</div>\n * @if (dataTable()) {\n * <wr-chart-table [data]=\"table()\" />\n * }\n * ```\n *\n * @internal\n */\n@Component({\n selector: 'wr-chart-table',\n templateUrl: './chart-table.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-chart-table' },\n})\nexport class WrChartTable {\n /** The caption, the column headings and the rows, every string already written. */\n readonly data = input.required<WrChartTableData>();\n\n /** Whether any group is headed, which gives every row a leading group column. */\n protected readonly hasGroupHeaders = computed(() => this.data().groups.some(group => !!group.header));\n}\n","@let d = data();\n@let grouped = hasGroupHeaders();\n<!-- Every section is written out, `<thead>` and each `<tbody>` included: the HTML\n parser inserts a `<tbody>` the template left out, and hydration would then meet\n a tree it did not render. -->\n<table class=\"wr-chart-table__table\">\n <caption>\n {{\n d.caption\n }}\n </caption>\n <thead>\n <tr>\n <!-- Over the group headers' column, then the row headers' one. -->\n @if (grouped && !d.corner) {\n <td colspan=\"2\"></td>\n } @else {\n @if (grouped) {\n <td></td>\n }\n @if (d.corner) {\n <th scope=\"col\">{{ d.corner }}</th>\n } @else {\n <td></td>\n }\n }\n @for (column of d.columns; track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n @for (group of d.groups; track $index) {\n @if (group.rows.length > 0) {\n <tbody>\n @for (row of group.rows; track $index; let first = $first, count = $count) {\n <tr>\n <!-- The group's header in a column of its own, down every row of the group:\n the shape the HTML table algorithm and every checker read as heading the\n cells beside it. A full-width row above the group heads nothing by axe's\n reading. -->\n @if (grouped && first) {\n @if (group.header) {\n <th scope=\"rowgroup\" [attr.rowspan]=\"count\">{{ group.header }}</th>\n } @else {\n <td [attr.rowspan]=\"count\"></td>\n }\n }\n <th scope=\"row\">{{ row.header }}</th>\n @for (cell of row.cells; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n }\n }\n</table>\n","/**\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 { DestroyRef, ElementRef, type Signal, afterNextRender, afterRenderEffect, inject, signal } from '@angular/core';\n\nconst UNMEASURED: WrChartSize = { width: 0, height: 0 };\n\n/** What each observed element reports to, on the one observer every chart shares. */\nconst listeners = new WeakMap<Element, (size: WrChartSize) => void>();\n\n/** The marks {@link wrChartDim} lit last, per host, so the next call clears them without a scan. */\nconst litMarks = new WeakMap<Element, Element[]>();\n\nlet observer: ResizeObserver | null = null;\n\n/** The constructor `observer` was built with: a page has one, a test suite swaps it. */\nlet observerType: typeof ResizeObserver | null = null;\n\n/**\n * The box a chart measures, in px. Both are 0 until it is laid out.\n *\n * @internal\n */\nexport interface WrChartSize {\n readonly width: number;\n readonly height: number;\n}\n\n/**\n * Reports `element`'s content box to `listener` whenever it changes, through ONE\n * `ResizeObserver` for every chart on the page. Returns the function that stops it.\n *\n * Seven charts each made an observer of their own, so a dashboard of forty tiles ran\n * forty. An observer is built to watch many targets and delivers them in one callback\n * per frame. One listener per element: observing an element again replaces its listener.\n * Where there is no `ResizeObserver` (a server, an old test environment) nothing is\n * observed and the returned function does nothing.\n *\n * @internal\n */\nexport function wrChartObserveSize(element: Element, listener: (size: WrChartSize) => void): () => void {\n if (typeof ResizeObserver === 'undefined') return () => undefined;\n if (!observer || observerType !== ResizeObserver) {\n observerType = ResizeObserver;\n observer = new ResizeObserver(entries => {\n for (const entry of entries) {\n const { width, height } = entry.contentRect;\n listeners.get(entry.target)?.({ width, height });\n }\n });\n }\n const shared = observer;\n listeners.set(element, listener);\n shared.observe(element);\n return () => {\n listeners.delete(element);\n shared.unobserve(element);\n };\n}\n\n/**\n * The size of the element `target` holds, as a signal that follows it: `0 × 0` until the\n * element is rendered and laid out, and again once it is gone. On the shared observer of\n * {@link wrChartObserveSize}. Call in an injection context.\n *\n * @internal\n */\nexport function useChartSize(target: Signal<ElementRef<Element> | Element | undefined>): Signal<WrChartSize> {\n const size = signal<WrChartSize>(UNMEASURED);\n let stop: (() => void) | null = null;\n let observed: Element | null = null;\n\n afterRenderEffect(() => {\n const held = target();\n const element = held instanceof ElementRef ? held.nativeElement : (held ?? null);\n if (element === observed) return;\n stop?.();\n observed = element;\n stop = null;\n if (!element) {\n size.set(UNMEASURED);\n return;\n }\n stop = wrChartObserveSize(element, next => {\n const current = size();\n if (current.width !== next.width || current.height !== next.height) size.set(next);\n });\n });\n inject(DestroyRef).onDestroy(() => stop?.());\n return size.asReadonly();\n}\n\n/**\n * What {@link useChartHover} tells a chart.\n *\n * @internal\n */\nexport interface WrChartHoverHandlers {\n /** The pointer is over the section whose `data-wr-index` is `index`. Not repeated while it stays there. */\n enter(index: number): void;\n /** The pointer left the sections: for the chart's box, or for a part of it that is no section. */\n leave(event: MouseEvent): void;\n}\n\n/**\n * Dims every mark of `host` but the ones of series `key`, or none for `null`: the chart\n * takes `wr-chart--dim` and the series' own marks `wr-chart-mark--on`, and the shared\n * stylesheet fades the rest to `--wr-chart-dim`. A mark is anything carrying\n * `data-wr-series`, a legend row included.\n *\n * Classes set by hand rather than bound: a binding on every mark is re-evaluated for\n * every mark on each hover change, and this touches the marks of two series.\n *\n * @internal\n */\nexport function wrChartDim(host: Element, key: string | null): void {\n for (const mark of litMarks.get(host) ?? []) mark.classList.remove('wr-chart-mark--on');\n host.classList.toggle('wr-chart--dim', key !== null);\n if (key === null) {\n litMarks.delete(host);\n return;\n }\n const marks = [...host.querySelectorAll(`[data-wr-series=\"${CSS.escape(key)}\"]`)];\n for (const mark of marks) mark.classList.add('wr-chart-mark--on');\n litMarks.set(host, marks);\n}\n\n/**\n * A chart's hover, from ONE pair of listeners on its host however many sections it draws.\n *\n * A section is any element carrying `data-wr-index`: the listener finds the nearest one\n * above whatever the pointer is on and reports its index, once per section entered. A\n * listener pair on every bar was two per bar, and each one a change detection pass over\n * the whole chart for every bar the pointer crossed; these are native listeners, so a\n * move runs no pass at all unless the chart's own handler writes a signal.\n *\n * A gap the chart marks with `data-wr-hold` keeps the section and the dim as they are, so\n * crossing from one bar to the next does not close and reopen the tooltip; a section in\n * such an area takes `wr-chart-section--on`, so a band the chart paints on it stays too.\n *\n * It also drives the shared hover-dim: the nearest element carrying `data-wr-series`\n * names the series under the pointer, and {@link wrChartDim} fades the rest. Legend rows\n * carry the attribute too, so hovering a row dims the chart the same way.\n *\n * Registered after the first render, in the browser only. Call in an injection context.\n *\n * @internal\n */\nexport function useChartHover(handlers: WrChartHoverHandlers): void {\n const host = inject(ElementRef).nativeElement as HTMLElement;\n const destroyRef = inject(DestroyRef);\n let index: number | null = null;\n let series: string | null = null;\n\n const dim = (key: string | null): void => {\n if (key === series) return;\n series = key;\n wrChartDim(host, key);\n };\n\n let current: Element | null = null;\n const band = (section: Element | null): void => {\n current?.classList.remove('wr-chart-section--on');\n current = section?.closest('[data-wr-hold]') ? section : null;\n current?.classList.add('wr-chart-section--on');\n };\n\n const inHost = (el: Element | null | undefined): el is Element => !!el && host.contains(el);\n\n const over = (event: MouseEvent): void => {\n const target = event.target instanceof Element ? event.target : null;\n const section = target?.closest('[data-wr-index]');\n const series = target?.closest('[data-wr-series]');\n // In the room a chart holds open between its marks (`data-wr-hold`, the gaps between\n // its bars), the pointer is still on the drawing: what it last pointed at stays,\n // rather than closing and reopening a few pixels on.\n const held = !inHost(series) && inHost(target?.closest('[data-wr-hold]'));\n if (!held) dim(inHost(series) ? series.getAttribute('data-wr-series') : null);\n if (held && !inHost(section)) return;\n\n const next = inHost(section) ? Number(section.getAttribute('data-wr-index')) : null;\n if (next === index) return;\n index = next;\n if (next === null || !Number.isFinite(next)) {\n band(null);\n handlers.leave(event);\n } else {\n band(section ?? null);\n handlers.enter(next);\n }\n };\n\n const leave = (event: MouseEvent): void => {\n dim(null);\n if (index === null) return;\n index = null;\n band(null);\n handlers.leave(event);\n };\n\n afterNextRender(() => {\n host.addEventListener('mouseover', over);\n host.addEventListener('mouseleave', leave);\n destroyRef.onDestroy(() => {\n host.removeEventListener('mouseover', over);\n host.removeEventListener('mouseleave', leave);\n });\n });\n}\n","/**\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\n/**\n * The `limit` longest of `labels`, each once, longest first: the strings worth measuring.\n *\n * A chart sizes a gutter or keeps room past a bar from a hidden copy of the text that goes\n * there. Copying every label made ten thousand hidden spans for ten thousand bars, to learn\n * the width of one. The widest label is almost always among the longest few by character\n * count - a proportional font can put `1,111` under `999`, which is why this returns a few\n * and not one - so a chart renders these and reads the widest.\n *\n * @internal\n */\nexport function wrChartLongest(labels: readonly string[], limit = 3): string[] {\n const longest: string[] = [];\n for (const label of new Set(labels)) {\n if (longest.length === limit && label.length <= longest[longest.length - 1].length) continue;\n let at = longest.findIndex(kept => kept.length < label.length);\n if (at < 0) at = longest.length;\n longest.splice(at, 0, label);\n if (longest.length > limit) longest.pop();\n }\n return longest;\n}\n\n/**\n * How many categories each printed label stands for, so no two labels along an axis run\n * into each other: 1 while every label fits its own band, 2 to print every second one,\n * and so on.\n *\n * `extent` is the axis' length and `count` how many bands share it; `labelSize` is the\n * longest label along the axis, and `gap` the least room between two labels. All in the\n * same unit, px in practice. With nothing measured yet - a server render, a chart not\n * laid out - the answer is 1: every label, as the markup had before it was measured.\n *\n * @internal\n */\nexport function wrChartLabelStep(count: number, extent: number, labelSize: number, gap = 8): number {\n if (!(count > 1) || !(extent > 0) || !(labelSize > 0)) return 1;\n const band = extent / count;\n return Math.max(1, Math.min(count, Math.ceil((labelSize + gap) / band)));\n}\n","/**\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\n/**\n * Default series colours, in order: what a series, a slice or a segment with no\n * `color` of its own takes. Each is a token of the chart theme (`--wr-chart-1` to\n * `--wr-chart-8`, declared by `ngwr/charts/core`'s stylesheet), so an app retints\n * every chart by setting the tokens and a chart's markup never names a hex.\n *\n * The palette is not the status intents: a second series is not a success and a\n * fourth is not a danger. The first is the brand colour and the last the neutral\n * role; neighbours alternate between a deep and a mid tone, so two series next to\n * each other differ in lightness as well as in hue. The stylesheet carries the\n * measured contrast of each.\n *\n * A chart that draws lines still pairs each with a dash (`WR_CHART_DASHES`), and\n * one that draws points with a shape (`WR_CHART_MARKERS`): colour is never the\n * only thing that tells two series apart.\n *\n * @internal\n */\nexport const WR_CHART_PALETTE: readonly string[] = [\n 'var(--wr-chart-1)',\n 'var(--wr-chart-2)',\n 'var(--wr-chart-3)',\n 'var(--wr-chart-4)',\n 'var(--wr-chart-5)',\n 'var(--wr-chart-6)',\n 'var(--wr-chart-7)',\n 'var(--wr-chart-8)',\n];\n\n/**\n * The palette colour for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartColor(index: number): string {\n return WR_CHART_PALETTE[wrap(index, WR_CHART_PALETTE.length)];\n}\n\n/**\n * The series colours every chart took before the chart theme: four status intents and\n * the neutral role. Kept for the charts that have not moved onto `--wr-chart-*` yet,\n * so each keeps its look until it does; a chart on the theme reads\n * {@link WR_CHART_PALETTE}.\n *\n * `warning` measures 1.71:1 on a white surface, under the 3:1 a graphic needs, which\n * is one of the reasons the theme's palette replaced it.\n *\n * @internal\n */\nexport const WR_CHART_LEGACY_PALETTE: readonly string[] = [\n 'var(--wr-color-primary)',\n 'var(--wr-color-success)',\n 'var(--wr-color-warning)',\n 'var(--wr-color-danger)',\n 'var(--wr-color-on-surface-muted)',\n];\n\n/**\n * The {@link WR_CHART_LEGACY_PALETTE} colour for the series at `index`, wrapping past\n * the end.\n *\n * @internal\n */\nexport function wrChartLegacyColor(index: number): string {\n return WR_CHART_LEGACY_PALETTE[wrap(index, WR_CHART_LEGACY_PALETTE.length)];\n}\n\n/**\n * A dash pattern per series, so lines are told apart by SHAPE and not only by hue.\n *\n * A reader with red-green colour blindness can see two strokes of similar lightness\n * as one grey, and a legend that pairs a coloured dot with a name does not rescue it:\n * matching the dot to the line is exactly the step that needs hue. Distinguishing\n * series by dash is the standard remedy and the only one that survives greyscale,\n * printing and a monochrome display.\n *\n * The FIRST entry is solid on purpose. A single-series chart is the common case\n * and there is nothing to tell apart in it; the patterns only appear once a second\n * series does. Each value is an SVG `stroke-dasharray`, `''` meaning none.\n *\n * @internal\n */\nexport const WR_CHART_DASHES: readonly string[] = ['', '7 4', '2 3', '10 4 2 4', '1 4', '6 3 2 3'];\n\n/**\n * The dash pattern for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartDash(index: number): string {\n return WR_CHART_DASHES[wrap(index, WR_CHART_DASHES.length)];\n}\n\n/** `index` folded into `[0, length)`, negatives included, so a bad index still picks an entry. */\nexport function wrap(index: number, length: number): number {\n const i = Number.isFinite(index) ? Math.trunc(index) : 0;\n return ((i % length) + length) % length;\n}\n","/**\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 { wrap } from './palette';\nimport type { WrChartMarkerExtent, WrChartMarkerShape } from './types';\n\n/** Half the side of a square with the area of a circle of radius 1: √π / 2. */\nconst SQUARE = Math.sqrt(Math.PI) / 2;\n\n/** Half the diagonal of that square, standing on a corner. */\nconst DIAMOND = SQUARE * Math.SQRT2;\n\n/** The side of an equilateral triangle with the area of a circle of radius 1: √(4π / √3). */\nconst TRIANGLE_SIDE = Math.sqrt((4 * Math.PI) / Math.sqrt(3));\n\n/** The distance from that triangle's centroid to a corner (two thirds of its height). */\nconst TRIANGLE_APEX = (TRIANGLE_SIDE * Math.sqrt(3)) / 3;\n\n/**\n * A plus with arms 0.35 of their length thick, half-length `L` and half-thickness\n * `0.35 L`, has an area of `8·0.35·L² − 4·0.35²·L²`; this is the `L` that makes it π.\n */\nconst CROSS_ARM = Math.sqrt(Math.PI / (8 * 0.35 - 4 * 0.35 ** 2));\nconst CROSS_THICKNESS = CROSS_ARM * 0.35;\n\n/**\n * How far each shape reaches from its centre at `r = 1`, read off the corners\n * {@link wrChartMarkerPath} draws: up, down, to either side, and to the farthest\n * corner.\n */\nconst EXTENTS: Readonly<Record<WrChartMarkerShape, WrChartMarkerExtent>> = {\n circle: { top: 1, bottom: 1, side: 1, radius: 1 },\n square: { top: SQUARE, bottom: SQUARE, side: SQUARE, radius: SQUARE * Math.SQRT2 },\n diamond: { top: DIAMOND, bottom: DIAMOND, side: DIAMOND, radius: DIAMOND },\n triangle: { top: TRIANGLE_APEX, bottom: TRIANGLE_APEX / 2, side: TRIANGLE_SIDE / 2, radius: TRIANGLE_APEX },\n 'triangle-down': { top: TRIANGLE_APEX / 2, bottom: TRIANGLE_APEX, side: TRIANGLE_SIDE / 2, radius: TRIANGLE_APEX },\n cross: { top: CROSS_ARM, bottom: CROSS_ARM, side: CROSS_ARM, radius: Math.hypot(CROSS_ARM, CROSS_THICKNESS) },\n};\n\n/** A coordinate to three decimals, without trailing zeros, so a path stays short. */\nconst n = (value: number): string => String(Math.round(value * 1000) / 1000 || 0);\n\n/** `M x y L … Z` through the given corners. */\nconst polygon = (points: readonly (readonly [number, number])[]): string =>\n `M ${points.map(([x, y]) => `${n(x)} ${n(y)}`).join(' L ')} Z`;\n\n/**\n * A marker shape per series, so points are told apart by SHAPE and not only by\n * hue — the dash list's job, for a chart that draws points rather than lines.\n *\n * The circle comes first for the reason the solid dash does: a single-series chart\n * has nothing to tell apart. The order then alternates corners and points, so two\n * neighbouring series never differ by a rotation alone (a square beside a diamond\n * is the pair a small marker blurs into one).\n *\n * @internal\n */\nexport const WR_CHART_MARKERS: readonly WrChartMarkerShape[] = [\n 'circle',\n 'square',\n 'triangle',\n 'diamond',\n 'cross',\n 'triangle-down',\n];\n\n/**\n * The marker shape for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartMarker(index: number): WrChartMarkerShape {\n return WR_CHART_MARKERS[wrap(index, WR_CHART_MARKERS.length)];\n}\n\n/**\n * The SVG path `d` of a marker centred on the origin, as large as a circle of\n * radius `r` — every shape has that circle's area, so a triangle reaches past it\n * and a square stays inside it, and the eye weighs them the same.\n *\n * Drawn about the origin so a chart can place it with a `transform`, or inside a\n * nested `<svg x y overflow=\"visible\">`, and size it in pixels whatever the plot's\n * own scale. A non-finite or negative `r` draws nothing rather than a path of\n * `NaN`.\n *\n * @internal\n */\nexport function wrChartMarkerPath(shape: WrChartMarkerShape, r: number): string {\n if (!Number.isFinite(r) || r <= 0) return '';\n switch (shape) {\n case 'square': {\n const h = r * SQUARE;\n return polygon([\n [-h, -h],\n [h, -h],\n [h, h],\n [-h, h],\n ]);\n }\n case 'diamond': {\n const d = r * DIAMOND;\n return polygon([\n [0, -d],\n [d, 0],\n [0, d],\n [-d, 0],\n ]);\n }\n case 'triangle':\n case 'triangle-down': {\n // Centred on the centroid, not on the box, so a triangle sits on the same\n // point a circle would.\n const flip = shape === 'triangle' ? 1 : -1;\n const apex = r * TRIANGLE_APEX;\n const half = (r * TRIANGLE_SIDE) / 2;\n return polygon([\n [0, -apex * flip],\n [half, (apex / 2) * flip],\n [-half, (apex / 2) * flip],\n ]);\n }\n case 'cross': {\n const a = r * CROSS_ARM;\n const t = r * CROSS_THICKNESS;\n return polygon([\n [-t, -a],\n [t, -a],\n [t, -t],\n [a, -t],\n [a, t],\n [t, t],\n [t, a],\n [-t, a],\n [-t, t],\n [-a, t],\n [-a, -t],\n [-t, -t],\n ]);\n }\n case 'circle':\n default:\n // Two arcs, since one arc from a point back to itself draws nothing.\n return `M ${n(-r)} 0 A ${n(r)} ${n(r)} 0 1 0 ${n(r)} 0 A ${n(r)} ${n(r)} 0 1 0 ${n(-r)} 0 Z`;\n }\n}\n\n/**\n * How far the marker {@link wrChartMarkerPath} draws at `r` reaches from its centre,\n * in px, before any stroke: up, down, to either side, and to its farthest corner.\n *\n * Every shape has the circle's AREA, so `r` is not how far a marker reaches: a\n * triangle's point stands 1.56 r above its centroid, a diamond's tips 1.25 r out\n * and a cross's corners 1.24 r, while a square's sides sit 0.89 r in. A box, a hit\n * area or a margin sized by `r` alone cuts the tips off. A non-finite or negative\n * `r` reaches nowhere, as it draws nothing.\n *\n * @internal\n */\nexport function wrChartMarkerExtent(shape: WrChartMarkerShape, r: number): WrChartMarkerExtent {\n const size = Number.isFinite(r) && r > 0 ? r : 0;\n const unit = EXTENTS[shape] ?? EXTENTS.circle;\n return { top: unit.top * size, bottom: unit.bottom * size, side: unit.side * size, radius: unit.radius * size };\n}\n","/**\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 { LOCALE_ID, type Signal, inject } from '@angular/core';\n\nimport { wrClamp } from 'ngwr/utils';\n\nimport type { WrChartNumbers } from './types';\n\n/**\n * The fewest fraction digits that write `value` exactly, up to six: the precision of a\n * step no power of ten divides, such as the third a flat range is centred with.\n */\nfunction fractionDigits(value: number): number {\n for (let d = 0; d <= 6; d++) if (Math.abs(value * 10 ** d - Math.round(value * 10 ** d)) < 1e-9) return d;\n return 6;\n}\n\n/** The power of ten of `value`'s leading digit: 2 for 750, -2 for 0.025. */\nfunction magnitude(value: number): number {\n const abs = Math.abs(value);\n let m = Math.floor(Math.log10(abs));\n // `log10` is a float: guard the exact powers of ten from landing one off.\n if (10 ** (m + 1) <= abs) m++;\n if (10 ** m > abs) m--;\n return m;\n}\n\n/**\n * The power of ten of `step`'s LAST significant digit: 1 for 250, -1 for 2.5. Every tick\n * is a whole multiple of the step, so no tick has a digit below it, and a tick written to\n * that digit is written exactly.\n */\nfunction lastDigit(step: number): number {\n for (let e = magnitude(step); e > -21; e--) {\n const scaled = step / 10 ** e;\n if (Math.abs(scaled - Math.round(scaled)) < 1e-6) return e;\n }\n return -21;\n}\n\n/** Every formatter the charts have asked for, by locale and options. */\nconst FORMATTERS = new Map<string, Intl.NumberFormat>();\n\n/**\n * The `Intl.NumberFormat` for `locale` and `options`, built once for the page and shared\n * by every chart on it.\n *\n * Building one costs about a tenth of a millisecond, and the charts built them freely:\n * three per chart instance, and one per tick on every pass over an axis, so a table of a\n * hundred sparklines paid for three hundred identical formatters. A formatter holds no\n * state, so one per distinct key serves them all. The key is the locale and the options\n * in the order given; the charts ask with a handful of shapes, so the map stays small.\n *\n * @internal\n */\nexport function wrChartNumberFormat(locale: string, options?: Intl.NumberFormatOptions): Intl.NumberFormat {\n const key = options ? `${locale}|${JSON.stringify(options)}` : locale;\n let format = FORMATTERS.get(key);\n if (!format) {\n format = new Intl.NumberFormat(locale, options);\n FORMATTERS.set(key, format);\n }\n return format;\n}\n\n/**\n * The number writers of one chart: its axis ticks, the labels it prints in tight\n * spaces, and the figures of its tooltip and its accessible names — every one\n * through the chart's `valueFormat` when it has one, else through `Intl` in\n * `locale`.\n *\n * Seven charts kept their own copy of the `Intl` half until 15.1, each with the\n * same two formatters and the same `formatValue`, and the line chart a second,\n * axis-wide copy for its ticks. The rules are theirs, unchanged:\n *\n * - `value` is never compact, and is `Intl`'s default otherwise: up to three\n * fraction digits, and below one three SIGNIFICANT digits, since three fraction\n * digits write a reading of 0.0004 as `0`. It is not the exact figure: 1.08345\n * is `1.083`, and an axis stepping by 0.00025 is finer than it. A chart that has\n * to write a figure to a known precision asks `exact`.\n * - `label` is compact from a thousand up, where a bar is too narrow for\n * `1,234,567`, and below a thousand it is `value`: compact rounding would print\n * 12.5 as `13`, and there is nothing to abbreviate.\n * - `ticks` is decided for the AXIS. Compact, through `Intl` (`1.2K`, `3.4M`,\n * `4 Mio.`, `5 тыс.`), with each tick to exactly the significant digits the step\n * needs — a fixed count printed 1250 beside 1000 as `1.3k` and `1k` on an axis\n * stepping by 250. And when abbreviating would make the labels LONGER (a fine\n * step on large numbers, where `-1.025K` is wider than `-1,025`) the whole axis\n * is written in full instead, so no axis mixes `-1K` with `-1,025`. Written in\n * full, a tick has as many fraction digits as the step's last digit needs, however\n * fine: they stopped at six, so an axis stepping by 2.5e-7 printed `0.000013` twice.\n * - `exact` writes a figure to a precision the chart decides — the step of its axis,\n * a price's tick size — never compact, through `valueFormat` when there is one.\n *\n * `valueFormat` takes whatever extra arguments the chart passes it, so a chart can\n * tell its formatter which axis a number is for while a `(value) => string`\n * written for another chart still fits. Call in an injection context: `locale`\n * defaults to `LOCALE_ID`.\n *\n * @internal\n */\nexport function useChartNumbers<A extends readonly unknown[] = []>(\n valueFormat: Signal<((value: number, ...args: A) => string) | null | undefined>,\n locale: string = inject(LOCALE_ID)\n): WrChartNumbers<A> {\n const numbers = wrChartNumberFormat(locale);\n /** Below one, by significant digits, which keep 0.0004 from rounding to `0`. */\n const smallNumbers = wrChartNumberFormat(locale, { maximumSignificantDigits: 3 });\n const compactNumbers = wrChartNumberFormat(locale, { notation: 'compact' });\n\n const value = (v: number, ...args: A): string => {\n const custom = valueFormat();\n if (custom) return custom(v, ...args);\n return (v !== 0 && Math.abs(v) < 1 ? smallNumbers : numbers).format(v);\n };\n\n const label = (v: number, ...args: A): string => {\n if (valueFormat() || Math.abs(v) < 1000) return value(v, ...args);\n return compactNumbers.format(v);\n };\n\n const ticks = (values: readonly number[], step: number, ...args: A): string[] => {\n const custom = valueFormat();\n if (custom) return values.map(v => custom(v, ...args));\n if (values.length === 0) return [];\n\n const last = lastDigit(step);\n // A CEILING rather than a fixed count, so trailing zeros are dropped: a 0.25 step\n // wants two digits on 0.25 and none on 1, and `1.00` beside `0.25` reads as\n // spurious precision. Down to the step's last digit, however fine — the six digits\n // `fractionDigits` stops at printed a 2.5e-7 step as `0.000013` twice, and called\n // a step below 1e-9 whole. A step with no last digit (a third) keeps those six.\n const digits = last <= -21 ? fractionDigits(step) : wrClamp(-last, 0, 20);\n const full = wrChartNumberFormat(locale, { maximumFractionDigits: digits });\n const plain = values.map(v => full.format(v));\n const compact = values.map(v =>\n v === 0\n ? full.format(0)\n : wrChartNumberFormat(locale, {\n notation: 'compact',\n maximumSignificantDigits: wrClamp(magnitude(v) - last + 1, 1, 21),\n }).format(v)\n );\n const longest = (labels: readonly string[]): number => Math.max(...labels.map(text => text.length));\n return longest(compact) <= longest(plain) ? compact : plain;\n };\n\n const exact = (v: number, fractionDigits: number, ...args: A): string => {\n const custom = valueFormat();\n if (custom) return custom(v, ...args);\n const digits = Number.isFinite(fractionDigits) ? wrClamp(Math.round(fractionDigits), 0, 20) : 3;\n return wrChartNumberFormat(locale, { maximumFractionDigits: digits }).format(v);\n };\n\n return { value, label, ticks, exact };\n}\n","/**\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\n/**\n * `value` rounded to `digits` decimals for an inline style or an SVG attribute, with\n * `-0` folded to `0`: a share of an axis, a percentage, a coordinate.\n *\n * Eleven charts each kept a copy of this under another name (`short`, `percent`,\n * `fixed`), at three precisions. A written geometry value wants few digits - every one\n * past the fourth is bytes in the DOM and a different string for the same pixel - and\n * never `-0`, which `Math.round` produces for a small negative and which prints as `-0`.\n *\n * Not `wrRound` from `ngwr/utils`, which nudges by `Number.EPSILON` to round a decimal\n * tie the way a person expects and keeps the sign of a zero.\n *\n * @internal\n */\nexport function wrChartRound(value: number, digits = 4): number {\n const factor = 10 ** digits;\n return Math.round(value * factor) / factor || 0;\n}\n","/**\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\n/**\n * The helpers ngwr's charts share: the series palette, dashes and marker shapes,\n * the number writers, the nice-number axis, rounding, label thinning, one hover and\n * one resize listener, the empty / loading / error state, and the data table a chart\n * renders beside its drawing. The chart theme itself, `--wr-chart-*`, is this entry\n * point's stylesheet. Every export is `@internal` - an entry point of its own so\n * that the charts and the legend can all import it without one chart importing\n * another, and not a public API: nothing here carries a stability promise, and an\n * app imports a chart instead.\n */\nexport { wrChartAxis } from './axis';\nexport { WrChartState, useChartState } from './chart-state';\nexport type { WrChartStateKind, WrChartStateOptions, WrChartStateView } from './chart-state';\nexport { WrChartTable } from './chart-table';\nexport { useChartHover, useChartSize, wrChartDim, wrChartObserveSize } from './interaction';\nexport type { WrChartHoverHandlers, WrChartSize } from './interaction';\nexport { wrChartLabelStep, wrChartLongest } from './labels';\nexport { WR_CHART_MARKERS, wrChartMarker, wrChartMarkerExtent, wrChartMarkerPath } from './markers';\nexport { useChartNumbers, wrChartNumberFormat } from './numbers';\nexport {\n WR_CHART_DASHES,\n WR_CHART_LEGACY_PALETTE,\n WR_CHART_PALETTE,\n wrChartColor,\n wrChartDash,\n wrChartLegacyColor,\n} from './palette';\nexport { wrChartRound } from './round';\nexport type {\n WrChartAxis,\n WrChartAxisOptions,\n WrChartMarkerExtent,\n WrChartMarkerShape,\n WrChartN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CAAA;EAEhC,MAAM,OAAO,UAAU,IAAI;EAO3B,MAAM,OAAO,oBAAoB,QAAQ,EAAE,uBAD5B,QAAQ,MAAM,eAAe,IAAI,IAAI,QAAQ,CAAC,MAAM,GAAG,EAAE,EACA,CAAE;EAC1E,MAAM,QAAQ,OAAO,KAAI,MAAK,KAAK,OAAO,CAAC,CAAC;EAC5C,MAAM,UAAU,OAAO,KAAI,MACzB,MAAM,IACF,KAAK,OAAO,CAAC,IACb,oBAAoB,QAAQ;GAC1B,UAAU;GACV,0BAA0B,QAAQ,UAAU,CAAC,IAAI,OAAO,GAAG,GAAG,EAAE;EACjE,CAAA,CAAC,CAAC,OAAO,CAAC,CAAC;EAElB,MAAM,WAAW,WAAsC,KAAK,IAAI,GAAG,OAAO,KAAI,SAAQ,KAAK,MAAM,CAAC;EAClG,OAAO,QAAQ,OAAO,KAAK,QAAQ,KAAK,IAAI,UAAU;CACxD;CAEA,MAAM,SAAS,GAAW,gBAAwB,GAAG,SAAmB;EACtE,MAAM,SAAS,YAAW;EAC1B,IAAI,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAI;EAEpC,OAAO,oBAAoB,QAAQ,EAAE,uBADtB,OAAO,SAAS,cAAc,IAAI,QAAQ,KAAK,MAAM,cAAc,GAAG,GAAG,EAAE,IAAI,EAC5B,CAAE,CAAC,CAAC,OAAO,CAAC;CAChF;CAEA,OAAO;EAAE;EAAO;EAAO;EAAO;CAAK;AACrC;;;;;;;AC3IA,SAAgB,aAAa,OAAe,SAAS,GAAC;CACpD,MAAM,SAAS,MAAM;CACrB,OAAO,KAAK,MAAM,QAAQ,MAAM,IAAI,UAAU;AAChD"}
1
+ {"version":3,"file":"ngwr-charts-core.mjs","names":[],"sources":["../../../projects/lib/charts/core/axis.ts","../../../projects/lib/charts/core/chart-state.ts","../../../projects/lib/charts/core/chart-state.html","../../../projects/lib/charts/core/chart-table.ts","../../../projects/lib/charts/core/chart-table.html","../../../projects/lib/charts/core/interaction.ts","../../../projects/lib/charts/core/labels.ts","../../../projects/lib/charts/core/palette.ts","../../../projects/lib/charts/core/markers.ts","../../../projects/lib/charts/core/numbers.ts","../../../projects/lib/charts/core/round.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { wrRound } from 'ngwr/utils';\n\nimport type { WrChartAxis, WrChartAxisOptions } from './types';\n\n/** How many gaps an axis aims for by default. Five labels, four gaps. */\nconst TICK_COUNT = 4;\n\n/** The axis drawn when there is no data to fit: 0 to 1 in quarters, the line chart's empty frame. */\nconst EMPTY: WrChartAxis = { min: 0, max: 1, step: 0.25, ticks: [1, 0.75, 0.5, 0.25, 0] };\n\n/** The rungs of the {@link niceStep} ladder within one decade, from the top: 1, 0.5, 0.25 and 0.2 of it. */\nconst LADDER = [1, 0.5, 0.25, 0.2] as const;\n\n/**\n * How many fraction digits a tick on an axis stepping by `step` is rounded to: two past\n * the step's own leading digit, and never fewer than six or more than fifteen.\n *\n * It was a fixed six, which cannot write a tick finer than a millionth: an axis stepping\n * by 2.5e-7 — a micro-priced asset — came back as five ticks of `0.000013` and\n * `0.000012`, one stepping by 5e-10 as five zeros, and one stepping by 2.5e-6 put two of\n * its gridlines at the wrong height. Every tick is a whole multiple of the step, whose\n * last digit is at most one place past its leading one (2.5, and 0.25 on the\n * centred axis' ladder, two), so two past the leading digit writes every tick exactly.\n * The floor of six keeps every axis that was already exact bit for bit what it was,\n * and keeps a step no rung divides — a third, centred — at the six it always had.\n */\nfunction tickDigits(step: number): number {\n return Math.min(15, Math.max(6, Math.ceil(-Math.log10(step)) + 2));\n}\n\n/**\n * The `symmetric` axis for data with no span: the value in the MIDDLE, as a tick of\n * its own, with one step either side.\n *\n * Snapped outward, a flat range keeps its value inside the frame but not at its\n * centre: a lone 120 lands on an axis from 100 to 150, two fifths of the way up. The\n * step here is the largest rung of the same ladder that is at most a quarter of the\n * value and divides it exactly, so all three ticks are round: 100 / 120 / 140,\n * 4 / 5 / 6, 1234 / 1234.5 / 1235. Zero has no magnitude to take a quarter of, and\n * reads −1 / 0 / 1; a value no rung divides within twelve decades takes a quarter\n * of itself.\n */\nfunction centredAxis(value: number): WrChartAxis {\n const magnitude = Math.abs(value);\n let step = magnitude === 0 ? 1 : magnitude / 4;\n if (magnitude > 0) {\n const top = Math.ceil(Math.log10(magnitude / 4));\n search: for (let exponent = top; exponent > top - 12; exponent--) {\n for (const rung of LADDER) {\n const candidate = rung * 10 ** exponent;\n if (candidate > magnitude / 4) continue;\n const ratio = value / candidate;\n if (Math.abs(ratio - Math.round(ratio)) < 1e-9) {\n step = candidate;\n break search;\n }\n }\n }\n }\n const digits = tickDigits(step);\n return {\n min: value - step,\n max: value + step,\n step,\n ticks: [wrRound(value + step, digits), value, wrRound(value - step, digits)],\n };\n}\n\n/**\n * The smallest 1 / 2 / 2.5 / 5 × 10ⁿ at or above `raw` — the conventional\n * nice-number ladder every plotting library uses to pick an axis step.\n *\n * `2.5` earns its place on the small end: without it a span that wants a step\n * of 2.1 jumps to 5 and the axis loses half its labels.\n */\nexport function niceStep(raw: number): number {\n if (!Number.isFinite(raw) || raw <= 0) return 1;\n const magnitude = 10 ** Math.floor(Math.log10(raw));\n const normalised = raw / magnitude;\n const nice = normalised <= 1 ? 1 : normalised <= 2 ? 2 : normalised <= 2.5 ? 2.5 : normalised <= 5 ? 5 : 10;\n return nice * magnitude;\n}\n\n/**\n * A value axis for data running from `min` to `max`, SNAPPED to a readable step —\n * and the snapping is the point.\n *\n * The line chart's axis used to be \"the data's max plus 10%, divided into four\",\n * which lands on a round number almost never: seven integers between 3 and 35 gave\n * an axis reading 38.2 / 28.7 / 19.1 / 9.6 / 0. A chart's axis is the one part of it\n * a reader is supposed to do arithmetic against.\n *\n * So the step is rounded UP to the nearest 1, 2, 2.5 or 5 times a power of ten —\n * the conventional nice-number ladder — and the bounds are then snapped outward to\n * whole multiples of it. The same 3..35 reads 0 / 10 / 20 / 30 / 40. Snapping\n * outward replaces the old 10% padding, and where the peak still lands exactly on\n * the top it is lifted a step, since a line that ends on the frame reads as clipped.\n * `symmetric` does the same at the bottom.\n *\n * A flat range has no span to divide, so it is given its own magnitude as one (or 1,\n * at zero). With `symmetric` it is centred instead: the value is the middle of three\n * ticks, a round step on either side, whatever `tickCount` asks for. Non-finite\n * bounds, the `Math.min()` / `Math.max()` of no data, give the empty frame from 0 to\n * 1. Bounds handed in the wrong order are swapped.\n *\n * The line chart's own rule, which floors its axis at zero and never lifts it to\n * zero from below, is `wrChartAxis(Math.min(0, min), max)`: an all-negative series\n * keeps an axis that ends just above its peak. `includeZero` is the other reading,\n * zero inside the range on either side, which an area needs for its baseline.\n *\n * @internal\n */\nexport function wrChartAxis(min: number, max: number, options: WrChartAxisOptions = {}): WrChartAxis {\n if (!Number.isFinite(min) || !Number.isFinite(max)) return EMPTY;\n const dataLo = Math.min(min, max);\n const dataHi = Math.max(min, max);\n const lo = options.includeZero ? Math.min(0, dataLo) : dataLo;\n const hi = options.includeZero ? Math.max(0, dataHi) : dataHi;\n // A scale with no baseline has no reason to put a lone value anywhere but the middle.\n if (options.symmetric && lo === hi) return centredAxis(lo);\n\n const count = options.tickCount !== undefined && options.tickCount >= 1 ? Math.round(options.tickCount) : TICK_COUNT;\n // A flat series has no span to divide, so give it one rather than a zero step.\n const span = hi - lo || Math.abs(hi) || 1;\n const step = niceStep(span / count);\n // A quotient a hair off a whole number (0.3 / 0.025 is 11.999999999999998) is that number.\n const snap = (value: number): number => {\n const q = value / step;\n return Math.abs(q - Math.round(q)) <= 1e-9 * Math.max(1, Math.abs(q)) ? Math.round(q) : q;\n };\n const near = (a: number, b: number): boolean => Math.abs(a - b) <= step * 1e-9;\n let bottomStep = Math.floor(snap(lo));\n let topStep = Math.ceil(snap(hi));\n // The data's peak sitting exactly on the frame reads as clipped, so lift the\n // ceiling by one step when the snap did not already do it. Measured against the\n // DATA, so a zero that only `includeZero` put at the top is not lifted: nothing\n // sits on it. `symmetric` holds the bottom to the same rule.\n if (near(topStep * step, dataHi)) topStep += 1;\n if (options.symmetric && near(bottomStep * step, dataLo)) bottomStep -= 1;\n const bottom = bottomStep * step;\n const top = topStep * step;\n\n // Floating-point: 0.1 + 0.2 walks past an exact bound, so count in integers and\n // multiply, and stop on the count rather than on `value >= min`.\n const digits = tickDigits(step);\n const gaps = Math.round((top - bottom) / step);\n const ticks: number[] = [];\n for (let i = 0; i <= gaps; i++) ticks.push(wrRound(top - i * step, digits));\n return { min: bottom, max: top, step, ticks };\n}\n","/**\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 { Component, type Signal, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport { useI18nText } from 'ngwr/i18n';\n\n/**\n * What a chart shows in place of its marks.\n *\n * @internal\n */\nexport type WrChartStateKind = 'empty' | 'loading' | 'error';\n\n/**\n * The state a chart is in, with the message it shows for it.\n *\n * @internal\n */\nexport interface WrChartStateView {\n readonly kind: WrChartStateKind;\n readonly label: string;\n}\n\n/**\n * The inputs a chart hands {@link useChartState}.\n *\n * @internal\n */\nexport interface WrChartStateOptions {\n /** The chart's `loading` input. */\n readonly loading: Signal<boolean>;\n /** The chart's `error` input. */\n readonly error: Signal<boolean>;\n /** Whether the chart has nothing to draw. */\n readonly empty: Signal<boolean>;\n /** The chart's `emptyLabel`, `loadingLabel` and `errorLabel` inputs: `null` takes the catalog's. */\n readonly emptyLabel: Signal<string | null>;\n readonly loadingLabel: Signal<string | null>;\n readonly errorLabel: Signal<string | null>;\n}\n\n/**\n * The state a chart shows instead of its marks, or `null` while it draws them: loading\n * first, then a failed load, then no data. Each message is the chart's own `*Label`\n * input, then the catalog's `chart.loading` / `chart.error` / `chart.empty`, then\n * English. Call in an injection context.\n *\n * One rule for every chart, so a dashboard whose requests are in flight reads the same\n * in every tile, and a chart with no data is a framed \"No data\" rather than a blank box\n * of whatever height its markup collapses to.\n *\n * @internal\n */\nexport function useChartState(options: WrChartStateOptions): Signal<WrChartStateView | null> {\n const loading = useI18nText(options.loadingLabel, 'chart.loading', 'Loading…');\n const error = useI18nText(options.errorLabel, 'chart.error', 'Could not load');\n const empty = useI18nText(options.emptyLabel, 'chart.empty', 'No data');\n return computed<WrChartStateView | null>(() => {\n if (options.loading()) return { kind: 'loading', label: loading() };\n if (options.error()) return { kind: 'error', label: error() };\n if (options.empty()) return { kind: 'empty', label: empty() };\n return null;\n });\n}\n\n/**\n * The message a chart shows in place of its marks, centred over the frame it keeps.\n *\n * A live region: `role=\"status\"`, so a screen reader hears \"Loading…\" when a chart\n * starts a request and \"No data\" when it comes back with none, without the chart taking\n * focus. A failed load is `role=\"alert\"`, which interrupts, since it is the one of the\n * three a reader has to act on. The chart renders it inside the box its marks are drawn\n * in, which it positions; the grid and the axis under it stay.\n *\n * @example\n * ```html\n * @if (state(); as shown) {\n * <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n * }\n * ```\n *\n * @internal\n */\n@Component({\n selector: 'wr-chart-state',\n templateUrl: './chart-state.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-chart-state',\n '[class.wr-chart-state--empty]': \"kind() === 'empty'\",\n '[class.wr-chart-state--loading]': \"kind() === 'loading'\",\n '[class.wr-chart-state--error]': \"kind() === 'error'\",\n '[attr.role]': \"kind() === 'error' ? 'alert' : 'status'\",\n },\n})\nexport class WrChartState {\n /** Which of the three states this is. */\n readonly kind = input.required<WrChartStateKind>();\n\n /** The message, already translated. */\n readonly label = input.required<string>();\n}\n","<span class=\"wr-chart-state__plate\">\n @if (kind() === 'loading') {\n <!-- Decoration: the word beside it carries the state. -->\n <span class=\"wr-chart-state__spinner\" aria-hidden=\"true\"></span>\n }\n <span class=\"wr-chart-state__label\">{{ label() }}</span>\n</span>\n","/**\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 { Component, ViewEncapsulation, computed, input } from '@angular/core';\n\nimport type { WrChartTableData } from './types';\n\n/**\n * The figures a chart draws, as a table that only assistive technology reaches.\n *\n * A chart's drawing is one named `role=\"img\"`, and `img` makes everything inside it\n * presentational: the name is announced and the numbers are nowhere a screen reader\n * can walk. This renders them as a real `<table>` — a caption, column headers, row\n * headers, and a `<tbody>` per group headed by a `<th scope=\"rowgroup\">` down its rows\n * — so a reader can move cell by cell and hear each value with its row and column.\n *\n * **Beside the image, never inside it.** Inside, `img` would hide it with the rest of\n * the drawing. A chart renders `<wr-chart-table>` as a sibling of the element that\n * carries `role=\"img\"`, and only while its `dataTable` input asks for it. **The chart's\n * host has to be positioned** (`position: relative`): the table is out of flow, and\n * against a static host it resolves to an ancestor outside the chart and keeps its place\n * in an unpositioned scroller's content, which grew one page by 1600px of blank scroll.\n *\n * **Hidden by clipping, not by `display` or `hidden`**, which would take it out of the\n * accessibility tree as well: the host is clipped to nothing and taken out of flow, so\n * it costs the chart no layout and still reads in full. The table inside keeps its own\n * layout, because a `<table>` will not shrink to a clip box of its own — it grows to\n * fit its cells whatever its width says. Nothing in it is focusable, so no tab stop\n * lands on something that cannot be seen.\n *\n * No ids: the headers are tied to their cells by `scope`, which needs none, and an id\n * minted on the server would not match the client's.\n *\n * @example\n * ```html\n * <div class=\"wr-line-chart__plot\" role=\"img\" [attr.aria-label]=\"label()\">…</div>\n * @if (dataTable()) {\n * <wr-chart-table [data]=\"table()\" />\n * }\n * ```\n *\n * @internal\n */\n@Component({\n selector: 'wr-chart-table',\n templateUrl: './chart-table.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-chart-table' },\n})\nexport class WrChartTable {\n /** The caption, the column headings and the rows, every string already written. */\n readonly data = input.required<WrChartTableData>();\n\n /** Whether any group is headed, which gives every row a leading group column. */\n protected readonly hasGroupHeaders = computed(() => this.data().groups.some(group => !!group.header));\n}\n","@let d = data();\n@let grouped = hasGroupHeaders();\n<!-- Every section is written out, `<thead>` and each `<tbody>` included: the HTML\n parser inserts a `<tbody>` the template left out, and hydration would then meet\n a tree it did not render. -->\n<table class=\"wr-chart-table__table\">\n <caption>\n {{\n d.caption\n }}\n </caption>\n <thead>\n <tr>\n <!-- Over the group headers' column, then the row headers' one. -->\n @if (grouped && !d.corner) {\n <td colspan=\"2\"></td>\n } @else {\n @if (grouped) {\n <td></td>\n }\n @if (d.corner) {\n <th scope=\"col\">{{ d.corner }}</th>\n } @else {\n <td></td>\n }\n }\n @for (column of d.columns; track $index) {\n <th scope=\"col\">{{ column }}</th>\n }\n </tr>\n </thead>\n @for (group of d.groups; track $index) {\n @if (group.rows.length > 0) {\n <tbody>\n @for (row of group.rows; track $index; let first = $first, count = $count) {\n <tr>\n <!-- The group's header in a column of its own, down every row of the group:\n the shape the HTML table algorithm and every checker read as heading the\n cells beside it. A full-width row above the group heads nothing by axe's\n reading. -->\n @if (grouped && first) {\n @if (group.header) {\n <th scope=\"rowgroup\" [attr.rowspan]=\"count\">{{ group.header }}</th>\n } @else {\n <td [attr.rowspan]=\"count\"></td>\n }\n }\n <th scope=\"row\">{{ row.header }}</th>\n @for (cell of row.cells; track $index) {\n <td>{{ cell }}</td>\n }\n </tr>\n }\n </tbody>\n }\n }\n</table>\n","/**\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 { DestroyRef, ElementRef, type Signal, afterNextRender, afterRenderEffect, inject, signal } from '@angular/core';\n\nconst UNMEASURED: WrChartSize = { width: 0, height: 0 };\n\n/** What each observed element reports to, on the one observer every chart shares. */\nconst listeners = new WeakMap<Element, (size: WrChartSize) => void>();\n\n/** The marks {@link wrChartDim} lit last, per host, so the next call clears them without a scan. */\nconst litMarks = new WeakMap<Element, Element[]>();\n\nlet observer: ResizeObserver | null = null;\n\n/** The constructor `observer` was built with: a page has one, a test suite swaps it. */\nlet observerType: typeof ResizeObserver | null = null;\n\n/**\n * The box a chart measures, in px. Both are 0 until it is laid out.\n *\n * @internal\n */\nexport interface WrChartSize {\n readonly width: number;\n readonly height: number;\n}\n\n/**\n * Reports `element`'s content box to `listener` whenever it changes, through ONE\n * `ResizeObserver` for every chart on the page. Returns the function that stops it.\n *\n * Seven charts each made an observer of their own, so a dashboard of forty tiles ran\n * forty. An observer is built to watch many targets and delivers them in one callback\n * per frame. One listener per element: observing an element again replaces its listener.\n * Where there is no `ResizeObserver` (a server, an old test environment) nothing is\n * observed and the returned function does nothing.\n *\n * @internal\n */\nexport function wrChartObserveSize(element: Element, listener: (size: WrChartSize) => void): () => void {\n if (typeof ResizeObserver === 'undefined') return () => undefined;\n if (!observer || observerType !== ResizeObserver) {\n observerType = ResizeObserver;\n observer = new ResizeObserver(entries => {\n for (const entry of entries) {\n const { width, height } = entry.contentRect;\n listeners.get(entry.target)?.({ width, height });\n }\n });\n }\n const shared = observer;\n listeners.set(element, listener);\n shared.observe(element);\n return () => {\n listeners.delete(element);\n shared.unobserve(element);\n };\n}\n\n/**\n * The size of the element `target` holds, as a signal that follows it: `0 × 0` until the\n * element is rendered and laid out, and again once it is gone. On the shared observer of\n * {@link wrChartObserveSize}. Call in an injection context.\n *\n * @internal\n */\nexport function useChartSize(target: Signal<ElementRef<Element> | Element | undefined>): Signal<WrChartSize> {\n const size = signal<WrChartSize>(UNMEASURED);\n let stop: (() => void) | null = null;\n let observed: Element | null = null;\n\n afterRenderEffect(() => {\n const held = target();\n const element = held instanceof ElementRef ? held.nativeElement : (held ?? null);\n if (element === observed) return;\n stop?.();\n observed = element;\n stop = null;\n if (!element) {\n size.set(UNMEASURED);\n return;\n }\n stop = wrChartObserveSize(element, next => {\n const current = size();\n if (current.width !== next.width || current.height !== next.height) size.set(next);\n });\n });\n inject(DestroyRef).onDestroy(() => stop?.());\n return size.asReadonly();\n}\n\n/**\n * What {@link useChartHover} tells a chart.\n *\n * @internal\n */\nexport interface WrChartHoverHandlers {\n /** The pointer is over the section whose `data-wr-index` is `index`. Not repeated while it stays there. */\n enter(index: number): void;\n /** The pointer left the sections: for the chart's box, or for a part of it that is no section. */\n leave(event: MouseEvent): void;\n}\n\n/**\n * Dims every mark of `host` but the ones of series `key`, or none for `null`: the chart\n * takes `wr-chart--dim` and the series' own marks `wr-chart-mark--on`, and the shared\n * stylesheet fades the rest to `--wr-chart-dim`. A mark is anything carrying\n * `data-wr-series`, a legend row included.\n *\n * Classes set by hand rather than bound: a binding on every mark is re-evaluated for\n * every mark on each hover change, and this touches the marks of two series.\n *\n * @internal\n */\nexport function wrChartDim(host: Element, key: string | null): void {\n for (const mark of litMarks.get(host) ?? []) mark.classList.remove('wr-chart-mark--on');\n host.classList.toggle('wr-chart--dim', key !== null);\n if (key === null) {\n litMarks.delete(host);\n return;\n }\n const marks = [...host.querySelectorAll(`[data-wr-series=\"${CSS.escape(key)}\"]`)];\n for (const mark of marks) mark.classList.add('wr-chart-mark--on');\n litMarks.set(host, marks);\n}\n\n/**\n * A chart's hover, from ONE pair of listeners on its host however many sections it draws.\n *\n * A section is any element carrying `data-wr-index`: the listener finds the nearest one\n * above whatever the pointer is on and reports its index, once per section entered. A\n * listener pair on every bar was two per bar, and each one a change detection pass over\n * the whole chart for every bar the pointer crossed; these are native listeners, so a\n * move runs no pass at all unless the chart's own handler writes a signal.\n *\n * A gap the chart marks with `data-wr-hold` keeps the section and the dim as they are, so\n * crossing from one bar to the next does not close and reopen the tooltip; a section in\n * such an area takes `wr-chart-section--on`, so a band the chart paints on it stays too.\n *\n * It also drives the shared hover-dim: the nearest element carrying `data-wr-series`\n * names the series under the pointer, and {@link wrChartDim} fades the rest. Legend rows\n * carry the attribute too, so hovering a row dims the chart the same way.\n *\n * Registered after the first render, in the browser only. Call in an injection context.\n *\n * @internal\n */\nexport function useChartHover(handlers: WrChartHoverHandlers): void {\n const host = inject(ElementRef).nativeElement as HTMLElement;\n const destroyRef = inject(DestroyRef);\n let index: number | null = null;\n let series: string | null = null;\n\n const dim = (key: string | null): void => {\n if (key === series) return;\n series = key;\n wrChartDim(host, key);\n };\n\n let current: Element | null = null;\n const band = (section: Element | null): void => {\n current?.classList.remove('wr-chart-section--on');\n current = section?.closest('[data-wr-hold]') ? section : null;\n current?.classList.add('wr-chart-section--on');\n };\n\n const inHost = (el: Element | null | undefined): el is Element => !!el && host.contains(el);\n\n const over = (event: MouseEvent): void => {\n const target = event.target instanceof Element ? event.target : null;\n const section = target?.closest('[data-wr-index]');\n const series = target?.closest('[data-wr-series]');\n // In the room a chart holds open between its marks (`data-wr-hold`, the gaps between\n // its bars), the pointer is still on the drawing: what it last pointed at stays,\n // rather than closing and reopening a few pixels on.\n const held = !inHost(series) && inHost(target?.closest('[data-wr-hold]'));\n if (!held) dim(inHost(series) ? series.getAttribute('data-wr-series') : null);\n if (held && !inHost(section)) return;\n\n const next = inHost(section) ? Number(section.getAttribute('data-wr-index')) : null;\n if (next === index) return;\n index = next;\n if (next === null || !Number.isFinite(next)) {\n band(null);\n handlers.leave(event);\n } else {\n band(section ?? null);\n handlers.enter(next);\n }\n };\n\n const leave = (event: MouseEvent): void => {\n dim(null);\n if (index === null) return;\n index = null;\n band(null);\n handlers.leave(event);\n };\n\n afterNextRender(() => {\n host.addEventListener('mouseover', over);\n host.addEventListener('mouseleave', leave);\n destroyRef.onDestroy(() => {\n host.removeEventListener('mouseover', over);\n host.removeEventListener('mouseleave', leave);\n });\n });\n}\n","/**\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\n/**\n * The `limit` longest of `labels`, each once, longest first: the strings worth measuring.\n *\n * A chart sizes a gutter or keeps room past a bar from a hidden copy of the text that goes\n * there. Copying every label made ten thousand hidden spans for ten thousand bars, to learn\n * the width of one. The widest label is almost always among the longest few by character\n * count - a proportional font can put `1,111` under `999`, which is why this returns a few\n * and not one - so a chart renders these and reads the widest.\n *\n * @internal\n */\nexport function wrChartLongest(labels: readonly string[], limit = 3): string[] {\n const longest: string[] = [];\n for (const label of new Set(labels)) {\n if (longest.length === limit && label.length <= longest[longest.length - 1].length) continue;\n let at = longest.findIndex(kept => kept.length < label.length);\n if (at < 0) at = longest.length;\n longest.splice(at, 0, label);\n if (longest.length > limit) longest.pop();\n }\n return longest;\n}\n\n/**\n * How many categories each printed label stands for, so no two labels along an axis run\n * into each other: 1 while every label fits its own band, 2 to print every second one,\n * and so on.\n *\n * `extent` is the axis' length and `count` how many bands share it; `labelSize` is the\n * longest label along the axis, and `gap` the least room between two labels. All in the\n * same unit, px in practice. With nothing measured yet - a server render, a chart not\n * laid out - the answer is 1: every label, as the markup had before it was measured.\n *\n * @internal\n */\nexport function wrChartLabelStep(count: number, extent: number, labelSize: number, gap = 8): number {\n if (!(count > 1) || !(extent > 0) || !(labelSize > 0)) return 1;\n const band = extent / count;\n return Math.max(1, Math.min(count, Math.ceil((labelSize + gap) / band)));\n}\n","/**\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\n/**\n * Default series colours, in order: what a series, a slice or a segment with no\n * `color` of its own takes. Each is a token of the chart theme (`--wr-chart-1` to\n * `--wr-chart-8`, declared by `ngwr/charts/core`'s stylesheet), so an app retints\n * every chart by setting the tokens and a chart's markup never names a hex.\n *\n * The palette is not the status intents: a second series is not a success and a\n * fourth is not a danger. The first is the brand colour and the last the neutral\n * role; neighbours alternate between a deep and a mid tone, so two series next to\n * each other differ in lightness as well as in hue. The stylesheet carries the\n * measured contrast of each.\n *\n * A chart that draws lines still pairs each with a dash (`WR_CHART_DASHES`), and\n * one that draws points with a shape (`WR_CHART_MARKERS`): colour is never the\n * only thing that tells two series apart.\n *\n * @internal\n */\nexport const WR_CHART_PALETTE: readonly string[] = [\n 'var(--wr-chart-1)',\n 'var(--wr-chart-2)',\n 'var(--wr-chart-3)',\n 'var(--wr-chart-4)',\n 'var(--wr-chart-5)',\n 'var(--wr-chart-6)',\n 'var(--wr-chart-7)',\n 'var(--wr-chart-8)',\n];\n\n/**\n * The palette colour for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartColor(index: number): string {\n return WR_CHART_PALETTE[wrap(index, WR_CHART_PALETTE.length)];\n}\n\n/**\n * The series colours every chart took before the chart theme: four status intents and\n * the neutral role. Kept for the charts that have not moved onto `--wr-chart-*` yet,\n * so each keeps its look until it does; a chart on the theme reads\n * {@link WR_CHART_PALETTE}.\n *\n * `warning` measures 1.71:1 on a white surface, under the 3:1 a graphic needs, which\n * is one of the reasons the theme's palette replaced it.\n *\n * @internal\n */\nexport const WR_CHART_LEGACY_PALETTE: readonly string[] = [\n 'var(--wr-color-primary)',\n 'var(--wr-color-success)',\n 'var(--wr-color-warning)',\n 'var(--wr-color-danger)',\n 'var(--wr-color-on-surface-muted)',\n];\n\n/**\n * The {@link WR_CHART_LEGACY_PALETTE} colour for the series at `index`, wrapping past\n * the end.\n *\n * @internal\n */\nexport function wrChartLegacyColor(index: number): string {\n return WR_CHART_LEGACY_PALETTE[wrap(index, WR_CHART_LEGACY_PALETTE.length)];\n}\n\n/**\n * A dash pattern per series, so lines are told apart by SHAPE and not only by hue.\n *\n * A reader with red-green colour blindness can see two strokes of similar lightness\n * as one grey, and a legend that pairs a coloured dot with a name does not rescue it:\n * matching the dot to the line is exactly the step that needs hue. Distinguishing\n * series by dash is the standard remedy and the only one that survives greyscale,\n * printing and a monochrome display.\n *\n * The FIRST entry is solid on purpose. A single-series chart is the common case\n * and there is nothing to tell apart in it; the patterns only appear once a second\n * series does. Each value is an SVG `stroke-dasharray`, `''` meaning none.\n *\n * @internal\n */\nexport const WR_CHART_DASHES: readonly string[] = ['', '7 4', '2 3', '10 4 2 4', '1 4', '6 3 2 3'];\n\n/**\n * The dash pattern for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartDash(index: number): string {\n return WR_CHART_DASHES[wrap(index, WR_CHART_DASHES.length)];\n}\n\n/** `index` folded into `[0, length)`, negatives included, so a bad index still picks an entry. */\nexport function wrap(index: number, length: number): number {\n const i = Number.isFinite(index) ? Math.trunc(index) : 0;\n return ((i % length) + length) % length;\n}\n","/**\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 { wrap } from './palette';\nimport type { WrChartMarkerExtent, WrChartMarkerShape } from './types';\n\n/** Half the side of a square with the area of a circle of radius 1: √π / 2. */\nconst SQUARE = Math.sqrt(Math.PI) / 2;\n\n/** Half the diagonal of that square, standing on a corner. */\nconst DIAMOND = SQUARE * Math.SQRT2;\n\n/** The side of an equilateral triangle with the area of a circle of radius 1: √(4π / √3). */\nconst TRIANGLE_SIDE = Math.sqrt((4 * Math.PI) / Math.sqrt(3));\n\n/** The distance from that triangle's centroid to a corner (two thirds of its height). */\nconst TRIANGLE_APEX = (TRIANGLE_SIDE * Math.sqrt(3)) / 3;\n\n/**\n * A plus with arms 0.35 of their length thick, half-length `L` and half-thickness\n * `0.35 L`, has an area of `8·0.35·L² − 4·0.35²·L²`; this is the `L` that makes it π.\n */\nconst CROSS_ARM = Math.sqrt(Math.PI / (8 * 0.35 - 4 * 0.35 ** 2));\nconst CROSS_THICKNESS = CROSS_ARM * 0.35;\n\n/**\n * How far each shape reaches from its centre at `r = 1`, read off the corners\n * {@link wrChartMarkerPath} draws: up, down, to either side, and to the farthest\n * corner.\n */\nconst EXTENTS: Readonly<Record<WrChartMarkerShape, WrChartMarkerExtent>> = {\n circle: { top: 1, bottom: 1, side: 1, radius: 1 },\n square: { top: SQUARE, bottom: SQUARE, side: SQUARE, radius: SQUARE * Math.SQRT2 },\n diamond: { top: DIAMOND, bottom: DIAMOND, side: DIAMOND, radius: DIAMOND },\n triangle: { top: TRIANGLE_APEX, bottom: TRIANGLE_APEX / 2, side: TRIANGLE_SIDE / 2, radius: TRIANGLE_APEX },\n 'triangle-down': { top: TRIANGLE_APEX / 2, bottom: TRIANGLE_APEX, side: TRIANGLE_SIDE / 2, radius: TRIANGLE_APEX },\n cross: { top: CROSS_ARM, bottom: CROSS_ARM, side: CROSS_ARM, radius: Math.hypot(CROSS_ARM, CROSS_THICKNESS) },\n};\n\n/** A coordinate to three decimals, without trailing zeros, so a path stays short. */\nconst n = (value: number): string => String(Math.round(value * 1000) / 1000 || 0);\n\n/** `M x y L … Z` through the given corners. */\nconst polygon = (points: readonly (readonly [number, number])[]): string =>\n `M ${points.map(([x, y]) => `${n(x)} ${n(y)}`).join(' L ')} Z`;\n\n/**\n * A marker shape per series, so points are told apart by SHAPE and not only by\n * hue — the dash list's job, for a chart that draws points rather than lines.\n *\n * The circle comes first for the reason the solid dash does: a single-series chart\n * has nothing to tell apart. The order then alternates corners and points, so two\n * neighbouring series never differ by a rotation alone (a square beside a diamond\n * is the pair a small marker blurs into one).\n *\n * @internal\n */\nexport const WR_CHART_MARKERS: readonly WrChartMarkerShape[] = [\n 'circle',\n 'square',\n 'triangle',\n 'diamond',\n 'cross',\n 'triangle-down',\n];\n\n/**\n * The marker shape for the series at `index`, wrapping past the end.\n *\n * @internal\n */\nexport function wrChartMarker(index: number): WrChartMarkerShape {\n return WR_CHART_MARKERS[wrap(index, WR_CHART_MARKERS.length)];\n}\n\n/**\n * The SVG path `d` of a marker centred on the origin, as large as a circle of\n * radius `r` — every shape has that circle's area, so a triangle reaches past it\n * and a square stays inside it, and the eye weighs them the same.\n *\n * Drawn about the origin so a chart can place it with a `transform`, or inside a\n * nested `<svg x y overflow=\"visible\">`, and size it in pixels whatever the plot's\n * own scale. A non-finite or negative `r` draws nothing rather than a path of\n * `NaN`.\n *\n * @internal\n */\nexport function wrChartMarkerPath(shape: WrChartMarkerShape, r: number): string {\n if (!Number.isFinite(r) || r <= 0) return '';\n switch (shape) {\n case 'square': {\n const h = r * SQUARE;\n return polygon([\n [-h, -h],\n [h, -h],\n [h, h],\n [-h, h],\n ]);\n }\n case 'diamond': {\n const d = r * DIAMOND;\n return polygon([\n [0, -d],\n [d, 0],\n [0, d],\n [-d, 0],\n ]);\n }\n case 'triangle':\n case 'triangle-down': {\n // Centred on the centroid, not on the box, so a triangle sits on the same\n // point a circle would.\n const flip = shape === 'triangle' ? 1 : -1;\n const apex = r * TRIANGLE_APEX;\n const half = (r * TRIANGLE_SIDE) / 2;\n return polygon([\n [0, -apex * flip],\n [half, (apex / 2) * flip],\n [-half, (apex / 2) * flip],\n ]);\n }\n case 'cross': {\n const a = r * CROSS_ARM;\n const t = r * CROSS_THICKNESS;\n return polygon([\n [-t, -a],\n [t, -a],\n [t, -t],\n [a, -t],\n [a, t],\n [t, t],\n [t, a],\n [-t, a],\n [-t, t],\n [-a, t],\n [-a, -t],\n [-t, -t],\n ]);\n }\n case 'circle':\n default:\n // Two arcs, since one arc from a point back to itself draws nothing.\n return `M ${n(-r)} 0 A ${n(r)} ${n(r)} 0 1 0 ${n(r)} 0 A ${n(r)} ${n(r)} 0 1 0 ${n(-r)} 0 Z`;\n }\n}\n\n/**\n * How far the marker {@link wrChartMarkerPath} draws at `r` reaches from its centre,\n * in px, before any stroke: up, down, to either side, and to its farthest corner.\n *\n * Every shape has the circle's AREA, so `r` is not how far a marker reaches: a\n * triangle's point stands 1.56 r above its centroid, a diamond's tips 1.25 r out\n * and a cross's corners 1.24 r, while a square's sides sit 0.89 r in. A box, a hit\n * area or a margin sized by `r` alone cuts the tips off. A non-finite or negative\n * `r` reaches nowhere, as it draws nothing.\n *\n * @internal\n */\nexport function wrChartMarkerExtent(shape: WrChartMarkerShape, r: number): WrChartMarkerExtent {\n const size = Number.isFinite(r) && r > 0 ? r : 0;\n const unit = EXTENTS[shape] ?? EXTENTS.circle;\n return { top: unit.top * size, bottom: unit.bottom * size, side: unit.side * size, radius: unit.radius * size };\n}\n","/**\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 { LOCALE_ID, type Signal, inject } from '@angular/core';\n\nimport { wrClamp } from 'ngwr/utils';\n\nimport type { WrChartNumbers } from './types';\n\n/**\n * The fewest fraction digits that write `value` exactly, up to six: the precision of a\n * step no power of ten divides, such as the third a flat range is centred with.\n */\nfunction fractionDigits(value: number): number {\n for (let d = 0; d <= 6; d++) if (Math.abs(value * 10 ** d - Math.round(value * 10 ** d)) < 1e-9) return d;\n return 6;\n}\n\n/** The power of ten of `value`'s leading digit: 2 for 750, -2 for 0.025. */\nfunction magnitude(value: number): number {\n const abs = Math.abs(value);\n let m = Math.floor(Math.log10(abs));\n // `log10` is a float: guard the exact powers of ten from landing one off.\n if (10 ** (m + 1) <= abs) m++;\n if (10 ** m > abs) m--;\n return m;\n}\n\n/**\n * The power of ten of `step`'s LAST significant digit: 1 for 250, -1 for 2.5. Every tick\n * is a whole multiple of the step, so no tick has a digit below it, and a tick written to\n * that digit is written exactly.\n */\nfunction lastDigit(step: number): number {\n for (let e = magnitude(step); e > -21; e--) {\n const scaled = step / 10 ** e;\n if (Math.abs(scaled - Math.round(scaled)) < 1e-6) return e;\n }\n return -21;\n}\n\n/** Every formatter the charts have asked for, by locale and options. */\nconst FORMATTERS = new Map<string, Intl.NumberFormat>();\n\n/**\n * The `Intl.NumberFormat` for `locale` and `options`, built once for the page and shared\n * by every chart on it.\n *\n * Building one costs about a tenth of a millisecond, and the charts built them freely:\n * three per chart instance, and one per tick on every pass over an axis, so a table of a\n * hundred sparklines paid for three hundred identical formatters. A formatter holds no\n * state, so one per distinct key serves them all. The key is the locale and the options\n * in the order given; the charts ask with a handful of shapes, so the map stays small.\n *\n * @internal\n */\nexport function wrChartNumberFormat(locale: string, options?: Intl.NumberFormatOptions): Intl.NumberFormat {\n const key = options ? `${locale}|${JSON.stringify(options)}` : locale;\n let format = FORMATTERS.get(key);\n if (!format) {\n format = new Intl.NumberFormat(locale, options);\n FORMATTERS.set(key, format);\n }\n return format;\n}\n\n/**\n * The number writers of one chart: its axis ticks, the labels it prints in tight\n * spaces, and the figures of its tooltip and its accessible names — every one\n * through the chart's `valueFormat` when it has one, else through `Intl` in\n * `locale`.\n *\n * Seven charts kept their own copy of the `Intl` half until 15.1, each with the\n * same two formatters and the same `formatValue`, and the line chart a second,\n * axis-wide copy for its ticks. The rules are theirs, unchanged:\n *\n * - `value` is never compact, and is `Intl`'s default otherwise: up to three\n * fraction digits, and below one three SIGNIFICANT digits, since three fraction\n * digits write a reading of 0.0004 as `0`. It is not the exact figure: 1.08345\n * is `1.083`, and an axis stepping by 0.00025 is finer than it. A chart that has\n * to write a figure to a known precision asks `exact`.\n * - `label` is compact from a thousand up, where a bar is too narrow for\n * `1,234,567`, and below a thousand it is `value`: compact rounding would print\n * 12.5 as `13`, and there is nothing to abbreviate.\n * - `ticks` is decided for the AXIS. Compact, through `Intl` (`1.2K`, `3.4M`,\n * `4 Mio.`, `5 тыс.`), with each tick to exactly the significant digits the step\n * needs — a fixed count printed 1250 beside 1000 as `1.3k` and `1k` on an axis\n * stepping by 250. And when abbreviating would make the labels LONGER (a fine\n * step on large numbers, where `-1.025K` is wider than `-1,025`) the whole axis\n * is written in full instead, so no axis mixes `-1K` with `-1,025`. Written in\n * full, a tick has as many fraction digits as the step's last digit needs, however\n * fine: they stopped at six, so an axis stepping by 2.5e-7 printed `0.000013` twice.\n * - `exact` writes a figure to a precision the chart decides — the step of its axis,\n * a price's tick size — never compact, through `valueFormat` when there is one.\n *\n * `valueFormat` takes whatever extra arguments the chart passes it, so a chart can\n * tell its formatter which axis a number is for while a `(value) => string`\n * written for another chart still fits. Call in an injection context: `locale`\n * defaults to `LOCALE_ID`.\n *\n * @internal\n */\nexport function useChartNumbers<A extends readonly unknown[] = []>(\n valueFormat: Signal<((value: number, ...args: A) => string) | null | undefined>,\n locale: string = inject(LOCALE_ID)\n): WrChartNumbers<A> {\n const numbers = wrChartNumberFormat(locale);\n /** Below one, by significant digits, which keep 0.0004 from rounding to `0`. */\n const smallNumbers = wrChartNumberFormat(locale, { maximumSignificantDigits: 3 });\n const compactNumbers = wrChartNumberFormat(locale, { notation: 'compact' });\n\n const value = (v: number, ...args: A): string => {\n const custom = valueFormat();\n if (custom) return custom(v, ...args);\n return (v !== 0 && Math.abs(v) < 1 ? smallNumbers : numbers).format(v);\n };\n\n const label = (v: number, ...args: A): string => {\n if (valueFormat() || Math.abs(v) < 1000) return value(v, ...args);\n return compactNumbers.format(v);\n };\n\n const ticks = (values: readonly number[], step: number, ...args: A): string[] => {\n const custom = valueFormat();\n if (custom) return values.map(v => custom(v, ...args));\n if (values.length === 0) return [];\n\n const last = lastDigit(step);\n // A CEILING rather than a fixed count, so trailing zeros are dropped: a 0.25 step\n // wants two digits on 0.25 and none on 1, and `1.00` beside `0.25` reads as\n // spurious precision. Down to the step's last digit, however fine — the six digits\n // `fractionDigits` stops at printed a 2.5e-7 step as `0.000013` twice, and called\n // a step below 1e-9 whole. A step with no last digit (a third) keeps those six.\n const digits = last <= -21 ? fractionDigits(step) : wrClamp(-last, 0, 20);\n const full = wrChartNumberFormat(locale, { maximumFractionDigits: digits });\n const plain = values.map(v => full.format(v));\n const compact = values.map(v =>\n v === 0\n ? full.format(0)\n : wrChartNumberFormat(locale, {\n notation: 'compact',\n maximumSignificantDigits: wrClamp(magnitude(v) - last + 1, 1, 21),\n }).format(v)\n );\n const longest = (labels: readonly string[]): number => Math.max(...labels.map(text => text.length));\n return longest(compact) <= longest(plain) ? compact : plain;\n };\n\n const exact = (v: number, fractionDigits: number, ...args: A): string => {\n const custom = valueFormat();\n if (custom) return custom(v, ...args);\n const digits = Number.isFinite(fractionDigits) ? wrClamp(Math.round(fractionDigits), 0, 20) : 3;\n return wrChartNumberFormat(locale, { maximumFractionDigits: digits }).format(v);\n };\n\n return { value, label, ticks, exact };\n}\n","/**\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\n/**\n * `value` rounded to `digits` decimals for an inline style or an SVG attribute, with\n * `-0` folded to `0`: a share of an axis, a percentage, a coordinate.\n *\n * Eleven charts each kept a copy of this under another name (`short`, `percent`,\n * `fixed`), at three precisions. A written geometry value wants few digits - every one\n * past the fourth is bytes in the DOM and a different string for the same pixel - and\n * never `-0`, which `Math.round` produces for a small negative and which prints as `-0`.\n *\n * Not `wrRound` from `ngwr/utils`, which nudges by `Number.EPSILON` to round a decimal\n * tie the way a person expects and keeps the sign of a zero.\n *\n * @internal\n */\nexport function wrChartRound(value: number, digits = 4): number {\n const factor = 10 ** digits;\n return Math.round(value * factor) / factor || 0;\n}\n"],"mappings":";;;;;;;;;;AAYA,MAAM,aAAa;AAGnB,MAAM,QAAqB;CAAE,KAAK;CAAG,KAAK;CAAG,MAAM;CAAM,OAAO;EAAC;EAAG;EAAM;EAAK;EAAM;CAAC;AAAC;AAGvF,MAAM,SAAS;CAAC;CAAG;CAAK;CAAM;AAAG;AAejC,SAAS,WAAW,MAAY;CAC9B,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,GAAG,KAAK,KAAK,CAAC,KAAK,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC;AACnE;AAcA,SAAS,YAAY,OAAa;CAChC,MAAM,YAAY,KAAK,IAAI,KAAK;CAChC,IAAI,OAAO,cAAc,IAAI,IAAI,YAAY;CAC7C,IAAI,YAAY,GAAG;EACjB,MAAM,MAAM,KAAK,KAAK,KAAK,MAAM,YAAY,CAAC,CAAC;EAC/C,QAAQ,KAAK,IAAI,WAAW,KAAK,WAAW,MAAM,IAAI,YACpD,KAAK,MAAM,QAAQ,QAAQ;GACzB,MAAM,YAAY,OAAO,MAAM;GAC/B,IAAI,YAAY,YAAY,GAAG;GAC/B,MAAM,QAAQ,QAAQ;GACtB,IAAI,KAAK,IAAI,QAAQ,KAAK,MAAM,KAAK,CAAC,IAAI,MAAM;IAC9C,OAAO;IACP,MAAM;GACR;EACF;CAEJ;CACA,MAAM,SAAS,WAAW,IAAI;CAC9B,OAAO;EACL,KAAK,QAAQ;EACb,KAAK,QAAQ;EACb;EACA,OAAO;GAAC,QAAQ,QAAQ,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AAW;EAC1B,IAAI,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAI;EAEpC,OAAO,oBAAoB,QAAQ,EAAE,uBADtB,OAAO,SAAS,cAAc,IAAI,QAAQ,KAAK,MAAM,cAAc,GAAG,GAAG,EAAE,IAAI,EAC5B,CAAE,CAAC,CAAC,OAAO,CAAC;CAChF;CAEA,OAAO;EAAE;EAAO;EAAO;EAAO;CAAK;AACrC;;;;;;;AC3IA,SAAgB,aAAa,OAAe,SAAS,GAAC;CACpD,MAAM,SAAS,MAAM;CACrB,OAAO,KAAK,MAAM,QAAQ,MAAM,IAAI,UAAU;AAChD"}
@@ -267,7 +267,7 @@ var WrDonutChart = class WrDonutChart {
267
267
  }
268
268
  static ɵfac = i0.ɵɵngDeclareFactory({
269
269
  minVersion: "12.0.0",
270
- version: "22.2.6",
270
+ version: "22.3.0",
271
271
  ngImport: i0,
272
272
  type: WrDonutChart,
273
273
  deps: [],
@@ -275,7 +275,7 @@ var WrDonutChart = class WrDonutChart {
275
275
  });
276
276
  static ɵcmp = i0.ɵɵngDeclareComponent({
277
277
  minVersion: "17.0.0",
278
- version: "22.2.6",
278
+ version: "22.3.0",
279
279
  type: WrDonutChart,
280
280
  isStandalone: true,
281
281
  selector: "wr-donut-chart",
@@ -473,7 +473,7 @@ var WrDonutChart = class WrDonutChart {
473
473
  };
474
474
  i0.ɵɵngDeclareClassMetadata({
475
475
  minVersion: "12.0.0",
476
- version: "22.2.6",
476
+ version: "22.3.0",
477
477
  ngImport: i0,
478
478
  type: WrDonutChart,
479
479
  decorators: [{
@@ -217,7 +217,7 @@ var WrFunnelChart = class WrFunnelChart {
217
217
  }
218
218
  static ɵfac = i0.ɵɵngDeclareFactory({
219
219
  minVersion: "12.0.0",
220
- version: "22.2.6",
220
+ version: "22.3.0",
221
221
  ngImport: i0,
222
222
  type: WrFunnelChart,
223
223
  deps: [],
@@ -225,7 +225,7 @@ var WrFunnelChart = class WrFunnelChart {
225
225
  });
226
226
  static ɵcmp = i0.ɵɵngDeclareComponent({
227
227
  minVersion: "17.0.0",
228
- version: "22.2.6",
228
+ version: "22.3.0",
229
229
  type: WrFunnelChart,
230
230
  isStandalone: true,
231
231
  selector: "wr-funnel-chart",
@@ -368,7 +368,7 @@ var WrFunnelChart = class WrFunnelChart {
368
368
  };
369
369
  i0.ɵɵngDeclareClassMetadata({
370
370
  minVersion: "12.0.0",
371
- version: "22.2.6",
371
+ version: "22.3.0",
372
372
  ngImport: i0,
373
373
  type: WrFunnelChart,
374
374
  decorators: [{