ngwr 16.4.0 → 16.6.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 (427) hide show
  1. package/back-top/styles/_index.scss +6 -0
  2. package/breadcrumbs/styles/_rules.scss +34 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/charts/bar-chart/styles/_index.scss +494 -305
  5. package/charts/boxplot-chart/styles/_index.scss +114 -48
  6. package/charts/bullet-chart/styles/_index.scss +113 -42
  7. package/charts/calendar-heatmap/styles/_index.scss +111 -20
  8. package/charts/candlestick-chart/styles/_index.scss +61 -26
  9. package/charts/chart-legend/styles/_index.scss +120 -10
  10. package/charts/core/styles/_index.scss +201 -5
  11. package/charts/donut-chart/styles/_index.scss +76 -21
  12. package/charts/funnel-chart/styles/_index.scss +66 -38
  13. package/charts/gauge/styles/_index.scss +12 -1
  14. package/charts/heatmap-chart/styles/_index.scss +90 -53
  15. package/charts/line-chart/styles/_index.scss +143 -139
  16. package/charts/meter-group/styles/_index.scss +87 -25
  17. package/charts/radar-chart/styles/_index.scss +82 -40
  18. package/charts/scatter-chart/styles/_index.scss +117 -44
  19. package/charts/sparkline/styles/_index.scss +7 -1
  20. package/charts/treemap-chart/styles/_index.scss +94 -42
  21. package/charts/waterfall-chart/styles/_index.scss +150 -87
  22. package/color-picker/styles/_index.scss +7 -3
  23. package/copy-value/styles/_index.scss +21 -2
  24. package/counter/styles/_index.scss +1 -8
  25. package/date-picker/styles/_index.scss +15 -9
  26. package/date-stamp/styles/_index.scss +2 -1
  27. package/dialog/styles/_index.scss +43 -0
  28. package/drawer/styles/_index.scss +5 -1
  29. package/editor/styles/_index.scss +1 -8
  30. package/event-calendar/styles/_index.scss +2 -6
  31. package/fesm2022/ngwr-affix.mjs +1 -1
  32. package/fesm2022/ngwr-affix.mjs.map +1 -1
  33. package/fesm2022/ngwr-anchor.mjs +9 -2
  34. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  36. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  38. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  40. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  42. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  44. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  46. package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
  48. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  50. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  52. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  54. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  56. package/fesm2022/ngwr-animations-tilt.mjs +20 -13
  57. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  58. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  59. package/fesm2022/ngwr-breadcrumbs.mjs +40 -7
  60. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  61. package/fesm2022/ngwr-button.mjs +12 -3
  62. package/fesm2022/ngwr-button.mjs.map +1 -1
  63. package/fesm2022/ngwr-carousel-testing.mjs +4 -1
  64. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  65. package/fesm2022/ngwr-carousel.mjs +27 -2
  66. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  67. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
  68. package/fesm2022/ngwr-cascader.mjs +72 -8
  69. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  70. package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
  71. package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
  73. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
  75. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
  77. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
  79. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
  81. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  82. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
  83. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
  84. package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
  85. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  86. package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
  87. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-core.mjs +311 -23
  89. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  90. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  91. package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
  92. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  93. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
  94. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
  96. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  97. package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
  98. package/fesm2022/ngwr-charts-gauge.mjs +98 -12
  99. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  100. package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
  101. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  102. package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
  103. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  104. package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
  105. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  106. package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
  107. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  108. package/fesm2022/ngwr-charts-meter-group.mjs +225 -31
  109. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  110. package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
  111. package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
  112. package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
  113. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  114. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
  115. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
  116. package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
  117. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  118. package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
  119. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  120. package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
  121. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  122. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
  123. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
  124. package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
  125. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  126. package/fesm2022/ngwr-checkbox.mjs +3 -2
  127. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  128. package/fesm2022/ngwr-color-picker.mjs +65 -5
  129. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  130. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
  131. package/fesm2022/ngwr-context-menu.mjs +51 -24
  132. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  133. package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
  134. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
  135. package/fesm2022/ngwr-copy-value.mjs +38 -2
  136. package/fesm2022/ngwr-copy-value.mjs.map +1 -1
  137. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  138. package/fesm2022/ngwr-date-picker.mjs +105 -9
  139. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  140. package/fesm2022/ngwr-dialog.mjs +29 -11
  141. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  142. package/fesm2022/ngwr-directives.mjs +9 -6
  143. package/fesm2022/ngwr-directives.mjs.map +1 -1
  144. package/fesm2022/ngwr-drawer.mjs +19 -3
  145. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  146. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  147. package/fesm2022/ngwr-dropdown.mjs +35 -6
  148. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  149. package/fesm2022/ngwr-editor.mjs +1 -0
  150. package/fesm2022/ngwr-editor.mjs.map +1 -1
  151. package/fesm2022/ngwr-event-calendar.mjs +20 -9
  152. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  153. package/fesm2022/ngwr-form.mjs +170 -3
  154. package/fesm2022/ngwr-form.mjs.map +1 -1
  155. package/fesm2022/ngwr-graph.mjs +81 -13
  156. package/fesm2022/ngwr-graph.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n-ar.mjs +20 -0
  158. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  159. package/fesm2022/ngwr-i18n-cs.mjs +20 -0
  160. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  161. package/fesm2022/ngwr-i18n-de.mjs +20 -0
  162. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  163. package/fesm2022/ngwr-i18n-en.mjs +20 -0
  164. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  165. package/fesm2022/ngwr-i18n-es.mjs +20 -0
  166. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  167. package/fesm2022/ngwr-i18n-fr.mjs +20 -0
  168. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  169. package/fesm2022/ngwr-i18n-he.mjs +20 -0
  170. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  171. package/fesm2022/ngwr-i18n-hi.mjs +20 -0
  172. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  173. package/fesm2022/ngwr-i18n-id.mjs +20 -0
  174. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  175. package/fesm2022/ngwr-i18n-it.mjs +20 -0
  176. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  177. package/fesm2022/ngwr-i18n-ja.mjs +20 -0
  178. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  179. package/fesm2022/ngwr-i18n-ko.mjs +20 -0
  180. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  181. package/fesm2022/ngwr-i18n-nl.mjs +20 -0
  182. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  183. package/fesm2022/ngwr-i18n-pl.mjs +20 -0
  184. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  185. package/fesm2022/ngwr-i18n-pt.mjs +20 -0
  186. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  187. package/fesm2022/ngwr-i18n-ru.mjs +20 -0
  188. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  189. package/fesm2022/ngwr-i18n-sv.mjs +20 -0
  190. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  191. package/fesm2022/ngwr-i18n-tr.mjs +20 -0
  192. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  193. package/fesm2022/ngwr-i18n-uk.mjs +20 -0
  194. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  195. package/fesm2022/ngwr-i18n-vi.mjs +20 -0
  196. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  197. package/fesm2022/ngwr-i18n-zh-tw.mjs +20 -0
  198. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  199. package/fesm2022/ngwr-i18n-zh.mjs +20 -0
  200. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  201. package/fesm2022/ngwr-i18n.mjs +82 -11
  202. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  203. package/fesm2022/ngwr-input-number.mjs +24 -1
  204. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  205. package/fesm2022/ngwr-input-otp.mjs +2 -2
  206. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  207. package/fesm2022/ngwr-input.mjs +10 -2
  208. package/fesm2022/ngwr-input.mjs.map +1 -1
  209. package/fesm2022/ngwr-layout.mjs.map +1 -1
  210. package/fesm2022/ngwr-lightbox.mjs +20 -3
  211. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  212. package/fesm2022/ngwr-list.mjs +1 -1
  213. package/fesm2022/ngwr-list.mjs.map +1 -1
  214. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  215. package/fesm2022/ngwr-loading-bar.mjs +2 -2
  216. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  217. package/fesm2022/ngwr-mention.mjs +8 -0
  218. package/fesm2022/ngwr-mention.mjs.map +1 -1
  219. package/fesm2022/ngwr-meta.mjs +9 -6
  220. package/fesm2022/ngwr-meta.mjs.map +1 -1
  221. package/fesm2022/ngwr-overlay.mjs +21 -2
  222. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  223. package/fesm2022/ngwr-page-header.mjs +21 -0
  224. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  225. package/fesm2022/ngwr-pagination.mjs +2 -0
  226. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  227. package/fesm2022/ngwr-pipes.mjs +8 -1
  228. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  229. package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
  230. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  231. package/fesm2022/ngwr-popconfirm.mjs +43 -6
  232. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  233. package/fesm2022/ngwr-popover.mjs +114 -15
  234. package/fesm2022/ngwr-popover.mjs.map +1 -1
  235. package/fesm2022/ngwr-qr.mjs +6 -2
  236. package/fesm2022/ngwr-qr.mjs.map +1 -1
  237. package/fesm2022/ngwr-radio.mjs +71 -5
  238. package/fesm2022/ngwr-radio.mjs.map +1 -1
  239. package/fesm2022/ngwr-schema-form.mjs +12 -1
  240. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  241. package/fesm2022/ngwr-scroll.mjs +1 -3
  242. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  243. package/fesm2022/ngwr-segmented.mjs +20 -0
  244. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  245. package/fesm2022/ngwr-select.mjs +80 -9
  246. package/fesm2022/ngwr-select.mjs.map +1 -1
  247. package/fesm2022/ngwr-sortable-list.mjs +16 -4
  248. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  249. package/fesm2022/ngwr-storage.mjs +1 -1
  250. package/fesm2022/ngwr-storage.mjs.map +1 -1
  251. package/fesm2022/ngwr-switch.mjs +2 -2
  252. package/fesm2022/ngwr-switch.mjs.map +1 -1
  253. package/fesm2022/ngwr-table.mjs +43 -7
  254. package/fesm2022/ngwr-table.mjs.map +1 -1
  255. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  256. package/fesm2022/ngwr-textarea.mjs +2 -2
  257. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  258. package/fesm2022/ngwr-toast.mjs +28 -0
  259. package/fesm2022/ngwr-toast.mjs.map +1 -1
  260. package/fesm2022/ngwr-tour.mjs +16 -11
  261. package/fesm2022/ngwr-tour.mjs.map +1 -1
  262. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  263. package/fesm2022/ngwr-tree.mjs +49 -16
  264. package/fesm2022/ngwr-tree.mjs.map +1 -1
  265. package/fesm2022/ngwr-typography.mjs +20 -0
  266. package/fesm2022/ngwr-typography.mjs.map +1 -1
  267. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  268. package/fesm2022/ngwr-utils.mjs +46 -4
  269. package/fesm2022/ngwr-utils.mjs.map +1 -1
  270. package/fesm2022/ngwr-validators.mjs +33 -1
  271. package/fesm2022/ngwr-validators.mjs.map +1 -1
  272. package/fesm2022/ngwr-version.mjs +1 -1
  273. package/fesm2022/ngwr-version.mjs.map +1 -1
  274. package/fesm2022/ngwr-window.mjs +16 -9
  275. package/fesm2022/ngwr-window.mjs.map +1 -1
  276. package/form/styles/_index.scss +37 -0
  277. package/graph/styles/_index.scss +1 -9
  278. package/i18n/ar.json +20 -0
  279. package/i18n/cs.json +20 -0
  280. package/i18n/de.json +20 -0
  281. package/i18n/en.json +20 -0
  282. package/i18n/es.json +20 -0
  283. package/i18n/fr.json +20 -0
  284. package/i18n/he.json +20 -0
  285. package/i18n/hi.json +20 -0
  286. package/i18n/id.json +20 -0
  287. package/i18n/it.json +20 -0
  288. package/i18n/ja.json +20 -0
  289. package/i18n/ko.json +20 -0
  290. package/i18n/nl.json +20 -0
  291. package/i18n/pl.json +20 -0
  292. package/i18n/pt.json +20 -0
  293. package/i18n/ru.json +20 -0
  294. package/i18n/sv.json +20 -0
  295. package/i18n/tr.json +20 -0
  296. package/i18n/uk.json +20 -0
  297. package/i18n/vi.json +20 -0
  298. package/i18n/zh-TW.json +20 -0
  299. package/i18n/zh.json +20 -0
  300. package/image-cropper/styles/_index.scss +1 -9
  301. package/input-number/styles/_index.scss +7 -0
  302. package/layout/styles/_index.scss +13 -1
  303. package/llms-full.txt +17 -17
  304. package/llms.txt +7 -3
  305. package/loading-bar/styles/_rules.scss +6 -0
  306. package/package.json +2 -2
  307. package/page-header/styles/_index.scss +18 -0
  308. package/popconfirm/styles/_index.scss +6 -0
  309. package/popover/styles/_index.scss +31 -13
  310. package/schematics/use/symbol-map.json +3 -0
  311. package/segmented/styles/_index.scss +7 -0
  312. package/select/styles/_index.scss +7 -0
  313. package/sidebar/styles/_index.scss +6 -0
  314. package/skills/ngwr/references/catalog.md +2 -2
  315. package/sortable-list/styles/_rules.scss +1 -9
  316. package/speed-dial/styles/_index.scss +6 -0
  317. package/stepper/styles/_index.scss +1 -9
  318. package/table/styles/_index.scss +49 -0
  319. package/theme/_index.scss +12 -1
  320. package/theme/styles/_colors.scss +11 -0
  321. package/theme/styles/_contrast.scss +6 -0
  322. package/theme/styles/_index.scss +1 -0
  323. package/theme/styles/_mixins.scss +45 -0
  324. package/theme/styles/_print.scss +17 -0
  325. package/toast/styles/_index.scss +7 -0
  326. package/tour/styles/_index.scss +14 -0
  327. package/tree/styles/_index.scss +1 -9
  328. package/types/ngwr-anchor.d.ts +3 -0
  329. package/types/ngwr-animations-aurora.d.ts +6 -0
  330. package/types/ngwr-animations-blur-reveal.d.ts +6 -0
  331. package/types/ngwr-animations-click-sparks.d.ts +6 -0
  332. package/types/ngwr-animations-confetti.d.ts +6 -0
  333. package/types/ngwr-animations-decode.d.ts +6 -0
  334. package/types/ngwr-animations-destruct.d.ts +6 -0
  335. package/types/ngwr-animations-dot-grid.d.ts +6 -0
  336. package/types/ngwr-animations-falling-letters.d.ts +6 -0
  337. package/types/ngwr-animations-flow-lines.d.ts +6 -0
  338. package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
  339. package/types/ngwr-animations-glitch.d.ts +6 -0
  340. package/types/ngwr-animations-glow-border.d.ts +6 -0
  341. package/types/ngwr-animations-gradient-flow.d.ts +6 -0
  342. package/types/ngwr-animations-marquee.d.ts +6 -0
  343. package/types/ngwr-animations-orbit.d.ts +6 -0
  344. package/types/ngwr-animations-reveal.d.ts +6 -0
  345. package/types/ngwr-animations-ripple-grid.d.ts +6 -0
  346. package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
  347. package/types/ngwr-animations-shimmer.d.ts +6 -0
  348. package/types/ngwr-animations-spotlight.d.ts +6 -0
  349. package/types/ngwr-animations-thread-lines.d.ts +6 -0
  350. package/types/ngwr-animations-tilt.d.ts +10 -0
  351. package/types/ngwr-animations-typewriter.d.ts +6 -0
  352. package/types/ngwr-breadcrumbs.d.ts +25 -0
  353. package/types/ngwr-button.d.ts +23 -3
  354. package/types/ngwr-carousel-testing.d.ts +6 -4
  355. package/types/ngwr-carousel.d.ts +16 -3
  356. package/types/ngwr-cascader-testing.d.ts +4 -3
  357. package/types/ngwr-cascader.d.ts +34 -3
  358. package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
  359. package/types/ngwr-charts-bar-chart.d.ts +220 -48
  360. package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
  361. package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
  362. package/types/ngwr-charts-bullet-chart.d.ts +72 -12
  363. package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
  364. package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
  365. package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
  366. package/types/ngwr-charts-chart-legend.d.ts +142 -5
  367. package/types/ngwr-charts-core.d.ts +275 -21
  368. package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
  369. package/types/ngwr-charts-donut-chart.d.ts +124 -16
  370. package/types/ngwr-charts-funnel-chart.d.ts +62 -6
  371. package/types/ngwr-charts-gauge-testing.d.ts +5 -1
  372. package/types/ngwr-charts-gauge.d.ts +72 -10
  373. package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
  374. package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
  375. package/types/ngwr-charts-line-chart.d.ts +215 -86
  376. package/types/ngwr-charts-meter-group.d.ts +98 -7
  377. package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
  378. package/types/ngwr-charts-radar-chart.d.ts +148 -28
  379. package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
  380. package/types/ngwr-charts-scatter-chart.d.ts +188 -18
  381. package/types/ngwr-charts-sparkline.d.ts +26 -4
  382. package/types/ngwr-charts-treemap-chart.d.ts +121 -23
  383. package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
  384. package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
  385. package/types/ngwr-checkbox.d.ts +1 -0
  386. package/types/ngwr-color-picker.d.ts +28 -0
  387. package/types/ngwr-context-menu-testing.d.ts +10 -9
  388. package/types/ngwr-context-menu.d.ts +18 -1
  389. package/types/ngwr-copy-value.d.ts +8 -0
  390. package/types/ngwr-date-picker.d.ts +53 -2
  391. package/types/ngwr-dialog.d.ts +64 -13
  392. package/types/ngwr-directives.d.ts +12 -4
  393. package/types/ngwr-drawer.d.ts +33 -2
  394. package/types/ngwr-dropdown-testing.d.ts +8 -5
  395. package/types/ngwr-dropdown.d.ts +29 -6
  396. package/types/ngwr-event-calendar.d.ts +4 -0
  397. package/types/ngwr-form.d.ts +85 -1
  398. package/types/ngwr-graph.d.ts +22 -6
  399. package/types/ngwr-i18n.d.ts +65 -5
  400. package/types/ngwr-input-number.d.ts +8 -0
  401. package/types/ngwr-input.d.ts +7 -0
  402. package/types/ngwr-layout.d.ts +1 -1
  403. package/types/ngwr-lightbox.d.ts +15 -0
  404. package/types/ngwr-loading-bar-router.d.ts +6 -0
  405. package/types/ngwr-overlay.d.ts +16 -1
  406. package/types/ngwr-page-header.d.ts +23 -1
  407. package/types/ngwr-popconfirm-testing.d.ts +11 -2
  408. package/types/ngwr-popconfirm.d.ts +29 -2
  409. package/types/ngwr-popover.d.ts +87 -13
  410. package/types/ngwr-radio.d.ts +47 -5
  411. package/types/ngwr-segmented.d.ts +7 -0
  412. package/types/ngwr-select.d.ts +57 -13
  413. package/types/ngwr-sortable-list.d.ts +20 -7
  414. package/types/ngwr-table.d.ts +59 -6
  415. package/types/ngwr-tabs-router.d.ts +6 -0
  416. package/types/ngwr-toast.d.ts +11 -0
  417. package/types/ngwr-tour.d.ts +21 -3
  418. package/types/ngwr-tree-testing.d.ts +1 -2
  419. package/types/ngwr-tree.d.ts +33 -2
  420. package/types/ngwr-typography.d.ts +7 -0
  421. package/types/ngwr-utils-router.d.ts +6 -0
  422. package/types/ngwr-utils.d.ts +56 -2
  423. package/types/ngwr-validators.d.ts +49 -1
  424. package/types/ngwr-version.d.ts +1 -1
  425. package/types/ngwr-window.d.ts +14 -11
  426. package/typography/styles/_index.scss +4 -0
  427. package/window/styles/_index.scss +6 -19
