@taiga-ui/kit 4.52.0-canary.ec0802b → 4.52.0-canary.efbd0d4

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 (359) hide show
  1. package/components/avatar/avatar-labeled.component.d.ts +3 -3
  2. package/components/avatar/avatar-stack.component.d.ts +2 -2
  3. package/components/badge-notification/badge-notification.component.d.ts +2 -3
  4. package/components/badged-content/badged-content.directive.d.ts +2 -2
  5. package/components/breadcrumbs/breadcrumbs.component.d.ts +6 -7
  6. package/components/button-loading/button-loading.component.d.ts +5 -5
  7. package/components/calendar-range/calendar-range.component.d.ts +0 -1
  8. package/components/calendar-range/day-range-period.d.ts +2 -1
  9. package/components/carousel/carousel.component.d.ts +15 -18
  10. package/components/carousel/carousel.directive.d.ts +5 -4
  11. package/components/combo-box/combo-box.d.ts +5 -0
  12. package/components/combo-box/combo-box.directive.d.ts +7 -9
  13. package/components/combo-box/index.d.ts +1 -0
  14. package/components/compass/compass.component.d.ts +2 -2
  15. package/components/confirm/confirm.component.d.ts +3 -2
  16. package/components/confirm/confirm.service.d.ts +1 -1
  17. package/components/copy/copy.component.d.ts +2 -3
  18. package/components/copy/copy.directive.d.ts +2 -4
  19. package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -2
  20. package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
  21. package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
  22. package/components/data-list-wrapper/index.d.ts +1 -1
  23. package/components/drawer/drawer.component.d.ts +3 -4
  24. package/components/files/file/file.component.d.ts +16 -29
  25. package/components/files/files/files.component.d.ts +5 -8
  26. package/components/files/input-files/input-files.component.d.ts +2 -2
  27. package/components/files/input-files/input-files.content.d.ts +7 -8
  28. package/components/files/input-files/input-files.directive.d.ts +2 -2
  29. package/components/filter/filter.component.d.ts +9 -11
  30. package/components/fullscreen/fullscreen.component.d.ts +5 -8
  31. package/components/index.d.ts +0 -3
  32. package/components/input-chip/input-chip.component.d.ts +9 -8
  33. package/components/input-chip/input-chip.d.ts +5 -1
  34. package/components/input-chip/input-chip.directive.d.ts +7 -12
  35. package/components/input-color/index.d.ts +1 -0
  36. package/components/input-color/input-color.component.d.ts +4 -4
  37. package/components/input-color/input-color.d.ts +5 -0
  38. package/components/input-date/input-date.d.ts +4 -1
  39. package/components/input-date/input-date.directive.d.ts +12 -14
  40. package/components/input-date/input-date.options.d.ts +3 -3
  41. package/components/input-date-multi/input-date-multi.d.ts +1 -2
  42. package/components/input-date-multi/input-date-multi.directive.d.ts +10 -14
  43. package/components/input-date-range/input-date-range.d.ts +4 -1
  44. package/components/input-date-range/input-date-range.directive.d.ts +5 -8
  45. package/components/input-date-range/input-date-range.options.d.ts +2 -2
  46. package/components/input-date-time/input-date-time.d.ts +4 -1
  47. package/components/input-date-time/input-date-time.directive.d.ts +6 -6
  48. package/components/input-date-time/input-date-time.options.d.ts +2 -2
  49. package/components/input-month/input-month.d.ts +4 -1
  50. package/components/input-month/input-month.directive.d.ts +6 -5
  51. package/components/input-month-range/input-month-range.d.ts +4 -1
  52. package/components/input-month-range/input-month-range.directive.d.ts +6 -5
  53. package/components/input-number/input-number.d.ts +4 -1
  54. package/components/input-number/input-number.directive.d.ts +5 -7
  55. package/components/input-number/input-number.options.d.ts +2 -3
  56. package/components/input-number/step/input-number-step.component.d.ts +2 -1
  57. package/components/input-phone/index.d.ts +1 -0
  58. package/components/input-phone/input-phone.d.ts +5 -0
  59. package/components/input-phone/input-phone.directive.d.ts +7 -7
  60. package/components/input-phone-international/index.d.ts +1 -0
  61. package/components/input-phone-international/input-phone-international.component.d.ts +9 -8
  62. package/components/input-phone-international/input-phone-international.d.ts +5 -0
  63. package/components/input-pin/index.d.ts +1 -0
  64. package/components/input-pin/input-pin.component.d.ts +3 -3
  65. package/components/input-pin/input-pin.d.ts +5 -0
  66. package/components/input-range/index.d.ts +0 -1
  67. package/components/input-range/input-range.component.d.ts +4 -3
  68. package/components/input-slider/input-slider.d.ts +4 -1
  69. package/components/input-slider/input-slider.directive.d.ts +1 -1
  70. package/components/input-time/input-time.component.d.ts +1 -3
  71. package/components/input-time/input-time.d.ts +4 -1
  72. package/components/input-time/input-time.directive.d.ts +4 -4
  73. package/components/input-year/input-year.d.ts +4 -1
  74. package/components/input-year/input-year.directive.d.ts +5 -5
  75. package/components/input-year/input-year.options.d.ts +2 -2
  76. package/components/like/like.options.d.ts +1 -1
  77. package/components/line-clamp/line-clamp-box.component.d.ts +1 -1
  78. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +4 -6
  79. package/components/notification-middle/notification-middle.service.d.ts +1 -1
  80. package/components/pagination/pagination.component.d.ts +22 -52
  81. package/components/pagination/pagination.options.d.ts +3 -6
  82. package/components/preview/dialog/preview-dialog.service.d.ts +1 -1
  83. package/components/preview/index.d.ts +1 -0
  84. package/components/preview/pagination/preview-pagination.component.d.ts +2 -1
  85. package/components/preview/preview.component.d.ts +1 -1
  86. package/components/preview/zoom/preview-zoom.component.d.ts +3 -1
  87. package/components/progress/progress-bar/progress-bar.component.d.ts +3 -4
  88. package/components/pulse/pulse.component.d.ts +2 -2
  89. package/components/push/push-alert.component.d.ts +1 -1
  90. package/components/push/push.options.d.ts +4 -3
  91. package/components/push/push.service.d.ts +1 -1
  92. package/components/radio/radio.component.d.ts +1 -1
  93. package/components/radio-list/radio-list.component.d.ts +5 -3
  94. package/components/rating/rating.component.d.ts +1 -1
  95. package/components/routable-dialog/generate-dialogable-route.d.ts +1 -1
  96. package/components/segmented/segmented.component.d.ts +4 -6
  97. package/components/segmented/segmented.directive.d.ts +6 -7
  98. package/components/select/native-select/native-select.component.d.ts +4 -4
  99. package/components/select/select.d.ts +4 -1
  100. package/components/select/select.directive.d.ts +4 -3
  101. package/components/switch/switch.component.d.ts +1 -0
  102. package/components/textarea/index.d.ts +2 -1
  103. package/components/textarea/textarea.component.d.ts +4 -4
  104. package/components/textarea/textarea.d.ts +6 -0
  105. package/components/textarea/textarea.directive.d.ts +13 -0
  106. package/components/toast/toast.component.d.ts +1 -1
  107. package/components/toast/toast.options.d.ts +4 -3
  108. package/components/toast/toast.service.d.ts +1 -1
  109. package/directives/appearance-proxy/appearance-proxy.directive.d.ts +10 -0
  110. package/directives/appearance-proxy/index.d.ts +1 -0
  111. package/directives/button-select/button-select.directive.d.ts +1 -1
  112. package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
  113. package/directives/fade/fade.directive.d.ts +5 -6
  114. package/directives/highlight/highlight.directive.d.ts +4 -4
  115. package/directives/index.d.ts +1 -1
  116. package/directives/password/password.directive.d.ts +1 -1
  117. package/directives/present/present.directive.d.ts +2 -4
  118. package/directives/tooltip/tooltip.directive.d.ts +1 -1
  119. package/directives/unfinished-validator/unfinished-validator.directive.d.ts +2 -2
  120. package/directives/unmask-handler/unmask-handler.directive.d.ts +3 -3
  121. package/fesm2022/taiga-ui-kit-components-accordion.mjs +8 -8
  122. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +7 -7
  124. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-kit-components-avatar.mjs +33 -47
  126. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +8 -10
  128. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-kit-components-badge.mjs +7 -7
  130. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +9 -11
  131. package/fesm2022/taiga-ui-kit-components-badged-content.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  133. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +16 -30
  135. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +18 -26
  137. package/fesm2022/taiga-ui-kit-components-button-loading.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +5 -13
  139. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +23 -23
  141. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components-carousel.mjs +63 -107
  143. package/fesm2022/taiga-ui-kit-components-carousel.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +4 -5
  145. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-components-chip.mjs +7 -7
  147. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +40 -44
  148. package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
  149. package/fesm2022/taiga-ui-kit-components-comment.mjs +7 -7
  150. package/fesm2022/taiga-ui-kit-components-compass.mjs +7 -9
  151. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-components-confirm.mjs +9 -10
  153. package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
  154. package/fesm2022/taiga-ui-kit-components-copy.mjs +19 -32
  155. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  156. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +24 -85
  157. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  158. package/fesm2022/taiga-ui-kit-components-drawer.mjs +15 -32
  159. package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
  160. package/fesm2022/taiga-ui-kit-components-files.mjs +110 -230
  161. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  162. package/fesm2022/taiga-ui-kit-components-filter.mjs +20 -34
  163. package/fesm2022/taiga-ui-kit-components-filter.mjs.map +1 -1
  164. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +23 -42
  165. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -1
  166. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +63 -75
  167. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  168. package/fesm2022/taiga-ui-kit-components-input-color.mjs +24 -13
  169. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  170. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +34 -46
  171. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  172. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +30 -35
  173. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  174. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +31 -27
  175. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  176. package/fesm2022/taiga-ui-kit-components-input-date.mjs +42 -38
  177. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  178. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +3 -3
  179. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +26 -22
  180. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  181. package/fesm2022/taiga-ui-kit-components-input-month.mjs +32 -22
  182. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  183. package/fesm2022/taiga-ui-kit-components-input-number.mjs +47 -40
  184. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  185. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +48 -36
  186. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  187. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +29 -18
  188. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  189. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +18 -9
  190. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  191. package/fesm2022/taiga-ui-kit-components-input-range.mjs +18 -16
  192. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  193. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +15 -10
  194. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  195. package/fesm2022/taiga-ui-kit-components-input-time.mjs +38 -39
  196. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  197. package/fesm2022/taiga-ui-kit-components-input-year.mjs +27 -18
  198. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  199. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +12 -12
  200. package/fesm2022/taiga-ui-kit-components-like.mjs +3 -3
  201. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  202. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +14 -14
  203. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  204. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -7
  205. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  206. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +29 -39
  207. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  208. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +12 -12
  209. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  210. package/fesm2022/taiga-ui-kit-components-pager.mjs +6 -8
  211. package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
  212. package/fesm2022/taiga-ui-kit-components-pagination.mjs +59 -140
  213. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  214. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  215. package/fesm2022/taiga-ui-kit-components-preview.mjs +48 -36
  216. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  217. package/fesm2022/taiga-ui-kit-components-progress.mjs +31 -35
  218. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  219. package/fesm2022/taiga-ui-kit-components-pulse.mjs +7 -11
  220. package/fesm2022/taiga-ui-kit-components-pulse.mjs.map +1 -1
  221. package/fesm2022/taiga-ui-kit-components-push.mjs +20 -21
  222. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  223. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +8 -8
  224. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  225. package/fesm2022/taiga-ui-kit-components-radio.mjs +6 -6
  226. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
  227. package/fesm2022/taiga-ui-kit-components-range.mjs +7 -7
  228. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  229. package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -4
  230. package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
  231. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +4 -4
  232. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs.map +1 -1
  233. package/fesm2022/taiga-ui-kit-components-segmented.mjs +31 -57
  234. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  235. package/fesm2022/taiga-ui-kit-components-select.mjs +50 -26
  236. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  237. package/fesm2022/taiga-ui-kit-components-slider.mjs +18 -18
  238. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
  239. package/fesm2022/taiga-ui-kit-components-status.mjs +6 -6
  240. package/fesm2022/taiga-ui-kit-components-stepper.mjs +8 -8
  241. package/fesm2022/taiga-ui-kit-components-switch.mjs +10 -6
  242. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  243. package/fesm2022/taiga-ui-kit-components-tabs.mjs +24 -22
  244. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  245. package/fesm2022/taiga-ui-kit-components-textarea.mjs +51 -50
  246. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  247. package/fesm2022/taiga-ui-kit-components-tiles.mjs +12 -12
  248. package/fesm2022/taiga-ui-kit-components-toast.mjs +23 -24
  249. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  250. package/fesm2022/taiga-ui-kit-components-tree.mjs +26 -25
  251. package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
  252. package/fesm2022/taiga-ui-kit-components.mjs +0 -3
  253. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  254. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +27 -0
  255. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs.map +1 -0
  256. package/fesm2022/taiga-ui-kit-directives-button-close.mjs +3 -3
  257. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  258. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  259. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +6 -6
  260. package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
  261. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +10 -9
  262. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  263. package/fesm2022/taiga-ui-kit-directives-connected.mjs +6 -6
  264. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +25 -52
  265. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
  266. package/fesm2022/taiga-ui-kit-directives-fade.mjs +25 -34
  267. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  268. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  269. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +16 -20
  270. package/fesm2022/taiga-ui-kit-directives-highlight.mjs.map +1 -1
  271. package/fesm2022/taiga-ui-kit-directives-password.mjs +10 -8
  272. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  273. package/fesm2022/taiga-ui-kit-directives-present.mjs +10 -17
  274. package/fesm2022/taiga-ui-kit-directives-present.mjs.map +1 -1
  275. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +6 -6
  276. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +6 -6
  277. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -6
  278. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  279. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +8 -8
  280. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  281. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +8 -10
  282. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
  283. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +10 -14
  284. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
  285. package/fesm2022/taiga-ui-kit-directives.mjs +1 -1
  286. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +43 -0
  287. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs.map +1 -0
  288. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  289. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs +12 -24
  290. package/fesm2022/taiga-ui-kit-pipes-filter-by-input.mjs.map +1 -1
  291. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +30 -0
  292. package/fesm2022/taiga-ui-kit-pipes-flag.mjs.map +1 -0
  293. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +4 -4
  294. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
  295. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +28 -0
  296. package/fesm2022/taiga-ui-kit-pipes-initials.mjs.map +1 -0
  297. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +10 -8
  298. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs.map +1 -1
  299. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  300. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
  301. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  302. package/fesm2022/taiga-ui-kit-pipes.mjs +3 -0
  303. package/fesm2022/taiga-ui-kit-pipes.mjs.map +1 -1
  304. package/fesm2022/taiga-ui-kit-tokens.mjs +4 -108
  305. package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
  306. package/fesm2022/taiga-ui-kit-utils.mjs +3 -15
  307. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  308. package/package.json +62 -62
  309. package/pipes/auto-color/auto-color.pipe.d.ts +13 -0
  310. package/pipes/auto-color/index.d.ts +1 -0
  311. package/pipes/filter-by-input/filter-by-input.pipe.d.ts +2 -2
  312. package/pipes/flag/flag.pipe.d.ts +14 -0
  313. package/pipes/flag/index.d.ts +1 -0
  314. package/pipes/index.d.ts +3 -0
  315. package/pipes/initials/index.d.ts +1 -0
  316. package/pipes/initials/initials.pipe.d.ts +7 -0
  317. package/pipes/sort-countries/sort-countries.pipe.d.ts +4 -3
  318. package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
  319. package/styles/components/avatar.less +14 -14
  320. package/styles/components/badge.less +3 -3
  321. package/styles/components/block.less +4 -4
  322. package/styles/components/chip.less +3 -3
  323. package/styles/components/comment.less +1 -1
  324. package/styles/components/message.less +1 -1
  325. package/styles/components/pin.less +3 -3
  326. package/styles/components/switch.less +2 -2
  327. package/styles/components/toast.less +1 -1
  328. package/tokens/i18n.d.ts +1 -0
  329. package/tokens/index.d.ts +0 -7
  330. package/utils/index.d.ts +0 -2
  331. package/components/elastic-container/elastic-container.component.d.ts +0 -8
  332. package/components/elastic-container/elastic-container.directive.d.ts +0 -7
  333. package/components/elastic-container/index.d.ts +0 -2
  334. package/components/floating-container/floating-container.directive.d.ts +0 -7
  335. package/components/floating-container/index.d.ts +0 -1
  336. package/components/input-range/input-range.d.ts +0 -3
  337. package/components/slides/index.d.ts +0 -1
  338. package/components/slides/slides.directive.d.ts +0 -11
  339. package/components/textarea/textarea-limit.directive.d.ts +0 -26
  340. package/directives/lazy-loading/index.d.ts +0 -2
  341. package/directives/lazy-loading/lazy-loading.directive.d.ts +0 -18
  342. package/directives/lazy-loading/lazy-loading.service.d.ts +0 -12
  343. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs +0 -77
  344. package/fesm2022/taiga-ui-kit-components-elastic-container.mjs.map +0 -1
  345. package/fesm2022/taiga-ui-kit-components-floating-container.mjs +0 -37
  346. package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +0 -1
  347. package/fesm2022/taiga-ui-kit-components-slides.mjs +0 -49
  348. package/fesm2022/taiga-ui-kit-components-slides.mjs.map +0 -1
  349. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs +0 -80
  350. package/fesm2022/taiga-ui-kit-directives-lazy-loading.mjs.map +0 -1
  351. package/tokens/calendar-date-stream.d.ts +0 -10
  352. package/tokens/date-inputs-value-transformers.d.ts +0 -19
  353. package/tokens/input-date-options.d.ts +0 -15
  354. package/tokens/items-handlers.d.ts +0 -20
  355. package/tokens/mobile-calendar.d.ts +0 -6
  356. package/tokens/month-formatter.d.ts +0 -5
  357. package/utils/phone.d.ts +0 -3
  358. package/utils/toggle-day.d.ts +0 -2
  359. /package/{tokens/preview-icons.d.ts → components/preview/preview.options.d.ts} +0 -0
