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

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 (806) hide show
  1. package/components/avatar/avatar-outline.directive.d.ts +3 -3
  2. package/components/avatar/avatar.directive.d.ts +15 -0
  3. package/components/avatar/avatar.options.d.ts +1 -4
  4. package/components/avatar/index.d.ts +1 -1
  5. package/components/badge/badge.directive.d.ts +2 -2
  6. package/components/block/block.directive.d.ts +4 -4
  7. package/components/block/block.options.d.ts +1 -1
  8. package/components/calendar-month/calendar-month.options.d.ts +1 -1
  9. package/components/checkbox/checkbox.component.d.ts +7 -18
  10. package/components/checkbox/checkbox.options.d.ts +5 -9
  11. package/components/chip/chip.directive.d.ts +2 -4
  12. package/components/comment/comment.directive.d.ts +2 -2
  13. package/components/confirm/confirm.component.d.ts +1 -0
  14. package/components/confirm/confirm.service.d.ts +2 -1
  15. package/{directives → components}/copy/copy.directive.d.ts +1 -2
  16. package/{directives → components}/copy/copy.options.d.ts +2 -2
  17. package/components/files/file/file.options.d.ts +1 -1
  18. package/components/floating-container/floating-container.directive.d.ts +2 -2
  19. package/components/fullscreen/fullscreen.component.d.ts +14 -0
  20. package/components/fullscreen/index.d.ts +1 -0
  21. package/components/index.d.ts +4 -1
  22. package/components/input-chip/input-chip.options.d.ts +1 -1
  23. package/components/input-color/input-color.component.d.ts +2 -1
  24. package/components/input-color/input-color.options.d.ts +1 -1
  25. package/components/input-date/input-date.directive.d.ts +1 -1
  26. package/components/input-date/input-date.options.d.ts +1 -1
  27. package/components/input-number/input-number.options.d.ts +1 -1
  28. package/components/input-number/quantum.directive.d.ts +2 -2
  29. package/components/input-phone/input-phone.options.d.ts +1 -1
  30. package/components/input-slider/input-slider.directive.d.ts +1 -1
  31. package/components/input-time/input-time.options.d.ts +1 -1
  32. package/components/like/like.component.d.ts +4 -11
  33. package/components/like/like.options.d.ts +3 -4
  34. package/components/line-clamp/line-clamp.component.d.ts +6 -10
  35. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +2 -2
  36. package/components/notification-middle/index.d.ts +3 -0
  37. package/components/notification-middle/notification-middle.component.d.ts +16 -0
  38. package/components/notification-middle/notification-middle.directive.d.ts +7 -0
  39. package/components/notification-middle/notification-middle.service.d.ts +7 -0
  40. package/components/pager/pager.component.d.ts +1 -1
  41. package/components/pin/pin.directive.d.ts +2 -2
  42. package/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.d.ts +1 -2
  43. package/components/progress/progress-segmented/progress-segmented.directive.d.ts +2 -2
  44. package/components/push/push.component.d.ts +1 -1
  45. package/components/radio/radio.component.d.ts +7 -8
  46. package/components/radio/radio.directive.d.ts +2 -2
  47. package/components/radio/radio.options.d.ts +2 -5
  48. package/components/rating/rating.component.d.ts +5 -5
  49. package/components/rating/rating.options.d.ts +5 -3
  50. package/components/segmented/segmented.component.d.ts +5 -5
  51. package/components/slides/slides.directive.d.ts +4 -4
  52. package/components/status/status.directive.d.ts +2 -2
  53. package/components/switch/switch.component.d.ts +7 -19
  54. package/components/switch/switch.options.d.ts +4 -8
  55. package/components/textarea/textarea-limit.directive.d.ts +0 -1
  56. package/components/textarea/textarea.options.d.ts +1 -1
  57. package/components/toast/index.d.ts +5 -0
  58. package/components/toast/toast.component.d.ts +17 -0
  59. package/components/toast/toast.d.ts +3 -0
  60. package/components/toast/toast.directive.d.ts +7 -0
  61. package/components/toast/toast.options.d.ts +8 -0
  62. package/components/toast/toast.service.d.ts +16 -0
  63. package/components/tree/components/tree-item/tree-item.component.d.ts +1 -1
  64. package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +1 -6
  65. package/directives/chevron/chevron.directive.d.ts +2 -3
  66. package/directives/fade/fade.directive.d.ts +1 -0
  67. package/directives/highlight/highlight.directive.d.ts +2 -2
  68. package/directives/index.d.ts +0 -2
  69. package/directives/password/password.options.d.ts +1 -1
  70. package/directives/sensitive/sensitive.directive.d.ts +2 -2
  71. package/directives/shimmer/shimmer.directive.d.ts +3 -3
  72. package/directives/skeleton/skeleton.directive.d.ts +3 -3
  73. package/directives/tooltip/tooltip.directive.d.ts +2 -2
  74. package/directives/tooltip/tooltip.options.d.ts +2 -2
  75. package/fesm2022/taiga-ui-kit-components-accordion.mjs +16 -17
  76. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +8 -8
  78. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-avatar.mjs +81 -100
  80. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  82. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-badge.mjs +15 -21
  84. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +8 -8
  86. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-block.mjs +17 -24
  88. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +8 -10
  90. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +4 -5
  92. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +6 -8
  94. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +10 -10
  96. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-kit-components-carousel.mjs +21 -23
  98. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +19 -76
  100. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-kit-components-chip.mjs +22 -27
  102. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +4 -4
  104. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-kit-components-comment.mjs +13 -20
  106. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  108. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-kit-components-confirm.mjs +14 -15
  110. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  111. package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +13 -14
  112. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -0
  113. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +13 -14
  114. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-drawer.mjs +7 -7
  116. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +8 -8
  118. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-kit-components-files.mjs +32 -34
  120. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-kit-components-filter.mjs +7 -16
  122. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +13 -19
  124. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +65 -0
  126. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
  127. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +22 -19
  128. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-input-color.mjs +12 -15
  130. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -6
  132. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +4 -4
  134. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +8 -9
  136. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-kit-components-input-date.mjs +15 -16
  138. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +6 -6
  140. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +5 -5
  142. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-components-input-month.mjs +11 -12
  144. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-components-input-number.mjs +30 -29
  146. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +13 -16
  148. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +9 -10
  150. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  151. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +9 -8
  152. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  153. package/fesm2022/taiga-ui-kit-components-input-range.mjs +14 -24
  154. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  155. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +13 -16
  156. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  157. package/fesm2022/taiga-ui-kit-components-input-time.mjs +14 -14
  158. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  159. package/fesm2022/taiga-ui-kit-components-input-year.mjs +6 -6
  160. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  161. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +18 -18
  162. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs.map +1 -1
  163. package/fesm2022/taiga-ui-kit-components-like.mjs +40 -33
  164. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  165. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +33 -39
  166. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  167. package/fesm2022/taiga-ui-kit-components-message.mjs +10 -12
  168. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  169. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +40 -37
  170. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  171. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +90 -0
  172. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -0
  173. package/fesm2022/taiga-ui-kit-components-pager.mjs +8 -8
  174. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  175. package/fesm2022/taiga-ui-kit-components-pagination.mjs +8 -8
  176. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  177. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs +11 -11
  178. package/fesm2022/taiga-ui-kit-components-pdf-viewer.mjs.map +1 -1
  179. package/fesm2022/taiga-ui-kit-components-pin.mjs +15 -19
  180. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +11 -11
  182. package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-preview.mjs +33 -35
  184. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-progress.mjs +39 -52
  186. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-pulse.mjs +4 -4
  188. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-push.mjs +20 -20
  190. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +7 -8
  192. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-radio.mjs +34 -39
  194. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-range.mjs +9 -9
  196. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-rating.mjs +17 -22
  198. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +5 -5
  200. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  201. package/fesm2022/taiga-ui-kit-components-segmented.mjs +8 -8
  202. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  203. package/fesm2022/taiga-ui-kit-components-select.mjs +17 -17
  204. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  205. package/fesm2022/taiga-ui-kit-components-slider.mjs +21 -22
  206. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  207. package/fesm2022/taiga-ui-kit-components-slides.mjs +14 -22
  208. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +1 -1
  209. package/fesm2022/taiga-ui-kit-components-status.mjs +12 -16
  210. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  211. package/fesm2022/taiga-ui-kit-components-stepper.mjs +12 -12
  212. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  213. package/fesm2022/taiga-ui-kit-components-switch.mjs +19 -65
  214. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  215. package/fesm2022/taiga-ui-kit-components-tabs.mjs +34 -37
  216. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-textarea.mjs +17 -19
  218. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-tiles.mjs +13 -13
  220. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-toast.mjs +166 -0
  222. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
  223. package/fesm2022/taiga-ui-kit-components-tree.mjs +35 -51
  224. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components.mjs +4 -1
  226. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  228. package/fesm2022/taiga-ui-kit-directives-button-close.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +10 -13
  230. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  232. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +13 -20
  234. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-directives-connected.mjs +10 -15
  236. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +4 -4
  238. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-directives-fade.mjs +11 -14
  240. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  241. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +4 -4
  242. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +5 -5
  244. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +8 -9
  246. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-directives-password.mjs +6 -6
  248. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  249. package/fesm2022/taiga-ui-kit-directives-present.mjs +4 -4
  250. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  251. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +13 -18
  252. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  253. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +24 -34
  254. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  255. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +27 -38
  256. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  257. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +13 -18
  258. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +5 -6
  260. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +4 -4
  262. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives.mjs +0 -2
  264. package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
  265. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  266. package/fesm2022/taiga-ui-kit-pipes-emails.mjs.map +1 -1
  267. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +3 -3
  268. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  269. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  270. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  272. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  274. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  276. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs.map +1 -1
  277. package/fesm2022/taiga-ui-kit-pipes.mjs +0 -1
  278. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -9
  280. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
  282. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  283. package/package.json +41 -251
  284. package/pipes/index.d.ts +0 -1
  285. package/styles/components/avatar.less +188 -0
  286. package/styles/components/badge.less +3 -18
  287. package/styles/components/block.less +1 -1
  288. package/styles/components/checkbox.less +17 -16
  289. package/styles/components/chip.less +7 -3
  290. package/styles/components/like.less +15 -17
  291. package/styles/components/pin.less +3 -7
  292. package/styles/components/radio.less +2 -2
  293. package/styles/components/switch.less +12 -12
  294. package/styles/components/toast.less +44 -0
  295. package/tokens/index.d.ts +0 -1
  296. package/tokens/input-date-options.d.ts +1 -1
  297. package/components/avatar/avatar.component.d.ts +0 -15
  298. package/components/input-password/index.d.ts +0 -2
  299. package/components/input-password/input-password.component.d.ts +0 -16
  300. package/components/input-password/input-password.options.d.ts +0 -24
  301. package/directives/icon-badge/icon-badge.directive.d.ts +0 -9
  302. package/directives/icon-badge/index.d.ts +0 -1
  303. package/esm2022/components/accordion/accordion-item-content.directive.mjs +0 -16
  304. package/esm2022/components/accordion/accordion-item-eager-content.directive.mjs +0 -15
  305. package/esm2022/components/accordion/accordion-item.component.mjs +0 -85
  306. package/esm2022/components/accordion/accordion.directive.mjs +0 -56
  307. package/esm2022/components/accordion/accordion.mjs +0 -11
  308. package/esm2022/components/accordion/index.mjs +0 -6
  309. package/esm2022/components/accordion/taiga-ui-kit-components-accordion.mjs +0 -5
  310. package/esm2022/components/action-bar/action-bar.component.mjs +0 -36
  311. package/esm2022/components/action-bar/action-bar.directive.mjs +0 -17
  312. package/esm2022/components/action-bar/action-bar.mjs +0 -4
  313. package/esm2022/components/action-bar/index.mjs +0 -4
  314. package/esm2022/components/action-bar/taiga-ui-kit-components-action-bar.mjs +0 -5
  315. package/esm2022/components/avatar/avatar-labeled.component.mjs +0 -47
  316. package/esm2022/components/avatar/avatar-outline.directive.mjs +0 -41
  317. package/esm2022/components/avatar/avatar-stack.component.mjs +0 -19
  318. package/esm2022/components/avatar/avatar.component.mjs +0 -59
  319. package/esm2022/components/avatar/avatar.options.mjs +0 -14
  320. package/esm2022/components/avatar/index.mjs +0 -6
  321. package/esm2022/components/avatar/taiga-ui-kit-components-avatar.mjs +0 -5
  322. package/esm2022/components/badge/badge.directive.mjs +0 -42
  323. package/esm2022/components/badge/badge.options.mjs +0 -13
  324. package/esm2022/components/badge/index.mjs +0 -3
  325. package/esm2022/components/badge/taiga-ui-kit-components-badge.mjs +0 -5
  326. package/esm2022/components/badge-notification/badge-notification.component.mjs +0 -22
  327. package/esm2022/components/badge-notification/badge-notification.options.mjs +0 -12
  328. package/esm2022/components/badge-notification/index.mjs +0 -3
  329. package/esm2022/components/badge-notification/taiga-ui-kit-components-badge-notification.mjs +0 -5
  330. package/esm2022/components/badged-content/badge-content.mjs +0 -7
  331. package/esm2022/components/badged-content/badged-content.component.mjs +0 -30
  332. package/esm2022/components/badged-content/badged-content.directive.mjs +0 -20
  333. package/esm2022/components/badged-content/index.mjs +0 -4
  334. package/esm2022/components/badged-content/taiga-ui-kit-components-badged-content.mjs +0 -5
  335. package/esm2022/components/block/block.directive.mjs +0 -58
  336. package/esm2022/components/block/block.options.mjs +0 -13
  337. package/esm2022/components/block/index.mjs +0 -3
  338. package/esm2022/components/block/taiga-ui-kit-components-block.mjs +0 -5
  339. package/esm2022/components/breadcrumbs/breadcrumbs.component.mjs +0 -69
  340. package/esm2022/components/breadcrumbs/breadcrumbs.options.mjs +0 -14
  341. package/esm2022/components/breadcrumbs/index.mjs +0 -3
  342. package/esm2022/components/breadcrumbs/taiga-ui-kit-components-breadcrumbs.mjs +0 -5
  343. package/esm2022/components/button-loading/button-loading.component.mjs +0 -70
  344. package/esm2022/components/button-loading/index.mjs +0 -2
  345. package/esm2022/components/button-loading/taiga-ui-kit-components-button-loading.mjs +0 -5
  346. package/esm2022/components/calendar-month/calendar-month.component.mjs +0 -186
  347. package/esm2022/components/calendar-month/calendar-month.options.mjs +0 -6
  348. package/esm2022/components/calendar-month/index.mjs +0 -3
  349. package/esm2022/components/calendar-month/taiga-ui-kit-components-calendar-month.mjs +0 -5
  350. package/esm2022/components/calendar-range/calculate-disabled-item-handler.mjs +0 -12
  351. package/esm2022/components/calendar-range/calendar-range.component.mjs +0 -224
  352. package/esm2022/components/calendar-range/day-caps-mapper.mjs +0 -26
  353. package/esm2022/components/calendar-range/day-range-period.mjs +0 -36
  354. package/esm2022/components/calendar-range/index.mjs +0 -5
  355. package/esm2022/components/calendar-range/taiga-ui-kit-components-calendar-range.mjs +0 -5
  356. package/esm2022/components/carousel/carousel-autoscroll.directive.mjs +0 -21
  357. package/esm2022/components/carousel/carousel-buttons.directive.mjs +0 -27
  358. package/esm2022/components/carousel/carousel-scroll.directive.mjs +0 -27
  359. package/esm2022/components/carousel/carousel.component.mjs +0 -166
  360. package/esm2022/components/carousel/carousel.directive.mjs +0 -37
  361. package/esm2022/components/carousel/carousel.mjs +0 -15
  362. package/esm2022/components/carousel/index.mjs +0 -7
  363. package/esm2022/components/carousel/taiga-ui-kit-components-carousel.mjs +0 -5
  364. package/esm2022/components/checkbox/checkbox.component.mjs +0 -74
  365. package/esm2022/components/checkbox/checkbox.options.mjs +0 -17
  366. package/esm2022/components/checkbox/index.mjs +0 -3
  367. package/esm2022/components/checkbox/taiga-ui-kit-components-checkbox.mjs +0 -5
  368. package/esm2022/components/chip/chip.directive.mjs +0 -63
  369. package/esm2022/components/chip/chip.options.mjs +0 -13
  370. package/esm2022/components/chip/index.mjs +0 -3
  371. package/esm2022/components/chip/taiga-ui-kit-components-chip.mjs +0 -5
  372. package/esm2022/components/combo-box/combo-box.directive.mjs +0 -139
  373. package/esm2022/components/combo-box/index.mjs +0 -2
  374. package/esm2022/components/combo-box/taiga-ui-kit-components-combo-box.mjs +0 -5
  375. package/esm2022/components/comment/comment.directive.mjs +0 -35
  376. package/esm2022/components/comment/index.mjs +0 -2
  377. package/esm2022/components/comment/taiga-ui-kit-components-comment.mjs +0 -5
  378. package/esm2022/components/compass/compass.component.mjs +0 -19
  379. package/esm2022/components/compass/index.mjs +0 -2
  380. package/esm2022/components/compass/taiga-ui-kit-components-compass.mjs +0 -5
  381. package/esm2022/components/confirm/confirm.component.mjs +0 -29
  382. package/esm2022/components/confirm/confirm.service.mjs +0 -32
  383. package/esm2022/components/confirm/index.mjs +0 -3
  384. package/esm2022/components/confirm/taiga-ui-kit-components-confirm.mjs +0 -5
  385. package/esm2022/components/data-list-wrapper/data-list-group-wrapper.component.mjs +0 -25
  386. package/esm2022/components/data-list-wrapper/data-list-wrapper.component.mjs +0 -86
  387. package/esm2022/components/data-list-wrapper/data-list-wrapper.module.mjs +0 -9
  388. package/esm2022/components/data-list-wrapper/index.mjs +0 -4
  389. package/esm2022/components/data-list-wrapper/taiga-ui-kit-components-data-list-wrapper.mjs +0 -5
  390. package/esm2022/components/drawer/drawer.component.mjs +0 -44
  391. package/esm2022/components/drawer/index.mjs +0 -2
  392. package/esm2022/components/drawer/taiga-ui-kit-components-drawer.mjs +0 -5
  393. package/esm2022/components/elastic-container/elastic-container.component.mjs +0 -28
  394. package/esm2022/components/elastic-container/elastic-container.directive.mjs +0 -48
  395. package/esm2022/components/elastic-container/index.mjs +0 -3
  396. package/esm2022/components/elastic-container/taiga-ui-kit-components-elastic-container.mjs +0 -5
  397. package/esm2022/components/files/file/file.component.mjs +0 -144
  398. package/esm2022/components/files/file/file.options.mjs +0 -16
  399. package/esm2022/components/files/files/files.component.mjs +0 -49
  400. package/esm2022/components/files/files.mjs +0 -15
  401. package/esm2022/components/files/files.types.mjs +0 -2
  402. package/esm2022/components/files/files.utils.mjs +0 -30
  403. package/esm2022/components/files/files.validators.mjs +0 -32
  404. package/esm2022/components/files/index.mjs +0 -13
  405. package/esm2022/components/files/input-files/input-files-validator.directive.mjs +0 -45
  406. package/esm2022/components/files/input-files/input-files.component.mjs +0 -70
  407. package/esm2022/components/files/input-files/input-files.content.mjs +0 -73
  408. package/esm2022/components/files/input-files/input-files.directive.mjs +0 -77
  409. package/esm2022/components/files/input-files/input-files.options.mjs +0 -19
  410. package/esm2022/components/files/pipes/file-rejected.pipe.mjs +0 -51
  411. package/esm2022/components/files/taiga-ui-kit-components-files.mjs +0 -5
  412. package/esm2022/components/filter/filter.component.mjs +0 -65
  413. package/esm2022/components/filter/index.mjs +0 -2
  414. package/esm2022/components/filter/taiga-ui-kit-components-filter.mjs +0 -5
  415. package/esm2022/components/floating-container/floating-container.directive.mjs +0 -37
  416. package/esm2022/components/floating-container/index.mjs +0 -2
  417. package/esm2022/components/floating-container/taiga-ui-kit-components-floating-container.mjs +0 -5
  418. package/esm2022/components/index.mjs +0 -72
  419. package/esm2022/components/input-chip/index.mjs +0 -5
  420. package/esm2022/components/input-chip/input-chip.component.mjs +0 -101
  421. package/esm2022/components/input-chip/input-chip.directive.mjs +0 -138
  422. package/esm2022/components/input-chip/input-chip.mjs +0 -4
  423. package/esm2022/components/input-chip/input-chip.options.mjs +0 -7
  424. package/esm2022/components/input-chip/taiga-ui-kit-components-input-chip.mjs +0 -5
  425. package/esm2022/components/input-color/index.mjs +0 -3
  426. package/esm2022/components/input-color/input-color.component.mjs +0 -89
  427. package/esm2022/components/input-color/input-color.options.mjs +0 -6
  428. package/esm2022/components/input-color/taiga-ui-kit-components-input-color.mjs +0 -5
  429. package/esm2022/components/input-date/date-filler.mjs +0 -20
  430. package/esm2022/components/input-date/index.mjs +0 -6
  431. package/esm2022/components/input-date/input-date.component.mjs +0 -33
  432. package/esm2022/components/input-date/input-date.directive.mjs +0 -167
  433. package/esm2022/components/input-date/input-date.mjs +0 -9
  434. package/esm2022/components/input-date/input-date.options.mjs +0 -11
  435. package/esm2022/components/input-date/taiga-ui-kit-components-input-date.mjs +0 -5
  436. package/esm2022/components/input-date-multi/index.mjs +0 -3
  437. package/esm2022/components/input-date-multi/input-date-multi.directive.mjs +0 -123
  438. package/esm2022/components/input-date-multi/input-date-multi.mjs +0 -9
  439. package/esm2022/components/input-date-multi/taiga-ui-kit-components-input-date-multi.mjs +0 -5
  440. package/esm2022/components/input-date-range/index.mjs +0 -4
  441. package/esm2022/components/input-date-range/input-date-range.directive.mjs +0 -79
  442. package/esm2022/components/input-date-range/input-date-range.mjs +0 -4
  443. package/esm2022/components/input-date-range/input-date-range.options.mjs +0 -12
  444. package/esm2022/components/input-date-range/taiga-ui-kit-components-input-date-range.mjs +0 -5
  445. package/esm2022/components/input-date-time/index.mjs +0 -5
  446. package/esm2022/components/input-date-time/input-date-time.component.mjs +0 -35
  447. package/esm2022/components/input-date-time/input-date-time.directive.mjs +0 -178
  448. package/esm2022/components/input-date-time/input-date-time.mjs +0 -9
  449. package/esm2022/components/input-date-time/input-date-time.options.mjs +0 -20
  450. package/esm2022/components/input-date-time/taiga-ui-kit-components-input-date-time.mjs +0 -5
  451. package/esm2022/components/input-inline/index.mjs +0 -2
  452. package/esm2022/components/input-inline/input-inline.component.mjs +0 -23
  453. package/esm2022/components/input-inline/taiga-ui-kit-components-input-inline.mjs +0 -5
  454. package/esm2022/components/input-month/index.mjs +0 -5
  455. package/esm2022/components/input-month/input-month.component.mjs +0 -53
  456. package/esm2022/components/input-month/input-month.directive.mjs +0 -65
  457. package/esm2022/components/input-month/input-month.mjs +0 -9
  458. package/esm2022/components/input-month/input-month.options.mjs +0 -19
  459. package/esm2022/components/input-month/taiga-ui-kit-components-input-month.mjs +0 -5
  460. package/esm2022/components/input-month-range/index.mjs +0 -4
  461. package/esm2022/components/input-month-range/input-month-range.directive.mjs +0 -86
  462. package/esm2022/components/input-month-range/input-month-range.mjs +0 -7
  463. package/esm2022/components/input-month-range/input-month-range.options.mjs +0 -13
  464. package/esm2022/components/input-month-range/taiga-ui-kit-components-input-month-range.mjs +0 -5
  465. package/esm2022/components/input-number/index.mjs +0 -6
  466. package/esm2022/components/input-number/input-number.directive.mjs +0 -196
  467. package/esm2022/components/input-number/input-number.mjs +0 -9
  468. package/esm2022/components/input-number/input-number.options.mjs +0 -15
  469. package/esm2022/components/input-number/quantum.directive.mjs +0 -68
  470. package/esm2022/components/input-number/step/input-number-step.component.mjs +0 -58
  471. package/esm2022/components/input-number/taiga-ui-kit-components-input-number.mjs +0 -5
  472. package/esm2022/components/input-password/index.mjs +0 -3
  473. package/esm2022/components/input-password/input-password.component.mjs +0 -69
  474. package/esm2022/components/input-password/input-password.options.mjs +0 -24
  475. package/esm2022/components/input-password/taiga-ui-kit-components-input-password.mjs +0 -5
  476. package/esm2022/components/input-phone/index.mjs +0 -3
  477. package/esm2022/components/input-phone/input-phone.directive.mjs +0 -137
  478. package/esm2022/components/input-phone/input-phone.options.mjs +0 -9
  479. package/esm2022/components/input-phone/taiga-ui-kit-components-input-phone.mjs +0 -5
  480. package/esm2022/components/input-phone/utils/complete-phone-insertion-preprocessor.mjs +0 -41
  481. package/esm2022/components/input-phone/utils/create-phone-mask-expression.mjs +0 -17
  482. package/esm2022/components/input-phone-international/index.mjs +0 -3
  483. package/esm2022/components/input-phone-international/input-phone-international.component.mjs +0 -210
  484. package/esm2022/components/input-phone-international/input-phone-international.options.mjs +0 -19
  485. package/esm2022/components/input-phone-international/taiga-ui-kit-components-input-phone-international.mjs +0 -5
  486. package/esm2022/components/input-pin/index.mjs +0 -2
  487. package/esm2022/components/input-pin/input-pin.component.mjs +0 -65
  488. package/esm2022/components/input-pin/taiga-ui-kit-components-input-pin.mjs +0 -5
  489. package/esm2022/components/input-range/index.mjs +0 -3
  490. package/esm2022/components/input-range/input-range.component.mjs +0 -166
  491. package/esm2022/components/input-range/input-range.mjs +0 -4
  492. package/esm2022/components/input-range/taiga-ui-kit-components-input-range.mjs +0 -5
  493. package/esm2022/components/input-slider/index.mjs +0 -3
  494. package/esm2022/components/input-slider/input-slider.directive.mjs +0 -114
  495. package/esm2022/components/input-slider/input-slider.mjs +0 -9
  496. package/esm2022/components/input-slider/taiga-ui-kit-components-input-slider.mjs +0 -5
  497. package/esm2022/components/input-time/index.mjs +0 -5
  498. package/esm2022/components/input-time/input-time.component.mjs +0 -64
  499. package/esm2022/components/input-time/input-time.directive.mjs +0 -159
  500. package/esm2022/components/input-time/input-time.mjs +0 -4
  501. package/esm2022/components/input-time/input-time.options.mjs +0 -10
  502. package/esm2022/components/input-time/taiga-ui-kit-components-input-time.mjs +0 -5
  503. package/esm2022/components/input-year/index.mjs +0 -4
  504. package/esm2022/components/input-year/input-year.directive.mjs +0 -103
  505. package/esm2022/components/input-year/input-year.mjs +0 -4
  506. package/esm2022/components/input-year/input-year.options.mjs +0 -12
  507. package/esm2022/components/input-year/taiga-ui-kit-components-input-year.mjs +0 -5
  508. package/esm2022/components/items-with-more/index.mjs +0 -6
  509. package/esm2022/components/items-with-more/items-with-more.component.mjs +0 -77
  510. package/esm2022/components/items-with-more/items-with-more.directive.mjs +0 -46
  511. package/esm2022/components/items-with-more/items-with-more.mjs +0 -11
  512. package/esm2022/components/items-with-more/items-with-more.service.mjs +0 -85
  513. package/esm2022/components/items-with-more/more.directive.mjs +0 -18
  514. package/esm2022/components/items-with-more/taiga-ui-kit-components-items-with-more.mjs +0 -5
  515. package/esm2022/components/like/index.mjs +0 -3
  516. package/esm2022/components/like/like.component.mjs +0 -46
  517. package/esm2022/components/like/like.options.mjs +0 -10
  518. package/esm2022/components/like/taiga-ui-kit-components-like.mjs +0 -5
  519. package/esm2022/components/line-clamp/index.mjs +0 -4
  520. package/esm2022/components/line-clamp/line-clamp-box.component.mjs +0 -25
  521. package/esm2022/components/line-clamp/line-clamp-position.directive.mjs +0 -27
  522. package/esm2022/components/line-clamp/line-clamp.component.mjs +0 -95
  523. package/esm2022/components/line-clamp/line-clamp.options.mjs +0 -15
  524. package/esm2022/components/line-clamp/taiga-ui-kit-components-line-clamp.mjs +0 -5
  525. package/esm2022/components/message/index.mjs +0 -2
  526. package/esm2022/components/message/message.directive.mjs +0 -43
  527. package/esm2022/components/message/taiga-ui-kit-components-message.mjs +0 -5
  528. package/esm2022/components/multi-select/index.mjs +0 -6
  529. package/esm2022/components/multi-select/multi-select-group/multi-select-group.component.mjs +0 -50
  530. package/esm2022/components/multi-select/multi-select-group/multi-select-group.directive.mjs +0 -18
  531. package/esm2022/components/multi-select/multi-select-native/multi-select-native.component.mjs +0 -56
  532. package/esm2022/components/multi-select/multi-select-option/multi-select-option.component.mjs +0 -47
  533. package/esm2022/components/multi-select/multi-select.mjs +0 -9
  534. package/esm2022/components/multi-select/taiga-ui-kit-components-multi-select.mjs +0 -5
  535. package/esm2022/components/pager/index.mjs +0 -2
  536. package/esm2022/components/pager/pager.component.mjs +0 -97
  537. package/esm2022/components/pager/taiga-ui-kit-components-pager.mjs +0 -5
  538. package/esm2022/components/pagination/index.mjs +0 -2
  539. package/esm2022/components/pagination/pagination.component.mjs +0 -213
  540. package/esm2022/components/pagination/taiga-ui-kit-components-pagination.mjs +0 -5
  541. package/esm2022/components/pdf-viewer/index.mjs +0 -5
  542. package/esm2022/components/pdf-viewer/pdf-viewer.component.mjs +0 -28
  543. package/esm2022/components/pdf-viewer/pdf-viewer.directive.mjs +0 -21
  544. package/esm2022/components/pdf-viewer/pdf-viewer.options.mjs +0 -17
  545. package/esm2022/components/pdf-viewer/pdf-viewer.service.mjs +0 -22
  546. package/esm2022/components/pdf-viewer/taiga-ui-kit-components-pdf-viewer.mjs +0 -5
  547. package/esm2022/components/pin/index.mjs +0 -2
  548. package/esm2022/components/pin/pin.directive.mjs +0 -35
  549. package/esm2022/components/pin/taiga-ui-kit-components-pin.mjs +0 -5
  550. package/esm2022/components/preview/action/preview-action.directive.mjs +0 -30
  551. package/esm2022/components/preview/dialog/index.mjs +0 -4
  552. package/esm2022/components/preview/dialog/preview-dialog.component.mjs +0 -28
  553. package/esm2022/components/preview/dialog/preview-dialog.directive.mjs +0 -21
  554. package/esm2022/components/preview/dialog/preview-dialog.service.mjs +0 -18
  555. package/esm2022/components/preview/dialog/taiga-ui-kit-components-preview-dialog.mjs +0 -5
  556. package/esm2022/components/preview/index.mjs +0 -8
  557. package/esm2022/components/preview/pagination/preview-pagination.component.mjs +0 -49
  558. package/esm2022/components/preview/preview.component.mjs +0 -142
  559. package/esm2022/components/preview/preview.mjs +0 -13
  560. package/esm2022/components/preview/taiga-ui-kit-components-preview.mjs +0 -5
  561. package/esm2022/components/preview/title/preview-title.component.mjs +0 -16
  562. package/esm2022/components/preview/zoom/preview-zoom.component.mjs +0 -81
  563. package/esm2022/components/progress/index.mjs +0 -9
  564. package/esm2022/components/progress/progress-bar/fixed-gradient/progress-fixed-gradient.directive.mjs +0 -39
  565. package/esm2022/components/progress/progress-bar/progress-bar.component.mjs +0 -25
  566. package/esm2022/components/progress/progress-bar/progress-color-segments.directive.mjs +0 -40
  567. package/esm2022/components/progress/progress-circle/progress-circle.component.mjs +0 -45
  568. package/esm2022/components/progress/progress-label/progress-label.component.mjs +0 -12
  569. package/esm2022/components/progress/progress-segmented/progress-segmented.directive.mjs +0 -34
  570. package/esm2022/components/progress/progress.mjs +0 -15
  571. package/esm2022/components/progress/progress.options.mjs +0 -13
  572. package/esm2022/components/progress/taiga-ui-kit-components-progress.mjs +0 -5
  573. package/esm2022/components/pulse/index.mjs +0 -2
  574. package/esm2022/components/pulse/pulse.component.mjs +0 -34
  575. package/esm2022/components/pulse/taiga-ui-kit-components-pulse.mjs +0 -5
  576. package/esm2022/components/push/index.mjs +0 -7
  577. package/esm2022/components/push/push-alert.component.mjs +0 -29
  578. package/esm2022/components/push/push.component.mjs +0 -39
  579. package/esm2022/components/push/push.directive.mjs +0 -33
  580. package/esm2022/components/push/push.mjs +0 -5
  581. package/esm2022/components/push/push.options.mjs +0 -21
  582. package/esm2022/components/push/push.service.mjs +0 -19
  583. package/esm2022/components/push/taiga-ui-kit-components-push.mjs +0 -5
  584. package/esm2022/components/radio/index.mjs +0 -5
  585. package/esm2022/components/radio/radio.component.mjs +0 -53
  586. package/esm2022/components/radio/radio.directive.mjs +0 -32
  587. package/esm2022/components/radio/radio.mjs +0 -4
  588. package/esm2022/components/radio/radio.options.mjs +0 -13
  589. package/esm2022/components/radio/taiga-ui-kit-components-radio.mjs +0 -5
  590. package/esm2022/components/radio-list/index.mjs +0 -2
  591. package/esm2022/components/radio-list/radio-list.component.mjs +0 -64
  592. package/esm2022/components/radio-list/taiga-ui-kit-components-radio-list.mjs +0 -5
  593. package/esm2022/components/range/index.mjs +0 -3
  594. package/esm2022/components/range/range-change.directive.mjs +0 -78
  595. package/esm2022/components/range/range.component.mjs +0 -164
  596. package/esm2022/components/range/taiga-ui-kit-components-range.mjs +0 -5
  597. package/esm2022/components/rating/index.mjs +0 -3
  598. package/esm2022/components/rating/rating.component.mjs +0 -65
  599. package/esm2022/components/rating/rating.options.mjs +0 -13
  600. package/esm2022/components/rating/taiga-ui-kit-components-rating.mjs +0 -5
  601. package/esm2022/components/routable-dialog/generate-dialogable-route.mjs +0 -17
  602. package/esm2022/components/routable-dialog/index.mjs +0 -3
  603. package/esm2022/components/routable-dialog/routable-dialog.component.mjs +0 -53
  604. package/esm2022/components/routable-dialog/taiga-ui-kit-components-routable-dialog.mjs +0 -5
  605. package/esm2022/components/segmented/index.mjs +0 -3
  606. package/esm2022/components/segmented/segmented.component.mjs +0 -67
  607. package/esm2022/components/segmented/segmented.directive.mjs +0 -65
  608. package/esm2022/components/segmented/taiga-ui-kit-components-segmented.mjs +0 -5
  609. package/esm2022/components/select/index.mjs +0 -5
  610. package/esm2022/components/select/native-select/native-select.component.mjs +0 -57
  611. package/esm2022/components/select/select-option/select-option.component.mjs +0 -51
  612. package/esm2022/components/select/select.directive.mjs +0 -56
  613. package/esm2022/components/select/select.mjs +0 -4
  614. package/esm2022/components/select/taiga-ui-kit-components-select.mjs +0 -5
  615. package/esm2022/components/slider/helpers/key-steps.mjs +0 -36
  616. package/esm2022/components/slider/helpers/slider-key-steps.directive.mjs +0 -110
  617. package/esm2022/components/slider/helpers/slider-readonly.directive.mjs +0 -75
  618. package/esm2022/components/slider/helpers/slider-thumb-label.component.mjs +0 -38
  619. package/esm2022/components/slider/index.mjs +0 -8
  620. package/esm2022/components/slider/slider.component.mjs +0 -124
  621. package/esm2022/components/slider/slider.mjs +0 -12
  622. package/esm2022/components/slider/slider.options.mjs +0 -16
  623. package/esm2022/components/slider/taiga-ui-kit-components-slider.mjs +0 -5
  624. package/esm2022/components/slides/index.mjs +0 -2
  625. package/esm2022/components/slides/slides.directive.mjs +0 -51
  626. package/esm2022/components/slides/taiga-ui-kit-components-slides.mjs +0 -5
  627. package/esm2022/components/status/index.mjs +0 -2
  628. package/esm2022/components/status/status.directive.mjs +0 -35
  629. package/esm2022/components/status/taiga-ui-kit-components-status.mjs +0 -5
  630. package/esm2022/components/stepper/index.mjs +0 -4
  631. package/esm2022/components/stepper/step.component.mjs +0 -58
  632. package/esm2022/components/stepper/stepper.component.mjs +0 -118
  633. package/esm2022/components/stepper/stepper.mjs +0 -4
  634. package/esm2022/components/stepper/taiga-ui-kit-components-stepper.mjs +0 -5
  635. package/esm2022/components/switch/index.mjs +0 -3
  636. package/esm2022/components/switch/switch.component.mjs +0 -63
  637. package/esm2022/components/switch/switch.options.mjs +0 -15
  638. package/esm2022/components/switch/taiga-ui-kit-components-switch.mjs +0 -5
  639. package/esm2022/components/tabs/index.mjs +0 -9
  640. package/esm2022/components/tabs/tab.directive.mjs +0 -47
  641. package/esm2022/components/tabs/tabs-horizontal.directive.mjs +0 -108
  642. package/esm2022/components/tabs/tabs-vertical.directive.mjs +0 -38
  643. package/esm2022/components/tabs/tabs-with-more.component.mjs +0 -211
  644. package/esm2022/components/tabs/tabs.directive.mjs +0 -79
  645. package/esm2022/components/tabs/tabs.mjs +0 -15
  646. package/esm2022/components/tabs/tabs.options.mjs +0 -19
  647. package/esm2022/components/tabs/tabs.providers.mjs +0 -35
  648. package/esm2022/components/tabs/taiga-ui-kit-components-tabs.mjs +0 -5
  649. package/esm2022/components/taiga-ui-kit-components.mjs +0 -5
  650. package/esm2022/components/textarea/index.mjs +0 -4
  651. package/esm2022/components/textarea/taiga-ui-kit-components-textarea.mjs +0 -5
  652. package/esm2022/components/textarea/textarea-limit.directive.mjs +0 -94
  653. package/esm2022/components/textarea/textarea.component.mjs +0 -58
  654. package/esm2022/components/textarea/textarea.options.mjs +0 -7
  655. package/esm2022/components/tiles/index.mjs +0 -7
  656. package/esm2022/components/tiles/taiga-ui-kit-components-tiles.mjs +0 -5
  657. package/esm2022/components/tiles/tile-handle.directive.mjs +0 -60
  658. package/esm2022/components/tiles/tile.component.mjs +0 -69
  659. package/esm2022/components/tiles/tile.service.mjs +0 -90
  660. package/esm2022/components/tiles/tiles.component.mjs +0 -70
  661. package/esm2022/components/tiles/tiles.mjs +0 -5
  662. package/esm2022/components/tiles/tiles.tokens.mjs +0 -37
  663. package/esm2022/components/tree/components/tree/tree.component.mjs +0 -64
  664. package/esm2022/components/tree/components/tree-item/tree-item.component.mjs +0 -63
  665. package/esm2022/components/tree/components/tree-item-content/tree-item-content.component.mjs +0 -44
  666. package/esm2022/components/tree/directives/tree-children.directive.mjs +0 -24
  667. package/esm2022/components/tree/directives/tree-controller.directive.mjs +0 -57
  668. package/esm2022/components/tree/directives/tree-item-controller.directive.mjs +0 -32
  669. package/esm2022/components/tree/directives/tree-node.directive.mjs +0 -32
  670. package/esm2022/components/tree/index.mjs +0 -12
  671. package/esm2022/components/tree/misc/tree.constants.mjs +0 -9
  672. package/esm2022/components/tree/misc/tree.interfaces.mjs +0 -2
  673. package/esm2022/components/tree/misc/tree.service.mjs +0 -31
  674. package/esm2022/components/tree/misc/tree.tokens.mjs +0 -43
  675. package/esm2022/components/tree/taiga-ui-kit-components-tree.mjs +0 -5
  676. package/esm2022/components/tree/tree.mjs +0 -17
  677. package/esm2022/directives/button-close/button-close.directive.mjs +0 -33
  678. package/esm2022/directives/button-close/index.mjs +0 -2
  679. package/esm2022/directives/button-close/taiga-ui-kit-directives-button-close.mjs +0 -5
  680. package/esm2022/directives/button-group/button-group.directive.mjs +0 -29
  681. package/esm2022/directives/button-group/index.mjs +0 -2
  682. package/esm2022/directives/button-group/taiga-ui-kit-directives-button-group.mjs +0 -5
  683. package/esm2022/directives/button-select/button-select.directive.mjs +0 -48
  684. package/esm2022/directives/button-select/index.mjs +0 -2
  685. package/esm2022/directives/button-select/taiga-ui-kit-directives-button-select.mjs +0 -5
  686. package/esm2022/directives/chevron/chevron.directive.mjs +0 -45
  687. package/esm2022/directives/chevron/index.mjs +0 -2
  688. package/esm2022/directives/chevron/taiga-ui-kit-directives-chevron.mjs +0 -5
  689. package/esm2022/directives/connected/connected.directive.mjs +0 -32
  690. package/esm2022/directives/connected/index.mjs +0 -2
  691. package/esm2022/directives/connected/taiga-ui-kit-directives-connected.mjs +0 -5
  692. package/esm2022/directives/copy/copy.component.mjs +0 -48
  693. package/esm2022/directives/copy/copy.directive.mjs +0 -71
  694. package/esm2022/directives/copy/copy.mjs +0 -4
  695. package/esm2022/directives/copy/copy.options.mjs +0 -3
  696. package/esm2022/directives/copy/index.mjs +0 -6
  697. package/esm2022/directives/copy/taiga-ui-kit-directives-copy.mjs +0 -5
  698. package/esm2022/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.mjs +0 -105
  699. package/esm2022/directives/data-list-dropdown-manager/index.mjs +0 -2
  700. package/esm2022/directives/data-list-dropdown-manager/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +0 -5
  701. package/esm2022/directives/fade/fade.directive.mjs +0 -92
  702. package/esm2022/directives/fade/index.mjs +0 -2
  703. package/esm2022/directives/fade/taiga-ui-kit-directives-fade.mjs +0 -5
  704. package/esm2022/directives/fluid-typography/fluid-typography.directive.mjs +0 -63
  705. package/esm2022/directives/fluid-typography/fluid-typography.options.mjs +0 -13
  706. package/esm2022/directives/fluid-typography/index.mjs +0 -3
  707. package/esm2022/directives/fluid-typography/taiga-ui-kit-directives-fluid-typography.mjs +0 -5
  708. package/esm2022/directives/highlight/highlight.directive.mjs +0 -92
  709. package/esm2022/directives/highlight/index.mjs +0 -2
  710. package/esm2022/directives/highlight/taiga-ui-kit-directives-highlight.mjs +0 -5
  711. package/esm2022/directives/icon-badge/icon-badge.directive.mjs +0 -41
  712. package/esm2022/directives/icon-badge/index.mjs +0 -2
  713. package/esm2022/directives/icon-badge/taiga-ui-kit-directives-icon-badge.mjs +0 -5
  714. package/esm2022/directives/index.mjs +0 -21
  715. package/esm2022/directives/lazy-loading/index.mjs +0 -3
  716. package/esm2022/directives/lazy-loading/lazy-loading.directive.mjs +0 -58
  717. package/esm2022/directives/lazy-loading/lazy-loading.service.mjs +0 -23
  718. package/esm2022/directives/lazy-loading/taiga-ui-kit-directives-lazy-loading.mjs +0 -5
  719. package/esm2022/directives/password/index.mjs +0 -3
  720. package/esm2022/directives/password/password.directive.mjs +0 -67
  721. package/esm2022/directives/password/password.options.mjs +0 -8
  722. package/esm2022/directives/password/taiga-ui-kit-directives-password.mjs +0 -5
  723. package/esm2022/directives/present/index.mjs +0 -2
  724. package/esm2022/directives/present/present.directive.mjs +0 -33
  725. package/esm2022/directives/present/taiga-ui-kit-directives-present.mjs +0 -5
  726. package/esm2022/directives/sensitive/index.mjs +0 -2
  727. package/esm2022/directives/sensitive/sensitive.directive.mjs +0 -48
  728. package/esm2022/directives/sensitive/taiga-ui-kit-directives-sensitive.mjs +0 -5
  729. package/esm2022/directives/shimmer/index.mjs +0 -2
  730. package/esm2022/directives/shimmer/shimmer.directive.mjs +0 -68
  731. package/esm2022/directives/shimmer/taiga-ui-kit-directives-shimmer.mjs +0 -5
  732. package/esm2022/directives/skeleton/index.mjs +0 -2
  733. package/esm2022/directives/skeleton/skeleton.directive.mjs +0 -69
  734. package/esm2022/directives/skeleton/taiga-ui-kit-directives-skeleton.mjs +0 -5
  735. package/esm2022/directives/taiga-ui-kit-directives.mjs +0 -5
  736. package/esm2022/directives/tooltip/index.mjs +0 -3
  737. package/esm2022/directives/tooltip/taiga-ui-kit-directives-tooltip.mjs +0 -5
  738. package/esm2022/directives/tooltip/tooltip.directive.mjs +0 -92
  739. package/esm2022/directives/tooltip/tooltip.options.mjs +0 -6
  740. package/esm2022/directives/unfinished-validator/index.mjs +0 -3
  741. package/esm2022/directives/unfinished-validator/taiga-ui-kit-directives-unfinished-validator.mjs +0 -5
  742. package/esm2022/directives/unfinished-validator/unfinished-validator.directive.mjs +0 -36
  743. package/esm2022/directives/unfinished-validator/unfinished.validator.mjs +0 -7
  744. package/esm2022/directives/unmask-handler/index.mjs +0 -2
  745. package/esm2022/directives/unmask-handler/taiga-ui-kit-directives-unmask-handler.mjs +0 -5
  746. package/esm2022/directives/unmask-handler/unmask-handler.directive.mjs +0 -35
  747. package/esm2022/index.mjs +0 -6
  748. package/esm2022/pipes/emails/emails.options.mjs +0 -13
  749. package/esm2022/pipes/emails/emails.pipe.mjs +0 -26
  750. package/esm2022/pipes/emails/index.mjs +0 -3
  751. package/esm2022/pipes/emails/taiga-ui-kit-pipes-emails.mjs +0 -5
  752. package/esm2022/pipes/field-error/field-error-content-pipe.mjs +0 -42
  753. package/esm2022/pipes/field-error/field-error-pipe.mjs +0 -103
  754. package/esm2022/pipes/field-error/index.mjs +0 -3
  755. package/esm2022/pipes/field-error/taiga-ui-kit-pipes-field-error.mjs +0 -5
  756. package/esm2022/pipes/filter-by-input/filter-by-input.pipe.mjs +0 -68
  757. package/esm2022/pipes/filter-by-input/index.mjs +0 -2
  758. package/esm2022/pipes/filter-by-input/taiga-ui-kit-pipes-filter-by-input.mjs +0 -5
  759. package/esm2022/pipes/hide-selected/hide-selected.pipe.mjs +0 -46
  760. package/esm2022/pipes/hide-selected/index.mjs +0 -2
  761. package/esm2022/pipes/hide-selected/taiga-ui-kit-pipes-hide-selected.mjs +0 -5
  762. package/esm2022/pipes/index.mjs +0 -8
  763. package/esm2022/pipes/sort-countries/index.mjs +0 -2
  764. package/esm2022/pipes/sort-countries/sort-countries.pipe.mjs +0 -23
  765. package/esm2022/pipes/sort-countries/taiga-ui-kit-pipes-sort-countries.mjs +0 -5
  766. package/esm2022/pipes/stringify/index.mjs +0 -2
  767. package/esm2022/pipes/stringify/stringify.pipe.mjs +0 -18
  768. package/esm2022/pipes/stringify/taiga-ui-kit-pipes-stringify.mjs +0 -5
  769. package/esm2022/pipes/stringify-content/index.mjs +0 -2
  770. package/esm2022/pipes/stringify-content/stringify-content.pipe.mjs +0 -18
  771. package/esm2022/pipes/stringify-content/taiga-ui-kit-pipes-stringify-content.mjs +0 -5
  772. package/esm2022/pipes/taiga-ui-kit-pipes.mjs +0 -5
  773. package/esm2022/taiga-ui-kit.mjs +0 -5
  774. package/esm2022/tokens/calendar-date-stream.mjs +0 -25
  775. package/esm2022/tokens/date-inputs-value-transformers.mjs +0 -21
  776. package/esm2022/tokens/i18n.mjs +0 -75
  777. package/esm2022/tokens/index.mjs +0 -10
  778. package/esm2022/tokens/input-date-options.mjs +0 -13
  779. package/esm2022/tokens/items-handlers.mjs +0 -27
  780. package/esm2022/tokens/mobile-calendar.mjs +0 -13
  781. package/esm2022/tokens/month-formatter.mjs +0 -12
  782. package/esm2022/tokens/preview-icons.mjs +0 -17
  783. package/esm2022/tokens/taiga-ui-kit-tokens.mjs +0 -5
  784. package/esm2022/tokens/validation-errors.mjs +0 -6
  785. package/esm2022/utils/create-time-periods.mjs +0 -12
  786. package/esm2022/utils/index.mjs +0 -7
  787. package/esm2022/utils/inject-value.mjs +0 -11
  788. package/esm2022/utils/is-flat.mjs +0 -4
  789. package/esm2022/utils/maskito.binding.mjs +0 -6
  790. package/esm2022/utils/phone.mjs +0 -6
  791. package/esm2022/utils/taiga-ui-kit-utils.mjs +0 -5
  792. package/esm2022/utils/toggle-day.mjs +0 -6
  793. package/fesm2022/taiga-ui-kit-components-input-password.mjs +0 -96
  794. package/fesm2022/taiga-ui-kit-components-input-password.mjs.map +0 -1
  795. package/fesm2022/taiga-ui-kit-directives-copy.mjs.map +0 -1
  796. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs +0 -47
  797. package/fesm2022/taiga-ui-kit-directives-icon-badge.mjs.map +0 -1
  798. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs +0 -147
  799. package/fesm2022/taiga-ui-kit-pipes-field-error.mjs.map +0 -1
  800. package/pipes/field-error/field-error-content-pipe.d.ts +0 -14
  801. package/pipes/field-error/field-error-pipe.d.ts +0 -29
  802. package/pipes/field-error/index.d.ts +0 -2
  803. package/tokens/validation-errors.d.ts +0 -5
  804. /package/{directives → components}/copy/copy.component.d.ts +0 -0
  805. /package/{directives → components}/copy/copy.d.ts +0 -0
  806. /package/{directives → components}/copy/index.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-input-year.mjs","sources":["../../../projects/kit/components/input-year/input-year.options.ts","../../../projects/kit/components/input-year/input-year.directive.ts","../../../projects/kit/components/input-year/input-year.ts","../../../projects/kit/components/input-year/taiga-ui-kit-components-input-year.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputYearOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<number | null, any>;\n}\n\nexport const TUI_INPUT_YEAR_OPTIONS = new InjectionToken<TuiInputYearOptions>(\n ngDevMode ? 'TUI_INPUT_YEAR_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputInputYearOptionsProvider = (\n options: Partial<TuiInputYearOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_YEAR_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoNumberOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {TuiCalendarYear} from '@taiga-ui/core/components/calendar';\nimport {\n tuiInjectAuxiliary,\n TuiTextfieldDirective,\n tuiTextfieldIconBinding,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_YEAR_OPTIONS} from './input-year.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputYear]',\n providers: [\n tuiAsControl(TuiInputYearDirective),\n tuiValueTransformerFrom(TUI_INPUT_YEAR_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, MaskitoDirective, TuiDropdownAuto],\n host: {\n maxlength: '4',\n inputmode: 'numeric',\n '[disabled]': 'disabled()',\n '(click)': 'toggle()',\n '(input)': 'onInput($event.target.value)',\n },\n})\nexport class TuiInputYearDirective extends TuiControl<number | null> {\n private readonly options = inject(TUI_INPUT_YEAR_OPTIONS);\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly open = tuiDropdownOpen();\n\n private readonly initialItem = computed(\n () => this.value() ?? this.calendar()?.initialItem() ?? null,\n );\n\n protected readonly calendar = tuiInjectAuxiliary<TuiCalendarYear>(\n (x) => x instanceof TuiCalendarYear,\n );\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly icon = tuiTextfieldIconBinding(TUI_INPUT_YEAR_OPTIONS);\n protected readonly min = signal(this.options.min.year);\n protected readonly max = signal(this.options.max.year);\n\n /**\n * TODO: move to [value]=\"value()\" after update to Angular 17+\n * something wrong with change detection on host binding\n */\n protected readonly valueEffect = effect(\n () => this.textfield.value.set(this.value()?.toString() ?? ''),\n TUI_ALLOW_SIGNAL_WRITES,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoNumberOptionsGenerator({\n min: this.min(),\n max: this.max(),\n thousandSeparator: '',\n }),\n ),\n );\n\n protected readonly calendarInEffect = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.initialItemSetter = this.initialItem();\n calendar.value.set(this.value());\n calendar.min.set(this.min());\n calendar.max.set(this.max());\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOutEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.yearClick.subscribe((year) => {\n this.onChange(year);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n // TODO(v5): use signal inputs\n @Input('min')\n public set minSetter(x: number) {\n this.min.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('max')\n public set maxSetter(x: number) {\n this.max.set(x);\n }\n\n protected toggle(): void {\n if (this.interactive()) {\n this.open.update((x) => !x);\n }\n }\n\n protected onInput(raw: string): void {\n const value = Number(raw);\n\n this.onChange(!raw || Number.isNaN(value) ? null : value);\n }\n}\n","import {TuiCalendarYear} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputYearDirective} from './input-year.directive';\n\nexport const TuiInputYear = [TuiInputYearDirective, TuiCalendarYear] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBa,MAAA,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAAwB,GAAG,EAAE,EACzC;AACI,IAAA,OAAO,EAAE,OAAO;QACZ,GAAG,MAAM,CAAC,0BAA0B,CAAC;AACrC,QAAA,gBAAgB,EAAE,8BAA8B;KACnD,CAAC;AACL,CAAA,EACH;AAEW,MAAA,gCAAgC,GAAG,CAC5C,OAAqC,KAErC,iBAAiB,CACb,sBAAsB,EACtB,OAAO,EACP,kCAAkC;;ACZ1C,MAgBa,qBAAsB,SAAQ,UAAyB,CAAA;AAhBpE,IAAA,WAAA,GAAA;;AAiBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AACzC,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC1C,IAAI,CAAA,IAAA,GAAG,eAAe,EAAE,CAAC;QAEzB,IAAW,CAAA,WAAA,GAAG,QAAQ,CACnC,MAAM,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,CAAC,QAAQ,EAAE,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,sBAAsB,CAAC;AAClD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,CAAC;AACrE,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,GAAG;AACd,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,SAAS,EAAE,8BAA8B;AAC5C,qBAAA;AACJ,iBAAA,CAAA;8BA4Dc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;gBAOD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK,CAAA;;;MCjGH,YAAY,GAAG,CAAC,qBAAqB,EAAE,eAAe;;ACJnE;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-input-year.mjs","sources":["../../../projects/kit/components/input-year/input-year.options.ts","../../../projects/kit/components/input-year/input-year.directive.ts","../../../projects/kit/components/input-year/input-year.ts","../../../projects/kit/components/input-year/taiga-ui-kit-components-input-year.ts"],"sourcesContent":["import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {\n TUI_IDENTITY_VALUE_TRANSFORMER,\n type TuiValueTransformer,\n} from '@taiga-ui/cdk/classes';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n TUI_INPUT_DATE_OPTIONS_NEW,\n type TuiInputDateOptionsNew,\n} from '@taiga-ui/kit/components/input-date';\n\nexport interface TuiInputYearOptions\n extends Omit<TuiInputDateOptionsNew, 'valueTransformer'> {\n readonly valueTransformer: TuiValueTransformer<number | null, any>;\n}\n\nexport const TUI_INPUT_YEAR_OPTIONS = new InjectionToken<TuiInputYearOptions>(\n ngDevMode ? 'TUI_INPUT_YEAR_OPTIONS' : '',\n {\n factory: () => ({\n ...inject(TUI_INPUT_DATE_OPTIONS_NEW),\n valueTransformer: TUI_IDENTITY_VALUE_TRANSFORMER,\n }),\n },\n);\n\nexport const tuiInputInputYearOptionsProvider = (\n options: Partial<TuiInputYearOptions>,\n): FactoryProvider =>\n tuiProvideOptions(\n TUI_INPUT_YEAR_OPTIONS,\n options,\n TUI_INPUT_DATE_DEFAULT_OPTIONS_NEW,\n );\n","import {computed, Directive, effect, inject, Input, signal} from '@angular/core';\nimport {MaskitoDirective} from '@maskito/angular';\nimport {maskitoNumberOptionsGenerator} from '@maskito/kit';\nimport {tuiAsControl, TuiControl, tuiValueTransformerFrom} from '@taiga-ui/cdk/classes';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\nimport {TuiCalendarYear} from '@taiga-ui/core/components/calendar';\nimport {\n tuiInjectAuxiliary,\n TuiTextfieldDirective,\n tuiTextfieldIcon,\n TuiWithTextfield,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TuiDropdownAuto,\n tuiDropdownEnabled,\n tuiDropdownOpen,\n} from '@taiga-ui/core/directives/dropdown';\nimport {tuiMaskito} from '@taiga-ui/kit/utils';\n\nimport {TUI_INPUT_YEAR_OPTIONS} from './input-year.options';\n\n@Directive({\n standalone: true,\n selector: 'input[tuiInputYear]',\n providers: [\n tuiAsControl(TuiInputYearDirective),\n tuiValueTransformerFrom(TUI_INPUT_YEAR_OPTIONS),\n ],\n hostDirectives: [TuiWithTextfield, MaskitoDirective, TuiDropdownAuto],\n host: {\n maxlength: '4',\n inputmode: 'numeric',\n '[disabled]': 'disabled()',\n '(click)': 'toggle()',\n '(input)': 'onInput($event.target.value)',\n },\n})\nexport class TuiInputYearDirective extends TuiControl<number | null> {\n private readonly options = inject(TUI_INPUT_YEAR_OPTIONS);\n private readonly textfield = inject(TuiTextfieldDirective);\n private readonly open = tuiDropdownOpen();\n\n private readonly initialItem = computed(\n () => this.value() ?? this.calendar()?.initialItem() ?? null,\n );\n\n protected readonly calendar = tuiInjectAuxiliary<TuiCalendarYear>(\n (x) => x instanceof TuiCalendarYear,\n );\n\n protected readonly dropdownEnabled = tuiDropdownEnabled(this.interactive);\n protected readonly icon = tuiTextfieldIcon(TUI_INPUT_YEAR_OPTIONS);\n protected readonly min = signal(this.options.min.year);\n protected readonly max = signal(this.options.max.year);\n\n /**\n * TODO: move to [value]=\"value()\" after update to Angular 17+\n * something wrong with change detection on host binding\n */\n protected readonly valueEffect = effect(\n () => this.textfield.value.set(this.value()?.toString() ?? ''),\n TUI_ALLOW_SIGNAL_WRITES,\n );\n\n protected readonly mask = tuiMaskito(\n computed(() =>\n maskitoNumberOptionsGenerator({\n min: this.min(),\n max: this.max(),\n thousandSeparator: '',\n }),\n ),\n );\n\n protected readonly calendarInEffect = effect(() => {\n const calendar = this.calendar();\n\n if (calendar) {\n calendar.initialItemSetter = this.initialItem();\n calendar.value.set(this.value());\n calendar.min.set(this.min());\n calendar.max.set(this.max());\n }\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n protected readonly calendarOutEffect = effect((onCleanup) => {\n const subscription = this.calendar()?.yearClick.subscribe((year) => {\n this.onChange(year);\n this.open.set(false);\n });\n\n onCleanup(() => subscription?.unsubscribe());\n });\n\n // TODO(v5): use signal inputs\n @Input('min')\n public set minSetter(x: number) {\n this.min.set(x);\n }\n\n // TODO(v5): use signal inputs\n @Input('max')\n public set maxSetter(x: number) {\n this.max.set(x);\n }\n\n protected toggle(): void {\n if (this.interactive()) {\n this.open.update((x) => !x);\n }\n }\n\n protected onInput(raw: string): void {\n const value = Number(raw);\n\n this.onChange(!raw || Number.isNaN(value) ? null : value);\n }\n}\n","import {TuiCalendarYear} from '@taiga-ui/core/components/calendar';\n\nimport {TuiInputYearDirective} from './input-year.directive';\n\nexport const TuiInputYear = [TuiInputYearDirective, TuiCalendarYear] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBa,MAAA,sBAAsB,GAAG,IAAI,cAAc,CACpD,SAAS,GAAG,wBAA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AAA,EAAA,SAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,SAAA,EAAA,EAAA,CAAA,eAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAUQ,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,SAAS,EAAE;AACP,wBAAA,YAAY,CAAuB,qBAAA,CAAA;wBACnC,uBAAuB,CAAC,sBAAsB,CAAC;AAClD,qBAAA;AACD,oBAAA,cAAc,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,eAAe,CAAC;AACrE,oBAAA,IAAI,EAAE;AACF,wBAAA,SAAS,EAAE,GAAG;AACd,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,YAAY,EAAE,YAAY;AAC1B,wBAAA,SAAS,EAAE,UAAU;AACrB,wBAAA,SAAS,EAAE,8BAA8B;AAC5C,qBAAA;AACJ,iBAAA;8BA4Dc,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;gBAOD,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,KAAK;;;MCjGH,YAAY,GAAG,CAAC,qBAAqB,EAAE,eAAe;;ACJnE;;AAEG;;;;"}
