ngwr 16.7.0 → 16.8.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 (167) 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/checkbox/styles/_index.scss +4 -0
  5. package/command-palette/styles/_index.scss +10 -0
  6. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -1
  7. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  8. package/fesm2022/ngwr-charts-core.mjs +17 -0
  9. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  10. package/fesm2022/ngwr-charts-donut-chart-testing.mjs +27 -0
  11. package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
  12. package/fesm2022/ngwr-charts-donut-chart.mjs +54 -6
  13. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  14. package/fesm2022/ngwr-charts-meter-group-testing.mjs +27 -0
  15. package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
  16. package/fesm2022/ngwr-charts-meter-group.mjs +54 -6
  17. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  18. package/fesm2022/ngwr-charts-sparkline-testing.mjs +27 -0
  19. package/fesm2022/ngwr-charts-sparkline-testing.mjs.map +1 -1
  20. package/fesm2022/ngwr-charts-sparkline.mjs +45 -4
  21. package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
  22. package/fesm2022/ngwr-checkbox.mjs +38 -3
  23. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  24. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  25. package/fesm2022/ngwr-color-picker.mjs +4 -3
  26. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  27. package/fesm2022/ngwr-command-palette.mjs +39 -19
  28. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  29. package/fesm2022/ngwr-context-menu.mjs +7 -2
  30. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  31. package/fesm2022/ngwr-date-picker.mjs +1 -0
  32. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  33. package/fesm2022/ngwr-dialog.mjs +10 -7
  34. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  35. package/fesm2022/ngwr-drawer.mjs +14 -8
  36. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  37. package/fesm2022/ngwr-file-upload.mjs +2 -2
  38. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  39. package/fesm2022/ngwr-i18n-ar.mjs +9 -2
  40. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  41. package/fesm2022/ngwr-i18n-cs.mjs +9 -2
  42. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  43. package/fesm2022/ngwr-i18n-de.mjs +9 -2
  44. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  45. package/fesm2022/ngwr-i18n-en.mjs +9 -2
  46. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  47. package/fesm2022/ngwr-i18n-es.mjs +9 -2
  48. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  49. package/fesm2022/ngwr-i18n-fr.mjs +9 -2
  50. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  51. package/fesm2022/ngwr-i18n-he.mjs +9 -2
  52. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  53. package/fesm2022/ngwr-i18n-hi.mjs +9 -2
  54. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  55. package/fesm2022/ngwr-i18n-id.mjs +9 -2
  56. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  57. package/fesm2022/ngwr-i18n-it.mjs +9 -2
  58. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  59. package/fesm2022/ngwr-i18n-ja.mjs +9 -2
  60. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  61. package/fesm2022/ngwr-i18n-kk.mjs +9 -2
  62. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -1
  63. package/fesm2022/ngwr-i18n-ko.mjs +9 -2
  64. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  65. package/fesm2022/ngwr-i18n-nl.mjs +9 -2
  66. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  67. package/fesm2022/ngwr-i18n-pl.mjs +9 -2
  68. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  69. package/fesm2022/ngwr-i18n-pt.mjs +9 -2
  70. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  71. package/fesm2022/ngwr-i18n-ru.mjs +9 -2
  72. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  73. package/fesm2022/ngwr-i18n-sv.mjs +9 -2
  74. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  75. package/fesm2022/ngwr-i18n-tr.mjs +9 -2
  76. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  77. package/fesm2022/ngwr-i18n-uk.mjs +9 -2
  78. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  79. package/fesm2022/ngwr-i18n-vi.mjs +9 -2
  80. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  81. package/fesm2022/ngwr-i18n-zh-tw.mjs +9 -2
  82. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  83. package/fesm2022/ngwr-i18n-zh.mjs +9 -2
  84. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  85. package/fesm2022/ngwr-input-number.mjs +33 -10
  86. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  87. package/fesm2022/ngwr-input-otp.mjs +24 -10
  88. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  89. package/fesm2022/ngwr-input.mjs +2 -2
  90. package/fesm2022/ngwr-input.mjs.map +1 -1
  91. package/fesm2022/ngwr-lightbox.mjs +5 -3
  92. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  93. package/fesm2022/ngwr-overlay.mjs +51 -2
  94. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  95. package/fesm2022/ngwr-popconfirm.mjs +2 -2
  96. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  97. package/fesm2022/ngwr-popover.mjs +11 -1
  98. package/fesm2022/ngwr-popover.mjs.map +1 -1
  99. package/fesm2022/ngwr-scroll.mjs +39 -16
  100. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  101. package/fesm2022/ngwr-slider.mjs +22 -17
  102. package/fesm2022/ngwr-slider.mjs.map +1 -1
  103. package/fesm2022/ngwr-switch.mjs +33 -3
  104. package/fesm2022/ngwr-switch.mjs.map +1 -1
  105. package/fesm2022/ngwr-table.mjs +17 -4
  106. package/fesm2022/ngwr-table.mjs.map +1 -1
  107. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  108. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  109. package/fesm2022/ngwr-tour.mjs +8 -3
  110. package/fesm2022/ngwr-tour.mjs.map +1 -1
  111. package/fesm2022/ngwr-version.mjs +1 -1
  112. package/fesm2022/ngwr-version.mjs.map +1 -1
  113. package/i18n/ar.json +9 -2
  114. package/i18n/cs.json +9 -2
  115. package/i18n/de.json +9 -2
  116. package/i18n/en.json +9 -2
  117. package/i18n/es.json +9 -2
  118. package/i18n/fr.json +9 -2
  119. package/i18n/he.json +9 -2
  120. package/i18n/hi.json +9 -2
  121. package/i18n/id.json +9 -2
  122. package/i18n/it.json +9 -2
  123. package/i18n/ja.json +9 -2
  124. package/i18n/kk.json +9 -2
  125. package/i18n/ko.json +9 -2
  126. package/i18n/nl.json +9 -2
  127. package/i18n/pl.json +9 -2
  128. package/i18n/pt.json +9 -2
  129. package/i18n/ru.json +9 -2
  130. package/i18n/sv.json +9 -2
  131. package/i18n/tr.json +9 -2
  132. package/i18n/uk.json +9 -2
  133. package/i18n/vi.json +9 -2
  134. package/i18n/zh-TW.json +9 -2
  135. package/i18n/zh.json +9 -2
  136. package/llms-full.txt +4 -4
  137. package/package.json +1 -1
  138. package/radio/styles/_index.scss +4 -0
  139. package/schematics/use/rule.js +1 -0
  140. package/schematics/use/symbol-map.json +1 -0
  141. package/switch/styles/_index.scss +4 -0
  142. package/table/styles/_index.scss +7 -0
  143. package/tour/styles/_index.scss +11 -7
  144. package/types/ngwr-charts-donut-chart-testing.d.ts +32 -3
  145. package/types/ngwr-charts-donut-chart.d.ts +45 -6
  146. package/types/ngwr-charts-meter-group-testing.d.ts +29 -1
  147. package/types/ngwr-charts-meter-group.d.ts +43 -4
  148. package/types/ngwr-charts-sparkline-testing.d.ts +32 -2
  149. package/types/ngwr-charts-sparkline.d.ts +42 -3
  150. package/types/ngwr-checkbox.d.ts +14 -0
  151. package/types/ngwr-color-picker-testing.d.ts +1 -1
  152. package/types/ngwr-command-palette.d.ts +2 -1
  153. package/types/ngwr-date-picker.d.ts +8 -2
  154. package/types/ngwr-dialog.d.ts +11 -6
  155. package/types/ngwr-drawer.d.ts +12 -4
  156. package/types/ngwr-file-upload.d.ts +1 -1
  157. package/types/ngwr-input-number.d.ts +14 -2
  158. package/types/ngwr-input-otp.d.ts +2 -0
  159. package/types/ngwr-lightbox.d.ts +1 -0
  160. package/types/ngwr-overlay.d.ts +20 -1
  161. package/types/ngwr-popover.d.ts +3 -3
  162. package/types/ngwr-scroll.d.ts +11 -2
  163. package/types/ngwr-slider.d.ts +3 -1
  164. package/types/ngwr-switch.d.ts +13 -0
  165. package/types/ngwr-table.d.ts +1 -0
  166. package/types/ngwr-tabs-router.d.ts +3 -4
  167. package/types/ngwr-version.d.ts +1 -1