@@ -3,10 +3,10 @@ import { ChangeDetectionStrategy, Component, inject, Directive, viewChild, Eleme
3
3
  import { outputFromObservable, toSignal, toObservable } from '@angular/core/rxjs-interop';
4
4
  import * as i1 from '@taiga-ui/cdk/directives/transitioned';
5
5
  import { TuiTransitioned } from '@taiga-ui/cdk/directives/transitioned';
6
- import { tuiInjectElement, tuiIsCurrentTarget } from '@taiga-ui/cdk/utils/dom';
6
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
7
7
  import { tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
8
- import * as i2 from '@taiga-ui/core/directives/hint';
9
- import { TuiHintComponent, TUI_HINT_PROVIDERS, TuiHintDirective, TUI_HINT_COMPONENT, TuiHint } from '@taiga-ui/core/directives/hint';
8
+ import * as i2 from '@taiga-ui/core/portals/hint';
9
+ import { TuiHintComponent, TUI_HINT_PROVIDERS, TuiHintDirective, TUI_HINT_COMPONENT, TuiHint } from '@taiga-ui/core/portals/hint';
10
10
  import { PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
11
11
  import { Subject, debounceTime, distinctUntilChanged, startWith, pairwise, switchMap, of, fromEvent, filter, map } from 'rxjs';
12
12
  import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
@@ -24,10 +24,10 @@ class TuiLineClampBox extends TuiHintComponent {
24
24
  get width() {
25
25
  return this.accessor.getClientRect().width;
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, ngImport: i0, template: '<ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>', isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClampBox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
28
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiLineClampBox, isStandalone: true, selector: "tui-line-clamp-box", host: { properties: { "style.min-width.px": "width" } }, providers: TUI_HINT_PROVIDERS, usesInheritance: true, ngImport: i0, template: '<ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>', isInline: true, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampBox, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClampBox, decorators: [{
31
31
  type: Component,
32
32
  args: [{ selector: 'tui-line-clamp-box', imports: [PolymorpheusOutlet], template: '<ng-container *polymorpheusOutlet="content() as text">{{ text }}</ng-container>', changeDetection: ChangeDetectionStrategy.OnPush, providers: TUI_HINT_PROVIDERS, host: { '[style.min-width.px]': 'width' }, styles: [":host{position:absolute;box-shadow:var(--tui-shadow-medium);inline-size:min-content;padding:.75rem 1rem;margin-inline-start:calc(-1px - 1rem);margin-block-start:calc(-1px - .75rem);border-radius:var(--tui-radius-l);box-sizing:content-box;border:1px solid var(--tui-border-normal);background:var(--tui-background-base);color:var(--tui-text-primary);overflow-wrap:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade}\n"] }]
33
33
  }] });
@@ -40,12 +40,12 @@ class TuiLineClampPositionDirective extends TuiPositionAccessor {
40
40
  }
41
41
  getPosition() {
42
42
  const { top, left } = this.accessor.getClientRect();
43
- return [top, left];
43
+ return [left, top];
44
44
  }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
46
- 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 }); }
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClampPositionDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiLineClampPositionDirective, isStandalone: true, selector: "[tuiLineClampPosition]", providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)], usesInheritance: true, ngImport: i0 }); }
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClampPositionDirective, decorators: [{
49
49
  type: Directive,
50
50
  args: [{
51
51
  selector: '[tuiLineClampPosition]',
@@ -66,7 +66,7 @@ class TuiLineClamp {
66
66
  this.overflownChange = outputFromObservable(this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged()));
67
67
  this.lineClamp = toSignal(toObservable(this.linesLimit).pipe(startWith(1), pairwise(), switchMap(([prev, next]) => next >= prev
68
68
  ? of(next)
69
- : fromEvent(this.el, 'transitionend').pipe(filter(tuiIsCurrentTarget), map(() => next)))), { initialValue: 0 });
69
+ : fromEvent(this.el, 'transitionend').pipe(filter((e) => e.target === e.currentTarget), map(() => next)))), { initialValue: 0 });
70
70
  }
