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
@@ -25,7 +25,7 @@ var WrSelectLoadError = class WrSelectLoadError {
25
25
  }
26
26
  static ɵfac = i0.ɵɵngDeclareFactory({
27
27
  minVersion: "12.0.0",
28
- version: "22.2.6",
28
+ version: "22.3.0",
29
29
  ngImport: i0,
30
30
  type: WrSelectLoadError,
31
31
  deps: [],
@@ -33,7 +33,7 @@ var WrSelectLoadError = class WrSelectLoadError {
33
33
  });
34
34
  static ɵdir = i0.ɵɵngDeclareDirective({
35
35
  minVersion: "14.0.0",
36
- version: "22.2.6",
36
+ version: "22.3.0",
37
37
  type: WrSelectLoadError,
38
38
  isStandalone: true,
39
39
  selector: "ng-template[wrSelectLoadError]",
@@ -42,7 +42,7 @@ var WrSelectLoadError = class WrSelectLoadError {
42
42
  };
43
43
  i0.ɵɵngDeclareClassMetadata({
44
44
  minVersion: "12.0.0",
45
- version: "22.2.6",
45
+ version: "22.3.0",
46
46
  ngImport: i0,
47
47
  type: WrSelectLoadError,
48
48
  decorators: [{
@@ -63,7 +63,7 @@ var WrOptionLeading = class WrOptionLeading {
63
63
  }
64
64
  static ɵfac = i0.ɵɵngDeclareFactory({
65
65
  minVersion: "12.0.0",
66
- version: "22.2.6",
66
+ version: "22.3.0",
67
67
  ngImport: i0,
68
68
  type: WrOptionLeading,
69
69
  deps: [],
@@ -71,7 +71,7 @@ var WrOptionLeading = class WrOptionLeading {
71
71
  });
72
72
  static ɵdir = i0.ɵɵngDeclareDirective({
73
73
  minVersion: "14.0.0",
74
- version: "22.2.6",
74
+ version: "22.3.0",
75
75
  type: WrOptionLeading,
76
76
  isStandalone: true,
77
77
  selector: "ng-template[wrOptionLeading]",
@@ -80,7 +80,7 @@ var WrOptionLeading = class WrOptionLeading {
80
80
  };
81
81
  i0.ɵɵngDeclareClassMetadata({
82
82
  minVersion: "12.0.0",
83
- version: "22.2.6",
83
+ version: "22.3.0",
84
84
  ngImport: i0,
85
85
  type: WrOptionLeading,
86
86
  decorators: [{
@@ -120,6 +120,7 @@ var WrOption = class WrOption {
120
120
  if (this.parent && !this.parent.panelOpen()) return null;
121
121
  return this.leading();
122
122
  }, ...ngDevMode ? [{ debugName: "rowLeading" }] : /* istanbul ignore next */ []);
123
+ rowItem = computed(() => this.parent ? this.parent.itemFor(this.value()) : this.value(), ...ngDevMode ? [{ debugName: "rowItem" }] : /* istanbul ignore next */ []);
123
124
  leadingSlot = viewChild("leadingSlot", ...ngDevMode ? [{ debugName: "leadingSlot" }] : /* istanbul ignore next */ []);
124
125
  labelText = signal("", ...ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []);
125
126
  resolvedLabel = computed(() => {
@@ -192,7 +193,7 @@ var WrOption = class WrOption {
192
193
  }
193
194
  static ɵfac = i0.ɵɵngDeclareFactory({
194
195
  minVersion: "12.0.0",
195
- version: "22.2.6",
196
+ version: "22.3.0",
196
197
  ngImport: i0,
197
198
  type: WrOption,
198
199
  deps: [],
@@ -200,7 +201,7 @@ var WrOption = class WrOption {
200
201
  });
201
202
  static ɵcmp = i0.ɵɵngDeclareComponent({
202
203
  minVersion: "17.0.0",
203
- version: "22.2.6",
204
+ version: "22.3.0",
204
205
  type: WrOption,
205
206
  isStandalone: true,
206
207
  selector: "wr-option",
@@ -253,7 +254,7 @@ var WrOption = class WrOption {
253
254
  isSignal: true
254
255
  }],
255
256
  ngImport: i0,
256
- template: "<!-- The leading visual is a sibling of the projected text, never a wrapper\n around it: `.wr-option` is a flex row, and wrapping the content would fold\n a consumer's own icon and label into one flex item. `aria-hidden` keeps it\n out of the option's accessible name; `syncLabel` skips it by reference. -->\n@if (rowLeading(); as leading) {\n <span #leadingSlot class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'option' }\"\n />\n </span>\n}\n<ng-content />\n",
257
+ template: "<!-- The leading visual is a sibling of the projected text, never a wrapper\n around it: `.wr-option` is a flex row, and wrapping the content would fold\n a consumer's own icon and label into one flex item. `aria-hidden` keeps it\n out of the option's accessible name; `syncLabel` skips it by reference. -->\n@if (rowLeading(); as leading) {\n <span #leadingSlot class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: rowItem(), placement: 'option' }\"\n />\n </span>\n}\n<ng-content />\n",
257
258
  dependencies: [{
258
259
  kind: "directive",
259
260
  type: NgTemplateOutlet,
@@ -269,7 +270,7 @@ var WrOption = class WrOption {
269
270
  };
270
271
  i0.ɵɵngDeclareClassMetadata({
271
272
  minVersion: "12.0.0",
272
- version: "22.2.6",
273
+ version: "22.3.0",
273
274
  ngImport: i0,
274
275
  type: WrOption,
275
276
  decorators: [{
@@ -287,7 +288,7 @@ i0.ɵɵngDeclareClassMetadata({
287
288
  "[attr.aria-disabled]": "unavailable() ? true : null",
288
289
  "(click)": "onClick()"
289
290
  },
290
- template: "<!-- The leading visual is a sibling of the projected text, never a wrapper\n around it: `.wr-option` is a flex row, and wrapping the content would fold\n a consumer's own icon and label into one flex item. `aria-hidden` keeps it\n out of the option's accessible name; `syncLabel` skips it by reference. -->\n@if (rowLeading(); as leading) {\n <span #leadingSlot class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'option' }\"\n />\n </span>\n}\n<ng-content />\n"
291
+ template: "<!-- The leading visual is a sibling of the projected text, never a wrapper\n around it: `.wr-option` is a flex row, and wrapping the content would fold\n a consumer's own icon and label into one flex item. `aria-hidden` keeps it\n out of the option's accessible name; `syncLabel` skips it by reference. -->\n@if (rowLeading(); as leading) {\n <span #leadingSlot class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: rowItem(), placement: 'option' }\"\n />\n </span>\n}\n<ng-content />\n"
291
292
  }]
292
293
  }],
293
294
  ctorParameters: () => [],
@@ -576,6 +577,7 @@ var WrSelect = class WrSelect {
576
577
  const arr = this.asArray(this.value());
577
578
  if (this.isTag()) return arr.map((v) => ({
578
579
  value: v,
580
+ item: v,
579
581
  label: String(v),
580
582
  leading: null
581
583
  }));
@@ -585,6 +587,7 @@ var WrSelect = class WrSelect {
585
587
  const found = byValue.get(v);
586
588
  return {
587
589
  value: v,
590
+ item: this.itemFor(v),
588
591
  label: found?.label() ?? (items ? this.itemLabel(items, v) : this.displayWith()(v)),
589
592
  leading: found?.leading ? found.leading() : this.optionLeading()
590
593
  };
@@ -626,6 +629,12 @@ var WrSelect = class WrSelect {
626
629
  const valueWith = this.valueWith();
627
630
  return valueWith ? valueWith(item) : item;
628
631
  }
632
+ itemFor(value) {
633
+ const byValue = this.itemsByValue();
634
+ if (byValue.has(value)) return byValue.get(value);
635
+ const selected = this.selectedItems();
636
+ return selected.has(value) ? selected.get(value) : value;
637
+ }
629
638
  itemsByValue = computed(() => {
630
639
  const byValue = /* @__PURE__ */ new Map();
631
640
  for (const item of this.dynamicOptions()) {
@@ -1506,7 +1515,7 @@ var WrSelect = class WrSelect {
1506
1515
  }
1507
1516
  static ɵfac = i0.ɵɵngDeclareFactory({
1508
1517
  minVersion: "12.0.0",
1509
- version: "22.2.6",
1518
+ version: "22.3.0",
1510
1519
  ngImport: i0,
1511
1520
  type: WrSelect,
1512
1521
  deps: [],
@@ -1514,7 +1523,7 @@ var WrSelect = class WrSelect {
1514
1523
  });
1515
1524
  static ɵcmp = i0.ɵɵngDeclareComponent({
1516
1525
  minVersion: "17.0.0",
1517
- version: "22.2.6",
1526
+ version: "22.3.0",
1518
1527
  type: WrSelect,
1519
1528
  isStandalone: true,
1520
1529
  selector: "wr-select",
@@ -1875,7 +1884,7 @@ var WrSelect = class WrSelect {
1875
1884
  }
1876
1885
  ],
1877
1886
  ngImport: i0,
1878
- template: "@if (isSearchTrigger()) {\n <!-- Search mode (or a searchable single): a real text input drives a filtered\n overlay panel. The wrapper isn't itself focusable — the input is the\n tabstop. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div class=\"wr-select__trigger wr-select__trigger--search\" (click)=\"focusSearchInput()\">\n <!-- The selected option's leading visual, before the field — the same class\n and the same `placement: 'value'` the button trigger uses, because it is\n the same surface and a consumer who styled one should not have to learn\n a second name. `searchLeading()` draws it only while the field is\n showing the VALUE, so it never stands in front of a query or a bare\n placeholder, and it sits OUTSIDE the input for the obvious reason: an\n `<input>` holds a string. `aria-hidden` keeps it out of the combobox's\n name, which is `resolvedAriaLabel()`, and out of its value, which is the\n input's own text. -->\n @if (searchLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'value' }\"\n />\n </span>\n }\n <!-- `id` / `aria-describedby` / `aria-invalid` come from a surrounding\n `<wr-form-field>` and are null without one — see `controlId` in the\n component. They go on the tab stop, the only labelable element here.\n `aria-label` is the trigger's name and belongs on the same element for\n the same reason: this input carries `role=\"combobox\"`, and the four\n other trigger shapes all bind `resolvedAriaLabel()`. Without it a\n search select with no placeholder rendered a combobox with no name at\n all — the one shape where the documented `ariaLabel` input reached\n nothing. -->\n <!-- `aria-autocomplete` is static, and `list` rather than `both`: the panel\n is the only place a suggestion appears, nothing is written back into\n the field for the user. It describes a permanent CAPABILITY, which is\n why it does not track `isOpen()` — the same reasoning `wr-mention`\n records at its own host binding. -->\n <input\n #searchInput\n type=\"text\"\n role=\"combobox\"\n class=\"wr-select__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n [readonly]=\"isReadonly()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [value]=\"searchDisplay()\"\n (input)=\"onSearchInput($event)\"\n (focus)=\"onSearchFocus()\"\n (keydown)=\"onSearchKey($event)\"\n (blur)=\"onSearchBlur()\"\n />\n <!-- Pointer-only, and the `keydown.enter` / `keydown.space` pair this used to\n carry was dead code rather than the keyboard path it looked like: the ×\n is `tabindex=\"-1\"` with no roving owner, so no key event ever originates\n here to bubble into a handler. It stays unfocusable because the same\n span sits inside the BUTTON trigger further down, where a focusable\n child is `nested-interactive` — the defect the window taskbar's close\n button already taught this repo. The keyboard reaches the function\n instead: Backspace on the empty field, which `onSearchKey` routes to\n `clearAll` for a single and to the last chip for a multi. -->\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n </div>\n} @else if (isTag() || hasChipSearch()) {\n <!-- Chip trigger — tag mode, or a searchable multi. A focusable input lives\n inside, so the wrapper itself only exists to host chips and forward\n whitespace clicks to the input. Tag mode needs no role (users tab\n straight into the input); the searchable multi is a real combobox, so it\n carries the listbox wiring. The click handler is a mouse-only\n convenience. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select__trigger wr-select__trigger--tag\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n (click)=\"focusTagInput()\"\n >\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n <!-- At `maxItems` this input goes READONLY, never disabled: it is the only\n tab stop in the whole control (the chip × and the clear button are\n `tabindex=\"-1\"` spans), so disabling it left a full tag select with\n nothing focusable at all — and Backspace on an empty draft, the one\n keyboard way back UNDER the cap, is bound to this very element. It was\n never needed as enforcement either: `tryAddTag` already refuses past\n capacity. -->\n <!-- `aria-autocomplete` is conditional here, unlike the search input's:\n this field is only a combobox when a panel backs it. In plain tag\n mode there is no popup to suggest from, and claiming otherwise\n describes a control that does not exist. -->\n <input\n #tagInput\n type=\"text\"\n class=\"wr-select__tag-input\"\n autocomplete=\"off\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n spellcheck=\"false\"\n [value]=\"hasChipSearch() ? searchQuery() : draft()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"isReadonly() || (isTag() && atCapacity())\"\n [attr.aria-readonly]=\"hasChipSearch() && isReadonly() ? true : null\"\n [placeholder]=\"hasSelection() ? '' : resolvedPlaceholder()\"\n [attr.role]=\"hasChipSearch() ? 'combobox' : null\"\n [attr.aria-haspopup]=\"hasChipSearch() ? 'listbox' : null\"\n [attr.aria-autocomplete]=\"hasChipSearch() ? 'list' : null\"\n [attr.aria-expanded]=\"hasChipSearch() ? isOpen() : null\"\n [attr.aria-controls]=\"hasChipSearch() ? listboxId : null\"\n [attr.aria-activedescendant]=\"hasChipSearch() && isOpen() ? activeOptionId() || null : null\"\n (input)=\"onChipsInput($event)\"\n (keydown)=\"onChipsKeydown($event)\"\n (paste)=\"onChipsPaste($event)\"\n (focus)=\"onChipsFocus()\"\n (blur)=\"onChipsBlur()\"\n />\n </span>\n\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <!-- Only for the searchable MULTI, never for tag mode. The two share this\n trigger and differ in the one thing a chevron stands for: the searchable\n multi's input is a `role=\"combobox\"` with `aria-haspopup=\"listbox\"` and\n a panel of options behind it, while tag mode takes free text and has no\n popup at all. Folding the second into this branch left it as the only\n combobox shape in the component with no affordance saying it opens —\n `mode=\"search\"` has one, a searchable single has one, the button trigger\n has one, and this one rendered a bare field. -->\n @if (hasChipSearch()) {\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n }\n </div>\n} @else {\n <button\n #trigger\n type=\"button\"\n class=\"wr-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKey($event)\"\n (blur)=\"touch.emit()\"\n >\n @if (isMulti()) {\n @if (hasSelection()) {\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n <!-- A selected chip draws its option's leading visual — one copy per\n VISIBLE chip, so `maxTagCount` caps these too. -->\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n </span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n } @else {\n @if (selectedLabel(); as label) {\n <!-- Beside the label, not inside it: the harness and the accessible name\n both read `.wr-select__value`, and the visual says nothing either should. -->\n @if (selectedLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'value' }\"\n />\n </span>\n }\n <span class=\"wr-select__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n }\n\n @if (isMulti() && clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n}\n\n<!-- The one live region for the search status, drawn by whichever of the two\n search triggers is up, in the DOM before its text changes. Not in the panel,\n since the listbox may own only options, and inside the trigger, which stays\n the host's only element. -->\n<ng-template #statusTpl>\n <span class=\"wr-select__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n</ng-template>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-select-panel\"\n (pointerdown)=\"onPanelPointerDown($event)\"\n [class.wr-select-panel--sm]=\"size() === 'sm'\"\n [class.wr-select-panel--lg]=\"size() === 'lg'\"\n [class.wr-select-panel--virtual]=\"virtualActive()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-multiselectable]=\"isMulti() ? 'true' : null\"\n [attr.aria-busy]=\"isLoading() ? 'true' : null\"\n >\n <!-- `aria-busy` belongs on the listbox, not on this row: it is the container\n whose required `option` children are temporarily missing, and a global\n ARIA attribute on a role-less child makes that child an owned element the\n listbox may not own (axe `aria-required-children`, critical). Plain text\n inside the listbox is fine — only ELEMENTS are checked. -->\n <!-- While the error row is up, through a retry, it carries the loader. -->\n @if (isLoading() && !showLoadError()) {\n <div class=\"wr-select-panel__loading\">{{ resolvedLoading() }}</div>\n }\n\n <!-- Multi mode under `selectAll`. An option, since a listbox owns only options\n and groups, and deliberately NOT a `.wr-option`: it carries no value, so a\n query for the options must not count it. Its state is `aria-checked`,\n which has the `mixed` that `aria-selected` lacks. Reached through the\n trigger's aria-activedescendant like every row, so it is a pointer\n target only. First in the panel and pinned there; the virtual list\n scrolls in its own box below it. No `aria-selected`, which the lint\n rule below asks of every option: ARIA 1.2 no longer requires it, and it\n asks authors not to put it beside `aria-checked` on one option. -->\n @if (showSelectAll()) {\n <!-- eslint-disable @angular-eslint/template/role-has-required-aria -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select-panel__select-all\"\n role=\"option\"\n [id]=\"selectAllId\"\n [class.wr-select-panel__select-all--active]=\"selectAllActive()\"\n [class.wr-select-panel__select-all--checked]=\"selectAllState() === 'all'\"\n [class.wr-select-panel__select-all--mixed]=\"selectAllState() === 'some'\"\n [class.wr-select-panel__select-all--disabled]=\"selectAllUnavailable()\"\n [attr.aria-checked]=\"selectAllChecked()\"\n [attr.aria-disabled]=\"selectAllUnavailable() ? true : null\"\n (click)=\"toggleSelectAll()\"\n >\n <span class=\"wr-select-panel__select-all-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\">\n @switch (selectAllState()) {\n @case ('all') {\n <path d=\"m4 8.5 3 3 5-6\" stroke-linejoin=\"round\" />\n }\n @case ('some') {\n <path d=\"M4 8h8\" />\n }\n }\n </svg>\n </span>\n {{ resolvedSelectAll() }}\n </div>\n <!-- eslint-enable @angular-eslint/template/role-has-required-aria -->\n }\n\n @if (virtualActive()) {\n <!-- Windowed data-array rows: plain role=\"option\" elements (not <wr-option>),\n navigated via the trigger's aria-activedescendant, selected by value. -->\n <div class=\"wr-select-panel__vlist\" [style.max-height]=\"resolvedViewportHeight()\">\n @if (virtualWindow().padTop > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padTop\"></div>\n }\n @for (entry of windowOptions(); track entry.index) {\n <!-- Keyboard handled by the trigger via aria-activedescendant; the\n row is a pointer target only. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n role=\"option\"\n class=\"wr-option\"\n [id]=\"virtualRowId(entry.index)\"\n [class.wr-option--active]=\"entry.index === activeIndex()\"\n [class.wr-option--selected]=\"isSelected(entry.value)\"\n [class.wr-option--disabled]=\"atMaxItems() && !isSelected(entry.value)\"\n [attr.aria-selected]=\"isSelected(entry.value)\"\n [attr.aria-disabled]=\"atMaxItems() && !isSelected(entry.value) ? true : null\"\n [attr.aria-setsize]=\"filteredDynamicOptions().length\"\n [attr.aria-posinset]=\"entry.index + 1\"\n (click)=\"selectOption(entry.value)\"\n >\n <!-- Only the select-wide template reaches a virtual row — there is no\n `<wr-option>` here to declare one — and only rows inside the\n rendered window instantiate it. -->\n @if (optionLeading(); as leading) {\n <span class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.value, placement: 'option' }\"\n />\n </span>\n }\n {{ displayWith()(entry.item) }}\n </div>\n }\n @if (virtualWindow().padBottom > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padBottom\"></div>\n }\n </div>\n } @else {\n <!-- Dynamic options from [options], or from the async [loader] in search\n mode. Rendered as wr-option so the standard registration / filter\n pipeline applies uniformly. -->\n @for (item of dynamicOptions(); track $index) {\n <wr-option [value]=\"valueOf(item)\">{{ displayWith()(item) }}</wr-option>\n }\n }\n\n <!-- Projected static options — always present (a conditional `<ng-content>`\n would drop projected content). Empty whenever `virtualActive`. -->\n <ng-content />\n\n <!-- A listbox may only own `option` and `group` children, and as a bare `<div>`\n this row was the only thing in the tree when it showed — an\n `aria-required-children` critical. It cannot move out of the listbox the\n way the command palette's does: this element IS the listbox, and the id\n the trigger's `aria-controls` names is what gives it its accessible name.\n So it announces as a disabled option instead. Keyboard navigation skips\n it for free — arrow keys walk the registered `wr-option`s, and nothing\n registers this row. -->\n @if (hasNoResults()) {\n <div class=\"wr-select-panel__empty\" role=\"option\" aria-selected=\"false\" aria-disabled=\"true\">\n {{ resolvedNoResults() }}\n </div>\n }\n\n <!-- A failed load, in place of \"no results\". An option for the same reason as\n that row. While it offers a retry it is the option that runs the loader\n again: the field's aria-activedescendant names it, Enter there reaches it,\n and mousedown keeps focus in the field. The retry is DRAWN as a button but\n cannot be one, since a button inside an option is nested interactive\n content; it wears `.wr-btn` and takes the click. -->\n @if (showLoadError()) {\n <div\n class=\"wr-select-panel__error\"\n [class.wr-select-panel__error--retryable]=\"retryOffered()\"\n [class.wr-select-panel__error--active]=\"retryOffered() && !freeText()\"\n role=\"option\"\n aria-selected=\"false\"\n [attr.id]=\"retryOffered() ? retryRowId : null\"\n [attr.aria-disabled]=\"retryOffered() ? null : true\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @if (loadErrorTpl(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" [ngTemplateOutletContext]=\"loadErrorContext()\" />\n } @else {\n {{ resolvedLoadError() }}\n @if (retryOffered()) {\n <!-- The spinner as `wr-btn` draws it while loading: hidden from the\n accessibility tree, since the row already reads the retry label. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <span\n class=\"wr-btn wr-btn--sm wr-select-panel__retry\"\n [class.wr-btn--loading]=\"retrying()\"\n (click)=\"onLoadErrorClick()\"\n >\n @if (retrying()) {\n <wr-spinner class=\"wr-btn__spin\" size=\"sm\" aria-hidden=\"true\" />\n }\n <span class=\"wr-btn__label\">{{ resolvedRetry() }}</span>\n </span>\n }\n }\n </div>\n }\n </div>\n</ng-template>\n",
1887
+ template: "@if (isSearchTrigger()) {\n <!-- Search mode (or a searchable single): a real text input drives a filtered\n overlay panel. The wrapper isn't itself focusable — the input is the\n tabstop. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div class=\"wr-select__trigger wr-select__trigger--search\" (click)=\"focusSearchInput()\">\n <!-- The selected option's leading visual, before the field — the same class\n and the same `placement: 'value'` the button trigger uses, because it is\n the same surface and a consumer who styled one should not have to learn\n a second name. `searchLeading()` draws it only while the field is\n showing the VALUE, so it never stands in front of a query or a bare\n placeholder, and it sits OUTSIDE the input for the obvious reason: an\n `<input>` holds a string. `aria-hidden` keeps it out of the combobox's\n name, which is `resolvedAriaLabel()`, and out of its value, which is the\n input's own text. -->\n @if (searchLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: itemFor(value()), placement: 'value' }\"\n />\n </span>\n }\n <!-- `id` / `aria-describedby` / `aria-invalid` come from a surrounding\n `<wr-form-field>` and are null without one — see `controlId` in the\n component. They go on the tab stop, the only labelable element here.\n `aria-label` is the trigger's name and belongs on the same element for\n the same reason: this input carries `role=\"combobox\"`, and the four\n other trigger shapes all bind `resolvedAriaLabel()`. Without it a\n search select with no placeholder rendered a combobox with no name at\n all — the one shape where the documented `ariaLabel` input reached\n nothing. -->\n <!-- `aria-autocomplete` is static, and `list` rather than `both`: the panel\n is the only place a suggestion appears, nothing is written back into\n the field for the user. It describes a permanent CAPABILITY, which is\n why it does not track `isOpen()` — the same reasoning `wr-mention`\n records at its own host binding. -->\n <input\n #searchInput\n type=\"text\"\n role=\"combobox\"\n class=\"wr-select__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n [readonly]=\"isReadonly()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [value]=\"searchDisplay()\"\n (input)=\"onSearchInput($event)\"\n (focus)=\"onSearchFocus()\"\n (keydown)=\"onSearchKey($event)\"\n (blur)=\"onSearchBlur()\"\n />\n <!-- Pointer-only, and the `keydown.enter` / `keydown.space` pair this used to\n carry was dead code rather than the keyboard path it looked like: the ×\n is `tabindex=\"-1\"` with no roving owner, so no key event ever originates\n here to bubble into a handler. It stays unfocusable because the same\n span sits inside the BUTTON trigger further down, where a focusable\n child is `nested-interactive` — the defect the window taskbar's close\n button already taught this repo. The keyboard reaches the function\n instead: Backspace on the empty field, which `onSearchKey` routes to\n `clearAll` for a single and to the last chip for a multi. -->\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n </div>\n} @else if (isTag() || hasChipSearch()) {\n <!-- Chip trigger — tag mode, or a searchable multi. A focusable input lives\n inside, so the wrapper itself only exists to host chips and forward\n whitespace clicks to the input. Tag mode needs no role (users tab\n straight into the input); the searchable multi is a real combobox, so it\n carries the listbox wiring. The click handler is a mouse-only\n convenience. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select__trigger wr-select__trigger--tag\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n (click)=\"focusTagInput()\"\n >\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, item: chip.item, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n <!-- At `maxItems` this input goes READONLY, never disabled: it is the only\n tab stop in the whole control (the chip × and the clear button are\n `tabindex=\"-1\"` spans), so disabling it left a full tag select with\n nothing focusable at all — and Backspace on an empty draft, the one\n keyboard way back UNDER the cap, is bound to this very element. It was\n never needed as enforcement either: `tryAddTag` already refuses past\n capacity. -->\n <!-- `aria-autocomplete` is conditional here, unlike the search input's:\n this field is only a combobox when a panel backs it. In plain tag\n mode there is no popup to suggest from, and claiming otherwise\n describes a control that does not exist. -->\n <input\n #tagInput\n type=\"text\"\n class=\"wr-select__tag-input\"\n autocomplete=\"off\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n spellcheck=\"false\"\n [value]=\"hasChipSearch() ? searchQuery() : draft()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"isReadonly() || (isTag() && atCapacity())\"\n [attr.aria-readonly]=\"hasChipSearch() && isReadonly() ? true : null\"\n [placeholder]=\"hasSelection() ? '' : resolvedPlaceholder()\"\n [attr.role]=\"hasChipSearch() ? 'combobox' : null\"\n [attr.aria-haspopup]=\"hasChipSearch() ? 'listbox' : null\"\n [attr.aria-autocomplete]=\"hasChipSearch() ? 'list' : null\"\n [attr.aria-expanded]=\"hasChipSearch() ? isOpen() : null\"\n [attr.aria-controls]=\"hasChipSearch() ? listboxId : null\"\n [attr.aria-activedescendant]=\"hasChipSearch() && isOpen() ? activeOptionId() || null : null\"\n (input)=\"onChipsInput($event)\"\n (keydown)=\"onChipsKeydown($event)\"\n (paste)=\"onChipsPaste($event)\"\n (focus)=\"onChipsFocus()\"\n (blur)=\"onChipsBlur()\"\n />\n </span>\n\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <!-- Only for the searchable MULTI, never for tag mode. The two share this\n trigger and differ in the one thing a chevron stands for: the searchable\n multi's input is a `role=\"combobox\"` with `aria-haspopup=\"listbox\"` and\n a panel of options behind it, while tag mode takes free text and has no\n popup at all. Folding the second into this branch left it as the only\n combobox shape in the component with no affordance saying it opens —\n `mode=\"search\"` has one, a searchable single has one, the button trigger\n has one, and this one rendered a bare field. -->\n @if (hasChipSearch()) {\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n }\n </div>\n} @else {\n <button\n #trigger\n type=\"button\"\n class=\"wr-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKey($event)\"\n (blur)=\"touch.emit()\"\n >\n @if (isMulti()) {\n @if (hasSelection()) {\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n <!-- A selected chip draws its option's leading visual — one copy per\n VISIBLE chip, so `maxTagCount` caps these too. -->\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, item: chip.item, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n </span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n } @else {\n @if (selectedLabel(); as label) {\n <!-- Beside the label, not inside it: the harness and the accessible name\n both read `.wr-select__value`, and the visual says nothing either should. -->\n @if (selectedLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: itemFor(value()), placement: 'value' }\"\n />\n </span>\n }\n <span class=\"wr-select__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n }\n\n @if (isMulti() && clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n}\n\n<!-- The one live region for the search status, drawn by whichever of the two\n search triggers is up, in the DOM before its text changes. Not in the panel,\n since the listbox may own only options, and inside the trigger, which stays\n the host's only element. -->\n<ng-template #statusTpl>\n <span class=\"wr-select__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n</ng-template>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-select-panel\"\n (pointerdown)=\"onPanelPointerDown($event)\"\n [class.wr-select-panel--sm]=\"size() === 'sm'\"\n [class.wr-select-panel--lg]=\"size() === 'lg'\"\n [class.wr-select-panel--virtual]=\"virtualActive()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-multiselectable]=\"isMulti() ? 'true' : null\"\n [attr.aria-busy]=\"isLoading() ? 'true' : null\"\n >\n <!-- `aria-busy` belongs on the listbox, not on this row: it is the container\n whose required `option` children are temporarily missing, and a global\n ARIA attribute on a role-less child makes that child an owned element the\n listbox may not own (axe `aria-required-children`, critical). Plain text\n inside the listbox is fine — only ELEMENTS are checked. -->\n <!-- While the error row is up, through a retry, it carries the loader. -->\n @if (isLoading() && !showLoadError()) {\n <div class=\"wr-select-panel__loading\">{{ resolvedLoading() }}</div>\n }\n\n <!-- Multi mode under `selectAll`. An option, since a listbox owns only options\n and groups, and deliberately NOT a `.wr-option`: it carries no value, so a\n query for the options must not count it. Its state is `aria-checked`,\n which has the `mixed` that `aria-selected` lacks. Reached through the\n trigger's aria-activedescendant like every row, so it is a pointer\n target only. First in the panel and pinned there; the virtual list\n scrolls in its own box below it. No `aria-selected`, which the lint\n rule below asks of every option: ARIA 1.2 no longer requires it, and it\n asks authors not to put it beside `aria-checked` on one option. -->\n @if (showSelectAll()) {\n <!-- eslint-disable @angular-eslint/template/role-has-required-aria -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select-panel__select-all\"\n role=\"option\"\n [id]=\"selectAllId\"\n [class.wr-select-panel__select-all--active]=\"selectAllActive()\"\n [class.wr-select-panel__select-all--checked]=\"selectAllState() === 'all'\"\n [class.wr-select-panel__select-all--mixed]=\"selectAllState() === 'some'\"\n [class.wr-select-panel__select-all--disabled]=\"selectAllUnavailable()\"\n [attr.aria-checked]=\"selectAllChecked()\"\n [attr.aria-disabled]=\"selectAllUnavailable() ? true : null\"\n (click)=\"toggleSelectAll()\"\n >\n <span class=\"wr-select-panel__select-all-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\">\n @switch (selectAllState()) {\n @case ('all') {\n <path d=\"m4 8.5 3 3 5-6\" stroke-linejoin=\"round\" />\n }\n @case ('some') {\n <path d=\"M4 8h8\" />\n }\n }\n </svg>\n </span>\n {{ resolvedSelectAll() }}\n </div>\n <!-- eslint-enable @angular-eslint/template/role-has-required-aria -->\n }\n\n @if (virtualActive()) {\n <!-- Windowed data-array rows: plain role=\"option\" elements (not <wr-option>),\n navigated via the trigger's aria-activedescendant, selected by value. -->\n <div class=\"wr-select-panel__vlist\" [style.max-height]=\"resolvedViewportHeight()\">\n @if (virtualWindow().padTop > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padTop\"></div>\n }\n @for (entry of windowOptions(); track entry.index) {\n <!-- Keyboard handled by the trigger via aria-activedescendant; the\n row is a pointer target only. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n role=\"option\"\n class=\"wr-option\"\n [id]=\"virtualRowId(entry.index)\"\n [class.wr-option--active]=\"entry.index === activeIndex()\"\n [class.wr-option--selected]=\"isSelected(entry.value)\"\n [class.wr-option--disabled]=\"atMaxItems() && !isSelected(entry.value)\"\n [attr.aria-selected]=\"isSelected(entry.value)\"\n [attr.aria-disabled]=\"atMaxItems() && !isSelected(entry.value) ? true : null\"\n [attr.aria-setsize]=\"filteredDynamicOptions().length\"\n [attr.aria-posinset]=\"entry.index + 1\"\n (click)=\"selectOption(entry.value)\"\n >\n <!-- Only the select-wide template reaches a virtual row — there is no\n `<wr-option>` here to declare one — and only rows inside the\n rendered window instantiate it. -->\n @if (optionLeading(); as leading) {\n <span class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.value, item: entry.item, placement: 'option' }\"\n />\n </span>\n }\n {{ displayWith()(entry.item) }}\n </div>\n }\n @if (virtualWindow().padBottom > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padBottom\"></div>\n }\n </div>\n } @else {\n <!-- Dynamic options from [options], or from the async [loader] in search\n mode. Rendered as wr-option so the standard registration / filter\n pipeline applies uniformly. -->\n @for (item of dynamicOptions(); track $index) {\n <wr-option [value]=\"valueOf(item)\">{{ displayWith()(item) }}</wr-option>\n }\n }\n\n <!-- Projected static options — always present (a conditional `<ng-content>`\n would drop projected content). Empty whenever `virtualActive`. -->\n <ng-content />\n\n <!-- A listbox may only own `option` and `group` children, and as a bare `<div>`\n this row was the only thing in the tree when it showed — an\n `aria-required-children` critical. It cannot move out of the listbox the\n way the command palette's does: this element IS the listbox, and the id\n the trigger's `aria-controls` names is what gives it its accessible name.\n So it announces as a disabled option instead. Keyboard navigation skips\n it for free — arrow keys walk the registered `wr-option`s, and nothing\n registers this row. -->\n @if (hasNoResults()) {\n <div class=\"wr-select-panel__empty\" role=\"option\" aria-selected=\"false\" aria-disabled=\"true\">\n {{ resolvedNoResults() }}\n </div>\n }\n\n <!-- A failed load, in place of \"no results\". An option for the same reason as\n that row. While it offers a retry it is the option that runs the loader\n again: the field's aria-activedescendant names it, Enter there reaches it,\n and mousedown keeps focus in the field. The retry is DRAWN as a button but\n cannot be one, since a button inside an option is nested interactive\n content; it wears `.wr-btn` and takes the click. -->\n @if (showLoadError()) {\n <div\n class=\"wr-select-panel__error\"\n [class.wr-select-panel__error--retryable]=\"retryOffered()\"\n [class.wr-select-panel__error--active]=\"retryOffered() && !freeText()\"\n role=\"option\"\n aria-selected=\"false\"\n [attr.id]=\"retryOffered() ? retryRowId : null\"\n [attr.aria-disabled]=\"retryOffered() ? null : true\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @if (loadErrorTpl(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" [ngTemplateOutletContext]=\"loadErrorContext()\" />\n } @else {\n {{ resolvedLoadError() }}\n @if (retryOffered()) {\n <!-- The spinner as `wr-btn` draws it while loading: hidden from the\n accessibility tree, since the row already reads the retry label. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <span\n class=\"wr-btn wr-btn--sm wr-select-panel__retry\"\n [class.wr-btn--loading]=\"retrying()\"\n (click)=\"onLoadErrorClick()\"\n >\n @if (retrying()) {\n <wr-spinner class=\"wr-btn__spin\" size=\"sm\" aria-hidden=\"true\" />\n }\n <span class=\"wr-btn__label\">{{ resolvedRetry() }}</span>\n </span>\n }\n }\n </div>\n }\n </div>\n</ng-template>\n",
1879
1888
  dependencies: [
1880
1889
  {
1881
1890
  kind: "component",
@@ -1909,7 +1918,7 @@ var WrSelect = class WrSelect {
1909
1918
  };
1910
1919
  i0.ɵɵngDeclareClassMetadata({
1911
1920
  minVersion: "12.0.0",
1912
- version: "22.2.6",
1921
+ version: "22.3.0",
1913
1922
  ngImport: i0,
1914
1923
  type: WrSelect,
1915
1924
  decorators: [{
@@ -1930,7 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({
1930
1939
  provide: WR_SELECT,
1931
1940
  useExisting: forwardRef(() => WrSelect)
1932
1941
  }],
1933
- template: "@if (isSearchTrigger()) {\n <!-- Search mode (or a searchable single): a real text input drives a filtered\n overlay panel. The wrapper isn't itself focusable — the input is the\n tabstop. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div class=\"wr-select__trigger wr-select__trigger--search\" (click)=\"focusSearchInput()\">\n <!-- The selected option's leading visual, before the field — the same class\n and the same `placement: 'value'` the button trigger uses, because it is\n the same surface and a consumer who styled one should not have to learn\n a second name. `searchLeading()` draws it only while the field is\n showing the VALUE, so it never stands in front of a query or a bare\n placeholder, and it sits OUTSIDE the input for the obvious reason: an\n `<input>` holds a string. `aria-hidden` keeps it out of the combobox's\n name, which is `resolvedAriaLabel()`, and out of its value, which is the\n input's own text. -->\n @if (searchLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'value' }\"\n />\n </span>\n }\n <!-- `id` / `aria-describedby` / `aria-invalid` come from a surrounding\n `<wr-form-field>` and are null without one — see `controlId` in the\n component. They go on the tab stop, the only labelable element here.\n `aria-label` is the trigger's name and belongs on the same element for\n the same reason: this input carries `role=\"combobox\"`, and the four\n other trigger shapes all bind `resolvedAriaLabel()`. Without it a\n search select with no placeholder rendered a combobox with no name at\n all — the one shape where the documented `ariaLabel` input reached\n nothing. -->\n <!-- `aria-autocomplete` is static, and `list` rather than `both`: the panel\n is the only place a suggestion appears, nothing is written back into\n the field for the user. It describes a permanent CAPABILITY, which is\n why it does not track `isOpen()` — the same reasoning `wr-mention`\n records at its own host binding. -->\n <input\n #searchInput\n type=\"text\"\n role=\"combobox\"\n class=\"wr-select__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n [readonly]=\"isReadonly()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [value]=\"searchDisplay()\"\n (input)=\"onSearchInput($event)\"\n (focus)=\"onSearchFocus()\"\n (keydown)=\"onSearchKey($event)\"\n (blur)=\"onSearchBlur()\"\n />\n <!-- Pointer-only, and the `keydown.enter` / `keydown.space` pair this used to\n carry was dead code rather than the keyboard path it looked like: the ×\n is `tabindex=\"-1\"` with no roving owner, so no key event ever originates\n here to bubble into a handler. It stays unfocusable because the same\n span sits inside the BUTTON trigger further down, where a focusable\n child is `nested-interactive` — the defect the window taskbar's close\n button already taught this repo. The keyboard reaches the function\n instead: Backspace on the empty field, which `onSearchKey` routes to\n `clearAll` for a single and to the last chip for a multi. -->\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n </div>\n} @else if (isTag() || hasChipSearch()) {\n <!-- Chip trigger — tag mode, or a searchable multi. A focusable input lives\n inside, so the wrapper itself only exists to host chips and forward\n whitespace clicks to the input. Tag mode needs no role (users tab\n straight into the input); the searchable multi is a real combobox, so it\n carries the listbox wiring. The click handler is a mouse-only\n convenience. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select__trigger wr-select__trigger--tag\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n (click)=\"focusTagInput()\"\n >\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n <!-- At `maxItems` this input goes READONLY, never disabled: it is the only\n tab stop in the whole control (the chip × and the clear button are\n `tabindex=\"-1\"` spans), so disabling it left a full tag select with\n nothing focusable at all — and Backspace on an empty draft, the one\n keyboard way back UNDER the cap, is bound to this very element. It was\n never needed as enforcement either: `tryAddTag` already refuses past\n capacity. -->\n <!-- `aria-autocomplete` is conditional here, unlike the search input's:\n this field is only a combobox when a panel backs it. In plain tag\n mode there is no popup to suggest from, and claiming otherwise\n describes a control that does not exist. -->\n <input\n #tagInput\n type=\"text\"\n class=\"wr-select__tag-input\"\n autocomplete=\"off\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n spellcheck=\"false\"\n [value]=\"hasChipSearch() ? searchQuery() : draft()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"isReadonly() || (isTag() && atCapacity())\"\n [attr.aria-readonly]=\"hasChipSearch() && isReadonly() ? true : null\"\n [placeholder]=\"hasSelection() ? '' : resolvedPlaceholder()\"\n [attr.role]=\"hasChipSearch() ? 'combobox' : null\"\n [attr.aria-haspopup]=\"hasChipSearch() ? 'listbox' : null\"\n [attr.aria-autocomplete]=\"hasChipSearch() ? 'list' : null\"\n [attr.aria-expanded]=\"hasChipSearch() ? isOpen() : null\"\n [attr.aria-controls]=\"hasChipSearch() ? listboxId : null\"\n [attr.aria-activedescendant]=\"hasChipSearch() && isOpen() ? activeOptionId() || null : null\"\n (input)=\"onChipsInput($event)\"\n (keydown)=\"onChipsKeydown($event)\"\n (paste)=\"onChipsPaste($event)\"\n (focus)=\"onChipsFocus()\"\n (blur)=\"onChipsBlur()\"\n />\n </span>\n\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <!-- Only for the searchable MULTI, never for tag mode. The two share this\n trigger and differ in the one thing a chevron stands for: the searchable\n multi's input is a `role=\"combobox\"` with `aria-haspopup=\"listbox\"` and\n a panel of options behind it, while tag mode takes free text and has no\n popup at all. Folding the second into this branch left it as the only\n combobox shape in the component with no affordance saying it opens —\n `mode=\"search\"` has one, a searchable single has one, the button trigger\n has one, and this one rendered a bare field. -->\n @if (hasChipSearch()) {\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n }\n </div>\n} @else {\n <button\n #trigger\n type=\"button\"\n class=\"wr-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKey($event)\"\n (blur)=\"touch.emit()\"\n >\n @if (isMulti()) {\n @if (hasSelection()) {\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n <!-- A selected chip draws its option's leading visual — one copy per\n VISIBLE chip, so `maxTagCount` caps these too. -->\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n </span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n } @else {\n @if (selectedLabel(); as label) {\n <!-- Beside the label, not inside it: the harness and the accessible name\n both read `.wr-select__value`, and the visual says nothing either should. -->\n @if (selectedLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), placement: 'value' }\"\n />\n </span>\n }\n <span class=\"wr-select__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n }\n\n @if (isMulti() && clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n}\n\n<!-- The one live region for the search status, drawn by whichever of the two\n search triggers is up, in the DOM before its text changes. Not in the panel,\n since the listbox may own only options, and inside the trigger, which stays\n the host's only element. -->\n<ng-template #statusTpl>\n <span class=\"wr-select__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n</ng-template>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-select-panel\"\n (pointerdown)=\"onPanelPointerDown($event)\"\n [class.wr-select-panel--sm]=\"size() === 'sm'\"\n [class.wr-select-panel--lg]=\"size() === 'lg'\"\n [class.wr-select-panel--virtual]=\"virtualActive()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-multiselectable]=\"isMulti() ? 'true' : null\"\n [attr.aria-busy]=\"isLoading() ? 'true' : null\"\n >\n <!-- `aria-busy` belongs on the listbox, not on this row: it is the container\n whose required `option` children are temporarily missing, and a global\n ARIA attribute on a role-less child makes that child an owned element the\n listbox may not own (axe `aria-required-children`, critical). Plain text\n inside the listbox is fine — only ELEMENTS are checked. -->\n <!-- While the error row is up, through a retry, it carries the loader. -->\n @if (isLoading() && !showLoadError()) {\n <div class=\"wr-select-panel__loading\">{{ resolvedLoading() }}</div>\n }\n\n <!-- Multi mode under `selectAll`. An option, since a listbox owns only options\n and groups, and deliberately NOT a `.wr-option`: it carries no value, so a\n query for the options must not count it. Its state is `aria-checked`,\n which has the `mixed` that `aria-selected` lacks. Reached through the\n trigger's aria-activedescendant like every row, so it is a pointer\n target only. First in the panel and pinned there; the virtual list\n scrolls in its own box below it. No `aria-selected`, which the lint\n rule below asks of every option: ARIA 1.2 no longer requires it, and it\n asks authors not to put it beside `aria-checked` on one option. -->\n @if (showSelectAll()) {\n <!-- eslint-disable @angular-eslint/template/role-has-required-aria -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select-panel__select-all\"\n role=\"option\"\n [id]=\"selectAllId\"\n [class.wr-select-panel__select-all--active]=\"selectAllActive()\"\n [class.wr-select-panel__select-all--checked]=\"selectAllState() === 'all'\"\n [class.wr-select-panel__select-all--mixed]=\"selectAllState() === 'some'\"\n [class.wr-select-panel__select-all--disabled]=\"selectAllUnavailable()\"\n [attr.aria-checked]=\"selectAllChecked()\"\n [attr.aria-disabled]=\"selectAllUnavailable() ? true : null\"\n (click)=\"toggleSelectAll()\"\n >\n <span class=\"wr-select-panel__select-all-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\">\n @switch (selectAllState()) {\n @case ('all') {\n <path d=\"m4 8.5 3 3 5-6\" stroke-linejoin=\"round\" />\n }\n @case ('some') {\n <path d=\"M4 8h8\" />\n }\n }\n </svg>\n </span>\n {{ resolvedSelectAll() }}\n </div>\n <!-- eslint-enable @angular-eslint/template/role-has-required-aria -->\n }\n\n @if (virtualActive()) {\n <!-- Windowed data-array rows: plain role=\"option\" elements (not <wr-option>),\n navigated via the trigger's aria-activedescendant, selected by value. -->\n <div class=\"wr-select-panel__vlist\" [style.max-height]=\"resolvedViewportHeight()\">\n @if (virtualWindow().padTop > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padTop\"></div>\n }\n @for (entry of windowOptions(); track entry.index) {\n <!-- Keyboard handled by the trigger via aria-activedescendant; the\n row is a pointer target only. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n role=\"option\"\n class=\"wr-option\"\n [id]=\"virtualRowId(entry.index)\"\n [class.wr-option--active]=\"entry.index === activeIndex()\"\n [class.wr-option--selected]=\"isSelected(entry.value)\"\n [class.wr-option--disabled]=\"atMaxItems() && !isSelected(entry.value)\"\n [attr.aria-selected]=\"isSelected(entry.value)\"\n [attr.aria-disabled]=\"atMaxItems() && !isSelected(entry.value) ? true : null\"\n [attr.aria-setsize]=\"filteredDynamicOptions().length\"\n [attr.aria-posinset]=\"entry.index + 1\"\n (click)=\"selectOption(entry.value)\"\n >\n <!-- Only the select-wide template reaches a virtual row — there is no\n `<wr-option>` here to declare one — and only rows inside the\n rendered window instantiate it. -->\n @if (optionLeading(); as leading) {\n <span class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.value, placement: 'option' }\"\n />\n </span>\n }\n {{ displayWith()(entry.item) }}\n </div>\n }\n @if (virtualWindow().padBottom > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padBottom\"></div>\n }\n </div>\n } @else {\n <!-- Dynamic options from [options], or from the async [loader] in search\n mode. Rendered as wr-option so the standard registration / filter\n pipeline applies uniformly. -->\n @for (item of dynamicOptions(); track $index) {\n <wr-option [value]=\"valueOf(item)\">{{ displayWith()(item) }}</wr-option>\n }\n }\n\n <!-- Projected static options — always present (a conditional `<ng-content>`\n would drop projected content). Empty whenever `virtualActive`. -->\n <ng-content />\n\n <!-- A listbox may only own `option` and `group` children, and as a bare `<div>`\n this row was the only thing in the tree when it showed — an\n `aria-required-children` critical. It cannot move out of the listbox the\n way the command palette's does: this element IS the listbox, and the id\n the trigger's `aria-controls` names is what gives it its accessible name.\n So it announces as a disabled option instead. Keyboard navigation skips\n it for free — arrow keys walk the registered `wr-option`s, and nothing\n registers this row. -->\n @if (hasNoResults()) {\n <div class=\"wr-select-panel__empty\" role=\"option\" aria-selected=\"false\" aria-disabled=\"true\">\n {{ resolvedNoResults() }}\n </div>\n }\n\n <!-- A failed load, in place of \"no results\". An option for the same reason as\n that row. While it offers a retry it is the option that runs the loader\n again: the field's aria-activedescendant names it, Enter there reaches it,\n and mousedown keeps focus in the field. The retry is DRAWN as a button but\n cannot be one, since a button inside an option is nested interactive\n content; it wears `.wr-btn` and takes the click. -->\n @if (showLoadError()) {\n <div\n class=\"wr-select-panel__error\"\n [class.wr-select-panel__error--retryable]=\"retryOffered()\"\n [class.wr-select-panel__error--active]=\"retryOffered() && !freeText()\"\n role=\"option\"\n aria-selected=\"false\"\n [attr.id]=\"retryOffered() ? retryRowId : null\"\n [attr.aria-disabled]=\"retryOffered() ? null : true\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @if (loadErrorTpl(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" [ngTemplateOutletContext]=\"loadErrorContext()\" />\n } @else {\n {{ resolvedLoadError() }}\n @if (retryOffered()) {\n <!-- The spinner as `wr-btn` draws it while loading: hidden from the\n accessibility tree, since the row already reads the retry label. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <span\n class=\"wr-btn wr-btn--sm wr-select-panel__retry\"\n [class.wr-btn--loading]=\"retrying()\"\n (click)=\"onLoadErrorClick()\"\n >\n @if (retrying()) {\n <wr-spinner class=\"wr-btn__spin\" size=\"sm\" aria-hidden=\"true\" />\n }\n <span class=\"wr-btn__label\">{{ resolvedRetry() }}</span>\n </span>\n }\n }\n </div>\n }\n </div>\n</ng-template>\n"
1942
+ template: "@if (isSearchTrigger()) {\n <!-- Search mode (or a searchable single): a real text input drives a filtered\n overlay panel. The wrapper isn't itself focusable — the input is the\n tabstop. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div class=\"wr-select__trigger wr-select__trigger--search\" (click)=\"focusSearchInput()\">\n <!-- The selected option's leading visual, before the field — the same class\n and the same `placement: 'value'` the button trigger uses, because it is\n the same surface and a consumer who styled one should not have to learn\n a second name. `searchLeading()` draws it only while the field is\n showing the VALUE, so it never stands in front of a query or a bare\n placeholder, and it sits OUTSIDE the input for the obvious reason: an\n `<input>` holds a string. `aria-hidden` keeps it out of the combobox's\n name, which is `resolvedAriaLabel()`, and out of its value, which is the\n input's own text. -->\n @if (searchLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: itemFor(value()), placement: 'value' }\"\n />\n </span>\n }\n <!-- `id` / `aria-describedby` / `aria-invalid` come from a surrounding\n `<wr-form-field>` and are null without one — see `controlId` in the\n component. They go on the tab stop, the only labelable element here.\n `aria-label` is the trigger's name and belongs on the same element for\n the same reason: this input carries `role=\"combobox\"`, and the four\n other trigger shapes all bind `resolvedAriaLabel()`. Without it a\n search select with no placeholder rendered a combobox with no name at\n all — the one shape where the documented `ariaLabel` input reached\n nothing. -->\n <!-- `aria-autocomplete` is static, and `list` rather than `both`: the panel\n is the only place a suggestion appears, nothing is written back into\n the field for the user. It describes a permanent CAPABILITY, which is\n why it does not track `isOpen()` — the same reasoning `wr-mention`\n records at its own host binding. -->\n <input\n #searchInput\n type=\"text\"\n role=\"combobox\"\n class=\"wr-select__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n aria-autocomplete=\"list\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n [readonly]=\"isReadonly()\"\n [placeholder]=\"resolvedPlaceholder()\"\n [value]=\"searchDisplay()\"\n (input)=\"onSearchInput($event)\"\n (focus)=\"onSearchFocus()\"\n (keydown)=\"onSearchKey($event)\"\n (blur)=\"onSearchBlur()\"\n />\n <!-- Pointer-only, and the `keydown.enter` / `keydown.space` pair this used to\n carry was dead code rather than the keyboard path it looked like: the ×\n is `tabindex=\"-1\"` with no roving owner, so no key event ever originates\n here to bubble into a handler. It stays unfocusable because the same\n span sits inside the BUTTON trigger further down, where a focusable\n child is `nested-interactive` — the defect the window taskbar's close\n button already taught this repo. The keyboard reaches the function\n instead: Backspace on the empty field, which `onSearchKey` routes to\n `clearAll` for a single and to the last chip for a multi. -->\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n </div>\n} @else if (isTag() || hasChipSearch()) {\n <!-- Chip trigger — tag mode, or a searchable multi. A focusable input lives\n inside, so the wrapper itself only exists to host chips and forward\n whitespace clicks to the input. Tag mode needs no role (users tab\n straight into the input); the searchable multi is a real combobox, so it\n carries the listbox wiring. The click handler is a mouse-only\n convenience. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select__trigger wr-select__trigger--tag\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n (click)=\"focusTagInput()\"\n >\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, item: chip.item, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n <!-- At `maxItems` this input goes READONLY, never disabled: it is the only\n tab stop in the whole control (the chip × and the clear button are\n `tabindex=\"-1\"` spans), so disabling it left a full tag select with\n nothing focusable at all — and Backspace on an empty draft, the one\n keyboard way back UNDER the cap, is bound to this very element. It was\n never needed as enforcement either: `tryAddTag` already refuses past\n capacity. -->\n <!-- `aria-autocomplete` is conditional here, unlike the search input's:\n this field is only a combobox when a panel backs it. In plain tag\n mode there is no popup to suggest from, and claiming otherwise\n describes a control that does not exist. -->\n <input\n #tagInput\n type=\"text\"\n class=\"wr-select__tag-input\"\n autocomplete=\"off\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n spellcheck=\"false\"\n [value]=\"hasChipSearch() ? searchQuery() : draft()\"\n [disabled]=\"isDisabled()\"\n [readonly]=\"isReadonly() || (isTag() && atCapacity())\"\n [attr.aria-readonly]=\"hasChipSearch() && isReadonly() ? true : null\"\n [placeholder]=\"hasSelection() ? '' : resolvedPlaceholder()\"\n [attr.role]=\"hasChipSearch() ? 'combobox' : null\"\n [attr.aria-haspopup]=\"hasChipSearch() ? 'listbox' : null\"\n [attr.aria-autocomplete]=\"hasChipSearch() ? 'list' : null\"\n [attr.aria-expanded]=\"hasChipSearch() ? isOpen() : null\"\n [attr.aria-controls]=\"hasChipSearch() ? listboxId : null\"\n [attr.aria-activedescendant]=\"hasChipSearch() && isOpen() ? activeOptionId() || null : null\"\n (input)=\"onChipsInput($event)\"\n (keydown)=\"onChipsKeydown($event)\"\n (paste)=\"onChipsPaste($event)\"\n (focus)=\"onChipsFocus()\"\n (blur)=\"onChipsBlur()\"\n />\n </span>\n\n @if (clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <!-- Only for the searchable MULTI, never for tag mode. The two share this\n trigger and differ in the one thing a chevron stands for: the searchable\n multi's input is a `role=\"combobox\"` with `aria-haspopup=\"listbox\"` and\n a panel of options behind it, while tag mode takes free text and has no\n popup at all. Folding the second into this branch left it as the only\n combobox shape in the component with no affordance saying it opens —\n `mode=\"search\"` has one, a searchable single has one, the button trigger\n has one, and this one rendered a bare field. -->\n @if (hasChipSearch()) {\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n <ng-container [ngTemplateOutlet]=\"statusTpl\" />\n }\n </div>\n} @else {\n <button\n #trigger\n type=\"button\"\n class=\"wr-select__trigger\"\n role=\"combobox\"\n [attr.id]=\"controlId()\"\n [attr.aria-label]=\"nameLabel()\"\n [attr.aria-labelledby]=\"labelledBy()\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-invalid]=\"ariaInvalid()\"\n [attr.aria-required]=\"ariaRequired()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-haspopup]=\"'listbox'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"listboxId\"\n [attr.aria-activedescendant]=\"isOpen() ? activeOptionId() || null : null\"\n [attr.aria-readonly]=\"isReadonly() || null\"\n (click)=\"onTriggerClick()\"\n (keydown)=\"onTriggerKey($event)\"\n (blur)=\"touch.emit()\"\n >\n @if (isMulti()) {\n @if (hasSelection()) {\n <span class=\"wr-select__chips\">\n @for (chip of visibleChips(); track $index) {\n <span class=\"wr-select__chip\">\n <!-- A selected chip draws its option's leading visual — one copy per\n VISIBLE chip, so `maxTagCount` caps these too. -->\n @if (chip.leading; as leading) {\n <span class=\"wr-select__chip-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: chip.value, item: chip.item, placement: 'chip' }\"\n />\n </span>\n }\n <span class=\"wr-select__chip-label\">{{ chip.label }}</span>\n @if (!isReadonly()) {\n <span\n class=\"wr-select__chip-remove\"\n role=\"button\"\n [attr.aria-label]=\"chipRemoveLabel({ label: chip.label })\"\n tabindex=\"-1\"\n (click)=\"removeChip($index, $event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n </span>\n }\n @if (hiddenChipCount(); as extra) {\n <span class=\"wr-select__chip wr-select__chip--more\">{{ moreLabel({ count: extra }) }}</span>\n }\n </span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n } @else {\n @if (selectedLabel(); as label) {\n <!-- Beside the label, not inside it: the harness and the accessible name\n both read `.wr-select__value`, and the visual says nothing either should. -->\n @if (selectedLeading(); as leading) {\n <span class=\"wr-select__value-leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), item: itemFor(value()), placement: 'value' }\"\n />\n </span>\n }\n <span class=\"wr-select__value\">{{ label }}</span>\n } @else {\n <span class=\"wr-select__placeholder\">{{ resolvedPlaceholder() }}</span>\n }\n }\n\n @if (isMulti() && clearable() && hasSelection() && !isDisabled() && !isReadonly()) {\n <span\n class=\"wr-select__clear\"\n role=\"button\"\n [attr.aria-label]=\"resolvedClear()\"\n tabindex=\"-1\"\n (click)=\"clearAll($event)\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </span>\n }\n\n <svg\n class=\"wr-icon__svg wr-select__chevron\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n}\n\n<!-- The one live region for the search status, drawn by whichever of the two\n search triggers is up, in the DOM before its text changes. Not in the panel,\n since the listbox may own only options, and inside the trigger, which stays\n the host's only element. -->\n<ng-template #statusTpl>\n <span class=\"wr-select__status\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</span>\n</ng-template>\n\n<ng-template #panelTpl>\n <div\n class=\"wr-select-panel\"\n (pointerdown)=\"onPanelPointerDown($event)\"\n [class.wr-select-panel--sm]=\"size() === 'sm'\"\n [class.wr-select-panel--lg]=\"size() === 'lg'\"\n [class.wr-select-panel--virtual]=\"virtualActive()\"\n role=\"listbox\"\n [attr.id]=\"listboxId\"\n [attr.aria-multiselectable]=\"isMulti() ? 'true' : null\"\n [attr.aria-busy]=\"isLoading() ? 'true' : null\"\n >\n <!-- `aria-busy` belongs on the listbox, not on this row: it is the container\n whose required `option` children are temporarily missing, and a global\n ARIA attribute on a role-less child makes that child an owned element the\n listbox may not own (axe `aria-required-children`, critical). Plain text\n inside the listbox is fine — only ELEMENTS are checked. -->\n <!-- While the error row is up, through a retry, it carries the loader. -->\n @if (isLoading() && !showLoadError()) {\n <div class=\"wr-select-panel__loading\">{{ resolvedLoading() }}</div>\n }\n\n <!-- Multi mode under `selectAll`. An option, since a listbox owns only options\n and groups, and deliberately NOT a `.wr-option`: it carries no value, so a\n query for the options must not count it. Its state is `aria-checked`,\n which has the `mixed` that `aria-selected` lacks. Reached through the\n trigger's aria-activedescendant like every row, so it is a pointer\n target only. First in the panel and pinned there; the virtual list\n scrolls in its own box below it. No `aria-selected`, which the lint\n rule below asks of every option: ARIA 1.2 no longer requires it, and it\n asks authors not to put it beside `aria-checked` on one option. -->\n @if (showSelectAll()) {\n <!-- eslint-disable @angular-eslint/template/role-has-required-aria -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n class=\"wr-select-panel__select-all\"\n role=\"option\"\n [id]=\"selectAllId\"\n [class.wr-select-panel__select-all--active]=\"selectAllActive()\"\n [class.wr-select-panel__select-all--checked]=\"selectAllState() === 'all'\"\n [class.wr-select-panel__select-all--mixed]=\"selectAllState() === 'some'\"\n [class.wr-select-panel__select-all--disabled]=\"selectAllUnavailable()\"\n [attr.aria-checked]=\"selectAllChecked()\"\n [attr.aria-disabled]=\"selectAllUnavailable() ? true : null\"\n (click)=\"toggleSelectAll()\"\n >\n <span class=\"wr-select-panel__select-all-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\">\n @switch (selectAllState()) {\n @case ('all') {\n <path d=\"m4 8.5 3 3 5-6\" stroke-linejoin=\"round\" />\n }\n @case ('some') {\n <path d=\"M4 8h8\" />\n }\n }\n </svg>\n </span>\n {{ resolvedSelectAll() }}\n </div>\n <!-- eslint-enable @angular-eslint/template/role-has-required-aria -->\n }\n\n @if (virtualActive()) {\n <!-- Windowed data-array rows: plain role=\"option\" elements (not <wr-option>),\n navigated via the trigger's aria-activedescendant, selected by value. -->\n <div class=\"wr-select-panel__vlist\" [style.max-height]=\"resolvedViewportHeight()\">\n @if (virtualWindow().padTop > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padTop\"></div>\n }\n @for (entry of windowOptions(); track entry.index) {\n <!-- Keyboard handled by the trigger via aria-activedescendant; the\n row is a pointer target only. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <div\n role=\"option\"\n class=\"wr-option\"\n [id]=\"virtualRowId(entry.index)\"\n [class.wr-option--active]=\"entry.index === activeIndex()\"\n [class.wr-option--selected]=\"isSelected(entry.value)\"\n [class.wr-option--disabled]=\"atMaxItems() && !isSelected(entry.value)\"\n [attr.aria-selected]=\"isSelected(entry.value)\"\n [attr.aria-disabled]=\"atMaxItems() && !isSelected(entry.value) ? true : null\"\n [attr.aria-setsize]=\"filteredDynamicOptions().length\"\n [attr.aria-posinset]=\"entry.index + 1\"\n (click)=\"selectOption(entry.value)\"\n >\n <!-- Only the select-wide template reaches a virtual row — there is no\n `<wr-option>` here to declare one — and only rows inside the\n rendered window instantiate it. -->\n @if (optionLeading(); as leading) {\n <span class=\"wr-option__leading\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"leading\"\n [ngTemplateOutletContext]=\"{ $implicit: entry.value, item: entry.item, placement: 'option' }\"\n />\n </span>\n }\n {{ displayWith()(entry.item) }}\n </div>\n }\n @if (virtualWindow().padBottom > 0) {\n <div class=\"wr-select-panel__vspacer\" aria-hidden=\"true\" [style.height.px]=\"virtualWindow().padBottom\"></div>\n }\n </div>\n } @else {\n <!-- Dynamic options from [options], or from the async [loader] in search\n mode. Rendered as wr-option so the standard registration / filter\n pipeline applies uniformly. -->\n @for (item of dynamicOptions(); track $index) {\n <wr-option [value]=\"valueOf(item)\">{{ displayWith()(item) }}</wr-option>\n }\n }\n\n <!-- Projected static options — always present (a conditional `<ng-content>`\n would drop projected content). Empty whenever `virtualActive`. -->\n <ng-content />\n\n <!-- A listbox may only own `option` and `group` children, and as a bare `<div>`\n this row was the only thing in the tree when it showed — an\n `aria-required-children` critical. It cannot move out of the listbox the\n way the command palette's does: this element IS the listbox, and the id\n the trigger's `aria-controls` names is what gives it its accessible name.\n So it announces as a disabled option instead. Keyboard navigation skips\n it for free — arrow keys walk the registered `wr-option`s, and nothing\n registers this row. -->\n @if (hasNoResults()) {\n <div class=\"wr-select-panel__empty\" role=\"option\" aria-selected=\"false\" aria-disabled=\"true\">\n {{ resolvedNoResults() }}\n </div>\n }\n\n <!-- A failed load, in place of \"no results\". An option for the same reason as\n that row. While it offers a retry it is the option that runs the loader\n again: the field's aria-activedescendant names it, Enter there reaches it,\n and mousedown keeps focus in the field. The retry is DRAWN as a button but\n cannot be one, since a button inside an option is nested interactive\n content; it wears `.wr-btn` and takes the click. -->\n @if (showLoadError()) {\n <div\n class=\"wr-select-panel__error\"\n [class.wr-select-panel__error--retryable]=\"retryOffered()\"\n [class.wr-select-panel__error--active]=\"retryOffered() && !freeText()\"\n role=\"option\"\n aria-selected=\"false\"\n [attr.id]=\"retryOffered() ? retryRowId : null\"\n [attr.aria-disabled]=\"retryOffered() ? null : true\"\n (mousedown)=\"$event.preventDefault()\"\n >\n @if (loadErrorTpl(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" [ngTemplateOutletContext]=\"loadErrorContext()\" />\n } @else {\n {{ resolvedLoadError() }}\n @if (retryOffered()) {\n <!-- The spinner as `wr-btn` draws it while loading: hidden from the\n accessibility tree, since the row already reads the retry label. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events,@angular-eslint/template/interactive-supports-focus -->\n <span\n class=\"wr-btn wr-btn--sm wr-select-panel__retry\"\n [class.wr-btn--loading]=\"retrying()\"\n (click)=\"onLoadErrorClick()\"\n >\n @if (retrying()) {\n <wr-spinner class=\"wr-btn__spin\" size=\"sm\" aria-hidden=\"true\" />\n }\n <span class=\"wr-btn__label\">{{ resolvedRetry() }}</span>\n </span>\n }\n }\n </div>\n }\n </div>\n</ng-template>\n"
1934
1943
  }]
1935
1944
  }],
1936
1945
  ctorParameters: () => [],
@@ -2341,7 +2350,7 @@ var WrOptionGroup = class WrOptionGroup {
2341
2350
  labelId = wrRandomId("wr-option-group-label");
2342
2351
  static ɵfac = i0.ɵɵngDeclareFactory({
2343
2352
  minVersion: "12.0.0",
2344
- version: "22.2.6",
2353
+ version: "22.3.0",
2345
2354
  ngImport: i0,
2346
2355
  type: WrOptionGroup,
2347
2356
  deps: [],
@@ -2349,7 +2358,7 @@ var WrOptionGroup = class WrOptionGroup {
2349
2358
  });
2350
2359
  static ɵcmp = i0.ɵɵngDeclareComponent({
2351
2360
  minVersion: "17.1.0",
2352
- version: "22.2.6",
2361
+ version: "22.3.0",
2353
2362
  type: WrOptionGroup,
2354
2363
  isStandalone: true,
2355
2364
  selector: "wr-option-group",
@@ -2372,7 +2381,7 @@ var WrOptionGroup = class WrOptionGroup {
2372
2381
  };
2373
2382
  i0.ɵɵngDeclareClassMetadata({
2374
2383
  minVersion: "12.0.0",
2375
- version: "22.2.6",
2384
+ version: "22.3.0",
2376
2385
  ngImport: i0,
2377
2386
  type: WrOptionGroup,
2378
2387
  decorators: [{