ngwr 16.4.0 → 16.5.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 (258) hide show
  1. package/charts/bar-chart/styles/_index.scss +494 -305
  2. package/charts/boxplot-chart/styles/_index.scss +114 -48
  3. package/charts/bullet-chart/styles/_index.scss +113 -42
  4. package/charts/calendar-heatmap/styles/_index.scss +111 -20
  5. package/charts/candlestick-chart/styles/_index.scss +61 -26
  6. package/charts/chart-legend/styles/_index.scss +119 -1
  7. package/charts/core/styles/_index.scss +201 -5
  8. package/charts/donut-chart/styles/_index.scss +76 -21
  9. package/charts/funnel-chart/styles/_index.scss +66 -38
  10. package/charts/gauge/styles/_index.scss +12 -1
  11. package/charts/heatmap-chart/styles/_index.scss +90 -53
  12. package/charts/line-chart/styles/_index.scss +143 -139
  13. package/charts/meter-group/styles/_index.scss +87 -25
  14. package/charts/radar-chart/styles/_index.scss +82 -40
  15. package/charts/scatter-chart/styles/_index.scss +117 -44
  16. package/charts/sparkline/styles/_index.scss +7 -1
  17. package/charts/treemap-chart/styles/_index.scss +94 -42
  18. package/charts/waterfall-chart/styles/_index.scss +150 -87
  19. package/color-picker/styles/_index.scss +7 -3
  20. package/copy-value/styles/_index.scss +21 -2
  21. package/date-stamp/styles/_index.scss +2 -1
  22. package/dialog/styles/_index.scss +6 -0
  23. package/drawer/styles/_index.scss +5 -1
  24. package/fesm2022/ngwr-carousel-testing.mjs +4 -1
  25. package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
  26. package/fesm2022/ngwr-carousel.mjs +21 -2
  27. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  28. package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
  29. package/fesm2022/ngwr-cascader.mjs +48 -4
  30. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  31. package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
  32. package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
  33. package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
  34. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  35. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
  36. package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
  37. package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
  38. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  39. package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
  40. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  41. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
  42. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  43. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
  44. package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
  45. package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
  46. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  47. package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
  48. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  49. package/fesm2022/ngwr-charts-core.mjs +299 -18
  50. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  51. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  52. package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
  53. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  54. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
  55. package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
  57. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
  59. package/fesm2022/ngwr-charts-gauge.mjs +98 -12
  60. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  61. package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
  62. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  63. package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
  64. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  65. package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
  66. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
  68. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  69. package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
  70. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  71. package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
  72. package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
  73. package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
  74. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  75. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
  76. package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
  77. package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  79. package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
  80. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
  82. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  83. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
  84. package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
  85. package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
  86. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  87. package/fesm2022/ngwr-color-picker.mjs +44 -4
  88. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  89. package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
  90. package/fesm2022/ngwr-context-menu.mjs +47 -19
  91. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  92. package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
  93. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
  94. package/fesm2022/ngwr-copy-value.mjs +38 -2
  95. package/fesm2022/ngwr-copy-value.mjs.map +1 -1
  96. package/fesm2022/ngwr-date-picker.mjs +56 -8
  97. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  98. package/fesm2022/ngwr-dialog.mjs +13 -5
  99. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  100. package/fesm2022/ngwr-drawer.mjs +19 -3
  101. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  102. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  103. package/fesm2022/ngwr-dropdown.mjs +35 -6
  104. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  105. package/fesm2022/ngwr-editor.mjs +1 -0
  106. package/fesm2022/ngwr-editor.mjs.map +1 -1
  107. package/fesm2022/ngwr-graph.mjs +81 -13
  108. package/fesm2022/ngwr-graph.mjs.map +1 -1
  109. package/fesm2022/ngwr-i18n-ar.mjs +5 -0
  110. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  111. package/fesm2022/ngwr-i18n-cs.mjs +5 -0
  112. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  113. package/fesm2022/ngwr-i18n-de.mjs +5 -0
  114. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  115. package/fesm2022/ngwr-i18n-en.mjs +5 -0
  116. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  117. package/fesm2022/ngwr-i18n-es.mjs +5 -0
  118. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  119. package/fesm2022/ngwr-i18n-fr.mjs +5 -0
  120. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  121. package/fesm2022/ngwr-i18n-he.mjs +5 -0
  122. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  123. package/fesm2022/ngwr-i18n-hi.mjs +5 -0
  124. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  125. package/fesm2022/ngwr-i18n-id.mjs +5 -0
  126. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  127. package/fesm2022/ngwr-i18n-it.mjs +5 -0
  128. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  129. package/fesm2022/ngwr-i18n-ja.mjs +5 -0
  130. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  131. package/fesm2022/ngwr-i18n-ko.mjs +5 -0
  132. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  133. package/fesm2022/ngwr-i18n-nl.mjs +5 -0
  134. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  135. package/fesm2022/ngwr-i18n-pl.mjs +5 -0
  136. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  137. package/fesm2022/ngwr-i18n-pt.mjs +5 -0
  138. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  139. package/fesm2022/ngwr-i18n-ru.mjs +5 -0
  140. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-sv.mjs +5 -0
  142. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-tr.mjs +5 -0
  144. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-uk.mjs +5 -0
  146. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-vi.mjs +5 -0
  148. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-zh-tw.mjs +5 -0
  150. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-zh.mjs +5 -0
  152. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  153. package/fesm2022/ngwr-lightbox.mjs +20 -3
  154. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  155. package/fesm2022/ngwr-overlay.mjs +21 -2
  156. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  157. package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
  158. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  159. package/fesm2022/ngwr-popconfirm.mjs +41 -5
  160. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  161. package/fesm2022/ngwr-popover.mjs +67 -12
  162. package/fesm2022/ngwr-popover.mjs.map +1 -1
  163. package/fesm2022/ngwr-schema-form.mjs +2 -0
  164. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  165. package/fesm2022/ngwr-table.mjs +2 -0
  166. package/fesm2022/ngwr-table.mjs.map +1 -1
  167. package/fesm2022/ngwr-tour.mjs +14 -9
  168. package/fesm2022/ngwr-tour.mjs.map +1 -1
  169. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  170. package/fesm2022/ngwr-tree.mjs +49 -16
  171. package/fesm2022/ngwr-tree.mjs.map +1 -1
  172. package/fesm2022/ngwr-version.mjs +1 -1
  173. package/fesm2022/ngwr-version.mjs.map +1 -1
  174. package/fesm2022/ngwr-window.mjs +16 -9
  175. package/fesm2022/ngwr-window.mjs.map +1 -1
  176. package/i18n/ar.json +5 -0
  177. package/i18n/cs.json +5 -0
  178. package/i18n/de.json +5 -0
  179. package/i18n/en.json +5 -0
  180. package/i18n/es.json +5 -0
  181. package/i18n/fr.json +5 -0
  182. package/i18n/he.json +5 -0
  183. package/i18n/hi.json +5 -0
  184. package/i18n/id.json +5 -0
  185. package/i18n/it.json +5 -0
  186. package/i18n/ja.json +5 -0
  187. package/i18n/ko.json +5 -0
  188. package/i18n/nl.json +5 -0
  189. package/i18n/pl.json +5 -0
  190. package/i18n/pt.json +5 -0
  191. package/i18n/ru.json +5 -0
  192. package/i18n/sv.json +5 -0
  193. package/i18n/tr.json +5 -0
  194. package/i18n/uk.json +5 -0
  195. package/i18n/vi.json +5 -0
  196. package/i18n/zh-TW.json +5 -0
  197. package/i18n/zh.json +5 -0
  198. package/llms-full.txt +8 -8
  199. package/llms.txt +7 -3
  200. package/package.json +1 -1
  201. package/popconfirm/styles/_index.scss +6 -0
  202. package/popover/styles/_index.scss +24 -13
  203. package/schematics/use/symbol-map.json +1 -0
  204. package/skills/ngwr/references/catalog.md +1 -1
  205. package/tour/styles/_index.scss +6 -0
  206. package/types/ngwr-carousel-testing.d.ts +6 -4
  207. package/types/ngwr-carousel.d.ts +14 -3
  208. package/types/ngwr-cascader-testing.d.ts +4 -3
  209. package/types/ngwr-cascader.d.ts +27 -3
  210. package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
  211. package/types/ngwr-charts-bar-chart.d.ts +220 -48
  212. package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
  213. package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
  214. package/types/ngwr-charts-bullet-chart.d.ts +72 -12
  215. package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
  216. package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
  217. package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
  218. package/types/ngwr-charts-chart-legend.d.ts +142 -5
  219. package/types/ngwr-charts-core.d.ts +259 -21
  220. package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
  221. package/types/ngwr-charts-donut-chart.d.ts +124 -16
  222. package/types/ngwr-charts-funnel-chart.d.ts +62 -6
  223. package/types/ngwr-charts-gauge-testing.d.ts +5 -1
  224. package/types/ngwr-charts-gauge.d.ts +72 -10
  225. package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
  226. package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
  227. package/types/ngwr-charts-line-chart.d.ts +215 -86
  228. package/types/ngwr-charts-meter-group.d.ts +96 -7
  229. package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
  230. package/types/ngwr-charts-radar-chart.d.ts +148 -28
  231. package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
  232. package/types/ngwr-charts-scatter-chart.d.ts +188 -18
  233. package/types/ngwr-charts-sparkline.d.ts +26 -4
  234. package/types/ngwr-charts-treemap-chart.d.ts +121 -23
  235. package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
  236. package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
  237. package/types/ngwr-color-picker.d.ts +27 -0
  238. package/types/ngwr-context-menu-testing.d.ts +10 -9
  239. package/types/ngwr-context-menu.d.ts +17 -0
  240. package/types/ngwr-copy-value.d.ts +8 -0
  241. package/types/ngwr-date-picker.d.ts +34 -2
  242. package/types/ngwr-dialog.d.ts +30 -10
  243. package/types/ngwr-drawer.d.ts +32 -1
  244. package/types/ngwr-dropdown-testing.d.ts +8 -5
  245. package/types/ngwr-dropdown.d.ts +29 -6
  246. package/types/ngwr-graph.d.ts +22 -6
  247. package/types/ngwr-lightbox.d.ts +15 -0
  248. package/types/ngwr-overlay.d.ts +16 -1
  249. package/types/ngwr-popconfirm-testing.d.ts +11 -2
  250. package/types/ngwr-popconfirm.d.ts +28 -1
  251. package/types/ngwr-popover.d.ts +59 -9
  252. package/types/ngwr-table.d.ts +1 -1
  253. package/types/ngwr-tour.d.ts +21 -2
  254. package/types/ngwr-tree-testing.d.ts +1 -2
  255. package/types/ngwr-tree.d.ts +33 -2
  256. package/types/ngwr-version.d.ts +1 -1
  257. package/types/ngwr-window.d.ts +14 -11
  258. package/window/styles/_index.scss +5 -10