71
71
  ngDoCheck() {
72
72
  this.update();
@@ -85,10 +85,10 @@ class TuiLineClamp {
85
85
  this.el.style.maxHeight = tuiPx(this.maxHeight());
86
86
  this.el.classList.toggle('_overflown', this.overflown);
87
87
  }
88
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
89
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.15", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null }, linesLimit: { classPropertyName: "linesLimit", publicName: "linesLimit", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "update()", "mouseenter": "update()", "resize": "update()" } }, providers: [{ provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox }], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TuiTransitioned }], ngImport: i0, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:block;overflow:hidden}:host._overflown .t-wrapper{-webkit-box-orient:block-axis}.t-wrapper{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
88
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClamp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
89
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.17", type: TuiLineClamp, isStandalone: true, selector: "tui-line-clamp", inputs: { lineHeight: { classPropertyName: "lineHeight", publicName: "lineHeight", isSignal: true, isRequired: false, transformFunction: null }, linesLimit: { classPropertyName: "linesLimit", publicName: "linesLimit", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflownChange: "overflownChange" }, host: { listeners: { "transitionend": "update()", "mouseenter": "update()", "resize": "update()" } }, providers: [{ provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox }], viewQueries: [{ propertyName: "outlet", first: true, predicate: TuiHintDirective, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TuiTransitioned }], ngImport: i0, template: "<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n", styles: [":host{transition-property:max-height;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:block;overflow:hidden}:host._overflown .t-wrapper{-webkit-box-orient:block-axis}.t-wrapper{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: i2.TuiHintDirective, selector: "[tuiHint]:not(ng-container):not(ng-template)", inputs: ["tuiHint", "tuiHintContext", "tuiHintAppearance"], outputs: ["tuiHintVisible"] }, { kind: "directive", type: TuiLineClampPositionDirective, selector: "[tuiLineClampPosition]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
90
90
  }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLineClamp, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiLineClamp, decorators: [{
92
92
  type: Component,
93
93
  args: [{ selector: 'tui-line-clamp', imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox }], hostDirectives: [TuiTransitioned], host: {
94
94
  '(transitionend)': 'update()',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const [TUI_LINE_CLAMP_OPTIONS, tuiLineClampOptionsProvider] = tuiCreateOptions(\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n);\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TUI_HINT_PROVIDERS, TuiHintComponent} from '@taiga-ui/core/directives/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template:\n '<ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>',\n styleUrl: './line-clamp-box.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n host: {'[style.min-width.px]': 'width'},\n})\nexport class TuiLineClampBox extends TuiHintComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/directives/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [top, left];\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n type DoCheck,\n ElementRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport {outputFromObservable, toObservable, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiInjectElement, tuiIsCurrentTarget} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_HINT_COMPONENT,\n TuiHint,\n TuiHintDirective,\n} from '@taiga-ui/core/directives/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n debounceTime,\n distinctUntilChanged,\n filter,\n fromEvent,\n map,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrl: './line-clamp.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox}],\n hostDirectives: [TuiTransitioned],\n host: {\n '(transitionend)': 'update()',\n '(mouseenter)': 'update()',\n '(resize)': 'update()',\n },\n})\nexport class TuiLineClamp implements DoCheck {\n private readonly outlet = viewChild.required(TuiHintDirective, {read: ElementRef});\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly isOverflown$ = new Subject<boolean>();\n private readonly maxHeight = computed(() => this.lineHeight() * this.linesLimit());\n\n public readonly lineHeight = input(24);\n public readonly linesLimit = input(1);\n public readonly content = input<PolymorpheusContent>();\n public readonly overflownChange = outputFromObservable(\n this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged()),\n );\n\n protected readonly lineClamp = toSignal(\n toObservable(this.linesLimit).pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : fromEvent(this.el, 'transitionend').pipe(\n filter(tuiIsCurrentTarget),\n map(() => next),\n ),\n ),\n ),\n {initialValue: 0},\n );\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n protected get overflown(): boolean {\n const {scrollHeight, scrollWidth} = this.outlet().nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content() : '';\n }\n\n protected update(): void {\n this.el.style.height = tuiPx(this.outlet().nativeElement.scrollHeight);\n this.el.style.maxHeight = tuiPx(this.maxHeight());\n this.el.classList.toggle('_overflown', this.overflown);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAMa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;;AAGlB;;AAEG;AACI,MAAM,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CACjF,8BAA8B;;ACA5B,MAAO,eAAgB,SAAQ,gBAAgB,CAAA;AACjD,IAAA,IAAc,KAAK,GAAA;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK;;+GAFrC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,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A,EAAA,2BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAW,6BAA6B,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAY3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAdxB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACjB,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAGpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA,CAAC,EAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAC,CAAC,EACrD,cAAA,EAAA,CAAC,eAAe,CAAC,EAC3B,IAAA,EAAA;AACF,wBAAA,iBAAiB,EAAE,UAAU;AAC7B,wBAAA,cAAc,EAAE,UAAU;AAC1B,wBAAA,UAAU,EAAE,UAAU;AACzB,qBAAA,EAAA,QAAA,EAAA,yTAAA,EAAA,MAAA,EAAA,CAAA,6SAAA,CAAA,EAAA;;;AEjDL;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-line-clamp.mjs","sources":["../../../projects/kit/components/line-clamp/line-clamp.options.ts","../../../projects/kit/components/line-clamp/line-clamp-box.component.ts","../../../projects/kit/components/line-clamp/line-clamp-position.directive.ts","../../../projects/kit/components/line-clamp/line-clamp.component.ts","../../../projects/kit/components/line-clamp/line-clamp.template.html","../../../projects/kit/components/line-clamp/taiga-ui-kit-components-line-clamp.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\n\nexport interface TuiLineClampOptions {\n readonly showHint: boolean;\n}\n\nexport const TUI_LINE_CLAMP_DEFAULT_OPTIONS: TuiLineClampOptions = {\n showHint: true,\n};\n\n/**\n * Default parameters for LineClamp component\n */\nexport const [TUI_LINE_CLAMP_OPTIONS, tuiLineClampOptionsProvider] = tuiCreateOptions(\n TUI_LINE_CLAMP_DEFAULT_OPTIONS,\n);\n","import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {TUI_HINT_PROVIDERS, TuiHintComponent} from '@taiga-ui/core/portals/hint';\nimport {PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\n\n@Component({\n selector: 'tui-line-clamp-box',\n imports: [PolymorpheusOutlet],\n template:\n '<ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>',\n styleUrl: './line-clamp-box.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: TUI_HINT_PROVIDERS,\n host: {'[style.min-width.px]': 'width'},\n})\nexport class TuiLineClampBox extends TuiHintComponent {\n protected get width(): number {\n return this.accessor.getClientRect().width;\n }\n}\n","import {Directive, inject} from '@angular/core';\nimport {\n tuiAsPositionAccessor,\n TuiPositionAccessor,\n type TuiRectAccessor,\n} from '@taiga-ui/core/classes';\nimport {TuiHintDirective} from '@taiga-ui/core/portals/hint';\nimport {type TuiPoint} from '@taiga-ui/core/types';\n\n@Directive({\n selector: '[tuiLineClampPosition]',\n providers: [tuiAsPositionAccessor(TuiLineClampPositionDirective)],\n})\nexport class TuiLineClampPositionDirective extends TuiPositionAccessor {\n private readonly accessor = inject<TuiRectAccessor>(TuiHintDirective);\n public readonly type = 'hint';\n\n public getPosition(): TuiPoint {\n const {top, left} = this.accessor.getClientRect();\n\n return [left, top];\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n type DoCheck,\n ElementRef,\n inject,\n input,\n viewChild,\n} from '@angular/core';\nimport {outputFromObservable, toObservable, toSignal} from '@angular/core/rxjs-interop';\nimport {TuiTransitioned} from '@taiga-ui/cdk/directives/transitioned';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_HINT_COMPONENT, TuiHint, TuiHintDirective} from '@taiga-ui/core/portals/hint';\nimport {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {\n debounceTime,\n distinctUntilChanged,\n filter,\n fromEvent,\n map,\n of,\n pairwise,\n startWith,\n Subject,\n switchMap,\n} from 'rxjs';\n\nimport {TUI_LINE_CLAMP_OPTIONS} from './line-clamp.options';\nimport {TuiLineClampBox} from './line-clamp-box.component';\nimport {TuiLineClampPositionDirective} from './line-clamp-position.directive';\n\n@Component({\n selector: 'tui-line-clamp',\n imports: [PolymorpheusOutlet, TuiHint, TuiLineClampPositionDirective],\n templateUrl: './line-clamp.template.html',\n styleUrl: './line-clamp.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{provide: TUI_HINT_COMPONENT, useValue: TuiLineClampBox}],\n hostDirectives: [TuiTransitioned],\n host: {\n '(transitionend)': 'update()',\n '(mouseenter)': 'update()',\n '(resize)': 'update()',\n },\n})\nexport class TuiLineClamp implements DoCheck {\n private readonly outlet = viewChild.required(TuiHintDirective, {read: ElementRef});\n private readonly options = inject(TUI_LINE_CLAMP_OPTIONS);\n private readonly el = tuiInjectElement();\n private readonly isOverflown$ = new Subject<boolean>();\n private readonly maxHeight = computed(() => this.lineHeight() * this.linesLimit());\n\n public readonly lineHeight = input(24);\n public readonly linesLimit = input(1);\n public readonly content = input<PolymorpheusContent>();\n public readonly overflownChange = outputFromObservable(\n this.isOverflown$.pipe(debounceTime(0), distinctUntilChanged()),\n );\n\n protected readonly lineClamp = toSignal(\n toObservable(this.linesLimit).pipe(\n startWith(1),\n pairwise(),\n switchMap(([prev, next]) =>\n next >= prev\n ? of(next)\n : fromEvent(this.el, 'transitionend').pipe(\n filter((e) => e.target === e.currentTarget),\n map(() => next),\n ),\n ),\n ),\n {initialValue: 0},\n );\n\n public ngDoCheck(): void {\n this.update();\n this.isOverflown$.next(this.overflown);\n }\n\n protected get overflown(): boolean {\n const {scrollHeight, scrollWidth} = this.outlet().nativeElement;\n const {clientWidth} = this.el;\n\n return scrollHeight > this.maxHeight() || scrollWidth > clientWidth;\n }\n\n protected get computedContent(): PolymorpheusContent {\n return this.options.showHint && this.overflown ? this.content() : '';\n }\n\n protected update(): void {\n this.el.style.height = tuiPx(this.outlet().nativeElement.scrollHeight);\n this.el.style.maxHeight = tuiPx(this.maxHeight());\n this.el.classList.toggle('_overflown', this.overflown);\n }\n}\n","<div\n tuiLineClampPosition\n class=\"t-wrapper\"\n [style.-webkit-line-clamp]=\"lineClamp()\"\n [style.word-break]=\"lineClamp() > 1 ? 'break-word' : 'break-all'\"\n [tuiHint]=\"computedContent\"\n>\n <ng-container *polymorpheusOutlet=\"content() as text\">{{ text }}</ng-container>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAMa,MAAA,8BAA8B,GAAwB;AAC/D,IAAA,QAAQ,EAAE,IAAI;;AAGlB;;AAEG;AACI,MAAM,CAAC,sBAAsB,EAAE,2BAA2B,CAAC,GAAG,gBAAgB,CACjF,8BAA8B;;ACA5B,MAAO,eAAgB,SAAQ,gBAAgB,CAAA;AACjD,IAAA,IAAc,KAAK,GAAA;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK;;+GAFrC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,EAHb,YAAA,EAA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,2BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,QAAA,EAAA,8CAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,mBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAW,6BAA6B,EAAA,QAAA,EAAA,wBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAY3D,YAAY,EAAA,UAAA,EAAA,CAAA;kBAdxB,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EACjB,OAAA,EAAA,CAAC,kBAAkB,EAAE,OAAO,EAAE,6BAA6B,CAAC,EAGpD,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACpC,SAAA,EAAA,CAAC,EAAC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAC,CAAC,EACrD,cAAA,EAAA,CAAC,eAAe,CAAC,EAC3B,IAAA,EAAA;AACF,wBAAA,iBAAiB,EAAE,UAAU;AAC7B,wBAAA,cAAc,EAAE,UAAU;AAC1B,wBAAA,UAAU,EAAE,UAAU;AACzB,qBAAA,EAAA,QAAA,EAAA,yTAAA,EAAA,MAAA,EAAA,CAAA,6SAAA,CAAA,EAAA;;;AE7CL;;AAEG;;;;"}
