ngwr 16.5.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 (450) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/back-top/styles/_index.scss +6 -0
  3. package/breadcrumbs/styles/_rules.scss +34 -0
  4. package/button/styles/_index.scss +45 -2
  5. package/cascader/styles/_rules.scss +7 -0
  6. package/charts/chart-legend/styles/_index.scss +1 -9
  7. package/copy-value/styles/_index.scss +4 -0
  8. package/counter/styles/_index.scss +1 -8
  9. package/date-picker/styles/_index.scss +15 -9
  10. package/dialog/styles/_index.scss +37 -0
  11. package/dropdown/styles/_index.scss +17 -0
  12. package/editor/styles/_index.scss +1 -8
  13. package/event-calendar/styles/_index.scss +2 -6
  14. package/fesm2022/ngwr-affix.mjs +4 -4
  15. package/fesm2022/ngwr-affix.mjs.map +1 -1
  16. package/fesm2022/ngwr-alert.mjs +3 -3
  17. package/fesm2022/ngwr-anchor.mjs +12 -5
  18. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  20. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  22. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  24. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  26. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  28. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  30. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  32. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  34. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  36. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  38. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  40. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  42. package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  44. package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  46. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  48. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  50. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  52. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  54. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  56. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  58. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  60. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  61. package/fesm2022/ngwr-animations-tilt.mjs +23 -16
  62. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  63. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  64. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  65. package/fesm2022/ngwr-avatar.mjs +171 -6
  66. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  67. package/fesm2022/ngwr-back-top.mjs +3 -3
  68. package/fesm2022/ngwr-badge.mjs +6 -6
  69. package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
  70. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  71. package/fesm2022/ngwr-burger.mjs +3 -3
  72. package/fesm2022/ngwr-button.mjs +38 -9
  73. package/fesm2022/ngwr-button.mjs.map +1 -1
  74. package/fesm2022/ngwr-calendar.mjs +3 -3
  75. package/fesm2022/ngwr-card.mjs +9 -9
  76. package/fesm2022/ngwr-carousel.mjs +14 -8
  77. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  78. package/fesm2022/ngwr-cascader.mjs +27 -7
  79. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  81. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  83. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  84. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  86. package/fesm2022/ngwr-charts-core.mjs +18 -11
  87. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  89. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  90. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  91. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  92. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  93. package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
  94. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  96. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  97. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  98. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  99. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  100. package/fesm2022/ngwr-checkbox.mjs +9 -8
  101. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  102. package/fesm2022/ngwr-clipboard.mjs +3 -3
  103. package/fesm2022/ngwr-collapse.mjs +9 -9
  104. package/fesm2022/ngwr-color-picker.mjs +27 -7
  105. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  106. package/fesm2022/ngwr-command-palette.mjs +3 -3
  107. package/fesm2022/ngwr-comment.mjs +7 -6
  108. package/fesm2022/ngwr-comment.mjs.map +1 -1
  109. package/fesm2022/ngwr-compare.mjs +3 -3
  110. package/fesm2022/ngwr-context-menu.mjs +16 -17
  111. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  112. package/fesm2022/ngwr-cookie.mjs +3 -3
  113. package/fesm2022/ngwr-copy-value.mjs +3 -3
  114. package/fesm2022/ngwr-counter.mjs +6 -6
  115. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  116. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  117. package/fesm2022/ngwr-date-picker.mjs +151 -54
  118. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  119. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  120. package/fesm2022/ngwr-date.mjs +40 -16
  121. package/fesm2022/ngwr-date.mjs.map +1 -1
  122. package/fesm2022/ngwr-density.mjs +6 -6
  123. package/fesm2022/ngwr-descriptions.mjs +6 -6
  124. package/fesm2022/ngwr-dialog.mjs +35 -24
  125. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  126. package/fesm2022/ngwr-directives.mjs +189 -23
  127. package/fesm2022/ngwr-directives.mjs.map +1 -1
  128. package/fesm2022/ngwr-divider.mjs +3 -3
  129. package/fesm2022/ngwr-drawer.mjs +18 -18
  130. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  131. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  132. package/fesm2022/ngwr-dropdown.mjs +59 -16
  133. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  134. package/fesm2022/ngwr-editor.mjs +6 -5
  135. package/fesm2022/ngwr-editor.mjs.map +1 -1
  136. package/fesm2022/ngwr-empty.mjs +3 -3
  137. package/fesm2022/ngwr-event-calendar.mjs +27 -15
  138. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  139. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  140. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  141. package/fesm2022/ngwr-file-upload.mjs +68 -13
  142. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  143. package/fesm2022/ngwr-form.mjs +181 -12
  144. package/fesm2022/ngwr-form.mjs.map +1 -1
  145. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  146. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  147. package/fesm2022/ngwr-graph.mjs +100 -11
  148. package/fesm2022/ngwr-graph.mjs.map +1 -1
  149. package/fesm2022/ngwr-hotkey.mjs +6 -6
  150. package/fesm2022/ngwr-i18n-ar.mjs +21 -2
  151. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-cs.mjs +21 -2
  153. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-de.mjs +21 -2
  155. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-en.mjs +21 -2
  157. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-es.mjs +21 -2
  159. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-fr.mjs +21 -2
  161. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-he.mjs +21 -2
  163. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-hi.mjs +21 -2
  165. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-id.mjs +21 -2
  167. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-it.mjs +21 -2
  169. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-ja.mjs +21 -2
  171. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  173. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  174. package/fesm2022/ngwr-i18n-ko.mjs +21 -2
  175. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-nl.mjs +21 -2
  177. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-pl.mjs +21 -2
  179. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-pt.mjs +21 -2
  181. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-ru.mjs +21 -2
  183. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-sv.mjs +21 -2
  185. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-tr.mjs +21 -2
  187. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-uk.mjs +21 -2
  189. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-vi.mjs +21 -2
  191. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
  193. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-zh.mjs +21 -2
  195. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n.mjs +91 -20
  197. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  198. package/fesm2022/ngwr-icon.mjs +6 -6
  199. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  200. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  201. package/fesm2022/ngwr-input-number.mjs +27 -4
  202. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  203. package/fesm2022/ngwr-input-otp.mjs +5 -5
  204. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  205. package/fesm2022/ngwr-input.mjs +25 -17
  206. package/fesm2022/ngwr-input.mjs.map +1 -1
  207. package/fesm2022/ngwr-keyboard.mjs +3 -3
  208. package/fesm2022/ngwr-knob.mjs +3 -3
  209. package/fesm2022/ngwr-layout.mjs +15 -15
  210. package/fesm2022/ngwr-layout.mjs.map +1 -1
  211. package/fesm2022/ngwr-lightbox.mjs +8 -8
  212. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  213. package/fesm2022/ngwr-list.mjs +9 -9
  214. package/fesm2022/ngwr-list.mjs.map +1 -1
  215. package/fesm2022/ngwr-load-state.mjs +16 -15
  216. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  217. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  218. package/fesm2022/ngwr-loading-bar.mjs +8 -8
  219. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  220. package/fesm2022/ngwr-mention.mjs +14 -6
  221. package/fesm2022/ngwr-mention.mjs.map +1 -1
  222. package/fesm2022/ngwr-meta.mjs +15 -12
  223. package/fesm2022/ngwr-meta.mjs.map +1 -1
  224. package/fesm2022/ngwr-overlay.mjs +9 -9
  225. package/fesm2022/ngwr-page-header.mjs +24 -3
  226. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  227. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  228. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  229. package/fesm2022/ngwr-pagination.mjs +34 -5
  230. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  231. package/fesm2022/ngwr-pipes.mjs +35 -28
  232. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  233. package/fesm2022/ngwr-platform.mjs +9 -9
  234. package/fesm2022/ngwr-popconfirm.mjs +9 -7
  235. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  236. package/fesm2022/ngwr-popover.mjs +162 -18
  237. package/fesm2022/ngwr-popover.mjs.map +1 -1
  238. package/fesm2022/ngwr-progress.mjs +75 -10
  239. package/fesm2022/ngwr-progress.mjs.map +1 -1
  240. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  241. package/fesm2022/ngwr-qr.mjs +9 -5
  242. package/fesm2022/ngwr-qr.mjs.map +1 -1
  243. package/fesm2022/ngwr-radio.mjs +77 -11
  244. package/fesm2022/ngwr-radio.mjs.map +1 -1
  245. package/fesm2022/ngwr-rating.mjs +3 -3
  246. package/fesm2022/ngwr-resizable.mjs +3 -3
  247. package/fesm2022/ngwr-result.mjs +12 -12
  248. package/fesm2022/ngwr-schema-form.mjs +20 -7
  249. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  250. package/fesm2022/ngwr-scroll.mjs +233 -10
  251. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  252. package/fesm2022/ngwr-segmented.mjs +23 -3
  253. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  254. package/fesm2022/ngwr-select.mjs +106 -26
  255. package/fesm2022/ngwr-select.mjs.map +1 -1
  256. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  257. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  258. package/fesm2022/ngwr-sidebar.mjs +66 -11
  259. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  260. package/fesm2022/ngwr-skeleton.mjs +3 -3
  261. package/fesm2022/ngwr-slider.mjs +3 -3
  262. package/fesm2022/ngwr-sortable-list.mjs +27 -15
  263. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  264. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  265. package/fesm2022/ngwr-spinner.mjs +3 -3
  266. package/fesm2022/ngwr-splitter.mjs +3 -3
  267. package/fesm2022/ngwr-statistic.mjs +9 -9
  268. package/fesm2022/ngwr-stepper.mjs +6 -6
  269. package/fesm2022/ngwr-storage.mjs +4 -4
  270. package/fesm2022/ngwr-storage.mjs.map +1 -1
  271. package/fesm2022/ngwr-switch.mjs +5 -5
  272. package/fesm2022/ngwr-switch.mjs.map +1 -1
  273. package/fesm2022/ngwr-table-router.mjs +89 -0
  274. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  275. package/fesm2022/ngwr-table-testing.mjs +5 -0
  276. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  277. package/fesm2022/ngwr-table.mjs +307 -47
  278. package/fesm2022/ngwr-table.mjs.map +1 -1
  279. package/fesm2022/ngwr-tabs-router.mjs +9 -5
  280. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  281. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  282. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tabs.mjs +60 -10
  284. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  285. package/fesm2022/ngwr-textarea.mjs +5 -5
  286. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  287. package/fesm2022/ngwr-theme.mjs +3 -3
  288. package/fesm2022/ngwr-timeline.mjs +6 -6
  289. package/fesm2022/ngwr-toast.mjs +43 -15
  290. package/fesm2022/ngwr-toast.mjs.map +1 -1
  291. package/fesm2022/ngwr-toolbar.mjs +3 -3
  292. package/fesm2022/ngwr-tour.mjs +9 -8
  293. package/fesm2022/ngwr-tour.mjs.map +1 -1
  294. package/fesm2022/ngwr-transfer.mjs +4 -3
  295. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  296. package/fesm2022/ngwr-tree.mjs +3 -3
  297. package/fesm2022/ngwr-typography.mjs +23 -3
  298. package/fesm2022/ngwr-typography.mjs.map +1 -1
  299. package/fesm2022/ngwr-utils-router.mjs +3 -3
  300. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  301. package/fesm2022/ngwr-utils.mjs +74 -4
  302. package/fesm2022/ngwr-utils.mjs.map +1 -1
  303. package/fesm2022/ngwr-validators.mjs +33 -1
  304. package/fesm2022/ngwr-validators.mjs.map +1 -1
  305. package/fesm2022/ngwr-version.mjs +1 -1
  306. package/fesm2022/ngwr-version.mjs.map +1 -1
  307. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  308. package/fesm2022/ngwr-window.mjs +18 -13
  309. package/fesm2022/ngwr-window.mjs.map +1 -1
  310. package/file-upload/styles/_index.scss +16 -0
  311. package/form/styles/_index.scss +37 -0
  312. package/graph/styles/_index.scss +49 -9
  313. package/i18n/ar.json +19 -2
  314. package/i18n/cs.json +19 -2
  315. package/i18n/de.json +19 -2
  316. package/i18n/en.json +19 -2
  317. package/i18n/es.json +19 -2
  318. package/i18n/fr.json +19 -2
  319. package/i18n/he.json +19 -2
  320. package/i18n/hi.json +19 -2
  321. package/i18n/id.json +19 -2
  322. package/i18n/it.json +19 -2
  323. package/i18n/ja.json +19 -2
  324. package/i18n/kk.json +567 -0
  325. package/i18n/ko.json +19 -2
  326. package/i18n/nl.json +19 -2
  327. package/i18n/pl.json +19 -2
  328. package/i18n/pt.json +19 -2
  329. package/i18n/ru.json +19 -2
  330. package/i18n/sv.json +19 -2
  331. package/i18n/tr.json +19 -2
  332. package/i18n/uk.json +19 -2
  333. package/i18n/vi.json +19 -2
  334. package/i18n/zh-TW.json +19 -2
  335. package/i18n/zh.json +19 -2
  336. package/image-cropper/styles/_index.scss +1 -9
  337. package/input-number/styles/_index.scss +7 -0
  338. package/layout/styles/_index.scss +13 -1
  339. package/llms-full.txt +37 -26
  340. package/llms.txt +4 -1
  341. package/loading-bar/styles/_rules.scss +6 -0
  342. package/package.json +16 -8
  343. package/page-header/styles/_index.scss +18 -0
  344. package/pagination/styles/_index.scss +6 -0
  345. package/popover/styles/_index.scss +9 -0
  346. package/progress/styles/_index.scss +64 -0
  347. package/schematics/use/symbol-map.json +7 -0
  348. package/segmented/styles/_index.scss +7 -0
  349. package/select/styles/_index.scss +7 -0
  350. package/sidebar/styles/_index.scss +64 -6
  351. package/skills/ngwr/SKILL.md +7 -6
  352. package/skills/ngwr/references/catalog.md +7 -5
  353. package/sortable-list/styles/_rules.scss +1 -9
  354. package/speed-dial/styles/_index.scss +6 -0
  355. package/stepper/styles/_index.scss +1 -9
  356. package/table/styles/_index.scss +168 -30
  357. package/tabs/styles/_index.scss +9 -0
  358. package/theme/_index.scss +12 -1
  359. package/theme/styles/_colors.scss +11 -0
  360. package/theme/styles/_contrast.scss +6 -0
  361. package/theme/styles/_focus.scss +3 -1
  362. package/theme/styles/_index.scss +1 -0
  363. package/theme/styles/_mixins.scss +45 -0
  364. package/theme/styles/_print.scss +17 -0
  365. package/toast/styles/_index.scss +7 -0
  366. package/tour/styles/_index.scss +9 -0
  367. package/tree/styles/_index.scss +1 -9
  368. package/types/ngwr-anchor.d.ts +3 -0
  369. package/types/ngwr-animations-aurora.d.ts +6 -0
  370. package/types/ngwr-animations-blur-reveal.d.ts +6 -0
  371. package/types/ngwr-animations-click-sparks.d.ts +6 -0
  372. package/types/ngwr-animations-confetti.d.ts +6 -0
  373. package/types/ngwr-animations-decode.d.ts +6 -0
  374. package/types/ngwr-animations-destruct.d.ts +6 -0
  375. package/types/ngwr-animations-dot-grid.d.ts +6 -0
  376. package/types/ngwr-animations-falling-letters.d.ts +6 -0
  377. package/types/ngwr-animations-flow-lines.d.ts +6 -0
  378. package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
  379. package/types/ngwr-animations-glitch.d.ts +6 -0
  380. package/types/ngwr-animations-glow-border.d.ts +6 -0
  381. package/types/ngwr-animations-gradient-flow.d.ts +6 -0
  382. package/types/ngwr-animations-marquee.d.ts +6 -0
  383. package/types/ngwr-animations-orbit.d.ts +6 -0
  384. package/types/ngwr-animations-reveal.d.ts +6 -0
  385. package/types/ngwr-animations-ripple-grid.d.ts +6 -0
  386. package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
  387. package/types/ngwr-animations-shimmer.d.ts +6 -0
  388. package/types/ngwr-animations-spotlight.d.ts +6 -0
  389. package/types/ngwr-animations-thread-lines.d.ts +6 -0
  390. package/types/ngwr-animations-tilt.d.ts +10 -0
  391. package/types/ngwr-animations-typewriter.d.ts +6 -0
  392. package/types/ngwr-avatar.d.ts +39 -0
  393. package/types/ngwr-breadcrumbs.d.ts +25 -0
  394. package/types/ngwr-button.d.ts +35 -3
  395. package/types/ngwr-carousel.d.ts +2 -0
  396. package/types/ngwr-cascader.d.ts +7 -0
  397. package/types/ngwr-charts-core.d.ts +16 -0
  398. package/types/ngwr-charts-meter-group.d.ts +2 -0
  399. package/types/ngwr-checkbox.d.ts +1 -0
  400. package/types/ngwr-color-picker.d.ts +1 -0
  401. package/types/ngwr-context-menu.d.ts +1 -1
  402. package/types/ngwr-date-picker-testing.d.ts +22 -0
  403. package/types/ngwr-date-picker.d.ts +97 -17
  404. package/types/ngwr-date.d.ts +51 -0
  405. package/types/ngwr-dialog.d.ts +39 -8
  406. package/types/ngwr-directives.d.ts +57 -4
  407. package/types/ngwr-drawer.d.ts +1 -1
  408. package/types/ngwr-dropdown-testing.d.ts +8 -1
  409. package/types/ngwr-dropdown.d.ts +30 -1
  410. package/types/ngwr-event-calendar.d.ts +4 -0
  411. package/types/ngwr-file-upload-testing.d.ts +10 -0
  412. package/types/ngwr-file-upload.d.ts +55 -1
  413. package/types/ngwr-form.d.ts +87 -1
  414. package/types/ngwr-graph-testing.d.ts +28 -1
  415. package/types/ngwr-graph.d.ts +53 -3
  416. package/types/ngwr-i18n-kk.d.ts +3 -0
  417. package/types/ngwr-i18n.d.ts +65 -5
  418. package/types/ngwr-image-cropper.d.ts +6 -0
  419. package/types/ngwr-input-number.d.ts +8 -0
  420. package/types/ngwr-input.d.ts +7 -0
  421. package/types/ngwr-layout.d.ts +1 -1
  422. package/types/ngwr-loading-bar-router.d.ts +6 -0
  423. package/types/ngwr-page-header.d.ts +23 -1
  424. package/types/ngwr-pagination-testing.d.ts +8 -0
  425. package/types/ngwr-pagination.d.ts +16 -0
  426. package/types/ngwr-popconfirm.d.ts +1 -1
  427. package/types/ngwr-popover.d.ts +67 -4
  428. package/types/ngwr-progress.d.ts +63 -1
  429. package/types/ngwr-radio.d.ts +47 -5
  430. package/types/ngwr-scroll.d.ts +86 -0
  431. package/types/ngwr-segmented.d.ts +7 -0
  432. package/types/ngwr-select.d.ts +88 -25
  433. package/types/ngwr-sidebar-testing.d.ts +21 -7
  434. package/types/ngwr-sidebar.d.ts +66 -4
  435. package/types/ngwr-sortable-list.d.ts +20 -7
  436. package/types/ngwr-table-router.d.ts +49 -0
  437. package/types/ngwr-table-testing.d.ts +7 -0
  438. package/types/ngwr-table.d.ts +241 -10
  439. package/types/ngwr-tabs-router.d.ts +7 -1
  440. package/types/ngwr-tabs-testing.d.ts +5 -1
  441. package/types/ngwr-tabs.d.ts +34 -1
  442. package/types/ngwr-toast.d.ts +11 -0
  443. package/types/ngwr-tour.d.ts +0 -1
  444. package/types/ngwr-typography.d.ts +7 -0
  445. package/types/ngwr-utils-router.d.ts +6 -0
  446. package/types/ngwr-utils.d.ts +69 -2
  447. package/types/ngwr-validators.d.ts +49 -1
  448. package/types/ngwr-version.d.ts +1 -1
  449. package/typography/styles/_index.scss +4 -0
  450. package/window/styles/_index.scss +1 -9
