@taiga-ui/kit 4.51.0 → 4.52.0-canary.1acd1eb

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 (849) 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.component.d.ts +1 -1
  15. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  16. package/components/calendar-range/calendar-range.component.d.ts +1 -2
  17. package/components/checkbox/checkbox.component.d.ts +7 -18
  18. package/components/checkbox/checkbox.options.d.ts +5 -9
  19. package/components/chip/chip.directive.d.ts +2 -4
  20. package/components/comment/comment.directive.d.ts +2 -2
  21. package/components/confirm/confirm.component.d.ts +2 -1
  22. package/components/confirm/confirm.service.d.ts +2 -1
  23. package/{directives → components}/copy/copy.component.d.ts +1 -1
  24. package/{directives → components}/copy/copy.directive.d.ts +2 -2
  25. package/{directives → components}/copy/copy.options.d.ts +2 -2
  26. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -0
  27. package/components/files/file/file.options.d.ts +1 -1
  28. package/components/files/files/files.component.d.ts +2 -2
  29. package/components/floating-container/floating-container.directive.d.ts +2 -2
  30. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  31. package/components/fullscreen/index.d.ts +1 -0
  32. package/components/index.d.ts +4 -2
  33. package/components/input-chip/input-chip.options.d.ts +1 -1
  34. package/components/input-color/input-color.component.d.ts +2 -1
  35. package/components/input-color/input-color.options.d.ts +1 -1
  36. package/components/input-date/input-date.directive.d.ts +1 -1
  37. package/components/input-date/input-date.options.d.ts +1 -1
  38. package/components/input-number/input-number.options.d.ts +1 -1
  39. package/components/input-number/quantum.directive.d.ts +2 -2
  40. package/components/input-number/step/input-number-step.component.d.ts +1 -1
  41. package/components/input-phone/input-phone.options.d.ts +1 -1
  42. package/components/input-phone-international/input-phone-international.component.d.ts +24 -30
  43. package/components/input-pin/input-pin.component.d.ts +1 -1
  44. package/components/input-range/input-range.component.d.ts +9 -12
  45. package/components/input-slider/input-slider.directive.d.ts +2 -4
  46. package/components/input-time/input-time.directive.d.ts +1 -0
  47. package/components/input-time/input-time.options.d.ts +1 -1
  48. package/components/like/like.component.d.ts +4 -11
  49. package/components/like/like.options.d.ts +3 -4
  50. package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
  51. package/components/line-clamp/line-clamp.component.d.ts +12 -18
  52. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +3 -3
  53. package/components/multi-select/multi-select-option/multi-select-option.component.d.ts +1 -1
  54. package/components/notification-middle/index.d.ts +3 -0
  55. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  56. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  57. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  58. package/components/pager/pager.component.d.ts +1 -1
  59. package/components/pagination/pagination.component.d.ts +1 -1
  60. package/components/pin/pin.directive.d.ts +2 -2
  61. package/components/preview/pagination/preview-pagination.component.d.ts +1 -1
  62. package/components/preview/preview.component.d.ts +1 -1
  63. package/components/preview/zoom/preview-zoom.component.d.ts +1 -1
  64. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  65. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  66. package/components/push/push-alert.component.d.ts +4 -3
  67. package/components/push/push.component.d.ts +2 -2
  68. package/components/push/push.directive.d.ts +4 -6
  69. package/components/push/push.options.d.ts +4 -8
  70. package/components/push/push.service.d.ts +6 -2
  71. package/components/radio/radio.component.d.ts +7 -8
  72. package/components/radio/radio.directive.d.ts +2 -2
  73. package/components/radio/radio.options.d.ts +2 -5
  74. package/components/range/range-change.directive.d.ts +1 -1
  75. package/components/range/range.component.d.ts +0 -5
  76. package/components/rating/rating.component.d.ts +5 -5
  77. package/components/rating/rating.options.d.ts +5 -3
  78. package/components/segmented/segmented.component.d.ts +5 -5
  79. package/components/slider/helpers/key-steps.d.ts +1 -2
  80. package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
  81. package/components/slides/slides.directive.d.ts +4 -4
  82. package/components/status/status.directive.d.ts +2 -2
  83. package/components/switch/switch.component.d.ts +7 -19
  84. package/components/switch/switch.options.d.ts +4 -8
  85. package/components/tabs/tabs-with-more.component.d.ts +1 -1
  86. package/components/textarea/textarea-limit.directive.d.ts +4 -6
  87. package/components/textarea/textarea.options.d.ts +1 -1
  88. package/components/toast/index.d.ts +5 -0
  89. package/components/toast/toast.component.d.ts +18 -0
  90. package/components/toast/toast.d.ts +3 -0
  91. package/components/toast/toast.directive.d.ts +7 -0
  92. package/components/toast/toast.options.d.ts +9 -0
  93. package/components/toast/toast.service.d.ts +17 -0
  94. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  95. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +2 -7
  96. package/directives/button-select/button-select.directive.d.ts +1 -2
  97. package/directives/chevron/chevron.directive.d.ts +2 -3
  98. package/directives/fade/fade.directive.d.ts +1 -0
  99. package/directives/highlight/highlight.directive.d.ts +2 -2
  100. package/directives/index.d.ts +0 -2
  101. package/directives/password/password.options.d.ts +1 -1
  102. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  103. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  104. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  105. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  106. package/directives/tooltip/tooltip.options.d.ts +2 -2
  107. package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -145
  108. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
  110. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-kit-components-avatar.mjs +81 -100
  112. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  114. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  116. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  118. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  120. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +9 -12
  122. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -5
  124. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +7 -10
  126. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -11
  128. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-carousel.mjs +21 -23
  130. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  132. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  134. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +9 -9
  136. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  138. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  140. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -16
  142. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-copy.mjs +120 -0
  144. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  145. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +21 -14
  146. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  148. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -8
  150. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-files.mjs +41 -42
  152. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-filter.mjs +7 -16
  154. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  156. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
  158. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  159. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +22 -19
  160. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-input-color.mjs +12 -15
  162. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +7 -8
  164. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  166. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +9 -11
  168. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-input-date.mjs +18 -20
  170. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -6
  172. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  173. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +8 -9
  174. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-input-month.mjs +14 -16
  176. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-input-number.mjs +33 -32
  178. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +108 -134
  180. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +11 -13
  182. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +9 -8
  184. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-input-range.mjs +35 -39
  186. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +28 -42
  188. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-input-time.mjs +32 -16
  190. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-input-year.mjs +8 -9
  192. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -18
  194. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  196. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +38 -83
  198. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -12
  200. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +45 -44
  202. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +90 -0
  204. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  205. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -8
  206. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-pagination.mjs +8 -9
  208. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  210. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +13 -13
  212. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-preview.mjs +38 -40
  214. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-progress.mjs +39 -52
  216. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  218. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-push.mjs +50 -57
  220. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +7 -8
  222. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-radio.mjs +34 -39
  224. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-range.mjs +12 -21
  226. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -22
  228. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  230. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  232. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-select.mjs +41 -34
  234. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-slider.mjs +71 -70
  236. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  238. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  240. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-components-stepper.mjs +12 -12
  242. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  244. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-tabs.mjs +35 -38
  246. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-textarea.mjs +19 -28
  248. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  250. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-components-toast.mjs +165 -0
  252. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  253. package/fesm2022/taiga-ui-kit-components-tree.mjs +37 -53
  254. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-components.mjs +4 -2
  256. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  258. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  260. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +5 -12
  262. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  264. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -15
  266. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  268. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-directives-fade.mjs +11 -14
  270. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  272. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  274. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -9
  276. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-directives-password.mjs +8 -11
  278. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  280. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  282. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  284. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  286. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  287. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +15 -20
  288. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  289. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +6 -7
  290. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  292. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  293. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  294. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  296. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  297. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  298. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  300. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +5 -4
  302. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  303. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  304. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  305. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  306. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  307. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  308. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  309. package/fesm2022/taiga-ui-kit-tokens.mjs +7 -10
  310. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  311. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  312. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  313. package/package.json +33 -246
  314. package/pipes/index.d.ts +0 -1
  315. package/styles/components/avatar.less +188 -0
  316. package/styles/components/badge.less +4 -18
  317. package/styles/components/block.less +1 -1
  318. package/styles/components/checkbox.less +17 -16
  319. package/styles/components/chip.less +19 -4
  320. package/styles/components/like.less +15 -17
  321. package/styles/components/pin.less +3 -7
  322. package/styles/components/radio.less +2 -2
  323. package/styles/components/switch.less +12 -12
  324. package/styles/components/toast.less +44 -0
  325. package/tokens/i18n.d.ts +25 -26
  326. package/tokens/index.d.ts +0 -1
  327. package/tokens/input-date-options.d.ts +1 -1
  328. package/components/accordion/accordion-item-content.directive.d.ts +0 -6
  329. package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
  330. package/components/accordion/accordion-item.component.d.ts +0 -25
  331. package/components/action-bar/action-bar.d.ts +0 -3
  332. package/components/action-bar/action-bar.directive.d.ts +0 -6
  333. package/components/avatar/avatar.component.d.ts +0 -15
  334. package/components/input-password/index.d.ts +0 -2
  335. package/components/input-password/input-password.component.d.ts +0 -16
  336. package/components/input-password/input-password.options.d.ts +0 -24
  337. package/components/pdf-viewer/index.d.ts +0 -4
  338. package/components/pdf-viewer/pdf-viewer.component.d.ts +0 -12
  339. package/components/pdf-viewer/pdf-viewer.directive.d.ts +0 -7
  340. package/components/pdf-viewer/pdf-viewer.options.d.ts +0 -13
  341. package/components/pdf-viewer/pdf-viewer.service.d.ts +0 -13
  342. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  343. package/directives/icon-badge/index.d.ts +0 -1
  344. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  345. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  346. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  347. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  348. package/esm2022/components/accordion/accordion.mjs +0 -11
  349. package/esm2022/components/accordion/index.mjs +0 -6
  350. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  351. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  352. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  353. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  354. package/esm2022/components/action-bar/index.mjs +0 -4
  355. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  356. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  357. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  358. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  359. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  360. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  361. package/esm2022/components/avatar/index.mjs +0 -6
  362. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  363. package/esm2022/components/badge/badge.directive.mjs +0 -42
  364. package/esm2022/components/badge/badge.options.mjs +0 -13
  365. package/esm2022/components/badge/index.mjs +0 -3
  366. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  367. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  368. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  369. package/esm2022/components/badge-notification/index.mjs +0 -3
  370. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  371. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  372. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  373. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  374. package/esm2022/components/badged-content/index.mjs +0 -4
  375. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  376. package/esm2022/components/block/block.directive.mjs +0 -58
  377. package/esm2022/components/block/block.options.mjs +0 -13
  378. package/esm2022/components/block/index.mjs +0 -3
  379. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  380. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  381. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  382. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  383. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  384. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  385. package/esm2022/components/button-loading/index.mjs +0 -2
  386. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  387. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  388. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  389. package/esm2022/components/calendar-month/index.mjs +0 -3
  390. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  391. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  392. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  393. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  394. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  395. package/esm2022/components/calendar-range/index.mjs +0 -5
  396. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  397. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  398. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  399. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  400. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  401. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  402. package/esm2022/components/carousel/carousel.mjs +0 -15
  403. package/esm2022/components/carousel/index.mjs +0 -7
  404. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  405. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  406. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  407. package/esm2022/components/checkbox/index.mjs +0 -3
  408. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  409. package/esm2022/components/chip/chip.directive.mjs +0 -63
  410. package/esm2022/components/chip/chip.options.mjs +0 -13
  411. package/esm2022/components/chip/index.mjs +0 -3
  412. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  413. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  414. package/esm2022/components/combo-box/index.mjs +0 -2
  415. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  416. package/esm2022/components/comment/comment.directive.mjs +0 -35
  417. package/esm2022/components/comment/index.mjs +0 -2
  418. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  419. package/esm2022/components/compass/compass.component.mjs +0 -19
  420. package/esm2022/components/compass/index.mjs +0 -2
  421. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  422. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  423. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  424. package/esm2022/components/confirm/index.mjs +0 -3
  425. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  426. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  427. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  428. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  429. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  430. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  431. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  432. package/esm2022/components/drawer/index.mjs +0 -2
  433. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  434. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  435. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  436. package/esm2022/components/elastic-container/index.mjs +0 -3
  437. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  438. package/esm2022/components/files/file/file.component.mjs +0 -144
  439. package/esm2022/components/files/file/file.options.mjs +0 -16
  440. package/esm2022/components/files/files/files.component.mjs +0 -49
  441. package/esm2022/components/files/files.mjs +0 -15
  442. package/esm2022/components/files/files.types.mjs +0 -2
  443. package/esm2022/components/files/files.utils.mjs +0 -30
  444. package/esm2022/components/files/files.validators.mjs +0 -32
  445. package/esm2022/components/files/index.mjs +0 -13
  446. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  447. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  448. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  449. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  450. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  451. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  452. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  453. package/esm2022/components/filter/filter.component.mjs +0 -65
  454. package/esm2022/components/filter/index.mjs +0 -2
  455. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  456. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  457. package/esm2022/components/floating-container/index.mjs +0 -2
  458. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  459. package/esm2022/components/index.mjs +0 -72
  460. package/esm2022/components/input-chip/index.mjs +0 -5
  461. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  462. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  463. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  464. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  465. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  466. package/esm2022/components/input-color/index.mjs +0 -3
  467. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  468. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  469. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  470. package/esm2022/components/input-date/date-filler.mjs +0 -20
  471. package/esm2022/components/input-date/index.mjs +0 -6
  472. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  473. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  474. package/esm2022/components/input-date/input-date.mjs +0 -9
  475. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  476. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  477. package/esm2022/components/input-date-multi/index.mjs +0 -3
  478. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  479. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  480. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  481. package/esm2022/components/input-date-range/index.mjs +0 -4
  482. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  483. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  484. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  485. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  486. package/esm2022/components/input-date-time/index.mjs +0 -5
  487. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  488. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  489. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  490. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  491. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  492. package/esm2022/components/input-inline/index.mjs +0 -2
  493. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  494. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  495. package/esm2022/components/input-month/index.mjs +0 -5
  496. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  497. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  498. package/esm2022/components/input-month/input-month.mjs +0 -9
  499. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  500. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  501. package/esm2022/components/input-month-range/index.mjs +0 -4
  502. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  503. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  504. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  505. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  506. package/esm2022/components/input-number/index.mjs +0 -6
  507. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  508. package/esm2022/components/input-number/input-number.mjs +0 -9
  509. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  510. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  511. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  512. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  513. package/esm2022/components/input-password/index.mjs +0 -3
  514. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  515. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  516. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  517. package/esm2022/components/input-phone/index.mjs +0 -3
  518. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  519. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  520. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  521. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  522. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  523. package/esm2022/components/input-phone-international/index.mjs +0 -3
  524. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  525. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  526. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  527. package/esm2022/components/input-pin/index.mjs +0 -2
  528. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  529. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  530. package/esm2022/components/input-range/index.mjs +0 -3
  531. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  532. package/esm2022/components/input-range/input-range.mjs +0 -4
  533. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  534. package/esm2022/components/input-slider/index.mjs +0 -3
  535. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  536. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  537. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  538. package/esm2022/components/input-time/index.mjs +0 -5
  539. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  540. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  541. package/esm2022/components/input-time/input-time.mjs +0 -4
  542. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  543. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  544. package/esm2022/components/input-year/index.mjs +0 -4
  545. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  546. package/esm2022/components/input-year/input-year.mjs +0 -4
  547. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  548. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  549. package/esm2022/components/items-with-more/index.mjs +0 -6
  550. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  551. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  552. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  553. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  554. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  555. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  556. package/esm2022/components/like/index.mjs +0 -3
  557. package/esm2022/components/like/like.component.mjs +0 -46
  558. package/esm2022/components/like/like.options.mjs +0 -10
  559. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  560. package/esm2022/components/line-clamp/index.mjs +0 -4
  561. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  562. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  563. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  564. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  565. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  566. package/esm2022/components/message/index.mjs +0 -2
  567. package/esm2022/components/message/message.directive.mjs +0 -43
  568. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  569. package/esm2022/components/multi-select/index.mjs +0 -6
  570. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  571. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  572. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  573. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  574. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  575. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  576. package/esm2022/components/pager/index.mjs +0 -2
  577. package/esm2022/components/pager/pager.component.mjs +0 -97
  578. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  579. package/esm2022/components/pagination/index.mjs +0 -2
  580. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  581. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  582. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  583. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  584. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  585. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  586. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  587. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  588. package/esm2022/components/pin/index.mjs +0 -2
  589. package/esm2022/components/pin/pin.directive.mjs +0 -35
  590. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  591. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  592. package/esm2022/components/preview/dialog/index.mjs +0 -4
  593. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  594. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  595. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  596. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  597. package/esm2022/components/preview/index.mjs +0 -8
  598. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  599. package/esm2022/components/preview/preview.component.mjs +0 -142
  600. package/esm2022/components/preview/preview.mjs +0 -13
  601. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  602. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  603. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  604. package/esm2022/components/progress/index.mjs +0 -9
  605. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  606. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  607. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  608. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  609. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  610. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  611. package/esm2022/components/progress/progress.mjs +0 -15
  612. package/esm2022/components/progress/progress.options.mjs +0 -13
  613. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  614. package/esm2022/components/pulse/index.mjs +0 -2
  615. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  616. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  617. package/esm2022/components/push/index.mjs +0 -7
  618. package/esm2022/components/push/push-alert.component.mjs +0 -29
  619. package/esm2022/components/push/push.component.mjs +0 -39
  620. package/esm2022/components/push/push.directive.mjs +0 -33
  621. package/esm2022/components/push/push.mjs +0 -5
  622. package/esm2022/components/push/push.options.mjs +0 -21
  623. package/esm2022/components/push/push.service.mjs +0 -19
  624. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  625. package/esm2022/components/radio/index.mjs +0 -5
  626. package/esm2022/components/radio/radio.component.mjs +0 -53
  627. package/esm2022/components/radio/radio.directive.mjs +0 -32
  628. package/esm2022/components/radio/radio.mjs +0 -4
  629. package/esm2022/components/radio/radio.options.mjs +0 -13
  630. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  631. package/esm2022/components/radio-list/index.mjs +0 -2
  632. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  633. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  634. package/esm2022/components/range/index.mjs +0 -3
  635. package/esm2022/components/range/range-change.directive.mjs +0 -78
  636. package/esm2022/components/range/range.component.mjs +0 -164
  637. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  638. package/esm2022/components/rating/index.mjs +0 -3
  639. package/esm2022/components/rating/rating.component.mjs +0 -65
  640. package/esm2022/components/rating/rating.options.mjs +0 -13
  641. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  642. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  643. package/esm2022/components/routable-dialog/index.mjs +0 -3
  644. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  645. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  646. package/esm2022/components/segmented/index.mjs +0 -3
  647. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  648. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  649. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  650. package/esm2022/components/select/index.mjs +0 -5
  651. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  652. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  653. package/esm2022/components/select/select.directive.mjs +0 -56
  654. package/esm2022/components/select/select.mjs +0 -4
  655. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  656. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  657. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  658. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  659. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  660. package/esm2022/components/slider/index.mjs +0 -8
  661. package/esm2022/components/slider/slider.component.mjs +0 -124
  662. package/esm2022/components/slider/slider.mjs +0 -12
  663. package/esm2022/components/slider/slider.options.mjs +0 -16
  664. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  665. package/esm2022/components/slides/index.mjs +0 -2
  666. package/esm2022/components/slides/slides.directive.mjs +0 -51
  667. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  668. package/esm2022/components/status/index.mjs +0 -2
  669. package/esm2022/components/status/status.directive.mjs +0 -35
  670. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  671. package/esm2022/components/stepper/index.mjs +0 -4
  672. package/esm2022/components/stepper/step.component.mjs +0 -58
  673. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  674. package/esm2022/components/stepper/stepper.mjs +0 -4
  675. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  676. package/esm2022/components/switch/index.mjs +0 -3
  677. package/esm2022/components/switch/switch.component.mjs +0 -63
  678. package/esm2022/components/switch/switch.options.mjs +0 -15
  679. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  680. package/esm2022/components/tabs/index.mjs +0 -9
  681. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  682. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  683. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  684. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  685. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  686. package/esm2022/components/tabs/tabs.mjs +0 -15
  687. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  688. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  689. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  690. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  691. package/esm2022/components/textarea/index.mjs +0 -4
  692. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  693. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  694. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  695. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  696. package/esm2022/components/tiles/index.mjs +0 -7
  697. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  698. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  699. package/esm2022/components/tiles/tile.component.mjs +0 -69
  700. package/esm2022/components/tiles/tile.service.mjs +0 -90
  701. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  702. package/esm2022/components/tiles/tiles.mjs +0 -5
  703. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  704. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  705. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  706. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  707. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  708. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  709. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  710. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  711. package/esm2022/components/tree/index.mjs +0 -12
  712. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  713. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  714. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  715. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  716. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  717. package/esm2022/components/tree/tree.mjs +0 -17
  718. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  719. package/esm2022/directives/button-close/index.mjs +0 -2
  720. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  721. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  722. package/esm2022/directives/button-group/index.mjs +0 -2
  723. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  724. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  725. package/esm2022/directives/button-select/index.mjs +0 -2
  726. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  727. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  728. package/esm2022/directives/chevron/index.mjs +0 -2
  729. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  730. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  731. package/esm2022/directives/connected/index.mjs +0 -2
  732. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  733. package/esm2022/directives/copy/copy.component.mjs +0 -48
  734. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  735. package/esm2022/directives/copy/copy.mjs +0 -4
  736. package/esm2022/directives/copy/copy.options.mjs +0 -3
  737. package/esm2022/directives/copy/index.mjs +0 -6
  738. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  739. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  740. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  741. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  742. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  743. package/esm2022/directives/fade/index.mjs +0 -2
  744. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  745. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  746. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  747. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  748. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  749. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  750. package/esm2022/directives/highlight/index.mjs +0 -2
  751. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  752. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  753. package/esm2022/directives/icon-badge/index.mjs +0 -2
  754. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  755. package/esm2022/directives/index.mjs +0 -21
  756. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  757. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  758. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  759. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  760. package/esm2022/directives/password/index.mjs +0 -3
  761. package/esm2022/directives/password/password.directive.mjs +0 -67
  762. package/esm2022/directives/password/password.options.mjs +0 -8
  763. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  764. package/esm2022/directives/present/index.mjs +0 -2
  765. package/esm2022/directives/present/present.directive.mjs +0 -33
  766. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  767. package/esm2022/directives/sensitive/index.mjs +0 -2
  768. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  769. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  770. package/esm2022/directives/shimmer/index.mjs +0 -2
  771. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  772. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  773. package/esm2022/directives/skeleton/index.mjs +0 -2
  774. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  775. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  776. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  777. package/esm2022/directives/tooltip/index.mjs +0 -3
  778. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  779. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  780. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  781. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  782. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  783. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  784. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  785. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  786. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  787. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  788. package/esm2022/index.mjs +0 -6
  789. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  790. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  791. package/esm2022/pipes/emails/index.mjs +0 -3
  792. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  793. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  794. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  795. package/esm2022/pipes/field-error/index.mjs +0 -3
  796. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  797. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  798. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  799. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  800. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  801. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  802. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  803. package/esm2022/pipes/index.mjs +0 -8
  804. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  805. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  806. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  807. package/esm2022/pipes/stringify/index.mjs +0 -2
  808. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  809. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  810. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  811. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  812. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  813. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  814. package/esm2022/taiga-ui-kit.mjs +0 -5
  815. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  816. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  817. package/esm2022/tokens/i18n.mjs +0 -75
  818. package/esm2022/tokens/index.mjs +0 -10
  819. package/esm2022/tokens/input-date-options.mjs +0 -13
  820. package/esm2022/tokens/items-handlers.mjs +0 -27
  821. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  822. package/esm2022/tokens/month-formatter.mjs +0 -12
  823. package/esm2022/tokens/preview-icons.mjs +0 -17
  824. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  825. package/esm2022/tokens/validation-errors.mjs +0 -6
  826. package/esm2022/utils/create-time-periods.mjs +0 -12
  827. package/esm2022/utils/index.mjs +0 -7
  828. package/esm2022/utils/inject-value.mjs +0 -11
  829. package/esm2022/utils/is-flat.mjs +0 -4
  830. package/esm2022/utils/maskito.binding.mjs +0 -6
  831. package/esm2022/utils/phone.mjs +0 -6
  832. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  833. package/esm2022/utils/toggle-day.mjs +0 -6
  834. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  835. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  836. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +0 -83
  837. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +0 -1
  838. package/fesm2022/taiga-ui-kit-directives-copy.mjs +0 -120
  839. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  840. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  841. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  842. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  843. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  844. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  845. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  846. package/pipes/field-error/index.d.ts +0 -2
  847. package/tokens/validation-errors.d.ts +0 -5
  848. /package/{directives → components}/copy/copy.d.ts +0 -0
  849. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-items-with-more.mjs","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.ts","../../../projects/kit/components/items-with-more/taiga-ui-kit-components-items-with-more.ts"],"sourcesContent":["import {Directive, Input, type OnChanges} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {Subject} from 'rxjs';\n\n@Directive({\n standalone: true,\n host: {\n '[class._multiline]': 'linesLimit > 1',\n '[style.--t-min-width.px]': 'maxWidth()',\n },\n})\nexport class TuiItemsWithMoreDirective implements OnChanges {\n private readonly el = tuiInjectElement();\n\n @Input()\n public itemsLimit = Infinity;\n\n @Input()\n public required = -1;\n\n @Input()\n public linesLimit = 1;\n\n @Input()\n public side: 'end' | 'start' = 'end';\n\n // TODO: refactor to signal inputs after Angular update\n public readonly change$ = new Subject<void>();\n\n public get computedSide(): 'end' | 'start' {\n return this.linesLimit > 1 ? 'end' : this.side;\n }\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n\n protected maxWidth(): number {\n return Math.max(...Array.from(this.el.children, ({clientWidth}) => clientWidth));\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {debounceTime, distinctUntilChanged, map, merge, Observable, share} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n private readonly el = tuiInjectElement();\n private readonly directive = inject(TuiItemsWithMoreDirective);\n\n protected readonly stream$ = merge(\n this.directive.change$,\n inject(MutationObserverService, {self: true}),\n inject(ResizeObserverService, {self: true}),\n ).pipe(\n debounceTime(0, tuiZonefreeScheduler()),\n map(() =>\n this.directive.linesLimit > 1\n ? this.getOverflowIndexMultiline()\n : this.getOverflowIndex(Array.from(this.el.children)),\n ),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n share(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(children: Element[]): number {\n const {computedSide, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const index = computedSide === 'start' ? 0 : items.length - 1;\n const more = children[index]?.tagName === 'SPAN' ? (items[index] ?? 0) : 0;\n const total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && itemsLimit >= items.length) {\n return computedSide === 'end' ? itemsLimit : 0;\n }\n\n return computedSide === 'start'\n ? this.getIndexStart(items, total, more)\n : this.getIndexEnd(items, total, more);\n }\n\n private getIndexStart(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const min = Number.isFinite(itemsLimit) ? items.length - itemsLimit - 1 : 0;\n const last = items.length - 1;\n const mandatory = required === -1 ? last : required;\n\n for (let i = 1; i < last; i++) {\n if (i === mandatory + 1) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i, mandatory < min ? min + 1 : min, items.length);\n }\n }\n\n return items.length;\n }\n\n private getIndexEnd(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const max = itemsLimit > required ? itemsLimit - 1 : itemsLimit - 2;\n const last = items.length - 1;\n const mandatory = required === -1 ? 0 : required;\n\n for (let i = last - 1; i > 0; i--) {\n if (i === mandatory) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i - 1, -1, max);\n }\n }\n\n return -1;\n }\n\n private getOverflowIndexMultiline(): number {\n const {children} = this.el;\n const {linesLimit, itemsLimit} = this.directive;\n const items = Array.from(children) as HTMLElement[];\n const rows = new Set(items.map((item) => item.offsetTop));\n const offset = Array.from(rows)[linesLimit - 1];\n const firstItemLastRow = items.findIndex((i) => i.offsetTop === offset);\n const lastRow = items.slice(firstItemLastRow);\n const index = firstItemLastRow + this.getOverflowIndex(lastRow);\n\n return Math.min(itemsLimit - 1, index);\n }\n}\n","import {Directive} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiMore]',\n})\nexport class TuiMore {\n public static ngTemplateContextGuard(\n _dir: TuiMore,\n _ctx: unknown,\n ): _ctx is TuiContext<number> {\n return true;\n }\n}\n","import {AsyncPipe, NgForOf, NgIf, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n inject,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMore} from './more.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-items-with-more',\n imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet],\n templateUrl: './items-with-more.template.html',\n styleUrls: ['./items-with-more.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n ResizeObserverService,\n TuiItemsWithMoreService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n hostDirectives: [\n {\n directive: TuiItemsWithMoreDirective,\n inputs: ['itemsLimit', 'required', 'side', 'linesLimit'],\n },\n ],\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItem, {read: TemplateRef, descendants: true})\n protected readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMore, {read: TemplateRef})\n protected readonly more?: TemplateRef<TuiContext<number>>;\n\n protected readonly directive = inject(TuiItemsWithMoreDirective);\n\n @Output()\n public readonly lastIndexChange = inject(TuiItemsWithMoreService);\n\n public readonly lastIndex = toSignal(this.lastIndexChange, {\n initialValue: 0,\n });\n\n protected get isMoreHidden(): boolean {\n const {computedSide} = this.directive;\n\n return (\n (this.lastIndex() >= this.items.length - 1 && computedSide === 'end') ||\n (!this.lastIndex() && computedSide === 'start')\n );\n }\n\n protected isHidden(index: number): boolean {\n const {computedSide, required} = this.directive;\n\n return (\n (index > this.lastIndex() && index !== required && computedSide === 'end') ||\n (index < this.lastIndex() && index !== required && computedSide === 'start')\n );\n }\n}\n","<ng-container *ngIf=\"items.changes | async\" />\n<ng-container\n *ngIf=\"directive.side === 'start'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<div\n *ngFor=\"let item of items; let index = index\"\n class=\"t-item\"\n [class.t-item_hidden]=\"isHidden(index)\"\n>\n <ng-container *ngTemplateOutlet=\"item\" />\n</div>\n<ng-container\n *ngIf=\"directive.side === 'end'\"\n [ngTemplateOutlet]=\"template\"\n/>\n<ng-template #template>\n <span\n *ngIf=\"!isMoreHidden\"\n class=\"t-item t-item_more\"\n >\n <ng-container\n [ngTemplateOutlet]=\"more || null\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex()}\"\n />\n </span>\n</ng-template>\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMore} from './more.directive';\n\nexport const TuiItemsWithMore = [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMore,\n TuiItem,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.TuiItemsWithMoreDirective"],"mappings":";;;;;;;;;;;;;AAIA,MAOa,yBAAyB,CAAA;AAPtC,IAAA,WAAA,GAAA;QAQqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE,CAAC;QAGlC,IAAU,CAAA,UAAA,GAAG,QAAQ,CAAC;QAGtB,IAAQ,CAAA,QAAA,GAAG,CAAC,CAAC,CAAC;QAGd,IAAU,CAAA,UAAA,GAAG,CAAC,CAAC;QAGf,IAAI,CAAA,IAAA,GAAoB,KAAK,CAAC;;AAGrB,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;AAajD,KAAA;AAXG,IAAA,IAAW,YAAY,GAAA;AACnB,QAAA,OAAO,IAAI,CAAC,UAAU,GAAG,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;KAClD;IAEM,WAAW,GAAA;AACd,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACvB;IAES,QAAQ,GAAA;QACd,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAC,WAAW,EAAC,KAAK,WAAW,CAAC,CAAC,CAAC;KACpF;+GA5BQ,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA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B3C,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBA3BrC,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,YACN,qBAAqB,EAAA,OAAA,EACtB,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAGpC,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACP,uBAAuB;wBACvB,qBAAqB;wBACrB,uBAAuB;AACvB,wBAAA;AACI,4BAAA,OAAO,EAAE,yBAAyB;AAClC,4BAAA,QAAQ,EAAE;AACN,gCAAA,SAAS,EAAE,IAAI;AACf,gCAAA,aAAa,EAAE,IAAI;AACnB,gCAAA,OAAO,EAAE,IAAI;AAChB,6BAAA;AACJ,yBAAA;qBACJ,EACe,cAAA,EAAA;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,yBAAyB;4BACpC,MAAM,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,CAAC;AAC3D,yBAAA;AACJ,qBAAA,EAAA,QAAA,EAAA,ytBAAA,EAAA,MAAA,EAAA,CAAA,0SAAA,CAAA,EAAA,CAAA;8BAIkB,KAAK,EAAA,CAAA;sBADvB,eAAe;uBAAC,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,IAAI,EAAC,CAAA;gBAI7C,IAAI,EAAA,CAAA;sBADtB,YAAY;AAAC,gBAAA,IAAA,EAAA,CAAA,OAAO,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC,CAAA;gBAM1B,eAAe,EAAA,CAAA;sBAD9B,MAAM;;;AEvDE,MAAA,gBAAgB,GAAG;IAC5B,yBAAyB;IACzB,yBAAyB;IACzB,OAAO;IACP,OAAO;;;ACVX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-items-with-more.mjs","sources":["../../../projects/kit/components/items-with-more/items-with-more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.service.ts","../../../projects/kit/components/items-with-more/more.directive.ts","../../../projects/kit/components/items-with-more/items-with-more.component.ts","../../../projects/kit/components/items-with-more/items-with-more.template.html","../../../projects/kit/components/items-with-more/items-with-more.ts","../../../projects/kit/components/items-with-more/taiga-ui-kit-components-items-with-more.ts"],"sourcesContent":["import {Directive, Input, type OnChanges} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {Subject} from 'rxjs';\n\n@Directive({\n standalone: true,\n host: {\n '[class._multiline]': 'linesLimit > 1',\n '[style.--t-min-width.px]': 'maxWidth()',\n },\n})\nexport class TuiItemsWithMoreDirective implements OnChanges {\n private readonly el = tuiInjectElement();\n\n @Input()\n public itemsLimit = Infinity;\n\n @Input()\n public required = -1;\n\n @Input()\n public linesLimit = 1;\n\n @Input()\n public side: 'end' | 'start' = 'end';\n\n // TODO: refactor to signal inputs after Angular update\n public readonly change$ = new Subject<void>();\n\n public get computedSide(): 'end' | 'start' {\n return this.linesLimit > 1 ? 'end' : this.side;\n }\n\n public ngOnChanges(): void {\n this.change$.next();\n }\n\n protected maxWidth(): number {\n return Math.max(...Array.from(this.el.children, ({clientWidth}) => clientWidth));\n }\n}\n","import {inject, Injectable} from '@angular/core';\nimport {MutationObserverService} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {debounceTime, distinctUntilChanged, map, merge, Observable, share} from 'rxjs';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\n\n@Injectable()\nexport class TuiItemsWithMoreService extends Observable<number> {\n private readonly el = tuiInjectElement();\n private readonly directive = inject(TuiItemsWithMoreDirective);\n\n protected readonly stream$ = merge(\n this.directive.change$,\n inject(MutationObserverService, {self: true}),\n inject(ResizeObserverService, {self: true}),\n ).pipe(\n debounceTime(0, tuiZonefreeScheduler()),\n map(() =>\n this.directive.linesLimit > 1\n ? this.getOverflowIndexMultiline()\n : this.getOverflowIndex(Array.from(this.el.children)),\n ),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n share(),\n );\n\n constructor() {\n super((subscriber) => this.stream$.subscribe(subscriber));\n }\n\n private getOverflowIndex(children: Element[]): number {\n const {computedSide, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const items = Array.from(children, ({clientWidth}) => clientWidth);\n const index = computedSide === 'start' ? 0 : items.length - 1;\n const more = children[index]?.tagName === 'SPAN' ? (items[index] ?? 0) : 0;\n const total = items.reduce((sum, width) => sum + width, 0) - more;\n\n if (total <= clientWidth && itemsLimit >= items.length) {\n return computedSide === 'end' ? itemsLimit : 0;\n }\n\n return computedSide === 'start'\n ? this.getIndexStart(items, total, more)\n : this.getIndexEnd(items, total, more);\n }\n\n private getIndexStart(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const min = Number.isFinite(itemsLimit) ? items.length - itemsLimit - 1 : 0;\n const last = items.length - 1;\n const mandatory = required === -1 ? last : required;\n\n for (let i = 1; i < last; i++) {\n if (i === mandatory + 1) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i, mandatory < min ? min + 1 : min, items.length);\n }\n }\n\n return items.length;\n }\n\n private getIndexEnd(items: number[], total: number, more: number): number {\n const {required, itemsLimit} = this.directive;\n const {clientWidth} = this.el;\n const max = itemsLimit > required ? itemsLimit - 1 : itemsLimit - 2;\n const last = items.length - 1;\n const mandatory = required === -1 ? 0 : required;\n\n for (let i = last - 1; i > 0; i--) {\n if (i === mandatory) {\n continue;\n }\n\n total -= items[i] ?? 0;\n\n if (total + more <= clientWidth) {\n return tuiClamp(i - 1, -1, max);\n }\n }\n\n return -1;\n }\n\n private getOverflowIndexMultiline(): number {\n const {children} = this.el;\n const {linesLimit, itemsLimit} = this.directive;\n const items = Array.from(children) as HTMLElement[];\n const rows = new Set(items.map((item) => item.offsetTop));\n const offset = Array.from(rows)[linesLimit - 1];\n const firstItemLastRow = items.findIndex((i) => i.offsetTop === offset);\n const lastRow = items.slice(firstItemLastRow);\n const index = firstItemLastRow + this.getOverflowIndex(lastRow);\n\n return Math.min(itemsLimit - 1, index);\n }\n}\n","import {Directive} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiMore]',\n})\nexport class TuiMore {\n public static ngTemplateContextGuard(\n _dir: TuiMore,\n _ctx: unknown,\n ): _ctx is TuiContext<number> {\n return true;\n }\n}\n","import {AsyncPipe, NgTemplateOutlet} from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n inject,\n Output,\n type QueryList,\n TemplateRef,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {\n MutationObserverService,\n WA_MUTATION_OBSERVER_INIT,\n} from '@ng-web-apis/mutation-observer';\nimport {ResizeObserverService} from '@ng-web-apis/resize-observer';\nimport {EMPTY_QUERY} from '@taiga-ui/cdk/constants';\nimport {TuiItem} from '@taiga-ui/cdk/directives/item';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiItemsWithMoreService} from './items-with-more.service';\nimport {TuiMore} from './more.directive';\n\n@Component({\n selector: 'tui-items-with-more',\n imports: [AsyncPipe, NgTemplateOutlet],\n templateUrl: './items-with-more.template.html',\n styleUrl: './items-with-more.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n MutationObserverService,\n ResizeObserverService,\n TuiItemsWithMoreService,\n {\n provide: WA_MUTATION_OBSERVER_INIT,\n useValue: {\n childList: true,\n characterData: true,\n subtree: true,\n },\n },\n ],\n hostDirectives: [\n {\n directive: TuiItemsWithMoreDirective,\n inputs: ['itemsLimit', 'required', 'side', 'linesLimit'],\n },\n ],\n})\nexport class TuiItemsWithMoreComponent {\n @ContentChildren(TuiItem, {read: TemplateRef, descendants: true})\n protected readonly items: QueryList<TemplateRef<unknown>> = EMPTY_QUERY;\n\n @ContentChild(TuiMore, {read: TemplateRef})\n protected readonly more?: TemplateRef<TuiContext<number>>;\n\n protected readonly directive = inject(TuiItemsWithMoreDirective);\n\n @Output()\n public readonly lastIndexChange = inject(TuiItemsWithMoreService);\n\n public readonly lastIndex = toSignal(this.lastIndexChange, {\n initialValue: 0,\n });\n\n protected get isMoreHidden(): boolean {\n const {computedSide} = this.directive;\n\n return (\n (this.lastIndex() >= this.items.length - 1 && computedSide === 'end') ||\n (!this.lastIndex() && computedSide === 'start')\n );\n }\n\n protected isHidden(index: number): boolean {\n const {computedSide, required} = this.directive;\n\n return (\n (index > this.lastIndex() && index !== required && computedSide === 'end') ||\n (index < this.lastIndex() && index !== required && computedSide === 'start')\n );\n }\n}\n","@if (items.changes | async) {}\n@if (directive.side === 'start') {\n <ng-container [ngTemplateOutlet]=\"template\" />\n}\n@for (item of items; track item) {\n <div\n class=\"t-item\"\n [class.t-item_hidden]=\"isHidden($index)\"\n >\n <ng-container *ngTemplateOutlet=\"item\" />\n </div>\n}\n@if (directive.side === 'end') {\n <ng-container [ngTemplateOutlet]=\"template\" />\n}\n<ng-template #template>\n @if (!isMoreHidden) {\n <span class=\"t-item t-item_more\">\n <ng-container\n [ngTemplateOutlet]=\"more || null\"\n [ngTemplateOutletContext]=\"{$implicit: lastIndex()}\"\n />\n </span>\n }\n</ng-template>\n","import {TuiItem} from '@taiga-ui/cdk/directives/item';\n\nimport {TuiItemsWithMoreComponent} from './items-with-more.component';\nimport {TuiItemsWithMoreDirective} from './items-with-more.directive';\nimport {TuiMore} from './more.directive';\n\nexport const TuiItemsWithMore = [\n TuiItemsWithMoreComponent,\n TuiItemsWithMoreDirective,\n TuiMore,\n TuiItem,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';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ular/core';
2
- import { inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
3
- import { tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
2
+ import { input, inject, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
4
3
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
4
  import { tuiAppearanceOptionsProvider, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
6
- import { tuiInjectIconResolver } from '@taiga-ui/core/tokens';
5
+ import * as i2 from '@taiga-ui/core/directives/icons';
6
+ import { TuiIcons } from '@taiga-ui/core/directives/icons';
7
+ import { TUI_ICON_START, TUI_ICON_END } from '@taiga-ui/core/tokens';
7
8
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
8
9
 
9
10
  const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] = tuiCreateOptions({
@@ -17,41 +18,47 @@ const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] = tuiCreateOptions({
17
18
 
18
19
  class TuiLike {
19
20
  constructor() {
20
- this.options = inject(TUI_LIKE_OPTIONS);
21
- this.resolver = tuiInjectIconResolver();
22
- this.color = '';
23
- this.uncheckedIcon = this.options.icons.unchecked;
24
- this.checkedIcon = this.options.icons.checked;
25
- this.size = this.options.size;
21
+ this.color = input('', { alias: 'tuiLike' });
22
+ this.size = input(inject(TUI_LIKE_OPTIONS).size);
26
23
  }
27
- getIcon(state) {
28
- const option = state === 'checked' ? this.checkedIcon : this.uncheckedIcon;
29
- const icon = tuiIsString(option) ? option : option(this.size);
30
- return icon && `url(${this.resolver(icon)})`;
31
- }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLike, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLike, isStandalone: true, selector: "input[tuiLike][type=checkbox]", inputs: { color: ["tuiLike", "color"], uncheckedIcon: "uncheckedIcon", checkedIcon: "checkedIcon", size: "size" }, host: { attributes: { "tuiLike": "" }, properties: { "attr.data-size": "size", "attr.data-mode": "\"\"", "style.--t-icon-color": "color", "style.--t-unchecked-icon": "getIcon(\"unchecked\")", "style.--t-checked-icon": "getIcon(\"checked\")" } }, providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0, template: '', isInline: true, styles: ["[tuiLike]{--t-size: var(--tui-height-m);--t-border-width: .75rem;inline-size:var(--t-size);block-size:var(--t-size);border:var(--t-border-width) transparent solid;border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";background:currentColor;-webkit-mask:var(--t-unchecked-icon) no-repeat center / contain;mask:var(--t-unchecked-icon) no-repeat center / contain}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{--t-size: var(--tui-height-s);--t-border-width: .5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLike, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.15", type: TuiLike, isStandalone: true, selector: "input[tuiLike][type=checkbox]", inputs: { color: { classPropertyName: "color", publicName: "tuiLike", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiLike": "" }, properties: { "attr.data-size": "size()", "attr.data-mode": "\"\"", "style.--t-icon-color": "color()" } }, providers: [
26
+ tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS),
27
+ {
28
+ provide: TUI_ICON_START,
29
+ useFactory: () => inject(TUI_LIKE_OPTIONS).icons.unchecked,
30
+ },
31
+ {
32
+ provide: TUI_ICON_END,
33
+ useFactory: () => inject(TUI_LIKE_OPTIONS).icons.checked,
34
+ },
35
+ ], hostDirectives: [{ directive: i1.TuiWithAppearance }, { directive: i2.TuiIcons, inputs: ["iconStart", "uncheckedIcon", "iconEnd", "checkedIcon"] }], ngImport: i0, template: '', isInline: true, styles: ["[tuiLike]{inline-size:1em;block-size:1em;font-size:var(--tui-height-m);border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;font-size:1.25rem;transition-property:transform,opacity}[tuiLike]:after{opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{font-size:var(--tui-height-s)}[tuiLike][data-size=s]:before,[tuiLike][data-size=s]:after{font-size:1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
34
36
  }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLike, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLike, decorators: [{
36
38
  type: Component,
37
- args: [{ standalone: true, selector: 'input[tuiLike][type=checkbox]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)], hostDirectives: [TuiWithAppearance], host: {
39
+ args: [{ standalone: true, selector: 'input[tuiLike][type=checkbox]', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
40
+ tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS),
41
+ {
42
+ provide: TUI_ICON_START,
43
+ useFactory: () => inject(TUI_LIKE_OPTIONS).icons.unchecked,
44
+ },
45
+ {
46
+ provide: TUI_ICON_END,
47
+ useFactory: () => inject(TUI_LIKE_OPTIONS).icons.checked,
48
+ },
49
+ ], hostDirectives: [
50
+ TuiWithAppearance,
51
+ {
52
+ directive: TuiIcons,
53
+ inputs: ['iconStart: uncheckedIcon', 'iconEnd: checkedIcon'],
54
+ },
55
+ ], host: {
38
56
  tuiLike: '',
39
- '[attr.data-size]': 'size',
57
+ '[attr.data-size]': 'size()',
40
58
  '[attr.data-mode]': '""',
41
- '[style.--t-icon-color]': 'color',
42
- '[style.--t-unchecked-icon]': 'getIcon("unchecked")',
43
- '[style.--t-checked-icon]': 'getIcon("checked")',
44
- }, styles: ["[tuiLike]{--t-size: var(--tui-height-m);--t-border-width: .75rem;inline-size:var(--t-size);block-size:var(--t-size);border:var(--t-border-width) transparent solid;border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;transition-property:transform,opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:\"\";background:currentColor;-webkit-mask:var(--t-unchecked-icon) no-repeat center / contain;mask:var(--t-unchecked-icon) no-repeat center / contain}[tuiLike]:after{-webkit-mask-image:var(--t-checked-icon);mask-image:var(--t-checked-icon);opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{--t-size: var(--tui-height-s);--t-border-width: .5rem}\n"] }]
45
- }], propDecorators: { color: [{
46
- type: Input,
47
- args: ['tuiLike']
48
- }], uncheckedIcon: [{
49
- type: Input
50
- }], checkedIcon: [{
51
- type: Input
52
- }], size: [{
53
- type: Input
54
- }] } });
59
+ '[style.--t-icon-color]': 'color()',
60
+ }, styles: ["[tuiLike]{inline-size:1em;block-size:1em;font-size:var(--tui-height-m);border-radius:100%;cursor:pointer;margin:0;flex-shrink:0}[tuiLike]:before,[tuiLike]:after{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;font-size:1.25rem;transition-property:transform,opacity}[tuiLike]:after{opacity:0;color:var(--t-icon-color, inherit);transform:scale(0)}[tuiLike]:checked:before{opacity:0}[tuiLike]:checked:after{opacity:1;transform:scale(1);transition-timing-function:cubic-bezier(.2,.6,.5,1.8),ease-in-out}[tuiLike][data-size=s]{font-size:var(--tui-height-s)}[tuiLike][data-size=s]:before,[tuiLike][data-size=s]:after{font-size:1rem}\n"] }]
61
+ }] });
55
62
 