@@ -5,26 +5,26 @@ import * as i1 from '@taiga-ui/core/directives/appearance';
5
5
  import { TUI_APPEARANCE_OPTIONS, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
6
6
 
7
7
  class Styles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-message" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: Styles, decorators: [{
12
12
  type: Component,
13
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-message' }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-text-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"] }]
13
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-message' }, styles: ["[tuiMessage]{display:inline-flex;padding:.5rem .625rem;min-block-size:2.25rem;block-size:auto;box-sizing:border-box;inline-size:fit-content;isolation:isolate;white-space:nowrap;text-align:start;font:var(--tui-font-ui-m);border-radius:var(--tui-radius-l)}[tuiMessage]>[tuiLink]{color:inherit!important;text-decoration:underline solid!important}\n"] }]
14
14
  }] });
15
15
  class TuiMessage {
16
16
  constructor() {
17
17
  this.nothing = tuiWithStyles(Styles);
18
18
  }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
20
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiMessage, isStandalone: true, selector: "[tuiMessage]", providers: [
21
21
  {
22
22
  provide: TUI_APPEARANCE_OPTIONS,
23
23
  useValue: { appearance: 'neutral' },
24
24
  },
25
25
  ], hostDirectives: [{ directive: i1.TuiWithAppearance }], ngImport: i0 }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMessage, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMessage, decorators: [{
28
28
  type: Directive,
29
29
  args: [{
30
30
  selector: '[tuiMessage]',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/message.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-message'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,iHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,gWAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,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C,iBAAA;;;AC9BD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-message.mjs","sources":["../../../projects/kit/components/message/message.directive.ts","../../../projects/kit/components/message/taiga-ui-kit-components-message.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n TUI_APPEARANCE_OPTIONS,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/message.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-message'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiMessage]',\n providers: [\n {\n provide: TUI_APPEARANCE_OPTIONS,\n useValue: {appearance: 'neutral'},\n },\n ],\n hostDirectives: [TuiWithAppearance],\n})\nexport class TuiMessage {\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAYA,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,iHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,2VAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA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12 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, signal, computed, ContentChildren, Input, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
2
+ import { contentChildren, inject, computed, input, ChangeDetectionStrategy, Component, Directive, Input } from '@angular/core';
3
3
  import { NgControl } from '@angular/forms';
4
4
  import { tuiIsPresent, tuiSetSignal } from '@taiga-ui/cdk/utils/miscellaneous';
5
5
  import * as i3 from '@taiga-ui/core/components/data-list';
6
6
  import { TuiOptionWithValue, tuiAsOptionContent, TuiDataList } from '@taiga-ui/core/components/data-list';
7
7
  import { TuiLink } from '@taiga-ui/core/components/link';
8
8
  import * as i2 from '@taiga-ui/core/components/textfield';
9
- import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiSelectLike, TuiTextfield } from '@taiga-ui/core/components/textfield';
9
+ import { TuiTextfieldComponent, TUI_TEXTFIELD_OPTIONS, TuiTextfieldMultiComponent, TuiSelectLike, TuiTextfield } from '@taiga-ui/core/components/textfield';
10
10
  import { TUI_ITEMS_HANDLERS } from '@taiga-ui/core/directives/items-handlers';
11
11
  import { TUI_MULTI_SELECT_TEXTS } from '@taiga-ui/kit/tokens';
12
12
  import { tuiInjectValue, tuiIsFlat } from '@taiga-ui/kit/utils';
@@ -14,49 +14,39 @@ import { TuiCheckbox } from '@taiga-ui/kit/components/checkbox';
14
14
  import { NgTemplateOutlet } from '@angular/common';
15
15
  import { TuiControl } from '@taiga-ui/cdk/classes';
16
16
  import { TUI_IS_IOS, TUI_IS_ANDROID } from '@taiga-ui/cdk/tokens';
17
- import { tuiInjectElement, tuiIsPresent as tuiIsPresent$1 } from '@taiga-ui/cdk/utils';
17
+ import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
18
18
  import * as i1 from '@taiga-ui/kit/components/input-chip';
19
19
  import { TuiInputChipDirective } from '@taiga-ui/kit/components/input-chip';
20
- import * as i4 from '@taiga-ui/core/directives/dropdown';
20
+ import * as i4 from '@taiga-ui/core/portals/dropdown';
21
21
 
22
22
  class TuiMultiSelectGroupComponent {
23
23
  constructor() {
24
+ this.options = contentChildren((TuiOptionWithValue));
24
25
  this.handlers = inject(TUI_ITEMS_HANDLERS);
25
- this.control = inject(TuiTextfieldComponent, { optional: true })?.control ||
26
+ this.control = inject(TuiTextfieldComponent, { optional: true })?.control() ||
26
27
  inject(NgControl, { optional: true });
27
- this.values = signal([]);
28
+ this.values = computed(() => this.options().map(({ value }) => value()));
28
29
  this.texts = inject(TUI_MULTI_SELECT_TEXTS);
29
30
  this.value = tuiInjectValue();
30
- this.checked = computed(() => this.values().every((item) => this.value()?.some((value) => this.handlers.identityMatcher()(item, value))));
31
- this.label = '';
32
- }
33
- set options(options) {
34
- this.values.set(options
35
- .toArray()
36
- .map(({ value }) => value())
37
- .filter(tuiIsPresent));
31
+ this.checked = computed(() => this.values().every((item) => this.value()?.some((v) => tuiIsPresent(item) && this.handlers.identityMatcher()(item, v))));
32
+ this.label = input('');
38
33
  }
39
34
  toggle() {
40
- const values = this.values();
35
+ const values = this.values().filter(tuiIsPresent);
41
36
  const matcher = this.handlers.identityMatcher();
42
37
  const value = this.value() || [];
43
38
  const others = value.filter((a) => values.every((b) => !matcher(a, b)));
44
39
  this.control?.control?.setValue(this.checked() ? others : others.concat(values));
45
40
  }
46
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
47
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: "label" }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: TuiOptionWithValue }], ngImport: i0, template: "@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}:host-context(tui-sheet-dialog) .t-label:not(:empty){font:var(--tui-font-heading-6);padding:.5rem 0}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}:host-context(tui-sheet-dialog) .t-button{margin-inline-end:0}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]", inputs: ["pseudo"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
41
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
42
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiMultiSelectGroupComponent, isStandalone: true, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._label": "label" } }, queries: [{ propertyName: "options", predicate: (TuiOptionWithValue), isSignal: true }], ngImport: i0, template: "@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label() }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}:host-context(tui-sheet-dialog) .t-label:not(:empty){font:var(--tui-font-heading-h6);padding:.5rem 0}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}:host-context(tui-sheet-dialog) .t-button{margin-inline-end:0}\n"], dependencies: [{ kind: "directive", type: TuiLink, selector: "a[tuiLink], button[tuiLink]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
48
43
  }
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectGroupComponent, decorators: [{
50
45
  type: Component,
51
46
  args: [{ selector: 'tui-opt-group[tuiMultiSelectGroup]', imports: [TuiLink], changeDetection: ChangeDetectionStrategy.OnPush, host: {
52
47
  '[class._label]': 'label',
53
- }, template: "@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}:host-context(tui-sheet-dialog) .t-label:not(:empty){font:var(--tui-font-heading-6);padding:.5rem 0}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}:host-context(tui-sheet-dialog) .t-button{margin-inline-end:0}\n"] }]
54
- }], propDecorators: { label: [{
55
- type: Input
56
- }], options: [{
57
- type: ContentChildren,
58
- args: [TuiOptionWithValue]
59
- }] } });
48
+ }, template: "@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label() }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n", styles: [":host._label:before{display:none}:host:not(:first-of-type) .t-label:not(:empty){padding-block-start:1.25rem}:host:not(:first-of-type) .t-button{margin-block-start:1.25rem}.t-wrapper{display:flex;align-items:flex-start}.t-wrapper:last-child{display:none}.t-label:not(:empty){flex:1;padding:.75rem 1rem .25rem .625rem}:host-context(tui-sheet-dialog) .t-label:not(:empty){font:var(--tui-font-heading-h6);padding:.5rem 0}.t-button{margin:.75rem 1rem 0 auto;font-weight:400}:host-context(tui-sheet-dialog) .t-button{margin-inline-end:0}\n"] }]
49
+ }] });
60
50
 
