ngwr 16.6.0 → 16.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (318) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/button/styles/_index.scss +45 -2
  3. package/copy-value/styles/_index.scss +4 -0
  4. package/dropdown/styles/_index.scss +17 -0
  5. package/fesm2022/ngwr-affix.mjs +3 -3
  6. package/fesm2022/ngwr-alert.mjs +3 -3
  7. package/fesm2022/ngwr-anchor.mjs +3 -3
  8. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  9. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  10. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  11. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  12. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  13. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  14. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  15. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  16. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  17. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  18. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  19. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  20. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  21. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  22. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  24. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  25. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  26. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  27. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  28. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  29. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  30. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  31. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  32. package/fesm2022/ngwr-avatar.mjs +171 -6
  33. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  34. package/fesm2022/ngwr-back-top.mjs +3 -3
  35. package/fesm2022/ngwr-badge.mjs +6 -6
  36. package/fesm2022/ngwr-breadcrumbs.mjs +9 -8
  37. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  38. package/fesm2022/ngwr-burger.mjs +3 -3
  39. package/fesm2022/ngwr-button.mjs +26 -6
  40. package/fesm2022/ngwr-button.mjs.map +1 -1
  41. package/fesm2022/ngwr-calendar.mjs +3 -3
  42. package/fesm2022/ngwr-card.mjs +9 -9
  43. package/fesm2022/ngwr-carousel.mjs +6 -6
  44. package/fesm2022/ngwr-cascader.mjs +5 -5
  45. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  46. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  47. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  48. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  49. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  50. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  51. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  52. package/fesm2022/ngwr-charts-core.mjs +6 -6
  53. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  54. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  55. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  56. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  57. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  58. package/fesm2022/ngwr-charts-meter-group.mjs +3 -3
  59. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  60. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  61. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  62. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  63. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  64. package/fesm2022/ngwr-checkbox.mjs +6 -6
  65. package/fesm2022/ngwr-clipboard.mjs +3 -3
  66. package/fesm2022/ngwr-collapse.mjs +9 -9
  67. package/fesm2022/ngwr-color-picker.mjs +6 -6
  68. package/fesm2022/ngwr-command-palette.mjs +3 -3
  69. package/fesm2022/ngwr-comment.mjs +7 -6
  70. package/fesm2022/ngwr-comment.mjs.map +1 -1
  71. package/fesm2022/ngwr-compare.mjs +3 -3
  72. package/fesm2022/ngwr-context-menu.mjs +12 -12
  73. package/fesm2022/ngwr-cookie.mjs +3 -3
  74. package/fesm2022/ngwr-copy-value.mjs +3 -3
  75. package/fesm2022/ngwr-counter.mjs +6 -6
  76. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  77. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  78. package/fesm2022/ngwr-date-picker.mjs +102 -53
  79. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  80. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  81. package/fesm2022/ngwr-date.mjs +40 -16
  82. package/fesm2022/ngwr-date.mjs.map +1 -1
  83. package/fesm2022/ngwr-density.mjs +6 -6
  84. package/fesm2022/ngwr-descriptions.mjs +6 -6
  85. package/fesm2022/ngwr-dialog.mjs +19 -18
  86. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  87. package/fesm2022/ngwr-directives.mjs +181 -18
  88. package/fesm2022/ngwr-directives.mjs.map +1 -1
  89. package/fesm2022/ngwr-divider.mjs +3 -3
  90. package/fesm2022/ngwr-drawer.mjs +18 -18
  91. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  92. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  93. package/fesm2022/ngwr-dropdown.mjs +59 -16
  94. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  95. package/fesm2022/ngwr-editor.mjs +6 -5
  96. package/fesm2022/ngwr-editor.mjs.map +1 -1
  97. package/fesm2022/ngwr-empty.mjs +3 -3
  98. package/fesm2022/ngwr-event-calendar.mjs +7 -6
  99. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  100. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  101. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  102. package/fesm2022/ngwr-file-upload.mjs +68 -13
  103. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  104. package/fesm2022/ngwr-form.mjs +18 -16
  105. package/fesm2022/ngwr-form.mjs.map +1 -1
  106. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  107. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  108. package/fesm2022/ngwr-graph.mjs +100 -11
  109. package/fesm2022/ngwr-graph.mjs.map +1 -1
  110. package/fesm2022/ngwr-hotkey.mjs +6 -6
  111. package/fesm2022/ngwr-i18n-ar.mjs +6 -2
  112. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  113. package/fesm2022/ngwr-i18n-cs.mjs +6 -2
  114. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  115. package/fesm2022/ngwr-i18n-de.mjs +6 -2
  116. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  117. package/fesm2022/ngwr-i18n-en.mjs +6 -2
  118. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  119. package/fesm2022/ngwr-i18n-es.mjs +6 -2
  120. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  121. package/fesm2022/ngwr-i18n-fr.mjs +6 -2
  122. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  123. package/fesm2022/ngwr-i18n-he.mjs +6 -2
  124. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  125. package/fesm2022/ngwr-i18n-hi.mjs +6 -2
  126. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  127. package/fesm2022/ngwr-i18n-id.mjs +6 -2
  128. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  129. package/fesm2022/ngwr-i18n-it.mjs +6 -2
  130. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  131. package/fesm2022/ngwr-i18n-ja.mjs +6 -2
  132. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  133. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  134. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  135. package/fesm2022/ngwr-i18n-ko.mjs +6 -2
  136. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  137. package/fesm2022/ngwr-i18n-nl.mjs +6 -2
  138. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  139. package/fesm2022/ngwr-i18n-pl.mjs +6 -2
  140. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  141. package/fesm2022/ngwr-i18n-pt.mjs +6 -2
  142. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  143. package/fesm2022/ngwr-i18n-ru.mjs +6 -2
  144. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  145. package/fesm2022/ngwr-i18n-sv.mjs +6 -2
  146. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  147. package/fesm2022/ngwr-i18n-tr.mjs +6 -2
  148. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  149. package/fesm2022/ngwr-i18n-uk.mjs +6 -2
  150. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  151. package/fesm2022/ngwr-i18n-vi.mjs +6 -2
  152. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  153. package/fesm2022/ngwr-i18n-zh-tw.mjs +6 -2
  154. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  155. package/fesm2022/ngwr-i18n-zh.mjs +6 -2
  156. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  157. package/fesm2022/ngwr-i18n.mjs +9 -9
  158. package/fesm2022/ngwr-icon.mjs +6 -6
  159. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  160. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  161. package/fesm2022/ngwr-input-number.mjs +3 -3
  162. package/fesm2022/ngwr-input-otp.mjs +3 -3
  163. package/fesm2022/ngwr-input.mjs +15 -15
  164. package/fesm2022/ngwr-keyboard.mjs +3 -3
  165. package/fesm2022/ngwr-knob.mjs +3 -3
  166. package/fesm2022/ngwr-layout.mjs +15 -15
  167. package/fesm2022/ngwr-lightbox.mjs +8 -8
  168. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  169. package/fesm2022/ngwr-list.mjs +8 -8
  170. package/fesm2022/ngwr-list.mjs.map +1 -1
  171. package/fesm2022/ngwr-load-state.mjs +16 -15
  172. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  173. package/fesm2022/ngwr-loading-bar.mjs +6 -6
  174. package/fesm2022/ngwr-mention.mjs +6 -6
  175. package/fesm2022/ngwr-meta.mjs +6 -6
  176. package/fesm2022/ngwr-overlay.mjs +9 -9
  177. package/fesm2022/ngwr-page-header.mjs +3 -3
  178. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  179. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  180. package/fesm2022/ngwr-pagination.mjs +32 -5
  181. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  182. package/fesm2022/ngwr-pipes.mjs +27 -27
  183. package/fesm2022/ngwr-platform.mjs +9 -9
  184. package/fesm2022/ngwr-popconfirm.mjs +7 -6
  185. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  186. package/fesm2022/ngwr-popover.mjs +115 -15
  187. package/fesm2022/ngwr-popover.mjs.map +1 -1
  188. package/fesm2022/ngwr-progress.mjs +75 -10
  189. package/fesm2022/ngwr-progress.mjs.map +1 -1
  190. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  191. package/fesm2022/ngwr-qr.mjs +3 -3
  192. package/fesm2022/ngwr-radio.mjs +6 -6
  193. package/fesm2022/ngwr-rating.mjs +3 -3
  194. package/fesm2022/ngwr-resizable.mjs +3 -3
  195. package/fesm2022/ngwr-result.mjs +12 -12
  196. package/fesm2022/ngwr-schema-form.mjs +10 -6
  197. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  198. package/fesm2022/ngwr-scroll.mjs +232 -7
  199. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  200. package/fesm2022/ngwr-segmented.mjs +3 -3
  201. package/fesm2022/ngwr-select.mjs +28 -19
  202. package/fesm2022/ngwr-select.mjs.map +1 -1
  203. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  204. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  205. package/fesm2022/ngwr-sidebar.mjs +66 -11
  206. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  207. package/fesm2022/ngwr-skeleton.mjs +3 -3
  208. package/fesm2022/ngwr-slider.mjs +3 -3
  209. package/fesm2022/ngwr-sortable-list.mjs +11 -11
  210. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  211. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  212. package/fesm2022/ngwr-spinner.mjs +3 -3
  213. package/fesm2022/ngwr-splitter.mjs +3 -3
  214. package/fesm2022/ngwr-statistic.mjs +9 -9
  215. package/fesm2022/ngwr-stepper.mjs +6 -6
  216. package/fesm2022/ngwr-storage.mjs +3 -3
  217. package/fesm2022/ngwr-switch.mjs +3 -3
  218. package/fesm2022/ngwr-table-router.mjs +89 -0
  219. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  220. package/fesm2022/ngwr-table-testing.mjs +5 -0
  221. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  222. package/fesm2022/ngwr-table.mjs +268 -42
  223. package/fesm2022/ngwr-table.mjs.map +1 -1
  224. package/fesm2022/ngwr-tabs-router.mjs +9 -5
  225. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  226. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  227. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  228. package/fesm2022/ngwr-tabs.mjs +60 -10
  229. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  230. package/fesm2022/ngwr-textarea.mjs +3 -3
  231. package/fesm2022/ngwr-theme.mjs +3 -3
  232. package/fesm2022/ngwr-timeline.mjs +6 -6
  233. package/fesm2022/ngwr-toast.mjs +15 -15
  234. package/fesm2022/ngwr-toolbar.mjs +3 -3
  235. package/fesm2022/ngwr-tour.mjs +7 -6
  236. package/fesm2022/ngwr-tour.mjs.map +1 -1
  237. package/fesm2022/ngwr-transfer.mjs +4 -3
  238. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  239. package/fesm2022/ngwr-tree.mjs +3 -3
  240. package/fesm2022/ngwr-typography.mjs +3 -3
  241. package/fesm2022/ngwr-utils-router.mjs +3 -3
  242. package/fesm2022/ngwr-utils.mjs +30 -2
  243. package/fesm2022/ngwr-utils.mjs.map +1 -1
  244. package/fesm2022/ngwr-version.mjs +1 -1
  245. package/fesm2022/ngwr-version.mjs.map +1 -1
  246. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  247. package/fesm2022/ngwr-window.mjs +18 -13
  248. package/fesm2022/ngwr-window.mjs.map +1 -1
  249. package/file-upload/styles/_index.scss +16 -0
  250. package/graph/styles/_index.scss +48 -0
  251. package/i18n/ar.json +4 -2
  252. package/i18n/cs.json +4 -2
  253. package/i18n/de.json +4 -2
  254. package/i18n/en.json +4 -2
  255. package/i18n/es.json +4 -2
  256. package/i18n/fr.json +4 -2
  257. package/i18n/he.json +4 -2
  258. package/i18n/hi.json +4 -2
  259. package/i18n/id.json +4 -2
  260. package/i18n/it.json +4 -2
  261. package/i18n/ja.json +4 -2
  262. package/i18n/kk.json +567 -0
  263. package/i18n/ko.json +4 -2
  264. package/i18n/nl.json +4 -2
  265. package/i18n/pl.json +4 -2
  266. package/i18n/pt.json +4 -2
  267. package/i18n/ru.json +4 -2
  268. package/i18n/sv.json +4 -2
  269. package/i18n/tr.json +4 -2
  270. package/i18n/uk.json +4 -2
  271. package/i18n/vi.json +4 -2
  272. package/i18n/zh-TW.json +4 -2
  273. package/i18n/zh.json +4 -2
  274. package/llms-full.txt +29 -18
  275. package/llms.txt +4 -1
  276. package/package.json +15 -7
  277. package/pagination/styles/_index.scss +6 -0
  278. package/popover/styles/_index.scss +4 -2
  279. package/progress/styles/_index.scss +64 -0
  280. package/schematics/use/symbol-map.json +5 -0
  281. package/sidebar/styles/_index.scss +58 -6
  282. package/skills/ngwr/SKILL.md +7 -6
  283. package/skills/ngwr/references/catalog.md +6 -4
  284. package/table/styles/_index.scss +121 -32
  285. package/tabs/styles/_index.scss +9 -0
  286. package/theme/styles/_focus.scss +3 -1
  287. package/tour/styles/_index.scss +3 -2
  288. package/types/ngwr-avatar.d.ts +39 -0
  289. package/types/ngwr-button.d.ts +12 -0
  290. package/types/ngwr-date-picker-testing.d.ts +22 -0
  291. package/types/ngwr-date-picker.d.ts +78 -17
  292. package/types/ngwr-date.d.ts +51 -0
  293. package/types/ngwr-directives.d.ts +45 -0
  294. package/types/ngwr-dropdown-testing.d.ts +8 -1
  295. package/types/ngwr-dropdown.d.ts +29 -0
  296. package/types/ngwr-file-upload-testing.d.ts +10 -0
  297. package/types/ngwr-file-upload.d.ts +55 -1
  298. package/types/ngwr-form.d.ts +3 -1
  299. package/types/ngwr-graph-testing.d.ts +28 -1
  300. package/types/ngwr-graph.d.ts +53 -3
  301. package/types/ngwr-i18n-kk.d.ts +3 -0
  302. package/types/ngwr-image-cropper.d.ts +6 -0
  303. package/types/ngwr-pagination-testing.d.ts +8 -0
  304. package/types/ngwr-pagination.d.ts +16 -0
  305. package/types/ngwr-popover.d.ts +39 -0
  306. package/types/ngwr-progress.d.ts +63 -1
  307. package/types/ngwr-scroll.d.ts +86 -0
  308. package/types/ngwr-select.d.ts +31 -12
  309. package/types/ngwr-sidebar-testing.d.ts +21 -7
  310. package/types/ngwr-sidebar.d.ts +66 -4
  311. package/types/ngwr-table-router.d.ts +49 -0
  312. package/types/ngwr-table-testing.d.ts +7 -0
  313. package/types/ngwr-table.d.ts +184 -6
  314. package/types/ngwr-tabs-router.d.ts +1 -1
  315. package/types/ngwr-tabs-testing.d.ts +5 -1
  316. package/types/ngwr-tabs.d.ts +34 -1
  317. package/types/ngwr-utils.d.ts +13 -0
  318. package/types/ngwr-version.d.ts +1 -1
