ngwr 16.6.0 → 16.7.1

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 (321) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/button/styles/_index.scss +45 -2
  3. package/checkbox/styles/_index.scss +4 -0
  4. package/copy-value/styles/_index.scss +4 -0
  5. package/dropdown/styles/_index.scss +17 -0
  6. package/fesm2022/ngwr-affix.mjs +3 -3
  7. package/fesm2022/ngwr-alert.mjs +3 -3
  8. package/fesm2022/ngwr-anchor.mjs +3 -3
  9. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  10. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  11. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  12. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  13. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  14. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  15. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  16. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  17. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  18. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  19. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  20. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  21. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  22. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  23. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  24. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  25. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  26. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  27. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  28. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  29. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  30. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  31. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  32. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  33. package/fesm2022/ngwr-avatar.mjs +171 -6
  34. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  35. package/fesm2022/ngwr-back-top.mjs +3 -3
  36. package/fesm2022/ngwr-badge.mjs +6 -6
  37. package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
  38. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  39. package/fesm2022/ngwr-burger.mjs +3 -3
  40. package/fesm2022/ngwr-button.mjs +26 -6
  41. package/fesm2022/ngwr-button.mjs.map +1 -1
  42. package/fesm2022/ngwr-calendar.mjs +3 -3
  43. package/fesm2022/ngwr-card.mjs +9 -9
  44. package/fesm2022/ngwr-carousel.mjs +6 -6
  45. package/fesm2022/ngwr-cascader.mjs +5 -5
  46. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  47. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  48. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  49. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  50. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  51. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  52. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  53. package/fesm2022/ngwr-charts-core.mjs +6 -6
  54. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  55. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  56. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  57. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  58. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
  60. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  61. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  63. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  64. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  65. package/fesm2022/ngwr-checkbox.mjs +6 -6
  66. package/fesm2022/ngwr-clipboard.mjs +3 -3
  67. package/fesm2022/ngwr-collapse.mjs +9 -9
  68. package/fesm2022/ngwr-color-picker.mjs +6 -6
  69. package/fesm2022/ngwr-command-palette.mjs +3 -3
  70. package/fesm2022/ngwr-comment.mjs +7 -6
  71. package/fesm2022/ngwr-comment.mjs.map +1 -1
  72. package/fesm2022/ngwr-compare.mjs +3 -3
  73. package/fesm2022/ngwr-context-menu.mjs +12 -12
  74. package/fesm2022/ngwr-cookie.mjs +3 -3
  75. package/fesm2022/ngwr-copy-value.mjs +3 -3
  76. package/fesm2022/ngwr-counter.mjs +6 -6
  77. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  78. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  79. package/fesm2022/ngwr-date-picker.mjs +103 -53
  80. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  81. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  82. package/fesm2022/ngwr-date.mjs +40 -16
  83. package/fesm2022/ngwr-date.mjs.map +1 -1
  84. package/fesm2022/ngwr-density.mjs +6 -6
  85. package/fesm2022/ngwr-descriptions.mjs +6 -6
  86. package/fesm2022/ngwr-dialog.mjs +19 -18
  87. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  88. package/fesm2022/ngwr-directives.mjs +181 -18
  89. package/fesm2022/ngwr-directives.mjs.map +1 -1
  90. package/fesm2022/ngwr-divider.mjs +3 -3
  91. package/fesm2022/ngwr-drawer.mjs +18 -18
  92. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  93. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  94. package/fesm2022/ngwr-dropdown.mjs +59 -16
  95. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  96. package/fesm2022/ngwr-editor.mjs +6 -5
  97. package/fesm2022/ngwr-editor.mjs.map +1 -1
  98. package/fesm2022/ngwr-empty.mjs +3 -3
  99. package/fesm2022/ngwr-event-calendar.mjs +7 -6
  100. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  101. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  102. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  103. package/fesm2022/ngwr-file-upload.mjs +68 -13
  104. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  105. package/fesm2022/ngwr-form.mjs +18 -16
  106. package/fesm2022/ngwr-form.mjs.map +1 -1
  107. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  108. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  109. package/fesm2022/ngwr-graph.mjs +100 -11
  110. package/fesm2022/ngwr-graph.mjs.map +1 -1
  111. package/fesm2022/ngwr-hotkey.mjs +6 -6
  112. package/fesm2022/ngwr-i18n-ar.mjs +6 -2
  113. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  114. package/fesm2022/ngwr-i18n-cs.mjs +6 -2
  115. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  116. package/fesm2022/ngwr-i18n-de.mjs +6 -2
  117. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  118. package/fesm2022/ngwr-i18n-en.mjs +6 -2
  119. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  120. package/fesm2022/ngwr-i18n-es.mjs +6 -2
  121. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  122. package/fesm2022/ngwr-i18n-fr.mjs +6 -2
  123. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  124. package/fesm2022/ngwr-i18n-he.mjs +6 -2
  125. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  126. package/fesm2022/ngwr-i18n-hi.mjs +6 -2
  127. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  128. package/fesm2022/ngwr-i18n-id.mjs +6 -2
  129. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  130. package/fesm2022/ngwr-i18n-it.mjs +6 -2
  131. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  132. package/fesm2022/ngwr-i18n-ja.mjs +6 -2
  133. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  134. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  135. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  136. package/fesm2022/ngwr-i18n-ko.mjs +6 -2
  137. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-nl.mjs +6 -2
  139. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-pl.mjs +6 -2
  141. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-pt.mjs +6 -2
  143. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-ru.mjs +6 -2
  145. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-sv.mjs +6 -2
  147. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-tr.mjs +6 -2
  149. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-uk.mjs +6 -2
  151. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-vi.mjs +6 -2
  153. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
  155. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-zh.mjs +6 -2
  157. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n.mjs +9 -9
  159. package/fesm2022/ngwr-icon.mjs +6 -6
  160. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  161. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  162. package/fesm2022/ngwr-input-number.mjs +3 -3
  163. package/fesm2022/ngwr-input-otp.mjs +3 -3
  164. package/fesm2022/ngwr-input.mjs +15 -15
  165. package/fesm2022/ngwr-keyboard.mjs +3 -3
  166. package/fesm2022/ngwr-knob.mjs +3 -3
  167. package/fesm2022/ngwr-layout.mjs +15 -15
  168. package/fesm2022/ngwr-lightbox.mjs +8 -8
  169. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  170. package/fesm2022/ngwr-list.mjs +8 -8
  171. package/fesm2022/ngwr-list.mjs.map +1 -1
  172. package/fesm2022/ngwr-load-state.mjs +16 -15
  173. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  174. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  175. package/fesm2022/ngwr-mention.mjs +6 -6
  176. package/fesm2022/ngwr-meta.mjs +6 -6
  177. package/fesm2022/ngwr-overlay.mjs +9 -9
  178. package/fesm2022/ngwr-page-header.mjs +3 -3
  179. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  180. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  181. package/fesm2022/ngwr-pagination.mjs +32 -5
  182. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  183. package/fesm2022/ngwr-pipes.mjs +27 -27
  184. package/fesm2022/ngwr-platform.mjs +9 -9
  185. package/fesm2022/ngwr-popconfirm.mjs +7 -6
  186. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  187. package/fesm2022/ngwr-popover.mjs +126 -16
  188. package/fesm2022/ngwr-popover.mjs.map +1 -1
  189. package/fesm2022/ngwr-progress.mjs +75 -10
  190. package/fesm2022/ngwr-progress.mjs.map +1 -1
  191. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  192. package/fesm2022/ngwr-qr.mjs +3 -3
  193. package/fesm2022/ngwr-radio.mjs +6 -6
  194. package/fesm2022/ngwr-rating.mjs +3 -3
  195. package/fesm2022/ngwr-resizable.mjs +3 -3
  196. package/fesm2022/ngwr-result.mjs +12 -12
  197. package/fesm2022/ngwr-schema-form.mjs +10 -6
  198. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  199. package/fesm2022/ngwr-scroll.mjs +255 -7
  200. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  201. package/fesm2022/ngwr-segmented.mjs +3 -3
  202. package/fesm2022/ngwr-select.mjs +28 -19
  203. package/fesm2022/ngwr-select.mjs.map +1 -1
  204. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  205. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  206. package/fesm2022/ngwr-sidebar.mjs +66 -11
  207. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  208. package/fesm2022/ngwr-skeleton.mjs +3 -3
  209. package/fesm2022/ngwr-slider.mjs +3 -3
  210. package/fesm2022/ngwr-sortable-list.mjs +11 -11
  211. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  212. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  213. package/fesm2022/ngwr-spinner.mjs +3 -3
  214. package/fesm2022/ngwr-splitter.mjs +3 -3
  215. package/fesm2022/ngwr-statistic.mjs +9 -9
  216. package/fesm2022/ngwr-stepper.mjs +6 -6
  217. package/fesm2022/ngwr-storage.mjs +3 -3
  218. package/fesm2022/ngwr-switch.mjs +3 -3
  219. package/fesm2022/ngwr-table-router.mjs +89 -0
  220. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  221. package/fesm2022/ngwr-table-testing.mjs +5 -0
  222. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  223. package/fesm2022/ngwr-table.mjs +282 -43
  224. package/fesm2022/ngwr-table.mjs.map +1 -1
  225. package/fesm2022/ngwr-tabs-router.mjs +11 -7
  226. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  227. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  228. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  229. package/fesm2022/ngwr-tabs.mjs +60 -10
  230. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  231. package/fesm2022/ngwr-textarea.mjs +3 -3
  232. package/fesm2022/ngwr-theme.mjs +3 -3
  233. package/fesm2022/ngwr-timeline.mjs +6 -6
  234. package/fesm2022/ngwr-toast.mjs +15 -15
  235. package/fesm2022/ngwr-toolbar.mjs +3 -3
  236. package/fesm2022/ngwr-tour.mjs +7 -6
  237. package/fesm2022/ngwr-tour.mjs.map +1 -1
  238. package/fesm2022/ngwr-transfer.mjs +4 -3
  239. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  240. package/fesm2022/ngwr-tree.mjs +3 -3
  241. package/fesm2022/ngwr-typography.mjs +3 -3
  242. package/fesm2022/ngwr-utils-router.mjs +3 -3
  243. package/fesm2022/ngwr-utils.mjs +30 -2
  244. package/fesm2022/ngwr-utils.mjs.map +1 -1
  245. package/fesm2022/ngwr-version.mjs +1 -1
  246. package/fesm2022/ngwr-version.mjs.map +1 -1
  247. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  248. package/fesm2022/ngwr-window.mjs +18 -13
  249. package/fesm2022/ngwr-window.mjs.map +1 -1
  250. package/file-upload/styles/_index.scss +16 -0
  251. package/graph/styles/_index.scss +48 -0
  252. package/i18n/ar.json +4 -2
  253. package/i18n/cs.json +4 -2
  254. package/i18n/de.json +4 -2
  255. package/i18n/en.json +4 -2
  256. package/i18n/es.json +4 -2
  257. package/i18n/fr.json +4 -2
  258. package/i18n/he.json +4 -2
  259. package/i18n/hi.json +4 -2
  260. package/i18n/id.json +4 -2
  261. package/i18n/it.json +4 -2
  262. package/i18n/ja.json +4 -2
  263. package/i18n/kk.json +567 -0
  264. package/i18n/ko.json +4 -2
  265. package/i18n/nl.json +4 -2
  266. package/i18n/pl.json +4 -2
  267. package/i18n/pt.json +4 -2
  268. package/i18n/ru.json +4 -2
  269. package/i18n/sv.json +4 -2
  270. package/i18n/tr.json +4 -2
  271. package/i18n/uk.json +4 -2
  272. package/i18n/vi.json +4 -2
  273. package/i18n/zh-TW.json +4 -2
  274. package/i18n/zh.json +4 -2
  275. package/llms-full.txt +29 -18
  276. package/llms.txt +4 -1
  277. package/package.json +15 -7
  278. package/pagination/styles/_index.scss +6 -0
  279. package/popover/styles/_index.scss +4 -2
  280. package/progress/styles/_index.scss +64 -0
  281. package/radio/styles/_index.scss +4 -0
  282. package/schematics/use/symbol-map.json +5 -0
  283. package/sidebar/styles/_index.scss +58 -6
  284. package/skills/ngwr/SKILL.md +7 -6
  285. package/skills/ngwr/references/catalog.md +6 -4
  286. package/switch/styles/_index.scss +4 -0
  287. package/table/styles/_index.scss +128 -32
  288. package/tabs/styles/_index.scss +9 -0
  289. package/theme/styles/_focus.scss +3 -1
  290. package/tour/styles/_index.scss +3 -2
  291. package/types/ngwr-avatar.d.ts +39 -0
  292. package/types/ngwr-button.d.ts +12 -0
  293. package/types/ngwr-date-picker-testing.d.ts +22 -0
  294. package/types/ngwr-date-picker.d.ts +84 -17
  295. package/types/ngwr-date.d.ts +51 -0
  296. package/types/ngwr-directives.d.ts +45 -0
  297. package/types/ngwr-dropdown-testing.d.ts +8 -1
  298. package/types/ngwr-dropdown.d.ts +29 -0
  299. package/types/ngwr-file-upload-testing.d.ts +10 -0
  300. package/types/ngwr-file-upload.d.ts +55 -1
  301. package/types/ngwr-form.d.ts +3 -1
  302. package/types/ngwr-graph-testing.d.ts +28 -1
  303. package/types/ngwr-graph.d.ts +53 -3
  304. package/types/ngwr-i18n-kk.d.ts +3 -0
  305. package/types/ngwr-image-cropper.d.ts +6 -0
  306. package/types/ngwr-pagination-testing.d.ts +8 -0
  307. package/types/ngwr-pagination.d.ts +16 -0
  308. package/types/ngwr-popover.d.ts +39 -0
  309. package/types/ngwr-progress.d.ts +63 -1
  310. package/types/ngwr-scroll.d.ts +95 -0
  311. package/types/ngwr-select.d.ts +31 -12
  312. package/types/ngwr-sidebar-testing.d.ts +21 -7
  313. package/types/ngwr-sidebar.d.ts +66 -4
  314. package/types/ngwr-table-router.d.ts +49 -0
  315. package/types/ngwr-table-testing.d.ts +7 -0
  316. package/types/ngwr-table.d.ts +185 -6
  317. package/types/ngwr-tabs-router.d.ts +4 -5
  318. package/types/ngwr-tabs-testing.d.ts +5 -1
  319. package/types/ngwr-tabs.d.ts +34 -1
  320. package/types/ngwr-utils.d.ts +13 -0
  321. package/types/ngwr-version.d.ts +1 -1