61
51
  class TuiMultiSelectOption {
62
52
  constructor() {
@@ -71,8 +61,8 @@ class TuiMultiSelectOption {
71
61
  controlValue.some((item) => this.handlers?.identityMatcher()(item, optionValue) ??
72
62
  item === optionValue));
73
63
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
75
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
64
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectOption, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
65
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiMultiSelectOption, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
76
66
  @if (option) {
77
67
  <input
78
68
  tuiCheckbox
@@ -83,7 +73,7 @@ class TuiMultiSelectOption {
83
73
  }
84
74
  `, isInline: true, styles: [":host-context(tui-dropdown-mobile) input,:host-context(tui-sheet-dialog) input{order:100;margin-inline-start:auto}\n"], dependencies: [{ kind: "component", type: TuiCheckbox, selector: "input[type=\"checkbox\"][tuiCheckbox]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
75
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectOption, decorators: [{
87
77
  type: Component,
88
78
  args: [{ imports: [TuiCheckbox], template: `
89
79
  @if (option) {
@@ -98,10 +88,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
98
88
  }] });
99
89
 
100
90
  class TuiMultiSelectGroupDirective {
101
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
102
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
91
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
92
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.17", type: TuiMultiSelectGroupDirective, isStandalone: true, selector: "[tuiMultiSelectGroup]", providers: [tuiAsOptionContent(TuiMultiSelectOption)], ngImport: i0 }); }
103
93
  }