@@ -32,7 +32,7 @@ var WrSkeleton = class WrSkeleton {
32
32
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
33
33
  static ɵfac = i0.ɵɵngDeclareFactory({
34
34
  minVersion: "12.0.0",
35
- version: "22.2.6",
35
+ version: "22.3.0",
36
36
  ngImport: i0,
37
37
  type: WrSkeleton,
38
38
  deps: [],
@@ -40,7 +40,7 @@ var WrSkeleton = class WrSkeleton {
40
40
  });
41
41
  static ɵcmp = i0.ɵɵngDeclareComponent({
42
42
  minVersion: "17.0.0",
43
- version: "22.2.6",
43
+ version: "22.3.0",
44
44
  type: WrSkeleton,
45
45
  isStandalone: true,
46
46
  selector: "wr-skeleton",
@@ -82,7 +82,7 @@ var WrSkeleton = class WrSkeleton {
82
82
  };
83
83
  i0.ɵɵngDeclareClassMetadata({
84
84
  minVersion: "12.0.0",
85
- version: "22.2.6",
85
+ version: "22.3.0",
86
86
  ngImport: i0,
87
87
  type: WrSkeleton,
88
88
  decorators: [{
@@ -258,7 +258,7 @@ var WrSlider = class WrSlider {
258
258
  }
259
259
  static ɵfac = i0.ɵɵngDeclareFactory({
260
260
  minVersion: "12.0.0",
261
- version: "22.2.6",
261
+ version: "22.3.0",
262
262
  ngImport: i0,
263
263
  type: WrSlider,
264
264
  deps: [],
@@ -266,7 +266,7 @@ var WrSlider = class WrSlider {
266
266
  });
267
267
  static ɵcmp = i0.ɵɵngDeclareComponent({
268
268
  minVersion: "17.0.0",
269
- version: "22.2.6",
269
+ version: "22.3.0",
270
270
  type: WrSlider,
271
271
  isStandalone: true,
272
272
  selector: "wr-slider",
@@ -406,7 +406,7 @@ var WrSlider = class WrSlider {
406
406
  };
407
407
  i0.ɵɵngDeclareClassMetadata({
408
408
  minVersion: "12.0.0",
409
- version: "22.2.6",
409
+ version: "22.3.0",
410
410
  ngImport: i0,
411
411
  type: WrSlider,
412
412
  decorators: [{
@@ -316,7 +316,7 @@ var WrSortableList = class WrSortableList {
316
316
  }
317
317
  static ɵfac = i0.ɵɵngDeclareFactory({
318
318
  minVersion: "12.0.0",
319
- version: "22.2.6",
319
+ version: "22.3.0",
320
320
  ngImport: i0,
321
321
  type: WrSortableList,
322
322
  deps: [],
@@ -324,7 +324,7 @@ var WrSortableList = class WrSortableList {
324
324
  });
325
325
  static ɵcmp = i0.ɵɵngDeclareComponent({
326
326
  minVersion: "17.0.0",
327
- version: "22.2.6",
327
+ version: "22.3.0",
328
328
  type: WrSortableList,
329
329
  isStandalone: true,
330
330
  selector: "wr-sortable-list",
@@ -420,13 +420,13 @@ var WrSortableList = class WrSortableList {
420
420
  hostDirectives: [{ directive: i1.CdkDropList }],
421
421
  ngImport: i0,
422
422
  template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
423
- styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__toggle:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tag__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-graph__viewport:focus-visible,.wr-graph__control:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"],
423
+ styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__toggle:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tag__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-graph__viewport:focus-visible,.wr-graph__select:focus-visible,.wr-graph__control:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"],
424
424
  encapsulation: i0.ViewEncapsulation.None
425
425
  });
426
426
  };
427
427
  i0.ɵɵngDeclareClassMetadata({
428
428
  minVersion: "12.0.0",
429
- version: "22.2.6",
429
+ version: "22.3.0",
430
430
  ngImport: i0,
431
431
  type: WrSortableList,
432
432
  decorators: [{
@@ -446,7 +446,7 @@ i0.ɵɵngDeclareClassMetadata({
446
446
  useExisting: WrSortableList
447
447
  }],
448
448
  template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
449
- styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__toggle:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tag__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-graph__viewport:focus-visible,.wr-graph__control:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"]
449
+ styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__toggle:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tag__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-graph__viewport:focus-visible,.wr-graph__select:focus-visible,.wr-graph__control:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"]
450
450
  }]
451
451
  }],
452
452
  ctorParameters: () => [],
@@ -580,7 +580,7 @@ var WrSortableItem = class WrSortableItem {
580
580
  }
581
581
  static ɵfac = i0.ɵɵngDeclareFactory({
582
582
  minVersion: "12.0.0",
583
- version: "22.2.6",
583
+ version: "22.3.0",
584
584
  ngImport: i0,
585
585
  type: WrSortableItem,
586
586
  deps: [],
@@ -588,7 +588,7 @@ var WrSortableItem = class WrSortableItem {
588
588
  });
589
589
  static ɵcmp = i0.ɵɵngDeclareComponent({
590
590
  minVersion: "14.0.0",
591
- version: "22.2.6",
591
+ version: "22.3.0",
592
592
  type: WrSortableItem,
593
593
  isStandalone: true,
594
594
  selector: "wr-sortable-item",
@@ -614,7 +614,7 @@ var WrSortableItem = class WrSortableItem {
614
614
  };
615
615
  i0.ɵɵngDeclareClassMetadata({
616
616
  minVersion: "12.0.0",
617
- version: "22.2.6",
617
+ version: "22.3.0",
618
618
  ngImport: i0,
619
619
  type: WrSortableItem,
620
620
  decorators: [{
@@ -649,7 +649,7 @@ var WrDragHandle = class WrDragHandle {
649
649
  }
650
650
  static ɵfac = i0.ɵɵngDeclareFactory({
651
651
  minVersion: "12.0.0",
652
- version: "22.2.6",
652
+ version: "22.3.0",
653
653
  ngImport: i0,
654
654
  type: WrDragHandle,
655
655
  deps: [],
@@ -657,7 +657,7 @@ var WrDragHandle = class WrDragHandle {
657
657
  });
658
658
  static ɵdir = i0.ɵɵngDeclareDirective({
659
659
  minVersion: "14.0.0",
660
- version: "22.2.6",
660
+ version: "22.3.0",
661
661
  type: WrDragHandle,
662
662
  isStandalone: true,
663
663
  selector: "[wrDragHandle]",
@@ -668,7 +668,7 @@ var WrDragHandle = class WrDragHandle {
668
668
  };
669
669
  i0.ɵɵngDeclareClassMetadata({
670
670
  minVersion: "12.0.0",
671
- version: "22.2.6",
671
+ version: "22.3.0",
672
672
  ngImport: i0,
673
673
  type: WrDragHandle,
674
674
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-sortable-list.mjs","names":["DOCUMENT"],"sources":["../../../projects/lib/sortable-list/tokens/sortable-list.token.ts","../../../projects/lib/sortable-list/sortable-list.ts","../../../projects/lib/sortable-list/sortable-list.html","../../../projects/lib/sortable-list/sortable-item.ts","../../../projects/lib/sortable-list/drag-handle.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 { InjectionToken, type WritableSignal, signal } from '@angular/core';\n\nimport type { WrSortableList } from '../sortable-list';\nimport type { WrSortableListContext } from '../types';\n\n/**\n * Token a `<wr-sortable-item>` injects to find its parent `<wr-sortable-list>`.\n *\n * Rows arrive through `<ng-content>`, so nothing in the list's template can\n * bind to them and the child has to reach up — the same shape\n * `<wr-carousel-slide>` and `<wr-tab>` use.\n *\n * @internal\n */\nexport const WR_SORTABLE_LIST = new InjectionToken<WrSortableListContext>('WR_SORTABLE_LIST');\n\n/**\n * Every live `<wr-sortable-list>` of the application. A list reads its group\n * out of it, so two lists connect by name with no common ancestor: each column\n * of a board can sit in its own component.\n *\n * @internal\n */\nexport const WR_SORTABLE_LISTS = new InjectionToken<WritableSignal<readonly WrSortableList[]>>('WR_SORTABLE_LISTS', {\n providedIn: 'root',\n factory: () => signal<readonly WrSortableList[]>([]),\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 { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type CdkDrag, type CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n type WritableSignal,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport { wrReadI18nText, useI18nFormatter } from 'ngwr/i18n';\n\nimport { WR_SORTABLE_LIST, WR_SORTABLE_LISTS } from './tokens';\nimport type {\n WrSortableCanEnter,\n WrSortableListContext,\n WrSortableMoveEnd,\n WrSortableMoveEvent,\n WrSortableReorderEvent,\n} from './types';\n\n/** Whether `b` comes after `a` in the document. */\nfunction follows(a: HTMLElement, b: HTMLElement): boolean {\n // eslint-disable-next-line no-bitwise -- compareDocumentPosition answers with a bitmask\n return (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0;\n}\n\n/** Counted, not random: the list prerenders, so the id has to match on rehydration. */\nlet sortableListUid = 0;\n\n/**\n * Drag-to-reorder list. Wraps CDK's `cdkDropList` + `cdkDrag` with a\n * signal-based items binding — the source array is updated in place and\n * emitted via 2-way `[(items)]`.\n *\n * Write the loop yourself and project a `<wr-sortable-item>` per row. Until\n * v15 the list owned the loop and rendered one unnamed `<ng-template\n * let-row let-i=\"index\">`, which said nothing in the markup about where those\n * variables came from and gave a row no way to carry anything of its own. Put\n * `wrDragHandle` on an element inside a row to restrict drag start to a\n * handle; there is no input for it, the directive's presence is the switch.\n *\n * Every row is a tab stop: Space or Enter picks it up, the arrow keys move it,\n * Space or Enter drops it and Escape puts it back. CDK's `cdkDrag` ships no key\n * handling of its own, so without this the component's only function was\n * unreachable from a keyboard.\n *\n * Reading direction: a `horizontal` list follows the VISUAL order, so under\n * `dir=\"rtl\"` ArrowLeft moves the held row toward the higher index — the same\n * rule `wr-slider` applies to its track. A vertical list never mirrors.\n *\n * What that does NOT answer is WCAG 2.5.7, which asks for a POINTER alternative\n * to the drag. Click-to-pick-up is the obvious candidate and is not safe here:\n * the CDK's drag-drop bundle installs no click suppressor of any kind, so the\n * mouseup ending a drag still produces a click, and a row that grabbed itself on\n * click would be picking itself straight back up. A visible move-up /\n * move-down affordance is the remaining answer, and that is a design change.\n *\n * Lists that share a `group` exchange items, by drag and by keyboard. The\n * target list emits `move` once, and both lists write `[(items)]`; `reorder`\n * stays for a move inside one list. Lists find each other through a root\n * registry and are handed to `cdkDropListConnectedTo`, not through\n * `cdkDropListGroup`, which needs a common ancestor directive and so cannot\n * join lists that live in separate components.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\" (reorder)=\"onReorder($event)\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle>≡</span>\n * {{ row.label }}\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n *\n * @see https://ngwr.dev/reference/components/sortable-list\n */\n@Component({\n selector: 'wr-sortable-list',\n templateUrl: './sortable-list.html',\n styleUrl: './sortable-list.scss',\n encapsulation: ViewEncapsulation.None,\n // On the host, not in the template: rows are projected, and a projected\n // `cdkDrag` resolves its drop list through the element injector, which\n // never passes through this component's own view.\n hostDirectives: [CdkDropList],\n host: {\n class: 'wr-sortable-list',\n '[class.wr-sortable-list--connected]': '!!group()',\n '[class.wr-sortable-list--empty]': 'items().length === 0',\n '[attr.id]': 'id() ?? fallbackId',\n },\n providers: [{ provide: WR_SORTABLE_LIST, useExisting: WrSortableList }],\n})\nexport class WrSortableList<T = unknown> implements WrSortableListContext {\n /** Items to render. Two-way — emits the reordered array on drop. */\n readonly items = model.required<T[]>();\n\n /** Layout direction. Drives CDK's `cdkDropListOrientation`. @default 'vertical' */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n\n /** Disable all dragging. @default false */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /** Locked axis — restrict drag movement to one axis even diagonally. */\n readonly lockAxis = input<'x' | 'y' | undefined>(undefined);\n\n /**\n * Delay (ms) before a drag begins after the pointer goes down. The touch\n * delay is the fix for the classic CDK touch snag: without it, the\n * `touch-action: none` CDK puts on each item blocks scrolling the list on a\n * phone. With a small touch delay, a quick swipe scrolls and a brief hold\n * starts the drag; mouse stays instant. Pass a single number to apply one\n * delay to both pointers. @default { touch: 150, mouse: 0 }\n */\n readonly dragStartDelay = input<number | { touch: number; mouse: number }>({ touch: 150, mouse: 0 });\n\n /**\n * Name of the group this list belongs to. Lists with the same group exchange\n * items, wherever they sit in the page. @default null\n */\n readonly group = input<string | null>(null);\n\n /**\n * Refuses an item coming from another list of the group, by drag and by\n * keyboard alike. An item can always return to the list it left.\n * @default null\n */\n readonly canEnter = input<WrSortableCanEnter<T> | null>(null);\n\n /**\n * Accessible name of the list. A keyboard move into this list announces it;\n * without one the announcement falls back to the list's position in the group.\n * @default null\n */\n readonly ariaLabel = input<string | null>(null);\n\n /** The host's `id`, and what tells the lists of a `move` apart. Generated when omitted. */\n readonly id = input<string>();\n\n /** Fired after a successful reorder with the new array + indices. Not fired for a move between lists. */\n readonly reorder = output<WrSortableReorderEvent<T>>();\n\n /**\n * Fired once on the list an item ARRIVED in from another list of the group,\n * after both lists have written `items`. The list it left emits nothing but\n * `itemsChange`.\n */\n readonly move = output<WrSortableMoveEvent<T>>();\n\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly dropList = inject<CdkDropList<WrSortableList<T>>>(CdkDropList, { self: true });\n private readonly lists = inject(WR_SORTABLE_LISTS) as unknown as WritableSignal<readonly WrSortableList<T>[]>;\n private readonly listEl = viewChild.required<ElementRef<HTMLElement>>('list');\n\n /** The other lists of this list's group. */\n private readonly peers = computed(() => {\n const group = this.group();\n return group ? this.lists().filter(list => list !== this && list.group() === group) : [];\n });\n\n /**\n * Ambient reading direction, for the keyboard path.\n *\n * Optional so a bare `TestBed` — or any consumer that never set a direction —\n * needs no provider; `Directionality` is root-provided, so `null` only ever\n * means \"nobody asked\", which is LTR. Nothing caches a direction-derived\n * value: `isRtl()` is read inside the key handler, so a runtime flip needs no\n * subscription to `Directionality.change`.\n *\n * The POINTER path already mirrors without this — `cdkDropList` injects\n * `Directionality` itself and feeds it to `DropListRef.withDirection`, so a\n * horizontal drag has always followed the visual order. The keyboard path was\n * the half that did not, which is why the two disagreed.\n */\n private readonly dir = inject(Directionality, { optional: true });\n\n /**\n * The rows, in projection order, which is the order the consumer's own loop\n * rendered them in — so a row's position here IS its index into `items()`.\n *\n * Collected on construction rather than through `contentChildren`, because\n * the keyboard path has to resolve an index DURING a keydown and a query\n * signal is only guaranteed current after change detection. A row that\n * Angular destroys drops out on the next lookup: the element is gone from\n * the DOM, so `indexOf` cannot find it and the stale entry is swept then.\n */\n private readonly rows: { readonly host: ElementRef<HTMLElement> }[] = [];\n\n /** Row positions for one `items` array and row count, so a change sorts once however many rows ask. */\n private positions: {\n readonly items: unknown;\n readonly count: number;\n readonly map: Map<unknown, number>;\n } | null = null;\n\n /** Index of the row the keyboard is holding, or `null` when nothing is held. */\n readonly grabbedIndex = signal<number | null>(null);\n\n /** Live-region text. Written by the keyboard path only. */\n protected readonly announcement = signal('');\n\n private readonly uid = ++sortableListUid;\n\n /** Links every row to the key model via `aria-describedby`. */\n readonly keyHelpId = `wr-sortable-list-help-${this.uid}`;\n\n protected readonly fallbackId = `wr-sortable-list-${this.uid}`;\n\n private readonly keyHelp = wrReadI18nText(\n 'sortableList.keyHelp',\n 'Press Space to pick this item up, then use the arrow keys to move it. ' +\n 'Press Space again to drop it, or Escape to put it back.'\n );\n private readonly groupKeyHelp = wrReadI18nText(\n 'sortableList.groupKeyHelp',\n 'Press Space to pick this item up, then use the arrow keys to move it, within its list or into the next one. ' +\n 'Press Space again to drop it, or Escape to put it back.'\n );\n protected readonly resolvedKeyHelp = computed(() => (this.group() ? this.groupKeyHelp() : this.keyHelp()));\n\n private readonly grabbedText = useI18nFormatter('sortableList.grabbed', 'Grabbed. {{index}} of {{total}}.');\n private readonly movedText = useI18nFormatter('sortableList.moved', '{{index}} of {{total}}.');\n private readonly droppedText = useI18nFormatter('sortableList.dropped', 'Dropped. {{index}} of {{total}}.');\n private readonly cancelledText = wrReadI18nText('sortableList.cancelled', 'Move cancelled.');\n private readonly movedToText = useI18nFormatter('sortableList.movedTo', 'Moved to {{list}}. {{index}} of {{total}}.');\n private readonly listPositionText = useI18nFormatter('sortableList.listPosition', 'list {{index}} of {{total}}');\n\n /** Where the held row started, which can be another list. Escape puts it back there. */\n private grabOrigin: WrSortableMoveEnd<T> | null = null;\n\n /** True while a keyboard move is handing focus back — see `onRowFocusout`. */\n private restoringFocus = false;\n\n constructor() {\n this.lists.update(lists => [...lists, this]);\n inject(DestroyRef).onDestroy(() => this.lists.update(lists => lists.filter(list => list !== this)));\n\n const dropList = this.dropList;\n dropList.data = this;\n dropList.elementContainerSelector = '.wr-sortable-list__list';\n dropList.enterPredicate = (drag: CdkDrag<T>) => {\n const from = drag.dropContainer?.data as WrSortableList<T> | undefined;\n return !!from && this.accepts(drag.data, from);\n };\n dropList.dropped.subscribe((event: CdkDragDrop<WrSortableList<T>>) => this.onDrop(event));\n\n // Assigned, not bound: a host directive's inputs are out of a host binding's reach.\n effect(() => {\n dropList.id = this.id() ?? this.fallbackId;\n dropList.orientation = this.orientation();\n dropList.disabled = this.disabled();\n dropList.connectedTo = this.peers().map(list => list.dropList);\n });\n\n // The CDK resolves the selector above only on the list a drag STARTS in. A\n // list that only ever receives would append the placeholder to the host,\n // beside the rows' container rather than in it.\n afterNextRender(() => dropList._dropListRef.withElementContainer(this.listEl().nativeElement));\n }\n\n /** Rows whose pointer drag Escape cancelled; the drop that follows is ignored. */\n private readonly cancelledDrags = new WeakSet<object>();\n\n /** @internal A row's pointer drag was cancelled with Escape. */\n cancelDrag(drag: object): void {\n this.cancelledDrags.add(drag);\n }\n\n private onDrop(event: CdkDragDrop<WrSortableList<T>>): void {\n if (event.item && this.lists().some(list => list.cancelledDrags.delete(event.item))) return;\n if (event.previousContainer !== event.container) {\n const source = event.previousContainer.data;\n const item = source.removeAt(event.previousIndex);\n this.insertAt(item, event.currentIndex);\n this.move.emit({\n item,\n from: { list: source, index: event.previousIndex },\n to: { list: this, index: event.currentIndex },\n });\n return;\n }\n if (event.previousIndex === event.currentIndex) return;\n const next = this.items().slice();\n moveItemInArray(next, event.previousIndex, event.currentIndex);\n this.items.set(next);\n this.reorder.emit({\n items: next,\n previousIndex: event.previousIndex,\n currentIndex: event.currentIndex,\n item: next[event.currentIndex],\n });\n }\n\n /**\n * The keyboard reorder path: pick up, move, drop — deliberately a two-step\n * grab rather than \"an arrow moves the focused row\", so that arrowing through\n * a list a user is only reading can never rearrange it.\n *\n * Keys are handled only when the ROW itself is the event target; a button or\n * an input projected into the row template keeps every key it would normally\n * get.\n */\n /** @internal A row registering itself on construction. */\n register(item: { readonly host: ElementRef<HTMLElement> }): void {\n this.rows.push(item);\n }\n\n /**\n * @internal A row's position among its live siblings.\n *\n * Read off the DOM rather than off the registration order, because a row can\n * be added, removed or moved by the consumer's own loop and construction\n * order survives none of those. Rows whose element has left the document are\n * swept here, which is the only place that can tell.\n */\n indexOf(item: { readonly host: ElementRef<HTMLElement> }): number {\n this.sortRows();\n return this.rows.indexOf(item);\n }\n\n /**\n * @internal The same answer as `indexOf`, served from a map that is rebuilt\n * only when `items` or the number of rows changes. Reads `items`, so a\n * `computed` that calls it follows every reorder.\n */\n positionOf(item: { readonly host: ElementRef<HTMLElement> }): number {\n const items = this.items();\n let cache = this.positions;\n if (cache?.items !== items || cache.count !== this.rows.length) {\n this.sortRows();\n cache = {\n items,\n count: this.rows.length,\n map: new Map(this.rows.map((row, index) => [row, index] as const)),\n };\n this.positions = cache;\n }\n return cache.map.get(item) ?? -1;\n }\n\n /**\n * Drops rows whose element has left the document and puts the rest into\n * document order.\n *\n * Its own method because `relocate` needs it too: that one focuses\n * `rows[to]` after the move, and without a re-sort it reached into an array\n * still ordered as the list looked BEFORE the move.\n */\n private sortRows(): void {\n for (let i = this.rows.length - 1; i >= 0; i -= 1) {\n if (!this.rows[i].host.nativeElement.isConnected) this.rows.splice(i, 1);\n }\n this.rows.sort((a, b) => (follows(a.host.nativeElement, b.host.nativeElement) ? -1 : 1));\n }\n\n /** @internal */\n onRowKeydown(event: KeyboardEvent, index: number): void {\n if (this.disabled() || event.target !== event.currentTarget) return;\n\n const grabbed = this.grabbedIndex();\n const horizontal = this.orientation() === 'horizontal';\n // The horizontal arrows name a SIDE of the row, so they follow the reading\n // direction: a horizontal list under `dir=\"rtl\"` paints index 0 at the right,\n // so the key that raises the index is ArrowLeft. Raising it on ArrowRight\n // regardless moved the held item away from the arrow the user pressed — the\n // one failure in this set a user cannot rationalise, because it inverts their\n // model of the list silently. The block arrows name a value's direction in a\n // column and never mirror, which is why only the horizontal pair is swapped.\n const rtl = this.dir?.value === 'rtl';\n const inlineForward = rtl ? 'ArrowLeft' : 'ArrowRight';\n const inlineBack = rtl ? 'ArrowRight' : 'ArrowLeft';\n const forward = horizontal ? inlineForward : 'ArrowDown';\n const back = horizontal ? inlineBack : 'ArrowUp';\n // The arrows of the other axis walk the group: columns sit side by side, so\n // a vertical list hands the row over on the inline pair, mirrored like above.\n const nextList = horizontal ? 'ArrowDown' : inlineForward;\n const previousList = horizontal ? 'ArrowUp' : inlineBack;\n\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault();\n if (grabbed === null) this.grab(index);\n else this.drop();\n return;\n }\n\n if (grabbed === null) return;\n\n if (event.key === 'Escape') {\n event.preventDefault();\n // Held only while a row is grabbed — an Escape typed anywhere else has to\n // keep reaching whatever dialog or overlay the list is sitting in.\n event.stopPropagation();\n this.cancelGrab();\n return;\n }\n\n if (event.key === forward || event.key === back) {\n event.preventDefault();\n this.moveGrabbed(event.key === forward ? 1 : -1);\n return;\n }\n\n if (this.group() && (event.key === nextList || event.key === previousList)) {\n event.preventDefault();\n this.moveToList(event.key === nextList ? 1 : -1);\n }\n }\n\n /**\n * Focus leaving a held row ends the gesture as a drop rather than dropping the\n * change on the floor — `[(items)]` has already been written by then, so a\n * silent release would leave `reorder` never reporting a move that happened.\n * The guard is what makes it safe: moving a focused node in the DOM blurs it,\n * so every keyboard move fires this too.\n */\n /** @internal */\n onRowFocusout(): void {\n if (this.restoringFocus || this.grabbedIndex() === null) return;\n this.drop();\n }\n\n private grab(index: number): void {\n this.grabOrigin = { list: this, index };\n this.grabbedIndex.set(index);\n this.announcement.set(this.grabbedText(this.position(index)));\n }\n\n private moveGrabbed(delta: number): void {\n const from = this.grabbedIndex();\n if (from === null) return;\n const to = from + delta;\n if (to < 0 || to >= this.items().length) return;\n\n this.relocate(from, to);\n this.grabbedIndex.set(to);\n this.announcement.set(this.movedText(this.position(to)));\n }\n\n /**\n * Hands the held row to the nearest list of the group, in document order,\n * that takes it. A list that refuses is stepped over, since a drag can reach\n * any list of the group and the keyboard must not reach fewer.\n */\n private moveToList(step: 1 | -1): void {\n const from = this.grabbedIndex();\n const origin = this.grabOrigin;\n if (from === null || !origin) return;\n\n const group = this.groupLists();\n const item = this.items()[from];\n let at = group.indexOf(this) + step;\n while (group[at] && !group[at].accepts(item, origin.list)) at += step;\n const target = group[at];\n if (!target) return;\n\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n this.announcement.set('');\n this.removeAt(from);\n\n const to = Math.min(from, target.items().length);\n target.insertAt(item, to);\n target.grabOrigin = origin;\n target.grabbedIndex.set(to);\n const list =\n target.ariaLabel() ?? target.listPositionText({ index: group.indexOf(target) + 1, total: group.length });\n target.announcement.set(target.movedToText({ list, ...target.position(to) }));\n target.focusRow(to);\n }\n\n private drop(): void {\n const to = this.grabbedIndex();\n const origin = this.grabOrigin;\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n if (to === null || !origin) return;\n\n this.announcement.set(this.droppedText(this.position(to)));\n if (origin.list !== this) {\n this.move.emit({ item: this.items()[to], from: origin, to: { list: this, index: to } });\n return;\n }\n if (origin.index === to) return;\n // One event per gesture, the way a drag emits one on drop — not one per\n // arrow press, which would put a host that persists on `reorder` through a\n // write per keystroke. `[(items)]` still updates on every press, because\n // the rendered order has to follow the row the user is moving.\n this.reorder.emit({ items: this.items(), previousIndex: origin.index, currentIndex: to, item: this.items()[to] });\n }\n\n private cancelGrab(): void {\n const from = this.grabbedIndex();\n const origin = this.grabOrigin;\n if (from === null || !origin) return;\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n\n if (origin.list === this) {\n if (from !== origin.index) this.relocate(from, origin.index);\n this.announcement.set(this.cancelledText());\n return;\n }\n this.announcement.set('');\n origin.list.insertAt(this.removeAt(from), origin.index);\n origin.list.announcement.set(origin.list.cancelledText());\n origin.list.focusRow(origin.index);\n }\n\n /** Whether this list takes `item` from another list of the group. */\n private accepts(item: T, from: WrSortableList<T>): boolean {\n return !this.disabled() && (from === this || (this.canEnter()?.(item, from) ?? true));\n }\n\n /** This list and its peers, in document order. */\n private groupLists(): WrSortableList<T>[] {\n return [this, ...this.peers()].sort((a, b) => (follows(a.host.nativeElement, b.host.nativeElement) ? -1 : 1));\n }\n\n private removeAt(index: number): T {\n const next = this.items().slice();\n const [item] = next.splice(index, 1);\n this.items.set(next);\n return item;\n }\n\n private insertAt(item: T, index: number): void {\n const next = this.items().slice();\n next.splice(index, 0, item);\n this.items.set(next);\n }\n\n private relocate(from: number, to: number): void {\n const next = this.items().slice();\n moveItemInArray(next, from, to);\n this.items.set(next);\n this.focusRow(to);\n }\n\n private focusRow(to: number): void {\n // The row is the same DOM node moved to another slot, and moving a focused\n // node hands focus back to `<body>` — so it has to be taken again once the\n // move has rendered. `afterNextRender`, never a microtask: zoneless change\n // detection runs in a macrotask, so a microtask would fire while the row is\n // still at its old index and focus the wrong one. (jsdom keeps focus across\n // a node move, so no spec here can express that half.)\n this.restoringFocus = true;\n afterNextRender(\n () => {\n // Re-sorted FIRST. `this.rows` is only ever put into document order by\n // `indexOf`, and nothing calls it between the move and here — so the\n // array was still in the order it had BEFORE the move, and `rows[to]`\n // was whichever row used to be at that slot. `sortRows()` is the same\n // sweep-and-sort `indexOf` runs; after it, index `to` is the row the\n // move actually put there.\n this.sortRows();\n this.rows[to]?.host.nativeElement.focus();\n this.restoringFocus = false;\n },\n { injector: this.injector }\n );\n }\n\n private position(index: number): { index: number; total: number } {\n return { index: index + 1, total: this.items().length };\n }\n}\n\nexport type { WrSortableCanEnter, WrSortableMoveEnd, WrSortableMoveEvent, WrSortableReorderEvent } from './types';\n","<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\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 { CdkDrag } from '@angular/cdk/drag-drop';\nimport { DOCUMENT } from '@angular/common';\nimport { Component, DestroyRef, ElementRef, ViewEncapsulation, computed, effect, inject } from '@angular/core';\n\nimport { wrCheckStyles, wrWatchDragCancel } from 'ngwr/utils';\n\nimport { WR_SORTABLE_LIST } from './tokens';\n\n/**\n * One row of a {@link WrSortableList}. Write the loop yourself and put whatever\n * the row shows inside it.\n *\n * It replaced a single unnamed `<ng-template let-row let-i=\"index\">` that the\n * list rendered per item. Two things were wrong with that. The template had no\n * name, so nothing in the markup said what the context variables were or where\n * they came from — a reader had to open the component to learn that `let-row`\n * is the item and `let-i` the index. And a row could not carry anything of its\n * own: every per-row decision had to be an input on the LIST, or a branch\n * inside one template.\n *\n * The row is the tab stop, so the keyboard contract lives here: Space or Enter\n * picks it up, the arrows move it, Space or Enter drops it, Escape puts it\n * back. The list owns the array and the announcements, and this delegates to\n * it — an item knows its own position and nothing else.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle>≡</span>\n * {{ row.label }}\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n *\n * @see https://ngwr.dev/reference/components/sortable-list\n */\n@Component({\n selector: 'wr-sortable-item',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [CdkDrag],\n host: {\n class: 'wr-sortable-list__item',\n role: 'listitem',\n '[class.wr-sortable-list__item--grabbed]': 'grabbed()',\n '[attr.tabindex]': 'list.disabled() ? null : 0',\n '[attr.aria-describedby]': 'list.disabled() ? null : list.keyHelpId',\n '(keydown)': 'onKeydown($event)',\n '(focusout)': 'list.onRowFocusout()',\n },\n})\nexport class WrSortableItem {\n /** @internal The list this row belongs to. Read by the host bindings above. */\n protected readonly list = inject(WR_SORTABLE_LIST);\n\n private readonly drag = inject(CdkDrag);\n\n /** @internal */\n readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Position among the list's rows, which IS the index into `items()`: the\n * consumer's own loop renders them in that order.\n *\n * `positionOf` resolves by DOCUMENT ORDER and is keyed on the `items` ARRAY,\n * not its length: a reorder keeps the count, so a length-keyed index stayed\n * on the slot the row had left, the highlight stayed behind with it, and a\n * second pick-up of the same row moved its old neighbour instead. Host\n * bindings run after the consumer's `@for` has moved the nodes, so the\n * recomputation reads the new order.\n */\n protected readonly index = computed(() => this.list.positionOf(this));\n\n protected readonly grabbed = computed(() => this.list.grabbedIndex() === this.index());\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('sortable-list');\n this.list.register(this);\n\n // Assigned rather than bound, because these belong to the LIST and a host\n // binding cannot reach another directive's input. `CdkDrag` reads all\n // three as plain properties on every gesture, so writing them from an\n // effect is enough and a runtime change takes effect on the next drag.\n effect(() => {\n this.drag.disabled = this.list.disabled();\n this.drag.lockAxis = this.list.lockAxis() ?? null;\n this.drag.dragStartDelay = this.list.dragStartDelay();\n });\n\n // Escape cancels a pointer drag; CDK has no cancel of its own.\n const doc = inject(DOCUMENT);\n let stopCancel: (() => void) | null = null;\n this.drag.started.subscribe(event => {\n stopCancel?.();\n stopCancel = wrWatchDragCancel(doc, event.event, () => this.list.cancelDrag(this.drag));\n });\n this.drag.ended.subscribe(() => {\n stopCancel?.();\n stopCancel = null;\n });\n inject(DestroyRef).onDestroy(() => stopCancel?.());\n\n // What a connected list's `canEnter` is asked about.\n effect(() => {\n this.drag.data = this.list.items()[this.index()];\n });\n }\n\n /**\n * @internal Resolves the position at the moment of the key, off the DOM,\n * rather than through the cached `index`: nothing has to have rendered\n * between two presses for the answer to be right.\n */\n protected onKeydown(event: KeyboardEvent): void {\n this.list.onRowKeydown(event, this.list.indexOf(this));\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 { CdkDragHandle } from '@angular/cdk/drag-drop';\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Drag handle for {@link WrSortableList} (and any nested `cdkDrag`).\n * Composes CDK's `cdkDragHandle` via `hostDirectives` so consumers don't\n * need to import the CDK selector directly.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle class=\"grip\">≡</span>\n * <span>{{ row.label }}</span>\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n */\n@Directive({\n selector: '[wrDragHandle]',\n hostDirectives: [CdkDragHandle],\n host: { class: 'wr-drag-handle' },\n})\nexport class WrDragHandle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('sortable-list');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAa,mBAAmB,IAAI,eAAsC,kBAAkB;AAS5F,MAAa,oBAAoB,IAAI,eAA0D,qBAAqB;CAClH,YAAY;CACZ,eAAe,OAAkC,CAAA,CAAE;AACpD,CAAA;;;;;;;ACOD,SAAS,QAAQ,GAAgB,GAAc;CAE7C,QAAQ,EAAE,wBAAwB,CAAC,IAAI,KAAK,iCAAiC;AAC/E;AAGA,IAAI,kBAAkB;AAoEtB,IAAa,iBAAb,MAAa,eAAc;CAEhB,QAAQ,MAAM,SAAe,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAG7B,cAAc,MAAiC,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAG1D,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAG1D,WAAW,MAA6B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAUlD,iBAAiB,MAAiD;EAAE,OAAO;EAAK,OAAO;CAAC,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAM3F,QAAQ,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAOlC,WAAW,MAAoC,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAOpD,YAAY,MAAqB,MAAK,G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AAA,gBAAA,CAAA,EAAA,WAAA,GAAA,cAAA,CAAA;EAAA,UAAA;CAAA,CAAA;;AAAZ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EALxB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,gBAAgB,CAAC,aAAa;GAC9B,MAAM,EAAE,OAAO,iBAAgB;EAChC,CAAA"}
1
+ {"version":3,"file":"ngwr-sortable-list.mjs","names":["DOCUMENT"],"sources":["../../../projects/lib/sortable-list/tokens/sortable-list.token.ts","../../../projects/lib/sortable-list/sortable-list.ts","../../../projects/lib/sortable-list/sortable-list.html","../../../projects/lib/sortable-list/sortable-item.ts","../../../projects/lib/sortable-list/drag-handle.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 { InjectionToken, type WritableSignal, signal } from '@angular/core';\n\nimport type { WrSortableList } from '../sortable-list';\nimport type { WrSortableListContext } from '../types';\n\n/**\n * Token a `<wr-sortable-item>` injects to find its parent `<wr-sortable-list>`.\n *\n * Rows arrive through `<ng-content>`, so nothing in the list's template can\n * bind to them and the child has to reach up — the same shape\n * `<wr-carousel-slide>` and `<wr-tab>` use.\n *\n * @internal\n */\nexport const WR_SORTABLE_LIST = new InjectionToken<WrSortableListContext>('WR_SORTABLE_LIST');\n\n/**\n * Every live `<wr-sortable-list>` of the application. A list reads its group\n * out of it, so two lists connect by name with no common ancestor: each column\n * of a board can sit in its own component.\n *\n * @internal\n */\nexport const WR_SORTABLE_LISTS = new InjectionToken<WritableSignal<readonly WrSortableList[]>>('WR_SORTABLE_LISTS', {\n providedIn: 'root',\n factory: () => signal<readonly WrSortableList[]>([]),\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 { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type CdkDrag, type CdkDragDrop, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n Injector,\n type WritableSignal,\n ViewEncapsulation,\n afterNextRender,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\n\nimport { wrReadI18nText, useI18nFormatter } from 'ngwr/i18n';\n\nimport { WR_SORTABLE_LIST, WR_SORTABLE_LISTS } from './tokens';\nimport type {\n WrSortableCanEnter,\n WrSortableListContext,\n WrSortableMoveEnd,\n WrSortableMoveEvent,\n WrSortableReorderEvent,\n} from './types';\n\n/** Whether `b` comes after `a` in the document. */\nfunction follows(a: HTMLElement, b: HTMLElement): boolean {\n // eslint-disable-next-line no-bitwise -- compareDocumentPosition answers with a bitmask\n return (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0;\n}\n\n/** Counted, not random: the list prerenders, so the id has to match on rehydration. */\nlet sortableListUid = 0;\n\n/**\n * Drag-to-reorder list. Wraps CDK's `cdkDropList` + `cdkDrag` with a\n * signal-based items binding — the source array is updated in place and\n * emitted via 2-way `[(items)]`.\n *\n * Write the loop yourself and project a `<wr-sortable-item>` per row. Until\n * v15 the list owned the loop and rendered one unnamed `<ng-template\n * let-row let-i=\"index\">`, which said nothing in the markup about where those\n * variables came from and gave a row no way to carry anything of its own. Put\n * `wrDragHandle` on an element inside a row to restrict drag start to a\n * handle; there is no input for it, the directive's presence is the switch.\n *\n * Every row is a tab stop: Space or Enter picks it up, the arrow keys move it,\n * Space or Enter drops it and Escape puts it back. CDK's `cdkDrag` ships no key\n * handling of its own, so without this the component's only function was\n * unreachable from a keyboard.\n *\n * Reading direction: a `horizontal` list follows the VISUAL order, so under\n * `dir=\"rtl\"` ArrowLeft moves the held row toward the higher index — the same\n * rule `wr-slider` applies to its track. A vertical list never mirrors.\n *\n * What that does NOT answer is WCAG 2.5.7, which asks for a POINTER alternative\n * to the drag. Click-to-pick-up is the obvious candidate and is not safe here:\n * the CDK's drag-drop bundle installs no click suppressor of any kind, so the\n * mouseup ending a drag still produces a click, and a row that grabbed itself on\n * click would be picking itself straight back up. A visible move-up /\n * move-down affordance is the remaining answer, and that is a design change.\n *\n * Lists that share a `group` exchange items, by drag and by keyboard. The\n * target list emits `move` once, and both lists write `[(items)]`; `reorder`\n * stays for a move inside one list. Lists find each other through a root\n * registry and are handed to `cdkDropListConnectedTo`, not through\n * `cdkDropListGroup`, which needs a common ancestor directive and so cannot\n * join lists that live in separate components.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\" (reorder)=\"onReorder($event)\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle>≡</span>\n * {{ row.label }}\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n *\n * @see https://ngwr.dev/reference/components/sortable-list\n */\n@Component({\n selector: 'wr-sortable-list',\n templateUrl: './sortable-list.html',\n styleUrl: './sortable-list.scss',\n encapsulation: ViewEncapsulation.None,\n // On the host, not in the template: rows are projected, and a projected\n // `cdkDrag` resolves its drop list through the element injector, which\n // never passes through this component's own view.\n hostDirectives: [CdkDropList],\n host: {\n class: 'wr-sortable-list',\n '[class.wr-sortable-list--connected]': '!!group()',\n '[class.wr-sortable-list--empty]': 'items().length === 0',\n '[attr.id]': 'id() ?? fallbackId',\n },\n providers: [{ provide: WR_SORTABLE_LIST, useExisting: WrSortableList }],\n})\nexport class WrSortableList<T = unknown> implements WrSortableListContext {\n /** Items to render. Two-way — emits the reordered array on drop. */\n readonly items = model.required<T[]>();\n\n /** Layout direction. Drives CDK's `cdkDropListOrientation`. @default 'vertical' */\n readonly orientation = input<'vertical' | 'horizontal'>('vertical');\n\n /** Disable all dragging. @default false */\n readonly disabled = input(false, { transform: coerceBooleanProperty });\n\n /** Locked axis — restrict drag movement to one axis even diagonally. */\n readonly lockAxis = input<'x' | 'y' | undefined>(undefined);\n\n /**\n * Delay (ms) before a drag begins after the pointer goes down. The touch\n * delay is the fix for the classic CDK touch snag: without it, the\n * `touch-action: none` CDK puts on each item blocks scrolling the list on a\n * phone. With a small touch delay, a quick swipe scrolls and a brief hold\n * starts the drag; mouse stays instant. Pass a single number to apply one\n * delay to both pointers. @default { touch: 150, mouse: 0 }\n */\n readonly dragStartDelay = input<number | { touch: number; mouse: number }>({ touch: 150, mouse: 0 });\n\n /**\n * Name of the group this list belongs to. Lists with the same group exchange\n * items, wherever they sit in the page. @default null\n */\n readonly group = input<string | null>(null);\n\n /**\n * Refuses an item coming from another list of the group, by drag and by\n * keyboard alike. An item can always return to the list it left.\n * @default null\n */\n readonly canEnter = input<WrSortableCanEnter<T> | null>(null);\n\n /**\n * Accessible name of the list. A keyboard move into this list announces it;\n * without one the announcement falls back to the list's position in the group.\n * @default null\n */\n readonly ariaLabel = input<string | null>(null);\n\n /** The host's `id`, and what tells the lists of a `move` apart. Generated when omitted. */\n readonly id = input<string>();\n\n /** Fired after a successful reorder with the new array + indices. Not fired for a move between lists. */\n readonly reorder = output<WrSortableReorderEvent<T>>();\n\n /**\n * Fired once on the list an item ARRIVED in from another list of the group,\n * after both lists have written `items`. The list it left emits nothing but\n * `itemsChange`.\n */\n readonly move = output<WrSortableMoveEvent<T>>();\n\n private readonly injector = inject(Injector);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly dropList = inject<CdkDropList<WrSortableList<T>>>(CdkDropList, { self: true });\n private readonly lists = inject(WR_SORTABLE_LISTS) as unknown as WritableSignal<readonly WrSortableList<T>[]>;\n private readonly listEl = viewChild.required<ElementRef<HTMLElement>>('list');\n\n /** The other lists of this list's group. */\n private readonly peers = computed(() => {\n const group = this.group();\n return group ? this.lists().filter(list => list !== this && list.group() === group) : [];\n });\n\n /**\n * Ambient reading direction, for the keyboard path.\n *\n * Optional so a bare `TestBed` — or any consumer that never set a direction —\n * needs no provider; `Directionality` is root-provided, so `null` only ever\n * means \"nobody asked\", which is LTR. Nothing caches a direction-derived\n * value: `isRtl()` is read inside the key handler, so a runtime flip needs no\n * subscription to `Directionality.change`.\n *\n * The POINTER path already mirrors without this — `cdkDropList` injects\n * `Directionality` itself and feeds it to `DropListRef.withDirection`, so a\n * horizontal drag has always followed the visual order. The keyboard path was\n * the half that did not, which is why the two disagreed.\n */\n private readonly dir = inject(Directionality, { optional: true });\n\n /**\n * The rows, in projection order, which is the order the consumer's own loop\n * rendered them in — so a row's position here IS its index into `items()`.\n *\n * Collected on construction rather than through `contentChildren`, because\n * the keyboard path has to resolve an index DURING a keydown and a query\n * signal is only guaranteed current after change detection. A row that\n * Angular destroys drops out on the next lookup: the element is gone from\n * the DOM, so `indexOf` cannot find it and the stale entry is swept then.\n */\n private readonly rows: { readonly host: ElementRef<HTMLElement> }[] = [];\n\n /** Row positions for one `items` array and row count, so a change sorts once however many rows ask. */\n private positions: {\n readonly items: unknown;\n readonly count: number;\n readonly map: Map<unknown, number>;\n } | null = null;\n\n /** Index of the row the keyboard is holding, or `null` when nothing is held. */\n readonly grabbedIndex = signal<number | null>(null);\n\n /** Live-region text. Written by the keyboard path only. */\n protected readonly announcement = signal('');\n\n private readonly uid = ++sortableListUid;\n\n /** Links every row to the key model via `aria-describedby`. */\n readonly keyHelpId = `wr-sortable-list-help-${this.uid}`;\n\n protected readonly fallbackId = `wr-sortable-list-${this.uid}`;\n\n private readonly keyHelp = wrReadI18nText(\n 'sortableList.keyHelp',\n 'Press Space to pick this item up, then use the arrow keys to move it. ' +\n 'Press Space again to drop it, or Escape to put it back.'\n );\n private readonly groupKeyHelp = wrReadI18nText(\n 'sortableList.groupKeyHelp',\n 'Press Space to pick this item up, then use the arrow keys to move it, within its list or into the next one. ' +\n 'Press Space again to drop it, or Escape to put it back.'\n );\n protected readonly resolvedKeyHelp = computed(() => (this.group() ? this.groupKeyHelp() : this.keyHelp()));\n\n private readonly grabbedText = useI18nFormatter('sortableList.grabbed', 'Grabbed. {{index}} of {{total}}.');\n private readonly movedText = useI18nFormatter('sortableList.moved', '{{index}} of {{total}}.');\n private readonly droppedText = useI18nFormatter('sortableList.dropped', 'Dropped. {{index}} of {{total}}.');\n private readonly cancelledText = wrReadI18nText('sortableList.cancelled', 'Move cancelled.');\n private readonly movedToText = useI18nFormatter('sortableList.movedTo', 'Moved to {{list}}. {{index}} of {{total}}.');\n private readonly listPositionText = useI18nFormatter('sortableList.listPosition', 'list {{index}} of {{total}}');\n\n /** Where the held row started, which can be another list. Escape puts it back there. */\n private grabOrigin: WrSortableMoveEnd<T> | null = null;\n\n /** True while a keyboard move is handing focus back — see `onRowFocusout`. */\n private restoringFocus = false;\n\n constructor() {\n this.lists.update(lists => [...lists, this]);\n inject(DestroyRef).onDestroy(() => this.lists.update(lists => lists.filter(list => list !== this)));\n\n const dropList = this.dropList;\n dropList.data = this;\n dropList.elementContainerSelector = '.wr-sortable-list__list';\n dropList.enterPredicate = (drag: CdkDrag<T>) => {\n const from = drag.dropContainer?.data as WrSortableList<T> | undefined;\n return !!from && this.accepts(drag.data, from);\n };\n dropList.dropped.subscribe((event: CdkDragDrop<WrSortableList<T>>) => this.onDrop(event));\n\n // Assigned, not bound: a host directive's inputs are out of a host binding's reach.\n effect(() => {\n dropList.id = this.id() ?? this.fallbackId;\n dropList.orientation = this.orientation();\n dropList.disabled = this.disabled();\n dropList.connectedTo = this.peers().map(list => list.dropList);\n });\n\n // The CDK resolves the selector above only on the list a drag STARTS in. A\n // list that only ever receives would append the placeholder to the host,\n // beside the rows' container rather than in it.\n afterNextRender(() => dropList._dropListRef.withElementContainer(this.listEl().nativeElement));\n }\n\n /** Rows whose pointer drag Escape cancelled; the drop that follows is ignored. */\n private readonly cancelledDrags = new WeakSet<object>();\n\n /** @internal A row's pointer drag was cancelled with Escape. */\n cancelDrag(drag: object): void {\n this.cancelledDrags.add(drag);\n }\n\n private onDrop(event: CdkDragDrop<WrSortableList<T>>): void {\n if (event.item && this.lists().some(list => list.cancelledDrags.delete(event.item))) return;\n if (event.previousContainer !== event.container) {\n const source = event.previousContainer.data;\n const item = source.removeAt(event.previousIndex);\n this.insertAt(item, event.currentIndex);\n this.move.emit({\n item,\n from: { list: source, index: event.previousIndex },\n to: { list: this, index: event.currentIndex },\n });\n return;\n }\n if (event.previousIndex === event.currentIndex) return;\n const next = this.items().slice();\n moveItemInArray(next, event.previousIndex, event.currentIndex);\n this.items.set(next);\n this.reorder.emit({\n items: next,\n previousIndex: event.previousIndex,\n currentIndex: event.currentIndex,\n item: next[event.currentIndex],\n });\n }\n\n /**\n * The keyboard reorder path: pick up, move, drop — deliberately a two-step\n * grab rather than \"an arrow moves the focused row\", so that arrowing through\n * a list a user is only reading can never rearrange it.\n *\n * Keys are handled only when the ROW itself is the event target; a button or\n * an input projected into the row template keeps every key it would normally\n * get.\n */\n /** @internal A row registering itself on construction. */\n register(item: { readonly host: ElementRef<HTMLElement> }): void {\n this.rows.push(item);\n }\n\n /**\n * @internal A row's position among its live siblings.\n *\n * Read off the DOM rather than off the registration order, because a row can\n * be added, removed or moved by the consumer's own loop and construction\n * order survives none of those. Rows whose element has left the document are\n * swept here, which is the only place that can tell.\n */\n indexOf(item: { readonly host: ElementRef<HTMLElement> }): number {\n this.sortRows();\n return this.rows.indexOf(item);\n }\n\n /**\n * @internal The same answer as `indexOf`, served from a map that is rebuilt\n * only when `items` or the number of rows changes. Reads `items`, so a\n * `computed` that calls it follows every reorder.\n */\n positionOf(item: { readonly host: ElementRef<HTMLElement> }): number {\n const items = this.items();\n let cache = this.positions;\n if (cache?.items !== items || cache.count !== this.rows.length) {\n this.sortRows();\n cache = {\n items,\n count: this.rows.length,\n map: new Map(this.rows.map((row, index) => [row, index] as const)),\n };\n this.positions = cache;\n }\n return cache.map.get(item) ?? -1;\n }\n\n /**\n * Drops rows whose element has left the document and puts the rest into\n * document order.\n *\n * Its own method because `relocate` needs it too: that one focuses\n * `rows[to]` after the move, and without a re-sort it reached into an array\n * still ordered as the list looked BEFORE the move.\n */\n private sortRows(): void {\n for (let i = this.rows.length - 1; i >= 0; i -= 1) {\n if (!this.rows[i].host.nativeElement.isConnected) this.rows.splice(i, 1);\n }\n this.rows.sort((a, b) => (follows(a.host.nativeElement, b.host.nativeElement) ? -1 : 1));\n }\n\n /** @internal */\n onRowKeydown(event: KeyboardEvent, index: number): void {\n if (this.disabled() || event.target !== event.currentTarget) return;\n\n const grabbed = this.grabbedIndex();\n const horizontal = this.orientation() === 'horizontal';\n // The horizontal arrows name a SIDE of the row, so they follow the reading\n // direction: a horizontal list under `dir=\"rtl\"` paints index 0 at the right,\n // so the key that raises the index is ArrowLeft. Raising it on ArrowRight\n // regardless moved the held item away from the arrow the user pressed — the\n // one failure in this set a user cannot rationalise, because it inverts their\n // model of the list silently. The block arrows name a value's direction in a\n // column and never mirror, which is why only the horizontal pair is swapped.\n const rtl = this.dir?.value === 'rtl';\n const inlineForward = rtl ? 'ArrowLeft' : 'ArrowRight';\n const inlineBack = rtl ? 'ArrowRight' : 'ArrowLeft';\n const forward = horizontal ? inlineForward : 'ArrowDown';\n const back = horizontal ? inlineBack : 'ArrowUp';\n // The arrows of the other axis walk the group: columns sit side by side, so\n // a vertical list hands the row over on the inline pair, mirrored like above.\n const nextList = horizontal ? 'ArrowDown' : inlineForward;\n const previousList = horizontal ? 'ArrowUp' : inlineBack;\n\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault();\n if (grabbed === null) this.grab(index);\n else this.drop();\n return;\n }\n\n if (grabbed === null) return;\n\n if (event.key === 'Escape') {\n event.preventDefault();\n // Held only while a row is grabbed — an Escape typed anywhere else has to\n // keep reaching whatever dialog or overlay the list is sitting in.\n event.stopPropagation();\n this.cancelGrab();\n return;\n }\n\n if (event.key === forward || event.key === back) {\n event.preventDefault();\n this.moveGrabbed(event.key === forward ? 1 : -1);\n return;\n }\n\n if (this.group() && (event.key === nextList || event.key === previousList)) {\n event.preventDefault();\n this.moveToList(event.key === nextList ? 1 : -1);\n }\n }\n\n /**\n * Focus leaving a held row ends the gesture as a drop rather than dropping the\n * change on the floor — `[(items)]` has already been written by then, so a\n * silent release would leave `reorder` never reporting a move that happened.\n * The guard is what makes it safe: moving a focused node in the DOM blurs it,\n * so every keyboard move fires this too.\n */\n /** @internal */\n onRowFocusout(): void {\n if (this.restoringFocus || this.grabbedIndex() === null) return;\n this.drop();\n }\n\n private grab(index: number): void {\n this.grabOrigin = { list: this, index };\n this.grabbedIndex.set(index);\n this.announcement.set(this.grabbedText(this.position(index)));\n }\n\n private moveGrabbed(delta: number): void {\n const from = this.grabbedIndex();\n if (from === null) return;\n const to = from + delta;\n if (to < 0 || to >= this.items().length) return;\n\n this.relocate(from, to);\n this.grabbedIndex.set(to);\n this.announcement.set(this.movedText(this.position(to)));\n }\n\n /**\n * Hands the held row to the nearest list of the group, in document order,\n * that takes it. A list that refuses is stepped over, since a drag can reach\n * any list of the group and the keyboard must not reach fewer.\n */\n private moveToList(step: 1 | -1): void {\n const from = this.grabbedIndex();\n const origin = this.grabOrigin;\n if (from === null || !origin) return;\n\n const group = this.groupLists();\n const item = this.items()[from];\n let at = group.indexOf(this) + step;\n while (group[at] && !group[at].accepts(item, origin.list)) at += step;\n const target = group[at];\n if (!target) return;\n\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n this.announcement.set('');\n this.removeAt(from);\n\n const to = Math.min(from, target.items().length);\n target.insertAt(item, to);\n target.grabOrigin = origin;\n target.grabbedIndex.set(to);\n const list =\n target.ariaLabel() ?? target.listPositionText({ index: group.indexOf(target) + 1, total: group.length });\n target.announcement.set(target.movedToText({ list, ...target.position(to) }));\n target.focusRow(to);\n }\n\n private drop(): void {\n const to = this.grabbedIndex();\n const origin = this.grabOrigin;\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n if (to === null || !origin) return;\n\n this.announcement.set(this.droppedText(this.position(to)));\n if (origin.list !== this) {\n this.move.emit({ item: this.items()[to], from: origin, to: { list: this, index: to } });\n return;\n }\n if (origin.index === to) return;\n // One event per gesture, the way a drag emits one on drop — not one per\n // arrow press, which would put a host that persists on `reorder` through a\n // write per keystroke. `[(items)]` still updates on every press, because\n // the rendered order has to follow the row the user is moving.\n this.reorder.emit({ items: this.items(), previousIndex: origin.index, currentIndex: to, item: this.items()[to] });\n }\n\n private cancelGrab(): void {\n const from = this.grabbedIndex();\n const origin = this.grabOrigin;\n if (from === null || !origin) return;\n this.grabbedIndex.set(null);\n this.grabOrigin = null;\n\n if (origin.list === this) {\n if (from !== origin.index) this.relocate(from, origin.index);\n this.announcement.set(this.cancelledText());\n return;\n }\n this.announcement.set('');\n origin.list.insertAt(this.removeAt(from), origin.index);\n origin.list.announcement.set(origin.list.cancelledText());\n origin.list.focusRow(origin.index);\n }\n\n /** Whether this list takes `item` from another list of the group. */\n private accepts(item: T, from: WrSortableList<T>): boolean {\n return !this.disabled() && (from === this || (this.canEnter()?.(item, from) ?? true));\n }\n\n /** This list and its peers, in document order. */\n private groupLists(): WrSortableList<T>[] {\n return [this, ...this.peers()].sort((a, b) => (follows(a.host.nativeElement, b.host.nativeElement) ? -1 : 1));\n }\n\n private removeAt(index: number): T {\n const next = this.items().slice();\n const [item] = next.splice(index, 1);\n this.items.set(next);\n return item;\n }\n\n private insertAt(item: T, index: number): void {\n const next = this.items().slice();\n next.splice(index, 0, item);\n this.items.set(next);\n }\n\n private relocate(from: number, to: number): void {\n const next = this.items().slice();\n moveItemInArray(next, from, to);\n this.items.set(next);\n this.focusRow(to);\n }\n\n private focusRow(to: number): void {\n // The row is the same DOM node moved to another slot, and moving a focused\n // node hands focus back to `<body>` — so it has to be taken again once the\n // move has rendered. `afterNextRender`, never a microtask: zoneless change\n // detection runs in a macrotask, so a microtask would fire while the row is\n // still at its old index and focus the wrong one. (jsdom keeps focus across\n // a node move, so no spec here can express that half.)\n this.restoringFocus = true;\n afterNextRender(\n () => {\n // Re-sorted FIRST. `this.rows` is only ever put into document order by\n // `indexOf`, and nothing calls it between the move and here — so the\n // array was still in the order it had BEFORE the move, and `rows[to]`\n // was whichever row used to be at that slot. `sortRows()` is the same\n // sweep-and-sort `indexOf` runs; after it, index `to` is the row the\n // move actually put there.\n this.sortRows();\n this.rows[to]?.host.nativeElement.focus();\n this.restoringFocus = false;\n },\n { injector: this.injector }\n );\n }\n\n private position(index: number): { index: number; total: number } {\n return { index: index + 1, total: this.items().length };\n }\n}\n\nexport type { WrSortableCanEnter, WrSortableMoveEnd, WrSortableMoveEvent, WrSortableReorderEvent } from './types';\n","<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\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 { CdkDrag } from '@angular/cdk/drag-drop';\nimport { DOCUMENT } from '@angular/common';\nimport { Component, DestroyRef, ElementRef, ViewEncapsulation, computed, effect, inject } from '@angular/core';\n\nimport { wrCheckStyles, wrWatchDragCancel } from 'ngwr/utils';\n\nimport { WR_SORTABLE_LIST } from './tokens';\n\n/**\n * One row of a {@link WrSortableList}. Write the loop yourself and put whatever\n * the row shows inside it.\n *\n * It replaced a single unnamed `<ng-template let-row let-i=\"index\">` that the\n * list rendered per item. Two things were wrong with that. The template had no\n * name, so nothing in the markup said what the context variables were or where\n * they came from — a reader had to open the component to learn that `let-row`\n * is the item and `let-i` the index. And a row could not carry anything of its\n * own: every per-row decision had to be an input on the LIST, or a branch\n * inside one template.\n *\n * The row is the tab stop, so the keyboard contract lives here: Space or Enter\n * picks it up, the arrows move it, Space or Enter drops it, Escape puts it\n * back. The list owns the array and the announcements, and this delegates to\n * it — an item knows its own position and nothing else.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle>≡</span>\n * {{ row.label }}\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n *\n * @see https://ngwr.dev/reference/components/sortable-list\n */\n@Component({\n selector: 'wr-sortable-item',\n template: '<ng-content />',\n encapsulation: ViewEncapsulation.None,\n hostDirectives: [CdkDrag],\n host: {\n class: 'wr-sortable-list__item',\n role: 'listitem',\n '[class.wr-sortable-list__item--grabbed]': 'grabbed()',\n '[attr.tabindex]': 'list.disabled() ? null : 0',\n '[attr.aria-describedby]': 'list.disabled() ? null : list.keyHelpId',\n '(keydown)': 'onKeydown($event)',\n '(focusout)': 'list.onRowFocusout()',\n },\n})\nexport class WrSortableItem {\n /** @internal The list this row belongs to. Read by the host bindings above. */\n protected readonly list = inject(WR_SORTABLE_LIST);\n\n private readonly drag = inject(CdkDrag);\n\n /** @internal */\n readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /**\n * Position among the list's rows, which IS the index into `items()`: the\n * consumer's own loop renders them in that order.\n *\n * `positionOf` resolves by DOCUMENT ORDER and is keyed on the `items` ARRAY,\n * not its length: a reorder keeps the count, so a length-keyed index stayed\n * on the slot the row had left, the highlight stayed behind with it, and a\n * second pick-up of the same row moved its old neighbour instead. Host\n * bindings run after the consumer's `@for` has moved the nodes, so the\n * recomputation reads the new order.\n */\n protected readonly index = computed(() => this.list.positionOf(this));\n\n protected readonly grabbed = computed(() => this.list.grabbedIndex() === this.index());\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('sortable-list');\n this.list.register(this);\n\n // Assigned rather than bound, because these belong to the LIST and a host\n // binding cannot reach another directive's input. `CdkDrag` reads all\n // three as plain properties on every gesture, so writing them from an\n // effect is enough and a runtime change takes effect on the next drag.\n effect(() => {\n this.drag.disabled = this.list.disabled();\n this.drag.lockAxis = this.list.lockAxis() ?? null;\n this.drag.dragStartDelay = this.list.dragStartDelay();\n });\n\n // Escape cancels a pointer drag; CDK has no cancel of its own.\n const doc = inject(DOCUMENT);\n let stopCancel: (() => void) | null = null;\n this.drag.started.subscribe(event => {\n stopCancel?.();\n stopCancel = wrWatchDragCancel(doc, event.event, () => this.list.cancelDrag(this.drag));\n });\n this.drag.ended.subscribe(() => {\n stopCancel?.();\n stopCancel = null;\n });\n inject(DestroyRef).onDestroy(() => stopCancel?.());\n\n // What a connected list's `canEnter` is asked about.\n effect(() => {\n this.drag.data = this.list.items()[this.index()];\n });\n }\n\n /**\n * @internal Resolves the position at the moment of the key, off the DOM,\n * rather than through the cached `index`: nothing has to have rendered\n * between two presses for the answer to be right.\n */\n protected onKeydown(event: KeyboardEvent): void {\n this.list.onRowKeydown(event, this.list.indexOf(this));\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 { CdkDragHandle } from '@angular/cdk/drag-drop';\nimport { Directive } from '@angular/core';\n\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Drag handle for {@link WrSortableList} (and any nested `cdkDrag`).\n * Composes CDK's `cdkDragHandle` via `hostDirectives` so consumers don't\n * need to import the CDK selector directly.\n *\n * @example\n * ```html\n * <wr-sortable-list [(items)]=\"rows\">\n * @for (row of rows(); track row.id) {\n * <wr-sortable-item>\n * <span wrDragHandle class=\"grip\">≡</span>\n * <span>{{ row.label }}</span>\n * </wr-sortable-item>\n * }\n * </wr-sortable-list>\n * ```\n */\n@Directive({\n selector: '[wrDragHandle]',\n hostDirectives: [CdkDragHandle],\n host: { class: 'wr-drag-handle' },\n})\nexport class WrDragHandle {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('sortable-list');\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAa,mBAAmB,IAAI,eAAsC,kBAAkB;AAS5F,MAAa,oBAAoB,IAAI,eAA0D,qBAAqB;CAClH,YAAY;CACZ,eAAe,OAAkC,CAAA,CAAE;AACpD,CAAA;;;;;;;ACOD,SAAS,QAAQ,GAAgB,GAAc;CAE7C,QAAQ,EAAE,wBAAwB,CAAC,IAAI,KAAK,iCAAiC;AAC/E;AAGA,IAAI,kBAAkB;AAoEtB,IAAa,iBAAb,MAAa,eAAc;CAEhB,QAAQ,MAAM,SAAe,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAG7B,cAAc,MAAiC,YAAW,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CAG1D,WAAW,MAAM,OAAK;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAAI,WAAW;CAAqB,CAAA;CAG1D,WAAW,MAA6B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;CAUlD,iBAAiB,MAAiD;EAAE,OAAO;EAAK,OAAO;CAAC,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,iBAAA,CAAA,+BAAA,CAAA,CAAA;CAM3F,QAAQ,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,QAAA,CAAA,+BAAA,CAAA,CAAA;CAOlC,WAAW,M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qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,MAAA,EAAA,gBAAA,iBAAA;EAAA,gBAAA,CAAA,EAAA,WAAA,GAAA,cAAA,CAAA;EAAA,UAAA;CAAA,CAAA;;AAAZ,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EALxB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,gBAAgB,CAAC,aAAa;GAC9B,MAAM,EAAE,OAAO,iBAAgB;EAChC,CAAA"}
@@ -64,7 +64,7 @@ var WrSpeedDial = class WrSpeedDial {
64
64
  }
65
65
  static ɵfac = i0.ɵɵngDeclareFactory({
66
66
  minVersion: "12.0.0",
67
- version: "22.2.6",
67
+ version: "22.3.0",
68
68
  ngImport: i0,
69
69
  type: WrSpeedDial,
70
70
  deps: [],
@@ -72,7 +72,7 @@ var WrSpeedDial = class WrSpeedDial {
72
72
  });
73
73
  static ɵcmp = i0.ɵɵngDeclareComponent({
74
74
  minVersion: "17.0.0",
75
- version: "22.2.6",
75
+ version: "22.3.0",
76
76
  type: WrSpeedDial,
77
77
  isStandalone: true,
78
78
  selector: "wr-speed-dial",
@@ -156,7 +156,7 @@ var WrSpeedDial = class WrSpeedDial {
156
156
  };
157
157
  i0.ɵɵngDeclareClassMetadata({
158
158
  minVersion: "12.0.0",
159
- version: "22.2.6",
159
+ version: "22.3.0",
160
160
  ngImport: i0,
161
161
  type: WrSpeedDial,
162
162
  decorators: [{
@@ -21,7 +21,7 @@ var WrSpinner = class WrSpinner {
21
21
  }, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
22
22
  static ɵfac = i0.ɵɵngDeclareFactory({
23
23
  minVersion: "12.0.0",
24
- version: "22.2.6",
24
+ version: "22.3.0",
25
25
  ngImport: i0,
26
26
  type: WrSpinner,
27
27
  deps: [],
@@ -29,7 +29,7 @@ var WrSpinner = class WrSpinner {
29
29
  });
30
30
  static ɵcmp = i0.ɵɵngDeclareComponent({
31
31
  minVersion: "17.1.0",
32
- version: "22.2.6",
32
+ version: "22.3.0",
33
33
  type: WrSpinner,
34
34
  isStandalone: true,
35
35
  selector: "wr-spinner",
@@ -64,7 +64,7 @@ var WrSpinner = class WrSpinner {
64
64
  };
65
65
  i0.ɵɵngDeclareClassMetadata({
66
66
  minVersion: "12.0.0",
67
- version: "22.2.6",
67
+ version: "22.3.0",
68
68
  ngImport: i0,
69
69
  type: WrSpinner,
70
70
  decorators: [{
@@ -79,7 +79,7 @@ var WrSplitter = class WrSplitter {
79
79
  }
80
80
  static ɵfac = i0.ɵɵngDeclareFactory({
81
81
  minVersion: "12.0.0",
82
- version: "22.2.6",
82
+ version: "22.3.0",
83
83
  ngImport: i0,
84
84
  type: WrSplitter,
85
85
  deps: [],
@@ -87,7 +87,7 @@ var WrSplitter = class WrSplitter {
87
87
  });
88
88
  static ɵcmp = i0.ɵɵngDeclareComponent({
89
89
  minVersion: "17.1.0",
90
- version: "22.2.6",
90
+ version: "22.3.0",
91
91
  type: WrSplitter,
92
92
  isStandalone: true,
93
93
  selector: "wr-splitter",
@@ -147,7 +147,7 @@ var WrSplitter = class WrSplitter {
147
147
  };
148
148
  i0.ɵɵngDeclareClassMetadata({
149
149
  minVersion: "12.0.0",
150
- version: "22.2.6",
150
+ version: "22.3.0",
151
151
  ngImport: i0,
152
152
  type: WrSplitter,
153
153
  decorators: [{