package/i18n/nl.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Ringdiagram",
268
- "pieLabel": "Cirkeldiagram"
268
+ "pieLabel": "Cirkeldiagram",
269
+ "value": "Waarde",
270
+ "share": "Aandeel"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Zichtbaarheid van reeksen wisselen",
@@ -500,7 +502,12 @@
500
502
  "label": "Voortgang"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Meterbalk"
505
+ "label": "Meterbalk",
506
+ "value": "Waarde",
507
+ "share": "Aandeel"
508
+ },
509
+ "sparkline": {
510
+ "value": "Waarde"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Waarde"
package/i18n/pl.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Wykres pierścieniowy",
268
- "pieLabel": "Wykres kołowy"
268
+ "pieLabel": "Wykres kołowy",
269
+ "value": "Wartość",
270
+ "share": "Udział"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Przełącz widoczność serii",
@@ -500,7 +502,12 @@
500
502
  "label": "Postęp"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Miernik"
505
+ "label": "Miernik",
506
+ "value": "Wartość",
507
+ "share": "Udział"
508
+ },
509
+ "sparkline": {
510
+ "value": "Wartość"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Wartość"
package/i18n/pt.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Gráfico de anel",
268
- "pieLabel": "Gráfico de pizza"
268
+ "pieLabel": "Gráfico de pizza",
269
+ "value": "Valor",
270
+ "share": "Participação"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Mostrar ou ocultar séries",
@@ -500,7 +502,12 @@
500
502
  "label": "Progresso"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Medidor"
505
+ "label": "Medidor",
506
+ "value": "Valor",
507
+ "share": "Participação"
508
+ },
509
+ "sparkline": {
510
+ "value": "Valor"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Valor"
package/i18n/ru.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Кольцевая диаграмма",
268
- "pieLabel": "Круговая диаграмма"
268
+ "pieLabel": "Круговая диаграмма",
269
+ "value": "Значение",
270
+ "share": "Доля"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Показать или скрыть ряды",
@@ -500,7 +502,12 @@
500
502
  "label": "Прогресс"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Шкала"
505
+ "label": "Шкала",
506
+ "value": "Значение",
507
+ "share": "Доля"
508
+ },
509
+ "sparkline": {
510
+ "value": "Значение"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Значение"
package/i18n/sv.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Ringdiagram",
268
- "pieLabel": "Cirkeldiagram"
268
+ "pieLabel": "Cirkeldiagram",
269
+ "value": "Värde",
270
+ "share": "Andel"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Växla synlighet för serier",
@@ -500,7 +502,12 @@
500
502
  "label": "Förlopp"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Mätare"
505
+ "label": "Mätare",
506
+ "value": "Värde",
507
+ "share": "Andel"
508
+ },
509
+ "sparkline": {
510
+ "value": "Värde"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Värde"
package/i18n/tr.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Halka grafiği",
268
- "pieLabel": "Pasta grafiği"
268
+ "pieLabel": "Pasta grafiği",
269
+ "value": "Değer",
270
+ "share": "Pay"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Serilerin görünürlüğünü değiştir",
@@ -500,7 +502,12 @@
500
502
  "label": "İlerleme"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Ölçer"
505
+ "label": "Ölçer",
506
+ "value": "Değer",
507
+ "share": "Pay"
508
+ },
509
+ "sparkline": {
510
+ "value": "Değer"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Değer"
package/i18n/uk.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Кільцева діаграма",
268
- "pieLabel": "Кругова діаграма"
268
+ "pieLabel": "Кругова діаграма",
269
+ "value": "Значення",
270
+ "share": "Частка"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Показати або приховати ряди",
@@ -500,7 +502,12 @@
500
502
  "label": "Хід виконання"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Шкала"
505
+ "label": "Шкала",
506
+ "value": "Значення",
507
+ "share": "Частка"
508
+ },
509
+ "sparkline": {
510
+ "value": "Значення"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Значення"
package/i18n/vi.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "Biểu đồ vành khuyên",
268
- "pieLabel": "Biểu đồ tròn"
268
+ "pieLabel": "Biểu đồ tròn",
269
+ "value": "Giá trị",
270
+ "share": "Tỷ lệ"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "Bật/tắt hiển thị chuỗi dữ liệu",
@@ -500,7 +502,12 @@
500
502
  "label": "Tiến trình"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "Thước đo"
505
+ "label": "Thước đo",
506
+ "value": "Giá trị",
507
+ "share": "Tỷ lệ"
508
+ },
509
+ "sparkline": {
510
+ "value": "Giá trị"
504
511
  },
