ngwr 16.6.0 → 16.7.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 (318) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/button/styles/_index.scss +45 -2
  3. package/copy-value/styles/_index.scss +4 -0
  4. package/dropdown/styles/_index.scss +17 -0
  5. package/fesm2022/ngwr-affix.mjs +3 -3
  6. package/fesm2022/ngwr-alert.mjs +3 -3
  7. package/fesm2022/ngwr-anchor.mjs +3 -3
  8. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  9. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  10. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  11. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  12. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  13. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  14. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  15. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  16. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  17. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  18. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  19. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  20. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  21. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  22. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  24. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  25. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  26. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  27. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  28. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  29. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  30. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  31. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  32. package/fesm2022/ngwr-avatar.mjs +171 -6
  33. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  34. package/fesm2022/ngwr-back-top.mjs +3 -3
  35. package/fesm2022/ngwr-badge.mjs +6 -6
  36. package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
  37. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  38. package/fesm2022/ngwr-burger.mjs +3 -3
  39. package/fesm2022/ngwr-button.mjs +26 -6
  40. package/fesm2022/ngwr-button.mjs.map +1 -1
  41. package/fesm2022/ngwr-calendar.mjs +3 -3
  42. package/fesm2022/ngwr-card.mjs +9 -9
  43. package/fesm2022/ngwr-carousel.mjs +6 -6
  44. package/fesm2022/ngwr-cascader.mjs +5 -5
  45. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  46. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  47. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  48. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  49. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  50. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  51. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  52. package/fesm2022/ngwr-charts-core.mjs +6 -6
  53. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  54. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  55. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  56. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  57. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  58. package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
  59. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  61. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  62. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  63. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  64. package/fesm2022/ngwr-checkbox.mjs +6 -6
  65. package/fesm2022/ngwr-clipboard.mjs +3 -3
  66. package/fesm2022/ngwr-collapse.mjs +9 -9
  67. package/fesm2022/ngwr-color-picker.mjs +6 -6
  68. package/fesm2022/ngwr-command-palette.mjs +3 -3
  69. package/fesm2022/ngwr-comment.mjs +7 -6
  70. package/fesm2022/ngwr-comment.mjs.map +1 -1
  71. package/fesm2022/ngwr-compare.mjs +3 -3
  72. package/fesm2022/ngwr-context-menu.mjs +12 -12
  73. package/fesm2022/ngwr-cookie.mjs +3 -3
  74. package/fesm2022/ngwr-copy-value.mjs +3 -3
  75. package/fesm2022/ngwr-counter.mjs +6 -6
  76. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  77. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  78. package/fesm2022/ngwr-date-picker.mjs +102 -53
  79. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  80. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  81. package/fesm2022/ngwr-date.mjs +40 -16
  82. package/fesm2022/ngwr-date.mjs.map +1 -1
  83. package/fesm2022/ngwr-density.mjs +6 -6
  84. package/fesm2022/ngwr-descriptions.mjs +6 -6
  85. package/fesm2022/ngwr-dialog.mjs +19 -18
  86. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  87. package/fesm2022/ngwr-directives.mjs +181 -18
  88. package/fesm2022/ngwr-directives.mjs.map +1 -1
  89. package/fesm2022/ngwr-divider.mjs +3 -3
  90. package/fesm2022/ngwr-drawer.mjs +18 -18
  91. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  92. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  93. package/fesm2022/ngwr-dropdown.mjs +59 -16
  94. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  95. package/fesm2022/ngwr-editor.mjs +6 -5
  96. package/fesm2022/ngwr-editor.mjs.map +1 -1
  97. package/fesm2022/ngwr-empty.mjs +3 -3
  98. package/fesm2022/ngwr-event-calendar.mjs +7 -6
  99. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  100. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  101. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-file-upload.mjs +68 -13
  103. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  104. package/fesm2022/ngwr-form.mjs +18 -16
  105. package/fesm2022/ngwr-form.mjs.map +1 -1
  106. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  107. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  108. package/fesm2022/ngwr-graph.mjs +100 -11
  109. package/fesm2022/ngwr-graph.mjs.map +1 -1
  110. package/fesm2022/ngwr-hotkey.mjs +6 -6
  111. package/fesm2022/ngwr-i18n-ar.mjs +6 -2
  112. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  113. package/fesm2022/ngwr-i18n-cs.mjs +6 -2
  114. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  115. package/fesm2022/ngwr-i18n-de.mjs +6 -2
  116. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  117. package/fesm2022/ngwr-i18n-en.mjs +6 -2
  118. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  119. package/fesm2022/ngwr-i18n-es.mjs +6 -2
  120. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  121. package/fesm2022/ngwr-i18n-fr.mjs +6 -2
  122. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  123. package/fesm2022/ngwr-i18n-he.mjs +6 -2
  124. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  125. package/fesm2022/ngwr-i18n-hi.mjs +6 -2
  126. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  127. package/fesm2022/ngwr-i18n-id.mjs +6 -2
  128. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  129. package/fesm2022/ngwr-i18n-it.mjs +6 -2
  130. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  131. package/fesm2022/ngwr-i18n-ja.mjs +6 -2
  132. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  133. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  134. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  135. package/fesm2022/ngwr-i18n-ko.mjs +6 -2
  136. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  137. package/fesm2022/ngwr-i18n-nl.mjs +6 -2
  138. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  139. package/fesm2022/ngwr-i18n-pl.mjs +6 -2
  140. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-pt.mjs +6 -2
  142. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-ru.mjs +6 -2
  144. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-sv.mjs +6 -2
  146. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-tr.mjs +6 -2
  148. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-uk.mjs +6 -2
  150. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-vi.mjs +6 -2
  152. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
  154. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-zh.mjs +6 -2
  156. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n.mjs +9 -9
  158. package/fesm2022/ngwr-icon.mjs +6 -6
  159. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  160. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  161. package/fesm2022/ngwr-input-number.mjs +3 -3
  162. package/fesm2022/ngwr-input-otp.mjs +3 -3
  163. package/fesm2022/ngwr-input.mjs +15 -15
  164. package/fesm2022/ngwr-keyboard.mjs +3 -3
  165. package/fesm2022/ngwr-knob.mjs +3 -3
  166. package/fesm2022/ngwr-layout.mjs +15 -15
  167. package/fesm2022/ngwr-lightbox.mjs +8 -8
  168. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  169. package/fesm2022/ngwr-list.mjs +8 -8
  170. package/fesm2022/ngwr-list.mjs.map +1 -1
  171. package/fesm2022/ngwr-load-state.mjs +16 -15
  172. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  173. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  174. package/fesm2022/ngwr-mention.mjs +6 -6
  175. package/fesm2022/ngwr-meta.mjs +6 -6
  176. package/fesm2022/ngwr-overlay.mjs +9 -9
  177. package/fesm2022/ngwr-page-header.mjs +3 -3
  178. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  179. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  180. package/fesm2022/ngwr-pagination.mjs +32 -5
  181. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  182. package/fesm2022/ngwr-pipes.mjs +27 -27
  183. package/fesm2022/ngwr-platform.mjs +9 -9
  184. package/fesm2022/ngwr-popconfirm.mjs +7 -6
  185. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  186. package/fesm2022/ngwr-popover.mjs +115 -15
  187. package/fesm2022/ngwr-popover.mjs.map +1 -1
  188. package/fesm2022/ngwr-progress.mjs +75 -10
  189. package/fesm2022/ngwr-progress.mjs.map +1 -1
  190. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  191. package/fesm2022/ngwr-qr.mjs +3 -3
  192. package/fesm2022/ngwr-radio.mjs +6 -6
  193. package/fesm2022/ngwr-rating.mjs +3 -3
  194. package/fesm2022/ngwr-resizable.mjs +3 -3
  195. package/fesm2022/ngwr-result.mjs +12 -12
  196. package/fesm2022/ngwr-schema-form.mjs +10 -6
  197. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  198. package/fesm2022/ngwr-scroll.mjs +232 -7
  199. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  200. package/fesm2022/ngwr-segmented.mjs +3 -3
  201. package/fesm2022/ngwr-select.mjs +28 -19
  202. package/fesm2022/ngwr-select.mjs.map +1 -1
  203. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  204. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  205. package/fesm2022/ngwr-sidebar.mjs +66 -11
  206. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  207. package/fesm2022/ngwr-skeleton.mjs +3 -3
  208. package/fesm2022/ngwr-slider.mjs +3 -3
  209. package/fesm2022/ngwr-sortable-list.mjs +11 -11
  210. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  211. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  212. package/fesm2022/ngwr-spinner.mjs +3 -3
  213. package/fesm2022/ngwr-splitter.mjs +3 -3
  214. package/fesm2022/ngwr-statistic.mjs +9 -9
  215. package/fesm2022/ngwr-stepper.mjs +6 -6
  216. package/fesm2022/ngwr-storage.mjs +3 -3
  217. package/fesm2022/ngwr-switch.mjs +3 -3
  218. package/fesm2022/ngwr-table-router.mjs +89 -0
  219. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  220. package/fesm2022/ngwr-table-testing.mjs +5 -0
  221. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  222. package/fesm2022/ngwr-table.mjs +268 -42
  223. package/fesm2022/ngwr-table.mjs.map +1 -1
  224. package/fesm2022/ngwr-tabs-router.mjs +9 -5
  225. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  226. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  227. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  228. package/fesm2022/ngwr-tabs.mjs +60 -10
  229. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  230. package/fesm2022/ngwr-textarea.mjs +3 -3
  231. package/fesm2022/ngwr-theme.mjs +3 -3
  232. package/fesm2022/ngwr-timeline.mjs +6 -6
  233. package/fesm2022/ngwr-toast.mjs +15 -15
  234. package/fesm2022/ngwr-toolbar.mjs +3 -3
  235. package/fesm2022/ngwr-tour.mjs +7 -6
  236. package/fesm2022/ngwr-tour.mjs.map +1 -1
  237. package/fesm2022/ngwr-transfer.mjs +4 -3
  238. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  239. package/fesm2022/ngwr-tree.mjs +3 -3
  240. package/fesm2022/ngwr-typography.mjs +3 -3
  241. package/fesm2022/ngwr-utils-router.mjs +3 -3
  242. package/fesm2022/ngwr-utils.mjs +30 -2
  243. package/fesm2022/ngwr-utils.mjs.map +1 -1
  244. package/fesm2022/ngwr-version.mjs +1 -1
  245. package/fesm2022/ngwr-version.mjs.map +1 -1
  246. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  247. package/fesm2022/ngwr-window.mjs +18 -13
  248. package/fesm2022/ngwr-window.mjs.map +1 -1
  249. package/file-upload/styles/_index.scss +16 -0
  250. package/graph/styles/_index.scss +48 -0
  251. package/i18n/ar.json +4 -2
  252. package/i18n/cs.json +4 -2
  253. package/i18n/de.json +4 -2
  254. package/i18n/en.json +4 -2
  255. package/i18n/es.json +4 -2
  256. package/i18n/fr.json +4 -2
  257. package/i18n/he.json +4 -2
  258. package/i18n/hi.json +4 -2
  259. package/i18n/id.json +4 -2
  260. package/i18n/it.json +4 -2
  261. package/i18n/ja.json +4 -2
  262. package/i18n/kk.json +567 -0
  263. package/i18n/ko.json +4 -2
  264. package/i18n/nl.json +4 -2
  265. package/i18n/pl.json +4 -2
  266. package/i18n/pt.json +4 -2
  267. package/i18n/ru.json +4 -2
  268. package/i18n/sv.json +4 -2
  269. package/i18n/tr.json +4 -2
  270. package/i18n/uk.json +4 -2
  271. package/i18n/vi.json +4 -2
  272. package/i18n/zh-TW.json +4 -2
  273. package/i18n/zh.json +4 -2
  274. package/llms-full.txt +29 -18
  275. package/llms.txt +4 -1
  276. package/package.json +15 -7
  277. package/pagination/styles/_index.scss +6 -0
  278. package/popover/styles/_index.scss +4 -2
  279. package/progress/styles/_index.scss +64 -0
  280. package/schematics/use/symbol-map.json +5 -0
  281. package/sidebar/styles/_index.scss +58 -6
  282. package/skills/ngwr/SKILL.md +7 -6
  283. package/skills/ngwr/references/catalog.md +6 -4
  284. package/table/styles/_index.scss +121 -32
  285. package/tabs/styles/_index.scss +9 -0
  286. package/theme/styles/_focus.scss +3 -1
  287. package/tour/styles/_index.scss +3 -2
  288. package/types/ngwr-avatar.d.ts +39 -0
  289. package/types/ngwr-button.d.ts +12 -0
  290. package/types/ngwr-date-picker-testing.d.ts +22 -0
  291. package/types/ngwr-date-picker.d.ts +78 -17
  292. package/types/ngwr-date.d.ts +51 -0
  293. package/types/ngwr-directives.d.ts +45 -0
  294. package/types/ngwr-dropdown-testing.d.ts +8 -1
  295. package/types/ngwr-dropdown.d.ts +29 -0
  296. package/types/ngwr-file-upload-testing.d.ts +10 -0
  297. package/types/ngwr-file-upload.d.ts +55 -1
  298. package/types/ngwr-form.d.ts +3 -1
  299. package/types/ngwr-graph-testing.d.ts +28 -1
  300. package/types/ngwr-graph.d.ts +53 -3
  301. package/types/ngwr-i18n-kk.d.ts +3 -0
  302. package/types/ngwr-image-cropper.d.ts +6 -0
  303. package/types/ngwr-pagination-testing.d.ts +8 -0
  304. package/types/ngwr-pagination.d.ts +16 -0
  305. package/types/ngwr-popover.d.ts +39 -0
  306. package/types/ngwr-progress.d.ts +63 -1
  307. package/types/ngwr-scroll.d.ts +86 -0
  308. package/types/ngwr-select.d.ts +31 -12
  309. package/types/ngwr-sidebar-testing.d.ts +21 -7
  310. package/types/ngwr-sidebar.d.ts +66 -4
  311. package/types/ngwr-table-router.d.ts +49 -0
  312. package/types/ngwr-table-testing.d.ts +7 -0
  313. package/types/ngwr-table.d.ts +184 -6
  314. package/types/ngwr-tabs-router.d.ts +1 -1
  315. package/types/ngwr-tabs-testing.d.ts +5 -1
  316. package/types/ngwr-tabs.d.ts +34 -1
  317. package/types/ngwr-utils.d.ts +13 -0
  318. package/types/ngwr-version.d.ts +1 -1
