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,5 +1,21 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Use of this source code is governed by an MIT-style license that can be
5
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
+ */
7
+ /**
8
+ * The helpers ngwr's charts share: the series palette, dashes and marker shapes,
9
+ * the number writers, the nice-number axis, rounding, label thinning, one hover and
10
+ * one resize listener, the empty / loading / error state, and the data table a chart
11
+ * renders beside its drawing. The chart theme itself, `--wr-chart-*`, is this entry
12
+ * point's stylesheet. Every export is `@internal` - an entry point of its own so
13
+ * that the charts and the legend can all import it without one chart importing
14
+ * another, and not a public API: nothing here carries a stability promise, and an
15
+ * app imports a chart instead.
16
+ */
1
17
  import * as i0 from "@angular/core";
2
- import { Signal } from "@angular/core";
18
+ import { ElementRef, Signal } from "@angular/core";
3
19
  /**
4
20
  * @license
5
21
  *
@@ -201,6 +217,88 @@ interface WrChartNumbers<A extends readonly unknown[] = []> {
201
217
  * @internal
202
218
  */
203
219
  export declare function wrChartAxis(min: number, max: number, options?: WrChartAxisOptions): WrChartAxis;
220
+ /**
221
+ * What a chart shows in place of its marks.
222
+ *
223
+ * @internal
224
+ */
225
+ type WrChartStateKind = 'empty' | 'loading' | 'error';
226
+ /**
227
+ * The state a chart is in, with the message it shows for it.
228
+ *
229
+ * @internal
230
+ */
231
+ interface WrChartStateView {
232
+ readonly kind: WrChartStateKind;
233
+ readonly label: string;
234
+ }
235
+ /**
236
+ * The inputs a chart hands {@link useChartState}.
237
+ *
238
+ * @internal
239
+ */
240
+ interface WrChartStateOptions {
241
+ /** The chart's `loading` input. */
242
+ readonly loading: Signal<boolean>;
243
+ /** The chart's `error` input. */
244
+ readonly error: Signal<boolean>;
245
+ /** Whether the chart has nothing to draw. */
246
+ readonly empty: Signal<boolean>;
247
+ /** The chart's `emptyLabel`, `loadingLabel` and `errorLabel` inputs: `null` takes the catalog's. */
248
+ readonly emptyLabel: Signal<string | null>;
249
+ readonly loadingLabel: Signal<string | null>;
250
+ readonly errorLabel: Signal<string | null>;
251
+ }
252
+ /**
253
+ * The state a chart shows instead of its marks, or `null` while it draws them: loading
254
+ * first, then a failed load, then no data. Each message is the chart's own `*Label`
255
+ * input, then the catalog's `chart.loading` / `chart.error` / `chart.empty`, then
256
+ * English. Call in an injection context.
257
+ *
258
+ * One rule for every chart, so a dashboard whose requests are in flight reads the same
259
+ * in every tile, and a chart with no data is a framed "No data" rather than a blank box
260
+ * of whatever height its markup collapses to.
261
+ *
262
+ * @internal
263
+ */
264
+ export declare function useChartState(options: WrChartStateOptions): Signal<WrChartStateView | null>;
265
+ /**
266
+ * The message a chart shows in place of its marks, centred over the frame it keeps.
267
+ *
268
+ * A live region: `role="status"`, so a screen reader hears "Loading…" when a chart
269
+ * starts a request and "No data" when it comes back with none, without the chart taking
270
+ * focus. A failed load is `role="alert"`, which interrupts, since it is the one of the
271
+ * three a reader has to act on. The chart renders it inside the box its marks are drawn
272
+ * in, which it positions; the grid and the axis under it stay.
273
+ *
274
+ * @example
275
+ * ```html
276
+ * @if (state(); as shown) {
277
+ * <wr-chart-state [kind]="shown.kind" [label]="shown.label" />
278
+ * }
279
+ * ```
280
+ *
281
+ * @internal
282
+ */
283
+ export declare class WrChartState {
284
+ /** Which of the three states this is. */
285
+ readonly kind: import("@angular/core").InputSignal<WrChartStateKind>;
286
+ /** The message, already translated. */
287
+ readonly label: import("@angular/core").InputSignal<string>;
288
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrChartState, never>;
289
+ static ɵcmp: i0.ɵɵComponentDeclaration<WrChartState, "wr-chart-state", never, {
290
+ "kind": {
291
+ "alias": "kind";
292
+ "required": true;
293
+ "isSignal": true;
294
+ };
295
+ "label": {
296
+ "alias": "label";
297
+ "required": true;
298
+ "isSignal": true;
299
+ };
300
+ }, {}, never, never, true, never>;
301
+ }
204
302
  /**
205
303
  * The figures a chart draws, as a table that only assistive technology reaches.
206
304
  *
@@ -251,6 +349,112 @@ export declare class WrChartTable {
251
349
  };
252
350
  }, {}, never, never, true, never>;
253
351
  }
352
+ /**
353
+ * The box a chart measures, in px. Both are 0 until it is laid out.
354
+ *
355
+ * @internal
356
+ */
357
+ interface WrChartSize {
358
+ readonly width: number;
359
+ readonly height: number;
360
+ }
361
+ /**
362
+ * Reports `element`'s content box to `listener` whenever it changes, through ONE
363
+ * `ResizeObserver` for every chart on the page. Returns the function that stops it.
364
+ *
365
+ * Seven charts each made an observer of their own, so a dashboard of forty tiles ran
366
+ * forty. An observer is built to watch many targets and delivers them in one callback
367
+ * per frame. One listener per element: observing an element again replaces its listener.
368
+ * Where there is no `ResizeObserver` (a server, an old test environment) nothing is
369
+ * observed and the returned function does nothing.
370
+ *
371
+ * @internal
372
+ */
373
+ export declare function wrChartObserveSize(element: Element, listener: (size: WrChartSize) => void): () => void;
374
+ /**
375
+ * The size of the element `target` holds, as a signal that follows it: `0 × 0` until the
376
+ * element is rendered and laid out, and again once it is gone. On the shared observer of
377
+ * {@link wrChartObserveSize}. Call in an injection context.
378
+ *
379
+ * @internal
380
+ */
381
+ export declare function useChartSize(target: Signal<ElementRef<Element> | Element | undefined>): Signal<WrChartSize>;
382
+ /**
383
+ * What {@link useChartHover} tells a chart.
384
+ *
385
+ * @internal
386
+ */
387
+ interface WrChartHoverHandlers {
388
+ /** The pointer is over the section whose `data-wr-index` is `index`. Not repeated while it stays there. */
389
+ enter(index: number): void;
390
+ /** The pointer left the sections: for the chart's box, or for a part of it that is no section. */
391
+ leave(event: MouseEvent): void;
392
+ }
393
+ /**
394
+ * Dims every mark of `host` but the ones of series `key`, or none for `null`: the chart
395
+ * takes `wr-chart--dim` and the series' own marks `wr-chart-mark--on`, and the shared
396
+ * stylesheet fades the rest to `--wr-chart-dim`. A mark is anything carrying
397
+ * `data-wr-series`, a legend row included.
398
+ *
399
+ * Classes set by hand rather than bound: a binding on every mark is re-evaluated for
400
+ * every mark on each hover change, and this touches the marks of two series.
401
+ *
402
+ * @internal
403
+ */
404
+ export declare function wrChartDim(host: Element, key: string | null): void;
405
+ /**
406
+ * A chart's hover, from ONE pair of listeners on its host however many sections it draws.
407
+ *
408
+ * A section is any element carrying `data-wr-index`: the listener finds the nearest one
409
+ * above whatever the pointer is on and reports its index, once per section entered. A
410
+ * listener pair on every bar was two per bar, and each one a change detection pass over
411
+ * the whole chart for every bar the pointer crossed; these are native listeners, so a
412
+ * move runs no pass at all unless the chart's own handler writes a signal.
413
+ *
414
+ * A gap the chart marks with `data-wr-hold` keeps the section and the dim as they are, so
415
+ * crossing from one bar to the next does not close and reopen the tooltip; a section in
416
+ * such an area takes `wr-chart-section--on`, so a band the chart paints on it stays too.
417
+ *
418
+ * It also drives the shared hover-dim: the nearest element carrying `data-wr-series`
419
+ * names the series under the pointer, and {@link wrChartDim} fades the rest. Legend rows
420
+ * carry the attribute too, so hovering a row dims the chart the same way.
421
+ *
422
+ * Registered after the first render, in the browser only. Call in an injection context.
423
+ *
424
+ * @internal
425
+ */
426
+ export declare function useChartHover(handlers: WrChartHoverHandlers): void;
427
+ /**
428
+ * @license
429
+ *
430
+ * Use of this source code is governed by an MIT-style license that can be
431
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
432
+ */
433
+ /**
434
+ * The `limit` longest of `labels`, each once, longest first: the strings worth measuring.
435
+ *
436
+ * A chart sizes a gutter or keeps room past a bar from a hidden copy of the text that goes
437
+ * there. Copying every label made ten thousand hidden spans for ten thousand bars, to learn
438
+ * the width of one. The widest label is almost always among the longest few by character
439
+ * count - a proportional font can put `1,111` under `999`, which is why this returns a few
440
+ * and not one - so a chart renders these and reads the widest.
441
+ *
442
+ * @internal
443
+ */
444
+ export declare function wrChartLongest(labels: readonly string[], limit?: number): string[];
445
+ /**
446
+ * How many categories each printed label stands for, so no two labels along an axis run
447
+ * into each other: 1 while every label fits its own band, 2 to print every second one,
448
+ * and so on.
449
+ *
450
+ * `extent` is the axis' length and `count` how many bands share it; `labelSize` is the
451
+ * longest label along the axis, and `gap` the least room between two labels. All in the
452
+ * same unit, px in practice. With nothing measured yet - a server render, a chart not
453
+ * laid out - the answer is 1: every label, as the markup had before it was measured.
454
+ *
455
+ * @internal
456
+ */
457
+ export declare function wrChartLabelStep(count: number, extent: number, labelSize: number, gap?: number): number;
254
458
  /**
255
459
  * A marker shape per series, so points are told apart by SHAPE and not only by
256
460
  * hue — the dash list's job, for a chart that draws points rather than lines.
@@ -295,6 +499,19 @@ export declare function wrChartMarkerPath(shape: WrChartMarkerShape, r: number):
295
499
  * @internal
296
500
  */