505
512
  "knob": {
506
513
  "label": "Giá trị"
package/i18n/zh-TW.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "環圈圖",
268
- "pieLabel": "圓餅圖"
268
+ "pieLabel": "圓餅圖",
269
+ "value": "值",
270
+ "share": "占比"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "切換數列顯示",
@@ -500,7 +502,12 @@
500
502
  "label": "進度"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "計量表"
505
+ "label": "計量表",
506
+ "value": "值",
507
+ "share": "占比"
508
+ },
509
+ "sparkline": {
510
+ "value": "值"
504
511
  },
505
512
  "knob": {
506
513
  "label": "數值"
package/i18n/zh.json CHANGED
@@ -265,7 +265,9 @@
265
265
  },
266
266
  "donutChart": {
267
267
  "label": "环形图",
268
- "pieLabel": "饼图"
268
+ "pieLabel": "饼图",
269
+ "value": "值",
270
+ "share": "占比"
269
271
  },
270
272
  "chartLegend": {
271
273
  "toggleLabel": "切换系列显示",
@@ -500,7 +502,12 @@
500
502
  "label": "进度"
501
503
  },
502
504
  "meterGroup": {
503
- "label": "计量条"
505
+ "label": "计量条",
506
+ "value": "值",
507
+ "share": "占比"
508
+ },
509
+ "sparkline": {
510
+ "value": "值"
504
511
  },
