ngwr 16.2.0 → 16.3.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 (398) hide show
  1. package/badge/styles/_tag.scss +73 -1
  2. package/calendar/styles/_index.scss +22 -0
  3. package/cascader/styles/_rules.scss +7 -0
  4. package/color-picker/styles/_index.scss +21 -0
  5. package/date-picker/styles/_index.scss +19 -0
  6. package/dropdown/styles/_index.scss +13 -19
  7. package/fesm2022/ngwr-affix.mjs +3 -3
  8. package/fesm2022/ngwr-alert-testing.mjs +70 -0
  9. package/fesm2022/ngwr-alert-testing.mjs.map +1 -0
  10. package/fesm2022/ngwr-alert.mjs +3 -3
  11. package/fesm2022/ngwr-anchor.mjs +17 -6
  12. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  13. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  14. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  15. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  16. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  17. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  18. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  19. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  20. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  21. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  22. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  23. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  24. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  25. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  26. package/fesm2022/ngwr-animations-marquee.mjs +3 -3
  27. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  28. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  29. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  30. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  31. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  32. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  33. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  34. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  35. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  36. package/fesm2022/ngwr-avatar.mjs +3 -3
  37. package/fesm2022/ngwr-back-top.mjs +3 -3
  38. package/fesm2022/ngwr-badge.mjs +129 -11
  39. package/fesm2022/ngwr-badge.mjs.map +1 -1
  40. package/fesm2022/ngwr-breadcrumbs-testing.mjs +83 -0
  41. package/fesm2022/ngwr-breadcrumbs-testing.mjs.map +1 -0
  42. package/fesm2022/ngwr-breadcrumbs.mjs +8 -8
  43. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  44. package/fesm2022/ngwr-burger-testing.mjs +45 -0
  45. package/fesm2022/ngwr-burger-testing.mjs.map +1 -0
  46. package/fesm2022/ngwr-burger.mjs +3 -3
  47. package/fesm2022/ngwr-button.mjs +6 -6
  48. package/fesm2022/ngwr-calendar-testing.mjs +18 -0
  49. package/fesm2022/ngwr-calendar-testing.mjs.map +1 -1
  50. package/fesm2022/ngwr-calendar.mjs +500 -73
  51. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  52. package/fesm2022/ngwr-card.mjs +9 -9
  53. package/fesm2022/ngwr-carousel.mjs +6 -6
  54. package/fesm2022/ngwr-cascader.mjs +37 -16
  55. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  56. package/fesm2022/ngwr-charts-bar-chart.mjs +5 -4
  57. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  58. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  59. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  61. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  62. package/fesm2022/ngwr-charts-chart-legend.mjs +26 -11
  63. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  64. package/fesm2022/ngwr-charts-core.mjs +3 -3
  65. package/fesm2022/ngwr-charts-donut-chart.mjs +5 -4
  66. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  67. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  68. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  69. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  70. package/fesm2022/ngwr-charts-line-chart-testing.mjs +3 -2
  71. package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
  72. package/fesm2022/ngwr-charts-line-chart.mjs +17 -7
  73. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  74. package/fesm2022/ngwr-charts-meter-group.mjs +5 -4
  75. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  76. package/fesm2022/ngwr-charts-radar-chart.mjs +5 -4
  77. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  78. package/fesm2022/ngwr-charts-scatter-chart.mjs +5 -4
  79. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  81. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  83. package/fesm2022/ngwr-checkbox.mjs +6 -6
  84. package/fesm2022/ngwr-clipboard.mjs +3 -3
  85. package/fesm2022/ngwr-collapse.mjs +9 -9
  86. package/fesm2022/ngwr-color-picker-testing.mjs +11 -1
  87. package/fesm2022/ngwr-color-picker-testing.mjs.map +1 -1
  88. package/fesm2022/ngwr-color-picker.mjs +153 -37
  89. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  90. package/fesm2022/ngwr-command-palette.mjs +3 -3
  91. package/fesm2022/ngwr-comment.mjs +10 -6
  92. package/fesm2022/ngwr-comment.mjs.map +1 -1
  93. package/fesm2022/ngwr-compare-testing.mjs +84 -0
  94. package/fesm2022/ngwr-compare-testing.mjs.map +1 -0
  95. package/fesm2022/ngwr-compare.mjs +3 -3
  96. package/fesm2022/ngwr-context-menu.mjs +12 -12
  97. package/fesm2022/ngwr-cookie.mjs +3 -3
  98. package/fesm2022/ngwr-copy-value.mjs +3 -3
  99. package/fesm2022/ngwr-counter.mjs +6 -6
  100. package/fesm2022/ngwr-date-picker-testing.mjs +30 -4
  101. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-date-picker.mjs +342 -69
  103. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  104. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  105. package/fesm2022/ngwr-date.mjs +59 -8
  106. package/fesm2022/ngwr-date.mjs.map +1 -1
  107. package/fesm2022/ngwr-density.mjs +6 -6
  108. package/fesm2022/ngwr-descriptions.mjs +6 -6
  109. package/fesm2022/ngwr-dialog.mjs +18 -18
  110. package/fesm2022/ngwr-directives.mjs +15 -15
  111. package/fesm2022/ngwr-divider.mjs +3 -3
  112. package/fesm2022/ngwr-drawer.mjs +51 -29
  113. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  114. package/fesm2022/ngwr-dropdown-testing.mjs +11 -3
  115. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  116. package/fesm2022/ngwr-dropdown.mjs +52 -95
  117. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  118. package/fesm2022/ngwr-editor.mjs +4 -3
  119. package/fesm2022/ngwr-editor.mjs.map +1 -1
  120. package/fesm2022/ngwr-empty.mjs +3 -3
  121. package/fesm2022/ngwr-event-calendar.mjs +186 -33
  122. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  123. package/fesm2022/ngwr-file-upload-testing.mjs +34 -2
  124. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  125. package/fesm2022/ngwr-file-upload.mjs +274 -15
  126. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  127. package/fesm2022/ngwr-form.mjs +9 -9
  128. package/fesm2022/ngwr-form.mjs.map +1 -1
  129. package/fesm2022/ngwr-graph-testing.mjs +3 -0
  130. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  131. package/fesm2022/ngwr-graph.mjs +102 -42
  132. package/fesm2022/ngwr-graph.mjs.map +1 -1
  133. package/fesm2022/ngwr-hotkey.mjs +6 -6
  134. package/fesm2022/ngwr-i18n-ar.mjs +19 -4
  135. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  136. package/fesm2022/ngwr-i18n-cs.mjs +19 -4
  137. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  138. package/fesm2022/ngwr-i18n-de.mjs +19 -4
  139. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  140. package/fesm2022/ngwr-i18n-en.mjs +19 -4
  141. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  142. package/fesm2022/ngwr-i18n-es.mjs +19 -4
  143. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  144. package/fesm2022/ngwr-i18n-fr.mjs +19 -4
  145. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  146. package/fesm2022/ngwr-i18n-he.mjs +19 -4
  147. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  148. package/fesm2022/ngwr-i18n-hi.mjs +19 -4
  149. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  150. package/fesm2022/ngwr-i18n-id.mjs +19 -4
  151. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-it.mjs +19 -4
  153. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-ja.mjs +19 -4
  155. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-ko.mjs +19 -4
  157. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-nl.mjs +19 -4
  159. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-pl.mjs +19 -4
  161. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-pt.mjs +19 -4
  163. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-ru.mjs +19 -4
  165. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-sv.mjs +19 -4
  167. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-tr.mjs +19 -4
  169. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-uk.mjs +19 -4
  171. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-vi.mjs +19 -4
  173. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  174. package/fesm2022/ngwr-i18n-zh-tw.mjs +19 -4
  175. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-zh.mjs +19 -4
  177. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n.mjs +9 -9
  179. package/fesm2022/ngwr-icon.mjs +6 -6
  180. package/fesm2022/ngwr-image-cropper.mjs +3 -3
  181. package/fesm2022/ngwr-input-number-testing.mjs +11 -0
  182. package/fesm2022/ngwr-input-number-testing.mjs.map +1 -1
  183. package/fesm2022/ngwr-input-number.mjs +68 -7
  184. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  185. package/fesm2022/ngwr-input-otp.mjs +23 -3
  186. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  187. package/fesm2022/ngwr-input-testing.mjs +24 -1
  188. package/fesm2022/ngwr-input-testing.mjs.map +1 -1
  189. package/fesm2022/ngwr-input.mjs +152 -36
  190. package/fesm2022/ngwr-input.mjs.map +1 -1
  191. package/fesm2022/ngwr-keyboard.mjs +3 -3
  192. package/fesm2022/ngwr-knob.mjs +3 -3
  193. package/fesm2022/ngwr-layout.mjs +15 -15
  194. package/fesm2022/ngwr-lightbox.mjs +8 -8
  195. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  196. package/fesm2022/ngwr-list.mjs +8 -8
  197. package/fesm2022/ngwr-list.mjs.map +1 -1
  198. package/fesm2022/ngwr-load-state.mjs +15 -15
  199. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  200. package/fesm2022/ngwr-mention.mjs +6 -6
  201. package/fesm2022/ngwr-meta.mjs +6 -6
  202. package/fesm2022/ngwr-overlay.mjs +175 -13
  203. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  204. package/fesm2022/ngwr-page-header.mjs +3 -3
  205. package/fesm2022/ngwr-pagination.mjs +5 -3
  206. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  207. package/fesm2022/ngwr-pipes.mjs +31 -29
  208. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  209. package/fesm2022/ngwr-platform.mjs +9 -9
  210. package/fesm2022/ngwr-popconfirm-testing.mjs +5 -2
  211. package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
  212. package/fesm2022/ngwr-popconfirm.mjs +44 -63
  213. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  214. package/fesm2022/ngwr-popover-testing.mjs +7 -1
  215. package/fesm2022/ngwr-popover-testing.mjs.map +1 -1
  216. package/fesm2022/ngwr-popover.mjs +58 -156
  217. package/fesm2022/ngwr-popover.mjs.map +1 -1
  218. package/fesm2022/ngwr-progress.mjs +50 -9
  219. package/fesm2022/ngwr-progress.mjs.map +1 -1
  220. package/fesm2022/ngwr-pull-to-refresh-testing.mjs +57 -0
  221. package/fesm2022/ngwr-pull-to-refresh-testing.mjs.map +1 -0
  222. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  223. package/fesm2022/ngwr-qr.mjs +3 -3
  224. package/fesm2022/ngwr-radio.mjs +6 -6
  225. package/fesm2022/ngwr-rating.mjs +3 -3
  226. package/fesm2022/ngwr-resizable-testing.mjs +113 -0
  227. package/fesm2022/ngwr-resizable-testing.mjs.map +1 -0
  228. package/fesm2022/ngwr-resizable.mjs +3 -3
  229. package/fesm2022/ngwr-result.mjs +12 -12
  230. package/fesm2022/ngwr-schema-form-testing.mjs +336 -0
  231. package/fesm2022/ngwr-schema-form-testing.mjs.map +1 -0
  232. package/fesm2022/ngwr-schema-form.mjs +415 -19
  233. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  234. package/fesm2022/ngwr-scroll.mjs +3 -3
  235. package/fesm2022/ngwr-segmented.mjs +3 -3
  236. package/fesm2022/ngwr-select-testing.mjs +19 -0
  237. package/fesm2022/ngwr-select-testing.mjs.map +1 -1
  238. package/fesm2022/ngwr-select.mjs +263 -83
  239. package/fesm2022/ngwr-select.mjs.map +1 -1
  240. package/fesm2022/ngwr-sidebar-testing.mjs +176 -0
  241. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -0
  242. package/fesm2022/ngwr-sidebar.mjs +3 -3
  243. package/fesm2022/ngwr-skeleton.mjs +3 -3
  244. package/fesm2022/ngwr-slider-testing.mjs +6 -0
  245. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  246. package/fesm2022/ngwr-slider.mjs +21 -3
  247. package/fesm2022/ngwr-slider.mjs.map +1 -1
  248. package/fesm2022/ngwr-sortable-list.mjs +29 -12
  249. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  250. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  251. package/fesm2022/ngwr-spinner.mjs +3 -3
  252. package/fesm2022/ngwr-splitter.mjs +3 -3
  253. package/fesm2022/ngwr-statistic.mjs +9 -9
  254. package/fesm2022/ngwr-stepper.mjs +42 -11
  255. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  256. package/fesm2022/ngwr-storage.mjs +3 -3
  257. package/fesm2022/ngwr-switch.mjs +3 -3
  258. package/fesm2022/ngwr-table-testing.mjs +88 -2
  259. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  260. package/fesm2022/ngwr-table.mjs +891 -74
  261. package/fesm2022/ngwr-table.mjs.map +1 -1
  262. package/fesm2022/ngwr-tabs-router.mjs +3 -3
  263. package/fesm2022/ngwr-tabs-testing.mjs +1 -1
  264. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  265. package/fesm2022/ngwr-tabs.mjs +15 -10
  266. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  267. package/fesm2022/ngwr-textarea-testing.mjs +11 -0
  268. package/fesm2022/ngwr-textarea-testing.mjs.map +1 -1
  269. package/fesm2022/ngwr-textarea.mjs +128 -16
  270. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  271. package/fesm2022/ngwr-theme.mjs +3 -3
  272. package/fesm2022/ngwr-timeline.mjs +6 -6
  273. package/fesm2022/ngwr-toast.mjs +40 -19
  274. package/fesm2022/ngwr-toast.mjs.map +1 -1
  275. package/fesm2022/ngwr-toolbar.mjs +3 -3
  276. package/fesm2022/ngwr-tour.mjs +6 -6
  277. package/fesm2022/ngwr-transfer-testing.mjs +6 -0
  278. package/fesm2022/ngwr-transfer-testing.mjs.map +1 -1
  279. package/fesm2022/ngwr-transfer.mjs +24 -5
  280. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  281. package/fesm2022/ngwr-tree-testing.mjs +62 -2
  282. package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tree.mjs +966 -78
  284. package/fesm2022/ngwr-tree.mjs.map +1 -1
  285. package/fesm2022/ngwr-typography.mjs +3 -3
  286. package/fesm2022/ngwr-utils-router.mjs +3 -3
  287. package/fesm2022/ngwr-utils.mjs +34 -1
  288. package/fesm2022/ngwr-utils.mjs.map +1 -1
  289. package/fesm2022/ngwr-version.mjs +1 -1
  290. package/fesm2022/ngwr-version.mjs.map +1 -1
  291. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  292. package/fesm2022/ngwr-window.mjs +33 -22
  293. package/fesm2022/ngwr-window.mjs.map +1 -1
  294. package/file-upload/styles/_index.scss +156 -0
  295. package/i18n/ar.json +21 -4
  296. package/i18n/cs.json +21 -4
  297. package/i18n/de.json +21 -4
  298. package/i18n/en.json +21 -4
  299. package/i18n/es.json +21 -4
  300. package/i18n/fr.json +21 -4
  301. package/i18n/he.json +21 -4
  302. package/i18n/hi.json +21 -4
  303. package/i18n/id.json +21 -4
  304. package/i18n/it.json +21 -4
  305. package/i18n/ja.json +21 -4
  306. package/i18n/ko.json +21 -4
  307. package/i18n/nl.json +21 -4
  308. package/i18n/pl.json +21 -4
  309. package/i18n/pt.json +21 -4
  310. package/i18n/ru.json +21 -4
  311. package/i18n/sv.json +21 -4
  312. package/i18n/tr.json +21 -4
  313. package/i18n/uk.json +21 -4
  314. package/i18n/vi.json +21 -4
  315. package/i18n/zh-TW.json +21 -4
  316. package/i18n/zh.json +21 -4
  317. package/input/styles/_index.scss +68 -1
  318. package/input-otp/styles/_index.scss +14 -0
  319. package/llms-full.txt +52 -20
  320. package/overlay/styles/_arrow.scss +4 -4
  321. package/package.json +33 -1
  322. package/popconfirm/styles/_index.scss +3 -11
  323. package/progress/styles/_index.scss +32 -0
  324. package/schema-form/styles/_index.scss +78 -0
  325. package/schematics/use/rule.js +2 -0
  326. package/schematics/use/symbol-map.json +4 -0
  327. package/select/styles/_index.scss +114 -22
  328. package/skills/ngwr/SKILL.md +1 -1
  329. package/skills/ngwr/references/catalog.md +9 -1
  330. package/slider/styles/_index.scss +22 -0
  331. package/table/styles/_index.scss +167 -3
  332. package/textarea/styles/_index.scss +80 -0
  333. package/theme/styles/_focus.scss +5 -0
  334. package/theme/styles/_motion.scss +5 -0
  335. package/transfer/styles/_index.scss +84 -0
  336. package/tree/styles/_index.scss +138 -5
  337. package/types/ngwr-alert-testing.d.ts +88 -0
  338. package/types/ngwr-badge.d.ts +72 -2
  339. package/types/ngwr-breadcrumbs-testing.d.ts +92 -0
  340. package/types/ngwr-burger-testing.d.ts +51 -0
  341. package/types/ngwr-calendar-testing.d.ts +18 -6
  342. package/types/ngwr-calendar.d.ts +272 -22
  343. package/types/ngwr-cascader.d.ts +10 -1
  344. package/types/ngwr-charts-chart-legend.d.ts +9 -4
  345. package/types/ngwr-charts-line-chart-testing.d.ts +4 -1
  346. package/types/ngwr-charts-line-chart.d.ts +7 -4
  347. package/types/ngwr-color-picker-testing.d.ts +15 -4
  348. package/types/ngwr-color-picker.d.ts +76 -6
  349. package/types/ngwr-compare-testing.d.ts +72 -0
  350. package/types/ngwr-date-picker-testing.d.ts +23 -8
  351. package/types/ngwr-date-picker.d.ts +100 -9
  352. package/types/ngwr-date.d.ts +71 -1
  353. package/types/ngwr-drawer.d.ts +9 -0
  354. package/types/ngwr-dropdown-testing.d.ts +20 -0
  355. package/types/ngwr-dropdown.d.ts +24 -6
  356. package/types/ngwr-event-calendar.d.ts +66 -8
  357. package/types/ngwr-file-upload-testing.d.ts +31 -2
  358. package/types/ngwr-file-upload.d.ts +148 -1
  359. package/types/ngwr-form.d.ts +47 -3
  360. package/types/ngwr-graph-testing.d.ts +8 -3
  361. package/types/ngwr-graph.d.ts +147 -7
  362. package/types/ngwr-input-number-testing.d.ts +10 -0
  363. package/types/ngwr-input-number.d.ts +30 -1
  364. package/types/ngwr-input-otp.d.ts +10 -0
  365. package/types/ngwr-input-testing.d.ts +30 -0
  366. package/types/ngwr-input.d.ts +54 -3
  367. package/types/ngwr-overlay.d.ts +84 -5
  368. package/types/ngwr-pipes.d.ts +2 -1
  369. package/types/ngwr-popconfirm-testing.d.ts +12 -3
  370. package/types/ngwr-popconfirm.d.ts +28 -3
  371. package/types/ngwr-popover-testing.d.ts +19 -2
  372. package/types/ngwr-popover.d.ts +22 -2
  373. package/types/ngwr-progress.d.ts +29 -1
  374. package/types/ngwr-pull-to-refresh-testing.d.ts +83 -0
  375. package/types/ngwr-resizable-testing.d.ts +116 -0
  376. package/types/ngwr-schema-form-testing.d.ts +260 -0
  377. package/types/ngwr-schema-form.d.ts +76 -6
  378. package/types/ngwr-select-testing.d.ts +20 -0
  379. package/types/ngwr-select.d.ts +112 -11
  380. package/types/ngwr-sidebar-testing.d.ts +176 -0
  381. package/types/ngwr-slider-testing.d.ts +3 -1
  382. package/types/ngwr-slider.d.ts +21 -1
  383. package/types/ngwr-sortable-list.d.ts +6 -0
  384. package/types/ngwr-stepper.d.ts +20 -11
  385. package/types/ngwr-table-testing.d.ts +70 -6
  386. package/types/ngwr-table.d.ts +480 -50
  387. package/types/ngwr-tabs-testing.d.ts +14 -17
  388. package/types/ngwr-tabs.d.ts +6 -0
  389. package/types/ngwr-textarea-testing.d.ts +10 -0
  390. package/types/ngwr-textarea.d.ts +48 -2
  391. package/types/ngwr-toast.d.ts +8 -1
  392. package/types/ngwr-transfer-testing.d.ts +3 -0
  393. package/types/ngwr-transfer.d.ts +24 -1
  394. package/types/ngwr-tree-testing.d.ts +65 -1
  395. package/types/ngwr-tree.d.ts +333 -12
  396. package/types/ngwr-utils.d.ts +28 -0
  397. package/types/ngwr-version.d.ts +1 -1
  398. package/types/ngwr-window.d.ts +7 -4