297
501
  export declare function wrChartMarkerExtent(shape: WrChartMarkerShape, r: number): WrChartMarkerExtent;
502
+ /**
503
+ * The `Intl.NumberFormat` for `locale` and `options`, built once for the page and shared
504
+ * by every chart on it.
505
+ *
506
+ * Building one costs about a tenth of a millisecond, and the charts built them freely:
507
+ * three per chart instance, and one per tick on every pass over an axis, so a table of a
508
+ * hundred sparklines paid for three hundred identical formatters. A formatter holds no
509
+ * state, so one per distinct key serves them all. The key is the locale and the options
510
+ * in the order given; the charts ask with a handful of shapes, so the map stays small.
511
+ *
512
+ * @internal
513
+ */
514
+ export declare function wrChartNumberFormat(locale: string, options?: Intl.NumberFormatOptions): Intl.NumberFormat;
298
515
  /**
299
516
  * The number writers of one chart: its axis ticks, the labels it prints in tight
300
517
  * spaces, and the figures of its tooltip and its accessible names — every one
@@ -340,21 +557,19 @@ export declare function useChartNumbers<A extends readonly unknown[] = []>(value
340
557
  */
341
558
  /**
342
559
  * Default series colours, in order: what a series, a slice or a segment with no
343
- * `color` of its own takes.
560
+ * `color` of its own takes. Each is a token of the chart theme (`--wr-chart-1` to
561
+ * `--wr-chart-8`, declared by `ngwr/charts/core`'s stylesheet), so an app retints
562
+ * every chart by setting the tokens and a chart's markup never names a hex.
344
563
  *
345
- * Four intents and the neutral role, and `info` is deliberately absent: it is the
346
- * same blue as `primary` to every reader (1.061:1 apart in light, 1.004:1 in
347
- * dark, and the same hue), so two adjacent series would be one series with a
348
- * seam. The neutral closes the list because it is the one tone here that no
349
- * intent is near — it used to be the `medium` intent, which v15 removed, and the
350
- * role resolves to the same step of the gray ramp.
564
+ * The palette is not the status intents: a second series is not a success and a
565
+ * fourth is not a danger. The first is the brand colour and the last the neutral
566
+ * role; neighbours alternate between a deep and a mid tone, so two series next to
567
+ * each other differ in lightness as well as in hue. The stylesheet carries the
568
+ * measured contrast of each.
351
569
  *
352
- * The four that sit within 1.061:1 of each other are told apart by hue alone,
353
- * which is why a chart that draws lines pairs each with a dash
354
- * (`WR_CHART_DASHES`) and one that draws points with a shape (`WR_CHART_MARKERS`).
355
- *
356
- * The line chart, the donut chart and the meter group each kept an identical
357
- * copy of this list until 15.1.
570
+ * A chart that draws lines still pairs each with a dash (`WR_CHART_DASHES`), and
571
+ * one that draws points with a shape (`WR_CHART_MARKERS`): colour is never the
572
+ * only thing that tells two series apart.
358
573
  *
359
574
  * @internal
360
575
  */
