@taiga-ui/kit 4.52.0-canary.e444d19 → 4.52.0-canary.e53e79e

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 (447) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +13 -0
  3. package/components/accordion/accordion.d.ts +4 -4
  4. package/components/accordion/accordion.directive.d.ts +11 -10
  5. package/components/accordion/index.d.ts +1 -3
  6. package/components/action-bar/action-bar.component.d.ts +5 -7
  7. package/components/action-bar/index.d.ts +0 -2
  8. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  9. package/components/avatar/avatar.directive.d.ts +15 -0
  10. package/components/avatar/avatar.options.d.ts +1 -4
  11. package/components/avatar/index.d.ts +1 -1
  12. package/components/badge/badge.directive.d.ts +2 -2
  13. package/components/badge/badge.options.d.ts +1 -3
  14. package/components/badge-notification/badge-notification.options.d.ts +1 -3
  15. package/components/block/block.directive.d.ts +4 -4
  16. package/components/block/block.options.d.ts +2 -4
  17. package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
  18. package/components/calendar-month/calendar-month.component.d.ts +1 -1
  19. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  20. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  21. package/components/checkbox/checkbox.component.d.ts +7 -18
  22. package/components/checkbox/checkbox.options.d.ts +5 -9
  23. package/components/chip/chip.directive.d.ts +2 -4
  24. package/components/chip/chip.options.d.ts +1 -3
  25. package/components/combo-box/combo-box.d.ts +5 -0
  26. package/components/combo-box/combo-box.directive.d.ts +5 -5
  27. package/components/combo-box/index.d.ts +1 -0
  28. package/components/comment/comment.directive.d.ts +2 -2
  29. package/components/confirm/confirm.component.d.ts +5 -3
  30. package/components/confirm/confirm.service.d.ts +3 -2
  31. package/{directives → components}/copy/copy.component.d.ts +2 -2
  32. package/{directives → components}/copy/copy.directive.d.ts +4 -6
  33. package/{directives → components}/copy/copy.options.d.ts +2 -2
  34. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +4 -2
  35. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  36. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  37. package/components/data-list-wrapper/index.d.ts +1 -1
  38. package/components/elastic-container/elastic-container.component.d.ts +1 -1
  39. package/components/files/file/file.options.d.ts +2 -2
  40. package/components/files/files/files.component.d.ts +2 -2
  41. package/components/files/input-files/input-files.options.d.ts +1 -3
  42. package/components/floating-container/floating-container.directive.d.ts +3 -2
  43. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  44. package/components/fullscreen/index.d.ts +1 -0
  45. package/components/index.d.ts +3 -2
  46. package/components/input-chip/input-chip.component.d.ts +9 -8
  47. package/components/input-chip/input-chip.d.ts +5 -1
  48. package/components/input-chip/input-chip.directive.d.ts +7 -12
  49. package/components/input-chip/input-chip.options.d.ts +1 -1
  50. package/components/input-color/index.d.ts +1 -0
  51. package/components/input-color/input-color.component.d.ts +6 -6
  52. package/components/input-color/input-color.d.ts +5 -0
  53. package/components/input-color/input-color.options.d.ts +1 -1
  54. package/components/input-date/input-date.d.ts +4 -1
  55. package/components/input-date/input-date.directive.d.ts +10 -12
  56. package/components/input-date/input-date.options.d.ts +1 -1
  57. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  58. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  59. package/components/input-date-range/input-date-range.d.ts +4 -1
  60. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  61. package/components/input-date-time/input-date-time.d.ts +4 -1
  62. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  63. package/components/input-month/input-month.d.ts +4 -1
  64. package/components/input-month/input-month.directive.d.ts +5 -4
  65. package/components/input-month-range/input-month-range.d.ts +4 -1
  66. package/components/input-month-range/input-month-range.directive.d.ts +5 -4
  67. package/components/input-number/input-number.d.ts +4 -1
  68. package/components/input-number/input-number.directive.d.ts +7 -11
  69. package/components/input-number/input-number.options.d.ts +1 -1
  70. package/components/input-number/quantum.directive.d.ts +1 -1
  71. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  72. package/components/input-phone/index.d.ts +1 -0
  73. package/components/input-phone/input-phone.d.ts +5 -0
  74. package/components/input-phone/input-phone.directive.d.ts +7 -7
  75. package/components/input-phone/input-phone.options.d.ts +1 -1
  76. package/components/input-phone-international/index.d.ts +1 -0
  77. package/components/input-phone-international/input-phone-international.component.d.ts +26 -32
  78. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  79. package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
  80. package/components/input-pin/index.d.ts +1 -0
  81. package/components/input-pin/input-pin.component.d.ts +4 -4
  82. package/components/input-pin/input-pin.d.ts +5 -0
  83. package/components/input-range/input-range.component.d.ts +9 -12
  84. package/components/input-slider/input-slider.d.ts +4 -1
  85. package/components/input-slider/input-slider.directive.d.ts +3 -5
  86. package/components/input-time/input-time.component.d.ts +1 -3
  87. package/components/input-time/input-time.d.ts +4 -1
  88. package/components/input-time/input-time.directive.d.ts +8 -10
  89. package/components/input-time/input-time.options.d.ts +1 -1
  90. package/components/input-year/input-year.d.ts +4 -1
  91. package/components/input-year/input-year.directive.d.ts +5 -5
  92. package/components/like/like.component.d.ts +4 -11
  93. package/components/like/like.options.d.ts +4 -5
  94. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  95. package/components/line-clamp/line-clamp.component.d.ts +8 -10
  96. package/components/line-clamp/line-clamp.options.d.ts +1 -3
  97. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +6 -8
  98. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  99. package/components/notification-middle/notification-middle.component.d.ts +2 -2
  100. package/components/notification-middle/notification-middle.directive.d.ts +4 -3
  101. package/components/notification-middle/notification-middle.service.d.ts +7 -3
  102. package/components/pager/pager.component.d.ts +1 -1
  103. package/components/pagination/index.d.ts +1 -0
  104. package/components/pagination/pagination.component.d.ts +25 -54
  105. package/components/pagination/pagination.options.d.ts +7 -0
  106. package/components/pin/pin.directive.d.ts +2 -2
  107. package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
  108. package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
  109. package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
  110. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  111. package/components/preview/preview.component.d.ts +1 -1
  112. package/components/preview/preview.d.ts +2 -1
  113. package/components/preview/zoom/preview-zoom.component.d.ts +2 -1
  114. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  115. package/components/progress/progress-bar/progress-color-segments.directive.d.ts +4 -4
  116. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  117. package/components/progress/progress.options.d.ts +1 -3
  118. package/components/push/push-alert.component.d.ts +4 -3
  119. package/components/push/push.component.d.ts +2 -2
  120. package/components/push/push.directive.d.ts +4 -6
  121. package/components/push/push.options.d.ts +5 -8
  122. package/components/push/push.service.d.ts +6 -2
  123. package/components/radio/radio.component.d.ts +8 -9
  124. package/components/radio/radio.directive.d.ts +2 -2
  125. package/components/radio/radio.options.d.ts +2 -5
  126. package/components/radio-list/radio-list.component.d.ts +5 -3
  127. package/components/range/range-change.directive.d.ts +1 -2
  128. package/components/range/range.component.d.ts +16 -24
  129. package/components/rating/rating.component.d.ts +5 -5
  130. package/components/rating/rating.options.d.ts +6 -6
  131. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  132. package/components/segmented/segmented.component.d.ts +5 -9
  133. package/components/segmented/segmented.directive.d.ts +6 -7
  134. package/components/select/native-select/native-select.component.d.ts +7 -8
  135. package/components/select/select.d.ts +4 -1
  136. package/components/select/select.directive.d.ts +4 -3
  137. package/components/slider/helpers/key-steps.d.ts +1 -2
  138. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  139. package/components/slider/slider.options.d.ts +1 -6
  140. package/components/slides/slides.directive.d.ts +4 -4
  141. package/components/status/status.directive.d.ts +2 -2
  142. package/components/stepper/step.component.d.ts +6 -8
  143. package/components/stepper/stepper.component.d.ts +6 -11
  144. package/components/switch/switch.component.d.ts +8 -19
  145. package/components/switch/switch.options.d.ts +4 -8
  146. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  147. package/components/tabs/tabs.options.d.ts +1 -6
  148. package/components/textarea/index.d.ts +2 -1
  149. package/components/textarea/textarea.component.d.ts +4 -4
  150. package/components/textarea/textarea.d.ts +6 -0
  151. package/components/textarea/textarea.directive.d.ts +13 -0
  152. package/components/textarea/textarea.options.d.ts +1 -1
  153. package/components/toast/index.d.ts +5 -0
  154. package/components/toast/toast.component.d.ts +18 -0
  155. package/components/toast/toast.d.ts +3 -0
  156. package/components/toast/toast.directive.d.ts +7 -0
  157. package/components/toast/toast.options.d.ts +10 -0
  158. package/components/toast/toast.service.d.ts +17 -0
  159. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +8 -1
  160. package/components/tree/misc/tree.constants.d.ts +0 -3
  161. package/components/tree/misc/tree.tokens.d.ts +1 -6
  162. package/directives/button-close/button-close.directive.d.ts +2 -1
  163. package/directives/button-select/button-select.directive.d.ts +4 -4
  164. package/directives/chevron/chevron.directive.d.ts +2 -3
  165. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  166. package/directives/fade/fade.directive.d.ts +2 -2
  167. package/directives/fluid-typography/fluid-typography.directive.d.ts +3 -6
  168. package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
  169. package/directives/highlight/highlight.directive.d.ts +1 -3
  170. package/directives/index.d.ts +0 -2
  171. package/directives/password/password.directive.d.ts +1 -1
  172. package/directives/password/password.options.d.ts +1 -1
  173. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  174. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  175. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  176. package/directives/tooltip/tooltip.directive.d.ts +3 -3
  177. package/directives/tooltip/tooltip.options.d.ts +1 -4
  178. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  179. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  180. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +24 -40
  181. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  182. package/fesm2022/taiga-ui-kit-components-avatar.mjs +62 -80
  183. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  184. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +7 -12
  185. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  186. package/fesm2022/taiga-ui-kit-components-badge.mjs +16 -27
  187. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  188. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -7
  189. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  190. package/fesm2022/taiga-ui-kit-components-block.mjs +20 -31
  191. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  192. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +12 -18
  193. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  194. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +6 -6
  195. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  196. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -17
  197. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  198. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +7 -8
  199. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  200. package/fesm2022/taiga-ui-kit-components-carousel.mjs +17 -23
  201. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +18 -76
  203. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-chip.mjs +25 -34
  205. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +42 -32
  207. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  209. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-compass.mjs +5 -5
  211. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -17
  213. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-copy.mjs +113 -0
  215. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  216. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +25 -78
  217. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  218. package/fesm2022/taiga-ui-kit-components-drawer.mjs +5 -5
  219. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  220. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -12
  221. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  222. package/fesm2022/taiga-ui-kit-components-files.mjs +43 -50
  223. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  224. package/fesm2022/taiga-ui-kit-components-filter.mjs +5 -5
  225. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  226. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +16 -19
  227. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  228. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  229. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  230. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +79 -79
  231. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  232. package/fesm2022/taiga-ui-kit-components-input-color.mjs +28 -19
  233. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  234. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +35 -52
  235. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  236. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +27 -32
  237. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  238. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +32 -29
  239. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  240. package/fesm2022/taiga-ui-kit-components-input-date.mjs +45 -48
  241. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  242. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -5
  243. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  244. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +25 -19
  245. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  246. package/fesm2022/taiga-ui-kit-components-input-month.mjs +28 -22
  247. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  248. package/fesm2022/taiga-ui-kit-components-input-number.mjs +60 -77
  249. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +122 -138
  251. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +32 -23
  253. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +20 -11
  255. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  256. package/fesm2022/taiga-ui-kit-components-input-range.mjs +33 -29
  257. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  258. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +36 -45
  259. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  260. package/fesm2022/taiga-ui-kit-components-input-time.mjs +65 -71
  261. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  262. package/fesm2022/taiga-ui-kit-components-input-year.mjs +27 -19
  263. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  264. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +14 -16
  265. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  267. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -82
  269. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  270. package/fesm2022/taiga-ui-kit-components-message.mjs +9 -12
  271. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  272. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +37 -48
  273. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  274. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +37 -33
  275. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  276. package/fesm2022/taiga-ui-kit-components-pager.mjs +7 -9
  277. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  278. package/fesm2022/taiga-ui-kit-components-pagination.mjs +69 -140
  279. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  280. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  281. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  282. package/fesm2022/taiga-ui-kit-components-preview.mjs +59 -50
  283. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  284. package/fesm2022/taiga-ui-kit-components-progress.mjs +76 -81
  285. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  286. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  287. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  288. package/fesm2022/taiga-ui-kit-components-push.mjs +49 -57
  289. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  290. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  291. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  292. package/fesm2022/taiga-ui-kit-components-radio.mjs +35 -41
  293. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  294. package/fesm2022/taiga-ui-kit-components-range.mjs +41 -85
  295. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  296. package/fesm2022/taiga-ui-kit-components-rating.mjs +19 -28
  297. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  298. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +11 -7
  299. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  300. package/fesm2022/taiga-ui-kit-components-segmented.mjs +32 -59
  301. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  302. package/fesm2022/taiga-ui-kit-components-select.mjs +82 -62
  303. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-components-slider.mjs +74 -82
  305. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-components-slides.mjs +16 -24
  307. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  308. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  309. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  310. package/fesm2022/taiga-ui-kit-components-stepper.mjs +45 -79
  311. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  312. package/fesm2022/taiga-ui-kit-components-switch.mjs +22 -64
  313. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  314. package/fesm2022/taiga-ui-kit-components-tabs.mjs +36 -47
  315. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  316. package/fesm2022/taiga-ui-kit-components-textarea.mjs +54 -62
  317. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  318. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -15
  319. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  320. package/fesm2022/taiga-ui-kit-components-toast.mjs +164 -0
  321. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  322. package/fesm2022/taiga-ui-kit-components-tree.mjs +59 -63
  323. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  324. package/fesm2022/taiga-ui-kit-components.mjs +3 -2
  325. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  326. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +15 -7
  327. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  328. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +9 -12
  329. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  330. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +20 -19
  331. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  332. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +16 -22
  333. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  334. package/fesm2022/taiga-ui-kit-directives-connected.mjs +9 -15
  335. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  336. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -53
  337. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  338. package/fesm2022/taiga-ui-kit-directives-fade.mjs +15 -17
  339. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  340. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +14 -27
  341. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  342. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -4
  343. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  344. package/fesm2022/taiga-ui-kit-directives-password.mjs +14 -16
  345. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  346. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -4
  347. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  348. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  349. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  350. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  351. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  352. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +28 -38
  353. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  354. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +17 -22
  355. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  356. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -8
  357. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  358. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -5
  359. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  360. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  361. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  362. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  363. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  364. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -4
  365. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  366. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -25
  367. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  368. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +31 -0
  369. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  370. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -5
  371. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  372. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  373. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  374. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -5
  375. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  376. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -4
  377. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  378. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -4
  379. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  380. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -1
  381. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  382. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -25
  383. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  384. package/fesm2022/taiga-ui-kit-utils.mjs +2 -8
  385. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  386. package/package.json +53 -49
  387. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  388. package/pipes/auto-color/index.d.ts +1 -0
  389. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  390. package/pipes/flag/flag.pipe.d.ts +14 -0
  391. package/pipes/flag/index.d.ts +1 -0
  392. package/pipes/index.d.ts +3 -1
  393. package/pipes/initials/index.d.ts +1 -0
  394. package/pipes/initials/initials.pipe.d.ts +7 -0
  395. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  396. package/styles/components/avatar.less +188 -0
  397. package/styles/components/badge.less +1 -0
  398. package/styles/components/checkbox.less +14 -12
  399. package/styles/components/chip.less +12 -3
  400. package/styles/components/like.less +4 -9
  401. package/styles/components/pin.less +3 -7
  402. package/styles/components/radio.less +1 -1
  403. package/styles/components/switch.less +9 -9
  404. package/styles/components/toast.less +44 -0
  405. package/tokens/i18n.d.ts +25 -26
  406. package/tokens/index.d.ts +0 -1
  407. package/tokens/input-date-options.d.ts +1 -1
  408. package/tokens/items-handlers.d.ts +1 -7
  409. package/tokens/preview-icons.d.ts +1 -3
  410. package/utils/index.d.ts +0 -1
  411. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  412. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  413. package/components/accordion/accordion-item.component.d.ts +0 -25
  414. package/components/action-bar/action-bar.d.ts +0 -3
  415. package/components/action-bar/action-bar.directive.d.ts +0 -6
  416. package/components/avatar/avatar.component.d.ts +0 -15
  417. package/components/input-password/index.d.ts +0 -2
  418. package/components/input-password/input-password.component.d.ts +0 -16
  419. package/components/input-password/input-password.options.d.ts +0 -24
  420. package/components/pdf-viewer/index.d.ts +0 -4
  421. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  422. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  423. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  424. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  425. package/components/textarea/textarea-limit.directive.d.ts +0 -27
  426. package/directives/lazy-loading/index.d.ts +0 -2
  427. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  428. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  429. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -95
  430. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  431. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  432. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  433. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -64
  434. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
  435. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -121
  436. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  437. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -81
  438. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  439. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  440. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  441. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  442. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  443. package/pipes/field-error/index.d.ts +0 -2
  444. package/tokens/validation-errors.d.ts +0 -5
  445. package/utils/phone.d.ts +0 -3
  446. /package/{directives → components}/copy/copy.d.ts +0 -0
  447. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -0,0 +1,164 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, inject, Directive, viewChild, ElementRef, InjectionToken, Injectable, input } from '@angular/core';