@@ -1,7 +1,7 @@
1
1
  import { TuiItem } from '@taiga-ui/cdk/directives/item';
2
- import { AsyncPipe, NgForOf, NgIf, NgTemplateOutlet } from '@angular/common';
2
+ import { AsyncPipe, NgTemplateOutlet } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Directive, Input, inject, Injectable, TemplateRef, Component, ChangeDetectionStrategy, ContentChildren, ContentChild, Output } from '@angular/core';
4
+ import { Input, Directive, inject, Injectable, TemplateRef, Output, ContentChild, ContentChildren, ChangeDetectionStrategy, Component } from '@angular/core';
5
5
  import { toSignal } from '@angular/core/rxjs-interop';
6
6
  import { MutationObserverService, WA_MUTATION_OBSERVER_INIT } from '@ng-web-apis/mutation-observer';
7
7
  import { ResizeObserverService } from '@ng-web-apis/resize-observer';
@@ -30,10 +30,10 @@ class TuiItemsWithMoreDirective {
30
30
  maxWidth() {
31
31
  return Math.max(...Array.from(this.el.children, ({ clientWidth }) => clientWidth));
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiItemsWithMoreDirective, isStandalone: true, inputs: { itemsLimit: "itemsLimit", required: "required", linesLimit: "linesLimit", side: "side" }, host: { properties: { "class._multiline": "linesLimit > 1", "style.--t-min-width.px": "maxWidth()" } }, usesOnChanges: true, ngImport: i0 }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiItemsWithMoreDirective, isStandalone: true, inputs: { itemsLimit: "itemsLimit", required: "required", linesLimit: "linesLimit", side: "side" }, host: { properties: { "class._multiline": "linesLimit > 1", "style.--t-min-width.px": "maxWidth()" } }, usesOnChanges: true, ngImport: i0 }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreDirective, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreDirective, decorators: [{
37
37
  type: Directive,
38
38
  args: [{
39
39
  standalone: true,
@@ -120,21 +120,21 @@ class TuiItemsWithMoreService extends Observable {
120
120
  const index = firstItemLastRow + this.getOverflowIndex(lastRow);
121
121
  return Math.min(itemsLimit - 1, index);
122
122
  }
123
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
124
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
124
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreService }); }
125
125
  }
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreService, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreService, decorators: [{
127
127
  type: Injectable
128
- }], ctorParameters: function () { return []; } });
128
+ }], ctorParameters: () => [] });
129
129
 
