ngwr 16.5.0 → 16.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/avatar/styles/_index.scss +39 -0
  2. package/back-top/styles/_index.scss +6 -0
  3. package/breadcrumbs/styles/_rules.scss +34 -0
  4. package/button/styles/_index.scss +45 -2
  5. package/cascader/styles/_rules.scss +7 -0
  6. package/charts/chart-legend/styles/_index.scss +1 -9
  7. package/copy-value/styles/_index.scss +4 -0
  8. package/counter/styles/_index.scss +1 -8
  9. package/date-picker/styles/_index.scss +15 -9
  10. package/dialog/styles/_index.scss +37 -0
  11. package/dropdown/styles/_index.scss +17 -0
  12. package/editor/styles/_index.scss +1 -8
  13. package/event-calendar/styles/_index.scss +2 -6
  14. package/fesm2022/ngwr-affix.mjs +4 -4
  15. package/fesm2022/ngwr-affix.mjs.map +1 -1
  16. package/fesm2022/ngwr-alert.mjs +3 -3
  17. package/fesm2022/ngwr-anchor.mjs +12 -5
  18. package/fesm2022/ngwr-anchor.mjs.map +1 -1
  19. package/fesm2022/ngwr-animations-aurora.mjs +3 -3
  20. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  21. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  22. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  23. package/fesm2022/ngwr-animations-click-sparks.mjs +3 -3
  24. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  25. package/fesm2022/ngwr-animations-confetti.mjs +3 -3
  26. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-decode.mjs +3 -3
  28. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-destruct.mjs +3 -3
  30. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-dot-grid.mjs +3 -3
  32. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  34. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-flow-lines.mjs +3 -3
  36. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-fluid-cursor.mjs +3 -3
  38. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-glitch.mjs +3 -3
  40. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-glow-border.mjs +3 -3
  42. package/fesm2022/ngwr-animations-glow-border.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-gradient-flow.mjs +3 -3
  44. package/fesm2022/ngwr-animations-gradient-flow.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-marquee.mjs +4 -3
  46. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-orbit.mjs +3 -3
  48. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-reveal.mjs +3 -3
  50. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-ripple-grid.mjs +3 -3
  52. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-rotate-reveal.mjs +3 -3
  54. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-shimmer.mjs +3 -3
  56. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-spotlight.mjs +3 -3
  58. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-thread-lines.mjs +3 -3
  60. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  61. package/fesm2022/ngwr-animations-tilt.mjs +23 -16
  62. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  63. package/fesm2022/ngwr-animations-typewriter.mjs +3 -3
  64. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  65. package/fesm2022/ngwr-avatar.mjs +171 -6
  66. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  67. package/fesm2022/ngwr-back-top.mjs +3 -3
  68. package/fesm2022/ngwr-badge.mjs +6 -6
  69. package/fesm2022/ngwr-breadcrumbs.mjs +47 -13
  70. package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
  71. package/fesm2022/ngwr-burger.mjs +3 -3
  72. package/fesm2022/ngwr-button.mjs +38 -9
  73. package/fesm2022/ngwr-button.mjs.map +1 -1
  74. package/fesm2022/ngwr-calendar.mjs +3 -3
  75. package/fesm2022/ngwr-card.mjs +9 -9
  76. package/fesm2022/ngwr-carousel.mjs +14 -8
  77. package/fesm2022/ngwr-carousel.mjs.map +1 -1
  78. package/fesm2022/ngwr-cascader.mjs +27 -7
  79. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  80. package/fesm2022/ngwr-charts-bar-chart.mjs +3 -3
  81. package/fesm2022/ngwr-charts-boxplot-chart.mjs +3 -3
  82. package/fesm2022/ngwr-charts-bullet-chart.mjs +3 -3
  83. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +3 -3
  84. package/fesm2022/ngwr-charts-candlestick-chart.mjs +3 -3
  85. package/fesm2022/ngwr-charts-chart-legend.mjs +9 -9
  86. package/fesm2022/ngwr-charts-core.mjs +18 -11
  87. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  88. package/fesm2022/ngwr-charts-donut-chart.mjs +3 -3
  89. package/fesm2022/ngwr-charts-funnel-chart.mjs +3 -3
  90. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  91. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  92. package/fesm2022/ngwr-charts-line-chart.mjs +3 -3
  93. package/fesm2022/ngwr-charts-meter-group.mjs +7 -5
  94. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-radar-chart.mjs +3 -3
  96. package/fesm2022/ngwr-charts-scatter-chart.mjs +3 -3
  97. package/fesm2022/ngwr-charts-sparkline.mjs +3 -3
  98. package/fesm2022/ngwr-charts-treemap-chart.mjs +3 -3
  99. package/fesm2022/ngwr-charts-waterfall-chart.mjs +3 -3
  100. package/fesm2022/ngwr-checkbox.mjs +9 -8
  101. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  102. package/fesm2022/ngwr-clipboard.mjs +3 -3
  103. package/fesm2022/ngwr-collapse.mjs +9 -9
  104. package/fesm2022/ngwr-color-picker.mjs +27 -7
  105. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  106. package/fesm2022/ngwr-command-palette.mjs +3 -3
  107. package/fesm2022/ngwr-comment.mjs +7 -6
  108. package/fesm2022/ngwr-comment.mjs.map +1 -1
  109. package/fesm2022/ngwr-compare.mjs +3 -3
  110. package/fesm2022/ngwr-context-menu.mjs +16 -17
  111. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  112. package/fesm2022/ngwr-cookie.mjs +3 -3
  113. package/fesm2022/ngwr-copy-value.mjs +3 -3
  114. package/fesm2022/ngwr-counter.mjs +6 -6
  115. package/fesm2022/ngwr-date-picker-testing.mjs +35 -0
  116. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  117. package/fesm2022/ngwr-date-picker.mjs +151 -54
  118. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  119. package/fesm2022/ngwr-date-stamp.mjs +3 -3
  120. package/fesm2022/ngwr-date.mjs +40 -16
  121. package/fesm2022/ngwr-date.mjs.map +1 -1
  122. package/fesm2022/ngwr-density.mjs +6 -6
  123. package/fesm2022/ngwr-descriptions.mjs +6 -6
  124. package/fesm2022/ngwr-dialog.mjs +35 -24
  125. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  126. package/fesm2022/ngwr-directives.mjs +189 -23
  127. package/fesm2022/ngwr-directives.mjs.map +1 -1
  128. package/fesm2022/ngwr-divider.mjs +3 -3
  129. package/fesm2022/ngwr-drawer.mjs +18 -18
  130. package/fesm2022/ngwr-dropdown-testing.mjs +5 -1
  131. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  132. package/fesm2022/ngwr-dropdown.mjs +59 -16
  133. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  134. package/fesm2022/ngwr-editor.mjs +6 -5
  135. package/fesm2022/ngwr-editor.mjs.map +1 -1
  136. package/fesm2022/ngwr-empty.mjs +3 -3
  137. package/fesm2022/ngwr-event-calendar.mjs +27 -15
  138. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  139. package/fesm2022/ngwr-file-upload-testing.mjs +5 -0
  140. package/fesm2022/ngwr-file-upload-testing.mjs.map +1 -1
  141. package/fesm2022/ngwr-file-upload.mjs +68 -13
  142. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  143. package/fesm2022/ngwr-form.mjs +181 -12
  144. package/fesm2022/ngwr-form.mjs.map +1 -1
  145. package/fesm2022/ngwr-graph-testing.mjs +30 -0
  146. package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
  147. package/fesm2022/ngwr-graph.mjs +100 -11
  148. package/fesm2022/ngwr-graph.mjs.map +1 -1
  149. package/fesm2022/ngwr-hotkey.mjs +6 -6
  150. package/fesm2022/ngwr-i18n-ar.mjs +21 -2
  151. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  152. package/fesm2022/ngwr-i18n-cs.mjs +21 -2
  153. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  154. package/fesm2022/ngwr-i18n-de.mjs +21 -2
  155. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  156. package/fesm2022/ngwr-i18n-en.mjs +21 -2
  157. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  158. package/fesm2022/ngwr-i18n-es.mjs +21 -2
  159. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  160. package/fesm2022/ngwr-i18n-fr.mjs +21 -2
  161. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  162. package/fesm2022/ngwr-i18n-he.mjs +21 -2
  163. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  164. package/fesm2022/ngwr-i18n-hi.mjs +21 -2
  165. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  166. package/fesm2022/ngwr-i18n-id.mjs +21 -2
  167. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  168. package/fesm2022/ngwr-i18n-it.mjs +21 -2
  169. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  170. package/fesm2022/ngwr-i18n-ja.mjs +21 -2
  171. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  172. package/fesm2022/ngwr-i18n-kk.mjs +520 -0
  173. package/fesm2022/ngwr-i18n-kk.mjs.map +1 -0
  174. package/fesm2022/ngwr-i18n-ko.mjs +21 -2
  175. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-nl.mjs +21 -2
  177. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-pl.mjs +21 -2
  179. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-pt.mjs +21 -2
  181. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-ru.mjs +21 -2
  183. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-sv.mjs +21 -2
  185. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-tr.mjs +21 -2
  187. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-uk.mjs +21 -2
  189. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-vi.mjs +21 -2
  191. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-zh-tw.mjs +21 -2
  193. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-zh.mjs +21 -2
  195. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n.mjs +91 -20
  197. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  198. package/fesm2022/ngwr-icon.mjs +6 -6
  199. package/fesm2022/ngwr-image-cropper.mjs +8 -4
  200. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  201. package/fesm2022/ngwr-input-number.mjs +27 -4
  202. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  203. package/fesm2022/ngwr-input-otp.mjs +5 -5
  204. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  205. package/fesm2022/ngwr-input.mjs +25 -17
  206. package/fesm2022/ngwr-input.mjs.map +1 -1
  207. package/fesm2022/ngwr-keyboard.mjs +3 -3
  208. package/fesm2022/ngwr-knob.mjs +3 -3
  209. package/fesm2022/ngwr-layout.mjs +15 -15
  210. package/fesm2022/ngwr-layout.mjs.map +1 -1
  211. package/fesm2022/ngwr-lightbox.mjs +8 -8
  212. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  213. package/fesm2022/ngwr-list.mjs +9 -9
  214. package/fesm2022/ngwr-list.mjs.map +1 -1
  215. package/fesm2022/ngwr-load-state.mjs +16 -15
  216. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  217. package/fesm2022/ngwr-loading-bar-router.mjs.map +1 -1
  218. package/fesm2022/ngwr-loading-bar.mjs +8 -8
  219. package/fesm2022/ngwr-loading-bar.mjs.map +1 -1
  220. package/fesm2022/ngwr-mention.mjs +14 -6
  221. package/fesm2022/ngwr-mention.mjs.map +1 -1
  222. package/fesm2022/ngwr-meta.mjs +15 -12
  223. package/fesm2022/ngwr-meta.mjs.map +1 -1
  224. package/fesm2022/ngwr-overlay.mjs +9 -9
  225. package/fesm2022/ngwr-page-header.mjs +24 -3
  226. package/fesm2022/ngwr-page-header.mjs.map +1 -1
  227. package/fesm2022/ngwr-pagination-testing.mjs +3 -0
  228. package/fesm2022/ngwr-pagination-testing.mjs.map +1 -1
  229. package/fesm2022/ngwr-pagination.mjs +34 -5
  230. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  231. package/fesm2022/ngwr-pipes.mjs +35 -28
  232. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  233. package/fesm2022/ngwr-platform.mjs +9 -9
  234. package/fesm2022/ngwr-popconfirm.mjs +9 -7
  235. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  236. package/fesm2022/ngwr-popover.mjs +162 -18
  237. package/fesm2022/ngwr-popover.mjs.map +1 -1
  238. package/fesm2022/ngwr-progress.mjs +75 -10
  239. package/fesm2022/ngwr-progress.mjs.map +1 -1
  240. package/fesm2022/ngwr-pull-to-refresh.mjs +3 -3
  241. package/fesm2022/ngwr-qr.mjs +9 -5
  242. package/fesm2022/ngwr-qr.mjs.map +1 -1
  243. package/fesm2022/ngwr-radio.mjs +77 -11
  244. package/fesm2022/ngwr-radio.mjs.map +1 -1
  245. package/fesm2022/ngwr-rating.mjs +3 -3
  246. package/fesm2022/ngwr-resizable.mjs +3 -3
  247. package/fesm2022/ngwr-result.mjs +12 -12
  248. package/fesm2022/ngwr-schema-form.mjs +20 -7
  249. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  250. package/fesm2022/ngwr-scroll.mjs +233 -10
  251. package/fesm2022/ngwr-scroll.mjs.map +1 -1
  252. package/fesm2022/ngwr-segmented.mjs +23 -3
  253. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  254. package/fesm2022/ngwr-select.mjs +106 -26
  255. package/fesm2022/ngwr-select.mjs.map +1 -1
  256. package/fesm2022/ngwr-sidebar-testing.mjs +17 -1
  257. package/fesm2022/ngwr-sidebar-testing.mjs.map +1 -1
  258. package/fesm2022/ngwr-sidebar.mjs +66 -11
  259. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  260. package/fesm2022/ngwr-skeleton.mjs +3 -3
  261. package/fesm2022/ngwr-slider.mjs +3 -3
  262. package/fesm2022/ngwr-sortable-list.mjs +27 -15
  263. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  264. package/fesm2022/ngwr-speed-dial.mjs +3 -3
  265. package/fesm2022/ngwr-spinner.mjs +3 -3
  266. package/fesm2022/ngwr-splitter.mjs +3 -3
  267. package/fesm2022/ngwr-statistic.mjs +9 -9
  268. package/fesm2022/ngwr-stepper.mjs +6 -6
  269. package/fesm2022/ngwr-storage.mjs +4 -4
  270. package/fesm2022/ngwr-storage.mjs.map +1 -1
  271. package/fesm2022/ngwr-switch.mjs +5 -5
  272. package/fesm2022/ngwr-switch.mjs.map +1 -1
  273. package/fesm2022/ngwr-table-router.mjs +89 -0
  274. package/fesm2022/ngwr-table-router.mjs.map +1 -0
  275. package/fesm2022/ngwr-table-testing.mjs +5 -0
  276. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  277. package/fesm2022/ngwr-table.mjs +307 -47
  278. package/fesm2022/ngwr-table.mjs.map +1 -1
  279. package/fesm2022/ngwr-tabs-router.mjs +9 -5
  280. package/fesm2022/ngwr-tabs-router.mjs.map +1 -1
  281. package/fesm2022/ngwr-tabs-testing.mjs +8 -1
  282. package/fesm2022/ngwr-tabs-testing.mjs.map +1 -1
  283. package/fesm2022/ngwr-tabs.mjs +60 -10
  284. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  285. package/fesm2022/ngwr-textarea.mjs +5 -5
  286. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  287. package/fesm2022/ngwr-theme.mjs +3 -3
  288. package/fesm2022/ngwr-timeline.mjs +6 -6
  289. package/fesm2022/ngwr-toast.mjs +43 -15
  290. package/fesm2022/ngwr-toast.mjs.map +1 -1
  291. package/fesm2022/ngwr-toolbar.mjs +3 -3
  292. package/fesm2022/ngwr-tour.mjs +9 -8
  293. package/fesm2022/ngwr-tour.mjs.map +1 -1
  294. package/fesm2022/ngwr-transfer.mjs +4 -3
  295. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  296. package/fesm2022/ngwr-tree.mjs +3 -3
  297. package/fesm2022/ngwr-typography.mjs +23 -3
  298. package/fesm2022/ngwr-typography.mjs.map +1 -1
  299. package/fesm2022/ngwr-utils-router.mjs +3 -3
  300. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  301. package/fesm2022/ngwr-utils.mjs +74 -4
  302. package/fesm2022/ngwr-utils.mjs.map +1 -1
  303. package/fesm2022/ngwr-validators.mjs +33 -1
  304. package/fesm2022/ngwr-validators.mjs.map +1 -1
  305. package/fesm2022/ngwr-version.mjs +1 -1
  306. package/fesm2022/ngwr-version.mjs.map +1 -1
  307. package/fesm2022/ngwr-virtual-scroll.mjs +3 -3
  308. package/fesm2022/ngwr-window.mjs +18 -13
  309. package/fesm2022/ngwr-window.mjs.map +1 -1
  310. package/file-upload/styles/_index.scss +16 -0
  311. package/form/styles/_index.scss +37 -0
  312. package/graph/styles/_index.scss +49 -9
  313. package/i18n/ar.json +19 -2
  314. package/i18n/cs.json +19 -2
  315. package/i18n/de.json +19 -2
  316. package/i18n/en.json +19 -2
  317. package/i18n/es.json +19 -2
  318. package/i18n/fr.json +19 -2
  319. package/i18n/he.json +19 -2
  320. package/i18n/hi.json +19 -2
  321. package/i18n/id.json +19 -2
  322. package/i18n/it.json +19 -2
  323. package/i18n/ja.json +19 -2
  324. package/i18n/kk.json +567 -0
  325. package/i18n/ko.json +19 -2
  326. package/i18n/nl.json +19 -2
  327. package/i18n/pl.json +19 -2
  328. package/i18n/pt.json +19 -2
  329. package/i18n/ru.json +19 -2
  330. package/i18n/sv.json +19 -2
  331. package/i18n/tr.json +19 -2
  332. package/i18n/uk.json +19 -2
  333. package/i18n/vi.json +19 -2
  334. package/i18n/zh-TW.json +19 -2
  335. package/i18n/zh.json +19 -2
  336. package/image-cropper/styles/_index.scss +1 -9
  337. package/input-number/styles/_index.scss +7 -0
  338. package/layout/styles/_index.scss +13 -1
  339. package/llms-full.txt +37 -26
  340. package/llms.txt +4 -1
  341. package/loading-bar/styles/_rules.scss +6 -0
  342. package/package.json +16 -8
  343. package/page-header/styles/_index.scss +18 -0
  344. package/pagination/styles/_index.scss +6 -0
  345. package/popover/styles/_index.scss +9 -0
  346. package/progress/styles/_index.scss +64 -0
  347. package/schematics/use/symbol-map.json +7 -0
  348. package/segmented/styles/_index.scss +7 -0
  349. package/select/styles/_index.scss +7 -0
  350. package/sidebar/styles/_index.scss +64 -6
  351. package/skills/ngwr/SKILL.md +7 -6
  352. package/skills/ngwr/references/catalog.md +7 -5
  353. package/sortable-list/styles/_rules.scss +1 -9
  354. package/speed-dial/styles/_index.scss +6 -0
  355. package/stepper/styles/_index.scss +1 -9
  356. package/table/styles/_index.scss +168 -30
  357. package/tabs/styles/_index.scss +9 -0
  358. package/theme/_index.scss +12 -1
  359. package/theme/styles/_colors.scss +11 -0
  360. package/theme/styles/_contrast.scss +6 -0
  361. package/theme/styles/_focus.scss +3 -1
  362. package/theme/styles/_index.scss +1 -0
  363. package/theme/styles/_mixins.scss +45 -0
  364. package/theme/styles/_print.scss +17 -0
  365. package/toast/styles/_index.scss +7 -0
  366. package/tour/styles/_index.scss +9 -0
  367. package/tree/styles/_index.scss +1 -9
  368. package/types/ngwr-anchor.d.ts +3 -0
  369. package/types/ngwr-animations-aurora.d.ts +6 -0
  370. package/types/ngwr-animations-blur-reveal.d.ts +6 -0
  371. package/types/ngwr-animations-click-sparks.d.ts +6 -0
  372. package/types/ngwr-animations-confetti.d.ts +6 -0
  373. package/types/ngwr-animations-decode.d.ts +6 -0
  374. package/types/ngwr-animations-destruct.d.ts +6 -0
  375. package/types/ngwr-animations-dot-grid.d.ts +6 -0
  376. package/types/ngwr-animations-falling-letters.d.ts +6 -0
  377. package/types/ngwr-animations-flow-lines.d.ts +6 -0
  378. package/types/ngwr-animations-fluid-cursor.d.ts +6 -0
  379. package/types/ngwr-animations-glitch.d.ts +6 -0
  380. package/types/ngwr-animations-glow-border.d.ts +6 -0
  381. package/types/ngwr-animations-gradient-flow.d.ts +6 -0
  382. package/types/ngwr-animations-marquee.d.ts +6 -0
  383. package/types/ngwr-animations-orbit.d.ts +6 -0
  384. package/types/ngwr-animations-reveal.d.ts +6 -0
  385. package/types/ngwr-animations-ripple-grid.d.ts +6 -0
  386. package/types/ngwr-animations-rotate-reveal.d.ts +6 -0
  387. package/types/ngwr-animations-shimmer.d.ts +6 -0
  388. package/types/ngwr-animations-spotlight.d.ts +6 -0
  389. package/types/ngwr-animations-thread-lines.d.ts +6 -0
  390. package/types/ngwr-animations-tilt.d.ts +10 -0
  391. package/types/ngwr-animations-typewriter.d.ts +6 -0
  392. package/types/ngwr-avatar.d.ts +39 -0
  393. package/types/ngwr-breadcrumbs.d.ts +25 -0
  394. package/types/ngwr-button.d.ts +35 -3
  395. package/types/ngwr-carousel.d.ts +2 -0
  396. package/types/ngwr-cascader.d.ts +7 -0
  397. package/types/ngwr-charts-core.d.ts +16 -0
  398. package/types/ngwr-charts-meter-group.d.ts +2 -0
  399. package/types/ngwr-checkbox.d.ts +1 -0
  400. package/types/ngwr-color-picker.d.ts +1 -0
  401. package/types/ngwr-context-menu.d.ts +1 -1
  402. package/types/ngwr-date-picker-testing.d.ts +22 -0
  403. package/types/ngwr-date-picker.d.ts +97 -17
  404. package/types/ngwr-date.d.ts +51 -0
  405. package/types/ngwr-dialog.d.ts +39 -8
  406. package/types/ngwr-directives.d.ts +57 -4
  407. package/types/ngwr-drawer.d.ts +1 -1
  408. package/types/ngwr-dropdown-testing.d.ts +8 -1
  409. package/types/ngwr-dropdown.d.ts +30 -1
  410. package/types/ngwr-event-calendar.d.ts +4 -0
  411. package/types/ngwr-file-upload-testing.d.ts +10 -0
  412. package/types/ngwr-file-upload.d.ts +55 -1
  413. package/types/ngwr-form.d.ts +87 -1
  414. package/types/ngwr-graph-testing.d.ts +28 -1
  415. package/types/ngwr-graph.d.ts +53 -3
  416. package/types/ngwr-i18n-kk.d.ts +3 -0
  417. package/types/ngwr-i18n.d.ts +65 -5
  418. package/types/ngwr-image-cropper.d.ts +6 -0
  419. package/types/ngwr-input-number.d.ts +8 -0
  420. package/types/ngwr-input.d.ts +7 -0
  421. package/types/ngwr-layout.d.ts +1 -1
  422. package/types/ngwr-loading-bar-router.d.ts +6 -0
  423. package/types/ngwr-page-header.d.ts +23 -1
  424. package/types/ngwr-pagination-testing.d.ts +8 -0
  425. package/types/ngwr-pagination.d.ts +16 -0
  426. package/types/ngwr-popconfirm.d.ts +1 -1
  427. package/types/ngwr-popover.d.ts +67 -4
  428. package/types/ngwr-progress.d.ts +63 -1
  429. package/types/ngwr-radio.d.ts +47 -5
  430. package/types/ngwr-scroll.d.ts +86 -0
  431. package/types/ngwr-segmented.d.ts +7 -0
  432. package/types/ngwr-select.d.ts +88 -25
  433. package/types/ngwr-sidebar-testing.d.ts +21 -7
  434. package/types/ngwr-sidebar.d.ts +66 -4
  435. package/types/ngwr-sortable-list.d.ts +20 -7
  436. package/types/ngwr-table-router.d.ts +49 -0
  437. package/types/ngwr-table-testing.d.ts +7 -0
  438. package/types/ngwr-table.d.ts +241 -10
  439. package/types/ngwr-tabs-router.d.ts +7 -1
  440. package/types/ngwr-tabs-testing.d.ts +5 -1
  441. package/types/ngwr-tabs.d.ts +34 -1
  442. package/types/ngwr-toast.d.ts +11 -0
  443. package/types/ngwr-tour.d.ts +0 -1
  444. package/types/ngwr-typography.d.ts +7 -0
  445. package/types/ngwr-utils-router.d.ts +6 -0
  446. package/types/ngwr-utils.d.ts +69 -2
  447. package/types/ngwr-validators.d.ts +49 -1
  448. package/types/ngwr-version.d.ts +1 -1
  449. package/typography/styles/_index.scss +4 -0
  450. package/window/styles/_index.scss +1 -9
