ngwr 16.7.1 → 16.9.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 (236) hide show
  1. package/charts/donut-chart/styles/_index.scss +9 -3
  2. package/charts/meter-group/styles/_index.scss +8 -1
  3. package/charts/sparkline/styles/_index.scss +6 -3
  4. package/command-palette/styles/_index.scss +10 -0
  5. package/descriptions/styles/_index.scss +91 -0
  6. package/fesm2022/ngwr-anchor.mjs +48 -10
  7. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  8. package/fesm2022/ngwr-carousel.mjs +3 -2
  9. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  10. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -1
  11. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  12. package/fesm2022/ngwr-charts-core.mjs +17 -0
  13. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  14. package/fesm2022/ngwr-charts-donut-chart-testing.mjs +27 -0
  15. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  16. package/fesm2022/ngwr-charts-donut-chart.mjs +54 -6
  17. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  18. package/fesm2022/ngwr-charts-meter-group-testing.mjs +27 -0
  19. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  20. package/fesm2022/ngwr-charts-meter-group.mjs +54 -6
  21. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  22. package/fesm2022/ngwr-charts-sparkline-testing.mjs +27 -0
  23. package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
  24. package/fesm2022/ngwr-charts-sparkline.mjs +45 -4
  25. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  26. package/fesm2022/ngwr-checkbox.mjs +38 -3
  27. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  28. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  29. package/fesm2022/ngwr-color-picker.mjs +4 -3
  30. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  31. package/fesm2022/ngwr-command-palette.mjs +39 -19
  32. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  33. package/fesm2022/ngwr-compare.mjs +4 -0
  34. package/fesm2022/ngwr-compare.mjs.map +1 -1
  35. package/fesm2022/ngwr-context-menu.mjs +7 -2
  36. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  37. package/fesm2022/ngwr-cookie.mjs +6 -3
  38. package/fesm2022/ngwr-cookie.mjs.map +1 -1
  39. package/fesm2022/ngwr-date-stamp-testing.mjs +3 -0
  40. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
  41. package/fesm2022/ngwr-date-stamp.mjs +81 -4
  42. package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
  43. package/fesm2022/ngwr-date.mjs +16 -2
  44. package/fesm2022/ngwr-date.mjs.map +1 -1
  45. package/fesm2022/ngwr-density.mjs +4 -3
  46. package/fesm2022/ngwr-density.mjs.map +1 -1
  47. package/fesm2022/ngwr-descriptions.mjs +77 -20
  48. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  49. package/fesm2022/ngwr-dialog.mjs +10 -7
  50. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  51. package/fesm2022/ngwr-directives.mjs +12 -0
  52. package/fesm2022/ngwr-directives.mjs.map +1 -1
  53. package/fesm2022/ngwr-drawer.mjs +14 -8
  54. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  55. package/fesm2022/ngwr-editor.mjs +1 -0
  56. package/fesm2022/ngwr-editor.mjs.map +1 -1
  57. package/fesm2022/ngwr-file-upload.mjs +4 -5
  58. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  59. package/fesm2022/ngwr-form.mjs.map +1 -1
  60. package/fesm2022/ngwr-hotkey.mjs +10 -5
  61. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  62. package/fesm2022/ngwr-i18n-ar.mjs +18 -5
  63. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  64. package/fesm2022/ngwr-i18n-cs.mjs +18 -5
  65. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  66. package/fesm2022/ngwr-i18n-de.mjs +18 -5
  67. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  68. package/fesm2022/ngwr-i18n-en.mjs +18 -5
  69. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  70. package/fesm2022/ngwr-i18n-es.mjs +18 -5
  71. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  72. package/fesm2022/ngwr-i18n-fr.mjs +18 -5
  73. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  74. package/fesm2022/ngwr-i18n-he.mjs +18 -5
  75. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  76. package/fesm2022/ngwr-i18n-hi.mjs +18 -5
  77. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  78. package/fesm2022/ngwr-i18n-id.mjs +18 -5
  79. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  80. package/fesm2022/ngwr-i18n-it.mjs +18 -5
  81. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  82. package/fesm2022/ngwr-i18n-ja.mjs +18 -5
  83. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  84. package/fesm2022/ngwr-i18n-kk.mjs +18 -5
  85. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
  86. package/fesm2022/ngwr-i18n-ko.mjs +18 -5
  87. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  88. package/fesm2022/ngwr-i18n-nl.mjs +18 -5
  89. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  90. package/fesm2022/ngwr-i18n-pl.mjs +18 -5
  91. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  92. package/fesm2022/ngwr-i18n-pt.mjs +18 -5
  93. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  94. package/fesm2022/ngwr-i18n-ru.mjs +18 -5
  95. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  96. package/fesm2022/ngwr-i18n-sv.mjs +18 -5
  97. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  98. package/fesm2022/ngwr-i18n-tr.mjs +18 -5
  99. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  100. package/fesm2022/ngwr-i18n-uk.mjs +18 -5
  101. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  102. package/fesm2022/ngwr-i18n-vi.mjs +18 -5
  103. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  104. package/fesm2022/ngwr-i18n-zh-tw.mjs +18 -5
  105. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  106. package/fesm2022/ngwr-i18n-zh.mjs +18 -5
  107. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  108. package/fesm2022/ngwr-i18n.mjs +7 -6
  109. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  110. package/fesm2022/ngwr-image-cropper-testing.mjs +33 -0
  111. package/fesm2022/ngwr-image-cropper-testing.mjs.map +1 -1
  112. package/fesm2022/ngwr-image-cropper.mjs +536 -30
  113. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  114. package/fesm2022/ngwr-input-number.mjs +33 -10
  115. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  116. package/fesm2022/ngwr-input-otp.mjs +24 -10
  117. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  118. package/fesm2022/ngwr-input.mjs +2 -2
  119. package/fesm2022/ngwr-input.mjs.map +1 -1
  120. package/fesm2022/ngwr-knob.mjs +5 -0
  121. package/fesm2022/ngwr-knob.mjs.map +1 -1
  122. package/fesm2022/ngwr-lightbox.mjs +5 -3
  123. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  124. package/fesm2022/ngwr-mention.mjs +2 -0
  125. package/fesm2022/ngwr-mention.mjs.map +1 -1
  126. package/fesm2022/ngwr-meta.mjs +43 -8
  127. package/fesm2022/ngwr-meta.mjs.map +1 -1
  128. package/fesm2022/ngwr-overlay.mjs +51 -2
  129. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  130. package/fesm2022/ngwr-pagination.mjs +1 -1
  131. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  132. package/fesm2022/ngwr-pipes.mjs +160 -8
  133. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  134. package/fesm2022/ngwr-popconfirm.mjs +2 -2
  135. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  136. package/fesm2022/ngwr-qr.mjs +65 -7
  137. package/fesm2022/ngwr-qr.mjs.map +1 -1
  138. package/fesm2022/ngwr-schema-form.mjs +2 -2
  139. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  140. package/fesm2022/ngwr-scroll.mjs +1 -2
  141. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  142. package/fesm2022/ngwr-slider.mjs +22 -17
  143. package/fesm2022/ngwr-slider.mjs.map +1 -1
  144. package/fesm2022/ngwr-speed-dial.mjs +30 -1
  145. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  146. package/fesm2022/ngwr-statistic.mjs +1 -1
  147. package/fesm2022/ngwr-stepper-testing.mjs +7 -1
  148. package/fesm2022/ngwr-stepper-testing.mjs.map +1 -1
  149. package/fesm2022/ngwr-stepper.mjs +55 -4
  150. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  151. package/fesm2022/ngwr-switch.mjs +33 -3
  152. package/fesm2022/ngwr-switch.mjs.map +1 -1
  153. package/fesm2022/ngwr-timeline.mjs +4 -0
  154. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  155. package/fesm2022/ngwr-toolbar.mjs +171 -16
  156. package/fesm2022/ngwr-toolbar.mjs.map +1 -1
  157. package/fesm2022/ngwr-tour.mjs +8 -3
  158. package/fesm2022/ngwr-tour.mjs.map +1 -1
  159. package/fesm2022/ngwr-transfer.mjs +3 -2
  160. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  161. package/fesm2022/ngwr-tree.mjs +1 -1
  162. package/fesm2022/ngwr-utils.mjs +46 -8
  163. package/fesm2022/ngwr-utils.mjs.map +1 -1
  164. package/fesm2022/ngwr-version.mjs +1 -1
  165. package/fesm2022/ngwr-version.mjs.map +1 -1
  166. package/fesm2022/ngwr-virtual-scroll.mjs +2 -2
  167. package/fesm2022/ngwr-virtual-scroll.mjs.map +1 -1
  168. package/i18n/ar.json +18 -5
  169. package/i18n/cs.json +18 -5
  170. package/i18n/de.json +18 -5
  171. package/i18n/en.json +18 -5
  172. package/i18n/es.json +18 -5
  173. package/i18n/fr.json +18 -5
  174. package/i18n/he.json +18 -5
  175. package/i18n/hi.json +18 -5
  176. package/i18n/id.json +18 -5
  177. package/i18n/it.json +18 -5
  178. package/i18n/ja.json +18 -5
  179. package/i18n/kk.json +18 -5
  180. package/i18n/ko.json +18 -5
  181. package/i18n/nl.json +18 -5
  182. package/i18n/pl.json +18 -5
  183. package/i18n/pt.json +18 -5
  184. package/i18n/ru.json +18 -5
  185. package/i18n/sv.json +18 -5
  186. package/i18n/tr.json +18 -5
  187. package/i18n/uk.json +18 -5
  188. package/i18n/vi.json +18 -5
  189. package/i18n/zh-TW.json +18 -5
  190. package/i18n/zh.json +18 -5
  191. package/image-cropper/styles/_index.scss +30 -1
  192. package/llms-full.txt +9 -9
  193. package/package.json +1 -1
  194. package/schematics/use/rule.js +1 -0
  195. package/schematics/use/symbol-map.json +2 -0
  196. package/skills/ngwr/SKILL.md +2 -2
  197. package/stepper/styles/_index.scss +33 -0
  198. package/tour/styles/_index.scss +11 -7
  199. package/types/ngwr-anchor.d.ts +14 -1
  200. package/types/ngwr-charts-donut-chart-testing.d.ts +32 -3
  201. package/types/ngwr-charts-donut-chart.d.ts +45 -6
  202. package/types/ngwr-charts-meter-group-testing.d.ts +29 -1
  203. package/types/ngwr-charts-meter-group.d.ts +43 -4
  204. package/types/ngwr-charts-sparkline-testing.d.ts +32 -2
  205. package/types/ngwr-charts-sparkline.d.ts +42 -3
  206. package/types/ngwr-checkbox.d.ts +14 -0
  207. package/types/ngwr-color-picker-testing.d.ts +1 -1
  208. package/types/ngwr-command-palette.d.ts +2 -1
  209. package/types/ngwr-date-stamp-testing.d.ts +2 -0
  210. package/types/ngwr-date-stamp.d.ts +41 -2
  211. package/types/ngwr-date.d.ts +3 -1
  212. package/types/ngwr-descriptions.d.ts +33 -5
  213. package/types/ngwr-dialog.d.ts +11 -6
  214. package/types/ngwr-directives.d.ts +1 -0
  215. package/types/ngwr-drawer.d.ts +12 -4
  216. package/types/ngwr-file-upload.d.ts +1 -1
  217. package/types/ngwr-form.d.ts +4 -0
  218. package/types/ngwr-hotkey.d.ts +2 -0
  219. package/types/ngwr-image-cropper-testing.d.ts +33 -1
  220. package/types/ngwr-image-cropper.d.ts +214 -6
  221. package/types/ngwr-input-number.d.ts +14 -2
  222. package/types/ngwr-input-otp.d.ts +2 -0
  223. package/types/ngwr-lightbox.d.ts +1 -0
  224. package/types/ngwr-meta.d.ts +13 -1
  225. package/types/ngwr-overlay.d.ts +20 -1
  226. package/types/ngwr-pipes.d.ts +125 -1
  227. package/types/ngwr-qr.d.ts +17 -0
  228. package/types/ngwr-slider.d.ts +3 -1
  229. package/types/ngwr-speed-dial.d.ts +10 -0
  230. package/types/ngwr-stepper-testing.d.ts +10 -0
  231. package/types/ngwr-stepper.d.ts +47 -1
  232. package/types/ngwr-switch.d.ts +13 -0
  233. package/types/ngwr-toolbar.d.ts +27 -0
  234. package/types/ngwr-transfer.d.ts +2 -0
  235. package/types/ngwr-utils.d.ts +61 -2
  236. package/types/ngwr-version.d.ts +1 -1