104
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
94
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectGroupDirective, decorators: [{
105
95
  type: Directive,
106
96
  args: [{
107
97
  selector: '[tuiMultiSelectGroup]',
@@ -112,12 +102,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
112
102
  class TuiMultiSelectNative {
113
103
  constructor() {
114
104
  this.control = inject(TuiControl);
115
- this.textfield = inject(TuiTextfieldComponent);
105
+ this.textfield = inject(TuiTextfieldMultiComponent);
116
106
  this.isFlat = tuiIsFlat;
117
107
  this.handlers = inject(TUI_ITEMS_HANDLERS);
118
108
  this.el = tuiInjectElement();
119
109
  this.mobile = inject(TUI_IS_IOS) || (inject(TUI_IS_ANDROID) && 'showPicker' in this.el);
120
- this.isSelected = computed((value = this.control.value()) => (x) => tuiIsPresent$1(value) &&
110
+ this.isSelected = computed((value = this.control.value()) => (x) => tuiIsPresent(value) &&
121
111
  value.some((item) => this.handlers.identityMatcher()(x, item)));
122
112
  this.items = [];
123
113
  this.labels = [];
@@ -126,20 +116,20 @@ class TuiMultiSelectNative {
126
116
  tuiSetSignal(this.textfield.filler, placeholder);
127
117
  }
128
118
  onInput() {
129
- const items = this.items || [];
119
+ const items = this.items?.flat() || [];
130
120
  const options = Array.from(this.el.selectedOptions).map(({ index }) => index);
131
- this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));
121
+ this.textfield.cva()?.onChange(items.filter((_, i) => options.includes(i)));
132
122
  }
133
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
134
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListComponent, selector: "tui-data-list", inputs: ["emptyContent", "size"] }, { kind: "directive", type: i3.TuiOptionNew, selector: "button[tuiOption][new], a[tuiOption][new], label[tuiOption][new]", inputs: ["disabled"] }, { kind: "directive", type: i3.TuiOptionWithValue, selector: "button[tuiOption][value][new], a[tuiOption][value][new], label[tuiOption][value][new]", inputs: ["disabled", "value"] }, { kind: "directive", type: i3.TuiOptGroup, selector: "tui-opt-group", inputs: ["label"] }, { kind: "component", type: TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: ["label"] }, { kind: "directive", type: i4.TuiDropdownContent, selector: "ng-template[tuiDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
123
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectNative, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
124
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.17", type: TuiMultiSelectNative, isStandalone: true, selector: "select[tuiMultiSelect]", inputs: { items: "items", labels: "labels", placeholder: "placeholder" }, host: { attributes: { "multiple": "" }, listeners: { "click.stop.zoneless": "0", "input": "onInput()" } }, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [{ directive: i1.TuiInputChipDirective }, { directive: i2.TuiSelectLike }], ngImport: i0, template: "@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.TuiDataListComponent, selector: "tui-data-list", inputs: ["emptyContent", "size"] }, { kind: "directive", type: i3.TuiOption, selector: "button[tuiOption], a[tuiOption], label[tuiOption]", inputs: ["disabled"] }, { kind: "directive", type: i3.TuiOptionWithValue, selector: "button[tuiOption][value], a[tuiOption][value], label[tuiOption][value]", inputs: ["disabled", "value"] }, { kind: "directive", type: i3.TuiOptGroup, selector: "tui-opt-group", inputs: ["label"] }, { kind: "component", type: TuiMultiSelectGroupComponent, selector: "tui-opt-group[tuiMultiSelectGroup]", inputs: ["label"] }, { kind: "directive", type: i4.TuiDropdownContent, selector: "ng-template[tuiDropdown]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
135
125
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiMultiSelectNative, decorators: [{
137
127
  type: Component,
138
128
  args: [{ selector: 'select[tuiMultiSelect]', imports: [NgTemplateOutlet, TuiDataList, TuiMultiSelectGroupComponent, TuiTextfield], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiAsOptionContent(TuiMultiSelectOption)], hostDirectives: [TuiInputChipDirective, TuiSelectLike], host: {
139
129
  multiple: '',
140
130
  '(click.stop.zoneless)': '0',
141
131
  '(input)': 'onInput()',
142
- }, template: "@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n" }]
132
+ }, template: "@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n" }]
143
133
  }], propDecorators: { items: [{
144
134
  type: Input
145
135
  }], labels: [{
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-multi-select.mjs","sources":["../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.template.html","../../../projects/kit/components/multi-select/multi-select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.component.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.template.html","../../../projects/kit/components/multi-select/multi-select.ts","../../../projects/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ContentChildren,\n inject,\n Input,\n type QueryList,\n signal,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n selector: 'tui-opt-group[tuiMultiSelectGroup]',\n imports: [TuiLink],\n templateUrl: './multi-select-group.template.html',\n styleUrl: './multi-select-group.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._label]': 'label',\n },\n})\nexport class TuiMultiSelectGroupComponent<T> {\n private readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly control =\n inject(TuiTextfieldComponent, {optional: true})?.control ||\n inject(NgControl, {optional: true});\n\n protected readonly values = signal<readonly T[]>([]);\n protected readonly texts = inject(TUI_MULTI_SELECT_TEXTS);\n protected readonly value = tuiInjectValue<readonly T[] | null>();\n protected readonly checked = computed(() =>\n this.values().every((item) =>\n this.value()?.some((value) => this.handlers.identityMatcher()(item, value)),\n ),\n );\n\n @Input()\n public label = '';\n\n @ContentChildren(TuiOptionWithValue)\n protected set options(options: QueryList<TuiOptionWithValue<T>>) {\n this.values.set(\n options\n .toArray()\n .map(({value}) => value())\n .filter(tuiIsPresent),\n );\n }\n\n protected toggle(): void {\n const values = this.values();\n const matcher = this.handlers.identityMatcher();\n const value = this.value() || [];\n const others = value.filter((a) => values.every((b) => !matcher(a, b)));\n\n this.control?.control?.setValue(this.checked() ? others : others.concat(values));\n }\n}\n","@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiCheckbox} from '@taiga-ui/kit/components/checkbox';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n imports: [TuiCheckbox],\n template: `\n @if (option) {\n <input\n tuiCheckbox\n type=\"checkbox\"\n [checked]=\"selected()\"\n [size]=\"size() === 'l' ? 'm' : 's'\"\n />\n }\n `,\n styles: `\n :host-context(tui-dropdown-mobile) input,\n :host-context(tui-sheet-dialog) input {\n order: 100;\n margin-inline-start: auto;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOption<T> {\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue, {\n optional: true,\n });\n\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option?.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n controlValue.some(\n (item) =>\n this.handlers?.identityMatcher()(item, optionValue) ??\n item === optionValue,\n ),\n );\n}\n","import {Directive} from '@angular/core';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Directive({\n selector: '[tuiMultiSelectGroup]',\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {NgTemplateOutlet} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject, Input} from '@angular/core';\nimport {TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_IS_ANDROID, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement, tuiIsPresent} from '@taiga-ui/cdk/utils';\nimport {tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsOptionContent, TuiDataList} from '@taiga-ui/core/components/data-list';\nimport {\n TuiSelectLike,\n TuiTextfield,\n TuiTextfieldComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiInputChipDirective} from '@taiga-ui/kit/components/input-chip';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectGroupComponent} from '../multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Component({\n selector: 'select[tuiMultiSelect]',\n imports: [NgTemplateOutlet, TuiDataList, TuiMultiSelectGroupComponent, TuiTextfield],\n templateUrl: './multi-select-native.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n hostDirectives: [TuiInputChipDirective, TuiSelectLike],\n host: {\n multiple: '',\n '(click.stop.zoneless)': '0',\n '(input)': 'onInput()',\n },\n})\nexport class TuiMultiSelectNative<T> {\n private readonly control: TuiControl<readonly T[]> = inject(TuiControl);\n private readonly textfield = inject(TuiTextfieldComponent);\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly mobile =\n inject(TUI_IS_IOS) || (inject(TUI_IS_ANDROID) && 'showPicker' in this.el);\n\n protected readonly isSelected = computed(\n (value = this.control.value()) =>\n (x: T) =>\n tuiIsPresent(value) &&\n value.some((item) => this.handlers.identityMatcher()(x, item)),\n );\n\n @Input()\n public items: ReadonlyArray<readonly T[]> | readonly T[] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n @Input()\n public set placeholder(placeholder: string) {\n tuiSetSignal(this.textfield.filler, placeholder);\n }\n\n protected onInput(): void {\n const items = this.items || [];\n const options = Array.from(this.el.selectedOptions).map(({index}) => index);\n\n this.textfield.cva?.onChange(items.flat().filter((_, i) => options.includes(i)));\n }\n}\n","@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n new\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n","import {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\nimport {TuiMultiSelectNative} from './multi-select-native/multi-select-native.component';\n\nexport const TuiMultiSelect = [\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiMultiSelectNative,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["tuiIsPresent"],"mappings":";;;;;;;;;;;;;;;;;;;;;MAgCa,4BAA4B,CAAA;AAVzC,IAAA,WAAA,GAAA;AAWqB,QAAA,IAAA,CAAA,Q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AA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAe,4BAA4B,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAW5D,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;+BACI,wBAAwB,EAAA,OAAA,EACzB,CAAC,gBAAgB,EAAE,WAAW,EAAE,4BAA4B,EAAE,YAAY,CAAC,EAAA,eAAA,EAEnE,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC,EACrC,cAAA,EAAA,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAChD,IAAA,EAAA;AACF,wBAAA,QAAQ,EAAE,EAAE;AACZ,wBAAA,uBAAuB,EAAE,GAAG;AAC5B,wBAAA,SAAS,EAAE,WAAW;AACzB,qBAAA,EAAA,QAAA,EAAA,++DAAA,EAAA;8BAoBM,KAAK,EAAA,CAAA;sBADX;gBAIM,MAAM,EAAA,CAAA;sBADZ;gBAIU,WAAW,EAAA,CAAA;sBADrB;;;AEtDQ,MAAA,cAAc,GAAG;IAC1B,4BAA4B;IAC5B,4BAA4B;IAC5B,oBAAoB;;;ACPxB;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-multi-select.mjs","sources":["../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.template.html","../../../projects/kit/components/multi-select/multi-select-option/multi-select-option.component.ts","../../../projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.component.ts","../../../projects/kit/components/multi-select/multi-select-native/multi-select-native.template.html","../../../projects/kit/components/multi-select/multi-select.ts","../../../projects/kit/components/multi-select/taiga-ui-kit-components-multi-select.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n inject,\n input,\n} from '@angular/core';\nimport {NgControl} from '@angular/forms';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TuiLink} from '@taiga-ui/core/components/link';\nimport {TuiTextfieldComponent} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n selector: 'tui-opt-group[tuiMultiSelectGroup]',\n imports: [TuiLink],\n templateUrl: './multi-select-group.template.html',\n styleUrl: './multi-select-group.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class._label]': 'label',\n },\n})\nexport class TuiMultiSelectGroupComponent<T> {\n private readonly options = contentChildren(TuiOptionWithValue<T>);\n private readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n private readonly control =\n inject(TuiTextfieldComponent, {optional: true})?.control() ||\n inject(NgControl, {optional: true});\n\n protected readonly values = computed(() => this.options().map(({value}) => value()));\n protected readonly texts = inject(TUI_MULTI_SELECT_TEXTS);\n protected readonly value = tuiInjectValue<readonly T[] | null>();\n protected readonly checked = computed(() =>\n this.values().every((item) =>\n this.value()?.some(\n (v) => tuiIsPresent(item) && this.handlers.identityMatcher()(item, v),\n ),\n ),\n );\n\n public readonly label = input('');\n\n protected toggle(): void {\n const values = this.values().filter(tuiIsPresent);\n const matcher = this.handlers.identityMatcher();\n const value = this.value() || [];\n const others = value.filter((a) => values.every((b) => !matcher(a, b)));\n\n this.control?.control?.setValue(this.checked() ? others : others.concat(values));\n }\n}\n","@if (values().length) {\n <span class=\"t-wrapper\">\n <span class=\"t-label\">{{ label() }}</span>\n <button\n tuiLink\n type=\"button\"\n class=\"t-button\"\n (click)=\"toggle()\"\n >\n {{ texts()[checked() ? 'none' : 'all'] }}\n </button>\n </span>\n}\n<ng-content />\n","import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiOptionWithValue} from '@taiga-ui/core/components/data-list';\nimport {TUI_TEXTFIELD_OPTIONS} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiCheckbox} from '@taiga-ui/kit/components/checkbox';\nimport {tuiInjectValue} from '@taiga-ui/kit/utils';\n\n@Component({\n imports: [TuiCheckbox],\n template: `\n @if (option) {\n <input\n tuiCheckbox\n type=\"checkbox\"\n [checked]=\"selected()\"\n [size]=\"size() === 'l' ? 'm' : 's'\"\n />\n }\n `,\n styles: `\n :host-context(tui-dropdown-mobile) input,\n :host-context(tui-sheet-dialog) input {\n order: 100;\n margin-inline-start: auto;\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiMultiSelectOption<T> {\n protected readonly option = inject<TuiOptionWithValue<T>>(TuiOptionWithValue, {\n optional: true,\n });\n\n protected readonly handlers = inject<TuiItemsHandlers<T>>(TUI_ITEMS_HANDLERS);\n protected readonly value = tuiInjectValue<readonly T[]>();\n protected readonly size = inject(TUI_TEXTFIELD_OPTIONS).size;\n protected readonly selected = computed(\n (controlValue = this.value(), optionValue = this.option?.value()) =>\n tuiIsPresent(optionValue) &&\n tuiIsPresent(controlValue) &&\n controlValue.some(\n (item) =>\n this.handlers?.identityMatcher()(item, optionValue) ??\n item === optionValue,\n ),\n );\n}\n","import {Directive} from '@angular/core';\nimport {tuiAsOptionContent} from '@taiga-ui/core/components/data-list';\n\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Directive({\n selector: '[tuiMultiSelectGroup]',\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n})\nexport class TuiMultiSelectGroupDirective {}\n","import {NgTemplateOutlet} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, computed, inject, Input} from '@angular/core';\nimport {TuiControl} from '@taiga-ui/cdk/classes';\nimport {TUI_IS_ANDROID, TUI_IS_IOS} from '@taiga-ui/cdk/tokens';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiIsPresent, tuiSetSignal} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiAsOptionContent, TuiDataList} from '@taiga-ui/core/components/data-list';\nimport {\n TuiSelectLike,\n TuiTextfield,\n TuiTextfieldMultiComponent,\n} from '@taiga-ui/core/components/textfield';\nimport {\n TUI_ITEMS_HANDLERS,\n type TuiItemsHandlers,\n} from '@taiga-ui/core/directives/items-handlers';\nimport {TuiInputChipDirective} from '@taiga-ui/kit/components/input-chip';\nimport {tuiIsFlat} from '@taiga-ui/kit/utils';\n\nimport {TuiMultiSelectGroupComponent} from '../multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectOption} from '../multi-select-option/multi-select-option.component';\n\n@Component({\n selector: 'select[tuiMultiSelect]',\n imports: [NgTemplateOutlet, TuiDataList, TuiMultiSelectGroupComponent, TuiTextfield],\n templateUrl: './multi-select-native.template.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiAsOptionContent(TuiMultiSelectOption)],\n hostDirectives: [TuiInputChipDirective, TuiSelectLike],\n host: {\n multiple: '',\n '(click.stop.zoneless)': '0',\n '(input)': 'onInput()',\n },\n})\nexport class TuiMultiSelectNative<T> {\n private readonly control: TuiControl<readonly T[]> = inject(TuiControl);\n private readonly textfield = inject(TuiTextfieldMultiComponent);\n\n protected readonly isFlat = tuiIsFlat;\n protected readonly handlers: TuiItemsHandlers<T> = inject(TUI_ITEMS_HANDLERS);\n protected readonly el = tuiInjectElement<HTMLSelectElement>();\n protected readonly mobile =\n inject(TUI_IS_IOS) || (inject(TUI_IS_ANDROID) && 'showPicker' in this.el);\n\n protected readonly isSelected = computed(\n (value = this.control.value()) =>\n (x: T) =>\n tuiIsPresent(value) &&\n value.some((item) => this.handlers.identityMatcher()(x, item)),\n );\n\n @Input()\n public items: ReadonlyArray<readonly T[]> | readonly T[] | null = [];\n\n @Input()\n public labels: readonly string[] = [];\n\n @Input()\n public set placeholder(placeholder: string) {\n tuiSetSignal(this.textfield.filler, placeholder);\n }\n\n protected onInput(): void {\n const items = this.items?.flat() || [];\n const options = Array.from(this.el.selectedOptions).map(({index}) => index);\n\n this.textfield.cva()?.onChange(items.filter((_, i) => options.includes(i)));\n }\n}\n","@if (items && !isFlat(items)) {\n @for (group of labels; track group) {\n <optgroup [label]=\"labels[$index]\">\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items[$index]}\" />\n </optgroup>\n }\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (group of items; track $index) {\n <tui-opt-group\n tuiMultiSelectGroup\n [label]=\"labels[$index] || ''\"\n >\n @for (item of group; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-opt-group>\n }\n </tui-data-list>\n }\n} @else {\n <ng-container *ngTemplateOutlet=\"options; context: {$implicit: items}\" />\n @if (!mobile) {\n <tui-data-list *tuiDropdown>\n @for (item of items; track $index) {\n <button\n tuiOption\n type=\"button\"\n [disabled]=\"handlers.disabledItemHandler()(item)\"\n [value]=\"item\"\n >\n {{ handlers.stringify()(item) }}\n </button>\n }\n </tui-data-list>\n }\n}\n\n<ng-template\n #options\n let-items\n>\n @for (option of items; track option) {\n <option\n [disabled]=\"handlers.disabledItemHandler()(option)\"\n [selected]=\"isSelected()(option)\"\n [value]=\"handlers.stringify()(option)\"\n >\n {{ handlers.stringify()(option) }}\n </option>\n }\n</ng-template>\n","import {TuiMultiSelectGroupComponent} from './multi-select-group/multi-select-group.component';\nimport {TuiMultiSelectGroupDirective} from './multi-select-group/multi-select-group.directive';\nimport {TuiMultiSelectNative} from './multi-select-native/multi-select-native.component';\n\nexport const TuiMultiSelect = [\n TuiMultiSelectGroupComponent,\n TuiMultiSelectGroupDirective,\n TuiMultiSelectNative,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;MA8Ba,4BAA4B,CAAA;AAVzC,IAAA,WAAA,GAAA;AAWqB,QAAA,IAAA,CAAA,OAAO,GAAG,eAAe,EAAC,kBAAqB,EAAC;AAChD,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAsB,kBAAkB,CAAC;AAC1D,QAAA,IAAA,CAAA,OAAO,GACpB,MAAM,CAAC,qBAAqB,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EAAE,OAAO,EAAE;YAC1D,MAAM,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;QAEpB,IAAM,CAAA,MAAA,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,EAAC,KAAK,EAAC,KAAK,KAAK,EAAE,CAAC,CAAC;AACjE,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,sBAAsB,CAAC;QACtC,IAAK,CAAA,KAAA,GAAG,cAAc,EAAuB;QAC7C,IAAO,CAAA,OAAA,GAAG,QAAQ,CAAC,MAClC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,KACrB,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CACd,CAAC,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CACxE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AAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,WAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAe,4BAA4B,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAW5D,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAbhC,SAAS;+BACI,wBAAwB,EAAA,OAAA,EACzB,CAAC,gBAAgB,EAAE,WAAW,EAAE,4BAA4B,EAAE,YAAY,CAAC,EAAA,eAAA,EAEnE,uBAAuB,CAAC,MAAM,EAAA,SAAA,EACpC,CAAC,kBAAkB,CAAC,oBAAoB,CAAC,CAAC,EACrC,cAAA,EAAA,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAChD,IAAA,EAAA;AACF,wBAAA,QAAQ,EAAE,EAAE;AACZ,wBAAA,uBAAuB,EAAE,GAAG;AAC5B,wBAAA,SAAS,EAAE,WAAW;AACzB,qBAAA,EAAA,QAAA,EAAA,q7DAAA,EAAA;8BAoBM,KAAK,EAAA,CAAA;sBADX;gBAIM,MAAM,EAAA,CAAA;sBADZ;gBAIU,WAAW,EAAA,CAAA;sBADrB;;;AEtDQ,MAAA,cAAc,GAAG;IAC1B,4BAA4B;IAC5B,4BAA4B;IAC5B,oBAAoB;;;ACPxB;;AAEG;;;;"}
@@ -9,7 +9,7 @@ import { TuiLoader, tuiLoaderOptionsProvider } from '@taiga-ui/core/components/l
9
9
  import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