3
+ import { TUI_PLATFORM, TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
4
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
5
+ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
6
+ import { tuiButtonOptionsProvider, TuiButton } from '@taiga-ui/core/components/button';
7
+ import * as i1 from '@taiga-ui/core/directives/icons';
8
+ import { TuiWithIcons } from '@taiga-ui/core/directives/icons';
9
+ import { TUI_ICON_END, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
10
+ import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
11
+ import { tuiBadgeOptionsProvider } from '@taiga-ui/kit/components/badge';
12
+ import * as i1$2 from '@taiga-ui/cdk/portals';
13
+ import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
14
+ import * as i2 from '@taiga-ui/core/portals/alert';
15
+ import { TuiAlertDirective, TuiAlertService } from '@taiga-ui/core/portals/alert';
16
+ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
17
+ import * as i1$1 from '@taiga-ui/cdk/directives/animated';
18
+ import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
19
+ import { TuiSwipe } from '@taiga-ui/cdk/directives/swipe';
20
+ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
21
+ import { of, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat } from 'rxjs';
22
+ import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
23
+
24
+ class Styles {
25
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.16", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-toast" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiToast]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-font-text-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;overflow:hidden}[tuiToast]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]>*,[tuiToast]:after,[tuiToast]:before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast] [tuiAvatar]{margin-inline-end:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
27
+ }
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: Styles, decorators: [{
29
+ type: Component,
30
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-toast' }, styles: ["[tuiToast]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-font-text-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;overflow:hidden}[tuiToast]:is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]>*,[tuiToast]:after,[tuiToast]:before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast] [tuiAvatar]{margin-inline-end:0}\n"] }]
31
+ }] });
32
+ class TuiToastDirective {
33
+ constructor() {
34
+ this.nothing = tuiWithStyles(Styles);
35
+ }
36
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiToastDirective, isStandalone: true, selector: "[tuiToast]:not(ng-template)", providers: [
38
+ tuiBadgeOptionsProvider({ size: 'l' }),
39
+ tuiAvatarOptionsProvider(() => ({
40
+ size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',
41
+ })),
42
+ tuiButtonOptionsProvider(() => ({
43
+ size: 's',
44
+ appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
45
+ })),
46
+ {
47
+ provide: TUI_ICON_END,
48
+ useFactory: () => tuiInjectElement().matches('a, button')
49
+ ? inject(TUI_COMMON_ICONS).more
50
+ : '',
51
+ },
52
+ ], hostDirectives: [{ directive: i1.TuiWithIcons }], ngImport: i0 }); }
53
+ }
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastDirective, decorators: [{
55
+ type: Directive,
56
+ args: [{
57
+ selector: '[tuiToast]:not(ng-template)',
58
+ providers: [
59
+ tuiBadgeOptionsProvider({ size: 'l' }),
60
+ tuiAvatarOptionsProvider(() => ({
61
+ size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',
62
+ })),
63
+ tuiButtonOptionsProvider(() => ({
64
+ size: 's',
65
+ appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
66
+ })),
67
+ {
68
+ provide: TUI_ICON_END,
69
+ useFactory: () => tuiInjectElement().matches('a, button')
70
+ ? inject(TUI_COMMON_ICONS).more
71
+ : '',
72
+ },
73
+ ],
74
+ hostDirectives: [TuiWithIcons],
75
+ }]
76
+ }] });
77
+
78
+ class TuiToastComponent {
79
+ constructor() {
80
+ this.close = viewChild(TuiButton, { read: ElementRef });
81
+ this.el = tuiInjectElement();
82
+ this.isMobile = inject(TUI_IS_MOBILE);
83
+ this.context = injectContext();
84
+ this.icons = inject(TUI_COMMON_ICONS);
85
+ this.$ = of(this.context.autoClose)
86
+ .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
87
+ .subscribe(() => this.context.$implicit.complete());
88
+ }
89
+ ngAfterViewInit() {
90
+ if (this.close()) {
91
+ this.el.querySelector('[tuiToast]')?.appendChild(this.close()?.nativeElement);
92
+ }
93
+ }
94
+ onSwipe() {
95
+ if (this.context.closable) {
96
+ this.context.$implicit.complete();
97
+ }
98
+ }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
100
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiToastComponent, isStandalone: true, selector: "tui-toast", host: { attributes: { "role": "status" }, properties: { "class._mobile": "isMobile", "attr.data-appearance": "context.appearance" } }, viewQueries: [{ propertyName: "close", first: true, predicate: TuiButton, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1$1.TuiAnimated }, { directive: i2.TuiAlertDirective }], ngImport: i0, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 2rem;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\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: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: TuiToastDirective, selector: "[tuiToast]:not(ng-template)" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastComponent, decorators: [{
103
+ type: Component,
104
+ args: [{ selector: 'tui-toast', imports: [PolymorpheusOutlet, TuiButton, TuiSwipe, TuiToastDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated, TuiAlertDirective], host: {
105
+ role: 'status',
106
+ '[class._mobile]': 'isMobile',
107
+ '[attr.data-appearance]': 'context.appearance',
108
+ }, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 2rem;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"] }]
109
+ }] });
110
+
111
+ const TUI_TOAST_CONCURRENCY = new InjectionToken(ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '', { factory: () => (inject(TUI_IS_MOBILE) ? 1 : 2) });
112
+ const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions({
113
+ appearance: '',
114
+ autoClose: 5000,
115
+ closable: true,
116
+ block: 'start',
117
+ inline: 'center',
118
+ });
119
+
120
+ class TuiToastService extends TuiAlertService {
121
+ constructor() {
122
+ super(inject(TUI_TOAST_CONCURRENCY));
123
+ this.options = inject(TUI_TOAST_OPTIONS);
124
+ this.component = TuiToastComponent;
125
+ }
126
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
127
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastService, providedIn: 'root' }); }
128
+ }
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastService, decorators: [{
130
+ type: Injectable,
131
+ args: [{
132
+ providedIn: 'root',
133
+ }]
134
+ }], ctorParameters: () => [] });
135
+ class TuiToastTemplate {
136
+ constructor() {
137
+ this.tuiToastOptions = input({});
138
+ }
139
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
140
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.16", type: TuiToastTemplate, isStandalone: true, selector: "ng-template[tuiToast]", inputs: { tuiToastOptions: { classPropertyName: "tuiToastOptions", publicName: "tuiToastOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiToastService)], hostDirectives: [{ directive: i1$2.TuiPortalDirective, inputs: ["options", "tuiToastOptions", "open", "tuiToast"], outputs: ["openChange", "tuiToastChange"] }], ngImport: i0 }); }
141
+ }
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiToastTemplate, decorators: [{
143
+ type: Directive,
144
+ args: [{
145
+ selector: 'ng-template[tuiToast]',
146
+ providers: [tuiAsPortal(TuiToastService)],
147
+ hostDirectives: [
148
+ {
149
+ directive: TuiPortalDirective,
150
+ inputs: ['options: tuiToastOptions', 'open: tuiToast'],
151
+ outputs: ['openChange: tuiToastChange'],
152
+ },
153
+ ],
154
+ }]
155
+ }] });
156
+
157
+ const TuiToast = [TuiToastDirective, TuiToastTemplate];
158
+
159
+ /**
160
+ * Generated bundle index. Do not edit.
161
+ */
162
+
163
+ export { TUI_TOAST_CONCURRENCY, TUI_TOAST_OPTIONS, TuiToast, TuiToastComponent, TuiToastDirective, TuiToastService, TuiToastTemplate, tuiToastOptionsProvider };
164
+ //# sourceMappingURL=taiga-ui-kit-components-toast.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"taiga-ui-kit-components-toast.mjs","sources":["../../../projects/kit/components/toast/toast.directive.ts","../../../projects/kit/components/toast/toast.component.ts","../../../projects/kit/components/toast/toast.template.html","../../../projects/kit/components/toast/toast.options.ts","../../../projects/kit/components/toast/toast.service.ts","../../../projects/kit/components/toast/toast.ts","../../../projects/kit/components/toast/taiga-ui-kit-components-toast.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_COMMON_ICONS, TUI_ICON_END} from '@taiga-ui/core/tokens';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiBadgeOptionsProvider} from '@taiga-ui/kit/components/badge';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/toast.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-toast'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiToast]:not(ng-template)',\n providers: [\n tuiBadgeOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider(() => ({\n size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',\n })),\n tuiButtonOptionsProvider(() => ({\n size: 's',\n appearance:\n inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',\n })),\n {\n provide: TUI_ICON_END,\n useFactory: () =>\n tuiInjectElement().matches('a, button')\n ? inject(TUI_COMMON_ICONS).more\n : '',\n },\n ],\n hostDirectives: [TuiWithIcons],\n})\nexport class TuiToastDirective {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n viewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiSwipe} from '@taiga-ui/cdk/directives/swipe';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiAlertDirective} from '@taiga-ui/core/portals/alert';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {TuiToastDirective} from './toast.directive';\nimport {type TuiToastOptions} from './toast.options';\n\n@Component({\n selector: 'tui-toast',\n imports: [PolymorpheusOutlet, TuiButton, TuiSwipe, TuiToastDirective],\n templateUrl: './toast.template.html',\n styleUrl: './toast.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated, TuiAlertDirective],\n host: {\n role: 'status',\n '[class._mobile]': 'isMobile',\n '[attr.data-appearance]': 'context.appearance',\n },\n})\nexport class TuiToastComponent<O, I> implements AfterViewInit {\n private readonly close = viewChild(TuiButton, {read: ElementRef});\n\n private readonly el = tuiInjectElement();\n\n protected readonly isMobile = inject(TUI_IS_MOBILE);\n protected readonly context = injectContext<TuiPortalContext<TuiToastOptions<I>, O>>();\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly $ = of(this.context.autoClose)\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.context.$implicit.complete());\n\n public ngAfterViewInit(): void {\n if (this.close()) {\n this.el.querySelector('[tuiToast]')?.appendChild(this.close()?.nativeElement);\n }\n }\n\n protected onSwipe(): void {\n if (this.context.closable) {\n this.context.$implicit.complete();\n }\n }\n}\n","<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n {{ text }}\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n","import {inject, InjectionToken} from '@angular/core';\nimport {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiPositionOptions} from '@taiga-ui/core/portals/alert';\n\nexport interface TuiToastOptions<I> extends TuiPositionOptions {\n readonly autoClose: number;\n readonly closable: boolean;\n readonly appearance: string;\n readonly data?: I;\n}\n\nexport const TUI_TOAST_CONCURRENCY = new InjectionToken(\n ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '',\n {factory: () => (inject(TUI_IS_MOBILE) ? 1 : 2)},\n);\n\nexport const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions<\n TuiToastOptions<any>\n>({\n appearance: '',\n autoClose: 5000,\n closable: true,\n block: 'start',\n inline: 'center',\n});\n","import {Directive, inject, Injectable, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\nimport {TuiAlertService} from '@taiga-ui/core/portals/alert';\n\nimport {TuiToastComponent} from './toast.component';\nimport {\n TUI_TOAST_CONCURRENCY,\n TUI_TOAST_OPTIONS,\n type TuiToastOptions,\n} from './toast.options';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiToastService extends TuiAlertService<TuiToastOptions<any>> {\n protected override readonly options = inject(TUI_TOAST_OPTIONS);\n protected override readonly component = TuiToastComponent;\n\n constructor() {\n super(inject(TUI_TOAST_CONCURRENCY));\n }\n}\n\n@Directive({\n selector: 'ng-template[tuiToast]',\n providers: [tuiAsPortal(TuiToastService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiToastOptions', 'open: tuiToast'],\n outputs: ['openChange: tuiToastChange'],\n },\n ],\n})\nexport class TuiToastTemplate<T> {\n public readonly tuiToastOptions = input<Partial<TuiToastOptions<T>>>({});\n}\n","import {TuiToastDirective} from './toast.directive';\nimport {TuiToastTemplate} from './toast.service';\n\nexport const TuiToast =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AAA,CAAA;AACP,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,SAAS,EAAE,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;AACzC,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,kBAAkB;AAC7B,4BAAA,MAAM,EAAE,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;4BACtD,OAAO,EAAE,CAAC,4BAA4B,CAAC;AAC1C,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;MC9BY,QAAQ,GAAG,CAAC,iBAAiB,EAAE,gBAAgB;;ACH5D;;AAEG;;;;"}
@@ -1,17 +1,17 @@
1
1
  import { NgTemplateOutlet, AsyncPipe } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { Input, Directive, inject, forwardRef, ChangeDetectionStrategy, Component, InjectionToken, SkipSelf, ContentChildren, ViewChild, EventEmitter, Output, Injectable } from '@angular/core';