@@ -18,7 +18,7 @@ var WrToolbar = class WrToolbar {
18
18
  });
19
19
  static ɵfac = i0.ɵɵngDeclareFactory({
20
20
  minVersion: "12.0.0",
21
- version: "22.2.5",
21
+ version: "22.2.6",
22
22
  ngImport: i0,
23
23
  type: WrToolbar,
24
24
  deps: [],
@@ -26,7 +26,7 @@ var WrToolbar = class WrToolbar {
26
26
  });
27
27
  static ɵcmp = i0.ɵɵngDeclareComponent({
28
28
  minVersion: "17.1.0",
29
- version: "22.2.5",
29
+ version: "22.2.6",
30
30
  type: WrToolbar,
31
31
  isStandalone: true,
32
32
  selector: "wr-toolbar",
@@ -49,7 +49,7 @@ var WrToolbar = class WrToolbar {
49
49
  };
50
50
  i0.ɵɵngDeclareClassMetadata({
51
51
  minVersion: "12.0.0",
52
- version: "22.2.5",
52
+ version: "22.2.6",
53
53
  ngImport: i0,
54
54
  type: WrToolbar,
55
55
  decorators: [{
@@ -38,7 +38,7 @@ var WrTourPopup = class WrTourPopup {
38
38
  }, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
39
39
  static ɵfac = i0.ɵɵngDeclareFactory({
40
40
  minVersion: "12.0.0",
41
- version: "22.2.5",
41
+ version: "22.2.6",
42
42
  ngImport: i0,
43
43
  type: WrTourPopup,
44
44
  deps: [],
@@ -46,7 +46,7 @@ var WrTourPopup = class WrTourPopup {
46
46
  });
47
47
  static ɵcmp = i0.ɵɵngDeclareComponent({
48
48
  minVersion: "17.0.0",
49
- version: "22.2.5",
49
+ version: "22.2.6",
50
50
  type: WrTourPopup,
51
51
  isStandalone: true,
52
52
  selector: "wr-tour-popup",
@@ -82,7 +82,7 @@ var WrTourPopup = class WrTourPopup {
82
82
  };
83
83
  i0.ɵɵngDeclareClassMetadata({
84
84
  minVersion: "12.0.0",
85
- version: "22.2.5",
85
+ version: "22.2.6",
86
86
  ngImport: i0,
87
87
  type: WrTourPopup,
88
88
  decorators: [{
@@ -329,7 +329,7 @@ var WrTour = class WrTour {
329
329
  }
330
330
  static ɵfac = i0.ɵɵngDeclareFactory({
331
331
  minVersion: "12.0.0",
332
- version: "22.2.5",
332
+ version: "22.2.6",
333
333
  ngImport: i0,
334
334
  type: WrTour,
335
335
  deps: [],
@@ -337,14 +337,14 @@ var WrTour = class WrTour {
337
337
  });
338
338
  static ɵprov = i0.ɵɵngDeclareService({
339
339
  minVersion: "22.0.0",
340
- version: "22.2.5",
340
+ version: "22.2.6",
341
341
  ngImport: i0,
342
342
  type: WrTour
343
343
  });
344
344
  };
345
345
  i0.ɵɵngDeclareClassMetadata({
346
346
  minVersion: "12.0.0",
347
- version: "22.2.5",
347
+ version: "22.2.6",
348
348
  ngImport: i0,
349
349
  type: WrTour,
350
350
  decorators: [{ type: Service }],
@@ -163,6 +163,12 @@ var WrTransferHarness = class WrTransferHarness extends ComponentHarness {
163
163
  async getPane(side) {
164
164
  return this.locatorFor(WrTransferPaneHarness.with({ side }))();
165
165
  }
166
+ async getSize() {
167
+ const host = await this.host();
168
+ if (await host.hasClass("wr-transfer--sm")) return "sm";
169
+ if (await host.hasClass("wr-transfer--lg")) return "lg";
170
+ return "md";
171
+ }
166
172
  async isDisabled() {
167
173
  return (await this.host()).hasClass("wr-transfer--disabled");
168
174
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-transfer-testing.mjs","names":[],"sources":["../../../projects/lib/transfer/testing/wr-transfer-item-harness.ts","../../../projects/lib/transfer/testing/wr-transfer-pane-harness.ts","../../../projects/lib/transfer/testing/wr-transfer-harness.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport type { WrTransferItemHarnessFilters } from './types';\n\n/**\n * Test harness for one row of a `<wr-transfer>` pane.\n *\n * A row is a `<li>` holding a `<wr-checkbox>`, and the checkbox is the thing the\n * user operates — so the state is read from the native `<input type=\"checkbox\">`\n * inside it, and {@link toggle} clicks that. The pane is deliberately NOT a\n * `role=\"listbox\"` of `role=\"option\"` rows (an option may not contain an\n * interactive control, and the axe gate says so), which is why there is no\n * `aria-selected` here to read: the checkbox's own state IS the announcement.\n *\n * **Checked is not the value.** A tick stages the row for the next move and\n * nothing more; which pane the row sits in is what `[(value)]` carries. Staging is\n * spent — and cleared — by the move that commits it.\n *\n * @example\n * ```ts\n * const source = await transfer.getPane('source');\n * await (await source.getItem({ label: 'Read' })).check();\n *\n * await transfer.moveTo('target');\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferItemHarness extends ComponentHarness {\n /**\n * `.wr-transfer__item` is a DATA row and nothing else.\n *\n * An empty pane renders an `<li class=\"wr-transfer__empty\">` for its placeholder,\n * so querying `li` would hand that back as a row with no checkbox to read.\n */\n static hostSelector = '.wr-transfer__item';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferItemHarnessFilters = {}): HarnessPredicate<WrTransferItemHarness> {\n return new HarnessPredicate(WrTransferItemHarness, options)\n .addOption('label', options.label, (harness, label) => HarnessPredicate.stringMatches(harness.getLabel(), label))\n .addOption('checked', options.checked, async (harness, checked) => (await harness.isChecked()) === checked)\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled);\n }\n\n private readonly input = this.locatorFor('input.wr-checkbox__input');\n\n /** The row's label, trimmed — the `WrTransferItem.label` the pane shows and the search matches. */\n async getLabel(): Promise<string> {\n return (await this.locatorFor('.wr-checkbox__text')()).text();\n }\n\n /**\n * Whether the row is STAGED for the next move.\n *\n * Not \"selected\": a row's pane is what the value says, and the tick is transient\n * staging the move spends. `WrTransferPaneHarness.getCheckedLabels()` reads the\n * whole staged set of a pane.\n */\n async isChecked(): Promise<boolean> {\n return (await this.input()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether the row refuses staging.\n *\n * The native input's `disabled` — the state a screen reader is given and the one\n * that decides whether a click does anything. It answers `true` for BOTH reasons a\n * row can be inert: the item's own `disabled` flag, and a disabled transfer, which\n * disables every row. The `wr-transfer__item--disabled` modifier only marks the\n * first of those, so it is the narrower question and not the one that predicts\n * behaviour.\n */\n async isDisabled(): Promise<boolean> {\n return (await this.input()).getProperty<boolean>('disabled');\n }\n\n /**\n * Flip the row's staging.\n *\n * Refuses a disabled row rather than clicking into the void: the component drops\n * the toggle outright, so the click would resolve having changed nothing and the\n * failure would surface as an unexplained empty move two assertions later.\n */\n async toggle(): Promise<void> {\n if (await this.isDisabled()) {\n const label = await this.getLabel();\n throw new Error(\n `WrTransferItemHarness.toggle(): \"${label}\" is disabled and the component refuses to stage it. ` +\n 'Either the item carries `disabled`, or the whole transfer does — check isDisabled() on the transfer too.'\n );\n }\n await (await this.input()).click();\n }\n\n /** Stage the row if it is not already staged. */\n async check(): Promise<void> {\n if (!(await this.isChecked())) await this.toggle();\n }\n\n /** Unstage the row if it is staged. */\n async uncheck(): Promise<void> {\n if (await this.isChecked()) await this.toggle();\n }\n\n /** Move keyboard focus onto the row's checkbox — the row's only tab stop. */\n async focus(): Promise<void> {\n return (await this.input()).focus();\n }\n\n /** Whether the row's checkbox has focus. */\n async isFocused(): Promise<boolean> {\n return (await this.input()).isFocused();\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate, type TestElement } from '@angular/cdk/testing';\n\nimport type { WrTransferItemHarnessFilters, WrTransferPaneHarnessFilters, WrTransferSide } from './types';\nimport { WrTransferItemHarness } from './wr-transfer-item-harness';\n\n/**\n * Test harness for ONE pane of a `<wr-transfer>` — reached with\n * `WrTransferHarness.getPane('source' | 'target')`.\n *\n * The two panes are the same block rendered twice (the component's template\n * iterates them), so they are one harness class keyed by side rather than two sets\n * of `…Source` / `…Target` methods: the side is named once, at `getPane()`, and\n * every question after that is asked of a pane without repeating which one. It also\n * means the symmetry cannot rot — a method that only works on the left is\n * impossible to write here.\n *\n * What a pane SHOWS is the honest scope of everything below. `[items]` minus the\n * value on the left, the value on the right, and then the pane's own filter on top:\n * rows a filter has hidden are not rendered at all, are not counted by the header,\n * and — the component's own rule — are not moved either, however they were staged.\n *\n * @example\n * ```ts\n * const source = await transfer.getPane('source');\n *\n * await source.search('adm');\n * await source.checkAll();\n * expect(await source.getCheckedLabels()).toEqual(['Admin']);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferPaneHarness extends ComponentHarness {\n /**\n * The pane is a plain `<div>` with no role of its own — the heading names the\n * list, and the checkbox in each row carries the semantics — so its BEM class is\n * the only handle, and being `ViewEncapsulation.None` that class is public API.\n */\n static hostSelector = '.wr-transfer__pane';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferPaneHarnessFilters = {}): HarnessPredicate<WrTransferPaneHarness> {\n return new HarnessPredicate(WrTransferPaneHarness, options)\n .addOption('side', options.side, async (harness, side) => (await harness.getSide()) === side)\n .addOption('title', options.title, (harness, title) => HarnessPredicate.stringMatches(harness.getTitle(), title));\n }\n\n private readonly list = this.locatorFor('ul.wr-transfer__list');\n private readonly selectAllBox = this.locatorFor('.wr-transfer__head input.wr-checkbox__input');\n private readonly searchBox = this.locatorForOptional('.wr-transfer__search input');\n\n /**\n * Which side this pane is.\n *\n * From the `--target` modifier rather than from DOM order: order is a layout fact\n * that `dir=\"rtl\"` and any future reflow are free to change, while the modifier is\n * what the component says the pane MEANS.\n */\n async getSide(): Promise<WrTransferSide> {\n return (await (await this.host()).hasClass('wr-transfer__pane--target')) ? 'target' : 'source';\n }\n\n /** The pane's heading — `[sourceTitle]` / `[targetTitle]`, or the i18n fallback. */\n async getTitle(): Promise<string> {\n return (await this.locatorFor('.wr-transfer__title')()).text();\n }\n\n /**\n * The count beside the heading, verbatim — `'1 / 4'` with the built-in copy.\n *\n * Deliberately not parsed into numbers: it is an i18n FORMAT\n * (`transfer.count`) a consuming app can replace wholesale, so a harness that\n * split it on `/` would answer for the default catalog and break on a translated\n * one. Its two numbers are `(await getCheckedLabels()).length` and\n * `(await getItems()).length` — both of which this harness reads from the rendered\n * rows, so a spec can assert the header agrees with them.\n */\n async getCountText(): Promise<string> {\n return (await this.locatorFor('.wr-transfer__count')()).text();\n }\n\n /**\n * The list's accessible name — the `aria-label` on the `<ul>`, which repeats the\n * heading so that a row announced in isolation still says which pane it is in.\n */\n async getListLabel(): Promise<string | null> {\n return (await this.list()).getAttribute('aria-label');\n }\n\n /**\n * The explicit `role` on the pane's list, which is `null` — and that `null` is the\n * ANSWER, not a gap worth fixing.\n *\n * The pane is a plain `<ul>` of checkboxes on purpose. Dressing it as a\n * `role=\"listbox\"` of `role=\"option\"` rows reads better in the abstract but is\n * invalid: an option may not contain an interactive control, and the axe gate\n * rejects it. Pinning this is what keeps that \"improvement\" from looking like a\n * win.\n */\n async getListRole(): Promise<string | null> {\n return (await this.list()).getAttribute('role');\n }\n\n /** The rows the pane is showing, in render order. */\n async getItems(filters: WrTransferItemHarnessFilters = {}): Promise<WrTransferItemHarness[]> {\n return this.locatorForAll(WrTransferItemHarness.with(filters))();\n }\n\n /**\n * The labels the pane is showing, in render order.\n *\n * On the right that is the value, in the order the user built it — not `[items]`\n * order, which the component deliberately does not impose.\n */\n async getItemLabels(): Promise<string[]> {\n const items = await this.getItems();\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /** The first row matching the filters, or a failure that says what the pane is showing. */\n async getItem(filters: WrTransferItemHarnessFilters): Promise<WrTransferItemHarness> {\n const [item] = await this.getItems(filters);\n if (!item) {\n const showing = await this.getItemLabels();\n const side = await this.getSide();\n throw new Error(\n `WrTransferPaneHarness.getItem(): no row matched ${JSON.stringify(filters)} in the ${side} pane, ` +\n `which is showing [${showing.join(', ')}]. A row in the other pane, or one this pane's search has ` +\n 'filtered out, is not here.'\n );\n }\n return item;\n }\n\n /**\n * The labels of the rows STAGED for the next move, in render order.\n *\n * The staged set and the value are different things, and this is the one the pane\n * shows: read from the rendered rows, so a row staged before a search hid it is\n * absent — exactly as the header count and the move itself treat it.\n */\n async getCheckedLabels(): Promise<string[]> {\n const items = await this.getItems({ checked: true });\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /** The placeholder shown in a pane with no rows, or `null` while it has some. */\n async getEmptyText(): Promise<string | null> {\n const empty = await this.locatorForOptional('.wr-transfer__empty')();\n return empty ? empty.text() : null;\n }\n\n /** Whether this pane has a filter box — `[searchable]` puts one above both panes. */\n async hasSearch(): Promise<boolean> {\n return (await this.searchBox()) !== null;\n }\n\n /**\n * Type into the pane's filter box, narrowing it to the rows whose label contains\n * the query (case-insensitively).\n *\n * Pass `''` to clear it. No `change` is dispatched — `input` is the event the\n * component listens for, and the one a real keystroke carries; a browser defers\n * `change` on a text field to the commit, so nothing here depends on it. (The\n * keystrokes themselves come with the `keydown` / `keypress` / `keyup` the CDK\n * sends alongside, which this component ignores.)\n */\n async search(query: string): Promise<void> {\n const box = await this.searchBox();\n if (!box) {\n throw new Error(\n `WrTransferPaneHarness.search(): the ${await this.getSide()} pane has no filter box — ` +\n '`searchable` is off on the transfer, and it turns them on for both panes at once.'\n );\n }\n\n // `clear()` dispatches `input` on its own, and `sendKeys('')` throws, so an empty\n // query is the clear and nothing else.\n await box.clear();\n if (query.length > 0) await box.sendKeys(query);\n }\n\n /** What is currently typed in the pane's filter box, or `''`. Throws when there is none. */\n async getSearchValue(): Promise<string> {\n return (await this.searchOrThrow('getSearchValue')).getProperty<string>('value');\n }\n\n /** The filter box's placeholder — `[searchPlaceholder]`, or the i18n fallback. */\n async getSearchPlaceholder(): Promise<string> {\n return (await this.searchOrThrow('getSearchPlaceholder')).getProperty<string>('placeholder');\n }\n\n /**\n * The filter box's accessible name.\n *\n * Composed with the pane heading by the component, and it has to be: both panes\n * carry the same placeholder, so an unnamed pair announces as two identical\n * \"Search\" fields with no way to tell which list either one filters.\n */\n async getSearchLabel(): Promise<string | null> {\n return (await this.searchOrThrow('getSearchLabel')).getAttribute('aria-label');\n }\n\n /**\n * The select-all box's accessible name.\n *\n * It has one of its own — the heading names the LIST, so reusing it here would\n * leave a screen reader announcing two different controls identically.\n */\n async getSelectAllLabel(): Promise<string | null> {\n return (await this.selectAllBox()).getAttribute('aria-label');\n }\n\n /** Whether every row the pane is showing that CAN be staged is staged. */\n async isAllChecked(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether some of the pane's stageable rows are staged and others are not.\n *\n * `indeterminate` is a DOM PROPERTY, not an attribute — reading the attribute\n * would report `null` for a box that is visibly dashed.\n */\n async isPartiallyChecked(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('indeterminate');\n }\n\n /**\n * Whether the select-all box refuses interaction — a disabled transfer, or a pane\n * with nothing stageable in it (empty, filtered to nothing, or showing only\n * disabled rows).\n */\n async isSelectAllDisabled(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('disabled');\n }\n\n /**\n * Click the select-all box once.\n *\n * Its scope is the rows the pane is SHOWING and can stage: a filtered-out row and\n * a disabled row are both outside it. Worth knowing before asserting on a partial\n * pane — the box reads UNchecked while the staging is partial, so one click there\n * stages everything rather than clearing it. {@link uncheckAll} handles that.\n */\n async toggleSelectAll(): Promise<void> {\n if (await this.isSelectAllDisabled()) {\n throw new Error(\n `WrTransferPaneHarness.toggleSelectAll(): the ${await this.getSide()} pane's select-all is disabled, ` +\n 'so the click would change nothing — the transfer is disabled, or this pane shows no row that can be ' +\n 'staged (empty, filtered to nothing, or every row disabled).'\n );\n }\n await (await this.selectAllBox()).click();\n }\n\n /** Stage every row the pane shows that can be staged. A pane already fully staged is left alone. */\n async checkAll(): Promise<void> {\n if (!(await this.isAllChecked())) await this.toggleSelectAll();\n }\n\n /** Clear the pane's staging. */\n async uncheckAll(): Promise<void> {\n if (await this.isAllChecked()) {\n await this.toggleSelectAll();\n return;\n }\n // Two clicks from a partial pane, and there is no shortcut: the box is UNchecked\n // there, so the first click stages the rest and only the second clears the lot.\n if (await this.isPartiallyChecked()) {\n await this.toggleSelectAll();\n await this.toggleSelectAll();\n }\n }\n\n /** The filter box, or a failure naming the input that turns it on. */\n private async searchOrThrow(method: string): Promise<TestElement> {\n const box = await this.searchBox();\n if (!box) {\n throw new Error(\n `WrTransferPaneHarness.${method}(): the ${await this.getSide()} pane has no filter box — ` +\n '`searchable` is off on the transfer.'\n );\n }\n return box;\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate, type TestElement } from '@angular/cdk/testing';\n\nimport type { WrTransferHarnessFilters, WrTransferSide } from './types';\nimport { WrTransferItemHarness } from './wr-transfer-item-harness';\nimport { WrTransferPaneHarness } from './wr-transfer-pane-harness';\n\n/**\n * Test harness for `<wr-transfer>` — the root of a small family, since a dual\n * listbox is three things and not one control: {@link WrTransferPaneHarness} for one\n * pane and {@link WrTransferItemHarness} for one row inside it.\n *\n * **Everything is keyed by SIDE, never duplicated per pane.** The two panes are the\n * same block rendered twice, so a `…Source` / `…Target` method pair for each\n * question would double the surface and let the halves drift; instead\n * {@link getPane} takes the side once and the pane answers, and the two whole-\n * control operations that are inherently directional — the move buttons — take the\n * side they move rows INTO. `moveTo('target')` is the right-facing button in an LTR\n * layout, and stays the correct one under `dir=\"rtl\"`, where \"right\" is not.\n *\n * **The staged ticks are not the value.** `[(value)]` is the RIGHT pane's\n * membership; a tick inside either pane is transient staging that the next move\n * spends and clears. Conflating them is the failure this component invites, so the\n * two are separate questions here: {@link WrTransferPaneHarness.getItemLabels} is\n * what a pane HOLDS (the value, on the right) and\n * {@link WrTransferPaneHarness.getCheckedLabels} is what it has STAGED.\n *\n * Both are scoped to what a pane is showing, which is also the component's own rule\n * for a move: a row staged before a search hid it is no longer counted, no longer\n * ticked, and does not travel.\n *\n * @example\n * ```ts\n * const transfer = await loader.getHarness(WrTransferHarness);\n * const source = await transfer.getPane('source');\n *\n * await (await source.getItem({ label: 'Read' })).check();\n * await transfer.moveTo('target');\n *\n * expect(await (await transfer.getPane('target')).getItemLabels()).toEqual(['Read']);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferHarness extends ComponentHarness {\n static hostSelector = 'wr-transfer';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferHarnessFilters = {}): HarnessPredicate<WrTransferHarness> {\n return new HarnessPredicate(WrTransferHarness, options)\n .addOption('sourceTitle', options.sourceTitle, (harness, title) =>\n HarnessPredicate.stringMatches(harness.paneTitle('source'), title)\n )\n .addOption('targetTitle', options.targetTitle, (harness, title) =>\n HarnessPredicate.stringMatches(harness.paneTitle('target'), title)\n )\n .addOption('itemLabel', options.itemLabel, async (harness, label) => {\n for (const shown of await harness.shownLabels()) {\n if (await HarnessPredicate.stringMatches(shown, label)) return true;\n }\n return false;\n })\n .addOption(\n 'searchable',\n options.searchable,\n async (harness, searchable) => (await harness.isSearchable()) === searchable\n )\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled);\n }\n\n /**\n * One of the two panes — `'source'` is the left one (the rows outside the value),\n * `'target'` the right one (the value).\n *\n * The side is named here and nowhere else; see the class note.\n */\n async getPane(side: WrTransferSide): Promise<WrTransferPaneHarness> {\n return this.locatorFor(WrTransferPaneHarness.with({ side }))();\n }\n\n /**\n * Whether the whole control refuses interaction.\n *\n * From the host modifier, which is the only signal the host itself carries: a\n * `<wr-transfer>` element is not a control and publishes no `aria-disabled` of its\n * own — the state reaches assistive tech through the checkboxes, the buttons and\n * the filter boxes it disables, which is where\n * {@link WrTransferItemHarness.isDisabled} and {@link canMoveTo} read it.\n */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass('wr-transfer--disabled');\n }\n\n /** Whether the panes have filter boxes — `[searchable]` gives both one or neither. */\n async isSearchable(): Promise<boolean> {\n return (await this.host()).hasClass('wr-transfer--searchable');\n }\n\n /**\n * Whether the button that moves rows INTO `side` is offering itself.\n *\n * It is enabled only while the OTHER pane has something staged and showing, so\n * this is also the readable way to assert that staging landed — and that a search\n * which hid a staged row took the move away again.\n *\n * Read from the native `disabled` attribute: these are `button[wr-btn]`, the\n * native shape, where that attribute is the state. (`wr-btn` adds `aria-disabled`\n * only for its custom-element shape, on which `disabled` is inert.)\n */\n async canMoveTo(side: WrTransferSide): Promise<boolean> {\n return (await (await this.moveButton(side)).getAttribute('disabled')) === null;\n }\n\n /**\n * The accessible name of the button that moves rows INTO `side` —\n * `[toTargetLabel]` / `[toSourceLabel]`, or the i18n fallback.\n *\n * Worth pinning: the button's only content is an `aria-hidden` chevron, so this\n * `aria-label` is the entire announcement. Lose it and the pair becomes two\n * unnamed buttons.\n */\n async getMoveLabel(side: WrTransferSide): Promise<string | null> {\n return (await this.moveButton(side)).getAttribute('aria-label');\n }\n\n /**\n * Press the button that moves the staged rows INTO `side`, committing them to the\n * value.\n *\n * Only the rows the other pane is SHOWING as staged travel, and the staging is\n * cleared afterwards — the component's rule, not this harness's.\n *\n * Refuses a disabled button rather than pressing it: a native disabled `<button>`\n * swallows the click before Angular's listener sees it, so the call would resolve\n * having moved nothing at all.\n */\n async moveTo(side: WrTransferSide): Promise<void> {\n if (!(await this.canMoveTo(side))) {\n const from: WrTransferSide = side === 'target' ? 'source' : 'target';\n throw new Error(\n `WrTransferHarness.moveTo('${side}'): the button is disabled, so nothing would move. The ${from} pane ` +\n 'has nothing staged and showing — a row staged before a search hid it no longer counts — or the whole ' +\n 'transfer is disabled.'\n );\n }\n await (await this.moveButton(side)).click();\n }\n\n /**\n * Stage everything the other pane can stage, then move it INTO `side`.\n *\n * \"Everything\" is the pane's own scope: the rows it is SHOWING, disabled ones\n * excluded. A search narrows it, and with a filter typed this moves what is\n * visible rather than the whole pane.\n */\n async moveAllTo(side: WrTransferSide): Promise<void> {\n const from = await this.getPane(side === 'target' ? 'source' : 'target');\n await from.checkAll();\n await this.moveTo(side);\n }\n\n /** The heading of one pane — the `sourceTitle` / `targetTitle` filters run through this. */\n private async paneTitle(side: WrTransferSide): Promise<string> {\n return (await this.getPane(side)).getTitle();\n }\n\n /** Every label rendered in either pane, for the `itemLabel` filter. */\n private async shownLabels(): Promise<string[]> {\n const items = await this.locatorForAll(WrTransferItemHarness)();\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /**\n * The move button for a direction, addressed by its `--to-source` / `--to-target`\n * modifier.\n *\n * Not by DOM order, and that is the point: two identically classed buttons whose\n * only difference was their position would let a template reshuffle silently\n * reverse every `moveTo()` in every consumer's suite, with both directions still\n * green. Not by the `aria-label` either — that string is localizable.\n */\n private async moveButton(side: WrTransferSide): Promise<TestElement> {\n return this.locatorFor(`.wr-transfer__move--to-${side}`)();\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A;EAC7D,OAAO,QAAQ,IAAI,MAAM,KAAI,SAAQ,KAAK,SAAQ,CAAE,CAAC;CACvD;CAWQ,MAAM,WAAW,MAAoB;EAC3C,OAAO,KAAK,WAAW,0BAA0B,MAAM,CAAC,CAAA;CAC1D"}
1
+ {"version":3,"file":"ngwr-transfer-testing.mjs","names":[],"sources":["../../../projects/lib/transfer/testing/wr-transfer-item-harness.ts","../../../projects/lib/transfer/testing/wr-transfer-pane-harness.ts","../../../projects/lib/transfer/testing/wr-transfer-harness.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';\n\nimport type { WrTransferItemHarnessFilters } from './types';\n\n/**\n * Test harness for one row of a `<wr-transfer>` pane.\n *\n * A row is a `<li>` holding a `<wr-checkbox>`, and the checkbox is the thing the\n * user operates — so the state is read from the native `<input type=\"checkbox\">`\n * inside it, and {@link toggle} clicks that. The pane is deliberately NOT a\n * `role=\"listbox\"` of `role=\"option\"` rows (an option may not contain an\n * interactive control, and the axe gate says so), which is why there is no\n * `aria-selected` here to read: the checkbox's own state IS the announcement.\n *\n * **Checked is not the value.** A tick stages the row for the next move and\n * nothing more; which pane the row sits in is what `[(value)]` carries. Staging is\n * spent — and cleared — by the move that commits it.\n *\n * @example\n * ```ts\n * const source = await transfer.getPane('source');\n * await (await source.getItem({ label: 'Read' })).check();\n *\n * await transfer.moveTo('target');\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferItemHarness extends ComponentHarness {\n /**\n * `.wr-transfer__item` is a DATA row and nothing else.\n *\n * An empty pane renders an `<li class=\"wr-transfer__empty\">` for its placeholder,\n * so querying `li` would hand that back as a row with no checkbox to read.\n */\n static hostSelector = '.wr-transfer__item';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferItemHarnessFilters = {}): HarnessPredicate<WrTransferItemHarness> {\n return new HarnessPredicate(WrTransferItemHarness, options)\n .addOption('label', options.label, (harness, label) => HarnessPredicate.stringMatches(harness.getLabel(), label))\n .addOption('checked', options.checked, async (harness, checked) => (await harness.isChecked()) === checked)\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled);\n }\n\n private readonly input = this.locatorFor('input.wr-checkbox__input');\n\n /** The row's label, trimmed — the `WrTransferItem.label` the pane shows and the search matches. */\n async getLabel(): Promise<string> {\n return (await this.locatorFor('.wr-checkbox__text')()).text();\n }\n\n /**\n * Whether the row is STAGED for the next move.\n *\n * Not \"selected\": a row's pane is what the value says, and the tick is transient\n * staging the move spends. `WrTransferPaneHarness.getCheckedLabels()` reads the\n * whole staged set of a pane.\n */\n async isChecked(): Promise<boolean> {\n return (await this.input()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether the row refuses staging.\n *\n * The native input's `disabled` — the state a screen reader is given and the one\n * that decides whether a click does anything. It answers `true` for BOTH reasons a\n * row can be inert: the item's own `disabled` flag, and a disabled transfer, which\n * disables every row. The `wr-transfer__item--disabled` modifier only marks the\n * first of those, so it is the narrower question and not the one that predicts\n * behaviour.\n */\n async isDisabled(): Promise<boolean> {\n return (await this.input()).getProperty<boolean>('disabled');\n }\n\n /**\n * Flip the row's staging.\n *\n * Refuses a disabled row rather than clicking into the void: the component drops\n * the toggle outright, so the click would resolve having changed nothing and the\n * failure would surface as an unexplained empty move two assertions later.\n */\n async toggle(): Promise<void> {\n if (await this.isDisabled()) {\n const label = await this.getLabel();\n throw new Error(\n `WrTransferItemHarness.toggle(): \"${label}\" is disabled and the component refuses to stage it. ` +\n 'Either the item carries `disabled`, or the whole transfer does — check isDisabled() on the transfer too.'\n );\n }\n await (await this.input()).click();\n }\n\n /** Stage the row if it is not already staged. */\n async check(): Promise<void> {\n if (!(await this.isChecked())) await this.toggle();\n }\n\n /** Unstage the row if it is staged. */\n async uncheck(): Promise<void> {\n if (await this.isChecked()) await this.toggle();\n }\n\n /** Move keyboard focus onto the row's checkbox — the row's only tab stop. */\n async focus(): Promise<void> {\n return (await this.input()).focus();\n }\n\n /** Whether the row's checkbox has focus. */\n async isFocused(): Promise<boolean> {\n return (await this.input()).isFocused();\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate, type TestElement } from '@angular/cdk/testing';\n\nimport type { WrTransferItemHarnessFilters, WrTransferPaneHarnessFilters, WrTransferSide } from './types';\nimport { WrTransferItemHarness } from './wr-transfer-item-harness';\n\n/**\n * Test harness for ONE pane of a `<wr-transfer>` — reached with\n * `WrTransferHarness.getPane('source' | 'target')`.\n *\n * The two panes are the same block rendered twice (the component's template\n * iterates them), so they are one harness class keyed by side rather than two sets\n * of `…Source` / `…Target` methods: the side is named once, at `getPane()`, and\n * every question after that is asked of a pane without repeating which one. It also\n * means the symmetry cannot rot — a method that only works on the left is\n * impossible to write here.\n *\n * What a pane SHOWS is the honest scope of everything below. `[items]` minus the\n * value on the left, the value on the right, and then the pane's own filter on top:\n * rows a filter has hidden are not rendered at all, are not counted by the header,\n * and — the component's own rule — are not moved either, however they were staged.\n *\n * @example\n * ```ts\n * const source = await transfer.getPane('source');\n *\n * await source.search('adm');\n * await source.checkAll();\n * expect(await source.getCheckedLabels()).toEqual(['Admin']);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferPaneHarness extends ComponentHarness {\n /**\n * The pane is a plain `<div>` with no role of its own — the heading names the\n * list, and the checkbox in each row carries the semantics — so its BEM class is\n * the only handle, and being `ViewEncapsulation.None` that class is public API.\n */\n static hostSelector = '.wr-transfer__pane';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferPaneHarnessFilters = {}): HarnessPredicate<WrTransferPaneHarness> {\n return new HarnessPredicate(WrTransferPaneHarness, options)\n .addOption('side', options.side, async (harness, side) => (await harness.getSide()) === side)\n .addOption('title', options.title, (harness, title) => HarnessPredicate.stringMatches(harness.getTitle(), title));\n }\n\n private readonly list = this.locatorFor('ul.wr-transfer__list');\n private readonly selectAllBox = this.locatorFor('.wr-transfer__head input.wr-checkbox__input');\n private readonly searchBox = this.locatorForOptional('.wr-transfer__search input');\n\n /**\n * Which side this pane is.\n *\n * From the `--target` modifier rather than from DOM order: order is a layout fact\n * that `dir=\"rtl\"` and any future reflow are free to change, while the modifier is\n * what the component says the pane MEANS.\n */\n async getSide(): Promise<WrTransferSide> {\n return (await (await this.host()).hasClass('wr-transfer__pane--target')) ? 'target' : 'source';\n }\n\n /** The pane's heading — `[sourceTitle]` / `[targetTitle]`, or the i18n fallback. */\n async getTitle(): Promise<string> {\n return (await this.locatorFor('.wr-transfer__title')()).text();\n }\n\n /**\n * The count beside the heading, verbatim — `'1 / 4'` with the built-in copy.\n *\n * Deliberately not parsed into numbers: it is an i18n FORMAT\n * (`transfer.count`) a consuming app can replace wholesale, so a harness that\n * split it on `/` would answer for the default catalog and break on a translated\n * one. Its two numbers are `(await getCheckedLabels()).length` and\n * `(await getItems()).length` — both of which this harness reads from the rendered\n * rows, so a spec can assert the header agrees with them.\n */\n async getCountText(): Promise<string> {\n return (await this.locatorFor('.wr-transfer__count')()).text();\n }\n\n /**\n * The list's accessible name — the `aria-label` on the `<ul>`, which repeats the\n * heading so that a row announced in isolation still says which pane it is in.\n */\n async getListLabel(): Promise<string | null> {\n return (await this.list()).getAttribute('aria-label');\n }\n\n /**\n * The explicit `role` on the pane's list, which is `null` — and that `null` is the\n * ANSWER, not a gap worth fixing.\n *\n * The pane is a plain `<ul>` of checkboxes on purpose. Dressing it as a\n * `role=\"listbox\"` of `role=\"option\"` rows reads better in the abstract but is\n * invalid: an option may not contain an interactive control, and the axe gate\n * rejects it. Pinning this is what keeps that \"improvement\" from looking like a\n * win.\n */\n async getListRole(): Promise<string | null> {\n return (await this.list()).getAttribute('role');\n }\n\n /** The rows the pane is showing, in render order. */\n async getItems(filters: WrTransferItemHarnessFilters = {}): Promise<WrTransferItemHarness[]> {\n return this.locatorForAll(WrTransferItemHarness.with(filters))();\n }\n\n /**\n * The labels the pane is showing, in render order.\n *\n * On the right that is the value, in the order the user built it — not `[items]`\n * order, which the component deliberately does not impose.\n */\n async getItemLabels(): Promise<string[]> {\n const items = await this.getItems();\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /** The first row matching the filters, or a failure that says what the pane is showing. */\n async getItem(filters: WrTransferItemHarnessFilters): Promise<WrTransferItemHarness> {\n const [item] = await this.getItems(filters);\n if (!item) {\n const showing = await this.getItemLabels();\n const side = await this.getSide();\n throw new Error(\n `WrTransferPaneHarness.getItem(): no row matched ${JSON.stringify(filters)} in the ${side} pane, ` +\n `which is showing [${showing.join(', ')}]. A row in the other pane, or one this pane's search has ` +\n 'filtered out, is not here.'\n );\n }\n return item;\n }\n\n /**\n * The labels of the rows STAGED for the next move, in render order.\n *\n * The staged set and the value are different things, and this is the one the pane\n * shows: read from the rendered rows, so a row staged before a search hid it is\n * absent — exactly as the header count and the move itself treat it.\n */\n async getCheckedLabels(): Promise<string[]> {\n const items = await this.getItems({ checked: true });\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /** The placeholder shown in a pane with no rows, or `null` while it has some. */\n async getEmptyText(): Promise<string | null> {\n const empty = await this.locatorForOptional('.wr-transfer__empty')();\n return empty ? empty.text() : null;\n }\n\n /** Whether this pane has a filter box — `[searchable]` puts one above both panes. */\n async hasSearch(): Promise<boolean> {\n return (await this.searchBox()) !== null;\n }\n\n /**\n * Type into the pane's filter box, narrowing it to the rows whose label contains\n * the query (case-insensitively).\n *\n * Pass `''` to clear it. No `change` is dispatched — `input` is the event the\n * component listens for, and the one a real keystroke carries; a browser defers\n * `change` on a text field to the commit, so nothing here depends on it. (The\n * keystrokes themselves come with the `keydown` / `keypress` / `keyup` the CDK\n * sends alongside, which this component ignores.)\n */\n async search(query: string): Promise<void> {\n const box = await this.searchBox();\n if (!box) {\n throw new Error(\n `WrTransferPaneHarness.search(): the ${await this.getSide()} pane has no filter box — ` +\n '`searchable` is off on the transfer, and it turns them on for both panes at once.'\n );\n }\n\n // `clear()` dispatches `input` on its own, and `sendKeys('')` throws, so an empty\n // query is the clear and nothing else.\n await box.clear();\n if (query.length > 0) await box.sendKeys(query);\n }\n\n /** What is currently typed in the pane's filter box, or `''`. Throws when there is none. */\n async getSearchValue(): Promise<string> {\n return (await this.searchOrThrow('getSearchValue')).getProperty<string>('value');\n }\n\n /** The filter box's placeholder — `[searchPlaceholder]`, or the i18n fallback. */\n async getSearchPlaceholder(): Promise<string> {\n return (await this.searchOrThrow('getSearchPlaceholder')).getProperty<string>('placeholder');\n }\n\n /**\n * The filter box's accessible name.\n *\n * Composed with the pane heading by the component, and it has to be: both panes\n * carry the same placeholder, so an unnamed pair announces as two identical\n * \"Search\" fields with no way to tell which list either one filters.\n */\n async getSearchLabel(): Promise<string | null> {\n return (await this.searchOrThrow('getSearchLabel')).getAttribute('aria-label');\n }\n\n /**\n * The select-all box's accessible name.\n *\n * It has one of its own — the heading names the LIST, so reusing it here would\n * leave a screen reader announcing two different controls identically.\n */\n async getSelectAllLabel(): Promise<string | null> {\n return (await this.selectAllBox()).getAttribute('aria-label');\n }\n\n /** Whether every row the pane is showing that CAN be staged is staged. */\n async isAllChecked(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether some of the pane's stageable rows are staged and others are not.\n *\n * `indeterminate` is a DOM PROPERTY, not an attribute — reading the attribute\n * would report `null` for a box that is visibly dashed.\n */\n async isPartiallyChecked(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('indeterminate');\n }\n\n /**\n * Whether the select-all box refuses interaction — a disabled transfer, or a pane\n * with nothing stageable in it (empty, filtered to nothing, or showing only\n * disabled rows).\n */\n async isSelectAllDisabled(): Promise<boolean> {\n return (await this.selectAllBox()).getProperty<boolean>('disabled');\n }\n\n /**\n * Click the select-all box once.\n *\n * Its scope is the rows the pane is SHOWING and can stage: a filtered-out row and\n * a disabled row are both outside it. Worth knowing before asserting on a partial\n * pane — the box reads UNchecked while the staging is partial, so one click there\n * stages everything rather than clearing it. {@link uncheckAll} handles that.\n */\n async toggleSelectAll(): Promise<void> {\n if (await this.isSelectAllDisabled()) {\n throw new Error(\n `WrTransferPaneHarness.toggleSelectAll(): the ${await this.getSide()} pane's select-all is disabled, ` +\n 'so the click would change nothing — the transfer is disabled, or this pane shows no row that can be ' +\n 'staged (empty, filtered to nothing, or every row disabled).'\n );\n }\n await (await this.selectAllBox()).click();\n }\n\n /** Stage every row the pane shows that can be staged. A pane already fully staged is left alone. */\n async checkAll(): Promise<void> {\n if (!(await this.isAllChecked())) await this.toggleSelectAll();\n }\n\n /** Clear the pane's staging. */\n async uncheckAll(): Promise<void> {\n if (await this.isAllChecked()) {\n await this.toggleSelectAll();\n return;\n }\n // Two clicks from a partial pane, and there is no shortcut: the box is UNchecked\n // there, so the first click stages the rest and only the second clears the lot.\n if (await this.isPartiallyChecked()) {\n await this.toggleSelectAll();\n await this.toggleSelectAll();\n }\n }\n\n /** The filter box, or a failure naming the input that turns it on. */\n private async searchOrThrow(method: string): Promise<TestElement> {\n const box = await this.searchBox();\n if (!box) {\n throw new Error(\n `WrTransferPaneHarness.${method}(): the ${await this.getSide()} pane has no filter box — ` +\n '`searchable` is off on the transfer.'\n );\n }\n return box;\n }\n}\n","/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate, type TestElement } from '@angular/cdk/testing';\n\nimport type { WrTransferSize } from 'ngwr/transfer';\n\nimport type { WrTransferHarnessFilters, WrTransferSide } from './types';\nimport { WrTransferItemHarness } from './wr-transfer-item-harness';\nimport { WrTransferPaneHarness } from './wr-transfer-pane-harness';\n\n/**\n * Test harness for `<wr-transfer>` — the root of a small family, since a dual\n * listbox is three things and not one control: {@link WrTransferPaneHarness} for one\n * pane and {@link WrTransferItemHarness} for one row inside it.\n *\n * **Everything is keyed by SIDE, never duplicated per pane.** The two panes are the\n * same block rendered twice, so a `…Source` / `…Target` method pair for each\n * question would double the surface and let the halves drift; instead\n * {@link getPane} takes the side once and the pane answers, and the two whole-\n * control operations that are inherently directional — the move buttons — take the\n * side they move rows INTO. `moveTo('target')` is the right-facing button in an LTR\n * layout, and stays the correct one under `dir=\"rtl\"`, where \"right\" is not.\n *\n * **The staged ticks are not the value.** `[(value)]` is the RIGHT pane's\n * membership; a tick inside either pane is transient staging that the next move\n * spends and clears. Conflating them is the failure this component invites, so the\n * two are separate questions here: {@link WrTransferPaneHarness.getItemLabels} is\n * what a pane HOLDS (the value, on the right) and\n * {@link WrTransferPaneHarness.getCheckedLabels} is what it has STAGED.\n *\n * Both are scoped to what a pane is showing, which is also the component's own rule\n * for a move: a row staged before a search hid it is no longer counted, no longer\n * ticked, and does not travel.\n *\n * @example\n * ```ts\n * const transfer = await loader.getHarness(WrTransferHarness);\n * const source = await transfer.getPane('source');\n *\n * await (await source.getItem({ label: 'Read' })).check();\n * await transfer.moveTo('target');\n *\n * expect(await (await transfer.getPane('target')).getItemLabels()).toEqual(['Read']);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrTransferHarness extends ComponentHarness {\n static hostSelector = 'wr-transfer';\n\n /** Build a predicate that narrows the query — pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrTransferHarnessFilters = {}): HarnessPredicate<WrTransferHarness> {\n return new HarnessPredicate(WrTransferHarness, options)\n .addOption('sourceTitle', options.sourceTitle, (harness, title) =>\n HarnessPredicate.stringMatches(harness.paneTitle('source'), title)\n )\n .addOption('targetTitle', options.targetTitle, (harness, title) =>\n HarnessPredicate.stringMatches(harness.paneTitle('target'), title)\n )\n .addOption('itemLabel', options.itemLabel, async (harness, label) => {\n for (const shown of await harness.shownLabels()) {\n if (await HarnessPredicate.stringMatches(shown, label)) return true;\n }\n return false;\n })\n .addOption(\n 'searchable',\n options.searchable,\n async (harness, searchable) => (await harness.isSearchable()) === searchable\n )\n .addOption('disabled', options.disabled, async (harness, disabled) => (await harness.isDisabled()) === disabled);\n }\n\n /**\n * One of the two panes — `'source'` is the left one (the rows outside the value),\n * `'target'` the right one (the value).\n *\n * The side is named here and nowhere else; see the class note.\n */\n async getPane(side: WrTransferSide): Promise<WrTransferPaneHarness> {\n return this.locatorFor(WrTransferPaneHarness.with({ side }))();\n }\n\n /** The control size. `'md'` is the default and paints no modifier of its own. */\n async getSize(): Promise<WrTransferSize> {\n const host = await this.host();\n if (await host.hasClass('wr-transfer--sm')) return 'sm';\n if (await host.hasClass('wr-transfer--lg')) return 'lg';\n return 'md';\n }\n\n /**\n * Whether the whole control refuses interaction.\n *\n * From the host modifier, which is the only signal the host itself carries: a\n * `<wr-transfer>` element is not a control and publishes no `aria-disabled` of its\n * own — the state reaches assistive tech through the checkboxes, the buttons and\n * the filter boxes it disables, which is where\n * {@link WrTransferItemHarness.isDisabled} and {@link canMoveTo} read it.\n */\n async isDisabled(): Promise<boolean> {\n return (await this.host()).hasClass('wr-transfer--disabled');\n }\n\n /** Whether the panes have filter boxes — `[searchable]` gives both one or neither. */\n async isSearchable(): Promise<boolean> {\n return (await this.host()).hasClass('wr-transfer--searchable');\n }\n\n /**\n * Whether the button that moves rows INTO `side` is offering itself.\n *\n * It is enabled only while the OTHER pane has something staged and showing, so\n * this is also the readable way to assert that staging landed — and that a search\n * which hid a staged row took the move away again.\n *\n * Read from the native `disabled` attribute: these are `button[wr-btn]`, the\n * native shape, where that attribute is the state. (`wr-btn` adds `aria-disabled`\n * only for its custom-element shape, on which `disabled` is inert.)\n */\n async canMoveTo(side: WrTransferSide): Promise<boolean> {\n return (await (await this.moveButton(side)).getAttribute('disabled')) === null;\n }\n\n /**\n * The accessible name of the button that moves rows INTO `side` —\n * `[toTargetLabel]` / `[toSourceLabel]`, or the i18n fallback.\n *\n * Worth pinning: the button's only content is an `aria-hidden` chevron, so this\n * `aria-label` is the entire announcement. Lose it and the pair becomes two\n * unnamed buttons.\n */\n async getMoveLabel(side: WrTransferSide): Promise<string | null> {\n return (await this.moveButton(side)).getAttribute('aria-label');\n }\n\n /**\n * Press the button that moves the staged rows INTO `side`, committing them to the\n * value.\n *\n * Only the rows the other pane is SHOWING as staged travel, and the staging is\n * cleared afterwards — the component's rule, not this harness's.\n *\n * Refuses a disabled button rather than pressing it: a native disabled `<button>`\n * swallows the click before Angular's listener sees it, so the call would resolve\n * having moved nothing at all.\n */\n async moveTo(side: WrTransferSide): Promise<void> {\n if (!(await this.canMoveTo(side))) {\n const from: WrTransferSide = side === 'target' ? 'source' : 'target';\n throw new Error(\n `WrTransferHarness.moveTo('${side}'): the button is disabled, so nothing would move. The ${from} pane ` +\n 'has nothing staged and showing — a row staged before a search hid it no longer counts — or the whole ' +\n 'transfer is disabled.'\n );\n }\n await (await this.moveButton(side)).click();\n }\n\n /**\n * Stage everything the other pane can stage, then move it INTO `side`.\n *\n * \"Everything\" is the pane's own scope: the rows it is SHOWING, disabled ones\n * excluded. A search narrows it, and with a filter typed this moves what is\n * visible rather than the whole pane.\n */\n async moveAllTo(side: WrTransferSide): Promise<void> {\n const from = await this.getPane(side === 'target' ? 'source' : 'target');\n await from.checkAll();\n await this.moveTo(side);\n }\n\n /** The heading of one pane — the `sourceTitle` / `targetTitle` filters run through this. */\n private async paneTitle(side: WrTransferSide): Promise<string> {\n return (await this.getPane(side)).getTitle();\n }\n\n /** Every label rendered in either pane, for the `itemLabel` filter. */\n private async shownLabels(): Promise<string[]> {\n const items = await this.locatorForAll(WrTransferItemHarness)();\n return Promise.all(items.map(item => item.getLabel()));\n }\n\n /**\n * The move button for a direction, addressed by its `--to-source` / `--to-target`\n * modifier.\n *\n * Not by DOM order, and that is the point: two identically classed buttons whose\n * only difference was their position would let a template reshuffle silently\n * reverse every `moveTo()` in every consumer's suite, with both directions still\n * green. Not by the `aria-label` either — that string is localizable.\n */\n private async moveButton(side: WrTransferSide): Promise<TestElement> {\n return this.locatorFor(`.wr-transfer__move--to-${side}`)();\n }\n}\n"],"mappings":";;;;;;;AAmCA,IAAa,wBAAb,MAAa,8BAA8B,iBAAgB;CAOzD,OAAO,eAAe;CAGtB,OAAO,KAAK,UAAwC,CAAA,GAAE;EACpD,OAAO,IAAI,iBAAiB,uBAAuB,OAAO,CAAC,CACxD,UAAU,SAAS,QAAQ,QAAQ,SAAS,UAAU,iBAAiB,cAAc,QAAQ,SAAQ,GAAI,KAAK,CAAC,CAAC,CAChH,UAAU,WAAW,QAAQ,SAAS,OAAO,SAAS,YAAa,MAAM,QAAQ,UAAS,MAAQ,OAAO,CAAC,CAC1G,UAAU,YAAY,QAAQ,UAAU,OAAO,SAAS,aAAc,MAAM,QAAQ,WAAU,MAAQ,QAAQ;CACnH;CAEiB,QAAQ,KAAK,WAAW,0BAA0B;CAGnE,MAAM,WAAQ;EACZ,QAAQ,MAAM,KAAK,WAAW,oBAAoB,CAAC,CAAA,EAAA,CAAI,KAAI;CAC7D;CASA,MAAM,YAAS;EACb,QAAQ,MAAM,KAAK,MAAK,EAAA,CAAI,YAAqB,SAAS;CAC5D;CAYA,MAAM,aAAU;EACd,QAAQ,MAAM,KAAK,MAAK,EAAA,CAAI,YAAqB,UAAU;CAC7D;CASA,MAAM,SAAM;EACV,IAAI,MAAM,KAAK,WAAU,GAAI;GAC3B,MAAM,QAAQ,MAAM,KAAK,SAAQ;GACjC,MAAM,IAAI,MACR,oCAAoC,MAAK,gKACmE;EAEhH;EACA,OAAO,MAAM,KAAK,MAAK,EAAA,CAAI,MAAK;CAClC;CAGA,MAAM,QAAK;EACT,IAAI,CAAE,MAAM,KAAK,UAAS,GAAK,MAAM,KAAK,OAAM;CAClD;CAGA,MAAM,UAAO;EACX,IAAI,MAAM,KAAK,UAAS,GAAI,MAAM,KAAK,OAAM;CAC/C;CAGA,MAAM,QAAK;EACT,QAAQ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AElC,OAAM,MADa,KAAK,QAAQ,SAAS,WAAW,WAAW,QAAQ,EACjE,CAAK,SAAQ;EACnB,MAAM,KAAK,OAAO,IAAI;CACxB;CAGQ,MAAM,UAAU,MAAoB;EAC1C,QAAQ,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAQ;CAC5C;CAGQ,MAAM,cAAW;EACvB,MAAM,QAAQ,MAAM,KAAK,cAAc,qBAAqB,CAAC,CAAA;EAC7D,OAAO,QAAQ,IAAI,MAAM,KAAI,SAAQ,KAAK,SAAQ,CAAE,CAAC;CACvD;CAWQ,MAAM,WAAW,MAAoB;EAC3C,OAAO,KAAK,WAAW,0BAA0B,MAAM,CAAC,CAAA;CAC1D"}
@@ -32,6 +32,8 @@ var WrTransfer = class WrTransfer {
32
32
  fieldAria = useFormFieldAria({ skipSelf: true });
33
33
  ownLabelledBy = inject(new HostAttributeToken("aria-labelledby"), { optional: true });
34
34
  labelledBy = computed(() => this.ownLabelledBy ?? this.fieldAria.labelledBy(), ...ngDevMode ? [{ debugName: "labelledBy" }] : /* istanbul ignore next */ []);
35
+ size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
36
+ controlSize = computed(() => this.size() === "lg" ? "md" : "sm", ...ngDevMode ? [{ debugName: "controlSize" }] : /* istanbul ignore next */ []);
35
37
  searchable = input(false, {
36
38
  ...ngDevMode ? { debugName: "searchable" } : /* istanbul ignore next */ {},
37
39
  transform: coerceBooleanProperty
@@ -88,6 +90,8 @@ var WrTransfer = class WrTransfer {
88
90
  canMoveLeft = computed(() => !this.disabled() && !this.readonly() && this.target().checkedCount > 0, ...ngDevMode ? [{ debugName: "canMoveLeft" }] : /* istanbul ignore next */ []);
89
91
  classes = computed(() => {
90
92
  const parts = [];
93
+ const size = this.size();
94
+ if (size !== "md") parts.push(`wr-transfer--${size}`);
91
95
  if (this.disabled()) parts.push("wr-transfer--disabled");
92
96
  else if (this.readonly()) parts.push("wr-transfer--readonly");
93
97
  if (this.searchable()) parts.push("wr-transfer--searchable");
@@ -170,7 +174,7 @@ var WrTransfer = class WrTransfer {
170
174
  }
171
175
  static ɵfac = i0.ɵɵngDeclareFactory({
172
176
  minVersion: "12.0.0",
173
- version: "22.2.5",
177
+ version: "22.2.6",
174
178
  ngImport: i0,
175
179
  type: WrTransfer,
176
180
  deps: [],
@@ -178,7 +182,7 @@ var WrTransfer = class WrTransfer {
178
182
  });
179
183
  static ɵcmp = i0.ɵɵngDeclareComponent({
180
184
  minVersion: "17.0.0",
181
- version: "22.2.5",
185
+ version: "22.2.6",
182
186
  type: WrTransfer,
183
187
  isStandalone: true,
184
188
  selector: "wr-transfer",
@@ -211,6 +215,13 @@ var WrTransfer = class WrTransfer {
211
215
  isRequired: false,
212
216
  transformFunction: null
213
217
  },
218
+ size: {
219
+ classPropertyName: "size",
220
+ publicName: "size",
221
+ isSignal: true,
222
+ isRequired: false,
223
+ transformFunction: null
224
+ },
214
225
  searchable: {
215
226
  classPropertyName: "searchable",
216
227
  publicName: "searchable",
@@ -287,7 +298,7 @@ var WrTransfer = class WrTransfer {
287
298
  useValue: null
288
299
  }],
289
300
  ngImport: i0,
290
- template: "<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n size=\"sm\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n",
301
+ template: "<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n [size]=\"controlSize()\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n",
291
302
  dependencies: [
292
303
  {
293
304
  kind: "component",
@@ -336,7 +347,7 @@ var WrTransfer = class WrTransfer {
336
347
  };
337
348
  i0.ɵɵngDeclareClassMetadata({
338
349
  minVersion: "12.0.0",
339
- version: "22.2.5",
350
+ version: "22.2.6",
340
351
  ngImport: i0,
341
352
  type: WrTransfer,
342
353
  decorators: [{
@@ -361,7 +372,7 @@ i0.ɵɵngDeclareClassMetadata({
361
372
  WrCheckbox,
362
373
  WrInput
363
374
  ],
364
- template: "<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n size=\"sm\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n"
375
+ template: "<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n [size]=\"controlSize()\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n"
365
376
  }]
366
377
  }],
367
378
  ctorParameters: () => [],
@@ -405,6 +416,14 @@ i0.ɵɵngDeclareClassMetadata({
405
416
  required: false
406
417
  }]
407
418
  }],
419
+ size: [{
420
+ type: i0.Input,
421
+ args: [{
422
+ isSignal: true,
423
+ alias: "size",
424
+ required: false
425
+ }]
426
+ }],
408
427
  searchable: [{
409
428
  type: i0.Input,
410
429
  args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-transfer.mjs","names":[],"sources":["../../../projects/lib/transfer/transfer.ts","../../../projects/lib/transfer/transfer.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n HostAttributeToken,\n ElementRef,\n Injector,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport { WrButton } from 'ngwr/button';\nimport { WrCheckbox } from 'ngwr/checkbox';\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { useI18nFormatter, useI18nText } from 'ngwr/i18n';\nimport { WrInput } from 'ngwr/input';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrTransferItem } from './types';\n\n/** A pane's rows plus the header state derived from them. */\ninterface PaneState {\n readonly rows: readonly WrTransferItem[];\n /**\n * The staged values this pane is actually SHOWING — visible and enabled. The\n * staging signals can hold more than that (a filter change hides rows without\n * unstaging them), and every consumer of the staged set has to agree on which\n * one it means: the count, the header checkbox and the move all read this.\n */\n readonly checked: readonly unknown[];\n readonly checkedCount: number;\n readonly enabledCount: number;\n readonly allChecked: boolean;\n readonly someChecked: boolean;\n}\n\n/**\n * Dual-listbox picker: two panes and the buttons that move rows between them.\n *\n * The full item set is `[items]` and the RIGHT pane is the value — `[(value)]`\n * holds the chosen `WrTransferItem['value']`s, everything else stays left. The\n * checked state inside each pane is transient staging, deliberately not part of\n * the value: what a form cares about is which rows ended up on the right.\n *\n * A signal-forms native control (`FormValueControl<readonly unknown[]>`), so\n * `[formField]` binds straight to `value`; `[(ngModel)]` and reactive forms keep\n * working through Angular's bridge, and `[(value)]` is the standalone shape.\n *\n * @example\n * ```html\n * <!-- Standalone -->\n * <wr-transfer [items]=\"permissions\" [(value)]=\"granted\" />\n *\n * <!-- Searchable, with pane titles -->\n * <wr-transfer\n * searchable\n * sourceTitle=\"Available\"\n * targetTitle=\"Granted\"\n * [items]=\"permissions\"\n * [formField]=\"form.granted\"\n * />\n * ```\n *\n * @see https://ngwr.dev/reference/components/transfer\n */\n@Component({\n selector: 'wr-transfer',\n templateUrl: './transfer.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-transfer',\n '[class]': 'classes()',\n // `role=\"group\"` so the error state below has somewhere legible to live: the\n // control is a composite with no single element carrying its semantics, and\n // `aria-invalid` on a bare `generic` host is announced by nothing.\n role: 'group',\n // See `wr-checkbox-group`: not labelable, so the field's label named\n // nothing and the composite announced only its inner parts.\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-invalid]': 'fieldAria.ariaInvalid()',\n '[attr.aria-describedby]': 'fieldAria.describedBy()',\n },\n // The transfer is the control a `<wr-form-field>` wraps; the checkboxes and\n // the search inputs in its own template are parts, not controls. Without this\n // shield each of them found the field's token and announced the one error as\n // its own — which is why `fieldAria` below reads the field with `skipSelf`.\n providers: [{ provide: WR_FORM_FIELD, useValue: null }],\n imports: [WrButton, WrCheckbox, WrInput],\n})\nexport class WrTransfer implements FormValueControl<readonly unknown[]> {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('transfer');\n if (typeof ngDevMode === 'undefined' || ngDevMode) effect(() => this.warnAboutOrphans(this.orphans()));\n }\n\n /** Every row, in either pane. Membership of the right pane is `value`. */\n readonly items = input<readonly WrTransferItem[]>([]);\n\n /**\n * Values currently in the RIGHT pane. Two-way bindable; bound automatically\n * by `[formField]` / `[(ngModel)]`.\n */\n readonly value = model<readonly unknown[]>([]);\n\n /** Emitted on blur / commit so a bound field marks itself touched. */\n readonly touch = output<void>();\n\n /** Disable the whole control. @default false */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Refuse changes to the value while both panes stay focusable and readable.\n * Bound automatically from the field's readonly state when used with\n * `[formField]`.\n *\n * The move buttons go inert and the row checkboxes go read-only; SEARCH keeps\n * working, because filtering a pane changes what is shown and not what is\n * chosen. No `aria-readonly` on the host: role `group` does not support the\n * state, so each row's checkbox mirrors its own instead.\n *\n * @default false\n */\n readonly readonly = input(false, { transform: coerceBooleanProperty });\n\n /** The surrounding `<wr-form-field>`'s error state. @internal */\n protected readonly fieldAria = useFormFieldAria({ skipSelf: true });\n /**\n * The author's own `aria-labelledby`, read as a static host attribute.\n *\n * A host binding WRITES the attribute, so binding the field's label\n * unconditionally would REMOVE a reference the consumer put there by hand:\n * `<wr-segmented aria-labelledby=\"range-question\">` went nameless the moment\n * the field's label was `null`, which a harness spec caught one commit after\n * it was introduced. `HostAttributeToken` reads it at construction without\n * touching the DOM, so this stays SSR-safe, and the author's own reference\n * wins — the same precedence `[ariaLabel]` has everywhere else.\n */\n private readonly ownLabelledBy = inject(new HostAttributeToken('aria-labelledby'), { optional: true });\n\n /** The surrounding field's label, unless the author named the control. */\n protected readonly labelledBy = computed(() => this.ownLabelledBy ?? this.fieldAria.labelledBy());\n\n /** Show a filter box above each pane. @default false */\n readonly searchable = input(false, { transform: coerceBooleanProperty });\n\n /** Heading above the left pane. Falls back to `transfer.source`. */\n readonly sourceTitle = input<string | null>(null);\n\n /** Heading above the right pane. Falls back to `transfer.target`. */\n readonly targetTitle = input<string | null>(null);\n\n /** Placeholder in both filter boxes. Falls back to `transfer.search`. */\n readonly searchPlaceholder = input<string | null>(null);\n\n /** Shown in a pane with no rows. Falls back to `transfer.empty`. */\n readonly emptyText = input<string | null>(null);\n\n /**\n * Accessible name of each pane's select-all checkbox, composed with the pane\n * heading. Falls back to `transfer.selectAll`.\n */\n readonly selectAllLabel = input<string | null>(null);\n\n /** Accessible name of the move-right button. Falls back to `transfer.toTarget`. */\n readonly toTargetLabel = input<string | null>(null);\n\n /** Accessible name of the move-left button. Falls back to `transfer.toSource`. */\n readonly toSourceLabel = input<string | null>(null);\n\n protected readonly resolvedSourceTitle = useI18nText(this.sourceTitle, 'transfer.source', 'Available');\n protected readonly resolvedTargetTitle = useI18nText(this.targetTitle, 'transfer.target', 'Selected');\n protected readonly resolvedSearch = useI18nText(this.searchPlaceholder, 'transfer.search', 'Search');\n protected readonly resolvedEmpty = useI18nText(this.emptyText, 'transfer.empty', 'Nothing here');\n protected readonly resolvedSelectAll = useI18nText(this.selectAllLabel, 'transfer.selectAll', 'Select all');\n\n /**\n * The select-all checkbox's accessible name, composed IN THE CATALOG.\n *\n * It used to be a template literal — `` `${title} — ${selectAll}` `` — which\n * froze both the separator and the operand order into English. A translator\n * could change each half and not the sentence they make, which is the exact\n * defect the calendar and event-calendar catalogs were rewritten to remove.\n * The key ships as `{{pane}} — {{action}}` in every locale, so nothing reads\n * differently today and every locale can now reorder it without a code change.\n */\n protected readonly selectAllAria = useI18nFormatter('transfer.selectAllAria', '{{pane}} — {{action}}');\n protected readonly resolvedToTarget = useI18nText(this.toTargetLabel, 'transfer.toTarget', 'Move to selected');\n protected readonly resolvedToSource = useI18nText(this.toSourceLabel, 'transfer.toSource', 'Move to available');\n\n /** `{{checked}} / {{total}}` under each heading. @internal */\n protected readonly countLabel = useI18nFormatter('transfer.count', '{{checked}} / {{total}}');\n\n /** Pane order — the template iterates it so both panes share one block. */\n protected readonly panes = ['source', 'target'] as const;\n\n private readonly sourceQuery = signal('');\n private readonly targetQuery = signal('');\n\n /** Staged rows, per pane. Cleared as soon as a move commits them. */\n private readonly sourceChecked = signal<readonly unknown[]>([]);\n private readonly targetChecked = signal<readonly unknown[]>([]);\n\n // The value as a guaranteed array — a classic-forms binding can write null even\n // though the type is `readonly unknown[]`, so normalise every read. Same hazard\n // `wr-checkbox-group` guards; here an unguarded `.map` threw outright.\n private readonly selected = computed<readonly unknown[]>(() => {\n const v = this.value();\n return Array.isArray(v) ? v : [];\n });\n\n private readonly valueSet = computed(() => new Set(this.selected()));\n\n protected readonly source = computed<PaneState>(() =>\n this.pane(\n this.items().filter(item => !this.valueSet().has(item.value)),\n this.sourceQuery(),\n this.sourceChecked()\n )\n );\n\n /** The first item per value, which is the one a scan of `items` would find. */\n private readonly itemByValue = computed(() => {\n const map = new Map<unknown, WrTransferItem>();\n for (const item of this.items()) if (!map.has(item.value)) map.set(item.value, item);\n return map;\n });\n\n // Right-pane order follows `value`, not `items`: the order a user built is\n // the one they expect to read back. Resolved apart from `target`, so a\n // keystroke in the filter or a ticked row does not walk the value again.\n private readonly targetRows = computed<readonly WrTransferItem[]>(() => {\n const byValue = this.itemByValue();\n return this.selected()\n .map(v => byValue.get(v))\n .filter((item): item is WrTransferItem => item !== undefined);\n });\n\n protected readonly target = computed<PaneState>(() =>\n this.pane(this.targetRows(), this.targetQuery(), this.targetChecked())\n );\n\n /** Values no item matches. Equal by content, so its reader runs once per distinct set. */\n private readonly orphans = computed<readonly unknown[]>(\n () => {\n const byValue = this.itemByValue();\n return this.selected().filter(v => !byValue.has(v));\n },\n { equal: (a, b) => a.length === b.length && a.every((v, i) => Object.is(v, b[i])) }\n );\n\n /**\n * Say something when `value` holds a value no `items` entry matches.\n *\n * Such a value is in NEITHER pane — the left one filters out anything already\n * selected and the right one can only render rows it found — and the header\n * counts the rows it shows, so nothing on screen contradicts anything. The\n * result is a value the user can neither see nor remove, and no sign that it\n * is there.\n *\n * A warning rather than an invented row, which matches how the library treats\n * the same question elsewhere: `wr-select` renders a value outside its option\n * list only under an explicit `freeText`, so an unmatched value is a mode a\n * consumer opts into, not a shape a component guesses at. It also stays quiet\n * about the common transient case — `items` arriving after `value` — because\n * the message names the values and a developer can see them settle.\n */\n private warnAboutOrphans(orphans: readonly unknown[]): void {\n if (orphans.length === 0) return;\n\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n `[NGWR] <wr-transfer>: ${orphans.length} value(s) in \\`value\\` match no \\`items\\` entry ` +\n `and are rendered in neither pane, so a user can neither see nor remove them: ` +\n `${orphans.map(v => JSON.stringify(v)).join(', ')}. ` +\n `If \\`items\\` loads after \\`value\\`, this settles on its own.`\n );\n }\n\n protected readonly canMoveRight = computed(\n () => !this.disabled() && !this.readonly() && this.source().checkedCount > 0\n );\n protected readonly canMoveLeft = computed(\n () => !this.disabled() && !this.readonly() && this.target().checkedCount > 0\n );\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n if (this.disabled()) parts.push('wr-transfer--disabled');\n else if (this.readonly()) parts.push('wr-transfer--readonly');\n if (this.searchable()) parts.push('wr-transfer--searchable');\n return parts.join(' ');\n });\n\n protected isChecked(pane: 'source' | 'target', item: WrTransferItem): boolean {\n return (pane === 'source' ? this.sourceChecked() : this.targetChecked()).includes(item.value);\n }\n\n protected toggle(pane: 'source' | 'target', item: WrTransferItem, checked: boolean): void {\n if (item.disabled || this.readonly()) return;\n const box = pane === 'source' ? this.sourceChecked : this.targetChecked;\n const current = box();\n if (checked) {\n box.set([...current, item.value]);\n return;\n }\n // A `Set` compares with SameValueZero, which is what `WrTransferItem['value']`\n // is documented to use and what `isChecked`'s `includes` already does. A `!==`\n // filter cannot remove `NaN` from its own list, so such a row drew itself\n // unchecked while staying staged.\n const next = new Set(current);\n next.delete(item.value);\n box.set([...next]);\n }\n\n /**\n * Header checkbox — stages or clears every enabled row the filter shows, and\n * only those. Staging outlives a filter change, so a row the filter hides keeps\n * whatever state it had: setting the whole box here unstaged hidden rows on a\n * clear and dropped them on a select, which the pane only revealed once the\n * search was emptied.\n */\n protected toggleAll(pane: 'source' | 'target', checked: boolean): void {\n if (this.readonly()) return;\n const state = pane === 'source' ? this.source() : this.target();\n const box = pane === 'source' ? this.sourceChecked : this.targetChecked;\n const next = new Set(box());\n for (const item of state.rows) {\n if (item.disabled) continue;\n if (checked) next.add(item.value);\n else next.delete(item.value);\n }\n box.set([...next]);\n }\n\n protected onSearch(pane: 'source' | 'target', event: Event): void {\n const query = (event.target as HTMLInputElement | null)?.value ?? '';\n (pane === 'source' ? this.sourceQuery : this.targetQuery).set(query);\n }\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n /**\n * Focus the transfer — what Signal Forms calls to focus this control. The\n * host is a `group` with no tab stop of its own, so focus goes to the left\n * pane's filter when the panes are searchable, otherwise to the first row that\n * can still be ticked — on the right, once nothing on the left can be.\n *\n * The pane's select-all box comes first in the tab order and is passed over\n * on purpose: it acts on every row at once, and a form pointing at the field\n * is asking for a choice. A disabled transfer has nothing left to focus.\n */\n focus(options?: FocusOptions): void {\n this.host.nativeElement\n .querySelector<HTMLInputElement>(\n '.wr-transfer__search input:not([disabled]), .wr-transfer__item input:not([disabled])'\n )\n ?.focus(options);\n }\n\n /**\n * Keep focus in the widget after a move.\n *\n * A move empties the pane's staging set, which is exactly what disables the\n * button that was just pressed — so the element holding DOM focus went\n * `disabled` as a RESULT of its own activation and the browser dropped focus\n * to `<body>`. From there the next Tab restarts at the top of the document,\n * which for a keyboard user is being thrown out of a control they were in the\n * middle of using.\n *\n * The landing is the FIRST ROW OF THE PANE THE ROWS ARRIVED IN, and the\n * obvious alternative does not work: after a move BOTH buttons are disabled,\n * because each needs something ticked and the move cleared the tick on one\n * side and arrived unticked on the other. The rows that just moved are where\n * the user's attention is and where the next action lives, so that is where\n * focus goes.\n *\n * `afterNextRender`, not `queueMicrotask`: under zoneless CD the microtask\n * runs before the moved rows are in the DOM, so the focus call would land on\n * the pane as it was before the move.\n */\n private restoreFocusAfterMove(landing: 'source' | 'target'): void {\n afterNextRender(\n () => {\n const root = this.host.nativeElement;\n const pane =\n landing === 'target'\n ? root.querySelector<HTMLElement>('.wr-transfer__pane--target')\n : root.querySelector<HTMLElement>('.wr-transfer__pane:not(.wr-transfer__pane--target)');\n const row = pane?.querySelector<HTMLInputElement>('.wr-transfer__item input:not([disabled])');\n row?.focus();\n },\n { injector: this.injector }\n );\n }\n\n protected moveRight(): void {\n if (this.disabled() || this.readonly()) return;\n // `source().checked`, not the raw staging box: rows a filter change hid are\n // neither counted nor ticked any more, so moving them would transfer rows the\n // pane never showed as chosen — and, since staging outlives an external write\n // to `value`, could land the same value on the right twice.\n const moving = this.source().checked;\n if (moving.length === 0) return;\n this.value.set([...this.selected(), ...moving]);\n this.sourceChecked.set([]);\n this.touch.emit();\n this.restoreFocusAfterMove('target');\n }\n\n protected moveLeft(): void {\n if (this.disabled() || this.readonly()) return;\n const moving = new Set(this.target().checked);\n if (moving.size === 0) return;\n this.value.set(this.selected().filter(v => !moving.has(v)));\n this.targetChecked.set([]);\n this.touch.emit();\n this.restoreFocusAfterMove('source');\n }\n\n /** Filter, then derive the header state from what survived. */\n private pane(rows: readonly WrTransferItem[], query: string, checked: readonly unknown[]): PaneState {\n const q = query.trim().toLowerCase();\n const visible = q ? rows.filter(item => item.label.toLowerCase().includes(q)) : rows;\n const enabled = visible.filter(item => !item.disabled);\n const staged = new Set(checked);\n const shown = enabled.filter(item => staged.has(item.value)).map(item => item.value);\n return {\n rows: visible,\n checked: shown,\n checkedCount: shown.length,\n enabledCount: enabled.length,\n allChecked: enabled.length > 0 && shown.length === enabled.length,\n someChecked: shown.length > 0 && shown.length < enabled.length,\n };\n }\n}\n","<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n size=\"sm\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n size=\"sm\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n size=\"sm\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuGA,IAAa,aAAb,MAAa,WAAU;CACrB,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,UAAU;EAC3E,IAAI,OAAO,cAAc,eAAe,WAAW,aAAa,KAAK,iBAAiB,KAAK,QAAO,CAAE,CAAC;CACvG;CAGS,QAAQ,MAAiC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAM5C,QAAQ,MAA0B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAGrC,QAAQ,OAAM;CAGd,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAc1D,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAGhD,YAAY,iBAAiB,EAAE,UAAU,KAAI,CAAE;CAYjD,gBAAgB,OAAO,IAAI,mBAAmB,iBAAiB,GAAG,EAAE,UAAU,KAAI,CAAE;CAGlF,aAAa,eAAe,KAAK,iBAAiB,KAAK,UAAU,WAAU,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAGxF,aAAa,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,aAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAG5D,cAAc,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAA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transfer.html"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n Component,\n HostAttributeToken,\n ElementRef,\n Injector,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n} from '@angular/core';\nimport type { FormValueControl } from '@angular/forms/signals';\n\nimport { WrButton } from 'ngwr/button';\nimport { WrCheckbox } from 'ngwr/checkbox';\nimport { WR_FORM_FIELD, useFormFieldAria } from 'ngwr/form';\nimport { useI18nFormatter, useI18nText } from 'ngwr/i18n';\nimport { WrInput } from 'ngwr/input';\nimport { wrCheckStyles } from 'ngwr/utils';\n\nimport type { WrTransferItem, WrTransferSize } from './types';\n\n/** A pane's rows plus the header state derived from them. */\ninterface PaneState {\n readonly rows: readonly WrTransferItem[];\n /**\n * The staged values this pane is actually SHOWING — visible and enabled. The\n * staging signals can hold more than that (a filter change hides rows without\n * unstaging them), and every consumer of the staged set has to agree on which\n * one it means: the count, the header checkbox and the move all read this.\n */\n readonly checked: readonly unknown[];\n readonly checkedCount: number;\n readonly enabledCount: number;\n readonly allChecked: boolean;\n readonly someChecked: boolean;\n}\n\n/**\n * Dual-listbox picker: two panes and the buttons that move rows between them.\n *\n * The full item set is `[items]` and the RIGHT pane is the value — `[(value)]`\n * holds the chosen `WrTransferItem['value']`s, everything else stays left. The\n * checked state inside each pane is transient staging, deliberately not part of\n * the value: what a form cares about is which rows ended up on the right.\n *\n * A signal-forms native control (`FormValueControl<readonly unknown[]>`), so\n * `[formField]` binds straight to `value`; `[(ngModel)]` and reactive forms keep\n * working through Angular's bridge, and `[(value)]` is the standalone shape.\n *\n * @example\n * ```html\n * <!-- Standalone -->\n * <wr-transfer [items]=\"permissions\" [(value)]=\"granted\" />\n *\n * <!-- Searchable, with pane titles -->\n * <wr-transfer\n * searchable\n * sourceTitle=\"Available\"\n * targetTitle=\"Granted\"\n * [items]=\"permissions\"\n * [formField]=\"form.granted\"\n * />\n * ```\n *\n * @see https://ngwr.dev/reference/components/transfer\n */\n@Component({\n selector: 'wr-transfer',\n templateUrl: './transfer.html',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'wr-transfer',\n '[class]': 'classes()',\n // `role=\"group\"` so the error state below has somewhere legible to live: the\n // control is a composite with no single element carrying its semantics, and\n // `aria-invalid` on a bare `generic` host is announced by nothing.\n role: 'group',\n // See `wr-checkbox-group`: not labelable, so the field's label named\n // nothing and the composite announced only its inner parts.\n '[attr.aria-labelledby]': 'labelledBy()',\n '[attr.aria-invalid]': 'fieldAria.ariaInvalid()',\n '[attr.aria-describedby]': 'fieldAria.describedBy()',\n },\n // The transfer is the control a `<wr-form-field>` wraps; the checkboxes and\n // the search inputs in its own template are parts, not controls. Without this\n // shield each of them found the field's token and announced the one error as\n // its own — which is why `fieldAria` below reads the field with `skipSelf`.\n providers: [{ provide: WR_FORM_FIELD, useValue: null }],\n imports: [WrButton, WrCheckbox, WrInput],\n})\nexport class WrTransfer implements FormValueControl<readonly unknown[]> {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('transfer');\n if (typeof ngDevMode === 'undefined' || ngDevMode) effect(() => this.warnAboutOrphans(this.orphans()));\n }\n\n /** Every row, in either pane. Membership of the right pane is `value`. */\n readonly items = input<readonly WrTransferItem[]>([]);\n\n /**\n * Values currently in the RIGHT pane. Two-way bindable; bound automatically\n * by `[formField]` / `[(ngModel)]`.\n */\n readonly value = model<readonly unknown[]>([]);\n\n /** Emitted on blur / commit so a bound field marks itself touched. */\n readonly touch = output<void>();\n\n /** Disable the whole control. @default false */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /**\n * Refuse changes to the value while both panes stay focusable and readable.\n * Bound automatically from the field's readonly state when used with\n * `[formField]`.\n *\n * The move buttons go inert and the row checkboxes go read-only; SEARCH keeps\n * working, because filtering a pane changes what is shown and not what is\n * chosen. No `aria-readonly` on the host: role `group` does not support the\n * state, so each row's checkbox mirrors its own instead.\n *\n * @default false\n */\n readonly readonly = input(false, { transform: coerceBooleanProperty });\n\n /** The surrounding `<wr-form-field>`'s error state. @internal */\n protected readonly fieldAria = useFormFieldAria({ skipSelf: true });\n /**\n * The author's own `aria-labelledby`, read as a static host attribute.\n *\n * A host binding WRITES the attribute, so binding the field's label\n * unconditionally would REMOVE a reference the consumer put there by hand:\n * `<wr-segmented aria-labelledby=\"range-question\">` went nameless the moment\n * the field's label was `null`, which a harness spec caught one commit after\n * it was introduced. `HostAttributeToken` reads it at construction without\n * touching the DOM, so this stays SSR-safe, and the author's own reference\n * wins — the same precedence `[ariaLabel]` has everywhere else.\n */\n private readonly ownLabelledBy = inject(new HostAttributeToken('aria-labelledby'), { optional: true });\n\n /** The surrounding field's label, unless the author named the control. */\n protected readonly labelledBy = computed(() => this.ownLabelledBy ?? this.fieldAria.labelledBy());\n\n /**\n * Control size: the panes, the headings, the rows and the move buttons. The\n * checkboxes, search boxes and buttons inside are `sm` controls at `sm` and\n * `md`, and `md` controls at `lg`.\n *\n * @default 'md'\n */\n readonly size = input<WrTransferSize>('md');\n\n /** Size of the checkboxes, search boxes and buttons the panes render. */\n protected readonly controlSize = computed(() => (this.size() === 'lg' ? 'md' : 'sm'));\n\n /** Show a filter box above each pane. @default false */\n readonly searchable = input(false, { transform: coerceBooleanProperty });\n\n /** Heading above the left pane. Falls back to `transfer.source`. */\n readonly sourceTitle = input<string | null>(null);\n\n /** Heading above the right pane. Falls back to `transfer.target`. */\n readonly targetTitle = input<string | null>(null);\n\n /** Placeholder in both filter boxes. Falls back to `transfer.search`. */\n readonly searchPlaceholder = input<string | null>(null);\n\n /** Shown in a pane with no rows. Falls back to `transfer.empty`. */\n readonly emptyText = input<string | null>(null);\n\n /**\n * Accessible name of each pane's select-all checkbox, composed with the pane\n * heading. Falls back to `transfer.selectAll`.\n */\n readonly selectAllLabel = input<string | null>(null);\n\n /** Accessible name of the move-right button. Falls back to `transfer.toTarget`. */\n readonly toTargetLabel = input<string | null>(null);\n\n /** Accessible name of the move-left button. Falls back to `transfer.toSource`. */\n readonly toSourceLabel = input<string | null>(null);\n\n protected readonly resolvedSourceTitle = useI18nText(this.sourceTitle, 'transfer.source', 'Available');\n protected readonly resolvedTargetTitle = useI18nText(this.targetTitle, 'transfer.target', 'Selected');\n protected readonly resolvedSearch = useI18nText(this.searchPlaceholder, 'transfer.search', 'Search');\n protected readonly resolvedEmpty = useI18nText(this.emptyText, 'transfer.empty', 'Nothing here');\n protected readonly resolvedSelectAll = useI18nText(this.selectAllLabel, 'transfer.selectAll', 'Select all');\n\n /**\n * The select-all checkbox's accessible name, composed IN THE CATALOG.\n *\n * It used to be a template literal — `` `${title} — ${selectAll}` `` — which\n * froze both the separator and the operand order into English. A translator\n * could change each half and not the sentence they make, which is the exact\n * defect the calendar and event-calendar catalogs were rewritten to remove.\n * The key ships as `{{pane}} — {{action}}` in every locale, so nothing reads\n * differently today and every locale can now reorder it without a code change.\n */\n protected readonly selectAllAria = useI18nFormatter('transfer.selectAllAria', '{{pane}} — {{action}}');\n protected readonly resolvedToTarget = useI18nText(this.toTargetLabel, 'transfer.toTarget', 'Move to selected');\n protected readonly resolvedToSource = useI18nText(this.toSourceLabel, 'transfer.toSource', 'Move to available');\n\n /** `{{checked}} / {{total}}` under each heading. @internal */\n protected readonly countLabel = useI18nFormatter('transfer.count', '{{checked}} / {{total}}');\n\n /** Pane order — the template iterates it so both panes share one block. */\n protected readonly panes = ['source', 'target'] as const;\n\n private readonly sourceQuery = signal('');\n private readonly targetQuery = signal('');\n\n /** Staged rows, per pane. Cleared as soon as a move commits them. */\n private readonly sourceChecked = signal<readonly unknown[]>([]);\n private readonly targetChecked = signal<readonly unknown[]>([]);\n\n // The value as a guaranteed array — a classic-forms binding can write null even\n // though the type is `readonly unknown[]`, so normalise every read. Same hazard\n // `wr-checkbox-group` guards; here an unguarded `.map` threw outright.\n private readonly selected = computed<readonly unknown[]>(() => {\n const v = this.value();\n return Array.isArray(v) ? v : [];\n });\n\n private readonly valueSet = computed(() => new Set(this.selected()));\n\n protected readonly source = computed<PaneState>(() =>\n this.pane(\n this.items().filter(item => !this.valueSet().has(item.value)),\n this.sourceQuery(),\n this.sourceChecked()\n )\n );\n\n /** The first item per value, which is the one a scan of `items` would find. */\n private readonly itemByValue = computed(() => {\n const map = new Map<unknown, WrTransferItem>();\n for (const item of this.items()) if (!map.has(item.value)) map.set(item.value, item);\n return map;\n });\n\n // Right-pane order follows `value`, not `items`: the order a user built is\n // the one they expect to read back. Resolved apart from `target`, so a\n // keystroke in the filter or a ticked row does not walk the value again.\n private readonly targetRows = computed<readonly WrTransferItem[]>(() => {\n const byValue = this.itemByValue();\n return this.selected()\n .map(v => byValue.get(v))\n .filter((item): item is WrTransferItem => item !== undefined);\n });\n\n protected readonly target = computed<PaneState>(() =>\n this.pane(this.targetRows(), this.targetQuery(), this.targetChecked())\n );\n\n /** Values no item matches. Equal by content, so its reader runs once per distinct set. */\n private readonly orphans = computed<readonly unknown[]>(\n () => {\n const byValue = this.itemByValue();\n return this.selected().filter(v => !byValue.has(v));\n },\n { equal: (a, b) => a.length === b.length && a.every((v, i) => Object.is(v, b[i])) }\n );\n\n /**\n * Say something when `value` holds a value no `items` entry matches.\n *\n * Such a value is in NEITHER pane — the left one filters out anything already\n * selected and the right one can only render rows it found — and the header\n * counts the rows it shows, so nothing on screen contradicts anything. The\n * result is a value the user can neither see nor remove, and no sign that it\n * is there.\n *\n * A warning rather than an invented row, which matches how the library treats\n * the same question elsewhere: `wr-select` renders a value outside its option\n * list only under an explicit `freeText`, so an unmatched value is a mode a\n * consumer opts into, not a shape a component guesses at. It also stays quiet\n * about the common transient case — `items` arriving after `value` — because\n * the message names the values and a developer can see them settle.\n */\n private warnAboutOrphans(orphans: readonly unknown[]): void {\n if (orphans.length === 0) return;\n\n // eslint-disable-next-line no-console -- dev-mode validation\n console.warn(\n `[NGWR] <wr-transfer>: ${orphans.length} value(s) in \\`value\\` match no \\`items\\` entry ` +\n `and are rendered in neither pane, so a user can neither see nor remove them: ` +\n `${orphans.map(v => JSON.stringify(v)).join(', ')}. ` +\n `If \\`items\\` loads after \\`value\\`, this settles on its own.`\n );\n }\n\n protected readonly canMoveRight = computed(\n () => !this.disabled() && !this.readonly() && this.source().checkedCount > 0\n );\n protected readonly canMoveLeft = computed(\n () => !this.disabled() && !this.readonly() && this.target().checkedCount > 0\n );\n\n protected readonly classes = computed(() => {\n const parts: string[] = [];\n const size = this.size();\n if (size !== 'md') parts.push(`wr-transfer--${size}`);\n if (this.disabled()) parts.push('wr-transfer--disabled');\n else if (this.readonly()) parts.push('wr-transfer--readonly');\n if (this.searchable()) parts.push('wr-transfer--searchable');\n return parts.join(' ');\n });\n\n protected isChecked(pane: 'source' | 'target', item: WrTransferItem): boolean {\n return (pane === 'source' ? this.sourceChecked() : this.targetChecked()).includes(item.value);\n }\n\n protected toggle(pane: 'source' | 'target', item: WrTransferItem, checked: boolean): void {\n if (item.disabled || this.readonly()) return;\n const box = pane === 'source' ? this.sourceChecked : this.targetChecked;\n const current = box();\n if (checked) {\n box.set([...current, item.value]);\n return;\n }\n // A `Set` compares with SameValueZero, which is what `WrTransferItem['value']`\n // is documented to use and what `isChecked`'s `includes` already does. A `!==`\n // filter cannot remove `NaN` from its own list, so such a row drew itself\n // unchecked while staying staged.\n const next = new Set(current);\n next.delete(item.value);\n box.set([...next]);\n }\n\n /**\n * Header checkbox — stages or clears every enabled row the filter shows, and\n * only those. Staging outlives a filter change, so a row the filter hides keeps\n * whatever state it had: setting the whole box here unstaged hidden rows on a\n * clear and dropped them on a select, which the pane only revealed once the\n * search was emptied.\n */\n protected toggleAll(pane: 'source' | 'target', checked: boolean): void {\n if (this.readonly()) return;\n const state = pane === 'source' ? this.source() : this.target();\n const box = pane === 'source' ? this.sourceChecked : this.targetChecked;\n const next = new Set(box());\n for (const item of state.rows) {\n if (item.disabled) continue;\n if (checked) next.add(item.value);\n else next.delete(item.value);\n }\n box.set([...next]);\n }\n\n protected onSearch(pane: 'source' | 'target', event: Event): void {\n const query = (event.target as HTMLInputElement | null)?.value ?? '';\n (pane === 'source' ? this.sourceQuery : this.targetQuery).set(query);\n }\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n /**\n * Focus the transfer — what Signal Forms calls to focus this control. The\n * host is a `group` with no tab stop of its own, so focus goes to the left\n * pane's filter when the panes are searchable, otherwise to the first row that\n * can still be ticked — on the right, once nothing on the left can be.\n *\n * The pane's select-all box comes first in the tab order and is passed over\n * on purpose: it acts on every row at once, and a form pointing at the field\n * is asking for a choice. A disabled transfer has nothing left to focus.\n */\n focus(options?: FocusOptions): void {\n this.host.nativeElement\n .querySelector<HTMLInputElement>(\n '.wr-transfer__search input:not([disabled]), .wr-transfer__item input:not([disabled])'\n )\n ?.focus(options);\n }\n\n /**\n * Keep focus in the widget after a move.\n *\n * A move empties the pane's staging set, which is exactly what disables the\n * button that was just pressed — so the element holding DOM focus went\n * `disabled` as a RESULT of its own activation and the browser dropped focus\n * to `<body>`. From there the next Tab restarts at the top of the document,\n * which for a keyboard user is being thrown out of a control they were in the\n * middle of using.\n *\n * The landing is the FIRST ROW OF THE PANE THE ROWS ARRIVED IN, and the\n * obvious alternative does not work: after a move BOTH buttons are disabled,\n * because each needs something ticked and the move cleared the tick on one\n * side and arrived unticked on the other. The rows that just moved are where\n * the user's attention is and where the next action lives, so that is where\n * focus goes.\n *\n * `afterNextRender`, not `queueMicrotask`: under zoneless CD the microtask\n * runs before the moved rows are in the DOM, so the focus call would land on\n * the pane as it was before the move.\n */\n private restoreFocusAfterMove(landing: 'source' | 'target'): void {\n afterNextRender(\n () => {\n const root = this.host.nativeElement;\n const pane =\n landing === 'target'\n ? root.querySelector<HTMLElement>('.wr-transfer__pane--target')\n : root.querySelector<HTMLElement>('.wr-transfer__pane:not(.wr-transfer__pane--target)');\n const row = pane?.querySelector<HTMLInputElement>('.wr-transfer__item input:not([disabled])');\n row?.focus();\n },\n { injector: this.injector }\n );\n }\n\n protected moveRight(): void {\n if (this.disabled() || this.readonly()) return;\n // `source().checked`, not the raw staging box: rows a filter change hid are\n // neither counted nor ticked any more, so moving them would transfer rows the\n // pane never showed as chosen — and, since staging outlives an external write\n // to `value`, could land the same value on the right twice.\n const moving = this.source().checked;\n if (moving.length === 0) return;\n this.value.set([...this.selected(), ...moving]);\n this.sourceChecked.set([]);\n this.touch.emit();\n this.restoreFocusAfterMove('target');\n }\n\n protected moveLeft(): void {\n if (this.disabled() || this.readonly()) return;\n const moving = new Set(this.target().checked);\n if (moving.size === 0) return;\n this.value.set(this.selected().filter(v => !moving.has(v)));\n this.targetChecked.set([]);\n this.touch.emit();\n this.restoreFocusAfterMove('source');\n }\n\n /** Filter, then derive the header state from what survived. */\n private pane(rows: readonly WrTransferItem[], query: string, checked: readonly unknown[]): PaneState {\n const q = query.trim().toLowerCase();\n const visible = q ? rows.filter(item => item.label.toLowerCase().includes(q)) : rows;\n const enabled = visible.filter(item => !item.disabled);\n const staged = new Set(checked);\n const shown = enabled.filter(item => staged.has(item.value)).map(item => item.value);\n return {\n rows: visible,\n checked: shown,\n checkedCount: shown.length,\n enabledCount: enabled.length,\n allChecked: enabled.length > 0 && shown.length === enabled.length,\n someChecked: shown.length > 0 && shown.length < enabled.length,\n };\n }\n}\n","<!--\n Two panes and the buttons between them. Each pane is a PLAIN `<ul>` of\n checkboxes, deliberately: dressing it as a `role=\"listbox\"` of `role=\"option\"`\n rows reads better in the abstract but is invalid — an option may not contain an\n interactive control, and the axe gate says so. The checkbox is the thing the\n user operates, so it is the thing the semantics should describe; the pane\n heading names the group.\n-->\n@for (pane of panes; track pane) {\n @let state = pane === 'source' ? source() : target();\n @let title = pane === 'source' ? resolvedSourceTitle() : resolvedTargetTitle();\n\n <div class=\"wr-transfer__pane\" [class.wr-transfer__pane--target]=\"pane === 'target'\">\n <div class=\"wr-transfer__head\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"state.allChecked\"\n [indeterminate]=\"state.someChecked\"\n [disabled]=\"disabled() || state.enabledCount === 0\"\n [readonly]=\"readonly()\"\n [ariaLabel]=\"selectAllAria({ action: resolvedSelectAll(), pane: title })\"\n (checkedChange)=\"toggleAll(pane, $event)\"\n />\n <span class=\"wr-transfer__title\">{{ title }}</span>\n <span class=\"wr-transfer__count\">{{\n countLabel({ checked: state.checkedCount, total: state.rows.length })\n }}</span>\n </div>\n\n @if (searchable()) {\n <div class=\"wr-transfer__search\">\n <input\n wrInput\n [size]=\"controlSize()\"\n type=\"search\"\n [placeholder]=\"resolvedSearch()\"\n [disabled]=\"disabled()\"\n [attr.aria-label]=\"`${title} — ${resolvedSearch()}`\"\n (input)=\"onSearch(pane, $event)\"\n />\n </div>\n }\n\n <ul class=\"wr-transfer__list\" [attr.aria-label]=\"title\">\n @for (item of state.rows; track item.value) {\n <li class=\"wr-transfer__item\" [class.wr-transfer__item--disabled]=\"item.disabled\">\n <wr-checkbox\n [size]=\"controlSize()\"\n [checked]=\"isChecked(pane, item)\"\n [disabled]=\"disabled() || !!item.disabled\"\n [readonly]=\"readonly()\"\n (checkedChange)=\"toggle(pane, item, $event)\"\n (touch)=\"touch.emit()\"\n >\n {{ item.label }}\n </wr-checkbox>\n </li>\n } @empty {\n <li class=\"wr-transfer__empty\">{{ resolvedEmpty() }}</li>\n }\n </ul>\n </div>\n\n <!-- The buttons live between the panes, so they are emitted after the first. -->\n @if (pane === 'source') {\n <div class=\"wr-transfer__actions\">\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-target\"\n [disabled]=\"!canMoveRight()\"\n [attr.aria-label]=\"resolvedToTarget()\"\n (click)=\"moveRight()\"\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=\"m9 18 6-6-6-6\" />\n </svg>\n </button>\n <button\n wr-btn\n type=\"button\"\n [size]=\"controlSize()\"\n color=\"primary\"\n outlined\n class=\"wr-transfer__move wr-transfer__move--to-source\"\n [disabled]=\"!canMoveLeft()\"\n [attr.aria-label]=\"resolvedToSource()\"\n (click)=\"moveLeft()\"\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=\"m15 18-6-6 6-6\" />\n </svg>\n </button>\n </div>\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAuGA,IAAa,aAAb,MAAa,WAAU;CACrB,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,UAAU;EAC3E,IAAI,OAAO,cAAc,eAAe,WAAW,aAAa,KAAK,iBAAiB,KAAK,QAAO,CAAE,CAAC;CACvG;CAGS,QAAQ,MAAiC,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAM5C,QAAQ,MAA0B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAGrC,QAAQ,OAAM;CAGd,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAc1D,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAGhD,YAAY,iBAAiB,EAAE,UAAU,KAAI,CAAE;CAYjD,gBAAgB,OAAO,IAAI,mBAAmB,iBAAiB,GAAG,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