@taiga-ui/kit 4.52.0-canary.a4e325d → 4.52.0-canary.a59c4d0

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 (334) hide show
  1. package/components/accordion/accordion.component.d.ts +13 -0
  2. package/components/accordion/accordion.d.ts +4 -4
  3. package/components/accordion/accordion.directive.d.ts +11 -10
  4. package/components/accordion/index.d.ts +1 -3
  5. package/components/action-bar/action-bar.component.d.ts +5 -7
  6. package/components/action-bar/index.d.ts +0 -2
  7. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  8. package/components/avatar/avatar.directive.d.ts +15 -0
  9. package/components/avatar/avatar.options.d.ts +1 -4
  10. package/components/avatar/index.d.ts +1 -1
  11. package/components/badge/badge.directive.d.ts +2 -2
  12. package/components/block/block.directive.d.ts +4 -4
  13. package/components/block/block.options.d.ts +1 -1
  14. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  15. package/components/checkbox/checkbox.component.d.ts +7 -18
  16. package/components/checkbox/checkbox.options.d.ts +5 -9
  17. package/components/chip/chip.directive.d.ts +2 -4
  18. package/components/comment/comment.directive.d.ts +2 -2
  19. package/components/confirm/confirm.component.d.ts +1 -0
  20. package/components/confirm/confirm.service.d.ts +2 -1
  21. package/{directives → components}/copy/copy.directive.d.ts +1 -2
  22. package/{directives → components}/copy/copy.options.d.ts +2 -2
  23. package/components/files/file/file.options.d.ts +1 -1
  24. package/components/floating-container/floating-container.directive.d.ts +2 -2
  25. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  26. package/components/fullscreen/index.d.ts +1 -0
  27. package/components/index.d.ts +3 -2
  28. package/components/input-chip/input-chip.options.d.ts +1 -1
  29. package/components/input-color/input-color.component.d.ts +2 -2
  30. package/components/input-color/input-color.options.d.ts +1 -1
  31. package/components/input-date/input-date.options.d.ts +1 -1
  32. package/components/input-number/input-number.options.d.ts +1 -1
  33. package/components/input-number/quantum.directive.d.ts +1 -1
  34. package/components/input-phone/input-phone.options.d.ts +1 -1
  35. package/components/input-phone-international/input-phone-international.component.d.ts +23 -29
  36. package/components/input-range/input-range.component.d.ts +8 -11
  37. package/components/input-slider/input-slider.directive.d.ts +2 -4
  38. package/components/input-time/input-time.options.d.ts +1 -1
  39. package/components/like/like.component.d.ts +4 -11
  40. package/components/like/like.options.d.ts +3 -4
  41. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  42. package/components/line-clamp/line-clamp.component.d.ts +6 -10
  43. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +2 -2
  44. package/components/pager/pager.component.d.ts +1 -1
  45. package/components/pin/pin.directive.d.ts +2 -2
  46. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  47. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  48. package/components/push/push-alert.component.d.ts +3 -3
  49. package/components/push/push.component.d.ts +1 -1
  50. package/components/push/push.directive.d.ts +4 -6
  51. package/components/push/push.options.d.ts +2 -0
  52. package/components/push/push.service.d.ts +5 -2
  53. package/components/radio/radio.component.d.ts +7 -8
  54. package/components/radio/radio.directive.d.ts +2 -2
  55. package/components/radio/radio.options.d.ts +2 -5
  56. package/components/range/range-change.directive.d.ts +1 -1
  57. package/components/range/range.component.d.ts +0 -5
  58. package/components/rating/rating.component.d.ts +5 -5
  59. package/components/rating/rating.options.d.ts +5 -3
  60. package/components/segmented/segmented.component.d.ts +1 -3
  61. package/components/slider/helpers/key-steps.d.ts +1 -2
  62. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  63. package/components/slides/slides.directive.d.ts +4 -4
  64. package/components/status/status.directive.d.ts +2 -2
  65. package/components/switch/switch.component.d.ts +7 -19
  66. package/components/switch/switch.options.d.ts +4 -8
  67. package/components/textarea/textarea.options.d.ts +1 -1
  68. package/components/toast/index.d.ts +5 -0
  69. package/components/toast/toast.component.d.ts +17 -0
  70. package/components/toast/toast.d.ts +3 -0
  71. package/components/toast/toast.directive.d.ts +7 -0
  72. package/components/toast/toast.options.d.ts +8 -0
  73. package/components/toast/toast.service.d.ts +16 -0
  74. package/directives/button-select/button-select.directive.d.ts +1 -2
  75. package/directives/chevron/chevron.directive.d.ts +2 -3
  76. package/directives/fade/fade.directive.d.ts +1 -0
  77. package/directives/highlight/highlight.directive.d.ts +1 -3
  78. package/directives/index.d.ts +0 -2
  79. package/directives/password/password.options.d.ts +1 -1
  80. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  81. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  82. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  83. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  84. package/directives/tooltip/tooltip.options.d.ts +1 -4
  85. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  86. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  88. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-avatar.mjs +81 -100
  90. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +3 -3
  92. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  94. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -6
  96. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  98. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +6 -8
  100. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  102. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +4 -6
  104. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -7
  106. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -19
  108. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  110. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  112. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +3 -3
  114. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  116. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-compass.mjs +3 -3
  118. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-confirm.mjs +13 -13
  120. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  121. package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +11 -12
  122. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  123. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +10 -11
  124. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  126. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +6 -6
  128. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-files.mjs +27 -36
  130. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-filter.mjs +6 -15
  132. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  134. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  136. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  137. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +20 -17
  138. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-input-color.mjs +9 -12
  140. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +5 -5
  142. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +3 -3
  144. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +7 -8
  146. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-input-date.mjs +13 -14
  148. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +5 -5
  150. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +5 -5
  152. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-input-month.mjs +10 -11
  154. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-input-number.mjs +25 -24
  156. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +104 -130
  158. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -3
  160. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +5 -5
  162. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-input-range.mjs +34 -38
  164. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +27 -40
  166. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-input-time.mjs +12 -13
  168. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-input-year.mjs +5 -5
  170. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +16 -16
  172. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  174. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +32 -40
  176. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -11
  178. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +42 -38
  180. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -19
  182. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -6
  184. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-pagination.mjs +7 -7
  186. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  188. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  190. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-preview.mjs +31 -33
  192. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-progress.mjs +37 -50
  194. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-pulse.mjs +3 -3
  196. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-push.mjs +46 -41
  198. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +5 -6
  200. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-radio.mjs +34 -39
  202. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-range.mjs +9 -18
  204. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -21
  206. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +3 -3
  208. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-segmented.mjs +6 -6
  210. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-select.mjs +14 -14
  212. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-slider.mjs +69 -67
  214. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  216. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  218. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-stepper.mjs +11 -11
  220. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  222. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-tabs.mjs +28 -33
  224. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-textarea.mjs +14 -15
  226. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-tiles.mjs +12 -12
  228. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-toast.mjs +166 -0
  230. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  231. package/fesm2022/taiga-ui-kit-components-tree.mjs +32 -40
  232. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  234. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  236. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  238. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +5 -12
  240. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  242. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -14
  244. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +3 -3
  246. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-directives-fade.mjs +9 -12
  248. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  250. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -3
  252. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +6 -7
  254. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-directives-password.mjs +6 -6
  256. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -3
  258. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  260. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  262. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  264. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +13 -18
  266. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +4 -5
  268. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +3 -3
  270. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  272. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  274. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  276. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  278. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  280. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  282. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  284. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  286. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-tokens.mjs +1 -6
  288. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  290. package/package.json +26 -33
  291. package/pipes/index.d.ts +0 -1
  292. package/styles/components/avatar.less +188 -0
  293. package/styles/components/block.less +1 -1
  294. package/styles/components/checkbox.less +14 -12
  295. package/styles/components/chip.less +2 -3
  296. package/styles/components/like.less +4 -9
  297. package/styles/components/pin.less +3 -7
  298. package/styles/components/radio.less +1 -1
  299. package/styles/components/switch.less +9 -9
  300. package/styles/components/toast.less +44 -0
  301. package/tokens/index.d.ts +0 -1
  302. package/tokens/input-date-options.d.ts +1 -1
  303. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  304. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  305. package/components/accordion/accordion-item.component.d.ts +0 -25
  306. package/components/action-bar/action-bar.d.ts +0 -3
  307. package/components/action-bar/action-bar.directive.d.ts +0 -6
  308. package/components/avatar/avatar.component.d.ts +0 -15
  309. package/components/input-password/index.d.ts +0 -2
  310. package/components/input-password/input-password.component.d.ts +0 -16
  311. package/components/input-password/input-password.options.d.ts +0 -24
  312. package/components/pdf-viewer/index.d.ts +0 -4
  313. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  314. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  315. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  316. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  317. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  318. package/directives/icon-badge/index.d.ts +0 -1
  319. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -95
  320. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  321. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  322. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  323. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  324. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  325. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  326. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  327. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  328. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  329. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  330. package/pipes/field-error/index.d.ts +0 -2
  331. package/tokens/validation-errors.d.ts +0 -5
  332. /package/{directives → components}/copy/copy.component.d.ts +0 -0
  333. /package/{directives → components}/copy/copy.d.ts +0 -0
  334. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1,20 +1,18 @@