505
512
  "knob": {
506
513
  "label": "数值"
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'`
@@ -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
package/package.json CHANGED
@@ -1226,5 +1226,5 @@
1226
1226
  "sass": "./styles/_typography.scss"
1227
1227
  }
1228
1228
  },
1229
- "version": "16.7.0"
1229
+ "version": "16.8.0"
1230
1230
  }
@@ -26,6 +26,10 @@
26
26
  --wr-radio-dot: transparent;
27
27
  --wr-radio-color: var(--wr-color-on-surface);
28
28
 
29
+ // The containing block of the visually hidden input: without it the input is
30
+ // placed against a positioned ancestor outside any scroller between them, and
31
+ // focusing it scrolls that ancestor.
32
+ position: relative;
29
33
  display: inline-flex;
30
34
  vertical-align: middle;
31
35
  color: var(--wr-radio-color);
@@ -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",
@@ -15,6 +15,10 @@
15
15
  --wr-switch-thumb: var(--wr-color-surface);
16
16
  --wr-switch-color: var(--wr-color-on-surface);
17
17
 
18
+ // The containing block of the visually hidden input: without it the input is
19
+ // placed against a positioned ancestor outside any scroller between them, and
20
+ // focusing it scrolls that ancestor.
21
+ position: relative;
18
22
  display: inline-flex;
19
23
  vertical-align: middle;
20
24
  color: var(--wr-switch-color);
@@ -1569,6 +1569,13 @@ $row-controls: "a[href], button, input, select, textarea, label, [role='button']
1569
1569
  transition: none;
1570
1570
  }
1571
1571
 
1572
+ // The preview of a `size="sm"` table: the table restates the padding hooks on
1573
+ // itself, which the preview has left, so the same values are the fallbacks here.
1574
+ .cdk-drag-preview.wr-table__th.wr-table__th--preview-sm {
1575
+ padding: calc(var(--wr-table-cell-padding-y, var(--wr-space-xs)) * var(--wr-density-y, 1))
1576
+ calc(var(--wr-table-cell-padding-x, var(--wr-space-sm)) * var(--wr-density-x, 1));
1577
+ }
1578
+
1572
1579
  // The cursor of a column drag. The CDK preview takes no pointer events, so the
1573
1580
  // cursor comes from a class on `<html>` for the length of the drag, set by the
1574
1581
  // table; `!important` because every control under the pointer has its own.
@@ -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);
@@ -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>;
@@ -14,6 +14,16 @@ interface WrMeterGroupSlice {
14
14
  /** The share of the bar it takes, in percent. */
15
15
  readonly percent: number;
16
16
  }
17
+ /**
18
+ * One row of the meter's data table (`dataTable`): the segment's label as its row header,
19
+ * then its value and its share of the total the bar is drawn against.
20
+ */
21
+ interface WrMeterGroupTableRow {
22
+ /** The row header: the segment's label. */
23
+ readonly header: string;
24
+ /** Its value and its share, as the meter writes them; `''` where it has none. */
25
+ readonly cells: readonly string[];
26
+ }
17
27
  /**
18
28
  * Test harness for `<wr-meter-group>` — one bar divided into labelled bands.
19
29
  *
@@ -70,5 +80,23 @@ export declare class WrMeterGroupHarness extends ComponentHarness {
70
80
  getLegendLabels(): Promise<string[]>;
71
81
  /** The legend's values, in order — empty when `showValues` is off. */
72
82
  getLegendValues(): Promise<string[]>;
83
+ /** Whether the hidden data table is rendered (`dataTable`, while the meter draws its segments). */
84
+ hasDataTable(): Promise<boolean>;
85
+ /**
86
+ * The data table's column headings: the value's name and the share's.
87
+ *
88
+ * Throws when the meter renders no table (`dataTable` off, or a state in the legend's
89
+ * place) rather than answering with no columns.
90
+ */
91
+ getTableColumns(): Promise<string[]>;
92
+ /**
93
+ * The data table's rows, one per segment shown, in the data's own order: its label, its
94
+ * value and its share of the total, as a screen reader walks them. A segment hidden
95
+ * through `hiddenSegments` has no row, and one that draws nothing an empty share.
96
+ *
97
+ * Throws when the meter renders no table, for the reason {@link getTableColumns} gives.
98
+ */
99
+ getTableRows(): Promise<WrMeterGroupTableRow[]>;
100
+ private assertDataTable;
73
101
  }
74
- export type { WrMeterGroupHarnessFilters, WrMeterGroupSlice };
102
+ export type { WrMeterGroupHarnessFilters, WrMeterGroupSlice, WrMeterGroupTableRow };