@@ -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,94 @@ 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; within a pixel of the end it is the browser clamping to shorter content.
128
+ * Only a move down resumes it: the directive's own writes are never read as one.
129
+ */
130
+ private read;
131
+ /** Content or the container changed size: hold the end, or hold the reader's place. */
132
+ private sync;
133
+ /** Instant whatever `scroll-behavior` the container has: an animated correction is a visible jump. */
134
+ private move;
135
+ /** Remember the lowest row in view. A row at the top would be the "load older" button. */
136
+ private capture;
137
+ /** Put the remembered row back where it was. */
138
+ private restore;
139
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrScrollFollow, never>;
140
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrScrollFollow, "[wrScrollFollow]", ["wrScrollFollow"], {
141
+ "wrScrollFollow": {
142
+ "alias": "wrScrollFollow";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "wrScrollFollowThreshold": {
147
+ "alias": "wrScrollFollowThreshold";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ }, {}, never, never, true, never>;
152
+ }
67
153
  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 };
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Use of this source code is governed by an MIT-style license that can be
5
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
6
+ */
7
+ import * as i0 from "@angular/core";
8
+ import { WrTableRoutingAdapter } from "ngwr/table";
9
+ /**
10
+ * Router support for the row links of `<wr-table>`. Add it to the `imports` of
11
+ * the component that declares the table, and `wrTableRouting` to the table:
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * import { WrTable } from 'ngwr/table';
16
+ * import { WrTableRouting } from 'ngwr/table/router';
17
+ *
18
+ * @Component({ imports: [WrTable, WrTableRouting], template: `
19
+ * <wr-table wrTableRouting [columns]="columns" [items]="orders" [rowLink]="orderLink" />
20
+ * ` })
21
+ * export class OrdersPage {
22
+ * protected readonly orderLink = (order: Order) => ['/orders', order.id];
23
+ * }
24
+ * ```
25
+ *
26
+ * `rowLink` then returns what `routerLink` takes: a URL string or an array of
27
+ * commands, relative to the route of the component that declares the table
28
+ * unless it starts with `/`. A plain click navigates in the app; a middle
29
+ * click or a click with a modifier stays the browser's, on a real href. A
30
+ * string with a scheme or a host of its own (`https://…`, `mailto:…`, `//…`)
31
+ * stays a plain link.
32
+ *
33
+ * A separate entry point, so a table that links nowhere does not carry
34
+ * `@angular/router`; a directive rather than a provider function, so a
35
+ * relative link resolves against the declaring component's route. Both for
36
+ * the reasons `WrTabsRouting` gives.
37
+ */
38
+ export declare class WrTableRouting implements WrTableRoutingAdapter {
39
+ private readonly router;
40
+ private readonly locationStrategy;
41
+ private readonly route;
42
+ /** The current URL as a signal: a relative link's target moves when the route does. */
43
+ private readonly url;
44
+ href(link: string | readonly unknown[]): string;
45
+ navigate(link: string | readonly unknown[], event: MouseEvent): void;
46
+ private tree;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrTableRouting, never>;
48
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WrTableRouting, "[wrTableRouting]", ["wrTableRouting"], {}, {}, never, never, true, never>;
49
+ }
@@ -240,6 +240,7 @@ export declare class WrTableRowHarness extends ContentContainerComponentHarness
240
240
  * that for a control would report every leaf as expandable.
241
241
  */
242
242
  private readonly disclosure;
243
+ private readonly rowLink;
243
244
  /** The row's data cells, in DOM order. The lead control cells are not cells. */
244
245
  getCells(filters?: WrTableCellHarnessFilters): Promise<WrTableCellHarness[]>;
245
246
  /** The text of every data cell, in DOM order. */
@@ -270,6 +271,12 @@ export declare class WrTableRowHarness extends ContentContainerComponentHarness
270
271
  isExpanded(): Promise<boolean>;
271
272
  /** Open or close the row. Throws when it has nothing to open. */
272
273
  toggleExpand(): Promise<void>;
274
+ /**
275
+ * The href of the row's link, or `null` for a row that has none: the table
276
+ * sets no `rowLink`, or it returned `null` for this row. As rendered, so a
277
+ * routed link reads the way the browser would open it.
278
+ */
279
+ getLink(): Promise<string | null>;
273
280
  /**
274
281
  * The row's depth as the table announces it — 1-based `aria-level`, `null` in a
275
282
  * flat table, where depth is not a thing that exists.