4
- import { TuiLet } from '@taiga-ui/cdk/directives/let';
5
- import { tuiProvide, tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
3
+ import { Input, Directive, InjectionToken, inject, forwardRef, ChangeDetectionStrategy, Component, SkipSelf, ContentChildren, ViewChild, EventEmitter, Output, Injectable } from '@angular/core';
4
+ import { tuiProvide } from '@taiga-ui/cdk/utils/di';
6
5
  import { injectContext, PolymorpheusComponent, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
7
6
  import { Subject, map, distinctUntilChanged, startWith, mergeMap, tap } from 'rxjs';
8
7
  import { EMPTY_ARRAY, EMPTY_FUNCTION, TUI_TRUE_HANDLER, EMPTY_QUERY } from '@taiga-ui/cdk/constants';
9
8
  import { toSignal } from '@angular/core/rxjs-interop';
10
9
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
11
- import { TuiExpandComponent } from '@taiga-ui/core/components/expand';
10
+ import { TuiExpand } from '@taiga-ui/core/components/expand';
12
11
  import { TuiButton } from '@taiga-ui/core/components/button';
13
12
  import { TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
14
13
  import { TUI_MORE_WORD } from '@taiga-ui/kit/tokens';
14
+ import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
15
15
 
16
16
  class TuiTreeChildren {
17
17
  constructor() {
@@ -20,44 +20,18 @@ class TuiTreeChildren {
20
20
  static defaultHandler(item) {
21
21
  return Array.isArray(item) ? item : EMPTY_ARRAY;
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTreeChildren, isStandalone: true, selector: "tui-tree[childrenHandler]", inputs: { childrenHandler: "childrenHandler" }, ngImport: i0 }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiTreeChildren, isStandalone: true, selector: "tui-tree[childrenHandler]", inputs: { childrenHandler: "childrenHandler" }, ngImport: i0 }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeChildren, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeChildren, decorators: [{
27
27
  type: Directive,
28
28
  args: [{
29
- standalone: true,
30
29
  selector: 'tui-tree[childrenHandler]',
31
30
  }]
32
31
  }], propDecorators: { childrenHandler: [{
33
32
  type: Input
34
33
  }] } });
35
34
 
36
- class TuiTreeItemContent {
37
- constructor() {
38
- this.controller = inject(forwardRef(() => TUI_TREE_CONTROLLER));
39
- this.icons = inject(TUI_COMMON_ICONS);
40
- this.more = toSignal(inject(TUI_MORE_WORD));
41
- this.context = injectContext();
42
- }
43
- get isExpandable() {
44
- return (this.context.$implicit.isExpandable &&
45
- this.controller !== TUI_DEFAULT_TREE_CONTROLLER);
46
- }
47
- onClick() {
48
- this.controller.toggle(this.context.$implicit);
49
- }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
51
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiTreeItemContent, isStandalone: true, selector: "ng-component", host: { properties: { "class._expandable": "isExpandable" } }, ngImport: i0, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
52
- }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItemContent, decorators: [{
54
- type: Component,
55
- args: [{ imports: [NgTemplateOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, host: {
56
- '[class._expandable]': 'isExpandable',
57
- }, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"] }]
58
- }] });
59
-
60
- const TUI_TREE_ITEM_CONTENT = new PolymorpheusComponent(TuiTreeItemContent);
61
35
  const TUI_DEFAULT_TREE_CONTROLLER = {
62
36
  isExpanded: TUI_TRUE_HANDLER,
63
37
  toggle: EMPTY_FUNCTION,
@@ -91,12 +65,6 @@ const TUI_TREE_START = new InjectionToken(ngDevMode ? 'TUI_TREE_START' : '');
91
65
  * A service to load tree progressively
92
66
  */
93
67
  const TUI_TREE_LOADER = new InjectionToken(ngDevMode ? 'TUI_TREE_LOADER' : '');
94
- /**
95
- * Content for a tree item
96
- */
97
- const TUI_TREE_CONTENT = new InjectionToken(ngDevMode ? 'TUI_TREE_CONTENT' : '', {
98
- factory: () => TUI_TREE_ITEM_CONTENT,
99
- });
100
68
  /**
101
69
  * Nesting level of current TreeView node
102
70
  */
@@ -104,6 +72,37 @@ const TUI_TREE_LEVEL = new InjectionToken(ngDevMode ? 'TUI_TREE_LEVEL' : '', {
104
72
  factory: () => -1,
105
73
  });
106
74
 
75
+ class TuiTreeItemContent {
76
+ constructor() {
77
+ this.controller = inject(forwardRef(() => TUI_TREE_CONTROLLER));
78
+ this.icons = inject(TUI_COMMON_ICONS);
79
+ this.more = inject(TUI_MORE_WORD);
80
+ this.context = injectContext();
81
+ }
82
+ get isExpandable() {
83
+ return (this.context.$implicit.isExpandable &&
84
+ this.controller !== TUI_DEFAULT_TREE_CONTROLLER);
85
+ }
86
+ onClick() {
87
+ this.controller.toggle(this.context.$implicit);
88
+ }
89
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
90
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiTreeItemContent, isStandalone: true, selector: "ng-component", host: { properties: { "class._expandable": "isExpandable" } }, ngImport: i0, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
91
+ }
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItemContent, decorators: [{
93
+ type: Component,
94
+ args: [{ imports: [NgTemplateOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, host: {
95
+ '[class._expandable]': 'isExpandable',
96
+ }, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"] }]
97
+ }] });
98
+ const TUI_TREE_ITEM_CONTENT = new PolymorpheusComponent(TuiTreeItemContent);
99
+ /**
100
+ * Content for a tree item
101
+ */
102
+ const TUI_TREE_CONTENT = new InjectionToken(ngDevMode ? 'TUI_TREE_CONTENT' : '', {
103
+ factory: () => TUI_TREE_ITEM_CONTENT,
104
+ });
105
+
107
106
  class TuiTreeItem {
108
107
  constructor() {
109
108
  this.nested = EMPTY_QUERY;
@@ -127,19 +126,19 @@ class TuiTreeItem {
127
126
  checkChanges() {
128
127
  this.change$.next();
129
128
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiTreeItem, isStandalone: true, selector: "tui-tree-item", host: { attributes: { "role": "treeitem" }, properties: { "class._expandable": "isExpandable" } }, providers: [
129
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
130
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiTreeItem, isStandalone: true, selector: "tui-tree-item", host: { attributes: { "role": "treeitem" }, properties: { "class._expandable": "isExpandable" } }, providers: [
132
131
  tuiProvide(TUI_TREE_NODE, TuiTreeItem),
133
132
  {
134
133
  provide: TUI_TREE_LEVEL,
135
134
  deps: [[new SkipSelf(), TUI_TREE_LEVEL]],
136
135
  useFactory: (level) => ++level,
137
136
  },
138
- ], queries: [{ propertyName: "nested", predicate: TUI_TREE_NODE }], ngImport: i0, template: "<ng-template #template>\n <ng-content />\n</ng-template>\n<ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: this, template: template}\">\n {{ text }}\n</ng-container>\n@if (isExpandable) {\n <tui-expand\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded()\"\n >\n <div>\n <ng-content select=\"tui-tree-item\" />\n <ng-content select=\"tui-tree\" />\n </div>\n </tui-expand>\n}\n@if (attached()) {}\n", styles: [":host{display:block}.t-children{position:relative;margin-inline-start:var(--tui-tree-item-indent, 1.5rem)}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiExpandComponent, selector: "tui-expand", inputs: ["async", "expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
137
+ ], queries: [{ propertyName: "nested", predicate: TUI_TREE_NODE }], ngImport: i0, template: "<ng-template #template>\n <ng-content />\n</ng-template>\n<ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: this, template: template}\">\n {{ text }}\n</ng-container>\n@if (isExpandable) {\n <tui-expand\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded()\"\n >\n <div>\n <ng-content select=\"tui-tree-item\" />\n <ng-content select=\"tui-tree\" />\n </div>\n </tui-expand>\n}\n@if (attached()) {}\n", styles: [":host{display:block}.t-children{position:relative;margin-inline-start:var(--tui-tree-item-indent, 1.5rem)}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiExpand, selector: "tui-expand", inputs: ["expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
139
138
  }
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItem, decorators: [{
139
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItem, decorators: [{
141
140
  type: Component,
142
- args: [{ selector: 'tui-tree-item', imports: [PolymorpheusOutlet, TuiExpandComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
141
+ args: [{ selector: 'tui-tree-item', imports: [PolymorpheusOutlet, TuiExpand], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
143
142
  tuiProvide(TUI_TREE_NODE, TuiTreeItem),
144
143
  {
145
144
  provide: TUI_TREE_LEVEL,
@@ -168,13 +167,12 @@ class TuiTreeNode {
168
167
  ngOnDestroy() {
169
168
  this.directive?.unregister(this.component);
170
169
  }
171
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeNode, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
172
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTreeNode, isStandalone: true, selector: "tui-tree-item[tuiTreeNode]", inputs: { value: ["tuiTreeNode", "value"] }, ngImport: i0 }); }
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeNode, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
171
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiTreeNode, isStandalone: true, selector: "tui-tree-item[tuiTreeNode]", inputs: { value: ["tuiTreeNode", "value"] }, ngImport: i0 }); }
173
172
  }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeNode, decorators: [{
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeNode, decorators: [{
175
174
  type: Directive,
176
175
  args: [{
177
- standalone: true,
178
176
  selector: 'tui-tree-item[tuiTreeNode]',
179
177
  }]
180
178
  }], propDecorators: { value: [{
@@ -203,12 +201,12 @@ class TuiTreeComponent {
203
201
  get handler() {
204
202
  return this.directive?.childrenHandler || TuiTreeChildren.defaultHandler;
205
203
  }
206
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
207
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiTreeComponent, isStandalone: true, selector: "tui-tree", inputs: { value: "value", trackBy: "trackBy", content: "content" }, host: { attributes: { "role": "tree" } }, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], viewQueries: [{ propertyName: "item", first: true, predicate: i0.forwardRef(() => TuiTreeItem), descendants: true }, { propertyName: "child", first: true, predicate: i0.forwardRef(() => TuiTreeComponent), descendants: true }], ngImport: i0, template: "<tui-tree-item\n *tuiLet=\"children$ | async as children\"\n #view\n [tuiTreeNode]=\"value\"\n>\n @if (value !== children) {\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children; track trackBy($index, child)) {\n <tui-tree\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"], dependencies: [{ kind: "component", type: TuiTreeComponent, selector: "tui-tree", inputs: ["value", "trackBy", "content"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiLet, selector: "[tuiLet]", inputs: ["tuiLet"] }, { kind: "component", type: TuiTreeItem, selector: "tui-tree-item" }, { kind: "directive", type: TuiTreeNode, selector: "tui-tree-item[tuiTreeNode]", inputs: ["tuiTreeNode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
204
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
205
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.16", type: TuiTreeComponent, isStandalone: true, selector: "tui-tree", inputs: { value: "value", trackBy: "trackBy", content: "content" }, host: { attributes: { "role": "tree" } }, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], viewQueries: [{ propertyName: "item", first: true, predicate: i0.forwardRef(() => TuiTreeItem), descendants: true }, { propertyName: "child", first: true, predicate: i0.forwardRef(() => TuiTreeComponent), descendants: true }], ngImport: i0, template: "@let children = children$ | async;\n<tui-tree-item\n #view\n [tuiTreeNode]=\"value\"\n>\n @if (value !== children) {\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children; track trackBy($index, child)) {\n <tui-tree\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"], dependencies: [{ kind: "component", type: TuiTreeComponent, selector: "tui-tree", inputs: ["value", "trackBy", "content"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiTreeItem, selector: "tui-tree-item" }, { kind: "directive", type: TuiTreeNode, selector: "tui-tree-item[tuiTreeNode]", inputs: ["tuiTreeNode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
208
206
  }
209
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeComponent, decorators: [{
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeComponent, decorators: [{
210
208
  type: Component,
211
- args: [{ selector: 'tui-tree', imports: [AsyncPipe, PolymorpheusOutlet, TuiLet, TuiTreeItem, TuiTreeNode], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], host: { role: 'tree' }, template: "<tui-tree-item\n *tuiLet=\"children$ | async as children\"\n #view\n [tuiTreeNode]=\"value\"\n>\n @if (value !== children) {\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children; track trackBy($index, child)) {\n <tui-tree\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"] }]
209
+ args: [{ selector: 'tui-tree', imports: [AsyncPipe, PolymorpheusOutlet, TuiTreeItem, TuiTreeNode], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], host: { role: 'tree' }, template: "@let children = children$ | async;\n<tui-tree-item\n #view\n [tuiTreeNode]=\"value\"\n>\n @if (value !== children) {\n <ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: value, node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children; track trackBy($index, child)) {\n <tui-tree\n [content]=\"content\"\n [trackBy]=\"trackBy\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"] }]
212
210
  }], propDecorators: { item: [{
213
211
  type: ViewChild,
214
212
  args: [forwardRef(() => TuiTreeItem)]
@@ -252,16 +250,15 @@ class TuiTreeControllerDirective {
252
250
  this.toggled.emit(value);
253
251
  this.map.set(value, !expanded);
254
252
  }
255
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeControllerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
256
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTreeControllerDirective, isStandalone: true, selector: "[tuiTreeController][map]", inputs: { fallback: ["tuiTreeController", "fallback"], map: "map" }, outputs: { toggled: "toggled" }, providers: [
253
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeControllerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
254
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiTreeControllerDirective, isStandalone: true, selector: "[tuiTreeController][map]", inputs: { fallback: ["tuiTreeController", "fallback"], map: "map" }, outputs: { toggled: "toggled" }, providers: [
257
255
  tuiProvide(TUI_TREE_ACCESSOR, TuiTreeControllerDirective),
258
256
  tuiProvide(TUI_TREE_CONTROLLER, TuiTreeControllerDirective),
259
257
  ], exportAs: ["tuiTreeController"], ngImport: i0 }); }
260
258
  }
261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeControllerDirective, decorators: [{
259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeControllerDirective, decorators: [{
262
260
  type: Directive,
263
261
  args: [{
264
- standalone: true,
265
262
  selector: '[tuiTreeController][map]',
266
263
  providers: [
267
264
  tuiProvide(TUI_TREE_ACCESSOR, TuiTreeControllerDirective),
@@ -289,13 +286,12 @@ class TuiTreeItemController {
289
286
  toggle(item) {
290
287
  this.map.set(item, !this.isExpanded(item));
291
288
  }
292
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItemController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
293
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiTreeItemController, isStandalone: true, selector: "[tuiTreeController]:not([map])", inputs: { fallback: ["tuiTreeController", "fallback"] }, providers: [tuiProvide(TUI_TREE_CONTROLLER, TuiTreeItemController)], exportAs: ["tuiTreeController"], ngImport: i0 }); }
289
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItemController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
290
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.16", type: TuiTreeItemController, isStandalone: true, selector: "[tuiTreeController]:not([map])", inputs: { fallback: ["tuiTreeController", "fallback"] }, providers: [tuiProvide(TUI_TREE_CONTROLLER, TuiTreeItemController)], exportAs: ["tuiTreeController"], ngImport: i0 }); }
294
291
  }
295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeItemController, decorators: [{
292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeItemController, decorators: [{
296
293
  type: Directive,
297
294
  args: [{
298
- standalone: true,
299
295
  selector: '[tuiTreeController]:not([map])',
300
296
  providers: [tuiProvide(TUI_TREE_CONTROLLER, TuiTreeItemController)],
301
297
  exportAs: 'tuiTreeController',
@@ -324,10 +320,10 @@ class TuiTreeService {
324
320
  this.map.set(item, [this.loading]);
325
321
  this.load$.next(item);
326
322
  }
327
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
328
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeService }); }
323
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
324
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeService }); }
329
325
  }
330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiTreeService, decorators: [{
326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: TuiTreeService, decorators: [{
331
327
  type: Injectable
332
328
  }] });
333
329