@@ -4,13 +4,15 @@
4
4
  // Styles for the entry points this component's own markup renders. With `series` the
5
5
  // legend is a `ul[wr-chart-legend]`, so `@use 'ngwr/charts/bar-chart'` alone draws it styled.
6
6
  @use '../../chart-legend/styles' as chart-legend-styles; // WrChartLegend
7
- // With `dataTable`, the figures render as a `<wr-chart-table>` beside the plot, which
8
- // its own sheet clips out of sight.
9
- @use '../../core/styles' as core-styles; // WrChartTable
7
+ // The chart theme every hook below defaults to (`--wr-chart-*`), the hover-dim rule, the
8
+ // empty / loading / error message, and the `<wr-chart-table>` that `dataTable` renders
9
+ // beside the plot, which its own rule clips out of sight.
10
+ @use '../../core/styles' as core-styles; // WrChartTable, WrChartState
10
11
  @include theme.loaded('charts/bar-chart');
11
12
 
12
- // The gap between two categories standing up: the plot's gap, but never more than a
13
- // quarter of the track shared out among the gaps. A fixed gap took the whole track once
13
+ // The gap between two categories standing up: the plot's gap - by default a share of one
14
+ // band, `--wr-chart-gap` - but never more than a quarter of the track shared out among
15
+ // the gaps. A fixed gap took the whole track once
14
16
  // there were enough categories — measured in Chromium, forty on a phone left every bar