1
- import { AsyncPipe, NgIf } from '@angular/common';
1
+ import { AsyncPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, InjectionToken, Injectable, TemplateRef, ChangeDetectorRef, forwardRef, Directive } from '@angular/core';
3
+ import { inject, EventEmitter, Output, Input, ChangeDetectionStrategy, Component, InjectionToken, Injectable, DestroyRef, Directive } from '@angular/core';
4
4
  import { tuiIsString, tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
5
5
  import { TuiButton, tuiButtonOptionsProvider } from '@taiga-ui/core/components/button';
6
6
  import { TuiFormatDatePipe } from '@taiga-ui/core/pipes/format-date';
7
7
  import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
8
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
9
- import { tuiIfMap } from '@taiga-ui/cdk/observables';
10
- import { injectContext, PolymorpheusOutlet, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
11
- import { Subject } from 'rxjs';
12
- import { TuiPopoverService } from '@taiga-ui/cdk/services';
13
- import { TUI_ALERTS } from '@taiga-ui/core/components/alert';
8
+ import * as i1$1 from '@taiga-ui/cdk/portals';
9
+ import { TuiPortalDirective, TuiPortal, tuiAsPortal } from '@taiga-ui/cdk/portals';
10
+ import { TuiPopupService } from '@taiga-ui/core/directives/popup';
14
11
  import * as i1 from '@taiga-ui/cdk/directives/animated';
15
12
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
16
13
  import { TuiIcon } from '@taiga-ui/core/components/icon';
17
14
  import { TuiLink } from '@taiga-ui/core/components/link';
15
+ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
18
16
 
19
17
  class TuiPushComponent {
20
18
  constructor() {
@@ -27,14 +25,14 @@ class TuiPushComponent {
27
25
  this.timestamp = '';
28
26
  this.close = new EventEmitter();
29
27
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPushComponent, isStandalone: true, selector: "tui-push", inputs: { heading: "heading", type: "type", lines: "lines", timestamp: "timestamp" }, outputs: { close: "close" }, host: { properties: { "style.--t-lines": "lines" } }, providers: [tuiButtonOptionsProvider({ size: 's', appearance: 'secondary' })], ngImport: i0, template: "<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n<button\n *ngIf=\"close.observed\"\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n>\n {{ closeWord$ | async }}\n</button>\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-svg,tui-icon\" />\n </span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n", styles: [":host{position:relative;display:block;inline-size:22.5rem;max-inline-size:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image{display:flex;flex-direction:column;max-block-size:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:.75rem}}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon{block-size:1.25rem;margin-inline-end:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time:before{content:\"\\2022\";display:inline-block;inline-size:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading,.t-content{display:-webkit-box;-webkit-box-orient:block-axis;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "pipe", type: TuiFormatDatePipe, name: "tuiFormatDate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
29
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPushComponent, isStandalone: true, selector: "tui-push", inputs: { heading: "heading", type: "type", lines: "lines", timestamp: "timestamp" }, outputs: { close: "close" }, host: { properties: { "style.--t-lines": "lines" } }, providers: [tuiButtonOptionsProvider({ size: 's', appearance: 'secondary' })], ngImport: i0, template: "<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n@if (close.observed) {\n <button\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-icon\" />\n </span>\n {{ type }}\n @if (timestamp) {\n <span\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n }\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n", styles: [":host{position:relative;display:block;inline-size:22.5rem;max-inline-size:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image{display:flex;flex-direction:column;max-block-size:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:.75rem}}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon{block-size:1.25rem;margin-inline-end:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time:before{content:\"\\2022\";display:inline-block;inline-size:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading,.t-content{display:-webkit-box;-webkit-box-orient:block-axis;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "pipe", type: TuiFormatDatePipe, name: "tuiFormatDate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
32
30
  }
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushComponent, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushComponent, decorators: [{
34
32
  type: Component,
35
- args: [{ selector: 'tui-push', imports: [AsyncPipe, NgIf, TuiButton, TuiFormatDatePipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiButtonOptionsProvider({ size: 's', appearance: 'secondary' })], host: {
33
+ args: [{ selector: 'tui-push', imports: [AsyncPipe, TuiButton, TuiFormatDatePipe], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiButtonOptionsProvider({ size: 's', appearance: 'secondary' })], host: {
36
34
  '[style.--t-lines]': 'lines',
37
- }, template: "<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n<button\n *ngIf=\"close.observed\"\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n>\n {{ closeWord$ | async }}\n</button>\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-svg,tui-icon\" />\n </span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n", styles: [":host{position:relative;display:block;inline-size:22.5rem;max-inline-size:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image{display:flex;flex-direction:column;max-block-size:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:.75rem}}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon{block-size:1.25rem;margin-inline-end:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time:before{content:\"\\2022\";display:inline-block;inline-size:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading,.t-content{display:-webkit-box;-webkit-box-orient:block-axis;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}\n"] }]
35
+ }, template: "<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n@if (close.observed) {\n <button\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-icon\" />\n </span>\n {{ type }}\n @if (timestamp) {\n <span\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n }\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n", styles: [":host{position:relative;display:block;inline-size:22.5rem;max-inline-size:100%;box-sizing:border-box;padding:1.25rem 1.25rem .25rem;overflow:hidden;font:var(--tui-font-text-m);border-radius:var(--tui-radius-xl);background:var(--tui-background-elevation-2);box-shadow:var(--tui-shadow-small)}.t-image{display:flex;flex-direction:column;max-block-size:10.625rem;overflow:hidden;margin:-1.25rem -1.25rem 1.25rem}.t-close{position:absolute;top:.75rem;right:.75rem;color:#0000008a;background:#f2f2f252;-webkit-backdrop-filter:blur(1rem);backdrop-filter:blur(1rem)}@supports (inset-inline-end: 0){.t-close{right:unset;inset-inline-end:.75rem}}.t-top{display:flex;align-items:center;font:var(--tui-font-text-s);color:var(--tui-text-secondary)}.t-icon{block-size:1.25rem;margin-inline-end:.5rem;transform:scale(.833);transform-origin:top left;color:var(--tui-text-action)}.t-time:before{content:\"\\2022\";display:inline-block;inline-size:1rem;text-align:center}.t-heading{line-height:1.25rem;font-weight:700;margin:.75rem 0 .25rem}.t-heading,.t-content{display:-webkit-box;-webkit-box-orient:block-axis;-webkit-line-clamp:var(--t-lines);word-break:break-word;overflow:hidden}.t-actions{display:flex;align-items:center;font:var(--tui-font-text-s)}.t-button:not(:empty){margin:.75rem .75rem .75rem 0}.t-link{margin:.75rem 0}.t-link:empty{margin:.5rem}\n"] }]
38
36
  }], propDecorators: { heading: [{
39
37
  type: Input
40
38
  }], type: [{
@@ -55,6 +53,8 @@ const TUI_PUSH_DEFAULT_OPTIONS = {
55
53
  icon: '',
56
54
  iconColor: '',
57
55
  buttons: [],
56
+ position: 'bottom',
57
+ orientation: 'center',
58
58
  };
59
59
  /**
60
60
  * Default parameters for Push component
@@ -71,54 +71,59 @@ class TuiPushAlert {
71
71
  this.context = injectContext();
72
72
  }
73
73
  get isDirective() {
74
- return this.context.content instanceof TuiPushDirective;
74
+ return this.context.content instanceof TuiPortalDirective;
75
75
  }
76
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
77
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiPushAlert, isStandalone: true, selector: "ng-component", host: { attributes: { "role": "alert" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<div class=\"t-wrapper\">\n <tui-push\n *ngIf=\"!isDirective; else directive\"\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n <img\n *ngIf=\"context.image\"\n alt=\"\"\n [src]=\"context.image\"\n />\n <tui-icon\n *ngIf=\"context.icon\"\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n <button\n *ngIf=\"context.buttons.length > 1\"\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n <button\n *ngIf=\"context.buttons.length\"\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n </tui-push>\n <ng-template #directive>\n <ng-container *polymorpheusOutlet=\"context.content\" />\n </ng-template>\n</div>\n", styles: [":host{position:relative;bottom:1rem;display:grid;flex-shrink:0;max-inline-size:calc(100% - 2rem);margin:0 1rem 0 auto;border-radius:var(--tui-radius-xl);box-shadow:var(--tui-shadow-small);overflow:hidden;--tui-from: translateX(100%)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host.tui-leave:not(:first-child){transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-block-start:-1rem!important}:host:first-child{margin-block-start:auto}:host:not(:last-child){transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-block-end:1rem}.t-wrapper{grid-row:1 / span 2;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "component", type: TuiIcon, selector: "tui-icon", inputs: ["icon", "background"] }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "component", type: TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
77
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiPushAlert, isStandalone: true, selector: "tui-push-alert", host: { attributes: { "role": "alert" }, properties: { "attr.data-orientation": "context.orientation", "class._bottom": "context.position === \"bottom\"" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<div class=\"t-wrapper\">\n @if (!isDirective) {\n <tui-push\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n @if (context.image) {\n <img\n alt=\"\"\n [src]=\"context.image\"\n />\n }\n @if (context.icon) {\n <tui-icon\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n }\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n @if (context.buttons.length > 1) {\n <button\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n }\n @if (context.buttons.length) {\n <button\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n }\n </tui-push>\n } @else {\n <ng-container *polymorpheusOutlet=\"context.content\" />\n }\n</div>\n", styles: [":host{position:relative;display:grid;max-inline-size:calc(100% - 2rem);margin:.625rem 1rem;isolation:isolate;grid-column:1;place-self:start start;--tui-from: translateX(-100%)}:host[data-orientation=end]{justify-self:end;--tui-from: translateX(100%)}:host[data-orientation=center]{justify-self:center;--tui-from: translateY(-100%)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-of-type){margin-block-start:0}:host:not(:last-of-type){margin-block-end:0}:host._bottom{align-self:end}:host._bottom:nth-of-type(1){grid-row:10001}:host._bottom:nth-of-type(2){grid-row:10002}:host._bottom:nth-of-type(3){grid-row:10003}:host._bottom:nth-of-type(4){grid-row:10004}:host._bottom:nth-of-type(5){grid-row:10005}:host._bottom:nth-of-type(6){grid-row:10006}:host._bottom:nth-of-type(7){grid-row:10007}:host._bottom:nth-of-type(8){grid-row:10008}:host._bottom:nth-of-type(9){grid-row:10009}:host._bottom:nth-of-type(10){grid-row:100010}:host._bottom[data-orientation=center]{--tui-from: translateY(100%)}.t-wrapper{grid-row:1 / span 2}.t-wrapper:before,.t-wrapper:after{content:\"\";display:block;block-size:.375rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "component", type: TuiIcon, selector: "tui-icon:not([tuiBadge])", inputs: ["background"] }, { kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }, { kind: "component", type: TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "lines", "timestamp"], outputs: ["close"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushAlert, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushAlert, decorators: [{
80
80
  type: Component,
81
- args: [{ imports: [NgIf, PolymorpheusOutlet, TuiButton, TuiIcon, TuiLink, TuiPushComponent], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
81
+ args: [{ selector: 'tui-push-alert', imports: [PolymorpheusOutlet, TuiButton, TuiIcon, TuiLink, TuiPushComponent], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
82
82
  role: 'alert',
83
- }, template: "<div class=\"t-wrapper\">\n <tui-push\n *ngIf=\"!isDirective; else directive\"\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n <img\n *ngIf=\"context.image\"\n alt=\"\"\n [src]=\"context.image\"\n />\n <tui-icon\n *ngIf=\"context.icon\"\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n <button\n *ngIf=\"context.buttons.length > 1\"\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n <button\n *ngIf=\"context.buttons.length\"\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n </tui-push>\n <ng-template #directive>\n <ng-container *polymorpheusOutlet=\"context.content\" />\n </ng-template>\n</div>\n", styles: [":host{position:relative;bottom:1rem;display:grid;flex-shrink:0;max-inline-size:calc(100% - 2rem);margin:0 1rem 0 auto;border-radius:var(--tui-radius-xl);box-shadow:var(--tui-shadow-small);overflow:hidden;--tui-from: translateX(100%)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host.tui-leave:not(:first-child){transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-block-start:-1rem!important}:host:first-child{margin-block-start:auto}:host:not(:last-child){transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-block-end:1rem}.t-wrapper{grid-row:1 / span 2;overflow:hidden}\n"] }]
83
+ '[attr.data-orientation]': 'context.orientation',
84
+ '[class._bottom]': 'context.position === "bottom"',
85
+ }, template: "<div class=\"t-wrapper\">\n @if (!isDirective) {\n <tui-push\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n @if (context.image) {\n <img\n alt=\"\"\n [src]=\"context.image\"\n />\n }\n @if (context.icon) {\n <tui-icon\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n }\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n @if (context.buttons.length > 1) {\n <button\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n }\n @if (context.buttons.length) {\n <button\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n }\n </tui-push>\n } @else {\n <ng-container *polymorpheusOutlet=\"context.content\" />\n }\n</div>\n", styles: [":host{position:relative;display:grid;max-inline-size:calc(100% - 2rem);margin:.625rem 1rem;isolation:isolate;grid-column:1;place-self:start start;--tui-from: translateX(-100%)}:host[data-orientation=end]{justify-self:end;--tui-from: translateX(100%)}:host[data-orientation=center]{justify-self:center;--tui-from: translateY(-100%)}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-of-type){margin-block-start:0}:host:not(:last-of-type){margin-block-end:0}:host._bottom{align-self:end}:host._bottom:nth-of-type(1){grid-row:10001}:host._bottom:nth-of-type(2){grid-row:10002}:host._bottom:nth-of-type(3){grid-row:10003}:host._bottom:nth-of-type(4){grid-row:10004}:host._bottom:nth-of-type(5){grid-row:10005}:host._bottom:nth-of-type(6){grid-row:10006}:host._bottom:nth-of-type(7){grid-row:10007}:host._bottom:nth-of-type(8){grid-row:10008}:host._bottom:nth-of-type(9){grid-row:10009}:host._bottom:nth-of-type(10){grid-row:100010}:host._bottom[data-orientation=center]{--tui-from: translateY(100%)}.t-wrapper{grid-row:1 / span 2}.t-wrapper:before,.t-wrapper:after{content:\"\";display:block;block-size:.375rem}\n"] }]
84
86
  }] });
85
87
 
86
- class TuiPushService extends TuiPopoverService {
87
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
88
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushService, providedIn: 'root', useFactory: () => new TuiPushService(TUI_ALERTS, TuiPushAlert, inject(TUI_PUSH_OPTIONS)) }); }
88
+ class TuiPushService extends TuiPortal {
89
+ constructor() {
90
+ super(...arguments);
91
+ this.options = inject(TUI_PUSH_OPTIONS);
92
+ this.component = TuiPushAlert;
93
+ }
94
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
95
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushService, providedIn: 'root', useClass: TuiPushService, deps: [{ token: TuiPopupService }] }); }
89
96
  }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushService, decorators: [{
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushService, decorators: [{
91
98
  type: Injectable,
92
99
  args: [{
93
100
  providedIn: 'root',
94
- useFactory: () => new TuiPushService(TUI_ALERTS, TuiPushAlert, inject(TUI_PUSH_OPTIONS)),
101
+ deps: [TuiPopupService],
102
+ useClass: TuiPushService,
95
103
  }]
96
104
  }] });
97
105
 
98
- class TuiPushDirective extends PolymorpheusTemplate {
106
+ class TuiPushDirective {
99
107
  constructor() {
100
- super(inject(TemplateRef), inject(ChangeDetectorRef));
101
- this.push = inject(forwardRef(() => TuiPushService));
102
- this.show$ = new Subject();
103
- this.show$
104
- .pipe(tuiIfMap(() => this.push.open(this)), takeUntilDestroyed())
105
- .subscribe();
106
- }
107
- set tuiPush(show) {
108
- this.show$.next(show);
108
+ this.sub = inject(TuiPortalDirective).openChange.subscribe(() => { });
109
+ inject(DestroyRef).onDestroy(() => this.sub.unsubscribe());
109
110
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
111
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiPushDirective, isStandalone: true, selector: "ng-template[tuiPush]", inputs: { tuiPush: "tuiPush" }, usesInheritance: true, ngImport: i0 }); }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
112
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPushDirective, isStandalone: true, selector: "ng-template[tuiPush]", providers: [tuiAsPortal(TuiPushService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["open", "tuiPush"] }], ngImport: i0 }); }
112
113
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiPushDirective, decorators: [{
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPushDirective, decorators: [{
114
115
  type: Directive,
115
116
  args: [{
116
- standalone: true,
117
117
  selector: 'ng-template[tuiPush]',
118
+ providers: [tuiAsPortal(TuiPushService)],
119
+ hostDirectives: [
120
+ {
121
+ directive: TuiPortalDirective,
122
+ inputs: ['open: tuiPush'],
123
+ },
124
+ ],
118
125
  }]
119
- }], ctorParameters: () => [], propDecorators: { tuiPush: [{
120
- type: Input
121
- }] } });
126
+ }], ctorParameters: () => [] });
122
127
 
123
128
  const TuiPush = [TuiPushComponent, TuiPushAlert, TuiPushDirective];
124
129
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-push.mjs","sources":["../../../projects/kit/components/push/push.component.ts","../../../projects/kit/components/push/push.template.html","../../../projects/kit/components/push/push.options.ts","../../../projects/kit/components/push/push-alert.component.ts","../../../projects/kit/components/push/push-alert.template.html","../../../projects/kit/components/push/push.service.ts","../../../projects/kit/components/push/push.directive.ts","../../../projects/kit/components/push/push.ts","../../../projects/kit/components/push/taiga-ui-kit-components-push.ts"],"sourcesContent":["import {AsyncPipe, NgIf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton, tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiFormatDatePipe} from '@taiga-ui/core/pipes/format-date';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\n\n@Component({\n selector: 'tui-push',\n imports: [AsyncPipe, NgIf, TuiButton, TuiFormatDatePipe],\n templateUrl: './push.template.html',\n styleUrls: ['./push.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiButtonOptionsProvider({size: 's', appearance: 'secondary'})],\n host: {\n '[style.--t-lines]': 'lines',\n },\n})\nexport class TuiPushComponent {\n protected readonly isString = tuiIsString;\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n\n @Input()\n public heading = '';\n\n @Input()\n public type = '';\n\n @Input()\n public lines = 2;\n\n @Input()\n public timestamp: number | string = '';\n\n @Output()\n public readonly close = new EventEmitter<void>();\n}\n","<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n<button\n *ngIf=\"close.observed\"\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n>\n {{ closeWord$ | async }}\n</button>\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-svg,tui-icon\" />\n </span>\n {{ type }}\n <span\n *ngIf=\"timestamp\"\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiPushOptions {\n readonly buttons: readonly string[];\n readonly heading: string;\n readonly icon: string;\n readonly iconColor: string;\n readonly image: string;\n readonly timestamp: number | string;\n readonly type: string;\n}\n\nexport const TUI_PUSH_DEFAULT_OPTIONS: TuiPushOptions = {\n heading: '',\n type: '',\n timestamp: '',\n image: '',\n icon: '',\n iconColor: '',\n buttons: [],\n};\n\n/**\n * Default parameters for Push component\n */\nexport const TUI_PUSH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_PUSH_OPTIONS' : '', {\n factory: () => TUI_PUSH_DEFAULT_OPTIONS,\n});\n\nexport function tuiPushOptionsProvider(options: Partial<TuiPushOptions>): Provider {\n return tuiProvideOptions(TUI_PUSH_OPTIONS, options, TUI_PUSH_DEFAULT_OPTIONS);\n}\n","import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {type TuiPushOptions} from './push.options';\n\n@Component({\n imports: [NgIf, PolymorpheusOutlet, TuiButton, TuiIcon, TuiLink, TuiPushComponent],\n templateUrl: './push-alert.template.html',\n styleUrls: ['./push-alert.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n role: 'alert',\n },\n})\nexport class TuiPushAlert {\n protected readonly context = injectContext<TuiPopover<TuiPushOptions, string>>();\n\n protected get isDirective(): boolean {\n return this.context.content instanceof TuiPushDirective;\n }\n}\n","<div class=\"t-wrapper\">\n <tui-push\n *ngIf=\"!isDirective; else directive\"\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n <img\n *ngIf=\"context.image\"\n alt=\"\"\n [src]=\"context.image\"\n />\n <tui-icon\n *ngIf=\"context.icon\"\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n <button\n *ngIf=\"context.buttons.length > 1\"\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n <button\n *ngIf=\"context.buttons.length\"\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n </tui-push>\n <ng-template #directive>\n <ng-container *polymorpheusOutlet=\"context.content\" />\n </ng-template>\n</div>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_ALERTS} from '@taiga-ui/core/components/alert';\n\nimport {TUI_PUSH_OPTIONS, type TuiPushOptions} from './push.options';\nimport {TuiPushAlert} from './push-alert.component';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiPushService(TUI_ALERTS, TuiPushAlert, inject(TUI_PUSH_OPTIONS)),\n})\nexport class TuiPushService extends TuiPopoverService<TuiPushOptions, string> {}\n","import {\n ChangeDetectorRef,\n Directive,\n forwardRef,\n inject,\n Input,\n TemplateRef,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {Subject} from 'rxjs';\n\nimport {TuiPushService} from './push.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiPush]',\n})\nexport class TuiPushDirective extends PolymorpheusTemplate {\n private readonly push: TuiPushService = inject(forwardRef(() => TuiPushService));\n private readonly show$ = new Subject<boolean>();\n\n constructor() {\n super(inject(TemplateRef), inject(ChangeDetectorRef));\n\n this.show$\n .pipe(\n tuiIfMap(() => this.push.open(this)),\n takeUntilDestroyed(),\n )\n .subscribe();\n }\n\n @Input()\n public set tuiPush(show: boolean) {\n this.show$.next(show);\n }\n}\n","import {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {TuiPushAlert} from './push-alert.component';\n\nexport const TuiPush = [TuiPushComponent, TuiPushAlert, TuiPushDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;MAyBa,gBAAgB,CAAA;AAX7B,IAAA,WAAA,GAAA;QAYuB,IAAA,CAAA,QAAQ,GAAG,WAAW;AACtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAG5C,IAAA,CAAA,OAAO,GAAG,EAAE;QAGZ,IAAA,CAAA,IAAI,GAAG,EAAE;QAGT,IAAA,CAAA,KAAK,GAAG,CAAC;QAGT,IAAA,CAAA,SAAS,GAAoB,EAAE;AAGtB,QAAA,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EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAJxC,IAAA,CAAA,IAAI,GAAmB,MAAM,CAAC,UAAU,CAAC,MAAM,cAAc,CAAC,CAAC;AAC/D,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAW;AAK3C,QAAA,IAAI,CAAC;AACA,aAAA,IAAI,CACD,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EACpC,kBAAkB,EAAE;AAEvB,aAAA,SAAS,EAAE;IACpB;IAEA,IACW,OAAO,CAAC,IAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;IACzB;8GAlBS,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;AACnC,iBAAA;wDAiBc,OAAO,EAAA,CAAA;sBADjB;;;AC9BE,MAAM,OAAO,GAAG,CAAC,gBAAgB,EAAE,YAAY,EAAE,gBAAgB;;ACJxE;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-push.mjs","sources":["../../../projects/kit/components/push/push.component.ts","../../../projects/kit/components/push/push.template.html","../../../projects/kit/components/push/push.options.ts","../../../projects/kit/components/push/push-alert.component.ts","../../../projects/kit/components/push/push-alert.template.html","../../../projects/kit/components/push/push.service.ts","../../../projects/kit/components/push/push.directive.ts","../../../projects/kit/components/push/push.ts","../../../projects/kit/components/push/taiga-ui-kit-components-push.ts"],"sourcesContent":["import {AsyncPipe} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiButton, tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiFormatDatePipe} from '@taiga-ui/core/pipes/format-date';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\n\n@Component({\n selector: 'tui-push',\n imports: [AsyncPipe, TuiButton, TuiFormatDatePipe],\n templateUrl: './push.template.html',\n styleUrl: './push.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiButtonOptionsProvider({size: 's', appearance: 'secondary'})],\n host: {\n '[style.--t-lines]': 'lines',\n },\n})\nexport class TuiPushComponent {\n protected readonly isString = tuiIsString;\n protected readonly closeWord$ = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n\n @Input()\n public heading = '';\n\n @Input()\n public type = '';\n\n @Input()\n public lines = 2;\n\n @Input()\n public timestamp: number | string = '';\n\n @Output()\n public readonly close = new EventEmitter<void>();\n}\n","<div class=\"t-image\">\n <ng-content select=\"img\" />\n</div>\n@if (close.observed) {\n <button\n appearance=\"\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close.emit()\"\n >\n {{ closeWord$ | async }}\n </button>\n}\n<div class=\"t-top\">\n <span class=\"t-icon\">\n <ng-content select=\"tui-icon\" />\n </span>\n {{ type }}\n @if (timestamp) {\n <span\n class=\"t-time\"\n [textContent]=\"isString(timestamp) ? timestamp : (timestamp | tuiFormatDate | async)\"\n ></span>\n }\n</div>\n<h3\n automation-id=\"tui-push__heading\"\n class=\"t-heading\"\n>\n {{ heading }}\n</h3>\n<div class=\"t-content\">\n <ng-content />\n</div>\n<div class=\"t-actions\">\n <span class=\"t-button\">\n <ng-content select=\"[tuiButton]\" />\n </span>\n <span class=\"t-link\">\n <ng-content select=\"[tuiLink]\" />\n </span>\n</div>\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiPushOptions {\n readonly buttons: readonly string[];\n readonly heading: string;\n readonly icon: string;\n readonly iconColor: string;\n readonly image: string;\n readonly timestamp: number | string;\n readonly type: string;\n readonly position: 'bottom' | 'top';\n readonly orientation: 'center' | 'end' | 'start';\n}\n\nexport const TUI_PUSH_DEFAULT_OPTIONS: TuiPushOptions = {\n heading: '',\n type: '',\n timestamp: '',\n image: '',\n icon: '',\n iconColor: '',\n buttons: [],\n position: 'bottom',\n orientation: 'center',\n};\n\n/**\n * Default parameters for Push component\n */\nexport const TUI_PUSH_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_PUSH_OPTIONS' : '', {\n factory: () => TUI_PUSH_DEFAULT_OPTIONS,\n});\n\nexport function tuiPushOptionsProvider(options: Partial<TuiPushOptions>): Provider {\n return tuiProvideOptions(TUI_PUSH_OPTIONS, options, TUI_PUSH_DEFAULT_OPTIONS);\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext, TuiPortalDirective} from '@taiga-ui/cdk/portals';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiIcon} from '@taiga-ui/core/components/icon';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nimport {TuiPushComponent} from './push.component';\nimport {type TuiPushOptions} from './push.options';\n\n@Component({\n selector: 'tui-push-alert',\n imports: [PolymorpheusOutlet, TuiButton, TuiIcon, TuiLink, TuiPushComponent],\n templateUrl: './push-alert.template.html',\n styleUrl: './push-alert.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n role: 'alert',\n '[attr.data-orientation]': 'context.orientation',\n '[class._bottom]': 'context.position === \"bottom\"',\n },\n})\nexport class TuiPushAlert {\n protected readonly context =\n injectContext<TuiPortalContext<TuiPushOptions, string>>();\n\n protected get isDirective(): boolean {\n return this.context.content instanceof TuiPortalDirective;\n }\n}\n","<div class=\"t-wrapper\">\n @if (!isDirective) {\n <tui-push\n [heading]=\"context.heading\"\n [timestamp]=\"context.timestamp\"\n [type]=\"context.type\"\n (close)=\"context.$implicit.complete()\"\n >\n @if (context.image) {\n <img\n alt=\"\"\n [src]=\"context.image\"\n />\n }\n @if (context.icon) {\n <tui-icon\n [icon]=\"context.icon\"\n [style.color]=\"context.iconColor\"\n />\n }\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n [innerHTML]=\"text\"\n ></div>\n @if (context.buttons.length > 1) {\n <button\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[0] || '')\"\n >\n {{ context.buttons[0] }}\n </button>\n }\n @if (context.buttons.length) {\n <button\n tuiLink\n type=\"button\"\n (click)=\"context.$implicit.next(context.buttons[context.buttons.length - 1] || '')\"\n >\n {{ context.buttons[context.buttons.length - 1] }}\n </button>\n }\n </tui-push>\n } @else {\n <ng-container *polymorpheusOutlet=\"context.content\" />\n }\n</div>\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPortal} from '@taiga-ui/cdk/portals';\nimport {TuiPopupService} from '@taiga-ui/core/directives/popup';\n\nimport {TUI_PUSH_OPTIONS, type TuiPushOptions} from './push.options';\nimport {TuiPushAlert} from './push-alert.component';\n\n@Injectable({\n providedIn: 'root',\n deps: [TuiPopupService],\n useClass: TuiPushService,\n})\nexport class TuiPushService extends TuiPortal<TuiPushOptions, string> {\n protected override readonly options = inject(TUI_PUSH_OPTIONS);\n protected override readonly component = TuiPushAlert;\n}\n","import {DestroyRef, Directive, inject} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {TuiPushService} from './push.service';\n\n@Directive({\n selector: 'ng-template[tuiPush]',\n providers: [tuiAsPortal(TuiPushService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['open: tuiPush'],\n },\n ],\n})\nexport class TuiPushDirective {\n private readonly sub = inject(TuiPortalDirective).openChange.subscribe(() => {});\n\n constructor() {\n inject(DestroyRef).onDestroy(() => this.sub.unsubscribe());\n }\n}\n","import {TuiPushComponent} from './push.component';\nimport {TuiPushDirective} from './push.directive';\nimport {TuiPushAlert} from './push-alert.component';\n\nexport const TuiPush = [TuiPushComponent, TuiPushAlert, TuiPushDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;MAyBa,gBAAgB,CAAA;AAX7B,IAAA,WAAA,GAAA;QAYuB,IAAQ,CAAA,QAAA,GAAG,WAAW;AACtB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,cAAc,CAAC;AACnC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAG5C,IAAO,CAAA,OAAA,GAAG,EAAE;QAGZ,IAAI,CAAA,IAAA,GAAG,EAAE;QAGT,IAAK,CAAA,KAAA,GAAG,CAAC;QAGT,IAAS,CAAA,SAAA,GAAoB,EAAE;AAGtB,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,YAAY,EAAQ;AACnD;+GAnBY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,OAAA,E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CAAC,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAAA,IAAA,CAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAQ/B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAV5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,SAAS,EAAE,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;AACxC,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,kBAAkB;4BAC7B,MAAM,EAAE,CAAC,eAAe,CAAC;AAC5B,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;ACVY,MAAA,OAAO,GAAG,CAAC,gBAAgB,EAAE,YAAY,EAAE,gBAAgB;;ACJxE;;AAEG;;;;"}
@@ -1,4 +1,3 @@
1
- import { NgForOf } from '@angular/common';
2
1
  import * as i0 from '@angular/core';
3
2
  import { inject, computed, Input, ViewChildren, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
3
  import * as i1 from '@angular/forms';
@@ -38,15 +37,15 @@ class TuiRadioList extends TuiControl {
38
37
  ? item === null
39
38
  : this.identityMatcher(this.value(), item);
40
39
  }
41
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioList, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
42
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiRadioList, isStandalone: true, selector: "tui-radio-list", inputs: { items: "items", size: "size", identityMatcher: "identityMatcher", disabledItemHandler: "disabledItemHandler", itemContent: "itemContent" }, host: { listeners: { "focusout": "onFocusOut()" }, properties: { "attr.data-size": "size" } }, providers: [tuiAsControl(TuiRadioList)], viewQueries: [{ propertyName: "controls", predicate: NgControl, descendants: true }], usesInheritance: true, ngImport: i0, template: "<label\n *ngFor=\"let item of items; index as index\"\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n>\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n</label>\n", styles: ["tui-radio-list{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem 1.5rem;font:var(--tui-font-text-m)}tui-radio-list[data-size=s],tui-radio-list[data-size=s] [tuiTitle]{font:var(--tui-font-text-ui-s)}tui-radio-list[data-size=s] [tuiSubtitle],tui-radio-list[data-size=s] [tuiTitle] [tuiSubtitle]{font:var(--tui-font-text-xs)}tui-radio-list[data-size=s]>.t-item,tui-radio-list[data-size=s] [tuiTitle]>.t-item{gap:.5rem}tui-radio-list [tuiTitle]{font:var(--tui-font-text-m)}tui-radio-list [tuiSubtitle]{color:var(--tui-text-tertiary)}tui-radio-list>.t-item{display:flex;gap:.75rem}tui-radio-list>.t-item_disabled{opacity:var(--tui-disabled-opacity)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i2.TuiRadioComponent, selector: "input[type=\"radio\"][tuiRadio]", inputs: ["size"] }, { kind: "directive", type: i2.TuiRadioDirective, selector: "input[type=\"radio\"][tuiRadio][identityMatcher]", inputs: ["identityMatcher"] }, { kind: "directive", type: TuiValidator, selector: "[tuiValidator]", inputs: ["tuiValidator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
40
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioList, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
41
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiRadioList, isStandalone: true, selector: "tui-radio-list", inputs: { items: "items", size: "size", identityMatcher: "identityMatcher", disabledItemHandler: "disabledItemHandler", itemContent: "itemContent" }, host: { listeners: { "focusout": "onFocusOut()" }, properties: { "attr.data-size": "size" } }, providers: [tuiAsControl(TuiRadioList)], viewQueries: [{ propertyName: "controls", predicate: NgControl, descendants: true }], usesInheritance: true, ngImport: i0, template: "@for (item of items; track item) {\n <label\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n >\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n </label>\n}\n", styles: ["tui-radio-list{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem 1.5rem;font:var(--tui-font-text-m)}tui-radio-list[data-size=s],tui-radio-list[data-size=s] [tuiTitle]{font:var(--tui-font-text-ui-s)}tui-radio-list[data-size=s] [tuiSubtitle],tui-radio-list[data-size=s] [tuiTitle] [tuiSubtitle]{font:var(--tui-font-text-xs)}tui-radio-list[data-size=s]>.t-item,tui-radio-list[data-size=s] [tuiTitle]>.t-item{gap:.5rem}tui-radio-list [tuiTitle]{font:var(--tui-font-text-m)}tui-radio-list [tuiSubtitle]{color:var(--tui-text-tertiary)}tui-radio-list>.t-item{display:flex;gap:.75rem}tui-radio-list>.t-item_disabled{opacity:var(--tui-disabled-opacity)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: i2.TuiRadioComponent, selector: "input[type=\"radio\"][tuiRadio]", inputs: ["size"] }, { kind: "directive", type: i2.TuiRadioDirective, selector: "input[type=\"radio\"][tuiRadio][identityMatcher]", inputs: ["identityMatcher"] }, { kind: "directive", type: TuiValidator, selector: "[tuiValidator]", inputs: ["tuiValidator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
43
42
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioList, decorators: [{
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioList, decorators: [{
45
44
  type: Component,
46
- args: [{ selector: 'tui-radio-list', imports: [FormsModule, NgForOf, PolymorpheusOutlet, TuiRadio, TuiValidator], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsControl(TuiRadioList)], host: {
45
+ args: [{ selector: 'tui-radio-list', imports: [FormsModule, PolymorpheusOutlet, TuiRadio, TuiValidator], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsControl(TuiRadioList)], host: {
47
46
  '[attr.data-size]': 'size',
48
47
  '(focusout)': 'onFocusOut()',
49
- }, template: "<label\n *ngFor=\"let item of items; index as index\"\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n>\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n</label>\n", styles: ["tui-radio-list{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem 1.5rem;font:var(--tui-font-text-m)}tui-radio-list[data-size=s],tui-radio-list[data-size=s] [tuiTitle]{font:var(--tui-font-text-ui-s)}tui-radio-list[data-size=s] [tuiSubtitle],tui-radio-list[data-size=s] [tuiTitle] [tuiSubtitle]{font:var(--tui-font-text-xs)}tui-radio-list[data-size=s]>.t-item,tui-radio-list[data-size=s] [tuiTitle]>.t-item{gap:.5rem}tui-radio-list [tuiTitle]{font:var(--tui-font-text-m)}tui-radio-list [tuiSubtitle]{color:var(--tui-text-tertiary)}tui-radio-list>.t-item{display:flex;gap:.75rem}tui-radio-list>.t-item_disabled{opacity:var(--tui-disabled-opacity)}\n"] }]
48
+ }, template: "@for (item of items; track item) {\n <label\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n >\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n </label>\n}\n", styles: ["tui-radio-list{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem 1.5rem;font:var(--tui-font-text-m)}tui-radio-list[data-size=s],tui-radio-list[data-size=s] [tuiTitle]{font:var(--tui-font-text-ui-s)}tui-radio-list[data-size=s] [tuiSubtitle],tui-radio-list[data-size=s] [tuiTitle] [tuiSubtitle]{font:var(--tui-font-text-xs)}tui-radio-list[data-size=s]>.t-item,tui-radio-list[data-size=s] [tuiTitle]>.t-item{gap:.5rem}tui-radio-list [tuiTitle]{font:var(--tui-font-text-m)}tui-radio-list [tuiSubtitle]{color:var(--tui-text-tertiary)}tui-radio-list>.t-item{display:flex;gap:.75rem}tui-radio-list>.t-item_disabled{opacity:var(--tui-disabled-opacity)}\n"] }]
50
49
  }], propDecorators: { controls: [{
51
50
  type: ViewChildren,
52
51
  args: [NgControl]
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio-list.mjs","sources":["../../../projects/kit/components/radio-list/radio-list.component.ts","../../../projects/kit/components/radio-list/radio-list.template.html","../../../projects/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {NgForOf} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n type QueryList,\n ViewChildren,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule, NgControl, type ValidatorFn, Validators} from '@angular/forms';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {\n EMPTY_QUERY,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FALSE_HANDLER,\n} from '@taiga-ui/cdk/constants';\nimport {TuiValidator} from '@taiga-ui/cdk/directives/validator';\nimport {TuiIdService} from '@taiga-ui/cdk/services';\nimport {type TuiBooleanHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\nimport {type TuiSizeS, type TuiValueContentContext} from '@taiga-ui/core/types';\nimport {TuiRadio} from '@taiga-ui/kit/components/radio';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nconst ERROR: ValidatorFn = () => ({error: 'Invalid'});\n\n@Component({\n selector: 'tui-radio-list',\n imports: [FormsModule, NgForOf, PolymorpheusOutlet, TuiRadio, TuiValidator],\n templateUrl: './radio-list.template.html',\n styleUrls: ['./radio-list.style.less'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsControl(TuiRadioList)],\n host: {\n '[attr.data-size]': 'size',\n '(focusout)': 'onFocusOut()',\n },\n})\nexport class TuiRadioList<T> extends TuiControl<T> {\n @ViewChildren(NgControl)\n private readonly controls: QueryList<NgControl> = EMPTY_QUERY;\n\n private readonly id = inject(TuiIdService).generate();\n\n protected validator = computed(() =>\n this.invalid() ? ERROR : Validators.nullValidator,\n );\n\n @Input()\n public items: readonly T[] = [];\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<T> = TUI_FALSE_HANDLER;\n\n @Input()\n public itemContent: PolymorpheusContent<TuiValueContentContext<T>> = ({$implicit}) =>\n String($implicit);\n\n protected get name(): string {\n return `${this.control.name}-${this.id}`;\n }\n\n protected onFocusOut(): void {\n this.controls.forEach((control) => control.control?.markAsTouched());\n\n if (!this.touched()) {\n this.onTouched();\n }\n }\n\n protected itemIsActive(item: T): boolean {\n return this.value() === null\n ? item === null\n : this.identityMatcher(this.value(), item);\n }\n}\n","<label\n *ngFor=\"let item of items; index as index\"\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n>\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n</label>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAyBA,MAAM,KAAK,GAAgB,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;AAe/C,MAAO,YAAgB,SAAQ,UAAa,CAAA;AAblD,IAAA,WAAA,GAAA;;QAeqB,IAAA,CAAA,QAAQ,GAAyB,WAAW;QAE5C,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QAE3C,IAAA,CAA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xB,SAAS;+BACI,gBAAgB,EAAA,OAAA,EACjB,CAAC,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,CAAC,iBAG5D,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,YAAY,CAAA,YAAA,CAAc,CAAC,EAAA,IAAA,EACjC;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,YAAY,EAAE,cAAc;AAC/B,qBAAA,EAAA,QAAA,EAAA,wuBAAA,EAAA,MAAA,EAAA,CAAA,2pBAAA,CAAA,EAAA;8BAIgB,QAAQ,EAAA,CAAA;sBADxB,YAAY;uBAAC,SAAS;gBAUhB,KAAK,EAAA,CAAA;sBADX;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIM,eAAe,EAAA,CAAA;sBADrB;gBAIM,mBAAmB,EAAA,CAAA;sBADzB;gBAIM,WAAW,EAAA,CAAA;sBADjB;;;AE9DL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio-list.mjs","sources":["../../../projects/kit/components/radio-list/radio-list.component.ts","../../../projects/kit/components/radio-list/radio-list.template.html","../../../projects/kit/components/radio-list/taiga-ui-kit-components-radio-list.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n inject,\n Input,\n type QueryList,\n ViewChildren,\n ViewEncapsulation,\n} from '@angular/core';\nimport {FormsModule, NgControl, type ValidatorFn, Validators} from '@angular/forms';\nimport {tuiAsControl, TuiControl} from '@taiga-ui/cdk/classes';\nimport {\n EMPTY_QUERY,\n TUI_DEFAULT_IDENTITY_MATCHER,\n TUI_FALSE_HANDLER,\n} from '@taiga-ui/cdk/constants';\nimport {TuiValidator} from '@taiga-ui/cdk/directives/validator';\nimport {TuiIdService} from '@taiga-ui/cdk/services';\nimport {type TuiBooleanHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\nimport {type TuiSizeS, type TuiValueContentContext} from '@taiga-ui/core/types';\nimport {TuiRadio} from '@taiga-ui/kit/components/radio';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\nconst ERROR: ValidatorFn = () => ({error: 'Invalid'});\n\n@Component({\n selector: 'tui-radio-list',\n imports: [FormsModule, PolymorpheusOutlet, TuiRadio, TuiValidator],\n templateUrl: './radio-list.template.html',\n styleUrl: './radio-list.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsControl(TuiRadioList)],\n host: {\n '[attr.data-size]': 'size',\n '(focusout)': 'onFocusOut()',\n },\n})\nexport class TuiRadioList<T> extends TuiControl<T> {\n @ViewChildren(NgControl)\n private readonly controls: QueryList<NgControl> = EMPTY_QUERY;\n\n private readonly id = inject(TuiIdService).generate();\n\n protected validator = computed(() =>\n this.invalid() ? ERROR : Validators.nullValidator,\n );\n\n @Input()\n public items: readonly T[] = [];\n\n @Input()\n public size: TuiSizeS = 'm';\n\n @Input()\n public identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n @Input()\n public disabledItemHandler: TuiBooleanHandler<T> = TUI_FALSE_HANDLER;\n\n @Input()\n public itemContent: PolymorpheusContent<TuiValueContentContext<T>> = ({$implicit}) =>\n String($implicit);\n\n protected get name(): string {\n return `${this.control.name}-${this.id}`;\n }\n\n protected onFocusOut(): void {\n this.controls.forEach((control) => control.control?.markAsTouched());\n\n if (!this.touched()) {\n this.onTouched();\n }\n }\n\n protected itemIsActive(item: T): boolean {\n return this.value() === null\n ? item === null\n : this.identityMatcher(this.value(), item);\n }\n}\n","@for (item of items; track item) {\n <label\n class=\"t-item\"\n [class.t-item_disabled]=\"disabled() || disabledItemHandler(item)\"\n >\n <input\n tuiRadio\n type=\"radio\"\n [disabled]=\"disabled() || disabledItemHandler(item)\"\n [identityMatcher]=\"identityMatcher\"\n [name]=\"name\"\n [ngModel]=\"value()\"\n [ngModelOptions]=\"{standalone: true}\"\n [size]=\"size\"\n [tuiValidator]=\"validator()\"\n [value]=\"item\"\n (ngModelChange)=\"onChange($event)\"\n />\n <ng-container *polymorpheusOutlet=\"itemContent as text; context: {$implicit: item, active: itemIsActive(item)}\">\n {{ text }}\n </ng-container>\n </label>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAwBA,MAAM,KAAK,GAAgB,OAAO,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;AAe/C,MAAO,YAAgB,SAAQ,UAAa,CAAA;AAblD,IAAA,WAAA,GAAA;;QAeqB,IAAQ,CAAA,QAAA,GAAyB,WAAW;QAE5C,IAAE,CAAA,EAAA,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;QAE3C,IAAS,CAAA,SAAA,GAAG,QAAQ,CAAC,MAC3B,IAAI,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,UAAU,CAAC,aAAa,CACpD;QAGM,IAAK,CAAA,KAAA,GAAiB,EAAE;QAGxB,IAAI,CAAA,IAAA,GAAa,GAAG;QAGpB,IAAe,CAAA,eAAA,GAA0B,4BAA4B;QAGrE,IAAmB,CAAA,mBAAA,GAAyB,iBAAiB;AAG7D,QAAA,IAAA,CAAA,WAAW,GAAmD,CAAC,EAAC,SAAS,EAAC,KAC7E,MAAM,CAAC,SAAS,CAAC;AAmBxB;AAjBG,IAAA,IAAc,IAAI,GAAA;QACd,OAAO,CAAA,EAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAA,CAAA,EAAI,IAAI,CAAC,EAAE,CAAA,CAAE;;IAGlC,UAAU,GAAA;AAChB,QAAA,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;AAEpE,QAAA,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE;YACjB,IAAI,CAAC,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A,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAkB,8XAAY,YAAY,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAWxD,YAAY,EAAA,UAAA,EAAA,CAAA;kBAbxB,SAAS;+BACI,gBAAgB,EAAA,OAAA,EACjB,CAAC,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAA,aAAA,EAGnD,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,aACpC,CAAC,YAAY,CAAc,YAAA,CAAA,CAAC,EACjC,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC1B,wBAAA,YAAY,EAAE,cAAc;AAC/B,qBAAA,EAAA,QAAA,EAAA,izBAAA,EAAA,MAAA,EAAA,CAAA,2pBAAA,CAAA,EAAA;8BAIgB,QAAQ,EAAA,CAAA;sBADxB,YAAY;uBAAC,SAAS;gBAUhB,KAAK,EAAA,CAAA;sBADX;gBAIM,IAAI,EAAA,CAAA;sBADV;gBAIM,eAAe,EAAA,CAAA;sBADrB;gBAIM,mBAAmB,EAAA,CAAA;sBADzB;gBAIM,WAAW,EAAA,CAAA;sBADjB;;;AE7DL;;AAEG;;;;"}
@@ -1,51 +1,50 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, DestroyRef, ChangeDetectorRef, Input, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
2
+ import { inject, DestroyRef, input, ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
3
3
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { NgControl, RadioControlValueAccessor } from '@angular/forms';
4
+ import { NgControl, NgModel, RadioControlValueAccessor } from '@angular/forms';
5
5
  import * as i2 from '@taiga-ui/cdk/directives/native-validator';
6
6
  import { TuiNativeValidator } from '@taiga-ui/cdk/directives/native-validator';
7
- import { tuiWatch } from '@taiga-ui/cdk/observables';
7
+ import { tuiControlValue } from '@taiga-ui/cdk/observables';
8
8
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
9
- import { tuiProvideOptions, tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
10
9
  import * as i1 from '@taiga-ui/core/directives/appearance';
11
- import { TuiAppearance } from '@taiga-ui/core/directives/appearance';
10
+ import { tuiAppearance, TuiAppearance } from '@taiga-ui/core/directives/appearance';
11
+ import { distinctUntilChanged } from 'rxjs';
12
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
12
13
  import { TUI_DEFAULT_IDENTITY_MATCHER } from '@taiga-ui/cdk/constants';
13
14
 
14
- const TUI_RADIO_DEFAULT_OPTIONS = {
15
+ const [TUI_RADIO_OPTIONS, tuiRadioOptionsProvider] = tuiCreateOptions({
15
16
  size: 'm',
16
17
  appearance: ({ checked }) => (checked ? 'primary' : 'outline-grayscale'),
17
- };
18
- const TUI_RADIO_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_RADIO_OPTIONS' : '', {
19
- factory: () => TUI_RADIO_DEFAULT_OPTIONS,
20
18
  });
21
- function tuiRadioOptionsProvider(options) {
22
- return tuiProvideOptions(TUI_RADIO_OPTIONS, options, TUI_RADIO_DEFAULT_OPTIONS);
23
- }
24
19
 
25
20
  class TuiRadioComponent {
26
21
  constructor() {
27
- this.appearance = inject(TuiAppearance);
28
22
  this.destroyRef = inject(DestroyRef);
29
- this.cdr = inject(ChangeDetectorRef);
30
- this.options = inject(TUI_RADIO_OPTIONS);
31
23
  this.el = tuiInjectElement();
24
+ this.options = inject(TUI_RADIO_OPTIONS);
25
+ this.appearance = tuiAppearance(this.options.appearance(this.el));
32
26
  this.control = inject(NgControl, { self: true, optional: true });
33
- this.size = this.options.size;
27
+ this.size = input(this.options.size);
34
28
  }
35
29
  ngOnInit() {
36
- this.control?.valueChanges
37
- ?.pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))
38
- .subscribe();
30
+ tuiControlValue(this.control)
31
+ .pipe(distinctUntilChanged(), takeUntilDestroyed(this.destroyRef))
32
+ .subscribe((value) => {
33
+ // https://github.com/angular/angular/issues/14988
34
+ const fix = this.control instanceof NgModel && value == null
35
+ ? this.control.model
36
+ : value;
37
+ this.el.indeterminate = fix == null && this.el.matches('[tuiCheckbox]');
38
+ this.ngDoCheck();
39
+ });
39
40
  }
40
41
  ngDoCheck() {
41
- this.appearance.tuiAppearance = tuiIsString(this.options.appearance)
42
- ? this.options.appearance
43
- : this.options.appearance(this.el);
42
+ this.appearance.set(this.options.appearance(this.el));
44
43
  }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
46
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: TuiRadioComponent, isStandalone: true, selector: "input[type=\"radio\"][tuiRadio]", inputs: { size: "size" }, host: { properties: { "disabled": "!control || control.disabled", "attr.data-size": "size", "class._readonly": "!control" } }, hostDirectives: [{ directive: i1.TuiAppearance, inputs: ["tuiAppearanceState", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceFocus", "tuiAppearanceMode", "tuiAppearanceMode"] }, { directive: i2.TuiNativeValidator }], ngImport: i0, template: '', isInline: true, styles: ["[tuiRadio]{--t-size: 1.5rem;transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:var(--t-size);block-size:var(--t-size);cursor:pointer;margin:0;flex-shrink:0;border-radius:100%;color:var(--tui-text-primary-on-accent-1)}[tuiRadio]:disabled._readonly{opacity:1}[tuiRadio]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";margin:auto;border-radius:100%;background:currentColor;transform:scale(0);transition-property:transform}[tuiRadio]:checked:before{transform:scale(.5)}[tuiRadio][data-size=s]{--t-size: 1rem}[tuiRadio]:invalid:not([data-mode]),[tuiRadio][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
45
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: TuiRadioComponent, isStandalone: true, selector: "input[type=\"radio\"][tuiRadio]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "disabled": "!control || control.disabled", "attr.data-size": "size()", "class._readonly": "!control" } }, hostDirectives: [{ directive: i1.TuiAppearance, inputs: ["tuiAppearanceState", "tuiAppearanceState", "tuiAppearanceFocus", "tuiAppearanceFocus", "tuiAppearanceMode", "tuiAppearanceMode"] }, { directive: i2.TuiNativeValidator }], ngImport: i0, template: '', isInline: true, styles: ["[tuiRadio]{--t-size: 1.5rem;transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:var(--t-size);block-size:var(--t-size);cursor:pointer;margin:0;flex-shrink:0;border-radius:100%;color:var(--tui-text-primary-on-accent-1)}[tuiRadio]:disabled._readonly._readonly{opacity:1}[tuiRadio]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";margin:auto;border-radius:100%;background:currentColor;transform:scale(0);transition-property:transform}[tuiRadio]:checked:before{transform:scale(.5)}[tuiRadio][data-size=s]{--t-size: 1rem}[tuiRadio]:invalid:not([data-mode]),[tuiRadio][data-mode~=invalid]{color:#fff}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
47
46
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioComponent, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioComponent, decorators: [{
49
48
  type: Component,
50
49
  args: [{ standalone: true, selector: 'input[type="radio"][tuiRadio]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
51
50
  {
@@ -55,20 +54,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
55
54
  TuiNativeValidator,
56
55
  ], host: {
57
56
  '[disabled]': '!control || control.disabled',
58
- '[attr.data-size]': 'size',
57
+ '[attr.data-size]': 'size()',
59
58
  '[class._readonly]': '!control',
60
- }, styles: ["[tuiRadio]{--t-size: 1.5rem;transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:var(--t-size);block-size:var(--t-size);cursor:pointer;margin:0;flex-shrink:0;border-radius:100%;color:var(--tui-text-primary-on-accent-1)}[tuiRadio]:disabled._readonly{opacity:1}[tuiRadio]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";margin:auto;border-radius:100%;background:currentColor;transform:scale(0);transition-property:transform}[tuiRadio]:checked:before{transform:scale(.5)}[tuiRadio][data-size=s]{--t-size: 1rem}[tuiRadio]:invalid:not([data-mode]),[tuiRadio][data-mode~=invalid]{color:#fff}\n"] }]
61
- }], propDecorators: { size: [{
62
- type: Input
63
- }] } });
59
+ }, styles: ["[tuiRadio]{--t-size: 1.5rem;transition-property:background,box-shadow;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;inline-size:var(--t-size);block-size:var(--t-size);cursor:pointer;margin:0;flex-shrink:0;border-radius:100%;color:var(--tui-text-primary-on-accent-1)}[tuiRadio]:disabled._readonly._readonly{opacity:1}[tuiRadio]:before{position:absolute;top:0;left:0;bottom:0;right:0;content:\"\";margin:auto;border-radius:100%;background:currentColor;transform:scale(0);transition-property:transform}[tuiRadio]:checked:before{transform:scale(.5)}[tuiRadio][data-size=s]{--t-size: 1rem}[tuiRadio]:invalid:not([data-mode]),[tuiRadio][data-mode~=invalid]{color:#fff}\n"] }]
60
+ }] });
64
61
 
65
62
  class TuiRadioDirective {
66
63
  constructor() {
67
- this.identityMatcher = TUI_DEFAULT_IDENTITY_MATCHER;
64
+ this.identityMatcher = input(TUI_DEFAULT_IDENTITY_MATCHER);
68
65
  const accessor = inject(RadioControlValueAccessor);
69
66
  const writeValue = accessor.writeValue.bind(accessor);
70
67
  accessor.writeValue = (value) => {
71
- if (this.identityMatcher(value, accessor.value)) {
68
+ if (this.identityMatcher()(value, accessor.value)) {
72
69
  writeValue(accessor.value);
73
70
  }
74
71
  else {
@@ -76,18 +73,16 @@ class TuiRadioDirective {
76
73
  }
77
74
  };
78
75
  }
79
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
80
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.9", type: TuiRadioDirective, isStandalone: true, selector: "input[type=\"radio\"][tuiRadio][identityMatcher]", inputs: { identityMatcher: "identityMatcher" }, ngImport: i0 }); }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
77
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiRadioDirective, isStandalone: true, selector: "input[type=\"radio\"][tuiRadio][identityMatcher]", inputs: { identityMatcher: { classPropertyName: "identityMatcher", publicName: "identityMatcher", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
81
78
  }
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: TuiRadioDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRadioDirective, decorators: [{
83
80
  type: Directive,
84
81
  args: [{
85
82
  standalone: true,
86
83
  selector: 'input[type="radio"][tuiRadio][identityMatcher]',
87
84
  }]
88
- }], ctorParameters: () => [], propDecorators: { identityMatcher: [{
89
- type: Input
90
- }] } });
85
+ }], ctorParameters: () => [] });
91
86
 
92
87
  const TuiRadio = [TuiRadioComponent, TuiRadioDirective];
93
88
 
@@ -95,5 +90,5 @@ const TuiRadio = [TuiRadioComponent, TuiRadioDirective];
95
90
  * Generated bundle index. Do not edit.
96
91
  */
97
92
 
98
- export { TUI_RADIO_DEFAULT_OPTIONS, TUI_RADIO_OPTIONS, TuiRadio, TuiRadioComponent, TuiRadioDirective, tuiRadioOptionsProvider };
93
+ export { TUI_RADIO_OPTIONS, TuiRadio, TuiRadioComponent, TuiRadioDirective, tuiRadioOptionsProvider };
99
94
  //# sourceMappingURL=taiga-ui-kit-components-radio.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-radio.mjs","sources":["../../../projects/kit/components/radio/radio.options.ts","../../../projects/kit/components/radio/radio.component.ts","../../../projects/kit/components/radio/radio.directive.ts","../../../projects/kit/components/radio/radio.ts","../../../projects/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiRadioOptions {\n readonly appearance: TuiStringHandler<HTMLInputElement> | string;\n readonly size: TuiSizeS;\n}\n\nexport const TUI_RADIO_DEFAULT_OPTIONS: TuiRadioOptions = {\n size: 'm',\n appearance: ({checked}) => (checked ? 'primary' : 'outline-grayscale'),\n};\n\nexport const TUI_RADIO_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_RADIO_OPTIONS' : '',\n {\n factory: () => TUI_RADIO_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiRadioOptionsProvider(options: Partial<TuiRadioOptions>): Provider {\n return tuiProvideOptions(TUI_RADIO_OPTIONS, options, TUI_RADIO_DEFAULT_OPTIONS);\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n type DoCheck,\n inject,\n Input,\n type OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {NgControl} from '@angular/forms';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiWatch} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_RADIO_OPTIONS} from './radio.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"radio\"][tuiRadio]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/radio.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TuiAppearance,\n inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],\n },\n TuiNativeValidator,\n ],\n host: {\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size',\n '[class._readonly]': '!control',\n },\n})\nexport class TuiRadioComponent implements DoCheck, OnInit {\n private readonly appearance = inject(TuiAppearance);\n private readonly destroyRef = inject(DestroyRef);\n private readonly cdr = inject(ChangeDetectorRef);\n private readonly options = inject(TUI_RADIO_OPTIONS);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n\n protected readonly control = inject(NgControl, {self: true, optional: true});\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n public ngOnInit(): void {\n this.control?.valueChanges\n ?.pipe(tuiWatch(this.cdr), takeUntilDestroyed(this.destroyRef))\n .subscribe();\n }\n\n public ngDoCheck(): void {\n this.appearance.tuiAppearance = tuiIsString(this.options.appearance)\n ? this.options.appearance\n : this.options.appearance(this.el);\n }\n}\n","import {Directive, inject, Input} from '@angular/core';\nimport {RadioControlValueAccessor} from '@angular/forms';\nimport {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: 'input[type=\"radio\"][tuiRadio][identityMatcher]',\n})\nexport class TuiRadioDirective<T> {\n @Input()\n public identityMatcher: TuiIdentityMatcher<T> = TUI_DEFAULT_IDENTITY_MATCHER;\n\n constructor() {\n const accessor = inject(RadioControlValueAccessor);\n const writeValue = accessor.writeValue.bind(accessor);\n\n accessor.writeValue = (value: T) => {\n if (this.identityMatcher(value, accessor.value)) {\n writeValue(accessor.value);\n } else {\n writeValue(value);\n }\n };\n }\n}\n","import {TuiRadioComponent} from './radio.component';\nimport {TuiRadioDirective} from './radio.directive';\n\nexport const TuiRadio = [TuiRadioComponent, TuiRadioDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAUO,MAAM,yBAAyB,GAAoB;AACtD,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,UAAU,EAAE,CAAC,EAAC,OAAO,EAAC,MAAM,OAAO,GAAG,SAAS,GAAG,mBAAmB,CAAC;;AAGnE,MAAM,iB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AC;AAErD,QAAA,QAAQ,CAAC,UAAU,GAAG,CAAC,KAAQ,KAAI;YAC/B,IAAI,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7C,gBAAA,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;YAC9B;iBAAO;gBACH,UAAU,CAAC,KAAK,CAAC;YACrB;AACJ,QAAA,CAAC;IACL;8GAfS,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kDAAA,EAAA,MAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAJ7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gDAAgD;AAC7D,iBAAA;wDAGU,eAAe,EAAA,CAAA;sBADrB;;;MCPQ,QAAQ,GAAG,CAAC,iBAAiB,EAAE,iBAAiB;;ACH7D;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-radio.mjs","sources":["../../../projects/kit/components/radio/radio.options.ts","../../../projects/kit/components/radio/radio.component.ts","../../../projects/kit/components/radio/radio.directive.ts","../../../projects/kit/components/radio/radio.ts","../../../projects/kit/components/radio/taiga-ui-kit-components-radio.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiRadioOptions {\n readonly appearance: TuiStringHandler<HTMLInputElement>;\n readonly size: TuiSizeS;\n}\n\nexport const [TUI_RADIO_OPTIONS, tuiRadioOptionsProvider] =\n tuiCreateOptions<TuiRadioOptions>({\n size: 'm',\n appearance: ({checked}) => (checked ? 'primary' : 'outline-grayscale'),\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n type DoCheck,\n inject,\n input,\n type OnInit,\n ViewEncapsulation,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {NgControl, NgModel} from '@angular/forms';\nimport {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator';\nimport {tuiControlValue} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiAppearance, tuiAppearance} from '@taiga-ui/core/directives/appearance';\nimport {distinctUntilChanged} from 'rxjs';\n\nimport {TUI_RADIO_OPTIONS, type TuiRadioOptions} from './radio.options';\n\n@Component({\n standalone: true,\n selector: 'input[type=\"radio\"][tuiRadio]',\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/radio.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: TuiAppearance,\n inputs: ['tuiAppearanceState', 'tuiAppearanceFocus', 'tuiAppearanceMode'],\n },\n TuiNativeValidator,\n ],\n host: {\n '[disabled]': '!control || control.disabled',\n '[attr.data-size]': 'size()',\n '[class._readonly]': '!control',\n },\n})\nexport class TuiRadioComponent<T extends TuiRadioOptions> implements DoCheck, OnInit {\n private readonly destroyRef = inject(DestroyRef);\n private readonly el = tuiInjectElement<HTMLInputElement>();\n\n protected readonly options = inject<T>(TUI_RADIO_OPTIONS);\n protected readonly appearance = tuiAppearance(this.options.appearance(this.el));\n protected readonly control = inject(NgControl, {self: true, optional: true});\n\n public readonly size = input(this.options.size);\n\n public ngOnInit(): void {\n tuiControlValue(this.control)\n .pipe(distinctUntilChanged(), takeUntilDestroyed(this.destroyRef))\n .subscribe((value) => {\n // https://github.com/angular/angular/issues/14988\n const fix =\n this.control instanceof NgModel && value == null\n ? this.control.model\n : value;\n\n this.el.indeterminate = fix == null && this.el.matches('[tuiCheckbox]');\n this.ngDoCheck();\n });\n }\n\n public ngDoCheck(): void {\n this.appearance.set(this.options.appearance(this.el));\n }\n}\n","import {Directive, inject, input} from '@angular/core';\nimport {RadioControlValueAccessor} from '@angular/forms';\nimport {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk/constants';\nimport {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: 'input[type=\"radio\"][tuiRadio][identityMatcher]',\n})\nexport class TuiRadioDirective<T> {\n public readonly identityMatcher = input<TuiIdentityMatcher<T>>(\n TUI_DEFAULT_IDENTITY_MATCHER,\n );\n\n constructor() {\n const accessor = inject(RadioControlValueAccessor);\n const writeValue = accessor.writeValue.bind(accessor);\n\n accessor.writeValue = (value: T) => {\n if (this.identityMatcher()(value, accessor.value)) {\n writeValue(accessor.value);\n } else {\n writeValue(value);\n }\n };\n }\n}\n","import {TuiRadioComponent} from './radio.component';\nimport {TuiRadioDirective} from './radio.directive';\n\nexport const TuiRadio = [TuiRadioComponent, TuiRadioDirective] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;MASa,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,GACrD,gBAAgB,CAAkB;AAC9B,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,UAAU,EAAE,CAAC,EAAC,OAAO,EAAC,MAAM,OAAO,GAAG,SAAS,GAAG,mBAAmB,CAAC;AACzE,CAAA;;MC2BQ,iBAAiB,CAAA;AApB9B,IAAA,WAAA,GAAA;AAqBqB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QAC/B,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB;AAEvC,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAI,iBAAiB,CAAC;AACtC,QAAA,IAAA,CAAA,UAAU,GA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