10
10
  import * as i1$1 from '@taiga-ui/cdk/portals';
11
11
  import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
12
- import { TuiModalService } from '@taiga-ui/core/components/modal';
12
+ import { TuiModalService } from '@taiga-ui/core/portals/modal';
13
13
 
14
14
  class TuiNotificationMiddleComponent {
15
15
  constructor() {
@@ -26,15 +26,15 @@ class TuiNotificationMiddleComponent {
26
26
  ? this.context.closable()
27
27
  : this.context.closable;
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: TuiNotificationMiddleComponent, isStandalone: true, selector: "tui-notification-middle", host: { listeners: { "document:click.capture": "onClick($event.target)", "document:keydown.esc": "onClick($event.currentTarget)", "waResizeObserver": "el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")" }, classAttribute: "tui-backdrop-hidden" }, providers: [tuiLoaderOptionsProvider({ size: 'l' })], hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.WaResizeObserver, outputs: ["waResizeObserver", "waResizeObserver"] }], ngImport: i0, template: `
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: TuiNotificationMiddleComponent, isStandalone: true, selector: "tui-notification-middle", host: { listeners: { "document:click.capture": "onClick($event.target)", "document:keydown.esc": "onClick($event.currentTarget)", "waResizeObserver": "el.style.setProperty(\"--t-width\", el.clientWidth + \"px\")" }, classAttribute: "tui-backdrop-hidden" }, providers: [tuiLoaderOptionsProvider({ size: 'l' })], hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.WaResizeObserver, outputs: ["waResizeObserver", "waResizeObserver"] }], ngImport: i0, template: `
31
31
  <tui-loader class="t-loader" />
32
32
  <ng-container *polymorpheusOutlet="context.content as text">
33
33
  {{ text }}
34
34
  </ng-container>
35
- `, isInline: true, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
+ `, isInline: true, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-body-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiLoader, selector: "tui-loader", inputs: ["size", "inheritColor", "overlay", "textContent", "loading"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddleComponent, decorators: [{
38
38
  type: Component,
39
39
  args: [{ selector: 'tui-notification-middle', imports: [PolymorpheusOutlet, TuiLoader], template: `
40
40
  <tui-loader class="t-loader" />
@@ -49,7 +49,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
49
49
  '(document:click.capture)': 'onClick($event.target)',
50
50
  '(document:keydown.esc)': 'onClick($event.currentTarget)',
51
51
  '(waResizeObserver)': 'el.style.setProperty("--t-width", el.clientWidth + "px")',
52
- }, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-text-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"] }]
52
+ }, styles: [":host{position:relative;display:grid;max-inline-size:18.75rem;min-inline-size:7rem;min-block-size:7rem;justify-items:center;gap:1rem;margin:auto;padding:2.25rem 2.25rem 1.75rem;border-radius:1.25rem;box-sizing:border-box;font:var(--tui-font-body-m);--tui-scale: .5}:host:before{inline-size:100%;block-size:100%;transition-property:width;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:\"\";z-index:-1;inline-size:var(--t-width);background:var(--tui-background-elevation-3);box-shadow:var(--tui-shadow-popup);border-radius:inherit;contain:strict}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiScale}:host.tui-enter ::ng-deep>.tui-enter,:host.tui-leave ::ng-deep>.tui-enter{animation-duration:0s;animation-delay:0s}:host .t-loader:not(:last-child){display:none}:host ::ng-deep>*{grid-area:2 / 1}:host ::ng-deep>*.tui-enter,:host ::ng-deep>*.tui-leave{animation-delay:var(--tui-duration);animation-name:tuiFade}:host ::ng-deep>*.tui-leave{animation-delay:0s}:host ::ng-deep>*.tui-leave~.tui-enter{opacity:0}:host ::ng-deep>tui-loader,:host ::ng-deep>[tuiAvatar],:host ::ng-deep>tui-icon,:host ::ng-deep>img{block-size:2.5rem;inline-size:2.5rem;min-inline-size:2.5rem;font-size:2.5rem;grid-area:1 / 1}\n"] }]
53
53
  }] });