@@ -305,6 +305,12 @@ export declare class WrImageCropper {
305
305
  * `'loaded'`, since there is no image to draw.
306
306
  */
307
307
  toBlob(type?: WrImageOutputType, quality?: number): Promise<Blob>;
308
+ /**
309
+ * Render the current crop as a `File`. The extension of `name` is replaced by that of
310
+ * the type the browser actually encoded, which can differ from `type`: a browser falls
311
+ * back to PNG for a type it cannot encode. Rejects like `toBlob()`.
312
+ */
313
+ toFile(name: string, type?: WrImageOutputType, quality?: number): Promise<File>;
308
314
  /**
309
315
  * Render the current crop as a data URL. Throws while `status()` is anything but
310
316
  * `'loaded'`, since there is no image to draw.
@@ -128,6 +128,14 @@ export declare class WrPaginationHarness extends ComponentHarness {
128
128
  * {@link isPreviousDisabled} and {@link isNextDisabled} read.
129
129
  */
130
130
  isDisabled(): Promise<boolean>;
131
+ /**
132
+ * Whether `hideOnSinglePage` has hidden the pager: everything fits on one page,
133
+ * so it renders nothing and its host takes no box.
134
+ *
135
+ * Ask this first on a pager that may be hidden. It has no cells, step controls,
136
+ * total label or size changer then, so the reads that need one throw.
137
+ */
138
+ isHidden(): Promise<boolean>;
131
139
  /**
132
140
  * The whole strip in DOM order: a `number` for every page cell, and the gap
133
141
  * marker's own text (`…`) for every ellipsis.
@@ -87,6 +87,15 @@ export declare class WrPagination {
87
87
  * width, not the viewport). @default false
88
88
  */
89
89
  readonly responsive: import("@angular/core").InputSignalWithTransform<boolean, any>;
90
+ /**
91
+ * Render nothing while everything fits on one page, an empty list included.
92
+ * The host stays in the DOM with `display: none`: no layout box, no tab stop,
93
+ * no landmark, and the total label goes with the strip. With
94
+ * `showSizeChanger` it hides only when the smallest size on offer also gives
95
+ * one page, so choosing a large size cannot remove the way back.
96
+ * @default false
97
+ */
98
+ readonly hideOnSinglePage: import("@angular/core").InputSignalWithTransform<boolean, any>;
90
99
  /** Previous-page button aria-label. Falls back to `pagination.prev`. */
91
100
  readonly prevLabel: import("@angular/core").InputSignal<string | null>;
92
101
  /** Next-page button aria-label. Falls back to `pagination.next`. */
@@ -127,6 +136,8 @@ export declare class WrPagination {
127
136
  */
128
137
  private readonly usablePageSize;
129
138
  protected readonly totalPages: import("@angular/core").Signal<number>;
139
+ /** Internal: whether `hideOnSinglePage` applies right now. */
140
+ protected readonly hidden: import("@angular/core").Signal<boolean>;
130
141
  /**
131
142
  * Internal: where the previous arrow goes. Clamped to the end of the valid
132
143
  * range rather than being a plain `page() - 1`, because the page can
@@ -238,6 +249,11 @@ export declare class WrPagination {
238
249
  "required": false;
239
250
  "isSignal": true;
240
251
  };
252
+ "hideOnSinglePage": {
253
+ "alias": "hideOnSinglePage";
254
+ "required": false;
255
+ "isSignal": true;
256
+ };
241
257
  "prevLabel": {
242
258
  "alias": "prevLabel";
243
259
  "required": false;
@@ -279,6 +279,7 @@ export declare class WrPopover implements AfterViewInit {
279
279
  /** Fires after the panel closes. */
280
280
  readonly closed: import("@angular/core").OutputEmitterRef<void>;
281
281
  private readonly host;
282
+ private readonly tooltipOnly;
282
283
  private readonly focusMonitor;
283
284
  private readonly focusTraps;
284
285
  private readonly keystroke;
@@ -535,6 +536,44 @@ export declare class WrPopover implements AfterViewInit {
535
536
  "closed": "closed";
536
537
  }, never, never, true, never>;
537
538
  }
539
+ /**
540
+ * Short form of `[wrPopover]` with `mode="tooltip"`: the same panel, delays,
541
+ * hover and keyboard-focus trigger, and the same naming of an icon-only button.
542
+ *
543
+ * It is `WrPopover` as a host directive, so the inputs keep their `wrPopover`
544
+ * names, and `#tip="wrTooltip"` reaches it as `tip.popover` (`tip.popover.isOpen()`).
545
+ * Do not put `[wrPopover]` on the same element.
546
+ *
547
+ * @example
548
+ * ```html
549
+ * <wr-btn icon="trash" wrTooltip="Delete" />
550
+ * <wr-btn wrTooltip="Save changes" position="bottom">Save</wr-btn>
551
+ * ```
552
+ *
553
+ * @see https://ngwr.dev/reference/components/popover
554
+ */
555
+ export declare class WrTooltip {
556
+ /** The hosted popover: `isOpen()`, `open()`, `close()`. */
557
+ readonly popover: WrPopover;
558
+ constructor();
559
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrTooltip, never>;
560
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrTooltip, "[wrTooltip]", ["wrTooltip"], {}, {}, never, never, true, [{
561
+ directive: typeof WrPopover;
562
+ inputs: {
563
+ "wrPopover": "wrTooltip";
564
+ "position": "position";
565
+ "showDelay": "showDelay";
566
+ "hideDelay": "hideDelay";
567
+ "wrPopoverOrigin": "wrPopoverOrigin";
568
+ "wrPopoverDisabled": "wrPopoverDisabled";
569
+ "panelClass": "panelClass";
570
+ };
571
+ outputs: {
572
+ "opened": "opened";
573
+ "closed": "closed";
574
+ };
575
+ }]>;
576
+ }
538
577
  /** @internal */
539
578
  interface WrTextTooltip {
540
579
  /** Show `text` over the host, replacing what this handle showed before. */
@@ -1,4 +1,17 @@
1
1
  import * as i0 from "@angular/core";
2
+ /**
3
+ * @license
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
7
+ */
8
+ /** A point on the track of `<wr-progress>`: a tick at `value`, with an optional label under it. */
9
+ interface WrProgressMark {
10
+ /** Where the mark sits, on the scale of `value`: 0 to 100. */
11
+ readonly value: number;
12
+ /** Text under the mark. */
13
+ readonly label?: string;
14
+ }
2
15
  /** Size of a `<wr-progress>`. */
3
16
  type WrProgressSize = 'sm' | 'md' | 'lg';
4
17
  /**
@@ -9,15 +22,19 @@ type WrProgressSize = 'sm' | 'md' | 'lg';
9
22
  * <wr-progress [value]="42" />
10
23
  * <wr-progress color="success" [value]="80" />
11
24
  * <wr-progress indeterminate />
25
+ * <wr-progress size="sm" [value]="40" [marks]="[{ value: 25, label: 'Q1' }, { value: 50, label: 'Q2' }]" />
12
26
  * ```
13
27
  *
14
28
  * @see https://ngwr.dev/reference/components/progress
15
29
  */
16
30
  export declare class WrProgress {
31
+ private readonly host;
17
32
  constructor();
18
33
  /** Accessible name — `role="progressbar"` needs one. Falls back to `progress.label`. */
19
34
  readonly ariaLabel: import("@angular/core").InputSignal<string | null>;
20
35
  protected readonly resolvedAriaLabel: import("@angular/core").Signal<string>;
36
+ /** Prefix of the mark label ids the host's `aria-describedby` lists. */
37
+ protected readonly markId: string;
21
38
  /**
22
39
  * Bar color.
23
40
  *
@@ -44,8 +61,48 @@ export declare class WrProgress {
44
61
  * @default false
45
62
  */
46
63
  readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, any>;
64
+ /**
65
+ * Points drawn on the track: a tick at each `value`, on the 0 to 100 scale of
66
+ * `value`, and its `label` under the bar when it has one. A mark outside the
67
+ * range, or with no number, is not drawn. Positions mirror under `dir="rtl"`.
68
+ *
69
+ * A label stays inside the bar: centred on its tick mid-track, leaning inward
70
+ * towards the ends. One that would touch the label before it is hidden and
71
+ * its tick kept, so the earlier mark wins.
72
+ *
73
+ * Marks do not change the value the progressbar announces. The ticks are
74
+ * hidden from assistive tech; the labels are its description
75
+ * (`aria-describedby`), because ARIA treats the content of a progressbar as
76
+ * presentational and would not read them otherwise.
77
+ * `indeterminate` draws no marks: it has no scale to place them on.
78
+ *
79
+ * @example
80
+ * ```html
81
+ * <wr-progress [value]="40" [marks]="[{ value: 25, label: '1 Mar' }, { value: 75, label: '1 Sep' }]" />
82
+ * ```
83
+ *
84
+ * @default []
85
+ */
86
+ readonly marks: import("@angular/core").InputSignal<readonly WrProgressMark[]>;
47
87
  protected readonly clamped: import("@angular/core").Signal<number>;
88
+ /** The marks inside the range, in value order: none while the value is unknown. */
89
+ protected readonly drawnMarks: import("@angular/core").Signal<{
90
+ columns: string;
91
+ value: number;
92
+ label?: string;
93
+ }[]>;
94
+ protected readonly labelledMarks: import("@angular/core").Signal<{
95
+ columns: string;
96
+ value: number;
97
+ label?: string;
98
+ }[]>;
99
+ /** The label ids, in order, or nothing while no mark has a label. */
100
+ protected readonly markLabelIds: import("@angular/core").Signal<string | null>;
101
+ /** Indexes into `labelledMarks` of the labels hidden for touching the one before. */
102
+ protected readonly crowded: import("@angular/core").WritableSignal<ReadonlySet<number>>;
48
103
  protected readonly classes: import("@angular/core").Signal<string>;
104
+ /** Hide each label that would touch the last one still shown. Measured, so it follows the bar's width. */
105
+ private fitLabels;
49
106
  static ɵfac: i0.ɵɵFactoryDeclaration<WrProgress, never>;
50
107
  static ɵcmp: i0.ɵɵComponentDeclaration<WrProgress, "wr-progress", never, {
51
108
  "ariaLabel": {
@@ -73,6 +130,11 @@ export declare class WrProgress {
73
130
  "required": false;
74
131
  "isSignal": true;
75
132
  };
133
+ "marks": {
134
+ "alias": "marks";
135
+ "required": false;
136
+ "isSignal": true;
137
+ };
76
138
  }, {}, never, never, true, never>;
77
139
  }
78
- export type { WrProgressSize };
140
+ export type { WrProgressMark, WrProgressSize };
@@ -1,4 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
+ import { Signal } from "@angular/core";
2
3
  /**
3
4
  * @license
4
5
  *
@@ -59,9 +60,103 @@ export declare class WrScroll {
59
60
  /** Scroll the page (or container) to the top. */
60
61
  toTop(options?: WrScrollOptions): void;
61
62
  private resolveSelector;
63
+ /** `instant`, not `auto`: `auto` follows the container's `scroll-behavior`, which may be smooth. */
62
64
  private behavior;
63
65
  private scroll;
64
66
  static ɵfac: i0.ɵɵFactoryDeclaration<WrScroll, never>;
65
67
  static ɵprov: i0.ɵɵInjectableDeclaration<any>;
66
68
  }
69
+ /**
70
+ * Keeps a scroll container at its end while content grows, and holds the
71
+ * reader's place while they are somewhere else.
72
+ *
73
+ * The container starts at its end and stays there as rows are added, as a row
74
+ * grows (streamed text, an image that loads) and as the container is resized.
75
+ * Scrolling up stops the following at once; scrolling back to within
76
+ * `wrScrollFollowThreshold` of the end resumes it. While it is not following,
77
+ * the lowest row in view keeps its place when content above it changes, so
78
+ * older rows loaded at the top do not push the page down.
79
+ *
80
+ * `following` says which of the two it is doing, for a "jump to latest" button,
81
+ * and `toEnd()` is what that button calls.
82
+ *
83
+ * The rows are the container's children, or the children of its only child.
84
+ * The container scrolls vertically in the normal direction: RTL changes
85
+ * nothing, and a `column-reverse` container is not supported. Nothing runs on
86
+ * the server.
87
+ *
88
+ * @example
89
+ * ```html
90
+ * <div class="log" wrScrollFollow #log="wrScrollFollow">
91
+ * @for (message of messages(); track message.id) {
92
+ * <p>{{ message.text }}</p>
93
+ * }
94
+ * </div>
95
+ * @if (!log.following()) {
96
+ * <button type="button" (click)="log.toEnd()">Jump to latest</button>
97
+ * }
98
+ * ```
99
+ *
100
+ * @see https://ngwr.dev/reference/services/scroll
101
+ */
102
+ export declare class WrScrollFollow {
103
+ /** `false` switches it off and hands scroll anchoring back to the browser. Bare `wrScrollFollow` is on. */
104
+ readonly wrScrollFollow: import("@angular/core").InputSignalWithTransform<boolean, any>;
105
+ /** How close to the end, in pixels, the reader has to scroll back for the following to resume. */
106
+ readonly wrScrollFollowThreshold: import("@angular/core").InputSignalWithTransform<number, unknown>;
107
+ private readonly el;
108
+ private readonly scroll;
109
+ private readonly atEnd;
110
+ /** Whether the container is held at its end. `false` once the reader scrolls up, and while switched off. */
111
+ readonly following: Signal<boolean>;
112
+ private started;
113
+ private lastTop;
114
+ private anchors;
115
+ /** `scrollTop` when `anchors` was measured, so a scroll since then is not undone. */
116
+ private anchorsTop;
117
+ constructor();
118
+ /**
119
+ * Scroll to the end and follow again. Smooth unless `smooth` is `false` or
120
+ * the reader prefers reduced motion.
121
+ */
122
+ toEnd(options?: Pick<WrScrollOptions, 'smooth'>): void;
123
+ private distance;
124
+ private onScroll;
125
+ /**
126
+ * Any move up stops the following, so a reader can leave while text streams
127
+ * in; one that lands within a pixel of the end is the browser clamping to
128
+ * shorter content, and it follows again, since nothing is left to scroll back
129
+ * to. Only a move down resumes it: the directive's own writes are never read as one.
130
+ */
131
+ private read;
132
+ /** Content or the container changed size: hold the end, or hold the reader's place. */
133
+ private sync;
134
+ /** Instant whatever `scroll-behavior` the container has: an animated correction is a visible jump. */
135
+ private move;
136
+ /** Remember the lowest row in view. A row at the top would be the "load older" button. */
137
+ private capture;
138
+ /**
139
+ * The last child of `parent` that starts above the bottom of `box`, found by
140
+ * bisection: rows stack top to bottom, so only the ones around the view are
141
+ * measured, not every row below it. A child without a box (`display: none`,
142
+ * `display: contents`) has nothing to hold on to and is stepped over.
143
+ * `others` is whether `parent` has a second child with a box.
144
+ */
145
+ private lowestInView;
146
+ /** Put the remembered row back where it was. */
147
+ private restore;
148
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrScrollFollow, never>;
149
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrScrollFollow, "[wrScrollFollow]", ["wrScrollFollow"], {
150
+ "wrScrollFollow": {
151
+ "alias": "wrScrollFollow";
152
+ "required": false;
153
+ "isSignal": true;
154
+ };
155
+ "wrScrollFollowThreshold": {
156
+ "alias": "wrScrollFollowThreshold";
157
+ "required": false;
158
+ "isSignal": true;
159
+ };
160
+ }, {}, never, never, true, never>;
161
+ }
67
162
  export type { WrScrollOptions, WrScrollTarget };
@@ -22,9 +22,17 @@ import { Observable } from "rxjs";
22
22
  */
23
23
  type WrOptionLeadingPlacement = 'option' | 'chip' | 'value';
24
24
  /** Template context of `<ng-template wrOptionLeading>`. */
25
- interface WrOptionLeadingContext<T = unknown> {
26
- /** The option's value — `let-value`. */
25
+ interface WrOptionLeadingContext<T = unknown, I = T> {
26
+ /** The option's value — `let-value`. Under `valueWith` it is the id, not the item. */
27
27
  readonly $implicit: T;
28
+ /**
29
+ * The item behind the option — `let-item="item"`. With `[options]` it is the
30
+ * item itself, so under `valueWith` it carries the fields the id leaves out.
31
+ * Without `valueWith` it equals `$implicit`. On a `<wr-option>` you declare
32
+ * yourself there is no item, so it is the value too; so it is for a selected
33
+ * value no row carries any more, such as a loader result since replaced.
34
+ */
35
+ readonly item: I;
28
36
  /** Where this copy is drawn, so one template can size itself per surface. */
29
37
  readonly placement: WrOptionLeadingPlacement;
30
38
  }
@@ -109,6 +117,8 @@ interface WrSelectContext {
109
117
  * cannot be added, and marks itself unavailable.
110
118
  */
111
119
  readonly atMaxItems: Signal<boolean>;
120
+ /** The item behind a value, for a leading template's `item`; the value itself when none carries it. */
121
+ itemFor(value: unknown): unknown;
112
122
  /** Is the given option value currently selected? Handles both single and multi. */
113
123
  isSelected(value: unknown): boolean;
114
124
  /**
@@ -215,6 +225,8 @@ export declare class WrSelectLoadError<E = WrSafeAny> {
215
225
  interface SelectedChip {
216
226
  readonly value: unknown;
217
227
  readonly label: string;
228
+ /** The item behind the value, or the value itself when no row carries one. */
229
+ readonly item: unknown;
218
230
  /** The leading template this chip draws, or `null`. */
219
231
  readonly leading: TemplateRef<WrOptionLeadingContext> | null;
220
232
  }
@@ -765,7 +777,7 @@ export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V
765
777
  * `[loader]` results, virtual rows), and the default for projected options that
766
778
  * declare none of their own.
767
779
  */
768
- readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
780
+ readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
769
781
  /**
770
782
  * The leading template for a value: the registered option's (its own, or the
771
783
  * default it resolved to), else the select-wide default for a value with no
@@ -777,7 +789,7 @@ export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V
777
789
  * — one instance, for the one selected value. A search-shaped trigger draws the
778
790
  * same visual through {@link searchLeading}, on a narrower condition.
779
791
  */
780
- protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
792
+ protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
781
793
  /**
782
794
  * The same visual on a SEARCH-shaped trigger (`mode="search"`, a searchable
783
795
  * single), drawn before the input — the surface an assignee picker actually
@@ -805,7 +817,7 @@ export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V
805
817
  * piece of state to keep in step with the field. Pinned in `option.spec.ts`
806
818
  * ("re-creates it after a round trip"), so a future change here has to say so.
807
819
  */
808
- protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
820
+ protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
809
821
  /**
810
822
  * Trigger label for single mode. Multi reads `selectedChips` instead.
811
823
  *
@@ -841,6 +853,11 @@ export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V
841
853
  protected readonly dynamicOptions: import("@angular/core").Signal<readonly T[]>;
842
854
  /** An item's value: `valueWith` of it, or the item itself. */
843
855
  protected valueOf(item: T): V;
856
+ /**
857
+ * WrSelectContext - the item behind a value, for a leading template's `item`:
858
+ * the `[options]` item, else the one kept from an earlier pass, else the value.
859
+ */
860
+ itemFor(value: unknown): unknown;
844
861
  /** The first of `dynamicOptions()` carrying each value. */
845
862
  private readonly itemsByValue;
846
863
  /**
@@ -1501,7 +1518,9 @@ export declare class WrOption {
1501
1518
  * instantiate every row's avatar the moment the page renders. An option with
1502
1519
  * no parent select has no panel to wait for.
1503
1520
  */
1504
- protected readonly rowLeading: Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
1521
+ protected readonly rowLeading: Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
1522
+ /** The item behind this option, for the leading template's `item`; its value when the select holds none. */
1523
+ protected readonly rowItem: Signal<unknown>;
1505
1524
  /** The wrapper the leading visual renders into — skipped when reading the text. */
1506
1525
  private readonly leadingSlot;
1507
1526
  /**
@@ -1656,7 +1675,7 @@ export declare class WrOptionGroup {
1656
1675
  * <wr-select mode="multi" placeholder="Assignees" [(value)]="assignees">
1657
1676
  * @for (p of people; track p.id) {
1658
1677
  * <wr-option [value]="p.id">
1659
- * <ng-template wrOptionLeading let-placement="placement">
1678
+ * <ng-template wrOptionLeading let-placement="placement" let-item="item">
1660
1679
  * <wr-avatar shape="circle" [size]="placement === 'chip' ? 16 : 24" [url]="p.photo">{{ p.initials }}</wr-avatar>
1661
1680
  * </ng-template>
1662
1681
  * {{ p.name }}
@@ -1665,8 +1684,8 @@ export declare class WrOptionGroup {
1665
1684
  * </wr-select>
1666
1685
  * ```
1667
1686
  */
1668
- export declare class WrOptionLeading<T = WrSafeAny> {
1669
- readonly template: TemplateRef<WrOptionLeadingContext<T>>;
1687
+ export declare class WrOptionLeading<T = WrSafeAny, I = WrSafeAny> {
1688
+ readonly template: TemplateRef<WrOptionLeadingContext<T, I>>;
1670
1689
  /**
1671
1690
  * Types the template's `let-` variables under `strictTemplates`. Without it
1672
1691
  * `let-placement` is `any`, and indexing a `Record<WrOptionLeadingPlacement, …>`
@@ -1688,9 +1707,9 @@ export declare class WrOptionLeading<T = WrSafeAny> {
1688
1707
  * variable is in scope. This library's own docs page carries three helpers
1689
1708
  * typed `(id: unknown)` to get around it, with nothing saying why.
1690
1709
  */
1691
- static ngTemplateContextGuard<T>(_dir: WrOptionLeading<T>, _ctx: unknown): _ctx is WrOptionLeadingContext<T>;
1692
- static ɵfac: i0.ɵɵFactoryDeclaration<WrOptionLeading<any>, never>;
1693
- static ɵdir: i0.ɵɵDirectiveDeclaration<WrOptionLeading<any>, "ng-template[wrOptionLeading]", never, {}, {}, never, never, true, never>;
1710
+ static ngTemplateContextGuard<T, I>(_dir: WrOptionLeading<T, I>, _ctx: unknown): _ctx is WrOptionLeadingContext<T, I>;
1711
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrOptionLeading<any, any>, never>;
1712
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrOptionLeading<any, any>, "ng-template[wrOptionLeading]", never, {}, {}, never, never, true, never>;
1694
1713
  }
1695
1714
  /**
1696
1715
  * Token a `<wr-option>` injects to register itself with and notify its
@@ -21,8 +21,8 @@ interface WrSidebarGroupHarnessFilters extends BaseHarnessFilters {
21
21
  readonly open?: boolean;
22
22
  }
23
23
  /**
24
- * Test harness for one row of a `<wr-sidebar>`: a page link, a disabled page,
25
- * or the title row of a group.
24
+ * Test harness for one row of a `<wr-sidebar>`: a page link, an action, a
25
+ * disabled row, or the title row of a group.
26
26
  *
27
27
  * A row's accessible name is its title, badge and count joined by a hidden
28
28
  * separator. Each reader here answers one piece without that separator, so
@@ -46,13 +46,21 @@ export declare class WrSidebarItemHarness extends ComponentHarness {
46
46
  getLevel(): Promise<number>;
47
47
  /** Whether this row is the current page, from `aria-current="page"`. */
48
48
  isCurrent(): Promise<boolean>;
49
- /** Whether the row is a disabled page: plain text, out of the tab order. */
49
+ /** Whether the row is a disabled page or action: plain text, out of the tab order. */
50
50
  isDisabled(): Promise<boolean>;
51
51
  /** Whether the row is the title of a group. {@link WrSidebarGroupHarness} opens and closes it. */
52
52
  isGroup(): Promise<boolean>;
53
+ /** Whether the row is an action: a button that calls the entry's `action`, never the current page. */
54
+ isAction(): Promise<boolean>;
53
55
  /**
54
- * Click the row: a link navigates, and a group with no page of its own
55
- * toggles. Throws for a disabled page, which is text and does nothing.
56
+ * The chord an action announces, as `aria-keyshortcuts` spells it
57
+ * (`'Control+K Meta+K'` for `'mod+k'`), or `null`. Not the keycap's text: that
58
+ * follows the platform, and jsdom is never a Mac.
59
+ */
60
+ getShortcut(): Promise<string | null>;
61
+ /**
62
+ * Click the row: a link navigates, an action runs, and a group with no page
63
+ * of its own toggles. Throws for a disabled row, which is text and does nothing.
56
64
  */
57
65
  click(): Promise<void>;
58
66
  /** Move keyboard focus to the row. */
@@ -146,7 +154,11 @@ export declare class WrSidebarHarness extends ComponentHarness {
146
154
  static with(options?: WrSidebarHarnessFilters): HarnessPredicate<WrSidebarHarness>;
147
155
  /** The accessible name of the navigation landmark. */
148
156
  getLabel(): Promise<string | null>;
149
- /** The reachable rows, in order: pages, disabled pages and group titles, outside every closed group. */
157
+ /** The text projected into `[wrSidebarHeader]`, or `null` when the slot is unfilled. */
158
+ getHeaderText(): Promise<string | null>;
159
+ /** The text projected into `[wrSidebarFooter]`, or `null` when the slot is unfilled. */
160
+ getFooterText(): Promise<string | null>;
161
+ /** The reachable rows, in order: pages, actions, disabled rows and group titles, outside every closed group. */
150
162
  getItems(filters?: WrSidebarItemHarnessFilters): Promise<WrSidebarItemHarness[]>;
151
163
  /** The titles of the reachable rows, in order. */
152
164
  getItemTitles(): Promise<string[]>;
@@ -164,7 +176,7 @@ export declare class WrSidebarHarness extends ComponentHarness {
164
176
  * is current on every route unless it asks for an exact match.
165
177
  */
166
178
  getCurrentTitles(): Promise<string[]>;
167
- /** Click the first reachable row with this title. Throws when it is out of reach, or disabled. */
179
+ /** Click the first reachable row with this title: a link navigates, an action runs. Throws when it is out of reach, or disabled. */
168
180
  clickItem(title: string | RegExp): Promise<void>;
169
181
  /** Whether the first reachable group with this title is open. */
170
182
  isGroupOpen(title: string | RegExp): Promise<boolean>;
@@ -172,5 +184,7 @@ export declare class WrSidebarHarness extends ComponentHarness {
172
184
  openGroup(title: string | RegExp): Promise<void>;
173
185
  /** Close the first reachable group with this title. */
174
186
  closeGroup(title: string | RegExp): Promise<void>;
187
+ /** An unfilled slot holds no element and no text, which is what its `:empty` rule hides it by. */
188
+ private slotText;
175
189
  }
176
190
  export type { WrSidebarGroupHarnessFilters, WrSidebarHarnessFilters, WrSidebarItemHarnessFilters };
@@ -13,6 +13,11 @@ type WrSidebarActiveOptions = {
13
13
  * `danger` for Deprecated. The word carries the meaning; the tone only repeats it.
14
14
  */
15
15
  type WrSidebarBadgeTone = 'neutral' | 'primary' | 'danger';
16
+ /**
17
+ * How the current page is painted: `primary` is the brand tint, `neutral` a grey
18
+ * one, for a shell that keeps its primary for the page's own actions.
19
+ */
20
+ type WrSidebarActiveTone = 'primary' | 'neutral';
16
21
  /** A word on the line under the title (`New`, `Optional`, `Deprecated`). */
17
22
  interface WrSidebarBadge {
18
23
  readonly text: string;
@@ -66,8 +71,25 @@ interface WrSidebarGroup extends WrSidebarRow {
66
71
  /** Open on first render. @default false */
67
72
  readonly defaultOpen?: boolean;
68
73
  }
69
- /** Either a page or a group. */
70
- type WrSidebarEntry = WrSidebarItem | WrSidebarGroup;
74
+ /**
75
+ * A row that does something instead of going somewhere (open the search, start a
76
+ * new record): a `<button>` with the look and the keyboard of a link row. It has
77
+ * no route, so it is never the current page and no group opens for it.
78
+ */
79
+ interface WrSidebarAction extends WrSidebarRow {
80
+ /** Called on click, and on Enter and Space as on any button. */
81
+ readonly action: () => void;
82
+ /**
83
+ * The chord that runs the same action, in the `ngwr/hotkey` form (`'mod+k'`).
84
+ * Drawn at the end of the row the way the platform writes it and published as
85
+ * `aria-keyshortcuts`. A hint only: the app binds the chord itself.
86
+ */
87
+ readonly shortcut?: string;
88
+ /** Render as plain text, out of the tab order. A `badge` can say why (`Soon`). */
89
+ readonly disabled?: boolean;
90
+ }
91
+ /** A page, a group or an action. */
92
+ type WrSidebarEntry = WrSidebarItem | WrSidebarGroup | WrSidebarAction;
71
93
  /** One rendered row, with everything the template needs already decided. */
72
94
  interface SidebarNode {
73
95
  /** The title path: what the open state and `track` key on. */
@@ -91,6 +113,11 @@ interface SidebarNode {
91
113
  readonly countTail: string;
92
114
  /** Where the row links to. `null` is plain text for a page, a whole-row toggle for a group. */
93
115
  readonly url: readonly (string | number)[] | null;
116
+ /** What an action row runs. `null` on every other row, and on a disabled action. */
117
+ readonly action: (() => void) | null;
118
+ /** An action's chord as `wr-kbd` takes it and as `aria-keyshortcuts` spells it. */
119
+ readonly shortcut: string | null;
120
+ readonly keyShortcuts: string | null;
94
121
  readonly children: readonly SidebarNode[] | null;
95
122
  readonly open: boolean;
96
123
  readonly active: boolean;
@@ -110,12 +137,28 @@ interface SidebarNode {
110
137
  * gets `aria-current="page"`, and a collapsed group holding it shows a dot and
111
138
  * says so (`sidebar.containsCurrent`).
112
139
  *
140
+ * An entry with an `action` instead of a `url` is a `<button>` that calls it: the
141
+ * row for Search or New, with an optional `shortcut` chord at its end. It is
142
+ * never the current page.
143
+ *
113
144
  * Rows are 32px. Under a coarse pointer (a phone, a tablet) they grow to 44px,
114
145
  * and the split arrow to 44 by 44, with no input: the size follows the pointer
115
146
  * rather than the container, so the same sidebar in a drawer on a laptop keeps
116
147
  * its 32px rows. To force either size, set `--wr-sidebar-row-height`,
117
148
  * `--wr-sidebar-row-padding-y` and `--wr-sidebar-chevron-size` on `.wr-sidebar`.
118
149
  *
150
+ * The current page is painted through four hooks, `--wr-sidebar-row-active-bg`,
151
+ * `-color`, `-icon` and `-indicator` (the bar on the guide and the dot on a
152
+ * collapsed group), primary by default. `activeTone="neutral"` sets all four to
153
+ * the neutral roles.
154
+ *
155
+ * Two slots take any content: `[wrSidebarHeader]` above the rows (a workspace
156
+ * switcher, a search field) and `[wrSidebarFooter]` below them (the signed-in
157
+ * person, a language menu). Both sit inside the navigation landmark and inside
158
+ * the host's padding, `--wr-sidebar-slot-gap` away from the rows. The footer
159
+ * goes to the end of the host, so in a full-height sider it is at the bottom.
160
+ * An unfilled slot takes no room.
161
+ *
119
162
  * The host pads its rows by `--wr-sidebar-padding` (`0.5rem`), so a hovered or
120
163
  * current row's tint stays off the edge of whatever holds the nav. Where the
121
164
  * container already supplies the inset, set the hook to `0` on `.wr-sidebar`,
@@ -138,6 +181,14 @@ interface SidebarNode {
138
181
  * ]" />
139
182
  * ```
140
183
  *
184
+ * @example
185
+ * ```html
186
+ * <wr-sidebar [entries]="entries">
187
+ * <button wr-btn wrSidebarHeader block (click)="create()">New page</button>
188
+ * <button wr-btn wrSidebarFooter block outlined (click)="signOut()">Sign out</button>
189
+ * </wr-sidebar>
190
+ * ```
191
+ *
141
192
  * @see https://ngwr.dev/reference/components/sidebar
142
193
  */
143
194
  export declare class WrSidebar {
@@ -169,6 +220,12 @@ export declare class WrSidebar {
169
220
  * `autoExpand`. @default false
170
221
  */
171
222
  readonly autoCollapse: import("@angular/core").InputSignalWithTransform<boolean, any>;
223
+ /**
224
+ * How the current page is painted: the primary tint, or with `'neutral'` a
225
+ * grey one that leaves the primary to the page's own actions. Either way the
226
+ * four `--wr-sidebar-row-active-*` hooks take any colour. @default 'primary'
227
+ */
228
+ readonly activeTone: import("@angular/core").InputSignal<WrSidebarActiveTone>;
172
229
  /** Spoken after a collapsed group that holds the current page. */
173
230
  protected readonly containsCurrentLabel: import("@angular/core").Signal<string>;
174
231
  /** The split arrow's name: the group's title is the link beside it. */
@@ -250,6 +307,11 @@ export declare class WrSidebar {
250
307
  "required": false;
251
308
  "isSignal": true;
252
309
  };
253
- }, {}, never, never, true, never>;
310
+ "activeTone": {
311
+ "alias": "activeTone";
312
+ "required": false;
313
+ "isSignal": true;
314
+ };
315
+ }, {}, never, ["[wrSidebarHeader]", "[wrSidebarFooter]"], true, never>;
254
316
  }
255
- export type { WrSidebarActiveOptions, WrSidebarBadge, WrSidebarBadgeTone, WrSidebarEntry, WrSidebarGroup, WrSidebarItem, WrSidebarRow };
317
+ export type { WrSidebarAction, WrSidebarActiveOptions, WrSidebarActiveTone, WrSidebarBadge, WrSidebarBadgeTone, WrSidebarEntry, WrSidebarGroup, WrSidebarItem, WrSidebarRow };