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
@@ -40,7 +40,7 @@ var WrBytes = class WrBytes {
40
40
  }
41
41
  static ɵfac = i0.ɵɵngDeclareFactory({
42
42
  minVersion: "12.0.0",
43
- version: "22.2.6",
43
+ version: "22.3.0",
44
44
  ngImport: i0,
45
45
  type: WrBytes,
46
46
  deps: [],
@@ -48,7 +48,7 @@ var WrBytes = class WrBytes {
48
48
  });
49
49
  static ɵpipe = i0.ɵɵngDeclarePipe({
50
50
  minVersion: "14.0.0",
51
- version: "22.2.6",
51
+ version: "22.3.0",
52
52
  ngImport: i0,
53
53
  type: WrBytes,
54
54
  isStandalone: true,
@@ -57,7 +57,7 @@ var WrBytes = class WrBytes {
57
57
  };
58
58
  i0.ɵɵngDeclareClassMetadata({
59
59
  minVersion: "12.0.0",
60
- version: "22.2.6",
60
+ version: "22.3.0",
61
61
  ngImport: i0,
62
62
  type: WrBytes,
63
63
  decorators: [{
@@ -114,7 +114,7 @@ var WrDate = class WrDate {
114
114
  }
115
115
  static ɵfac = i0.ɵɵngDeclareFactory({
116
116
  minVersion: "12.0.0",
117
- version: "22.2.6",
117
+ version: "22.3.0",
118
118
  ngImport: i0,
119
119
  type: WrDate,
120
120
  deps: [],
@@ -122,7 +122,7 @@ var WrDate = class WrDate {
122
122
  });
123
123
  static ɵpipe = i0.ɵɵngDeclarePipe({
124
124
  minVersion: "14.0.0",
125
- version: "22.2.6",
125
+ version: "22.3.0",
126
126
  ngImport: i0,
127
127
  type: WrDate,
128
128
  isStandalone: true,
@@ -132,7 +132,7 @@ var WrDate = class WrDate {
132
132
  };
133
133
  i0.ɵɵngDeclareClassMetadata({
134
134
  minVersion: "12.0.0",
135
- version: "22.2.6",
135
+ version: "22.3.0",
136
136
  ngImport: i0,
137
137
  type: WrDate,
138
138
  decorators: [{
@@ -235,7 +235,7 @@ var WrDuration = class WrDuration {
235
235
  }
236
236
  static ɵfac = i0.ɵɵngDeclareFactory({
237
237
  minVersion: "12.0.0",
238
- version: "22.2.6",
238
+ version: "22.3.0",
239
239
  ngImport: i0,
240
240
  type: WrDuration,
241
241
  deps: [],
@@ -243,7 +243,7 @@ var WrDuration = class WrDuration {
243
243
  });
244
244
  static ɵpipe = i0.ɵɵngDeclarePipe({
245
245
  minVersion: "14.0.0",
246
- version: "22.2.6",
246
+ version: "22.3.0",
247
247
  ngImport: i0,
248
248
  type: WrDuration,
249
249
  isStandalone: true,
@@ -252,7 +252,7 @@ var WrDuration = class WrDuration {
252
252
  };
253
253
  i0.ɵɵngDeclareClassMetadata({
254
254
  minVersion: "12.0.0",
255
- version: "22.2.6",
255
+ version: "22.3.0",
256
256
  ngImport: i0,
257
257
  type: WrDuration,
258
258
  decorators: [{
@@ -273,7 +273,7 @@ var WrInitials = class WrInitials {
273
273
  }
274
274
  static ɵfac = i0.ɵɵngDeclareFactory({
275
275
  minVersion: "12.0.0",
276
- version: "22.2.6",
276
+ version: "22.3.0",
277
277
  ngImport: i0,
278
278
  type: WrInitials,
279
279
  deps: [],
@@ -281,7 +281,7 @@ var WrInitials = class WrInitials {
281
281
  });
282
282
  static ɵpipe = i0.ɵɵngDeclarePipe({
283
283
  minVersion: "14.0.0",
284
- version: "22.2.6",
284
+ version: "22.3.0",
285
285
  ngImport: i0,
286
286
  type: WrInitials,
287
287
  isStandalone: true,
@@ -290,7 +290,7 @@ var WrInitials = class WrInitials {
290
290
  };
291
291
  i0.ɵɵngDeclareClassMetadata({
292
292
  minVersion: "12.0.0",
293
- version: "22.2.6",
293
+ version: "22.3.0",
294
294
  ngImport: i0,
295
295
  type: WrInitials,
296
296
  decorators: [{
@@ -320,7 +320,7 @@ var WrMark = class WrMark {
320
320
  }
321
321
  static ɵfac = i0.ɵɵngDeclareFactory({
322
322
  minVersion: "12.0.0",
323
- version: "22.2.6",
323
+ version: "22.3.0",
324
324
  ngImport: i0,
325
325
  type: WrMark,
326
326
  deps: [],
@@ -328,7 +328,7 @@ var WrMark = class WrMark {
328
328
  });
329
329
  static ɵpipe = i0.ɵɵngDeclarePipe({
330
330
  minVersion: "14.0.0",
331
- version: "22.2.6",
331
+ version: "22.3.0",
332
332
  ngImport: i0,
333
333
  type: WrMark,
334
334
  isStandalone: true,
@@ -337,7 +337,7 @@ var WrMark = class WrMark {
337
337
  };
338
338
  i0.ɵɵngDeclareClassMetadata({
339
339
  minVersion: "12.0.0",
340
- version: "22.2.6",
340
+ version: "22.3.0",
341
341
  ngImport: i0,
342
342
  type: WrMark,
343
343
  decorators: [{
@@ -381,7 +381,7 @@ var WrNumber = class WrNumber {
381
381
  }
382
382
  static ɵfac = i0.ɵɵngDeclareFactory({
383
383
  minVersion: "12.0.0",
384
- version: "22.2.6",
384
+ version: "22.3.0",
385
385
  ngImport: i0,
386
386
  type: WrNumber,
387
387
  deps: [],
@@ -389,7 +389,7 @@ var WrNumber = class WrNumber {
389
389
  });
390
390
  static ɵpipe = i0.ɵɵngDeclarePipe({
391
391
  minVersion: "14.0.0",
392
- version: "22.2.6",
392
+ version: "22.3.0",
393
393
  ngImport: i0,
394
394
  type: WrNumber,
395
395
  isStandalone: true,
@@ -398,7 +398,7 @@ var WrNumber = class WrNumber {
398
398
  };
399
399
  i0.ɵɵngDeclareClassMetadata({
400
400
  minVersion: "12.0.0",
401
- version: "22.2.6",
401
+ version: "22.3.0",
402
402
  ngImport: i0,
403
403
  type: WrNumber,
404
404
  decorators: [{
@@ -426,7 +426,7 @@ var WrPlural = class WrPlural {
426
426
  }
427
427
  static ɵfac = i0.ɵɵngDeclareFactory({
428
428
  minVersion: "12.0.0",
429
- version: "22.2.6",
429
+ version: "22.3.0",
430
430
  ngImport: i0,
431
431
  type: WrPlural,
432
432
  deps: [],
@@ -434,7 +434,7 @@ var WrPlural = class WrPlural {
434
434
  });
435
435
  static ɵpipe = i0.ɵɵngDeclarePipe({
436
436
  minVersion: "14.0.0",
437
- version: "22.2.6",
437
+ version: "22.3.0",
438
438
  ngImport: i0,
439
439
  type: WrPlural,
440
440
  isStandalone: true,
@@ -443,7 +443,7 @@ var WrPlural = class WrPlural {
443
443
  };
444
444
  i0.ɵɵngDeclareClassMetadata({
445
445
  minVersion: "12.0.0",
446
- version: "22.2.6",
446
+ version: "22.3.0",
447
447
  ngImport: i0,
448
448
  type: WrPlural,
449
449
  decorators: [{
@@ -463,7 +463,7 @@ var WrRange = class WrRange {
463
463
  }
464
464
  static ɵfac = i0.ɵɵngDeclareFactory({
465
465
  minVersion: "12.0.0",
466
- version: "22.2.6",
466
+ version: "22.3.0",
467
467
  ngImport: i0,
468
468
  type: WrRange,
469
469
  deps: [],
@@ -471,7 +471,7 @@ var WrRange = class WrRange {
471
471
  });
472
472
  static ɵpipe = i0.ɵɵngDeclarePipe({
473
473
  minVersion: "14.0.0",
474
- version: "22.2.6",
474
+ version: "22.3.0",
475
475
  ngImport: i0,
476
476
  type: WrRange,
477
477
  isStandalone: true,
@@ -480,7 +480,7 @@ var WrRange = class WrRange {
480
480
  };
481
481
  i0.ɵɵngDeclareClassMetadata({
482
482
  minVersion: "12.0.0",
483
- version: "22.2.6",
483
+ version: "22.3.0",
484
484
  ngImport: i0,
485
485
  type: WrRange,
486
486
  decorators: [{
@@ -511,7 +511,7 @@ var WrTruncate = class WrTruncate {
511
511
  }
512
512
  static ɵfac = i0.ɵɵngDeclareFactory({
513
513
  minVersion: "12.0.0",
514
- version: "22.2.6",
514
+ version: "22.3.0",
515
515
  ngImport: i0,
516
516
  type: WrTruncate,
517
517
  deps: [],
@@ -519,7 +519,7 @@ var WrTruncate = class WrTruncate {
519
519
  });
520
520
  static ɵpipe = i0.ɵɵngDeclarePipe({
521
521
  minVersion: "14.0.0",
522
- version: "22.2.6",
522
+ version: "22.3.0",
523
523
  ngImport: i0,
524
524
  type: WrTruncate,
525
525
  isStandalone: true,
@@ -528,7 +528,7 @@ var WrTruncate = class WrTruncate {
528
528
  };
529
529
  i0.ɵɵngDeclareClassMetadata({
530
530
  minVersion: "12.0.0",
531
- version: "22.2.6",
531
+ version: "22.3.0",
532
532
  ngImport: i0,
533
533
  type: WrTruncate,
534
534
  decorators: [{
@@ -78,7 +78,7 @@ var WrPlatform = class WrPlatform {
78
78
  }
79
79
  static ɵfac = i0.ɵɵngDeclareFactory({
80
80
  minVersion: "12.0.0",
81
- version: "22.2.6",
81
+ version: "22.3.0",
82
82
  ngImport: i0,
83
83
  type: WrPlatform,
84
84
  deps: [],
@@ -86,14 +86,14 @@ var WrPlatform = class WrPlatform {
86
86
  });
87
87
  static ɵprov = i0.ɵɵngDeclareService({
88
88
  minVersion: "22.0.0",
89
- version: "22.2.6",
89
+ version: "22.3.0",
90
90
  ngImport: i0,
91
91
  type: WrPlatform
92
92
  });
93
93
  };
94
94
  i0.ɵɵngDeclareClassMetadata({
95
95
  minVersion: "12.0.0",
96
- version: "22.2.6",
96
+ version: "22.3.0",
97
97
  ngImport: i0,
98
98
  type: WrPlatform,
99
99
  decorators: [{ type: Service }]
@@ -159,7 +159,7 @@ var WrHaptics = class WrHaptics {
159
159
  }
160
160
  static ɵfac = i0.ɵɵngDeclareFactory({
161
161
  minVersion: "12.0.0",
162
- version: "22.2.6",
162
+ version: "22.3.0",
163
163
  ngImport: i0,
164
164
  type: WrHaptics,
165
165
  deps: [],
@@ -167,14 +167,14 @@ var WrHaptics = class WrHaptics {
167
167
  });
168
168
  static ɵprov = i0.ɵɵngDeclareService({
169
169
  minVersion: "22.0.0",
170
- version: "22.2.6",
170
+ version: "22.3.0",
171
171
  ngImport: i0,
172
172
  type: WrHaptics
173
173
  });
174
174
  };
175
175
  i0.ɵɵngDeclareClassMetadata({
176
176
  minVersion: "12.0.0",
177
- version: "22.2.6",
177
+ version: "22.3.0",
178
178
  ngImport: i0,
179
179
  type: WrHaptics,
180
180
  decorators: [{ type: Service }]
@@ -228,7 +228,7 @@ var WrPollTicker = class WrPollTicker {
228
228
  }
229
229
  static ɵfac = i0.ɵɵngDeclareFactory({
230
230
  minVersion: "12.0.0",
231
- version: "22.2.6",
231
+ version: "22.3.0",
232
232
  ngImport: i0,
233
233
  type: WrPollTicker,
234
234
  deps: [],
@@ -236,14 +236,14 @@ var WrPollTicker = class WrPollTicker {
236
236
  });
237
237
  static ɵprov = i0.ɵɵngDeclareService({
238
238
  minVersion: "22.0.0",
239
- version: "22.2.6",
239
+ version: "22.3.0",
240
240
  ngImport: i0,
241
241
  type: WrPollTicker
242
242
  });
243
243
  };
244
244
  i0.ɵɵngDeclareClassMetadata({
245
245
  minVersion: "12.0.0",
246
- version: "22.2.6",
246
+ version: "22.3.0",
247
247
  ngImport: i0,
248
248
  type: WrPollTicker,
249
249
  decorators: [{ type: Service }],
@@ -29,7 +29,7 @@ var WrPopconfirmPanel = class WrPopconfirmPanel {
29
29
  cancelled = output();
30
30
  static ɵfac = i0.ɵɵngDeclareFactory({
31
31
  minVersion: "12.0.0",
32
- version: "22.2.6",
32
+ version: "22.3.0",
33
33
  ngImport: i0,
34
34
  type: WrPopconfirmPanel,
35
35
  deps: [],
@@ -37,7 +37,7 @@ var WrPopconfirmPanel = class WrPopconfirmPanel {
37
37
  });
38
38
  static ɵcmp = i0.ɵɵngDeclareComponent({
39
39
  minVersion: "17.1.0",
40
- version: "22.2.6",
40
+ version: "22.3.0",
41
41
  type: WrPopconfirmPanel,
42
42
  isStandalone: true,
43
43
  selector: "wr-popconfirm",
@@ -97,6 +97,7 @@ var WrPopconfirmPanel = class WrPopconfirmPanel {
97
97
  "iconPosition",
98
98
  "disabled",
99
99
  "outlined",
100
+ "ghost",
100
101
  "block",
101
102
  "loading",
102
103
  "disabledWhenLoading"
@@ -107,7 +108,7 @@ var WrPopconfirmPanel = class WrPopconfirmPanel {
107
108
  };
108
109
  i0.ɵɵngDeclareClassMetadata({
109
110
  minVersion: "12.0.0",
110
- version: "22.2.6",
111
+ version: "22.3.0",
111
112
  ngImport: i0,
112
113
  type: WrPopconfirmPanel,
113
114
  decorators: [{
@@ -351,7 +352,7 @@ var WrPopconfirm = class WrPopconfirm {
351
352
  }
352
353
  static ɵfac = i0.ɵɵngDeclareFactory({
353
354
  minVersion: "12.0.0",
354
- version: "22.2.6",
355
+ version: "22.3.0",
355
356
  ngImport: i0,
356
357
  type: WrPopconfirm,
357
358
  deps: [],
@@ -359,7 +360,7 @@ var WrPopconfirm = class WrPopconfirm {
359
360
  });
360
361
  static ɵdir = i0.ɵɵngDeclareDirective({
361
362
  minVersion: "17.1.0",
362
- version: "22.2.6",
363
+ version: "22.3.0",
363
364
  type: WrPopconfirm,
364
365
  isStandalone: true,
365
366
  selector: "[wrPopconfirm]",
@@ -451,7 +452,7 @@ var WrPopconfirm = class WrPopconfirm {
451
452
  };
452
453
  i0.ɵɵngDeclareClassMetadata({
453
454
  minVersion: "12.0.0",
454
- version: "22.2.6",
455
+ version: "22.3.0",
455
456
  ngImport: i0,
456
457
  type: WrPopconfirm,
457
458
  decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-popconfirm.mjs","names":[],"sources":["../../../projects/lib/popconfirm/popconfirm-panel.ts","../../../projects/lib/popconfirm/popconfirm-panel.html","../../../projects/lib/popconfirm/types/popconfirm-position.ts","../../../projects/lib/popconfirm/popconfirm.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 { Component, ViewEncapsulation, input, output } from '@angular/core';\n\nimport { WrButton } from 'ngwr/button';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Confirmation panel rendered inside the popconfirm overlay. Not part\n * of the public template API — use `[wrPopconfirm]` instead.\n *\n * @internal\n */\n@Component({\n selector: 'wr-popconfirm',\n templateUrl: './popconfirm-panel.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-popconfirm' },\n imports: [WrButton],\n})\nexport class WrPopconfirmPanel {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('popconfirm');\n }\n\n readonly message = input.required<string>();\n\n /** Id the anchoring directive points `aria-describedby` at. */\n readonly messageId = input<string | null>(null);\n readonly confirmText = input<string>('Confirm');\n readonly cancelText = input<string>('Cancel');\n readonly confirmColor = input<WrColor>('primary');\n\n readonly confirmed = output<void>();\n readonly cancelled = output<void>();\n}\n","<p class=\"wr-popconfirm__message\" [attr.id]=\"messageId()\">{{ message() }}</p>\n\n<div class=\"wr-popconfirm__actions\">\n <wr-btn class=\"wr-popconfirm__action wr-popconfirm__action--cancel\" size=\"sm\" (click)=\"cancelled.emit()\">\n {{ cancelText() }}\n </wr-btn>\n <wr-btn\n class=\"wr-popconfirm__action wr-popconfirm__action--confirm\"\n size=\"sm\"\n [color]=\"confirmColor()\"\n (click)=\"confirmed.emit()\"\n >\n {{ confirmText() }}\n </wr-btn>\n</div>\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 type { ConnectedPosition } from '@angular/cdk/overlay';\n\nimport { type WrAnchoredPosition, wrAnchoredPositions } from 'ngwr/overlay';\n\n/** Where the popconfirm panel sits relative to its trigger. */\nexport type WrPopconfirmPosition = WrAnchoredPosition;\n\n/**\n * The list `withPositions()` wants: the shared fallback chain `wr-popover`\n * walks, with its 8px gap, every link tagged with the pane class of the\n * placement it puts the panel on, so the arrow\n * (`.wr-popconfirm-overlay--<placement>`) follows a flip. The CDK applies a\n * position's own `panelClass` when it lands on it and clears it on the next one;\n * the gap is an offset rather than padding, so taking the class off before it\n * measures changes nothing.\n *\n * @internal\n */\nexport function wrPopconfirmPositions(position: WrPopconfirmPosition): ConnectedPosition[] {\n return wrAnchoredPositions(position, { gap: 8, paneClass: 'wr-popconfirm-overlay' });\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 { type FocusTrap, FocusMonitor, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type OverlayRef, ScrollStrategyOptions } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n ViewContainerRef,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport {\n WR_OVERLAY,\n WrOutsideClick,\n type WrOverlayAutoFocus,\n wrFocusOverlay,\n wrFollowDirection,\n wrMirrorOffsets,\n} from 'ngwr/overlay';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrToClassList, wrCheckStyles, type WrClassInput, wrNoteFocusReturn, wrRestoreFocus } from 'ngwr/utils';\n\nimport { WrPopconfirmPanel } from './popconfirm-panel';\nimport { type WrPopconfirmPosition, wrPopconfirmPositions } from './types';\n\n/**\n * How close, in px, `withPush` may park the panel to the viewport edge — the\n * `--wr-space-sm` step, and the value `wr-popover` uses.\n */\nconst VIEWPORT_MARGIN = 8;\n\n/**\n * Small \"Are you sure?\" panel anchored to its trigger. Fires `confirmed`\n * or `cancelled` and closes automatically. Built on CDK Overlay.\n *\n * @example\n * ```html\n * <wr-btn\n * color=\"danger\"\n * [wrPopconfirm]=\"'Delete this item?'\"\n * confirmColor=\"danger\"\n * confirmText=\"Delete\"\n * (confirmed)=\"remove()\"\n * >Delete</wr-btn>\n * ```\n *\n * @see https://ngwr.dev/reference/components/popconfirm\n */\nlet popconfirmUid = 0;\n\n@Directive({\n selector: '[wrPopconfirm]',\n exportAs: 'wrPopconfirm',\n host: {\n // Marks the trigger the way `[wrPopover]` and `[wrDropdown]` mark theirs. The\n // question is normally BOUND (`[wrPopconfirm]=\"question\"`), which leaves no\n // attribute in the DOM at all, so without this there is nothing to find a\n // trigger by once the panel is shut.\n class: 'wr-popconfirm-trigger',\n '[class.wr-popconfirm-trigger--disabled]': 'disabled()',\n '(click)': 'toggle($event)',\n '(keydown)': 'onTriggerKeydown($event)',\n '[attr.aria-haspopup]': 'disabled() ? null : \"dialog\"',\n '[attr.aria-expanded]': 'disabled() ? null : isOpen()',\n // Names the dialog this trigger opened, as every other overlay trigger in the\n // catalog does. `aria-haspopup=\"dialog\"` promises a dialog and `aria-expanded`\n // says it is showing; without the id, which one is left to guess.\n '[attr.aria-controls]': 'isOpen() ? panelId : null',\n },\n})\nexport class WrPopconfirm {\n /** Confirmation message. */\n readonly message = input.required<string>({ alias: 'wrPopconfirm' });\n\n /**\n * Anchor side and alignment, the twelve placements `wr-popover` takes; the\n * panel flips to another side when this one has no room.\n * @default 'top'\n */\n readonly position = input<WrPopconfirmPosition>('top');\n\n /** Label for the confirm button. @default 'Confirm' */\n /** Confirm button text. Falls back to `popconfirm.confirm`. */\n readonly confirmText = input<string | null>(null);\n\n /** Label for the cancel button. @default 'Cancel' */\n /** Cancel button text. Falls back to `popconfirm.cancel`. */\n readonly cancelText = input<string | null>(null);\n\n /**\n * Accessible name of the confirmation dialog. `role=\"dialog\"` with no name\n * announces as a bare \"dialog\". Falls back to `popconfirm.label`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n // The catalog has carried these translated for as long as the component has\n // existed; the labels were hard-coded English defaults, so a localized app got\n // English buttons with the right strings sitting one file away.\n private readonly resolvedConfirm = useI18nText(this.confirmText, 'popconfirm.confirm', 'Confirm');\n private readonly resolvedCancel = useI18nText(this.cancelText, 'popconfirm.cancel', 'Cancel');\n private readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'popconfirm.label', 'Confirm action');\n\n /** Color of the confirm button. @default 'primary' */\n readonly confirmColor = input<WrColor>('primary');\n\n /**\n * Extra CSS classes for the confirmation bubble's overlay pane.\n *\n * The pane is appended to the overlay container, not to this component, so\n * nothing in the consumer's own template encloses it and no descendant rule\n * written around the trigger can reach it. This input is the only per-instance\n * handle on it. A space-separated string works as well as an array.\n */\n readonly panelClass = input<WrClassInput>(null);\n\n /**\n * Where focus goes when the panel opens. `'dialog'` puts it on the panel\n * itself, with no ring, so Tab reaches Cancel and no button is lit;\n * `'first-tabbable'` puts it on Cancel; `false` leaves it on the trigger,\n * and Tab from there walks into the panel. Closing hands focus back to the\n * trigger in every mode.\n *\n * Prefixed because the directive sits on your own element, where an\n * `autoFocus` attribute would also be the native `autofocus`.\n * @default 'dialog'\n */\n readonly autoFocus = input<WrOverlayAutoFocus>('dialog', { alias: 'wrPopconfirmAutoFocus' });\n\n /**\n * Turns the question off: a click on the host opens nothing and is left to\n * propagate, `open()` does nothing, and an open panel closes without\n * `cancelled`. The host publishes no popup ARIA meanwhile and carries\n * `wr-popconfirm-trigger--disabled`.\n *\n * The host's own `disabled` stays yours: the directive never sets it, so the\n * button still takes its own `(click)` — the way to skip the question when\n * there is nothing to confirm.\n *\n * @default false\n */\n readonly disabled = input(false, { alias: 'wrPopconfirmDisabled', transform: coerceBooleanProperty });\n\n /** Fires when the user clicks confirm. */\n readonly confirmed = output<void>();\n\n /** Fires when the user clicks cancel or dismisses the overlay. */\n readonly cancelled = output<void>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly focusTraps = inject(FocusTrapFactory);\n private readonly overlay = inject(WR_OVERLAY);\n private readonly dir = inject(Directionality, { optional: true });\n private readonly outsideClick = inject(WrOutsideClick);\n private readonly vcr = inject(ViewContainerRef);\n private readonly scrollStrategies = inject(ScrollStrategyOptions);\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly openState = signal(false);\n\n /** Whether the popconfirm is open. Read-only: `open()` and `close()` change it. */\n readonly isOpen = this.openState.asReadonly();\n\n private overlayRef: OverlayRef | null = null;\n private finder: FocusTrap | null = null;\n\n private readonly uid = ++popconfirmUid;\n\n /** @internal Public so the host binding can read it. */\n protected readonly panelId = `wr-popconfirm-${this.uid}`;\n\n private readonly messageId = `wr-popconfirm-message-${this.uid}`;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('popconfirm');\n this.destroyRef.onDestroy(() => this.dispose());\n effect(() => {\n if (this.disabled()) this.close();\n });\n }\n\n /** @internal */\n protected toggle(event: MouseEvent): void {\n if (this.disabled()) return;\n event.stopPropagation();\n if (this.overlayRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /** Open the panel. Does nothing while the trigger is disabled. */\n open(): void {\n if (this.disabled() || this.overlayRef) return;\n\n // Read ONCE, here, and mirror this list rather than the input: the side is\n // chosen at open and a later `position` write moves nothing, so a follower\n // that re-read the signal would let a direction flip quietly adopt a\n // position the panel never opened with.\n //\n // The list is a fallback CHAIN, each link tagged with its own\n // `wr-popconfirm-overlay--<side>` class, so the panel flips when the side\n // asked for has no room and the arrow names the side it landed on. The\n // viewport margin is `wr-popover`'s, for the same reason: without it a pushed\n // panel parks its border on the glass.\n const positions = wrPopconfirmPositions(this.position());\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(wrMirrorOffsets(positions, this.isRtl()))\n .withPush(true)\n .withViewportMargin(VIEWPORT_MARGIN);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.scrollStrategies.reposition(),\n panelClass: wrToClassList('wr-popconfirm-overlay', this.panelClass()),\n });\n\n // `isRtl()` above answered once, at `create()`, and so did the CDK's own\n // capture of the direction — neither is revisited if the app flips while the\n // question is still on screen. Both halves have to move: the `dir` on the\n // host, so `start` / `end` resolve to the other edge, and the mirrored list,\n // because `offsetX` is added to the final PHYSICAL x. Leave the list behind\n // and the 8px gap on `left` / `right` becomes an 8px overlap over the very\n // control the panel is asking about.\n wrFollowDirection(this.overlayRef, this.dir, this.injector, direction =>\n positionStrategy.withPositions(wrMirrorOffsets(positions, direction === 'rtl'))\n );\n\n // Non-modal by choice, like `wr-popover`: an outside click or Escape closes it,\n // so trapping focus would only make it harder to leave. It still needs a role, a\n // name and the question read out as its description.\n const pane = this.overlayRef.overlayElement;\n pane.id = this.panelId;\n pane.setAttribute('role', 'dialog');\n pane.setAttribute('aria-modal', 'false');\n pane.setAttribute('aria-label', this.resolvedAriaLabel());\n pane.setAttribute('aria-describedby', this.messageId);\n pane.tabIndex = -1;\n\n const portal = new ComponentPortal(WrPopconfirmPanel, this.vcr);\n const ref = this.overlayRef.attach(portal);\n ref.setInput('message', this.message());\n ref.setInput('messageId', this.messageId);\n ref.setInput('confirmText', this.resolvedConfirm());\n ref.setInput('cancelText', this.resolvedCancel());\n ref.setInput('confirmColor', this.confirmColor());\n ref.changeDetectorRef.detectChanges();\n // Focus has to be able to enter the panel: the overlay container sits at the\n // end of `<body>`, so Tab from the trigger went to the next thing on the PAGE\n // and the only way to confirm was unreachable. It enters on open as\n // `wrPopconfirmAutoFocus` says, and never onto a button unasked: the panel itself by\n // default, Cancel under `'first-tabbable'` (the action being confirmed is\n // usually the destructive one). Under `false` Tab on the trigger walks in,\n // see `onTriggerKeydown`.\n //\n // `deferAnchors`: the trap is only the finder `wrFocusOverlay` asks for. No\n // anchors go into the page and nothing is trapped.\n this.finder = this.focusTraps.create(pane, true);\n wrFocusOverlay(pane, this.finder, this.autoFocus(), this.injector);\n // And it has to LEAVE with the panel: Tab past Confirm went on to the end of\n // `<body>` and Shift+Tab before Cancel to the foot of the page, each with the\n // question still on screen and `aria-expanded` still true. See `onPaneKeydown`.\n pane.addEventListener('keydown', this.onPaneKeydown);\n pane.addEventListener('focusout', this.onPaneFocusOut);\n this.openState.set(true);\n\n ref.instance.confirmed.subscribe(() => {\n this.confirmed.emit();\n this.close();\n });\n ref.instance.cancelled.subscribe(() => this.dismiss());\n\n this.outsideClick\n .outsidePointerEvents(this.overlayRef)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (this.host.nativeElement.contains(event.target as Node)) return;\n this.dismiss();\n });\n\n this.overlayRef\n .keydownEvents()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.dismiss();\n }\n });\n }\n\n close(): void {\n this.dispose();\n }\n\n private dismiss(): void {\n if (!this.overlayRef) return;\n this.cancelled.emit();\n this.dispose();\n }\n\n private dispose(): void {\n if (!this.overlayRef) return;\n // Focus lives inside the panel while it is open, and removing the panel would\n // drop it to `<body>` — hand it back to the trigger instead, as `wr-dropdown`\n // does on Escape. Only when focus is still IN there: if the user has already\n // clicked elsewhere, taking it back would be stealing.\n const pane = this.overlayRef.overlayElement;\n const returnFocus = pane.contains(document.activeElement);\n // Before the dispose: Chromium fires `focusout` for a focused node as it is\n // removed, and the pane is about to be.\n pane.removeEventListener('keydown', this.onPaneKeydown);\n pane.removeEventListener('focusout', this.onPaneFocusOut);\n this.finder?.destroy();\n this.finder = null;\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.openState.set(false);\n if (returnFocus) wrRestoreFocus(this.host.nativeElement, this.focusMonitor);\n else wrNoteFocusReturn(this.host.nativeElement);\n }\n\n /**\n * Tab off either end of the panel dismisses it and takes focus back to the\n * trigger — `wr-popover`'s disclosure behaviour, for a non-modal panel whose\n * DOM sits nowhere near its trigger. Leaving is a dismissal, so `cancelled`\n * fires, as it does for Escape and an outside click.\n *\n * Forward, the trigger is focused WITHOUT `preventDefault`, so the browser's\n * own Tab runs on from there and lands on whatever follows the trigger, where a\n * panel rendered in place would have let it go. Backward, the trigger itself is\n * the destination, so the default is stopped. The panel holds two stops, Cancel\n * and Confirm, in that order.\n */\n private readonly onPaneKeydown = (event: KeyboardEvent): void => {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.key !== 'Tab' || event.defaultPrevented) return;\n const stops = [...pane.querySelectorAll<HTMLElement>('.wr-popconfirm__action')];\n const active = document.activeElement;\n if (event.shiftKey) {\n if (active !== pane && active !== stops[0]) return;\n event.preventDefault();\n } else if (active !== stops.at(-1)) {\n return;\n }\n wrRestoreFocus(this.host.nativeElement, this.focusMonitor);\n this.dismiss();\n };\n\n /**\n * Tab on the trigger while the panel is open walks into it, as it would into a\n * panel rendered beside the trigger. The way in when focus did not move on\n * open (`wrPopconfirmAutoFocus` is `false`).\n *\n * @internal\n */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.key !== 'Tab' || event.shiftKey || event.defaultPrevented) return;\n if (event.target !== this.host.nativeElement) return;\n event.preventDefault();\n (pane.querySelector<HTMLElement>('.wr-popconfirm__action') ?? pane).focus();\n }\n\n /**\n * Focus that leaves the panel by any other road (a click on something\n * focusable elsewhere) dismisses it too, and is left where it went. A `null`\n * destination is the window losing focus or a focused node being removed,\n * neither of which is leaving.\n */\n private readonly onPaneFocusOut = (event: FocusEvent): void => {\n const next = event.relatedTarget as Node | null;\n if (!next || this.holdsFocus(next)) return;\n this.dismiss();\n };\n\n /**\n * Whether focus on `node` still belongs to this panel: inside the pane, on the\n * trigger (a press there is about to toggle it), or in an overlay opened AFTER\n * this one — the stacking `wr-popover` and `WrOutsideClick` honour, so a\n * second panel raised by `open()` does not dismiss the first by taking focus.\n */\n private holdsFocus(node: Node): boolean {\n const ref = this.overlayRef;\n if (!ref) return false;\n if (ref.overlayElement.contains(node) || this.host.nativeElement.contains(node)) return true;\n const box = ref.hostElement;\n return (\n (box.parentElement?.contains(node) ?? false) &&\n // eslint-disable-next-line no-bitwise -- compareDocumentPosition answers with a bitmask\n (box.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0\n );\n }\n\n /**\n * Whether the app reads right-to-left.\n *\n * Optional inject: `Directionality` is root-provided, so this is never null in\n * an app — but a bare `TestBed` that provides nothing should still get a\n * component that works, and defaulting to LTR is the honest fallback.\n */\n private isRtl(): boolean {\n return this.dir?.value === 'rtl';\n }\n}\n"],"m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ACV,MAAM;IAKJ,OAAO;IACP,2CAA2C;IAC3C,WAAW;IACX,aAAa;IACb,wBAAwB;IACxB,wBAAwB;IAIxB,wBAAwB;GACzB;EACF,CAAA"}
1
+ {"version":3,"file":"ngwr-popconfirm.mjs","names":[],"sources":["../../../projects/lib/popconfirm/popconfirm-panel.ts","../../../projects/lib/popconfirm/popconfirm-panel.html","../../../projects/lib/popconfirm/types/popconfirm-position.ts","../../../projects/lib/popconfirm/popconfirm.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 { Component, ViewEncapsulation, input, output } from '@angular/core';\n\nimport { WrButton } from 'ngwr/button';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrCheckStyles } from 'ngwr/utils';\n\n/**\n * Confirmation panel rendered inside the popconfirm overlay. Not part\n * of the public template API — use `[wrPopconfirm]` instead.\n *\n * @internal\n */\n@Component({\n selector: 'wr-popconfirm',\n templateUrl: './popconfirm-panel.html',\n encapsulation: ViewEncapsulation.None,\n host: { class: 'wr-popconfirm' },\n imports: [WrButton],\n})\nexport class WrPopconfirmPanel {\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('popconfirm');\n }\n\n readonly message = input.required<string>();\n\n /** Id the anchoring directive points `aria-describedby` at. */\n readonly messageId = input<string | null>(null);\n readonly confirmText = input<string>('Confirm');\n readonly cancelText = input<string>('Cancel');\n readonly confirmColor = input<WrColor>('primary');\n\n readonly confirmed = output<void>();\n readonly cancelled = output<void>();\n}\n","<p class=\"wr-popconfirm__message\" [attr.id]=\"messageId()\">{{ message() }}</p>\n\n<div class=\"wr-popconfirm__actions\">\n <wr-btn class=\"wr-popconfirm__action wr-popconfirm__action--cancel\" size=\"sm\" (click)=\"cancelled.emit()\">\n {{ cancelText() }}\n </wr-btn>\n <wr-btn\n class=\"wr-popconfirm__action wr-popconfirm__action--confirm\"\n size=\"sm\"\n [color]=\"confirmColor()\"\n (click)=\"confirmed.emit()\"\n >\n {{ confirmText() }}\n </wr-btn>\n</div>\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 type { ConnectedPosition } from '@angular/cdk/overlay';\n\nimport { type WrAnchoredPosition, wrAnchoredPositions } from 'ngwr/overlay';\n\n/** Where the popconfirm panel sits relative to its trigger. */\nexport type WrPopconfirmPosition = WrAnchoredPosition;\n\n/**\n * The list `withPositions()` wants: the shared fallback chain `wr-popover`\n * walks, with its 8px gap, every link tagged with the pane class of the\n * placement it puts the panel on, so the arrow\n * (`.wr-popconfirm-overlay--<placement>`) follows a flip. The CDK applies a\n * position's own `panelClass` when it lands on it and clears it on the next one;\n * the gap is an offset rather than padding, so taking the class off before it\n * measures changes nothing.\n *\n * @internal\n */\nexport function wrPopconfirmPositions(position: WrPopconfirmPosition): ConnectedPosition[] {\n return wrAnchoredPositions(position, { gap: 8, paneClass: 'wr-popconfirm-overlay' });\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 { type FocusTrap, FocusMonitor, FocusTrapFactory } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { type OverlayRef, ScrollStrategyOptions } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n Injector,\n ViewContainerRef,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { useI18nText } from 'ngwr/i18n';\nimport {\n WR_OVERLAY,\n WrOutsideClick,\n type WrOverlayAutoFocus,\n wrFocusOverlay,\n wrFollowDirection,\n wrMirrorOffsets,\n} from 'ngwr/overlay';\nimport type { WrColor } from 'ngwr/theme';\nimport { wrToClassList, wrCheckStyles, type WrClassInput, wrNoteFocusReturn, wrRestoreFocus } from 'ngwr/utils';\n\nimport { WrPopconfirmPanel } from './popconfirm-panel';\nimport { type WrPopconfirmPosition, wrPopconfirmPositions } from './types';\n\n/**\n * How close, in px, `withPush` may park the panel to the viewport edge — the\n * `--wr-space-sm` step, and the value `wr-popover` uses.\n */\nconst VIEWPORT_MARGIN = 8;\n\n/**\n * Small \"Are you sure?\" panel anchored to its trigger. Fires `confirmed`\n * or `cancelled` and closes automatically. Built on CDK Overlay.\n *\n * @example\n * ```html\n * <wr-btn\n * color=\"danger\"\n * [wrPopconfirm]=\"'Delete this item?'\"\n * confirmColor=\"danger\"\n * confirmText=\"Delete\"\n * (confirmed)=\"remove()\"\n * >Delete</wr-btn>\n * ```\n *\n * @see https://ngwr.dev/reference/components/popconfirm\n */\nlet popconfirmUid = 0;\n\n@Directive({\n selector: '[wrPopconfirm]',\n exportAs: 'wrPopconfirm',\n host: {\n // Marks the trigger the way `[wrPopover]` and `[wrDropdown]` mark theirs. The\n // question is normally BOUND (`[wrPopconfirm]=\"question\"`), which leaves no\n // attribute in the DOM at all, so without this there is nothing to find a\n // trigger by once the panel is shut.\n class: 'wr-popconfirm-trigger',\n '[class.wr-popconfirm-trigger--disabled]': 'disabled()',\n '(click)': 'toggle($event)',\n '(keydown)': 'onTriggerKeydown($event)',\n '[attr.aria-haspopup]': 'disabled() ? null : \"dialog\"',\n '[attr.aria-expanded]': 'disabled() ? null : isOpen()',\n // Names the dialog this trigger opened, as every other overlay trigger in the\n // catalog does. `aria-haspopup=\"dialog\"` promises a dialog and `aria-expanded`\n // says it is showing; without the id, which one is left to guess.\n '[attr.aria-controls]': 'isOpen() ? panelId : null',\n },\n})\nexport class WrPopconfirm {\n /** Confirmation message. */\n readonly message = input.required<string>({ alias: 'wrPopconfirm' });\n\n /**\n * Anchor side and alignment, the twelve placements `wr-popover` takes; the\n * panel flips to another side when this one has no room.\n * @default 'top'\n */\n readonly position = input<WrPopconfirmPosition>('top');\n\n /** Label for the confirm button. @default 'Confirm' */\n /** Confirm button text. Falls back to `popconfirm.confirm`. */\n readonly confirmText = input<string | null>(null);\n\n /** Label for the cancel button. @default 'Cancel' */\n /** Cancel button text. Falls back to `popconfirm.cancel`. */\n readonly cancelText = input<string | null>(null);\n\n /**\n * Accessible name of the confirmation dialog. `role=\"dialog\"` with no name\n * announces as a bare \"dialog\". Falls back to `popconfirm.label`.\n */\n readonly ariaLabel = input<string | null>(null);\n\n // The catalog has carried these translated for as long as the component has\n // existed; the labels were hard-coded English defaults, so a localized app got\n // English buttons with the right strings sitting one file away.\n private readonly resolvedConfirm = useI18nText(this.confirmText, 'popconfirm.confirm', 'Confirm');\n private readonly resolvedCancel = useI18nText(this.cancelText, 'popconfirm.cancel', 'Cancel');\n private readonly resolvedAriaLabel = useI18nText(this.ariaLabel, 'popconfirm.label', 'Confirm action');\n\n /** Color of the confirm button. @default 'primary' */\n readonly confirmColor = input<WrColor>('primary');\n\n /**\n * Extra CSS classes for the confirmation bubble's overlay pane.\n *\n * The pane is appended to the overlay container, not to this component, so\n * nothing in the consumer's own template encloses it and no descendant rule\n * written around the trigger can reach it. This input is the only per-instance\n * handle on it. A space-separated string works as well as an array.\n */\n readonly panelClass = input<WrClassInput>(null);\n\n /**\n * Where focus goes when the panel opens. `'dialog'` puts it on the panel\n * itself, with no ring, so Tab reaches Cancel and no button is lit;\n * `'first-tabbable'` puts it on Cancel; `false` leaves it on the trigger,\n * and Tab from there walks into the panel. Closing hands focus back to the\n * trigger in every mode.\n *\n * Prefixed because the directive sits on your own element, where an\n * `autoFocus` attribute would also be the native `autofocus`.\n * @default 'dialog'\n */\n readonly autoFocus = input<WrOverlayAutoFocus>('dialog', { alias: 'wrPopconfirmAutoFocus' });\n\n /**\n * Turns the question off: a click on the host opens nothing and is left to\n * propagate, `open()` does nothing, and an open panel closes without\n * `cancelled`. The host publishes no popup ARIA meanwhile and carries\n * `wr-popconfirm-trigger--disabled`.\n *\n * The host's own `disabled` stays yours: the directive never sets it, so the\n * button still takes its own `(click)` — the way to skip the question when\n * there is nothing to confirm.\n *\n * @default false\n */\n readonly disabled = input(false, { alias: 'wrPopconfirmDisabled', transform: coerceBooleanProperty });\n\n /** Fires when the user clicks confirm. */\n readonly confirmed = output<void>();\n\n /** Fires when the user clicks cancel or dismisses the overlay. */\n readonly cancelled = output<void>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly focusTraps = inject(FocusTrapFactory);\n private readonly overlay = inject(WR_OVERLAY);\n private readonly dir = inject(Directionality, { optional: true });\n private readonly outsideClick = inject(WrOutsideClick);\n private readonly vcr = inject(ViewContainerRef);\n private readonly scrollStrategies = inject(ScrollStrategyOptions);\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly openState = signal(false);\n\n /** Whether the popconfirm is open. Read-only: `open()` and `close()` change it. */\n readonly isOpen = this.openState.asReadonly();\n\n private overlayRef: OverlayRef | null = null;\n private finder: FocusTrap | null = null;\n\n private readonly uid = ++popconfirmUid;\n\n /** @internal Public so the host binding can read it. */\n protected readonly panelId = `wr-popconfirm-${this.uid}`;\n\n private readonly messageId = `wr-popconfirm-message-${this.uid}`;\n\n constructor() {\n if (typeof ngDevMode === 'undefined' || ngDevMode) wrCheckStyles('popconfirm');\n this.destroyRef.onDestroy(() => this.dispose());\n effect(() => {\n if (this.disabled()) this.close();\n });\n }\n\n /** @internal */\n protected toggle(event: MouseEvent): void {\n if (this.disabled()) return;\n event.stopPropagation();\n if (this.overlayRef) {\n this.close();\n } else {\n this.open();\n }\n }\n\n /** Open the panel. Does nothing while the trigger is disabled. */\n open(): void {\n if (this.disabled() || this.overlayRef) return;\n\n // Read ONCE, here, and mirror this list rather than the input: the side is\n // chosen at open and a later `position` write moves nothing, so a follower\n // that re-read the signal would let a direction flip quietly adopt a\n // position the panel never opened with.\n //\n // The list is a fallback CHAIN, each link tagged with its own\n // `wr-popconfirm-overlay--<side>` class, so the panel flips when the side\n // asked for has no room and the arrow names the side it landed on. The\n // viewport margin is `wr-popover`'s, for the same reason: without it a pushed\n // panel parks its border on the glass.\n const positions = wrPopconfirmPositions(this.position());\n\n const positionStrategy = this.overlay\n .position()\n .flexibleConnectedTo(this.host)\n .withPositions(wrMirrorOffsets(positions, this.isRtl()))\n .withPush(true)\n .withViewportMargin(VIEWPORT_MARGIN);\n\n this.overlayRef = this.overlay.create({\n positionStrategy,\n scrollStrategy: this.scrollStrategies.reposition(),\n panelClass: wrToClassList('wr-popconfirm-overlay', this.panelClass()),\n });\n\n // `isRtl()` above answered once, at `create()`, and so did the CDK's own\n // capture of the direction — neither is revisited if the app flips while the\n // question is still on screen. Both halves have to move: the `dir` on the\n // host, so `start` / `end` resolve to the other edge, and the mirrored list,\n // because `offsetX` is added to the final PHYSICAL x. Leave the list behind\n // and the 8px gap on `left` / `right` becomes an 8px overlap over the very\n // control the panel is asking about.\n wrFollowDirection(this.overlayRef, this.dir, this.injector, direction =>\n positionStrategy.withPositions(wrMirrorOffsets(positions, direction === 'rtl'))\n );\n\n // Non-modal by choice, like `wr-popover`: an outside click or Escape closes it,\n // so trapping focus would only make it harder to leave. It still needs a role, a\n // name and the question read out as its description.\n const pane = this.overlayRef.overlayElement;\n pane.id = this.panelId;\n pane.setAttribute('role', 'dialog');\n pane.setAttribute('aria-modal', 'false');\n pane.setAttribute('aria-label', this.resolvedAriaLabel());\n pane.setAttribute('aria-describedby', this.messageId);\n pane.tabIndex = -1;\n\n const portal = new ComponentPortal(WrPopconfirmPanel, this.vcr);\n const ref = this.overlayRef.attach(portal);\n ref.setInput('message', this.message());\n ref.setInput('messageId', this.messageId);\n ref.setInput('confirmText', this.resolvedConfirm());\n ref.setInput('cancelText', this.resolvedCancel());\n ref.setInput('confirmColor', this.confirmColor());\n ref.changeDetectorRef.detectChanges();\n // Focus has to be able to enter the panel: the overlay container sits at the\n // end of `<body>`, so Tab from the trigger went to the next thing on the PAGE\n // and the only way to confirm was unreachable. It enters on open as\n // `wrPopconfirmAutoFocus` says, and never onto a button unasked: the panel itself by\n // default, Cancel under `'first-tabbable'` (the action being confirmed is\n // usually the destructive one). Under `false` Tab on the trigger walks in,\n // see `onTriggerKeydown`.\n //\n // `deferAnchors`: the trap is only the finder `wrFocusOverlay` asks for. No\n // anchors go into the page and nothing is trapped.\n this.finder = this.focusTraps.create(pane, true);\n wrFocusOverlay(pane, this.finder, this.autoFocus(), this.injector);\n // And it has to LEAVE with the panel: Tab past Confirm went on to the end of\n // `<body>` and Shift+Tab before Cancel to the foot of the page, each with the\n // question still on screen and `aria-expanded` still true. See `onPaneKeydown`.\n pane.addEventListener('keydown', this.onPaneKeydown);\n pane.addEventListener('focusout', this.onPaneFocusOut);\n this.openState.set(true);\n\n ref.instance.confirmed.subscribe(() => {\n this.confirmed.emit();\n this.close();\n });\n ref.instance.cancelled.subscribe(() => this.dismiss());\n\n this.outsideClick\n .outsidePointerEvents(this.overlayRef)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (this.host.nativeElement.contains(event.target as Node)) return;\n this.dismiss();\n });\n\n this.overlayRef\n .keydownEvents()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(event => {\n if (event.key === 'Escape') {\n event.preventDefault();\n this.dismiss();\n }\n });\n }\n\n close(): void {\n this.dispose();\n }\n\n private dismiss(): void {\n if (!this.overlayRef) return;\n this.cancelled.emit();\n this.dispose();\n }\n\n private dispose(): void {\n if (!this.overlayRef) return;\n // Focus lives inside the panel while it is open, and removing the panel would\n // drop it to `<body>` — hand it back to the trigger instead, as `wr-dropdown`\n // does on Escape. Only when focus is still IN there: if the user has already\n // clicked elsewhere, taking it back would be stealing.\n const pane = this.overlayRef.overlayElement;\n const returnFocus = pane.contains(document.activeElement);\n // Before the dispose: Chromium fires `focusout` for a focused node as it is\n // removed, and the pane is about to be.\n pane.removeEventListener('keydown', this.onPaneKeydown);\n pane.removeEventListener('focusout', this.onPaneFocusOut);\n this.finder?.destroy();\n this.finder = null;\n this.overlayRef.dispose();\n this.overlayRef = null;\n this.openState.set(false);\n if (returnFocus) wrRestoreFocus(this.host.nativeElement, this.focusMonitor);\n else wrNoteFocusReturn(this.host.nativeElement);\n }\n\n /**\n * Tab off either end of the panel dismisses it and takes focus back to the\n * trigger — `wr-popover`'s disclosure behaviour, for a non-modal panel whose\n * DOM sits nowhere near its trigger. Leaving is a dismissal, so `cancelled`\n * fires, as it does for Escape and an outside click.\n *\n * Forward, the trigger is focused WITHOUT `preventDefault`, so the browser's\n * own Tab runs on from there and lands on whatever follows the trigger, where a\n * panel rendered in place would have let it go. Backward, the trigger itself is\n * the destination, so the default is stopped. The panel holds two stops, Cancel\n * and Confirm, in that order.\n */\n private readonly onPaneKeydown = (event: KeyboardEvent): void => {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.key !== 'Tab' || event.defaultPrevented) return;\n const stops = [...pane.querySelectorAll<HTMLElement>('.wr-popconfirm__action')];\n const active = document.activeElement;\n if (event.shiftKey) {\n if (active !== pane && active !== stops[0]) return;\n event.preventDefault();\n } else if (active !== stops.at(-1)) {\n return;\n }\n wrRestoreFocus(this.host.nativeElement, this.focusMonitor);\n this.dismiss();\n };\n\n /**\n * Tab on the trigger while the panel is open walks into it, as it would into a\n * panel rendered beside the trigger. The way in when focus did not move on\n * open (`wrPopconfirmAutoFocus` is `false`).\n *\n * @internal\n */\n protected onTriggerKeydown(event: KeyboardEvent): void {\n const pane = this.overlayRef?.overlayElement;\n if (!pane || event.key !== 'Tab' || event.shiftKey || event.defaultPrevented) return;\n if (event.target !== this.host.nativeElement) return;\n event.preventDefault();\n (pane.querySelector<HTMLElement>('.wr-popconfirm__action') ?? pane).focus();\n }\n\n /**\n * Focus that leaves the panel by any other road (a click on something\n * focusable elsewhere) dismisses it too, and is left where it went. A `null`\n * destination is the window losing focus or a focused node being removed,\n * neither of which is leaving.\n */\n private readonly onPaneFocusOut = (event: FocusEvent): void => {\n const next = event.relatedTarget as Node | null;\n if (!next || this.holdsFocus(next)) return;\n this.dismiss();\n };\n\n /**\n * Whether focus on `node` still belongs to this panel: inside the pane, on the\n * trigger (a press there is about to toggle it), or in an overlay opened AFTER\n * this one — the stacking `wr-popover` and `WrOutsideClick` honour, so a\n * second panel raised by `open()` does not dismiss the first by taking focus.\n */\n private holdsFocus(node: Node): boolean {\n const ref = this.overlayRef;\n if (!ref) return false;\n if (ref.overlayElement.contains(node) || this.host.nativeElement.contains(node)) return true;\n const box = ref.hostElement;\n return (\n (box.parentElement?.contains(node) ?? false) &&\n // eslint-disable-next-line no-bitwise -- compareDocumentPosition answers with a bitmask\n (box.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0\n );\n }\n\n /**\n * Whether the app reads right-to-left.\n *\n * Optional inject: `Directionality` is root-provided, so this is never null in\n * an app — but a bare `TestBed` that provides nothing should still get a\n * component that works, and defaulting to LTR is the honest fallback.\n */\n private isRtl(): boolean {\n return this.dir?.value === 'rtl';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,IAAa,oBAAb,MAAa,kBAAiB;CAC5B,cAAA;EACE,IAAI,OAAO,cAAc,eAAe,WAAW,cAAc,YAAY;CAC/E;CAES,UAAU,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAGlC,YAAY,MAAqB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,YAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,cAAc,MAAc,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;CACtC,aAAa,MAAc,UAAS,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CACpC,eAAe,MAAe,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,eAAA,CAAA,+BAAA,CA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