package/i18n/vi.json CHANGED
@@ -83,7 +83,9 @@
83
83
  },
84
84
  "stepper": {
85
85
  "optional": "tùy chọn",
86
- "completed": "đã hoàn thành"
86
+ "completed": "đã hoàn thành",
87
+ "error": "lỗi",
88
+ "warning": "cảnh báo"
87
89
  },
88
90
  "transfer": {
89
91
  "source": "Có sẵn",
@@ -94,7 +96,8 @@
94
96
  "toTarget": "Chuyển sang danh sách đã chọn",
95
97
  "toSource": "Chuyển về danh sách có sẵn",
96
98
  "count": "{{checked}} / {{total}}",
97
- "selectAllAria": "{{pane}} — {{action}}"
99
+ "selectAllAria": "{{pane}} — {{action}}",
100
+ "searchAria": "{{title}} - {{search}}"
98
101
  },
99
102
  "form": {
100
103
  "optional": "tùy chọn"
@@ -216,7 +219,10 @@
216
219
  "imageCropper": {
217
220
  "empty": "Không có ảnh",
218
221
  "window": "Vùng cắt",
219
- "keyHelp": "Các phím mũi tên di chuyển vùng cắt. Giữ Alt cùng phím mũi tên để đổi kích thước, giữ Shift để bước nhảy lớn hơn. Vùng cắt được đọc theo thứ tự lề trái, lề trên, chiều rộng và chiều cao, tính bằng pixel của ảnh."
222
+ "keyHelp": "Các phím mũi tên di chuyển vùng cắt. Giữ Alt cùng phím mũi tên để đổi kích thước, giữ Shift để bước nhảy lớn hơn. Vùng cắt được đọc theo thứ tự lề trái, lề trên, chiều rộng và chiều cao, tính bằng pixel của ảnh.",
223
+ "transformHelp": "Phím cộng và trừ phóng to và thu nhỏ ảnh. R xoay ảnh theo chiều kim đồng hồ, Shift cùng R xoay ngược lại.",
224
+ "zoomed": "Thu phóng {{percent}}%",
225
+ "rotated": "Đã xoay {{degrees}}°"
220
226
  },
221
227
  "sortableList": {
222
228
  "keyHelp": "Nhấn phím cách để nhấc mục này lên, rồi dùng các phím mũi tên để di chuyển. Nhấn phím cách lần nữa để thả, hoặc nhấn Escape để trả về chỗ cũ.",
@@ -265,7 +271,9 @@
265
271
  },
266
272
  "donutChart": {
267
273
  "label": "Biểu đồ vành khuyên",
268
- "pieLabel": "Biểu đồ tròn"
274
+ "pieLabel": "Biểu đồ tròn",
275
+ "value": "Giá trị",
276
+ "share": "Tỷ lệ"
269
277
  },
270
278
  "chartLegend": {
271
279
  "toggleLabel": "Bật/tắt hiển thị chuỗi dữ liệu",
@@ -500,7 +508,12 @@
500
508
  "label": "Tiến trình"
501
509
  },
502
510
  "meterGroup": {
503
- "label": "Thước đo"
511
+ "label": "Thước đo",
512
+ "value": "Giá trị",
513
+ "share": "Tỷ lệ"
514
+ },
515
+ "sparkline": {
516
+ "value": "Giá trị"
504
517
  },
505
518
  "knob": {
506
519
  "label": "Giá trị"
package/i18n/zh-TW.json CHANGED
@@ -83,7 +83,9 @@
83
83
  },
84
84
  "stepper": {
85
85
  "optional": "選用",
86
- "completed": "已完成"
86
+ "completed": "已完成",
87
+ "error": "錯誤",
88
+ "warning": "警告"
87
89
  },
88
90
  "transfer": {
89
91
  "source": "可選項目",
@@ -94,7 +96,8 @@
94
96
  "toTarget": "移至已選項目",
95
97
  "toSource": "移回可選項目",
96
98
  "count": "{{checked}} / {{total}}",
97
- "selectAllAria": "{{pane}} — {{action}}"
99
+ "selectAllAria": "{{pane}} — {{action}}",
100
+ "searchAria": "{{title}}:{{search}}"
98
101
  },
99
102
  "form": {
100
103
  "optional": "選填"
@@ -216,7 +219,10 @@
216
219
  "imageCropper": {
217
220
  "empty": "沒有圖片",
218
221
  "window": "裁切範圍",
219
- "keyHelp": "使用方向鍵移動裁切範圍。按住 Alt 加方向鍵可調整大小,按住 Shift 可加大調整幅度。系統會以圖片像素朗讀裁切範圍的左側、上方、寬度與高度。"
222
+ "keyHelp": "使用方向鍵移動裁切範圍。按住 Alt 加方向鍵可調整大小,按住 Shift 可加大調整幅度。系統會以圖片像素朗讀裁切範圍的左側、上方、寬度與高度。",
223
+ "transformHelp": "加號和減號可放大和縮小圖片。按 R 順時針旋轉,按 Shift 加 R 逆時針旋轉。",
224
+ "zoomed": "縮放 {{percent}}%",
225
+ "rotated": "已旋轉 {{degrees}}°"
220
226
  },
221
227
  "sortableList": {
222
228
  "keyHelp": "按空白鍵拿起這個項目,再用方向鍵移動。再按一次空白鍵放下,或按 Escape 放回原位。",
@@ -265,7 +271,9 @@
265
271
  },
266
272
  "donutChart": {
267
273
  "label": "環圈圖",
268
- "pieLabel": "圓餅圖"
274
+ "pieLabel": "圓餅圖",
275
+ "value": "值",
276
+ "share": "占比"
269
277
  },
270
278
  "chartLegend": {
271
279
  "toggleLabel": "切換數列顯示",
@@ -500,7 +508,12 @@
500
508
  "label": "進度"
501
509
  },
502
510
  "meterGroup": {
503
- "label": "計量表"
511
+ "label": "計量表",
512
+ "value": "值",
513
+ "share": "占比"
514
+ },
515
+ "sparkline": {
516
+ "value": "值"
504
517
  },
505
518
  "knob": {
506
519
  "label": "數值"
package/i18n/zh.json CHANGED
@@ -83,7 +83,9 @@
83
83
  },
84
84
  "stepper": {
85
85
  "optional": "可选",
86
- "completed": "已完成"
86
+ "completed": "已完成",
87
+ "error": "错误",
88
+ "warning": "警告"
87
89
  },
88
90
  "transfer": {
89
91
  "source": "待选",
@@ -94,7 +96,8 @@
94
96
  "toTarget": "移至已选",
95
97
  "toSource": "移回待选",
96
98
  "count": "{{checked}} / {{total}}",
97
- "selectAllAria": "{{pane}} — {{action}}"
99
+ "selectAllAria": "{{pane}} — {{action}}",
100
+ "searchAria": "{{title}}:{{search}}"
98
101
  },
99
102
  "form": {
100
103
  "optional": "选填"
@@ -216,7 +219,10 @@
216
219
  "imageCropper": {
217
220
  "empty": "暂无图片",
218
221
  "window": "裁剪区域",
219
- "keyHelp": "方向键移动裁剪框。按住 Alt 加方向键可调整大小,按住 Shift 可加大步长。裁剪框会以图像像素为单位,依次朗读左、上、宽、高四个值。"
222
+ "keyHelp": "方向键移动裁剪框。按住 Alt 加方向键可调整大小,按住 Shift 可加大步长。裁剪框会以图像像素为单位,依次朗读左、上、宽、高四个值。",
223
+ "transformHelp": "加号和减号可放大和缩小图像。按 R 顺时针旋转,按 Shift 加 R 逆时针旋转。",
224
+ "zoomed": "缩放 {{percent}}%",
225
+ "rotated": "已旋转 {{degrees}}°"
220
226
  },
221
227
  "sortableList": {
222
228
  "keyHelp": "按空格键拿起此项,然后用方向键移动。再次按空格键放下,或按 Esc 键放回原位。",
@@ -265,7 +271,9 @@
265
271
  },
266
272
  "donutChart": {
267
273
  "label": "环形图",
268
- "pieLabel": "饼图"
274
+ "pieLabel": "饼图",
275
+ "value": "值",
276
+ "share": "占比"
269
277
  },
270
278
  "chartLegend": {
271
279
  "toggleLabel": "切换系列显示",
@@ -500,7 +508,12 @@
500
508
  "label": "进度"
501
509
  },
502
510
  "meterGroup": {
503
- "label": "计量条"
511
+ "label": "计量条",
512
+ "value": "值",
513
+ "share": "占比"
514
+ },
515
+ "sparkline": {
516
+ "value": "值"
504
517
  },
505
518
  "knob": {
506
519
  "label": "数值"
@@ -16,7 +16,15 @@
16
16
  line-height: 0;
17
17
  }
18
18
 
19
- &__image {
19
+ // The zoomed image can be dragged where the crop window does not cover it.
20
+ &--zoomed &__canvas {
21
+ cursor: grab;
22
+ }
23
+
24
+ // `__image` sizes the stage until it has been measured. From then on `__sizer` is that
25
+ // box, turned on its side with the image, so the two must be sized by the same rules.
26
+ &__image,
27
+ &__sizer {
20
28
  display: block;
21
29
  max-width: 100%;
22
30
  max-height: 70vh;
@@ -26,6 +34,27 @@
26
34
  user-select: none;
27
35
  }
28
36
 
37
+ // Measured, the image is laid over the stage at the size the component writes on it,
38
+ // and zoomed, panned and turned from the stage's corner.
39
+ &__image--measured {
40
+ position: absolute;
41
+ top: 0;
42
+ // rtl-ok: cropper geometry, the pan is a physical offset from the stage's top-left corner
43
+ left: 0;
44
+ max-width: none;
45
+ max-height: none;
46
+ transform-origin: 0 0;
47
+ }
48
+
49
+ // Clips the zoomed image to the stage. Not before the image is measured: it is still
50
+ // in the layout then, and this wrapper must not change how it is sized.
51
+ &__viewport--on {
52
+ position: absolute;
53
+ inset: 0;
54
+ overflow: hidden;
55
+ pointer-events: none;
56
+ }
57
+
29
58
  // A source the browser could not decode. The `<img>` stays in the DOM, since the
30
59
  // next `src` goes through the same element, but some engines draw a broken-image
31
60
  // glyph for it — and the failure is the host's to explain, not a stray icon's.
package/llms-full.txt CHANGED
@@ -365,7 +365,7 @@
365
365
 
366
366
  ## ngwr/charts/donut-chart/testing
367
367
  - import: `import { WrDonutChartHarness } from 'ngwr/charts/donut-chart/testing'`
368
- - exports: WrDonutChartHarness, WrDonutChartHarnessFilters, WrDonutChartLegendEntry
368
+ - exports: WrDonutChartHarness, WrDonutChartHarnessFilters, WrDonutChartLegendEntry, WrDonutChartTableRow
369
369
 
370
370
  ## ngwr/charts/funnel-chart
371
371
  - import: `import { WrFunnelChart } from 'ngwr/charts/funnel-chart'`
@@ -420,7 +420,7 @@
420
420
 
421
421
  ## ngwr/charts/meter-group/testing
422
422
  - import: `import { WrMeterGroupHarness } from 'ngwr/charts/meter-group/testing'`
423
- - exports: WrMeterGroupHarness, WrMeterGroupHarnessFilters, WrMeterGroupSlice
423
+ - exports: WrMeterGroupHarness, WrMeterGroupHarnessFilters, WrMeterGroupSlice, WrMeterGroupTableRow
424
424
 
425
425
  ## ngwr/charts/radar-chart
426
426
  - import: `import { WrRadarChart } from 'ngwr/charts/radar-chart'`
@@ -453,7 +453,7 @@
453
453
 
454
454
  ## ngwr/charts/sparkline/testing
455
455
  - import: `import { WrSparklineHarness } from 'ngwr/charts/sparkline/testing'`
456
- - exports: WrSparklineHarness, WrSparklineHarnessFilters
456
+ - exports: WrSparklineHarness, WrSparklineHarnessFilters, WrSparklineTableRow
457
457
 
458
458
  ## ngwr/charts/treemap-chart
459
459
  - import: `import { WrTreemapChart } from 'ngwr/charts/treemap-chart'`
@@ -846,7 +846,7 @@
846
846
  ## ngwr/image-cropper
847
847
  - import: `import { WrImageCropper } from 'ngwr/image-cropper'`
848
848
  - selector: `wr-image-cropper`
849
- - exports: WrImageCropper, WrCropRect, WrCropHandle, WrImageCropperStatus, WrImageLoadError, WrImageOutputType
849
+ - exports: WrImageCropper, WrCropRect, WrCropHandle, WrImageCropperStatus, WrImageLoadError, WrImageOutputType, WrImageRotation
850
850
  - keywords: image, cropper, crop
851
851
  - Crop an image and get the result as a `Blob`.
852
852
 
@@ -972,7 +972,7 @@
972
972
 
973
973
  ## ngwr/overlay
974
974
  - import: `import { WrOverlayContainer } from 'ngwr/overlay'`
975
- - exports: WR_ANCHORED_FALLBACKS, WR_ANCHORED_POSITIONS, WrAnchoredPosition, WrAnchoredPositionsOptions, wrAnchoredPositions, wrAppendOverlayClose, WrOverlayAutoFocus, wrFocusOverlay, wrFollowDirection, wrFollowSize, wrMirrorOffsets, WrOutsideClick, WrOverlayContainer, WrOverlayOrder, WR_OVERLAY, WR_OVERLAY_CONTAINER
975
+ - exports: WR_ANCHORED_FALLBACKS, WR_ANCHORED_POSITIONS, WrAnchoredPosition, WrAnchoredPositionsOptions, wrAnchoredPositions, wrAppendOverlayClose, WrOverlayAutoFocus, wrFocusOverlay, wrFollowDirection, wrFollowSize, wrMirrorOffsets, WrOutsideClick, WrOverlayContainer, WrOverlayOrder, WrScrollBlock, WR_OVERLAY, WR_OVERLAY_CONTAINER
976
976
  - `WrOverlayContainer`, the container every ngwr panel renders into, kept apart from the one Angular Material, NG-ZORRO and plain CDK overlays share, with no provider. Style ngwr's overlays through its `.wr-overlay-container` class; no `z-index` reaches them, since CDK renders overlays in the top layer.
977
977
 
978
978
  ## ngwr/page-header
@@ -994,8 +994,8 @@
994
994
 
995
995
  ## ngwr/pipes
996
996
  - import: `import { WrBytes } from 'ngwr/pipes'`
997
- - exports: WrBytes, wrFormatBytes, WrDate, wrFormatDate, WrDuration, wrFormatDuration, wrSplitDuration, WrDurationStyle, WrDurationUnit, WrInitials, WrMark, WrNumber, wrFormatNumber, WrNumberStyle, WrPlural, wrFormatPlural, WrPluralForms, WrPluralOptions, WrRange, WrTruncate
998
- - Template formatting: `wrDate`, `wrNumber`, `wrBytes`, `wrDuration`, `wrPlural`, `wrRange`, `wrTruncate` and `wrMark` for search highlighting. The same formatting as functions, for a string built in TypeScript: `wrFormatDate`, `wrFormatNumber`, `wrFormatBytes`, `wrFormatDuration` and `wrFormatPlural`, each taking the locale as its second argument, except `wrFormatDate`, which takes a `WrDateAdapter`.
997
+ - exports: WrBytes, wrFormatBytes, WrDate, wrFormatDate, WrDuration, wrFormatDuration, wrSplitDuration, WrDurationStyle, WrDurationUnit, WrInitials, WrList, wrFormatList, WrListType, WrMark, WrNumber, wrFormatNumber, WrNumberStyle, WrPlural, wrFormatPlural, WrPluralForms, WrPluralOptions, WrRange, WrRelativeTime, wrFormatRelativeTime, WrRelativeTimeOptions, WrTruncate
998
+ - Template formatting: `wrDate`, `wrNumber`, `wrBytes`, `wrDuration`, `wrPlural`, `wrList`, `wrRelativeTime`, `wrRange`, `wrTruncate` and `wrMark` for search highlighting. The same formatting as functions, for a string built in TypeScript: `wrFormatDate`, `wrFormatNumber`, `wrFormatBytes`, `wrFormatDuration`, `wrFormatPlural`, `wrFormatList` and `wrFormatRelativeTime`, each taking the locale as its second argument, except `wrFormatDate`, which takes a `WrDateAdapter`.
999
999
 
1000
1000
  ## ngwr/platform
1001
1001
  - import: `import { WrPlatform } from 'ngwr/platform'`
@@ -1207,7 +1207,7 @@
1207
1207
  ## ngwr/stepper
1208
1208
  - import: `import { WrStepper } from 'ngwr/stepper'`
1209
1209
  - selector: `wr-step`, `wr-stepper`
1210
- - exports: WrStepper, WrStep, WR_STEPPER, WrStepperContext
1210
+ - exports: WrStepper, WrStep, WR_STEPPER, WrStepperContext, WrStepStatus
1211
1211
  - keywords: wizard
1212
1212
  - A multi-step flow with numbered headers.
1213
1213
 
@@ -1346,7 +1346,7 @@
1346
1346
 
1347
1347
  ## ngwr/utils
1348
1348
  - import: `import { wrIsDefined } from 'ngwr/utils'`
1349
- - exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrFileNameForType, wrRestoreFocus, wrNoteFocusReturn, wrFocusFirstInvalid, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, WrFocusFirstInvalidOptions, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
1349
+ - exports: WrMaybe, WrSafeAny, WrClassInput, wrIsDefined, wrIsNonEmptyArray, wrIsObservable, wrClamp, wrRound, wrDecimal, wrDecimalAdd, wrDecimalCompare, wrDecimalDivide, wrDecimalMultiply, wrDecimalRound, wrDecimalSubtract, WrDecimalLike, wrNumAttr, wrToClassList, wrIsSafeCssValue, wrResolveCssSize, WrResolveCssSizeOptions, WrResolvedCssSize, wrGetRootFontSize, wrGetFocusableElements, wrResolveCssColor, wrResolveCssColorChannels, wrTrapFocus, wrWatchColorScheme, wrCheckStyles, wrContentDispositionFileName, wrDownloadBlob, wrFileNameForType, wrRestoreFocus, wrNoteFocusReturn, wrFocusFirstInvalid, wrWatchDragCancel, WrWatchColorSchemeOptions, WrColorScheme, WrFocusFirstInvalidOptions, wrRandomId, wrNoop, wrDebounce, wrThrottle, WrDebouncedFn, WrThrottledFn, WR_KEYS, WR_KEY_LABELS, wrHasModifier, wrIsComposing, wrIsPrintableKey, wrTypeahead, WrKey, WrTypeahead, WrTypeaheadItem, WrTypeaheadOptions, wrBadgeError, wrBadgeLog, wrBadgeWarn, wrInitials, wrSlug, WrInitialsOptions, WrInitialsOrder, WrInitialsStyle, WrSlugOptions, WR_LIVE_LOCALE, wrFeature, WrFeature, wrAction, wrKeyedAction, wrResourceValue, WrAction, WrActionStatus, WrKeyedAction
1350
1350
  - Small helpers: coercion (`wrNumAttr`), DOM and keyboard guards, maths, ids, `wrDebounce` / `wrThrottle`, `wrResolveCssColor`, and the shared types `WrMaybe` and `WrSafeAny`.
1351
1351
 
1352
1352
  ## ngwr/utils/router
package/package.json CHANGED
@@ -1226,5 +1226,5 @@
1226
1226
  "sass": "./styles/_typography.scss"
1227
1227
  }
1228
1228
  },
1229
- "version": "16.7.1"
1229
+ "version": "16.9.0"
1230
1230
  }
@@ -53,6 +53,7 @@ const NON_DECLARABLE = {
53
53
  WrOverlayOrder: 'a service',
54
54
  WrPlatform: 'a service',
55
55
  WrScroll: 'a service',
56
+ WrScrollBlock: 'a service',
56
57
  WrStorage: 'a service',
57
58
  WrTheme: 'a service',
58
59
  WrToast: 'a service',
@@ -167,6 +167,7 @@
167
167
  "WrOutsideClick": "ngwr/overlay",
168
168
  "WrOverlayContainer": "ngwr/overlay",
169
169
  "WrOverlayOrder": "ngwr/overlay",
170
+ "WrScrollBlock": "ngwr/overlay",
170
171
  "WrPageHeader": "ngwr/page-header",
171
172
  "WrPagination": "ngwr/pagination",
172
173
  "WrBytes": "ngwr/pipes",
@@ -177,6 +178,7 @@
177
178
  "WrNumber": "ngwr/pipes",
178
179
  "WrPlural": "ngwr/pipes",
179
180
  "WrRange": "ngwr/pipes",
181
+ "WrRelativeTime": "ngwr/pipes",
180
182
  "WrTruncate": "ngwr/pipes",
181
183
  "WrPlatform": "ngwr/platform",
182
184
  "WrHaptics": "ngwr/platform",
@@ -138,9 +138,9 @@ guess gets backwards.
138
138
  through `ngwr/i18n`; every component takes overridable `*Label` inputs.
139
139
  - **Prefer the library over hand-rolling.** `ngwr/utils` (coercion, dom,
140
140
  keyboard, id, css-size, math), `ngwr/pipes` (`wrDate`, `wrBytes`,
141
- `wrTruncate`, `wrNumber`, `wrMark`, `wrPlural`, `wrRange`, `wrDuration`,
141
+ `wrTruncate`, `wrNumber`, `wrMark`, `wrPlural`, `wrList`, `wrRelativeTime`, `wrRange`, `wrDuration`,
142
142
  and for a string built in TypeScript `wrFormatDate`, `wrFormatBytes`,
143
- `wrFormatNumber`, `wrFormatPlural` and `wrFormatDuration`) and
143
+ `wrFormatNumber`, `wrFormatPlural`, `wrFormatList`, `wrFormatRelativeTime` and `wrFormatDuration`) and
144
144
  `ngwr/validators` already exist.
145
145
 
146
146
  ## Setting a component up
@@ -13,6 +13,12 @@ $header-padding-block: 0.25rem;
13
13
  --wr-stepper-indicator-size: 1.75rem;
14
14
  --wr-stepper-connector: var(--wr-border-base);
15
15
  --wr-stepper-muted: var(--wr-color-on-surface-muted);
16
+ --wr-stepper-error: var(--wr-color-danger);
17
+ --wr-stepper-error-ink: var(--wr-color-danger-ink);
18
+ --wr-stepper-error-soft: var(--wr-color-danger-soft);
19
+ --wr-stepper-warning: var(--wr-color-warning);
20
+ --wr-stepper-warning-ink: var(--wr-color-warning-ink);
21
+ --wr-stepper-warning-soft: var(--wr-color-warning-soft);
16
22
  --wr-stepper-gap: var(--wr-space-lg);
17
23
  --wr-stepper-font-family: var(--wr-font-family-base);
18
24
 
@@ -187,6 +193,25 @@ $header-padding-block: 0.25rem;
187
193
  color: var(--wr-color-surface);
188
194
  }