56
63
  /**
57
64
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-like.mjs","sources":["../../../projects/kit/components/like/like.options.ts","../../../projects/kit/components/like/like.component.ts","../../../projects/kit/components/like/taiga-ui-kit-components-like.ts"],"sourcesContent":["import {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiLikeOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeS;\n readonly icons: Readonly<{\n checked: TuiStringHandler<TuiSizeS> | string;\n unchecked: TuiStringHandler<TuiSizeS> | string;\n }>;\n}\n\nexport const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] =\n tuiCreateOptions<TuiLikeOptions>({\n size: 'm',\n appearance: 'secondary',\n icons: {\n unchecked: '@tui.heart',\n checked: '@tui.heart-filled',\n },\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {type TuiStringHandler} from '@taiga-ui/cdk/types';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {tuiInjectIconResolver} from '@taiga-ui/core/tokens';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nimport {TUI_LIKE_OPTIONS, type TuiLikeOptions} from './like.options';\n\n@Component({\n standalone: true,\n selector: 'input[tuiLike][type=checkbox]',\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/like.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS)],\n hostDirectives: [TuiWithAppearance],\n host: {\n tuiLike: '',\n '[attr.data-size]': 'size',\n '[attr.data-mode]': '\"\"',\n '[style.--t-icon-color]': 'color',\n '[style.--t-unchecked-icon]': 'getIcon(\"unchecked\")',\n '[style.--t-checked-icon]': 'getIcon(\"checked\")',\n },\n})\nexport class TuiLike {\n private readonly options = inject(TUI_LIKE_OPTIONS);\n private readonly resolver = tuiInjectIconResolver();\n\n @Input('tuiLike')\n public color = '';\n\n @Input()\n public uncheckedIcon: TuiStringHandler<TuiSizeS> | string =\n this.options.icons.unchecked;\n\n @Input()\n public checkedIcon: TuiStringHandler<TuiSizeS> | string = this.options.icons.checked;\n\n @Input()\n public size: TuiSizeS = this.options.size;\n\n protected getIcon(state: keyof TuiLikeOptions['icons']): string {\n const option = state === 'checked' ? this.checkedIcon : this.uncheckedIcon;\n const icon = tuiIsString(option) ? option : option(this.size);\n\n return icon && `url(${this.resolver(icon)})`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"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AA,CAAA;sBADX,KAAK;uBAAC,SAAS,CAAA;gBAIT,aAAa,EAAA,CAAA;sBADnB,KAAK;gBAKC,WAAW,EAAA,CAAA;sBADjB,KAAK;gBAIC,IAAI,EAAA,CAAA;sBADV,KAAK;;;AClDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-like.mjs","sources":["../../../projects/kit/components/like/like.options.ts","../../../projects/kit/components/like/like.component.ts","../../../projects/kit/components/like/taiga-ui-kit-components-like.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives';\nimport {type TuiSizeS} from '@taiga-ui/core/types';\n\nexport interface TuiLikeOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeS;\n readonly icons: Readonly<{\n checked: string;\n unchecked: string;\n }>;\n}\n\nexport const [TUI_LIKE_OPTIONS, tuiLikeOptionsProvider] =\n tuiCreateOptions<TuiLikeOptions>({\n size: 'm',\n appearance: 'secondary',\n icons: {\n unchecked: '@tui.heart',\n checked: '@tui.heart-filled',\n },\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_ICON_END, TUI_ICON_START} from '@taiga-ui/core/tokens';\n\nimport {TUI_LIKE_OPTIONS} from './like.options';\n\n@Component({\n standalone: true,\n selector: 'input[tuiLike][type=checkbox]',\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/like.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n tuiAppearanceOptionsProvider(TUI_LIKE_OPTIONS),\n {\n provide: TUI_ICON_START,\n useFactory: () => inject(TUI_LIKE_OPTIONS).icons.unchecked,\n },\n {\n provide: TUI_ICON_END,\n useFactory: () => inject(TUI_LIKE_OPTIONS).icons.checked,\n },\n ],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiIcons,\n inputs: ['iconStart: uncheckedIcon', 'iconEnd: checkedIcon'],\n },\n ],\n host: {\n tuiLike: '',\n '[attr.data-size]': 'size()',\n '[attr.data-mode]': '\"\"',\n '[style.--t-icon-color]': 'color()',\n },\n})\nexport class TuiLike {\n public readonly color = input('', {alias: 'tuiLike'});\n public readonly size = input(inject(TUI_LIKE_OPTIONS).size);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAYa,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,GACnD,gBAAgB,CAAiB;AAC7B,IAAA,IAAI,EAAE,GAAG;AACT,IAAA,UAAU,EAAE,WAAW;AACvB,IAAA,KAAK,EAAE;AACH,QAAA,SAAS,EAAE,YAAY;AACvB,QAAA,OAAO,EAAE,mBAAmB;AAC/B,KAAA;AACJ,CAAA;;MC4BQ,OAAO,CAAA;AAhCpB,IAAA,WAAA,GAAA;QAiCoB,IAAK,CAAA,KAAA,GAAG,KAAK,CAAC,EAAE,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC;QACrC,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC;AAC9D;+GAHY,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAP,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,OAAO,EAzBL,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,SAAA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AA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,+BAA+B,EAC/B,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;wBACP,4BAA4B,CAAC,gBAAgB,CAAC;AAC9C,wBAAA;AACI,4BAAA,OAAO,EAAE,cAAc;4BACvB,UAAU,EAAE,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,SAAS;AAC7D,yBAAA;AACD,wBAAA;AACI,4BAAA,OAAO,EAAE,YAAY;4BACrB,UAAU,EAAE,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,OAAO;AAC3D,yBAAA;qBACJ,EACe,cAAA,EAAA;wBACZ,iBAAiB;AACjB,wBAAA;AACI,4BAAA,SAAS,EAAE,QAAQ;AACnB,4BAAA,MAAM,EAAE,CAAC,0BAA0B,EAAE,sBAAsB,CAAC;AAC/D,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,OAAO,EAAE,EAAE;AACX,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,kBAAkB,EAAE,IAAI;AACxB,wBAAA,wBAAwB,EAAE,SAAS;AACtC,qBAAA,EAAA,MAAA,EAAA,CAAA,soBAAA,CAAA,EAAA;;;AC9CL;;AAEG;;;;"}
@@ -1,15 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Component, ChangeDetectionStrategy, inject, Directive, ChangeDetectorRef, signal, ElementRef, ViewChild, Input, Output } from '@angular/core';
3
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
2
+ import { InjectionToken, ChangeDetectionStrategy, Component, inject, Directive, viewChild, ElementRef, computed, input } from '@angular/core';
3
+ import { outputFromObservable, toSignal, toObservable } from '@angular/core/rxjs-interop';
4
+ import * as i1 from '@taiga-ui/cdk/directives/transitioned';
5
+ import { TuiTransitioned } from '@taiga-ui/cdk/directives/transitioned';
5
6
  import { tuiInjectElement, tuiIsCurrentTarget } from '@taiga-ui/cdk/utils/dom';
6
- import * as i1$1 from '@taiga-ui/core/directives/hint';
7
- import { TuiHintBaseComponent, TUI_HINT_PROVIDERS, TuiHintDirective, TUI_HINT_COMPONENT, TuiHint } from '@taiga-ui/core/directives/hint';
7
+ import { tuiProvideOptions, tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
8
+ import * as i2 from '@taiga-ui/core/directives/hint';
9
+ import { TuiHintComponent, TUI_HINT_PROVIDERS, TuiHintDirective, TUI_HINT_COMPONENT, TuiHint } from '@taiga-ui/core/directives/hint';
8
10
  import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
9
- import { BehaviorSubject, Subject, startWith, pairwise, switchMap, of, filter, map, debounceTime, distinctUntilChanged } from 'rxjs';
10
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
11
- import * as i1 from '@taiga-ui/cdk/directives/animated';
12
- import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
11
+ import { Subject, debounceTime, distinctUntilChanged, startWith, pairwise, switchMap, of, fromEvent, filter, map } from 'rxjs';
13
12
  import { TuiPositionAccessor, tuiAsPositionAccessor } from '@taiga-ui/core/classes';
14
13
 
15
14
  const TUI_LINE_CLAMP_DEFAULT_OPTIONS = {
@@ -25,22 +24,16 @@ function tuiLineClampOptionsProvider(options) {
25
24
  return tuiProvideOptions(TUI_LINE_CLAMP_OPTIONS, options, TUI_LINE_CLAMP_DEFAULT_OPTIONS);
26
25
  }
27
26
 
28
- class TuiLineClampBox extends TuiHintBaseComponent {
27
+ class TuiLineClampBox extends TuiHintComponent {
29
28
  get width() {
30
29
  return this.accessor.getClientRect().width;
31
30
  }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
34
- <ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>
35
- `, isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:-webkit-min-content;inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, ngImport: i0, template: '<ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>', isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
33
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampBox, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, decorators: [{
38
35
  type: Component,
39
- args: [{ standalone: true, selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: `
40
- <ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>
41
- `, changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, hostDirectives: [TuiAnimated], host: {
42
- '[style.min-width.px]': 'width',
43
- }, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:-webkit-min-content;inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"] }]
36
+ args: [{ selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: '<ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>', changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, host: { '[style.min-width.px]': 'width' }, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"] }]
44
37
  }] });
45
38
 
46
39
  class TuiLineClampPositionDirective extends TuiPositionAccessor {
@@ -53,10 +46,10 @@ class TuiLineClampPositionDirective extends TuiPositionAccessor {
53
46
  const { top, left } = this.accessor.getClientRect();
54
47
  return [top, left];
55
48
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
57
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClampPositionDirective, isStandalone: true, selector: "[tuiLineClampPosition]", providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)], usesInheritance: true, ngImport: i0 }); }
49
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
50
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLineClampPositionDirective, isStandalone: true, selector: "[tuiLineClampPosition]", providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)], usesInheritance: true, ngImport: i0 }); }
58
51
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
60
53
  type: Directive,
61
54
  args: [{
62
55
  standalone: true,
@@ -67,85 +60,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
67
60
 
68
61
  class TuiLineClamp {
69
62
  constructor() {
63
+ this.outlet = viewChild.required(TuiHintDirective, { read: ElementRef });
70
64
  this.options = inject(TUI_LINE_CLAMP_OPTIONS);
71
65
  this.el = tuiInjectElement();
72
- this.cd = inject(ChangeDetectorRef);
73
- this.linesLimit$ = new BehaviorSubject(1);
74
66
  this.isOverflown$ = new Subject();
75
- this.initialized = signal(false);
76
- this.maxHeight = signal(0);
77
- this.height = signal(0);
78
- this.lineClamp = toSignal(this.linesLimit$.pipe(startWith(1), pairwise(), switchMap(([prev, next]) => next >= prev
67
+ this.maxHeight = computed(() => this.lineHeight() * this.linesLimit());
68
+ this.lineHeight = input(24);
69
+ this.linesLimit = input(1);
70
+ this.content = input();
71
+ this.overflownChange = outputFromObservable(this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged()));
72
+ this.lineClamp = toSignal(toObservable(this.linesLimit).pipe(startWith(1), pairwise(), switchMap(([prev, next]) => next >= prev
79
73
  ? of(next)
80
- : tuiTypedFromEvent(this.el, 'transitionend').pipe(filter(tuiIsCurrentTarget), map(() => next))), takeUntilDestroyed()), { initialValue: 0 });
81
- this.lineHeight = 24;
82
- this.overflownChange = this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged());
83
- }
84
- set linesLimit(linesLimit) {
85
- this.linesLimit$.next(linesLimit);
74
+ : fromEvent(this.el, 'transitionend').pipe(filter(tuiIsCurrentTarget), map(() => next)))), { initialValue: 0 });
86
75
  }
87
76
  ngDoCheck() {
88
77
  this.update();
89
78
  this.isOverflown$.next(this.overflown);
90
79
  }
91
- ngAfterViewInit() {
92
- this.initialized.set(true);
93
- }
94
80
  get overflown() {
95
- if (!this.outlet) {
96
- return false;
97
- }
98
- const { scrollHeight, scrollWidth } = this.outlet.nativeElement;
81
+ const { scrollHeight, scrollWidth } = this.outlet().nativeElement;
99
82
  const { clientWidth } = this.el;
100
83
  return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;
101
84
  }
102
85
  get computedContent() {
103
- return this.options.showHint && this.overflown ? this.content : '';
104
- }
105
- updateView() {
106
- this.cd.detectChanges();
86
+ return this.options.showHint && this.overflown ? this.content() : '';
107
87
  }
108
88
  update() {
109
- if (this.outlet) {
110
- this.height.set(this.outlet.nativeElement.scrollHeight);
111
- }
112
- this.maxHeight.set(this.lineHeight * this.linesLimit$.value);
89
+ this.el.style.height = tuiPx(this.outlet().nativeElement.scrollHeight);
90
+ this.el.style.maxHeight = tuiPx(this.maxHeight());
91
+ this.el.classList.toggle('_overflown', this.overflown);
113
92
  }
114
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
115
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: "lineHeight", content: "content", linesLimit: "linesLimit" }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "updateView()", "mouseenter": "updateView()", "resize": "updateView()" }, properties: { "style.height.px": "height()", "style.max-height.px": "maxHeight()", "class._initialized": "initialized()" } }, providers: [
116
- {
117
- provide: TUI_HINT_COMPONENT,
118
- useValue: TuiLineClampBox,
119
- },
120
- ], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{position:relative;display:block;overflow:hidden}:host._initialized{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-wrapper{display:-webkit-box;-webkit-box-orient:block-axis;overflow:hidden;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i1$1.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
93
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
94
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null }, linesLimit: { classPropertyName: "linesLimit", publicName: "linesLimit", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "update()", "mouseenter": "update()", "resize": "update()" } }, providers: [{ provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox }], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TuiTransitioned }], ngImport: i0, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:block;overflow:hidden}:host._overflown .t-wrapper{-webkit-box-orient:block-axis}.t-wrapper{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
121
95
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClamp, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, decorators: [{
123
97
  type: Component,
124
- args: [{ standalone: true, selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
125
- {
126
- provide: TUI_HINT_COMPONENT,
127
- useValue: TuiLineClampBox,
128
- },
129
- ], host: {
130
- '[style.height.px]': 'height()',
131
- '[style.max-height.px]': 'maxHeight()',
132
- '[class._initialized]': 'initialized()',
133
- '(transitionend)': 'updateView()',
134
- '(mouseenter)': 'updateView()',
135
- '(resize)': 'updateView()',
136
- }, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{position:relative;display:block;overflow:hidden}:host._initialized{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-wrapper{display:-webkit-box;-webkit-box-orient:block-axis;overflow:hidden;overflow-wrap:anywhere}\n"] }]
137
- }], propDecorators: { outlet: [{
138
- type: ViewChild,
139
- args: [TuiHintDirective, { read: ElementRef }]
140
- }], lineHeight: [{
141
- type: Input
142
- }], content: [{
143
- type: Input
144
- }], overflownChange: [{
145
- type: Output
146
- }], linesLimit: [{
147
- type: Input
148
- }] } });
98
+ args: [{ selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox }], hostDirectives: [TuiTransitioned], host: {
99
+ '(transitionend)': 'update()',
100
+ '(mouseenter)': 'update()',
101
+ '(resize)': 'update()',
102
+ }, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:block;overflow:hidden}:host._overflown .t-wrapper{-webkit-box-orient:block-axis}.t-wrapper{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}\n"] }]
103
+ }] });
149
104
 
150
105
  /**
151
106
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TUI_HINT_PROVIDERS, TuiHintBaseComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template: `\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n `,\n styleUrls: ['./line-clamp-box.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n hostDirectives: [TuiAnimated],\n host: {\n '[style.min-width.px]': 'width',\n },\n})\nexport class TuiLineClampBox extends TuiHintBaseComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n type DoCheck,\n ElementRef,\n inject,\n Input,\n Output,\n signal,\n ViewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n BehaviorSubject,\n debounceTime,\n distinctUntilChanged,\n filter,\n map,\n type Observable,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n standalone: true,\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrls: ['./line-clamp.style.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: TUI_HINT_COMPONENT,\n useValue: TuiLineClampBox,\n },\n ],\n host: {\n '[style.height.px]': 'height()',\n '[style.max-height.px]': 'maxHeight()',\n '[class._initialized]': 'initialized()',\n '(transitionend)': 'updateView()',\n '(mouseenter)': 'updateView()',\n '(resize)': 'updateView()',\n },\n})\nexport class TuiLineClamp implements DoCheck, AfterViewInit {\n @ViewChild(TuiHintDirective, {read: ElementRef})\n private readonly outlet?: ElementRef<HTMLElement>;\n\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly cd = inject(ChangeDetectorRef);\n private readonly linesLimit$ = new BehaviorSubject(1);\n private readonly isOverflown$ = new Subject<boolean>();\n protected initialized = signal(false);\n protected maxHeight = signal(0);\n protected height = signal(0);\n\n protected lineClamp = toSignal(\n this.linesLimit$.pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : tuiTypedFromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n takeUntilDestroyed(),\n ),\n {initialValue: 0},\n );\n\n @Input()\n public lineHeight = 24;\n\n @Input()\n public content: PolymorpheusContent;\n\n @Output()\n public readonly overflownChange: Observable<boolean> = this.isOverflown$.pipe(\n debounceTime(0),\n distinctUntilChanged(),\n );\n\n @Input()\n public set linesLimit(linesLimit: number) {\n this.linesLimit$.next(linesLimit);\n }\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n public ngAfterViewInit(): void {\n this.initialized.set(true);\n }\n\n protected get overflown(): boolean {\n if (!this.outlet) {\n return false;\n }\n\n const {scrollHeight, scrollWidth} = this.outlet.nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content : '';\n }\n\n protected updateView(): void {\n this.cd.detectChanges();\n }\n\n private update(): void {\n if (this.outlet) {\n this.height.set(this.outlet.nativeElement.scrollHeight);\n }\n\n this.maxHeight.set(this.lineHeight * this.linesLimit$.value);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAOa,MA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A,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;4FAmB3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAtBxB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,EAAA,UAAA,EAAA,IAAI,EACN,QAAA,EAAA,gBAAgB,EACjB,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAAA,eAAA,EAGpD,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,kBAAkB;AAC3B,4BAAA,QAAQ,EAAE,eAAe;AAC5B,yBAAA;qBACJ,EACK,IAAA,EAAA;AACF,wBAAA,mBAAmB,EAAE,UAAU;AAC/B,wBAAA,uBAAuB,EAAE,aAAa;AACtC,wBAAA,sBAAsB,EAAE,eAAe;AACvC,wBAAA,iBAAiB,EAAE,cAAc;AACjC,wBAAA,cAAc,EAAE,cAAc;AAC9B,wBAAA,UAAU,EAAE,cAAc;AAC7B,qBAAA,EAAA,QAAA,EAAA,uTAAA,EAAA,MAAA,EAAA,CAAA,oSAAA,CAAA,EAAA,CAAA;8BAIgB,MAAM,EAAA,CAAA;sBADtB,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC,CAAA;gBA8BxC,UAAU,EAAA,CAAA;sBADhB,KAAK;gBAIC,OAAO,EAAA,CAAA;sBADb,KAAK;gBAIU,eAAe,EAAA,CAAA;sBAD9B,MAAM;gBAOI,UAAU,EAAA,CAAA;sBADpB,KAAK;;;AExGV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const TUI_LINE_CLAMP_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_LINE_CLAMP_OPTIONS' : '',\n {\n factory: () => TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiLineClampOptionsProvider(\n options: Partial<TuiLineClampOptions>,\n): Provider {\n return tuiProvideOptions(\n TUI_LINE_CLAMP_OPTIONS,\n options,\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n );\n}\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TUI_HINT_PROVIDERS, TuiHintComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template:\n '<ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>',\n styleUrl: './line-clamp-box.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n host: {'[style.min-width.px]': 'width'},\n})\nexport class TuiLineClampBox extends TuiHintComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n standalone: true,\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n type DoCheck,\n ElementRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport {outputFromObservable, toObservable, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n debounceTime,\n distinctUntilChanged,\n filter,\n fromEvent,\n map,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrl: './line-clamp.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox}],\n hostDirectives: [TuiTransitioned],\n host: {\n '(transitionend)': 'update()',\n '(mouseenter)': 'update()',\n '(resize)': 'update()',\n },\n})\nexport class TuiLineClamp implements DoCheck {\n private readonly outlet = viewChild.required(TuiHintDirective, {read: ElementRef});\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly isOverflown$ = new Subject<boolean>();\n private readonly maxHeight = computed(() => this.lineHeight() * this.linesLimit());\n\n public readonly lineHeight = input(24);\n public readonly linesLimit = input(1);\n public readonly content = input<PolymorpheusContent>();\n public readonly overflownChange = outputFromObservable(\n this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged()),\n );\n\n protected readonly lineClamp = toSignal(\n toObservable(this.linesLimit).pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : fromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n ),\n {initialValue: 0},\n );\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n protected get overflown(): boolean {\n const {scrollHeight, scrollWidth} = this.outlet().nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content() : '';\n }\n\n protected update(): void {\n this.el.style.height = tuiPx(this.outlet().nativeElement.scrollHeight);\n this.el.style.maxHeight = tuiPx(this.maxHeight());\n this.el.classList.toggle('_overflown', this.overflown);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAOa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;;AAGlB;;AAEG;AACU,MAAA,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,MAAM,8BAA8B;AAChD,CAAA;AAGC,SAAU,2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EAAE,UAAU;AAC7B,wBAAA,cAAc,EAAE,UAAU;AAC1B,wBAAA,UAAU,EAAE,UAAU;AACzB,qBAAA,EAAA,QAAA,EAAA,yTAAA,EAAA,MAAA,EAAA,CAAA,6SAAA,CAAA,EAAA;;;AEjDL;;AAEG;;;;"}
@@ -1,32 +1,30 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Directive } from '@angular/core';
2
+ import { ChangeDetectionStrategy, ViewEncapsulation, Component, Directive } from '@angular/core';
3
3
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
4
4
  import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
6
6
 
7
- class TuiMessageStyles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessageStyles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
7
+ class Styles {
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessageStyles, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
12
12
  type: Component,
13
- args: [{ standalone: true, template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
14
- class: 'tui-message',
15
- }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:-webkit-fit-content;inline-size:-moz-fit-content;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;-webkit-text-decoration:underline solid!important;text-decoration:underline solid!important}\n"] }]
13
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-message' }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"] }]
16
14
  }] });
17
15
  class TuiMessage {
18
16
  constructor() {
19
- this.nothing = tuiWithStyles(TuiMessageStyles);
17
+ this.nothing = tuiWithStyles(Styles);
20
18
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
23
21
  {
24
22
  provide: TUI_APPEARANCE_OPTIONS,
25
23
  useValue: { appearance: 'neutral' },
26
24
  },
27
25
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0 }); }
28
26
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMessage, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMessage, decorators: [{
30
28
  type: Directive,
31
29
  args: [{
32
30
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n standalone: true,\n template: '',\n styles: ['@import \"@taiga-ui/kit/styles/components/message.less\";'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tui-message',\n },\n})\nclass TuiMessageStyles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(TuiMessageStyles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAUM,gBAAgB,CAAA;+GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,iHARR,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,+cAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;;4FAQV,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAVrB,SAAS;iCACM,IAAI,EAAA,QAAA,EACN,EAAE,EAAA,aAAA,EAEG,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,KAAK,EAAE,aAAa;AACvB,qBAAA,EAAA,MAAA,EAAA,CAAA,+cAAA,CAAA,EAAA,CAAA;;AAIL,MAWa,UAAU,CAAA;AAXvB,IAAA,WAAA,GAAA;AAYuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AAChE,KAAA;+GAFY,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAV,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,UAAU,EARR,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,SAAA,EAAA;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,sBAAsB;AAC/B,gBAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,aAAA;AACJ,SAAA,EAAA,cAAA,EAAA,CAAA,EAAA,SAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAGQ,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,sBAAsB;AAC/B,4BAAA,QAAQ,EAAE,EAAC,UAAU,EAAE,SAAS,EAAC;AACpC,yBAAA;AACJ,qBAAA;oBACD,cAAc,EAAE,CAAC,iBAAiB,CAAC;AACtC,iBAAA,CAAA;;;AClCD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/message.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-message'},\n})\nclass Styles {}\n\n@Directive({\n standalone: true,\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,iHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gWAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,aAAa,EAAC,EAAA,MAAA,EAAA,CAAA,gWAAA,CAAA,EAAA;;MAenB,UAAU,CAA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