ngwr 15.9.0 → 16.1.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 (455) hide show
  1. package/animations/aurora/styles/_index.scss +1 -1
  2. package/animations/blur-reveal/styles/_index.scss +1 -1
  3. package/animations/decode/styles/_index.scss +1 -1
  4. package/animations/dot-grid/styles/_index.scss +1 -1
  5. package/animations/flow-lines/styles/_index.scss +1 -1
  6. package/animations/fluid-cursor/styles/_index.scss +1 -1
  7. package/animations/{core → internal}/styles/_mixins.scss +1 -1
  8. package/animations/reveal/styles/_index.scss +1 -1
  9. package/animations/ripple-grid/styles/_index.scss +1 -1
  10. package/animations/rotate-reveal/styles/_index.scss +1 -1
  11. package/animations/thread-lines/styles/_index.scss +1 -1
  12. package/animations/typewriter/styles/_index.scss +1 -1
  13. package/badge/styles/_tag.scss +8 -4
  14. package/button/styles/_index.scss +13 -7
  15. package/cascader/styles/_rules.scss +4 -2
  16. package/checkbox/styles/_index.scss +4 -2
  17. package/copy-value/styles/_index.scss +104 -0
  18. package/date-picker/styles/_index.scss +121 -0
  19. package/date-stamp/styles/_index.scss +38 -0
  20. package/dialog/styles/_index.scss +38 -0
  21. package/fesm2022/{ngwr-animations-core.mjs → internal-BaQU4t_0.mjs} +6 -49
  22. package/fesm2022/internal-BaQU4t_0.mjs.map +1 -0
  23. package/fesm2022/internal-CVLvP9b_.mjs +33 -0
  24. package/fesm2022/internal-CVLvP9b_.mjs.map +1 -0
  25. package/fesm2022/ngwr-alert.mjs +13 -9
  26. package/fesm2022/ngwr-alert.mjs.map +1 -1
  27. package/fesm2022/ngwr-animations-aurora.mjs +21 -21
  28. package/fesm2022/ngwr-animations-aurora.mjs.map +1 -1
  29. package/fesm2022/ngwr-animations-blur-reveal.mjs +3 -3
  30. package/fesm2022/ngwr-animations-blur-reveal.mjs.map +1 -1
  31. package/fesm2022/ngwr-animations-click-sparks.mjs +2 -2
  32. package/fesm2022/ngwr-animations-click-sparks.mjs.map +1 -1
  33. package/fesm2022/ngwr-animations-confetti.mjs +5 -5
  34. package/fesm2022/ngwr-animations-confetti.mjs.map +1 -1
  35. package/fesm2022/ngwr-animations-decode.mjs +4 -4
  36. package/fesm2022/ngwr-animations-decode.mjs.map +1 -1
  37. package/fesm2022/ngwr-animations-destruct.mjs +5 -5
  38. package/fesm2022/ngwr-animations-destruct.mjs.map +1 -1
  39. package/fesm2022/ngwr-animations-dot-grid.mjs +7 -7
  40. package/fesm2022/ngwr-animations-dot-grid.mjs.map +1 -1
  41. package/fesm2022/ngwr-animations-falling-letters.mjs +3 -3
  42. package/fesm2022/ngwr-animations-falling-letters.mjs.map +1 -1
  43. package/fesm2022/ngwr-animations-flow-lines.mjs +17 -17
  44. package/fesm2022/ngwr-animations-flow-lines.mjs.map +1 -1
  45. package/fesm2022/ngwr-animations-fluid-cursor.mjs +12 -12
  46. package/fesm2022/ngwr-animations-fluid-cursor.mjs.map +1 -1
  47. package/fesm2022/ngwr-animations-glitch.mjs +2 -2
  48. package/fesm2022/ngwr-animations-glitch.mjs.map +1 -1
  49. package/fesm2022/ngwr-animations-marquee.mjs +2 -2
  50. package/fesm2022/ngwr-animations-marquee.mjs.map +1 -1
  51. package/fesm2022/ngwr-animations-orbit.mjs +7 -7
  52. package/fesm2022/ngwr-animations-orbit.mjs.map +1 -1
  53. package/fesm2022/ngwr-animations-reveal.mjs +4 -4
  54. package/fesm2022/ngwr-animations-reveal.mjs.map +1 -1
  55. package/fesm2022/ngwr-animations-ripple-grid.mjs +5 -5
  56. package/fesm2022/ngwr-animations-ripple-grid.mjs.map +1 -1
  57. package/fesm2022/ngwr-animations-rotate-reveal.mjs +4 -4
  58. package/fesm2022/ngwr-animations-rotate-reveal.mjs.map +1 -1
  59. package/fesm2022/ngwr-animations-shimmer.mjs +2 -2
  60. package/fesm2022/ngwr-animations-shimmer.mjs.map +1 -1
  61. package/fesm2022/ngwr-animations-spotlight.mjs +1 -1
  62. package/fesm2022/ngwr-animations-spotlight.mjs.map +1 -1
  63. package/fesm2022/ngwr-animations-thread-lines.mjs +16 -16
  64. package/fesm2022/ngwr-animations-thread-lines.mjs.map +1 -1
  65. package/fesm2022/ngwr-animations-tilt.mjs +3 -3
  66. package/fesm2022/ngwr-animations-tilt.mjs.map +1 -1
  67. package/fesm2022/ngwr-animations-typewriter.mjs +4 -4
  68. package/fesm2022/ngwr-animations-typewriter.mjs.map +1 -1
  69. package/fesm2022/ngwr-avatar.mjs +14 -10
  70. package/fesm2022/ngwr-avatar.mjs.map +1 -1
  71. package/fesm2022/ngwr-back-top.mjs +10 -6
  72. package/fesm2022/ngwr-back-top.mjs.map +1 -1
  73. package/fesm2022/ngwr-badge.mjs +18 -6
  74. package/fesm2022/ngwr-badge.mjs.map +1 -1
  75. package/fesm2022/ngwr-burger.mjs +9 -6
  76. package/fesm2022/ngwr-burger.mjs.map +1 -1
  77. package/fesm2022/ngwr-button.mjs +8 -4
  78. package/fesm2022/ngwr-button.mjs.map +1 -1
  79. package/fesm2022/ngwr-calendar.mjs +19 -8
  80. package/fesm2022/ngwr-calendar.mjs.map +1 -1
  81. package/fesm2022/ngwr-card.mjs +9 -5
  82. package/fesm2022/ngwr-card.mjs.map +1 -1
  83. package/fesm2022/ngwr-cascader.mjs +54 -25
  84. package/fesm2022/ngwr-cascader.mjs.map +1 -1
  85. package/fesm2022/ngwr-charts-bar-chart.mjs +13 -13
  86. package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
  87. package/fesm2022/ngwr-charts-boxplot-chart.mjs +9 -9
  88. package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
  89. package/fesm2022/ngwr-charts-bullet-chart.mjs +8 -8
  90. package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
  91. package/fesm2022/ngwr-charts-calendar-heatmap.mjs +5 -2
  92. package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
  93. package/fesm2022/ngwr-charts-candlestick-chart.mjs +11 -11
  94. package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
  95. package/fesm2022/ngwr-charts-chart-legend.mjs +2 -2
  96. package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
  97. package/fesm2022/ngwr-charts-core.mjs +20 -20
  98. package/fesm2022/ngwr-charts-core.mjs.map +1 -1
  99. package/fesm2022/ngwr-charts-donut-chart.mjs +2 -2
  100. package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
  101. package/fesm2022/ngwr-charts-funnel-chart.mjs +6 -6
  102. package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
  103. package/fesm2022/ngwr-charts-gauge.mjs +3 -3
  104. package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
  105. package/fesm2022/ngwr-charts-heatmap-chart.mjs +3 -3
  106. package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
  107. package/fesm2022/ngwr-charts-line-chart.mjs +10 -10
  108. package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
  109. package/fesm2022/ngwr-charts-meter-group.mjs +2 -2
  110. package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
  111. package/fesm2022/ngwr-charts-radar-chart.mjs +11 -11
  112. package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
  113. package/fesm2022/ngwr-charts-scatter-chart.mjs +10 -10
  114. package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
  115. package/fesm2022/ngwr-charts-treemap-chart.mjs +4 -4
  116. package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
  117. package/fesm2022/ngwr-charts-waterfall-chart.mjs +7 -7
  118. package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
  119. package/fesm2022/ngwr-checkbox.mjs +12 -8
  120. package/fesm2022/ngwr-checkbox.mjs.map +1 -1
  121. package/fesm2022/ngwr-clipboard.mjs +2 -1
  122. package/fesm2022/ngwr-clipboard.mjs.map +1 -1
  123. package/fesm2022/ngwr-collapse.mjs +11 -7
  124. package/fesm2022/ngwr-collapse.mjs.map +1 -1
  125. package/fesm2022/ngwr-color-picker.mjs +56 -54
  126. package/fesm2022/ngwr-color-picker.mjs.map +1 -1
  127. package/fesm2022/ngwr-command-palette.mjs +4 -4
  128. package/fesm2022/ngwr-command-palette.mjs.map +1 -1
  129. package/fesm2022/ngwr-comment.mjs +15 -9
  130. package/fesm2022/ngwr-comment.mjs.map +1 -1
  131. package/fesm2022/ngwr-compare.mjs +15 -9
  132. package/fesm2022/ngwr-compare.mjs.map +1 -1
  133. package/fesm2022/ngwr-context-menu.mjs +8 -6
  134. package/fesm2022/ngwr-context-menu.mjs.map +1 -1
  135. package/fesm2022/ngwr-copy-value-testing.mjs +58 -0
  136. package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -0
  137. package/fesm2022/ngwr-copy-value.mjs +201 -0
  138. package/fesm2022/ngwr-copy-value.mjs.map +1 -0
  139. package/fesm2022/ngwr-counter.mjs +3 -3
  140. package/fesm2022/ngwr-counter.mjs.map +1 -1
  141. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  142. package/fesm2022/ngwr-date-picker.mjs +303 -70
  143. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  144. package/fesm2022/ngwr-date-stamp-testing.mjs +34 -0
  145. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -0
  146. package/fesm2022/ngwr-date-stamp.mjs +149 -0
  147. package/fesm2022/ngwr-date-stamp.mjs.map +1 -0
  148. package/fesm2022/ngwr-date.mjs +304 -53
  149. package/fesm2022/ngwr-date.mjs.map +1 -1
  150. package/fesm2022/ngwr-descriptions.mjs +9 -5
  151. package/fesm2022/ngwr-descriptions.mjs.map +1 -1
  152. package/fesm2022/ngwr-dialog-testing.mjs +23 -2
  153. package/fesm2022/ngwr-dialog-testing.mjs.map +1 -1
  154. package/fesm2022/ngwr-dialog.mjs +77 -19
  155. package/fesm2022/ngwr-dialog.mjs.map +1 -1
  156. package/fesm2022/ngwr-directives.mjs +218 -12
  157. package/fesm2022/ngwr-directives.mjs.map +1 -1
  158. package/fesm2022/ngwr-divider.mjs +4 -2
  159. package/fesm2022/ngwr-divider.mjs.map +1 -1
  160. package/fesm2022/ngwr-drawer.mjs +32 -6
  161. package/fesm2022/ngwr-drawer.mjs.map +1 -1
  162. package/fesm2022/ngwr-dropdown.mjs +17 -14
  163. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  164. package/fesm2022/ngwr-editor.mjs +33 -30
  165. package/fesm2022/ngwr-editor.mjs.map +1 -1
  166. package/fesm2022/ngwr-event-calendar.mjs +9 -7
  167. package/fesm2022/ngwr-event-calendar.mjs.map +1 -1
  168. package/fesm2022/ngwr-file-upload.mjs +17 -11
  169. package/fesm2022/ngwr-file-upload.mjs.map +1 -1
  170. package/fesm2022/ngwr-form.mjs +18 -6
  171. package/fesm2022/ngwr-form.mjs.map +1 -1
  172. package/fesm2022/ngwr-graph.mjs +3 -3
  173. package/fesm2022/ngwr-graph.mjs.map +1 -1
  174. package/fesm2022/ngwr-hotkey.mjs +22 -22
  175. package/fesm2022/ngwr-hotkey.mjs.map +1 -1
  176. package/fesm2022/ngwr-i18n-ar.mjs +7 -0
  177. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  178. package/fesm2022/ngwr-i18n-cs.mjs +7 -0
  179. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  180. package/fesm2022/ngwr-i18n-de.mjs +7 -0
  181. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  182. package/fesm2022/ngwr-i18n-en.mjs +7 -0
  183. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  184. package/fesm2022/ngwr-i18n-es.mjs +7 -0
  185. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  186. package/fesm2022/ngwr-i18n-fr.mjs +7 -0
  187. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  188. package/fesm2022/ngwr-i18n-he.mjs +7 -0
  189. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  190. package/fesm2022/ngwr-i18n-hi.mjs +7 -0
  191. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  192. package/fesm2022/ngwr-i18n-id.mjs +7 -0
  193. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  194. package/fesm2022/ngwr-i18n-it.mjs +7 -0
  195. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  196. package/fesm2022/ngwr-i18n-ja.mjs +7 -0
  197. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  198. package/fesm2022/ngwr-i18n-ko.mjs +7 -0
  199. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  200. package/fesm2022/ngwr-i18n-nl.mjs +7 -0
  201. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  202. package/fesm2022/ngwr-i18n-pl.mjs +7 -0
  203. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  204. package/fesm2022/ngwr-i18n-pt.mjs +7 -0
  205. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  206. package/fesm2022/ngwr-i18n-ru.mjs +7 -0
  207. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  208. package/fesm2022/ngwr-i18n-sv.mjs +7 -0
  209. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  210. package/fesm2022/ngwr-i18n-tr.mjs +7 -0
  211. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  212. package/fesm2022/ngwr-i18n-uk.mjs +7 -0
  213. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  214. package/fesm2022/ngwr-i18n-vi.mjs +7 -0
  215. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  216. package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -0
  217. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  218. package/fesm2022/ngwr-i18n-zh.mjs +7 -0
  219. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  220. package/fesm2022/ngwr-i18n.mjs +36 -10
  221. package/fesm2022/ngwr-i18n.mjs.map +1 -1
  222. package/fesm2022/ngwr-icon.mjs +5 -5
  223. package/fesm2022/ngwr-icon.mjs.map +1 -1
  224. package/fesm2022/ngwr-image-cropper.mjs +11 -11
  225. package/fesm2022/ngwr-image-cropper.mjs.map +1 -1
  226. package/fesm2022/ngwr-input-number.mjs +13 -7
  227. package/fesm2022/ngwr-input-number.mjs.map +1 -1
  228. package/fesm2022/ngwr-input-otp.mjs +6 -4
  229. package/fesm2022/ngwr-input-otp.mjs.map +1 -1
  230. package/fesm2022/ngwr-input.mjs +35 -25
  231. package/fesm2022/ngwr-input.mjs.map +1 -1
  232. package/fesm2022/ngwr-keyboard.mjs +37 -31
  233. package/fesm2022/ngwr-keyboard.mjs.map +1 -1
  234. package/fesm2022/ngwr-knob.mjs +13 -7
  235. package/fesm2022/ngwr-knob.mjs.map +1 -1
  236. package/fesm2022/ngwr-layout.mjs +13 -5
  237. package/fesm2022/ngwr-layout.mjs.map +1 -1
  238. package/fesm2022/ngwr-lightbox.mjs +11 -7
  239. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  240. package/fesm2022/ngwr-list.mjs +13 -5
  241. package/fesm2022/ngwr-list.mjs.map +1 -1
  242. package/fesm2022/ngwr-load-state.mjs +11 -7
  243. package/fesm2022/ngwr-load-state.mjs.map +1 -1
  244. package/fesm2022/ngwr-mention.mjs +6 -6
  245. package/fesm2022/ngwr-mention.mjs.map +1 -1
  246. package/fesm2022/ngwr-meta.mjs +19 -3
  247. package/fesm2022/ngwr-meta.mjs.map +1 -1
  248. package/fesm2022/ngwr-overlay.mjs +87 -4
  249. package/fesm2022/ngwr-overlay.mjs.map +1 -1
  250. package/fesm2022/ngwr-pagination.mjs +10 -7
  251. package/fesm2022/ngwr-pagination.mjs.map +1 -1
  252. package/fesm2022/ngwr-pipes.mjs +22 -8
  253. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  254. package/fesm2022/ngwr-platform.mjs +4 -1
  255. package/fesm2022/ngwr-platform.mjs.map +1 -1
  256. package/fesm2022/ngwr-popconfirm.mjs +6 -5
  257. package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
  258. package/fesm2022/ngwr-popover.mjs +124 -34
  259. package/fesm2022/ngwr-popover.mjs.map +1 -1
  260. package/fesm2022/ngwr-progress.mjs +4 -2
  261. package/fesm2022/ngwr-progress.mjs.map +1 -1
  262. package/fesm2022/ngwr-pull-to-refresh.mjs +2 -2
  263. package/fesm2022/ngwr-pull-to-refresh.mjs.map +1 -1
  264. package/fesm2022/ngwr-qr.mjs +6 -6
  265. package/fesm2022/ngwr-qr.mjs.map +1 -1
  266. package/fesm2022/ngwr-radio.mjs +12 -8
  267. package/fesm2022/ngwr-radio.mjs.map +1 -1
  268. package/fesm2022/ngwr-rating.mjs +19 -13
  269. package/fesm2022/ngwr-rating.mjs.map +1 -1
  270. package/fesm2022/ngwr-resizable.mjs +503 -0
  271. package/fesm2022/ngwr-resizable.mjs.map +1 -0
  272. package/fesm2022/ngwr-result.mjs +9 -5
  273. package/fesm2022/ngwr-result.mjs.map +1 -1
  274. package/fesm2022/ngwr-schema-form.mjs +15 -5
  275. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  276. package/fesm2022/ngwr-segmented.mjs +4 -2
  277. package/fesm2022/ngwr-segmented.mjs.map +1 -1
  278. package/fesm2022/ngwr-select.mjs +70 -39
  279. package/fesm2022/ngwr-select.mjs.map +1 -1
  280. package/fesm2022/ngwr-sidebar.mjs +3 -3
  281. package/fesm2022/ngwr-sidebar.mjs.map +1 -1
  282. package/fesm2022/ngwr-skeleton.mjs +6 -4
  283. package/fesm2022/ngwr-skeleton.mjs.map +1 -1
  284. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  285. package/fesm2022/ngwr-slider.mjs +17 -15
  286. package/fesm2022/ngwr-slider.mjs.map +1 -1
  287. package/fesm2022/ngwr-sortable-list.mjs +3 -3
  288. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  289. package/fesm2022/ngwr-speed-dial.mjs +4 -2
  290. package/fesm2022/ngwr-speed-dial.mjs.map +1 -1
  291. package/fesm2022/ngwr-spinner.mjs +4 -2
  292. package/fesm2022/ngwr-spinner.mjs.map +1 -1
  293. package/fesm2022/ngwr-splitter.mjs +21 -25
  294. package/fesm2022/ngwr-splitter.mjs.map +1 -1
  295. package/fesm2022/ngwr-statistic.mjs +5 -3
  296. package/fesm2022/ngwr-statistic.mjs.map +1 -1
  297. package/fesm2022/ngwr-stepper.mjs +9 -3
  298. package/fesm2022/ngwr-stepper.mjs.map +1 -1
  299. package/fesm2022/ngwr-storage.mjs +6 -4
  300. package/fesm2022/ngwr-storage.mjs.map +1 -1
  301. package/fesm2022/ngwr-switch.mjs +11 -7
  302. package/fesm2022/ngwr-switch.mjs.map +1 -1
  303. package/fesm2022/ngwr-table-testing.mjs +5 -1
  304. package/fesm2022/ngwr-table-testing.mjs.map +1 -1
  305. package/fesm2022/ngwr-table.mjs +396 -35
  306. package/fesm2022/ngwr-table.mjs.map +1 -1
  307. package/fesm2022/ngwr-tabs.mjs +2 -2
  308. package/fesm2022/ngwr-tabs.mjs.map +1 -1
  309. package/fesm2022/ngwr-textarea.mjs +9 -3
  310. package/fesm2022/ngwr-textarea.mjs.map +1 -1
  311. package/fesm2022/ngwr-timeline.mjs +18 -8
  312. package/fesm2022/ngwr-timeline.mjs.map +1 -1
  313. package/fesm2022/ngwr-toast-testing.mjs +14 -2
  314. package/fesm2022/ngwr-toast-testing.mjs.map +1 -1
  315. package/fesm2022/ngwr-toast.mjs +588 -120
  316. package/fesm2022/ngwr-toast.mjs.map +1 -1
  317. package/fesm2022/ngwr-tour.mjs +7 -7
  318. package/fesm2022/ngwr-tour.mjs.map +1 -1
  319. package/fesm2022/ngwr-transfer.mjs +24 -11
  320. package/fesm2022/ngwr-transfer.mjs.map +1 -1
  321. package/fesm2022/ngwr-tree.mjs +68 -26
  322. package/fesm2022/ngwr-tree.mjs.map +1 -1
  323. package/fesm2022/ngwr-typography.mjs +9 -3
  324. package/fesm2022/ngwr-typography.mjs.map +1 -1
  325. package/fesm2022/ngwr-utils-router.mjs +18 -2
  326. package/fesm2022/ngwr-utils-router.mjs.map +1 -1
  327. package/fesm2022/ngwr-utils.mjs +106 -56
  328. package/fesm2022/ngwr-utils.mjs.map +1 -1
  329. package/fesm2022/ngwr-validators.mjs +2 -2
  330. package/fesm2022/ngwr-validators.mjs.map +1 -1
  331. package/fesm2022/ngwr-version.mjs +1 -1
  332. package/fesm2022/ngwr-version.mjs.map +1 -1
  333. package/fesm2022/ngwr-window.mjs +33 -30
  334. package/fesm2022/ngwr-window.mjs.map +1 -1
  335. package/fesm2022/ngwr.mjs.map +1 -1
  336. package/i18n/ar.json +11 -0
  337. package/i18n/cs.json +11 -0
  338. package/i18n/de.json +11 -0
  339. package/i18n/en.json +11 -0
  340. package/i18n/es.json +11 -0
  341. package/i18n/fr.json +11 -0
  342. package/i18n/he.json +11 -0
  343. package/i18n/hi.json +11 -0
  344. package/i18n/id.json +11 -0
  345. package/i18n/it.json +11 -0
  346. package/i18n/ja.json +11 -0
  347. package/i18n/ko.json +11 -0
  348. package/i18n/nl.json +11 -0
  349. package/i18n/pl.json +11 -0
  350. package/i18n/pt.json +11 -0
  351. package/i18n/ru.json +11 -0
  352. package/i18n/sv.json +11 -0
  353. package/i18n/tr.json +11 -0
  354. package/i18n/uk.json +11 -0
  355. package/i18n/vi.json +11 -0
  356. package/i18n/zh-TW.json +11 -0
  357. package/i18n/zh.json +11 -0
  358. package/input/styles/_index.scss +10 -5
  359. package/input-number/styles/_index.scss +12 -3
  360. package/input-otp/styles/_index.scss +4 -2
  361. package/llms-full.txt +54 -23
  362. package/llms.txt +45 -23
  363. package/mcp/providers.js +1 -1
  364. package/package.json +29 -10
  365. package/radio/styles/_index.scss +4 -2
  366. package/resizable/styles/_index.scss +154 -0
  367. package/schematics/icon-set/index.js +3 -3
  368. package/schematics/migrations/v16/index.js +742 -0
  369. package/schematics/migrations.json +5 -0
  370. package/schematics/ng-add/index.js +4 -4
  371. package/schematics/provider/index.js +4 -4
  372. package/schematics/use/rule.js +1 -0
  373. package/schematics/use/symbol-map.json +6 -0
  374. package/select/styles/_index.scss +7 -4
  375. package/skills/ngwr/SKILL.md +6 -4
  376. package/skills/ngwr/references/catalog.md +8 -3
  377. package/skills/ngwr/references/setup.md +13 -9
  378. package/switch/styles/_index.scss +4 -2
  379. package/table/styles/_index.scss +138 -29
  380. package/textarea/styles/_index.scss +4 -2
  381. package/theme/styles/_motion.scss +6 -0
  382. package/toast/styles/_index.scss +49 -0
  383. package/tree/styles/_index.scss +17 -0
  384. package/types/index-CXbgza47.d.ts +13 -0
  385. package/types/ngwr-animations-aurora.d.ts +1 -1
  386. package/types/ngwr-animations-blur-reveal.d.ts +2 -2
  387. package/types/ngwr-animations-dot-grid.d.ts +1 -2
  388. package/types/ngwr-animations-flow-lines.d.ts +1 -1
  389. package/types/ngwr-animations-fluid-cursor.d.ts +1 -1
  390. package/types/ngwr-animations-reveal.d.ts +4 -8
  391. package/types/ngwr-animations-ripple-grid.d.ts +1 -1
  392. package/types/ngwr-animations-spotlight.d.ts +1 -1
  393. package/types/ngwr-animations-thread-lines.d.ts +1 -1
  394. package/types/ngwr-animations-tilt.d.ts +1 -1
  395. package/types/ngwr-avatar.d.ts +2 -2
  396. package/types/ngwr-badge.d.ts +1 -1
  397. package/types/ngwr-burger.d.ts +0 -1
  398. package/types/ngwr-calendar.d.ts +7 -0
  399. package/types/ngwr-cascader.d.ts +12 -1
  400. package/types/ngwr-charts-boxplot-chart.d.ts +1 -1
  401. package/types/ngwr-charts-bullet-chart.d.ts +2 -2
  402. package/types/ngwr-charts-calendar-heatmap.d.ts +2 -1
  403. package/types/ngwr-charts-candlestick-chart.d.ts +1 -1
  404. package/types/ngwr-charts-core.d.ts +12 -12
  405. package/types/ngwr-charts-line-chart.d.ts +2 -2
  406. package/types/ngwr-charts-radar-chart.d.ts +1 -1
  407. package/types/ngwr-charts-scatter-chart.d.ts +2 -2
  408. package/types/ngwr-charts-waterfall-chart.d.ts +1 -1
  409. package/types/ngwr-clipboard.d.ts +7 -0
  410. package/types/ngwr-color-picker.d.ts +12 -12
  411. package/types/ngwr-copy-value-testing.d.ts +87 -0
  412. package/types/ngwr-copy-value.d.ts +95 -0
  413. package/types/ngwr-date-picker-testing.d.ts +3 -3
  414. package/types/ngwr-date-picker.d.ts +106 -3
  415. package/types/ngwr-date-stamp-testing.d.ts +47 -0
  416. package/types/ngwr-date-stamp.d.ts +81 -0
  417. package/types/ngwr-date.d.ts +179 -27
  418. package/types/ngwr-dialog-testing.d.ts +10 -0
  419. package/types/ngwr-dialog.d.ts +120 -5
  420. package/types/ngwr-directives.d.ts +76 -1
  421. package/types/ngwr-drawer.d.ts +22 -1
  422. package/types/ngwr-dropdown.d.ts +3 -2
  423. package/types/ngwr-hotkey.d.ts +5 -5
  424. package/types/ngwr-i18n.d.ts +47 -17
  425. package/types/ngwr-icon.d.ts +26 -26
  426. package/types/ngwr-input-number.d.ts +2 -2
  427. package/types/ngwr-input.d.ts +8 -8
  428. package/types/ngwr-load-state.d.ts +6 -6
  429. package/types/ngwr-meta.d.ts +18 -0
  430. package/types/ngwr-overlay.d.ts +36 -0
  431. package/types/ngwr-pipes.d.ts +21 -4
  432. package/types/ngwr-platform.d.ts +2 -1
  433. package/types/ngwr-popconfirm.d.ts +3 -2
  434. package/types/ngwr-popover.d.ts +43 -4
  435. package/types/ngwr-resizable.d.ts +228 -0
  436. package/types/ngwr-select.d.ts +33 -18
  437. package/types/ngwr-slider-testing.d.ts +2 -2
  438. package/types/ngwr-slider.d.ts +3 -3
  439. package/types/ngwr-statistic.d.ts +5 -1
  440. package/types/ngwr-storage.d.ts +1 -1
  441. package/types/ngwr-table-testing.d.ts +5 -2
  442. package/types/ngwr-table.d.ts +255 -14
  443. package/types/ngwr-tabs.d.ts +10 -2
  444. package/types/ngwr-toast-testing.d.ts +18 -3
  445. package/types/ngwr-toast.d.ts +248 -23
  446. package/types/ngwr-transfer.d.ts +5 -0
  447. package/types/ngwr-tree.d.ts +22 -2
  448. package/types/ngwr-utils-router.d.ts +22 -0
  449. package/types/ngwr-utils.d.ts +165 -83
  450. package/types/ngwr-validators.d.ts +4 -2
  451. package/types/ngwr-version.d.ts +1 -1
  452. package/types/ngwr.d.ts +2 -0
  453. package/types/pointer-tracker-D7fXxLQL.d.ts +24 -0
  454. package/fesm2022/ngwr-animations-core.mjs.map +0 -1
  455. package/types/ngwr-animations-core.d.ts +0 -294
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ApplicationRef, Component, DestroyRef, ENVIRONMENT_INITIALIZER, ElementRef, EnvironmentInjector, InjectionToken, Injector, Service, ViewEncapsulation, afterNextRender, computed, effect, inject, input, isDevMode, output, signal, viewChildren } from "@angular/core";
3
- import { toClassList, wrCheckStyles, wrFeature, wrRestoreFocus } from "ngwr/utils";
2
+ import { ApplicationRef, Component, DestroyRef, ENVIRONMENT_INITIALIZER, ElementRef, EnvironmentInjector, InjectionToken, Injector, Service, ViewEncapsulation, afterNextRender, computed, effect, inject, input, isDevMode, output, signal, untracked, viewChild, viewChildren } from "@angular/core";
3
+ import { wrCheckStyles, wrFeature, wrRestoreFocus, wrToClassList } from "ngwr/utils";
4
4
  import { useI18nText } from "ngwr/i18n";