189
195
 
196
+ // A `status` repaints whatever the step otherwise is: after the active and
197
+ // completed rules, so it wins their colours, and with the hover selector
198
+ // listed so a pointer does not turn the circle primary again. It leaves the
199
+ // border WIDTH and STYLE alone, so an error on the current step keeps the
200
+ // doubled ring and a locked one keeps its dashes.
201
+ &__header--error &__indicator,
202
+ &__header--error &__header-button:hover:not(:disabled) &__indicator {
203
+ border-color: var(--wr-stepper-error);
204
+ color: var(--wr-stepper-error-ink);
205
+ background: var(--wr-stepper-error-soft);
206
+ }
207
+
208
+ &__header--warning &__indicator,
209
+ &__header--warning &__header-button:hover:not(:disabled) &__indicator {
210
+ border-color: var(--wr-stepper-warning);
211
+ color: var(--wr-stepper-warning-ink);
212
+ background: var(--wr-stepper-warning-soft);
213
+ }
214
+
190
215
  &__label {
191
216
  // Literal, like `--wr-option-gap` in select: the label and its description
192
217
  // sit 1px apart, and the scale starts at 4px — taking `--wr-space-xs` here
@@ -224,6 +249,14 @@ $header-padding-block: 0.25rem;
224
249
  color: var(--wr-color-primary-ink);
225
250
  }