@@ -365,15 +580,33 @@ export declare const WR_CHART_PALETTE: readonly string[];
365
580
  * @internal
366
581
  */
367
582
  export declare function wrChartColor(index: number): string;
583
+ /**
584
+ * The series colours every chart took before the chart theme: four status intents and
585
+ * the neutral role. Kept for the charts that have not moved onto `--wr-chart-*` yet,
586
+ * so each keeps its look until it does; a chart on the theme reads
587
+ * {@link WR_CHART_PALETTE}.
588
+ *
589
+ * `warning` measures 1.71:1 on a white surface, under the 3:1 a graphic needs, which
590
+ * is one of the reasons the theme's palette replaced it.
591
+ *
592
+ * @internal
593
+ */
594
+ export declare const WR_CHART_LEGACY_PALETTE: readonly string[];
595
+ /**
596
+ * The {@link WR_CHART_LEGACY_PALETTE} colour for the series at `index`, wrapping past
597
+ * the end.
598
+ *
599
+ * @internal
600
+ */
601
+ export declare function wrChartLegacyColor(index: number): string;
368
602
  /**
369
603
  * A dash pattern per series, so lines are told apart by SHAPE and not only by hue.
370
604
  *
371
- * The default palette's colours sit within about 1.06:1 of each other in relative
372
- * luminance, which means a reader with red-green colour blindness sees several of
373
- * these strokes as one grey. A legend that pairs a coloured square with a name
374
- * does not rescue it: matching the square to the line is exactly the step that
375
- * needs hue. Distinguishing series by dash is the standard remedy and the only one
376
- * that survives greyscale, printing and a monochrome display.
605
+ * A reader with red-green colour blindness can see two strokes of similar lightness
606
+ * as one grey, and a legend that pairs a coloured dot with a name does not rescue it:
607
+ * matching the dot to the line is exactly the step that needs hue. Distinguishing
608
+ * series by dash is the standard remedy and the only one that survives greyscale,
609
+ * printing and a monochrome display.
377
610
  *
378
611
  * The FIRST entry is solid on purpose. A single-series chart is the common case
379
612
  * and there is nothing to tell apart in it; the patterns only appear once a second
@@ -388,4 +621,25 @@ export declare const WR_CHART_DASHES: readonly string[];
388
621
  * @internal
389
622
  */