130
130
  class TuiMore {
131
131
  static ngTemplateContextGuard(_dir, _ctx) {
132
132
  return true;
133
133
  }
134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMore, isStandalone: true, selector: "[tuiMore]", ngImport: i0 }); }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMore, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
135
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMore, isStandalone: true, selector: "[tuiMore]", ngImport: i0 }); }
136
136
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMore, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMore, decorators: [{
138
138
  type: Directive,
139
139
  args: [{
140
140
  standalone: true,
@@ -161,8 +161,8 @@ class TuiItemsWithMoreComponent {
161
161
  return ((index > this.lastIndex() && index !== required && computedSide === 'end') ||
162
162
  (index < this.lastIndex() && index !== required && computedSide === 'start'));
163
163
  }
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
165
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiItemsWithMoreComponent, isStandalone: true, selector: "tui-items-with-more", outputs: { lastIndexChange: "lastIndexChange" }, providers: [
164
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
165
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiItemsWithMoreComponent, isStandalone: true, selector: "tui-items-with-more", outputs: { lastIndexChange: "lastIndexChange" }, providers: [
166
166
  MutationObserverService,
167
167
  ResizeObserverService,
168
168
  TuiItemsWithMoreService,
@@ -174,11 +174,11 @@ class TuiItemsWithMoreComponent {
174
174
  subtree: true,
175
175
  },
176
176
  },
177
- ], queries: [{ propertyName: "more", first: true, predicate: TuiMore, descendants: true, read: TemplateRef }, { propertyName: "items", predicate: TuiItem, descendants: true, read: TemplateRef }], hostDirectives: [{ directive: TuiItemsWithMoreDirective, inputs: ["itemsLimit", "itemsLimit", "required", "required", "side", "side", "linesLimit", "linesLimit"] }], ngImport: i0, template: "<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", styles: [":host{position:relative;display:flex;min-inline-size:0;flex:1;align-items:center;white-space:nowrap}:host._multiline{flex-wrap:wrap}.t-item{flex:0 0 auto}.t-item_hidden{position:absolute;bottom:0;visibility:hidden}:host._multiline .t-item_more:not(:empty){min-inline-size:var(--t-min-width, 0)}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
177
+ ], queries: [{ propertyName: "more", first: true, predicate: TuiMore, descendants: true, read: TemplateRef }, { propertyName: "items", predicate: TuiItem, descendants: true, read: TemplateRef }], hostDirectives: [{ directive: TuiItemsWithMoreDirective, inputs: ["itemsLimit", "itemsLimit", "required", "required", "side", "side", "linesLimit", "linesLimit"] }], ngImport: i0, template: "@if (items.changes | async) {}\n@if (directive.side === 'start') {\n <ng-container [ngTemplateOutlet]=\"template\" />\n}\n@for (item of items; track item; let index = $index) {\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", styles: [":host{position:relative;display:flex;min-inline-size:0;flex:1;align-items:center;white-space:nowrap;gap:0!important}:host._multiline{flex-wrap:wrap}.t-item{flex:0 0 auto;max-inline-size:100%}.t-item_hidden{position:absolute;bottom:0;visibility:hidden}:host._multiline .t-item_more:not(:empty){min-inline-size:var(--t-min-width, 0)}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
178
178
  }
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItemsWithMoreComponent, decorators: [{
179
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItemsWithMoreComponent, decorators: [{
180
180
  type: Component,
181
- args: [{ standalone: true, selector: 'tui-items-with-more', imports: [AsyncPipe, NgForOf, NgIf, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
181
+ args: [{ selector: 'tui-items-with-more', imports: [AsyncPipe, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
182
182
  MutationObserverService,
183
183
  ResizeObserverService,
184
184
  TuiItemsWithMoreService,
@@ -195,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
195
195
  directive: TuiItemsWithMoreDirective,
196
196
  inputs: ['itemsLimit', 'required', 'side', 'linesLimit'],
197
197
  },
198
- ], template: "<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", styles: [":host{position:relative;display:flex;min-inline-size:0;flex:1;align-items:center;white-space:nowrap}:host._multiline{flex-wrap:wrap}.t-item{flex:0 0 auto}.t-item_hidden{position:absolute;bottom:0;visibility:hidden}:host._multiline .t-item_more:not(:empty){min-inline-size:var(--t-min-width, 0)}\n"] }]
198
+ ], template: "@if (items.changes | async) {}\n@if (directive.side === 'start') {\n <ng-container [ngTemplateOutlet]=\"template\" />\n}\n@for (item of items; track item; let index = $index) {\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", styles: [":host{position:relative;display:flex;min-inline-size:0;flex:1;align-items:center;white-space:nowrap;gap:0!important}:host._multiline{flex-wrap:wrap}.t-item{flex:0 0 auto;max-inline-size:100%}.t-item_hidden{position:absolute;bottom:0;visibility:hidden}:host._multiline .t-item_more:not(:empty){min-inline-size:var(--t-min-width, 0)}\n"] }]
199
199
  }], propDecorators: { items: [{
200
200
  type: ContentChildren,
201
201
  args: [TuiItem, { read: TemplateRef, descendants: true }]
@@ -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;+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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 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","@if (items.changes | async) {}\n@if (directive.side === 'start') {\n <ng-container [ngTemplateOutlet]=\"template\" />\n}\n@for (item of items; track item; let index = $index) {\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 TuiItemsWithMoreCompon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BAAyB;IACzB,OAAO;IACP,OAAO;;;ACVX;;AAEG;;;;"}
@@ -1,9 +1,10 @@
1
1
  import * as i0 from '@angular/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);\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E,oBAAoB;AACnD,qBAAA,EAAA,MAAA,EAAA,CAAA,y9BAAA,CAAA,EAAA,CAAA;8BAOM,KAAK,EAAA,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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CAAA,CAAA;;4FA6BH,OAAO,EAAA,UAAA,EAAA,CAAA;kBAhCnB,SAAS;AACM,YAAA,IAAA,EAAA,CAAA,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,13 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Component, ChangeDetectionStrategy, inject, Directive, ChangeDetectorRef, signal, ElementRef, ViewChild, Input, Output } from '@angular/core';
2
+ import { InjectionToken, ChangeDetectionStrategy, Component, inject, Directive, ElementRef, Input, Output, ViewChild } from '@angular/core';
3
3
  import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
+ import * as i1$1 from '@taiga-ui/cdk/directives/transitioned';
5
+ import { TuiTransitioned } from '@taiga-ui/cdk/directives/transitioned';
4
6
  import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
5
7
  import { tuiInjectElement, tuiIsCurrentTarget } from '@taiga-ui/cdk/utils/dom';
6
- import * as i1$1 from '@taiga-ui/core/directives/hint';
8
+ import { tuiProvideOptions, tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
9
+ import * as i2 from '@taiga-ui/core/directives/hint';
7
10
  import { TuiHintBaseComponent, TUI_HINT_PROVIDERS, TuiHintDirective, TUI_HINT_COMPONENT, TuiHint } from '@taiga-ui/core/directives/hint';
8
11
  import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
9
12
  import { BehaviorSubject, Subject, startWith, pairwise, switchMap, of, filter, map, debounceTime, distinctUntilChanged } from 'rxjs';
10
- import { tuiProvideOptions } from '@taiga-ui/cdk/utils/miscellaneous';
11
13
  import * as i1 from '@taiga-ui/cdk/directives/animated';
12
14
  import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
13
15
  import { TuiPositionAccessor, tuiAsPositionAccessor } from '@taiga-ui/core/classes';
@@ -29,18 +31,18 @@ class TuiLineClampBox extends TuiHintBaseComponent {
29
31
  get width() {
30
32
  return this.accessor.getClientRect().width;
31
33
  }
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
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
35
+ 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, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: `
34
36
  <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 }); }
37
+ `, 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
38
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampBox, decorators: [{
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, decorators: [{
38
40
  type: Component,
39
- args: [{ standalone: true, selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: `
41
+ args: [{ selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: `
40
42
  <ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>
41
43
  `, changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, hostDirectives: [TuiAnimated], host: {
42
44
  '[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"] }]
45
+ }, 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
46
  }] });
45
47
 
46
48
  class TuiLineClampPositionDirective extends TuiPositionAccessor {
@@ -53,10 +55,10 @@ class TuiLineClampPositionDirective extends TuiPositionAccessor {
53
55
  const { top, left } = this.accessor.getClientRect();
54
56
  return [top, left];
55
57
  }
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 }); }
58
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
59
+ 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
60
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
60
62
  type: Directive,
61
63
  args: [{
62
64
  standalone: true,
@@ -69,12 +71,8 @@ class TuiLineClamp {
69
71
  constructor() {
70
72
  this.options = inject(TUI_LINE_CLAMP_OPTIONS);
71
73
  this.el = tuiInjectElement();
72
- this.cd = inject(ChangeDetectorRef);
73
74
  this.linesLimit$ = new BehaviorSubject(1);
74
75
  this.isOverflown$ = new Subject();
75
- this.initialized = signal(false);
76
- this.maxHeight = signal(0);
77
- this.height = signal(0);
78
76
  this.lineClamp = toSignal(this.linesLimit$.pipe(startWith(1), pairwise(), switchMap(([prev, next]) => next >= prev
79
77
  ? of(next)
80
78
  : tuiTypedFromEvent(this.el, 'transitionend').pipe(filter(tuiIsCurrentTarget), map(() => next))), takeUntilDestroyed()), { initialValue: 0 });
@@ -88,52 +86,48 @@ class TuiLineClamp {
88
86
  this.update();
89
87
  this.isOverflown$.next(this.overflown);
90
88
  }
91
- ngAfterViewInit() {
92
- this.initialized.set(true);
93
- }
94
89
  get overflown() {
95
90
  if (!this.outlet) {
96
91
  return false;
97
92
  }
98
93
  const { scrollHeight, scrollWidth } = this.outlet.nativeElement;
99
94
  const { clientWidth } = this.el;
100
- return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;
95
+ return scrollHeight > this.maxHeight || scrollWidth > clientWidth;
101
96
  }
102
97
  get computedContent() {
103
98
  return this.options.showHint && this.overflown ? this.content : '';
104
99
  }
105
- updateView() {
106
- this.cd.detectChanges();
107
- }
108
100
  update() {
109
- if (this.outlet) {
110
- this.height.set(this.outlet.nativeElement.scrollHeight);
101
+ if (!this.outlet) {
102
+ return;
111
103
  }
112
- this.maxHeight.set(this.lineHeight * this.linesLimit$.value);
104
+ this.el.style.height = tuiPx(this.outlet.nativeElement.scrollHeight);
105
+ this.el.style.maxHeight = tuiPx(this.maxHeight);
106
+ this.el.classList.toggle('_overflown', this.overflown);
107
+ }
108
+ get maxHeight() {
109
+ return this.lineHeight * this.linesLimit$.value;
113
110
  }
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: [
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: "lineHeight", content: "content", linesLimit: "linesLimit" }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "update()", "mouseenter": "update()", "resize": "update()" } }, providers: [
116
113
  {
117
114
  provide: TUI_HINT_COMPONENT,
118
115
  useValue: TuiLineClampBox,
119
116
  },
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 }); }
117
+ ], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef }], hostDirectives: [{ directive: i1$1.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: ["tuiHintContext", "tuiHintAppearance", "tuiHint"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
121
118
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLineClamp, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, decorators: [{
123
120
  type: Component,
124
- args: [{ standalone: true, selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
121
+ args: [{ selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
125
122
  {
126
123
  provide: TUI_HINT_COMPONENT,
127
124
  useValue: TuiLineClampBox,
128
125
  },
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"] }]
126
+ ], hostDirectives: [TuiTransitioned], host: {
127
+ '(transitionend)': 'update()',
128
+ '(mouseenter)': 'update()',
129
+ '(resize)': 'update()',
130
+ }, 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"] }]
137
131
  }], propDecorators: { outlet: [{
138
132
  type: ViewChild,
139
133
  args: [TuiHintDirective, { read: ElementRef }]