226
251
 
252
+ &__header--error &__label {
253
+ color: var(--wr-stepper-error-ink);
254
+ }
255
+
256
+ &__header--warning &__label {
257
+ color: var(--wr-stepper-warning-ink);
258
+ }
259
+
227
260
  // Read, not shown: the "completed" state the check mark draws, in the header
228
261
  // button's name. Out of flow, so the label's column gap does not count it.
229
262
  &__sr-only {
@@ -22,14 +22,18 @@
22
22
  --wr-tour-spotlight-radius: var(--wr-border-radius-base);
23
23
 
24
24
  position: fixed;
25
- // Below CDK's `.cdk-overlay-container` (1000), deliberately. Both are fixed
26
- // children of `<body>`, so at equal z-index the DOM order decides — and the
27
- // service appends a fresh cut-out on every step while the container stays put, so
28
- // from the second step on the dimming shadow painted OVER the tour's own card.
29
- // A `z-index` on `.wr-tour-overlay` cannot help: that sits on the pane INSIDE
30
- // the container, whose own stacking context scopes it — which is why the pane
31
- // carries none.
25
+ // The service puts it in the top layer (`popover="manual"`) ahead of the card's
26
+ // overlay, which joins it later and so paints over it, and over a dialog that
27
+ // holds the target. No z-index reaches the top layer; this one is for a browser
28
+ // without it, where it sits below CDK's `.cdk-overlay-container` (1000).
32
29
  z-index: 999;
30
+ // A popover host comes from the UA sheet centred, bordered, padded and filled.
31
+ inset: auto;
32
+ margin: 0;
33
+ padding: 0;
34
+ border: 0;
35
+ overflow: visible;
36
+ background: none;
33
37
  pointer-events: none;
34
38
  border-radius: var(--wr-tour-spotlight-radius);
35
39
  box-shadow: 0 0 0 9999px color-mix(in srgb, var(--wr-color-backdrop) 55%, transparent);
@@ -12,6 +12,7 @@ interface WrAnchorLink {
12
12
  * Scroll-spy in-page navigation. Renders a list of links to elements on
13
13
  * the page; clicking a link smooth-scrolls (via {@link WrScroll}),
14
14
  * and the closest visible heading auto-highlights as the user scrolls.
15
+ * Follows the window, or the element passed as `container`.
15
16
  *
16
17
  * @example
17
18
  * ```html
@@ -47,6 +48,12 @@ export declare class WrAnchor {
47
48
  readonly offset: import("@angular/core").InputSignalWithTransform<number, unknown>;
48
49
  /** Highlight an item when its target's top is within this many px of the offset line. @default 80 */
49
50
  readonly hitArea: import("@angular/core").InputSignalWithTransform<number, unknown>;
51
+ /**
52
+ * The element whose scroll the links follow, for targets inside a pane with
53
+ * its own scroll: a docs panel, a dialog body, a drawer. A click scrolls it
54
+ * and leaves the page alone. `null` follows the window. @default null
55
+ */
56
+ readonly container: import("@angular/core").InputSignal<HTMLElement | null>;
50
57
  protected readonly activeId: import("@angular/core").WritableSignal<string | null>;
51
58
  /**
52
59
  * Flat list of the ids the template RENDERS — top level plus one level of
@@ -61,10 +68,11 @@ export declare class WrAnchor {
61
68
  private readonly platform;
62
69
  private readonly doc;
63
70
  private readonly zone;
71
+ private readonly injector;
64
72
  private readonly destroyRef;
65
73
  /**
66
74
  * The entry a click asked for, and the scroll position that click sends the
67
- * page to. A target near the end of the page can never reach the cursor line —
75
+ * page (or the `container`) to. A target near the end of the page can never reach the cursor line —
68
76
  * the page runs out of scroll first — so the spy took the highlight straight
69
77
  * back from the entry just clicked and handed it to the one above. While the
70
78
  * page is still travelling toward that position, or parked on it, the clicked
@@ -99,6 +107,11 @@ export declare class WrAnchor {
99
107
  "required": false;
100
108
  "isSignal": true;
101
109
  };
110
+ "container": {
111
+ "alias": "container";
112
+ "required": false;
113
+ "isSignal": true;
114
+ };
102
115
  }, {}, never, never, true, never>;
103
116
  }
104
117
  export type { WrAnchorLink };
@@ -7,11 +7,21 @@ interface WrDonutChartHarnessFilters extends BaseHarnessFilters {
7
7
  /** Match a chart whose legend holds this label. */
8
8
  readonly sliceLabel?: string | RegExp;
9
9
  }
10
- /** One legend row — the only place a slice's label and value are readable. */
10
+ /** One legend row: a slice's label and value, as the chart prints them. */
11
11
  interface WrDonutChartLegendEntry {
12
12
  readonly label: string;
13
13
  readonly value: string;
14
14
  }
15
+ /**
16
+ * One row of the chart's data table (`dataTable`): the slice's label as its row header,
17
+ * then its value and its share of the ring.
18
+ */
19
+ interface WrDonutChartTableRow {
20
+ /** The row header: the slice's label. */
21
+ readonly header: string;
22
+ /** Its value and its share, as the chart writes them; `''` where it has none. */
23
+ readonly cells: readonly string[];
24
+ }
15
25
  /**
16
26
  * Test harness for `<wr-donut-chart>`.
17
27
  *
@@ -20,7 +30,8 @@ interface WrDonutChartLegendEntry {
20
30
  * `aria-label` and nothing else, and a spec cannot get a label or a value off a
21
31
  * path's `d`. {@link getLegend} is where the numbers are — which is also the
22
32
  * argument for keeping `showLegend` on, since with it off the only other text is
23
- * whatever {@link getCenterValue} and {@link getCenterLabel} were given.
33
+ * whatever {@link getCenterValue} and {@link getCenterLabel} were given, unless
34
+ * `dataTable` is on: {@link getTableRows} then reads every slice shown, with its share.
24
35
  *
25
36
  * The name is read off the `<svg>` rather than off the surface that wraps it, and
26
37
  * the two are not interchangeable: `img` makes its whole subtree presentational, so
@@ -84,6 +95,23 @@ export declare class WrDonutChartHarness extends ComponentHarness {
84
95
  getLegendHarness(): Promise<WrChartLegendHarness>;
85
96
  /** The legend rows in order — the only textual form the data has. Hidden slices included. */
86
97
  getLegend(): Promise<WrDonutChartLegendEntry[]>;
98
+ /** Whether the hidden data table is rendered (`dataTable`, while the chart draws its slices). */
99
+ hasDataTable(): Promise<boolean>;
100
+ /**
101
+ * The data table's column headings: the value's name and the share's.
102
+ *
103
+ * Throws when the chart renders no table (`dataTable` off, or a state in the slices'
104
+ * place) rather than answering with no columns.
105
+ */
106
+ getTableColumns(): Promise<string[]>;
107
+ /**
108
+ * The data table's rows, one per slice shown, in the data's own order: its label, its
109
+ * value and its share of the ring, as a screen reader walks them. A slice hidden
110
+ * through `hiddenSegments` has no row, and one that draws nothing an empty share.
111
+ *
112
+ * Throws when the chart renders no table, for the reason {@link getTableColumns} gives.
113
+ */
114
+ getTableRows(): Promise<WrDonutChartTableRow[]>;
87
115
  /** The big number in the middle, or `null` when the chart has none — a pie never has. */
88
116
  getCenterValue(): Promise<string | null>;
89
117
  /** The caption under the centre value, or `null` — a pie never has one. */
@@ -100,5 +128,6 @@ export declare class WrDonutChartHarness extends ComponentHarness {
100
128
  * refuses.
101
129
  */
102
130
  getSize(): Promise<number>;
131
+ private assertDataTable;
103
132
  }
104
- export type { WrDonutChartHarnessFilters, WrDonutChartLegendEntry };
133
+ export type { WrDonutChartHarnessFilters, WrDonutChartLegendEntry, WrDonutChartTableRow };
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import { WrChartLegendItem, WrChartLegendPosition } from "ngwr/charts/chart-legend";
3
+ import { WrChartTableData } from "ngwr/charts/core";
3
4
  /** One slice of a `<wr-donut-chart>`: a name, a value, and optionally its own colour. */
4
5
  interface WrDonutSegment {
5
6
  /** The slice's name, in the legend and the tooltip. */
@@ -39,6 +40,11 @@ interface WrDonutSegment {
39
40
  * and says "No data"; `loading` and `error` put their own message there in place of the
40
41
  * slices.
41
42
  *
43
+ * **What a screen reader gets.** The drawing is one named `role="img"`, so the figures are
44
+ * in text only in the legend, which a single slice and `showLegend="false"` leave out.
45
+ * `dataTable` renders every slice shown with its value and its share as a table a reader
46
+ * can walk cell by cell.
47
+ *
42
48
  * @see https://ngwr.dev/charts/donut-chart
43
49
  */
44
50
  export declare class WrDonutChart {
@@ -49,9 +55,10 @@ export declare class WrDonutChart {
49
55
  */
50
56
  readonly segments: import("@angular/core").InputSignal<readonly WrDonutSegment[]>;
51
57
  /**
52
- * Accessible name of the drawing. The arcs carry no text and the legend is optional, so
53
- * with `showLegend: false` this and the centre text are the whole of what a screen reader
54
- * gets. Falls back to `donutChart.label`, or to `donutChart.pieLabel` with `pie`.
58
+ * Accessible name of the drawing, and the caption of the data table. The arcs carry no
59
+ * text and the legend is optional, so with `showLegend: false` this and the centre text
60
+ * are the whole of what a screen reader gets unless `dataTable` renders the figures.
61
+ * Falls back to `donutChart.label`, or to `donutChart.pieLabel` with `pie`.
55
62
  */
56
63
  readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
57
64
  private readonly donutLabel;
@@ -159,12 +166,34 @@ export declare class WrDonutChart {
159
166
  */
160
167
  readonly tooltip: import("@angular/core").InputSignalWithTransform<boolean | "hoverable", unknown>;
161
168
  /**
162
- * Writes every value in the legend and the tooltip. `null` uses `Intl.NumberFormat`
163
- * in `LOCALE_ID`. The centre text is printed as given.
169
+ * Writes every value in the legend, the tooltip and the data table. `null` uses
170
+ * `Intl.NumberFormat` in `LOCALE_ID`. The centre text is printed as given.
164
171
  */
165
172
  readonly valueFormat: import("@angular/core").InputSignal<((value: number) => string) | null>;
166
- /** Each value as the legend and the tooltip print it: exact, in `LOCALE_ID` unless `valueFormat` is given. */
173
+ /**
174
+ * Render the chart's figures as a table that only assistive technology reaches: a row
175
+ * per slice shown, headed by its label, with its value as the legend writes it and its
176
+ * share of the ring, a percentage in `LOCALE_ID`. A slice hidden through
177
+ * `hiddenSegments` has no row, and a slice that draws nothing has an empty share. The
178
+ * table gives way with the slices while the chart is empty, `loading` or in `error`.
179
+ *
180
+ * The drawing is one named `role="img"`, which hides everything inside it, and the
181
+ * legend is left out for a single slice and with `showLegend` off, so without the table
182
+ * the numbers may be nowhere a screen reader can walk. It is rendered beside the
183
+ * drawing, clipped to nothing: it takes no room, draws nothing and holds no tab stop.
184
+ * @default false
185
+ */
186
+ readonly dataTable: import("@angular/core").InputSignalWithTransform<boolean, any>;
187
+ /** The headings of the data table's two columns. */
188
+ private readonly valueName;
189
+ private readonly shareName;
190
+ /** Each value as the legend, the tooltip and the data table print it: exact, in `LOCALE_ID` unless `valueFormat` is given. */
167
191
  private readonly numbers;
192
+ private readonly locale;
193
+ /** Shares from one percent up, to one decimal. */
194
+ private readonly shares;
195
+ /** Shares below one percent, to two significant digits, so a sliver does not read `0%`. */
196
+ private readonly smallShares;
168
197
  private readonly hidden;
169
198
  private readonly svg;
170
199
  private readonly outerR;
@@ -242,6 +271,11 @@ export declare class WrDonutChart {
242
271
  private readonly empty;
243
272
  /** What the chart shows in place of its slices, or `null` while it draws them. */
244
273
  protected readonly state: import("@angular/core").Signal<import("ngwr/charts/core").WrChartStateView | null>;
274
+ /**
275
+ * The figures for `dataTable`: the chart's name as the caption, a row per slice shown,
276
+ * and its value and its share of the ring as the columns.
277
+ */
278
+ protected readonly tableData: import("@angular/core").Signal<WrChartTableData>;
245
279
  /**
246
280
  * The whole ring, or the whole disc of a pie, as one path: the frame the chart keeps
247
281
  * while it has no slice to draw - under a state, or with every slice hidden.
@@ -360,6 +394,11 @@ export declare class WrDonutChart {
360
394
  "required": false;
361
395
  "isSignal": true;
362
396
  };
397
+ "dataTable": {
398
+ "alias": "dataTable";
399
+ "required": false;
400
+ "isSignal": true;
401
+ };
363
402
  }, {
364
403
  "hiddenSegments": "hiddenSegmentsChange";
365
404
  }, never, never, true, never>;