54
54
 
55
55
  class TuiNotificationMiddleService extends TuiModalService {
@@ -58,10 +58,10 @@ class TuiNotificationMiddleService extends TuiModalService {
58
58
  this.options = { closable: false };
59
59
  this.content = TuiNotificationMiddleComponent;
60
60
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
62
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root' }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
62
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddleService, providedIn: 'root' }); }
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddleService, decorators: [{
65
65
  type: Injectable,
66
66
  args: [{
67
67
  providedIn: 'root',
@@ -72,10 +72,10 @@ class TuiNotificationMiddle {
72
72
  constructor() {
73
73
  this.tuiNotificationMiddleOptions = input({});
74
74
  }
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { tuiNotificationMiddleOptions: { classPropertyName: "tuiNotificationMiddleOptions", publicName: "tuiNotificationMiddleOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiNotificationMiddleService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["options", "tuiNotificationMiddleOptions", "open", "tuiNotificationMiddle"], outputs: ["openChange", "tuiNotificationMiddleChange"] }], ngImport: i0 }); }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.17", type: TuiNotificationMiddle, isStandalone: true, selector: "ng-template[tuiNotificationMiddle]", inputs: { tuiNotificationMiddleOptions: { classPropertyName: "tuiNotificationMiddleOptions", publicName: "tuiNotificationMiddleOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiNotificationMiddleService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["options", "tuiNotificationMiddleOptions", "open", "tuiNotificationMiddle"], outputs: ["openChange", "tuiNotificationMiddleChange"] }], ngImport: i0 }); }
77
77
  }
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TuiNotificationMiddle, decorators: [{
79
79
  type: Directive,
80
80
  args: [{
81
81
  selector: 'ng-template[tuiNotificationMiddle]',