@@ -1,8 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
- import { DestroyRef, Directive, ElementRef, Injector, NgZone, PLATFORM_ID, afterEveryRender, afterNextRender, effect, inject, input, output, signal } from "@angular/core";
2
+ import { DestroyRef, Directive, ElementRef, Injector, NgZone, PLATFORM_ID, Service, afterEveryRender, afterNextRender, effect, inject, input, output, signal } from "@angular/core";
3
3
  import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
4
4
  import { DOCUMENT as DOCUMENT$1, isPlatformBrowser } from "@angular/common";
5
- import { wrRestoreFocus } from "ngwr/utils";
5
+ import { wrGetFocusableElements, wrRestoreFocus } from "ngwr/utils";
6
6
  import { useI18nText } from "ngwr/i18n";
7
7
  import { WrPopover, wrUseTextTooltip } from "ngwr/popover";
8
8
  import { FocusMonitor, LiveAnnouncer } from "@angular/cdk/a11y";
@@ -17,20 +17,24 @@ import { WrToast } from "ngwr/toast";
17
17
  var WrAutofocus = class WrAutofocus {
18
18
  wrAutofocus = input(true, {
19
19
  ...ngDevMode ? { debugName: "wrAutofocus" } : /* istanbul ignore next */ {},
20
- transform: coerceBooleanProperty
20
+ transform: (value) => value === "first" ? value : coerceBooleanProperty(value)
21
21
  });
22
22
  el = inject(ElementRef);
23
+ injector = inject(Injector);
23
24
  constructor() {
24
- afterNextRender(() => {
25
- if (this.wrAutofocus()) this.el.nativeElement.focus();
26
- });
27
25
  effect(() => {
28
- if (this.wrAutofocus()) queueMicrotask(() => this.el.nativeElement.focus());
26
+ const mode = this.wrAutofocus();
27
+ if (!mode) return;
28
+ afterNextRender(() => {
29
+ const host = this.el.nativeElement;
30
+ const reachable = (el) => Number(el.getAttribute("tabindex") ?? 0) >= 0;
31
+ (mode === "first" ? wrGetFocusableElements(host).find(reachable) : host)?.focus();
32
+ }, { injector: this.injector });
29
33
  });
30
34
  }
31
35
  static ɵfac = i0.ɵɵngDeclareFactory({
32
36
  minVersion: "12.0.0",
33
- version: "22.2.6",
37
+ version: "22.3.0",
34
38
  ngImport: i0,
35
39
  type: WrAutofocus,
36
40
  deps: [],
@@ -38,7 +42,7 @@ var WrAutofocus = class WrAutofocus {
38
42
  });
39
43
  static ɵdir = i0.ɵɵngDeclareDirective({
40
44
  minVersion: "17.1.0",
41
- version: "22.2.6",
45
+ version: "22.3.0",
42
46
  type: WrAutofocus,
43
47
  isStandalone: true,
44
48
  selector: "[wrAutofocus]",
@@ -54,7 +58,7 @@ var WrAutofocus = class WrAutofocus {
54
58
  };
55
59
  i0.ɵɵngDeclareClassMetadata({
56
60
  minVersion: "12.0.0",
57
- version: "22.2.6",
61
+ version: "22.3.0",
58
62
  ngImport: i0,
59
63
  type: WrAutofocus,
60
64
  decorators: [{
@@ -123,7 +127,7 @@ var WrAutosize = class WrAutosize {
123
127
  }
124
128
  static ɵfac = i0.ɵɵngDeclareFactory({
125
129
  minVersion: "12.0.0",
126
- version: "22.2.6",
130
+ version: "22.3.0",
127
131
  ngImport: i0,
128
132
  type: WrAutosize,
129
133
  deps: [],
@@ -131,7 +135,7 @@ var WrAutosize = class WrAutosize {
131
135
  });
132
136
  static ɵdir = i0.ɵɵngDeclareDirective({
133
137
  minVersion: "17.1.0",
134
- version: "22.2.6",
138
+ version: "22.3.0",
135
139
  type: WrAutosize,
136
140
  isStandalone: true,
137
141
  selector: "textarea[wrAutosize]",
@@ -163,7 +167,7 @@ var WrAutosize = class WrAutosize {
163
167
  };
164
168
  i0.ɵɵngDeclareClassMetadata({
165
169
  minVersion: "12.0.0",
166
- version: "22.2.6",
170
+ version: "22.3.0",
167
171
  ngImport: i0,
168
172
  type: WrAutosize,
169
173
  decorators: [{
@@ -223,7 +227,7 @@ var WrClickOutside = class WrClickOutside {
223
227
  }
224
228
  static ɵfac = i0.ɵɵngDeclareFactory({
225
229
  minVersion: "12.0.0",
226
- version: "22.2.6",
230
+ version: "22.3.0",
227
231
  ngImport: i0,
228
232
  type: WrClickOutside,
229
233
  deps: [],
@@ -231,7 +235,7 @@ var WrClickOutside = class WrClickOutside {
231
235
  });
232
236
  static ɵdir = i0.ɵɵngDeclareDirective({
233
237
  minVersion: "14.0.0",
234
- version: "22.2.6",
238
+ version: "22.3.0",
235
239
  type: WrClickOutside,
236
240
  isStandalone: true,
237
241
  selector: "[wrClickOutside]",
@@ -241,7 +245,7 @@ var WrClickOutside = class WrClickOutside {
241
245
  };
242
246
  i0.ɵɵngDeclareClassMetadata({
243
247
  minVersion: "12.0.0",
244
- version: "22.2.6",
248
+ version: "22.3.0",
245
249
  ngImport: i0,
246
250
  type: WrClickOutside,
247
251
  decorators: [{
@@ -350,7 +354,7 @@ var WrCopyToClipboard = class WrCopyToClipboard {
350
354
  }
351
355
  static ɵfac = i0.ɵɵngDeclareFactory({
352
356
  minVersion: "12.0.0",
353
- version: "22.2.6",
357
+ version: "22.3.0",
354
358
  ngImport: i0,
355
359
  type: WrCopyToClipboard,
356
360
  deps: [],
@@ -358,7 +362,7 @@ var WrCopyToClipboard = class WrCopyToClipboard {
358
362
  });
359
363
  static ɵdir = i0.ɵɵngDeclareDirective({
360
364
  minVersion: "17.1.0",
361
- version: "22.2.6",
365
+ version: "22.3.0",
362
366
  type: WrCopyToClipboard,
363
367
  isStandalone: true,
364
368
  selector: "[wrCopyToClipboard]",
@@ -400,7 +404,7 @@ var WrCopyToClipboard = class WrCopyToClipboard {
400
404
  };
401
405
  i0.ɵɵngDeclareClassMetadata({
402
406
  minVersion: "12.0.0",
403
- version: "22.2.6",
407
+ version: "22.3.0",
404
408
  ngImport: i0,
405
409
  type: WrCopyToClipboard,
406
410
  decorators: [{
@@ -525,7 +529,7 @@ var WrFitText = class WrFitText {
525
529
  }
526
530
  static ɵfac = i0.ɵɵngDeclareFactory({
527
531
  minVersion: "12.0.0",
528
- version: "22.2.6",
532
+ version: "22.3.0",
529
533
  ngImport: i0,
530
534
  type: WrFitText,
531
535
  deps: [],
@@ -533,7 +537,7 @@ var WrFitText = class WrFitText {
533
537
  });
534
538
  static ɵdir = i0.ɵɵngDeclareDirective({
535
539
  minVersion: "17.1.0",
536
- version: "22.2.6",
540
+ version: "22.3.0",
537
541
  type: WrFitText,
538
542
  isStandalone: true,
539
543
  selector: "[wrFitText]",
@@ -549,7 +553,7 @@ var WrFitText = class WrFitText {
549
553
  };
550
554
  i0.ɵɵngDeclareClassMetadata({
551
555
  minVersion: "12.0.0",
552
- version: "22.2.6",
556
+ version: "22.3.0",
553
557
  ngImport: i0,
554
558
  type: WrFitText,
555
559
  decorators: [{
@@ -566,6 +570,168 @@ i0.ɵɵngDeclareClassMetadata({
566
570
  }]
567
571
  }] }
568
572
  });
569
- export { WrAutofocus, WrAutosize, WrClickOutside, WrCopyToClipboard, WrFitText };
573
+ /**
574
+ * @license
575
+ *
576
+ * Use of this source code is governed by an MIT-style license that can be
577
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
578
+ */
579
+ var WrInViewObserver = class WrInViewObserver {
580
+ pools = /* @__PURE__ */ new Map();
581
+ observe(el, threshold, callback) {
582
+ let pool = this.pools.get(threshold);
583
+ if (!pool) {
584
+ const targets = /* @__PURE__ */ new Map();
585
+ pool = {
586
+ observer: new IntersectionObserver((entries) => {
587
+ for (const entry of entries) {
588
+ const inView = entry.isIntersecting && entry.intersectionRatio >= (threshold >= 1 ? .999 : threshold);
589
+ for (const cb of [...targets.get(entry.target) ?? []]) cb(inView);
590
+ }
591
+ }, { threshold }),
592
+ targets
593
+ };
594
+ this.pools.set(threshold, pool);
595
+ }
596
+ const { observer, targets } = pool;
597
+ let callbacks = targets.get(el);
598
+ if (!callbacks) {
599
+ callbacks = /* @__PURE__ */ new Set();
600
+ targets.set(el, callbacks);
601
+ observer.observe(el);
602
+ }
603
+ callbacks.add(callback);
604
+ return () => {
605
+ const set = targets.get(el);
606
+ if (!set?.delete(callback) || set.size) return;
607
+ targets.delete(el);
608
+ observer.unobserve(el);
609
+ if (!targets.size) {
610
+ observer.disconnect();
611
+ if (this.pools.get(threshold) === pool) this.pools.delete(threshold);
612
+ }
613
+ };
614
+ }
615
+ static ɵfac = i0.ɵɵngDeclareFactory({
616
+ minVersion: "12.0.0",
617
+ version: "22.3.0",
618
+ ngImport: i0,
619
+ type: WrInViewObserver,
620
+ deps: [],
621
+ target: i0.ɵɵFactoryTarget.Service
622
+ });
623
+ static ɵprov = i0.ɵɵngDeclareService({
624
+ minVersion: "22.0.0",
625
+ version: "22.3.0",
626
+ ngImport: i0,
627
+ type: WrInViewObserver
628
+ });
629
+ };
630
+ i0.ɵɵngDeclareClassMetadata({
631
+ minVersion: "12.0.0",
632
+ version: "22.3.0",
633
+ ngImport: i0,
634
+ type: WrInViewObserver,
635
+ decorators: [{ type: Service }]
636
+ });
637
+ var WrInView = class WrInView {
638
+ wrInView = output();
639
+ wrInViewThreshold = input(0, {
640
+ ...ngDevMode ? { debugName: "wrInViewThreshold" } : /* istanbul ignore next */ {},
641
+ transform: (value) => Math.min(1, Math.max(0, coerceNumberProperty(value, 0)))
642
+ });
643
+ wrInViewOnce = input(false, {
644
+ ...ngDevMode ? { debugName: "wrInViewOnce" } : /* istanbul ignore next */ {},
645
+ transform: coerceBooleanProperty
646
+ });
647
+ el = inject(ElementRef);
648
+ pool = inject(WrInViewObserver);
649
+ constructor() {
650
+ const destroyRef = inject(DestroyRef);
651
+ afterNextRender(() => {
652
+ if (typeof IntersectionObserver === "undefined") return;
653
+ let stop = null;
654
+ const unwatch = () => {
655
+ stop?.();
656
+ stop = null;
657
+ };
658
+ let last = false;
659
+ stop = this.pool.observe(this.el.nativeElement, this.wrInViewThreshold(), (inView) => {
660
+ if (inView === last) return;
661
+ last = inView;
662
+ this.wrInView.emit(inView);
663
+ if (inView && this.wrInViewOnce()) unwatch();
664
+ });
665
+ destroyRef.onDestroy(unwatch);
666
+ });
667
+ }
668
+ static ɵfac = i0.ɵɵngDeclareFactory({
669
+ minVersion: "12.0.0",
670
+ version: "22.3.0",
671
+ ngImport: i0,
672
+ type: WrInView,
673
+ deps: [],
674
+ target: i0.ɵɵFactoryTarget.Directive
675
+ });
676
+ static ɵdir = i0.ɵɵngDeclareDirective({
677
+ minVersion: "17.1.0",
678
+ version: "22.3.0",
679
+ type: WrInView,
680
+ isStandalone: true,
681
+ selector: "[wrInView]",
682
+ inputs: {
683
+ wrInViewThreshold: {
684
+ classPropertyName: "wrInViewThreshold",
685
+ publicName: "wrInViewThreshold",
686
+ isSignal: true,
687
+ isRequired: false,
688
+ transformFunction: null
689
+ },
690
+ wrInViewOnce: {
691
+ classPropertyName: "wrInViewOnce",
692
+ publicName: "wrInViewOnce",
693
+ isSignal: true,
694
+ isRequired: false,
695
+ transformFunction: null
696
+ }
697
+ },
698
+ outputs: { wrInView: "wrInView" },
699
+ ngImport: i0
700
+ });
701
+ };
702
+ i0.ɵɵngDeclareClassMetadata({
703
+ minVersion: "12.0.0",
704
+ version: "22.3.0",
705
+ ngImport: i0,
706
+ type: WrInView,
707
+ decorators: [{
708
+ type: Directive,
709
+ args: [{ selector: "[wrInView]" }]
710
+ }],
711
+ ctorParameters: () => [],
712
+ propDecorators: {
713
+ wrInView: [{
714
+ type: i0.Output,
715
+ args: ["wrInView"]
716
+ }],
717
+ wrInViewThreshold: [{
718
+ type: i0.Input,
719
+ args: [{
720
+ isSignal: true,
721
+ alias: "wrInViewThreshold",
722
+ required: false
723
+ }]
724
+ }],
725
+ wrInViewOnce: [{
726
+ type: i0.Input,
727
+ args: [{
728
+ isSignal: true,
729
+ alias: "wrInViewOnce",
730
+ required: false
731
+ }]
732
+ }]
733
+ }
734
+ });
735
+ export { WrAutofocus, WrAutosize, WrClickOutside, WrCopyToClipboard, WrFitText, WrInView };
570
736
 
571
737
  //# sourceMappingURL=ngwr-directives.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngwr-directives.mjs","names":["DOCUMENT","DOCUMENT"],"sources":["../../../projects/lib/directives/autofocus.ts","../../../projects/lib/directives/autosize.ts","../../../projects/lib/directives/click-outside.ts","../../../projects/lib/directives/copy-to-clipboard.ts","../../../projects/lib/directives/fit-text.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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, afterNextRender, effect, inject, input } from '@angular/core';\n\n/**\n * Focus the host element after the first render — or whenever the bound\n * expression transitions to truthy.\n *\n * @example\n * ```html\n * <input wrAutofocus />\n * <input [wrAutofocus]=\"shouldFocus()\" />\n * ```\n */\n@Directive({ selector: '[wrAutofocus]' })\nexport class WrAutofocus {\n /** Truthy = focus. Defaults to `true` so bare `wrAutofocus` works. */\n readonly wrAutofocus = input(true, { transform: coerceBooleanProperty });\n\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n constructor() {\n afterNextRender(() => {\n if (this.wrAutofocus()) this.el.nativeElement.focus();\n });\n effect(() => {\n if (this.wrAutofocus()) {\n // Microtask defer so view updates that flip the expression land first.\n queueMicrotask(() => this.el.nativeElement.focus());\n }\n });\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 { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, PLATFORM_ID, afterEveryRender, effect, inject, input } from '@angular/core';\n\n/**\n * Auto-grow a `<textarea>` to fit its content. Optional `minRows` /\n * `maxRows` bounds the height in rendered rows.\n *\n * @example\n * ```html\n * <textarea wrAutosize minRows=\"2\" maxRows=\"8\" [(ngModel)]=\"text\"></textarea>\n * ```\n */\n@Directive({\n selector: 'textarea[wrAutosize]',\n // Bound rather than a static `style` attribute: a real attribute is refused\n // under `style-src 'self'`, and the textarea then keeps the native resize\n // grip, which fights the directive's own height management.\n host: { '[style.overflow]': \"'hidden'\", '[style.resize]': \"'none'\", '(input)': 'onInput()' },\n})\nexport class WrAutosize {\n /**\n * Smallest height, in rendered rows. The textarea never shrinks below it,\n * so a field that starts empty still reserves the room.\n */\n readonly minRows = input(1, { transform: (v: unknown): number => Math.max(1, coerceNumberProperty(v, 1)) });\n /**\n * Largest height, in rendered rows. `0` — the default — lets it grow without\n * a ceiling; any other value caps the height and the textarea scrolls past it.\n */\n readonly maxRows = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n private readonly el = inject<ElementRef<HTMLTextAreaElement>>(ElementRef);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n private lastValue: string | null = null;\n\n constructor() {\n // Typing fires `input`, but `[(ngModel)]` / `setValue` write the value\n // without one — a cheap per-render value check catches both, including\n // the initial write that lands after the first render.\n afterEveryRender(() => {\n const value = this.el.nativeElement.value;\n if (value !== this.lastValue) {\n this.lastValue = value;\n this.resize();\n }\n });\n // Resize when `minRows` / `maxRows` change. Read the inputs before the\n // platform check so the effect still tracks them; the measurement itself\n // needs a real layout, which the server has none of (`afterEveryRender`\n // above is browser-only already, so it needs no guard).\n effect(() => {\n this.minRows();\n this.maxRows();\n if (!this.isBrowser) return;\n this.resize();\n });\n }\n\n /** @internal */\n protected onInput(): void {\n this.lastValue = this.el.nativeElement.value;\n this.resize();\n }\n\n /** Recompute height from `scrollHeight`, clamped to min/max rows. */\n private resize(): void {\n const node = this.el.nativeElement;\n const styles = getComputedStyle(node);\n // `line-height: normal` computes to the literal string — derive the\n // row height from the font size instead of guessing a fixed 20px.\n const lineHeight = parseFloat(styles.lineHeight) || parseFloat(styles.fontSize) * 1.25 || 20;\n const paddingY = parseFloat(styles.paddingTop) + parseFloat(styles.paddingBottom);\n const border = (parseFloat(styles.borderTopWidth) || 0) + (parseFloat(styles.borderBottomWidth) || 0);\n\n // Reset to a single row first so `scrollHeight` shrinks as well as grows.\n node.style.height = 'auto';\n const min = this.minRows() * lineHeight + paddingY + border;\n const max = this.maxRows() > 0 ? this.maxRows() * lineHeight + paddingY + border : Infinity;\n const next = Math.min(Math.max(node.scrollHeight + border, min), max);\n node.style.height = `${next}px`;\n node.style.overflowY = node.scrollHeight + border > max ? 'auto' : 'hidden';\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 { DOCUMENT } from '@angular/common';\nimport { DestroyRef, Directive, ElementRef, NgZone, inject, output } from '@angular/core';\n\n/**\n * Fires `(wrClickOutside)` when a pointer event lands outside the host\n * element. Useful for closing custom poppers / menus.\n *\n * @example\n * ```html\n * <div class=\"popup\" (wrClickOutside)=\"close()\"> … </div>\n * ```\n */\n@Directive({ selector: '[wrClickOutside]' })\nexport class WrClickOutside {\n /**\n * Fires on a pointer press that landed outside the host element. Close a\n * menu or commit an inline edit with it; the event is the original click.\n */\n readonly wrClickOutside = output<MouseEvent>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly doc = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n // Listen outside Angular to avoid CD on every page click; re-enter\n // only when the event lands outside the host.\n this.zone.runOutsideAngular(() => {\n const handler = (event: MouseEvent): void => {\n const target = event.target as Node | null;\n if (target && !this.host.nativeElement.contains(target)) {\n this.zone.run(() => this.wrClickOutside.emit(event));\n }\n };\n this.doc.addEventListener('mousedown', handler, true);\n this.destroyRef.onDestroy(() => {\n this.doc.removeEventListener('mousedown', handler, true);\n });\n });\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 { FocusMonitor, LiveAnnouncer } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT } from '@angular/common';\nimport { DestroyRef, Directive, Injector, inject, input, output, signal } from '@angular/core';\n\nimport { WR_COPIED_DURATION } from 'ngwr/clipboard';\nimport { useI18nText } from 'ngwr/i18n';\nimport { WrPopover, wrUseTextTooltip } from 'ngwr/popover';\nimport { WrToast } from 'ngwr/toast';\nimport { wrRestoreFocus } from 'ngwr/utils';\n\n/**\n * Copy `wrCopyToClipboard` to the system clipboard on host click.\n *\n * Uses `navigator.clipboard.writeText` when available, with a hidden\n * `<textarea>` + `document.execCommand('copy')` fallback for older browsers\n * and non-secure contexts.\n *\n * After a successful copy the host carries `wr-copy-to-clipboard--copied` for\n * a moment, a tooltip over it reads \"Copied\" and the same text is announced\n * politely. `wrCopyToClipboardToast` shows a toast instead of the tooltip and\n * the announcement. A refused write changes nothing and emits `copyFailed`.\n *\n * @example\n * ```html\n * <button [wrCopyToClipboard]=\"value\">Copy</button>\n * <button [wrCopyToClipboard]=\"rows\" wrCopyToClipboardToast copiedLabel=\"Copied to clipboard\">Copy all</button>\n * ```\n */\n@Directive({\n selector: '[wrCopyToClipboard]',\n exportAs: 'wrCopyToClipboard',\n host: {\n class: 'wr-copy-to-clipboard',\n '[class.wr-copy-to-clipboard--copied]': 'justCopied()',\n '(click)': 'copy()',\n },\n})\nexport class WrCopyToClipboard {\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n this.destroyed = true;\n this.clearTimer();\n });\n }\n\n /** The text to copy. */\n readonly wrCopyToClipboard = input.required<string>();\n\n /**\n * Confirm a copy with a toast instead of the tooltip and the announcement.\n *\n * @default false\n */\n readonly wrCopyToClipboardToast = input(false, { transform: coerceBooleanProperty });\n\n /** Text of the tooltip, the announcement and the toast. Falls back to `copyToClipboard.copied`, then `'Copied'`. */\n readonly copiedLabel = input<string | null>(null);\n\n /** Emitted with the copied text once the write succeeds. */\n readonly copied = output<string>();\n\n /** Emitted if the copy fails (denied permission, no clipboard, …). */\n readonly copyFailed = output<unknown>();\n\n /** True for a moment after a successful copy. */\n protected readonly justCopied = signal(false);\n\n private readonly resolvedCopiedLabel = useI18nText(this.copiedLabel, 'copyToClipboard.copied', 'Copied');\n\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly doc = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly tooltip = wrUseTextTooltip();\n private readonly hostPopover = inject(WrPopover, { self: true, optional: true });\n private destroyed = false;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * Copies the bound text, as a click does: `(copied)` or `(copyFailed)` fires\n * either way. Resolves `true` once the text is on the clipboard and `false`\n * when neither path could write it. It never rejects.\n */\n async copy(): Promise<boolean> {\n const text = this.wrCopyToClipboard();\n const async = this.doc.defaultView?.navigator?.clipboard;\n\n try {\n if (async) {\n try {\n await async.writeText(text);\n } catch {\n // The legacy path is a RECOVERY from the async one, so it only runs\n // when there was an async attempt to recover from. Reached from the\n // fallback's own failure it just repeated the same refused write —\n // two selections and two focus jumps for one press.\n this.fallback(text);\n }\n } else {\n this.fallback(text);\n }\n } catch (error) {\n this.copyFailed.emit(error);\n return false;\n }\n\n // Outside the try because the try's job is the WRITE. The shape this\n // replaced emitted inside it and recovered by calling `fallback` again, so\n // one refused write became two selections, two focus jumps and two `copied`\n // emissions. (A consumer's own `(copied)` handler cannot reach this frame\n // either way: `OutputEmitterRef.emit` catches what a listener throws and\n // hands it to the `ErrorHandler`.)\n // An output refuses to emit once its directive is gone.\n if (this.destroyed) return true;\n this.confirm();\n this.copied.emit(text);\n return true;\n }\n\n private confirm(): void {\n const label = this.resolvedCopiedLabel();\n this.clearTimer();\n this.justCopied.set(true);\n\n if (this.wrCopyToClipboardToast()) {\n this.injector.get(WrToast).show({ type: 'success', message: label, showCopy: false });\n } else {\n // The host's own hover tooltip would sit under this one, in the same place.\n if (this.hostPopover?.mode() === 'tooltip') this.hostPopover.close();\n this.tooltip.show(label);\n void this.injector.get(LiveAnnouncer).announce(label, 'polite', WR_COPIED_DURATION);\n }\n\n this.timer = setTimeout(() => {\n this.justCopied.set(false);\n this.tooltip.hide();\n }, WR_COPIED_DURATION);\n }\n\n private clearTimer(): void {\n if (this.timer !== null) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /**\n * Legacy clipboard write — hidden textarea + `execCommand('copy')`.\n *\n * Two things this has to get right beyond writing the text. `execCommand`\n * REPORTS refusal rather than throwing it: a document without focus hands back\n * `false` and copies nothing, so ignoring the return value shows a \"Copied!\"\n * toast over an unchanged clipboard. And selecting the textarea moves focus\n * into it, so removing the node afterwards drops focus on `<body>` — the user's\n * next Tab restarts from the top of the page, on every copy.\n */\n private fallback(text: string): void {\n const node = this.doc.createElement('textarea');\n node.value = text;\n node.setAttribute('readonly', '');\n node.style.position = 'fixed';\n node.style.top = '0';\n node.style.left = '0';\n node.style.opacity = '0';\n node.style.pointerEvents = 'none';\n\n const previous = this.doc.activeElement;\n this.doc.body.appendChild(node);\n node.select();\n\n try {\n if (!this.doc.execCommand('copy')) throw new Error('The copy command was refused.');\n } finally {\n this.doc.body.removeChild(node);\n if (previous instanceof HTMLElement) wrRestoreFocus(previous, this.focusMonitor);\n }\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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DestroyRef, Directive, ElementRef, afterNextRender, effect, inject, input } from '@angular/core';\n\n/**\n * Shrink a block whose text wraps to the width of its longest line.\n *\n * A wrapped block keeps the width it was offered, so a tinted pill with three\n * lines of text carries an empty band of background beside them, and CSS has\n * no way to take it back. The lines are measured and the host's inline `width`\n * is set to the widest one, padding and border included as its `box-sizing`\n * needs. Every line already fits that width, so the line breaks stay where\n * they were. It is measured again when the text changes and when the parent is\n * resized; a block on one line is left alone.\n *\n * The host needs a box that takes a width (block, inline-block, a flex or grid\n * item) and holds text and inline content.\n *\n * @example\n * ```html\n * <wr-tag wrFitText>A label long enough to wrap onto a second line</wr-tag>\n * <p [wrFitText]=\"fit()\">…</p>\n * ```\n */\n@Directive({ selector: '[wrFitText]' })\nexport class WrFitText {\n /** `false` switches the fitting off and removes the width it wrote. Bare `wrFitText` is on. */\n readonly wrFitText = input(true, { transform: coerceBooleanProperty });\n\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n private frame = 0;\n private started = false;\n /** The width this directive wrote, so switching off removes that and nothing else. */\n private written = '';\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const host = this.el.nativeElement;\n // The parent's height follows the host's, and in a shrink-to-fit parent so\n // does its width: only a new inline size can move a line break.\n let offered = -1;\n const resize =\n typeof ResizeObserver === 'undefined'\n ? null\n : new ResizeObserver(([entry]) => {\n if (entry.contentRect.width === offered) return;\n offered = entry.contentRect.width;\n this.schedule();\n });\n const text = new MutationObserver(() => this.schedule());\n\n if (host.parentElement) resize?.observe(host.parentElement);\n // No `attributes`: the width written below must not call the measure back.\n text.observe(host, { characterData: true, childList: true, subtree: true });\n\n this.started = true;\n this.fit();\n\n destroyRef.onDestroy(() => {\n cancelAnimationFrame(this.frame);\n resize?.disconnect();\n text.disconnect();\n });\n });\n\n effect(() => {\n this.wrFitText();\n if (this.started) this.schedule();\n });\n }\n\n private schedule(): void {\n cancelAnimationFrame(this.frame);\n this.frame = requestAnimationFrame(() => this.fit());\n }\n\n private fit(): void {\n const host = this.el.nativeElement;\n\n if (!this.wrFitText()) {\n if (this.written && host.style.width === this.written) host.style.width = '';\n this.written = '';\n return;\n }\n\n // Cleared first, so a parent that grew can take words back onto a line.\n host.style.width = '';\n this.written = '';\n\n const range = host.ownerDocument.createRange();\n range.selectNodeContents(host);\n const rects = Array.from(range.getClientRects()).filter(rect => rect.width > 0);\n if (!rects.length) return;\n\n // Inline children give several rects to one line, so a count says nothing.\n const firstLineEnd = rects[0].bottom;\n if (!rects.some(rect => rect.top >= firstLineEnd)) return;\n\n const start = Math.min(...rects.map(rect => rect.left));\n const end = Math.max(...rects.map(rect => rect.right));\n const style = getComputedStyle(host);\n const px = (value: string): number => parseFloat(value) || 0;\n const box =\n style.boxSizing === 'border-box'\n ? px(style.paddingLeft) + px(style.paddingRight) + px(style.borderLeftWidth) + px(style.borderRightWidth)\n : 0;\n\n // One pixel over: at the exact width, subpixel rounding wraps the longest line again.\n this.written = `${Math.ceil(end - start + box) + 1}px`;\n host.style.width = this.written;\n }\n}\n"],"mappings":";;;;;;;;;;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IAAI,GAAG,MAAM,KAAI,SAAQ,KAAK,IAAI,CAAC;EACtD,MAAM,MAAM,KAAK,IAAI,GAAG,MAAM,KAAI,SAAQ,KAAK,KAAK,CAAC;EACrD,MAAM,QAAQ,iBAAiB,IAAI;EACnC,MAAM,MAAM,UAA0B,WAAW,KAAK,KAAK;EAC3D,MAAM,MACJ,MAAM,cAAc,eAChB,GAAG,MAAM,WAAW,IAAI,GAAG,MAAM,YAAY,IAAI,GAAG,MAAM,eAAe,IAAI,GAAG,MAAM,gBAAgB,IACtG;EAGN,KAAK,UAAU,GAAG,KAAK,KAAK,MAAM,QAAQ,GAAG,IAAI,EAAC;EAClD,KAAK,MAAM,QAAQ,KAAK;CAC1B;CAxFW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAS,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAT,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAS,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,WAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,UAAA;CAAA,CAAA;;AAAT,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EADrB,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,cAAa,CAAE"}
1
+ {"version":3,"file":"ngwr-directives.mjs","names":["DOCUMENT","DOCUMENT"],"sources":["../../../projects/lib/directives/autofocus.ts","../../../projects/lib/directives/autosize.ts","../../../projects/lib/directives/click-outside.ts","../../../projects/lib/directives/copy-to-clipboard.ts","../../../projects/lib/directives/fit-text.ts","../../../projects/lib/directives/in-view.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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, Injector, afterNextRender, effect, inject, input } from '@angular/core';\n\nimport { wrGetFocusableElements } from 'ngwr/utils';\n\n/**\n * Focus the host element after the first render, or whenever the bound\n * expression turns truthy. `\"first\"` focuses the first focusable element\n * inside the host instead: the control of a form, a card or a dialog body.\n * Disabled and hidden elements are skipped.\n *\n * @example\n * ```html\n * <input wrAutofocus />\n * <input [wrAutofocus]=\"shouldFocus()\" />\n * <form wrAutofocus=\"first\">…</form>\n * <form [wrAutofocus]=\"editing() && 'first'\">…</form>\n * ```\n */\n@Directive({ selector: '[wrAutofocus]' })\nexport class WrAutofocus {\n /**\n * Truthy = focus the host, `'first'` = focus the first focusable element\n * inside it. Defaults to `true` so bare `wrAutofocus` works.\n */\n readonly wrAutofocus = input(true, {\n transform: (value: unknown): boolean | 'first' => (value === 'first' ? value : coerceBooleanProperty(value)),\n });\n\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly injector = inject(Injector);\n\n constructor() {\n effect(() => {\n const mode = this.wrAutofocus();\n if (!mode) return;\n // After the render, so what the same change drew is there to take focus.\n afterNextRender(\n () => {\n const host = this.el.nativeElement;\n // An explicit negative `tabindex` takes an element out of the Tab order;\n // an editing host with none still reads `tabIndex` -1 and stays eligible.\n const reachable = (el: HTMLElement): boolean => Number(el.getAttribute('tabindex') ?? 0) >= 0;\n (mode === 'first' ? wrGetFocusableElements(host).find(reachable) : host)?.focus();\n },\n { injector: this.injector }\n );\n });\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 { coerceNumberProperty } from '@angular/cdk/coercion';\nimport { isPlatformBrowser } from '@angular/common';\nimport { Directive, ElementRef, PLATFORM_ID, afterEveryRender, effect, inject, input } from '@angular/core';\n\n/**\n * Auto-grow a `<textarea>` to fit its content. Optional `minRows` /\n * `maxRows` bounds the height in rendered rows.\n *\n * @example\n * ```html\n * <textarea wrAutosize minRows=\"2\" maxRows=\"8\" [(ngModel)]=\"text\"></textarea>\n * ```\n */\n@Directive({\n selector: 'textarea[wrAutosize]',\n // Bound rather than a static `style` attribute: a real attribute is refused\n // under `style-src 'self'`, and the textarea then keeps the native resize\n // grip, which fights the directive's own height management.\n host: { '[style.overflow]': \"'hidden'\", '[style.resize]': \"'none'\", '(input)': 'onInput()' },\n})\nexport class WrAutosize {\n /**\n * Smallest height, in rendered rows. The textarea never shrinks below it,\n * so a field that starts empty still reserves the room.\n */\n readonly minRows = input(1, { transform: (v: unknown): number => Math.max(1, coerceNumberProperty(v, 1)) });\n /**\n * Largest height, in rendered rows. `0` — the default — lets it grow without\n * a ceiling; any other value caps the height and the textarea scrolls past it.\n */\n readonly maxRows = input(0, { transform: (v: unknown): number => Math.max(0, coerceNumberProperty(v, 0)) });\n\n private readonly el = inject<ElementRef<HTMLTextAreaElement>>(ElementRef);\n private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n private lastValue: string | null = null;\n\n constructor() {\n // Typing fires `input`, but `[(ngModel)]` / `setValue` write the value\n // without one — a cheap per-render value check catches both, including\n // the initial write that lands after the first render.\n afterEveryRender(() => {\n const value = this.el.nativeElement.value;\n if (value !== this.lastValue) {\n this.lastValue = value;\n this.resize();\n }\n });\n // Resize when `minRows` / `maxRows` change. Read the inputs before the\n // platform check so the effect still tracks them; the measurement itself\n // needs a real layout, which the server has none of (`afterEveryRender`\n // above is browser-only already, so it needs no guard).\n effect(() => {\n this.minRows();\n this.maxRows();\n if (!this.isBrowser) return;\n this.resize();\n });\n }\n\n /** @internal */\n protected onInput(): void {\n this.lastValue = this.el.nativeElement.value;\n this.resize();\n }\n\n /** Recompute height from `scrollHeight`, clamped to min/max rows. */\n private resize(): void {\n const node = this.el.nativeElement;\n const styles = getComputedStyle(node);\n // `line-height: normal` computes to the literal string — derive the\n // row height from the font size instead of guessing a fixed 20px.\n const lineHeight = parseFloat(styles.lineHeight) || parseFloat(styles.fontSize) * 1.25 || 20;\n const paddingY = parseFloat(styles.paddingTop) + parseFloat(styles.paddingBottom);\n const border = (parseFloat(styles.borderTopWidth) || 0) + (parseFloat(styles.borderBottomWidth) || 0);\n\n // Reset to a single row first so `scrollHeight` shrinks as well as grows.\n node.style.height = 'auto';\n const min = this.minRows() * lineHeight + paddingY + border;\n const max = this.maxRows() > 0 ? this.maxRows() * lineHeight + paddingY + border : Infinity;\n const next = Math.min(Math.max(node.scrollHeight + border, min), max);\n node.style.height = `${next}px`;\n node.style.overflowY = node.scrollHeight + border > max ? 'auto' : 'hidden';\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 { DOCUMENT } from '@angular/common';\nimport { DestroyRef, Directive, ElementRef, NgZone, inject, output } from '@angular/core';\n\n/**\n * Fires `(wrClickOutside)` when a pointer event lands outside the host\n * element. Useful for closing custom poppers / menus.\n *\n * @example\n * ```html\n * <div class=\"popup\" (wrClickOutside)=\"close()\"> … </div>\n * ```\n */\n@Directive({ selector: '[wrClickOutside]' })\nexport class WrClickOutside {\n /**\n * Fires on a pointer press that landed outside the host element. Close a\n * menu or commit an inline edit with it; the event is the original click.\n */\n readonly wrClickOutside = output<MouseEvent>();\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly doc = inject(DOCUMENT);\n private readonly zone = inject(NgZone);\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n // Listen outside Angular to avoid CD on every page click; re-enter\n // only when the event lands outside the host.\n this.zone.runOutsideAngular(() => {\n const handler = (event: MouseEvent): void => {\n const target = event.target as Node | null;\n if (target && !this.host.nativeElement.contains(target)) {\n this.zone.run(() => this.wrClickOutside.emit(event));\n }\n };\n this.doc.addEventListener('mousedown', handler, true);\n this.destroyRef.onDestroy(() => {\n this.doc.removeEventListener('mousedown', handler, true);\n });\n });\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 { FocusMonitor, LiveAnnouncer } from '@angular/cdk/a11y';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DOCUMENT } from '@angular/common';\nimport { DestroyRef, Directive, Injector, inject, input, output, signal } from '@angular/core';\n\nimport { WR_COPIED_DURATION } from 'ngwr/clipboard';\nimport { useI18nText } from 'ngwr/i18n';\nimport { WrPopover, wrUseTextTooltip } from 'ngwr/popover';\nimport { WrToast } from 'ngwr/toast';\nimport { wrRestoreFocus } from 'ngwr/utils';\n\n/**\n * Copy `wrCopyToClipboard` to the system clipboard on host click.\n *\n * Uses `navigator.clipboard.writeText` when available, with a hidden\n * `<textarea>` + `document.execCommand('copy')` fallback for older browsers\n * and non-secure contexts.\n *\n * After a successful copy the host carries `wr-copy-to-clipboard--copied` for\n * a moment, a tooltip over it reads \"Copied\" and the same text is announced\n * politely. `wrCopyToClipboardToast` shows a toast instead of the tooltip and\n * the announcement. A refused write changes nothing and emits `copyFailed`.\n *\n * @example\n * ```html\n * <button [wrCopyToClipboard]=\"value\">Copy</button>\n * <button [wrCopyToClipboard]=\"rows\" wrCopyToClipboardToast copiedLabel=\"Copied to clipboard\">Copy all</button>\n * ```\n */\n@Directive({\n selector: '[wrCopyToClipboard]',\n exportAs: 'wrCopyToClipboard',\n host: {\n class: 'wr-copy-to-clipboard',\n '[class.wr-copy-to-clipboard--copied]': 'justCopied()',\n '(click)': 'copy()',\n },\n})\nexport class WrCopyToClipboard {\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n this.destroyed = true;\n this.clearTimer();\n });\n }\n\n /** The text to copy. */\n readonly wrCopyToClipboard = input.required<string>();\n\n /**\n * Confirm a copy with a toast instead of the tooltip and the announcement.\n *\n * @default false\n */\n readonly wrCopyToClipboardToast = input(false, { transform: coerceBooleanProperty });\n\n /** Text of the tooltip, the announcement and the toast. Falls back to `copyToClipboard.copied`, then `'Copied'`. */\n readonly copiedLabel = input<string | null>(null);\n\n /** Emitted with the copied text once the write succeeds. */\n readonly copied = output<string>();\n\n /** Emitted if the copy fails (denied permission, no clipboard, …). */\n readonly copyFailed = output<unknown>();\n\n /** True for a moment after a successful copy. */\n protected readonly justCopied = signal(false);\n\n private readonly resolvedCopiedLabel = useI18nText(this.copiedLabel, 'copyToClipboard.copied', 'Copied');\n\n private readonly focusMonitor = inject(FocusMonitor);\n private readonly doc = inject(DOCUMENT);\n private readonly injector = inject(Injector);\n private readonly tooltip = wrUseTextTooltip();\n private readonly hostPopover = inject(WrPopover, { self: true, optional: true });\n private destroyed = false;\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /**\n * Copies the bound text, as a click does: `(copied)` or `(copyFailed)` fires\n * either way. Resolves `true` once the text is on the clipboard and `false`\n * when neither path could write it. It never rejects.\n */\n async copy(): Promise<boolean> {\n const text = this.wrCopyToClipboard();\n const async = this.doc.defaultView?.navigator?.clipboard;\n\n try {\n if (async) {\n try {\n await async.writeText(text);\n } catch {\n // The legacy path is a RECOVERY from the async one, so it only runs\n // when there was an async attempt to recover from. Reached from the\n // fallback's own failure it just repeated the same refused write —\n // two selections and two focus jumps for one press.\n this.fallback(text);\n }\n } else {\n this.fallback(text);\n }\n } catch (error) {\n this.copyFailed.emit(error);\n return false;\n }\n\n // Outside the try because the try's job is the WRITE. The shape this\n // replaced emitted inside it and recovered by calling `fallback` again, so\n // one refused write became two selections, two focus jumps and two `copied`\n // emissions. (A consumer's own `(copied)` handler cannot reach this frame\n // either way: `OutputEmitterRef.emit` catches what a listener throws and\n // hands it to the `ErrorHandler`.)\n // An output refuses to emit once its directive is gone.\n if (this.destroyed) return true;\n this.confirm();\n this.copied.emit(text);\n return true;\n }\n\n private confirm(): void {\n const label = this.resolvedCopiedLabel();\n this.clearTimer();\n this.justCopied.set(true);\n\n if (this.wrCopyToClipboardToast()) {\n this.injector.get(WrToast).show({ type: 'success', message: label, showCopy: false });\n } else {\n // The host's own hover tooltip would sit under this one, in the same place.\n if (this.hostPopover?.mode() === 'tooltip') this.hostPopover.close();\n this.tooltip.show(label);\n void this.injector.get(LiveAnnouncer).announce(label, 'polite', WR_COPIED_DURATION);\n }\n\n this.timer = setTimeout(() => {\n this.justCopied.set(false);\n this.tooltip.hide();\n }, WR_COPIED_DURATION);\n }\n\n private clearTimer(): void {\n if (this.timer !== null) clearTimeout(this.timer);\n this.timer = null;\n }\n\n /**\n * Legacy clipboard write — hidden textarea + `execCommand('copy')`.\n *\n * Two things this has to get right beyond writing the text. `execCommand`\n * REPORTS refusal rather than throwing it: a document without focus hands back\n * `false` and copies nothing, so ignoring the return value shows a \"Copied!\"\n * toast over an unchanged clipboard. And selecting the textarea moves focus\n * into it, so removing the node afterwards drops focus on `<body>` — the user's\n * next Tab restarts from the top of the page, on every copy.\n */\n private fallback(text: string): void {\n const node = this.doc.createElement('textarea');\n node.value = text;\n node.setAttribute('readonly', '');\n node.style.position = 'fixed';\n node.style.top = '0';\n node.style.left = '0';\n node.style.opacity = '0';\n node.style.pointerEvents = 'none';\n\n const previous = this.doc.activeElement;\n this.doc.body.appendChild(node);\n node.select();\n\n try {\n if (!this.doc.execCommand('copy')) throw new Error('The copy command was refused.');\n } finally {\n this.doc.body.removeChild(node);\n if (previous instanceof HTMLElement) wrRestoreFocus(previous, this.focusMonitor);\n }\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 { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { DestroyRef, Directive, ElementRef, afterNextRender, effect, inject, input } from '@angular/core';\n\n/**\n * Shrink a block whose text wraps to the width of its longest line.\n *\n * A wrapped block keeps the width it was offered, so a tinted pill with three\n * lines of text carries an empty band of background beside them, and CSS has\n * no way to take it back. The lines are measured and the host's inline `width`\n * is set to the widest one, padding and border included as its `box-sizing`\n * needs. Every line already fits that width, so the line breaks stay where\n * they were. It is measured again when the text changes and when the parent is\n * resized; a block on one line is left alone.\n *\n * The host needs a box that takes a width (block, inline-block, a flex or grid\n * item) and holds text and inline content.\n *\n * @example\n * ```html\n * <wr-tag wrFitText>A label long enough to wrap onto a second line</wr-tag>\n * <p [wrFitText]=\"fit()\">…</p>\n * ```\n */\n@Directive({ selector: '[wrFitText]' })\nexport class WrFitText {\n /** `false` switches the fitting off and removes the width it wrote. Bare `wrFitText` is on. */\n readonly wrFitText = input(true, { transform: coerceBooleanProperty });\n\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n private frame = 0;\n private started = false;\n /** The width this directive wrote, so switching off removes that and nothing else. */\n private written = '';\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n const host = this.el.nativeElement;\n // The parent's height follows the host's, and in a shrink-to-fit parent so\n // does its width: only a new inline size can move a line break.\n let offered = -1;\n const resize =\n typeof ResizeObserver === 'undefined'\n ? null\n : new ResizeObserver(([entry]) => {\n if (entry.contentRect.width === offered) return;\n offered = entry.contentRect.width;\n this.schedule();\n });\n const text = new MutationObserver(() => this.schedule());\n\n if (host.parentElement) resize?.observe(host.parentElement);\n // No `attributes`: the width written below must not call the measure back.\n text.observe(host, { characterData: true, childList: true, subtree: true });\n\n this.started = true;\n this.fit();\n\n destroyRef.onDestroy(() => {\n cancelAnimationFrame(this.frame);\n resize?.disconnect();\n text.disconnect();\n });\n });\n\n effect(() => {\n this.wrFitText();\n if (this.started) this.schedule();\n });\n }\n\n private schedule(): void {\n cancelAnimationFrame(this.frame);\n this.frame = requestAnimationFrame(() => this.fit());\n }\n\n private fit(): void {\n const host = this.el.nativeElement;\n\n if (!this.wrFitText()) {\n if (this.written && host.style.width === this.written) host.style.width = '';\n this.written = '';\n return;\n }\n\n // Cleared first, so a parent that grew can take words back onto a line.\n host.style.width = '';\n this.written = '';\n\n const range = host.ownerDocument.createRange();\n range.selectNodeContents(host);\n const rects = Array.from(range.getClientRects()).filter(rect => rect.width > 0);\n if (!rects.length) return;\n\n // Inline children give several rects to one line, so a count says nothing.\n const firstLineEnd = rects[0].bottom;\n if (!rects.some(rect => rect.top >= firstLineEnd)) return;\n\n const start = Math.min(...rects.map(rect => rect.left));\n const end = Math.max(...rects.map(rect => rect.right));\n const style = getComputedStyle(host);\n const px = (value: string): number => parseFloat(value) || 0;\n const box =\n style.boxSizing === 'border-box'\n ? px(style.paddingLeft) + px(style.paddingRight) + px(style.borderLeftWidth) + px(style.borderRightWidth)\n : 0;\n\n // One pixel over: at the exact width, subpixel rounding wraps the longest line again.\n this.written = `${Math.ceil(end - start + box) + 1}px`;\n host.style.width = this.written;\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 { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';\nimport { DestroyRef, Directive, ElementRef, Service, afterNextRender, inject, input, output } from '@angular/core';\n\ntype ViewCallback = (inView: boolean) => void;\n\ninterface Pool {\n readonly observer: IntersectionObserver;\n readonly targets: Map<Element, Set<ViewCallback>>;\n}\n\n/**\n * One `IntersectionObserver` per distinct `threshold`, shared by every element\n * watched with it. The observer is created with the first element and\n * disconnected with the last. Browser only: call it from `afterNextRender`.\n */\n@Service()\nexport class WrInViewObserver {\n private readonly pools = new Map<number, Pool>();\n\n /**\n * Watch `el` and call `callback` on every change with whether at least `threshold`\n * of it shows: `isIntersecting` alone is true for any sliver. Returns the stop function.\n */\n observe(el: Element, threshold: number, callback: ViewCallback): () => void {\n let pool = this.pools.get(threshold);\n if (!pool) {\n const targets = new Map<Element, Set<ViewCallback>>();\n const observer = new IntersectionObserver(\n entries => {\n for (const entry of entries) {\n // A copy: a callback may stop itself while the set is walked.\n // A fully shown host can report a hair under 1 from subpixel rounding;\n // any lower threshold is compared as it is.\n const inView = entry.isIntersecting && entry.intersectionRatio >= (threshold >= 1 ? 0.999 : threshold);\n for (const cb of [...(targets.get(entry.target) ?? [])]) cb(inView);\n }\n },\n { threshold }\n );\n pool = { observer, targets };\n this.pools.set(threshold, pool);\n }\n\n const { observer, targets } = pool;\n let callbacks = targets.get(el);\n if (!callbacks) {\n callbacks = new Set();\n targets.set(el, callbacks);\n observer.observe(el);\n }\n callbacks.add(callback);\n\n return () => {\n const set = targets.get(el);\n if (!set?.delete(callback) || set.size) return;\n targets.delete(el);\n observer.unobserve(el);\n if (!targets.size) {\n observer.disconnect();\n if (this.pools.get(threshold) === pool) this.pools.delete(threshold);\n }\n };\n }\n}\n\n/**\n * Emits when the host enters or leaves the viewport.\n *\n * `(wrInView)` carries `true` on entering and `false` on leaving, and only on a\n * change: an element that starts out of view emits nothing until it shows up.\n * `wrInViewOnce` stops after the first entry. Every instance with the same\n * `wrInViewThreshold` shares one `IntersectionObserver`. Nothing is observed on\n * the server.\n *\n * @example\n * ```html\n * <section (wrInView)=\"seen.set($event)\" [wrInViewThreshold]=\"0.5\"> … </section>\n * <img wrInViewOnce (wrInView)=\"load()\" />\n * ```\n */\n@Directive({ selector: '[wrInView]' })\nexport class WrInView {\n /** Fires with `true` when the host enters the viewport and `false` when it leaves. */\n readonly wrInView = output<boolean>();\n\n /**\n * The share of the host, from 0 to 1, that must be visible to count as in view.\n * Read once, when the host first renders. A host taller than the viewport never\n * reaches a threshold of 1.\n */\n readonly wrInViewThreshold = input(0, {\n transform: (value: unknown) => Math.min(1, Math.max(0, coerceNumberProperty(value, 0))),\n });\n\n /** Stop watching after the first entry. Bare `wrInViewOnce` is on. */\n readonly wrInViewOnce = input(false, { transform: coerceBooleanProperty });\n\n private readonly el = inject<ElementRef<Element>>(ElementRef);\n private readonly pool = inject(WrInViewObserver);\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n if (typeof IntersectionObserver === 'undefined') return;\n\n let stop: (() => void) | null = null;\n const unwatch = (): void => {\n stop?.();\n stop = null;\n };\n let last = false;\n stop = this.pool.observe(this.el.nativeElement, this.wrInViewThreshold(), inView => {\n if (inView === last) return;\n last = inView;\n this.wrInView.emit(inView);\n if (inView && this.wrInViewOnce()) unwatch();\n });\n destroyRef.onDestroy(unwatch);\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA2BA,IAAa,cAAb,MAAa,YAAW;CAKb,cAAc,MAAM,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,cAAA,+BAAA,CAAA;EAC/B,YAAY,UAAuC,UAAU,UAAU,QAAQ,sBAAsB,KAAK;CAAE,CAAA;CAG7F,KAAK,OAAgC,UAAU;CAC/C,WAAW,OAAO,QAAQ;CAE3C,cAAA;EACE,aAAY;GACV,MAAM,OAAO,KAAK,YAAW;GAC7B,IAAI,CAAC,MAAM;GAEX,sBACO;IACH,MAAM,OAAO,KAAK,GAAG;IAGrB,MAAM,aAAa,OAA6B,OAAO,GAAG,aAAa,UAAU,KAAK,CAAC,KAAK;IAC5F,CAAC,SAAS,UAAU,uBAAuB,IAAI,CAAC,CAAC,KAAK,SAAS,IAAI,KAAA,EAAO,MAAK;GACjF,GACA,EAAE,UAAU,KAAK,SAAQ,CAAE;EAE/B,CAAC;CACH;CA5BW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAW,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAX,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAW,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,aAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,UAAA;CAAA,CAAA;;AAAX,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAW,YAAA,CAAA;EADvB,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,gBAAe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AAQ,cAAA;EAAA,UAAA;EAAA,QAAA;GAAA,mBAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;GAAA,cAAA;IAAA,mBAAA;IAAA,YAAA;IAAA,UAAA;IAAA,YAAA;IAAA,mBAAA;GAAA;EAAA;EAAA,SAAA,EAAA,UAAA,WAAA;EAAA,UAAA;CAAA,CAAA;;AAAR,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAQ,YAAA,CAAA;EADpB,MAAA;EAAU,MAAA,CAAA,EAAE,UAAU,aAAY,CAAE"}
@@ -41,7 +41,7 @@ var WrDivider = class WrDivider {
41
41
  }
42
42
  static ɵfac = i0.ɵɵngDeclareFactory({
43
43
  minVersion: "12.0.0",
44
- version: "22.2.6",
44
+ version: "22.3.0",
45
45
  ngImport: i0,
46
46
  type: WrDivider,
47
47
  deps: [],
@@ -49,7 +49,7 @@ var WrDivider = class WrDivider {
49
49
  });
50
50
  static ɵcmp = i0.ɵɵngDeclareComponent({
51
51
  minVersion: "17.1.0",
52
- version: "22.2.6",
52
+ version: "22.3.0",
53
53
  type: WrDivider,
54
54
  isStandalone: true,
55
55
  selector: "wr-divider",
@@ -99,7 +99,7 @@ var WrDivider = class WrDivider {
99
99
  };
100
100
  i0.ɵɵngDeclareClassMetadata({
101
101
  minVersion: "12.0.0",
102
- version: "22.2.6",
102
+ version: "22.3.0",
103
103
  ngImport: i0,
104
104
  type: WrDivider,
105
105
  decorators: [{
@@ -25,7 +25,7 @@ var WrDrawerTitle = class WrDrawerTitle {
25
25
  id = `wr-drawer-title-${++uid}`;
26
26
  static ɵfac = i0.ɵɵngDeclareFactory({
27
27
  minVersion: "12.0.0",
28
- version: "22.2.6",
28
+ version: "22.3.0",
29
29
  ngImport: i0,
30
30
  type: WrDrawerTitle,
31
31
  deps: [],
@@ -33,7 +33,7 @@ var WrDrawerTitle = class WrDrawerTitle {
33
33
  });
34
34
  static ɵdir = i0.ɵɵngDeclareDirective({
35
35
  minVersion: "14.0.0",
36
- version: "22.2.6",
36
+ version: "22.3.0",
37
37
  type: WrDrawerTitle,
38
38
  isStandalone: true,
39
39
  selector: "[wrDrawerTitle]",
@@ -47,7 +47,7 @@ var WrDrawerTitle = class WrDrawerTitle {
47
47
  };
48
48
  i0.ɵɵngDeclareClassMetadata({
49
49
  minVersion: "12.0.0",
50
- version: "22.2.6",
50
+ version: "22.3.0",
51
51
  ngImport: i0,
52
52
  type: WrDrawerTitle,
53
53
  decorators: [{
@@ -237,7 +237,7 @@ var WrDrawer = class WrDrawer {
237
237
  }
238
238
  static ɵfac = i0.ɵɵngDeclareFactory({
239
239
  minVersion: "12.0.0",
240
- version: "22.2.6",
240
+ version: "22.3.0",
241
241
  ngImport: i0,
242
242
  type: WrDrawer,
243
243
  deps: [],
@@ -245,7 +245,7 @@ var WrDrawer = class WrDrawer {
245
245
  });
246
246
  static ɵcmp = i0.ɵɵngDeclareComponent({
247
247
  minVersion: "17.0.0",
248
- version: "22.2.6",
248
+ version: "22.3.0",
249
249
  type: WrDrawer,
250
250
  isStandalone: true,
251
251
  selector: "wr-drawer",
@@ -379,7 +379,7 @@ var WrDrawer = class WrDrawer {
379
379
  };
380
380
  i0.ɵɵngDeclareClassMetadata({
381
381
  minVersion: "12.0.0",
382
- version: "22.2.6",
382
+ version: "22.3.0",
383
383
  ngImport: i0,
384
384
  type: WrDrawer,
385
385
  decorators: [{
@@ -706,7 +706,7 @@ var WrDrawerManager = class WrDrawerManager {
706
706
  }
707
707
  static ɵfac = i0.ɵɵngDeclareFactory({
708
708
  minVersion: "12.0.0",
709
- version: "22.2.6",
709
+ version: "22.3.0",
710
710
  ngImport: i0,
711
711
  type: WrDrawerManager,
712
712
  deps: [],
@@ -714,14 +714,14 @@ var WrDrawerManager = class WrDrawerManager {
714
714
  });
715
715
  static ɵprov = i0.ɵɵngDeclareService({
716
716
  minVersion: "22.0.0",
717
- version: "22.2.6",
717
+ version: "22.3.0",
718
718
  ngImport: i0,
719
719
  type: WrDrawerManager
720
720
  });
721
721
  };
722
722
  i0.ɵɵngDeclareClassMetadata({
723
723
  minVersion: "12.0.0",
724
- version: "22.2.6",
724
+ version: "22.3.0",
725
725
  ngImport: i0,
726
726
  type: WrDrawerManager,
727
727
  decorators: [{ type: Service }]
@@ -738,7 +738,7 @@ var WrDrawerContent = class WrDrawerContent {
738
738
  }
739
739
  static ɵfac = i0.ɵɵngDeclareFactory({
740
740
  minVersion: "12.0.0",
741
- version: "22.2.6",
741
+ version: "22.3.0",
742
742
  ngImport: i0,
743
743
  type: WrDrawerContent,
744
744
  deps: [],
@@ -746,7 +746,7 @@ var WrDrawerContent = class WrDrawerContent {
746
746
  });
747
747
  static ɵdir = i0.ɵɵngDeclareDirective({
748
748
  minVersion: "14.0.0",
749
- version: "22.2.6",
749
+ version: "22.3.0",
750
750
  type: WrDrawerContent,
751
751
  isStandalone: true,
752
752
  selector: "[wrDrawerContent]",
@@ -756,7 +756,7 @@ var WrDrawerContent = class WrDrawerContent {
756
756
  };
757
757
  i0.ɵɵngDeclareClassMetadata({
758
758
  minVersion: "12.0.0",
759
- version: "22.2.6",
759
+ version: "22.3.0",
760
760
  ngImport: i0,
761
761
  type: WrDrawerContent,
762
762
  decorators: [{
@@ -782,7 +782,7 @@ var WrDrawerFooter = class WrDrawerFooter {
782
782
  classes = computed(() => `wr-drawer__footer wr-drawer__footer--${this.align()}`, ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
783
783
  static ɵfac = i0.ɵɵngDeclareFactory({
784
784
  minVersion: "12.0.0",
785
- version: "22.2.6",
785
+ version: "22.3.0",
786
786
  ngImport: i0,
787
787
  type: WrDrawerFooter,
788
788
  deps: [],
@@ -790,7 +790,7 @@ var WrDrawerFooter = class WrDrawerFooter {
790
790
  });
791
791
  static ɵdir = i0.ɵɵngDeclareDirective({
792
792
  minVersion: "17.1.0",
793
- version: "22.2.6",
793
+ version: "22.3.0",
794
794
  type: WrDrawerFooter,
795
795
  isStandalone: true,
796
796
  selector: "[wrDrawerFooter]",
@@ -810,7 +810,7 @@ var WrDrawerFooter = class WrDrawerFooter {
810
810
  };
811
811
  i0.ɵɵngDeclareClassMetadata({
812
812
  minVersion: "12.0.0",
813
- version: "22.2.6",
813
+ version: "22.3.0",
814
814
  ngImport: i0,
815
815
  type: WrDrawerFooter,
816
816
  decorators: [{
@@ -859,7 +859,7 @@ var WrDrawerClose = class WrDrawerClose {
859
859
  }
860
860
  static ɵfac = i0.ɵɵngDeclareFactory({
861
861
  minVersion: "12.0.0",
862
- version: "22.2.6",
862
+ version: "22.3.0",
863
863
  ngImport: i0,
864
864
  type: WrDrawerClose,
865
865
  deps: [],
@@ -867,7 +867,7 @@ var WrDrawerClose = class WrDrawerClose {
867
867
  });
868
868
  static ɵdir = i0.ɵɵngDeclareDirective({
869
869
  minVersion: "17.1.0",
870
- version: "22.2.6",
870
+ version: "22.3.0",
871
871
  type: WrDrawerClose,
872
872
  isStandalone: true,
873
873
  selector: "[wrDrawerClose]",
@@ -884,7 +884,7 @@ var WrDrawerClose = class WrDrawerClose {
884
884
  };
885
885
  i0.ɵɵngDeclareClassMetadata({
886
886
  minVersion: "12.0.0",
887
- version: "22.2.6",
887
+ version: "22.3.0",
888
888
  ngImport: i0,
889
889
  type: WrDrawerClose,
890
890
  decorators: [{