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
@@ -1,17 +1,36 @@
1
1
  import * as i0 from "@angular/core";
2
- import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, computed, inject, input, signal, viewChild } from "@angular/core";
2
+ import { Component, DestroyRef, ElementRef, ViewEncapsulation, afterNextRender, computed, effect, inject, input, signal, viewChild } from "@angular/core";
3
3
  import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
4
4
  import { wrCheckStyles } from "ngwr/utils";
5
5
  import { useI18nFormatter, useI18nText } from "ngwr/i18n";
6
6
  import { wrDateLocale } from "ngwr/date";
7
- import { WrChartTable, useChartNumbers } from "ngwr/charts/core";
8
- import { useChartTooltip } from "ngwr/popover";
7
+ import { WrChartScale } from "ngwr/charts/chart-legend";
8
+ import { WrChartState, WrChartTable, useChartNumbers, useChartState } from "ngwr/charts/core";
9
+ import { useChartTooltip, wrCoerceChartTooltip } from "ngwr/popover";
9
10
  /**
10
11
  * @license
11
12
  *
12
13
  * Use of this source code is governed by an MIT-style license that can be
13
14
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
14
15
  */
16
+ const STEPS = [
17
+ "var(--wr-calendar-heatmap-step-1)",
18
+ "var(--wr-calendar-heatmap-step-2)",
19
+ "var(--wr-calendar-heatmap-step-3)",
20
+ "var(--wr-calendar-heatmap-step-4)",
21
+ "var(--wr-calendar-heatmap-step-5)"
22
+ ];
23
+ const ISO_DAY = /^\d{4}-\d{2}-\d{2}$/;
24
+ const DATE_FORMATS = /* @__PURE__ */ new Map();
25
+ function dateFormat(locale, options) {
26
+ const key = `${locale}|${JSON.stringify(options)}`;
27
+ let format = DATE_FORMATS.get(key);
28
+ if (!format) {
29
+ format = new Intl.DateTimeFormat(locale, options);
30
+ DATE_FORMATS.set(key, format);
31
+ }
32
+ return format;
33
+ }
15
34
  function toIso(d) {
16
35
  return `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`;
17
36
  }
@@ -37,30 +56,46 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
37
56
  count: this.numbers.value(cell.value)
38
57
  });
39
58
  }
40
- dateFormat = computed(() => new Intl.DateTimeFormat(this.locale, { dateStyle: "medium" }), ...ngDevMode ? [{ debugName: "dateFormat" }] : /* istanbul ignore next */ []);
59
+ dateFormat = computed(() => dateFormat(this.locale, { dateStyle: "medium" }), ...ngDevMode ? [{ debugName: "dateFormat" }] : /* istanbul ignore next */ []);
41
60
  titles = computed(() => this.tooltip() ? null : this.cells().map((cell) => this.cellTitle(cell)), ...ngDevMode ? [{ debugName: "titles" }] : /* istanbul ignore next */ []);
42
61
  endDate = input(null, ...ngDevMode ? [{ debugName: "endDate" }] : /* istanbul ignore next */ []);
43
62
  weeks = input(53, {
44
63
  ...ngDevMode ? { debugName: "weeks" } : /* istanbul ignore next */ {},
45
64
  transform: (v) => Math.max(4, coerceNumberProperty(v, 53))
46
65
  });