390
623
  export declare function wrChartDash(index: number): string;
391
- export type { WrChartAxis, WrChartAxisOptions, WrChartMarkerExtent, WrChartMarkerShape, WrChartNumbers, WrChartTableData, WrChartTableGroup, WrChartTableRow };
624
+ /**
625
+ * @license
626
+ *
627
+ * Use of this source code is governed by an MIT-style license that can be
628
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
629
+ */
630
+ /**
631
+ * `value` rounded to `digits` decimals for an inline style or an SVG attribute, with
632
+ * `-0` folded to `0`: a share of an axis, a percentage, a coordinate.
633
+ *
634
+ * Eleven charts each kept a copy of this under another name (`short`, `percent`,
635
+ * `fixed`), at three precisions. A written geometry value wants few digits - every one
636
+ * past the fourth is bytes in the DOM and a different string for the same pixel - and
637
+ * never `-0`, which `Math.round` produces for a small negative and which prints as `-0`.
638
+ *
639
+ * Not `wrRound` from `ngwr/utils`, which nudges by `Number.EPSILON` to round a decimal
640
+ * tie the way a person expects and keeps the sign of a zero.
641
+ *
642
+ * @internal
643
+ */
644
+ export declare function wrChartRound(value: number, digits?: number): number;
645
+ export type { WrChartAxis, WrChartAxisOptions, WrChartHoverHandlers, WrChartMarkerExtent, WrChartMarkerShape, WrChartNumbers, WrChartSize, WrChartStateKind, WrChartStateOptions, WrChartStateView, WrChartTableData, WrChartTableGroup, WrChartTableRow };
@@ -53,8 +53,10 @@ export declare class WrDonutChartHarness extends ComponentHarness {
53
53
  /** The name the ring announces — the whole chart's, since the slices announce nothing. */
54
54
  getAccessibleName(): Promise<string | null>;
55
55
  /**
56
- * How many wedges were drawn. A hidden slice draws none. The invisible hover target a
57
- * sliver gets over the ring (`.wr-donut-chart__hit`) is not a wedge and is not counted.
56
+ * How many wedges were drawn. A hidden slice draws none, and nor does a chart that is
57
+ * empty, loading or failed. The invisible hover target a sliver gets over the ring
58
+ * (`.wr-donut-chart__hit`) and the track an empty ring keeps (`.wr-donut-chart__track`)
59
+ * are not wedges and are not counted.
58
60
  */
59
61
  getSliceCount(): Promise<number>;
60
62
  /**
@@ -65,15 +67,19 @@ export declare class WrDonutChartHarness extends ComponentHarness {
65
67
  * answer `null` for it whatever was bound.
66
68
  */
67
69
  isPie(): Promise<boolean>;
68
- /** Whether the legend is rendered (`showLegend`, and at least one slice). */
70
+ /**
71
+ * Whether the legend is rendered: `showLegend` is not off, `legendPosition` is not
72
+ * `none`, and there are two segments or more - or one, with `showLegend` set.
73
+ */
69
74
  hasLegend(): Promise<boolean>;
70
75
  /**
71
76
  * The legend as a {@link WrChartLegendHarness}: each row's key and its hidden state
72
77
  * and, with `toggleableLegend`, the toggles that show and hide a slice. Not the same
73
78
  * thing as {@link getLegend}, which reads the rows' text and stays as it was.
74
79
  *
75
- * Throws when the chart draws no legend (`showLegend` off, or no segments) rather
76
- * than answering with an empty one: {@link hasLegend} is the question for that.
80
+ * Throws when the chart draws no legend (`showLegend` off, `legendPosition="none"`, no
81
+ * segments, or a single one under `showLegend="auto"`) rather than answering with an
82
+ * empty one: {@link hasLegend} is the question for that.
77
83
  */
78
84
  getLegendHarness(): Promise<WrChartLegendHarness>;
79
85
  /** The legend rows in order — the only textual form the data has. Hidden slices included. */
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { WrChartLegendItem } from "ngwr/charts/chart-legend";
2
+ import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
3
3
  /** One slice of a `<wr-donut-chart>`: a name, a value, and optionally its own colour. */
4
4
  interface WrDonutSegment {
5
5
  /** The slice's name, in the legend and the tooltip. */
@@ -26,16 +26,26 @@ interface WrDonutSegment {
26
26
  * <wr-donut-chart [segments]="segments" pie />
27
27
  * ```
28
28
  *
29
- * The legend is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), and with
29
+ * **The look is the chart theme's.** A slice with no `color` takes the next colour of
30
+ * the shared palette (`--wr-chart-1` to `--wr-chart-8`), and every two slices are parted
31
+ * by a line in `--wr-chart-separator`, 1px at any `size`. Hovering a slice or a legend
32
+ * row dims the others.
33
+ *
34
+ * **The legend** is a `ul[wr-chart-legend]` (`ngwr/charts/chart-legend`), placed by
35
+ * `legendPosition` and left out for a single slice unless `showLegend` asks for it. With
30
36
  * `toggleableLegend` its rows show and hide their slices through `hiddenSegments`.
31
37
  *
38
+ * **Empty, loading, error.** With nothing to draw the chart keeps its ring as a track
39
+ * and says "No data"; `loading` and `error` put their own message there in place of the
40
+ * slices.
41
+ *
32
42
  * @see https://ngwr.dev/charts/donut-chart
33
43
  */
34
44
  export declare class WrDonutChart {
35
45
  constructor();
36
46
  /**
37
47
  * The slices, drawn clockwise from twelve o'clock. A segment with no `color`
38
- * takes the next entry from the chart's fallback palette.
48
+ * takes the next colour of the chart palette, `--wr-chart-1` to `--wr-chart-8`.
39
49
  */
40
50
  readonly segments: import("@angular/core").InputSignal<readonly WrDonutSegment[]>;
41
51
  /**
@@ -64,8 +74,42 @@ export declare class WrDonutChart {
64
74
  * back to `donutChart.pieLabel`. @default false
65
75
  */
66
76
  readonly pie: import("@angular/core").InputSignalWithTransform<boolean, any>;
67
- /** Show the legend under the chart. @default true */
68
- readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
77
+ /**
78
+ * Draw the slices edge to edge, with no gap between them: each is stroked in its own
79
+ * colour rather than the surface's, and the host takes the `wr-donut-chart--gapless`
80
+ * modifier. The gap is a shape that tells two neighbours apart without hue, so with it
81
+ * off only the colour change divides them; keep the legend or the tooltip on where the
82
+ * chart has to read without hue. @default false
83
+ */
84
+ readonly gapless: import("@angular/core").InputSignalWithTransform<boolean, any>;
85
+ /**
86
+ * Show the legend. `'auto'` shows it when there is something to tell apart - two
87
+ * segments or more - and leaves it out for a single one; `true` shows it for one
88
+ * segment too. @default 'auto'
89
+ */
90
+ readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean | "auto", unknown>;
91
+ /**
92
+ * Where the legend sits: `bottom` or `top` of the chart as a wrapping row, `start` or
93
+ * `end` of it as a column, or `none` for no legend at all - `hiddenSegments` still
94
+ * hides a slice from outside. @default 'bottom'
95
+ */
96
+ readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
97
+ /**
98
+ * A request for the chart's data is in flight: the slices give way to the loading
99
+ * message, over the ring drawn as a track. @default false
100
+ */
101
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
102
+ /**
103
+ * The chart's data failed to load: the slices give way to the error message. `loading`
104
+ * wins while both are set. @default false
105
+ */
106
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
107
+ /** The message shown when there is nothing to draw. Falls back to `chart.empty`, then `'No data'`. */
108
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
109
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
110
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
111
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
112
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
69
113
  /**
70
114
  * Make each legend row a toggle button that shows and hides its slice, through
71
115
  * `hiddenSegments`. A row is a `<button aria-pressed>`, pressed while its slice is
@@ -93,20 +137,27 @@ export declare class WrDonutChart {
93
137
  readonly centerValue: import("@angular/core").InputSignal<string>;
94
138
  /** Smaller label under the value. Not rendered with `pie`, which has no hole to hold it. */
95
139
  readonly centerLabel: import("@angular/core").InputSignal<string>;
96
- /** Whether the centre text renders: some is given, and there is a hole to print it in. */
140
+ /**
141
+ * Whether the centre text renders: some is given, there is a hole to print it in, and
142
+ * no state's message is there instead.
143
+ */
97
144
  protected readonly showCenter: import("@angular/core").Signal<boolean>;
98
145
  /**
99
- * Show a tooltip with the slice's label and value on hover. Pointer only — the
100
- * legend prints the same numbers, and with `showLegend` off `ariaLabel` is where
101
- * to say them. With `pie`, a slice too thin to land a pointer on, a sliver of a few
102
- * degrees, is hovered over a wider strip than it draws, through an invisible
103
- * `.wr-donut-chart__hit` over the pie: widened toward 12px of outer arc (15° on a chart
104
- * under about 92px) out of what the wider slices beside it can spare, each of which keeps
105
- * that much of its own. A sliver whose neighbours are slivers too, or have little to
106
- * spare, gets a narrower target or none, and is read in the legend. The ring draws no
107
- * such target. @default true
146
+ * Show a tooltip with the slice's label and value on hover. Pointer only — the legend
147
+ * prints the same numbers, and with `showLegend` off `ariaLabel` is where to say
148
+ * them. With `pie`, a slice too thin to land a pointer on, a sliver of a few degrees,
149
+ * is hovered over a wider strip than it draws, through an invisible
150
+ * `.wr-donut-chart__hit` over the pie: widened toward 12px of outer arc (15° on a
151
+ * chart under about 92px) out of what the wider slices beside it can spare, each of
152
+ * which keeps that much of its own. A sliver whose neighbours are slivers too, or
153
+ * have little to spare, gets a narrower target or none, and is read in the legend.
154
+ * The ring draws no such target.
155
+ *
156
+ * By default the pointer passes under the chip to the chart, so the next section
157
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
158
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
108
159
  */
109
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
160
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
110
161
  /**
111
162
  * Writes every value in the legend and the tooltip. `null` uses `Intl.NumberFormat`
112
163
  * in `LOCALE_ID`. The centre text is printed as given.
@@ -174,6 +225,28 @@ export declare class WrDonutChart {
174
225
  * value is not a number.
175
226
  */
176
227
  protected readonly legendItems: import("@angular/core").Signal<readonly WrChartLegendItem[]>;
228
+ /**
229
+ * Whether the chart draws its legend: unless `legendPosition` is `none` or `showLegend`
230
+ * is off, and under `showLegend="auto"` only with two segments or more, since a single
231
+ * slice has nothing to tell apart.
232
+ */
233
+ protected readonly legendShown: import("@angular/core").Signal<boolean>;
234
+ /** Whether the legend comes before the drawing, in the DOM as on screen: above it, or at inline start. */
235
+ protected readonly legendFirst: import("@angular/core").Signal<boolean>;
236
+ /** Whether the legend sits beside the drawing rather than above or below it. */
237
+ protected readonly legendSide: import("@angular/core").Signal<boolean>;
238
+ /**
239
+ * Whether the chart has nothing to draw: no segment, or none with a share to take. A
240
+ * slice hidden from the legend still counts, so hiding every slice is not "No data".
241
+ */
242
+ private readonly empty;
243
+ /** What the chart shows in place of its slices, or `null` while it draws them. */
244
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
245
+ /**
246
+ * The whole ring, or the whole disc of a pie, as one path: the frame the chart keeps
247
+ * while it has no slice to draw - under a state, or with every slice hidden.
248
+ */
249
+ protected readonly track: import("@angular/core").Signal<string | null>;
177
250
  /**
178
251
  * One tooltip for the whole chart, pointing at the hovered slice: at the middle of
179
252
  * its OUTER arc, on the side that part of the ring faces — above for a slice whose
@@ -217,11 +290,46 @@ export declare class WrDonutChart {
217
290
  "required": false;
218
291
  "isSignal": true;
219
292
  };
293
+ "gapless": {
294
+ "alias": "gapless";
295
+ "required": false;
296
+ "isSignal": true;
297
+ };
220
298
  "showLegend": {
221
299
  "alias": "showLegend";
222
300
  "required": false;
223
301
  "isSignal": true;
224
302
  };
303
+ "legendPosition": {
304
+ "alias": "legendPosition";
305
+ "required": false;
306
+ "isSignal": true;
307
+ };
308
+ "loading": {
309
+ "alias": "loading";
310
+ "required": false;
311
+ "isSignal": true;
312
+ };
313
+ "error": {
314
+ "alias": "error";
315
+ "required": false;
316
+ "isSignal": true;
317
+ };
318
+ "emptyLabel": {
319
+ "alias": "emptyLabel";
320
+ "required": false;
321
+ "isSignal": true;
322
+ };
323
+ "loadingLabel": {
324
+ "alias": "loadingLabel";
325
+ "required": false;
326
+ "isSignal": true;
327
+ };
328
+ "errorLabel": {
329
+ "alias": "errorLabel";
330
+ "required": false;
331
+ "isSignal": true;
332
+ };
225
333
  "toggleableLegend": {
226
334
  "alias": "toggleableLegend";
227
335
  "required": false;