@@ -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
  }
@@ -242,11 +254,12 @@ interface SelectedChip {
242
254
  * `ControlValueAccessor` in between. `[(value)]` works standalone, and classic
243
255
  * `[(ngModel)]` / reactive forms keep working through Angular's bridge.
244
256
  *
245
- * `T` is an option's value. It is inferred from `[options]`, `[loader]` or the
246
- * value binding, and `value` is `T | readonly T[] | null`: one `T` in single and
257
+ * `T` is an item of `[options]` or of what `[loader]` returns, and `V` is an
258
+ * option's value: the return type of `[valueWith]`, or else the type of the
259
+ * value binding. `value` is `V | readonly V[] | null`: one `V` in single and
247
260
  * search mode, an array of them in multi and tag mode. The mode is a runtime
248
- * input, so the type cannot pick one shape; narrow in the handler, or leave `T`
249
- * at its default `unknown`, which is what every select was before.
261
+ * input, so the type cannot pick one shape; narrow in the handler, or leave
262
+ * both at their default `unknown`.
250
263
  *
251
264
  * @example
252
265
  * ```html
@@ -272,12 +285,15 @@ interface SelectedChip {
272
285
  * [(value)]="categories"
273
286
  * (searchChange)="store.search($event)"
274
287
  * />
288
+ *
289
+ * <!-- Options of objects, the id in the model -->
290
+ * <wr-select [options]="people()" [displayWith]="personName" [valueWith]="personId" [(value)]="assigneeId" />
275
291
  * ```
276
292
  *
277
293
  *
278
294
  * @see https://ngwr.dev/reference/components/select
279
295
  */
280
- export declare class WrSelect<T = unknown> implements FormValueControl<T | readonly T[] | null>, WrSelectContext {
296
+ export declare class WrSelect<T = unknown, V = T> implements FormValueControl<V | readonly V[] | null>, WrSelectContext {
281
297
  /** Placeholder shown when no option is selected. Falls back to `select.placeholder`. */
282
298
  readonly placeholder: import("@angular/core").InputSignal<string | null>;
283
299
  /** Clear-selection (×) button aria-label. Falls back to `select.clearSelection`. */
@@ -352,6 +368,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
352
368
  private readonly fieldAria;
353
369
  protected readonly describedBy: import("@angular/core").Signal<string | null>;
354
370
  protected readonly ariaInvalid: import("@angular/core").Signal<"true" | null>;
371
+ protected readonly ariaRequired: import("@angular/core").Signal<"true" | null>;
355
372
  /**
356
373
  * Disable the select. Bound automatically from the field's disabled state
357
374
  * when used with `[formField]`.
@@ -373,6 +390,8 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
373
390
  * @default false
374
391
  */
375
392
  readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, any>;
393
+ /** Stretch the select to fill its parent's width. @default false */
394
+ readonly block: import("@angular/core").InputSignalWithTransform<boolean, any>;
376
395
  /** Pill-shaped corners on the trigger. @default false */
377
396
  readonly rounded: import("@angular/core").InputSignalWithTransform<boolean, any>;
378
397
  /**
@@ -440,13 +459,15 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
440
459
  readonly searchQuery: import("@angular/core").ModelSignal<string>;
441
460
  /**
442
461
  * Option array, in every mode with a panel. Each item is rendered as a
443
- * `<wr-option>` whose value is the item and whose label comes from
444
- * `[displayWith]`, before any projected `<wr-option>` children; a search
445
- * query filters both lists alike. Ignored in `tag` mode, which has no panel.
462
+ * `<wr-option>` whose value is the item, or `[valueWith]` of it, and whose
463
+ * label comes from `[displayWith]`, before any projected `<wr-option>`
464
+ * children; a search query filters both lists alike. Ignored in `tag` mode,
465
+ * which has no panel.
446
466
  *
447
467
  * @example
448
468
  * ```html
449
469
  * <wr-select [options]="countries" [displayWith]="countryName" [(value)]="country" />
470
+ * <wr-select [options]="countries" [displayWith]="countryName" [valueWith]="countryCode" [(value)]="code" />
450
471
  * <wr-select mode="multi" [options]="tags" [(value)]="picked" />
451
472
  * ```
452
473
  */
@@ -456,6 +477,19 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
456
477
  * selected, on its chip in multi mode. @default String
457
478
  */
458
479
  readonly displayWith: import("@angular/core").InputSignal<(item: T) => string>;
480
+ /**
481
+ * Maps an `[options]` item, or a `[loader]` result, to the value the model
482
+ * holds, so a list of objects can bind an id. The trigger and the chips show
483
+ * the label of the item whose value matches. Values are compared with `===`.
484
+ * Without it an item is its own value. Not read by `freeText`, which commits
485
+ * the typed string, or by `tag` mode, which has no options.
486
+ *
487
+ * @example
488
+ * ```html
489
+ * <wr-select [options]="people()" [displayWith]="personName" [valueWith]="personId" [(value)]="assigneeId" />
490
+ * ```
491
+ */
492
+ readonly valueWith: import("@angular/core").InputSignal<((item: T) => V) | null>;
459
493
  /**
460
494
  * Search mode: async loader. When set, the loader is called on every
461
495
  * (debounced) keystroke and its result replaces `[options]`. Supports
@@ -671,10 +705,10 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
671
705
  readonly maxTagCount: import("@angular/core").InputSignalWithTransform<number, unknown>;
672
706
  /**
673
707
  * Unified value. Single mode holds a scalar (or `null`); multi / tag
674
- * mode holds `readonly T[]`. Bound by `[formField]`, or two-way
708
+ * mode holds `readonly V[]`. Bound by `[formField]`, or two-way
675
709
  * via `[(value)]`.
676
710
  */
677
- readonly value: import("@angular/core").ModelSignal<T | readonly T[] | null>;
711
+ readonly value: import("@angular/core").ModelSignal<V | readonly V[] | null>;
678
712
  /** Emitted on blur / commit so a bound field can mark itself touched. */
679
713
  readonly touch: import("@angular/core").OutputEmitterRef<void>;
680
714
  /** Fires after the panel opens. */
@@ -743,7 +777,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
743
777
  * `[loader]` results, virtual rows), and the default for projected options that
744
778
  * declare none of their own.
745
779
  */
746
- readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
780
+ readonly optionLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
747
781
  /**
748
782
  * The leading template for a value: the registered option's (its own, or the
749
783
  * default it resolved to), else the select-wide default for a value with no
@@ -755,7 +789,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
755
789
  * — one instance, for the one selected value. A search-shaped trigger draws the
756
790
  * same visual through {@link searchLeading}, on a narrower condition.
757
791
  */
758
- protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
792
+ protected readonly selectedLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
759
793
  /**
760
794
  * The same visual on a SEARCH-shaped trigger (`mode="search"`, a searchable
761
795
  * single), drawn before the input — the surface an assignee picker actually
@@ -783,7 +817,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
783
817
  * piece of state to keep in step with the field. Pinned in `option.spec.ts`
784
818
  * ("re-creates it after a round trip"), so a future change here has to say so.
785
819
  */
786
- protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown>> | null>;
820
+ protected readonly searchLeading: import("@angular/core").Signal<TemplateRef<WrOptionLeadingContext<unknown, unknown>> | null>;
787
821
  /**
788
822
  * Trigger label for single mode. Multi reads `selectedChips` instead.
789
823
  *
@@ -817,7 +851,23 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
817
851
  * `<wr-option>` in the panel, in every mode that has one.
818
852
  */
819
853
  protected readonly dynamicOptions: import("@angular/core").Signal<readonly T[]>;
820
- private readonly dynamicOptionSet;
854
+ /** An item's value: `valueWith` of it, or the item itself. */
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;
861
+ /** The first of `dynamicOptions()` carrying each value. */
862
+ private readonly itemsByValue;
863
+ /**
864
+ * Under `valueWith`, the item behind each selected value. An item stays here
865
+ * after a loader or a server search has dropped its row, so the label of an
866
+ * id outlives the query it was picked under.
867
+ */
868
+ private readonly selectedItems;
869
+ /** A chip's label under `valueWith`: its item's, or the value as text while no item carries it. */
870
+ private itemLabel;
821
871
  /** Lowercased labels of `dynamicOptions()`, by index: a query reads them, and never `displayWith`. */
822
872
  private readonly dynamicSearchLabels;
823
873
  private static readonly FALLBACK_ROW_PX;
@@ -874,6 +924,7 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
874
924
  /** The windowed slice of options, each carrying its absolute index. */
875
925
  protected readonly windowOptions: import("@angular/core").Signal<readonly {
876
926
  item: T;
927
+ value: V;
877
928
  index: number;
878
929
  }[]>;
879
930
  /** Stable id for a virtual option row at filtered index `i`. */
@@ -1197,8 +1248,8 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
1197
1248
  private panelPositions;
1198
1249
  /** `notify: false` is the destroy path: an output cannot emit from a destroyed view. */
1199
1250
  private closeOverlay;
1200
- static ɵfac: i0.ɵɵFactoryDeclaration<WrSelect<any>, never>;
1201
- static ɵcmp: i0.ɵɵComponentDeclaration<WrSelect<any>, "wr-select", never, {
1251
+ static ɵfac: i0.ɵɵFactoryDeclaration<WrSelect<any, any>, never>;
1252
+ static ɵcmp: i0.ɵɵComponentDeclaration<WrSelect<any, any>, "wr-select", never, {
1202
1253
  "placeholder": {
1203
1254
  "alias": "placeholder";
1204
1255
  "required": false;
@@ -1224,6 +1275,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
1224
1275
  "required": false;
1225
1276
  "isSignal": true;
1226
1277
  };
1278
+ "block": {
1279
+ "alias": "block";
1280
+ "required": false;
1281
+ "isSignal": true;
1282
+ };
1227
1283
  "rounded": {
1228
1284
  "alias": "rounded";
1229
1285
  "required": false;
@@ -1259,6 +1315,11 @@ export declare class WrSelect<T = unknown> implements FormValueControl<T | reado
1259
1315
  "required": false;
1260
1316
  "isSignal": true;
1261
1317
  };
1318
+ "valueWith": {
1319
+ "alias": "valueWith";
1320
+ "required": false;
1321
+ "isSignal": true;
1322
+ };
1262
1323
  "loader": {
1263
1324
  "alias": "loader";
1264
1325
  "required": false;
@@ -1457,7 +1518,9 @@ export declare class WrOption {
1457
1518
  * instantiate every row's avatar the moment the page renders. An option with
1458
1519
  * no parent select has no panel to wait for.
1459
1520
  */
1460
- 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>;
1461
1524
  /** The wrapper the leading visual renders into — skipped when reading the text. */
1462
1525
  private readonly leadingSlot;
1463
1526
  /**
@@ -1612,7 +1675,7 @@ export declare class WrOptionGroup {
1612
1675
  * <wr-select mode="multi" placeholder="Assignees" [(value)]="assignees">
1613
1676
  * @for (p of people; track p.id) {
1614
1677
  * <wr-option [value]="p.id">
1615
- * <ng-template wrOptionLeading let-placement="placement">
1678
+ * <ng-template wrOptionLeading let-placement="placement" let-item="item">
1616
1679
  * <wr-avatar shape="circle" [size]="placement === 'chip' ? 16 : 24" [url]="p.photo">{{ p.initials }}</wr-avatar>
1617
1680
  * </ng-template>
1618
1681
  * {{ p.name }}
@@ -1621,8 +1684,8 @@ export declare class WrOptionGroup {
1621
1684
  * </wr-select>
1622
1685
  * ```
1623
1686
  */
1624
- export declare class WrOptionLeading<T = WrSafeAny> {
1625
- readonly template: TemplateRef<WrOptionLeadingContext<T>>;
1687
+ export declare class WrOptionLeading<T = WrSafeAny, I = WrSafeAny> {
1688
+ readonly template: TemplateRef<WrOptionLeadingContext<T, I>>;
1626
1689
  /**
1627
1690
  * Types the template's `let-` variables under `strictTemplates`. Without it
1628
1691
  * `let-placement` is `any`, and indexing a `Record<WrOptionLeadingPlacement, …>`
@@ -1644,9 +1707,9 @@ export declare class WrOptionLeading<T = WrSafeAny> {
1644
1707
  * variable is in scope. This library's own docs page carries three helpers
1645
1708
  * typed `(id: unknown)` to get around it, with nothing saying why.
1646
1709
  */
1647
- static ngTemplateContextGuard<T>(_dir: WrOptionLeading<T>, _ctx: unknown): _ctx is WrOptionLeadingContext<T>;
1648
- static ɵfac: i0.ɵɵFactoryDeclaration<WrOptionLeading<any>, never>;
1649
- 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>;
1650
1713
  }
1651
1714
  /**
1652
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 };
@@ -44,6 +44,10 @@ interface WrSortableListContext {
44
44
  indexOf(item: {
45
45
  readonly host: ElementRef<HTMLElement>;
46
46
  }): number;
47
+ /** Same as `indexOf`, cached per `items` array and row count; reads `items`. */
48
+ positionOf(item: {
49
+ readonly host: ElementRef<HTMLElement>;
50
+ }): number;
47
51
  /** Key handling for a row — pick up, move, drop, cancel. */
48
52
  onRowKeydown(event: KeyboardEvent, index: number): void;
49
53
  /** A held row losing focus ends the gesture as a drop. */
@@ -211,6 +215,8 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
211
215
  * the DOM, so `indexOf` cannot find it and the stale entry is swept then.
212
216
  */
213
217
  private readonly rows;
218
+ /** Row positions for one `items` array and row count, so a change sorts once however many rows ask. */
219
+ private positions;
214
220
  /** Index of the row the keyboard is holding, or `null` when nothing is held. */
215
221
  readonly grabbedIndex: WritableSignal<number | null>;
216
222
  /** Live-region text. Written by the keyboard path only. */
@@ -262,6 +268,14 @@ export declare class WrSortableList<T = unknown> implements WrSortableListContex
262
268
  indexOf(item: {
263
269
  readonly host: ElementRef<HTMLElement>;
264
270
  }): number;
271
+ /**
272
+ * @internal The same answer as `indexOf`, served from a map that is rebuilt
273
+ * only when `items` or the number of rows changes. Reads `items`, so a
274
+ * `computed` that calls it follows every reorder.
275
+ */
276
+ positionOf(item: {
277
+ readonly host: ElementRef<HTMLElement>;
278
+ }): number;
265
279
  /**
266
280
  * Drops rows whose element has left the document and puts the rest into
267
281
  * document order.
@@ -399,13 +413,12 @@ export declare class WrSortableItem {
399
413
  * Position among the list's rows, which IS the index into `items()`: the
400
414
  * consumer's own loop renders them in that order.
401
415
  *
402
- * `indexOf` resolves by DOCUMENT ORDER over a plain array and touches no
403
- * signal, so the `computed` needs a producer that changes whenever a position
404
- * can. That producer is the `items` ARRAY, not its length: a reorder keeps the
405
- * count, so a length-keyed index stayed on the slot the row had left, the
406
- * highlight stayed behind with it, and a second pick-up of the same row moved
407
- * its old neighbour instead. Host bindings run after the consumer's `@for`
408
- * has moved the nodes, so the recomputation reads the new order.
416
+ * `positionOf` resolves by DOCUMENT ORDER and is keyed on the `items` ARRAY,
417
+ * not its length: a reorder keeps the count, so a length-keyed index stayed
418
+ * on the slot the row had left, the highlight stayed behind with it, and a
419
+ * second pick-up of the same row moved its old neighbour instead. Host
420
+ * bindings run after the consumer's `@for` has moved the nodes, so the
421
+ * recomputation reads the new order.
409
422
  */
410
423
  protected readonly index: import("@angular/core").Signal<number>;
411
424
  protected readonly grabbed: import("@angular/core").Signal<boolean>;
@@ -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.