47
- cellSize = input(11, {
66
+ cellSize = input(12, {
48
67
  ...ngDevMode ? { debugName: "cellSize" } : /* istanbul ignore next */ {},
49
- transform: (v) => Math.max(4, coerceNumberProperty(v, 11))
68
+ transform: (v) => Math.max(4, coerceNumberProperty(v, 12))
50
69
  });
51
- cellGap = input(2, {
70
+ cellGap = input(3, {
52
71
  ...ngDevMode ? { debugName: "cellGap" } : /* istanbul ignore next */ {},
53
- transform: (v) => Math.max(0, coerceNumberProperty(v, 2))
72
+ transform: (v) => Math.max(0, coerceNumberProperty(v, 3))
73
+ });
74
+ color = input(null, ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
75
+ emptyColor = input(null, ...ngDevMode ? [{ debugName: "emptyColor" }] : /* istanbul ignore next */ []);
76
+ showLegend = input(true, {
77
+ ...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
78
+ transform: coerceBooleanProperty
54
79
  });
55
- color = input("var(--wr-color-primary)", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
56
- emptyColor = input("color-mix(in srgb, var(--wr-border-base) 50%, transparent)", ...ngDevMode ? [{ debugName: "emptyColor" }] : /* istanbul ignore next */ []);
80
+ legendPosition = input("bottom", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
81
+ loading = input(false, {
82
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
83
+ transform: coerceBooleanProperty
84
+ });
85
+ error = input(false, {
86
+ ...ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {},
87
+ transform: coerceBooleanProperty
88
+ });
89
+ emptyLabel = input(null, ...ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []);
90
+ loadingLabel = input(null, ...ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []);
91
+ errorLabel = input(null, ...ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []);
57
92
  showLabels = input(true, {
58
93
  ...ngDevMode ? { debugName: "showLabels" } : /* istanbul ignore next */ {},
59
94
  transform: coerceBooleanProperty
60
95
  });
61
96
  tooltip = input(true, {
62
97
  ...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
63
- transform: coerceBooleanProperty
98
+ transform: wrCoerceChartTooltip
64
99
  });
65
100
  valueFormat = input(null, ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
66
101
  dataTable = input(false, {
@@ -76,7 +111,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
76
111
  return this.dateLocale();
77
112
  }
78
113
  weekdayLabels = computed(() => {
79
- const formatter = new Intl.DateTimeFormat(this.locale, { weekday: "short" });
114
+ const formatter = dateFormat(this.locale, { weekday: "short" });
80
115
  const sunday = new Date(2024, 0, 7);
81
116
  return Array.from({ length: 7 }, (_, row) => {
82
117
  if (!LABELLED_ROWS.has(row)) return "";
@@ -86,22 +121,40 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
86
121
  });
87
122
  }, ...ngDevMode ? [{ debugName: "weekdayLabels" }] : /* istanbul ignore next */ []);
88
123
  monthNames = computed(() => {
89
- const formatter = new Intl.DateTimeFormat(this.locale, { month: "short" });
124
+ const formatter = dateFormat(this.locale, { month: "short" });
90
125
  return Array.from({ length: 12 }, (_, month) => formatter.format(new Date(2024, month, 15)));
91
126
  }, ...ngDevMode ? [{ debugName: "monthNames" }] : /* istanbul ignore next */ []);
92
127
  cells = computed(() => {
93
128
  const end = this.endDate() ? parseInput(this.endDate()) : /* @__PURE__ */ new Date();
94
129
  end.setHours(0, 0, 0, 0);
95
130
  const weeks = this.weeks();
96
- const map = /* @__PURE__ */ new Map();
97
- for (const d of this.data()) {
98
- const iso = toIso(parseInput(d.date));
99
- map.set(iso, (map.get(iso) ?? 0) + amount(d.value));
100
- }
101
- const max = [...map.values()].reduce((a, b) => Math.max(a, b), 0);
131
+ const data = this.state() && this.state()?.kind !== "empty" ? [] : this.data();
102
132
  const out = [];
103
133
  const start = new Date(end);
104
134
  start.setDate(end.getDate() - end.getDay() - (weeks - 1) * 7);
135
+ const from = new Date(start);
136
+ from.setDate(start.getDate() - 7);
137
+ const firstIso = toIso(from);
138
+ const lastIso = toIso(end);
139
+ const firstTime = start.getTime();
140
+ const lastTime = end.getTime() + 864e5;
141
+ const map = /* @__PURE__ */ new Map();
142
+ let max = 0;
143
+ for (const d of data) {
144
+ const { date } = d;
145
+ if (typeof date === "string") {
146
+ if (ISO_DAY.test(date) && (date < firstIso || date > lastIso)) continue;
147
+ } else {
148
+ const time = date.getTime();
149
+ if (time < firstTime || time >= lastTime) continue;
150
+ }
151
+ const iso = toIso(parseInput(date));
152
+ const sum = (map.get(iso) ?? 0) + amount(d.value);
153
+ map.set(iso, sum);
154
+ }
155
+ const startIso = toIso(start);
156
+ for (const [iso, sum] of map) if (iso >= startIso && iso <= lastIso && sum > max) max = sum;
157
+ const empty = this.emptyColor() ?? "var(--wr-calendar-heatmap-empty)";
105
158
  const cursor = new Date(start);
106
159
  let column = 0;
107
160
  while (cursor <= end) {
@@ -110,11 +163,15 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
110
163
  const iso = toIso(cursor);
111
164
  const value = map.get(iso) ?? 0;
112
165
  const intensity = max > 0 ? Math.min(1, Math.max(0, value / max)) : 0;
166
+ const level = intensity === 0 ? 0 : Math.min(STEPS.length, Math.ceil(intensity * STEPS.length - 1e-9));
167
+ const paint = level === 0 ? empty : STEPS[level - 1];
113
168
  out.push({
114
169
  iso,
115
170
  date: new Date(cursor),
116
171
  value,
117
172
  intensity,
173
+ level,
174
+ paint,
118
175
  week: column,
119
176
  day: row
120
177
  });
@@ -125,7 +182,7 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
125
182
  return out;
126
183
  }, ...ngDevMode ? [{ debugName: "cells" }] : /* istanbul ignore next */ []);
127
184
  weekdayNames = computed(() => {
128
- const formatter = new Intl.DateTimeFormat(this.locale, { weekday: "long" });
185
+ const formatter = dateFormat(this.locale, { weekday: "long" });
129
186
  return Array.from({ length: 7 }, (_, row) => formatter.format(new Date(2024, 0, 7 + row)));
130
187
  }, ...ngDevMode ? [{ debugName: "weekdayNames" }] : /* istanbul ignore next */ []);
131
188
  tableData = computed(() => {
@@ -147,18 +204,36 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
147
204
  monthLabels = computed(() => {
148
205
  const cells = this.cells();
149
206
  const seen = /* @__PURE__ */ new Set();
150
- return cells.filter((cell) => {
151
- const date = /* @__PURE__ */ new Date(`${cell.iso}T00:00:00`);
207
+ return cells.filter(({ date }) => {
152
208
  if (date.getDate() !== 1) return false;
153
209
  const key = `${date.getFullYear()}-${date.getMonth()}`;
154
210
  if (seen.has(key)) return false;
155
211
  seen.add(key);
156
212
  return true;
157
213
  }).map((cell) => ({
158
- label: this.monthNames()[(/* @__PURE__ */ new Date(`${cell.iso}T00:00:00`)).getMonth()],
214
+ label: this.monthNames()[cell.date.getMonth()],
159
215
  week: cell.week
160
216
  }));
161
217
  }, ...ngDevMode ? [{ debugName: "monthLabels" }] : /* istanbul ignore next */ []);
218
+ peak = computed(() => this.cells().reduce((max, cell) => Math.max(max, cell.value), 0), ...ngDevMode ? [{ debugName: "peak" }] : /* istanbul ignore next */ []);
219
+ legend = computed(() => {
220
+ const peak = this.peak();
221
+ const empty = this.emptyColor() ?? "var(--wr-calendar-heatmap-empty)";
222
+ return {
223
+ min: this.numbers.value(0),
224
+ max: peak > 0 ? this.numbers.value(peak) : null,
225
+ steps: peak > 0 ? [empty, ...STEPS] : [empty]
226
+ };
227
+ }, ...ngDevMode ? [{ debugName: "legend" }] : /* istanbul ignore next */ []);
228
+ legendShown = computed(() => this.showLegend() && this.legendPosition() !== "none", ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
229
+ state = useChartState({
230
+ loading: this.loading,
231
+ error: this.error,
232
+ empty: computed(() => this.data().length === 0),
233
+ emptyLabel: this.emptyLabel,
234
+ loadingLabel: this.loadingLabel,
235
+ errorLabel: this.errorLabel
236
+ });
162
237
  columnCount = computed(() => {
163
238
  const cells = this.cells();
164
239
  return cells.length === 0 ? 0 : cells[cells.length - 1].week + 1;
@@ -191,6 +266,27 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
191
266
  if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("charts/calendar-heatmap");
192
267
  const host = inject(ElementRef).nativeElement;
193
268
  const destroyRef = inject(DestroyRef);
269
+ afterNextRender(() => {
270
+ const days = this.daysEl()?.nativeElement;
271
+ if (!days) return;
272
+ const move = (event) => this.onCellsPointer(event);
273
+ const leave = (event) => this.tip.leave(event);
274
+ days.addEventListener("mousemove", move);
275
+ days.addEventListener("mouseleave", leave);
276
+ destroyRef.onDestroy(() => {
277
+ days.removeEventListener("mousemove", move);
278
+ days.removeEventListener("mouseleave", leave);
279
+ });
280
+ });
281
+ let ringed = null;
282
+ effect(() => {
283
+ const active = this.tip.active();
284
+ const next = active === null ? null : this.daysEl()?.nativeElement.children.item(active) ?? null;
285
+ if (next === ringed) return;
286
+ ringed?.classList.remove("wr-calendar-heatmap__cell--active");
287
+ next?.classList.add("wr-calendar-heatmap__cell--active");
288
+ ringed = next;
289
+ });
194
290
  afterNextRender(() => {
195
291
  const grid = this.gridEl()?.nativeElement;
196
292
  if (typeof ResizeObserver === "undefined") return;
@@ -208,17 +304,6 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
208
304
  static scrollToEnd(host) {
209
305
  host.scrollLeft = getComputedStyle(host).direction === "rtl" ? -host.scrollWidth : host.scrollWidth;
210
306
  }
211
- colorFor(intensity) {
212
- if (intensity === 0) return this.emptyColor();
213
- return this.color();
214
- }
215
- opacityFor(intensity) {
216
- if (intensity === 0) return 1;
217
- if (intensity < .25) return .25;
218
- if (intensity < .5) return .5;
219
- if (intensity < .75) return .75;
220
- return 1;
221
- }
222
307
  static ɵfac = i0.ɵɵngDeclareFactory({
223
308
  minVersion: "12.0.0",
224
309
  version: "22.2.6",
@@ -290,6 +375,55 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
290
375
  isRequired: false,
291
376
  transformFunction: null
292
377
  },
378
+ showLegend: {
379
+ classPropertyName: "showLegend",
380
+ publicName: "showLegend",
381
+ isSignal: true,
382
+ isRequired: false,
383
+ transformFunction: null
384
+ },
385
+ legendPosition: {
386
+ classPropertyName: "legendPosition",
387
+ publicName: "legendPosition",
388
+ isSignal: true,
389
+ isRequired: false,
390
+ transformFunction: null
391
+ },
392
+ loading: {
393
+ classPropertyName: "loading",
394
+ publicName: "loading",
395
+ isSignal: true,
396
+ isRequired: false,
397
+ transformFunction: null
398
+ },
399
+ error: {
400
+ classPropertyName: "error",
401
+ publicName: "error",
402
+ isSignal: true,
403
+ isRequired: false,
404
+ transformFunction: null
405
+ },
406
+ emptyLabel: {
407
+ classPropertyName: "emptyLabel",
408
+ publicName: "emptyLabel",
409
+ isSignal: true,
410
+ isRequired: false,
411
+ transformFunction: null
412
+ },
413
+ loadingLabel: {
414
+ classPropertyName: "loadingLabel",
415
+ publicName: "loadingLabel",
416
+ isSignal: true,
417
+ isRequired: false,
418
+ transformFunction: null
419
+ },
420
+ errorLabel: {
421
+ classPropertyName: "errorLabel",
422
+ publicName: "errorLabel",
423
+ isSignal: true,
424
+ isRequired: false,
425
+ transformFunction: null
426
+ },
293
427
  showLabels: {
294
428
  classPropertyName: "showLabels",
295
429
  publicName: "showLabels",
@@ -320,8 +454,12 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
320
454
  }
321
455
  },
322
456
  host: {
323
- properties: { "attr.tabindex": "scrollable() ? 0 : null" },
324
- classAttribute: "wr-calendar-heatmap"
457
+ properties: {
458
+ "class.wr-calendar-heatmap--tinted": "color() !== null",
459
+ "style.--wr-calendar-heatmap-scale-color": "color()",
460
+ "attr.tabindex": "scrollable() ? 0 : null"
461
+ },
462
+ classAttribute: "wr-calendar-heatmap wr-chart--legend"
325
463
  },
326
464
  viewQueries: [{
327
465
  propertyName: "daysEl",
@@ -337,13 +475,33 @@ var WrCalendarHeatmap = class WrCalendarHeatmap {
337
475
  isSignal: true
338
476
  }],
339
477
  ngImport: i0,
340
- template: "<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <div #days class=\"wr-calendar-heatmap__cells\" (mousemove)=\"onCellsPointer($event)\" (mouseleave)=\"tip.leave($event)\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"colorFor(cell.intensity)\"\n [style.opacity]=\"opacityFor(cell.intensity)\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n",
341
- dependencies: [{
342
- kind: "component",
343
- type: WrChartTable,
344
- selector: "wr-chart-table",
345
- inputs: ["data"]
346
- }],
478
+ template: "@let shown = state();\n@let key = legend();\n@let keyed = legendShown() && !shown;\n\n@if (keyed && legendPosition() === 'top') {\n <!-- The scale key, before the grid or after it so it is in the DOM where it is on\n screen. Hidden, as an axis' ticks are on every chart: the grid's name is what is\n announced, and the counts are in the data table. -->\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"top\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <!-- The pointer is heard here by listeners the component adds itself, and the reading\n day's ring is set by hand: nothing in this template follows the pointer, so a move\n across the year checks no square. A square's paint is its level's, a step of the\n sequential scale, or the track for a day of nothing. -->\n <div #days class=\"wr-calendar-heatmap__cells\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"cell.paint\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n [attr.data-level]=\"cell.level\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (shown) {\n <!-- Under the grid, in the scale key's place, and never inside the grid's `img`, which\n makes everything it holds presentational: the message is a live region. -->\n <div class=\"wr-calendar-heatmap__status\">\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n </div>\n} @else if (keyed && legendPosition() === 'bottom') {\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"bottom\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n",
479
+ dependencies: [
480
+ {
481
+ kind: "component",
482
+ type: WrChartScale,
483
+ selector: "wr-chart-scale",
484
+ inputs: [
485
+ "steps",
486
+ "minLabel",
487
+ "maxLabel",
488
+ "position",
489
+ "block"
490
+ ]
491
+ },
492
+ {
493
+ kind: "component",
494
+ type: WrChartState,
495
+ selector: "wr-chart-state",
496
+ inputs: ["kind", "label"]
497
+ },
498
+ {
499
+ kind: "component",
500
+ type: WrChartTable,
501
+ selector: "wr-chart-table",
502
+ inputs: ["data"]
503
+ }
504
+ ],
347
505
  encapsulation: i0.ViewEncapsulation.None
348
506
  });
349
507
  };
@@ -358,11 +516,17 @@ i0.ɵɵngDeclareClassMetadata({
358
516
  selector: "wr-calendar-heatmap",
359
517
  encapsulation: ViewEncapsulation.None,
360
518
  host: {
361
- class: "wr-calendar-heatmap",
519
+ class: "wr-calendar-heatmap wr-chart--legend",
520
+ "[class.wr-calendar-heatmap--tinted]": "color() !== null",
521
+ "[style.--wr-calendar-heatmap-scale-color]": "color()",
362
522
  "[attr.tabindex]": "scrollable() ? 0 : null"
363
523
  },
364
- imports: [WrChartTable],
365
- template: "<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <div #days class=\"wr-calendar-heatmap__cells\" (mousemove)=\"onCellsPointer($event)\" (mouseleave)=\"tip.leave($event)\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"colorFor(cell.intensity)\"\n [style.opacity]=\"opacityFor(cell.intensity)\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"
524
+ imports: [
525
+ WrChartScale,
526
+ WrChartState,
527
+ WrChartTable
528
+ ],
529
+ template: "@let shown = state();\n@let key = legend();\n@let keyed = legendShown() && !shown;\n\n@if (keyed && legendPosition() === 'top') {\n <!-- The scale key, before the grid or after it so it is in the DOM where it is on\n screen. Hidden, as an axis' ticks are on every chart: the grid's name is what is\n announced, and the counts are in the data table. -->\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"top\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n<div\n #grid\n class=\"wr-calendar-heatmap__grid\"\n role=\"img\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.--wr-calendar-heatmap-cell-size.px]=\"cellSize()\"\n [style.--wr-calendar-heatmap-cell-gap.px]=\"cellGap()\"\n [style.--wr-calendar-heatmap-columns]=\"columnCount()\"\n>\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__weekdays\">\n @for (label of weekdayLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__weekday\">{{ label }}</span>\n }\n </div>\n }\n\n <!-- The pointer is heard here by listeners the component adds itself, and the reading\n day's ring is set by hand: nothing in this template follows the pointer, so a move\n across the year checks no square. A square's paint is its level's, a step of the\n sequential scale, or the track for a day of nothing. -->\n <div #days class=\"wr-calendar-heatmap__cells\">\n @for (cell of cells(); track cell.iso) {\n <span\n class=\"wr-calendar-heatmap__cell\"\n [style.background]=\"cell.paint\"\n [style.grid-column]=\"cell.week + 1\"\n [style.grid-row]=\"cell.day + 1\"\n [attr.title]=\"titles()?.[$index] ?? null\"\n [attr.data-date]=\"cell.iso\"\n [attr.data-value]=\"cell.value\"\n [attr.data-level]=\"cell.level\"\n aria-hidden=\"true\"\n ></span>\n }\n </div>\n\n @if (showLabels()) {\n <div class=\"wr-calendar-heatmap__months\">\n @for (m of monthLabels(); track $index) {\n <span class=\"wr-calendar-heatmap__month\" [style.grid-column]=\"m.week + 1\">{{ m.label }}</span>\n }\n </div>\n }\n</div>\n\n@if (shown) {\n <!-- Under the grid, in the scale key's place, and never inside the grid's `img`, which\n makes everything it holds presentational: the message is a live region. -->\n <div class=\"wr-calendar-heatmap__status\">\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n </div>\n} @else if (keyed && legendPosition() === 'bottom') {\n <wr-chart-scale\n class=\"wr-calendar-heatmap__legend\"\n aria-hidden=\"true\"\n position=\"bottom\"\n [steps]=\"key.steps\"\n [minLabel]=\"key.min\"\n [maxLabel]=\"key.max\"\n />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the grid's `img` and never inside it: `img`\n makes everything it holds presentational. Clipped to nothing by its own stylesheet,\n so it takes no room, draws nothing and adds nothing to the scroll. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"
366
530
  }]
367
531
  }],
368
532
  ctorParameters: () => [],
@@ -431,6 +595,62 @@ i0.ɵɵngDeclareClassMetadata({
431
595
  required: false
432
596
  }]
433
597
  }],
598
+ showLegend: [{
599
+ type: i0.Input,
600
+ args: [{
601
+ isSignal: true,
602
+ alias: "showLegend",
603
+ required: false
604
+ }]
605
+ }],
606
+ legendPosition: [{
607
+ type: i0.Input,
608
+ args: [{
609
+ isSignal: true,
610
+ alias: "legendPosition",
611
+ required: false
612
+ }]
613
+ }],
614
+ loading: [{
615
+ type: i0.Input,
616
+ args: [{
617
+ isSignal: true,
618
+ alias: "loading",
619
+ required: false
620
+ }]
621
+ }],
622
+ error: [{
623
+ type: i0.Input,
624
+ args: [{
625
+ isSignal: true,
626
+ alias: "error",
627
+ required: false
628
+ }]
629
+ }],
630
+ emptyLabel: [{
631
+ type: i0.Input,
632
+ args: [{
633
+ isSignal: true,
634
+ alias: "emptyLabel",
635
+ required: false
636
+ }]
637
+ }],
638
+ loadingLabel: [{
639
+ type: i0.Input,
640
+ args: [{
641
+ isSignal: true,
642
+ alias: "loadingLabel",
643
+ required: false
644
+ }]
645
+ }],
646
+ errorLabel: [{
647
+ type: i0.Input,
648
+ args: [{
649
+ isSignal: true,
650
+ alias: "errorLabel",
651
+ required: false
652
+ }]
653
+ }],
434
654
  showLabels: [{
435
655
  type: i0.Input,
436
656
  args: [{