5
5
  import { Directionality } from "@angular/cdk/bidi";
6
6
  import { ComponentPortal } from "@angular/cdk/portal";
7
- import { WR_OVERLAY, wrFollowDirection } from "ngwr/overlay";
7
+ import { WR_OVERLAY, WrOverlayOrder, wrFollowDirection } from "ngwr/overlay";
8
8
  import { FocusMonitor } from "@angular/cdk/a11y";
9
9
  /**
10
10
  * @license
@@ -12,6 +12,218 @@ import { FocusMonitor } from "@angular/cdk/a11y";
12
12
  * Use of this source code is governed by an MIT-style license that can be
13
13
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
14
14
  */
15
+ const DEFAULT_WR_TOAST_CONFIG = {
16
+ position: "top-end",
17
+ mode: "stack",
18
+ duration: 4e3,
19
+ showProgress: true,
20
+ showCopy: false,
21
+ showCloseAll: true,
22
+ closeAllThreshold: 2,
23
+ maxStack: 5,
24
+ labels: {
25
+ close: null,
26
+ copy: null,
27
+ copied: null,
28
+ closeAll: null
29
+ }
30
+ };
31
+ /**
32
+ * @license
33
+ *
34
+ * Use of this source code is governed by an MIT-style license that can be
35
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
36
+ */
37
+ const WR_TOAST_CONFIG = new InjectionToken("WR_TOAST_CONFIG", {
38
+ providedIn: "root",
39
+ factory: () => DEFAULT_WR_TOAST_CONFIG
40
+ });
41
+ /**
42
+ * @license
43
+ *
44
+ * Use of this source code is governed by an MIT-style license that can be
45
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
46
+ */
47
+ var WrToastChannel = class {
48
+ expire;
49
+ drops;
50
+ live;
51
+ maxStack;
52
+ duration;
53
+ toasts = signal([], ...ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []);
54
+ queued = signal(0, ...ngDevMode ? [{ debugName: "queued" }] : /* istanbul ignore next */ []);
55
+ queue = [];
56
+ held = false;
57
+ mounts = 0;
58
+ constructor(expire, drops, live, maxStack, duration) {
59
+ this.expire = expire;
60
+ this.drops = drops;
61
+ this.live = live;
62
+ this.maxStack = maxStack;
63
+ this.duration = duration;
64
+ }
65
+ get empty() {
66
+ return this.toasts().length === 0 && this.queue.length === 0;
67
+ }
68
+ find(id) {
69
+ return this.toasts().find((t) => t.id === id);
70
+ }
71
+ add(entry) {
72
+ const max = this.maxStack;
73
+ const active = this.toasts();
74
+ if (max <= 0 || active.length < max) this.toasts.set([...active, entry]);
75
+ else if (this.drops && this.held) {
76
+ if (this.queue.length >= max) this.queue.shift();
77
+ this.queue.push(entry);
78
+ this.queued.set(this.queue.length);
79
+ return;
80
+ } else if (this.drops) {
81
+ const kept = active.length - max + 1;
82
+ for (let i = 0; i < kept; i++) this.stopTimer(active[i]);
83
+ this.toasts.set([...active.slice(kept), entry]);
84
+ } else {
85
+ this.queue.push(entry);
86
+ this.queued.set(this.queue.length);
87
+ return;
88
+ }
89
+ this.startTimer(entry);
90
+ }
91
+ remove(id) {
92
+ const active = this.toasts();
93
+ const entry = active.find((t) => t.id === id);
94
+ const queuedAt = entry ? -1 : this.queue.findIndex((t) => t.id === id);
95
+ if (!entry && queuedAt < 0) return false;
96
+ if (entry) {
97
+ this.stopTimer(entry);
98
+ this.toasts.set(active.filter((t) => t !== entry));
99
+ } else this.queue.splice(queuedAt, 1);
100
+ this.promote();
101
+ if (this.empty) this.held = false;
102
+ return true;
103
+ }
104
+ clear() {
105
+ for (const entry of this.toasts()) this.stopTimer(entry);
106
+ this.toasts.set([]);
107
+ this.queue = [];
108
+ this.queued.set(0);
109
+ this.held = false;
110
+ }
111
+ pause(id) {
112
+ const entry = this.find(id);
113
+ if (entry) this.pauseTimer(entry);
114
+ }
115
+ resume(id) {
116
+ const entry = this.find(id);
117
+ if (entry) this.startTimer(entry);
118
+ }
119
+ setHeld(held) {
120
+ this.held = held;
121
+ if (!held) this.release();
122
+ this.syncTimers();
123
+ }
124
+ configure(maxStack, duration) {
125
+ this.maxStack = maxStack;
126
+ this.duration = duration;
127
+ const active = this.toasts();
128
+ if (!this.drops || maxStack <= 0 || active.length <= maxStack) return;
129
+ const over = active.length - maxStack;
130
+ for (let i = 0; i < over; i++) this.stopTimer(active[i]);
131
+ this.toasts.set(active.slice(over));
132
+ }
133
+ mount() {
134
+ this.mounts++;
135
+ this.live = true;
136
+ this.syncTimers();
137
+ return this.mounts;
138
+ }
139
+ unmount() {
140
+ if (--this.mounts > 0) return;
141
+ this.live = false;
142
+ this.held = false;
143
+ this.release();
144
+ this.syncTimers();
145
+ }
146
+ release() {
147
+ if (!this.drops || this.queue.length === 0) return;
148
+ const all = [...this.toasts(), ...this.queue];
149
+ const over = this.maxStack > 0 ? Math.max(0, all.length - this.maxStack) : 0;
150
+ for (let i = 0; i < over; i++) this.stopTimer(all[i]);
151
+ this.queue = [];
152
+ this.queued.set(0);
153
+ this.toasts.set(all.slice(over));
154
+ }
155
+ syncTimers() {
156
+ const running = this.live && !this.held;
157
+ for (const entry of this.toasts()) if (running) this.startTimer(entry);
158
+ else this.pauseTimer(entry);
159
+ }
160
+ promote() {
161
+ const max = this.maxStack;
162
+ const promoted = [];
163
+ while (this.queue.length > 0 && (max <= 0 || this.toasts().length + promoted.length < max)) promoted.push(this.queue.shift());
164
+ if (promoted.length === 0) return;
165
+ this.toasts.update((active) => [...active, ...promoted]);
166
+ this.queued.set(this.queue.length);
167
+ for (const entry of promoted) this.startTimer(entry);
168
+ }
169
+ startTimer(entry) {
170
+ if (entry.remaining <= 0 || entry.timer || this.held || !this.live) return;
171
+ entry.startedAt = Date.now();
172
+ entry.timer = setTimeout(() => this.expire(entry.id), entry.remaining);
173
+ }
174
+ pauseTimer(entry) {
175
+ if (!entry.timer) return;
176
+ this.stopTimer(entry);
177
+ if (entry.startedAt) entry.remaining = Math.max(0, entry.remaining - (Date.now() - entry.startedAt));
178
+ }
179
+ stopTimer(entry) {
180
+ if (!entry.timer) return;
181
+ clearTimeout(entry.timer);
182
+ entry.timer = void 0;
183
+ }
184
+ };
185
+ var WrToastChannels = class WrToastChannels {
186
+ config = inject(WR_TOAST_CONFIG);
187
+ channels = /* @__PURE__ */ new Map();
188
+ get(name) {
189
+ let channel = this.channels.get(name);
190
+ if (!channel) {
191
+ channel = new WrToastChannel((id) => channel?.remove(id), true, false, this.config.maxStack, this.config.duration);
192
+ this.channels.set(name, channel);
193
+ }
194
+ return channel;
195
+ }
196
+ remove(id) {
197
+ for (const channel of this.channels.values()) if (channel.remove(id)) return;
198
+ }
199
+ static ɵfac = i0.ɵɵngDeclareFactory({
200
+ minVersion: "12.0.0",
201
+ version: "22.2.5",
202
+ ngImport: i0,
203
+ type: WrToastChannels,
204
+ deps: [],
205
+ target: i0.ɵɵFactoryTarget.Service
206
+ });
207
+ static ɵprov = i0.ɵɵngDeclareService({
208
+ minVersion: "22.0.0",
209
+ version: "22.2.5",
210
+ ngImport: i0,
211
+ type: WrToastChannels
212
+ });
213
+ };
214
+ i0.ɵɵngDeclareClassMetadata({
215
+ minVersion: "12.0.0",
216
+ version: "22.2.5",
217
+ ngImport: i0,
218
+ type: WrToastChannels,
219
+ decorators: [{ type: Service }]
220
+ });
221
+ /**
222
+ * @license
223
+ *
224
+ * Use of this source code is governed by an MIT-style license that can be
225
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
226
+ */
15
227
  var WrToastItem = class WrToastItem {
16
228
  constructor() {
17
229
  if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("toast");
@@ -19,13 +231,15 @@ var WrToastItem = class WrToastItem {
19
231
  type = input("info", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
20
232
  title = input(null, ...ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []);
21
233
  message = input.required(...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
22
- dismissible = input(true, ...ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []);
234
+ closable = input(true, ...ngDevMode ? [{ debugName: "closable" }] : /* istanbul ignore next */ []);
23
235
  showProgress = input(false, ...ngDevMode ? [{ debugName: "showProgress" }] : /* istanbul ignore next */ []);
24
236
  showCopy = input(false, ...ngDevMode ? [{ debugName: "showCopy" }] : /* istanbul ignore next */ []);
237
+ actionLabel = input(null, ...ngDevMode ? [{ debugName: "actionLabel" }] : /* istanbul ignore next */ []);
25
238
  extraClass = input(null, ...ngDevMode ? [{ debugName: "extraClass" }] : /* istanbul ignore next */ []);
26
239
  duration = input(0, ...ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []);
27
240
  labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
28
241
  dismissed = output();
242
+ actionRequested = output();
29
243
  pauseRequested = output();
30
244
  resumeRequested = output();
31
245
  hovered = false;
@@ -51,7 +265,7 @@ var WrToastItem = class WrToastItem {
51
265
  }
52
266
  justCopied = signal(false, ...ngDevMode ? [{ debugName: "justCopied" }] : /* istanbul ignore next */ []);
53
267
  copyResetTimer = null;
54
- classes = computed(() => toClassList("wr-toast", `wr-toast--${this.type()}`, this.title() ? null : "wr-toast--untitled", this.extraClass()).join(" "), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
268
+ classes = computed(() => wrToClassList("wr-toast", `wr-toast--${this.type()}`, this.title() ? null : "wr-toast--untitled", this.extraClass()).join(" "), ...ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []);
55
269
  liveRole = computed(() => this.type() === "danger" ? "alert" : "status", ...ngDevMode ? [{ debugName: "liveRole" }] : /* istanbul ignore next */ []);
56
270
  liveLevel = computed(() => this.type() === "danger" || this.type() === "warning" ? "assertive" : "polite", ...ngDevMode ? [{ debugName: "liveLevel" }] : /* istanbul ignore next */ []);
57
271
  durationMs = computed(() => `${this.duration()}ms`, ...ngDevMode ? [{ debugName: "durationMs" }] : /* istanbul ignore next */ []);
@@ -76,7 +290,7 @@ var WrToastItem = class WrToastItem {
76
290
  return dist === 0 ? null : Math.max(0, 1 - dist / (this.swipeWidth || 1));
77
291
  }, ...ngDevMode ? [{ debugName: "swipeOpacity" }] : /* istanbul ignore next */ []);
78
292
  onSwipeStart(event) {
79
- if (!this.dismissible()) return;
293
+ if (!this.closable()) return;
80
294
  const touch = event.touches[0];
81
295
  if (!touch) return;
82
296
  this.swipeStartX = touch.clientX;
@@ -131,9 +345,9 @@ var WrToastItem = class WrToastItem {
131
345
  isRequired: true,
132
346
  transformFunction: null
133
347
  },
134
- dismissible: {
135
- classPropertyName: "dismissible",
136
- publicName: "dismissible",
348
+ closable: {
349
+ classPropertyName: "closable",
350
+ publicName: "closable",
137
351
  isSignal: true,
138
352
  isRequired: false,
139
353
  transformFunction: null
@@ -152,6 +366,13 @@ var WrToastItem = class WrToastItem {
152
366
  isRequired: false,
153
367
  transformFunction: null
154
368
  },
369
+ actionLabel: {
370
+ classPropertyName: "actionLabel",
371
+ publicName: "actionLabel",
372
+ isSignal: true,
373
+ isRequired: false,
374
+ transformFunction: null
375
+ },
155
376
  extraClass: {
156
377
  classPropertyName: "extraClass",
157
378
  publicName: "extraClass",
@@ -176,6 +397,7 @@ var WrToastItem = class WrToastItem {
176
397
  },
177
398
  outputs: {
178
399
  dismissed: "dismissed",
400
+ actionRequested: "actionRequested",
179
401
  pauseRequested: "pauseRequested",
180
402
  resumeRequested: "resumeRequested"
181
403
  },
@@ -199,10 +421,11 @@ var WrToastItem = class WrToastItem {
199
421
  "style.transition": "swiping() ? \"none\" : null",
200
422
  "attr.role": "liveRole()",
201
423
  "attr.aria-live": "liveLevel()"
202
- }
424
+ },
425
+ classAttribute: "wr-toast"
203
426
  },
204
427
  ngImport: i0,
205
- template: "<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n",
428
+ template: "<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (actionLabel(); as label) {\n <button type=\"button\" class=\"wr-toast__action wr-toast__action--run\" (click)=\"actionRequested.emit()\">\n {{ label }}\n </button>\n }\n\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n",
206
429
  encapsulation: i0.ViewEncapsulation.None
207
430
  });
208
431
  };
@@ -218,6 +441,7 @@ i0.ɵɵngDeclareClassMetadata({
218
441
  encapsulation: ViewEncapsulation.None,
219
442
  host: {
220
443
  "[attr.title]": "null",
444
+ class: "wr-toast",
221
445
  "[class]": "classes()",
222
446
  "[style.--wr-toast-duration]": "durationMs()",
223
447
  "[style.transform]": "swipeTransform()",
@@ -234,7 +458,7 @@ i0.ɵɵngDeclareClassMetadata({
234
458
  "(touchend)": "onSwipeEnd()",
235
459
  "(touchcancel)": "onSwipeEnd()"
236
460
  },
237
- template: "<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n"
461
+ template: "<!-- A glyph per type, and this is the one channel the toast had none of. Its\n four types differed by `--wr-toast-accent` alone — a 3px inline-start\n border, in four colours that sit within 1.06:1 of each other in relative\n luminance, so `success` and `danger` were the same 3px line to a reader\n who cannot separate hue. The shapes are the ones `wr-alert` and\n `wr-result` already use for the same four meanings: a check in a broken\n circle, a triangle, an octagon, an `i`. Three components agreeing is worth\n more than three components each being locally reasonable.\n\n `aria-hidden`, because the type is already announced: the host takes\n `role=\"alert\"` for danger and `role=\"status\"` otherwise. -->\n<svg\n class=\"wr-toast__icon wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n>\n @switch (type()) {\n @case ('success') {\n <path d=\"M21.801 10A10 10 0 1 1 17 3.335\" />\n <path d=\"m9 11 3 3L22 4\" />\n }\n @case ('warning') {\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n }\n @case ('danger') {\n <path\n d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\"\n />\n <path d=\"M12 8v4\" />\n <path d=\"M12 16h.01\" />\n }\n @default {\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n }\n }\n</svg>\n\n<!-- Each part renders only when it has text. A title-only toast is shown with\n `message: ''`, and the empty `<p>` it used to leave behind kept the title's\n bottom margin under it: 4px of dead space that made the card taller below\n its one line than above it. -->\n<div class=\"wr-toast__body\">\n @if (title(); as text) {\n <p class=\"wr-toast__title\">{{ text }}</p>\n }\n @if (message(); as text) {\n <p class=\"wr-toast__message\">{{ text }}</p>\n }\n</div>\n\n<div class=\"wr-toast__actions\">\n @if (actionLabel(); as label) {\n <button type=\"button\" class=\"wr-toast__action wr-toast__action--run\" (click)=\"actionRequested.emit()\">\n {{ label }}\n </button>\n }\n\n @if (showCopy()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--copy\"\n [attr.aria-label]=\"justCopied() ? labels().copied : labels().copy\"\n [title]=\"justCopied() ? labels().copied : labels().copy\"\n (click)=\"onCopy()\"\n >\n @if (justCopied()) {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n } @else {\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect width=\"14\" height=\"14\" x=\"8\" y=\"8\" rx=\"2\" ry=\"2\" />\n <path d=\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\" />\n </svg>\n }\n </button>\n }\n\n @if (closable()) {\n <button\n type=\"button\"\n class=\"wr-toast__action wr-toast__action--close\"\n [attr.aria-label]=\"labels().close\"\n [title]=\"labels().close\"\n (click)=\"dismissed.emit()\"\n >\n <svg\n class=\"wr-icon__svg\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18\" />\n <path d=\"m6 6 12 12\" />\n </svg>\n </button>\n }\n</div>\n\n@if (progressVisible()) {\n <span class=\"wr-toast__progress\" aria-hidden=\"true\"></span>\n}\n"
238
462
  }]
239
463
  }],
240
464
  ctorParameters: () => [],
@@ -263,11 +487,11 @@ i0.ɵɵngDeclareClassMetadata({
263
487
  required: true
264
488
  }]
265
489
  }],
266
- dismissible: [{
490
+ closable: [{
267
491
  type: i0.Input,
268
492
  args: [{
269
493
  isSignal: true,
270
- alias: "dismissible",
494
+ alias: "closable",
271
495
  required: false
272
496
  }]
273
497
  }],
@@ -287,6 +511,14 @@ i0.ɵɵngDeclareClassMetadata({
287
511
  required: false
288
512
  }]
289
513
  }],
514
+ actionLabel: [{
515
+ type: i0.Input,
516
+ args: [{
517
+ isSignal: true,
518
+ alias: "actionLabel",
519
+ required: false
520
+ }]
521
+ }],
290
522
  extraClass: [{
291
523
  type: i0.Input,
292
524
  args: [{
@@ -315,6 +547,10 @@ i0.ɵɵngDeclareClassMetadata({
315
547
  type: i0.Output,
316
548
  args: ["dismissed"]
317
549
  }],
550
+ actionRequested: [{
551
+ type: i0.Output,
552
+ args: ["actionRequested"]
553
+ }],
318
554
  pauseRequested: [{
319
555
  type: i0.Output,
320
556
  args: ["pauseRequested"]
@@ -410,11 +646,17 @@ var WrToastHost = class WrToastHost {
410
646
  this.syncExpanded();
411
647
  }
412
648
  onItemDismissed(id, index) {
649
+ this.removeItem(index, () => this.dismissed.emit(id));
650
+ }
651
+ onItemAction(id, index) {
652
+ this.removeItem(index, () => this.actionRequested.emit(id));
653
+ }
654
+ removeItem(index, remove) {
413
655
  const item = this.items()[index]?.nativeElement;
414
656
  const active = item?.ownerDocument.activeElement;
415
657
  const hadFocus = !!item?.contains(active ?? null) && hasKeyboardFocus(active);
416
658
  const origin = this.focusOrigin;
417
- this.dismissed.emit(id);
659
+ remove();
418
660
  if (!hadFocus) return;
419
661
  if (this.toasts().length === 0) {
420
662
  returnFocus(origin, this.focusMonitor);
@@ -479,6 +721,7 @@ var WrToastHost = class WrToastHost {
479
721
  queued = signal(0, ...ngDevMode ? [{ debugName: "queued" }] : /* istanbul ignore next */ []);
480
722
  totalCount = computed(() => this.toasts().length + this.queued(), ...ngDevMode ? [{ debugName: "totalCount" }] : /* istanbul ignore next */ []);
481
723
  dismissed = output();
724
+ actionRequested = output();
482
725
  pauseRequested = output();
483
726
  resumeRequested = output();
484
727
  holdChange = output();
@@ -545,6 +788,7 @@ var WrToastHost = class WrToastHost {
545
788
  },
546
789
  outputs: {
547
790
  dismissed: "dismissed",
791
+ actionRequested: "actionRequested",
548
792
  pauseRequested: "pauseRequested",
549
793
  resumeRequested: "resumeRequested",
550
794
  holdChange: "holdChange",
@@ -562,7 +806,8 @@ var WrToastHost = class WrToastHost {
562
806
  "class": "classes()",
563
807
  "style.--wr-toast-front-height": "frontHeight()",
564
808
  "attr.aria-label": "regionLabel()"
565
- }
809
+ },
810
+ classAttribute: "wr-toast-host"
566
811
  },
567
812
  viewQueries: [{
568
813
  propertyName: "items",
@@ -572,7 +817,7 @@ var WrToastHost = class WrToastHost {
572
817
  isSignal: true
573
818
  }],
574
819
  ngImport: i0,
575
- template: "@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [dismissible]=\"toast.dismissible ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n",
820
+ template: "@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [closable]=\"toast.closable ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n [actionLabel]=\"toast.action?.label ?? null\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (actionRequested)=\"onItemAction(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n",
576
821
  dependencies: [{
577
822
  kind: "component",
578
823
  type: WrToastItem,
@@ -581,15 +826,17 @@ var WrToastHost = class WrToastHost {
581
826
  "type",
582
827
  "title",
583
828
  "message",
584
- "dismissible",
829
+ "closable",
585
830
  "showProgress",
586
831
  "showCopy",
832
+ "actionLabel",
587
833
  "extraClass",
588
834
  "duration",
589
835
  "labels"
590
836
  ],
591
837
  outputs: [
592
838
  "dismissed",
839
+ "actionRequested",
593
840
  "pauseRequested",
594
841
  "resumeRequested"
595
842
  ]
@@ -608,6 +855,7 @@ i0.ɵɵngDeclareClassMetadata({
608
855
  selector: "wr-toast-host",
609
856
  encapsulation: ViewEncapsulation.None,
610
857
  host: {
858
+ class: "wr-toast-host",
611
859
  "[class]": "classes()",
612
860
  "[style.--wr-toast-front-height]": "frontHeight()",
613
861
  role: "region",
@@ -618,7 +866,7 @@ i0.ɵɵngDeclareClassMetadata({
618
866
  "(focusout)": "onFocusOut($event)"
619
867
  },
620
868
  imports: [WrToastItem],
621
- template: "@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [dismissible]=\"toast.dismissible ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n"
869
+ template: "@if (closeAllVisible()) {\n <button type=\"button\" class=\"wr-toast-host__close-all\" (click)=\"onCloseAll()\">\n {{ closeAllLabel() }} ({{ totalCount() }})\n </button>\n}\n\n@for (toast of toasts(); track toast.id) {\n <wr-toast\n [style.--wr-toast-stack-index]=\"stackIndex($index)\"\n [type]=\"toast.type ?? 'info'\"\n [title]=\"toast.title ?? null\"\n [message]=\"toast.message\"\n [closable]=\"toast.closable ?? true\"\n [showProgress]=\"showProgressFor(toast)\"\n [showCopy]=\"showCopyFor(toast)\"\n [extraClass]=\"toast.class ?? null\"\n [duration]=\"toast.resolvedDuration\"\n [labels]=\"labels()\"\n [actionLabel]=\"toast.action?.label ?? null\"\n (dismissed)=\"onItemDismissed(toast.id, $index)\"\n (actionRequested)=\"onItemAction(toast.id, $index)\"\n (pauseRequested)=\"pauseRequested.emit(toast.id)\"\n (resumeRequested)=\"resumeRequested.emit(toast.id)\"\n />\n}\n"
622
870
  }]
623
871
  }],
624
872
  ctorParameters: () => [],
@@ -658,6 +906,10 @@ i0.ɵɵngDeclareClassMetadata({
658
906
  type: i0.Output,
659
907
  args: ["dismissed"]
660
908
  }],
909
+ actionRequested: [{
910
+ type: i0.Output,
911
+ args: ["actionRequested"]
912
+ }],
661
913
  pauseRequested: [{
662
914
  type: i0.Output,
663
915
  args: ["pauseRequested"]
@@ -701,40 +953,9 @@ var WrToastRef = class {
701
953
  * Use of this source code is governed by an MIT-style license that can be
702
954
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
703
955
  */
704
- const DEFAULT_TOAST_CONFIG = {
705
- position: "top-end",
706
- mode: "stack",
707
- duration: 4e3,
708
- showProgress: true,
709
- showCopy: false,
710
- showCloseAll: true,
711
- closeAllThreshold: 2,
712
- maxStack: 5,
713
- labels: {
714
- close: null,
715
- copy: null,
716
- copied: null,
717
- closeAll: null
718
- }
719
- };
720
- /**
721
- * @license
722
- *
723
- * Use of this source code is governed by an MIT-style license that can be
724
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
725
- */
726
- const WR_TOAST_CONFIG = new InjectionToken("WR_TOAST_CONFIG", {
727
- providedIn: "root",
728
- factory: () => DEFAULT_TOAST_CONFIG
729
- });
730
- /**
731
- * @license
732
- *
733
- * Use of this source code is governed by an MIT-style license that can be
734
- * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
735
- */
736
956
  var WrToast = class WrToast {
737
957
  overlay = inject(WR_OVERLAY);
958
+ order = inject(WrOverlayOrder);
738
959
  config = inject(WR_TOAST_CONFIG);
739
960
  injector = inject(Injector);
740
961
  dir = inject(Directionality, { optional: true });
@@ -744,45 +965,53 @@ var WrToast = class WrToast {
744
965
  currentPosition = this.config.position;
745
966
  currentMode = this.config.mode;
746
967
  nextId = 1;
747
- active = [];
748
- queue = [];
749
- held = false;
968
+ global = new WrToastChannel((id) => this.dismiss(id), false, true, this.config.maxStack, this.config.duration);
969
+ outlets = inject(WrToastChannels);
750
970
  show(options) {
971
+ const id = this.nextId++;
972
+ const ref = new WrToastRef(id, options, (toastId) => this.dismiss(toastId));
973
+ if (options.outlet != null) {
974
+ const channel = this.outlets.get(options.outlet);
975
+ const resolvedDuration = options.duration ?? channel.duration;
976
+ channel.add({
977
+ ...options,
978
+ id,
979
+ resolvedDuration,
980
+ remaining: resolvedDuration
981
+ });
982
+ return ref;
983
+ }
751
984
  const resolvedPosition = options.position ?? this.currentPosition;
752
985
  const resolvedDuration = options.duration ?? this.config.duration;
753
986
  this.ensureHost(resolvedPosition);
754
987
  this.raiseHost();
755
988
  const entry = {
756
989
  ...options,
757
- id: this.nextId++,
990
+ id,
758
991
  resolvedDuration,
759
- resolvedPosition,
760
992
  remaining: resolvedDuration
761
993
  };
762
- const max = this.config.maxStack;
763
- if (max > 0 && this.active.length >= max) {
764
- this.queue = [...this.queue, entry];
765
- this.pushToHost();
766
- } else {
767
- this.active = [...this.active, entry];
768
- this.pushToHost();
769
- this.startTimer(entry);
770
- }
771
- return new WrToastRef(entry.id, options, (id) => this.dismiss(id));
994
+ this.global.add(entry);
995
+ this.pushToHost();
996
+ return ref;
772
997
  }
773
998
  dismiss(id) {
774
- const entry = this.active.find((t) => t.id === id);
775
- if (entry?.timer) clearTimeout(entry.timer);
776
- this.active = this.active.filter((t) => t.id !== id);
777
- this.queue = this.queue.filter((t) => t.id !== id);
778
- this.promoteFromQueue();
999
+ if (!this.global.remove(id)) this.outlets.remove(id);
779
1000
  this.pushToHost();
780
- if (this.active.length === 0 && this.queue.length === 0) this.disposeHost();
1001
+ if (this.global.empty) this.disposeHost();
781
1002
  }
782
- dismissAll() {
783
- for (const entry of this.active) if (entry.timer) clearTimeout(entry.timer);
784
- this.active = [];
785
- this.queue = [];
1003
+ runAction(id) {
1004
+ const action = this.global.find(id)?.action;
1005
+ if (!action) return;
1006
+ this.dismiss(id);
1007
+ action.run();
1008
+ }
1009
+ dismissAll(outlet) {
1010
+ if (outlet != null) {
1011
+ this.outlets.get(outlet).clear();
1012
+ return;
1013
+ }
1014
+ this.global.clear();
786
1015
  this.disposeHost();
787
1016
  }
788
1017
  setPosition(position) {
@@ -793,22 +1022,6 @@ var WrToast = class WrToast {
793
1022
  this.currentMode = mode;
794
1023
  if (this.hostRef) this.hostRef.setInput("mode", mode);
795
1024
  }
796
- startTimer(entry) {
797
- if (entry.remaining <= 0 || entry.timer || this.held) return;
798
- entry.startedAt = Date.now();
799
- entry.timer = setTimeout(() => this.dismiss(entry.id), entry.remaining);
800
- }
801
- pauseTimer(entry) {
802
- if (!entry.timer) return;
803
- clearTimeout(entry.timer);
804
- entry.timer = void 0;
805
- if (entry.startedAt) entry.remaining = Math.max(0, entry.remaining - (Date.now() - entry.startedAt));
806
- }
807
- setHeld(held) {
808
- this.held = held;
809
- for (const entry of this.active) if (held) this.pauseTimer(entry);
810
- else this.startTimer(entry);
811
- }
812
1025
  ensureHost(position) {
813
1026
  if (this.overlayRef) {
814
1027
  if (position !== this.currentPosition) this.setPosition(position);
@@ -829,26 +1042,18 @@ var WrToast = class WrToast {
829
1042
  this.hostRef.setInput("config", this.config);
830
1043
  const inst = this.hostRef.instance;
831
1044
  inst.dismissed.subscribe((id) => this.dismiss(id));
1045
+ inst.actionRequested.subscribe((id) => this.runAction(id));
832
1046
  inst.dismissAllRequested.subscribe(() => this.dismissAll());
833
- inst.pauseRequested.subscribe((id) => {
834
- const entry = this.active.find((t) => t.id === id);
835
- if (entry) this.pauseTimer(entry);
836
- });
837
- inst.resumeRequested.subscribe((id) => {
838
- const entry = this.active.find((t) => t.id === id);
839
- if (entry) this.startTimer(entry);
840
- });
841
- inst.holdChange.subscribe((held) => this.setHeld(held));
1047
+ inst.pauseRequested.subscribe((id) => this.global.pause(id));
1048
+ inst.resumeRequested.subscribe((id) => this.global.resume(id));
1049
+ inst.holdChange.subscribe((held) => this.global.setHeld(held));
842
1050
  this.watchForNewerOverlays();
843
1051
  }
844
1052
  raiseHost() {
845
1053
  const host = this.overlayRef?.hostElement;
846
1054
  if (!host?.isConnected || !host.hasAttribute("popover")) return;
847
1055
  if (host.contains(host.ownerDocument.activeElement)) return;
848
- try {
849
- host.hidePopover();
850
- host.showPopover();
851
- } catch {}
1056
+ this.order.raiseToasts(host);
852
1057
  }
853
1058
  watchForNewerOverlays() {
854
1059
  const parent = this.overlayRef?.hostElement.parentElement;
@@ -856,23 +1061,15 @@ var WrToast = class WrToast {
856
1061
  this.containerObserver = new MutationObserver(() => this.raiseHost());
857
1062
  this.containerObserver.observe(parent, { childList: true });
858
1063
  }
859
- promoteFromQueue() {
860
- const max = this.config.maxStack;
861
- while ((max <= 0 || this.active.length < max) && this.queue.length > 0) {
862
- const [next, ...rest] = this.queue;
863
- this.queue = rest;
864
- this.active = [...this.active, next];
865
- this.startTimer(next);
866
- }
867
- }
868
1064
  pushToHost() {
869
- this.hostRef?.instance.toasts.set([...this.active]);
870
- this.hostRef?.instance.queued.set(this.queue.length);
1065
+ this.hostRef?.instance.toasts.set(this.global.toasts());
1066
+ this.hostRef?.instance.queued.set(this.global.queued());
871
1067
  }
872
1068
  disposeHost() {
873
- this.held = false;
1069
+ this.global.setHeld(false);
874
1070
  this.containerObserver?.disconnect();
875
1071
  this.containerObserver = null;
1072
+ this.order.dropToasts();
876
1073
  if (this.overlayRef) {
877
1074
  this.overlayRef.dispose();
878
1075
  this.overlayRef = null;
@@ -907,12 +1104,283 @@ i0.ɵɵngDeclareClassMetadata({
907
1104
  * Use of this source code is governed by an MIT-style license that can be
908
1105
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
909
1106
  */
1107
+ var WrToastOutlet = class WrToastOutlet {
1108
+ config = inject(WR_TOAST_CONFIG);
1109
+ channels = inject(WrToastChannels);
1110
+ name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
1111
+ position = input(this.config.position, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
1112
+ mode = input(this.config.mode, ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
1113
+ duration = input(this.config.duration, ...ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []);
1114
+ showProgress = input(this.config.showProgress, ...ngDevMode ? [{ debugName: "showProgress" }] : /* istanbul ignore next */ []);
1115
+ showCopy = input(this.config.showCopy, ...ngDevMode ? [{ debugName: "showCopy" }] : /* istanbul ignore next */ []);
1116
+ showCloseAll = input(this.config.showCloseAll, ...ngDevMode ? [{ debugName: "showCloseAll" }] : /* istanbul ignore next */ []);
1117
+ closeAllThreshold = input(this.config.closeAllThreshold, ...ngDevMode ? [{ debugName: "closeAllThreshold" }] : /* istanbul ignore next */ []);
1118
+ maxStack = input(this.config.maxStack, ...ngDevMode ? [{ debugName: "maxStack" }] : /* istanbul ignore next */ []);
1119
+ channel = computed(() => this.channels.get(this.name()), ...ngDevMode ? [{ debugName: "channel" }] : /* istanbul ignore next */ []);
1120
+ resolved = computed(() => ({
1121
+ ...this.config,
1122
+ position: this.position(),
1123
+ mode: this.mode(),
1124
+ duration: this.duration(),
1125
+ showProgress: this.showProgress(),
1126
+ showCopy: this.showCopy(),
1127
+ showCloseAll: this.showCloseAll(),
1128
+ closeAllThreshold: this.closeAllThreshold(),
1129
+ maxStack: this.maxStack()
1130
+ }), ...ngDevMode ? [{ debugName: "resolved" }] : /* istanbul ignore next */ []);
1131
+ host = viewChild(WrToastHost, ...ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []);
1132
+ constructor() {
1133
+ if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("toast");
1134
+ effect(() => this.channel().configure(this.maxStack(), this.duration()));
1135
+ effect((onCleanup) => {
1136
+ const channel = this.channel();
1137
+ if (untracked(() => channel.mount()) > 1 && (typeof ngDevMode === "undefined" || ngDevMode)) console.warn(`[NGWR] Two <wr-toast-outlet> share the name "${this.name()}", so both render the same toasts. Give each outlet its own name.`);
1138
+ onCleanup(() => channel.unmount());
1139
+ });
1140
+ effect(() => this.push());
1141
+ }
1142
+ onDismissed(id) {
1143
+ this.channel().remove(id);
1144
+ this.push();
1145
+ }
1146
+ onAction(id) {
1147
+ const channel = this.channel();
1148
+ const action = channel.find(id)?.action;
1149
+ if (!action) return;
1150
+ channel.remove(id);
1151
+ this.push();
1152
+ action.run();
1153
+ }
1154
+ onDismissAll() {
1155
+ this.channel().clear();
1156
+ this.push();
1157
+ }
1158
+ push() {
1159
+ this.host()?.toasts.set(this.channel().toasts());
1160
+ }
1161
+ static ɵfac = i0.ɵɵngDeclareFactory({
1162
+ minVersion: "12.0.0",
1163
+ version: "22.2.5",
1164
+ ngImport: i0,
1165
+ type: WrToastOutlet,
1166
+ deps: [],
1167
+ target: i0.ɵɵFactoryTarget.Component
1168
+ });
1169
+ static ɵcmp = i0.ɵɵngDeclareComponent({
1170
+ minVersion: "17.0.0",
1171
+ version: "22.2.5",
1172
+ type: WrToastOutlet,
1173
+ isStandalone: true,
1174
+ selector: "wr-toast-outlet",
1175
+ inputs: {
1176
+ name: {
1177
+ classPropertyName: "name",
1178
+ publicName: "name",
1179
+ isSignal: true,
1180
+ isRequired: true,
1181
+ transformFunction: null
1182
+ },
1183
+ position: {
1184
+ classPropertyName: "position",
1185
+ publicName: "position",
1186
+ isSignal: true,
1187
+ isRequired: false,
1188
+ transformFunction: null
1189
+ },
1190
+ mode: {
1191
+ classPropertyName: "mode",
1192
+ publicName: "mode",
1193
+ isSignal: true,
1194
+ isRequired: false,
1195
+ transformFunction: null
1196
+ },
1197
+ duration: {
1198
+ classPropertyName: "duration",
1199
+ publicName: "duration",
1200
+ isSignal: true,
1201
+ isRequired: false,
1202
+ transformFunction: null
1203
+ },
1204
+ showProgress: {
1205
+ classPropertyName: "showProgress",
1206
+ publicName: "showProgress",
1207
+ isSignal: true,
1208
+ isRequired: false,
1209
+ transformFunction: null
1210
+ },
1211
+ showCopy: {
1212
+ classPropertyName: "showCopy",
1213
+ publicName: "showCopy",
1214
+ isSignal: true,
1215
+ isRequired: false,
1216
+ transformFunction: null
1217
+ },
1218
+ showCloseAll: {
1219
+ classPropertyName: "showCloseAll",
1220
+ publicName: "showCloseAll",
1221
+ isSignal: true,
1222
+ isRequired: false,
1223
+ transformFunction: null
1224
+ },
1225
+ closeAllThreshold: {
1226
+ classPropertyName: "closeAllThreshold",
1227
+ publicName: "closeAllThreshold",
1228
+ isSignal: true,
1229
+ isRequired: false,
1230
+ transformFunction: null
1231
+ },
1232
+ maxStack: {
1233
+ classPropertyName: "maxStack",
1234
+ publicName: "maxStack",
1235
+ isSignal: true,
1236
+ isRequired: false,
1237
+ transformFunction: null
1238
+ }
1239
+ },
1240
+ host: {
1241
+ properties: { "attr.name": "name()" },
1242
+ classAttribute: "wr-toast-outlet"
1243
+ },
1244
+ viewQueries: [{
1245
+ propertyName: "host",
1246
+ first: true,
1247
+ predicate: WrToastHost,
1248
+ descendants: true,
1249
+ isSignal: true
1250
+ }],
1251
+ ngImport: i0,
1252
+ template: "@if (channel().toasts().length > 0) {\n <wr-toast-host\n [position]=\"position()\"\n [mode]=\"mode()\"\n [config]=\"resolved()\"\n (dismissed)=\"onDismissed($event)\"\n (actionRequested)=\"onAction($event)\"\n (dismissAllRequested)=\"onDismissAll()\"\n (pauseRequested)=\"channel().pause($event)\"\n (resumeRequested)=\"channel().resume($event)\"\n (holdChange)=\"channel().setHeld($event)\"\n />\n}\n",
1253
+ dependencies: [{
1254
+ kind: "component",
1255
+ type: WrToastHost,
1256
+ selector: "wr-toast-host",
1257
+ inputs: [
1258
+ "position",
1259
+ "config",
1260
+ "mode"
1261
+ ],
1262
+ outputs: [
1263
+ "dismissed",
1264
+ "actionRequested",
1265
+ "pauseRequested",
1266
+ "resumeRequested",
1267
+ "holdChange",
1268
+ "dismissAllRequested"
1269
+ ]
1270
+ }],
1271
+ encapsulation: i0.ViewEncapsulation.None
1272
+ });
1273
+ };
1274
+ i0.ɵɵngDeclareClassMetadata({
1275
+ minVersion: "12.0.0",
1276
+ version: "22.2.5",
1277
+ ngImport: i0,
1278
+ type: WrToastOutlet,
1279
+ decorators: [{
1280
+ type: Component,
1281
+ args: [{
1282
+ selector: "wr-toast-outlet",
1283
+ encapsulation: ViewEncapsulation.None,
1284
+ host: {
1285
+ class: "wr-toast-outlet",
1286
+ "[attr.name]": "name()"
1287
+ },
1288
+ imports: [WrToastHost],
1289
+ template: "@if (channel().toasts().length > 0) {\n <wr-toast-host\n [position]=\"position()\"\n [mode]=\"mode()\"\n [config]=\"resolved()\"\n (dismissed)=\"onDismissed($event)\"\n (actionRequested)=\"onAction($event)\"\n (dismissAllRequested)=\"onDismissAll()\"\n (pauseRequested)=\"channel().pause($event)\"\n (resumeRequested)=\"channel().resume($event)\"\n (holdChange)=\"channel().setHeld($event)\"\n />\n}\n"
1290
+ }]
1291
+ }],
1292
+ ctorParameters: () => [],
1293
+ propDecorators: {
1294
+ name: [{
1295
+ type: i0.Input,
1296
+ args: [{
1297
+ isSignal: true,
1298
+ alias: "name",
1299
+ required: true
1300
+ }]
1301
+ }],
1302
+ position: [{
1303
+ type: i0.Input,
1304
+ args: [{
1305
+ isSignal: true,
1306
+ alias: "position",
1307
+ required: false
1308
+ }]
1309
+ }],
1310
+ mode: [{
1311
+ type: i0.Input,
1312
+ args: [{
1313
+ isSignal: true,
1314
+ alias: "mode",
1315
+ required: false
1316
+ }]
1317
+ }],
1318
+ duration: [{
1319
+ type: i0.Input,
1320
+ args: [{
1321
+ isSignal: true,
1322
+ alias: "duration",
1323
+ required: false
1324
+ }]
1325
+ }],
1326
+ showProgress: [{
1327
+ type: i0.Input,
1328
+ args: [{
1329
+ isSignal: true,
1330
+ alias: "showProgress",
1331
+ required: false
1332
+ }]
1333
+ }],
1334
+ showCopy: [{
1335
+ type: i0.Input,
1336
+ args: [{
1337
+ isSignal: true,
1338
+ alias: "showCopy",
1339
+ required: false
1340
+ }]
1341
+ }],
1342
+ showCloseAll: [{
1343
+ type: i0.Input,
1344
+ args: [{
1345
+ isSignal: true,
1346
+ alias: "showCloseAll",
1347
+ required: false
1348
+ }]
1349
+ }],
1350
+ closeAllThreshold: [{
1351
+ type: i0.Input,
1352
+ args: [{
1353
+ isSignal: true,
1354
+ alias: "closeAllThreshold",
1355
+ required: false
1356
+ }]
1357
+ }],
1358
+ maxStack: [{
1359
+ type: i0.Input,
1360
+ args: [{
1361
+ isSignal: true,
1362
+ alias: "maxStack",
1363
+ required: false
1364
+ }]
1365
+ }],
1366
+ host: [{
1367
+ type: i0.ViewChild,
1368
+ args: [i0.forwardRef(() => WrToastHost), { isSignal: true }]
1369
+ }]
1370
+ }
1371
+ });
1372
+ /**
1373
+ * @license
1374
+ *
1375
+ * Use of this source code is governed by an MIT-style license that can be
1376
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
1377
+ */
910
1378
  function withToast(config) {
911
1379
  const merged = {
912
- ...DEFAULT_TOAST_CONFIG,
1380
+ ...DEFAULT_WR_TOAST_CONFIG,
913
1381
  ...config,
914
1382
  labels: {
915
- ...DEFAULT_TOAST_CONFIG.labels,
1383
+ ...DEFAULT_WR_TOAST_CONFIG.labels,
916
1384
  ...config.labels
917
1385
  }
918
1386
  };
@@ -927,6 +1395,6 @@ function withToast(config) {
927
1395
  }
928
1396
  }] : []]);
929
1397
  }
930
- export { DEFAULT_TOAST_CONFIG, WR_TOAST_CONFIG, WrToast, WrToastRef, withToast };
1398
+ export { DEFAULT_WR_TOAST_CONFIG, WR_TOAST_CONFIG, WrToast, WrToastOutlet, WrToastRef, withToast };
931
1399
 
932
1400
  //# sourceMappingURL=ngwr-toast.mjs.map