@@ -74,6 +74,11 @@ type WrFunnelConversion = 'both' | 'previous' | 'first' | 'none';
74
74
  * the same figures as a table a reader can walk cell by cell. No part of the chart is a
75
75
  * tab stop.
76
76
  *
77
+ * **On the chart theme.** The bars are the first colour of the chart palette, the band
78
+ * between two of them the theme's track, and the corners the theme's radius. Hovering a
79
+ * stage dims the others. With no stage the chart keeps a box and says "No data";
80
+ * `loading` and `error` put their own message there in place of the stages.
81
+ *
77
82
  * Under RTL the labels and the figures swap sides; the bars and the bands are centred,
78
83
  * so they read the same in both directions. A label takes its direction from its own
79
84
  * text, so a Latin one is ellipsised at its end on an RTL page, and a figure from its
@@ -98,8 +103,9 @@ export declare class WrFunnelChart {
98
103
  /**
99
104
  * The colour of a stage with no `color` of its own. One colour by default, because the
100
105
  * stages are one quantity measured along a sequence, not categories: every stage is
101
- * named in text beside its bar, so colour tells nothing apart here.
102
- * @default 'var(--wr-color-primary)'
106
+ * named in text beside its bar, so colour tells nothing apart here. The first colour of
107
+ * the chart palette, which is the brand colour unless the theme says otherwise.
108
+ * @default 'var(--wr-chart-1)'
103
109
  */
104
110
  readonly color: import("@angular/core").InputSignal<string>;
105
111
  /**
@@ -125,9 +131,29 @@ export declare class WrFunnelChart {
125
131
  readonly valueLabel: import("@angular/core").InputSignal<string | null>;
126
132
  /**
127
133
  * Show a tooltip with the stage's label, value and both conversions on hover. Pointer
128
- * only — each stage's accessible name already carries the same figures. @default true
134
+ * only — each stage's accessible name already carries the same figures.
135
+ *
136
+ * By default the pointer passes under the chip to the chart, so the next section
137
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
138
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
139
+ */
140
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
141
+ /**
142
+ * A request for the chart's data is in flight: the stages give way to the loading
143
+ * message. @default false
144
+ */
145
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
146
+ /**
147
+ * The chart's data failed to load: the stages give way to the error message. `loading`
148
+ * wins while both are set. @default false
129
149
  */
130
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
150
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
151
+ /** The message shown when there is no stage. Falls back to `chart.empty`, then `'No data'`. */
152
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
153
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
154
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
155
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
156
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
131
157
  /**
132
158
  * Writes every value the chart shows: beside the bars, in the tooltip, in the accessible
133
159
  * names and in the data table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`.
@@ -196,8 +222,11 @@ export declare class WrFunnelChart {
196
222
  label: string;
197
223
  value: number | null;
198
224
  color: string;
199
- /** The bar's inline width, a percentage of the track. */
200
- width: string;
225
+ /**
226
+ * The bar's length as a share of the track, 0 to 1: the bar is as wide as the
227
+ * track and scaled to this, so a new value moves a transform and lays nothing out.
228
+ */
229
+ scale: number;
201
230
  valueText: string;
202
231
  previousText: string;
203
232
  firstText: string;
@@ -209,6 +238,8 @@ export declare class WrFunnelChart {
209
238
  /** The paint of the stage above, where the band starts. */
210
239
  bandFrom: string;
211
240
  }[]>;
241
+ /** What the chart shows in place of its stages, or `null` while it draws them. */
242
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
212
243
  /**
213
244
  * The figures for `dataTable`: the chart's name as the caption, a row per stage, and its
214
245
  * value and both conversions as the columns, each cell written as the tooltip writes it.
@@ -277,6 +308,31 @@ export declare class WrFunnelChart {
277
308
  "required": false;
278
309
  "isSignal": true;
279
310
  };
311
+ "loading": {
312
+ "alias": "loading";
313
+ "required": false;
314
+ "isSignal": true;
315
+ };
316
+ "error": {
317
+ "alias": "error";
318
+ "required": false;
319
+ "isSignal": true;
320
+ };
321
+ "emptyLabel": {
322
+ "alias": "emptyLabel";
323
+ "required": false;
324
+ "isSignal": true;
325
+ };
326
+ "loadingLabel": {
327
+ "alias": "loadingLabel";
328
+ "required": false;
329
+ "isSignal": true;
330
+ };
331
+ "errorLabel": {
332
+ "alias": "errorLabel";
333
+ "required": false;
334
+ "isSignal": true;
335
+ };
280
336
  "valueFormat": {
281
337
  "alias": "valueFormat";
282
338
  "required": false;
@@ -25,7 +25,11 @@ export declare class WrGaugeHarness extends ComponentHarness {
25
25
  /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */
26
26
  static with(options?: WrGaugeHarnessFilters): HarnessPredicate<WrGaugeHarness>;
27
27
  private readonly surface;
28
- /** The role the dial announces — `meter`, which is what a gauge is. */
28
+ /**
29
+ * The role the dial announces — `meter`, which is what a gauge is. Under `loading` or
30
+ * `error` it is a `group`: there is no reading to announce, so the value attributes are
31
+ * gone and the methods that read them say so.
32
+ */
29
33
  getRole(): Promise<string | null>;
30
34
  /** The dial's accessible name. */
31
35
  getAccessibleName(): Promise<string | null>;
@@ -9,6 +9,15 @@ import * as i0 from "@angular/core";
9
9
  * <wr-gauge [value]="9.5" [min]="0" [max]="10" suffix="/10" valueColor="var(--wr-color-warning)" />
10
10
  * ```
11
11
  *
12
+ * **The look is the chart theme's.** The arc is the first colour of the chart palette
13
+ * (`--wr-chart-1`) over a track in `--wr-chart-track`, and `strokeWidth` is in CSS pixels,
14
+ * so two gauges of different sizes draw the same arc. `valueColor` takes any colour: a
15
+ * palette token, or an intent once the reading crosses a threshold.
16
+ *
17
+ * **Loading and error.** `loading` and `error` put their message in place of the reading,
18
+ * over the track; the gauge is a named group rather than a meter while it has no reading
19
+ * to announce.
20
+ *
12
21
  * @see https://ngwr.dev/charts/gauge
13
22
  */
14
23
  export declare class WrGauge {
@@ -34,18 +43,23 @@ export declare class WrGauge {
34
43
  readonly max: import("@angular/core").InputSignalWithTransform<number, unknown>;
35
44
  /** Diameter in CSS pixels. @default 160 */
36
45
  readonly size: import("@angular/core").InputSignalWithTransform<number, unknown>;
37
- /** Arc stroke thickness in viewBox units (out of 100). @default 10 */
46
+ /**
47
+ * Arc stroke thickness in CSS pixels, the same at any `size`. It was a share of the
48
+ * drawing until 16.5, so a gauge twice the size drew an arc twice as thick.
49
+ * @default 16
50
+ */
38
51
  readonly strokeWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
39
52
  /**
40
- * Colour of the unfilled arc behind the value. Any CSS colour; the default is
41
- * `--wr-border-base` at 60%, which reads as a hairline in both themes.
42
- * @default color-mix(in srgb, var(--wr-border-base) 60%, transparent)
53
+ * Colour of the unfilled arc behind the value. Any CSS colour; the default is the
54
+ * chart theme's track, shared with the meter group and the bullet chart.
55
+ * @default 'var(--wr-chart-track)'
43
56
  */
44
57
  readonly trackColor: import("@angular/core").InputSignal<string>;
45
58
  /**
46
- * Colour of the filled arc. Any CSS colour — pass an intent token to tie it to
59
+ * Colour of the filled arc. Any CSS colour: the default is the first colour of the
60
+ * chart palette; pass another (`var(--wr-chart-3)`), or an intent token to tie it to
47
61
  * a threshold, e.g. `var(--wr-color-danger)` once the value crosses one.
48
- * @default 'var(--wr-color-primary)'
62
+ * @default 'var(--wr-chart-1)'
49
63
  */
50
64
  readonly valueColor: import("@angular/core").InputSignal<string>;
51
65
  /** Show the value text in the center. @default true */
@@ -56,10 +70,28 @@ export declare class WrGauge {
56
70
  */
57
71
  readonly suffix: import("@angular/core").InputSignal<string>;
58
72
  /**
59
- * Show a tooltip with the reading on hover, named by `ariaLabel` when one is
60
- * given. Pointer only — the meter announces the same reading. @default true
73
+ * A request for the reading is in flight: the arc and the number give way to the
74
+ * loading message, over the track. @default false
75
+ */
76
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
77
+ /**
78
+ * The reading failed to load: the arc and the number give way to the error message.
79
+ * `loading` wins while both are set. @default false
61
80
  */
62
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
81
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
82
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
83
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
84
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
85
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
86
+ /**
87
+ * Show a tooltip with the reading on hover, named by `ariaLabel` when one is given.
88
+ * Pointer only — the meter announces the same reading.
89
+ *
90
+ * By default the pointer passes under the chip to the chart, so the next section
91
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
92
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
93
+ */
94
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
63
95
  /**
64
96
  * Writes the reading in the centre, the tooltip and `aria-valuetext`, before
65
97
  * `suffix`. `null` uses `Intl.NumberFormat` in `LOCALE_ID`. `aria-valuenow` stays a
@@ -71,6 +103,13 @@ export declare class WrGauge {
71
103
  private readonly surface;
72
104
  protected readonly cx = 50;
73
105
  protected readonly cy = 50;
106
+ /**
107
+ * The stroke in the viewBox's units. The drawing is `size` px wide and 100 units wide,
108
+ * so a width in pixels is that many hundredths of `size`: worked out from the input
109
+ * rather than measured, since the surface is laid out at exactly `size`, and the radius
110
+ * and the viewBox depend on it, which a non-scaling stroke would leave behind.
111
+ */
112
+ protected readonly stroke: import("@angular/core").Signal<number>;
74
113
  protected readonly radius: import("@angular/core").Signal<number>;
75
114
  /**
76
115
  * The reading as it can actually be shown. Only `ratio` used to be clamped, so an
@@ -84,7 +123,10 @@ export declare class WrGauge {
84
123
  protected readonly ratio: import("@angular/core").Signal<number>;
85
124
  protected readonly trackPath: import("@angular/core").Signal<string>;
86
125
  protected readonly valuePath: import("@angular/core").Signal<string | null>;
87
- protected readonly viewBox = "0 0 100 56";
126
+ /** A unit past the caps, which end half a stroke below the centre. */
127
+ protected readonly viewBox: import("@angular/core").Signal<string>;
128
+ /** Loading, or a failed load, or `null` while the gauge shows its reading. A gauge always has a value, so it is never empty. */
129
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
88
130
  /**
89
131
  * The reading as the meter announces it — `aria-valuetext`, the number plus the
90
132
  * suffix — so the tooltip, the printed value and a screen reader all say one
@@ -149,6 +191,26 @@ export declare class WrGauge {
149
191
  "required": false;
150
192
  "isSignal": true;
151
193
  };
194
+ "loading": {
195
+ "alias": "loading";
196
+ "required": false;
197
+ "isSignal": true;
198
+ };
199
+ "error": {
200
+ "alias": "error";
201
+ "required": false;
202
+ "isSignal": true;
203
+ };
204
+ "loadingLabel": {
205
+ "alias": "loadingLabel";
206
+ "required": false;
207
+ "isSignal": true;
208
+ };
209
+ "errorLabel": {
210
+ "alias": "errorLabel";
211
+ "required": false;
212
+ "isSignal": true;
213
+ };
152
214
  "tooltip": {
153
215
  "alias": "tooltip";
154
216
  "required": false;
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ import { WrChartLegendPosition } from "ngwr/charts/chart-legend";
2
3
  import { WrChartTableData } from "ngwr/charts/core";
3
4
  /**
4
5
  * @license
@@ -39,6 +40,8 @@ interface Cell {
39
40
  * rounded so the inline style stays short. `null` for an empty cell.
40
41
  */
41
42
  readonly level: number | null;
43
+ /** Its level's paint, a step of the sequential scale or a mix of two. `null` for an empty cell. */
44
+ readonly paint: string | null;
42
45
  /** The number printed in the cell with `showValues`, compact from a thousand; `''` when it prints none. */
43
46
  readonly text: string;
44
47
  }
@@ -64,13 +67,20 @@ interface Cell {
64
67
  * ```
65
68
  *
66
69
  * **The scale.** It runs from `min` to `max`, each the data's own unless given, and is cut
67
- * into `levels` equal bands. A cell takes its band's level: the lowest is a faint tint of
68
- * `color` and the highest is `color` itself, every level between mixed from the two in
69
- * OKLab, whose lightness moves evenly, so the levels look evenly spaced in either colour
70
- * scheme. A value outside a given `min` or `max` takes the end level; the tooltip and the
71
- * data table still give its own figure. A legend under the matrix keys the levels from the
72
- * scale's minimum to its maximum. A scale with no span — every value the same, an
73
- * all-zero matrix included — has one level, the lowest, and the legend keys that one.
70
+ * into `levels` equal bands. A cell takes its band's level, painted from the chart
71
+ * theme's sequential scale: `--wr-chart-seq-1`, a tint of the first palette colour, for
72
+ * the lowest, up to `--wr-chart-seq-5`, the colour itself, for the highest. Five levels
73
+ * are the five steps; more are mixed between two steps. `color` paints the same five
74
+ * steps from a colour of the chart's own. Every cell carries a faint edge, so the lowest
75
+ * level still reads as a cell on a dark surface. A value outside a given `min` or `max`
76
+ * takes the end level; the tooltip and the data table still give its own figure. A scale
77
+ * key (`legendPosition`: under the matrix, over it or beside it) keys the levels from
78
+ * the scale's minimum to its maximum. A scale with no span — every value the same, an
79
+ * all-zero matrix included — has one level, the lowest, and the key shows that one.
80
+ *
81
+ * **Empty, loading, error.** A matrix with no row or no column keeps a box and says
82
+ * "No data"; `loading` and `error` put their own message over the row and column names
83
+ * in place of the cells.
74
84
  *
75
85
  * **An empty cell is no data, never zero.** A `null`, a value that is not a finite number,
76
86
  * or one a shorter row does not reach is drawn hatched and outlined, not as the lowest
@@ -127,10 +137,11 @@ export declare class WrHeatmapChart {
127
137
  readonly columns: import("@angular/core").InputSignal<readonly string[]>;
128
138
  /**
129
139
  * The colour of the highest level: any CSS colour, `var(--wr-…)` included. Every lower
130
- * level is mixed from it toward the surface, the lowest a faint tint.
131
- * @default 'var(--wr-color-primary)'
140
+ * level is stepped from it toward the surface, as the chart theme steps its own scale.
141
+ * `null` paints the levels with the theme's sequential scale, `--wr-chart-seq-1` to
142
+ * `-5`, which an app retints for every chart at once. @default null
132
143
  */
133
- readonly color: import("@angular/core").InputSignal<string>;
144
+ readonly color: import("@angular/core").InputSignal<string | null>;
134
145
  /**
135
146
  * The value of the lowest level. `null` takes the lowest value in `data`; a value given
136
147
  * holds the scale there, and a cell below it takes the lowest level. @default null
@@ -161,14 +172,42 @@ export declare class WrHeatmapChart {
161
172
  * @default false
162
173
  */
163
174
  readonly showValues: import("@angular/core").InputSignalWithTransform<boolean, any>;
164
- /** Show the colour-scale legend under the matrix, from `min` to `max`, with a key for an empty cell while there is one. @default true */
175
+ /** Show the scale key, from `min` to `max`, with a key for an empty cell while there is one. @default true */
165
176
  readonly showLegend: import("@angular/core").InputSignalWithTransform<boolean, any>;
166
177
  /**
167
- * Show a tooltip for the cell under the pointer: its row's name, its column's name and
168
- * its value, or `noDataLabel` for an empty cell. Pointer only — the data table is where
169
- * the same numbers are for a keyboard or a screen reader. @default true
178
+ * Where the scale key sits: `bottom` or `top` of the matrix, `start` or `end` of it, or
179
+ * `none` for no key at all. @default 'bottom'
180
+ */
181
+ readonly legendPosition: import("@angular/core").InputSignal<WrChartLegendPosition>;
182
+ /**
183
+ * A request for the chart's data is in flight: the cells give way to the loading
184
+ * message, beside the row and column names the chart had. @default false
185
+ */
186
+ readonly loading: import("@angular/core").InputSignalWithTransform<boolean, any>;
187
+ /**
188
+ * The chart's data failed to load: the cells give way to the error message. `loading`
189
+ * wins while both are set. @default false
190
+ */
191
+ readonly error: import("@angular/core").InputSignalWithTransform<boolean, any>;
192
+ /**
193
+ * The message shown for a matrix with no row or no column. Falls back to `chart.empty`,
194
+ * then `'No data'`. An empty CELL is `noDataLabel`'s.
195
+ */
196
+ readonly emptyLabel: import("@angular/core").InputSignal<string | null>;
197
+ /** The message shown while `loading`. Falls back to `chart.loading`, then `'Loading…'`. */
198
+ readonly loadingLabel: import("@angular/core").InputSignal<string | null>;
199
+ /** The message shown on `error`. Falls back to `chart.error`, then `'Could not load'`. */
200
+ readonly errorLabel: import("@angular/core").InputSignal<string | null>;
201
+ /**
202
+ * Show a tooltip for the cell under the pointer: its row's name, its column's name
203
+ * and its value, or `noDataLabel` for an empty cell. Pointer only — the data table is
204
+ * where the same numbers are for a keyboard or a screen reader.
205
+ *
206
+ * By default the pointer passes under the chip to the chart, so the next section
207
+ * answers at once and the chip closes off the chart; `'hoverable'` lets the pointer
208
+ * rest on the chip instead, as WCAG 1.4.13 asks of a hint. @default true
170
209
  */
171
- readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean, any>;
210
+ readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
172
211
  /**
173
212
  * Writes every number the chart shows: the values in the cells, the legend, the tooltip
174
213
  * and the data table. `null` uses `Intl.NumberFormat` in `LOCALE_ID`, compact in the
@@ -205,8 +244,11 @@ export declare class WrHeatmapChart {
205
244
  private readonly positions;
206
245
  private readonly grid;
207
246
  private readonly columnStrip;
208
- /** The column names' strip's width, as last observed: what measures the names again on a resize. */
209
- private readonly stripWidth;
247
+ /**
248
+ * The column names' strip's box, as last observed: what measures the names again on a
249
+ * resize. On the observer every chart shares.
250
+ */
251
+ private readonly stripSize;
210
252
  /**
211
253
  * Which column names are drawn. Every one until the browser has measured them, so the
212
254
  * server and the first paint carry every name, cut where it does not fit.
@@ -245,12 +287,23 @@ export declare class WrHeatmapChart {
245
287
  protected readonly legend: import("@angular/core").Signal<{
246
288
  min: string;
247
289
  max: null;
248
- levels: number[];
290
+ steps: string[];
249
291
  } | {
250
292
  min: string;
251
293
  max: string;
252
- levels: number[];
294
+ steps: string[];
253
295
  } | null>;
296
+ /**
297
+ * Whether the chart draws its scale key: with `showLegend`, unless `legendPosition` is
298
+ * `none`, and while there is a scale or an empty cell to key.
299
+ */
300
+ protected readonly legendShown: import("@angular/core").Signal<boolean>;
301
+ /** Whether the key comes before the matrix, in the DOM as on screen: above it, or at inline start. */
302
+ protected readonly legendFirst: import("@angular/core").Signal<boolean>;
303
+ /** Whether the key sits beside the matrix rather than above or below it. */
304
+ protected readonly legendSide: import("@angular/core").Signal<boolean>;
305
+ /** What the chart shows in place of its cells, or `null` while it draws them. */
306
+ protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
254
307
  /**
255
308
  * The figures for `dataTable`: the matrix's name as the caption, a column per column and
256
309
  * a row per row, every value written as the tooltip writes it and an empty cell as
@@ -281,7 +334,7 @@ export declare class WrHeatmapChart {
281
334
  * tap fires the compatibility `mousemove` and no `pointermove`. Over the gap between two
282
335
  * cells it is on none, and the tooltip starts to leave.
283
336
  */
284
- protected onPointerMove(event: MouseEvent): void;
337
+ private onPointerMove;
285
338
  static ɵfac: i0.ɵɵFactoryDeclaration<WrHeatmapChart, never>;
286
339
  static ɵcmp: i0.ɵɵComponentDeclaration<WrHeatmapChart, "wr-heatmap-chart", never, {
287
340
  "data": {
@@ -329,6 +382,36 @@ export declare class WrHeatmapChart {
329
382
  "required": false;
330
383
  "isSignal": true;
331
384
  };
385
+ "legendPosition": {
386
+ "alias": "legendPosition";
387
+ "required": false;
388
+ "isSignal": true;
389
+ };
390
+ "loading": {
391
+ "alias": "loading";
392
+ "required": false;
393
+ "isSignal": true;
394
+ };
395
+ "error": {
396
+ "alias": "error";
397
+ "required": false;
398
+ "isSignal": true;
399
+ };
400
+ "emptyLabel": {
401
+ "alias": "emptyLabel";
402
+ "required": false;
403
+ "isSignal": true;
404
+ };
405
+ "loadingLabel": {
406
+ "alias": "loadingLabel";
407
+ "required": false;
408
+ "isSignal": true;
409
+ };
410
+ "errorLabel": {
411
+ "alias": "errorLabel";
412
+ "required": false;
413
+ "isSignal": true;
414
+ };
332
415
  "tooltip": {
333
416
  "alias": "tooltip";
334
417
  "required": false;
@@ -39,6 +39,11 @@ interface WrLineChartTableRow {
39
39
  * browser-run harness, or a spec that gives the drawing a box (`getBoundingClientRect`)
40
40
  * and dispatches the move itself.
41
41
  *
42
+ * **The tooltip is read off the document.** It is the chip every chart shares, drawn in
43
+ * an overlay outside the chart under the chart's own class, `.wr-line-chart__tooltip`.
44
+ * One chip is up at a time for a pointer, so with several line charts on a page the
45
+ * tooltip readers answer for whichever of them opened it.
46
+ *
42
47
  * @example
43
48
  * ```ts
44
49
  * const chart = await loader.getHarness(WrLineChartHarness);
@@ -56,7 +61,7 @@ export declare class WrLineChartHarness extends ComponentHarness {
56
61
  static with(options?: WrLineChartHarnessFilters): HarnessPredicate<WrLineChartHarness>;
57
62
  /** The plot's accessible name — the only name the drawing has. */
58
63
  getAccessibleName(): Promise<string | null>;
59
- /** Whether the legend is rendered (`showLegend`, and at least one series). */
64
+ /** Whether the legend is rendered: `showLegend`, which leaves it out for a single series unless it is `true`. */
60
65
  hasLegend(): Promise<boolean>;
61
66
  /** The series names from the legend, in order — hidden series included, since their rows stay. */
62
67
  getSeriesLabels(): Promise<string[]>;
@@ -118,7 +123,14 @@ export declare class WrLineChartHarness extends ComponentHarness {
118
123
  getTableRows(): Promise<WrLineChartTableRow[]>;
119
124
  /** Whether the horizontal grid lines are drawn (`showGrid`). */
120
125
  hasGrid(): Promise<boolean>;
121
- /** The y-axis tick labels, top to bottom as drawn. */
126
+ /** Whether the y axis' scale is printed beside the plot (`showAxis`). */
127
+ hasAxis(): Promise<boolean>;
128
+ /**
129
+ * The message the chart shows in place of its lines: "No data" with nothing to draw,
130
+ * or the loading or error message. `null` while it draws its lines.
131
+ */
132
+ getStateLabel(): Promise<string | null>;
133
+ /** The y-axis tick labels, top to bottom as drawn. `[]` with `showAxis` off. */
122
134
  getYTicks(): Promise<string[]>;
123
135
  /**
124
136
  * The x-axis labels printed under the plot, in order: every one while the widest fits
@@ -132,6 +144,8 @@ export declare class WrLineChartHarness extends ComponentHarness {
132
144
  getTooltipLabel(): Promise<string | null>;
133
145
  /** The tooltip's rows, one per series shown with a reading at that x, or `[]` while it is closed. */
134
146
  getTooltipRows(): Promise<WrLineChartTooltipRow[]>;
147
+ /** The chart's chip in the overlay, or `null` while it is closed. */
148
+ private chip;
135
149
  private assertDataTable;
136
150
  /**
137
151
  * The plot's height in pixels, read off the `style` ATTRIBUTE.