15
17
  // 0.77px wide and a hundred left none at all, with nothing to say so. The component writes
16
18
  // how many categories there are; below about one per 32px of track the hook's own gap is
@@ -49,17 +51,60 @@ $point-ring: 2px;
49
51
  // card would cut it. Geometry, like the inset above, so a Sass value rather than a hook.
50
52
  $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
51
53
 
54
+ // A bar's place along the value axis, as a share of the SIDE it is drawn in: 0 with
55
+ // nothing to show and 1 reaching the end of the axis. The component writes where the bar
56
+ // starts and how much of the whole axis it covers, and the track where zero is; a side
57
+ // runs from zero to one end of the axis, so the share of it is worked out here.
58
+ $fill-up: '(var(--wr-bar-chart-start, 0) + var(--wr-bar-chart-size, 0) - var(--wr-bar-chart-zero, 0)) / max(1 - var(--wr-bar-chart-zero, 0), 0.0001)';
59
+ $fill-down: '(var(--wr-bar-chart-zero, 0) - var(--wr-bar-chart-start, 0)) / max(var(--wr-bar-chart-zero, 0), 0.0001)';
60
+
61
+ // What every bar shares, `data`'s and `series`': as large as its side, and moved along
62
+ // the value axis by a TRANSFORM, so that a new value is a compositor animation rather
63
+ // than a layout pass per frame per bar, which a `height` transition was. The side clips
64
+ // what is past zero. Nothing is scaled, so the rounded end keeps its shape while it moves.
65
+ @mixin bar {
66
+ position: absolute;
67
+ inset: 0;
68
+ border-start-start-radius: var(--wr-bar-chart-bar-radius);
69
+ border-start-end-radius: var(--wr-bar-chart-bar-radius);
70
+ transform: translateY(calc((1 - #{$fill-up}) * 100%));
71
+ // `opacity` is the shared hover-dim, which a `transition` of this element's own would
72
+ // otherwise switch off.
73
+ transition:
74
+ transform var(--wr-bar-chart-duration) var(--wr-chart-ease),
75
+ opacity var(--wr-chart-duration-short) var(--wr-chart-ease);
76
+ // The bar is an inline `background`, which forced colors resets to `Canvas`: every
77
+ // bar vanished into the page. The SVG charts keep their fills there, so the HTML
78
+ // marks do too.
79
+ forced-color-adjust: none;
80
+ }
81
+
52
82
  .wr-bar-chart {
53
83
  --wr-bar-chart-font-family: var(--wr-font-family-base);
54
84
  --wr-bar-chart-text-color: var(--wr-color-on-surface);
55
85
  // The gap between two categories, which the label row under the bars keeps too, so each
56
- // name stays under its bar. Declared here rather than on the plot, so one override on
57
- // the chart moves both rows.
58
- --wr-bar-chart-plot-gap: var(--wr-space-sm);
86
+ // name stays under its bar. A share of one band standing up, so the bars keep their
87
+ // proportion at any width and any count; lying down it is a length (see below).
88
+ // Declared here rather than on the plot, so one override on the chart moves both rows.
89
+ --wr-bar-chart-plot-gap: calc(var(--wr-chart-gap) / var(--wr-bar-chart-categories, 1));
90
+ // The widest a bar is drawn: past it the bar stays this wide in the middle of its band,
91
+ // so three bars on a wide page are not three slabs.
92
+ --wr-bar-chart-bar-max-size: 3rem;
59
93
  // Beside `lines`: the ring round each point and the halo behind each printed value, so a
60
94
  // point reads on the bar under it and a number stays readable where a line crosses it.
61
95
  // The surface the chart sits on, by default.
62
- --wr-bar-chart-halo: var(--wr-color-surface);
96
+ --wr-bar-chart-halo: var(--wr-chart-separator);
97
+ // The 1px line between two segments of a pile.
98
+ --wr-bar-chart-separator: var(--wr-chart-separator);
99
+ --wr-bar-chart-grid-color: var(--wr-chart-grid);
100
+ // The band behind the category under the pointer.
101
+ --wr-bar-chart-band: var(--wr-chart-band);
102
+ // The value axis' scale: its numbers, and their room from the plot.
103
+ --wr-bar-chart-tick-font-size: var(--wr-chart-label-size);
104
+ --wr-bar-chart-tick-color: var(--wr-chart-label);
105
+ --wr-bar-chart-axis-gap: var(--wr-space-sm);
106
+ // How long a bar takes to reach a new value. 0s under reduced motion, with the token.
107
+ --wr-bar-chart-duration: var(--wr-chart-duration);
63
108
 
64
109
  display: block;
65
110
  // The containing block of the out-of-flow `dataTable` copy, as on the line chart: a
@@ -69,8 +114,25 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
69
114
  font-family: var(--wr-bar-chart-font-family);
70
115
  color: var(--wr-bar-chart-text-color);
71
116
 
117
+ // Everything but the legend. Two columns, the value axis' gutter and the rest: the plot
118
+ // spans both and lays its own parts out on them (a subgrid), so the label row under it
119
+ // starts where the track does, however wide the scale's numbers are.
120
+ &__body {
121
+ display: grid;
122
+ grid-template-columns: auto minmax(0, 1fr);
123
+ min-width: 0;
124
+ }
125
+
126
+ // ── The plot ──────────────────────────────────────────────────────────────────────
127
+ //
128
+ // A grid: the scale's gutter, the TRACK the bars run along, and past each end of the
129
+ // value axis a ROOM for the values printed there. Every position on the track is a
130
+ // share of the value axis from its minimum, which the component writes inline - zero
131
+ // for the baseline, where a bar starts and how much it covers, where a value or a
132
+ // gridline goes - so the stylesheet places each part from one number at any size.
72
133
  &__plot {
73
- --wr-bar-chart-plot-border: var(--wr-border-base);
134
+ // The zero line, which every bar stands on.
135
+ --wr-bar-chart-plot-border: var(--wr-chart-zero);
74
136
  // Lying down, the least each bar's row takes — a category's, or a series' lane in it:
75
137
  // one line of the small text the values and the names are set in. The rows share the
76
138
  // plot's `height`, so without a floor a long list thinned every bar to a hairline, or
@@ -78,32 +140,64 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
78
140
  // more grow the plot past `height`.
79
141
  --wr-bar-chart-row-min-size: var(--wr-text-xs-leading);
80
142
 
81
- display: flex;
82
- align-items: flex-end;
83
- gap: $plot-gap;
84
- border-bottom: 1px solid var(--wr-bar-chart-plot-border);
143
+ grid-column: 1 / -1;
144
+ display: grid;
145
+ grid-template-columns: subgrid;
146
+ // The room for the values printed above the bars, the track, the room for those
147
+ // printed below the ones under zero. A room with nothing to hold is no height at all.
148
+ grid-template-rows: auto minmax(0, 1fr) auto;
149
+ }
150
+
151
+ // The scale: a number at every tick, each centred on its gridline. The gutter is as
152
+ // wide as the longest of them, from hidden copies in flow; the numbers themselves are
153
+ // out of flow, placed by the share the component writes.
154
+ &__axis {
155
+ position: relative;
156
+ grid-column: 1;
157
+ grid-row: 2;
158
+ display: grid;
159
+ padding-inline-end: var(--wr-bar-chart-axis-gap);
160
+ }
161
+
162
+ &__tick {
163
+ position: absolute;
164
+ inset-inline-end: var(--wr-bar-chart-axis-gap);
165
+ bottom: calc(var(--wr-bar-chart-at, 0) * 100%);
166
+ transform: translateY(50%);
167
+ font-size: var(--wr-bar-chart-tick-font-size);
168
+ line-height: 1;
169
+ color: var(--wr-bar-chart-tick-color);
170
+ font-variant-numeric: tabular-nums;
171
+ white-space: nowrap;
172
+ // As a value: the minus of `-3` stays before the digits on an RTL page.
173
+ unicode-bidi: plaintext;
174
+ }
175
+
176
+ &__tick--probe {
177
+ position: static;
178
+ grid-area: 1 / 1;
179
+ block-size: 0;
180
+ overflow: hidden;
181
+ visibility: hidden;
182
+ transform: none;
85
183
  }
86
184
 
87
185
  &__column {
186
+ // How far a datum's value sits past the end of its bar, standing up.
88
187
  --wr-bar-chart-column-gap: var(--wr-space-xs);
89
188
 
189
+ position: relative;
90
190
  flex: 1 1 0;
91
- display: flex;
92
- flex-direction: column;
93
- align-items: center;
94
- justify-content: flex-end;
95
- height: 100%;
96
- gap: var(--wr-bar-chart-column-gap);
97
191
  min-width: 0;
192
+ min-height: 0;
98
193
  }
99
194
 
100
195
  &__value {
101
- --wr-bar-chart-value-font-size: var(--wr-text-xs);
196
+ --wr-bar-chart-value-font-size: var(--wr-chart-label-size);
102
197
  --wr-bar-chart-value-line-height: var(--wr-leading-none);
103
- // How far a value sits past the end of its bar where it is placed there rather than
104
- // stacked on the bar: with `series`, and in the horizontal layout.
198
+ // How far a value sits past the end of its bar.
105
199
  --wr-bar-chart-value-offset: var(--wr-space-xs);
106
- --wr-bar-chart-value-color: var(--wr-color-on-surface-muted);
200
+ --wr-bar-chart-value-color: var(--wr-chart-label);
107
201
 
108
202
  flex: none;
109
203
  // Bounded by its column and ellipsised, as the label under it is. With no bound,
@@ -124,32 +218,19 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
124
218
  unicode-bidi: plaintext;
125
219
  }
126
220
 
127
- // The component writes the bar's share of the plot as its `flex-grow`, from 0
128
- // to 1. Factors that sum to less than 1 hand out only that fraction of the free
129
- // space, so the bar gets exactly its share of what the column has left after
130
- // the value above it, and the value rides on the bar's top. It was a `height`
131
- // percentage of the WHOLE column, so the tallest bars plus their value
132
- // overflowed it and flex-shrink took the difference out of them alone:
133
- // measured in Chromium, WebKit and Firefox, 24 drew at 183px beside 12 at
134
- // 99.5px, and 22 at 182.4px — the same height as 24.
221
+ // One datum's bar. Its colour is the inline `background` the component writes.
135
222
  &__bar {
136
- --wr-bar-chart-bar-radius: var(--wr-border-radius-sm);
137
-
138
- flex: 0 0 0;
139
- width: 100%;
140
- border-radius: var(--wr-bar-chart-bar-radius) var(--wr-bar-chart-bar-radius) 0 0;
141
- transition: flex-grow var(--wr-duration-slow) var(--wr-ease-out);
142
- min-height: 1px;
143
- // The bar is an inline `background`, which forced colors resets to `Canvas`:
144
- // every bar vanished into the page and left its value floating over the
145
- // baseline. The SVG charts keep their fills there, so the HTML marks do too.
146
- forced-color-adjust: none;
223
+ --wr-bar-chart-bar-radius: var(--wr-chart-bar-radius);
224
+
225
+ @include bar;
147
226
  }
148
227
 
149
228
  &__labels {
150
229
  --wr-bar-chart-labels-gap: var(--wr-bar-chart-plot-gap);
151
230
  --wr-bar-chart-labels-margin-top: var(--wr-space-sm);
152
231
 
232
+ position: relative;
233
+ grid-column: 2;
153
234
  display: flex;
154
235
  // Held as the plot's gap is (`$plot-gap`), against the same width, so each name stays
155
236
  // under its bar however many there are.
@@ -157,45 +238,69 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
157
238
  margin-top: var(--wr-bar-chart-labels-margin-top);
158
239
  }
159
240
 
160
- &__label {
161
- --wr-bar-chart-label-font-size: var(--wr-text-xs);
241
+ &__label,
242
+ &__label-probe {
243
+ --wr-bar-chart-label-font-size: var(--wr-chart-label-size);
162
244
  // The widest a category name runs in the horizontal layout's gutter before it is
163
245
  // ellipsised; the gutter is as wide as the longest name up to this.
164
246
  --wr-bar-chart-label-max-width: 10rem;
165
- --wr-bar-chart-label-color: var(--wr-color-on-surface-muted);
247
+ --wr-bar-chart-label-color: var(--wr-chart-label);
166
248
 
167
- flex: 1 1 0;
168
- text-align: center;
169
249
  font-size: var(--wr-bar-chart-label-font-size);
170
250
  color: var(--wr-bar-chart-label-color);
171
- overflow: hidden;
172
- text-overflow: ellipsis;
173
251
  white-space: nowrap;
174
252
  // A name is the host's own text, in whatever language: it takes its direction from
175
253
  // that text, so a Latin name on an RTL page keeps a trailing `$` or `%` at its end.
176
254
  unicode-bidi: plaintext;
177
255
  }
178
256
 
257
+ &__label {
258
+ flex: 1 1 0;
259
+ min-width: 0;
260
+ text-align: center;
261
+ overflow: hidden;
262
+ text-overflow: ellipsis;
263
+ }
264
+
265
+ // Thinned: the longest name no longer fits its own band, so only every few are printed
266
+ // and each may run over the empty slots beside it, centred on its own bar. A flex box
267
+ // centres text wider than itself, where `text-align` would start it at the edge.
268
+ &__label--wide {
269
+ display: flex;
270
+ justify-content: center;
271
+ overflow: visible;
272
+ }
273
+
274
+ // Left out by the thinning, and still in its slot, so the names printed keep their bars.
275
+ &__label--skipped {
276
+ visibility: hidden;
277
+ }
278
+
279
+ // A hidden copy of one of the longest names, at its natural width: what the thinning
280
+ // measures. Out of flow, so it takes no slot.
281
+ &__label-probe {
282
+ position: absolute;
283
+ inset-block-start: 0;
284
+ inset-inline-start: 0;
285
+ visibility: hidden;
286
+ pointer-events: none;
287
+ }
288
+
289
+ // The room between the legend and the plot, on whichever side `legendPosition` puts it:
290
+ // the shared legend rule reads `--wr-chart-legend-space`, and this hook is the chart's
291
+ // own name for it, from when the legend was always above.
179
292
  &__legend {
180
293
  --wr-bar-chart-legend-margin-bottom: var(--wr-space-md);
181
-
182
- margin: 0 0 var(--wr-bar-chart-legend-margin-bottom);
294
+ --wr-chart-legend-space: var(--wr-bar-chart-legend-margin-bottom);
183
295
  }
184
296
 
185
- // ── The layout `series` and the horizontal orientation share ──────────────────────
186
- //
187
- // The plot is a grid: the TRACK the bars run along, and past each end of the value
188
- // axis a ROOM for the values printed there. Every position on the track is a share of
189
- // the value axis from its minimum, which the component writes inline — zero for the
190
- // baseline, where a bar starts and how much it covers, where a value goes — so the
191
- // stylesheet places each part from one number at any size.
192
-
193
- // A hidden copy of every value printed past one end of the axis, all in one grid cell:
194
- // the cell is as large as the largest, in the value's own font and with its own offset,
195
- // so the value past the longest bar has exactly the room it needs and no guess is made
196
- // about how wide a number is. Hidden by `visibility`, which takes it out of the
297
+ // A hidden copy of the longest values printed past one end of the axis, all in one grid
298
+ // cell: the cell is as large as the largest, in the value's own font and with its own
299
+ // offset, so the value past the longest bar has exactly the room it needs and no guess
300
+ // is made about how wide a number is. Hidden by `visibility`, which takes it out of the
197
301
  // accessibility tree too.
198
302
  &__room {
303
+ grid-column: 2;
199
304
  display: grid;
200
305
  visibility: hidden;
201
306
  pointer-events: none;
@@ -206,34 +311,70 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
206
311
  }
207
312
  }
208
313
 
314
+ &__room--max {
315
+ grid-row: 1;
316
+
317
+ > .wr-bar-chart__value {
318
+ padding-block-end: var(--wr-bar-chart-value-offset);
319
+ }
320
+ }
321
+
322
+ &__room--min {
323
+ grid-row: 3;
324
+
325
+ > .wr-bar-chart__value {
326
+ padding-block-start: var(--wr-bar-chart-value-offset);
327
+ }
328
+ }
329
+
209
330
  &__track {
210
331
  position: relative;
332
+ grid-column: 2;
333
+ grid-row: 2;
211
334
  display: flex;
212
335
  gap: $plot-gap;
213
336
  min-width: 0;
214
337
  min-height: 0;
215
338
  }
216
339
 
340
+ // The gridlines, under the bars: one at every tick of the value axis. Each is a border
341
+ // rather than a background, which forced colors would reset to the page's own colour,
342
+ // and sits on the pixel just above its tick, as the baseline does at zero, so a bar that
343
+ // reaches a line covers it.
344
+ &__grid {
345
+ position: absolute;
346
+ inset: 0;
347
+ pointer-events: none;
348
+ }
349
+
350
+ &__grid-line {
351
+ position: absolute;
352
+ inset-inline: 0;
353
+ bottom: calc(var(--wr-bar-chart-at, 0) * 100%);
354
+ height: 0;
355
+ border-bottom: 1px solid var(--wr-bar-chart-grid-color);
356
+ }
357
+
217
358
  // Zero, wherever it falls: the bottom of the plot until a value goes below it. Drawn as
218
359
  // a border rather than a background, which forced colors would reset to the page's own
219
- // colour, and just past zero, so a bar standing on it is not overlapped. The colour is
220
- // the plot's own hook.
360
+ // colour, on the pixel just above zero and under the bars, so a bar standing on it
361
+ // covers it and a 0 draws nothing. The colour is the plot's own hook.
221
362
  &__baseline {
222
363
  position: absolute;
223
364
  inset-inline: 0;
224
365
  bottom: calc(var(--wr-bar-chart-zero, 0) * 100%);
225
366
  height: 0;
226
- margin-bottom: -1px;
227
367
  border-bottom: 1px solid var(--wr-bar-chart-plot-border);
228
368
  pointer-events: none;
229
369
  }
230
370
 
231
371
  // One category of `series`: a lane per series shown, or one lane under `stacked`.
232
372
  &__category {
233
- --wr-bar-chart-category-gap: calc(var(--wr-space-xs) / 2);
373
+ --wr-bar-chart-category-gap: var(--wr-space-xs);
234
374
 
235
375
  display: flex;
236
376
  flex: 1 1 0;
377
+ justify-content: center;
237
378
  // Standing up, never more than a tenth of the category, for the reason `$plot-gap`
238
379
  // gives: grouped bars on a phone are a few pixels wide, and fixed gaps took them all.
239
380
  gap: min(var(--wr-bar-chart-category-gap), 10%);
@@ -241,77 +382,139 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
241
382
  min-height: 0;
242
383
  }
243
384
 
385
+ // The category under the pointer, banded: one bar among forty is hard to follow down
386
+ // to its name otherwise. Behind the gridlines and the bars. Set by the shared hover
387
+ // rather than `:hover`, so it stays while the pointer crosses the gap to the next one.
388
+ &__category,
389
+ &__column {
390
+ // `opacity` is the shared hover-dim, which a column takes too.
391
+ transition:
392
+ background-color var(--wr-chart-duration-short) var(--wr-chart-ease),
393
+ opacity var(--wr-chart-duration-short) var(--wr-chart-ease);
394
+
395
+ &.wr-chart-section--on {
396
+ background-color: var(--wr-bar-chart-band);
397
+ }
398
+ }
399
+
244
400
  // The strip one bar runs along, the containing block of its bars and its values.
245
401
  &__lane {
246
402
  position: relative;
247
403
  flex: 1 1 0;
404
+ max-inline-size: var(--wr-bar-chart-bar-max-size);
248
405
  min-width: 0;
249
406
  min-height: 0;
250
407
  }
251
408
 
252
- // A series' bar: a tint of the series' colour, outlined in the colour itself and the
253
- // series' dash. The tint is what lets the outline read against the body; the outline is
254
- // what tells two series apart without hue. The body takes the colour from the inline
255
- // `--wr-bar-chart-color` and the outline as an SVG stroke; both are kept under forced
256
- // colors, as every chart mark here is.
257
- &__series-bar {
258
- // How much of its series' colour a bar's body takes.
259
- --wr-bar-chart-series-tint: 35%;
260
- // The outline's width, in pixels, whatever the bar's size.
261
- --wr-bar-chart-series-edge-width: 2px;
262
-
409
+ // One side of zero in a lane: the box from zero to the top of the axis, which clips the
410
+ // bars drawn in it - each is as large as the side and moved into place, so the part of
411
+ // it past zero has to be cut off. Its own stacking context, so the order a pile is
412
+ // painted in (the component's `z-index` on each bar) stays inside it.
413
+ &__side {
263
414
  position: absolute;
415
+ inset-block: 0 calc(var(--wr-bar-chart-zero, 0) * 100%);
264
416
  inset-inline: 0;
265
- bottom: calc(var(--wr-bar-chart-start, 0) * 100%);
266
- height: calc(var(--wr-bar-chart-size, 0) * 100%);
267
- // A zero keeps a 1px floor on the baseline, as a `data` bar does.
268
- min-height: 1px;
417
+ overflow: clip;
418
+ isolation: isolate;
419
+ }
420
+
421
+ // From zero down to the bottom of the axis, for the bars that grow below it.
422
+ &__side--down {
423
+ inset-block: calc((1 - var(--wr-bar-chart-zero, 0)) * 100%) 0;
424
+ }
425
+
426
+ // A datum's column has no lane of its own, so its side keeps the bar's widest.
427
+ &__column > &__side {
428
+ inset-inline: max(0px, calc((100% - var(--wr-bar-chart-bar-max-size)) / 2));
429
+ }
430
+
431
+ // A series' bar: a solid fill in the series' colour, which the component writes inline
432
+ // as `--wr-bar-chart-color`. Kept under forced colors, as every chart mark here is.
433
+ &__series-bar {
434
+ --wr-bar-chart-bar-radius: var(--wr-chart-bar-radius);
435
+ // How much of its series' colour a bar's body takes, over the surface: all of it. A
436
+ // lower share with an edge (below) is the tinted, outlined bar the chart drew before
437
+ // the chart theme.
438
+ --wr-bar-chart-series-tint: 100%;
439
+ // An outline in the series' colour, inside the bar: none by default. Given a width, it
440
+ // is solid for the first series and dashed or dotted for the ones after it.
441
+ --wr-bar-chart-series-edge-width: 0px;
442
+
443
+ @include bar;
444
+
269
445
  background: color-mix(
270
446
  in srgb,
271
447
  var(--wr-bar-chart-color, currentColor) var(--wr-bar-chart-series-tint),
272
- transparent
448
+ var(--wr-bar-chart-halo)
273
449
  );
274
- forced-color-adjust: none;
275
- transition:
276
- bottom var(--wr-duration-slow) var(--wr-ease-out),
277
- height var(--wr-duration-slow) var(--wr-ease-out);
450
+ outline: var(--wr-bar-chart-series-edge-width) solid var(--wr-bar-chart-color, currentColor);
451
+ outline-offset: calc(-1 * var(--wr-bar-chart-series-edge-width));
452
+
453
+ &:not([data-dash='']) {
454
+ outline-style: dashed;
455
+ }
456
+
457
+ &:is([data-dash='2 3'], [data-dash='1 4']) {
458
+ outline-style: dotted;
459
+ }
278
460
  }
279
461
 
280
- // The outline covers the bar and draws its stroke centred on the bar's edge at twice the
281
- // width, so the half inside is the outline and the half outside is clipped: every dash
282
- // lies within the bar, and two bars that meet in a pile keep their own.
283
- &__edge {
284
- position: absolute;
285
- inset: 0;
286
- width: 100%;
287
- height: 100%;
288
- overflow: hidden;
289
- pointer-events: none;
290
- stroke-width: calc(var(--wr-bar-chart-series-edge-width) * 2);
462
+ // A pile: every bar is drawn from zero to its own end, the one nearest zero on top. Only
463
+ // the last, the outermost, shows its end, so only it is rounded; each of the others
464
+ // carries the 1px line that parts it from the next, just past its end.
465
+ &__side > &__series-bar:not(:last-child) {
466
+ border-radius: 0;
467
+ box-shadow: 0 -1px 0 0 var(--wr-bar-chart-separator);
468
+ }
469
+
470
+ // Below zero the bars hang from it: the end is the lower one.
471
+ &__side--down > &__bar,
472
+ &__side--down > &__series-bar {
473
+ border-radius: 0;
474
+ border-end-start-radius: var(--wr-bar-chart-bar-radius);
475
+ border-end-end-radius: var(--wr-bar-chart-bar-radius);
476
+ transform: translateY(calc((#{$fill-down} - 1) * 100%));
477
+ }
478
+
479
+ &__side--down > &__series-bar:not(:last-child) {
480
+ border-radius: 0;
481
+ box-shadow: 0 1px 0 0 var(--wr-bar-chart-separator);
291
482
  }
292
483
 
293
484
  // A value past the end of its bar: above it, or below one that grows below zero. As
294
485
  // wide as its lane and centred; standing up, left out where it does not fit (below).
295
- &__lane > &__value {
486
+ // Out of flow, placed from the share the component writes.
487
+ &__lane > &__value,
488
+ &__column > &__value {
296
489
  position: absolute;
297
490
  inset-inline: 0;
298
491
  bottom: calc(var(--wr-bar-chart-at, 0) * 100% + var(--wr-bar-chart-value-offset));
299
492
  text-align: center;
300
493
  }
301
494
 
302
- &__lane > &__value--below {
495
+ &__lane > &__value--below,
496
+ &__column > &__value--below {
303
497
  top: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-value-offset));
304
498
  bottom: auto;
305
499
  }
306
500
 
501
+ // A datum's value keeps the hook it was spaced by when it rode on its bar.
502
+ &__column > &__value {
503
+ bottom: calc(var(--wr-bar-chart-at, 0) * 100% + var(--wr-bar-chart-column-gap));
504
+ }
505
+
506
+ &__column > &__value--below {
507
+ top: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-column-gap));
508
+ bottom: auto;
509
+ }
510
+
307
511
  // One of `lines`, over the bars: an SVG box from the middle of the first category to the
308
- // middle of the last, every position in it a percentage the component writes, so nothing
309
- // stretches and a dash or a marker keeps its size at any width. Out of the pointer's
310
- // way, so a point over a category still opens that category's tooltip. Its strokes and
311
- // fills are kept under forced colors, as every chart mark here is.
512
+ // middle of the last, every position in it a percentage the component writes. Out of the
513
+ // pointer's way, so a point over a category still opens that category's tooltip. Its
514
+ // strokes and fills are kept under forced colors, as every chart mark here is.
312
515
  &__line {
313
516
  // How wide the line is drawn, in pixels whatever the plot's size.
314
- --wr-bar-chart-line-width: 2px;
517
+ --wr-bar-chart-line-width: var(--wr-chart-stroke);
315
518
 
316
519
  position: absolute;
317
520
  inset-block-start: 0;
@@ -330,9 +533,12 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
330
533
  }
331
534
  }
332
535
 
536
+ // The whole line is one path in a box stretched over the line's own. Its stroke does
537
+ // not scale with the box (`vector-effect`), so the width and the dash are in pixels.
333
538
  &__line-segment {
334
539
  stroke-width: var(--wr-bar-chart-line-width);
335
540
  stroke-linecap: round;
541
+ stroke-linejoin: round;
336
542
  }
337
543
 
338
544
  // A point's marker, ringed: the stroke is painted first and half covered by the fill, so
@@ -344,15 +550,48 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
344
550
  }
345
551
  }
346
552
 
553
+ // A value whole or not at all, standing up. Grouped bars on a phone leave a lane a few
554
+ // pixels wide, and an ellipsis needs a glyph and itself: below that Chromium draws the
555
+ // first digit and nothing else, so 1.2K read as `1`. The value wraps instead, beside an
556
+ // empty first item one line tall, onto a second line its own height clips away - so a
557
+ // value that does not fit its lane is left out, and the tooltip and the bar's name carry it.
558
+ .wr-bar-chart:not(.wr-bar-chart--horizontal) .wr-bar-chart__lane > .wr-bar-chart__value {
559
+ display: flex;
560
+ flex-wrap: wrap;
561
+ align-content: flex-start;
562
+ justify-content: center;
563
+ block-size: 1lh;
564
+ text-overflow: clip;
565
+
566
+ &::before {
567
+ content: '';
568
+ flex: none;
569
+ block-size: 1lh;
570
+ }
571
+ }
572
+
573
+ // The scale's numbers are centred on their gridlines, so the top one stands half its
574
+ // height above the plot: the body keeps that much room, and the chart's box holds it.
575
+ .wr-bar-chart--axis:not(.wr-bar-chart--horizontal) .wr-bar-chart__body {
576
+ padding-block-start: calc(var(--wr-bar-chart-tick-font-size) / 2);
577
+ }
578
+
347
579
  // Beside `lines`, room at each end of the value axis for the largest marker: a margin rather
348
- // than a padding, so the track's own box — which every bar, the baseline and each line's box
349
- // are placed in — stays the axis. Kept while every line is hidden, as the layout is.
350
- .wr-bar-chart--combo:not(.wr-bar-chart--horizontal) .wr-bar-chart__track {
351
- margin-block: $line-reach;
580
+ // than a padding, so the track's own box - which every bar, the grid, the baseline and each
581
+ // line's box are placed in - stays the axis. The scale beside it keeps the same margin, so
582
+ // each number stays on its gridline. Kept while every line is hidden, as the layout is.
583
+ .wr-bar-chart--combo:not(.wr-bar-chart--horizontal) {
584
+ .wr-bar-chart__track,
585
+ .wr-bar-chart__axis {
586
+ margin-block: $line-reach;
587
+ }
352
588
  }
353
589
 
354
- .wr-bar-chart--combo.wr-bar-chart--horizontal .wr-bar-chart__track {
355
- margin-inline: $line-reach;
590
+ .wr-bar-chart--combo.wr-bar-chart--horizontal {
591
+ .wr-bar-chart__track,
592
+ .wr-bar-chart__axis {
593
+ margin-inline: $line-reach;
594
+ }
356
595
  }
357
596
 
358
597
  // The SVG keeps its fills and strokes under forced colors, so the lines and their points keep
@@ -362,62 +601,7 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
362
601
  @media (forced-colors: active) {
363
602
  .wr-bar-chart {
364
603
  --wr-bar-chart-halo: Canvas;
365
- }
366
- }
367
-
368
- // `series`, vertical — or `data` beside `lines`: three rows — the room for the values
369
- // printed above the bars, the track, the room for those printed below the ones under
370
- // zero. A room with nothing to hold is no height at all.
371
- :is(.wr-bar-chart--series, .wr-bar-chart--combo):not(.wr-bar-chart--horizontal) {
372
- .wr-bar-chart__plot {
373
- display: grid;
374
- grid-template-rows: auto minmax(0, 1fr) auto;
375
- grid-template-columns: minmax(0, 1fr);
376
- // The track fills its row: the plot's own `flex-end` would shrink it to its content,
377
- // and every bar in it is out of flow.
378
- align-items: stretch;
379
- gap: 0;
380
- border-bottom: 0;
381
- }
382
-
383
- .wr-bar-chart__room--max {
384
- grid-row: 1;
385
-
386
- > .wr-bar-chart__value {
387
- padding-block-end: var(--wr-bar-chart-value-offset);
388
- }
389
- }
390
-
391
- .wr-bar-chart__track {
392
- grid-row: 2;
393
- }
394
-
395
- .wr-bar-chart__room--min {
396
- grid-row: 3;
397
-
398
- > .wr-bar-chart__value {
399
- padding-block-start: var(--wr-bar-chart-value-offset);
400
- }
401
- }
402
-
403
- // A value whole or not at all. Grouped bars on a phone leave a lane a few pixels wide,
404
- // and an ellipsis needs a glyph and itself: below that Chromium draws the first digit
405
- // and nothing else, so 1.2K read as `1`. The value wraps instead, beside an empty
406
- // first item one line tall, onto a second line its own height clips away — so a value
407
- // that does not fit its lane is left out, and the tooltip and the bar's name carry it.
408
- .wr-bar-chart__lane > .wr-bar-chart__value {
409
- display: flex;
410
- flex-wrap: wrap;
411
- align-content: flex-start;
412
- justify-content: center;
413
- block-size: 1lh;
414
- text-overflow: clip;
415
-
416
- &::before {
417
- content: '';
418
- flex: none;
419
- block-size: 1lh;
420
- }
604
+ --wr-bar-chart-separator: Canvas;
421
605
  }
422
606
  }
423
607
 
@@ -432,69 +616,23 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
432
616
  0 0 1px var(--wr-bar-chart-halo);
433
617
  }
434
618
 
435
- // `data` beside `lines`, standing up: its columns stand in the track above, the one the
436
- // lines are drawn over, so the bars and the lines share one value axis. The value is taken
437
- // out of flow and placed past the bar from the same share, as it is lying down: in flow it
438
- // took its own height out of the column and scaled every bar against a shorter one. The
439
- // bar stands on zero, which is the axis minimum until a line goes below it, on a spacer
440
- // that takes zero's share of the column.
441
- .wr-bar-chart--combo:not(.wr-bar-chart--series, .wr-bar-chart--horizontal) {
442
- .wr-bar-chart__column {
443
- position: relative;
444
- gap: 0;
445
-
446
- &::after {
447
- content: '';
448
- flex: 0 0 0;
449
- flex-grow: var(--wr-bar-chart-start, var(--wr-bar-chart-zero, 0));
450
- transition: flex-grow var(--wr-duration-slow) var(--wr-ease-out);
451
-
452
- // Here rather than in the block at the end, which these selectors outrank.
453
- @media (prefers-reduced-motion: reduce) {
454
- transition: none;
455
- }
456
- }
457
- }
458
-
459
- .wr-bar-chart__column > .wr-bar-chart__value {
460
- position: absolute;
461
- inset-inline: 0;
462
- bottom: calc(var(--wr-bar-chart-at, 0) * 100% + var(--wr-bar-chart-value-offset));
463
- text-align: center;
464
- transition:
465
- bottom var(--wr-duration-slow) var(--wr-ease-out),
466
- top var(--wr-duration-slow) var(--wr-ease-out);
467
-
468
- @media (prefers-reduced-motion: reduce) {
469
- transition: none;
470
- }
471
- }
472
-
473
- // A bar below zero hangs from it, on a spacer that takes its own end's share, so its
474
- // rounded corners are at the bottom and its value is printed under it.
475
- .wr-bar-chart__column > .wr-bar-chart__value--below {
476
- top: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-value-offset));
477
- bottom: auto;
478
- }
479
-
480
- .wr-bar-chart__bar--below {
481
- border-radius: 0 0 var(--wr-bar-chart-bar-radius) var(--wr-bar-chart-bar-radius);
482
- }
483
- }
484
-
485
619
  // Horizontal, with `data` or `series`: four columns — the category names, the room for
486
620
  // the values printed before the bars that grow below zero, the track, and the room for
487
- // those printed past the rest. A grid follows `direction`, and every position along the
488
- // track is a logical inset, so under RTL the names are on the right and the bars grow
489
- // leftwards with no rule of their own.
621
+ // those printed past the rest - and under the track, the scale. A grid follows
622
+ // `direction`, and every position along the track is a logical inset, so under RTL the
623
+ // names are on the right and the bars grow leftwards.
490
624
  .wr-bar-chart--horizontal {
625
+ // Between two rows: a length, since a share of the track's height has nothing to
626
+ // resolve against while the rows are still growing it.
627
+ --wr-bar-chart-plot-gap: var(--wr-space-sm);
628
+
629
+ .wr-bar-chart__body {
630
+ display: block;
631
+ }
632
+
491
633
  .wr-bar-chart__plot {
492
- display: grid;
493
634
  grid-template-columns: auto auto minmax(0, 1fr) auto;
494
- grid-template-rows: minmax(0, 1fr);
495
- align-items: stretch;
496
- gap: 0;
497
- border-bottom: 0;
635
+ grid-template-rows: minmax(0, 1fr) auto;
498
636
  }
499
637
 
500
638
  // One row per category, on the same rows as the track's: equal shares of the plot's
@@ -526,6 +664,7 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
526
664
  grid-row: 1;
527
665
 
528
666
  > .wr-bar-chart__value {
667
+ padding-block: 0;
529
668
  padding-inline-end: var(--wr-bar-chart-value-offset);
530
669
  }
531
670
  }
@@ -542,10 +681,46 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
542
681
  grid-row: 1;
543
682
 
544
683
  > .wr-bar-chart__value {
684
+ padding-block: 0;
545
685
  padding-inline-start: var(--wr-bar-chart-value-offset);
546
686
  }
547
687
  }
548
688
 
689
+ // The scale runs under the track: one line of numbers, each centred on its gridline.
690
+ // The last one stands half its width past the track, which the body keeps room for.
691
+ .wr-bar-chart__axis {
692
+ grid-column: 3;
693
+ grid-row: 2;
694
+ display: block;
695
+ block-size: calc(var(--wr-bar-chart-tick-font-size) + var(--wr-bar-chart-axis-gap));
696
+ padding: 0;
697
+ }
698
+
699
+ .wr-bar-chart__tick {
700
+ inset-block: auto 0;
701
+ inset-inline: calc(var(--wr-bar-chart-at, 0) * 100%) auto;
702
+ // rtl-ok: centres the number on its gridline; the `:dir(rtl)` rule below mirrors it.
703
+ transform: translateX(-50%);
704
+
705
+ &:dir(rtl) {
706
+ transform: translateX(50%);
707
+ }
708
+ }
709
+
710
+ .wr-bar-chart__tick--probe {
711
+ display: none;
712
+ }
713
+
714
+ .wr-bar-chart__grid-line {
715
+ inset-block: 0;
716
+ inset-inline: calc(var(--wr-bar-chart-at, 0) * 100%) auto;
717
+ width: 0;
718
+ height: auto;
719
+ margin: 0;
720
+ border-bottom: 0;
721
+ border-inline-start: 1px solid var(--wr-bar-chart-grid-color);
722
+ }
723
+
549
724
  .wr-bar-chart__baseline {
550
725
  inset-block: 0;
551
726
  inset-inline-start: calc(var(--wr-bar-chart-zero, 0) * 100%);
@@ -553,7 +728,6 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
553
728
  width: 0;
554
729
  height: auto;
555
730
  margin: 0;
556
- margin-inline-start: -1px;
557
731
  border-bottom: 0;
558
732
  border-inline-start: 1px solid var(--wr-bar-chart-plot-border);
559
733
  }
@@ -567,68 +741,95 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
567
741
  }
568
742
 
569
743
  .wr-bar-chart__lane {
744
+ max-inline-size: none;
745
+ max-block-size: var(--wr-bar-chart-bar-max-size);
570
746
  min-height: var(--wr-bar-chart-row-min-size);
571
747
  }
572
748
 
573
- .wr-bar-chart__series-bar {
574
- inset-block: 0;
575
- inset-inline-start: calc(var(--wr-bar-chart-start, 0) * 100%);
576
- inset-inline-end: auto;
577
- height: auto;
578
- min-height: 0;
579
- inline-size: calc(var(--wr-bar-chart-size, 0) * 100%);
580
- min-inline-size: 1px;
581
- transition:
582
- inset-inline-start var(--wr-duration-slow) var(--wr-ease-out),
583
- inline-size var(--wr-duration-slow) var(--wr-ease-out);
749
+ // `data`, sideways: each datum's column is a row.
750
+ .wr-bar-chart__column {
751
+ min-height: var(--wr-bar-chart-row-min-size);
584
752
  }
585
753
 
586
- .wr-bar-chart__lane > .wr-bar-chart__value {
587
- top: 50%;
588
- bottom: auto;
589
- inset-inline-start: calc(var(--wr-bar-chart-at, 0) * 100% + var(--wr-bar-chart-value-offset));
590
- inset-inline-end: auto;
591
- max-width: none;
592
- transform: translateY(-50%);
593
- text-align: start;
754
+ // A side runs along the inline axis: from zero to the far end of it, or back to its start.
755
+ .wr-bar-chart__side {
756
+ inset-block: 0;
757
+ inset-inline: calc(var(--wr-bar-chart-zero, 0) * 100%) 0;
594
758
  }
595
759
 
596
- .wr-bar-chart__lane > .wr-bar-chart__value--below {
597
- inset-inline-start: auto;
598
- inset-inline-end: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-value-offset));
760
+ .wr-bar-chart__side--down {
761
+ inset-inline: 0 calc((1 - var(--wr-bar-chart-zero, 0)) * 100%);
599
762
  }
600
763
 
601
- // `data`, sideways: each datum's column is a row, and its bar still grows by the share
602
- // written as its `flex-grow` — the only thing in flow, so the share is of the whole
603
- // row. The value is taken out of flow and placed past the bar's end from the same
604
- // share, since in flow beside the bar it would take its own width out of the row and
605
- // scale every bar against a different length.
606
- .wr-bar-chart__column {
607
- position: relative;
608
- flex-direction: row;
609
- align-items: stretch;
610
- justify-content: flex-start;
611
- height: auto;
612
- min-height: var(--wr-bar-chart-row-min-size);
613
- gap: 0;
764
+ .wr-bar-chart__column > .wr-bar-chart__side {
765
+ inset-block: max(0px, calc((100% - var(--wr-bar-chart-bar-max-size)) / 2));
614
766
  }
615
767
 
616
- .wr-bar-chart__bar {
617
- width: auto;
618
- min-width: 1px;
619
- min-height: 0;
768
+ // The bar's end is at inline end, and it is moved along the inline axis: a transform is
769
+ // physical, so the direction it moves in is mirrored by hand.
770
+ .wr-bar-chart__bar,
771
+ .wr-bar-chart__series-bar {
620
772
  border-radius: 0;
621
773
  border-start-end-radius: var(--wr-bar-chart-bar-radius);
622
774
  border-end-end-radius: var(--wr-bar-chart-bar-radius);
775
+ // rtl-ok: the `:dir(rtl)` rule below moves it the other way.
776
+ transform: translateX(calc((#{$fill-up} - 1) * 100%));
777
+
778
+ &:dir(rtl) {
779
+ transform: translateX(calc((1 - #{$fill-up}) * 100%));
780
+ }
623
781
  }
624
782
 
783
+ .wr-bar-chart__side--down > .wr-bar-chart__bar,
784
+ .wr-bar-chart__side--down > .wr-bar-chart__series-bar {
785
+ border-radius: 0;
786
+ border-start-start-radius: var(--wr-bar-chart-bar-radius);
787
+ border-end-start-radius: var(--wr-bar-chart-bar-radius);
788
+ // rtl-ok: the `:dir(rtl)` rule below moves it the other way.
789
+ transform: translateX(calc((1 - #{$fill-down}) * 100%));
790
+
791
+ &:dir(rtl) {
792
+ transform: translateX(calc((#{$fill-down} - 1) * 100%));
793
+ }
794
+ }
795
+
796
+ // The line that parts two segments of a pile is past the inner one's end: at inline end,
797
+ // or at inline start below zero.
798
+ .wr-bar-chart__side > .wr-bar-chart__series-bar:not(:last-child) {
799
+ border-radius: 0;
800
+ // rtl-ok: a shadow's offset is physical; the `:dir(rtl)` rule below mirrors it.
801
+ box-shadow: 1px 0 0 0 var(--wr-bar-chart-separator);
802
+
803
+ &:dir(rtl) {
804
+ box-shadow: -1px 0 0 0 var(--wr-bar-chart-separator);
805
+ }
806
+ }
807
+
808
+ .wr-bar-chart__side--down > .wr-bar-chart__series-bar:not(:last-child) {
809
+ // rtl-ok: a shadow's offset is physical; the `:dir(rtl)` rule below mirrors it.
810
+ box-shadow: -1px 0 0 0 var(--wr-bar-chart-separator);
811
+
812
+ &:dir(rtl) {
813
+ box-shadow: 1px 0 0 0 var(--wr-bar-chart-separator);
814
+ }
815
+ }
816
+
817
+ // A value past the end of its bar, level with the middle of its row.
818
+ .wr-bar-chart__lane > .wr-bar-chart__value,
625
819
  .wr-bar-chart__column > .wr-bar-chart__value {
626
- position: absolute;
627
820
  top: 50%;
821
+ bottom: auto;
628
822
  inset-inline-start: calc(var(--wr-bar-chart-at, 0) * 100% + var(--wr-bar-chart-value-offset));
823
+ inset-inline-end: auto;
629
824
  max-width: none;
630
825
  transform: translateY(-50%);
631
- transition: inset-inline-start var(--wr-duration-slow) var(--wr-ease-out);
826
+ text-align: start;
827
+ }
828
+
829
+ .wr-bar-chart__lane > .wr-bar-chart__value--below,
830
+ .wr-bar-chart__column > .wr-bar-chart__value--below {
831
+ inset-inline-start: auto;
832
+ inset-inline-end: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-value-offset));
632
833
  }
633
834
 
634
835
  // Lying down, a line's box runs down the rows, from the middle of the first to the
@@ -641,56 +842,44 @@ $line-reach: calc(var(--wr-bar-chart-reach, 0) * 1px + #{$point-ring} / 2);
641
842
  }
642
843
  }
643
844
 
644
- // `data` beside `lines`, lying down: the bar starts at zero, on a spacer at inline start
645
- // that takes zero's share of the row — nothing until a value goes below zero. A bar below
646
- // zero starts at its own end and runs to zero, its value printed before it and its rounded
647
- // corners at inline start.
648
- .wr-bar-chart--combo.wr-bar-chart--horizontal:not(.wr-bar-chart--series) {
649
- .wr-bar-chart__column::before {
650
- content: '';
651
- flex: 0 0 0;
652
- flex-grow: var(--wr-bar-chart-start, var(--wr-bar-chart-zero, 0));
653
- transition: flex-grow var(--wr-duration-slow) var(--wr-ease-out);
845
+ .wr-bar-chart--axis.wr-bar-chart--horizontal .wr-bar-chart__body {
846
+ padding-inline-end: var(--wr-space-md);
847
+ }
654
848
 
655
- @media (prefers-reduced-motion: reduce) {
656
- transition: none;
657
- }
849
+ // A bar entering the page grows from zero, where the browser can start a transition from
850
+ // a style of its own (`@starting-style`); elsewhere it is simply drawn at its value.
851
+ @starting-style {
852
+ .wr-bar-chart__bar,
853
+ .wr-bar-chart__series-bar {
854
+ transform: translateY(100%);
658
855
  }
659
856
 
660
- .wr-bar-chart__column > .wr-bar-chart__value {
661
- transition:
662
- inset-inline-start var(--wr-duration-slow) var(--wr-ease-out),
663
- inset-inline-end var(--wr-duration-slow) var(--wr-ease-out);
664
-
665
- @media (prefers-reduced-motion: reduce) {
666
- transition: none;
667
- }
857
+ .wr-bar-chart__side--down > .wr-bar-chart__bar,
858
+ .wr-bar-chart__side--down > .wr-bar-chart__series-bar {
859
+ transform: translateY(-100%);
668
860
  }
669
861
 
670
- .wr-bar-chart__column > .wr-bar-chart__value--below {
671
- inset-inline-start: auto;
672
- inset-inline-end: calc((1 - var(--wr-bar-chart-at, 0)) * 100% + var(--wr-bar-chart-value-offset));
862
+ .wr-bar-chart--horizontal .wr-bar-chart__bar,
863
+ .wr-bar-chart--horizontal .wr-bar-chart__series-bar {
864
+ // rtl-ok: an entry from inline start; under RTL the bar grows from its own end instead.
865
+ transform: translateX(-100%);
673
866
  }
674
867
 
675
- .wr-bar-chart__bar--below {
676
- border-radius: 0;
677
- border-start-start-radius: var(--wr-bar-chart-bar-radius);
678
- border-end-start-radius: var(--wr-bar-chart-bar-radius);
868
+ .wr-bar-chart--horizontal .wr-bar-chart__side--down > .wr-bar-chart__bar,
869
+ .wr-bar-chart--horizontal .wr-bar-chart__side--down > .wr-bar-chart__series-bar {
870
+ // rtl-ok: as above, from the other side of zero.
871
+ transform: translateX(100%);
679
872
  }
680
873
  }
681
874
 
682
- // Every layout's movement is a bar growing to its value; with reduced motion it lands there
683
- // at once. A `data` bar lying down — or standing beside `lines` — lands with the value
684
- // placed past its end, which would otherwise jump ahead and leave the bar sliding up to
685
- // it; beside `lines` the value and the spacer the bar stands on stop where they are
686
- // declared. The lines move at once regardless.
875
+ // Every movement here is a bar going to its value; with reduced motion it lands there at
876
+ // once. The chart theme already sets its durations to 0s; this holds for an app that
877
+ // gave `--wr-bar-chart-duration` a length of its own.
687
878
  @media (prefers-reduced-motion: reduce) {
688
879
  .wr-bar-chart__bar,
689
880
  .wr-bar-chart__series-bar,
690
- .wr-bar-chart--horizontal .wr-bar-chart__series-bar,
691
- .wr-bar-chart--horizontal .wr-bar-chart__bar,
692
- .wr-bar-chart--horizontal .wr-bar-chart__column > .wr-bar-chart__value,
693
- .wr-bar-chart--combo .wr-bar-chart__bar {
881
+ .wr-bar-chart__category,
882
+ .wr-bar-chart__column {
694
883
  transition: none;
695
884
  }
696
885
  }